/* ===== Modern UI refresh ===== */
:root{--primary:#2563eb;--primary-dark:#1d4ed8;--sidebar:#0f1b33;--sidebar2:#162442;--bg:#f5f7fb;--text:#172033;--muted:#64748b;--border:#e7ebf2;--card:#fff;--shadow:0 8px 28px rgba(15,23,42,.07)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Inter,Segoe UI,Arial,sans-serif;background:var(--bg);color:var(--text)}.layout{display:flex;min-height:100vh}
aside{position:sticky;top:0;width:260px;height:100vh;flex:none;background:linear-gradient(180deg,var(--sidebar) 0%,#13213d 100%);color:#fff;padding:22px 14px;display:flex;flex-direction:column;box-shadow:8px 0 30px rgba(15,23,42,.08);z-index:20}
.brand{display:flex;align-items:center;gap:11px;padding:8px 10px 22px;margin-bottom:10px;border-bottom:1px solid rgba(255,255,255,.09)}.brand-icon{width:42px;height:42px;border-radius:12px;background:linear-gradient(135deg,#3b82f6,#1d4ed8);display:grid;place-items:center;font-size:23px;box-shadow:0 8px 20px rgba(37,99,235,.3)}.brand strong,.brand span{display:block}.brand strong{font-size:17px;line-height:1.1}.brand span{font-size:17px;font-weight:700;color:#dbeafe}
.nav-title{font-size:10px;letter-spacing:1.2px;color:#7f91b1;font-weight:700;padding:16px 12px 7px}nav a{display:flex;align-items:center;gap:11px;color:#b9c5d9;text-decoration:none;padding:11px 12px;border-radius:10px;margin:3px 0;font-size:14px;font-weight:500;transition:.18s}nav a:hover{background:rgba(255,255,255,.07);color:#fff;transform:translateX(2px)}nav a.active{background:linear-gradient(90deg,#2563eb,#3b82f6);color:#fff;box-shadow:0 7px 18px rgba(37,99,235,.28)}.nav-icon{width:24px;text-align:center;font-size:18px;filter:saturate(1.05)}.sidebar-footer{margin-top:auto;padding:14px 12px;border:1px solid rgba(255,255,255,.08);border-radius:12px;background:rgba(255,255,255,.035);color:#91a3c2;font-size:11px}.sidebar-footer strong{display:block;color:#dbeafe;margin-top:4px}
main{flex:1;padding:28px 32px;min-width:0;overflow:auto}header{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}header h1{margin:0 0 5px;font-size:30px;letter-spacing:-.5px}header p{margin:0;color:var(--muted)}.header-actions{display:flex;align-items:center;gap:9px}.user-badge{padding:9px 13px;border-radius:10px;background:#fff;border:1px solid var(--border);color:#334155;font-size:13px;box-shadow:0 3px 12px rgba(15,23,42,.04)}button{border:0;border-radius:9px;padding:10px 15px;background:#172033;color:#fff;cursor:pointer;font-weight:600;transition:.15s}button:hover{transform:translateY(-1px);box-shadow:0 5px 14px rgba(15,23,42,.12)}.refresh-btn{background:#fff;color:#334155;border:1px solid var(--border)}.logout-btn{background:#dc2626!important}.stats{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:15px;margin-bottom:22px}.stat{position:relative;overflow:hidden;display:flex;align-items:center;gap:14px;min-height:104px;background:linear-gradient(145deg,#fff 0%,#fbfdff 100%);border:1px solid #dfe7f2;border-radius:17px;padding:17px 19px;box-shadow:0 8px 24px rgba(15,23,42,.06)}.stat:after{content:"";position:absolute;width:92px;height:92px;border-radius:50%;right:-32px;bottom:-42px;background:rgba(37,99,235,.08);pointer-events:none}.stat-icon{position:relative;z-index:1;width:54px;height:54px;min-width:54px;border-radius:15px;display:grid;place-items:center;font-size:28px;box-shadow:0 6px 15px rgba(15,23,42,.10);background:linear-gradient(135deg,#2563eb,#38bdf8)}.stat-content{position:relative;z-index:1;min-width:0}.stat span{display:block;color:#64748b;font-size:13px;font-weight:700;white-space:nowrap}.stat strong{display:block;font-size:35px;line-height:1.05;margin-top:5px;font-weight:800;color:#172033}.online .stat-icon{background:linear-gradient(135deg,#16a34a,#4ade80)}.online strong{color:#16a34a}.offline .stat-icon{background:linear-gradient(135deg,#dc2626,#fb7185)}.offline strong{color:#dc2626}.tablet-stat .stat-icon{background:linear-gradient(135deg,#7c3aed,#a78bfa)}.tablet-stat strong{color:#6d28d9}.stat-institutions .stat-icon{background:linear-gradient(135deg,#ea580c,#fb923c)}.stat-institutions strong{color:#ea580c}.stat-devices .stat-icon{background:linear-gradient(135deg,#0891b2,#2dd4bf)}.stat-devices strong{color:#0891b2}.stat-computers .stat-icon{background:linear-gradient(135deg,#2563eb,#38bdf8)}@media(max-width:1250px){.stats{grid-template-columns:repeat(3,1fr)}}@media(max-width:700px){.stats{grid-template-columns:repeat(2,1fr)}.stat{min-height:96px;padding:14px}.stat-icon{width:48px;height:48px;min-width:48px;font-size:24px}.stat strong{font-size:30px}}
.panel{background:var(--card);border:1px solid var(--border);border-radius:15px;padding:21px;box-shadow:var(--shadow);margin-bottom:20px;scroll-margin-top:20px}.panel-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px;gap:15px}.panel-head h2{margin:0;font-size:19px}.muted{color:var(--muted);font-size:13px;font-weight:normal}.toolbar,.panel-actions{display:flex;align-items:center;gap:9px}input,select{width:320px;padding:11px 12px;border:1px solid #d8dee8;border-radius:9px;background:#fff;color:#172033;outline:none;transition:.15s}input:focus,select:focus{border-color:#60a5fa;box-shadow:0 0 0 3px rgba(37,99,235,.1)}.add-btn,.save-btn{background:linear-gradient(135deg,#2563eb,#1d4ed8)}.cancel-btn{background:#eef1f5;color:#172033}.edit-btn{background:#eff6ff;color:#1d4ed8;padding:7px 10px;font-size:12px}.delete-btn{background:#fef2f2;color:#b91c1c;padding:7px 10px;font-size:12px}.pc-link{background:none;color:#172033;padding:0;font-weight:700;text-decoration:none}.pc-link:hover{color:#2563eb}
.institution-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.institution-card{border:1px solid var(--border);border-radius:12px;padding:15px;background:linear-gradient(180deg,#fff,#fbfcfe);transition:.18s}.institution-card:hover{border-color:#93c5fd;transform:translateY(-2px);box-shadow:0 8px 20px rgba(37,99,235,.08)}.institution-main{cursor:pointer}.institution-actions{display:flex;gap:6px;margin-top:12px}.institution-card strong{display:block;margin-bottom:7px}.institution-card span,.institution-card small{display:block;color:var(--muted);margin-top:4px}
.table-wrap{overflow:auto;border:1px solid var(--border);border-radius:11px}table{width:100%;border-collapse:collapse;font-size:13px}th,td{text-align:left;padding:12px 13px;border-bottom:1px solid #edf0f4;white-space:nowrap}th{color:#64748b;font-weight:700;background:#f8fafc}tbody tr:hover{background:#f8fbff}tbody tr:last-child td{border-bottom:0}.badge{font-size:12px;font-weight:700}.badge.on{color:#16a34a}.badge.off{color:#dc2626}
.modal{display:none;position:fixed;inset:0;background:rgba(15,23,42,.62);backdrop-filter:blur(3px);align-items:center;justify-content:center;padding:20px;z-index:1000}.modal.show{display:flex}.modal-box{background:#fff;border-radius:17px;width:min(720px,100%);padding:25px;box-shadow:0 25px 70px rgba(15,23,42,.25)}.form-box{width:min(820px,100%)}.modal-head{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:22px}.modal-head h2{margin:0 0 7px}.close-btn{background:#f1f5f9;color:#172033;font-size:24px;padding:2px 10px}.detail-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:1px;background:var(--border);border:1px solid var(--border);border-radius:11px;overflow:hidden}.detail-grid>div{background:#fff;padding:14px}.detail-grid label{display:block;color:#64748b;font-size:12px;margin-bottom:5px}.detail-grid strong{display:block;word-break:break-word}.form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:15px}.form-grid label{font-size:13px;color:#475569}.form-grid input,.form-grid select{width:100%;display:block;margin-top:6px}.form-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px}.form-error{color:#dc2626;margin-top:15px;font-size:13px;min-height:18px}
.report-cards{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:20px}.report-card{background:#f8fafc;border:1px solid var(--border);border-radius:12px;padding:16px}.report-card span{display:block;color:var(--muted);font-size:13px}.report-card strong{display:block;font-size:26px;margin-top:8px}.section-title{margin:24px 0 12px;font-size:17px}.settings-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.settings-grid>div{border:1px solid var(--border);border-radius:12px;padding:16px;background:#f8fafc}.settings-grid label{display:block;color:#64748b;font-size:12px;margin-bottom:7px}.settings-grid strong{display:block}.report-btn{background:#172033}.password-box{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr auto;gap:10px;align-items:end}.password-box label{grid-column:1/-1;margin:0}.password-box input{padding:10px}.password-box button{background:#2563eb}.password-box small{grid-column:1/-1;color:#15803d}
#googleMap{box-shadow:inset 0 0 0 1px rgba(15,23,42,.06)}.leaflet-control-zoom a{color:#172033!important}.leaflet-control-attribution{font-size:10px}
@media(max-width:1100px){.institution-cards{grid-template-columns:repeat(2,1fr)}.report-cards{grid-template-columns:repeat(2,1fr)}.settings-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:900px){aside{width:78px;padding:18px 9px}.brand{justify-content:center}.brand>div:not(.brand-icon),.nav-title,.nav-icon+span,.sidebar-footer{display:none}nav a{justify-content:center}.nav-icon{font-size:20px}main{padding:18px}.detail-grid,.form-grid{grid-template-columns:1fr}}@media(max-width:700px){aside{display:none}.stats{grid-template-columns:repeat(2,1fr)}.institution-cards,.report-cards,.settings-grid{grid-template-columns:1fr}.panel-head{align-items:stretch;flex-direction:column}.toolbar,.panel-actions{flex-direction:column;align-items:stretch}input,select{width:100%}.header-actions .user-badge{display:none}.password-box{grid-template-columns:1fr}.password-box label,.password-box small{grid-column:auto}}
/* ===== Dashboard analytics ===== */
.dashboard-analytics{display:grid;grid-template-columns:1fr 1.45fr 1fr;gap:14px;margin-top:20px}.analytics-card{background:#fff;border:1px solid var(--border);border-radius:14px;padding:18px;min-width:0}.analytics-head{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:15px}.analytics-head h3{margin:0;font-size:15px}.analytics-head p{margin:5px 0 0;color:var(--muted);font-size:12px}.status-content{display:flex;align-items:center;gap:20px;min-height:170px}.status-donut{--online-pct:0%;width:145px;height:145px;flex:none;border-radius:50%;background:conic-gradient(#16a34a 0 var(--online-pct),#ef4444 var(--online-pct) 100%);display:grid;place-items:center;position:relative}.status-donut:before{content:"";position:absolute;width:105px;height:105px;border-radius:50%;background:#fff}.status-donut>div{position:relative;text-align:center}.status-donut strong{display:block;font-size:25px}.status-donut span{display:block;color:var(--muted);font-size:11px;margin-top:2px}.status-legend{flex:1}.status-legend>div{display:grid;grid-template-columns:12px 1fr auto;align-items:center;gap:7px;margin:12px 0;font-size:13px}.status-legend strong{font-size:15px}.dot{width:9px;height:9px;border-radius:50%;display:block}.online-dot{background:#16a34a}.offline-dot{background:#ef4444}.status-total{display:block!important;border-top:1px solid var(--border);padding-top:12px;color:var(--muted)}.institution-chart{max-height:205px;overflow:auto;padding-right:3px}.bar-row{display:grid;grid-template-columns:minmax(105px,145px) 1fr 30px;gap:8px;align-items:center;margin:8px 0;font-size:11px}.bar-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#475569}.bar-track{height:10px;background:#edf2f7;border-radius:20px;overflow:hidden}.bar-fill{height:100%;min-width:3px;background:linear-gradient(90deg,#2563eb,#60a5fa);border-radius:20px;transition:width .35s}.bar-row>strong{text-align:right;font-size:12px}.dashboard-recent{display:flex;flex-direction:column;gap:8px}.recent-item{display:flex;align-items:center;gap:9px;padding:9px 0;border-bottom:1px solid #eef2f6}.recent-item:last-child{border-bottom:0}.recent-icon{width:27px;height:27px;border-radius:8px;display:grid;place-items:center;font-weight:800;font-size:13px}.recent-icon.ok{background:#dcfce7;color:#15803d}.recent-icon.bad{background:#fee2e2;color:#b91c1c}.recent-item>div{min-width:0;flex:1}.recent-item strong{display:block;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.recent-item small{display:block;color:var(--muted);font-size:10px;margin-top:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.recent-item b{font-size:10px}.recent-item b.on{color:#16a34a}.recent-item b.off{color:#dc2626}
@media(max-width:1250px){.dashboard-analytics{grid-template-columns:1fr 1fr}.recent-card{grid-column:1/-1}}@media(max-width:900px){.dashboard-analytics{grid-template-columns:1fr}.recent-card{grid-column:auto}.status-content{justify-content:center}}

/* ===== Attention & live monitoring ===== */
.attention-panel{margin-bottom:20px;background:linear-gradient(180deg,#fff,#fffdfd);border:1px solid #fee2e2;border-radius:15px;padding:19px;box-shadow:var(--shadow)}.attention-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}.attention-head h2{margin:0;font-size:18px}.attention-head p{margin:5px 0 0;color:var(--muted);font-size:12px}.attention-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.attention-box{border:1px solid var(--border);border-radius:12px;padding:13px;background:#fff}.attention-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px;font-size:12px;font-weight:700}.attention-title strong{font-size:20px;color:#dc2626}.attention-list{max-height:190px;overflow:auto}.attention-row{display:flex;align-items:center;gap:8px;padding:8px 0;border-bottom:1px solid #f1f5f9}.attention-row:last-child{border-bottom:0}.attention-dot{width:8px;height:8px;flex:none;border-radius:50%;background:#ef4444}.attention-row>div{min-width:0;flex:1}.attention-row strong,.attention-row small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.attention-row strong{font-size:11px}.attention-row small{font-size:9px;color:var(--muted);margin-top:2px}.attention-row b{font-size:9px;color:#94a3b8}.attention-empty{padding:22px 5px;text-align:center;color:#16a34a;font-size:12px}.tablet-stat strong{color:#2563eb}
@media(max-width:1100px){.attention-grid{grid-template-columns:1fr 1fr}.attention-box:last-child{grid-column:1/-1}}@media(max-width:700px){.attention-grid{grid-template-columns:1fr}.attention-box:last-child{grid-column:auto}.attention-head{align-items:stretch;gap:10px;flex-direction:column}}

/* ===== Professional device profile & audit ===== */
.detail-actions{display:flex;justify-content:flex-end;margin-top:18px;padding-top:14px;border-top:1px solid var(--border)}.location-btn{border:0;border-radius:9px;padding:10px 14px;background:#2563eb;color:#fff;font-weight:700;cursor:pointer}.location-btn:hover{filter:brightness(.95)}.audit-action{display:inline-flex;padding:5px 8px;border-radius:7px;background:#eff6ff;color:#1d4ed8;font-size:11px;font-weight:700}.audit-details{max-width:420px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:11px;color:var(--muted)}
#detailModal .modal-box{max-width:820px}#detailModal .detail-grid>div{background:#f8fafc;border:1px solid #e2e8f0;border-radius:10px;padding:10px 12px}#detailModal .detail-grid label{font-size:10px;color:#64748b;text-transform:uppercase;letter-spacing:.03em}#detailModal .detail-grid strong{display:block;margin-top:4px;font-size:13px;word-break:break-word}

/* ===== Monitoring analytics ===== */
.monitoring-summary{margin:18px 0;background:#fff;border:1px solid var(--border);border-radius:15px;padding:18px;box-shadow:var(--shadow)}.summary-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}.summary-head h2{margin:0;font-size:18px}.summary-head p{margin:4px 0 0;color:var(--muted);font-size:12px}.summary-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.summary-card{border:1px solid #e2e8f0;border-radius:11px;padding:11px;background:#f8fafc}.summary-card-top{display:flex;justify-content:space-between;gap:8px;font-size:11px}.summary-card-top strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.summary-card-top span{font-weight:800;color:#2563eb}.summary-meter{height:7px;background:#e2e8f0;border-radius:20px;overflow:hidden;margin:9px 0}.summary-meter i{display:block;height:100%;background:#22c55e;border-radius:20px}.summary-meta{display:flex;justify-content:space-between;color:#64748b;font-size:9px}.history-strip{margin-top:16px;border-top:1px solid #e2e8f0;padding-top:14px}.history-head{display:flex;justify-content:space-between;font-size:11px;margin-bottom:10px}.history-head span{color:#64748b}.history-bars{height:125px;display:flex;align-items:flex-end;gap:7px;overflow-x:auto;padding:0 4px}.history-bar{min-width:23px;height:115px;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:4px}.bar-stack{height:92px;width:18px;display:flex;flex-direction:column;justify-content:flex-end;align-items:stretch;gap:1px}.bar-stack i{display:block;border-radius:3px 3px 0 0}.bar-online{background:#22c55e}.bar-offline{background:#ef4444}.history-bar small{font-size:8px;color:#94a3b8}
@media(max-width:1100px){.summary-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:700px){.summary-grid{grid-template-columns:1fr}.summary-head{flex-direction:column;align-items:flex-start;gap:8px}.summary-meta{flex-direction:column;gap:2px}}

/* Dashboardni ixchamlashtirish: muassasa kartalari alohida "Muassasalar" menyusida */
/* Muassasalar bo‘limi alohida sahifa sifatida to‘liq ko‘rinadi */
.institution-panel > .panel-head{display:flex!important}
.institution-panel{padding-top:21px!important}

/* ===== Dynamic device categories ===== */
.device-category-tabs{display:flex;gap:8px;flex-wrap:wrap;padding:12px 0 8px;border-bottom:1px solid var(--border);margin-bottom:8px}.device-tab{border:1px solid #dbe3ef;background:#fff;border-radius:10px;padding:8px 12px;font-size:11px;font-weight:700;color:#475569;cursor:pointer}.device-tab:hover{border-color:#93c5fd;background:#f8fbff}.device-tab.active{background:#2563eb;border-color:#2563eb;color:#fff}.device-tab b{margin-left:5px;font-size:10px;opacity:.8}.device-tab.manage{margin-left:auto;background:#f8fafc}.category-manager{display:flex;align-items:center;gap:10px;margin:5px 0 14px;padding:9px 11px;border-radius:9px;background:#f8fafc;color:#475569;font-size:11px}.category-manager small{color:#94a3b8}.small-form{max-width:520px}
@media(max-width:700px){.device-category-tabs{overflow-x:auto;flex-wrap:nowrap}.device-tab.manage{margin-left:0}.category-manager{align-items:flex-start;flex-direction:column;gap:3px}}

/* ===== Dashboard monitoring overview ===== */
.dashboard-overview{background:linear-gradient(135deg,#f8fbff 0%,#ffffff 55%,#f8faff 100%);border:1px solid var(--border);border-radius:18px;padding:20px;margin-bottom:20px;box-shadow:var(--shadow)}
.overview-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.overview-header h2{margin:0;font-size:20px}.overview-header p{margin:5px 0 0;color:var(--muted);font-size:12px}.overview-live{font-size:10px;font-weight:800;letter-spacing:.7px;color:#15803d;background:#dcfce7;border:1px solid #bbf7d0;padding:7px 10px;border-radius:20px}
.overview-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.monitor-card{background:linear-gradient(145deg,#fff 0%,#fbfdff 100%);border:1px solid #dfe7f2;border-radius:20px;padding:22px;position:relative;overflow:hidden;box-shadow:0 10px 30px rgba(15,23,42,.06)}.monitor-card:after{content:"";position:absolute;width:190px;height:190px;border-radius:50%;right:-105px;top:-105px;background:rgba(37,99,235,.06);pointer-events:none}.tablet-monitor:after,.tablet-distribution-card:after{background:rgba(124,58,237,.07)}.institution-monitor:after{background:rgba(14,165,233,.05)}
.monitor-head{display:flex;align-items:center;gap:13px;margin-bottom:14px;position:relative;z-index:1}.monitor-icon{width:48px;height:48px;border-radius:14px;background:#eff6ff;display:grid;place-items:center;font-size:24px;flex:none}.tablet-monitor .monitor-icon,.tablet-distribution-card .monitor-icon{background:#f5f3ff}.institution-monitor .monitor-icon{background:#ecfeff}.monitor-head h3{margin:0;font-size:18px;font-weight:800}.monitor-head span{display:block;font-size:12px;color:var(--muted);margin-top:3px}.distribution-total{margin-left:auto;background:#f1f5f9;border-radius:12px;padding:9px 13px;font-size:12px;color:#334155;white-space:nowrap}.tablet-total-badge{background:#f3e8ff;color:#6d28d9}
.monitor-body{display:flex;align-items:center;justify-content:center;gap:34px;min-height:205px;position:relative;z-index:1}.big-donut{--pct:0%;width:168px;height:168px;border-radius:50%;display:grid;place-items:center;position:relative;flex:none;background:conic-gradient(#16a34a 0 var(--pct),#ef4444 var(--pct) 100%);box-shadow:0 10px 30px rgba(15,23,42,.12)}.big-donut:before{content:"";position:absolute;inset:18px;background:#fff;border-radius:50%}.big-donut>div{position:relative;text-align:center}.big-donut strong{display:block;font-size:34px;font-weight:800}.big-donut small{display:block;color:var(--muted);font-size:11px;margin-top:3px}.tablet-donut{background:conic-gradient(#7c3aed 0 var(--pct),#ef4444 var(--pct) 100%)}
.monitor-stats{min-width:180px}.mstat{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:12px 14px;margin-bottom:7px;border:1px solid #edf1f6;border-radius:11px;background:#fff;font-size:14px}.mstat b{font-size:18px}.online-stat b{color:#16a34a}.tablet-monitor .online-stat b{color:#7c3aed}.offline-stat b{color:#dc2626}.total-stat{border:0;background:#f8fafc;color:var(--muted)}.total-stat b{color:var(--text)}
.mini-progress{height:8px;background:#fee2e2;border-radius:99px;overflow:hidden}.mini-progress span{display:block;height:100%;background:linear-gradient(90deg,#16a34a,#22c55e);border-radius:99px;transition:width .45s}.tablet-progress{background:#ede9fe}.tablet-progress span{background:linear-gradient(90deg,#7c3aed,#a78bfa)}
.dashboard-institution-chart{max-height:310px;overflow:auto;padding-right:6px}.dashboard-institution-chart .bar-row{margin:10px 0}.dashboard-institution-chart .bar-label{max-width:220px}.dashboard-distribution-card,.tablet-distribution-card{min-height:380px}.dashboard-distribution-card .bar-track,.tablet-distribution-card .bar-track{height:11px}.dashboard-distribution-card .bar-row,.tablet-distribution-card .bar-row{grid-template-columns:minmax(130px,190px) 1fr 35px;font-size:12px}.dashboard-distribution-card .bar-row>strong,.tablet-distribution-card .bar-row>strong{font-size:14px}.tablet-bar-fill{background:linear-gradient(90deg,#7c3aed,#a78bfa)}
.recent-monitor{background:#fff;border:1px solid var(--border);border-radius:18px;padding:18px;margin-top:18px;box-shadow:0 8px 24px rgba(15,23,42,.05)}.recent-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:9px}.recent-title h3{margin:0;font-size:16px}.recent-title span{color:var(--muted);font-size:11px}.recent-title .refresh-btn{padding:7px 10px;font-size:11px}
@media(max-width:1100px){.overview-grid{grid-template-columns:1fr}.monitor-body{min-height:185px}.dashboard-distribution-card,.tablet-distribution-card{min-height:320px}}
@media(max-width:700px){.overview-header,.recent-title{align-items:flex-start;gap:10px;flex-direction:column}.overview-grid{grid-template-columns:1fr}.institution-monitor{grid-column:auto}.monitor-body{justify-content:flex-start}}

/* ===== Modern dashboard refresh v2 ===== */
:root{
  --bg:#f4f7fb;
  --card:#ffffff;
  --text:#0f172a;
  --muted:#64748b;
  --border:#e7edf5;
  --shadow:0 8px 30px rgba(15,23,42,.055);
}
body{
  background:
    radial-gradient(circle at 8% 0%,rgba(37,99,235,.055),transparent 28%),
    radial-gradient(circle at 95% 5%,rgba(124,58,237,.045),transparent 25%),
    #f4f7fb;
}
.layout{min-height:100vh}
aside{
  background:linear-gradient(180deg,#071d35 0%,#0b2949 48%,#08213b 100%);
  box-shadow:10px 0 35px rgba(15,23,42,.08);
}
.brand{padding:18px 16px 22px}
.brand-icon{
  width:42px;height:42px;border-radius:13px;
  background:linear-gradient(135deg,#1685ff,#2563eb);
  box-shadow:0 8px 22px rgba(37,99,235,.28);
}
nav a{
  border-radius:12px;
  margin:4px 0;
  transition:all .2s ease;
}
nav a:hover{
  background:rgba(255,255,255,.08);
  transform:translateX(2px);
}
nav a.active{
  background:linear-gradient(135deg,#1677f2,#2563eb);
  box-shadow:0 8px 22px rgba(37,99,235,.25);
}
main{padding:24px 28px 40px}
header{
  background:rgba(255,255,255,.82);
  backdrop-filter:blur(12px);
  border:1px solid rgba(226,232,240,.8);
  border-radius:18px;
  padding:18px 20px;
  margin-bottom:18px;
  box-shadow:0 6px 25px rgba(15,23,42,.04);
}
header h1{font-size:25px;letter-spacing:-.4px}
header p{color:#64748b}
.header-actions{gap:9px}
.stats{
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
  margin-bottom:18px;
}
.stat{
  min-height:112px;
  border:1px solid #e6edf6;
  border-radius:17px;
  background:linear-gradient(145deg,#fff 0%,#f9fbff 100%);
  box-shadow:0 7px 24px rgba(15,23,42,.045);
  transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;
}
.stat:hover{
  transform:translateY(-3px);
  box-shadow:0 13px 30px rgba(15,23,42,.09);
  border-color:#d6e3f3;
}
.stat-icon{
  border-radius:14px;
  box-shadow:0 7px 16px rgba(15,23,42,.12);
}
.stat-content span{font-size:12px;font-weight:700;color:#64748b}
.stat-content strong{font-size:31px;letter-spacing:-1px}
.dashboard-overview{
  border:1px solid #e3eaf3;
  background:linear-gradient(135deg,rgba(248,251,255,.96),#fff 55%,rgba(247,249,255,.96));
  box-shadow:0 12px 38px rgba(15,23,42,.055);
  padding:22px;
}
.overview-header{padding:2px 2px 4px}
.overview-header h2{font-size:19px;letter-spacing:-.2px}
.overview-live{
  box-shadow:0 4px 12px rgba(22,163,74,.1);
}
.monitor-card{
  border:1px solid #e2e9f2;
  border-radius:18px;
  box-shadow:0 8px 28px rgba(15,23,42,.055);
  transition:transform .2s ease,box-shadow .2s ease;
}
.monitor-card:hover{
  transform:translateY(-2px);
  box-shadow:0 14px 34px rgba(15,23,42,.085);
}
.monitor-head h3{letter-spacing:-.25px}
.big-donut{box-shadow:0 12px 28px rgba(15,23,42,.10)}
.mstat{
  box-shadow:0 2px 8px rgba(15,23,42,.025);
  transition:.18s ease;
}
.mstat:hover{transform:translateX(2px);border-color:#dbe5f1}
.dashboard-distribution-card,.tablet-distribution-card{min-height:340px}
.panel{
  border-radius:17px;
  box-shadow:0 7px 26px rgba(15,23,42,.045);
}
.table-wrap{
  border-radius:13px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.7);
}
th{
  background:linear-gradient(180deg,#f8fafc,#f3f6fa);
  font-size:12px;
  letter-spacing:.1px;
}
tbody tr{transition:background .15s ease}
button,.add-btn,.save-btn,.report-btn,.export-btn{
  border-radius:10px;
  transition:transform .15s ease,box-shadow .15s ease,filter .15s ease;
}
button:hover,.add-btn:hover,.save-btn:hover,.report-btn:hover,.export-btn:hover{
  transform:translateY(-1px);
}
input,select{
  border-radius:10px;
  background:#fff;
}
@media(max-width:1250px){
  .stats{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:700px){
  main{padding:14px 12px 28px}
  header{padding:15px;border-radius:15px}
  .stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
}

/* ===== Dashboard single-screen layout ===== */
body{
  background:
    radial-gradient(circle at 15% 8%,rgba(59,130,246,.13),transparent 27%),
    radial-gradient(circle at 86% 12%,rgba(139,92,246,.10),transparent 25%),
    linear-gradient(135deg,#eef5ff 0%,#f7f9fc 48%,#f2f5ff 100%);
  background-attachment:fixed;
}
main{padding:16px 22px 18px}
header{
  min-height:68px;
  margin-bottom:12px;
  padding:13px 18px;
}
header h1{font-size:23px}
header p{margin-top:2px}
.dashboard-overview{
  margin:0;
  padding:14px;
  border-radius:17px;
  min-height:calc(100vh - 118px);
  box-sizing:border-box;
}
.overview-header{margin-bottom:10px;padding:0 2px}
.overview-header h2{font-size:17px}
.overview-header p{font-size:11px;margin-top:2px}
.overview-live{padding:6px 9px;font-size:9px}
.overview-grid{
  grid-template-columns:1fr 1fr;
  grid-template-rows:235px minmax(0,1fr);
  gap:12px;
  height:calc(100vh - 190px);
}
.monitor-card{
  border-radius:15px;
  padding:13px 15px;
  min-height:0;
}
.monitor-head{gap:9px;margin-bottom:7px}
.monitor-icon{width:37px;height:37px;border-radius:11px;font-size:19px}
.monitor-head h3{font-size:15px}
.monitor-head span{font-size:10px;margin-top:1px}
.monitor-body{
  min-height:0;
  height:155px;
  gap:24px;
}
.big-donut{
  width:126px;height:126px;
}
.big-donut:before{inset:14px}
.big-donut strong{font-size:27px}
.big-donut small{font-size:9px}
.monitor-stats{min-width:145px}
.mstat{
  padding:8px 10px;
  margin-bottom:5px;
  font-size:11px;
  border-radius:9px;
}
.mstat b{font-size:15px}
.mini-progress{height:6px}
.dashboard-distribution-card,
.tablet-distribution-card{
  min-height:0;
  height:auto;
}
.dashboard-institution-chart{
  max-height:none;
  height:calc(100% - 52px);
  overflow:hidden;
  padding-right:2px;
}
.dashboard-distribution-card .monitor-head,
.tablet-distribution-card .monitor-head{margin-bottom:5px}
.dashboard-distribution-card .bar-row,
.tablet-distribution-card .bar-row{
  grid-template-columns:145px 1fr 24px;
  gap:7px;
  margin:4px 0;
  font-size:9px;
  line-height:1;
}
.dashboard-distribution-card .bar-label,
.tablet-distribution-card .bar-label{max-width:145px}
.dashboard-distribution-card .bar-track,
.tablet-distribution-card .bar-track{height:6px}
.dashboard-distribution-card .bar-row>strong,
.tablet-distribution-card .bar-row>strong{font-size:10px}
.distribution-total{padding:6px 9px;font-size:10px;border-radius:9px}
.tablet-total-badge{padding:6px 9px}
@media(max-height:800px) and (min-width:901px){
  main{padding-top:10px}
  header{min-height:58px;padding:10px 16px;margin-bottom:8px}
  .dashboard-overview{padding:11px}
  .overview-grid{grid-template-rows:200px minmax(0,1fr);height:calc(100vh - 145px);gap:9px}
  .monitor-body{height:128px}
  .big-donut{width:105px;height:105px}
  .big-donut:before{inset:12px}
  .big-donut strong{font-size:23px}
  .dashboard-distribution-card .bar-row,
  .tablet-distribution-card .bar-row{margin:2.5px 0}
}
@media(max-width:900px){
  .overview-grid{
    height:auto;
    grid-template-rows:auto;
  }
  .dashboard-overview{min-height:0}
  .monitor-body{height:auto;min-height:150px}
  .dashboard-institution-chart{height:280px;overflow:auto}
}

/* ===== FINAL FUTURISTIC DARK DASHBOARD ===== */
:root{
  --bg:#050b1c;
  --card:#0b1730;
  --text:#eef6ff;
  --muted:#8fa6c6;
  --border:rgba(89,145,220,.24);
  --shadow:0 18px 55px rgba(0,0,0,.34);
}
html,body{background:#050b1c!important;color:var(--text)!important}
body{
  background:
    radial-gradient(900px 500px at 55% -10%,rgba(29,78,216,.42),transparent 62%),
    radial-gradient(650px 500px at 95% 18%,rgba(124,58,237,.25),transparent 65%),
    radial-gradient(600px 450px at 35% 100%,rgba(6,182,212,.14),transparent 65%),
    linear-gradient(135deg,#030817 0%,#07152d 48%,#080d25 100%)!important;
  background-attachment:fixed;
}
body:before{
  content:"";
  position:fixed;inset:0;pointer-events:none;z-index:-1;
  background:
    linear-gradient(rgba(59,130,246,.035) 1px,transparent 1px),
    linear-gradient(90deg,rgba(59,130,246,.035) 1px,transparent 1px);
  background-size:42px 42px;
  mask-image:linear-gradient(to bottom,black,transparent 90%);
}
aside{
  background:linear-gradient(180deg,rgba(3,12,31,.97),rgba(5,20,43,.94) 55%,rgba(4,10,27,.98))!important;
  border-right:1px solid rgba(80,140,220,.18);
  box-shadow:12px 0 45px rgba(0,0,0,.25);
  backdrop-filter:blur(18px);
}
.brand-icon{
  background:linear-gradient(135deg,#1597ff,#4f46e5)!important;
  box-shadow:0 0 28px rgba(37,99,235,.42)!important;
}
.brand strong,.brand span{color:#fff}
.nav-title{color:#6f8db4!important}
nav a{color:#b8cae3!important}
nav a:hover{background:rgba(59,130,246,.12)!important}
nav a.active{
  background:linear-gradient(90deg,#1677f2,#2563eb)!important;
  box-shadow:0 8px 28px rgba(37,99,235,.38)!important;
  color:#fff!important;
}
.sidebar-footer{
  background:rgba(15,34,64,.72)!important;
  border:1px solid rgba(83,142,218,.2)!important;
  color:#91a9c8!important;
}
.sidebar-footer b{color:#fff}
main{padding:14px 20px 18px!important}
header{
  background:rgba(7,20,44,.64)!important;
  border:1px solid rgba(92,150,225,.22)!important;
  box-shadow:0 12px 40px rgba(0,0,0,.2)!important;
  backdrop-filter:blur(18px);
}
header h1{color:#f4f8ff!important;font-size:25px!important}
header p{color:#86a2c5!important}
.header-actions button,.user-badge{
  background:rgba(17,38,72,.72)!important;
  color:#dcecff!important;
  border:1px solid rgba(93,148,219,.22)!important;
}
.logout-btn{background:linear-gradient(135deg,#dc2626,#ef4444)!important;color:#fff!important}
.dashboard-overview{
  background:
    linear-gradient(145deg,rgba(8,24,52,.88),rgba(5,15,34,.82)),
    radial-gradient(circle at 80% 0%,rgba(37,99,235,.16),transparent 40%)!important;
  border:1px solid rgba(88,146,221,.25)!important;
  box-shadow:0 22px 65px rgba(0,0,0,.28)!important;
  backdrop-filter:blur(18px);
  min-height:calc(100vh - 108px)!important;
  padding:14px!important;
}
.overview-header h2{color:#f4f8ff!important}
.overview-header p{color:#7894b7!important}
.overview-live{
  background:rgba(16,185,129,.13)!important;
  border:1px solid rgba(52,211,153,.28)!important;
  color:#4ade80!important;
  box-shadow:0 0 22px rgba(16,185,129,.12);
}
.overview-grid{
  grid-template-rows:235px minmax(0,1fr)!important;
  gap:12px!important;
  height:calc(100vh - 176px)!important;
}
.monitor-card{
  background:
    linear-gradient(145deg,rgba(10,34,70,.92),rgba(6,20,44,.94))!important;
  border:1px solid rgba(69,137,221,.3)!important;
  box-shadow:inset 0 1px rgba(255,255,255,.035),0 16px 45px rgba(0,0,0,.28)!important;
  color:#eef6ff!important;
}
.monitor-card:after{
  background:radial-gradient(circle,rgba(37,99,235,.17),transparent 68%)!important;
}
.tablet-monitor{
  background:linear-gradient(145deg,rgba(31,18,72,.93),rgba(12,13,42,.95))!important;
  border-color:rgba(139,92,246,.35)!important;
}
.tablet-monitor:after{background:radial-gradient(circle,rgba(168,85,247,.2),transparent 68%)!important}
.monitor-icon{background:rgba(37,99,235,.18)!important;border:1px solid rgba(96,165,250,.2)}
.tablet-monitor .monitor-icon{background:rgba(139,92,246,.18)!important}
.monitor-head h3{color:#f4f8ff!important}
.monitor-head span{color:#7894b7!important}
.big-donut{box-shadow:0 0 35px rgba(37,99,235,.12)!important}
.tablet-donut{box-shadow:0 0 35px rgba(139,92,246,.14)!important}
.big-donut:before{background:#08172f!important}
.tablet-donut:before{background:#130d32!important}
.big-donut strong{color:#fff}
.big-donut small{color:#8da7c7}
.mstat{
  background:rgba(12,34,66,.72)!important;
  border:1px solid rgba(85,143,215,.18)!important;
  color:#dcecff!important;
  box-shadow:0 7px 20px rgba(0,0,0,.14)!important;
}
.total-stat{background:rgba(8,23,45,.55)!important;color:#8fa6c6!important}
.total-stat b{color:#fff!important}
.mini-progress{background:rgba(239,68,68,.16)!important}
.tablet-progress{background:rgba(139,92,246,.14)!important}
.dashboard-distribution-card,.tablet-distribution-card{
  background:linear-gradient(145deg,rgba(8,29,59,.94),rgba(5,17,37,.95))!important;
}
.tablet-distribution-card{
  background:linear-gradient(145deg,rgba(26,17,61,.94),rgba(12,12,39,.96))!important;
  border-color:rgba(139,92,246,.3)!important;
}
.dashboard-distribution-card .monitor-icon{background:rgba(6,182,212,.12)!important}
.distribution-total{
  background:rgba(28,55,92,.65)!important;
  color:#bcd4f1!important;
  border:1px solid rgba(96,165,250,.14);
}
.tablet-total-badge{background:rgba(126,34,206,.2)!important;color:#d8b4fe!important}
.bar-label{color:#aac0dc!important}
.bar-track{background:rgba(100,140,190,.16)!important}
.bar-fill{
  background:linear-gradient(90deg,#1683ff,#38bdf8)!important;
  box-shadow:0 0 12px rgba(56,189,248,.24);
}
.tablet-bar-fill{
  background:linear-gradient(90deg,#9333ea,#c084fc)!important;
  box-shadow:0 0 12px rgba(192,132,252,.24);
}
.dashboard-distribution-card .bar-row>strong,
.tablet-distribution-card .bar-row>strong{color:#e8f2ff!important}
#pcProgress{background:linear-gradient(90deg,#10b981,#22c55e)!important}
#tabletProgress{background:linear-gradient(90deg,#9333ea,#c084fc)!important}
section.panel{
  background:rgba(8,22,45,.9)!important;
  color:#eaf3ff!important;
  border-color:rgba(79,137,210,.22)!important;
}
section.panel h2,section.panel h3{color:#f2f7ff}
.muted{color:#8099ba!important}
.table-wrap{
  border-color:rgba(79,137,210,.2)!important;
  background:rgba(5,16,34,.55)!important;
}
th{
  background:rgba(18,43,76,.85)!important;
  color:#91afd0!important;
}
td{color:#dcecff;border-color:rgba(80,130,190,.12)!important}
tbody tr:hover{background:rgba(37,99,235,.08)!important}
input,select{
  background:rgba(8,24,49,.86)!important;
  color:#eaf3ff!important;
  border-color:rgba(86,143,211,.25)!important;
}
input::placeholder{color:#6985a8}
button{color:#dcecff}
.add-btn,.save-btn{background:linear-gradient(135deg,#1677f2,#4f46e5)!important}
.report-btn{background:rgba(21,57,101,.9)!important}
.export-btn{background:linear-gradient(135deg,#0891b2,#0e7490)!important}
.modal-box{background:#091a35!important;color:#eaf3ff;border:1px solid rgba(85,143,215,.22)}
.detail-grid>div{background:#0d2343!important}
.form-grid label,.settings-grid label{color:#91a9c8}
.settings-grid>div,.report-card{background:#0b1d38!important;border-color:rgba(80,140,210,.18)!important}
.report-card strong{color:#fff}
@media(max-height:800px) and (min-width:901px){
  main{padding-top:9px!important}
  header{min-height:56px!important;padding:9px 15px!important;margin-bottom:8px!important}
  .dashboard-overview{min-height:calc(100vh - 91px)!important;padding:10px!important}
  .overview-grid{height:calc(100vh - 153px)!important;grid-template-rows:205px minmax(0,1fr)!important}
  .monitor-body{height:130px!important}
  .big-donut{width:106px;height:106px}
  .big-donut:before{inset:12px}
  .big-donut strong{font-size:23px}
  .mstat{padding:7px 9px}
}

/* ===== CLEAN LIGHT PREMIUM DASHBOARD (latest) ===== */
html,body{color:#14233b!important}
body{
 background:
   radial-gradient(700px 380px at 18% 0%,rgba(96,165,250,.16),transparent 62%),
   radial-gradient(620px 380px at 86% 4%,rgba(167,139,250,.13),transparent 62%),
   radial-gradient(800px 520px at 55% 100%,rgba(125,211,252,.08),transparent 70%),
   linear-gradient(135deg,#eaf3ff 0%,#f6f8fc 52%,#eef2ff 100%)!important;
 background-attachment:fixed;
}
body:before{
 background:
   linear-gradient(rgba(59,130,246,.035) 1px,transparent 1px),
   linear-gradient(90deg,rgba(59,130,246,.035) 1px,transparent 1px);
 background-size:36px 36px;
 opacity:.7;
}
aside{
 background:linear-gradient(180deg,#0b2748,#123a63)!important;
 border-right:1px solid rgba(255,255,255,.08)!important;
 box-shadow:10px 0 35px rgba(30,64,175,.12)!important;
}
.brand-icon{background:linear-gradient(135deg,#3b82f6,#2563eb)!important}
nav a{color:#cfe0f5!important}
nav a.active{background:linear-gradient(135deg,#2d8cff,#2563eb)!important;box-shadow:0 9px 22px rgba(37,99,235,.28)!important}
.sidebar-footer{background:rgba(255,255,255,.06)!important;border-color:rgba(255,255,255,.1)!important}
main{padding:14px 20px 18px!important}
header{
 background:rgba(255,255,255,.76)!important;
 border:1px solid rgba(203,213,225,.7)!important;
 box-shadow:0 10px 30px rgba(30,64,175,.07)!important;
 backdrop-filter:blur(16px);
}
header h1{color:#13233c!important}
header p,.muted{color:#71839b!important}
.header-actions button,.user-badge{
 background:rgba(255,255,255,.84)!important;color:#334155!important;
 border:1px solid #dbe4ef!important;
}
.dashboard-overview{
 background:rgba(255,255,255,.58)!important;
 border:1px solid rgba(203,213,225,.75)!important;
 box-shadow:0 18px 50px rgba(30,64,175,.08)!important;
 backdrop-filter:blur(16px);
}
.overview-header h2{color:#14233b!important}
.overview-live{background:#eafff2!important;border-color:#c9f4d7!important;color:#159447!important}
.monitor-card{
 background:linear-gradient(145deg,rgba(255,255,255,.97),rgba(246,250,255,.92))!important;
 border:1px solid #dce6f1!important;
 box-shadow:0 10px 30px rgba(51,78,112,.08)!important;
 color:#17263f!important;
}
.monitor-card:after{background:radial-gradient(circle,rgba(96,165,250,.12),transparent 68%)!important}
.tablet-monitor{
 background:linear-gradient(145deg,rgba(255,255,255,.98),rgba(250,247,255,.94))!important;
 border-color:#e7ddfb!important;
}
.monitor-icon{background:#eef6ff!important;border-color:#dbeafe!important}
.tablet-monitor .monitor-icon{background:#f4efff!important;border-color:#ede9fe!important}
.monitor-head h3{color:#14233b!important}
.monitor-head span{color:#73869f!important}
.big-donut:before{background:#fff!important}
.tablet-donut:before{background:#fff!important}
.big-donut strong{color:#13233c!important}
.big-donut small{color:#71839b!important}
.mstat{
 background:rgba(255,255,255,.9)!important;
 border:1px solid #e5edf5!important;
 color:#334155!important;
 box-shadow:0 5px 15px rgba(30,64,175,.05)!important;
}
.total-stat{background:#f7f9fc!important}
.total-stat b{color:#14233b!important}
.dashboard-distribution-card,.tablet-distribution-card{
 background:linear-gradient(145deg,rgba(255,255,255,.98),rgba(247,251,255,.94))!important;
}
.tablet-distribution-card{
 background:linear-gradient(145deg,rgba(255,255,255,.98),rgba(251,248,255,.95))!important;
 border-color:#e7ddfb!important;
}
.distribution-total{background:#eef5ff!important;color:#315b8a!important;border-color:#d9e8fb!important}
.tablet-total-badge{background:#f3edff!important;color:#7040b8!important;border-color:#e9ddff!important}
.bar-label{color:#50657e!important}
.bar-track{background:#e9eff6!important}
.bar-fill{box-shadow:none!important}
.tablet-bar-fill{box-shadow:none!important}
.dashboard-distribution-card .bar-row,
.tablet-distribution-card .bar-row{grid-template-columns:190px 1fr 35px!important;font-size:11px!important;margin:7px 0!important}
.dashboard-distribution-card .bar-label,
.tablet-distribution-card .bar-label{max-width:190px!important}
.dashboard-distribution-card .bar-track,
.tablet-distribution-card .bar-track{height:8px!important}
.dashboard-distribution-card .bar-row>strong,
.tablet-distribution-card .bar-row>strong{font-size:12px!important;color:#26384f!important}
section.panel{background:rgba(255,255,255,.9)!important;color:#17263f!important;border-color:#dfe8f1!important}
section.panel h2,section.panel h3{color:#14233b}
.table-wrap{border-color:#dfe8f1!important;background:#fff!important}
th{background:#f5f8fb!important;color:#667b94!important}
td{color:#334155!important;border-color:#edf2f6!important}
tbody tr:hover{background:#f7fbff!important}
input,select{background:#fff!important;color:#334155!important;border-color:#d8e2ed!important}
input::placeholder{color:#94a3b8!important}
.modal-box{background:#fff!important;color:#17263f!important;border-color:#dde6f0!important}
.detail-grid>div{background:#f8fafc!important}
.settings-grid>div,.report-card{background:#f8fafc!important;border-color:#e1e9f2!important}
.report-card strong{color:#14233b!important}
@media(max-height:800px) and (min-width:901px){
 .dashboard-overview{padding:11px!important}
 .overview-grid{grid-template-rows:220px minmax(0,1fr)!important;height:calc(100vh - 160px)!important}
 .monitor-body{height:145px!important}
 .big-donut{width:115px;height:115px}
 .big-donut:before{inset:13px}
 .big-donut strong{font-size:24px}
 .dashboard-distribution-card .bar-row,.tablet-distribution-card .bar-row{margin:5px 0!important}
}

/* ===== Softer background + centered institutional title ===== */
body{
  background:
    radial-gradient(900px 480px at 8% 0%,rgba(147,197,253,.20),transparent 62%),
    radial-gradient(800px 500px at 92% 8%,rgba(196,181,253,.15),transparent 64%),
    linear-gradient(135deg,#e9f2fb 0%,#f3f7fb 48%,#eef3fa 100%)!important;
}
body:before{opacity:.32;background-size:52px 52px}
header{
  justify-content:center;
  text-align:center;
  position:relative;
  padding:14px 20px 16px!important;
}
header>div:first-child{width:100%}
header h1{
  margin:0;
  font-size:22px!important;
  letter-spacing:-.35px;
}
header p{
  margin:4px auto 0!important;
  max-width:760px;
  font-size:11px;
}
header .header-actions{
  position:absolute;
  right:18px;
  top:50%;
  transform:translateY(-50%);
}
.dashboard-overview{
  background:rgba(255,255,255,.66)!important;
}
.overview-header{
  justify-content:center;
  text-align:center;
}
.overview-header>div:first-child{width:100%}
.overview-header h2{font-size:18px!important}
.overview-header p{font-size:11px}
.overview-live{
  position:absolute;
  right:18px;
}
@media(max-width:700px){
  header{padding-bottom:74px!important}
  header .header-actions{
    top:auto;bottom:12px;right:12px;transform:none;
  }
  .overview-header{padding-right:0}
  .overview-live{position:static;margin-top:8px;display:inline-block}
}

/* ===== Dashboard visual match: compact professional blue / violet ===== */
html,body{overflow:hidden}
body{
  background:
    radial-gradient(900px 420px at 50% -10%,rgba(37,99,235,.22),transparent 66%),
    radial-gradient(680px 420px at 92% 12%,rgba(124,58,237,.17),transparent 66%),
    linear-gradient(135deg,#e6eef9 0%,#edf3fa 50%,#e7eefb 100%)!important;
}
body:before{display:none}
.layout{height:100vh;overflow:hidden}
aside{height:100vh;overflow:hidden}
main{height:100vh;overflow:hidden;padding:12px 18px 14px!important;box-sizing:border-box}
header{
  height:64px;min-height:64px;box-sizing:border-box;
  margin-bottom:10px;padding:11px 16px!important;
  display:flex;align-items:center;
}
header>div:first-child{width:auto;text-align:left}
header h1{font-size:20px!important}
header p{font-size:10px!important;margin-top:2px!important}
header .header-actions{margin-left:auto;position:static;transform:none}
.dashboard-overview{
  height:calc(100vh - 86px)!important;min-height:0!important;
  padding:11px!important;box-sizing:border-box;
  overflow:hidden;
}
.overview-header{height:42px;margin-bottom:7px;text-align:left;justify-content:space-between}
.overview-header>div:first-child{width:auto}
.overview-header h2{font-size:16px!important}
.overview-header p{font-size:9px}
.overview-live{position:static!important}
.overview-grid{
  height:calc(100% - 49px)!important;
  grid-template-columns:1fr 1fr!important;
  grid-template-rows:190px minmax(0,1fr)!important;
  gap:10px!important;
}
.monitor-card{padding:11px 13px!important;border-radius:14px!important}
.monitor-head{margin-bottom:5px!important}
.monitor-icon{width:34px;height:34px;font-size:17px}
.monitor-head h3{font-size:14px!important}
.monitor-head span{font-size:9px!important}
.monitor-body{height:128px!important;min-height:0!important;gap:18px!important}
.big-donut{width:104px!important;height:104px!important}
.big-donut:before{inset:12px!important}
.big-donut strong{font-size:23px!important}
.big-donut small{font-size:8px!important}
.monitor-stats{min-width:150px!important}
.mstat{padding:7px 9px!important;font-size:10px!important;margin-bottom:4px!important}
.mstat b{font-size:14px!important}
.mini-progress{height:5px!important}
.dashboard-distribution-card,.tablet-distribution-card{min-height:0!important;height:auto!important}
.dashboard-institution-chart{
  height:calc(100% - 44px)!important;
  max-height:none!important;
  overflow:hidden!important;
}
.dashboard-distribution-card .bar-row,
.tablet-distribution-card .bar-row{
  grid-template-columns:170px 1fr 28px!important;
  margin:5px 0!important;
  gap:7px!important;
  font-size:9px!important;
}
.dashboard-distribution-card .bar-label,
.tablet-distribution-card .bar-label{max-width:170px!important}
.dashboard-distribution-card .bar-track,
.tablet-distribution-card .bar-track{height:7px!important}
.dashboard-distribution-card .bar-row>strong,
.tablet-distribution-card .bar-row>strong{font-size:10px!important}
@media(max-height:800px) and (min-width:901px){
  header{height:55px;min-height:55px;padding:8px 13px!important}
  header h1{font-size:18px!important}
  .dashboard-overview{height:calc(100vh - 75px)!important}
  .overview-header{height:34px;margin-bottom:5px}
  .overview-grid{height:calc(100% - 39px)!important;grid-template-rows:175px minmax(0,1fr)!important;gap:8px!important}
  .monitor-body{height:112px!important}
  .big-donut{width:90px!important;height:90px!important}
  .big-donut:before{inset:11px!important}
  .big-donut strong{font-size:20px!important}
  .mstat{padding:5px 8px!important}
  .dashboard-distribution-card .bar-row,
  .tablet-distribution-card .bar-row{margin:3.5px 0!important}
}

/* ===== Dashboard premium redesign v5 ===== */
html,body{overflow:hidden!important}
body{
  background:
    radial-gradient(1000px 520px at 50% -18%,rgba(59,130,246,.24),transparent 63%),
    radial-gradient(750px 520px at 100% 12%,rgba(124,58,237,.16),transparent 66%),
    linear-gradient(135deg,#dfeaf7 0%,#eef4fa 46%,#e5edf8 100%)!important;
}
.layout{height:100vh!important}
main{
  height:100vh!important;
  padding:10px 16px 12px!important;
  overflow:hidden!important;
  box-sizing:border-box;
}
header{
  height:62px!important;min-height:62px!important;
  padding:10px 18px!important;
  margin-bottom:9px!important;
  border-radius:16px!important;
  background:rgba(255,255,255,.82)!important;
  box-shadow:0 8px 24px rgba(30,64,175,.08)!important;
}
header h1{
  font-size:21px!important;
  font-weight:800!important;
  letter-spacing:-.5px!important;
}
header p{
  font-size:10px!important;
  font-weight:600!important;
}
.dashboard-overview{
  height:calc(100vh - 81px)!important;
  min-height:0!important;
  padding:11px!important;
  border-radius:17px!important;
  background:
    linear-gradient(145deg,rgba(255,255,255,.78),rgba(246,250,255,.72))!important;
  box-shadow:0 16px 42px rgba(30,64,175,.08)!important;
}
.overview-header{
  height:36px!important;
  margin-bottom:7px!important;
  justify-content:space-between!important;
}
.overview-header>div:first-child{width:auto!important;text-align:left!important}
.overview-header h2{
  font-size:16px!important;
  font-weight:800!important;
}
.overview-header p{font-size:9px!important}
.overview-live{
  position:static!important;
  padding:6px 10px!important;
  font-size:9px!important;
}
.overview-grid{
  height:calc(100% - 43px)!important;
  grid-template-columns:1fr 1fr!important;
  grid-template-rows:225px minmax(0,1fr)!important;
  gap:11px!important;
}
.monitor-card{
  padding:13px 15px!important;
  border-radius:15px!important;
  background:linear-gradient(145deg,rgba(255,255,255,.96),rgba(244,249,255,.93))!important;
  border:1px solid #d9e4ef!important;
  box-shadow:0 10px 28px rgba(30,64,112,.08)!important;
}
.tablet-monitor{
  background:linear-gradient(145deg,rgba(255,255,255,.98),rgba(249,246,255,.94))!important;
  border-color:#e2dafa!important;
}
.monitor-head{margin-bottom:7px!important}
.monitor-icon{
  width:39px!important;height:39px!important;
  font-size:19px!important;
  border-radius:12px!important;
}
.monitor-head h3{font-size:15px!important}
.monitor-head span{font-size:9px!important}
.monitor-body{
  height:148px!important;
  gap:26px!important;
}
.big-donut{
  width:120px!important;height:120px!important;
}
.big-donut:before{inset:14px!important;background:#fff!important}
.big-donut strong{font-size:27px!important}
.big-donut small{font-size:9px!important}
.monitor-stats{min-width:175px!important}
.mstat{
  padding:8px 11px!important;
  border-radius:10px!important;
  margin-bottom:6px!important;
  font-size:11px!important;
}
.mstat b{font-size:16px!important}
.mini-progress{height:6px!important}
.dashboard-distribution-card,.tablet-distribution-card{
  height:auto!important;min-height:0!important;
}
.dashboard-institution-chart{
  height:calc(100% - 48px)!important;
  overflow:hidden!important;
}
.dashboard-distribution-card .monitor-head,
.tablet-distribution-card .monitor-head{margin-bottom:8px!important}
.dashboard-distribution-card .bar-row,
.tablet-distribution-card .bar-row{
  grid-template-columns:205px 1fr 34px!important;
  gap:9px!important;
  margin:6px 0!important;
  font-size:10px!important;
}
.dashboard-distribution-card .bar-label,
.tablet-distribution-card .bar-label{max-width:205px!important}
.dashboard-distribution-card .bar-track,
.tablet-distribution-card .bar-track{height:8px!important}
.dashboard-distribution-card .bar-row>strong,
.tablet-distribution-card .bar-row>strong{font-size:11px!important}
@media(max-width:1250px) and (min-width:901px){
  .dashboard-distribution-card .bar-row,
  .tablet-distribution-card .bar-row{
    grid-template-columns:175px 1fr 30px!important;
  }
  .dashboard-distribution-card .bar-label,
  .tablet-distribution-card .bar-label{max-width:175px!important}
}
@media(max-height:800px) and (min-width:901px){
  header{height:54px!important;min-height:54px!important;padding:8px 14px!important;margin-bottom:7px!important}
  header h1{font-size:18px!important}
  .dashboard-overview{height:calc(100vh - 68px)!important;padding:9px!important}
  .overview-header{height:31px!important;margin-bottom:6px!important}
  .overview-grid{height:calc(100% - 37px)!important;grid-template-rows:200px minmax(0,1fr)!important;gap:9px!important}
  .monitor-body{height:126px!important;gap:20px!important}
  .big-donut{width:105px!important;height:105px!important}
  .big-donut:before{inset:12px!important}
  .big-donut strong{font-size:23px!important}
  .mstat{padding:6px 9px!important;margin-bottom:4px!important}
  .dashboard-distribution-card .bar-row,
  .tablet-distribution-card .bar-row{margin:4px 0!important;font-size:9px!important}
}

/* ===== Institution dashboard text sizing ===== */
.dashboard-distribution-card .bar-row,
.tablet-distribution-card .bar-row{
  grid-template-columns:220px 1fr 38px!important;
  gap:10px!important;
  margin:7px 0!important;
  font-size:12px!important;
  line-height:1.2!important;
}
.dashboard-distribution-card .bar-label,
.tablet-distribution-card .bar-label{
  max-width:220px!important;
  font-size:12px!important;
  font-weight:600!important;
  color:#3f5570!important;
}
.dashboard-distribution-card .bar-track,
.tablet-distribution-card .bar-track{
  height:9px!important;
  border-radius:99px!important;
}
.dashboard-distribution-card .bar-row>strong,
.tablet-distribution-card .bar-row>strong{
  font-size:12px!important;
  font-weight:800!important;
}
.dashboard-distribution-card .monitor-head h3,
.tablet-distribution-card .monitor-head h3{
  font-size:16px!important;
}
.dashboard-distribution-card .monitor-head span,
.tablet-distribution-card .monitor-head span{
  font-size:10px!important;
}
@media(max-width:1250px) and (min-width:901px){
  .dashboard-distribution-card .bar-row,
  .tablet-distribution-card .bar-row{
    grid-template-columns:190px 1fr 34px!important;
    font-size:11px!important;
  }
  .dashboard-distribution-card .bar-label,
  .tablet-distribution-card .bar-label{
    max-width:190px!important;
    font-size:11px!important;
  }
}
@media(max-height:800px) and (min-width:901px){
  .dashboard-distribution-card .bar-row,
  .tablet-distribution-card .bar-row{
    grid-template-columns:195px 1fr 34px!important;
    margin:4.5px 0!important;
    font-size:10px!important;
  }
  .dashboard-distribution-card .bar-label,
  .tablet-distribution-card .bar-label{
    max-width:195px!important;
    font-size:10px!important;
  }
}

/* ===== EXTRA LARGE institution labels ===== */
.dashboard-distribution-card .bar-row,
.tablet-distribution-card .bar-row{
  grid-template-columns:240px 1fr 42px!important;
  gap:12px!important;
  margin:8px 0!important;
  font-size:14px!important;
  line-height:1.25!important;
  min-height:18px;
}
.dashboard-distribution-card .bar-label,
.tablet-distribution-card .bar-label{
  max-width:240px!important;
  font-size:14px!important;
  font-weight:700!important;
  color:#334b68!important;
}
.dashboard-distribution-card .bar-track,
.tablet-distribution-card .bar-track{
  height:10px!important;
}
.dashboard-distribution-card .bar-row>strong,
.tablet-distribution-card .bar-row>strong{
  font-size:14px!important;
  font-weight:800!important;
}
.dashboard-distribution-card .monitor-head h3,
.tablet-distribution-card .monitor-head h3{
  font-size:18px!important;
}
.dashboard-distribution-card .monitor-head span,
.tablet-distribution-card .monitor-head span{
  font-size:11px!important;
}
@media(max-width:1250px) and (min-width:901px){
  .dashboard-distribution-card .bar-row,
  .tablet-distribution-card .bar-row{
    grid-template-columns:205px 1fr 38px!important;
    font-size:13px!important;
  }
  .dashboard-distribution-card .bar-label,
  .tablet-distribution-card .bar-label{
    max-width:205px!important;
    font-size:13px!important;
  }
}
@media(max-height:800px) and (min-width:901px){
  .dashboard-distribution-card .bar-row,
  .tablet-distribution-card .bar-row{
    grid-template-columns:215px 1fr 36px!important;
    margin:5px 0!important;
    font-size:12px!important;
    min-height:16px;
  }
  .dashboard-distribution-card .bar-label,
  .tablet-distribution-card .bar-label{
    max-width:215px!important;
    font-size:12px!important;
  }
  .dashboard-distribution-card .bar-track,
  .tablet-distribution-card .bar-track{height:8px!important}
  .dashboard-distribution-card .bar-row>strong,
  .tablet-distribution-card .bar-row>strong{font-size:12px!important}
}

/* Computer filters + view action */
#computerInstitutionFilter{min-width:280px;max-width:360px;height:38px;overflow:hidden}
#computerInstitutionFilter[multiple] option{padding:4px 8px}
#computerInstitutionFilter:focus{height:150px;overflow:auto}
.view-btn{
  background:#ecfeff!important;
  color:#0e7490!important;
  border:1px solid #bdeff4;
  padding:7px 10px;
  font-size:12px;
  border-radius:8px;
}
.view-btn:hover{background:#cffafe!important}
.detail-actions{display:flex;justify-content:flex-end;margin-top:18px;padding-top:14px;border-top:1px solid var(--border)}
@media(max-width:900px){#computerInstitutionFilter{max-width:none;width:100%}}

/* ===== Computers action column fully visible ===== */
#computers .table-wrap{
  overflow-x:auto!important;
  overflow-y:hidden!important;
}
#computers table{
  min-width:1420px!important;
}
#computers th:last-child,
#computers td:last-child{
  min-width:210px!important;
  width:210px!important;
  white-space:nowrap!important;
}
#computers td:last-child{
  padding-right:12px!important;
}
#computers td:last-child button{
  display:inline-flex!important;
  align-items:center;
  justify-content:center;
  white-space:nowrap!important;
  margin-right:4px!important;
}
#computers .delete-btn{
  min-width:86px!important;
  padding:7px 10px!important;
}
#computers .edit-btn,
#computers .view-btn{
  min-width:72px!important;
}

/* ===== FIX: keep computer action buttons always visible ===== */
#computers .table-wrap{
  position:relative!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
}
#computers table{
  min-width:1500px!important;
  border-collapse:separate!important;
  border-spacing:0!important;
}
#computers th:last-child,
#computers td:last-child{
  position:sticky!important;
  right:0!important;
  z-index:5!important;
  min-width:225px!important;
  width:225px!important;
  max-width:225px!important;
  white-space:nowrap!important;
  background:#ffffff!important;
  box-shadow:-8px 0 14px rgba(30,64,112,.08)!important;
}
#computers th:last-child{
  z-index:8!important;
  background:#f5f8fb!important;
}
#computers tbody tr:nth-child(even) td:last-child{
  background:#fbfdff!important;
}
#computers td:last-child{
  padding:8px 10px!important;
}
#computers td:last-child button{
  display:inline-flex!important;
  vertical-align:middle!important;
  align-items:center!important;
  justify-content:center!important;
  white-space:nowrap!important;
  margin:0 3px 0 0!important;
  flex-shrink:0!important;
}
#computers .view-btn{min-width:68px!important}
#computers .edit-btn{min-width:78px!important}
#computers .delete-btn{min-width:82px!important}


/* ===== Planshet harakati — ekran o'lchamiga mos ===== */
#tablet-history{
  height:calc(100vh - 105px)!important;
  min-height:0!important;
  overflow:hidden!important;
  box-sizing:border-box!important;
}
#tablet-history .panel-head{
  flex:0 0 auto!important;
  margin-bottom:10px!important;
}
#tablet-history .toolbar{
  flex:0 0 auto!important;
  margin-bottom:10px!important;
}
#tablet-history .toolbar select,
#tablet-history .toolbar input,
#tablet-history .toolbar button{
  height:36px!important;
  box-sizing:border-box!important;
}
#tablet-history #historyNotice{
  flex:0 0 auto!important;
  margin:0 0 8px!important;
  padding:6px 10px!important;
  font-size:11px!important;
}
#tablet-history #tabletHistoryMap{
  height:clamp(300px,42vh,460px)!important;
  min-height:300px!important;
  flex:0 1 auto!important;
  width:100%!important;
}
#tablet-history #historySummary{
  flex:0 0 auto!important;
  margin-top:8px!important;
}
#tablet-history #historySummary > div:first-child{
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:7px!important;
}
#tablet-history #historySummary > div:first-child .report-card{
  padding:7px 9px!important;
}
#tablet-history #historySummary > div:first-child .report-card span{
  font-size:10px!important;
}
#tablet-history #historySummary > div:first-child .report-card strong{
  font-size:15px!important;
}
#tablet-history #historySummary > div:nth-child(2){
  display:none!important;
}
#tablet-history .table-wrap{
  flex:1 1 auto!important;
  min-height:110px!important;
  max-height:none!important;
  margin-top:8px!important;
  overflow:auto!important;
}
#tablet-history .table-wrap table{
  min-width:760px!important;
}
#tablet-history .table-wrap th,
#tablet-history .table-wrap td{
  padding:6px 8px!important;
  font-size:11px!important;
}

@media(max-width:1100px){
  #tablet-history{
    height:auto!important;
    min-height:calc(100vh - 105px)!important;
    overflow:visible!important;
  }
  #tablet-history #tabletHistoryMap{
    height:380px!important;
  }
}
@media(max-width:700px){
  #tablet-history .toolbar{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
  }
  #tablet-history .toolbar select,
  #tablet-history .toolbar input,
  #tablet-history .toolbar button{
    width:100%!important;
    min-width:0!important;
  }
  #tablet-history #tabletHistoryMap{
    height:320px!important;
    min-height:320px!important;
  }
  #tablet-history #historySummary > div:first-child{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}


/* ===== Planshet harakati — xarita katta, matn aniqroq ===== */
#tablet-history{
  font-size:14px!important;
}
#tablet-history .panel-head h2{
  font-size:22px!important;
  font-weight:800!important;
  letter-spacing:-.2px!important;
}
#tablet-history .panel-head p,
#tablet-history .muted{
  font-size:13px!important;
  line-height:1.45!important;
}
#tablet-history .toolbar{
  gap:10px!important;
}
#tablet-history .toolbar select,
#tablet-history .toolbar input{
  height:42px!important;
  font-size:13px!important;
  font-weight:600!important;
  padding:0 12px!important;
  border-radius:9px!important;
}
#tablet-history .toolbar button{
  height:42px!important;
  font-size:13px!important;
  font-weight:700!important;
  padding:0 16px!important;
  border-radius:9px!important;
}
#tablet-history #historyNotice{
  font-size:12px!important;
  font-weight:600!important;
  padding:7px 11px!important;
}
#tablet-history #tabletHistoryMap{
  height:clamp(390px,50vh,560px)!important;
  min-height:390px!important;
  border-radius:12px!important;
  border:1px solid #dce5ef!important;
  box-shadow:0 3px 14px rgba(30,64,112,.08)!important;
}
#tablet-history #historySummary{
  margin-top:10px!important;
}
#tablet-history #historySummary > div:first-child{
  gap:9px!important;
}
#tablet-history #historySummary > div:first-child .report-card{
  padding:9px 12px!important;
  border-radius:10px!important;
}
#tablet-history #historySummary > div:first-child .report-card span{
  font-size:11px!important;
  font-weight:600!important;
}
#tablet-history #historySummary > div:first-child .report-card strong{
  font-size:18px!important;
  line-height:1.2!important;
  font-weight:800!important;
}
#tablet-history .table-wrap{
  margin-top:10px!important;
  border-radius:10px!important;
}
#tablet-history .table-wrap th{
  font-size:12px!important;
  font-weight:800!important;
  padding:8px 9px!important;
}
#tablet-history .table-wrap td{
  font-size:12px!important;
  padding:7px 9px!important;
}
@media(max-height:800px) and (min-width:901px){
  #tablet-history #tabletHistoryMap{
    height:48vh!important;
    min-height:360px!important;
  }
  #tablet-history .panel-head h2{font-size:20px!important}
  #tablet-history .toolbar select,
  #tablet-history .toolbar input,
  #tablet-history .toolbar button{height:39px!important}
}
@media(max-width:900px){
  #tablet-history #tabletHistoryMap{
    height:430px!important;
    min-height:360px!important;
  }
}

.institution-pick-map{width:100%;height:260px;border:1px solid #d8e0ec;border-radius:12px;overflow:hidden;margin-top:7px;background:#eef3f8}.institution-pick-map .leaflet-container{width:100%;height:100%}
.institution-map-tools{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:6px 0}.institution-map-tools .cancel-btn{padding:7px 11px;font-size:12px}.report-date-label{display:flex;align-items:center;gap:6px;font-size:13px;font-weight:600}.report-date-label input{padding:8px 10px;border:1px solid #d8e0ec;border-radius:8px;background:#fff}
.report-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:4px 0 18px;padding-bottom:12px;border-bottom:1px solid #e5eaf2}.report-tab,.report-category-tab{border:1px solid #d9e2ef;background:#fff;color:#334155;border-radius:9px;padding:9px 14px;font-weight:600;cursor:pointer}.report-tab.active,.report-category-tab.active{background:#2563eb;color:#fff;border-color:#2563eb}.report-category-tabs{display:flex;gap:7px;flex-wrap:wrap;margin:0 0 14px}.report-category-tab{font-size:12px;padding:7px 11px}.report-category-tab b{margin-left:4px}.report-view .report-cards{margin-bottom:16px}.report-view .table-wrap{margin-bottom:18px}.report-view .section-title{margin-top:22px}.report-view table td,.report-view table th{white-space:nowrap}.report-view small{color:#64748b}.report-date-label input{min-width:135px}
.report-multi-filter{position:relative;min-width:230px}.report-multi-trigger{width:100%;min-height:38px;padding:8px 12px;border:1px solid #d7e0ec;border-radius:9px;background:#fff;color:#334155;text-align:left;font-weight:600;cursor:pointer;display:flex;justify-content:space-between;align-items:center}.report-multi-menu{display:none;position:absolute;z-index:3000;top:calc(100% + 5px);left:0;right:0;max-height:300px;overflow:auto;background:#fff;border:1px solid #d7e0ec;border-radius:10px;box-shadow:0 12px 30px rgba(15,23,42,.16);padding:6px}.report-multi-menu.open{display:block}.report-multi-menu label{display:flex;align-items:center;gap:8px;padding:8px 7px;border-radius:7px;cursor:pointer;font-size:13px}.report-multi-menu label:hover{background:#f1f5f9}.report-multi-menu input{accent-color:#2563eb}.report-check-all{border-bottom:1px solid #e5e7eb;margin-bottom:4px;font-weight:700}.report-view .report-cards{grid-template-columns:repeat(auto-fit,minmax(190px,1fr))}
/* Hisobotlar — chiroyli muassasa multi-select */
.report-multi-filter{position:relative;min-width:265px;width:265px}.report-multi-trigger{height:42px!important;padding:0 12px!important;border:1px solid #d8e1ee!important;border-radius:10px!important;background:linear-gradient(180deg,#fff,#f8fafc)!important;color:#334155!important;box-shadow:0 2px 7px rgba(15,23,42,.06);display:flex!important;align-items:center;gap:9px;text-align:left!important;font-weight:600!important;transition:.18s}.report-multi-trigger:hover{border-color:#93b4e8!important;box-shadow:0 4px 12px rgba(37,99,235,.10)}.report-multi-trigger.has-selection{border-color:#8bb1ed!important;background:#f5f9ff!important}.report-filter-icon{font-size:17px}.report-filter-text{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.report-filter-arrow{font-size:18px;color:#64748b;line-height:1;transition:.18s}.report-multi-menu.open~*{}.report-multi-menu{display:none;position:absolute;z-index:3000;top:47px;left:0;right:0;max-height:390px;overflow:hidden;background:#fff;border:1px solid #dbe3ef;border-radius:14px;box-shadow:0 18px 45px rgba(15,23,42,.18);padding:0}.report-multi-menu.open{display:block}.report-menu-head{display:flex;align-items:center;justify-content:space-between;padding:12px 13px 9px;border-bottom:1px solid #eef2f7;background:#fbfcfe}.report-menu-head strong{display:block;font-size:13px;color:#1e293b}.report-menu-head small{display:block;color:#94a3b8;font-size:11px;margin-top:2px}.report-menu-head button{border:0;background:transparent;color:#2563eb;font-size:12px;font-weight:700;cursor:pointer;padding:5px 7px;border-radius:6px}.report-menu-head button:hover{background:#eff6ff}.report-menu-search{margin:9px 10px;border:1px solid #dbe3ef;border-radius:8px;height:34px;display:flex;align-items:center;padding:0 9px;gap:6px;background:#fff}.report-menu-search span{color:#94a3b8;font-size:18px}.report-menu-search input{border:0!important;outline:0!important;width:100%;font-size:12px;background:transparent!important;padding:0!important}.report-check-all,.report-inst-option{display:flex!important;align-items:center!important;gap:9px!important;padding:8px 12px!important;margin:0!important;font-size:12px!important;cursor:pointer!important}.report-check-all{font-weight:700;border-top:1px solid #eef2f7;border-bottom:1px solid #eef2f7;background:#f8fafc}.report-inst-option:hover,.report-check-all:hover{background:#f1f6ff}.report-inst-option input,.report-check-all input{width:15px;height:15px;accent-color:#2563eb;cursor:pointer}.report-inst-option span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.report-multi-menu #reportInstitutionOptions{max-height:225px;overflow-y:auto;padding:4px 0}.report-multi-menu #reportInstitutionOptions::-webkit-scrollbar{width:7px}.report-multi-menu #reportInstitutionOptions::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:10px}.report-multi-menu #reportInstitutionOptions::-webkit-scrollbar-track{background:transparent}
.visit-time-row{white-space:nowrap;line-height:1.7;font-size:12px}.visit-time-row small{color:#64748b;margin-left:3px}.report-view .table-wrap table{min-width:900px}


/* Dashboard: ekran va zoomga moslash + asosiy vertikal scroll */
main{
  height:100vh!important;
  min-height:0!important;
  max-height:100vh!important;
  box-sizing:border-box!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  overscroll-behavior-y:contain;
  scrollbar-width:thin;
}
main::-webkit-scrollbar{width:9px}
main::-webkit-scrollbar-thumb{background:#c7d5e6;border-radius:10px}
main::-webkit-scrollbar-track{background:#eef3f8}
.dashboard-overview{
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  box-sizing:border-box!important;
  padding-bottom:18px!important;
}
.dashboard-overview .dashboard-kpis{
  min-width:0!important;
}
@media(max-width:1100px){
  .dashboard-overview .dashboard-kpis{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  .dashboard-overview .overview-header{
    padding:14px 16px;
  }
}
@media(max-width:700px){
  main{padding:18px 14px!important}
  .dashboard-overview .dashboard-kpis{
    grid-template-columns:1fr!important;
  }
  .dashboard-overview .overview-grid{
    grid-template-columns:1fr!important;
  }
  .dashboard-overview .overview-header{
    flex-direction:column;
    align-items:flex-start;
  }
}


/* Dashboard 80% zoom: barcha ma'lumotlar to'liq ko'rinsin */
.dashboard-overview,
.dashboard-overview *{min-width:0;}
.dashboard-overview .overview-grid,
.dashboard-overview .dashboard-monitor-grid{width:100%;min-width:0;}
.dashboard-overview .monitor-card,
.dashboard-overview .dashboard-widget{min-width:0;max-width:100%;box-sizing:border-box;}
.dashboard-overview .dashboard-institution-chart{
  height:auto!important;
  max-height:420px!important;
  min-height:120px!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  scrollbar-width:thin;
  scrollbar-color:#c7d5e6 transparent;
}
.dashboard-overview .dashboard-institution-chart::-webkit-scrollbar{width:8px}
.dashboard-overview .dashboard-institution-chart::-webkit-scrollbar-thumb{background:#c7d5e6;border-radius:10px}
.dashboard-overview .dashboard-institution-chart::-webkit-scrollbar-track{background:transparent}
.dashboard-overview .bar-row{min-width:0!important;}
.dashboard-overview .bar-label{min-width:0!important;}
.dashboard-overview .dashboard-monitor-grid > *{min-width:0!important;}
@media(max-width:1200px){
  .dashboard-overview .overview-grid,
  .dashboard-overview .dashboard-monitor-grid{grid-template-columns:1fr!important;}
  .dashboard-overview .dashboard-institution-chart{max-height:360px!important;}
}


/* Dashboard: 80% zoomda ham barcha bloklar to'liq, sahifa vertikal scroll bilan */
.dashboard-overview{
  height:auto!important;
  min-height:calc(100vh - 81px)!important;
  max-height:none!important;
  overflow:visible!important;
}
.dashboard-overview .overview-grid{
  height:auto!important;
  min-height:0!important;
  grid-template-rows:auto auto!important;
  align-items:stretch!important;
}
.dashboard-overview .dashboard-institution-chart{
  height:auto!important;
  max-height:none!important;
  min-height:0!important;
  overflow:visible!important;
}
.dashboard-overview .dashboard-distribution-card,
.dashboard-overview .tablet-distribution-card{
  height:auto!important;
  min-height:0!important;
  overflow:visible!important;
}


/* ===== Login sahifasi ===== */
body.login-page{
  min-height:100vh!important;overflow:hidden!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:30px!important;position:relative!important;
  background:
    radial-gradient(circle at 12% 18%,rgba(59,130,246,.16),transparent 28%),
    radial-gradient(circle at 88% 82%,rgba(99,102,241,.14),transparent 30%),
    linear-gradient(135deg,#eef6ff 0%,#fbfdff 48%,#eef2ff 100%)!important;color:#14233b!important;
}
body.login-page:before{
  content:"";position:absolute;inset:0;pointer-events:none;opacity:.25;
  background-image:radial-gradient(rgba(59,130,246,.55) 1.2px,transparent 1.2px);
  background-size:26px 26px;
  mask-image:linear-gradient(90deg,black 0 18%,transparent 38% 62%,black 82% 100%);
}
.login-card{
  width:min(500px,100%);padding:42px 46px 38px;position:relative;z-index:5;
  border:1px solid rgba(255,255,255,.96);border-radius:30px;background:rgba(255,255,255,.96);
  box-shadow:0 30px 90px rgba(37,99,235,.16),0 12px 35px rgba(15,23,42,.08);backdrop-filter:blur(18px);
}
.login-logo{
  width:124px;height:124px;margin:0 auto 14px;display:grid;place-items:center;border-radius:30px;
  background:linear-gradient(145deg,#f8fbff,#eef5ff);box-shadow:0 12px 30px rgba(37,99,235,.14);overflow:visible;
}
.login-logo img{width:112px;height:112px;display:block}
.login-decor{position:absolute;z-index:2;pointer-events:none}
.login-decor-left{left:3vw;top:28%;width:230px;height:260px}
.login-decor-left:before{content:"";position:absolute;width:180px;height:180px;border:2px solid rgba(59,130,246,.14);border-radius:50%;left:15px;top:40px}
.decor-dot{position:absolute;width:9px;height:9px;border-radius:50%;background:#3b82f6;left:38px;top:72px;box-shadow:22px 0 #60a5fa,44px 0 #93c5fd,66px 0 #bfdbfe,0 22px #60a5fa,22px 22px #93c5fd}
.decor-cross{position:absolute;right:35px;top:115px;color:rgba(37,99,235,.18);font-size:100px;font-weight:200}
.decor-line{position:absolute;left:55px;bottom:35px;width:170px;height:2px;background:linear-gradient(90deg,transparent,#60a5fa,transparent);transform:rotate(-20deg)}
.login-decor-right{display:none!important}
.device-icon{width:76px;height:76px;border:2px solid rgba(59,130,246,.18);border-radius:20px;background:rgba(255,255,255,.32);display:grid;place-items:center;font-size:32px;box-shadow:0 8px 22px rgba(37,99,235,.06)}
.login-wave{position:absolute;z-index:1;left:-8%;width:116%;height:150px;border-radius:50%;pointer-events:none}
.login-wave-1{bottom:-75px;background:linear-gradient(90deg,rgba(59,130,246,.55),rgba(96,165,250,.15),rgba(59,130,246,.55));transform:rotate(-2deg)}
.login-wave-2{bottom:-105px;background:rgba(255,255,255,.75);transform:rotate(3deg)}

.login-card h1{
  margin:0;
  text-align:center;
  font-size:25px;
  font-weight:800;
  letter-spacing:-.4px;
  color:#102a4c;
}
.login-card>p{
  margin:8px 0 27px;
  text-align:center;
  color:#64748b;
  font-size:14px;
}
.login-card form{display:grid;gap:17px}
.login-card label{
  display:block;
  color:#334155;
  font-size:13px;
  font-weight:700;
}
.login-card input{
  width:100%;
  height:48px;
  margin-top:7px;
  padding:0 14px;
  border:1px solid #d7e0ed;
  border-radius:12px;
  background:#f8fafc;
  font-size:14px;
  transition:.18s;
}
.login-card input:focus{
  background:#fff;
  border-color:#4f8df7;
  box-shadow:0 0 0 4px rgba(37,99,235,.11);
}
.login-card .save-btn{
  width:100%;
  height:48px;
  margin-top:2px;
  border:0;
  border-radius:12px;
  color:#fff;
  font-size:14px;
  font-weight:800;
  cursor:pointer;
  box-shadow:0 10px 22px rgba(37,99,235,.24);
}
.login-card .save-btn:hover{transform:translateY(-1px);box-shadow:0 13px 26px rgba(37,99,235,.3)}
.login-card .form-error{text-align:center;min-height:18px;margin:0}
@media(max-width:520px){
  body.login-page{padding:16px!important}
  .login-card{padding:30px 22px 26px;border-radius:20px}
  .login-card h1{font-size:22px}
}

.login-org{text-align:center;margin:-7px 0 7px;color:#475569;font-size:12px;font-weight:700;line-height:1.4}

@media(max-width:900px){.login-decor-left{display:none!important}}


/* ===== Ultra modern login ===== */
body.login-page{min-height:100vh!important;overflow:hidden!important;display:flex!important;align-items:center!important;justify-content:center!important;position:relative!important;padding:28px!important;background:radial-gradient(circle at 14% 18%,rgba(37,99,235,.18),transparent 30%),radial-gradient(circle at 86% 82%,rgba(79,70,229,.16),transparent 30%),linear-gradient(135deg,#eef5ff,#ffffff 48%,#eef1ff)!important}
body.login-page:before{content:"";position:absolute;inset:0;pointer-events:none;opacity:.22;background-image:radial-gradient(rgba(37,99,235,.55) 1px,transparent 1px);background-size:24px 24px;mask-image:linear-gradient(90deg,black,transparent 36%,transparent 64%,black)}
.login-shell{position:relative;z-index:10;width:min(100%,540px)}
.login-card{width:100%;padding:34px 42px 28px!important;border:1px solid rgba(255,255,255,.96)!important;border-radius:30px!important;background:rgba(255,255,255,.80)!important;box-shadow:0 35px 90px rgba(37,99,235,.18),0 12px 40px rgba(15,23,42,.10)!important;backdrop-filter:blur(22px)!important}
.login-top{text-align:center}.login-logo{width:96px!important;height:96px!important;margin:0 auto 13px!important;border-radius:26px!important;background:linear-gradient(145deg,#ffffff,#eef5ff)!important;display:grid!important;place-items:center!important;box-shadow:0 14px 30px rgba(37,99,235,.16)!important}.login-logo img{width:86px!important;height:86px!important;display:block!important}.login-org{margin:0!important;color:#35516d!important;font-size:12px!important;font-weight:800!important}.login-system{margin-top:4px;color:#7b8ea5;font-size:11px;font-weight:600}
.login-title{text-align:center;margin:23px 0 24px}.login-kicker{display:inline-flex;align-items:center;padding:5px 10px;border:1px solid #dbeafe;border-radius:999px;background:#eff6ff;color:#2563eb;font-size:9px;font-weight:900;letter-spacing:1.3px}.login-title h1{margin:11px 0 5px!important;font-size:29px!important;line-height:1.12!important;letter-spacing:-.8px!important;color:#102a4c!important}.login-title p{margin:0!important;color:#7a8da5!important;font-size:12px!important}
.login-form{display:grid;gap:16px}.login-field>span{display:block;margin-bottom:7px;color:#324860;font-size:12px;font-weight:800}.login-input-wrap{position:relative}.login-input-wrap .field-icon{position:absolute;left:15px;top:50%;transform:translateY(-50%);color:#2563eb;font-size:14px;opacity:.82;pointer-events:none}.login-input-wrap input{width:100%!important;height:50px!important;margin:0!important;padding:0 90px 0 40px!important;border:1px solid #dbe5f0!important;border-radius:14px!important;background:rgba(248,251,255,.82)!important;color:#172033!important;font-size:13px!important;font-weight:600!important;outline:none!important}.login-input-wrap input:focus{background:#fff!important;border-color:#7da9ef!important;box-shadow:0 0 0 4px rgba(37,99,235,.10)!important}.toggle-password{position:absolute;right:8px;top:7px;height:36px;padding:0 10px;border:0!important;border-radius:9px!important;background:#eef5ff!important;color:#2563eb!important;font-size:10px!important;font-weight:800!important;box-shadow:none!important}.toggle-password:hover{background:#e0ecff!important;transform:none!important}
.login-submit{height:52px;margin-top:4px;border:0;border-radius:14px;background:linear-gradient(100deg,#1778f2 0%,#4f46e5 100%);color:#fff;font-size:14px;font-weight:900;display:flex;align-items:center;justify-content:center;gap:14px;box-shadow:0 14px 28px rgba(37,99,235,.24);cursor:pointer;transition:.18s}.login-submit:hover{transform:translateY(-2px);box-shadow:0 18px 34px rgba(37,99,235,.28)}.login-submit:disabled{opacity:.72;cursor:wait}.login-arrow{font-size:20px;line-height:1}.login-submit.loading .login-arrow{animation:loginSpin 1s linear infinite}@keyframes loginSpin{to{transform:rotate(360deg)}}
.login-card .form-error{margin:0!important;min-height:17px!important;text-align:center!important;font-weight:700!important}.login-footer{display:flex;justify-content:space-between;gap:12px;margin-top:22px;padding-top:15px;border-top:1px solid rgba(148,163,184,.20);color:#91a2b6;font-size:9px;font-weight:700}.login-status{display:inline-flex;align-items:center;gap:5px;color:#3c8b62}.login-status i{width:6px;height:6px;border-radius:50%;background:#22c55e;box-shadow:0 0 0 4px rgba(34,197,94,.10)}
.login-orb{position:absolute;z-index:1;border-radius:50%;filter:blur(1px);pointer-events:none}.orb-a{width:360px;height:360px;left:-120px;top:-80px;background:radial-gradient(circle,rgba(96,165,250,.20),transparent 68%)}.orb-b{width:420px;height:420px;right:-150px;bottom:-120px;background:radial-gradient(circle,rgba(129,140,248,.18),transparent 68%)}
.login-grid-bg{position:absolute;z-index:1;inset:0;pointer-events:none;background:linear-gradient(115deg,transparent 0 47%,rgba(255,255,255,.50) 50%,transparent 53%),linear-gradient(15deg,transparent 0 66%,rgba(255,255,255,.32) 69%,transparent 72%);opacity:.55}
.login-wave{position:absolute;z-index:2;left:-8%;width:116%;height:130px;border-radius:50%;pointer-events:none}.login-wave-1{bottom:-78px;background:linear-gradient(90deg,rgba(59,130,246,.62),rgba(99,102,241,.15),rgba(59,130,246,.55));transform:rotate(-2deg)}.login-wave-2{bottom:-106px;background:rgba(255,255,255,.72);transform:rotate(3deg)}
.login-decor-left{display:block!important;left:5vw!important;top:29%!important}.login-decor-right{display:none!important}
@media(max-width:700px){body.login-page{padding:16px!important;overflow:auto!important}.login-card{padding:28px 22px 23px!important;border-radius:24px!important}.login-title h1{font-size:24px!important}.login-logo{width:82px!important;height:82px!important}.login-logo img{width:73px!important;height:73px!important}.login-footer{flex-direction:column;text-align:center}.login-decor-left{display:none!important}.login-wave{height:90px}.orb-a{left:-180px}.orb-b{right:-220px}}

/* Login v2: focused premium minimal style */
body.login-page{
  background:
    radial-gradient(circle at 20% 20%,rgba(59,130,246,.13),transparent 26%),
    radial-gradient(circle at 80% 75%,rgba(99,102,241,.10),transparent 28%),
    linear-gradient(135deg,#f3f7fc 0%,#ffffff 50%,#f2f5ff 100%)!important;
}
body.login-page:before{opacity:.08!important;mask-image:none!important;background-size:28px 28px!important}
.login-shell{width:min(460px,100%)!important}
.login-card{
  padding:32px 38px 26px!important;
  border-radius:24px!important;
  background:rgba(255,255,255,.96)!important;
  border:1px solid #e7eef7!important;
  box-shadow:0 20px 60px rgba(15,23,42,.10),0 8px 24px rgba(37,99,235,.08)!important;
}
.login-logo{
  width:88px!important;height:88px!important;border-radius:24px!important;
  margin-bottom:12px!important;
  box-shadow:0 10px 24px rgba(37,99,235,.12)!important;
}
.login-logo img{width:80px!important;height:80px!important}
.login-org{font-size:11px!important;color:#46627e!important}
.login-system{font-size:10px!important;margin-top:3px!important}
.login-title{margin:20px 0 22px!important}
.login-kicker{font-size:8px!important;padding:4px 9px!important;letter-spacing:1.1px!important}
.login-title h1{font-size:27px!important;margin:9px 0 4px!important}
.login-title p{font-size:11px!important}
.login-form{gap:14px!important}
.login-field>span{font-size:11px!important;margin-bottom:6px!important}
.login-input-wrap input{height:46px!important;border-radius:12px!important;font-size:13px!important}
.login-submit{height:48px!important;border-radius:12px!important;font-size:13px!important;box-shadow:0 10px 22px rgba(37,99,235,.20)!important}
.login-footer{margin-top:18px!important;padding-top:13px!important;font-size:8px!important}
.login-orb,.login-grid-bg,.login-wave,.login-decor{display:none!important}
@media(max-width:700px){
 .login-card{padding:28px 20px 22px!important}
 .login-title h1{font-size:23px!important}
}


/* ===== IT qurilmalar: shaffof fon dekorlari ===== */
body.login-page:after{
  content:"";
  position:absolute;inset:0;pointer-events:none;z-index:2;
  background:
    radial-gradient(circle at 12% 30%,rgba(37,99,235,.10),transparent 16%),
    radial-gradient(circle at 88% 35%,rgba(79,70,229,.08),transparent 17%);
}
.login-it-device{position:absolute;z-index:3;pointer-events:none;opacity:.10;color:#2563eb;filter:blur(.1px)}
.login-it-device:before,.login-it-device:after{content:"";position:absolute}
.login-device-monitor{left:7vw;top:18vh;width:92px;height:62px;border:3px solid currentColor;border-radius:9px}
.login-device-monitor:before{left:30px;bottom:-19px;width:28px;height:3px;background:currentColor;border-radius:3px}
.login-device-monitor:after{left:22px;bottom:-11px;width:44px;height:3px;background:currentColor;border-radius:3px}
.login-device-laptop{left:12vw;bottom:18vh;width:110px;height:68px;border:3px solid currentColor;border-radius:8px 8px 4px 4px}
.login-device-laptop:before{left:-10px;bottom:-13px;width:130px;height:6px;border:3px solid currentColor;border-top:0;border-radius:0 0 8px 8px}
.login-device-phone{right:10vw;top:22vh;width:42px;height:78px;border:3px solid currentColor;border-radius:10px}
.login-device-phone:before{left:12px;bottom:6px;width:12px;height:3px;background:currentColor;border-radius:3px}
.login-device-printer{right:7vw;bottom:20vh;width:90px;height:48px;border:3px solid currentColor;border-radius:8px}
.login-device-printer:before{left:15px;top:-27px;width:58px;height:29px;border:3px solid currentColor;border-bottom:0;border-radius:6px 6px 0 0}
.login-device-printer:after{left:22px;bottom:-17px;width:44px;height:22px;border:3px solid currentColor;background:rgba(37,99,235,.03)}
.login-device-network{right:20vw;top:12vh;width:130px;height:90px}
.login-device-network:before{width:18px;height:18px;border:3px solid currentColor;border-radius:50%;left:54px;top:34px}
.login-device-network:after{width:70px;height:50px;left:24px;top:18px;border-left:3px solid currentColor;border-right:3px solid currentColor;border-bottom:3px solid currentColor;transform:skewY(-28deg);opacity:.8}
.login-card{position:relative;z-index:10}
.login-shell{position:relative;z-index:10}
@media(max-width:900px){.login-it-device{display:none!important}}

/* Login layout fix + subtle IT background */
body.login-page main.login-shell{flex:0 0 auto!important;width:min(460px,calc(100vw - 32px))!important;max-width:460px!important;margin:0!important}
.login-it-bg{position:absolute;inset:0;z-index:1;pointer-events:none;overflow:hidden}
.login-it-bg span{position:absolute;display:block;color:#2563eb;opacity:.09}
.it-monitor{left:7%;top:22%;width:110px;height:72px;border:3px solid currentColor;border-radius:10px}
.it-monitor:before{content:"";position:absolute;left:43px;bottom:-20px;width:22px;height:3px;background:currentColor}.it-monitor:after{content:"";position:absolute;left:31px;bottom:-12px;width:46px;height:3px;background:currentColor}
.it-laptop{left:13%;bottom:18%;width:120px;height:74px;border:3px solid currentColor;border-radius:9px}
.it-laptop:before{content:"";position:absolute;left:-13px;bottom:-15px;width:140px;height:7px;border:3px solid currentColor;border-top:0;border-radius:0 0 9px 9px}
.it-phone{right:12%;top:25%;width:43px;height:78px;border:3px solid currentColor;border-radius:11px}
.it-phone:before{content:"";position:absolute;left:13px;bottom:7px;width:12px;height:3px;background:currentColor;border-radius:4px}
.it-printer{right:7%;bottom:20%;width:100px;height:52px;border:3px solid currentColor;border-radius:9px}
.it-printer:before{content:"";position:absolute;left:17px;top:-29px;width:62px;height:30px;border:3px solid currentColor;border-bottom:0;border-radius:6px 6px 0 0}
.it-printer:after{content:"";position:absolute;left:25px;bottom:-18px;width:50px;height:23px;border:3px solid currentColor}
.it-network{right:22%;top:12%;width:90px;height:70px;border:3px solid currentColor;border-radius:14px;opacity:.055!important}
.it-network:before{content:"";position:absolute;inset:17px;border:2px dashed currentColor;border-radius:50%}
.it-network:after{content:"";position:absolute;left:39px;top:29px;width:10px;height:10px;background:currentColor;border-radius:50%}
@media(max-width:900px){.login-it-bg{opacity:.55}.it-monitor{left:2%}.it-laptop{left:2%}.it-phone{right:3%}.it-printer{right:2%}}
@media(max-width:700px){.login-it-bg{display:none!important}}

/* ===== Modern UI refresh v3 — dashboard ===== */
body:not(.login-page){
  background:
    radial-gradient(circle at 18% -5%,rgba(59,130,246,.07),transparent 24%),
    radial-gradient(circle at 92% 8%,rgba(99,102,241,.06),transparent 22%),
    #f5f8fc!important;
}
body:not(.login-page) aside{
  width:246px!important;
  padding:18px 12px!important;
  background:linear-gradient(180deg,#071b31 0%,#0b2847 55%,#081d34 100%)!important;
  border-right:1px solid rgba(255,255,255,.05);
  box-shadow:12px 0 35px rgba(15,23,42,.08)!important;
}
body:not(.login-page) .brand{
  padding:10px 11px 20px!important;
  margin-bottom:9px!important;
  border-bottom:1px solid rgba(255,255,255,.08)!important;
}
body:not(.login-page) .brand-icon{
  width:44px!important;height:44px!important;border-radius:14px!important;
  box-shadow:0 8px 24px rgba(37,99,235,.32)!important;
}
body:not(.login-page) .brand strong{font-size:15px!important}
body:not(.login-page) .brand span{font-size:15px!important}
body:not(.login-page) .nav-title{
  padding:15px 12px 7px!important;font-size:9px!important;letter-spacing:1.4px!important
}
body:not(.login-page) nav a{
  position:relative;
  padding:10px 11px!important;
  margin:3px 0!important;
  border-radius:11px!important;
  font-size:13px!important;
  color:#b8c7da!important;
}
body:not(.login-page) nav a:hover{
  background:rgba(255,255,255,.065)!important;
  transform:translateX(2px)!important;
  color:#fff!important;
}
body:not(.login-page) nav a.active{
  background:linear-gradient(135deg,#1976f3,#3558df)!important;
  box-shadow:0 8px 22px rgba(37,99,235,.27)!important;
  color:#fff!important;
}
body:not(.login-page) .nav-icon{width:23px!important;font-size:17px!important}
body:not(.login-page) .sidebar-footer{
  border-radius:13px!important;
  background:rgba(255,255,255,.045)!important;
  border-color:rgba(255,255,255,.08)!important;
}
body:not(.login-page) main{
  padding:22px 26px 30px!important;
  background:transparent!important;
}
body:not(.login-page) header{
  position:relative;
  margin-bottom:18px!important;
  padding:14px 18px!important;
  border:1px solid #e3eaf3!important;
  border-radius:16px!important;
  background:rgba(255,255,255,.84)!important;
  box-shadow:0 7px 24px rgba(23,55,95,.045)!important;
  backdrop-filter:blur(12px);
}
body:not(.login-page) header h1{font-size:25px!important;letter-spacing:-.6px!important}
body:not(.login-page) header p{font-size:11px!important;color:#8192aa!important}
body:not(.login-page) .user-badge{
  border-radius:10px!important;background:#f7faff!important;border-color:#dfe8f3!important;
  padding:8px 11px!important;font-size:11px!important;
}
body:not(.login-page) .logout-btn{
  border-radius:10px!important;padding:8px 12px!important;font-size:11px!important;
  background:#fff!important;color:#b4232d!important;border:1px solid #f0d7da!important;
}
body:not(.login-page) .panel,
body:not(.login-page) .monitoring-summary,
body:not(.login-page) .attention-panel,
body:not(.login-page) .recent-monitor{
  border-radius:17px!important;
  border:1px solid #e1e9f3!important;
  box-shadow:0 8px 28px rgba(23,55,95,.055)!important;
}
body:not(.login-page) .panel{padding:18px!important}
body:not(.login-page) .panel-head h2{font-size:18px!important}
body:not(.login-page) .table-wrap{
  border:1px solid #e1e9f3!important;
  border-radius:13px!important;
  background:#fff!important;
}
body:not(.login-page) table{font-size:12px!important}
body:not(.login-page) th{
  background:#f7faff!important;
  color:#71849b!important;
  font-size:10px!important;
  text-transform:uppercase;
  letter-spacing:.35px;
  padding:11px 12px!important;
}
body:not(.login-page) td{
  padding:10px 12px!important;
  border-bottom-color:#eef2f7!important;
}
body:not(.login-page) tbody tr{transition:background .15s ease}
body:not(.login-page) tbody tr:hover{background:#f7fbff!important}
body:not(.login-page) button{
  border-radius:10px;
}
body:not(.login-page) .add-btn{
  box-shadow:0 7px 18px rgba(37,99,235,.16);
}
body:not(.login-page) .stats{
  gap:12px!important;margin-bottom:17px!important;
}
body:not(.login-page) .stat{
  min-height:94px!important;
  border-radius:16px!important;
  padding:14px 16px!important;
  border-color:#e1e9f3!important;
  box-shadow:0 7px 22px rgba(23,55,95,.05)!important;
}
body:not(.login-page) .stat-icon{
  width:48px!important;height:48px!important;min-width:48px!important;
  border-radius:13px!important;font-size:24px!important;
}
body:not(.login-page) .stat strong{font-size:29px!important}
body:not(.login-page) .dashboard-overview .overview-header{
  border-radius:16px!important;
  background:linear-gradient(135deg,#f9fbff,#fff)!important;
}
body:not(.login-page) .dashboard-overview .monitor-card,
body:not(.login-page) .dashboard-widget,
body:not(.login-page) .d-kpi{
  border-radius:16px!important;
  border-color:#e1e9f3!important;
  box-shadow:0 7px 22px rgba(23,55,95,.05)!important;
}
body:not(.login-page) .d-kpi strong{font-size:22px!important}
body:not(.login-page) input,
body:not(.login-page) select{
  border-color:#dce6f1!important;
  border-radius:10px!important;
}
body:not(.login-page) input:focus,
body:not(.login-page) select:focus{
  border-color:#7aaef5!important;
  box-shadow:0 0 0 3px rgba(37,99,235,.08)!important;
}
@media(max-width:900px){
  body:not(.login-page) aside{width:72px!important}
  body:not(.login-page) main{padding:16px!important}
  body:not(.login-page) header{padding:12px 14px!important}
}


/* ===== Premium interface: dashboard visually matches secure login ===== */
:root{
 --primary:#2864e8;--primary-dark:#1d4ed8;--sidebar:#101d38;--sidebar2:#17294a;
 --bg:#f3f7fd;--text:#17263f;--muted:#71839b;--border:#e3ebf5;
 --card:#ffffff;--shadow:0 14px 38px rgba(31,65,114,.075);
}
html{scroll-padding-top:22px}
body:not(.login-page){background:
 radial-gradient(ellipse at 82% 0%,rgba(110,168,255,.14),transparent 34%),
 radial-gradient(ellipse at 15% 85%,rgba(164,143,255,.08),transparent 30%),
 #f3f7fd;color:#17263f}
.layout{gap:0}
aside{
 width:258px;padding:18px 13px 14px;
 background:linear-gradient(165deg,#0d1b34 0%,#142747 54%,#182b4b 100%);
 box-shadow:8px 0 36px rgba(19,44,82,.10);border-right:1px solid rgba(255,255,255,.07)
}
.brand{padding:9px 10px 21px;margin-bottom:8px;border-bottom:1px solid rgba(255,255,255,.11)}
.brand-icon{width:45px;height:45px;border-radius:15px;background:linear-gradient(145deg,#64a5ff,#315de9);box-shadow:0 9px 24px rgba(45,105,239,.35)}
.brand strong{font-size:15px;letter-spacing:.1px}.brand span{font-size:15px;color:#a9caff;font-weight:800}
.nav-title{padding:18px 12px 8px;color:#849abd;font-size:9px;letter-spacing:1.45px}
nav a{position:relative;gap:12px;margin:4px 0;padding:11px 12px;border:1px solid transparent;border-radius:12px;color:#b8c7df;font-size:12px;transition:background .2s,border-color .2s,transform .2s}
nav a:hover{background:rgba(255,255,255,.07);border-color:rgba(255,255,255,.06);transform:translateX(2px)}
nav a.active{background:linear-gradient(110deg,#2864e8,#4a86f8);border-color:rgba(255,255,255,.12);box-shadow:0 8px 20px rgba(37,99,235,.27)}
.nav-icon{width:25px;height:25px;display:grid;place-items:center;border-radius:8px;background:rgba(255,255,255,.07);font-size:15px}
nav a.active .nav-icon{background:rgba(255,255,255,.16)}
.sidebar-footer{border-radius:14px;background:linear-gradient(145deg,rgba(255,255,255,.07),rgba(255,255,255,.025));border-color:rgba(255,255,255,.11);padding:14px}
main{padding:24px 28px;min-width:0}
header{position:relative;overflow:hidden;padding:18px 21px;margin-bottom:20px;border:1px solid rgba(218,230,246,.95);border-radius:18px;background:rgba(255,255,255,.84);box-shadow:0 8px 28px rgba(31,65,114,.055);backdrop-filter:blur(12px)}
header:after{content:"";position:absolute;width:180px;height:180px;right:13%;top:-135px;border-radius:50%;background:rgba(88,145,255,.08);pointer-events:none}
header h1{font-size:25px;letter-spacing:-.7px;color:#172b4b}
header p{font-size:11px;color:#8192aa}
.header-actions{position:relative;z-index:1;gap:8px}
.user-badge{border-radius:11px;background:#f7faff;border-color:#e2eaf5;font-weight:700}
button{border-radius:11px;box-shadow:0 3px 9px rgba(15,23,42,.045);transition:transform .18s,box-shadow .18s,filter .18s}
button:hover{transform:translateY(-1px);box-shadow:0 8px 18px rgba(31,65,114,.13)}
.logout-btn{background:linear-gradient(135deg,#fff,#fff5f5)!important;color:#c43f4b!important;border:1px solid #f3d9dc!important}
.panel,.attention-panel,.dashboard-overview .overview-header,.dashboard-overview .monitor-card,.dashboard-widget,.analytics-card{
 border-color:#e0e9f4;border-radius:18px;box-shadow:0 10px 30px rgba(31,65,114,.055)
}
.panel{padding:22px;background:rgba(255,255,255,.94)}
.panel-head h2{font-size:18px;letter-spacing:-.25px;color:#1c3151}
input,select{border-color:#dce6f2;border-radius:11px}
input:focus,select:focus{border-color:#76a7fb;box-shadow:0 0 0 4px rgba(37,99,235,.09)}
.add-btn,.save-btn,.location-btn{background:linear-gradient(135deg,#3478f6,#2459d8);box-shadow:0 6px 15px rgba(37,99,235,.18)}
.table-wrap{border-color:#e3ebf5;border-radius:13px}
table{font-size:12px}
th{background:linear-gradient(180deg,#f8fbff,#f2f7fd);color:#6f829d;font-size:10px;text-transform:uppercase;letter-spacing:.35px}
th,td{padding:13px 14px;border-bottom-color:#edf2f8}
tbody tr{transition:background .15s}
tbody tr:hover{background:#f5f9ff}
.modal-box{border:1px solid #e4ebf5;border-radius:20px;box-shadow:0 28px 90px rgba(15,35,68,.27)}
.dashboard-overview{padding:0 0 22px}
.dashboard-overview .overview-header{position:relative;overflow:hidden;padding:21px 23px;margin-bottom:14px;background:linear-gradient(115deg,#fff 0%,#f4f8ff 64%,#f3f1ff 100%)}
.dashboard-overview .overview-header:after{content:"";position:absolute;width:210px;height:210px;right:-55px;top:-115px;border-radius:50%;border:30px solid rgba(80,132,240,.07);pointer-events:none}
.dashboard-overview .overview-header h2{font-size:17px;letter-spacing:-.25px}
.overview-live{border:1px solid #c8f0d9;box-shadow:0 5px 15px rgba(22,163,74,.07)}
.d-kpi{border-color:#e0e9f4;border-radius:17px;box-shadow:0 8px 24px rgba(31,65,114,.05);transition:transform .2s,box-shadow .2s}
.d-kpi:hover{transform:translateY(-2px);box-shadow:0 13px 28px rgba(31,65,114,.09)}
.d-kpi .dk-top{letter-spacing:.45px}
.d-kpi strong{font-size:27px;letter-spacing:-.7px}
.dashboard-overview .monitor-card{background:rgba(255,255,255,.96)}
.dashboard-overview .monitor-card .monitor-head{padding:17px 18px 10px}
.dashboard-overview .monitor-card .monitor-body{padding:5px 18px 14px}
.dashboard-overview .monitor-card h3{font-size:14px;letter-spacing:-.2px}
.dashboard-overview .monitor-icon{border-radius:13px}
.dashboard-widget .dw-head{background:linear-gradient(110deg,#fff,#f8fbff)}
/* Harmonize all section headers and interactive controls */
section[id]{scroll-margin-top:20px}
.section-title{color:#1c3151;letter-spacing:-.2px}
.badge{padding:4px 7px;border-radius:7px;background:#f1f7ff}
.badge.on{background:#eafaf1}.badge.off{background:#fff0f1}
.institution-card,.report-card,.settings-grid>div{border-color:#e2eaf4;border-radius:14px}
@media(max-width:1100px){main{padding:18px}}
@media(max-width:900px){aside{width:78px;padding:16px 8px}main{padding:16px}}
@media(max-width:700px){
 main{padding:10px}
 header{padding:15px;border-radius:15px;align-items:flex-start;gap:12px}
 header h1{font-size:22px}
 .dashboard-overview .overview-header{padding:16px;align-items:flex-start;gap:12px;flex-direction:column}
 .dashboard-kpis{gap:9px!important}
 .d-kpi{border-radius:14px;padding:12px}
}

/* Notification bell and live notification center */
.header-actions{position:relative}
.notification-bell{position:relative!important;display:inline-flex!important;align-items:center;justify-content:center;width:42px;height:42px;min-width:42px;padding:0!important;border:1px solid #dce7f5!important;border-radius:13px!important;background:linear-gradient(145deg,#fff,#f3f7ff)!important;color:#35577e!important;box-shadow:0 5px 14px rgba(32,73,130,.07)!important}
.notification-bell svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.notification-bell:hover{background:#edf4ff!important;color:#245bd5!important}
.notification-count{position:absolute;right:-5px;top:-5px;min-width:19px;height:19px;padding:0 4px;display:flex;align-items:center;justify-content:center;border:2px solid #fff;border-radius:999px;background:linear-gradient(135deg,#f04452,#d9233a);color:#fff;font-size:10px;font-weight:800;line-height:1;box-shadow:0 3px 8px rgba(220,38,58,.3)}
.notification-count[hidden]{display:none}
.notification-panel{position:absolute;z-index:1200;right:110px;top:52px;width:min(390px,calc(100vw - 28px));max-height:min(560px,calc(100vh - 120px));display:flex;flex-direction:column;overflow:hidden;border:1px solid #dfe8f4;border-radius:18px;background:rgba(255,255,255,.98);box-shadow:0 22px 65px rgba(18,42,80,.22);backdrop-filter:blur(18px)}
.notification-panel[hidden]{display:none}
.notification-panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 17px;border-bottom:1px solid #eaf0f7;background:linear-gradient(115deg,#f9fbff,#f0f5ff)}
.notification-panel-head strong{display:block;color:#172b49;font-size:14px}
.notification-panel-head small{display:block;margin-top:4px;color:#8494aa;font-size:10px}
.notification-panel-head>button{padding:7px 9px!important;border:1px solid #d8e5fa!important;border-radius:9px!important;background:#fff!important;color:#2a60c5!important;font-size:10px!important;white-space:nowrap}
.notification-list{overflow:auto;padding:6px;scrollbar-width:thin;scrollbar-color:#c5d4e8 transparent}
.notification-item{position:relative;display:flex!important;align-items:flex-start!important;gap:11px;width:100%;padding:12px 11px!important;margin:0!important;border:0!important;border-bottom:1px solid #eef2f8!important;border-radius:11px!important;background:#fff!important;text-align:left!important;box-shadow:none!important;transform:none!important}
.notification-item:hover{background:#f6f9ff!important}
.notification-item.unread{background:linear-gradient(100deg,#f2f7ff,#fff)!important}
.notification-kind{display:flex;flex:0 0 32px;align-items:center;justify-content:center;width:32px;height:32px;border-radius:11px;background:#eaf2ff;color:#2864df;font-size:17px;font-weight:800}
.notification-kind.offline{background:#fff0f0;color:#d93645}
.notification-kind.geofence{background:#f0eaff;color:#7850d9}
.notification-kind.new_device{background:#e8f9ef;color:#188554}
.notification-copy{display:flex;flex:1;min-width:0;flex-direction:column;gap:4px}
.notification-copy strong{color:#1d3150;font-size:11px;line-height:1.35}
.notification-copy>span{color:#5f718b;font-size:11px;line-height:1.5;overflow-wrap:anywhere}
.notification-copy small{color:#91a0b4;font-size:9px;line-height:1.4}
.notification-unread-dot{flex:0 0 7px;width:7px;height:7px;margin-top:5px;border-radius:50%;background:#3478f6;box-shadow:0 0 0 3px #e5efff}
.notification-empty{padding:32px 16px;text-align:center;color:#8a9ab0;font-size:12px}
@media(max-width:650px){.notification-panel{right:0;top:48px}.notification-bell{width:38px;height:38px;min-width:38px}}

/* Fix notification dropdown clipping under header/viewport */
.header-actions{position:relative;z-index:1300}
.notification-panel{
  position:fixed!important;
  top:78px!important;
  right:28px!important;
  z-index:9999!important;
  width:min(410px,calc(100vw - 24px))!important;
  max-height:calc(100vh - 100px)!important;
  overflow:hidden!important;
}
.notification-list{
  flex:1 1 auto!important;
  min-height:0!important;
  max-height:calc(100vh - 190px)!important;
  overflow-y:auto!important;
  overscroll-behavior:contain;
}
.notification-panel[hidden]{display:none!important}
@media(max-width:700px){
  .notification-panel{
    top:70px!important;
    right:12px!important;
    width:calc(100vw - 24px)!important;
    max-height:calc(100vh - 84px)!important;
  }
  .notification-list{max-height:calc(100vh - 170px)!important}
}

/* Ensure notification menu sits above the dashboard's monitoring strip */
header,.header-actions{position:relative;z-index:1500!important;overflow:visible!important}
header:after{pointer-events:none}
.notification-panel{
 position:fixed!important;top:76px!important;right:24px!important;
 z-index:2147483000!important;isolation:isolate;
 transform:none!important;contain:none!important;
}
.notification-panel-head{position:relative;z-index:1;flex-shrink:0}
.notification-list{position:relative;z-index:1;overflow-y:auto!important;pointer-events:auto!important}
@media(max-width:700px){
 .notification-panel{top:68px!important;right:12px!important}
}

/* Give the institution monitoring strip enough height for its full information */
.dashboard-overview .overview-header{
 min-height:94px!important;
 height:auto!important;
 padding:20px 24px!important;
 display:flex!important;
 align-items:center!important;
 gap:18px!important;
 overflow:visible!important;
}
.dashboard-overview .overview-header>div:first-child{min-width:0;flex:1}
.dashboard-overview .overview-header h2{
 display:block!important;line-height:1.45!important;margin:0 0 7px!important;
 overflow:visible!important;white-space:normal!important;text-overflow:clip!important;
}
.dashboard-overview .overview-header p,
.dashboard-overview .overview-header .overview-subtitle{
 display:block!important;line-height:1.55!important;margin:0!important;
 overflow:visible!important;white-space:normal!important;text-overflow:clip!important;
 max-height:none!important;
}
.dashboard-overview .overview-header .overview-live{flex-shrink:0;align-self:center}
@media(max-width:700px){
 .dashboard-overview .overview-header{min-height:110px!important;padding:16px!important;align-items:flex-start!important;flex-direction:column!important;gap:10px!important}
 .dashboard-overview .overview-header .overview-live{align-self:flex-start}
}

/* Dashboard summary: totals and dynamic device-category counts */
.dashboard-kpis{
 display:grid!important;
 grid-template-columns:repeat(auto-fit,minmax(185px,1fr))!important;
 gap:12px!important;
 width:100%!important;
 align-items:stretch!important;
}
.dashboard-device-kpis{
 display:grid!important;
 grid-template-columns:repeat(auto-fit,minmax(185px,1fr))!important;
 gap:12px!important;
 width:100%!important;
 margin:0 0 12px!important;
 align-items:stretch!important;
}
.dashboard-device-kpis:empty{display:none!important}
.dashboard-kpis .d-kpi{min-width:0;min-height:96px}
.dashboard-kpis .device-kpi .dk-top>span:first-child{overflow-wrap:anywhere;line-height:1.35}
.dashboard-kpis .d-kpi strong{font-variant-numeric:tabular-nums}
@media(max-width:720px){
 .dashboard-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
 .dashboard-kpis .d-kpi{min-height:88px;padding:12px!important}
}

/* Refined, larger dashboard inventory icons inspired by the reference */
.dashboard-kpis .d-kpi{
 position:relative!important;
 min-height:108px!important;
 padding:18px 18px!important;
 overflow:hidden!important;
 border:1px solid #dce7f5!important;
 border-radius:19px!important;
 background:linear-gradient(145deg,#ffffff 0%,#fbfdff 70%,#f4f8ff 100%)!important;
 box-shadow:0 5px 18px rgba(37,74,130,.055)!important;
}
.dashboard-kpis .d-kpi:after{
 content:"";position:absolute;right:-20px;bottom:-35px;width:94px;height:94px;
 border-radius:50%;background:var(--kpi-glow,rgba(59,130,246,.07));pointer-events:none;
}
.dashboard-kpis .d-kpi:nth-child(5n+1){--kpi-glow:rgba(59,130,246,.09)}
.dashboard-kpis .d-kpi:nth-child(5n+2){--kpi-glow:rgba(147,51,234,.09)}
.dashboard-kpis .d-kpi:nth-child(5n+3){--kpi-glow:rgba(34,197,94,.10)}
.dashboard-kpis .d-kpi:nth-child(5n+4){--kpi-glow:rgba(249,115,22,.10)}
.dashboard-kpis .d-kpi:nth-child(5n){--kpi-glow:rgba(239,68,68,.09)}
.dashboard-kpis .d-kpi .dk-top{
 position:relative!important;z-index:1;display:flex!important;align-items:center!important;
 justify-content:space-between!important;gap:12px!important;min-height:38px!important;
}
.dashboard-kpis .d-kpi .dk-top>span:first-child{
 color:#7085a3!important;font-size:11px!important;font-weight:750!important;letter-spacing:.035em;
}
.dashboard-kpis .d-kpi .dk-icon{
 display:flex!important;align-items:center!important;justify-content:center!important;
 flex:0 0 46px!important;width:46px!important;height:46px!important;min-width:46px!important;
 border-radius:15px!important;background:linear-gradient(145deg,#edf5ff,#dceaff)!important;
 box-shadow:inset 0 0 0 1px rgba(74,125,210,.08),0 4px 10px rgba(38,86,160,.08)!important;
 font-size:27px!important;line-height:1!important;filter:none!important;
}
.dashboard-kpis .d-kpi:nth-child(5n+2) .dk-icon{background:linear-gradient(145deg,#f6efff,#e9dcff)!important}
.dashboard-kpis .d-kpi:nth-child(5n+3) .dk-icon{background:linear-gradient(145deg,#eafff0,#d6f9e1)!important}
.dashboard-kpis .d-kpi:nth-child(5n+4) .dk-icon{background:linear-gradient(145deg,#fff4e8,#ffe5cd)!important}
.dashboard-kpis .d-kpi:nth-child(5n) .dk-icon{background:linear-gradient(145deg,#fff0f0,#ffdddd)!important}
.dashboard-kpis .d-kpi>strong{
 position:relative!important;z-index:1;display:block!important;margin:4px 0 2px!important;
 color:#182b49!important;font-size:25px!important;font-weight:850!important;line-height:1.15!important;
}
.dashboard-kpis .d-kpi>small{position:relative!important;z-index:1;color:#8799b3!important;font-size:10px!important}
@media(max-width:720px){
 .dashboard-kpis .d-kpi{min-height:96px!important;padding:12px!important;border-radius:15px!important}
 .dashboard-kpis .d-kpi .dk-icon{flex-basis:40px!important;width:40px!important;height:40px!important;min-width:40px!important;font-size:23px!important;border-radius:13px!important}
 .dashboard-kpis .d-kpi>strong{font-size:22px!important}
}


/* Dashboard: all device summary cards share one row */
.dashboard-summary-kpis{
  display:grid!important;
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
  gap:12px!important;
  width:100%!important;
  margin:0 0 12px!important;
  align-items:stretch!important;
}
.dashboard-summary-kpis>#dashboardKpiCards,
.dashboard-summary-kpis>#dashboardDeviceKpiCards{
  display:contents!important;
}
.dashboard-summary-kpis .d-kpi{
  min-width:0!important;
  width:auto!important;
  box-sizing:border-box!important;
}
@media(max-width:900px){
  .dashboard-summary-kpis{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
@media(max-width:560px){
  .dashboard-summary-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
}


/* Keep every dashboard summary card on one row; newly added categories shrink automatically */
.dashboard-summary-kpis{
  display:flex!important;
  flex-wrap:nowrap!important;
  gap:10px!important;
  align-items:stretch!important;
  overflow:visible!important;
}
.dashboard-summary-kpis>#dashboardKpiCards,
.dashboard-summary-kpis>#dashboardDeviceKpiCards{
  display:contents!important;
}
.dashboard-summary-kpis .d-kpi{
  flex:1 1 0!important;
  min-width:0!important;
  width:0!important;
  max-width:none!important;
  padding:clamp(8px,1vw,18px)!important;
}
.dashboard-summary-kpis .d-kpi .dk-top{gap:4px!important}
.dashboard-summary-kpis .d-kpi .dk-top>span:first-child{
  min-width:0!important;
  overflow-wrap:anywhere!important;
  font-size:clamp(8px,.72vw,11px)!important;
  letter-spacing:0!important;
}
.dashboard-summary-kpis .d-kpi .dk-icon{
  flex:0 0 clamp(22px,2.4vw,46px)!important;
  width:clamp(22px,2.4vw,46px)!important;
  min-width:clamp(22px,2.4vw,46px)!important;
  height:clamp(22px,2.4vw,46px)!important;
  font-size:clamp(14px,1.5vw,27px)!important;
  border-radius:clamp(7px,1vw,15px)!important;
}
.dashboard-summary-kpis .d-kpi>strong{font-size:clamp(16px,1.45vw,25px)!important}
.dashboard-summary-kpis .d-kpi>small{
  display:block!important;white-space:normal!important;overflow-wrap:anywhere!important;
  font-size:clamp(7px,.65vw,10px)!important;
}
@media(max-width:560px){
  .dashboard-summary-kpis{gap:4px!important}
  .dashboard-summary-kpis .d-kpi{padding:6px 4px!important;min-height:78px!important}
  .dashboard-summary-kpis .d-kpi .dk-top{align-items:flex-start!important}
}


/* Modern, larger dashboard card icons */
.dashboard-summary-kpis .d-kpi .dk-icon{
  flex:0 0 clamp(34px,3vw,52px)!important;
  width:clamp(34px,3vw,52px)!important;
  min-width:clamp(34px,3vw,52px)!important;
  height:clamp(34px,3vw,52px)!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  font-size:clamp(21px,1.9vw,32px)!important;
  line-height:1!important;
  border-radius:14px!important;
  background:linear-gradient(145deg,#eef6ff,#dceaff)!important;
  border:1px solid rgba(99,151,226,.2)!important;
  box-shadow:0 5px 14px rgba(58,105,170,.12),inset 0 1px 0 rgba(255,255,255,.9)!important;
  transition:transform .18s ease,box-shadow .18s ease!important;
}
.dashboard-summary-kpis .d-kpi:nth-child(even) .dk-icon{
  background:linear-gradient(145deg,#f4efff,#e7ddff)!important;
  border-color:rgba(146,105,222,.2)!important;
  box-shadow:0 5px 14px rgba(116,81,185,.12),inset 0 1px 0 rgba(255,255,255,.9)!important;
}
.dashboard-summary-kpis .d-kpi:hover .dk-icon{
  transform:translateY(-2px) scale(1.04);
  box-shadow:0 8px 18px rgba(58,105,170,.18)!important;
}
@media(max-width:560px){
  .dashboard-summary-kpis .d-kpi .dk-icon{
    flex-basis:28px!important;width:28px!important;min-width:28px!important;
    height:28px!important;font-size:18px!important;border-radius:9px!important;
  }
}

/* Qurilma bo‘limini tahrirlash tugmasi */
.device-tab-wrap{display:inline-flex;align-items:center;gap:3px}.category-edit-btn{width:28px;height:29px;border:1px solid #dbe3ef;border-radius:8px;background:#fff;color:#2563eb;cursor:pointer;font-size:11px}.category-edit-btn:hover{background:#eef6ff;border-color:#93c5fd}.device-tab-wrap .device-tab{border-top-right-radius:6px;border-bottom-right-radius:6px}


/* Dashboard monitoring cards: increase text without changing card dimensions */
.dashboard-overview .monitor-card{padding:22px!important}
.dashboard-overview .monitor-card .monitor-head{margin-bottom:10px!important;padding:8px 10px 4px!important}
.dashboard-overview .monitor-card .monitor-head h3{font-size:17px!important;line-height:1.2!important}
.dashboard-overview .monitor-card .monitor-head span{font-size:13px!important}
.dashboard-overview .monitor-card .monitor-icon{width:42px!important;height:42px!important;font-size:22px!important}
.dashboard-overview .monitor-card .mstat{font-size:14px!important;padding:10px 13px!important;margin-bottom:6px!important}
.dashboard-overview .monitor-card .mstat b{font-size:19px!important}
.dashboard-overview .monitor-card .big-donut strong{font-size:27px!important}
.dashboard-overview .monitor-card .big-donut small{font-size:11px!important}


/* Muassasalar sog‘liq indeksi: 15 ta muassasani ichki scrollsiz ko‘rsatish */
.dashboard-overview .dashboard-monitor-grid{
  align-items:stretch!important;
  grid-auto-rows:auto!important;
}
.dashboard-overview .dashboard-monitor-grid > .dashboard-widget{
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  overflow:visible!important;
  align-self:stretch!important;
}
.dashboard-overview #monitoringSummaryCards{
  display:flex!important;
  flex-direction:column!important;
  gap:4px!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  overflow:visible!important;
  padding:7px 10px 10px!important;
}
.dashboard-overview #monitoringSummaryCards .summary-card{
  flex:0 0 auto!important;
  min-height:0!important;
  padding:7px 10px!important;
  border-radius:10px!important;
}
.dashboard-overview #monitoringSummaryCards .summary-card-top{
  font-size:11px!important;
  line-height:1.2!important;
}
.dashboard-overview #monitoringSummaryCards .summary-card-top span{
  font-size:11px!important;
}
.dashboard-overview #monitoringSummaryCards .summary-meter{
  height:6px!important;
  margin:6px 0!important;
}
.dashboard-overview #monitoringSummaryCards .summary-meta{
  font-size:9px!important;
  line-height:1.2!important;
}
.dashboard-overview .dashboard-monitor-grid .attention-list{
  max-height:none!important;
  overflow:visible!important;
}
@media(max-width:1200px){
  .dashboard-overview .dashboard-monitor-grid{grid-template-columns:1fr!important}
}


/* Muassasalar ro‘yxati: ixcham ikki ustunli joylashuv */
.dashboard-overview #monitoringSummaryCards{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  align-content:start!important;
  align-items:stretch!important;
  gap:5px 8px!important;
  padding:7px 10px 10px!important;
}
.dashboard-overview #monitoringSummaryCards .summary-card{
  min-width:0!important;
  min-height:0!important;
  padding:7px 9px!important;
  border-radius:9px!important;
}
.dashboard-overview #monitoringSummaryCards .summary-card-top{
  font-size:10px!important;
  gap:5px!important;
}
.dashboard-overview #monitoringSummaryCards .summary-card-top strong{
  min-width:0!important;
}
.dashboard-overview #monitoringSummaryCards .summary-card-top span{
  font-size:10px!important;
  flex:none!important;
}
.dashboard-overview #monitoringSummaryCards .summary-meter{
  height:5px!important;
  margin:5px 0!important;
}
.dashboard-overview #monitoringSummaryCards .summary-meta{
  font-size:8px!important;
  gap:5px!important;
}
@media(max-width:700px){
  .dashboard-overview #monitoringSummaryCards{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}
@media(max-width:440px){
  .dashboard-overview #monitoringSummaryCards{
    grid-template-columns:1fr!important;
  }
}


/* Dashboard: muassasalar indeksi to‘liq kenglikda, e’tibor paneli uning pastida */
.dashboard-overview .dashboard-monitor-grid:first-of-type{
  grid-template-columns:minmax(0,1fr)!important;
}
.dashboard-overview .dashboard-monitor-grid:first-of-type > .dashboard-widget{
  width:100%!important;
  grid-column:1/-1!important;
}
.dashboard-overview .dashboard-monitor-grid:first-of-type > .dashboard-widget + .dashboard-widget{
  margin-top:0!important;
}
/* Birinchi monitoring qatori ichida ikkala panelni ketma-ket joylashtirish */
.dashboard-overview .dashboard-monitor-grid{
  grid-template-columns:minmax(0,1fr)!important;
}
.dashboard-overview .dashboard-monitor-grid > .dashboard-widget{
  grid-column:1/-1!important;
}
.dashboard-overview .dashboard-monitor-grid:first-of-type{
  display:flex!important;
  flex-direction:column!important;
  gap:12px!important;
}


/* Muassasalar sog‘liq indeksi: qatorlar orasini biroz ochib, o‘qishni yengillashtirish */
.dashboard-overview #monitoringSummaryCards{
  row-gap:8px!important;
  padding-top:10px!important;
  padding-bottom:14px!important;
}
.dashboard-overview #monitoringSummaryCards .summary-card{
  padding:9px 10px!important;
}
.dashboard-overview #monitoringSummaryCards .summary-meter{
  margin:7px 0!important;
}
.dashboard-overview #monitoringSummaryCards .summary-meta{
  line-height:1.35!important;
}


/* E’tibor talab qiladiganlar: ixchamroq panel va qatorlar */
.dashboard-overview .dashboard-monitor-grid:first-of-type > .dashboard-widget:nth-child(2) .dw-head{
  padding-bottom:8px!important;
}
.dashboard-overview .dashboard-monitor-grid:first-of-type > .dashboard-widget:nth-child(2) .attention-list{
  padding:4px 12px 8px!important;
}
.dashboard-overview .dashboard-monitor-grid:first-of-type > .dashboard-widget:nth-child(2) .attention-row{
  padding:5px 0!important;
  gap:7px!important;
}
.dashboard-overview .dashboard-monitor-grid:first-of-type > .dashboard-widget:nth-child(2) .attention-row strong{
  font-size:10px!important;
}
.dashboard-overview .dashboard-monitor-grid:first-of-type > .dashboard-widget:nth-child(2) .attention-row small{
  font-size:8px!important;
  margin-top:1px!important;
}
.dashboard-overview .dashboard-monitor-grid:first-of-type > .dashboard-widget:nth-child(2) .attention-row b{
  font-size:9px!important;
}


/* E’tibor talab qiladiganlar: yanada ixcham ko‘rinish */
.dashboard-overview .dashboard-monitor-grid:first-of-type > .dashboard-widget:nth-child(2) .dw-head{
  padding:8px 12px 5px!important;
}
.dashboard-overview .dashboard-monitor-grid:first-of-type > .dashboard-widget:nth-child(2) .dw-head h3{
  font-size:12px!important;
  line-height:1.15!important;
}
.dashboard-overview .dashboard-monitor-grid:first-of-type > .dashboard-widget:nth-child(2) .dw-head p{
  font-size:9px!important;
  margin-top:2px!important;
}
.dashboard-overview .dashboard-monitor-grid:first-of-type > .dashboard-widget:nth-child(2) .attention-list{
  padding:2px 10px 5px!important;
}
.dashboard-overview .dashboard-monitor-grid:first-of-type > .dashboard-widget:nth-child(2) .attention-row{
  padding:3px 0!important;
  gap:6px!important;
}
.dashboard-overview .dashboard-monitor-grid:first-of-type > .dashboard-widget:nth-child(2) .attention-dot{
  width:6px!important;height:6px!important;
}
.dashboard-overview .dashboard-monitor-grid:first-of-type > .dashboard-widget:nth-child(2) .attention-row strong{
  font-size:9px!important;
  line-height:1.1!important;
}
.dashboard-overview .dashboard-monitor-grid:first-of-type > .dashboard-widget:nth-child(2) .attention-row small{
  font-size:7px!important;
  line-height:1.1!important;
  margin-top:1px!important;
}
.dashboard-overview .dashboard-monitor-grid:first-of-type > .dashboard-widget:nth-child(2) .attention-row b{
  font-size:8px!important;
}


/* Pastki monitoring kartochkalari: barchasi bitta qatorda */
.dashboard-overview .dashboard-monitor-grid:not(:first-of-type){
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:12px!important;
  align-items:stretch!important;
}
.dashboard-overview .dashboard-monitor-grid:not(:first-of-type) > .dashboard-widget{
  min-width:0!important;
  width:auto!important;
  grid-column:auto!important;
}
@media(max-width:760px){
  .dashboard-overview .dashboard-monitor-grid:not(:first-of-type){
    grid-template-columns:1fr!important;
  }
}


/* Three lower dashboard cards in one row: attention, recent events, last 24h */
.dashboard-overview .dashboard-monitor-grid:not(:first-of-type){
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:12px!important;
  align-items:stretch!important;
}
.dashboard-overview .dashboard-monitor-grid:not(:first-of-type) > .dashboard-widget{
  min-width:0!important;
  width:auto!important;
  grid-column:auto!important;
}
@media(max-width:1000px){
  .dashboard-overview .dashboard-monitor-grid:not(:first-of-type){
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}
@media(max-width:680px){
  .dashboard-overview .dashboard-monitor-grid:not(:first-of-type){
    grid-template-columns:1fr!important;
  }
}


/* Dashboard layout: health index gets a full-width row; other cards stay together below */
.dashboard-overview .dashboard-monitor-grid.dashboard-health-grid{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  width:100%!important;
  gap:12px!important;
}
.dashboard-overview .dashboard-monitor-grid.dashboard-health-grid > .dashboard-widget{
  grid-column:1/-1!important;
  width:100%!important;
  min-width:0!important;
}
.dashboard-overview .dashboard-monitor-grid.dashboard-lower-grid{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:12px!important;
  width:100%!important;
  align-items:stretch!important;
}
.dashboard-overview .dashboard-monitor-grid.dashboard-lower-grid > .dashboard-widget{
  grid-column:auto!important;
  width:auto!important;
  min-width:0!important;
}
@media(max-width:1000px){
  .dashboard-overview .dashboard-monitor-grid.dashboard-lower-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}
@media(max-width:680px){
  .dashboard-overview .dashboard-monitor-grid.dashboard-lower-grid{
    grid-template-columns:1fr!important;
  }
}


/* E'tibor paneli: 10 ta qator balandligi, qolganlari ichki scroll orqali */
.dashboard-overview .dashboard-monitor-grid:first-of-type > .dashboard-widget:nth-child(2) .attention-list{
  max-height:420px!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  overscroll-behavior:contain;
  scrollbar-width:thin;
  scrollbar-color:#cbd5e1 transparent;
}
.dashboard-overview .dashboard-monitor-grid:first-of-type > .dashboard-widget:nth-child(2) .attention-row{
  min-height:35px!important;
  box-sizing:border-box!important;
}
.dashboard-overview .dashboard-monitor-grid:first-of-type > .dashboard-widget:nth-child(2) .attention-list::-webkit-scrollbar{width:6px}
.dashboard-overview .dashboard-monitor-grid:first-of-type > .dashboard-widget:nth-child(2) .attention-list::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:8px}


/* FIX: E'tibor kartochkasi balandligini aynan ID orqali cheklash */
.dashboard-overview #attentionIssues{
  height:390px!important;
  max-height:390px!important;
  min-height:0!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  box-sizing:border-box!important;
  padding:2px 10px 5px!important;
}
.dashboard-overview #attentionIssues .attention-row{
  min-height:38px!important;
  padding:4px 0!important;
  box-sizing:border-box!important;
}
.dashboard-overview #attentionIssues::-webkit-scrollbar{width:6px}
.dashboard-overview #attentionIssues::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:8px}


/* E'tibor ro'yxatidagi qurilmalar bosiladigan bo'lsin */
.dashboard-overview #attentionIssues .attention-clickable{cursor:pointer;transition:background .15s ease}
.dashboard-overview #attentionIssues .attention-clickable:hover{background:#f8fafc}
.dashboard-overview #attentionIssues .attention-clickable:focus-visible{outline:2px solid #60a5fa;outline-offset:-2px}


/* Bildirishnomalar oynasini ixchamlashtirish */
.notification-panel{
  width:min(350px,calc(100vw - 24px))!important;
  max-height:min(430px,calc(100vh - 100px))!important;
  border-radius:14px!important;
}
.notification-panel-head{padding:10px 12px!important;gap:8px!important}
.notification-panel-head strong{font-size:12px!important}
.notification-panel-head small{font-size:9px!important;margin-top:2px!important}
.notification-panel-head>button{padding:5px 7px!important;font-size:9px!important}
.notification-list{padding:4px!important;max-height:340px!important}
.notification-item{gap:8px!important;padding:8px 8px!important;border-radius:8px!important}
.notification-kind{flex-basis:27px!important;width:27px!important;height:27px!important;border-radius:8px!important;font-size:14px!important}
.notification-copy{gap:2px!important}
.notification-copy strong{font-size:10px!important;line-height:1.25!important}
.notification-copy>span{font-size:10px!important;line-height:1.35!important}
.notification-copy small{font-size:8px!important}
@media(max-width:700px){.notification-panel{width:calc(100vw - 24px)!important;max-height:min(430px,calc(100vh - 84px))!important}.notification-list{max-height:340px!important}}


/* Dashboard bildirishnomalar tarixi */
.notification-history-list{align-items:stretch!important}
.notification-history-item{display:flex;align-items:flex-start;gap:8px;padding:8px;border:1px solid #e7edf5;border-radius:10px;background:#fff;flex:none}
.notification-history-copy{display:flex;flex:1;min-width:0;flex-direction:column;gap:3px}
.notification-history-copy strong{font-size:10px;line-height:1.3;color:#203653}
.notification-history-copy span{font-size:10px;line-height:1.4;color:#60738e;overflow-wrap:anywhere}
.notification-history-copy small{font-size:8px;line-height:1.3;color:#91a0b4}


/* Oxirgi monitoring hodisalari: 10 ta qator, qolganlari ichki aylantirishda */
.dashboard-overview #dashboardRecent{
  height:370px!important;
  max-height:370px!important;
  min-height:0!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  overscroll-behavior:contain;
  scrollbar-width:thin;
  scrollbar-color:#cbd5e1 transparent;
}
.dashboard-overview #dashboardRecent .recent-item{min-height:49px!important;box-sizing:border-box!important}
.dashboard-overview #dashboardRecent::-webkit-scrollbar{width:6px}
.dashboard-overview #dashboardRecent::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:8px}


/* Dashboard pastki 3 kartochka: teng balandlik va bir xil ko‘rinish */
.dashboard-overview .dashboard-monitor-grid.dashboard-lower-grid{
  align-items:stretch!important;
  grid-auto-rows:570px!important;
}
.dashboard-overview .dashboard-monitor-grid.dashboard-lower-grid > .dashboard-widget{
  height:570px!important;
  min-height:570px!important;
  max-height:570px!important;
  display:flex!important;
  flex-direction:column!important;
  overflow:hidden!important;
  box-sizing:border-box!important;
}
.dashboard-overview .dashboard-monitor-grid.dashboard-lower-grid > .dashboard-widget > .dw-head{
  flex:0 0 auto!important;
  min-height:78px!important;
  box-sizing:border-box!important;
}
.dashboard-overview #dashboardRecent,
.dashboard-overview #historyBars,
.dashboard-overview #attentionIssues{
  flex:1 1 auto!important;
  min-height:0!important;
  max-height:none!important;
  height:auto!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  box-sizing:border-box!important;
}
@media(max-width:1000px){
  .dashboard-overview .dashboard-monitor-grid.dashboard-lower-grid{grid-auto-rows:520px!important}
  .dashboard-overview .dashboard-monitor-grid.dashboard-lower-grid > .dashboard-widget{height:520px!important;min-height:520px!important;max-height:520px!important}
}
@media(max-width:680px){
  .dashboard-overview .dashboard-monitor-grid.dashboard-lower-grid{grid-auto-rows:480px!important}
  .dashboard-overview .dashboard-monitor-grid.dashboard-lower-grid > .dashboard-widget{height:480px!important;min-height:480px!important;max-height:480px!important}
}


/* Pastki uchta dashboard kartochkasini biroz ixchamlashtirish */
.dashboard-overview .dashboard-monitor-grid.dashboard-lower-grid{grid-auto-rows:460px!important}
.dashboard-overview .dashboard-monitor-grid.dashboard-lower-grid > .dashboard-widget{height:460px!important;min-height:460px!important;max-height:460px!important}
.dashboard-overview .dashboard-monitor-grid.dashboard-lower-grid > .dashboard-widget > .dw-head{min-height:70px!important;padding:12px 18px!important}
@media(max-width:1000px){.dashboard-overview .dashboard-monitor-grid.dashboard-lower-grid{grid-auto-rows:440px!important}.dashboard-overview .dashboard-monitor-grid.dashboard-lower-grid > .dashboard-widget{height:440px!important;min-height:440px!important;max-height:440px!important}}
@media(max-width:680px){.dashboard-overview .dashboard-monitor-grid.dashboard-lower-grid{grid-auto-rows:420px!important}.dashboard-overview .dashboard-monitor-grid.dashboard-lower-grid > .dashboard-widget{height:420px!important;min-height:420px!important;max-height:420px!important}}


/* Uchala kartochkada scrollbar bir xil: faqat ichki ro‘yxat aylansin */
.dashboard-overview .dashboard-monitor-grid.dashboard-lower-grid > .dashboard-widget{height:460px!important;min-height:460px!important;max-height:460px!important;overflow:hidden!important;display:flex!important;flex-direction:column!important}
.dashboard-overview .dashboard-monitor-grid.dashboard-lower-grid > .dashboard-widget > .dw-head{flex:0 0 70px!important;height:70px!important;min-height:70px!important;max-height:70px!important;overflow:hidden!important}
.dashboard-overview .dashboard-monitor-grid.dashboard-lower-grid > .dashboard-widget > #dashboardRecent,
.dashboard-overview .dashboard-monitor-grid.dashboard-lower-grid > .dashboard-widget > #historyBars,
.dashboard-overview .dashboard-monitor-grid.dashboard-lower-grid > .dashboard-widget > #attentionIssues{flex:1 1 0!important;height:0!important;min-height:0!important;max-height:none!important;overflow-y:auto!important;overflow-x:hidden!important;box-sizing:border-box!important}
.dashboard-overview .dashboard-monitor-grid.dashboard-lower-grid > .dashboard-widget > #historyBars{display:flex!important;flex-direction:column!important;align-items:stretch!important}
.dashboard-overview .dashboard-monitor-grid.dashboard-lower-grid #dashboardRecent,
.dashboard-overview .dashboard-monitor-grid.dashboard-lower-grid #historyBars,
.dashboard-overview .dashboard-monitor-grid.dashboard-lower-grid #attentionIssues{scrollbar-width:thin!important;scrollbar-color:#cbd5e1 transparent!important}
.dashboard-overview .dashboard-monitor-grid.dashboard-lower-grid #dashboardRecent::-webkit-scrollbar,
.dashboard-overview .dashboard-monitor-grid.dashboard-lower-grid #historyBars::-webkit-scrollbar,
.dashboard-overview .dashboard-monitor-grid.dashboard-lower-grid #attentionIssues::-webkit-scrollbar{width:6px!important}
.dashboard-overview .dashboard-monitor-grid.dashboard-lower-grid #dashboardRecent::-webkit-scrollbar-thumb,
.dashboard-overview .dashboard-monitor-grid.dashboard-lower-grid #historyBars::-webkit-scrollbar-thumb,
.dashboard-overview .dashboard-monitor-grid.dashboard-lower-grid #attentionIssues::-webkit-scrollbar-thumb{background:#cbd5e1!important;border-radius:8px!important}
@media(max-width:1000px){.dashboard-overview .dashboard-monitor-grid.dashboard-lower-grid > .dashboard-widget{height:440px!important;min-height:440px!important;max-height:440px!important}}
@media(max-width:680px){.dashboard-overview .dashboard-monitor-grid.dashboard-lower-grid > .dashboard-widget{height:420px!important;min-height:420px!important;max-height:420px!important}}


/* Fix: pastki qismni yashirmasdan kartochkalarni to‘liq ko‘rsatish */
.dashboard-overview .dashboard-monitor-grid.dashboard-lower-grid{align-items:stretch!important;overflow:visible!important}
.dashboard-overview .dashboard-monitor-grid.dashboard-lower-grid > .dashboard-widget{height:460px!important;min-height:460px!important;max-height:460px!important;overflow:hidden!important;padding-bottom:12px!important;box-sizing:border-box!important;border-bottom:1px solid #dce6f2!important}
.dashboard-overview .dashboard-monitor-grid.dashboard-lower-grid > .dashboard-widget > .dw-head{flex:0 0 70px!important;height:70px!important;min-height:70px!important;max-height:70px!important}
.dashboard-overview .dashboard-monitor-grid.dashboard-lower-grid > .dashboard-widget > #dashboardRecent,
.dashboard-overview .dashboard-monitor-grid.dashboard-lower-grid > .dashboard-widget > #historyBars,
.dashboard-overview .dashboard-monitor-grid.dashboard-lower-grid > .dashboard-widget > #attentionIssues{flex:1 1 auto!important;height:auto!important;min-height:0!important;max-height:calc(100% - 82px)!important;margin-bottom:0!important;padding-bottom:8px!important;overflow-y:auto!important;overflow-x:hidden!important;box-sizing:border-box!important}


/* Dashboard sarlavhasi ostida joriy foydalanuvchi va roli */
.dashboard-heading{min-width:0}
.dashboard-session-info{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-top:5px;color:#647995;font-size:11px;line-height:1.4}
.dashboard-session-info>span:first-child{display:inline-flex;align-items:center;gap:4px}
.dashboard-session-info strong{color:#294362;font-weight:800}
.dashboard-role-chip{display:inline-flex;align-items:center;padding:2px 8px;border:1px solid #dce7f7;border-radius:999px;background:#f0f6ff;color:#315f9d;font-size:10px;font-weight:800}


/* Ixcham Dashboard sarlavhasi */
.dashboard-overview{} 
header .dashboard-heading>p{display:none!important}
header .dashboard-heading h1{margin-bottom:0!important}
header .dashboard-session-info{margin-top:4px!important}


/* Foydalanuvchi ismi va rolini ikki qatorda ko‘rsatish */
.dashboard-session-info{display:flex!important;flex-direction:column!important;align-items:flex-start!important;justify-content:center!important;gap:3px!important}
.dashboard-role-chip{margin-left:0!important}


/* Kompyuterlar bo‘limi: 100% ekran masshtabida ixcham jadval */
#computers .table-wrap{width:100%!important;max-width:100%!important;overflow:auto!important;box-sizing:border-box!important}
#computers table{width:100%!important;min-width:1180px!important;table-layout:auto!important;font-size:11px!important}
#computers th,#computers td{padding:8px 8px!important;font-size:11px!important}
#computers th:last-child,#computers td:last-child{min-width:150px!important;width:150px!important;max-width:150px!important;padding:6px 5px!important}
#computers td:last-child button{min-width:0!important;width:30px!important;height:30px!important;padding:4px!important;margin:0 2px 0 0!important;font-size:12px!important}
#computers .view-btn,#computers .edit-btn,#computers .delete-btn{min-width:0!important;width:30px!important;padding:4px!important}
@media(max-width:1200px){#computers table{min-width:1100px!important}#computers th,#computers td{padding:7px 6px!important;font-size:10px!important}}


/* Kompyuterlar sahifasida bo‘sh joyni kamaytirib, jadvalga ko‘proq maydon berish */
#computers{padding:14px!important;margin-bottom:10px!important;width:100%!important;box-sizing:border-box!important}
#computers .panel-head{margin-bottom:10px!important;gap:10px!important}
#computers .panel-head h2{font-size:18px!important}
#computers .panel-head .muted{margin-top:3px!important}
#computers .toolbar{gap:6px!important}
#computers .toolbar button{padding:8px 11px!important;font-size:12px!important}
#computers .computer-filters,#computers .filters,#computers .filter-row{margin:8px 0!important;gap:8px!important}
#computers .table-wrap{height:auto!important;max-height:calc(100vh - 345px)!important;min-height:280px!important;overflow:auto!important}
#computers table{min-width:1180px!important;width:100%!important;font-size:11px!important}
#computers th,#computers td{padding:7px 7px!important;line-height:1.25!important}
#computers .pagination,#computers .table-pagination{margin-top:8px!important;padding:9px 10px!important}
@media(min-width:1200px){main{padding:14px 18px!important}#computers .table-wrap{max-height:calc(100vh - 315px)!important}}
@media(max-width:900px){#computers .table-wrap{max-height:calc(100vh - 300px)!important}}


/* Kompyuterlar kartochkasi pastdagi bo‘sh joyni ham ishlatsin */
@media(min-width:901px){
  #computers{min-height:calc(100vh - 245px)!important;display:flex!important;flex-direction:column!important}
  #computers .table-wrap{flex:1 1 auto!important;height:calc(100vh - 455px)!important;min-height:380px!important;max-height:none!important;overflow:auto!important}
  #computers .table-wrap table{width:100%!important}
  #computers .pagination,#computers .table-pagination{flex:none!important;margin-top:10px!important}
}
@media(max-height:760px) and (min-width:901px){#computers{min-height:calc(100vh - 205px)!important}#computers .table-wrap{height:calc(100vh - 405px)!important;min-height:250px!important}}


/* Kompyuterlar kartochkasini balandroq qilib, jadvalga ko‘proq qator sig‘dirish */
@media(min-width:901px){
  #computers{min-height:calc(100vh - 130px)!important;height:auto!important;padding-bottom:18px!important}
  #computers .table-wrap{height:calc(100vh - 340px)!important;min-height:480px!important;max-height:none!important;flex:1 1 auto!important}
}
@media(max-height:760px) and (min-width:901px){#computers{min-height:calc(100vh - 110px)!important}#computers .table-wrap{height:calc(100vh - 300px)!important;min-height:300px!important}}


/* Kompyuterlar kartochkasi sahifa pastigacha cho‘zilsin */
@media(min-width:901px){
  #computers{min-height:calc(100vh - 105px)!important;height:calc(100vh - 105px)!important;max-height:none!important;display:flex!important;flex-direction:column!important;box-sizing:border-box!important;margin-bottom:0!important}
  #computers .table-wrap{flex:1 1 auto!important;height:auto!important;min-height:0!important;max-height:none!important;overflow:auto!important}
  #computers .pagination,#computers .table-pagination{flex:0 0 auto!important;margin-top:10px!important}
  main{padding-bottom:8px!important}
}
@media(max-width:900px){#computers{height:auto!important;min-height:calc(100vh - 180px)!important}#computers .table-wrap{max-height:none!important}}


/* Kompyuterlar bo‘limi — reference ko‘rinishidek sahifa tagigacha */
@media(min-width:901px){
  #computers{
    height:calc(100vh - 105px)!important;
    min-height:calc(100vh - 105px)!important;
    max-height:none!important;
    display:flex!important;
    flex-direction:column!important;
    overflow:hidden!important;
    margin-bottom:0!important;
    box-sizing:border-box!important;
  }
  #computers .table-wrap{
    flex:1 1 0!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    overflow:auto!important;
  }
  #computers .pagination,#computers .table-pagination{
    flex:0 0 auto!important;
    margin-top:10px!important;
  }
  main{padding-bottom:0!important}
}


/* Fix: kompyuterlar kartochkasi sahifaning pastigacha yetib borsin */
@media(min-width:901px){
  #computers{height:calc(100vh - 105px);min-height:0;max-height:none;display:block;overflow:hidden;box-sizing:border-box;margin-bottom:0}
  #computers .table-wrap{height:auto!important;min-height:0!important;max-height:none!important;flex:1 1 0!important;overflow:auto!important}
  #computers .pagination,#computers .table-pagination{flex:0 0 auto!important;margin-top:10px!important}
  main{padding-bottom:0!important}
}


/* Kompyuterlar kartochkasi ichida 10 ta qator to‘liq ko‘rinsin */
@media(min-width:901px){
  #computers{height:auto;min-height:0;max-height:none;overflow:visible;display:block}
  #computers .table-wrap{flex:0 0 auto!important;height:auto!important;min-height:0!important;max-height:none!important;overflow:auto!important}
  #computers .table-wrap table tbody tr{height:48px!important}
  #computers .table-wrap table thead tr{height:36px!important}
  #computers .pagination,#computers .table-pagination{flex:0 0 auto!important}
}


/* Make all 10 computer rows visible above the pagination */
@media(min-width:901px){
  #computers .table-wrap{height:calc(10 * 52px + 42px)!important;min-height:562px!important;max-height:none!important;flex:0 0 auto!important;overflow:auto!important}
  #computers .table-wrap table thead tr{height:40px!important}
  #computers .table-wrap table tbody tr{height:52px!important;min-height:52px!important}
}
@media(max-height:850px) and (min-width:901px){
  #computers .table-wrap{height:calc(100vh - 320px)!important;min-height:520px!important;max-height:none!important}
}



/* Restore normal section navigation; only adjust layout while the panel is visible */
#computers{display:block}
#computers .table-wrap{overflow:auto}


/* Respect showSection() inline visibility so panels never leak into other sections */
main > section.panel[style*="display: none"]{display:none!important}
main > section.panel[style*="display:none"]{display:none!important}


/* Section visibility is controlled by showSection() inline display values.
   Never force the computers section to display when another section is active. */
@media(min-width:901px){
  #computers[style*="display: block"]{display:block!important}
  #computers[style*="display: none"]{display:none!important}
}


/* Modernize computers page header, actions and filter controls */
#computers .section-header,
#computers .page-header,
#computers .content-header{
  border:1px solid #dce8fb!important;border-radius:18px!important;
  background:linear-gradient(115deg,rgba(255,255,255,.98),rgba(239,246,255,.94))!important;
  box-shadow:0 8px 24px rgba(34,79,140,.07)!important;padding:18px 20px!important;
}
#computers h2,#computers h3{letter-spacing:-.025em}
#computers button{transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
#computers button:hover{transform:translateY(-1px);box-shadow:0 6px 16px rgba(36,93,180,.12)}
#computers input[type="text"],#computers input[type="search"],#computers select{
  min-height:48px!important;border:1px solid #d8e4f6!important;border-radius:13px!important;
  background:linear-gradient(180deg,#fff,#f8fbff)!important;box-shadow:inset 0 1px 2px rgba(20,55,100,.025)!important;
  transition:border-color .18s ease,box-shadow .18s ease!important;
}
#computers input[type="text"]:focus,#computers input[type="search"]:focus,#computers select:focus{
  outline:none!important;border-color:#78aaff!important;box-shadow:0 0 0 3px rgba(53,125,255,.12)!important;
}
#computers .filter-card,#computers .filter-group,#computers .filter-item{
  border-radius:14px!important;border-color:#dce7f7!important;background:#fff!important;
}
@media(max-width:900px){#computers input[type="text"],#computers input[type="search"],#computers select{min-height:44px!important}}


/* Match computers section card dimensions to the tablets section */
#computers{
  border-radius:18px!important;
  padding:18px!important;
  box-sizing:border-box!important;
}
#computers .table-wrap{
  border-radius:14px!important;
}
#computers .pagination,#computers .table-pagination{
  min-height:58px!important;
  border-radius:14px!important;
}
@media(min-width:901px){
  #computers{min-height:calc(100vh - 170px)!important;height:auto!important}
  #computers .table-wrap{min-height:480px!important}
}


/* Compact pagination footer only in the computers section */
#computers .pagination,#computers .table-pagination,#computers .pagination-container{
  min-height:44px!important;height:auto!important;padding:8px 12px!important;margin-top:8px!important;
  border-radius:12px!important;
}
#computers .pagination button,#computers .table-pagination button,#computers .pagination-container button{
  min-width:32px!important;height:32px!important;padding:4px 8px!important;
}
#computers .pagination select,#computers .table-pagination select,#computers .pagination-container select{
  min-height:36px!important;height:36px!important;
}


/* Move RustDesk column closer to RAM/last-seen columns by reducing table spacing */
#computers table th:nth-last-child(3),#computers table td:nth-last-child(3){
  width:64px!important;min-width:64px!important;max-width:64px!important;
  padding-left:5px!important;padding-right:5px!important;text-align:center!important;
}
#computers table th:nth-last-child(2),#computers table td:nth-last-child(2){
  width:66px!important;min-width:66px!important;padding-left:6px!important;padding-right:6px!important;
}
#computers table th:nth-last-child(1),#computers table td:nth-last-child(1){
  width:82px!important;min-width:82px!important;padding-left:5px!important;padding-right:5px!important;
}
#computers table{table-layout:auto!important}


/* RustDesk launcher shares the compact action buttons column */
#computers .computer-actions .rustdesk-action,
#computers .computer-actions .rustdesk-disabled{
  display:inline-flex!important;align-items:center;justify-content:center;
  width:24px!important;height:24px!important;min-width:24px!important;
  padding:0!important;border-radius:6px!important;box-sizing:border-box!important;
  text-decoration:none!important;font-size:12px!important;line-height:1!important;
}
#computers .computer-actions .rustdesk-action{background:#eaf3ff!important;border:1px solid #d3e4ff!important;color:#2563eb!important}
#computers .computer-actions .rustdesk-action:hover{background:#dbeaff!important}
#computers .computer-actions .rustdesk-disabled{background:#f4f6f9!important;border:1px solid #e2e8f0!important;opacity:.55}


/* Global save/error toast notifications */
.global-save-toast-host{position:fixed;right:22px;top:22px;z-index:999999;display:flex;flex-direction:column;gap:10px;width:min(390px,calc(100vw - 28px));pointer-events:none}.global-save-toast{display:flex;align-items:center;gap:11px;padding:13px 14px;border-radius:13px;background:#fff;border:1px solid #d9e7df;box-shadow:0 12px 35px rgba(15,23,42,.18);font:600 13px/1.45 system-ui,-apple-system,"Segoe UI",sans-serif;color:#173b2a;opacity:0;transform:translateY(-8px);transition:opacity .22s ease,transform .22s ease;pointer-events:auto}.global-save-toast.visible{opacity:1;transform:translateY(0)}.global-save-toast.error{border-color:#fecaca;color:#991b1b;background:#fffafa}.global-save-toast-icon{display:flex;align-items:center;justify-content:center;flex:0 0 25px;width:25px;height:25px;border-radius:50%;background:#dcfce7;color:#15803d;font-size:16px;font-weight:800}.global-save-toast.error .global-save-toast-icon{background:#fee2e2;color:#dc2626}.global-save-toast-text{flex:1;overflow-wrap:anywhere}.global-save-toast-close{border:0;background:transparent;color:inherit;font-size:20px;line-height:1;cursor:pointer;padding:2px 4px;opacity:.65}.global-save-toast-close:hover{opacity:1}@media(max-width:600px){.global-save-toast-host{right:12px;top:12px}}


/* Sidebar menu: items slightly closer together */
@media (min-width: 0px) {
  body:not(.login-page) nav a {
    margin: 1px 0 !important;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
    min-height: 38px !important;
  }
  body:not(.login-page) nav {
    row-gap: 1px !important;
  }
  body:not(.login-page) nav a .nav-icon {
    margin-right: 9px !important;
  }
}

/* Hisobotlar bo‘limi: izlash maydoni va muassasa filtrini qulay joylashtirish */
.report-inst-search{padding:8px 10px;border-bottom:1px solid #e5eaf1;position:sticky;top:41px;background:#fff;z-index:1}.report-inst-search input{width:100%;height:35px;padding:7px 10px;border:1px solid #d7e0ec;border-radius:8px;font:inherit;font-size:13px;outline:none}.report-inst-search input:focus{border-color:#7da5e8;box-shadow:0 0 0 3px rgba(59,130,246,.10)}#reportInstitutionOptions{max-height:205px;overflow:auto}.report-inst-option[style*="display: none"]{display:none!important}


/* Modal oynalar barcha sahifa headerlaridan yuqorida ko‘rinsin */
.modal{
  z-index: 99999 !important;
  isolation: isolate;
}
.modal.show{
  position: fixed !important;
  inset: 0 !important;
}
.modal.show .modal-box{
  position: relative;
  z-index: 100000 !important;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}


/* Kompyuterlar: barcha filtrlar desktopda bitta qatorda */
#computers .tablet-filter-grid{
  grid-template-columns:minmax(170px,1.05fr) minmax(125px,.82fr) minmax(150px,1fr) minmax(155px,1.05fr) minmax(250px,1.4fr);
  gap:8px;
  padding:0 14px 16px;
  align-items:stretch;
}
#computers .tablet-filter-card{
  min-width:0;
  grid-template-columns:32px minmax(0,1fr);
  column-gap:7px;
  padding:8px;
}
#computers .tablet-filter-card .filter-icon{
  width:32px;
  height:32px;
  font-size:15px;
}
#computers .tablet-filter-card select,
#computers .tablet-filter-card input{
  min-width:0;
  width:100%;
  font-size:11px;
}
#computers .tablet-filter-card .filter-label{
  white-space:nowrap;
}
@media(max-width:1180px){
  #computers .tablet-filter-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}
@media(max-width:760px){
  #computers .tablet-filter-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}


/* FIX: computer filters must remain in one desktop row */
@media (min-width: 1181px) {
  #computers .tablet-filter-grid {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    width: 100% !important;
    box-sizing: border-box !important;
    gap: 8px !important;
  }
  #computers .tablet-filter-grid > .tablet-filter-card {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  #computers .tablet-filter-grid > .tablet-filter-card input,
  #computers .tablet-filter-grid > .tablet-filter-card select {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
}



/* Final fix: computer filter cards remain visible and align in one row */
@media (min-width: 1000px) {
  #computers .tablet-filter-grid {
    display: grid !important;
    grid-template-columns: minmax(0,1.05fr) minmax(0,.82fr) minmax(0,1fr) minmax(0,1.05fr) minmax(0,1.25fr) !important;
    gap: 8px !important;
    align-items: stretch !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  #computers .tablet-filter-grid > .tablet-filter-card {
    display: grid !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    grid-template-columns: 30px minmax(0,1fr) !important;
    grid-template-rows: auto 38px !important;
    box-sizing: border-box !important;
  }
  #computers .tablet-filter-grid > .tablet-filter-card select,
  #computers .tablet-filter-grid > .tablet-filter-card input {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }
}
