/* Deliveries report (Bookings → Deliveries): the cars due to go out in a period, with a WhatsApp action per row. */
.deliveries-report { display:grid; gap:14px; }
.deliveries-toolbar { align-items:flex-start; gap:16px; flex-wrap:wrap; margin-bottom:0; }
.deliveries-toolbar .deliveries-hint { margin:8px 0 0; max-width:62ch; font-size:13px; font-weight:400; line-height:1.5; letter-spacing:0; text-transform:none; color:var(--muted); }
.deliveries-range { display:inline-flex; gap:3px; padding:3px; border:1px solid var(--line); background:#e8ebef; }
.deliveries-range button { min-height:36px; padding:0 14px; border:0; background:transparent; color:var(--muted); font-size:13px; font-weight:700; transition:background-color .18s,color .18s; }
.deliveries-range button:hover { background:#f5f7fa; }
.deliveries-range button[aria-pressed="true"] { background:#fff; color:var(--ink); box-shadow:0 1px 2px rgba(0,0,0,.08); }
.deliveries-range button:focus-visible { outline:3px solid #a9c5fb; outline-offset:2px; }
.deliveries-summary { display:flex; flex-wrap:wrap; gap:6px 14px; margin:0; font-size:13px; color:var(--muted); }
.deliveries-summary b { color:var(--ink); }
.deliveries-notice { display:flex; flex-wrap:wrap; align-items:center; gap:10px 14px; margin:0; padding:12px 14px; border:1px solid #efd58f; background:var(--amber-soft); color:var(--amber-ink); font-size:13px; }
.deliveries-notice button { padding:6px 12px; border:1px solid currentColor; background:#fff; color:var(--amber-ink); font-size:12px; font-weight:700; }
.deliveries-notice button:hover { background:#fff8e6; }
.deliveries-table { min-width:900px; }
.deliveries-table th { white-space:nowrap; }
.deliveries-table th,.deliveries-table td { padding-inline:10px; }
.deliveries-table td { font-size:14px; }
.deliveries-table .delivery-day { white-space:nowrap; }
.deliveries-table .delivery-day small { display:block; margin-top:3px; color:var(--muted); }
.deliveries-table .delivery-time { display:inline-block; font-weight:700; direction:ltr; unicode-bidi:isolate; }
.deliveries-table tr.is-today td { background:#f3f7ff; }
.deliveries-table tr.is-late td { background:#fff7f6; }
.deliveries-table .today-tag.is-late { display:block; width:max-content; margin:4px 0 0; background:var(--red-soft); color:var(--red); }
.deliveries-table .today-tag { display:inline-block; margin-inline-start:6px; padding:2px 6px; background:var(--blue-soft); color:var(--blue-dark); font-size:11px; font-weight:700; text-transform:uppercase; vertical-align:middle; }
.deliveries-table .delivery-notify { white-space:nowrap; }
.whatsapp-send { display:inline-flex; align-items:center; gap:7px; min-height:34px; padding:0 12px; border:1px solid #25d366; background:#fff; color:#128c7e; font-size:13px; font-weight:700; white-space:nowrap; transition:background-color .16s; }
.whatsapp-send:hover:not(:disabled) { background:#e9fbf0; }
.whatsapp-send:focus-visible { outline:3px solid #a9c5fb; outline-offset:2px; }
.whatsapp-send:disabled { opacity:.55; cursor:not-allowed; }
.whatsapp-send svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.whatsapp-state { display:block; max-width:240px; min-height:14px; margin-top:5px; font-size:12px; color:var(--muted); white-space:normal; }
.whatsapp-state.is-sent { color:#0b7a4b; }
.whatsapp-state.is-failed { color:var(--red); }
@media (max-width:760px) {
  .deliveries-toolbar { flex-direction:column; align-items:stretch; }
  /* admin.css stacks a toolbar's last child on phones; the period chips stay in one row */
  .section-toolbar > .deliveries-range:last-child { display:flex; flex-direction:row; align-items:stretch; width:100%; }
  .deliveries-range button { flex:1 1 0; min-height:44px; padding:0 8px; }
}
@media (prefers-reduced-motion:reduce) { .deliveries-range button,.whatsapp-send { transition:none; } }
