:root{--navy:#163b4a;--gold:#b49a65;--ink:#233943;--muted:#647780;--line:#dce4e7;--bg:#f3f5f5;--green:#23705a;--red:#ad493e}*{box-sizing:border-box}body{margin:0;background:var(--bg);font:16px Arial,sans-serif;color:var(--ink)}aside{position:fixed;inset:0 auto 0 0;width:258px;background:white;border-right:1px solid var(--line);padding:34px 22px;display:flex;flex-direction:column}aside img{width:204px;height:70px;object-fit:contain}.module{font-size:11px;letter-spacing:1.5px;color:var(--muted);margin:32px 9px 18px}nav{display:grid;gap:8px}nav button{background:none;text-align:left;border:0;padding:15px 16px;font-size:16px;color:var(--muted);display:flex;gap:14px;align-items:center}nav button.active{background:var(--navy);color:white;border-radius:5px}nav svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.7;flex:none}.sidefoot{margin-top:auto;font-size:12px;line-height:1.8;border-top:1px solid var(--line);padding-top:20px}.sidefoot small{font-size:11px}.version{color:var(--muted)}main{margin-left:258px}header{height:76px;display:flex;align-items:center;justify-content:space-between;background:white;padding:0 38px;border-bottom:1px solid var(--line);font-size:12px;letter-spacing:1px}.local{font-size:12px;color:var(--muted);letter-spacing:0}.workspace{padding:32px 38px;max-width:1800px;margin:auto}.heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px;gap:20px}h1{font-size:34px;letter-spacing:-1px;margin:8px 0 10px}h2{font-size:20px;margin:0}h3{font-size:17px;margin:0 0 12px}p{line-height:1.5}.overline{font-size:11px;letter-spacing:1.6px;font-weight:bold;color:var(--gold);margin:0}#sub{color:var(--muted);margin:0;font-size:15px}.month{min-width:175px;color:var(--muted);font-size:13px}.month input{margin-top:8px}.notice{display:flex;gap:18px;border:1px solid var(--line);border-left:3px solid var(--gold);background:white;font-size:13px;padding:14px 18px;line-height:1.5;margin-bottom:26px}.notice b{white-space:nowrap}.notice span{color:var(--muted)}button,input,select,textarea{font:inherit}button{cursor:pointer;border:1px solid var(--line);border-radius:4px;padding:11px 15px;background:white;color:var(--ink);font-size:14px;min-height:42px}button:hover{filter:brightness(.96)}button:disabled{opacity:.45;cursor:not-allowed}.primary{background:var(--navy);color:white;border-color:var(--navy)}.small{padding:7px 10px;font-size:13px;min-height:34px}.link{border:0;background:transparent;color:var(--navy)}input,select,textarea{width:100%;padding:11px;border:1px solid #ccd7dc;background:white;color:var(--ink);border-radius:4px;font-size:15px;min-height:44px}textarea{height:88px}input:focus,select:focus,button:focus-visible{outline:2px solid var(--gold);outline-offset:2px}.kpis{display:grid;grid-template-columns:repeat(4,1fr);background:var(--navy);color:white;margin-bottom:25px;border-radius:6px;padding:26px 0}.kpi{padding:0 25px;border-right:1px solid #52707b}.kpi:last-child{border:0}.kpi label{display:block;font-size:12px;letter-spacing:.6px;color:#d3dfe2}.kpi strong{display:block;font-size:28px;letter-spacing:-.8px;margin:18px 0 10px;white-space:nowrap}.kpi small{font-size:12px;color:#c1d0d6}.grid{display:grid;grid-template-columns:1.5fr 1fr;gap:22px}.panel{background:white;border:1px solid var(--line);border-radius:6px;margin-bottom:23px;overflow:hidden}.panelhead{padding:22px 24px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:12px}.panelhead p{font-size:13px;margin:7px 0 0;color:var(--muted)}.body{padding:24px}.toolbar{display:flex;gap:12px;align-items:center;justify-content:space-between;margin:0 0 20px;flex-wrap:wrap}.filters{display:flex;gap:12px}.filters select{width:230px}.tablewrap{overflow:auto}table{border-collapse:collapse;width:100%;font-size:14px}th{text-align:left;font-size:11px;letter-spacing:.6px;color:var(--muted);background:#f8fafa;font-weight:600;padding:15px 20px;white-space:nowrap}td{padding:18px 20px;border-top:1px solid #e7edef;vertical-align:middle;line-height:1.5}td small{display:block;color:var(--muted);font-size:12px}.money{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}.actions{display:flex;gap:7px;flex-wrap:wrap}.badge{padding:6px 9px;border-radius:4px;font-size:12px;display:inline-block;white-space:nowrap;background:#eef2f3;color:#61747d}.badge.ok{background:#e7f3ed;color:var(--green)}.badge.warn{background:#fbf1de;color:#916c25}.badge.bad{background:#faeae6;color:var(--red)}.empty{padding:48px 24px;text-align:center;color:var(--muted);font-size:15px;line-height:1.8}.empty strong{display:block;color:var(--ink);font-size:19px;margin-bottom:8px}.statrow{display:flex;justify-content:space-between;padding:16px 0;border-bottom:1px solid var(--line);gap:12px}.statrow:last-child{border:0}.statrow strong{white-space:nowrap}.bars{display:grid;gap:24px}.barlabel{display:flex;justify-content:space-between;font-size:14px;margin-bottom:10px}.bartrack{height:14px;background:#edf1f2;border-radius:2px;overflow:hidden}.bartrack i{display:block;height:100%;background:var(--navy);min-width:0}.bartrack.gold i{background:var(--gold)}.note{font-size:13px;color:var(--muted);line-height:1.65}.dre td:first-child{min-width:230px}.dre tr.total{background:#eaf0f2;font-weight:bold}.dre tr.grand{background:var(--navy);color:white;font-weight:bold;font-size:17px}.negative{color:var(--red)}dialog{border:0;padding:0;width:min(680px,94vw);max-height:90vh;border-radius:7px;box-shadow:0 20px 80px #142b3f44;color:var(--ink)}dialog::backdrop{background:#18384488;backdrop-filter:blur(3px)}.modalhead{display:flex;justify-content:space-between;align-items:center;padding:23px 27px;border-bottom:1px solid var(--line)}.formbody{padding:25px 27px;display:grid;grid-template-columns:1fr 1fr;gap:19px}label.field{font-size:13px;color:var(--muted);display:block}label.field input,label.field select,label.field textarea{margin-top:8px}.full{grid-column:1/-1}.formfoot{padding:18px 27px;display:flex;justify-content:flex-end;gap:12px;border-top:1px solid var(--line)}.check{display:flex;align-items:center;gap:10px;font-size:14px}.check input{width:18px;min-height:18px}.steps{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:24px}.step{padding:18px;background:white;border:1px solid var(--line);border-radius:4px;font-size:14px}.step b{display:block;font-size:24px;margin-bottom:8px;color:var(--navy)}.routine{display:grid;grid-template-columns:repeat(5,1fr);gap:8px}.routine button{text-align:left;font-size:13px;padding:12px;min-height:70px}.routine button span{display:block;font-size:11px;margin-top:7px;color:var(--muted)}.contracthead{padding:23px 24px;display:flex;justify-content:space-between;align-items:center;gap:20px}.contracthead p{margin:7px 0;color:var(--muted);font-size:14px}.contractbody{padding:0 24px 24px}.scope li{margin-bottom:14px;line-height:1.6}footer{font-size:12px;color:var(--muted);padding:12px 0}#toast{position:fixed;bottom:25px;right:25px;background:var(--navy);color:white;padding:16px 22px;border-radius:4px;display:none;z-index:20;max-width:420px}.error{color:var(--red);font-size:13px}.centerchips{display:flex;flex-wrap:wrap;gap:8px}.chip{padding:8px 12px;background:#f0f4f5;border:1px solid var(--line);font-size:13px;border-radius:3px}a{color:var(--navy)}@media(min-width:1650px){.kpi strong{font-size:33px}}@media(max-width:1150px){aside{width:220px;padding:25px 15px}aside img{width:185px}main{margin-left:220px}.workspace{padding:26px}.kpis{grid-template-columns:1fr 1fr;gap:26px}.kpi:nth-child(2){border:0}.grid{grid-template-columns:1fr}.routine{grid-template-columns:repeat(3,1fr)}.steps{grid-template-columns:1fr 1fr}}@media(max-width:700px){aside{position:static;width:100%;padding:14px}.module,.sidefoot{display:none}aside img{width:155px;height:55px}nav{display:flex;overflow:auto;gap:4px;margin-top:12px}nav button{white-space:nowrap;padding:12px;font-size:14px}nav svg{display:none}main{margin:0}header{height:50px;padding:0 18px;font-size:10px}.local{font-size:10px}.workspace{padding:22px 16px}.heading{align-items:flex-start;flex-direction:column}h1{font-size:29px}.month{width:100%}.notice{flex-direction:column;gap:5px}.kpi{padding:0 15px}.kpi strong{font-size:24px}.kpi label{font-size:10px}.panelhead{padding:18px}.body{padding:18px}.routine{grid-template-columns:1fr 1fr}.formbody{grid-template-columns:1fr}.full{grid-column:auto}.filters{flex-direction:column;width:100%}.filters select{width:100%}.contracthead{align-items:flex-start;flex-direction:column}.steps{gap:8px}.step{padding:14px}}

button.danger{color:#a63228;border-color:#d9a9a4;background:#fff8f7}button.danger:hover{background:#fce9e6}

[hidden]{display:none!important}aside nav{min-height:0;overflow-y:auto} .field textarea{margin-top:8px}

.pending-balance{display:block;font-size:1.15rem;font-weight:700;color:var(--navy);margin-bottom:6px;white-space:nowrap}

.cash-total{display:grid;grid-template-columns:1.25fr 1fr;gap:18px 40px;padding:25px 28px;border-top:3px solid var(--gold)}.cash-total-main .overline{font-size:14px;color:var(--navy);letter-spacing:1px}.cash-total-value{display:block;margin-top:16px;font-size:36px;font-weight:700;color:var(--navy);letter-spacing:-1px;font-variant-numeric:tabular-nums}.cash-total-value.negative{color:var(--red)}.cash-total-main .note{margin:9px 0 0}.cash-total-detail{display:grid;grid-template-columns:1fr auto;align-content:center;gap:18px 20px;border-left:1px solid var(--line);padding-left:30px;font-size:16px}.cash-total-detail strong{text-align:right;white-space:nowrap}.cash-total-note{grid-column:1/-1;margin:0;padding-top:16px;border-top:1px solid var(--line)}.competence-label{font-size:14px;color:var(--muted);margin:0 0 13px;font-weight:bold}@media(max-width:700px){.cash-total{grid-template-columns:1fr;padding:22px 18px}.cash-total-value{font-size:31px}.cash-total-detail{border-left:0;border-top:1px solid var(--line);padding:18px 0 0;font-size:15px}}

.dre-detail{min-width:1120px}.dre-detail td{white-space:nowrap}.dre-detail td:nth-child(3){white-space:normal;min-width:210px}.dre-detail td:nth-child(5){white-space:normal;min-width:160px}.dre-detail tfoot td{font-weight:bold;background:#f8fafa}.dre-detail tfoot .dre-detail-result th,.dre-detail tfoot .dre-detail-result td{background:var(--navy);color:white;font-size:15px}.dre-detail tfoot th{font-size:13px}
.dre-detail thead th:last-child,.dre-detail tbody td:last-child,.dre-detail tfoot td:last-child{position:sticky;right:0;background:#fff;box-shadow:-3px 0 5px #163b4a0d;min-width:160px}.dre-detail thead th:last-child,.dre-detail tfoot td:last-child{background:#f8fafa}.dre-detail tfoot .dre-detail-result td:last-child{background:var(--navy)}

.bank-ledger{min-width:1120px}.movement-history{min-width:580px}.movement-history td{font-size:14px}.bank-ledger td:nth-child(3){min-width:200px}.bank-ledger td:nth-child(5){min-width:220px}

.allocation-editor{border:1px solid var(--line);padding:20px;margin:4px 0;border-radius:6px}.allocation-editor legend{font-size:16px;font-weight:700;padding:0 8px}.allocation-editor select{width:100%}.allocation-row{display:grid;grid-template-columns:1fr 170px;gap:20px;align-items:center;border-top:1px solid var(--line);padding:12px 0}.allocation-percent{font-size:14px}.allocation-percent input{width:100%;margin-top:5px}.allocation-total{font-size:16px;font-weight:700}.allocation-warning{color:var(--red)!important;font-weight:bold}@media(max-width:700px){.allocation-row{grid-template-columns:1fr 125px;gap:10px}.allocation-editor{padding:14px}}

.masked-number{font-variant-numeric:tabular-nums}.masked-number[data-mask="money"]{text-align:right}

.customer-results{min-width:1250px}.customer-results th,.customer-results td{min-width:110px}.customer-results td:first-child{min-width:220px}.customer-results tfoot{background:#f3f6f6}.contract-customer-new{border:1px solid var(--line);border-radius:6px;padding:16px}.contract-customer-new .formbody{padding:0}

.report-filters{padding:22px;margin-bottom:24px}.report-filters>div{display:flex;align-items:flex-end;flex-wrap:wrap;gap:16px}.report-filters label{display:flex;flex-direction:column;gap:8px;font-size:14px;min-width:160px}.report-filters input,.report-filters select{font-size:16px;padding:12px}.report-filters .note{margin-bottom:0}.report-filters .error:empty{display:none}@media(max-width:700px){.report-filters{padding:16px}.report-filters label{flex:1 1 100%}.report-filters button{flex:1}}

.cash-operations{min-width:760px}.cash-operations td:first-child{min-width:280px}.cash-operations .total td{background:#e9f2ef;font-size:16px}.cash-operations td{font-size:15px}

.regime-pills{display:flex;gap:8px;justify-content:flex-end}.regime-pills button{border-radius:999px;min-height:48px;padding:12px 24px;font-size:16px;font-weight:bold}.regime-pills button[aria-pressed="true"]{background:var(--navy);color:white;border-color:var(--navy);box-shadow:0 2px 5px #163b4a22}.dashboard-period.report-filters{padding:0 0 18px;margin:0 0 20px;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent}.dashboard-period.report-filters>div{gap:12px}.dashboard-period .note{font-size:14px}.dashboard-period [hidden]{display:none!important}#analysisHeadingControls{margin-left:auto}#analysisHeadingControls[hidden],#analysisPeriodControls[hidden]{display:none}@media(max-width:700px){#analysisHeadingControls{width:100%;margin-left:0}.regime-pills{justify-content:flex-start}.regime-pills button{flex:1}.dashboard-period.report-filters label{flex:1 1 150px}}

#analysisHeadingControls{display:flex;flex-direction:column;align-items:stretch;gap:14px;width:min(100%,360px);flex:none}.period-selector{display:flex;flex-direction:column;gap:8px;font-size:14px;color:var(--muted)}.period-selector select{font-size:16px;min-height:48px;width:100%;padding-right:36px}.heading{align-items:flex-start}@media(max-width:700px){#analysisHeadingControls{width:100%}}

.customer-type-pills{justify-content:flex-start;flex-wrap:wrap}.customer-type-pills button{flex:1}.formbody [hidden]{display:none!important}.contract-specific-contacts>.formbody,.contract-customer-new>.formbody{padding:16px 0 0}.customer-type-pills+label{margin-top:4px}

.header-tools{display:flex;align-items:center;gap:16px}.header-tools button{font-size:14px;letter-spacing:0}@media(max-width:700px){.header-tools{gap:8px}.header-tools .local{display:none}.header-tools button{min-height:38px;padding:7px 10px}}
