
/* SIM1-E: Live AVL visual parity for Training Centre operator canvas */
.tc-live-kpis{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:0;background:#fff;border:1px solid #d7e0e9;border-radius:11px;overflow:hidden;margin:7px 0}
.tc-live-kpis article{padding:8px 9px;border-left:1px solid #edf0f2;min-width:0;display:grid;align-content:center}
.tc-live-kpis article:first-child{border-left:0}.tc-live-kpis span{font-size:6px;color:#637488;font-weight:900;letter-spacing:.4px}.tc-live-kpis strong{font-size:16px;line-height:1.05;margin-top:2px;color:#0e2238}.tc-live-kpis small{font-size:5.6px;color:#8a98a7;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tc-live-watch{display:grid;grid-template-columns:minmax(230px,.7fr) 1.3fr;gap:10px;align-items:center;border:1px solid #ecd79e;background:#fffaf0;border-radius:8px;padding:6px 9px;margin-bottom:7px}.tc-live-watch>div:first-child b,.tc-live-watch>div:first-child span{display:block}.tc-live-watch>div:first-child b{font-size:7px;color:#8f6900}.tc-live-watch>div:first-child span{font-size:6px;color:#7d6f4d;margin-top:2px}.tc-live-watch-items{display:flex;gap:6px;justify-content:flex-end;min-width:0}.tc-live-watch-items article{border:1px solid #efddac;background:#fff;border-radius:6px;padding:4px 7px;min-width:130px}.tc-live-watch-items strong,.tc-live-watch-items small{display:block}.tc-live-watch-items strong{font-size:6.2px;color:#6a5417}.tc-live-watch-items small{font-size:5.5px;color:#99835c}.tc-live-watch-empty{font-size:6px;font-weight:900;color:#9b865b}

.tc-live-board{background:#fff;border:1px solid #d7e0e9;border-radius:12px;overflow:hidden;min-height:285px;margin-bottom:7px}
.tc-live-board-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:7px 10px;border-bottom:1px solid #eef2f6;background:#fff}
.tc-live-board-note{display:flex;align-items:center;gap:7px;min-width:0;color:#5c6d7f;white-space:nowrap}.tc-live-board-note>i{width:15px;height:15px;border:1px solid #8da2b8;border-radius:50%;font-style:normal;font-size:8px;font-weight:900;display:grid;place-items:center;color:#315c86;flex:0 0 auto}.tc-live-board-note span{font-size:6.5px;overflow:hidden;text-overflow:ellipsis}.tc-live-board-note b{font-size:6.4px;color:#1769b0;letter-spacing:.15px;flex:0 0 auto}
.tc-live-legend{display:flex;gap:12px;align-items:center;flex:0 0 auto}.tc-live-legend span{display:flex;align-items:center;gap:4px;font-size:6px;font-weight:850;color:#607284;white-space:nowrap}.tc-live-legend i{display:inline-block;width:14px;height:7px;border-radius:2px}.tc-live-legend i.good{background:#f5c400}.tc-live-legend i.held{background:#e7a51d}.tc-live-legend i.stale{background:#aab5c1}.tc-live-legend i.bad{background:#e3272d}

.tc-live-board-body{position:relative;height:240px;background:#fff;overflow:hidden}
.tc-live-lane{position:absolute;left:8px;right:8px;height:50%;overflow:visible}.tc-live-lane.outbound{top:0}.tc-live-lane.inbound{bottom:0}
.tc-live-dir{position:absolute;left:2px;top:50%;transform:translateY(-50%);width:74px;z-index:8}.tc-live-dir b{display:inline-grid;place-items:center;min-width:26px;height:22px;background:#173553;color:#fff;border-radius:5px;font-size:7px;padding:0 5px}.tc-live-dir span{display:block;font-size:5.5px;color:#7d8c98;margin-top:4px;white-space:nowrap}
.tc-live-track{position:absolute;left:70px;right:18px;top:0;bottom:0}.tc-live-axis{position:absolute;left:18px;right:18px;top:50%;height:1px}
.tc-live-rail{position:absolute;left:0;right:0;top:-1px;height:3px;background:#173553;border-radius:3px}
.tc-live-stop{position:absolute;top:-6px;transform:translateX(-50%);z-index:4}.tc-live-stop-dot{display:block;width:9px;height:9px;border-radius:50%;background:#173553;border:2px solid #fff;box-shadow:0 0 0 1px #173553}.tc-live-stop-copy{position:absolute;left:50%;transform:translateX(-50%);width:82px;text-align:center;top:-38px}.tc-live-lane.inbound .tc-live-stop-copy{top:14px}.tc-live-stop-copy b,.tc-live-stop-copy small{display:block}.tc-live-stop-copy b{font-size:5.6px;color:#24496d;font-weight:850;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tc-live-stop-copy small{font-size:5px;color:#93a0aa;margin-top:1px}

.tc-live-bus{position:absolute;top:-59px;transform:translateX(-50%);width:72px;min-height:48px;border:1px solid rgba(0,0,0,.18);padding:5px 11px 5px 6px;z-index:15;box-shadow:0 3px 9px rgba(15,34,50,.18);cursor:pointer;text-align:left;color:#111923}
.tc-live-lane.inbound .tc-live-bus{top:13px}
.tc-live-bus.dir-0{clip-path:polygon(0 0,84% 0,100% 50%,84% 100%,0 100%)}.tc-live-bus.dir-1{clip-path:polygon(16% 0,100% 0,100% 100%,16% 100%,0 50%);padding-left:14px;padding-right:5px}
.tc-live-bus.good{background:#f5c400}.tc-live-bus.held{background:#e7a51d}.tc-live-bus.stale{background:#aab5c1;color:#1e2932}.tc-live-bus.bad{background:#e3272d;color:#fff}.tc-live-bus.selected{outline:3px solid #3b8edb;outline-offset:2px}
.tc-live-bus b,.tc-live-bus strong,.tc-live-bus small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tc-live-bus b{font-size:6.8px}.tc-live-bus strong{font-size:7.6px;margin-top:2px}.tc-live-bus small{font-size:5.4px;margin-top:2px;opacity:.9}
.tc-live-bus:after{content:"";position:absolute;left:50%;width:1px;height:14px;background:#617283}.tc-live-lane.outbound .tc-live-bus:after{top:100%}.tc-live-lane.inbound .tc-live-bus:after{bottom:100%}

.tc-live-lower-toolbar{display:flex;align-items:center;gap:8px;min-width:0;padding:6px 7px;border:1px solid #d7e0e9;border-radius:10px;background:#f6f9fb;overflow-x:auto;margin-bottom:7px}
.tc-live-lower-tabs{display:flex;align-items:stretch;gap:6px;flex:0 0 auto}.tc-live-lower-tabs button{height:42px;min-width:142px;border:1px solid transparent;border-radius:8px;background:#eaf0f4;color:#536b7d;padding:5px 12px;text-align:left;cursor:pointer}.tc-live-lower-tabs button b,.tc-live-lower-tabs button small{display:block;white-space:nowrap}.tc-live-lower-tabs button b{font-size:7.4px;letter-spacing:.45px}.tc-live-lower-tabs button small{font-size:5.8px;margin-top:2px;color:#7b8b97}.tc-live-lower-tabs button.active{background:#0e527d;border-color:#083a5c;color:#fff;box-shadow:0 3px 10px rgba(14,82,125,.16)}.tc-live-lower-tabs button.active small{color:#dbeaf3}
.tc-live-lower-actions{display:flex;align-items:center;justify-content:flex-end;gap:6px;min-width:max-content;margin-left:auto;flex:0 0 auto}.tc-live-context-chip{font-size:6px;font-weight:900;padding:5px 8px;border-radius:999px;background:#eaf2f9;color:#22557d}.tc-live-lower-actions .tc-sim-button{height:30px;font-size:6px;padding:0 8px}
.tc-sim-layout{grid-template-columns:minmax(0,1.3fr) minmax(300px,.7fr)}
.tc-sim-toolbar{grid-template-columns:minmax(360px,1fr) auto auto}
.tc-sim-clock{margin-top:6px}
@media(max-width:1350px){.tc-live-kpis{grid-template-columns:repeat(5,minmax(0,1fr))}.tc-live-lower-tabs button{min-width:120px}.tc-live-board-note span{max-width:520px}}
@media(max-width:900px){.tc-live-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.tc-live-board-head{align-items:flex-start;flex-direction:column}.tc-live-board-body{height:300px}.tc-live-lower-toolbar{align-items:flex-start;flex-direction:column}.tc-live-lower-actions{margin-left:0}.tc-live-track{left:62px}.tc-live-bus{width:64px}}
