/* One common time axis for supply, loading and whole-lot resource reservation. */
.resource-panel .panel-title{flex-wrap:wrap;gap:12px}.timeline-source{font-size:11px;color:#64748b;border:1px solid #e4e7ec;border-radius:5px;padding:3px 7px}.timeline-source.warn{color:#a65d0b;background:#fff7ed;border-color:#fed7aa}
.timeline-tools{flex-wrap:wrap}.timeline-tools select{font-size:11px;height:31px}.timeline-tools .segmented button{font-size:11px;padding:5px 10px}.timeline-tools .icon-button{width:31px;height:31px}
.gantt-keybar{display:flex;gap:12px;align-items:center;justify-content:space-between;padding:12px 17px;border-bottom:1px solid #e8ebef;background:#fff}.scene-legend{display:flex;gap:17px;align-items:center;flex-wrap:wrap;color:#64748b;font-size:11px}.scene-legend span{display:flex;align-items:center;gap:6px}.scene-legend i{display:inline-block;width:13px;height:9px;border-radius:2px}.scene-legend .key-arrival{width:7px;height:7px;border-radius:1px;background:#2563eb;transform:rotate(45deg);margin:0 2px}.key-transit{background:#dbe4ef;border:1px solid #9caec4}.key-wait{background:#ffe9b9;border:1px solid #e3a637}.key-loading{background:#bfdbfe;border:1px solid #60a5fa}.key-reserve{background:repeating-linear-gradient(135deg,#f5d59b 0 2px,#fffbeb 2px 5px);border:1px solid #d5b683}.key-turn{background:repeating-linear-gradient(135deg,#cbd5e1 0 2px,#f8fafc 2px 5px)}.gantt-group-tools{display:flex;gap:14px;flex:none}.gantt-group-tools .text-link{font-size:11px;color:#64748b}
.gantt-scroll{max-height:620px;scrollbar-gutter:stable}.scene-timeline{--object-width:180px;--arrival-width:72px;--wait-width:64px;min-width:1040px}.scene-timeline .tl-header,.scene-timeline .tl-row{grid-template-columns:var(--object-width) var(--arrival-width) var(--wait-width) minmax(0,1fr)}.scene-timeline .tl-row{height:52px}.scene-timeline .tl-label{padding:0 14px;border-right:1px solid #f0f2f5}.scene-timeline .tl-duration{left:calc(var(--object-width) + var(--arrival-width));font-size:11px;padding:0 13px;justify-content:flex-end;color:#64748b}.scene-timeline .tl-arrival{position:sticky;left:var(--object-width);z-index:2;background:#fff;display:flex;align-items:center;justify-content:center;font-size:11px;color:#64748b}.scene-timeline .tl-header .tl-arrival{background:#fafafa;color:#6b7280;font-size:10px}.scene-timeline .tl-header .tl-label,.scene-timeline .tl-header .tl-duration{font-size:10px;color:#6b7280}.scene-timeline .tl-label,.scene-timeline .tl-arrival,.scene-timeline .tl-duration{z-index:4}.scene-timeline .tl-header{z-index:6}.scene-timeline .tl-header-track{overflow:visible}.scene-timeline .tl-ticks{overflow:hidden}.scene-timeline .tl-days{overflow:hidden;position:relative}.scene-timeline .tl-now{background:#f87171;z-index:3}.scene-timeline .tl-track{background:#fff;overflow:hidden}.scene-timeline .tl-duration.has-wait{color:#b46908;font-weight:600;background:#fffdf8}
.scene-row-select{display:flex;flex-direction:column;justify-content:center;gap:3px;min-width:0;max-width:100%;width:100%;padding:0;border:0;background:none;text-align:left;cursor:pointer}.scene-row-select strong{font-size:12px;font-weight:500;color:#334155;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.scene-row-select small{font-size:10px;color:#8190a2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.scene-row-select:hover strong{color:#2563eb}.scene-row-select:focus-visible{outline:2px solid #3b82f6;outline-offset:4px;border-radius:2px}.scene-row.row-selected>.tl-label,.scene-row.row-selected>.tl-arrival{background:#f1f6ff}.scene-row.row-selected>.tl-label{box-shadow:inset 3px 0 #3b82f6}
.scene-group{height:31px;background:#f8fafc}.scene-group>button{position:sticky;left:0;display:flex;align-items:center;gap:9px;max-width:100%;padding:0 14px;height:30px;border:0;background:#f8fafc;color:#64748b;font-size:11px;cursor:pointer}.scene-group .chevron{position:static;width:11px;padding:0;background:none;font-size:17px;color:#64748b}.scene-group small{font-size:10px;color:#94a3b8;font-family:var(--mono)}
.scene-bar{position:absolute;top:13px;height:26px;min-width:1px;border:1px solid transparent;border-radius:4px;padding:0 7px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px;text-align:left;cursor:pointer;z-index:1;transition:filter .12s}.scene-bar>span{position:relative;z-index:1;pointer-events:none}.scene-bar:hover{filter:brightness(.96);z-index:2}.scene-bar:focus-visible{outline:2px solid #1d4ed8;outline-offset:1px;z-index:4}.scene-bar.chosen{box-shadow:inset 0 0 0 1px #1d4ed8}.scene-bar.loading-span,.scene-bar.reservation-span,.scene-bar.lot-span{background:color-mix(in srgb,var(--vessel-color) 17%,white);border-color:color-mix(in srgb,var(--vessel-color) 45%,white);color:#27435f}.scene-bar.reservation-span{top:11px;height:30px;background:color-mix(in srgb,var(--vessel-color) 9%,white)}.scene-bar.lot-span{top:11px;height:30px;border-left:3px solid var(--vessel-color)}.scene-bar.vessel-span{top:16px;height:20px;background:color-mix(in srgb,var(--vessel-color) 10%,white);border-color:color-mix(in srgb,var(--vessel-color) 45%,white);color:#475569;font-size:10px}.scene-bar.related{border-color:var(--vessel-color)}.scene-bar.transit-span{background:#e3ebf4;border-color:#b6c5d8;color:#49617c;border-radius:3px 0 0 3px}.scene-bar.wait-span{background:#fff0cb;border-color:#e7bd61;color:#986511;border-radius:0}.scene-bar.loading-span{border-radius:0 4px 4px 0}.scene-bar.turnaround-span{height:18px;top:17px;background:repeating-linear-gradient(135deg,#cbd5e180 0 2px,#f8fafc 2px 6px);border:0;border-radius:0;padding:0;z-index:0}.resource-idle{position:absolute;top:0;bottom:0;background:repeating-linear-gradient(135deg,#dda6487a 0 2px,#fffaebdd 2px 6px);border-left:1px solid #d9b36a80;border-right:1px solid #d9b36a80;z-index:0}.scene-point{position:absolute;top:20px;width:9px;height:9px;transform:translateX(-50%) rotate(45deg);border:1px solid #fff;border-radius:1px;padding:0;z-index:2;cursor:pointer;background:#2563eb;box-shadow:0 0 0 1px #2563eb40}.scene-point:focus-visible{outline:2px solid #1d4ed8;outline-offset:2px}.scene-point.ready-point{background:#fff;border:1px solid #94a3b8;box-shadow:none}.scene-point.due-point{background:#fda4af;border:1px solid #e11d48;box-shadow:none}.scene-point:hover{box-shadow:0 0 0 3px #93c5fd70}
.resource-panel .chart-footnote{display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap;padding:10px 17px;color:#8190a2;font-size:10px}.resource-panel .lot-detail{grid-template-columns:1fr 2fr 1fr;gap:12px 20px}.resource-panel .truck-times{display:flex;gap:18px;flex-wrap:wrap}.resource-panel .truck-times span{font-size:10px}.resource-panel .truck-times b{font-size:13px;white-space:nowrap}.truck-breakdown{display:flex;gap:12px 23px;flex-wrap:wrap}.truck-breakdown b{font-weight:500;color:#475569;margin-left:4px}.truck-breakdown .wait-emphasis,.truck-breakdown .wait-emphasis b{color:#a76a12}.resource-panel .detail-footer{font-size:11px;line-height:1.7}
@media(min-width:1600px){.gantt-scroll{max-height:690px}.scene-timeline{--object-width:210px;--arrival-width:80px;--wait-width:68px}.scene-bar{font-size:11px}}
@media(max-width:799px){.resource-panel .panel-title{width:100%}.timeline-tools{width:100%;justify-content:flex-start}.gantt-keybar{align-items:flex-start;flex-wrap:wrap}.scene-legend{gap:12px}.resource-panel .lot-detail{grid-template-columns:1fr 2fr}.resource-panel .lot-detail>div:nth-last-child(2){grid-column:1/-1}.gantt-scroll{max-height:540px}}
@media(max-width:540px){.scene-timeline{--object-width:128px;--arrival-width:62px;--wait-width:52px;min-width:950px}.scene-timeline .tl-label{padding:0 9px}.scene-timeline .tl-duration{padding-right:8px}.scene-timeline .tl-row{height:49px}.scene-row-select strong{font-size:11px}.scene-row-select small{font-size:9px}.timeline-tools{gap:6px}.timeline-tools .segmented{margin-top:3px}.timeline-tools .segmented button{padding:5px 8px;font-size:10px}.resource-panel .panel-head h2{font-size:13px}.gantt-keybar{padding:10px 12px}.scene-legend{font-size:10px;gap:10px}.resource-panel .lot-detail{grid-template-columns:1fr}.resource-panel .truck-times{gap:15px}.resource-panel .chart-footnote{padding:9px 12px;font-size:9px}.gantt-scroll{max-height:480px}.timeline-source{font-size:10px}}
/* Tiny phases must retain their actual width instead of growing to fit padding. */
.scene-bar{padding:0;container-type:inline-size;container-name:gantt-bar}.scene-bar>span{display:block;padding:0 6px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.scene-legend .key-ready,.scene-legend .key-due{width:7px;height:7px;transform:rotate(45deg);border-radius:0;margin:0 2px;background:white;border:1px solid #94a3b8}.scene-legend .key-due{background:#fda4af;border-color:#e11d48}
@container gantt-bar (max-width:26px){.scene-bar>span{visibility:hidden}}
