/* Dispatch Board CSS (v2.2.4) */
:root {
  --primary: #2563eb; --primary-dark: #1d4ed8;
  --bg: #f1f5f9; --card: #ffffff;
  --text: #0f172a; --text-muted: #64748b;
  --border: #e2e8f0;
  --danger: #ef4444; --success: #22c55e;
}
body.dispatch-mode { background: var(--bg); color: var(--text); font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; margin: 0; padding: 0; }
body.dispatch-mode #wpadminbar { display: none !important; }
body.dispatch-mode { margin-top: 0 !important; }
html.dispatch-mode { margin-top: 0 !important; }

/* Layout */
.dispatch-app { display: flex; min-height: 100vh; }
.dispatch-sidebar { width: 260px; background: #0f172a; color: #fff; display: flex; flex-direction: column; position: fixed; top: 0; bottom: 0; left: 0; z-index: 50; transition: transform 0.2s; }
.dispatch-main { flex: 1; margin-left: 260px; padding: 20px; box-sizing: border-box; width: 100%; }
.dispatch-content { max-width: 1000px; margin: 0 auto; }

@media (max-width: 900px) {
  .dispatch-sidebar { transform: translateX(-100%); }
  .dispatch-sidebar.is-open { transform: translateX(0); box-shadow: 4px 0 24px rgba(0,0,0,0.3); }
  .dispatch-main { margin-left: 0; padding: 14px; padding-top: 60px; }
  .dispatch-fab-menu { display: flex !important; }
}

select[multiple].dispatch-input { height: auto; min-height: 140px; background-image: none; padding: 8px; }

/* UI Elements */
.dispatch-brand { padding: 20px; font-weight: 800; font-size: 20px; letter-spacing: -0.5px; }
.dispatch-brand-sub { font-size: 12px; font-weight: 400; opacity: 0.6; margin-top: 4px; }
.dispatch-nav { display: flex; flex-direction: column; padding: 0 10px; gap: 4px; }
.dispatch-nav a { color: #cbd5e1; text-decoration: none; padding: 10px 12px; border-radius: 8px; font-size: 14px; font-weight: 500; transition: background 0.1s; }
.dispatch-nav a:hover, .dispatch-nav a.is-active { background: #1e293b; color: #fff; }
.dispatch-sidebar-footer { margin-top: auto; padding: 20px; border-top: 1px solid #1e293b; }
.dispatch-link { color: #94a3b8; text-decoration: none; font-size: 14px; }

.dispatch-card { background: var(--card); border-radius: 12px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); padding: 20px; margin-bottom: 20px; }
.dispatch-btn, .dispatch-btn-primary { cursor: pointer; padding: 8px 16px; border-radius: 6px; font-size: 14px; font-weight: 500; border: 0; transition: 0.1s; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.dispatch-btn { background: #e2e8f0; color: #334155; }
.dispatch-btn:hover { background: #cbd5e1; }
.dispatch-btn-primary { background: var(--primary); color: #fff; }
.dispatch-btn-primary:hover { background: var(--primary-dark); }

.dispatch-input { width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 6px; font-size: 15px; margin-bottom: 12px; background: #fff; }
.dispatch-input:focus { outline: 2px solid var(--primary); border-color: transparent; }
.dispatch-label { display: block; font-size: 13px; font-weight: 600; color: #475569; margin-bottom: 6px; }
.dispatch-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.dispatch-muted-small { font-size: 13px; color: #64748b; }

/* Job Cards */
.dispatch-cardjob { background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; margin-bottom: 10px; overflow: hidden; transition: box-shadow 0.2s; }
.dispatch-cardjob:hover { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); }
.dispatch-cardjob-hd { padding: 16px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; background: #fff; }
.dispatch-cardjob-hd:hover { background: #f8fafc; }
.dispatch-cardjob-title { font-weight: 700; color: #0f172a; font-size: 16px; }
.dispatch-cardjob-sub { font-size: 13px; color: #64748b; margin-top: 4px; }
.dispatch-cardjob-badges { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.dispatch-cardjob-chevron { width: 20px; height: 20px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2364748b'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z' clip-rule='evenodd'/%3E%3C/svg%3E"); transition: transform 0.2s; }
.dispatch-cardjob.is-open .dispatch-cardjob-chevron { transform: rotate(180deg); }
.dispatch-cardjob-bd { padding: 0 16px 16px 16px; display: none; border-top: 1px solid #f1f5f9; background: #fafafa; }
.dispatch-cardjob.is-open .dispatch-cardjob-bd { display: block; }

.dispatch-kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin-top: 16px; font-size: 14px; }
.dispatch-kv .k { color: #64748b; font-weight: 500; }
.dispatch-kv .v { color: #334155; }
.dispatch-cardjob-actions { margin-top: 16px; padding-top: 16px; border-top: 1px solid #e2e8f0; display: flex; gap: 10px; flex-wrap: wrap; }

.dispatch-pill { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 99px; background: #f1f5f9; color: #475569; font-size: 12px; font-weight: 600; border: 1px solid #e2e8f0; }
.dispatch-pill-dot { width: 6px; height: 6px; border-radius: 50%; margin-right: 6px; }

/* Utilities */
.dispatch-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 40; }
.dispatch-overlay.is-open { display: block; }
.dispatch-hidden { display: none !important; }
.dispatch-modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; }
.dispatch-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.6); }
.dispatch-modal-card { position: relative; background: #fff; width: 100%; max-width: 500px; border-radius: 12px; box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1); overflow: hidden; display: flex; flex-direction: column; max-height: 90vh; }
.dispatch-modal-header { padding: 16px; border-bottom: 1px solid #e2e8f0; display: flex; justify-content: space-between; align-items: center; background: #fff; }
.dispatch-modal-title { font-weight: 700; font-size: 18px; }
.dispatch-modal-body { padding: 20px; overflow-y: auto; }

/* Mobile Menu Button */
.dispatch-fab-menu { display: none; position: fixed; top: 10px; left: 10px; z-index: 60; width: 44px; height: 44px; border: 0; border-radius: 8px; background: var(--primary); box-shadow: 0 4px 12px rgba(37,99,235,0.3); align-items: center; justify-content: center; gap: 5px; flex-direction: column; cursor: pointer; }
.dispatch-fab-menu span { display: block; width: 20px; height: 2px; background: #fff; border-radius: 2px; }

/* Toolbar & Draggable */
.dispatch-toolbar { display: flex; gap: 10px; margin-bottom: 15px; flex-wrap: wrap; }
.dispatch-toolbar .dispatch-input { width: auto; margin-bottom: 0; min-width: 140px; }
.dispatch-draggable-event { cursor: grab; padding: 8px; background: #fff; border: 1px solid #e2e8f0; border-left: 3px solid #2563eb; border-radius: 4px; margin-bottom: 8px; font-size: 13px; font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
.dispatch-draggable-event:hover { background: #f8fafc; border-color: #cbd5e1; border-left-color: #1d4ed8; }

.dispatch-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 15px; margin-top: 20px; }
.dispatch-tile { background: #fff; padding: 20px; border-radius: 12px; text-decoration: none; color: inherit; border: 1px solid #e2e8f0; transition: 0.2s; display: block; }
.dispatch-tile:hover { transform: translateY(-2px); box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); border-color: var(--primary); }
.dispatch-tile-title { font-weight: 700; font-size: 16px; margin-bottom: 4px; color: var(--primary); }

.dispatch-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.dispatch-table th, .dispatch-table td { padding: 12px; text-align: left; border-bottom: 1px solid #e2e8f0; }
.dispatch-table th { font-weight: 600; color: #64748b; background: #f8fafc; white-space: nowrap; }

/* Image Sections */
.dispatch-img-section { margin-top: 20px; }
.dispatch-img-section h4 { margin: 0 0 10px 0; font-size: 14px; color: #64748b; text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 1px solid #e2e8f0; padding-bottom: 6px; }
.dispatch-grid-4 { display:grid; grid-template-columns:repeat(auto-fit,minmax(160px,1fr)); gap:12px; }
.dispatch-stat { background:#fff; border:1px solid #e2e8f0; border-radius:12px; padding:16px; }
.dispatch-stat-label { color:#64748b; font-size:13px; font-weight:600; margin-bottom:6px; }
.dispatch-stat-value { color:#0f172a; font-size:24px; font-weight:800; }
.dispatch-btn-secondary { background:#fff; color:var(--primary); border:1px solid #cbd5e1; }
.dispatch-labor-week-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(120px,1fr)); gap:10px; }
.dispatch-labor-day { background:#f8fafc; border:1px solid #e2e8f0; border-radius:10px; padding:10px; }
@media (max-width: 768px) {
  .dispatch-labor-week-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

.dispatch-cardjob-actions .dispatch-btn { margin-right: 0; }

.dispatch-chip-list{display:flex;flex-wrap:wrap;gap:8px}
.dispatch-chip{display:inline-flex;align-items:center;gap:6px;background:#eef2ff;border:1px solid #c7d2fe;border-radius:999px;padding:6px 10px;font-size:13px}
.dispatch-chip button{border:0;background:transparent;cursor:pointer;font-size:16px;line-height:1;color:#334155;padding:0}

.dispatch-job-tds-links{display:flex;gap:8px;flex-wrap:wrap;}
.dispatch-tds-row{display:grid;grid-template-columns:1.4fr 1fr auto;gap:8px;align-items:center;margin-top:8px;}
.dispatch-crew-home-card{margin-top:14px;}
.dispatch-btn-secondary{background:#eef2ff;color:#1e3a8a;border:1px solid #c7d2fe;}

/* v1.4.5 Crew check-ins */
.dispatch-checkin-box{border:1px solid #e5e7eb;background:#f8fafc;border-radius:10px;padding:10px;margin-top:6px;}
.dispatch-checkin-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px;}
.dispatch-checkin-actions .dispatch-btn{font-size:12px;padding:7px 9px;}


.dispatch-schedule-note-event { border-style: dashed !important; }
.dispatch-schedule-note-form { margin-top: 14px; }
.dispatch-note-row { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 0; border-top:1px solid rgba(148,163,184,.25); }
.dispatch-note-row:first-of-type { border-top:0; }
.dispatch-btn-danger { background:#b91c1c !important; color:#fff !important; border-color:#b91c1c !important; }

/* Dispatch Board 2.2.1 polish */
.dispatch-brand-logo { max-width: 150px; max-height: 58px; object-fit: contain; display: block; margin: 0 0 10px 0; border-radius: 8px; }
body.dispatch-dark {
  --bg: #020617;
  --card: #0f172a;
  --text: #e5e7eb;
  --text-muted: #94a3b8;
  --border: #334155;
}
body.dispatch-dark .dispatch-card,
body.dispatch-dark .dispatch-cardjob,
body.dispatch-dark .dispatch-cardjob-hd,
body.dispatch-dark .dispatch-modal-card,
body.dispatch-dark .dispatch-modal-header { background: var(--card); color: var(--text); border-color: var(--border); }
body.dispatch-dark .dispatch-cardjob-bd { background: #111827; border-color: var(--border); }
body.dispatch-dark .dispatch-input { background: #020617; color: var(--text); border-color: #334155; }
body.dispatch-dark .dispatch-label,
body.dispatch-dark .dispatch-cardjob-title,
body.dispatch-dark .dispatch-kv .v { color: var(--text); }
body.dispatch-dark .dispatch-muted,
body.dispatch-dark .dispatch-muted-small,
body.dispatch-dark .dispatch-cardjob-sub,
body.dispatch-dark .dispatch-kv .k { color: var(--text-muted); }
body.dispatch-dark .dispatch-btn { background: #334155; color: #e5e7eb; }
body.dispatch-dark .dispatch-btn:hover { background: #475569; }
body.dispatch-dark .dispatch-pill { background: #1e293b; color: #cbd5e1; border-color: #334155; }

/* Dispatch Board 2.2.3 UI polish */
.dispatch-material-box{margin:12px 0;padding:12px;border:1px solid var(--border);background:#f8fafc;border-radius:10px;}
.dispatch-checkbox-row{display:flex;align-items:center;gap:8px;font-weight:700;color:var(--text);}
.dispatch-checkbox-row input{width:18px;height:18px;}
.dispatch-pill-success{background:#dcfce7!important;color:#166534!important;border-color:#86efac!important;}
.dispatch-material-ordered{display:inline-flex;align-items:center;font-weight:700;color:#15803d;}
.dispatch-material-needed{color:#92400e;font-weight:600;}
.fc .fc-event.dispatch-material-is-ordered .fc-event-title:after{content:' ✓';font-weight:900;}
.fc .fc-event{border-radius:6px;border-width:1px;font-weight:700;}
.fc .fc-event-main{padding:2px 4px;}

/* stronger dark-mode coverage */
body.dispatch-dark,
body.dispatch-theme-auto{color-scheme:light;}
@media (prefers-color-scheme: dark){
  body.dispatch-theme-auto{
    --bg:#020617;--card:#0f172a;--text:#e5e7eb;--text-muted:#94a3b8;--border:#334155;color-scheme:dark;
  }
}
body.dispatch-dark{color-scheme:dark;}
body.dispatch-dark .dispatch-card,
body.dispatch-dark .dispatch-stat,
body.dispatch-dark .dispatch-tile,
body.dispatch-dark .dispatch-labor-day,
body.dispatch-dark .dispatch-material-box,
body.dispatch-dark .dispatch-draggable-event,
body.dispatch-dark .dispatch-schedule-note-form,
body.dispatch-dark .dispatch-table-wrap,
body.dispatch-dark .dispatch-chip,
body.dispatch-theme-auto .dispatch-card,
body.dispatch-theme-auto .dispatch-stat,
body.dispatch-theme-auto .dispatch-tile,
body.dispatch-theme-auto .dispatch-labor-day,
body.dispatch-theme-auto .dispatch-material-box,
body.dispatch-theme-auto .dispatch-draggable-event,
body.dispatch-theme-auto .dispatch-schedule-note-form,
body.dispatch-theme-auto .dispatch-table-wrap,
body.dispatch-theme-auto .dispatch-chip{border-color:var(--border);}
body.dispatch-dark .dispatch-table th,
body.dispatch-dark .dispatch-table td{border-color:var(--border);}
body.dispatch-dark .dispatch-table th{background:#111827;color:#cbd5e1;}
body.dispatch-dark .dispatch-table td{color:#e5e7eb;}
body.dispatch-dark .dispatch-tile{background:var(--card);color:var(--text);}
body.dispatch-dark .dispatch-stat{background:var(--card);}
body.dispatch-dark .dispatch-stat-value{color:var(--text);}
body.dispatch-dark .dispatch-material-box,
body.dispatch-dark .dispatch-labor-day,
body.dispatch-dark .dispatch-draggable-event{background:#111827;color:var(--text);}
body.dispatch-dark .dispatch-chip{background:#1e293b;color:#e5e7eb;}
body.dispatch-dark select.dispatch-input option{background:#020617;color:#e5e7eb;}
body.dispatch-dark .fc{color:#e5e7eb;}
body.dispatch-dark .fc .fc-scrollgrid,
body.dispatch-dark .fc .fc-scrollgrid td,
body.dispatch-dark .fc .fc-scrollgrid th{border-color:#334155;}
body.dispatch-dark .fc .fc-col-header-cell,
body.dispatch-dark .fc .fc-timegrid-slot,
body.dispatch-dark .fc .fc-daygrid-day{background:#0f172a;}
body.dispatch-dark .fc .fc-day-today{background:#172554!important;}
body.dispatch-dark .fc .fc-button{background:#334155;border-color:#475569;color:#fff;}
body.dispatch-dark .fc .fc-button-primary:not(:disabled).fc-button-active,
body.dispatch-dark .fc .fc-button-primary:not(:disabled):active{background:#2563eb;border-color:#2563eb;}
body.dispatch-dark .dispatch-modal-backdrop{background:rgba(0,0,0,.78);}
body.dispatch-dark a{color:#93c5fd;}

@media (prefers-color-scheme: dark){
  body.dispatch-theme-auto .dispatch-card,
  body.dispatch-theme-auto .dispatch-cardjob,
  body.dispatch-theme-auto .dispatch-cardjob-hd,
  body.dispatch-theme-auto .dispatch-modal-card,
  body.dispatch-theme-auto .dispatch-modal-header,
  body.dispatch-theme-auto .dispatch-tile,
  body.dispatch-theme-auto .dispatch-stat{background:var(--card);color:var(--text);border-color:var(--border);}
  body.dispatch-theme-auto .dispatch-cardjob-bd{background:#111827;border-color:var(--border);}
  body.dispatch-theme-auto .dispatch-input{background:#020617;color:var(--text);border-color:#334155;}
  body.dispatch-theme-auto select.dispatch-input option{background:#020617;color:#e5e7eb;}
  body.dispatch-theme-auto .dispatch-label,
  body.dispatch-theme-auto .dispatch-cardjob-title,
  body.dispatch-theme-auto .dispatch-kv .v,
  body.dispatch-theme-auto .dispatch-stat-value{color:var(--text);}
  body.dispatch-theme-auto .dispatch-muted,
  body.dispatch-theme-auto .dispatch-muted-small,
  body.dispatch-theme-auto .dispatch-cardjob-sub,
  body.dispatch-theme-auto .dispatch-kv .k{color:var(--text-muted);}
  body.dispatch-theme-auto .dispatch-btn{background:#334155;color:#e5e7eb;}
  body.dispatch-theme-auto .dispatch-btn:hover{background:#475569;}
  body.dispatch-theme-auto .dispatch-pill{background:#1e293b;color:#cbd5e1;border-color:#334155;}
  body.dispatch-theme-auto .dispatch-material-box,
  body.dispatch-theme-auto .dispatch-labor-day,
  body.dispatch-theme-auto .dispatch-draggable-event{background:#111827;color:var(--text);}
  body.dispatch-theme-auto .dispatch-table th{background:#111827;color:#cbd5e1;}
  body.dispatch-theme-auto .dispatch-table td{color:#e5e7eb;border-color:var(--border);}
  body.dispatch-theme-auto .fc{color:#e5e7eb;}
  body.dispatch-theme-auto .fc .fc-scrollgrid,
  body.dispatch-theme-auto .fc .fc-scrollgrid td,
  body.dispatch-theme-auto .fc .fc-scrollgrid th{border-color:#334155;}
  body.dispatch-theme-auto .fc .fc-col-header-cell,
  body.dispatch-theme-auto .fc .fc-timegrid-slot,
  body.dispatch-theme-auto .fc .fc-daygrid-day{background:#0f172a;}
  body.dispatch-theme-auto .fc .fc-day-today{background:#172554!important;}
  body.dispatch-theme-auto .fc .fc-button{background:#334155;border-color:#475569;color:#fff;}
  body.dispatch-theme-auto a{color:#93c5fd;}
}

@media (max-width: 768px){
  .dispatch-btn,.dispatch-btn-primary{min-height:42px;padding:10px 14px;}
  .dispatch-checkin-actions .dispatch-btn{min-height:40px;font-size:13px;}
  .dispatch-card{padding:16px;}
}


/* 2.2.4 crew dashboard + calendar color hardening */
.dispatch-crew-dashboard{background:linear-gradient(135deg,var(--crew-dashboard-accent,#2563eb),#0f172a);color:#fff;border-radius:18px;padding:20px;margin-bottom:20px;box-shadow:0 12px 30px rgba(15,23,42,.18);display:grid;grid-template-columns:1.2fr 1fr;gap:16px;align-items:stretch;overflow:hidden;}
.dispatch-crew-dashboard h1{margin:4px 0 6px 0;color:#fff;font-size:28px;line-height:1.1;}
.dispatch-dashboard-eyebrow{font-size:13px;font-weight:800;letter-spacing:.03em;text-transform:uppercase;opacity:.86;}
.dispatch-crew-dashboard .dispatch-muted-small{color:rgba(255,255,255,.82);}
.dispatch-dashboard-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;}
.dispatch-dashboard-stats div,.dispatch-dashboard-next{background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.18);border-radius:14px;padding:12px;backdrop-filter:blur(6px);}
.dispatch-dashboard-stats span{display:block;font-size:20px;font-weight:900;color:#fff;line-height:1.1;}
.dispatch-dashboard-stats small{display:block;color:rgba(255,255,255,.78);font-size:11px;margin-top:4px;}
.dispatch-dashboard-next{grid-column:1 / -1;}
.dispatch-dashboard-next strong{display:block;margin-bottom:4px;color:#fff;}
.dispatch-dashboard-next a{color:#dbeafe;text-decoration:underline;}
.dispatch-dashboard-actions{grid-column:1 / -1;display:flex;gap:10px;flex-wrap:wrap;}
.dispatch-crew-dashboard .dispatch-btn{background:rgba(255,255,255,.16);color:#fff;border:1px solid rgba(255,255,255,.25);}
.dispatch-crew-dashboard .dispatch-btn:hover{background:rgba(255,255,255,.24);}
.fc .fc-event{background-color:var(--fc-event-bg-color)!important;border-color:var(--fc-event-border-color)!important;color:#fff!important;}
.fc .fc-event .fc-event-main{color:#fff!important;}
.fc .fc-event-title,.fc .fc-event-time{color:inherit!important;}
@media(max-width:900px){.dispatch-crew-dashboard{grid-template-columns:1fr;padding:16px;}.dispatch-dashboard-stats{grid-template-columns:1fr 1fr;}.dispatch-dashboard-stats div:nth-child(3){grid-column:1 / -1;}.dispatch-crew-dashboard h1{font-size:24px;}}
body.dispatch-dark .dispatch-crew-dashboard,body.dispatch-theme-auto .dispatch-crew-dashboard{box-shadow:0 12px 30px rgba(0,0,0,.35);}
.dispatch-link-button{background:none;border:0;color:#2563eb;text-decoration:underline;cursor:pointer;padding:0;font:inherit;font-size:13px}.dispatch-dark .dispatch-link-button{color:#93c5fd}

/* 2.4.1 navigation/import polish */
.dispatch-sidebar { overflow-y: auto; overflow-x: hidden; }
.dispatch-brand { flex: 0 0 auto; }
.dispatch-nav { flex: 1 1 auto; overflow-y: auto; padding-bottom: 10px; }
.dispatch-sidebar-footer { flex: 0 0 auto; margin-top: 0; }
.dispatch-nav-section { border: 1px solid rgba(148,163,184,.16); border-radius: 10px; margin: 6px 0; overflow: hidden; }
.dispatch-nav-section summary { cursor: pointer; user-select: none; list-style: none; padding: 8px 12px; color: #94a3b8; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; }
.dispatch-nav-section summary::-webkit-details-marker { display: none; }
.dispatch-nav-section summary:after { content: '▾'; float: right; opacity: .8; }
.dispatch-nav-section:not([open]) summary:after { content: '▸'; }
.dispatch-nav-section a { margin: 0 6px 6px; display: block; }
.dispatch-job-entry-tabs { display:flex; gap:8px; flex-wrap:wrap; border-bottom:1px solid #e2e8f0; padding-bottom:8px; }
.dispatch-tab { text-decoration:none; color:#334155; border:1px solid #cbd5e1; background:#fff; padding:8px 12px; border-radius:999px; font-weight:700; font-size:13px; }
.dispatch-tab.is-active { background:#0f172a; color:#fff; border-color:#0f172a; }
.dispatch-import-inline { border:1px solid #e2e8f0; }
.dispatch-theme-dark .dispatch-tab { background:#1e293b; color:#e2e8f0; border-color:#475569; }
.dispatch-theme-dark .dispatch-tab.is-active { background:#f8fafc; color:#0f172a; border-color:#f8fafc; }
.dispatch-theme-dark .dispatch-import-inline { background:#111827 !important; border-color:#334155; }

/* Dispatch Board 2.4.2 navigation/import cleanup */
.dispatch-sidebar{overflow:hidden!important;}
.dispatch-brand{padding:16px 18px 12px!important;}
.dispatch-brand-logo{max-width:132px!important;max-height:48px!important;margin-bottom:8px!important;}
.dispatch-brand-title{font-size:18px;line-height:1.15;}
.dispatch-nav-clean{padding:8px 10px 12px!important;gap:3px!important;}
.dispatch-nav-clean .dispatch-nav-label{font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.11em;color:#64748b;margin:14px 10px 6px;}
.dispatch-nav-clean a{display:flex!important;align-items:center;gap:10px;padding:9px 10px!important;margin:0!important;border-radius:10px;color:#cbd5e1!important;text-decoration:none!important;font-weight:700;font-size:14px;line-height:1.15;}
.dispatch-nav-clean a:hover{background:rgba(148,163,184,.16)!important;color:#fff!important;}
.dispatch-nav-clean a.is-active{background:#1e293b!important;color:#fff!important;box-shadow:inset 3px 0 0 var(--primary);}
.dispatch-nav-icon{width:22px;height:22px;border-radius:7px;background:rgba(148,163,184,.14);display:inline-flex;align-items:center;justify-content:center;font-size:13px;flex:0 0 22px;color:#e2e8f0;}
.dispatch-nav-clean a.is-active .dispatch-nav-icon{background:rgba(37,99,235,.28);color:#fff;}
.dispatch-sidebar-footer{padding:12px 18px!important;}
.dispatch-extracted-preview{margin-top:10px;border:1px solid var(--border);border-radius:10px;background:#f8fafc;padding:10px;}
.dispatch-extracted-preview summary{cursor:pointer;font-weight:800;color:var(--text);}
.dispatch-extracted-preview pre{white-space:pre-wrap;max-height:260px;overflow:auto;margin:10px 0 0;font-size:12px;color:#334155;}
body.dispatch-dark .dispatch-extracted-preview, body.dispatch-theme-auto .dispatch-extracted-preview{background:#111827;border-color:#334155;}
body.dispatch-dark .dispatch-extracted-preview pre, body.dispatch-theme-auto .dispatch-extracted-preview pre{color:#cbd5e1;}
@media(max-width:900px){.dispatch-nav-clean a{padding:11px 12px!important;font-size:15px;}.dispatch-brand{padding-top:18px!important;}}

/* 2.5.0 setup organization dashboard */
.dispatch-setup-organizer{position:relative;}
.dispatch-setup-organizer-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;margin-bottom:14px;}
.dispatch-setup-advanced-toggle{display:flex;gap:8px;align-items:center;font-weight:800;color:var(--text);white-space:nowrap;background:#f8fafc;border:1px solid var(--border);border-radius:999px;padding:8px 12px;}
.dispatch-setup-search-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;margin-bottom:14px;}
.dispatch-setup-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;}
.dispatch-setup-card{border:1px solid var(--border);background:#fff;border-radius:14px;padding:14px;text-align:left;cursor:pointer;box-shadow:0 1px 2px rgba(15,23,42,.04);transition:transform .12s ease, box-shadow .12s ease, border-color .12s ease;}
.dispatch-setup-card:hover{transform:translateY(-1px);box-shadow:0 8px 18px rgba(15,23,42,.08);border-color:#cbd5e1;}
.dispatch-setup-card.is-active{border-color:var(--primary);box-shadow:0 0 0 3px rgba(37,99,235,.12);}
.dispatch-setup-card span{display:inline-flex;width:34px;height:34px;align-items:center;justify-content:center;background:#f1f5f9;border-radius:11px;margin-bottom:10px;font-size:18px;}
.dispatch-setup-card strong{display:block;color:var(--text);font-size:15px;margin-bottom:3px;}
.dispatch-setup-card small{display:block;color:var(--text-muted);font-size:12px;line-height:1.3;}
.dispatch-setup-results{margin-top:12px;padding-top:10px;border-top:1px solid var(--border);}
.dispatch-setup-section{position:relative;}
.dispatch-setup-section-label{display:inline-flex;align-items:center;background:#eef2ff;color:#3730a3;border-radius:999px;padding:4px 9px;font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.06em;margin-bottom:8px;}
body.dispatch-dark .dispatch-setup-advanced-toggle, body.dispatch-theme-auto .dispatch-setup-advanced-toggle,
body.dispatch-dark .dispatch-setup-card, body.dispatch-theme-auto .dispatch-setup-card{background:#111827;border-color:#334155;color:#e5e7eb;}
body.dispatch-dark .dispatch-setup-card span, body.dispatch-theme-auto .dispatch-setup-card span{background:#1e293b;}
body.dispatch-dark .dispatch-setup-card strong, body.dispatch-theme-auto .dispatch-setup-card strong{color:#f8fafc;}
body.dispatch-dark .dispatch-setup-section-label, body.dispatch-theme-auto .dispatch-setup-section-label{background:#1e3a8a;color:#dbeafe;}
@media(max-width:1100px){.dispatch-setup-cards{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:700px){.dispatch-setup-organizer-head{display:block}.dispatch-setup-advanced-toggle{margin-top:12px;display:inline-flex}.dispatch-setup-search-row{grid-template-columns:1fr}.dispatch-setup-cards{grid-template-columns:1fr;}.dispatch-setup-card{padding:12px;}}

/* 2.5.2 UI Polish: safer logo sizing, density preferences, sidebar memory */
.dispatch-brand { padding: 16px 18px; }
.dispatch-brand-logo {
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: var(--dispatch-logo-max-height, 58px) !important;
  object-fit: contain !important;
  object-position: left center !important;
  display: block;
  margin: 0 0 10px 0;
  border-radius: 0 !important;
  background: transparent !important;
}
.dispatch-brand-logo.dispatch-logo-icon {
  width: var(--dispatch-logo-max-height, 58px) !important;
  height: var(--dispatch-logo-max-height, 58px) !important;
  max-width: var(--dispatch-logo-max-height, 58px) !important;
  object-fit: contain !important;
  object-position: center center !important;
}
.dispatch-logo-preview {
  border: 1px dashed var(--border);
  border-radius: 12px;
  background: #f8fafc;
  padding: 12px;
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 8px;
}
.dispatch-logo-preview img {
  max-width: 100%;
  max-height: 100px;
  object-fit: contain;
  object-position: left center;
  display: block;
}
body.dispatch-dark .dispatch-logo-preview { background:#0f172a; border-color:#334155; }
.dispatch-sidebar-toggle {
  margin: 0 14px 10px 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: #cbd5e1;
  border-radius: 8px;
  height: 34px;
  cursor: pointer;
  font-size: 16px;
}
.dispatch-sidebar-toggle:hover { background: rgba(255,255,255,.12); color:#fff; }
body.dispatch-sidebar-collapsed .dispatch-sidebar { width: 78px; }
body.dispatch-sidebar-collapsed .dispatch-main { margin-left: 78px; }
body.dispatch-sidebar-collapsed .dispatch-brand { padding: 14px 10px; text-align:center; }
body.dispatch-sidebar-collapsed .dispatch-brand-logo { margin-left:auto; margin-right:auto; max-height:42px!important; }
body.dispatch-sidebar-collapsed .dispatch-brand-title,
body.dispatch-sidebar-collapsed .dispatch-brand-sub,
body.dispatch-sidebar-collapsed .dispatch-sidebar-footer .dispatch-muted-small,
body.dispatch-sidebar-collapsed .dispatch-nav-section-title { display:none!important; }
body.dispatch-sidebar-collapsed .dispatch-nav { padding: 0 8px; }
body.dispatch-sidebar-collapsed .dispatch-nav a { text-align:center; padding: 11px 8px; white-space:nowrap; overflow:hidden; text-overflow:clip; }
body.dispatch-sidebar-collapsed .dispatch-sidebar-footer { padding:12px 8px; text-align:center; }
body.dispatch-sidebar-collapsed .dispatch-sidebar-toggle { margin: 0 10px 10px; }
body.dispatch-density-compact .dispatch-main { padding: 14px; }
body.dispatch-density-compact .dispatch-card { padding: 14px; margin-bottom: 14px; }
body.dispatch-density-compact .dispatch-input { padding: 8px 10px; margin-bottom: 8px; font-size: 14px; }
body.dispatch-density-compact .dispatch-btn,
body.dispatch-density-compact .dispatch-btn-primary { padding: 7px 12px; }
body.dispatch-density-compact .dispatch-cardjob-hd { padding: 12px; }
body.dispatch-density-compact .dispatch-cardjob-bd { padding: 0 12px 12px; }
body.dispatch-density-compact .dispatch-table th,
body.dispatch-density-compact .dispatch-table td { padding: 8px; }
@media (max-width: 900px) {
  body.dispatch-sidebar-collapsed .dispatch-sidebar { width: 260px; }
  body.dispatch-sidebar-collapsed .dispatch-main { margin-left: 0; }
}

/* 2.5.3 Setup Navigation UX */
.dispatch-setup-hero{margin-bottom:14px;padding-top:0;}
.dispatch-setup-hero h1{margin-bottom:6px;}
.dispatch-setup-hero .dispatch-muted{margin-bottom:6px;}
.dispatch-setup-organizer.dispatch-card{padding:16px;}
.dispatch-setup-organizer-head{margin-bottom:10px;}
.dispatch-setup-search-row{margin-bottom:10px;}
.dispatch-setup-breadcrumb{font-size:12px;font-weight:800;color:var(--text-muted);margin:0 0 10px;text-transform:uppercase;letter-spacing:.06em;}
.dispatch-setup-pillnav{position:sticky;top:10px;z-index:5;display:flex;gap:8px;overflow-x:auto;padding:8px;margin:0 -4px 12px;background:rgba(241,245,249,.92);backdrop-filter:blur(8px);border-radius:14px;border:1px solid var(--border);}
.dispatch-setup-pillnav button{border:0;background:#fff;color:var(--text);font-weight:800;font-size:12px;border-radius:999px;padding:8px 12px;white-space:nowrap;cursor:pointer;border:1px solid var(--border);}
.dispatch-setup-pillnav button.is-active,.dispatch-setup-card.is-active{border-color:var(--primary);box-shadow:0 0 0 3px rgba(37,99,235,.16);}
.dispatch-setup-section-pulse{animation:dispatchSetupPulse 1.1s ease;}
@keyframes dispatchSetupPulse{0%{box-shadow:0 0 0 0 rgba(37,99,235,.4);}55%{box-shadow:0 0 0 8px rgba(37,99,235,.12);}100%{box-shadow:0 1px 3px rgba(0,0,0,.05);}}
body.dispatch-dark .dispatch-setup-pillnav, body.dispatch-theme-auto .dispatch-setup-pillnav{background:rgba(15,23,42,.94);border-color:#334155;}
body.dispatch-dark .dispatch-setup-pillnav button, body.dispatch-theme-auto .dispatch-setup-pillnav button{background:#111827;color:#e5e7eb;border-color:#334155;}
@media(max-width:700px){.dispatch-setup-pillnav{top:6px}.dispatch-setup-organizer.dispatch-card{padding:14px}.dispatch-setup-hero h1{font-size:30px;}}


/* 2.5.4 Setup simplification: one navigation system only */
.dispatch-setup-hero{margin-bottom:8px;padding-top:0;}
.dispatch-setup-hero h1{font-size:36px;margin:0 0 4px;}
.dispatch-setup-hero .dispatch-muted{margin:0 0 4px;}
.dispatch-setup-organizer.dispatch-card{padding:16px 18px;margin-bottom:14px;}
.dispatch-setup-organizer-head{align-items:center;margin-bottom:10px;}
.dispatch-setup-organizer-head h2{font-size:26px;}
.dispatch-setup-search-row{margin-bottom:12px;}
.dispatch-setup-active-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 12px;}
.dispatch-setup-breadcrumb{margin:0;font-size:12px;font-weight:900;color:var(--text-muted);text-transform:uppercase;letter-spacing:.06em;}
.dispatch-setup-back{display:none;white-space:nowrap;}
.dispatch-setup-organizer.is-section-selected .dispatch-setup-back{display:inline-flex;}
.dispatch-setup-organizer.is-section-selected .dispatch-setup-cards{display:none;}
.dispatch-setup-organizer.is-section-selected{position:sticky;top:0;z-index:3;border-radius:0 0 18px 18px;box-shadow:0 8px 20px rgba(15,23,42,.08);}
.dispatch-setup-results{margin-top:8px;padding-top:8px;border-top:1px solid var(--border);}
.dispatch-setup-pillnav{display:none !important;}
.dispatch-setup-cards{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;}
.dispatch-setup-card{min-height:96px;}
.dispatch-setup-section-label{display:none;}
@media(max-width:900px){.dispatch-setup-cards{grid-template-columns:repeat(2,minmax(0,1fr));}.dispatch-setup-active-row{display:block}.dispatch-setup-back{margin-top:8px}.dispatch-setup-hero h1{font-size:30px;}}
@media(max-width:560px){.dispatch-setup-cards{grid-template-columns:1fr}.dispatch-setup-organizer.dispatch-card{padding:14px}.dispatch-setup-search-row{grid-template-columns:1fr}.dispatch-setup-advanced-toggle{margin-top:8px}}


/* 2.5.5 crew/mobile calendar polish */
@media (max-width: 900px) {
  .fc .fc-toolbar.fc-header-toolbar { align-items: stretch; gap: 8px; flex-wrap: wrap; }
  .fc .fc-toolbar-chunk { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
  .fc .fc-toolbar-title { font-size: 1rem; line-height: 1.2; }
  .fc .fc-button { padding: 0.45rem 0.55rem; font-size: 0.8rem; }
  .fc .fc-timegrid-event { min-height: 34px; }
  .fc .fc-timegrid-slot { height: 2.1em; }
}

/* Job task line items */
.dispatch-task-editor { display:flex; flex-direction:column; gap:8px; }
.dispatch-task-row { display:grid; grid-template-columns:auto minmax(0,1fr) auto; gap:8px; align-items:center; }
.dispatch-task-done { display:flex; align-items:center; gap:6px; font-size:13px; color:#475569; white-space:nowrap; }
.dispatch-job-tasks { margin-top:12px; border:1px solid #e2e8f0; border-radius:14px; background:#f8fafc; padding:10px; }
.dispatch-job-tasks-head { display:flex; justify-content:space-between; gap:10px; align-items:center; font-size:13px; color:#334155; margin-bottom:8px; }
.dispatch-job-tasks-head span { color:#64748b; font-size:12px; }
.dispatch-job-task { display:flex; align-items:flex-start; gap:8px; padding:7px 0; border-top:1px solid #e2e8f0; line-height:1.35; }
.dispatch-job-task:first-of-type { border-top:0; }
.dispatch-job-task input { margin-top:2px; }
.dispatch-job-task.is-done span { text-decoration:line-through; color:#64748b; }
@media (max-width: 700px) {
  .dispatch-task-row { grid-template-columns:1fr; }
  .dispatch-task-done { justify-content:flex-start; }
}

/* v1.0.6 Crew mobile calendar view */
.dispatch-crew-calendar-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;margin-top:12px;}
.dispatch-crew-day-card{background:#fff;border:1px solid #e5e7eb;border-radius:16px;padding:12px;box-shadow:0 8px 20px rgba(15,23,42,.05);min-height:100px;}
.dispatch-crew-day-head{font-weight:800;color:#0f172a;margin-bottom:8px;font-size:13px;}
.dispatch-crew-cal-item{display:block;width:100%;text-align:left;border:1px solid #dbeafe;background:#eff6ff;border-radius:12px;padding:8px;margin:6px 0;color:#0f172a;cursor:pointer;}
.dispatch-crew-cal-item strong{display:block;font-size:13px;line-height:1.25;}
.dispatch-crew-cal-item span{display:block;font-size:11px;color:#64748b;margin-top:2px;}
.dispatch-crew-cal-item.dispatch-note{background:#fff7ed;border-color:#fed7aa;}
.dispatch-btn.is-active{box-shadow:0 0 0 2px rgba(37,99,235,.18);font-weight:800;}
@media(max-width:760px){.dispatch-crew-calendar-grid{grid-template-columns:1fr}.dispatch-crew-day-card{min-height:auto}}

/* v1.0.7 Google-style calendar cards + email template setup */
.dispatch-google-calendar .fc-toolbar-title{font-weight:800;letter-spacing:-.02em;}
.dispatch-google-calendar .fc-button{border-radius:999px!important;text-transform:none!important;font-weight:700!important;box-shadow:none!important;}
.dispatch-google-calendar .fc-daygrid-day{background:#fffdfb;}
.dispatch-google-calendar .fc-daygrid-day-frame{min-height:112px;}
.dispatch-google-calendar .fc-day-today{background:#fff7ed!important;}
.dispatch-google-calendar .fc-daygrid-day-number{font-weight:800;color:#334155;padding:8px!important;}
.dispatch-google-calendar .fc-event{border-radius:7px!important;border:0!important;box-shadow:none!important;overflow:hidden;}
.dispatch-google-calendar .fc-daygrid-event{margin:1px 4px!important;padding:0!important;}
.dispatch-google-calendar .fc-event-main{padding:0!important;}
.cct-cal-pill{display:flex;flex-direction:column;gap:1px;line-height:1.1;padding:4px 6px;border-radius:7px;min-height:20px;}
.cct-cal-title{font-size:12px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.cct-cal-meta{font-size:10px;font-weight:700;opacity:.9;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.cct-cal-note{background:#f59e0b;color:#111827;}
.dispatch-email-template-grid{display:grid;gap:10px;}
.dispatch-email-template{border:1px solid #e5e7eb;border-radius:14px;background:#f8fafc;padding:10px 12px;}
.dispatch-email-template summary{cursor:pointer;display:flex;justify-content:space-between;gap:10px;align-items:center;}
.dispatch-email-template[open]{background:#fff;box-shadow:0 8px 20px rgba(15,23,42,.04);}
@media(max-width:900px){
  .dispatch-google-calendar .fc-header-toolbar{position:sticky;top:0;z-index:4;background:rgba(248,250,252,.96);padding:8px 0;margin-bottom:8px!important;backdrop-filter:blur(8px);}
  .dispatch-google-calendar .fc-daygrid-day-frame{min-height:92px;}
  .dispatch-google-calendar .fc-col-header-cell-cushion{font-size:12px;}
  .cct-cal-pill{padding:3px 5px;}
  .cct-cal-title{font-size:11px;}
  .cct-cal-meta{display:none;}
  .dispatch-google-calendar .fc-daygrid-more-link{font-size:11px;font-weight:800;color:#2563eb;}
}


/* v1.0.8 dedicated calendar tabs + mobile month cleanup */
.cct-calendar-tabs{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin:0 0 12px;}
.cct-calendar-tab{border-radius:999px!important;}
.cct-calendar-tab.is-active{background:#0f172a!important;color:#fff!important;border-color:#0f172a!important;}
.dispatch-google-calendar .fc-toolbar.fc-header-toolbar{margin-bottom:10px!important;}
@media(max-width:900px){
  .cct-calendar-tabs{position:sticky;top:0;z-index:5;background:rgba(248,250,252,.97);padding:8px 0;margin-bottom:8px;backdrop-filter:blur(8px);}
  .cct-calendar-tabs .dispatch-btn{flex:1 1 auto;min-width:70px;padding:9px 10px;font-size:13px;}
  .dispatch-google-calendar .fc-header-toolbar{position:relative!important;top:auto!important;display:flex!important;gap:8px!important;align-items:center!important;background:transparent!important;padding:0!important;box-shadow:none!important;}
  .dispatch-google-calendar .fc-toolbar-chunk:nth-child(2){order:-1;width:100%;justify-content:center;margin-bottom:4px;}
  .dispatch-google-calendar .fc-toolbar-title{font-size:20px!important;}
  .dispatch-google-calendar .fc-daygrid-day-frame{min-height:82px;}
  .dispatch-google-calendar .fc-timegrid-event{min-width:72px;}
}


/* v1.0.9 edge-to-edge mobile calendar */
.dispatch-calendar-card{overflow:visible;}
.dispatch-calendar-card .fc a{text-decoration:none!important;}
@media(max-width:900px){
  body.dispatch-mode:has(#dispatch-calendar){overflow-x:hidden;}
  body.dispatch-mode:has(#dispatch-calendar) .dispatch-main{padding-left:0!important;padding-right:0!important;padding-top:58px!important;}
  body.dispatch-mode:has(#dispatch-calendar) .dispatch-content{max-width:none!important;width:100%!important;margin:0!important;}
  .dispatch-calendar-card{border-radius:0!important;margin:0!important;padding:10px 6px 16px!important;box-shadow:none!important;border-left:0!important;border-right:0!important;}
  .dispatch-calendar-toolbar{display:grid!important;grid-template-columns:1fr 1fr;gap:8px!important;align-items:center;}
  .dispatch-calendar-toolbar .dispatch-input{width:100%!important;min-width:0!important;margin-bottom:0!important;font-size:14px!important;padding:9px 10px!important;}
  .dispatch-calendar-toolbar #dispatch-filter-customer_type{grid-column:1 / 2;}
  .dispatch-calendar-toolbar #dispatch-refresh{grid-column:2 / 3;min-height:40px!important;width:100%;}
  .dispatch-calendar-card .dispatch-muted-small{padding:0 4px;}
  .cct-calendar-tabs{margin-left:0!important;margin-right:0!important;border-radius:18px;padding:6px!important;gap:6px!important;}
  .cct-calendar-tabs .dispatch-btn{padding:9px 6px!important;min-width:0!important;}
  .dispatch-google-calendar{width:100%!important;}
  .dispatch-google-calendar .fc{font-size:13px!important;}
  .dispatch-google-calendar .fc-toolbar.fc-header-toolbar{margin:6px 0 8px!important;}
  .dispatch-google-calendar .fc-toolbar-title{font-size:19px!important;}
  .dispatch-google-calendar .fc-button{padding:7px 10px!important;font-size:12px!important;}
  .dispatch-google-calendar .fc-scrollgrid{border-left:0!important;border-right:0!important;}
  .dispatch-google-calendar .fc-col-header-cell-cushion{font-size:12px!important;font-weight:800!important;padding:6px 2px!important;display:block;}
  .dispatch-google-calendar .fc-daygrid-day-number{font-size:15px!important;padding:5px 6px!important;}
  .dispatch-google-calendar .fc-daygrid-day-frame{min-height:76px!important;}
  .dispatch-google-calendar .fc-daygrid-day-events{margin-top:0!important;}
  .dispatch-google-calendar .fc-daygrid-event{margin:1px 2px!important;}
  .cct-cal-pill{padding:2px 4px!important;border-radius:6px!important;min-height:18px!important;}
  .cct-cal-title{font-size:10.5px!important;line-height:1.05!important;}
  .cct-cal-meta{display:none!important;}
  .dispatch-google-calendar .fc-daygrid-more-link{font-size:10px!important;padding:0 2px!important;}
}
@media(max-width:430px){
  .dispatch-calendar-card{padding-left:4px!important;padding-right:4px!important;}
  .dispatch-google-calendar .fc-daygrid-day-frame{min-height:70px!important;}
  .dispatch-google-calendar .fc-daygrid-day-number{font-size:14px!important;padding:4px 5px!important;}
  .cct-cal-title{font-size:10px!important;}
}

.dispatch-datepick-row{display:flex;gap:8px;align-items:center;}
.dispatch-datepick-row .dispatch-input[type="datetime-local"]{flex:1;min-width:0;}
.dispatch-datepick-row .dispatch-date-only{width:145px;max-width:38%;}
.dispatch-calendar-btn{white-space:nowrap;padding-left:12px;padding-right:12px;}
@media (max-width:640px){.dispatch-datepick-row{align-items:stretch}.dispatch-datepick-row .dispatch-date-only{width:48px;max-width:48px;color:transparent;padding-left:8px;padding-right:8px}.dispatch-datepick-row .dispatch-date-only::-webkit-datetime-edit{display:none}.dispatch-calendar-btn{min-width:48px}}


/* v1.0.15 readable notification merge tag panel */
.dispatch-merge-tags{
  margin-top:12px;
  padding:16px 18px;
  border:1px solid #cbd5e1;
  border-radius:14px;
  background:#fff;
  box-shadow:0 8px 22px rgba(15,23,42,.035);
}
.dispatch-merge-tags strong{
  display:block;
  color:#0f172a;
  font-size:16px;
  font-weight:800;
  margin-bottom:4px;
}
.dispatch-merge-tag-list{
  display:flex;
  flex-wrap:wrap;
  gap:8px 10px;
  margin-top:10px;
}
.dispatch-merge-tag-btn{
  display:inline-flex!important;
  align-items:center;
  gap:7px;
  border:1px solid #cbd5e1!important;
  background:#ffffff!important;
  color:#1d4ed8!important;
  border-radius:10px!important;
  padding:8px 12px!important;
  font-size:12.5px!important;
  font-weight:800!important;
  line-height:1!important;
  cursor:pointer!important;
  box-shadow:0 1px 2px rgba(15,23,42,.04);
  text-shadow:none!important;
  opacity:1!important;
  min-height:32px;
}
.dispatch-merge-tag-btn:before{
  content:"📋";
  font-size:13px;
  line-height:1;
}
.dispatch-merge-tag-btn:hover,
.dispatch-merge-tag-btn:focus{
  background:#eff6ff!important;
  border-color:#93c5fd!important;
  color:#1e40af!important;
  outline:none;
}
@media(max-width:640px){
  .dispatch-merge-tags{padding:14px 12px;}
  .dispatch-merge-tag-list{gap:7px;}
  .dispatch-merge-tag-btn{font-size:12px!important;padding:8px 10px!important;}
}
