/* ==========================================================================
   awcc-shared.css — fonts + structural base for all three AWCC dashboards
   Loaded once in App.razor. Every rule is scoped to .awcc-dash so nothing here
   can reach the rest of the public site.
   Fonts are resolved RELATIVE to this stylesheet (../fonts/), so the
   dashboards keep working when the site is hosted in an IIS virtual directory
   rather than at the domain root. On IIS register the MIME type
   .woff2 -> font/woff2, or they return 404.
   ========================================================================== */

/* --- LEDGER theme faces (Adjudication + Certificate dashboards) --- */
@font-face{font-family:"Source Serif 4";src:url("../fonts/SourceSerif4-600.woff2") format("woff2");font-weight:600;font-style:normal;font-display:swap}
@font-face{font-family:"Source Serif 4";src:url("../fonts/SourceSerif4-700.woff2") format("woff2");font-weight:700;font-style:normal;font-display:swap}
@font-face{font-family:"Public Sans";src:url("../fonts/PublicSans-400.woff2") format("woff2");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"Public Sans";src:url("../fonts/PublicSans-600.woff2") format("woff2");font-weight:600;font-style:normal;font-display:swap}

/* --- DOCKET theme faces (Claims Intelligence) --- */
@font-face{font-family:"Libre Franklin";src:url("../fonts/LibreFranklin-600.woff2") format("woff2");font-weight:600;font-style:normal;font-display:swap}
@font-face{font-family:"Libre Franklin";src:url("../fonts/LibreFranklin-700.woff2") format("woff2");font-weight:700;font-style:normal;font-display:swap}
@font-face{font-family:"IBM Plex Sans";src:url("../fonts/IBMPlexSans-400.woff2") format("woff2");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"IBM Plex Sans";src:url("../fonts/IBMPlexSans-600.woff2") format("woff2");font-weight:600;font-style:normal;font-display:swap}
@font-face{font-family:"Nunito Sans";src:url("../fonts/NunitoSans-300.woff2") format("woff2");font-weight:300;font-style:normal;font-display:swap}

/* --- structural base (was styles/tokens.css) --- */.awcc-dash, .awcc-dash *, .awcc-dash::before, .awcc-dash *::before, .awcc-dash::after, .awcc-dash *::after { box-sizing: border-box; }
.awcc-dash { -webkit-text-size-adjust: 100%; }
.awcc-dash { margin: 0; line-height: 1.5; }.awcc-dash img, .awcc-dash svg, .awcc-dash canvas { max-width: 100%; display: block; }.awcc-dash h1, .awcc-dash h2, .awcc-dash h3, .awcc-dash h4, .awcc-dash p, .awcc-dash figure { margin: 0 0 0.5em; }

.awcc-dash {
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-5: 20px; --space-6: 24px; --space-7: 32px; --space-8: 40px;
  --text-xs: 0.72rem; --text-sm: 0.85rem; --text-base: 1rem;
  --text-lg: 1.2rem; --text-xl: 1.5rem; --text-2xl: 1.9rem;
}.awcc-dash :focus-visible, .awcc-dash:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

.awcc-dash table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
.awcc-dash th { text-align: left; }.awcc-dash th.num, .awcc-dash td.num { text-align: right; }
.awcc-dash .table-scroll { overflow: auto; }

.awcc-dash .visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

@media print {.awcc-dash nav, .awcc-dash button, .awcc-dash .btn, .awcc-dash .toolbar, .awcc-dash .no-print { display: none !important; }
  .awcc-dash { background: #fff !important; color: #000 !important; }
  .awcc-dash .table-scroll { overflow: visible; max-height: none; }.awcc-dash tr, .awcc-dash .card { break-inside: avoid; }
  @page{ margin: 16mm; }
}

@media (prefers-reduced-motion: reduce) {.awcc-dash, .awcc-dash *, .awcc-dash::before, .awcc-dash *::before, .awcc-dash::after, .awcc-dash *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   Chart tooltip. Appended to document.body by awcc-dashboards.js, so it lives
   OUTSIDE .awcc-dash and cannot inherit the theme scope. It therefore carries
   its own values rather than reading --surface / --text.
   ========================================================================== */
.awcc-chart-tip {
  position: fixed; z-index: 9999; pointer-events: none;
  display: flex; flex-direction: column; gap: 1px;
  padding: 7px 10px; border-radius: 4px;
  background: #1b1f26; color: #f4f6f8;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
  font: 400 0.8rem/1.35 -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  max-width: 260px;
}
.awcc-chart-tip[hidden] { display: none !important; }
.awcc-chart-tip .ct-n {
  font-weight: 700; font-size: 1.05rem;
  font-variant-numeric: tabular-nums; letter-spacing: -0.01em;
}
.awcc-chart-tip .ct-l { opacity: 0.82; }
.awcc-chart-tip .ct-note { margin-top: 2px; opacity: 0.7; font-style: italic; font-size: 0.74rem; }

@media print { .awcc-chart-tip { display: none !important; } }
