.schedule-time-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(116px,1fr));gap:8px;margin:8px 0 14px}
.schedule-time-grid:empty{display:none}
button.schedule-time-card{position:relative;display:grid;align-content:center;justify-items:center;gap:5px;min-height:72px;width:100%;margin:0;padding:12px 6px;border:1px solid #dfd1b3;border-radius:0;background:#f4ecd8;color:#302611;font:inherit;text-align:center}
button.schedule-time-card::after{content:"";position:absolute;top:8px;right:8px;width:6px;height:6px;border-radius:50%;background:#67973d}
button.schedule-time-card strong{font-size:.95rem}
button.schedule-time-card span{font-size:.7rem;text-transform:uppercase;letter-spacing:.06em;color:#665c4b}
button.schedule-time-card[data-state=past],button.schedule-time-card[data-state=unavailable]{background:#f2eee5;color:#766d5f;opacity:1;cursor:default}
button.schedule-time-card:disabled::after{background:#b87163}
button.schedule-time-card[data-state=one]::after{background:#ac883d}
button.schedule-time-card[aria-pressed=true],button.schedule-time-card:hover:not(:disabled){border-color:#a98440;background:#eadcba}
button.schedule-time-card:focus-visible{outline:2px solid #966b22;outline-offset:2px}
@media(max-width:520px){.schedule-time-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(prefers-color-scheme:dark){
  #moveAppointment button.schedule-time-card{background:#362a20;border-color:#766045;color:#fff0db}
  #moveAppointment button.schedule-time-card span{color:#e0cbb1}
  #moveAppointment button.schedule-time-card:disabled{background:#2a231e;color:#cabbac}
  #moveAppointment button.schedule-time-card[aria-pressed=true],#moveAppointment button.schedule-time-card:hover:not(:disabled){background:#51402c;border-color:#d0ab68}
}

.schedule-time-grid{display:block}
.schedule-time-options{display:grid;grid-template-columns:repeat(auto-fill,minmax(108px,1fr));gap:8px}
.schedule-time-options:empty{display:none}
.schedule-time-more{margin-top:12px}
.schedule-time-more summary{cursor:pointer;font-size:.9rem;padding:8px 0;text-align:left}
.schedule-time-more[open] summary{margin-bottom:6px}
button.schedule-time-card{min-height:58px;padding:9px 7px;border-radius:6px;letter-spacing:normal;text-transform:none;line-height:1.2}
button.schedule-time-card span{font-size:.68rem}
button.schedule-time-card[aria-pressed=true]{box-shadow:inset 0 0 0 1px #a98440}
#rescheduleModal{width:min(760px,calc(100% - 24px));max-height:calc(100dvh - 24px);padding:0;overflow:hidden;border:1px solid #dfd1b3;border-radius:12px;background:#fffaf1}
#rescheduleModal[open]{display:flex;flex-direction:column}
#rescheduleModal .schedule-dialog-header,#rescheduleModal .modal-actions{flex:none;background:#fffaf1;padding:14px 20px;margin:0}
#rescheduleModal .schedule-dialog-header{display:block;border-bottom:1px solid #dfd1b3}
#rescheduleTitle{margin:0;font-size:1.6rem}
#rescheduleName{margin:4px 0 0;overflow-wrap:anywhere}
.schedule-dialog-body{min-height:0;overflow:auto;overscroll-behavior:contain;padding:16px 20px}
#rescheduleModal .schedule-edit-fields{grid-template-columns:minmax(0,2fr) minmax(0,1fr)}
#rescheduleComboFields{grid-column:1/-1;grid-row:2}
#rescheduleModal .modal-actions{border-top:1px solid #dfd1b3}
#rescheduleModal .modal-actions button,.schedule-customer-actions button{min-height:44px}
#moveAppointment{max-width:760px;margin-inline:auto;text-align:left}
#moveDate{max-width:240px}
.schedule-customer-actions{position:sticky;bottom:0;z-index:1;display:flex;flex-wrap:wrap;gap:8px;padding:10px 0;background:var(--cream2,#fffaf1)}
@media(max-width:520px){
  .schedule-time-options{grid-template-columns:repeat(2,minmax(0,1fr))}
  #rescheduleModal .schedule-dialog-header,#rescheduleModal .modal-actions,.schedule-dialog-body{padding-inline:14px}
  #rescheduleComboFields{grid-row:auto}
  .schedule-customer-actions button{flex:1 0 auto}
}
@media(max-width:760px){#rescheduleComboFields{grid-row:auto}}
#moveAppointment input[type=date]{box-sizing:border-box;min-height:44px;font-size:16px}

#salonAssignment{max-height:calc(100dvh - 24px);overflow:auto;border-radius:12px}
#assignmentForm .schedule-time-card{margin-top:0;overflow-wrap:anywhere}
#assignmentForm .schedule-time-card[data-state=open]{background:#e7f1e5;border-color:#98b996;color:#214b29}
#assignmentForm .schedule-time-card[data-state=open] span{color:#305d36}
#assignmentForm .schedule-time-card[data-state=unavailable]{background:#f7e9e5;border-color:#d9ada5;color:#703a33}
#assignmentForm .schedule-time-card[data-state=unavailable] span{color:#703a33}
#assignmentForm .schedule-time-card[data-state=neutral]::after{display:none}
#assignmentForm .schedule-time-card[aria-pressed=true]{outline:2px solid #927035;outline-offset:-2px}
#assignmentForm .schedule-time-card:focus-visible{outline:2px solid #302611;outline-offset:2px}
