#strategy-form.resale-investment>.controls{grid-template-columns:repeat(4,minmax(0,1fr));align-items:end}
#strategy-form.resale-investment .resale-currency-label{grid-column:span 2}
#strategy-form.resale-investment .cash-fields{display:flex;gap:14px;align-items:center}
#strategy-form.resale-investment .cash-fields>label{display:flex;gap:7px;align-items:center;flex:1;min-width:0}
#strategy-form.resale-investment .cash-fields input{height:50px;flex:1;min-width:0}
#strategy-form.resale-investment .cash-fields img{flex-shrink:0}
.resale-exclusions{display:flex;gap:24px;flex-wrap:wrap;margin:20px 0;border-top:1px solid #2b3e50;padding-top:18px}
#strategy-form.resale-investment .resale-exclusions label{display:flex;align-items:center;gap:8px;color:#b7cbda}
#strategy-form.resale-investment input[type=checkbox]{width:17px;height:17px;padding:0;flex:none;margin:0}
.resale-submit{display:flex;align-items:center;justify-content:space-between;gap:20px}.resale-submit small{color:#8fa9be}
#strategy-form.resale-investment .resale-category-multiple{display:block;background:#142333;border:1px solid #466176;padding:14px;min-width:310px;max-height:480px;overflow:auto}
#strategy-form.resale-investment .resale-category-multiple[hidden]{display:none}
.resale-category-multiple label{display:inline-flex;gap:8px;align-items:center;padding:5px;font-size:14px}.resale-category-multiple .category-children{padding-left:20px}.resale-category-multiple details{padding:4px}.resale-category-multiple summary{cursor:pointer}
.resale-investment-table td small{display:block;color:#8da8bc;margin-top:5px}.resale-investment-table th{white-space:normal}.resale-purchase-details{font-size:12px;max-width:260px;line-height:1.8}.resale-purchase-details summary{cursor:pointer;color:#81c4cc}
@media(max-width:1000px){#strategy-form.resale-investment>.controls{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.resale-submit{align-items:stretch;flex-direction:column}#strategy-form.resale-investment .cash-fields{gap:6px}.resale-investment-table{min-width:1000px}#result{overflow-x:auto}}

.resale-purchase-details .resale-purchase-line{display:flex;align-items:center;gap:5px;white-space:nowrap;margin-top:4px}.resale-purchase-line .money{white-space:nowrap;flex:none}

#strategy-form.resale-investment #days,#strategy-form.resale-investment #resale-price-basis{width:100%;height:50px;box-sizing:border-box}

/* Category rows must not inherit the filter form's column layout. */
#strategy-form.resale-investment .resale-category-multiple label{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center;justify-content:flex-start;gap:8px;width:auto;min-width:0;margin:0;padding:5px;white-space:nowrap;cursor:pointer}
#strategy-form.resale-investment .resale-category-multiple summary{display:flex;align-items:center;gap:4px;list-style:none;white-space:nowrap}
#strategy-form.resale-investment .resale-category-multiple summary::-webkit-details-marker{display:none}
#strategy-form.resale-investment .resale-category-multiple summary::before{content:'\25B8';display:inline-block;flex:0 0 12px;text-align:center}
#strategy-form.resale-investment .resale-category-multiple details[open]>summary::before{content:'\25BE'}
#strategy-form.resale-investment .resale-category-multiple summary>label{display:inline-flex;flex:0 1 auto}
#strategy-form.resale-investment .resale-category-multiple input[type=checkbox]{flex:0 0 17px;width:17px;height:17px;margin:0;padding:0}
