:root {
  --ink: #172536;
  --muted: #687687;
  --paper: #f5f6f2;
  --white: #ffffff;
  --blue: #197fbd;
  --blue-dark: #116b9f;
  --blue-pale: #e8f4fa;
  --line: #dfe4e6;
  --coral: #ef765f;
  --green: #3a9c77;
  --shadow: 0 20px 55px rgba(26, 47, 67, 0.12);
  font-family: "DM Sans", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }

body { margin: 0; min-width: 320px; }

button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

* {
  scrollbar-width: auto;
  scrollbar-color: #8a98a5 #edf1f3;
}

*::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

*::-webkit-scrollbar-track {
  background: #edf1f3;
  border-radius: 999px;
}

*::-webkit-scrollbar-thumb {
  min-height: 38px;
  border: 3px solid #edf1f3;
  border-radius: 999px;
  background: #8a98a5;
}

*::-webkit-scrollbar-thumb:hover {
  background: #687687;
}

.modal,
.modal-card,
.data-table-list,
.customers-list,
.customer-operator-detail,
.customer-bookings,
.notifications-list,
.special-hours-list,
.whatsapp-chat-messages,
.whatsapp-chat-quick-replies,
.room-filter {
  scrollbar-gutter: stable;
}

.site-header {
  height: 82px;
  padding: 0 clamp(20px, 5vw, 76px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand {
  display: flex;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
  width: max-content;
}

.brand img {
  width: 116px;
  height: 66px;
  display: block;
  object-fit: contain;
}

.mode-switch {
  padding: 4px;
  display: flex;
  gap: 4px;
  background: #eef0ee;
  border-radius: 10px;
}

.mode-button {
  min-width: 100px;
  padding: 9px 16px;
  border: 0;
  border-radius: 7px;
  color: var(--muted);
  background: transparent;
  font-weight: 600;
}

.mode-button.active {
  color: var(--ink);
  background: white;
  box-shadow: 0 2px 7px rgba(21, 38, 53, 0.08);
}

.profile-button {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 600;
}

.profile-button > span:first-child {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--blue);
  font-size: 12px;
}

main { min-height: calc(100vh - 82px); }
.view { display: none; }
.view.active { display: block; }

.hero {
  padding: 72px clamp(20px, 8vw, 128px) 98px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  color: white;
  background:
    radial-gradient(circle at 72% 20%, rgba(54, 151, 202, 0.28), transparent 31%),
    linear-gradient(115deg, #121f2b 0%, #1c3448 58%, #1f4159 100%);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.hero .eyebrow { color: #6dc1ee; }

h1, h2 { font-family: "Manrope", sans-serif; }
h1 { margin: 0; font-size: clamp(38px, 5vw, 66px); line-height: 1.05; letter-spacing: -0.045em; }
h1 em { color: #65b8e4; font-style: normal; }
h2 { margin: 0; font-size: clamp(25px, 3vw, 34px); letter-spacing: -0.035em; }
.hero-copy { max-width: 550px; margin: 20px 0 0; color: #bfcbd3; font-size: 16px; line-height: 1.6; }
.current-date-time {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-transform: capitalize;
}
.hero-date-time { color: #91a8b8; }

.next-booking {
  width: min(100%, 410px);
  padding: 22px 20px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.status-dot { width: 10px; height: 10px; border-radius: 50%; background: #60c39a; box-shadow: 0 0 0 5px rgba(96,195,154,.13); }
.next-booking small, .next-booking strong, .next-booking span { display: block; }
.next-booking small { margin-bottom: 5px; color: #8fa3b2; font-size: 9px; letter-spacing: .1em; }
.next-booking strong { font-size: 14px; }
.next-booking div span { margin-top: 4px; color: #aebbc5; font-size: 12px; }
.next-booking button { width: 34px; height: 34px; border: 0; border-radius: 50%; color: white; background: rgba(255,255,255,.12); }

.booking-panel {
  width: min(1220px, calc(100% - 40px));
  margin: -42px auto 0;
  padding: 35px 38px 40px;
  position: relative;
  border-radius: 19px;
  background: white;
  box-shadow: var(--shadow);
}

.section-heading, .schedule-toolbar, .operator-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.date-navigation { display: flex; align-items: center; gap: 6px; }
.date-navigation button {
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: white;
  font-weight: 600;
}
.date-navigation .date-button { min-width: 180px; }

.week-navigation {
  width: min(100%, 650px);
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  align-items: stretch;
  gap: 8px;
}

.week-arrow {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: white;
  font-size: 18px;
  font-weight: 700;
  transition: .2s ease;
}

.week-arrow:hover {
  border-color: #b7d9e9;
  color: var(--blue);
  background: var(--blue-pale);
}

.week-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.week-day {
  min-width: 0;
  padding: 7px 4px 6px;
  display: grid;
  justify-items: center;
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  background: white;
  transition: .2s ease;
}

.week-day span,
.week-day small {
  overflow: hidden;
  max-width: 100%;
  text-transform: uppercase;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.week-day span {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .06em;
}

.week-day strong {
  color: var(--ink);
  font: 700 16px "Manrope", sans-serif;
}

.week-day small {
  font-size: 8px;
  font-weight: 700;
}

.week-day:hover {
  transform: translateY(-2px);
  border-color: #b7d9e9;
  background: #f7fcfe;
}

.week-day.active {
  border-color: var(--blue);
  color: #dff3fd;
  background: var(--blue);
  box-shadow: 0 7px 18px rgba(25, 127, 189, .22);
}

.week-day.active strong { color: white; }
.week-day.special-day { position: relative; }
.week-day.special-day i {
  width: 5px;
  height: 5px;
  position: absolute;
  top: 5px;
  right: 5px;
  border-radius: 50%;
  background: var(--coral);
}
.week-day.special-day.active i { background: #ffd8cf; }
.operator-week-navigation { flex: 0 1 650px; }
.week-today-button {
  padding: 0 14px;
  min-height: 42px;
  border: 1px solid #b7d9e9;
  border-radius: 10px;
  color: var(--blue);
  background: var(--blue-pale);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: .2s ease;
}
.week-today-button:hover {
  transform: translateY(-1px);
  color: white;
  background: var(--blue);
  box-shadow: 0 7px 18px rgba(25, 127, 189, .18);
}

.room-filter { margin: 30px 0 24px; display: flex; flex-wrap: wrap; gap: 9px; }
.filter-chip {
  padding: 9px 17px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: white;
  font-size: 13px;
  font-weight: 600;
}
.filter-chip.active { border-color: var(--ink); color: white; background: var(--ink); }

.room-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.room-card { padding: 21px; border: 1px solid var(--line); border-radius: 14px; background: white; transition: .2s ease; }
.room-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(27, 46, 63, .1); }
.room-card.hidden { display: none; }
.room-card-top { display: flex; align-items: start; justify-content: space-between; gap: 10px; }
.room-number { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 10px; color: var(--blue); background: var(--blue-pale); font-weight: 800; }
.room-price { text-align: right; }
.room-price strong, .room-price small { display: block; }
.room-price strong { font: 700 17px "Manrope", sans-serif; }
.room-price small { color: var(--muted); font-size: 10px; }
.room-card h3 { margin: 17px 0 4px; font: 700 17px "Manrope", sans-serif; }
.room-card > p { min-height: 34px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.planning-heading {
  min-height: 26px;
  margin: 20px 0 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
}
.planning-heading span { font-size: 9px; font-weight: 800; letter-spacing: .07em; }
.planning-heading small { font-size: 9px; font-weight: 700; white-space: nowrap; }
.planning-legend { margin-bottom: 8px; display: flex; gap: 13px; color: var(--muted); font-size: 9px; font-weight: 600; }
.planning-legend span { display: inline-flex; align-items: center; gap: 5px; }
.planning-legend i { width: 7px; height: 7px; border-radius: 50%; }
.planning-legend i.available { background: var(--green); }
.planning-legend i.occupied { background: #aeb8bf; }
.day-slots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }
.day-slot {
  min-width: 0;
  padding: 7px 2px;
  border: 1px solid #cce4f1;
  border-radius: 6px;
  color: var(--blue-dark);
  background: #f4fbfe;
  font-size: 10px;
  font-weight: 700;
  transition: .18s ease;
}
.day-slot.available:hover { transform: translateY(-1px); color: white; border-color: var(--blue); background: var(--blue); }
.day-slot.occupied {
  cursor: not-allowed;
  border-color: #e4e7e8;
  color: #a5adb2;
  background:
    linear-gradient(135deg, transparent 46%, rgba(143, 154, 161, .18) 47%, rgba(143, 154, 161, .18) 53%, transparent 54%),
    #f4f5f5;
}
.planning-loading {
  height: 122px;
  border-radius: 9px;
  background: linear-gradient(100deg, #f1f4f5 20%, #f8fafb 40%, #f1f4f5 60%);
  background-size: 220% 100%;
  animation: planning-pulse 1.2s ease-in-out infinite;
}
.closed-day {
  min-height: 122px;
  padding: 20px;
  display: grid;
  place-content: center;
  gap: 5px;
  border: 1px dashed #d8dee1;
  border-radius: 10px;
  text-align: center;
  background: #f7f8f8;
}
.closed-day strong { font-size: 13px; }
.closed-day span { color: var(--muted); font-size: 10px; line-height: 1.4; }
@keyframes planning-pulse {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}

.info-strip {
  width: min(1220px, calc(100% - 40px));
  margin: 42px auto 55px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.info-strip > :is(div, a) {
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(218, 225, 228, .8);
  border-radius: 14px;
  background: rgba(255, 255, 255, .55);
}
.info-action-link {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.info-action-link:hover {
  transform: translateY(-2px);
  border-color: #aedbc9;
  background: white;
  box-shadow: 0 10px 25px rgba(31, 55, 73, .09);
}
.info-action-link:focus-visible { outline: 3px solid rgba(47, 139, 105, .24); outline-offset: 3px; }
.info-link-arrow { margin-left: auto; color: #2f8b69; font-size: 18px; font-weight: 700; }
.info-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 15px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.7), 0 7px 16px rgba(31, 55, 73, .08);
}
.info-icon svg { width: 25px; height: 25px; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.info-payment { color: #1376ae; background: linear-gradient(145deg, #eaf7fd, #dcedf7); }
.info-cancellation { color: #d45e49; background: linear-gradient(145deg, #fff4ef, #fbe5df); }
.info-location { color: #2f8b69; background: linear-gradient(145deg, #effaf5, #dff1e9); }
.info-phone { color: #7652a7; background: linear-gradient(145deg, #f6f0fd, #eadff8); }
.phone-arrow { color: #7652a7; }
.info-strip strong, .info-strip > :is(div, a) > div span { display: block; }
.info-strip strong { font-size: 13px; }
.info-strip > :is(div, a) > div span { margin-top: 3px; color: var(--muted); font-size: 11px; }
.info-strip > :is(div, a) > div span + span { margin-top: 2px; font-size: 9px; line-height: 1.35; }

#operatore-view { padding: 55px clamp(20px, 5vw, 76px) 70px; }
.operator-top h1 { color: var(--ink); font-size: clamp(34px, 4vw, 48px); }
.operator-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.operator-title-row h1 { margin: 0; }
.operator-guide-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 13px;
  color: var(--blue-dark);
  text-decoration: none;
  white-space: nowrap;
}
.operator-top .hero-copy { margin-top: 8px; color: var(--muted); }
.operator-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 9px; }
.operator-actions .secondary-button { padding: 12px 17px; background: white; }
.primary-button { padding: 13px 20px; border: 0; border-radius: 9px; color: white; background: var(--blue); font-weight: 700; box-shadow: 0 7px 18px rgba(25,127,189,.24); }
.primary-button:hover { background: var(--blue-dark); }

.operator-stats { margin: 35px 0 22px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.operator-stats article { padding: 19px 22px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.operator-stats small, .operator-stats strong { display: block; }
.operator-stats small { margin-bottom: 8px; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .1em; }
.operator-stats strong { font: 700 25px "Manrope", sans-serif; }
.operator-stats strong span { color: var(--muted); font-size: 13px; }
.operator-stats .availability-stat { border-color: #c6e9dc; background: #eff9f5; }
.availability-stat strong { color: var(--green); }

.schedule-panel { padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: 0 8px 24px rgba(26,47,67,.05); }
.selected-day-hours {
  margin-bottom: 18px;
  padding: 12px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8faf9;
}
.selected-day-hours small,
.selected-day-hours strong,
.selected-day-hours div span { display: block; }
.selected-day-hours small { margin-bottom: 3px; color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .09em; }
.selected-day-hours strong { font-size: 14px; }
.selected-day-hours div span { margin-top: 2px; color: var(--muted); font-size: 10px; }
.selected-day-hours.is-special { border-color: #f1d1ca; background: #fff8f6; }
.selected-day-hours.is-special strong { color: #b65441; }
.selected-day-hours.is-closed { border-color: #d9dee1; background: #f3f5f5; }
.legend { display: flex; flex-wrap: wrap; gap: 18px; color: var(--muted); font-size: 11px; }
.legend span { display: flex; align-items: center; gap: 6px; }
.legend-dot { width: 8px; height: 8px; border-radius: 50%; }
.legend-dot.confirmed { background: var(--blue); }
.legend-dot.arrived { background: var(--green); }
.legend-dot.completed { background: #c45f52; }
.legend-dot.blocked { background: #aab3bc; }
.schedule-scroll {
  margin-top: 23px;
  overflow-x: auto;
  border: 1px solid #d6dde1;
  border-radius: 11px;
  background: white;
}
.schedule {
  min-width: 960px;
  display: grid;
  grid-template-columns: 92px repeat(4, minmax(190px, 1fr));
  grid-template-rows: 58px repeat(16, 44px);
  position: relative;
}
.schedule-cell {
  min-width: 0;
  color: var(--muted);
  background: white;
  font-size: 11px;
}
.schedule-corner {
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  position: sticky;
  left: 0;
  z-index: 6;
  border-right: 1px solid #cfd7dc;
  border-bottom: 2px solid #cfd7dc;
  color: #7f8b94;
  background: #f6f8f8;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .1em;
}
.schedule-room {
  padding: 9px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-left: 1px solid #dce2e5;
  border-bottom: 2px solid #cfd7dc;
  color: var(--ink);
  background: #f9faf9;
  font-weight: 700;
}
.schedule-room > span { display: flex; align-items: center; gap: 9px; }
.schedule-room i {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--blue-dark);
  background: var(--blue-pale);
  font-style: normal;
  font-weight: 800;
}
.schedule-room small { color: #88949d; font-size: 9px; font-weight: 600; white-space: nowrap; }
.schedule-time {
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  position: sticky;
  left: 0;
  z-index: 4;
  border-right: 1px solid #cfd7dc;
  background: #f8f9f8;
  font-variant-numeric: tabular-nums;
}
.schedule-time span { padding: 3px 0; }
.schedule-time.full-hour { color: var(--ink); font-weight: 800; }
.schedule-time.half-hour { color: #7e8992; font-weight: 600; }
.schedule-slot {
  border-left: 1px solid #e0e5e8;
}
.schedule-slot.full-hour, .schedule-time.full-hour { border-top: 1px solid #cbd4d9; }
.schedule-slot.half-hour, .schedule-time.half-hour { border-top: 1px dashed #e0e5e8; }
.schedule-slot.room-column-2, .schedule-slot.room-column-4 { background: #fbfcfb; }
.schedule-event {
  margin: 4px 7px;
  padding: 9px 11px;
  z-index: 2;
  overflow: hidden;
  border: 1px solid #c8e3f1;
  border-left: 4px solid var(--blue);
  border-radius: 8px;
  color: #185f88;
  background: #eaf5fa;
  box-shadow: 0 3px 8px rgba(23, 94, 134, .08);
  font-size: 10px;
}
.schedule-event strong, .schedule-event span, .schedule-event small, .schedule-event em { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.schedule-event strong { margin-bottom: 3px; color: var(--ink); font-size: 11px; }
.schedule-event span { font-weight: 700; }
.schedule-event small { margin-top: 4px; color: currentColor; font-size: 8px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; opacity: .75; }
.booking-origin-badge {
  width: fit-content;
  max-width: 100%;
  margin-top: 5px;
  padding: 2px 6px;
  border-radius: 999px;
  color: #175f88;
  background: rgba(255, 255, 255, .68);
  font-size: 8px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.booking-origin-badge.in-person { color: #5d4e1f; background: #fff4c7; }
.booking-origin-badge.phone { color: #6c3f83; background: #f2e5fa; }
.booking-origin-badge.whatsapp { color: #126d50; background: #dff5ea; }
.booking-origin-badge.online { color: #175f88; background: #dceff9; }
.schedule-event.arrived { border-color: #bce3d4; border-left-color: var(--green); color: #28775d; background: #eaf7f2; }
.schedule-event.completed {
  border-color: #ecc4bd;
  border-left-color: #c45f52;
  color: #9b463c;
  background: #fff0ed;
  box-shadow: 0 3px 8px rgba(196, 95, 82, .1);
}
.schedule-event.completed strong { color: #5f2b25; }
.schedule-event.blocked { border-color: #d5dade; border-left-color: #9099a2; color: #65707a; background: #f0f2f3; box-shadow: none; }
.schedule-closed {
  grid-column: 1 / -1;
  display: grid;
  place-content: center;
  gap: 5px;
  color: var(--muted);
  text-align: center;
  background: #f7f8f8;
}
.schedule-closed strong { color: var(--ink); font-size: 15px; }
.schedule-closed span { font-size: 11px; }

.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 15px; visibility: hidden; opacity: 0; overflow-y: auto; transition: .2s ease; }
.modal.open { visibility: visible; opacity: 1; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(10, 22, 32, .68); backdrop-filter: blur(4px); }
.modal-card { width: min(590px, 100%); max-height: calc(100vh - 30px); overflow-y: auto; padding: 35px; position: relative; z-index: 1; border-radius: 18px; background: white; box-shadow: var(--shadow); transform: translateY(12px); transition: .2s ease; }
.modal.open .modal-card { transform: translateY(0); }
.modal-close { position: absolute; top: 18px; right: 18px; width: 34px; height: 34px; border: 0; border-radius: 50%; color: var(--muted); background: #f1f3f3; font-size: 21px; }
.modal-card h2 { margin-bottom: 26px; }
.whatsapp-demo-button {
  padding: 11px 15px 11px 10px;
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 18;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 999px;
  color: white;
  background: #168b5a;
  box-shadow: 0 12px 28px rgba(16, 92, 60, .28);
  text-align: left;
}
.whatsapp-demo-button:hover { transform: translateY(-2px); background: #11774c; }
.whatsapp-demo-button > span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #168b5a;
  background: white;
  font-size: 22px;
  font-weight: 800;
}
.whatsapp-demo-button strong,
.whatsapp-demo-button small { display: block; }
.whatsapp-demo-button strong { font-size: 11px; }
.whatsapp-demo-button small { margin-top: 2px; color: #d8f3e7; font-size: 8px; }
.whatsapp-chat {
  width: min(430px, calc(100% - 24px));
  height: min(690px, calc(100vh - 24px));
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto auto;
  overflow: hidden;
  border-radius: 18px;
  background: #efeae2;
  box-shadow: var(--shadow);
  transform: translateY(12px);
  transition: .2s ease;
}
.modal.open .whatsapp-chat { transform: translateY(0); }
.whatsapp-chat > header {
  padding: 13px 15px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  color: white;
  background: #176b56;
}
.whatsapp-chat-avatar {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #239d70;
  font-size: 11px;
  font-weight: 800;
}
.whatsapp-chat header strong,
.whatsapp-chat header span { display: block; }
.whatsapp-chat header strong { font-size: 13px; }
.whatsapp-chat header span { margin-top: 2px; color: #c8e8dc; font-size: 9px; }
.whatsapp-chat-close { width: 31px; height: 31px; border: 0; border-radius: 50%; color: white; background: rgba(255,255,255,.12); font-size: 18px; }
.whatsapp-chat-messages {
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  overflow-y: auto;
  background:
    radial-gradient(circle at 15% 20%, rgba(70, 112, 94, .045) 0 2px, transparent 3px),
    #efeae2;
  background-size: 25px 25px;
}
.whatsapp-message {
  width: fit-content;
  max-width: 84%;
  padding: 9px 11px;
  align-self: flex-start;
  border-radius: 4px 11px 11px 11px;
  color: #263a34;
  background: white;
  box-shadow: 0 1px 2px rgba(31, 51, 43, .08);
  font-size: 11px;
  line-height: 1.45;
}
.whatsapp-message.user {
  align-self: flex-end;
  border-radius: 11px 4px 11px 11px;
  background: #d8f8c9;
}
.whatsapp-chat-quick-replies {
  padding: 7px 10px;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  background: #f7f5f1;
}
.whatsapp-chat-quick-replies:empty { display: none; }
.whatsapp-chat-quick-replies button {
  padding: 7px 10px;
  flex: 0 0 auto;
  border: 1px solid #a9d7c4;
  border-radius: 999px;
  color: #126d50;
  background: white;
  font-size: 9px;
  font-weight: 700;
}
.whatsapp-chat-form {
  padding: 8px 9px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 39px;
  align-items: center;
  gap: 7px;
  background: #f3f0eb;
}
.whatsapp-chat-form input { margin: 0; border: 0; border-radius: 999px; background: white; }
.whatsapp-chat-form button {
  width: 39px;
  height: 39px;
  border: 0;
  border-radius: 50%;
  color: white;
  background: #168b5a;
}
.whatsapp-demo-notice { padding: 5px 9px 8px; color: #7b8782; background: #f3f0eb; font-size: 7px; text-align: center; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { color: var(--ink); font-size: 12px; font-weight: 700; }
label span { color: var(--muted); font-weight: 400; }
input, select, textarea { width: 100%; margin-top: 7px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: white; outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(25,127,189,.09); }
textarea { resize: vertical; }
.full-field { display: block; margin-top: 16px; }
.resident-option {
  min-height: 67px;
  margin-top: 0;
  padding: 11px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafbf9;
}
.resident-option input {
  width: 18px;
  height: 18px;
  margin: 0;
  flex: 0 0 auto;
  accent-color: var(--blue);
}
.resident-option span, .resident-option strong, .resident-option small { display: block; }
.resident-option small { margin-top: 3px; color: var(--muted); font-weight: 400; }
.resident-option:has(input:checked) { border-color: var(--blue); background: var(--blue-pale); }
.resident-option:has(input:disabled) { opacity: .58; cursor: not-allowed; }
.piano-option { margin-top: 16px; }
.piano-option:has(input:checked) { border-color: #b89adb; background: #f6f0fd; }
.piano-option input { accent-color: #7652a7; }
.equipment-options {
  margin: 16px 0 0;
  padding: 0;
  border: 0;
}
.equipment-options legend {
  width: 100%;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}
.equipment-options legend span { color: var(--muted); font-weight: 400; }
.equipment-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.equipment-option {
  min-width: 0;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafbf9;
  cursor: pointer;
}
.equipment-option input {
  width: 17px;
  height: 17px;
  margin: 0;
  flex: 0 0 auto;
  accent-color: var(--blue);
}
.equipment-option span, .equipment-option strong, .equipment-option small { display: block; }
.equipment-option strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; }
.equipment-option small { margin-top: 2px; color: var(--muted); font-size: 9px; font-weight: 400; }
.equipment-option:has(input:checked) { border-color: var(--blue); background: var(--blue-pale); }
.booking-rule {
  margin: 12px 0 0;
  padding: 9px 11px;
  border-radius: 7px;
  color: #7a5a16;
  background: #fff7df;
  font-size: 11px;
  line-height: 1.45;
}
.customer-fields { margin-top: 16px; }
.booking-error {
  margin: 14px 0 0;
  padding: 10px 12px;
  border: 1px solid #f1c7bf;
  border-radius: 7px;
  color: #a43f2d;
  background: #fff1ee;
  font-size: 11px;
  line-height: 1.45;
}
.booking-error.success-message {
  border-color: #bfe2d4;
  color: #28775d;
  background: #edf8f4;
}
.form-highlight {
  animation: formPulse 1.4s ease;
}
@keyframes formPulse {
  0%, 100% { box-shadow: none; }
  20%, 70% { box-shadow: 0 0 0 4px rgba(36, 133, 194, .16); }
}
.hidden { display: none !important; }
.price-summary { margin: 22px 0 16px; padding: 15px 17px; display: flex; align-items: center; justify-content: space-between; border-radius: 9px; background: var(--blue-pale); }
.price-summary small, .price-summary strong { display: block; }
.price-summary small { color: var(--muted); font-size: 9px; letter-spacing: .1em; }
.price-summary strong { margin-top: 2px; font: 800 23px "Manrope", sans-serif; }
.price-summary .price-detail { margin-top: 2px; color: var(--muted); font-size: 10px; font-weight: 500; }
.price-summary > span { color: var(--blue-dark); font-size: 12px; font-weight: 700; }
.submit-button { width: 100%; }
.login-card { width: min(450px, calc(100% - 30px)); }
.login-copy { margin: -12px 0 22px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.login-card .submit-button { margin-top: 18px; }
.login-card,
.detail-card,
.special-hours-card {
  max-height: none;
  overflow: visible;
}
.login-card.compact-card,
.login-card {
  padding: 26px;
}
.login-card h2,
.detail-card h2,
.special-hours-card h2 {
  margin-bottom: 18px;
}
.login-card .form-grid,
.special-hours-card .form-grid {
  gap: 10px;
}
.login-card label,
.special-hours-card label {
  font-size: 11px;
}
.login-card input,
.login-card select,
.login-card textarea,
.special-hours-card input,
.special-hours-card select,
.special-hours-card textarea {
  margin-top: 5px;
  padding: 9px 10px;
}
.login-card .full-field,
.special-hours-card .full-field {
  margin-top: 10px;
}
.login-card .booking-error {
  margin-top: 9px;
  padding: 8px 10px;
}
.login-card .submit-button {
  margin-top: 12px;
  padding: 11px 16px;
}
.customer-auth-card { width: min(540px, calc(100% - 30px)); }
.auth-switch {
  margin: -10px 0 20px;
  padding: 4px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  border-radius: 10px;
  background: #eef0ee;
}
.auth-switch-button {
  padding: 9px 12px;
  border: 0;
  border-radius: 7px;
  color: var(--muted);
  background: transparent;
  font-weight: 700;
}
.auth-switch-button.active {
  color: var(--ink);
  background: white;
  box-shadow: 0 2px 7px rgba(21, 38, 53, .08);
}
.customer-auth-form .login-copy { margin: 0 0 18px; }
.customer-register-grid { margin-top: 16px; }
.field-hint { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; font-weight: 400; }
.login-options {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.remember-option {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
}
.remember-option input {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: var(--blue);
}
.show-password-option {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}
.show-password-option input {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: var(--blue);
}
.text-button {
  padding: 0;
  border: 0;
  color: var(--blue-dark);
  background: transparent;
  font-size: 11px;
  font-weight: 700;
}
.text-button:hover { text-decoration: underline; }
.password-manager-note { margin: 10px 0 0; color: var(--muted); font-size: 10px; line-height: 1.4; }
.auth-back-button { margin-top: 16px; }
.auth-success {
  margin-top: 14px;
  padding: 11px 12px;
  border: 1px solid #bfe2d4;
  border-radius: 8px;
  color: #28775d;
  background: #edf8f4;
  font-size: 11px;
  line-height: 1.5;
}
.auth-success a { display: inline-block; margin-top: 7px; color: var(--blue-dark); font-weight: 700; }
.account-profile {
  padding: 17px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fafbf9;
}
.account-profile > span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: white;
  background: var(--blue);
  font-weight: 800;
}
.account-profile strong, .account-profile div span { display: block; }
.account-profile div span { margin-top: 3px; color: var(--muted); font-size: 11px; }
.account-copy { margin: 17px 0; }
.account-bookings-heading {
  margin: 20px 0 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.account-bookings-heading span { color: var(--muted); font-size: 10px; }
.customer-bookings {
  max-height: 250px;
  margin-bottom: 14px;
  display: grid;
  gap: 8px;
  overflow-y: auto;
}
.customer-booking-item {
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fafbf9;
}
.customer-booking-item small,
.customer-booking-item strong,
.customer-booking-item div span { display: block; }
.customer-booking-item small {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 9px;
  text-transform: capitalize;
}
.customer-booking-item strong { font-size: 12px; }
.customer-booking-item div span { margin-top: 4px; color: var(--muted); font-size: 10px; }
.customer-booking-status {
  padding: 5px 7px;
  flex: 0 0 auto;
  border-radius: 999px;
  color: #217354;
  background: #e5f4ee;
  font-size: 9px;
  font-weight: 800;
}
.customer-booking-side {
  display: grid;
  justify-items: end;
  gap: 8px;
}
.customer-booking-actions { display: flex; gap: 6px; }
.customer-booking-actions button {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--blue-dark);
  background: white;
  font-size: 9px;
  font-weight: 700;
}
.customer-booking-actions button:last-child { color: #a6402f; }
.customer-booking-actions button:hover { border-color: #b7d9e9; background: var(--blue-pale); }
.customer-booking-locked {
  max-width: 130px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.35;
  text-align: right;
}
.customer-bookings-empty {
  padding: 17px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  color: var(--muted);
  text-align: center;
}
.customer-bookings-empty strong,
.customer-bookings-empty span { display: block; }
.customer-bookings-empty strong { color: var(--ink); font-size: 12px; }
.customer-bookings-empty span { margin-top: 4px; font-size: 10px; }
.account-logout { width: 100%; }
.detail-card { width: min(560px, calc(100% - 30px)); }
.special-hours-card { width: min(650px, calc(100% - 30px)); }
.notifications-card { width: min(680px, calc(100% - 30px)); }
.customers-card { width: min(980px, calc(100% - 30px)); }
.reports-card { width: min(860px, calc(100% - 30px)); }
.reports-toolbar {
  margin: -7px 0 18px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}
.reports-toolbar label { width: min(260px, 100%); }
.report-content { min-height: 300px; }
.report-heading {
  margin-bottom: 13px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 15px;
}
.report-heading small,
.report-heading strong { display: block; }
.report-heading small { margin-bottom: 3px; color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .09em; }
.report-heading strong { font-size: 17px; text-transform: capitalize; }
.report-heading > span { color: var(--muted); font-size: 10px; }
.report-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.report-stats article { padding: 13px; border: 1px solid var(--line); border-radius: 9px; background: #fafbf9; }
.report-stats article.pending { border-color: #efd7a1; background: #fff9e9; }
.report-stats small,
.report-stats strong { display: block; }
.report-stats small { margin-bottom: 5px; color: var(--muted); font-size: 7px; font-weight: 800; letter-spacing: .07em; }
.report-stats strong { font-size: 18px; }
.report-total {
  margin: 9px 0 18px;
  padding: 11px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 8px;
  color: var(--blue-dark);
  background: var(--blue-pale);
}
.report-total span { font-size: 10px; }
.report-total strong { font-size: 16px; }
.report-tables { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; }
.report-tables h3 { margin: 0 0 7px; font-size: 12px; }
.report-table { overflow: hidden; border: 1px solid var(--line); border-radius: 8px; }
.report-row {
  min-height: 37px;
  padding: 8px 10px;
  display: grid;
  grid-template-columns: minmax(100px, 1fr) 52px 52px 75px;
  align-items: center;
  gap: 6px;
  border-top: 1px solid var(--line);
  font-size: 9px;
}
.report-row:first-child { border-top: 0; }
.report-row > :not(:first-child) { text-align: right; }
.report-row-heading { color: var(--muted); background: #f5f7f7; font-size: 7px; font-weight: 800; text-transform: uppercase; }
.profile-report-table .report-row { grid-template-columns: minmax(90px, 1fr) 55px 55px; }
.customers-search {
  margin: -7px 0 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.customers-search input { margin: 0; }
.customers-search span { min-width: max-content; color: var(--muted); font-size: 10px; }
.customers-layout {
  min-height: 480px;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.customers-list {
  max-height: 520px;
  padding: 9px;
  display: grid;
  align-content: start;
  gap: 6px;
  overflow-y: auto;
  border-right: 1px solid var(--line);
  background: #f7f9f8;
}
.customer-list-item {
  width: 100%;
  padding: 10px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: var(--ink);
  background: transparent;
  text-align: left;
}
.customer-list-item:hover { border-color: #cfe3ed; background: white; }
.customer-list-item.active { border-color: #a8d3e7; background: var(--blue-pale); }
.customer-list-item > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--blue);
  font-size: 10px;
  font-weight: 800;
}
.customer-list-item strong,
.customer-list-item small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.customer-list-item strong { font-size: 11px; }
.customer-list-item small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.customer-list-item i {
  padding: 3px 5px;
  border-radius: 999px;
  color: #28775d;
  background: #e5f4ee;
  font-size: 7px;
  font-style: normal;
  font-weight: 800;
  text-transform: uppercase;
}
.customer-list-item i.membership-list-status.pending { color: #7c651f; background: #fff3cb; }
.customer-list-item i.membership-list-status.expired { color: #a6402f; background: #fff0ed; }
.membership-request-option {
  margin: 13px 0 4px;
  padding: 12px;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  border: 1px solid #b9dce9;
  border-radius: 9px;
  background: var(--blue-pale);
}
.membership-request-option input { width: auto; margin: 2px 0 0; }
.membership-request-option strong,
.membership-request-option small { display: block; }
.membership-request-option strong { font-size: 10px; }
.membership-request-option small { margin-top: 3px; color: var(--muted); font-size: 9px; line-height: 1.4; }
.membership-card {
  margin: 13px 0 18px;
  padding: 13px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #eadcae;
  border-radius: 10px;
  background: #fff9e7;
}
.membership-card > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: #7c651f;
  background: #fff0b9;
}
.membership-card small,
.membership-card strong,
.membership-card p,
.membership-card em { display: block; }
.membership-card small { color: var(--muted); font-size: 7px; font-weight: 800; letter-spacing: .08em; }
.membership-card strong { margin-top: 3px; font-size: 12px; }
.membership-card p { margin: 3px 0 0; color: var(--muted); font-size: 9px; line-height: 1.4; }
.membership-card em { margin-top: 5px; color: var(--blue-dark); font-size: 9px; font-style: normal; font-weight: 800; }
.membership-card.active { border-color: #b9dfd1; background: #edf8f4; }
.membership-card.active > span { color: #28775d; background: #d9f0e8; }
.membership-card.expired { border-color: #efc5bd; background: #fff0ed; }
.membership-card.expired > span { color: #a6402f; background: #f9dcd6; }
.operator-membership-panel {
  margin: 15px 0;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fafbf9;
}
.operator-membership-heading {
  margin-bottom: 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.operator-membership-heading small,
.operator-membership-heading strong { display: block; }
.operator-membership-heading small { color: var(--muted); font-size: 7px; font-weight: 800; letter-spacing: .07em; }
.operator-membership-heading > span { color: var(--muted); font-size: 8px; }
.membership-status { margin-top: 3px; color: #7c651f; font-size: 12px; }
.membership-status.active { color: #28775d; }
.membership-status.expired { color: #a6402f; }
.operator-membership-panel .form-grid { grid-template-columns: .8fr 1fr 1fr; }
.operator-membership-panel label { font-size: 8px; }
.operator-membership-panel input,
.operator-membership-panel select { margin-top: 5px; }
.membership-missing {
  margin: 15px 0;
  padding: 11px;
  border: 1px dashed var(--line);
  border-radius: 8px;
}
.membership-missing strong,
.membership-missing span { display: block; }
.membership-missing strong { font-size: 10px; }
.membership-missing span { margin-top: 3px; color: var(--muted); font-size: 9px; }
.customer-operator-detail { max-height: 520px; padding: 20px; overflow-y: auto; }
.customer-detail-placeholder {
  min-height: 100%;
  display: grid;
  place-content: center;
  gap: 5px;
  color: var(--muted);
  text-align: center;
}
.customer-detail-placeholder strong { color: var(--ink); font-size: 13px; }
.customer-detail-placeholder span { font-size: 10px; }
.operator-customer-profile { display: flex; align-items: center; gap: 11px; }
.operator-customer-profile > span {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--blue);
  font-weight: 800;
}
.operator-customer-profile strong,
.operator-customer-profile small { display: block; }
.operator-customer-profile small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.operator-customer-contacts { margin: 14px 0; display: flex; flex-wrap: wrap; gap: 7px; }
.operator-customer-contacts a {
  padding: 6px 8px;
  border-radius: 7px;
  color: var(--blue-dark);
  background: var(--blue-pale);
  font-size: 9px;
  font-weight: 700;
  text-decoration: none;
}
.operator-customer-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.operator-customer-stats div { padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: #fafbf9; }
.operator-customer-stats small,
.operator-customer-stats strong { display: block; }
.operator-customer-stats small { margin-bottom: 4px; color: var(--muted); font-size: 7px; font-weight: 800; letter-spacing: .06em; }
.operator-customer-stats strong { font-size: 15px; }
.customer-internal-notes { margin-top: 14px; display: block; }
.customer-notes-save { margin-top: 8px; }
.customer-history-heading { margin: 19px 0 8px; display: flex; justify-content: space-between; }
.customer-history-heading span { color: var(--muted); font-size: 10px; }
.customer-history { display: grid; gap: 6px; }
.customer-history article {
  padding: 9px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.customer-history small,
.customer-history strong { display: block; }
.customer-history small { margin-bottom: 3px; color: var(--muted); font-size: 8px; text-transform: capitalize; }
.customer-history strong { font-size: 10px; }
.customer-history article > span { padding: 4px 6px; border-radius: 999px; color: var(--blue-dark); background: var(--blue-pale); font-size: 7px; font-weight: 800; text-transform: uppercase; }
.customer-history article > span.cancelled { color: #a6402f; background: #fff0ed; }
.customer-history article > span.completed { color: #28775d; background: #e5f4ee; }
.notifications-card > .primary-button { width: 100%; }
.notifications-list { max-height: 360px; display: grid; gap: 8px; overflow-y: auto; }
.notification-item {
  padding: 12px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fafbf9;
}
.notification-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--blue-dark);
  background: var(--blue-pale);
}
.notification-item small,
.notification-item strong,
.notification-item div > span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notification-item small { margin-bottom: 3px; color: var(--muted); font-size: 8px; text-transform: uppercase; }
.notification-item strong { font-size: 12px; }
.notification-item div > span { margin-top: 3px; color: var(--muted); font-size: 10px; }
.notification-status {
  padding: 5px 7px;
  border-radius: 999px;
  color: #7c651f;
  background: #fff3cb;
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
}
.notification-status.sent { color: #28775d; background: #e5f4ee; }
.notification-status.failed { color: #a6402f; background: #fff0ed; }
.special-hours-times { margin-top: 16px; }
.special-hours-list-heading {
  margin: 25px 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.special-hours-list-heading span { color: var(--muted); font-size: 10px; }
.special-hours-list { max-height: 275px; display: grid; gap: 8px; overflow-y: auto; }
.special-hours-item {
  padding: 12px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fafbf9;
}
.special-hours-item small,
.special-hours-item strong,
.special-hours-item div > span { display: block; }
.special-hours-item small { margin-bottom: 3px; color: var(--muted); font-size: 9px; text-transform: capitalize; }
.special-hours-item strong { font-size: 13px; }
.special-hours-item div > span { margin-top: 3px; color: var(--muted); font-size: 10px; }
.special-hours-item > div:last-child { display: flex; gap: 11px; }
.special-hours-delete { color: #a6402f; }
.special-hours-empty {
  padding: 20px;
  border: 1px dashed var(--line);
  border-radius: 9px;
  color: var(--muted);
  text-align: center;
}
.special-hours-empty strong,
.special-hours-empty span { display: block; }
.special-hours-empty strong { color: var(--ink); font-size: 12px; }
.special-hours-empty span { margin-top: 4px; font-size: 10px; }
.booking-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.detail-item {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fafbf9;
}
.detail-item.wide { grid-column: 1 / -1; }
.detail-item small, .detail-item strong { display: block; }
.detail-item small { margin-bottom: 4px; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .08em; }
.detail-item strong { font-size: 13px; }
.detail-item span { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; }
.detail-item.adjusted-price-detail {
  border-color: #eadcae;
  background: #fff9e7;
}
.detail-item.adjusted-price-detail small { color: #7c651f; }
.payment-complete-reminder {
  border-color: #c6e9dc;
  background: #eff9f5;
}
.payment-complete-reminder small,
.payment-complete-reminder strong { color: #28775d; }
.detail-actions { margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.secondary-button, .danger-button {
  padding: 11px 13px;
  border-radius: 8px;
  background: white;
  font-weight: 700;
}
.secondary-button { border: 1px solid var(--line); color: var(--ink); }
.secondary-button:hover { border-color: var(--blue); color: var(--blue-dark); background: var(--blue-pale); }
.danger-button { grid-column: 1 / -1; border: 1px solid #efc5bd; color: #a6402f; }
.danger-button:hover { background: #fff0ed; }
.secondary-button:disabled, .danger-button:disabled { opacity: .45; cursor: not-allowed; }
.schedule-event { cursor: pointer; text-align: left; font-family: inherit; }

.toast { position: fixed; right: 25px; bottom: 25px; z-index: 60; min-width: 315px; padding: 16px; display: flex; align-items: center; gap: 12px; border-radius: 11px; color: white; background: var(--ink); box-shadow: var(--shadow); transform: translateY(120px); opacity: 0; transition: .35s ease; }
.toast.show { transform: translateY(0); opacity: 1; }
.toast > span { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 50%; background: var(--green); }
.toast strong, .toast small { display: block; }
.toast small { margin-top: 3px; color: #afbec8; }
.toast-action {
  margin-left: auto;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 999px;
  color: white;
  background: rgba(255, 255, 255, .12);
  font-size: 9px;
  font-weight: 800;
}
.toast-action:hover { background: rgba(255, 255, 255, .2); }

.wide-operator-card { width: min(1040px, calc(100% - 30px)); }
.membership-form-card { width: min(840px, calc(100% - 30px)); }
.operator-modal-heading {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.operator-modal-heading h2 { margin-bottom: 4px; }
.operator-modal-heading .login-copy { margin: 0; }
.membership-register-tools {
  margin: -7px 0 15px;
  padding: 12px;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  align-items: end;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fafb;
}
.membership-register-tools label {
  color: var(--muted);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.membership-register-tools input {
  margin-top: 6px;
  background: white;
}
.membership-register-tools > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.membership-prefill {
  margin-bottom: 17px;
  padding: 13px;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  align-items: end;
  gap: 14px;
  border: 1px solid #b9dce9;
  border-radius: 10px;
  background: var(--blue-pale);
}
.membership-prefill label { font-size: 9px; font-weight: 800; }
.membership-prefill input { margin-top: 5px; background: white; }
.membership-prefill > div:not(.membership-search-results) {
  display: flex;
  align-items: center;
  gap: 10px;
}
.membership-prefill > div:not(.membership-search-results) span { color: var(--muted); font-size: 9px; line-height: 1.4; }
.membership-search-results {
  grid-column: 1 / -1;
  display: grid;
  gap: 6px;
}
.payment-user-results {
  margin-top: 8px;
  display: grid;
  gap: 6px;
}
.membership-search-results > span,
.payment-user-results > span {
  color: var(--muted);
  font-size: 9px;
}
.membership-search-results button,
.payment-user-results button {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  text-align: left;
  background: white;
  cursor: pointer;
}
.membership-search-results button:hover,
.payment-user-results button:hover { border-color: var(--blue); background: #f8fcff; }
.membership-search-results strong,
.membership-search-results small,
.payment-user-results strong,
.payment-user-results small { display: block; }
.membership-search-results strong,
.payment-user-results strong { font-size: 10px; }
.membership-search-results small,
.payment-user-results small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.membership-form-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
.membership-form-grid .span-2 { grid-column: span 2; }
.data-table-list {
  overflow-x: scroll;
  overflow-y: auto;
  padding-bottom: 12px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  scrollbar-gutter: stable both-edges;
}
#memberships-list,
#cash-ledger-recent-list,
#cash-ledger-full-list {
  max-height: 420px;
}
#cash-ledger-list {
  max-height: 260px;
}
#cash-ledger-full-list {
  max-height: 520px;
}
.data-table-row {
  min-width: 700px;
  min-height: 48px;
  padding: 9px 12px;
  display: grid;
  grid-template-columns: 85px 1.4fr 1.3fr 110px;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--line);
  font-size: 10px;
}
.data-table-row.membership-register-row {
  min-width: 1540px;
  grid-template-columns: 76px 1.05fr 1fr .95fr 1.4fr 1.15fr 1.15fr .75fr 86px;
  align-items: start;
}
.membership-register-row > span,
.membership-register-row > strong {
  height: 100%;
  min-height: 48px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 1px solid var(--line);
  min-width: 0;
  line-height: 1.35;
}
.membership-register-row > :first-child { border-left: 0; }
.membership-register-row.data-table-heading > span,
.membership-register-row.data-table-heading > strong {
  min-height: 34px;
}
.cancelled-membership-row {
  background: #fff4f4;
}
.membership-register-row > .cancelled-membership-number {
  color: #d31818;
}
.cancelled-membership-number small,
.cancelled-membership-note {
  color: #d31818 !important;
  font-weight: 900;
  letter-spacing: .08em;
}
.qa-status-cell > strong {
  display: block;
  font-size: 10px;
}
.qa-status-cell > i {
  margin-top: 5px;
  width: 100%;
  height: 7px;
  display: block;
  overflow: hidden;
  border-radius: 999px;
  background: #e6edf1;
}
.qa-status-cell > i > b {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--green));
}
.qa-status-cell .qa-completed-badge {
  width: max-content;
  margin-top: 7px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #1f6f4d;
  background: #d9f0e8;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .08em;
}
.data-table-row:first-child { border-top: 0; }
.data-table-row small { display: block; margin-top: 3px; color: var(--muted); font-size: 8px; }
.data-table-heading {
  min-height: 34px;
  color: var(--muted);
  background: #f5f7f7;
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
}
.cash-ledger-tools { display: flex; align-items: center; gap: 8px; }
.cash-ledger-tools input { margin: 0; }
.cash-ledger-export-tools {
  margin: 12px 0 14px;
  padding: 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fafb;
}
.cash-ledger-export-tools label {
  min-width: 135px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.cash-ledger-export-tools input { margin-top: 5px; }
.cash-ledger-totals {
  margin-bottom: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 7px;
}
.cash-ledger-totals div { padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: #fafbf9; }
.cash-ledger-totals .cash-balance-total { border-color: #b9dfd1; background: #edf8f4; }
.cash-ledger-totals small,
.cash-ledger-totals strong { display: block; }
.cash-ledger-totals small { min-height: 20px; color: var(--muted); font-size: 7px; font-weight: 800; }
.cash-ledger-totals strong { margin-top: 4px; font-size: 14px; }
.ledger-section-title {
  margin: 16px 0 8px;
  color: var(--ink);
  font-size: 13px;
}
.full-ledger-section {
  margin-top: 16px;
  padding-top: 2px;
  border-top: 1px dashed var(--line);
}
.full-ledger-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}
.full-ledger-heading .ledger-section-title { margin-bottom: 3px; }
.full-ledger-heading .login-copy { margin: 0 0 8px; }
.cash-table-row {
  min-width: 1140px;
  min-height: 46px;
  display: grid;
  grid-template-columns: 70px 1.5fr 110px 90px 90px 90px 1.1fr 88px;
  align-items: center;
  border-top: 1px solid var(--line);
  font-size: 9px;
}
.cash-table-row.cash-table-row-with-date {
  min-width: 1270px;
  grid-template-columns: 95px 70px 1.5fr 110px 90px 90px 90px 1.1fr 88px;
}
.cash-table-row:first-child { border-top: 0; }
.cash-table-row > * {
  height: 100%;
  min-height: 46px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 1px solid var(--line);
}
.cash-table-row > :first-child { border-left: 0; }
.cash-table-row small { display: block; margin-top: 3px; color: var(--muted); font-size: 8px; }
.cash-table-row > :last-child { align-items: flex-end; text-align: right; }
.cash-table-heading { min-height: 32px; color: var(--muted); background: #f5f7f7; font-size: 7px; font-weight: 800; text-transform: uppercase; }
.cash-table-heading > * { min-height: 32px; }
.cash-table-row strong.in { color: #28775d; }
.cash-table-row strong.out { color: #a6402f; }
.tiny-action-button {
  width: max-content;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--blue-dark);
  background: white;
  font-size: 8px;
  font-weight: 800;
  cursor: pointer;
}
.tiny-action-button:hover { border-color: var(--blue); background: var(--blue-pale); }
.tiny-action-button.danger { color: #a6402f; border-color: #efc5bd; }
.tiny-action-button.danger:hover { background: #fff0ed; border-color: #d98d7f; }
.payment-breakdown {
  margin: 10px 0;
  padding: 10px;
  border: 1px solid #b9dfd1;
  border-radius: 9px;
  background: #edf8f4;
}
.payment-breakdown strong,
.payment-breakdown span,
.payment-breakdown em { display: block; }
.payment-breakdown strong { font-size: 13px; }
.payment-breakdown span { margin-top: 4px; color: var(--muted); font-size: 10px; }
.payment-breakdown em { margin-top: 8px; color: #7c651f; font-size: 10px; font-style: normal; font-weight: 800; }
.payment-breakdown.warning { border-color: #eadcae; background: #fff9e7; }
.payment-breakdown.split { border-color: #eadcae; background: #fff9e7; }
.payment-membership-button { margin-top: 10px; }

@media (max-width: 900px) {
  .room-grid { grid-template-columns: 1fr 1fr; }
  .info-strip { grid-template-columns: 1fr 1fr; }
  .hero { align-items: stretch; flex-direction: column; }
  .next-booking { align-self: end; }
  .operator-stats { grid-template-columns: 1fr 1fr; }
  .cash-ledger-totals { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 650px) {
  .site-header { height: 70px; padding: 0 10px; grid-template-columns: 1fr auto auto; gap: 6px; }
  .brand img { width: 84px; height: 54px; }
  .profile-copy { display: none; }
  .profile-button { display: flex; padding: 0; }
  .profile-button > span:first-child { width: 30px; height: 30px; }
  .mode-switch { justify-self: end; }
  .mode-button { min-width: auto; padding: 8px; font-size: 11px; }
  main { min-height: calc(100vh - 70px); }
  .hero { padding: 48px 20px 76px; }
  .booking-panel { width: calc(100% - 22px); padding: 25px 18px 24px; }
  .section-heading, .schedule-toolbar, .operator-top { align-items: stretch; flex-direction: column; }
  .date-navigation { width: 100%; }
  .date-navigation .date-button { flex: 1; min-width: 0; padding-inline: 6px; }
  .week-navigation { width: 100%; grid-template-columns: 34px minmax(0, 1fr) 34px; gap: 5px; }
  .operator-week-navigation { flex: none; }
  .week-days { gap: 3px; }
  .week-day { padding: 6px 1px 5px; border-radius: 8px; }
  .week-day span { font-size: 8px; letter-spacing: 0; }
  .week-day strong { font-size: 15px; }
  .week-day small { font-size: 7px; }
  .room-filter { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 3px; }
  .filter-chip { white-space: nowrap; }
  .room-grid { grid-template-columns: 1fr; }
  .room-card > p { min-height: auto; }
  .info-strip { grid-template-columns: 1fr; gap: 18px; }
  #operatore-view { padding: 35px 14px 50px; }
  .operator-actions { width: 100%; align-items: stretch; flex-direction: column; }
  .operator-actions :is(.primary-button, .secondary-button) { width: 100%; }
  .operator-stats { grid-template-columns: 1fr 1fr; gap: 9px; }
  .operator-stats article { padding: 15px; }
  .schedule-panel { padding: 15px; }
  .form-grid { grid-template-columns: 1fr; }
  .equipment-grid { grid-template-columns: 1fr; }
  .login-options { align-items: flex-start; flex-direction: column; }
  .modal-card { padding: 30px 20px; }
  .operator-modal-heading { align-items: stretch; flex-direction: column; }
  .membership-register-tools { grid-template-columns: 1fr; }
  .membership-register-tools > div { justify-content: flex-start; }
  .cash-ledger-tools { align-items: stretch; flex-direction: column; }
  .membership-prefill { grid-template-columns: 1fr; }
  .membership-form-grid { grid-template-columns: 1fr; }
  .membership-form-grid .span-2 { grid-column: auto; }
  .cash-ledger-totals { grid-template-columns: 1fr 1fr; }
  .customer-booking-item { align-items: flex-start; flex-direction: column; }
  .customer-booking-side { width: 100%; justify-items: start; }
  .customer-booking-locked { max-width: none; text-align: left; }
  .special-hours-item { align-items: flex-start; flex-direction: column; }
  .notification-item { grid-template-columns: auto minmax(0, 1fr); }
  .notification-status { grid-column: 2; justify-self: start; }
  .customers-layout { min-height: 0; grid-template-columns: 1fr; }
  .customers-list { max-height: 230px; border-right: 0; border-bottom: 1px solid var(--line); }
  .customer-operator-detail { max-height: 430px; }
  .reports-toolbar, .report-heading { align-items: stretch; flex-direction: column; }
  .reports-toolbar label, .reports-toolbar .secondary-button { width: 100%; }
  .report-stats { grid-template-columns: 1fr 1fr; }
  .report-tables { grid-template-columns: 1fr; }
  .toast { right: 12px; bottom: 12px; left: 12px; min-width: 0; }
  .whatsapp-demo-button { right: 12px; bottom: 12px; padding-right: 10px; }
  .whatsapp-demo-button div { display: none; }
  .whatsapp-chat { height: calc(100vh - 16px); }
}
