.dispatch-page {height:100%;min-height:0;min-width:0;box-sizing:border-box;overflow-y:auto;overflow-x:hidden;padding:20px;overscroll-behavior-y:contain;}
.dispatch-head,.dispatch-actions {display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;}
.dispatch-head h1 {font-size:22px;margin:0 0 12px;}
.dispatch-page button,.dispatch-page input {min-height:38px;border:2px solid #a8c9e8;border-radius:6px;padding:6px 12px;background:#fff;color:#164979;font:inherit;}
.dispatch-page button {cursor:pointer;}
.dispatch-page button:disabled {opacity:.55;cursor:wait;}
.dispatch-page button[aria-pressed="true"] {background:#087cc8;color:white;border-color:#087cc8;}
.dispatch-tabs {display:flex;gap:8px;flex-wrap:wrap;margin:12px 0;}
.dispatch-status {font-size:13px;margin:10px 0;color:#315778;}
.dispatch-error {border:2px solid #d35454;background:#fff2f2;padding:12px;color:#8f2424;white-space:pre-wrap;}
.dispatch-empty,.dispatch-card {border:2px solid #b3cde4;border-radius:8px;background:#fff;padding:16px;margin:12px 0;}
.dispatch-card label {display:block;margin:12px 0;}
.dispatch-card input {display:block;width:100%;box-sizing:border-box;margin-top:6px;}
.dispatch-scroll {overflow:auto;max-width:100%;max-height:72vh;border:2px solid #809fb9;background:white;overscroll-behavior:contain;}
.dispatch-table {border-collapse:collapse;table-layout:fixed;color:#111;}
.dispatch-table td {box-sizing:border-box;border:1px solid #657787;padding:2px 4px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.25;}
.dispatch-secret {width:100%;box-sizing:border-box;min-height:260px;font-family:monospace;font-size:12px;}
.dispatch-setup-guide {line-height:1.8;padding-left:24px;}
@media(max-width:600px){.dispatch-page{padding:12px 12px 90px;}.dispatch-tabs button{flex:1;padding:6px;}.dispatch-scroll{max-height:65vh;}}

/* Keep the dispatch grid inside its own touch-scroll viewport. */
#dispatchPage {overflow:hidden;}
#dispatchWorkspace {height:100%;min-height:0;min-width:0;display:flex;flex-direction:column;}
#dispatchWorkspace > :not(.dispatch-scroll) {flex-shrink:0;}
#dispatchWorkspace .dispatch-scroll {flex:1 1 auto;min-height:0;min-width:0;max-height:none;width:100%;box-sizing:border-box;overflow:auto;touch-action:pan-x pan-y pinch-zoom;-webkit-overflow-scrolling:touch;}
.dispatch-mine {display:inline-flex;align-items:center;gap:8px;align-self:flex-start;min-height:38px;cursor:pointer;}
.dispatch-page .dispatch-mine input[type=checkbox] {width:20px;height:20px;min-height:20px;margin:0;padding:0;flex:none;}

.dispatch-fullscreen-button {display:none;}
@media(min-width:901px){
  .dispatch-fullscreen-button {display:inline-flex;align-items:center;justify-content:center;}
}
body.dispatch-expanded-body {overflow:hidden;}
#dispatchWorkspace.dispatch-expanded {
  position:fixed;inset:0;z-index:10000;width:100%;height:100%;height:100dvh;
  padding:20px;box-sizing:border-box;background:#eef8ff;overflow:hidden;
}
#dispatchWorkspace:fullscreen {background:#eef8ff;}


.dispatch-tabs {flex-wrap:nowrap;overflow-x:auto;min-width:0;padding:3px;overscroll-behavior-x:contain;}
.dispatch-tabs button {flex:none;white-space:nowrap;}
.dispatch-board-date {align-self:flex-start;margin:0 0 8px;border-radius:6px;padding:5px 10px;font-weight:bold;}
.dispatch-page .dispatch-day-saturday {background:#e5f5ff;}
.dispatch-page .dispatch-day-sunday {background:#ffe8ee;}
.dispatch-page .dispatch-day-holiday {background:#fff0dc;}
.dispatch-tabs button[aria-pressed="true"] {outline:2px solid #087cc8;outline-offset:1px;}
.dispatch-tabs button:not(.dispatch-day-weekday)[aria-pressed="true"] {color:#164979;}
#dispatchHolidayForm {display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap;}
#dispatchHolidayForm label {margin:0;}
#dispatchHolidays li {margin:6px 0;}
