@import url("./spp-import.css?v=2.3.13");
.finance-module *{box-sizing:border-box}.finance-module html{-webkit-text-size-adjust:100%}.finance-module body{margin:0;font:14px system-ui,sans-serif;background:#f1f5f8;color:#18364d}.finance-module header{height:78px;background:#102e48;color:white;display:flex;align-items:center;gap:22px;padding:14px 26px;position:sticky;top:0;z-index:10}.finance-module .brand{font-size:24px;font-weight:800;color:white;text-decoration:none;white-space:nowrap}.finance-module .brand span{font-weight:350}.finance-module .phase{font-size:11px;color:#afc8db}.finance-module .role{margin-left:auto;font-size:11px;min-width:0}.finance-module .role select{display:block;background:#1e425f;color:white;border-color:#54738b;max-width:240px;height:36px}.finance-module #avatar{border-radius:50%;background:#345977;width:42px;height:42px;display:grid;place-items:center;flex:none}.finance-module .shell{display:grid;grid-template-columns:220px minmax(0,1fr);min-height:calc(100dvh - 78px)}.finance-module aside{background:white;border-right:1px solid #dbe5ec;padding:26px 18px;position:sticky;top:78px;height:calc(100dvh - 78px)}.finance-module .person{font-weight:650;margin-bottom:28px}.finance-module .person small{display:block;font-weight:400;color:#678096;margin-top:5px}.finance-module nav{display:grid;gap:6px;margin-bottom:30px}.finance-module nav button{text-align:left;border:0;background:none;padding:12px;font-weight:550}.finance-module nav button.active{background:#e5f1fa;color:#0969ac}.finance-module aside label{font-size:12px}.finance-module aside select{width:100%;margin-top:8px}.finance-module .scope{font-size:11px;line-height:1.6;color:#71879a}.finance-module main{padding:30px;min-width:0;max-width:1900px;width:100%;margin:auto}.finance-module h1{font-size:27px;margin:0 0 7px;letter-spacing:-.5px}.finance-module h2{font-size:18px;margin:0 0 16px}.finance-module h3{font-size:15px}.finance-module .muted,.finance-module .subtitle{color:#698093}.finance-module .subtitle{margin:0 0 24px}.finance-module .page-heading{display:flex;align-items:center;gap:16px;margin-bottom:20px}.finance-module .page-heading>div{flex:1}.finance-module .card{padding:22px;background:white;border:1px solid #dce5ed;border-radius:12px;margin-bottom:20px;min-width:0}.finance-module .grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.finance-module .metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:20px 0}.finance-module .metric{border:1px solid #dae4ec;border-radius:10px;background:white;text-align:left;padding:18px;color:#18364d}.finance-module .metric strong{display:block;font-size:30px;margin-top:8px}.finance-module .metric.danger{border-color:#edc7c4}.finance-module .metric.warning{border-color:#efd6ae}.finance-module .metric.success{border-color:#c0dfce}.finance-module button,.finance-module input,.finance-module select,.finance-module textarea{font:inherit;border:1px solid #cbd9e3;border-radius:7px;background:white;color:#18364d;padding:9px 11px;max-width:100%}.finance-module button{cursor:pointer;min-height:40px}.finance-module button:hover{background:#eef5fa}.finance-module button.primary,.finance-module .primary{background:#087f85;border-color:#087f85;color:white}.finance-module button:disabled{cursor:not-allowed;opacity:.5}.finance-module button:focus-visible,.finance-module a:focus-visible{outline:2px solid #1379c2;outline-offset:2px}.finance-module button.link{border:0;color:#126caa;background:none;padding:5px}.finance-module .filters{display:grid;grid-template-columns:2fr repeat(3,minmax(110px,1fr));gap:10px;margin-bottom:16px}.finance-module .filters label{font-size:11px;color:#698093}.finance-module .filters input,.finance-module .filters select{display:block;width:100%;margin-top:4px;font-size:13px}.finance-module .filters .check{display:flex;align-items:center;gap:6px}.finance-module .check input{width:auto}.finance-module .table-wrap{overflow:auto;max-width:100%;overscroll-behavior:contain}.finance-module table{border-collapse:collapse;width:100%;font-size:13px}.finance-module th{text-align:left;font-size:11px;font-weight:650;letter-spacing:.02em;color:#5c778d;background:#f7fafc;padding:12px;white-space:nowrap}.finance-module td{padding:13px 12px;border-bottom:1px solid #e5edf3;vertical-align:top}.finance-module td.money{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}.finance-module tbody tr[data-order]{cursor:pointer}.finance-module tbody tr[data-order]:hover{filter:brightness(.98)}.finance-module .status-unresolved{background:#fff0ef}.finance-module .status-ordered{background:#fff5e6}.finance-module .status-warehouse{background:#edf8f0}.finance-module .status-delivered{background:white;color:#687e8e}.finance-module .badge{display:inline-block;padding:5px 8px;border-radius:6px;font-size:11px;white-space:nowrap}.finance-module .badge.UNRESOLVED{color:#a1342c;background:#ffe0dc}.finance-module .badge.ORDERED{color:#945c12;background:#ffe9c7}.finance-module .badge.WAREHOUSE{color:#267446;background:#d9efdf}.finance-module .badge.DELIVERED{color:#4b6678;background:#edf1f4}.finance-module .overdue{color:#b3362c;font-size:11px;display:block;margin-top:3px}.finance-module .empty{padding:34px;text-align:center;color:#71879a}.finance-module .actions,.finance-module .tabs{display:flex;gap:8px;flex-wrap:wrap}.finance-module .tabs{margin:20px 0;border-bottom:1px solid #dbe4ec;padding-bottom:12px}.finance-module .tabs button.active{background:#dfeef7;border-color:#8cb9d5;color:#10699e}.finance-module .form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.finance-module .field{display:flex;flex-direction:column;gap:6px;font-size:12px;min-width:0}.finance-module .field.full{grid-column:1/-1}.finance-module textarea{min-height:100px;resize:vertical}.finance-module input[readonly]{background:#f4f7fa}.finance-module .audit{padding:12px 0;border-bottom:1px solid #e5ebf0;font-size:12px}.finance-module .audit small{display:block;color:#6b8295;margin-top:5px}.finance-module .notice-warning{padding:15px;background:#fff5df;border:1px solid #ecd099;border-radius:8px;margin:15px 0;line-height:1.65}.finance-module .notice-error{background:#ffeded;border-color:#edb6b6;color:#9c2d27}.finance-module dialog{padding:0;border:1px solid #d2dfe8;border-radius:12px;width:min(720px,96vw);max-height:90dvh;color:#18364d}.finance-module dialog::backdrop{background:#10283f88}.finance-module dialog form{display:flex;flex-direction:column;max-height:90dvh}.finance-module .dialog-head{display:flex;align-items:center;gap:16px;flex:none;padding:20px 24px;border-bottom:1px solid #e0e8ef}.finance-module .dialog-head h2{margin:0;flex:1}.finance-module .dialog-head button{font-size:22px;width:44px;height:44px;padding:0}.finance-module #finance-dialog-body{padding:24px;overflow:auto;min-height:0;overscroll-behavior:contain}.finance-module dialog footer{display:flex;gap:10px;justify-content:flex-end;align-items:center;padding:16px 24px max(16px,env(safe-area-inset-bottom));border-top:1px solid #dce5eb;flex:none;background:white}.finance-module #error{color:#ae342d;flex:1;font-size:12px}.finance-module #notice{position:fixed;bottom:20px;right:20px;z-index:30;background:#12394f;color:white;max-width:420px;padding:14px 20px;border-radius:8px;box-shadow:0 8px 20px #102e4833}.finance-module .budget-input{width:120px;text-align:right}.finance-module .warning-list{max-height:210px;overflow:auto;font-size:12px}.finance-module .workbook-preview{max-height:420px;overflow:auto}.finance-module .workbook-preview td{max-width:320px;overflow-wrap:anywhere}.finance-module .project-card{text-align:left;display:block;padding:18px;width:100%;margin-bottom:10px}.finance-module .project-card strong{display:block;margin-bottom:5px}.finance-module .attachment{display:flex;align-items:center;justify-content:space-between;padding:12px;border:1px solid #d7e3ec;border-radius:8px;margin:8px 0}.finance-module .callout{border-left:3px solid #168290;padding:10px 16px;background:#eff8fa;line-height:1.6}.finance-module .mapping-grid{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(220px,1fr);gap:20px}.finance-module .status-line{font-size:12px;color:#6e8396;margin:12px 0}.finance-module .doclink{color:#0b6aab}.finance-module summary{cursor:pointer;padding:12px;background:#f4f8fb;border-radius:7px;margin-bottom:10px}.finance-module .period{font-variant-numeric:tabular-nums}.finance-module .kpi-large{font-size:28px;font-weight:650}
@media(max-width:1100px){.finance-module .shell{grid-template-columns:185px minmax(0,1fr)}.finance-module main{padding:22px}.finance-module .metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.finance-module .grid,.finance-module .mapping-grid{grid-template-columns:1fr}.finance-module .phase{display:none}.finance-module .filters{grid-template-columns:repeat(2,minmax(0,1fr))}.finance-module td,.finance-module th{padding:10px 8px}}
@media(max-width:600px),(pointer:coarse) and (max-width:960px) and (max-height:600px){.finance-module header{height:104px;padding:8px 12px;gap:8px;flex-wrap:wrap;align-content:center}.finance-module .brand{font-size:20px}.finance-module .role{flex:1;min-width:0}.finance-module .role select{max-width:100%;width:100%;font-size:12px}.finance-module #avatar{width:36px;height:36px}.finance-module .shell{display:block}.finance-module aside{position:sticky;top:104px;height:auto;padding:7px 12px;z-index:5;border-bottom:1px solid #dae4ec}.finance-module .person,.finance-module .scope,.finance-module aside>label{display:none}.finance-module nav{display:flex;gap:5px;margin:0;overflow:auto}.finance-module nav button{min-height:44px;white-space:nowrap;padding:7px 10px;font-size:12px;flex:none}.finance-module main{padding:18px 12px}.finance-module h1{font-size:23px}.finance-module .page-heading{align-items:flex-start;gap:10px}.finance-module .page-heading>button{min-width:44px;font-size:12px}.finance-module .card{padding:15px;border-radius:9px}.finance-module .metrics{gap:8px}.finance-module .metric{padding:12px;font-size:12px}.finance-module .metric strong{font-size:25px}.finance-module .filters{gap:8px}.finance-module .form-grid{grid-template-columns:1fr}.finance-module .field.full{grid-column:auto}.finance-module input,.finance-module select,.finance-module textarea{font-size:16px;min-height:44px}.finance-module .orders-table thead{display:none}.finance-module .orders-table,.finance-module .orders-table tbody{display:block}.finance-module .orders-table tr{display:grid;grid-template-columns:1fr 1fr;padding:12px;margin-bottom:10px;border:1px solid #e1e7ee;border-radius:8px}.finance-module .orders-table td{border:0;padding:5px;overflow-wrap:anywhere}.finance-module .orders-table td:nth-child(2),.finance-module .orders-table td:nth-child(3){grid-column:1/-1}.finance-module .orders-table td::before{content:attr(data-label);font-size:10px;color:#637d90;display:block;margin-bottom:3px}.finance-module .spp-table thead{display:none}.finance-module .spp-table,.finance-module .spp-table tbody{display:block}.finance-module .spp-table tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border-bottom:1px solid #dce6ed;padding:10px 0}.finance-module .spp-table td{padding:6px;border:0;text-align:left;white-space:normal}.finance-module .spp-table td:first-child{grid-column:1/-1}.finance-module .spp-table td::before{content:attr(data-label);font-size:10px;display:block;color:#678294;margin-bottom:3px}.finance-module dialog{position:fixed;inset:0;margin:0;width:100vw;max-width:none;height:100dvh;max-height:none;border:0;border-radius:0}.finance-module dialog form{height:100%;max-height:100%;min-height:0}.finance-module .dialog-head{padding:10px 14px}.finance-module #finance-dialog-body{padding:18px 14px;flex:1}.finance-module dialog footer{padding:12px 14px max(12px,env(safe-area-inset-bottom))}.finance-module dialog footer button{min-height:44px}.finance-module #notice{left:12px;right:12px;bottom:12px;max-width:none}.finance-module .tabs{flex-wrap:nowrap;overflow:auto}.finance-module .tabs button{flex:none;white-space:nowrap}.finance-module .budget-input{font-size:16px}.finance-module .workbook-preview{max-height:300px}}
@media(min-width:961px){.finance-module dialog.order-detail{margin-right:18px;margin-left:auto;width:min(700px,70vw);height:calc(100dvh - 36px);max-height:calc(100dvh - 36px)}.finance-module dialog.order-detail form{height:100%;max-height:100%}.finance-module dialog.order-detail #finance-dialog-body{flex:1}}
@media(max-width:600px),(pointer:coarse) and (max-width:960px) and (max-height:600px){.finance-module .billing-table thead,.finance-module .budget-table thead{display:none}.finance-module .billing-table,.finance-module .billing-table tbody,.finance-module .budget-table,.finance-module .budget-table tbody{display:block}.finance-module .billing-table tr,.finance-module .budget-table tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border:1px solid #dce5ec;padding:10px;margin:10px 0;border-radius:8px}.finance-module .billing-table td,.finance-module .budget-table td{border:0;padding:6px;min-width:0;overflow-wrap:anywhere}.finance-module .billing-table td::before,.finance-module .budget-table td::before{content:attr(data-label);display:block;font-size:10px;color:#6d8294;margin-bottom:4px}.finance-module .billing-table td:nth-child(2),.finance-module .budget-table td:nth-child(2){grid-column:1/-1}.finance-module .billing-table input{width:100%;min-width:0}}.finance-module main{margin:0 auto;align-self:start}.finance-module .metric{min-width:0}.finance-module .metric strong{overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.finance-module .mapping-grid>*{min-width:0}.finance-module .warning-list p,.finance-module .status-line{overflow-wrap:anywhere}
@media(max-width:1100px){.finance-module .grid,.finance-module .mapping-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:600px),(pointer:coarse) and (max-width:960px) and (max-height:600px){.finance-module .metric strong{font-size:clamp(17px,5.6vw,25px)}.finance-module .workbook-preview table,.finance-module .workbook-preview tbody{display:block}.finance-module .workbook-preview thead{display:none}.finance-module .workbook-preview tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border-bottom:1px solid #dce5ec;padding:8px 0}.finance-module .workbook-preview td{min-width:0;max-width:none;border:0;overflow-wrap:anywhere}.finance-module .workbook-preview td:nth-child(3){grid-column:1/-1}.finance-module .workbook-preview td::before{content:attr(data-label);display:block;font-size:10px;color:#6d8294;margin-bottom:4px}}

.finance-module{min-width:0}.finance-module #finance-dialog{width:min(960px,94vw);max-height:90dvh;border:1px solid #cbd5df;border-radius:12px}.finance-module #finance-dialog form{display:flex;flex-direction:column;max-height:85dvh}.finance-module #finance-dialog-body{min-height:0;overflow:auto}.finance-module #finance-dialog header,.finance-module #finance-dialog footer{display:flex;justify-content:space-between;gap:12px;padding:12px;flex-shrink:0}.finance-module .finance-scope{display:flex;justify-content:flex-end;margin-bottom:12px}

@media(max-width:600px),(pointer:coarse) and (max-width:960px) and (max-height:600px){.finance-module #finance-dialog{position:fixed;inset:var(--mobile-header-height,80px) 0 0;margin:0;width:100vw;max-width:100vw;height:calc(100dvh - var(--mobile-header-height,80px));max-height:none;border-radius:0}.finance-module #finance-dialog form{height:100%;max-height:100%;min-height:0}.finance-module #finance-dialog-body{overflow:auto;overscroll-behavior:contain;padding:12px;flex:1}.finance-module #finance-dialog footer{padding-bottom:max(12px,env(safe-area-inset-bottom));background:white}}

.finance-module #finance-dialog header{height:auto;position:static;color:#18364d;background:white}.finance-module #finance-dialog footer{position:static}

/* 2.3.7: scope controls and KPI only, shared application header remains unchanged. */
.finance-module .finance-scope{justify-content:space-between;gap:10px;align-items:center;flex-wrap:wrap;max-width:100%}
.finance-module .central-finance-tabs{display:flex;gap:5px;min-width:0}.finance-module .central-finance-tabs button{min-height:44px;padding:8px 16px}.finance-module .central-finance-tabs .active{color:#0363b4;background:#eaf3fc;border-color:#77aadb}
.finance-module .central-project-select{box-sizing:border-box;width:min(380px,100%);max-width:100%;min-width:0;min-height:44px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;font-size:16px}
.finance-module .order-kpis{display:flex;flex-wrap:wrap;gap:7px;margin:0 0 16px}.finance-module .order-kpi{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:44px;padding:7px 11px;border:1px solid #d4e1eb;border-radius:8px;background:#fff;color:#23465d;min-width:0;font-size:13px}.finance-module .order-kpi strong{font-size:19px;line-height:1.15;font-variant-numeric:tabular-nums}.finance-module .order-kpi.danger strong{color:#b23830}.finance-module .order-kpi.warning strong{color:#9b6816}.finance-module .order-kpi.success strong{color:#247749}
.nav-icon svg[data-module-icon]{display:block;width:100%;height:100%}
@media(max-width:600px){.finance-module .central-project-select{width:100%}.finance-module .order-kpi{flex:1 1 145px}.finance-module .order-kpi span{white-space:normal}.project-archive-controls p{overflow-wrap:anywhere}}
