/* AYNA BILLING PRO | Uniform visual shell | No iframe / backend changes */
:root{color-scheme:dark;--ayna-bg:#080e1b;--ayna-sidebar:#0d1727;--ayna-panel:#111c2d;--ayna-panel2:#142237;--ayna-line:#26364b;--ayna-text:#e9f1fc;--ayna-muted:#8b9bb0;--ayna-blue:#3179f7;--ayna-cyan:#32c7ed;--ayna-green:#2bd6a2}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{background-color:var(--ayna-bg)!important;color:var(--ayna-text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,'Segoe UI',sans-serif!important}
button,input,select,textarea{font-family:inherit}button:not(:disabled):hover{filter:brightness(1.08)}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid #5cbdf8;outline-offset:2px}
.ayna-unified-side{width:246px!important;min-width:246px!important;max-width:246px!important;flex:0 0 246px!important;padding:0!important;margin:0!important;background:#0d1727!important;color:#e9f1fc!important;border:0!important;border-right:1px solid #26364b!important;border-radius:0!important;box-shadow:none!important;position:sticky!important;top:0!important;height:100vh!important;min-height:100vh!important;display:flex!important;flex-direction:column!important;overflow-y:auto!important;scrollbar-width:thin;scrollbar-color:#2a476c transparent;z-index:10}
.ayna-original-hooks,.ayna-original-hooks[hidden]{display:none!important;visibility:hidden!important;position:absolute!important;pointer-events:none!important}
.ayna-unified-side .ayna-side-brand{min-height:79px;display:flex!important;flex:none;align-items:center;gap:11px;padding:19px 15px 13px!important;font-family:inherit!important}
.ayna-side-logo{display:grid;place-items:center;flex:0 0 39px;width:39px;height:39px;border-radius:10px;color:#fff;font-size:22px;background:linear-gradient(140deg,#246de9,#2ad5c8);box-shadow:0 6px 22px #2770b93b}
.ayna-side-brandtext{font-size:14px;font-weight:800;color:#f2f8ff;line-height:1.28;letter-spacing:0;white-space:nowrap}.ayna-side-brandtext b{color:#4bc5f2}.ayna-side-brandtext small{display:block;color:#8b9bb0;font-size:9px;font-weight:650;letter-spacing:1.1px;margin-top:4px}
.ayna-side-nav{display:flex!important;flex:0 0 auto;flex-direction:column!important;gap:2px!important;padding:0 10px 18px!important;margin:0!important;background:transparent!important;border:0!important;width:100%!important;grid-template-columns:none!important;overflow:visible!important;}
.ayna-unified-side .ayna-side-section{font-size:10px!important;letter-spacing:1.45px!important;font-weight:750!important;color:#758aa8!important;padding:14px 12px 6px!important;margin:0!important;line-height:1.2!important}
.ayna-unified-side .ayna-side-link{display:flex!important;align-items:center!important;gap:11px!important;text-align:left!important;white-space:nowrap!important;width:100%!important;min-height:37px!important;font:540 12.5px/1.3 Inter,system-ui,sans-serif!important;letter-spacing:0!important;background:transparent!important;color:#b7c9df!important;padding:9px 11px!important;margin:0!important;border:0!important;border-radius:9px!important;box-shadow:none!important;text-decoration:none!important;text-transform:none!important;transform:none!important}
.ayna-unified-side .ayna-side-link:hover{background:#192d46!important;color:#fff!important}.ayna-unified-side .ayna-side-link.is-current{color:#fff!important;background:linear-gradient(95deg,#1e5fcd,#1566bd)!important;box-shadow:inset 3px 0 #36c5ef!important;font-weight:740!important}
.ayna-side-icon{font-size:17px;min-width:19px;width:19px;display:inline-grid;place-items:center;color:#8bc4f8}.ayna-unified-side .is-current .ayna-side-icon{color:#fff}
.ayna-unified-side .ayna-side-status{flex:0 0 auto;margin:auto 12px 0;padding:12px 13px;border-radius:10px;border:1px solid #293e5a;color:#a8ddc9;background:#14243a;font-size:11px}.ayna-side-status b{font-weight:650}.ayna-side-status small{display:block;color:#91a9c3;margin-top:5px}.ayna-side-status .ayna-ok{color:#35db9b}.ayna-side-alert{display:block;margin-top:8px;width:100%;padding:8px;background:#1a324e;color:#d5eaff;border:1px solid #3d5878;border-radius:8px;font-size:11px}
.ayna-unified-side .ayna-side-logout{display:flex!important;align-items:center;gap:11px;color:#aebdd0!important;margin:9px 12px 14px!important;padding:11px 13px!important;border:0!important;border-radius:9px!important;background:transparent!important;text-decoration:none!important;font-size:12px!important;box-shadow:none!important}.ayna-unified-side .ayna-side-logout:hover{background:#1b2e46!important;color:#fff!important}
.ayna-mobile-toggle{display:none;position:fixed;z-index:60;top:10px;left:10px;padding:8px 12px;background:#1d3b61;color:#fff;border:1px solid #3e678c;border-radius:9px;font-size:19px}
/* Shared palette while preserving each module's original layout and feature hooks */
body{--bg:#080e1b;--panel:#111c2d;--panel2:#142237;--line:#26364b;--text:#e9f1fc;--muted:#8b9bb0;--blue:#3179f7;--cyan:#32c7ed}
body .topbar{background:#0b1526!important;border-bottom:1px solid #273b55!important;color:#e9f1fc!important}
body .panel,body .card,body .pane,body .stat,body .statbox,body .kpi{border-color:#263b56!important}
body table th{color:#a7bdd8}body table tbody tr:hover{background-color:#203d5a36}
/* Layout consistency for each native (not embedded) page */
body:has(#sidebar.ayna-unified-side)>main{margin-left:246px!important}
body:has(#sidebar.ayna-unified-side)>.shell>.sidebar{width:246px!important}
body:has(#sidebar.ayna-unified-side)>.shell{display:flex!important}
body:has(#side.ayna-unified-side)>.layout{display:flex!important}
body:has(#side.ayna-unified-side) #side{width:246px!important;flex-basis:246px!important}
body:has(#wgShell) #wgShell{display:grid!important;grid-template-columns:246px minmax(0,1fr)!important;background:#080e1b!important}
body:has(#wgShell) #wgShell>.content{min-width:0!important;color:#e9f1fc}
body:has(.shell>.sidebar.ayna-unified-side) .shell{grid-template-columns:246px minmax(0,1fr)!important;min-width:0!important;gap:0!important}
body:has(.shell>.sidebar.ayna-unified-side) .shell>.main{min-width:0!important}
body:has(>aside.sidebar.ayna-unified-side){display:flex!important;min-height:100vh!important}
body:has(>aside.sidebar.ayna-unified-side)>main{min-width:0!important;flex:1!important;margin:0!important}
body:has(#aynaShell){background:#080e1b!important}
body:has(#aynaShell)>main{max-width:none!important;margin:0!important;padding:0!important}
body:has(#aynaShell) #aynaShell{grid-template-columns:246px minmax(0,1fr)!important;gap:0!important;min-height:100vh!important}
body:has(#aynaShell) #aynaSidebar{width:246px!important;height:100vh!important;min-width:246px!important;position:sticky!important;top:0!important;padding:0!important;border-radius:0!important}
body:has(#aynaShell) .ayna-content{padding:20px 24px 35px!important;min-width:0!important}
body:has(#aynaShell) .card{background:#111c2d!important;border-color:#293d58!important;border-radius:13px!important;box-shadow:none!important}
body:has(#aynaShell) input,body:has(#aynaShell) select,body:has(#aynaShell) textarea{background:#0c182a!important;color:#eaf5ff!important;border:1px solid #34506d!important;border-radius:9px!important}
body:has(#aynaShell) table th{background:#14243a!important}body:has(#aynaShell) table td{background:transparent!important;color:#dce9f7!important}
.ayna-legacy-topbar{height:68px;display:flex;align-items:center;justify-content:space-between;gap:16px;background:#0b1526;border-bottom:1px solid #273b55;margin:-20px -24px 22px;padding:0 24px}.ayna-legacy-topbar small{display:block;color:#829dbb;font-size:10px;letter-spacing:1px}.ayna-legacy-topbar strong{font-size:18px}.ayna-ui-action{padding:9px 13px;border-radius:8px;border:1px solid #355377;background:#18314c;color:#dcefff;text-decoration:none;white-space:nowrap}
/* WG old page was bright: darken all surfaces without touching scripts/API */
body:has(#wgShell){background:#080e1b!important;color:#e9f1fc!important}
body:has(#wgShell) #wgShell .top{background:#0b1526!important;border-bottom:1px solid #273b55!important;color:#e9f1fc!important}
body:has(#wgShell) #wgShell .top h1,body:has(#wgShell) #wgShell .top p{color:#e9f1fc!important}
body:has(#wgShell) #wgShell .top p{color:#91a8c4!important}
body:has(#wgShell) #wgShell .pane,body:has(#wgShell) #wgShell .metric,body:has(#wgShell) #wgShell .serverItem,body:has(#wgShell) #wgShell .tabPane,body:has(#wgShell) #wgShell .settingsGrid>div,body:has(#wgShell) #wgShell .statsData>div{background:#111c2d!important;color:#e9f1fc!important;border-color:#2a405b!important}
body:has(#wgShell) #wgShell .m-blue,body:has(#wgShell) #wgShell .m-green,body:has(#wgShell) #wgShell .m-purple,body:has(#wgShell) #wgShell .m-amber{background:#132740!important}
body:has(#wgShell) #wgShell .serverItem.selected{background:#1a4167!important;border-color:#308af2!important}
body:has(#wgShell) #wgShell .tabs,body:has(#wgShell) #wgShell .tableFoot{border-color:#2a405b!important}
body:has(#wgShell) #wgShell .tabs button,body:has(#wgShell) #wgShell button:not(.primary):not(.dangerOutline),body:has(#wgShell) #wgShell input,body:has(#wgShell) #wgShell select,body:has(#wgShell) #wgShell textarea,body:has(#wgShell) #wgShell .graphArea,body:has(#wgShell) #wgShell .tabPane textarea{background:#0c1a2c!important;color:#e3eefc!important;border-color:#304b6d!important}
body:has(#wgShell) #wgShell .tabs button.active{border-bottom-color:#2f81f7!important;color:#8dc9ff!important}
body:has(#wgShell) #wgShell .peerTable th{background:#14243a!important;color:#a7bdd8!important}
body:has(#wgShell) #wgShell .peerTable td{color:#dce9f7!important;border-color:#263a54!important}
body:has(#wgShell) #wgShell .serverHead p,body:has(#wgShell) #wgShell .note,body:has(#wgShell) #wgShell .tableFoot,body:has(#wgShell) #wgShell .metric small,body:has(#wgShell) #wgShell .metric span:last-child,body:has(#wgShell) #wgShell .settingsGrid label{color:#94abc6!important}
body:has(#wgShell) #wgShell .modal,body:has(#wgShell) #wgShell .alert,body:has(#wgShell) #wgShell .status.neutral{background:#172940!important;color:#e9f1fc!important;border-color:#315078!important}
body:has(#wgShell) #wgShell .status.ok,body:has(#wgShell) #wgShell .pill.online{background:#113c2f!important;color:#7aebbf!important}
body:has(#wgShell) #wgShell .status.bad,body:has(#wgShell) #wgShell .pill.offline{background:#46212a!important;color:#ffc3d0!important}
body:has(#wgShell) #wgShell .peerActions button{background:#213955!important;color:#cae7ff!important}
body:has(#wgShell) #wgShell .peerActions button.del{background:#41212d!important;color:#ffbacb!important}
body:has(#wgShell) #wgShell .quickGrid button{background:#112840!important;color:#5dbbfc!important;border-color:#2b4868!important}
body:has(#wgShell) #wgShell .quickGrid small{color:#bdd2ea!important}
/* ACS: preserve operations and panels but replace unrelated purple accent with AYNA blue */
body:has(#side.ayna-unified-side) .purplebtn{background:#216be3!important;border-color:#3375e4!important}
body:has(#side.ayna-unified-side) .detailtabs button.active{background:#176ce2!important}
body:has(#side.ayna-unified-side) .branditem.selected{border-color:#4cc5f7!important;box-shadow:0 0 0 1px #42baf9}
/* Legacy responsive navigation */
@media(max-width:1040px){.ayna-unified-side{width:215px!important;min-width:215px!important;flex-basis:215px!important;max-width:215px!important}.ayna-side-brandtext{font-size:12px}.ayna-side-link{font-size:12px!important}body:has(#wgShell) #wgShell{grid-template-columns:215px minmax(0,1fr)!important}body:has(.shell>.sidebar.ayna-unified-side) .shell{grid-template-columns:215px minmax(0,1fr)!important}body:has(#aynaShell) #aynaShell{grid-template-columns:215px minmax(0,1fr)!important}body:has(#sidebar.ayna-unified-side)>main{margin-left:215px!important}}
@media(max-width:760px){.ayna-unified-side{position:fixed!important;left:-265px!important;top:0!important;z-index:58!important;transition:left .2s;min-height:100vh!important;height:100vh!important;width:246px!important;min-width:246px!important;max-width:246px!important;flex-basis:246px!important;display:flex!important}.ayna-unified-side.ayna-drawer-open{left:0!important}.ayna-mobile-toggle{display:block!important}body:has(#sidebar.ayna-unified-side)>main{margin-left:0!important}body:has(#wgShell) #wgShell{display:block!important}body:has(.shell>.sidebar.ayna-unified-side) .shell,body:has(#aynaShell) #aynaShell{display:block!important;grid-template-columns:1fr!important}body:has(#aynaShell) #aynaSidebar{position:fixed!important;left:-265px!important;width:246px!important}body:has(#aynaShell) #aynaSidebar.ayna-drawer-open{left:0!important}body:has(#wgShell) #wgShell>.content{width:100%!important}body:has(#side.ayna-unified-side) .layout{display:block!important}body:has(#side.ayna-unified-side) .layout>main{width:100%!important}body:has(>aside.sidebar.ayna-unified-side)>main{width:100%!important}body .topbar{padding-left:58px!important}body:has(#wgShell) #wgShell .top{padding-left:60px!important}body:has(#aynaShell) .ayna-content{padding:15px!important}}
/* Dashboard utama uses a fixed sidebar in its original layout; prevent pushing main below fold. */
body:has(>aside#sidebar.ayna-unified-side)>aside#sidebar.ayna-unified-side{position:fixed!important;inset:0 auto 0 0!important;width:246px!important;height:100vh!important;z-index:10!important}
@media(max-width:1040px){body:has(>aside#sidebar.ayna-unified-side)>aside#sidebar.ayna-unified-side{width:215px!important}}
@media(max-width:760px){body:has(>aside#sidebar.ayna-unified-side)>aside#sidebar.ayna-unified-side{position:fixed!important;left:-265px!important;top:0!important;width:246px!important}body:has(>aside#sidebar.ayna-unified-side)>aside#sidebar.ayna-drawer-open{left:0!important}}

/* Paket Internet uses its existing form and API, not a second Pelanggan screen. */
body.ayna-packages-view #page-customers>:not(#cmPackages){display:none!important}
body.ayna-packages-view #cmPackages{margin:0!important}
body:has(#aynaShell){overflow-x:hidden!important}
/* Legacy page contains an inline display:block!important override; restore the native two-column shell. */
@media(min-width:761px){body:has(#aynaShell) #aynaShell{display:grid!important;grid-template-columns:246px minmax(0,1fr)!important;align-items:stretch!important}body:has(#aynaShell) #aynaSidebar{left:auto!important;right:auto!important;position:sticky!important}}
/* Disable the legacy slide-out menu: unified sidebar is the single visible navigation. */
body:has(#aynaShell) #aynaSidebar.ayna-unified-side{transform:none!important;transition:none!important;left:auto!important;box-shadow:none!important;z-index:10!important}
body:has(#aynaShell) #aynaMenuToggle,body:has(#aynaShell) #aynaMenuBackdrop{display:none!important}
@media(max-width:760px){body:has(#aynaShell) #aynaSidebar.ayna-unified-side{left:-265px!important;z-index:58!important}body:has(#aynaShell) #aynaSidebar.ayna-drawer-open{left:0!important}}

/* Remove abandoned bright outer surface from the legacy admin page. */
body:has(#aynaShell),body:has(#aynaShell)>main,body:has(#aynaShell) #app{background:#080e1b!important;background-image:none!important}

/* Pengaturan submenu – one unified sidebar; no nested dashboard. */
.ayna-side-settings{width:100%}
.ayna-unified-side .ayna-side-settings-trigger{cursor:pointer}
.ayna-side-chevron{margin-left:auto;font-size:19px;color:#88bbdf;transition:transform .15s}
.ayna-side-settings-trigger[aria-expanded="true"] .ayna-side-chevron{transform:rotate(180deg)}
.ayna-settings-subnav{display:flex;flex-direction:column;gap:3px;padding:3px 0 8px 27px;border-left:1px solid #304761;margin-left:20px}
.ayna-settings-subnav[hidden]{display:none!important}
.ayna-unified-side .ayna-side-sub{display:flex;gap:8px;align-items:center;min-height:35px;padding:8px 9px;border-radius:8px;font-size:12px;color:#aebfd8;text-decoration:none}
.ayna-unified-side .ayna-side-sub:hover,.ayna-unified-side .ayna-side-sub.is-current{color:#fff;background:#1d3957}
.ayna-unified-side .ayna-side-sub.is-current{box-shadow:inset 2px 0 #45caff}
@media(max-width:1000px) and (min-width:651px){.ayna-settings-subnav{padding-left:0;margin-left:0}.ayna-unified-side .ayna-side-sub{font-size:10px;padding:7px 2px;word-break:break-word}.ayna-side-settings-trigger .ayna-side-chevron{display:none}}
