/* Fleet 360 — Operations Command Center + Vehicle 360 (1.47.0). Premium dark navy control room in TARA colours (teal + gold),
   scoped to .fcc so the rest of the back office keeps its theme. Status is never colour-only: every pill carries an icon + text.
   Logical properties (inline-start / end) so Arabic (RTL) mirrors correctly; numbers and times sit in .ltr spans. */
.fcc { --n0: #071322; --n1: #0B1C31; --n2: #102843; --n3: #173456; --ln: #24466E; --tx: #E8F0F8; --mu: #A3B6CA; --teal: #1FB5A8; --teal2: #037171; --gold: #E0A526;
  --ok: #2BD17E; --info: #3DB7E4; --warn: #F2B33D; --bad: #F2665A;
  background: radial-gradient(1200px 500px at 10% -10%, #123a5c 0%, var(--n0) 55%) var(--n0); color: var(--tx); border-radius: 16px; padding: 18px; margin: -4px 0 0;
  box-shadow: 0 10px 40px rgba(3, 12, 24, .35); }
.fcc a { color: #7FD8CF; } .fcc .muted { color: var(--mu); } .fcc small { color: var(--mu); display: block; font-size: 12px; }
.fcc .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .92em; color: #CFE2F3; }
.fcc h2 { margin: 0; font-size: 20px; letter-spacing: .2px; } .fcc h3 { margin: 0 0 10px; font-size: 14px; text-transform: uppercase; letter-spacing: .8px; color: #BFD3E6; }
.fcc h4 { margin: 0; font-size: 16px; } .fcc .btn { background: var(--n3); color: var(--tx); border-color: var(--ln); }
.fcc .btn:hover { border-color: var(--teal); } .fcc .btn-primary { background: linear-gradient(135deg, var(--teal2), var(--teal)); border-color: transparent; color: #fff; }
.fcc select, .fcc input[type=date] { background: var(--n2); color: var(--tx); border: 1px solid var(--ln); border-radius: 8px; padding: 6px 8px; min-height: 36px; }
.fcc-top { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.fcc-title { display: flex; flex-direction: column; gap: 2px; } .fcc-sub { color: var(--mu); font-size: 13px; }
.fcc-ctrl { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.fcc-meta { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--mu); }
.fcc-meta.busy::after { content: '⟳'; animation: fcc-spin 1s linear infinite; display: inline-block; }
@keyframes fcc-spin { to { transform: rotate(360deg); } }
.fcc-auto::before { content: '● '; color: var(--ok); }
.fcc-badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; border: 1px solid transparent; }
.fcc .lv-high { color: #FFD4CF; } .fcc-badge.lv-high { background: rgba(242, 102, 90, .18); border-color: rgba(242, 102, 90, .5); }
.fcc .lv-med { color: #FFE6B3; } .fcc-badge.lv-med { background: rgba(242, 179, 61, .16); border-color: rgba(242, 179, 61, .45); }
.fcc .lv-info { color: #CBEFFF; } .fcc-badge.lv-info { background: rgba(61, 183, 228, .14); border-color: rgba(61, 183, 228, .4); }
.fcc-badge.lv-ok { background: rgba(43, 209, 126, .15); border-color: rgba(43, 209, 126, .45); color: #C9F7DE; }
.fcc-kpis { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.fcc-kpis.fin { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fcc-kpi { background: linear-gradient(180deg, var(--n2), var(--n1)); border: 1px solid var(--ln); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fcc-kpi b { font-size: 22px; font-weight: 700; } .fcc-kpi > span { color: var(--mu); font-size: 12px; }
.fcc-kpi.k-drive b { color: var(--ok); } .fcc-kpi.k-stop b { color: var(--info); } .fcc-kpi.k-warn b { color: var(--warn); } .fcc-kpi.k-alert b { color: var(--bad); }
.fcc-kpi.k-posted b { color: #9FF0C7; } .fcc-kpi.k-pend b { color: #FFD98A; }
.fcc-histnote { background: rgba(224, 165, 38, .1); border: 1px dashed rgba(224, 165, 38, .55); color: #F6DDA4; padding: 8px 12px; border-radius: 10px; margin-bottom: 12px; font-size: 13px; }
.fcc-main { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, 1fr); gap: 14px; align-items: start; }
.fcc-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; }
.fcc-mapcol { position: sticky; top: 12px; }
.fcc-panel { background: linear-gradient(180deg, rgba(23, 52, 86, .65), rgba(11, 28, 49, .85)); border: 1px solid var(--ln); border-radius: 14px; padding: 14px; min-width: 0; }
.fcc-panel-h { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; margin-bottom: 8px; } .fcc-panel-h h3 { margin: 0; }
.fcc-map .fl-map2, .fcc-map { border-radius: 12px; overflow: hidden; } .fcc-map .notice { margin: 0; }
.fcc-card { background: linear-gradient(180deg, var(--n2), var(--n1)); border: 1px solid var(--ln); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 10px; cursor: pointer;
  transition: border-color .15s, box-shadow .15s; min-width: 0; }
.fcc-card:hover { border-color: #3B6795; } .fcc-card:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.fcc-card.sel { border-color: var(--teal); box-shadow: 0 0 0 2px rgba(31, 181, 168, .45), 0 8px 26px rgba(0, 0, 0, .35); }
.fcc-card-h { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.fcc-photo, .fcc-ph { width: 84px; height: 63px; border-radius: 10px; object-fit: cover; background: var(--n3); }
.fcc-photo.big, .fcc-ph.big { width: 100%; height: auto; aspect-ratio: 4 / 3; max-height: 260px; }
.fcc-ph { display: grid; place-items: center; position: relative; color: #6FA6C9; background: linear-gradient(135deg, #15395E, #0D2340); border: 1px solid var(--ln); overflow: hidden; }
.fcc-ph svg { width: 70%; opacity: .85; } .fcc-ph b { position: absolute; inset-inline-end: 6px; bottom: 3px; font-size: 11px; color: var(--gold); letter-spacing: 1px; }
.fcc-id h4 { line-height: 1.2; } .fcc-drv { font-size: 13px; margin-top: 3px; }
.fcc-st { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font-weight: 700; font-size: 12.5px; white-space: nowrap; border: 1px solid; }
.fcc-st i { font-style: normal; font-size: 11px; }
.fcc-st.st-driving { color: #CFFBE3; background: rgba(43, 209, 126, .16); border-color: rgba(43, 209, 126, .6); }
.fcc-st.st-stopped { color: #D3F0FF; background: rgba(61, 183, 228, .15); border-color: rgba(61, 183, 228, .55); }
.fcc-st.st-stale { color: #FFE9BE; background: rgba(242, 179, 61, .16); border-color: rgba(242, 179, 61, .6); }
.fcc-st.st-offline { color: #FFD6D1; background: rgba(242, 102, 90, .16); border-color: rgba(242, 102, 90, .6); }
.fcc-st.st-unknown, .fcc-st.st-not-linked { color: #DCE4EC; background: rgba(154, 169, 184, .14); border-color: rgba(154, 169, 184, .5); }
.fcc-live { border: 1px solid rgba(61, 183, 228, .45); background: rgba(61, 183, 228, .07); border-radius: 12px; padding: 8px 10px; }
.fcc-live-h, .fcc-act-h { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: #8FD3F2; font-weight: 700; margin-bottom: 3px; }
.fcc-act { border: 1px solid rgba(224, 165, 38, .35); background: rgba(224, 165, 38, .05); border-radius: 12px; padding: 8px 10px; } .fcc-act-h { color: #F0CB7A; }
.fcc-live-l { font-weight: 600; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.fcc-chip { font-size: 11.5px; padding: 1px 8px; border-radius: 999px; background: var(--n3); border: 1px solid var(--ln); font-weight: 600; }
.fcc-loc { font-size: 13px; display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 3px; color: #D6E4F0; }
.fcc-times { display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: 12px; color: var(--mu); margin-top: 4px; }
.fcc-dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 12px; margin: 4px 0 0; }
.fcc-dl > div { min-width: 0; } .fcc-dl .wide { grid-column: 1 / -1; }
.fcc-dl dt { font-size: 11.5px; color: var(--mu); } .fcc-dl dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.fcc-nodata { color: #FFE6B3; font-weight: 600; padding: 6px 0; }
.fcc-cov { font-size: 12.5px; margin-top: 6px; padding: 4px 8px; border-radius: 8px; background: rgba(255, 255, 255, .04); }
.fcc-sparkrow { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 11.5px; color: var(--mu); }
.fcc-spark .sp-bar { fill: #3C8FC0; } .fcc-spark .sp-bar.last { fill: var(--gold); } .fcc-spark .sp-gap { stroke: #7C8EA3; stroke-width: 2; stroke-dasharray: 2 2; }
.fcc-costs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12.5px; }
.fcc-costs > span { padding: 3px 9px; border-radius: 8px; border: 1px solid; font-weight: 600; }
.fcc-costs .c-posted { color: #C9F7DE; border-color: rgba(43, 209, 126, .45); background: rgba(43, 209, 126, .08); }
.fcc-costs .c-appr { color: #D3F0FF; border-color: rgba(61, 183, 228, .4); }
.fcc-costs .c-pend { color: #FFE6B3; border-color: rgba(242, 179, 61, .45); background: rgba(242, 179, 61, .07); }
.fcc-calerts, .fcc-att, .fcc-list, .fcc-tl, .fcc-story { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.fcc-calerts li { font-size: 12.5px; padding-inline-start: 14px; position: relative; } .fcc-calerts li::before { content: '▲'; position: absolute; inset-inline-start: 0; font-size: 9px; top: 3px; }
.fcc-card-f { display: flex; justify-content: flex-end; } .fcc-card-f .btn { min-height: 40px; padding-inline: 16px; }
.fcc-att a { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, .04); border: 1px solid var(--ln); text-decoration: none; }
.fcc-att a:hover { border-color: var(--teal); } .fcc-att i { width: 10px; height: 10px; border-radius: 50%; margin-top: 5px; flex: none; background: currentColor; }
.fcc-att a.lv-high { color: #FFD4CF; } .fcc-att a.lv-med { color: #FFE6B3; } .fcc-att a.lv-info { color: #CBEFFF; }
.fcc-grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 14px; margin-top: 14px; }
.fcc-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
[data-unassigned] { margin-top: 14px; }
.fcc-tl li, .fcc-story li, .fcc-list li { padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, .035); border: 1px solid rgba(36, 70, 110, .7); font-size: 13px; }
.fcc-tl .tl-t, .fcc-story .tl-t { display: inline-block; min-width: 96px; color: #8FD3F2; font-weight: 700; margin-inline-end: 6px; }
.fcc-tl .tl-stop, .fcc-story .s-stop { border-inline-start: 3px solid var(--gold); } .fcc-tl .tl-trip, .fcc-story .s-trip { border-inline-start: 3px solid var(--info); }
.fcc-story .s-trip { cursor: pointer; } .fcc-story .s-trip.sel { border-color: var(--teal); background: rgba(31, 181, 168, .12); }
.fcc-empty { color: var(--mu); font-size: 13px; padding: 8px 0; }
.fcc-err { background: rgba(242, 102, 90, .14); border: 1px solid rgba(242, 102, 90, .5); color: #FFD6D1; padding: 14px; border-radius: 12px; }
.fcc-skel { padding: 40px; text-align: center; color: var(--mu); border: 1px dashed var(--ln); border-radius: 14px; }
.fcc-noloc { color: var(--mu); font-size: 13px; }
.fcc-coords { margin-top: 8px; font-size: 13px; } .fcc-coords ul { list-style: none; padding: 0; margin: 6px 0 0; display: flex; flex-direction: column; gap: 4px; }
.fcc-back { font-size: 13px; text-decoration: none; }
.fcc-360top { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(260px, 1fr) minmax(260px, 1fr); gap: 14px; margin-bottom: 14px; }
.fcc-360 > section { margin-bottom: 14px; }
.fcc-photo-wrap { margin-bottom: 8px; } .fcc-photo-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; } .fcc-photo-acts .btn { min-height: 40px; }
.fcc-phhist { margin-top: 8px; font-size: 13px; } .fcc-phhist ul { padding-inline-start: 18px; }
.fcc-daynav { display: flex; gap: 6px; align-items: center; } .fcc-daynav .btn { min-width: 40px; min-height: 36px; }
.fcc-day-sum { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin-bottom: 10px; font-weight: 600; }
.fcc-storygrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 14px; align-items: start; }
.fcc-story { max-height: 460px; overflow: auto; }
.fcc-play { display: flex; gap: 8px; align-items: center; margin-top: 8px; } .fcc-play input[type=range] { flex: 1; accent-color: var(--gold); }
.fcc-charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.fcc-charts figure { margin: 0; background: rgba(255, 255, 255, .03); border: 1px solid rgba(36, 70, 110, .7); border-radius: 12px; padding: 10px; min-width: 0; }
.fcc-charts figcaption { font-size: 12.5px; color: #BFD3E6; margin-bottom: 6px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.fcc-chart-wrap { overflow-x: auto; } .fcc-chart { width: 100%; min-width: 280px; display: block; }
.fcc-chart .bc-a { fill: #3C8FC0; } .fcc-chart .bc-b { fill: var(--gold); opacity: .85; } .fcc-chart .bc-before { fill: #3A4E66; }
.fcc-chart .bc-miss { fill: none; stroke: #F2B33D; stroke-dasharray: 3 2; }
.fcc .lg::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-inline-end: 4px; vertical-align: -1px; }
.fcc .lg-a::before { background: #3C8FC0; } .fcc .lg-b::before { background: var(--gold); }
.fcc-tbl { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: 13px; }
.fcc-tbl th, .fcc-tbl td { padding: 7px 8px; border-bottom: 1px solid rgba(36, 70, 110, .8); text-align: start; }
.fcc-tbl th { color: var(--mu); font-weight: 600; }
.fcc-phprev img { width: 100%; border-radius: 10px; }
.fcc details summary { cursor: pointer; color: #BFD3E6; margin: 8px 0; }
@media (max-width: 1180px) { .fcc-main { grid-template-columns: 1fr; } .fcc-mapcol { position: static; } .fcc-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } .fcc-360top { grid-template-columns: 1fr 1fr; } .fcc-grid3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) {
  .fcc { padding: 12px; border-radius: 12px; margin-inline: -8px; }
  .fcc-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fcc-kpis.fin { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fcc-cards { grid-template-columns: 1fr; } .fcc-grid2, .fcc-grid3, .fcc-360top, .fcc-storygrid, .fcc-charts { grid-template-columns: 1fr; }
  .fcc-card-h { grid-template-columns: 64px minmax(0, 1fr); } .fcc-card-h .fcc-st { grid-column: 1 / -1; justify-self: start; }
  .fcc-photo, .fcc-ph { width: 64px; height: 48px; }
  .fcc-card-f .btn { width: 100%; justify-content: center; min-height: 46px; font-size: 15px; }   /* one-hand: a full-width thumb target at the bottom */
  .fcc-ctrl { width: 100%; } .fcc-ctrl select { flex: 1; } .fcc-refresh { min-height: 40px; }
}
@media (prefers-reduced-motion: reduce) { .fcc-meta.busy::after { animation: none; } .fcc-card { transition: none; } }
