/* JDM Desk · Dispatch, built to the design board: Day / Week / Month and Vehicles / Drivers, three cards (Problems, To assign, To plan from jobs), the timeline, a panel for the chosen task. */
.dpscreen{display:flex;flex-direction:column;overflow:auto}
.dpscreen .dpwrap{display:flex;align-items:flex-start;min-height:0}
.dpscreen .dpcol{flex:1;min-width:0}
.dpscreen .dpwrap>.side{position:sticky;top:0;align-self:stretch;max-height:calc(100vh - 64px)}
.dpscreen .vsw{display:inline-flex}
.dpscreen .vsw button{height:36px;padding:0 16px;border:1px solid var(--ctl-line);background:var(--surface);color:var(--t2);font:400 14px/20px var(--body);cursor:pointer}
.dpscreen .vsw button+button{margin-inline-start:-1px}
.dpscreen .vsw button[aria-pressed=true]{background:var(--ink);border-color:var(--ink);color:var(--on-ink);position:relative}
.dpscreen .vsw button:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
.dpscreen .dsp-bar{display:flex;flex-wrap:wrap;align-items:center;gap:12px 16px;padding:16px 24px}
.dpscreen .dsp-nav{display:inline-flex;align-items:center;gap:8px;margin-inline-start:auto}
.dpscreen .dsp-nav b{min-width:168px;text-align:center;font:500 14px/20px var(--body)}
.dpscreen .dsp-tray{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;padding:0 24px 16px}
.dpscreen .tr-c{display:flex;flex-direction:column;min-width:0;border:1px solid var(--line-strong);background:var(--surface)}
.dpscreen .tr-c h2{position:sticky;top:0;z-index:1;display:flex;align-items:center;justify-content:space-between;flex:none;height:40px;margin:0;padding:0 16px;border-bottom:1px solid var(--line);background:var(--surface);font:500 14px/20px var(--body)}
.dpscreen .tr-c h2 span{min-width:20px;padding:0 6px;background:var(--well);color:var(--t2);font:500 13px/18px var(--body);text-align:center}
.dpscreen .tr-c.hot h2 span{background:var(--bad);color:var(--on-bad)}
.dpscreen .tr-i{display:flex;flex-direction:column;flex:none;width:100%;padding:8px 16px;border:0;border-bottom:1px solid var(--line-soft);background:none;color:var(--ink);font:inherit;text-align:start}
.dpscreen button.tr-i{cursor:pointer}
.dpscreen .tr-i:hover,.dpscreen .tr-i.on{background:var(--well)}
.dpscreen .tr-i .l1{display:block;min-width:0;font:400 14px/20px var(--body);overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.dpscreen .tr-i .l1 b{margin-inline-end:8px}
.dpscreen .tr-i .l1 .dt{margin-inline-end:8px;vertical-align:middle}
.dpscreen .tr-i .l2{display:flex;align-items:center;justify-content:space-between;gap:8px;color:var(--t3);font-size:13px;line-height:20px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.dpscreen .tr-i .trb{flex:none}
.dpscreen .tr-e{margin:0;padding:12px 16px;color:var(--t3);font-size:14px;line-height:20px}
.dpscreen .dsp-tl{margin:0 24px;border:1px solid var(--line-strong);background:var(--surface);overflow:auto}
.dpscreen .tl-xs{display:none}
.dpscreen .dsp-note{margin:12px 24px 24px;color:var(--t3);font-size:13px;line-height:20px}
.dpscreen .dl{position:relative;display:grid;grid-template-columns:184px minmax(0,1fr);min-width:900px}
.dpscreen .dl-corner,.dpscreen .wk-c{position:sticky;inset-inline-start:0;z-index:3;display:flex;align-items:center;height:40px;padding:0 16px;background:var(--surface);border-bottom:1px solid var(--line);border-inline-end:1px solid var(--line);color:var(--t3);font:var(--lbl)}
.dpscreen .wk-c{height:48px}
.dpscreen .dl-hrs{display:grid;grid-template-columns:repeat(16,1fr);height:40px;border-bottom:1px solid var(--line);color:var(--t3);font:400 13px/18px var(--mono)}
.dpscreen .dl-hrs span{padding-inline-start:6px;border-inline-start:1px solid var(--line-soft)}
.dpscreen .dl-r,.dpscreen .wk-r{position:sticky;inset-inline-start:0;z-index:2;display:flex;flex-direction:column;justify-content:center;padding:0 16px;background:var(--surface);border-bottom:1px solid var(--line);border-inline-end:1px solid var(--line)}
.dpscreen .wk-r{padding:12px 16px;z-index:1}
.dpscreen .dl-r .nm,.dpscreen .wk-r .nm{font-weight:500;font-size:14px;line-height:20px}
.dpscreen .dl-r .sub,.dpscreen .wk-r .sub{color:var(--t3);font-size:13px;line-height:20px}
.dpscreen .dl-l{position:relative;height:calc(var(--tr,1)*40px + 16px);min-height:64px;border-bottom:1px solid var(--line);background-image:linear-gradient(to right,var(--line-soft) 1px,transparent 1px);background-size:calc(100%/16) 100%}
.dpscreen .dl-l.we{background-color:var(--well)}
.dpscreen .dl-off{position:absolute;top:0;bottom:0;background:color-mix(in srgb,var(--well) 80%,transparent);pointer-events:none}
.dpscreen .dl-free{position:absolute;inset-inline-start:12px;top:50%;transform:translateY(-50%);color:var(--t3);font-size:13px;line-height:20px;pointer-events:none}
.dpscreen .dl-blk{position:absolute;top:0;bottom:0;border-inline:1px solid var(--line-strong);background:repeating-linear-gradient(135deg,transparent 0 6px,var(--line) 6px 7px);display:flex;align-items:center;justify-content:center;pointer-events:none}
.dpscreen .dl-blk em,.dpscreen .wk-d em{padding:0 6px;background:var(--surface);color:var(--t2);font:400 13px/18px var(--body);font-style:normal}
.dpscreen .dl-b{position:absolute;z-index:1;top:calc(8px + var(--t,0)*40px);height:42px;min-width:36px;display:flex;flex-direction:column;justify-content:center;padding:0 8px;border:1px solid var(--ink);background:var(--surface);color:var(--ink);font:inherit;text-align:start;cursor:pointer;overflow:hidden}
.dpscreen .dl-b .b1{display:flex;gap:6px;align-items:baseline;font:400 13px/18px var(--body);white-space:nowrap;overflow:hidden}
.dpscreen .dl-b .b1 span{overflow:hidden;text-overflow:ellipsis}
.dpscreen .dl-b .b1 i{font-style:normal;color:var(--t3)}
.dpscreen .dl-b .b2{font-size:13px;line-height:20px;color:var(--t3);white-space:nowrap}
.dpscreen .dl-b.way,.dpscreen .wk-t.way{background:var(--ink);color:var(--on-ink)}
.dpscreen .dl-b.way .b2,.dpscreen .dl-b.way .b1 i{color:color-mix(in srgb,var(--on-ink) 72%,transparent)}
.dpscreen .dl-b.done,.dpscreen .wk-t.done{background:var(--well);border-color:var(--line-strong);color:var(--t2)}
.dpscreen .dl-b.clash,.dpscreen .wk-t.clash{border-color:var(--bad);box-shadow:inset 0 0 0 1px var(--bad)}
.dpscreen .dl-b.sel,.dpscreen .wk-t.sel{outline:2px solid var(--ink);outline-offset:2px;z-index:2}
.dpscreen .dl-b:focus-visible,.dpscreen .wk-t:focus-visible,.dpscreen .tr-i:focus-visible,.dpscreen .ag-i:focus-visible,.dpscreen .wk-h:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
.dpscreen .dl-now{position:absolute;top:40px;bottom:0;width:0;border-inline-start:2px dashed var(--accent);pointer-events:none;z-index:2}
.dpscreen .dl-now em{position:absolute;top:-36px;inset-inline-start:0;transform:translateX(-50%);padding:0 6px;background:var(--accent);color:var(--on-ink);font:500 13px/18px var(--body);font-style:normal}
.dpscreen .wk{display:grid;grid-template-columns:184px repeat(7,minmax(112px,1fr));min-width:1000px}
.dpscreen .wk-h{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;height:48px;padding:0 8px;border:0;border-bottom:1px solid var(--line);border-inline-start:1px solid var(--line-soft);background:var(--surface);color:var(--t2);font:400 13px/18px var(--body);cursor:pointer}
.dpscreen .wk-h b{color:var(--ink);font:500 14px/20px var(--body)}
.dpscreen .wk-h.we{background:var(--well)}
.dpscreen .wk-h.on{box-shadow:inset 0 -2px 0 var(--ink)}
.dpscreen .wk-d{display:flex;flex-direction:column;gap:4px;min-height:88px;padding:8px;border-bottom:1px solid var(--line);border-inline-start:1px solid var(--line-soft);background:color-mix(in srgb,var(--ink) calc(var(--h,0)*1%),var(--surface))}
.dpscreen .wk-d.we{background-color:var(--well)}
.dpscreen .wk-d.blk{background-image:repeating-linear-gradient(135deg,transparent 0 6px,var(--line) 6px 7px)}
.dpscreen .wk-d em{align-self:flex-start}
.dpscreen .wk-t{display:flex;justify-content:space-between;gap:8px;width:100%;padding:0 8px;height:24px;align-items:center;border:1px solid var(--ink);background:var(--surface);color:var(--ink);font:400 13px/18px var(--body);cursor:pointer}
.dpscreen .wk-more{align-self:flex-start;padding:0;border:0;background:none;color:var(--t2);font-size:13px;line-height:20px;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.dpscreen .mo{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));min-width:640px}
.dpscreen .mo-h{display:flex;align-items:center;height:40px;padding:0 8px;border-bottom:1px solid var(--line);border-inline-start:1px solid var(--line-soft);background:var(--surface);color:var(--t3);font:var(--lbl)}
.dpscreen .mo-h:first-child,.dpscreen .mo-d:nth-child(7n+8){border-inline-start:0}
.dpscreen .mo-h.we,.dpscreen .mo-d.we{background:var(--well)}
.dpscreen .mo-d{display:flex;flex-direction:column;align-items:flex-start;gap:4px;min-width:0;min-height:96px;padding:8px;border:0;border-bottom:1px solid var(--line);border-inline-start:1px solid var(--line-soft);background:var(--surface);color:var(--ink);font:400 13px/18px var(--body);text-align:start}
.dpscreen button.mo-d{cursor:pointer}
.dpscreen .mo-d.out{background:var(--ground)}
.dpscreen .mo-d>b{display:flex;align-items:baseline;gap:8px;font:500 14px/20px var(--body)}
.dpscreen .mo-d>b i{font:var(--lbl);font-style:normal;color:var(--accent)}
.dpscreen .mo-d.on{box-shadow:inset 0 -2px 0 var(--ink)}
.dpscreen button.mo-d:hover{background:var(--well)}
.dpscreen .mo-d:focus-visible{outline:2px solid var(--ink);outline-offset:-2px}
.dpscreen .mo-n{color:var(--t2)}.dpscreen .mo-e{color:var(--t3)}
.dpscreen .mo-t{display:flex;gap:6px;width:100%;min-width:0;padding:0 8px;border:1px solid var(--ink);background:var(--surface);overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.dpscreen .mo-t.way{background:var(--ink);color:var(--on-ink)}
.dpscreen .mo-t.done{background:var(--well);border-color:var(--line-strong);color:var(--t2)}
.dpscreen .mo-m{color:var(--t2);text-decoration:underline;text-underline-offset:3px}
.dpscreen .mo-p{display:flex;align-items:center;gap:8px;color:var(--bad)}
.dpscreen .ag-s h3{display:flex;justify-content:space-between;margin:0;padding:8px 16px;background:var(--well);color:var(--t3);font:var(--lbl)}
.dpscreen .ag-s h3 span{letter-spacing:0;text-transform:none;font-weight:500}
.dpscreen .ag-i{display:grid;grid-template-columns:52px minmax(0,1fr);gap:12px;width:100%;padding:12px 16px;border:0;border-bottom:1px solid var(--line-soft);background:var(--surface);color:var(--ink);font:inherit;text-align:start;cursor:pointer}
.dpscreen .ag-i .tm{padding-top:2px;color:var(--t2)}
.dpscreen .ag-i .l1{display:flex;gap:8px;align-items:baseline;font:500 14px/20px var(--body);overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.dpscreen .ag-i .l2{display:flex;align-items:center;gap:8px;color:var(--t2);font-size:13px;line-height:20px}
.dpscreen .ag-free{margin:0;padding:12px 16px;color:var(--t3);font-size:14px}
.dpscreen .dpfacts{display:grid;grid-template-columns:96px minmax(0,1fr);gap:8px 12px;margin:16px 0 0;font-size:14px;line-height:20px}
.dpscreen .dpfacts dt{color:var(--t3)}.dpscreen .dpfacts dd{margin:0;min-width:0;overflow-wrap:anywhere}.dpscreen .dpfacts .none{color:var(--t3)}
.dpscreen .dpok{display:flex;align-items:center;gap:8px;margin:16px 0 0;color:var(--t2);font-size:14px}
.dpscreen .side .dp-chk{margin:16px 0 0}
@media (max-width:1119px){.dpscreen .dpwrap{display:block}}
@media (max-width:760px){
.dpscreen .dsp-bar{padding:16px 16px 12px}
.dpscreen .dsp-nav{margin-inline-start:0;width:100%;justify-content:space-between}
.dpscreen .dsp-tray{grid-template-columns:minmax(0,1fr);padding:0 16px 16px}
.dpscreen .tr-c{max-height:none}
.dpscreen .tl-wide{display:none}.dpscreen .tl-xs{display:block}
.dpscreen .dsp-tl{margin:0;border-width:1px 0}
.dpscreen .dsp-note{margin:12px 16px 24px}
}
.dlg .dp-res{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:4px 16px;margin:0 0 16px}
.dlg .dp-res h3{grid-column:1/-1;margin:8px 0 0;font:var(--lbl);color:var(--t3)}
.dlg .dp-ck{display:flex;align-items:center;gap:8px;font-size:14px;min-width:0}
.dlg .dp-ck input{width:auto;height:auto}
.dlg .dp-ck.off{color:var(--t3)}
.dlg .dp-chk{margin:0 0 16px;padding:0;list-style:none;color:var(--ink);font-size:14px}
.dlg .dp-chk li{display:flex;align-items:center;gap:8px;padding:4px 0}
.dlg .fld textarea.ta{height:auto;padding:8px 10px}
.dpscreen .side-foot{padding:24px 16px 16px}
.dpscreen .wk-t b,.dpscreen .wk-t span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dpscreen .u-empty a.btn{text-decoration:none}

.dpscreen .mo-bar{display:block;width:100%;height:4px;background:var(--line-soft)}.dpscreen .mo-bar::after{content:'';display:block;width:var(--w);height:100%;background:var(--ink)}.dpscreen .mo-bar.bad::after{background:var(--bad)}
.dpscreen .mo-d.out{background:var(--ground)}

/* Quiet task blocks (24 Oct 2026, look-dispatch-chips): a 1 px grey line and 4 px corners instead of a black outline; "on the way" is a left bar, not a filled black block. */
.dpscreen .dl-b,.dpscreen .wk-t,.dpscreen .mo-t{border-color:var(--line-strong);border-radius:4px}
.dpscreen .dl-b.way,.dpscreen .wk-t.way,.dpscreen .mo-t.way{background:var(--well);color:var(--ink);border-color:var(--line-strong);box-shadow:inset 3px 0 0 var(--ink)}
.dpscreen .dl-b.way .b2,.dpscreen .dl-b.way .b1 i{color:var(--t3)}
.dpscreen .dl-b.done,.dpscreen .wk-t.done,.dpscreen .mo-t.done{background:transparent;border-color:var(--line);color:var(--t3)}
.dpscreen .dl-b.clash,.dpscreen .wk-t.clash,.dpscreen .mo-t.clash{border-color:var(--bad);box-shadow:inset 0 0 0 1px var(--bad)}
.dpscreen .mo-t b.mono,.dpscreen .wk-t b.mono,.dpscreen .dl-b b.mono{font-weight:400}
