/* XtremeX Billing R6.6.90-C16: ordered consolidation of 21 existing stylesheets. */
/* Original CSS remains on disk. Sequence is identical to C15 for cascade compatibility. */

/* BEGIN assets/css/v2469-glass-contrast.css */
/* XtremeX Billing V246.9 — contrast-safe glass theme correction.
   Loaded LAST in <head> after existing CSS. Visual only: no layout/logic/API changes. */

:root {
  --xtx-v249-accent:#2587ef;
  --xtx-v249-accent2:#23b8ba;
  --xtx-v249-glass-outline:rgba(126,167,217,.34);
}

/* Match the actual light-mode app shell, not only the <body> backdrop. */
body.light-mode .main-content {
  background:
    radial-gradient(ellipse at 16% 4%,rgba(82,159,234,.20),transparent 35%),
    radial-gradient(ellipse at 84% 36%,rgba(78,199,194,.12),transparent 33%),
    linear-gradient(135deg,#edf3fc 2%,#f7f9ff 52%,#edf5fa 100%) !important;
}
body.light-mode .content-area {background:transparent !important;}
/* Keep the live light-mode navigation/header dark with visible light text. */
body.light-mode .main-content > .topbar,
body.light-mode .topbar {
  background:linear-gradient(110deg,#10314e,#0b2038) !important;
  border-bottom:1px solid rgba(107,173,225,.28) !important;
  color:#eff7ff !important;
}

/* The live dashboard uses final-kpi/final-panel rather than generic .stat-card. */
body.light-mode .main-content .final-ops-dashboard .final-kpi,
body.light-mode .main-content .final-ops-dashboard .final-panel,
body.light-mode .main-content .glass,
body.light-mode .main-content .card,
body.light-mode .main-content .stat-card,
body.light-mode .main-content .reference-table-card,
body.light-mode .main-content .reference-filter-card,
body.light-mode .main-content .reference-filter-bar,
body.light-mode .main-content .bulk-action-panel,
body.light-mode .main-content .configuration-menu-card,
body.light-mode .main-content .configuration-content-card,
body.light-mode .main-content .gateway-card,
body.light-mode .main-content #fw110Panel {
  background:linear-gradient(145deg,rgba(255,255,255,.79),rgba(237,248,255,.62)) !important;
  border:1px solid rgba(160,190,222,.52) !important;
  box-shadow:0 12px 34px rgba(48,82,125,.095), inset 0 1px 0 rgba(255,255,255,.85) !important;
  backdrop-filter:blur(18px) saturate(1.18);
  -webkit-backdrop-filter:blur(18px) saturate(1.18);
}
body.light-mode .main-content .final-ops-dashboard .final-panel-head,
body.light-mode .main-content .card-header {
  background:linear-gradient(90deg,rgba(248,252,255,.57),rgba(235,245,255,.23)) !important;
  border-bottom:1px solid rgba(157,190,226,.32) !important;
}
body.light-mode .main-content .final-ops-dashboard .final-kpi {
  border-radius:13px !important;
  overflow:hidden;
}
body.light-mode .main-content .final-ops-dashboard .final-kpi:after {
  content:"";
  display:block !important;
  position:absolute;
  pointer-events:none;
  inset:0;
  background:linear-gradient(120deg,rgba(255,255,255,.20),transparent 56%);
  border-radius:inherit;
}
body.light-mode .main-content .final-ops-dashboard .final-kpi.blue {border-top:3px solid #3086e7 !important;}
body.light-mode .main-content .final-ops-dashboard .final-kpi.green,
body.light-mode .main-content .final-ops-dashboard .final-kpi.teal,
body.light-mode .main-content .final-ops-dashboard .final-kpi.purple {border-top:3px solid #22a58b !important;}
body.light-mode .main-content .final-ops-dashboard .final-kpi.amber,
body.light-mode .main-content .final-ops-dashboard .final-kpi.orange {border-top:3px solid #e59c1b !important;}
body.light-mode .main-content .final-ops-dashboard .final-kpi.red {border-top:3px solid #e95a66 !important;}
body.light-mode .main-content .final-ops-dashboard .final-kpi.violet {border-top:3px solid #8997b2 !important;}
body.light-mode .main-content .final-ops-dashboard .final-kpi span,
body.light-mode .main-content .final-ops-dashboard .final-kpi small {color:#526983 !important;}
body.light-mode .main-content .final-ops-dashboard .final-kpi strong {color:#162c45 !important;}
body.light-mode .main-content .final-ops-dashboard .final-panel-head h3 {color:#193752 !important;}
body.light-mode .main-content .final-ops-dashboard .summary-chip-grid>div,
body.light-mode .main-content .final-ops-dashboard .billing-progress-metrics>div,
body.light-mode .main-content .final-ops-dashboard .invoice-status-grid>div {
  background:rgba(232,244,255,.54) !important;
  border:1px solid rgba(170,198,226,.28) !important;
}

/* Dark-mode dashboard remains readable while receiving the same frosted depth. */
body.dark-mode .main-content .final-ops-dashboard .final-kpi,
body.dark-mode .main-content .final-ops-dashboard .final-panel,
body.dark-mode .main-content .glass,
body.dark-mode .main-content .card,
body.dark-mode .main-content .stat-card {
  background:linear-gradient(145deg,rgba(23,48,74,.76),rgba(11,29,50,.73)) !important;
  border:1px solid rgba(103,158,208,.30) !important;
  box-shadow:0 16px 40px rgba(0,6,17,.25),inset 0 1px 0 rgba(188,225,255,.075) !important;
  backdrop-filter:blur(18px) saturate(1.1);
  -webkit-backdrop-filter:blur(18px) saturate(1.1);
}
body.dark-mode .main-content .final-ops-dashboard .final-kpi strong {color:#f3f8ff !important;}
body.dark-mode .main-content .final-ops-dashboard .final-kpi span {color:#c5d9eb !important;}
body.dark-mode .main-content .final-ops-dashboard .final-kpi small {color:#aac1d6 !important;}
body.dark-mode .main-content .final-ops-dashboard .final-panel {color:#d7e9f9 !important;}
body.dark-mode .main-content .final-ops-dashboard .final-panel-head {
  background:linear-gradient(90deg,rgba(27,64,99,.46),rgba(13,41,70,.24)) !important;
  border-bottom:1px solid rgba(104,154,200,.25) !important;
}
body.dark-mode .main-content .final-ops-dashboard .final-panel-head h3 {color:#eef6ff !important;}

/* ATTENDANCE: isolated page. V246.8 darkened the background without resetting
   the text palette, so restore deliberate readable text on a light glass surface. */
html:has(body.xtx-attendance-page) {background:#edf3fb !important;}
body.xtx-attendance-page {
  color:#18324e !important;
  background:
    radial-gradient(ellipse at 5% 8%,rgba(86,170,239,.18),transparent 35%),
    radial-gradient(ellipse at 90% 12%,rgba(65,187,190,.12),transparent 32%),
    linear-gradient(160deg,#eff5fd,#f8fbff 55%,#edf4fc) !important;
  min-height:100vh;
}
body.xtx-attendance-page .av-wrap {color:#18324e !important;}
body.xtx-attendance-page :is(h1,h2,h3,h4,legend,summary,strong,th) {color:#193452 !important;}
body.xtx-attendance-page :is(p,label,td,span,footer,small) {color:#405b77;}
body.xtx-attendance-page :is(a,header small) {color:#1663b8 !important;}
body.xtx-attendance-page .av-card,
body.xtx-attendance-page .av-tabs,
body.xtx-attendance-page #av-owner-box,
body.xtx-attendance-page .av-location,
body.xtx-attendance-page fieldset {
  color:#18324e !important;
  background:linear-gradient(145deg,rgba(255,255,255,.85),rgba(239,248,255,.73)) !important;
  border:1px solid rgba(149,183,222,.48) !important;
  border-radius:15px;
  box-shadow:0 13px 36px rgba(43,85,134,.105),inset 0 1px 0 rgba(255,255,255,.93) !important;
  backdrop-filter:blur(17px) saturate(1.14);
  -webkit-backdrop-filter:blur(17px) saturate(1.14);
}
body.xtx-attendance-page .av-location {
  background:linear-gradient(145deg,rgba(227,242,255,.76),rgba(249,252,255,.65)) !important;
}
body.xtx-attendance-page .av-tabs button,
body.xtx-attendance-page button {
  color:#234562 !important;
  background:rgba(255,255,255,.76) !important;
  border:1px solid rgba(150,184,220,.57) !important;
  box-shadow:none !important;
  border-radius:10px;
}
body.xtx-attendance-page .av-tabs button:not([aria-selected="true"]){background:transparent !important;border-color:transparent !important;}
body.xtx-attendance-page .av-tabs button:hover,
body.xtx-attendance-page button:hover {background:rgba(221,239,255,.85) !important;}
body.xtx-attendance-page .av-tabs button[aria-selected="true"],
body.xtx-attendance-page button.av-primary,
body.xtx-attendance-page .av-primary {
  color:#fff !important;
  background:linear-gradient(120deg,#206abe,#2786d5) !important;
  border:1px solid #226fc2 !important;
  box-shadow:0 9px 18px rgba(28,100,173,.17) !important;
}
body.xtx-attendance-page .av-tabs button[aria-selected="true"]:hover,
body.xtx-attendance-page .av-primary:hover {background:linear-gradient(120deg,#185aab,#2079c8) !important;}
body.xtx-attendance-page :is(input,select,textarea) {
  background:rgba(255,255,255,.94) !important;
  border:1px solid #b9cade !important;
  border-radius:9px;
  color:#18324e !important;
  box-shadow:none !important;
  color-scheme:light;
}
body.xtx-attendance-page :is(input,select,textarea):focus {
  outline:2px solid rgba(43,122,203,.5);
  outline-offset:1px;
}
body.xtx-attendance-page :is(input,select,textarea)::placeholder {color:#6b8097 !important;opacity:1;}
body.xtx-attendance-page select option {background:#fff;color:#18324e;}
body.xtx-attendance-page input[type=checkbox] {accent-color:#2379cf;background:#fff !important;}
body.xtx-attendance-page :is(th,#av-report-table th) {
  color:#1b3b5c !important;
  background:linear-gradient(180deg,#eaf3fd,#e2eefb) !important;
  border-bottom:1px solid #c7d9eb !important;
}
body.xtx-attendance-page td {color:#27415d !important;border-bottom:1px solid #dce7f2 !important;}
body.xtx-attendance-page .av-badge.present {background:#dff6e8;color:#12633e;}
body.xtx-attendance-page .av-badge.absent {background:#ffe9e9;color:#922b2b;}
body.xtx-attendance-page .av-badge.late {background:#fff1d1;color:#83580b;}
body.xtx-attendance-page #av-message:not(:empty) {
  color:#1e4a78 !important;
  background:linear-gradient(135deg,rgba(224,240,255,.95),rgba(238,247,255,.86)) !important;
  border:1px solid #accbee !important;
}
body.xtx-attendance-page #av-message.error:not(:empty) {
  color:#8c242e !important;
  background:#ffeded !important;
  border-color:#efb0b6 !important;
}
body.xtx-attendance-page pre {color:#193452 !important;background:#e8f1fc !important;}
body.xtx-attendance-page footer {color:#58728e !important;}
body.xtx-attendance-page button:disabled {opacity:.53 !important;cursor:not-allowed;}

/* Keyboard focus is visible on glass surfaces. */
body.xtx-attendance-page button:focus-visible,
body.xtx-attendance-page a:focus-visible,
body.light-mode .main-content .dashboard-clickable:focus-visible {
  outline:3px solid #287bd1 !important;
  outline-offset:3px;
}

@media (prefers-reduced-motion:reduce){
  body.xtx-attendance-page .av-card,
  .main-content .final-kpi,
  .main-content .final-panel {transition:none !important;transform:none !important;}
}

/* One-time Main Officer setup page also received V246.8's global dark styles. */
html:has(body.xtx-setup-page){background:#f0f5fc !important;}
body.xtx-setup-page {
  color:#193552 !important;
  background:radial-gradient(ellipse at 8% 6%,rgba(86,158,241,.16),transparent 42%),
             linear-gradient(160deg,#eef5fd,#f8fbff) !important;
}
body.xtx-setup-page :is(h1,h2,h3,p,label,strong,b){color:#193552 !important;}
body.xtx-setup-page .card {
  color:#193552 !important;
  background:linear-gradient(145deg,rgba(255,255,255,.88),rgba(240,248,255,.77)) !important;
  border:1px solid rgba(155,186,224,.47) !important;
  box-shadow:0 12px 33px rgba(45,80,126,.1) !important;
  backdrop-filter:blur(15px);
  -webkit-backdrop-filter:blur(15px);
}
body.xtx-setup-page :is(input,select){background:#fff!important;color:#193552!important;border:1px solid #b6cbe0!important;}
body.xtx-setup-page button{background:#1c72bc!important;color:#fff!important;border-color:#1c72bc!important;}
body.xtx-setup-page .ok {color:#147449 !important;}
body.xtx-setup-page .error {color:#a42432 !important;}
/* END assets/css/v2469-glass-contrast.css */

/* BEGIN assets/css/v24610-search-glass-polish.css */
/* XtremeX V246.10 — compact, contrast-safe polish ON TOP of V246.9.
   Scope: top global search and dashboard KPI/panel glass. No layout/menu/JS/data changes. */

/* The existing broad V246.8 input rule made light-mode search input pale
   while its text stayed white. Restore one dark, high-contrast search control. */
body.light-mode .topbar .global-search-shell,
body.dark-mode .topbar .global-search-shell,
.topbar .global-search-shell {
  color:#ebf5ff !important;
  background:linear-gradient(115deg,rgba(12,35,62,.94),rgba(17,49,79,.94)) !important;
  border:1px solid rgba(112,179,235,.46) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.065), 0 2px 8px rgba(0,10,25,.11) !important;
  -webkit-backdrop-filter:blur(12px);
  backdrop-filter:blur(12px);
  transition:border-color .17s ease,box-shadow .17s ease;
}
body.light-mode .topbar .global-search-shell:focus-within,
body.dark-mode .topbar .global-search-shell:focus-within,
.topbar .global-search-shell:focus-within {
  border-color:#8ad1ff !important;
  box-shadow:0 0 0 3px rgba(71,173,255,.20), inset 0 1px 0 rgba(255,255,255,.07) !important;
}
body.light-mode .topbar .global-search-shell input#global-search-input[type="search"],
body.dark-mode .topbar .global-search-shell input#global-search-input[type="search"],
.topbar .global-search-shell input#global-search-input[type="search"] {
  color:#f8fcff !important;
  -webkit-text-fill-color:#f8fcff !important;
  caret-color:#90d7ff !important;
  background:transparent !important;
  background-color:transparent !important;
  box-shadow:none !important;
  border:0 !important;
  outline:0 !important;
  opacity:1 !important;
  color-scheme:dark;
}
body.light-mode .topbar .global-search-shell input#global-search-input::placeholder,
body.dark-mode .topbar .global-search-shell input#global-search-input::placeholder,
.topbar .global-search-shell input#global-search-input::placeholder {
  color:#bfd7ef !important;
  -webkit-text-fill-color:#bfd7ef !important;
  opacity:1 !important;
}
.topbar .global-search-shell input#global-search-input::selection {
  background:#3b8fd6 !important;
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
}
/* Chrome may paint an autofilled or restored input with its own light background. */
.topbar .global-search-shell input#global-search-input:-webkit-autofill,
.topbar .global-search-shell input#global-search-input:-webkit-autofill:hover,
.topbar .global-search-shell input#global-search-input:-webkit-autofill:focus {
  -webkit-text-fill-color:#f8fcff !important;
  -webkit-box-shadow:0 0 0 1000px #102c49 inset !important;
  box-shadow:0 0 0 1000px #102c49 inset !important;
  caret-color:#90d7ff !important;
}
.topbar .global-search-shell > i {color:#98d4ff !important;}

/* Slightly more translucent than V246.9, but readable, with subtle layered glow.
   Correct actual dashboard class names: final-kpi / final-panel. */
body.light-mode .main-content .final-ops-dashboard .final-kpi {
  background:linear-gradient(138deg,rgba(255,255,255,.70) 0%,rgba(234,247,255,.58) 100%) !important;
  border-color:rgba(148,186,224,.58) !important;
  box-shadow:0 13px 32px rgba(35,77,131,.115), inset 0 1px 0 rgba(255,255,255,.96), inset 0 -1px 0 rgba(142,184,226,.08) !important;
  -webkit-backdrop-filter:blur(23px) saturate(1.25);
  backdrop-filter:blur(23px) saturate(1.25);
}
body.light-mode .main-content .final-ops-dashboard .final-panel {
  background:linear-gradient(160deg,rgba(255,255,255,.76),rgba(238,249,255,.60)) !important;
  border-color:rgba(155,191,225,.55) !important;
  box-shadow:0 14px 34px rgba(36,76,124,.105), inset 0 1px 0 rgba(255,255,255,.91) !important;
  -webkit-backdrop-filter:blur(22px) saturate(1.2);
  backdrop-filter:blur(22px) saturate(1.2);
}
body.light-mode .main-content .final-ops-dashboard .final-kpi:after {
  background:linear-gradient(112deg,rgba(255,255,255,.36) 0%,rgba(255,255,255,.07) 36%,transparent 68%) !important;
}
body.light-mode .main-content .final-ops-dashboard .final-kpi strong {color:#142c46 !important;}
body.light-mode .main-content .final-ops-dashboard .final-kpi span,
body.light-mode .main-content .final-ops-dashboard .final-kpi small {color:#536a84 !important;}

body.dark-mode .main-content .final-ops-dashboard .final-kpi {
  background:linear-gradient(135deg,rgba(25,54,86,.72),rgba(10,28,51,.62)) !important;
  border-color:rgba(119,184,241,.32) !important;
  box-shadow:0 16px 39px rgba(0,5,17,.28),inset 0 1px 0 rgba(219,241,255,.12) !important;
  -webkit-backdrop-filter:blur(23px) saturate(1.18);
  backdrop-filter:blur(23px) saturate(1.18);
}
body.dark-mode .main-content .final-ops-dashboard .final-panel {
  background:linear-gradient(145deg,rgba(21,47,75,.72),rgba(9,25,46,.66)) !important;
  border-color:rgba(107,171,230,.30) !important;
  box-shadow:0 15px 37px rgba(0,5,17,.26),inset 0 1px 0 rgba(219,241,255,.075) !important;
  -webkit-backdrop-filter:blur(22px) saturate(1.15);
  backdrop-filter:blur(22px) saturate(1.15);
}

/* Protect smaller mobile layouts: never force extra width or overflow. */
@media(max-width:760px) {
  .topbar .global-search-shell {min-width:0 !important;max-width:100% !important;}
}
@supports not ((backdrop-filter:blur(2px)) or (-webkit-backdrop-filter:blur(2px))) {
  body.light-mode .main-content .final-ops-dashboard .final-kpi,
  body.light-mode .main-content .final-ops-dashboard .final-panel {background:rgba(248,252,255,.96) !important;}
  body.dark-mode .main-content .final-ops-dashboard .final-kpi,
  body.dark-mode .main-content .final-ops-dashboard .final-panel {background:rgba(14,35,58,.97) !important;}
}
/* END assets/css/v24610-search-glass-polish.css */

/* BEGIN assets/css/v24611-sitewide-glass.css */
/* XtremeX Billing V246.11 -- unified blue/teal frosted glass for the full Web UI.
   Layered after V246.8/V246.9/V246.10. CSS ONLY. No page structure, JS or print markup changes.
   Do not use global input/button/table styles: their specific workflows must remain intact. */

body.light-mode {
  --xtx11-glass-bg:linear-gradient(146deg,rgba(255,255,255,.78) 0%,rgba(245,251,255,.69) 52%,rgba(229,244,255,.60) 100%);
  --xtx11-glass-bg-strong:linear-gradient(153deg,rgba(255,255,255,.88),rgba(238,248,255,.78));
  --xtx11-glass-line:rgba(141,184,224,.51);
  --xtx11-glass-shadow:0 12px 32px rgba(32,71,116,.105), inset 0 1px 0 rgba(255,255,255,.93);
  --xtx11-glass-hover:0 16px 40px rgba(39,80,124,.14), inset 0 1px 0 rgba(255,255,255,.97);
  --xtx11-soft-surface:rgba(233,245,255,.55);
  --xtx11-title:#173650;
  --xtx11-copy:#405976;
  --xtx11-muted:#58728d;
  --xtx11-input-bg:rgba(255,255,255,.90);
  --xtx11-input-border:rgba(143,180,219,.66);
  --xtx11-table-head:linear-gradient(180deg,rgba(232,242,253,.97),rgba(224,237,249,.96));
  --xtx11-table-line:rgba(166,196,224,.48);
  --xtx11-table-hover:rgba(100,171,241,.075);
}
body.dark-mode {
  --xtx11-glass-bg:linear-gradient(143deg,rgba(24,51,80,.79),rgba(11,30,52,.76));
  --xtx11-glass-bg-strong:linear-gradient(150deg,rgba(28,59,89,.89),rgba(13,32,55,.87));
  --xtx11-glass-line:rgba(116,167,216,.31);
  --xtx11-glass-shadow:0 14px 36px rgba(0,6,18,.25),inset 0 1px 0 rgba(205,231,255,.10);
  --xtx11-glass-hover:0 17px 43px rgba(0,6,18,.34),inset 0 1px 0 rgba(205,231,255,.13);
  --xtx11-soft-surface:rgba(61,105,151,.13);
  --xtx11-title:#eaf4ff;
  --xtx11-copy:#c2d7e8;
  --xtx11-muted:#9bb6cf;
  --xtx11-input-bg:rgba(9,27,49,.83);
  --xtx11-input-border:rgba(118,166,215,.40);
  --xtx11-table-head:linear-gradient(180deg,rgba(28,61,96,.96),rgba(20,46,76,.96));
  --xtx11-table-line:rgba(109,157,205,.23);
  --xtx11-table-hover:rgba(100,171,241,.09);
}

/* Every routed application module is mounted inside .main-content. No table widths,
   overflow containers, sticky headers, grid columns or panel positions are changed. */
body:is(.light-mode,.dark-mode) .main-content :is(
  .card,.glass,.stat-card,.final-panel,.final-kpi,
  .reference-table-card,.reference-filter-card,.reference-filter-bar,
  .bulk-action-panel,.gateway-card,.configuration-menu-card,.configuration-content-card,
  .reference-form-section,.reference-form-header,.reference-side-card,
  .ispd-billing-filter-panel,.ispd-billing-table-card,
  .client-reference-filter-panel,.client-reference-table-card,
  .payment-filter-card,.filter-card,.monitor-filter-card,.monitor-table-card,
  .permission-card,.user-summary-card,.user-form-section,
  .client-profile-sidebar,.client-profile-section,.client-service-grid>div,
  .client-payment-summary,.profile-history-row,
  .diag-card,.reconcile-summary-card,.traffic-chart-card,
  .pon-section-panel,.ou-stat,.xtx-hierarchy-card,.xtx-desktop-map-card,
  .field-planner-card,.brand-upload-card,.sms-provider-panel,
  .purchase-form-card,.purchase-total-box,.sf675-card,.sf675-kpi,
  .v235-master-card,.account-profile-card,
  .collector-mini-summary>div,.config-definition-row,.config-geography-flow>div,
  .sa86-modal-card
) {
  background:var(--xtx11-glass-bg) !important;
  border-color:var(--xtx11-glass-line) !important;
  box-shadow:var(--xtx11-glass-shadow) !important;
  -webkit-backdrop-filter:blur(15px) saturate(1.12);
  backdrop-filter:blur(15px) saturate(1.12);
}

/* The legacy Finance Wallet panel uses an ID; keep it out of :is() selector
   groups, otherwise every grouped rule inherits ID-level specificity. */
body:is(.light-mode,.dark-mode) .main-content #fw110Panel {
  background:var(--xtx11-glass-bg) !important;
  border-color:var(--xtx11-glass-line) !important;
  box-shadow:var(--xtx11-glass-shadow) !important;
  -webkit-backdrop-filter:blur(15px) saturate(1.12);
  backdrop-filter:blur(15px) saturate(1.12);
}

/* Restore a solid-enough surface for interactive modals and thick content areas. */
body:is(.light-mode,.dark-mode) .main-content :is(
  .modal-content,.client-profile-modal,.reference-customer-form>.modal-content,
  .client-profile-page-head,.user-editor-modal,.sms-provider-panel
) {
  background:var(--xtx11-glass-bg-strong) !important;
  border-color:var(--xtx11-glass-line) !important;
  box-shadow:0 22px 55px rgba(4,17,34,.20),inset 0 1px 0 rgba(255,255,255,.07) !important;
  -webkit-backdrop-filter:blur(17px) saturate(1.14);
  backdrop-filter:blur(17px) saturate(1.14);
}
body.light-mode .main-content :is(.modal-content,.client-profile-modal,.user-editor-modal) {color:#1c3550 !important;}
body.dark-mode .main-content :is(.modal-content,.client-profile-modal,.user-editor-modal) {color:#e6f1fc !important;}

/* Every high-traffic module gets the same polished section bar, not just Dashboard. */
body:is(.light-mode,.dark-mode) .main-content :is(
  .card-header,.modal-header,.final-panel-head,.reference-table-toolbar,
  .client-reference-table-toolbar,.ispd-billing-table-toolbar,
  .reference-filter-head,.configuration-section-head,
  .client-profile-section-title,.purchase-form-card>h3
) {
  background:linear-gradient(90deg,var(--xtx11-soft-surface),transparent) !important;
  border-bottom-color:var(--xtx11-table-line) !important;
}
body.light-mode .main-content :is(
  .card-header,.modal-header,.final-panel-head h3,
  .configuration-section-head h3,.reference-section-heading h4,
  .client-profile-section-title,.sf675-card h3,.sf675-head h2,
  .user-form-section-head,.client-profile-sidebar h3,
  .reference-form-header h3
) {color:var(--xtx11-title) !important;}
body.dark-mode .main-content :is(
  .card-header,.modal-header,.final-panel-head h3,
  .configuration-section-head h3,.reference-section-heading h4,
  .client-profile-section-title,.sf675-card h3,.sf675-head h2,
  .user-form-section-head,.client-profile-sidebar h3,
  .reference-form-header h3
) {color:var(--xtx11-title) !important;}

/* Balance panels and Finance / HR: same glass without fading semantic amounts. */
body.light-mode .main-content :is(.sf675-kpi b,.sf675-card h3,.sf675-head h2,.permission-card strong) {color:#193450 !important;}
body.dark-mode .main-content :is(.sf675-kpi b,.sf675-card h3,.sf675-head h2,.permission-card strong) {color:#eaf4ff !important;}
body.dark-mode .main-content .sf675-kpi span {color:#aac5de !important;}
body.light-mode .main-content .sf675-kpi span {color:#59718b !important;}
body.dark-mode .main-content .sf675-note {color:#a9bfd5 !important;}
body.light-mode .main-content .sf675-note {color:#526b83 !important;}

/* Staff finance's independent modal has inline CSS with permanent white colors.
   Keep it intentionally light in BOTH app themes to preserve dark-text readability. */
body:is(.light-mode,.dark-mode) .sf675-modal .sf675-modal-box {
  background:linear-gradient(155deg,rgba(255,255,255,.98),rgba(235,247,255,.96)) !important;
  color:#1b3651 !important;
  border:1px solid rgba(154,190,222,.54) !important;
  box-shadow:0 25px 65px rgba(3,18,38,.29) !important;
  -webkit-backdrop-filter:blur(18px);
  backdrop-filter:blur(18px);
}
body:is(.light-mode,.dark-mode) .sf675-modal .sf675-modal-box :is(h3,label) {color:#1b3651 !important;}
body:is(.light-mode,.dark-mode) .sf675-modal .sf675-modal-box :is(input,select,textarea) {
  background:#fff !important;color:#1b3651 !important;border-color:#b9ccdf !important;
}

/* Form fields across Clients, Billing, Accounting, HR, OLT, Network and Settings.
   Excludes checkboxes/radios/files/color/range and the already fixed global search. */
body:is(.light-mode,.dark-mode) .main-content .content-area :is(
  input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=hidden]):not([type=color]):not([type=range]),
  select,textarea,.form-control
) {
  background:var(--xtx11-input-bg) !important;
  border-color:var(--xtx11-input-border) !important;
  color:var(--xtx11-title) !important;
  -webkit-text-fill-color:var(--xtx11-title);
  box-shadow:inset 0 1px 2px rgba(24,58,90,.035) !important;
}
body:is(.light-mode,.dark-mode) .main-content .content-area :is(input,select,textarea,.form-control):focus {
  border-color:#48a3ed !important;
  box-shadow:0 0 0 3px rgba(45,143,231,.15) !important;
}
body:is(.light-mode,.dark-mode) .main-content .content-area :is(input,textarea,.form-control)::placeholder {
  color:var(--xtx11-muted) !important;
  opacity:.84;
}
body.light-mode .main-content .content-area select option {background:#fff;color:#1b3550;}
body.dark-mode .main-content .content-area select option {background:#122b45;color:#eaf4ff;}

/* Keep status colors, payment methods, warning blocks and colored KPI gradients.
   Small light reflection reinforces the glass finish without covering numbers. */
body:is(.light-mode,.dark-mode) .main-content :is(
  .bill-ref-card,.client-ref-card,.gateway-metric,.ispd-bill-card-main
) {
  border:1px solid rgba(255,255,255,.20) !important;
  box-shadow:0 11px 27px rgba(19,52,88,.17),inset 0 1px 0 rgba(255,255,255,.20) !important;
  -webkit-backdrop-filter:blur(10px);
  backdrop-filter:blur(10px);
}
/* Prevent V246.8's generic card background from washing out semantic colored cards. */
body:is(.light-mode,.dark-mode) .main-content .bill-ref-card.cyan {background:linear-gradient(130deg,rgba(13,167,210,.94),rgba(11,130,181,.90)) !important;}
body:is(.light-mode,.dark-mode) .main-content .bill-ref-card.teal {background:linear-gradient(130deg,rgba(39,184,182,.94),rgba(27,152,151,.89)) !important;}
body:is(.light-mode,.dark-mode) .main-content .bill-ref-card.violet {background:linear-gradient(130deg,rgba(128,104,218,.93),rgba(104,81,193,.89)) !important;}
body:is(.light-mode,.dark-mode) .main-content .bill-ref-card.slate {background:linear-gradient(130deg,rgba(93,103,113,.94),rgba(67,75,83,.90)) !important;}
body:is(.light-mode,.dark-mode) .main-content .bill-ref-card.green {background:linear-gradient(130deg,rgba(23,168,117,.94),rgba(11,124,88,.89)) !important;}

/* Table/Filter surfaces: preserve sticky columns, row widths, scroll and action menus. */
body:is(.light-mode,.dark-mode) .main-content :is(
  .table-responsive,.sf675-table-wrap,.ou-table-scroll,.billing-wide-table,
  .reference-table-card,.ispd-billing-table-card,.client-reference-table-card
) {
  border-color:var(--xtx11-glass-line) !important;
}
body.light-mode .main-content :is(.table,.sf675-table,.reference-data-table,.purchase-compact-table) th {
  background:var(--xtx11-table-head) !important;
  border-bottom-color:var(--xtx11-table-line) !important;
  color:#1c4265 !important;
}
body.dark-mode .main-content :is(.table,.sf675-table,.reference-data-table,.purchase-compact-table) th {
  background:var(--xtx11-table-head) !important;
  border-bottom-color:var(--xtx11-table-line) !important;
  color:#e8f4ff !important;
}
body.light-mode .main-content :is(.table,.sf675-table) tbody tr:hover {background:var(--xtx11-table-hover) !important;}
body.dark-mode .main-content :is(.table,.sf675-table) tbody tr:hover {background:var(--xtx11-table-hover) !important;}

/* Route-specific small modules and their nested summaries (HR, purchase, OLT). */
body:is(.light-mode,.dark-mode) .main-content :is(
  .summary-chip-grid>div,.billing-progress-metrics>div,.invoice-status-grid>div,
  .config-definition-row,.client-live-grid>div,.client-service-grid>div,
  .sms-template-row,.sms-group-row,.profile-history-row,
  .ou-filters,.mr-summary-strip,.as-filters,.pon-summary-review
) {
  border-color:var(--xtx11-glass-line) !important;
  background:var(--xtx11-soft-surface) !important;
}
body.light-mode .main-content :is(.sms-template-row,.sms-group-row,.config-definition-row,.sf675-card) :is(label,strong,h3) {color:#1b3854 !important;}
body.dark-mode .main-content :is(.sms-template-row,.sms-group-row,.config-definition-row,.sf675-card) :is(label,strong,h3) {color:#e2f1ff !important;}

/* Keep dropdowns, print receipts, map canvas and chart images fully legible. */
body.light-mode .main-content :is(.ispd-action-dropdown-menu,.client-action-dropdown .ispd-action-dropdown-menu) {
  background:#fff !important;color:#1b3651 !important;border-color:#cdddeb !important;
}
body.dark-mode .main-content :is(.ispd-action-dropdown-menu,.client-action-dropdown .ispd-action-dropdown-menu) {
  background:#102b46 !important;color:#e7f3ff !important;border-color:#3c6288 !important;
}

/* Existing independent Attendance page: preserve V246.9 high contrast.
   Only unify the frosted edge/shadow and premium blue tabs. */
body.xtx-attendance-page :is(.av-card,.av-tabs,#av-owner-box,.av-location) {
  border-color:rgba(144,183,223,.54) !important;
  box-shadow:0 14px 35px rgba(35,76,122,.105),inset 0 1px 0 rgba(255,255,255,.91) !important;
  -webkit-backdrop-filter:blur(18px) saturate(1.15);
  backdrop-filter:blur(18px) saturate(1.15);
}
body.xtx-attendance-page .av-tabs button[aria-selected="true"] {
  background:linear-gradient(110deg,#2077ce,#289bdb) !important;
  box-shadow:0 8px 18px rgba(24,115,195,.20) !important;
}
/* Standalone Super Admin officer setup is a light page, not a dark admin shell. */
body.xtx-setup-page .card {
  background:linear-gradient(145deg,rgba(255,255,255,.85),rgba(235,246,255,.78)) !important;
  border-color:rgba(151,190,225,.56) !important;
  box-shadow:0 12px 30px rgba(41,82,129,.12) !important;
  -webkit-backdrop-filter:blur(14px);
  backdrop-filter:blur(14px);
}
body.xtx-setup-page :is(select,input) {background:rgba(255,255,255,.92);color:#193752;}

/* Add dimension without moving cards or breaking compact layouts. */
@media (hover:hover) and (pointer:fine) {
  body:is(.light-mode,.dark-mode) .main-content :is(.card,.stat-card,.sf675-card,.reference-table-card,.final-panel):hover {
    border-color:rgba(90,167,234,.48) !important;
    box-shadow:var(--xtx11-glass-hover) !important;
  }
}
@media (max-width:760px) {
  body:is(.light-mode,.dark-mode) .main-content :is(.card,.glass,.sf675-card,.reference-table-card) {
    -webkit-backdrop-filter:blur(9px);
    backdrop-filter:blur(9px);
  }
}
@supports not ((backdrop-filter:blur(2px)) or (-webkit-backdrop-filter:blur(2px))) {
  body.light-mode .main-content :is(.card,.glass,.stat-card,.reference-table-card,.sf675-card) {background:rgba(250,253,255,.98) !important;}
  body.dark-mode .main-content :is(.card,.glass,.stat-card,.reference-table-card,.sf675-card) {background:rgba(15,35,57,.98) !important;}
}

@media print {
  body:is(.light-mode,.dark-mode) .main-content #fw110Panel {
    background:#fff !important;box-shadow:none !important;
    -webkit-backdrop-filter:none !important;backdrop-filter:none !important;
  }
}
/* Printing is a financial workflow: avoid frosted overlays on receipts/invoices. */
@media print {
  /* Stronger than legacy module overrides and the sitewide glass group. */
  body:is(.light-mode,.dark-mode) .main-content.main-content :is(
    .card,.glass,.stat-card,.final-panel,.final-kpi,.reference-table-card,
    .reference-filter-card,.reference-form-section,.sf675-card,.modal-content,
    .bill-ref-card,.client-ref-card
  ) {
    background:#fff !important;
    box-shadow:none !important;
    -webkit-backdrop-filter:none !important;
    backdrop-filter:none !important;
  }
}
/* END assets/css/v24611-sitewide-glass.css */

/* BEGIN assets/css/v24612-billing-accounting-compact.css */
/* XtremeX Billing V246.12 -- compact Billing List and Accounting workspace.
   Intentional narrow selectors: no global input, chart, modal, receipt, map or print changes.
   Layer after V246.11 sitewide glass. Menu and all billing/accounting actions stay intact. */

/* BILLING: seven summary cards on one sensible desktop row, compact tools. */
body .main-content .reference-billing-page .reference-page-head {
  margin-bottom:9px !important;
  gap:10px !important;
}
body .main-content .reference-billing-page .reference-page-head h2 {
  font-size:19px !important;
  line-height:1.18 !important;
}
body .main-content .reference-billing-page .reference-page-head p {
  font-size:11px !important;
  line-height:1.3 !important;
}
body .main-content .reference-billing-page .reference-page-head .btn {
  min-height:33px !important;
  padding:6px 10px !important;
  font-size:11px !important;
  border-radius:10px !important;
}
body .main-content .reference-billing-page #billing-invoice-pane {
  padding-bottom:10px !important;
}
body .main-content .reference-billing-page #billing-invoice-pane .xtx-v238d-action-row,
body .main-content .reference-billing-page #billing-invoice-pane > .ispd-filter-toggle-row {
  padding:3px 0 6px !important;
  margin-bottom:5px !important;
}
body .main-content .reference-billing-page #billing-actions-toggle,
body .main-content .reference-billing-page #billing-filter-toggle {
  min-width:112px !important;
  min-height:30px !important;
  padding:6px 12px !important;
  font-size:10.5px !important;
  line-height:1.2 !important;
  border-radius:19px !important;
}
body .main-content .reference-billing-page #billing-bulkbar-v238d {
  margin:3px 4px 7px !important;
}
body .main-content .reference-billing-page #billing-bulk-actions {
  display:grid !important;
  grid-template-columns:repeat(7,minmax(0,1fr)) !important;
  gap:5px !important;
}
body .main-content .reference-billing-page #billing-bulk-actions :is(button,a) {
  min-width:0 !important;
  min-height:32px !important;
  padding:5px 7px !important;
  border-radius:16px !important;
  font-size:10px !important;
  line-height:1.15 !important;
  white-space:normal !important;
  text-align:center !important;
  box-sizing:border-box;
}
body .main-content .reference-billing-page #billing-bulk-actions :is(button,a) i {
  flex:none;
}
body .main-content .reference-billing-page #billing-invoice-pane .ispd-billing-summary {
  display:grid !important;
  grid-template-columns:repeat(7,minmax(0,1fr)) !important;
  gap:6px !important;
  margin:0 4px 7px !important;
}
body .main-content .reference-billing-page #billing-invoice-pane .ispd-bill-card {
  min-width:0 !important;
  min-height:60px !important;
  border-radius:9px !important;
  overflow:hidden;
}
body .main-content .reference-billing-page #billing-invoice-pane .ispd-bill-card-main {
  min-height:39px !important;
  padding:5px 7px !important;
  gap:6px !important;
}
body .main-content .reference-billing-page #billing-invoice-pane .ispd-bill-card-main>i {
  font-size:17px !important;
  min-width:19px;
  text-align:center;
}
body .main-content .reference-billing-page #billing-invoice-pane .ispd-bill-card-main>div {
  min-width:0;
}
body .main-content .reference-billing-page #billing-invoice-pane .ispd-bill-card span {
  font-size:10px !important;
  line-height:1.12 !important;
  font-weight:650 !important;
}
body .main-content .reference-billing-page #billing-invoice-pane .ispd-bill-card strong {
  font-size:15.5px !important;
  line-height:1.08 !important;
  margin-top:1px !important;
  font-variant-numeric:tabular-nums;
  overflow-wrap:anywhere;
}
body .main-content .reference-billing-page #billing-invoice-pane .ispd-bill-card small {
  display:flex !important;
  min-height:19px !important;
  align-items:center;
  justify-content:center;
  font-size:9px !important;
  line-height:1.1 !important;
  padding:3px 5px !important;
  text-align:center !important;
}

/* Billing advanced filter and quick status/filter ribbon. */
body .main-content .reference-billing-page #billing-filter-panel {
  padding:8px 9px 10px !important;
  gap:7px 9px !important;
  grid-template-columns:repeat(6,minmax(0,1fr)) !important;
}
body .main-content .reference-billing-page #billing-filter-panel label {
  font-size:10.5px !important;
  line-height:1.22 !important;
  margin-bottom:3px !important;
}
body .main-content .reference-billing-page #billing-filter-panel .form-control {
  height:33px !important;
  min-height:33px !important;
  font-size:12px !important;
  padding:5px 7px !important;
}
body .main-content .reference-billing-page #billing-filter-panel .btn {
  min-height:33px !important;
  font-size:11px !important;
  padding:6px 11px !important;
}
body .main-content .reference-billing-page #billing-invoice-pane .xtx-billing-quick-filter {
  margin:5px 0 7px !important;
  padding:6px 8px !important;
  gap:7px !important;
  border-radius:11px !important;
}
body .main-content .reference-billing-page #billing-invoice-pane .xtx-bill-status-pills {
  gap:5px !important;
}
body .main-content .reference-billing-page #billing-invoice-pane .xtx-bill-status-pills button {
  min-height:30px !important;
  padding:5px 8px !important;
  border-radius:8px !important;
  font-size:10.5px !important;
}
body .main-content .reference-billing-page #billing-invoice-pane .xtx-bill-receiver-filter select {
  min-height:32px !important;
  height:32px !important;
  padding:5px 9px !important;
  font-size:11px !important;
}

/* Billing data table: reduce vertical height, keep horizontal scrolling and full columns. */
body .main-content .reference-billing-page #billing-invoice-pane .ispd-billing-table-card {
  margin:0 4px !important;
  border-radius:12px !important;
}
body .main-content .reference-billing-page #billing-invoice-pane .ispd-billing-table-toolbar {
  min-height:41px !important;
  padding:5px 9px !important;
  font-size:10.5px !important;
  gap:8px !important;
}
body .main-content .reference-billing-page #billing-invoice-pane .ispd-billing-table-toolbar .form-control {
  min-height:31px !important;
  height:31px !important;
  padding:4px 8px !important;
  font-size:11px !important;
}
body .main-content .reference-billing-page #billing-invoice-pane .ispd-billing-table thead th {
  padding:7px 6px !important;
  font-size:11px !important;
  line-height:1.16 !important;
}
body .main-content .reference-billing-page #billing-invoice-pane .ispd-billing-table tbody td {
  padding:5px 6px !important;
  font-size:11.5px !important;
  line-height:1.18 !important;
  vertical-align:middle !important;
}
body .main-content .reference-billing-page #billing-invoice-pane .ispd-billing-table :is(.ispd-id-state,.xtx-bill-note-inline) {
  margin-top:1px !important;
}
body .main-content .reference-billing-page #billing-invoice-pane .ispd-billing-table .ispd-expire-cell {
  gap:2px !important;
}
/* Preserve readable/tappable payment controls and popup hit areas. */
body .main-content .reference-billing-page #billing-invoice-pane .ispd-billing-table :is(.ispd-more-btn,.ispd-action-dropdown>summary) {
  min-width:30px;
  min-height:30px;
}

/* ACCOUNTING: 10 headline metrics become five per row on desktop. */
body .main-content .accounting-r64 .reference-page-head {
  margin:0 0 10px !important;
  gap:9px !important;
}
body .main-content .accounting-r64 .reference-page-head h2 {
  font-size:19px !important;
  line-height:1.2 !important;
  margin:2px 0 !important;
}
body .main-content .accounting-r64 .reference-page-head p {
  font-size:11.5px !important;
  line-height:1.25 !important;
}
body .main-content .accounting-r64 .reference-page-head .reference-eyebrow {
  font-size:10px !important;
  letter-spacing:.08em !important;
}
body .main-content .accounting-r64 #r64-stats.stats-grid {
  display:grid !important;
  grid-template-columns:repeat(5,minmax(0,1fr)) !important;
  gap:9px !important;
  margin:0 0 11px !important;
}
body .main-content .accounting-r64 #r64-stats .stat-card {
  min-width:0 !important;
  min-height:75px !important;
  padding:11px 13px !important;
  margin:0 !important;
  border-radius:12px !important;
  gap:7px !important;
  align-items:center !important;
  overflow:hidden;
}
body .main-content .accounting-r64 #r64-stats .stat-card .stat-info {
  min-width:0;
}
body .main-content .accounting-r64 #r64-stats .stat-card h3 {
  margin:0 0 3px !important;
  font-size:clamp(17px,1.42vw,20px) !important;
  line-height:1.18 !important;
  letter-spacing:-.02em;
  overflow-wrap:anywhere;
  font-variant-numeric:tabular-nums;
}
body .main-content .accounting-r64 #r64-stats .stat-card p {
  margin:0 !important;
  font-size:11px !important;
  line-height:1.2 !important;
  font-weight:550 !important;
}
body .main-content .accounting-r64 #r64-stats .stat-card:hover {
  transform:translateY(-1px) !important;
}
body .main-content .accounting-r64 #r64-stats .stat-card::after {
  height:2px !important;
}
/* Make other Accounting panels, report headers and tables more information-dense. */
body .main-content .accounting-r64 .card.glass {
  margin-top:10px !important;
  margin-bottom:10px !important;
}
body .main-content .accounting-r64 .card-header {
  padding:9px 12px !important;
  min-height:37px !important;
}
body .main-content .accounting-r64 .card-header h3 {
  font-size:15px !important;
  line-height:1.25 !important;
  margin:0 !important;
}
body .main-content .accounting-r64 .card-body {
  padding:10px 12px !important;
}
body .main-content .accounting-r64 :is(.form-grid,[data-v239-layout="group"]) {
  gap:9px !important;
}
body .main-content .accounting-r64 :is(.btn,.v240-quick a) {
  min-height:33px !important;
  padding:6px 10px !important;
  border-radius:10px !important;
  font-size:11.5px !important;
  line-height:1.25 !important;
}
body .main-content .accounting-r64 .btn.btn-xs {
  min-height:29px !important;
  padding:5px 8px !important;
  font-size:10.5px !important;
}
body .main-content .accounting-r64 .form-control {
  min-height:34px !important;
  height:auto;
  padding:6px 9px !important;
  font-size:12px !important;
  border-radius:10px !important;
}
body .main-content .accounting-r64 #r64-month {
  min-height:34px !important;
  height:34px !important;
  max-width:155px;
}
body .main-content .accounting-r64 .form-grid > :is(input,select,textarea) {
  min-width:0;
}
body .main-content .accounting-r64 .table-responsive :is(th,td) {
  padding:7px 8px !important;
  font-size:11.5px !important;
  line-height:1.3 !important;
  vertical-align:middle !important;
}
body .main-content .accounting-r64 .table-responsive th {
  font-size:11px !important;
}
body .main-content .accounting-r64 #r64-monthly-trend {
  margin-top:9px !important;
}
body .main-content .accounting-r64 :is(.v240-report-fold,.v240-history-fold) {
  margin-top:7px !important;
}
body .main-content .accounting-r64 :is(.v240-report-fold>summary,.v240-history-fold>summary) {
  padding:8px 10px !important;
  font-size:12px !important;
}

/* Existing list theme forces 47px rows. Override only this table, never its widths. */
body .main-content .reference-billing-page #billing-invoice-pane .billing-compact-main-table tbody tr,
body .main-content .reference-billing-page #billing-invoice-pane .billing-compact-main-table tbody td {
  height:40px !important;
  min-height:40px !important;
  max-height:none !important;
}
@media(min-width:1280px) {
  body .main-content .accounting-r64 .reference-page-head > .flex {
    flex-wrap:nowrap !important;
    gap:7px !important;
    flex-shrink:0;
  }
}

/* Breakpoints respect small/medium viewports. Nothing here disables scroll. */
@media(max-width:1279px) {
  body .main-content .reference-billing-page #billing-invoice-pane .ispd-billing-summary {
    grid-template-columns:repeat(4,minmax(0,1fr)) !important;
  }
  body .main-content .reference-billing-page #billing-bulk-actions {
    grid-template-columns:repeat(5,minmax(0,1fr)) !important;
  }
  body .main-content .accounting-r64 #r64-stats.stats-grid {
    grid-template-columns:repeat(4,minmax(0,1fr)) !important;
  }
}
@media(max-width:1000px) {
  body .main-content .reference-billing-page #billing-invoice-pane .ispd-billing-summary,
  body .main-content .accounting-r64 #r64-stats.stats-grid {
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  }
  body .main-content .reference-billing-page #billing-bulk-actions {
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  }
  body .main-content .reference-billing-page #billing-filter-panel {
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  }
}
@media(max-width:700px) {
  body .main-content .reference-billing-page #billing-invoice-pane .ispd-billing-summary,
  body .main-content .accounting-r64 #r64-stats.stats-grid {
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:7px !important;
  }
  body .main-content .reference-billing-page #billing-bulk-actions,
  body .main-content .reference-billing-page #billing-filter-panel {
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }
  body .main-content .reference-billing-page #billing-invoice-pane .xtx-billing-quick-filter,
  body .main-content .reference-billing-page #billing-invoice-pane .ispd-billing-table-toolbar {
    flex-wrap:wrap !important;
  }
  body .main-content .reference-billing-page #billing-invoice-pane .ispd-billing-table-card .table-responsive {
    overflow-x:auto !important;
  }
  body .main-content .accounting-r64 .reference-page-head .flex {
    gap:6px !important;
  }
}
@media(max-width:440px) {
  body .main-content .accounting-r64 #r64-stats.stats-grid {
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }
  body .main-content .accounting-r64 #r64-stats .stat-card {
    min-height:76px !important;
    padding:10px 9px !important;
  }
  body .main-content .accounting-r64 #r64-stats .stat-card h3 {
    font-size:16px !important;
  }
  body .main-content .reference-billing-page #billing-invoice-pane .ispd-bill-card strong {
    font-size:14px !important;
  }
}
@media print {
  body .main-content .reference-billing-page #billing-invoice-pane .ispd-billing-table-card,
  body .main-content .accounting-r64 .stat-card {
    background:#fff !important;
    box-shadow:none !important;
    backdrop-filter:none !important;
    -webkit-backdrop-filter:none !important;
  }
}
/* END assets/css/v24612-billing-accounting-compact.css */

/* BEGIN assets/css/v24613-theme-cards-contrast.css */
/* XtremeX V246.13 | Live ZIP anchored UI refinement.
 * Requires V246.10 / 11 / 12. This is presentation only; no money or state changes.
 * Dashboard-like frosted tinted cards, accessible dark tables, Finance wallets,
 * and Billing's relocated native Show/Hide Actions trigger. */
body.light-mode {
  --xt13-pane:linear-gradient(138deg,rgba(255,255,255,.88),rgba(233,246,255,.76));
  --xt13-line:rgba(140,185,225,.61);
  --xt13-copy:#19344f;
  --xt13-sub:#526f8b;
  --xt13-shadow:0 12px 27px rgba(37,79,124,.115),inset 0 1px 0 rgba(255,255,255,.93);
  --xt13-halo:rgba(55,153,241,.14);
  --xt13-soft:rgba(223,238,251,.56);
}
body.dark-mode {
  --xt13-pane:linear-gradient(135deg,rgba(25,57,90,.88),rgba(10,28,50,.88));
  --xt13-line:rgba(117,170,216,.38);
  --xt13-copy:#e9f5ff;
  --xt13-sub:#afc7db;
  --xt13-shadow:0 14px 32px rgba(1,9,23,.28),inset 0 1px 0 rgba(200,234,255,.10);
  --xt13-halo:rgba(60,150,241,.19);
  --xt13-soft:rgba(67,113,161,.15);
}

/* Keep the heading and Action toggle together. JS moves the original native button,
 * not a clone, so existing handlers/expanded state and user access checks remain. */
body .main-content .reference-billing-page > .reference-page-head.compact-head {
  display:flex !important;
  gap:8px 12px !important;
  align-items:center !important;
  justify-content:flex-start !important;
  flex-wrap:wrap !important;
  margin-bottom:6px !important;
}
body .main-content .reference-billing-page > .reference-page-head.compact-head > :first-child {
  flex:1 1 180px;
  min-width:0;
  order:1;
}
body .main-content .reference-billing-page > .reference-page-head.compact-head > .xtx-v238d-action-row {
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
  flex:0 0 auto;
  min-width:0;
  justify-content:flex-end !important;
  align-self:center;
  order:2;
}
body .main-content .reference-billing-page > .reference-page-head.compact-head > #billing-header-actions {
  order:3;
  flex:0 1 auto;
  min-width:0;
  align-items:center;
  gap:5px;
}
body .main-content .reference-billing-page #billing-actions-toggle {
  min-width:112px !important;
  min-height:32px !important;
  padding:7px 12px !important;
  border:1px solid rgba(91,174,227,.27) !important;
  border-radius:18px !important;
  background:linear-gradient(135deg,#164664,#1c6689) !important;
  color:#fff !important;
  font-size:11px !important;
  line-height:1.2 !important;
}
body .main-content .reference-billing-page > .reference-page-head .xtx13-hide-action-row {display:none !important;}
body .main-content .reference-billing-page #billing-bulkbar-v238d {
  margin-top:0 !important;
  margin-bottom:6px !important;
}
body .main-content .reference-billing-page #billing-bulk-actions {
  margin-top:0 !important;
}
@media(max-width:800px) {
  body .main-content .reference-billing-page > .reference-page-head.compact-head > :first-child {flex:1 1 130px;}
  body .main-content .reference-billing-page > .reference-page-head.compact-head > #billing-header-actions {
    order:4;
    flex:1 1 100%;
    justify-content:flex-start;
  }
}
@media(max-width:480px) {
  body .main-content .reference-billing-page #billing-actions-toggle{min-width:100px !important;padding:7px 9px !important;}
}

/* Real dashboard classes keep their own layout. Apply matching frosted gradient to
 * client, billing and other metric summaries, with accent top stripes for quick scanning. */
body:is(.light-mode,.dark-mode) .main-content :is(
  .client-ref-card,.ispd-bill-card,.bill-ref-card,.gateway-metric,
  .collector-mini-summary>div,.summary-chip-grid>div,.billing-progress-metrics>div,
  .invoice-status-grid>div,.ou-stat,.reconcile-summary-card
) {
  background:
    radial-gradient(ellipse at 96% 5%,var(--xt13-halo) 0%,transparent 55%),
    var(--xt13-pane) !important;
  color:var(--xt13-copy) !important;
  border:1px solid var(--xt13-line) !important;
  border-top:3px solid var(--xt13-accent,#2b91e8) !important;
  border-radius:12px !important;
  box-shadow:var(--xt13-shadow) !important;
  -webkit-backdrop-filter:blur(19px) saturate(1.18);
  backdrop-filter:blur(19px) saturate(1.18);
  overflow:hidden;
}
body:is(.light-mode,.dark-mode) .main-content :is(.client-ref-card,.ispd-bill-card,.bill-ref-card,.gateway-metric).cyan {--xt13-accent:#2797df;--xt13-halo:rgba(41,163,229,.20);}
body:is(.light-mode,.dark-mode) .main-content :is(.client-ref-card,.ispd-bill-card,.bill-ref-card,.gateway-metric).teal {--xt13-accent:#16b99e;--xt13-halo:rgba(30,189,153,.19);}
body:is(.light-mode,.dark-mode) .main-content :is(.client-ref-card,.ispd-bill-card,.bill-ref-card,.gateway-metric).violet {--xt13-accent:#9b80e8;--xt13-halo:rgba(156,118,237,.20);}
body:is(.light-mode,.dark-mode) .main-content :is(.client-ref-card,.ispd-bill-card,.bill-ref-card,.gateway-metric).slate {--xt13-accent:#8098b2;--xt13-halo:rgba(119,148,178,.17);}
body:is(.light-mode,.dark-mode) .main-content :is(.bill-ref-card,.gateway-metric).green {--xt13-accent:#1bb77f;--xt13-halo:rgba(24,180,122,.16);}
body:is(.light-mode,.dark-mode) .main-content :is(.gateway-metric).balance {--xt13-accent:#1ab980;}
body:is(.light-mode,.dark-mode) .main-content :is(.gateway-metric).today {--xt13-accent:#2399ea;}
body:is(.light-mode,.dark-mode) .main-content :is(.gateway-metric).month {--xt13-accent:#edaa39;}
body:is(.light-mode,.dark-mode) .main-content :is(.gateway-metric).failed {--xt13-accent:#e86676;}
body:is(.light-mode,.dark-mode) .main-content .client-ref-card {padding:9px 12px !important;min-height:64px !important;}
body:is(.light-mode,.dark-mode) .main-content .client-ref-card > i {color:var(--xt13-accent,#3aa3ef) !important;}
body:is(.light-mode,.dark-mode) .main-content .ispd-bill-card-main {
  background:transparent !important;
  min-height:40px !important;
}
body:is(.light-mode,.dark-mode) .main-content .ispd-bill-card-main > i {color:var(--xt13-accent,#3aa3ef) !important;}
body:is(.light-mode,.dark-mode) .main-content .ispd-bill-card > small {
  background:var(--xt13-soft) !important;
  border-top:1px solid var(--xt13-line);
}
body:is(.light-mode,.dark-mode) .main-content :is(.client-ref-card,.ispd-bill-card,.bill-ref-card,.gateway-metric) :is(strong,span,small,b) {
  color:var(--xt13-copy) !important;
  -webkit-text-fill-color:var(--xt13-copy);
}
body:is(.light-mode,.dark-mode) .main-content :is(.client-ref-card,.ispd-bill-card,.bill-ref-card,.gateway-metric) :is(small,span) {
  color:var(--xt13-sub) !important;
  -webkit-text-fill-color:var(--xt13-sub);
}
body:is(.light-mode,.dark-mode) .main-content .bill-ref-card {padding:10px 12px !important;}
body:is(.light-mode,.dark-mode) .main-content .gateway-metric {min-height:77px !important;}

/* Finance: 10 headline cards gain distinct accent colors without losing compact grid. */
body:is(.light-mode,.dark-mode) .main-content .accounting-r64 #r64-stats .stat-card {
  --xt13-accent:#2d92ed;
  --xt13-halo:rgba(46,144,239,.16);
  background:radial-gradient(ellipse at 100% 0%,var(--xt13-halo),transparent 58%),var(--xt13-pane) !important;
  border:1px solid var(--xt13-line) !important;
  border-top:3px solid var(--xt13-accent) !important;
  box-shadow:var(--xt13-shadow) !important;
  -webkit-backdrop-filter:blur(19px) saturate(1.2);
  backdrop-filter:blur(19px) saturate(1.2);
}
body .main-content .accounting-r64 #r64-stats .stat-card:nth-child(5n+2){--xt13-accent:#15b9a3;--xt13-halo:rgba(18,185,160,.17);}
body .main-content .accounting-r64 #r64-stats .stat-card:nth-child(5n+3){--xt13-accent:#9c7ce9;--xt13-halo:rgba(157,120,233,.17);}
body .main-content .accounting-r64 #r64-stats .stat-card:nth-child(5n+4){--xt13-accent:#f0af46;--xt13-halo:rgba(240,172,65,.17);}
body .main-content .accounting-r64 #r64-stats .stat-card:nth-child(5n+5){--xt13-accent:#5b9fc9;--xt13-halo:rgba(92,161,208,.14);}
body:is(.light-mode,.dark-mode) .main-content .accounting-r64 #r64-stats .stat-card :is(h3,p){color:var(--xt13-copy) !important;}
body:is(.light-mode,.dark-mode) .main-content .accounting-r64 #r64-stats .stat-card p{color:var(--xt13-sub) !important;}

/* Wallets were hard-coded pale #f8fafc in Finance's own module and became
 * unreadable in dark mode. Give each wallet a distinct, dense glass surface. */
body:is(.light-mode,.dark-mode) .main-content #fw110Panel .fw110-wallet {
  background:var(--xt13-pane) !important;
  border:1px solid var(--xt13-line) !important;
  border-left:3px solid #2da6ef !important;
  border-radius:12px !important;
  box-shadow:var(--xt13-shadow) !important;
  color:var(--xt13-copy) !important;
  min-width:0;
  -webkit-backdrop-filter:blur(13px);
  backdrop-filter:blur(13px);
}
body:is(.light-mode,.dark-mode) .main-content #fw110Panel .fw110-wallet:nth-child(3n+2){border-left-color:#1cc6a1 !important;}
body:is(.light-mode,.dark-mode) .main-content #fw110Panel .fw110-wallet:nth-child(3n+3){border-left-color:#a785ef !important;}
body:is(.light-mode,.dark-mode) .main-content #fw110Panel .fw110-wallet :is(b,span) {color:var(--xt13-copy) !important;}
body:is(.light-mode,.dark-mode) .main-content #fw110Panel .fw110-wallet small {color:var(--xt13-sub) !important;}
body:is(.light-mode,.dark-mode) .main-content #fw110Panel .fw110-number b {color:#15986e !important;}
body.dark-mode .main-content #fw110Panel .fw110-number b {color:#69e4b9 !important;}
body:is(.light-mode,.dark-mode) .main-content #fw110Panel .fw110-heading :is(b,small),
body:is(.light-mode,.dark-mode) .main-content #fw110Panel .fw110-forms :is(h4,label) {color:var(--xt13-copy) !important;}
body:is(.light-mode,.dark-mode) .main-content #fw110Panel .fw110-heading small,
body:is(.light-mode,.dark-mode) .main-content #fw110Panel .fw110-forms label{color:var(--xt13-sub) !important;}
body:is(.light-mode,.dark-mode) .main-content #fw110Panel .fw110-forms form {
  border:1px solid var(--xt13-line) !important;
  background:var(--xt13-pane) !important;
  box-shadow:0 9px 25px rgba(12,49,91,.08),inset 0 1px 0 rgba(255,255,255,.08) !important;
  border-radius:13px !important;
}
body.dark-mode .main-content #fw110Panel :is(input,select,textarea) {
  background:#0e2945 !important;
  border:1px solid #385b7b !important;
  color:#eaf5ff !important;
  -webkit-text-fill-color:#eaf5ff !important;
}
body.dark-mode .main-content #fw110Panel select option {background:#102b48;color:#f3faff;}
body.light-mode .main-content #fw110Panel :is(input,select,textarea) {
  background:rgba(255,255,255,.89) !important;
  border-color:rgba(139,179,216,.66) !important;
  color:#213b54 !important;
  -webkit-text-fill-color:#213b54 !important;
}

/* Client/Billing DataTables, Accounting P&L, Payment History, MikroTik/OLT:
 * older list CSS forces WHITE <td> and action column while dark text was
 * inherited as near-white. Normalize both together, never the table width. */
body.dark-mode .main-content .content-area :is(
  .table-responsive,.xtx-list-table-wrap,.dataTables_wrapper,.ispd-billing-table-card,
  .client-reference-table-card,.reference-table-card,.monitor-table-card
){
  background:rgba(10,29,50,.57) !important;
  border-color:rgba(104,157,208,.36) !important;
  color:#e9f4ff !important;
}
body.dark-mode .main-content .content-area :is(
  table.table,table.data-table,table.xtx-ispdigital-table,table.ispd-billing-table,
  table.client-reference-data-table,table.reference-data-table
) {
  color:#e8f3ff !important;
  background:rgba(10,29,50,.35) !important;
}
body.dark-mode .main-content .content-area :is(
  table.table,table.data-table,table.xtx-ispdigital-table,table.ispd-billing-table,
  table.client-reference-data-table,table.reference-data-table
) tbody tr > td {
  background:#112c47 !important;
  color:#e8f3ff !important;
  border-color:#345371 !important;
  -webkit-text-fill-color:#e8f3ff;
}
body.dark-mode .main-content .content-area :is(
  table.table,table.data-table,table.xtx-ispdigital-table,table.ispd-billing-table,
  table.client-reference-data-table,table.reference-data-table
) tbody tr:nth-child(even) > td {background:#193854 !important;}
body.dark-mode .main-content .content-area :is(
  table.table,table.data-table,table.xtx-ispdigital-table,table.ispd-billing-table,
  table.client-reference-data-table,table.reference-data-table
) tbody tr:hover > td {background:#255074 !important;}
body.dark-mode .main-content .content-area :is(
  table.table,table.data-table,table.xtx-ispdigital-table,table.ispd-billing-table,
  table.client-reference-data-table,table.reference-data-table
) tbody tr > th {
  background:#1a4164 !important;
  color:#f0f8ff !important;
  border-color:#3f658a !important;
  -webkit-text-fill-color:#f0f8ff;
}
body.dark-mode .main-content .content-area :is(
  table.table,table.data-table,table.xtx-ispdigital-table,table.ispd-billing-table,
  table.client-reference-data-table,table.reference-data-table
) thead th {
  background:#234766 !important;
  color:#f3faff !important;
  border-color:#476d8e !important;
}
body.dark-mode.xtx-list-ui-enabled .main-content .content-area table.xtx-ispdigital-table tbody tr > td:last-child,
body.dark-mode.xtx-list-ui-enabled .main-content .content-area table.ispd-billing-table tbody tr > td:last-child,
body.dark-mode.xtx-list-ui-enabled .main-content .content-area table.client-reference-data-table tbody tr > td:last-child {
  background:#112c47 !important;
  color:#eaf5ff !important;
}
body.dark-mode.xtx-list-ui-enabled .main-content .content-area table.xtx-ispdigital-table tbody tr:nth-child(even) > td:last-child,
body.dark-mode.xtx-list-ui-enabled .main-content .content-area table.ispd-billing-table tbody tr:nth-child(even) > td:last-child,
body.dark-mode.xtx-list-ui-enabled .main-content .content-area table.client-reference-data-table tbody tr:nth-child(even) > td:last-child {
  background:#193854 !important;
}
body.dark-mode .main-content .content-area :is(table.table,table.xtx-ispdigital-table,table.data-table) tbody td :is(.text-muted,small) {color:#acc6df !important;}
body.dark-mode .main-content .content-area :is(table.table,table.xtx-ispdigital-table,table.data-table) tbody td a:not(.btn) {
  color:#72d4ff !important;
  -webkit-text-fill-color:#72d4ff;
}
body.dark-mode.xtx-list-ui-enabled .main-content .content-area :is(.ispd-more-btn,.client-row-actions button,.xtx-mini-icon) {
  color:#dff1ff !important;
  -webkit-text-fill-color:#dff1ff;
}
body.dark-mode.xtx-list-ui-enabled .main-content .content-area .ispd-more-btn:hover {background:rgba(111,193,255,.16) !important;}

/* Finance P&L and dynamic chart/table sections can use white inline cells.
 * Label/value pairs need equal contrast and consistent row separators. */
body.dark-mode .main-content .accounting-r64 :is(#r64-pnl,#r64-monthly-trend,#r64-ledger,#r64-reports,#r64-expense-list,#r64-custody) .table-responsive {
  background:rgba(7,25,44,.45) !important;
  border-color:#365b7f !important;
}
body.dark-mode .main-content .accounting-r64 :is(#r64-pnl,#r64-monthly-trend,#r64-ledger,#r64-reports,#r64-expense-list,#r64-custody) table.table tbody :is(td,th) {
  color:#eaf5ff !important;
  border-color:#416282 !important;
}
body.dark-mode .main-content .accounting-r64 #r64-pnl table.table tbody th {background:#1d4468 !important;}
body.dark-mode .main-content .accounting-r64 #r64-pnl table.table tbody td {background:#15314d !important;}
body.dark-mode .main-content .accounting-r64 #r64-monthly-trend table.table tbody tr:nth-child(even) td {background:#1b3d5a !important;}

/* Labels, ancillary details and nested cards in light/dark modes. Do not
 * flatten semantic status chips, paid/due colors or buttons. */
body.dark-mode .main-content .content-area :is(
 .reference-filter-card,.reference-filter-bar,.client-reference-filter-panel,
 .ispd-billing-filter-panel,.payment-filter-card,.config-definition-row,
 .v240-report-fold,.v240-history-fold,.collector-mini-summary>div,
 .ou-stat,.permission-card,.gateway-card
) :is(label,summary,h3,h4) {color:#e6f3ff !important;}
body.dark-mode .main-content .content-area :is(
 .reference-filter-card,.reference-filter-bar,.client-reference-filter-panel,
 .ispd-billing-filter-panel,.payment-filter-card,.collector-mini-summary>div,
 .gateway-card
) :is(small,.text-muted) {color:#a9c4dc !important;}
body.dark-mode .main-content .content-area :is(.xtx-billing-quick-filter,.ispd-billing-table-toolbar,.client-reference-table-toolbar,.reference-table-toolbar,.ispd-filter-toggle-row) {
  background:rgba(30,58,87,.55) !important;
  border-color:rgba(98,155,209,.36) !important;
  color:#dceefe !important;
}
body.dark-mode .main-content .content-area :is(.xtx-billing-quick-filter,.ispd-billing-table-toolbar,.client-reference-table-toolbar,.reference-table-toolbar) :is(label,span) {color:#d5eaff !important;}
body.dark-mode .main-content .content-area :is(.xtx-billing-quick-filter,.ispd-billing-table-toolbar) :is(button,select,input) {color:#eef8ff;}

/* Account action buttons already retain their semantic colors. Preserve light
 * confirmation dialogs even when page background is dark. */
body.dark-mode .main-content .modal-content :is(.receipt-paper,.print-section,.invoice-paper,.invoice-sheet) {
  background:#fff !important;color:#152b41 !important;
}

/* Never frost receipts, printouts, charts or map canvas. */
@media print {
  body.dark-mode .main-content .content-area :is(
    table.table,table.data-table,table.xtx-ispdigital-table,table.ispd-billing-table,
    table.client-reference-data-table,table.reference-data-table
  ) tbody :is(td,th) {
    background:#fff !important;color:#111827 !important;border-color:#d0d7e0 !important;
    -webkit-text-fill-color:#111827 !important;
  }
  body:is(.light-mode,.dark-mode) .main-content :is(
    .client-ref-card,.ispd-bill-card,.bill-ref-card,.gateway-metric,
    .ou-stat,.fw110-wallet,.stat-card
  ) {
    background:#fff !important;color:#111827 !important;
    border:1px solid #d0d7e0 !important;
    box-shadow:none !important;
    -webkit-backdrop-filter:none !important;
    backdrop-filter:none !important;
  }
}
@media (prefers-reduced-motion:reduce) {
  body:is(.light-mode,.dark-mode) .main-content .client-ref-card,
  body:is(.light-mode,.dark-mode) .main-content .ispd-bill-card {transition:none !important;}
}

/* V246.13 print hardening: these selectors intentionally exceed the normal
 * on-screen card/finance specificity. No dark ink or tinted glass on paper. */
@media print {
  body:is(.light-mode,.dark-mode) .main-content .accounting-r64 #r64-stats.stats-grid .stat-card,
  body:is(.light-mode,.dark-mode) .main-content #fw110Panel .fw110-wallet,
  body:is(.light-mode,.dark-mode) .main-content :is(.client-ref-card,.ispd-bill-card,.bill-ref-card,.gateway-metric){
    background:#fff !important;
    color:#111827 !important;
    border:1px solid #d0d7e0 !important;
    box-shadow:none !important;
    -webkit-backdrop-filter:none !important;
    backdrop-filter:none !important;
  }
  body.dark-mode .main-content .accounting-r64 #r64-pnl table.table tbody :is(td,th),
  body.dark-mode .main-content .accounting-r64 #r64-monthly-trend table.table tbody :is(td,th),
  body.dark-mode .main-content .accounting-r64 :is(#r64-pnl,#r64-monthly-trend,#r64-ledger) table.table tbody tr:nth-child(even) td {
    background:#fff !important;
    color:#111827 !important;
    -webkit-text-fill-color:#111827 !important;
    border-color:#d0d7e0 !important;
  }
}
/* END assets/css/v24613-theme-cards-contrast.css */

/* BEGIN assets/css/v24614-dark-contrast-accessibility.css */
/* XtremeX V246.14 | Dark-mode readability hotfix.
   Corrects confirmed V246.13 conflicts in Billing, Receipts, Finance and OLT.
   Presentation only: no layout measurements, JS behaviour, data, status, or print logic changed. */

body.dark-mode {
  --xt14-ink: #f0f8ff;
  --xt14-muted: #b7cee4;
  --xt14-border: #3a6080;
  --xt14-surface: linear-gradient(140deg,rgba(30,64,98,.92),rgba(14,36,59,.94));
  --xt14-surface-deep: #102c48;
}

/* 1. Billing List: inactive filters were white pills with white text.
   Use dark glass with light ink; preserve the selected blue-pill state. */
body.dark-mode .main-content .content-area .xtx-billing-quick-filter .xtx-bill-status-pills button:not(.active) {
  background: linear-gradient(160deg,#1b415f,#12314d) !important;
  border:1px solid #456d92 !important;
  color:#eef8ff !important;
  -webkit-text-fill-color:#eef8ff !important;
  box-shadow:inset 0 1px 0 rgba(221,241,255,.11) !important;
}
body.dark-mode .main-content .content-area .xtx-billing-quick-filter .xtx-bill-status-pills button:not(.active):hover {
  background:#2b5678 !important;
  border-color:#70b9ee !important;
}
body.dark-mode .main-content .content-area .xtx-billing-quick-filter .xtx-bill-status-pills button.active {
  background:linear-gradient(135deg,#2787fa,#176bd4) !important;
  border:1px solid #5daeff !important;
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
}
body.dark-mode .main-content .content-area .xtx-bill-receiver-filter > span {
  color:#c1d9ee !important;
  -webkit-text-fill-color:#c1d9ee !important;
}
body.dark-mode .main-content .content-area .xtx-billing-quick-filter .xtx-bill-receiver-filter select {
  color:#edf6ff !important;
  -webkit-text-fill-color:#edf6ff !important;
  background:#122d4a !important;
  border-color:#41678d !important;
}
body.dark-mode .main-content .content-area .xtx-billing-quick-filter .xtx-bill-receiver-filter select option {background:#122d4a;color:#edf6ff;}

/* 2. Receipt / Payment History: semantic badges retained pastel backgrounds
   while the parent theme forced pale ink. Darken the surface and keep the
   approved/pending/voided meanings distinct, including WebKit text fill. */
body.dark-mode .main-content .content-area .payment-status-badge.approved {
  background:#10503d !important;border:1px solid #238d70 !important;
  color:#b2ffe0 !important;-webkit-text-fill-color:#b2ffe0 !important;
}
body.dark-mode .main-content .content-area .payment-status-badge.pending {
  background:#664a19 !important;border:1px solid #b18a39 !important;
  color:#ffe6a2 !important;-webkit-text-fill-color:#ffe6a2 !important;
}
body.dark-mode .main-content .content-area .payment-status-badge.due {
  background:#652b3e !important;border:1px solid #b35270 !important;
  color:#ffd1df !important;-webkit-text-fill-color:#ffd1df !important;
}
body.dark-mode .main-content .content-area .payment-reference-table .payment-date-cell .date-main {
  color:#e4f1ff !important;-webkit-text-fill-color:#e4f1ff !important;
}
body.dark-mode .main-content .content-area .payment-reference-table .payment-date-cell .date-time {
  color:#a9c5df !important;-webkit-text-fill-color:#a9c5df !important;
}
body.dark-mode .main-content .content-area .payment-reference-table .invoice-number-cell {
  color:#7cd9ff !important;-webkit-text-fill-color:#7cd9ff !important;
}
body.dark-mode .main-content .content-area .collector-summary-strip .collector-summary-title :is(b,strong),
body.dark-mode .main-content .content-area .collector-summary-strip > div > strong {
  color:#eaf6ff !important;-webkit-text-fill-color:#eaf6ff !important;
}
body.dark-mode .main-content .content-area .collector-summary-strip :is(small,span) {
  color:#b5cee4 !important;-webkit-text-fill-color:#b5cee4 !important;
}
body.dark-mode .main-content .content-area .payment-method-badge {
  background:#1b4566 !important;color:#e9f7ff !important;
  -webkit-text-fill-color:#e9f7ff !important;
}
body.dark-mode .main-content .content-area .payment-method-badge.method-bkash {background:#582044 !important;color:#ffd7ed !important;-webkit-text-fill-color:#ffd7ed !important;}
body.dark-mode .main-content .content-area .payment-method-badge.method-nagad {background:#63401c !important;color:#ffe0b3 !important;-webkit-text-fill-color:#ffe0b3 !important;}
body.dark-mode .main-content .content-area .payment-method-badge.method-bank {background:#39336e !important;color:#e5e0ff !important;-webkit-text-fill-color:#e5e0ff !important;}
body.dark-mode .main-content .content-area .payment-method-badge.method-bangla_qr {background:#184f45 !important;color:#b7ffdd !important;-webkit-text-fill-color:#b7ffdd !important;}

/* 3. Accounting: ONU refundable-deposit widget was a white rectangle with a
   white heading. Keep its liability figures and ordinary income distinct. */
body.dark-mode .main-content .accounting-r64 #v111FinanceOverview,
body.dark-mode .main-content .accounting-r64 .v111-finance-overview {
  background:var(--xt14-surface) !important;
  color:var(--xt14-ink) !important;
  border:1px solid var(--xt14-border) !important;
  box-shadow:0 10px 25px rgba(2,10,24,.23) !important;
  -webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);
}
body.dark-mode .main-content .accounting-r64 .v111-finance-overview :is(h3,h4) {
  color:#f2f9ff !important;-webkit-text-fill-color:#f2f9ff !important;
}
body.dark-mode .main-content .accounting-r64 .v111-finance-overview .v111-summary > span {
  background:rgba(7,29,51,.69) !important;
  border:1px solid #426b92 !important;
  color:#b9d4ec !important;
  -webkit-text-fill-color:#b9d4ec !important;
}
body.dark-mode .main-content .accounting-r64 .v111-finance-overview .v111-summary > span b {
  color:#f3faff !important;-webkit-text-fill-color:#f3faff !important;
}
/* The same ONU security deposit widget is also used in client profiles. */
body.dark-mode .main-content #tab-client-onu_deposit :is(.v111-header h3,.v111-record-title,.v111-forms h4) {
  color:#eaf6ff !important;
}
body.dark-mode .main-content #tab-client-onu_deposit :is(.v111-summary > span,.v111-record,.v111-forms form,.v111-record-money span) {
  background:#153552 !important;color:#d5e8f8 !important;border-color:#42678a !important;
}
body.dark-mode .main-content #tab-client-onu_deposit :is(.v111-summary b,.v111-record-money b,.v111-record-title b) {
  color:#fff !important;-webkit-text-fill-color:#fff !important;
}
/* Profit/Loss cells and newly injected tables: prevent washed-out highlighted rows. */
body.dark-mode .main-content .accounting-r64 :is(#r64-pnl,#r64-monthly-trend,#r64-ledger) .table-responsive {
  background:#102b45 !important;color:#eaf6ff !important;
}
body.dark-mode .main-content .accounting-r64 :is(#r64-pnl,#r64-monthly-trend,#r64-ledger) table.table tbody :is(td,th) {
  -webkit-text-fill-color:#ebf6ff !important;
}

/* 4. OLT Users: the module's inline stylesheet uses --text-main from a light
   theme on dark glass; make headings, figures, aliases and field labels legible. */
body.dark-mode .main-content #olt-users-view :is(.ou-title,.ou-alias-main,.ou-stat strong) {
  color:#f2f9ff !important;
  -webkit-text-fill-color:#f2f9ff !important;
}
body.dark-mode .main-content #olt-users-view :is(.ou-sub,.ou-stat span,.ou-muted,.ou-original-id,.ou-meta-hint,.ou-member-preview,.ou-scroll-hint,.ou-pager) {
  color:#b4cde4 !important;
  -webkit-text-fill-color:#b4cde4 !important;
}
body.dark-mode .main-content #olt-users-view #olt-users-stats .ou-stat {
  background:radial-gradient(circle at top right,rgba(47,143,232,.15),transparent 55%),var(--xt14-surface) !important;
  border-color:var(--xt14-border) !important;
}
body.dark-mode .main-content #olt-users-view .ou-filters,
body.dark-mode .main-content #olt-users-view .ou-scroll-hint {
  background:#122d48 !important;border-color:#355c80 !important;
}
body.dark-mode .main-content #olt-users-view .ou-view-tab:not(.active) {color:#bfd8ed !important;}
body.dark-mode .main-content #olt-users-view .ou-action-btn {
  color:#e7f5ff !important;-webkit-text-fill-color:#e7f5ff !important;
}
/* OLT inventory chips: use dark tinted semantic colors, not pale fills with pale ink. */
body.dark-mode .main-content #olt-users-view .ou-mini-badge {
  background:#253e57 !important;color:#e8f3fe !important;
  -webkit-text-fill-color:#e8f3fe !important;
  border:1px solid #58738f !important;
}
body.dark-mode .main-content #olt-users-view .ou-mini-badge.green {
  background:#125342 !important;color:#abffdc !important;
  -webkit-text-fill-color:#abffdc !important;border-color:#318e72 !important;
}
body.dark-mode .main-content #olt-users-view .ou-mini-badge.red {
  background:#652f40 !important;color:#ffd3dc !important;
  -webkit-text-fill-color:#ffd3dc !important;border-color:#ad5969 !important;
}
body.dark-mode .main-content #olt-users-view .ou-mini-badge.orange {
  background:#63461d !important;color:#ffe4a4 !important;
  -webkit-text-fill-color:#ffe4a4 !important;border-color:#a98537 !important;
}
body.dark-mode .main-content #olt-users-view .ou-mini-badge.blue {
  background:#21466a !important;color:#d1ecff !important;
  -webkit-text-fill-color:#d1ecff !important;border-color:#507d9f !important;
}
body.dark-mode .main-content #olt-users-view .ou-mini-badge.purple {
  background:#493b73 !important;color:#eee2ff !important;
  -webkit-text-fill-color:#eee2ff !important;border-color:#826ac0 !important;
}
body.dark-mode .main-content #olt-users-view .ou-table tbody tr td:last-child {
  color:#eaf6ff !important;-webkit-text-fill-color:#eaf6ff !important;
}

/* 5. PON-wise status cards and link/mapping subviews share the same dark palette.
   Preserve semantic green/red/yellow colours instead of flattening status. */
body.dark-mode .main-content #olt-pon-view :is(.pon-page-title,.pon-card-name) {
  color:#f1f8ff !important;-webkit-text-fill-color:#f1f8ff !important;
}
body.dark-mode .main-content #pon-port-summary .pon-summary-card {
  background:radial-gradient(circle at top right,rgba(43,142,224,.18),transparent 55%),var(--xt14-surface) !important;
  border-color:#42698a !important;
  color:#ecf7ff !important;
  box-shadow:0 12px 26px rgba(1,10,25,.27) !important;
}
body.dark-mode .main-content #pon-port-summary .pon-card-name small,
body.dark-mode .main-content #pon-port-summary .pon-optics {
  color:#b6cde2 !important;-webkit-text-fill-color:#b6cde2 !important;
}
body.dark-mode .main-content #pon-port-summary .pon-metric {
  background:rgba(176,216,255,.08) !important;
  border-color:#456a8a !important;
}
body.dark-mode .main-content #pon-port-summary .pon-metric.text-success {color:#6deac1 !important;}
body.dark-mode .main-content #pon-port-summary .pon-metric.text-danger {color:#ff8ca2 !important;}
body.dark-mode .main-content #pon-port-summary .pon-metric.text-warning {color:#ffcf80 !important;}
body.dark-mode .main-content #pon-port-summary .pon-metric.text-info {color:#85d9ff !important;}
body.dark-mode .main-content #pon-port-summary .pon-metric[style*="color:#f59e0b"] {color:#ffcf80 !important;}
body.dark-mode .main-content #olt-pon-view .pon-summary-review {color:#ffd18a !important;}
body.dark-mode .main-content #olt-pon-view .pon-section-tab:not(.active) {color:#c4d9ec !important;}
body.dark-mode .main-content #olt-pon-view :is(.pon-pagination,.ou-muted) {color:#b7cee4 !important;}
body.dark-mode .main-content #ethernet-review-card .eth-client-focus {
  background:#163c58 !important;border-color:#3d6487 !important;color:#eaf6ff !important;
}
body.dark-mode .main-content #ethernet-review-card .eth-client-focus :is(strong,small) {
  color:#e8f4ff !important;-webkit-text-fill-color:#e8f4ff !important;
}
/* Keep informational light-badges in dark backgrounds readable. */
body.dark-mode .main-content #olt-pon-view .badge-info {
  background:#1b4963 !important;color:#7be4ff !important;
  -webkit-text-fill-color:#7be4ff !important;
}

/* Explicit focus visibility on buttons inside the newly themed sections. */
body.dark-mode .main-content :is(.xtx-bill-status-pills button,.ou-view-tab,.pon-section-tab):focus-visible {
  outline:2px solid #7bd7ff !important;outline-offset:2px !important;
}
/* Paper receipts/reports are black-on-white regardless of application mode. */
@media print {
  body.dark-mode .main-content :is(.v111-finance-overview,.v111-summary > span,.ou-stat,.pon-summary-card) {
    background:#fff !important;color:#111827 !important;border-color:#cbd5e1 !important;box-shadow:none !important;
  }
  body.dark-mode .main-content :is(.v111-finance-overview,.v111-summary > span,.ou-stat,.pon-summary-card) :is(h3,b,strong,span,small) {
    color:#111827 !important;-webkit-text-fill-color:#111827 !important;
  }
  body.dark-mode .main-content .accounting-r64 .v111-finance-overview .v111-summary>span {
    background:#fff !important;color:#111827 !important;border-color:#cbd5e1 !important;
  }
  body.dark-mode .main-content .accounting-r64 .v111-finance-overview .v111-summary>span b {
    color:#111827 !important;-webkit-text-fill-color:#111827 !important;
  }
  /* Stronger than the on-screen finance heading rule. */
  body.dark-mode .main-content .accounting-r64 .v111-finance-overview :is(h3,h4,p,span,small,b,strong) {
    color:#111827 !important;-webkit-text-fill-color:#111827 !important;
  }
}
/* END assets/css/v24614-dark-contrast-accessibility.css */

/* BEGIN assets/css/v24616-client-columns-mobile-payments.css */
/* V246.16 Client List Columns + Mobile Payment History. Does not change print. */
.client-reference-mode.xtx-v24616-client-columns .client-reference-table-toolbar{
  display:flex!important;align-items:center!important;gap:10px!important;flex-wrap:wrap!important;
  justify-content:space-between!important;overflow:visible!important;
}
.client-reference-mode.xtx-v24616-client-columns .client-reference-table-toolbar .client-reference-search{margin-left:auto!important;}
.client-reference-mode.xtx-v24616-client-columns .client-reference-table-card,
.client-reference-mode.xtx-v24616-client-columns .client-reference-table-toolbar {overflow:visible!important;}
.client-reference-mode.xtx-v24616-client-columns .client-reference-table-card .table-responsive{
  overflow-x:auto!important;overflow-y:visible!important;width:100%!important;max-width:100%!important;
  -webkit-overflow-scrolling:touch;
}
.client-reference-mode.xtx-v24616-client-columns table#table-clients.client-reference-data-table{
  width:max-content!important;min-width:100%!important;max-width:none!important;
  table-layout:auto!important;border-collapse:separate!important;border-spacing:0!important;
}
.client-reference-mode.xtx-v24616-client-columns #table-clients :is(th,td){
  width:auto!important;max-width:none!important;min-width:75px!important;
  white-space:nowrap!important;padding:7px 10px!important;
  vertical-align:middle!important;
}
.client-reference-mode.xtx-v24616-client-columns #table-clients :is(th,td):nth-child(1){min-width:36px!important;width:36px!important;}
.client-reference-mode.xtx-v24616-client-columns #table-clients :is(th,td):nth-child(2){min-width:62px!important;}
.client-reference-mode.xtx-v24616-client-columns #table-clients :is(th,td):nth-child(3){min-width:125px!important;}
.client-reference-mode.xtx-v24616-client-columns #table-clients :is(th,td):nth-child(4){min-width:110px!important;}
.client-reference-mode.xtx-v24616-client-columns #table-clients :is(th,td):nth-child(5){min-width:115px!important;}
.client-reference-mode.xtx-v24616-client-columns #table-clients :is(th,td):nth-child(6){min-width:170px!important;}
.client-reference-mode.xtx-v24616-client-columns #table-clients :is(th,td):last-child{
  min-width:55px!important;width:55px!important;position:sticky!important;right:0!important;z-index:5!important;
}
.client-reference-mode.xtx-v24616-client-columns #table-clients thead th:last-child{z-index:8!important;}
.client-reference-mode.xtx-v24616-client-columns #table-clients .xtx-v24616-address-cell{
  max-width:270px!important;overflow:hidden!important;text-overflow:ellipsis!important;
  text-align:left!important;
}
.client-reference-mode.xtx-v24616-client-columns .client-mobile-columns-toggle{display:none!important;}
.client-reference-mode .xtx-client-columns-picker{position:relative!important;z-index:400!important;margin:0!important;flex:0 0 auto!important;}
.client-reference-mode .xtx-client-columns-picker>summary{
  list-style:none;display:flex;align-items:center;justify-content:center;gap:6px;
  padding:8px 12px;min-height:34px;border:1px solid #b6d0e6;
  border-radius:10px;color:#184d75;background:rgba(249,252,255,.95);
  cursor:pointer;font-size:11px;font-weight:750;white-space:nowrap;
}
.client-reference-mode .xtx-client-columns-picker>summary::-webkit-details-marker{display:none;}
.client-reference-mode .xtx-client-columns-picker>summary:focus-visible{outline:2px solid #269af2;outline-offset:2px;}
.client-reference-mode .xtx-client-columns-picker:not([open])>.xtx-client-columns-menu{display:none!important;}
.client-reference-mode .xtx-client-columns-menu{
  display:grid;grid-template-columns:repeat(2,minmax(125px,1fr));gap:8px 12px;
  position:absolute;right:0;top:calc(100% + 6px);width:min(375px,calc(100vw - 34px));
  max-height:min(65vh,550px);overflow-y:auto;padding:14px;
  background:#f8fcff;color:#173d5c;border:1px solid #bad1e6;
  border-radius:12px;box-shadow:0 16px 38px rgba(8,38,68,.25);z-index:999;
}
.client-reference-mode .xtx-client-columns-menu>strong,
.client-reference-mode .xtx-client-columns-actions{grid-column:1/-1;}
.client-reference-mode .xtx-client-columns-menu label{
  display:flex!important;align-items:center!important;gap:6px!important;
  font-size:11px!important;font-weight:600!important;color:inherit!important;cursor:pointer;
}
.client-reference-mode .xtx-client-columns-menu input{
  width:16px!important;height:16px!important;min-height:16px!important;max-width:16px!important;
  accent-color:#258cf0;flex-shrink:0;
}
.client-reference-mode .xtx-client-columns-actions{display:flex;gap:8px;margin-top:4px;}
.client-reference-mode .xtx-client-columns-actions button{
  flex:1;min-height:32px;border:1px solid #b4cbe1;background:#eef6ff;
  border-radius:8px;color:#204762;font-size:11px;font-weight:700;cursor:pointer;
}
body.dark-mode .client-reference-mode .xtx-client-columns-picker>summary,
body.dark-mode .client-reference-mode .xtx-client-columns-menu{
  background:#122d46!important;color:#e5f3ff!important;border-color:#365c78!important;
}
body.dark-mode .client-reference-mode .xtx-client-columns-actions button{
  background:#1b415f;color:#e5f3ff;border-color:#446f8d;
}

/* The old mobile payment stylesheet creates cards, but the old fixed 45px row
   height clips everything after the first checkbox. Permit real card height. */
@media screen and (max-width:700px){
  #billing-payment-pane .billing-compact-table .table-responsive{
    width:100%!important;max-width:100%!important;
    overflow:visible!important;min-height:0!important;max-height:none!important;
  }
  #billing-payment-pane table.payment-reference-table{
    display:block!important;width:100%!important;min-width:0!important;max-width:100%!important;
    table-layout:auto!important;border-collapse:separate!important;
  }
  #billing-payment-pane table.payment-reference-table thead{display:none!important;}
  #billing-payment-pane table.payment-reference-table tbody{display:block!important;width:100%!important;}
  #billing-payment-pane table.payment-reference-table tr.payment-data-row{
    display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
    width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;
    overflow:visible!important;margin:0 0 10px!important;border:1px solid #bcd4e8!important;
    border-radius:12px!important;box-shadow:0 7px 24px rgba(39,77,111,.09)!important;
    background:#f9fcff!important;
  }
  #billing-payment-pane table.payment-reference-table tr.payment-data-row>td{
    display:flex!important;flex-direction:column!important;justify-content:center!important;
    width:auto!important;min-width:0!important;height:auto!important;min-height:44px!important;
    max-height:none!important;overflow:visible!important;
    gap:3px!important;padding:8px 11px!important;border:0!important;
    border-bottom:1px solid #e2ebf3!important;border-right:1px solid #e2ebf3!important;
    color:#213e56!important;-webkit-text-fill-color:#213e56!important;
    background:transparent!important;font-size:12px!important;line-height:1.35!important;
    white-space:normal!important;overflow-wrap:anywhere!important;
    box-sizing:border-box!important;
  }
  #billing-payment-pane table.payment-reference-table tr.payment-data-row>td::before{
    content:attr(data-label)!important;
    color:#60778c!important;-webkit-text-fill-color:#60778c!important;
    font-size:10px!important;line-height:1.2!important;font-weight:700!important;
  }
  #billing-payment-pane table.payment-reference-table tr.payment-data-row>td :is(b,strong,.date-main){
    color:#123b59!important;-webkit-text-fill-color:#123b59!important;
  }
  #billing-payment-pane table.payment-reference-table tr.payment-data-row>td .payment-amount-positive{
    color:#08794c!important;-webkit-text-fill-color:#08794c!important;
  }
  #billing-payment-pane table.payment-reference-table tr.payment-data-row>td .payment-due-positive{
    color:#be3347!important;-webkit-text-fill-color:#be3347!important;
  }
  #billing-payment-pane table.payment-reference-table tr.payment-data-row>td .payment-method-badge{
    -webkit-text-fill-color:inherit!important;
  }
  #billing-payment-pane table.payment-reference-table tr.payment-data-row>td .ispd-action-dropdown{
    align-self:flex-start;position:relative;z-index:80;
  }
  #billing-payment-pane .collector-summary-strip{
    display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:0!important;overflow:hidden!important;
  }
  #billing-payment-pane .collector-summary-strip>div{
    min-width:0!important;padding:10px 12px!important;min-height:60px!important;
    border-bottom:1px solid #e1e9f0!important;
    border-right:1px solid #e1e9f0!important;overflow-wrap:anywhere;
  }
  #billing-payment-pane .collector-summary-strip>div:first-child{grid-column:1/-1;}
  #billing-payment-pane .collector-summary-strip>div :is(strong,small,b){
    font-size:12px!important;line-height:1.25!important;overflow-wrap:anywhere;
  }
  body.dark-mode #billing-payment-pane table.payment-reference-table tr.payment-data-row{
    background:#122b43!important;border-color:#426582!important;
  }
  body.dark-mode #billing-payment-pane table.payment-reference-table tr.payment-data-row>td{
    background:transparent!important;border-color:#2e4e69!important;
    color:#e7f4ff!important;-webkit-text-fill-color:#e7f4ff!important;
  }
  body.dark-mode #billing-payment-pane table.payment-reference-table tr.payment-data-row>td::before{
    color:#9fc3df!important;-webkit-text-fill-color:#9fc3df!important;
  }
  body.dark-mode #billing-payment-pane table.payment-reference-table tr.payment-data-row>td :is(b,strong,.date-main){
    color:#e7f4ff!important;-webkit-text-fill-color:#e7f4ff!important;
  }
  body.dark-mode #billing-payment-pane table.payment-reference-table tr.payment-data-row>td .payment-amount-positive{
    color:#59e2ab!important;-webkit-text-fill-color:#59e2ab!important;
  }
  body.dark-mode #billing-payment-pane table.payment-reference-table tr.payment-data-row>td .payment-due-positive{
    color:#ff9aa8!important;-webkit-text-fill-color:#ff9aa8!important;
  }
  body.dark-mode #billing-payment-pane .collector-summary-strip>div{border-color:#355673!important;}

  .client-reference-mode.xtx-v24616-client-columns .client-reference-table-toolbar{
    display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;
    align-items:center!important;gap:8px!important;
  }
  .client-reference-mode.xtx-v24616-client-columns .client-reference-table-toolbar>label:first-child{
    grid-column:1!important;grid-row:1!important;
  }
  .client-reference-mode.xtx-v24616-client-columns .xtx-client-columns-picker{
    grid-column:2!important;grid-row:1!important;
  }
  .client-reference-mode.xtx-v24616-client-columns .client-reference-table-toolbar>.client-reference-search{
    grid-column:1/-1!important;grid-row:2!important;margin:0!important;
  }
  .client-reference-mode.xtx-v24616-client-columns .client-reference-table-card .table-responsive{
    overflow-x:auto!important;overflow-y:visible!important;
  }
  .client-reference-mode.xtx-v24616-client-columns #table-clients :is(th,td){
    height:auto!important;min-height:44px!important;padding:8px 7px!important;
  }
  .client-reference-mode.xtx-v24616-client-columns #table-clients :is(th,td):last-child{
    position:sticky!important;right:0!important;
  }
  .client-reference-mode.xtx-v24616-client-columns .client-mobile-table-hint{
    display:block!important;font-size:11px!important;line-height:1.4!important;
    color:#55758f!important;padding:4px 2px 9px!important;
  }
  body.dark-mode .client-reference-mode.xtx-v24616-client-columns .client-mobile-table-hint{
    color:#a8cce8!important;
  }
  .client-reference-mode.xtx-v24616-client-columns #table-clients .xtx-v24616-address-cell{
    max-width:185px!important;
  }
}
@media print{
  .xtx-client-columns-picker{display:none!important;}
  #billing-payment-pane table.payment-reference-table tr.payment-data-row{
    display:table-row!important;height:auto!important;box-shadow:none!important;background:#fff!important;
  }
  #billing-payment-pane table.payment-reference-table tr.payment-data-row>td{
    display:table-cell!important;color:#111827!important;-webkit-text-fill-color:#111827!important;
  }
  #billing-payment-pane table.payment-reference-table tr.payment-data-row>td::before{content:none!important;}
}
/* END assets/css/v24616-client-columns-mobile-payments.css */

/* BEGIN assets/css/client-quick-edit-c8.css */
/* C9 - click/tap to edit Client List values, retaining the C8 backend validation. */
.client-reference-mode .xtx-c8-inline-cell{vertical-align:middle!important}
.client-reference-mode .xtx-c8-inline-display{
  display:inline-flex;align-items:center;max-width:100%;min-width:0;
  padding:4px 5px;margin:-4px -5px;min-height:28px;
  border-radius:7px;vertical-align:middle;cursor:pointer;touch-action:manipulation;
}
.client-reference-mode .xtx-c8-inline-value{
  display:inline-block;min-width:0;max-width:230px;overflow:hidden;
  text-overflow:ellipsis;white-space:nowrap;vertical-align:middle;
}
.client-reference-mode .xtx-c8-inline-display:hover{background:rgba(37,136,210,.10)}
.client-reference-mode .xtx-c8-inline-display:focus-visible{
  outline:2px solid #228de0;outline-offset:2px;background:rgba(37,136,210,.09);
}
body.dark-mode .client-reference-mode .xtx-c8-inline-display:hover,
body.dark-mode .client-reference-mode .xtx-c8-inline-display:focus-visible{background:rgba(73,165,227,.20)}
/* C9: keep MikroTik state distinct from the right-hand sticky Action cell.
   The table may scroll horizontally for many visible columns; no data is hidden. */
.client-reference-mode.xtx-v24616-client-columns #table-clients :is(th,td)[data-xtx-column="mstatus"]{
  min-width:86px!important;width:86px!important;max-width:none!important;
  white-space:nowrap!important;text-align:center!important;box-sizing:border-box!important;
  padding:7px 10px!important;
}
.client-reference-mode.xtx-v24616-client-columns #table-clients :is(th,td)[data-xtx-column="action"]{
  min-width:64px!important;width:64px!important;max-width:none!important;
  padding:7px 9px!important;box-sizing:border-box!important;
}
.client-reference-mode.xtx-v24616-client-columns #table-clients :is(th,td)[data-xtx-column="mstatus"]{
  position:sticky!important;right:64px!important;z-index:5!important;
  border-left:1px solid #cedce7!important;
  box-shadow:-3px 0 7px rgba(20,58,87,.06);
}
.client-reference-mode.xtx-v24616-client-columns #table-clients thead th[data-xtx-column="mstatus"]{
  z-index:12!important;background:#e4eff8!important;color:#214766!important;
}
.client-reference-mode.xtx-v24616-client-columns #table-clients tbody tr:nth-child(odd) td[data-xtx-column="mstatus"]{background:#fff!important}
.client-reference-mode.xtx-v24616-client-columns #table-clients tbody tr:nth-child(even) td[data-xtx-column="mstatus"]{background:#f2f6f9!important}
.client-reference-mode.xtx-v24616-client-columns #table-clients tbody tr:hover td[data-xtx-column="mstatus"]{background:#eaf4fa!important}
.client-reference-mode.xtx-v24616-client-columns #table-clients td[data-xtx-column="mstatus"] .ispd-mstatus{
  display:inline-flex!important;vertical-align:middle!important;width:36px!important;
  min-width:36px!important;height:20px!important;
  margin:0 auto!important;
}
body.dark-mode .client-reference-mode.xtx-v24616-client-columns #table-clients thead th[data-xtx-column="mstatus"]{
  background:#173d59!important;color:#e7f4ff!important;border-color:#42637c!important;
}
body.dark-mode .client-reference-mode.xtx-v24616-client-columns #table-clients tbody tr:nth-child(odd) td[data-xtx-column="mstatus"]{background:#0d2438!important;border-color:#3a5368!important}
body.dark-mode .client-reference-mode.xtx-v24616-client-columns #table-clients tbody tr:nth-child(even) td[data-xtx-column="mstatus"]{background:#112d44!important;border-color:#3a5368!important}
body.dark-mode .client-reference-mode.xtx-v24616-client-columns #table-clients tbody tr:hover td[data-xtx-column="mstatus"]{background:#173850!important}
@media(max-width:700px){
  /* Phone widths: the M.Status column stays optional in the Columns picker. */
  .client-reference-mode.xtx-v24616-client-columns #table-clients :is(th,td)[data-xtx-column="mstatus"]{
    min-width:78px!important;width:78px!important;
  }
}
.client-reference-mode .xtx-c8-inline-editor{display:flex;flex-wrap:wrap;gap:5px;align-items:center;min-width:145px;max-width:290px}
.client-reference-mode .xtx-c8-inline-editor input,.client-reference-mode .xtx-c8-inline-editor textarea{flex:1 1 140px;min-width:120px;max-width:280px;padding:5px 7px;min-height:32px;border:1px solid #a9bdd0;border-radius:6px;background:#fff;color:#153b58;line-height:1.3;font:500 12px system-ui,sans-serif;box-sizing:border-box}
.client-reference-mode .xtx-c8-inline-editor textarea{min-height:54px;resize:vertical}
.client-reference-mode .xtx-c8-inline-editor button{min-width:27px;min-height:29px;border:1px solid #c0d5e5;border-radius:6px;background:#eaf5fd;color:#145074;font:800 15px/1 system-ui,sans-serif;cursor:pointer}
.client-reference-mode .xtx-c8-inline-editor .xtx-c8-save{color:#116b37;background:#e9f6ec}
.client-reference-mode .xtx-c8-inline-editor .xtx-c8-cancel{color:#a93232;background:#fff0ed}
.client-reference-mode .xtx-c8-inline-editor button:disabled{opacity:.6;cursor:progress}
body.dark-mode .client-reference-mode .xtx-c8-inline-editor input,body.dark-mode .client-reference-mode .xtx-c8-inline-editor textarea{color:#e9f5ff;background:#142f45;border-color:#52728c}
.xtx-c8-discount-help{font-size:11px;line-height:1.45;margin:7px 4px 8px;padding:7px 10px;border:1px solid #bfdced;border-radius:8px;background:#eef8fe;color:#204f6b}
.xtx-c8-discount-help.xtx-c8-discount-only{border-color:#a9dec0;background:#eaf8ef;color:#155c37;font-weight:700}
body.dark-mode .xtx-c8-discount-help{background:#142f45;color:#d5ecff;border-color:#38586f}
body.dark-mode .xtx-c8-discount-help.xtx-c8-discount-only{background:#13392c;color:#b6f3d3;border-color:#2a7256}
/* END assets/css/client-quick-edit-c8.css */

/* BEGIN assets/css/v24617-client-columns-popover.css */
/* XtremeX Billing V246.17: keep V246.16 Client Columns popover inside the
   visible content viewport, never behind the fixed left sidebar. UI-only. */
.client-reference-mode #xtx-v24616-client-columns{
  position:relative!important;
  isolation:isolate;
}
.client-reference-mode #xtx-v24616-client-columns[open]{
  z-index:1600!important;
}
.client-reference-mode #xtx-v24616-client-columns>.xtx-client-columns-menu{
  left:var(--xtx-v24617-menu-left,0px)!important;
  right:auto!important;
  width:var(--xtx-v24617-menu-width,min(375px,calc(100vw - 24px)))!important;
  max-width:calc(100vw - 24px)!important;
  max-height:var(--xtx-v24617-menu-maxheight,min(65vh,550px))!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  overscroll-behavior:contain;
  box-sizing:border-box!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
}
.client-reference-mode #xtx-v24616-client-columns.xtx-v24617-menu-up>.xtx-client-columns-menu{
  top:auto!important;
  bottom:calc(100% + 6px)!important;
}
.client-reference-mode #xtx-v24616-client-columns>.xtx-client-columns-menu label{
  min-width:0!important;
  overflow-wrap:anywhere;
  line-height:1.35;
}
.client-reference-mode #xtx-v24616-client-columns>.xtx-client-columns-menu>strong{
  position:sticky;
  top:-14px;
  z-index:1;
  padding:5px 0 7px;
  background:#f8fcff;
  border-bottom:1px solid #dce9f6;
}
body.dark-mode .client-reference-mode #xtx-v24616-client-columns>.xtx-client-columns-menu>strong{
  color:#e5f3ff;
  background:#122d46;
  border-bottom-color:#365c78;
}
.client-reference-mode #xtx-v24616-client-columns>.xtx-client-columns-menu :is(input,button){
  flex-shrink:0;
}
@media(max-width:540px){
  .client-reference-mode #xtx-v24616-client-columns>.xtx-client-columns-menu{
    padding:11px!important;
    gap:9px 8px!important;
    font-size:12px;
  }
  .client-reference-mode #xtx-v24616-client-columns>.xtx-client-columns-menu label{
    font-size:11px!important;
  }
}
@media print{
  #xtx-v24616-client-columns>.xtx-client-columns-menu{display:none!important;}
}
/* END assets/css/v24617-client-columns-popover.css */

/* BEGIN assets/css/v24618-layout-olt-monitor.css */
/* XtremeX Billing V246.18 — sitewide content width, real OLT Group columns,
   Monitoring responsive toolbar/page navigation; no business-logic styling. */
@media screen {
  /* Use content width without touching fixed sidebar, maps or overlay widths. */
  #content-area.content-area {
    box-sizing:border-box!important;
    padding-left:9px!important;
    padding-right:9px!important;
    min-width:0!important;
  }
  #content-area > .reference-page-shell,
  #content-area > .client-reference-mode,
  #content-area > .ispd-billing-pane,
  #content-area > #olt-users-view,
  #content-area > #olt-pon-view {
    box-sizing:border-box!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    margin-left:0!important;
    margin-right:0!important;
  }
  #content-area .reference-table-card,
  #content-area .reference-filter-card,
  #content-area #online-monitor-root,
  #content-area #olt-users-view,
  #content-area #olt-users-view .ou-table-scroll {
    box-sizing:border-box!important;
    min-width:0!important;
    max-width:100%!important;
  }
  body.client-page-create-active #content-area.content-area {
    padding-left:12px!important;
    padding-right:12px!important;
  }
  @media(max-width:900px){
    #content-area.content-area{padding-left:7px!important;padding-right:7px!important}
    body.client-page-create-active #content-area.content-area{padding-left:8px!important;padding-right:8px!important}
  }

  /* OLT: shared toolbar, usable columns popover and a space-efficient table. */
  #olt-users-view .ou-columns{position:relative!important;isolation:isolate}
  #olt-users-view .ou-columns.open{z-index:120!important}
  #olt-users-view .ou-columns.open .ou-columns-menu{
    z-index:160!important;
    right:0!important;
    min-width:min(235px,calc(100vw - 25px))!important;
    max-height:min(530px,76vh)!important;
    overflow-y:auto!important;
    box-shadow:0 17px 42px rgba(0,15,36,.27)!important;
  }
  #olt-users-view .ou-table th[data-xtx18-group-col="ccode"],
  #olt-users-view .ou-table td[data-xtx18-group-col="ccode"] {
    min-width:82px!important;
    white-space:normal!important;
    overflow-wrap:anywhere!important;
  }
  #olt-users-view .ou-table th[data-xtx18-group-col="billing"],
  #olt-users-view .ou-table td[data-xtx18-group-col="billing"] {
    min-width:92px!important;
  }
  #olt-users-view .ou-table [data-xtx18-group-col][hidden]{display:none!important}
  #olt-users-view .ou-table td.xtx18-billing-state{font-size:10px!important;font-weight:750!important}
  #olt-users-view .ou-table td.xtx18-billing-state[data-xtx18-state="active"],
  #olt-users-view .ou-table td.xtx18-billing-state[data-xtx18-state="billed"]{color:#13a56b!important}
  #olt-users-view .ou-table td.xtx18-billing-state[data-xtx18-state="left"],
  #olt-users-view .ou-table td.xtx18-billing-state[data-xtx18-state="inactive"]{color:#e35e75!important}
  #olt-users-view .ou-table-scroll{overflow-x:auto!important;scrollbar-width:thin!important}
  #olt-users-view .ou-pager{gap:8px;flex-wrap:wrap}
  @media(max-width:700px){
    #olt-users-view .ou-columns-menu{right:0!important;max-width:calc(100vw - 20px)!important}
    #olt-users-view .ou-pager{justify-content:center!important}
    #olt-users-view .ou-table th,#olt-users-view .ou-table td{font-size:10px!important}
  }

  /* Online Client Monitoring: compact KPI, readable inputs, no wasted width. */
  #online-monitor-root{width:100%!important;max-width:100%!important}
  #online-monitor-root .monitor-mode-bar{gap:9px;flex-wrap:wrap}
  #online-monitor-root .monitor-mode-tabs{min-width:0;max-width:100%;gap:5px}
  #online-monitor-root .monitor-mode-tabs button{min-height:32px;padding:6px 9px!important;line-height:1.2}
  #online-monitor-root .reference-monitor-kpis{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:9px!important;margin:9px 0!important}
  #online-monitor-root .monitor-kpi{min-width:0!important;min-height:60px!important;padding:8px 12px!important;gap:10px!important}
  #online-monitor-root .monitor-kpi>i{height:34px!important;width:34px!important;font-size:17px!important;flex:0 0 34px}
  #online-monitor-root .monitor-kpi strong{font-size:19px!important;line-height:1.1}
  #online-monitor-root .monitor-kpi span{font-size:10px!important}
  #online-monitor-root .monitor-filter-grid{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:8px!important;padding:9px!important}
  #online-monitor-root .monitor-filter-grid>div{min-width:0!important}
  #online-monitor-root .monitor-filter-grid label{margin-bottom:3px!important;line-height:1.2!important}
  #online-monitor-root .monitor-filter-grid :is(select,input){width:100%!important;min-width:0!important;min-height:34px!important;height:34px!important;padding-top:5px!important;padding-bottom:5px!important;font-size:11px!important}
  #online-monitor-root .monitor-table-card{width:100%!important}
  #online-monitor-root #xtmon-pager{
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:8px!important;
    padding:8px 10px!important;
    margin:0!important;
    border-bottom:1px solid rgba(111,163,210,.25)!important;
    border-top:0!important;
    background:rgba(60,139,216,.035);
    position:relative;
    z-index:3;
  }
  #online-monitor-root #xtmon-pager .xtmon-page-label{font-size:11px!important;opacity:1}
  #online-monitor-root #xtmon-pager .xtmon-page{min-width:30px!important;height:29px!important;font-size:11px!important}
  #online-monitor-root .monitor-table-card .monitor-table-wrap{max-width:100%!important;overflow-x:auto!important;overflow-y:visible!important}
  #online-monitor-root .monitor-table.xtmon-v234-table{border-collapse:separate!important;border-spacing:0!important}
  #online-monitor-root .monitor-table.xtmon-v234-table th,
  #online-monitor-root .monitor-table.xtmon-v234-table td{white-space:normal!important;overflow-wrap:anywhere!important}
  #online-monitor-root .monitor-table.xtmon-v234-table td:last-child{min-width:42px!important}

  body.dark-mode #online-monitor-root #xtmon-pager{background:rgba(31,76,114,.25)}
  body.dark-mode #online-monitor-root .monitor-filter-grid :is(select,input){color:#ecf6ff!important}
  body.light-mode #online-monitor-root .monitor-filter-grid :is(select,input){color:#153149!important}

  @media (max-width:1160px){
    #online-monitor-root .monitor-filter-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}
  }
  @media (max-width:800px){
    #online-monitor-root .monitor-filter-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
    #online-monitor-root .monitor-mode-tabs{overflow-x:auto;flex-wrap:nowrap;scrollbar-width:thin}
    #online-monitor-root .monitor-mode-tabs button{flex:0 0 auto!important}
  }
  @media (max-width:700px){
    #online-monitor-root .monitor-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important}
    #online-monitor-root .monitor-filter-grid>div:nth-last-child(2){grid-column:1/-1}
    #online-monitor-root .reference-monitor-kpis{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:5px!important}
    #online-monitor-root .monitor-kpi{min-height:56px!important;gap:5px!important;padding:6px!important}
    #online-monitor-root .monitor-kpi>i{width:25px!important;height:25px!important;font-size:13px!important;flex-basis:25px!important}
    #online-monitor-root .monitor-kpi strong{font-size:15px!important}
    #online-monitor-root .monitor-kpi span{font-size:9px!important}
    #online-monitor-root #xtmon-pager{flex-direction:column!important;align-items:stretch!important;text-align:center}
    #online-monitor-root #xtmon-pager .xtmon-page-buttons{justify-content:center!important}
    #online-monitor-root .monitor-table-card .monitor-table-wrap{overflow-x:visible!important}
    #online-monitor-root .monitor-table.xtmon-v234-table,
    #online-monitor-root .monitor-table.xtmon-v233-table{
      display:block!important;width:100%!important;min-width:0!important;max-width:100%!important;
    }
    #online-monitor-root .monitor-table.xtmon-v234-table :is(colgroup,thead),
    #online-monitor-root .monitor-table.xtmon-v233-table :is(colgroup,thead){display:none!important}
    #online-monitor-root .monitor-table.xtmon-v234-table tbody,
    #online-monitor-root .monitor-table.xtmon-v233-table tbody{display:block!important;width:100%!important}
    #online-monitor-root .monitor-table.xtmon-v234-table tbody tr.xtmon-v233-row,
    #online-monitor-root .monitor-table.xtmon-v233-table tbody tr.xtmon-v233-row{
      display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
      gap:5px 8px!important;height:auto!important;min-height:0!important;
      margin:7px 0!important;padding:9px!important;
      border:1px solid rgba(91,148,202,.29)!important;border-radius:11px!important;
    }
    #online-monitor-root .monitor-table.xtmon-v234-table tbody td,
    #online-monitor-root .monitor-table.xtmon-v233-table tbody td{
      position:static!important;display:block!important;width:auto!important;
      min-width:0!important;max-width:100%!important;height:auto!important;
      background:transparent!important;border:0!important;box-shadow:none!important;
      padding:3px 4px!important;text-align:left!important;
      overflow-wrap:anywhere!important;
    }
    #online-monitor-root .monitor-table.xtmon-v234-table tbody td::before,
    #online-monitor-root .monitor-table.xtmon-v233-table tbody td::before{
      content:attr(data-label)!important;display:block!important;margin-bottom:3px!important;
      font-weight:750!important;font-size:9px!important;line-height:1.1!important;
      color:var(--text-muted,#6c87a4)!important;
    }
    #online-monitor-root .monitor-table.xtmon-v234-table tbody td:nth-child(3),
    #online-monitor-root .monitor-table.xtmon-v234-table tbody td:nth-child(5),
    #online-monitor-root .monitor-table.xtmon-v233-table tbody td:nth-child(3),
    #online-monitor-root .monitor-table.xtmon-v233-table tbody td:nth-child(5){grid-column:1/-1}
    #online-monitor-root .monitor-table.xtmon-v234-table tbody td:last-child,
    #online-monitor-root .monitor-table.xtmon-v233-table tbody td:last-child{grid-column:1/-1;display:flex!important;justify-content:flex-end!important;align-items:center!important;gap:6px!important}
    #online-monitor-root .monitor-table.xtmon-v234-table tbody td:last-child::before,
    #online-monitor-root .monitor-table.xtmon-v233-table tbody td:last-child::before{margin-right:auto!important}
    body.light-mode #online-monitor-root .monitor-table tbody tr.xtmon-v233-row{background:#f6faff!important}
    body.dark-mode #online-monitor-root .monitor-table tbody tr.xtmon-v233-row{background:#112b45!important}
  }
}
/* END assets/css/v24618-layout-olt-monitor.css */

/* BEGIN assets/css/v24619-monitor-kpi-glass.css */
/* XtremeX Billing V246.19 - Online Client Monitoring KPI theme only.
   Matches the V246.13-V246.18 dashboard, billing and accounting frosted cards.
   Does not alter DOM, business logic, filters, pagination, width or table layout. */

body:is(.light-mode,.dark-mode) .main-content #online-monitor-root .monitor-kpi {
  --xt19-accent:#2899e5;
  --xt19-halo:rgba(49,156,237,.17);
  --xt19-icon-ink:#1784cf;
  --xt19-icon-bg:rgba(47,154,236,.12);
  appearance:none;
  background:
    radial-gradient(ellipse at 98% 0%, var(--xt19-halo) 0%, transparent 58%),
    var(--xt13-pane, linear-gradient(140deg,rgba(255,255,255,.90),rgba(232,246,255,.78))) !important;
  border:1px solid var(--xt13-line, rgba(141,185,224,.55)) !important;
  border-top:3px solid var(--xt19-accent) !important;
  border-radius:12px !important;
  box-shadow:var(--xt13-shadow,0 12px 28px rgba(38,81,123,.11)) !important;
  color:var(--xt13-copy,#183653) !important;
  -webkit-text-fill-color:initial;
  -webkit-backdrop-filter:blur(18px) saturate(1.16);
  backdrop-filter:blur(18px) saturate(1.16);
  overflow:hidden;
  text-align:left;
  cursor:pointer;
  transition:border-color .17s ease, box-shadow .17s ease, transform .17s ease;
}
body:is(.light-mode,.dark-mode) .main-content #online-monitor-root .monitor-kpi.cyan {
  --xt19-accent:#2499e8;
  --xt19-halo:rgba(42,159,238,.20);
  --xt19-icon-ink:#167fd2;
  --xt19-icon-bg:rgba(42,159,238,.13);
}
body:is(.light-mode,.dark-mode) .main-content #online-monitor-root .monitor-kpi.teal {
  --xt19-accent:#18bca2;
  --xt19-halo:rgba(23,189,159,.18);
  --xt19-icon-ink:#079d83;
  --xt19-icon-bg:rgba(16,188,149,.14);
}
body:is(.light-mode,.dark-mode) .main-content #online-monitor-root .monitor-kpi.slate {
  --xt19-accent:#849bb6;
  --xt19-halo:rgba(127,154,187,.19);
  --xt19-icon-ink:#637e9c;
  --xt19-icon-bg:rgba(117,148,182,.14);
}
body:is(.light-mode,.dark-mode) .main-content #online-monitor-root .monitor-kpi > i {
  display:grid!important;
  place-items:center;
  border-radius:10px!important;
  background:var(--xt19-icon-bg)!important;
  color:var(--xt19-icon-ink)!important;
  border:1px solid color-mix(in srgb,var(--xt19-accent),transparent 78%);
  box-shadow:none!important;
}
body:is(.light-mode,.dark-mode) .main-content #online-monitor-root .monitor-kpi > div {min-width:0;}
body:is(.light-mode,.dark-mode) .main-content #online-monitor-root .monitor-kpi span {
  color:var(--xt13-sub,#58738f)!important;
  -webkit-text-fill-color:var(--xt13-sub,#58738f)!important;
  font-weight:650!important;
  letter-spacing:.01em;
}
body:is(.light-mode,.dark-mode) .main-content #online-monitor-root .monitor-kpi strong {
  color:var(--xt13-copy,#183653)!important;
  -webkit-text-fill-color:var(--xt13-copy,#183653)!important;
  font-weight:800!important;
  font-variant-numeric:tabular-nums;
}
body.dark-mode .main-content #online-monitor-root .monitor-kpi {
  background:
    radial-gradient(ellipse at 98% 0%,var(--xt19-halo) 0%,transparent 57%),
    var(--xt13-pane,linear-gradient(135deg,rgba(25,57,90,.92),rgba(9,26,48,.91)))!important;
  border-color:var(--xt13-line,rgba(122,170,216,.37))!important;
  border-top-color:var(--xt19-accent)!important;
  color:var(--xt13-copy,#e8f4ff)!important;
}
body.dark-mode .main-content #online-monitor-root .monitor-kpi.cyan {
  --xt19-accent:#56b8ff;
  --xt19-halo:rgba(70,155,240,.22);
  --xt19-icon-ink:#82caff;
  --xt19-icon-bg:rgba(68,150,241,.17);
}
body.dark-mode .main-content #online-monitor-root .monitor-kpi.teal {
  --xt19-accent:#34d2b6;
  --xt19-halo:rgba(41,204,174,.18);
  --xt19-icon-ink:#69e2c6;
  --xt19-icon-bg:rgba(45,202,167,.16);
}
body.dark-mode .main-content #online-monitor-root .monitor-kpi.slate {
  --xt19-accent:#a7bed9;
  --xt19-halo:rgba(143,168,202,.16);
  --xt19-icon-ink:#bfd3ea;
  --xt19-icon-bg:rgba(125,158,195,.16);
}
body.dark-mode .main-content #online-monitor-root .monitor-kpi strong {
  color:var(--xt13-copy,#e8f4ff)!important;
  -webkit-text-fill-color:var(--xt13-copy,#e8f4ff)!important;
}
body.dark-mode .main-content #online-monitor-root .monitor-kpi span {
  color:var(--xt13-sub,#b3c8de)!important;
  -webkit-text-fill-color:var(--xt13-sub,#b3c8de)!important;
}
@media (hover:hover) and (prefers-reduced-motion:no-preference) {
  body:is(.light-mode,.dark-mode) .main-content #online-monitor-root .monitor-kpi:hover {
    transform:translateY(-2px);
    box-shadow:0 15px 34px rgba(21,76,129,.19),inset 0 1px rgba(255,255,255,.12)!important;
  }
}
body:is(.light-mode,.dark-mode) .main-content #online-monitor-root .monitor-kpi:focus-visible {
  outline:3px solid var(--xt19-accent)!important;
  outline-offset:2px!important;
}
@media (prefers-reduced-motion:reduce) {
  body:is(.light-mode,.dark-mode) .main-content #online-monitor-root .monitor-kpi {transition:none!important;}
}
@media print {
  body .main-content #online-monitor-root .monitor-kpi {
    background:#fff!important;
    border:1px solid #bdcbd8!important;
    border-top:3px solid #477aa8!important;
    color:#14283d!important;
    box-shadow:none!important;
    -webkit-backdrop-filter:none!important;
    backdrop-filter:none!important;
  }
  body .main-content #online-monitor-root .monitor-kpi :is(strong,span){color:#14283d!important;-webkit-text-fill-color:#14283d!important;}
}
/* END assets/css/v24619-monitor-kpi-glass.css */

/* BEGIN assets/css/v24622-crystal-motion.css */
/* XtremeX Billing V246.22 - Crystal Motion. Presentation layer only.
   Full (default) / Balanced / Off. No receipt or table-row animations.
   This file intentionally does not change the established theme palette,
   page layout, permissions, form behavior or chart rendering. */
:root {
  --xtcm-ease: cubic-bezier(.16, 1.15, .3, 1);
  --xtcm-blue: #36a8ff;
  --xtcm-cyan: #61dfff;
  --xtcm-teal: #25d9bb;
  --xtcm-violet: #b39aff;
}

/* Mode control is inserted beside the existing theme button, no core HTML changed. */
.xtcm-control { position:relative; display:flex; align-items:center; flex:0 0 auto; z-index:1; }
.xtcm-trigger {
  appearance:none; -webkit-appearance:none; display:inline-flex; align-items:center;
  justify-content:center; gap:5px; min-height:31px; min-width:73px; padding:4px 8px;
  border-radius:10px; border:1px solid rgba(115,191,255,.36);
  background:linear-gradient(133deg,rgba(28,93,159,.76),rgba(34,58,114,.76));
  box-shadow:inset 0 1px rgba(255,255,255,.19),0 3px 10px rgba(5,37,87,.16);
  color:#f3fbff; font:700 11px/1.2 'Outfit',system-ui,sans-serif;
  white-space:nowrap; cursor:pointer;
  transition:transform .32s var(--xtcm-ease), box-shadow .3s ease, border-color .25s;
}
.xtcm-trigger:hover, .xtcm-trigger[aria-expanded="true"] {
  border-color:rgba(119,220,255,.82);
  box-shadow:0 0 0 1px rgba(105,198,255,.17),0 4px 16px rgba(46,146,255,.24);
}
.xtcm-trigger:active{transform:scale(.965)}
.xtcm-trigger i:first-child{color:#7be1ff;filter:drop-shadow(0 0 4px rgba(102,204,255,.4))}
.xtcm-trigger i:last-child{font-size:8px;opacity:.75}
.xtcm-trigger:focus-visible,.xtcm-choice:focus-visible {outline:2px solid #58c2ff;outline-offset:3px}
body.light-mode .xtcm-trigger {background:linear-gradient(135deg,#e4f3ff,#e7eafe);border-color:rgba(76,151,232,.46);color:#174469}
body.light-mode .xtcm-trigger i:first-child{color:#1474cf}
.xtcm-popup {
  position:fixed;z-index:2147483000;width:min(284px,calc(100vw - 24px));
  border-radius:16px;border:1px solid #446892;
  background:linear-gradient(150deg,#173452,#0b1e37);box-shadow:0 19px 48px rgba(0,9,25,.45);
  color:#ecf7ff;padding:9px;font:500 12px/1.4 'Outfit',system-ui,sans-serif;
}
.xtcm-popup[hidden]{display:none!important}
.xtcm-popup-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:6px 8px 10px;
  color:#b2d7f6;font-size:11px;font-weight:800;letter-spacing:.04em}
.xtcm-choice{width:100%;appearance:none;display:flex;gap:10px;align-items:center;
  color:inherit;background:transparent;border:1px solid transparent;border-radius:11px;
  text-align:left;padding:10px 11px;margin:1px 0;cursor:pointer;transition:background .18s,border-color .2s}
.xtcm-choice:hover,.xtcm-choice[aria-checked="true"]{
  background:linear-gradient(110deg,rgba(66,149,240,.24),rgba(89,209,245,.1));
  border-color:rgba(99,177,255,.27)}
.xtcm-choice:before{content:'';flex:0 0 12px;width:12px;height:12px;border:1px solid #88b2d2;border-radius:50%}
.xtcm-choice[aria-checked="true"]:before{background:#4eb7ff;border-color:#9be9ff;box-shadow:inset 0 0 0 3px #173452,0 0 9px #319dff70}
.xtcm-choice b{display:block;font-weight:850;font-size:12px}
.xtcm-choice small{display:block;color:#a8c6e0;font-size:10px;margin-top:2px}
.xtcm-popup-foot{border-top:1px solid rgba(145,193,234,.18);padding:10px 8px 5px;
  color:#93b2d0;font-size:10px}
body.light-mode .xtcm-popup,body:has(.av-wrap):not(.dark-mode) .xtcm-popup{background:linear-gradient(145deg,#fff,#ebf4ff);border-color:#a9c6eb;color:#183552;box-shadow:0 17px 45px rgba(34,70,116,.24)}
body.light-mode .xtcm-popup-head,body:has(.av-wrap):not(.dark-mode) .xtcm-popup-head{color:#456987}
body.light-mode .xtcm-choice:hover,body.light-mode .xtcm-choice[aria-checked="true"],body:has(.av-wrap):not(.dark-mode) .xtcm-choice:hover,body:has(.av-wrap):not(.dark-mode) .xtcm-choice[aria-checked="true"]{background:#e3f2ff;border-color:#98c8ef}
body.light-mode .xtcm-choice[aria-checked="true"]:before{box-shadow:inset 0 0 0 3px #e3f2ff,0 0 9px #b1dafe}
body.light-mode .xtcm-choice small,body.light-mode .xtcm-popup-foot,body:has(.av-wrap):not(.dark-mode) .xtcm-choice small,body:has(.av-wrap):not(.dark-mode) .xtcm-popup-foot{color:#56748f}
body.light-mode .xtcm-popup-foot,body:has(.av-wrap):not(.dark-mode) .xtcm-popup-foot{border-color:#d6e4f2}
.av-wrap .xtcm-control{margin-left:auto}
.av-wrap header .xtcm-control{align-self:flex-start}

/* Eligible tiles only. Avoid applying transform to the payment/client table, maps,
   interactive popovers, modals, form wrappers or chart canvases. */
html[data-xtx-motion="full"] .xtcm-tile,
html[data-xtx-motion="balanced"] .xtcm-tile{
  position:relative; isolation:isolate; overflow:hidden;
  transition:transform .36s var(--xtcm-ease),box-shadow .32s ease,border-color .28s ease,filter .28s ease;
  backface-visibility:hidden; -webkit-backface-visibility:hidden;
}
.xtcm-shine-layer{
  position:absolute;inset:0;display:block;border-radius:inherit;overflow:hidden;
  pointer-events:none;z-index:3;opacity:0;transition:opacity .22s ease;
}
.xtcm-shine-layer:before{
  content:'';position:absolute;left:-45%;top:-75%;width:46%;height:260%;
  transform:rotate(25deg) translate3d(-130%,0,0);
  background:linear-gradient(90deg,transparent,rgba(226,247,255,.23) 36%,rgba(255,255,255,.35) 51%,transparent);
  pointer-events:none;opacity:.85;
}
.xtcm-shine-layer:after{
  content:'';position:absolute;inset:0;pointer-events:none;opacity:0;
  background:radial-gradient(ellipse 90% 110% at var(--xtcm-x,50%) var(--xtcm-y,50%),
    rgba(103,207,255,.25),rgba(148,97,245,.09) 35%,transparent 73%);
  transition:opacity .18s ease;
}
html[data-xtx-motion="full"] .xtcm-tile.xtcm-visible .xtcm-shine-layer{opacity:.55}
html[data-xtx-motion="full"] .xtcm-tile.xtcm-visible .xtcm-shine-layer:before{
  animation:xtcm-shimmer 6.6s linear infinite;animation-delay:var(--xtcm-delay,0s);
}
html[data-xtx-motion="full"] .xtcm-tile:hover .xtcm-shine-layer,
html[data-xtx-motion="balanced"] .xtcm-tile:hover .xtcm-shine-layer{opacity:1}
html[data-xtx-motion="full"] .xtcm-tile:hover .xtcm-shine-layer:after{opacity:1}
html[data-xtx-motion="balanced"] .xtcm-tile:hover .xtcm-shine-layer:after{opacity:.35}
@keyframes xtcm-shimmer{
  0%,23% {transform:rotate(25deg) translate3d(-145%,0,0)}
  38%,100% {transform:rotate(25deg) translate3d(620%,0,0)}
}

/* Stronger visual feedback on non-table metric cards; motion requires hover. */
@media(hover:hover) and (pointer:fine){
  html[data-xtx-motion="full"] .xtcm-tile:hover{
    transform:translate3d(0,-4px,0) scale(1.018);
    box-shadow:0 18px 35px rgba(17,96,203,.22),0 0 0 1px rgba(110,205,255,.46),
      inset 0 1px rgba(255,255,255,.22)!important;
    border-color:rgba(117,207,255,.69)!important;
  }
  html[data-xtx-motion="balanced"] .xtcm-tile:hover{
    transform:translate3d(0,-2px,0);
    box-shadow:0 10px 22px rgba(32,118,196,.13),0 0 0 1px rgba(116,193,245,.23)!important;
    border-color:rgba(117,192,245,.44)!important;
  }
  html[data-xtx-motion="full"] .xtcm-tile:has(a:hover,button:hover,input:hover,select:hover):hover,
  html[data-xtx-motion="balanced"] .xtcm-tile:has(a:hover,button:hover,input:hover,select:hover):hover{
    transform:none;
  }
}
html[data-xtx-motion="full"] .xtcm-tile.xtcm-tap{
  animation:xtcm-card-bounce .58s cubic-bezier(.16,1.12,.3,1) both;
}
@keyframes xtcm-card-bounce{
  0%{transform:scale(1)}32%{transform:scale(.965)}65%{transform:scale(1.034)}100%{transform:scale(1)}
}

/* Up to six visible status icons are given ambient float in Full mode. */
html[data-xtx-motion="full"] .xtcm-tile.xtcm-visible .xtcm-icon {
  transform-origin:center;
  animation:xtcm-icon-float 4.3s ease-in-out infinite;
  animation-delay:var(--xtcm-delay,0s);
}
@keyframes xtcm-icon-float{0%,100%{transform:translate3d(0,0,0)}50%{transform:translate3d(0,-3px,0)}}
html[data-xtx-motion="full"] .xtcm-tile:hover .xtcm-icon{
  filter:drop-shadow(0 1px 7px rgba(75,184,255,.37));
}
/* Preserve readable numbers and amounts. The glow is on the icon, not the text. */
html[data-xtx-motion="full"] body.dark-mode .xtcm-tile :is(strong,.stat-value,.ou-stat strong){
  text-shadow:0 1px 1px rgba(0,0,0,.18);
}

/* Larger page panels glow subtly; never move tables or interactive sections. */
html[data-xtx-motion="full"] .xtcm-panel,
html[data-xtx-motion="balanced"] .xtcm-panel{
  transition:border-color .28s ease,box-shadow .3s ease;
}
@media(hover:hover) and (pointer:fine){
  html[data-xtx-motion="full"] .xtcm-panel:hover{
    border-color:rgba(82,175,255,.46)!important;
    box-shadow:0 10px 30px rgba(35,115,206,.13)!important;
  }
}

/* Animated sidebar feedback without changing active navigation or click handlers. */
html[data-xtx-motion="full"] .sidebar-nav :is(.nav-link,.nav-link-sub),
html[data-xtx-motion="balanced"] .sidebar-nav :is(.nav-link,.nav-link-sub){
  transition:transform .3s var(--xtcm-ease),background-color .25s,border-color .25s,
    box-shadow .3s,color .2s!important;
  transform-origin:left center;
}
@media(hover:hover) and (pointer:fine){
  html[data-xtx-motion="full"] .sidebar-nav :is(.nav-link,.nav-link-sub):hover{
    transform:translate3d(4px,0,0) scale(1.015);
    box-shadow:inset 3px 0 #5dd6ff,0 4px 12px rgba(21,122,238,.17);
  }
  html[data-xtx-motion="balanced"] .sidebar-nav :is(.nav-link,.nav-link-sub):hover{
    transform:translate3d(2px,0,0);
  }
}
html[data-xtx-motion="full"] .sidebar-nav :is(.nav-link,.nav-link-sub).active{
  box-shadow:inset 3px 0 #49acff,0 0 13px rgba(47,145,255,.20);
}
html[data-xtx-motion="full"] .sidebar-nav .nav-link.active i{
  color:#7bdfff!important;filter:drop-shadow(0 0 5px rgba(77,192,255,.58));
}

/* Buttons and action chips: spring feedback (no action handlers replaced). */
html[data-xtx-motion="full"] body :is(.btn,.btn-primary,.btn-success,.top-action-button,.btn-icon,.ispd-billing-bulk-action),
html[data-xtx-motion="balanced"] body :is(.btn,.btn-primary,.btn-success,.top-action-button,.btn-icon){
  transition:transform .32s var(--xtcm-ease),box-shadow .25s,border-color .2s!important;
}
@media(hover:hover) and (pointer:fine){
  html[data-xtx-motion="full"] body :is(.btn-primary,.btn-success,.top-action-button):hover{
    transform:translate3d(0,-2px,0);
    box-shadow:0 7px 21px rgba(43,138,241,.23);
  }
  html[data-xtx-motion="balanced"] body :is(.btn-primary,.btn-success,.top-action-button):hover{transform:translate3d(0,-1px,0)}
}
html[data-xtx-motion="full"] .xtcm-feedback.xtcm-press{transform:scale(.94)!important}
html[data-xtx-motion="balanced"] .xtcm-feedback.xtcm-press{transform:scale(.975)!important}
html[data-xtx-motion="full"] .xtcm-feedback.xtcm-rebound{
  animation:xtcm-feedback-bounce .46s cubic-bezier(.19,.96,.25,1) both;
}
@keyframes xtcm-feedback-bounce{0%{transform:scale(.95)}45%{transform:scale(1.055)}100%{transform:scale(1)}}

/* Touch devices: keep quick feedback but avoid pointer tracking and moving shimmer. */
@media(hover:none),(pointer:coarse){
  html[data-xtx-motion="full"] .xtcm-tile.xtcm-visible .xtcm-shine-layer:before{animation-duration:9s;opacity:.52}
  html[data-xtx-motion="full"] .xtcm-tile.xtcm-visible .xtcm-icon{animation-duration:6s}
  .xtcm-trigger{min-width:34px;padding:4px 6px}
  .xtcm-trigger .xtcm-short-label{display:none}
}
@media(max-width:780px){
  .xtcm-trigger{min-width:31px;height:31px;max-height:32px;padding:5px 6px;gap:3px}
  .xtcm-trigger .xtcm-short-label,.xtcm-trigger .xtcm-caret{display:none}
  .xtcm-popup{max-width:calc(100vw - 20px)}
}

/* Browser performance guard: no perpetual repaint in hidden tab, Save-Data, or reduced-motion. */
html.xtcm-paused .xtcm-shine-layer:before,
html.xtcm-paused .xtcm-icon,
html.xtcm-low-power .xtcm-shine-layer:before,
html.xtcm-low-power .xtcm-icon{animation:none!important}
@media(prefers-reduced-motion:reduce){
  html[data-xtx-motion] .xtcm-tile,
  html[data-xtx-motion] .xtcm-feedback,
  html[data-xtx-motion] .sidebar-nav :is(.nav-link,.nav-link-sub),
  html[data-xtx-motion] .xtcm-icon { animation:none!important;transition:none!important;transform:none!important }
  html[data-xtx-motion] .xtcm-shine-layer:before{animation:none!important}
}
@media print {
  .xtcm-control,.xtcm-popup,.xtcm-shine-layer{display:none!important}
  html[data-xtx-motion] .xtcm-tile,html[data-xtx-motion] .xtcm-icon,
  html[data-xtx-motion] .xtcm-feedback{transform:none!important;animation:none!important;transition:none!important;filter:none!important}
}
/* END assets/css/v24622-crystal-motion.css */

/* BEGIN assets/css/v24623-crystal-typography.css */
/* XtremeX Billing V246.23 - Crystal Typography & Icon Clarity
   Presentation-only enhancement designed for V246.22 Full Motion.
   No font files bundled, no application data or UI logic changed. */
:root{
  --xt23-ui-font:'Manrope','Noto Sans Bengali','Outfit',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Arial,sans-serif;
  --xt23-number-font:'Manrope','Outfit','Segoe UI',system-ui,sans-serif;
  --font-sans:var(--xt23-ui-font);
  font-synthesis:weight style;
}
/* Modern geometric letterforms, optical sizing, clearer cross-platform rendering.
   Keep the established 11-13px dense tables and existing layouts intact. */
body,
body.dark-mode,
body.light-mode{
  font-family:var(--xt23-ui-font)!important;
  font-optical-sizing:auto;
  font-kerning:normal;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
/* Never override Font Awesome, code, symbols or mono-spaced network data. */
body :is(button,input:not([type="checkbox"]):not([type="radio"]),select,textarea,.form-control),
body :is(.sidebar-nav,.topbar,.page-content,.content-area,.modal,.av-wrap){
  font-family:var(--xt23-ui-font)!important;
  font-kerning:normal;
}
body :is(.fa,.fas,.far,.fab,.fal,.fat,.fa-solid,.fa-regular,.fa-brands,
   [class^="fa-"],[class*=" fa-"]){
  /* Font Awesome icon family remains supplied by its own stylesheet. */
  font-kerning:auto;
}
/* Crisp headings. No blurred text-shadow on ordinary labels or numerical data. */
body :is(h1,h2,h3,h4,.page-title,.reference-page-title,
  .reference-page-head h2,.final-dashboard-head h2,.reference-dashboard-head h2,
  .reference-panel-head h3,.final-panel-head h3,.card-header h3,
  .av-wrap header h1,.ou-head h2){
  font-family:var(--xt23-ui-font)!important;
  letter-spacing:-.028em;
  font-weight:750;
  text-wrap:pretty;
  -webkit-font-smoothing:antialiased;
}
/* Preserve heading colors from the current light/dark theme. */
body.dark-mode :is(h1,h2,h3,.page-title,.reference-page-title,
  .reference-page-head h2,.final-dashboard-head h2,.reference-panel-head h3){
  text-shadow:0 1px 0 rgba(1,13,29,.22),0 0 12px rgba(109,189,255,.06);
}
body.light-mode :is(h1,h2,h3,.page-title,.reference-page-title,
  .reference-page-head h2,.final-dashboard-head h2,.reference-panel-head h3){
  text-shadow:0 1px 0 rgba(255,255,255,.45);
}
/* Navigation and action labels become slightly sharper and more consistent. */
body .sidebar-nav :is(.nav-link,.nav-link-sub){
  font-family:var(--xt23-ui-font)!important;
  letter-spacing:.002em;
  font-weight:650;
}
body :is(.topbar .btn,.topbar button,.sidebar-header,
  .xtcm-trigger,.xtcm-popup,.btn,.btn-primary,.btn-secondary,
  .ispd-billing-bulk-action,.reference-actionbar button){
  font-family:var(--xt23-ui-font)!important;
  letter-spacing:-.008em;
}
body :is(.form-label,label,.reference-section-heading p,
  .reference-page-head p,.final-kpi span,.monitor-kpi span,
  .ou-stat span,.stats-grid .stat-card span){
  font-family:var(--xt23-ui-font);
  letter-spacing:.004em;
}
/* Finance/billing numbers: tabular alignment, bold but not glowing or blurred. */
body :is(.final-kpi strong,.reference-kpi strong,
  #r64-stats .stat-card strong,#r64-stats .stat-card .value,
  .stats-grid .stat-card .amount,
  .billing-summary-grid strong,.ispd-bill-card strong,
  .monitor-kpi strong,.ou-stat strong,.final-panel strong,
  .reference-dashboard .donut-center strong,
  .reference-billing-page .ispd-billing-summary strong){
  font-family:var(--xt23-number-font)!important;
  font-optical-sizing:auto;
  font-weight:800;
  font-variant-numeric:lining-nums tabular-nums;
  font-feature-settings:'tnum' 1,'lnum' 1;
  letter-spacing:-.035em;
  text-shadow:none;
}
/* Keep table text readable and compact; do NOT enlarge table rows. */
body :is(table,.dataTable,.ispd-billing-table,.reference-data-table,
   .monitor-table,.ou-table,.billing-wide-table){
  font-variant-numeric:tabular-nums;
  font-feature-settings:'tnum' 1;
  letter-spacing:0;
}
body :is(th,thead th,.dataTables_length label,.dataTables_filter label){
  font-family:var(--xt23-ui-font);
  font-weight:700;
  letter-spacing:-.006em;
}
body :is(td,tbody td){letter-spacing:0}
/* Subtle glossy icon polish; no additional infinite animations. */
body :is(.final-kpi>i,.reference-kpi>i,.monitor-kpi>i,
  .reference-dashboard-head h2>i,.reference-page-head h2>i,
  .av-wrap header h1>i){
  filter:drop-shadow(0 1px 1px rgba(255,255,255,.22))
         drop-shadow(0 2px 5px rgba(44,148,238,.17));
}
body.dark-mode :is(.final-kpi>i,.monitor-kpi>i,.reference-kpi>i){
  filter:drop-shadow(0 0 5px rgba(80,181,255,.3));
}
/* Only emphasize navigation icons on interaction; avoids persistent GPU work. */
@media(hover:hover) and (pointer:fine){
  body .sidebar-nav :is(.nav-link,.nav-link-sub):hover>i{
    filter:drop-shadow(0 0 4px rgba(71,181,255,.38));
  }
}
@media(max-width:700px){
  body .sidebar-nav :is(.nav-link,.nav-link-sub){letter-spacing:0}
  body :is(.final-kpi strong,.monitor-kpi strong,.ou-stat strong){letter-spacing:-.025em}
}
/* Print keeps exact existing receipt/invoice styles. */
@media print{
  body,body.dark-mode,body.light-mode{font-family:'Outfit',Arial,sans-serif!important;text-shadow:none!important}
  body :is(.final-kpi>i,.monitor-kpi>i,.reference-kpi>i){filter:none!important}
}
/* END assets/css/v24623-crystal-typography.css */

/* BEGIN assets/css/v24624-collapsed-flyout-motion.css */
/* XtremeX Billing V246.24 - Collapsed sidebar Crystal Motion fix.
   V223 renders the collapsed flyout at the document BODY level, outside .sidebar-nav.
   Target only that popup; leave expanded navigation and app routing unchanged. */

@media (min-width: 993px) {
  html:is([data-xtx-motion="full"],[data-xtx-motion="balanced"]) body.light-mode #xtx-collapsed-flyout-v223 {
    background:linear-gradient(150deg,rgba(255,255,255,.97),rgba(232,244,255,.94))!important;
    color:#1d3855!important;
    border:1px solid rgba(87,158,240,.54)!important;
    border-radius:15px!important;
    box-shadow:0 18px 45px rgba(22,86,168,.20),0 0 0 1px rgba(172,217,255,.22) inset!important;
    backdrop-filter:blur(12px) saturate(135%);
    -webkit-backdrop-filter:blur(12px) saturate(135%);
  }
  html:is([data-xtx-motion="full"],[data-xtx-motion="balanced"]) body:is(.dark-mode,.xtx-theme-dark) #xtx-collapsed-flyout-v223 {
    background:linear-gradient(150deg,rgba(19,48,80,.96),rgba(8,23,42,.97))!important;
    color:#f1f8ff!important;
    border:1px solid rgba(93,184,255,.48)!important;
    border-radius:15px!important;
    box-shadow:0 18px 45px rgba(0,0,0,.42),0 0 20px rgba(30,145,246,.15),inset 0 1px rgba(196,233,255,.11)!important;
    backdrop-filter:blur(12px) saturate(125%);
    -webkit-backdrop-filter:blur(12px) saturate(125%);
  }

  html:is([data-xtx-motion="full"],[data-xtx-motion="balanced"]) #xtx-collapsed-flyout-v223 {
    transform-origin:0 18px;
    will-change:auto;
  }
  html:is([data-xtx-motion="full"],[data-xtx-motion="balanced"]) #xtx-collapsed-flyout-v223 .xtx-collapsed-flyout-title-v223 {
    font-family:var(--xt23-ui-font,'Manrope',system-ui,sans-serif)!important;
    font-weight:800!important;
    letter-spacing:.005em;
    color:inherit!important;
    border-bottom-color:rgba(110,167,225,.3)!important;
    text-shadow:0 1px rgba(255,255,255,.08);
  }
  html[data-xtx-motion="full"] body.light-mode #xtx-collapsed-flyout-v223 .xtx-collapsed-flyout-title-v223 {color:#17486e!important}
  html[data-xtx-motion="full"] body:is(.dark-mode,.xtx-theme-dark) #xtx-collapsed-flyout-v223 .xtx-collapsed-flyout-title-v223 {color:#a9dfff!important}

  /* Unlike .sidebar-nav .nav-link-sub, the live flyout's links are cloned under BODY. */
  html:is([data-xtx-motion="full"],[data-xtx-motion="balanced"]) #xtx-collapsed-flyout-v223 .sidebar-submenu a.nav-link-sub {
    font-family:var(--xt23-ui-font,'Manrope',system-ui,sans-serif)!important;
    border:1px solid transparent;
    border-radius:10px!important;
    transform-origin:left center;
    transition:transform .32s cubic-bezier(.2,1.3,.3,1),background .22s ease,border-color .22s ease,box-shadow .25s ease,color .2s ease!important;
    position:relative;
    color:inherit!important;
    background:transparent!important;
    text-decoration:none;
    outline-offset:2px;
  }
  html[data-xtx-motion="full"] body.light-mode #xtx-collapsed-flyout-v223 .sidebar-submenu a.nav-link-sub:is(:hover,:focus-visible,.active) {
    color:#07599f!important;
    background:linear-gradient(115deg,rgba(48,149,255,.18),rgba(130,201,255,.08))!important;
    border-color:rgba(48,150,255,.29)!important;
    box-shadow:inset 3px 0 0 #2d96ff,0 6px 16px rgba(29,119,218,.14)!important;
  }
  html[data-xtx-motion="full"] body:is(.dark-mode,.xtx-theme-dark) #xtx-collapsed-flyout-v223 .sidebar-submenu a.nav-link-sub:is(:hover,:focus-visible,.active) {
    color:#f4fbff!important;
    background:linear-gradient(115deg,rgba(37,139,244,.34),rgba(86,202,255,.12))!important;
    border-color:rgba(91,188,255,.34)!important;
    box-shadow:inset 3px 0 0 #66d5ff,0 6px 19px rgba(12,94,199,.22),0 0 12px rgba(54,161,246,.16)!important;
  }
  html[data-xtx-motion="balanced"] body.light-mode #xtx-collapsed-flyout-v223 .sidebar-submenu a.nav-link-sub:is(:hover,:focus-visible,.active) {
    color:#1267a7!important;
    background:rgba(42,141,245,.12)!important;
    border-color:rgba(74,153,235,.23)!important;
    box-shadow:inset 2px 0 #47a8ff!important;
  }
  html[data-xtx-motion="balanced"] body:is(.dark-mode,.xtx-theme-dark) #xtx-collapsed-flyout-v223 .sidebar-submenu a.nav-link-sub:is(:hover,:focus-visible,.active) {
    color:#f2f9ff!important;
    background:rgba(52,154,251,.22)!important;
    border-color:rgba(105,181,250,.28)!important;
    box-shadow:inset 2px 0 #56b9ff!important;
  }
  html[data-xtx-motion="full"] #xtx-collapsed-flyout-v223 .sidebar-submenu a.nav-link-sub:is(:hover,:focus-visible) {
    transform:translate3d(4px,0,0) scale(1.014);
  }
  html[data-xtx-motion="balanced"] #xtx-collapsed-flyout-v223 .sidebar-submenu a.nav-link-sub:is(:hover,:focus-visible) {
    transform:translate3d(2px,0,0);
  }
  html[data-xtx-motion="full"] #xtx-collapsed-flyout-v223 .sidebar-submenu a.nav-link-sub:is(:hover,:focus-visible) > i {
    color:#37a6f6!important;
    filter:drop-shadow(0 0 5px rgba(62,178,255,.50));
  }
  html[data-xtx-motion="full"] #xtx-collapsed-flyout-v223 .sidebar-submenu a.nav-link-sub.xt24-press {
    transform:scale(.96)!important;
  }
  html[data-xtx-motion="full"] #xtx-collapsed-flyout-v223 .sidebar-submenu a.nav-link-sub.xt24-rebound {
    animation:xt24-link-rebound .43s cubic-bezier(.2,1.08,.22,1) both!important;
  }
  html[data-xtx-motion="balanced"] #xtx-collapsed-flyout-v223 .sidebar-submenu a.nav-link-sub.xt24-press {
    transform:scale(.98)!important;
  }
  html[data-xtx-motion="full"] #xtx-collapsed-flyout-v223:not([hidden]).xt24-enter {
    animation:xt24-flyout-open .39s cubic-bezier(.19,1.05,.26,1) both;
  }
  html[data-xtx-motion="balanced"] #xtx-collapsed-flyout-v223:not([hidden]).xt24-enter {
    animation:xt24-flyout-balanced .22s ease-out both;
  }
  html[data-xtx-motion="full"] #xtx-collapsed-flyout-v223:not([hidden]) .sidebar-submenu > li {
    animation:xt24-flyout-item .29s cubic-bezier(.22,1.2,.26,1) both;
  }
  html[data-xtx-motion="full"] #xtx-collapsed-flyout-v223:not([hidden]) .sidebar-submenu > li:nth-child(2) {animation-delay:24ms}
  html[data-xtx-motion="full"] #xtx-collapsed-flyout-v223:not([hidden]) .sidebar-submenu > li:nth-child(3) {animation-delay:48ms}
  html[data-xtx-motion="full"] #xtx-collapsed-flyout-v223:not([hidden]) .sidebar-submenu > li:nth-child(4) {animation-delay:65ms}
  html[data-xtx-motion="full"] #xtx-collapsed-flyout-v223:not([hidden]) .sidebar-submenu > li:nth-child(n+5) {animation-delay:75ms}
  @keyframes xt24-flyout-open {
    0% {opacity:0;transform:translate3d(-9px,4px,0) scale(.952)}
    58% {opacity:1;transform:translate3d(2px,-1px,0) scale(1.018)}
    100% {opacity:1;transform:translate3d(0,0,0) scale(1)}
  }
  @keyframes xt24-flyout-balanced {
    from {opacity:0;transform:translate3d(-4px,0,0) scale(.985)}
    to {opacity:1;transform:none}
  }
  @keyframes xt24-flyout-item {
    from {opacity:0;transform:translate3d(-5px,3px,0)}
    to {opacity:1;transform:none}
  }
  @keyframes xt24-link-rebound {
    0% {transform:scale(.96)}
    50% {transform:translate3d(4px,0,0) scale(1.026)}
    100% {transform:none}
  }
}

/* Do not block taps or animate away from the link on touch-only hardware. */
@media (hover:none), (pointer:coarse) {
  html[data-xtx-motion="full"] #xtx-collapsed-flyout-v223 .sidebar-submenu a.nav-link-sub:is(:hover,:focus-visible){transform:none}
}
@media (prefers-reduced-motion: reduce) {
  html[data-xtx-motion] #xtx-collapsed-flyout-v223,
  html[data-xtx-motion] #xtx-collapsed-flyout-v223 * {
    animation:none!important;transition:none!important;transform:none!important;
  }
}
html.xtcm-low-power[data-xtx-motion] #xtx-collapsed-flyout-v223,
html.xtcm-low-power[data-xtx-motion] #xtx-collapsed-flyout-v223 * {
  animation:none!important;transition:none!important;transform:none!important;
}
@media print { #xtx-collapsed-flyout-v223 {display:none!important} }
/* END assets/css/v24624-collapsed-flyout-motion.css */

/* BEGIN assets/css/v24625-crystal-typography-v2.css */
/* XtremeX Billing V246.25 - Crystal Typography 2.0
 * Visual polish only, layered after V246.23 and V246.24.
 * Sora headings, clear Manrope navigation/figures, Bengali fallback.
 * Intentionally no new continuous animations, table-row height changes,
 * font icons replacements, data mutations, or print/receipt modifications.
 */
@media screen {
:root {
  --xt25-display: 'Sora', 'Manrope', 'Noto Sans Bengali', 'Outfit', system-ui, sans-serif;
  --xt25-interface: 'Manrope', 'Noto Sans Bengali', 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --xt25-figures: 'Manrope', 'Outfit', system-ui, sans-serif;
}

/* Give page titles distinctive, crisp geometry, without faded/glowing text. */
body :is(
  h1, h2, h3, h4,
  .page-title, .reference-page-title,
  .reference-page-head h2, .final-dashboard-head h2,
  .reference-dashboard-head h2, .reference-panel-head h3,
  .final-panel-head h3, .card-header h3,
  .ou-head h2, .av-wrap header h1,
  .xtx-collapsed-flyout-title-v223
) {
  font-family: var(--xt25-display) !important;
  font-weight: 700 !important;
  letter-spacing: -.035em;
  line-height: 1.28;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
  text-shadow: none !important;
}
body :is(.final-dashboard-head h2,.reference-page-head h2,.reference-dashboard-head h2,.page-title,.reference-page-title) {
  font-size: clamp(20px, 1.7vw, 24px) !important;
  letter-spacing: -.042em;
}
body :is(.final-panel-head h3,.reference-panel-head h3,.card-header h3) {
  font-size: clamp(13px, 1.15vw, 16px);
  letter-spacing: -.022em;
}
/* Keep mobile page titles prominent without expanding form/table width. */
@media (max-width: 700px) {
  body :is(.final-dashboard-head h2,.reference-page-head h2,.reference-dashboard-head h2,.page-title,.reference-page-title) {
    font-size: 20px !important;
  }
}

/* Readable, premium navigation: subtle differentiation from the former Outfit look. */
body .sidebar-nav .nav-link {
  font-family: var(--xt25-interface) !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  letter-spacing: -.014em !important;
  line-height: 1.30;
}
body .sidebar-nav .nav-link-sub,
body #xtx-collapsed-flyout-v223 .sidebar-submenu a.nav-link-sub {
  font-family: var(--xt25-interface) !important;
  font-size: 12.7px !important;
  font-weight: 650 !important;
  letter-spacing: -.008em !important;
  line-height: 1.33;
}
body #xtx-collapsed-flyout-v223 .xtx-collapsed-flyout-title-v223 {
  font-family: var(--xt25-display) !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
}
body :is(.topbar .btn, .topbar button, .xtcm-trigger, .xtcm-choice,
  .btn-primary, .btn-secondary, .reference-actionbar button,
  .ispd-billing-bulk-action) {
  font-family: var(--xt25-interface) !important;
  font-weight: 700;
  letter-spacing: -.01em;
}

/* KPI labels: slightly stronger than the previous tiny 8.8px captions. */
body :is(.final-kpi span, .reference-kpi span,
  .monitor-kpi span, .ou-stat span,
  #r64-stats .stat-card .label,
  .reference-billing-page .ispd-billing-summary span,
  .ispd-bill-card .label) {
  font-family: var(--xt25-interface) !important;
  font-weight: 650 !important;
  letter-spacing: -.005em !important;
  text-shadow: none !important;
}
body .final-kpi span { font-size: 10px !important; line-height: 1.24; }
body .reference-kpi span { font-size: 11px !important; }
body .final-kpi small { font-size: 8.6px !important; line-height: 1.18; }

/* Distinct visual hierarchy for collection/accounting amounts.
   Clamp sizes for five- or eight-column grids; do not truncate money.
   Leave the underlying number values, layout and data unchanged. */
body :is(.final-kpi strong,.reference-kpi strong,
  #r64-stats .stat-card strong,#r64-stats .stat-card .value,
  .stats-grid .stat-card .amount,
  .billing-summary-grid strong,.ispd-bill-card strong,
  .monitor-kpi strong,.ou-stat strong,
  .reference-billing-page .ispd-billing-summary strong) {
  font-family: var(--xt25-figures) !important;
  font-weight: 800 !important;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: 'tnum' 1, 'lnum' 1;
  letter-spacing: -.038em !important;
  line-height: 1.12;
  text-shadow: none !important;
}
body .final-kpi strong { font-size: clamp(15px, 1.30vw, 18px) !important; }
body .reference-kpi strong { font-size: clamp(17px, 1.5vw, 20px) !important; }
body #r64-stats .stat-card :is(strong,.value),
body .monitor-kpi strong,body .ou-stat strong {
  font-size: clamp(16px, 1.45vw, 20px) !important;
}
body :is(.ispd-bill-card strong,.reference-billing-page .ispd-billing-summary strong) {
  font-size: clamp(15px, 1.25vw, 18px) !important;
}
@media (max-width: 700px) {
  body .final-kpi strong { font-size: 16px !important; }
  body .final-kpi span { font-size: 9.6px !important; }
  body :is(.reference-kpi strong, .monitor-kpi strong, .ou-stat strong) { font-size: 17px !important; }
}

/* Tables stay compact.  The small increase is in weight/legibility only. */
body :is(.table,table,.dataTable,.ispd-billing-table,
  .reference-data-table,.monitor-table,.ou-table,.billing-wide-table) {
  font-family: var(--xt25-interface);
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1;
}
body :is(table thead th,.dataTable thead th,.ispd-billing-table th,
  .reference-data-table th,.monitor-table th,.ou-table th,
  .billing-wide-table th) {
  font-family: var(--xt25-interface) !important;
  font-weight: 750 !important;
  letter-spacing: -.008em !important;
  text-shadow: none !important;
}
body :is(table tbody td,.dataTable tbody td) {
  font-weight: 500;
  letter-spacing: 0;
  text-shadow: none !important;
}

/* Glass-reflection treatment for icon glyphs, NOT blurred text.
   Font Awesome font-family is deliberately never overridden. */
body :is(.final-kpi > i,.reference-kpi > i,.monitor-kpi > i,
  .ou-stat > i,.final-dashboard-head h2 > i,
  .reference-page-head h2 > i,.nav-link > i,.nav-link-sub > i) {
  filter: drop-shadow(0 1px 0 rgba(255,255,255,.17))
          drop-shadow(0 2px 4px rgba(48,146,248,.16));
}
body.dark-mode :is(.final-kpi > i,.reference-kpi > i,.monitor-kpi > i,
  .ou-stat > i,.nav-link > i,.nav-link-sub > i) {
  filter: drop-shadow(0 0 4px rgba(73,177,255,.24));
}


} /* End screen-only typography rules: printing uses the pre-existing receipt styles. */
/* END assets/css/v24625-crystal-typography-v2.css */

/* BEGIN assets/css/v24626-action-popovers.css */
/* XtremeX Billing V246.26 - Action menus escape table clipping.
   Scope limited to actual row action menus; no table widths/data are changed. */
@media screen {
  body .xtx26-action-popup:popover-open,
  body .xtx26-action-popup.xtx26-fallback-visible {
    display:flex!important;
    flex-direction:column!important;
    align-items:stretch!important;
    flex-wrap:nowrap!important;
    gap:3px!important;
    margin:0!important;
    padding:7px!important;
    width:min(238px,calc(100vw - 16px))!important;
    min-width:0!important;
    max-width:calc(100vw - 16px)!important;
    max-height:min(65dvh,435px)!important;
    box-sizing:border-box!important;
    overflow-x:hidden!important;
    overflow-y:auto!important;
    color:#193951!important;
    background:linear-gradient(160deg,rgba(255,255,255,.99),rgba(238,247,255,.98))!important;
    border:1px solid #a7c9e7!important;
    border-radius:12px!important;
    box-shadow:0 17px 38px rgba(13,48,86,.28)!important;
    isolation:isolate;
    opacity:1!important;
    visibility:visible!important;
    pointer-events:auto!important;
    transform:none!important;
    z-index:2147483600!important;
    -webkit-overflow-scrolling:touch;
  }
  body .xtx26-action-popup:popover-open > :is(button,a,input[type="button"],[role="menuitem"]),
  body .xtx26-action-popup.xtx26-fallback-visible > :is(button,a,input[type="button"],[role="menuitem"]) {
    display:flex!important;
    flex:0 0 auto!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:9px!important;
    width:100%!important;
    min-width:0!important;
    height:auto!important;
    min-height:34px!important;
    padding:7px 10px!important;
    margin:0!important;
    text-align:left!important;
    white-space:normal!important;
    overflow-wrap:anywhere!important;
    font-size:12px!important;
    line-height:1.35!important;
    font-weight:650!important;
    text-decoration:none!important;
    color:#193951!important;
    background:transparent!important;
    border:0!important;
    border-radius:7px!important;
    cursor:pointer;
  }
  body .xtx26-action-popup:popover-open > :is(button,a):is(:hover,:focus-visible),
  body .xtx26-action-popup.xtx26-fallback-visible > :is(button,a):is(:hover,:focus-visible) {
    background:#deefff!important;
    outline-offset:0;
  }
  body .xtx26-action-popup :is(i,svg){flex:0 0 18px!important;width:18px!important;max-width:18px!important;color:#2586d9!important}
  body .xtx26-action-popup .xtx26-action-label{display:inline!important;flex:1!important;min-width:0!important;overflow-wrap:anywhere!important}
  body .xtx26-action-popup .danger{color:#be334e!important}
  body .xtx26-action-popup .danger :is(i,svg){color:#d54258!important}
  body.dark-mode .xtx26-action-popup:popover-open,
  body.dark-mode .xtx26-action-popup.xtx26-fallback-visible {
    color:#e4f2ff!important;
    background:linear-gradient(155deg,rgba(18,45,70,.99),rgba(9,29,50,.99))!important;
    border-color:#45749b!important;
    box-shadow:0 18px 45px rgba(0,0,0,.50)!important;
  }
  body.dark-mode .xtx26-action-popup:popover-open > :is(button,a,input[type="button"],[role="menuitem"]),
  body.dark-mode .xtx26-action-popup.xtx26-fallback-visible > :is(button,a,input[type="button"],[role="menuitem"]) {
    color:#e4f2ff!important;background:transparent!important;
  }
  body.dark-mode .xtx26-action-popup:popover-open > :is(button,a):is(:hover,:focus-visible),
  body.dark-mode .xtx26-action-popup.xtx26-fallback-visible > :is(button,a):is(:hover,:focus-visible) {
    background:#235275!important;
  }
  body.dark-mode .xtx26-action-popup .xtx26-action-label {color:inherit!important}
  body.dark-mode .xtx26-action-popup :is(i,svg){color:#7acafa!important}
  @media (max-width:700px) {
    body .xtx26-action-popup:popover-open,
    body .xtx26-action-popup.xtx26-fallback-visible { width:min(244px,calc(100vw - 16px))!important;max-height:65dvh!important }
    body .xtx26-action-popup:popover-open > :is(button,a,input[type="button"],[role="menuitem"]) {min-height:42px!important;padding:10px!important}
  }
  @media(prefers-reduced-motion:reduce){body .xtx26-action-popup{animation:none!important;transition:none!important}}
}
/* END assets/css/v24626-action-popovers.css */

/* BEGIN assets/css/ui-v249.css */
/* V249 + V249.1: scoped workflow, matching cards and wrapping toolbars. */
@media screen {
 .ui249-menu-label{display:none}
 :is(#modal-bill-pay,#modal-client-bulk,#modal-billing-pdf):not(.active){visibility:hidden!important}
 .ui249-filter-context{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:8px 0 12px;padding:10px;border:1px solid #c8d9e7;border-radius:12px;background:#f4f9fd;color:#203e56;font:500 13px/1.5 Manrope,system-ui,sans-serif}
 .ui249-filter-chip{padding:3px 9px;background:#e0eefb;border:1px solid #b8d2eb;border-radius:20px;overflow-wrap:anywhere}
 .ui249-load-state{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:8px 0;padding:9px 12px;border-radius:10px;font-size:13px;color:#25445d;background:#edf5fc}
 .ui249-load-state.error{color:#8c311f;background:#fff0e9;border:1px solid #dfac93}
 .ui249-load-state.ready{border-left:3px solid #158166;background:#eaf8f2;color:#1d594b}
 .ui249-results-stale .ispd-billing-summary{border:2px dashed #b67b23;border-radius:12px}
 #billing-invoice-pane[aria-busy="true"] .ispd-billing-table-card{opacity:.8}
 #clients-list[aria-busy="true"]{opacity:.65}
 #payment-pagination{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:10px;padding:12px;font-size:13px}
 #payment-pagination>span{margin-right:auto}
 #payment-pagination button:disabled{opacity:.5;cursor:default}
 #client-bulk-feedback,.ui249-receive-notice{font-size:14px;line-height:1.6;padding:10px;border-radius:9px;background:#edf5fc;color:#25445d}
 .ui249-field-error{display:block!important;grid-column:1/-1;color:#ae263b!important;font-size:13px!important;font-weight:650;white-space:normal!important}
 #modal-bill-pay [aria-invalid="true"]{outline:2px solid #b53449!important;outline-offset:2px}
 body :is(.reference-billing-page,.client-reference-mode) button:focus-visible,#payment-pagination button:focus-visible{outline:3px solid #1877c4!important;outline-offset:2px}
 body :is(.reference-billing-page,.client-reference-mode) .reference-page-head p{font-size:13px!important;line-height:1.5!important}
 body .final-kpi small{font-size:11px!important;line-height:1.4!important}
 body .final-kpi span,body #online-monitor-root .monitor-kpi span{font-size:12px!important;line-height:1.4!important}
 body .main-content .reference-billing-page #billing-invoice-pane .ispd-bill-card small{font-size:11px!important;line-height:1.4!important}
 body.dark-mode .ui249-filter-context,body.dark-mode #client-bulk-feedback,body.dark-mode .ui249-receive-notice{background:#132c43;color:#deebf5;border-color:#486b89}
 body.dark-mode .ui249-filter-chip{background:#214463;color:#eef7ff;border-color:#547c9c}
 body.dark-mode .ui249-load-state{background:#173449;color:#e2eef9}
 body.dark-mode .ui249-load-state.error{background:#4b3029;color:#ffe0d1;border-color:#a7775f}
 body.dark-mode .ui249-load-state.ready{background:#173d35;color:#c8f1e1}
 body.dark-mode .ui249-field-error{color:#ffb3c0!important}
 @media(max-width:700px){
  .ui249-filter-context{padding:9px;font-size:13px}.ui249-filter-context>.btn{width:100%}
  #payment-pagination{justify-content:center}#payment-pagination>span{width:100%;margin:0;text-align:center}
  body .main-content .reference-billing-page #billing-actions-toggle,body .main-content .reference-billing-page #billing-filter-toggle,body .main-content .reference-billing-page #billing-bulk-actions :is(button,a),#payment-pagination button{min-height:44px!important;font-size:13px!important}
  body .xtx26-action-popup.xtx26-fallback-visible>:is(button,a,input[type="button"],[role="menuitem"]),body .xtx26-action-popup:popover-open>:is(button,a,input[type="button"],[role="menuitem"]){min-height:44px!important;font-size:13px!important}
  body .main-content #online-monitor-root #xtmon-pager .xtmon-page{min-height:44px!important;min-width:44px!important;font-size:13px!important}
  #modal-bill-pay :is(input,select,textarea){font-size:16px!important}
  body.xtx-billing-list .main-content .reference-billing-page #billing-invoice-pane .ispd-billing-table-card .table-responsive{overflow-x:visible!important}
  body.xtx-billing-list .main-content .reference-billing-page #billing-invoice-pane .ispd-billing-table{display:block!important;width:100%!important;min-width:0!important;table-layout:auto!important}
  body.xtx-billing-list .main-content .reference-billing-page #billing-invoice-pane .ispd-billing-table thead{display:none!important}
  body.xtx-billing-list .main-content .reference-billing-page #billing-invoice-pane .ispd-billing-table tbody{display:block!important;width:100%!important}
  body.xtx-billing-list .main-content .reference-billing-page #billing-invoice-pane .ispd-billing-table tbody tr.billing-data-row{display:grid!important;height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:4px!important;padding:10px!important;margin-bottom:10px!important;border:1px solid #bfd4e5!important;border-radius:12px!important}
  body.xtx-billing-list .main-content .reference-billing-page #billing-invoice-pane .ispd-billing-table tbody tr.billing-data-row td[data-billing-col]:not(.billing-col-hidden){display:flex!important;flex-direction:column!important;align-items:flex-start!important;justify-content:center!important;gap:3px!important;min-width:0!important;width:auto!important;max-width:none!important;height:auto!important;min-height:45px!important;max-height:none!important;position:static!important;inset:auto!important;border:0!important;padding:7px!important;white-space:normal!important;overflow:visible!important;font-size:13px!important}
  body.xtx-billing-list .main-content .reference-billing-page #billing-invoice-pane .ispd-billing-table tbody tr.billing-data-row td.billing-col-hidden{display:none!important}
  body.xtx-billing-list .main-content .reference-billing-page #billing-invoice-pane .ispd-billing-table tbody tr.billing-data-row td[data-billing-col]::before{content:attr(data-ui249-label)!important;display:block!important;position:static!important;font-size:11px!important;font-weight:600!important;color:#4d657a!important}
  body.xtx-billing-list .main-content .reference-billing-page #billing-invoice-pane .ispd-billing-table tbody tr.billing-data-row td[data-billing-col] :is(b,span,div,button){max-width:100%!important;white-space:normal!important;overflow-wrap:anywhere!important;text-overflow:clip!important}
  body.xtx-billing-list .main-content .reference-billing-page #billing-invoice-pane .ispd-billing-table tbody tr.billing-data-row td:is([data-billing-col="name"],[data-billing-col="action"]){grid-column:1/-1!important}
  body.xtx-billing-list .main-content .reference-billing-page #billing-invoice-pane .ispd-billing-table tbody tr.billing-data-row td[data-billing-col="action"] summary{min-height:44px!important;min-width:44px!important}
  body.xtx-billing-list .main-content .reference-billing-page #billing-invoice-pane .ispd-billing-table tbody tr.billing-data-row td[data-billing-col="action"] details{position:relative!important;display:block!important;width:auto!important;height:auto!important}
  body.xtx-billing-list .main-content .reference-billing-page #billing-invoice-pane .ispd-billing-table tbody tr.billing-data-row td[data-billing-col="action"] summary{display:flex!important;gap:7px!important;align-items:center!important;justify-content:center!important;position:static!important;width:auto!important;min-width:90px!important;height:auto!important;padding:9px!important;background:#e1eef9!important;color:#214763!important;border:1px solid #a5c5df!important;border-radius:9px!important}
  body.xtx-billing-list .main-content .reference-billing-page #billing-invoice-pane .ui249-menu-label{display:inline!important;font-size:13px!important;font-weight:700!important;color:#214763!important;-webkit-text-fill-color:currentColor!important;text-shadow:none!important;opacity:1!important}
  body.xtx-billing-list .main-content .reference-billing-page #billing-invoice-pane .ispd-billing-table tbody tr.billing-data-row td[data-billing-col]{background:transparent!important}
  body.dark-mode.xtx-billing-list .main-content .reference-billing-page #billing-invoice-pane .xtx-note-btn{background:#214463!important;color:#e6f2fc!important;-webkit-text-fill-color:currentColor!important;border:1px solid #547c9c!important;padding:8px!important;min-height:40px!important;font-size:13px!important}
  body.xtx-billing-list .main-content .reference-billing-page #billing-invoice-pane .ispd-status-btn{min-height:40px!important;min-width:54px!important;padding:8px!important;font-size:13px!important}
  body.xtx-billing-list .main-content .reference-billing-page #billing-invoice-pane .ispd-status-badge{font-size:12px!important;padding:4px 7px!important}
  body.dark-mode.xtx-billing-list .main-content .reference-billing-page #billing-invoice-pane .ispd-billing-table tbody tr.billing-data-row{border-color:#436582!important;background:#102b43!important}
  body.dark-mode.xtx-billing-list .main-content .reference-billing-page #billing-invoice-pane .ispd-billing-table tbody tr.billing-data-row td[data-billing-col]::before{color:#a9c4da!important}
  body.dark-mode .billing-columns-picker>summary{background:#214463!important;color:#e6f2fc!important;border-color:#547c9c!important}
 }
}

/* Match the existing Client/Billing glass cards; beat legacy solid gradients. */
@media screen {
 body .main-content .reference-billing-page #billing-payment-pane .payment-summary-cards{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px!important}
 body .main-content .reference-billing-page #billing-payment-pane .payment-summary-cards .bill-ref-card{--ui2491-accent:#2898df;--ui2491-halo:rgba(41,163,229,.17);display:flex!important;align-items:center!important;gap:12px!important;min-width:0!important;min-height:86px!important;padding:12px!important;border:1px solid #c5d9e9!important;border-top:3px solid var(--ui2491-accent)!important;border-radius:12px!important;background:radial-gradient(ellipse at 100% 0,var(--ui2491-halo),transparent 68%),linear-gradient(135deg,#fff,#edf5fc)!important;box-shadow:0 7px 18px rgba(25,68,103,.09)!important;overflow:hidden!important}
 body .main-content .reference-billing-page #billing-payment-pane .payment-summary-cards .bill-ref-card.teal{--ui2491-accent:#19b79d;--ui2491-halo:rgba(26,184,158,.17)}
 body .main-content .reference-billing-page #billing-payment-pane .payment-summary-cards .bill-ref-card.violet{--ui2491-accent:#9a7de8;--ui2491-halo:rgba(154,125,232,.17)}
 body .main-content .reference-billing-page #billing-payment-pane .payment-summary-cards .bill-ref-card.slate{--ui2491-accent:#8399b1;--ui2491-halo:rgba(131,153,177,.17)}
 body .main-content .reference-billing-page #billing-payment-pane .bill-ref-card>i{display:flex!important;align-items:center;justify-content:center;flex:0 0 36px;width:36px;height:36px;border-radius:10px;background:var(--ui2491-halo)!important;color:var(--ui2491-accent)!important;-webkit-text-fill-color:currentColor!important;font-size:19px!important}
 body .main-content .reference-billing-page #billing-payment-pane .ui2491-card-copy{min-width:0;display:flex;flex-direction:column;gap:3px}
 body .main-content .reference-billing-page #billing-payment-pane .bill-ref-card span{color:#55718a!important;-webkit-text-fill-color:currentColor!important;font-size:13px!important;line-height:1.35!important;font-weight:650!important;white-space:normal!important}
 body .main-content .reference-billing-page #billing-payment-pane .bill-ref-card strong{color:#183b54!important;-webkit-text-fill-color:currentColor!important;font-size:20px!important;line-height:1.3!important;font-weight:750!important;font-variant-numeric:tabular-nums;white-space:normal!important;overflow-wrap:anywhere!important;text-shadow:none!important}
 body .main-content .reference-billing-page #billing-payment-pane .bill-ref-card small{color:#5b748b!important;-webkit-text-fill-color:currentColor!important;font-size:12px!important;line-height:1.4!important;white-space:normal!important}
 body.dark-mode .main-content .reference-billing-page #billing-payment-pane .payment-summary-cards .bill-ref-card{background:radial-gradient(ellipse at 100% 0,var(--ui2491-halo),transparent 68%),linear-gradient(135deg,#17334c,#10263d)!important;border-color:#3e5d79!important;border-top-color:var(--ui2491-accent)!important;box-shadow:0 7px 18px rgba(0,0,0,.2)!important}
 body.dark-mode .main-content .reference-billing-page #billing-payment-pane .bill-ref-card span{color:#bdd0e2!important}
 body.dark-mode .main-content .reference-billing-page #billing-payment-pane .bill-ref-card strong{color:#edf6ff!important}
 body.dark-mode .main-content .reference-billing-page #billing-payment-pane .bill-ref-card small{color:#aec4d8!important}
 body .main-content .client-reference-mode .client-reference-actions{display:flex!important;flex-wrap:wrap!important;justify-content:flex-start!important;gap:7px!important;max-width:100%!important;overflow:visible!important;box-sizing:border-box!important}
 body .main-content .client-reference-mode .client-reference-actions>button{flex:0 1 auto!important;min-width:0!important;max-width:100%!important;min-height:34px!important;padding:8px 11px!important;font-size:12px!important;line-height:1.3!important;white-space:normal!important;overflow-wrap:anywhere!important}
 @media(min-width:701px){
  body .main-content .reference-billing-page #billing-invoice-pane .ispd-billing-table thead th[data-billing-col="mstatus"]{width:76px!important;min-width:76px!important;white-space:nowrap!important;overflow-wrap:normal!important;word-break:normal!important}
  body .main-content .reference-billing-page #billing-invoice-pane .ispd-billing-table thead th[data-billing-col="action"]{width:64px!important;min-width:64px!important;white-space:nowrap!important;overflow-wrap:normal!important;word-break:normal!important}
 }
 @media(max-width:900px){body .main-content .reference-billing-page #billing-payment-pane .payment-summary-cards{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
 @media(max-width:700px){
  body .main-content .client-reference-mode .client-reference-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body .main-content .client-reference-mode .client-reference-actions>button{width:100%!important;min-height:44px!important}
  body .main-content .reference-billing-page #billing-payment-pane .payment-summary-cards .bill-ref-card{display:grid!important;grid-template-columns:28px minmax(0,1fr)!important;gap:5px 8px!important;padding:10px!important;align-content:start!important}
  body .main-content .reference-billing-page #billing-payment-pane .bill-ref-card>i{width:28px!important;height:28px!important;font-size:16px!important}
  body .main-content .reference-billing-page #billing-payment-pane .ui2491-card-copy{display:contents!important}
  body .main-content .reference-billing-page #billing-payment-pane .bill-ref-card strong,body .main-content .reference-billing-page #billing-payment-pane .bill-ref-card small{grid-column:1/-1!important}
  body .main-content .reference-billing-page #billing-payment-pane .bill-ref-card strong{font-size:18px!important}
 }
}
/* V249.2: fixed right-hand Actions anchor and inline filter context. */
body .main-content .reference-billing-page > .reference-page-head.compact-head > .xtx-v238d-action-row{order:3!important;margin-left:auto!important;flex:0 0 126px!important}
body .main-content .reference-billing-page #billing-actions-toggle{width:126px!important;min-width:126px!important;white-space:nowrap}
body .main-content .reference-billing-page > .reference-page-head.compact-head > #billing-header-actions{order:2!important;flex:0 1 auto!important}
body .main-content #xtx-billing-quick-filter{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
body .main-content #xtx-billing-quick-filter .xtx-bill-status-pills{flex:0 0 auto}
body .main-content #xtx-billing-quick-filter #ui249-applied-filters{flex:1 1 180px;min-width:0;display:flex;gap:5px;flex-wrap:wrap;margin:0;padding:0;border:0;background:transparent;font-size:11px}
body .main-content #xtx-billing-quick-filter #ui249-applied-filters>.btn{width:auto;min-height:28px;padding:3px 7px;font-size:11px}
body .main-content #xtx-billing-quick-filter .xtx-bill-receiver-filter{margin-left:auto}
body .main-content .billing-compact-main-table td.billing-address-cell{white-space:normal!important;overflow-wrap:anywhere;max-width:160px;font-size:11px;line-height:1.45}
#modal-billing-client-history .modal-content{width:min(960px,96vw);max-width:960px;max-height:90vh;display:flex;flex-direction:column}
#modal-billing-client-history .modal-body{overflow:auto;min-height:0}
.ui249-history-tabs{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}
.ui249-history-tabs button[aria-selected="true"]{background:#176587;color:#fff}
#ui249-history-client{margin:0 0 12px;overflow-wrap:anywhere}
#ui249-history-table{font-size:12px}
#ui249-history-table th{white-space:nowrap}
#ui249-history-table td{overflow-wrap:anywhere}
#ui249-history-pager{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:12px}
@media(max-width:800px){
 body .main-content .reference-billing-page > .reference-page-head.compact-head > #billing-header-actions{order:4!important;flex:1 1 100%!important}
}
@media(max-width:700px){
 body .main-content #xtx-billing-quick-filter #ui249-applied-filters{flex:1 1 150px}
 body .main-content .billing-compact-main-table td.billing-address-cell{max-width:none;font-size:13px}
 #modal-billing-client-history button{min-height:40px}
}
/* V250: equal metric geometry; keep text and icon effects without scaling cards. */
body .main-content .reference-billing-page :is(.payment-summary-cards,.ispd-billing-summary){align-items:stretch!important;grid-auto-rows:1fr}
body .main-content .reference-billing-page :is(.payment-summary-cards .bill-ref-card,.ispd-billing-summary .ispd-bill-card){box-sizing:border-box!important;height:100%!important;align-self:stretch!important;transform:none!important;animation:none!important}
body .main-content .reference-billing-page #billing-payment-pane .payment-summary-cards .bill-ref-card{min-height:100px!important}
body .main-content .reference-billing-page #billing-invoice-pane .billing-compact-main-table.ui250-address-visible{table-layout:auto!important;min-width:1200px}
body .main-content .billing-compact-main-table :is(th,td)[data-billing-col="address"]{width:170px!important;min-width:150px!important;max-width:200px!important;white-space:normal!important;word-break:normal!important;overflow-wrap:break-word!important;text-align:left!important}
.ui250-address summary{cursor:pointer;list-style:none;line-height:1.5}
.ui250-address summary::-webkit-details-marker{display:none}
.ui250-address summary span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;word-break:normal;overflow-wrap:break-word}
.ui250-address summary small{display:block;font-size:10px;color:#1678b0;text-decoration:underline}
.ui250-address>div{white-space:pre-wrap;overflow-wrap:break-word;padding:5px 0;line-height:1.5}
.ui250-address[open] summary span{display:none}
body.dark-mode .ui250-address summary small{color:#8ccffc}
@media(max-width:700px){body .main-content .reference-billing-page #billing-invoice-pane .billing-compact-main-table.ui250-address-visible{min-width:0}body .main-content .billing-compact-main-table td[data-billing-col="address"]{min-width:0!important;max-width:none!important;width:auto!important}}
.ui250-sms-panel{margin:0 0 16px}
.ui250-sms-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-bottom:12px}
.ui250-sms-events{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.ui250-sms-event{min-width:0;padding:14px;border:1px solid var(--border-color,#bad0e2);border-radius:12px;background:var(--bg-card,rgba(255,255,255,.65))}
.ui250-sms-event summary{cursor:pointer;font-weight:700;line-height:1.5}
.ui250-sms-event label{display:block;margin-top:10px;font-size:13px}
.ui250-sms-event label>span{display:block;margin-bottom:5px}
.ui250-sms-event label.ui250-sms-enable{display:flex;align-items:center;gap:8px}
.ui250-sms-event textarea{width:100%;box-sizing:border-box;resize:vertical}
.ui250-sms-event .form-control{min-width:0;max-width:100%}
.ui250-sms-preview{white-space:pre-wrap;overflow-wrap:anywhere;padding:10px;border-radius:8px;background:rgba(100,160,210,.1);font-size:13px}
.ui250-sms-status{min-height:24px;white-space:pre-wrap;overflow-wrap:anywhere}
body.dark-mode .ui250-sms-event{background:#142c43}
@media(max-width:750px){.ui250-sms-events{grid-template-columns:1fr}}
#ui250-sms-panel [hidden]{display:none!important}
#ui250-sms-panel{font-family:Manrope,'Noto Sans Bengali','Nirmala UI',system-ui,sans-serif}
/* V251: compact Billing screens, one heading, stable small metric cards. */
body .main-content .reference-billing-page > .reference-page-head.compact-head{margin-bottom:8px!important;min-height:32px;gap:6px!important}
body .main-content .reference-billing-page #billing-view-title{font-size:19px!important;line-height:1.3!important;margin:0!important}
body .main-content .reference-billing-page #ui249-billing-state[hidden]{display:none!important}
body .main-content .reference-billing-page .ispd-billing-summary{gap:6px!important;margin-bottom:6px!important}
body .main-content .reference-billing-page .ispd-bill-card{min-height:66px!important;height:auto!important}
body .main-content .reference-billing-page .ispd-bill-card-main{min-height:38px!important;padding:5px 7px!important;gap:6px!important}
body .main-content .reference-billing-page .ispd-bill-card-main span{font-size:11px!important;line-height:1.25!important}
body .main-content .reference-billing-page .ispd-bill-card-main strong{font-size:14px!important;line-height:1.2!important}
body .main-content .reference-billing-page .ispd-bill-card>small{min-height:22px!important;padding:3px 5px!important;font-size:10px!important;line-height:1.2!important}
body .main-content .reference-billing-page #billing-payment-pane .payment-summary-cards{max-width:840px!important;gap:7px!important;margin:0 0 7px!important;grid-auto-rows:68px!important}
body .main-content .reference-billing-page #billing-payment-pane .payment-summary-cards .bill-ref-card{display:grid!important;grid-template-columns:26px minmax(0,1fr)!important;grid-template-rows:20px 21px 23px!important;gap:0 5px!important;padding:0!important;height:68px!important;min-height:68px!important;align-content:start!important;align-items:center!important;border-radius:9px!important}
body .main-content .reference-billing-page #billing-payment-pane .bill-ref-card .ui2491-card-copy{display:contents!important}
body .main-content .reference-billing-page #billing-payment-pane .bill-ref-card>i{grid-column:1!important;grid-row:1/3!important;margin-left:7px!important;width:20px!important;height:24px!important;line-height:24px!important;font-size:17px!important;background:transparent!important;border-radius:0!important}
body .main-content .reference-billing-page #billing-payment-pane .bill-ref-card .ui2491-card-copy>span{grid-column:2!important;grid-row:1!important;align-self:end!important;font-size:11px!important;line-height:1.2!important;padding:3px 6px 0 0!important;margin:0!important;white-space:nowrap}
body .main-content .reference-billing-page #billing-payment-pane .bill-ref-card .ui2491-card-copy>strong{grid-column:2!important;grid-row:2!important;font-size:15px!important;line-height:1.2!important;margin:0!important;padding:0 6px 2px 0!important;white-space:nowrap}
body .main-content .reference-billing-page #billing-payment-pane .bill-ref-card .ui2491-card-copy>small{grid-column:1/-1!important;grid-row:3!important;display:flex!important;align-self:stretch!important;align-items:center!important;justify-content:center!important;border-top:1px solid rgba(130,173,206,.28);background:rgba(140,186,224,.11);font-size:10px!important;line-height:1.1!important;padding:2px 5px!important;margin:0!important;min-height:0!important;text-align:center}
body .main-content .reference-billing-page .daily-action-row{gap:6px!important;margin:0 0 7px!important;flex-wrap:wrap!important}
body .main-content .reference-billing-page .daily-action-row>div{display:flex;gap:5px!important;flex-wrap:wrap}
body .main-content .reference-billing-page .daily-action-row .btn,body .main-content .reference-billing-page .ui251-filter-tools .btn{min-height:30px!important;padding:5px 8px!important;font-size:11px!important;line-height:1.3!important}
body .main-content .reference-billing-page .payment-filter-card{margin:0 0 7px!important;border-radius:10px!important}
body .main-content .reference-billing-page .reference-filter-head{padding:5px 9px!important;min-height:34px!important;gap:8px;flex-wrap:wrap}
.ui251-filter-tools{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap;margin-left:auto}
body .main-content .reference-billing-page #payment-view-context{display:inline;font-size:11px;line-height:1.3;color:inherit;white-space:nowrap;margin:0;padding:0;border:0;background:transparent}
body .main-content .reference-billing-page #payment-view-context.hidden{display:none!important}
body .main-content .reference-billing-page #payment-filter-panel{padding:7px 9px!important;gap:7px 10px!important}
body .main-content .reference-billing-page #payment-filter-panel label{margin-bottom:3px!important;font-size:10px!important;line-height:1.2!important}
body .main-content .reference-billing-page #payment-filter-panel .form-control{min-height:30px!important;height:30px!important;padding:4px 7px!important;font-size:12px!important;line-height:1.3!important}
body .main-content .reference-billing-page .compact-collector-summary{margin:0 0 6px!important}
body .main-content .reference-billing-page .compact-collector-summary :is(th,td){padding:5px 7px!important;font-size:11px!important}
body .main-content .reference-billing-page .reference-table-toolbar,body .main-content .reference-billing-page .ispd-billing-table-toolbar{padding:5px 8px!important;gap:7px!important;min-height:36px!important}
body .main-content .reference-billing-page .ispd-filter-toggle-row:not(.xtx-v238d-action-row){margin:4px 0!important;padding:0!important}
body .main-content #xtx-billing-quick-filter{margin:5px 0!important;padding:5px 7px!important}
@media(max-width:700px){
 body .main-content .reference-billing-page #billing-payment-pane .payment-summary-cards{max-width:none!important}
 body .main-content .reference-billing-page .daily-action-row .btn,body .main-content .reference-billing-page .ui251-filter-tools .btn,body .main-content .reference-billing-page .payment-filter-toggle{min-height:40px!important;font-size:12px!important}
 body .main-content .reference-billing-page #payment-filter-panel .form-control{min-height:38px!important;height:38px!important;font-size:13px!important}
 body .main-content .reference-billing-page #payment-filter-panel label{font-size:11px!important}
}
@media(max-width:700px){
 body .main-content .reference-billing-page .daily-action-row{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:5px!important}
 body .main-content .reference-billing-page .daily-action-row>div{display:contents!important}
 body .main-content .reference-billing-page .daily-action-row .btn{width:100%!important;min-width:0!important;white-space:normal!important;padding:5px 6px!important;font-size:11px!important}
 body .main-content .reference-billing-page .daily-action-row>div:last-child>.btn:last-child{grid-column:1/-1}
}
@media(min-width:360px) and (max-width:700px){
 body .main-content .reference-billing-page #payment-filter-panel{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 body .main-content .reference-billing-page #payment-filter-panel>div,body .main-content .reference-billing-page #payment-filter-panel .form-control{min-width:0!important;width:100%!important}
}
/* END assets/css/ui-v249.css */

/* BEGIN assets/css/ui-v252.css */
/* Scoped V252 OLT / MikroTik / Accounting presentation. */
.ui252-tab-hidden,[data-v239-view="dashboard"] [hidden]{display:none!important}
.ui252-page-head{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin:0 0 10px}
.ui252-page-head h2{font-size:20px;line-height:1.3;margin:0;color:var(--text-main,#173b58)}
.ui252-module-nav{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin:0 0 10px;padding:7px;border:1px solid var(--border-color,#bcd4e7);border-radius:11px;background:rgba(223,239,252,.38)}
.ui252-module-nav :is(a,button){border:1px solid transparent;border-radius:8px;padding:7px 12px;min-height:32px;background:transparent;font-family:inherit;font-weight:700;line-height:1.3;font-size:12px;color:var(--text-main,#244c6c);text-decoration:none;cursor:pointer;white-space:nowrap}
.ui252-module-nav :is(.active,[aria-selected="true"],[aria-pressed="true"]){background:#17668f;color:#fff!important;box-shadow:0 2px 7px rgba(16,71,109,.12)}
.ui252-module-nav :is(a,button):focus-visible{outline:3px solid #45b1ed;outline-offset:2px}
.ui252-list-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px;flex-wrap:wrap;font-size:12px}
.ui252-list-toolbar label{display:flex;align-items:center;gap:8px}.ui252-list-toolbar input{width:280px;max-width:65vw;min-height:34px;font-size:12px}
.ui252-olt-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,440px),1fr));gap:12px}
.ui252-device-card{border:1px solid var(--border-color,#b9d2e7);border-top:3px solid #259be3;border-radius:13px;overflow:hidden;background:linear-gradient(130deg,rgba(255,255,255,.92),rgba(229,242,252,.75));box-shadow:0 7px 19px rgba(21,68,104,.08);min-width:0;transform:none!important}
.ui252-device-card>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border-bottom:1px solid rgba(150,187,214,.28)}
.ui252-device-card h3{font-size:16px!important;line-height:1.3;margin:0!important;word-break:normal;overflow-wrap:break-word}
.ui252-device-card header p{font-size:12px;color:var(--text-muted,#617e96);margin:4px 0 0}
.ui252-device-details{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:14px}
.ui252-device-card:only-child .ui252-device-details{grid-template-columns:repeat(4,minmax(0,1fr))}
.ui252-device-detail{min-width:0}.ui252-device-detail>span{display:block;font-size:10px;letter-spacing:.03em;color:var(--text-muted,#60798d);text-transform:uppercase;margin-bottom:5px}
.ui252-device-detail strong{font-size:13px;font-weight:600;line-height:1.4;display:block;word-break:normal;overflow-wrap:anywhere;color:var(--text-main,#193f5b);font-variant-numeric:tabular-nums}
.ui252-device-detail small{display:block;margin-top:3px;color:var(--text-muted,#60798d);font-size:11px;font-weight:500}
.ui252-device-actions{display:flex;gap:6px;flex-wrap:wrap;padding:9px 12px;border-top:1px solid rgba(150,187,214,.28);background:rgba(162,198,229,.08)}
.ui252-device-actions .btn{min-height:33px!important;padding:6px 9px!important;font-size:11px!important}
body #modal-olt{inset:0!important;left:0!important;top:0!important;width:100%!important;padding:16px!important;overflow:hidden!important;z-index:5000!important}
body #modal-olt>.modal-content{display:flex!important;flex-direction:column!important;width:min(960px,100%)!important;max-width:960px!important;max-height:calc(100dvh - 32px)!important;overflow:hidden!important}
body #modal-olt .modal-header{flex:0 0 auto;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px;padding:12px 16px!important;background:var(--card-bg,#edf5fc)!important;border-bottom:1px solid var(--border-color,#bfd5e7);z-index:2}
body #modal-olt .modal-body{flex:1 1 auto;min-height:0;overflow:auto!important;padding:14px 16px!important;overscroll-behavior:contain}
body #modal-olt .ui252-close{display:inline-flex!important;align-items:center;gap:7px;opacity:1!important;min-width:86px;min-height:38px;color:var(--text-main,#21435d)!important;border:1px solid var(--border-color,#7eabca)!important;background:var(--card-bg,#fff)!important;font-weight:700}
body #modal-olt .ui252-close span{font-size:24px;line-height:1}
body #form-olt .grid{display:grid!important;gap:10px!important;min-width:0}
body #form-olt .grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))!important}
body #form-olt .grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))!important}
body #form-olt .grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))!important}
body #form-olt .form-group{min-width:0;margin-bottom:4px!important}
body #form-olt .form-control{min-height:35px!important;max-width:100%;font-size:12px!important;padding:6px 8px!important}
body #form-olt label{font-size:11px;line-height:1.4;margin-bottom:5px;display:block}
body #form-olt>.glass{padding:12px!important;border-radius:10px}
.ui252-mikrotik{max-width:100%;min-width:0}.ui252-mikrotik>.card{margin-bottom:12px}
body .ui252-mikrotik .card-header{padding:12px!important;gap:10px;flex-wrap:wrap}
body .ui252-mikrotik .card-header h3{font-size:15px!important;line-height:1.4;word-break:normal;overflow-wrap:break-word}
body .ui252-mikrotik .card-body{padding:10px 12px!important}
body .ui252-mikrotik .table{table-layout:auto!important;min-width:0!important}
body .ui252-mikrotik .table :is(th,td){padding:9px 8px!important;white-space:normal!important;word-break:normal!important;overflow-wrap:break-word;text-align:left!important;font-size:12px!important}
body .ui252-mikrotik #routers-list td:nth-child(3){max-width:200px;min-width:150px}
body .ui252-mikrotik #routers-list td:last-child{min-width:210px}
body .ui252-mikrotik #routers-list td .btn{min-width:30px;min-height:32px!important;padding:6px!important}
.ui252-router-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin:0 0 10px}
.ui252-router-toolbar .ui252-module-nav{margin:0}.ui252-router-toolbar select{min-width:190px;max-width:65vw}
body .ui252-mikrotik .ui252-router-workspace{display:block!important;margin-top:0!important}
body .ui252-mikrotik #ui252-router-tools:not([hidden]){display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
body .ui252-mikrotik .table-responsive{max-width:100%;overflow-x:auto}
body .v240-account-workspace .reference-page-head h2{font-size:20px;line-height:1.3}
body .v240-account-workspace #r64-stats{gap:8px!important;margin:8px 0!important}
body .v240-account-workspace #r64-stats .stat-card{padding:12px!important;min-height:72px;transform:none!important}
body .v240-account-workspace #r64-stats h3{font-size:20px!important;line-height:1.3!important;white-space:nowrap}
body .v240-account-workspace #r64-stats p{font-size:12px!important;line-height:1.3!important}
body .v240-account-workspace .card-header h3{font-size:15px!important;line-height:1.4;word-break:normal!important}
body .v240-account-workspace #fw110Panel{padding:12px!important;margin:0!important;min-width:0;max-width:100%;box-sizing:border-box}
body .v240-account-workspace .fw110-wallet-list{grid-template-columns:repeat(auto-fit,minmax(230px,1fr))!important;gap:9px!important}
body .v240-account-workspace .fw110-wallet{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:8px!important;min-width:0!important;padding:11px 13px!important}
body .v240-account-workspace .fw110-wallet>span:first-child{width:100%!important;min-width:0!important;flex:none!important}
body .v240-account-workspace .fw110-wallet :is(b,small){word-break:normal!important;overflow-wrap:break-word!important;white-space:normal!important}
body .v240-account-workspace .fw110-wallet b{font-size:13px!important;line-height:1.45!important}
body .v240-account-workspace .fw110-wallet small{font-size:11px!important;line-height:1.5!important}
body .v240-account-workspace .fw110-number{display:block!important;text-align:left!important;border-top:1px solid rgba(136,178,208,.28);padding-top:7px}
body .v240-account-workspace .fw110-number>b{font-size:16px!important;white-space:nowrap!important}
body .v240-account-workspace .fw110-forms{grid-template-columns:repeat(auto-fit,minmax(min(100%,275px),1fr))!important}
body .v240-account-workspace .fw110-forms :is(input,select){box-sizing:border-box;max-width:100%;font-size:12px!important;min-height:36px}
body .v240-account-workspace .fw110-heading{flex-wrap:wrap}
body .v240-account-workspace #fw110Message:empty{display:none}
body.dark-mode .ui252-device-card{background:linear-gradient(130deg,#17354e,#10263b)}
body.dark-mode .ui252-module-nav{background:rgba(34,75,111,.34)}
@media(max-width:900px){body #form-olt .grid-cols-4,body #form-olt .grid-cols-3{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:700px){
 .ui252-device-card:only-child .ui252-device-details{grid-template-columns:repeat(2,minmax(0,1fr))}
 .ui252-module-nav :is(a,button),.ui252-device-actions .btn{min-height:40px!important}
 .ui252-router-toolbar{align-items:stretch}.ui252-router-toolbar>.flex{flex-wrap:wrap;max-width:100%}
 body .ui252-mikrotik #ui252-router-tools:not([hidden]){grid-template-columns:1fr}
 body .v240-account-workspace .fw110-wallet-list{grid-template-columns:1fr!important}
 body .v240-account-workspace #r64-stats{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 body .v240-account-workspace #r64-stats h3{font-size:17px!important}
 body #modal-olt{padding:8px!important}body #modal-olt>.modal-content{max-height:calc(100dvh - 16px)!important}
}
@media(max-width:540px){body #form-olt .grid-cols-4,body #form-olt .grid-cols-3,body #form-olt .grid-cols-2{grid-template-columns:1fr!important}.ui252-list-toolbar label{width:100%;flex-wrap:wrap}.ui252-list-toolbar input{width:100%;max-width:100%}}
body.dark-mode #modal-olt .modal-header{background:#142f49!important}
body.dark-mode #modal-olt .ui252-close{background:#183b59!important;color:#e4f2ff!important;border-color:#557c9c!important}
body.dark-mode .ui252-device-card :is(h3,strong){color:#e9f4ff}
body.dark-mode .ui252-device-card :is(p,small,.ui252-device-detail>span){color:#b1c9dc}
body .v240-account-workspace table td:first-child{word-break:normal!important;overflow-wrap:break-word!important}
body .ui252-mikrotik #routers-list td:nth-child(2){white-space:nowrap!important;font-variant-numeric:tabular-nums}
body.dark-mode .ui252-module-nav :is(a,button){color:#cee2f5}
/* END assets/css/ui-v252.css */

/* BEGIN assets/css/r6690-c11-mobile-lists.css */
/* XtremeX Billing 2.0 C11 — Mobile list density/toolbar layout (presentation only).
   Scoped to phones; desktop table, API, permissions, billing and navigation stay unchanged. */
@media screen and (max-width:700px) {
  /* The old fixed-height topbar wrapped its controls outside of its own box.
     Reserve real height for the secondary tools so they never cover headings. */
  body .main-content > .topbar {
    box-sizing:border-box!important;
    display:flex!important;flex-direction:column!important;align-items:stretch!important;
    justify-content:flex-start!important;flex-wrap:nowrap!important;
    height:auto!important;min-height:0!important;max-height:none!important;
    padding:7px 10px 6px!important;gap:4px!important;
    position:sticky!important;top:0!important;
  }
  body .main-content > .topbar .reference-topbar-left {
    display:flex!important;align-items:center!important;flex:0 0 auto!important;
    width:100%!important;max-width:100%!important;min-width:0!important;
    gap:9px!important;min-height:42px!important;
  }
  body .main-content > .topbar .global-search-shell {
    flex:1 1 auto!important;min-width:0!important;max-width:none!important;
    width:auto!important;margin:0!important;
  }
  body .main-content > .topbar .xtreme-top-actions {
    position:static!important;display:flex!important;align-items:center!important;
    justify-content:flex-end!important;flex:0 0 auto!important;
    flex-wrap:nowrap!important;width:100%!important;max-width:100%!important;
    min-width:0!important;min-height:36px!important;height:auto!important;
    padding:0 1px!important;margin:0!important;gap:5px!important;
    overflow-x:auto!important;overflow-y:visible!important;
    scrollbar-width:none!important;-webkit-overflow-scrolling:touch;
  }
  body .main-content > .topbar .xtreme-top-actions::-webkit-scrollbar{display:none!important}
  body .main-content > .topbar .xtreme-top-actions > * {flex-shrink:0!important}
  body .main-content > .topbar .top-profile-wrap {margin-left:auto!important;position:relative!important}
  body .main-content > .topbar .top-profile-button {min-width:38px!important}
  body .main-content > .topbar .top-profile-menu {z-index:1100!important}
  body .main-content .content-area{padding-top:10px!important}

  /* Keep SHOW/Columns on one line and Search immediately below, avoiding
     a three-line toolbar on narrow phones. Existing control handlers stay. */
  body.xtx-billing-list .main-content .reference-billing-page #billing-invoice-pane .ispd-billing-table-card .ispd-billing-table-toolbar {
    display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;
    align-items:center!important;gap:7px!important;padding:8px!important;
    width:100%!important;max-width:100%!important;box-sizing:border-box!important;
  }
  body.xtx-billing-list .main-content .reference-billing-page #billing-invoice-pane .ispd-billing-table-card .ispd-billing-table-toolbar>label:first-child {
    grid-column:1!important;grid-row:1!important;display:flex!important;
    align-items:center!important;gap:5px!important;min-width:0!important;
    flex-wrap:wrap!important;font-size:11px!important;
  }
  body.xtx-billing-list .main-content .reference-billing-page #billing-invoice-pane .ispd-billing-table-card .ispd-billing-toolbar-right{display:contents!important}
  body.xtx-billing-list .main-content .reference-billing-page #billing-invoice-pane .ispd-billing-table-card .billing-columns-picker{
    grid-column:2!important;grid-row:1!important;justify-self:end!important;
    position:relative!important;z-index:25!important;
  }
  body.xtx-billing-list .main-content .reference-billing-page #billing-invoice-pane .ispd-billing-table-card .ispd-billing-search{
    grid-column:1/-1!important;grid-row:2!important;display:flex!important;
    align-items:center!important;gap:7px!important;min-width:0!important;
    width:100%!important;margin:0!important;
  }
  body.xtx-billing-list .main-content .reference-billing-page #billing-invoice-pane .ispd-billing-table-card .ispd-billing-search input{
    flex:1 1 auto!important;min-width:0!important;max-width:100%!important;
    width:100%!important;height:38px!important;font-size:16px!important;
  }

  /* Compact Billing List: show the 4 decision-making rows first. The existing
     column choice and every data cell are still accessible in Details. */
  body.xtx-billing-list .main-content .reference-billing-page #billing-invoice-pane .ispd-billing-table-card {
    max-width:100%!important;min-width:0!important;overflow:visible!important;
  }
  body.xtx-billing-list .main-content .reference-billing-page #billing-invoice-pane .ispd-billing-table-card .table-responsive {
    width:100%!important;min-width:0!important;max-width:100%!important;
    height:auto!important;max-height:none!important;overflow:visible!important;
  }
  body.xtx-billing-list .main-content .reference-billing-page #billing-invoice-pane .billing-compact-main-table {
    display:block!important;width:100%!important;min-width:0!important;max-width:100%!important;
    border-collapse:separate!important;table-layout:auto!important;
  }
  body.xtx-billing-list .main-content .reference-billing-page #billing-invoice-pane .billing-compact-main-table > thead{display:none!important}
  body.xtx-billing-list .main-content .reference-billing-page #billing-invoice-pane .billing-compact-main-table > tbody{display:block!important;min-width:0!important;width:100%!important}
  body.xtx-billing-list .main-content .reference-billing-page #billing-invoice-pane .billing-compact-main-table #bills-list tr.billing-data-row {
    box-sizing:border-box!important;display:grid!important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
    grid-template-areas:"select action" "code name" "idip mobile" "due bstatus"!important;
    grid-auto-rows:auto!important;gap:7px 9px!important;
    width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;
    padding:10px!important;margin:0 0 9px!important;overflow:visible!important;
    border:1px solid #c0d6e9!important;border-radius:13px!important;
    background:#f7fbff!important;box-shadow:0 3px 13px rgba(28,85,132,.06)!important;
  }
  body.xtx-billing-list .main-content .reference-billing-page #billing-invoice-pane .billing-compact-main-table #bills-list tr.billing-data-row > td[data-billing-col] {
    display:flex!important;box-sizing:border-box!important;flex-direction:column!important;
    justify-content:flex-start!important;align-items:flex-start!important;
    gap:2px!important;min-width:0!important;max-width:100%!important;width:auto!important;
    height:auto!important;min-height:0!important;max-height:none!important;
    margin:0!important;padding:2px 4px!important;position:static!important;
    grid-column:auto!important;overflow:visible!important;vertical-align:top!important;
    border:0!important;background:transparent!important;
    white-space:normal!important;word-break:normal!important;overflow-wrap:anywhere!important;
    line-height:1.28!important;font-size:12px!important;text-align:left!important;
  }
  body.xtx-billing-list .main-content .reference-billing-page #billing-invoice-pane .billing-compact-main-table #bills-list tr.billing-data-row > td[data-billing-col]::before {
    content:attr(data-ui249-label)!important;display:block!important;
    position:static!important;margin:0 0 1px!important;padding:0!important;
    font-size:9px!important;line-height:1.18!important;font-weight:750!important;
    letter-spacing:.015em!important;color:#607b92!important;
  }
  body.xtx-billing-list .main-content .reference-billing-page #billing-invoice-pane .billing-compact-main-table #bills-list tr.billing-data-row > td[data-billing-col] :is(b,span,button,div){
    line-height:1.3!important;white-space:normal!important;max-width:100%!important;
    overflow-wrap:anywhere!important;
  }
  body.xtx-billing-list .main-content .reference-billing-page #billing-invoice-pane .billing-compact-main-table #bills-list tr.billing-data-row > td[data-billing-col="select"]{grid-area:select!important;min-height:36px!important;justify-content:center!important}
  body.xtx-billing-list .main-content .reference-billing-page #billing-invoice-pane .billing-compact-main-table #bills-list tr.billing-data-row > td[data-billing-col="select"]::before{display:none!important;content:none!important}
  body.xtx-billing-list .main-content .reference-billing-page #billing-invoice-pane .billing-compact-main-table #bills-list tr.billing-data-row > td[data-billing-col="code"]{grid-area:code!important;font-weight:750!important}
  body.xtx-billing-list .main-content .reference-billing-page #billing-invoice-pane .billing-compact-main-table #bills-list tr.billing-data-row > td[data-billing-col="name"]{grid-area:name!important;grid-column:auto!important;font-weight:750!important}
  body.xtx-billing-list .main-content .reference-billing-page #billing-invoice-pane .billing-compact-main-table #bills-list tr.billing-data-row > td[data-billing-col="idip"]{grid-area:idip!important}
  body.xtx-billing-list .main-content .reference-billing-page #billing-invoice-pane .billing-compact-main-table #bills-list tr.billing-data-row > td[data-billing-col="mobile"]{grid-area:mobile!important}
  body.xtx-billing-list .main-content .reference-billing-page #billing-invoice-pane .billing-compact-main-table #bills-list tr.billing-data-row > td[data-billing-col="due"]{grid-area:due!important;font-weight:750!important}
  body.xtx-billing-list .main-content .reference-billing-page #billing-invoice-pane .billing-compact-main-table #bills-list tr.billing-data-row > td[data-billing-col="bstatus"]{grid-area:bstatus!important}
  body.xtx-billing-list .main-content .reference-billing-page #billing-invoice-pane .billing-compact-main-table #bills-list tr.billing-data-row > td[data-billing-col="action"]{
    grid-area:action!important;grid-column:auto!important;
    flex-direction:row!important;justify-content:flex-end!important;align-items:center!important;
    gap:6px!important;min-height:36px!important;position:relative!important;z-index:6!important;
  }
  body.xtx-billing-list .main-content .reference-billing-page #billing-invoice-pane .billing-compact-main-table #bills-list tr.billing-data-row > td[data-billing-col="action"]::before{display:none!important;content:none!important}
  body.xtx-billing-list .main-content .reference-billing-page #billing-invoice-pane .billing-compact-main-table #bills-list tr.billing-data-row > td[data-billing-col="action"] .ispd-action-dropdown{position:relative!important;z-index:10!important;align-self:center!important}
  body.xtx-billing-list .main-content .reference-billing-page #billing-invoice-pane .billing-compact-main-table #bills-list tr.billing-data-row > td[data-billing-col="action"] .ispd-action-dropdown>summary {
    display:grid!important;place-items:center!important;width:38px!important;height:38px!important;
    min-width:38px!important;min-height:38px!important;padding:0!important;
    border:1px solid #adcadf!important;border-radius:9px!important;
  }
  body.xtx-billing-list .main-content .reference-billing-page #billing-invoice-pane .billing-compact-main-table #bills-list tr.billing-data-row > td[data-billing-col="action"] .ui249-menu-label{display:none!important}
  body.xtx-billing-list .main-content .reference-billing-page #billing-invoice-pane .billing-compact-main-table #bills-list tr.billing-data-row > td.billing-col-hidden {display:none!important}
  body.xtx-billing-list .main-content .reference-billing-page #billing-invoice-pane .billing-compact-main-table #bills-list tr.billing-data-row:not(.xtx-c11-expanded) > td[data-billing-col]:not([data-billing-col="select"]):not([data-billing-col="code"]):not([data-billing-col="idip"]):not([data-billing-col="name"]):not([data-billing-col="mobile"]):not([data-billing-col="due"]):not([data-billing-col="bstatus"]):not([data-billing-col="action"]){display:none!important}
  body.xtx-billing-list .main-content .reference-billing-page #billing-invoice-pane .billing-compact-main-table #bills-list tr.billing-data-row.xtx-c11-expanded > td[data-billing-col]:not(.billing-col-hidden){display:flex!important}
  body.xtx-billing-list .main-content .reference-billing-page #billing-invoice-pane .billing-compact-main-table #bills-list tr.billing-data-row.xtx-c11-expanded > td[data-billing-col="name"]{grid-column:auto!important}
  body.xtx-billing-list .main-content .reference-billing-page #billing-invoice-pane .billing-compact-main-table #bills-list tr.billing-data-row .ispd-bstatus{display:flex!important;align-items:center!important;gap:5px!important;flex-wrap:wrap!important}
  body.xtx-billing-list .main-content .reference-billing-page #billing-invoice-pane .billing-compact-main-table #bills-list tr.billing-data-row .ispd-bstatus button{min-height:32px!important;padding:4px 7px!important}
  body.xtx-billing-list .main-content .reference-billing-page #billing-invoice-pane .billing-compact-main-table #bills-list tr.billing-data-row .xtx-v229-due-link{min-height:30px!important;padding:4px 1px!important;font-size:13px!important}
  body.xtx-billing-list .main-content .reference-billing-page #billing-invoice-pane .billing-compact-main-table #bills-list tr.billing-data-row input[type="checkbox"]{width:19px!important;height:19px!important}
  .xtx-c11-details-toggle {
    box-sizing:border-box!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;
    flex:0 0 auto!important;width:auto!important;min-width:65px!important;min-height:34px!important;
    padding:5px 9px!important;margin:0!important;
    font-size:11px!important;font-weight:750!important;line-height:1!important;
    color:#164b73!important;background:#e8f3ff!important;border:1px solid #b2cee7!important;
    border-radius:8px!important;cursor:pointer!important;white-space:nowrap!important;
  }
  .xtx-c11-details-toggle:focus-visible{outline:2px solid #278ce6!important;outline-offset:2px!important}
  .xtx-c11-details-toggle[aria-expanded="true"]{background:#d3ebff!important}

  /* Client List: same compact cards. The existing mobile 'All columns' button
     now reveals the full data in the cards rather than causing horizontal scroll. */
  body .client-reference-mode.xtx-v24616-client-columns .client-reference-table-card .table-responsive{
    width:100%!important;max-width:100%!important;overflow:visible!important;
  }
  body .client-reference-mode.xtx-v24616-client-columns #table-clients.client-reference-data-table {
    display:block!important;width:100%!important;min-width:0!important;max-width:100%!important;
    table-layout:auto!important;border-collapse:separate!important;
  }
  body .client-reference-mode.xtx-v24616-client-columns #table-clients.client-reference-data-table > thead{display:none!important}
  body .client-reference-mode.xtx-v24616-client-columns #table-clients.client-reference-data-table > tbody{display:block!important;width:100%!important}
  body .client-reference-mode.xtx-v24616-client-columns #table-clients.client-reference-data-table > tbody > tr.client-reference-row{
    display:grid!important;box-sizing:border-box!important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
    grid-template-areas:"select action" "code name" "user mobile" "bstatus mstatus"!important;
    grid-auto-rows:auto!important;gap:7px 10px!important;
    width:100%!important;min-width:0!important;height:auto!important;min-height:0!important;
    margin:0 0 10px!important;padding:10px!important;
    overflow:visible!important;background:#f7fbff!important;
    border:1px solid #c2d7e7!important;border-radius:13px!important;
    box-shadow:0 3px 13px rgba(28,85,132,.06)!important;
  }
  body .client-reference-mode.xtx-v24616-client-columns #table-clients.client-reference-data-table > tbody > tr.client-reference-row > td {
    display:flex!important;flex-direction:column!important;box-sizing:border-box!important;
    justify-content:flex-start!important;align-items:flex-start!important;
    gap:3px!important;min-width:0!important;max-width:100%!important;width:auto!important;
    min-height:0!important;max-height:none!important;height:auto!important;
    margin:0!important;padding:2px 4px!important;position:static!important;
    vertical-align:top!important;overflow:visible!important;
    white-space:normal!important;overflow-wrap:anywhere!important;word-break:normal!important;
    font-size:12px!important;line-height:1.35!important;
    border:0!important;background:transparent!important;text-align:left!important;
  }
  body .client-reference-mode.xtx-v24616-client-columns #table-clients.client-reference-data-table > tbody > tr.client-reference-row > td::before{
    display:block!important;font-size:9px!important;font-weight:750!important;
    line-height:1.16!important;color:#607b92!important;
  }
  body .client-reference-mode.xtx-v24616-client-columns #table-clients.client-reference-data-table > tbody > tr.client-reference-row > td:nth-child(1){grid-area:select!important;min-height:36px!important;justify-content:center!important}
  body .client-reference-mode.xtx-v24616-client-columns #table-clients.client-reference-data-table > tbody > tr.client-reference-row > td:nth-child(1)::before{content:none!important;display:none!important}
  body .client-reference-mode.xtx-v24616-client-columns #table-clients.client-reference-data-table > tbody > tr.client-reference-row > td:nth-child(2){grid-area:code!important;font-weight:800!important}
  body .client-reference-mode.xtx-v24616-client-columns #table-clients.client-reference-data-table > tbody > tr.client-reference-row > td:nth-child(2)::before{content:'Client Code'!important}
  body .client-reference-mode.xtx-v24616-client-columns #table-clients.client-reference-data-table > tbody > tr.client-reference-row > td:nth-child(3){grid-area:user!important}
  body .client-reference-mode.xtx-v24616-client-columns #table-clients.client-reference-data-table > tbody > tr.client-reference-row > td:nth-child(3)::before{content:'User / IP'!important}
  body .client-reference-mode.xtx-v24616-client-columns #table-clients.client-reference-data-table > tbody > tr.client-reference-row > td:nth-child(4){grid-area:name!important;grid-column:auto!important}
  body .client-reference-mode.xtx-v24616-client-columns #table-clients.client-reference-data-table > tbody > tr.client-reference-row > td:nth-child(4)::before{content:'Client Name'!important}
  body .client-reference-mode.xtx-v24616-client-columns #table-clients.client-reference-data-table > tbody > tr.client-reference-row > td:nth-child(5){grid-area:mobile!important}
  body .client-reference-mode.xtx-v24616-client-columns #table-clients.client-reference-data-table > tbody > tr.client-reference-row > td:nth-child(5)::before{content:'Mobile'!important}
  body .client-reference-mode.xtx-v24616-client-columns #table-clients.client-reference-data-table > tbody > tr.client-reference-row > td:nth-child(6)::before{content:'Area / Zone'!important}
  body .client-reference-mode.xtx-v24616-client-columns #table-clients.client-reference-data-table > tbody > tr.client-reference-row > td:nth-child(7)::before{content:'Connection'!important}
  body .client-reference-mode.xtx-v24616-client-columns #table-clients.client-reference-data-table > tbody > tr.client-reference-row > td:nth-child(8)::before{content:'Package / Speed'!important}
  body .client-reference-mode.xtx-v24616-client-columns #table-clients.client-reference-data-table > tbody > tr.client-reference-row > td:nth-child(9)::before{content:'Monthly Bill'!important}
  body .client-reference-mode.xtx-v24616-client-columns #table-clients.client-reference-data-table > tbody > tr.client-reference-row > td:nth-child(10){grid-area:bstatus!important}
  body .client-reference-mode.xtx-v24616-client-columns #table-clients.client-reference-data-table > tbody > tr.client-reference-row > td:nth-child(10)::before{content:'Billing Status'!important}
  body .client-reference-mode.xtx-v24616-client-columns #table-clients.client-reference-data-table > tbody > tr.client-reference-row > td:nth-child(11){grid-area:mstatus!important}
  body .client-reference-mode.xtx-v24616-client-columns #table-clients.client-reference-data-table > tbody > tr.client-reference-row > td:nth-child(11)::before{content:'MikroTik'!important}
  body .client-reference-mode.xtx-v24616-client-columns #table-clients.client-reference-data-table > tbody > tr.client-reference-row > td:nth-child(12){
    grid-area:action!important;flex-direction:row!important;align-items:center!important;
    justify-content:flex-end!important;gap:6px!important;position:relative!important;
    z-index:5!important;min-height:36px!important;
  }
  body .client-reference-mode.xtx-v24616-client-columns #table-clients.client-reference-data-table > tbody > tr.client-reference-row > td:nth-child(12)::before{content:none!important;display:none!important}
  body .client-reference-mode.xtx-v24616-client-columns #table-clients.client-reference-data-table > tbody > tr.client-reference-row > td:nth-child(12) details{position:relative!important;z-index:20!important}
  body .client-reference-mode.xtx-v24616-client-columns #table-clients.client-reference-data-table > tbody > tr.client-reference-row > td:nth-child(12) summary{min-width:38px!important;min-height:38px!important}
  body .client-reference-mode.xtx-v24616-client-columns #table-clients.client-reference-data-table > tbody > tr.client-reference-row > td:nth-child(n+6):nth-child(-n+9){display:none!important}
  body .client-reference-mode.xtx-v24616-client-columns #table-clients.client-reference-data-table > tbody > tr.client-reference-row.xtx-c11-expanded > td:nth-child(n+6):nth-child(-n+9),
  body .client-reference-mode.xtx-v24616-client-columns.client-mobile-full #table-clients.client-reference-data-table > tbody > tr.client-reference-row > td:nth-child(n+6):nth-child(-n+9){display:flex!important}
  body .client-reference-mode.xtx-v24616-client-columns #table-clients .client-username-link,
  body .client-reference-mode.xtx-v24616-client-columns #table-clients .client-name-cell>b{
    width:100%!important;max-width:100%!important;line-height:1.34!important;
    white-space:normal!important;word-break:normal!important;overflow-wrap:anywhere!important;
    font-size:12px!important;text-align:left!important;
  }
  body .client-reference-mode.xtx-v24616-client-columns #table-clients .client-action-dropdown>summary {
    width:38px!important;height:38px!important;min-width:38px!important;min-height:38px!important;
    display:grid!important;place-items:center!important;
  }
  body .client-reference-mode.xtx-v24616-client-columns .client-mobile-table-hint{display:none!important}
  body.dark-mode .client-reference-mode.xtx-v24616-client-columns #table-clients.client-reference-data-table > tbody > tr.client-reference-row,
  body.dark-mode.xtx-billing-list .main-content .reference-billing-page #billing-invoice-pane .billing-compact-main-table #bills-list tr.billing-data-row {
    background:#122d46!important;border-color:#3c6180!important;box-shadow:none!important;
  }
  body.dark-mode .client-reference-mode.xtx-v24616-client-columns #table-clients.client-reference-data-table > tbody > tr.client-reference-row > td::before,
  body.dark-mode.xtx-billing-list .main-content .reference-billing-page #billing-invoice-pane .billing-compact-main-table #bills-list tr.billing-data-row > td[data-billing-col]::before{color:#a8c9e5!important}
  body.dark-mode .xtx-c11-details-toggle{background:#234a69!important;color:#eef7ff!important;border-color:#557b9a!important}
}
@media screen and (min-width:701px){.xtx-c11-details-toggle{display:none!important}}
/* END assets/css/r6690-c11-mobile-lists.css */

/* BEGIN assets/css/r6690-c14-responsive.css */
/* XtremeX Billing R6.6.90-C14: phone/tablet UI improvement only.
   No backend/network/permission/billing state changes. Dedicated rules sit AFTER C11 CSS.
   Preserve all desktop screens and existing client/billing card interactions. */
@media screen and (max-width:1024px) {
  body .main-content,body .main-content .content-area,body .main-content .content-area > div,
  body .reference-page-shell,body .ui252-mikrotik,body .v240-account-workspace,
  body .reference-billing-page,body .client-reference-mode {
    min-width:0;max-width:100%;box-sizing:border-box;
  }
  #olt-users-view .ou-stats {grid-template-columns:repeat(3,minmax(0,1fr))!important;}
  #olt-users-view .ou-stat span {font-size:11px!important;line-height:1.3!important;white-space:normal!important;
    overflow:visible!important;text-overflow:clip!important;overflow-wrap:anywhere!important;}
  #olt-users-view .ou-stat strong {font-size:19px!important;line-height:1.2!important;}
  #olt-users-view .ou-filters{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  #olt-users-view .ou-filters > input:first-child{grid-column:1/-1;}
  #olt-users-view .ou-filters :is(input,select){min-width:0;max-width:100%;min-height:40px!important;
    font-size:13px!important;line-height:1.3!important;box-sizing:border-box;}
  #olt-users-view .ou-actions .btn{min-height:40px!important;font-size:12px!important;}
  #olt-users-view .ou-view-tab{min-height:40px!important;font-size:12px!important;}
  #olt-users-view .ou-entries,#olt-users-view .ou-pager{font-size:12px!important;}
  #olt-users-view .ou-pager-buttons .btn{min-height:40px!important;font-size:12px!important;}
  #olt-users-view .ou-columns-menu label{font-size:12px!important;min-height:34px;}
  .ui252-mikrotik .ui252-router-toolbar,.ui252-mikrotik .ui252-module-nav,
  #olt-systems-view .ui252-module-nav,.v240-account-workspace .reference-page-head {
    max-width:100%;min-width:0;box-sizing:border-box;
  }
  .ui252-mikrotik .ui252-router-toolbar{flex-wrap:wrap;gap:9px;}
  .ui252-mikrotik .ui252-module-nav,.ui252-module-nav{display:flex;flex-wrap:wrap!important;gap:7px!important;}
  .ui252-mikrotik .ui252-module-nav :is(a,button),.ui252-module-nav :is(a,button){
    min-height:40px!important;display:inline-flex;align-items:center;justify-content:center;
    white-space:normal!important;line-height:1.25!important;text-align:center;
  }
  .ui252-mikrotik .table-responsive,.v240-account-workspace .table-responsive,
  #olt-pon-view .table-responsive,#mapping-review-card .mr-table-scroll,
  #olt-pon-view .mr-table-scroll{
    max-width:100%!important;min-width:0!important;overflow-x:auto!important;
    overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;
  }
  .ui252-mikrotik .table-responsive > table,.v240-account-workspace .table-responsive > table,
  #olt-pon-view .table-responsive > table {
    width:max-content;min-width:100%;max-width:none;
  }
  .ui252-mikrotik .table-responsive :is(th,td),
  .v240-account-workspace .table-responsive :is(th,td){font-size:12px!important;line-height:1.4!important;}
  .v240-account-workspace .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  .v240-account-workspace .form-grid > *{min-width:0;}
  .v240-account-workspace #r64-stats{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  .v240-account-workspace .reference-page-head,.v240-account-workspace .card-header{flex-wrap:wrap;}
  .v240-account-workspace .v240-ledger-tools{display:flex;flex-wrap:wrap!important;gap:8px;}
  .v240-account-workspace .v240-ledger-tools :is(input,select){min-height:40px!important;max-width:100%;}
  .v240-account-workspace .v240-ledger-pager{flex-wrap:wrap!important;gap:9px!important;}
  .v240-account-workspace .v240-ledger-pager button{min-height:40px!important;}
  #olt-pon-view .pon-pagination{flex-wrap:wrap!important;gap:9px;}
  #olt-pon-view .pon-pagination .btn{min-height:40px!important;font-size:12px!important;}
  #olt-pon-view .reference-filter-bar{flex-wrap:wrap!important;}
  #olt-pon-view .reference-filter-bar > *{min-width:0;max-width:100%;}
  #olt-pon-view .pon-summary-card{overflow-wrap:anywhere;}
}

@media screen and (min-width:701px) and (max-width:900px){
  /* Tablet: two-column toolbars, but leave desktop data tables intact. */
  .client-reference-mode .client-reference-table-toolbar,
  body .reference-billing-page .ispd-billing-table-toolbar{flex-wrap:wrap!important;gap:10px!important;}
  .client-reference-mode .client-reference-table-toolbar input,
  body .reference-billing-page .ispd-billing-table-toolbar input{min-width:0;max-width:100%;}
  .client-reference-mode .client-reference-table-card .table-responsive,
  body .reference-billing-page .ispd-billing-table-card .table-responsive{
    max-width:100%!important;overflow-x:auto!important;overscroll-behavior-x:contain;
  }
  .ui252-mikrotik #ui252-router-tools:not([hidden]){grid-template-columns:1fr!important;}
}

@media screen and (max-width:700px){
  /* Existing C11 Client/Billing card layout: restore readable labels and hit areas. */
  body .client-reference-mode.xtx-v24616-client-columns #table-clients.client-reference-data-table
    >tbody>tr.client-reference-row>td::before,
  body.xtx-billing-list .main-content .reference-billing-page #billing-invoice-pane
    .billing-compact-main-table #bills-list tr.billing-data-row>td[data-billing-col]::before{
    font-size:11px!important;line-height:1.4!important;letter-spacing:0!important;
  }
  body .client-reference-mode.xtx-v24616-client-columns #table-clients.client-reference-data-table
    >tbody>tr.client-reference-row>td,
  body.xtx-billing-list .main-content .reference-billing-page #billing-invoice-pane
    .billing-compact-main-table #bills-list tr.billing-data-row>td[data-billing-col]{
    font-size:13px!important;line-height:1.45!important;gap:4px!important;
  }
  body .client-reference-mode.xtx-v24616-client-columns #table-clients .client-username-link,
  body .client-reference-mode.xtx-v24616-client-columns #table-clients .client-name-cell>b{
    font-size:14px!important;line-height:1.45!important;
  }
  .xtx-c11-details-toggle{min-height:42px!important;padding:7px 11px!important;font-size:12px!important;}
  body .client-reference-mode .client-mobile-columns-toggle,
  body .client-reference-mode .client-mobile-tools-toggle,
  body .client-reference-mode .client-reference-table-toolbar :is(input,select),
  body .reference-billing-page #billing-invoice-pane .ispd-billing-table-toolbar :is(button,input,select){
    min-height:42px!important;font-size:13px!important;
  }
  body .client-reference-mode .client-reference-actions :is(button,a),
  body .reference-billing-page #billing-header-actions :is(button,a),
  body .reference-billing-page .ispd-billing-bulkbar :is(button,a){min-height:42px;}
  body .main-content .content-area{min-width:0!important;max-width:100%!important;}
  body .reference-billing-page #billing-invoice-pane .ispd-billing-table-toolbar,
  body .client-reference-mode .client-reference-table-toolbar{min-width:0!important;max-width:100%!important;}
  body .reference-billing-page .ispd-billing-summary,
  body .v240-account-workspace #r64-stats{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  body .v240-account-workspace .form-grid{grid-template-columns:minmax(0,1fr)!important;}
  .v240-account-workspace :is(.form-control,input,select,textarea){font-size:16px!important;}
  .v240-account-workspace .card-header{gap:8px!important;align-items:flex-start!important;}
  .v240-account-workspace .card-header :is(button,a){min-height:42px!important;}
  .v240-account-workspace .v240-ledger-tools input{flex-basis:100%;width:100%;max-width:100%;}
  .v240-account-workspace .v240-quick a{min-height:42px!important;align-items:center!important;}
  /* OLT Users: real phone cards for both Client View and Group View, with the
     existing action dropdown and handlers preserved in the same original DOM. */
  #olt-users-view .ou-head{display:flex;flex-direction:column;align-items:stretch;gap:11px;}
  #olt-users-view .ou-title{font-size:20px!important;line-height:1.3!important;}
  #olt-users-view .ou-sub{font-size:12px!important;line-height:1.4!important;}
  #olt-users-view .ou-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px!important;}
  #olt-users-view .ou-actions > .btn,#olt-users-view .ou-actions > .ou-columns{min-width:0;width:100%;}
  #olt-users-view .ou-actions .btn{width:100%;min-height:44px!important;line-height:1.3!important;}
  #olt-users-view .ou-stats{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;}
  #olt-users-view .ou-stat{padding:11px!important;}
  #olt-users-view .ou-stat strong{font-size:21px!important;}
  #olt-users-view .ou-filters{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;padding:10px!important;}
  #olt-users-view .ou-filters > input:first-child{grid-column:1/-1;}
  #olt-users-view .ou-filters :is(input,select){min-height:44px!important;font-size:14px!important;}
  #olt-users-view .reference-table-card{overflow:visible!important;max-width:100%!important;}
  #olt-users-view .ou-toolbar{align-items:stretch!important;gap:9px!important;padding:10px!important;}
  #olt-users-view .ou-toolbar-left,#olt-users-view .ou-toolbar-right{width:100%;min-width:0;}
  #olt-users-view .ou-toolbar-right{justify-content:space-between;}
  #olt-users-view .ou-entries :is(select),#olt-users-view .ou-view-tab{min-height:42px!important;font-size:13px!important;}
  #olt-users-view .ou-scroll-hint{display:none!important;}
  #olt-users-view .ou-table-scroll{max-width:100%!important;overflow:visible!important;max-height:none!important;}
  #olt-users-view .ou-table{display:block!important;min-width:0!important;width:100%!important;max-width:100%!important;
    border-collapse:separate!important;border-spacing:0!important;table-layout:auto!important;}
  #olt-users-view .ou-table>thead{display:none!important;}
  #olt-users-view .ou-table>tbody{display:block!important;width:100%!important;}
  #olt-users-view #olt-users-list>tr:not(:has(td[colspan])){
    display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 10px!important;
    margin:0 0 10px!important;padding:12px!important;min-width:0!important;max-width:100%!important;
    border:1px solid var(--border-color,#bcd5e9)!important;border-radius:13px!important;
    background:var(--card-bg,#f6fbff)!important;box-shadow:0 4px 13px rgba(17,70,110,.07)!important;
  }
  #olt-users-view #olt-users-list>tr:has(td[colspan]){display:block!important;padding:12px;}
  #olt-users-view #olt-users-list>tr:has(td[colspan])>td{display:block!important;width:100%!important;}
  #olt-users-view #olt-users-list>tr:not(:has(td[colspan]))>td{
    position:static!important;display:flex!important;flex-direction:column;align-items:flex-start;
    justify-content:flex-start;box-sizing:border-box!important;gap:4px;
    min-width:0!important;width:100%!important;max-width:100%!important;min-height:0;
    padding:2px 3px!important;margin:0!important;border:0!important;
    background:transparent!important;box-shadow:none!important;white-space:normal!important;
    font-size:12px!important;line-height:1.45!important;overflow-wrap:anywhere!important;
  }
  #olt-users-view #olt-users-list>tr:not(:has(td[colspan]))>td:first-child{display:none!important;}
  #olt-users-view #olt-users-list>tr:not(:has(td[colspan]))>td::before{
    content:attr(data-c14-label);display:block;color:var(--text-muted,#60768c);
    font-size:11px!important;font-weight:800;line-height:1.3;letter-spacing:.01em;
  }
  #olt-users-view #olt-users-list>tr:not(:has(td[colspan]))>td[data-c14-label="Client"],
  #olt-users-view #olt-users-list>tr:not(:has(td[colspan]))>td[data-c14-label="PON / ONU"],
  #olt-users-view #olt-users-list>tr:not(:has(td[colspan]))>td[data-c14-label="Action"],
  #olt-users-view #olt-users-list>tr:not(:has(td[colspan]))>td[data-c14-label="Clients"]{
    grid-column:1/-1!important;
  }
  #olt-users-view #olt-users-list .ou-muted,
  #olt-users-view #olt-users-list .ou-original-id,
  #olt-users-view #olt-users-list .ou-member-preview,
  #olt-users-view #olt-users-list .ou-meta-hint{
    max-width:100%!important;white-space:normal!important;overflow:visible!important;
    text-overflow:clip!important;font-size:11px!important;line-height:1.4!important;
  }
  #olt-users-view #olt-users-list .ou-alias-main{font-size:14px!important;line-height:1.4!important;}
  #olt-users-view #olt-users-list .ou-rxtx{font-size:13px!important;line-height:1.45!important;}
  #olt-users-view #olt-users-list .ou-signal-state{font-size:11px!important;white-space:normal!important;}
  #olt-users-view #olt-users-list .ou-mini-badge{font-size:11px!important;line-height:1.3!important;white-space:normal!important;}
  #olt-users-view #olt-users-list .ou-actions-cell{justify-content:flex-end!important;width:100%!important;}
  #olt-users-view #olt-users-list .ou-action-btn{width:44px!important;height:44px!important;min-width:44px!important;}
  #olt-users-view .ou-pager{flex-direction:column;align-items:stretch!important;gap:10px!important;padding:11px!important;}
  #olt-users-view .ou-pager-buttons{display:flex;justify-content:space-between;gap:8px!important;}
  #olt-users-view .ou-pager-buttons .btn{min-height:44px!important;}
  #olt-users-view .ou-pager-buttons .btn:first-child,#olt-users-view .ou-pager-buttons .btn:last-child{flex:1;}
  /* PON / ONU and MikroTik reconciliation: preserve ALL table controls; scroll
     inside the specific table rather than introducing a second page scroll. */
  #olt-pon-view .table-responsive,#olt-pon-view .mr-table-scroll,
  #mapping-review-card .mr-table-scroll,
  .ui252-mikrotik .table-responsive{
    overflow-x:auto!important;overflow-y:auto;max-width:100%!important;
    scrollbar-width:thin;touch-action:pan-x pan-y;
  }
  #ethernet-review-card .ethernet-table{min-width:760px!important;}
  .ui252-mikrotik #routers-list td:last-child{min-width:205px;}
  .ui252-mikrotik #routers-list td .btn{min-width:42px!important;min-height:42px!important;}
  .ui252-mikrotik .ui252-router-workspace{min-width:0;}
  .ui252-mikrotik #ui252-router-tools:not([hidden]){grid-template-columns:1fr!important;}
  .ui252-mikrotik .mikrotik-reconcile-actions{flex-wrap:wrap!important;gap:8px!important;}
  .ui252-mikrotik .mikrotik-reconcile-actions .btn{min-height:44px!important;}
  #modal-packages-sync>.modal-content,#modal-clients-sync>.modal-content,
  #modal-router>.modal-content,#modal-router-diagnostics>.modal-content{
    width:calc(100vw - 16px)!important;max-width:calc(100vw - 16px)!important;
    max-height:calc(100dvh - 16px)!important;margin:8px auto!important;
    display:flex;flex-direction:column;overflow:hidden;
  }
  #modal-packages-sync .modal-body,#modal-clients-sync .modal-body,
  #modal-router .modal-body,#modal-router-diagnostics .modal-body{
    min-height:0!important;overflow-y:auto!important;overscroll-behavior:contain;
  }
  #modal-packages-sync .table-responsive,#modal-clients-sync .table-responsive{min-height:130px;max-width:100%!important;overflow:auto!important;}
  #modal-packages-sync .modal-header,#modal-clients-sync .modal-header{flex:0 0 auto;}
  #modal-packages-sync .modal-header h3,#modal-clients-sync .modal-header h3{
    font-size:16px!important;overflow-wrap:anywhere;line-height:1.4!important;
  }
}
@media screen and (max-width:380px){
  #olt-users-view .ou-filters{grid-template-columns:minmax(0,1fr)!important;}
  #olt-users-view .ou-filters > input:first-child{grid-column:auto;}
  #olt-users-view .ou-actions{grid-template-columns:minmax(0,1fr)!important;}
  #olt-users-view .ou-table #olt-users-list>tr:not(:has(td[colspan])){padding:10px!important;gap:9px 8px!important;}
}
@media screen and (prefers-reduced-motion:reduce){
  #olt-users-view .ou-table #olt-users-list>tr{animation:none!important;transition:none!important;}
}
/* END assets/css/r6690-c14-responsive.css */

/* BEGIN assets/css/r6690-c15-desktop-print.css */
/* R6.6.90-C15 desktop polish and local print preview; C14 mobile layout preserved. */
@media screen and (min-width:901px){
 #olt-users-view .ou-stats{grid-template-columns:repeat(auto-fit,minmax(162px,1fr))!important;gap:10px!important}
 #olt-users-view .ou-stat{padding:12px 14px!important;min-height:76px}
 #olt-users-view .ou-stat strong{font-size:21px!important;line-height:1.24!important}
 #olt-users-view .ou-stat span{font-size:11px!important;line-height:1.35!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;overflow-wrap:break-word!important}
 #olt-users-view .ou-title{font-size:22px!important;line-height:1.3!important}
 #olt-users-view .ou-sub{font-size:12px!important;line-height:1.4!important}
 #olt-users-view .ou-actions .btn{min-height:38px!important;font-size:12px!important;padding:8px 12px!important}
 #olt-users-view .ou-filters{grid-template-columns:repeat(auto-fit,minmax(155px,1fr))!important;gap:9px!important;padding:12px!important}
 #olt-users-view .ou-filters :is(input,select){min-width:0;min-height:37px!important;font-size:12px!important}
 #olt-users-view .ou-toolbar{padding:10px 12px!important;gap:10px!important}
 #olt-users-view .ou-entries,#olt-users-view .ou-pager{font-size:12px!important}
 #olt-users-view .ou-table th{font-size:11px!important;line-height:1.35!important;padding:9px 8px!important}
 #olt-users-view .ou-table td{font-size:11.5px!important;line-height:1.38!important;padding:8px!important}
 #olt-users-view .ou-alias-main{font-size:12.5px!important;line-height:1.38!important}
 #olt-users-view .ou-muted,#olt-users-view .ou-original-id{font-size:10.5px!important;line-height:1.4!important}
 #olt-users-view .ou-meta-hint{font-size:10px!important;line-height:1.4!important;max-width:260px!important}
 #olt-users-view .ou-signal-state{font-size:10.5px!important;line-height:1.4!important}
 #olt-users-view :is(.ou-action-btn,.ou-view-tab){min-width:37px;min-height:37px;font-size:12px!important}
 #olt-users-view .ou-pager-buttons .btn{min-height:37px!important}
 #olt-users-view .ou-table-scroll{scrollbar-width:thin}
 .ui252-mikrotik .ui252-device-detail > span{font-size:11px!important;line-height:1.35!important}
 .ui252-mikrotik .ui252-device-detail strong{font-size:13px!important;line-height:1.5!important}
 .ui252-mikrotik .ui252-device-actions .btn{min-height:38px!important;font-size:12px!important}
 body .ui252-mikrotik #routers-list td .btn{min-height:38px!important;min-width:38px!important}
 body .v240-account-workspace .fw110-wallet small{font-size:12px!important;line-height:1.45!important}
 body .v240-account-workspace :is(.v240-ledger-tools button,.v240-ledger-pager button){min-height:38px!important}
 body #sidebar .sidebar-submenu .nav-link-sub{min-height:33px!important;line-height:1.4!important}
 body #sidebar .sidebar-nav .nav-link{min-height:39px!important}
 body :is(#sidebar,#xtx-collapsed-flyout-v223) :is(a,button):focus-visible{outline:2px solid #58bdf5!important;outline-offset:-2px!important}
 body .client-reference-data-table .client-action-dropdown>summary,
 body .billing-compact-main-table .ispd-action-dropdown>summary,
 body .payment-reference-table .ispd-action-dropdown>summary{width:38px!important;min-width:38px!important;height:38px!important;min-height:38px!important;display:inline-grid!important;place-items:center!important;border-radius:10px!important}
 body .xtx26-action-popup > :is(button,a,input[type="button"],[role="menuitem"]){min-height:40px!important;font-size:12px!important;line-height:1.38!important}
 body :is(.reference-page-head,.client-reference-table-toolbar,.ispd-billing-table-toolbar){min-width:0;max-width:100%}
 body :is(.reference-page-head,.client-reference-table-toolbar,.ispd-billing-table-toolbar) :is(h2,h3,span,b){overflow-wrap:break-word}
}
@media screen and (min-width:901px) and (max-width:1180px){
 #olt-users-view .ou-filters{grid-template-columns:repeat(3,minmax(0,1fr))!important}
 #olt-users-view .ou-stats{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
.xtx-c15-print-overlay{position:fixed;inset:0;z-index:2147483500;display:flex;align-items:center;justify-content:center;padding:12px;background:rgba(4,17,34,.78);backdrop-filter:blur(8px);box-sizing:border-box}
.xtx-c15-print-modal{display:flex;flex-direction:column;width:min(1170px,100%);height:min(90dvh,960px);max-height:calc(100dvh - 24px);min-width:0;overflow:hidden;border:1px solid #77afd4;border-radius:16px;background:#eaf3f9;color:#163a59;box-shadow:0 24px 80px rgba(0,0,0,.36)}
.xtx-c15-print-header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;padding:13px 17px;border-bottom:1px solid #c4d9e8;background:#f5faff}
.xtx-c15-print-heading{display:flex;flex-direction:column;gap:3px;min-width:0}
.xtx-c15-print-heading strong{font:750 17px/1.3 'Manrope',Arial,sans-serif;color:#153f64;overflow-wrap:anywhere}
.xtx-c15-print-heading small{font:500 12px/1.45 'Manrope',Arial,sans-serif;color:#52718c}
.xtx-c15-print-tools{display:flex;align-items:center;flex-wrap:wrap;gap:7px}
.xtx-c15-print-tools button{cursor:pointer;display:inline-flex;align-items:center;justify-content:center;min-height:41px;padding:8px 12px;border:1px solid #b3cadd;border-radius:9px;background:#fff;color:#20445e;font:700 12px/1.3 'Manrope',Arial,sans-serif;white-space:normal;text-align:center}
.xtx-c15-print-tools button[data-c15="print"]{background:#176ca2;border-color:#176ca2;color:#fff}
.xtx-c15-print-tools button:disabled{opacity:.5;cursor:wait}
.xtx-c15-print-tools button:focus-visible{outline:3px solid #49b2f4;outline-offset:2px}
.xtx-c15-print-hint{padding:7px 16px;background:#dcecf8;border-bottom:1px solid #c1d6e7;color:#315b7b;font:600 11px/1.4 'Manrope',Arial,sans-serif}
.xtx-c15-print-frame{display:block;flex:1;min-height:0;width:100%;border:0;background:#fff}
@media(max-width:700px){
 .xtx-c15-print-overlay{padding:5px;align-items:stretch}
 .xtx-c15-print-modal{height:calc(100dvh - 10px);max-height:none;border-radius:10px}
 .xtx-c15-print-header{padding:9px;gap:8px}
 .xtx-c15-print-heading strong{font-size:15px}
 .xtx-c15-print-heading small{font-size:11px}
 .xtx-c15-print-tools{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}
 .xtx-c15-print-tools button{min-height:44px!important;padding:8px;font-size:12px}
 .xtx-c15-print-tools button[data-c15="print"]{grid-column:1/-1}
}
@media print{.xtx-c15-print-overlay{display:none!important}}
/* END assets/css/r6690-c15-desktop-print.css */

/* C17: Local profile avatar -- never transmit staff names to a third-party image API. */
.topbar .top-profile-button .xtx-c17-avatar {
  width: 29px; height: 29px; min-width: 29px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  box-sizing: border-box; border: 2px solid #3a9bff;
  background: linear-gradient(145deg,#286ee6,#114886);
  color: #fff; font-size: 12px; line-height: 1;
}
/* A failed route must never leave the old page looking like the new page. */
#content-area .xtx-c17-route-error {
  position: relative; display: flex; align-items: center; flex-wrap: wrap;
  gap: 10px; padding: 11px 14px; margin: 8px 0 16px;
  border: 1px solid #b8781b; border-radius: 10px;
  background: #392b16; color: #ffecce; font-size: 13px;
}
#content-area .xtx-c17-route-error .xtx-c17-retry {
  display: inline-flex; min-height: 36px; align-items: center;
  padding: 6px 13px; border-radius: 8px;
  border: 1px solid #e0a041; background: #6b451b;
  color: #fff; font-weight: 700; text-decoration: none;
}
body.light-mode #content-area .xtx-c17-route-error {
  background: #fff5df; color: #543300; border-color: #d9a449;
}
body.light-mode #content-area .xtx-c17-route-error .xtx-c17-retry {
  color: #fff; background: #81501c;
}
#content-area .xtx-c17-route-error .xtx-c17-retry:focus-visible,
.topbar .top-profile-button:focus-visible,
#mobile-toggle-sidebar:focus-visible {
  outline: 3px solid #5baeff; outline-offset: 3px;
}
/* Honor OS accessibility preferences without changing the selected full-motion default. */
@media (prefers-reduced-motion: reduce) {
  .sidebar, .sidebar *, .topbar .btn-icon, .top-profile-button,
  #content-area .xtx-c17-route-error {animation-duration: .01ms !important; transition-duration: .01ms !important;}
}

/* ==== C18: menu search, accessible announcements, mobile global-search ==== */
.xtx-c18-visually-hidden {position:absolute!important;width:1px!important;height:1px!important;
 padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;
 white-space:nowrap!important;border:0!important;}
#sidebar-menu-list li.xtx-c18-search-hidden {display:none!important;}
.topbar .global-search-shell .xtx-c18-search-submit {
 flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;
 width:36px;height:36px;margin:1px 3px 1px 4px;padding:0;
 color:#e9f7ff;border:1px solid rgba(149,207,245,.4);border-radius:10px;
 background:rgba(68,142,203,.2);cursor:pointer;box-sizing:border-box;
}
.topbar .global-search-shell .xtx-c18-search-submit:is(:hover,:focus-visible){
 color:#fff;border-color:#9bd8ff;background:rgba(68,142,203,.4);
 outline:2px solid #80cfff;outline-offset:1px;
}
.xtx-c18-announcement {
 display:flex!important;align-items:center;gap:10px;box-sizing:border-box;
 padding:8px 14px!important;background:#23527c;color:#fff;
 font-size:13.5px;border-bottom:1px solid rgba(255,255,255,.1);
 min-width:0;overflow:hidden;
}
.xtx-c18-ann-label{flex:0 0 auto;font-weight:700;display:inline-flex;align-items:center;
 gap:6px;white-space:nowrap;padding:5px 10px;border-radius:14px;
 background:rgba(255,255,255,.15);}
.xtx-c18-ann-window{flex:1 1 0;min-width:0;max-width:100%;white-space:nowrap;
 overflow:hidden;outline:none;scrollbar-width:thin;}
.xtx-c18-ann-window:focus-visible{outline:2px solid #b9e1ff;outline-offset:2px;border-radius:4px;}
.xtx-c18-ann-text{display:inline-block;max-width:none;white-space:nowrap;vertical-align:middle;}
.xtx-c18-ann-window.xtx-c18-ann-overflow .xtx-c18-ann-text{
 animation:xtxC18AnnScroll var(--xtx-c18-ann-duration,22s) ease-in-out infinite alternate;
}
@keyframes xtxC18AnnScroll {0%,15%{transform:translateX(0)}85%,100%{transform:translateX(var(--xtx-c18-ann-shift,0px))}}
.xtx-c18-announcement:is(:hover,:focus-within) .xtx-c18-ann-text{animation-play-state:paused!important;}
.xtx-c18-announcement.xtx-c18-ann-paused .xtx-c18-ann-text{
 animation:none!important;transform:none!important;
}
.xtx-c18-ann-paused .xtx-c18-ann-window{overflow-x:auto;}
.xtx-c18-ann-toggle{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;
 width:36px;height:36px;padding:0;color:#fff;border-radius:9px;
 border:1px solid rgba(255,255,255,.35);background:rgba(255,255,255,.13);cursor:pointer;}
.xtx-c18-ann-toggle:is(:hover,:focus-visible){background:rgba(255,255,255,.25);outline:2px solid #bbe0ff;outline-offset:1px;}
.xtx-c18-ann-toggle:disabled{opacity:.45;cursor:default;}
@media(max-width:700px){
 .xtx-c18-announcement{gap:7px!important;padding:6px 8px!important;font-size:12.5px!important;}
 .xtx-c18-ann-label{padding:5px 7px;font-size:11.5px;}
 .xtx-c18-ann-toggle{width:40px;height:40px;}
 .topbar .global-search-shell .xtx-c18-search-submit{width:40px;height:40px;margin:0 2px 0 4px;}
 .topbar .global-search-shell input#global-search-input{min-width:0!important;flex:1 1 auto;}
}
@media(prefers-reduced-motion:reduce){
 .xtx-c18-ann-text{animation:none!important;transform:none!important;}
 .xtx-c18-ann-window{overflow-x:auto;}
}
/* ==== /C18 ==== */
