.dispatch-dialog { width:calc(100% - 24px); max-width:820px; max-height:90dvh; padding:16px; margin:auto; border:1px solid var(--schedule-line); border-radius:8px; background:var(--schedule-paper); color:var(--schedule-ink); overflow:auto; overscroll-behavior:contain; }
.dispatch-dialog::backdrop { background:#0008; }
.dispatch-dialog-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:12px; }
.dispatch-dialog-heading h2 { font-size:16px; font-weight:650; }
.dispatch-dialog-heading button,.dispatch-search-row>button { width:44px; height:44px; flex:none; display:grid; place-items:center; }
.dispatch-dialog :is(input,select) { width:100%; min-width:0; font-size:16px; }
.dispatch-dialog svg,.dispatch-search-row svg { width:18px; height:18px; }
.dispatch-apply { width:100%; min-height:44px; border-radius:6px; background:#fbd215; color:#181818; font-weight:650; }
.dispatch-search-row { display:flex; align-items:center; gap:8px; margin-bottom:12px; }
#distribution-search-slot { min-width:0; flex:1; } #distribution-search-slot input { width:100%; font-size:14px; }
#distribution-manager-compact { display:none; width:100%; min-width:0; min-height:44px; font-size:14px; margin-bottom:8px; padding:8px 38px 8px 12px; border:1px solid var(--schedule-line); border-radius:6px; background-color:var(--schedule-paper); color:var(--schedule-ink); }
#distribution-filters-dialog { max-width:480px; }
#distribution-filter-fields :is(select,button) { grid-column:1/-1; }
.dispatch-item { border-bottom:1px solid var(--schedule-line); }
.dispatch-item summary { display:grid; grid-template-columns:66px minmax(0,1fr) 18px; align-items:center; gap:10px; padding:12px 0; min-height:66px; list-style:none; cursor:pointer; }
.dispatch-item summary::-webkit-details-marker { display:none; }
.dispatch-item summary>svg { width:18px; height:18px; }
.dispatch-item details[open]>summary>svg { transform:rotate(180deg); }
.dispatch-date { font-size:11px; line-height:17px; }
.dispatch-date small { display:block; font-size:11px; color:var(--schedule-muted); }
.dispatch-identity { min-width:0; }
.dispatch-identity strong { font-size:13px; font-weight:650; line-height:18px; display:block; overflow-wrap:anywhere; }
.dispatch-identity small { font-size:11px; color:var(--schedule-muted); display:block; overflow-wrap:anywhere; }
.dispatch-extra { padding:0 0 12px; }
.dispatch-owner,.dispatch-comment { font-size:12px; padding:6px 0; color:var(--schedule-muted); white-space:pre-wrap; overflow-wrap:anywhere; }
.dispatch-reassign { display:block; margin:10px 0; font-size:12px; color:var(--schedule-muted); }
.dispatch-reassign select { margin-top:4px; }
.dispatch-actions { display:flex; gap:8px; }
.dispatch-extra .request-phone { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:44px; padding:8px 0; }
.dispatch-extra .request-phone svg { flex:none; }
#workspace-switch .mode-button.active { background:#18181b; border-color:#18181b; color:#fff; }
.dark #workspace-switch .mode-button.active { background:#eee; border-color:#eee; color:#18181b; }
.dispatch-actions button { display:flex; align-items:center; justify-content:center; gap:8px; min-height:44px; min-width:44px; padding:0 12px; border:1px solid var(--schedule-line); border-radius:6px; font-size:13px; }
.dispatch-actions button:first-child { flex:1; }
#distribution-view .status { background:transparent; color:var(--schedule-muted); border-color:var(--schedule-line); }
#distribution-view [data-delete-request] { color:var(--schedule-muted); }
@media(max-width:1023px) { .dispatch-managers { display:none; } #distribution-manager-compact { display:block; } }
@media(max-width:767px) {
    #distribution-view>div:first-child h2 { display:none; }
    #distribution-view { border:0; border-radius:0; } #distribution-view>div:first-child { padding:8px 0; } #distribution-view>div:nth-child(2) { min-height:0; } #distribution-view>div:nth-child(2)>div { padding:8px 0; }
    .request-entry-toolbar { padding:0; } #workspace-switch { border:0; background:transparent; padding:0; }
    .dispatch-dialog { width:100%; max-height:94dvh; margin:auto 0 0; border-radius:8px 8px 0 0; padding-bottom:max(16px,env(safe-area-inset-bottom)); }
}
