:root{--ink:#18343f;--muted:#6d7d83;--deep:#244b59;--deep2:#326775;--accent:#d7a342;--bg:#f3f6f5;--card:#fff;--line:#dce6e5;--good:#2f8069;--bad:#b94d4d;--soft:#edf2f1;--shadow:0 10px 28px rgba(28,59,69,.07)}*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:var(--bg);color:var(--ink);font-family:"Vazirmatn","Vazir",Tahoma,"Segoe UI",Arial,sans-serif;font-size:15px}button,input,select,textarea{font:inherit}button{cursor:pointer}.hidden{display:none!important}.app{min-height:100vh}.sidebar{position:fixed;right:0;top:0;bottom:0;width:245px;background:#fff;border-left:1px solid var(--line);padding:18px 14px;display:flex;flex-direction:column;z-index:30}.brand{display:flex;align-items:center;gap:10px;padding:4px 4px 18px}.brandMark{width:62px;height:62px;border-radius:20px;background:linear-gradient(145deg,var(--deep),var(--deep2));display:grid;place-items:center;color:#fff;font-weight:900;letter-spacing:1px;font-size:20px;box-shadow:0 10px 26px rgba(35,75,89,.20)}.brandMark.small{width:42px;height:42px;border-radius:13px;font-size:14px}.brand b{display:block;font-size:14px}.brand span{display:block;color:var(--muted);font-size:10px;margin-top:3px}.sidebar nav{display:grid;gap:5px}.sidebar nav button{border:0;background:transparent;color:#38525c;text-align:right;border-radius:12px;padding:11px 12px;font-weight:700;font-size:12px}.sidebar nav button:hover,.sidebar nav button.active{background:#eaf1f0;color:var(--deep)}.serverBox{margin-top:auto;border:1px solid var(--line);border-radius:14px;padding:10px;display:flex;align-items:center;gap:8px;background:#f8faf9}.serverBox i{width:9px;height:9px;border-radius:50%;background:#e2ad48}.serverBox i.ok{background:#58b996}.serverBox i.bad{background:#e06d6d}.serverBox b{font-size:10px;display:block}.serverBox span{font-size:9px;color:var(--muted);display:block;margin-top:2px}.main{margin-right:245px;min-height:100vh}.topbar{position:sticky;top:0;z-index:20;display:flex;align-items:center;justify-content:space-between;gap:14px;background:rgba(243,246,245,.94);backdrop-filter:blur(8px);padding:17px 22px 12px;border-bottom:1px solid rgba(220,230,229,.7)}.topbar h2{margin:0;font-size:20px}.topbar p{margin:4px 0 0;color:var(--muted);font-size:10px}.topActions{display:flex;gap:7px}.ghost,.userChip,.primary,.soft,.danger{border:0;border-radius:12px;padding:10px 13px;font-weight:800;font-size:11px;min-height:40px}.ghost,.soft{background:#fff;border:1px solid var(--line);color:var(--deep)}.userChip{background:var(--deep);color:#fff}.primary{background:var(--deep);color:#fff}.primary.gold{background:var(--accent);color:#203944}.danger{background:#faecec;color:#9d3939}.wide{width:100%}.content{padding:18px 22px 90px;max-width:1450px;margin:auto}.hero{background:linear-gradient(135deg,#234956,#326a72);border-radius:22px;padding:20px;color:#fff;box-shadow:0 16px 40px rgba(33,72,82,.12);display:flex;justify-content:space-between;gap:18px;align-items:center}.hero h1{margin:0;font-size:22px}.hero p{margin:7px 0 0;font-size:11px;line-height:1.9;opacity:.88}.healthPill{background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.16);padding:10px 12px;border-radius:14px;font-size:10px;white-space:nowrap}.moduleGrid{display:grid;grid-template-columns:repeat(3,1fr);gap:11px;margin-top:12px}.moduleCard{background:var(--card);border:1px solid var(--line);border-radius:18px;padding:15px;box-shadow:var(--shadow);display:flex;flex-direction:column;min-height:175px}.moduleCard .mi{width:42px;height:42px;border-radius:13px;display:grid;place-items:center;background:#eaf1f0;color:var(--deep);font-weight:900}.moduleCard h3{margin:10px 0 5px;font-size:15px}.moduleCard p{margin:0 0 12px;color:var(--muted);font-size:10px;line-height:1.9;flex:1}.moduleCard button{width:100%}.section{margin-top:14px}.sectionHead{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}.sectionHead h3{margin:0;font-size:15px}.kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:9px}.kpi{background:#fff;border:1px solid var(--line);border-radius:16px;padding:13px;box-shadow:0 5px 16px rgba(30,62,70,.035);min-height:90px}.kpi b{font-size:23px;color:var(--deep);display:block;line-height:1.3}.kpi span{font-size:10px;color:var(--muted)}.kpi small{display:block;font-size:9px;color:#98a5aa;margin-top:5px}.grid2{display:grid;grid-template-columns:1.15fr .85fr;gap:10px}.panel{background:#fff;border:1px solid var(--line);border-radius:17px;padding:14px;box-shadow:0 4px 16px rgba(30,62,70,.03)}.panel h4{margin:0 0 9px;font-size:13px}.rows{display:grid;gap:3px}.rowline{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 2px;border-bottom:1px dashed #e4eae9}.rowline:last-child{border-bottom:0}.rowline span{color:var(--muted);font-size:10px}.rowline b{font-size:11px}.empty{text-align:center;color:#8c9a9f;background:#f7f9f8;padding:14px;border-radius:12px;font-size:10px}.loginWrap{min-height:100vh;display:grid;place-items:center;padding:18px;background:radial-gradient(circle at top,#e5efed,#f6f8f7 50%)}.loginCard{width:min(400px,100%);background:#fff;border:1px solid var(--line);border-radius:24px;padding:23px;box-shadow:0 20px 65px rgba(28,59,69,.12)}.loginCard .brandMark{margin:0 auto 13px}.loginCard h1{text-align:center;margin:0;font-size:20px}.loginCard p{text-align:center;color:var(--muted);font-size:10px;line-height:1.8}.loginCard label,.field label{display:block;font-size:10px;font-weight:800;margin:10px 0 4px}.loginCard input,.field input,.field select,.field textarea{width:100%;border:1px solid #cfdddb;border-radius:11px;padding:10px;background:#fff;outline:none}.formErr{color:var(--bad);font-size:10px;margin-top:8px}.tableWrap{overflow:auto;border:1px solid var(--line);border-radius:14px;background:#fff}.table{width:100%;border-collapse:collapse;min-width:650px}.table th,.table td{text-align:right;padding:10px;border-bottom:1px solid #edf1f0;font-size:10px}.table th{background:#f7f9f8;color:#657980}.actions{display:flex;gap:6px;flex-wrap:wrap}.formGrid{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.notice{background:#edf5f2;border:1px solid #d5e8e1;color:#3b6759;border-radius:13px;padding:10px;font-size:10px;line-height:1.8}.notice.warn{background:#fff6e7;border-color:#f0d9a7;color:#7c5a19}.modal{position:fixed;inset:0;background:rgba(20,39,46,.45);display:grid;place-items:center;padding:14px;z-index:100}.modalCard{width:min(620px,100%);max-height:90vh;overflow:auto;background:#fff;border-radius:20px;padding:14px}.modalHead{display:flex;justify-content:space-between;align-items:center}.modalHead h3{margin:0}.iconBtn{border:0;background:#edf1f0;width:34px;height:34px;border-radius:10px}.toast{position:fixed;left:50%;bottom:85px;transform:translateX(-50%) translateY(20px);background:#203f49;color:#fff;border-radius:12px;padding:9px 13px;font-size:10px;opacity:0;pointer-events:none;z-index:200;transition:.2s}.toast.show{opacity:1;transform:translateX(-50%) translateY(0)}.mobileNav{display:none}
@media(max-width:950px){.sidebar{width:205px}.main{margin-right:205px}.kpis{grid-template-columns:repeat(2,1fr)}.moduleGrid{grid-template-columns:1fr}.grid2{grid-template-columns:1fr}}
@media(max-width:700px){html,body{font-size:16px}.sidebar{display:none}.main{margin-right:0}.topbar{padding:max(10px,env(safe-area-inset-top)) 10px 9px;align-items:flex-start}.topbar h2{font-size:17px}.topbar p{max-width:55vw;line-height:1.6}.topActions{gap:5px}.ghost,.userChip{padding:8px 9px;min-height:36px;font-size:9px}.userChip{max-width:88px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.content{padding:11px 10px calc(86px + env(safe-area-inset-bottom))}.hero{display:block;border-radius:18px;padding:16px}.hero h1{font-size:18px}.healthPill{display:inline-block;margin-top:10px;white-space:normal}.moduleGrid{gap:8px}.moduleCard{min-height:0;border-radius:16px}.kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.kpi{min-height:80px;padding:11px}.kpi b{font-size:20px}.grid2{grid-template-columns:1fr}.formGrid{grid-template-columns:1fr}.mobileNav{position:fixed;display:grid;grid-template-columns:repeat(5,1fr);bottom:0;left:0;right:0;background:rgba(255,255,255,.97);border-top:1px solid var(--line);padding:6px 4px calc(6px + env(safe-area-inset-bottom));z-index:50;box-shadow:0 -7px 25px rgba(25,53,62,.08)}.mobileNav button{border:0;background:transparent;color:#75878d;display:grid;place-items:center;gap:1px;font-size:8px;min-width:0}.mobileNav button b{font-size:12px;color:#3e626c}.mobileNav button.active,.mobileNav button.active b{color:var(--deep)}.modal{padding:0;align-items:end}.modalCard{width:100%;max-height:88vh;border-radius:22px 22px 0 0;padding-bottom:calc(16px + env(safe-area-inset-bottom))}.tableWrap{border-radius:12px}.table{min-width:720px}.loginCard{border-radius:20px;padding:18px}}
