/* ============================================================
   Teloz dashboard theme
   ============================================================
   Scoped entirely under body[data-tenant="teloz"] (set on <body> in base.html). Every rule
   here is a pure visual reskin of markup that already exists in the shared
   base.html/_table_section.html templates -- no new markup, no backend/
   data/route is touched, and every value shown still comes straight from
   the same Django context every other tenant renders.

   Visual reference: the "ComplianceOS Dashboard" HTML prototype supplied
   for this restyle (cream/white surface, orange + blue two-tone accent,
   rounded 12-16px cards, pill nav/badges, Geist type). Teloz's own brand
   colors (tenants.py: primary_color #0184bc blue, secondary_color #fd7d06
   orange) map directly onto that prototype's orange/blue pairing, so
   those are the two accents used below -- nothing invented that isn't
   already part of Teloz's brand or the reference layout. */

body[data-tenant="teloz"] {
  --tl-blue: #0184bc;
  --tl-blue-dark: #016d97;
  --tl-blue-light: #e5f6fb;
  --tl-orange: #fd7d06;
  --tl-orange-dark: #de6c0e;
  --tl-orange-light: #fff1e0;
  --tl-ink: #23201b;
  --tl-border-soft: #f0e2cf;
  --tl-content-bg: linear-gradient(90deg, color-mix(in srgb, var(--tl-orange) 7%, #ffffff) 0%, color-mix(in srgb, var(--tl-orange) 28%, #ffffff) 100%);
  --tl-shadow-sm: 0 1px 2px rgba(35, 24, 6, 0.05);
  --tl-shadow-md: 0 4px 14px rgba(35, 24, 6, 0.07);
  --tl-shadow-lg: 0 16px 36px rgba(35, 24, 6, 0.12);
  --tl-ease: cubic-bezier(0.4, 0, 0.2, 1);

  font-family: 'Geist Fallback', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--tl-content-bg);
}

/* One flat fill for the entire right-side content area (topbar included,
   see below) so there's no shade break between header band, cards/table,
   and the bottom of the page -- .main-area has no fixed height of its own
   so this naturally continues for the full scrollable height of any page. */
body[data-tenant="teloz"] .main-area { background: var(--tl-content-bg); }

/* ---- Sidebar shell: Teloz brand-blue panel ----
   Re-points the shared --sidebar-* tokens (style.css) at white-on-blue
   values so every sidebar element that reads them (links, labels,
   dividers, job indicator, welcome text) follows automatically. */
body[data-tenant="teloz"] .sidebar {
  --sidebar-bg: var(--tl-blue);
  --sidebar-text: rgba(255, 255, 255, 0.82);
  --sidebar-text-strong: #ffffff;
  --sidebar-text-muted: rgba(255, 255, 255, 0.62);
  --sidebar-hover-bg: rgba(255, 255, 255, 0.12);
  --sidebar-border: rgba(255, 255, 255, 0.16);
  background: linear-gradient(180deg, var(--tl-blue) 0%, var(--tl-blue-dark) 100%);
  border-right: none;
  box-shadow: 2px 0 14px rgba(1, 109, 151, 0.18);
}
/* The Teloz logo is a blue wordmark (media/brands/56.png) -- it would
   vanish on the blue panel, so it sits on its own white rounded tile. */
body[data-tenant="teloz"] .sidebar__brand { padding-bottom: var(--sp-3); border-bottom: none; }
body[data-tenant="teloz"] .sidebar__brand-logo-wrap {
  background: #ffffff;
  border-radius: 12px;
  padding: 8px 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}
body[data-tenant="teloz"] .sidebar__logo { max-height: 32px; }
body[data-tenant="teloz"] .sidebar__mark {
  background: linear-gradient(135deg, var(--tl-orange), #ffb17a);
  box-shadow: 0 4px 10px rgba(253, 125, 6, 0.28);
}

/* ---- Welcome / profile card: frosted-white tile on the blue ---- */
body[data-tenant="teloz"] .sidebar__welcome {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  box-shadow: none;
}
body[data-tenant="teloz"] .sidebar__welcome-avatar {
  background: linear-gradient(135deg, var(--tl-orange), #ffb17a);
  border-radius: 11px;
}
body[data-tenant="teloz"] .sidebar__welcome-avatar::after { border-color: var(--tl-blue); }
body[data-tenant="teloz"] .sidebar__welcome-role {
  font-size: 10.5px;
  font-weight: 600;
  color: #bfe9f8;
}

/* ---- Nav links: rounded items, orange gradient on the active tab ---- */
body[data-tenant="teloz"] .sidebar__link {
  border-radius: 11px;
  transition: background-color 160ms var(--tl-ease), color 160ms var(--tl-ease);
}
body[data-tenant="teloz"] .sidebar__link:hover { background: var(--sidebar-hover-bg); color: #ffffff; }
body[data-tenant="teloz"] .sidebar__link--active,
body[data-tenant="teloz"] .sidebar__link--active:hover {
  background: linear-gradient(135deg, var(--tl-orange), #ff9451);
  color: #ffffff;
  box-shadow: 0 6px 14px rgba(160, 70, 0, 0.30);
}
body[data-tenant="teloz"] .sidebar__link--active .sidebar__icon,
body[data-tenant="teloz"] .sidebar__link--active:hover .sidebar__icon { opacity: 1; }

body[data-tenant="teloz"] .sidebar__section-label {
  padding-top: 16px;
  margin-top: 6px;
  border-top: 1px solid var(--sidebar-border);
}
body[data-tenant="teloz"] .sidebar__section-label:first-child { border-top: none; margin-top: 0; }

/* ---- Sidebar job indicator (kept legible against the blue sidebar) ---- */
body[data-tenant="teloz"] .sidebar__job a { color: #ffffff; }
body[data-tenant="teloz"] .sidebar__job-dot { background: var(--tl-orange); }

/* ---- Header row: .topbar (bell/sign-out) and .page-head (title/
   subtitle) are separate sibling elements in the shared markup, not one
   combined header -- put on one visual row (title+subtitle stacked on
   the left, directly in front of the bell/sign-out on the right) the
   same way: .main-area becomes a
   two-column grid, .page-head pinned to row1/col1, .topbar pinned to
   row1/col2, and every other direct child of .main-area (.messages when
   present, <main class="page"> which carries the stat cards/table, and
   .customer-profile on Customer Detail) forced to span both columns so
   it auto-flows into row 2. No title text duplicated anywhere -- FUSF,
   Block ANI, Bad Media and SIP Shield normally render a "sec-hero" card
   heading instead of .page-head, so those four templates were given the
   same small opt-in (render .page-head there too,
   suppress the sec-hero title) so their heading merges into this row
   like every other page's. */
body[data-tenant="teloz"] .main-area {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  align-content: start;
  column-gap: var(--sp-4);
}
body[data-tenant="teloz"] .page-head {
  grid-column: 1;
  grid-row: 1;
  padding: var(--sp-4) 0 var(--sp-3) var(--sp-5);
  background: transparent;
  border-bottom: none;
}
body[data-tenant="teloz"] .topbar {
  grid-column: 2;
  grid-row: 1;
  position: static;
  height: auto;
  padding: var(--sp-4) var(--sp-5) 0 0;
  background: transparent;
  border-bottom: none;
}
body[data-tenant="teloz"] .messages,
body[data-tenant="teloz"] .main-area > .page,
body[data-tenant="teloz"] .main-area > .customer-profile {
  grid-column: 1 / -1;
  width: 100%;
  justify-self: stretch;
}
body[data-tenant="teloz"] .page-head h1 { font-weight: 800; letter-spacing: -0.02em; color: var(--tl-ink); }
body[data-tenant="teloz"] .page-head p { color: #8a7c68; }

/* Customer Detail's own header (.cp-page-head, carries the shared
   .page-head class but is nested inside .customer-profile, below the
   topbar row rather than beside it) inherited that shared rule's
   padding-right:0 above, so its status badges + "Download PDF" line sat
   flush against the raw edge instead of lining up under the Sign Out
   button, which keeps its own var(--sp-5) right inset. Restoring just
   that right padding here re-aligns the two. */
body[data-tenant="teloz"] .cp-page-head { padding-right: var(--sp-5); }

/* style.css's .cp-page-head wraps onto a second row at common laptop
   widths (well above the site's own 720px mobile breakpoint) once the
   title + status strip no longer fit side by side -- once wrapped, the
   status strip becomes the only item on its own line, and
   justify-content:space-between has nothing to space it against, so it
   lands flush left under the title instead of staying right-aligned
   under Sign Out. Forcing nowrap keeps them on one row so the strip
   stays pinned to the right; .cp-page-head__main already has
   min-width:0 so the title/subtitle wrap their own text and shrink
   instead of overflowing. Reverts to the stacked column layout below
   720px via style.css's own media query, unaffected here. */
@media (min-width: 721px) {
  body[data-tenant="teloz"] .cp-page-head { flex-wrap: nowrap; }
}

/* ---- Sign out: solid orange pill, matches the prototype's primary CTA ---- */
body[data-tenant="teloz"] .topbar__signout {
  border-radius: 999px;
  background: linear-gradient(135deg, var(--tl-orange), var(--tl-orange-dark));
  border-color: var(--tl-orange-dark);
  color: #fff;
  box-shadow: 0 6px 14px rgba(253, 125, 6, 0.24);
  transition: box-shadow 160ms var(--tl-ease), transform 120ms var(--tl-ease);
}
body[data-tenant="teloz"] .topbar__signout:hover {
  box-shadow: 0 8px 18px rgba(253, 125, 6, 0.34);
  transform: translateY(-1px);
  color: #fff;
}

/* ---- Notification bell ---- */
body[data-tenant="teloz"] .notif-bell__button { border-radius: 11px; color: var(--tl-ink); }
body[data-tenant="teloz"] .notif-bell__button:hover,
body[data-tenant="teloz"] .notif-bell__button[aria-expanded="true"] {
  background: var(--tl-blue-light);
  border-color: var(--tl-blue);
  color: var(--tl-blue-dark);
}
body[data-tenant="teloz"] .notif-bell__badge { background: var(--tl-orange); }
body[data-tenant="teloz"] .notif-bell__panel { border-radius: 14px; box-shadow: var(--tl-shadow-lg); }
body[data-tenant="teloz"] .notif-bell__item--unread { background: var(--tl-blue-light); }

/* ---- Message banners: rounder corners, consistent with the rest ---- */
body[data-tenant="teloz"] .message-banner { border-radius: 12px; }

/* ---- Stat cards: rounded, left accent bar, tinted lift on hover -- pure
   restyle of the same six buttons _table_section.html already renders
   from the real dashboard context, no new metric invented. ---- */
body[data-tenant="teloz"] .stat-card {
  border-radius: 12px;
  border-color: var(--tl-border-soft);
  border-left-width: 3px;
  box-shadow: none;
  padding: 14px 15px;
  min-height: 96px;
  transition: border-color 160ms var(--tl-ease), background-color 160ms var(--tl-ease), transform 160ms var(--tl-ease), box-shadow 160ms var(--tl-ease);
}
body[data-tenant="teloz"] .stat-card::before { content: none; }

/* Only the two Teloz brand colors anywhere on these cards -- border,
   icon chip, value text, hover tint -- alternating blue/orange in the
   same left-to-right order _table_section.html renders them
   (blue/green/orange/red/slate/purple classes are just each card's
   existing hook; their color meaning is overridden here, not their
   position or data). Matches the reference prototype's own alternating
   --accent:var(--blue)/var(--orange) pattern across its six cards. */
body[data-tenant="teloz"] .stat-card,
body[data-tenant="teloz"] .stat-card--orange,
body[data-tenant="teloz"] .stat-card--slate { border-left-color: var(--tl-blue); }
body[data-tenant="teloz"] .stat-card--green,
body[data-tenant="teloz"] .stat-card--red,
body[data-tenant="teloz"] .stat-card--purple { border-left-color: var(--tl-orange); }

body[data-tenant="teloz"] .stat-card__icon {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  margin-bottom: 6px;
  background: var(--tl-blue-light);
  color: var(--tl-blue);
}
body[data-tenant="teloz"] .stat-card--green .stat-card__icon,
body[data-tenant="teloz"] .stat-card--red .stat-card__icon,
body[data-tenant="teloz"] .stat-card--purple .stat-card__icon {
  background: var(--tl-orange-light);
  color: var(--tl-orange-dark);
}

body[data-tenant="teloz"] .stat-card__value { font-size: 26px; color: var(--tl-blue); }
body[data-tenant="teloz"] .stat-card--green .stat-card__value,
body[data-tenant="teloz"] .stat-card--red .stat-card__value,
body[data-tenant="teloz"] .stat-card--purple .stat-card__value { color: var(--tl-orange-dark); }
body[data-tenant="teloz"] .stat-card__label { font-weight: 600; }

body[data-tenant="teloz"] .stat-card:not(.stat-card--static):hover {
  transform: translateY(-3px);
  box-shadow: var(--tl-shadow-md);
  background: var(--tl-blue-light);
}
body[data-tenant="teloz"] .stat-card--green:not(.stat-card--static):hover,
body[data-tenant="teloz"] .stat-card--red:not(.stat-card--static):hover,
body[data-tenant="teloz"] .stat-card--purple:not(.stat-card--static):hover { background: var(--tl-orange-light); }

@media (min-width: 1181px) {
  body[data-tenant="teloz"] .stats { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

/* ---- Search field, filters, export ---- */
body[data-tenant="teloz"] .search-input {
  border-radius: 12px;
  border-color: var(--tl-border-soft);
  background: #ffffff;
}
body[data-tenant="teloz"] .search-input:focus {
  border-color: var(--tl-blue);
  box-shadow: 0 0 0 3px var(--tl-blue-light);
}
body[data-tenant="teloz"] #filter-toggle,
body[data-tenant="teloz"] .btn--outline:not(.topbar__signout) {
  border-radius: 12px;
  border-color: var(--tl-border-soft);
  background: #ffffff;
}
body[data-tenant="teloz"] .btn--outline:not(.topbar__signout):hover {
  border-color: var(--tl-orange);
  color: var(--tl-orange-dark);
  background: var(--tl-orange-light);
}
body[data-tenant="teloz"] .filter-count { background: var(--tl-orange); }
body[data-tenant="teloz"] .filter-panel { border-radius: 14px; box-shadow: var(--tl-shadow-lg); border-color: var(--tl-border-soft); }
body[data-tenant="teloz"] .filter-option:has(input:checked) { background: var(--tl-blue); }
body[data-tenant="teloz"] .filter-clear { color: var(--tl-orange-dark); }
body[data-tenant="teloz"] .filter-clear:hover { color: var(--tl-orange); }

body[data-tenant="teloz"] .btn--primary {
  background: var(--tl-blue);
  border-color: var(--tl-blue);
  border-radius: 12px;
}
body[data-tenant="teloz"] .btn--primary:hover { background: var(--tl-blue-dark); border-color: var(--tl-blue-dark); }

/* Dashboard's own "Export CSV" link -- solid ink outline pill, matching
   the reference prototype's export button treatment. */
body[data-tenant="teloz"] .dashboard-export-btn {
  border-radius: 12px;
  border: 1.5px solid var(--tl-ink);
  color: var(--tl-ink);
  background: #ffffff;
}
body[data-tenant="teloz"] .dashboard-export-btn:hover {
  background: var(--tl-ink);
  color: #ffffff;
  border-color: var(--tl-ink);
}

/* ---- Table: rounded card, cream header, blue-tinted row hover ---- */
body[data-tenant="teloz"] .table-wrap {
  border-radius: 16px;
  border-color: var(--tl-border-soft);
  box-shadow: var(--tl-shadow-sm);
  scrollbar-width: thin;
  scrollbar-color: var(--tl-blue) transparent;
}
/* .table-wrap has overflow:auto, and a wide overview table (many columns
   plus the Verified Date/Screenshot pair) genuinely overflows its card on
   most screens -- style.css's own `scrollbar-width: thin` (Firefox) has no
   Chrome/Edge/Safari equivalent, so those browsers fall back to a plain,
   uncolored default scrollbar running the card's full height, breaking
   the highlighted-column look right where the scroll gutter sits. */
body[data-tenant="teloz"] .table-wrap::-webkit-scrollbar { width: 8px; height: 8px; }
body[data-tenant="teloz"] .table-wrap::-webkit-scrollbar-track { background: transparent; }
body[data-tenant="teloz"] .table-wrap::-webkit-scrollbar-thumb {
  background: var(--tl-blue);
  border-radius: 999px;
}
body[data-tenant="teloz"] .table-wrap::-webkit-scrollbar-thumb:hover { background: var(--tl-blue-dark); }
body[data-tenant="teloz"] .table thead th {
  background: var(--tl-border-soft);
  color: #8a7c68;
  font-size: 11px;
  letter-spacing: 0.06em;
  padding: 13px var(--sp-3);
}
/* FUSF's "Pending" summary tile (.sec-stat-tile--medium) colors its
   number amber/orange by default (security-tabs.css) to flag it as a
   warning; requested plain black here, matching the "2026 Customers"/
   "Done" tiles beside it -- label and everything else on the tile is
   untouched. */
body[data-tenant="teloz"] .sec-stat-tile--medium .sec-stat-tile__value { color: var(--tl-ink); }
/* FUSF page: the "Pending" tile number in #c07c12 (Teloz only). */
body[data-tenant="teloz"][data-active-nav="fusf"] .sec-stat-tile--medium .sec-stat-tile__value { color: #c07c12; }
/* FUSF page: the "Done" tile (3rd card in the row) number in green (Teloz only). */
body[data-tenant="teloz"][data-active-nav="fusf"] .sec-stat-row > .sec-stat-tile:nth-child(3) .sec-stat-tile__value { color: #15803d; }

body[data-tenant="teloz"] .table tbody td { border-bottom-color: #f7ead7; }
body[data-tenant="teloz"] .table tbody tr:hover { background: var(--tl-blue-light); }
body[data-tenant="teloz"] .cell-name { font-weight: 700; color: var(--tl-ink); }
body[data-tenant="teloz"] .cell-name-link:hover { color: var(--tl-blue); }
body[data-tenant="teloz"] .sortable-col:hover,
body[data-tenant="teloz"] .sortable-col.sort-asc .sort-icon,
body[data-tenant="teloz"] .sortable-col.sort-desc .sort-icon { color: var(--tl-blue); }

/* ---- Badges: pill shape with a leading dot, same semantic colors/data
   every tenant already renders (--good/--bad/--neutral/--warn is driven
   entirely by the real per-row FCC/RMD flags, never restyled into a
   different meaning here). --- */
body[data-tenant="teloz"] .badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 4px 11px;
  font-size: 12px;
  font-weight: 700;
}
body[data-tenant="teloz"] .badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex: 0 0 auto;
}

/* FUSF status badges: "Pending" in yellow, "Done" in green (Teloz only). */
body[data-tenant="teloz"][data-active-nav="fusf"] .badge--warn { background: #fef9c3; color: #a16207; }
body[data-tenant="teloz"][data-active-nav="fusf"] .badge--good { background: #dcfce7; color: #15803d; }

/* ---- Customer Detail's "Download PDF" / "Official Website": style.css's
   base rule renders these as plain underlined text -- turned into a
   solid blue pill button (Teloz's own brand blue), matching Sign out's
   own pill treatment. ---- */
body[data-tenant="teloz"] .cp-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  height: 34px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 999px;
  background: var(--tl-blue);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 6px 14px rgba(1, 132, 188, 0.24);
  transition: background-color 160ms var(--tl-ease), box-shadow 160ms var(--tl-ease), transform 120ms var(--tl-ease);
}
body[data-tenant="teloz"] .cp-download-btn:hover {
  color: #fff;
  background: var(--tl-blue-dark);
  box-shadow: 0 8px 18px rgba(1, 132, 188, 0.34);
  transform: translateY(-1px);
}

/* A little breathing room below Sign out/the topbar -- was pulled up
   too tight against it. */
body[data-tenant="teloz"] .cp-status-strip { margin-top: 10px; }

/* ---- Pagination (Overall USA Customers and any other server-paginated
   Teloz list already using this shared component) ---- */
body[data-tenant="teloz"] .pagination .pagination__current {
  background: var(--tl-blue);
  border-radius: 8px;
}
body[data-tenant="teloz"] .pagination a,
body[data-tenant="teloz"] .pagination button { border-radius: 8px; }
body[data-tenant="teloz"] .pagination a:hover,
body[data-tenant="teloz"] .pagination button:not(:disabled):hover { background: var(--tl-orange-light); }
body[data-tenant="teloz"] .oc-pagination-bar {
  border-radius: 12px;
  border-color: var(--tl-border-soft);
  background: #ffffff;
}

/* ---- Reputation tab: View button in Teloz brand blue instead of the
   generic neutral outline every other .btn--outline uses -- scoped to
   just this one table (#reputation-table) so it can never affect any
   other button on any other Teloz page. ---- */
body[data-tenant="teloz"] #reputation-table .btn--outline {
  background: var(--tl-blue);
  border-color: var(--tl-blue);
  color: #ffffff;
}
body[data-tenant="teloz"] #reputation-table .btn--outline:hover {
  background: var(--tl-blue-dark);
  border-color: var(--tl-blue-dark);
  color: #ffffff;
}

/* ---- RMD/FCC499/FRN overview tables: highlight the "Verified Date"/
   "Screenshot" row cells only -- not the column header, per explicit
   request ("dont do highlight on these column name keep on row only"). */
body[data-tenant="teloz"] .dashboard-table td.col-highlight {
  background: var(--tl-blue-light);
  border-bottom-color: var(--tl-blue-light);
}
body[data-tenant="teloz"] .dashboard-table tbody tr:hover td.col-highlight {
  background: var(--tl-orange-light);
  border-bottom-color: var(--tl-orange-light);
}
body[data-tenant="teloz"] .dashboard-table .view-screenshots-btn {
  background: var(--tl-blue);
  border-color: var(--tl-blue);
  color: #ffffff;
  padding-left: 8px;
  padding-right: 8px;
}
body[data-tenant="teloz"] .dashboard-table .view-screenshots-btn:hover {
  background: var(--tl-blue-dark);
  border-color: var(--tl-blue-dark);
  color: #ffffff;
}

/* rmd_database.html/fcc_compliance.html/frn.html now size these tables to
   a fixed pixel width via an inline style="width:...px" (and each <col>
   the same way) -- sized for the base column set, so adding Verified
   Date/Screenshot pushes the total past any normal viewport, forcing
   horizontal scroll. Reflowed to 100%/percentage columns here instead,
   proportioned from those same tables' own relative pixel ratios so nothing
   is squeezed unreadably thin -- Teloz-only. The !important is required
   only to outrank the inline pixel-width attributes, which nothing short
   of !important can override. */
body[data-tenant="teloz"] #rmd-overview-table,
body[data-tenant="teloz"] #fcc-overview-table,
body[data-tenant="teloz"] #frn-overview-table {
  width: 100% !important;
  table-layout: fixed;
}
/* A few px of sub-pixel rounding still remains across the 9 percentage-
   width columns (e.g. 1015px table in a 1008px card) -- not enough to
   ever cost real content, but still enough to trigger .table-wrap's
   overflow:auto horizontal scrollbar. Clipped outright here, scoped only
   to these three tables' own card via :has() so no other Teloz table
   (which may genuinely need to scroll) is affected. */
body[data-tenant="teloz"] .table-wrap:has(#rmd-overview-table),
body[data-tenant="teloz"] .table-wrap:has(#fcc-overview-table),
body[data-tenant="teloz"] .table-wrap:has(#frn-overview-table) {
  overflow-x: hidden;
}
/* style.css's .table thead th is white-space:nowrap by default (only
   opted out of per-header via .cell-header-wrap, e.g. "RMD Status") -- at
   these narrower percentage widths, longer labels ("RMD Business Name",
   "Last Recertified", "Verified Date") were getting visually clipped
   instead of wrapping. Body cells already wrap fine (see the "925 Telecom
   LLC" customer-name cell); headers just needed the same permission. */
body[data-tenant="teloz"] #rmd-overview-table thead th,
body[data-tenant="teloz"] #fcc-overview-table thead th,
body[data-tenant="teloz"] #frn-overview-table thead th {
  white-space: normal;
  line-height: 1.3;
  /* Reference screenshot's larger, non-letter-spaced sizing kept here, but
     case reverted back to Teloz's own uppercase convention per follow-up
     request (10px and 13px sizes were also tried before settling at
     12px). */
  font-size: 11px !important;
  text-transform: uppercase !important;
  /* 0.06em -- identical to every other Teloz table header (was 0.04em,
     visibly tighter than the rest). */
  letter-spacing: 0.06em !important;
  /* <th> is bold by default via the browser's own user-agent stylesheet --
     matched to the reference's moderate weight (heavier than plain
     regular text, lighter than full bold) rather than either extreme. */
  font-weight: 600 !important;
  /* bottom-alignment made single-line labels ("RMD Status", "Country",
     "Screenshot") sit noticeably lower than the two-line ones next to
     them ("Customer Name", "RMD Number") -- middle reads as one even row
     regardless of how many lines each label wraps to. */
  vertical-align: middle;
  /* normal wrap alone only breaks BETWEEN words -- a single long word
     ("RECERTIFIED", "SCREENSHOT") still overflows a narrow column unless
     it's also allowed to break mid-word. overflow-wrap alone only kicks
     in when a word genuinely doesn't fit; the older word-break:break-word
     broke short labels ("S.No.", "Screenshot") mid-word even when they
     had room, so it's deliberately left out here. */
  overflow-wrap: break-word;
  /* The 16px var(--sp-3) side padding style.css's own .table thead th
     rule uses eats a third or more of these narrower columns (a 7%-wide
     column at this table's own rendered width is barely 70px before
     padding) -- short labels like "S.No." and "Screenshot" were still
     breaking awkwardly (e.g. "S." / "NO" / ".") purely from padding, not
     from actually lacking room for the text itself. Needs !important:
     the normal-specificity version of this rule (higher-specificity ID
     selector, should win outright) was inexplicably losing to style.css's
     own .table thead th padding shorthand in the live browser -- rather
     than keep chasing that, !important settles it unconditionally. */
  padding-left: 8px !important;
  padding-right: 8px !important;
}
/* Found the real cause of the padding/wrap fight above: style.css's
   .col-index/.cell-index sets width:48px directly on the S.No. cells
   themselves (not just the <col>), and under table-layout:fixed a
   column's width, once established from that explicit cell width, is
   fixed for the whole column -- a later width:auto on that same cell
   does NOT un-fix it (confirmed empirically: width:auto here changed
   nothing). A real matching pixel value is required instead, one that
   agrees with the <col> nth-child(1) percentage below rather than
   fighting it -- the header was only ever rendering at ~50px regardless
   of anything set on padding or the col width until this landed. */
body[data-tenant="teloz"] #rmd-overview-table .col-index,
body[data-tenant="teloz"] #rmd-overview-table .cell-index,
body[data-tenant="teloz"] #fcc-overview-table .col-index,
body[data-tenant="teloz"] #fcc-overview-table .cell-index,
body[data-tenant="teloz"] #frn-overview-table .col-index,
body[data-tenant="teloz"] #frn-overview-table .cell-index,
body[data-tenant="teloz"] #ipr-overview-table .col-index,
body[data-tenant="teloz"] #ipr-overview-table .cell-index {
  width: 70px !important;
  /* style.css's own .col-index/.cell-index right-aligns this column --
     centered here per request. Registry Verification (#ipr-overview-table)
     added after finding it has the exact same digit-wrap bug -- missed in
     the original RMD/FCC/FRN pass since it's a separate page. */
  text-align: center !important;
  /* Registry Verification's own colgroup declares its first <col> at
     width:5% -- under table-layout:fixed that <col> width wins the
     column's actual rendered size over this cell's own width above (RMD/
     FCC/FRN don't have this fight since their <col> widths were already
     rebalanced separately), so the cell was still only ~27px wide despite
     the 70px override and every 2-digit row number kept wrapping. nowrap
     sidesteps the whole fight -- it works regardless of which width
     actually wins. */
  white-space: nowrap !important;
}
/* FUSF's table has the exact same style.css .col-index/.cell-index
   width:48px bug -- fine for a single digit, but a 48px cell under
   table-layout:fixed doesn't leave room for two digits (12, 13, ... 20)
   once padding is subtracted, so the number wraps onto two stacked
   lines ("1" / "2") instead of staying "12" on one line. */
body[data-tenant="teloz"][data-active-nav="fusf"] .col-index,
body[data-tenant="teloz"][data-active-nav="fusf"] .cell-index {
  width: 56px !important;
  text-align: center !important;
}
body[data-tenant="teloz"] #rmd-overview-table tbody td,
body[data-tenant="teloz"] #fcc-overview-table tbody td,
body[data-tenant="teloz"] #frn-overview-table tbody td {
  padding-left: 10px;
  padding-right: 10px;
}
body[data-tenant="teloz"] #rmd-overview-table col:nth-child(1) { width: 7% !important; }
body[data-tenant="teloz"] #rmd-overview-table col:nth-child(2) { width: 13% !important; }
body[data-tenant="teloz"] #rmd-overview-table col:nth-child(3) { width: 14% !important; }
body[data-tenant="teloz"] #rmd-overview-table col:nth-child(4) { width: 10% !important; }
body[data-tenant="teloz"] #rmd-overview-table col:nth-child(5) { width: 12% !important; }
body[data-tenant="teloz"] #rmd-overview-table col:nth-child(6) { width: 10% !important; }
body[data-tenant="teloz"] #rmd-overview-table col:nth-child(7) { width: 12% !important; }
body[data-tenant="teloz"] #rmd-overview-table col:nth-child(8) { width: 10% !important; }
body[data-tenant="teloz"] #rmd-overview-table col:nth-child(9) { width: 12% !important; }

body[data-tenant="teloz"] #fcc-overview-table col:nth-child(1) { width: 7% !important; }
body[data-tenant="teloz"] #fcc-overview-table col:nth-child(2) { width: 15% !important; }
body[data-tenant="teloz"] #fcc-overview-table col:nth-child(3) { width: 15% !important; }
body[data-tenant="teloz"] #fcc-overview-table col:nth-child(4) { width: 10% !important; }
body[data-tenant="teloz"] #fcc-overview-table col:nth-child(5) { width: 10% !important; }
body[data-tenant="teloz"] #fcc-overview-table col:nth-child(6) { width: 12% !important; }
body[data-tenant="teloz"] #fcc-overview-table col:nth-child(7) { width: 9% !important; }
body[data-tenant="teloz"] #fcc-overview-table col:nth-child(8) { width: 10% !important; }
body[data-tenant="teloz"] #fcc-overview-table col:nth-child(9) { width: 12% !important; }

body[data-tenant="teloz"] #frn-overview-table col:nth-child(1) { width: 7% !important; }
body[data-tenant="teloz"] #frn-overview-table col:nth-child(2) { width: 14% !important; }
body[data-tenant="teloz"] #frn-overview-table col:nth-child(3) { width: 13% !important; }
body[data-tenant="teloz"] #frn-overview-table col:nth-child(4) { width: 13% !important; }
body[data-tenant="teloz"] #frn-overview-table col:nth-child(5) { width: 13% !important; }
body[data-tenant="teloz"] #frn-overview-table col:nth-child(6) { width: 13% !important; }
body[data-tenant="teloz"] #frn-overview-table col:nth-child(7) { width: 13% !important; }
body[data-tenant="teloz"] #frn-overview-table col:nth-child(8) { width: 14% !important; }

/* ---- RMD/FCC499/FRN overview tables: centre the "Screenshot" column
   (last column in all three) -- header text and the View button. The
   "Verified Date" column beside it is left as it was, hence :last-child
   rather than .col-highlight alone. ---- */
body[data-tenant="teloz"] #rmd-overview-table th.col-highlight:last-child,
body[data-tenant="teloz"] #rmd-overview-table td.col-highlight:last-child,
body[data-tenant="teloz"] #fcc-overview-table th.col-highlight:last-child,
body[data-tenant="teloz"] #fcc-overview-table td.col-highlight:last-child,
body[data-tenant="teloz"] #frn-overview-table th.col-highlight:last-child,
body[data-tenant="teloz"] #frn-overview-table td.col-highlight:last-child {
  text-align: center;
}

/* ---- Overall USA Customers: the S.No column is only 4% wide (~45px), and
   style.css's .col-index/.cell-index padding leaves less room than a
   two-digit number needs -- so "13" wrapped into a stacked "1"/"3". Same
   fix as the RMD/FCC/FRN tables above: one line, centred, slimmer side
   padding on just this column, so no other column's width changes. ---- */
body[data-tenant="teloz"] #overall-customer-table th.col-index,
body[data-tenant="teloz"] #overall-customer-table td.cell-index {
  white-space: nowrap !important;
  text-align: center !important;
  padding-left: 4px !important;
  padding-right: 4px !important;
}

/* ---- Overall USA Customers: column sizing. The shared <colgroup> gives
   RMD/499/FRN 11%/7%/10% and both activation columns 10-11%, which is less
   than their content needs on a ~1440px screen -- RMD/499/FRN numbers broke
   across two lines ("RMD00046" / "23") and the date badges spilled out of
   their cells into each other and into Actions. Slimmer side padding plus
   widths sized from the measured content (numbers never wrap; badges keep
   clear space), checked at 1366/1440/1536/1920px with no horizontal
   scroll. Selectors count from the last <col> so they only apply to the
   9-column layout (an admin's all-providers view adds a 10th Provider
   column and keeps the shared widths). ---- */
body[data-tenant="teloz"] #overall-customer-table th,
body[data-tenant="teloz"] #overall-customer-table td { padding-left: 10px; padding-right: 10px; }
body[data-tenant="teloz"] #overall-customer-table td:nth-child(n+4):nth-child(-n+6) { white-space: nowrap; }
body[data-tenant="teloz"] #overall-customer-table col:nth-child(1):nth-last-child(9) { width: 4% !important; }
body[data-tenant="teloz"] #overall-customer-table col:nth-child(2):nth-last-child(8) { width: 16% !important; }
body[data-tenant="teloz"] #overall-customer-table col:nth-child(3):nth-last-child(7) { width: 15.5% !important; }
body[data-tenant="teloz"] #overall-customer-table col:nth-child(4):nth-last-child(6) { width: 11.5% !important; }
body[data-tenant="teloz"] #overall-customer-table col:nth-child(5):nth-last-child(5) { width: 7.5% !important; }
body[data-tenant="teloz"] #overall-customer-table col:nth-child(6):nth-last-child(4) { width: 10.5% !important; }
body[data-tenant="teloz"] #overall-customer-table col:nth-child(7):nth-last-child(3) { width: 13.5% !important; }
body[data-tenant="teloz"] #overall-customer-table col:nth-child(8):nth-last-child(2) { width: 13.5% !important; }
body[data-tenant="teloz"] #overall-customer-table col:nth-child(9):nth-last-child(1) { width: 8% !important; }

/* ---- Overall USA Customers: keep the sort arrow beside "FCC Activation"/
   "RMD Activation" (like Customer/Compliance Status) instead of dropping
   onto a second line -- those two headers carry .cell-header-wrap, which
   lets them wrap, and the label plus arrow was a few px wider than the
   column. Checked at 1366/1440/1536px: content stays inside its cell. ---- */
body[data-tenant="teloz"] #overall-customer-table thead th.cell-header-wrap { white-space: nowrap; }

/* ---- Registry Verification (#ipr-overview-table): column sizing. The shared
   <colgroup> (5/20/10/20/12/18/15%) gave Registry Status only ~10% -- less
   than its header ("Registry Status") and its Pass/Not Found badge need, so
   the header was clipped ("REGISTRY ST") and the badges spilled into the
   next column; Registry ID (12%) broke mid-token as well. Widths here come
   from the measured content, cell padding matches the other Teloz tables,
   headers may wrap to two lines instead of being cut off, and a Registry ID
   only wraps if it genuinely cannot fit. Checked at 1280/1366/1536/1911px:
   no clipped header, no overlap, no horizontal scroll. ---- */
body[data-tenant="teloz"] #ipr-overview-table th,
body[data-tenant="teloz"] #ipr-overview-table td { padding-left: 10px; padding-right: 10px; }
body[data-tenant="teloz"] #ipr-overview-table th.col-index,
body[data-tenant="teloz"] #ipr-overview-table td.cell-index { padding-left: 4px !important; padding-right: 4px !important; }
body[data-tenant="teloz"] #ipr-overview-table thead th { white-space: normal; line-height: 1.3; }
body[data-tenant="teloz"] #ipr-overview-table tbody td:nth-child(3) { white-space: nowrap; }
body[data-tenant="teloz"] #ipr-overview-table tbody td:nth-child(5) { overflow-wrap: anywhere; }
body[data-tenant="teloz"] #ipr-overview-table col:nth-child(1) { width: 5.5% !important; }
body[data-tenant="teloz"] #ipr-overview-table col:nth-child(2) { width: 15.8% !important; }
body[data-tenant="teloz"] #ipr-overview-table col:nth-child(3) { width: 15.6% !important; }
body[data-tenant="teloz"] #ipr-overview-table col:nth-child(4) { width: 15.8% !important; }
body[data-tenant="teloz"] #ipr-overview-table col:nth-child(5) { width: 17.6% !important; }
body[data-tenant="teloz"] #ipr-overview-table col:nth-child(6) { width: 18.2% !important; }
body[data-tenant="teloz"] #ipr-overview-table col:nth-child(7) { width: 11.5% !important; }

/* ---- Live USA Customers: the row "View" button (RMD/499/FRN screenshots) in
   Teloz brand blue, same as the Reputation tab's View button, instead of the
   generic white outline. Scoped to that one table (#carrier-table.customer-
   table) so no other button on any other page is affected. ---- */
body[data-tenant="teloz"] #carrier-table.customer-table .view-screenshots-btn {
  background: var(--tl-blue);
  border-color: var(--tl-blue);
  color: #ffffff;
}
body[data-tenant="teloz"] #carrier-table.customer-table .view-screenshots-btn:hover {
  background: var(--tl-blue-dark);
  border-color: var(--tl-blue-dark);
  color: #ffffff;
}

/* ---- Live USA Customers: centre the View button and its column heading
   ("(RMD, 499, FRN)", the 5th column) so the heading sits over the buttons. ---- */
body[data-tenant="teloz"] #carrier-table.customer-table thead th:nth-child(5),
body[data-tenant="teloz"] #carrier-table.customer-table td.cell-view-screenshots { text-align: center; }

/* ---- International Customer: same treatment as Live USA Customers' View
   button -- Teloz brand blue (like the Reputation tab's View button), with
   the button and its "Action" heading centred in the 3rd column. Scoped to
   #intl-customer-table (this page's table id) so the Reputation table, which
   shares the .intl-customer-table class, is untouched. ---- */
body[data-tenant="teloz"] #intl-customer-table .international-customer-view-btn {
  background: var(--tl-blue);
  border-color: var(--tl-blue);
  color: #ffffff;
}
body[data-tenant="teloz"] #intl-customer-table .international-customer-view-btn:hover {
  background: var(--tl-blue-dark);
  border-color: var(--tl-blue-dark);
  color: #ffffff;
}
body[data-tenant="teloz"] #intl-customer-table thead th:nth-child(3),
body[data-tenant="teloz"] #intl-customer-table tbody td:nth-child(3) { text-align: center; }

/* ---- Bad Media ISP popup (#media-ip-detail-modal), Teloz branding only:
   brand blue + orange, the warm tan table header the other Teloz tables use,
   ink text -- instead of the shared pale-blue popup. Same look as the
   Stir/Shaken popup. ---- */
body[data-tenant="teloz"] #media-ip-detail-modal { background: rgba(35, 32, 27, .55); }
body[data-tenant="teloz"] #media-ip-detail-modal .mip-modal {
  max-width: 720px;
  border-radius: 16px;
  box-shadow: 0 28px 70px rgba(35, 24, 6, .32);
  background: linear-gradient(90deg, var(--tl-orange) 0%, #ffb066 45%, var(--tl-blue) 100%) top / 100% 5px no-repeat, #fff;
}
body[data-tenant="teloz"] #media-ip-detail-modal .mip-modal__header { padding: 26px 26px 18px; gap: 14px; align-items: center; }
body[data-tenant="teloz"] #media-ip-detail-modal .mip-modal__icon {
  width: 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(135deg, #4fc3e8 0%, var(--tl-blue) 55%, var(--tl-blue-dark) 100%);
  color: #fff;
  box-shadow: 0 6px 14px rgba(1, 132, 188, .30);
}
body[data-tenant="teloz"] #media-ip-detail-modal .mip-modal__title { font-size: 19px; font-weight: 800; letter-spacing: -.01em; color: var(--tl-ink); overflow-wrap: anywhere; }
body[data-tenant="teloz"] #media-ip-detail-modal .mip-modal__subtitle { margin-top: 3px; font-size: 12.5px; color: #8a7c68; }
body[data-tenant="teloz"] #media-ip-detail-modal .mip-modal__close {
  width: 32px; height: 32px; padding: 0; border-radius: 50%;
  display: grid; place-items: center; align-self: flex-start;
  font-size: 22px; color: #8a7c68;
  transition: background-color .15s ease, color .15s ease;
}
body[data-tenant="teloz"] #media-ip-detail-modal .mip-modal__close:hover { background: var(--tl-orange-light); color: var(--tl-orange-dark); }

/* Three separate brand-colour cards: blue (records), orange (blocked events),
   deep blue (attempts). */
body[data-tenant="teloz"] #media-ip-detail-modal .mip-stats { gap: 14px; margin: 0 26px 20px; background: none; border: none; border-radius: 0; overflow: visible; }
body[data-tenant="teloz"] #media-ip-detail-modal .mip-stats__item {
  position: relative; padding: 15px 18px 14px; gap: 2px; border: none; border-radius: 14px;
  color: #fff; overflow: hidden;
}
body[data-tenant="teloz"] #media-ip-detail-modal .mip-stats__item:nth-child(1) { background: linear-gradient(135deg, var(--tl-blue) 0%, var(--tl-blue-dark) 100%); box-shadow: 0 8px 18px rgba(1, 132, 188, .28); }
body[data-tenant="teloz"] #media-ip-detail-modal .mip-stats__item:nth-child(2) { background: linear-gradient(135deg, #ffa552 0%, var(--tl-orange) 100%); box-shadow: 0 8px 18px rgba(253, 125, 6, .26); }
body[data-tenant="teloz"] #media-ip-detail-modal .mip-stats__item:nth-child(3) { background: linear-gradient(135deg, var(--tl-blue-dark) 0%, #013f5c 100%); box-shadow: 0 8px 18px rgba(1, 63, 92, .28); }
body[data-tenant="teloz"] #media-ip-detail-modal .mip-stats__item:nth-child(2) .mip-stats__label,
body[data-tenant="teloz"] #media-ip-detail-modal .mip-stats__item:nth-child(2) .mip-stats__value { text-shadow: 0 1px 2px rgba(140, 60, 0, .35); }
body[data-tenant="teloz"] #media-ip-detail-modal .mip-stats__item::after {
  content: ""; position: absolute; right: -26px; top: -26px; width: 92px; height: 92px; border-radius: 50%;
  background: rgba(255, 255, 255, .14); pointer-events: none;
}
body[data-tenant="teloz"] #media-ip-detail-modal .mip-stats__icon {
  display: grid; place-items: center; width: 28px; height: 28px; margin-bottom: 4px; border-radius: 8px;
  background: rgba(255, 255, 255, .22); color: #fff; opacity: 1;
}
body[data-tenant="teloz"] #media-ip-detail-modal .mip-stats__label { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; color: rgba(255, 255, 255, .92); }
body[data-tenant="teloz"] #media-ip-detail-modal .mip-stats__value { font-size: 27px; font-weight: 800; line-height: 1.15; letter-spacing: -.01em; color: #fff; font-variant-numeric: tabular-nums; }

/* Table: tan header like the Teloz page tables, ink rows, blue hover. */
body[data-tenant="teloz"] #media-ip-detail-modal .mip-table-wrap { margin: 0 26px; border: 1px solid var(--tl-border-soft); border-radius: 12px; background: #fff; }
body[data-tenant="teloz"] #media-ip-detail-modal .mip-table thead th {
  background-color: var(--tl-border-soft); background-image: none;
  color: #8a7c68; font-size: 11px; font-weight: 600; letter-spacing: .06em;
  padding: 12px 18px; border-bottom: 1px solid #e6d5bb;
}
body[data-tenant="teloz"] #media-ip-detail-modal .mip-table tbody td { padding: 10px 18px; border-bottom: 1px solid #f6ede0; color: var(--tl-ink); }
body[data-tenant="teloz"] #media-ip-detail-modal .mip-table tbody tr:hover { background: var(--tl-blue-light); }

body[data-tenant="teloz"] #media-ip-detail-modal .mip-pagination { padding: 16px 26px 24px; color: #8a7c68; }
body[data-tenant="teloz"] #media-ip-detail-modal .mip-pagination__arrow,
body[data-tenant="teloz"] #media-ip-detail-modal .mip-pagination__page { border-color: var(--tl-border-soft); border-radius: 8px; color: var(--tl-blue-dark); }
body[data-tenant="teloz"] #media-ip-detail-modal .mip-pagination__arrow:hover:not(:disabled),
body[data-tenant="teloz"] #media-ip-detail-modal .mip-pagination__page:hover { background: var(--tl-orange-light); border-color: #f5cf9f; }
body[data-tenant="teloz"] #media-ip-detail-modal .mip-pagination__page--active,
body[data-tenant="teloz"] #media-ip-detail-modal .mip-pagination__page--active:hover { background: var(--tl-blue); border-color: var(--tl-blue); color: #fff; box-shadow: 0 4px 10px rgba(1, 132, 188, .30); }
body[data-tenant="teloz"] #media-ip-detail-modal .mip-pagination__rows-select { border-color: var(--tl-border-soft); border-radius: 8px; color: var(--tl-blue-dark); }

/* ---- Bad Media ISP popup: fit the window. The popup was taller than a short
   browser window (header + three cards + a fixed 320px table + footer), so the
   pagination footer was pushed out of view and only reachable by scrolling the
   popup. It is now a flex column capped at 90vh: header/cards/footer keep their
   size and the table area shrinks to whatever is left (min 118px), so the footer
   is always on screen; on short windows the header and cards are compacted so
   more rows still fit. Checked at window heights from ~500px to 1000px. ---- */
body[data-tenant="teloz"] #media-ip-detail-modal .mip-modal { display: flex; flex-direction: column; overflow: hidden; }
body[data-tenant="teloz"] #media-ip-detail-modal .mip-modal__header,
body[data-tenant="teloz"] #media-ip-detail-modal .mip-stats,
body[data-tenant="teloz"] #media-ip-detail-modal .mip-pagination { flex: none; }
/* natural height for short lists (capped at 400px, and shrinking further on short windows);
   a fixed 400px only while there are several pages, so the footer never jumps between pages */
body[data-tenant="teloz"] #media-ip-detail-modal .mip-table-wrap { flex: 0 1 auto; height: auto !important; min-height: 118px; max-height: 400px; }
body[data-tenant="teloz"] #media-ip-detail-modal.mip-multipage .mip-table-wrap { height: 400px !important; }
@media (max-height: 760px) {
  body[data-tenant="teloz"] #media-ip-detail-modal .mip-modal__header { padding: 16px 26px 12px; }
  body[data-tenant="teloz"] #media-ip-detail-modal .mip-modal__icon { width: 34px; height: 34px; border-radius: 10px; }
  body[data-tenant="teloz"] #media-ip-detail-modal .mip-modal__title { font-size: 17px; }
  body[data-tenant="teloz"] #media-ip-detail-modal .mip-stats { margin-bottom: 12px; gap: 10px; }
  body[data-tenant="teloz"] #media-ip-detail-modal .mip-stats__item { padding: 10px 14px 9px; border-radius: 12px; }
  body[data-tenant="teloz"] #media-ip-detail-modal .mip-stats__icon { display: none; }
  body[data-tenant="teloz"] #media-ip-detail-modal .mip-stats__value { font-size: 22px; }
  body[data-tenant="teloz"] #media-ip-detail-modal .mip-pagination { padding: 12px 26px 16px; }
}

/* ---- Stir/Shaken popup: same fit-to-window fix as the Bad Media popup above --
   on a short browser window the popup was taller than the screen and its
   pagination footer was out of view. The popup is a flex column capped at 90vh;
   its own JS keeps sizing the table to whole rows, and the table area now only
   shrinks (min 118px) when there is not enough room, so the footer stays on
   screen; header/cards are compacted on short windows. ---- */
body[data-tenant="teloz"] #ss-modal .mip-modal { display: flex; flex-direction: column; overflow: hidden; }
body[data-tenant="teloz"] #ss-modal .mip-modal__header,
body[data-tenant="teloz"] #ss-modal .mip-stats,
body[data-tenant="teloz"] #ss-modal .mip-pagination { flex: none; }
body[data-tenant="teloz"] #ss-modal .mip-table-wrap { flex: 0 1 auto; min-height: 118px; }
@media (max-height: 760px) {
  body[data-tenant="teloz"] #ss-modal .mip-modal__header { padding: 16px 26px 12px; }
  body[data-tenant="teloz"] #ss-modal .mip-modal__icon { width: 34px; height: 34px; border-radius: 10px; }
  body[data-tenant="teloz"] #ss-modal .mip-modal__title { font-size: 17px; }
  body[data-tenant="teloz"] #ss-modal .mip-stats { margin-bottom: 12px; gap: 10px; }
  body[data-tenant="teloz"] #ss-modal .mip-stats__item { padding: 10px 14px 9px; border-radius: 12px; }
  body[data-tenant="teloz"] #ss-modal .mip-stats__icon { display: none; }
  body[data-tenant="teloz"] #ss-modal .mip-stats__value { font-size: 22px; }
  body[data-tenant="teloz"] #ss-modal .mip-pagination { padding: 12px 26px 16px; }
}

/* ---- Brand-colored card borders ----
   Content cards that hold a table/list get a subtle Teloz-blue outline
   that firms up slightly on hover -- a light brand touch, not a frame.
   Stat cards keep their own left-accent treatment. */
body[data-tenant="teloz"] .table-wrap,
body[data-tenant="teloz"] .detail-panel,
body[data-tenant="teloz"] .rmd-card,
body[data-tenant="teloz"] .fusf-card,
body[data-tenant="teloz"] .dnc-card,
body[data-tenant="teloz"] .kyc-panel,
body[data-tenant="teloz"] .documents-panel,
body[data-tenant="teloz"] .sec-stat-tile,
body[data-tenant="teloz"] .oc-pagination-bar {
  border: 1.5px solid color-mix(in srgb, var(--tl-blue) 38%, #ffffff);
  transition: border-color 160ms var(--tl-ease);
}
body[data-tenant="teloz"] .table-wrap:hover,
body[data-tenant="teloz"] .detail-panel:hover,
body[data-tenant="teloz"] .rmd-card:hover,
body[data-tenant="teloz"] .fusf-card:hover,
body[data-tenant="teloz"] .dnc-card:hover,
body[data-tenant="teloz"] .kyc-panel:hover,
body[data-tenant="teloz"] .documents-panel:hover,
body[data-tenant="teloz"] .sec-stat-tile:hover {
  border-color: color-mix(in srgb, var(--tl-blue) 60%, #ffffff);
}

/* ============================================================
   Teloz default zoom: 100% browser zoom renders like 90%.
   ============================================================
   The login page also loads this file, so the zoom is limited to pages that
   contain the dashboard shell (.app-shell, from base.html) -- the login page
   has none and stays at normal size. Viewport units
   (vh/vw) are NOT scaled by html zoom, so the full-height shell and the
   fixed sidebar are divided by the zoom factor -- otherwise they would stop
   10% short of the bottom of the window. Fixed overlays (inset: 0) and
   sticky headers need no change: they size to the viewport/scroll box. */
html:has(.app-shell) { --tl-zoom: 0.9; zoom: var(--tl-zoom); }
html:has(.app-shell) body[data-tenant="teloz"] .app-shell { min-height: calc(100vh / var(--tl-zoom)); }
html:has(.app-shell) body[data-tenant="teloz"] .sidebar { height: calc(100vh / var(--tl-zoom)); }

/* ---- Teloz Dashboard (Overall USA Customers) table layout. Scoped to
   .dashboard-table--teloz, which _table_section.html adds only when the
   Teloz Status column is on, so Twiching/other dashboards are untouched. ---- */
body[data-tenant="teloz"] .dashboard-table--teloz thead th { padding: 11px 10px; vertical-align: middle; }
body[data-tenant="teloz"] .dashboard-table--teloz tbody td { padding: 6px 10px; vertical-align: middle; }
body[data-tenant="teloz"] .dashboard-table--teloz th.col-index,
body[data-tenant="teloz"] .dashboard-table--teloz td.cell-index { width: auto; text-align: center; padding-left: 4px; padding-right: 4px; }
body[data-tenant="teloz"] .dashboard-table--teloz th:last-child,
body[data-tenant="teloz"] .dashboard-table--teloz td.cell-usa-status { text-align: center; }
body[data-tenant="teloz"] .dashboard-table--teloz .cell-name { line-height: 1.35; }
/* FRNs stacked one per line; never spill into the RMD column. */
body[data-tenant="teloz"] .dashboard-table--teloz td.cell-frn { white-space: normal; overflow: hidden; }
.frn-stack { display: flex; flex-direction: column; gap: 2px; }
.frn-line { display: block; white-space: nowrap; }
/* Every pill in this table: identical height, font size and padding. */
body[data-tenant="teloz"] .dashboard-table--teloz .badge {
  font-size: 12px; line-height: 1.6; padding: 4px 11px; white-space: nowrap; vertical-align: middle;
}
