:root{--bg:#050c18;--sidebar:#050c18;--card:#0d1726;--card-border:#1f2d42;--text:#f1f5f9;--muted:#9fb3c8;--primary:#2563eb;--primary-hover:#1d4ed8;--orange:#f97316;--blue:#3b82f6;--green:#22c55e}[data-theme=light]{--bg:#f8fafc;--sidebar:#fff;--card:#fff;--card-border:#e2e8f0;--text:#0f172a;--muted:#64748b}body{background:var(--bg);color:var(--text);margin:0;font-family:Segoe UI,sans-serif}.layout{min-height:100vh;display:flex}.sidebar{background:var(--sidebar);border-right:1px solid var(--card-border);box-sizing:border-box;flex-direction:column;width:240px;min-height:100vh;padding:20px;display:flex}.logo,.logo-container{justify-content:center;align-items:center;height:105px;margin-bottom:24px;display:flex}.logo img,.logo-container img{object-fit:contain;width:175px;max-width:175px;max-height:95px;display:block}.logo-light,[data-theme=light] .logo-dark{display:none!important}[data-theme=light] .logo-light{display:block!important}.sidebar nav a{color:var(--muted);border-radius:8px;margin-bottom:8px;padding:12px 14px;font-weight:500;text-decoration:none;transition:all .2s;display:block}.sidebar nav a:hover{color:var(--text);background:#2563eb24}.sidebar nav a.active{background:var(--primary);color:#fff}.user{border:1px solid var(--card-border);color:var(--text);border-radius:10px;margin-top:auto;padding:14px;font-size:14px}.main{box-sizing:border-box;flex:1;padding:24px 32px;overflow-x:hidden}.topbar{justify-content:space-between;align-items:center;margin-bottom:24px;display:flex}.topbar h1{margin:0;font-size:30px;font-weight:700}.topbar span{color:var(--muted);font-size:14px}.content{padding:10px 0}.cards{grid-template-columns:repeat(4,1fr);gap:18px;display:grid}.card{background:var(--card);border:1px solid var(--card-border);border-radius:12px;padding:22px;box-shadow:0 8px 18px #0000002e}.card h3{margin-top:0;margin-bottom:12px;font-size:17px}.card span,.card p{color:var(--muted)}.value{margin:5px 0;font-size:34px;font-weight:800}.orange{color:var(--orange)!important}.blue{color:var(--blue)!important}.green{color:var(--green)!important}.grid{grid-template-columns:2fr 1fr;gap:20px;margin-top:20px;display:grid}.large{height:320px;min-height:320px;max-height:320px;overflow:hidden}.large canvas{width:100%!important;height:250px!important;max-height:250px!important}.chart-placeholder{height:220px;color:var(--muted);border-radius:10px;justify-content:center;align-items:center;display:flex}table{border-collapse:collapse;width:100%}table th,table td{text-align:left;padding:11px 10px;font-size:14px}table th{color:var(--muted);font-weight:600}table tr{border-bottom:1px solid var(--card-border)}.badge{border-radius:6px;padding:4px 8px;font-size:12px;font-weight:700}.badge.down{color:var(--orange);background:#f973162e}.badge.up{color:var(--green);background:#22c55e2e}@media (width<=1200px){.cards{grid-template-columns:repeat(2,1fr)}.grid{grid-template-columns:1fr}}@media (width<=768px){.layout{flex-direction:column}.sidebar{width:100%;min-height:auto}.main{padding:20px}.cards{grid-template-columns:1fr}}.chart-card{height:360px;min-height:360px;max-height:360px;overflow:hidden}.chart-card canvas{display:block;width:100%!important;height:260px!important;max-height:260px!important}.login-page{background:var(--bg);justify-content:center;align-items:center;min-height:100vh;padding:20px;display:flex}.login-card{background:var(--card);border:1px solid var(--card-border);border-radius:18px;width:380px;padding:34px;box-shadow:0 18px 40px #00000059}.login-logo{object-fit:contain;width:190px;height:95px;margin:0 auto 10px;display:block}.login-card h1{text-align:center;margin:0}.login-card p{text-align:center;color:var(--muted);margin-bottom:25px}label{color:var(--muted);margin-top:15px;margin-bottom:7px;font-size:14px;display:block}input{box-sizing:border-box;border:1px solid var(--card-border);width:100%;color:var(--text);background:#0b1220;border-radius:9px;outline:none;padding:12px}[data-theme=light] input{background:#fff}input:focus{border-color:var(--primary)}button,.btn-primary,.btn-secondary{cursor:pointer;border:none;border-radius:9px;padding:11px 16px;font-weight:700;text-decoration:none;display:inline-block}.login-card button{background:var(--primary);color:#fff;width:100%;margin-top:22px}.btn-primary{background:var(--primary);color:#fff}.btn-secondary{color:var(--text);border:1px solid var(--card-border);background:0 0}.page-actions{justify-content:flex-end;margin-bottom:18px;display:flex}.form-card{max-width:620px}.form-actions{gap:10px;margin-top:24px;display:flex}.alert-success,.alert-error{border-radius:9px;margin-bottom:15px;padding:12px 14px}.alert-success{color:var(--green);background:#22c55e26}.alert-error{color:#f87171;background:#dc262626}.empty{color:var(--muted);text-align:center}.btn-danger{color:#f87171;cursor:pointer;background:#dc262626;border:1px solid #dc262659;border-radius:8px;padding:8px 12px;font-weight:700}.script-box{color:#e2e8f0;border:1px solid var(--card-border);background:#020617;border-radius:10px;width:100%;min-height:260px;margin-top:12px;padding:14px;font-family:Consolas,monospace;font-size:13px}[data-theme=light] .script-box{color:#0f172a;background:#f8fafc}details summary{cursor:pointer;color:var(--blue);font-weight:700}select{box-sizing:border-box;border:1px solid var(--card-border);width:100%;color:var(--text);background:#0b1220;border-radius:9px;outline:none;padding:12px}[data-theme=light] select{background:#fff}.checkbox-label{align-items:center;gap:10px;display:flex}.checkbox-label input{width:auto}.script-panel{padding:10px 0}.script-actions{justify-content:flex-end;margin:10px 0;display:flex}.script-box{resize:vertical;box-sizing:border-box;min-height:360px;line-height:1.45}.pagination svg,nav[role=navigation] svg{width:16px!important;max-width:16px!important;height:16px!important;max-height:16px!important}nav[role=navigation] a,nav[role=navigation] span{justify-content:center!important;align-items:center!important;min-width:36px!important;height:36px!important;display:inline-flex!important}.dark .card,.dark .panel,.dark .stat-card,.dark .table-card,.dark .content-card,.dark .dashboard-card,.dark .bg-white{color:#e8eef8!important;background:#111c2b!important;border-color:#243449!important}.dark table,.dark thead,.dark tbody,.dark tr,.dark td,.dark th{color:#e8eef8!important;border-color:#243449!important}.dark .text-muted,.dark .text-gray-400,.dark .text-gray-500,.dark .text-gray-600,.dark .text-slate-400,.dark .text-slate-500{color:#9fb0c6!important}.dark input,.dark textarea,.dark select{color:#e8eef8!important;background:#07101f!important;border-color:#243449!important}.dark input::placeholder,.dark textarea::placeholder{color:#7f90a8!important}.dark .progress,.dark .progress-bar-bg{background:#263449!important}[data-theme=dark] .card,[data-theme=dark] .panel,[data-theme=dark] .stat-card,[data-theme=dark] .table-card,[data-theme=dark] .content-card,[data-theme=dark] .dashboard-card,[data-theme=dark] .bg-white{color:#e8eef8!important;background:#111c2b!important;border-color:#243449!important}[data-theme=dark] table,[data-theme=dark] thead,[data-theme=dark] tbody,[data-theme=dark] tr,[data-theme=dark] td,[data-theme=dark] th{color:#e8eef8!important;border-color:#243449!important}[data-theme=dark] .text-muted,[data-theme=dark] .text-gray-400,[data-theme=dark] .text-gray-500,[data-theme=dark] .text-gray-600,[data-theme=dark] .text-slate-400,[data-theme=dark] .text-slate-500{color:#9fb0c6!important}[data-theme=dark] input,[data-theme=dark] textarea,[data-theme=dark] select{color:#e8eef8!important;background:#07101f!important;border-color:#243449!important}[data-theme=dark] input::placeholder,[data-theme=dark] textarea::placeholder{color:#7f90a8!important}[data-theme=dark] .stat-card,[data-theme=dark] .stats-card,[data-theme=dark] .summary-card,[data-theme=dark] .call-card,[data-theme=dark] .metric-box,[data-theme=dark] .metric-card,[data-theme=dark] .outage-card,[data-theme=dark] .latest-outage,[data-theme=dark] .kpi-card,[data-theme=dark] [style*="background: white"],[data-theme=dark] [style*=background\:white],[data-theme=dark] [style*="background: #fff"],[data-theme=dark] [style*="background:#fff"],[data-theme=dark] [style*="background-color: white"],[data-theme=dark] [style*=background-color\:white],[data-theme=dark] [style*="background-color: #fff"],[data-theme=dark] [style*="background-color:#fff"]{color:#e8eef8!important;background:#111c2b!important;border-color:#243449!important}[data-theme=dark] [style*="color:#0f172a"],[data-theme=dark] [style*="color: #0f172a"],[data-theme=dark] [style*="color:#111827"],[data-theme=dark] [style*="color: #111827"],[data-theme=dark] [style*=color\:black],[data-theme=dark] [style*="color: black"],[data-theme=dark] .stat-card h3,[data-theme=dark] .stat-card .value,[data-theme=dark] .stat-card strong,[data-theme=dark] .summary-card h3,[data-theme=dark] .summary-card .value,[data-theme=dark] .call-card h3,[data-theme=dark] .call-card .value{color:#e8eef8!important}[data-theme=dark] .stat-card small,[data-theme=dark] .stat-card p,[data-theme=dark] .summary-card small,[data-theme=dark] .summary-card p,[data-theme=dark] .call-card small,[data-theme=dark] .call-card p{color:#9fb0c6!important}[data-theme=dark] .latest-outage,[data-theme=dark] .outage-summary,[data-theme=dark] .outage-row,[data-theme=dark] .outage-box{color:#e8eef8!important;background:#111c2b!important;border:1px solid #243449!important}[data-theme=dark] .latest-outage *,[data-theme=dark] .outage-summary *,[data-theme=dark] .outage-row *,[data-theme=dark] .outage-box *{color:#e8eef8!important}[data-theme=dark] a[href*=router-overview],[data-theme=dark] a[href*=pbx-overview]{color:#cfe0f5!important;background:#0b1423!important;border:1px solid #2b3f5c!important}[data-theme=dark] a[href*=router-overview]:hover,[data-theme=dark] a[href*=pbx-overview]:hover{color:#fff!important;background:#16243a!important;border-color:#3b82f6!important}[data-theme=dark] a[href*=router-overview].active,[data-theme=dark] a[href*=pbx-overview].active,[data-theme=dark] .active[href*=router-overview],[data-theme=dark] .active[href*=pbx-overview]{color:#fff!important;background:linear-gradient(135deg,#2563eb,#7c3aed)!important;border-color:#0000!important}[data-theme=dark] .dashboard-card,[data-theme=dark] .dashboard-stat,[data-theme=dark] .dashboard-panel,[data-theme=dark] .offline-card,[data-theme=dark] .offline-clients,[data-theme=dark] .summary-box,[data-theme=dark] .stats-box,[data-theme=dark] .metric-box,[data-theme=dark] main>div>div{color:#e8eef8!important;background:#111c2b!important;border-color:#243449!important}[data-theme=dark] .dashboard-card *,[data-theme=dark] .dashboard-stat *,[data-theme=dark] .dashboard-panel *,[data-theme=dark] .offline-card *,[data-theme=dark] .offline-clients *,[data-theme=dark] table,[data-theme=dark] table *{color:#e8eef8!important}[data-theme=dark] table tr{border-color:#243449!important}[data-theme=dark] .progress,[data-theme=dark] .progress-bg{background:#263449!important}[data-theme=dark] a[href*=router-overview].active-router,[data-theme=dark] a[href*=router-overview].active{color:#fff!important;background:linear-gradient(135deg,#2563eb,#2563eb)!important;border-color:#2563eb!important}[data-theme=dark] body:has([href*=router-overview]) a[href*=router-overview][aria-current=page]{color:#fff!important;background:linear-gradient(135deg,#2563eb,#2563eb)!important;border-color:#2563eb!important}[data-theme=dark] a[href*=pbx-overview].active,[data-theme=dark] a[href*=pbx-overview][aria-current=page]{color:#fff!important;background:linear-gradient(135deg,#2563eb,#7c3aed)!important;border-color:#0000!important}[data-theme=dark] [style*="border-top:1px solid #e5e7eb"],[data-theme=dark] [style*="border-top: 1px solid #e5e7eb"]{border-top:1px solid #243449!important}.client-switch-btn{color:#0f172a!important;background:#fff!important;border:1px solid #dbe3ef!important}.client-switch-btn.active-router,.client-switch-btn.active-pbx,.client-switch-btn.active{color:#fff!important;background:linear-gradient(135deg,#2563eb,#7c3aed)!important;border-color:#0000!important}[data-theme=dark] .client-switch-btn{color:#cfe0f5!important;background:#0b1423!important;border:1px solid #2b3f5c!important}[data-theme=dark] .client-switch-btn.active-router,[data-theme=dark] .client-switch-btn.active-pbx,[data-theme=dark] .client-switch-btn.active{color:#fff!important;background:linear-gradient(135deg,#2563eb,#7c3aed)!important;border-color:#0000!important}.latest-outage,.outage-summary,.outage-row,.outage-box{color:#0f172a!important;background:#fff!important;border:1px solid #dbe3ef!important}[data-theme=dark] .latest-outage,[data-theme=dark] .outage-summary,[data-theme=dark] .outage-row,[data-theme=dark] .outage-box{color:#e8eef8!important;background:#111c2b!important;border-color:#243449!important}[data-theme=dark] input[type=date],[data-theme=dark] input[type=time],[data-theme=dark] input[type=datetime-local]{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}[data-theme=dark] input[type=date]::-webkit-calendar-picker-indicator{filter:invert();opacity:.85}[data-theme=dark] input[type=time]::-webkit-calendar-picker-indicator{filter:invert();opacity:.85}[data-theme=dark] input[type=datetime-local]::-webkit-calendar-picker-indicator{filter:invert();opacity:.85}[data-theme=dark] .main{background:var(--bg)!important}[data-theme=dark] .topbar,[data-theme=dark] .topbar>div{background:0 0!important}[data-theme=dark] .topbar h1{text-shadow:0 1px #00000059;color:var(--text)!important;box-shadow:none!important;background:0 0!important}[data-theme=dark] .topbar span{color:var(--muted)!important}[data-theme=dark] .card{background-clip:padding-box;overflow:hidden;box-shadow:inset 0 1px #ffffff06,0 10px 24px #0000002e;background:#0d1726!important;border-color:#203049!important}[data-theme=dark] .card h3,[data-theme=dark] .value{color:#f8fafc!important}[data-theme=dark] .card span,[data-theme=dark] .card p{color:var(--muted)!important}[data-theme=dark] table thead,[data-theme=dark] table thead tr,[data-theme=dark] table thead th{color:#cbd5e1!important;background:#101b2d!important}[data-theme=dark] table tr{border-bottom-color:#94a3b824!important}[data-theme=dark] table td{color:var(--text)}[data-theme=dark] .cards{gap:18px}[data-theme=dark] .cards>.card{background:linear-gradient(#121f31f5 0%,#0d1726f5 100%) padding-box padding-box!important;border:1px solid #22334d!important;border-radius:14px!important;overflow:hidden!important;box-shadow:inset 0 1px #ffffff09,0 8px 18px #00000029!important}[data-theme=dark] .cards>.card:hover{border-color:#2b4263!important}.shared-subnav{border-top:1px solid var(--card-border);flex-wrap:wrap;align-items:center;gap:18px;margin-top:18px;padding-top:14px;display:flex}.shared-subnav a{font-weight:800;line-height:1.4;text-decoration:none;box-shadow:none!important;color:var(--muted)!important;background:0 0!important;border:0!important;border-radius:0!important;padding:0!important}.shared-subnav a:hover{color:var(--text)!important;background:0 0!important}.shared-subnav a.active{text-underline-offset:5px;text-decoration:underline;text-decoration-thickness:2px;color:#60a5fa!important;box-shadow:none!important;background:0 0!important;border:0!important}[data-theme=dark] .shared-subnav{border-top-color:#243449!important}[data-theme=dark] .shared-subnav a,[data-theme=dark] .shared-subnav a[href*=router-overview],[data-theme=dark] .shared-subnav a[href*=pbx-overview]{box-shadow:none!important;color:#9fb0c6!important;background:0 0!important;border:0!important;border-radius:0!important;padding:0!important}[data-theme=dark] .shared-subnav a:hover{color:#e8eef8!important}[data-theme=dark] .shared-subnav a.active,[data-theme=dark] .shared-subnav a[href*=router-overview].active,[data-theme=dark] .shared-subnav a[href*=pbx-overview].active{text-underline-offset:5px;text-decoration:underline;text-decoration-thickness:2px;box-shadow:none!important;color:#60a5fa!important;background:0 0!important;border:0!important}.sidebar-menu-icon{vertical-align:-2px;justify-content:center;align-items:center;width:20px;min-width:20px;margin-right:6px;line-height:1;display:inline-flex}.sidebar-menu-icon img{object-fit:contain;width:16px;height:16px;display:block}@media (width>=769px){body{font-size:13px}.sidebar{flex:0 0 205px;width:205px;padding:14px}.logo,.logo-container{height:76px;margin-bottom:14px}.logo img,.logo-container img{width:145px;max-width:145px;max-height:75px}.sidebar nav a{border-radius:7px;margin-bottom:4px;padding:9px 10px;font-size:13px}.sidebar-menu-icon{width:17px;min-width:17px;margin-right:5px}.sidebar-menu-icon img{width:14px;height:14px}.user{padding:10px;font-size:12px}.main{min-width:0;padding:18px 22px}.topbar{margin-bottom:16px}.topbar h1{font-size:24px}.topbar span{font-size:12px}.content{padding:6px 0}.cards{gap:12px}.card{border-radius:10px;padding:16px}.card h3{margin-bottom:9px;font-size:15px}.value{font-size:28px}.grid{gap:14px;margin-top:14px}table th,table td{padding:8px 7px;font-size:12px}.badge{padding:3px 6px;font-size:11px}.shared-subnav{gap:13px;margin-top:12px;padding-top:10px}.btn-primary,.btn-secondary,.btn-danger{padding:8px 11px;font-size:12px}.input-field{padding:8px 10px;font-size:12px}}@media (width<=768px){.sidebar{width:100%}.main{min-width:0}}
