/* NoorVista 3.1.20 — exact requested UI refinements */

/* Keep both schedule switches identical and aligned. */
body[data-nv-page="schedule"] .nv-sequential-booking-toggle,
body[data-nv-page="schedule"] .nv-bulk-booking-toggle {
  width: 100% !important;
  display: grid !important;
  grid-template-columns: 48px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 14px !important;
  direction: ltr !important;
}

body[data-nv-page="schedule"] .nv-sequential-booking-switch,
body[data-nv-page="schedule"] .nv-bulk-booking-switch {
  grid-column: 1 !important;
  grid-row: 1 !important;
  margin: 0 !important;
}

body[data-nv-page="schedule"] .nv-sequential-booking-copy,
body[data-nv-page="schedule"] .nv-bulk-booking-copy {
  grid-column: 2 !important;
  grid-row: 1 !important;
  min-width: 0 !important;
  width: 100% !important;
  direction: rtl !important;
  text-align: right !important;
  justify-items: start !important;
}

body[data-nv-page="schedule"] .nv-bulk-field-locked::after {
  content: none !important;
  display: none !important;
}

body[data-nv-page="schedule"] .nv-schedule-capacity-row > .appt-field {
  display: flex !important;
  min-width: 0 !important;
  flex-direction: column !important;
  align-self: stretch !important;
}

body[data-nv-page="schedule"] .nv-schedule-capacity-row > .appt-field > :is(input, select, .nvps-select) {
  margin-top: auto !important;
}

body[data-nv-page="schedule"] .nv-schedule-capacity-row .appt-field:last-child .nvps-trigger {
  justify-content: flex-start !important;
  gap: 12px !important;
  padding-right: 14px !important;
  padding-left: 44px !important;
}

body[data-nv-page="schedule"] .nv-schedule-capacity-row .appt-field:last-child .nvps-value {
  min-width: 0 !important;
  margin-left: auto !important;
  padding-left: 8px !important;
}

body[data-nv-page="schedule"] .nv-schedule-capacity-row .appt-field:last-child .nvps-chevron {
  left: 14px !important;
}

/* Public booking: never show capacity chips on service cards. */
html body #nvPublicBooking .nv-booking-service-choice .nv-booking-pill--capacity,
html body #nvPublicBooking [data-nv-service-id] .nv-booking-pill--capacity,
html body .nv-public-booking .nv-booking-pill--capacity {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
}

/* Compact, fully ruled schedule table. */
body[data-nv-page="schedule"] .appt-table {
  border-collapse: separate !important;
  border-spacing: 0 !important;
  border: 1px solid #d7e4ec !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  background: #fff !important;
}

body[data-nv-page="schedule"] .appt-table th,
body[data-nv-page="schedule"] .appt-table td {
  border-left: 1px solid #d7e4ec !important;
  border-bottom: 1px solid #d7e4ec !important;
  vertical-align: middle !important;
  text-align: center !important;
}

body[data-nv-page="schedule"] .appt-table th:last-child,
body[data-nv-page="schedule"] .appt-table td:last-child {
  border-left: 0 !important;
}

body[data-nv-page="schedule"] .appt-table tbody tr:last-child td {
  border-bottom: 0 !important;
}

body[data-nv-page="schedule"] .appt-table thead th {
  background: #edf6fb !important;
  color: #27465b !important;
  font-weight: 900 !important;
}

body[data-nv-page="schedule"] .appt-table tbody tr:nth-child(even) {
  background: #fbfdff !important;
}

body[data-nv-page="schedule"] .appt-table tbody tr:hover {
  background: #f0f9ff !important;
}

@media (min-width: 980px) {
  body[data-nv-page="schedule"] .appt-table-wrap.nv3-table-scroll {
    overflow-x: hidden !important;
    overflow-y: visible !important;
  }

  body[data-nv-page="schedule"] .appt-table {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    table-layout: fixed !important;
  }

  body[data-nv-page="schedule"] .appt-table th,
  body[data-nv-page="schedule"] .appt-table td {
    padding: 7px 4px !important;
    font-size: 10.5px !important;
    line-height: 1.55 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }

  body[data-nv-page="schedule"] .appt-table .appt-row-actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 4px !important;
    width: 100% !important;
  }

  body[data-nv-page="schedule"] .appt-table .appt-row-actions .appt-btn {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 27px !important;
    padding: 4px 3px !important;
    border-radius: 8px !important;
    gap: 3px !important;
    font-size: 9px !important;
    line-height: 1.25 !important;
  }

  body[data-nv-page="schedule"] .appt-table .appt-row-actions .appt-btn:last-child {
    grid-column: 1 / -1 !important;
  }
}

/* Desktop/tablet hero: occupy the full initial viewport below the public header. */
@media (min-width: 761px) {
  html body.nv-home-page section.nv-home-slider,
  html body.nv-home-page .nv-home-slider[data-nv-home-slider],
  html body.nv-home-page .nv-home-slider {
    box-sizing: border-box !important;
    height: calc(100vh - 166px) !important;
    height: calc(100svh - 166px) !important;
    height: calc(100dvh - 166px) !important;
    min-height: 430px !important;
    max-height: none !important;
  }

  html body.nv-home-page .nv-home-slider__viewport,
  html body.nv-home-page .nv-home-slider__track,
  html body.nv-home-page .nv-home-slide,
  html body.nv-home-page .nv-home-slide__picture {
    height: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
  }
}

@media (min-width: 761px) and (max-height: 760px) {
  html body.nv-home-page section.nv-home-slider,
  html body.nv-home-page .nv-home-slider[data-nv-home-slider],
  html body.nv-home-page .nv-home-slider {
    height: calc(100vh - 160px) !important;
    height: calc(100svh - 160px) !important;
    height: calc(100dvh - 160px) !important;
    min-height: 430px !important;
  }
}

/* Login: pure opaque white card, exactly matching the white behind the logo. */
html body.login-page .login-shell .login-card,
html body.login-page main.login-shell section.login-card,
html body.login-page .login-card {
  background: #ffffff !important;
  background-color: #ffffff !important;
  background-image: none !important;
  opacity: 1 !important;
  filter: none !important;
  border-color: rgba(148, 163, 184, .34) !important;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .16) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html body.login-page .login-card::before,
html body.login-page .login-card::after {
  content: none !important;
  display: none !important;
  opacity: 0 !important;
  background: transparent !important;
}

html body.login-page .login-card .login-header,
html body.login-page .login-card .login-brand,
html body.login-page .login-card .login-brand-logo,
html body.login-page .login-card .login-brand-logo > a,
html body.login-page .login-card .login-brand-logo > span,
html body.login-page .login-card .login-brand-text {
  background: #ffffff !important;
  background-color: #ffffff !important;
  background-image: none !important;
  opacity: 1 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html body.login-page .login-card .login-brand-logo img,
html body.login-page .login-card img[data-nv-brand-logo] {
  background: #ffffff !important;
  background-color: #ffffff !important;
  mix-blend-mode: normal !important;
  opacity: 1 !important;
  filter: none !important;
  box-shadow: none !important;
  border: 0 !important;
}
