:root{--text: rgb(0,0,0);--sidebar-bg: #1f2937;--sidebar-text: #e5e7eb;--sidebar-muted: #9ca3af;--sidebar-active: #374151;--header-bg: #ffffff;--header-text: rgb(31,41,55);--bg: #f3f4f6;--card: #ffffff;--border: #e5e7eb;--muted: #6b7280;--primary: #2563eb;--green: #10b981;--red: #ef4444;--amber: #f59e0b;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif}*{box-sizing:border-box}html,body,#root{margin:0;padding:0;height:100%;background:var(--bg);color:var(--text)}a{text-decoration:none;color:inherit}.app-shell{display:flex;min-height:100vh}.sidebar{width:256px;background:#111827;color:var(--sidebar-text);display:flex;flex-direction:column;padding:20px 16px;position:sticky;top:0;height:100vh}.brand{padding:4px 8px 20px;border-bottom:1px solid #1f2937;margin-bottom:16px}.brand-logo{font-weight:800;font-size:18px}.brand-logo .b1{color:#60a5fa}.brand-logo .b2{color:#fff}.brand-sub{color:var(--sidebar-muted);font-size:11px}.menu-title{color:#9ca3af;font-size:11px;letter-spacing:1px;margin:8px 12px}.nav{display:flex;flex-direction:column;gap:4px;flex:1}.nav-item{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:8px;color:#d1d5db;font-size:14px}.nav-item:hover{background:#1f2937;color:#fff}.nav-item.active{background:#fff;color:#111827;font-weight:600}.logout-btn{background:transparent;color:#d1d5db;border:none;text-align:left;padding:10px 12px;border-radius:8px;cursor:pointer;font-size:14px;border-top:1px solid #1f2937;margin-top:8px}.logout-btn:hover{background:#1f2937;color:#fff}.main{flex:1;display:flex;flex-direction:column;min-width:0}.topbar{background:var(--header-bg);height:64px;padding:0 24px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--border);position:sticky;top:0;z-index:10}.page-title{font-size:18px;font-weight:700;color:var(--header-text);margin:0}.top-right{display:flex;align-items:center;gap:18px}.bell{font-size:18px;color:#6b7280;cursor:pointer}.user-chip{display:flex;align-items:center;gap:10px;cursor:pointer}.user-info{text-align:right}.user-name{font-weight:700;font-size:13px;color:#111827}.user-role{font-size:12px;color:#6b7280}.avatar-lg{width:36px;height:36px;border-radius:50%;background:#111827;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700}.chev{color:#9ca3af}.content{padding:24px}.page{max-width:1400px}.card{background:var(--card);border:1px solid var(--border);border-radius:12px;padding:24px}.card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:16px}.card h2{margin:0 0 4px;font-size:18px}.card h3{margin:0 0 12px;font-size:15px}.muted{color:var(--muted);font-size:13px}.muted-red{color:var(--red)}.btn-green{background:var(--green);color:#fff;border:none;padding:10px 16px;border-radius:8px;font-weight:600;cursor:pointer;font-size:13px}.btn-green:hover{background:#059669}.btn-primary{background:var(--primary);color:#fff;border:none;padding:10px 16px;border-radius:8px;cursor:pointer;font-weight:600}.tabs{display:flex;gap:8px;border-bottom:1px solid var(--border);margin-bottom:16px;padding-bottom:8px}.tab{background:transparent;border:none;padding:8px 14px;border-radius:6px;color:var(--muted);font-weight:600;cursor:pointer;font-size:13px}.tab.active{background:#eff6ff;color:var(--primary)}.tbl{width:100%;border-collapse:collapse}.tbl thead th{text-align:left;font-size:11px;color:var(--muted);letter-spacing:.5px;padding:12px 8px;border-bottom:1px solid var(--border);font-weight:700}.tbl tbody td{padding:16px 8px;border-bottom:1px solid #f3f4f6;font-size:14px}.nas{display:flex;align-items:center;gap:10px}.avatar{width:28px;height:28px;border-radius:50%;background:#e5e7eb;color:#374151;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:12px}.stats-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:16px;margin-top:8px}.stat-box{background:#f9fafb;border:1px solid var(--border);border-radius:10px;padding:16px}.stat-label{color:var(--muted);font-size:12px;margin-bottom:6px}.stat-value{font-size:20px;font-weight:700;color:#111827}.chart{display:flex;flex-direction:column;gap:10px;margin-top:8px}.bar-row{display:grid;grid-template-columns:140px 1fr 140px;align-items:center;gap:12px}.bar-label{font-size:13px;color:#374151}.bar-track{background:#f3f4f6;height:14px;border-radius:7px;overflow:hidden}.bar-fill{height:100%;background:var(--primary);border-radius:7px;transition:width .4s ease}.bar-value{text-align:right;font-size:13px;font-weight:600;color:#111827}.legend-row{display:flex;align-items:center;gap:10px;padding:8px 0;border-bottom:1px dashed #e5e7eb}.legend-dot{width:12px;height:12px;border-radius:50%;display:inline-block}.legend-label{flex:1;font-size:13px;color:#374151}.legend-val{font-size:13px;font-weight:600}.login-wrap{min-height:100vh;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#1e3a8a,#1e40af)}.login-card{background:#fff;border-radius:12px;padding:32px;width:380px;box-shadow:0 10px 40px #0003}.login-card h2{margin:0 0 4px;text-align:center}.login-card p.muted{text-align:center;margin-bottom:20px}.login-card label{display:block;font-size:13px;font-weight:600;margin-bottom:6px;margin-top:12px}.login-card input{width:100%;padding:10px 12px;border:1px solid var(--border);border-radius:8px;font-size:14px}.login-card button{width:100%;margin-top:16px;padding:12px;background:var(--primary);color:#fff;border:none;border-radius:8px;font-weight:600;cursor:pointer}.hint{background:#eff6ff;color:#1e40af;padding:10px;border-radius:8px;font-size:12px;margin-top:16px;text-align:center}.err{background:#fef2f2;color:var(--red);padding:10px;border-radius:8px;font-size:13px;margin-top:12px}.form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}.form-grid label{font-size:13px;font-weight:600;display:flex;flex-direction:column;gap:6px}.form-grid input,.form-grid select,.form-grid textarea{padding:8px 10px;border:1px solid var(--border);border-radius:8px;font-size:14px;font-family:inherit}
