/* Schedule and sliding workspace, using Armor's existing palette. */
.dispatch-day-scroll{max-height:72vh}
.cal-time-grid.dispatch-day-grid{grid-template-columns:62px repeat(var(--day-columns),minmax(230px,1fr));min-width:calc(62px + var(--day-columns) * 230px);width:100%;align-items:stretch}
.dispatch-day-grid>.cal-time-corner{position:sticky;left:0;z-index:6;display:grid;align-content:center;font-size:10px;letter-spacing:1px}
.dispatch-employee-head{position:sticky;top:0;z-index:4;display:flex;align-items:center;gap:10px;min-height:80px;padding:14px 12px;background:#f7faf8;border-bottom:1px solid #dce6df;border-left:1px solid #e4ebe9}
.dispatch-employee-head>div{flex:1;min-width:0}.dispatch-employee-head strong{display:block;color:#29573f;font-size:12px;overflow-wrap:anywhere}.dispatch-employee-head small{display:block;margin-top:5px;color:#748779;font-size:10px}.dispatch-employee-head .avatar{flex-shrink:0;width:30px;height:30px;font-size:10px}
.dispatch-day-grid>.cal-hours{position:sticky;left:0;z-index:3;background:#f8faf8;border-right:1px solid #dce6df}
.dispatch-day-events{position:absolute;inset:0 34px 0 0;pointer-events:none}.dispatch-day-events>.cal-visit{pointer-events:auto}
.dispatch-day-events .cal-visit>*{flex-shrink:0}
.dispatch-day-events .cal-visit.compact{flex-direction:row;align-items:center;gap:5px}
.dispatch-day-events .cal-visit.compact strong{min-width:0;flex:1;white-space:nowrap}
.dispatch-employee-day .dispatch-hour{right:4px}
.dispatch-layout{display:grid;grid-template-columns:214px minmax(0,1fr);gap:20px;align-items:start}.dispatch-main{min-width:0}.dispatch-mini{padding:12px;position:sticky;top:90px}.dispatch-mini-head{display:flex;align-items:center;justify-content:space-between;font-size:12px}.dispatch-mini-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:2px;margin-top:12px}.dispatch-mini-grid span{text-align:center;font-size:10px;color:#798980;padding:5px 0}.dispatch-mini-grid button{border:0;background:transparent;border-radius:5px;padding:7px 0;font-size:11px;color:#324a40;cursor:pointer}.dispatch-mini-grid button.muted{color:#a7b1aa}.dispatch-mini-grid button.in-week{background:#eaf3ed}.dispatch-mini-grid button.selected{background:#256856;color:#fff}.dispatch-mini-grid button.is-today{box-shadow:inset 0 0 0 1px #256856}.dispatch-mini-note{font-size:10px;color:#7e8b83;margin:12px 0 18px}.dispatch-legend{border-top:1px solid #e4ebe9;padding-top:12px}.dispatch-legend h3{font-size:11px;letter-spacing:1px;text-transform:uppercase;margin:5px 5px 12px}.dispatch-legend button{display:flex;align-items:center;gap:9px;width:100%;font:inherit;font-size:11px;border:0;border-radius:5px;background:none;padding:7px 5px;text-align:left;color:#556b60;cursor:pointer}.dispatch-legend button.active{background:#eaf3ed;font-weight:700}.dispatch-dot{width:9px;height:9px;border-radius:3px;background:var(--dispatch-color);flex-shrink:0}.dispatch-install{--dispatch-color:#258271;--dispatch-bg:#e8f4ef;--dispatch-ink:#205647}.dispatch-maintenance{--dispatch-color:#748c30;--dispatch-bg:#f0f5df;--dispatch-ink:#4f641b}.dispatch-repair{--dispatch-color:#c55c49;--dispatch-bg:#fceee9;--dispatch-ink:#873c30}.dispatch-survey{--dispatch-color:#40869c;--dispatch-bg:#e7f2f8;--dispatch-ink:#2d6078}.dispatch-commission{--dispatch-color:#7b66a3;--dispatch-bg:#f0ecf9;--dispatch-ink:#5c4488}.dispatch-service{--dispatch-color:#bd8938;--dispatch-bg:#fbf2dc;--dispatch-ink:#785719}.dispatch-phone{--dispatch-color:#2672bb;--dispatch-bg:#eaf2ff;--dispatch-ink:#245b91}.dispatch-estimate{--dispatch-color:#9662ba;--dispatch-bg:#f4eafb;--dispatch-ink:#71458d}.dispatch-task{--dispatch-color:#6c788b;--dispatch-bg:#edf0f5;--dispatch-ink:#4a596e}.cal-visit[class*='dispatch-']{background:var(--dispatch-bg);color:var(--dispatch-ink);border-left-color:var(--dispatch-color)}.cal-visit .dispatch-kind{font-size:9px;font-weight:750;text-transform:uppercase;letter-spacing:.35px;order:-1;margin-bottom:3px}.cal-visit.compact .dispatch-kind{display:none}.dispatch-board-scroll{overflow:auto;max-height:72vh}.dispatch-board{display:grid;grid-template-columns:158px repeat(7,minmax(138px,1fr));min-width:1124px}.dispatch-board-corner,.dispatch-day-head{position:sticky;top:0;z-index:3;background:#f7faf8;border-bottom:1px solid #dfe7e3;min-height:69px;padding:12px;display:flex;gap:5px;align-items:center;justify-content:space-between}.dispatch-board-corner{left:0;z-index:5;font-size:9px;font-weight:800;letter-spacing:1px;color:#687d71}.dispatch-day-head button:not(.dispatch-add){border:0;background:none;cursor:pointer;color:#63776b;text-align:left;font:inherit}.dispatch-day-head span{display:block;font-size:10px;text-transform:uppercase;letter-spacing:.8px}.dispatch-day-head strong{display:block;font-size:21px;margin-top:3px;color:#29573f}.dispatch-day-head.today{background:#e7f2ec}.dispatch-add{border:1px solid #d5e2d9;border-radius:5px;width:26px;height:26px;padding:0;background:#fff;color:#39785e;font-size:19px;line-height:1;cursor:pointer;flex-shrink:0}.dispatch-add:hover{background:#e6f2e9;border-color:#75a18b}.dispatch-person{position:sticky;left:0;z-index:2;background:#fafcfb;border-bottom:1px solid #e1e8e3;padding:20px 14px;display:flex;align-items:flex-start;flex-direction:column;gap:5px}.dispatch-person .avatar{margin-bottom:6px}.dispatch-person strong{font-size:12px}.dispatch-person small,.dispatch-person>span:last-child{font-size:10px;color:#798a7f}.dispatch-slot{position:relative;min-height:182px;padding:9px 7px 38px;border-left:1px solid #e1e8e3;border-bottom:1px solid #e1e8e3;background:white}.dispatch-slot.today{background:#f7fbf8}.dispatch-slot>.dispatch-add,.cal-cell>.dispatch-add{position:absolute;bottom:7px;right:7px}.dispatch-slot .cal-visit{margin-bottom:6px;min-height:98px}.dispatch-role-tabs button{font-size:11px;padding:7px 10px}.dispatch-layout .cal-filters{gap:11px}.dispatch-layout .cal-filters label{font-size:10px}.dispatch-layout .cal-filters select{max-width:150px}.dispatch-layout .cal-toolbar{padding:16px}.dispatch-layout .cal-navigation h2{font-size:17px}.dispatch-unscheduled{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:10px}.dispatch-unscheduled .cal-visit{max-width:340px}.dispatch-hour{position:absolute;right:5px;height:72px;display:flex;align-items:center;z-index:2}.dispatch-empty{grid-column:1/-1;padding:25px}.dispatch-new-menu{position:fixed;width:246px;padding:7px;border:1px solid #d9e5dd;border-radius:10px;background:#fff;box-shadow:0 14px 45px #193d332a;z-index:140}.dispatch-menu-title{display:flex;align-items:center;justify-content:space-between;font-size:11px;color:#687d71;padding:0 8px;border-bottom:1px solid #e5ece7;margin-bottom:5px}.dispatch-new-menu>button{display:flex;align-items:center;gap:12px;width:100%;padding:12px 10px;background:none;border:0;border-radius:6px;color:#294f3c;font:inherit;font-size:12px;cursor:pointer}.dispatch-new-menu>button:hover{background:#edf5ef}.dispatch-new-menu .icon{width:16px;height:16px}
.dispatch-overlay.overlay,.dispatch-overlay.drawer-overlay{display:block;position:fixed;inset:0;pointer-events:none;background:none;padding:0;z-index:110;backdrop-filter:none}.schedule-drawer.modal,.schedule-drawer.drawer{position:absolute;top:0;right:0;bottom:0;height:100dvh;max-height:none;max-width:100vw;margin:0;border-radius:0;pointer-events:auto;box-shadow:-10px 0 45px #1b3c332b;background:#fff;display:flex;flex-direction:column;overflow:visible;animation:dispatch-slide .22s ease-out;transition:transform .22s ease-out}.schedule-drawer .modal-header,.schedule-drawer .drawer-top{flex-shrink:0;padding:20px 23px;gap:8px;min-height:75px;display:flex}.schedule-drawer .modal-header>div:first-child,.schedule-drawer .drawer-top>span{flex:1}.dispatch-window-controls{display:flex;gap:3px;margin-left:auto}.schedule-drawer-tabs{display:flex;flex-shrink:0;border-bottom:1px solid #dce6df;background:#f8faf8;padding:0 20px}.schedule-drawer-tabs button{flex:1;padding:15px 5px;white-space:nowrap;border:0;border-bottom:3px solid transparent;background:none;color:#718074;font:inherit;font-size:12px;font-weight:600;cursor:pointer}.schedule-drawer-tabs button[aria-selected=true]{color:#206449;border-bottom-color:#2c795a}.schedule-drawer-actions{display:flex;gap:10px;justify-content:space-between;align-items:center;min-height:57px;padding:10px 23px;border-bottom:1px solid #e7eee9;flex-shrink:0}.dispatch-context-actions{display:flex;flex-wrap:wrap;gap:7px;align-items:center}.dispatch-edit-label{font-size:11px;color:#718074;margin-right:6px}.schedule-drawer #record-form,.schedule-drawer>form{display:flex;flex-direction:column;min-height:0;flex:1}.schedule-drawer .modal-content,.schedule-drawer .drawer-body{min-height:0;overflow:auto;flex:1;padding:24px}.schedule-drawer [data-panel-pane][hidden]{display:none!important}.schedule-drawer [data-panel-pane]{min-width:0}.schedule-drawer .modal-footer{flex-shrink:0;border-top:1px solid #e5ece7;margin:0}.dispatch-context{margin-bottom:20px}.dispatch-context:empty{display:none}.dispatch-context h3{font-size:16px;margin:0 0 15px}.dispatch-context h4{margin:24px 0 8px;font-size:11px;color:#708275;text-transform:uppercase;letter-spacing:.5px}.dispatch-facts{display:grid;grid-template-columns:110px 1fr;gap:12px;font-size:12px;line-height:1.55;margin:18px 0}.dispatch-facts dt{color:#7a8a80}.dispatch-facts dd{margin:0;overflow-wrap:anywhere}.dispatch-related{border:1px solid #e2e9e4;background:#fff;border-radius:8px;width:100%;display:flex;align-items:center;text-align:left;gap:14px;margin:8px 0;padding:13px;color:#3c5847;font:inherit;cursor:pointer}.dispatch-related>span:first-child{flex:1;min-width:0}.dispatch-related strong{font-size:12px;overflow-wrap:anywhere}.dispatch-related small{display:block;font-size:10px;color:#7c8c81;margin-top:5px}.dispatch-related:disabled{opacity:1;cursor:default}.dispatch-related .icon{width:15px}.dispatch-resize{position:absolute;top:0;bottom:0;left:-5px;width:10px;cursor:ew-resize;z-index:5;touch-action:none}.dispatch-resize:hover,.dispatch-resize:focus{background:#3a92754d}.dispatch-resize:after{content:'';position:absolute;top:45%;left:3px;width:4px;height:44px;border-radius:4px;background:#6b9b87}.schedule-drawer.dispatch-full{width:100%!important}.schedule-drawer.dispatch-collapsed{transform:translateX(100%)}.dispatch-restore{display:none;position:absolute;top:38%;left:-37px;width:37px;border:1px solid #d6e5db;border-radius:8px 0 0 8px;background:#1e614a;color:#fff;padding:15px 8px;font-size:20px;cursor:pointer}.dispatch-restore span{writing-mode:vertical-rl;font-size:11px;margin-top:10px}.dispatch-collapsed .dispatch-restore{display:block}.dispatch-discard{padding:15px 23px;display:flex;align-items:center;gap:10px;flex-wrap:wrap;background:#fff6e4;border-bottom:1px solid #ead7b1;font-size:12px}.dispatch-discard strong{flex:1}.schedule-drawer :focus-visible,.dispatch-new-menu :focus-visible,.dispatch-layout :focus-visible{outline:2px solid #367f69;outline-offset:2px}.schedule-drawer .line-editor{overflow-x:auto}.schedule-drawer .line-row,.schedule-drawer .line-head{min-width:450px}
@keyframes dispatch-slide{from{transform:translateX(100%)}to{transform:translateX(0)}}@media(max-width:1200px){.dispatch-layout{grid-template-columns:1fr}.dispatch-mini{position:static;display:none}.dispatch-layout .cal-toolbar{gap:15px}.dispatch-layout .cal-filters{gap:13px}}@media(max-width:650px){.schedule-drawer.modal,.schedule-drawer.drawer{width:100%!important}.schedule-drawer .modal-header,.schedule-drawer .drawer-top{padding:14px;min-height:68px}.schedule-drawer-tabs{padding:0 8px}.schedule-drawer-tabs button{font-size:11px}.schedule-drawer-actions{padding:10px 14px}.dispatch-record-tab{display:none}.schedule-drawer .modal-content,.schedule-drawer .drawer-body{padding:18px}.schedule-drawer .form-grid{grid-template-columns:1fr}.schedule-drawer .form-grid>.field{grid-column:1}.schedule-drawer .dispatch-resize{display:none}.dispatch-facts{grid-template-columns:85px 1fr}.schedule-drawer .line-editor{max-width:calc(100vw - 36px)}}@media(prefers-reduced-motion:reduce){.schedule-drawer.modal,.schedule-drawer.drawer{animation:none;transition:none}}

.dispatch-move-hint{font-size:11px;color:#6f8177;margin:0 0 15px}.cal-visit[draggable=true]{cursor:grab}.cal-visit[draggable=true]:active{cursor:grabbing}.schedule-dragging{opacity:.4}.schedule-drop-target{background:#e4f3eb!important;box-shadow:inset 0 0 0 2px #38876a}.schedule-activity-event{border-left:2px solid #d5e5dc;padding:0 0 20px 16px;margin-left:3px}.schedule-activity-event>div:first-child{display:flex;align-items:center;flex-wrap:wrap;gap:8px;font-size:12px}.schedule-activity-event time{color:#809086;font-size:10px;margin-left:auto}.schedule-activity-event>div:first-child>span{color:#6f8175}.schedule-change{display:grid;grid-template-columns:1fr 18px 1fr;gap:8px;margin-top:12px;padding:10px 12px;background:#f5f8f6;border-radius:6px;font-size:11px;line-height:1.6;overflow-wrap:anywhere}.schedule-change b{grid-column:1/-1;color:#5d7767;font-size:10px}.schedule-change>span:first-of-type{color:#7a867f}.schedule-change strong{font-weight:600;color:#285a43}
