.monthly-finance{max-width:900px;margin-inline:auto;min-width:0;color:#29445e}.monthly-finance .page-heading{margin-bottom:20px}.monthly-finance .page-heading h1{font-size:23px}.monthly-finance .page-heading p{font-size:11px;color:#8194a7}.mf-back{display:inline-flex;align-items:center;gap:5px;color:#8194a7;font-size:11px;margin-bottom:14px}.mf-back svg{width:14px;height:14px}.mf-tabs{display:flex;gap:24px;border-bottom:1px solid #e1e9f1;margin-bottom:22px}.mf-tabs a{padding:10px 0 13px;color:#8294a7;font-size:12px;border-bottom:2px solid transparent;margin-bottom:-1px}.mf-tabs a.active{color:#286cae;border-bottom-color:#286cae;font-weight:600}.mf-current{border:1px solid #dce8f3;background:#f7fafd;border-radius:12px;padding:19px 20px;margin-bottom:22px}.mf-current header,.mf-detail header{display:flex;justify-content:space-between;gap:12px;align-items:center}.mf-current header small{font-size:10px;color:#8194a7}.mf-current h2{font-size:14px;margin:5px 0 0;font-weight:600}.mf-state{display:inline-flex;align-items:center;padding:4px 7px;border-radius:5px;background:#eff3f6;color:#7b8fa3;font-size:10px;line-height:1.6}.mf-state.blue{background:#edf5fc;color:#547fa8}.mf-state.green{background:#edf7f2;color:#5c8777}.mf-state.warning{background:#fcf4e7;color:#a17a48}.mf-current-total{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:22px 0}.mf-current-total>div{display:grid;gap:8px}.mf-current-total>div>span{font-size:11px;color:#7890a7}.mf-current-total .money b{font-size:26px;font-weight:600;letter-spacing:-.5px}.mf-current-total .money small{font-size:10px}.mf-link{display:inline-flex;align-items:center;gap:5px;padding:6px 0;background:transparent;border:0;color:#4c80af;font-family:inherit;font-size:11px;cursor:pointer;white-space:nowrap;min-height:30px}.mf-link svg{width:13px;height:13px;flex-shrink:0}.mf-link:focus-visible,.mf-tabs a:focus-visible{outline:2px solid #286cae;outline-offset:3px;border-radius:3px}.mf-current footer{border-top:1px solid #e3ebf3;display:flex;justify-content:space-between;gap:10px;padding-top:13px;color:#8194a7;font-size:10px}.mf-current footer small{font-size:10px}.mf-panel{background:#fff;border:1px solid #e3eaf1;border-radius:12px;padding:0 18px;min-width:0}.mf-panel>header{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:17px 0}.mf-panel>header h2{font-size:13px;font-weight:600;margin:0}.mf-panel>header>span{font-size:10px;color:#8a9caf}.mf-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;align-items:center;gap:16px;padding:16px 0;border-top:1px solid #edf1f6;min-width:0}.mf-row>div{display:grid;justify-items:start;gap:7px;min-width:0}.mf-row strong{font-size:12px;font-weight:500;overflow-wrap:anywhere;max-width:100%}.mf-row small{font-size:10px;color:#8b9caf}.mf-row .money b{font-size:15px;font-weight:500}.mf-row .money small{font-size:9px}.mf-row-value{justify-self:start}.mf-panel .empty-state{padding:30px 10px 36px}.mf-panel .empty-state h3{font-size:13px}.mf-panel .empty-state p{font-size:11px;line-height:1.9;max-width:390px}.mf-panel .empty-icon{width:40px;height:40px}.mf-panel .empty-icon svg{width:20px;height:20px}.mf-footnote{font-size:10px;line-height:1.9;color:#8b9caf;margin:12px 0}.mf-search{margin:0 0 12px;max-width:350px}.mf-search input{font-size:11px}.mf-detail{min-width:0}.mf-detail h3{font-size:15px;margin:0 0 10px}.mf-detail header small{font-size:10px;color:#8b9caf}.mf-breakdown{margin:18px 0}.mf-breakdown>div{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:11px 0;border-bottom:1px solid #edf1f6}.mf-breakdown>div:last-child{font-weight:600;border-bottom:0}.mf-breakdown dt{font-size:11px;color:#7e93a6}.mf-breakdown dd{margin:0;font-size:12px}.mf-breakdown .money b{font-size:14px;font-weight:500}.mf-breakdown .money small{font-size:9px}.mf-orders{border-top:1px solid #e8eef4;padding-top:14px;margin-top:12px}.mf-orders summary{cursor:pointer;display:flex;align-items:center;gap:8px;list-style:none;font-size:12px;color:#587993}.mf-orders summary:before{content:'+';font-size:16px;color:#7e9bb6}.mf-orders[open] summary:before{content:'−'}.mf-orders summary::-webkit-details-marker{display:none}.mf-orders summary>span{margin-inline-start:auto;font-size:10px;color:#8b9caf}.mf-order{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 0;border-bottom:1px solid #edf1f6;font-size:11px;min-width:0}.mf-order>div,.mf-order>span{display:grid;gap:5px;min-width:0;overflow-wrap:anywhere}.mf-order small{font-size:9px;color:#8b9caf}.mf-order strong{font-size:10px;font-weight:500}.mf-order .money b{font-size:12px;font-weight:500}.mf-order .money small{font-size:8px}.mf-payments{margin:20px 0 0;padding-top:14px;border-top:1px solid #e8eef4}.mf-payments h4{font-size:12px;margin:0 0 10px;font-weight:500}.mf-detail-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:18px}.mf-detail-actions .btn{font-size:11px}
/* Existing order and settlement dialogs share the same compact rhythm. */
.finance-detail{font-size:12px;min-width:0}.finance-detail h3{font-size:14px;margin:12px 0 6px;overflow-wrap:anywhere}.finance-detail h4{font-size:12px;margin:20px 0 10px}.finance-detail dl{margin:14px 0}.finance-detail dl>div{display:flex;justify-content:space-between;gap:16px;align-items:center;padding:11px 0;border-bottom:1px solid #edf2f7}.finance-detail dt{font-size:11px;color:#7a8fa5}.finance-detail dd{margin:0;font-size:12px;overflow-wrap:anywhere;text-align:left}.finance-detail .money b{font-size:13px;font-weight:500}.finance-detail .money small{font-size:9px}.finance-detail-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:18px}.finance-detail-actions .btn{font-size:11px}.finance-allocation{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid #edf2f7;min-width:0}.finance-allocation>span{overflow-wrap:anywhere;font-size:11px}.finance-caption{font-size:11px;color:#7a8fa5;line-height:1.9;margin:4px 0 14px}.finance-warning{font-size:11px;color:#a47a45;line-height:1.9;background:#fcf6ec;border-radius:8px;padding:10px 12px}
@media(max-width:580px){.monthly-finance .page-heading h1{font-size:20px}.mf-tabs{gap:22px;margin-bottom:17px}.mf-tabs a{font-size:11px}.mf-current{padding:15px;margin-bottom:18px}.mf-current-total .money b{font-size:23px}.mf-current-total>div>span{font-size:10px}.mf-current footer{flex-wrap:wrap;font-size:9px;gap:6px}.mf-current footer small{font-size:9px}.mf-panel{padding-inline:13px}.mf-panel>header h2{font-size:12px}.mf-row{grid-template-columns:minmax(0,1fr) auto;gap:8px 14px;padding:13px 0}.mf-row>.mf-row-value{justify-items:end;justify-self:end;grid-column:2;grid-row:1 / span 2}.mf-row>.mf-link{grid-column:1;justify-self:start;font-size:10px}.mf-row strong{font-size:11px}.mf-row small{font-size:9px}.mf-row .money b{font-size:14px}.mf-panel .empty-state p{font-size:10px}.mf-order{flex-wrap:wrap;gap:8px}.mf-order .mf-link{margin-inline-start:auto}.finance-detail dl>div{gap:10px}.finance-detail dt{max-width:60%;font-size:10px}}

.mf-timeline{list-style:none;padding:0;margin:12px 0 20px}.mf-timeline li{position:relative;display:grid;gap:5px;padding:0 17px 16px 0;border-right:1px solid #e0e9f1;margin-right:4px}.mf-timeline li:last-child{padding-bottom:0;border-color:transparent}.mf-timeline li:before{content:"";position:absolute;right:-4px;top:5px;width:7px;height:7px;border-radius:50%;background:#a0bbd3}.mf-timeline strong{font-size:11px;font-weight:500;color:#607f9a}.mf-timeline time{font-size:9px;color:#8b9caf}
.fd-detail{min-width:0;color:#34536e;font-size:12px}.fd-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.fd-heading h3{font-size:15px;font-weight:600;margin:0 0 5px}.fd-heading small{font-size:10px;color:#8397aa}.fd-reference{font-size:9px;color:#94a5b5;overflow-wrap:anywhere;text-align:right;margin:7px 0 14px}.fd-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:12px 0}.fd-kpi{display:grid;align-content:start;gap:8px;padding:11px 9px;border:1px solid #e3ebf2;border-radius:8px;min-width:0;background:#fafcfe}.fd-kpi>span{font-size:10px;color:#8194a7}.fd-kpi .money{display:flex;align-items:baseline;gap:3px;flex-wrap:wrap}.fd-kpi .money b{font-size:16px;font-weight:500;letter-spacing:-.3px}.fd-kpi .money small{font-size:8px}.fd-kpi.paid{background:#f5faf7;border-color:#e0eee6}.fd-kpi.remaining{background:#f3f8fd;border-color:#deebf7}.fd-note{font-size:10px;color:#879bae;line-height:1.85;margin:8px 0 12px}.fd-calculation{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 16px;margin:10px 0 16px}.fd-calculation>div{display:flex;align-items:center;justify-content:space-between;gap:6px;padding:9px 0;border-bottom:1px solid #edf2f7;min-width:0}.fd-calculation dt{font-size:10px;color:#879bae}.fd-calculation dd{margin:0;font-size:11px}.fd-calculation .money b{font-size:12px;font-weight:500}.fd-calculation .money small{font-size:8px}.fd-section{border-top:1px solid #e6edf4;margin-top:10px;padding-top:11px}.fd-section>summary{display:flex;align-items:center;gap:6px;cursor:pointer;list-style:none;font-size:11px;font-weight:500;color:#537796;padding:2px 0 8px}.fd-section>summary::-webkit-details-marker{display:none}.fd-section>summary:before{content:'+';font-weight:400;font-size:15px;color:#91a8bd;line-height:1}.fd-section[open]>summary:before{content:'−'}.fd-section>summary>span{margin-inline-start:auto;font-size:9px;font-weight:400;color:#8c9fb2}.fd-sale{padding:11px 0;border-bottom:1px solid #edf2f7}.fd-sale:last-child{border-bottom:0}.fd-sale-title{display:flex;align-items:baseline;justify-content:space-between;gap:10px;min-width:0}.fd-sale-title strong{font-size:11px;font-weight:500;overflow-wrap:anywhere}.fd-sale-title>small{font-size:8px;color:#96a6b5;overflow-wrap:anywhere;text-align:left}.fd-sale-figures{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:9px}.fd-sale-figures>div{display:grid;gap:5px;min-width:0}.fd-sale-figures>div>small{font-size:9px;color:#8b9fb1}.fd-sale-figures .money{display:flex;gap:3px;align-items:baseline;flex-wrap:wrap}.fd-sale-figures .money b{font-size:12px;font-weight:400}.fd-sale-figures .money small{font-size:8px}.fd-sale-figures>div:last-child .money b{font-weight:500}.fd-adjustment{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 0;font-size:10px;border-bottom:1px solid #edf2f7;min-width:0}.fd-adjustment>span{overflow-wrap:anywhere}.fd-adjustment .money b{font-size:12px;font-weight:500}.fd-adjustment .money small{font-size:8px}.fd-payment-list{margin-top:10px;padding-top:12px;border-top:1px solid #e6edf4}.fd-payment-list h4{font-size:11px;font-weight:500;margin:0 0 5px}.fd-payment-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid #edf2f7;min-width:0}.fd-payment-row:last-child{border-bottom:0}.fd-payment-row>div{display:grid;gap:5px;justify-items:start;min-width:0}.fd-payment-row>div:last-child{justify-items:end}.fd-payment-row strong{font-size:9px;font-weight:400;color:#8196a9;overflow-wrap:anywhere}.fd-payment-row .money b{font-size:12px;font-weight:500}.fd-payment-row .money small{font-size:8px}.fd-payment-row .mf-state{font-size:9px;padding:3px 6px}.fd-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:15px;padding-top:12px;border-top:1px solid #e6edf4}.fd-actions .btn{font-size:10px;padding:8px 11px;min-height:32px}.fd-actions .mf-link{font-size:10px;white-space:normal}.fd-actions .icon{width:14px;height:14px}.fd-payment-total{margin-top:7px}.fd-payment-total .money b{font-size:23px;font-weight:500;letter-spacing:-.5px}.fd-payment-total .money small{font-size:10px}.fd-linked{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 0 9px;font-size:11px}.fd-linked .mf-link{font-size:10px}.fd-metadata{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 18px;margin:15px 0}.fd-metadata>div{display:grid;gap:5px;min-width:0}.fd-metadata dt{font-size:10px;color:#8a9eb0}.fd-metadata dd{margin:0;font-size:11px;color:#54738d;overflow-wrap:anywhere}.fd-cancelled{padding:12px;border:1px solid #e6edf4;border-radius:8px;background:#f7f9fc;font-size:11px;color:#8397aa;margin:12px 0}.fd-detail .mf-timeline{margin:10px 0 6px}.fd-detail .finance-warning{font-size:10px;padding:8px 10px;margin:12px 0}.fd-detail .mf-link{font-size:10px}.fd-detail .fd-section .fd-section{margin-top:2px}.fd-detail .fd-section .fd-calculation{margin-bottom:4px}
@media(max-width:580px){.fd-summary{gap:5px}.fd-kpi{padding:10px 7px;gap:7px}.fd-kpi>span{font-size:9px}.fd-kpi .money b{font-size:14px}.fd-calculation{gap:0 12px}.fd-calculation>div{flex-wrap:wrap;gap:5px}.fd-calculation .money b{font-size:11px}.fd-sale-title{flex-wrap:wrap;gap:4px}.fd-sale-title strong{font-size:10px}.fd-sale-figures>div>small{font-size:8px}.fd-sale-figures .money b{font-size:11px}.fd-sale-figures .money small{font-size:7px}.fd-kpi .money small{font-size:7px}.fd-payment-total .money b{font-size:21px}.fd-heading>.mf-state{font-size:9px}.fd-heading h3{font-size:14px}.fd-linked{flex-wrap:wrap;gap:3px}.fd-metadata{gap:12px}.fd-metadata dd{font-size:10px}.fd-payment-row .money b{font-size:11px}}
.mf-cycle-help{margin-top:16px;padding-top:12px;border-top:1px solid #e4ecf3}.mf-cycle-help>summary{font-size:11px;color:#7892a9;cursor:pointer}.mf-cycle-help p{font-size:10px;line-height:1.9;color:#879caf}.mf-cycle-help>.btn{font-size:10px;margin:8px 0}.mf-cycle-help>.mf-link{margin-inline-start:12px;font-size:10px}.fc-stages{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin:14px 0}.fc-stages span{padding:8px 4px;text-align:center;border-radius:6px;background:#f3f6f9;color:#91a1b1;font-size:10px}.fc-stages span.active{background:#edf5fd;color:#3b76ac}.fc-net{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:15px 0;padding:13px;border-radius:8px;background:#f4f9fd;font-size:11px;color:#7c94aa}.fc-net .money b{font-size:22px;font-weight:500}.fc-net .money small{font-size:9px}.finance-simulator h3{font-size:11px;font-weight:500;color:#587c9b}.fc-scenarios>p{font-size:10px;line-height:1.9;color:#7e96ac}.fc-tax{display:flex;align-items:end;flex-wrap:wrap;gap:8px;padding:12px 0;border-top:1px solid #e9eff5}.fc-tax .field{flex:1;min-width:160px;margin:0}.fc-tax .field>span{font-size:10px;color:#8197ac}.fc-tax .field>input{padding:8px 10px;min-height:34px;font-size:12px}.fc-tax .btn{font-size:10px;min-height:34px;padding:8px 10px}.fc-tax .form-error{flex-basis:100%;font-size:10px}.fc-late{margin:14px 0;padding-top:10px;border-top:1px solid #e6edf4}.finance-simulator .btn{font-size:10px;padding:8px 10px}.finance-simulator .fd-calculation{gap:0 12px}

.fd-adjustment>span>small{display:block;margin-top:5px;font-size:8px;line-height:1.8;color:#8b9fb1;overflow-wrap:anywhere}
.fd-final{display:grid;gap:9px;margin:12px 0 0;padding:17px 16px;background:#f3f8fd;border:1px solid #dce9f5;border-radius:10px}.fd-final>span{font-size:12px;font-weight:500;color:#3c709c}.fd-final>.money{display:flex;align-items:baseline;gap:5px;flex-wrap:wrap}.fd-final>.money b{font-size:25px;font-weight:600;letter-spacing:-.5px;color:#244e75}.fd-final>.money small{font-size:10px}.fd-final>small{font-size:10px;line-height:1.8;color:#8b9eb1}.fd-payment-balance{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:0 0 12px;padding:14px 2px;border-bottom:1px solid #e7eef5}.fd-payment-balance>div{display:grid;gap:7px;min-width:0}.fd-payment-balance dt{font-size:11px;color:#8297aa}.fd-payment-balance dd{margin:0}.fd-payment-balance .money{display:flex;gap:4px;align-items:baseline;flex-wrap:wrap}.fd-payment-balance .money b{font-size:15px;font-weight:500;color:#557892}.fd-payment-balance .money small{font-size:9px}.fd-payment-balance>div:last-child .money b{color:#386c9a}.fd-detail>.fd-note{font-size:10px;margin:8px 0 15px}.fd-detail>.fd-section{margin-top:7px}.fd-detail>.fd-section>summary{font-size:12px;padding:6px 0 10px}.fd-detail>.fd-section .fd-calculation{margin-bottom:6px}.fd-sale-figures>div>small{font-size:10px}.fd-sale-figures .money b{font-size:13px}.fd-sale-title strong{font-size:12px}
@media(max-width:580px){.fd-final{padding:15px 13px}.fd-final>span{font-size:12px}.fd-final>.money b{font-size:25px}.fd-final>small{font-size:9px}.fd-payment-balance{gap:12px}.fd-payment-balance dt{font-size:11px}.fd-payment-balance .money b{font-size:15px}.fd-sale-figures>div>small{font-size:9px}.fd-sale-figures .money b{font-size:12px}.fd-sale-title strong{font-size:11px}}

/* Finance follows the panel's compact operational views. */
.monthly-finance{max-width:900px;color:#34536e}.monthly-finance .page-heading{margin-bottom:14px}.monthly-finance .page-heading h1{font-size:20px}.monthly-finance .page-heading p{font-size:10px}
.monthly-finance .mf-tabs{gap:22px;padding:0;border:0;border-bottom:1px solid #e1e9f1;background:none;border-radius:0;margin-bottom:15px}
.monthly-finance .mf-tabs a{flex:none;padding:8px 0 10px;margin-bottom:-1px;border:0;border-bottom:2px solid transparent;border-radius:0;background:none;box-shadow:none;font-size:11px;font-weight:400;color:#7a90a4}.monthly-finance .mf-tabs a.active{color:#286cae;border-bottom-color:#286cae;font-weight:500}
.monthly-finance .mf-back{min-height:28px;margin-bottom:5px;font-size:10px}
.monthly-finance .mf-current{padding:13px 14px;margin-bottom:14px;background:#fff;border:1px solid #e2ebf3;border-radius:9px;box-shadow:none}
.monthly-finance .mf-current h2{font-size:12px;margin-top:3px}.monthly-finance .mf-current-total{margin:13px 0}.monthly-finance .mf-current-total>div{gap:5px}.monthly-finance .mf-current-total>div>span{font-size:10px}.monthly-finance .mf-current-total .money b{font-size:21px;font-weight:500;letter-spacing:0}.monthly-finance .mf-current footer{padding-top:10px;font-size:9px}.monthly-finance .mf-current footer small{font-size:9px}
.monthly-finance .mf-panel{padding:0 13px;border:1px solid #e2ebf3;border-radius:9px;box-shadow:none;background:#fff;overflow:hidden}
.monthly-finance .mf-panel>header{padding:12px 0;min-height:0;margin:0;border-bottom:1px solid #e8eef4;background:none}.monthly-finance .mf-panel>header h2{font-size:12px;font-weight:500;color:#34536e}.monthly-finance .mf-panel>header>span{font-size:9px;color:#8397aa;padding:0;background:none;border:0}
.monthly-finance .mf-row{grid-template-columns:minmax(0,1fr) auto auto;gap:10px;padding:10px 0;min-height:65px}.monthly-finance .mf-panel>header+.mf-row{border-top:0}.monthly-finance .mf-row>div{gap:4px;min-width:0}.monthly-finance .mf-row strong{font-size:11px;font-weight:500;line-height:1.7;color:#34536e}.monthly-finance .mf-row small{font-size:9px;line-height:1.6;color:#8397aa}
.monthly-finance .mf-row>.mf-row-value{grid-column:2;grid-row:1;justify-items:end;justify-self:end}.monthly-finance .mf-row .money b{font-size:13px;font-weight:500;letter-spacing:0}.monthly-finance .mf-row .money small{font-size:8px}.monthly-finance .mf-state{font-size:9px;padding:2px 6px;border-radius:4px;font-weight:400}
.monthly-finance .mf-link,.finance-modal-overlay .mf-link{padding:5px 3px;min-height:30px;border:0;background:none;border-radius:5px;font-size:10px;font-weight:400;color:#6085a5;gap:4px;transition:color .15s,background .15s}.monthly-finance .mf-link:hover,.finance-modal-overlay .mf-link:hover{color:#286cae;background:#f3f7fb}.monthly-finance .mf-link svg,.finance-modal-overlay .mf-link svg{width:12px;height:12px}
.monthly-finance .mf-row>.mf-detail-button{grid-column:3;grid-row:1;justify-self:end;align-self:center;padding:5px 6px;min-height:30px;border:1px solid #e4ecf3;background:#fff;border-radius:6px;font-size:10px;font-weight:400}
.monthly-finance .mf-row>.mf-detail-button:hover{background:#f6f9fc;border-color:#d5e2ee}.monthly-finance .mf-footnote{font-size:9px;margin:9px 0}
.monthly-finance .mf-cycle-help{margin-top:14px;padding:10px 0;border:0;border-top:1px solid #e3ebf2;border-radius:0;background:none}.monthly-finance .mf-cycle-help>summary{font-size:10px;min-height:25px;color:#7b93a8}.monthly-finance .fc-tax .btn{min-height:30px;font-size:10px}
.finance-modal-overlay .modal{border-radius:12px}.finance-modal-overlay .modal-header{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:9px;padding:12px 15px;border-bottom:1px solid #e7edf4;background:#fff}
.finance-modal-overlay .modal-header>div{grid-column:1;grid-row:1;min-width:0}.finance-modal-overlay .modal-header h2{font-size:13px;line-height:1.8;margin:2px 0 0;font-weight:600}.finance-modal-overlay .eyebrow{font-size:8px;color:#8a9caf}
.finance-modal-overlay .modal-header>.icon-button{grid-column:3;grid-row:1;width:28px;height:28px;min-width:28px;border:1px solid #e4ecf3;border-radius:6px;background:none}.finance-modal-overlay .modal-header>.icon-button svg{width:14px;height:14px}
.finance-dialog-back{grid-column:2;grid-row:1;display:inline-flex;align-items:center;gap:3px;font:inherit;font-size:10px;font-weight:400;color:#6487a5;padding:5px;min-height:30px;border:0;border-radius:5px;background:none;cursor:pointer;white-space:nowrap}.finance-dialog-back svg{width:12px;height:12px}.finance-dialog-back:hover{background:#f3f7fb;color:#286cae}.finance-dialog-back:focus-visible,.finance-modal-overlay summary:focus-visible{outline:2px solid #3982bc;outline-offset:2px}
.finance-modal-overlay .modal-body{padding:14px 15px 16px}.finance-modal-overlay .fd-heading h3{font-size:13px}.finance-modal-overlay .fd-heading small{font-size:9px}.finance-modal-overlay .fd-reference{margin:5px 0 10px;font-size:9px}
.finance-modal-overlay .fd-final{padding:11px 12px;gap:6px;margin-top:10px;border-radius:7px;background:#f7fafd;border-color:#e3ebf3}.finance-modal-overlay .fd-final>span{font-size:11px}.finance-modal-overlay .fd-final>.money b{font-size:20px;font-weight:500;letter-spacing:0}.finance-modal-overlay .fd-final>small{font-size:9px}.finance-modal-overlay .fd-payment-balance{padding:10px 1px;gap:12px}.finance-modal-overlay .fd-payment-balance>div{gap:5px}.finance-modal-overlay .fd-payment-balance dt{font-size:10px}.finance-modal-overlay .fd-payment-balance .money b{font-size:13px}
.finance-modal-overlay .fd-section{border:0;border-top:1px solid #e6edf4;border-radius:0;padding:0;margin-top:8px;background:none}.finance-modal-overlay .fd-section>summary{min-height:34px;padding:8px 0;font-size:11px;font-weight:400}.finance-modal-overlay .fd-section[open]>summary{margin-bottom:2px}
.finance-modal-overlay .fd-sale{padding:9px 0}.finance-modal-overlay .fd-sale-title strong{font-size:10px;font-weight:500}.finance-modal-overlay .fd-sale-figures>div>small{font-size:9px}.finance-modal-overlay .fd-sale-figures .money b{font-size:11px}.finance-modal-overlay .fd-sale-figures{margin-top:7px}
.finance-modal-overlay .fd-linked{padding:8px 0;font-size:10px}.finance-modal-overlay .fd-payment-total .money b{font-size:20px;font-weight:500;letter-spacing:0}.finance-modal-overlay .fd-metadata{margin:12px 0;gap:10px 14px}.finance-modal-overlay .fd-metadata dt{font-size:9px}.finance-modal-overlay .fd-metadata dd{font-size:10px}.finance-modal-overlay .fd-actions{padding-top:10px;margin-top:12px;gap:6px}.finance-modal-overlay .fd-actions .btn{min-height:30px;padding:5px 8px;font-size:10px;border-radius:6px}
.finance-modal-overlay{animation:finance-fade-in .2s ease-out both}.finance-modal-overlay>.modal{animation:finance-dialog-in .24s cubic-bezier(.2,.7,.25,1) both}.finance-modal-overlay.is-closing{animation:finance-fade-out .17s ease-in both;pointer-events:none}.finance-modal-overlay.is-closing>.modal{animation:finance-dialog-out .17s ease-in both}
@keyframes finance-fade-in{from{opacity:0}to{opacity:1}}@keyframes finance-fade-out{from{opacity:1}to{opacity:0}}@keyframes finance-dialog-in{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:translateY(0)}}@keyframes finance-dialog-out{from{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(10px)}}
@media(max-width:580px){.monthly-finance .mf-row{grid-template-columns:minmax(0,1fr) auto auto;gap:8px;padding:10px 0}.monthly-finance .mf-tabs{gap:20px}.monthly-finance .mf-tabs a{font-size:11px}.monthly-finance .mf-row>.mf-row-value{grid-column:2;grid-row:1}.monthly-finance .mf-row>.mf-detail-button{grid-column:3;grid-row:1;font-size:9px;min-height:30px;padding:4px 5px}.monthly-finance .mf-row .money b{font-size:12px}.monthly-finance .mf-row strong{font-size:10px}.monthly-finance .mf-row small{font-size:8px}.finance-modal-overlay .modal{border-radius:14px 14px 0 0}.finance-modal-overlay .modal-header{padding:11px 13px;gap:6px}.finance-modal-overlay .modal-body{padding:13px}.finance-modal-overlay .modal-header h2{font-size:13px}}
@media(max-width:380px){.monthly-finance .mf-panel{padding-inline:10px}.monthly-finance .mf-row{gap:6px}.monthly-finance .mf-row>.mf-detail-button{font-size:0;padding:5px;min-width:28px}.monthly-finance .mf-row .money b{font-size:11px}.finance-dialog-back{font-size:9px;gap:2px;padding:4px 2px}}
@media(prefers-reduced-motion:reduce){.finance-modal-overlay,.finance-modal-overlay>.modal,.finance-modal-overlay.is-closing,.finance-modal-overlay.is-closing>.modal{animation:none}.monthly-finance .mf-link,.finance-modal-overlay .mf-link{transition:none}}

/* Invoice and payment interiors use the same restrained detail rhythm. */
.finance-modal-overlay .fd-compact .fd-heading{align-items:center;gap:12px;padding-bottom:10px;border-bottom:1px solid #edf2f6}
.finance-modal-overlay .fd-compact .fd-heading>div:first-child{min-width:0}.finance-modal-overlay .fd-compact .fd-heading h3{font-size:12px;font-weight:500;margin:0 0 4px;line-height:1.7;overflow-wrap:anywhere}.finance-modal-overlay .fd-compact .fd-heading small{font-size:9px;line-height:1.7;color:#8296a8}
.fd-status{display:grid;gap:4px;justify-items:end;flex:none}.finance-modal-overlay .fd-status>small{font-size:8px;color:#8397aa}.finance-modal-overlay .fd-status .mf-state{font-size:9px;line-height:1.6;padding:2px 6px;border-radius:4px;white-space:normal;max-width:125px}
.finance-modal-overlay .fd-compact .fd-final{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:baseline;gap:6px 12px;padding:12px 0;margin:0;background:none;border:0;border-bottom:1px solid #e6edf4;border-radius:0}
.finance-modal-overlay .fd-compact .fd-final>span{font-size:11px;font-weight:500;color:#496d8a;line-height:1.8}.finance-modal-overlay .fd-compact .fd-final>.money{justify-self:end;gap:4px;min-width:0;max-width:100%;flex-wrap:wrap;justify-content:flex-end}.finance-modal-overlay .fd-compact .fd-final>.money b{font-size:19px;letter-spacing:0;font-weight:600;color:#2a526f;overflow-wrap:anywhere}.finance-modal-overlay .fd-compact .fd-final>.money small{font-size:8px}.finance-modal-overlay .fd-compact .fd-final>small{grid-column:1/-1;font-size:9px;color:#8a9cad;line-height:1.7}
.finance-modal-overlay .fd-compact .fd-payment-balance{margin:0;padding:10px 0;gap:12px}.finance-modal-overlay .fd-compact .fd-payment-balance>div{display:flex;align-items:baseline;justify-content:space-between;gap:6px;flex-wrap:wrap}.finance-modal-overlay .fd-compact .fd-payment-balance dt{font-size:10px}.finance-modal-overlay .fd-compact .fd-payment-balance .money b{font-size:12px;font-weight:500}.finance-modal-overlay .fd-compact .fd-payment-balance .money small{font-size:8px}
.finance-modal-overlay .fd-compact>.fd-note{font-size:9px;line-height:1.8;margin:7px 0 9px}.finance-modal-overlay .fd-compact .fd-section{margin-top:5px}.finance-modal-overlay .fd-compact .fd-section>summary{font-size:10px;min-height:32px;padding:7px 0;color:#60819b}.finance-modal-overlay .fd-compact .fd-section>summary>span{font-size:8px}.finance-modal-overlay .fd-compact .fd-section>summary:before{font-size:13px}
.finance-modal-overlay .fd-compact .fd-calculation{margin:2px 0 8px;gap:0 14px}.finance-modal-overlay .fd-compact .fd-calculation>div{padding:7px 0}.finance-modal-overlay .fd-compact .fd-calculation dt{font-size:9px}.finance-modal-overlay .fd-compact .fd-calculation .money b{font-size:11px}.finance-modal-overlay .fd-compact .fd-sale{padding:8px 0}.finance-modal-overlay .fd-compact .fd-sale-figures{gap:6px;margin-top:6px}.finance-modal-overlay .fd-compact .fd-sale-figures>div{gap:4px}.finance-modal-overlay .fd-compact .fd-sale-figures .money small{font-size:8px}
.finance-modal-overlay .fd-compact .fd-linked{padding:9px 0;border-bottom:1px solid #edf2f6;gap:8px}.finance-modal-overlay .fd-compact .fd-linked>span{font-size:10px;line-height:1.8}.finance-modal-overlay .fd-compact .fd-linked .mf-link{font-size:9px;min-height:28px;padding:4px 2px}
.finance-modal-overlay .fd-compact .fd-metadata{margin:6px 0 10px;gap:0 16px}.finance-modal-overlay .fd-compact .fd-metadata>div{display:flex;align-items:baseline;justify-content:space-between;gap:8px;padding:8px 0;border-bottom:1px solid #edf2f6;flex-wrap:wrap}.finance-modal-overlay .fd-compact .fd-metadata dt{font-size:9px;line-height:1.7}.finance-modal-overlay .fd-compact .fd-metadata dd{font-size:10px;line-height:1.7;max-width:100%;overflow-wrap:anywhere}.finance-modal-overlay .fd-compact .mf-timeline{margin:8px 0 10px}.finance-modal-overlay .fd-compact .mf-timeline strong{font-size:10px}.finance-modal-overlay .fd-compact .mf-timeline time{font-size:8px}.finance-modal-overlay .fd-compact .mf-timeline li{padding-bottom:12px}
.finance-modal-overlay .fd-compact .fd-actions{margin-top:9px;padding-top:9px;justify-content:flex-end}.finance-modal-overlay .fd-compact .fd-actions .btn{font-size:10px;font-weight:400;padding:5px 8px;min-height:30px;border-color:#e2ebf3;background:#fff;box-shadow:none}.finance-modal-overlay .fd-compact .fd-actions .btn:hover{background:#f5f9fc}.finance-modal-overlay .fd-compact .fd-actions .icon{width:12px;height:12px}
@media(max-width:400px){.finance-modal-overlay .fd-compact .fd-final{gap:5px 8px}.finance-modal-overlay .fd-compact .fd-final>span{font-size:10px}.finance-modal-overlay .fd-compact .fd-final>.money b{font-size:17px}.finance-modal-overlay .fd-compact .fd-heading small{font-size:8px}.finance-modal-overlay .fd-compact .fd-metadata{gap:0 10px}.finance-modal-overlay .fd-compact .fd-metadata>div{gap:4px}.finance-modal-overlay .fd-compact .fd-payment-balance>div{display:grid;justify-content:start;gap:4px}.finance-modal-overlay .fd-compact .fd-sale-figures .money b{font-size:10px}}

/* Compact filter bar, including the enhanced select buttons. */
.monthly-finance .mf-filters{display:grid;grid-template-columns:minmax(0,135px) minmax(0,155px) minmax(0,1fr);align-items:center;gap:7px;padding:9px 0;border-bottom:1px solid #edf2f6}
.monthly-finance .mf-filters>label{display:block;position:relative;min-width:0;margin:0}.monthly-finance .mf-filters>label>span{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.monthly-finance .mf-filters :is(select,.select-trigger){width:100%;max-width:100%;min-width:0;height:30px;min-height:30px;padding:4px 7px;font:inherit;font-size:10px;line-height:1.5;color:#64829b;border:1px solid #e6edf4;border-radius:5px;background:#fbfcfe;box-shadow:none;gap:6px;cursor:pointer}
.monthly-finance .mf-filters .select-trigger:hover{background:#f6f9fc}.monthly-finance .mf-filters .select-trigger>.icon{width:11px;height:11px;color:#91a6b8}.monthly-finance .mf-filters .select-summary{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px;line-height:1.5}.monthly-finance .mf-filters .select-summary>span{display:inline;font-size:inherit}
.monthly-finance .mf-filters :is(select,.select-trigger):focus-visible{outline:2px solid #3982bc;outline-offset:1px;box-shadow:none}
.monthly-finance .mf-filter-meta{grid-column:auto;display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:2px 7px;min-height:0}.monthly-finance .mf-filter-meta>span{font-size:8px;line-height:1.6;color:#91a4b4;white-space:nowrap}.monthly-finance .mf-filter-meta .mf-link{padding:2px 0;min-height:20px;font-size:8px;line-height:1.5;white-space:nowrap}.mf-filters+.mf-search{margin-top:8px}.mf-filters+.mf-row{border-top:0}
@media(max-width:400px){.monthly-finance .mf-filters{grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:5px 7px;padding:8px 0 6px}.monthly-finance .mf-filter-meta{grid-column:1/-1;justify-content:space-between;min-height:13px}.monthly-finance .mf-filters :is(select,.select-trigger){height:29px;min-height:29px}}

/* Only the month/payment filter menus use this compact treatment. */
.finance-filter-picker{padding:14px;background:#213b502b;backdrop-filter:blur(2px)}.finance-filter-picker .select-picker{width:320px;max-width:100%;max-height:min(430px,74dvh);border:1px solid #e2eaf1;border-radius:10px;box-shadow:0 8px 28px #18364b18}
.finance-filter-picker .select-picker>header{padding:11px 12px 9px;gap:8px}.finance-filter-picker .select-picker h2{font-size:12px;line-height:1.7;font-weight:500;color:#42647e}.finance-filter-picker .select-picker header small,.finance-filter-picker .select-picker>footer{display:none}
.finance-filter-picker .picker-close{width:26px;height:26px;min-width:26px;min-height:26px;border:1px solid #e7edf3;border-radius:5px;background:none;padding:4px}.finance-filter-picker .picker-close>.icon{width:13px;height:13px;color:#7892a7}
.finance-filter-picker .picker-search{margin:0 12px 7px;padding:0 8px;gap:5px;border:1px solid #e5ecf3;border-radius:5px;background:#fafcfe}.finance-filter-picker .picker-search>.icon{width:12px;height:12px}.finance-filter-picker .picker-search input{min-height:31px;height:31px;padding:3px 0;font-size:11px;line-height:1.5;color:#5a7891}.finance-filter-picker .picker-search:focus-within{border-color:#b6cfe2;box-shadow:none}
.finance-filter-picker .picker-options{padding:0 7px 8px;min-height:0;scrollbar-width:thin;scrollbar-color:#d6e2eb transparent}.finance-filter-picker .picker-option{min-height:32px;padding:6px 8px;margin:1px 0;gap:7px;font-size:11px;line-height:1.7;font-weight:400;border-radius:5px;color:#55758f}.finance-filter-picker .picker-option:hover{background:#f5f8fb}.finance-filter-picker .picker-option:focus-visible{outline:1px solid #90b5d3;outline-offset:-1px;background:#f3f8fc}.finance-filter-picker .picker-option[aria-selected="true"]{background:#f0f6fb;color:#2d6b9c}
.finance-filter-picker .picker-check{width:14px;height:14px;border:0;background:none;border-radius:0;color:#3477a8}.finance-filter-picker .picker-option[aria-selected="true"] .picker-check{background:none;border:0;color:#3477a8}.finance-filter-picker .picker-check>.icon{width:12px;height:12px}.finance-filter-picker .picker-empty{padding:15px 8px;font-size:10px;line-height:1.8}
@media(max-width:767px){.finance-filter-picker{align-items:flex-end;padding:12px}.finance-filter-picker .select-picker{width:320px;max-height:70dvh;border-radius:11px}.finance-filter-picker .picker-search input{font-size:16px}.finance-filter-picker .picker-options{padding-bottom:max(8px,env(safe-area-inset-bottom))}}

.wallet-transactions{min-width:0;max-width:100%}.wallet-transactions .table-wrap{min-width:0;max-width:100%;overflow:visible}.wallet-transactions table{width:100%;table-layout:fixed;white-space:normal}.wallet-transactions th,.wallet-transactions td{padding:10px 8px;overflow-wrap:anywhere;min-width:0;line-height:1.8}.wallet-transactions th:first-child{width:43%}.wallet-transactions th:nth-child(2){width:15%}.wallet-transactions th:nth-child(3){width:24%}.wallet-transactions th:last-child{width:18%}.wallet-transactions .money{display:inline-flex;align-items:baseline;flex-wrap:wrap;gap:3px;max-width:100%}.wallet-transactions .money b{font-size:12px}.wallet-transactions .money small{font-size:8px}.wallet-transactions .badge{white-space:normal;font-size:9px;line-height:1.6;padding:3px 6px;max-width:100%}
@media(max-width:580px){.wallet-transactions table,.wallet-transactions tbody{display:block;width:100%}.wallet-transactions thead{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip-path:inset(50%)}.wallet-transactions tbody tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.68fr);gap:4px 12px;padding:11px 0;border-bottom:1px solid #e9eff5;align-items:start}.wallet-transactions tbody tr:last-child{border-bottom:0}.wallet-transactions td{display:block;border:0;padding:0;font-size:10px}.wallet-transactions td:first-child{grid-column:1;grid-row:1;line-height:1.9;color:#466680}.wallet-transactions td:nth-child(2){grid-column:1;grid-row:2;font-size:9px;color:#8a9dae}.wallet-transactions td:nth-child(3){grid-column:2;grid-row:1;text-align:end;align-self:center}.wallet-transactions td:last-child{grid-column:2;grid-row:2;text-align:end}.wallet-transactions .money{justify-content:flex-end}.wallet-transactions .money b{font-size:12px;font-weight:500}.wallet-transactions .badge{font-size:8px;padding:2px 5px}}

.modal:has(#topup-form){width:380px;max-width:100%;border-radius:11px}.modal:has(#topup-form) .modal-header{padding:12px 15px;gap:10px}.modal:has(#topup-form) .modal-header h2{font-size:14px;font-weight:600;margin-top:3px}.modal:has(#topup-form) .eyebrow{font-size:8px;color:#8a9caf}.modal:has(#topup-form) .modal-header>.icon-button{width:28px;height:28px;min-width:28px;border-radius:6px}.modal:has(#topup-form) .modal-header>.icon-button svg{width:14px;height:14px}.modal:has(#topup-form) .modal-body{padding:15px}
.wallet-topup .wallet-topup-field{margin:0;gap:7px}.wallet-topup .wallet-topup-field>span{font-size:11px;color:#54748d;font-weight:500}.wallet-topup-input{display:flex;align-items:center;gap:8px;border:1px solid #dce7f0;border-radius:7px;background:#fbfcfe;padding:0 11px;min-width:0}.wallet-topup-input:focus-within{outline:2px solid #3982bc;outline-offset:1px;background:#fff}.wallet-topup .wallet-topup-input>input{flex:1;min-width:0;width:100%;min-height:42px;height:42px;padding:8px 0;border:0;border-radius:0;background:none;font:inherit;font-size:20px;font-weight:500;letter-spacing:0;color:#2c5576;outline:0;box-shadow:none;text-align:start;direction:rtl}.wallet-topup-input>span{font-size:10px;color:#8a9eaf;flex:none}.wallet-topup .wallet-topup-field>small{font-size:9px;color:#8b9eae;line-height:1.8}.wallet-topup-note{font-size:10px;line-height:1.9;color:#8096a8;margin:12px 0 4px}.wallet-topup .form-error{font-size:10px;margin:5px 0;line-height:1.8}.wallet-topup-actions{display:flex;justify-content:flex-end;align-items:center;gap:7px;padding-top:12px;margin-top:12px;border-top:1px solid #e8eef4}.wallet-topup-actions .btn{min-height:34px;padding:7px 11px;font-size:11px;font-weight:500;border-radius:6px;box-shadow:none}.wallet-topup-actions .btn-primary{flex:1;max-width:230px}.wallet-topup-actions .btn:not(.btn-primary){color:#7992a6;border-color:transparent;background:none}
@media(max-width:580px){.modal:has(#topup-form){width:100%;border-radius:13px 13px 0 0}.modal:has(#topup-form) .modal-body{padding:14px 15px max(16px,env(safe-area-inset-bottom))}.wallet-topup-actions .btn-primary{max-width:none}}

.wallet-transaction-open{display:inline-flex;align-items:center;justify-content:flex-end;gap:3px;min-height:26px;margin-top:3px;margin-inline-start:7px;padding:2px 0;border:0;background:none;color:#6c8da8;font:inherit;font-size:9px;cursor:pointer}.wallet-transaction-open .icon{width:11px;height:11px}.wallet-transaction-open:hover{color:#286cae}.wallet-transaction-open:focus-visible,.panel-global-back:focus-visible{outline:2px solid #3982bc;outline-offset:2px;border-radius:4px}.panel-global-back{display:inline-flex;align-items:center;gap:4px;padding:5px 7px;min-height:30px;flex:none;color:#6c89a1;font-size:10px;border-radius:5px;margin-inline-start:auto;white-space:nowrap}.panel-global-back .icon{width:13px;height:13px}.panel-global-back:hover{background:#f3f7fb;color:#286cae}@media(max-width:580px){.wallet-transactions td:last-child{display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:2px 7px}.wallet-transaction-open{margin:0;font-size:9px}.panel-global-back{font-size:10px;padding:4px;gap:2px}.panel-global-back .icon{width:12px;height:12px}}

/* Return belongs to the page heading, away from the global app controls. */
.content .panel-global-back{margin:0;padding:5px 7px;min-height:30px;font-size:10px;color:#6c89a1}.content .page-heading>div:last-child:has(.panel-global-back){display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:7px}.page-return{display:flex;align-items:center;margin:0 0 10px}.page-return .panel-global-back{padding-inline:0}.content .page-heading .panel-global-back{border:1px solid #e3ebf3;background:#fff;border-radius:6px}.content .page-heading .panel-global-back:hover{background:#f6f9fc}

/* Current-period detail: clearer hierarchy with restrained blue and teal. */
#modal-root .modal:has(.mf-current-detail)>.modal-header>.finance-dialog-back[data-back-styled]{display:none}
#modal-root .mf-current-detail>h3{font-size:16px;color:#244f78;margin-bottom:7px}
#modal-root .mf-current-detail>.mf-state{background:#eaf3fe;color:#3978ad;border-radius:5px;padding:4px 8px;font-size:10px}
#modal-root .mf-current-detail>.fd-calculation{padding:4px 12px;margin:14px 0 10px;background:#f5f9fd;border:1px solid #e0eaf4;border-radius:8px}
#modal-root .mf-current-detail .fd-calculation>div{border-color:#dfe9f3;padding:9px 0}
#modal-root .mf-current-detail .fd-calculation dt{color:#637f98;line-height:1.8}
#modal-root .mf-current-detail .fd-calculation .money b{color:#315f88;font-weight:600}
#modal-root .mf-current-detail .fd-calculation>div:first-child .money b{color:#1675bc}
#modal-root .mf-current-net{padding:12px 14px;background:#eaf7f4;border:1px solid #cce5de;border-radius:9px;margin:12px 0}
#modal-root .mf-current-net>div{padding:0;border:0;gap:12px}
#modal-root .mf-current-net dt{color:#367e72;font-size:12px;font-weight:600}
#modal-root .mf-current-net .money b{color:#176f62;font-size:19px;font-weight:700}
#modal-root .mf-current-net .money small{color:#4a8b80}
#modal-root .mf-current-detail>.fd-note{padding:8px 10px;background:#fff8e9;border-inline-start:3px solid #d8ba77;border-radius:4px;color:#8a744a;line-height:1.9}
#modal-root .mf-current-detail>.fd-sales{margin-top:14px;border:1px solid #d9e7f3;border-radius:8px;background:#fff;overflow-anchor:none}
#modal-root .mf-current-detail>.fd-sales>summary{padding:10px 12px;min-height:42px;background:#eef6fd;color:#286cae;font-weight:600}
#modal-root .mf-current-detail>.fd-sales>summary>span{color:#5887ac;background:#fff;padding:2px 6px;border-radius:5px}
#modal-root .mf-current-detail>.fd-sales>div{padding:0 12px}
#modal-root .mf-current-detail .fd-sale{padding:12px 0;border-color:#cfdde9}
#modal-root .mf-current-detail .fd-sale-title strong{font-size:11px;color:#375d7d;font-weight:600}
#modal-root .mf-current-detail .fd-sale-figures>div{padding:7px 6px;background:#f6f9fc;border-radius:5px}
#modal-root .mf-current-detail .fd-sale-figures>div:last-child{background:#edf7f4}
#modal-root .mf-current-detail .fd-sale-figures>div:last-child .money b{color:#2f7d6e;font-weight:600}

@media(min-width:768px){
 .monthly-finance .mf-panel:has(#finance-month-statements){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding-bottom:12px}
 .monthly-finance .mf-panel:has(#finance-month-statements)>:not(.mf-row){grid-column:1/-1}
 .monthly-finance .mf-panel:has(#finance-month-statements)>.mf-row{min-width:0;margin:0;padding:12px;border:1px solid #e2ebf3;border-radius:8px;background:#fff;box-sizing:border-box}
}

@media(min-width:768px){
 #modal-root .finance-modal-overlay .fd-compact{--statement-inset:16px}
 #modal-root .finance-modal-overlay .fd-compact>.fd-heading,
 #modal-root .finance-modal-overlay .fd-compact>.fd-final,
 #modal-root .finance-modal-overlay .fd-compact>.fd-payment-balance,
 #modal-root .finance-modal-overlay .fd-compact>.fd-section,
 #modal-root .finance-modal-overlay .fd-compact>.fd-actions{padding-inline:var(--statement-inset);box-sizing:border-box}
 #modal-root .finance-modal-overlay .fd-compact>.fd-note{margin-inline:var(--statement-inset)}
 #modal-root .finance-modal-overlay .fd-compact>.fd-payment-balance{column-gap:24px}
}

/* Desktop current period: keep the estimate and period context in one compact row. */
@media (min-width:1024px){
 .mf-current{display:grid;grid-template-columns:minmax(130px,.85fr) minmax(280px,1.8fr) minmax(165px,1fr);align-items:center;gap:22px;padding:22px 24px}
 .mf-current header{display:grid;justify-content:start;gap:10px}
 .mf-current header small{font-size:12px}
 .mf-current h2{font-size:19px;margin-top:4px}
 .mf-current header .mf-state{justify-self:start;font-size:11px}
 .mf-current-total{margin:0;gap:14px;min-width:0}
 .mf-current-total>div{gap:10px;min-width:0}
 .mf-current-total>div>span{font-size:13px}
 .mf-current-total .money{display:flex;align-items:baseline;gap:5px;flex-wrap:wrap}
 .mf-current-total .money b{font-size:32px;font-weight:650;line-height:1.4}
 .mf-current-total .money small{font-size:12px}
 .mf-current-total .mf-link{font-size:12px}
 .mf-current footer{display:grid;align-content:center;gap:9px;border-top:0;border-inline-start:1px solid #dce7f1;padding:4px 18px 4px 0;line-height:1.9}
 .mf-current footer>span{font-size:14px;font-weight:600;color:#466987}
 .mf-current footer small{font-size:11px}
}
