:root{--ground:#F5F7FA;--text:#0B1B33;--muted:#565C6B;--line:#E3E6ED;--primary:#0A6CD6;--nav:#101828;--cyan:#13C3F8}
*{box-sizing:border-box}
body{margin:0;background:var(--ground);color:var(--text);font:15px/1.5 Manrope,-apple-system,"Segoe UI",Roboto,sans-serif}
a{color:var(--primary)}
h1{font-size:26px;margin:0 0 16px}h2{font-size:18px;margin:0 0 12px}
.layout{display:flex;min-height:100vh}
.nav{flex:0 0 220px;background:var(--nav);color:#fff;padding:20px 12px;display:flex;flex-direction:column;gap:18px}
.brand{font-weight:800;font-size:19px;color:#fff;text-decoration:none;padding:0 10px}.brand b{color:var(--cyan)}
.brand small{display:block;font-size:12px;font-weight:600;color:#A9B4C6}
.brand.dark{color:var(--text);padding:0;margin:0 0 16px}.brand.dark b{color:var(--primary)}.brand.dark small{color:var(--muted)}
.menu{display:flex;flex-direction:column;gap:4px}
.menu a{display:flex;align-items:center;min-height:44px;padding:0 12px;border-radius:10px;color:#C9D2E0;text-decoration:none;font-weight:600}
.menu a:hover{background:#1C2840}.menu a[aria-current=page]{background:var(--cyan);color:#04121F}
.foot{margin-top:auto;padding:12px 10px 0;border-top:1px solid #2A3650;font-size:13px;color:#A9B4C6;display:flex;justify-content:space-between;align-items:center}
.foot button{background:none;border:0;color:#fff;font:inherit;font-weight:600;cursor:pointer;min-height:44px}
main{flex:1;min-width:0;padding:28px 32px 48px;display:flex;flex-direction:column;gap:16px}
main h1{margin:0}
.card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:20px}
.card.flat{padding:0;overflow:hidden}
.tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px}
.tile{background:#fff;border:1px solid var(--line);border-radius:14px;padding:16px;display:flex;flex-direction:column;gap:4px}
.tile span{font-size:12px;font-weight:600;color:var(--muted);text-transform:uppercase;letter-spacing:.3px}
.tile b{font-size:26px;overflow-wrap:anywhere}.tile b.sm{font-size:15px}.tile small{color:var(--muted);font-size:13px}
.wrap{overflow-x:auto}
table{width:100%;border-collapse:collapse;font-size:14px}
th{text-align:left;font-size:13px;font-weight:600;color:var(--muted);padding:9px 12px;white-space:nowrap;border-bottom:1px solid var(--line)}
td{padding:10px 12px;border-bottom:1px solid #EFF1F5;vertical-align:top}
tr:last-child td{border-bottom:0}
td small{color:var(--muted)}
.num{text-align:right;white-space:nowrap}
.muted{color:var(--muted)}
.bar{display:flex;flex-wrap:wrap;gap:8px}
.bar input{flex:1 1 220px}
input,select{min-height:44px;padding:8px 12px;border:1px solid #C3C8D4;border-radius:10px;font:inherit;background:#fff;color:inherit}
.btn{min-height:44px;padding:0 18px;border:0;border-radius:10px;background:var(--primary);color:#fff;font:inherit;font-weight:700;cursor:pointer}
.st{white-space:nowrap;font-weight:600}.st2{color:#1B7A43}.st3{color:#B4531A}.st4{color:var(--muted)}
.seg{display:inline-flex;align-items:center;min-height:44px;padding:0 14px;border:1px solid #C3C8D4;border-radius:10px;background:#fff;color:inherit;text-decoration:none;font-weight:600}
.seg.on{background:var(--primary);border-color:var(--primary);color:#fff}
.crumbs{margin:0;font-size:14px;color:var(--muted)}.pager{margin:0;display:flex;gap:16px}
.auth{display:flex;align-items:center;justify-content:center;min-height:100vh;padding:16px}
.auth .card{width:100%;max-width:380px}
.auth h1{font-size:22px;margin:0 0 12px}
.auth label{display:block;font-weight:600;font-size:14px;margin-bottom:12px}
.auth input{display:block;width:100%;margin-top:6px}.auth .btn{width:100%}
.err{color:#B3261E;font-weight:600}
@media(max-width:760px){.layout{flex-direction:column}.nav{flex:none;padding:12px;gap:8px}
.brand small{display:inline;margin-left:6px}.menu{flex-direction:row;overflow-x:auto}.menu a{padding:0 10px;white-space:nowrap}
.foot{margin:0;padding:0;border:0}main{padding:18px 14px 40px}}
