/* Operations workspace: deliberately separate from the public marketing page. */
body.cz-admin-open { margin:0; background:#f4f6f9; }
body.cz-admin-open #root,body.cz-admin-open #cz-db-admin-tools,body.cz-admin-open #cz-ops-host,body.cz-admin-open .cz-chat { display:none!important; }
.czd-app,.czd-dialog { --czd-navy:#102033;--czd-paper:#f4f6f9;--czd-ink:#17283c;--czd-muted:#526277;--czd-line:#dce3eb;--czd-orange:#c74b08;--czd-hover:#fcefe6;color:var(--czd-ink);font:500 14px/1.55 'Plus Jakarta Sans',system-ui,sans-serif; }
.czd-app *,.czd-dialog * { box-sizing:border-box; }.czd-app button,.czd-app input,.czd-app select,.czd-app textarea,.czd-dialog button,.czd-dialog input,.czd-dialog select,.czd-dialog textarea { font:inherit; }
.czd-app button,.czd-dialog button { cursor:pointer; }.czd-app button:disabled,.czd-dialog button:disabled { cursor:wait;opacity:.6; }.czd-app svg,.czd-dialog svg { width:20px;height:20px;flex:none; }
.czd-app [hidden],.czd-dialog [hidden] { display:none!important; }.czd-app :focus-visible,.czd-dialog :focus-visible { outline:3px solid #b64308;outline-offset:3px; }.czd-sidebar :focus-visible { outline-color:#ffb17a; }

/* Keep admin dialogs centered even when the site's reset removes native margins. */
dialog.czd-dialog[open] {
  position: fixed !important;
  top: max(16px, env(safe-area-inset-top)) !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  margin: 0 !important;
  width: min(720px, calc(100vw - 32px)) !important;
  max-height: calc(100dvh - 32px) !important;
  height: auto !important;
  overflow-y: auto !important;
  box-sizing: border-box !important;
}
.czd-app { display:grid;grid-template-columns:232px minmax(0,1fr);min-height:100vh;background:var(--czd-paper); }
.czd-skip { position:fixed;top:8px;left:250px;padding:12px;background:#fff;color:#17283c;z-index:100;transform:translateY(-150%); }.czd-skip:focus { transform:none; }
.czd-sidebar { position:sticky;top:0;height:100vh;display:flex;flex-direction:column;background:var(--czd-navy);color:#e4edf6;padding:28px 14px 16px;overflow-y:auto; }
.czd-brand { display:flex;align-items:center;gap:12px;padding:0 10px 30px; }.czd-brand img { object-fit:contain;width:58px;height:46px;background:#fff;border-radius:7px;padding:3px; }.czd-brand strong { font-size:17px;letter-spacing:-.4px;color:#fff; }.czd-brand .czd-stacked small { color:#b4c3d5;font-size:12px; }
.czd-stacked { display:flex;flex-direction:column;gap:3px;min-width:0; }.czd-stacked strong { font-weight:700; }.czd-stacked small { color:var(--czd-muted);font-size:12px;line-height:1.5;overflow-wrap:anywhere; }
.czd-nav { display:grid;gap:4px; }.czd-nav-item { display:flex;align-items:center;gap:12px;min-height:44px;padding:11px 14px;background:transparent;border:1px solid transparent;border-radius:8px;color:#bccbdb;text-align:left;font-size:13px!important;font-weight:600!important;transition:background-color 130ms ease,color 130ms ease; }
.czd-nav-item:hover { background:#1c3047;color:#fff; }.czd-nav-item[aria-current=page] { background:#283c50;color:#fff;border-color:#3e5267;box-shadow:inset 3px 0 #ff8b3a; }.czd-nav-item[aria-current=page] svg { color:#ffb17a; }.czd-nav-item span:first-of-type { flex:1; }.czd-nav-divider { margin-top:23px; }.czd-nav-count { padding:0 6px;background:#52667b;color:#fff;border-radius:4px;font-size:11px; }
.czd-side-footer { margin-top:auto;padding:28px 4px 0;display:flex;align-items:center;gap:9px; }.czd-side-footer .czd-stacked { flex:1; }.czd-side-footer strong { color:#e4edf6;font-size:12px; }.czd-side-footer small { color:#b4c3d5;font-size:11px; }.czd-admin-avatar { display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:#34495e;font-weight:700; }.czd-icon-button { display:flex;justify-content:center;align-items:center;min-width:44px;min-height:44px;border:0;background:transparent;color:inherit;border-radius:7px; }.czd-icon-button span { position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%); }.czd-icon-button:hover { background:#34495e; }
.czd-workspace { min-width:0; }.czd-toolbar { display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:80px;padding:16px 36px;border-bottom:1px solid var(--czd-line);background:#fff; }.czd-global-search { display:flex;align-items:center;gap:10px;flex:1;max-width:400px;color:var(--czd-muted); }.czd-global-search input { border:0;outline-offset:3px;background:#fff;color:var(--czd-ink);min-width:0;width:100%;padding:10px 4px; }.czd-global-search input::placeholder { color:#637289; }.czd-toolbar-tools { display:flex;align-items:center;gap:10px; }.czd-sync { font-size:11px;color:#456154;white-space:nowrap;display:flex;gap:7px;align-items:center; }.czd-sync::before { content:'';width:6px;height:6px;border-radius:50%;background:#2d7858; }
.czd-view { max-width:1600px;margin:auto;padding:34px 36px 28px;outline:none; }.czd-page-heading { display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:28px; }.czd-page-heading h1 { font-family:'Bricolage Grotesque','Plus Jakarta Sans',sans-serif;font-size:32px;line-height:1.15;letter-spacing:-.7px;margin:0 0 8px;font-weight:650;outline:none; }.czd-page-heading p { margin:0;color:var(--czd-muted);max-width:70ch;font-size:13px; }
.czd-button { display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 16px;border-radius:7px;border:1px solid #7b899b;background:#fff;color:#25384d;font-weight:650!important;font-size:13px!important;text-decoration:none;white-space:nowrap;transition:background-color 130ms ease,border-color 130ms ease; }.czd-button:hover { background:#edf1f6;border-color:#7a8ba1; }.czd-button:active { background:#dfe6ef; }.czd-primary { background:var(--czd-orange);color:#fff;border-color:var(--czd-orange); }.czd-primary:hover { background:#a73e06;border-color:#a73e06; }.czd-primary:active { background:#853105; }.czd-quiet { border-color:transparent;background:transparent; }.czd-small { min-height:44px;padding:8px 12px;font-size:12px!important; }.czd-link { background:none;border:0;padding:6px 0;min-height:44px;display:inline-flex;align-items:center;gap:8px;text-align:left;color:#a43e09;font:700 13px/1.5 'Plus Jakarta Sans',sans-serif;cursor:pointer; }.czd-link:hover { color:#762b05;text-decoration:underline; }.czd-link small { display:block;color:var(--czd-muted);font-weight:500;font-size:11px; }.czd-table .czd-link:has(small) { display:flex;flex-direction:column;align-items:flex-start;gap:3px; }.czd-danger { color:#a02c32; }.czd-button.czd-danger { border-color:#c18a8e; }
.czd-metrics { display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:24px; }.czd-metric { background:#fff;border:1px solid var(--czd-line);border-radius:10px;padding:20px;text-align:left;display:flex;flex-direction:column;gap:13px;min-width:0;transition:border-color 130ms ease; }.czd-metric:hover { border-color:#c74b08; }.czd-metric-top { display:flex;justify-content:space-between;gap:8px;color:var(--czd-muted);font-size:12px; }.czd-metric-top svg { color:#8a4c26; }.czd-metric-number { font-family:'Bricolage Grotesque',sans-serif;font-size:40px;line-height:1;letter-spacing:-1px;font-weight:650;font-variant-numeric:tabular-nums;color:var(--czd-ink); }.czd-metric small { color:var(--czd-muted);font-size:11px; }
.czd-overview-grid { display:grid;grid-template-columns:minmax(0,1.85fr) minmax(280px,1fr);gap:24px;align-items:start; }.czd-panel { background:#fff;border:1px solid var(--czd-line);border-radius:10px;min-width:0;overflow:hidden; }.czd-panel-head { padding:21px 24px 18px;border-bottom:1px solid var(--czd-line);position:relative; }.czd-panel-head h2 { margin:0;font-size:16px;line-height:1.4;letter-spacing:-.2px;font-weight:750; }.czd-panel-head p { color:var(--czd-muted);font-size:12px;margin:6px 0 0; }.czd-panel-head>.czd-link { margin-top:8px;font-size:12px;min-height:32px; }.czd-panel-copy { padding:0 24px;color:var(--czd-muted);margin:20px 0; }.czd-panel>.czd-button { margin:0 24px 24px; }.czd-panel-link { margin:6px 24px 16px; }.czd-panel-empty { padding:20px 24px;margin:0;color:var(--czd-muted);font-size:13px; }
.czd-dispatch-row { display:flex;align-items:center;gap:16px;padding:16px 24px;border-bottom:1px solid #e8edf3; }.czd-dispatch-row:last-child { border-bottom:0; }.czd-dispatch-time { flex:0 0 112px;font-size:12px;font-weight:650;color:#34495e;line-height:1.7; }.czd-dispatch-info { min-width:0;flex:1; }.czd-dispatch-info .czd-link { color:var(--czd-ink);min-height:32px; }.czd-dispatch-info p { font-size:11px;color:var(--czd-muted);margin:2px 0 0;overflow-wrap:anywhere; }.czd-attention-row { display:flex;align-items:center;gap:12px;width:100%;min-height:60px;padding:15px 24px;background:#fff;color:#25384d;border:0;border-bottom:1px solid #e8edf3;text-align:left;font-size:12px!important; }.czd-attention-row>span { flex:1; }.czd-attention-row b { display:grid;place-items:center;min-width:25px;height:25px;border-radius:5px;background:#fcefe6;color:#a43e09;font-size:12px; }.czd-attention-row svg { width:16px;color:var(--czd-muted); }.czd-attention-row:hover { background:#f7f9fc; }.czd-attention-row:last-child { border:0; }
.czd-pipeline { padding:24px;display:grid;gap:16px; }.czd-pipeline-row { display:grid;grid-template-columns:116px minmax(30px,1fr) 24px;gap:14px;align-items:center;font-size:12px; }.czd-pipeline-row b { text-align:right; }.czd-pipeline-track { background:#edf1f6;border-radius:3px;height:7px;overflow:hidden; }.czd-pipeline-fill { height:100%;background:#75859a;min-width:0; }.czd-pipeline-fill.czd-state-pending { background:#bd671f; }.czd-pipeline-fill.czd-state-confirmed { background:#4975a6; }.czd-pipeline-fill.czd-state-dispatched { background:#426297; }.czd-pipeline-fill.czd-state-en_route { background:#7755a4; }.czd-pipeline-fill.czd-state-in_progress { background:#28785f; }
.czd-badge { display:inline-flex;align-items:center;gap:6px;background:#edf1f6;color:#42546b;border:1px solid #dce3eb;border-radius:5px;padding:4px 8px;font-size:10px;font-weight:700;line-height:1.4;white-space:nowrap; }.czd-badge::before { content:'';width:5px;height:5px;border-radius:50%;background:currentColor; }.czd-badge.czd-state-pending,.czd-badge.czd-state-queued { color:#895006;background:#fff5dc;border-color:#edd9ab; }.czd-badge.czd-state-confirmed,.czd-badge.czd-state-dispatched,.czd-badge.czd-state-active { color:#245b90;background:#edf5fe;border-color:#c6d9ed; }.czd-badge.czd-state-en_route,.czd-badge.czd-state-on_route,.czd-badge.czd-state-in_review { color:#684490;background:#f3eefa;border-color:#dbceec; }.czd-badge.czd-state-in_progress,.czd-badge.czd-state-on_site,.czd-badge.czd-state-completed,.czd-badge.czd-state-available,.czd-badge.czd-state-approved,.czd-badge.czd-state-paid,.czd-badge.czd-state-verified_repair { color:#226348;background:#eaf7ef;border-color:#bbdec9; }.czd-badge.czd-state-cancelled,.czd-badge.czd-state-rejected { color:#9a3339;background:#fff0f1;border-color:#edc6c9; }.czd-unassigned { color:#965109;font-size:12px;font-weight:650; }
.czd-table-scroll { overflow-x:auto; }.czd-table { width:100%;border-collapse:collapse;text-align:left;font-size:12px; }.czd-table th { background:#f8fafc;color:#526277;font-size:11px;font-weight:650;padding:12px 20px;border-bottom:1px solid var(--czd-line);white-space:nowrap; }.czd-table td { padding:17px 20px;border-bottom:1px solid #e8edf3;vertical-align:middle;max-width:300px;overflow-wrap:anywhere; }.czd-table tr:last-child td { border-bottom:0; }.czd-table tbody tr:hover { background:#fafbfd; }.czd-table .czd-stacked strong { font-size:12px; }.czd-table .czd-stacked small { font-size:11px; }.czd-table td:first-child .czd-link { color:var(--czd-ink); }.czd-row-actions { display:flex;align-items:center;gap:16px;flex-wrap:wrap; }
.czd-filters { display:flex;align-items:flex-end;flex-wrap:wrap;gap:16px;padding:20px 24px;border-bottom:1px solid var(--czd-line); }.czd-field { display:flex;flex-direction:column;gap:7px;min-width:0;color:#34495e;font-size:12px;font-weight:650; }.czd-field>span { line-height:1.5; }.czd-field input,.czd-field select,.czd-field textarea { width:100%;min-height:44px;padding:10px 12px;border:1px solid #7e8da0;border-radius:6px;background:#fff;color:#17283c;font-size:13px;box-shadow:none; }.czd-field textarea { resize:vertical;min-height:100px; }.czd-field input::placeholder,.czd-field textarea::placeholder { color:#647389; }.czd-field:has(input[type=checkbox]) { flex-direction:row;align-items:center;gap:12px;min-height:44px; }.czd-field input[type=checkbox] { width:18px;height:18px;min-height:18px;accent-color:#c74b08;order:-1; }.czd-filters .czd-field:has(input[type=search]) { flex:1 1 220px; }.czd-filters>.czd-field { min-width:145px; }.czd-result-count { margin:0;padding:12px 24px;color:var(--czd-muted);font-size:11px;border-bottom:1px solid #e8edf3; }
.czd-empty { text-align:center;padding:48px 24px;max-width:500px;margin:0 auto; }.czd-empty>svg { width:34px;height:34px;color:#667a91;margin-bottom:12px; }.czd-empty h3 { margin:0;font-size:16px;font-weight:700; }.czd-empty p { margin:8px auto 18px;color:var(--czd-muted);font-size:13px;max-width:40ch; }.czd-data-note { color:var(--czd-muted);font-size:10px;margin:24px 0 0;line-height:1.7; }
.czd-team-grid { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;padding:24px; }.czd-tech-card { border:1px solid var(--czd-line);border-radius:8px;padding:20px;min-width:0; }.czd-tech-head { display:flex;align-items:center;gap:12px;margin-bottom:16px; }.czd-avatar { display:grid;place-items:center;width:44px;height:44px;flex:none;border-radius:9px;background:#e8eef6;color:#304967;font-weight:750; }.czd-card-actions { display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:16px; }.czd-facts { display:grid;grid-template-columns:minmax(110px,.8fr) minmax(0,1.4fr);gap:12px 18px;margin:24px 0;font-size:12px; }.czd-facts dt { color:var(--czd-muted); }.czd-facts dd { margin:0;font-weight:600;overflow-wrap:anywhere; }.czd-tech-card .czd-facts { grid-template-columns:1fr 1fr; }
.czd-location-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:20px 24px 0}.czd-location-heading strong{font-size:13px}.czd-location-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;padding:16px 24px 4px}.czd-location-grid>.czd-empty{grid-column:1/-1}.czd-location-card{border:1px solid #cad8e3;background:#f8fafc;border-radius:10px;padding:17px 18px}.czd-location-card h3{font-size:16px;margin:9px 0 3px}.czd-location-card p{font-size:12px;color:#526277;margin:0 0 15px}.czd-location-status{font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.07em}.czd-location-status.is-fresh{color:#1f7754}.czd-location-status.is-stale{color:#9b570e}.czd-location-disclosure{font-size:11px;color:#526277;margin:10px 24px 24px;line-height:1.6}
.czd-live-map{margin:18px 24px 0;border:1px solid #cad8e3;border-radius:14px;overflow:hidden;background:#102033;color:#e8f0f7}.czd-map-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 16px;border-bottom:1px solid #31465c}.czd-map-toolbar strong{font-family:'Bricolage Grotesque',sans-serif;font-size:18px;color:#fff}.czd-map-hint{font-size:11px;color:#a8bbcc}.czd-map-controls{display:flex;align-items:center;gap:6px}.czd-map-control{width:34px;height:34px;border:1px solid #51677b;border-radius:7px;background:#1c3047;color:#fff;font-size:20px;line-height:1}.czd-map-control:hover{background:#2b4560}.czd-map-surface{position:relative;height:310px;overflow:hidden;background:radial-gradient(circle at 22% 18%,#1d4256 0,#163247 32%,#102033 78%)}.czd-map-surface::before{content:'';position:absolute;inset:0;background-image:linear-gradient(28deg,transparent 47%,#ffffff0b 48%,#ffffff0b 49%,transparent 50%),linear-gradient(-18deg,transparent 43%,#ffffff08 44%,#ffffff08 45%,transparent 46%);background-size:280px 190px,340px 220px;transform:rotate(-4deg) scale(1.2)}.czd-map-layer{position:absolute;inset:0;transform-origin:50% 50%;transition:transform 180ms ease}.czd-map-marker{position:absolute;transform:translate(-50%,-50%);border:0;background:transparent;color:#fff;cursor:pointer;z-index:2}.czd-map-marker-dot{display:grid;place-items:center;width:32px;height:32px;border:3px solid #fff;border-radius:50%;background:#f36b21;box-shadow:0 0 0 6px #f36b2140,0 8px 18px #0008;font-size:12px;font-weight:800}.czd-map-marker-label{position:absolute;left:50%;top:39px;transform:translateX(-50%);padding:4px 7px;border-radius:5px;background:#081520e8;color:#fff;font-size:10px;white-space:nowrap;box-shadow:0 4px 12px #0004}.czd-map-marker:hover .czd-map-marker-dot,.czd-map-marker:focus-visible .czd-map-marker-dot{background:#ff9a52;transform:scale(1.08)}.czd-map-gridline{position:absolute;pointer-events:none;opacity:.2}.czd-map-gridline-v{top:0;bottom:0;left:33%;border-left:1px dashed #bad0df}.czd-map-gridline-h{left:0;right:0;top:52%;border-top:1px dashed #bad0df}.czd-map-caption{margin:0;padding:10px 16px;border-top:1px solid #31465c;color:#a8bbcc;font-size:11px}
.czd-location-card.is-selected{border-color:#c74b08;box-shadow:0 0 0 3px #c74b081c}
.czd-leaflet-map{height:340px;background:#dce8ef}.czd-leaflet-map .leaflet-control-zoom a{color:#102033}.cz-map-focus{border:0;background:transparent;color:#a43e09;text-decoration:underline;cursor:pointer;padding:3px 0;font:600 12px 'Plus Jakarta Sans',sans-serif}.cz-map-unavailable{display:grid;place-items:center;height:340px;color:#526277;font-size:13px}
.czd-team-stack{display:grid;gap:22px}.czd-team-stack>.czd-panel:last-child>.czd-button{margin:20px 24px 0}.czd-team-stack>.czd-panel:last-child>.czd-note{margin:14px 24px 0}
.czd-review-list { padding:24px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px; }.czd-review-list>.czd-empty { grid-column:1/-1; }.czd-review-card { padding:22px;border:1px solid var(--czd-line);border-radius:8px;min-width:0; }.czd-review-head { display:flex;align-items:flex-start;justify-content:space-between;gap:16px; }.czd-review-card h3 { font-size:15px;margin:10px 0;overflow-wrap:anywhere; }.czd-stars { display:block;color:#955500;letter-spacing:3px;margin-top:18px;font-size:16px; }.czd-review-comment { color:var(--czd-muted);font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.75; }.czd-activity-item { display:flex;gap:12px;padding:16px 24px;border-bottom:1px solid #e8edf3; }.czd-activity-item>svg { width:16px;color:#6a7a8f;margin-top:2px; }.czd-activity-item strong { font-size:12px; }.czd-activity-item small { font-size:10px; }
.czd-notice { display:flex;align-items:center;gap:12px;margin:20px 36px 0;padding:14px 18px;border:1px solid #bbdec9;background:#eaf7ef;border-radius:8px;color:#225c43;font-size:13px; }.czd-notice>span { flex:1; }.czd-notice.czd-error { background:#fff0f1;color:#9a3339;border-color:#edc6c9; }.czd-dismiss { display:flex;align-items:center;background:transparent;border:0;color:inherit;min-width:44px;min-height:44px; }.czd-dismiss span { position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%); }
.czd-dialog { width:min(670px,calc(100% - 32px));max-height:calc(100dvh - 48px);overflow-y:auto;padding:30px;border:1px solid #a6b2c2;border-radius:14px;background:#fff;box-shadow:0 24px 80px #0d1c3840; }.czd-dialog::backdrop { background:#0d1b2b99; }.czd-dialog h2 { font-family:'Bricolage Grotesque',sans-serif;font-size:25px;line-height:1.2;letter-spacing:-.4px;margin:2px 70px 10px 0; }.czd-dialog-close { display:flex;align-items:center;gap:6px;float:right;min-height:44px;padding:8px;background:#f4f6f9;color:#34495e;border:1px solid #a6b2c2;border-radius:6px; }.czd-dialog-close span { font-size:12px; }.czd-muted { color:var(--czd-muted);font-size:13px; }.czd-form { display:grid;gap:18px; }.czd-form-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }.czd-form-footer { grid-column:1/-1;display:flex;flex-direction:column;gap:12px;border-top:1px solid var(--czd-line);margin-top:8px;padding-top:18px; }.czd-form-footer>.czd-button { align-self:flex-end; }.czd-form-feedback { margin:0;color:#9a3339;font-size:12px;line-height:1.6; }.czd-note { background:#f4f6f9;color:#526277;padding:14px 16px;font-size:12px;line-height:1.75;border-radius:6px; }.czd-warning { color:#895006;font-size:12px;margin:0;grid-column:1/-1; }.czd-warning:empty { display:none; }.czd-full { grid-column:1/-1; }.czd-contact-links { display:flex;gap:18px;flex-wrap:wrap;margin:20px 0; }.czd-contact-links a { color:#a43e09;text-decoration:underline;font-size:13px; }.czd-dialog>.czd-danger { margin-top:20px; }.czd-review-quote { padding:20px;margin:20px 0;background:#f4f6f9;border-left:3px solid #c74b08;white-space:pre-wrap;overflow-wrap:anywhere; }
.czd-settings-form { display:grid;gap:24px;max-width:1000px; }.czd-settings-form .czd-panel>.czd-form { padding:24px; }.czd-settings-form .czd-note { margin:0 24px 24px; }.czd-settings-footer { position:sticky;bottom:0;background:#fff;border:1px solid var(--czd-line);padding:16px 24px;display:flex;align-items:center;justify-content:space-between;gap:20px;border-radius:8px;box-shadow:0 -8px 24px #17283c08; }.czd-settings-footer p { margin:0;color:#9a3339;font-size:12px; }.czd-security-notes { margin:28px 24px;padding:24px 0 0;border-top:1px solid var(--czd-line);max-width:70ch; }.czd-security-notes h3 { font-size:14px; }.czd-security-notes p { color:var(--czd-muted);font-size:13px;line-height:1.8; }
@media(min-width:1500px){.czd-view{padding:40px 44px}.czd-toolbar{padding-left:44px;padding-right:44px}.czd-metrics{gap:24px}.czd-metric{padding:24px}}
@media(max-width:1250px){.czd-app{grid-template-columns:206px minmax(0,1fr)}.czd-sidebar{padding-left:10px;padding-right:10px}.czd-view{padding:28px 24px}.czd-toolbar{padding:16px 24px;gap:12px}.czd-sync{display:none}.czd-overview-grid{grid-template-columns:minmax(0,1fr)}.czd-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.czd-team-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.czd-notice{margin-left:24px;margin-right:24px}}
@media(max-width:1250px){.czd-location-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:800px){.czd-app{display:block}.czd-sidebar{position:static;height:auto;padding:16px 16px 0;overflow:visible}.czd-brand{padding:0 0 16px}.czd-brand img{width:50px;height:40px}.czd-nav{display:flex;gap:6px;overflow-x:auto;padding-bottom:12px}.czd-nav-item{flex:none;white-space:nowrap;padding:10px 12px}.czd-nav-divider{margin-top:0}.czd-side-footer{position:absolute;top:10px;right:12px;margin:0;padding:0}.czd-side-footer>.czd-stacked,.czd-admin-avatar{display:none}.czd-toolbar{padding:12px 16px;flex-wrap:wrap;min-height:68px}.czd-toolbar-tools{margin-left:auto;gap:4px}.czd-global-search{max-width:none;flex-basis:100%}.czd-toolbar-tools .czd-button{min-height:36px;font-size:11px!important}.czd-view{padding:24px 16px}.czd-page-heading{align-items:flex-start;flex-direction:column;gap:16px;margin-bottom:24px}.czd-page-heading h1{font-size:29px}.czd-page-heading p{font-size:12px}.czd-page-heading>.czd-primary{align-self:flex-start}.czd-notice{margin:16px 16px 0}.czd-metric{padding:16px;gap:12px}.czd-metric-top{font-size:11px}.czd-metric-top svg{width:16px}.czd-metric-number{font-size:34px}.czd-metric small{font-size:10px}.czd-overview-grid{gap:18px}.czd-panel-head{padding:18px}.czd-filters{padding:18px;gap:12px}.czd-filters>.czd-field{flex:1 1 150px;min-width:0}.czd-table{min-width:780px}.czd-dispatch-row{padding:16px 18px;gap:12px;flex-wrap:wrap}.czd-dispatch-time{flex-basis:96px;font-size:10px}.czd-dispatch-info{min-width:140px}.czd-dispatch-row>.czd-badge{margin-left:108px}.czd-team-grid{grid-template-columns:1fr;padding:18px}.czd-review-list{grid-template-columns:1fr;padding:18px}.czd-dialog{padding:22px;max-height:calc(100dvh - 24px)}.czd-form-grid{grid-template-columns:1fr}.czd-settings-form .czd-panel>.czd-form{padding:18px}.czd-settings-footer{padding:14px;flex-wrap:wrap}.czd-settings-footer>.czd-button{width:100%}.czd-facts{grid-template-columns:100px minmax(0,1fr)}.czd-pipeline-row{grid-template-columns:100px minmax(20px,1fr) 24px;gap:10px}.czd-skip{left:16px}}
@media(max-width:800px){.czd-location-heading{padding:18px 18px 0}.czd-location-grid{grid-template-columns:1fr;padding:14px 18px 4px}.czd-location-disclosure{margin:10px 18px 20px}}
@media(prefers-reduced-motion:reduce){.czd-app *,.czd-dialog *{transition:none!important;scroll-behavior:auto!important}}

/* Keep independent panel stacks compact and isolate the toolbar from marketing styles. */
.czd-overview-column{display:grid;gap:24px;align-content:start;min-width:0}
.czd-app .czd-toolbar{background:#fff!important;color:var(--czd-ink);box-shadow:none;position:static}
.czd-app .czd-toolbar .czd-button{color:#25384d}
@media(max-width:800px){.czd-overview-column{gap:18px}}

.czd-billing-dialog{width:min(1000px,calc(100vw - 32px));max-width:1000px;margin:auto}.czt-admin-evidence{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:24px 0}.czt-admin-evidence figure{margin:0;padding:12px;border:1px solid #d8e0e9;border-radius:10px}.czt-admin-evidence figcaption{font-size:12px;color:#526277;margin-top:8px}@media(max-width:700px){.czt-admin-evidence{grid-template-columns:1fr}.czd-billing-dialog{width:calc(100vw - 24px)}}

/* Technician dispatch workspace */
.czd-field-ops {
  --field-navy: #12263a;
  --field-muted: #516477;
  --field-line: #d5dfe8;
  --field-inset: #f3f7fa;
  --field-orange: #ffab70;
  display: grid;
  gap: 20px;
}
.czd-field-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 6px;
  gap: 4px;
  border-radius: 12px;
  background: var(--field-navy);
}
.czd-field-metric {
  min-width: 0;
  display: grid;
  justify-items: start;
  gap: 7px;
  padding: 14px clamp(10px, 1.5vw, 21px);
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #fff;
  text-align: left;
  cursor: pointer;
}
.czd-field-metric:hover { background: #203a50; }
.czd-field-metric[aria-pressed="true"] { background: #203a50; border-color: var(--field-orange); }
.czd-field-metric:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
.czd-field-metric-label { color: #d9e5ef; font-size: 13px; font-weight: 650; }
.czd-field-metric strong { font-size: clamp(25px, 3vw, 36px); line-height: 1; font-variant-numeric: tabular-nums; }
.czd-field-columns { display: grid; gap: 20px; align-items: start; }
.czd-field-columns > .czd-panel { min-width: 0; }
.czd-field-toolbar { display: flex; flex-wrap: wrap; gap: 10px; padding: 16px 20px 0; }
.czd-field-search {
  flex: 1 1 210px;
  min-width: 0;
  width: 100%;
  padding: 9px 12px;
  min-height: 42px;
  border: 1px solid #9cadbd;
  border-radius: 8px;
  background: #fff;
  color: var(--field-navy);
  font: inherit;
  font-size: 13px;
}
.czd-field-search:focus-visible { outline: 2px solid #ac470e; outline-offset: 2px; }
.czd-field-toolbar .czd-button { min-height: 42px; }
.czd-field-count { margin: 12px 20px; color: var(--field-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.czd-field-list { border-top: 1px solid var(--field-line); }
.czd-field-person {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: center;
  gap: 10px 12px;
  padding: 16px 20px;
}
.czd-field-person + .czd-field-person { border-top: 1px solid var(--field-line); }
.czd-field-identity { display: flex; gap: 11px; align-items: center; min-width: 0; }
.czd-field-identity > div { min-width: 0; }
.czd-field-identity h3 { margin: 0; font-size: 15px; line-height: 1.3; overflow-wrap: anywhere; }
.czd-field-identity p { margin: 3px 0 0; font-size: 12px; color: var(--field-muted); overflow-wrap: anywhere; }
.czd-field-avatar {
  flex: 0 0 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #e3ebf2;
  color: #203e5a;
  font-size: 13px;
  font-weight: 800;
}
.czd-field-chip {
  align-self: start;
  max-width: 145px;
  padding: 5px 9px;
  border-radius: 6px;
  background: #edf1f5;
  color: #3f5263;
  font-size: 12px;
  font-weight: 750;
}
.czd-field-chip[data-tone="available"] { color: #14563f; background: #def3e9; }
.czd-field-chip[data-tone="working"] { color: #184f81; background: #e1effb; }
.czd-field-chip[data-tone="assigned"] { color: #81410d; background: #fbe9d8; }
.czd-field-assignment { grid-column: 1 / -1; margin: 0; font-size: 13px; font-weight: 650; color: var(--field-navy); overflow-wrap: anywhere; }
.czd-field-health { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--field-muted); font-size: 12px; }
.czd-field-health span + span { border-left: 1px solid #bac8d4; padding-left: 12px; }
.czd-field-person .czd-button { min-height: 40px; }
.czd-field-columns .czd-location-grid { grid-template-columns: minmax(0,1fr); }
.czd-field-detail h3 { margin: 20px 0 8px; font-size: 16px; }
.czd-field-work { display: grid; gap: 8px; }
.czd-field-job-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid #cad8e3;
  border-radius: 8px;
  background: #f3f7fa;
  color: #203e5a;
  text-align: left;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.czd-field-job-link:hover { border-color: #a64b16; }
.czd-field-detail-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 10px; }
@media (min-width: 1330px) {
  .czd-field-columns { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .czd-field-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .czd-field-toolbar, .czd-field-person { padding-inline: 14px; }
  .czd-field-count { margin-inline: 14px; }
}

/* Shared admin shell and operations overview */
.czd-app { --czd-paper: #f7f6f3; }
.czd-sidebar { height: 100dvh; padding-top: 20px; }
.czd-brand { padding-bottom: 20px; }
.czd-nav { gap: 14px; }
.czd-nav-group ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.czd-nav-label { margin: 0 12px 5px; color: #b4c3d5; font-size: 11px; font-weight: 700; }
.czd-nav-item { width: 100%; padding: 9px 11px; }
.czd-menu-toggle { display: none; }
.czd-side-footer { padding-top: 16px; }
.czd-metrics { gap: 3px; padding: 4px; background: var(--czd-navy); border-radius: 12px; }
.czd-metric { border: 1px solid transparent; border-radius: 8px; background: transparent; padding: clamp(12px, 2vw, 22px); gap: 12px; }
.czd-metric:hover { background: #283c50; border-color: #52667b; }
.czd-metric:focus-visible { outline: 2px solid #ffb17a; outline-offset: -3px; }
.czd-metric-top { color: #e4edf6; width: 100%; font-size: 13px; font-weight: 650; }
.czd-metric-top svg { color: #ffb17a; }
.czd-metric-number { color: #fff; }
.czd-overview-grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); grid-template-rows: max-content 1fr; }
.czd-today { grid-column: 1; grid-row: 1; }
.czd-priority { grid-column: 2; grid-row: 1 / span 2; }
.czd-overview-secondary { grid-column: 1; grid-row: 2; display: grid; gap: 24px; }
.czd-today .czd-dispatch-time { flex-basis: 130px; }
.czd-today .czd-panel-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 12px; }
.czd-today .czd-panel-head p { grid-column: 1; margin: 0; }
.czd-today .czd-panel-head .czd-link { grid-area: 1 / 2 / 3 / 3; margin: 0; min-height: 44px; }
.czd-today .czd-dispatch-info .czd-link { min-height: 44px; overflow-wrap: anywhere; }
.czd-priority .czd-panel-head { border-top: 3px solid var(--czd-orange); }
.czd-priority .czd-attention-row:focus-visible { outline-offset: -4px; }
.czd-priority-job > svg:first-child { color: #a43e09; }
.czd-priority-job .czd-stacked { flex: 1; }
.czd-overview-map { padding: 5px 24px; background: #f7f6f3; border-top: 1px solid var(--czd-line); }
.czd-booking-detail { box-sizing: border-box; position: fixed; inset: 0 0 0 auto; margin: 0; height: 100%; height: 100dvh; max-height: none; border-radius: 16px 0 0 16px; overscroll-behavior: contain; }
@media (max-width: 1100px) {
  .czd-overview-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; gap: 18px; }
  .czd-today, .czd-priority, .czd-overview-secondary { grid-area: auto; }
  .czd-overview-secondary { gap: 18px; }
}
@media (max-width: 900px) {
  .czd-app { display: block; }
  .czd-sidebar { position: static; height: auto; overflow: visible; padding: 12px 14px; }
  .czd-brand { padding: 0 49px 0 0; gap: 9px; }
  .czd-brand img { width: 46px; height: 37px; }
  .czd-brand strong { font-size: 15px; }
  .czd-brand .czd-stacked { gap: 0; }
  .czd-sidebar { position: relative !important; z-index: 100 !important; }
  .czd-menu-toggle {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-left: auto !important;
    min-height: 40px !important;
    border: 1px solid #334e68 !important;
    border-radius: 10px !important;
    padding: 6px 14px !important;
    background: #192d42 !important;
    color: #ffffff !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.16s ease !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2) !important;
  }
  .czd-menu-toggle:hover {
    background: #243d56 !important;
    border-color: #486581 !important;
  }
  .czd-menu-toggle[aria-expanded="true"] {
    background: #ea580c !important;
    border-color: #f97316 !important;
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.35) !important;
  }
  .czd-menu-toggle svg { width: 16px !important; height: 16px !important; flex: none !important; }
  .czd-menu-current {
    color: #9fb3c8;
    font-size: 11px;
    font-weight: 600;
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .czd-menu-toggle[aria-expanded="true"] .czd-menu-current {
    color: #ffedd5;
  }
  .czd-nav { display: none; }
  .czd-nav.is-open {
    display: block !important;
    position: absolute !important;
    top: calc(100% + 10px) !important;
    left: 12px !important;
    right: 12px !important;
    background: #0d1b2b !important;
    border: 1px solid #283c50 !important;
    border-radius: 18px !important;
    box-shadow: 0 28px 65px -10px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    padding: 18px !important;
    max-height: calc(85vh - 75px) !important;
    overflow-y: auto !important;
    z-index: 1000 !important;
    animation: czdPopIn 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
  }
  @keyframes czdPopIn {
    from {
      opacity: 0;
      transform: translateY(-8px) scale(0.98);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }
  .czd-nav.is-open .czd-nav-group {
    margin-bottom: 16px !important;
  }
  .czd-nav.is-open .czd-nav-group:last-child {
    margin-bottom: 0 !important;
  }
  .czd-nav.is-open .czd-nav-label {
    font-size: 11px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.07em !important;
    color: #7d93a8 !important;
    margin: 0 0 8px 6px !important;
  }
  .czd-nav.is-open ul {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  @media (max-width: 500px) {
    .czd-nav.is-open ul {
      grid-template-columns: minmax(0, 1fr) !important;
    }
  }
  .czd-nav.is-open .czd-nav-item {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 10px 14px !important;
    background: #17283c !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 10px !important;
    color: #cbd5e1 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    transition: all 0.15s ease !important;
    min-height: 44px !important;
    width: 100% !important;
    text-align: left !important;
  }
  .czd-nav.is-open .czd-nav-item:hover {
    background: #243b53 !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
  }
  .czd-nav.is-open .czd-nav-item[aria-current="page"] {
    background: #ea580c !important;
    border-color: #f97316 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.35) !important;
  }
  .czd-nav.is-open .czd-nav-item[aria-current="page"] svg {
    color: #ffffff !important;
  }
  .czd-side-footer { position: absolute; top: 12px; right: 8px; margin: 0; padding: 0; }
  .czd-side-footer > .czd-stacked, .czd-admin-avatar { display: none; }
  .czd-toolbar-tools .czd-button { min-height: 44px; }
}
@media (min-width: 650px) and (max-width: 900px) {
  .czd-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .czd-metric-top { font-size: 12px; }
  .czd-metric-top svg { width: 16px; }
  .czd-today .czd-dispatch-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 8px; }
  .czd-today .czd-dispatch-time { grid-column: 1 / -1; font-size: 12px; }
  .czd-today .czd-dispatch-info { min-width: 0; }
  .czd-today .czd-dispatch-row > .czd-badge { margin: 0; }
  .czd-overview-map { padding-inline: 18px; }
  .czd-booking-detail { width: 100%; max-width: none; border-radius: 0; border: 0; padding: max(20px, env(safe-area-inset-top)) 18px max(20px, env(safe-area-inset-bottom)); }
}
@media (max-width: 380px) {
  .czd-nav.is-open { grid-template-columns: minmax(0, 1fr); }
}

.czd-brand img { flex: none; width: 60px; height: 44px; padding: 0; border-radius: 0; background: transparent; object-fit: contain; }
.czd-brand strong { overflow-wrap: anywhere; line-height: 1.2; }
.czd-menu-toggle { flex: none; }
.czd-brand-preview { width: fit-content; max-width: calc(100% - 48px); margin: 20px 24px 0; padding: 10px 14px; border-radius: 8px; background: var(--czd-navy); }
.czd-settings-form input[type="file"] { max-width: 100%; }
@media (max-width: 900px) {
  .czd-brand img { width: 48px; height: 38px; }
}

.czd-account-setup { display: block; min-height: auto; }
.czd-account-setup img { object-fit: contain; }
.czd-staff-permissions { min-width: 0; margin: 0; padding: 12px 14px; border: 1px solid var(--czd-line); border-radius: 8px; }
.czd-staff-permissions legend { padding: 0 6px; font-weight: 700; }
.czd-staff-permissions .czd-field { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 2px 9px; padding: 8px 0; }
.czd-staff-permissions .czd-field input { grid-column: 1; grid-row: 1; }
.czd-staff-permissions .czd-field span, .czd-staff-permissions .czd-field small { grid-column: 2; }
.czd-staff-permissions .czd-field small { color: var(--czd-muted); font-weight: 500; }

/* Photo review workspace: private imagery first, decisions beside it. */
.czp-queue{background:#fff;border:1px solid var(--czd-line);border-radius:14px;overflow:hidden;min-width:0}
.czp-queue-intro{padding:28px;display:flex;align-items:flex-start;justify-content:space-between;gap:24px;background:#f9fafc;border-bottom:1px solid var(--czd-line)}
.czp-queue-intro h2{font:700 23px/1.25 'Bricolage Grotesque',sans-serif;letter-spacing:-.5px;margin:0 0 9px}.czp-queue-intro p{margin:0;max-width:600px;font-size:13px;line-height:1.7;color:var(--czd-muted)}
.czp-mode{display:inline-flex;align-items:center;gap:8px;flex:none;border:1px solid #cdd8e4;background:#fff;border-radius:24px;padding:9px 12px;font-size:11px;font-weight:650;color:#34495e}.czp-mode svg{width:16px;height:16px}
.czp-toolbar{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;padding:22px 28px 18px;border-bottom:1px solid var(--czd-line);flex-wrap:wrap}.czp-tabs{display:flex;gap:5px;flex-wrap:wrap;background:#f0f3f7;padding:4px;border-radius:9px}.czp-filter{display:flex;align-items:center;gap:9px;min-height:42px;border:0;border-radius:6px;padding:9px 12px;background:transparent;color:#526277;font-weight:650;font-size:12px}.czp-filter[aria-pressed=true]{background:#fff;color:#17283c;box-shadow:0 1px 4px #1020331a}.czp-filter-count{background:#e8edf3;border-radius:20px;min-width:22px;padding:1px 6px;font-size:10px;text-align:center}.czp-filter[aria-pressed=true] .czp-filter-count{background:#fcefe6;color:#a43e09}.czp-tools{display:flex;gap:12px;align-items:flex-end}.czp-tools .czd-field{width:210px}.czp-tools .czd-field input{font-size:12px;min-height:42px}.czp-list-count{font-size:11px;color:#526277;margin:0;padding:14px 28px 0}.czp-list{padding:4px 28px 24px}.czp-row{display:grid;grid-template-columns:88px minmax(0,1fr) auto;gap:22px;align-items:center;padding:24px 0;border-bottom:1px solid #e2e8ef}.czp-row:last-child{border-bottom:0}.czp-mark{display:grid;place-items:center;width:88px;height:76px;border-radius:10px;background:#edf3f8;color:#31516c}.czd-app .czp-mark svg{width:72px;height:50px}.czp-row-heading{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.czp-row h3{font-size:15px;letter-spacing:-.2px;margin:0;font-weight:750}.czp-status{font-size:10px;white-space:nowrap}.czp-status.czd-state-pending{background:#fff3dc;color:#805009}.czp-status.czd-state-may_qualify{background:#eaf7ef;color:#226348}.czp-status.czd-state-needs_assessment{background:#edf5fe;color:#245b90}.czp-status.czd-state-retake{background:#fff0f1;color:#9a3339}.czp-row-date{margin:6px 0 12px;font-size:11px;color:#526277}.czp-row-facts{display:flex;flex-wrap:wrap;gap:8px 22px;color:#526277;font-size:12px}.czp-row-facts strong{font-weight:600;color:#34495e}.czp-row-action{display:flex;flex-direction:column;gap:9px;align-items:flex-end}.czp-row-action small{font-size:10px;color:#526277}.czp-row-action .czd-button{min-height:46px}.czp-privacy{margin:0;padding:16px 28px;border-top:1px solid var(--czd-line);font-size:11px;color:#526277;background:#f9fafc}.czp-empty{padding:48px 24px}
.czd-photo-dialog{margin:auto!important;width:min(1160px,calc(100% - 40px));max-height:calc(100dvh - 40px);padding:0;overflow:auto;border:1px solid #bac7d5;border-radius:16px}.czp-review-head{position:sticky;top:0;z-index:2;display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:25px 28px;border-bottom:1px solid #dce3eb;background:#fff}.czd-photo-dialog .czp-review-head h2{margin:0 0 7px;font-size:25px;letter-spacing:-.6px}.czp-review-head p{margin:0;color:#526277;font-size:11px}.czp-review-head .czd-dialog-close{float:none;flex:none}.czp-review-layout{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(320px,1fr)}.czp-visual{padding:24px;background:#f4f6f9;border-right:1px solid #dce3eb;min-width:0}.czp-viewer-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.czp-switcher{display:flex;gap:5px;flex-wrap:wrap}.czp-photo-tab,.czp-zoom{min-height:42px;display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:9px 12px;border:1px solid #a3b2c4;background:white;border-radius:7px;color:#34495e;font-size:11px;font-weight:650}.czp-photo-tab[aria-pressed=true]{border-color:#102033;background:#102033;color:#fff}.czp-zoom[aria-pressed=true]{background:#fcefe6;color:#a43e09;border-color:#a43e09}.czp-image-stage{height:340px;overflow:auto;border:1px solid #cad5e0;border-radius:10px;background:#102033;position:relative;display:grid;align-items:center}.czp-image-stage img{display:block;width:100%;height:100%;max-height:338px;object-fit:contain;min-width:0}.czp-image-stage.czp-zoomed{display:block}.czp-image-stage.czp-zoomed img{width:180%;max-width:none;height:auto;max-height:none;object-fit:initial}.czp-photo-loading{display:flex;flex-direction:column;gap:10px;align-items:center;justify-content:center;min-height:338px;padding:24px;color:#d7e1ec;font-size:13px;text-align:center}.czp-photo-loading p{margin:0}.czp-caption{font-size:11px;color:#526277;margin:10px 0 22px;line-height:1.6}.czp-answers{background:#fff;padding:18px;border:1px solid #dce3eb;border-radius:9px}.czp-answers h3{font-size:13px;margin:0 0 14px}.czp-answers dl{display:grid;grid-template-columns:1fr 1.25fr;gap:10px 16px;margin:0;font-size:12px}.czp-answers dt{color:#526277}.czp-answers dd{margin:0;font-weight:650;overflow-wrap:anywhere}.czp-limit{border-left:2px solid #c74b08;padding-left:12px;margin:18px 0 0;color:#526277;font-size:11px;line-height:1.75}.czp-review-form{padding:26px;min-width:0}.czp-review-title{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.czp-review-title h3{font:700 21px/1.3 'Bricolage Grotesque',sans-serif;margin:0}.czp-review-help{font-size:12px;line-height:1.75;color:#526277;margin:10px 0 20px}.czp-ai{border:1px solid #dce3eb;border-radius:8px;margin-bottom:22px;background:#f8fafc}.czp-ai summary{font-size:12px;font-weight:650;padding:14px;cursor:pointer;min-height:44px}.czp-ai-content{padding:0 14px 16px}.czp-ai-content p{white-space:pre-wrap;font-size:12px;line-height:1.75;color:#526277;margin:0 0 12px}.czp-ai-content p[role=alert]{color:#9a3339}.czp-review-form textarea{min-height:150px}.czp-review-form .czd-form-footer>.czd-button{width:100%;justify-content:center;min-height:48px}.czp-publish-note{font-size:11px;color:#526277;line-height:1.7;margin:13px 0 0}.czp-review-bottom{padding:15px 28px;display:flex;align-items:center;justify-content:space-between;gap:16px;border-top:1px solid #dce3eb;background:white}.czp-full-reference{font-size:11px;color:#526277;overflow-wrap:anywhere}.czp-full-reference summary{cursor:pointer;padding:8px 0;min-height:36px}.czp-full-reference code{display:block;font-size:11px;margin-bottom:8px}.czp-review-bottom .czd-button{flex:none}.czp-confirm-dialog{margin:auto!important}
@media(max-width:1000px){.czp-queue-intro{flex-direction:column;gap:16px}.czp-review-layout{grid-template-columns:minmax(0,1fr) minmax(300px,1fr)}.czp-visual,.czp-review-form{padding:20px}.czp-row{grid-template-columns:72px minmax(0,1fr) auto;gap:16px}.czp-mark{width:72px}.czp-row-facts{flex-direction:column;gap:4px}}
@media(max-width:760px){.czp-queue-intro,.czp-toolbar{padding:20px}.czp-tools{width:100%}.czp-tools .czd-field{flex:1;width:auto}.czp-tabs{width:100%}.czp-filter{flex:1;justify-content:center;padding:8px;font-size:11px;gap:5px}.czp-list{padding:4px 20px 16px}.czp-list-count{padding:14px 20px 0}.czp-row{grid-template-columns:58px minmax(0,1fr);gap:14px}.czp-mark{width:58px;height:64px}.czd-app .czp-mark svg{width:50px;height:40px}.czp-row-action{grid-column:2;align-items:flex-start;flex-direction:row;flex-wrap:wrap;align-items:center;gap:12px}.czp-row h3{font-size:13px}.czp-row-heading{gap:8px}.czp-row-date{margin-bottom:8px}.czp-privacy{padding:16px 20px}.czd-photo-dialog{width:calc(100% - 16px);max-height:calc(100dvh - 16px);border-radius:12px}.czp-review-head{padding:20px;gap:12px}.czd-photo-dialog .czp-review-head h2{font-size:22px}.czp-review-layout{grid-template-columns:1fr}.czp-visual{border-right:0;border-bottom:1px solid #dce3eb}.czp-image-stage{height:260px}.czp-image-stage img{max-height:258px}.czp-photo-loading{min-height:258px}.czp-review-bottom{padding:14px 20px}.czp-queue-intro h2{font-size:21px}.czp-switcher{gap:4px}.czp-photo-tab,.czp-zoom{padding:8px;font-size:10px}}

.czp-email-status{padding:16px;border:1px solid #d8e0e9;border-radius:12px;background:#f7f9fb;margin:16px 0}.czp-email-status h4{font-size:14px;margin:0 0 8px}.czp-email-status p{font-size:13px;line-height:1.6;margin:6px 0}.czp-email-recipient{overflow-wrap:anywhere;font-weight:600}.czp-email-optin{display:flex!important;align-items:center;gap:10px;min-height:44px;font-size:13px;line-height:1.5}.czp-email-optin input{width:20px!important;min-height:20px!important;flex-shrink:0}
@media(max-width:760px){.czp-viewer-toolbar{display:grid;grid-template-columns:minmax(0,1fr) 44px;gap:8px}.czp-switcher{display:grid;grid-template-columns:1fr 1fr}.czp-photo-tab{padding:8px 6px;min-width:0;line-height:1.3}.czp-zoom{min-width:44px;min-height:44px}.czp-zoom span{display:none}}

/* Keep the dialog itself scrollable within the visible viewport. */
dialog.czd-dialog[open] {
  --czd-dialog-top: max(16px, env(safe-area-inset-top));
  --czd-dialog-bottom: max(16px, env(safe-area-inset-bottom));
  top: var(--czd-dialog-top) !important;
  max-height: calc(100dvh - var(--czd-dialog-top) - var(--czd-dialog-bottom)) !important;
}

/* Operations dashboard refresh */
.czd-app,.czd-dialog{
 --czd-navy:#132638;--czd-paper:#edf2f5;--czd-ink:#142a3c;--czd-muted:#4c6173;
 --czd-line:#d4dfe7;--czd-orange:#a94212;--czd-hover:#fff2e7;
}
body.cz-admin-open{background:#edf2f5}
.czd-sidebar{background:#132638;border-right:1px solid #294155}
.czd-brand{padding-bottom:24px}
.czd-nav-group+.czd-nav-group{margin-top:10px}
.czd-nav-label{color:#b0c4d2;letter-spacing:.035em}
.czd-nav-item{border-radius:8px;color:#d1dfea}
.czd-nav-item[aria-current=page]{background:#294357;border-color:#3c576c;box-shadow:inset 3px 0 #ffa464}
.czd-app .czd-toolbar{border-bottom:1px solid #d4dfe7;min-height:68px}
.czd-global-search{
 border:1px solid #d4dfe7;background:#f6f9fb;border-radius:9px;padding:0 12px;min-width:0;
}
.czd-global-search input{background:transparent;min-height:42px}
.czd-view{padding-top:clamp(22px,3vw,46px)}
.czd-page-heading{margin-bottom:22px}
.czd-page-heading h1{font-size:clamp(28px,3vw,42px);letter-spacing:-.04em}
.czd-page-heading p{font-size:14px}
.czd-metrics{
 background:transparent;padding:0;gap:10px;
 grid-template-columns:repeat(auto-fit,minmax(min(100%,145px),1fr));
}
.czd-metric{
 background:#fff;border:1px solid var(--czd-line);border-radius:12px;padding:16px;gap:10px;
 min-width:0;box-shadow:none;
}
.czd-metric:hover{background:#f8fbfd;border-color:#9eb4c4}
.czd-metric:focus-visible{outline-color:#a94212}
.czd-metric-top{color:#375166}
.czd-metric-top svg{color:#a94212}
.czd-metric-number{color:#142a3c;font-variant-numeric:tabular-nums}
.czd-panel{border-radius:13px;box-shadow:0 1px 2px #1326380a;min-width:0}
.czd-panel-head{border-bottom-color:#d4dfe7}
.czd-panel-head h2{letter-spacing:-.025em}
.czd-today .czd-panel-head{background:#f7fafc}
.czd-priority .czd-panel-head{background:#fff6ee;border-top:0;border-bottom-color:#e9d8ca}
.czd-priority .czd-attention-row:hover{background:#fff7f0}
.czd-dispatch-time,.czd-table,.czd-badge{font-variant-numeric:tabular-nums}
.czd-table-scroll{max-width:100%;overscroll-behavior-inline:contain}
.czd-table thead th{background:#edf3f7;color:#314e63}
.czd-table tbody tr:hover{background:#f6f9fb}
.czd-filters{gap:10px}
.czd-button{border-radius:8px}
.czd-primary{background:#a94212;border-color:#a94212}
.czd-primary:hover{background:#8a350d;border-color:#8a350d}
.czd-form :is(input,select,textarea):not([type=checkbox],[type=radio]){max-width:100%;min-width:0}
.czd-dialog h2{overflow-wrap:anywhere}
.czd-dialog .czd-form{margin-top:16px}
@media(max-width:900px){
 .czd-sidebar{border-right:0}
 .czd-brand{padding-bottom:0}
 .czd-app .czd-toolbar{min-height:64px}
}
@media(max-width:560px){
 .czd-view{padding-inline:max(14px,env(safe-area-inset-left)) max(14px,env(safe-area-inset-right))}
 .czd-page-heading{align-items:flex-start;flex-wrap:wrap;gap:10px}
 .czd-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .czd-metric{padding:12px}
 .czd-metric-top{white-space:normal}
 .czd-filters>*{min-width:0}
 .czd-form :is(input,select,textarea):not([type=checkbox],[type=radio]){font-size:16px}
 .czd-dialog h2{font-size:21px}
}

/* Website settings layout */
.czd-settings-layout{display:grid;grid-template-columns:180px minmax(0,1fr);align-items:start;gap:clamp(16px,3vw,36px);max-width:1180px}
.czd-settings-index{position:sticky;top:24px;display:grid;gap:2px;padding-block:6px;border-right:1px solid var(--czd-line)}
.czd-settings-jump{min-height:44px;text-align:left;border:0;border-radius:8px;background:transparent;color:#294457;font-weight:650;padding:8px 12px;margin-right:10px}
.czd-settings-jump:hover,.czd-settings-jump:focus-visible{background:#dde8ef;color:#152b3c}
.czd-settings-content,.czd-settings-integrations{display:grid;gap:20px;min-width:0}
.czd-settings-content [id^="czd-settings-"]{scroll-margin-top:24px}
.czd-settings-content .czd-settings-form{max-width:none;gap:20px}
.czd-settings-content .czd-settings-integrations>h2{margin:4px 0 -8px}
.czd-settings-content .czd-settings-integrations .czd-button{margin:0 20px 18px}
.czd-settings-content .czd-settings-integrations .czd-note{margin:0 20px 12px}
#czd-settings-visibility{border-top:3px solid #25445b}
#czd-settings-visibility>.czd-form{padding:16px 20px;gap:8px}
#czd-settings-visibility .czd-button{justify-self:start;margin:4px 0}
#czd-settings-visibility .czd-link{min-height:38px}
#czd-settings-visibility [role=status]{margin:0;color:#40596b}
.czd-settings-footer{z-index:2}
@media(max-width:1050px){
 .czd-settings-layout{grid-template-columns:minmax(0,1fr)}
 .czd-settings-index{position:static;display:flex;flex-wrap:wrap;gap:6px;border:0;padding:0}
 .czd-settings-jump{margin:0;background:#fff;border:1px solid var(--czd-line)}
}
@media(max-width:560px){
 .czd-settings-index{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
 #czd-settings-visibility .czd-button{justify-self:stretch}
}

/* Technician photo actions: compact icon controls aligned with the upload field. */
.czd-tech-photo-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:8px 12px}
.czd-tech-photo-row>.czd-field{min-width:0}
.czd-tech-photo-actions{display:flex;align-items:center;gap:7px;padding-bottom:1px}
.czd-tech-photo-icon{display:inline-grid;place-items:center;width:44px;height:44px;flex:0 0 44px;padding:0;border:1px solid #cbd6e1;border-radius:10px;background:#fff;color:#263e52;cursor:pointer;transition:background-color .16s ease,border-color .16s ease,color .16s ease,transform .16s ease}
.czd-tech-photo-icon svg{width:19px;height:19px}
.czd-tech-photo-icon:hover{background:#fff5ed;border-color:#c74b08;color:#a63c06}
.czd-tech-photo-icon:active{transform:scale(.96)}
.czd-tech-photo-icon:focus-visible{outline:3px solid #2684ff;outline-offset:2px}
.czd-tech-photo-icon:disabled{opacity:.55;cursor:wait}
.czd-tech-photo-row>.czd-note{grid-column:1/-1;margin:0}
@media(max-width:520px){.czd-tech-photo-row{grid-template-columns:minmax(0,1fr) auto;gap:8px}.czd-tech-photo-actions{gap:5px}.czd-tech-photo-icon{width:42px;height:42px;flex-basis:42px;border-radius:9px}}

.czd-tech-photo-row{display:grid;grid-template-columns:minmax(0,1fr);gap:8px}
.czd-tech-photo-gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(76px,88px));gap:10px}
.czd-tech-photo-thumb{position:relative;width:88px;height:76px;border:1px solid #d5dee7;border-radius:10px;overflow:hidden;background:#edf2f6}
.czd-tech-photo-thumb img{width:100%;height:100%;object-fit:cover}
.czd-tech-photo-thumb .czd-tech-photo-icon{position:absolute;top:5px;right:5px;width:32px;height:32px;min-height:32px;flex-basis:32px;border-radius:8px;background:#fff;color:#9b3412;box-shadow:0 1px 5px #10203333}
.czd-tech-photo-thumb .czd-tech-photo-icon svg{width:16px;height:16px}


/* ============================================================================
   ATTRACTIVE ADMIN SIGN-IN PORTAL (Pure CSS enhancement; auth logic untouched)
   ============================================================================ */
html:has(.cz-sql-login),
body:has(.cz-sql-login),
body:has(.cz-sql-login) #root,
body:has(.cz-sql-login) main:has(.cz-sql-login) {
  background:
    radial-gradient(ellipse 65% 50% at 50% 12%, rgba(255, 122, 26, 0.14) 0%, transparent 65%),
    radial-gradient(ellipse 55% 45% at 85% 85%, rgba(56, 189, 248, 0.10) 0%, transparent 60%),
    linear-gradient(180deg, #0b111a 0%, #101926 100%) !important;
  min-height: 100vh !important;
}

body:has(.cz-sql-login) main:has(.cz-sql-login) {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 24px !important;
}

.cz-sql-login {
  background: rgba(17, 25, 39, 0.88) !important;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 22px !important;
  padding: 36px 34px 32px !important;
  box-shadow: 0 32px 64px -20px rgba(0, 0, 0, 0.78), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
  color: #f8fafc !important;
}

.cz-sql-login::before {
  content: "CHIP ZORRO · OPERATIONS PORTAL";
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: rgba(255, 122, 26, 0.14);
  border: 1px solid rgba(255, 122, 26, 0.35);
  color: #ff9a57;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.cz-sql-login :is(h1, h2) {
  color: #ffffff !important;
  font-family: 'Bricolage Grotesque', 'Plus Jakarta Sans', sans-serif !important;
  font-size: 28px !important;
  letter-spacing: -0.03em !important;
  margin-bottom: 6px !important;
}

.cz-sql-login p,
.cz-sql-login label {
  color: #cbd5e1 !important;
}

.cz-sql-login input:not([type="checkbox"]) {
  background: rgba(9, 13, 21, 0.85) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  color: #ffffff !important;
  border-radius: 11px !important;
  min-height: 46px !important;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.cz-sql-login input:not([type="checkbox"]):focus {
  border-color: #ff8a36 !important;
  box-shadow: 0 0 0 3px rgba(255, 138, 54, 0.22) !important;
  outline: none !important;
}

.cz-sql-login button[type="submit"] {
  background: linear-gradient(135deg, #ff821d 0%, #ea580c 100%) !important;
  color: #ffffff !important;
  border: 0 !important;
  border-radius: 11px !important;
  min-height: 48px !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  box-shadow: 0 10px 24px -6px rgba(234, 88, 12, 0.45) !important;
  transition: transform 140ms cubic-bezier(0.23, 1, 0.32, 1), filter 140ms ease;
}

.cz-sql-login button[type="submit"]:hover {
  filter: brightness(1.07);
  transform: translateY(-1px);
}

/* ============================================================================
   FIELD ISSUE / RESCHEDULE ALERT BANNER (Admin Overview)
   ============================================================================ */
.czd-issue-alert {
  margin-bottom: 20px;
  background: #fff1f2;
  border: 1px solid #fecdd3;
  border-left: 4px solid #e11d48;
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: 0 8px 20px -12px rgba(225, 29, 72, 0.25);
}
.czd-issue-alert-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.czd-issue-alert-head strong {
  color: #9f1239;
  font-size: 14px;
  font-weight: 800;
}
.czd-issue-alert-head span {
  font-size: 11px;
  font-weight: 700;
  color: #be123c;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.czd-issue-alert-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 14px;
  background: #ffffff;
  border: 1px solid #ffe4e6;
  border-radius: 9px;
  margin-top: 8px;
}
.czd-issue-alert-info strong {
  display: block;
  font-size: 13px;
  color: #17283c;
}
.czd-issue-alert-info p {
  margin: 2px 0 0;
  font-size: 12px;
  color: #9f1239;
}
@media (max-width: 680px) {
  .czd-issue-alert-row { flex-direction: column; align-items: stretch; }
}

.czd-stacked > .czd-badge { align-self:flex-start; }
.czd-badge.czd-state-unpaid { color:#9a3339;background:#fff0f1;border-color:#edc6c9; }
.czd-badge.czd-state-insurance { color:#245b90;background:#edf5fe;border-color:#c6d9ed; }


/* ==========================================================================
   ADVANCED GRAPHICAL & VISUAL DESIGN ENGINE (2026 REFINED SPEC)
   ========================================================================== */

/* Refined Typography, Elevation, & Lighting System */
.czd-app, .czd-dialog {
  --czd-navy: #0b1523;
  --czd-paper: #f1f5f9;
  --czd-ink: #0f172a;
  --czd-muted: #64748b;
  --czd-line: #e2e8f0;
  --czd-orange: #b24810;
  --czd-orange-gradient: linear-gradient(135deg, #c2410c 0%, #9a3412 100%);
  --czd-card-bg: #ffffff;
  --czd-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --czd-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --czd-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --czd-shadow-focus: 0 0 0 3px rgba(194, 65, 12, 0.22);
}

/* Panels & Cards Modern Polish */
.czd-panel {
  border: 1px solid rgba(226, 232, 240, 0.85)!important;
  border-radius: 12px!important;
  box-shadow: var(--czd-shadow-sm)!important;
  transition: box-shadow 200ms cubic-bezier(0.16, 1, 0.3, 1), border-color 200ms ease;
  background: #ffffff!important;
}
.czd-panel:hover {
  box-shadow: var(--czd-shadow-md)!important;
}

/* Metric Cards Modern Styling */
.czd-metric {
  border: 1px solid #e2e8f0!important;
  border-radius: 12px!important;
  box-shadow: var(--czd-shadow-sm)!important;
  background: #ffffff!important;
  transition: all 200ms cubic-bezier(0.16, 1, 0.3, 1)!important;
  position: relative;
  overflow: hidden;
}
.czd-metric::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
  transition: background 200ms ease;
}
.czd-metric:hover {
  transform: translateY(-2px);
  box-shadow: var(--czd-shadow-md)!important;
  border-color: #cbd5e1!important;
}
.czd-metric:hover::before {
  background: linear-gradient(90deg, #ea580c, #f97316);
}
.czd-metric-number {
  color: #0f172a!important;
  font-weight: 750!important;
  letter-spacing: -1.2px!important;
}

/* ==========================================================================
   ADVANCED BUTTON ARCHITECTURE
   ========================================================================== */
.czd-button {
  font-family: inherit;
  font-size: 13px!important;
  font-weight: 600!important;
  letter-spacing: -0.01em;
  border-radius: 8px!important;
  border: 1px solid #cbd5e1!important;
  background: #ffffff!important;
  color: #334155!important;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  transition: all 160ms cubic-bezier(0.16, 1, 0.3, 1)!important;
  cursor: pointer;
}
.czd-button:hover {
  background: #f8fafc!important;
  border-color: #94a3b8!important;
  color: #0f172a!important;
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.06);
}
.czd-button:active {
  transform: translateY(0);
  background: #f1f5f9!important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Primary High-Impact Gradient Button */
.czd-button.czd-primary, .czd-primary {
  background: linear-gradient(180deg, #c2410c 0%, #9a3412 100%)!important;
  border: 1px solid #83184300!important;
  color: #ffffff!important;
  font-weight: 700!important;
  box-shadow: 0 2px 4px rgba(154, 52, 18, 0.28), 0 1px 2px rgba(0, 0, 0, 0.08)!important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.czd-button.czd-primary:hover, .czd-primary:hover {
  background: linear-gradient(180deg, #ea580c 0%, #c2410c 100%)!important;
  border-color: transparent!important;
  box-shadow: 0 4px 10px rgba(194, 65, 12, 0.38), 0 2px 4px rgba(0, 0, 0, 0.12)!important;
  transform: translateY(-1px);
}
.czd-button.czd-primary:active, .czd-primary:active {
  background: #7c2d12!important;
  transform: translateY(0);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.25)!important;
}

/* Quiet / Action Bar Buttons */
.czd-button.czd-quiet {
  background: #f8fafc!important;
  border: 1px solid #e2e8f0!important;
  color: #475569!important;
}
.czd-button.czd-quiet:hover {
  background: #ffffff!important;
  border-color: #cbd5e1!important;
  color: #0f172a!important;
}

/* Small Table Row Action Buttons */
.czd-button.czd-small {
  padding: 6px 14px!important;
  min-height: 32px!important;
  font-size: 12px!important;
  border-radius: 6px!important;
}
.czd-button.czd-small.czd-primary {
  padding: 6px 14px!important;
  min-height: 32px!important;
  font-size: 12px!important;
  border-radius: 6px!important;
}

/* Danger Button */
.czd-button.czd-danger {
  color: #e11d48!important;
  border-color: #fecdd3!important;
  background: #fff1f2!important;
}
.czd-button.czd-danger:hover {
  background: #ffe4e6!important;
  border-color: #fda4af!important;
  color: #be123c!important;
}

/* ==========================================================================
   ADVANCED FORM INPUTS & SELECT FIELDS
   ========================================================================== */
.czd-field label, .czd-field > span {
  font-size: 12px!important;
  font-weight: 650!important;
  color: #334155!important;
  letter-spacing: -0.01em;
  margin-bottom: 2px;
}

.czd-field input,
.czd-field select,
.czd-field textarea {
  width: 100%;
  min-height: 42px!important;
  padding: 9px 13px!important;
  border: 1.5px solid #cbd5e1!important;
  border-radius: 8px!important;
  background: #ffffff!important;
  color: #0f172a!important;
  font-size: 13.5px!important;
  font-weight: 500!important;
  line-height: 1.5!important;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.04)!important;
  transition: all 150ms cubic-bezier(0.16, 1, 0.3, 1)!important;
}

.czd-field input:hover,
.czd-field select:hover,
.czd-field textarea:hover {
  border-color: #94a3b8!important;
}

.czd-field input:focus,
.czd-field select:focus,
.czd-field textarea:focus {
  outline: none!important;
  border-color: #c2410c!important;
  box-shadow: 0 0 0 3px rgba(194, 65, 12, 0.16), 0 1px 2px 0 rgba(0, 0, 0, 0.05)!important;
  background: #ffffff!important;
}

.czd-field select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px!important;
  appearance: none;
}

/* Global Search Input in Top Header */
.czd-global-search {
  background: #f1f5f9!important;
  border: 1.5px solid #e2e8f0!important;
  border-radius: 24px!important;
  padding: 4px 16px!important;
  transition: all 160ms ease!important;
}
.czd-global-search:focus-within {
  background: #ffffff!important;
  border-color: #c2410c!important;
  box-shadow: 0 0 0 3px rgba(194, 65, 12, 0.14)!important;
}
.czd-global-search input {
  background: transparent!important;
  font-size: 13px!important;
  border: 0!important;
  outline: none!important;
}

/* Filter Bar Refinement */
.czd-filters {
  background: #fafbfd!important;
  border-bottom: 1px solid #e2e8f0!important;
  padding: 16px 24px!important;
  gap: 12px!important;
}

/* ==========================================================================
   MODERN TABLE DATA & STATUS BADGES
   ========================================================================== */
.czd-table th {
  background: #f8fafc!important;
  color: #475569!important;
  font-size: 11px!important;
  font-weight: 700!important;
  text-transform: uppercase!important;
  letter-spacing: 0.04em!important;
  padding: 14px 20px!important;
  border-bottom: 1.5px solid #e2e8f0!important;
}

.czd-table td {
  padding: 14px 20px!important;
  border-bottom: 1px solid #f1f5f9!important;
  color: #1e293b!important;
  font-size: 12.5px!important;
}

.czd-table tbody tr {
  transition: background-color 120ms ease;
}
.czd-table tbody tr:hover {
  background: #f8fafc!important;
}

/* Sleek Pill Badges */
.czd-badge {
  display: inline-flex!important;
  align-items: center!important;
  gap: 5px!important;
  padding: 3px 9px!important;
  border-radius: 9999px!important;
  font-size: 11px!important;
  font-weight: 700!important;
  letter-spacing: 0.02em!important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.czd-badge.czd-state-pending, .czd-badge.czd-state-queued {
  background: #fffbeb!important;
  color: #b45309!important;
  border: 1px solid #fde68a!important;
}
.czd-badge.czd-state-accepted { color:#0284c7;background:#f0f9ff;border-color:#bae6fd; }
.czd-badge.czd-state-arrived { color:#b45309;background:#fef3c7;border-color:#fde68a; }
.czd-badge.czd-state-confirmed, .czd-badge.czd-state-dispatched, .czd-badge.czd-state-active {
  background: #eff6ff!important;
  color: #1d4ed8!important;
  border: 1px solid #bfdbfe!important;
}
.czd-badge.czd-state-en_route, .czd-badge.czd-state-on_route, .czd-badge.czd-state-in_review {
  background: #faf5ff!important;
  color: #7e22ce!important;
  border: 1px solid #e9d5ff!important;
}
.czd-badge.czd-state-in_progress, .czd-badge.czd-state-completed, .czd-badge.czd-state-paid, .czd-badge.czd-state-approved {
  background: #ecfdf5!important;
  color: #047857!important;
  border: 1px solid #a7f3d0!important;
}
.czd-badge.czd-state-cancelled, .czd-badge.czd-state-rejected {
  background: #fff1f2!important;
  color: #be123c!important;
  border: 1px solid #fecdd3!important;
}

/* ==========================================================================
   POPUP MODAL & DIALOG WINDOW POLISH
   ========================================================================== */
.czd-dialog {
  border-radius: 16px!important;
  border: 1px solid #cbd5e1!important;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25)!important;
  padding: 32px!important;
}
.czd-dialog::backdrop {
  background: rgba(15, 23, 42, 0.45)!important;
  backdrop-filter: blur(4px)!important;
}
.czd-dialog h2 {
  font-size: 22px!important;
  font-weight: 800!important;
  letter-spacing: -0.02em!important;
  color: #0f172a!important;
}
/* ========================================================
   ADMIN DIALOG & CLOSE BUTTON - STREAMLINED & ELEVATED
   ======================================================== */
.czd-dialog {
  position: relative !important;
  width: min(720px, calc(100% - 32px)) !important;
  max-height: calc(100dvh - 48px) !important;
  overflow-y: auto !important;
  padding: 30px !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 18px !important;
  background: #ffffff !important;
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(15, 23, 42, 0.05) !important;
}
.czd-dialog::backdrop {
  background: rgba(15, 23, 42, 0.5) !important;
  backdrop-filter: blur(6px) !important;
  -webkit-backdrop-filter: blur(6px) !important;
}
.czd-dialog h2 {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif !important;
  font-size: 23px !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  letter-spacing: -0.02em !important;
  color: #0f172a !important;
  margin: 0 48px 10px 0 !important;
}
.czd-dialog-close {
  position: absolute !important;
  top: 18px !important;
  right: 18px !important;
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  min-height: 36px !important;
  max-width: 36px !important;
  max-height: 36px !important;
  padding: 0 !important;
  margin: 0 !important;
  float: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 50% !important;
  background: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
  color: #475569 !important;
  cursor: pointer !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06) !important;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
  z-index: 25 !important;
}
.czd-dialog-close:hover {
  background: #fee2e2 !important;
  border-color: #fca5a5 !important;
  color: #dc2626 !important;
  transform: scale(1.08) !important;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2) !important;
}
.czd-dialog-close:active {
  transform: scale(0.95) !important;
}
.czd-dialog-close svg,
.czd-dialog-close .czd-icon {
  width: 17px !important;
  height: 17px !important;
  stroke: currentColor !important;
  stroke-width: 2.2 !important;
  display: block !important;
  pointer-events: none !important;
}
.czd-dialog-close span {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.czp-review-head .czd-dialog-close {
  position: static !important;
  flex: none !important;
}
.czd-dismiss {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 50% !important;
  border: 1px solid transparent !important;
  background: transparent !important;
  color: inherit !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}
.czd-dismiss:hover {
  background: rgba(0, 0, 0, 0.08) !important;
}
.czd-dismiss svg {
  width: 16px !important;
  height: 16px !important;
}

/* ========================================================
   FIELD BILLING REVIEW - ADVANCED EXECUTIVE AUDIT MODAL
   ======================================================== */
.czd-billing-dialog {
  width: min(960px, calc(100% - 32px)) !important;
  padding: 30px !important;
}
.czd-billing-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 16px;
}
/* Audit Status Banner */
.czd-billing-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  flex-wrap: wrap;
}
.czd-billing-banner-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.czd-billing-state-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 20px;
  text-transform: capitalize;
}
.czd-billing-state-draft { background: #f1f5f9; color: #475569; border: 1px solid #cbd5e1; }
.czd-billing-state-ready { background: #e0f2fe; color: #0369a1; border: 1px solid #bae6fd; }
.czd-billing-state-in_review { background: #fef3c7; color: #b45309; border: 1px solid #fde68a; }
.czd-billing-state-external_submitted { background: #ede9fe; color: #6d28d9; border: 1px solid #ddd6fe; }
.czd-billing-state-external_accepted { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; }
.czd-billing-state-paid { background: #d1fae5; color: #047857; border: 1px solid #a7f3d0; }
.czd-billing-state-rejected { background: #fee2e2; color: #b91c1c; border: 1px solid #fca5a5; }
.czd-billing-state-needs_info { background: #fff7ed; color: #c2410c; border: 1px solid #ffedd5; }

.czd-billing-validation-chip {
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.czd-billing-validation-ok {
  color: #15803d;
}
.czd-billing-validation-warn {
  color: #b45309;
}
.czd-billing-missing-tag {
  background: #fee2e2;
  color: #991b1b;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  margin-left: 4px;
}

/* KPI Strip */
.czd-billing-kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}
.czd-billing-kpi-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}
.czd-billing-kpi-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
}
.czd-billing-kpi-val {
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}
.czd-billing-kpi-sub {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
}
.czd-billing-kpi-sub.czd-pill-green {
  color: #059669;
  font-weight: 700;
}
.czd-billing-kpi-sub.czd-pill-amber {
  color: #d97706;
}

/* Actions Toolbar */
.czd-billing-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px 20px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}
.czd-billing-actions .czd-button {
  min-height: 42px;
  font-size: 13px !important;
  font-weight: 600;
  border-radius: 9px;
  padding: 8px 16px;
}
.czd-billing-actions .czd-primary {
  background: #ea580c !important;
  border-color: #ea580c !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(234, 88, 12, 0.25) !important;
}
.czd-billing-actions .czd-primary:hover:not(:disabled) {
  background: #c2410c !important;
}
.czd-billing-pdf-hint {
  font-size: 12px;
  color: #64748b;
  margin: 0;
  width: 100%;
}

/* Dossier Grid (2 Cards) */
.czd-billing-dossier {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 16px;
}
.czd-billing-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
}
.czd-billing-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}
.czd-billing-card-head h3 {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.czd-billing-card-head h3 svg {
  width: 18px;
  height: 18px;
  color: #ea580c;
  flex: none;
}
.czd-billing-list {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 10px 16px;
  margin: 0;
  font-size: 13px;
}
.czd-billing-list dt {
  color: #64748b;
  font-weight: 500;
}
.czd-billing-list dd {
  margin: 0;
  color: #0f172a;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.czd-vin-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  background: #f1f5f9;
  padding: 3px 6px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  color: #1e293b;
  border: 1px solid #cbd5e1;
}
.czd-plate-pill {
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 12px;
  font-weight: 700;
  background: #e2e8f0;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.08em;
  color: #0f172a;
}
.czd-notes-quote {
  background: #f8fafc;
  border-left: 3px solid #ea580c;
  border-radius: 0 8px 8px 0;
  padding: 12px 16px;
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.6;
  color: #334155;
}

/* Evidence Gallery */
.czd-billing-evidence {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 22px;
}
.czd-billing-evidence-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-top: 14px;
}
.czd-billing-photo-card {
  position: relative;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  cursor: pointer;
}
.czd-billing-photo-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  border-color: #cbd5e1;
}
.czd-billing-photo-thumb {
  width: 100%;
  height: 160px;
  object-fit: contain;
  background: #ffffff;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}
.czd-billing-photo-cap {
  font-size: 11px;
  font-weight: 700;
  color: #1e293b;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.czd-billing-photo-badge {
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.czd-badge-emerald { background: #d1fae5; color: #047857; }
.czd-badge-blue { background: #dbeafe; color: #1d4ed8; }
.czd-badge-amber { background: #fef3c7; color: #b45309; }

/* Legal Authorization Card */
.czd-billing-auth-box {
  background: #faf5ff;
  border: 1px solid #e9d5ff;
  border-radius: 12px;
  padding: 18px;
}
.czd-billing-auth-box blockquote {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.6;
  color: #581c87;
  font-style: italic;
  white-space: pre-wrap;
}
.czd-billing-stage-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 22px;
}
.czd-billing-history-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 13px;
}
.czd-billing-history-card summary {
  cursor: pointer;
  font-weight: 700;
  color: #334155;
  padding: 4px 0;
}

/* ========================================================
   DATA EXPORTS & BACKUPS PANEL STYLING
   ======================================================== */
.czd-backups-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  padding: 24px;
}
.czd-backup-card {
  background: #ffffff;
  border: 1px solid var(--czd-line, #e2e8f0);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}
.czd-backup-card:hover {
  transform: translateY(-2px);
  border-color: #cbd5e1;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}
.czd-backup-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
}
.czd-backup-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  color: #2563eb;
  flex-shrink: 0;
}
.czd-backup-icon .czd-icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}
.czd-backup-title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.01em;
}
.czd-backup-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  background: #eff6ff;
  color: #1d4ed8;
  border-radius: 9999px;
  letter-spacing: 0.02em;
}
.czd-backup-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #64748b;
  flex-grow: 1;
}


/* ========================================================
   2. LIVE VAN DISPATCH & VISUAL MAP BOARD
   ======================================================== */
.czd-dispatch-visualizer {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
  margin-bottom: 22px;
}
.czd-dispatch-visualizer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.czd-dispatch-visualizer-head h3 {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.czd-dispatch-visualizer-head h3 svg {
  color: #ea580c;
  width: 18px;
  height: 18px;
}
.czd-live-pulse-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #059669;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.czd-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  position: relative;
}
.czd-pulse-dot::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  background: #10b981;
  animation: czdRadarPing 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes czdRadarPing {
  0% { transform: scale(1); opacity: 0.8; }
  75%, 100% { transform: scale(2.4); opacity: 0; }
}

.czd-vans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}
.czd-van-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.16s ease;
}
.czd-van-card:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}
.czd-van-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.czd-van-info {
  display: flex;
  align-items: center;
  gap: 12px;
}
.czd-van-avatar {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #0f1d2e;
  color: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  flex: none;
}
.czd-van-meta strong {
  display: block;
  font-size: 14px;
  color: #0f172a;
}
.czd-van-meta small {
  display: block;
  font-size: 11px;
  color: #64748b;
}
.czd-van-status-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
}
.czd-van-status-active { background: #d1fae5; color: #065f46; }
.czd-van-status-standby { background: #e0f2fe; color: #0369a1; }
.czd-van-status-offline { background: #f1f5f9; color: #475569; }

.czd-van-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  border-top: 1px solid #f1f5f9;
  padding-top: 10px;
}
.czd-van-actions .czd-button {
  min-height: 32px;
  padding: 4px 10px;
  font-size: 11px !important;
  font-weight: 600;
  border-radius: 6px;
}

/* ========================================================
   4. FLEET MANAGER DISPATCH MODAL
   ======================================================== */
.czd-fleet-modal {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.czd-fleet-card-preview {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 18px;
}
.czd-fleet-card-preview h4 {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}
.czd-fleet-email-body {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 14px;
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 11px;
  line-height: 1.6;
  white-space: pre-wrap;
  color: #334155;
  max-height: 220px;
  overflow-y: auto;
}
.czd-fleet-dispatch-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}



/* Real-Time Technician Duty Guard & Status Styles */
.czd-van-card.is-offduty {
  opacity: 0.85;
  border-color: #cbd5e1;
  background: #f8fafc;
}
.czd-van-card.is-offduty .czd-van-avatar {
  background: #475569;
}
.czd-van-status-pill.czd-van-status-offline {
  background: #fee2e2 !important;
  color: #991b1b !important;
  border: 1px solid #fecaca !important;
}
.czd-tech-duty-guard {
  margin: 6px 0 12px;
}
.czd-duty-alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #fff1f2;
  border: 1px solid #fecdd3;
  border-left: 4px solid #e11d48;
  border-radius: 10px;
  padding: 12px 14px;
  color: #9f1239;
}
.czd-duty-alert-icon {
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
}
.czd-duty-alert-content strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #9f1239;
  margin-bottom: 3px;
}
.czd-duty-alert-content p {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: #881337;
}
.czd-duty-ok {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
  color: #166534;
}
.czd-duty-ok-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
  flex-shrink: 0;
}


.czd-field-chip[data-tone="offline"] {
  color: #991b1b !important;
  background: #fee2e2 !important;
  border: 1px solid #fecaca !important;
}
.czd-field-chip[data-tone="break"] {
  color: #075985 !important;
  background: #e0f2fe !important;
  border: 1px solid #bae6fd !important;
}
.czd-field-person.is-offduty {
  opacity: 0.85;
  background: #f8fafc;
  border-color: #cbd5e1;
}
.czd-field-person.is-offduty .czd-field-avatar {
  background: #64748b;
}
.czd-offduty-chip {
  color: #b91c1c !important;
  font-weight: 700 !important;
}


/* ========================================================
   FLEET MANIFEST & ADMIN DIALOG OVERHAUL
   Ensures zero button clipping, responsive action grids,
   and clean rate styling.
   ======================================================== */
.czd-fleet-actions-bar {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
  gap: 10px !important;
  margin: 16px 0 20px !important;
  width: 100% !important;
}
.czd-fleet-actions-bar .czd-button {
  width: 100% !important;
  justify-content: center !important;
  min-height: 44px !important;
  font-size: 12.5px !important;
  white-space: normal !important;
  text-align: center !important;
  padding: 8px 12px !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08) !important;
}
.czd-dialog-bottom-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin-top: 20px !important;
  padding-top: 16px !important;
  border-top: 1px solid var(--czd-line) !important;
  flex-wrap: wrap !important;
}
.czd-dialog-bottom-actions .czd-button {
  min-height: 44px !important;
}
.czd-fleet-rate-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  background: #f0fdf4 !important;
  color: #166534 !important;
  border: 1px solid #bbf7d0 !important;
  border-radius: 5px !important;
  padding: 2px 7px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  margin-top: 3px !important;
}
.czd-table td:last-child .czd-row-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  min-width: 170px !important;
  align-items: center !important;
}
.czd-table td:last-child .czd-row-actions .czd-button {
  min-height: 36px !important;
  padding: 6px 11px !important;
  font-size: 11.5px !important;
  white-space: nowrap !important;
}

/* Compact Fleet Queue Table - Fits 1280px Desktop Without Horizontal Scrolling */
.czd-fleet-panel .czd-table th,
.czd-fleet-panel .czd-table td {
  padding: 10px 8px !important;
  font-size: 11.5px !important;
}
.czd-fleet-panel .czd-table {
  width: 100% !important;
  table-layout: auto !important;
}
.czd-fleet-panel .czd-table td:last-child {
  padding-right: 10px !important;
  width: 175px !important;
  white-space: nowrap !important;
}
