/* The Overview as a dashboard (js/views/dashboard.js and js/views/dash-traffic.js), loaded after
   contrast.css so its sizes win there and nowhere else.

   Type is a step smaller than on the other screens, so a phone shows more and still reads easily:
   12 px for labels, units and notes, 13 px for secondary lines, 14 px for running text and names,
   15 to 16 px for panel titles, 20 to 22 px for the figures on the tiles, weight 600 rather than
   700. Controls stay at least 44 px tall, and a select stays 16 px on a phone so iOS does not
   zoom into it.

   The page: the short side first (.ov-side: Right now, Needs attention), then the dashboard
   (.ov-main: Traffic with what is shown, the tiles and the charts; Customers; Live by switch;
   Trunk groups; Vendors and trunk groups).
     Phone: one column, the short side on top.
     From 720 px: Right now beside Needs attention, above the dashboard; the tiles four to a row
     and the charts two to a row (calls per minute across both).
     From 1200 px: the dashboard is the main column and the short side a column on its right, 300
     to 340 px, that stays in view under the top bar while the page scrolls, or scrolls on its
     own when it is taller than the window. */

/* ------------------------------------------------------------------ the page */
.ov-grid, .ov-side, .ov-main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-items: start; }
.ov-side, .ov-main { min-width: 0; align-content: start; }
.ov-side { gap: 8px; }
.ov-side > .panel + .panel, .ov-main > .panel + .panel { margin-top: 0; }
@media (min-width: 720px) {
  .ov-grid, .ov-main { gap: 20px; }
  .ov-side { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 16px; }
}
@media (min-width: 1200px) {
  .ov-grid { grid-template-columns: minmax(0, 1fr) clamp(300px, 22vw, 340px); grid-template-areas: "main side"; }
  .ov-main { grid-area: main; }
  .ov-side {
    position: sticky;
    top: calc(var(--ov-top, 72px) + 16px);
    grid-area: side;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    max-height: calc(100vh - var(--ov-top, 72px) - 32px);
    max-height: calc(100dvh - var(--ov-top, 72px) - 32px);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
  }
}

/* ------------------------------------------------------------------ the compact type */
.ov-grid .panel { padding: 12px; }
@media (min-width: 720px) { .ov-grid .panel { padding: 16px; } }
.ov-grid .panel-head { margin-bottom: 10px; }
.ov-grid .panel-head h2 { font-size: 15px; font-weight: 600; line-height: 1.3; }
@media (min-width: 720px) { .ov-grid .panel-head h2 { font-size: 16px; } }
.ov-grid .panel-sub { margin-top: 2px; font-size: 13px; line-height: 1.4; }
.ov-grid p, .ov-grid li { font-size: 14px; line-height: 1.45; }
.ov-grid .table thead th { font-size: 12px; font-weight: 600; }
.ov-grid .badge { font-size: 12px; }

/* ------------------------------------------------------------------ the short side */
/* Right now and Needs attention, small: titles at 14 px, labels at 12 px, words at 13 to 14 px. */
.ov-side .panel { padding: 8px 12px; }
@media (min-width: 720px) { .ov-side .panel { padding: 12px 14px; } }
.ov-side .panel-head h2, .ov-grid .now-title { margin: 0; font-size: 14px; font-weight: 600; line-height: 1.3; }

/* Right now: three short lines, each a link to the screen with more: a lamp, the word in its tone
   and a few words. Quiet while all is well; a warning or a problem is tinted. The title line
   names the clock the times are on, or holds the UK and India switch where there is no menu. */
.now-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px 12px; margin: 0 0 4px; }
.ov-grid .now-times { margin: 0; color: var(--slate); font-size: 12px; line-height: 1.3; }
.now-switch { display: none; }
@media (max-width: 959px) {
  .now-head.has-switch .now-times { display: none; }
  .now-head.has-switch .now-switch { display: grid; }
}
/* One grid for the three lines (each line a subgrid of it), so the words line up after the
   longest label, whatever the font; without subgrid, a label column wide enough for them. */
.now-list { display: grid; grid-template-columns: 14px max-content minmax(0, 1fr) 6px; column-gap: 8px; margin: 0; padding: 0; list-style: none; }
.now-list > li { display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; }
.now-row {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: 14px 84px minmax(0, 1fr) 6px;
  grid-template-columns: subgrid;
  align-items: center;
  min-height: 30px;
  padding: 4px 6px 4px 4px;
  border-radius: 4px;
  color: var(--ink);
  text-decoration: none;
}
.now-row:hover { background: var(--hover); color: var(--ink); text-decoration: none; }
.now-row:hover .now-text { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
.now-row:focus-visible { outline-offset: -2px; }
.now-row.warn { background: var(--warn-fill, var(--warn-pale)); }
.now-row.bad { background: var(--bad-fill-pale, var(--bad-pale)); }
.now-row .lamp { width: 13px; height: 13px; }
.ov-grid .now-label { color: var(--slate); font-size: 12px; font-weight: 600; line-height: 1.3; white-space: nowrap; }
.now-row.ok .now-label { color: var(--ok); }
.now-row.warn .now-label { color: var(--warn-text); }
.now-row.bad .now-label { color: var(--bad); }
.ov-grid .now-text { min-width: 0; font-size: 14px; font-weight: 500; line-height: 1.35; }
.now-go { width: 6px; height: 6px; border-top: 1.5px solid var(--slate); border-right: 1.5px solid var(--slate); transform: rotate(45deg); }

/* Needs attention: one small item per problem, a line between them: its mark, who (a link) and
   when, what is wrong, then its fix, Stop reminders and What to do. These are words that are
   buttons, each a 44 px target that does not make its line taller: the target reaches down
   into the space under it, never up over the words of the problem. From 1200 px with a mouse
   they are 32 px tall, the fix and Stop reminders small buttons. See all on Alerts sits beside
   the title. */
.ov-attention .panel-head { align-items: center; gap: 2px 6px; margin-bottom: 2px; }
.ov-attention .panel-head h2 { gap: 6px; }
.ov-attention .panel-titles { flex: 0 1 auto; }
.ov-attention .panel-head .count { min-width: 18px; height: 18px; padding: 0 5px; font-size: 11px; }
.ov-attn-all { display: inline-flex; align-items: center; min-height: var(--tap); margin: -12px 0; font-size: 13px; font-weight: 700; text-decoration: none; }
.ov-attn-all:hover { text-decoration: underline; }
.ov-attn-list { border-top: 0; }
.ov-attn { display: grid; grid-template-columns: 16px minmax(0, 1fr); column-gap: 8px; padding: 6px 0; }
@media (min-width: 720px) { .ov-attn { padding: 8px 0; } }
.ov-attn + .ov-attn { border-top: 1px solid var(--rule); }
.ov-attn-mark { display: inline-flex; padding-top: 2px; color: var(--slate); }
.ov-attn.bad .ov-attn-mark { color: var(--bad); }
.ov-attn.warn .ov-attn-mark { color: var(--warn-text); }
.ov-attn-body { min-width: 0; }
.ov-grid .ov-attn-name { margin: 0; font-size: 14px; font-weight: 600; line-height: 1.35; }
.ov-attn-name a { color: var(--ink); text-decoration: none; }
.ov-attn-name a:hover { color: var(--accent); text-decoration: underline; }
.ov-attn.off .ov-attn-name, .ov-attn.off .ov-attn-name a { color: var(--slate); }
.ov-attn-when { margin-left: 4px; color: var(--slate); font-size: 12px; font-weight: 400; white-space: nowrap; }
.ov-grid .ov-attn-what { margin: 0; font-size: 13px; line-height: 1.4; }
.ov-attn-acts { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 4px 16px; margin-top: 2px; }
.ov-attn-acts .badge { font-size: 12px; line-height: 18px; }
.ov-act {
  display: inline-flex;
  align-items: flex-start;
  min-height: var(--tap);
  margin: -4px 0 -20px;
  padding: 4px 0 0;
  border: 0;
  background: none;
  color: var(--accent);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.ov-act:hover { color: var(--accent-hover); text-decoration: underline; text-underline-offset: 0.18em; }
.ov-act:disabled { color: var(--slate); text-decoration: none; cursor: not-allowed; }
.ov-todo-btn { margin-left: auto; }
/* Its words and a chevron that turns when it is open, on the line of the words. */
.ov-todo-in { display: inline-flex; align-items: center; gap: 6px; }
.ov-todo-in::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
}
.ov-todo-btn[aria-expanded="true"] .ov-todo-in::after { margin-top: 3px; transform: rotate(225deg); }
.ov-grid .ov-attn-todo { margin: 6px 0 2px; padding: 6px 8px; border-radius: 4px; background: var(--mist); font-size: 13px; line-height: 1.45; }
.ov-attn-result .cmd-line { margin-top: 4px; font-size: 12px; }
.ov-grid .ov-attn-foot { margin: 4px 0 0; }
.ov-attn-off { display: inline-flex; align-items: center; min-height: var(--tap); margin: -12px 0; font-size: 13px; font-weight: 700; }
.ov-grid .ov-attn-none { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0; color: var(--slate); font-size: 13px; }
.ov-attn-none .ov-attn-off { margin-left: auto; }
@media (min-width: 1200px) and (pointer: fine) {
  .ov-attn-acts { align-items: center; gap: 6px 8px; margin-top: 6px; }
  .ov-act { align-items: center; min-height: 32px; margin-top: 0; margin-bottom: 0; padding: 0; }
  .ov-act:not(.ov-todo-btn) { padding: 0 10px; border: 1px solid var(--rule-strong); border-radius: 6px; background: var(--paper); color: var(--ink); }
  .ov-act:not(.ov-todo-btn):hover { background: var(--hover); color: var(--ink); text-decoration: none; }
  .ov-act.primary { border-color: var(--accent-fill); background: var(--accent-fill) var(--brand-grad, none); color: var(--on-accent); }
  .ov-act.primary:hover { background-image: var(--brand-grad-hover, none); color: var(--on-accent); }
  .ov-act:disabled { opacity: 0.5; }
}
@media (min-width: 1200px) {
  .ov-grid .now-text { font-size: 13px; }
}

/* Customers and trunk groups: names and figures at 14 px. A customer's switch is under its name,
   small, while there are several. */
.ov-grid .cust-who { gap: 8px; }
.ov-grid .cust-who a, .ov-grid .cust-label { font-size: 14px; font-weight: 600; }
.cust-id { display: grid; min-width: 0; }
.ov-grid .cust-sw { color: var(--slate); font-size: 12px; font-weight: 400; line-height: 1.3; white-space: nowrap; }
.ov-grid .cust-table td.num b { font-size: 14px; font-weight: 600; }
.ov-grid .cust-table td.cust-change b { font-size: 13px; font-weight: 500; }
.ov-grid .cell-unit { font-size: 12px; }
.ov-grid .cust-level { font-size: 12px; }
.ov-grid .table th, .ov-grid .table td { padding: 8px 10px 8px 0; }
.ov-grid .cust-table tr.is-picked { background: var(--accent-tint); }
/* Active calls: talking now, those ringing under it; a PeerEdge customer's are not given. */
.ov-grid .cust-table .cust-ringing { display: block; color: var(--slate); font-size: 12px; font-weight: 400; white-space: nowrap; }
.ov-grid .cust-table .cust-ring-sep { display: none; }
.ov-grid .cust-table .cust-none { color: var(--slate); font-size: 12px; white-space: nowrap; }
/* An ASR or ACD: the calls it comes from, under it where Customers has room for them (on hover
   otherwise), after it on a phone; on too few calls, words that may wrap. */
.ov-grid .cust-table .cust-basis { display: none; color: var(--slate); font-size: 12px; font-weight: 400; white-space: nowrap; }
.ov-grid .cust-table .cust-few { white-space: normal; }
@media (min-width: 720px) {
  @container (min-width: 960px) { .ov-customers .cust-table .cust-basis { display: block; } }
}
@media (max-width: 719px) {
  .ov-grid .cust-table .cust-ringing { display: inline; font-size: 13px; }
  .ov-grid .cust-table .cust-ring-sep { display: inline; }
  .ov-grid .cust-table .cust-none { font-size: 13px; }
  .ov-grid .cust-table .cust-basis { display: inline; font-size: 13px; }
}
@media (max-width: 719px) {
  .ov-grid .cust-table tr { padding: 10px 0; gap: 2px 12px; }
  .ov-grid .cust-table td.num b { font-size: 15px; }
  .ov-grid .cust-table td.cust-today { display: none; }
}
/* Beside the short side (a 1200 to 1500 px window with the menu open), Customers has less room
   than its table likes: under 800 px the columns close up, and under 700 px its last column, the
   line of the last 3 hours, goes (the chart of calls per minute above draws it). A phone keeps
   its own layout. */
.ov-main .ov-customers { container-type: inline-size; }
@media (min-width: 720px) {
  @container (max-width: 800px) {
    .ov-customers .cust-table thead th { text-wrap: balance; }
    .ov-customers .cust-table thead th.num { min-width: 52px; }
    .ov-customers .cust-table th, .ov-customers .cust-table td { padding-right: 6px; }
    .ov-customers .cust-table .cust-spark { width: 64px; min-width: 64px; }
    .ov-customers .cust-spark .spark { width: 60px; }
  }
  @container (max-width: 700px) {
    .ov-customers .cust-table th:last-child, .ov-customers .cust-table td:last-child { display: none; }
  }
  /* Under 780 px a customer's switch says its address alone ("116.202.234.212"), on one line;
     a screen reader still hears "Sippy". */
  @container (max-width: 779px) {
    .ov-customers .cust-sw-kind { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  }
}

/* The charts' words. */
.ov-grid .chart-axis { font-size: 11px; }
@media (min-width: 720px) { .ov-grid .chart-axis { font-size: 12px; } }
.ov-grid .legend { font-size: 13px; }

/* ------------------------------------------------------------------ traffic */
/* The title and how fresh the figures are, then what is shown: the switches on a row of their
   own, then the period and the customer. */
.dash { min-width: 0; }
.dash-head { display: grid; gap: 10px; margin: 4px 0 12px; }
.dash-titles { min-width: 0; }
.dash-title { margin: 0; font-size: 18px; font-weight: 600; line-height: 1.25; }
.ov-grid .dash-note { margin: 2px 0 0; color: var(--slate); font-size: 12px; }
.dash-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 16px; }
.dash-filter { display: grid; gap: 4px; min-width: 0; }
.dash-filter-label { color: var(--slate); font-size: 12px; font-weight: 600; }
/* Switches: All, then a toggle for each switch with its colour as on the charts, wrapping on a
   phone. Pressed, a toggle is tinted and outlined as the period's choice is. */
.dash-filter-sw { flex: 1 1 100%; }
.dash-sws { display: flex; flex-wrap: wrap; gap: 6px; }
.dash-sw {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 52px;
  min-height: var(--tap);
  padding: 0 10px;
  border: 1px solid var(--rule-btn);
  border-radius: 8px;
  background: var(--paper);
  color: var(--slate);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
}
.dash-sw-all { justify-content: center; }
.dash-sw:hover { background: var(--hover); color: var(--ink); }
.dash-sw[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-tint); color: var(--accent); }
@media (min-width: 720px) { .dash-sw { padding: 0 12px; } }
.dash-select {
  min-width: 11em;
  max-width: 100%;
  min-height: var(--tap);
  padding: 0 10px;
  border: 1px solid var(--rule-btn);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}
@media (min-width: 720px) and (pointer: fine) { .dash-select { font-size: 14px; } }
/* On a computer the switches, the period and the customer sit on one compact row, so the charts
   get the room. A phone keeps them finger sized. */
@media (min-width: 720px) and (pointer: fine) {
  .dash-head { gap: 6px; margin: 0 0 8px; }
  .dash-filters { align-items: center; gap: 6px 14px; }
  .dash-filter-sw { flex: 0 1 auto; }
  .dash-filter { grid-auto-flow: column; align-items: center; gap: 6px; }
  .dash-filter-label { font-size: 11px; }
  .dash-sw, .dash-filter .seg button, .dash-select, .dash-filter .date-step, .dash-filter .date-pick .date-input { min-height: 30px; font-size: 13px; }
  .dash-filter .date-step { min-width: 30px; font-size: 17px; }
  .dash-filter .date-step, .dash-filter .date-pick .date-input, .dash-filter .date-custom { height: 30px; }
  .dash-filter .date-custom { min-height: 30px; padding: 0 9px; font-size: 13px; }
  /* The period's label stays level with the buttons when the Custom row opens under them. */
  .dash-filter-period { align-items: start; }
  .dash-filter-period .dash-filter-label { line-height: 32px; }
  .dash-sw { gap: 6px; min-width: 40px; padding: 0 8px; }
  .dash-filter .seg button { min-width: 0; padding: 0 9px; }
}
/* The periods, then the date box beside them (under them when there is no room). */
.dash-period { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.dash-sort { display: grid; gap: 4px; }
@media (max-width: 719px) {
  .dash-filters, .dash-filter { width: 100%; }
  .dash-filter .seg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; }
  .dash-filter .seg button { min-width: 0; padding: 0 6px; }
  /* The eight periods: two rows of four. */
  .dash-filter .seg button:nth-child(4n + 1) { border-left: 0; }
  .dash-filter .seg button:nth-child(n + 5) { border-top: 1px solid var(--rule-btn); }
  .dash-select { width: 100%; }
  .dash-period, .dash-filter .date-pick { width: 100%; }
  .dash-filter .date-pick .date-input { flex: 1 1 auto; text-align: center; }
  .ov-customers .panel-actions, .dash-sort { width: 100%; }
}

/* The tiles: two to a row on a phone, four wider. A figure, its unit, what it is against the
   span before, and its line over the span. */
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0 0 12px; padding: 0; list-style: none; }
/* Wider, four to a row while each has 150 px, else three (the main column of a 1200 px window,
   beside the short side). */
@media (min-width: 720px) {
  .kpis { grid-template-columns: repeat(auto-fit, minmax(max(150px, calc((100% - 36px) / 4)), 1fr)); gap: 12px; margin-bottom: 16px; }
}
.kpi { display: flex; flex-direction: column; min-width: 0; padding: 10px 12px; border: 1px solid var(--rule); border-radius: 6px; background: var(--paper); }
.ov-grid .kpi-label { margin: 0; color: var(--slate); font-size: 12px; font-weight: 600; line-height: 1.3; }
.ov-grid .kpi-figure { margin: 4px 0 0; line-height: 1.15; }
.kpi-value { font-family: var(--font-display); font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
@media (min-width: 720px) { .kpi-value { font-size: 22px; } }
/* An ASR or ACD on too few calls: its words, smaller, in place of the figure. */
.kpi-value.kpi-few { font-family: inherit; font-size: 15px; }
.kpi-unit { color: var(--slate); font-size: 12px; font-weight: 500; }
.ov-grid .kpi-sub, .ov-grid .kpi-change { margin: 2px 0 0; color: var(--slate); font-size: 12px; line-height: 1.35; }
.ov-grid .kpi-change { color: var(--ink); }
.kpi-spark { margin-top: auto; padding-top: 6px; }
.kpi-spark .spark { display: block; width: 120px; max-width: 100%; height: 28px; }

/* A switch shown without figures in the window, or with only part of them, says so once. */
.ov-grid .dash-gaps { margin: -4px 0 12px; color: var(--slate); font-size: 13px; }
@media (min-width: 720px) { .ov-grid .dash-gaps { margin-bottom: 16px; } }

/* The charts: one to a row on a phone, two wider, and the last of an odd number across both. */
.dash-charts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 720px) {
  .dash-charts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .dash-charts > .dash-wide, .dash-charts > .dash-span { grid-column: 1 / -1; }
}
.dash-charts > .panel + .panel { margin-top: 0; }
.dash-chart .panel-head { margin-bottom: 6px; }
/* The key under a chart's title: each switch (or connected and failed) with its colour. */
.dash-keys { display: flex; flex-wrap: wrap; gap: 2px 12px; margin-top: 4px; }
.dash-key { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }

/* ------------------------------------------------------------------ live by switch */
.live-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
/* Two or three to a row from 720 px, the main column of the wide Overview included. A switch
   shown alone keeps a card's width rather than stretching across the panel. */
@media (min-width: 720px) { .live-list { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); } }
.live-sw { padding: 10px 12px; border: 1px solid var(--rule); border-radius: 6px; }
.ov-grid .live-sw-name { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0 0 8px; font-size: 14px; font-weight: 600; }
.live-sw-name .lamp { width: 13px; height: 13px; }
.live-figs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 12px; margin: 0; }
.live-fig { min-width: 0; }
.live-fig dt { color: var(--slate); font-size: 12px; line-height: 1.3; }
.live-fig dd { margin: 0; }
.live-fig dd b { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
/* An ASR or ACD: the calls it comes from under it, or "too few calls" in its place. */
.live-fig .live-basis { display: block; color: var(--slate); font-size: 12px; line-height: 1.3; }
.live-fig dd .secondary { font-size: 13px; font-weight: 600; }

/* ------------------------------------------------------------------ trunk groups */
.tg-who { display: block; font-size: 14px; font-weight: 600; }
.tg-cust { display: block; color: var(--slate); font-size: 12px; font-weight: 400; }
.dash-trunks .cust-quiet-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--rule); }
.dash-trunks .cust-quiet-line p { flex: 1 1 12em; margin: 0; color: var(--slate); }
@media (max-width: 719px) {
  .tg-table .tg-name { flex: 1 1 100%; }
  .tg-table td.cust-spark { display: none; }
}

/* Active calls, under what is shown: all the calls up now beside the title, each switch's own
   on a card (read every second), then the line over the period. */
.dash-hero { margin: 0 0 12px; }
@media (min-width: 720px) { .dash-hero { margin-bottom: 16px; } }
.dash-active-total { margin-left: 6px; color: var(--slate); font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.hero-body { display: grid; gap: 12px; min-width: 0; }
.dash-active-board { --card-min: 240px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin: 0; padding: 0; list-style: none; }
/* A card is wide enough for a switch's address on one line beside a figure of 4 digits. */
@media (min-width: 560px) { .dash-active-board { grid-template-columns: repeat(auto-fill, minmax(var(--card-min), 1fr)); } }
.dash-active-board li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0 8px;
  padding: 8px 12px;
  border: 1px solid var(--rule);
  border-radius: 6px;
}
.dash-active-name { min-width: 0; overflow-wrap: break-word; font-size: 13px; font-weight: 600; line-height: 1.3; }
.dash-active-now { font-family: var(--font-display); font-size: 26px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.15; text-align: right; }
.dash-active-split { grid-column: 2 / -1; color: var(--slate); font-size: 12px; font-variant-numeric: tabular-nums; line-height: 1.35; }
.dash-active-split.is-unknown { color: var(--bad-line); font-size: 13px; font-weight: 600; }

/* Active calls by customer: the chart, and the customers to draw beside it on a wide screen (under
   it on a narrow one), each with its colour, and Fell where its calls fell in the window. */
.dash-lines-panel { margin: 0 0 12px; }
@media (min-width: 720px) { .dash-lines-panel { margin-bottom: 16px; } }
.dash-lines-body { display: grid; gap: 12px; min-width: 0; }
@media (min-width: 1100px) { .dash-lines-body { grid-template-columns: minmax(0, 1fr) 220px; align-items: start; } }
.dash-lines { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
@media (min-width: 1100px) { .dash-lines { max-height: 300px; overflow-y: auto; } }
.dash-line { display: flex; align-items: center; gap: 8px; min-height: var(--tap); font-size: 14px; }
@media (min-width: 720px) and (pointer: fine) { .dash-line { min-height: 30px; font-size: 13px; } }
.dash-line-name { flex: 1 1 auto; min-width: 0; overflow-wrap: break-word; }
.dash-line-fell { flex: none; padding: 1px 6px; border-radius: 4px; background: var(--bad-fill-pale); color: var(--bad-line); font-size: 12px; font-weight: 700; }
