/* The three executive dashboards. The palette is scoped to .dash so the workbench screens keep theirs.
   Text on white needs 4.5:1: primary, deep, indigo and red pass as text. Cyan and teal are fills, borders and dots
   only, and the words beside them are ink. */
.dash {
  --d-primary: #186CB7; --d-deep: #183BB8; --d-cyan: #18A0B8; --d-teal: #18B89B; --d-indigo: #2818B8; --d-red: #B8070E;
  --accent: var(--d-primary); --accent-dark: var(--d-deep); --risk: var(--d-red);
  max-width: 1320px; width: 100%; margin: 0 auto;
}
.dash a, .dash .dash-link { color: var(--d-primary); }
.dash-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; }
.dash-head p { margin: 4px 0 0; }
.dash-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--d-deep); }
.dash-period { display: flex; flex-wrap: wrap; gap: 8px; }

.dash-panel { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px 16px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.dash-panel-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.dash-panel h2 { margin: 0; font-size: 16px; font-weight: 600; color: var(--d-deep); }
.dash-panel .empty { padding: 16px 8px; }

.dash-calm { margin: 0; padding: 4px 0; color: var(--muted); }
.dash-attn { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.dash-attn-row { border: 1px solid var(--d-red); border-radius: 8px; padding: 10px 14px; background: #fff; display: flex; flex-direction: column; gap: 4px; }
.dash-attn-row p { margin: 0; color: var(--muted); }
.dash-attn-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.dash-attn-meta { display: flex; flex-wrap: wrap; gap: 2px 16px; font-size: 13px; }

.dash-owner { display: inline-flex; align-items: center; height: 22px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.owner-practice { background: var(--d-indigo); color: #fff; }
.owner-kinetik { background: var(--d-deep); color: #fff; }
.owner-payer { background: var(--d-cyan); color: var(--ink); }

.dash-mark { display: inline-block; width: 10px; height: 10px; flex: none; margin-right: 6px; border: 1.5px solid var(--ink); background: #fff; vertical-align: baseline; }
.mark-on_target { background: var(--d-teal); border-radius: 50%; }
.mark-off_target { background: var(--d-red); border-color: var(--d-red); transform: rotate(45deg) scale(.85); }
.mark-watch { background: #fff; border-radius: 2px; }
.mark-no_target, .mark-no_data { border-color: var(--faint); border-radius: 50%; }

.dash-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 12px; }
.dash-tile { border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.dash-tile h3 { margin: 0; font-size: 13px; font-weight: 600; color: var(--muted); }
.dash-tile-value { font-size: 28px; font-weight: 600; line-height: 1.15; }
.dash-tile-value.is-off { color: var(--d-red); }
.dash-tile-value.is-none { font-size: 18px; color: var(--muted); font-weight: 500; padding: 5px 0; }
.dash-tile-line { font-size: 13px; }
.dash-tile-target { display: flex; align-items: baseline; }
.dash-tile-def { margin: 8px 0 0; padding-top: 8px; border-top: 1px solid var(--line-soft); font-size: 12px; color: var(--muted); }

.dash-scroll { overflow-x: auto; max-width: 100%; }
.dash-scroll table { min-width: 560px; font-size: 13px; }
.dash-scroll td, .dash-scroll th { padding: 8px 10px; }
.dash-scroll td { vertical-align: middle; }
.dash-scroll .dash-rowhead { min-width: 140px; font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--ink); white-space: normal; border-bottom: 1px solid var(--line-soft); }
.dash-scroll th.num { text-align: right; }
.dash-scroll .num .sub { font-family: var(--sans); }
.dash-off { color: var(--d-red); font-weight: 700; white-space: nowrap; }
.dash-over { display: inline-flex; align-items: baseline; color: var(--d-red); font-weight: 700; white-space: nowrap; }
.dash-status { display: inline-flex; align-items: baseline; white-space: nowrap; font-weight: 600; }
.status-off_target, .turnaround-will_miss { color: var(--d-red); }
.dash-link { background: none; border: 0; padding: 0 2px; min-height: 36px; display: inline-flex; align-items: center; font: inherit; font-weight: 600; text-align: left; text-decoration: underline; cursor: pointer; }
.dash-link:hover { color: var(--d-deep); }

.dash-share { display: flex; align-items: center; gap: 8px; }
.dash-bar { display: block; height: 8px; width: 90px; border-radius: 4px; background: var(--line-soft); overflow: hidden; flex: none; }
.dash-bar > span { display: block; height: 100%; background: var(--d-primary); }
.dash-share .num { min-width: 52px; }

.dash-chart { display: flex; flex-direction: column; gap: 10px; }
.dash-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 13px; }
.dash-swatch { display: inline-block; width: 12px; height: 12px; margin-right: 6px; border: 1px solid var(--ink); border-radius: 2px; vertical-align: -1px; }
.series-1 { background: var(--d-primary); }
.series-2 { background: var(--d-cyan); }
.dash table.sr-only { display: block; }
.dash-columns { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 4px; }
.dash-month { flex: 1 1 96px; min-width: 96px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.dash-pair { height: 180px; width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 6px; border-bottom: 1px solid var(--line); }
.dash-col { display: block; width: 28px; border-radius: 3px 3px 0 0; }
.dash-month-label { font-size: 12px; font-weight: 600; }
.dash-month-figures { display: flex; flex-direction: column; align-items: center; font: 12px var(--mono); color: var(--muted); }

.dash-stages { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.dash-stage { flex: 1 1 190px; border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.dash-stage.is-over { border-color: var(--d-red); }
.dash-stage h3 { margin: 0; font-size: 14px; font-weight: 600; }
.dash-stage-count { font-size: 24px; font-weight: 600; line-height: 1.2; }

@media (max-width: 640px) {
  .dash-pair { height: 140px; }
}
