.dispatch-page .dispatch-page-intro { align-items: center; }
.dispatch-page .dispatch-view-tabs, .dispatch-page #dispatchSuggestionsSection,
.dispatch-page #dispatchSetupSection, .dispatch-page #dispatchPeriodContent { display: none !important; }
.dispatch-page .dispatch-metrics { display: flex; gap: .7rem; flex-wrap: wrap; margin: 0 0 1rem; }
.dispatch-page .dispatch-metric-card { min-width: 7rem; flex: 1; display: flex; align-items: baseline; gap: .45rem; padding: .75rem 1rem; }
.dispatch-page .dispatch-metric-card strong { font-size: 1.35rem; }
.dispatch-board { display: grid; grid-template-columns: minmax(14rem, 18rem) minmax(0, 1fr); align-items: start; gap: 1rem; }
.dispatch-board .dashboard-section { min-width: 0; }
.dispatch-roster { position: sticky; top: 1rem; }
.dispatch-roster .section-heading, .dispatch-work .section-heading { margin-bottom: .6rem; }
.dispatch-roster .page-subtitle { font-size: .78rem; line-height: 1.35; margin: .25rem 0 0; }
.dispatch-page .dispatch-worker-grid { display: flex; flex-direction: column; gap: .35rem; }
.dispatch-roster-worker { display: flex; align-items: center; gap: .55rem; min-width: 0; padding: .55rem; border: 1px solid var(--border-color, #dfe6e5); border-radius: .75rem; background: var(--surface, #fff); }
.dispatch-roster-worker.is-selected { border-color: #248263; background: #eef8f2; }
.dispatch-avatar { display: grid; place-items: center; flex: 0 0 2.1rem; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: #e9f2ee; color: #205a49; font-size: .72rem; font-weight: 800; }
.dispatch-roster-copy { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.dispatch-roster-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dispatch-roster-copy small { color: #52635f; font-size: .72rem; white-space: normal; }
.dispatch-drag-handle { margin-left: auto; flex: 0 0 2.5rem; min-width: 2.5rem; min-height: 2.5rem; border: 1px solid #a9c6b8; border-radius: .65rem; background: #f2f8f4; color: #22644c; touch-action: auto; user-select: none; -webkit-user-select: none; font-weight: 800; cursor: grab; }
.dispatch-drag-handle:focus-visible, .dispatch-board-card button:focus-visible { outline: 3px solid #338968; outline-offset: 2px; }
.dispatch-page .dispatch-item-list { display: flex; flex-direction: column; gap: .85rem; }
.dispatch-board-group h3 { display: flex; align-items: center; gap: .5rem; margin: 0 0 .4rem; font-size: .85rem; letter-spacing: .02em; text-transform: uppercase; color: #385149; }
.dispatch-board-group h3 span { display: inline-grid; place-items: center; min-width: 1.3rem; height: 1.3rem; padding: 0 .3rem; border-radius: 1rem; background: #e9f2ee; font-size: .72rem; }
.dispatch-board-cards { display: grid; gap: .55rem; }
.dispatch-board-card { display: flex; flex-direction: column; gap: .35rem; padding: .85rem; border: 1px solid #dce5e1; border-radius: .85rem; background: #fff; box-shadow: 0 2px 12px rgba(22, 60, 46, .05); }
.dispatch-board-card.is-select-target { border-color: #248263; cursor: pointer; }
.dispatch-board-card.is-drop-target { border: 2px solid #248263; background: #eef8f2; }
.dispatch-board-card.is-saving { opacity: .68; }
.dispatch-card-top { display: flex; align-items: center; gap: .3rem; flex-wrap: wrap; }
.dispatch-card-time { margin-right: auto; font-weight: 800; font-size: .88rem; }
.dispatch-card-badge { padding: .15rem .4rem; border-radius: .35rem; background: #edf3f1; color: #2c6250; font-size: .68rem; font-weight: 700; }
.dispatch-card-title { font-size: 1rem; }
.dispatch-card-customer, .dispatch-card-location, .dispatch-card-scope { font-size: .78rem; color: #52635f; }
.dispatch-card-location::before { content: "⌖ "; }
.dispatch-card-scope { color: #245b49; font-weight: 650; }
.dispatch-card-crew { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .25rem; }
.dispatch-assignee-chip { display: flex; flex-direction: column; align-items: start; min-height: 2.5rem; padding: .32rem .55rem; border: 1px solid #bfd7cc; border-radius: .5rem; background: #f3faf6; color: #214c3e; text-align: left; }
.dispatch-assignee-chip small { font-size: .68rem; }
.dispatch-no-crew, .dispatch-pending { font-size: .76rem; color: #6a746f; }
.dispatch-card-actions { display: flex; align-items: center; justify-content: flex-end; gap: .35rem; margin-top: .25rem; }
.dispatch-execution-state { margin-right: auto; font-size: .72rem; font-weight: 700; color: #476657; }
.dispatch-offline-copy { padding: .65rem; border-radius: .5rem; background: #fff4df; color: #775216; }
.dispatch-crew-sheet[hidden] { display: none; }
.dispatch-crew-sheet { position: fixed; inset: 0; z-index: 10020; display: flex; align-items: flex-end; justify-content: center; background: rgba(9, 32, 24, .45); }
.dispatch-crew-sheet-panel { width: min(100%, 32rem); max-height: min(80vh, 42rem); overflow: auto; padding: 1rem; border-radius: 1rem 1rem 0 0; background: #fff; box-shadow: 0 -8px 35px rgba(0,0,0,.15); }
.dispatch-crew-sheet-heading, .dispatch-sheet-worker { display: flex; align-items: center; justify-content: space-between; gap: .7rem; }
.dispatch-crew-sheet-heading h3 { margin: 0; }
.dispatch-crew-sheet-panel > p { margin: .4rem 0 1rem; font-size: .84rem; color: #4d665b; }
.dispatch-sheet-worker { min-height: 3.4rem; padding: .55rem 0; border-top: 1px solid #e5ece8; }
.dispatch-sheet-worker span { display: flex; flex-direction: column; }
.dispatch-sheet-worker small { font-size: .72rem; color: #61746b; }
.dispatch-sheet-worker.is-selected { background: #f2f9f4; }
.dispatch-crew-sheet-panel > button:last-child { margin-top: .9rem; width: 100%; }
.dispatch-is-dragging .dispatch-board-card:not(.is-drop-target) { border-style: dashed; }
.dispatch-drag-ghost { position: fixed; z-index: 10050; pointer-events: none; padding: .4rem .65rem; border-radius: .55rem; background: #235c47; color: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.25); font-weight: 700; }
@media (pointer: coarse) {
  .dispatch-drag-handle { cursor: pointer; }
}
@media (max-width: 760px) {
  .dispatch-board { display: block; }
  .dispatch-roster { position: sticky; top: 0; z-index: 8; margin-bottom: .7rem; padding: .55rem; background: #f7faf8; }
  .dispatch-roster .section-heading { margin-bottom: .25rem; }
  .dispatch-roster .page-subtitle { font-size: .72rem; }
  .dispatch-page .dispatch-worker-grid { flex-direction: row; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: x proximity; padding-bottom: .3rem; }
  .dispatch-roster-worker { flex: 0 0 11.4rem; scroll-snap-align: start; }
  .dispatch-card-actions button { min-height: 2.7rem; }
}
