/* Services, hours, holidays, and settings pages. */
.services-main { display: grid; width: 100%; max-width: 1280px; grid-template-columns: minmax(0, 1fr) minmax(320px, .72fr); gap: 18px 24px; margin: 0 auto; padding: 32px clamp(18px, 4vw, 52px) 48px; }

.hours-main { width: 100%; max-width: 1280px; margin: 0 auto; padding: 32px clamp(18px, 4vw, 52px) 48px; }

.hours-main.hidden { display: none; }

.hours-page__header { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 20px; }

.hours-demo-note { color: #9ca3af; font-size: .72rem; font-weight: 600; }

.hours-card { overflow: visible; margin-bottom: 18px; border: 1px solid #e5e7eb; border-radius: 14px; background: #fff; box-shadow: 0 6px 18px rgba(15,23,42,.04); }

.hours-card__heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px 16px; border-bottom: 1px solid #eef0f5; }

.hours-card__heading h3 { margin: 0; color: #1f2937; font-size: .98rem; font-weight: 650; }

.hours-card__heading p { margin: 4px 0 0; color: #6b7280; font-size: .76rem; }

.hours-card__heading-actions { display: flex; align-items: center; gap: 10px; }

.hours-coming-soon { padding: 5px 9px; border-radius: 999px; background: #f3f4f6; color: #6b7280; font-size: .68rem; font-weight: 600; white-space: nowrap; }

.hours-save { min-height: 34px; padding: 0 12px; border: 1px solid #c7d2fe; border-radius: 8px; background: #eef2ff; color: #4338ca; font-size: .74rem; font-weight: 600; cursor: pointer; transition: background 150ms ease, border-color 150ms ease; }

.hours-save:hover { border-color: #a5b4fc; background: #e0e7ff; }

.hours-save.is-saved { border-color: #bbf7d0; background: #ecfdf5; color: #047857; }

.hours-schedule { padding: 4px 24px 8px; }

.hours-day { display: grid; grid-template-columns: 150px minmax(0, 1fr) 34px; align-items: center; gap: 18px; min-height: 68px; border-bottom: 1px solid #f1f2f6; }

.hours-day:last-child { border-bottom: 0; }

.hours-day.is-disabled { opacity: .58; }

.hours-day__name { display: flex; align-items: center; gap: 10px; color: #374151; font-size: .82rem; }

.hours-day__name strong { font-weight: 550; }

.hours-toggle { position: relative; width: 38px; height: 23px; padding: 0; border: 0; border-radius: 999px; background: #d1d5db; cursor: pointer; }

.hours-toggle span { position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(15,23,42,.18); transition: transform 150ms ease; }

.hours-toggle.is-on { background: #252a32; }

.hours-toggle.is-on span { transform: translateX(15px); }

.hours-day__windows { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }

.hours-window { display: flex; align-items: center; gap: 9px; }

.hours-time-select { position: relative; display: block; }

.hours-time-select__button { display: flex; align-items: center; justify-content: space-between; width: 100px; min-height: 34px; box-sizing: border-box; padding: 0 10px; border: 1px solid #d1d5db; border-radius: 9px; background: #fff; color: #374151; font-size: .8rem; text-align: left; cursor: pointer; }

.hours-time-select__button:hover, .hours-time-select__button[aria-expanded="true"] { border-color: #a5b4fc; background: #fafaff; }

.hours-time-select__button[aria-expanded="true"] { box-shadow: 0 0 0 3px rgba(99,102,241,.12); }

.hours-time-select__chevron { color: #6366f1; font-size: .95rem; }

.hours-time-select__menu { position: absolute; top: calc(100% + 5px); left: 0; z-index: 80; display: block; width: 100px; max-height: 210px; overflow-y: auto; padding: 5px; border: 1px solid #e0e7ff; border-radius: 9px; background: #fff; box-shadow: 0 12px 25px rgba(15,23,42,.14); }

.hours-time-select__menu[hidden] { display: none; }

.hours-time-select__menu button { display: block; width: 100%; padding: 7px 8px; border: 0; border-radius: 6px; background: transparent; color: #374151; font-size: .78rem; text-align: left; cursor: pointer; }

.hours-time-select__menu button:hover, .hours-time-select__menu button[aria-selected="true"] { background: #eef2ff; color: #312e81; }

.hours-window > span { color: #4b5563; font-size: .84rem; }

.hours-add, .hours-remove { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: #4f46e5; font-size: 1.05rem; cursor: pointer; }

.hours-add:hover, .hours-remove:hover { background: #eef2ff; }

.hours-add:disabled { cursor: default; opacity: .35; }

.hours-remove { color: #6b7280; font-size: 1.15rem; }

.holidays-main { width: 100%; max-width: 1080px; margin: 0 auto; padding: 32px clamp(18px, 4vw, 52px) 48px; }

.holidays-main.hidden { display: none; }

.holidays-page__header { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 20px; }

.holidays-add { position: relative; }

.holidays-add::after { position: absolute; right: 0; bottom: calc(100% + 8px); z-index: 20; display: none; padding: 6px 9px; border-radius: 6px; background: #111827; color: #fff; content: attr(data-tooltip); font-size: .68rem; font-weight: 500; line-height: 1; white-space: nowrap; }

.holidays-add:hover::after { display: block; }

.holidays-card { overflow: hidden; border: 1px solid #e5e7eb; border-radius: 14px; background: #fff; box-shadow: 0 6px 18px rgba(15,23,42,.04); }

.holidays-card__heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px 16px; border-bottom: 1px solid #eef0f5; }

.holidays-card__heading h3 { margin: 0; color: #1f2937; font-size: .98rem; font-weight: 650; }

.holidays-card__heading p { margin: 4px 0 0; color: #6b7280; font-size: .76rem; }

.holidays-list { padding: 4px 24px 8px; }

.holiday-row { display: flex; align-items: center; gap: 14px; min-height: 70px; border-bottom: 1px solid #f1f2f6; }

.holiday-row:last-child { border-bottom: 0; }

.holiday-row > div { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 3px; }

.holiday-row strong { color: #374151; font-size: .84rem; font-weight: 600; }

.holiday-row > div span { color: #6b7280; font-size: .74rem; }

.holiday-row__date { display: flex; width: 48px; height: 48px; flex: 0 0 auto; flex-direction: column; align-items: center; justify-content: center; border-radius: 10px; background: #eef2ff; color: #4338ca; font-size: 1.05rem; font-weight: 650; line-height: 1; }

.holiday-row__date small { margin-top: 3px; font-size: .68rem; font-weight: 600; text-transform: uppercase; }

.holiday-row__status { padding: 5px 9px; border-radius: 999px; background: #f3f4f6; color: #6b7280; font-size: .68rem; font-weight: 600; }

.settings-main { width: 100%; max-width: 960px; margin: 0 auto; padding: 32px clamp(18px, 4vw, 52px) 48px; }

.settings-main.hidden { display: none; }

.settings-card { overflow: hidden; margin-bottom: 18px; border: 1px solid #e5e7eb; border-radius: 14px; background: #fff; box-shadow: 0 6px 18px rgba(15,23,42,.04); }

.settings-card__header { padding: 22px 24px; border-bottom: 1px solid #e5e7eb; }

.settings-card__header h2 { margin: 0; color: #111827; font-size: 1.2rem; font-weight: 650; }

.settings-card__header p { margin: 4px 0 0; color: #4b5563; font-size: .86rem; }

.settings-profile { display: flex; align-items: center; gap: 16px; padding: 26px 24px 20px; }

.settings-avatar { display: grid; width: 62px; height: 62px; place-items: center; overflow: hidden; border: 1px solid #d1d5db; border-radius: 50%; background: #e5e7eb; }

.settings-avatar img { width: 100%; height: 100%; object-fit: cover; }

.settings-profile > div:last-child { display: flex; align-items: flex-start; flex-direction: column; gap: 9px; color: #111827; font-size: .82rem; }

.settings-secondary { padding: 7px 10px; border: 1px solid #d1d5db; border-radius: 8px; background: #fff; color: #4b5563; font-size: .76rem; cursor: pointer; }

.settings-form { padding: 0 24px 24px; }

.settings-form label { display: flex; flex-direction: column; gap: 6px; margin-top: 15px; color: #111827; font-size: .78rem; font-weight: 550; }

.settings-form input { width: 100%; min-height: 40px; box-sizing: border-box; padding: 0 11px; border: 1px solid #d1d5db; border-radius: 9px; color: #374151; font-size: .84rem; outline: none; }

.settings-form input:focus { border-color: #818cf8; box-shadow: 0 0 0 3px rgba(99,102,241,.12); }

.settings-form input:disabled { background: #f9fafb; color: #9ca3af; }

.settings-form__footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 22px; padding-top: 16px; border-top: 1px solid #e5e7eb; }

.settings-form__footer p, .settings-password-hint { margin: 0; color: #6b7280; font-size: .75rem; line-height: 1.45; }

.settings-form__footer .is-demo-confirmed { background: #059669; }

.settings-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

.settings-password { position: relative; display: block; }

.settings-password input { padding-right: 40px; }

.settings-password__toggle { position: absolute; top: 50%; right: 9px; display: grid; width: 24px; height: 24px; place-items: center; padding: 0; border: 0; background: transparent; color: #111827; font-size: .8rem; cursor: pointer; transform: translateY(-50%); }

.settings-password-hint { margin-top: 18px; max-width: 760px; }

@media (max-width: 720px) {
  .settings-main { padding-top: 24px; }
  .settings-card__header, .settings-profile, .settings-form { padding-left: 18px; padding-right: 18px; }
  .settings-form__grid { grid-template-columns: 1fr; gap: 0; }
  .settings-form__footer { align-items: stretch; flex-direction: column; }
}

@media (max-width: 720px) {
  .holidays-main { padding-top: 24px; }
  .holidays-page__header { align-items: flex-start; flex-direction: column; gap: 14px; }
  .holidays-card__heading, .holidays-list { padding-left: 16px; padding-right: 16px; }
}

.hours-overrides-list { padding: 4px 24px 0; }

.hours-override { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 62px; border-bottom: 1px solid #f1f2f6; }

.hours-override > div { display: flex; min-width: 0; flex-direction: column; gap: 3px; }

.hours-override strong { color: #374151; font-size: .82rem; font-weight: 600; }

.hours-override span { color: #6b7280; font-size: .73rem; }

.hours-override__value { flex: 0 0 auto; padding: 5px 8px; border-radius: 7px; background: #f5f3ff; color: #4338ca !important; font-size: .72rem !important; font-weight: 600; }

.hours-override__value--closed { background: #f3f4f6; color: #6b7280 !important; }

.hours-overrides__footer { padding: 14px 24px 18px; }

.hours-add-override { position: relative; padding: 0; border: 0; background: transparent; color: #4f46e5; font-size: .75rem; font-weight: 600; cursor: pointer; }

.hours-add-override::after { position: absolute; right: 0; bottom: calc(100% + 7px); z-index: 20; display: none; padding: 6px 9px; border-radius: 6px; background: #111827; color: #fff; content: attr(data-tooltip); font-size: .68rem; font-weight: 500; line-height: 1; white-space: nowrap; }

.hours-add-override:hover::after { display: block; }

@media (min-width: 721px) {
  .hours-main { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(320px, .85fr); align-items: start; gap: 18px 24px; }
  .hours-page__header { grid-column: 1 / -1; }
  .hours-card { margin-bottom: 0; }
  .hours-card--overrides { width: auto; margin-left: 0; }
}

@media (max-width: 720px) {
  .hours-main { padding-top: 24px; }
  .hours-page__header { align-items: flex-start; flex-direction: column; gap: 8px; }
  .hours-card__heading { padding-left: 16px; padding-right: 16px; }
  .hours-card__heading-actions { align-items: flex-end; flex-direction: column; gap: 7px; }
  .hours-schedule { padding-left: 16px; padding-right: 16px; }
  .hours-day { grid-template-columns: 1fr 34px; gap: 10px; padding: 12px 0; }
  .hours-day__name { grid-column: 1 / -1; }
  .hours-day__windows { grid-column: 1; }
  .hours-time-select__button, .hours-time-select__menu { width: 92px; }
}

.services-main.hidden, .service-detail.hidden { display: none; }

.services-page__header { display: flex; grid-column: 1 / -1; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 6px; }

.services-page__eyebrow { margin: 0 0 5px; color: #6366f1; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

.services-page__header h2 { margin: 0; color: #111827; font-size: 1.65rem; font-weight: 650; letter-spacing: -.025em; }

.services-page__intro { margin: 5px 0 0; color: #6b7280; font-size: .88rem; }

.services-primary-button { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 15px; border: 0; border-radius: 9px; background: #4f46e5; color: #fff; font-size: .8rem; font-weight: 600; cursor: pointer; box-shadow: 0 2px 5px rgba(79,70,229,.2); transition: background 150ms ease, transform 150ms ease; }

.services-primary-button:hover { background: #4338ca; transform: translateY(-1px); }

.services-list { grid-column: 1; overflow: visible; border: 1px solid #e5e7eb; border-radius: 14px; background: #fff; box-shadow: 0 6px 18px rgba(15,23,42,.04); }

.services-empty { margin: 0; padding: 22px 20px; color: #9ca3af; font-size: .82rem; }

.service-row { display: grid; grid-template-columns: minmax(0, 1fr) 190px 218px; align-items: center; gap: 18px; min-height: 68px; padding: 9px 16px 9px 20px; border-bottom: 1px solid #eef0f5; transition: background 150ms ease; }

.service-row:first-child { border-top-left-radius: 13px; border-top-right-radius: 13px; }

.service-row:last-child { border-bottom: 0; border-bottom-left-radius: 13px; border-bottom-right-radius: 13px; }

.service-row:hover { background: #fafaff; }

.service-row.is-disabled { background: #fafafa; }

.service-row__main { display: contents; }

.service-row__name { overflow: hidden; color: #1f2937; font-size: .92rem; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }

.service-row.is-disabled .service-row__name { color: #9ca3af; }

.service-row__meta { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 22px; color: #6b7280; font-size: .78rem; }

.service-row__meta strong { color: #111827; font-size: .86rem; font-weight: 650; }

.service-row.is-disabled .service-row__meta strong { color: #9ca3af; }

.service-row__actions { display: flex; justify-content: flex-end; gap: 5px; }

.service-row__actions button { min-height: 30px; padding: 0 8px; border: 1px solid #e0e7ff; border-radius: 7px; background: #fff; color: #4f46e5; font-size: .7rem; font-weight: 600; cursor: pointer; }

.service-row__actions button:hover { background: #eef2ff; }

.service-row__actions .service-toggle { position: relative; width: 30px; padding: 0; color: #9ca3af; font-size: .9rem; }

.service-row__actions .service-toggle.is-enabled { border-color: #bbf7d0; background: #ecfdf5; color: #059669; }

.service-row__actions .service-toggle::after { position: absolute; right: 0; bottom: calc(100% + 7px); z-index: 15; display: none; padding: 5px 8px; border-radius: 6px; background: #111827; color: #fff; content: attr(data-tooltip); font-size: .68rem; font-weight: 500; line-height: 1; white-space: nowrap; }

.service-row__actions .service-toggle:hover::after { display: block; }

.service-row__actions button.is-danger:hover { border-color: #fecaca; background: #fef2f2; color: #b91c1c; }

.service-detail { grid-column: 2; grid-row: 2; align-self: start; position: sticky; top: 18px; margin-top: 0; padding: 23px 24px 25px; border: 1px solid #e0e7ff; border-radius: 14px; background: #fff; box-shadow: 0 8px 22px rgba(15,23,42,.05); }

.service-detail__heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }

.service-detail__heading h3 { margin: 0; color: #111827; font-size: 1.25rem; font-weight: 650; }

.service-detail__close { width: 28px; height: 28px; border: 0; border-radius: 7px; background: #f5f3ff; color: #6366f1; font-size: 1.25rem; line-height: 1; cursor: pointer; }

.service-detail__facts { display: flex; gap: 42px; margin: 19px 0 22px; padding-bottom: 18px; border-bottom: 1px solid #eef0f5; }

.service-detail__facts div { display: flex; flex-direction: column; gap: 4px; }

.service-detail__facts span { color: #6b7280; font-size: .72rem; font-weight: 600; }

.service-detail__facts strong { color: #1f2937; font-size: .9rem; font-weight: 650; }

.service-detail__group + .service-detail__group { margin-top: 18px; }

.service-detail__group-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 7px; }

.service-detail__group h4 { margin: 0; color: #374151; font-size: .78rem; font-weight: 650; letter-spacing: .02em; text-transform: uppercase; }

.service-detail__add { position: relative; padding: 0; border: 0; background: transparent; color: #6366f1; font-size: .7rem; font-weight: 600; cursor: pointer; }

.service-detail__add::after { position: absolute; right: 0; bottom: calc(100% + 7px); z-index: 10; display: none; padding: 5px 8px; border-radius: 6px; background: #111827; color: #fff; content: attr(data-tooltip); font-size: .68rem; font-weight: 500; line-height: 1; white-space: nowrap; }

.service-detail__add:hover::after { display: block; }

.service-detail__group ul { margin: 0; padding: 0; list-style: none; }

.service-detail__group li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid #f1f2f6; color: #4b5563; font-size: .8rem; }

.service-detail__group li:last-child { border-bottom: 0; }

.service-detail__group li span:last-child { color: #6b7280; white-space: nowrap; }

.service-detail__option-name { display: inline-flex; align-items: center; gap: 8px; }

.service-detail__radio, .service-detail__checkbox { display: inline-block; width: 14px; height: 14px; flex: 0 0 auto; border: 1.5px solid #c7d2fe; }

.service-detail__radio { border-radius: 50%; }

.service-detail__radio.is-selected { border-color: #4f46e5; box-shadow: inset 0 0 0 3px #fff; background: #4f46e5; }

.service-detail__checkbox { border-radius: 4px; background: #fafaff; }

.service-detail__empty { color: #9ca3af !important; font-style: italic; }

.service-edit-form { display: grid; min-width: 0; grid-template-columns: 1.5fr .8fr .8fr; gap: 12px; margin-top: 20px; }

.service-edit-form label { display: flex; min-width: 0; flex-direction: column; gap: 6px; color: #6b7280; font-size: .72rem; font-weight: 600; }

.service-edit-form input, .service-edit-form select { width: 100%; min-width: 0; box-sizing: border-box; min-height: 38px; padding: 0 10px; border: 1px solid #d1d5db; border-radius: 8px; background: #fff; color: #1f2937; font-size: .8rem; }

.service-detail__edit-actions { display: flex; grid-column: 1 / -1; justify-content: flex-end; gap: 8px; margin-top: 5px; }

.service-secondary-button { min-height: 38px; padding: 0 13px; border: 1px solid #d1d5db; border-radius: 8px; background: #fff; color: #4b5563; font-size: .78rem; font-weight: 600; cursor: pointer; }

@media (max-width: 720px) {
  .services-main { display: block; }
  .services-page__header { align-items: stretch; flex-direction: column; gap: 15px; margin-bottom: 24px; }
  .services-primary-button { align-self: flex-start; }
  .service-row { display: flex; align-items: flex-start; flex-direction: column; gap: 10px; }
  .service-row__main { display: flex; width: 100%; }
  .service-row__actions { opacity: 1; }
  .service-detail { position: static; margin-top: 18px; }
  .service-edit-form { grid-template-columns: 1fr 1fr; }
  .service-edit-form label:first-child { grid-column: 1 / -1; }
}
