/* 2026-12-02 v3.16.0 Live operations board (board.js). The dashboard's own tokens: light and dark follow; the map markers and the legend
   borrow teams.css (fm-tk, fm-legend, fm-dot). Full screen (TV): bigger figures, the page's own background. */
.fb-wrap { min-width: 0; }
.fb-head { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: flex-start; justify-content: space-between; margin-bottom: 12px; }
.fb-h { margin: 0 0 2px; }
.fb-h3 { margin: 0 0 8px; font-size: 16px; }
.fb-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.fb-chip { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); background: var(--surface); }
.fb-chip.on { border-color: #12b76a; color: #067647; background: rgba(18, 183, 106, .10); }
.fb-tiles { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.fb-tiles .tile .v small { font-size: 55%; font-weight: 600; color: var(--ink-2); }
.fb-tiles .tile.hero .v small { color: #b7d3d3; }
.tile.fb-warn .v { color: #b54708; } .tile.fb-bad .v { color: var(--crit); } .tile.fb-good .v { color: var(--good-ink); }
.fb-empty { border-left: 5px solid var(--axis); }
.fb-calls { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; margin-bottom: 16px; }
.fb-c { padding: 4px 10px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); }
.fb-c b { font-size: 18px; margin-right: 4px; }
.fb-c.warn b { color: #b54708; } .fb-c.bad b { color: var(--crit); }
.fb-split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 12px; }
.fb-map { height: 520px; border-radius: 12px; border: 1px solid var(--line); z-index: 0; }
.fb-map.fb-nomap { display: flex; align-items: center; justify-content: center; }
.fb-list { max-height: 520px; overflow: auto; }
.fb-tk { display: flex; gap: 10px; align-items: flex-start; padding: 8px; border-bottom: 1px solid var(--line); cursor: pointer; border-radius: 8px; }
.fb-tk:hover { background: rgba(21, 112, 239, .08); }
.fb-tk.late { background: rgba(217, 45, 32, .06); }
.fb-sq { flex: none; width: 13px; height: 13px; border-radius: 3px; margin-top: 4px; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .35); }
.fb-clock-red { color: var(--crit); } .fb-clock-amber { color: #b54708; } .fb-clock-green { color: var(--good-ink); }
.fb-two { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 12px; }   /* the two tables side by side only on a wide screen (a TV) */
@media (min-width: 1800px) { .fb-two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.fb-table td, .fb-table th { white-space: nowrap; }
.fb-table td.fb-w { color: #b54708; font-weight: 700; } .fb-table td.fb-r { color: var(--crit); font-weight: 700; }
.fb-table tr.fb-off { opacity: .6; }
.fb-dot { display: inline-block; vertical-align: -2px; margin: 0 2px 0 0; width: 12px; height: 12px; }
.fb-foot { margin-top: 4px; }
.fb-autobox { display: flex; gap: 8px; align-items: center; margin: 6px 0; }
.fb-automax { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 8px 0; }
.fb-automax input { width: 70px; }
/* full screen (TV): the page's background, bigger figures, no help text */
.fb-wrap.fb-tv { background: var(--page); padding: 18px 22px; overflow: auto; height: 100%; box-sizing: border-box; }
.fb-wrap.fb-tv .fb-h { font-size: 30px; }
.fb-wrap.fb-tv .tile .l { font-size: 16px; }
.fb-wrap.fb-tv .tile .v { font-size: 44px; }
.fb-wrap.fb-tv .tile .d { font-size: 14px; }
.fb-wrap.fb-tv .fb-map, .fb-wrap.fb-tv .fb-list { height: 46vh; max-height: 46vh; }
.fb-wrap.fb-tv .fb-table { font-size: 15px; }
.fb-wrap.fb-tv .fb-foot, .fb-wrap.fb-tv #fbRef { display: none; }
@media (max-width: 1000px) { .fb-split { grid-template-columns: 1fr; } .fb-map { height: 400px; } .fb-list { max-height: none; } }
@media (prefers-color-scheme: dark) { :root:where(:not([data-theme="light"])) .fb-chip.on { color: #75e0a7; } }
:root[data-theme="dark"] .fb-chip.on { color: #75e0a7; }
/* 2026-12-02 v3.16.0 (integration, after the screenshots): the board's boxes say their whole label and line (the dashboard's tiles cut them
   with "…" — "Confirmed with the custo…"); the TV fallback (no browser full screen) covers the whole window, menu included; the TV's figures
   sized for nine boxes a row */
.fb-tiles .tile .l, .fb-tiles .tile .d { white-space: normal; overflow: visible; text-overflow: clip; }
.fb-wrap.fb-tv:not(:fullscreen) { position: fixed; inset: 0; z-index: 2000; }
.fb-wrap.fb-tv .fb-tiles { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.fb-wrap.fb-tv .tile .v { font-size: 38px; white-space: nowrap; }
/* 2026-12-02 v3.16.0 the automatic dispatch's controls (board.js autoBar / targetsExtra): the pauses on the board, "Pause now", the card
   on Faults & target times. The buttons hide on the TV (nobody works the board from the wall screen). */
.fb-chip.part { border-color: #f79009; color: #b54708; background: rgba(247, 144, 9, .10); }
.fb-pzcard { border-left: 5px solid #f79009; padding: 10px 14px; }
.fb-pz { margin: 4px 0; }
.fb-pz.off { color: var(--ink-2); }
.fb-pzrow { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: flex-end; }
.fb-pzrow .fb-grow { flex: 1 1 260px; }
.fb-pzrow input, .fb-pzrow select { width: 100%; box-sizing: border-box; }
.fb-ctl { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 10px; margin: 8px 0; }
.fb-ctlbox { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--surface); }
.fb-checks { display: flex; flex-wrap: wrap; gap: 2px 14px; margin: 4px 0 8px; }
.fb-h4 { margin: 16px 0 6px; font-size: 15px; }
.fb-wrap.fb-tv .fb-pz-act, .fb-wrap.fb-tv #fbPzForm { display: none !important; }
@media (prefers-color-scheme: dark) { :root:where(:not([data-theme="light"])) .fb-chip.part { color: #fec84b; } }
:root[data-theme="dark"] .fb-chip.part { color: #fec84b; }
