.finance{--finance-navy:#142b46;--finance-gold:#d39b16}.finance .finance-tabs{display:flex;gap:6px;overflow:auto;padding:10px 0 18px}.finance-tabs button{white-space:nowrap;border:1px solid var(--line);border-radius:8px;padding:10px 14px;background:#fff;cursor:pointer}.finance-tabs button[aria-selected=true]{background:var(--finance-navy);color:#fff;border-bottom:3px solid var(--finance-gold)}.finance-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-gap:14px;gap:14px;margin:18px 0}.finance-kpis .card{border-top:3px solid var(--finance-gold)}.finance-kpis strong{display:block;font-size:23px;margin-top:10px;color:var(--finance-navy)}.finance .finance-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-gap:16px;gap:16px;margin:16px 0}.finance .form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-gap:14px;gap:14px}.finance label{display:flex;flex-direction:column;gap:5px}.finance input,.finance select,.finance textarea{min-height:38px;padding:8px;border-radius:6px;width:100%}.finance .actions{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.finance table{width:100%;border-collapse:collapse;font-size:13px}.finance td,.finance th{padding:10px;text-align:left;border-bottom:1px solid var(--line)}.finance td{max-width:300px;overflow-wrap:anywhere}.finance .table-wrap{overflow:auto;margin:16px 0}.finance .muted{font-size:13px}.finance .bank-card{border-left:4px solid var(--finance-gold)}.finance .finance-form{margin:16px 0;border:2px solid var(--finance-navy)}.finance .chart{height:260px}.finance .badge{display:inline-block;padding:4px 7px;background:#edf2f7;border-radius:6px}.finance .filter-row{display:flex;gap:12px;flex-wrap:wrap;align-items:flex-end}.finance .filter-row label{max-width:240px}.finance .warning{padding:12px;background:#fff6dd;border-left:3px solid var(--finance-gold)}.finance .danger{color:#b42318}.finance details{margin:12px 0}.finance button:disabled{opacity:.5;cursor:not-allowed}@media(max-width:1000px){.finance .form-grid,.finance-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:650px){.finance .finance-grid,.finance .form-grid{grid-template-columns:1fr}.finance-kpis strong{font-size:19px}}.finance label{color:#334155}.finance .finance-form fieldset{border:0;padding:0;min-width:0}.finance .finance-tabs button:focus-visible{outline:3px solid var(--finance-gold);outline-offset:2px}.fixed-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin:16px 0}.fixed-heading h2,.fixed-heading h3{margin:0}.fixed-columns{display:grid;grid-template-columns:1fr 1fr;grid-gap:20px;gap:20px}.fixed-columns .card{min-width:0}.fixed-plans{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));grid-gap:16px;gap:16px}.fixed-plan{border:1px solid #dce4e5;border-radius:12px;padding:18px}.fixed-plan h4{margin-top:0}.fixed-plan details{margin-top:16px}.fixed-break-even{display:flex;align-items:baseline;gap:12px;margin:16px 0}.fixed-break-even strong{font-size:48px;color:#142b46}.fixed-costs section.card{margin:20px 0}.fixed-costs label{display:grid;grid-gap:8px;gap:8px}.fixed-costs input:not([type=checkbox]),.fixed-costs select,.fixed-costs textarea{width:100%;min-width:0;padding:12px;border:1px solid #c7d2db;border-radius:8px;background:white;color:#192b40}.fixed-costs .chart{height:280px}.fixed-costs .finance-kpis strong{display:block;margin-top:8px}.fixed-costs .table-wrap{max-width:100%;overflow-x:auto}.fixed-payment-backdrop{position:fixed;inset:0;background:#142b4680;z-index:110;display:flex;align-items:center;justify-content:center;padding:20px}.fixed-payment{max-height:90vh;overflow:auto;width:min(620px,100%)}.fixed-overview{margin:24px 0}.fixed-costs .fixed-editor{border:2px solid #142b46}@media(max-width:700px){.fixed-columns{grid-template-columns:1fr}.fixed-heading{align-items:stretch}.fixed-heading>.btn{width:100%}.fixed-costs .form-grid,.fixed-plans{grid-template-columns:1fr}.fixed-payment-backdrop{padding:10px}.fixed-costs .fixed-plan .actions{flex-wrap:wrap}.fixed-costs .fixed-plan .btn{white-space:normal}.fixed-break-even strong{font-size:40px}}.manual-primary .btn{padding:14px 22px;font-weight:700}.finance .category-item{display:flex;gap:10px;align-items:center;flex-wrap:wrap;padding:10px 0;border-bottom:1px solid var(--line)}.category-item span{flex:1 1;min-width:170px}@media(max-width:650px){.manual-primary .btn{flex:1 1;min-width:150px}.finance .filter-row label{max-width:100%;flex:1 1;min-width:130px}}.ledger-status{display:inline-block;padding:4px 8px;border-radius:5px;font-weight:600}.ledger-status.green{background:#e2f3e8;color:#165d34}.ledger-status.yellow{background:#fff3cd;color:#705300}.ledger-status.red{background:#fce5e5;color:#9a2424}.ledger-status.gray{background:#eee;color:#555}.finance pre{white-space:pre-wrap;overflow-wrap:anywhere}.finance td{vertical-align:top}.finance textarea{min-height:90px;width:100%}.finance .modal{position:fixed;inset:0;background:#10203388;z-index:90;display:flex;align-items:center;justify-content:center;padding:12px}.finance .modal-card{background:white;border-radius:12px;padding:18px;width:min(1000px,95vw);max-height:90dvh}.finance .modal-card .form-grid{min-width:0}.finance .modal-card button{margin:4px}.finance .modal-card .table-wrap{max-width:100%;overflow-x:auto}.finance .journal-table{max-width:100%;max-height:72vh;overflow:auto;isolation:isolate}.finance .journal-table table{table-layout:fixed;min-width:1650px;width:100%}.finance .journal-table td,.finance .journal-table th{white-space:normal;overflow-wrap:anywhere;word-break:normal;vertical-align:top;line-height:1.5;max-width:none;box-sizing:border-box}.finance .journal-table th{position:-webkit-sticky;position:sticky;top:0;z-index:1;background:#f5f7fa;color:#142b46}.finance .journal-table th:first-child{width:110px}.finance .journal-table th:nth-child(2){width:380px}.finance .journal-table th:nth-child(3){width:180px}.finance .journal-table th:nth-child(4),.finance .journal-table th:nth-child(5){width:120px}.finance .journal-table th:nth-child(6){width:180px}.finance .journal-table th:nth-child(7){width:140px}.finance .journal-table th:nth-child(8){width:150px}.finance .journal-table th:nth-child(9){width:170px}.finance .journal-table td:nth-child(2){white-space:pre-wrap}.finance .journal-table td:first-child,.finance .journal-table td:nth-child(4),.finance .journal-table td:nth-child(5){white-space:nowrap;overflow-wrap:normal}.finance .journal-table td:nth-child(4),.finance .journal-table td:nth-child(5){font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.finance .journal-table button{white-space:normal;max-width:100%}.finance .reconciliation-table{max-width:100%;max-height:72vh;overflow:auto;isolation:isolate}.finance .reconciliation-table table{table-layout:fixed;min-width:1100px;width:100%}.finance .reconciliation-table td,.finance .reconciliation-table th{white-space:normal;overflow-wrap:anywhere;vertical-align:top;line-height:1.5;box-sizing:border-box}.finance .reconciliation-table th{position:-webkit-sticky;position:sticky;top:0;z-index:1;background:#f5f7fa;color:#142b46}.finance .reconciliation-table th:first-child{width:42%}.finance .reconciliation-table th:nth-child(2){width:14%}.finance .reconciliation-table th:nth-child(3){width:26%}.finance .reconciliation-table th:nth-child(4){width:18%}.finance .reconciliation-table td:first-child{white-space:pre-wrap}.finance .reconciliation-table td:nth-child(2){font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.finance .reconciliation-table select{width:100%;min-width:0;max-width:100%}.finance .reconciliation-table button{display:block;white-space:normal;max-width:100%;margin-bottom:8px}.finance .suggestion-card{padding:14px 0;border-bottom:1px solid var(--border,#e3e6ec);overflow-wrap:anywhere}.finance .finance-grid strong{font-size:1.3rem;margin-top:8px}.finance details pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:340px;overflow:auto}.finance .modal-card{max-height:90vh;overflow:auto}.finance-tabs button[aria-current=page]{background:var(--finance-navy);color:#fff;border-bottom:3px solid var(--finance-gold)}.finance input[type=checkbox]{width:auto;min-height:0}.monthly-heading{display:flex;align-items:center;gap:20px;flex-wrap:wrap;border-top:4px solid var(--finance-gold)}.monthly-heading>div:first-child{flex:1 1;min-width:220px}.monthly-heading h2{margin-top:0}.monthly-upload{position:relative;cursor:pointer;overflow:hidden}.monthly-upload input[type=file]{position:absolute;inset:0;opacity:0;cursor:pointer}.monthly-status{display:flex;gap:18px;flex-wrap:wrap}.monthly-file{padding:16px 0;border-bottom:1px solid var(--line);display:grid;grid-gap:10px;gap:10px;overflow-wrap:anywhere}.monthly-file pre{max-height:260px;overflow:auto}.monthly-anomaly{display:flex;align-items:center;gap:14px;padding:16px 0;border-bottom:1px solid var(--line);flex-wrap:wrap}.monthly-anomaly>div{flex:1 1;min-width:200px}.monthly-editor{padding:18px;border:2px solid var(--finance-navy);border-radius:12px;margin-top:20px;overflow-wrap:anywhere}.monthly-rule{padding:12px 0;border-bottom:1px solid var(--line)}@media(max-width:650px){.monthly-heading{display:block}.monthly-heading .actions>.btn{width:100%}.monthly-status{display:grid;grid-gap:10px;gap:10px}.monthly-anomaly{display:block}.monthly-anomaly>.btn{margin-top:8px}.monthly-editor{padding:12px}}