@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:ital,opsz,wght@0,6..96,400;0,6..96,600;1,6..96,400&family=Outfit:wght@300;400;500;600&display=swap');

:root {
  --cream: #f7f4ee;
  --parchment: #ede7dc;
  --ink: #1a1614;
  --brown: #3d362e;
  --gold: #b8a07a;
  --muted: #8a8175;
}

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: Outfit, system-ui, sans-serif;
}

.font-serif { font-family: "Bodoni Moda", Georgia, serif; }
.text-cream { color: var(--cream); }
.text-ink { color: var(--ink); }
.text-brown { color: var(--brown); }
.text-gold { color: var(--gold); }
.text-muted { color: var(--muted); }
.bg-cream { background: var(--cream); }
.bg-parchment { background: var(--parchment); }
.bg-ink { background: var(--ink); }

.book-field {
  width: 100%;
  background: transparent;
  border: 1px solid rgba(247, 244, 238, 0.25);
  padding: 0.85rem 1rem;
  color: #f7f4ee;
  outline: none;
}
.book-field:focus { border-color: #b8a07a; }
.book-field option { color: #1a1614; }
.book-prefix {
  display: flex;
  align-items: center;
  border: 1px solid rgba(247, 244, 238, 0.25);
  border-right: 0;
  padding: 0 0.9rem;
  color: #b8a07a;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.book-field-phone { border-left: 0; }

.admin-input {
  width: 100%;
  border: 1px solid rgba(26, 22, 20, 0.15);
  background: #fff;
  padding: 0.7rem 0.85rem;
  font-size: 0.9rem;
  outline: none;
}
.admin-input:focus { border-color: #1a1614; }

/* Form left + table right (aligned headers) */
.admin-split {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}
@media (min-width: 1024px) {
  .admin-split {
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 1.5rem;
  }
}
.admin-panel {
  background: #fff;
  min-width: 0;
  border: 1px solid rgba(26, 22, 20, 0.06);
}
.admin-panel-head {
  display: flex;
  align-items: center;
  min-height: 3rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(26, 22, 20, 0.1);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #8a8175;
  box-sizing: border-box;
}
.admin-panel-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.admin-table-wrap {
  overflow-x: auto;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.875rem;
}
.admin-table thead th {
  height: 3rem;
  padding: 0 1rem;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #8a8175;
  border-bottom: 1px solid rgba(26, 22, 20, 0.1);
  white-space: nowrap;
  vertical-align: middle;
  box-sizing: border-box;
}
.admin-table tbody td {
  padding: 0.9rem 1rem;
  border-top: 1px solid rgba(26, 22, 20, 0.08);
  vertical-align: middle;
}
.admin-table tbody tr:first-child td {
  border-top: 0;
}
.admin-table td.actions-cell {
  width: 1%;
  white-space: nowrap;
}
.admin-form-actions {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 0.5rem;
  margin-top: 0.25rem;
}
.admin-form-actions .btn,
.admin-form-actions a.btn {
  width: 100%;
}
.btn-actions {
  display: inline-grid;
  grid-template-columns: 5.5rem 5.5rem;
  gap: 0.45rem;
  vertical-align: middle;
}
.btn-actions form {
  display: block;
  margin: 0;
  width: 5.5rem;
}
.btn-actions .btn,
.btn-actions form .btn {
  width: 5.5rem;
  min-width: 5.5rem;
  max-width: 5.5rem;
  padding-left: 0;
  padding-right: 0;
  box-sizing: border-box;
}
.opt-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.opt-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.25rem 0.55rem;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: #ede7dc;
  color: #3d362e;
}
.opt-pill.is-off {
  background: #f4f0e8;
  color: #a39a8e;
}
.source-pill {
  display: inline-flex;
  border-radius: 999px;
  padding: 0.25rem 0.55rem;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(184, 160, 122, 0.18);
  color: #6e5c3f;
}

/* Colored status pill selects */
.status-select {
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  width: auto;
  min-width: 9.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.5rem 2rem 0.5rem 0.9rem;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.2;
  cursor: pointer;
  outline: none;
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 0.65rem;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.status-select:focus {
  box-shadow: 0 0 0 3px rgba(184, 160, 122, 0.25);
}
.status-select.is-pending {
  color: #92400e;
  background-color: #fffbeb;
  border-color: #fcd34d;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%2392400e' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
}
.status-select.is-confirmed {
  color: #065f46;
  background-color: #ecfdf5;
  border-color: #6ee7b7;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%23065f46' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
}
.status-select.is-completed {
  color: #1a1614;
  background-color: #ede7dc;
  border-color: #cfc7bb;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%231a1614' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
}
.status-select.is-cancelled {
  color: #991b1b;
  background-color: #fef2f2;
  border-color: #fca5a5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%23991b1b' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
}
.status-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.45rem 0.85rem;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.status-badge.is-pending { color: #92400e; background: #fffbeb; border-color: #fcd34d; }
.status-badge.is-confirmed { color: #065f46; background: #ecfdf5; border-color: #6ee7b7; }
.status-badge.is-completed { color: #1a1614; background: #ede7dc; border-color: #cfc7bb; }
.status-badge.is-cancelled { color: #991b1b; background: #fef2f2; border-color: #fca5a5; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.55rem 1rem;
  min-height: 2rem;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-add {
  background: #b8a07a;
  color: #1a1614;
  border-color: #b8a07a;
}
.btn-add:hover { background: #a89068; }
.btn-edit {
  background: transparent;
  color: #3d362e;
  border-color: rgba(61, 54, 46, 0.35);
}
.btn-edit:hover {
  background: #1a1614;
  color: #f7f4ee;
  border-color: #1a1614;
}
.btn-update, .btn-save {
  background: #1a1614;
  color: #f7f4ee;
  border-color: #1a1614;
}
.btn-update:hover, .btn-save:hover { background: #2c2622; }
.btn-delete {
  background: rgba(159, 29, 29, 0.08);
  color: #9f1d1d;
  border-color: rgba(159, 29, 29, 0.28);
}
.btn-delete:hover {
  background: #9f1d1d;
  color: #fff;
  border-color: #9f1d1d;
}
.btn-cancel {
  background: transparent;
  color: #8a8175;
  border-color: #cfc7bb;
}
.btn-cancel:hover { color: #1a1614; border-color: #1a1614; }
.btn-send {
  background: #1a1614;
  color: #b8a07a;
  border-color: #1a1614;
}
.btn-send:hover { color: #f7f4ee; }
.btn-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  align-items: stretch;
  gap: 0.5rem;
  width: 100%;
}
.btn-row form {
  display: flex;
  margin: 0;
  width: 100%;
}
.btn-row > .btn,
.btn-row form > .btn {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

@keyframes logo-breathe {
  0%, 100% { opacity: 0.45; transform: scale(0.96); }
  50% { opacity: 1; transform: scale(1); }
}
.logo-loader { animation: logo-breathe 1.4s ease-in-out infinite; }

.site-header.is-scrolled {
  border-bottom: 1px solid rgba(26, 22, 20, 0.1);
  background: rgba(247, 244, 238, 0.95);
  backdrop-filter: blur(8px);
}

/* Hide scrollbar but keep scroll on admin sidebar */
.admin-sidebar-nav {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.admin-sidebar-nav::-webkit-scrollbar {
  display: none;
}

/* Admin shell — responsive sidebar */
.admin-shell {
  min-height: 100vh;
}
@media (min-width: 1024px) {
  .admin-shell {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    height: 100vh;
    overflow: hidden;
  }
}
.admin-mobile-bar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 3.5rem;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid rgba(26, 22, 20, 0.08);
  background: rgba(244, 240, 232, 0.96);
  backdrop-filter: blur(8px);
}
.admin-menu-btn {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.28rem;
  width: 2.35rem;
  height: 2.35rem;
  padding: 0;
  border: 1px solid rgba(26, 22, 20, 0.12);
  background: #fff;
  cursor: pointer;
}
.admin-menu-btn span {
  display: block;
  width: 1rem;
  height: 1px;
  margin: 0 auto;
  background: #1a1614;
}
.admin-mobile-brand {
  flex-shrink: 0;
}
.admin-mobile-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8a8175;
}
.admin-sidebar-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  background: rgba(26, 22, 20, 0.55);
}
.admin-sidebar-backdrop.is-open {
  display: block;
}
.admin-sidebar {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
@media (max-width: 1023px) {
  .admin-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 50;
    width: min(280px, 86vw);
    max-width: 100%;
    transform: translateX(-100%);
    transition: transform 0.24s ease;
    box-shadow: 18px 0 40px rgba(26, 22, 20, 0.22);
  }
  .admin-sidebar.is-open {
    transform: translateX(0);
  }
}
@media (min-width: 1024px) {
  .admin-sidebar {
    height: 100vh;
  }
}
.admin-menu-close {
  border: 0;
  background: transparent;
  color: #d9d2c8;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.15rem;
}
.admin-menu-close:hover {
  color: #f7f4ee;
}
body.admin-nav-open {
  overflow: hidden;
}
.admin-main {
  min-width: 0;
  min-height: calc(100vh - 3.5rem);
  padding: 1.25rem 1rem 2rem;
  overflow-x: auto;
}
@media (min-width: 640px) {
  .admin-main {
    padding: 1.5rem 1.25rem 2rem;
  }
}
@media (min-width: 1024px) {
  .admin-main {
    min-height: 0;
    height: 100vh;
    padding: 2rem 2.5rem;
    overflow-y: auto;
  }
}

/* Admin modal */
.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}
.admin-modal.is-open {
  display: flex;
}
.admin-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 22, 20, 0.45);
  backdrop-filter: blur(2px);
}
.admin-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  max-height: calc(100vh - 2.5rem);
  overflow: auto;
  box-shadow: 0 24px 60px rgba(26, 22, 20, 0.2);
}
.admin-modal-dialog.is-wide {
  width: min(100%, 720px);
}
.admin-modal .admin-panel-head {
  justify-content: space-between;
  gap: 1rem;
}
.admin-modal-close {
  border: 0;
  background: transparent;
  color: #8a8175;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.15rem;
}
.admin-modal-close:hover {
  color: #1a1614;
}

/* DataTables — soft luxury NŪDO theme */
div.dt-container {
  padding: 1.1rem 1.15rem 1.25rem;
  font-family: Outfit, system-ui, sans-serif;
}
div.dt-container .dt-layout-row {
  margin: 0 0 1rem;
  align-items: center;
  gap: 0.75rem;
}
div.dt-container .dt-layout-row:last-child {
  margin-bottom: 0;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(26, 22, 20, 0.08);
}
div.dt-container .dt-search {
  display: flex;
  align-items: center;
}
div.dt-container .dt-search input {
  width: min(100%, 16rem);
  border: 1px solid rgba(184, 160, 122, 0.45);
  background: #f7f4ee;
  color: #1a1614;
  padding: 0.65rem 0.95rem;
  font-size: 0.875rem;
  border-radius: 999px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
div.dt-container .dt-search input::placeholder {
  color: #8a8175;
  letter-spacing: 0.04em;
}
div.dt-container .dt-search input:focus {
  border-color: #b8a07a;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(184, 160, 122, 0.2);
}
div.dt-container .dt-length select {
  border: 1px solid rgba(26, 22, 20, 0.12);
  background: #fff;
  color: #1a1614;
  padding: 0.55rem 2rem 0.55rem 0.85rem;
  font-size: 0.8rem;
  border-radius: 999px;
  outline: none;
  cursor: pointer;
}
div.dt-container .dt-length select:focus {
  border-color: #b8a07a;
  box-shadow: 0 0 0 3px rgba(184, 160, 122, 0.18);
}
div.dt-container .dt-info,
div.dt-container .dt-length {
  font-size: 0.78rem;
  color: #8a8175;
  letter-spacing: 0.02em;
}
div.dt-container .dt-paging {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: flex-end;
}
div.dt-container .dt-paging .dt-paging-button {
  border: 1px solid rgba(184, 160, 122, 0.35) !important;
  background: #f7f4ee !important;
  color: #3d362e !important;
  border-radius: 999px !important;
  padding: 0.4rem 0.85rem !important;
  margin: 0 !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  min-width: 2rem;
  box-shadow: none !important;
}
div.dt-container .dt-paging .dt-paging-button:hover:not(.disabled):not(.current) {
  background: #fff !important;
  border-color: #b8a07a !important;
  color: #1a1614 !important;
}
div.dt-container .dt-paging .dt-paging-button.current {
  background: #b8a07a !important;
  border-color: #b8a07a !important;
  color: #1a1614 !important;
}
div.dt-container .dt-paging .dt-paging-button.disabled {
  opacity: 0.35 !important;
  cursor: default !important;
}
div.dt-container .dt-scroll-body,
div.dt-container .dt-scroll {
  border: 0 !important;
}
div.dt-container table.dataTable {
  border-collapse: collapse !important;
  width: 100% !important;
  margin: 0 !important;
}
div.dt-container table.dataTable thead > tr > th,
div.dt-container table.dataTable thead > tr > td {
  background: #f7f4ee !important;
  color: #8a8175 !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
  border-bottom: 1px solid rgba(184, 160, 122, 0.35) !important;
  border-top: 0 !important;
  padding: 0.95rem 1rem !important;
  vertical-align: middle !important;
}
div.dt-container table.dataTable thead > tr > th.dt-ordering-asc span.dt-column-order::before,
div.dt-container table.dataTable thead > tr > th.dt-ordering-desc span.dt-column-order::before,
div.dt-container table.dataTable thead > tr > th.dt-orderable-asc span.dt-column-order::before,
div.dt-container table.dataTable thead > tr > th.dt-orderable-desc span.dt-column-order::before {
  opacity: 0.55;
}
div.dt-container table.dataTable tbody > tr {
  background: #fff !important;
  transition: background-color 0.15s ease;
}
div.dt-container table.dataTable tbody > tr:hover > * {
  background: rgba(247, 244, 238, 0.85) !important;
  box-shadow: none !important;
}
div.dt-container table.dataTable tbody > tr > td {
  border-top: 1px solid rgba(26, 22, 20, 0.06) !important;
  border-bottom: 0 !important;
  padding: 0.95rem 1rem !important;
  vertical-align: middle !important;
  color: #1a1614;
  font-size: 0.875rem;
  background: transparent !important;
  box-shadow: none !important;
}
div.dt-container table.dataTable.stripe > tbody > tr:nth-child(odd) > *,
div.dt-container table.dataTable.display > tbody > tr:nth-child(odd) > *,
div.dt-container table.dataTable.hover > tbody > tr:hover > *,
div.dt-container table.dataTable.order-column > tbody tr > .sorting_1,
div.dt-container table.dataTable.order-column > tbody tr > .sorting_2,
div.dt-container table.dataTable.order-column > tbody tr > .sorting_3 {
  box-shadow: none !important;
}
div.dt-container table.dataTable.stripe > tbody > tr:nth-child(odd) {
  background: #fcfaf7 !important;
}
.admin-panel.admin-table-wrap {
  overflow: hidden;
}
.admin-panel.admin-table-wrap > .admin-panel-head + div.dt-container,
.admin-panel.admin-table-wrap > div.dt-container {
  border-top: 0;
}

/* Details link rows */
.link-rows {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.link-row {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr) 5.5rem;
  gap: 0.65rem;
  align-items: center;
}
.link-row.is-custom {
  grid-template-columns: 2.75rem 8rem minmax(0, 1fr) 5.5rem;
}
.link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(26, 22, 20, 0.12);
  background: #f7f4ee;
  color: #1a1614;
  flex-shrink: 0;
}
.link-icon svg {
  width: 1.15rem;
  height: 1.15rem;
}
.link-row > .admin-input {
  min-width: 0;
  width: 100%;
}
.link-row .link-remove {
  width: 5.5rem;
  min-width: 5.5rem;
  max-width: 5.5rem;
  padding-left: 0;
  padding-right: 0;
  justify-self: stretch;
}
.link-spacer {
  width: 5.5rem;
  height: 1px;
}
@media (max-width: 720px) {
  .link-row,
  .link-row.is-custom {
    grid-template-columns: 2.75rem minmax(0, 1fr);
  }
  .link-spacer {
    display: none;
  }
  .link-row .link-remove {
    grid-column: 2;
    width: 100%;
    min-width: 0;
    max-width: none;
  }
  .link-row.is-custom .admin-input[name*="[label]"] {
    grid-column: 2;
  }
  .link-row.is-custom .admin-input[name*="[url]"] {
    grid-column: 2;
  }
}

/* Admin tabs */
.admin-tabs {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.admin-tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(26, 22, 20, 0.1);
  padding-bottom: 0.75rem;
}
.admin-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid transparent;
  background: transparent;
  color: #8a8175;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
}
.admin-tab:hover {
  color: #1a1614;
  background: rgba(26, 22, 20, 0.04);
}
.admin-tab.is-active {
  color: #1a1614;
  background: #fff;
  border-color: rgba(26, 22, 20, 0.12);
}
.admin-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.4rem;
  height: 1.4rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: #ede7dc;
  color: #3d362e;
  font-size: 10px;
  letter-spacing: 0;
}
.admin-tab.is-active .admin-tab-count {
  background: #1a1614;
  color: #f7f4ee;
}
.admin-tab-panel {
  display: none;
}
.admin-tab-panel.is-active {
  display: block;
}

.admin-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}
.admin-filter-select {
  width: auto;
  min-width: 11rem;
  max-width: 100%;
}

/* Booking page — editorial status rail */
.booking-page {
  max-width: 1180px;
}
.booking-page-head {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(184, 160, 122, 0.28);
}
.booking-page-head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1.25rem 1.75rem;
}
.booking-date-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 0.65rem 0.85rem;
}
.booking-date-presets {
  display: flex;
  gap: 0.4rem;
}
.booking-date-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  padding: 0.45rem 0.95rem;
  border: 1px solid rgba(26, 22, 20, 0.12);
  background: transparent;
  color: #8a8175;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.booking-date-chip:hover {
  border-color: rgba(184, 160, 122, 0.55);
  color: #1a1614;
}
.booking-date-chip.is-active {
  border-color: rgba(184, 160, 122, 0.7);
  background: rgba(184, 160, 122, 0.16);
  color: #6e5c3f;
}
.booking-date-picker {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.booking-date-picker > span {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #8a8175;
}
.booking-date-picker input[type="date"] {
  min-height: 2.35rem;
  border: 1px solid rgba(26, 22, 20, 0.12);
  background: #fff;
  color: #1a1614;
  padding: 0.4rem 0.75rem;
  font-family: Outfit, system-ui, sans-serif;
  font-size: 0.85rem;
  outline: none;
}
.booking-date-picker input[type="date"]:focus {
  border-color: #b8a07a;
  box-shadow: 0 0 0 3px rgba(184, 160, 122, 0.2);
}
.booking-kicker {
  margin: 0 0 0.6rem;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #b8a07a;
}
.booking-layout {
  display: grid;
  gap: 2rem;
  align-items: start;
}
@media (min-width: 1024px) {
  .booking-layout {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 2.75rem;
  }
}
.booking-status-rail {
  padding: 0;
}
@media (min-width: 1024px) {
  .booking-status-rail {
    position: sticky;
    top: 1.25rem;
  }
}
.booking-rail-label {
  margin: 0 0 1.1rem;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #8a8175;
}
.booking-rail-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid rgba(26, 22, 20, 0.1);
}
@media (max-width: 1023px) {
  .booking-rail-nav {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0;
    border-top: 0;
    border-bottom: 1px solid rgba(26, 22, 20, 0.1);
    scrollbar-width: none;
  }
  .booking-rail-nav::-webkit-scrollbar {
    display: none;
  }
}
.booking-rail-item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 0.85rem;
  width: 100%;
  margin: 0;
  padding: 1.05rem 0.15rem 1.05rem 0.85rem;
  border: 0;
  border-bottom: 1px solid rgba(26, 22, 20, 0.1);
  border-left: 2px solid transparent;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, padding 0.2s ease;
}
@media (max-width: 1023px) {
  .booking-rail-item {
    flex: 0 0 auto;
    min-width: 9.5rem;
    padding: 0.85rem 1rem 0.95rem;
    border-bottom: 0;
    border-left: 0;
    border-right: 1px solid rgba(26, 22, 20, 0.08);
    border-bottom: 2px solid transparent;
  }
  .booking-rail-item.is-active {
    border-bottom-color: #b8a07a;
    background: transparent;
  }
}
.booking-rail-item:hover {
  border-left-color: rgba(184, 160, 122, 0.45);
}
.booking-rail-item.is-active {
  border-left-color: #b8a07a;
  background: transparent;
}
.booking-rail-copy {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  min-width: 0;
}
.booking-rail-name {
  font-family: "Bodoni Moda", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0.01em;
  color: #8a8175;
  transition: color 0.2s ease;
}
.booking-rail-item.is-active .booking-rail-name {
  color: #1a1614;
}
.booking-rail-hint {
  font-size: 0.7rem;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: #a39a8f;
}
.booking-rail-item.is-active .booking-rail-hint {
  color: #8a8175;
}
.booking-rail-count {
  flex-shrink: 0;
  padding-top: 0.15rem;
  font-family: "Bodoni Moda", Georgia, serif;
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1;
  color: #c4bbb0;
  font-variant-numeric: tabular-nums;
  transition: color 0.2s ease;
}
.booking-rail-item.is-active .booking-rail-count {
  color: #b8a07a;
}
.booking-rail-item.is-pending.is-active { border-left-color: #c4a35a; }
.booking-rail-item.is-confirmed.is-active { border-left-color: #7a9478; }
.booking-rail-item.is-completed.is-active { border-left-color: #b8a07a; }
.booking-rail-item.is-cancelled.is-active { border-left-color: #a67a74; }
@media (max-width: 1023px) {
  .booking-rail-item.is-pending.is-active { border-bottom-color: #c4a35a; }
  .booking-rail-item.is-confirmed.is-active { border-bottom-color: #7a9478; }
  .booking-rail-item.is-completed.is-active { border-bottom-color: #b8a07a; }
  .booking-rail-item.is-cancelled.is-active { border-bottom-color: #a67a74; }
}

.booking-panel {
  display: none;
  animation: bookingPanelIn 0.28s ease;
}
.booking-panel.is-active {
  display: block;
}
@keyframes bookingPanelIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.booking-panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  margin-bottom: 1.35rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(26, 22, 20, 0.08);
}
.booking-panel-head h2 {
  letter-spacing: -0.02em;
}
.booking-panel-meta {
  font-family: "Bodoni Moda", Georgia, serif;
  font-size: 2rem;
  line-height: 1;
  color: #1a1614;
}
.booking-panel-meta em {
  margin-left: 0.4rem;
  font-family: Outfit, system-ui, sans-serif;
  font-size: 0.65rem;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #8a8175;
  vertical-align: 0.35em;
}
.booking-table-card.admin-panel {
  border: 0;
  border-top: 1px solid rgba(184, 160, 122, 0.28);
  background: rgba(255, 255, 255, 0.42);
  box-shadow: none;
  border-radius: 0;
}

/* Account Settings */
.accounts-page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1.25rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(184, 160, 122, 0.28);
}
.accounts-kicker {
  margin: 0 0 0.6rem;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #b8a07a;
}
.role-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border: 1px solid rgba(26, 22, 20, 0.1);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8a8175;
  background: #f7f4ee;
}
.role-pill.is-admin {
  color: #6e5c3f;
  border-color: rgba(184, 160, 122, 0.55);
  background: rgba(184, 160, 122, 0.16);
}
.role-pill.is-staff {
  color: #3d362e;
  border-color: rgba(26, 22, 20, 0.12);
  background: #fff;
}
.accounts-form {
  gap: 1.15rem;
}
.accounts-fields {
  display: grid;
  gap: 0.85rem;
}
@media (min-width: 640px) {
  .accounts-fields {
    grid-template-columns: 1fr 1fr;
  }
}
.accounts-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.accounts-field > span {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #8a8175;
}
.perm-block {
  border-top: 1px solid rgba(26, 22, 20, 0.08);
  padding-top: 1rem;
  transition: opacity 0.2s ease;
}
.perm-block.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}
.perm-block-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 0.85rem;
}
.perm-kicker {
  margin: 0 0 0.25rem;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #b8a07a;
}
.perm-title {
  margin: 0;
  font-family: "Bodoni Moda", Georgia, serif;
  font-size: 1.35rem;
  line-height: 1.1;
  color: #1a1614;
}
.perm-note {
  margin: 0;
  font-size: 0.72rem;
  color: #8a8175;
}
.perm-matrix {
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(26, 22, 20, 0.1);
}
.perm-row {
  display: grid;
  gap: 0.55rem 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(26, 22, 20, 0.08);
}
@media (min-width: 640px) {
  .perm-row {
    grid-template-columns: 8.5rem minmax(0, 1fr);
    align-items: center;
  }
}
.perm-module {
  font-size: 0.82rem;
  font-weight: 500;
  color: #1a1614;
}
.perm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.perm-check {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  border: 1px solid rgba(26, 22, 20, 0.1);
  background: #f7f4ee;
  cursor: pointer;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8a8175;
  user-select: none;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.perm-check:has(input:checked) {
  border-color: rgba(184, 160, 122, 0.65);
  background: rgba(184, 160, 122, 0.14);
  color: #6e5c3f;
}
.perm-check input {
  width: 0.85rem;
  height: 0.85rem;
  accent-color: #b8a07a;
  cursor: pointer;
}

/* Idle session warning */
.idle-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}
.idle-modal.is-open {
  display: flex;
}
.idle-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 22, 20, 0.5);
  backdrop-filter: blur(2px);
}
.idle-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  box-shadow: 0 24px 60px rgba(26, 22, 20, 0.22);
}
.idle-modal #idle-countdown {
  color: #b8a07a;
  font-variant-numeric: tabular-nums;
}

/* Mobile content polish */
@media (max-width: 1023px) {
  .booking-page-head-row,
  .accounts-page-head {
    flex-direction: column;
    align-items: stretch;
  }
  .booking-date-filter {
    width: 100%;
  }
  .booking-date-presets {
    flex: 1;
  }
  .booking-date-chip {
    flex: 1;
  }
  div.dt-container .dt-layout-row {
    flex-direction: column;
    align-items: stretch;
  }
  div.dt-container .dt-search input,
  div.dt-container .dt-length select {
    width: 100%;
    max-width: none;
  }
  div.dt-container .dt-search,
  div.dt-container .dt-length {
    width: 100%;
  }
  .admin-modal-dialog.is-wide {
    width: min(100%, 100%);
  }
}
@media (max-width: 639px) {
  .btn-actions {
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }
  .btn-actions form,
  .btn-actions .btn,
  .btn-actions form .btn {
    width: 100%;
    min-width: 0;
    max-width: none;
  }
}
