*{box-sizing:border-box}body{margin:0;font-family:Arial,Helvetica,sans-serif;background:#f5f7fb;color:#172033}
.topbar{height:64px;background:#fff;border-bottom:1px solid #e5e9f2;display:flex;align-items:center;justify-content:space-between;padding:0 18px;position:sticky;top:0;z-index:20}
.brand{font-size:22px;font-weight:700;color:#174ea6;display:flex;gap:10px;align-items:center}.logo{width:38px;height:38px;border-radius:10px;background:#174ea6;color:#fff;display:grid;place-items:center;font-size:14px}
.iconbtn{border:0;background:#174ea6;color:#fff;border-radius:8px;font-size:23px;width:44px;height:42px}
.layout{display:flex;min-height:calc(100vh - 64px)}.sidebar{width:245px;background:#fff;border-right:1px solid #e5e9f2;padding:14px;position:sticky;top:64px;height:calc(100vh - 64px)}
.sidebar button{width:100%;padding:12px;border:0;background:transparent;text-align:left;border-radius:9px;font-size:14px;margin-bottom:3px;color:#354052}.sidebar button:hover{background:#eef4ff;color:#174ea6}
#app{flex:1;padding:22px;max-width:1250px;margin:auto;width:100%}.pagehead{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:18px}.pagehead h1{margin:0;font-size:25px}
.btn{border:0;border-radius:8px;padding:10px 14px;background:#174ea6;color:#fff;cursor:pointer;font-weight:600}.btn.secondary{background:#e9eef8;color:#174ea6}.btn.danger{background:#d93025}.btn.green{background:#149447}
.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.card{background:#fff;border:1px solid #e7ebf2;border-radius:12px;padding:16px;box-shadow:0 2px 8px #1720330a}.metric{font-size:26px;font-weight:700;margin-top:7px}.muted{color:#6b7485;font-size:13px}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:16px}.panel{background:#fff;border:1px solid #e7ebf2;border-radius:12px;padding:16px;margin-bottom:16px}
table{width:100%;border-collapse:collapse;background:#fff}th,td{padding:11px;border-bottom:1px solid #edf0f5;text-align:left;font-size:13px}th{color:#697386;background:#fafbfc}
input,select,textarea{width:100%;padding:10px;border:1px solid #d8deea;border-radius:8px;background:#fff;margin-top:5px}label{font-size:12px;color:#596477;display:block;margin-bottom:10px}.formgrid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.full{grid-column:1/-1}
.actions{display:flex;gap:7px;flex-wrap:wrap}.tag{display:inline-block;padding:4px 8px;border-radius:20px;background:#e9f3ff;color:#174ea6;font-size:11px}
.quick{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.quick button{padding:15px;border:1px solid #e2e7f0;background:#fff;border-radius:10px;cursor:pointer}
.mapbox{height:260px;border-radius:10px;background:repeating-linear-gradient(45deg,#eef3f8,#eef3f8 12px,#e8eef5 12px,#e8eef5 24px);display:grid;place-items:center;color:#6d7787}
.bottomnav{display:none}
#toast{position:fixed;right:18px;bottom:18px;background:#172033;color:#fff;padding:12px 15px;border-radius:8px;display:none;z-index:99}
@media(max-width:800px){.sidebar{display:none}.sidebar.open{display:block;position:fixed;left:0;top:64px;z-index:30;box-shadow:4px 0 20px #0002}.cards{grid-template-columns:repeat(2,1fr)}.grid2,.formgrid{grid-template-columns:1fr}.quick{grid-template-columns:repeat(2,1fr)}#app{padding:14px}.bottomnav{position:fixed;display:flex;bottom:0;left:0;right:0;background:#fff;border-top:1px solid #ddd;z-index:25;justify-content:space-around}.bottomnav button{border:0;background:#fff;padding:7px 10px;font-size:20px;color:#174ea6}.bottomnav small{display:block;font-size:9px;color:#667085}.pagehead h1{font-size:21px}}
