﻿
.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 12, 20, 1);
  z-index: 1000;
}
#adminBookingModal {
    z-index: 7000 !important;
  }
body.admin-modal-open .admin-shell {
  pointer-events: none;
  user-select: none;
}

body.admin-modal-open #adminBookingModal {
  pointer-events: auto;
}

body.admin-modal-open #adminNoteModal {
  pointer-events: auto;
}

body.admin-modal-open #adminSmsComposeModal {
  pointer-events: auto;
}
.modal-window-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-window-btn {
  min-width: 42px;
  min-height: 42px;
  padding: 0 12px;
  font-size: 1.2rem;
  line-height: 1;
}

.modal-mini-title {
  margin-top: 6px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
}

#adminBookingModal.is-minimized {
  align-items: flex-end;
  justify-content: flex-end;
  padding: 16px;
  background: transparent;
  pointer-events: none;
}

#adminBookingModal.is-minimized .book-modal {
  width: min(380px, calc(100vw - 24px));
  max-width: 380px;
  min-height: 0;
  max-height: none;
  margin: 0;
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(22, 18, 24, 0.28);
  pointer-events: auto;
}

#adminBookingModal.is-minimized .book-grid,
#adminBookingModal.is-minimized #modalMessage,
#adminBookingModal.is-minimized .book-actions {
  display: none;
}

#adminBookingModal.is-minimized .modal-header {
  margin-bottom: 0;
  cursor: grab;
}

#adminBookingModal.is-minimized .modal-header:active {
  cursor: grabbing;
}

@font-face {
  font-family: "Ryanair TM";
  src: local("Ryanair TM"), local("RyanairTM");
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg-dark: #1b1416;
  --bg-accent: #2b1f23;
  --surface: #fff8fb;
  --surface-soft: #f9eef2;
  --ink: #2a1d22;
  --ink-soft: #6b5b63;
  --rose: #f7e3ea;
  --rose-strong: #e9b7c9;
  --champagne: #e9d6c0;
  --gold: #c79a9a;
  --gold-soft: #e8cfd7;
  --line: #ead4dc;
  --danger: #b43b4f;
  --success: #2f6a42;
  --shadow: 0 20px 44px rgba(0, 0, 0, 0.18);
  --header-h: 92px;
  --header-h-mobile: 84px;
  --space-sm: 12px;
  --space-md: 16px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Lato", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background:
    radial-gradient(circle at 12% 10%, rgba(233, 183, 201, 0.22), transparent 38%),
    radial-gradient(circle at 88% 12%, rgba(255, 255, 255, 0.32), transparent 28%),
    linear-gradient(160deg, #1a1215 0%, var(--bg-dark) 50%, var(--bg-accent) 100%);
}

.page {
  min-height: 100vh;
  padding: 0;
}

.card {
  width: 100%;
  min-height: 100vh;
  background: linear-gradient(180deg, #fff8fb 0%, var(--surface) 100%);
  border: 0;
  box-shadow: none;
  display: grid;
  row-gap: 0;
  padding: 0 0 32px;
  position: relative;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, #8a6a3d 0%, var(--gold) 42%, var(--gold-soft) 78%, #8a6a3d 100%);
}

.header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--header-h);
  min-height: var(--header-h);
  display: flex;
  justify-content: space-between;
  align-items: center;
   gap: var(--space-sm);
  flex-wrap: nowrap;
  padding: 0 clamp(16px, 4vw, 56px);
  border-bottom: 1px solid #ede2d4;
  background: rgba(255, 248, 251, 0.96);
  backdrop-filter: blur(6px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
}

.brand {
  display: grid;
  gap: 5px;
}

.logo {
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  font-weight: 900;
  text-transform: uppercase;
  color: #c79a9a;
}

.logo::after {
  content: "";
  display: block;
  width: 56px;
  height: 2px;
  margin-top: 6px;
  border-radius: 99px;
  background: linear-gradient(90deg, #7f6035, var(--gold-soft));
}

h1, h2, h3 {
  margin: 0;
  font-family: "Ryanair TM", "RyanairTM", "Lato", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: clamp(1.3rem, 1.8vw, 1.7rem);
  line-height: 1.1;
  font-weight: 700;
  color: #2d241e;
}

.section-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #6f5531;
}

.actions {
  display: flex;
  gap: 9px;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
  overflow-x: auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  touch-action: pan-x;
  max-width: 68vw;
  scrollbar-width: thin;
}

.actions .tab-btn,
.actions button,
.actions .link-btn {
  width: auto;
  flex: 0 0 auto;
}

.account-actions {
  max-width: none;
  overflow: visible;
  touch-action: manipulation;
}

.account-menu {
  position: relative;
  flex: 0 0 auto;
}

.account-menu-list {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 80;
  min-width: 230px;
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid #e9d4db;
  border-radius: 12px;
  background: #fff8fb;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.16);
}

.account-menu:not(.open) .account-menu-list {
  display: none;
}

.account-menu-list .tab-btn {
  display: block;
  width: 100%;
  text-align: left;
}

.tab-btn,
button,
.link-btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 12px 16px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  background:linear-gradient(180deg, #f3d6df 0%, #dca8b9 100%);
  color: #2e241e;
  box-shadow: 0 8px 15px rgba(22, 16, 12, 0.26);
  transition: transform 0.16s ease, filter 0.16s ease, border-color 0.16s ease;
}

.tab-btn:hover,
button:hover,
.link-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.tab-btn:disabled,
button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
  filter: grayscale(0.2);
  box-shadow: none;
  transform: none;
  background: #d9cfc3;
  color: #6f5f4a;
  border-color: #cdbfae;
}

.tab-btn.active {
  color: #2e241e;
  border-color: #cfb186;
  background: linear-gradient(180deg, #f3d6df 0%, #dca8b9 100%);
  box-shadow: 0 8px 16px rgba(181, 141, 88, 0.34);
}


 .card > .tab-panel:not(.hidden) + .tab-panel:not(.hidden) {
  margin-top: var(--space-sm);
}
.tab-panel {
  width: min(1360px, calc(100% - clamp(16px, 8vw, 112px)));
  margin-inline: auto;
  display: grid;
   gap: var(--space-sm);
  padding: var(--space-sm) clamp(14px, 2vw, 24px) var(--space-md);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, #fffefb 0%, #f9f5ef 100%);
}

.hidden {
  display: none;
}

.form {
  display: grid;
  gap: 12px;
}

.row {
  display: grid;
  gap: 6px;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px;
}

.checkbox-list {
  max-height: 240px;
  overflow-x: auto;
  overflow-y: auto;
  border: 1px solid #e3d2bb;
  border-radius: 12px;
  background: #fffaf4;
  padding: 8px;
  display: grid;
  gap: 6px;
}

.checkbox-list .check-item {
  background: #fffdf9;
}

.check-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid #e3d2bb;
  background: #fffaf4;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0.01em;
}

.check-item input {
  width: auto;
}

.week-grid {
  display: grid;
  gap: 8px;
}

.week-row {
  display: grid;
  grid-template-columns: 90px repeat(2, minmax(0, 1fr));
  gap: 8px;
  align-items: center;
}

.time-select {
  min-width: 120px;
}

label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

input,
select {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #e3c3cf;
  border-radius: 9px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.82rem;
}

input:focus,
select:focus,
button:focus-visible,
.tab-btn:focus-visible {
  outline: 3px solid rgba(184, 146, 91, 0.35);
  outline-offset: 1px;
  border-color: #bc9464;
}

select:disabled {
  background: #f4ece1;
  color: #5f5f5f;
}

.two-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.table-wrap {
  overflow-x: auto;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #f7f2ea;
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  background: transparent;
}

th,
td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid #eee3d5;
  vertical-align: top;
  font-size: 0.92rem;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: transparent;
  color: #5e4728;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.table-controls {
  max-width: 420px;
}

.sort-btn {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: inherit;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: inherit;
  cursor: pointer;
}

.sort-btn::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid currentColor;
  opacity: 0.25;
  transform: translateY(1px);
}

.sort-btn.sorted::after {
  opacity: 0.9;
}

.sort-btn.sorted[data-dir="asc"]::after {
  transform: rotate(180deg) translateY(-1px);
}

tr:nth-child(even) td {
  background: #fffcf8;
}

.actions-cell {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.staff-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

#staffTableBody tr {
  cursor: pointer;
}

#staffTableBody tr.active {
  background: #f2e3cf;
}

.mini-btn {
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.72rem;
  box-shadow: none;
}

.mini-btn.edit {
  color: #fff;
  background: linear-gradient(180deg, #7d5f36 0%, #5f4627 100%);
}

.mini-btn.delete {
  color: var(--danger);
  background: transparent;
  border: 1px solid #dcb4b4;
}

.mini-btn.save-row {
  color: #fff;
  background: linear-gradient(180deg, #3f6b4b 0%, #2f5b3e 100%);
}

.mini-btn.cancel-row {
  color: #5b4630;
  background: #f5e8d6;
  border: 1px solid #e1caa7;
}

.mini-btn.assign-row {
  color: #2e4c6f;
  background: #e6eef8;
  border: 1px solid #c4d6ee;
}

.notice {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #b8dec6;
  background: #edf8f1;
  color: var(--success);
  font-weight: 600;
}

.notice.error {
  border-color: #efc3c3;
  background: #fff1f1;
  color: var(--danger);
}

p {
  margin: 0;
}

.actions .lang-select {
  width: auto;
  min-width: 140px;
  padding-right: 34px;
  border-color: #cbb08a;
  background: linear-gradient(180deg, #fdf7ef 0%, #f6ebdb 100%);
  color: #4f3b23;
}

@media (max-width: 900px) {
  .week-row {
    grid-template-columns: 1fr;
  }

  .page {
    padding: 0;
  }

  .card {
    padding-bottom: 20px;
  }

  .header {
    height: auto;
    min-height: var(--header-h-mobile);
    padding: 10px 12px;
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .brand {
    min-width: 0;
    flex: 1 1 100%;
  }

  .tab-panel {
    width: calc(100% - 20px);
    padding: 12px;
    border-radius: 12px;
  }

  .two-cols {
    grid-template-columns: 1fr;
  }

  .tab-btn,
  button,
  .link-btn {
    width: 100%;
    text-align: center;
  }

  .actions {
    max-width: 100%;
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    overflow: visible;
  }

  .actions .tab-btn,
  .actions button,
  .actions .link-btn {
    width: auto;
  }

  .actions .lang-select {
    width: auto;
  }

  .account-menu-list {
    left: 0;
    right: auto;
    min-width: 200px;
  }
}












/* Global spacing normalization */
.tab-panel > * {
  margin: 0;
}

.form,
.row,
.table-wrap {
  margin: 0;
}






.auth-page {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 20px;
}

.auth-card {
  width: min(520px, 100%);
}





.modal-panel {
  width: min(820px, 94vw);
  max-height: 94vh;
  overflow-x: auto;
  overflow-y: auto;
  background: #ffffff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}


.book-modal {
  width: min(960px, 96vw);
  max-height: min(920px, calc(100vh - 40px));
  background: linear-gradient(180deg, #fffefb 0%, #f7f1e8 100%);
}

.note-modal {
  width: min(560px, 92vw);
  background: linear-gradient(180deg, #fffefb 0%, #f4f1ec 100%);
}

.note-modal-section {
  gap: 10px;
}

.note-modal textarea {
  min-height: 160px;
}

#adminNoteModal {
  z-index: 7050 !important;
}

#adminSmsComposeModal {
  z-index: 7100 !important;
}


.modal.quick-add-mode {
  z-index: 2200;
  align-items: flex-start;
  justify-content: center;
  padding-top: 12px;
}

.modal.quick-add-mode .modal-panel.book-modal {
  width: min(960px, 96vw);
  max-height: min(920px, calc(100vh - 40px));
}

.modal-kicker {
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #9c7a4e;
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

#adminBookingModal .book-grid {
  grid-template-columns: minmax(240px, 0.7fr) minmax(420px, 1.3fr);
  align-items: stretch;
}

#adminBookingModal .book-modal {
  height: min(920px, calc(100vh - 40px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

#adminBookingModal .book-section {
  align-content: start;
  gap: 4px;
  padding: 8px 10px;
  min-height: 0;
  height: 100%;
}

#adminBookingModal .book-section h3 {
  margin-bottom: 2px;
}

.book-section {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.5);
  display: grid;
  gap: 8px;
  box-shadow: 0 10px 20px rgba(22, 16, 12, 0.08);
}

.book-section h3 {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6f5531;
}

.book-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

#adminBookingModal .book-actions {
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.book-modal .form {
  gap: 6px;
}

#adminBookingModal .form {
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
  align-items: stretch;
}

#adminBookingModal .book-grid {
  min-height: 0;
  height: 100%;
}

#adminBookingModal .customer-column {
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 8px;
}

#adminBookingModal .customer-column .customer-section {
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 8px;
}

#adminBookingModal .customer-column .customer-section .row {
  gap: 4px;
}

#adminBookingModal .book-grid > .book-section:last-child {
  grid-template-rows: auto auto auto minmax(0, 1fr);
}

#adminBookingModal .book-grid > .book-section:last-child > .row:last-child {
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
}

.book-modal .row {
  gap: 2px;
}

#adminBookingModal .two-cols {
  gap: 8px;
}

#adminBookingModal .booking-date-time-row {
  grid-template-columns: max-content minmax(0, 1fr);
  justify-content: start;
  align-items: end;
}

#adminBookingModal .booking-date-cell,
#adminBookingModal .booking-status-cell {
  width: max-content;
}

#adminBookingModal .booking-time-cell {
  width: auto;
}

#adminBookingModal .booking-time-cell-inline {
  min-width: 0;
}

#adminBookingModal .booking-time-inline {
  display: grid;
  grid-template-columns: max-content minmax(200px, 1fr);
  gap: 10px;
  align-items: center;
}

#adminBookingModal .admin-date-picker {
  position: relative;
}

#adminBookingModal #modalDate {
  width: 16ch;
  min-width: 16ch;
  cursor: pointer;
}

#adminBookingModal .admin-date-picker-popover {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 40;
  width: 280px;
  padding: 12px;
  border: 1px solid #d5c8be;
  border-radius: 14px;
  background: #fffaf7;
  box-shadow: 0 16px 36px rgba(76, 45, 24, 0.18);
}

#adminBookingModal .admin-date-picker-popover.hidden {
  display: none;
}

#adminBookingModal .admin-date-picker-header,
#adminBookingModal .admin-date-picker-weekdays,
#adminBookingModal .admin-date-picker-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

#adminBookingModal .admin-date-picker-header {
  grid-template-columns: 36px minmax(0, 1fr) 36px;
  align-items: center;
  margin-bottom: 10px;
}

#adminBookingModal .admin-date-picker-title {
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: #3a2417;
}

#adminBookingModal .admin-date-nav {
  min-width: 36px;
  padding: 4px 0;
}

#adminBookingModal .admin-date-picker-weekdays {
  margin-bottom: 6px;
}

#adminBookingModal .admin-date-picker-weekdays span {
  text-align: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: #8a6a56;
}

#adminBookingModal .admin-date-day {
  min-height: 34px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: #ffffff;
  color: #38261b;
  font-size: 0.8rem;
  font-weight: 600;
}

#adminBookingModal .admin-date-day:hover {
  border-color: #cf8f68;
  background: #fff1e6;
}

#adminBookingModal .admin-date-day.is-outside {
  color: #baa69a;
  background: #f8f1ec;
}

#adminBookingModal .admin-date-day.is-today {
  background: #d62828;
  border-color: #b61f1f;
  color: #ffffff;
  box-shadow: 0 8px 16px rgba(214, 40, 40, 0.28);
}

#adminBookingModal .admin-date-day.is-selected {
  border-color: #3a2417;
  background: #3a2417;
  color: #ffffff;
}

#adminBookingModal .admin-date-day.is-selected.is-today {
  background: #d62828;
  border-color: #7f1010;
}

#adminBookingModal #modalTime {
  width: 18ch;
  min-width: 18ch;
}

#adminBookingModal .booking-time-cell {
  align-self: start;
}

#adminBookingModal .field-inline-notice {
  min-height: 1.15rem;
  margin-top: 0;
  font-size: 0.72rem;
  line-height: 1.3;
  color: #8f1d1d;
  max-width: 32ch;
  align-self: center;
}

#adminBookingModal .field-inline-notice.hidden {
  display: none;
}

#adminBookingModal .booking-status-cell {
  justify-self: start;
}

#adminBookingModal .customer-compact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 10px;
}



#adminBookingModal .customer-primary-field {
  grid-column: 1 / -1;
}

#adminBookingModal .customer-lower-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
  min-height: 0;
}

#adminBookingModal .customer-detail-stack {
  display: grid;
  gap: 12px;
  min-height: 0;
}

#adminBookingModal #modalCustomerInfo {
  min-height: 52px;
  max-height: 52px;
}

#adminBookingModal .customer-photo-row {
  align-content: start;
}

#adminBookingModal .customer-preview-box {
  margin-top: 6px;
  min-height: 44px;
}

#adminBookingModal .customer-message-below {
  min-height: 0;
}

#adminBookingModal .customer-message-below #modalMessage {
  margin: 0;
}

#adminBookingModal #modalStatus {
  width: 17ch;
  min-width: 17ch;
}

#adminBookingModal #modalCustomerRequest {
  width: 21ch;
  min-width: 21ch;
}

.booking-compact-row {
  display: grid;
  grid-template-columns: minmax(154px, 0.8fr) max-content max-content;
  gap: 8px;
  align-items: end;
}

.booking-compact-cell {
  min-width: 0;
}

.booking-staff-inline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  align-items: center;
}

#modalRandomStaffBtn {
  min-width: 0;
  width: fit-content;
  padding: 4px 8px;
  font-size: 0.68rem;
  line-height: 1.1;
  white-space: nowrap;
}

.book-modal input,
.book-modal select,
.book-modal textarea {
  padding: 9px 10px;
  font-size: 0.82rem;
}

.book-modal .checkbox-list {
  max-height: 140px;
}

#adminBookingModal .admin-service-list {
  height: 100%;
  min-height: 0;
  max-height: none;
}

.book-modal .admin-service-list {
  max-height: 102px;
  overflow-y: auto;
  overflow-x: hidden;
}

.book-modal .admin-service-list .check-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.book-modal .admin-service-list .check-item span {
  white-space: normal;
}

.book-modal h2 {
  margin: 2px 0 0;
  font-size: 1.2rem;
}

.suggest-list {
  display: grid;
  gap: 6px;
  border: 1px solid #e3d2bb;
  border-radius: 12px;
  background: #fffaf4;
  padding: 8px;
  margin-top: 6px;
  max-height: 320px;
  overflow-x: auto;
  overflow-y: auto;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 20;
}

.suggest-item {
  appearance: none;
  border: 1px solid #e3d2bb;
  border-radius: 12px;
  background: #fffdf9;
  color: var(--ink);
  padding: 8px 10px;
  text-align: left;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.01em;
  text-transform: none;
  box-shadow: none;
  cursor: pointer;
}

.suggest-item:hover {
  filter: brightness(1.03);
}

.suggest-wrap {
  position: relative;
}

#adminBookingModal .suggest-wrap {
  display: grid;
  gap: 4px;
}

#adminBookingModal .suggest-wrap .suggest-list {
  position: static;
  top: auto;
  left: auto;
  right: auto;
  margin-top: 2px;
  max-height: 220px;
}

.suggest-list.inline {
  position: static;
  top: auto;
  left: auto;
  right: auto;
  z-index: auto;
}

.suggest-empty {
  padding: 6px 8px;
  border-radius: 8px;
  background: #fff7ef;
  color: var(--ink-soft);
  font-size: 0.85rem;
  font-weight: 600;
}

@media (max-width: 1100px), (max-height: 900px) {
  #adminBookingModal .book-modal {
    width: min(920px, 96vw);
    max-height: min(840px, calc(100dvh - 24px));
    height: min(840px, calc(100dvh - 24px));
    padding: 14px;
  }

  #adminBookingModal .modal-header {
    padding-bottom: 4px;
  }

  #adminBookingModal .book-grid {
    gap: 8px;
    grid-template-columns: minmax(220px, 0.68fr) minmax(360px, 1.32fr);
  }

  #adminBookingModal .book-section {
    padding: 6px 8px;
    gap: 3px;
  }

  #adminBookingModal .customer-column {
    gap: 6px;
  }

  #adminBookingModal .customer-column .customer-section {
    gap: 6px;
  }

  #adminBookingModal .book-actions {
    gap: 8px;
    padding-top: 6px;
    flex-wrap: wrap;
  }

  #adminBookingModal .modal-actions {
    gap: 6px;
  }

  #adminBookingModal .book-modal .row {
    gap: 0;
  }

  #adminBookingModal .calendar-summary {
    font-size: 0.72rem;
  }

  #adminBookingModal .book-modal input,
  #adminBookingModal .book-modal select,
  #adminBookingModal .book-modal textarea {
    padding: 6px 8px;
    font-size: 0.74rem;
  }

  #adminBookingModal .book-modal textarea {
    min-height: 48px;
  }

  #adminBookingModal .customer-preview-box img,
  #adminBookingModal #modalCustomerPhotoPreview {
    max-width: 92px !important;
    max-height: 92px !important;
  }
}

@media (max-width: 900px) {
  .book-grid {
    grid-template-columns: 1fr;
  }

  #adminBookingModal {
    align-items: flex-start;
    justify-content: center;
    padding: 8px;
    overflow-x: hidden;
    overflow-y: auto;
  }

  #adminBookingModal .book-modal {
    width: 100%;
    max-width: none;
    min-height: 0;
    height: auto;
    max-height: none;
    padding: 12px;
    border-radius: 14px;
  }

  #adminBookingModal .form {
    height: auto;
    min-height: 0;
    grid-template-rows: auto auto auto;
  }

  #adminBookingModal .book-grid {
    height: auto;
    min-height: 0;
    gap: 10px;
  }

  #adminBookingModal .book-section {
    height: auto;
    min-height: 0;
    padding: 10px;
  }

  #adminBookingModal .booking-date-time-row,
  #adminBookingModal .customer-compact-grid,
  #adminBookingModal .customer-lower-grid,
  .booking-compact-row,
  #adminBookingModal .booking-time-inline {
    grid-template-columns: 1fr;
  }

  #adminBookingModal #modalDate,
  #adminBookingModal #modalTime,
  #adminBookingModal #modalStatus,
  #adminBookingModal #modalCustomerRequest {
    width: 100%;
    min-width: 0;
  }

  #adminBookingModal .field-inline-notice {
    max-width: none;
  }

  .booking-staff-inline {
    grid-template-columns: 1fr;
  }

  #modalRandomStaffBtn {
    width: 100%;
  }

  #adminBookingModal .admin-service-list {
    max-height: 220px;
  }

  #adminBookingModal .modal-header {
    align-items: flex-start;
  }

  #adminBookingModal .modal-window-actions {
    flex: 0 0 auto;
  }

  #adminBookingModal .book-actions,
  #adminBookingModal .modal-actions {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: stretch;
    width: 100%;
  }

  #adminBookingModal .book-actions {
    gap: 8px;
  }

  #adminBookingModal .book-actions > button,
  #adminBookingModal .modal-actions > button {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  #adminBookingModal .modal-mini-title {
    word-break: break-word;
  }

  #adminNoteModal {
    align-items: flex-start;
    justify-content: center;
    padding: 8px;
    overflow-x: hidden;
    overflow-y: auto;
  }

  #adminNoteModal .note-modal {
    width: 100%;
    max-width: none;
    max-height: none;
    padding: 12px;
    border-radius: 14px;
  }

  #adminNoteModal .two-cols {
    grid-template-columns: 1fr;
  }

  #adminNoteModal .book-actions,
  #adminNoteModal .modal-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  #adminNoteModal .book-actions > button,
  #adminNoteModal .modal-actions > button {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

.alert-panel {
  max-width: 460px;
  border: 1px solid #f0d3d3;
  background: #fff7f7;
}

.alert-btn {
  color: #fff;
  background: linear-gradient(180deg, #b03a3a 0%, #8d2a2a 100%);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.modal-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.modal .form .row button {
  margin-right: 8px;
}

.guest-success-panel {
  width: min(520px, 92vw);
  background: linear-gradient(180deg, #ffffff 0%, #fff9fc 100%);
  border: 1px solid #ead9e2;
  border-radius: 20px;
  padding: 28px 24px 20px;
  box-shadow: 0 24px 60px rgba(34, 22, 28, 0.18);
  text-align: center;
}

.guest-success-panel h3 {
  margin: 8px 0 10px;
  font-size: 1.36rem;
  color: #2b1d22;
  text-transform: none;
  letter-spacing: 0.01em;
}

.guest-success-panel p {
  margin: 0 auto;
  max-width: 44ch;
  color: #5a4a52;
  line-height: 1.6;
  font-size: 0.96rem;
}

.guest-success-summary {
  margin: 14px auto 0;
  width: min(460px, 100%);
  text-align: left;
  border: 1px solid #e7d6df;
  background: #fff;
  border-radius: 12px;
  padding: 12px;
}

.guest-success-summary.hidden {
  display: none;
}

.guest-success-row {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 4px 0;
}

.guest-success-row + .guest-success-row {
  border-top: 1px dashed #efe3e8;
}

.guest-success-label {
  color: #6d5460;
  font-weight: 700;
  white-space: nowrap;
  position: relative;
  z-index: 1400;
}

.guest-success-value {
  color: #2b1d22;
  text-align: right;
  overflow-wrap: anywhere;
}


.guest-success-line + .guest-success-line {
  margin-top: 2px;
}.guest-success-note {
  margin-top: 12px !important;
  text-align: left;
}

.guest-success-question {
  margin-top: 14px !important;
  font-weight: 700;
  color: #3e2b33 !important;
}

.guest-success-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid #d9c6cf;
  background: #f8eef3;
  color: #6d5460;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.guest-success-actions {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.guest-success-actions .mini-btn {
  min-width: 120px;
}

@media (max-width: 640px) {
  .guest-success-panel {
    padding: 22px 14px 16px;
  }

  .guest-success-row {
    flex-direction: column;
    gap: 2px;
  }

  .guest-success-value {
    text-align: left;
  }

  .guest-success-actions .mini-btn {
    width: 100%;
  }
}

.modal.hidden {
  display: none;
}


.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: capitalize;
  background: var(--surface-soft);
  color: var(--ink);
  border: 1px solid var(--line);
}

.status-awaiting {
  background: rgba(184, 146, 91, 0.16);
  color: #7a5a2f;
  border-color: rgba(184, 146, 91, 0.4);
}

.status-accepted {
  background: rgba(47, 106, 66, 0.12);
  color: var(--success);
  border-color: rgba(47, 106, 66, 0.3);
}

.status-denied {
  background: rgba(159, 47, 47, 0.12);
  color: var(--danger);
  border-color: rgba(159, 47, 47, 0.3);
}

.status-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
}

.status-card span {
  display: block;
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.status-select {
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: transparent;
}


.guest-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.guest-tab-btn {
  background: linear-gradient(180deg, #efe2cf 0%, #d5bc96 100%);
  color: #3a2d22;
  border-color: #d0b48a;
  box-shadow: none;
}

.guest-tab-btn.active {
  background: linear-gradient(180deg, #caa06a 0%, #9f7744 100%);
  color: #fff;
  border-color: #9f7744;
}

.guest-panels {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fffdf9;
}

.guest-panel {
  display: grid;
  gap: 10px;
}


.guest-tabs-wrap {
  position: sticky;
  top: calc(var(--header-h) + 8px);
  z-index: 20;
  background: linear-gradient(180deg, #fffefb 0%, #f9f5ef 100%);
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.08);
}

@media (max-width: 900px) {
  .guest-tabs-wrap {
    top: calc(var(--header-h-mobile) + 6px);
  }
}

.field-error {
  border-color: #b94141 !important;
  background: #fff4f4;
}

.checkbox-list.field-error {
  border: 1px solid #b94141 !important;
  border-radius: 12px;
  padding: 10px;
}
\n.inactive-row {\n  opacity: 0.5;\n}\n.inactive-row .mini-btn,\n.inactive-row button {\n  pointer-events: none;\n}\n
.appt-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  align-items: end;
}

.grouped-wrap {
  display: grid;
  gap: 12px;
}

.grouped-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.summary-card {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fffdf9;
  box-shadow: 0 8px 18px rgba(25, 18, 12, 0.08);
}

.summary-card h3 {
  margin: 0 0 6px;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.summary-card .value {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--ink);
}

.grouped-sections {
  display: grid;
  gap: 12px;
}

.grouped-section {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: linear-gradient(180deg, #fffefb 0%, #f7f2ea 100%);
}

.grouped-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.grouped-header h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 900;
  color: #5a4327;
}

.grouped-header .count {
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.grouped-cards {
  display: grid;
  gap: 10px;
}

.appt-card {
  border: 1px solid #e6d7c4;
  border-radius: 12px;
  padding: 12px 14px;
  background: transparent;
  display: grid;
  gap: 6px;
}

.appt-card .appt-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.appt-card .appt-id {
  font-weight: 900;
  color: #6a4d28;
}

.appt-card .appt-name {
  font-weight: 700;
}

.appt-card .appt-meta {
  display: grid;
  gap: 4px;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.appt-card .appt-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.appt-tag {
  padding: 4px 8px;
  border-radius: 999px;
  background: #f6efe6;
  border: 1px solid #e2d1bb;
  font-size: 0.72rem;
  font-weight: 700;
  color: #6a4d28;
}

@media (max-width: 900px) {
  .appt-controls {
    grid-template-columns: 1fr;
  }
}

.reception-top {
  display: grid;
  gap: 16px;
}

.reception-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  align-items: end;
}

.reception-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.schedule-wrap {
  display: grid;
  gap: 14px;
}

.staff-group {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: linear-gradient(180deg, #fffefb 0%, #f9f5ef 100%);
}

.staff-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.staff-header h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 900;
  color: #5a4327;
}

.staff-header span {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.appt-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.appt-card {
  border: 1px solid #e6d7c4;
  border-radius: 12px;
  padding: 12px 14px;
  background: transparent;
  display: grid;
  gap: 8px;
  box-shadow: 0 6px 14px rgba(21, 15, 10, 0.08);
}

.appt-card.is-current {
  border-color: #b8925b;
  box-shadow: 0 0 0 2px rgba(184, 146, 91, 0.35), 0 10px 22px rgba(30, 22, 15, 0.15);
}

.appt-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.appt-name {
  font-size: 1rem;
  font-weight: 900;
  color: #2f241d;
}

.appt-phone {
  font-size: 0.86rem;
  color: var(--ink-soft);
}

.appt-info {
  display: grid;
  gap: 4px;
  font-size: 0.86rem;
  color: var(--ink);
}

.appt-notes {
  font-size: 0.72rem;
  color: var(--ink-soft);
  border-top: 1px dashed #e6d7c4;
  padding-top: 8px;
}

.appt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.status-confirmed {
  background: rgba(51, 102, 204, 0.12);
  color: #2f5aa6;
  border: 1px solid rgba(51, 102, 204, 0.4);
}

.status-in_progress {
  background: rgba(196, 106, 29, 0.14);
  color: #b8621b;
  border: 1px solid rgba(196, 106, 29, 0.4);
}

.status-completed {
  background: rgba(47, 106, 66, 0.12);
  color: var(--success);
  border: 1px solid rgba(47, 106, 66, 0.35);
}

.status-cancelled {
  background: rgba(159, 47, 47, 0.12);
  color: var(--danger);
  border: 1px solid rgba(159, 47, 47, 0.35);
}

.empty-note {
  padding: 12px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: #fffdf9;
  color: var(--ink-soft);
  font-weight: 600;
}

body.admin-dashboard #modalMessage {
  color: #b42318 !important;
  border-color: #f0b5b5 !important;
  background: #fff3f3 !important;
}

body.admin-dashboard #modalMessage.error {
  color: #8f1d1d !important;
  border-color: #e19a9a !important;
  background: #ffe8e8 !important;
}

@media (max-width: 900px) {
  .reception-controls {
    grid-template-columns: 1fr;
  }
  .appt-cards {
    grid-template-columns: 1fr;
  }
}

.calendar-wrap {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: transparent;
  overflow: hidden;
}

.calendar-header {
  display: grid;
  grid-auto-flow: row;
  align-items: stretch;
  background: transparent;
  border-bottom: 1px solid var(--line);
}

.calendar-body {
  display: grid;
  grid-template-columns: 70px 1fr;
  min-height: auto;
}

.calendar-time {
  background: linear-gradient(180deg, rgba(255, 251, 245, 0.96) 0%, rgba(250, 244, 236, 0.96) 100%);
  border-right: 1px solid var(--line);
}

.calendar-time .time-slot {
  height: var(--slot-height, 16px);
  box-sizing: border-box;
  padding-right: 8px;
  font-size: 0.75rem;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  border-top: 1px solid rgba(214, 196, 170, 0.42);
}

.calendar-time .time-slot.is-hour-band-even {
  background: rgba(184, 146, 91, 0.08);
}

.calendar-time .time-slot.is-hour-band-odd {
  background: rgba(255, 255, 255, 0.5);
}

.calendar-time .time-slot-hour {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  font-weight: 900;
  color: #000000;
}

.calendar-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--calendar-cols, 1), minmax(180px, 1fr));
}

.calendar-cell {
  padding: 8px 10px;
  font-weight: 700;
  font-size: 0.72rem;
  color: #5b4630;
  border-right: 1px solid rgba(231, 220, 205, 0.9);
}

.calendar-cell.day-start {
  border-left: 2px solid rgba(184, 146, 91, 0.5);
}

.calendar-cell.empty-cell {
  background: transparent;
  border-right: none;
}

.calendar-cell.header-spacer,
.calendar-cell.header-day-cell {
  border-bottom: 1px solid rgba(231, 220, 205, 0.9);
}

.calendar-cell.header-day-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.calendar-cell.header-staff-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.calendar-cell.header-staff-cell.is-day-off,
.calendar-col.is-day-off {
  background: rgba(120, 105, 90, 0.08);
  color: #5f5f5f;
}

.calendar-col.is-day-off .calendar-col-lines {
  background-image: none;
}

.header-staff-off {
  margin-top: 4px;
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7d6a5a;
  background: rgba(120, 105, 90, 0.12);
}

.calendar-cell.time-header {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #7a5a34;
  border-right: 1px solid rgba(231, 220, 205, 0.9);
}

.calendar-col {
  position: relative;
  border-right: 1px solid rgba(231, 220, 205, 0.9);
}

.calendar-col.day-start {
  border-left: 1px solid rgba(0, 0, 0, 0.08);
}

.calendar-col-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to bottom, rgba(231, 220, 205, 0.45) 1px, transparent 1px);
  background-size: 100% var(--slot-height, 16px);
}

.work-window {
  position: absolute;
  left: 6px;
  right: 6px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.02);
  border: 1px dashed rgba(0, 0, 0, 0.12);
  pointer-events: none;
}

.day-off-label {
  position: absolute;
  top: 10px;
  left: 8px;
  right: 8px;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #5f5f5f;
  background: #ffffff;
  border: 1px dashed rgba(0, 0, 0, 0.18);
  border-radius: 999px;
  padding: 4px 6px;
  pointer-events: none;
}

.calendar-event {
  position: absolute;
  left: 6px;
  right: 6px;
  border-radius: 12px;
  padding: 6px 8px;
  color: #2e241e;
  font-size: 0.72rem;
  font-weight: 700;
  background: transparent;
  border: 1px solid rgba(30, 24, 20, 0.35);
  box-shadow: none;
  cursor: pointer;
  overflow: hidden;
}

.calendar-event.staff-pick-required {
  background: transparent;
  border: 1px solid rgba(30, 24, 20, 0.35);
  color: #2e241e;
  font-weight: 900;
}

.calendar-event.staff-pick-required .event-time,
.calendar-event.staff-pick-required .event-meta,
.calendar-event.staff-pick-required .event-title {
  color: #2e241e;
  font-weight: 900;
}

.calendar-event.staff-pick-admin {
  background: transparent;
  border: 1px solid rgba(30, 24, 20, 0.35);
  color: #2e241e;
}

.calendar-event.staff-pick-random {
  background: transparent;
  border: 1px solid rgba(30, 24, 20, 0.35);
  color: #2e241e;
}



.calendar-event.is-edit-drag-enabled {
  cursor: grab;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}

.calendar-event.is-edit-drag-enabled:active {
  cursor: grabbing;
}
.calendar-event.is-draft {
  border: 1px dashed rgba(30, 24, 20, 0.35);
  background: rgba(0, 0, 0, 0.03);
  box-shadow: none;
}

.calendar-event.is-draft .event-name::before {
  content: 'NEW';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 18px;
  margin-right: 8px;
  border-radius: 999px;
  background: #f3f3f3;
  color: #2e241e;
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.05em;
}
.calendar-event.awaiting-black {
  background: transparent;
  border: 1px solid #1f1f1f;
  color: #000000;
}

.calendar-event.awaiting-black .event-time,
.calendar-event.awaiting-black .event-meta,
.calendar-event.awaiting-black .event-title {
  color: #000000;
  font-weight: 700;
}

.calendar-event .event-title {
  font-size: 0.72rem;
  font-weight: 900;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.calendar-event .event-name {
  min-width: 0;
}

.calendar-event .event-inline-notes {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  min-width: 0;
}

.calendar-event .event-inline-note {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 1px 5px;
  border-radius: 999px;
  font-size: 0.64rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.calendar-event .event-inline-note-customer {
  background: rgba(255, 255, 255, 0.55);
  color: #4a3423;
}

.calendar-event .event-inline-note-booking {
  background: rgba(74, 52, 35, 0.1);
  color: #3d2a1d;
}

.calendar-event .event-customer-note {
  font-weight: 600;
  font-style: italic;
  opacity: 0.82;
}

.calendar-event .event-time,
.calendar-event .event-meta {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(20, 16, 12, 0.75);
}

.calendar-event.is-current {
  outline: 2px solid rgba(184, 146, 91, 0.6);
  outline-offset: -1px;
}

.week-nav {
  display: flex;
  gap: 8px;
}

@media (max-width: 1100px) {
  .calendar-body {
    grid-template-columns: 60px 1fr;
  }
  .calendar-header {
    grid-auto-columns: minmax(160px, 1fr);
  }
}

@media (max-width: 900px) {
  .calendar-wrap {
    overflow-x: auto;
  overflow-y: auto;
  }
  .calendar-header {
    min-width: 980px;
  }
  .calendar-grid {
    min-width: 980px;
  }
}

.event-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-top: 6px;
}

.event-status {
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 8px;
  border: 1px solid rgba(180, 160, 135, 0.6);
  background: #fffaf4;
  color: #4b3a28;
}

.event-action-btn {
  padding: 2px 6px;
  font-size: 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(180, 160, 135, 0.6);
  background: #f6efe6;
  color: #4b3a28;
  cursor: pointer;
}

.event-action-btn:hover {
  filter: brightness(1.05);
}

.calendar-event.status-confirmed {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(30, 24, 20, 0.35);
}

.calendar-event.status-in_progress {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(30, 24, 20, 0.35);
}

.calendar-event.status-completed {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(30, 24, 20, 0.35);
}

.calendar-event.status-cancelled {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(30, 24, 20, 0.35);
}

.calendar-event.dragging {
  opacity: 0.28;
  cursor: grabbing;
}

.calendar-event.drag-ghost {
  position: fixed;
  left: 0;
  top: 0;
  right: auto;
  margin: 0;
  opacity: 0.96;
  z-index: 3000;
  pointer-events: none;
  cursor: grabbing;
  box-shadow: 0 16px 30px rgba(39, 30, 23, 0.24);
}

.calendar-note-event {
  position: absolute;
  left: 8px;
  right: 8px;
  border: 1px dashed rgba(70, 61, 53, 0.42);
  background: rgba(255, 255, 255, 0.96);
  border-radius: 12px;
  padding: 8px 10px;
  display: grid;
  gap: 6px;
  text-align: left;
  color: #3f362f;
  box-shadow: 0 10px 24px rgba(31, 22, 16, 0.08);
  cursor: pointer;
  overflow: hidden;
}

.calendar-note-time {
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #000000;
}

.calendar-note-text {
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.35;
  color: #2f2721;
  white-space: pre-wrap;
}

.header-cell .header-day {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.header-cell .day-num {
  font-size: 1.35rem;
  font-weight: 900;
  color: #3f2f1e;
}

.header-cell .day-label {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #7a5a34;
}

.header-cell .header-staff {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.header-cell.is-today {
  background: rgba(184, 146, 91, 0.18);
}

.calendar-col.is-today {
  background: rgba(255, 249, 238, 0.6);
}

.event-resize {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 8px;
  cursor: ns-resize;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.15));
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

.calendar-event:hover .event-resize {
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.25));
}

.calendar-wrap {
  overflow-x: auto;
  overflow-y: auto;
}

.calendar-body {
  overflow-x: auto;
  overflow-y: auto;
}

.calendar-header {
  width: max-content;
}

.calendar-grid {
  width: var(--grid-width, auto);
}



.manage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.manage-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fffefb 0%, #f7f2ea 100%);
  text-decoration: none;
  color: var(--ink);
  box-shadow: 0 10px 24px rgba(22, 16, 12, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.manage-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(22, 16, 12, 0.16);
}

.manage-card h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 900;
  color: #3a2b1f;
}

.manage-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.calendar-toolbar {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(260px, auto) repeat(3, minmax(150px, 220px));
  align-items: end;
}

.calendar-summary {
  margin: 0;
  color: #7a5a34;
  font-weight: 700;
  font-size: 0.82rem;
}

.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

@media (max-width: 960px) {
  .calendar-toolbar {
    grid-template-columns: 1fr;
  }
}



/* Admin dashboard */

.admin-dashboard .card {
  background: linear-gradient(180deg, #fffefb 0%, #f6efe6 100%);
}

.admin-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
  padding: 0;
}

/* Sidebar chung */
.admin-sidebar {
  background-color: #FFEFF4; /* há»“ng nháº¡t */
  color: #000;               /* chá»¯ máº·c Ä‘á»‹nh mÃ u Ä‘en */
  width: 220px;              /* chiá»u rá»™ng sidebar */
  min-width: 220px;
  padding: 15px 10px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  z-index: 1;                /* sidebar náº±m dÆ°á»›i cÃ¡c lá»›p khÃ¡c */
  position: relative;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Logo vÃ  chá»¯ Admin cÄƒn trÃ¡i + giá»¯a chiá»u cao */
.sidebar-brand {
  display: flex;
  align-items: center;       /* cÄƒn giá»¯a chiá»u cao */
  justify-content: flex-start; /* cÄƒn trÃ¡i toÃ n bá»™ */
  gap: 10px;                 /* khoáº£ng cÃ¡ch logo - chá»¯ */
  padding: 10px 0;
}

.sidebar-brand .logo img {
  display: block;
  max-width: 200px 0px;
  height: auto;
align : Left;
}
/* Link trong sidebar */
.sidebar-link {
  text-decoration: none;
  color: #000;               /* chá»¯ mÃ u Ä‘en */
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease;
  display: block;
  text-align: left;          /* chá»¯ cÄƒn trÃ¡i */
  margin-bottom: 6px;
}

/* Link hover */
.sidebar-link:hover {
  background: rgba(0, 0, 0, 0.05);
  transform: translateX(3px);
}

/* Link active */
.sidebar-link.active {
  background: rgba(0, 0, 0, 0.1);
}

/* Footer sidebar */
.sidebar-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-footer .link-btn,
.sidebar-footer button {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: #000;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
}

.sidebar-footer .link-btn:hover,
.sidebar-footer button:hover {
  background: rgba(0,0,0,0.05);
}

.admin-main {
  display: grid;
  grid-template-rows: auto 1fr;
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 25;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(360px, 1.4fr) minmax(260px, 1fr);
  gap: 12px;
  padding: 12px clamp(16px, 4vw, 40px);
  border-bottom: 1px solid #eadfcc;
  background: rgba(255, 248, 251, 0.96);
  backdrop-filter: blur(6px);
}

.topbar-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}

.topbar-group.center {
  justify-content: center;
}

.topbar-group.right {
  justify-content: flex-end;
}

.admin-notify-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 6px;
  z-index: 1200;
}

.admin-notify-bell {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid #dfcdb2;
  background: #fff7ec;
  color: #6a4a27;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
}

.admin-notify-bell:hover {
  background: #f8e7cf;
}

.admin-notify-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  padding: 0 5px;
  background: #bf2a2a;
  color: #fff;
  font-size: 11px;
  line-height: 18px;
  text-align: center;
  font-weight: 700;
  border: 1px solid #fff;
}

.admin-notify-bell.has-new {
  animation: bell-pop 0.5s ease;
}

.admin-notify-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(360px, 88vw);
  background: #fff;
  border: 1px solid #e4d5bf;
  border-radius: 12px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.18);
  z-index: 1300;
  overflow: hidden;
}

.admin-notify-menu-portal {
  position: fixed;
  inset: auto auto auto 0;
  overflow: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
  z-index: 6001 !important;
}
.admin-notify-menu.hidden {
  display: none;
}

.admin-notify-menu-head {
  padding: 10px 12px;
  font-weight: 700;
  color: #4f381c;
  background: #fff6e8;
  border-bottom: 1px solid #efdfc8;
}

.admin-notify-list {
  max-height: 320px;
  overflow-x: auto;
  overflow-y: auto;
}

.admin-notify-item {
  display: block;
  width: 100%;
  border: 0;
  border-bottom: 1px solid #f2e7d8;
  background: #fff;
  color: #2c2520;
  text-align: left;
  padding: 10px 12px;
  cursor: pointer;
  font: inherit;
}

.admin-notify-item:hover {
  background: #fffaef;
}

.admin-notify-item:last-child {
  border-bottom: 0;
}

.admin-notify-empty {
  padding: 12px;
  color: #7e7164;
}

@keyframes bell-pop {
  0% { transform: scale(1); }
  35% { transform: scale(1.15); }
  100% { transform: scale(1); }
}
.topbar-switches {
  display: flex;
  gap: 6px;
}

.topbar-nav {
  display: flex;
  gap: 6px;
  align-items: center;
}

.topbar-nav input[type="date"] {
  min-width: 150px;
}

.drag-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 4px 0 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(0, 0, 0, 0.08);
  user-select: none;
}

.drag-toggle-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #4b3b31;
  white-space: nowrap;
}

.drag-toggle-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.drag-toggle-switch input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.drag-toggle-slider {
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: #d8d8d8;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
  position: relative;
  transition: background 0.2s ease;
}

.drag-toggle-slider::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease;
}

.drag-toggle-switch input:checked + .drag-toggle-slider {
  background: #8bbf7a;
}

.drag-toggle-switch input:checked + .drag-toggle-slider::after {
  transform: translateX(18px);
}

.topbar-group .row {
  gap: 4px;
}

.topbar-group label {
  font-size: 0.7rem;
}

.tab-btn.is-ghost {
  background: #f3eadf;
  color: #5a4224;
  border: 1px solid #dfcdb2;
  box-shadow: none;
}

.tab-btn.is-ghost.active {
  background: linear-gradient(180deg, #d7b489 0%, #b48652 100%);
  color: #fff;
  border-color: #b48652;
}

.admin-calendar-panel {
  width: calc(100% - clamp(16px, 6vw, 80px));
  margin: 16px auto 24px;
}

.calendar-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.calendar-subtitle {
  margin: 6px 0 0;
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.admin-calendar {
  --staff-header-height: 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow-x: auto;
  overflow-y: auto;
  height: calc(var(--staff-header-height) + (((19 - 10) * 60 / 15) * var(--slot-height, 18px)));
  max-height: none;
  background: transparent;
  min-height: calc(var(--staff-header-height) + (((19 - 10) * 60 / 15) * var(--slot-height, 18px)));
}

.admin-calendar .calendar-time {
  display: none;
}

.admin-calendar .time-slot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: calc(var(--slot-height, 18px) * 4);
  box-sizing: border-box;
  padding-right: 8px;
  font-size: 0.78rem;
  font-weight: 900;
  color: #7c2424;
  background: transparent;
  border-top: none;
}

.calendar-board {
  display: grid;
  grid-template-columns: repeat(var(--calendar-cols, 1), minmax(100px, 1fr));
  position: relative;
  min-width: max-content;
}

.admin-calendar-col {
  position: relative;
  border-right: 1px solid rgba(231, 220, 205, 0.9);
  min-height: 640px;
  background: #ffffff;
}

.admin-calendar-col:last-child {
  border-right: none;
}

.staff-header-mini {
  position: sticky;
  top: 0;
  z-index: 2;
  min-height: var(--staff-header-height);
  padding: 8px 20px 8px 10px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #ffffff;
  border-bottom: 1px solid rgba(231, 220, 205, 0.9);
}
.staff-footer-mini {
  display: none !important;
}

.staff-footer-mini {
  position: sticky;
  bottom: 0;
  z-index: 2;
  min-height: var(--staff-header-height);
  padding: 8px 10px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-top: 1px solid rgba(231, 220, 205, 0.9);
  font-size: 0.76rem;
  font-weight: 900;
  color: #44311e;
  text-align: center;
  white-space: nowrap;
  z-index: 1400;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}

.staff-header-main {
  display: flex;
  align-items: center;
  gap: 8px;
}

.staff-header-meta {
  margin-top: 4px;
  min-height: 22px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.staff-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  display: grid;
  place-items: center;
  font-weight: 900;
  color: #553b22;
}

.staff-name {
  font-size: 0.85rem;
  font-weight: 900;
  color: #44311e;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  position: relative;
  z-index: 1400;
}

.staff-col-resize-handle {
  width: 10px;
  min-width: 10px;
  position: absolute;
  top: 6px;
  right: 4px;
  bottom: 6px;
  border: none;
  border-left: 1px solid rgba(68, 49, 30, 0.2);
  background: linear-gradient(to right, rgba(68, 49, 30, 0.06), rgba(68, 49, 30, 0.14));
  border-radius: 6px;
  cursor: col-resize;
  padding: 0;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}

.staff-col-resize-handle:hover {
  background: linear-gradient(to right, rgba(68, 49, 30, 0.12), rgba(68, 49, 30, 0.24));
}

body.is-col-resizing,
body.is-col-resizing * {
  cursor: col-resize !important;
  user-select: none;
}

.admin-calendar-col .calendar-col-lines {
  position: absolute;
  inset: var(--staff-header-height) 0 0 0;
  background-image:
    repeating-linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.025) 0,
      rgba(0, 0, 0, 0.025) calc(var(--slot-height, 18px) * 4),
      rgba(255, 255, 255, 0) calc(var(--slot-height, 18px) * 4),
      rgba(255, 255, 255, 0) calc(var(--slot-height, 18px) * 8)
    ),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.06) 1px, transparent 1px);
  background-size: 100% calc(var(--slot-height, 18px) * 8), 100% var(--slot-height, 18px);
  pointer-events: none;
}

.hour-band-watermark {
  position: absolute;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  pointer-events: none;
}

.hour-band-watermark.is-current-hour {
  background: color-mix(in srgb, var(--booking-grid-current-hour-bg) 72%, transparent);
}

.hour-band-watermark-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 100px;
  min-width: max(100%, 1400px);
  padding: 0 80px;
  opacity: 1;
}

.hour-band-watermark-text {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #000000;
  user-select: none;
  white-space: nowrap;
}

.calendar-events {
  position: relative;
  margin-top: 0;
  height: calc(((19 - 10) * 60 / 15) * var(--slot-height, 18px));
}

.calendar-event {
  left: 10px;
  right: 10px;
  border-radius: 12px;
  padding: 6px 8px 6px;
}

.calendar-event.is-completed {
  background: rgba(0, 0, 0, 0.03) !important;
  border: 1px solid rgba(30, 24, 20, 0.35) !important;
  color: #2e241e;
}

.calendar-event.is-new {
  border: 1px solid rgba(30, 24, 20, 0.35);
}

.calendar-event.is-vip {
  box-shadow: none;
}

.vip-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 6px;
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 900;
  background: #f3f3f3;
  color: #2e241e;
}

.legend-item.legend-staff {
  background: #f3eadf;
  color: #5a4224;
}

.legend-item.legend-new {
  background: rgba(194, 139, 85, 0.15);
  color: #8a5a2d;
  border: 1px solid rgba(194, 139, 85, 0.35);
}

.legend-item.legend-vip {
  background: rgba(210, 149, 59, 0.18);
  color: #8a5a2d;
  border: 1px solid rgba(210, 149, 59, 0.45);
}

.legend-item.legend-done {
  background: #ececec;
  color: #2e241e;
  border: 1px solid #cfcfcf;
}

@media (max-width: 1100px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    height: auto;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }

  .sidebar-footer {
    grid-column: 1 / -1;
  }

  .admin-topbar {
    grid-template-columns: 1fr;
  }

  .topbar-group {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
}


.admin-week-strip {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 6px 0 0;
}

.admin-week-strip .tab-btn {
  padding: 6px 10px;
  font-size: 0.72rem;
}

.admin-calendar-col.is-day-off {
  background: #ffffff;
}

.admin-calendar-col.is-day-off .calendar-col-lines {
  background-image:
    repeating-linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.025) 0,
      rgba(0, 0, 0, 0.025) calc(var(--slot-height, 18px) * 4),
      rgba(255, 255, 255, 0) calc(var(--slot-height, 18px) * 4),
      rgba(255, 255, 255, 0) calc(var(--slot-height, 18px) * 8)
    ),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.06) 1px, transparent 1px);
  background-size: 100% calc(var(--slot-height, 18px) * 8), 100% var(--slot-height, 18px);
}

.admin-calendar-col.is-day-off .calendar-events {
  position: relative;
  margin-top: var(--staff-header-height);
  height: calc(((19 - 10) * 60 / 15) * var(--slot-height, 18px));
}

.admin-topbar select[multiple] {
  min-height: 44px;
}

.admin-topbar select[multiple] option {
  padding: 4px 6px;
}


.staff-off-badge {
  margin-left: 0;
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: #f3f3f3;
  color: #4a4a4a;
}

.staff-unlock-btn {
  margin-left: 0;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: #f3f3f3;
  color: #2e241e;
  border: 1px solid rgba(0, 0, 0, 0.14);
}

.staff-unlock-btn:hover {
  background: #ebebeb;
}



.modal-header {
  cursor: move;
  user-select: none;
}


.admin-sidebar 
.sidebar-brand {
  align-items: flex-start;
  text-align: left;
}

.admin-sidebar .sidebar-brand h2 {
  text-align: center;
  width: 100%;
  margin-top: 8px;
}

.admin-sidebar .sidebar-brand .logo-img {
  width: 120px;
  height: auto;
}

/* Admin layout: single left-aligned panel (no sidebar / no multi-column grid) */

body.admin-dashboard {
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
}

body.admin-dashboard .page,
body.admin-dashboard .card,
body.admin-dashboard .admin-shell,
body.admin-dashboard .admin-main {
  min-height: 100vh;
  height: auto;
  overflow-x: hidden;
  overflow-y: visible;
}
.admin-dashboard .admin-shell {
  display: block;
  overflow: visible;
}

.admin-dashboard .admin-sidebar {
  display: block;
  width: 100%;
  min-width: 0;
  margin: 16px 16px 8px;
}

.admin-dashboard .admin-main {
  display: block;
  overflow: visible;
}

.admin-dashboard .admin-topbar {
  display: block;
}

.admin-dashboard .topbar-group.center,
.admin-dashboard .topbar-group.right {
  justify-content: flex-start;
}

.admin-dashboard .admin-calendar-panel {
  width: 100%;
  margin: 16px 0 0;
}
.btn-link {
  display: inline-block;
  padding: 8px 16px;
  background: linear-gradient(135deg, #fcd5e0, #f9c6d3); /* gradient há»“ng nháº¡t */
  color: #1f2937; /* chá»¯ mÃ u tá»‘i */
  text-decoration: none;
  border-radius: 12px;
  font-weight: 500;
  box-shadow: 0 4px 8px rgba(252, 213, 224, 0.4); /* bÃ³ng nháº¹ */
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
}

.btn-link:hover {
  background: linear-gradient(135deg, #f9a9c0, #f788b5); /* gradient há»“ng Ä‘áº­m khi hover */
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(252, 160, 190, 0.5);
}

.btn-link:active {
  transform: translateY(0);
  box-shadow: 0 3px 6px rgba(252, 160, 190, 0.4);
}
.horizontal-nav {
  display: flex;
  gap: 12px; /* khoáº£ng cÃ¡ch giá»¯a cÃ¡c nÃºt */
  flex-wrap: wrap; /* náº¿u mÃ n hÃ¬nh nhá», tá»± xuá»‘ng dÃ²ng */
}
#quickAddBtn.tab-btn {
  background-color: #f3f4f6 !important;
  color: #1f2937 !important;
}
.tab-btn, .btn-link {
  display: inline-block;
  padding: 8px 16px;
  background: linear-gradient(135deg, #fcd5e0, #f9c6d3); /* há»“ng nháº¡t gradient */
  color: #1f2937; /* chá»¯ tá»‘i */
  text-decoration: none;
  border-radius: 12px;
  font-weight: 500;
  box-shadow: 0 4px 8px rgba(252, 213, 224, 0.4);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
  border: none;
  cursor: pointer;
}

.tab-btn:hover, .btn-link:hover {
  background: linear-gradient(135deg, #f9a9c0, #f788b5); /* há»“ng Ä‘áº­m hover */
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(252, 160, 190, 0.5);
}

.tab-btn:active, .btn-link:active {
  transform: translateY(0);
  box-shadow: 0 3px 6px rgba(252, 160, 190, 0.4);
}





/* SMS confirmation page */
.sms-confirm-shell {
  padding: 18px;
  margin: 18px auto;
  width: min(980px, calc(100% - 24px));
}

.sms-confirm-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.sms-subtitle {
  margin: 6px 0 0;
  color: #5f5f5f;
}

.sms-header-actions {
  display: flex;
  width: 100%;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.sms-header-actions .tab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  min-width: 108px;
  line-height: 1;
}

.sms-toolbar {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.sms-template-box {
  margin-top: 12px;
  border: 1px solid #ecd7bd;
  border-radius: 12px;
  background: #fff8ee;
  padding: 10px;
}

.sms-template-box label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
}

.sms-template-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.sms-template-head-row label {
  margin-bottom: 0;
}

.sms-template-kind {
  min-width: 150px;
}

.sms-template-box textarea {
  width: 100%;
  min-height: 110px;
  border: 1px solid #d8c2a5;
  border-radius: 10px;
  padding: 10px;
  resize: vertical;
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.4;
}

.sms-template-actions {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.sms-template-help {
  margin: 0;
  color: #6f5840;
  font-size: 0.82rem;
}

.sms-count {
  margin-left: auto;
  font-weight: 700;
  color: #5a4224;
}

.sms-list {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.sms-item {
  border: 1px solid #ecd7bd;
  border-radius: 12px;
  background: #fff;
  padding: 12px;
}

.sms-item.is-sent {
  background: #f7f7f7;
}

.sms-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.sms-name-btn {
  border: none;
  background: transparent;
  padding: 0;
  font-size: 1rem;
  font-weight: 700;
  text-align: left;
  color: #2d2d2d;
  cursor: pointer;
}

.sms-name-btn:hover {
  text-decoration: underline;
}

.sms-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 0.72rem;
  font-weight: 700;
}

.sms-status.pending {
  background: #fdf1df;
  color: #8a5a2d;
}

.sms-status.sent {
  background: #dff3e5;
  color: #1f6b3a;
}

.sms-status.resent {
  background: #e9e5ff;
  color: #4a3d88;
}

.sms-meta {
  margin: 6px 0;
  color: #5f5f5f;
  font-size: 0.88rem;
}

.sms-body {
  margin: 8px 0;
  white-space: pre-wrap;
  line-height: 1.45;
}

.sms-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.sms-delete-btn {
  background: #ffe5e5;
}

.sms-empty {
  border: 1px dashed #ddc8ac;
  border-radius: 10px;
  padding: 14px;
  text-align: center;
  color: #6f5840;
  background: #fffbf5;
}

@media (max-width: 700px) {
  .sms-confirm-shell {
    width: calc(100% - 12px);
    margin: 8px auto;
    padding: 12px;
  }

  .sms-count {
    margin-left: 0;
  }
}













/* Admin customer booking: force Swedish-safe fonts (AA/AE/OE glyphs) */
body[data-role="admin_customer_book"] h1,
body[data-role="admin_customer_book"] h2,
body[data-role="admin_customer_book"] h3,
body[data-role="admin_customer_book"] .section-title,
body[data-role="admin_customer_book"] label,
body[data-role="admin_customer_book"] input,
body[data-role="admin_customer_book"] select,
body[data-role="admin_customer_book"] textarea,
body[data-role="admin_customer_book"] button {
  font-family: "Lato", "Segoe UI", "Noto Sans", Tahoma, Geneva, Verdana, sans-serif;
}

/* Grouped admin sidebar */
.admin-dashboard .admin-sidebar.admin-sidebar-inline {
  z-index: 1400;
  overflow: visible;
  position: relative;
  width: auto;
  min-width: 0;
  padding: 8px 10px;
  border-radius: 12px;
  display: flex;
  align-items: center;
}

.grouped-nav {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  overflow: visible;
  white-space: nowrap;
  position: relative;
  z-index: 1400;
  min-width: 0;
  width: 100%;
}

.sidebar-group {
  position: relative;
  border: 1px solid #ecd8e0;
  border-radius: 12px;
  background: #fff7fb;
  overflow: visible;
  flex: 0 0 auto;
}

.sidebar-group-toggle {
  list-style: none;
  cursor: pointer;
  padding: 10px 12px;
  font-weight: 700;
  color: #3b2a2a;
  background: #fdeff6;
  border-bottom: none;
  min-width: 165px;
}

.sidebar-group-toggle::-webkit-details-marker {
  display: none;
}

.sidebar-group-toggle::after {
  
  float: right;
  opacity: 0.75;
}

.sidebar-group[open] .sidebar-group-toggle::after {
  content: '';
}

.sidebar-group-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 230px;
  max-height: calc(100vh - 140px);
  overflow-x: auto;
  overflow-y: auto;
  padding: 8px;
  border: 1px solid #ecd8e0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
  z-index: 1450;
}

.sidebar-group-menu-portal {
  position: fixed;
  inset: auto auto auto 0;
  min-width: 280px;
  width: 320px;
  max-width: min(320px, calc(100vw - 16px));
  max-height: calc(100vh - 120px);
  overflow-x: auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
  z-index: 4000 !important;
}

.sidebar-group[open],
.sidebar-group.is-open {
  position: relative;
  z-index: 1601;
}

.sidebar-group[open] .sidebar-group-menu,
.sidebar-group.is-open .sidebar-group-menu {
  z-index: 1602;
}

body.sidebar-menu-open::before {
  content: '';
  position: fixed;
  inset: 0;
  background: transparent;
  z-index: 3990;
}

body.sidebar-menu-open .sidebar-group[open],
body.sidebar-menu-open .sidebar-group.is-open {
  z-index: 1603;
}

.sidebar-group-menu .sidebar-link {
  margin-bottom: 6px;
}

.sidebar-group-menu .sidebar-link:last-child {
  margin-bottom: 0;
}

.sidebar-standalone {
  margin-top: 0;
  flex: 0 0 auto;
}

.grouped-nav #quickAddBtn,
.grouped-nav #reminderTomorrowBtn {
  text-align: center;
  width: fit-content !important;
  inline-size: max-content !important;
  min-width: 0 !important;
  max-width: none !important;
  padding-left: 8px !important;
  padding-right: 8px !important;
}


.admin-dashboard .admin-topbar,
.admin-dashboard .admin-calendar-panel {
  position: relative;
  z-index: 1;
}












/* Unified Luxe Pink-White Design System (global override) */
:root {
  --lux-bg: #fff8fb;
  --lux-surface: #ffffff;
  --lux-surface-soft: #fff2f7;
  --lux-ink: #36272f;
  --lux-muted: #7b6a72;
  --lux-line: #efd9e3;
  --lux-primary: #e8b8cb;
  --lux-primary-strong: #d991ae;
  --lux-shadow: 0 12px 28px rgba(77, 38, 57, 0.12);
}

body {
  background:
    radial-gradient(circle at 10% 10%, rgba(232, 184, 203, 0.2), transparent 36%),
    radial-gradient(circle at 90% 6%, rgba(255, 255, 255, 0.9), transparent 32%),
    linear-gradient(180deg, #fff9fc 0%, var(--lux-bg) 100%);
  color: var(--lux-ink);
  font-family: "Lato", "Segoe UI", "Noto Sans", Tahoma, Geneva, Verdana, sans-serif;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.card,
.tab-panel,
.modal-panel,
.admin-sidebar,
.admin-topbar,
.grouped-section,
.summary-card,
.sms-item,
.guest-panels {
  background: var(--lux-surface);
  border: 1px solid var(--lux-line);
  box-shadow: var(--lux-shadow);
}

.section-title,
h1,
h2,
h3,
label {
  color: var(--lux-ink);
}

label {
  font-size: 0.74rem;
  letter-spacing: 0.05em;
}

input,
select,
textarea {
  border: 1px solid #e8cfda;
  border-radius: 10px;
  background: #fff;
  color: var(--lux-ink);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--lux-primary-strong);
  outline: 3px solid rgba(217, 145, 174, 0.22);
  outline-offset: 0;
}

button,
.tab-btn,
.link-btn,
.btn-link,
.sidebar-link,
.mini-btn {
  min-height: 40px;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid #e5bfd0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  background: linear-gradient(180deg, #f8dce7 0%, var(--lux-primary) 100%);
  color: #3a2931;
  box-shadow: 0 8px 16px rgba(174, 104, 136, 0.2);
  transition: transform 0.16s ease, filter 0.16s ease, box-shadow 0.16s ease;
}

button:hover,
.tab-btn:hover,
.link-btn:hover,
.btn-link:hover,
.sidebar-link:hover,
.mini-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow: 0 10px 18px rgba(174, 104, 136, 0.24);
}

button:active,
.tab-btn:active,
.link-btn:active,
.btn-link:active,
.sidebar-link:active,
.mini-btn:active {
  transform: translateY(0);
}

.tab-btn.is-ghost,
.sidebar-group-toggle {
  background: #fff3f8;
  color: #4b3641;
  border: 1px solid #eacddb;
}

.sidebar-link,
.sidebar-group-toggle,
.grouped-nav #quickAddBtn,
.grouped-nav #reminderTomorrowBtn {
  text-align: center;
}

.book-actions,
.modal-actions,
.actions,
.sms-header-actions,
.sms-actions {
  align-items: center;
  gap: 10px;
}

.table-wrap,
table,
th,
td {
  border-color: var(--lux-line);
}

th {
  background: #fff3f8;
  color: #5b4550;
}

.admin-dashboard .admin-topbar,
.admin-dashboard .admin-calendar-panel {
  background: var(--lux-surface);
}

.admin-dashboard .admin-topbar {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 4px 6px;
  flex-wrap: wrap;
  padding: 6px 10px;
}

.admin-dashboard .admin-topbar .topbar-group.left {
  display: flex;
  align-items: flex-end;
  gap: 4px 6px;
  flex-wrap: wrap;
  flex: 0 1 auto;
  min-width: 0;
}

.admin-dashboard .admin-topbar .topbar-group.right {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 4px;
  flex: 0 1 auto;
  margin-left: 0;
}

.admin-dashboard .topbar-switches,
.admin-dashboard .topbar-nav {
  gap: 3px;
  flex: 0 0 auto;
}

.admin-dashboard .admin-topbar .row {
  display: inline-grid;
  align-content: end;
  gap: 1px;
  min-width: 0;
  flex: 0 0 auto;
}

.admin-dashboard .admin-topbar label {
  font-size: 0.54rem;
  line-height: 1;
  letter-spacing: 0.02em;
  margin: 0;
}

.admin-dashboard .admin-topbar input,
.admin-dashboard .admin-topbar select {
  height: 28px;
  min-height: 28px;
  padding: 3px 6px;
  font-size: 0.68rem;
  border-radius: 7px;
}

.admin-dashboard .admin-topbar .tab-btn,
.admin-dashboard .admin-topbar button {
  min-height: 56px;
  height: 56px;
  padding: 6px 14px;
  font-size: 1.32rem;
  border-radius: 14px;
}

.admin-dashboard .topbar-nav input[type="date"] {
  min-width: 236px;
  width: 236px;
  min-height: 56px;
  height: 56px;
  padding: 8px 14px;
  font-size: 1.12rem;
  border-radius: 14px;
}

.admin-dashboard #prevDayBtn,
.admin-dashboard #nextDayBtn {
  min-width: 84px;
  width: 84px;
  padding-inline: 0;
}

.admin-dashboard .drag-toggle {
  gap: 16px;
  padding: 0 8px 0 16px;
  min-height: 56px;
  border-radius: 999px;
}

.admin-dashboard .drag-toggle-label {
  font-size: 1.12rem;
}

.admin-dashboard .drag-toggle-slider {
  width: 84px;
  height: 48px;
}

.admin-dashboard .drag-toggle-slider::after {
  top: 6px;
  left: 6px;
  width: 36px;
  height: 36px;
}

.admin-dashboard .drag-toggle-switch input:checked + .drag-toggle-slider::after {
  transform: translateX(36px);
}

.admin-dashboard #staffFilter {
  width: 108px;
}

.admin-dashboard #serviceFilter {
  width: 116px;
}

.admin-dashboard #statusFilter {
  width: 92px;
}

.admin-dashboard #searchInput {
  width: 112px;
}

.admin-dashboard .admin-topbar select[multiple] {
  min-height: 28px;
  height: 28px;
}

.admin-dashboard .admin-topbar select[multiple] option {
  padding: 2px 4px;
}

.admin-dashboard .admin-topbar .suggest-wrap {
  width: auto;
}

.admin-notify-menu,
.sidebar-group-menu {
  border: 1px solid var(--lux-line);
  box-shadow: var(--lux-shadow);
}

.admin-dashboard .admin-notify-wrap {
  margin: 0;
}

.admin-dashboard .admin-notify-bell {
  position: relative;
  min-width: 40px;
  width: 40px;
  min-height: 40px;
  max-width: 40px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.admin-dashboard .admin-notify-bell .admin-notify-icon {
  line-height: 1;
  font-size: 18px;
}

.admin-dashboard .admin-notify-bell::after {
  content: none;
}

.admin-dashboard .admin-notify-menu.hidden {
  display: none;
}




/* Calendar staff rows: force equal top/bottom name row heights */
.admin-calendar {
  --staff-header-height: 64px;
}

.admin-calendar-col .staff-header-mini,
.admin-calendar-col .staff-footer-mini {
  height: var(--staff-header-height) !important;
  min-height: var(--staff-header-height) !important;
}

.admin-calendar-col .staff-header-mini {
  padding: 6px 20px 6px 10px !important;
  overflow: hidden;
}

.admin-calendar-col .staff-footer-mini {
  padding: 6px 10px !important;
  line-height: 1.1;
}

.admin-calendar-col .staff-header-meta {
  margin-top: 2px;
  height: 20px;
  min-height: 20px;
  overflow: hidden;
}

.admin-calendar-col .staff-name,
.admin-calendar-col .staff-footer-mini {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.1;
}

/* Admin grouped buttons: equal vertical alignment */
.admin-dashboard .grouped-nav {
  align-items: stretch;
}

.admin-dashboard .grouped-nav .sidebar-group-toggle,
.admin-dashboard .grouped-nav .sidebar-standalone {
  min-height: 40px;
  margin: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  box-sizing: border-box;
}

/* Keep BOOK/Reminder buttons hugging label width */
.admin-dashboard .grouped-nav .sidebar-standalone,
.admin-dashboard .grouped-nav #quickAddBtn,
.admin-dashboard .grouped-nav #reminderTomorrowBtn {
  display: inline-flex !important;
  width: fit-content !important;
  inline-size: max-content !important;
  min-width: 0 !important;
  max-width: none !important;
  flex: 0 0 auto;
  white-space: nowrap;
}

.admin-dashboard .grouped-nav #quickAddBtn,
.admin-dashboard .grouped-nav #reminderTomorrowBtn {
  padding-left: 8px !important;
  padding-right: 8px !important;
}


@media (max-width: 900px) {
  .admin-dashboard .admin-sidebar.admin-sidebar-inline {
    display: flex !important;
    align-items: center;
    width: 100%;
    padding-right: 10px !important;
  }

  .admin-dashboard .grouped-nav {
    gap: 6px;
    align-items: center;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
    min-width: 0;
    width: 100%;
  }

  .admin-dashboard .grouped-nav .sidebar-group,
  .admin-dashboard .grouped-nav .sidebar-standalone {
    flex: 0 0 auto;
  }

  .admin-dashboard .grouped-nav .sidebar-group-toggle,
  .admin-dashboard .grouped-nav .sidebar-standalone,
  .admin-dashboard .grouped-nav .tab-btn,
  .admin-dashboard .grouped-nav .sidebar-link {
    width: auto;
    min-height: 32px;
    padding: 6px 10px;
    font-size: 0.76rem;
    line-height: 1.2;
    border-radius: 10px;
  }

  .admin-dashboard .grouped-nav #quickAddBtn,
  .admin-dashboard .grouped-nav #reminderTomorrowBtn {
    padding-left: 4px !important;
    padding-right: 4px !important;
    letter-spacing: 0 !important;
  }

  .admin-dashboard .grouped-nav .sidebar-group-toggle {
    min-width: 0;
    padding-right: 24px;
  }

  .admin-dashboard .grouped-nav .sidebar-group-menu-portal {
    max-width: calc(100vw - 16px);
  }

  .admin-dashboard .admin-notify-bell {
    min-width: 32px;
    width: 32px;
    max-width: 32px;
    min-height: 32px;
    padding: 0;
  }

  .admin-dashboard .admin-topbar .tab-btn {
    width: auto;
    min-height: 32px;
    padding: 6px 10px;
    font-size: 0.76rem;
  }

  .admin-dashboard .admin-topbar {
    gap: 4px;
    padding: 6px 8px;
  }

  .admin-dashboard .admin-topbar .topbar-group.left,
  .admin-dashboard .admin-topbar .topbar-group.right {
    width: 100%;
    margin-left: 0;
    justify-content: flex-start;
  }

  .admin-dashboard #staffFilter,
  .admin-dashboard #serviceFilter,
  .admin-dashboard #statusFilter,
  .admin-dashboard #searchInput {
    width: 100%;
    max-width: 144px;
  }

  .admin-dashboard .topbar-switches,
  .admin-dashboard .topbar-nav {
    width: 100%;
    flex-wrap: wrap;
  }

  .admin-dashboard .topbar-nav input[type="date"] {
    min-width: 0;
    width: min(100%, 180px);
    min-height: 40px;
    height: 40px;
    font-size: 0.9rem;
  }

  .admin-dashboard #prevDayBtn,
  .admin-dashboard #nextDayBtn {
    min-width: 44px;
    width: 44px;
  }

  .admin-dashboard .drag-toggle {
    gap: 8px;
    padding: 0 6px 0 10px;
    min-height: 40px;
  }

  .admin-dashboard .drag-toggle-label {
    font-size: 0.86rem;
  }

  .admin-dashboard .drag-toggle-slider {
    width: 58px;
    height: 32px;
  }

  .admin-dashboard .drag-toggle-slider::after {
    top: 4px;
    left: 4px;
    width: 24px;
    height: 24px;
  }

  .admin-dashboard .drag-toggle-switch input:checked + .drag-toggle-slider::after {
    transform: translateX(26px);
  }

  .admin-dashboard .admin-notify-list {
    max-height: min(56vh, calc(100vh - 120px));
    -webkit-overflow-scrolling: touch;
  }

  body.admin-notify-open .admin-topbar,
  body.admin-notify-open .admin-calendar-panel,
  body.admin-notify-open .admin-sidebar,
  body.admin-notify-open .grouped-nav {
    z-index: 1 !important;
  }

  body.admin-notify-open .admin-notify-wrap {
    z-index: 6000 !important;
  }

  body.admin-notify-open .admin-notify-menu {
    z-index: 6001 !important;
  }
}
/* Owner accounts: keep each account on one table row (no wrapping). */
.owner-accounts .table-wrap {
  overflow-x: auto;
  overscroll-behavior-x: contain;
}

.owner-accounts .accounts-table {
  min-width: 1160px;
}

.owner-accounts .accounts-table th,
.owner-accounts .accounts-table td {
  padding: 6px 8px;
  vertical-align: middle;
  font-size: 0.72rem;
  white-space: nowrap;
}

.owner-accounts .accounts-table input,
.owner-accounts .accounts-table select {
  height: 28px;
  padding: 4px 6px;
  font-size: 0.8rem;
}

.owner-accounts .accounts-table input[data-editable],
.owner-accounts .accounts-table select[data-editable] {
  max-width: 180px;
}

.owner-accounts .accounts-table td:nth-child(2) input[data-editable] {
  max-width: 220px;
}

.owner-accounts .accounts-table td:nth-child(4) input[data-editable] {
  max-width: 220px;
}

.owner-accounts .accounts-table td:nth-child(8) input[data-editable] {
  max-width: none;
}

.owner-accounts .accounts-table .mini-btn {
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 0.7rem;
  line-height: 1.1;
}

.owner-accounts .accounts-table td:last-child {
  white-space: nowrap;
}

.owner-accounts .accounts-table td form {
  display: inline;
  margin: 0;
}
/* Loyal bookings: keep each booking on a single row and allow horizontal scrolling. */
.loyal-booking .table-wrap {
  overflow-x: auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.loyal-booking .loyal-bookings-table {
  width: max-content;
  min-width: 980px;
  table-layout: auto;
  border-collapse: collapse;
}

.loyal-booking .loyal-bookings-table thead th:nth-child(1),
.loyal-booking .loyal-bookings-table tbody td:nth-child(1) {
  width: 118px;
}

.loyal-booking .loyal-bookings-table thead th:nth-child(2),
.loyal-booking .loyal-bookings-table tbody td:nth-child(2) {
  width: 176px;
}

.loyal-booking .loyal-bookings-table thead th:nth-child(3),
.loyal-booking .loyal-bookings-table tbody td:nth-child(3) {
  width: 118px;
}

.loyal-booking .loyal-bookings-table thead th:nth-child(4),
.loyal-booking .loyal-bookings-table tbody td:nth-child(4) {
  width: 56px;
}

.loyal-booking .loyal-bookings-table thead th:nth-child(5),
.loyal-booking .loyal-bookings-table tbody td:nth-child(5) {
  width: 96px;
}

.loyal-booking .loyal-bookings-table thead th:nth-child(6),
.loyal-booking .loyal-bookings-table tbody td:nth-child(6) {
  width: 108px;
}

.loyal-booking .loyal-bookings-table th,
.loyal-booking .loyal-bookings-table td {
  padding: 4px 4px;
  vertical-align: middle;
  font-size: 0.64rem;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
}



/* Loyal bookings: shrink Service (Tjanst) cell height to ~70% of row padding. */
.loyal-booking .loyal-bookings-table tbody td:nth-child(2) {
  padding-top: 6px;
  padding-bottom: 6px;
}

/* Stripe on the whole row to keep background color consistent across cells. */
.loyal-booking .loyal-bookings-table tbody tr:nth-child(even) {
  background: #fffcf8;
}

.loyal-booking .loyal-bookings-table tbody td {
  background: transparent;
  height: 100%;
}

.loyal-booking .loyal-bookings-table td .row {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0 4px 0 0;
}

.loyal-booking .loyal-bookings-table td .row:last-child {
  margin-bottom: 0;
  margin-right: 0;
}

.loyal-booking .loyal-bookings-table input,
.loyal-booking .loyal-bookings-table select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: auto;
  min-height: 26px;
  padding: 2px 4px;
  font-size: 0.68rem;
  vertical-align: top;
}

.loyal-booking .loyal-bookings-table .loyal-date {
  min-width: 0;
}

.loyal-booking .loyal-bookings-table .loyal-time {
  min-width: 0;
  font-size: 0.62rem;
  line-height: 1;
}

.loyal-booking .loyal-bookings-table .loyal-notes {
  width: 100%;
  min-width: 0;
}

.loyal-booking .loyal-bookings-table .loyal-staff-display {
  display: block;
  margin: 0 0 4px;
}

.loyal-booking .loyal-bookings-table .loyal-services {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: flex-start;
  max-height: 64px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 2px;
}

.loyal-booking .loyal-bookings-table .loyal-services .check-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 3px;
  width: 100%;
  min-height: 24px;
  padding: 3px 4px;
  text-align: left;
  flex: 0 0 100%;
}

.loyal-booking .loyal-bookings-table .loyal-services .check-item input {
  width: 14px;
  min-width: 14px;
  height: 14px;
  min-height: 14px;
  margin: 0;
}

.loyal-booking .loyal-bookings-table .loyal-services .check-item span {
  display: block;
  width: 100%;
  font-size: 0.58rem;
  line-height: 1.15;
  white-space: normal;
  word-break: break-word;
  text-align: left;
}

.loyal-booking .loyal-bookings-table .loyal-staff-request-wrap,
.loyal-booking .loyal-bookings-table .loyal-staff-select {
  display: flex;
  width: 100%;
  vertical-align: top;
}

.loyal-booking .loyal-bookings-table .loyal-staff-request-wrap {
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 3px;
  width: 100%;
  max-width: none;
  padding: 4px 5px;
  margin-bottom: 4px;
  text-align: left;
}

.loyal-booking .loyal-bookings-table .loyal-staff-request-wrap input {
  width: 16px;
  min-width: 16px;
  height: 16px;
  min-height: 16px;
  margin: 0;
}

.loyal-booking .loyal-bookings-table .loyal-staff-request-wrap span {
  display: block;
  width: 100%;
  font-size: 0.58rem;
  line-height: 1.2;
  text-align: left;
}

.loyal-booking .loyal-bookings-table td .notice {
  display: block;
  padding: 0;
  margin: 4px 0 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  font-size: 0.62rem;
}

.loyal-booking .loyal-bookings-table .loyal-actions-cell {
  min-width: 0;
}

.loyal-booking .loyal-bookings-table .loyal-action-group {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  align-items: center;
}

.loyal-booking .loyal-bookings-table .mini-btn {
  padding: 3px 5px;
  border-radius: 8px;
  font-size: 0.58rem;
  line-height: 1.1;
  flex: 0 0 auto;
  min-height: 24px;
}

@media (max-width: 900px) {
  .loyal-booking .loyal-bookings-table {
    table-layout: auto;
  }

  .loyal-booking .loyal-bookings-table th,
  .loyal-booking .loyal-bookings-table td {
    padding: 8px 6px;
    font-size: 0.68rem;
  }

  .loyal-booking .loyal-bookings-table .mini-btn {
    flex: 1 1 120px;
  }
}


/* SMS jobs test page */
.sms-jobs-shell {
  width: min(1080px, calc(100% - 24px));
}

.smsjobs-hint {
  font-size: 0.82rem;
  color: #6f5840;
}

.smsjobs-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

.smsjobs-form-grid label,
.smsjobs-message-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 700;
}

.smsjobs-form-grid input,
.smsjobs-limit-input {
  min-height: 40px;
  border: 1px solid #d8c2a5;
  border-radius: 10px;
  padding: 8px 10px;
  font: inherit;
}

.smsjobs-title {
  font-weight: 700;
  color: #2d2d2d;
}

.smsjobs-meta-grid {
  margin: 8px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 6px 12px;
  color: #5f5f5f;
  font-size: 0.88rem;
}

.smsjobs-meta-full {
  grid-column: 1 / -1;
}

.sms-status.smsjobs-status-queued {
  background: #fdf1df;
  color: #8a5a2d;
}

.sms-status.smsjobs-status-claimed {
  background: #e6eefc;
  color: #2f5f9e;
}

.sms-status.smsjobs-status-sent {
  background: #dff3e5;
  color: #1f6b3a;
}

.sms-status.smsjobs-status-failed {
  background: #ffe5e5;
  color: #a33a3a;
}

.sms-status.smsjobs-status-cancelled {
  background: #ececec;
  color: #5f5f5f;
}
.smsjobs-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.sms-delivery-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: lowercase;
}

.sms-delivery-pill.smsjobs-delivery-pending {
  background: #fff3d9;
  color: #8a6427;
}

.sms-delivery-pill.smsjobs-delivery-delivered {
  background: #dff3e5;
  color: #1f6b3a;
}

.sms-delivery-pill.smsjobs-delivery-failed {
  background: #ffe5e5;
  color: #a33a3a;
}

#adminBookingModal .book-modal .row {
  gap: 1px;
}

#adminBookingModal .calendar-summary {
  margin-top: 2px;
  font-size: 0.76rem;
}

#adminBookingModal .book-modal input,
#adminBookingModal .book-modal select,
#adminBookingModal .book-modal textarea {
  padding: 7px 10px;
  font-size: 0.78rem;
  line-height: 1.2;
}

#adminBookingModal .book-modal textarea {
  min-height: 58px;
}

#adminBookingModal .book-modal input[type="file"] {
  padding-top: 6px;
  padding-bottom: 6px;
}



















/* Admin booking grid theme variables */
body.admin-dashboard {
  --booking-grid-column-bg: #ffffff;
  --booking-grid-hour-tint: #fafafa;
  --booking-grid-slot-line: #ececec;
  --booking-grid-current-hour-bg: #d4f491;
  --booking-grid-staff-header-text: #2e241e;
  --booking-grid-staff-avatar-bg: #ffffff;
  --booking-grid-staff-avatar-text: #553b22;
  --booking-grid-day-off-label-bg: #ffffff;
  --booking-grid-day-off-label-text: #5f5f5f;
  --booking-grid-day-off-label-border: #d6d6d6;
  --booking-grid-event-bg: #ffffff;
  --booking-grid-event-border: #5d5148;
  --booking-grid-event-text: #2e241e;
  --booking-grid-awaiting-bg: #ffffff;
  --booking-grid-awaiting-border: #1f1f1f;
  --booking-grid-awaiting-text: #000000;
  --booking-grid-required-border: #c00000;
  --booking-grid-required-text: #c00000;
  --booking-grid-admin-pick-border: #c08b00;
  --booking-grid-admin-pick-text: #c08b00;
  --booking-grid-random-pick-border: #0f6ddf;
  --booking-grid-random-pick-text: #0f6ddf;
  --booking-grid-draft-bg: #f3f3f3;
  --booking-grid-draft-border: #5d5148;
  --booking-grid-draft-chip-bg: #f3f3f3;
  --booking-grid-draft-chip-text: #2e241e;
  --booking-grid-confirmed-bg: #fafafa;
  --booking-grid-confirmed-border: #5d5148;
  --booking-grid-in-progress-bg: #f6f6f6;
  --booking-grid-in-progress-border: #5d5148;
  --booking-grid-completed-bg: #f1f1f1;
  --booking-grid-completed-border: #5d5148;
  --booking-grid-cancelled-bg: #f6f6f6;
  --booking-grid-cancelled-border: #5d5148;
  --booking-grid-vip-chip-bg: #f3f3f3;
  --booking-grid-vip-chip-text: #2e241e;
  --booking-grid-off-badge-bg: #f3f3f3;
  --booking-grid-off-badge-text: #4a4a4a;
  --booking-grid-unlock-bg: #f3f3f3;
  --booking-grid-unlock-text: #2e241e;
  --booking-grid-unlock-border: #d6d6d6;
}

.admin-dashboard .admin-calendar-col {
  background: var(--booking-grid-column-bg);
}

.admin-dashboard .admin-calendar-col.is-note-lane {
  background: #f6f4f0;
}

.admin-dashboard .admin-calendar-col.is-note-lane .staff-header-mini {
  background: #ece8e1;
}

.admin-dashboard .admin-calendar-col.is-note-lane .staff-avatar {
  background: #ffffff;
  color: #5b5045;
}

.admin-dashboard .admin-calendar-col.is-note-lane .staff-name {
  color: #463b31;
}

.admin-dashboard .admin-calendar-col .calendar-col-lines {
  background-image:
    repeating-linear-gradient(
      to bottom,
      var(--booking-grid-hour-tint) 0,
      var(--booking-grid-hour-tint) calc(var(--slot-height, 18px) * 4),
      rgba(255, 255, 255, 0) calc(var(--slot-height, 18px) * 4),
      rgba(255, 255, 255, 0) calc(var(--slot-height, 18px) * 8)
    ),
    linear-gradient(to bottom, var(--booking-grid-slot-line) 1px, transparent 1px);
  background-size: 100% calc(var(--slot-height, 18px) * 8), 100% var(--slot-height, 18px);
}

.admin-dashboard .admin-calendar-col.is-day-off .calendar-col-lines {
  background-image:
    repeating-linear-gradient(
      135deg,
      rgba(0, 0, 0, 0.10) 0,
      rgba(0, 0, 0, 0.10) 8px,
      rgba(255, 255, 255, 0) 8px,
      rgba(255, 255, 255, 0) 22px
    ),
    repeating-linear-gradient(
      to bottom,
      var(--booking-grid-hour-tint) 0,
      var(--booking-grid-hour-tint) calc(var(--slot-height, 18px) * 4),
      rgba(255, 255, 255, 0) calc(var(--slot-height, 18px) * 4),
      rgba(255, 255, 255, 0) calc(var(--slot-height, 18px) * 8)
    ),
    linear-gradient(to bottom, var(--booking-grid-slot-line) 1px, transparent 1px);
  background-size: auto, 100% calc(var(--slot-height, 18px) * 8), 100% var(--slot-height, 18px);
}

.admin-dashboard .staff-header-mini {
  background: var(--staff-header-color, #ffffff);
}

.admin-dashboard .staff-name {
  color: var(--booking-grid-staff-header-text);
}

.admin-dashboard .staff-avatar {
  background: var(--booking-grid-staff-avatar-bg);
  color: var(--booking-grid-staff-avatar-text);
}

.admin-dashboard .hour-band-watermark-text {
  color: #000000;
}

.admin-dashboard .day-off-label {
  color: var(--booking-grid-day-off-label-text);
  background: var(--booking-grid-day-off-label-bg);
  border-color: var(--booking-grid-day-off-label-border);
}

.admin-dashboard .calendar-event {
  background: var(--booking-grid-event-bg);
  border-color: var(--booking-grid-event-border);
  color: var(--booking-grid-event-text);
}

.admin-dashboard .calendar-event .event-title,
.admin-dashboard .calendar-event .event-time,
.admin-dashboard .calendar-event .event-meta {
  color: var(--booking-grid-event-text);
}

.admin-dashboard .calendar-event.awaiting-black {
  background: var(--booking-grid-awaiting-bg);
  border-color: var(--booking-grid-awaiting-border);
  color: var(--booking-grid-awaiting-text);
}

.admin-dashboard .calendar-event.awaiting-black .event-title,
.admin-dashboard .calendar-event.awaiting-black .event-time,
.admin-dashboard .calendar-event.awaiting-black .event-meta {
  color: var(--booking-grid-awaiting-text);
}

.admin-dashboard .calendar-event.staff-pick-required {
  border-color: var(--booking-grid-required-border);
  color: var(--booking-grid-required-text);
}

.admin-dashboard .calendar-event.staff-pick-required .event-title,
.admin-dashboard .calendar-event.staff-pick-required .event-time,
.admin-dashboard .calendar-event.staff-pick-required .event-meta {
  color: var(--booking-grid-required-text);
}

.admin-dashboard .calendar-event.staff-pick-admin {
  border-color: var(--booking-grid-admin-pick-border);
  color: var(--booking-grid-admin-pick-text);
}

.admin-dashboard .calendar-event.staff-pick-admin .event-title,
.admin-dashboard .calendar-event.staff-pick-admin .event-time,
.admin-dashboard .calendar-event.staff-pick-admin .event-meta {
  color: var(--booking-grid-admin-pick-text);
}

.admin-dashboard .calendar-event.staff-pick-random {
  border-color: var(--booking-grid-random-pick-border);
  color: var(--booking-grid-random-pick-text);
}

.admin-dashboard .calendar-event.staff-pick-random .event-title,
.admin-dashboard .calendar-event.staff-pick-random .event-time,
.admin-dashboard .calendar-event.staff-pick-random .event-meta {
  color: var(--booking-grid-random-pick-text);
}

.admin-dashboard .calendar-event.is-draft {
  background: var(--booking-grid-draft-bg);
  border-color: var(--booking-grid-draft-border);
}

.admin-dashboard .calendar-event.is-draft .event-name::before {
  background: var(--booking-grid-draft-chip-bg);
  color: var(--booking-grid-draft-chip-text);
}

.admin-dashboard .calendar-event.status-confirmed {
  background: var(--booking-grid-confirmed-bg);
  border-color: var(--booking-grid-confirmed-border);
}

.admin-dashboard .calendar-event.status-in_progress {
  background: var(--booking-grid-in-progress-bg);
  border-color: var(--booking-grid-in-progress-border);
}

.admin-dashboard .calendar-event.status-completed,
.admin-dashboard .calendar-event.is-completed {
  background: var(--booking-grid-completed-bg) !important;
  border-color: var(--booking-grid-completed-border) !important;
}

.admin-dashboard .calendar-event.status-cancelled {
  background: var(--booking-grid-cancelled-bg);
  border-color: var(--booking-grid-cancelled-border);
}

.admin-dashboard .vip-chip {
  background: var(--booking-grid-vip-chip-bg);
  color: var(--booking-grid-vip-chip-text);
}

.admin-dashboard .staff-off-badge {
  background: var(--booking-grid-off-badge-bg);
  color: var(--booking-grid-off-badge-text);
}

.admin-dashboard .staff-unlock-btn {
  background: var(--booking-grid-unlock-bg);
  color: var(--booking-grid-unlock-text);
  border-color: var(--booking-grid-unlock-border);
}









