/* ============================================================================
   OrderHub - shared base stylesheet   css/oh-base.css

   Loaded at APPLICATION level, so every page inherits the token layer and the
   house component classes. Page-specific rules live in css/p<nnn>-<name>.css
   and should only ever contain rules scoped to that page's region ids.

   UI direction: Option B "PAC console" (decided 2026-09-01). A token layer over
   Universal Theme 26.1 - no template forks, no component overrides, only CSS
   custom properties plus the class hooks the native components actually expose
   at runtime.

   House rules this file encodes:
     - SQL returns data and CSS class names only; markup lives in
       htmlExpression; all presentation lives here.
     - Semantic colour is separate from the accent and never decorative.
     - Green means measured and healthy, never "nothing has happened yet".
   ============================================================================ */

@import url("https://fonts.googleapis.com/css2?family=Barlow+Semi+Condensed:wght@500;600;700&family=IBM+Plex+Mono:wght@400;500;600&family=IBM+Plex+Sans:wght@400;500;600;700&display=swap");

/* ---------------------------------------------------------------- tokens
   Repointed 2026-09-05 to Pacific Best. The identity was Rempar's Option B
   (steel and terracotta) while the platform was being proven; the page designs
   put PAC's own colours on every screen, and PAC owns the application after
   handover, so the brand half of the token layer now carries theirs. Sampled
   from pacificbestinc.com and portal.pacificbestinc.com on 2026-09-04.

   What did NOT change: the semantic four. Green, amber and red mean the same
   thing under every brand and are never decorative. The faces did not change
   either - the document set and the application still read as one system.

   The --pb-* names are the brand layer, the --oh-* names are what components
   consume. When Appearance becomes a settings page these five values are what
   it writes; nothing else in this file has to move. */
:root {
  /* brand - the five values the Appearance page will own */
  --pb-brand:   #4667AC;
  --pb-strong:  #3760BD;
  --pb-ink:     #2E3D63;
  --pb-nav:     #2E3D63;
  --pb-bg:      #F0F0F2;

  --oh-paper:   var(--pb-bg);
  --oh-card:    #FFFFFF;
  --oh-surface: #FFFFFF;
  --oh-ink:     var(--pb-ink);
  --oh-text:    #1F2937;
  --oh-muted:   #5B6577;
  --oh-line:    #DADDE3;
  --oh-rule:    #E7E9ED;
  --oh-steel:   var(--pb-brand);
  --oh-accent:  var(--pb-strong);
  --oh-radius:  8px;

  /* semantic - state only, never decoration */
  --oh-ok:      #1F5C38;
  --oh-warn:    #7A5310;
  --oh-warn-br: #B08420;
  --oh-crit:    #8C2B20;

  --oh-sans:  "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --oh-cond:  "Barlow Semi Condensed", "Arial Narrow", sans-serif;
  --oh-mono:  "IBM Plex Mono", Consolas, monospace;
}

/* Header icons as masks so they take currentColor and need no image file. */
:root {
  --oh-search-mask: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E");
  --oh-bell-mask:   url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Cpath d='M18 8a6 6 0 0 0-12 0c0 7-3 9-3 9h18s-3-2-3-9'/%3E%3Cpath d='M13.7 21a2 2 0 0 1-3.4 0'/%3E%3C/svg%3E");
}

/* ------------------------------------------------------------ page shell */
.t-Body-main,
.t-Body-content { background: var(--oh-paper); }

body,
.t-Body-title,
.t-Region-title { font-family: var(--oh-sans); }

.t-Body-contentInner { padding-top: 12px; }

/* MEASURED: page title, timestamp and toolbar buttons already share a centre
   line - do not "fix" the alignment, only the face. */
.t-BreadcrumbRegion-titleText {
  font-family: var(--oh-cond);
  font-weight: 700;
  letter-spacing: -.01em;
}

.t-Region-header .t-Region-title {
  font-family: var(--oh-cond);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--oh-ink);
}

/* Hairline rules instead of Universal Theme's card shadow. */
.t-Region {
  border: 1px solid var(--oh-line);
  border-radius: 3px;
  box-shadow: none;
}

/* --------------------------------------------- metric card text + state */
/* Runtime DOM (MEASURED):
     ul.t-MetricCards > li.t-MetricCards-item > div.t-MetricCard
       > .t-MetricCard-body > .t-MetricCard-content
         > .t-MetricCard-{title,metric,meta}
   `itemCssClasses` is rejected by the 26.1 compiler, so a per-row state class
   can only be carried on metricCssClasses and therefore lands on the METRIC
   element - never on an ancestor. Style the same element, or reach the card
   with :has(). */
.oh-card-title {
  font-family: var(--oh-cond);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--oh-muted);
}

.oh-card-metric {
  font-family: var(--oh-mono);
  font-size: 24px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--oh-ink);
}

.oh-card-meta {
  font-family: var(--oh-mono);
  font-size: 11px;
  color: var(--oh-muted);
}

/* is-none = nothing measured yet. Deliberately neutral, never green. */
.oh-card-metric.is-none { color: var(--oh-muted); }
.oh-card-metric.is-ok   { color: var(--oh-ok); }
.oh-card-metric.is-warn { color: var(--oh-warn); }
.oh-card-metric.is-crit { color: var(--oh-crit); }

/* The card is a flex item with `flex: 0 1 200px`, and a flex-basis beats
   width:100%. Without flex-grow the card will not fill a grid cell. */
.oh-strip ul.t-MetricCards { justify-items: stretch; align-items: stretch; }
.oh-strip li.t-MetricCards-item {
  width: 100%;
  min-width: 0;
  max-width: none;
  margin: 0;
  justify-self: stretch;
}
.oh-strip .t-MetricCard {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  max-width: none;
  box-sizing: border-box;
  background: var(--oh-card);
  border: 1px solid var(--oh-line);
  border-top: 3px solid var(--oh-line);
  border-radius: 3px;
  box-shadow: none;
}

/* State reaches the CARD via :has(), because the state class can only land on
   the metric element (itemCssClasses is rejected by the compiler). Shared here
   so every KPI strip is consistent - a strip whose metrics carry no state class
   simply keeps the neutral border. */
.oh-strip .t-MetricCard                 { border-top-color: var(--oh-line); }
.oh-strip .t-MetricCard:has(.is-none)   { border-top-color: var(--oh-steel); }
.oh-strip .t-MetricCard:has(.is-ok)     { border-top-color: var(--oh-ok); }
.oh-strip .t-MetricCard:has(.is-warn)   { border-top-color: var(--oh-warn-br); }
.oh-strip .t-MetricCard:has(.is-crit)   { border-top-color: var(--oh-crit); }

/* --------------------------------------------------------- status buttons */
/* Filled, semantic, control-sized. Fixed min-width so a column of them aligns.
   Only real state earns a fill; neutral/inactive is an outline. */
.oh-status {
  display: inline-block;
  min-width: 74px;
  text-align: center;
  padding: 3px 11px;
  border: 1px solid transparent;
  border-radius: 3px;
  font-family: var(--oh-cond);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  line-height: 1.5;
  white-space: nowrap;
  /* Safe default: an unmapped class reads as a plain neutral chip. It must
     never be white-on-white again. Semantic classes below set the fill. */
  background: var(--oh-rule);
  color: var(--oh-ink);
}
/* CANONICAL VOCABULARY - ok | warn | crit | muted. Nothing else.
   Pages map their own status values to one of these IN SQL (a *_CLASS column)
   rather than letting a raw column value become a class name. The uppercase
   aliases that used to live here (OK/WARN/ERROR/ACTIVE/PUSHED/FAILED/INACTIVE)
   are GONE on purpose: they invited raw values into the class name, and any
   value outside the alias list produced an unstyled - therefore INVISIBLE -
   chip. MEASURED: page 400 emitted lower(status) = "error", which matched no
   rule, so the base white text sat on a transparent background. */
.oh-status-ok    { background: var(--oh-ok);   color: #fff; }
.oh-status-warn  { background: var(--oh-warn); color: #fff; }
.oh-status-crit  { background: var(--oh-crit); color: #fff; }
.oh-status-muted {
  background: transparent;
  color: var(--oh-muted);
  border-color: var(--oh-line);
}

/* Count badge for a region title. Region titles DO render HTML. */
.oh-badge {
  display: inline-block;
  min-width: 18px;
  margin-left: 7px;
  padding: 1px 6px;
  border-radius: 9px;
  background: var(--oh-crit);
  color: #fff;
  font-family: var(--oh-mono);
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  vertical-align: middle;
}

/* ================================================================ reports */
/* MEASURED 2026-09-01 on app 1000. The previous rules targeted
   `.t-Report-report`, which is CLASSIC report markup and does not exist on
   either an Interactive Report or an Interactive Grid - so the density never
   applied on page 1 either. Verified counts on a live page:
     .t-Report-report   0     <- dead, removed
     .a-IRR-table       2     Interactive Report
     .a-IRR-header      6     its header cells
     .a-GV-header      10     Interactive Grid header cells
     .a-GV-cell         5     its body cells
     .a-GV-noDataMsg    2     its empty state
   Confirm any new selector with querySelectorAll(sel).length before shipping. */

/* -- Interactive Report -- */
.oh-dense .a-IRR-table th,
.oh-dense th.a-IRR-header {
  font-family: var(--oh-cond);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--oh-muted);
  background: #F7F5F1;
  padding: 9px 14px;
  border-bottom: 1px solid var(--oh-line);
}
.oh-dense .a-IRR-table td {
  padding: 8px 14px;
  font-size: 13.5px;
  border-bottom: 1px solid var(--oh-rule);
}
.oh-dense .a-IRR-table tr:last-child td { border-bottom: 0; }

/* -- Interactive Grid -- */
.oh-dense .a-GV-header {
  font-family: var(--oh-cond);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--oh-muted);
  background: #F7F5F1;
}
.oh-dense .a-GV-cell {
  padding-top: 8px;
  padding-bottom: 8px;
  font-size: 13.5px;
  border-bottom: 1px solid var(--oh-rule);
}
.oh-dense .a-GV-row.is-selected .a-GV-cell { background: #F2F5F8; }

/* Empty states: what is absent, then what would put something here. */
.a-GV-noDataMsg,
.a-IRR-noDataMsg {
  font-family: var(--oh-cond);
  font-size: 15px;
  font-weight: 600;
  color: var(--oh-ink);
  padding: 30px 14px;
  text-align: center;
}

/* Machine values in mono so columns line up. */
.oh-mono,
td.oh-mono,
.a-GV-cell.oh-mono {
  font-family: var(--oh-mono);
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
}
/* On a page item, oh-mono lands on the field CONTAINER, so the validation
   message inherits mono too and sits next to a sans one on the same form.
   The value is machine text; the error about it is prose. */
.oh-mono .t-Form-error {
  font-family: var(--oh-sans);
  font-variant-numeric: normal;
}

/* ============================================== buttons, toolbars, notices */
/* Flat and hairline. One hot action per surface; everything else is quiet. */
.oh-app .a-Button,
.t-Region .a-Button {
  font-family: var(--oh-cond);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .03em;
  border-radius: 3px;
}
.t-Region .a-Button--hot {
  background: var(--oh-accent);
  border-color: var(--oh-accent);
  color: #fff;
}
.a-Toolbar,
.a-IG-header .a-Toolbar {
  background: #FCFBF9;
  border-bottom: 1px solid var(--oh-line);
}

/* Notice region: left accent bar, no icon circle, no filled background.
   SCOPED TO .oh-notice ON PURPOSE. A bare `.t-Alert { … }` also hits APEX's own
   success/error page notification, which is the SAME component class. MEASURED:
   it overrode the notification's green background to white while its text
   stayed white, so every success message rendered as an empty white box. The
   catalogue rule was already "never used for success or transient messages" -
   the selector has to enforce it. Add `oh-notice` to a region's cssClasses to
   opt in; native notifications are then left completely alone. */
.oh-notice.t-Alert {
  background: var(--oh-card);
  border: 1px solid var(--oh-line);
  border-left: 3px solid var(--oh-warn-br);
  border-radius: 3px;
  box-shadow: none;
}
/* div.t-Alert-icon is a 64px block with its own tint. A bare
   `.t-Alert-icon { display:none }` loses on specificity to the theme's
   `.t-Alert--warning .t-Alert-icon`; three classes deep wins. */
.oh-notice .t-Alert-wrap .t-Alert-icon { display: none; }
.oh-notice .t-Alert-wrap { padding-left: 14px; }
.oh-notice .t-Alert-body { font-size: 13.5px; }
.oh-notice .t-Alert-body p { margin: 0 0 5px; }
.oh-notice .t-Alert-body p:last-child { margin-bottom: 0; }

/* ------------------------------------------------ panel height discipline */
/* MEASURED: an IR ships display_rows = 50 with overflow-y:visible, so region
   height tracks the data - 7 rows = 508px, ~2,615px at 50. Cap the scroll
   container AND let the columns equalise, or the ~10px the scrollbar adds
   drifts a capped panel out of level with its neighbour. */
.oh-capped .a-IRR-tableContainer {
  max-height: 392px;          /* 8 rows at 49px + the 40px header row */
  overflow-y: auto;
  overflow-x: hidden;
}
.t-Body-contentInner .row { align-items: stretch; }
.t-Body-contentInner .row > .col { display: flex; flex-direction: column; }
.t-Body-contentInner .row > .col > .js-apex-region {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

/* ----------------------------------------------------------- toolbar bits */
.oh-refreshed {
  font-family: var(--oh-mono);
  font-size: 11.5px;
  color: var(--oh-muted);
}

.t-Report-noDataMsg,
.a-IRR-noDataMsg {
  font-family: var(--oh-sans);
  color: var(--oh-muted);
}

/* A key column an html expression needs for #COLUMN# substitution must be a
   real displayed column - a column declared hidden substitutes as empty
   (measured 2026-09-03 on page 100). Hide it here instead, header and cells. */
.a-IRR-table th.oh-hidden-col,
.a-IRR-table td.oh-hidden-col { display: none; }

/* ============================================================================
   THE PRODUCT SHELL
   Added 2026-09-05 from the page designs. The header is one 52px row -
   wordmark, global search, source pills, alert bell, user menu - and the top
   navigation is a 44px row beneath it.

   Every piece sits in a slot the Universal Theme page template already
   provides. No template fork:
     afterLogo            -> #AFTER_LOGO#             -> the search box
     beforeNavigationBar  -> .t-Header-navBar--start  -> pills and bell
     navigation bar list  -> .t-Header-navBar--center -> the user menu
     topNavigation        -> .t-Header-nav            -> the menu bar
   ============================================================================ */

/* ------------------------------------------------- page rhythm, from the design
   Every mockup lays its content out in a .main with padding 22px 26px 40px, so
   the content column starts 26px from the edge on every screen. Universal Theme
   ships 16px and puts another 16px on the breadcrumb region, which put the page
   title 16px right of the content it titles.

   MEASURED 2026-09-05 at 1440 on page 100: title left edge 42 -> 26, card left
   26, right gutter 26 (equal once the 15px scrollbar is accounted for). */
.t-Body-title { padding: 0; }
.t-BreadcrumbRegion.oh-head { padding: 0; }
.t-Body-contentInner { padding: 0 26px 40px; }

/* --------------------------------------------------------------- the header */
.t-Header {
  background: var(--oh-surface);
  border-bottom: 1px solid var(--oh-line);
  box-shadow: none;
}

.t-Header-branding {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 52px;
  padding: 0 16px;
  background: var(--oh-surface);
}

/* The hamburger belongs to the side tree. Navigation is on top now, so it
   controls nothing and is not shown. */
.t-Header-controls { display: none; }

/* The search sits in the afterLogo slot, so it is a child of .t-Header-logo.
   That box has to grow for the field to reach its 520px cap - measured
   2026-09-05: with flex:0 0 auto the search was pinned at its 221px minimum,
   with flex:1 1 auto it opens to 520 and the pills still land at x=1048. */
.t-Header-logo {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  margin: 0;
}

.t-Header-logo-link {
  font-family: var(--oh-sans);
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -.2px;
  color: var(--oh-ink);
  padding: 0;
}

.t-Header-navBar {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.t-Header-navBar--start {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.t-Header-navBar--center { flex: 0 0 auto; }
.t-Header-navBar--end    { flex: 0 0 auto; }

/* ------------------------------------------------------------ global search */
.oh-search {
  flex: 1 1 auto;
  max-width: 520px;
  min-width: 220px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--oh-paper);
  border: 1px solid var(--oh-line);
  border-radius: var(--oh-radius);
  padding: 5px 10px;
  margin: 0;
}
.oh-search .t-Region-body,
.oh-search .t-Region-bodyWrap { flex: 1 1 auto; padding: 0; margin: 0; }
.oh-search .t-Region-header   { display: none; }

.oh-search-icon {
  flex: none;
  width: 15px;
  height: 15px;
  background: currentColor;
  color: var(--oh-muted);
  -webkit-mask: var(--oh-search-mask) center / contain no-repeat;
          mask: var(--oh-search-mask) center / contain no-repeat;
}

.oh-search .t-Form-fieldContainer { margin: 0; }
.oh-search .t-Form-inputContainer { padding: 0; }
.oh-search input[type="text"] {
  width: 100%;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
  height: auto;
  font-size: 13px;
  color: var(--oh-text);
}
.oh-search input::placeholder { color: var(--oh-muted); }
.oh-search input:focus { box-shadow: none; outline: none; }
.oh-search:focus-within { border-color: var(--pb-brand); }

/* the keycap the "/" shortcut promises */
.oh-search::after {
  content: "/";
  flex: none;
  font: 11px var(--oh-mono);
  border: 1px solid var(--oh-line);
  border-radius: 4px;
  padding: 1px 5px;
  background: var(--oh-surface);
  color: var(--oh-muted);
}

/* -------------------------------------------------------------- source pills */
.oh-pills { background: transparent; border: 0; }
.oh-pills .t-Region-header { display: none; }
.oh-pills .t-Region-body   { padding: 0; }

#source-pills .t-Report-wrap,
#source-pills .t-Report-tableWrap,
#source-pills .t-Report-report { display: flex; gap: 6px; width: auto; }
/* the pill carries its own flex order; see the region query for why */
#source-pills .oh-pill { flex: none; }
#source-pills .t-Report-report thead,
#source-pills .t-Report-pagination,
#source-pills .t-Report-links { display: none; }
#source-pills .t-Report-report tbody,
#source-pills .t-Report-report tr { display: contents; }
#source-pills .t-Report-report td:not(.t-Report-cell) { display: none; }
/* The pill carries its own flex order (see the region query). For that value
   to count the anchor has to BE the flex item, so the cell collapses too -
   otherwise order sits on an element the flex container never sees.
   MEASURED 2026-09-05: with display:block the row read CCC, PARTSLINK, SAP;
   with display:contents it reads CCC, SAP, PARTSLINK - connected first. */
#source-pills td.t-Report-cell { display: contents; }

.oh-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--oh-line);
  background: var(--oh-surface);
  font-size: 12px;
  color: var(--oh-muted);
  white-space: nowrap;
}
.oh-pill:hover { border-color: var(--pb-brand); text-decoration: none; }
.oh-pill i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--oh-line);
  display: inline-block;
}
/* live is measured: a message actually arrived inside the window */
.oh-pill--live   { color: var(--oh-text); }
.oh-pill--live i { background: var(--oh-ok); }
/* quiet is connected with nothing arriving - not a fault, so not amber */
.oh-pill--quiet i { background: var(--oh-muted); }

/* ---------------------------------------------------------------- the bell */
.oh-bellwrap { background: transparent; border: 0; }
.oh-bellwrap .t-Region-header { display: none; }
.oh-bellwrap .t-Region-body   { padding: 0; }
#alert-bell .t-Report-report thead,
#alert-bell .t-Report-pagination,
#alert-bell .t-Report-links { display: none; }
#alert-bell .t-Report-wrap,
#alert-bell .t-Report-tableWrap,
#alert-bell .t-Report-report,
#alert-bell .t-Report-report tbody,
#alert-bell .t-Report-report tr { display: contents; }
#alert-bell .t-Report-report td:not(.t-Report-cell) { display: none; }
#alert-bell td.t-Report-cell {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
}

.oh-bell {
  position: relative;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: var(--oh-radius);
  border: 1px solid var(--oh-line);
  background: var(--oh-surface);
  color: var(--oh-ink);
}
.oh-bell:hover { border-color: var(--pb-brand); text-decoration: none; }
.oh-bell::before {
  content: "";
  width: 18px;
  height: 18px;
  background: currentColor;
  -webkit-mask: var(--oh-bell-mask) center / contain no-repeat;
          mask: var(--oh-bell-mask) center / contain no-repeat;
}
/* the count shows only when there is something to count */
.oh-bell b { display: none; }
.oh-bell--unread b {
  display: grid;
  place-items: center;
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--pb-brand);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
}

/* -------------------------------------------------------------- user menu */
.t-NavigationBar .t-Button--navBar {
  color: var(--oh-muted);
  font-size: 13px;
}
.t-NavigationBar .t-Button--navBar:hover { color: var(--oh-ink); }

/* =========================================================== top navigation
   The Top Navigation Menu list template renders a-MenuBar markup and the menu
   widget enhances the two sections that have children. The design shows flat
   tabs with an underline on the current one, which is what this paints. */
.t-Header-nav {
  height: 44px;
  padding: 0 16px;
  background: var(--oh-surface);
  border-top: 1px solid var(--oh-line);
}

.t-Header-nav-list { height: 44px; }
#t_MenuNav > ul {
  display: flex;
  align-items: stretch;
  gap: 2px;
  height: 44px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* MEASURED 2026-09-05: Universal Theme boxes every menu item in a 1px
   rgba(0,0,0,.1) border and the split caret in a left rule. The design's tabs
   have no borders at all - only the active underline. */
#t_MenuNav .a-MenuBar-item { display: flex; align-items: stretch; border: 0; background: transparent; }
#t_MenuNav .a-Menu-subMenuCol { border: 0; }

#t_MenuNav a.a-MenuBar-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 44px;
  padding: 0 12px;
  font-size: 13.5px;
  color: var(--oh-muted);
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  white-space: nowrap;
}
#t_MenuNav a.a-MenuBar-label:hover { color: var(--oh-text); background: transparent; }

#t_MenuNav .a-Menu--current > a.a-MenuBar-label,
#t_MenuNav .a-MenuBar-item.is-active > a.a-MenuBar-label {
  color: var(--oh-ink);
  font-weight: 600;
  border-bottom-color: var(--pb-brand);
}

/* icons are the theme's; the design is text-first, so they stay quiet */
#t_MenuNav .a-Icon { color: inherit; opacity: .55; }

/* System is ours, not theirs: last, right, and out of the way */
#t_MenuNav .a-MenuBar-item.oh-nav-system { margin-left: auto; }

/* the open-exception count, put on the tab by js/oh-shell.js */
.oh-navbadge {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--pb-brand);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
}

/* the counts region is a data carrier, never a visible one */
.oh-navcounts { display: none !important; }

/* ------------------------------- navigation position, the one manual switch
   APEXLang cannot carry the user interface's navigation menu position.
   Proven by round-trip on 2026-09-05: theme.apx sets the theme DEFAULT to top
   and the importer honours it, but the application's user interface record
   keeps its own value, the exporter does not emit that value in
   application.apx, and no property name the compiler accepts sets it. The
   record still reads SIDE while the list template reads Top Navigation Menu.

   One switch fixes it for good, in the Builder:
     App 1000 > Shared Components > User Interface Attributes
       > Navigation Menu > Position = Top
   It survives later imports, because an import does not reset it.

   Until then the theme treats the menu list as the side column: it renders
   .t-Header-nav-list as the first cell of the .t-Body grid, which squeezed the
   page content into 627px of 1440px. These rules put the bar back on top.
   They are gated on the apex-side-nav body class, so the moment the switch is
   flipped they stop applying and the .t-Header-nav rules above take over.
   MEASURED after the fix: bar 1440x44 at y=107, content 1440 wide. */
body.apex-side-nav .t-Body { display: block; }
/* In side mode the theme leaves .t-Header-nav empty but it kept the 44px I gave
   it for top mode - a blank white band between the header and the tabs.
   MEASURED: header-to-tabs gap 45 -> 1 (the header's own hairline). */
body.apex-side-nav .t-Header-nav { display: none; }
/* the theme draws a 1px shadow under the title bar - the dark divider under
   the menu that the design does not have */
.t-Body-title { box-shadow: none; }

body.apex-side-nav .t-Header-nav-list {
  height: 44px;
  width: auto;
  max-width: none;
  position: static;
  padding: 0 16px;
  background: var(--oh-surface);
  border-bottom: 1px solid var(--oh-line);
}

body.apex-side-nav .t-Body-main { width: auto; margin: 0; }

/* ------------------------------------------------------------- responsive */
@media (max-width: 900px) {
  .oh-search { min-width: 0; max-width: none; }
  .oh-search::after { display: none; }
  .t-Header-navBar--start .oh-pills { display: none; }
}

/* ------------------------------------------------------------ appearance */
/* The wordmark the shell script paints from the saved settings: the mark is
   34 x 26 with a 1.5px brand border (measured on the design), the name at
   15.5/600 and the organisation under it in 9.5px caps. */
.t-Header-logo-link { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.oh-mark { width: 34px; height: 26px; display: inline-flex; align-items: center; justify-content: center; border: 1.5px solid var(--pb-brand); border-radius: 4px; color: var(--pb-brand); font-size: 11px; font-weight: 700; letter-spacing: .3px; overflow: hidden; background: #fff; flex: 0 0 auto; }
.oh-mark img { max-width: 30px; max-height: 22px; display: block; }
.oh-word { display: flex; flex-direction: column; line-height: 1.1; }
.oh-word b { font-size: 15.5px; font-weight: 600; color: var(--pb-nav); letter-spacing: -.2px; }
.oh-word i { font-style: normal; font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--oh-muted); }
.oh-word i:empty { display: none; }
/* density: comfortable adds 4px to every list cell */
body.oh-density--comfortable .a-IRR-table td,
body.oh-density--comfortable .t-Report-report td { padding-top: 14px; padding-bottom: 14px; }
body.oh-density--comfortable .a-IRR-table th.a-IRR-header,
body.oh-density--comfortable .t-Report-report th { padding-top: 15px; padding-bottom: 15px; }
