﻿
.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 12, 20, 1);
  z-index: 1000;
}

@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: 800;
  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: 800;
  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: hidden;
  -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: 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: #8a7a67;
}

.two-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.table-wrap {
  overflow: 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: 800;
  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: 800;
  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: var(--header-h-mobile);
    min-height: var(--header-h-mobile);
    padding: 0 12px;
  }
.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: 62vw;
    width: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
  }

  .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: auto;
  background: #ffffff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}


.book-modal {
  width: min(900px, 94vw);
  background: linear-gradient(180deg, #fffefb 0%, #f7f1e8 100%);
}


.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(810px, 84.6vw);
  max-height: 84.6vh;
}

.modal-kicker {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #9c7a4e;
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.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: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6f5531;
}

.book-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.book-modal .form {
  gap: 8px;
}

.book-modal .row {
  gap: 3px;
}

.book-modal input,
.book-modal select,
.book-modal textarea {
  padding: 9px 10px;
  font-size: 0.82rem;
}

.book-modal .checkbox-list {
  max-height: 140px;
}

.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: 180px;
  overflow: 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;
}

.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: 900px) {
  .book-grid {
    grid-template-columns: 1fr;
  }
}

.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-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: 800;
  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;
}
\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: 800;
  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: 800;
  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: 800;
  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: 800;
  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: 800;
  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;
}

@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: transparent;
  border-right: 1px solid var(--line);
}

.calendar-time .time-slot {
  height: var(--slot-height, 16px);
  padding-right: 8px;
  font-size: 0.75rem;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.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.84rem;
  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: #8a7a67;
}

.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: 800;
  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: 800;
  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: 2px solid rgba(184, 146, 91, 0.5);
}

.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(201, 221, 233, 0.22);
  border: 1px dashed rgba(108, 140, 162, 0.35);
  pointer-events: none;
}

.day-off-label {
  position: absolute;
  top: 10px;
  left: 8px;
  right: 8px;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #8a7a67;
  background: rgba(255, 255, 255, 0.75);
  border: 1px dashed rgba(160, 140, 120, 0.5);
  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 #c00000;
  color: #c00000;
  font-weight: 800;
}

.calendar-event.staff-pick-required .event-time,
.calendar-event.staff-pick-required .event-meta,
.calendar-event.staff-pick-required .event-title {
  color: #c00000;
  font-weight: 800;
}

.calendar-event.staff-pick-admin {
  background: transparent;
  border: 1px solid #c08b00;
  color: #c08b00;
}

.calendar-event.staff-pick-random {
  background: transparent;
  border: 1px solid #0f6ddf;
  color: #0f6ddf;
}

.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: 800;
}

.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: 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(51, 102, 204, 0.18);
  border: 1px solid rgba(51, 102, 204, 0.45);
}

.calendar-event.status-in_progress {
  background: rgba(196, 106, 29, 0.18);
  border: 1px solid rgba(196, 106, 29, 0.45);
}

.calendar-event.status-completed {
  background: rgba(47, 106, 66, 0.16);
  border: 1px solid rgba(47, 106, 66, 0.4);
}

.calendar-event.status-cancelled {
  background: rgba(159, 47, 47, 0.16);
  border: 1px solid rgba(159, 47, 47, 0.4);
}

.calendar-event.dragging {
  opacity: 0.85;
  cursor: grabbing;
}

.header-cell .header-day {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.header-cell .day-num {
  font-size: 1.35rem;
  font-weight: 800;
  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: auto;
}

.calendar-body {
  overflow: 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: 800;
  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: 800;
  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.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: 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;
}

.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: 70px minmax(0, 1fr);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: auto;
  max-height: calc(100vh - 190px);
  background: transparent;
  min-height: 680px;
}

.admin-calendar .calendar-time {
  border-right: 1px solid var(--line);
  background: transparent;
  padding-top: calc(var(--staff-header-height) + 12px);
  box-sizing: border-box;
}

.admin-calendar .time-slot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 8px;
  font-size: 0.75rem;
  color: var(--ink-soft);
}

.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: color-mix(in srgb, var(--staff-color, #f6e7d9) 45%, #ffffff 55%);
}

.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: var(--staff-color, #f6e7d9);
  border-bottom: 1px solid rgba(231, 220, 205, 0.9);
}
.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: color-mix(in srgb, var(--staff-color, #f6e7d9) 88%, #ffffff 12%);
  border-top: 1px solid rgba(231, 220, 205, 0.9);
  font-size: 0.76rem;
  font-weight: 800;
  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: 800;
  color: #553b22;
}

.staff-name {
  font-size: 0.85rem;
  font-weight: 800;
  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: linear-gradient(to bottom, rgba(231, 220, 205, 0.45) 1px, transparent 1px);
  background-size: 100% var(--slot-height, 14px);
  pointer-events: none;
}

.calendar-events {
  position: relative;
  margin-top: var(--staff-header-height);
  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: #ececec !important;
  border: 1px solid #cfcfcf !important;
  color: #5a5a5a;
}

.calendar-event.is-new {
  border: 2px solid #c28b55;
}

.calendar-event.is-vip {
  box-shadow: 0 0 0 2px rgba(210, 149, 59, 0.4), 0 8px 18px rgba(22, 16, 12, 0.18);
}

.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: 800;
  background: #f4d59e;
  color: #6b4a1f;
}

.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: #5a5a5a;
  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: rgba(140, 130, 120, 0.08);
}

.admin-calendar-col.is-day-off .calendar-col-lines {
  background-image:
    repeating-linear-gradient(135deg, rgba(160, 140, 120, 0.28), rgba(160, 140, 120, 0.28) 7px, rgba(255, 255, 255, 0) 7px, rgba(255, 255, 255, 0) 14px),
    linear-gradient(to bottom, rgba(200, 190, 180, 0.35) 1px, transparent 1px);
}

.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: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(140, 130, 120, 0.2);
  color: #6e5a46;
}

.staff-unlock-btn {
  margin-left: 0;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(220, 150, 60, 0.18);
  color: #7a4b12;
  border: 1px solid rgba(160, 110, 40, 0.35);
}

.staff-unlock-btn:hover {
  background: rgba(220, 150, 60, 0.28);
}



.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) */

.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 24px;
}
.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;
}

.grouped-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  overflow: visible;
  white-space: nowrap;
  position: relative;
  z-index: 1400;
}

.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 {
  content: '▸';
  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: 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: auto;
  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;
}


.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;
}

.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.84rem;
  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-notify-menu,
.sidebar-group-menu {
  border: 1px solid var(--lux-line);
  box-shadow: var(--lux-shadow);
}




/* 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;
}


@media (max-width: 900px) {
  .admin-dashboard .grouped-nav {
    gap: 6px;
    align-items: center;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
  }

  .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 .sidebar-group-toggle {
    min-width: 0;
    padding-right: 24px;
  }

  .admin-dashboard .admin-topbar .tab-btn {
    width: auto;
    min-height: 32px;
    padding: 6px 10px;
    font-size: 0.76rem;
  }
}
