/* Booking detail drawer: visual polish and responsive containment only. */
.admin-page .admin-workspace:has(.booking-drawer-layer) {
  transform: none !important;
}

.admin-page .booking-drawer-layer {
  inset: 0 !important;
  width: 100vw !important;
  height: 100dvh !important;
  padding: 0;
  background: rgba(4, 14, 28, .68);
  backdrop-filter: blur(3px);
  overflow: hidden !important;
}

.admin-page .booking-drawer,
.admin-page .booking-drawer * {
  box-sizing: border-box;
}

.admin-page .booking-drawer {
  width: min(760px, 94vw);
  height: 100dvh !important;
  min-height: 0;
  overflow: hidden !important;
  border-left: 1px solid rgba(255, 255, 255, .14);
  background: #f4f7fa;
  box-shadow: -24px 0 70px rgba(0, 0, 0, .32);
}

.admin-page .booking-drawer > header {
  min-width: 0;
  align-items: flex-start;
  gap: 18px;
  padding: 24px 28px 22px;
  background: linear-gradient(135deg, #0b1f3a 0%, #12365c 100%);
  border-bottom: 3px solid #c99b2e;
}

.admin-page .booking-drawer > header > div {
  min-width: 0;
}

.admin-page .booking-drawer > header .eyebrow {
  display: block;
  margin-bottom: 5px;
  color: #e4b94e;
  font: 700 .71rem/1.35 Poppins, "Segoe UI", sans-serif;
  letter-spacing: .12em;
  overflow-wrap: anywhere;
}

.admin-page .booking-drawer h2 {
  margin: 0 0 4px;
  color: #fff;
  font-size: clamp(1.75rem, 4vw, 2.2rem);
  line-height: 1.04;
  overflow-wrap: anywhere;
}

.admin-page .booking-drawer header p {
  color: #dce6f0;
  font: 500 .85rem/1.55 Poppins, "Segoe UI", sans-serif;
  overflow-wrap: anywhere;
}

.admin-page .drawer-close {
  flex: 0 0 44px;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: 10px;
  background: rgba(255, 255, 255, .07);
  color: #fff;
  line-height: 1;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.admin-page .drawer-close:hover {
  border-color: #e4b94e;
  background: rgba(255, 255, 255, .15);
  transform: translateY(-1px);
}

.admin-page .drawer-close:focus-visible,
.admin-page .drawer-tabs button:focus-visible,
.admin-page .booking-drawer button:focus-visible,
.admin-page .booking-drawer input:focus-visible {
  outline: 3px solid rgba(228, 185, 78, .5);
  outline-offset: 2px;
}

.admin-page .drawer-tabs {
  gap: 4px;
  padding: 9px 12px 0;
  overflow-x: auto;
  overflow-y: hidden;
  background: #fff;
  border-bottom: 1px solid #d9e1e9;
  scrollbar-width: thin;
  scrollbar-color: #aebbc9 transparent;
}

.admin-page .drawer-tabs button {
  flex: 0 0 auto;
  min-height: 43px;
  padding: 10px 12px;
  border-radius: 8px 8px 0 0;
  color: #526378;
  font: 700 .73rem/1.25 Poppins, "Segoe UI", sans-serif;
  letter-spacing: .01em;
  cursor: pointer;
}

.admin-page .drawer-tabs button:hover {
  background: #f4f7fa;
  color: #0b1f3a;
}

.admin-page .drawer-tabs button.active {
  border-bottom-color: #c99b2e;
  background: #fffaf0;
  color: #0b1f3a;
}

.admin-page .drawer-body {
  min-height: 0;
  padding: 24px 28px 30px;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  font-family: Poppins, "Segoe UI", sans-serif;
}

.admin-page .drawer-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.admin-page .drawer-grid > div,
.admin-page .commercial-editor,
.admin-page .drawer-empty,
.admin-page .drawer-alert,
.admin-page .drawer-ok {
  min-width: 0;
  border: 1px solid #d9e2eb;
  border-radius: 12px;
  padding: 18px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(11, 31, 58, .045);
}

.admin-page .drawer-grid > div {
  align-content: start;
  min-height: 96px;
}

.admin-page .drawer-grid span {
  color: #68788b;
  font-size: .69rem;
  font-weight: 700;
  letter-spacing: .025em;
  text-transform: uppercase;
}

.admin-page .drawer-grid strong {
  color: #122943;
  font-size: .91rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.admin-page .drawer-grid small {
  color: #69798b;
  font-size: .75rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.admin-page .booking-drawer .booking-badge {
  justify-self: start;
  max-width: 100%;
  white-space: normal;
}

.admin-page .drawer-alert {
  margin-top: 16px;
  border-color: #e7c46f;
  border-left: 4px solid #c99b2e;
  background: #fffaf0;
  color: #553f11;
  box-shadow: none;
}

.admin-page .drawer-alert > strong {
  color: #37290c;
  font-size: .83rem;
}

.admin-page .drawer-alert ul {
  margin: 5px 0 0;
  padding-left: 20px;
  font-size: .76rem;
  line-height: 1.55;
}

.admin-page .commercial-editor {
  margin-top: 18px;
  gap: 14px;
}

.admin-page .commercial-editor h3,
.admin-page .drawer-empty h3 {
  margin: 0;
  color: #0b1f3a;
  font: 700 1.02rem/1.35 Poppins, "Segoe UI", sans-serif;
}

.admin-page .commercial-editor label {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: #42566d;
  font-size: .73rem;
  font-weight: 700;
}

.admin-page .commercial-editor input {
  width: 100%;
  min-height: 43px;
  padding: 10px 12px;
  border: 1px solid #bbc8d5;
  border-radius: 8px;
  background: #fff;
  color: #102542;
  font: 500 .82rem Poppins, "Segoe UI", sans-serif;
}

.admin-page .commercial-editor input:hover {
  border-color: #8fa1b4;
}

.admin-page .commercial-editor input:focus {
  border-color: #b78922;
  box-shadow: 0 0 0 3px rgba(201, 155, 46, .14);
}

.admin-page .commercial-editor button,
.admin-page .drawer-empty button {
  min-height: 42px;
  justify-self: start;
  padding: 10px 17px;
  border: 1px solid #173a61;
  border-radius: 8px;
  background: #173a61;
  color: #fff;
  font: 700 .76rem/1.25 Poppins, "Segoe UI", sans-serif;
  cursor: pointer;
}

.admin-page .commercial-editor button:hover,
.admin-page .drawer-empty button:hover {
  background: #0b1f3a;
}

.admin-page .drawer-empty {
  min-height: 180px;
  place-content: center;
  text-align: center;
}

.admin-page .drawer-empty p {
  max-width: 46ch;
  margin: 0 auto;
  color: #67788b;
  font-size: .8rem;
  line-height: 1.65;
}

.admin-page .drawer-empty button {
  justify-self: center;
}

.admin-page .booking-drawer > footer {
  min-width: 0;
  gap: 10px;
  padding: 15px 28px;
  background: rgba(255, 255, 255, .98);
  border-top: 1px solid #d7e0e8;
  box-shadow: 0 -8px 24px rgba(11, 31, 58, .055);
}

.admin-page .booking-drawer > footer button {
  min-height: 42px;
  padding: 10px 17px;
  border-radius: 8px;
  font: 700 .76rem/1.25 Poppins, "Segoe UI", sans-serif;
}

.admin-page .booking-drawer > footer .secondary-button {
  border-color: #173a61;
  background: #173a61;
  color: #fff;
}

.admin-page .booking-drawer > footer .secondary-button:hover {
  background: #0b1f3a;
}

.admin-page .booking-drawer > footer .danger-text {
  margin-left: auto;
  border: 1px solid #e3b9b9;
  background: #fff7f7;
  color: #9f2929;
}

.admin-page .booking-drawer > footer .danger-text:hover {
  border-color: #ba3e3e;
  background: #ba3e3e;
  color: #fff;
}

@media (max-width: 760px) {
  .admin-page .booking-drawer {
    width: 100vw;
    max-width: 100vw;
    border-left: 0;
  }

  .admin-page .booking-drawer > header {
    padding: 19px 18px 17px;
  }

  .admin-page .booking-drawer h2 {
    font-size: 1.75rem;
  }

  .admin-page .drawer-tabs {
    padding-inline: 8px;
  }

  .admin-page .drawer-tabs button {
    padding-inline: 11px;
  }

  .admin-page .drawer-body {
    padding: 18px 16px 24px;
  }

  .admin-page .drawer-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .admin-page .drawer-grid > div {
    min-height: 0;
    padding: 15px;
  }

  .admin-page .booking-drawer > footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 12px 16px;
  }

  .admin-page .booking-drawer > footer > * {
    width: 100%;
    margin: 0 !important;
  }
}

@media (max-width: 430px) {
  .admin-page .booking-drawer > header {
    gap: 12px;
    padding-inline: 15px;
  }

  .admin-page .drawer-close {
    flex-basis: 40px;
    min-width: 40px;
    width: 40px;
    min-height: 40px;
  }

  .admin-page .booking-drawer header p {
    font-size: .76rem;
  }

  .admin-page .booking-drawer > footer {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .admin-page .drawer-close {
    transition: none;
  }
}
