/* apex/src/css/bright.css · Bright 2 · the "Bright" theme style on Universal Theme (step 2.1)
   Source of truth for the look: docs/visuals/desktop-concept.html (white canvas, Plus Jakarta Sans
   for text, IBM Plex Mono for numbers, amber #F5A623 only for the brand and the primary action,
   the left sidebar with the wordmark, the top bar with breadcrumb, global search and avatar).
   Loaded as #APP_FILES#css/bright.css by the theme style "Bright" (Vita + this file).
   Fonts come from Google Fonts (nothing bulky is stored in the database). */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  /* the prototype's tokens */
  --bright-bg: #FFFFFF; --bright-panel: #F8F8F6; --bright-panel-2: #F1F1EE;
  --bright-line: #E8E7E2; --bright-line-2: #D8D6CF;
  --bright-fg: #15171A; --bright-fg-2: #454A52; --bright-muted: #7A7F87; --bright-faint: #A6AAB1;
  --bright-amber: #F5A623; --bright-amber-deep: #E08A14; --bright-amber-ink: #9A5B00;
  --bright-amber-soft: #FFF4DF; --bright-amber-line: #F9D9A0;
  --bright-ok: #1C8A4B; --bright-ok-soft: #E6F6EC; --bright-warn: #B5680B; --bright-warn-soft: #FFF1D6;
  --bright-crit: #D23F3F; --bright-crit-soft: #FCE8E8; --bright-info: #2F6FE4; --bright-info-soft: #E8EFFC;
  --bright-ui: 'Plus Jakarta Sans', "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --bright-mono: 'IBM Plex Mono', Menlo, Consolas, monospace;

  /* Universal Theme hooks: amber is the primary action and nothing else */
  --ut-palette-primary: var(--bright-amber);
  --ut-palette-primary-shade: var(--bright-amber-deep);
  --ut-palette-primary-contrast: #1A1200;
  --a-button-primary-background-color: var(--bright-amber);
  --a-button-primary-border-color: var(--bright-amber);
  --a-button-primary-text-color: #1A1200;
  --a-button-hot-background-color: var(--bright-amber);
  --a-button-hot-border-color: var(--bright-amber);
  --a-button-hot-text-color: #1A1200;
  --a-field-input-border-color: var(--bright-line-2);
  --a-field-input-border-radius: 9px;
  --a-field-input-focus-border-color: var(--bright-amber);
  --ut-body-background-color: var(--bright-bg);
  --ut-component-background-color: var(--bright-bg);
  --ut-component-border-color: var(--bright-line);
  --ut-component-border-radius: 12px;
  --ut-header-background-color: var(--bright-bg);
  --ut-header-text-color: var(--bright-fg);
  --ut-body-nav-background-color: var(--bright-bg);
  --ut-body-title-background-color: var(--bright-bg);
  --ut-body-text-color: var(--bright-fg);
  --ut-link-text-color: var(--bright-fg);
  --a-base-font-family: var(--bright-ui);
}

/* canvas and type */
html, body, .t-Body, .t-Body-content, .t-Body-main, .apex-item-text, .t-Button, select, input, textarea, button {
  font-family: var(--bright-ui);
}
body { background: var(--bright-bg); color: var(--bright-fg); -webkit-font-smoothing: antialiased; }
.t-Body-contentInner { padding: 26px 28px; }

/* top bar: white, hairline, no shadow; the wordmark sits in the sidebar, so the header carries the breadcrumb, the search and the avatar */
.t-Header { background: var(--bright-bg); border-bottom: 1px solid var(--bright-line); box-shadow: none; }
.t-Header .t-Header-branding { background: var(--bright-bg); }
.t-Header .t-Header-logo-link, .t-Header .t-Header-logo-link:hover { color: var(--bright-fg); text-decoration: none; }
.t-Header .t-Header-logo img { height: 28px; width: auto; }
.t-Header .t-Button--header, .t-Header .t-Button--header .t-Icon, .t-Header .t-Header-navBar .t-Button--header .t-Button-label { color: var(--bright-fg-2); }
.t-Header .t-Button--header:hover { background: var(--bright-panel); }

/* the avatar in the navigation bar: initials on amber-soft, as the prototype */
.t-Header .t-NavigationBar-item.bright-avatar .t-Button--header .t-Button-label {
  display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--bright-amber-soft); color: var(--bright-amber-ink); border: 1px solid var(--bright-amber-line);
  font-weight: 700; font-size: 12px; letter-spacing: .02em;
}
.t-Header .t-NavigationBar-item.bright-avatar .t-Icon { display: none; }
.t-Header .t-NavigationBar-item.bright-tenant .t-Button--header .t-Button-label {
  font-family: var(--bright-mono); font-size: 12px; color: var(--bright-muted);
  border: 1px solid var(--bright-line); border-radius: 999px; padding: 2px 10px;
}
/* the service provider switcher (owner, 27 Oct 2026): centred in the bar like the search and the avatar (its button was
   10 px shorter than the bar's other items and sat 5 px high), one pill with a building in the menu icons' line style and
   the up-down chevron of a switcher instead of Font APEX's building */
.t-Header .t-NavigationBar-item.bright-tenant .t-Button--header { height: 48px; display: inline-flex; align-items: center;
  padding-block: 0; background: transparent; }
.t-Header .t-NavigationBar-item.bright-tenant .t-Button--header > .t-Icon { display: none; }
.t-Header .t-NavigationBar-item.bright-tenant .t-Button--header .t-Button-label {
  display: inline-flex; align-items: center; gap: 7px; height: 30px; box-sizing: border-box; margin: 0; padding: 0 9px 0 10px;
  background: #fff; color: var(--bright-fg-2); letter-spacing: .02em; transition: background-color .15s ease, border-color .15s ease;
}
.t-Header .t-NavigationBar-item.bright-tenant .t-Button-label::before,
.t-Header .t-NavigationBar-item.bright-tenant .t-Button-label::after { content: ""; flex: none; background-color: currentColor; }
.t-Header .t-NavigationBar-item.bright-tenant .t-Button-label::before { width: 15px; height: 15px;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z'/%3E%3Cpath d='M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2'/%3E%3Cpath d='M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2'/%3E%3Cpath d='M10 6h4M10 10h4M10 14h4M10 18h4'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z'/%3E%3Cpath d='M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2'/%3E%3Cpath d='M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2'/%3E%3Cpath d='M10 6h4M10 10h4M10 14h4M10 18h4'/%3E%3C/svg%3E") center / contain no-repeat; }
.t-Header .t-NavigationBar-item.bright-tenant .t-Button-label::after { width: 12px; height: 12px; color: var(--bright-faint);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 15 5 5 5-5'/%3E%3Cpath d='m7 9 5-5 5 5'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 15 5 5 5-5'/%3E%3Cpath d='m7 9 5-5 5 5'/%3E%3C/svg%3E") center / contain no-repeat; }
.t-Header .t-NavigationBar-item.bright-tenant .t-Button--header:hover .t-Button-label,
.t-Header .t-NavigationBar-item.bright-tenant .t-Button--header:focus-visible .t-Button-label {
  background: var(--bright-panel); border-color: var(--bright-line-2); color: var(--bright-fg); }
.t-Header .t-NavigationBar-item.bright-tenant .t-Button--header:focus-visible { box-shadow: none; outline: none; }
.t-Header .t-NavigationBar-item.bright-tenant .t-Button--header:focus-visible .t-Button-label { box-shadow: 0 0 0 3px var(--bright-amber-soft); }

/* the global search box in the top bar (nav bar entry rendered as an input, see the Navigation Bar list) */
.bright-search { display: flex; align-items: center; gap: 8px; min-width: 320px; border: 1px solid var(--bright-line);
  border-radius: 10px; padding: 6px 12px; color: var(--bright-muted); background: var(--bright-panel); }
.bright-search input { border: 0; background: transparent; outline: none; flex: 1; font: inherit; font-size: 13.5px; color: var(--bright-fg); }
.bright-search kbd { font-family: var(--bright-mono); font-size: 11px; border: 1px solid var(--bright-line-2); border-radius: 5px; padding: 1px 6px; color: var(--bright-muted); background: #fff; }
@media (max-width: 900px) { .bright-search { min-width: 0; } .bright-search kbd { display: none; } }

/* sidebar: white, hairline on the right, the entries as rounded rows; the current one on amber-soft with the amber bar */
.t-Body-nav { background: var(--bright-bg); border-right: 1px solid var(--bright-line); box-shadow: none; }
.t-TreeNav, .t-TreeNav .a-TreeView, .t-TreeNav .a-TreeView-node, .t-TreeNav .a-TreeView-content,
.t-TreeNav .a-TreeView-node--topLevel > .a-TreeView-content { background: transparent; }
.t-TreeNav .a-TreeView-content { color: var(--bright-fg-2); font-weight: 500; border-radius: 8px; margin: 1px 10px; padding-block: 7px; }
.t-TreeNav .a-TreeView-content .fa, .t-TreeNav .a-TreeView-content .t-Icon { color: var(--bright-fg-2); }
.t-TreeNav .a-TreeView-content:hover { background: var(--bright-panel); color: var(--bright-fg); }
.t-TreeNav .a-TreeView-content.is-current, .t-TreeNav .a-TreeView-content.is-current--top,
.t-TreeNav .a-TreeView-node--topLevel > .a-TreeView-content.is-current {
  background: var(--bright-amber-soft); color: var(--bright-fg); font-weight: 700; box-shadow: inset 3px 0 0 var(--bright-amber);
}
.t-TreeNav .a-TreeView-content.is-current .fa, .t-TreeNav .a-TreeView-content.is-current .t-Icon { color: var(--bright-fg); }
/* APEX 26 marks the current entry on .a-TreeView-row (a full-width bar behind the label) and paints it, the
   focused row and an open sub-list in the theme's dark colour: keep them all transparent (18 Oct 2026) */
.t-TreeNav .a-TreeView-row, .t-TreeNav .a-TreeView-row.is-selected, .t-TreeNav .a-TreeView-row.is-focused,
.t-TreeNav .a-TreeView-row.is-hover, .t-TreeNav .a-TreeView-row.is-current--top { background: transparent !important; box-shadow: none !important; }
.t-TreeNav ul, .t-TreeNav .a-TreeView-node--topLevel > ul { background: transparent !important; }
/* a parent whose child is the current page stays plain; a top-level entry that is itself the page is highlighted */
.t-TreeNav .a-TreeView-node--topLevel > .a-TreeView-content.is-current--top { background: transparent; box-shadow: none; font-weight: 700; color: var(--bright-fg); }
.t-TreeNav .a-TreeView-node--topLevel.a-TreeView-node--leaf > .a-TreeView-content.is-current--top { background: var(--bright-amber-soft); }
.t-TreeNav .a-TreeView-content.is-current--top .a-TreeView-label, .t-TreeNav .a-TreeView-content.is-current--top .bright-ico { color: var(--bright-fg); }
.t-TreeNav .a-TreeView-content.is-focused:not(.is-current--top) { background: var(--bright-panel); }
.t-TreeNav .a-TreeView-node .a-TreeView-node .a-TreeView-content { font-size: 12.5px; color: var(--bright-muted); }
.t-TreeNav .a-TreeView-node .a-TreeView-node .a-TreeView-content.is-current { background: transparent; color: var(--bright-fg); box-shadow: inset 2px 0 0 var(--bright-amber); }
.t-TreeNav .a-TreeView-toggle { color: var(--bright-faint); }
/* the wordmark above the entries */
.t-Body-nav .bright-wordmark { display: block; padding: 14px 20px 10px; }
.t-Body-nav .bright-wordmark img { height: 34px; width: auto; display: block; }

/* breadcrumb bar and page title */
.t-Body-title, .t-BreadcrumbRegion { background: var(--bright-bg); border-bottom: 1px solid var(--bright-line); box-shadow: none; }
.t-BreadcrumbRegion .t-Breadcrumb-item a, .t-BreadcrumbRegion .t-Breadcrumb-label { color: var(--bright-muted); font-weight: 500; }
.t-BreadcrumbRegion .t-Breadcrumb-item.is-active .t-Breadcrumb-label { color: var(--bright-fg); font-weight: 600; }
.t-BreadcrumbRegion-title, .t-Body-title h1 { font-weight: 800; letter-spacing: -.02em; color: var(--bright-fg); }

/* buttons: amber only for the primary action */
.t-Button { border-radius: 9px; font-weight: 600; }
.t-Button--hot, .t-Button--primary { background: var(--bright-amber); border-color: var(--bright-amber); color: #1A1200; }
.t-Button--hot:hover, .t-Button--primary:hover { background: var(--bright-amber-deep); border-color: var(--bright-amber-deep); color: #1A1200; }
.t-Button:not(.t-Button--hot):not(.t-Button--primary):not(.t-Button--header):not(.t-Button--noUI) { background: #fff; border: 1px solid var(--bright-line-2); color: var(--bright-fg); }

/* regions, reports, numbers */
.t-Region, .t-IRR-region { border: 1px solid var(--bright-line); border-radius: 12px; box-shadow: none; }
.t-Region .t-Region-header { background: transparent; border-bottom: 1px solid var(--bright-line); }
.t-Region .t-Region-header .t-Region-title { font-weight: 700; }
.t-Report-colHead, .a-IRR-headerLabel, .a-GV-headerLabel { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--bright-muted); }
.t-Report-cell, .a-IRR-cell, .a-GV-cell { border-color: var(--bright-line); }
.u-tR, .t-Report-cell.u-tR, .a-IRR-cell.u-tR, .bright-num, .is-number { font-family: var(--bright-mono); font-size: 13px; font-variant-numeric: tabular-nums; }

/* chips and pills the pages will use (prototype .chip / .pill) */
.bright-pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; font-weight: 600; font-size: 12px; border: 1px solid var(--bright-line); color: var(--bright-fg-2); background: #fff; }
.bright-pill--ok { background: var(--bright-ok-soft); color: var(--bright-ok); border-color: transparent; }
.bright-pill--warn { background: var(--bright-warn-soft); color: var(--bright-warn); border-color: transparent; }
.bright-pill--crit { background: var(--bright-crit-soft); color: var(--bright-crit); border-color: transparent; }
.bright-pill--info { background: var(--bright-info-soft); color: var(--bright-info); border-color: transparent; }
.bright-pill--amber { background: var(--bright-amber-soft); color: var(--bright-amber-ink); border-color: transparent; }

/* KPI strip (prototype .kpis) for the Home dashboard of 2.10 */
.bright-kpis { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--bright-line); border-bottom: 1px solid var(--bright-line); }
.bright-kpis > div { padding: 16px 18px 16px 0; margin-right: 18px; border-right: 1px solid var(--bright-line); }
.bright-kpis > div:last-child { border-right: 0; }
.bright-kpis .k { font-size: 12px; color: var(--bright-muted); font-weight: 600; }
.bright-kpis .v { font-size: 28px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin-top: 2px; }
.bright-kpis .s { font-size: 12.5px; color: var(--bright-muted); }

/* the placeholder card of the pages that arrive in later steps */
.bright-placeholder { border: 1px dashed var(--bright-line-2); border-radius: 12px; padding: 28px; color: var(--bright-muted); background: var(--bright-panel); }
.bright-placeholder b { color: var(--bright-fg); display: block; font-size: 15px; margin-bottom: 6px; }
.bright-placeholder code { font-family: var(--bright-mono); font-size: 12px; background: #fff; border: 1px solid var(--bright-line); border-radius: 5px; padding: 1px 6px; }

/* login page */
.t-Login-region { border-radius: 14px; border: 1px solid var(--bright-line); box-shadow: 0 20px 60px -30px rgba(0,0,0,.25); }
/* the wordmark is the region image: the theme gives img.t-Login-logo the square app-icon box,
   which cropped it; show it whole and drop the empty icon span (18 Oct 2026) */
.t-Login-header img.t-Login-logo { width: auto; height: 44px; max-width: 200px; object-fit: contain;
  background: none; border-radius: 0; box-shadow: none; padding: 0; }
.t-Login-header span.t-Login-logo:empty { display: none; }
.t-Login-title { font-weight: 800; letter-spacing: -.02em; }

/* ---- step 2.2: Setup pages (tab bar, list tables, selected row, row actions, roles matrix) ---- */
.bright-tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--bright-line); margin: 0 0 18px; }
.bright-tabs a { padding: 8px 12px 10px; color: var(--bright-muted); font-weight: 600; text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.bright-tabs a:hover { color: var(--bright-fg); }
.bright-tabs a.on { color: var(--bright-fg); border-bottom-color: var(--bright-fg); }
.bright-table { width: 100%; border-collapse: collapse; }
.bright-table th { text-align: left; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--bright-muted); padding: 6px 10px; border-bottom: 1px solid var(--bright-line); white-space: nowrap; }
.bright-table td { padding: 9px 10px; border-bottom: 1px solid var(--bright-line); vertical-align: middle; }
.bright-table td.u-tR, .bright-table th.u-tR { text-align: right; font-family: var(--bright-mono); font-variant-numeric: tabular-nums; }
.bright-table td a { color: var(--bright-fg); font-weight: 600; text-decoration: none; }
.bright-table td a:hover { text-decoration: underline; }
.bright-table tr.is-selected td { background: var(--bright-amber-soft); }
.bright-table tr.is-selected td:first-child { box-shadow: inset 3px 0 0 var(--bright-amber); }
.bright-act { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border: 1px solid var(--bright-line-2); border-radius: 7px; background: #fff; color: var(--bright-fg-2) !important; font-weight: 600 !important; font-size: 12px; }
.bright-act:hover { background: var(--bright-panel); text-decoration: none !important; }
.bright-matrix { overflow-x: auto; }
.bright-matrix-role { writing-mode: vertical-rl; transform: rotate(180deg); text-transform: none !important; letter-spacing: 0 !important; font-size: 12px !important; height: 130px; }
.bright-matrix-cell { text-align: center; color: var(--bright-ok); font-weight: 700; }
.bright-lede { color: var(--bright-muted); margin: 0 0 12px; }

/* ---- step 2.3: customer and service headers (prototype .idhead), tab counts ---- */
.bright-idhead { display: flex; gap: 16px; align-items: flex-start; margin: 0 0 16px; }
.bright-idhead .big { width: 52px; height: 52px; border-radius: 14px; background: var(--bright-fg); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 18px; flex: none; }
.bright-idhead h2 { font-size: 22px; font-weight: 800; letter-spacing: -.02em; margin: 0 0 4px; }
.bright-idhead .meta { color: var(--bright-muted); font-size: 13px; }
.bright-idhead .meta a { color: var(--bright-fg); font-weight: 600; }
.bright-idhead .pills { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.bright-kpis .v.warn { color: var(--bright-warn); }
.bright-tabs a .n { font-family: var(--bright-mono); font-size: 11px; background: var(--bright-panel-2); padding: 0 6px; border-radius: 999px; color: var(--bright-fg-2); margin-left: 4px; }

/* ---- step 2.4: the printed receipt ---- */
.bright-receipt { max-width: 640px; }
.bright-receipt .head { color: var(--bright-fg-2); font-size: 13px; margin-bottom: 10px; }
.bright-receipt h2 { font-size: 22px; font-weight: 800; margin: 8px 0 4px; }
.bright-receipt .meta { color: var(--bright-muted); font-size: 13px; margin: 6px 0 12px; }
.bright-kpis.five { grid-template-columns: repeat(5, 1fr); }
@media print {
  .t-Header, .t-Body-nav, .t-Body-title, .t-Footer, .no-print, .bright-tabs { display: none !important; }
  .t-Body-main, .t-Body-content, .t-Body-contentInner { margin: 0 !important; padding: 0 !important; }
}

/* Metering (step 2.5): cycles board, verification, Key readings (prototype metering, readings, readings-key) */
.bright-bar { height: 8px; border-radius: 99px; background: var(--bright-panel-2); overflow: hidden; min-width: 120px; }
.bright-bar i { display: block; height: 100%; background: var(--bright-amber); border-radius: 99px; }
.bright-bar.done i { background: var(--bright-ok); }
.bright-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.bright-chips a { padding: 4px 12px; border-radius: 999px; border: 1px solid var(--bright-line-2); color: var(--bright-fg-2); font-size: 12.5px; font-weight: 600; text-decoration: none; background: #fff; }
.bright-chips a.on { background: var(--bright-fg); border-color: var(--bright-fg); color: #fff; }
.bright-chips a .n { font-family: var(--bright-mono); font-weight: 500; margin-left: 4px; opacity: .75; }
.bright-who b { display: block; white-space: nowrap; } .bright-who span { display: block; color: var(--bright-muted); font-size: 12px; }
.bright-keycols { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 22px; align-items: start; }
@media (max-width: 1100px) { .bright-keycols { grid-template-columns: 1fr; } }
.bright-keygrid tr[data-reading] { cursor: pointer; }
.bright-keygrid tr.cur td { background: var(--bright-amber-soft); }
.bright-keygrid td.rdv, .bright-keygrid td.kwh { font-family: var(--bright-mono); text-align: right; }
.bright-keygrid td.dr { color: var(--bright-crit); }
.bright-entry { border: 1px solid var(--bright-line); border-radius: 14px; padding: 16px 18px; background: #fff; position: sticky; top: 64px; }
.bright-entry h3 { margin: 0 0 8px; font-size: 15px; display: flex; align-items: center; justify-content: space-between; }
.bright-entry .ewho b { display: block; font-weight: 700; font-size: 15px; } .bright-entry .ewho span { display: block; color: var(--bright-muted); font-size: 12.5px; margin-top: 2px; }
.bright-photo { position: relative; height: 150px; border-radius: 12px; background: radial-gradient(circle at 50% 40%, #3A3A37, #232321 70%); margin: 12px 0 14px; overflow: hidden; border: 1px solid var(--bright-line-2); }
.bright-photo .lcd { position: absolute; left: 50%; top: 38px; transform: translateX(-50%); min-width: 184px; height: 50px; background: #D9E0CF; border-radius: 6px; border: 3px solid #3C3C3C; display: flex; align-items: center; justify-content: center; font-family: var(--bright-mono); font-size: 26px; font-weight: 600; letter-spacing: 7px; color: #1E2A1A; padding: 0 8px; box-sizing: border-box; }
.bright-photo .serial { position: absolute; left: 50%; top: 98px; transform: translateX(-50%); font-family: var(--bright-mono); font-size: 11px; color: rgba(255,255,255,.6); letter-spacing: 1px; white-space: nowrap; }
.bright-photo .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 6px 10px; background: rgba(0,0,0,.55); color: #fff; font-size: 11.5px; display: flex; align-items: center; gap: 8px; }
.bright-photo .cap a { margin-left: auto; color: #fff; }
.bright-photo.none { background: var(--bright-panel); border: 1px dashed var(--bright-line-2); color: var(--bright-muted); display: grid; place-items: center; font-size: 12.5px; text-align: center; padding: 0 16px; }
.bright-fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; margin-bottom: 12px; }
.bright-fgrid label, .bright-erow label { display: block; font-size: 11.5px; font-weight: 600; color: var(--bright-muted); margin-bottom: 3px; }
.bright-fgrid .in, .bright-erow .in { width: 100%; box-sizing: border-box; font: inherit; font-size: 13.5px; padding: 7px 10px; border: 1px solid var(--bright-line-2); border-radius: 9px; background: #fff; color: var(--bright-fg); min-height: 36px; }
.bright-fgrid .in.ro { background: var(--bright-panel); border-color: var(--bright-line); color: var(--bright-fg-2); }
.bright-fgrid .in:focus, .bright-erow .in:focus { outline: 2px solid var(--bright-amber-soft); border-color: var(--bright-amber); }
.bright-fgrid .check { display: flex; align-items: center; gap: 8px; min-height: 36px; font-size: 13px; }
.bright-erow { display: flex; align-items: flex-end; gap: 8px; }
.bright-erow > div { flex: 1 1 0; min-width: 0; }
.bright-erow .in.big { font-family: var(--bright-mono); font-size: 18px; font-weight: 600; min-height: 42px; border-color: var(--bright-amber); outline: 2px solid var(--bright-amber-soft); }
.bright-erow .t-Button { height: 42px; flex: 0 0 auto; }
.bright-hint { margin-top: 8px; font-size: 12px; color: var(--bright-muted); }
.bright-hint.bad { color: var(--bright-crit); font-weight: 600; }
.bright-card { border: 1px solid var(--bright-line); border-radius: 14px; padding: 14px 16px; background: #fff; }
.bright-kv { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; font-size: 13px; } .bright-kv span { color: var(--bright-muted); }

/* Billing (step 2.6): the run console's steps and the bill as LEC's bill.jrxml lays it out (Letter) */
.bright-steps { display: flex; gap: 0; margin: 0 0 16px; border: 1px solid var(--bright-line); border-radius: 12px; overflow: hidden; }
.bright-steps span { flex: 1; padding: 9px 12px; font-size: 12.5px; font-weight: 600; color: var(--bright-muted); border-right: 1px solid var(--bright-line); background: #fff; white-space: nowrap; }
.bright-steps span:last-child { border-right: 0; }
.bright-steps span.done { color: var(--bright-ok); background: var(--bright-ok-soft); }
.bright-steps span.now { color: var(--bright-amber-ink); background: var(--bright-amber-soft); }
.bright-cols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; }
@media (max-width: 1100px) { .bright-cols { grid-template-columns: 1fr; } }
.bright-card h4 { margin: 0 0 8px; font-size: 13px; }
.bright-card + .bright-card { margin-top: 12px; }
.bright-bill { width: 8.5in; max-width: 100%; box-sizing: border-box; margin: 0 auto; padding: .45in .5in; background: #fff; color: #000; border: 1px solid var(--bright-line); font: 12px/1.45 Arial, Helvetica, sans-serif; position: relative; }
.bright-bill .draft { position: absolute; top: 3.2in; left: 0; right: 0; text-align: center; font-size: 72px; font-weight: 800; color: rgba(210, 63, 63, .12); transform: rotate(-24deg); pointer-events: none; }
.bright-bill .bh { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 2px solid #000; padding-bottom: 8px; margin-bottom: 8px; }
.bright-bill .bh .co { font-size: 18px; font-weight: 800; } .bright-bill .bh .co span { display: block; font-size: 11px; font-weight: 400; }
.bright-bill .bh .tt { text-align: right; } .bright-bill .bh .tt b { display: block; font-size: 20px; letter-spacing: .06em; } .bright-bill .bh .tt span { font-size: 14px; font-weight: 700; }
.bright-bill .row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px 18px; }
.bright-bill .kv { display: flex; gap: 6px; } .bright-bill .kv i { font-style: normal; font-weight: 700; white-space: nowrap; }
.bright-bill h5 { font-size: 12px; font-weight: 800; margin: 14px 0 4px; letter-spacing: .04em; }
.bright-bill .usage { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; border-top: 1px solid #000; padding-top: 6px; }
.bright-bill .usage .kv { justify-content: space-between; padding: 2px 0; } .bright-bill .usage .kv b { font-weight: 400; font-family: var(--bright-mono); }
.bright-bill .due { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 14px; }
.bright-bill .due .box { border: 2px solid #000; padding: 8px 10px; }
.bright-bill .due .box .kv { justify-content: space-between; font-size: 14px; } .bright-bill .due .box .kv b { font-family: var(--bright-mono); }
.bright-bill .note { font-size: 10.5px; }
.bright-bill .slip { border-top: 1px dashed #000; margin-top: 22px; padding-top: 8px; }
.bright-bill .slip .line { display: inline-block; width: 1.6in; border-bottom: 1px solid #000; height: 14px; vertical-align: bottom; }
@media print { .bright-bill { border: 0; padding: 0; width: auto; } }

/* Work orders and field (step 2.8): the crew schedule board as the prototype draws it, the order page, the counter */
.bright-schtb { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 10px; }
.bright-schtb b { font-weight: 700; margin: 0 6px; font-size: 14px; }
.bright-schtb .sp { flex: 1; }
.bright-schtb a.ico { display: inline-grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--bright-line-2); border-radius: 8px; color: var(--bright-fg); text-decoration: none; font-size: 16px; background: #fff; }
.bright-schtb a.btn { padding: 4px 12px; border: 1px solid var(--bright-line-2); border-radius: 8px; color: var(--bright-fg); text-decoration: none; font-size: 12.5px; font-weight: 600; background: #fff; }
.bright-rng { display: inline-flex; border: 1px solid var(--bright-line-2); border-radius: 8px; overflow: hidden; }
.bright-rng a { padding: 5px 10px; font-size: 12.5px; font-weight: 600; color: var(--bright-fg-2); border-right: 1px solid var(--bright-line); text-decoration: none; background: #fff; }
.bright-rng a:last-child { border-right: 0; } .bright-rng a.on { background: var(--bright-amber); color: #1A1200; }
.bright-summ { display: flex; flex-wrap: wrap; gap: 18px; font-size: 12.5px; color: var(--bright-muted); margin: 0 0 10px; }
.bright-summ b { color: var(--bright-fg); font-family: var(--bright-mono); font-weight: 600; }
.bright-summ .w { color: var(--bright-warn); } .bright-summ .n { color: var(--bright-amber-ink); } .bright-summ .c { color: var(--bright-crit); }
.bright-tray { display: grid; gap: 8px; border: 1px solid var(--bright-line); border-radius: 12px; padding: 10px 12px; background: var(--bright-panel); margin: 0 0 12px; }
.bright-tray .h { font-weight: 700; font-size: 13px; }
.bright-tray .cards { display: flex; flex-wrap: wrap; gap: 6px 8px; }
.bright-qjob { display: flex; align-items: center; gap: 10px; border: 1px solid var(--bright-line-2); border-radius: 8px; padding: 4px 5px 4px 10px; background: #fff; font-size: 12.5px; }
.bright-qjob b { white-space: nowrap; } .bright-qjob span { white-space: nowrap; color: var(--bright-muted); }
.bright-qjob a { padding: 3px 9px; border: 1px solid var(--bright-line-2); border-radius: 7px; font-size: 12px; font-weight: 600; color: var(--bright-fg); text-decoration: none; }
.bright-sch { border: 1px solid var(--bright-line); border-radius: 12px; overflow: hidden; background: #fff; }
.bright-sch .head, .bright-sch .row { display: grid; grid-template-columns: 240px 1fr; border-bottom: 1px solid var(--bright-line); }
.bright-sch .row:last-child { border-bottom: 0; }
.bright-sch .head { background: var(--bright-panel); }
.bright-sch .lab { padding: 8px 12px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--bright-muted); border-right: 1px solid var(--bright-line); }
.bright-sch .days { display: grid; }
.bright-sch .d { padding: 5px 0 4px; text-align: center; font-size: 12.5px; font-weight: 700; color: var(--bright-fg-2); border-right: 1px solid var(--bright-line); line-height: 1.1; }
.bright-sch .d:last-child { border-right: 0; }
.bright-sch .d small { display: block; font-size: 10px; font-weight: 700; color: var(--bright-faint); letter-spacing: .06em; }
.bright-sch .d.we { background: var(--bright-panel-2); color: var(--bright-faint); }
.bright-sch .d.today { color: var(--bright-amber-ink); background: var(--bright-amber-soft); } .bright-sch .d.today small { color: var(--bright-amber-ink); }
.bright-sch .res { padding: 10px 12px; border-right: 1px solid var(--bright-line); display: grid; gap: 2px; align-content: start; }
.bright-sch .res b { font-weight: 700; font-size: 13.5px; } .bright-sch .res span { font-size: 12px; color: var(--bright-muted); }
.bright-sch .util { display: flex; align-items: center; gap: 8px; margin-top: 5px; } .bright-sch .util .bright-bar { flex: 1; height: 4px; min-width: 0; }
.bright-sch .util em { font-style: normal; font-family: var(--bright-mono); font-size: 11.5px; color: var(--bright-fg-2); width: 34px; text-align: right; }
.bright-badge { display: inline-block; font-size: 9.5px; font-weight: 800; letter-spacing: .06em; padding: 1px 6px; border-radius: 5px; background: var(--bright-amber-soft); color: var(--bright-amber-ink); margin-left: 6px; vertical-align: middle; }
.bright-badge.grey { background: var(--bright-panel-2); color: var(--bright-muted); }
.bright-sch .lane { position: relative; background-image: linear-gradient(to right, var(--bright-line) 1px, transparent 1px); min-height: 52px; }
.bright-sch .lane .tod { position: absolute; top: 0; bottom: 0; background: var(--bright-amber-soft); opacity: .45; pointer-events: none; }
.bright-sch .lane .we-col { position: absolute; top: 0; bottom: 0; background: var(--bright-panel); opacity: .6; pointer-events: none; }
.bright-sch .lane .idle { position: absolute; left: 10px; top: 15px; font-size: 12px; color: var(--bright-faint); }
.bright-sch .job { position: absolute; height: 32px; border-radius: 7px; padding: 3px 8px 3px 7px; font-size: 11px; line-height: 1.15; overflow: hidden; white-space: nowrap; cursor: pointer;
  border: 1px solid transparent; border-left-width: 3px; box-sizing: border-box; text-decoration: none; display: block; }
.bright-sch .job b { font-weight: 700; display: block; overflow: hidden; text-overflow: ellipsis; } .bright-sch .job span { opacity: .8; display: block; overflow: hidden; text-overflow: ellipsis; }
.bright-sch .t-conn { background: var(--bright-amber-soft); border-color: var(--bright-amber-line); border-left-color: var(--bright-amber); color: var(--bright-amber-ink); }
.bright-sch .t-meter { background: var(--bright-info-soft); border-color: #C9D8F5; border-left-color: var(--bright-info); color: var(--bright-info); }
.bright-sch .t-disc { background: var(--bright-panel-2); border-color: var(--bright-line-2); border-left-color: var(--bright-fg-2); color: var(--bright-fg-2); }
.bright-sch .t-office { background: #fff; border-color: var(--bright-line-2); color: var(--bright-fg-2); }
.bright-sch .t-off { background: repeating-linear-gradient(135deg, #F1F1EE 0 6px, #fff 6px 12px); border-color: var(--bright-line); color: var(--bright-muted); cursor: default; }
.bright-sch .s-now { border-left-color: var(--bright-amber); box-shadow: 0 0 0 2px var(--bright-amber); }
.bright-sch .s-done { opacity: .55; border-left-color: var(--bright-ok); }
.bright-sch .s-held { border-style: dashed; }
.bright-sch .s-cancel { opacity: .6; border-style: dashed; text-decoration: line-through; border-left-color: var(--bright-crit); }
.bright-sch .job.sel { outline: 2px solid var(--bright-fg); outline-offset: 1px; }
.bright-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--bright-fg-2); margin-top: 8px; }
.bright-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 5px; vertical-align: -2px; border: 1px solid var(--bright-line-2); }
.bright-hist { font-size: 12px; color: var(--bright-muted); } .bright-hist div { padding: 3px 0; border-top: 1px solid var(--bright-line); }
.bright-pos { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.bright-pos a { display: block; border: 1px solid var(--bright-line); border-radius: 12px; padding: 10px 12px; text-decoration: none; color: var(--bright-fg); background: #fff; }
.bright-pos a:hover { border-color: var(--bright-amber); }
.bright-pos a b { display: block; font-size: 13px; } .bright-pos a span { display: block; font-size: 12px; color: var(--bright-muted); } .bright-pos a em { font-style: normal; font-family: var(--bright-mono); font-weight: 600; }

/* Home (step 2.10): figures as links, the day's tasks, recent activity, shortcuts; Reports catalogue */
.bright-kpis > a { display: block; padding: 16px 18px 16px 0; margin-right: 18px; border-right: 1px solid var(--bright-line); color: inherit; text-decoration: none; }
.bright-kpis > a:last-child { border-right: 0; }
.bright-kpis > a:hover .k { color: var(--bright-fg); }
.bright-home { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; margin-top: 18px; align-items: start; }
.bright-home h4, .bright-rep h4 { font-size: 13px; font-weight: 700; color: var(--bright-muted); text-transform: uppercase; letter-spacing: .04em; margin: 0 0 8px; }
.bright-item { display: block; padding: 11px 0; border-bottom: 1px solid var(--bright-line); color: inherit; text-decoration: none; }
.bright-item .row { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.bright-item .sub { font-size: 12.5px; color: var(--bright-muted); margin-top: 2px; }
.bright-item:hover b { text-decoration: underline; }
.bright-tl > div { position: relative; padding: 0 0 12px 18px; border-left: 2px solid var(--bright-line); margin-left: 4px; }
.bright-tl > div::before { content: ""; position: absolute; left: -6px; top: 3px; width: 10px; height: 10px; border-radius: 50%; background: var(--bright-ok); }
.bright-tl b { display: block; font-size: 13.5px; } .bright-tl span { font-size: 12.5px; color: var(--bright-muted); }
.bright-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.bright-tiles a { display: block; border: 1px solid var(--bright-line); border-radius: 8px; padding: 12px; color: inherit; text-decoration: none; }
.bright-tiles a b { display: block; } .bright-tiles a span { font-size: 12.5px; color: var(--bright-muted); }
.bright-tiles a:hover { border-color: var(--bright-fg-2); }
.bright-rep { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; margin-top: 14px; }
@media (max-width: 900px) { .bright-home, .bright-tiles { grid-template-columns: minmax(0, 1fr); } }

/* wide tables scroll inside their card instead of widening the page (owner's browser check, 18 Oct 2026):
   dynamic-content regions hold the table directly, with no report wrapper */
.a-dynamic-content:has(table.bright-table), .t-Region-body:has(table.bright-table) { display: block; overflow-x: auto; }
.bright-table td.bright-num { white-space: nowrap; }

/* ---- from page 0's live fixes (owner's browser checks, 18 Oct 2026), moved here at the full import ---- */
/* APEX 26 marks a current sub-item on its label, not on .a-TreeView-content */
.t-TreeNav .a-TreeView-node .a-TreeView-node .a-TreeView-content:has(> .a-TreeView-label.is-current) { background: transparent; box-shadow: inset 2px 0 0 var(--bright-amber); }
.t-TreeNav .a-TreeView-node .a-TreeView-node .a-TreeView-label.is-current { color: var(--bright-fg); font-weight: 600; }
/* hover (owner, 18 Oct 2026): the theme (Vita, loaded after bright.css) paints the hovered row dark and turns its
   label and arrow white over our light box; scoped to the menu's id so these win in every state */
#t_TreeNav .a-TreeView-row, #t_TreeNav .a-TreeView-row.is-hover, #t_TreeNav .a-TreeView-row.is-focused,
#t_TreeNav .a-TreeView-row.is-selected { background: transparent !important; box-shadow: none !important; }
#t_TreeNav .a-TreeView-content.is-hover, #t_TreeNav .a-TreeView-content:hover { background: var(--bright-panel) !important; color: var(--bright-fg) !important; }
#t_TreeNav .a-TreeView-content.is-hover .a-TreeView-label, #t_TreeNav .a-TreeView-content:hover .a-TreeView-label,
#t_TreeNav .a-TreeView-content.is-hover .bright-ico, #t_TreeNav .a-TreeView-content:hover .bright-ico { color: var(--bright-fg) !important; }
#t_TreeNav .a-TreeView-node--leaf > .a-TreeView-content.is-current--top.is-hover,
#t_TreeNav .a-TreeView-node--leaf > .a-TreeView-content.is-current--top:hover { background: var(--bright-amber-soft) !important; }
#t_TreeNav .a-TreeView-toggle, #t_TreeNav .a-TreeView-row.is-hover ~ .a-TreeView-toggle { color: var(--bright-faint, #a3a7ad) !important; }
#t_TreeNav .a-TreeView-node:hover > .a-TreeView-toggle { color: var(--bright-fg-2) !important; }
/* lists (owner, 18 Oct 2026): a record's name stays on one line, so its column stretches (customer list); only the
   leading number column stays unwrapped, other number cells such as the service list wrap again */
.bright-table td > a:first-child { white-space: nowrap; }
/* page header as the prototype draws it (idhead): title, one-line lede, actions on the right; filters beneath */
.bright-idhead.c { align-items: center; }
.bright-idhead > div:not(.big):not(.actions) { min-width: 0; }
.bright-idhead .actions { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.bright-idhead .actions .t-Button { text-decoration: none; }
.bright-toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 12px; }
.bright-toolbar .bright-chips { margin: 0; }
.bright-toolbar .sp { flex: 1; }
.bright-toolbar select, .bright-toolbar input { font: inherit; font-size: 12.5px; font-weight: 600; color: var(--bright-fg-2); background: #fff;
  border: 1px solid var(--bright-line-2); border-radius: 9px; padding: 5px 10px; min-height: 30px; }
.bright-toolbar input[type=search] { min-width: 280px; font-weight: 500; }
.bright-toolbar select.is-set { border-color: var(--bright-fg); color: var(--bright-fg); }
.bright-toolbar label { font-size: 12px; color: var(--bright-muted); font-weight: 600; }
/* record tabs: the theme's tabs container drawn as the prototype's tab bar */
.t-Body .bright-rtabs.t-TabsRegion { border: 0; background: transparent; }
.t-Body .bright-rtabs > .t-Tabs, .t-Body .bright-rtabs .t-TabsRegion-tabs, .t-Body .bright-rtabs ul.t-Tabs { display: flex; flex-wrap: wrap; gap: 4px; border: 0; border-bottom: 1px solid var(--bright-line);
  background: transparent; box-shadow: none; margin: 0 0 18px; padding: 0; }
.t-Body .bright-rtabs .t-Tabs-item { background: transparent; border: 0; box-shadow: none; }
.t-Body .bright-rtabs .t-Tabs-link { padding: 8px 12px 10px; color: var(--bright-muted); font-weight: 600; border: 0; border-bottom: 2px solid transparent;
  margin-bottom: -1px; background: transparent !important; box-shadow: none !important; border-radius: 0; }
.t-Body .bright-rtabs .t-Tabs-link:hover { color: var(--bright-fg); }
.t-Body .bright-rtabs .t-Tabs-item.is-active .t-Tabs-link { color: var(--bright-fg); border-bottom-color: var(--bright-fg); }
.t-Body .bright-rtabs .t-Tabs-item.is-active { box-shadow: none; }
.t-Body .bright-rtabs .t-TabsRegion-items { padding: 0; background: transparent; }
/* ---- end of the page 0 fixes ---- */

/* ---- spacing scale (owner, 18 Oct 2026: "no spacing between controls"). One scale for the whole app; the
   rules are qualified with .t-Body because the theme (Vita) loads after this file ---- */
:root { --bright-s1: 4px; --bright-s2: 8px; --bright-s3: 12px; --bright-s4: 16px; --bright-s5: 24px; }
/* buttons side by side: in a region's button bar, in a blank region, in a page header */
.t-Body .t-Button + .t-Button, .t-Body .t-Button + a.t-Button, .t-Body a.t-Button + .t-Button { margin-left: var(--bright-s2); }
.t-Body .t-Region-buttons-left, .t-Body .t-Region-buttons-right { display: flex; flex-wrap: wrap; align-items: center; gap: var(--bright-s2); }
.t-Body .t-Region-buttons-left > .t-Button + .t-Button, .t-Body .t-Region-buttons-right > .t-Button + .t-Button,
.t-Body .bright-idhead .actions > .t-Button + .t-Button { margin-left: 0; }
/* a button drawn after a region's fields, and fields after a button */
.t-Body .container + .t-Button, .t-Body .t-Form-fieldContainer + .t-Button, .t-Body .t-Button + .container { margin-top: var(--bright-s2); }
/* inside a drawn region: what follows a table, a strip of figures or a line of text keeps its distance */
.t-Body a-dynamic-content { display: block; }
.t-Body table + *, .t-Body .bright-table + *, .t-Body .bright-kpis + *, .t-Body .bright-lede + table, .t-Body p + table { margin-top: var(--bright-s3); }
.t-Body .bright-lede:last-child { margin-bottom: 0; }
/* blank regions (no card) keep the same distance to the next region as cards do */
.t-Body .col > div[id]:not(.t-Region):not(.t-ButtonRegion):not(#page-helpers):has(a-dynamic-content, .t-Button, .t-Form-fieldContainer, table) { margin-bottom: var(--bright-s4); }
/* sortable lists: a server-sorted header is a link (th.bright-sort), a complete list sorts in the browser
   (table.bright-csort); the arrow shows the order in use */
.t-Body th.bright-sort a { color: inherit; text-decoration: none; white-space: nowrap; }
.t-Body th.bright-sort a:hover, .t-Body table.bright-csort > thead th:hover { color: var(--bright-fg); }
.t-Body table.bright-csort > thead th { cursor: pointer; user-select: none; white-space: nowrap; }
.t-Body th.bright-sort a::after, .t-Body table.bright-csort > thead th:not(:empty)::after { content: "\2195"; margin-left: var(--bright-s1); font-size: 10px; opacity: .35; }
.t-Body th.bright-sort.is-asc a::after, .t-Body table.bright-csort > thead th.is-asc::after { content: "\2191"; opacity: 1; }
.t-Body th.bright-sort.is-desc a::after, .t-Body table.bright-csort > thead th.is-desc::after { content: "\2193"; opacity: 1; }
.t-Body th.is-asc, .t-Body th.is-desc { color: var(--bright-fg); }
/* a list row that opens its record (data-b-href), and the column of boxes of a list you choose rows from */
.t-Body tr[data-b-href] { cursor: pointer; }
.t-Body tr[data-b-href]:hover td { background: var(--bright-panel); }
.t-Body .bright-table th.bright-pickcol, .t-Body .bright-table td:has(> input.bright-pick) { width: 32px; text-align: center; }
/* ---- end of the spacing scale ---- */

/* ---- nav icons and header breadcrumb (apex/tools/nav_icons.py) ---- */
/* one header per page (owner, 18 Oct 2026): the breadcrumb is a compact trail in the header bar after the
   logo, as in the prototype's top bar; each page keeps the header it was designed with */
.bright-crumbs { display: flex; align-items: center; margin-left: 20px; min-width: 0; }
.bright-crumbs .t-Breadcrumb { display: flex; flex-wrap: nowrap; align-items: center; margin: 0; padding: 0; }
.bright-crumbs .t-Breadcrumb-item { display: flex; align-items: center; font-size: 13px; white-space: nowrap; }
.bright-crumbs .t-Breadcrumb-item:after { content: "/"; margin: 0 8px; color: var(--bright-faint); }
.bright-crumbs .t-Breadcrumb-item:last-child:after { content: none; }
.bright-crumbs .t-Breadcrumb-label { color: var(--bright-muted); text-decoration: none; font-size: 13px; font-weight: 500; margin: 0; line-height: 1.2; }
.bright-crumbs .t-Breadcrumb-item.is-active .t-Breadcrumb-label { color: var(--bright-fg); font-weight: 700; }
@media (max-width: 900px) { .bright-crumbs .t-Breadcrumb-item:not(.is-active) { display: none; } }
/* main menu icons: Figma Desktop / Chrome (78:10); Work orders = mobile Jobs tab (70:1117);
   Approvals, Messages, Reports are not in Figma and are drawn in the same stroke style */
.bright-ico { width: 18px; height: 18px; display: inline-block; background-color: currentColor;
  -webkit-mask: var(--bright-ico) center / 18px 18px no-repeat; mask: var(--bright-ico) center / 18px 18px no-repeat; }
.bright-ico:before { content: none !important; }
.bright-ico-approvals { --bright-ico: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2218%22 height=%2218%22 viewBox=%220 0 18 18%22 fill=%22none%22%3E%3Crect x=%222.25%22 y=%222.25%22 width=%2213.5%22 height=%2213.5%22 rx=%222.25%22 stroke=%22%23000%22 stroke-width=%221.3125%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22/%3E%3Cpath d=%22M6 9.1875L8.0625 11.25L12 6.9375%22 stroke=%22%23000%22 stroke-width=%221.3125%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22/%3E%3C/svg%3E"); }
.bright-ico-billing { --bright-ico: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2218%22 height=%2218%22 viewBox=%220 0 18 18%22 fill=%22none%22%3E%3Cpath d=%22M4.5 2.25H11.25L15 6V15.75H4.5V2.25Z%22 stroke=%22%23000%22 stroke-width=%221.3125%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22/%3E%3Cpath d=%22M10.5 2.25V6.75H15M6.75 9.75H12M6.75 12.75H12%22 stroke=%22%23000%22 stroke-width=%221.3125%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22/%3E%3C/svg%3E"); }
.bright-ico-cashier { --bright-ico: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2218%22 height=%2218%22 viewBox=%220 0 18 18%22 fill=%22none%22%3E%3Cpath d=%22M15 4.5H3C2.17157 4.5 1.5 5.17157 1.5 6V12.75C1.5 13.5784 2.17157 14.25 3 14.25H15C15.8284 14.25 16.5 13.5784 16.5 12.75V6C16.5 5.17157 15.8284 4.5 15 4.5Z%22 stroke=%22%23000%22 stroke-width=%221.3125%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22/%3E%3Cpath d=%22M1.5 7.5H16.5M5.25 11.25H7.5%22 stroke=%22%23000%22 stroke-width=%221.3125%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22/%3E%3C/svg%3E"); }
.bright-ico-collections { --bright-ico: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2218%22 height=%2218%22 viewBox=%220 0 18 18%22 fill=%22none%22%3E%3Cpath d=%22M9 6V9.75L11.25 11.25%22 stroke=%22%23000%22 stroke-width=%221.3125%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22/%3E%3Cpath d=%22M9 15.75C12.3137 15.75 15 13.0637 15 9.75C15 6.43629 12.3137 3.75 9 3.75C5.68629 3.75 3 6.43629 3 9.75C3 13.0637 5.68629 15.75 9 15.75Z%22 stroke=%22%23000%22 stroke-width=%221.3125%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22/%3E%3Cpath d=%22M3.75 2.25L1.5 4.5M14.25 2.25L16.5 4.5%22 stroke=%22%23000%22 stroke-width=%221.3125%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22/%3E%3C/svg%3E"); }
.bright-ico-customers { --bright-ico: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2218%22 height=%2218%22 viewBox=%220 0 18 18%22 fill=%22none%22%3E%3Cpath d=%22M6.75 8.625C8.19975 8.625 9.375 7.44975 9.375 6C9.375 4.55025 8.19975 3.375 6.75 3.375C5.30025 3.375 4.125 4.55025 4.125 6C4.125 7.44975 5.30025 8.625 6.75 8.625Z%22 stroke=%22%23000%22 stroke-width=%221.3125%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22/%3E%3Cpath d=%22M1.875 15C1.875 13.7071 2.38861 12.4671 3.30285 11.5529C4.21709 10.6386 5.45707 10.125 6.75 10.125C8.04293 10.125 9.28291 10.6386 10.1971 11.5529C11.1114 12.4671 11.625 13.7071 11.625 15%22 stroke=%22%23000%22 stroke-width=%221.3125%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22/%3E%3Cpath d=%22M12 3C12.6962 3 13.3639 3.27656 13.8562 3.76884C14.3484 4.26113 14.625 4.92881 14.625 5.625C14.625 6.32119 14.3484 6.98887 13.8562 7.48116C13.3639 7.97344 12.6962 8.25 12 8.25M16.125 15C16.1274 13.9674 15.8019 12.9607 15.1954 12.1249C14.5888 11.2892 13.7325 10.6677 12.75 10.35%22 stroke=%22%23000%22 stroke-width=%221.3125%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22/%3E%3C/svg%3E"); }
.bright-ico-home { --bright-ico: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2218%22 height=%2218%22 viewBox=%220 0 18 18%22 fill=%22none%22%3E%3Cpath d=%22M2.25 8.25L9 2.25L15.75 8.25V15C15.75 15.3978 15.592 15.7794 15.3107 16.0607C15.0294 16.342 14.6478 16.5 14.25 16.5H11.25V12H6.75V16.5H3.75C3.35218 16.5 2.97064 16.342 2.68934 16.0607C2.40804 15.7794 2.25 15.3978 2.25 15V8.25Z%22 stroke=%22%23000%22 stroke-width=%221.3125%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22/%3E%3C/svg%3E"); }
.bright-ico-inventory { --bright-ico: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2218%22 height=%2218%22 viewBox=%220 0 18 18%22 fill=%22none%22%3E%3Cpath d=%22M2.25 5.25L9 2.25L15.75 5.25V12.75L9 15.75L2.25 12.75V5.25Z%22 stroke=%22%23000%22 stroke-width=%221.3125%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22/%3E%3Cpath d=%22M2.25 5.25L9 8.25M9 8.25L15.75 5.25M9 8.25V15.75%22 stroke=%22%23000%22 stroke-width=%221.3125%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22/%3E%3C/svg%3E"); }
.bright-ico-jobs { --bright-ico: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2218%22 height=%2218%22 viewBox=%220 0 22 22%22 fill=%22none%22%3E%3Cpath d=%22M2.29175 2.75H7.33341L6.64591 5.95833H2.97925L2.29175 2.75Z%22 stroke=%22%23000%22 stroke-width=%221.74167%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22/%3E%3Cpath d=%22M6.64575 5.9585H14.2083L7.79159 12.8335%22 stroke=%22%23000%22 stroke-width=%221.74167%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22/%3E%3Cpath d=%22M12.8333 12.8335H1.83325V15.5835H4.12492%22 stroke=%22%23000%22 stroke-width=%221.74167%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22/%3E%3Cpath d=%22M12.8333 12.8332V9.1665H16.4999L19.2499 12.3748V15.5832H17.8749%22 stroke=%22%23000%22 stroke-width=%221.74167%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22/%3E%3Cpath d=%22M7.79175 15.5835H14.2084%22 stroke=%22%23000%22 stroke-width=%221.74167%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22/%3E%3Cpath d=%22M5.95833 17.8752C6.97086 17.8752 7.79167 17.0544 7.79167 16.0418C7.79167 15.0293 6.97086 14.2085 5.95833 14.2085C4.94581 14.2085 4.125 15.0293 4.125 16.0418C4.125 17.0544 4.94581 17.8752 5.95833 17.8752Z%22 stroke=%22%23000%22 stroke-width=%221.74167%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22/%3E%3Cpath d=%22M16.0416 17.8752C17.0541 17.8752 17.8749 17.0544 17.8749 16.0418C17.8749 15.0293 17.0541 14.2085 16.0416 14.2085C15.0291 14.2085 14.2083 15.0293 14.2083 16.0418C14.2083 17.0544 15.0291 17.8752 16.0416 17.8752Z%22 stroke=%22%23000%22 stroke-width=%221.74167%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22/%3E%3C/svg%3E"); }
.bright-ico-messages { --bright-ico: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2218%22 height=%2218%22 viewBox=%220 0 18 18%22 fill=%22none%22%3E%3Cpath d=%22M15.75 11.25C15.75 12.0784 15.0784 12.75 14.25 12.75H5.625L2.25 15.75V3.75C2.25 2.92157 2.92157 2.25 3.75 2.25H14.25C15.0784 2.25 15.75 2.92157 15.75 3.75V11.25Z%22 stroke=%22%23000%22 stroke-width=%221.3125%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22/%3E%3Cpath d=%22M5.625 6.375H12.375M5.625 9H10.125%22 stroke=%22%23000%22 stroke-width=%221.3125%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22/%3E%3C/svg%3E"); }
.bright-ico-metering { --bright-ico: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2218%22 height=%2218%22 viewBox=%220 0 18 18%22 fill=%22none%22%3E%3Cpath d=%22M9 9.75V6M2.25 9.75C2.25 7.95979 2.96116 6.2429 4.22703 4.97703C5.4929 3.71116 7.20979 3 9 3C10.7902 3 12.5071 3.71116 13.773 4.97703C15.0388 6.2429 15.75 7.95979 15.75 9.75%22 stroke=%22%23000%22 stroke-width=%221.3125%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22/%3E%3Cpath d=%22M9 11.25C9.82843 11.25 10.5 10.5784 10.5 9.75C10.5 8.92157 9.82843 8.25 9 8.25C8.17157 8.25 7.5 8.92157 7.5 9.75C7.5 10.5784 8.17157 11.25 9 11.25Z%22 stroke=%22%23000%22 stroke-width=%221.3125%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22/%3E%3Cpath d=%22M3.75 15.75H14.25%22 stroke=%22%23000%22 stroke-width=%221.3125%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22/%3E%3C/svg%3E"); }
.bright-ico-outages { --bright-ico: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2218%22 height=%2218%22 viewBox=%220 0 18 18%22 fill=%22none%22%3E%3Cpath d=%22M9 2.25V8.25%22 stroke=%22%23000%22 stroke-width=%221.3125%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22/%3E%3Cpath d=%22M4.95 4.95001C4.18406 5.74468 3.66882 6.74712 3.46846 7.83249C3.2681 8.91785 3.39147 10.0382 3.8232 11.0539C4.25494 12.0697 4.97596 12.936 5.89647 13.545C6.81698 14.1539 7.89629 14.4786 9 14.4786C10.1037 14.4786 11.183 14.1539 12.1035 13.545C13.024 12.936 13.7451 12.0697 14.1768 11.0539C14.6085 10.0382 14.7319 8.91785 14.5315 7.83249C14.3312 6.74712 13.8159 5.74468 13.05 4.95001%22 stroke=%22%23000%22 stroke-width=%221.3125%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22/%3E%3C/svg%3E"); }
.bright-ico-reports { --bright-ico: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2218%22 height=%2218%22 viewBox=%220 0 18 18%22 fill=%22none%22%3E%3Cpath d=%22M2.25 15.75H15.75%22 stroke=%22%23000%22 stroke-width=%221.3125%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22/%3E%3Cpath d=%22M4.875 12.75V9.375M9 12.75V4.5M13.125 12.75V7.125%22 stroke=%22%23000%22 stroke-width=%221.3125%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22/%3E%3C/svg%3E"); }
.bright-ico-sales { --bright-ico: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2218%22 height=%2218%22 viewBox=%220 0 18 18%22 fill=%22none%22%3E%3Cpath d=%22M4.5 4.5H15.75L14.625 10.5H5.625L4.5 4.5Z%22 stroke=%22%23000%22 stroke-width=%221.3125%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22/%3E%3Cpath d=%22M6.75 16.125C7.37132 16.125 7.875 15.6213 7.875 15C7.875 14.3787 7.37132 13.875 6.75 13.875C6.12868 13.875 5.625 14.3787 5.625 15C5.625 15.6213 6.12868 16.125 6.75 16.125Z%22 stroke=%22%23000%22 stroke-width=%221.3125%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22/%3E%3Cpath d=%22M13.5 16.125C14.1213 16.125 14.625 15.6213 14.625 15C14.625 14.3787 14.1213 13.875 13.5 13.875C12.8787 13.875 12.375 14.3787 12.375 15C12.375 15.6213 12.8787 16.125 13.5 16.125Z%22 stroke=%22%23000%22 stroke-width=%221.3125%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22/%3E%3Cpath d=%22M4.5 4.5L3.75 2.25H1.5%22 stroke=%22%23000%22 stroke-width=%221.3125%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22/%3E%3C/svg%3E"); }
.bright-ico-service { --bright-ico: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2218%22 height=%2218%22 viewBox=%220 0 18 18%22 fill=%22none%22%3E%3Cpath d=%22M7.33875 4.5L13.5 10.66125L11.9595 12.20175C11.3816 12.77962 10.6022 13.10441 9.78562 13.10441C8.96904 13.10441 8.18963 12.77962 7.61175 12.20175L5.79825 10.38825C5.22038 9.81037 4.89559 9.03096 4.89559 8.21438C4.89559 7.39779 5.22038 6.61838 5.79825 6.0405L7.33875 4.5Z%22 stroke=%22%23000%22 stroke-width=%221.3125%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22/%3E%3Cpath d=%22M3 15L5.625 12.375%22 stroke=%22%23000%22 stroke-width=%221.3125%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22/%3E%3Cpath d=%22M11.25 3L8.625 5.625%22 stroke=%22%23000%22 stroke-width=%221.3125%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22/%3E%3Cpath d=%22M15 6.75L12.375 9.375%22 stroke=%22%23000%22 stroke-width=%221.3125%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22/%3E%3C/svg%3E"); }
.bright-ico-settings { --bright-ico: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2218%22 height=%2218%22 viewBox=%220 0 18 18%22 fill=%22none%22%3E%3Cpath d=%22M9 11.25C10.2426 11.25 11.25 10.2426 11.25 9C11.25 7.75736 10.2426 6.75 9 6.75C7.75736 6.75 6.75 7.75736 6.75 9C6.75 10.2426 7.75736 11.25 9 11.25Z%22 stroke=%22%23000%22 stroke-width=%221.3125%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22/%3E%3Cpath d=%22M9 1.5V3.75M9 14.25V16.5M1.5 9H3.75M14.25 9H16.5M3.675 3.675L5.25 5.25M12.75 12.75L14.325 14.325M3.675 14.325L5.25 12.75M12.75 5.25L14.325 3.675%22 stroke=%22%23000%22 stroke-width=%221.3125%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22/%3E%3C/svg%3E"); }
/* ---- end nav icons ---- */

/* Take payment (page 40, Figma 83:643): account cards with an allocation per open item, the tender on the right */
.bright-pay { grid-template-columns: minmax(0, 1fr) 360px; }
.bright-pay .bright-card { border-radius: 16px; padding: 18px 20px; }
.bright-pay .bright-card + .bright-card, .bright-payacct + .bright-payacct { margin-top: 16px; }
.bright-acct { display: flex; align-items: center; gap: 14px; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--bright-line); }
.bright-av { width: 44px; height: 44px; border-radius: 12px; flex: none; display: grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--bright-amber), var(--bright-amber-deep)); }
.bright-acct .who { flex: 1; min-width: 0; } .bright-acct .who b { display: block; font-size: 17px; }
.bright-acct .who span, .bright-acct .bal span { font-size: 12.5px; color: var(--bright-muted); }
.bright-acct .bal { text-align: right; } .bright-acct .bal b { display: block; font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.bright-h { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--bright-muted); }
.bright-alloctable td { vertical-align: middle; }
.bright-alloctable tr.on td { background: var(--bright-amber-soft); }
.bright-alloctable .bright-who span { display: block; font-size: 12px; color: var(--bright-muted); }
.bright-alloctable td:first-child, .bright-alloctable th:first-child { width: 32px; }
input.b-alloc, input.b-take { font: inherit; }
input.b-alloc { width: 110px; text-align: right; font-family: var(--bright-mono); padding: 6px 10px; border: 1px solid var(--bright-line-2); border-radius: 8px; background: #fff; }
input.b-alloc:focus { outline: none; border-color: var(--bright-amber); box-shadow: 0 0 0 3px var(--bright-amber-soft); }
input.b-take { width: 16px; height: 16px; accent-color: var(--bright-fg); }
.bright-payfoot .bright-kv { font-size: 14px; } .bright-payfoot .bright-kv > b { font-family: var(--bright-mono); }
.bright-hint.bad { color: var(--bright-crit); }
.bright-addcard { border-style: dashed; }
.bright-addhead { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 10px; }
.bright-addhead .plus { width: 32px; height: 32px; border: 1px solid var(--bright-line-2); border-radius: 8px; display: grid; place-items: center; font-size: 18px; flex: none; }
.bright-addhead b { display: block; } .bright-addhead span { font-size: 12.5px; color: var(--bright-muted); }
.bright-tender { position: sticky; top: 72px; }
.bright-sublabel { display: block; font-size: 13px; color: var(--bright-muted); margin: 10px 0 2px; }
.bright-amount { display: flex; align-items: baseline; gap: 2px; font-size: 40px; font-weight: 800; letter-spacing: -.02em; }
.bright-amount input { font: inherit; letter-spacing: inherit; border: 0; padding: 0; width: 100%; min-width: 0; background: transparent; color: var(--bright-fg); }
.bright-amount input:focus { outline: none; box-shadow: 0 2px 0 var(--bright-amber); }
.bright-qas { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0 14px; }
.bright-qa { padding: 5px 12px; border: 1px solid var(--bright-line-2); border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--bright-fg-2); text-decoration: none; }
.bright-qa:hover { border-color: var(--bright-fg-2); text-decoration: none; }
.bright-qa.on { background: var(--bright-fg); border-color: var(--bright-fg); color: #fff; }
.bright-tender .t-Form-fieldContainer--radioButtonGroup .apex-item-grid-row { display: grid; grid-template-columns: 1fr 1fr; }
.bright-tender .bright-change .t-Form-itemWrapper, .bright-tender .bright-change .display_only { font-family: var(--bright-mono); font-size: 18px; font-weight: 600; text-align: right; }
.bright-tender .t-Button--stretch { display: flex; width: 100%; margin: 8px 0 0; }
.bright-tillday { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--bright-line); }
.bright-tillday b { display: block; font-family: var(--bright-mono); font-size: 14px; } .bright-tillday span { font-size: 12px; color: var(--bright-muted); }
.bright-tender .bright-lede { font-size: 12.5px; color: var(--bright-muted); margin-top: 10px; }

/* Till (pages 41 and 44, Figma 105:3472): segmented bar, receipts with chips, the count card and the day by cashier */
.bright-seg { display: inline-flex; gap: 6px; flex-wrap: wrap; margin: 0 0 16px; }
.bright-seg a { padding: 6px 14px; border: 1px solid var(--bright-line-2); border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--bright-fg-2); text-decoration: none; }
.bright-seg a:hover { border-color: var(--bright-fg-2); text-decoration: none; }
.bright-seg a.on { background: var(--bright-fg); border-color: var(--bright-fg); color: #fff; }
.bright-till { margin-top: 20px; }
.bright-tillrcpt td { vertical-align: middle; }
.bright-tillrcpt .bright-who b { display: block; font-size: 15px; } .bright-tillrcpt .bright-who span { display: block; font-size: 12px; color: var(--bright-muted); }
.bright-tillrcpt tr.is-void td { color: var(--bright-muted); } .bright-tillrcpt tr.is-void .bright-who b { color: var(--bright-muted); }
.bright-chev { color: var(--bright-faint); font-size: 18px; }
.bright-countcard { border-radius: 16px; padding: 18px 20px; }
.bright-countcard .bright-cardh { margin: 0 0 6px; }
.bright-countcard .bright-kv { padding: 8px 0; border-top: 1px solid var(--bright-line); font-size: 14px; }
.bright-countcard .bright-kv > b { font-family: var(--bright-mono); }
.bright-diff b.ok { color: var(--bright-ok); } .bright-diff b.bad { color: var(--bright-crit); }
.bright-countcard .t-Button--stretch { display: flex; width: 100%; margin: 10px 0 0; }
.bright-countcard .bright-lede { font-size: 12.5px; margin: 10px 0 0; }
.bright-till .bright-card + .bright-card, .bright-till .bright-countcard + div { margin-top: 16px; }
#by-cashier { margin-top: 20px; }
.bright-bycashier { border-top: 1px solid var(--bright-line); margin-top: 8px; }
.bright-bycashier a.bright-kv { padding: 9px 0; border-bottom: 1px solid var(--bright-line); color: var(--bright-fg-2); text-decoration: none; font-size: 13.5px; }
.bright-bycashier a.bright-kv:hover span { color: var(--bright-fg); }
.bright-bycashier a.bright-kv b { font-family: var(--bright-mono); color: var(--bright-fg); }
input.bright-money { font-family: var(--bright-mono); }

/* Aged debtors overview (page 70's first tab, Figma 84:766): gross by age, the tenants' age mix, the decision queue */
.bright-kpis .v.ok { color: var(--bright-ok); }
.bright-overview { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; margin-top: 20px; }
@media (max-width: 1100px) { .bright-overview { grid-template-columns: 1fr; } }
.bright-agebar { display: flex; height: 26px; border-radius: 4px; overflow: hidden; background: var(--bright-panel-2); margin: 10px 0 8px; }
.bright-agebar i { display: block; height: 100%; }
.bright-tenantmix .bright-agebar { height: 14px; margin: 0; min-width: 160px; }
.bright-agebar .a0, .bright-agelegend .a0 { background: #FCE3B4; }
.bright-agebar .a1, .bright-agelegend .a1 { background: #F9C978; }
.bright-agebar .a2, .bright-agelegend .a2 { background: var(--bright-amber); }
.bright-agebar .a3, .bright-agelegend .a3 { background: #C9780E; }
.bright-agebar .a4, .bright-agelegend .a4 { background: #7A4A06; }
.bright-agebar .mg, .bright-agelegend .mg { background: repeating-linear-gradient(135deg, var(--bright-line-2) 0 4px, var(--bright-panel-2) 4px 8px); }
.bright-agelegend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: var(--bright-fg-2); margin-bottom: 20px; }
.bright-agelegend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.bright-agelegend b { font-family: var(--bright-mono); font-weight: 500; margin-left: 4px; }
.bright-tenantmix td:nth-child(2) { width: 50%; }
.bright-queue td { vertical-align: middle; }
.bright-queue .bright-who b { display: block; } .bright-queue .bright-who span { display: block; font-size: 12px; color: var(--bright-muted); }

/* Reports (page 141): the interactive report in the app's list style: no grid or shaded header, the toolbar as the
   page's own controls (search box and buttons like the lists' toolbars), rows divided by a hairline */
.a-IRR-container, .a-IRR { border: 0; box-shadow: none; background: transparent; }
.a-IRR-toolbar { background: transparent; border: 0; padding: 0 0 12px; gap: 8px; }
.a-IRR-search-field, .a-IRR-toolbar .a-IRR-select-list { border: 1px solid var(--bright-line-2); border-radius: 9px; font: inherit; font-size: 13px; }
.a-IRR-toolbar .a-Button, .a-IRR-button { border: 1px solid var(--bright-line-2); border-radius: 9px; background: #fff; box-shadow: none; font-weight: 600; font-size: 13px; color: var(--bright-fg-2); }
.a-IRR-toolbar .a-Button:hover, .a-IRR-button:hover { border-color: var(--bright-fg-2); color: var(--bright-fg); }
.a-IRR-tableContainer, .a-IRR-table { border: 0; }
.a-IRR-table { border-collapse: collapse; width: 100%; }
.a-IRR-table th { background: transparent; border: 0; border-bottom: 1px solid var(--bright-line); padding: 6px 10px; text-align: left; }
.a-IRR-table th .a-IRR-headerLink { padding: 0; color: inherit; }
.a-IRR-table td { border: 0; border-bottom: 1px solid var(--bright-line); padding: 9px 10px; font-size: 13.5px; background: transparent; }
.a-IRR-table tr:hover td { background: var(--bright-panel); }
.a-IRR-table td.u-tR, .a-IRR-table th.u-tR { text-align: right; }
.a-IRR-controls { background: transparent; border: 0; }
.a-IRR-pagination, .a-IRR-paginationWrap { font-size: 12.5px; color: var(--bright-muted); border: 0; background: transparent; }
.a-IRR-actions-menu .a-Menu-label, .a-Menu .a-Menu-label { font-size: 13px; }

/* Reports parameters wrap at any count (141); the count card's heading on 41/44 (also inline on those pages until the next full import) */
#report-params { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: flex-end; }
#report-params > .t-Form-fieldContainer, #report-params .t-Form-fieldContainer { flex: 1 1 220px; max-width: 320px; width: auto; margin: 0; }
#report-params > .t-Button, #report-params > button { flex: none; margin-bottom: 8px; }
.bright-countcard::before { display: block; margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--bright-muted); }
.bright-countcard.h-close::before { content: "Close & count"; }
.bright-countcard.h-recon::before { content: "Reconcile (supervisor)"; }
.bright-countcard .t-Form-fieldContainer { display: block; width: 100%; max-width: none; }

/* brightPrompt / brightConfirm (page 0): the modal in the app's look; page 0 injects the same rules until this file carries them */
.bright-modal{--bright-modal:1;border:0;border-radius:16px;padding:22px 24px 18px;width:min(440px,calc(100vw - 32px));box-shadow:0 20px 60px rgba(0,0,0,.25);font-family:var(--bright-ui,inherit);color:var(--bright-fg,#15171A);background:#fff}
.bright-modal::backdrop{background:rgba(21,23,26,.45)}
.bright-modal h3{margin:0 0 8px;font-size:17px;font-weight:700}
.bright-modal p{margin:0 0 14px;color:var(--bright-fg-2,#454A52);font-size:14px}
.bright-modal label{display:block;font-size:13px;color:var(--bright-muted,#7A7F87)}
.bright-modal input{display:block;width:100%;box-sizing:border-box;margin-top:6px;padding:10px 12px;font:inherit;font-size:14px;color:inherit;border:1px solid var(--bright-line-2,#D8D6CF);border-radius:9px}
.bright-modal input:focus{outline:none;border-color:var(--bright-amber,#F5A623);box-shadow:0 0 0 3px var(--bright-amber-soft,#FFF4DF)}
.bright-modal-err{min-height:18px;margin-top:4px;color:var(--bright-crit,#D23F3F);font-size:12.5px}
.bright-modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:12px}
.bright-modal.is-danger .t-Button--hot{background:var(--bright-crit,#D23F3F);border-color:var(--bright-crit,#D23F3F);color:#fff}
.bright-modal .t-Button:focus-visible{outline:none;box-shadow:0 0 0 3px var(--bright-amber-soft,#FFF4DF);border-color:var(--bright-amber,#F5A623)}

/* pills stay on one line; a pill of free text (32's rejection reason) may wrap */
.bright-pill { white-space: nowrap; }
.bright-pill--wrap { white-space: normal; }

/* money entries (page 0's bright-money): a $ before the figure, mono digits; under a floating label only once the
   label has moved up (the field focused or filled) */
input.bright-money { font-family: var(--bright-mono); font-variant-numeric: tabular-nums; }
.t-Form-fieldContainer:not(.t-Form-fieldContainer--floatingLabel) input.bright-money:not(.bright-money--bare),
.t-Form-fieldContainer--floatingLabel.is-active input.bright-money:not(.bright-money--bare),
.t-Form-fieldContainer--floatingLabel.js-show-label input.bright-money:not(.bright-money--bare),
.t-Form-fieldContainer--floatingLabel:focus-within input.bright-money:not(.bright-money--bare),
input.bright-money:not(.bright-money--bare):not(.apex-item-text) {
  padding-left: 24px !important;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='16'%3E%3Ctext x='1' y='12.5' font-family='Menlo,monospace' font-size='13' fill='%237A7F87'%3E%24%3C/text%3E%3C/svg%3E") no-repeat 11px 50%;
}
#find-account { margin-top: 24px; }

/* 21's read-only profile */
.bright-profile { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0 32px; }
.bright-profile > div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--bright-line); font-size: 14px; }
.bright-profile span { color: var(--bright-muted); } .bright-profile b { font-weight: 600; text-align: right; } .bright-profile i.none { color: var(--bright-faint); font-style: normal; font-weight: 400; }

/* lists (owner's check at 1056 px): dates and money stay on one line; a list wider than its card scrolls inside
   the card, never the page */
.bright-table td.bright-date, .bright-table td.u-tR, .bright-table th { white-space: nowrap !important; }
.t-Body :is(div, section):has(> table.bright-table) { overflow-x: auto; max-width: 100%; }
.bright-cols > *, .t-TabsRegion-items > *, .t-Region-body { min-width: 0; }
/* 40 under 1150 px: a narrower tender column, the service header wraps instead of squeezing */
@media (max-width: 1150px) { .bright-pay { grid-template-columns: minmax(0, 1fr) 300px; } }
.bright-acct { flex-wrap: wrap; row-gap: 6px; } .bright-acct .who { flex: 1 1 220px; } .bright-acct .bal { margin-left: auto; }
/* 40: the search (two thirds) and Account no. (one third) side by side */
#find-account:has(> #P40_Q_CONTAINER), #find-account :has(> #P40_Q_CONTAINER) { display: flex; flex-wrap: wrap; column-gap: 12px; align-items: flex-start; }
#find-account .bright-addhead { flex: 1 1 100%; }
#P40_Q_CONTAINER { flex: 2 1 0; min-width: 0; } #P40_ACCT_CONTAINER { flex: 1 1 0; min-width: 96px; }
/* the $ of a money field on the value's line, clear of a raised floating label */
.t-Form-fieldContainer--floatingLabel input.bright-money:not(.bright-money--bare) { background-position: 11px calc(100% - 6px) !important; }

/* 40: Account no. first, the + at the right end of the card header */
.bright-addhead { align-items: center; } .bright-addhead > div { flex: 1 1 auto; min-width: 0; }
.bright-addbtn { flex: none; width: 34px; height: 34px; display: grid; place-items: center; padding: 0; border: 1px solid var(--bright-line-2); border-radius: 8px; background: #fff; color: var(--bright-fg); cursor: pointer; }
.bright-addbtn:hover { border-color: var(--bright-fg-2); } .bright-addbtn svg { display: block; }
#P40_ACCT_CONTAINER { order: 1; } #P40_Q_CONTAINER { order: 2; }

/* 45: the rows table fits (Resolve before Problem, problem text wraps, scrolls in its card), the file name as the File figure */
#file-rows { overflow-x: auto; max-width: 100%; }
.bright-filecols > * { min-width: 0; }
.bright-filerows td.bright-problem { white-space: normal; min-width: 160px; max-width: 300px; }
.bright-filerows .bright-pill--wrap { display: inline-block; max-width: 300px; white-space: normal; line-height: 1.35; padding-top: 3px; padding-bottom: 3px; }
.bright-kpis .v.name { font-size: 15px; font-weight: 700; letter-spacing: 0; line-height: 1.3; overflow-wrap: anywhere; margin-top: 6px; }
@media (max-width: 1400px) { .bright-filecols { grid-template-columns: minmax(0, 1fr); } }

/* one selected row, actions in the list's header (page 0's brightSelect) */
.t-Body table[data-b-select] tbody tr[data-b-id] { cursor: pointer; }
.t-Body table[data-b-select] tbody tr[aria-selected=true] td { background: var(--bright-amber-soft); }
.t-Body table[data-b-select] tbody tr[aria-selected=true] td:first-child { box-shadow: inset 3px 0 0 var(--bright-amber); }
.t-Body table[data-b-select] tbody tr:focus { outline: 2px solid var(--bright-amber); outline-offset: -2px; }
[data-b-needs-row].is-disabled { opacity: .45; cursor: not-allowed; }
.bright-listhead { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 8px; } .bright-listhead .sp { flex: 1; }

/* one line under a selected tab (the theme's highlight bar off; ours on the bar's line) */
.t-Body .bright-rtabs .t-Tabs-link:before, .t-Body .bright-rtabs .t-Tabs-link:after { display: none !important; content: none !important; }
.t-Body .bright-rtabs .t-TabsRegion-tabs { border: 0 !important; margin: 0 !important; padding: 0 !important; box-shadow: none !important; }
.t-Body .bright-rtabs ul.t-Tabs, .t-Body .bright-tabs { border-bottom: 0 !important; column-gap: 0 !important; row-gap: 6px !important; margin: 0 0 18px !important; }
.t-Body .bright-rtabs .t-Tabs-item { border: 0 !important; box-shadow: inset 0 -1px 0 var(--bright-line) !important; }
.t-Body .bright-rtabs .t-Tabs-link, .t-Body .bright-tabs a { margin: 0 !important; padding: 8px 14px 10px !important; border-bottom: 0 !important; box-shadow: inset 0 -1px 0 var(--bright-line) !important; }
.t-Body .bright-rtabs .t-Tabs-item.is-active .t-Tabs-link, .t-Body .bright-tabs a.on { box-shadow: inset 0 -2px 0 var(--bright-fg) !important; }
