/* 2026-11-25 v2.8.0 Faults & complaints (technical), stage 1 (faults.js). The dashboard's own tokens: light and dark follow. */
.ft-h { margin: 0 0 8px; display: flex; align-items: center; gap: 8px; }
.ft-n { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #b42318; color: #fff; font-size: 14px; }
.ft-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.ft-grow { flex: 1; min-width: 220px; }
.ft-grow input, .ft-grid input, .ft-grid select, .ft-row select, #ftText { width: 100%; }
.ft-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; align-items: end; margin: 10px 0; }
.ft-grid .ft-wide { grid-column: span 2; }
.ft-danger { display: block; margin: 8px 0 10px; padding: 10px 12px; border: 1px solid #fda29b; border-radius: 10px; background: rgba(240, 68, 56, .07); }
.ft-map { height: 340px; border-radius: 12px; border: 1px solid var(--line); z-index: 0; }
.ft-map.ft-big { height: 520px; margin-top: 10px; }
.ft-ok { color: #067647; }
.ft-cust { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin: 8px 0; }
.ft-samebox { border-left: 5px solid #f79009; }
.ft-sameline { padding: 6px 0; border-top: 1px solid var(--line); }
.ft-save { display: flex; gap: 10px; flex-wrap: wrap; }
.ft-done { text-align: center; padding: 28px 18px; }
.ft-done .ft-row { justify-content: center; margin-top: 12px; }
.ft-ref { font-size: 44px; font-weight: 800; letter-spacing: 1px; color: #b42318; margin: 4px 0 10px; }
.ft-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin-bottom: 10px; }
.ft-dot { display: inline-block; width: 13px; height: 13px; border-radius: 50%; vertical-align: middle; }
.ft-table tbody tr { cursor: pointer; }
.ft-table tbody tr:hover, .ft-table tr.ft-on { background: rgba(21, 112, 239, .08); }
.ft-table tr.ft-emg td:first-child { box-shadow: inset 5px 0 0 #d92d20; }
.ft-clock { font-weight: 700; white-space: nowrap; }
.ft-clock .sub { font-weight: 400; }
.ft-red { color: #d92d20; } .ft-amber { color: #b54708; } .ft-green { color: #067647; }
.tile.ft-bad .v { color: #d92d20; }
.ft-file { border-left: 5px solid #1570ef; }
.ft-file.ft-emgbox { border-left-color: #d92d20; }
.ft-filehead { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.ft-ref2 { font-size: 24px; font-weight: 800; }
.ft-kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 12px 0; }
.ft-said { font-style: italic; margin: 6px 0; }
.ft-steps { margin: 10px 0 4px; }
.ft-stepform { margin: 10px 0; padding: 12px; border: 1px dashed var(--axis); border-radius: 10px; }
.ft-stepform .ft-row { margin-top: 8px; }
.ft-log { margin-top: 10px; }
.ft-log summary { cursor: pointer; font-weight: 600; }
.ft-logline { padding: 4px 0; border-top: 1px solid var(--line); }
.ft-ttable td { vertical-align: top; }
.ft-min { width: 86px; }
@media (max-width: 700px) { .ft-grid .ft-wide { grid-column: auto; } .ft-ref { font-size: 32px; } }
/* robust stage 12A: the clock colours in the dark */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ft-red { color: #fda29b; } :root:not([data-theme="light"]) .ft-amber { color: #fec84b; } :root:not([data-theme="light"]) .ft-green { color: #75e0a7; } }
:root[data-theme="dark"] .ft-red { color: #fda29b; }
:root[data-theme="dark"] .ft-amber { color: #fec84b; }
:root[data-theme="dark"] .ft-green { color: #75e0a7; }
