/* =============================================================================
   Reliability360 CMMS — Stylesheet
   Single source of truth for the Blazor Server build (plain CSS, no framework).
   Extracted verbatim from the prototypes + Component Spec.dc.html.

   Sections
     1. Fonts
     2. Tokens (CSS custom properties)
     3. Reset & base
     4. Layout shells (sidebar / mobile bottom-tab)
     5. Typography helpers (eyebrow, display, mono)
     6. Components
          .pill  .card  .statcard  .btn  .datarow  .field
          .drawer  .toast  .hero  .tabbar  .help-chip
     7. States (hover / focus / press)
     8. Animations
     9. Utilities & placeholders
    10. Responsive
============================================================================= */

/* 1. FONTS ------------------------------------------------------------------ */
@import url("https://fonts.googleapis.com/css?family=JetBrains+Mono:wght@400;500;600&display=swap");

@font-face {
  font-family: "Helvetica LT";
  src: url("../Helvetica_LT_Bold.ttf") format("truetype");
  font-weight: 500 900;
  font-style: normal;
  font-display: swap;
}

/* 2. TOKENS ----------------------------------------------------------------- */
:root {
  /* Brand */
  /* Accessibility audit [A1]: --brand at #0599E1 is only 3.16:1 as white-on-blue button/link text
     — below the 4.5:1 AA minimum for normal-weight text. --brand is now the AA-safe deep blue
     (4.77:1) and drives all TEXT/button/link uses; --brand-bright keeps the original vivid blue
     for non-text uses (icons, active-nav fills, decorative accents) where contrast rules don't apply. */
  --brand: #0479B4; /* AA-safe blue (4.77:1 on white) — buttons, links, focus */
  --brand-bright: #0599E1; /* original vivid blue — icons/decorative/non-text UI only */
  --brand-deep: #0479B4; /* primary button hover (now same as --brand; kept for callers that reference it explicitly) */
  --brand-ink: #0A2540; /* navy — sidebar, hero, weight */
  --brand-tile: #036FA8; /* deep blue — mono IDs, ghost-button text */
  --splash-lime: #E6F47A; /* the one pop — dark surfaces only */
  --splash-cobalt: #0E3A66; /* resume-gradient + scanner stripe partner */
  /* Ink ramp (text) */
  --ink: #0E1726; /* body */
  --ink-2: #2C3A4F; /* labels, secondary body */
  --ink-3: #5A6878; /* help & meta */
  /* Accessibility audit [A3]: was #8B97A8 (2.96:1 on white, 2.76:1 on --paper-2) but used for real
     content (.meta, user emails, report subtext), not just decoration — needs 4.5:1. */
  --ink-4: #647285; /* real-content meta text (4.57:1 on --paper-2, 4.9:1 on white) */
  --ink-5: #B9C3D1; /* disabled */
  /* Surfaces */
  --paper: #FFFFFF;
  --paper-2: #F5F7FB; /* app background, inset fills */
  --paper-3: #EAEEF6; /* chips, tracks */
  --paper-mobile: #F1F3F8; /* mobile screen background */
  --app-bg: #E7EAF0; /* desktop canvas behind cards */
  --icon-tile: #EAF2FB; /* asset/doc icon square */
  /* Lines */
  --line: #DCE2ED;
  --line-soft: #EBEFF5;
  --line-strong: #B6C0D0;
  /* Status pairs (bg / fg) */
  /* Accessibility audit [A2]: pill text color must hit 4.5:1 against its own -bg. success/warning/
     danger all failed (3.64/3.42/4.21:1); info passed but barely (4.59:1, left as-is). Deepened
     fg only — bg tints unchanged so pills keep their current look at a glance. */
  --success: #1B7950; /* was #1F8A5B (3.64:1) — now 4.52:1 on --success-bg */
  --success-bg: #D8F1E3;
  --warning: #966100; /* was #B27300 (3.42:1) — now 4.57:1 on --warning-bg */
  --warning-bg: #FFEEC7;
  --danger: #BB3320; /* was #C43521 (4.21:1) — now 4.52:1 on --danger-bg */
  --danger-bg: #FBDCD7;
  --info: #036FA8; /* unchanged — already 4.59:1 on --info-bg */
  --info-bg: #D6EFFF;
  --neutral: #2C3A4F;
  --neutral-bg: #EAEEF6;
  --toast-dot: #4AD07E;
  /* Priority bar colors (work-order left rail) */
  --pri-low: #8B97A8;
  --pri-medium: #0599E1;
  --pri-high: #B27300;
  --pri-critical: #C43521;
  /* Typography */
  --f-display: "Helvetica LT", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --f-body: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  /* Radii */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 12px;
  --r-lg: 14px;
  --r-xl: 16px;
  --r-2xl: 20px;
  --r-pill: 999px;
  /* Spacing (8-pt base) */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 14px;
  --s-5: 16px;
  --s-6: 18px;
  --s-7: 22px;
  --s-8: 24px;
  --s-9: 28px;
  /* Shadows — very restrained; cards default to none */
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.03); /* barely-there lift */
  --shadow-2: 0 4px 18px rgba(14, 23, 38, 0.06); /* handoff pages, hover */
  --shadow-cover: 0 8px 30px rgba(10, 37, 64, 0.18); /* dark cover plates */
  --shadow-drawer: -8px 0 24px rgba(10, 37, 64, 0.12); /* side sheet */
  --shadow-toast: 0 12px 30px rgba(0, 0, 0, 0.25); /* floating toast */
  /* Motion */
  --ease-house: cubic-bezier(0.2, 0.6, 0.2, 1);
  --ease-progress: cubic-bezier(0.5, 0.1, 0.2, 1);
  --tr-fast: 0.15s;
}

/* 3. RESET & BASE ----------------------------------------------------------- */
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper-2);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--brand);
  text-decoration: none;
}

  a:hover {
    text-decoration: underline;
  }

/* 4. LAYOUT SHELLS ---------------------------------------------------------- */
.app {
  display: flex;
  min-height: 100vh;
}

/* Accessibility audit [A6]: visually hidden until keyboard-focused, so it doesn't disturb the
   normal visual layout but is the very first thing a keyboard user can Tab to on any page. */
.skip-link {
  position: absolute;
  top: -40px;
  left: 8px;
  z-index: 1000;
  background: var(--brand-ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 8px;
}

/* Desktop: fixed 268px navy sidebar */
.sidenav {
  width: 268px;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  background: var(--brand-ink);
  color: #fff;
  padding: 22px 18px 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.main-body {
  flex: 1;
  min-width: 0;
  overflow: auto;
  padding: 30px 44px 96px;
}

/* 5. TYPOGRAPHY HELPERS ----------------------------------------------------- */
.eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.eyebrow--brand {
  color: var(--brand);
}

.display-1 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 44px;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.display-2 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 30px;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.display-3 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.display-4 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.mono {
  font-family: var(--f-mono);
  letter-spacing: 0.02em;
}

.id-mono {
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--brand-tile);
}

.meta {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--ink-4);
}

h1 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 30px;
  letter-spacing: -0.03em;
  margin: 0;
}

h2 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.03em;
  margin: 0;
}

/* 6. COMPONENTS ------------------------------------------------------------- */

/* --- Pill / status badge -------------------------------------------------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

  .pill .pill__dot {
    width: 6px;
    height: 6px;
    border-radius: var(--r-pill);
    background: currentColor;
    flex-shrink: 0;
  }

.pill--success {
  background: var(--success-bg);
  color: var(--success);
}

.pill--warning {
  background: var(--warning-bg);
  color: var(--warning);
}

.pill--danger {
  background: var(--danger-bg);
  color: var(--danger);
}

.pill--info {
  background: var(--info-bg);
  color: var(--info);
}

.pill--neutral {
  background: var(--neutral-bg);
  color: var(--neutral);
}

/* --- Card ----------------------------------------------------------------- */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-2xl);
  padding: var(--s-8);
}

  .card.flush {
    padding: 0;
    overflow: hidden;
  }
  /* tables / row lists */
  .card.dark {
    background: var(--brand-ink);
    color: #fff;
    border-color: transparent;
  }

  .card.brand {
    background: var(--brand);
    color: #fff;
    border-color: transparent;
  }

/* --- Stat card ------------------------------------------------------------ */
.statcard {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-2xl);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 118px;
}

.statcard__eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.statcard__value {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 38px;
  line-height: 1;
  letter-spacing: -0.03em;
}

.statcard__unit {
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--ink-4);
}

.statcard__sub {
  font-size: 13px;
  line-height: 18px;
  color: var(--ink-3);
}

/* --- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 9px 16px;
  border: 0;
  border-radius: var(--r-md);
  cursor: pointer;
  transition: background var(--tr-fast) ease, transform var(--tr-fast) ease;
}

.btn--primary {
  background: var(--brand);
  color: #fff;
}

.btn--ghost {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn--dark {
  background: var(--brand-ink);
  color: #fff;
}

.btn--success {
  background: var(--success);
  color: #fff;
}

.btn--danger {
  background: var(--danger);
  color: #fff;
}

.btn--block {
  width: 100%;
  padding: 15px;
  font-size: 16px;
  border-radius: var(--r-lg);
}

.btn--dashed {
  background: var(--paper-2);
  color: var(--brand-tile);
  border: 1px dashed var(--line-strong);
  font-size: 13px;
}

/* --- List / table row ----------------------------------------------------- */
.datarow {
    display: grid;
    grid-template-columns: 96px 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 13px 22px;
    border-bottom: 1px solid var(--line-soft);
    cursor: pointer;
    background: var(--paper);
    text-align: left;
    width: 100%;
    border-left: 0;
    border-right: 0;
    border-top: 0;
    font-family: inherit;
}

  .datarow:last-child {
    border-bottom: 0;
  }

.datarow__id {
  font-family: var(--f-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-tile);
}

.datarow__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  /* Must be block for overflow/ellipsis to apply — an inline span ignores them,
     so a long title would spill out of its grid track and over the pills column. */
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* --- Tables (dashboard / list pages) ------------------------------- */
.r360-table {
  width: 100%;
  border-collapse: collapse;
}

.r360-table th,
.r360-table td {
  font-family: var(--f-body);
  font-size: 13px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: middle;
  color: var(--ink);
}

.r360-table th {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 10px 14px;
}

.r360-table th {
    position: relative;
}

.r360-col-resize-handle {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 6px;
    cursor: col-resize;
    user-select: none;
}

.r360-col-resize-handle:hover,
.r360-col-resize-handle:active {
    background: rgba(5, 153, 225, 0.3);
}

/* Sortable table-header convention (click-to-sort column header + direction arrow), used by any
   r360-table across the app -- e.g. WorkOrders.razor, TechnicianDetail.razor, PoAgingReport.razor.
   Defined globally (rather than per-component scoped CSS) so the same classes render correctly
   regardless of which component's markup they end up on. */
.wo-th-sort {
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}

.wo-th-sort:hover {
    color: #0599e1;
}

.wo-sort-icon {
    margin-left: 4px;
    font-size: 11px;
    color: #b0bac8;
    vertical-align: middle;
}

.wo-sort-active {
    color: #0599e1;
}

/* Mobile work-order card (Today list) with priority bar */
.wo-card {
  display: flex;
  align-items: stretch;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  padding: 0;
}

.wo-card__bar {
  width: 5px;
  flex-shrink: 0;
}

.wo-card__body {
  flex: 1;
  padding: 13px 14px;
  min-width: 0;
}

.bar--low {
  background: var(--pri-low);
}

.bar--medium {
  background: var(--pri-medium);
}

.bar--high {
  background: var(--pri-high);
}

.bar--critical {
  background: var(--pri-critical);
}

/* --- Form field ----------------------------------------------------------- */
.field__label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 6px;
}

.field__input,
.input,
select.input,
textarea.input {
  width: 100%;
  padding: 11px 13px;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  transition: border-color var(--tr-fast) ease, box-shadow var(--tr-fast) ease;
}

textarea.input {
  min-height: 62px;
  resize: none;
}

/* --- req-* form primitives (GLOBAL) --------------------------------------- */
/* Shared form styles used by many pages (Requests, Checklist templates, Requisitions,
   RCA, Notifications, Meter readings, …). These were originally only in Requests.razor.css,
   which is component-SCOPED — so every other page that reused the class names rendered
   unstyled inputs. Declaring them here, globally, styles all pages from one place. */
.req-title {
  font-family: 'Helvetica LT', 'Helvetica Neue', sans-serif;
  font-weight: 700;
  font-size: 34px;
  letter-spacing: -0.03em;
  color: #0e1726;
  margin: 0;
}
.req-subtitle { font-size: 15px; color: #5a6878; margin: 6px 0 22px; }
.req-kicker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: .16em;
  color: #9aa3b2;
  margin-bottom: 14px;
}
.req-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #0e1726;
  margin: 12px 0 6px;
}
/* Red "*" marking a required field (used by Field.razor's <span class="r360-required">
   and by raw-label forms). Kept small and non-bold so it reads as a marker, not shouting. */
.r360-required {
  color: #e5484d;
  margin-left: 2px;
  font-weight: 700;
}
/* One-line "what the asterisk means" legend shown atop create forms. */
.r360-required-legend {
  font-size: 12px;
  color: #5a6a7e;
  margin: 0 0 12px;
}
.r360-required-legend .r360-required {
  margin-left: 0;
  margin-right: 3px;
}
/* Inline field-level validation (Field.razor Error param). The control is outlined red and a
   small message is shown below it; all errors stay visible until the next validate. The
   descendant selectors reach the inner control (.r360-input is global, incl. the Combo input). */
.r360-field--error .r360-input,
.r360-field--error .r360-field__input,
.r360-field--error .r360-combo__input {
  border-color: #e5484d;
  box-shadow: 0 0 0 1px rgba(229, 72, 77, 0.25);
}
.r360-field__error {
  display: block;
  font-size: 12px;
  color: #e5484d;
  margin-top: 4px;
}
/* Same inline-error message for raw-label forms (req-/pm-/ven-) that don't use Field. */
.r360-input-error {
  display: block;
  font-size: 12px;
  color: #e5484d;
  margin-top: 4px;
}
.req-input.input-error,
.pm-input.input-error,
.r360-input.input-error {
  border-color: #e5484d;
  box-shadow: 0 0 0 1px rgba(229, 72, 77, 0.25);
}
.req-input {
  width: 100%;
  border: 1px solid #dce2ed;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  color: #0e1726;
  background: #fff;
  box-sizing: border-box;
  font-family: inherit;
}
.req-input:focus {
  outline: none;
  border-color: #0599e1;
  box-shadow: 0 0 0 3px rgba(5, 153, 225, .15);
}
.req-textarea { resize: vertical; font-family: inherit; }
/* Native <select> chevron so dropdowns match the text inputs. */
select.req-input {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 30px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238b97a8' stroke-width='2'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
}
.req-submit {
  margin-top: 18px;
  width: 100%;
  background: #0599e1;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 11px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
}
.req-submit:hover:not(:disabled) { background: #047ab5; }
.req-submit:disabled { opacity: .5; cursor: not-allowed; }

/* Save Guard (docs/superpowers/specs/2026-08-29-save-guard-connectivity-resilience-design.md):
   visual states for a disconnect-safe Save/Create control. Pending = clicked, waiting on the
   server; Failed = no acknowledgment arrived within the timeout window. The message span reuses
   .r360-field__error's typography (display:block; font-size:12px; color:#e5484d) via its own id
   rather than duplicating the rule. */
.r360-save-pending {
  opacity: 0.65;
  cursor: wait;
}
.r360-save-failed {
  outline: 2px solid #e5484d;
  outline-offset: 1px;
}

/* --- Side drawer / sheet -------------------------------------------------- */
.scrim {
  position: fixed;
  inset: 0;
  background: rgba(10, 37, 64, 0.5);
  z-index: 80;
  display: flex;
}

.drawer {
  width: min(520px, 100%);
  height: 100%;
  margin-left: auto;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-drawer);
  animation: r360slideX 0.25s var(--ease-house);
}

.drawer__header {
  position: sticky;
  top: 0;
  background: var(--brand-ink);
  color: #fff;
  padding: 18px 20px;
}

.drawer__body {
  padding: 20px;
  overflow: auto;
  flex: 1;
}

/* Mobile bottom sheet variant */
.sheet {
  width: 100%;
  margin-top: auto;
  background: var(--paper);
  border-radius: 24px 24px 0 0;
  padding: 20px 18px 30px;
  animation: r360sheet 0.28s var(--ease-house);
}

.sheet__grabber {
  width: 38px;
  height: 4px;
  border-radius: var(--r-pill);
  background: var(--line);
  margin: 0 auto 16px;
}

/* --- Toast ---------------------------------------------------------------- */
.toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--ink);
  color: #fff;
  padding: 13px 20px;
  border-radius: var(--r-lg);
  font-size: 13px;
  font-weight: 500;
  box-shadow: var(--shadow-toast);
  animation: r360fade 0.25s ease;
}

.toast__dot {
  width: 8px;
  height: 8px;
  border-radius: var(--r-pill);
  background: var(--toast-dot);
  flex-shrink: 0;
}

/* --- Hero (navy stripe with radial glow) ---------------------------------- */
.hero {
  background: var(--brand-ink);
  color: #fff;
  position: relative;
  overflow: hidden;
  padding: 22px 20px;
}

.hero__glow {
  position: absolute;
  right: -70px;
  top: -70px;
  width: 220px;
  height: 220px;
  border-radius: var(--r-pill);
  background: radial-gradient(circle at 30% 30%, rgba(5, 153, 225, 0.5), transparent 60%);
  pointer-events: none;
  z-index: 0; /* sits behind the content */
}

/* Lift content above the glow. Exclude .hero__glow itself: it's also a direct child,
   and this rule (defined after .hero__glow) would otherwise override its
   position:absolute with position:relative, dropping the glow into normal flow on top. */
.hero > *:not(.hero__glow) {
  position: relative;
  z-index: 1;
}

/* The ONE allowed gradient — resume banner */
.resume-banner {
  background: linear-gradient(95deg, #0A2540 0%, #0E3A66 100%);
  color: #fff;
  border-radius: var(--r-2xl);
}

/* Inset card on a dark surface (translucent fill) */
.dark-inset {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--r-md);
  padding: 10px 12px;
}

/* --- Icon tile (asset / document glyph square) ---------------------------- */
.icon-tile {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--icon-tile);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--brand-tile);
}

.icon-svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* --- Mobile bottom tab bar ------------------------------------------------ */
.tabbar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--brand-ink);
  display: flex;
  padding: 8px 8px 26px;
  z-index: 30;
}

.tabbar__btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: 0;
  padding: 7px 0;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.55);
  font-family: inherit;
}

  .tabbar__btn span {
    font-size: 11px;
    font-weight: 600;
    font-family: var(--f-mono);
  }

  .tabbar__btn.is-active {
    color: var(--splash-lime);
  }

/* --- Help chip (fixed, live indicator) ------------------------------------ */
.help-chip {
  position: fixed;
  bottom: 22px;
  right: 22px;
  background: var(--brand-ink);
  color: #fff;
  border-radius: var(--r-pill);
  padding: 11px 16px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  box-shadow: var(--shadow-toast);
  cursor: pointer;
  transition: background var(--tr-fast) ease;
}

.help-chip__live {
  width: 8px;
  height: 8px;
  border-radius: var(--r-pill);
  background: var(--splash-lime);
  animation: r360pulse 2s ease-in-out infinite;
}

/* 7. STATES ----------------------------------------------------------------- */
.btn--primary:hover {
  background: var(--brand-deep);
}

.btn--ghost:hover {
  background: var(--paper-2);
}

.btn:active {
  transform: translateY(1px);
}

.help-chip:hover {
  background: #06182D;
}

/* Tiles lift on hover */
.tile, .wo-card, .datarow {
  transition: transform var(--tr-fast) ease, box-shadow var(--tr-fast) ease, border-color var(--tr-fast) ease;
}

  .tile:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-2);
    border-color: var(--brand);
  }

  .datarow:hover {
    background: var(--paper-2);
  }

/* Universal focus treatment — 1.5px brand border + 4px halo */
.field__input:focus,
.input:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 0;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(5, 153, 225, 0.15);
}

/* 8. ANIMATIONS ------------------------------------------------------------- */
@keyframes r360fade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes r360sheet {
  from {
    transform: translateY(100%);
  }

  to {
    transform: translateY(0);
  }
}

@keyframes r360slideX {
  from {
    transform: translateX(100%);
  }

  to {
    transform: translateX(0);
  }
}

@keyframes r360scan {
  0% {
    top: 8%;
  }

  50% {
    top: 88%;
  }

  100% {
    top: 8%;
  }
}

@keyframes r360pulse {
  0%, 100% {
    box-shadow: 0 0 0 3px rgba(230, 244, 122, 0.4);
  }

  50% {
    box-shadow: 0 0 0 6px rgba(230, 244, 122, 0);
  }
}

/* Accessibility audit [A9]: .help-chip__live and .scan-line run these two animations forever with
   no prefers-reduced-motion guard — a problem for vestibular-sensitive users and for anything
   glanced at on a wall-mounted dashboard. ReportCard.razor.css already respects this media query
   for its own pending-state animation; apply the same pattern here. */
@media (prefers-reduced-motion: reduce) {
  .help-chip__live {
    animation: none;
  }

  .scan-line {
    animation: none;
  }
}

/* Progress fills — slightly snappy */
.progress__fill {
  transition: width 0.5s var(--ease-progress);
}

/* 9. UTILITIES & PLACEHOLDERS ---------------------------------------------- */
.fade-up {
  animation: r360fade 0.25s var(--ease-house) both;
}

/* Diagonal-stripe placeholders for missing imagery (crop 4:3) */
.img-placeholder {
  background: repeating-linear-gradient(135deg, var(--paper-2) 0 14px, var(--paper-3) 14px 28px);
}

.img-placeholder--dark {
  background: repeating-linear-gradient(135deg, #0A2540 0 14px, #0E3A66 14px 28px);
}

.img-placeholder--sky {
  background: repeating-linear-gradient(135deg, #EAF6FE 0 14px, #D6EFFF 14px 28px);
}

/* QR scanner corner brackets (splash-lime on dark) */
.scan-corner {
  position: absolute;
  width: 34px;
  height: 34px;
}

.scan-corner--tl {
  top: 0;
  left: 0;
  border-top: 3px solid var(--splash-lime);
  border-left: 3px solid var(--splash-lime);
  border-radius: 12px 0 0 0;
}

.scan-corner--tr {
  top: 0;
  right: 0;
  border-top: 3px solid var(--splash-lime);
  border-right: 3px solid var(--splash-lime);
  border-radius: 0 12px 0 0;
}

.scan-corner--bl {
  bottom: 0;
  left: 0;
  border-bottom: 3px solid var(--splash-lime);
  border-left: 3px solid var(--splash-lime);
  border-radius: 0 0 0 12px;
}

.scan-corner--br {
  bottom: 0;
  right: 0;
  border-bottom: 3px solid var(--splash-lime);
  border-right: 3px solid var(--splash-lime);
  border-radius: 0 0 12px 0;
}

.scan-line {
  position: absolute;
  left: 8%;
  right: 8%;
  height: 2px;
  background: var(--splash-lime);
  box-shadow: 0 0 12px 2px rgba(230, 244, 122, 0.7);
  animation: r360scan 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Hidden scrollbar (scroll regions inside the mobile frame) */
.r360-scroll::-webkit-scrollbar {
  width: 0;
}

/* Reserve space at the bottom of the mobile content so the last element never
   sits under the fixed tab bar. Height = tabbar padding (8 + 26 = 34px) + icon
   row (~40px) + breathing room → 80px base + iOS safe area. */
.r360-mobile-shell {
    padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
}

/* --- Mobile tab bar ------------------------------------------------------- */
.r360-tabbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--brand-ink) !important;
    display: flex !important;
    padding: 8px 8px 26px !important;
    z-index: 30 !important;
    border: none !important;
    box-shadow: none !important;
}

/* ── Viewport tiers ────────────────────────────────────────────────────────
   PHONE   (<= 900px)  purpose-built layouts + the bottom tab bar for technicians. The only
                       rule in this file that actually enforces this boundary is the tab bar's
                       own @media (min-width: 901px) hide, immediately below -- there is no
                       separate 768px gate anywhere in app.css or the component .razor.css
                       files (confirmed by grep); don't assume one exists just because 768px
                       is a common device-width convention elsewhere.
   TABLET  (<= 1200px) desktop chassis, but the sidebar becomes a drawer and dense
                       tables become stacked cards. Raised from 900px: Task 2's baseline
                       measurement (_qa/responsive/before/results.json) showed /work-orders
                       at 1024px with NO document-level horizontal overflow, but a crushed
                       177px first-row height (vs. 61-122px on other routes) because the
                       card-stacking layout and the MudBlazor table's overflow-x:auto safety
                       net were both gated behind max-width:900px, which never fires at a
                       1024px tablet viewport -- the sidebar stayed pinned (267px) and the
                       desktop table's cells wrapped their content into tall rows instead of
                       either stacking into cards or scrolling horizontally.
   DESKTOP (>  1200px) pinned sidebar, full tables.
   The drawer, the hamburger and the card layout MUST share one breakpoint: cards beside
   a pinned sidebar is worse than the desktop table.
   ──────────────────────────────────────────────────────────────────────── */

/* The bottom tab bar stays phone-only and deliberately keeps its own 901px gate below instead
   of following the sidebar/table tier up to 1200px: a technician on a 1024px tablet should get
   the drawer chassis, not a phone shell. This is now the ONLY nav rule still gated at 900px --
   .sidenav's own hide (see the RESPONSIVE section further down) moved to 1200px alongside it,
   so the two navs no longer mirror the same breakpoint the way they used to. */
@media (min-width: 901px) {
  .r360-tabbar {
    display: none !important;
  }
}

/* --- Mobile hamburger (non-Technician drawer trigger) --------------------- */
/* Accessibility audit [A8]: 36x36 is below the 44x44 minimum touch target for gloved hands /
   reduced motor control. Bumped the hit area via width/height; icon itself is unchanged since the
   SVG inside is sized independently and stays centered by the existing flex alignment. */
.ph-menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    color: #1f2733;
    cursor: pointer;
    padding: 0;
    margin-right: 8px;
    flex-shrink: 0;
}

@media (max-width: 1200px) {
  .ph-menu-btn {
    display: inline-flex;
  }
}

.r360-tab-item {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 4px !important;
    background: transparent !important;
    border: none !important;
    padding: 7px 0 !important;
    cursor: pointer !important;
    color: rgba(255, 255, 255, 0.55) !important;
    font-family: inherit !important;
    text-decoration: none !important;
    min-height: auto !important;
    min-width: 0 !important;
}

.r360-tab-item span {
    font-size: 11px !important;
    font-weight: 600 !important;
    font-family: var(--f-mono) !important;
    white-space: nowrap !important;
}

.r360-tab-item.is-active {
    color: var(--splash-lime) !important;
}

/* --- Form inputs (standalone) ----------------------------------------------- */
.r360-input {
    width: 100%;
    padding: 9px 11px;
    border: 1.5px solid var(--line);
    border-radius: var(--r-sm);
    font-size: 14px;
    background: var(--paper);
    color: var(--ink);
    font-family: inherit;
}

.r360-input:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(5, 153, 225, 0.15);
}

/* --- Combo (typeable/filterable dropdown) --------------------------------- */
/* Wrapper is positioned so the floating menu anchors to the input below it. */
.r360-combo {
    position: relative;
    width: 100%;
}

/* Floating list of options shown while the combo is open. */
.r360-combo__menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 30;
    max-height: 260px;
    overflow-y: auto;
    background: var(--paper);
    border: 1.5px solid var(--line);
    border-radius: var(--r-sm);
    box-shadow: 0 8px 24px rgba(14, 23, 38, 0.12);
    padding: 4px;
}

/* One selectable option row. */
.r360-combo__opt {
    padding: 8px 10px;
    border-radius: var(--r-sm);
    font-size: 14px;
    color: var(--ink);
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.r360-combo__opt:hover {
    background: var(--wash, rgba(14, 23, 38, 0.05));
}

/* "No matches" placeholder row. */
.r360-combo__empty {
    padding: 8px 10px;
    font-size: 13px;
    color: var(--muted, #64748b);
}

/* --- Card with flush styling ----------------------------------------------- */
.r360-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r-2xl);
    padding: 20px;
}

/* --- Sidebar navigation --------------------------------------------------- */
.grp {
    font-family: var(--f-mono);
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.42);
    padding: 14px 12px 6px;
}

.badge {
    background: rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 600;
    font-family: var(--f-mono);
}

.badge.alert {
    background: var(--danger);
}

.nav {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 9px 12px !important;
    border-radius: var(--r-sm) !important;
    width: 100% !important;
    text-align: left !important;
    font-size: 14.5px !important;
    font-weight: 500 !important;
    color: rgba(255, 255, 255, 0.82) !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: background var(--tr-fast) ease, color var(--tr-fast) ease !important;
    background: transparent !important;
    border: none !important;
    min-height: auto !important;
}

.nav.active {
    background: var(--brand) !important;
    color: #fff !important;
    font-weight: 600 !important;
}

.nav:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #fff !important;
}

.nav .icon-svg {
    flex-shrink: 0;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.va-wrap{display:flex;align-items:center;gap:7px}
.va-label{font-family:'JetBrains Mono',monospace;font-size:10px;letter-spacing:.14em;color:#9aa3b2}
.va-select{border:1px solid #dce2ed;border-radius:8px;padding:5px 9px;font-size:12.5px;
  font-weight:600;color:#1f2733;background:#fff;cursor:pointer}
.nf-bell{position:relative;background:transparent;border:none;cursor:pointer;color:#5b6472;padding:4px}
.nf-badge{position:absolute;top:-3px;right:-4px;background:#e05353;color:#fff;font-size:9.5px;
  font-weight:700;border-radius:999px;min-width:15px;height:15px;display:grid;place-items:center;padding:0 3px}
.nf-kicker{font-family:'JetBrains Mono',monospace;font-size:10px;letter-spacing:.16em;color:#9aa3b2}
.nf-title{font-size:20px;font-weight:700;color:#1f2733;margin-top:4px}
.nf-list{display:flex;flex-direction:column;gap:10px;margin-top:14px}
.nf-item{display:flex;align-items:center;gap:10px;border:1px solid #dce2ed;border-radius:12px;padding:11px}
.nf-tag{font-family:'JetBrains Mono',monospace;font-size:10px;border-radius:6px;padding:3px 7px;white-space:nowrap}
.nf-tag.alert{background:#fdeaea;color:#e05353}
.nf-tag.info{background:#eaf6fd;color:#0599e1}
.nf-tag.success{background:#eafaf0;color:#0f9d58}
.nf-text{font-size:13px;color:#1f2733}

/* 10. RESPONSIVE ------------------------------------------------------------ */
@media (max-width: 1200px) {
  /* Accessibility audit [A5]: transform alone moves the nav off-screen but its links stay in the
     tab order (tabindex 0, no aria-hidden) -- a keyboard user tabbing from page top walks through
     ~20 invisible links before reaching visible content, with no visible focus indicator since the
     element is off-screen. visibility:hidden removes the whole subtree from the accessibility tree
     and tab order without any Blazor/JS state to keep in sync with this same breakpoint; the
     transition delay keeps the slide-in/out animation working (hide only takes effect after the
     close transition finishes, so it doesn't cut the animation short). */
  .sidenav {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    max-width: 82vw;
    transform: translateX(-100%);
    visibility: hidden;
    transition: transform 0.25s ease, visibility 0s linear 0.25s;
    z-index: 50;
    overflow-y: auto;
  }
  .sidenav.is-open {
    transform: translateX(0);
    visibility: visible;
    transition: transform 0.25s ease;
  }
  .main {
    padding: 24px 18px 96px;
  }

  .card {
    padding: var(--s-6);
  }

  .display-1 {
    font-size: 32px;
  }

  .display-2 {
    font-size: 24px;
  }

  .help-chip {
    bottom: 84px;
    right: 12px;
  }
  /* clear the bottom bar */

  /* Safety net so MudTable-based pages (most desktop pages) scroll horizontally instead of
     blowing out the viewport at narrow widths -- not a redesign, just prevents breakage. */
  .mud-table-container {
    overflow-x: auto;
  }

  /* --- Mobile tables: stack each row into a labelled card --------------- */
  .r360-table,
  .r360-table tbody,
  .r360-table tr,
  .r360-table td {
    display: block;
    width: 100%;
  }
  .r360-table thead {
    display: none;
  }
  .r360-table tr {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r-lg, 14px);
    margin-bottom: 10px;
    overflow: hidden;
  }
  .r360-table td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    text-align: right;
    padding: 10px 14px;
    border-bottom: 1px solid var(--line-soft);
  }
  .r360-table tr td:last-child {
    border-bottom: none;
  }
  /* Labelled cells: show the column name on the left via data-label */
  .r360-table td[data-label]::before {
    content: attr(data-label);
    font-family: var(--f-mono);
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-3);
    text-align: left;
    flex: 0 0 auto;
    white-space: nowrap;
  }
  /* Cells with no data-label: value spans the row, left-aligned */
  .r360-table td:not([data-label]) {
    justify-content: flex-start;
    text-align: left;
  }
}

@media print {
  body {
    background: #fff;
  }

  .card, .statcard {
    box-shadow: none !important;
  }

  .help-chip, .toast {
    display: none !important;
  }
}

/* ── Shared user / role-pill styles (used by Settings + SettingsUsers) ── */
.set-avatar {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: #0a2540;
    color: #fff;
    font-size: 12.5px;
    font-weight: 700;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}
.set-username { font-weight: 700; font-size: 14.5px; color: #0e1726; }
.set-useremail {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 12px;
    /* Accessibility audit [A3]: was hardcoded #8b97a8 (2.96:1) instead of referencing the token --
       real content (actual user emails), needs 4.5:1. */
    color: var(--ink-4);
    margin-top: 1px;
}
.set-roleselect { padding: 5px 8px; }
.set-rolepill {
    border: none;
    cursor: pointer;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 11.5px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 999px;
    flex-shrink: 0;
}
.role-admin     { background: #fbdcd7; color: #c43521; }
.role-planner   { background: #d6efff; color: #036fa8; }
.role-manager   { background: #e9e3fb; color: #6b46c1; }
.role-tech      { background: #d8f1e3; color: #1f8a5b; }
.role-requester { background: #eaeef6; color: #2c3a4f; }

/* ── Shared settings form styles (Settings + SettingsUsers) ── */
.set-title {
    font-size: 34px;
    font-weight: 800;
    color: #0e1726;
    margin: 0 0 4px;
}

.set-card-sub {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 11px;
    /* Accessibility audit [A3]: same hardcoded ink-4 value as .set-useremail immediately above in
       this Settings section -- deepened for the same reason (real content, not decoration). */
    color: var(--ink-4);
    margin-top: 3px;
}

/* Buttons */
.set-btn {
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 13.5px;
    padding: 9px 15px;
    cursor: pointer;
    white-space: nowrap;
}

.set-btn--primary { background: #0599e1; color: #fff; }
.set-btn--primary:hover { background: #0479b4; }
.set-btn--ghost { background: #fff; color: #0e1726; border: 1px solid #dce2ed; }
.set-btn--ghost:hover { background: #f5f7fb; }

/* Inputs */
.set-inp {
    font-family: inherit;
    font-size: 14px;
    color: #0e1726;
    border: 1px solid #dce2ed;
    border-radius: 9px;
    padding: 8px 11px;
    outline: none;
    background: #fff;
}
.set-inp:focus { border-color: #0599e1; box-shadow: 0 0 0 3px rgba(5, 153, 225, 0.15); }

.set-invite {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
    padding: 14px;
    background: #f5f7fb;
    border-radius: 12px;
}

/* =============================================================================
   11. RECONNECTION UI (Task 26 — mobile field-tech resilience to dropped connection)
   Styles the #components-reconnect-modal div that blazor.web.js injects/toggles when the
   SignalR circuit to a Blazor Server page drops. Base state is hidden; blazor.web.js adds
   exactly one of these classes to the modal root as the circuit blips, retries, or gives up:
     .components-reconnect-show     — circuit lost, actively retrying (transient — the common case
                                       for a tech losing a beat of cell signal in a mechanical room)
     .components-reconnect-hide     — connected/reconnected — modal stays hidden
     .components-reconnect-failed   — retries exhausted, one more manual attempt is possible
     .components-reconnect-rejected — server rejected resume (e.g. app restarted) — hard reload needed
   Only one sub-message (.r360-reconnect-sub--*) is shown at a time via the state-scoped selectors
   below; the retry button is hidden unless we're in a failed/rejected state (in "show" state
   blazor.web.js is already retrying automatically, so a manual button would be redundant noise).
============================================================================= */
#components-reconnect-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
    background: rgba(10, 37, 64, 0.55); /* --brand-ink wash, dims the app behind the overlay */
    font-family: var(--f-body);
}

/* blazor.web.js toggles these on the root — only "show" and "failed"/"rejected" render anything. */
#components-reconnect-modal.components-reconnect-show,
#components-reconnect-modal.components-reconnect-failed,
#components-reconnect-modal.components-reconnect-rejected {
    display: flex;
}
#components-reconnect-modal.components-reconnect-hide {
    display: none;
}

.r360-reconnect-box {
    background: var(--paper);
    border-radius: var(--r-2xl);
    padding: 28px 24px;
    max-width: 320px;
    width: calc(100% - 48px);
    text-align: center;
    box-shadow: 0 20px 48px rgba(14, 23, 38, 0.28);
}

.r360-reconnect-spinner {
    width: 34px;
    height: 34px;
    margin: 0 auto 14px;
    border-radius: 50%;
    border: 3px solid var(--paper-3);
    border-top-color: var(--brand);
    animation: r360-spin 0.8s linear infinite;
}
/* Failed/rejected are terminal, non-retrying states — a static warning dot reads calmer than a
   spinner that implies "still working" when it isn't. */
.components-reconnect-failed .r360-reconnect-spinner,
.components-reconnect-rejected .r360-reconnect-spinner {
    animation: none;
    border-top-color: var(--warning);
}

@keyframes r360-spin {
    to { transform: rotate(360deg); }
}

.r360-reconnect-title { font-size: 16px; font-weight: 700; color: var(--ink); }

.r360-reconnect-sub {
    display: none; /* each sub-message only appears in its matching modal state, via the rules below */
    font-size: 13px;
    color: var(--ink-3);
    margin-top: 8px;
    line-height: 1.4;
}
.components-reconnect-show .r360-reconnect-sub--show,
.components-reconnect-failed .r360-reconnect-sub--failed,
.components-reconnect-rejected .r360-reconnect-sub--rejected {
    display: block;
}

/* NOTE: MudBlazor's own stylesheet ships a rule targeting this exact modal
   (#components-reconnect-modal button { color: var(--mud-palette-text-primary) }); a plain class
   selector loses that cascade fight (ID+element beats a single class), leaving white text
   invisible against the dark navy button. Prefixing with the modal's #id here matches that
   specificity and wins via source order (this stylesheet loads after MudBlazor's in App.razor). */
#components-reconnect-modal .r360-reconnect-retry {
    display: none; /* only meaningful once auto-retry has given up — overridden below per state */
    margin-top: 16px;
    background: var(--brand-ink);
    color: #fff;
    border: none;
    border-radius: var(--r-sm);
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    text-transform: none; /* override MudBlazor's default button uppercase transform */
    cursor: pointer;
}
/* Same #id-scoped specificity as the base rule above (an unscoped ".foo .bar" pair would lose to
   it and stay display:none forever) — shows the button only once auto-retry has given up. */
#components-reconnect-modal.components-reconnect-failed .r360-reconnect-retry,
#components-reconnect-modal.components-reconnect-rejected .r360-reconnect-retry {
    display: inline-block;
}
.set-invite .set-inp { flex: 1; min-width: 120px; }

/* --- Mobile drawer: close button + backdrop ------------------------------- */
.sidenav-close {
    display: none;
}

@media (max-width: 1200px) {
  /* Accessibility audit [A8]: 30x30 is below the 44x44 minimum touch target. */
  .sidenav-close {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
    border: none;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.82);
    cursor: pointer;
    padding: 0;
  }
}

.r360-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(11, 18, 32, 0.45);
    z-index: 45;
}
