/* Page components inherit the shared system shell and responsive density. */
/* Customer pages keep their mobile content at native scale. */
@media(max-width:760px) {
  body.system-page.customer-dispatch-preview .system-page-content { width:100%; min-width:0; }
}
body.customer-dispatch-preview .summary-band { padding:12px; gap:10px; border-radius:20px; margin-bottom:16px; }
.summary-band:before { display:none; }
body.customer-dispatch-preview .summary-item { border:0; border-radius:14px; min-height:80px; padding:13px 16px; justify-items:start; gap:5px; }
.summary-item span { font-size:13px; }.summary-item strong { font-size:28px; line-height:1.15; }
.summary-item[aria-pressed=true] { outline:3px solid #9fc4ff; outline-offset:3px; }
body.customer-dispatch-preview .toolbar { display:grid; grid-template-columns:minmax(240px,2fr) repeat(6,minmax(105px,1fr)); gap:10px; padding:16px; border-radius:20px; margin:0; }
.toolbar label { min-width:0; font-size:12px; font-weight:600; }
.toolbar input,.toolbar select { width:100%; min-width:0; height:40px; padding:8px 10px; font-size:13px; border:1px solid var(--line); border-radius:9px; margin-top:6px; }
.preview-list-toolbar { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:18px 0 12px; }
.preview-list-toolbar>div { display:flex; gap:8px; }
.preview-list-toolbar button { min-height:36px; border-radius:9px; padding:7px 12px; font-size:13px; gap:5px; }
.preview-list-toolbar p { margin:0; font-size:13px; }.preview-list-toolbar p strong { color:var(--brand); }
.preview-card-list { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; align-items:start; }
.preview-card-column { display:grid; gap:14px; }
.preview-customer-card { background:var(--panel); border:1px solid #e0eafa; border-radius:19px; box-shadow:0 8px 22px #28477409; overflow:hidden; }
.preview-customer-card.expanded { border-color:#a6c7ff; }
.preview-card-head { padding:17px 17px 14px; }
.preview-card-top { display:flex; align-items:center; gap:11px; }
.customer-symbol { background:#eaf2ff; color:#4b87f6; width:44px; height:44px; border-radius:15px; display:grid; place-items:center; font-size:24px; flex-shrink:0; }
.preview-card-title { flex:1; min-width:0; }
.preview-card-title h2 { font-size:18px; margin:0; color:var(--text); }.teacher { font-size:11px; color:var(--brand); margin-left:8px; font-weight:500; }
.preview-card-title p { font-size:12px; margin:5px 0 0; color:var(--muted); }
.status-pill { font-size:11px; border-radius:20px; background:#edf4ff; color:#296dcc; padding:4px 8px; white-space:nowrap; border:1px solid #d6e5ff; }
.status-pill.green { background:#eaf9f2; color:#228268; border-color:#cfeadd; }.status-pill.amber { background:#fff7e8; color:#a16d12; border-color:#f3e3bd; }.status-pill.purple { background:#f0edff; color:#7660cd; border-color:#e0d9fb; }.status-pill.gray { background:#f1f4f8; color:#768799; border-color:#e3e8ef; }
.preview-brief { display:flex; justify-content:space-between; align-items:center; margin-top:15px; gap:8px; font-size:13px; }.preview-brief strong { color:var(--brand); font-size:14px; }.preview-brief small { font-size:11px; font-weight:500; }
.preview-card-meta { display:flex; gap:10px; flex-wrap:wrap; font-size:12px; color:var(--muted); margin-top:10px; }
.preview-card-meta i { color:#80a4d6; margin-right:4px; }
.preview-card-actions { border-top:1px solid var(--line); margin-top:13px; padding-top:11px; display:flex; justify-content:space-between; align-items:center; gap:8px; }
.preview-card-actions button { background:transparent; color:var(--brand); border:0; padding:0; min-height:25px; font-size:12px; font-weight:600; gap:4px; }
.preview-card-actions .action-links { display:flex; gap:14px; }
.preview-card-actions .follow-due { color:#b78022; }
.preview-expanded { padding:0 17px 16px; }
.preview-section { border-top:1px solid var(--line); padding-top:13px; margin-top:2px; }.preview-section+.preview-section { margin-top:14px; }
.preview-section-title { display:flex; justify-content:space-between; align-items:center; margin-bottom:9px; }.preview-section h3 { font-size:13px; margin:0; }.text-button { min-height:0; border:0; padding:0; background:transparent; color:var(--brand); font-size:12px; }
.requirement-box { background:var(--panel-soft); padding:11px 12px; border-radius:10px; font-size:13px; line-height:1.8; }.requirement-box p { margin:0; }
.requirement-tags { display:flex; flex-wrap:wrap; gap:5px; margin-top:9px; }.requirement-tags span { background:var(--panel); border:1px solid var(--line); padding:2px 7px; border-radius:5px; font-size:11px; color:var(--muted); }
.preview-progress { display:grid; grid-template-columns:repeat(4,1fr); gap:4px; margin-top:12px; }.preview-progress span { font-size:11px; color:var(--muted); text-align:center; border-top:3px solid var(--line); padding-top:7px; }.preview-progress .done { border-color:#94b8fc; color:var(--brand); }.preview-progress .current { border-color:var(--brand); color:var(--brand); font-weight:700; }
.order-brief { background:var(--panel-soft); border:1px solid var(--line); border-radius:10px; padding:10px 11px; display:grid; grid-template-columns:1fr 1fr; gap:10px; font-size:12px; }.order-brief span { display:block; font-size:11px; color:var(--muted); margin-bottom:4px; }.order-brief strong { font-weight:600; }
.followup-content { font-size:12px; line-height:1.8; margin:0; color:var(--muted-strong); }.followup-date { color:var(--muted); font-size:11px; margin-top:5px; }.next-followup { display:flex; justify-content:space-between; margin-top:10px; font-size:11px; color:var(--muted); }
.preview-bottom { text-align:center; font-size:12px; color:var(--muted); padding:24px 0; }
.preview-empty { grid-column:1/-1; text-align:center; padding:55px 20px; background:var(--panel); border-radius:18px; }.preview-empty i { font-size:35px; color:#91afe3; }.preview-empty h3 { font-size:17px; }.preview-empty p { color:var(--muted); font-size:13px; }
#previewToast { position:fixed; bottom:24px; left:50%; transform:translateX(-50%); z-index:500; color:#fff; background:#244367; border-radius:12px; padding:12px 22px; box-shadow:0 8px 30px #17396233; font-size:14px; max-width:90vw; }
dialog { width:min(560px,calc(100vw - 32px)); padding:22px; border:1px solid var(--line); border-radius:20px; color:var(--text); background:var(--panel); box-shadow:0 30px 90px #1d365b33; max-height:85dvh; }dialog::backdrop { background:#1b355844; backdrop-filter:blur(3px); }
.preview-dialog-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:20px; }.preview-dialog-head h2 { font-size:20px; margin:0; }.preview-dialog-head button { padding:6px; min-height:30px; }
.demo-form { display:grid; gap:15px; }.demo-form label { display:grid; gap:7px; font-size:13px; }.demo-form input,.demo-form textarea,.demo-form select { width:100%; padding:10px 12px; border-radius:8px; border:1px solid var(--line); font-size:14px; }.demo-form textarea { resize:vertical; min-height:90px; }.form-row { display:grid; grid-template-columns:1fr 1fr; gap:12px; }.form-actions { display:flex; justify-content:flex-end; gap:10px; margin-top:5px; }.demo-note { font-size:12px; color:var(--muted); line-height:1.7; margin:0 0 15px; }
.candidate-demo { border:1px solid var(--line); border-radius:12px; padding:15px; margin-top:12px; }.candidate-demo h3 { margin:0 0 9px; font-size:16px; }.candidate-demo p { font-size:13px; color:var(--muted); line-height:1.7; }.candidate-demo button { font-size:12px; }
html[data-theme=dark] .preview-customer-card { border-color:var(--line); }
@media(min-width:1740px) { .preview-card-list { grid-template-columns:repeat(4,minmax(0,1fr)); } }

@media(max-width:1250px) { .preview-card-list { grid-template-columns:repeat(2,minmax(0,1fr)); }.customer-dispatch-preview .toolbar { grid-template-columns:repeat(3,minmax(0,1fr))!important; }.search-field { grid-column:span 2; } }
@media(max-width:760px) { body.customer-dispatch-preview .summary-band { grid-template-columns:repeat(3,1fr); gap:8px; padding:10px; }body.customer-dispatch-preview .summary-item { min-height:70px; padding:11px; }.summary-item strong { font-size:24px; }.summary-item span { font-size:11px; }body.customer-dispatch-preview .toolbar { grid-template-columns:repeat(2,minmax(0,1fr))!important; padding:14px; }.search-field { grid-column:1/-1; }.preview-card-list { grid-template-columns:1fr; }.preview-list-toolbar { flex-wrap:wrap; }.preview-list-toolbar>div { width:100%; }.preview-list-toolbar>div button { flex:1; padding:8px 5px; }.preview-brief { font-size:14px; }.preview-card-meta { font-size:13px; }.preview-card-title h2 { font-size:20px; }.preview-card-actions button { font-size:13px; }.preview-bottom { line-height:1.8; } }

/* Customer dispatch pills: compact text centered in a light, consistent surface. */


body.customer-dispatch-preview .status-pill,
body.customer-dispatch-preview .preview-card-actions button,
body.customer-dispatch-preview .text-button,
body.customer-dispatch-preview .preview-list-toolbar button,
body.customer-dispatch-preview .form-actions button,
body.customer-dispatch-preview .candidate-demo button {
  display:inline-flex; align-items:center; justify-content:center;
  vertical-align:middle; text-align:center; box-sizing:border-box;
  min-height:28px; padding:6px 11px; gap:4px;
  font-size:12px; font-weight:500; line-height:1;
  border:1px solid #dce9ff; border-radius:999px;
  color:#2865c5; background:#eef5ff; box-shadow:none;
  white-space:nowrap; letter-spacing:normal;
}
body.customer-dispatch-preview .status-pill { min-height:26px; padding:5px 10px; font-size:11px; }
body.customer-dispatch-preview .preview-card-actions .follow-due,
body.customer-dispatch-preview .status-pill.amber { color:#966619; background:#fff7e8; border-color:#f1e3c7; }
body.customer-dispatch-preview .status-pill.green { color:#287a64; background:#edf9f3; border-color:#d7eee2; }
body.customer-dispatch-preview .status-pill.purple { color:#7460b4; background:#f3f0ff; border-color:#e5ddfa; }
body.customer-dispatch-preview .status-pill.gray { color:#738299; background:#f3f5f8; border-color:#e3e9ef; }
body.customer-dispatch-preview .preview-card-actions button:hover,
body.customer-dispatch-preview .text-button:hover,
body.customer-dispatch-preview .preview-list-toolbar button:hover { background:#e1edff; border-color:#a7c6f4; }
body.customer-dispatch-preview button:disabled { opacity:.5; cursor:not-allowed; }
body.customer-dispatch-preview .preview-card-actions .action-links { gap:8px; }
body.customer-dispatch-preview .preview-card-actions button i { display:inline-flex; align-items:center; justify-content:center; line-height:1; font-size:13px; }
body.customer-dispatch-preview .preview-card-actions { min-height:43px; }
body.customer-dispatch-preview .order-switch { display:grid; gap:6px; margin:0 0 12px; font-size:12px; color:var(--muted); }
body.customer-dispatch-preview .order-switch select { width:100%; min-width:0; height:34px; border:1px solid var(--line); border-radius:9px; font-size:12px; padding:5px 8px; }
.preview-pagination { display:flex; justify-content:center; align-items:center; flex-wrap:wrap; gap:12px; padding:22px 0; font-size:13px; }
.preview-pagination button { border-radius:999px; font-size:12px; color:#2865c5; background:#eef5ff; border:1px solid #dce9ff; }
.form-error { color:#b73737; font-size:13px; line-height:1.6; margin:0; }
.order-brief a { color:var(--brand)!important; text-decoration:underline!important; }
@media(max-width:760px){body.customer-dispatch-preview .status-pill{font-size:11px;}body.customer-dispatch-preview .preview-card-actions button{font-size:12px;}}

