*{box-sizing:border-box}
:root{--navy:#111b2d;--muted:#7b8799;--line:#e8edf3;--green:#10b981;--red:#ef4444;--amber:#f59e0b}
body{margin:0;background:#f3f6fb;color:#172033;font:14px/1.5 Inter,system-ui,-apple-system,Segoe UI,Arial,sans-serif}
.top{min-height:72px;background:var(--navy);color:#fff;display:flex;align-items:center;justify-content:space-between;padding:12px max(22px,calc((100% - 1240px)/2));box-shadow:0 4px 18px #11182722}
.brand{display:flex;align-items:center;gap:12px}.mark{width:40px;height:40px;border-radius:12px;background:linear-gradient(135deg,#13b981,#087eaa);display:grid;place-items:center;font-size:22px;font-weight:900}
.brand b,.brand span{display:block;letter-spacing:1.6px}.brand b{font-size:15px}.brand span{font-size:10px;color:#aebbd0}
.right{display:flex;align-items:center;gap:14px;color:#aebbd0;font-size:12px}.pill{padding:6px 10px;border-radius:20px;font-weight:800;font-size:10px;letter-spacing:.7px}.pill.ok{background:#123e35;color:#6ee7b7}.pill.bad{background:#4b2029;color:#fda4af}.pill.wait{background:#40351a;color:#fde68a}
main{max-width:1240px;margin:0 auto;padding:30px 22px}.intro{display:flex;justify-content:space-between;align-items:end;margin-bottom:22px}.eyebrow{font-size:10px;letter-spacing:2px;color:#0d9b75;font-weight:800;margin:0 0 8px}h1{font-size:29px;letter-spacing:-.8px;margin:0}.sub,.panel-head p,.section-title p{color:var(--muted);margin:5px 0 0;font-size:12px}
button{border:0;background:#087f68;color:white;border-radius:9px;padding:11px 15px;font-weight:700;cursor:pointer;white-space:nowrap}button:hover{filter:brightness(.95)}button:disabled{opacity:.55;cursor:not-allowed}
button.secondary{background:#e8eef5;color:#263449}button.secondary.enabled{background:#dcfce7;color:#166534}button.whatsapp{background:#15803d}
.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:15px}.card,.panel{background:#fff;border:1px solid var(--line);border-radius:15px;box-shadow:0 5px 20px #17203308}
.card{padding:17px 19px;border-top:3px solid #cbd5e1}.card-top{display:flex;justify-content:space-between;align-items:center;color:#778399;font-size:12px}.card-icon{font-size:17px;color:#9aa6b7}.card strong{display:block;font-size:32px;line-height:1.3;margin:5px 0;font-weight:850}.card small{font-size:11px;color:#8994a5}.card.online{border-top-color:var(--green)}.card.online strong{color:#059669}.card.offline{border-top-color:var(--red)}.card.offline strong{color:#dc2626}.card.disabled{border-top-color:var(--amber)}.card.disabled strong{color:#d97706}
.overview-grid{display:grid;grid-template-columns:1.2fr 1fr;gap:15px}.panel{margin-top:15px;overflow:hidden}.health-panel,.router-panel{padding:19px 20px}.section-title{display:flex;align-items:flex-start;justify-content:space-between}.section-title h2,.panel-head h2{font-size:16px;margin:0}.live-tag{font-size:10px;font-weight:800;letter-spacing:1px;color:#059669;background:#ecfdf5;border-radius:20px;padding:5px 9px}.live-tag i{display:inline-block;width:6px;height:6px;background:#10b981;border-radius:50%;margin-right:5px}
.health-content{display:flex;align-items:center;gap:28px;padding:17px 4px}.donut{width:130px;height:130px;flex:none;border-radius:50%;display:grid;place-items:center;position:relative;background:#e9eef5}.donut:before{content:"";position:absolute;inset:13px;background:#fff;border-radius:50%}.donut-center{position:relative;text-align:center}.donut-center strong{display:block;font-size:25px;line-height:1.2}.donut-center span{font-size:9px;letter-spacing:1.4px;color:#8a96a8;font-weight:800}.legend{display:grid;gap:12px;flex:1}.legend>div{display:grid;grid-template-columns:10px 1fr auto;align-items:center;gap:9px;font-size:12px;color:#6d798b}.legend b{color:#253248}.legend-dot{width:8px;height:8px;border-radius:50%}.green{background:var(--green)}.red{background:var(--red)}.amber{background:var(--amber)}
.bar-track{height:9px;display:flex;overflow:hidden;border-radius:20px;background:#edf1f6}.bar-track span{height:100%;transition:width .3s}.bar-track #barOn{background:var(--green)}.bar-track #barOff{background:var(--red)}.bar-track #barDisabled{background:var(--amber)}.bar-label{display:flex;justify-content:space-between;font-size:10px;color:#8a96a8;margin-top:8px}
.router-symbol{font-size:24px;color:#0d9b75}.router-state{display:flex;align-items:center;gap:12px;padding:24px 2px 20px}.router-dot{width:12px;height:12px;border-radius:50%;background:#f59e0b;box-shadow:0 0 0 5px #fef3c7}.router-dot.good{background:#10b981;box-shadow:0 0 0 5px #d1fae5}.router-dot.bad{background:#ef4444;box-shadow:0 0 0 5px #fee2e2}.router-state b,.router-state small{display:block}.router-state b{font-size:15px}.router-state small{font-size:11px;color:#8a96a8;margin-top:3px}.router-info{border-top:1px solid #edf1f6;padding-top:12px;display:grid;grid-template-columns:1fr 1fr;gap:10px}.router-info span,.router-info b{display:block}.router-info span{font-size:10px;color:#8a96a8}.router-info b{font-size:11px;margin-top:3px}.error{background:#fff1f2;color:#be123c;border:1px solid #fecdd3;border-radius:9px;padding:10px 12px;margin-top:12px;font-size:11px}.hidden{display:none}
.panel-head{padding:18px 19px;display:flex;align-items:center;justify-content:space-between;gap:14px}.filters{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}.filters button{font-size:11px;padding:10px 12px}.filters input,.filters select{font:inherit;font-size:11px;border:1px solid #dce3ed;border-radius:8px;padding:9px 11px;background:#fff;color:#263449;outline:none}.filters input{min-width:180px}.filters input:focus,.filters select:focus{border-color:#0d9b75}
.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;white-space:nowrap}th{text-align:left;background:#f8fafc;color:#7a879a;font-size:10px;text-transform:uppercase;letter-spacing:.7px;padding:12px 15px}td{padding:12px 15px;border-top:1px solid #edf1f6;font-size:11px}tbody tr:hover{background:#fbfdff}.name{font-weight:750;color:#263449}.status{font-size:9px;font-weight:800;border-radius:20px;padding:5px 9px;display:inline-block}.status.ON{background:#dcfce7;color:#15803d}.status.OFF{background:#fee2e2;color:#b91c1c}.status.DISABLED{background:#fef3c7;color:#a16207}.empty{text-align:center;color:#8b96a8;padding:25px}.foot{display:flex;justify-content:space-between;padding:12px 17px;color:#8994a5;font-size:10px;border-top:1px solid #edf1f6}
.history-count{font-size:10px;color:#718096;background:#f1f5f9;padding:5px 9px;border-radius:20px}.event-list{padding:0 20px 15px;max-height:360px;overflow:auto}.event{display:flex;align-items:center;gap:12px;padding:10px 0;border-top:1px solid #f0f2f6}.dot{width:8px;height:8px;flex:none;border-radius:50%;background:#ef4444}.dot.ON{background:#10b981}.dot.DISABLED{background:#f59e0b}.event b{font-size:11px}.event small{display:block;color:#8a95a6;font-size:10px}
footer{text-align:center;color:#a0a9b7;font-size:10px;letter-spacing:1px;padding:25px}footer span{padding:0 5px}
@media(max-width:850px){.overview-grid{grid-template-columns:1fr}.panel-head{align-items:flex-start;flex-direction:column}.filters{justify-content:flex-start;width:100%}.filters input{flex:1;min-width:150px}}
@media(max-width:600px){main{padding:21px 12px}.top{padding:10px 13px;gap:8px}.right{gap:6px;font-size:9px;flex-direction:column;align-items:flex-end}.intro{align-items:flex-start;gap:12px;flex-direction:column}h1{font-size:24px}.cards{grid-template-columns:repeat(2,1fr);gap:9px}.card{padding:13px}.card strong{font-size:27px}.health-content{gap:17px}.donut{width:112px;height:112px}.donut:before{inset:11px}.filters button{flex:1}.filters select{max-width:130px}.foot{gap:8px;flex-direction:column}.router-info{grid-template-columns:1fr 1fr}}

.name-link{padding:0;background:transparent;color:#087f68;border-radius:0;font:inherit;font-weight:800;text-decoration:underline;text-underline-offset:3px}.name-link:hover{filter:none;color:#065f46}
.rate-up,.rate-down{font-variant-numeric:tabular-nums;font-weight:700;color:#334155}
.queue-info{padding:8px 18px;background:#f0fdfa;color:#0f766e;font-size:10px;border-top:1px solid #ccfbf1}
.modal{position:fixed;inset:0;background:#0f172acc;z-index:20;display:grid;place-items:center;padding:18px}.modal.hidden{display:none}.modal-card{position:relative;width:min(620px,100%);background:white;border-radius:16px;padding:24px;box-shadow:0 20px 60px #0004}.modal-card h2{margin:0 0 18px;font-size:22px}.modal-close{position:absolute;right:15px;top:12px;background:#eef2f7;color:#334155;font-size:23px;padding:3px 11px}.detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.detail-item{padding:12px;background:#f8fafc;border:1px solid #edf1f6;border-radius:9px;min-width:0}.detail-item small,.detail-item b{display:block;overflow-wrap:anywhere}.detail-item small{color:#8290a3;font-size:10px;margin-bottom:5px}.detail-item b{font-size:12px}
@media(max-width:560px){.detail-grid{grid-template-columns:1fr}}
