/* Inspection schedule */
#schedule { --cal-line:#d8dcdf; --cal-muted:#505a63; --cal-surface:#f4f5f6; }
#schedule #past-booking-check { margin:16px 0; padding:0; border:1px solid var(--cal-line); border-radius:8px; background:white; }
#schedule #past-booking-check summary { padding:12px 16px; min-height:44px; box-sizing:border-box; color:#313941; font-size:15px; font-weight:650; cursor:pointer; }
#schedule #past-booking-check[open] summary { border-bottom:1px solid var(--cal-line); }
#schedule #past-booking-check form { padding:16px; display:grid; grid-template-columns:minmax(145px,190px) minmax(170px,260px) auto; align-items:end; justify-content:start; gap:12px; }
#schedule #past-booking-check label { display:grid; gap:5px; font-size:14px; font-weight:600; }
#schedule input[type=date],#schedule #past-booking-check input { box-sizing:border-box; min-width:0; max-width:100%; height:44px; padding:0 10px; color:#172027; border:1px solid #aeb6bd; background:white; border-radius:5px; font:inherit; }
#schedule #past-booking-check button { padding:0 16px; min-height:44px; border:0; border-radius:5px; background:#252a2e; color:white; font:inherit; font-weight:650; cursor:pointer; }
#schedule #past-booking-check [role=status] { grid-column:1/-1; margin:0; }
#schedule #past-booking-check [role=status]:empty { display:none; }
#schedule .calendar .calendar-controls { display:grid; grid-template-columns:max-content minmax(160px,1fr) auto; grid-template-areas:"period period book" "nav date views"; align-items:center; gap:16px 12px; padding:18px; margin:0 0 12px; border:1px solid var(--cal-line); border-radius:8px; background:var(--cal-surface); }
#schedule .calendar-controls .calendar-title { grid-area:period; justify-self:start; margin:0; line-height:1.15; text-align:left; font-size:clamp(23px,3vw,32px); }
#schedule .calendar-controls .calendar-nav { grid-area:nav; justify-self:start; margin:0; }
#schedule .calendar-controls>label { grid-area:date; display:flex; align-items:center; justify-self:start; gap:8px; font-size:14px; color:var(--cal-muted); }
#schedule .calendar-controls .calendar-views { grid-area:views; justify-self:end; margin:0; }
#schedule .calendar-controls .calendar-book { grid-area:book; justify-self:end; margin:0; box-shadow:none; }
#schedule .calendar-controls button { min-height:44px; }
#schedule .agenda-day { padding:0; }
#schedule .agenda-day h4 { padding:9px 16px; margin:0; background:var(--cal-surface); border-bottom:1px solid var(--cal-line); }
#schedule .agenda-day ul { margin:0; padding:0; }
#schedule .agenda .agenda-row { box-sizing:border-box; display:grid; grid-template-columns:76px minmax(0,1fr) max-content; gap:16px; align-items:center; padding:14px 16px; width:100%; cursor:default; }
#schedule .agenda-row .agenda-car { display:flex; flex-wrap:wrap; align-items:center; gap:8px 12px; min-width:0; }
#schedule .agenda-row .vin { color:var(--cal-muted); font-size:13px; overflow-wrap:anywhere; }
#schedule .calendar-summary { margin:8px 0; color:var(--cal-muted); font-size:14px; }
#schedule .schedule-footer { border-top:1px solid var(--cal-line); margin-top:12px; padding:8px 0; align-items:center; }
#schedule :is(button,summary,input):focus-visible { outline:2px solid #205a8a; outline-offset:2px; }
@media(max-width:850px){
 #schedule .calendar .calendar-controls { grid-template-columns:1fr auto; grid-template-areas:"period book" "nav date" "views views"; }
 #schedule .calendar-controls .calendar-views { justify-self:start; }
 #schedule .calendar-controls>label { justify-self:end; }
}
@media(max-width:600px){
 #schedule #past-booking-check form { grid-template-columns:minmax(0,1fr); }
 #schedule .calendar .calendar-controls { grid-template-columns:auto minmax(0,1fr); grid-template-areas:"period period" "book book" "nav date" "views views"; padding:12px; gap:12px 6px; }
 #schedule .calendar-controls .calendar-book,#schedule .calendar-controls .calendar-views { justify-self:stretch; width:100%; }
 #schedule .calendar-controls .calendar-views { display:flex; }
 #schedule .calendar-controls .calendar-views button { flex:1; padding-inline:4px; }
 #schedule .calendar-controls>label { font-size:0; gap:0; min-width:0; }
 #schedule .calendar-controls input[type=date] { width:100%; font-size:14px; padding-inline:4px; }
 #schedule .agenda .agenda-row { grid-template-columns:64px minmax(0,1fr); gap:6px 12px; padding:12px; align-items:start; }
 #schedule .agenda-row .agenda-car { align-items:flex-start; flex-direction:column; }
 #schedule .agenda-row>.status { grid-column:2; }
}