.page-subtitle {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

body[data-section="reservas"] .topbar {
  margin-bottom: 24px;
  align-items: end;
}

body[data-section="reservas"] #reservas { animation: reservation-enter .22s ease-out; }

@keyframes reservation-enter {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.reservation-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  margin-bottom: 14px;
  border: 1px solid #dedbd3;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(8, 35, 52, .035);
  overflow: hidden;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.reservation-toolbar:focus-within {
  border-color: rgba(201, 151, 54, .72);
  box-shadow: 0 0 0 3px rgba(217, 163, 60, .11), 0 8px 22px rgba(8, 35, 52, .05);
}

.reservation-search {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding-left: 14px;
}

.reservation-search > span { color: #849097; font-size: 19px; }
.reservation-search input,
.reservation-filter select {
  width: 100%;
  min-height: 44px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}
.reservation-search input { padding: 0 12px 0 0; }
.reservation-filter { border-left: 1px solid #ece9e2; }
.reservation-filter select { min-width: 170px; padding: 0 36px 0 14px; cursor: pointer; }
.reservation-clear-all {
  align-self: stretch;
  padding: 0 14px;
  border: 0;
  border-left: 1px solid #ece9e2;
  background: transparent;
  color: #a54b45;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: background .16s ease, color .16s ease;
}
.reservation-clear-all:hover { background: #fff4f2; color: #8f3832; }
.reservation-clear-all:disabled { color: #aab2b5; cursor: not-allowed; background: transparent; }

#reservas .table-panel {
  border: 1px solid #e1ded7;
  border-radius: 14px;
  box-shadow: 0 6px 24px rgba(8, 35, 52, .035);
  overflow: visible;
}

#reservas .table-wrap { overflow: visible; border-radius: 14px; }
#reservas table { min-width: 920px; }
#reservas th { padding: 12px 16px; background: #faf9f6; color: #7e898e; font-size: 9px; }
#reservas td { padding: 15px 16px; }
#reservas tbody tr { transition: background-color .16s ease, box-shadow .16s ease; }
#reservas tbody tr:hover { background: #fdfbf7; box-shadow: inset 3px 0 0 rgba(217, 163, 60, .72); }
#reservas td strong { font-size: 12px; }
#reservas td small { display: block; margin-top: 4px; font-size: 10px; }
.reservation-client { min-width: 165px; }
.reservation-service { min-width: 190px; }
.reservation-service > strong { color: #243b48; font-weight: 600; }
.people-count {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--sand);
  color: var(--navy);
  font-size: 11px;
  font-weight: 700;
}
.reservation-total strong { white-space: nowrap; }
.payment-summary { min-width: 175px; }
.payment-summary strong span { color: var(--muted); font-size: 10px; font-weight: 500; }
.payment-summary small { color: #7c898f; }
.actions-heading { text-align: right; }

#reservas .row-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 7px;
  overflow: visible;
}
#reservas .row-actions > .edit-button {
  order: 0;
  margin: 0;
  padding: 7px 10px;
  border: 1px solid rgba(16, 53, 73, .14);
  border-radius: 8px;
  background: #fff;
  color: var(--navy);
  font-size: 10px;
  font-weight: 700;
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}
#reservas .row-actions > .edit-button:hover { border-color: var(--gold); background: #fffaf0; transform: translateY(-1px); }
.reservation-action-menu { position: relative; order: 2; }
.reservation-action-menu summary {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  color: #64747c;
  cursor: pointer;
  list-style: none;
  transition: background .16s ease, color .16s ease;
}
.reservation-action-menu summary::-webkit-details-marker { display: none; }
.reservation-action-menu summary:hover,
.reservation-action-menu[open] summary { background: #f1eee7; color: var(--navy); }
.reservation-action-popover {
  position: absolute;
  z-index: 20;
  top: calc(100% + 5px);
  right: 0;
  width: 120px;
  padding: 5px;
  border: 1px solid #dedbd3;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(8, 35, 52, .14);
}
.reservation-action-popover button {
  width: 100%;
  margin: 0;
  padding: 8px 9px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--navy);
  text-align: left;
  font-size: 11px;
  cursor: pointer;
}
.reservation-action-popover button:hover { background: #f5f2eb; }
.reservation-action-popover .delete-button { color: var(--coral); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.clear-reservations-modal { width: min(470px, 100%); }
.clear-reservations-modal > p:not(.eyebrow) { margin: 14px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.clear-reservations-modal > p strong { color: var(--navy); }
.clear-reservations-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 20px; }
.danger-button { border: 1px solid #a94b45; border-radius: 10px; background: #a94b45; color: #fff; padding: 11px 14px; font-weight: 700; }
.danger-button:hover { background: #923d38; }
.danger-button:disabled { opacity: .65; cursor: wait; }
.reservation-toast { position: fixed; z-index: 200; right: 20px; bottom: 20px; max-width: min(380px, calc(100vw - 40px)); padding: 12px 15px; border: 1px solid #bcd9cc; border-radius: 11px; background: #f1faf5; color: #246347; box-shadow: 0 14px 38px rgba(8,35,52,.16); font-size: 12px; font-weight: 700; opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.reservation-toast[data-type="error"] { border-color: #e2b8b4; background: #fff4f2; color: #963f39; }
.reservation-toast.show { opacity: 1; transform: translateY(0); }

@media (max-width: 760px) {
  body[data-section="reservas"] .topbar { align-items: flex-start; }
  .reservation-toolbar { grid-template-columns: 1fr; overflow: visible; }
  .reservation-filter { border-top: 1px solid #ece9e2; border-left: 0; }
  .reservation-filter select { min-width: 0; }
  .reservation-clear-all { min-height: 42px; border-top: 1px solid #ece9e2; border-left: 0; }
  .clear-reservations-actions { grid-template-columns: 1fr; }
  #reservas .table-panel { margin-inline: -4px; }
}

@media (max-width: 980px) {
  #reservas .table-wrap { overflow-x: auto; }
}

@media (prefers-reduced-motion: reduce) {
  body[data-section="reservas"] #reservas { animation: none; }
  #reservas tbody tr, #reservas .row-actions > .edit-button { transition: none; }
}
