/* ===========================================================================
   OnSite reports — design tokens
   ---------------------------------------------------------------------------
   Copied from OnSiteReports wwwroot/css/tokens.css for YardMGR.
   Framework-agnostic. Drop into a Blazor app (wwwroot/css) and reference the
   custom properties from component-scoped .razor.css files.

   The prototype renders these same values through Tailwind utilities; this
   file is the canonical source so nobody has to reverse-engineer class names.
   =========================================================================== */

:root {
  /* Colour tokens (--os-page, --os-surface, --os-ink, --os-primary, ...,
     --os-shadow-menu, --os-shadow-modal, --os-scrim) are theme-managed:
     MainLayout.razor emits them from AppTheme.cs / ThemeState.cs so they
     follow light/dark mode. Only theme-independent tokens live here. */

  /* --- Radii ------------------------------------------------------------- */
  --os-radius-card:     12px;
  --os-radius-modal:    16px;
  --os-radius-menu:     10px;
  --os-radius-control:  8px;
  --os-radius-pill:     20px;
  --os-radius-check:    3px;

  /* --- Layout ------------------------------------------------------------ */
  --os-content-width:   1024px;   /* fixed; iPad Pro 12.9 portrait */
  --os-page-padding:    32px;
  --os-card-padding:    22px;     /* 20–24 depending on density */
  --os-card-gap:        12px;     /* vertical gap between stacked cards */
  --os-touch-target:    48px;     /* minimum interactive height */

  /* --- Table ------------------------------------------------------------- */
  --os-row-padding-y:   12px;
  --os-col-gutter:      16px;
}

/* ===========================================================================
   Type scale — Material 3 roles
   Every number in the UI uses tabular figures.
   =========================================================================== */

/* YardMGR: scoped to .reports-app (source targeted body) so the host page is untouched. */
.reports-app {
  font-family: Roboto, system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
  color: var(--os-ink);
}

.reports-app table, .reports-app input, .reports-app select, .os-tnum { font-variant-numeric: tabular-nums; }

.os-page-title    { font-size: 20px; font-weight: 400; line-height: 28px; }
.os-modal-title   { font-size: 18px; font-weight: 500; line-height: 24px; }
.os-section-title { font-size: 15px; font-weight: 500; line-height: 20px; }  /* section heading, card title */
.os-cell          { font-size: 14px; font-weight: 400; line-height: 20px; }  /* table cell, input value */
.os-label         { font-size: 13px; font-weight: 500; line-height: 18px; }  /* column header, widget label, button */
.os-support       { font-size: 13px; font-weight: 400; line-height: 18px; }  /* supporting line, field label */

/* Big metric on the landing widgets: value 30px, trailing "of 5" 20px muted. */
.os-metric        { font-size: 30px; font-weight: 400; line-height: 1; }
.os-metric-tail   { font-size: 20px; font-weight: 400; color: var(--os-muted); margin-left: 6px; }

/* ===========================================================================
   Status pills
   Rounded 20px, 3px × 11px padding, 13px text.
   =========================================================================== */

.os-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 11px;
  border-radius: var(--os-radius-pill);
  font-size: 13px;
  font-weight: 400;
  white-space: nowrap;
}

/* Pink — maintenance */
.os-pill--maintenance { background: #FBE4EE; color: #8C1D46; }

/* Blue — in service, parking, electric */
.os-pill--in-service,
.os-pill--parking,
.os-pill--electric    { background: #E3EDFB; color: #14487F; }

/* Green — charging, cleared */
.os-pill--charging,
.os-pill--cleared     { background: #DCF1E6; color: #116B44; }

/* Amber — wash */
.os-pill--wash        { background: #FBEFD6; color: #7A5300; }

/* Red — fueling, on hold, blocking "not assigned" */
.os-pill--fueling,
.os-pill--on-hold,
.os-pill--blocked     { background: #FBE2E0; color: #B3261E; }

/* Grey — none, not assigned, not washed, not vaulted */
.os-pill--none        { background: #EDEFF1; color: #5F6771; }

/* ===========================================================================
   Variance colouring
   Positive is EARLY, negative is LATE. Do not invert.
   =========================================================================== */

.os-var--early   { color: var(--os-success); font-weight: 500; }
.os-var--late    { color: var(--os-error);   font-weight: 500; }
.os-var--on-time { color: var(--os-secondary); font-weight: 500; }
