/* MyNet v29 unified admin theme. Loaded last on all page_header() admin pages. */
html:root{color-scheme:dark;--ui-bg:#08111f;--ui-panel:#122237;--ui-panel-soft:#192d44;--ui-border:#294159;--ui-text:#eaf5ff;--ui-muted:#a9bfd3;--ui-sidebar:#0b1729;--ui-sidebar-2:#0c1b30;--ui-shadow:0 10px 25px #0003;--hvs-sidebar-color:#0f263b;--noc-surface:#122237;--noc-ink:#eaf5ff;--noc-stroke:#294159}
html body:has(.wrap>.sidebar){background:#08111f!important;color:#eaf5ff!important}
html body:has(.wrap>.sidebar) .content{background:radial-gradient(ellipse at 92% 0%,#12415a45,transparent 42%),#08111f!important;color:#eaf5ff!important;min-width:0}
html body:has(.wrap>.sidebar) .content h1,html body:has(.wrap>.sidebar) .content h2,html body:has(.wrap>.sidebar) .content h3,html body:has(.wrap>.sidebar) .content h4,html body:has(.wrap>.sidebar) .content strong{color:#eaf5ff}
html body:has(.wrap>.sidebar) .muted,html body:has(.wrap>.sidebar) .text-muted,html body:has(.wrap>.sidebar) .content small{color:#a9bfd3}
html body:has(.wrap>.sidebar) .topbar{background:#0d1c30!important;color:#eaf5ff!important;border-bottom:1px solid #294159!important;box-shadow:0 8px 22px #0003!important}
html body:has(.wrap>.sidebar) .topbar .top-brand-copy strong,html body:has(.wrap>.sidebar) .topbar .user-chip strong{color:#f4fbff!important}
html body:has(.wrap>.sidebar) .topbar .top-brand-copy small,html body:has(.wrap>.sidebar) .topbar .user-chip small{color:#b7c8dc!important}
html body:has(.wrap>.sidebar) .top-search,html body:has(.wrap>.sidebar) .top-mini-btn,html body:has(.wrap>.sidebar) .user-chip{background:#172b41!important;color:#e7f5ff!important;border:1px solid #2c4862!important}
html body:has(.wrap>.sidebar) .top-search input{background:transparent!important;color:#eaf5ff!important;border:0!important}
html body:has(.wrap>.sidebar) .sidebar{background:#0b1729!important;color:#c0d6e8!important;border-right:1px solid #22394f!important}
html body:has(.wrap>.sidebar) .sidebar-title,html body:has(.wrap>.sidebar) .sidebar-section-title,html body:has(.wrap>.sidebar) .sidebar a,html body:has(.wrap>.sidebar) .sidebar summary{color:#c9ddef!important}
html body:has(.wrap>.sidebar) .sidebar a:hover,html body:has(.wrap>.sidebar) .sidebar summary:hover{background:#183650!important;color:#fff!important}
html body:has(.wrap>.sidebar) .sidebar a.active{background:#0d657f!important;border-color:#2bb4d0!important;color:#fff!important}
html body:has(.wrap>.sidebar) .sidebar-group,html body:has(.wrap>.sidebar) .sidebar-subgroup{background:#102238!important;border-color:#233b52!important}
html body:has(.wrap>.sidebar) .sidebar .nav-icon{color:#58cde7!important}
html body:has(.wrap>.sidebar) .card,html body:has(.wrap>.sidebar) .stat,html body:has(.wrap>.sidebar) .stat-card,html body:has(.wrap>.sidebar) .chart-card,html body:has(.wrap>.sidebar) .pppoe-live-card,html body:has(.wrap>.sidebar) .pppoe-router-card,html body:has(.wrap>.sidebar) .router-login-item,html body:has(.wrap>.sidebar) .activity-body,html body:has(.wrap>.sidebar) .pppoe-live-meta>div,html body:has(.wrap>.sidebar) .metric-card.slate{background:#122237!important;color:#eaf5ff!important;border:1px solid #294159!important;box-shadow:0 9px 22px #0002!important}
html body:has(.wrap>.sidebar) .card h2,html body:has(.wrap>.sidebar) .stat-card strong,html body:has(.wrap>.sidebar) .stat-card span,html body:has(.wrap>.sidebar) .activity-body p,html body:has(.wrap>.sidebar) .router-login-item strong,html body:has(.wrap>.sidebar) .pppoe-live-meta span{color:#e6f3ff!important}
html body:has(.wrap>.sidebar) .table,html body:has(.wrap>.sidebar) table:not(.voucher-slip table){background:#122237!important;color:#e7f4ff!important;border-color:#294159!important}
html body:has(.wrap>.sidebar) .table th,html body:has(.wrap>.sidebar) table:not(.voucher-slip table) th{background:#1a3049!important;color:#bfdbeb!important;border-color:#31506b!important}
html body:has(.wrap>.sidebar) .table td,html body:has(.wrap>.sidebar) table:not(.voucher-slip table) td{background:#122237!important;color:#e1efff!important;border-color:#294159!important}
html body:has(.wrap>.sidebar) .table tr:hover td,html body:has(.wrap>.sidebar) table:not(.voucher-slip table) tr:hover td{background:#1a3550!important}
html body:has(.wrap>.sidebar) input:not([type=checkbox]):not([type=radio]):not([type=color]),html body:has(.wrap>.sidebar) select,html body:has(.wrap>.sidebar) textarea{background:#0b1b2d!important;color:#f0faff!important;border:1px solid #35536e!important}
html body:has(.wrap>.sidebar) input::placeholder,html body:has(.wrap>.sidebar) textarea::placeholder{color:#9aafc4!important}
html body:has(.wrap>.sidebar) input:focus,html body:has(.wrap>.sidebar) select:focus,html body:has(.wrap>.sidebar) textarea:focus{outline:2px solid #42cde4!important;outline-offset:1px}
html body:has(.wrap>.sidebar) label{color:#d2e4f5!important}
html body:has(.wrap>.sidebar) .btn:not(.danger):not(.success):not(.gray):not(.orange),html body:has(.wrap>.sidebar) button.btn:not(.danger):not(.success):not(.gray):not(.orange){background:#116e93!important;color:#fff!important;border-color:#268fb0!important}
html body:has(.wrap>.sidebar) .btn.gray{background:#30475f!important;color:#fff!important}
html body:has(.wrap>.sidebar) a:not(.btn):not(.active){text-underline-offset:2px}
html body:has(.wrap>.sidebar) .content a:not(.btn){color:#6bd7f4}
html body:has(.wrap>.sidebar) .badge.gray{background:#294157!important;color:#d5e8fa!important}
html body:has(.wrap>.sidebar) .badge.blue{background:#143b60!important;color:#9dddff!important}
html body:has(.wrap>.sidebar) .badge.green{background:#12483c!important;color:#7ce9b5!important}
html body:has(.wrap>.sidebar) .badge.red{background:#5a2938!important;color:#ffacba!important}
html body:has(.wrap>.sidebar) .badge.orange{background:#5b4325!important;color:#ffd18a!important}
html body:has(.wrap>.sidebar) .alert-success{background:#123b33!important;color:#a9f3ce!important}
html body:has(.wrap>.sidebar) .alert-danger{background:#4a2332!important;color:#ffc4cf!important}
html body:has(.wrap>.sidebar) .alert-warning{background:#483920!important;color:#ffe3a0!important}
html body:has(.wrap>.sidebar) .legend-list div,html body:has(.wrap>.sidebar) .bar-track{background:#1a3049!important;color:#d7edff!important}
html body:has(.wrap>.sidebar) .donut>div{background:#122237!important;color:#eaf5ff!important}
html body:has(.wrap>.sidebar) .user-menu-dropdown,html body:has(.wrap>.sidebar) .sidebar-color-popover{background:#14283f!important;color:#eaf5ff!important;border:1px solid #31506b!important}
/* Override dashboard-only v28 tokens consistently, without changing its KPI grid. */
html body.dashboard-v49-page .topbar,html body.dashboard-v49-page .sidebar{color:#eaf5ff!important}
@media(max-width:800px){html body:has(.wrap>.sidebar) .content{padding:14px!important}html body:has(.wrap>.sidebar) .card{max-width:100%;min-width:0}html body:has(.wrap>.sidebar) .table{display:table}html body:has(.wrap>.sidebar) .responsive-table-wrap{overflow-x:auto}}
@media print{html body:has(.wrap>.sidebar),html body:has(.wrap>.sidebar) .content,html body:has(.wrap>.sidebar) .card,html body:has(.wrap>.sidebar) table:not(.voucher-slip table),html body:has(.wrap>.sidebar) table:not(.voucher-slip table) td,html body:has(.wrap>.sidebar) table:not(.voucher-slip table) th{background:#fff!important;color:#111!important;border-color:#ddd!important;box-shadow:none!important}html body:has(.wrap>.sidebar) .topbar,html body:has(.wrap>.sidebar) .sidebar{display:none!important}}
/* Single fixed visual identity: retire legacy independent color switches. */
html body:has(.wrap>.sidebar) [data-theme-toggle],html body:has(.wrap>.sidebar) [data-sidebar-color-toggle],html body:has(.wrap>.sidebar) [data-sidebar-color-popover],html body:has(.wrap>.sidebar) .side-auto{display:none!important}
