/* Shipment scene: airport-board hierarchy, without replacing the KPI theme. */
.world-clocks{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0 0 12px}
.world-clock{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:3px 16px;background:#101922;color:#e4eef7;border:1px solid #344453;border-radius:8px;padding:10px 16px;min-width:0}
.world-clock-heading{display:flex;flex-direction:column;gap:3px;font-size:10px;letter-spacing:.13em;color:#ffd37c}
.world-clock-heading>span{color:#adbecd;font-size:10px;letter-spacing:.03em}
.world-clock-time{font:500 clamp(22px,1.9vw,38px)/1.1 Consolas,'SFMono-Regular',monospace;letter-spacing:.05em;font-variant-numeric:tabular-nums;white-space:nowrap;color:#eef7ff}
.world-clock-date{grid-column:1/-1;text-align:right;font-size:10px;letter-spacing:.05em;color:#adbecd}
@media(max-width:650px){.world-clocks{gap:6px}.world-clock{grid-template-columns:1fr;padding:8px;gap:6px}.world-clock-time{font-size:18px}.world-clock-date{text-align:left;font-size:9px}}
.wall-rotation{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:12px 0;color:#354d62;font-size:12px;font-weight:650;letter-spacing:.06em}
.wall-rotation-controls{display:flex;align-items:center;gap:6px}
.wall-rotation button{font-size:12px;padding:7px 13px;letter-spacing:0}
.wall-rotation button[aria-pressed="true"]{background:#183d57;color:#fff;border-color:#183d57}
.wall-rotation button:disabled{opacity:.5;cursor:default}
#wallCountdown{font-variant-numeric:tabular-nums;color:#627689}
.wall-stage{display:grid;isolation:isolate;align-items:start}
.wall-stage>#board,.shipment-panel{grid-area:1/1;min-width:0;transition:opacity .65s ease,transform .65s ease}
.wall-stage>#board{margin-top:0}
.scene-current{opacity:1;transform:translateY(0);z-index:2}
.scene-outgoing{opacity:0;transform:translateY(6px);pointer-events:none;z-index:1}
.shipment-panel{--flight-muted:#a7b6c6;--flight-amber:#ffd37c;background:#101922;color:#eef4fa;border:1px solid #314356;border-radius:18px;overflow:hidden;box-shadow:0 16px 40px #10233420}
.flight-hero{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:20px 24px 16px;background:linear-gradient(110deg,#172836 0%,#13202c 65%,#1e2932 100%);border-bottom:1px solid #344453}
.flight-eyebrow{color:var(--flight-amber);font-size:11px;font-weight:700;letter-spacing:.2em;margin:0 0 7px}
.flight-hero h2{font-size:clamp(23px,2vw,44px);line-height:1.1;letter-spacing:-.025em;white-space:normal;font-weight:750}
.flight-hero h2 span{color:#9fb4c8;font-weight:400}
.flight-period{font-size:10px;letter-spacing:.14em;margin:10px 0 0;color:#b9c9d8}
.flight-feed{display:grid;grid-template-columns:8px auto;align-items:center;gap:8px 10px;font-size:11px;letter-spacing:.08em;text-align:right}
.flight-feed small{grid-column:2;font-size:10px;color:#b9c9d8;letter-spacing:0;margin:0}
.flight-signal{width:7px;height:7px;border-radius:50%;background:var(--flight-amber);box-shadow:0 0 0 4px #ffd37c12}
.flight-metrics{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));background:#14212c;border-bottom:1px solid #32414f}
.flight-metrics>div{padding:12px 24px;border-right:1px solid #32414f;display:grid;grid-template-columns:1fr auto;gap:3px 14px;align-items:center}
.flight-metrics>div:last-child{border-right:0}
.flight-metric-label{font-size:11px;letter-spacing:.05em;color:#c9d6e1}
.flight-metrics strong{grid-row:1/3;grid-column:2;font:600 clamp(24px,2vw,40px)/1.1 Consolas,'SFMono-Regular',monospace;color:#edf5fd}
.flight-metrics>div:nth-child(2) strong{color:#95dfdc}
.flight-metrics>div:nth-child(3) strong{color:#81c7ff}
.flight-metrics>div:nth-child(4) strong{color:#ff8395}
.flight-metrics>div:nth-child(5) strong{color:#8ed9bd}
.flight-metrics small{color:#9bacbd;font-size:10px;margin:0}
.flight-coverage{margin:0;padding:8px 24px;color:#bccbd8;font-size:11px;background:#101c27;border-bottom:1px solid #293947}
.flight-coverage.needs-attention{color:#f3ce8d}
.flight-network{background:#512b29;color:#fff0e8;font-size:12px;margin:0;padding:9px 24px}
.flight-table{min-width:820px}
.flight-table-head,.flight-row{display:grid;grid-template-columns:1.05fr 1.7fr .75fr .75fr .8fr 1.3fr;align-items:center;gap:16px;padding:0 24px}
.flight-table-head{height:36px;background:#0c141d;border-bottom:1px solid #344453;text-transform:uppercase;letter-spacing:.1em;font-size:10px;font-weight:700;color:#a6bacb}
.flight-row{height:clamp(52px,5.2vh,78px);background:#14212c;border-bottom:1px solid #2a3947;position:relative}
.flight-row:nth-child(even){background:#182530}
.flight-row>div{min-width:0}
.flight-row.state-exception{box-shadow:inset 3px 0 #e6a354}
.flight-row.state-out_for_delivery{box-shadow:inset 3px 0 #68b7ef}
.flight-row.state-delivered{box-shadow:inset 3px 0 #70c4a1}
.flight-carrier{display:flex;flex-direction:column;align-items:flex-start;gap:4px}
.flight-logo{width:83px;height:27px;background:#f8fafc;display:flex;align-items:center;justify-content:center;border-radius:4px;padding:2px 7px;flex-shrink:0}
.flight-logo img{display:block;max-width:100%;height:24px;object-fit:contain}
.flight-logo.ups{width:45px}
.flight-logo-fallback{color:#202b37;font-size:14px;font-weight:800}
.flight-tracking{font-family:Consolas,'SFMono-Regular',monospace;letter-spacing:.03em;font-size:clamp(10px,.8vw,17px);color:#d8e7f4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.flight-customer strong{font-size:clamp(12px,.92vw,21px);font-weight:650;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:1.25}
.flight-customer small{font-size:10px;color:#9aacbd;margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.flight-date strong{display:block;font-family:Consolas,'SFMono-Regular',monospace;font-size:clamp(12px,.95vw,21px);font-weight:500}
.flight-date small{font-size:9px;margin-top:4px;color:var(--flight-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.flight-status{display:flex;flex-direction:column;align-items:flex-start;gap:2px}
.flight-badge{display:inline-block;font-size:clamp(10px,.78vw,17px);line-height:1.2;text-transform:uppercase;letter-spacing:.035em;padding:4px 7px;border-radius:3px;background:#2a3945;color:#d5dee6;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.state-delivered .flight-badge{background:#203f36;color:#a7ecd0}
.state-out_for_delivery .flight-badge{background:#1c3c54;color:#a1d8ff}
.state-exception .flight-badge{background:#4c3825;color:#ffdb9e}
.state-in_transit .flight-badge{background:#243c50;color:#bedef9}
.flight-status-detail,.flight-checked{font-size:9px!important;color:#adbecd!important;margin:0!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.flight-warning{font-size:9px!important;color:#f0c88c!important;margin:0!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.flight-row-empty{opacity:.4}
.flight-empty{height:clamp(416px,41.6vh,624px);display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:32px;color:#c0cfdd}
.flight-empty strong{font-size:24px}.flight-empty p{color:var(--flight-muted);font-size:14px}
.flight-page{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 24px;color:#98aec0;font-size:10px}
.flight-page strong{color:#d9e4ed;font-family:Consolas,monospace;letter-spacing:.05em}
.flight-ticker{display:flex;align-items:stretch;border-top:1px solid #344453;min-height:43px;background:#0a131c}
.flight-ticker-label{display:flex;align-items:center;gap:12px;flex:none;padding:0 22px;background:#f4c779;color:#1b2630;font-size:10px;letter-spacing:.09em;font-weight:800;z-index:1}
.flight-ticker-label>span{font-size:21px}
.flight-ticker-window{overflow:hidden;display:flex;align-items:center;flex:1;min-width:0;mask-image:linear-gradient(90deg,transparent,#000 24px,#000 calc(100% - 24px),transparent)}
.flight-ticker-track{display:flex;align-items:center;width:max-content;animation:flight-scroll 80s linear infinite}
.flight-ticker-group{display:flex;align-items:center;flex-shrink:0}
.flight-ticker-item{display:flex;align-items:center;gap:12px;white-space:nowrap;padding:0 30px;font-size:12px;border-right:1px solid #344453}
.ticker-carrier{color:#ffd37c;font-size:11px}.ticker-event{color:#a5d8c4}.ticker-date{color:#94abbe;font-size:10px}
.ticker-empty{padding:10px 24px;color:#a6bacb;font-size:12px;white-space:nowrap}
.flight-ticker-track:has(.ticker-empty){animation:none}
.rotation-paused .flight-ticker-track{animation-play-state:paused}
@keyframes flight-scroll{to{transform:translateX(-50%)}}
@media(min-width:1800px){.flight-hero{padding:26px 30px 20px}.flight-metric-label{font-size:15px}.flight-metrics small,.flight-coverage{font-size:12px}.flight-metrics>div{padding:16px 30px}.flight-table-head{font-size:12px;height:42px}.flight-logo{width:100px;height:30px}.flight-logo.ups{width:48px}.flight-customer small,.flight-date small,.flight-status-detail,.flight-checked,.flight-warning{font-size:11px!important}.flight-ticker{min-height:50px}.flight-ticker-item{font-size:14px}}
@media(max-height:850px) and (min-width:1201px){.flight-hero{padding:12px 20px}.flight-hero h2{font-size:25px}.flight-period{margin-top:5px}.flight-metrics>div{padding:8px 20px}.flight-row{height:48px}.flight-empty{height:384px}.flight-checked{display:none}.flight-logo{height:21px}.flight-logo img{height:19px}.flight-table-head,.flight-row{padding:0 20px;gap:12px}.flight-ticker{min-height:34px}.flight-page{padding:7px 20px}}
@media(max-width:1100px){.flight-table-scroll{overflow-x:auto}.flight-hero{padding:18px}.flight-feed{font-size:9px}.flight-metrics>div{padding:10px 14px}.flight-metrics small{display:none}.flight-page{flex-wrap:wrap}.wall-rotation{flex-wrap:wrap}.flight-page>span:last-child{display:none}}
@media(max-width:650px){.flight-hero{align-items:flex-start;flex-direction:column}.flight-feed{text-align:left}.flight-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.flight-metrics>div{border-bottom:1px solid #32414f}.flight-hero h2{font-size:25px}.wall-rotation-controls{width:100%;justify-content:center}.flight-ticker-label{padding:0 10px;font-size:9px}#wallCountdown{display:none}}
@media(prefers-reduced-motion:reduce){.wall-stage>#board,.shipment-panel{transition:none;transform:none}.flight-ticker-track{animation:none}.flight-ticker-window{overflow-x:auto;mask-image:none}.flight-ticker-group[aria-hidden="true"]{display:none}}

/* Compact full-screen shipment layout; KPI styling is unchanged. */
#wallSceneLabel,#wallCountdown,#wallPause{display:none!important}
.wall-rotation{justify-content:flex-end;margin:3px 0;gap:4px;letter-spacing:0;min-height:24px}
.wall-rotation .wall-rotation-controls{width:auto;gap:4px}
.wall-rotation button{font-size:10px;font-weight:500;line-height:1.2;padding:3px 7px;min-height:24px;border-radius:4px;background:transparent;color:#526678;border-color:#a9b7c3}
.wall-rotation button[aria-pressed="true"]{background:#dbe4eb;color:#233e53;border-color:#8198aa}
.world-clocks{display:flex;align-items:center;gap:0;margin:0;padding:7px 150px 7px 12px;background:#101922;border-bottom:1px solid #293947;flex-wrap:wrap}
.world-clock{display:grid;grid-template-columns:auto auto;gap:2px 10px;background:none;border:0;border-right:1px solid #344453;border-radius:0;padding:0 16px;min-width:0}
.world-clock:first-child{padding-left:0}.world-clock:last-child{border:0}
.world-clock-heading{display:flex;flex-direction:row;align-items:baseline;gap:5px;font-size:10px;letter-spacing:0;color:#d7e4ef}
.world-clock-heading>span{font-size:9px;color:#91a6b8;letter-spacing:0}
.world-clock-time{font-size:17px;line-height:1.1;letter-spacing:.02em;color:#eef7ff}
.world-clock-date{font-size:9px;letter-spacing:0;line-height:1.1}
html.package-mode,html.package-mode body{background:#101922;color:#dce8f2}
.package-mode body{padding:0}
.package-mode body>header,.package-mode body>footer{display:none!important}
.package-mode #connection:not([hidden]){height:auto;white-space:normal;margin:0;padding:6px 12px;background:#422c22;color:#ffe0b3}
.package-mode .wall-rotation{position:fixed;right:10px;top:8px;z-index:10;margin:0}
.package-mode .wall-rotation button{background:#14212c;color:#aabccc;border-color:#354a5c}
.package-mode .wall-rotation button[aria-pressed="true"]{background:#243747;color:#e0edf7;border-color:#526b7f}
.package-mode .shipment-panel{height:100vh;height:100dvh;min-height:0;display:flex;flex-direction:column;border:0;border-radius:0;box-shadow:none}
.package-mode .wall-stage>#board.scene-outgoing{position:absolute;width:100%}
.shipment-panel .flight-hero{display:none}
/* Keep operational diagnostics in CRM, not in the TV shipment layout.
   Carrier exception alerts and offline/feed warnings remain visible. */
.shipment-panel .flight-coverage{display:none}
.package-mode .flight-table-scroll{flex:1;display:flex;min-height:0}
.package-mode .flight-table{flex:1;display:flex;flex-direction:column;min-height:0}
.package-mode #flightRows{flex:1;display:grid;grid-template-rows:repeat(8,minmax(0,1fr));min-height:0}
.package-mode .flight-row{height:auto;min-height:0}
.package-mode .flight-empty{height:auto;min-height:0;grid-row:1/-1}
.package-mode .world-clocks,.package-mode .flight-metrics,.package-mode .flight-alerts,.package-mode .flight-table-head,.package-mode .flight-page,.package-mode .flight-ticker,.package-mode .flight-network{flex-shrink:0}
.shipment-panel .flight-ticker-label{background:#1c2e3c;color:#d5e5f2;border-right:1px solid #344453}
@media(max-width:1100px){.world-clock{padding:0 10px}.world-clock-heading{flex-direction:column;gap:1px}.world-clocks{row-gap:6px}.world-clock-time{font-size:16px}}
@media(max-width:650px){.world-clocks{padding:42px 10px 8px;justify-content:space-between;gap:6px}.world-clock{padding:0 6px;grid-template-columns:1fr}.world-clock-date{text-align:left;font-size:8px}.world-clock-time{font-size:15px}.world-clock-heading>span{font-size:8px}}

/* Three complete exceptions at a time, rotating independently of shipments. */
.shipment-panel .flight-metrics>div:nth-child(4){background:#411b24;border-bottom:2px solid #f35d73}
.shipment-panel .flight-metrics>div:nth-child(4) strong{color:#ff8395}
.shipment-panel .flight-metrics>div:nth-child(4) .flight-metric-label{color:#ffe4e8}
.flight-alerts{background:#26151d;border-top:1px solid #9f3d50;border-bottom:1px solid #9f3d50}
.flight-alert-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:7px 16px;color:#ffacb9;font-size:11px}
.flight-alert-heading>strong{letter-spacing:.08em}.flight-alert-heading>span{font:11px Consolas,monospace;color:#e4b5bd}
.flight-alert-rows{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:0 12px 8px}
.flight-alert-card{display:grid;grid-template-columns:100px minmax(0,1fr);gap:7px 12px;align-content:start;align-items:center;padding:8px 10px;border:1px solid #8e3b4b;border-left:4px solid #ff5f79;border-radius:4px;background:#391d28;color:#fff0f3;min-width:0;overflow:visible}
.flight-alert-identity{text-align:center;display:flex;flex-direction:column;align-items:center;gap:3px;min-width:0}
.flight-alert-detail,.flight-alert-customer{display:flex;flex-direction:column;gap:2px;min-width:0;overflow-wrap:anywhere;line-height:1.2}
.flight-alert-detail{grid-column:1/-1}
.flight-alert-customer>strong{font-size:clamp(12px,.8vw,16px)}
.flight-alert-detail>small,.flight-alert-customer>small{margin:0;font-size:clamp(10px,.65vw,13px);color:#d6b1bb}
.flight-alert-reason{color:#ff9cb0;font-size:clamp(14px,.95vw,19px);font-weight:650}
.flight-alert-identity .flight-tracking{white-space:normal;overflow:visible;overflow-wrap:anywhere;font-size:clamp(10px,.67vw,13px)}
.flight-alert-detail .flight-warning{white-space:normal;overflow:visible}
.shipment-panel .state-exception .flight-badge{background:#651f31;color:#ffd5df}
.shipment-panel .flight-row.state-exception{box-shadow:inset 3px 0 #ff5f79}
.shipment-panel .flight-carrier{align-items:center;text-align:center}
.shipment-panel .flight-logo,.shipment-panel .flight-logo.ups{width:112px;height:33px;padding:0;background:transparent;border-radius:0;justify-content:center}
.shipment-panel .flight-logo img{width:112px;max-width:100%;height:33px;object-fit:contain;filter:drop-shadow(0 0 1px #ffffffa0)}
.shipment-panel .flight-logo.ups img{width:42px}
.shipment-panel .flight-logo.fedex{width:76px;height:24px}
.shipment-panel .flight-logo.fedex img{width:76px;height:24px;object-fit:cover}
.shipment-panel .flight-logo-fallback{color:#fff0b6;font-size:17px}
.shipment-panel .flight-table-head>span:first-child{text-align:center}
@media(max-width:1100px){.flight-alert-card{grid-template-columns:85px minmax(0,1fr);gap:6px}}
@media(max-width:800px){.flight-alert-heading{align-items:flex-start;flex-direction:column;gap:3px}.flight-alert-card{grid-template-columns:1fr}.flight-alert-identity{flex-direction:row;justify-content:space-between}}

/* Carrier-supplied service and scan context; no added KPI header space. */
.flight-alert-customer .flight-service{color:#e4d2ed}
.flight-alert-when,.flight-alert-location{color:#f4dce2!important;line-height:1.3}
.flight-alert-explanation{color:#efbdc8!important;line-height:1.3;overflow-wrap:anywhere}
.flight-alert-reason{line-height:1.3;overflow-wrap:anywhere}
.flight-customer .flight-service{color:#c6d7e6;margin-top:2px;font-size:10px}
.package-mode .flight-customer strong{line-height:1.1}
.package-mode .flight-customer small{line-height:1.1;margin-top:2px}
@media(max-height:850px) and (min-width:1201px){.package-mode .flight-customer strong{font-size:12px}.package-mode .flight-customer small{font-size:9px!important;line-height:1.05;margin-top:1px}}
@media(max-height:740px) and (min-width:1201px){.package-mode .flight-customer strong{font-size:11px;line-height:1.05}.shipment-panel .flight-logo.ups,.shipment-panel .flight-logo.ups img{height:28px}.flight-alert-card{padding:6px 10px;row-gap:5px}}

