/* Copyright (c) 2026 Bayplot. All rights reserved. Proprietary and confidential. Unauthorised copying, modification or distribution is prohibited. */
/* Tactical Network Simulator: Bayplot navy #0B2545 and gold #C9A227 */
:root { --tc-navy: #0B2545; --tc-gold: #C9A227; --tc-ink: #1d2433; --tc-muted: #5b6475; --tc-line: #dfe4ec; --tc-bg: #f5f6f9; --tc-red: #D1495B; --tc-green: #2f8f5b; }
.tc-body { background: var(--tc-bg); }
/* the shared SKU / order data panel is for the warehouse tools, not this network model */
.tc-body .tk-datapanel { display: none !important; }
.tc-main { max-width: 1680px; margin: 0 auto; padding: 18px 20px 40px; color: var(--tc-ink); }
.tc-head { display: flex; gap: 20px; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; }
.tc-head h1 { margin: 2px 0 6px; color: var(--tc-navy); font-size: 28px; }
.tc-lede { margin: 0; max-width: 900px; color: var(--tc-muted); font-size: 14px; }
.tc-switch { display: inline-flex; border: 2px solid var(--tc-navy); border-radius: 8px; overflow: hidden; background: #fff; }
.tc-sw { padding: 9px 16px; font-weight: 600; font-size: 14px; color: var(--tc-navy); text-decoration: none; }
.tc-sw.on { background: var(--tc-navy); color: #fff; box-shadow: inset 0 -3px 0 var(--tc-gold); }
a.tc-sw:hover { background: #eef1f6; }
.tc-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 14px 0 8px; padding: 10px 12px; background: var(--tc-navy); border-radius: 10px; }
.tc-bar .tc-f span { color: #dfe6f2; }
.tc-sep { width: 1px; align-self: stretch; background: rgba(255,255,255,.25); margin: 0 4px; }
.tc-btn { font: inherit; font-size: 13px; padding: 7px 12px; border-radius: 6px; border: 1px solid #c8cfdb; background: #fff; color: var(--tc-navy); cursor: pointer; font-weight: 600; }
.tc-btn:hover { border-color: var(--tc-navy); }
.tc-btn.go { background: var(--tc-gold); border-color: var(--tc-gold); color: var(--tc-navy); }
.tc-btn.sm { padding: 3px 8px; font-size: 12px; }
.tc-btn.on { background: var(--tc-navy); color: #fff; border-color: var(--tc-navy); }
.tc-btn.danger { color: var(--tc-red); }
.tc-file { display: inline-block; }
.tc-f { display: inline-flex; flex-direction: column; gap: 2px; font-size: 12px; color: var(--tc-muted); }
.tc-f.inline { flex-direction: row; align-items: center; gap: 6px; }
.tc-in { font: inherit; font-size: 13px; padding: 4px 6px; border: 1px solid #c8cfdb; border-radius: 5px; background: #fff; color: var(--tc-ink); min-width: 0; }
input.tc-in[type=number] { width: 78px; }
.tc-msg { min-height: 20px; font-size: 13px; color: var(--tc-navy); }
.tc-msg.err { color: var(--tc-red); }
.tc-exbanner { margin: 4px 0 10px; padding: 8px 12px; border-left: 5px solid var(--tc-gold); background: #fff8e1; font-size: 13px; color: #5a4600; border-radius: 6px; }
.tc-ex { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .05em; padding: 1px 5px; border-radius: 3px; background: #fff3c4; color: #6b5300; border: 1px solid var(--tc-gold); vertical-align: middle; margin-left: 4px; }
.tc-live { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 14px; }
.tc-mapcard, .tc-side, .tc-card { background: #fff; border: 1px solid var(--tc-line); border-radius: 10px; padding: 12px; }
.tc-kpis { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
.tc-kpi { background: var(--tc-navy); color: #fff; border-radius: 8px; padding: 7px 9px; }
.tc-kpi b { display: block; font-size: 18px; color: var(--tc-gold); }
.tc-kpi span { font-size: 11px; color: #cfd8e6; }
.tc-kpi.bad b { color: #ff9aa6; }
.tc-mapwrap { position: relative; height: 620px; border-radius: 8px; overflow: hidden; background: #dbe7f3; }
#tcMap { width: 100%; height: 100%; display: block; cursor: crosshair; }
.tc-tip { position: absolute; pointer-events: none; background: var(--tc-navy); color: #fff; padding: 7px 9px; border-radius: 6px; font-size: 12px; max-width: 280px; box-shadow: 0 4px 14px rgba(0,0,0,.25); border-left: 3px solid var(--tc-gold); z-index: 3; }
.tc-maplegend { pointer-events: none; position: absolute; left: 10px; bottom: 10px; background: rgba(255,255,255,.92); border-radius: 6px; padding: 6px 8px; font-size: 11px; line-height: 1.5; }
.tc-maplegend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 4px; vertical-align: -1px; }
.tc-play { display: flex; align-items: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
#tcScrub { flex: 1; min-width: 200px; accent-color: var(--tc-gold); }
.tc-clock { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--tc-navy); min-width: 110px; font-size: 15px; }
.tc-side { max-height: 760px; overflow: auto; }
.tc-h { margin: 0 0 8px; font-size: 17px; color: var(--tc-navy); }
.tc-h3 { margin: 12px 0 6px; font-size: 13px; color: var(--tc-navy); text-transform: uppercase; letter-spacing: .04em; }
.tc-alerts .al { font-size: 12px; padding: 5px 8px; border-radius: 5px; margin-bottom: 4px; background: #fdecee; color: #8a1b2a; border-left: 3px solid var(--tc-red); }
.tc-alerts .al.warn { background: #fff6e0; color: #6b5300; border-left-color: var(--tc-gold); }
.tc-alerts .ok { font-size: 12px; color: var(--tc-green); }
.tc-invnow .fr { display: grid; grid-template-columns: 130px 1fr 48px; gap: 6px; align-items: center; font-size: 12px; margin-bottom: 4px; }
.tc-invnow .bar { height: 10px; background: #edf0f5; border-radius: 3px; display: flex; overflow: hidden; }
.tc-invnow .bar i { display: block; height: 100%; }
.tc-invnow .fr.out { color: var(--tc-red); font-weight: 600; }
.tc-vehnow { font-size: 12px; }
.tc-vehnow div { padding: 3px 0; border-bottom: 1px dashed var(--tc-line); }
.tc-sec { margin-top: 18px; }
.tc-grid4 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.tc-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.tc-card.wide { margin-top: 14px; }
.tc-card h3 { margin: 0 0 8px; font-size: 15px; color: var(--tc-navy); display: flex; align-items: center; gap: 8px; }
.tc-card h3 .n { font-size: 11px; background: var(--tc-navy); color: var(--tc-gold); border-radius: 10px; padding: 1px 7px; }
.tc-ct { display: block; color: var(--tc-navy); font-size: 14px; margin-bottom: 6px; }
.tc-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 4px 0 6px; }
.tc-help { font-size: 12px; color: var(--tc-muted); margin: 2px 0 8px; }
.tc-scroll { max-height: 360px; overflow: auto; border: 1px solid var(--tc-line); border-radius: 6px; }
.tc-t { width: 100%; border-collapse: collapse; font-size: 12px; }
.tc-t th { position: sticky; top: 0; background: #eef1f6; color: var(--tc-navy); text-align: left; padding: 5px 6px; font-weight: 600; white-space: nowrap; z-index: 1; }
.tc-t td { padding: 3px 6px; border-top: 1px solid #eef1f6; vertical-align: middle; }
.tc-t td.num, .tc-t th.num { text-align: right; font-variant-numeric: tabular-nums; }
.tc-t tr.sel td { background: #fff8e1; }
.tc-t tr.tot td { font-weight: 700; border-top: 2px solid var(--tc-navy); }
.tc-t input.tc-in { width: 100%; min-width: 46px; }
#tcVehT input.tc-in { width: 54px !important; min-width: 0; }
#tcVehT input.tc-in[data-p$='.name'] { width: 132px !important; }
#tcVehT input.tc-in[data-p$='.payloadKg'] { width: 66px !important; }
#tcVehT td { white-space: nowrap; }
#tcVehT td:first-child { white-space: normal; }
#tcStopT input.tc-in { width: 44px !important; min-width: 0; }
#tcVehT td, #tcVehT th, #tcStopT td, #tcStopT th { padding: 3px 3px; }
.tc-t input.tc-in[type=color] { width: 32px; padding: 0; height: 22px; }
.tc-badge { display: inline-block; width: 11px; height: 11px; border-radius: 50%; vertical-align: -1px; margin-right: 4px; }
.tc-detail { margin-top: 10px; padding: 10px; background: #f8f9fc; border: 1px solid var(--tc-line); border-radius: 8px; }
.tc-detail .tc-fields { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.tc-type { font-size: 11px; color: var(--tc-muted); }
.tc-better { color: var(--tc-green); font-weight: 600; }
.tc-worse { color: var(--tc-red); font-weight: 600; }
.tc-note { font-size: 12px; color: var(--tc-muted); margin-top: 16px; }
.tc-chart { display: block; }
.tc-ev { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 6px; padding: 8px; border: 1px solid var(--tc-line); border-radius: 8px; margin-bottom: 6px; }
.tc-ev.on { border-color: var(--tc-red); background: #fff6f7; }
.tc-ev .tc-fields { display: flex; flex-wrap: wrap; gap: 6px; }
@media (max-width: 1100px) { .tc-live, .tc-grid4, .tc-grid2 { grid-template-columns: minmax(0, 1fr); } .tc-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 700px) { .tc-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tc-detail { overflow-x: auto; } .tc-t { display: block; max-width: 100%; overflow-x: auto; } .tc-kpi b, .tc-kpi span { overflow-wrap: anywhere; } }
@media (max-width: 700px) { .tc-f { max-width: 100%; min-width: 0; } .tc-f .tc-in { max-width: 100%; min-width: 0; } }
