*{box-sizing:border-box}
body{margin:0;font:14px system-ui,sans-serif;color:#172944;background:#f3f6fa}
.hidden{display:none!important}
aside{position:fixed;inset:0 auto 0 0;width:235px;background:#0b2346;color:#c0cce0;padding:24px 16px;display:flex;flex-direction:column;gap:7px;overflow:auto}
.brand{color:white;font-size:21px;font-weight:750;margin:0 8px 20px;display:flex;align-items:center;gap:10px}
.markTile{display:inline-grid;place-items:center;width:38px;height:38px;background:#fff;border-radius:9px;flex:none}.markTile img{width:32px;height:auto}
.authLogo{display:block;width:210px;height:auto;margin:0 auto 18px}.brand b{color:#8baaff}.brand.dark{color:#172944;margin:0 0 18px}.brand.dark b{color:#2856cb}
.caption{color:#a3b3cb;font-size:11px;letter-spacing:1.4px;margin:12px 9px 4px}
nav button{display:block;text-align:left;width:100%;background:none;color:inherit;margin:3px 0}
nav button.active,nav button:hover{background:#283e62;color:white}
.foot{margin-top:auto;padding:12px;background:#16325c;border-radius:10px}.foot small{display:block;margin-top:5px}
button.link{background:none;color:#8baaff;padding:6px 0 0;font-weight:600}
main{margin-left:235px;padding:25px 32px;max-width:1650px}
header,.toolbar,.row{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap}
.formActions{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap;margin-top:16px}.formActions span{display:flex;gap:10px;margin-left:auto}
header{padding-bottom:16px;border-bottom:1px solid #dce4ee}
button,input,select,textarea{font:inherit}
button{border:0;border-radius:8px;padding:10px 13px;cursor:pointer;background:#e8eef8;color:#203859;font-weight:650;white-space:nowrap}
button:hover{filter:brightness(.95)}button.primary{background:#2856cb;color:white}button:disabled{opacity:.6;cursor:wait}
button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid #2856cb;outline-offset:2px}
input,select,textarea{width:100%;border:1px solid #ccd8e7;border-radius:8px;padding:10px;background:white;color:#172944}
header input{width:min(350px,100%)}
h1{margin:24px 0 5px;font-size:32px}h2{font-size:17px;margin:0 0 15px}h3{font-size:15px}p{line-height:1.55}
.muted{color:#586b85}
.hero{background:#172e54;color:white;padding:23px;border-radius:15px;margin:22px 0 16px}.hero h2{font-size:24px;margin-bottom:6px}.hero p{color:#c5d4f0;margin:0}
.stats,.split{display:grid;gap:14px}.stats{grid-template-columns:repeat(4,1fr);margin:16px 0}.stats.three{grid-template-columns:repeat(3,1fr)}
.split{grid-template-columns:minmax(0,1.6fr) minmax(0,1fr)}
.card{background:white;border:1px solid #dde6f1;border-radius:13px;padding:17px;min-width:0;margin-bottom:14px}
.stats .card,.split .card{margin-bottom:0}
.stat strong{display:block;font-size:27px;margin:5px 0}
.table{overflow:auto}
table{border-collapse:collapse;width:100%;text-align:left}
th,td{padding:12px 10px;border-bottom:1px solid #e7edf5;vertical-align:top}
th{font-size:11px;text-transform:uppercase;letter-spacing:.6px;color:#566983;white-space:nowrap}
td:last-child{white-space:nowrap;text-align:right}td button{padding:6px 9px}
th.r,td.r{text-align:right}
.nw{white-space:nowrap}.sr{position:absolute;left:-9999px}
.badge{display:inline-block;border-radius:20px;padding:4px 8px;background:#e6efff;color:#234c9b;font-size:12px;white-space:nowrap}
.warn{background:#fff1d7;color:#794600}.ok{background:#def5ec;color:#17654d}.off{background:#eceff3;color:#4f5d70}
.line{padding:10px 0;border-bottom:1px solid #e7edf5}
.toolbar{margin:18px 0}.toolbar input,.toolbar select{width:auto;max-width:100%}
dialog{border:0;border-radius:15px;width:min(650px,94vw);max-height:90vh;padding:23px;color:#172944;box-shadow:0 20px 70px #111f3550}
dialog::backdrop{background:#10203888}
label{display:block;font-weight:650;margin:11px 0}label input,label select,label textarea{margin-top:5px}
label.check{display:flex;gap:8px;align-items:center}label.check input{width:auto;margin:0}
textarea{min-height:94px}pre{white-space:pre-wrap;font:inherit;line-height:1.55}
#toast{position:fixed;bottom:20px;right:20px;background:#172e54;color:white;padding:12px 17px;border-radius:10px;z-index:9;max-width:min(420px,90vw)}
#toast:empty{display:none}
.tabs{display:flex;gap:8px;flex-wrap:wrap}.empty{padding:22px;color:#586b85}
.eyebrow{font-weight:750;font-size:11px;letter-spacing:1.3px;color:#58709a}
.money{font-variant-numeric:tabular-nums;white-space:nowrap}
.totals{margin-left:auto;width:min(320px,100%)}.totals div{display:flex;justify-content:space-between;padding:5px 0}
.totals .grand{font-weight:750;border-top:1px solid #dde6f1;margin-top:4px;padding-top:9px}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}
.logo{max-height:70px;max-width:200px;display:block;margin:8px 0}
.note{background:#f3f6fa;border-radius:10px;padding:10px 12px}
.auth{min-height:100vh;display:grid;place-items:center;padding:16px}
.authCard{background:white;border:1px solid #dde6f1;border-radius:16px;padding:28px;width:min(420px,100%);box-shadow:0 12px 40px #111f3514}
.authCard button.primary{width:100%;margin-top:10px}
@media(max-width:950px){.stats,.stats.three{grid-template-columns:repeat(2,1fr)}.split{grid-template-columns:1fr}main{padding:20px}}
@media(max-width:650px){aside{position:static;width:auto;padding:12px}.brand{margin:0}.caption{display:none}.foot{display:flex;gap:10px;align-items:center;padding:8px 10px;margin-top:6px}.foot small{display:none}.foot button.link{padding:0;margin-left:auto}nav{display:flex;overflow:auto}nav button{width:auto;white-space:nowrap}main{margin:0;padding:14px}.stat strong{font-size:23px}h1{font-size:26px}.grid2{grid-template-columns:1fr}}
