/* ==============================================================================
   THEME: PEYCELL NMS - EDITORIAL DESIGN SYSTEM (SAAS DASHBOARD)
   Author: PEYCELL GROUP (https://peycell.com)
   Contact / WhatsApp: 089655573564
   Copyright (c) 2026 PEYCELL GROUP (peycell.com). All rights reserved.
   ============================================================================== */

@import url('/static/css/tokens.css');

/* ==============================================================================
   EDITORIAL DESIGN SYSTEM - MASTER DESIGN TOKENS
   Modern Clean Dashboard System
   ============================================================================== */

/* ==============================================================================
   MASTER DESIGN SYSTEM MAPPING
   Inherits pure tokens directly from tokens.css (Neutral Soft Slate & Midnight Slate)
   ============================================================================== */

:root {
    --text-main: var(--text-primary);
    --text-body: var(--text-secondary);
    --input-bg: var(--bg-card-subtle);
    --input-border: var(--border);
    --input-focus-border: var(--accent);
    --table-head-bg: var(--bg-card-subtle);
    --table-head-text: var(--text-muted);
    --table-row-hover: var(--bg-hover);
    --table-border: var(--border);
    --modal-bg: var(--bg-card);
    --modal-header-bg: var(--bg-card-subtle);
    --modal-border: var(--border);
    --shadow-card: var(--shadow-sm);
    --shadow-dropdown: var(--shadow-lg);
    --border-subtle: var(--border);
    --border-focus: var(--accent);
    --scrollbar-thumb: var(--border);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: var(--font-main);
}

body {
    background: var(--bg-body);
    color: var(--text-main);
    height: 100vh;
    display: flex;
    overflow: hidden;
}

.sidebar {
    width: 260px;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border) !important;
    display: flex;
    flex-direction: column;
    padding: 24px 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    overflow-x: hidden;
}

.brand-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 16px !important;
    margin-bottom: 20px !important;
    border-bottom: 1px solid var(--border) !important;
}

.sidebar .menu-label {
    margin-left: 16px !important;
    margin-right: 16px !important;
}

.sidebar .menu-item {
    margin-left: 16px !important;
    margin-right: 16px !important;
}

.sidebar .menu-danger {
    margin-left: 16px !important;
    margin-right: 16px !important;
    margin-bottom: 16px !important;
}

.sidebar .lic-badge {
    margin-left: 16px !important;
    margin-right: 16px !important;
}

/* Custom Scrollbar for Sidebar */
.sidebar::-webkit-scrollbar {
    width: 4px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 10px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

.brand {
    font-size: 20px;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 30px;
    letter-spacing: 0.8px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.brand-text {
    transition: opacity 0.3s, transform 0.3s, width 0.3s;
    white-space: nowrap;
    overflow: hidden;
}

.desktop-only {
    display: flex !important;
}

.menu-label {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 8px;
    font-weight: 800;
    margin-top: 14px;
    letter-spacing: 1.2px;
    padding-left: 8px;
    opacity: 0.6;
}

.menu-item {
    padding: 10px 14px;
    margin-bottom: 4px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    transition: background 0.15s ease, color 0.15s ease;
    user-select: none;
    text-decoration: none;
    display: flex;
    align-items: center;
    border-left: 3px solid transparent;
    box-shadow: none !important;
}

.menu-item i {
    font-size: 14px;
    width: 20px;
    margin-right: 10px;
    transition: color 0.15s ease;
}

.menu-item:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    box-shadow: none !important;
}

.menu-item.active {
    background: var(--accent-subtle) !important;
    color: var(--text-primary) !important;
    font-weight: 700;
    border-left: 3px solid var(--accent) !important;
    box-shadow: none !important;
}

.menu-item.active i {
    color: var(--accent-text, var(--accent)) !important;
}

.menu-danger {
    color: var(--danger);
    margin-top: auto;
    border: 1px dashed var(--danger-border);
    background: var(--danger-subtle);
    justify-content: center;
    border-radius: 10px;
    font-weight: 700;
}

.menu-danger:hover {
    background: var(--danger) !important;
    color: white !important;
    border-color: var(--danger);
}

.main {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
    overflow-x: auto;
}

/* Compatibility for pages using .main-content */
.main-content {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
}

.header {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 25px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 15px;
    padding-left: 10px;
}

.header::before {
    content: '';
    display: block;
    width: 4px;
    height: 24px;
    background: var(--accent);
    border-radius: 4px;
}

/* ==============================================================================
   LIVE CLOCK
   ============================================================================== */
.dash-clock {
    background: var(--bg-card-subtle);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 3px 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 28px;
    font-family: var(--font-main);
    font-variant-numeric: tabular-nums;
    font-size: 11px;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.dash-clock i {
    color: var(--accent);
    font-size: 11px;
    animation: clock-pulse 2s infinite;
}

#clockTime {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.3px;
}

@keyframes clock-pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

@media (max-width: 768px) {
    .dash-clock {
        padding: 2px 7px;
        font-size: 10.5px;
        height: 26px;
    }
    #clockTime {
        font-size: 10.5px;
    }
}


.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-card);
    color: var(--text-main);
}

.grid {
    display: grid;
    gap: 16px;
}

.grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-1 {
    grid-template-columns: 1fr;
}

.stat-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.stat {
    background: var(--bg-card-subtle);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px;
}

.stat-k {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 700;
    letter-spacing: 0.4px;
}

.stat-v {
    font-size: 22px;
    font-weight: 800;
    margin-top: 8px;
    color: var(--text-main);
}

.card-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.card-title h3 {
    font-size: 13px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--text-main);
}

.muted {
    color: var(--text-muted);
}

.list {
    margin-top: 6px;
    display: grid;
    gap: 8px;
}

.li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-main);
}

.li span:first-child {
    color: var(--text-muted);
}

.bar {
    height: 10px;
    border-radius: 999px;
    background: var(--bg-card-subtle);
    overflow: hidden;
    border: 1px solid var(--border);
}

.bar>div {
    height: 100%;
    width: 0%;
    background: var(--accent);
    border-radius: 999px;
    transition: width 0.3s;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--bg-card-subtle);
    color: var(--text-main);
}

.badge.ok {
    border-color: var(--success-border);
    background: var(--success-subtle);
    color: var(--success);
}

.badge.warn {
    border-color: var(--warning-border);
    background: var(--warning-subtle);
    color: var(--warning);
}

.badge.bad {
    border-color: var(--danger-border);
    background: var(--danger-subtle);
    color: var(--danger);
}

.logs {
    display: grid;
    gap: 8px;
}

.log-item {
    padding: 10px 12px;
    border-radius: 10px;
    background: var(--bg-card-subtle);
    border: 1px solid var(--border);
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--text-main);
}

.log-item .t {
    color: var(--text-muted);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 12px;
    white-space: nowrap;
}

.log-item .m {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.log-item .s {
    font-weight: 800;
    font-size: 11px;
    letter-spacing: 0.3px;
}

.row {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.row.space {
    justify-content: space-between;
}

.input {
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    color: var(--text-main);
    padding: 10px 12px;
    border-radius: 8px;
    outline: none;
    width: 100%;
    font-size: 13px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.input:focus {
    border-color: var(--input-focus-border);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.select {
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    color: var(--text-main);
    padding: 10px 12px;
    border-radius: 8px;
    outline: none;
    font-size: 13px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.select:focus {
    border-color: var(--input-focus-border);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

select,
option {
    color: var(--text-main);
}

option {
    background: var(--bg-card);
    color: var(--text-main);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 13px;
    padding: 9px 18px;
    border-radius: 8px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.3px;
    line-height: 1.4;
    text-decoration: none;
}

.btn-sm {
    padding: 7px 14px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg-card-subtle);
    color: var(--text-main);
    cursor: pointer;
    font-weight: 600;
    font-size: 12px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn-sm:hover {
    background: var(--bg-card-hover);
    border-color: var(--border);
}

.btn-accent,
.btn-primary {
    background: var(--accent);
    border: 1px solid var(--accent);
    color: var(--accent-contrast) !important;
    font-weight: 600;
    box-shadow: 0 2px 8px var(--accent-glow);
    cursor: pointer;
}

.btn-accent:hover,
.btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--accent-glow);
}

.btn-secondary {
    background: var(--bg-card-subtle);
    border: 1px solid var(--border);
    color: var(--text-main) !important;
    font-weight: 600;
    cursor: pointer;
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--border);
}

.btn-danger {
    background: var(--danger);
    border: 1px solid var(--danger);
    color: #ffffff !important;
    font-weight: 600;
    cursor: pointer;
}

.btn-danger:hover {
    filter: brightness(1.1);
}

.btn-xs {
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--bg-card-subtle);
    color: var(--text-main);
    cursor: pointer;
    font-weight: 600;
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn-xs:hover {
    background: var(--bg-card-hover);
    border-color: var(--border);
}

/* Tombol SUDAH BAYAR */
.btn-done {
    background: var(--bg-card-subtle);
    border: 1px solid var(--border);
    color: var(--text-muted);
    cursor: default;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
}

.btn-done:hover {
    filter: none;
    background: var(--bg-card-subtle);
}

.table-wrap,
.table-container {
    overflow: auto;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
    background: var(--bg-card);
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 650px;
}

th,
td {
    padding: 13px 16px;
    border-bottom: 1px solid var(--table-border);
    font-size: 13px;
    text-align: left;
    color: var(--text-main);
}

th {
    position: sticky;
    top: 0;
    background: var(--table-head-bg);
    color: var(--table-head-text);
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border-bottom: 1px solid var(--border);
    z-index: 10;
}

tr:hover td {
    background: var(--table-row-hover);
    transition: all 0.2s ease;
}

.td-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 50px;
    background: var(--bg-card-subtle);
    border: 1px solid var(--border);
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-main);
}

.pill.green {
    background: var(--success-subtle);
    border-color: var(--success-border);
    color: var(--success);
}

.pill.red {
    background: var(--danger-subtle);
    border-color: var(--danger-border);
    color: var(--danger);
}

.pill.purple {
    background: rgba(168, 85, 247, 0.12);
    border-color: rgba(168, 85, 247, 0.3);
    color: #c084fc;
}

.tabs {
    display: flex;
    gap: 10px;
    align-items: center;
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
    margin-bottom: 18px;
    overflow-x: auto;
}

.tab {
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    color: var(--text-muted);
    border: 1px solid var(--border);
    background: var(--bg-card-subtle);
    font-weight: 600;
    font-size: 13px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.tab:hover {
    color: var(--text-main);
    background: var(--bg-card-hover);
}

.tab.active {
    color: var(--accent-contrast) !important;
    background: var(--accent) !important;
    border-color: var(--accent) !important;
    box-shadow: 0 2px 8px var(--accent-glow);
}

.cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.card-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px;
    box-shadow: var(--shadow-card);
    color: var(--text-main);
}

.card-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
}

.hidden {
    display: none !important;
}

.card-head b {
    font-size: 13px;

}


/* Fix Time Input Icon & Width */
#bk-time {
    color-scheme: dark;
    width: auto;
    min-width: 150px;
    cursor: pointer;
}

/* ==============================================================================
   BASE CARD
   ============================================================================== */
.dash-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 20px;
}

/* Row specifically for bottom cards to be 50:50 on Desktop */
.dash-row.split-2 {
    grid-template-columns: repeat(2, 1fr);
}

/* Row for split 60:40 on Desktop (3fr 2fr) */
.dash-row.split-3-2 {
    grid-template-columns: 3fr 2fr;
}

/* Optimize for 1366px and similar (Laptops) */
@media (max-width: 1440px) {
    .dash-row {
        grid-template-columns: repeat(3, 1fr);
    }
    .dash-row.split-3-2 {
        grid-template-columns: 3fr 2fr;
    }
}

/* Tablet / Medium Screens: 2 per row */
@media (max-width: 1200px) {

    .dash-row,
    .dash-row.split-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .dash-row.split-3-2 {
        grid-template-columns: 1fr;
    }
}

/* Mobile Screens: 1 per row */
@media (max-width: 768px) {

    .dash-row,
    .dash-row.split-2,
    .dash-row.split-3-2 {
        grid-template-columns: 1fr;
    }
}

.dash-col {
    min-width: 0;
    /* Critical for Grid/Flex overflow management */
    width: 100%;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-card);
    position: relative;
    color: var(--text-primary);
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
    transition: background-color var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}

/* ==============================================================================
   STAT BOX & GLOW VARIANTS
   ============================================================================== */
.stat-box {
    background: var(--bg-card-subtle);
    border-radius: 10px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border: 1px solid var(--border);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-box:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    border-color: var(--border-hover);
}

.glow-blue {
    border-color: rgba(59, 130, 246, 0.3);
    background: rgba(59, 130, 246, 0.05);
}

.glow-green {
    border-color: rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.05);
}

.glow-orange {
    border-color: rgba(245, 158, 11, 0.3);
    background: rgba(245, 158, 11, 0.05);
}

.glow-purple {
    border-color: rgba(139, 92, 246, 0.3);
    background: rgba(139, 92, 246, 0.05);
}

.glow-red {
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.05);
}

.sb-lbl {
    font-size: 10px;
    font-weight: 700;
    opacity: 0.6;
    letter-spacing: 1px;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.sb-val {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
}

/* ==============================================================================
   DONUT CHART
   ============================================================================== */
.donut-wrap {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto;
}

.donut-chart {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(#3b82f6 0% 0%, #334155 0% 100%);
    position: relative;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}

.donut-inner {
    position: absolute;
    inset: 15px;
    background: var(--bg-card);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

/* ==============================================================================
   PROGRESS BARS
   ============================================================================== */
.bar-group {
    margin-bottom: 12px;
}

.bar-head {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    margin-bottom: 4px;
    font-weight: 700;
    color: #94a3b8;
}

.bar-bg {
    background: rgba(255, 255, 255, 0.05);
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    width: 0%;
    border-radius: 3px;
    transition: width 0.5s ease;
    box-shadow: 0 0 8px currentColor;
}

.c-purple {
    background: #a855f7;
    color: #a855f7;
}

.c-pink {
    background: #ec4899;
    color: #ec4899;
}

.c-yellow {
    background: #eab308;
    color: #eab308;
}

.c-red {
    background: #ef4444;
    color: #ef4444;
}

.card-sub {
    color: var(--text-muted);
    font-size: 12px;
    margin-top: 3px;
}

.kv {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.kv .k {
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 900;
}

.kv .v {
    font-weight: 900;
}

.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.modal.show {
    display: flex;
}

.modal-box {
    width: 100%;
    max-width: 860px;
    background: var(--bg-card) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: 95vh;
    box-shadow: var(--shadow-lg);
}

.modal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.modal-head b {
    letter-spacing: 0.4px;
}

.modal-body {
    padding: 16px;
    overflow-y: auto;
    flex: 1;
}

.modal-close {
    cursor: pointer;
    color: var(--text-muted);
    font-weight: 900;
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg-card-subtle);
}

.modal-close:hover {
    color: var(--text-primary);
    border-color: var(--border);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.form-group {
    display: grid;
    gap: 8px;
}

.form-group label {
    font-size: 12px;
    font-weight: 900;
    color: var(--text-muted);
}

.hint {
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.4;
}

.radio-row {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.radio-row label {
    font-weight: 900;
    color: var(--text-main);
}

.warn-box {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(245, 158, 11, 0.25);
    background: rgba(245, 158, 11, 0.10);
    color: #fde68a;
    font-size: 12px;
}

.hidden {
    display: none !important;
}

#login-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-box {
    background: var(--bg-card);
    padding: 26px;
    border-radius: 12px;
    width: 300px;
    text-align: center;
    border: 1px solid var(--border);
    color: var(--text-primary);
    box-shadow: var(--shadow-lg);
}

.login-box h2 {
    margin-bottom: 16px;
    color: var(--accent);
    letter-spacing: 0.6px;
    font-size: 18px;
}

.login-box input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--input-bg);
    color: var(--text-primary);
    outline: none;
}

.login-box input:focus {
    border-color: rgba(59, 130, 246, 0.55);
}

.btn {
    width: 100%;
    padding: 10px 12px;
    border: none;
    border-radius: 8px;
    font-weight: 800;
    cursor: pointer;
    margin-top: 10px;
}

.btn-primary {
    background: var(--accent);
    color: white;
}

.btn-primary:hover {
    filter: brightness(1.05);
}

#loginMsg {
    color: var(--danger-text, #dc2626);
    margin-top: 10px;
    display: none;
    font-size: 12.5px;
    font-weight: 600;
}

[data-theme="dark"] #loginMsg {
    color: var(--danger-text, #f87171);
}

@media (max-width: 1024px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 980px) {
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .stat-row {
        grid-template-columns: 1fr;
    }

    .sidebar {
        width: 220px;
        overflow-y: auto;
    }
}

/* ==============================================================================
   RESPONSIVE BREAKPOINTS (TABLET & MOBILE)
   ============================================================================== */
.mobile-head {
    display: none;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.mobile-brand {
    font-weight: 800;
    font-size: 16px;
    color: var(--accent);
    letter-spacing: 0.5px;
}

#btnToggle {
    background: none;
    border: none;
    font-size: 24px;
    color: white;
    cursor: pointer;
    padding: 5px;
}

.overlay-bg {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9990;
    backdrop-filter: blur(2px);
}

body.unlicensed-mode .btn-accent,
body.unlicensed-mode .btn-danger,
body.unlicensed-mode .btn-save,
body.unlicensed-mode button[onclick*="save"],
body.unlicensed-mode button[onclick*="add"],
body.unlicensed-mode button[onclick*="delete"],
body.unlicensed-mode button[onclick*="update"],
body.unlicensed-mode .input-group input,
body.unlicensed-mode .input-group select,
body.unlicensed-mode textarea,
body.unlicensed-mode input[type="file"],
body.unlicensed-mode .fa-trash,
body.unlicensed-mode .fa-edit {
    pointer-events: none !important;
    opacity: 0.4 !important;
    filter: grayscale(100%);
    cursor: not-allowed;
}

body.unlicensed-mode #licBadge {
    pointer-events: auto !important;
    opacity: 1 !important;
    cursor: pointer !important;
    filter: none !important;
}

/* ==============================================================================
   MOBILE LAYOUT OVERRIDES
   ============================================================================== */
@media (max-width: 768px) {
    body {
        flex-direction: column;
        overflow: auto;
        height: auto;
        min-height: 100vh;
    }

    .sidebar {
        position: fixed;
        left: -260px;
        height: 100vh;
        z-index: 9999;
        transition: 0.3s;
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.5);
        overflow-y: auto;
        overflow-x: hidden !important;
    }

    .sidebar.active {
        left: 0;
    }

    .overlay-bg.active {
        display: block;
    }

    .main {
        margin-left: 0;
        padding: 20px;
        /* Diizinkan geser horizontal jika konten tumpah */
        overflow-x: auto;
    }

    .main-content {
        flex: none;
        width: 100%;
        padding: 15px;
        padding-top: 20px;
        overflow-x: auto;
    }

    .grid-4,
    .grid-3,
    .form-row {
        grid-template-columns: 1fr !important;
    }

    .card {
        margin-bottom: 15px;
    }

    .table-wrap {
        overflow-x: auto;
        display: block;
        white-space: nowrap;
    }

    .table-container,
    .table-wrap {
        overflow-x: auto;
        display: block;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    table,
    .table {
        min-width: unset !important;
        width: 100% !important;
    }

    th,
    td {
        padding: 8px 5px !important;
        font-size: 11px !important;
        white-space: normal !important;
    }


    .mobile-head {
        display: flex;
    }

    .stat-row,
    .dash-row {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    .dash-col {
        width: 100% !important;
    }

    .cards {
        grid-template-columns: 1fr !important;
    }

    .header {
        display: flex;
    }



    /* Ensure Brand is visible in mobile sidebar */
    .brand-wrapper .brand-text,
    #brandText {
        display: inline-block !important;
        opacity: 1 !important;
        visibility: visible !important;
        width: auto !important;
        max-width: 100% !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    #trafficCanvas {
        height: auto !important;
        min-height: 200px;
    }

    /* Hide non-essential columns on mobile if needed, or stick to scrolling */

    .row.space {
        flex-wrap: wrap;
        gap: 10px;
    }

    /* Fix Graphs */
    canvas {
        max-width: 100%;
        height: auto !important;
    }
}

/* ==============================================================================
   MOBILE BUTTON OVERRIDES
   ============================================================================== */
@media (max-width: 768px) {

    .btn-block-mobile,
    .btn-full-mobile {
        width: 100%;
        max-width: 400px;
        margin: 8px auto;
        padding: 12px 16px;
        font-size: 13px;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 8px;
    }

    .btn-sm {
        padding: 6px 12px !important;
        font-size: 11px !important;
        width: auto !important;
        min-width: unset !important;
        margin: 0 !important;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        gap: 4px;
    }
}

/* ==============================================================================
   LEGACY STAT CARD STYLES
   ============================================================================== */
.stat-card-premium {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    color: var(--text-main);
    font-family: var(--font-main);
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
    box-shadow: var(--shadow-card);
}

.scp-header {
    font-size: 11px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.scp-client-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.scp-status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
}

.scp-status-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.scp-val-online {
    color: var(--success);
    font-weight: 900;
    font-size: 14px;
}

.scp-val-offline {
    color: var(--danger);
    font-weight: 900;
    font-size: 14px;
}

.scp-progress-bar {
    height: 8px;
    background: var(--bg-card-subtle);
    border-radius: 4px;
    overflow: hidden;
    margin: 4px 0;
}

.scp-progress-fill {
    height: 100%;
    background: var(--success);
    border-radius: 4px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scp-total-text {
    font-size: 11px;
    color: var(--text-main);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

.scp-divider {
    border-top: 1px dashed var(--border);
    margin: 20px 0;
}

.scp-inv-container {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    min-width: 0;
}

.scp-odp-container {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    min-width: 0;
}

.scp-donut-side {
    position: relative;
    width: 130px;
    height: 130px;
    flex-shrink: 1;
    min-width: 80px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.scp-donut-side:hover {
    transform: scale(1.06);
}

.scp-donut-segmented {
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    overflow: hidden;
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    mask-image: radial-gradient(white, black);
    transform: translateZ(0);
}

.scp-donut-segmented::after {
    content: "";
    position: absolute;
    inset: 15px;
    background: var(--bg-card);
    border-radius: 50%;
    z-index: 1;
    box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.08);
}

.scp-donut-inner {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 2;
}

.scp-donut-val {
    font-size: 19px !important;
    font-weight: 800;
    line-height: 1;
    color: var(--text-primary);
    font-family: var(--font-main);
    letter-spacing: -0.5px;
    font-variant-numeric: tabular-nums;
}

.scp-donut-lbl {
    font-size: 8px;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-top: 3px;
    letter-spacing: 0.5px;
}

.scp-inv-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    flex: 1;
}

.scp-inv-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.scp-inv-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
}

.scp-icon-box {
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

.scp-inv-val {
    color: var(--text-primary);
    font-weight: 800;
    font-family: var(--font-main);
    font-variant-numeric: tabular-nums;
    font-size: 12px;
}

.scp-cable-bar {
    margin-top: 30px !important;
    background: var(--bg-card-subtle);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stat-card,
.stat-card-premium {
    display: flex;
    flex-direction: column;
}

/* Ensure footer is at bottom */
.stat-card .scp-cable-bar,
.stat-card-premium .scp-cable-bar {
    margin-top: auto !important;
}

/* Guarantee 25px gap above the footer even if space is tight */
.stat-card>*:nth-last-child(2),
.stat-card-premium>*:nth-last-child(2) {
    margin-bottom: 25px !important;
}

.scp-cable-lbl {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    font-weight: 800;
    color: var(--text-primary);
    text-transform: uppercase;
}

.scp-cable-val {
    font-size: 15px;
    font-weight: 900;
    color: #d946ef;
}

/* Animations */
@keyframes scp-pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }

    100% {
        opacity: 1;
    }
}

.scp-dot-live {
    animation: scp-pulse 2s infinite;
}

@media (max-width: 768px) {

    /* Stack donut and legend vertically */
    .scp-inv-container,
    .scp-odp-container {
        flex-direction: column !important;
        align-items: center;
        justify-content: center;
        gap: 16px;
    }

    .scp-inv-list,
    .scp-fin-list,
    .scp-server-list,
    .scp-odp-list {
        width: 100%;
        min-width: unset;
    }

    .stat-card, .stat-card-premium {
        padding: 15px;
    }

    .scp-inv-item {
        font-size: 10px;
        gap: 8px;
    }

    .scp-header {
        margin-bottom: 12px;
    }

    .scp-cable-lbl {
        font-size: 10px;
    }

    .scp-server-val,
    .scp-fin-val {
        font-size: 10px;
        /* Reduced from 11px */
    }

    .scp-status-row {
        flex-wrap: wrap;
        /* Ensure progress bar labels don't push width */
        gap: 4px;
    }

    .scp-status-item {
        font-size: 9px;
    }

    .scp-fin-item {
        font-size: 9px;
        gap: 8px;
    }

    .scp-server-item,
    .scp-odp-kritis-item {
        gap: 8px;
    }
}

/* ==============================================================================
   UI UTILITY CLASSES
   ============================================================================== */
.mt-5 {
    margin-top: 5px;
}

.mt-10 {
    margin-top: 10px;
}

.mt-20 {
    margin-top: 20px;
}

.mb-8 {
    margin-bottom: 8px;
}

.mb-10 {
    margin-bottom: 10px;
}

.mb-12 {
    margin-bottom: 12px;
}

.mb-16 {
    margin-bottom: 16px;
}

.mb-20 {
    margin-bottom: 20px;
}

.pt-12 {
    padding-top: 12px;
}

.p-8 {
    padding: 8px;
}

.p-10 {
    padding: 10px;
}

.px-10 {
    padding-left: 10px;
    padding-right: 10px;
}

.d-block {
    display: block;
}

.d-flex {
    display: flex;
}

.d-inline-flex {
    display: inline-flex;
}

.d-none {
    display: none;
}

.pos-relative {
    position: relative;
}

.overflow-visible {
    overflow: visible;
}

.z-5 {
    z-index: 5;
}

.flex-1 {
    flex: 1;
}

.flex-col-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.flex-between-w100 {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.flex-between-center {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.flex-center-gap-5 {
    display: flex;
    align-items: center;
    gap: 5px;
}

.flex-center-gap-10 {
    display: flex;
    align-items: center;
    gap: 10px;
}

.flex-center-gap-15 {
    display: flex;
    gap: 15px;
    align-items: center;
}

.text-center {
    text-align: center;
}

.text-uppercase {
    text-transform: uppercase;
}

.text-huge {
    font-size: 28px;
    font-weight: 900;
}

.text-lg-bold {
    font-size: 18px;
    font-weight: 900;
}

.text-md-bold {
    font-size: 14px;
    font-weight: bold;
}

.text-sm-bold {
    font-size: 11px;
    font-weight: bold;
}

.text-xs-bold {
    font-size: 9px;
    font-weight: bold;
}

.text-xs-muted {
    font-size: 9px;
    opacity: 0.6;
}

.text-white {
    color: white;
}

.text-blue {
    color: #3b82f6;
}

.text-slate {
    color: #64748b;
}

.text-purple {
    color: #a855f7;
}

.text-green {
    color: #10b981;
}

.text-red {
    color: #ef4444;
}

.text-gray-dim {
    color: #aaa;
}

.bg-online {
    background: #10b981;
}

.bg-offline {
    background: #ef4444;
}

.bg-blue {
    background: #3b82f6;
}

.bg-indigo {
    background: #6366f1;
}

.bg-purple {
    background: #8b5cf6;
}

.bg-orange {
    background: #f97316;
}

.bg-cyan {
    background: #0ea5e9;
}

.bg-green-soft {
    background: #28a745;
}

.bg-red-soft {
    background: #dc3545;
}

.bg-dark-inner {
    background: var(--bg-card);
}

.stroke-bg-faint {
    stroke: var(--donut-track, var(--border));
}

.stroke-dash-indigo {
    stroke: #a855f7; /* High-vibrancy purple */
    filter: drop-shadow(0 0 5px rgba(168, 85, 247, 0.7));
    stroke-linecap: round;
    transition: stroke-dashoffset 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scp-donut-svg {
    filter: none;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.scp-donut-svg:hover {
    transform: scale(1.06);
}

.border-top-dashed {
    border-top: 1px dashed rgba(255, 255, 255, 0.05);
}

.border-top-dashed-1 {
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

/* Grid overrides */
.grid-2-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.icon-sq-8 {
    width: 8px;
    height: 8px;
    border-radius: 2px;
}

.login-branding {
    text-align: center;
    margin-bottom: 20px;
}

.login-title {
    margin: 0;
}

.no-underline {
    text-decoration: none;
}

.cursor-pointer {
    cursor: pointer;
}

.lic-badge {
    display: block;
    text-align: center;
    font-size: 10px;
    margin-bottom: 15px;
    padding: 4px 0;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 6px;
    text-decoration: none;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lic-badge.licensed {
    background: var(--success-subtle, rgba(21, 128, 61, 0.1)) !important;
    color: var(--success-text, #15803d) !important;
    border: 1px solid var(--border) !important;
}

[data-accent="monochrome"] .lic-badge.licensed {
    background: var(--accent-subtle) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border) !important;
}

.role-badge {
    font-size: 10.5px;
    font-weight: 700;
    border: 1px solid var(--border);
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    background: var(--bg-card-subtle);
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 28px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.ver-compact {
    display: none;
}

.ver-full {
    display: inline;
}

.update-alert {
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 3px 8px;
    height: 28px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: bold;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.dash-lang-badge,
.lang-badge {
    border: 1px solid var(--border);
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 700;
    color: var(--accent);
    background: var(--bg-card-subtle);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 28px;
}

.dash-refresh-badge {
    border: 1px solid var(--border);
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    color: var(--text-primary);
    background: var(--bg-card-subtle);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 28px;
}

.dash-refresh-badge select {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 11.5px;
    cursor: pointer;
    outline: none;
    padding: 0;
    margin: 0;
}

.lang-disp {
    color: var(--accent);
    font-weight: 800;
}

.backup-item {
    padding: 8px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.backup-name {
    font-weight: bold;
    color: var(--text-primary);
}

.backup-sub {
    font-size: 10px;
    color: #64748b;
}

.ver-status {
    font-weight: bold;
    opacity: 1;
    font-size: 9px;
}

.ver-ok {
    color: #10b981;
}

.ver-update {
    color: #3b82f6;
}

.fin-donut-wrap {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: conic-gradient(#28a745 0% 100%);
    position: relative;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    z-index: 5;
}

.fin-donut-inner {
    position: absolute;
    inset: 15px;
    background: var(--bg-card);
    border-radius: 50%;
}

/* ODP Card Split Layout */
.scp-odp-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 10px 0;
}

.scp-odp-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.scp-odp-kritis-header,
.noc-kritis-header {
    font-size: 10px;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.noc-kritis-feed {
    max-height: 160px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-right: 4px;
}

.scp-odp-kritis-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    padding: 3px 0;
}

.scp-dot-orange {
    width: 10px;
    height: 10px;
    background: #f59e0b;
    border-radius: 2px;
    flex-shrink: 0;
}

.scp-odp-stat-bar {
    margin-top: 15px;
    padding: 10px 15px;
    background: var(--bg-card-subtle);
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px dashed var(--border);
}

.scp-odp-stat-lbl {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 800;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.scp-odp-stat-val {
    font-size: 12px;
    font-weight: 900;
    color: #8b5cf6;
}

.scp-total-text {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Inventory Color Helpers */
.bg-blue {
    background: #3b82f6 !important;
}

.bg-online {
    background: #10b981 !important;
}

.bg-purple {
    background: #8b5cf6 !important;
}

.bg-orange {
    background: #f59e0b !important;
}

.bg-cyan {
    background: #06b6d4 !important;
}

.bg-indigo {
    background: #6366f1 !important;
}

.bg-tosca {
    background: #14b8a6 !important;
}

.bg-rose {
    background: #f43f5e !important;
}

.scp-icon-box {
    width: 10px;
    height: 10px;
    border-radius: 2px;
    flex-shrink: 0;
}

/* Finance Card specific */
.scp-fin-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.scp-fin-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
    font-weight: 700;
}

.scp-fin-label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #94a3b8;
    text-transform: uppercase;
    font-size: 11px;
}

.scp-fin-val {
    color: var(--text-primary);
    font-family: var(--font-main);
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    text-align: right;
}

.scp-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
    margin: 4px 0;
}

.scp-month-bar {
    margin-top: auto;
    background: var(--bg-card-subtle);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 13px;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: var(--font-main);
}

/* Server Card specific */
.scp-server-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.scp-server-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
    font-weight: 700;
}

.scp-server-label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #94a3b8;
    text-transform: uppercase;
    font-size: 11px;
}

.scp-server-val {
    color: var(--text-primary);
    font-family: var(--font-main);
    font-variant-numeric: tabular-nums;
    font-weight: 700;
}

/* Mikrotik Table Premium */
.scp-mikrotik-table {
    width: auto;
    min-width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
    margin-top: -10px;
}

.scp-mikrotik-table th {
    text-align: left;
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    padding: 6px 8px;
    letter-spacing: 0.5px;
}

.scp-mikrotik-row {
    background: var(--bg-card-subtle);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: transform 0.2s, background 0.2s, border-color 0.2s;
}

.scp-mikrotik-row:hover {
    background: var(--bg-hover);
    border-color: var(--border-subtle);
    transform: translateY(-1px);
}

.scp-mikrotik-row td {
    padding: 8px 10px;
    color: var(--text-primary);
    font-size: 11px;
    font-weight: 700;
}

.scp-mikrotik-row td:first-child {
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

.scp-mikrotik-row td:last-child {
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}

.scp-ident-cell {
    display: flex;
    align-items: center;
    gap: 6px;
    /* Closerr identity */
    max-width: 120px;
    overflow: hidden;
}

.scp-chip-icon {
    width: 28px;
    height: 28px;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 14px;
}

.scp-status-badge {
    padding: 2px 8px;
    /* Tighter badge */
    border-radius: 20px;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
}

.scp-traffic-box {
    display: flex;
    flex-direction: row;
    gap: 8px;
    font-size: 11px;
    align-items: center;
}

.scp-traffic-in {
    color: #10b981;
}

.scp-traffic-out {
    color: #3b82f6;
}

.scp-ping-box {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #14b8a6;
    font-size: 11px;
}

.text-host {
    color: var(--text-muted);
    font-weight: 600;
}

/* Logs specific */
.logs {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 5px;
}

.logs::-webkit-scrollbar {
    width: 4px;
}


.logs::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}


/* ==============================================================================
   SIDEBAR MINIMIZED STATE
   ============================================================================== */
body.sidebar-minimized {
    --sb-w: 68px;
}

/* Force Sidebar Width */
body.sidebar-minimized .sidebar {
    width: 68px !important;
    min-width: 68px !important;
    max-width: 68px !important;
    padding: 24px 0 !important;
    overflow-x: hidden !important;
}

/* Base Transition */
.sidebar,
.main,
.main-content,
.brand,
.brand-text {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hide menu label texts in minimized sidebar */
body.sidebar-minimized .sidebar .menu-label,
body.sidebar-minimized .sidebar .menu-item span,
body.sidebar-minimized .sidebar .menu-item .fa-chevron-right,
body.sidebar-minimized .sidebar .menu-danger span,
body.sidebar-minimized .sidebar .menu-item .badge {
    display: none !important;
}

body.sidebar-minimized .sidebar .brand .brand-text {
    display: none !important;
}

body.sidebar-minimized .sidebar .brand {
    padding: 0 !important;
    justify-content: center !important;
    margin-bottom: 25px !important;
}

body.sidebar-minimized .sidebar .brand button {
    margin: 0 !important;
    width: 44px !important;
    height: 44px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.08) !important;
    border: 1px solid rgba(59, 130, 246, 0.2) !important;
    border-radius: 12px !important;
    color: #3b82f6 !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

/* Minimized Sidebar - License Badge Positioning */
body.sidebar-minimized .sidebar .lic-badge {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    padding: 0 !important;
    margin: 10px auto !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 12px !important;
    overflow: hidden !important;
    font-size: 0.1px !important;
    color: transparent !important;
    white-space: nowrap;
    position: relative !important;
    opacity: 1 !important;
    visibility: visible !important;
}

body.sidebar-minimized .sidebar .lic-badge i {
    font-size: 16px !important;
    color: white !important;
    margin: 0 !important;
    display: block !important;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

/* Center menu icons in minimized sidebar */
body.sidebar-minimized .sidebar .menu-item,
body.sidebar-minimized .sidebar .menu-danger {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    width: 46px !important;
    height: 46px !important;
    margin: 6px auto !important;
    border-radius: 12px !important;
    border-left: none !important;
    transition: all 0.25s ease !important;
}

body.sidebar-minimized .sidebar .menu-item i,
body.sidebar-minimized .sidebar .menu-danger i {
    margin: 0 !important;
    font-size: 18px !important;
}

/* Clean Flat Active State for collapsed icons */
body.sidebar-minimized .sidebar .menu-item.active {
    background: var(--accent-subtle) !important;
    border: 1px solid var(--border) !important;
    color: var(--accent) !important;
    box-shadow: none !important;
}

/* Adjust Main Content Area (REMOVE REDUNDANT MARGIN & WIDTH OVERRIDES TO PREVENT FLEX OVERFLOW) */
body.sidebar-minimized .main,
body.sidebar-minimized .main-content {
    padding-left: 20px !important;
    /* Tighten up left padding in mini mode */
}

/* Hide header pipe deco in mini mode for cleaner look if needed */
body.sidebar-minimized .header::before {
    display: none !important;
}

/* Pastikan tidak ada double hamburger */
body.sidebar-minimized .sidebar::before {
    display: none !important;
}

@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }

    /* RESTORE BRAND TEXT ON MOBILE SIDEBAR */
    .brand-wrapper .brand-text,
    #brandText {
        display: inline-block !important;
        width: auto !important;
        max-width: 100% !important;
        opacity: 1 !important;
        visibility: visible !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }


}


/* Minimized Sidebar Layout Overrides */
@media (min-width: 769px) {

    body.sidebar-minimized .brand-wrapper .brand-text,
    body.sidebar-minimized .brand-wrapper span,
    body.sidebar-minimized .brand-wrapper div:not(.btn-sidebar-toggle),
    body.sidebar-minimized .brand-title-col,
    body.sidebar-minimized .sidebar-user-subtext,
    body.sidebar-minimized #sidebarUserSubtext,
    body.sidebar-minimized .sidebar .brand .brand-text,
    body.sidebar-minimized .sidebar .brand span,
    body.sidebar-minimized #brandText,
    body.sidebar-minimized #mobileBrandText {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        width: 0 !important;
        height: 0 !important;
        font-size: 0 !important;
        pointer-events: none !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
    }


    body.sidebar-minimized .sidebar .brand {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 10px 0 !important;
        width: 100% !important;
    }

    body.sidebar-minimized .sidebar .brand .btn-ghost.desktop-only {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 44px !important;
        height: 44px !important;
        margin: 0 !important;
        padding: 0 !important;
        color: #ffffff !important;
        background: transparent !important;
        opacity: 1 !important;
        visibility: visible !important;
        z-index: 9999 !important;
    }

    body.sidebar-minimized .sidebar .brand .btn-ghost.desktop-only i {
        font-size: 20px !important;
        color: #ffffff !important;
        display: block !important;
    }
}

/* Minimized Desktop Sidebar Structural Rules */
@media (min-width: 769px) {

    /* HIDE BRAND TEXT WITH ANIMATION SUPPORT */
    body.sidebar-minimized .brand-wrapper .brand-text,
    body.sidebar-minimized .brand-wrapper span,
    body.sidebar-minimized .brand-wrapper div:not(.btn-sidebar-toggle),
    body.sidebar-minimized .brand-title-col,
    body.sidebar-minimized .sidebar-user-subtext,
    body.sidebar-minimized #sidebarUserSubtext,
    body.sidebar-minimized #brandText,
    body.sidebar-minimized #mobileBrandText {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        width: 0 !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        pointer-events: none !important;
        flex: 0 !important;
        overflow: hidden !important;
        white-space: nowrap !important;
    }

    /* CENTER THE HAMBURGER BUTTON WRAPPER */
    body.sidebar-minimized .brand-wrapper {
        justify-content: center !important;
        padding: 10px 0 15px 0 !important;
        border-bottom: none !important;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        margin-bottom: 20px !important;
        width: 100% !important;
        overflow: hidden !important;
    }

    /* ENSURE BUTTON VISIBILITY & POSITION */
    body.sidebar-minimized .brand-wrapper button,
    body.sidebar-minimized .btn-sidebar-toggle {
        display: flex !important;
        margin: 0 !important;
        width: 44px !important;
        height: 44px !important;
    }
}

/* Brand & Typography */
.brand-text, #brandText, #mobileBrandText, .mobile-brand {
    color: var(--accent-text, var(--accent)) !important;
    text-shadow: 0 0 15px var(--accent-glow) !important;
    font-family: var(--font-main) !important;
    font-weight: 800 !important;
}

/* Mobile Navbar Toggle Button (Top Bar Header) */
#btnToggle, 
#mobileBtnToggle {
    background: var(--accent) !important;
    color: var(--accent-contrast, #ffffff) !important;
    border: none !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 15px var(--accent-glow) !important;
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 1 !important;
    cursor: pointer !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

#btnToggle i, 
#mobileBtnToggle i {
    color: var(--accent-contrast, #ffffff) !important;
    font-size: 18px !important;
}

#btnToggle:hover, 
#mobileBtnToggle:hover {
    transform: scale(1.08) !important;
    box-shadow: 0 6px 20px var(--accent-glow) !important;
}

/* Desktop Sidebar Toggle Button (Inside Sidebar) */
.btn-sidebar-toggle {
    background: transparent !important;
    color: var(--text-primary) !important;
    border: none !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    width: 38px !important;
    height: 38px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.btn-sidebar-toggle i {
    color: var(--text-primary) !important;
    font-size: 18px !important;
}

.btn-sidebar-toggle:hover {
    background: var(--bg-hover) !important;
    color: var(--accent) !important;
}

.btn-sidebar-toggle:hover i {
    color: var(--accent) !important;
}

/* Hide Desktop Toggle Button on Mobile */
@media (max-width: 768px) {
    .btn-sidebar-toggle,
    .sidebar .btn-sidebar-toggle,
    .brand-wrapper .btn-sidebar-toggle,
    .desktop-only {
        display: none !important;
        visibility: hidden !important;
        width: 0 !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        pointer-events: none !important;
    }
}

/* Minimized Sidebar - License Badge Offset */
body.sidebar-minimized .sidebar .lic-badge {
    display: flex !important;
    visibility: visible !important;
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0.01 !important;
    pointer-events: none !important;
}


/* Toast Notifications */
.toast-msg {
    background: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
    box-shadow: var(--shadow-dropdown) !important;
    color: var(--text-main) !important;
    border-radius: 10px;
    padding: 12px 18px;
}

.toast-msg.info {
    border-left: 4px solid var(--accent) !important;
}

.toast-msg.success {
    border-left: 4px solid var(--success) !important;
}

.toast-msg.error {
    border-left: 4px solid var(--danger) !important;
}

/* Billing Guard Bar */
.billing-guard-bar {
    border-color: var(--border) !important;
    background: var(--bg-card-subtle) !important;
}

.billing-guard-btn {
    background: var(--accent) !important;
    border-color: var(--accent) !important;
    color: var(--accent-contrast) !important;
    font-weight: 600 !important;
}

/* Sidebar Icons Support */
.sidebar .menu-item .icon,
.sidebar .menu-danger .icon {
    min-width: 24px;
    font-size: 16px;
    margin-right: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

body.sidebar-minimized .sidebar .menu-item .icon,
body.sidebar-minimized .sidebar .menu-danger .icon {
    margin-right: 0 !important;
    font-size: 20px !important;
    width: 100% !important;
    height: 100% !important;
    justify-content: center !important;
    align-items: center !important;
}

body.sidebar-minimized .sidebar .menu-danger {
    border: 1px solid transparent !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.sidebar-minimized .sidebar .menu-danger:hover {
    background: var(--danger-subtle) !important;
    border-color: var(--danger-border) !important;
    color: var(--danger) !important;
}

/* Donut Chart Accent Styles */
.stroke-dash-gold {
    stroke: var(--accent) !important;
    filter: drop-shadow(0 0 4px var(--accent-glow)) !important;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"][data-accent="monochrome"] .stroke-dash-gold,
[data-theme="light"] [data-accent="monochrome"] .stroke-dash-gold {
    filter: none !important;
}

.bg-chart-mikrotik { background: #3b82f6 !important; }
.bg-chart-olt      { background: #06b6d4 !important; }
.bg-chart-odp      { background: #8b5cf6 !important; }
.bg-chart-tiang    { background: #64748b !important; }
.bg-chart-htb      { background: #f59e0b !important; }
.bg-chart-clolt    { background: #10b981 !important; }
.bg-chart-ont      { background: #f43f5e !important; }




/* ==========================================================================
   MODERN DASHBOARD TOAST NOTIFICATIONS
   ========================================================================== */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast-msg {
    min-width: 260px;
    background: var(--bg-card);
    color: var(--text-primary);
    padding: 14px 18px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
    display: flex;
    align-items: center;
    gap: 12px;
    pointer-events: auto;
    animation: toast-slide-in 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    font-size: 13px;
    font-weight: 600;
}

.toast-msg i { color: var(--accent); }
.toast-msg.success { border-left-color: var(--accent); }
.toast-msg.success i { color: var(--accent); }
.toast-msg.error   { border-left-color: var(--danger); }
.toast-msg.error i { color: var(--danger); }
.toast-msg.warning { border-left-color: var(--warning); }
.toast-msg.warning i { color: var(--warning); }
.toast-msg.info    { border-left-color: var(--info); }
.toast-msg.info i  { color: var(--info); }

@keyframes toast-slide-in {
    from { transform: translateX(120%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.toast-fade-out {
    animation: toast-fade-out 0.35s ease-in forwards !important;
}

@keyframes toast-fade-out {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(40px); opacity: 0; }
}

/* ==========================================================================
   BILLING GUARD BAR
   ========================================================================== */
.billing-guard-bar {
    margin-bottom: 16px;
    padding: 10px 18px;
    background: var(--bg-card-subtle);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.billing-guard-btn {
    padding: 6px 14px;
    height: 32px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid transparent;
    background: var(--accent);
    color: var(--accent-contrast);
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.billing-guard-btn:hover {
    background: var(--accent-hover);
    box-shadow: 0 2px 8px var(--accent-glow);
}

/* ==========================================================================
   DASHBOARD NEWS MARQUEE & CLOCK
   ========================================================================== */
.news-marquee-container {
    flex: 1;
    margin: 0 16px;
    background: var(--bg-card-subtle);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    height: 36px;
    display: none;
    align-items: center;
    overflow: hidden;
    position: relative;
    max-width: 700px;
}

.news-marquee-label {
    background: var(--accent);
    color: var(--accent-contrast);
    padding: 0 12px;
    height: 100%;
    display: flex;
    align-items: center;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    white-space: nowrap;
}

.news-marquee-content {
    white-space: nowrap;
    display: inline-block;
    padding-left: 100%;
    animation: marquee-scroll 30s linear infinite;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    font-family: var(--font-main);
}

.news-marquee-content:hover {
    animation-play-state: paused;
}

@keyframes marquee-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* ==========================================================================
   SCREEN OPTIONS DRAWER
   ========================================================================== */
.screen-options-drawer {
    display: none;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 18px 22px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-md);
    animation: slideDown 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.screen-options-drawer h4 {
    margin: 0 0 12px 0;
    font-size: 11px;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
}

.checkbox-label-compact {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    user-select: none;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    background: var(--bg-card-subtle);
    border: 1px solid var(--border);
    transition: all var(--transition-fast);
}

.checkbox-label-compact:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.checkbox-label-compact input[type="checkbox"] {
    accent-color: var(--accent);
    width: 14px;
    height: 14px;
    cursor: pointer;
    margin: 0;
}

/* ==========================================================================
   WIDGETS FLUID FLEX CONTAINER
   ========================================================================== */
.dash-grid-fluid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.widget-traffic  { flex: 4 1 calc(40% - 16px); min-width: 0; }
.widget-client   { flex: 3 1 calc(30% - 16px); min-width: 0; }
.widget-finance  { flex: 3 1 calc(30% - 16px); min-width: 0; }
.widget-status   { flex: 4 1 calc(40% - 16px); min-width: 0; }
.widget-port     { flex: 3 1 calc(30% - 16px); min-width: 0; }
.widget-server   { flex: 3 1 calc(30% - 16px); min-width: 0; }
.widget-billing-guard { flex: 1 1 100%; min-width: 0; }
.widget-logs     { flex: 1 1 100%; min-width: 0; }

@media (max-width: 1200px) {
    .widget-traffic  { flex: 1 1 100%; }
    .widget-client   { flex: 1 1 calc(50% - 8px); }
    .widget-finance  { flex: 1 1 calc(50% - 8px); }
    .widget-status   { flex: 1 1 100%; }
    .widget-port     { flex: 1 1 calc(50% - 8px); }
    .widget-server   { flex: 1 1 calc(50% - 8px); }
    .widget-billing-guard { flex: 1 1 100%; }
    .widget-logs     { flex: 1 1 100%; }
}

@media (max-width: 768px) {
    .widget-traffic, .widget-client, .widget-finance, .widget-status,
    .widget-port, .widget-server, .widget-billing-guard, .widget-logs {
        flex: 1 1 100% !important;
    }
}

#pg-dash.hide-widget-traffic .widget-traffic { display: none !important; }
#pg-dash.hide-widget-client .widget-client { display: none !important; }
#pg-dash.hide-widget-finance .widget-finance { display: none !important; }
#pg-dash.hide-widget-status .widget-status { display: none !important; }
#pg-dash.hide-widget-port .widget-port { display: none !important; }
#pg-dash.hide-widget-server .widget-server { display: none !important; }
#pg-dash.hide-widget-billing-guard .widget-billing-guard { display: none !important; }
#pg-dash.hide-widget-logs .widget-logs { display: none !important; }

body.hide-opt-clock #dashClock { display: none !important; }
body.hide-opt-news #newsMarquee { display: none !important; }
body.hide-opt-news #newsMobileWrapper { display: none !important; }


/* Dashboard Top Navigation & Telemetry Bar */
.dash-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 40px;
    gap: 20px;
}

.dash-title-group {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 0;
}

.dash-title-wrap {
    display: flex;
    align-items: center;
    gap: 5px;
}

.dash-title-wrap h2 {
    margin: 0;
    border-left: none;
    padding-left: 0;
    white-space: nowrap;
}

.dash-ctrls-group {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
    flex-shrink: 0;
}

.dash-ctrls-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

@media (max-width: 768px) {
    .dash-top-bar {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
        margin-bottom: 16px !important;
        min-height: auto !important;
    }

    #newsMarquee {
        display: none !important;
    }

    .dash-title-group {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        gap: 10px !important;
    }
}


/* ==========================================================================
   BESPOKE NOC EXECUTIVE DASHBOARD DESIGN SYSTEM (ANTI-SLOP ARCHITECTURE)
   ========================================================================== */

/* Base NOC Card Container (Compact & Clean) */
.noc-card {
    background: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
    border-radius: 10px;
    padding: 12px 14px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.noc-card:hover {
    transform: translateY(-2px) !important;
    box-shadow: var(--shadow-md) !important;
}

/* Card Header */
.noc-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    gap: 10px;
}

.noc-card-title {
    display: flex;
    align-items: center;
    gap: 7px;
}

.noc-card-title h3 {
    margin: 0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-family: var(--font-main);
}

.noc-title-icon {
    font-size: 11.5px;
    color: var(--text-muted);
    opacity: 0.8;
}

/* Live Beacon Badge */
.noc-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 800;
    color: var(--accent);
    background: var(--accent-subtle);
    padding: 2px 8px;
    border-radius: 6px;
    border: 1px solid var(--border);
    letter-spacing: 0.05em;
}

.noc-live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    animation: noc-beacon 1.5s infinite;
}

@keyframes noc-beacon {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 var(--accent-glow); }
    70% { transform: scale(1); box-shadow: 0 0 0 5px rgba(0, 0, 0, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 0, 0, 0); }
}

/* Controls & Select */
.noc-header-ctrls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.noc-select {
    background: var(--input-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 11.5px;
    font-weight: 600;
    padding: 4px 10px;
    height: 28px;
    width: 160px;
    outline: none;
    transition: border-color 0.2s;
}

.noc-select:focus {
    border-color: var(--accent);
}

/* ==========================================================================
   CARD 1: TRAFFIC CHART & QUOTA
   ========================================================================== */
.noc-chart-canvas-wrap {
    position: relative;
    height: 220px;
    width: 100%;
}

.noc-chart-canvas-wrap canvas {
    width: 100% !important;
    height: 220px !important;
    background: var(--bg-card-subtle) !important;
    border: 1px solid var(--border) !important;
    border-radius: 8px !important;
}

/* Legend Bar */
.noc-chart-legend-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
    font-size: 10.5px;
}

.noc-legend-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.noc-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10.5px;
    font-weight: 600;
    color: var(--text-secondary);
}

.noc-legend-pill {
    display: inline-block;
    width: 10px;
    height: 3px;
    border-radius: 2px;
}

.rx-pill { background: var(--accent); }
.tx-pill { background: #06b6d4; }

[data-accent="monochrome"] .rx-pill { background: var(--text-primary) !important; }
[data-accent="monochrome"] .tx-pill { background: #64748b !important; }

.noc-chart-interval {
    color: var(--text-muted);
    font-size: 10px;
    font-style: italic;
}

/* Quota Grid */
.noc-quota-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
}

.noc-quota-pod {
    background: var(--bg-card-subtle);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 5px 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.noc-quota-label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 9.5px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.noc-pod-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    flex-shrink: 0;
}

.noc-pod-dot.bg-today { background: var(--accent); box-shadow: 0 0 6px var(--accent-glow); }
.noc-pod-dot.bg-week { background: #f59e0b; box-shadow: 0 0 6px rgba(245, 158, 11, 0.4); }
.noc-pod-dot.bg-month { background: #8b5cf6; box-shadow: 0 0 6px rgba(139, 92, 246, 0.4); }

[data-accent="monochrome"] .noc-pod-dot.bg-today { background: var(--text-primary) !important; box-shadow: none !important; }
[data-accent="monochrome"] .noc-pod-dot.bg-week { background: #64748b !important; box-shadow: none !important; }
[data-accent="monochrome"] .noc-pod-dot.bg-month { background: #94a3b8 !important; box-shadow: none !important; }

.noc-quota-val {
    font-size: 12px;
    font-weight: 800;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
    font-family: var(--font-main);
}

/* ==========================================================================
   CARD 2: CLIENT STATUS RACK & INVENTORY
   ========================================================================== */
.noc-client-status-rack {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-bottom: 8px;
}

.noc-status-chip {
    background: var(--bg-card-subtle);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 5px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 2px;
    transition: all 0.2s ease;
}

.noc-status-chip:hover {
    border-color: var(--border-subtle);
    background: var(--bg-hover);
}

.noc-chip-dot {
    display: none !important;
}

.noc-chip-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    gap: 2px;
}

.noc-chip-label {
    font-size: 9.5px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.1;
    text-align: center;
}

.noc-chip-val {
    font-size: 13.5px;
    font-weight: 800;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
    text-align: center;
    font-family: var(--font-main);
}

:not([data-accent="monochrome"]) .chip-online .noc-chip-val {
    color: #10b981;
}

:not([data-accent="monochrome"]) .chip-isolir .noc-chip-val {
    color: #f59e0b;
}

:not([data-accent="monochrome"]) .chip-offline .noc-chip-val {
    color: #f43f5e;
}

[data-accent="monochrome"] .noc-chip-val {
    color: var(--text-primary) !important;
}

/* Progress Meter Bar */
.noc-meter-bar {
    height: 5px;
    background: var(--bg-card-subtle);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 8px;
    border: 1px solid var(--border);
}

.noc-meter-fill {
    height: 100%;
    transition: width 0.4s ease;
    border-radius: 999px;
}

.noc-meter-fill.bg-online {
    background: #10b981;
}

[data-accent="monochrome"] .noc-meter-fill.bg-online {
    background: var(--text-primary) !important;
}

/* Hero Client Banner */
.noc-inv-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-card-subtle);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 10px;
    margin-bottom: 8px;
}

.noc-hero-sublabel {
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.noc-hero-bigval {
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    line-height: 1;
    font-family: var(--font-main);
}

.noc-hotspot-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    font-weight: 700;
    background: var(--accent-subtle);
    color: var(--accent);
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

/* Horizontal Multi-Color Segmented Bar */
.noc-segment-wrap {
    margin-bottom: 8px;
}

.noc-segmented-bar {
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
    display: flex;
    background: var(--bg-card-subtle);
    border: 1px solid var(--border);
}

/* Device Grid (2 columns) */
.noc-device-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
    margin-bottom: 8px;
}

.noc-device-item {
    background: var(--bg-card-subtle);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 5px 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.noc-device-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
}

.noc-device-badge {
    width: 7px;
    height: 7px;
    border-radius: 2px;
    flex-shrink: 0;
}

.badge-dev-mikrotik { background: #3b82f6; }
.badge-dev-olt { background: #06b6d4; }
.badge-dev-odp { background: #8b5cf6; }
.badge-dev-tiang { background: #64748b; }
.badge-dev-htb { background: #f59e0b; }
.badge-dev-clolt { background: #10b981; }
.badge-dev-ont { background: #f43f5e; }

[data-accent="monochrome"] .badge-dev-mikrotik { background: #0f172a !important; }
[data-accent="monochrome"] .badge-dev-olt { background: #334155 !important; }
[data-accent="monochrome"] .badge-dev-odp { background: #475569 !important; }
[data-accent="monochrome"] .badge-dev-tiang { background: #64748b !important; }
[data-accent="monochrome"] .badge-dev-htb { background: #94a3b8 !important; }
[data-accent="monochrome"] .badge-dev-clolt { background: #cbd5e1 !important; }
[data-accent="monochrome"] .badge-dev-ont { background: #475569 !important; }

[data-theme="dark"][data-accent="monochrome"] .badge-dev-mikrotik { background: #f8fafc !important; }
[data-theme="dark"][data-accent="monochrome"] .badge-dev-olt { background: #e2e8f0 !important; }
[data-theme="dark"][data-accent="monochrome"] .badge-dev-odp { background: #cbd5e1 !important; }
[data-theme="dark"][data-accent="monochrome"] .badge-dev-tiang { background: #94a3b8 !important; }
[data-theme="dark"][data-accent="monochrome"] .badge-dev-htb { background: #64748b !important; }
[data-theme="dark"][data-accent="monochrome"] .badge-dev-clolt { background: #475569 !important; }
[data-theme="dark"][data-accent="monochrome"] .badge-dev-ont { background: #334155 !important; }

.noc-device-val {
    font-size: 13px;
    font-weight: 800;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
    font-family: var(--font-main);
}

/* Cable & Uptime Pod */
.noc-cable-pod {
    margin-top: auto !important;
    background: var(--bg-card-subtle);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.noc-cable-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
}

.noc-cable-val {
    font-size: 12px;
    font-weight: 800;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
    font-family: var(--font-main);
}

/* ==========================================================================
   CARD 3: KEUANGAN (EXECUTIVE FINANCE)
   ========================================================================== */
.noc-month-pill {
    font-size: 10px !important;
    font-weight: 800 !important;
    letter-spacing: 0.06em !important;
    padding: 3px 8px !important;
    border-radius: 6px !important;
}

.noc-fin-hero {
    background: var(--bg-card-subtle);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 10px;
    margin-bottom: 8px;
}

.noc-fin-bigval {
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    line-height: 1.1;
    margin: 2px 0;
    font-family: var(--font-main);
}

.noc-fin-margin-row {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    margin-top: 2px;
}

.noc-margin-lbl {
    color: var(--text-muted);
    font-weight: 600;
}

.noc-margin-val {
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

:not([data-accent="monochrome"]) .noc-margin-val.text-green { color: #10b981; }
:not([data-accent="monochrome"]) .noc-margin-val.text-red { color: #f43f5e; }
[data-accent="monochrome"] .noc-margin-val { color: var(--text-primary) !important; }

.noc-flow-section {
    margin-bottom: 8px;
}

.noc-flow-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-secondary);
}

.noc-flow-in {
    display: flex;
    align-items: center;
    gap: 3px;
    color: #10b981;
}

.noc-flow-out {
    display: flex;
    align-items: center;
    gap: 3px;
    color: #f43f5e;
}

[data-accent="monochrome"] .noc-flow-in,
[data-accent="monochrome"] .noc-flow-out {
    color: var(--text-secondary) !important;
}

.noc-flow-pct {
    font-size: 9.5px;
    font-weight: 800;
    color: var(--text-muted);
}

.noc-flow-bar {
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
    display: flex;
    background: var(--bg-card-subtle);
    border: 1px solid var(--border);
}

.noc-flow-pods {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    margin-bottom: 8px;
}

.noc-flow-pod {
    background: var(--bg-card-subtle);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 5px 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.noc-flow-pod-lbl {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.noc-flow-pod-val {
    font-size: 12px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    font-family: var(--font-main);
}

:not([data-accent="monochrome"]) .noc-flow-pod.pod-income .noc-flow-pod-lbl,
:not([data-accent="monochrome"]) .noc-flow-pod.pod-income .noc-flow-pod-val {
    color: #10b981;
}

:not([data-accent="monochrome"]) .noc-flow-pod.pod-expense .noc-flow-pod-lbl,
:not([data-accent="monochrome"]) .noc-flow-pod.pod-expense .noc-flow-pod-val {
    color: #f43f5e;
}

[data-accent="monochrome"] .noc-flow-pod-lbl { color: var(--text-muted) !important; }
[data-accent="monochrome"] .noc-flow-pod-val { color: var(--text-primary) !important; }

/* Total Kas Pod */
.noc-total-kas-pod {
    background: var(--bg-card-subtle);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 6px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 6px;
    margin-bottom: 6px;
}

[data-accent="monochrome"] .chip-used #d-odp-used,
[data-accent="monochrome"] .chip-rem #d-odp-rem {
    color: var(--text-primary) !important;
}

[data-accent="monochrome"] .noc-meter-fill.bg-chart-odp {
    background: var(--text-primary) !important;
}

/* ==========================================================================
   CARD 4: STATUS MIKROTIK (ROUTER TABLE)
   ========================================================================== */
.noc-table-wrap {
    max-height: 200px;
    overflow-y: auto;
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg-card-subtle);
}

.noc-router-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
}

.noc-router-table th {
    position: sticky;
    top: 0;
    background: var(--bg-card);
    color: var(--text-muted);
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 6px 8px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    z-index: 2;
}

.noc-router-table td {
    padding: 5px 8px;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-primary);
    vertical-align: middle;
}

.noc-router-table tr:hover td {
    background: var(--bg-hover);
}

[data-accent="monochrome"] .scp-status-badge {
    background: var(--bg-card-subtle) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border) !important;
}

[data-accent="monochrome"] .scp-status-badge.bg-green {
    background: var(--text-primary) !important;
    color: var(--bg-card) !important;
    border: 1px solid var(--text-primary) !important;
}

[data-accent="monochrome"] .scp-status-badge.bg-red {
    background: var(--bg-card-subtle) !important;
    color: var(--text-muted) !important;
    border: 1px solid var(--border) !important;
}

[data-accent="monochrome"] .scp-traffic-in,
[data-accent="monochrome"] .scp-traffic-out {
    color: var(--text-secondary) !important;
}

[data-accent="monochrome"] .scp-traffic-in i,
[data-accent="monochrome"] .scp-traffic-out i {
    color: var(--text-muted) !important;
}

[data-accent="monochrome"] .scp-ping-box {
    color: var(--text-secondary) !important;
}

[data-accent="monochrome"] .scp-ping-box i {
    color: var(--text-muted) !important;
}

[data-accent="monochrome"] .scp-chip-icon {
    background: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
    color: var(--text-muted) !important;
}

/* ==========================================================================
   CARD 5: STATISTIK PORT (PORT & ODP CAPACITY)
   ========================================================================== */
.noc-port-status-rack {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 10px;
}

.noc-port-chip {
    background: var(--bg-card-subtle);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 7px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
}

.noc-port-body {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 12px;
}

.noc-arc-gauge {
    width: 100px;
    height: 100px;
    position: relative;
    flex-shrink: 0;
}

.noc-gauge-inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.noc-gauge-val {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
    font-family: var(--font-main);
}

.noc-gauge-lbl {
    font-size: 8.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-top: 2px;
}

.noc-odp-list {
    flex: 1;
    min-width: 0;
    max-height: 105px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

[data-accent="monochrome"] .scp-dot-orange {
    background: var(--text-primary) !important;
    box-shadow: none !important;
}

[data-accent="monochrome"] .scp-odp-kritis-item {
    color: var(--text-primary) !important;
}

[data-accent="monochrome"] .widget-port .noc-cable-label i {
    color: var(--text-muted) !important;
}

[data-accent="monochrome"] .widget-port .chip-used,
[data-accent="monochrome"] .widget-port .chip-rem {
    border-color: var(--border) !important;
}

[data-accent="monochrome"] .widget-port .noc-hotspot-pill,
[data-accent="monochrome"] .widget-client .noc-hotspot-pill {
    background: var(--bg-card-subtle) !important;
    color: var(--text-secondary) !important;
    border: 1px solid var(--border) !important;
}

/* ==========================================================================
   CARD 6: STATUS SERVER (HARDWARE TELEMETRY)
   ========================================================================== */
.noc-telemetry-badge {
    font-size: 10px !important;
    font-weight: 800 !important;
    letter-spacing: 0.06em !important;
    padding: 3px 8px !important;
    border-radius: 6px !important;
}

.noc-telemetry-stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.noc-telemetry-card {
    background: var(--bg-card-subtle);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 10px;
}

.card-cpu, .card-thermal {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 56px;
}

.card-ram, .card-disk {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 56px;
}

.noc-telemetry-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.noc-telemetry-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
}

.noc-telemetry-val {
    font-size: 12px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    font-family: var(--font-main);
}

.noc-bar-track {
    height: 6px;
    background: var(--bg-card);
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.noc-bar-fill {
    height: 100%;
    border-radius: 999px;
    transition: width 0.4s ease;
}

.noc-thermal-track {
    background: var(--bg-card);
    border: 1px solid var(--border);
}

.noc-thermal-track .noc-bar-fill {
    background: linear-gradient(90deg, #10b981 0%, #f59e0b 50%, #f43f5e 100%);
}

.text-rose {
    color: #f43f5e !important;
}

.noc-telemetry-duo {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.noc-telemetry-mini-lbl {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.noc-telemetry-bigval {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
    font-family: var(--font-main);
}

:not([data-accent="monochrome"]) .card-cpu .noc-telemetry-mini-lbl i { color: #ef4444; }
:not([data-accent="monochrome"]) .card-thermal .noc-telemetry-mini-lbl i { color: #f43f5e; }
:not([data-accent="monochrome"]) .card-ram .noc-telemetry-mini-lbl i { color: #8b5cf6; }
:not([data-accent="monochrome"]) .card-disk .noc-telemetry-mini-lbl i { color: #f59e0b; }
:not([data-accent="monochrome"]) .card-cpu .noc-telemetry-val { color: #ef4444; }
:not([data-accent="monochrome"]) .card-ram .noc-telemetry-bigval { color: #8b5cf6; }
:not([data-accent="monochrome"]) .card-disk .noc-telemetry-bigval { color: #f59e0b; }
:not([data-accent="monochrome"]) .card-thermal .noc-telemetry-val { color: #f43f5e; }

[data-accent="monochrome"] .noc-telemetry-mini-lbl i {
    color: var(--text-muted) !important;
}

[data-accent="monochrome"] .noc-telemetry-val,
[data-accent="monochrome"] .noc-telemetry-bigval,
[data-accent="monochrome"] #d-sys-cpu-val,
[data-accent="monochrome"] #d-sys-temp-val {
    color: var(--text-primary) !important;
}

[data-accent="monochrome"] .card-cpu .noc-bar-fill,
[data-accent="monochrome"] #d-cpu-bar-p {
    background: var(--text-primary) !important;
}

[data-accent="monochrome"] .noc-thermal-track .noc-bar-fill,
[data-accent="monochrome"] #d-temp-bar-p {
    background: var(--text-primary) !important;
}

[data-accent="monochrome"] #uptime-footer i {
    color: var(--text-muted) !important;
}

[data-accent="monochrome"] .noc-telemetry-badge {
    background: var(--bg-card-subtle) !important;
    color: var(--text-secondary) !important;
    border: 1px solid var(--border) !important;
}

/* High Contrast Logout Button */
.menu-danger,
.menu-item.menu-danger,
.sidebar .menu-danger {
    margin-top: auto;
    margin-left: 16px !important;
    margin-right: 16px !important;
    margin-bottom: 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 10px 14px !important;
    border-radius: var(--radius-sm) !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    border: 1px solid rgba(239, 68, 68, 0.4) !important;
    background: rgba(239, 68, 68, 0.1) !important;
    color: #ef4444 !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
}

.menu-danger:hover,
.menu-item.menu-danger:hover,
.sidebar .menu-danger:hover {
    background: rgba(239, 68, 68, 0.2) !important;
    border-color: #ef4444 !important;
    color: #ffffff !important;
    transform: translateY(-1px);
}

/* ==========================================================================
   MOBILE RESPONSIVE OVERRIDES (NOC EXECUTIVE DASHBOARD)
   ========================================================================== */
@media (max-width: 768px) {
    .widget-traffic, .widget-client, .widget-finance, .widget-status,
    .widget-port, .widget-server, .widget-billing-guard, .widget-logs {
        flex: 1 1 100% !important;
    }

    .dash-top-bar {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
        margin-bottom: 16px !important;
        min-height: auto !important;
    }

    .dash-title-group {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        gap: 10px !important;
    }

    .dash-title-wrap {
        display: flex !important;
        align-items: center !important;
        min-width: 0 !important;
    }

    .dash-title-wrap h2 {
        font-size: 18px !important;
        white-space: nowrap !important;
        margin: 0 !important;
        padding-left: 0 !important;
        line-height: 1.2 !important;
    }

    .dash-title-wrap h2::before {
        height: 18px !important;
        width: 3.5px !important;
        margin-right: 8px !important;
    }

    .dash-clock {
        padding: 2px 7px !important;
        font-size: 10.5px !important;
        height: 26px !important;
        border-radius: var(--radius-sm) !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 4px !important;
        flex-shrink: 0 !important;
    }

    #clockTime {
        font-size: 10.5px !important;
    }

    .dash-ctrls-group {
        width: 100% !important;
        align-items: stretch !important;
    }

    .dash-ctrls-row {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 6px !important;
        width: 100% !important;
        flex-wrap: wrap !important;
    }

    .role-badge {
        display: inline-flex !important;
        font-size: 10px !important;
        padding: 2px 7px !important;
        height: 26px !important;
        max-width: 100% !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    .ver-full {
        display: none !important;
    }

    .ver-compact {
        display: inline-flex !important;
        align-items: center !important;
        gap: 4px !important;
    }

    .dash-lang-badge,
    .lang-badge {
        display: inline-flex !important;
        font-size: 10.5px !important;
        padding: 2px 7px !important;
        height: 26px !important;
    }

    .dash-refresh-badge {
        display: inline-flex !important;
        padding: 2px 7px !important;
        font-size: 10.5px !important;
        height: 26px !important;
        border-radius: var(--radius-sm) !important;
    }

    .dash-refresh-badge select {
        font-size: 10.5px !important;
    }

    #screenOptionsToggle {
        padding: 4px 8px !important;
        font-size: 10.5px !important;
        height: 26px !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 4px !important;
        width: auto !important;
        max-width: max-content !important;
        flex: 0 0 auto !important;
        margin: 0 !important;
    }

    .update-alert {
        padding: 2px 7px !important;
        font-size: 10px !important;
        height: 26px !important;
    }

    /* SaaS Professional Mobile Announcement Bar */
    .mobile-news-wrapper {
        display: block !important;
        width: 100% !important;
        margin: 4px 0 6px 0 !important;
    }

    .mobile-news-wrapper .news-marquee-container {
        display: flex !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        height: 30px !important;
        border-radius: 6px !important;
        background: var(--bg-card-subtle) !important;
        border: 1px solid var(--border) !important;
    }

    .mobile-news-wrapper .news-marquee-label {
        height: 100% !important;
        padding: 0 8px !important;
        font-size: 10px !important;
        font-weight: 800 !important;
        letter-spacing: 0.05em !important;
        display: flex !important;
        align-items: center !important;
        background: var(--accent) !important;
        color: var(--accent-contrast) !important;
    }

    .mobile-news-wrapper .news-marquee-content {
        font-size: 11.5px !important;
        font-weight: 500 !important;
    }

    .main {
        padding: 10px 10px !important;
    }

    .mobile-head {
        margin-bottom: 10px !important;
    }

    .noc-card {
        padding: 10px 10px !important;
        border-radius: 8px !important;
    }

    .noc-card-header {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 6px !important;
        margin-bottom: 6px !important;
    }

    .noc-card-title {
        width: auto !important;
        justify-content: flex-start !important;
    }

    .noc-header-ctrls,
    .noc-select {
        width: auto !important;
        max-width: 140px !important;
        height: 26px !important;
        font-size: 11px !important;
        padding: 2px 6px !important;
    }

    .noc-chart-canvas-wrap {
        height: 180px !important;
    }

    .noc-chart-canvas-wrap canvas {
        height: 180px !important;
    }

    .noc-quota-grid {
        gap: 4px !important;
        padding-top: 6px !important;
        margin-top: 6px !important;
    }

    .noc-quota-pod {
        padding: 4px 6px !important;
    }

    .noc-quota-val {
        font-size: 11px !important;
    }

    .noc-router-table td,
    .noc-router-table th {
        padding: 4px 6px !important;
        font-size: 10.5px !important;
    }
}
