.schedule-form[hidden] { display: none !important; }
.rules-workspace[hidden], .exception-form[hidden], .exception-time[hidden] { display: none !important; }
.schedule-card { padding: 24px; border: 1px solid var(--border-soft); border-radius: 16px; background: var(--surface); }
.schedule-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding-bottom: 18px; margin-bottom: 8px; border-bottom: 1px solid var(--border-soft); }
.schedule-heading span { color: var(--pink); font-size: 10px; font-weight: 700; letter-spacing: .7px; text-transform: uppercase; }
.schedule-heading h2 { margin: 5px 0; font-size: 19px; }
.schedule-heading p { max-width: 430px; color: var(--text-muted); font-size: 12px; }
.schedule-days { display: grid; }
.schedule-day { display: grid; grid-template-columns: 130px minmax(0,1fr) auto; gap: 18px; align-items: center; min-height: 78px; padding: 14px 4px; border-bottom: 1px solid var(--border-soft); }
.schedule-day:last-child { border-bottom: 0; }
.schedule-day-name { display: grid; gap: 4px; }
.schedule-day-name strong { color: var(--text-primary); font-size: 13px; }
.schedule-day-name small { color: #a9f0d9; font-size: 10px; }
.schedule-day.closed .schedule-day-name small { color: var(--text-faint); }
.schedule-intervals { display: grid; gap: 8px; }
.schedule-interval { display: grid; grid-template-columns: minmax(110px,1fr) auto minmax(110px,1fr) auto; gap: 8px; align-items: center; }
.schedule-interval input { width: 100%; padding: 9px 10px; border: 1px solid var(--border-soft); border-radius: 8px; outline: none; background: var(--surface-raised); color: var(--text-primary); font: inherit; color-scheme: dark; }
.schedule-interval input:focus { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(236,38,149,.1); }
.schedule-interval span { color: var(--text-faint); font-size: 11px; }
.schedule-add, .schedule-remove { padding: 8px 10px; border: 1px solid var(--border-soft); border-radius: 8px; background: transparent; color: var(--text-muted); font-size: 10px; font-weight: 600; cursor: pointer; }
.schedule-add:hover { color: var(--text-primary); border-color: rgba(236,38,149,.4); }
.schedule-remove { color: #ffb5c1; border-color: rgba(240,86,112,.25); }
.rules-workspace { display: grid; gap: 18px; margin-top: 18px; }
.rules-fields, .exception-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.rules-fields label, .exception-fields label { display: grid; gap: 7px; color: var(--text-muted); font-size: 11px; font-weight: 600; }
.rules-fields input, .exception-fields input, .exception-fields select { width: 100%; padding: 10px 11px; border: 1px solid var(--border-soft); border-radius: 8px; outline: none; background: var(--surface-raised); color: var(--text-primary); font: inherit; }
.rules-fields input:focus, .exception-fields input:focus, .exception-fields select:focus { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(236,38,149,.1); }
.rules-fields small { color: var(--text-faint); font-size: 10px; font-weight: 400; }
.rules-actions { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-top: 18px; }
.rules-actions span { color: var(--text-muted); font-size: 11px; }
.rules-actions button, .exception-primary, .service-editor-actions button { padding: 10px 15px; border: 0; border-radius: 9px; background: var(--brand-gradient); color: white; font-weight: 700; cursor: pointer; }
.exceptions-list { display: grid; gap: 9px; }
.exception-item { display: flex; justify-content: space-between; align-items: center; gap: 18px; width: 100%; padding: 13px 14px; border: 1px solid var(--border-soft); border-radius: 10px; background: rgba(255,255,255,.02); color: var(--text-primary); text-align: left; cursor: pointer; }
.exception-item:hover { border-color: rgba(236,38,149,.4); }
.exception-item-main { display: grid; gap: 4px; }
.exception-item-main small, .exception-reason { color: var(--text-muted); font-size: 11px; }
.exception-form { display: grid; gap: 16px; margin-top: 18px; padding: 18px; border: 1px solid var(--border-soft); border-radius: 12px; background: rgba(255,255,255,.02); }
.exception-form-heading { display: flex; align-items: center; justify-content: space-between; }
.exception-form-heading button { width: 30px; height: 30px; border: 1px solid var(--border-soft); border-radius: 8px; background: transparent; color: var(--text-muted); font-size: 20px; cursor: pointer; }
.exception-fields .wide { grid-column: 1 / -1; }
.service-editor-actions { display: flex; justify-content: flex-end; gap: 10px; }
.service-editor-actions .archive { margin-right: auto; border: 1px solid rgba(240,86,112,.35); background: rgba(240,86,112,.08); color: #ffb5c1; }
.services-list-empty { padding: 28px; color: var(--text-muted); text-align: center; border: 1px dashed var(--border-soft); border-radius: 10px; }
@media (max-width: 850px) { .schedule-day { grid-template-columns: 100px minmax(0,1fr); } .schedule-add { grid-column: 2; justify-self: start; } }
@media (max-width: 620px) { .schedule-heading { align-items: flex-start; flex-direction: column; } .schedule-day { grid-template-columns: 1fr; gap: 10px; } .schedule-add { grid-column: auto; justify-self: stretch; } .schedule-interval { grid-template-columns: 1fr auto 1fr; } .schedule-remove { grid-column: 1 / -1; } .rules-fields, .exception-fields { grid-template-columns: 1fr; } .exception-fields .wide { grid-column: auto; } .exception-item { align-items: flex-start; flex-direction: column; } }
