/* XtremeX ISP Manager v3.0.3.5 - compact hybrid ISP Digital list UI */
:root{
  --xtx-list-navy:#163e5d;
  --xtx-list-navy-2:#0f334f;
  --xtx-list-blue:#2296e9;
  --xtx-list-border:#dce4ea;
  --xtx-list-soft:#f5f8fa;
  --xtx-list-row:#fff;
  --xtx-list-row-alt:#f8fafb;
  --xtx-list-text:#183246;
  --xtx-list-muted:#698091;
  --xtx-list-green:#1eaf4b;
  --xtx-list-red:#ed334b;
  --xtx-list-orange:#f0a629;
  --xtx-list-shadow:0 2px 12px rgba(14,49,75,.08);
}

body.xtx-list-ui-enabled .xtx-list-page,
body.xtx-list-ui-enabled .list-page,
body.xtx-list-ui-enabled .page-content,
body.xtx-list-ui-enabled main{
  min-width:0;
}

/* Generic list card */
body.xtx-list-ui-enabled .xtx-list-card,
body.xtx-list-ui-enabled .dataTables_wrapper,
body.xtx-list-ui-enabled .table-responsive,
body.xtx-list-ui-enabled .table-wrap,
body.xtx-list-ui-enabled .xtx-list-table-wrap{
  background:#fff;
  border:1px solid var(--xtx-list-border);
  border-radius:8px;
  box-shadow:var(--xtx-list-shadow);
}

body.xtx-list-ui-enabled .xtx-list-table-wrap{
  position:relative;
  width:100%;
  overflow:auto;
  -webkit-overflow-scrolling:touch;
}

/* Header/title area */
body.xtx-list-ui-enabled .xtx-list-titlebar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin:0 0 12px;
}
body.xtx-list-ui-enabled .xtx-list-titlebar h1,
body.xtx-list-ui-enabled .xtx-list-titlebar h2,
body.xtx-list-ui-enabled .page-title,
body.xtx-list-ui-enabled .card-title{
  color:var(--xtx-list-text);
  font-weight:700;
}

/* Filter/action bar like ISP Digital */
body.xtx-list-ui-enabled .xtx-list-filters,
body.xtx-list-ui-enabled .filter-bar,
body.xtx-list-ui-enabled .table-toolbar,
body.xtx-list-ui-enabled .dataTables_length,
body.xtx-list-ui-enabled .dataTables_filter{
  font-size:12px;
}
body.xtx-list-ui-enabled .xtx-list-filters{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:7px;
  margin:0 0 10px;
}
body.xtx-list-ui-enabled .xtx-filter-btn,
body.xtx-list-ui-enabled .xtx-list-filters button,
body.xtx-list-ui-enabled .xtx-list-filters a{
  min-height:30px;
  padding:5px 10px;
  border:1px solid #cbd9e3;
  border-radius:4px;
  background:#fff;
  color:#264d69;
  font-size:12px;
  font-weight:600;
  text-decoration:none;
  line-height:18px;
  box-shadow:none;
  cursor:pointer;
}
body.xtx-list-ui-enabled .xtx-filter-btn:hover,
body.xtx-list-ui-enabled .xtx-list-filters button:hover,
body.xtx-list-ui-enabled .xtx-list-filters a:hover{
  border-color:#8fb3ca;
  background:#f4f8fb;
}
body.xtx-list-ui-enabled .xtx-filter-btn.is-active,
body.xtx-list-ui-enabled .xtx-list-filters .active{
  background:var(--xtx-list-navy);
  border-color:var(--xtx-list-navy);
  color:#fff;
}

/* DataTables controls */
body.xtx-list-ui-enabled .dataTables_wrapper .dataTables_length,
body.xtx-list-ui-enabled .dataTables_wrapper .dataTables_filter{
  margin:8px 10px;
  color:#4c687c;
}
body.xtx-list-ui-enabled .dataTables_wrapper .dataTables_length select,
body.xtx-list-ui-enabled .dataTables_wrapper .dataTables_filter input,
body.xtx-list-ui-enabled .xtx-list-control select,
body.xtx-list-ui-enabled .xtx-list-control input{
  height:31px;
  border:1px solid #cbd8e1;
  border-radius:3px;
  background:#fff;
  color:#28485e;
  font-size:12px;
  outline:none;
}
body.xtx-list-ui-enabled .dataTables_wrapper .dataTables_filter input,
body.xtx-list-ui-enabled .xtx-list-search{
  min-width:145px;
  padding:5px 9px;
}
body.xtx-list-ui-enabled .dataTables_wrapper .dataTables_length select{
  min-width:58px;
  padding:3px 5px;
}

/* Tables */
body.xtx-list-ui-enabled table.xtx-ispdigital-table,
body.xtx-list-ui-enabled .dataTables_wrapper table,
body.xtx-list-ui-enabled table.data-table{
  width:100% !important;
  border-collapse:collapse !important;
  border-spacing:0;
  margin:0 !important;
  color:var(--xtx-list-text);
  font-size:11.5px;
  line-height:1.25;
}
body.xtx-list-ui-enabled table.xtx-ispdigital-table thead th,
body.xtx-list-ui-enabled .dataTables_wrapper table thead th,
body.xtx-list-ui-enabled table.data-table thead th{
  position:relative;
  background:var(--xtx-list-navy) !important;
  color:#fff !important;
  border:1px solid rgba(255,255,255,.20) !important;
  border-bottom-color:#0c2b43 !important;
  padding:9px 6px !important;
  text-align:center;
  vertical-align:middle;
  white-space:nowrap;
  font-size:10.8px;
  font-weight:700;
  letter-spacing:-.1px;
}
body.xtx-list-ui-enabled table.xtx-ispdigital-table tbody td,
body.xtx-list-ui-enabled .dataTables_wrapper table tbody td,
body.xtx-list-ui-enabled table.data-table tbody td{
  border:1px solid #e0e6ea !important;
  padding:8px 6px !important;
  vertical-align:middle;
  text-align:center;
  background:var(--xtx-list-row);
  white-space:normal;
  overflow-wrap:anywhere;
}
body.xtx-list-ui-enabled table.xtx-ispdigital-table tbody tr:nth-child(even) td,
body.xtx-list-ui-enabled .dataTables_wrapper table tbody tr:nth-child(even) td,
body.xtx-list-ui-enabled table.data-table tbody tr:nth-child(even) td{
  background:var(--xtx-list-row-alt);
}
body.xtx-list-ui-enabled table.xtx-ispdigital-table tbody tr:hover td,
body.xtx-list-ui-enabled .dataTables_wrapper table tbody tr:hover td,
body.xtx-list-ui-enabled table.data-table tbody tr:hover td{
  background:#eaf3f8 !important;
}
body.xtx-list-ui-enabled table.xtx-ispdigital-table td:first-child,
body.xtx-list-ui-enabled table.xtx-ispdigital-table th:first-child{
  text-align:center;
}

/* Keep Billing List compact but complete */
body.xtx-list-ui-enabled.xtx-billing-list table.xtx-ispdigital-table{
  min-width:1540px;
}
body.xtx-list-ui-enabled.xtx-client-list table.xtx-ispdigital-table{
  min-width:1220px;
}
body.xtx-list-ui-enabled.xtx-generic-list table.xtx-ispdigital-table{
  min-width:max-content;
}

/* Links / icons inside table */
body.xtx-list-ui-enabled table.xtx-ispdigital-table a{
  color:#09699b;
  text-decoration:none;
}
body.xtx-list-ui-enabled table.xtx-ispdigital-table a:hover{
  text-decoration:underline;
}
body.xtx-list-ui-enabled .xtx-mini-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:18px;
  height:18px;
  color:#0a648d;
}

/* Online/offline dots */
body.xtx-list-ui-enabled .xtx-dot{
  display:inline-block;
  width:11px;
  height:11px;
  margin-left:4px;
  border-radius:50%;
  vertical-align:-1px;
  background:#9baab4;
}
body.xtx-list-ui-enabled .xtx-dot.is-online{background:#39bd61}
body.xtx-list-ui-enabled .xtx-dot.is-offline{background:#e84b5d}
body.xtx-list-ui-enabled .xtx-dot.is-warning{background:#f0a629}

/* Status badges */
body.xtx-list-ui-enabled .xtx-badge,
body.xtx-list-ui-enabled .badge,
body.xtx-list-ui-enabled .status-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:22px;
  padding:2px 6px;
  border-radius:2px;
  font-size:10.5px;
  font-weight:700;
  white-space:nowrap;
}
body.xtx-list-ui-enabled .xtx-badge-paid,
body.xtx-list-ui-enabled .badge-success,
body.xtx-list-ui-enabled .status-paid{background:var(--xtx-list-green)!important;color:#fff!important}
body.xtx-list-ui-enabled .xtx-badge-due,
body.xtx-list-ui-enabled .badge-danger,
body.xtx-list-ui-enabled .status-due,
body.xtx-list-ui-enabled .status-unpaid{background:var(--xtx-list-red)!important;color:#fff!important}
body.xtx-list-ui-enabled .xtx-badge-active,
body.xtx-list-ui-enabled .status-active{background:#e8f8ed!important;color:#167f37!important;border:1px solid #9fdcaf}
body.xtx-list-ui-enabled .xtx-badge-inactive,
body.xtx-list-ui-enabled .status-inactive,
body.xtx-list-ui-enabled .status-offline{background:#edf1f4!important;color:#60717e!important;border:1px solid #cbd4da}
body.xtx-list-ui-enabled .xtx-badge-warning,
body.xtx-list-ui-enabled .status-partial,
body.xtx-list-ui-enabled .status-suspended{background:#fff4d9!important;color:#94630c!important;border:1px solid #f2d38d}

/* Switch copied from ISP Digital look */
body.xtx-list-ui-enabled .xtx-switch{
  position:relative;
  display:inline-flex;
  width:38px;
  height:20px;
  vertical-align:middle;
}
body.xtx-list-ui-enabled .xtx-switch input{opacity:0;width:0;height:0}
body.xtx-list-ui-enabled .xtx-switch span{
  position:absolute;inset:0;border-radius:12px;background:#bcc8d0;transition:.18s;
}
body.xtx-list-ui-enabled .xtx-switch span:before{
  content:"";position:absolute;width:16px;height:16px;left:2px;top:2px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.18);transition:.18s;
}
body.xtx-list-ui-enabled .xtx-switch input:checked + span{background:#2196e9}
body.xtx-list-ui-enabled .xtx-switch input:checked + span:before{transform:translateX(18px)}

/* Action column - fixed, compact and never clipped */
body.xtx-list-ui-enabled td.xtx-action-cell{
  position:relative !important;
  overflow:visible !important;
  min-width:42px;
  width:42px;
  white-space:nowrap !important;
  z-index:3;
}
body.xtx-list-ui-enabled tr:hover td.xtx-action-cell{z-index:20}
body.xtx-list-ui-enabled .xtx-action-menu{
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:flex-end;
}
body.xtx-list-ui-enabled .xtx-action-trigger{
  display:inline-flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  width:28px;
  height:28px;
  padding:0;
  border:0;
  border-radius:4px;
  background:transparent;
  color:#111;
  cursor:pointer;
}
body.xtx-list-ui-enabled .xtx-action-trigger:hover,
body.xtx-list-ui-enabled .xtx-action-menu.is-open .xtx-action-trigger{
  background:#edf3f6;
}
body.xtx-list-ui-enabled .xtx-action-panel{
  position:absolute;
  right:31px;
  top:50%;
  transform:translateY(-50%) scale(.96);
  display:flex;
  align-items:center;
  gap:1px;
  min-height:30px;
  padding:2px 5px;
  border-radius:4px;
  background:var(--xtx-list-navy);
  box-shadow:0 4px 16px rgba(7,35,55,.28);
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transform-origin:right center;
  transition:opacity .12s,transform .12s,visibility .12s;
  z-index:9999;
}
body.xtx-list-ui-enabled .xtx-action-menu.is-open .xtx-action-panel,
body.xtx-list-ui-enabled .xtx-action-menu:hover .xtx-action-panel{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
  transform:translateY(-50%) scale(1);
}
body.xtx-list-ui-enabled .xtx-action-panel > a,
body.xtx-list-ui-enabled .xtx-action-panel > button,
body.xtx-list-ui-enabled .xtx-action-item{
  position:relative;
  display:inline-flex !important;
  align-items:center;
  justify-content:center;
  flex:0 0 25px;
  width:25px !important;
  height:25px !important;
  min-width:25px !important;
  min-height:25px !important;
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
  border-radius:3px !important;
  background:transparent !important;
  color:#fff !important;
  font-size:0 !important;
  text-decoration:none !important;
  box-shadow:none !important;
  cursor:pointer;
}
body.xtx-list-ui-enabled .xtx-action-panel > a:hover,
body.xtx-list-ui-enabled .xtx-action-panel > button:hover,
body.xtx-list-ui-enabled .xtx-action-item:hover{
  background:rgba(255,255,255,.16) !important;
}
body.xtx-list-ui-enabled .xtx-action-item svg,
body.xtx-list-ui-enabled .xtx-action-panel svg{
  width:14px;
  height:14px;
  fill:currentColor;
}
body.xtx-list-ui-enabled .xtx-action-item[data-xtx-label]:hover:after,
body.xtx-list-ui-enabled .xtx-action-panel > [data-xtx-label]:hover:after{
  content:attr(data-xtx-label);
  position:absolute;
  left:50%;
  bottom:calc(100% + 7px);
  transform:translateX(-50%);
  z-index:10001;
  min-width:max-content;
  max-width:190px;
  padding:4px 6px;
  border-radius:3px;
  background:#27333b;
  color:#fff;
  font-size:10px;
  font-weight:500;
  line-height:1.15;
  white-space:nowrap;
  box-shadow:0 2px 7px rgba(0,0,0,.2);
}
body.xtx-list-ui-enabled .xtx-action-item[data-xtx-label]:hover:before,
body.xtx-list-ui-enabled .xtx-action-panel > [data-xtx-label]:hover:before{
  content:"";
  position:absolute;
  left:50%;
  bottom:calc(100% + 2px);
  transform:translateX(-50%);
  border:5px solid transparent;
  border-top-color:#27333b;
}

/* Pagination */
body.xtx-list-ui-enabled .pagination,
body.xtx-list-ui-enabled .dataTables_paginate{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:3px;
  padding:9px 10px;
  font-size:11px;
}
body.xtx-list-ui-enabled .pagination a,
body.xtx-list-ui-enabled .pagination span,
body.xtx-list-ui-enabled .dataTables_paginate .paginate_button{
  min-width:28px;
  height:28px;
  display:inline-flex !important;
  align-items:center;
  justify-content:center;
  margin:0 !important;
  padding:0 6px !important;
  border:1px solid #d2dde5 !important;
  border-radius:3px !important;
  background:#fff !important;
  color:#35566d !important;
  box-shadow:none !important;
}
body.xtx-list-ui-enabled .pagination .active,
body.xtx-list-ui-enabled .dataTables_paginate .current{
  background:var(--xtx-list-navy) !important;
  border-color:var(--xtx-list-navy) !important;
  color:#fff !important;
}

/* Checkbox sizing */
body.xtx-list-ui-enabled table.xtx-ispdigital-table input[type="checkbox"]{
  width:13px;
  height:13px;
  vertical-align:middle;
}

/* Mobile */
@media (max-width: 900px){
  body.xtx-list-ui-enabled .xtx-list-titlebar{align-items:flex-start;flex-direction:column}
  body.xtx-list-ui-enabled .dataTables_wrapper .dataTables_length,
  body.xtx-list-ui-enabled .dataTables_wrapper .dataTables_filter{float:none!important;text-align:left!important}
  body.xtx-list-ui-enabled table.xtx-ispdigital-table{font-size:11px}
  body.xtx-list-ui-enabled table.xtx-ispdigital-table thead th{font-size:10.5px;padding:8px 5px!important}
  body.xtx-list-ui-enabled table.xtx-ispdigital-table tbody td{padding:7px 5px!important}
  body.xtx-list-ui-enabled .xtx-action-panel{position:fixed;right:12px;left:12px;top:auto;bottom:12px;transform:none!important;justify-content:center;min-height:44px;border-radius:8px}
  body.xtx-list-ui-enabled .xtx-action-menu.is-open .xtx-action-panel{transform:none!important}
  body.xtx-list-ui-enabled .xtx-action-panel > a,
  body.xtx-list-ui-enabled .xtx-action-panel > button,
  body.xtx-list-ui-enabled .xtx-action-item{width:34px!important;height:34px!important;min-width:34px!important;min-height:34px!important}
}

/* v3.0.3.3 compact ISP Digital summary cards */
body.xtx-list-ui-enabled .client-reference-summary,
body.xtx-list-ui-enabled .ispd-billing-summary{
  gap:10px!important;
  margin:0 10px 9px!important;
}
body.xtx-list-ui-enabled .client-ref-card{
  min-height:52px!important;
  gap:8px!important;
  padding:7px 10px!important;
  border-radius:4px!important;
}
body.xtx-list-ui-enabled .client-ref-card>i{font-size:23px!important;}
body.xtx-list-ui-enabled .client-ref-card span{font-size:10.5px!important;line-height:1.05!important;}
body.xtx-list-ui-enabled .client-ref-card strong{font-size:17px!important;line-height:1!important;}
body.xtx-list-ui-enabled .client-ref-card small{font-size:8px!important;margin-top:2px!important;}
body.xtx-list-ui-enabled .ispd-bill-card{min-height:63px!important;border-radius:4px!important;}
body.xtx-list-ui-enabled .ispd-bill-card-main{min-height:44px!important;gap:8px!important;padding:6px 10px!important;}
body.xtx-list-ui-enabled .ispd-bill-card-main>i{font-size:24px!important;}
body.xtx-list-ui-enabled .ispd-bill-card span{font-size:10.5px!important;line-height:1.05!important;}
body.xtx-list-ui-enabled .ispd-bill-card strong{font-size:16px!important;margin-top:2px!important;}
body.xtx-list-ui-enabled .ispd-bill-card small{font-size:8px!important;padding:4px 6px!important;}

/* CIS-density dashboard overview with live network health. */
.cis-quick-grid{
  display:grid;
  grid-template-columns:repeat(12,minmax(0,1fr));
  gap:6px;
  margin:0 0 9px;
}
.cis-quick-grid>button{
  min-width:0;
  min-height:54px;
  display:grid;
  grid-template-columns:22px minmax(0,1fr);
  grid-template-rows:auto auto;
  column-gap:6px;
  align-items:center;
  padding:6px 7px;
  border:1px solid rgba(128,173,218,.16);
  border-radius:7px;
  background:#0d2945;
  color:#dceaf6;
  text-align:left;
  cursor:pointer;
  box-shadow:none;
}
.cis-quick-grid>button:hover{border-color:#3489c7;background:#123553;transform:translateY(-1px);}
.cis-quick-grid i{grid-row:1/3;width:22px;height:22px;display:grid;place-items:center;border-radius:6px;background:rgba(79,167,232,.12);color:#57b9ff;font-size:10px;}
.cis-quick-grid i.green{color:#24d69c;background:rgba(36,214,156,.11)}
.cis-quick-grid i.red{color:#ff6377;background:rgba(255,99,119,.11)}
.cis-quick-grid i.amber{color:#ffbc4c;background:rgba(255,188,76,.11)}
.cis-quick-grid i.violet{color:#b47cff;background:rgba(180,124,255,.11)}
.cis-quick-grid span{align-self:end;color:#829bb2;font-size:7.7px;line-height:1.05;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.cis-quick-grid strong{align-self:start;color:#f4f8fb;font-size:14px;line-height:1.05;}
.network-health-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;padding:8px;}
.network-health-grid>div{display:grid;grid-template-columns:24px minmax(0,1fr) auto;gap:6px;align-items:center;min-height:34px;padding:5px 7px;border:1px solid rgba(128,173,218,.12);border-radius:7px;background:#0d2945;}
.network-health-grid i{width:24px;height:24px;display:grid;place-items:center;border-radius:6px;font-size:10px;background:rgba(79,167,232,.12);color:#57b9ff;}
.network-health-grid span{color:#8fa7bc;font-size:8px;white-space:nowrap;}
.network-health-grid strong{font-size:13px;color:#eaf5fd;}
.network-health-grid .ok i,.network-health-grid .ok strong{color:#24d69c}
.network-health-grid .bad i,.network-health-grid .bad strong{color:#ff6377}
.network-health-grid .warn i,.network-health-grid .warn strong{color:#ffbc4c}
body.light-mode .cis-quick-grid>button,body.light-mode .network-health-grid>div{background:#fff;border-color:#dde8f0;box-shadow:0 2px 6px rgba(24,58,91,.04)}
body.light-mode .cis-quick-grid>button:hover{background:#f5faff;border-color:#8fbce0}
body.light-mode .cis-quick-grid span,body.light-mode .network-health-grid span{color:#6f8395}
body.light-mode .cis-quick-grid strong,body.light-mode .network-health-grid strong{color:#20384d}
body.light-mode .network-health-grid .ok strong{color:#139262}
body.light-mode .network-health-grid .bad strong{color:#dc3d55}
body.light-mode .network-health-grid .warn strong{color:#bb7612}

@media (min-width:1181px){
  .final-kpi-grid{grid-template-columns:repeat(8,minmax(0,1fr))!important;}
}
@media (max-width:1180px){
  .cis-quick-grid{grid-template-columns:repeat(6,minmax(0,1fr));}
}
@media (max-width:700px){
  body.xtx-list-ui-enabled .client-reference-summary,
  body.xtx-list-ui-enabled .ispd-billing-summary{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important;margin-left:0!important;margin-right:0!important;}
  .cis-quick-grid{grid-template-columns:repeat(3,minmax(0,1fr));}
  .network-health-grid{grid-template-columns:1fr;}
}

/* Compact desktop columns: no sideways scrolling is required. */
@media (min-width:901px){
  body.xtx-list-ui-enabled.xtx-client-list table.xtx-ispdigital-table,
  body.xtx-list-ui-enabled.xtx-billing-list table.xtx-ispdigital-table{
    width:100%!important;
    min-width:0!important;
    table-layout:fixed;
  }
  body.xtx-list-ui-enabled .client-reference-table-card .table-responsive,
  body.xtx-list-ui-enabled .ispd-billing-table-card .table-responsive{
    overflow-x:hidden;
  }
  body.xtx-list-ui-enabled .client-reference-table-card .xtx-list-table-wrap,
  body.xtx-list-ui-enabled .ispd-billing-table-card .xtx-list-table-wrap{
    width:100%;
    overflow-x:visible;
  }
  body.xtx-list-ui-enabled .client-reference-data-table th:nth-child(1){width:3%}
  body.xtx-list-ui-enabled .client-reference-data-table th:nth-child(2){width:5%}
  body.xtx-list-ui-enabled .client-reference-data-table th:nth-child(3){width:13%}
  body.xtx-list-ui-enabled .client-reference-data-table th:nth-child(4){width:12%}
  body.xtx-list-ui-enabled .client-reference-data-table th:nth-child(5){width:10%}
  body.xtx-list-ui-enabled .client-reference-data-table th:nth-child(6){width:9%}
  body.xtx-list-ui-enabled .client-reference-data-table th:nth-child(7){width:8%}
  body.xtx-list-ui-enabled .client-reference-data-table th:nth-child(8){width:15%}
  body.xtx-list-ui-enabled .client-reference-data-table th:nth-child(9){width:7%}
  body.xtx-list-ui-enabled .client-reference-data-table th:nth-child(10){width:8%}
  body.xtx-list-ui-enabled .client-reference-data-table th:nth-child(11){width:6%}
  body.xtx-list-ui-enabled .client-reference-data-table th:nth-child(12){width:4%}

  body.xtx-list-ui-enabled .ispd-billing-table th:nth-child(1){width:3%}
  body.xtx-list-ui-enabled .ispd-billing-table th:nth-child(2){width:5%}
  body.xtx-list-ui-enabled .ispd-billing-table th:nth-child(3){width:9%}
  body.xtx-list-ui-enabled .ispd-billing-table th:nth-child(4){width:10%}
  body.xtx-list-ui-enabled .ispd-billing-table th:nth-child(5){width:9%}
  body.xtx-list-ui-enabled .ispd-billing-table th:nth-child(6){width:7%}
  body.xtx-list-ui-enabled .ispd-billing-table th:nth-child(7){width:14%}
  body.xtx-list-ui-enabled .ispd-billing-table th:nth-child(8){width:5%}
  body.xtx-list-ui-enabled .ispd-billing-table th:nth-child(9){width:6%}
  body.xtx-list-ui-enabled .ispd-billing-table th:nth-child(10){width:6%}
  body.xtx-list-ui-enabled .ispd-billing-table th:nth-child(11){width:7%}
  body.xtx-list-ui-enabled .ispd-billing-table th:nth-child(12){width:5%}
  body.xtx-list-ui-enabled .ispd-billing-table th:nth-child(13){width:10%}
  body.xtx-list-ui-enabled .ispd-billing-table th:nth-child(14){width:4%}
}

/* v3.0.0 list hardening */
body.xtx-list-ui-enabled .client-reference-data-table,
body.xtx-list-ui-enabled .ispd-billing-table{box-shadow:none!important;border-radius:0!important;}
body.xtx-list-ui-enabled .client-reference-data-table thead th,
body.xtx-list-ui-enabled .ispd-billing-table thead th{background:var(--xtx-list-navy)!important;color:#fff!important;padding:8px 6px!important;}
body.xtx-list-ui-enabled .client-reference-data-table tbody td,
body.xtx-list-ui-enabled .ispd-billing-table tbody td{padding:7px 6px!important;border-color:#dfe6eb!important;}
body.xtx-list-ui-enabled .client-row-actions{display:inline-flex;align-items:center;gap:2px;}
body.xtx-list-ui-enabled .ispd-more-btn{width:28px!important;height:28px!important;border:0!important;background:transparent!important;color:#111!important;border-radius:4px!important;}
body.xtx-list-ui-enabled .ispd-more-btn:hover{background:#edf3f6!important;}
body.xtx-list-ui-enabled .xtx-action-cell .client-row-actions:empty,
body.xtx-list-ui-enabled .xtx-action-cell .billing-row-actions:empty{display:none!important;}

/* Hybrid list layout: modern shell with ISP Digital table behavior */
body.xtx-list-ui-enabled.xtx-client-list table.xtx-ispdigital-table{
  min-width:1120px;
  table-layout:auto;
}
body.xtx-list-ui-enabled.xtx-billing-list table.xtx-ispdigital-table{
  min-width:1480px;
}
body.xtx-list-ui-enabled .client-reference-table-card .table-responsive,
body.xtx-list-ui-enabled .ispd-billing-table-card .table-responsive{
  position:relative;
  overflow:auto;
  scrollbar-color:#9cb1c0 #eef3f6;
  scrollbar-width:thin;
}
body.xtx-list-ui-enabled .client-reference-data-table thead th,
body.xtx-list-ui-enabled .ispd-billing-table thead th{
  font-size:10px!important;
  line-height:1.12!important;
  padding:8px 4px!important;
}
body.xtx-list-ui-enabled .client-reference-data-table tbody td,
body.xtx-list-ui-enabled .ispd-billing-table tbody td{
  font-size:10.5px!important;
  line-height:1.18!important;
  padding:7px 4px!important;
}

/* The action trigger remains visible while wide billing rows scroll. */
body.xtx-list-ui-enabled .client-reference-data-table th:last-child,
body.xtx-list-ui-enabled .ispd-billing-table th:last-child{
  position:sticky!important;
  right:0;
  z-index:12!important;
  min-width:44px;
  width:44px;
  background:var(--xtx-list-navy)!important;
  box-shadow:-5px 0 8px rgba(15,51,79,.12);
}
body.xtx-list-ui-enabled .client-reference-data-table td:last-child,
body.xtx-list-ui-enabled .ispd-billing-table td:last-child,
body.xtx-list-ui-enabled .client-reference-data-table td.xtx-action-cell,
body.xtx-list-ui-enabled .ispd-billing-table td.xtx-action-cell{
  position:sticky!important;
  right:0;
  z-index:9!important;
  min-width:44px;
  width:44px;
  overflow:visible!important;
  background:#fff!important;
  box-shadow:-5px 0 8px rgba(15,51,79,.08);
}
body.xtx-list-ui-enabled .client-reference-data-table tbody tr:nth-child(even) td:last-child,
body.xtx-list-ui-enabled .ispd-billing-table tbody tr:nth-child(even) td:last-child{
  background:var(--xtx-list-row-alt)!important;
}
body.xtx-list-ui-enabled .client-reference-data-table tbody tr:hover td:last-child,
body.xtx-list-ui-enabled .ispd-billing-table tbody tr:hover td:last-child{
  background:#eaf3f8!important;
}
body.xtx-list-ui-enabled td.xtx-action-cell:has(.xtx-action-menu.is-open){z-index:30!important;}
body.xtx-list-ui-enabled .billing-row-actions{display:inline-flex;align-items:center;gap:2px;}

/* Match the reference switch, while keeping it a read-only live-state indicator. */
body.xtx-list-ui-enabled .client-reference-data-table .ispd-mstatus,
body.xtx-list-ui-enabled .ispd-billing-table .ispd-mstatus{
  display:inline-flex!important;
  align-items:center;
  justify-content:flex-start;
  width:36px;
  height:20px;
  padding:2px;
  border-radius:12px;
  background:#a7b0b8;
  box-sizing:border-box;
}
body.xtx-list-ui-enabled .client-reference-data-table .ispd-mstatus.on,
body.xtx-list-ui-enabled .ispd-billing-table .ispd-mstatus.on{
  justify-content:flex-end;
  background:#2da8f3;
}
body.xtx-list-ui-enabled .client-reference-data-table .ispd-mstatus span,
body.xtx-list-ui-enabled .ispd-billing-table .ispd-mstatus span{
  width:16px;
  height:16px;
  border-radius:50%;
  background:#fff;
  box-shadow:0 1px 3px rgba(0,0,0,.22);
}

/* Horizontal action strip shown from the final three-dot trigger. */
body.xtx-list-ui-enabled .xtx-action-panel{
  right:32px;
  min-height:31px;
  padding:3px 6px;
  border-radius:5px;
  background:#123e5c;
  box-shadow:0 5px 18px rgba(7,35,55,.32);
}
body.xtx-list-ui-enabled .xtx-action-trigger svg{width:18px;height:18px;fill:currentColor;}
body.xtx-list-ui-enabled .xtx-action-item[data-xtx-label]:hover:after,
body.xtx-list-ui-enabled .xtx-action-panel > [data-xtx-label]:hover:after{
  bottom:calc(100% + 8px);
}

@media (max-width: 900px){
  body.xtx-list-ui-enabled .client-reference-data-table td:last-child,
  body.xtx-list-ui-enabled .ispd-billing-table td:last-child,
  body.xtx-list-ui-enabled .client-reference-data-table th:last-child,
  body.xtx-list-ui-enabled .ispd-billing-table th:last-child{position:sticky!important;right:0;}
}

/* v3.0.3.3 final desktop override: fit the complete Client/Billing table in the content pane. */
@media (min-width:901px){
  body.xtx-list-ui-enabled.xtx-client-list table.xtx-ispdigital-table,
  body.xtx-list-ui-enabled.xtx-billing-list table.xtx-ispdigital-table{
    width:100%!important;
    min-width:0!important;
    table-layout:fixed!important;
  }
  body.xtx-list-ui-enabled .client-reference-table-card .table-responsive,
  body.xtx-list-ui-enabled .ispd-billing-table-card .table-responsive{
    overflow-x:hidden!important;
  }
}

/* v3.0.3.4 ISP Digital-style Online Clients Monitoring */
.monitor-sync-button,.monitor-inline-sync{
  border:0!important;border-radius:18px!important;background:#173f5d!important;color:#fff!important;
  padding:8px 14px!important;font-size:10px!important;font-weight:700!important;box-shadow:0 2px 5px rgba(20,55,80,.22);cursor:pointer;
}
.monitor-mode-bar{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin:0 0 9px;}
.monitor-mode-tabs{display:flex;align-items:center;gap:6px;flex-wrap:wrap;}
.monitor-mode-tabs button{display:inline-flex;align-items:center;gap:4px;min-height:28px;padding:5px 9px;border:1px solid #194f76;border-radius:16px;background:#fff;color:#143c5a;font-size:9px;line-height:1;cursor:pointer;}
.monitor-mode-tabs button:hover,.monitor-mode-tabs button.active{background:#173f5d;color:#fff;}
.monitor-mode-tabs button b{display:inline-grid;place-items:center;min-width:16px;height:16px;padding:0 4px;border-radius:9px;background:#e9f2f8;color:#173f5d;font-size:8px;}
.monitor-mode-tabs button.active b{background:#fff;color:#173f5d;}
.reference-monitor-kpis{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:18px!important;margin:0 0 10px!important;}
.reference-monitor-kpis .monitor-kpi{min-height:64px;border:0!important;border-radius:4px!important;padding:9px 13px!important;color:#fff!important;box-shadow:0 3px 7px rgba(25,54,75,.16);cursor:pointer;text-align:left;}
.reference-monitor-kpis .monitor-kpi.cyan{background:#18afd2!important;}.reference-monitor-kpis .monitor-kpi.teal{background:#31b8b3!important;}.reference-monitor-kpis .monitor-kpi.slate{background:#596169!important;}
.reference-monitor-kpis .monitor-kpi>i{width:39px!important;height:39px!important;background:transparent!important;color:#fff!important;font-size:29px!important;}
.reference-monitor-kpis .monitor-kpi span{color:#fff!important;font-size:11px!important;}.reference-monitor-kpis .monitor-kpi strong{color:#fff!important;font-size:20px!important;line-height:1!important;}
.monitor-filter-card{margin:0 0 10px!important;border-radius:3px!important;box-shadow:none!important;}
.reference-monitor-filter{display:grid!important;grid-template-columns:repeat(12,minmax(0,1fr))!important;gap:8px 18px!important;padding:2px 0 12px!important;}
.reference-monitor-filter>div:nth-child(1),.reference-monitor-filter>div:nth-child(2),.reference-monitor-filter>div:nth-child(3){grid-column:span 4;}
.reference-monitor-filter>div:nth-child(4),.reference-monitor-filter>div:nth-child(5),.reference-monitor-filter>div:nth-child(6),.reference-monitor-filter>div:nth-child(7){grid-column:span 3;}
.reference-monitor-filter>div:nth-child(8),.reference-monitor-filter>div:nth-child(9),.reference-monitor-filter>div:nth-child(10){grid-column:span 3;}
.reference-monitor-filter label{font-size:8px!important;margin-bottom:4px!important;color:#3f586b!important;}
.reference-monitor-filter .form-control{height:28px!important;min-height:28px!important;padding:3px 8px!important;border-radius:2px!important;font-size:9px!important;background:#fff;}
.monitor-table-card{margin:0!important;border-radius:3px!important;background:#fff;}
.monitor-table-card .reference-table-toolbar{padding:8px 0 9px!important;font-size:8px!important;}
.monitor-table-card .reference-table-toolbar .mini{width:58px!important;height:28px!important;}
.monitor-toolbar-right label{font-size:8px;font-weight:500;}.monitor-toolbar-right .config-search{width:140px!important;height:28px!important;border-radius:2px!important;}
.monitor-table-wrap{max-height:620px!important;overflow-y:auto!important;}
.monitor-table{width:100%!important;min-width:0!important;table-layout:fixed!important;border-collapse:collapse!important;}
.monitor-table thead th{background:#214b69!important;color:#fff!important;text-align:center!important;padding:7px 2px!important;font-size:7.5px!important;line-height:1.08!important;white-space:normal!important;vertical-align:middle!important;}
.monitor-table tbody td{text-align:center!important;padding:7px 2px!important;font-size:8px!important;line-height:1.14!important;white-space:normal!important;overflow-wrap:anywhere;vertical-align:middle!important;}
.monitor-table tbody tr:nth-child(even){background:#eef3f6;}.monitor-table tbody tr:hover{background:#e6f1f8;}
.monitor-table th:nth-child(1){width:4%}.monitor-table th:nth-child(2){width:8%}.monitor-table th:nth-child(3){width:7%}.monitor-table th:nth-child(4){width:7%}.monitor-table th:nth-child(5){width:6%}.monitor-table th:nth-child(6){width:6%}.monitor-table th:nth-child(7){width:5%}.monitor-table th:nth-child(8){width:6%}.monitor-table th:nth-child(9){width:8%}.monitor-table th:nth-child(10){width:7%}.monitor-table th:nth-child(11){width:5%}.monitor-table th:nth-child(12){width:7%}.monitor-table th:nth-child(13){width:6%}.monitor-table th:nth-child(14){width:6%}.monitor-table th:nth-child(15){width:7%}.monitor-table th:nth-child(16){width:5%}
.monitor-server-cell{line-height:1.1!important;}.monitor-table code{font-size:7.5px;color:#1672d4;background:transparent;padding:0;}
.monitor-status{display:inline-block;border-radius:2px;padding:3px 4px;color:#fff;font-weight:700;font-size:7px;white-space:nowrap;}.monitor-status.connected{background:#2abb44}.monitor-status.offline{background:#77838c}.monitor-status.disabled{background:#e43c50}.monitor-status.missing{background:#d88a1d}
.monitor-profile-mismatch{display:inline-block;border-radius:2px;background:#fff0d7;color:#a65e00;padding:3px 4px;font-weight:700;}
.monitor-actions{display:grid!important;grid-template-columns:repeat(2,20px);justify-content:center!important;gap:2px!important;}.monitor-actions button{width:20px!important;height:20px!important;border:0!important;border-radius:2px!important;padding:0!important;background:transparent!important;color:#19a63b!important;font-size:9px!important;}
body.dark-mode .monitor-mode-tabs button{background:#0d2945;border-color:#35617f;color:#dceaf6}body.dark-mode .monitor-mode-tabs button.active{background:#1d5377;color:#fff}body.dark-mode .monitor-filter-card,body.dark-mode .monitor-table-card{background:#0c2238!important}body.dark-mode .reference-monitor-filter label{color:#a9bfd0!important}body.dark-mode .reference-monitor-filter .form-control,body.dark-mode .monitor-toolbar-right .config-search{background:#0f2b43!important;color:#e8f2f8!important;border-color:#31506a!important}body.dark-mode .monitor-table tbody tr:nth-child(even){background:#132e46}body.dark-mode .monitor-table tbody tr:hover{background:#173850}
@media (max-width:1000px){.reference-monitor-filter{grid-template-columns:repeat(2,minmax(0,1fr))!important}.reference-monitor-filter>div{grid-column:auto!important}.monitor-table{min-width:1180px!important}.monitor-table-wrap{overflow:auto!important}}
@media (max-width:650px){.monitor-mode-bar{flex-direction:column}.monitor-mode-tabs{width:100%}.monitor-mode-tabs button{width:100%;justify-content:flex-start}.monitor-inline-sync{width:100%}.reference-monitor-kpis{grid-template-columns:1fr!important;gap:7px!important}.reference-monitor-filter{grid-template-columns:1fr!important}}

/* v3.0.3.5 high-contrast operator notifications */
.toast-container{right:18px!important;bottom:18px!important;gap:8px!important;z-index:20000!important;pointer-events:none;}
.toast-container .toast{position:relative;display:grid!important;grid-template-columns:28px minmax(0,1fr) 22px;align-items:center;gap:9px;min-width:320px!important;max-width:min(430px,calc(100vw - 36px));padding:11px 10px 11px 12px!important;border:1px solid rgba(255,255,255,.28)!important;border-left-width:5px!important;border-radius:7px!important;color:#fff!important;background:#173f5d!important;box-shadow:0 10px 30px rgba(0,0,0,.38)!important;backdrop-filter:none!important;font-size:11px!important;line-height:1.35!important;pointer-events:auto;}
.toast-container .toast>i{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:rgba(255,255,255,.16);color:#fff!important;font-size:13px;}
.toast-copy{display:block;min-width:0;color:#fff!important;}.toast-copy strong{display:block;color:#fff!important;font-size:11px;line-height:1.15;margin-bottom:3px;}.toast-copy>span{display:block;color:#f3f8fc!important;font-size:10px;overflow-wrap:anywhere;}
.toast-close{display:grid;place-items:center;width:22px;height:22px;padding:0;border:0;border-radius:4px;background:rgba(255,255,255,.10);color:#fff;cursor:pointer;}.toast-close:hover{background:rgba(255,255,255,.24)}
.toast-container .toast-success{background:#075f46!important;border-left-color:#34d399!important}.toast-container .toast-error{background:#7f1d2d!important;border-left-color:#fb7185!important}.toast-container .toast-info{background:#164e72!important;border-left-color:#38bdf8!important}.toast-container .toast-warning{background:#854d0e!important;border-left-color:#fbbf24!important}
@keyframes toastOut{to{opacity:0;transform:translateY(12px)}}
@media(max-width:620px){.toast-container{left:10px!important;right:10px!important;bottom:12px!important}.toast-container .toast{width:100%!important;min-width:0!important;max-width:none!important}}


/* ===== v3.0.5 readability, receipt and responsive billing final layer ===== */
:root{--xtx-v305-text:#20384b;--xtx-v305-muted:#607487;--xtx-v305-border:#d8e2ea;--xtx-v305-soft:#f6f9fb;}
body{font-size:14px;line-height:1.5;}
.nav-link{font-size:13.5px!important;line-height:1.35!important;font-weight:600!important;}
.nav-link-sub{font-size:13px!important;line-height:1.35!important;}
.form-control{font-size:14px!important;line-height:1.35!important;}
.btn{font-size:13px!important;line-height:1.25!important;}
.reference-page-head h2{font-size:22px!important;line-height:1.25!important;}
.reference-page-head p,.reference-eyebrow{font-size:12.5px!important;line-height:1.45!important;}

/* Client + billing lists: readability takes priority over squeezing every field into one desktop viewport. */
body.xtx-list-ui-enabled .client-reference-data-table,
body.xtx-list-ui-enabled .ispd-billing-table{font-size:12.5px!important;table-layout:auto!important;}
body.xtx-list-ui-enabled .client-reference-data-table thead th,
body.xtx-list-ui-enabled .ispd-billing-table thead th{font-size:12px!important;line-height:1.3!important;padding:9px 7px!important;white-space:normal!important;}
body.xtx-list-ui-enabled .client-reference-data-table tbody td,
body.xtx-list-ui-enabled .ispd-billing-table tbody td{font-size:12.5px!important;line-height:1.35!important;padding:8px 7px!important;white-space:nowrap!important;}
body.xtx-list-ui-enabled .client-reference-data-table code,
body.xtx-list-ui-enabled .ispd-billing-table code{font-size:12px!important;}
body.xtx-list-ui-enabled .ispd-billing-table-card .table-responsive,
body.xtx-list-ui-enabled .client-reference-table-card .table-responsive{overflow-x:auto!important;scrollbar-gutter:stable;}
@media (min-width:901px){
 body.xtx-list-ui-enabled.xtx-client-list table.xtx-ispdigital-table{width:max-content!important;min-width:1700px!important;table-layout:auto!important;}
 body.xtx-list-ui-enabled.xtx-billing-list table.xtx-ispdigital-table{width:max-content!important;min-width:1550px!important;table-layout:auto!important;}
 body.xtx-list-ui-enabled .client-reference-table-card .table-responsive,
 body.xtx-list-ui-enabled .ispd-billing-table-card .table-responsive{overflow-x:auto!important;}
}
.ispd-billing-summary .ispd-bill-card span,.billing-reference-summary .bill-ref-card span{font-size:12px!important;line-height:1.25!important;font-weight:700!important;}
.ispd-billing-summary .ispd-bill-card small,.billing-reference-summary .bill-ref-card small{font-size:11.5px!important;line-height:1.35!important;}
.ispd-billing-summary .ispd-bill-card strong,.billing-reference-summary .bill-ref-card strong{line-height:1.15!important;}
.ispd-billing-filter-panel label,.daily-collection-filters label{font-size:12px!important;line-height:1.3!important;font-weight:700!important;}
.ispd-billing-filter-panel .form-control,.daily-collection-filters .form-control{font-size:14px!important;min-height:38px!important;}
.daily-action-row{gap:10px!important;flex-wrap:wrap!important;}
.daily-action-row>div{display:flex;gap:8px;flex-wrap:wrap;}
.daily-action-row .btn{min-height:40px!important;padding:9px 12px!important;}

/* Payments / Receipts / Daily collection */
#billing-payment-pane .reference-table-card{overflow:hidden;}
#billing-payment-pane .reference-table-card .table-responsive{overflow-x:auto!important;}
#billing-payment-pane .reference-data-table{min-width:1720px!important;width:max-content!important;table-layout:auto!important;}
#billing-payment-pane .reference-data-table th{font-size:12px!important;line-height:1.3!important;padding:9px 8px!important;white-space:nowrap!important;}
#billing-payment-pane .reference-data-table td{font-size:13px!important;line-height:1.4!important;padding:9px 8px!important;white-space:nowrap!important;vertical-align:middle!important;}
#billing-payment-pane .reference-data-table .payment-remarks{white-space:normal!important;min-width:180px;max-width:260px;}
#billing-payment-pane .payment-username{font-weight:700;color:#155c91;}
#billing-payment-pane .payment-amount-positive{color:#08794b;}
#billing-payment-pane .payment-method-badge{display:inline-flex;align-items:center;min-height:26px;padding:4px 8px;border-radius:12px;background:#e9f2f8;color:#214866;font-size:11px;font-weight:800;letter-spacing:.02em;}
#billing-payment-pane .payment-receipt-cell .btn{min-height:34px!important;font-size:12px!important;white-space:nowrap!important;}
#billing-payment-pane .reference-table-toolbar{font-size:12px!important;line-height:1.4!important;}
#billing-payment-pane .reference-table-toolbar .form-control{min-height:36px!important;font-size:13px!important;}
.collector-mini-summary>div{font-size:12px!important;line-height:1.4!important;}
.collector-mini-summary span{font-size:12px!important;}.collector-mini-summary strong{font-size:14px!important;}.collector-mini-summary small{font-size:11.5px!important;line-height:1.45!important;}
.collector-summary-empty{grid-column:1/-1;padding:11px 13px;border:1px dashed var(--xtx-v305-border);border-radius:8px;color:var(--xtx-v305-muted);background:var(--xtx-v305-soft);}
.billing-table-state{min-height:125px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;padding:24px;text-align:center;color:var(--xtx-v305-muted);font-size:13px;white-space:normal!important;}
.billing-table-state i{font-size:21px;color:#2c6f9f;}.billing-table-state strong{font-size:14px;color:var(--xtx-v305-text);}.billing-table-state.error i,.billing-table-state.error strong{color:#b42338;}.billing-table-state span{max-width:520px;}

/* Bill Receive modal */
.bill-receive-modal label,.bill-receive-modal .form-group label{font-size:12.5px!important;line-height:1.35!important;font-weight:700!important;}
.bill-receive-modal .form-control{font-size:14px!important;min-height:40px!important;}
.bill-receive-modal .bill-receive-client,.bill-receive-modal .bill-receive-amounts,.bill-receive-modal .bill-receive-due-months{font-size:13px!important;line-height:1.5!important;}
.bill-receive-actions .btn{min-height:42px!important;font-size:13px!important;}

/* Professional invoice / receipt: force readable theme-safe document colors. */
.receipt-modal-v305{width:min(780px,calc(100vw - 28px))!important;}
.receipt-modal-v305 .modal-body{padding:20px!important;}
.receipt-v22,.receipt-v305{color:var(--xtx-v305-text)!important;background:#fff!important;line-height:1.55!important;font-size:14px!important;border-radius:10px;}
.receipt-v305{padding:6px 2px;}
.receipt-brand{text-align:center;padding:6px 10px 14px;border-bottom:2px solid #214866;}
.receipt-brand h2{margin:0 0 4px!important;font-size:22px!important;line-height:1.2!important;color:#173f5d!important;letter-spacing:.01em;}
.receipt-brand p{margin:0;color:#5c7183!important;font-size:12.5px!important;}
.receipt-doc-title{display:inline-block;margin-top:12px;padding:6px 14px;border-radius:18px;background:#214866;color:#fff!important;font-size:13px;font-weight:800;letter-spacing:.06em;}
.receipt-doc-subtitle{margin-top:6px;font-size:12px;color:#5c7183!important;font-weight:600;}
.receipt-section-title{margin:16px 0 8px;padding-bottom:5px;border-bottom:1px solid #d8e2ea;color:#173f5d!important;font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.05em;}
.receipt-info-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 12px;}
.receipt-info-cell{min-width:0;border:1px solid #dbe4eb;border-radius:7px;background:#f7fafc;padding:8px 10px;}
.receipt-info-cell.wide{grid-column:1/-1;}
.receipt-info-cell span{display:block;margin-bottom:2px;color:#667b8d!important;font-size:11px!important;font-weight:700;}
.receipt-info-cell strong{display:block;color:#20384b!important;font-size:14px!important;line-height:1.35!important;overflow-wrap:anywhere;}
.receipt-client-info .receipt-info-cell strong{font-size:14.5px!important;}
.receipt-amount-wrap{overflow-x:auto;border:1px solid #dbe4eb;border-radius:8px;}
.receipt-amount-table{width:100%;border-collapse:collapse;min-width:0!important;font-size:14px!important;}
.receipt-amount-table td{padding:9px 11px;border-bottom:1px solid #e3e9ee;color:#20384b!important;}
.receipt-amount-table tr:last-child td{border-bottom:0;}.receipt-amount-table td:last-child{text-align:right;font-weight:800;white-space:nowrap;}
.receipt-amount-table tr.paid td:last-child{color:#08794b!important;}.receipt-amount-table tr.due td:last-child{color:#b42338!important;}.receipt-amount-table tr.discount td:last-child{color:#805700!important;}
.receipt-due-months{margin-top:10px;border:1px solid #dbe4eb;border-left:4px solid #2c6f9f;border-radius:7px;background:#f7fafc;padding:9px 11px;}
.receipt-due-months span{display:block;color:#667b8d!important;font-size:11px!important;font-weight:700;margin-bottom:4px;}.receipt-due-months strong{display:block;color:#20384b!important;font-size:13.5px!important;line-height:1.5!important;}
.receipt-footer-note{text-align:center;margin-top:18px;padding-top:10px;border-top:1px dashed #b9c7d2;color:#5c7183!important;font-size:11.5px!important;font-weight:600;}
body.dark-mode .receipt-modal-v305 .modal-body{background:#0d2235!important;}body.dark-mode .receipt-v305{box-shadow:0 0 0 1px rgba(200,220,235,.18);}

/* Monitoring was previously shrunk to 7.5–8px. Keep all columns but make the grid scrollable and readable. */
.monitor-sync-button,.monitor-inline-sync{font-size:12px!important;min-height:36px!important;}
.monitor-mode-tabs button{font-size:12px!important;min-height:36px!important;line-height:1.25!important;}.monitor-mode-tabs button b{font-size:10px!important;}
.reference-monitor-kpis .monitor-kpi span{font-size:12px!important;}.reference-monitor-kpis .monitor-kpi strong{font-size:21px!important;}
.reference-monitor-filter label{font-size:12px!important;line-height:1.3!important;}.reference-monitor-filter .form-control{font-size:13px!important;min-height:36px!important;height:36px!important;}
.monitor-table-card .reference-table-toolbar,.monitor-toolbar-right label{font-size:12px!important;}.monitor-toolbar-right .config-search{height:36px!important;font-size:13px!important;}
.monitor-table-wrap{overflow:auto!important;}.monitor-table{width:max-content!important;min-width:1900px!important;table-layout:auto!important;}
.monitor-table thead th{font-size:11.5px!important;line-height:1.25!important;padding:8px 6px!important;white-space:nowrap!important;}.monitor-table tbody td{font-size:12px!important;line-height:1.3!important;padding:8px 6px!important;white-space:nowrap!important;overflow-wrap:normal!important;}.monitor-table code{font-size:11.5px!important;}.monitor-status{font-size:10.5px!important;padding:4px 6px!important;}.monitor-actions{grid-template-columns:repeat(2,28px)!important;gap:4px!important;}.monitor-actions button{width:28px!important;height:28px!important;font-size:11px!important;}

body.dark-mode{--xtx-v305-text:#e9f3fb;--xtx-v305-muted:#b4c5d3;--xtx-v305-border:#35536a;--xtx-v305-soft:#102b42;}
body.dark-mode #billing-payment-pane .payment-username{color:#81c8ff;}body.dark-mode #billing-payment-pane .payment-amount-positive{color:#58d8a5;}body.dark-mode #billing-payment-pane .payment-method-badge{background:#173c58;color:#dcecf7;}
body.dark-mode .collector-summary-empty{background:#102b42;color:#b8c9d7;border-color:#35536a;}body.dark-mode .billing-table-state strong{color:#edf6fc;}

@media (max-width:900px){
 .billing-reference-summary.daily{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;}
 .daily-collection-filters{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
 .daily-collection-filters>div{grid-column:auto!important;}
 .daily-collection-filters .filter-apply-cell{grid-column:1/-1!important;}.daily-collection-filters .filter-apply-cell .btn{width:100%;min-height:44px!important;}
}
@media (max-width:650px){
 body{font-size:14px!important;}
 .nav-link,.nav-link-sub{font-size:14px!important;}
 .form-control{font-size:16px!important;min-height:44px!important;}
 .btn{font-size:14px!important;min-height:44px!important;}
 .billing-reference-summary.daily{grid-template-columns:1fr!important;}
 .daily-action-row,.daily-action-row>div{display:grid!important;grid-template-columns:1fr!important;width:100%;}.daily-action-row .btn{width:100%!important;min-height:46px!important;}
 .daily-collection-filters{grid-template-columns:1fr!important;gap:10px!important;}
 #billing-payment-pane .reference-table-toolbar{display:grid!important;grid-template-columns:1fr!important;gap:8px!important;align-items:stretch!important;}
 #billing-payment-pane .reference-table-toolbar label{font-size:13px!important;}#billing-payment-pane .reference-table-toolbar .config-search{width:100%!important;}
 #billing-payment-pane .reference-table-card .table-responsive{overflow:visible!important;}
 #billing-payment-pane .reference-data-table{display:block!important;width:100%!important;min-width:0!important;}
 #billing-payment-pane .reference-data-table thead{display:none!important;}
 #billing-payment-pane .reference-data-table tbody{display:block!important;}
 #billing-payment-pane .reference-data-table tr.payment-data-row{display:block!important;margin:0 0 12px!important;border:1px solid #d8e2ea!important;border-radius:10px!important;background:#fff!important;overflow:hidden;box-shadow:0 2px 8px rgba(35,60,80,.08);}
 #billing-payment-pane .reference-data-table tr.payment-data-row td{display:grid!important;grid-template-columns:118px minmax(0,1fr)!important;gap:10px!important;width:100%!important;min-height:40px!important;padding:8px 10px!important;border:0!important;border-bottom:1px solid #e7edf2!important;white-space:normal!important;text-align:left!important;font-size:14px!important;overflow-wrap:anywhere;}
 #billing-payment-pane .reference-data-table tr.payment-data-row td:last-child{border-bottom:0!important;}
 #billing-payment-pane .reference-data-table tr.payment-data-row td::before{content:attr(data-label);font-size:12px;font-weight:800;color:#607487;text-transform:none;align-self:start;}
 #billing-payment-pane .reference-data-table tr.payment-data-row .payment-receipt-cell .btn{width:100%!important;min-height:42px!important;font-size:13px!important;}
 #billing-payment-pane .payment-state-row{display:block!important;}#billing-payment-pane .payment-state-row td{display:block!important;width:100%!important;}
 body.dark-mode #billing-payment-pane .reference-data-table tr.payment-data-row{background:#102b42!important;border-color:#35536a!important;}body.dark-mode #billing-payment-pane .reference-data-table tr.payment-data-row td{border-color:#29475e!important;}body.dark-mode #billing-payment-pane .reference-data-table tr.payment-data-row td::before{color:#aec1d0!important;}
 .receipt-modal-v305 .modal-body{padding:12px!important;}.receipt-brand h2{font-size:19px!important;}.receipt-info-grid{grid-template-columns:1fr!important;}.receipt-info-cell.wide{grid-column:auto;}.receipt-info-cell strong{font-size:14px!important;}.receipt-amount-table{font-size:14px!important;}
 .reference-monitor-kpis{grid-template-columns:1fr!important;}.reference-monitor-filter{grid-template-columns:1fr!important;}
}
@media print{
 #receipt-print-area{font-family:Arial,sans-serif!important;padding:8mm!important;}
 .receipt-v305{font-size:12pt!important;color:#000!important;background:#fff!important;}
 .receipt-brand h2{font-size:17pt!important;color:#000!important;}.receipt-brand p,.receipt-doc-subtitle,.receipt-info-cell span,.receipt-footer-note,.receipt-due-months span{color:#333!important;}
 .receipt-doc-title{background:#000!important;color:#fff!important;-webkit-print-color-adjust:exact;print-color-adjust:exact;}
 .receipt-info-cell,.receipt-due-months{background:#fff!important;border-color:#aaa!important;}.receipt-info-cell strong,.receipt-section-title,.receipt-amount-table td,.receipt-due-months strong{color:#000!important;}
}


/* v3.0.5 Online Client Monitoring readability + compact-column hotfix */
.ispd-monitor-page{font-weight:500;}
.ispd-monitor-page .monitor-mode-tabs button,.ispd-monitor-page .monitor-inline-sync{font-size:13px!important;font-weight:700!important;}
.ispd-monitor-page .reference-monitor-kpis .monitor-kpi span{font-size:13px!important;font-weight:700!important;}
.ispd-monitor-page .reference-monitor-kpis .monitor-kpi strong{font-size:22px!important;font-weight:800!important;}
.ispd-monitor-page .reference-monitor-filter{grid-template-columns:repeat(4,minmax(160px,1fr))!important;gap:10px 14px!important;}
.ispd-monitor-page .reference-monitor-filter>div{grid-column:auto!important;}
.ispd-monitor-page .reference-monitor-filter label{font-size:13px!important;font-weight:800!important;letter-spacing:.01em;}
.ispd-monitor-page .reference-monitor-filter .form-control{font-size:14px!important;font-weight:600!important;min-height:38px!important;height:38px!important;}
.ispd-monitor-page .monitor-table-card .reference-table-toolbar,.ispd-monitor-page .monitor-toolbar-right label{font-size:13px!important;font-weight:700!important;}
.ispd-monitor-page .monitor-toolbar-right .config-search{font-size:14px!important;font-weight:600!important;height:38px!important;}
.ispd-monitor-page .monitor-table{min-width:1580px!important;}
.ispd-monitor-page .monitor-table thead th{font-size:12.5px!important;font-weight:800!important;line-height:1.3!important;padding:9px 7px!important;}
.ispd-monitor-page .monitor-table tbody td{font-size:13.5px!important;font-weight:600!important;line-height:1.35!important;padding:9px 7px!important;}
.ispd-monitor-page .monitor-table tbody td b,.ispd-monitor-page .monitor-table .link-button{font-weight:800!important;}
.ispd-monitor-page .monitor-table code{font-size:12.5px!important;font-weight:700!important;}
.ispd-monitor-page .monitor-status{font-size:11.5px!important;font-weight:800!important;padding:5px 7px!important;}
.ispd-monitor-page .monitor-live-rate,.ispd-monitor-page .monitor-session-usage{font-size:12.5px!important;font-weight:700!important;line-height:1.3!important;}
.ispd-monitor-page .monitor-session-usage small,.ispd-monitor-page .monitor-sampling small{font-size:10.5px!important;font-weight:700!important;}
.ispd-monitor-page .monitor-sampling b{color:#7a5a08!important;}
.ispd-monitor-page .monitor-actions button{width:30px!important;height:30px!important;font-size:12px!important;}
@media(max-width:1000px){.ispd-monitor-page .reference-monitor-filter{grid-template-columns:repeat(2,minmax(0,1fr))!important}.ispd-monitor-page .monitor-table{min-width:1580px!important}}
@media(max-width:650px){.ispd-monitor-page .reference-monitor-filter{grid-template-columns:1fr!important}.ispd-monitor-page .monitor-table tbody td{font-size:13px!important}}


/* R6.6.1 last-load overrides */
.client-reference-mode .client-reference-data-table{min-width:1040px!important;table-layout:fixed!important}
.client-reference-mode .client-reference-data-table tbody tr,.client-reference-mode .client-reference-data-table tbody td{height:48px!important;min-height:48px!important;max-height:48px!important}
.client-reference-mode .client-reference-data-table tbody td{padding:5px 6px!important;white-space:nowrap!important;vertical-align:middle!important}
.reference-billing-page .billing-compact-main-table{min-width:1120px!important;table-layout:fixed!important;width:100%!important}
.reference-billing-page .billing-compact-main-table tbody tr,.reference-billing-page .billing-compact-main-table tbody td{height:47px!important;min-height:47px!important;max-height:55px!important}
.reference-billing-page .billing-compact-main-table tbody td{padding:5px!important;white-space:nowrap!important}
#billing-payment-pane .payment-reference-table{min-width:1180px!important;width:max-content!important;table-layout:auto!important}
#billing-payment-pane .payment-reference-table th{font-size:9.5px!important;white-space:nowrap!important}
#billing-payment-pane .payment-reference-table td{font-size:10px!important;white-space:nowrap!important;padding:6px!important}
.billing-col-hidden{display:none!important}
