:root{
    --bg:#0b1220;
    --panel:#111b2e;
    --panel2:#16223a;
    --text:#e8eefc;
    --muted:#8ea0c0;
    --line:rgba(255,255,255,.1);
    --blue:#5ab2ff;
    --green:#48d597;
    --red:#ff5570;
    --yellow:#ffd166;
}
*{box-sizing:border-box}
body{margin:0;background:radial-gradient(circle at top left,#17345f 0,#0b1220 38%,#070b14 100%);color:var(--text);font-family:Inter,Arial,sans-serif}
a{color:inherit;text-decoration:none}
.layout{display:flex;min-height:100vh}
.sidebar{width:250px;background:rgba(5,10,20,.72);border-right:1px solid var(--line);padding:22px;position:fixed;top:0;bottom:0;left:0}
.logo{display:flex;gap:12px;align-items:center;margin-bottom:28px}
.logo-mark{width:44px;height:44px;border-radius:14px;background:linear-gradient(135deg,#5ab2ff,#9b7bff);display:flex;align-items:center;justify-content:center;font-weight:800;font-size:22px}
.logo strong{display:block}
.logo span{display:block;color:var(--muted);font-size:12px;margin-top:3px}
.sidebar nav{display:grid;gap:8px}
.sidebar nav a{padding:12px 14px;border-radius:14px;color:var(--muted)}
.sidebar nav a.active,.sidebar nav a:hover{background:rgba(255,255,255,.08);color:var(--text)}
.content{margin-left:250px;padding:28px;width:calc(100% - 250px)}
.topbar{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:24px}
.topbar h1{margin:0 0 6px;font-size:30px}
.topbar p{margin:0;color:var(--muted)}
.live-indicator{display:flex;gap:8px;align-items:center;background:rgba(72,213,151,.1);border:1px solid rgba(72,213,151,.25);padding:10px 14px;border-radius:999px;color:#baffdc}
.live-indicator span{width:10px;height:10px;background:var(--green);border-radius:50%;box-shadow:0 0 12px var(--green)}
.stats-grid,.detail-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:20px}
.stat-card,.detail-card,.panel{background:rgba(17,27,46,.86);border:1px solid var(--line);border-radius:22px;box-shadow:0 18px 40px rgba(0,0,0,.25)}
.stat-card,.detail-card{padding:18px}
.stat-card span,.detail-card span{color:var(--muted);font-size:13px}
.stat-card strong,.detail-card strong{display:block;font-size:28px;margin-top:8px}
.detail-card small{display:block;color:var(--muted);margin-top:5px}
.panel{padding:20px;margin-bottom:20px}
.panel-header{display:flex;justify-content:space-between;gap:16px;align-items:center;margin-bottom:16px}
.panel-header h2{margin:0 0 6px}
.panel-header p{margin:0;color:var(--muted)}
.search{background:rgba(255,255,255,.08);border:1px solid var(--line);border-radius:14px;color:var(--text);padding:12px 14px;min-width:280px}
.table-wrap{overflow:auto}
.noc-table{width:100%;border-collapse:collapse;min-width:1000px}
.noc-table th,.noc-table td{padding:12px;border-bottom:1px solid var(--line);text-align:left;font-size:13px;vertical-align:top}
.noc-table th{color:#b7c7e8;background:rgba(255,255,255,.04)}
.noc-table.compact{min-width:800px}
.noc-table.compact th,.noc-table.compact td{font-size:12px;padding:10px}
.pill{display:inline-flex;padding:6px 10px;border-radius:999px;font-size:11px;font-weight:700}
.pill.online{background:rgba(72,213,151,.15);color:#9dffd0}
.pill.offline{background:rgba(255,85,112,.15);color:#ffb3bf}
.pill.unknown{background:rgba(255,209,102,.15);color:#ffe0a0}
.btn-small,button{border:0;border-radius:14px;padding:10px 14px;background:linear-gradient(135deg,#5ab2ff,#3977df);color:white;font-weight:700;cursor:pointer}
.btn-small:hover,button:hover{filter:brightness(1.08)}
.action-grid{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:16px}
.danger-btn{background:linear-gradient(135deg,#ff5570,#b4233b)}
.danger-btn.dark{background:linear-gradient(135deg,#7d1d2f,#2b0710)}
.warning-btn{background:linear-gradient(135deg,#ffd166,#ff9f1c);color:#1b1400}
.standard-box{display:grid;gap:6px;padding:14px;border:1px solid var(--line);border-radius:16px;background:rgba(255,255,255,.055);color:var(--muted)}
.standard-box strong{color:var(--text)}
.chart-wrap{height:360px}
.chart-wrap canvas{width:100%;height:100%;background:rgba(255,255,255,.025);border-radius:18px}
.meter-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:16px}
.meter-grid label{display:block;color:var(--muted);margin-bottom:8px}
.meter{height:12px;background:rgba(255,255,255,.08);border-radius:999px;overflow:hidden;margin-bottom:8px}
.meter span{display:block;height:100%;width:0;background:linear-gradient(90deg,#5ab2ff,#9b7bff);border-radius:999px}
.spec-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.spec-grid div{background:rgba(255,255,255,.04);border:1px solid var(--line);border-radius:16px;padding:14px}
.spec-grid span{display:block;color:var(--muted);font-size:12px;margin-bottom:6px}
.spec-grid strong{word-break:break-word}
.alerts-list{display:grid;gap:10px}
.alert-row{display:flex;justify-content:space-between;gap:12px;border:1px solid var(--line);background:rgba(255,255,255,.04);border-radius:16px;padding:14px}
.alert-row strong{display:block}
.alert-row p{margin:4px 0 0;color:var(--muted)}
.alert-row span{color:var(--muted);font-size:12px;white-space:nowrap}
.alert-row.critical{border-color:rgba(255,85,112,.4)}
.alert-row.warning{border-color:rgba(255,209,102,.4)}
.empty{color:var(--muted);padding:10px}
.text-danger{color:#ff9aaa;font-weight:700}
.login-body{display:flex;align-items:center;justify-content:center;min-height:100vh}
.login-card{width:420px;background:rgba(17,27,46,.92);border:1px solid var(--line);border-radius:24px;padding:28px;box-shadow:0 24px 70px rgba(0,0,0,.35)}
.login-card h1{margin:10px 0 6px}
.login-card p{color:var(--muted);margin:0 0 18px}
.login-card label{display:block;margin:14px 0 6px;color:var(--muted)}
.login-card input{width:100%;background:rgba(255,255,255,.08);border:1px solid var(--line);border-radius:14px;color:var(--text);padding:12px}
.login-card button{width:100%;margin-top:18px}
.login-error{background:rgba(255,85,112,.12);border:1px solid rgba(255,85,112,.3);color:#ffc2ca;padding:12px;border-radius:14px;margin-bottom:12px}
@media(max-width:900px){
    .sidebar{position:static;width:100%;height:auto}
    .layout{display:block}
    .content{margin-left:0;width:100%;padding:18px}
    .stats-grid,.detail-grid,.meter-grid,.spec-grid{grid-template-columns:1fr}
    .topbar,.panel-header{display:block}
    .search{min-width:0;width:100%;margin-top:12px}
}
.chart-legend {
    display: flex;
    gap: 18px;
    align-items: center;
    margin-top: 10px;
    margin-bottom: 14px;
    font-size: 13px;
    color: #cbd5e1;
}

.chart-legend span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-weight: 600;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    display: inline-block;
    box-shadow: 0 0 10px rgba(255,255,255,0.25);
}

.legend-dot.cpu {
    background: #4aa3ff;
}

.legend-dot.ram {
    background: #a78bfa;
}

.legend-dot.disk {
    background: #facc15;
}

.perf-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .2px;
}

.perf-normal {
    background: rgba(72, 213, 151, .15) !important;
    color: #9dffd0 !important;
    border: 1px solid rgba(72, 213, 151, .35);
}

.perf-warning {
    background: rgba(255, 209, 102, .16) !important;
    color: #ffe08a !important;
    border: 1px solid rgba(255, 209, 102, .40);
}

.perf-danger {
    background: rgba(255, 85, 112, .16) !important;
    color: #ff9aaa !important;
    border: 1px solid rgba(255, 85, 112, .45);
}

.meter span.perf-normal {
    background: linear-gradient(90deg, #48d597, #27b879) !important;
    border: 0;
}

.meter span.perf-warning {
    background: linear-gradient(90deg, #ffd166, #ff9f1c) !important;
    border: 0;
}

.meter span.perf-danger {
    background: linear-gradient(90deg, #ff5570, #b4233b) !important;
    border: 0;
}
.stat-filter {
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: .18s ease;
}

.stat-filter:hover {
    transform: translateY(-3px);
    border-color: rgba(90,178,255,.45);
    box-shadow: 0 18px 40px rgba(90,178,255,.12);
}

.stat-filter.active {
    border-color: rgba(90,178,255,.75);
    box-shadow: 0 0 0 1px rgba(90,178,255,.28), 0 18px 45px rgba(90,178,255,.13);
    background: linear-gradient(135deg, rgba(90,178,255,.13), rgba(17,27,46,.92));
}

.stat-filter small {
    display: block;
    margin-top: 7px;
    color: var(--muted);
    font-size: 11px;
}

.stat-filter.active::after {
    content: "";
    position: absolute;
    right: 16px;
    top: 16px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #5ab2ff;
    box-shadow: 0 0 14px #5ab2ff;
}

.warning-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 6px;
}

.warning-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .2px;
}

.warning-tag.offline {
    background: rgba(255,85,112,.16);
    color: #ff9aaa;
    border: 1px solid rgba(255,85,112,.45);
}

.warning-tag.ip {
    background: rgba(255,209,102,.16);
    color: #ffe08a;
    border: 1px solid rgba(255,209,102,.40);
}

.warning-tag.resource {
    background: rgba(255,145,77,.16);
    color: #ffc59f;
    border: 1px solid rgba(255,145,77,.40);
}

.warning-tag.ok {
    background: rgba(72,213,151,.15);
    color: #9dffd0;
    border: 1px solid rgba(72,213,151,.35);
}

tr.row-offline {
    background: rgba(255,85,112,.045);
}

tr.row-warning {
    background: rgba(255,209,102,.035);
}

.filter-info {
    margin: 0 0 14px;
    color: #b7c7e8;
    font-size: 13px;
}

.filter-info strong {
    color: #e8eefc;
}
.stat-filter {
    cursor: pointer !important;
    pointer-events: auto !important;
    user-select: none;
    position: relative;
    z-index: 5;
    transition: .18s ease;
}

.stat-filter * {
    pointer-events: none;
}

.stat-filter:hover {
    transform: translateY(-3px);
    border-color: rgba(90,178,255,.45);
    box-shadow: 0 18px 40px rgba(90,178,255,.12);
}

.stat-filter.active {
    border-color: rgba(90,178,255,.75);
    box-shadow: 0 0 0 1px rgba(90,178,255,.28), 0 18px 45px rgba(90,178,255,.13);
    background: linear-gradient(135deg, rgba(90,178,255,.13), rgba(17,27,46,.92));
}

.stat-filter small {
    display: block;
    margin-top: 7px;
    color: var(--muted);
    font-size: 11px;
}

.warning-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 6px;
}

.warning-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
}

.warning-tag.offline {
    background: rgba(255,85,112,.16);
    color: #ff9aaa;
    border: 1px solid rgba(255,85,112,.45);
}

.warning-tag.ip {
    background: rgba(255,209,102,.16);
    color: #ffe08a;
    border: 1px solid rgba(255,209,102,.40);
}

.warning-tag.resource {
    background: rgba(255,145,77,.16);
    color: #ffc59f;
    border: 1px solid rgba(255,145,77,.40);
}

tr.row-offline {
    background: rgba(255,85,112,.045);
}

tr.row-warning {
    background: rgba(255,209,102,.035);
}

/* Warning compact agar tabel tidak terlalu tinggi */
.warning-tags {
    display: none;
}

.warning-compact {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 10px;
    margin-top: 6px;
    color: #b9c8e8;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.4;
    max-width: 520px;
}

.warning-compact span {
    display: inline-flex;
    align-items: center;
}

.warning-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    margin-right: -4px;
}

.warning-dot.offline {
    background: #ff5570;
    box-shadow: 0 0 8px rgba(255,85,112,.6);
}

.warning-dot.ip {
    background: #ffd166;
    box-shadow: 0 0 8px rgba(255,209,102,.5);
}

.warning-dot.resource {
    background: #ff914d;
    box-shadow: 0 0 8px rgba(255,145,77,.5);
}

/* Supaya baris tidak terlalu tebal */
.noc-table td {
    vertical-align: middle;
}

tr.row-offline {
    background: rgba(255,85,112,.035) !important;
}

tr.row-warning {
    background: rgba(255,209,102,.025) !important;
}

/* Badge CPU/RAM/Disk dibuat lebih kecil dan rapi */
.perf-badge {
    min-width: 54px !important;
    padding: 4px 8px !important;
    font-size: 11px !important;
}

/* Kartu filter lebih soft */
.stat-filter.active {
    border-color: rgba(90,178,255,.55) !important;
    box-shadow: 0 0 0 1px rgba(90,178,255,.18), 0 12px 28px rgba(90,178,255,.08) !important;
}


.text-success {
    color: #9dffd0 !important;
}

.text-warning {
    color: #ffe08a !important;
}

.text-danger {
    color: #ff9aaa !important;
}

.detail-card small {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 11px;
}

#storageBody small {
    color: var(--muted);
}


.speedtest-btn {
    border: 0;
    border-radius: 14px;
    padding: 11px 14px;
    cursor: pointer;
    color: #07111f;
    background: linear-gradient(135deg, #5ab2ff, #9dffd0);
    font-weight: 900;
}

.speedtest-running {
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(90,178,255,.35);
    background: rgba(90,178,255,.08);
}

.speedtest-running span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}

.speedtest-loader {
    width: 36px;
    height: 36px;
    border: 4px solid rgba(255,255,255,.15);
    border-top-color: #5ab2ff;
    border-radius: 50%;
    animation: nocSpin 1s linear infinite;
}

@keyframes nocSpin {
    to { transform: rotate(360deg); }
}

.speed-download strong,
.speed-upload strong,
.speed-total strong {
    font-size: 25px;
}

.speed-total {
    border-color: rgba(157,255,208,.35) !important;
    background: linear-gradient(135deg, rgba(157,255,208,.10), rgba(17,27,46,.92));
}


.pwa-install-btn {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 9999;
    border: 0;
    border-radius: 999px;
    padding: 12px 16px;
    cursor: pointer;
    color: #07111f;
    background: linear-gradient(135deg, #5ab2ff, #9dffd0);
    font-weight: 900;
    box-shadow: 0 16px 42px rgba(0,0,0,.35);
}

@media (max-width: 768px) {
    .pwa-install-btn {
        right: 12px;
        bottom: 12px;
        padding: 11px 14px;
        font-size: 13px;
    }
}


/* Realtime Alert Dashboard */
.alert-filter-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 220px;
}

.alert-filter-wrap label {
    font-size: 12px;
    opacity: .75;
}

.alert-filter-wrap select {
    background: #0f1b2d;
    color: #eaf2ff;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 12px;
    padding: 10px 12px;
    outline: none;
}

.server-row-problem {
    background: rgba(255, 193, 7, .06);
}

.issue-mini {
    margin-top: 5px;
    display: inline-block;
    font-size: 10px;
    line-height: 1.2;
    color: #ffd166;
    max-width: 170px;
}

.realtime-alert-row {
    align-items: center;
}

.realtime-alert-row small {
    display: block;
    margin-top: 5px;
    opacity: .75;
}

.alert-right {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
    min-width: 130px;
}

.alert-right span {
    font-size: 11px;
    opacity: .7;
    text-transform: uppercase;
}

/* =========================================================
   NOC Dashboard Realtime - Rapi
   ========================================================= */

.noc-alert-filter {
    margin-top: 14px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.noc-alert-filter label {
    font-size: 12px;
    color: #9fb4d8;
    white-space: nowrap;
}

.noc-alert-filter select {
    min-width: 230px;
    background: #111827;
    color: #eaf2ff;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 10px;
    padding: 9px 12px;
    outline: none;
}

.noc-alert-list {
    margin-top: 8px;
    display: grid;
    gap: 12px;
}

.noc-alert-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.11);
    background: rgba(15, 23, 42, .78);
    box-shadow: 0 10px 24px rgba(0,0,0,.12);
}

.noc-alert-card.warning {
    border-color: rgba(251, 191, 36, .28);
    background: linear-gradient(90deg, rgba(251, 191, 36, .10), rgba(15, 23, 42, .72));
}

.noc-alert-card.critical {
    border-color: rgba(248, 113, 113, .32);
    background: linear-gradient(90deg, rgba(248, 113, 113, .10), rgba(15, 23, 42, .72));
}

.noc-alert-card.info {
    border-color: rgba(96, 165, 250, .26);
    background: linear-gradient(90deg, rgba(96, 165, 250, .08), rgba(15, 23, 42, .72));
}

.noc-alert-main {
    min-width: 0;
}

.noc-alert-titleline {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 7px;
    min-width: 0;
}

.noc-alert-titleline strong {
    color: #f8fbff;
    font-size: 14px;
    line-height: 1.25;
}

.noc-alert-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .02em;
    white-space: nowrap;
}

.noc-alert-badge.warning {
    color: #fde68a;
    background: rgba(251, 191, 36, .16);
    border: 1px solid rgba(251, 191, 36, .25);
}

.noc-alert-badge.critical {
    color: #fecaca;
    background: rgba(248, 113, 113, .15);
    border: 1px solid rgba(248, 113, 113, .26);
}

.noc-alert-badge.info {
    color: #bfdbfe;
    background: rgba(96, 165, 250, .13);
    border: 1px solid rgba(96, 165, 250, .22);
}

.noc-alert-branch {
    color: #ffffff;
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 4px;
}

.noc-alert-message {
    color: #aebdda;
    font-size: 13px;
    line-height: 1.35;
    margin-bottom: 7px;
}

.noc-alert-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.noc-alert-meta span {
    color: #94a3b8;
    font-size: 11px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.07);
    padding: 4px 7px;
    border-radius: 8px;
}

.noc-alert-action {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 82px;
}

.noc-detail-btn {
    white-space: nowrap;
    border-radius: 12px !important;
    padding: 9px 14px !important;
    font-weight: 700;
}

.noc-alert-empty {
    padding: 16px;
    color: #94a3b8;
    border: 1px dashed rgba(255,255,255,.16);
    border-radius: 14px;
    background: rgba(255,255,255,.03);
}

.noc-alert-empty.error,
.noc-error-row {
    color: #fecaca !important;
}

.noc-empty-row {
    color: #94a3b8;
    padding: 16px !important;
}

.noc-status-pill {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 11px;
    letter-spacing: .02em;
}

.noc-status-pill.online {
    color: #6ee7b7;
    background: rgba(16,185,129,.16);
    border: 1px solid rgba(16,185,129,.20);
}

.noc-status-pill.offline {
    color: #fecaca;
    background: rgba(239,68,68,.16);
    border: 1px solid rgba(239,68,68,.22);
}

.noc-row-issue {
    margin-top: 5px;
    max-width: 240px;
    color: #fbbf24;
    font-size: 10px;
    line-height: 1.25;
    white-space: normal;
}

.noc-row-problem {
    background: rgba(251, 191, 36, .035);
}

/* supaya tombol Install App tidak menutupi alert */
#installAppBtn,
.install-app-btn,
.pwa-install-btn,
button[id*="install"],
button[class*="install"] {
    z-index: 20 !important;
}

body {
    padding-bottom: 78px;
}

@media (max-width: 900px) {
    .noc-alert-card {
        grid-template-columns: 1fr;
    }

    .noc-alert-action {
        justify-content: flex-start;
    }

    .noc-alert-filter {
        align-items: flex-start;
        flex-direction: column;
    }

    .noc-alert-filter select {
        width: 100%;
    }
}

/* Klik card dashboard */
.noc-clickable-card {
    cursor: pointer;
    transition: .18s ease;
}

.noc-clickable-card:hover {
    transform: translateY(-1px);
    border-color: rgba(96, 165, 250, .55) !important;
    box-shadow: 0 10px 26px rgba(37, 99, 235, .16);
}

.noc-card-active {
    border-color: rgba(96, 165, 250, .85) !important;
    background: linear-gradient(135deg, rgba(59,130,246,.14), rgba(15,23,42,.88)) !important;
}

/* Tulisan issue kuning tetap ada class-nya, tapi JS hanya render saat Warning diklik */
.noc-row-issue {
    margin-top: 5px;
    max-width: 260px;
    color: #fbbf24;
    font-size: 10px;
    line-height: 1.25;
    white-space: normal;
}

.noc-row-problem {
    background: rgba(251, 191, 36, .035);
}

/* Klik card dashboard */
.noc-clickable-card {
    cursor: pointer;
    transition: .18s ease;
}

.noc-clickable-card:hover {
    transform: translateY(-1px);
    border-color: rgba(96, 165, 250, .55) !important;
    box-shadow: 0 10px 26px rgba(37, 99, 235, .16);
}

.noc-card-active {
    border-color: rgba(96, 165, 250, .85) !important;
    background: linear-gradient(135deg, rgba(59,130,246,.14), rgba(15,23,42,.88)) !important;
}

/* Tulisan issue kuning tetap ada class-nya, tapi JS hanya render saat Warning diklik */
.noc-row-issue {
    margin-top: 5px;
    max-width: 260px;
    color: #fbbf24;
    font-size: 10px;
    line-height: 1.25;
    white-space: normal;
}

.noc-row-problem {
    background: rgba(251, 191, 36, .035);
}

/* =========================================================
   Warna CPU / RAM / Disk / Uptime Dashboard
   ========================================================= */

.noc-metric-value,
.noc-uptime-value {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 62px;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
}

.noc-metric-value.normal,
.noc-uptime-value.normal {
    color: #dbeafe;
    background: rgba(148, 163, 184, .10);
    border: 1px solid rgba(148, 163, 184, .18);
}

.noc-metric-value.warning {
    color: #fde68a;
    background: rgba(251, 191, 36, .18);
    border: 1px solid rgba(251, 191, 36, .35);
    box-shadow: 0 0 0 1px rgba(251, 191, 36, .08);
}

.noc-metric-value.danger,
.noc-uptime-value.danger {
    color: #fecaca;
    background: rgba(239, 68, 68, .20);
    border: 1px solid rgba(239, 68, 68, .45);
    box-shadow: 0 0 0 1px rgba(239, 68, 68, .10);
}

.noc-metric-value.empty {
    color: #94a3b8;
    background: transparent;
    border: 1px solid rgba(148, 163, 184, .12);
}

/* =========================================================
   PERBAIKAN SEMUA DROPDOWN NOC
   ========================================================= */

html {
    color-scheme: dark;
}

/* Dropdown native */
select,
.form-select,
.form-control[type="select"],
.noc-select {
    width: 100%;
    min-height: 42px;
    padding: 9px 38px 9px 12px;

    color: #e8eefc !important;
    background-color: #172238 !important;

    border: 1px solid #34425d !important;
    border-radius: 10px !important;

    font-family: inherit;
    font-size: 14px;
    font-weight: 500;

    outline: none;
    cursor: pointer;

    color-scheme: dark;

    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    background-image:
        linear-gradient(45deg, transparent 50%, #9fb3d9 50%),
        linear-gradient(135deg, #9fb3d9 50%, transparent 50%);
    background-position:
        calc(100% - 18px) 50%,
        calc(100% - 13px) 50%;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;

    transition:
        border-color .18s ease,
        box-shadow .18s ease,
        background-color .18s ease;
}

select:hover,
.form-select:hover,
.noc-select:hover {
    border-color: #4f72a8 !important;
    background-color: #1b2942 !important;
}

select:focus,
.form-select:focus,
.noc-select:focus {
    border-color: #60a5fa !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .18) !important;
    background-color: #1b2942 !important;
}

/* Isi pilihan native */
select option,
select optgroup {
    color: #e8eefc !important;
    background-color: #172238 !important;
    font-size: 14px;
    padding: 10px;
}

select option:checked {
    color: #ffffff !important;
    background-color: #2563d8 !important;
}

select option:disabled {
    color: #71809d !important;
    background-color: #111a2b !important;
}

/* Dropdown disabled */
select:disabled,
.form-select:disabled,
.noc-select:disabled {
    color: #7f8da8 !important;
    background-color: #111a2b !important;
    border-color: #27334a !important;
    cursor: not-allowed;
    opacity: .75;
}

/* Multiple select */
select[multiple] {
    min-height: 120px;
    padding-right: 12px;
    background-image: none;
}

select[multiple] option {
    padding: 9px 10px;
    border-radius: 6px;
    margin-bottom: 2px;
}

/* Ukuran dropdown di tabel/form */
table select,
.noc-table select {
    min-width: 125px;
    min-height: 36px;
    padding-top: 6px;
    padding-bottom: 6px;
    font-size: 13px;
}

/* Select2 */
.select2-container {
    width: 100% !important;
}

.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
    min-height: 42px !important;
    color: #e8eefc !important;
    background: #172238 !important;
    border: 1px solid #34425d !important;
    border-radius: 10px !important;
}

.select2-container--default
.select2-selection--single
.select2-selection__rendered {
    color: #e8eefc !important;
    line-height: 40px !important;
    padding-left: 12px !important;
}

.select2-container--default
.select2-selection--single
.select2-selection__arrow {
    height: 40px !important;
}

.select2-container--default
.select2-selection--multiple
.select2-selection__choice {
    color: #dbeafe !important;
    background: #263a5d !important;
    border: 1px solid #3f5c8d !important;
    border-radius: 7px !important;
}

.select2-dropdown {
    color: #e8eefc !important;
    background: #172238 !important;
    border: 1px solid #34425d !important;
    border-radius: 10px !important;
    overflow: hidden;
    box-shadow: 0 16px 32px rgba(0, 0, 0, .35);
}

.select2-container--default
.select2-results__option {
    color: #e8eefc !important;
    background: #172238 !important;
    padding: 9px 12px !important;
}

.select2-container--default
.select2-results__option--highlighted[aria-selected] {
    color: #ffffff !important;
    background: #2563d8 !important;
}

.select2-container--default
.select2-results__option[aria-selected="true"] {
    color: #ffffff !important;
    background: #1d4e9f !important;
}

.select2-search--dropdown {
    background: #111a2b !important;
    padding: 8px !important;
}

.select2-container--default
.select2-search--dropdown
.select2-search__field {
    color: #e8eefc !important;
    background: #172238 !important;
    border: 1px solid #34425d !important;
    border-radius: 8px !important;
    outline: none !important;
}

/* Filter alert */
#alertTypeFilter {
    min-width: 230px;
    width: auto;
}

/* Placeholder untuk dropdown */
select:invalid {
    color: #8493ad !important;
}


/* =========================================================
   SORT TABEL NOC
   ========================================================= */

.noc-sortable-table thead th.sort-enabled {
    position: relative;
    padding-right: 27px;
    cursor: pointer;
    user-select: none;
    transition:
        color .18s ease,
        background-color .18s ease;
}

.noc-sortable-table thead th.sort-enabled:hover {
    color: #ffffff;
    background: rgba(59, 130, 246, .12);
}

.noc-sortable-table thead th.sort-enabled::after {
    content: "↕";
    position: absolute;
    right: 9px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 12px;
    opacity: .85;
}

.noc-sortable-table thead th.sort-asc::after {
    content: "▲";
    color: #60a5fa;
}

.noc-sortable-table thead th.sort-desc::after {
    content: "▼";
    color: #60a5fa;
}

.noc-sortable-table thead th.sort-asc,
.noc-sortable-table thead th.sort-desc {
    color: #bfdbfe;
    background: rgba(59, 130, 246, .10);
}

.noc-sortable-table thead th.sort-disabled {
    cursor: default;
}


/* =========================================================
   AGENT METRICS INTERVAL
   ========================================================= */
.noc-user-box {
    margin-top: 22px;
    padding: 12px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 14px;
    color: #8ea0c0;
    font-size: 12px;
}

.noc-user-box strong {
    color: #e8eefc;
}

.interval-toolbar {
    display: flex;
    align-items: end;
    gap: 12px;
    flex-wrap: wrap;
}

.interval-toolbar label {
    display: grid;
    gap: 7px;
    color: #9fb0ce;
    font-size: 13px;
}

.interval-input-wrap,
.interval-detail-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.interval-input-wrap input,
.interval-detail-control input {
    width: 125px;
    min-height: 42px;
    padding: 9px 12px;
    color: #e8eefc;
    background: #172238;
    border: 1px solid #34425d;
    border-radius: 10px;
    outline: none;
}

.interval-input-wrap input:focus,
.interval-detail-control input:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(59,130,246,.18);
}

.interval-toolbar .search {
    margin-left: auto;
    min-width: 260px;
}

.interval-notice,
.interval-message {
    margin-top: 14px;
    padding: 11px 13px;
    border-radius: 10px;
    font-size: 13px;
}

.interval-notice {
    color: #cbd5e1;
    background: rgba(59,130,246,.10);
    border: 1px solid rgba(96,165,250,.25);
}

.interval-message.success {
    color: #bbf7d0;
    background: rgba(34,197,94,.10);
    border: 1px solid rgba(34,197,94,.28);
}

.interval-message.error {
    color: #fecaca;
    background: rgba(239,68,68,.10);
    border: 1px solid rgba(239,68,68,.28);
}

.interval-stats-grid {
    margin-top: 16px;
}

.interval-table input[type="checkbox"] {
    width: 17px;
    height: 17px;
    accent-color: #3b82f6;
}

.interval-status,
.noc-interval-value {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.interval-status.active,
.noc-interval-value.active {
    color: #86efac;
    background: rgba(34,197,94,.12);
    border: 1px solid rgba(34,197,94,.28);
}

.interval-status.pending,
.noc-interval-value.waiting {
    color: #fde68a;
    background: rgba(245,158,11,.12);
    border: 1px solid rgba(245,158,11,.28);
}

.interval-status.different,
.noc-interval-value.different {
    color: #fca5a5;
    background: rgba(239,68,68,.12);
    border: 1px solid rgba(239,68,68,.28);
}

.interval-status.waiting {
    color: #bfdbfe;
    background: rgba(59,130,246,.12);
    border: 1px solid rgba(59,130,246,.28);
}

.interval-status.excluded {
    color: #94a3b8;
    background: rgba(100,116,139,.12);
    border: 1px solid rgba(100,116,139,.28);
}

.interval-detail-control {
    flex-wrap: wrap;
}

.interval-detail-control label {
    color: #9fb0ce;
    font-weight: 700;
}

@media (max-width: 800px) {
    .interval-toolbar {
        align-items: stretch;
    }

    .interval-toolbar > *,
    .interval-toolbar .search {
        width: 100%;
        margin-left: 0;
    }

    .interval-input-wrap input {
        flex: 1;
        width: auto;
    }
}

/* BEGIN NOC SIDEBAR ADMIN */

.sidebar {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding: 22px 20px;
    z-index: 100;
}

.sidebar .logo {
    flex: 0 0 auto;
    margin-bottom: 24px;
}

.sidebar .logo-copy {
    min-width: 0;
}

.sidebar .logo-copy strong,
.sidebar .logo-copy span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-nav {
    display: flex !important;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 18px !important;
    min-height: 0;
}

.sidebar-nav-group {
    display: grid;
    gap: 6px;
}

.sidebar-nav-account {
    margin-top: auto;
}

.sidebar-nav-title {
    display: block;
    padding: 0 12px 5px;
    color: rgba(142, 160, 192, .72);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.sidebar nav a.sidebar-link {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 42px;
    padding: 11px 12px;
    border: 1px solid transparent;
    border-radius: 13px;
    color: var(--muted);
    line-height: 1.25;
    transition:
        background .18s ease,
        border-color .18s ease,
        color .18s ease;
}

.sidebar nav a.sidebar-link:hover {
    border-color: rgba(255, 255, 255, .07);
    background: rgba(255, 255, 255, .055);
    color: var(--text);
}

.sidebar nav a.sidebar-link.active {
    border-color: rgba(90, 178, 255, .16);
    background:
        linear-gradient(
            135deg,
            rgba(90, 178, 255, .16),
            rgba(155, 123, 255, .10)
        );
    color: #fff;
    box-shadow:
        inset 0 0 0 1px
        rgba(255, 255, 255, .025);
}

.sidebar-link-icon {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 999px;
    background: rgba(142, 160, 192, .55);
    box-shadow:
        0 0 0 4px
        rgba(142, 160, 192, .06);
}

.sidebar-link.active .sidebar-link-icon {
    background: var(--blue);
    box-shadow:
        0 0 12px
        rgba(90, 178, 255, .78);
}

.sidebar-link-logout:hover .sidebar-link-icon {
    background: var(--red);
    box-shadow:
        0 0 12px
        rgba(255, 85, 112, .55);
}

.noc-user-box {
    flex: 0 0 auto;
    display: grid;
    gap: 5px;
    margin-top: 20px;
    padding: 13px 14px;
    border:
        1px solid
        rgba(255, 255, 255, .10);
    border-radius: 14px;
    background:
        rgba(255, 255, 255, .025);
    overflow: hidden;
}

.noc-user-label {
    color: var(--muted);
    font-size: 10px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.noc-user-name {
    overflow: hidden;
    color: var(--text);
    font-size: 13px;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.noc-user-role {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #b7c7e8;
    font-size: 11px;
}

.noc-user-role-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: var(--green);
    box-shadow:
        0 0 9px
        rgba(72, 213, 151, .7);
}

@media (max-width: 900px) {
    .sidebar {
        max-height: none;
    }

    .sidebar-nav-account {
        margin-top: 0;
    }
}

/* END NOC SIDEBAR ADMIN */

/* BEGIN NOC DASHBOARD STORAGE HEALTH V1 */

.disk-health-column {
    min-width: 105px;
    text-align: center !important;
}

.noc-storage-health {
    display: inline-flex;
    min-width: 82px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 7px 9px;
    border: 1px solid transparent;
    border-radius: 11px;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: .04em;
    white-space: nowrap;
}

.noc-storage-health strong {
    font-size: 10px;
    line-height: 1;
}

.noc-storage-health small {
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    opacity: .9;
}

.noc-storage-health.passed {
    border-color: rgba(72, 213, 151, .25);
    background: rgba(72, 213, 151, .10);
    color: #48d597;
}

.noc-storage-health.warning {
    border-color: rgba(247, 201, 72, .27);
    background: rgba(247, 201, 72, .11);
    color: #f7c948;
}

.noc-storage-health.critical {
    border-color: rgba(255, 107, 129, .28);
    background: rgba(255, 107, 129, .11);
    color: #ff6b81;
}

.noc-storage-health.unknown {
    border-color: rgba(142, 160, 192, .20);
    background: rgba(142, 160, 192, .08);
    color: #8ea0c0;
}

/* END NOC DASHBOARD STORAGE HEALTH V1 */
