/* AB#11903. LA County's meeting summary modules (embed types 130 to 137).
 *
 * They draw inside the speaker report's .spr shell and reuse its block, stat, panel and chip
 * rules from SpeakerParticipationReport.css, whose --spr-* tokens this file reads. Only what
 * those rules do not have lives here: fact rows, the timeline, sums shown as sums, and tables.
 */

/* -- the most-comment line is information, so the notice takes the blue edge -- */

.spr-summary-callout {
  border-left-color: var(--pi-blue);
  color: var(--spr-ink);
}

.spr-panel-row.spr-summary-total-row {
  border-top: 1px solid var(--spr-line);
  padding-top: 6px;
  font-weight: 700;
}

/* -- label and value rows -- */

.spr-summary-facts {
  margin: 0;
  border-top: 1px solid var(--spr-line);
}

.spr-summary-facts > div {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) 2.4fr;
  gap: 12px;
  padding: 9px 4px;
  border-bottom: 1px solid var(--spr-line);
  font-size: 0.86rem;
}

.spr-summary-facts dt {
  color: var(--spr-soft);
  font-weight: 400;
}

.spr-summary-facts dd {
  margin: 0;
  font-weight: 600;
  min-width: 0;
  overflow-wrap: anywhere;
}

/* -- meeting information: facts beside the timeline -- */

.spr-summary-info-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 30px;
  align-items: start;
}

.spr-summary-timeline {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.spr-summary-timeline-ends {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  font: 600 0.8rem/1.3 var(--spr-display);
  color: var(--spr-mid);
}

/* The hour labels sit over the tracks, which take the right-hand column of each row. */
.spr-summary-hour-axis {
  position: relative;
  height: 14px;
  margin-left: calc(42% + 12px);
  border-bottom: 1px solid var(--spr-line);
  font: 600 10.5px/1 var(--spr-display);
  color: var(--spr-mid);
}

.spr-summary-hour-tick {
  position: absolute;
  left: var(--spr-at, 0%);
  transform: translateX(-50%);
  white-space: nowrap;
}

.spr-summary-parts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.spr-summary-part {
  display: grid;
  grid-template-columns: 42% minmax(0, 1fr);
  grid-template-areas:
    "label track"
    "counts when";
  column-gap: 12px;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid var(--spr-line);
}

.spr-summary-part-label {
  grid-area: label;
  font: 600 0.8rem/1.3 var(--spr-display);
  color: var(--spr-ink);
}

.spr-summary-part-counts {
  grid-area: counts;
  font-size: 10.5px;
  color: var(--spr-mid);
}

.spr-summary-part-when {
  grid-area: when;
  font-size: 10.5px;
  color: var(--spr-mid);
}

.spr-summary-part-track {
  grid-area: track;
  position: relative;
  height: 10px;
  border-radius: 3px;
  background: var(--spr-canvas);
}

.spr-summary-part-bar {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--spr-at, 0%);
  width: max(var(--spr-fill, 0%), 3px);
  border-radius: 3px;
  background: var(--pi-blue);
}

.spr-summary-part-consent {
  background: var(--pi-blue-edge);
}

.spr-summary-part-closed {
  background: var(--spr-hairline);
}

/* -- sums -- */

.spr-summary-equations {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}

.spr-summary-equation {
  border: 1px solid var(--spr-line);
  border-radius: 8px;
  padding: 14px 16px;
}

.spr-summary-equation .spr-sub {
  margin: 10px 0 0;
}

.spr-summary-terms {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.spr-summary-term-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.spr-summary-op {
  font: 600 20px/1 var(--spr-display);
  color: var(--spr-soft);
  width: 14px;
  text-align: center;
}

.spr-summary-term {
  min-width: 140px;
  padding: 10px 14px;
  border: 1px solid var(--spr-line);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.spr-summary-term-total {
  background: var(--pi-blue-light);
  border-color: var(--pi-blue-edge);
  color: var(--pi-blue-ink);
}

.spr-summary-term-v {
  font: 700 28px/1.1 var(--spr-display);
  font-variant-numeric: tabular-nums;
}

.spr-summary-term-k {
  font-size: 0.82rem;
  color: var(--spr-mid);
}

.spr-summary-term-total .spr-summary-term-k {
  color: var(--pi-blue-ink);
}

/* -- language tones on the panel bars: English, Spanish, then the phone teal for any other -- */

.spr-panel-bar.spr-summary-tone-en::after {
  background: var(--pi-blue);
}

.spr-panel-bar.spr-summary-tone-es::after {
  background: var(--pi-orange);
}

.spr-panel-bar.spr-summary-tone-other::after {
  background: var(--spr-phone);
}

/* -- tables -- */

.spr-summary-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
  font-variant-numeric: tabular-nums;
}

.spr-summary-table th,
.spr-summary-table td {
  text-align: left;
  padding: 7px 6px;
  border-bottom: 1px solid var(--spr-line-2);
  vertical-align: top;
}

.spr-summary-table thead th {
  font: 600 10.5px/1.3 var(--spr-display);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--spr-soft);
  border-bottom: 1px solid var(--spr-line);
  vertical-align: bottom;
}

.spr-summary-table tbody th {
  font-weight: 500;
}

.spr-summary-table .spr-summary-num {
  text-align: right;
  white-space: nowrap;
}

.spr-summary-table .spr-summary-subtotal th,
.spr-summary-table .spr-summary-subtotal td {
  border-top: 1px solid var(--spr-line);
}

.spr-summary-table .spr-summary-subtotal td,
.spr-summary-table .spr-summary-total td {
  font-weight: 700;
}

.spr-summary-table .spr-summary-total th,
.spr-summary-table .spr-summary-total td {
  background: var(--spr-bg-2);
  border-top: 2px solid var(--spr-ink);
}

.spr-summary-notes {
  margin: 12px 0 0;
  padding-left: 18px;
  font-size: 0.8rem;
  color: var(--spr-soft);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

/* -- public comment time -- */

.spr-summary-totals {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 30px;
  margin: 4px 0 8px;
}

.spr-summary-totals > div {
  display: flex;
  flex-direction: column;
}

.spr-summary-totals dt {
  font: 600 10.5px/1.3 var(--spr-display);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--spr-mid);
}

.spr-summary-totals dd {
  margin: 0;
  font: 700 19px/1.3 var(--spr-display);
  font-variant-numeric: tabular-nums;
}

.spr-summary-item-no {
  font-weight: 700;
  color: var(--pi-blue-ink);
  margin-right: 4px;
}

.spr-summary-bars th[scope="row"] {
  width: 55%;
}

.spr-summary-bar-head {
  width: 30%;
}

.spr-summary-table .spr-summary-bar-cell {
  vertical-align: middle;
}

.spr-summary-bar {
  display: block;
}

.spr-summary-flag {
  margin-left: 8px;
  vertical-align: middle;
}

.spr-summary-shared-timer {
  margin-top: 10px;
}

/* -- caller counts: the chart, its readout, and the table that repeats every value -- */

.spr-summary-chart-wrap {
  position: relative;
}

.spr-summary-chart {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 8px;
}

.spr-summary-chart:focus-visible {
  outline: 2px solid var(--pi-blue);
  outline-offset: 2px;
}

.spr-summary-axis {
  fill: var(--spr-soft);
  font-size: 11px;
  font-family: var(--spr-body);
}

.spr-summary-crosshair {
  stroke: var(--spr-mid);
  stroke-width: 1;
  stroke-dasharray: 3 3;
}

.spr-summary-line {
  stroke-width: 2;
  stroke-linejoin: round;
}

.spr-summary-line circle {
  stroke: var(--spr-bg);
  stroke-width: 2;
}

.spr-summary-line-english {
  stroke: var(--pi-blue);
  fill: var(--pi-blue);
}

.spr-summary-line-spanish {
  stroke: var(--pi-orange-ink);
  fill: var(--pi-orange-ink);
}

.spr-summary-line-other {
  stroke: var(--spr-phone);
  fill: var(--spr-phone);
}

.spr-legend-swatch.spr-summary-swatch-english {
  background: var(--pi-blue);
}

.spr-legend-swatch.spr-summary-swatch-spanish {
  background: var(--pi-orange-ink);
}

.spr-legend-swatch.spr-summary-swatch-other {
  background: var(--spr-phone);
}

/* Every "other" language shares a color, so each one gets its own dash on the line and legend. */
.spr-summary-dash-1 polyline,
.spr-summary-dash-1 .spr-summary-swatch-stroke {
  stroke-dasharray: 8 4;
}

.spr-summary-dash-2 polyline,
.spr-summary-dash-2 .spr-summary-swatch-stroke {
  stroke-dasharray: 2 3;
}

.spr-summary-dash-3 polyline,
.spr-summary-dash-3 .spr-summary-swatch-stroke {
  stroke-dasharray: 10 3 2 3;
}

.spr-summary-dash-4 polyline,
.spr-summary-dash-4 .spr-summary-swatch-stroke {
  stroke-dasharray: 14 4;
}

.spr-summary-dash-5 polyline,
.spr-summary-dash-5 .spr-summary-swatch-stroke {
  stroke-dasharray: 3 6;
}

.spr-summary-dash-6 polyline,
.spr-summary-dash-6 .spr-summary-swatch-stroke {
  stroke-dasharray: 10 3 2 3 2 3;
}

.spr-summary-swatch-line {
  width: 28px;
  height: 10px;
  flex: none;
}

.spr-summary-chart-wrap .spr-summary-chart-hint {
  margin: 4px 0 0;
}

/* Stays in the page while empty, so a screen reader hears its first update. */
.spr-summary-readout {
  position: absolute;
  top: 8px;
  left: var(--spr-readout-at, 0);
  display: grid;
  gap: 2px;
  padding: 6px 10px;
  background: var(--spr-bg);
  border: 1px solid var(--spr-line);
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  pointer-events: none;
}

.spr-summary-readout:empty {
  padding: 0;
  border: 0;
  box-shadow: none;
}

.spr-summary-readout-end {
  left: auto;
  right: var(--spr-readout-at, 0);
}

.spr-summary-scroll {
  overflow-x: auto;
  margin-top: 12px;
}

.spr-summary-table-wide th,
.spr-summary-table-wide td {
  white-space: nowrap;
}

@media print {
  .spr-summary-scroll {
    overflow: visible;
  }

  .spr-summary-readout,
  .spr-summary-chart-hint {
    display: none;
  }
}

@media (max-width: 760px) {
  .spr-summary-info-grid {
    grid-template-columns: 1fr;
  }
}

/* -- board summary. Measures down the side, meetings across the top. -- */

.spr-summary-trends {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: 12px;
  margin-bottom: 8px;
}

.spr-summary-trend {
  border: 1px solid var(--spr-line);
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.spr-summary-trend-k {
  font: 600 10.5px/1.3 var(--spr-display);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--spr-soft);
}

.spr-summary-trend-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
}

.spr-summary-trend-v {
  font: 700 28px/1.15 var(--spr-display);
  font-variant-numeric: tabular-nums;
}

.spr-summary-trend-delta {
  font-size: 13px;
  font-weight: 600;
  color: var(--spr-mid);
}

.spr-summary-spark {
  width: 120px;
  height: 28px;
  margin: 4px 0;
}

.spr-summary-spark polyline {
  fill: none;
  stroke: var(--pi-blue);
  stroke-width: 2;
  stroke-linejoin: round;
}

.spr-summary-spark circle {
  fill: var(--pi-blue-d);
}

.spr-summary-board th,
.spr-summary-board td {
  padding-left: 12px;
  padding-right: 12px;
  font-size: 0.86rem;
}

.spr-summary-board .spr-summary-group-row th {
  text-align: left;
  font: 700 11px/1.3 var(--spr-display);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--pi-blue-ink);
  border-bottom: 2px solid var(--pi-blue);
  padding-top: 18px;
}

.spr-summary-board .spr-summary-sub-row th {
  padding-left: 24px;
  font-weight: 400;
  color: var(--spr-mid);
}

.spr-summary-board .spr-summary-current {
  background: var(--spr-bg-2);
  font-weight: 700;
}

.spr-summary-col-date {
  display: block;
  font: 700 13px/1.3 var(--spr-display);
  letter-spacing: 0;
  color: var(--spr-ink);
  text-transform: none;
}

.spr-summary-col-type {
  display: block;
  font: 400 12px/1.3 var(--spr-body);
  letter-spacing: 0;
  color: var(--spr-soft);
  text-transform: none;
}

.spr-summary-col-flag {
  display: inline-block;
  margin-top: 4px;
  text-transform: none;
  letter-spacing: 0;
}

/* -- data checks -- */

.spr-summary-check-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.spr-summary-check-ok { --spr-status: var(--spr-ok); }
.spr-summary-check-warn { --spr-status: var(--spr-warn); }
.spr-summary-check-none { --spr-status: var(--spr-neutral); }

.spr-summary-lead {
  margin: 4px 0;
  color: var(--spr-ink);
}

.spr-summary-reasons dd {
  font-weight: 400;
}

/* -- loading. Each module holds about the height it draws at, so the speaker report below it does
 * not jump when the data lands. Measured at the wide layout on a seeded meeting and on a QA meeting
 * with callers: information, agenda and participants drew the same height on both, and executive
 * (219 to 249) and comment time (153 to 269) are held at the middle of what they drew. Caller counts is
 * held at a chart and a table of two to four languages (681 to 788): a meeting with no caller draws
 * one sentence instead and closes upward, the smaller cost of the two on a meeting nobody dialed into.
 * Board summary drew 747 on a seeded meeting and a meeting with callers, and 785 on a board with three
 * meetings. Data checks drew 902 on the seeded meeting with callers at the S15 gate (865 when first
 * measured), and 782 on a meeting with no sign-ups. Each is held at the seeded meeting's height, so another
 * meeting moves the page 38 down or 120 up at most. -- */

.spr-skeleton-executive,
.spr-skeleton-information,
.spr-skeleton-agenda,
.spr-skeleton-participants,
.spr-skeleton-commentTime,
.spr-skeleton-observations,
.spr-skeleton-board,
.spr-skeleton-checks {
  box-sizing: border-box;
}

.spr-skeleton-executive { min-height: 234px; }
.spr-skeleton-information { min-height: 369px; }
.spr-skeleton-agenda { min-height: 237px; }
.spr-skeleton-participants { min-height: 825px; }
.spr-skeleton-commentTime { min-height: 211px; }
.spr-skeleton-observations { min-height: 740px; }
.spr-skeleton-board { min-height: 747px; }
.spr-skeleton-checks { min-height: 902px; }
