/* OSM Pro in Material Design: the skin over MudBlazor.
 *
 * The owner, 2026-10-04: "Rebuild app in MudBlazor" - a modern Material look
 * across the whole app. Every screen is MudBlazor now (MudLayout, MudAppBar,
 * MudDrawer, MudNavMenu, MudMenu, MudPaper, MudChip, MudTextField,
 * MudButton...), and since 2026-10-05 Bootstrap is gone altogether: no
 * stylesheet, no script, none of its classes. This file holds:
 *
 *   - the Material shape for MudBlazor's components, from the theme's corner;
 *   - our utilities (osm-small, osm-text-soft, osm-mono, osm-nowrap,
 *     osm-unstyled-list...) and the osm grid (osm-row, osm-col-md-6);
 *   - the few native elements still drawn by hand: osm-input, osm-table,
 *     osm-badge, osm-card;
 *   - the shared components' and modules' own rules.
 *
 * Loaded after themes.css, osm-pro.css, shell.css and grid.css, so the
 * colours stay the theme's: NO COLOUR IS WRITTEN HERE (the colour guard in
 * RepositoryShapeTests enforces it). Shape follows the theme too: every
 * radius is a multiple of the theme's --osm-radius, so Mesquite stays
 * square, Flare nearly so, and Pipeline the roundest.
 */

:root {
  /* Material shape scale, from the theme's own corner. */
  --osm-m-radius-sm: var(--osm-radius);                               /* fields, menus */
  --osm-m-radius: calc(var(--osm-radius) * 2);                        /* cards */
  --osm-m-radius-lg: calc(var(--osm-radius) * 3);                     /* dialogs, sheets */
  --osm-m-pill: calc(var(--osm-radius) * 5);                          /* buttons, chips, the menu's indicator */
  /* Heights: Material's dense desktop sizes; phones get 44px targets below. */
  --osm-m-control-h: 36px;
  --osm-m-control-sm-h: 30px;
  --osm-m-field-h: 38px;
  --osm-m-field-sm-h: 32px;
  --osm-m-ease: cubic-bezier(0.2, 0, 0, 1);
  /* MudBlazor's own frame sizes, kept in step with shell.css. */
  --mud-appbar-height: var(--osm-topbar-h);
  --mud-drawer-width-left: var(--osm-rail-w);
  /* Severity icons for alerts, as masks: shape from the SVG, colour from the token. */
  --osm-m-icon-info: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z'/%3E%3C/svg%3E");
  --osm-m-icon-success: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M16.59 7.58L10 14.17l-3.59-3.58L5 12l5 5 8-8zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z'/%3E%3C/svg%3E");
  --osm-m-icon-warning: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z'/%3E%3C/svg%3E");
  --osm-m-icon-error: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z'/%3E%3C/svg%3E");
}

/* MudBlazor's reset says "a { text-decoration: none }"; links inside running
   text keep a hover underline, as Material's do. */
.osm-main p a:not(.mud-button-root):hover, .osm-main li a:not(.mud-button-root):not(.mud-menu-item):hover { text-decoration: underline; }
/* MudBlazor's lists come without the base list indent (osm-pro.css). */
.mud-navmenu, .mud-list, .mud-menu-list, .mud-breadcrumbs { padding-left: 0; margin-bottom: 0; }

/* ===========================================================================
 * Buttons
 * ======================================================================== */
/* MudBlazor's buttons: the theme's pill and weight. */
.mud-button-root.mud-button { border-radius: var(--osm-m-pill); }
.mud-button-filled { box-shadow: var(--osm-shadow-sm); }
.mud-button-outlined { border-color: var(--osm-rule-strong); }
.mud-button-outlined.mud-button-outlined-primary { border-color: var(--osm-accent); }
.mud-icon-button { border-radius: 50%; }
.mud-button-group-root .mud-button-root.mud-button { border-radius: 0; }
.mud-button-group-root .mud-button-root.mud-button:first-child { border-top-left-radius: var(--osm-m-pill); border-bottom-left-radius: var(--osm-m-pill); }
.mud-button-group-root .mud-button-root.mud-button:last-child { border-top-right-radius: var(--osm-m-pill); border-bottom-right-radius: var(--osm-m-pill); }

/* ===========================================================================
 * Text fields: Material's outlined field.
 * ======================================================================== */
/* MudBlazor's fields: the theme's outline and focus. */
.mud-input.mud-input-outlined .mud-input-outlined-border { border-color: var(--osm-rule-strong); border-radius: var(--osm-m-radius-sm); }
.mud-input.mud-input-outlined:hover:not(.mud-disabled) .mud-input-outlined-border { border-color: var(--osm-ink-soft); }
.mud-input.mud-input-outlined.mud-input-error .mud-input-outlined-border { border-color: var(--osm-alarm); }
.mud-input-control .mud-input-helper-text { font-size: 0.75rem; }

/* ===========================================================================
 * Cards and panels: Material's elevated card.
 * ======================================================================== */
.osm-panel, .mud-paper.osm-form-section, .mud-paper.osm-factbox, .mud-paper.osm-card {
  border-radius: var(--osm-m-radius);
  border-color: transparent;
  box-shadow: var(--osm-shadow-sm), 0 0 0 1px color-mix(in srgb, var(--osm-rule) 70%, transparent);
}
.mud-paper.osm-card { background: var(--osm-surface); overflow: hidden; }
/* In dark mode a shadow cannot be seen: the card is drawn with its hairline. */
[data-bs-theme='dark'] .osm-panel, [data-bs-theme='dark'] .mud-paper.osm-card,
[data-bs-theme='dark'] .mud-paper.osm-form-section, [data-bs-theme='dark'] .mud-paper.osm-factbox {
  border-color: var(--osm-rule);
  box-shadow: 0 0 0 1px var(--osm-rule);
}
/* Night Haul keeps its heavy rules - its identity. */
:root[data-theme='nighthaul'] .osm-panel,
:root[data-theme='nighthaul'] .mud-paper.osm-card,
:root[data-theme='nighthaul'] .mud-paper.osm-form-section,
:root[data-theme='nighthaul'] .mud-paper.osm-factbox {
  border: var(--osm-border-width) solid var(--osm-rule-strong);
  box-shadow: none;
}
.mud-paper { color: var(--osm-ink); }
.mud-paper-outlined { border-color: var(--osm-rule); }

/* ===========================================================================
 * Alerts: MudAlert in the theme's soft pairs (the audited ones) - a soft
 * tint, the severity icon in its colour, ordinary ink for the words.
 * ======================================================================== */
.mud-alert { border-radius: var(--osm-m-radius); }
.mud-alert-outlined-warning, .mud-alert-text-warning { background-color: var(--osm-warn-soft); color: var(--osm-ink); border-color: var(--osm-warn); }
.mud-alert-outlined-error, .mud-alert-text-error { background-color: var(--osm-alarm-soft); color: var(--osm-ink); border-color: var(--osm-alarm); }
.mud-alert-outlined-success, .mud-alert-text-success { background-color: var(--osm-signal-soft); color: var(--osm-ink); border-color: var(--osm-signal); }
.mud-alert-outlined-info, .mud-alert-text-info { background-color: var(--osm-info-soft); color: var(--osm-ink); border-color: var(--osm-info); }

/* ===========================================================================
 * Badges and chips
 * ======================================================================== */
/* StatusBadge is a MudChip in the meaning's audited soft pair (osm-pill-*). */
.mud-chip.osm-pill {
  height: 24px; margin: 0; padding: 0 10px;
  border-radius: var(--osm-m-pill);
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.01em;
  border: 1px solid transparent; cursor: default; vertical-align: middle;
}
.mud-chip.osm-pill .mud-chip-content { padding: 0; }
.mud-chip.osm-pill.osm-pill-neutral { background: var(--osm-sunk); color: var(--osm-ink-soft); border-color: var(--osm-rule); }
.mud-chip.osm-pill.osm-pill-muted { background: transparent; color: var(--osm-ink-mute); border-color: var(--osm-rule-strong); }
.mud-chip.osm-pill.osm-pill-info { background: var(--osm-info-soft); color: var(--osm-info); }
.mud-chip.osm-pill.osm-pill-success { background: var(--osm-signal-soft); color: var(--osm-signal); }
.mud-chip.osm-pill.osm-pill-warning { background: var(--osm-warn-soft); color: var(--osm-warn); }
.mud-chip.osm-pill.osm-pill-danger { background: var(--osm-alarm-soft); color: var(--osm-alarm); }
/* A current safety incident (V1479): solid red, the one chip that must not be missed. */
.mud-chip.osm-pill.osm-pill-incident { background: var(--osm-alarm); color: var(--osm-surface); font-weight: 700; }
.mud-chip.osm-pill.osm-pill-incident .mud-chip-icon { color: var(--osm-surface); }
/* The energy company's dispatch board (task 01): each load edged by who hauls it -
   its own trucks blue, a carrier's green - or red for a current safety incident. */
.osm-board-load { border-left: 4px solid transparent; padding-left: 0.5rem; }
.osm-board-load-own { border-left-color: var(--osm-haul-own); }
.osm-board-load-carrier { border-left-color: var(--osm-haul-carrier); }
.osm-board-load-incident { border-left-color: var(--osm-alarm); background: var(--osm-alarm-soft); }
.mud-chip.osm-pill:hover { box-shadow: none; }
.mud-chip.osm-pill .mud-ripple, .mud-chip.osm-pill::after { display: none; }

/* ===========================================================================
 * Menus: MudBlazor's, as Material menus.
 * ======================================================================== */
.mud-popover.osm-menu-popover {
  min-width: 200px;
  border-radius: var(--osm-m-radius-sm);
  background: var(--osm-surface); color: var(--osm-ink);
  box-shadow: var(--osm-shadow-md), 0 0 0 1px color-mix(in srgb, var(--osm-rule) 70%, transparent);
}
.osm-menu-list { padding: 8px 0; }
.osm-menu-header { display: block; padding: 4px 16px 6px; color: var(--osm-ink-mute); }
/* A page's own MudMenuItems inside PageHeader's "..." menu. */
.osm-menu-items { display: flex; flex-direction: column; }
.osm-menu-items > hr, .osm-menu-items > .mud-divider { margin: 8px 0; border-top: 1px solid var(--osm-rule); opacity: 1; }
.mud-menu-item.osm-menu-danger, .mud-menu-item.osm-menu-danger .mud-icon-root { color: var(--osm-alarm); }
.mud-menu-item { min-height: 36px; }
.mud-menu-item .mud-icon-root { color: var(--osm-ink-soft); }

/* ===========================================================================
 * Dialogs and side sheets
 * ======================================================================== */
.mud-dialog { border-radius: var(--osm-m-radius-lg); background: var(--osm-surface); color: var(--osm-ink); }
.mud-overlay .mud-overlay-dark, .mud-overlay-dark { background-color: var(--osm-backdrop); }

/* Drawer (Components/Drawer): a Material side sheet. */
.osm-sheet {
  position: fixed; right: 0; z-index: 1066;
  display: flex; flex-direction: column; max-width: 100%;
  border: 0; border-radius: var(--osm-m-radius-lg) 0 0 var(--osm-m-radius-lg);
  background: var(--osm-surface); color: var(--osm-ink); outline: 0;
}
.osm-sheet-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 16px 12px 24px; border-bottom: 1px solid var(--osm-rule); }
.osm-sheet-body { flex-grow: 1; padding: 16px 24px 24px; }
@media (max-width: 575.98px) {
  .osm-sheet { border-radius: 0; }
  .osm-sheet-header { padding-left: 16px; }
  .osm-sheet-body { padding: 16px; }
}
@media (prefers-reduced-motion: no-preference) {
  .osm-sheet { animation: osm-sheet-in 0.22s var(--osm-m-ease); }
}
@keyframes osm-sheet-in { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ===========================================================================
 * Utilities: the small classes pages use
 * ---------------------------------------------------------------------------
 * MudBlazor brings spacing (ma-, pa-, mt-, mb-, ms-, me-, mx-, py-... in 4px
 * steps), gap-*, the display classes d-* (with its own breakpoints: sm 600px,
 * md 960px, lg 1280px, xl 1920px), flex-*, align-* (align-items),
 * justify-*, relative/absolute, mud-width-full, mud-height-full and rounded.
 * These are the rest, all ours since Bootstrap went (2026-10-05).
 * ======================================================================== */
/* Type */
.osm-small { font-size: 0.875em; }
.osm-lead { font-size: 1.25rem; font-weight: 300; }
.osm-fs-3 { font-size: calc(1.3rem + 0.6vw) !important; }
.osm-fs-4 { font-size: calc(1.275rem + 0.3vw) !important; }
@media (min-width: 1200px) { .osm-fs-3 { font-size: 1.75rem !important; } .osm-fs-4 { font-size: 1.5rem !important; } }
.osm-fs-5 { font-size: 1.25rem !important; }
.osm-fs-6 { font-size: 1rem !important; }
.osm-semibold { font-weight: 600 !important; }
.osm-bold { font-weight: 700 !important; }
.osm-fw-normal { font-weight: 400 !important; }
.osm-italic { font-style: italic !important; }
/* Monospace: identifiers, codes, amounts compared with paper (osm-pro.css
   gives it the theme's mono face, with code and kbd). */
.osm-mono { font-family: var(--osm-font-mono); }
/* Text colour, from the theme's tokens. */
.osm-text-ink { color: var(--osm-ink) !important; }
.osm-text-soft { color: var(--osm-ink-soft) !important; }
.osm-text-mute { color: var(--osm-ink-mute) !important; }
.osm-text-accent { color: var(--osm-accent) !important; }
.osm-text-danger { color: var(--osm-alarm) !important; }
.osm-text-warning { color: var(--osm-warn) !important; }
.osm-text-success { color: var(--osm-signal) !important; }
.osm-text-info { color: var(--osm-info) !important; }
/* Alignment and wrapping. Nowrap keeps a number, a date or a pair of
   buttons on one line. */
.osm-text-start { text-align: left !important; }
.osm-text-end { text-align: right !important; }
.osm-text-center { text-align: center !important; }
.osm-nowrap { white-space: nowrap !important; }
.osm-wrap { white-space: normal !important; }
.osm-break { word-wrap: break-word !important; word-break: break-word !important; }
.osm-ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.osm-no-underline { text-decoration: none !important; }
.osm-strike { text-decoration: line-through !important; }
.osm-no-caps { text-transform: none !important; }
@media (min-width: 768px) { .osm-text-md-end { text-align: right !important; } }
.osm-valign-baseline { vertical-align: baseline !important; }
.osm-valign-middle { vertical-align: middle !important; }
.osm-valign-top { vertical-align: top !important; }
/* Lists without bullets or indent; a list laid out along a line. */
.osm-unstyled-list, .osm-inline-list { list-style: none; padding-left: 0; }
.osm-inline-list-item { display: inline-block; }
.osm-inline-list-item:not(:last-child) { margin-right: 0.5rem; }
/* Surfaces and rules */
.osm-ground-bg { background-color: var(--osm-ground) !important; }
.osm-border { border: 1px solid var(--osm-rule) !important; }
.osm-border-top { border-top: 1px solid var(--osm-rule) !important; }
.osm-border-bottom { border-bottom: 1px solid var(--osm-rule) !important; }
.osm-border-start { border-left: 1px solid var(--osm-rule) !important; }
.osm-border-end { border-right: 1px solid var(--osm-rule) !important; }
.osm-border-2 { border-width: 2px !important; }
.osm-border-3 { border-width: 3px !important; }
.osm-border-danger { border-color: var(--osm-alarm) !important; }
.osm-opacity-75 { opacity: 0.75 !important; }
.osm-select-all { -webkit-user-select: all !important; user-select: all !important; }
/* Position and size */
.osm-sticky { position: sticky !important; }
.osm-top-0 { top: 0 !important; }
.osm-bottom-0 { bottom: 0 !important; }
.osm-start-0 { left: 0 !important; }
.osm-end-0 { right: 0 !important; }
.osm-w-50 { width: 50% !important; }
.osm-w-auto { width: auto !important; }
.osm-min-w-0 { min-width: 0; }
.osm-vh-100 { height: 100vh !important; }
/* A button that is only its content - a heading that folds a card, a row
   that opens. */
.osm-plain-button {
  padding: 0; margin: 0; border: 0; background: transparent;
  color: inherit; font: inherit; text-align: inherit; cursor: pointer;
}
.osm-plain-button:focus-visible { outline: 2px solid var(--osm-accent); outline-offset: 2px; }
/* Read by a screen reader, not drawn. */
.osm-visually-hidden {
  position: absolute !important; width: 1px !important; height: 1px !important;
  padding: 0 !important; margin: -1px !important; overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important;
}

/* The osm grid: rows of columns, twelve to the row, gutters between. Its
   breakpoints are the widths the pages were laid out at (sm 576, md 768,
   lg 992, xl 1200, xxl 1400), so no page moved when Bootstrap's grid went.
   (MudBlazor's own d-* classes use its breakpoints: sm 600, md 960, lg 1280,
   xl 1920.) */
.osm-row {
  --osm-gx: 1.5rem; --osm-gy: 0px;
  display: flex; flex-wrap: wrap;
  margin-top: calc(-1 * var(--osm-gy));
  margin-right: calc(-0.5 * var(--osm-gx)); margin-left: calc(-0.5 * var(--osm-gx));
}
.osm-row > * {
  flex-shrink: 0; width: 100%; max-width: 100%;
  padding-right: calc(var(--osm-gx) * 0.5); padding-left: calc(var(--osm-gx) * 0.5);
  margin-top: var(--osm-gy);
}
.osm-g-0 { --osm-gx: 0px; --osm-gy: 0px; } .osm-g-1 { --osm-gx: 0.25rem; --osm-gy: 0.25rem; } .osm-g-2 { --osm-gx: 0.5rem; --osm-gy: 0.5rem; }
.osm-g-3 { --osm-gx: 1rem; --osm-gy: 1rem; } .osm-g-4 { --osm-gx: 1.5rem; --osm-gy: 1.5rem; } .osm-g-5 { --osm-gx: 3rem; --osm-gy: 3rem; }
.osm-gx-0 { --osm-gx: 0px; } .osm-gx-1 { --osm-gx: 0.25rem; } .osm-gx-2 { --osm-gx: 0.5rem; } .osm-gx-3 { --osm-gx: 1rem; } .osm-gx-4 { --osm-gx: 1.5rem; } .osm-gx-5 { --osm-gx: 3rem; }
.osm-gy-0 { --osm-gy: 0px; } .osm-gy-1 { --osm-gy: 0.25rem; } .osm-gy-2 { --osm-gy: 0.5rem; } .osm-gy-3 { --osm-gy: 1rem; } .osm-gy-4 { --osm-gy: 1.5rem; } .osm-gy-5 { --osm-gy: 3rem; }
.osm-col { flex: 1 0 0%; }
.osm-col-auto { flex: 0 0 auto; width: auto; }
.osm-col-1 { flex: 0 0 auto; width: 8.33333333%; } .osm-col-2 { flex: 0 0 auto; width: 16.66666667%; } .osm-col-3 { flex: 0 0 auto; width: 25%; }
.osm-col-4 { flex: 0 0 auto; width: 33.33333333%; } .osm-col-5 { flex: 0 0 auto; width: 41.66666667%; } .osm-col-6 { flex: 0 0 auto; width: 50%; }
.osm-col-7 { flex: 0 0 auto; width: 58.33333333%; } .osm-col-8 { flex: 0 0 auto; width: 66.66666667%; } .osm-col-9 { flex: 0 0 auto; width: 75%; }
.osm-col-10 { flex: 0 0 auto; width: 83.33333333%; } .osm-col-11 { flex: 0 0 auto; width: 91.66666667%; } .osm-col-12 { flex: 0 0 auto; width: 100%; }
@media (min-width: 576px) {
  .osm-col-sm { flex: 1 0 0%; }
  .osm-col-sm-auto { flex: 0 0 auto; width: auto; }
  .osm-col-sm-1 { flex: 0 0 auto; width: 8.33333333%; } .osm-col-sm-2 { flex: 0 0 auto; width: 16.66666667%; } .osm-col-sm-3 { flex: 0 0 auto; width: 25%; }
  .osm-col-sm-4 { flex: 0 0 auto; width: 33.33333333%; } .osm-col-sm-5 { flex: 0 0 auto; width: 41.66666667%; } .osm-col-sm-6 { flex: 0 0 auto; width: 50%; }
  .osm-col-sm-7 { flex: 0 0 auto; width: 58.33333333%; } .osm-col-sm-8 { flex: 0 0 auto; width: 66.66666667%; } .osm-col-sm-9 { flex: 0 0 auto; width: 75%; }
  .osm-col-sm-10 { flex: 0 0 auto; width: 83.33333333%; } .osm-col-sm-11 { flex: 0 0 auto; width: 91.66666667%; } .osm-col-sm-12 { flex: 0 0 auto; width: 100%; }
}
@media (min-width: 768px) {
  .osm-col-md { flex: 1 0 0%; }
  .osm-col-md-auto { flex: 0 0 auto; width: auto; }
  .osm-col-md-1 { flex: 0 0 auto; width: 8.33333333%; } .osm-col-md-2 { flex: 0 0 auto; width: 16.66666667%; } .osm-col-md-3 { flex: 0 0 auto; width: 25%; }
  .osm-col-md-4 { flex: 0 0 auto; width: 33.33333333%; } .osm-col-md-5 { flex: 0 0 auto; width: 41.66666667%; } .osm-col-md-6 { flex: 0 0 auto; width: 50%; }
  .osm-col-md-7 { flex: 0 0 auto; width: 58.33333333%; } .osm-col-md-8 { flex: 0 0 auto; width: 66.66666667%; } .osm-col-md-9 { flex: 0 0 auto; width: 75%; }
  .osm-col-md-10 { flex: 0 0 auto; width: 83.33333333%; } .osm-col-md-11 { flex: 0 0 auto; width: 91.66666667%; } .osm-col-md-12 { flex: 0 0 auto; width: 100%; }
}
@media (min-width: 992px) {
  .osm-col-lg { flex: 1 0 0%; }
  .osm-col-lg-auto { flex: 0 0 auto; width: auto; }
  .osm-col-lg-1 { flex: 0 0 auto; width: 8.33333333%; } .osm-col-lg-2 { flex: 0 0 auto; width: 16.66666667%; } .osm-col-lg-3 { flex: 0 0 auto; width: 25%; }
  .osm-col-lg-4 { flex: 0 0 auto; width: 33.33333333%; } .osm-col-lg-5 { flex: 0 0 auto; width: 41.66666667%; } .osm-col-lg-6 { flex: 0 0 auto; width: 50%; }
  .osm-col-lg-7 { flex: 0 0 auto; width: 58.33333333%; } .osm-col-lg-8 { flex: 0 0 auto; width: 66.66666667%; } .osm-col-lg-9 { flex: 0 0 auto; width: 75%; }
  .osm-col-lg-10 { flex: 0 0 auto; width: 83.33333333%; } .osm-col-lg-11 { flex: 0 0 auto; width: 91.66666667%; } .osm-col-lg-12 { flex: 0 0 auto; width: 100%; }
}
@media (min-width: 1200px) {
  .osm-col-xl { flex: 1 0 0%; }
  .osm-col-xl-auto { flex: 0 0 auto; width: auto; }
  .osm-col-xl-1 { flex: 0 0 auto; width: 8.33333333%; } .osm-col-xl-2 { flex: 0 0 auto; width: 16.66666667%; } .osm-col-xl-3 { flex: 0 0 auto; width: 25%; }
  .osm-col-xl-4 { flex: 0 0 auto; width: 33.33333333%; } .osm-col-xl-5 { flex: 0 0 auto; width: 41.66666667%; } .osm-col-xl-6 { flex: 0 0 auto; width: 50%; }
  .osm-col-xl-7 { flex: 0 0 auto; width: 58.33333333%; } .osm-col-xl-8 { flex: 0 0 auto; width: 66.66666667%; } .osm-col-xl-9 { flex: 0 0 auto; width: 75%; }
  .osm-col-xl-10 { flex: 0 0 auto; width: 83.33333333%; } .osm-col-xl-11 { flex: 0 0 auto; width: 91.66666667%; } .osm-col-xl-12 { flex: 0 0 auto; width: 100%; }
}
@media (min-width: 1400px) {
  .osm-col-xxl { flex: 1 0 0%; }
  .osm-col-xxl-auto { flex: 0 0 auto; width: auto; }
  .osm-col-xxl-1 { flex: 0 0 auto; width: 8.33333333%; } .osm-col-xxl-2 { flex: 0 0 auto; width: 16.66666667%; } .osm-col-xxl-3 { flex: 0 0 auto; width: 25%; }
  .osm-col-xxl-4 { flex: 0 0 auto; width: 33.33333333%; } .osm-col-xxl-5 { flex: 0 0 auto; width: 41.66666667%; } .osm-col-xxl-6 { flex: 0 0 auto; width: 50%; }
  .osm-col-xxl-7 { flex: 0 0 auto; width: 58.33333333%; } .osm-col-xxl-8 { flex: 0 0 auto; width: 66.66666667%; } .osm-col-xxl-9 { flex: 0 0 auto; width: 75%; }
  .osm-col-xxl-10 { flex: 0 0 auto; width: 83.33333333%; } .osm-col-xxl-11 { flex: 0 0 auto; width: 91.66666667%; } .osm-col-xxl-12 { flex: 0 0 auto; width: 100%; }
}

/* So many columns to the row, whatever the columns say. */
.osm-row-cols-2 > * { flex: 0 0 auto; width: 50%; }
@media (min-width: 768px) { .osm-row-cols-md-5 > * { flex: 0 0 auto; width: 20%; } }

/* ===========================================================================
 * Native fields: the few inputs still written as HTML (the charge editors'
 * dense rows, the kiosk's PIN) drawn as
 * Material's outlined field. Everything else is a MudTextField / MudSelect.
 * ======================================================================== */
.osm-field-label {
  display: inline-block; margin-bottom: 4px;
  font-size: 0.8125rem; font-weight: 600; color: var(--osm-ink-soft); letter-spacing: 0.01em;
}
.osm-field-help { margin-top: 4px; font-size: 0.75rem; color: var(--osm-ink-mute); }
.osm-input {
  display: block; width: 100%; min-height: var(--osm-m-field-h);
  padding: 6px 12px; font-size: 0.875rem; line-height: 1.4;
  color: var(--osm-ink); background-color: var(--osm-surface);
  border: var(--osm-border-width) solid var(--osm-rule-strong); border-radius: var(--osm-m-radius-sm);
  transition: border-color 0.15s var(--osm-m-ease), box-shadow 0.15s var(--osm-m-ease);
}
textarea.osm-input { min-height: 64px; }
.osm-input::placeholder { color: var(--osm-ink-mute); opacity: 1; }
.osm-input:hover:not(:disabled):not([readonly]):not(:focus) { border-color: var(--osm-ink-soft); }
.osm-input:focus { outline: none; border-color: var(--osm-accent); box-shadow: inset 0 0 0 1px var(--osm-accent); }
.osm-input:disabled, .osm-input[readonly] { background-color: var(--osm-sunk); color: var(--osm-ink-soft); }
.osm-input.is-invalid { border-color: var(--osm-alarm); box-shadow: inset 0 0 0 1px var(--osm-alarm); }
.osm-input-sm { min-height: var(--osm-m-field-sm-h); padding: 3px 8px; font-size: 0.8125rem; }
.osm-input-lg { min-height: 48px; padding: 8px 16px; font-size: 1.25rem; }
/* A field with something fixed beside it ("per", "$", a Copy button). */
.osm-input-group { position: relative; display: flex; flex-wrap: wrap; align-items: stretch; width: 100%; }
.osm-input-group > .osm-input { position: relative; flex: 1 1 auto; width: 1%; min-width: 0; }
.osm-input-group > * { border-radius: 0 !important; }
.osm-input-group > :first-child { border-top-left-radius: var(--osm-m-radius-sm) !important; border-bottom-left-radius: var(--osm-m-radius-sm) !important; }
.osm-input-group > :last-child { border-top-right-radius: var(--osm-m-radius-sm) !important; border-bottom-right-radius: var(--osm-m-radius-sm) !important; }
.osm-input-group > :not(:first-child) { margin-left: calc(-1 * var(--osm-border-width)); }
.osm-input-addon {
  display: flex; align-items: center; padding: 0 10px;
  font-size: 0.875rem; color: var(--osm-ink-soft); white-space: nowrap;
  background: var(--osm-sunk); border: var(--osm-border-width) solid var(--osm-rule-strong);
}
.osm-input-group-sm > .osm-input-addon { font-size: 0.8125rem; padding: 0 8px; }
/* A native check box or radio at Material's size, in the accent; a row of one
   with its label. */
.osm-check { width: 1.125em; height: 1.125em; margin: 0; vertical-align: middle; accent-color: var(--osm-accent); flex: none; }
.osm-check-row { display: flex; align-items: center; gap: 8px; min-height: 32px; }
@media (max-width: 1023.98px), (pointer: coarse) { .osm-check-row { min-height: 44px; } }
/* A file chooser drawn as an outlined Material button (the input inside it is hidden). */
.osm-file-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: var(--osm-m-control-sm-h); padding: 3px 12px; margin: 0;
  border: 1px solid var(--osm-rule-strong); border-radius: var(--osm-m-pill);
  background: transparent; color: var(--osm-ink);
  font-size: 0.8125rem; font-weight: 600; cursor: pointer;
}
.osm-file-button:hover { background: color-mix(in srgb, var(--osm-ink) 7%, transparent); }
.osm-file-button:focus-within { outline: 2px solid var(--osm-accent); outline-offset: 2px; }
.osm-file-button.is-disabled { opacity: 0.55; pointer-events: none; }
@media (max-width: 1023.98px), (pointer: coarse) { .osm-file-button { min-height: 44px; } }

/* ===========================================================================
 * Tables: Material's data table - the header on the card, a quiet rule
 * between rows, a state layer under the pointer. A table is
 * class="osm-table" (osm-table-sm for a dense one) inside an osm-table-scroll
 * box; the DataGrid draws the same.
 * ======================================================================== */
.osm-table {
  width: 100%; margin-bottom: 0; vertical-align: top;
  color: var(--osm-ink); font-variant-numeric: tabular-nums;
}
.osm-table > thead { vertical-align: bottom; }
.osm-table > tbody { vertical-align: inherit; }
.osm-table > :not(caption) > * > * { padding: 9px 14px; background-color: transparent; border-bottom: 1px solid var(--osm-rule); }
.osm-table-sm > :not(caption) > * > * { padding: 7px 12px; }
.osm-table > thead th, .osm-table > thead td {
  position: sticky; top: 0; z-index: 2; height: 40px;
  background: var(--osm-surface); color: var(--osm-ink-soft);
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: var(--osm-label-tracking); text-transform: var(--osm-label-transform);
  border-bottom: var(--osm-border-width) solid var(--osm-rule-strong);
  white-space: nowrap; vertical-align: bottom;
}
.osm-table > tbody td, .osm-table > tbody th { vertical-align: middle; }
.osm-table > tbody > tr:last-child > * { border-bottom-width: 0; }
/* Every row lights up under the pointer - the row is the thing you are about to open. */
.osm-table > tbody > tr:hover > * { background-color: color-mix(in srgb, var(--osm-ink) 5%, var(--osm-surface)); }
.osm-table > tbody > tr.is-selected > *,
.osm-table > tbody > tr[aria-selected='true'] > * { background-color: var(--osm-accent-soft); box-shadow: none; }
.osm-table > tbody > tr.is-selected > :first-child,
.osm-table > tbody > tr[aria-selected='true'] > :first-child { box-shadow: inset 3px 0 0 var(--osm-accent); }
/* A row that needs a look, in the theme's soft tones. */
.osm-table > tbody > tr.osm-row-warning > * { background-color: var(--osm-warn-soft); }
.osm-table > tbody > tr.osm-row-danger > * { background-color: var(--osm-alarm-soft); }
.osm-table > tbody > tr.osm-row-success > * { background-color: var(--osm-signal-soft); }
.osm-table-bordered > :not(caption) > * > * { border: 1px solid var(--osm-rule); }
.osm-table > .osm-table-divider { border-top: 2px solid var(--osm-rule-strong); }
.osm-table-scroll { position: relative; overflow-x: auto; -webkit-overflow-scrolling: touch; }
/* A consolidated statement on a phone (GroupConsolidation): a column for each
   company is wider than the screen, so the section column goes (its subtotal
   rows already name it), the account name stays at the left while the amounts
   scroll under it, and amounts and company names keep to one line instead of
   wrapping a letter or two at a time. */
@media (max-width: 599.98px) {
  .osm-group-statement tr > :nth-child(1) { display: none; }
  .osm-group-statement tr > :nth-child(3) {
    position: sticky; left: 0; z-index: 1; min-width: 8.5rem; max-width: 10rem;
    background: var(--osm-surface); box-shadow: 1px 0 0 var(--osm-rule);
  }
  .osm-group-statement tr > :nth-child(n+4) { white-space: nowrap; }
}
.osm-table-scroll.osm-panel { border-radius: var(--osm-m-radius); }
/* On a desk a long list scrolls inside its card with the header held in
   view, as an enterprise grid does; on a phone the page scrolls. */
@media (min-width: 992px) {
  .osm-panel.osm-table-scroll:has(> .osm-table) {
    overflow: auto;
    max-height: calc(100vh - var(--osm-sticky-top) - 120px);
    max-height: calc(100dvh - var(--osm-sticky-top) - 120px);
  }
}

/* Badges: a small count or label that is not a status (StatusBadge is the
   status pill). Colours from osm-pro.css's osm-badge-* pairs. */
.osm-badge {
  display: inline-block; padding: 3px 8px;
  font-size: 0.75rem; font-weight: 600; line-height: 1.2; letter-spacing: 0.01em;
  text-align: center; white-space: nowrap; vertical-align: baseline;
  border-radius: var(--osm-m-pill);
}
.osm-badge-accent { background: var(--osm-accent); color: var(--osm-on-accent); }
:root[data-theme='flare'] .osm-badge, :root[data-theme='mesquite'] .osm-badge { border-radius: 2px; }

/* A card that is not a FormSection: MudPaper Class="osm-card", with an
   optional head and foot. */
.osm-card-head { padding: 12px 16px; border-bottom: 1px solid var(--osm-rule); font-weight: 600; }
.osm-card-body { padding: 16px; }
.osm-card-foot { padding: 12px 16px; border-top: 1px solid var(--osm-rule); }
/* SecretOnce: ringed in the accent - it holds something shown once. */
.mud-paper.osm-secret-once { border: 2px solid var(--osm-accent); }
/* GettingStartedBanner: the accent down its left edge. */
.mud-paper.osm-getting-started { border-left: 4px solid var(--osm-accent); }
/* A charge on the schedule editor (Components/Billing/ChargeCard): its
   sentence on the sunk band; choices as a wrapping row of toggles. */
.osm-charge-card .osm-card-head { background: var(--osm-sunk); }
.mud-toggle-group.osm-choice-group { flex-wrap: wrap; height: auto; }
/* MudPagination's page buttons are round. */
.mud-pagination .mud-pagination-item .mud-button-root { border-radius: 50%; }

/* ===========================================================================
 * The shared components on MudBlazor
 * ======================================================================== */
/* PageHeader */
.osm-breadcrumb .mud-breadcrumbs { padding: 0; font-size: 0.8125rem; color: var(--osm-ink-soft); flex-wrap: wrap; }
.osm-breadcrumb .mud-breadcrumb-separator { margin: 0 6px; color: var(--osm-ink-mute); }
.osm-breadcrumb .mud-breadcrumb-separator > span { color: var(--osm-ink-mute); }
.osm-breadcrumb .mud-breadcrumb-item > a { color: var(--osm-ink-soft); }
.osm-breadcrumb .mud-breadcrumb-item > a:hover { color: var(--osm-accent); text-decoration: underline; }
.osm-breadcrumb [aria-current='page'] { color: var(--osm-ink); font-weight: 600; max-width: 40ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; vertical-align: bottom; }
.osm-page-title.mud-typography { margin: 0; color: var(--osm-ink); overflow-wrap: anywhere; }
.osm-page-lede.mud-typography { color: var(--osm-ink-soft); max-width: 80ch; margin: 2px 0 16px; }
.osm-commandbar-more.mud-icon-button { border: 1px solid var(--osm-rule-strong); padding: 5px; }

/* EmptyState */
.osm-empty-state {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 32px 24px; text-align: center;
  border-radius: var(--osm-m-radius);
  border: 1px dashed var(--osm-rule-strong) !important; box-shadow: none !important;
  background: var(--osm-surface);
}
.osm-empty-state-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; margin-bottom: 8px; border-radius: 50%;
  background: var(--osm-accent-soft); color: var(--osm-accent);
}
.osm-empty-state-title { font-weight: 600; color: var(--osm-ink); }
.osm-empty-state-detail { color: var(--osm-ink-soft); max-width: 60ch; }
.osm-empty-state-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 12px; }

/* KpiTile: the tile is a Material card; the link inside fills it. */
.osm-kpi-card.mud-paper { border-radius: var(--osm-m-radius); overflow: hidden; }
.osm-kpi-card > .osm-kpi { border-radius: 0; border-top: 0; border-right: 0; border-bottom: 0; box-shadow: none; height: 100%; }
a.osm-kpi:hover { background: color-mix(in srgb, var(--osm-ink) 4%, var(--osm-surface)); }
[data-bs-theme='dark'] .osm-kpi-card.mud-paper { box-shadow: 0 0 0 1px var(--osm-rule); }

/* FormSection and FactBox are MudPaper cards. */
.mud-paper.osm-form-section, .mud-paper.osm-factbox { background: var(--osm-surface); }

/* ConfirmButton's question. */
.osm-confirm {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 8px;
  padding: 4px 6px 4px 10px; border-radius: var(--osm-m-radius);
  background: var(--osm-alarm-soft); color: var(--osm-ink);
}
.osm-confirm-icon { color: var(--osm-alarm); flex: none; }
.osm-confirm-question { font-size: 0.875rem; }

/* ListToolbar: the Material search field. */
.osm-list-search .mud-input-control { margin: 0; }
.osm-list-search .mud-input-outlined { background: var(--osm-surface); border-radius: var(--osm-m-radius-sm); }
.osm-list-search .mud-input-slot { padding-top: 7px; padding-bottom: 7px; font-size: 0.875rem; }

/* Toggle (MudSwitch / MudCheckBox) and Pager (MudPagination). */
.osm-toggle.mud-input-control { margin: 0; }
.osm-toggle .mud-switch, .osm-toggle .mud-checkbox { margin: 0; }
.osm-toggle-label { font-size: 0.875rem; color: var(--osm-ink); }
.osm-pager { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 8px; }
.osm-pager-summary { color: var(--osm-ink-soft); font-size: 0.8125rem; }

/* The DataGrid's Columns menu and filter pop-over: Material menus. */
.osm-dg-menu, .osm-grid .col-options {
  border-radius: var(--osm-m-radius-sm); border-color: transparent;
  box-shadow: var(--osm-shadow-lg), 0 0 0 1px color-mix(in srgb, var(--osm-rule) 70%, transparent);
}
.osm-dg-chip { border-radius: var(--osm-m-radius-sm); padding: 3px 4px 3px 12px; border: 1px solid var(--osm-accent); }

/* ===========================================================================
 * Phones, tablets and touch: 44px targets everywhere a finger goes, 16px text
 * in fields so iOS does not zoom. Words inside a sentence (btn-link p-0,
 * osm-command-link) stay words - WCAG's inline exception.
 *
 * "Touch" is a width as well as a pointer: below 1024px, or any coarse
 * pointer. A tablet's browser does not always say it is touch (an iPad with a
 * keyboard case reports a fine pointer; so does a 768px window in a desk
 * browser's tablet preview), and 44px on a narrow desk window costs nothing.
 * Decided 2026-10-04: until then a 768px tablet only got 44px targets through
 * pointer: coarse.
 * ======================================================================== */
@media (max-width: 1023.98px), (pointer: coarse) {
  .osm-input { min-height: 44px; font-size: 1rem; }
  .mud-menu-item { min-height: 44px; }
  .mud-icon-button.osm-topbar-button, .osm-commandbar-more.mud-icon-button { min-width: 44px; min-height: 44px; }
  .osm-list-search .mud-input-slot { padding-top: 11px; padding-bottom: 11px; font-size: 1rem; }
  .mud-button-root.mud-button { min-height: 44px; }
  .mud-chip.osm-pill { height: 26px; }
}

/* ===========================================================================
 * A module's landing page (Pages/ModuleHome): a "Find a page" box, a row of
 * group buttons, and each group a Material card - an icon and a heading, one
 * muted line on what it is for, its pages at body size with their descriptions.
 *
 * As many columns as the width allows (two on a tablet, one on a phone, up to
 * six on a wide screen), evened out by module-masonry.js so every group fits
 * on the screen when it can. One group opened on its own fills the width, with
 * every description in full.
 * ======================================================================== */
/* Menu pages always use the whole content width, never a readable-width cap. */
.osm-page.osm-page-full { max-width: none; }
.osm-module-find { margin: 0 0 12px; max-width: 640px; }
.osm-module-find-label { display: block; font-weight: 600; font-size: 0.875rem; margin-bottom: 6px; color: var(--osm-ink); }
.osm-module-find-box { position: relative; }
.osm-module-find-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--osm-ink-mute); pointer-events: none; }
.osm-module-find-input {
  width: 100%; height: 44px; padding: 0 14px 0 40px;
  font-size: 1rem; color: var(--osm-ink); background: var(--osm-surface);
  border: 1px solid var(--osm-rule-strong); border-radius: var(--osm-m-radius-sm);
}
.osm-module-find-input::placeholder { color: var(--osm-ink-mute); opacity: 1; }
.osm-module-find-input:focus { outline: 2px solid var(--osm-accent); outline-offset: 0; border-color: var(--osm-accent); }

.osm-module-groups {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; padding: 2px;
}
.osm-module-group-button {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 14px;
  font: inherit; font-size: 0.875rem; font-weight: 500; white-space: nowrap; cursor: pointer;
  color: var(--osm-ink); background: var(--osm-surface);
  border: 1px solid var(--osm-rule-strong); border-radius: 999px;
  transition: background-color 0.12s var(--osm-m-ease), border-color 0.12s var(--osm-m-ease);
}
.osm-module-group-button:hover { background: color-mix(in srgb, var(--osm-accent) 8%, var(--osm-surface)); }
.osm-module-group-button:focus-visible { outline: 2px solid var(--osm-accent); outline-offset: 2px; }
.osm-module-group-button.is-selected { background: var(--osm-accent); border-color: var(--osm-accent); color: var(--osm-on-accent); }
.osm-module-grid.is-single .osm-module-group-text {
  display: block; -webkit-line-clamp: unset; line-clamp: none;
  white-space: normal; overflow: visible;
}

/* The same row of pills on any page shown one part at a time (TabStrip,
   PageTabs): a count beside the name, never over it; a warning mark after the
   name of a tab with a problem inside; the open part right under the row. */
.osm-tab .osm-tab-count { margin-left: 0; }
.osm-tab.is-selected .osm-tab-count { background: color-mix(in srgb, var(--osm-on-accent) 22%, transparent); color: var(--osm-on-accent); }
.osm-tab-warning.mud-icon-root { width: 20px; height: 20px; font-size: 1rem; padding: 2px; border-radius: 999px; background: var(--osm-warn-soft); color: var(--osm-warn); }
.osm-page-tabs-row.osm-module-groups { margin-bottom: 16px; }
.osm-page-tab-panel:focus-visible { outline: 2px solid var(--osm-accent); outline-offset: 4px; border-radius: var(--osm-m-radius-sm); }
.osm-page-tab-panel > .osm-form-section:first-child, .osm-page-tab-panel > .osm-panel:first-child,
.osm-page-tab-panel > .mud-paper:first-child { margin-top: 0 !important; }

/* As many columns as fit at 280px or more, up to six. module-masonry.js
   then places each card itself (is-masonry) so the columns come out even;
   these CSS columns are only what shows without it. */
.osm-module-grid { columns: 6 280px; column-gap: 20px; }
.osm-module-grid.is-single { columns: auto; }
.osm-module-grid.is-masonry {
  display: grid; columns: auto; column-gap: 20px; row-gap: 0;
  grid-template-columns: repeat(var(--osm-cols, 3), minmax(0, 1fr)); grid-auto-rows: 1px; align-items: start;
}
.osm-module-grid.is-masonry > .osm-module-section { margin: 0; align-self: start; }
.osm-module-section {
  display: inline-block; width: 100%; margin: 0 0 20px; padding: 0;
  break-inside: avoid; page-break-inside: avoid;
}
.osm-module-section.mud-paper { border-radius: var(--osm-m-radius); background: var(--osm-surface); overflow: hidden; }
.osm-module-head { padding: 14px 16px 10px; border-bottom: 1px solid var(--osm-rule); }
.osm-module-heading { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 1.125rem; font-weight: 700; line-height: 1.3; }
.osm-module-heading-button {
  display: inline-flex; align-items: center; gap: 8px; min-width: 0; padding: 2px 4px; margin: -2px -4px;
  font: inherit; color: inherit; background: none; border: 0; border-radius: var(--osm-m-radius-sm); cursor: pointer; text-align: left;
}
.osm-module-heading-button:hover .osm-module-heading-text { text-decoration: underline; text-underline-offset: 3px; }
.osm-module-heading-button:focus-visible { outline: 2px solid var(--osm-accent); outline-offset: 2px; }
.osm-module-heading-icon { color: var(--osm-accent); flex: none; }
.osm-module-heading-text { min-width: 0; }
.osm-module-group-text {
  margin: 4px 0 0; color: var(--osm-ink-mute); font-size: 0.8125rem; line-height: 1.4;
  overflow: hidden; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2;
}
.osm-module-hidden-chip.mud-chip { height: 22px; margin: 0 0 0 auto; font-size: 0.75rem; }

.osm-module-links { list-style: none; margin: 0; padding: 8px 0 10px; }
.osm-module-links > li + li { margin-top: 2px; }
.osm-module-link {
  display: flex; flex-direction: column; gap: 2px; margin: 0 8px; padding: 8px 10px;
  color: var(--osm-ink); text-decoration: none; border-radius: var(--osm-m-radius-sm);
  transition: background-color 0.12s var(--osm-m-ease);
}
.osm-module-link:hover { background: color-mix(in srgb, var(--osm-accent) 8%, transparent); color: var(--osm-ink); }
.osm-module-link:focus-visible { outline: 2px solid var(--osm-accent); outline-offset: -2px; }
.osm-module-link-title { display: inline-flex; align-items: center; gap: 4px; font-size: 1rem; font-weight: 500; color: var(--osm-accent); }
.osm-module-link-text {
  color: var(--osm-ink-mute); font-size: 0.8125rem; line-height: 1.4;
  overflow: hidden; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2;
}

/* The open tab: one group across the whole width, its pages in as many
   columns of 280px or more as fit, every description in full. The overview's
   two-line clamp comes off, or the box stays two lines tall and the rest draws
   over the next page's title and past the card's edge. */
.osm-module-grid.is-single .osm-module-links { columns: 6 280px; column-gap: 24px; }
.osm-module-grid.is-single .osm-module-links > li { break-inside: avoid; }
.osm-module-grid.is-single .osm-module-link-text {
  display: block; -webkit-line-clamp: unset; line-clamp: none;
  white-space: normal; overflow: visible;
}

/* Arranging (Customize layout). */
.osm-module-arrange { display: flex; flex-wrap: wrap; gap: 2px; padding: 6px 8px; background: var(--osm-sunk); border-bottom: 1px solid var(--osm-rule); }
.osm-module-grid.is-customizing .osm-module-section { cursor: grab; border: 1px dashed var(--osm-rule-strong); box-shadow: none; }
.osm-module-grid.is-customizing .osm-module-section.is-dragging { opacity: 0.6; }
.osm-module-grid.is-customizing .osm-module-link { pointer-events: none; }
.osm-module-section.is-hidden { opacity: 0.6; }
.osm-module-grip { color: var(--osm-ink-mute); cursor: grab; }
.osm-module-note.mud-typography { color: var(--osm-ink-soft); margin-bottom: 12px; }
.osm-module-loading { display: grid; gap: 12px; }

@media (max-width: 991.98px) {
  .osm-module-link { padding: 12px 10px; min-height: 44px; }
}
@media (max-width: 599.98px) {
  .osm-module-grid:not(.is-masonry), .osm-module-grid.is-single .osm-module-links { columns: 1; }
  /* The group buttons scroll sideways rather than wrapping down the screen. */
  .osm-module-groups { flex-wrap: nowrap; overflow-x: auto; margin-left: -16px; margin-right: -16px; padding: 2px 16px 6px; scrollbar-width: thin; }
  .osm-module-group-button { flex: none; }
}

/* ===========================================================================
 * Sign-in (Pages/SignIn): one raised Material card, the brand across its head
 * on the theme's top-bar colour, outlined fields, one filled button.
 * ======================================================================== */
.osm-auth { max-width: 30rem; }
/* The sign-in page: the card, and in DEMO the sample sign-ins in a column to its right
   (under it when there is no room). Empty column, outside DEMO: gone. */
.osm-auth.osm-auth-wide { max-width: 56rem; }
.osm-auth-row { display: flex; flex-wrap: wrap; gap: 24px; justify-content: center; align-items: flex-start; }
.osm-auth-row > .osm-auth-card { flex: 1 1 26rem; max-width: 30rem; }
.osm-auth-side { flex: 1 1 18rem; max-width: 24rem; }
.osm-auth-side:empty { display: none; }
/* On DEMO the sample sign-ins come first - to the left on a desk, on top on a
   phone - because trying the app with one is why a visitor is there. */
.osm-auth-side { order: -1; }
.osm-auth-side .osm-demo-accounts { margin: 0; background: var(--osm-surface); }
.osm-auth-card.mud-paper { padding: 0; overflow: hidden; border-radius: var(--osm-m-radius-lg); background: var(--osm-surface); }
.osm-auth-brand {
  display: flex; align-items: center; min-height: 64px; padding: 16px 32px;
  background: var(--osm-chrome); color: var(--osm-on-chrome);
  border-bottom: 3px solid var(--osm-chrome-rule);
}
.osm-auth-logo { display: inline-flex; padding: 0; border: 0; background: transparent; color: var(--osm-on-chrome); }
.osm-auth-logo .osm-lockup { height: 26px; color: var(--osm-on-chrome); --osm-accent: var(--osm-chrome-accent); }
.osm-auth-body { padding: 24px 32px 28px; }
.osm-auth-step.mud-typography { color: var(--osm-accent); }
.osm-auth-title.mud-typography { margin: 0 0 2px; color: var(--osm-ink); }
.osm-auth-lede.mud-typography { color: var(--osm-ink-soft); margin-bottom: 20px; }
/* PRODUCTION | TEST on the sign-in pages (EnvironmentSwitch). */
.osm-env-switch { display: flex; justify-content: center; margin: 4px 0 16px; }
.osm-env-switch .mud-button-root { min-height: 36px; min-width: 104px; }

.osm-auth-form { display: flex; flex-direction: column; gap: 4px; }
.osm-auth-field.mud-input-control { margin-bottom: 12px; }
.osm-auth-code input { font-family: var(--osm-font-mono); font-size: 1.25rem; letter-spacing: 0.2em; }
.osm-auth-link.mud-button { align-self: flex-start; margin: -4px 0 12px -8px; }
.osm-auth-submit.mud-button { margin-top: 4px; min-height: 44px; }
.osm-auth-help.mud-typography { color: var(--osm-ink-soft); margin-top: 20px; }
/* "or", then Sign in with Microsoft / Google (V1451): a rule either side. */
.osm-auth-or { display: flex; align-items: center; gap: 12px; margin: 16px 0 12px; color: var(--osm-ink-soft); font-size: 0.875rem; }
.osm-auth-or::before, .osm-auth-or::after { content: ""; flex: 1; border-top: 1px solid var(--osm-rule); }
.osm-auth-external-button.mud-button { min-height: 44px; justify-content: center; color: var(--osm-ink); }
:root[data-theme='flare'] .osm-auth-brand {
  border-bottom: 0;
  background-image: repeating-linear-gradient(-45deg, var(--osm-chrome-accent) 0 10px, var(--osm-chrome) 10px 20px);
  background-size: 100% 6px; background-repeat: no-repeat; background-position: bottom; padding-bottom: 22px;
}
@media (max-width: 575.98px) {
  .osm-auth { padding-left: 16px; padding-right: 16px; }
  .osm-auth-brand { padding: 14px 20px; }
  .osm-auth-body { padding: 20px; }
}

/* DEMO's sample sign-ins: rows of a Material list inside DEMO's own violet
   frame (environment-ribbon.css). */
.osm-demo-accounts__lede.mud-typography { color: var(--osm-ink-soft); margin-bottom: 8px; }
.osm-demo-accounts__list { list-style: none; margin: 0 -8px; padding: 0; }
.osm-demo-company { border-top: 1px solid var(--osm-rule); }
.osm-demo-company:first-of-type { border-top: 0; }
.osm-demo-company__name { cursor: pointer; padding: 10px 0; font-weight: 600; color: var(--osm-ink); }
.osm-demo-company__name:focus-visible { outline: 2px solid var(--osm-accent); outline-offset: 2px; }
.osm-demo-company__count { color: var(--osm-ink-mute); font-weight: 400; }
.osm-demo-account {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px;
  padding: 6px 8px; border: 0; border-radius: var(--osm-m-radius-sm);
  background: transparent; color: var(--osm-ink); text-align: start;
}
.osm-demo-account:hover { background: color-mix(in srgb, var(--osm-ink) 7%, transparent); }
.osm-demo-account:focus-visible { outline: 2px solid var(--osm-accent); outline-offset: -2px; }
.osm-demo-account__icon { color: var(--osm-ink-mute); flex: none; }
.osm-demo-account__text { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.osm-demo-account__email { color: var(--osm-accent); font-weight: 600; overflow-wrap: anywhere; }
.osm-demo-account__who { color: var(--osm-ink-soft); font-size: 0.8125rem; }
.osm-demo-account__go { color: var(--osm-ink-mute); flex: none; }

/* ===========================================================================
 * The showcase screens: the load board (Pages/Operations/Orders) and a load
 * (Pages/Operations/LoadPage), written in MudBlazor end to end.
 * ======================================================================== */
.osm-board { max-width: none; }
.osm-board-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 8px; }
.osm-board-tabs .mud-chip, .osm-board-problems .mud-chip { margin: 0; font-weight: 600; }
.osm-board-tabs .mud-chip { height: 34px; padding: 0 14px; border-radius: var(--osm-m-radius-sm); }
.osm-board-tabs .mud-chip.mud-chip-outlined { border-color: var(--osm-rule-strong); color: var(--osm-ink-soft); }
.osm-board-problems { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.osm-board-hint.mud-typography { color: var(--osm-ink-soft); margin-bottom: 12px; }
.osm-board-hint .mud-button { vertical-align: baseline; }
.osm-board-dates.mud-input-control { width: 250px; flex: 0 0 auto; margin: 0; }
.osm-board-customer.mud-input-control { width: 220px; flex: 0 0 auto; margin: 0; }
.osm-board-action.mud-paper { padding: 16px; margin-bottom: 12px; border-radius: var(--osm-m-radius); }
.osm-board-action-buttons, .osm-load-panel-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.osm-board-number { font-weight: 600; }
.osm-board-route { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 2px 4px; }
.osm-board-route-arrow { color: var(--osm-ink-mute); flex: none; }
.osm-board-foot.mud-typography { color: var(--osm-ink-mute); margin-top: 8px; }
.osm-alert-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.osm-alert-action.mud-button { margin-left: 4px; }
.osm-grid .mud-chip.osm-pill { height: 22px; font-size: 0.7rem; }
@media (max-width: 767.98px) {
  .osm-board-dates.mud-input-control, .osm-board-customer.mud-input-control { width: 100%; }
  .osm-board-tabs .mud-chip { height: 44px; }
}

/* The date window (Components/DateWindow): the dates a list of loads or their
   paperwork shows - a choice, and two days when the choice is a range. */
.osm-date-window { display: inline-flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; flex: 0 0 auto; }
.osm-date-window .osm-date-window-choice.mud-input-control { width: 180px; flex: 0 0 auto; margin: 0; }
.osm-date-window .osm-date-window-day.mud-input-control { width: 160px; flex: 0 0 auto; margin: 0; }
@media (max-width: 767.98px) {
  .osm-date-window { display: flex; width: 100%; }
  .osm-date-window .osm-date-window-choice.mud-input-control { width: 100%; }
  .osm-date-window .osm-date-window-day.mud-input-control { width: calc(50% - 4px); }
}

.osm-load { max-width: none; }
.osm-load-flags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.osm-load-flags:empty { display: none; }
.osm-load-flags .mud-chip { margin: 0; }
/* The load's numbers (the Paperwork band): 15px plus the outline lines its columns up with the summary's below. */
.osm-load-facts.mud-paper {
  padding: 12px 15px; margin-bottom: 16px; border-radius: var(--osm-m-radius); background: var(--osm-surface);
}
/* Two across on a phone, as the strip was: five short numbers do not need five rows. */
@media (max-width: 767.98px) {
  .osm-load-facts .osm-field-list.osm-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.osm-load-acceptance.mud-typography { margin-bottom: 12px; }
.osm-load-panel.mud-paper { padding: 20px; margin-bottom: 16px; border-radius: var(--osm-m-radius); background: var(--osm-surface); }
.osm-load-panel.is-danger { box-shadow: var(--osm-shadow-md), inset 4px 0 0 var(--osm-alarm); }
.osm-load-panel-lede.mud-typography { color: var(--osm-ink-soft); margin: 4px 0 12px; }
.osm-load-panel-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 12px; }
/* Mono fields: specific enough to beat MudBlazor's own ".mud-input > input.mud-input-root { font: inherit }". */
.osm-mono-field input, .osm-mono-field textarea,
.osm-mono-field .mud-input > input.mud-input-root, .osm-mono-field .mud-input > textarea.mud-input-root {
  font-family: var(--osm-font-mono); font-variant-numeric: tabular-nums;
}
.osm-load-tabs { margin-top: 8px; }
.osm-load-tabs .mud-tabs-tabbar { background: transparent; border-bottom: 1px solid var(--osm-rule); }
.osm-load-tabs .mud-tab { text-transform: var(--mud-typography-button-text-transform, none); font-weight: 600; color: var(--osm-ink-soft); min-height: 44px; }
.osm-load-tabs .mud-tab.mud-tab-active { color: var(--osm-ink); }
.osm-load-tabs .mud-tab-slider { background: var(--osm-accent); height: 3px; border-radius: 3px 3px 0 0; }
.osm-load-tab-panel { padding-top: 16px; }

/* The board's wordy columns keep a readable width; the grid scrolls inside its card instead of squeezing them. */
.osm-board .osm-grid td.osm-dg-c-route, .osm-board .osm-grid th.osm-dg-c-route { min-width: 15rem; }
.osm-board .osm-grid td.osm-dg-c-what, .osm-board .osm-grid th.osm-dg-c-what { min-width: 10rem; }
.osm-board .osm-grid td.osm-dg-c-party, .osm-board .osm-grid th.osm-dg-c-party { min-width: 11rem; }

/* Phones, continued: the toolbar's search takes the whole row; the boards are
   one row of chips that scrolls sideways inside itself (never the page);
   Material fields and the grid's check boxes are big enough for a thumb. */
@media (max-width: 767.98px) {
  .osm-list-search { flex: 1 1 100%; min-width: 0; }
  .osm-board-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-left: calc(-1 * var(--osm-page-pad)); margin-right: calc(-1 * var(--osm-page-pad)); padding: 0 var(--osm-page-pad) 4px; }
  .osm-board-tabs::-webkit-scrollbar { display: none; }
  .osm-board-tabs .mud-chip { flex: none; }
  .osm-grid .osm-check, .osm-dg .osm-check { width: 20px; height: 20px; }
}
@media (max-width: 1023.98px), (pointer: coarse) {
  .osm-topbar-account { min-width: 44px; min-height: 44px; }
}
/* The side sheet starts under the TEST/DEMO ribbon, the support banner and a
   phone's notch (all in --osm-safe-top), so its title is never behind them. */
.osm-sheet { top: var(--osm-safe-top, 0px); bottom: 0; height: auto; max-height: none; }
.osm-sheet .osm-sheet-body { overflow-y: auto; padding-bottom: calc(24px + var(--osm-safe-bottom, 0px)); }
/* A phone turned sideways (or any short window): the page header scrolls away
   with the page instead of holding a third of the height. */
@media (max-height: 500px) {
  .osm-page-header.is-sticky { position: static; margin-top: 0; }
}
/* Menus from the top bar never run off a short screen: they scroll inside. */
.mud-popover.osm-menu-popover { max-height: calc(100vh - var(--osm-frame-top) - 12px); max-height: calc(100dvh - var(--osm-frame-top) - 12px); overflow-y: auto; overscroll-behavior: contain; }

/* ===========================================================================
 * The shared polish pass (2026-10-04): rules every screen leans on, so pages
 * stop fixing them one by one.
 * ======================================================================== */

/* A table's scroll box is the containing block of whatever is absolutely
   placed inside it - QuickGrid's hidden heading text, a filter pop-over - so
   none of it can widen the page past a phone's edge. */
.osm-dg-scroll, .mud-table-container, .osm-table-scroll { position: relative; }

/* KPI tiles: two to a row on a phone, so the first screen shows the lists too -
   over a page's own column width (FinanceHome sets one inline for the desk). */
@media (max-width: 575.98px) {
  .osm-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 8px; }
}

/* Numbers in Material fields line up on the right, like the money they hold:
   any MudNumericField given Class="osm-num-field", and every one in a table cell. */
.osm-num-field input.mud-input-root, .osm-num-field .mud-input > input,
td .mud-input-number-control input.mud-input-root, .osm-grid .mud-input-number-control input.mud-input-root {
  text-align: right; font-variant-numeric: tabular-nums;
}

/* A command that reads as a link: a MudButton (Variant.Text) with
   Class="osm-command-link", or a <button class="osm-command-link"> - for an
   action inside a sentence or a dense row ("Clear filters", "Withdraw"). No
   padding or pill; underlined under the pointer; the inline exception to the
   44px rule, like a link. ConfirmButton and PrintButton draw it when asked
   for a link (Link="true"). */
.osm-command-link, .mud-button-root.mud-button.osm-command-link {
  display: inline-flex; align-items: baseline; gap: 4px;
  min-width: 0; min-height: 0; padding: 0; margin: 0;
  border: 0; border-radius: 2px; background: transparent; box-shadow: none;
  color: var(--osm-accent); font: inherit; font-weight: 600; line-height: inherit;
  text-transform: none; letter-spacing: inherit; vertical-align: baseline; cursor: pointer;
}
.osm-command-link:hover:not(:disabled), .mud-button-root.mud-button.osm-command-link:hover:not(:disabled) { background: transparent; text-decoration: underline; }
.osm-command-link:focus-visible { outline: 2px solid var(--osm-accent); outline-offset: 2px; }
.osm-command-link:disabled, .mud-button-root.mud-button.osm-command-link.mud-button-disabled { color: var(--osm-ink-mute); cursor: default; }
.mud-button-root.mud-button.osm-command-link .mud-button-label { line-height: inherit; }
.mud-button-root.mud-button.osm-command-link .mud-ripple { display: none; }
.mud-button-text-error.osm-command-link { color: var(--osm-alarm); }

/* Guarded: what a screen shows instead of its data. */
.osm-guarded-loading { display: grid; gap: 6px; padding: 8px 0; }
.mud-alert.osm-guarded .mud-alert-message { display: flex; flex-direction: column; gap: 2px; }
.osm-guarded-title { color: var(--osm-ink); }
.osm-guarded-detail { color: var(--osm-ink-soft); font-size: 0.875rem; }
.mud-alert.osm-guarded-forbidden { background-color: var(--osm-sunk); color: var(--osm-ink); border-color: var(--osm-rule-strong); }

/* DateTimeInput: the outlined date-and-time box and its Material pickers. */
.osm-datetime { position: relative; min-width: 0; }
.osm-datetime .mud-input-control { margin: 0; }
.osm-datetime-problem { margin-top: 4px; font-size: 0.75rem; color: var(--osm-alarm); }
.osm-datetime .mud-input > input.mud-input-root { font-variant-numeric: tabular-nums; }
.osm-datetime-sm .mud-input > input.mud-input-root-outlined.mud-input-root-margin-dense { padding-top: 7px; padding-bottom: 7px; font-size: 0.875rem; }
.osm-datetime-sm .mud-input-label-outlined.mud-input-label-margin-dense { transform: translate(14px, 9px) scale(1); }
.mud-popover.osm-datetime-popover { border-radius: var(--osm-m-radius-lg); background: var(--osm-surface); color: var(--osm-ink); }
.osm-datetime-pickers { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0 8px; padding: 8px; max-width: calc(100vw - 16px); }
.osm-datetime-pickers .mud-picker-static { background: transparent; }
.osm-datetime-actions { display: flex; justify-content: flex-end; gap: 8px; width: 100%; padding: 4px 8px 4px; }
/* On a phone the calendar and the clock sit one above the other, taller than
   the screen under the field: they rise from the bottom as a sheet that scrolls. */
@media (max-width: 575.98px) {
  .mud-popover.osm-datetime-popover {
    position: fixed !important; top: auto !important; left: 8px !important; right: 8px; bottom: 8px;
    max-height: calc(100dvh - 16px); overflow-y: auto; overscroll-behavior: contain;
  }
  .osm-datetime-pickers { justify-content: center; max-width: none; }
}
/* A secret shown once and a kiosk's pasted token: the same outlined field, the text larger to read and check. */
.osm-secret-value .mud-input > input.mud-input-root { font-size: 1.25rem; }
.osm-kiosk-token .mud-input > input.mud-input-root { font-size: 1.25rem; }

/* PlacePicker: the address book's look-up, a Material list under the field. */
.osm-place-picker { position: relative; min-width: 0; }
.mud-paper.osm-place-picker-list {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: var(--mud-zindex-popover, 1200);
  max-height: 22rem; overflow-y: auto; overscroll-behavior: contain;
  border-radius: var(--osm-m-radius-sm); background: var(--osm-surface); color: var(--osm-ink);
}
.osm-place-picker-list .mud-list { padding-top: 8px; padding-bottom: 8px; }
.osm-place-option.mud-list-item { align-items: flex-start; min-height: 48px; gap: 8px; }
.osm-place-option-text { flex: 1 1 auto; min-width: 0; }
.osm-place-option-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.osm-place-option-flags { display: inline-flex; gap: 4px; flex: none; }
.osm-place-option-detail.mud-typography { color: var(--osm-ink-soft); }
.osm-place-option-why.mud-typography { color: var(--osm-ink-mute); font-style: italic; }
.osm-place-add.mud-list-item { align-items: center; border-top: 1px solid var(--osm-rule); color: var(--osm-accent); font-weight: 600; }
.osm-place-new.mud-paper { border-radius: var(--osm-m-radius); background: var(--osm-surface); }

/* PersonChip: a name that opens a small card. The button is the name; on
   touch its target grows to 44px without moving the line it sits in. */
.osm-person-chip { position: relative; display: inline-flex; align-items: center; gap: 4px; min-width: 0; }
.osm-person-chip-button {
  position: relative; display: inline-flex; align-items: center; gap: 4px; min-width: 0;
  padding: 0; margin: 0; border: 0; border-radius: 2px; background: transparent;
  color: inherit; font: inherit; text-align: start; cursor: pointer;
}
.osm-person-chip-name { text-decoration: underline dotted; text-underline-offset: 3px; }
.osm-person-chip-button:hover .osm-person-chip-name { text-decoration-style: solid; color: var(--osm-accent); }
.osm-person-chip-button:focus-visible { outline: 2px solid var(--osm-accent); outline-offset: 2px; }
.osm-person-chip-scrim { position: fixed; inset: 0; z-index: 1070; }
.osm-person-card-popover {
  position: fixed; z-index: 1071; display: block; min-width: 18rem; max-width: min(22rem, calc(100vw - 16px));
  padding: 0; border-radius: var(--osm-m-radius); background: var(--osm-surface); color: var(--osm-ink);
}

/* MudBlazor's text fields on a phone or tablet: a dense outlined field grows
   from 40px to 44px, and its label moves down with it so it stays centered.
   Only dense fields: a normal one is already 56px. (Until 2026-10-04 every
   outlined field was trimmed to 45px here, and a normal field's label then
   sat 7px low.) */
@media (max-width: 1023.98px), (pointer: coarse) {
  .mud-input.mud-input-outlined > input.mud-input-root-outlined.mud-input-root-margin-dense,
  .mud-input.mud-input-outlined > div.mud-input-slot.mud-input-root-outlined.mud-input-root-margin-dense { padding-top: 12.5px; padding-bottom: 12.5px; }
  .mud-input-label-outlined.mud-input-label-margin-dense { transform: translate(14px, 14px) scale(1); }
  .osm-datetime-sm .mud-input > input.mud-input-root-outlined.mud-input-root-margin-dense { padding-top: 12.5px; padding-bottom: 12.5px; font-size: 1rem; }
  .osm-datetime-sm .mud-input-label-outlined.mud-input-label-margin-dense { transform: translate(14px, 14px) scale(1); }

  /* Icon buttons in a field (clear, show the password, the calendar) and a
     picker's Clear: 44px to press, without making the field taller. */
  .mud-input-adornment .mud-icon-button, .mud-input-clear-button.mud-icon-button {
    min-width: 44px; min-height: 44px; margin-top: -10px; margin-bottom: -10px;
  }
  .mud-picker .mud-button-root.mud-button, .mud-picker-actions .mud-button-root, .mud-dialog-actions .mud-button-root { min-height: 44px; }

  /* Every icon button (a row's "more", a menu's arrows). */
  .mud-button-root.mud-icon-button { min-width: 44px; min-height: 44px; }
  /* ...but not a switch's thumb: MudSwitch draws it as an icon button inside
     its track (24px tall when small, overflow hidden), and 44px there pushed
     the thumb below the track. The whole switch - track and label - is the
     target instead. */
  .mud-button-root.mud-icon-button.mud-switch-base { min-width: 0; min-height: 0; }
  .mud-switch { min-height: 44px; }

  /* The pager's page buttons. */
  .mud-pagination .mud-pagination-item .mud-button-root { min-width: 44px; min-height: 44px; }

  /* Chips a finger presses (filters, choices) are 44px tall; a status pill is
     a label, not a target, and stays small. */
  .mud-chip.mud-clickable:not(.osm-pill), .mud-chip.osm-chip-target { min-height: 44px; }
  .mud-chip.mud-clickable .mud-chip-close-button { min-width: 32px; min-height: 32px; }

  /* A name that opens a card. */
  .osm-person-chip-button::after { content: ""; position: absolute; inset: -12px -4px; }

  /* Picker rows. */
  .osm-place-option.mud-list-item { min-height: 56px; }

  /* A table heading that sorts (SortableHeader) and a section that folds
     (FormSection): the whole heading is the button. */
  .osm-sort-button { min-height: 44px; }
  .osm-form-section-toggle { min-height: 44px; }

  /* Role check boxes: a row a thumb can hit. */
  .osm-role-option.mud-input-control .mud-checkbox { min-height: 44px; }
}

/* RolePicker: a check box per role, the words beside it its label. */
.osm-role-picker { display: flex; flex-direction: column; gap: 4px; }
.osm-role-option.mud-input-control { margin: 0; }
.osm-role-option .mud-checkbox { align-items: flex-start; }
.osm-role-option .mud-checkbox > .mud-button-root { margin-top: -6px; }
.osm-role-text { display: flex; flex-direction: column; gap: 1px; padding-top: 2px; }
.osm-role-name { font-weight: 600; color: var(--osm-ink); }
.osm-role-purpose { font-size: 0.8125rem; color: var(--osm-ink-soft); }
.osm-role-warning { font-size: 0.8125rem; color: var(--osm-alarm); }
.osm-role-picker-none.mud-typography { color: var(--osm-ink-soft); }

/* TimeZonePicker */
.osm-time-zone-picker.mud-input-control { margin: 0; }
.osm-time-zone-failed.mud-typography { color: var(--osm-ink-soft); margin-top: 4px; }

/* Picker (Components/Pickers): every select and combo box. The wrapper draws no
   box of its own, so a picker sits in a row or a grid cell exactly as the
   MudSelect it replaced did; its chips and its "nothing matches" line follow it. */
.osm-picker { display: contents; }
.osm-picker-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.osm-picker-note.mud-typography { margin-top: 2px; }
.osm-picker-option { min-width: 0; }
/* What is chosen is no longer active (or no longer in the list): kept, with this under the box. */
/* The picker is normally invisible to the page's layout (display: contents); with a warning it is one column,
   box over warning, so the warning sits under the box and not beside it in the page's row. */
.osm-picker.osm-picker-warned { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; }
.osm-picker-warning { display: flex; align-items: flex-start; gap: 6px; margin-top: 4px; padding: 4px 8px; border-left: 4px solid var(--osm-warn);
  border-radius: 4px; background: var(--osm-warn-soft); color: var(--osm-ink); font-size: 0.8125rem; line-height: 1.35; }
.osm-picker-warning-icon.mud-icon-root { color: var(--osm-warn); flex: none; margin-top: 1px; }
.osm-picker-more.mud-typography { display: block; padding: 6px 16px; }
/* A picker inside a sentence (the charge and condition editors, the report filters):
   as wide as its words need, not the whole row. */
.osm-picker-inline.mud-input-control { width: auto; max-width: 100%; flex: 0 1 auto; margin: 0; }
.mud-autocomplete:has(> .osm-picker-inline) { flex: 0 1 auto; width: auto; max-width: 100%; }
.osm-picker-inline .mud-input > input.mud-input-root { field-sizing: content; min-width: 8ch; }
.osm-picker-show-more.mud-button-root { width: 100%; justify-content: flex-start; padding-left: 16px; }
@media (max-width: 1023.98px), (pointer: coarse) {
  .osm-picker-popover .mud-list-item { min-height: 44px; }
}
/* A phone does not zoom in on a picker's box when it is tapped. */
@media (max-width: 599.98px) {
  .osm-picker .mud-input > input.mud-input-root { font-size: 16px; }
}

/* StepUpPrompt: "Confirm it is you", a Material dialog over the dimmed page. */
.osm-stepup-scrim { position: fixed; inset: 0; z-index: 1080; background-color: var(--osm-backdrop); }
.mud-paper.osm-stepup {
  position: fixed; z-index: 1081; top: 14vh; left: 50%; transform: translateX(-50%);
  width: min(28rem, calc(100vw - 2rem)); max-height: calc(100vh - 16vh); overflow-y: auto;
  padding: 24px; border-radius: var(--osm-m-radius-lg); background: var(--osm-surface); color: var(--osm-ink);
}
.osm-stepup-title.mud-typography { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; }
.osm-stepup-why.mud-typography { color: var(--osm-ink-soft); margin-bottom: 16px; }
.osm-stepup-form { display: flex; flex-direction: column; gap: 12px; }
.osm-stepup-form .mud-input-control { margin: 0; }
.osm-stepup-code.mud-input-control { max-width: 16rem; }
.osm-stepup-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.osm-stepup-note.mud-typography { color: var(--osm-ink-mute); margin: 4px 0 0; }
@media (max-width: 575.98px) {
  .mud-paper.osm-stepup { top: calc(var(--osm-safe-top, 0px) + 16px); padding: 20px 16px; }
}

/* ===========================================================================
 * Shop & Equipment (Pages/Maintenance): moved here unchanged from the
 * ShopStyles component, which drew them as a <style> in each page because
 * scoped CSS was not loaded then.
 * ======================================================================== */
/* Sections of a shop page, and the paragraphs under them. */
.shop-section.mud-typography { margin-top: 24px; }
.shop-section-first.mud-typography { margin-top: 0; }
.shop-note.mud-typography { color: var(--osm-ink-soft); }
.shop-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 16px; }
.shop-panel.mud-paper { padding: 16px 20px; border-radius: var(--osm-m-radius); background: var(--osm-surface); }
.shop-panel + .shop-panel { margin-top: 16px; }
.shop-two { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
.shop-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 12px; }
.shop-fields > .shop-wide { grid-column: 1 / -1; }
.shop-inline { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; }
.shop-inline > .mud-input-control { flex: 1 1 12rem; margin: 0; }
.shop-inline > .mud-input-control.shop-narrow { flex: 0 1 10rem; }
.shop-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-bottom: 12px; }
.shop-filters > .mud-input-control { flex: 0 1 16rem; margin: 0; }
.shop-list { margin: 0; padding-left: 18px; }
.shop-list > li { margin-bottom: 4px; }
.shop-plain { list-style: none; padding-left: 0; }
.shop-row { padding: 10px 12px; border-bottom: 1px solid var(--osm-rule); align-items: center; }
.shop-row:last-child { border-bottom: 0; }
.shop-row-label { flex: 1 1 10rem; min-width: 0; font-weight: 600; }
.shop-scroll { max-height: 14rem; overflow-y: auto; border: 1px solid var(--osm-rule); border-radius: var(--osm-m-radius-sm); padding: 4px 8px; margin-bottom: 12px; }
.shop-meters { display: flex; flex-wrap: wrap; gap: 8px 32px; margin-bottom: 8px; }
.shop-meter-value { font-family: var(--osm-font-mono); font-size: 1.25rem; color: var(--osm-ink); }
.shop-done { text-decoration: line-through; color: var(--osm-ink-soft); }
.shop-soon { color: var(--osm-alarm); font-weight: 600; }
.shop-cost td:last-child { text-align: right; }
.shop-cost tr.is-total td { font-weight: 600; }
/* The dashboard's counts two to a row on a phone, so the lists start on the first screen. */
@media (max-width: 575.98px) {
    .shop-kpis.osm-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
}
@media (min-width: 992px) {
    .shop-two { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
    .shop-two.is-even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

/* The inspection form: a phone in a gloved hand, so every target is big. */
.shop-dvir .mud-button-root.mud-button, .shop-dvir .mud-toggle-item { min-height: 48px; }
.shop-dvir-kind.mud-toggle-group { width: 100%; }
.shop-dvir-kind .mud-toggle-item { flex: 1 1 0; font-size: 1rem; }
.shop-dvir-item { padding: 10px 12px; border-bottom: 1px solid var(--osm-rule); }
.shop-dvir-item:last-child { border-bottom: 0; }
.shop-dvir-item-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.shop-dvir-item-head > .shop-dvir-label { flex: 1 1 10rem; min-width: 0; }
.shop-dvir-item-head .mud-button-root.mud-button { min-width: 6rem; }
/* OK and Problem stay side by side, and wrap under the item together. */
.shop-dvir-choice { display: flex; gap: 8px; margin-left: auto; }
.shop-dvir-problem { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 8px; margin-top: 8px; }
.shop-dvir-problem > .shop-wide { grid-column: 1 / -1; }
.shop-dvir-submit.mud-button { width: 100%; min-height: 52px; margin-bottom: 24px; }

/* The shop calendar. A desk sees the grid: bays (or technicians) down the
   side, the week across the top. Below 1200px each bay is a block with its
   seven days one under another, so nothing scrolls sideways. */
.shop-cal.mud-paper { border-radius: var(--osm-m-radius); background: var(--osm-surface); overflow: hidden; margin-bottom: 16px; }
.shop-cal-head { display: none; }
.shop-cal-row { border-top: 1px solid var(--osm-rule); }
.shop-cal-row:first-of-type { border-top: 0; }
.shop-cal-name { padding: 10px 12px; font-weight: 600; background: var(--osm-ground); }
.shop-cal-cell { display: flex; flex-direction: column; align-items: stretch; gap: 6px; padding: 8px 12px; border-top: 1px solid var(--osm-rule); min-width: 0; }
.shop-cal-day { font-size: 0.8125rem; font-weight: 600; color: var(--osm-ink-soft); }
.shop-cal-cell.is-today .shop-cal-day, .shop-cal-head .is-today { text-decoration: underline; color: var(--osm-ink); }
.shop-cal-slot.mud-chip { margin: 0; height: auto; min-height: 44px; max-width: 100%; justify-content: flex-start; padding: 6px 10px; border-radius: var(--osm-m-radius-sm); }
.shop-cal-slot .mud-chip-content { display: block; white-space: normal; text-align: left; line-height: 1.3; }
.shop-cal-slot-time { display: block; font-size: 0.75rem; }
.shop-cal-slot-number { font-family: var(--osm-font-mono); font-size: 0.8125rem; }
.shop-cal-move.mud-button { align-self: flex-start; }
.shop-cal-week { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.shop-cal-week-label.mud-typography { font-weight: 600; margin-right: auto; }
/* The week buttons stay together; in a wide-lettered theme they move under the dates as one row. */
.shop-cal-week-nav { display: flex; flex-wrap: nowrap; align-items: center; gap: 8px; }
@media (min-width: 1200px) {
    .shop-cal-head, .shop-cal-row { display: grid; grid-template-columns: 10rem repeat(7, minmax(0, 1fr)); }
    .shop-cal-head > div { padding: 8px; font-weight: 600; font-size: 0.8125rem; border-left: 1px solid var(--osm-rule); }
    .shop-cal-head > div:first-child { border-left: 0; }
    .shop-cal-row:first-of-type { border-top: 1px solid var(--osm-rule); }
    .shop-cal-name { padding: 8px; font-size: 0.8125rem; background: none; }
    .shop-cal-cell { border-top: 0; border-left: 1px solid var(--osm-rule); padding: 6px; min-height: 4rem; }
    .shop-cal-day { display: none; }
    .shop-cal-slot.mud-chip { min-height: 0; }
}

/* ===========================================================================
 * Compliance (Pages/Compliance): records drawn as cards, rows of actions,
 * field grids, quiet text. Moved here unchanged from the ComplianceStyles
 * component, which drew them as a <style> in each page.
 * ======================================================================== */
/* Words: quieter, fainter, stronger, smaller, fixed-width. */
.comp-soft { color: var(--osm-ink-soft); }
.comp-faint { color: var(--osm-ink-mute); }
.comp-strong { font-weight: 600; color: var(--osm-ink); }
.comp-small { font-size: 0.8125rem; }
.comp-mono { font-family: var(--osm-font-mono); font-size: 0.8125rem; overflow-wrap: anywhere; }
.comp-nowrap { white-space: nowrap; }
.comp-strike { text-decoration: line-through; color: var(--osm-ink-mute); }
.comp-note.mud-typography { color: var(--osm-ink-soft); margin-bottom: 12px; max-width: 90ch; }
.comp-heading.mud-typography { margin: 24px 0 8px; color: var(--osm-ink); }
.comp-heading-first.mud-typography { margin-top: 0; }
.comp-group.mud-typography { margin: 0 0 8px; }

/* Rows of buttons, and stacks of cards. */
.comp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.comp-actions-end { justify-content: flex-end; }
.comp-stack { display: flex; flex-direction: column; gap: 8px; }
.comp-block { margin-bottom: 16px; }

/* A record drawn as a card: a main column, narrower columns beside it that
   drop under it on a phone, and a foot under a rule. */
.comp-card.mud-paper { padding: 12px 16px; border-radius: var(--osm-m-radius); background: var(--osm-surface); }
.comp-card-row { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px 24px; }
.comp-card-main { flex: 1 1 16rem; min-width: 0; }
.comp-card-col { flex: 0 1 16rem; min-width: min(100%, 14rem); }
.comp-card-wide { flex: 0 1 26rem; min-width: min(100%, 16rem); }
.comp-card-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.comp-card-foot { border-top: 1px solid var(--osm-rule); margin-top: 8px; padding-top: 8px; }
.comp-title-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.comp-title-row .mud-chip { margin: 0; }
.comp-share { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-right: 16px; }

/* Tables: a cell holding a small form, and a column that stays on one line. */
.comp-table .mud-table-container { overflow-x: auto; }
.comp-cell-wide { min-width: 15rem; }
.comp-cell-form { min-width: 16rem; }
.comp-cell-form .mud-input-control { margin: 0 0 6px; }
.comp-table td .mud-chip { margin: 0; }

/* Fields side by side in a drawer or a card, one under another on a phone. */
.comp-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 12px; margin-bottom: 12px; }
.comp-fields .mud-input-control { margin: 0; }
.comp-form > .mud-input-control { margin-bottom: 12px; }
.comp-form .comp-fields { margin-bottom: 12px; }
.comp-filter.mud-input-control { width: 200px; flex: 0 0 auto; margin: 0; }
.comp-filter-date.mud-input-control { width: 170px; flex: 0 0 auto; margin: 0; }
.comp-period { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.comp-period .mud-input-control { width: 200px; flex: 0 0 auto; margin: 0; }

/* Side by side choices (keep / change / remove), and check-box lists. */
.comp-choices.mud-button-group-root { flex-wrap: wrap; margin-bottom: 8px; }
.comp-checks { display: flex; flex-direction: column; gap: 0; margin-bottom: 8px; }
.comp-checks .mud-input-control { margin: 0; }
fieldset.comp-checks { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
fieldset.comp-checks > legend { float: none; width: auto; padding: 0; margin-bottom: 4px; font-size: 0.75rem; }

/* A segregation-of-duties side in the add-a-rule drawer. */
.comp-side.mud-paper { padding: 8px 12px 12px; margin-bottom: 8px; border-radius: var(--osm-m-radius-sm); }
.comp-side-title.mud-typography { margin-bottom: 8px; }

/* Lists. */
.comp-list { margin: 0; padding-left: 1.25rem; }
.comp-plain-list { list-style: none; margin: 0; padding: 0; }
.comp-plain-list > li + li { margin-top: 4px; }
.comp-scroll { max-height: 14rem; overflow-y: auto; margin-top: 8px; }
.comp-details > summary { cursor: pointer; color: var(--osm-ink-soft); }
.comp-details > summary:focus-visible { outline: 2px solid var(--osm-accent); outline-offset: 2px; }

/* The progress of an access review. */
.comp-progress { margin-bottom: 16px; }
.comp-progress-label { display: flex; justify-content: space-between; gap: 8px; font-size: 0.8125rem; margin-bottom: 4px; color: var(--osm-ink-soft); }

/* Touch: a summary that opens a list is a target too. */
@media (max-width: 1023.98px), (pointer: coarse) {
    .comp-details > summary { min-height: 44px; display: flex; align-items: center; }
    .comp-filter.mud-input-control, .comp-filter-date.mud-input-control { width: 100%; }
}

/* ===========================================================================
 * Quality (Pages/Quality) on MudBlazor: the few shapes the quality screens
 * share - panels, field grids, action rows and quiet text styles.
 * ======================================================================== */
.qa-note, .qa-note.mud-typography { color: var(--osm-ink-soft); }
.qa-muted, .qa-muted.mud-typography { color: var(--osm-ink-mute); }
.qa-mono { font-family: var(--osm-font-mono); }
.qa-small { font-size: 0.8125rem; }
.qa-strong { font-weight: 600; }
.qa-nowrap { white-space: nowrap; }
.qa-block { display: block; }
.qa-danger { color: var(--osm-alarm); }
.qa-pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.qa-panel.mud-paper { padding: 16px 20px; border-radius: var(--osm-m-radius); background: var(--osm-surface); }
.qa-panel + .qa-panel { margin-top: 16px; }
.qa-panel-title.mud-typography { font-weight: 600; margin: 0 0 8px; }
.qa-two { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
.qa-three { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: stretch; }
.qa-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-bottom: 12px; }
.qa-fields > .qa-wide { grid-column: 1 / -1; }
.qa-fields > .mud-input-control, .qa-inline > .mud-input-control { margin: 0; }
.qa-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.qa-actions.qa-end { justify-content: flex-end; }
.qa-inline { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; }
.qa-inline > .mud-input-control { flex: 1 1 12rem; }
.qa-inline > .mud-input-control.qa-narrow { flex: 0 1 10rem; }
.qa-filter.mud-input-control { width: 200px; flex: 0 0 auto; margin: 0; }
.qa-scroll { max-height: 18rem; overflow-y: auto; border: 1px solid var(--osm-rule); border-radius: var(--osm-m-radius-sm); padding: 4px 8px; background: var(--osm-surface); }
.qa-scroll .mud-input-control { margin: 0; }
.qa-indent { padding-left: 24px; }
.qa-divider { border-top: 1px solid var(--osm-rule); padding-top: 12px; margin-top: 12px; }
.qa-box.mud-paper { padding: 8px 12px; border-radius: var(--osm-m-radius-sm); background: var(--osm-sunk); }
.qa-check-list { display: flex; flex-direction: column; }
.qa-list { margin: 0; padding-left: 18px; }
.qa-list > li { margin-bottom: 4px; }
.qa-plain { list-style: none; margin: 0; padding-left: 0; }
.qa-plain > li { padding: 8px 0; border-bottom: 1px solid var(--osm-rule); }
.qa-plain > li:last-child { border-bottom: 0; }
.qa-row-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; }
.qa-table.mud-table, .qa-table .mud-table-container { background: transparent; }
.qa-table td.qa-num, .qa-table th.qa-num { text-align: right; font-variant-numeric: tabular-nums; }
.qa-table tbody tr.is-selected > * { background-color: var(--osm-accent-soft); }
.qa-table tbody tr.is-selected > :first-child { box-shadow: inset 3px 0 0 var(--osm-accent); }
.qa-table tbody tr[role='button'] { cursor: pointer; }
/* The risk heat map: a 5 x 5 grid of buttons in the rating's soft colour. */
.qa-heat { width: 100%; border-collapse: collapse; text-align: center; margin-bottom: 4px; }
.qa-heat th, .qa-heat td { border: 1px solid var(--osm-rule); font-size: 0.8125rem; padding: 4px; }
.qa-heat td { padding: 0; }
.qa-heat th.qa-heat-row, .qa-heat th.qa-heat-corner { text-align: start; }
.qa-heat-cell { display: block; width: 100%; min-height: 2.25rem; border: 0; font: inherit; font-size: 0.875rem; cursor: pointer; border-radius: 0; }
.qa-heat-cell:hover { filter: brightness(0.95); }
.qa-heat-cell.is-selected { font-weight: 700; outline: 2px solid var(--osm-ink); outline-offset: -2px; }
.qa-heat-cell:focus-visible { outline: 2px solid var(--osm-accent); outline-offset: -2px; }
@media (max-width: 1023.98px), (pointer: coarse) {
    .qa-heat-cell { min-height: 44px; }
}
.qa-tabs { margin-top: 8px; }
.qa-tabs .mud-tabs-tabbar { background: transparent; border-bottom: 1px solid var(--osm-rule); }
.qa-tabs .mud-tab { text-transform: var(--mud-typography-button-text-transform, none); font-weight: 600; color: var(--osm-ink-soft); min-height: 44px; }
.qa-tabs .mud-tab.mud-tab-active { color: var(--osm-ink); }
.qa-tabs .mud-tab-slider { background: var(--osm-accent); height: 3px; border-radius: 3px 3px 0 0; }
.qa-tab-panel { padding-top: 16px; }
/* Tabs that only switch what the page shows below them (the panels are empty). */
.qa-tabs .qa-tabs-no-panels { display: none; }
.qa-tabs .mud-tabs-tabbar { margin-bottom: 12px; }
.qa-dl { display: grid; grid-template-columns: minmax(8rem, max-content) minmax(0, 1fr); gap: 4px 16px; margin: 0; }
.qa-dl > dt { font-weight: 600; color: var(--osm-ink-soft); font-size: 0.8125rem; }
.qa-dl > dd { margin: 0; overflow-wrap: anywhere; }
@media (min-width: 768px) {
    .qa-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 992px) {
    .qa-two { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
    .qa-two.is-even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 575.98px) {
    .qa-filter.mud-input-control { width: 100%; flex: 1 1 100%; }
    .qa-dl { grid-template-columns: minmax(0, 1fr); }
    .qa-dl > dd { margin-bottom: 6px; }
}
.osm-theme-select { max-width: 28rem; }

.osm-theme-current { display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px 8px; border: 1px solid var(--osm-rule-strong); border-radius: 6px; background: var(--osm-surface); color: var(--osm-ink); cursor: pointer; font: inherit; text-align: left; }
.osm-theme-current:focus-visible { outline: 2px solid var(--osm-accent); outline-offset: 1px; }
.osm-theme-current-name { flex: 1 1 auto; }
.osm-theme-current-caret { color: var(--osm-ink-mute); }
.osm-theme-compact-list { max-height: 260px; overflow: auto; margin-top: 4px; }
.osm-theme-compact-option { display: flex; align-items: center; justify-content: flex-start; gap: 8px; width: 100%; padding: 4px 8px; border: 0; border-radius: 4px; background: transparent; color: var(--osm-ink); cursor: pointer; font: inherit; text-align: left; }
.osm-theme-compact-option:hover { background: color-mix(in srgb, var(--osm-ink) 7%, transparent); }
.osm-theme-compact-option.is-active { font-weight: 600; background: color-mix(in srgb, var(--osm-accent) 14%, transparent); }
.osm-theme-compact-option:focus-visible { outline: 2px solid var(--osm-accent); outline-offset: -2px; }

/* Quick tooltips (quick-tips.js): a title's words after a short pause, not the
   browser's slow one. Above menus and drawers; never in the pointer's way. */
.osm-quick-tip {
  position: fixed; z-index: 3000; pointer-events: none;
  max-width: min(28rem, calc(100vw - 8px)); padding: 6px 10px; border-radius: 6px;
  background: var(--osm-ink); color: var(--osm-surface);
  font-size: 0.8125rem; line-height: 1.35; white-space: pre-line; overflow-wrap: anywhere;
  box-shadow: var(--mud-elevation-8);
  opacity: 0; transition: opacity 80ms ease-out; visibility: hidden;
}
.osm-quick-tip.is-shown { opacity: 1; visibility: visible; }

/* Row cards (RowPreviewHost, row-preview.js): one quick card per table about
   the hovered row - the order grids' job card (LoadHoverCard). Read-only and
   never in the pointer's way; placed by the script, unseen until placed. */
.osm-row-preview-area { display: contents; }
.osm-row-card {
  position: fixed; z-index: 2900; pointer-events: none; left: 0; top: 0;
  width: min(24rem, calc(100vw - 8px)); max-height: calc(100vh - 8px); overflow: hidden;
  border: 1px solid var(--osm-rule); border-radius: var(--osm-m-radius-lg, 8px);
  background: var(--osm-surface); color: var(--osm-ink);
  box-shadow: var(--mud-elevation-8);
  font-size: 0.8125rem; line-height: 1.4;
}
.osm-row-card:not([data-placed]) { visibility: hidden; }
.osm-row-card[hidden] { display: none; }
.osm-load-card { padding: 10px 12px 12px; }
.osm-load-card-head { padding-bottom: 8px; margin-bottom: 8px; border-bottom: 1px solid var(--osm-rule); }
.osm-load-card-ids { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.osm-load-card-label { color: var(--osm-ink-soft); font-size: 0.6875rem; font-weight: 600; letter-spacing: var(--osm-label-tracking); text-transform: var(--osm-label-transform); }
.osm-load-card-wo, .osm-load-card-job { font-size: 1.0625rem; font-weight: 700; overflow-wrap: anywhere; }
.osm-load-card-status { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; }
.osm-load-card-warnings { margin-bottom: 8px; }
.osm-load-card-warnings ul { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 4px; }
.osm-load-card-warning { display: grid; gap: 1px; padding: 4px 8px; border-left: 4px solid var(--osm-rule-strong); border-radius: 4px; background: var(--osm-sunk); }
.osm-load-card-warning.is-blocking { border-left-color: var(--osm-alarm); background: var(--osm-alarm-soft); }
.osm-load-card-warning.is-blocking .osm-semibold { color: var(--osm-alarm); }
.osm-load-card-warning.is-caution { border-left-color: var(--osm-warn); background: var(--osm-warn-soft); }
.osm-load-card-warning.is-caution .osm-semibold { color: var(--osm-warn); }
.osm-load-card-warning.is-info { border-left-color: var(--osm-info); background: var(--osm-info-soft); }
.osm-load-card-why { color: var(--osm-ink); }
.osm-load-card-action { font-weight: 600; justify-self: start; }
.osm-load-card-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 2px 12px; margin: 0; }
.osm-load-card-facts dt { color: var(--osm-ink-soft); font-weight: 600; }
.osm-load-card-facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.osm-load-card-notes { white-space: pre-line; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

/* A load's Message action on its row (LoadMessageButton): never under 32px. */
.osm-load-message-wrap { display: inline-flex; vertical-align: middle; }
.osm-load-message.mud-icon-button { min-width: 32px; min-height: 32px; }

/* Courses (V0660): the course player's lessons and quiz. Every answer is a
   tile the size of a thumb - the quiz is taken on a phone at the truck as
   often as at a desk. */
.crs-lesson { border-left: 4px solid var(--osm-rule-strong); }
.crs-lesson.is-done { border-left-color: var(--osm-accent); }
.crs-video { position: relative; width: 100%; padding-top: 56.25%; margin: 12px 0; border-radius: var(--osm-radius); overflow: hidden; background: var(--osm-sunk); }
.crs-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.crs-options { display: grid; gap: 8px; margin: 8px 0 0; padding: 0; list-style: none; }
.crs-option { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 10px 14px; text-align: left;
  font: inherit; font-size: 1rem; color: var(--osm-ink); background: var(--osm-surface);
  border: 2px solid var(--osm-rule-strong); border-radius: var(--osm-radius); cursor: pointer; }
.crs-option:hover { border-color: var(--osm-accent); }
.crs-option:focus-visible { outline: 3px solid var(--osm-accent); outline-offset: 2px; }
.crs-option.is-selected { border-color: var(--osm-accent); background: var(--osm-accent-soft); font-weight: 600; }
.crs-option-mark { flex: none; width: 22px; height: 22px; border: 2px solid var(--osm-ink-soft); border-radius: 50%; }
.crs-option[role="checkbox"] .crs-option-mark { border-radius: 4px; }
.crs-option.is-selected .crs-option-mark { border-color: var(--osm-accent); background: var(--osm-accent); box-shadow: inset 0 0 0 3px var(--osm-surface); }
.crs-question.is-wrong { border-left: 4px solid var(--osm-alarm); }
.crs-question.is-right { border-left: 4px solid var(--osm-accent); }
.crs-big-button.mud-button-root { min-height: 52px; font-size: 1rem; }

/* ---------------------------------------------------------------- Help (V0680)
   The "?" beside a page's title, the help panel, help articles, What's new,
   and the support case drawer with its screenshot. Theme tokens only. */
.osm-page-help.mud-icon-button { color: var(--osm-ink-soft); }
.osm-help-panel .osm-help-list .mud-list-item { align-items: flex-start; border-bottom: 1px solid var(--osm-rule, var(--osm-chrome-rule)); }
.osm-help-hit-title { display: block; font-weight: 600; }
.osm-help-hit-snippet { display: block; margin-top: 2px; }
.osm-help-hit-snippet strong { color: var(--osm-ink); }
.osm-help-article { overflow-wrap: anywhere; }
.osm-help-article-title { font-weight: 600; margin-bottom: 4px; }
.osm-help-panel-links { display: flex; flex-wrap: wrap; gap: 4px; }
.osm-help-image { display: block; max-width: 100%; height: auto; margin: 8px 0; border: 1px solid var(--osm-chrome-rule); border-radius: 4px; }
.osm-help-image-wait { max-width: 100%; }
.osm-help-most-viewed li { margin-bottom: 4px; }
.osm-whats-new-banner a { font-weight: 600; }
.osm-release-note.is-new { border-left: 4px solid var(--osm-accent); }
.osm-release-highlights { padding-left: 20px; }
.osm-contact-email a { overflow-wrap: anywhere; }

.osm-case-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 600px) { .osm-case-form-row { grid-template-columns: 1fr; } }
.osm-case-screenshot { position: relative; display: inline-block; max-width: 100%; margin-top: 4px; }
.osm-case-screenshot-image { display: block; max-width: 100%; max-height: 280px; height: auto; border: 1px solid var(--osm-chrome-rule); border-radius: 4px; }
.osm-case-screenshot.is-choosing .osm-case-screenshot-image, .osm-case-screenshot-image.is-choosing { cursor: crosshair; touch-action: none; }
.osm-redact-box { position: absolute; pointer-events: none; border: 2px dashed var(--osm-accent); background: var(--osm-accent-soft); opacity: .7; }
/* CYOPS platform screens (V0720-V0722). */
.cyops-attention > td:first-child { box-shadow: inset 3px 0 0 var(--osm-warn); }
.cyops-steps { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 12px; list-style: none; }
.cyops-step-body { min-width: 0; }
.cyops-module-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--osm-chrome-rule); }
.cyops-module-row:last-child { border-bottom: 0; }
.cyops-check { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; }
.cyops-statement-lines td:nth-child(n+2), .cyops-statement-lines th:nth-child(n+2),
.cyops-bill-to-teams td:nth-child(n+2), .cyops-bill-to-teams th:nth-child(n+2) { text-align: right; white-space: nowrap; }
.cyops-layout-row { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--osm-chrome-rule); }
.cyops-layout-row.is-hidden .cyops-layout-name { text-decoration: line-through; opacity: .7; }
.cyops-layout-name { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 600px) {
  .cyops-module-row { flex-wrap: wrap; }
  .cyops-bill-to-teams th, .cyops-bill-to-teams td { padding-left: 4px !important; padding-right: 4px !important; }
}
/* Platform > Growth (V0740-V0743) and the public website pages. Layout only: colours are the theme's tokens. */
.osm-growth-tabs { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 2px; }
.osm-growth-tabs .osm-growth-tab { white-space: nowrap; flex: 0 0 auto; }
.growth-columns { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.growth-board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.growth-board-column { min-width: 0; }
.growth-board-title { position: sticky; top: 0; padding: 4px 0; background: var(--osm-ground); }
.growth-lead-card { overflow-wrap: anywhere; }
.growth-lead-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.growth-fact { min-width: 8rem; }
.growth-fact-value { overflow-wrap: anywhere; }
.growth-activity { border-bottom: 1px solid var(--osm-chrome-rule); }
.growth-activity:last-child { border-bottom: 0; }
.growth-activity-body, .growth-lead-said, .growth-preview-words, .growth-post-words { white-space: pre-wrap; overflow-wrap: anywhere; }
.growth-reasons, .growth-terms, .growth-links, .growth-suppression-list, .osm-help-citations { padding-left: 20px; margin: 4px 0; }
.growth-accounts, .growth-agents { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.growth-preview { overflow-wrap: anywhere; }
/* Marketing pictures (V0970): the image library and a post's pictures. */
.growth-images { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.growth-image-card { min-width: 0; overflow-wrap: anywhere; }
.growth-image-card .osm-help-image { margin: 0 0 8px; aspect-ratio: 1 / 1; object-fit: cover; width: 100%; }
.growth-image-card.is-retired .osm-help-image { opacity: .5; }
.growth-media { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.growth-media-item { min-width: 0; }
.growth-media-item .osm-help-image { margin: 0; aspect-ratio: 1 / 1; object-fit: cover; width: 100%; }
.growth-approval-record { padding-left: 20px; }
.growth-approval-record li { margin-bottom: 4px; overflow-wrap: anywhere; }
.growth-snippet { white-space: pre-wrap; overflow-wrap: anywhere; font-size: .8rem; padding: 8px; border: 1px solid var(--osm-rule); border-radius: 4px; background: var(--osm-sunk); }
.growth-chat-line, .chat-line { padding: 6px 0; border-bottom: 1px solid var(--osm-chrome-rule); overflow-wrap: anywhere; }
.chat-log { max-height: 55vh; overflow-y: auto; }
.chat-visitor { text-align: right; }
.pricing-inputs > * { flex: 1 1 11rem; }
@media (max-width: 900px) { .growth-lead-layout { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .growth-board { grid-auto-flow: row; grid-auto-columns: auto; } .chat-visitor { text-align: left; } }

/* The top bar's "View an organization" (Layout/OrganizationViewTopBar.razor, V0904). */
.osm-organization-view-anchor {
  display: inline-flex;
  position: relative;
}

.osm-organization-view-popover {
  width: min(24rem, calc(100vw - 2rem));
}

/* The organization list's picker (Pages/Platform/Organizations.razor, V0904). */
.osm-organizations-view-picker {
  min-width: min(20rem, 100%);
}

/* Keys and secrets on Platform settings (Pages/Platform/KeysAndSecretsCard.razor, V0929):
   expired red, within 30 days orange, otherwise plain; a card per row so a phone reads it. */
.ks-list { display: flex; flex-direction: column; gap: 8px; padding: 0; margin: 0; list-style: none; }
.ks-row { border: 1px solid var(--osm-chrome-rule); border-left: 4px solid var(--osm-chrome-rule); border-radius: 6px; padding: 10px 12px; min-width: 0; }
.ks-row-expired { border-left-color: var(--osm-alarm); background: var(--osm-alarm-soft); }
.ks-row-soon { border-left-color: var(--osm-warn); background: var(--osm-warn-soft); }
.ks-row-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; }
.ks-expiry { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ks-row-detail { font-size: .875rem; overflow-wrap: anywhere; margin-top: 2px; }
.ks-row-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.ks-changes, .ks-history { padding-left: 1.1rem; margin: 4px 0; font-size: .875rem; overflow-wrap: anywhere; }

/* DEMO's invitation before the sample sign-ins (DemoAccessForm). */
.demo-access-form { display: flex; flex-direction: column; gap: 14px; margin-top: 12px; }
.demo-access-fine { margin: -6px 0 0; font-size: 0.875rem; color: var(--osm-ink-mute); }
.demo-access-fine a { color: var(--osm-accent); }
.demo-access-skip {
  display: block; width: 100%; min-height: 44px; margin-top: 8px; border: 0; background: transparent; cursor: pointer;
  font: inherit; font-weight: 600; color: var(--osm-accent); text-decoration: underline; text-underline-offset: 2px;
}
.demo-access-skip:focus-visible { outline: 2px solid var(--osm-accent); outline-offset: 2px; }

/* Printing a tabbed page prints the part that is open, without the row of buttons. */
@media print {
  .osm-page-tabs-row { display: none !important; }
}

/* ---------------------------------------------------------------------------
 * Report pages (V1301; Power BI's look, 10/21/2026; the authoring canvas
 * V1312): a slicer bar across the top, then the visuals as flat tiles with a
 * thin border on a tinted canvas. The canvas is 48 square units across
 * (992 px and wider), the visuals stack two across on a tablet, and a phone
 * uses the page's phone layout (--phone-col / --phone-row). Every colour is
 * a theme token, so light and dark both hold AA contrast.
 * ------------------------------------------------------------------------ */
.osm-report-slicerbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px;
  padding: 8px 12px; margin-bottom: 10px;
  background: var(--osm-surface);
  border: 1px solid var(--osm-rule); border-radius: var(--osm-radius, 4px);
}
.osm-report-slicers { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; flex: 1 1 auto; min-width: 0; }
.osm-report-slicers > * { flex: 0 1 220px; min-width: 160px; max-width: 280px; }
.osm-report-slicer { width: 100%; }
.osm-report-slicer .mud-input-control { margin-top: 0; }
.osm-report-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.osm-report-chips .mud-chip { margin: 0; max-width: 100%; }
.osm-report-chips .mud-chip-content { white-space: normal; }

.osm-report-canvas {
  container-type: inline-size;
  padding: 10px;
  background: color-mix(in srgb, var(--osm-sunk) 60%, var(--osm-ground));
  border: 1px solid var(--osm-rule);
  border-radius: var(--osm-radius, 4px);
}
.osm-report-canvas.is-plain { background: var(--osm-ground); }
.osm-report-canvas.is-accent { background: color-mix(in srgb, var(--osm-accent-soft) 55%, var(--osm-ground)); }
.osm-report-grid {
  display: grid;
  grid-template-columns: repeat(48, minmax(0, 1fr));
  grid-auto-rows: calc(100cqw / 48);
  gap: 0;
}
.osm-report-grid > .osm-report-visual { margin: 4px; }
.osm-report-visual {
  --h: 4;
  position: relative;
  display: flex; flex-direction: column;
  min-width: 0; min-height: 0;
  overflow: hidden;
  padding: 8px 10px 8px;
  background: var(--osm-surface);
  border: 1px solid var(--osm-rule);
  border-radius: 3px;
}
.osm-report-visual:focus-within { border-color: var(--osm-rule-strong); }
.osm-visual-head { display: flex; flex: none; align-items: flex-start; gap: 4px; min-height: 28px; margin-bottom: 2px; }
.osm-visual-title {
  flex: 1 1 auto; min-width: 0; margin: 0;
  font-size: 0.875rem; font-weight: 600; line-height: 1.3; color: var(--osm-ink);
  overflow: hidden; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2;
}
.osm-visual-busy { flex: none; }
/* The visual header: on hover or keyboard focus, always on a touch screen. */
.osm-visual-actions {
  position: absolute; top: 4px; right: 4px; z-index: 6;
  display: flex; align-items: center; flex: none;
  background: var(--osm-surface); border-radius: 3px;
  opacity: 0; pointer-events: none; transition: opacity 120ms ease;
}
.osm-report-visual:hover .osm-visual-actions,
.osm-report-visual:focus-within .osm-visual-actions,
.osm-report-visual.is-editing .osm-visual-actions,
.osm-report-visual.is-focus .osm-visual-actions { opacity: 1; pointer-events: auto; box-shadow: 0 0 0 1px var(--osm-rule); }
/* On a touch screen the header is always there, on a line of its own under the title. */
@media (hover: none) {
  .osm-visual-actions { position: static; opacity: 1; pointer-events: auto; box-shadow: none !important; margin-left: auto; margin-top: -4px; }
  .osm-visual-head { flex-wrap: wrap; }
  .osm-visual-head .osm-visual-title { flex: 1 0 100%; }
}
.osm-visual-actions .mud-icon-button { padding: 4px; }
.osm-report-visual-body { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.osm-report-visual-body > .osm-chart,
.osm-report-visual-body > .osm-visual-table-scroll,
.osm-report-visual-body > .osm-kpi-tile { flex: 1 1 auto; min-height: 0; }
.osm-visual-note { margin: 4px 0 0; font-size: 0.75rem; color: var(--osm-ink-mute); }
.osm-visual-head.is-untitled .osm-visual-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.osm-visual-head.is-untitled { min-height: 0; margin: 0; }
.osm-report-visual .osm-map { height: 100%; min-height: 220px; }
.osm-report-print-head { display: none; }

/* Focus mode: the one visual over the whole window; Esc or the button goes back. */
.osm-report-visual.is-focus {
  position: fixed; inset: 12px; z-index: 1400;
  padding: 12px 16px;
  box-shadow: 0 0 0 100vmax color-mix(in srgb, var(--osm-ink) 45%, transparent), 0 8px 32px color-mix(in srgb, var(--osm-ink) 30%, transparent);
}
.osm-report-visual.is-focus .osm-visual-title { font-size: 1.125rem; }

/* A tablet: two columns - the KPI cards two by two, every chart and table across both
   (on screen; paper keeps twelve). A table is as tall as its rows, up to its height on the page. */
@media screen and (max-width: 991.98px) {
  .osm-report-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; grid-auto-flow: row dense; gap: 2px; }
  .osm-report-grid > .osm-report-visual { grid-column: 1 / -1 !important; grid-row: auto !important; height: calc(var(--h) * 20px); min-height: 200px; }
  .osm-report-grid > .osm-report-visual.is-kpi { grid-column: auto / span 1 !important; height: auto; min-height: 122px; }
  .osm-report-grid > .osm-report-visual.is-table { height: auto; max-height: calc(var(--h) * 20px); }
}
/* A phone: one column. */
@media screen and (max-width: 599.98px) {
  .osm-report-canvas { padding: 4px; }
  .osm-report-grid { grid-template-columns: repeat(48, minmax(0, 1fr)); grid-auto-rows: calc(100cqw / 48); grid-auto-flow: row; gap: 0; }
  .osm-report-grid > .osm-report-visual, .osm-report-grid > .osm-report-visual.is-kpi, .osm-report-grid > .osm-report-visual.is-table {
    grid-column: var(--phone-col) !important; grid-row: var(--phone-row) !important; height: auto; min-height: 0; max-height: none; margin: 3px;
  }
  .osm-report-slicer { flex: 1 1 100%; max-width: none; }
}

/* KPI cards: the number, its change on the period before, the target, a sparkline. */
.osm-kpi-tile { position: relative; display: flex; flex-direction: column; justify-content: flex-start; gap: 2px; min-height: 0; overflow: hidden; }
.osm-kpi-tile > :not(.osm-kpi-spark) { position: relative; z-index: 1; }
.osm-kpi-tile.is-gauge { flex-direction: row; align-items: center; gap: 12px; }
.osm-kpi-tile .osm-kpi-value { font-size: 1.75rem; font-weight: 600; line-height: 1.1; color: var(--osm-ink); white-space: nowrap; }
.osm-kpi-delta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; font-size: 0.8125rem; font-weight: 600; }
.osm-kpi-delta.is-good, .osm-kpi-target.is-good { color: var(--osm-signal); }
.osm-kpi-delta.is-bad, .osm-kpi-target.is-bad { color: var(--osm-alarm); }
.osm-kpi-delta.is-flat { color: var(--osm-ink-soft); }
.osm-kpi-against { font-size: 0.75rem; font-weight: 400; color: var(--osm-ink-mute); }
.osm-kpi-target { font-size: 0.75rem; color: var(--osm-ink-soft); }
/* The trend sits along the foot of the card, behind the words, as Power BI's KPI draws it. */
.osm-kpi-spark { display: block; flex: 0 0 auto; margin-top: auto; padding-top: 4px; width: 100%; height: 30px; overflow: visible; }
/* A narrow card keeps the change and drops the words after it (they are in its tooltip). */
.osm-report-visual.is-kpi { container-type: inline-size; }
@container (max-width: 240px) { .osm-kpi-delta .osm-kpi-against { display: none; } }
.osm-kpi-spark-line { fill: none; stroke: var(--osm-chart-1); stroke-width: 1.75; stroke-linejoin: round; }
.osm-kpi-spark-area { fill: var(--osm-chart-1); opacity: 0.12; }
.osm-gauge { width: 140px; flex: none; }
.osm-kpi-up { color: var(--osm-signal); }
.osm-kpi-down { color: var(--osm-alarm); }

/* Charts: laid out at their real size (VisualChart.razor.js), words at 12 px. */
.osm-chart { display: flex; flex-direction: column; min-height: 0; height: 100%; }
.osm-chart-plot { position: relative; flex: 1 1 auto; min-height: 0; overflow: auto; }
.osm-chart-canvas { position: relative; }
.osm-chart svg { display: block; overflow: visible; font-family: inherit; }
.osm-chart text { font-size: 12px; fill: var(--osm-chart-label); }
.osm-chart .osm-chart-dl { font-weight: 600; fill: var(--osm-ink); }
.osm-chart .osm-chart-dl.is-in { fill: var(--osm-surface); }
.osm-chart .osm-chart-total { font-size: 18px; font-weight: 600; fill: var(--osm-ink); }
.osm-chart .osm-chart-caption { fill: var(--osm-ink-mute); }
.osm-chart-grid { stroke: var(--osm-chart-grid); stroke-width: 1; }
.osm-chart-zero { stroke: var(--osm-chart-axis); stroke-width: 1; }
.osm-chart-line { fill: none; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.osm-chart-mark { cursor: pointer; transition: opacity 120ms ease; }
.osm-chart-band { fill: var(--osm-ink); fill-opacity: 0; cursor: pointer; outline: none; }
.osm-chart-band.is-hover, .osm-chart-band:focus-visible { fill-opacity: 0.06; }
.osm-chart-band:focus-visible { stroke: var(--osm-accent); stroke-width: 2; }
.osm-chart path.osm-chart-mark { stroke: var(--osm-surface); stroke-width: 1.5; outline: none; }
.osm-chart path.osm-chart-mark:focus-visible { stroke: var(--osm-ink); stroke-width: 2.5; }
.osm-chart-legend {
  display: flex; flex-wrap: wrap; gap: 2px 14px; margin: 0 0 4px; padding: 0; list-style: none;
  font-size: 0.75rem; line-height: 1.35; color: var(--osm-ink-soft);
}
.osm-chart-legend li { display: flex; align-items: flex-start; gap: 6px; min-width: 0; cursor: default; }
.osm-chart-legend.is-list { flex-direction: column; flex-wrap: nowrap; gap: 4px; overflow: auto; min-width: 0; flex: 1 1 auto; margin: 0; }
.osm-chart-legend.is-list li { cursor: pointer; }
.osm-chart-legend-name { overflow-wrap: anywhere; color: var(--osm-ink); }
.osm-chart-legend-value { margin-left: auto; padding-left: 8px; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--osm-ink-soft); }
.osm-chart-swatch { display: inline-block; flex: none; width: 10px; height: 10px; margin-top: 3px; border-radius: 2px; }
.osm-chart-pie { display: flex; align-items: center; gap: 16px; height: 100%; min-height: 0; }
.osm-chart-pie.is-narrow { flex-direction: column; align-items: stretch; gap: 8px; }
.osm-chart-pie.is-narrow .osm-chart-canvas { align-self: center; }
.osm-chart-tip {
  position: absolute; z-index: 5; pointer-events: none;
  transform: translate(-50%, -100%);
  min-width: 140px; max-width: 280px;
  padding: 6px 8px;
  background: var(--osm-surface); color: var(--osm-ink);
  border: 1px solid var(--osm-rule-strong); border-radius: 4px;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--osm-ink) 18%, transparent);
  font-size: 0.75rem; line-height: 1.4;
}
.osm-chart-tip.is-left { transform: translate(0, -100%); }
.osm-chart-tip-head { font-weight: 600; margin-bottom: 2px; overflow-wrap: anywhere; }
.osm-chart-tip-row { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.osm-chart-tip-row strong { margin-left: auto; padding-left: 12px; font-variant-numeric: tabular-nums; }
.osm-chart-tip-row .osm-chart-swatch { margin-top: 0; }

/* Tables and matrices: columns as wide as their content, a header that stays put, totals at the foot. */
.osm-visual-table-scroll { overflow: auto; min-height: 0; max-height: 100%; outline: none; }
.osm-visual-table-scroll:focus-visible { box-shadow: inset 0 0 0 2px var(--osm-accent); }
.osm-visual-table-scroll.is-dialog { max-height: 65vh; }
.osm-visual-table { width: max-content; min-width: 100%; border-collapse: separate; border-spacing: 0; font-size: 0.8125rem; color: var(--osm-ink); }
.osm-visual-table th, .osm-visual-table td { padding: 5px 7px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--osm-rule); }
.osm-visual-table th {
  position: sticky; top: 0; z-index: 2;
  background: var(--osm-surface); color: var(--osm-ink-soft);
  font-weight: 600; font-size: 0.75rem; line-height: 1.25; vertical-align: bottom;
  min-width: 4.5rem; max-width: 9rem; white-space: normal; overflow-wrap: break-word;
  border-bottom: 1px solid var(--osm-rule-strong);
}
/* Row headers stay put while a wide matrix scrolls across (Power BI's frozen column). */
.osm-visual-table th.is-dim:first-child, .osm-visual-table td.is-dim:first-child, .osm-visual-table tfoot td:first-child {
  position: sticky; left: 0; z-index: 1; background: var(--osm-surface);
}
.osm-visual-table th.is-dim:first-child { z-index: 3; }
.osm-visual-table tr.is-subtotal > td.is-dim:first-child { background: var(--osm-sunk); }
.osm-visual-table tfoot td:first-child { z-index: 2; }
.osm-visual-table .is-num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.osm-visual-table td.is-dim { min-width: 7rem; max-width: 12rem; overflow-wrap: break-word; }
.osm-visual-table tbody tr:hover > td { background: color-mix(in srgb, var(--osm-accent-soft) 45%, transparent); }
.osm-visual-table tr.is-subtotal > td { font-weight: 600; background: var(--osm-sunk); }
.osm-visual-table tr.is-faded > td { opacity: 0.45; }
.osm-visual-table tfoot td {
  position: sticky; bottom: 0; z-index: 1;
  background: var(--osm-surface); font-weight: 700;
  border-top: 1px solid var(--osm-rule-strong); border-bottom: 0;
}
.osm-visual-table a { color: var(--osm-accent); text-decoration: none; }
.osm-visual-table a:hover, .osm-visual-table a:focus-visible { text-decoration: underline; }

.osm-tone-good { background: var(--osm-signal-soft); color: var(--osm-signal); }
.osm-tone-warn { background: var(--osm-warn-soft); color: var(--osm-warn); }
.osm-tone-bad { background: var(--osm-alarm-soft); color: var(--osm-alarm); }
.osm-tone-accent { background: var(--osm-accent-soft); color: var(--osm-accent); }
.osm-tone-font-good { color: var(--osm-signal); font-weight: 600; }
.osm-tone-font-warn { color: var(--osm-warn); font-weight: 600; }
.osm-tone-font-bad { color: var(--osm-alarm); font-weight: 600; }
.osm-tone-font-accent { color: var(--osm-accent); font-weight: 600; }
.osm-visual-table td.osm-tone-good, .osm-visual-table td.osm-tone-warn,
.osm-visual-table td.osm-tone-bad, .osm-visual-table td.osm-tone-accent { font-weight: 600; }
.osm-data-cell { position: relative; }
.osm-data-bar {
  position: absolute; left: 0; top: 18%; bottom: 18%;
  background: var(--osm-accent-soft);
  border-radius: 2px;
  z-index: 0;
}
/* The number above its bar (the bar is a span too, and stays absolute). */
.osm-data-cell > span:not(.osm-data-bar) { position: relative; z-index: 1; }
.osm-visual-selected { outline: 2px solid var(--osm-accent); outline-offset: -2px; }

/* ---------------------------------------------------------------------------
 * The report authoring canvas (V1312, Power BI Desktop's way of building):
 * a toolbar, the page as a canvas of 48 square units (16:9 or Letter, or the
 * 360 px phone layout) with a dotted grid to snap to, and on the right the
 * Filters, Visualizations and Data panes - one tabbed column below 1200 px,
 * a sheet along the bottom on a phone. Theme tokens only, light and dark.
 * ------------------------------------------------------------------------ */
.osm-author { display: flex; flex-direction: column; gap: 8px; }
.osm-author-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 2px 4px; padding: 4px 8px;
  background: var(--osm-surface); border: 1px solid var(--osm-rule); border-radius: var(--osm-radius, 4px);
}
.osm-author-sep { width: 1px; height: 20px; background: var(--osm-rule); margin: 0 4px; }
.osm-author-views { display: inline-flex; border: 1px solid var(--osm-rule); border-radius: 4px; overflow: hidden; }
.osm-author-views button {
  display: inline-flex; align-items: center; gap: 4px; min-height: 32px; padding: 4px 10px; border: 0; cursor: pointer;
  background: transparent; color: var(--osm-ink-soft); font: inherit; font-size: 0.8125rem;
}
.osm-author-views button.is-on { background: var(--osm-accent-soft); color: var(--osm-accent); font-weight: 600; }
.osm-author-views button:focus-visible, .osm-viz-icon:focus-visible, .osm-pane-fold:focus-visible, .osm-author-tabs button:focus-visible,
.osm-well-x:focus-visible, .osm-filter-toggle:focus-visible, .osm-filter-icon:focus-visible, .osm-fields-head:focus-visible,
.osm-swatch:focus-visible, .osm-viz-tabs button:focus-visible { outline: 2px solid var(--osm-accent); outline-offset: 1px; }
.osm-author-status { margin-left: auto; font-size: 0.75rem; color: var(--osm-ink-mute); }
.osm-author-slicerbar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 0.8125rem; }

.osm-author-body { display: flex; gap: 8px; align-items: stretch; }
.osm-author-stage {
  flex: 1 1 auto; min-width: 0; overflow: auto; padding: 10px;
  max-height: calc(100vh - 210px); min-height: 420px;
  background: var(--osm-sunk); border: 1px solid var(--osm-rule); border-radius: var(--osm-radius, 4px);
}
.osm-author-frame { container-type: inline-size; width: 100%; }
.osm-author.is-phone-layout .osm-author-frame { width: 360px; min-width: 0; max-width: 100%; margin: 0 auto; }
.osm-author-page {
  --u: calc(100cqw / 48);
  position: relative; container-type: inline-size; width: 100%;
  height: calc(var(--rows) * 100cqw / 48);
  background-color: color-mix(in srgb, var(--osm-sunk) 40%, var(--osm-ground));
  background-image: radial-gradient(circle, color-mix(in srgb, var(--osm-ink-mute) 35%, transparent) 1px, transparent 1.2px);
  background-size: calc(100cqw / 48) calc(100cqw / 48);
  box-shadow: 0 0 0 1px var(--osm-rule-strong);
  outline: none;
}
.osm-author-page.is-plain { background-color: var(--osm-ground); }
.osm-author-page.is-accent { background-color: color-mix(in srgb, var(--osm-accent-soft) 55%, var(--osm-ground)); }
.osm-author-page.is-drop-over { box-shadow: 0 0 0 2px var(--osm-accent); }
.osm-author-page-edge {
  position: absolute; left: 0; right: 0; top: calc(var(--edge) * 100cqw / 48); height: 0;
  border-top: 2px dashed var(--osm-rule-strong); pointer-events: none;
}
.osm-author-empty {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  padding: 16px; text-align: center; color: var(--osm-ink-soft); pointer-events: none; font-size: 0.875rem;
}
.osm-author-tile {
  position: absolute; z-index: 1;
  left: calc(var(--x) * var(--u)); top: calc(var(--y) * var(--u));
  width: calc(var(--w) * var(--u)); height: calc(var(--h) * var(--u));
  outline: none; cursor: pointer; user-select: none;
}
.osm-author-tile.is-selected { z-index: 2; cursor: move; touch-action: none; }
.osm-author-tile-drop { position: absolute; inset: 3px; }
.osm-author-tile-drop > .osm-report-visual { position: absolute; inset: 0; margin: 0; }
.osm-author-tile.is-selected .osm-report-visual { box-shadow: 0 0 0 2px var(--osm-accent); }
.osm-author-tile:focus-visible .osm-report-visual { box-shadow: 0 0 0 2px var(--osm-accent), 0 0 0 5px var(--osm-accent-soft); }
.osm-author-tile-drop.is-drop-over .osm-report-visual { box-shadow: 0 0 0 2px var(--osm-accent); background: color-mix(in srgb, var(--osm-accent-soft) 40%, var(--osm-surface)); }
.osm-author-tile-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; height: 100%;
  color: var(--osm-ink-mute); font-size: 0.8125rem; text-align: center;
}
.osm-author.is-moving, .osm-author.is-moving * { user-select: none; }
.osm-author-handle {
  position: absolute; z-index: 8; width: 10px; height: 10px;
  background: var(--osm-surface); border: 2px solid var(--osm-accent); border-radius: 2px;
}
.osm-author-handle.is-n { top: -2px; left: calc(50% - 5px); cursor: ns-resize; }
.osm-author-handle.is-s { bottom: -2px; left: calc(50% - 5px); cursor: ns-resize; }
.osm-author-handle.is-e { right: -2px; top: calc(50% - 5px); cursor: ew-resize; }
.osm-author-handle.is-w { left: -2px; top: calc(50% - 5px); cursor: ew-resize; }
.osm-author-handle.is-ne { right: -2px; top: -2px; cursor: nesw-resize; }
.osm-author-handle.is-nw { left: -2px; top: -2px; cursor: nwse-resize; }
.osm-author-handle.is-se { right: -2px; bottom: -2px; cursor: nwse-resize; }
.osm-author-handle.is-sw { left: -2px; bottom: -2px; cursor: nesw-resize; }
@media (pointer: coarse) {
  .osm-author-handle { width: 18px; height: 18px; }
  .osm-author-handle.is-n, .osm-author-handle.is-s { left: calc(50% - 9px); }
  .osm-author-handle.is-e, .osm-author-handle.is-w { top: calc(50% - 9px); }
}
.osm-author-ghost {
  position: fixed; z-index: 2000; transform: translate(-50%, -130%); pointer-events: none;
  padding: 4px 10px; border-radius: 4px; font-size: 0.8125rem; font-weight: 600;
  background: var(--osm-accent); color: var(--osm-on-accent); box-shadow: 0 4px 14px color-mix(in srgb, var(--osm-ink) 25%, transparent);
}

/* The panes */
.osm-author-panes { flex: none; display: flex; gap: 6px; max-height: calc(100vh - 210px); min-height: 420px; }
.osm-pane {
  width: 212px; display: flex; flex-direction: column; min-height: 0; overflow: hidden;
  background: var(--osm-surface); border: 1px solid var(--osm-rule); border-radius: var(--osm-radius, 4px);
}
.osm-pane.is-collapsed { width: 36px; }
.osm-pane-keep { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
.osm-pane-keep.is-folded { display: none; }
.osm-pane-head { display: flex; align-items: center; gap: 4px; padding: 4px 6px 4px 10px; border-bottom: 1px solid var(--osm-rule); }
.osm-pane.is-collapsed .osm-pane-head { flex-direction: column-reverse; padding: 6px 2px; border-bottom: 0; height: 100%; justify-content: flex-end; }
.osm-pane.is-collapsed .osm-pane-title { writing-mode: vertical-rl; }
.osm-pane-title { flex: 1 1 auto; margin: 0; font-size: 0.875rem; font-weight: 600; color: var(--osm-ink); }
.osm-pane-fold { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; min-height: 32px; padding: 0; border: 0; border-radius: 4px; background: transparent; color: var(--osm-ink-soft); cursor: pointer; }
.osm-pane-fold:hover { background: var(--osm-sunk); }
.osm-author-pane-body { flex: 1 1 auto; min-height: 0; overflow: auto; padding: 8px; font-size: 0.8125rem; color: var(--osm-ink); }
.osm-author-hint { margin: 6px 0; font-size: 0.75rem; color: var(--osm-ink-soft); }
.osm-author-search {
  width: 100%; min-height: 32px; margin-bottom: 6px; padding: 4px 8px; font: inherit; font-size: 0.8125rem;
  color: var(--osm-ink); background: var(--osm-surface); border: 1px solid var(--osm-rule-strong); border-radius: 4px;
}
.osm-author-tabs, .osm-author-sheet-handle { display: none; }

/* Data (fields) */
.osm-fields-group { margin-bottom: 4px; }
.osm-fields-head {
  display: flex; align-items: center; justify-content: flex-start; gap: 4px; width: 100%; min-height: 30px; padding: 2px 4px; border: 0; border-radius: 4px;
  background: transparent; color: var(--osm-ink); font: inherit; font-weight: 600; text-align: left; cursor: pointer;
}
.osm-fields-head:hover { background: var(--osm-sunk); }
.osm-fields-group.is-disabled .osm-fields-head { color: var(--osm-ink-mute); }
.osm-fields-list { list-style: none; margin: 0; padding: 0 0 0 10px; }
.osm-field { display: flex; align-items: center; gap: 6px; min-height: 28px; padding: 1px 4px; border-radius: 3px; cursor: grab; }
.osm-field:hover { background: var(--osm-sunk); }
.osm-field.is-disabled { cursor: not-allowed; color: var(--osm-ink-mute); }
.osm-field label { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; cursor: inherit; }
.osm-field input { width: 16px; height: 16px; accent-color: var(--osm-accent); flex: none; }
.osm-field-type { flex: none; display: inline-flex; justify-content: center; width: 18px; font-size: 0.75rem; font-weight: 700; color: var(--osm-ink-soft); }

/* The data model and formulas (stage 3) */
.osm-fields-top { display: flex; align-items: flex-start; gap: 2px; }
.osm-fields-top .osm-author-search { flex: 1 1 auto; }
.osm-fields-related { margin-left: auto; padding: 0 6px; font-size: 0.6875rem; font-weight: 600; color: var(--osm-accent); border: 1px solid var(--osm-accent); border-radius: var(--osm-m-pill); }
.osm-field.is-formula .osm-field-type { color: var(--osm-accent); }
.osm-field-edit { flex: none; display: inline-flex; align-items: center; justify-content: center; min-width: 28px; min-height: 28px; padding: 0; border: 0; border-radius: 4px; background: transparent; color: var(--osm-ink-soft); cursor: pointer; }
.osm-field-edit:hover, .osm-field-edit:focus-visible { background: var(--osm-sunk); color: var(--osm-ink); }
.osm-fields-model { margin: 4px 0 8px; padding: 6px 8px; background: var(--osm-sunk); border: 1px solid var(--osm-rule); border-radius: 4px; }
.osm-fields-model-title { margin: 0 0 2px; font-size: 0.8125rem; font-weight: 600; color: var(--osm-ink); }
.osm-fields-model-list { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 4px; }
.osm-fields-model-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; }
.osm-fields-model-table { font-weight: 600; color: var(--osm-ink); }
.osm-fields-model-arrow { color: var(--osm-ink-soft); font-family: var(--osm-font-mono, monospace); font-size: 0.75rem; }
.osm-fields-model-note { flex-basis: 100%; font-size: 0.75rem; color: var(--osm-ink-soft); }

.osm-formula { position: relative; margin-bottom: 6px; padding: 6px 8px; background: var(--osm-surface); border: 1px solid var(--osm-rule-strong); border-radius: var(--osm-radius, 4px); }
.osm-formula-row { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 6px; }
.osm-formula-icon { margin-top: 6px; color: var(--osm-accent); }
.osm-formula-name, .osm-formula-text {
  min-height: 32px; padding: 4px 8px; font: inherit; font-size: 0.8125rem; color: var(--osm-ink);
  background: var(--osm-surface); border: 1px solid var(--osm-rule-strong); border-radius: 4px;
}
.osm-formula-name { flex: 1 1 140px; max-width: 240px; min-width: 90px; }
.osm-formula-text { flex: 999 1 260px; min-width: 0; resize: vertical; font-family: var(--osm-font-mono, monospace); line-height: 1.5; }
.osm-formula-name:focus-visible, .osm-formula-text:focus-visible, .osm-formula-options select:focus-visible { outline: 2px solid var(--osm-accent); outline-offset: 1px; }
.osm-formula-eq { margin-top: 6px; font-weight: 700; color: var(--osm-ink-soft); }
.osm-formula-actions { display: flex; flex: none; margin-left: auto; }
.osm-formula-options { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 4px; font-size: 0.75rem; color: var(--osm-ink-soft); }
.osm-formula-options label { display: inline-flex; align-items: center; gap: 4px; }
.osm-formula-options select {
  min-height: 28px; padding: 2px 4px; font: inherit; color: var(--osm-ink); background: var(--osm-surface);
  border: 1px solid var(--osm-rule-strong); border-radius: 4px;
}
.osm-formula-status { flex: 1 1 240px; min-width: 0; overflow-wrap: anywhere; color: var(--osm-ink-soft); }
.osm-formula-status.is-ok { color: var(--osm-ink); }
.osm-formula-status.is-bad { color: var(--osm-alarm); font-weight: 600; }
.osm-formula-suggest {
  position: absolute; z-index: 30; left: 40px; right: 8px; top: 100%; max-height: 260px; overflow: auto; margin: 2px 0 0; padding: 4px; list-style: none;
  background: var(--osm-surface); border: 1px solid var(--osm-rule-strong); border-radius: 4px; box-shadow: var(--osm-shadow-md);
}
.osm-formula-suggest button {
  display: flex; align-items: center; gap: 6px; width: 100%; min-height: 30px; padding: 2px 6px; border: 0; border-radius: 3px;
  background: transparent; color: var(--osm-ink); font: inherit; font-size: 0.8125rem; text-align: left; cursor: pointer;
}
.osm-formula-suggest button:hover, .osm-formula-suggest button:focus-visible { background: var(--osm-sunk); }
.osm-formula-suggest-text { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.osm-formula-suggest-note { flex: none; font-size: 0.75rem; color: var(--osm-ink-soft); }
@media (max-width: 767px) {
  .osm-formula-row { flex-wrap: wrap; }
  .osm-formula-name { flex: 1 1 auto; }
  .osm-formula-text { flex-basis: 100%; order: 3; }
  .osm-formula-eq { display: none; }
  .osm-formula-suggest { left: 8px; }
}

/* Visualizations: kinds and wells */
.osm-viz-icons { display: grid; grid-template-columns: repeat(auto-fill, minmax(34px, 1fr)); gap: 2px; margin-bottom: 8px; }
.osm-viz-icon {
  display: inline-flex; align-items: center; justify-content: center; min-height: 34px; padding: 0; border: 1px solid transparent; border-radius: 4px;
  background: transparent; color: var(--osm-ink-soft); cursor: pointer;
}
.osm-viz-icon:hover { background: var(--osm-sunk); color: var(--osm-ink); }
.osm-viz-icon.is-on { background: var(--osm-accent-soft); color: var(--osm-accent); border-color: var(--osm-accent); }
.osm-viz-tabs { display: flex; gap: 2px; margin-bottom: 8px; border-bottom: 1px solid var(--osm-rule); }
.osm-viz-tabs button, .osm-author-tabs button {
  min-height: 32px; padding: 4px 10px; border: 0; border-bottom: 2px solid transparent; background: transparent;
  color: var(--osm-ink-soft); font: inherit; font-size: 0.8125rem; font-weight: 600; cursor: pointer;
}
.osm-viz-tabs button.is-on, .osm-author-tabs button.is-on { color: var(--osm-accent); border-bottom-color: var(--osm-accent); }
.osm-well { margin-bottom: 8px; padding: 6px; border: 1px dashed var(--osm-rule-strong); border-radius: 4px; }
.osm-well.is-drop-over { border-color: var(--osm-accent); background: color-mix(in srgb, var(--osm-accent-soft) 45%, transparent); }
.osm-well-label { margin-bottom: 4px; font-size: 0.75rem; font-weight: 600; color: var(--osm-ink-soft); }
.osm-well-chip {
  display: flex; align-items: center; gap: 2px; margin-bottom: 3px; padding: 0 2px 0 8px; min-height: 30px;
  background: var(--osm-accent-soft); color: var(--osm-ink); border-radius: 4px; cursor: grab;
}
.osm-well-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.osm-well-chip .mud-icon-button { padding: 3px; }
.osm-well-x { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; min-height: 24px; padding: 0; border: 0; border-radius: 3px; background: transparent; color: var(--osm-ink-soft); cursor: pointer; }
.osm-well-x:hover { background: var(--osm-surface); color: var(--osm-alarm); }
.osm-well-empty { padding: 4px 6px; font-size: 0.75rem; color: var(--osm-ink-mute); }

/* Format */
.osm-format-section { border-bottom: 1px solid var(--osm-rule); padding: 4px 0 8px; }
.osm-format-section > summary, .osm-format-sub > summary { min-height: 32px; display: flex; align-items: center; font-weight: 600; cursor: pointer; list-style: revert; }
.osm-format-section > * + * { margin-top: 4px; }
.osm-format-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 4px 0; }
.osm-format-name { flex: 1 1 100%; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.75rem; color: var(--osm-ink-soft); }
.osm-format-subhead { margin-top: 8px; font-size: 0.75rem; font-weight: 600; color: var(--osm-ink-soft); }
.osm-format-rule { padding: 6px; margin: 4px 0; border: 1px solid var(--osm-rule); border-radius: 4px; }
.osm-swatches { display: flex; flex-wrap: wrap; gap: 4px; }
.osm-swatch { width: 22px; height: 22px; padding: 0; border: 1px solid var(--osm-rule-strong); border-radius: 4px; cursor: pointer; }
.osm-swatch.is-on { box-shadow: 0 0 0 2px var(--osm-surface), 0 0 0 4px var(--osm-ink); }

/* Filters */
.osm-filter-section { padding: 4px; margin-bottom: 8px; border-radius: 4px; }
.osm-filter-section.is-drop-over { background: color-mix(in srgb, var(--osm-accent-soft) 45%, transparent); box-shadow: 0 0 0 2px var(--osm-accent); }
.osm-filter-section-title { margin: 2px 0 6px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; color: var(--osm-ink-soft); }
.osm-filter-card { margin-bottom: 4px; border: 1px solid var(--osm-rule); border-radius: 4px; background: var(--osm-surface); }
.osm-filter-card.is-active { border-color: var(--osm-accent); }
.osm-filter-head { display: flex; align-items: center; }
.osm-filter-toggle {
  flex: 1 1 auto; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 0 4px; min-height: 34px; padding: 2px 4px;
  border: 0; background: transparent; color: var(--osm-ink); font: inherit; text-align: left; cursor: pointer;
}
.osm-filter-name { font-weight: 600; }
.osm-filter-summary { flex: 1 1 100%; padding-left: 24px; font-size: 0.75rem; color: var(--osm-ink-soft); overflow-wrap: anywhere; }
.osm-filter-icon { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; min-height: 30px; padding: 0; border: 0; background: transparent; color: var(--osm-ink-soft); cursor: pointer; }
.osm-filter-icon:hover { color: var(--osm-ink); }
.osm-filter-body { padding: 4px 8px 8px; border-top: 1px solid var(--osm-rule); }
.osm-filter-body select, .osm-filter-body input[type=text], .osm-filter-body input[type=number] {
  width: 100%; min-height: 32px; margin: 2px 0; padding: 3px 6px; font: inherit; font-size: 0.8125rem;
  color: var(--osm-ink); background: var(--osm-surface); border: 1px solid var(--osm-rule-strong); border-radius: 4px;
}
.osm-filter-values { list-style: none; margin: 4px 0; padding: 0; max-height: 220px; overflow: auto; }
.osm-filter-values li label, .osm-filter-check { display: flex; align-items: center; gap: 6px; min-height: 28px; cursor: pointer; }
.osm-filter-values input, .osm-filter-check input, .osm-filter-logic input { accent-color: var(--osm-accent); }
.osm-filter-adv { display: flex; flex-direction: column; gap: 4px; }
.osm-filter-logic { display: flex; gap: 12px; }
.osm-filter-logic label { display: inline-flex; align-items: center; gap: 4px; min-height: 28px; }
.osm-filter-problem { margin: 0; font-size: 0.75rem; color: var(--osm-alarm); }
.osm-filter-apply {
  align-self: flex-end; min-height: 32px; padding: 4px 12px; border: 0; border-radius: 4px; cursor: pointer;
  background: var(--osm-accent); color: var(--osm-on-accent); font: inherit; font-weight: 600;
}

/* A slicer visual */
.osm-slicer-tile { display: flex; flex-direction: column; min-height: 0; height: 100%; font-size: 0.8125rem; }
.osm-slicer-search {
  min-height: 30px; margin-bottom: 4px; padding: 3px 6px; font: inherit; color: var(--osm-ink);
  background: var(--osm-surface); border: 1px solid var(--osm-rule-strong); border-radius: 4px;
}
.osm-slicer-list { list-style: none; margin: 0; padding: 0; overflow: auto; flex: 1 1 auto; min-height: 0; }
.osm-slicer-list label { display: flex; align-items: center; gap: 6px; min-height: 28px; cursor: pointer; color: var(--osm-ink); }
.osm-slicer-list input { accent-color: var(--osm-accent); }
.osm-slicer-clear { align-self: flex-start; margin-top: 4px; min-height: 28px; padding: 0 6px; border: 0; background: transparent; color: var(--osm-accent); font: inherit; text-decoration: underline; cursor: pointer; }

/* A chart's own format: axis titles, and where the legend sits */
.osm-chart .osm-chart-axis-title { font-weight: 600; fill: var(--osm-ink-soft); }
.osm-chart.is-legend-bottom { flex-direction: column-reverse; }
.osm-chart.is-legend-left .osm-chart-pie { flex-direction: row-reverse; }
.osm-chart.is-legend-left:not(:has(.osm-chart-pie)), .osm-chart.is-legend-right:not(:has(.osm-chart-pie)) { flex-direction: row; }
.osm-chart.is-legend-left:not(:has(.osm-chart-pie)) > .osm-chart-legend,
.osm-chart.is-legend-right:not(:has(.osm-chart-pie)) > .osm-chart-legend { flex-direction: column; flex-wrap: nowrap; max-width: 30%; }
.osm-chart.is-legend-right:not(:has(.osm-chart-pie)) > .osm-chart-legend { order: 2; }

/* Narrower than 1200 px: the panes share one column, with tabs. */
@media screen and (max-width: 1199.98px) {
  .osm-author-panes { flex-direction: column; gap: 0; width: 290px; background: var(--osm-surface); border: 1px solid var(--osm-rule); border-radius: var(--osm-radius, 4px); }
  .osm-author-tabs { display: flex; flex: none; border-bottom: 1px solid var(--osm-rule); padding: 0 4px; }
  .osm-author-tabs button { flex: 1 1 auto; padding: 4px 6px; }
  .osm-pane { display: none; width: auto; border: 0; border-radius: 0; }
  .osm-pane-head, .osm-viz-tabs { display: none; }
  .osm-author-panes.is-tab-fields .osm-pane.is-fields,
  .osm-author-panes.is-tab-visuals .osm-pane.is-visuals,
  .osm-author-panes.is-tab-filters .osm-pane.is-filters { display: flex; flex: 1 1 auto; }
}
@media screen and (max-width: 767.98px) {
  .osm-author-panes { width: 250px; }
}
/* A phone: the canvas the full width, the panes a sheet along the bottom (tap the handle). */
@media screen and (max-width: 599.98px) {
  .osm-author { padding-bottom: 56px; }
  .osm-author-body { flex-direction: column; }
  .osm-author-stage { max-height: none; min-height: 0; padding: 6px; }
  .osm-author-status { display: none; }
  .osm-author-toolbar { flex-wrap: nowrap; overflow-x: auto; }
  .osm-author-views button span { display: none; }
  .osm-author-panes {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1300; width: auto; min-height: 0; max-height: none; height: 48px;
    border-radius: 12px 12px 0 0; box-shadow: 0 -6px 20px color-mix(in srgb, var(--osm-ink) 22%, transparent);
  }
  .osm-author.is-sheet-open .osm-author-panes { height: 62vh; }
  .osm-author-tabs { align-items: center; min-height: 48px; }
  .osm-author-sheet-handle { display: inline-flex; align-items: center; justify-content: center; flex: none !important; min-width: 44px; }
  .osm-author:not(.is-sheet-open) .osm-pane { display: none !important; }
  .osm-author-handle { width: 20px; height: 20px; }
}

/* Editing a report (V1312): a compact header - the title and one row of commands. */
.osm-hide-phone { white-space: pre; }
.osm-page.is-authoring .osm-page-header { margin-bottom: 6px; }
.osm-page.is-authoring .osm-page-title { font-size: 1.375rem; line-height: 1.3; }
.osm-page.is-authoring .osm-page-titlebar { gap: 6px 12px; }
@media screen and (max-width: 599.98px) {
  .osm-page.is-authoring .osm-page-title { font-size: 1.125rem; }
  .osm-page.is-authoring .osm-commandbar { flex-wrap: nowrap; gap: 6px; }
  .osm-page.is-authoring .osm-commandbar .mud-button-root { min-width: 0; padding-left: 10px; padding-right: 10px; }
  .osm-hide-phone { display: none; }
}

/* ---------------------------------------------------------------------------
 * Reports with pages (V1314): the page tabs along the bottom, as Power BI has
 * them - under the canvas while editing, under the page while reading; on a
 * phone the strip scrolls sideways. The report library: search and sort, then
 * a list per shelf (a row on a desktop, a card on a phone). Theme tokens only.
 * ------------------------------------------------------------------------ */
.osm-author-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.osm-author-main > .osm-author-stage { flex: 1 1 auto; max-height: calc(100vh - 270px); }

.osm-report-tabs {
  display: flex; align-items: center; gap: 8px; margin-top: 8px; min-width: 0;
  border-top: 1px solid var(--osm-rule); background: var(--osm-surface);
}
.osm-author-main .osm-report-tabs { margin-top: 0; border: 1px solid var(--osm-rule); border-radius: var(--osm-radius, 4px); }
.osm-report-tabs-strip {
  display: flex; align-items: stretch; gap: 2px; flex: 1 1 auto; min-width: 0;
  overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; -webkit-overflow-scrolling: touch;
}
.osm-report-tab {
  display: inline-flex; align-items: center; flex: none; max-width: 240px;
  border-top: 3px solid transparent; color: var(--osm-ink-soft);
}
.osm-report-tab.is-on { border-top-color: var(--osm-accent); background: var(--osm-accent-soft); color: var(--osm-ink); }
.osm-report-tab-name {
  min-height: 40px; padding: 6px 14px; border: 0; background: transparent; color: inherit; cursor: pointer;
  font: inherit; font-size: 0.875rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px;
}
.osm-report-tab.is-on .osm-report-tab-name { font-weight: 600; }
.osm-report-tab-name:hover { background: var(--osm-sunk); }
.osm-report-tab-name:focus-visible { outline: 2px solid var(--osm-accent); outline-offset: -2px; }
.osm-report-tab-more { margin-left: -6px; }
.osm-report-tab-add { flex: none; align-self: center; margin: 0 4px; }
.osm-report-tabs-count { flex: none; padding: 0 10px; font-size: 0.75rem; color: var(--osm-ink-mute); white-space: nowrap; }
@media screen and (max-width: 599.98px) {
  .osm-report-tabs-count { display: none; }
  .osm-report-tab-name { min-height: 44px; padding: 6px 12px; }
}
@media print {
  .osm-report-tabs { display: none !important; }
}

/* The report library. */
.osm-report-library-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 4px; }
.osm-report-library-search { flex: 1 1 280px; max-width: 480px; }
.osm-report-library-sort { flex: 0 1 260px; }
.osm-report-library-tools .mud-input-control { margin-top: 0; }
.osm-report-shelf-count { font-weight: 400; font-size: 0.875rem; }
.osm-report-list {
  list-style: none; margin: 0 0 8px; padding: 0;
  border: 1px solid var(--osm-rule); border-radius: var(--osm-radius, 4px); background: var(--osm-surface);
}
.osm-report-row {
  display: grid; grid-template-columns: minmax(0, 1fr) 160px 150px auto; align-items: center; gap: 4px 16px;
  padding: 8px 12px; border-top: 1px solid var(--osm-rule);
}
.osm-report-row:first-child { border-top: 0; }
.osm-report-row.is-head {
  padding-top: 6px; padding-bottom: 6px; font-size: 0.75rem; font-weight: 600; color: var(--osm-ink-soft); background: var(--osm-sunk);
  border-radius: var(--osm-radius, 4px) var(--osm-radius, 4px) 0 0;
}
.osm-report-row-name { display: flex; align-items: flex-start; gap: 10px; min-width: 0; }
.osm-report-row-name > .mud-icon-root { margin-top: 2px; color: var(--osm-accent); flex: none; }
.osm-report-row-text { display: flex; flex-direction: column; min-width: 0; }
.osm-report-row-text a, .osm-report-row-text .osm-link-button { overflow-wrap: anywhere; }
.osm-report-row-desc { font-size: 0.8125rem; color: var(--osm-ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.osm-report-row-meta { font-size: 0.75rem; color: var(--osm-ink-mute); }
.osm-report-row-owner, .osm-report-row-when { font-size: 0.8125rem; color: var(--osm-ink-soft); }
.osm-report-row-label { display: none; }
.osm-report-row-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px; }
.osm-link-button {
  align-self: flex-start; padding: 0; border: 0; background: none; color: var(--osm-accent); font: inherit; text-align: left; cursor: pointer; text-decoration: underline;
}
.osm-link-button:focus-visible { outline: 2px solid var(--osm-accent); outline-offset: 2px; }
@media screen and (max-width: 1279.98px) {
  .osm-report-row { grid-template-columns: minmax(0, 1fr) 120px 120px auto; gap: 4px 10px; }
}
@media screen and (max-width: 767.98px) {
  .osm-report-row { grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 10px 12px; }
  .osm-report-row.is-head { display: none; }
  .osm-report-row-label { display: inline; }
  .osm-report-row-owner, .osm-report-row-when { padding-left: 30px; font-size: 0.75rem; }
  .osm-report-row-actions { justify-content: flex-start; padding-left: 30px; margin-top: 4px; }
  .osm-report-row-desc { white-space: normal; }
}

/* A CYOPS template on the canvas: its name, what it is for and Publish in one row. */
.osm-template-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 6px; }
.osm-template-head .mud-input-control { margin-top: 0; }
.osm-template-name { flex: 1 1 240px; max-width: 420px; }
.osm-template-desc { flex: 2 1 320px; }
@media screen and (max-width: 599.98px) {
  .osm-author-main > .osm-author-stage { max-height: none; }
}

/* ---------------------------------------------------------------------------
   Reports stage 4: pages and interactions (Power BI's drill, drill-through,
   bookmarks, buttons, text boxes, shapes, the Selection pane and Edit
   interactions). Theme colours only; light and dark alike.
   --------------------------------------------------------------------------- */
.osm-visual-actions .mud-icon-button.is-pressed,
.osm-author-toolbar .mud-icon-button.is-pressed,
.osm-interaction .mud-icon-button.is-pressed { background: var(--osm-accent-soft); color: var(--osm-accent); }

/* Buttons, text boxes, shapes and navigators: no frame of their own. */
.osm-report-visual.is-deco { padding: 0; background: transparent; border-color: transparent; justify-content: center; }
.osm-report-visual.is-deco:focus-within { border-color: transparent; }
.osm-report-visual.is-deco.is-text { justify-content: flex-start; padding: 4px 6px; }
.osm-textbox { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 0.875rem; line-height: 1.4; color: var(--osm-ink); overflow: auto; }
.osm-textbox a { color: var(--osm-accent); text-decoration: underline; }
.osm-report-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: 100%; height: 100%; min-height: 36px;
  padding: 4px 12px; font: inherit; font-size: 0.875rem; font-weight: 600; color: var(--osm-ink);
  background: var(--osm-surface); border: 1px solid var(--osm-rule-strong); border-radius: 4px; cursor: pointer;
}
.osm-report-button:hover:not(:disabled) { background: var(--osm-sunk); }
.osm-report-button:focus-visible { outline: 2px solid var(--osm-accent); outline-offset: 2px; }
.osm-report-button:disabled { cursor: default; opacity: 1; }
.osm-report-button.is-on { background: var(--osm-accent); color: var(--osm-on-accent); border-color: var(--osm-accent); }
.osm-report-navigator { display: flex; gap: 6px; height: 100%; align-items: stretch; overflow-x: auto; }
.osm-report-navigator .osm-report-button { width: auto; flex: 1 0 auto; }
.osm-report-shape { width: 100%; height: 100%; border: 1px solid var(--osm-rule); border-radius: 3px; }
.osm-report-line { width: 100%; height: 0; border-top: 2px solid var(--osm-rule-strong); }
.osm-report-visual.is-shape { pointer-events: none; }

/* A tablet or a phone: buttons and text keep their own height; shapes are layout only. */
@media screen and (max-width: 991.98px) {
  .osm-report-grid > .osm-report-visual.is-deco { height: auto; min-height: 0; }
  .osm-report-grid > .osm-report-visual.is-button, .osm-report-grid > .osm-report-visual.is-navigator { min-height: 44px; }
  .osm-report-grid > .osm-report-visual.is-shape { display: none; }
}

/* Drilled through: where from, and Back. */
.osm-drill-banner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 8px; padding: 6px 10px;
  font-size: 0.875rem; color: var(--osm-ink); background: var(--osm-accent-soft); border: 1px solid var(--osm-rule); border-radius: 4px;
}

/* A data point's menu: drill down, drill up, drill through, select. */
.osm-point-menu-backdrop { position: fixed; inset: 0; z-index: 1450; }
.osm-point-menu {
  position: fixed; z-index: 1451; min-width: 220px; max-width: min(320px, calc(100vw - 32px)); padding: 4px 0;
  background: var(--osm-surface); color: var(--osm-ink); border: 1px solid var(--osm-rule-strong); border-radius: 6px;
  box-shadow: 0 8px 24px color-mix(in srgb, var(--osm-ink) 22%, transparent); outline: none;
}
.osm-point-menu-head { padding: 4px 12px 6px; font-size: 0.75rem; font-weight: 600; color: var(--osm-ink-soft); border-bottom: 1px solid var(--osm-rule); overflow-wrap: anywhere; }
.osm-point-menu button {
  display: flex; align-items: center; gap: 8px; width: 100%; min-height: 40px; padding: 6px 12px; text-align: left;
  font: inherit; font-size: 0.875rem; color: var(--osm-ink); background: transparent; border: 0; cursor: pointer;
}
.osm-point-menu button:hover, .osm-point-menu button:focus-visible { background: var(--osm-sunk); outline: none; }

/* A matrix's hierarchy: + and - on each group, its levels stepped in. */
.osm-matrix-cell { display: inline-flex; align-items: center; gap: 4px; }
.osm-matrix-toggle {
  display: inline-flex; align-items: center; justify-content: center; flex: none; width: 22px; height: 22px; padding: 0;
  font: inherit; font-weight: 700; line-height: 1; color: var(--osm-ink); background: var(--osm-surface);
  border: 1px solid var(--osm-rule-strong); border-radius: 3px; cursor: pointer;
}
.osm-matrix-toggle:focus-visible { outline: 2px solid var(--osm-accent); outline-offset: 1px; }

/* The canvas: a hidden visual faded; Edit interactions' choice on every other visual. */
.osm-author-tile.is-hidden .osm-report-visual { opacity: 0.35; outline: 1px dashed var(--osm-rule-strong); }
.osm-interaction {
  position: absolute; top: 6px; left: 6px; z-index: 7; display: flex; gap: 2px; padding: 2px;
  background: var(--osm-surface); border: 1px solid var(--osm-accent); border-radius: 4px;
  box-shadow: 0 2px 8px color-mix(in srgb, var(--osm-ink) 18%, transparent);
}
.osm-interaction .mud-icon-button { padding: 4px; }

/* The Selection and Bookmarks panes. */
.osm-pane.is-under-side { display: none !important; }
.osm-pane.is-side { width: 240px; }
@media screen and (max-width: 1199.98px) {
  .osm-author-panes.is-tab-filters .osm-pane.is-side { display: flex; flex: 1 1 auto; width: auto; }
  .osm-pane.is-side .osm-pane-head { display: flex; }
}
.osm-selection-list, .osm-bookmark-list { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 2px; }
.osm-selection-list li, .osm-bookmark-list li { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; border-radius: 4px; }
.osm-selection-list li.is-selected { background: var(--osm-accent-soft); }
.osm-selection-list li.is-hidden .osm-selection-name { color: var(--osm-ink-mute); }
.osm-selection-name, .osm-bookmark-name {
  display: flex; align-items: center; gap: 6px; flex: 1 1 0; min-width: 0; min-height: 32px; padding: 4px 6px; text-align: left;
  font: inherit; font-size: 0.8125rem; color: var(--osm-ink); background: transparent; border: 0; border-radius: 4px; cursor: pointer;
}
.osm-selection-name span, .osm-bookmark-name span:first-of-type { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.osm-selection-name:hover, .osm-bookmark-name:hover { background: var(--osm-sunk); }
.osm-bookmark-page { margin-left: auto; font-size: 0.75rem; white-space: nowrap; }
.osm-bookmark-problem { flex-basis: 100%; font-size: 0.75rem; }

/* A text box's or a button's words in the Visualizations pane. */
.osm-text-run { padding: 4px 0 8px; border-bottom: 1px solid var(--osm-rule); }
.osm-text-run-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 4px; }
.osm-run-toggle {
  min-width: 32px; min-height: 32px; font: inherit; color: var(--osm-ink); background: var(--osm-surface);
  border: 1px solid var(--osm-rule-strong); border-radius: 4px; cursor: pointer;
}
.osm-run-toggle.is-on { background: var(--osm-accent-soft); border-color: var(--osm-accent); color: var(--osm-accent); }
.osm-run-size { max-width: 90px; }
.osm-run-colour { max-width: 120px; }
.osm-field.is-hierarchy .osm-field-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.osm-drill-well { border-color: var(--osm-accent); }
/* A touch screen: the visual header wraps rather than losing its last buttons (stage 4 adds the drill ones). */
@media (hover: none) {
  .osm-visual-actions { flex: 1 1 100%; max-width: 100%; flex-wrap: wrap; justify-content: flex-end; row-gap: 2px; }
}

/* Finance > Reports (V1410): the standard reports by group, in columns that fold to one on a phone. */
.osm-finance-report-search { max-width: 28rem; }
.osm-finance-report-groups {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
  gap: 1rem 1.5rem;
}
.osm-finance-report-list { list-style: none; padding-left: 0; margin: 0; }
.osm-finance-report-list > li { padding: .35rem 0; border-bottom: 1px solid var(--mud-palette-lines-default); overflow-wrap: anywhere; }
.osm-finance-report-list > li:last-child { border-bottom: 0; }
