.sale-extra{grid-column:1/-1;margin-top:18px}.sale-extra h3{margin:12px 0}.vehicle-preview{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;background:#f4f6fa;border:1px solid #e6e9f0;padding:14px;border-radius:12px;color:#6d7483}.vehicle-preview div{display:grid;gap:4px}.vehicle-preview b{color:#172033}.profit-head{display:flex;align-items:center;justify-content:space-between}.profit-head button{border:1px solid #cad3ed;background:#eef2ff;color:#3154d8;padding:8px 12px;border-radius:9px;font-weight:700}.profit-row{display:grid;grid-template-columns:1fr 150px 40px;gap:9px;margin-bottom:9px}.percent-box{position:relative}.percent-box span{position:absolute;right:12px;top:12px;color:#6d7483}.percent-box input{padding-right:30px}.remove-profit{border:0;border-radius:9px;background:#ffe9eb;color:#cb3346;font-size:20px}.profit-note{font-size:12px;color:#6d7483}.ok{color:#15956d!important}.bad{color:#d43f4f!important}@media(max-width:720px){.vehicle-preview{grid-template-columns:1fr 1fr}.profit-row{grid-template-columns:1fr 105px 38px}}

/* v3.4.1 — Premium Vehicle Sales history list */
.sales-list-wrap{overflow-x:auto;padding:0!important;border-radius:18px!important}.sales-history-table{width:100%;min-width:1380px;border-collapse:separate;border-spacing:0}.sales-history-table thead th{position:sticky;top:0;z-index:2;padding:13px 12px;background:rgba(244,247,252,.96)!important;border-bottom:1px solid #dfe5ef;color:#68758a;font-size:10px;font-weight:800;letter-spacing:.5px;text-transform:uppercase;white-space:nowrap}.sales-history-table tbody td{padding:16px 12px;border-bottom:1px solid #e7ebf2;vertical-align:top;color:#22324d;font-size:12px}.sales-history-table tbody tr:last-child td{border-bottom:0}.sales-history-table tbody tr{transition:background .16s ease}.sales-history-table tbody tr:hover{background:rgba(243,247,255,.72)!important}.sales-history-table td>b{display:block;color:#172c50;font-size:13px}.sales-history-table td>small,.sale-vehicle-cell small,.sale-buyer-cell small,.sale-payment-cell small{display:block;margin-top:4px;color:#8390a4;font-size:10px;line-height:1.35}.sale-sl{width:48px;color:#8b96a8!important;font-weight:800}.sale-vehicle-cell,.sale-buyer-cell,.sale-payment-cell{min-width:155px}.sale-vehicle-cell b,.sale-buyer-cell b{display:block;color:#172c50;font-size:13px;line-height:1.35}.sale-money-stack{display:grid;gap:6px;min-width:150px}.sale-money-stack>span{display:flex;align-items:center;justify-content:space-between;gap:10px}.sale-money-stack em{color:#8490a2;font-size:10px;font-style:normal}.sale-money-stack b{color:#253b60;font-size:11px;white-space:nowrap}.sale-cost-total{margin-top:2px;padding-top:6px;border-top:1px dashed #d9e0eb}.sale-cost-total b{font-size:12px}.sale-profit-line{margin-top:3px;padding:7px 8px;border-radius:9px}.sale-profit-line.profit{background:#e8f8f0}.sale-profit-line.profit em,.sale-profit-line.profit b{color:#0d8c58}.sale-profit-line.loss{background:#ffebee}.sale-profit-line.loss em,.sale-profit-line.loss b{color:#c7354b}.sale-distribution{display:grid;gap:6px;min-width:205px}.sale-share{display:grid;grid-template-columns:minmax(85px,1fr) 42px auto;align-items:center;gap:7px;padding:6px 8px;border:1px solid #e2e7f0;border-radius:9px;background:rgba(248,250,253,.78)}.sale-share span{overflow:hidden;color:#465672;font-size:10px;font-weight:700;text-overflow:ellipsis;white-space:nowrap}.sale-share b{color:#3154ce;font-size:10px;text-align:right}.sale-share em{color:#182f55;font-size:10px;font-style:normal;font-weight:800;text-align:right;white-space:nowrap}.sale-empty-note{color:#8c97a7;font-size:10px}.sale-payment-cell{display:grid;gap:7px}.sale-payment-badge{display:inline-flex;justify-self:start;padding:5px 9px;border-radius:999px;font-size:9px;font-weight:850;letter-spacing:.3px;text-transform:uppercase}.sale-payment-badge.paid{background:#e1f7eb;color:#087c4c}.sale-payment-badge.partial{background:#fff2d5;color:#9a6500}.sale-payment-badge.due{background:#ffe5e9;color:#b82b42}.sale-actions-cell{min-width:130px}.sale-actions-cell .record-actions{margin-top:0;display:flex;gap:6px}.sale-actions-cell .record-actions button{padding:7px 9px;font-size:10px}@media(max-width:720px){.sales-list-wrap{margin-left:-4px;margin-right:-4px;border-radius:14px!important}.sales-history-table{min-width:1280px}.sales-history-table thead th,.sales-history-table tbody td{padding-left:10px;padding-right:10px}}

/* v3.10.0 — Unsettled profit workflow */
.section-subtitle{margin:4px 0 0;color:#7b8494;font-size:13px}.unsettled-head-stat{min-width:92px;padding:10px 15px;border:1px solid #e4e8f0;border-radius:14px;background:#fff;text-align:center}.unsettled-head-stat small{display:block;color:#7a8393;font-size:10px;text-transform:uppercase;letter-spacing:.8px}.unsettled-head-stat b{font-size:22px;color:#253b70}.unsettled-summary{display:flex;justify-content:flex-end;margin:-8px 0 16px}.unsettled-summary article{min-width:250px;padding:16px 18px;border-radius:16px;background:linear-gradient(135deg,#17284f,#29498a);color:#fff;box-shadow:0 12px 30px rgba(28,49,96,.18)}.unsettled-summary small{display:block;opacity:.72;margin-bottom:5px}.unsettled-summary b{font-size:23px}.unsettled-summary b.loss,.unsettled-table .loss,.settlement-summary .loss{color:#d04444}.unsettled-table td small{display:block;color:#818999;margin-top:4px}.settle-profit-btn{padding:9px 14px!important;box-shadow:none!important}.settlement-badge{display:inline-flex;align-items:center;border-radius:999px;padding:6px 10px;font-size:11px;font-weight:800}.settlement-badge.settled{background:#e8f6ef;color:#17805c}.settlement-badge.pending{background:#fff3d9;color:#a56500}.profit-settlement-modal{width:min(860px,calc(100% - 28px))}.profit-settlement-modal form{padding:25px}.settlement-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:20px}.settlement-summary>div{padding:14px;border-radius:13px;border:1px solid #e4e8f0;background:#f9fbfe}.settlement-summary small{display:block;color:#7c8492;font-size:10px;text-transform:uppercase;letter-spacing:.5px;margin-bottom:5px}.settlement-summary b{font-size:15px}.settlement-summary .profit{background:#eef6ff;border-color:#d6e6fb}.settlement-funding{border:1px solid #e4e8f0;border-radius:15px;padding:16px;margin-bottom:18px}.settlement-funding h3{margin:0 0 10px}.settlement-investor{display:flex;justify-content:space-between;gap:20px;padding:9px 0;border-bottom:1px solid #edf0f4}.settlement-investor:last-child{border-bottom:0}.settlement-row{display:grid;grid-template-columns:minmax(190px,1fr) 130px 170px 38px;gap:10px;align-items:center;margin:10px 0}.settlement-row select,.settlement-row input{margin:0}.settlement-live{padding:9px 12px;border-radius:11px;background:#f5f7fb}.settlement-live small{display:block;color:#788190;font-size:10px}.settlement-live b{font-size:14px}.settlement-remove{border:0;width:36px;height:36px;border-radius:10px;background:#fff0f0;color:#bd2c2c;font-size:18px;cursor:pointer}.settlement-total{display:flex;justify-content:flex-end;align-items:center;gap:16px;margin-top:14px;padding-top:13px;border-top:1px solid #e6e9ef}.settlement-total span{color:#707987}.settlement-total b{font-size:20px}.settlement-total b.ok{color:#18855e}.settlement-total b.bad{color:#c03b3b}@media(max-width:720px){.settlement-summary{grid-template-columns:1fr 1fr}.settlement-row{grid-template-columns:1fr 100px}.settlement-live{grid-column:1/2}.settlement-remove{grid-column:2/3;grid-row:2}.unsettled-summary{justify-content:stretch}.unsettled-summary article{width:100%}}

/* v3.12.10 — premium fixed-participant profit settlement */
.profit-settlement-modal{width:min(980px,calc(100% - 24px));border:0;border-radius:24px;padding:0;overflow:hidden;box-shadow:0 28px 80px rgba(18,34,70,.28)}
.profit-settlement-modal::backdrop{background:rgba(11,20,40,.55);backdrop-filter:blur(5px)}
.profit-settlement-modal form{padding:0;background:#fff}
.profit-settlement-modal .modal-head{padding:22px 26px;background:linear-gradient(135deg,#13264f,#274d91);color:#fff;margin:0;border:0}
.profit-settlement-modal .modal-head h2{color:#fff;margin:2px 0 0;font-size:25px}.profit-settlement-modal .modal-head .eyebrow{color:#bcd0f4;margin:0}
.profit-settlement-modal .modal-head>button{background:rgba(255,255,255,.12);color:#fff;border:1px solid rgba(255,255,255,.18);border-radius:12px;width:40px;height:40px;font-size:22px}
.profit-settlement-modal #settlementSummary,.profit-settlement-modal .settlement-profit-head,.profit-settlement-modal #settlementRows,.profit-settlement-modal .settlement-total{margin-left:26px;margin-right:26px}
.profit-settlement-modal #settlementSummary{margin-top:24px}.profit-settlement-modal .settlement-funding{background:#f8faff}
.settlement-profit-head{display:flex;align-items:flex-end;justify-content:space-between;padding:17px 18px;margin-top:18px!important;border:1px solid #dfe7f4;border-radius:16px;background:linear-gradient(180deg,#f9fbff,#f3f7fd)}
.settlement-profit-head h3{margin:2px 0 3px;font-size:17px;color:#172a50}.settlement-profit-head small{color:#758096;font-size:12px}.settlement-profit-head .eyebrow{margin:0;color:#5271aa;font-size:9px;font-weight:900;letter-spacing:1.2px}
#settlementRows{margin-top:12px!important;display:grid;gap:10px}
.settlement-row{display:grid;grid-template-columns:minmax(260px,1.7fr) 125px 180px 92px;gap:14px;align-items:center;margin:0;padding:14px 15px;border:1px solid #e1e7f0;border-radius:16px;background:#fff;box-shadow:0 5px 16px rgba(24,49,91,.045)}
.settlement-person{min-width:0;display:flex;align-items:center;gap:12px}.settlement-person>div{min-width:0}.settlement-person b{display:block;white-space:normal;overflow:visible;text-overflow:clip;line-height:1.25;color:#1d2e50;font-size:14px;word-break:break-word}.settlement-person small{display:block;margin-top:3px;color:#7a8495;font-size:10px;text-transform:uppercase;letter-spacing:.55px;font-weight:700}
.settlement-avatar{flex:0 0 38px;width:38px;height:38px;border-radius:12px;display:grid;place-items:center;background:#eaf1ff;color:#274d91;font-weight:900;font-size:15px}
.settlement-row .percent-box{position:relative}.settlement-row .percent-box input{height:44px;padding-right:30px;text-align:right;font-weight:800;border:1px solid #dbe2ed;border-radius:12px;background:#fbfcff}.settlement-row .percent-box span{position:absolute;right:12px;top:50%;transform:translateY(-50%);color:#7c8798;font-weight:800}
.settlement-row .settlement-live{min-height:44px;padding:7px 12px;border-radius:12px;background:#f3f7fd;border:1px solid #e2e9f4}.settlement-row .settlement-live small{font-size:9px;text-transform:uppercase;letter-spacing:.5px}.settlement-row .settlement-live b{display:block;margin-top:2px;color:#173a70;font-size:14px;white-space:nowrap}
.settlement-required,.settlement-linked{justify-self:end;display:inline-flex;align-items:center;justify-content:center;min-width:78px;padding:7px 10px;border-radius:999px;font-size:9px;font-weight:900;text-transform:uppercase;letter-spacing:.5px}.settlement-required{background:#eaf2ff;color:#24569c}.settlement-linked{background:#edf8f3;color:#247455}
.profit-settlement-modal .settlement-total{margin-top:14px!important;padding:16px 4px 18px;border-top:1px solid #e6ebf2}.profit-settlement-modal .modal-actions{padding:16px 26px 22px;margin:0;background:#f8faff;border-top:1px solid #e7ebf2;position:sticky;bottom:0}
@media(max-width:760px){.settlement-row{grid-template-columns:minmax(0,1fr) 92px}.settlement-person{grid-column:1/3}.settlement-live{grid-column:1/2}.settlement-required,.settlement-linked{grid-column:2/3;grid-row:3}.profit-settlement-modal #settlementSummary,.profit-settlement-modal .settlement-profit-head,.profit-settlement-modal #settlementRows,.profit-settlement-modal .settlement-total{margin-left:14px;margin-right:14px}.profit-settlement-modal .modal-head,.profit-settlement-modal .modal-actions{padding-left:16px;padding-right:16px}}

/* v3.12.16 — dual cash + profit settlement */
.unsettled-dual-actions{display:flex;flex-direction:column;gap:7px;min-width:118px}.settled-action-label{display:inline-flex;justify-content:center;padding:7px 10px;border-radius:9px;background:#e8f6ef;color:#17805c;font-size:10px;font-weight:800}.settle-cash-btn{background:linear-gradient(135deg,#173b72,#285ca8)!important;box-shadow:none!important}.cash-settlement-modal{width:min(940px,calc(100% - 24px))}.cash-settlement-row{display:grid;grid-template-columns:minmax(220px,1.4fr) 190px 190px;gap:14px;align-items:center;padding:14px 0;border-bottom:1px solid #e8edf5}.cash-settlement-row:last-child{border-bottom:0}.cash-settlement-row label{margin:0}.cash-settlement-row input{margin:5px 0 0}.cash-invested-box{padding:10px 12px;border-radius:12px;background:#f4f7fc;border:1px solid #e2e8f2}.cash-invested-box small,.cash-settlement-row label small{display:block;color:#7b8799;font-size:10px}.cash-invested-box b{display:block;margin-top:4px;color:#17345f;font-size:14px}.cash-settlement-total{display:grid;grid-template-columns:1fr auto 1fr auto;gap:10px 16px}.cash-settlement-total span:nth-of-type(2){margin-left:20px}.cash-settlement-modal .funding-validation{margin:10px 0 0;text-align:right;font-weight:700}.cash-settlement-modal .funding-validation.ok{color:#14805b}.cash-settlement-modal .settlement-person{min-width:0}@media(max-width:720px){.cash-settlement-row{grid-template-columns:1fr}.cash-settlement-total{grid-template-columns:1fr auto}.cash-settlement-total span:nth-of-type(2){margin-left:0}.unsettled-dual-actions{min-width:105px}}

/* v3.14.3.2 — Profit settlement visibility fix
   The modal used overflow:hidden while its footer was sticky. On common
   768/900px laptop heights the third participant row could sit behind the
   footer. Keep the whole dialog scrollable so every linked investor remains
   visible and editable. */
.profit-settlement-modal{max-height:calc(100dvh - 24px);overflow-y:auto;overflow-x:hidden}
.profit-settlement-modal form{min-height:0}
.profit-settlement-modal .modal-head{position:sticky;top:0;z-index:6}
.profit-settlement-modal .modal-actions{z-index:7}
.profit-settlement-modal #settlementRows{padding-bottom:8px}
@supports not (height:100dvh){.profit-settlement-modal{max-height:calc(100vh - 24px)}}


/* v3.14.3.3 — investment amount is shown inline under every profit participant. */
.profit-settlement-modal .settlement-person small{color:#69758a;font-size:10px;font-weight:800;letter-spacing:.42px}
.profit-settlement-modal .settlement-profit-head{margin-top:0!important}

/* v3.14.3.4 — dated partial payments + booking workflow */
#saleModal .sale-payment-columns,#saleModal .sale-payment-row{display:grid;grid-template-columns:140px 115px 135px minmax(130px,.9fr) minmax(160px,1.15fr) 38px;gap:8px;align-items:center}#saleModal .sale-payment-columns{margin:10px 0 4px;padding:0 2px;color:#7d8798;font-size:9px;font-weight:850;letter-spacing:.55px;text-transform:uppercase}#saleModal .sale-payment-row{margin:8px 0}
.sale-payment-row input,.sale-payment-row select{margin:0;min-width:0}
.sale-payment-match.booking{color:#9a6500!important}
.settlement-badge.booked{background:#eaf1ff;color:#275aa3}
.booking-unsettled-row{background:linear-gradient(90deg,rgba(235,243,255,.52),rgba(255,255,255,0))}
.booking-received{color:#14805b}.booking-due{color:#b06b00}
.booking-payment-btn{white-space:nowrap;box-shadow:none!important}
.badge.booked{background:#eaf1ff!important;color:#285a9e!important;border-color:#d6e4fa!important}
.vehicle-view-status.booked{background:#eaf1ff!important;color:#285a9e!important}
@media(max-width:900px){#saleModal .sale-payment-columns{display:none}#saleModal .sale-payment-row{grid-template-columns:1fr 1fr}.sale-payment-row button{justify-self:end}.sale-payment-row input,.sale-payment-row select{width:100%}}
