:root{--blue:#075985;--blue2:#0ea5e9;--bg:#f5f8fc;--card:#fff;--text:#10233b;--muted:#718096;--green:#16a34a;--red:#dc2626;--orange:#f59e0b;--line:#e5edf5;--shadow:0 6px 24px rgba(15,52,84,.08)}*{box-sizing:border-box}html,body{margin:0;background:var(--bg);font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,sans-serif;color:var(--text)}body{padding-bottom:78px}button,input,select,textarea{font:inherit}button{cursor:pointer}.top{position:sticky;top:0;z-index:20;background:linear-gradient(135deg,#064e73,#0b79ae);color:#fff;padding:14px 16px calc(12px + env(safe-area-inset-top));box-shadow:0 3px 16px rgba(0,0,0,.12)}.toprow{display:flex;align-items:center;justify-content:space-between;gap:10px}.brand{font-weight:900;letter-spacing:.6px;font-size:18px}.brand small{display:block;font-size:9px;letter-spacing:2px;opacity:.75}.avatar{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:#fff;color:var(--blue);font-weight:800}.page{padding:14px;max-width:900px;margin:auto}.hello{font-size:14px;color:var(--muted);margin:3px 0 14px}.filter{display:flex;gap:8px;overflow:auto;margin-bottom:12px}.filter button,.chip{border:1px solid var(--line);background:#fff;padding:8px 12px;border-radius:20px;white-space:nowrap}.filter button.active,.chip.active{background:#e0f2fe;color:#0369a1;border-color:#bae6fd}.grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.card{background:var(--card);border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow);padding:14px}.stat .label{font-size:11px;color:var(--muted)}.stat .value{font-size:20px;font-weight:850;margin-top:4px}.stat .sub{font-size:11px;margin-top:4px}.green{color:var(--green)}.red{color:var(--red)}.blue{color:#0284c7}.orange{color:#d97706}.section{display:flex;align-items:center;justify-content:space-between;margin:18px 2px 9px}.section h3{margin:0;font-size:15px}.link{color:#0284c7;font-size:12px;background:none;border:0}.quick{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.quick button{background:#fff;border:1px solid var(--line);border-radius:14px;padding:13px 6px;box-shadow:var(--shadow);font-size:11px;color:var(--text)}.ico{width:34px;height:34px;border-radius:11px;margin:auto auto 7px;display:grid;place-items:center;font-size:17px;background:#e0f2fe}.list{display:flex;flex-direction:column;gap:8px}.row{display:flex;align-items:center;gap:10px;padding:11px 2px}.row+.row{border-top:1px solid var(--line)}.circle{width:38px;height:38px;border-radius:13px;background:#e0f2fe;color:#0369a1;display:grid;place-items:center;font-weight:800;flex:0 0 auto}.grow{flex:1;min-width:0}.title{font-weight:750;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.meta{font-size:11px;color:var(--muted);margin-top:3px}.amount{font-weight:800;font-size:13px}.badge{display:inline-flex;padding:4px 8px;border-radius:999px;font-size:10px;font-weight:750;background:#eef2f7;color:#475569}.badge.green{background:#dcfce7}.badge.orange{background:#fef3c7}.badge.red{background:#fee2e2}.form{display:flex;flex-direction:column;gap:11px}.field label{display:block;font-size:11px;font-weight:750;color:#526579;margin:0 0 5px}.field input,.field select,.field textarea{width:100%;border:1px solid #d8e2ec;border-radius:11px;padding:11px 12px;background:#fff;outline:none}.field input:focus,.field select:focus,.field textarea:focus{border-color:#38bdf8;box-shadow:0 0 0 3px #e0f2fe}.btn{border:0;border-radius:11px;padding:12px 14px;font-weight:800}.btn.primary{background:#0785f2;color:#fff}.btn.success{background:#16a34a;color:#fff}.btn.danger{background:#dc2626;color:#fff}.btn.light{background:#eff6ff;color:#075985}.btn.full{width:100%}.items{display:flex;flex-direction:column;gap:8px}.itemline{display:grid;grid-template-columns:1fr 70px 76px 32px;gap:6px;align-items:center;background:#f8fbfe;padding:8px;border-radius:12px}.itemline input,.itemline select{width:100%;padding:8px;border:1px solid var(--line);border-radius:8px;background:#fff}.del{border:0;background:#fee2e2;color:#dc2626;border-radius:8px;height:34px}.totalbox{background:#eff6ff;border-radius:14px;padding:13px}.totalrow{display:flex;justify-content:space-between;margin:6px 0;font-size:13px}.grand{font-size:19px;font-weight:900;color:#075985}.bottom{position:fixed;bottom:0;left:0;right:0;z-index:30;background:#fff;border-top:1px solid var(--line);display:grid;grid-template-columns:repeat(5,1fr);padding:7px 5px calc(7px + env(safe-area-inset-bottom));box-shadow:0 -5px 20px rgba(15,52,84,.08)}.navbtn{border:0;background:none;color:#7b8b9e;font-size:10px;padding:4px}.navbtn.active{color:#0785f2;font-weight:800}.navicon{font-size:20px;display:block;margin-bottom:2px}.back{border:0;background:transparent;color:#fff;font-size:20px}.screenTitle{font-weight:800;font-size:15px}.search{position:relative;margin-bottom:10px}.search input{width:100%;padding:12px 13px;border:1px solid var(--line);border-radius:12px}.drawer{position:fixed;inset:0;z-index:50;background:rgba(2,8,23,.45);display:none}.drawer.open{display:block}.drawerpanel{width:84%;max-width:340px;height:100%;background:#fff;padding:20px 14px;overflow:auto}.profile{background:linear-gradient(135deg,#064e73,#0b79ae);color:#fff;border-radius:18px;padding:18px;margin-bottom:14px}.menu{display:flex;flex-direction:column;gap:4px}.menu button{border:0;background:none;text-align:left;padding:12px;border-radius:10px}.menu button:hover{background:#eff6ff}.login{min-height:100vh;display:grid;place-items:center;padding:20px;background:linear-gradient(160deg,#053c5b,#0879b0)}.loginbox{width:100%;max-width:390px;background:#fff;border-radius:24px;padding:28px;box-shadow:0 25px 60px rgba(0,0,0,.2)}.logo{font-size:31px;font-weight:950;color:#075985;text-align:center;letter-spacing:1px}.logo span{color:#f59e0b}.muted{text-align:center;color:var(--muted);font-size:12px;margin:7px 0 25px}.toast{position:fixed;top:75px;left:50%;transform:translateX(-50%);z-index:100;padding:11px 16px;border-radius:12px;background:#10233b;color:#fff;box-shadow:var(--shadow);font-size:12px}.toast.ok{background:#15803d}.toast.err{background:#b91c1c}.loading{padding:30px;text-align:center;color:var(--muted)}.chart{height:160px;display:flex;align-items:end;gap:5px;padding:15px 2px}.bar{flex:1;background:#38bdf8;border-radius:6px 6px 2px 2px;min-height:3px}.mapbox{height:58vh;border-radius:16px;overflow:hidden;border:1px solid var(--line)}.reportgrid{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.small{font-size:11px;color:var(--muted)}@media(min-width:700px){.grid{grid-template-columns:repeat(4,1fr)}.quick{grid-template-columns:repeat(6,1fr)}.bottom{max-width:900px;left:50%;transform:translateX(-50%);border-radius:18px 18px 0 0}.page{padding-bottom:100px}}
