/* Reservations is isolated here so older global rules cannot distort the module. */
#reservationsSection {
  --reservations-ink: #171c26;
  --reservations-muted: #687180;
  --reservations-line: #e3e7ec;
  --reservations-soft: #f7f9fb;
  --reservations-orange: #ff5a00;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

#reservationsSection button,
#reservationsSection input,
#reservationsSection select,
#reservationsSection textarea {
  font-family: inherit;
}

#reservationsSection .reservations-shell {
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
}

#reservationsSection .reservations-page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  min-height: 72px;
  margin: 0 0 20px;
  padding: 0;
}

#reservationsSection .reservations-page-header h1 {
  margin: 0 0 6px;
  color: var(--reservations-ink);
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: 0;
}

#reservationsSection .reservations-page-header .subtitle {
  color: var(--reservations-muted);
  font-size: 14px;
  line-height: 1.45;
}

#reservationsSection .reservations-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
  margin: 0 0 18px;
  padding: 5px;
  overflow-x: auto;
  border: 1px solid var(--reservations-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(19, 27, 38, .035);
  scrollbar-width: none;
}

#reservationsSection .reservations-tabs::-webkit-scrollbar {
  display: none;
}

#reservationsSection .reservations-tab {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #667080;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  cursor: pointer;
  transition: background-color .14s ease, color .14s ease;
}

#reservationsSection .reservations-tab:hover {
  background: var(--reservations-soft);
  color: var(--reservations-ink);
}

#reservationsSection .reservations-tab.active {
  border: 0;
  background: #fff1ea;
  color: #d94700;
  box-shadow: inset 0 0 0 1px rgba(255, 90, 0, .12);
}

#reservationsSection .reservations-panel {
  display: none;
}

#reservationsSection .reservations-panel.active {
  display: block;
}

#reservationsSection .reservation-create-card,
#reservationsSection .reservations-history-surface,
#reservationsSection .reservations-list-surface,
#reservationsSection .reservations-stats-surface,
#reservationsSection .reservations-templates-surface {
  width: 100%;
  margin: 0;
  padding: 24px;
  overflow: visible;
  border: 1px solid var(--reservations-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(18, 28, 45, .045);
}

#reservationsSection .reservations-history-surface,
#reservationsSection .reservations-list-surface {
  overflow: hidden;
}

#reservationsSection .reservation-create-card > .layout,
#reservationsSection .reservations-templates-surface > .layout {
  gap: 16px;
  margin: 0;
  padding: 0 0 22px;
  border-bottom: 1px solid var(--reservations-line);
}

#reservationsSection .field {
  min-width: 0;
  margin: 0;
}

#reservationsSection .field > label,
#reservationsSection .field-label,
#reservationsSection .users-detail-form label > span {
  display: block;
  margin: 0 0 7px;
  color: #505968;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
}

#reservationsSection input,
#reservationsSection select,
#reservationsSection textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid #dce1e7;
  border-radius: 7px;
  background: #fff;
  color: var(--reservations-ink);
  font: inherit;
  font-size: 14px;
  letter-spacing: 0;
  outline: none;
  transition: border-color .14s ease, box-shadow .14s ease;
}

#reservationsSection input:focus,
#reservationsSection select:focus,
#reservationsSection textarea:focus,
#reservationsSection .reservation-rich-editor:focus {
  border-color: var(--reservations-orange);
  box-shadow: 0 0 0 3px rgba(255, 90, 0, .1);
}

#reservationsSection textarea {
  min-height: 112px;
  resize: vertical;
}

#reservationsSection .reservation-form-sections {
  display: grid;
  gap: 0;
}

#reservationsSection .reservation-form-sections > .hint {
  margin: 22px 0 0;
  padding: 18px 20px;
  border: 1px dashed #d8dde4;
  border-radius: 7px;
  background: var(--reservations-soft);
  color: var(--reservations-muted);
}

#reservationsSection .reservation-form-section {
  padding: 24px 0;
  border: 0;
  border-bottom: 1px solid var(--reservations-line);
}

#reservationsSection .reservation-form-section:last-child {
  padding-bottom: 8px;
  border-bottom: 0;
}

#reservationsSection .reservation-form-section h3 {
  position: relative;
  margin: 0 0 18px;
  padding-left: 12px;
  color: var(--reservations-ink);
  font-size: 16px;
  line-height: 1.25;
}

#reservationsSection .reservation-form-section h3::before {
  position: absolute;
  inset: 1px auto 1px 0;
  width: 3px;
  border-radius: 2px;
  background: var(--reservations-orange);
  content: "";
}

#reservationsSection .reservation-fields-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

#reservationsSection .reservation-field-wide {
  grid-column: 1 / -1;
}

#reservationsSection .reservation-select-or-text,
#reservationsSection .reservation-repeatable-list {
  display: grid;
  gap: 9px;
}

#reservationsSection .reservation-repeatable-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 42px;
  gap: 9px;
  align-items: center;
}

#reservationsSection .reservation-repeatable-index {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  background: #eef1f4;
  color: #596272;
  font-size: 12px;
  font-weight: 850;
}

#reservationsSection .reservation-repeatable-remove {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
}

#reservationsSection .reservation-repeatable-add {
  width: fit-content;
  margin-top: 10px;
}

#reservationsSection .reservation-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--reservations-line);
}

#reservationsSection .reservation-actions .btn {
  min-height: 44px;
}

#reservationsSection .reservation-status {
  min-height: 20px;
  margin-left: 4px;
  color: var(--reservations-muted);
  font-size: 12px;
  font-weight: 750;
}

#reservationsSection .reservation-history-filters {
  display: grid;
  grid-template-columns: minmax(260px, 2fr) minmax(160px, .7fr) minmax(160px, .7fr) auto !important;
  align-items: end;
  gap: 14px;
  padding: 0 0 20px;
  border-bottom: 1px solid var(--reservations-line);
}

#reservationsSection .reservation-history-filters .btn,
#reservationsSection .reservation-filter-panel .btn {
  min-height: 46px;
}

#reservationsSection .reservation-refresh-btn {
  display: inline-grid;
  place-items: center;
  align-self: end;
  width: 46px;
  min-width: 46px;
  height: 46px;
  min-height: 46px;
  padding: 0;
  border: 1px solid #dce1e7;
  border-radius: 7px;
  background: #fff;
  color: #4f5866;
  box-shadow: none;
}

#reservationsSection .reservation-refresh-btn svg {
  width: 19px;
  height: 19px;
}

#reservationsSection .reservation-refresh-btn:hover {
  border-color: #ffc3a8;
  background: #fff7f3;
  color: #d94700;
  transform: none;
}

#reservationsSection .reservation-refresh-btn:focus-visible {
  border-color: var(--reservations-orange);
  box-shadow: 0 0 0 3px rgba(255, 90, 0, .1);
  outline: none;
}

#reservationsSection .reservation-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 18px 0;
  border-bottom: 1px solid var(--reservations-line);
}

#reservationsSection .reservation-summary-item,
#reservationsSection .reservation-stat {
  min-width: 0;
  padding: 4px 20px;
  border: 0;
  border-right: 1px solid var(--reservations-line);
  border-radius: 0;
  background: transparent;
}

#reservationsSection .reservation-summary-item:first-child,
#reservationsSection .reservation-stat:first-child {
  padding-left: 0;
}

#reservationsSection .reservation-summary-item:last-child,
#reservationsSection .reservation-stat:last-child {
  border-right: 0;
}

#reservationsSection .reservation-summary-item span,
#reservationsSection .reservation-stat span {
  color: #7a8391;
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

#reservationsSection .reservation-summary-item strong,
#reservationsSection .reservation-stat strong {
  display: block;
  margin-top: 6px;
  color: var(--reservations-ink);
  font-size: 24px;
  line-height: 1.1;
}

#reservationsSection .orders-table-scroll {
  width: calc(100% + 48px);
  max-width: none;
  margin: 0 -24px;
  overflow-x: auto;
}

#reservationsSection .orders-table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
}

#reservationsSection .orders-table thead {
  background: #f7f9fb;
}

#reservationsSection .orders-table th {
  padding: 13px 14px;
  border-bottom: 1px solid var(--reservations-line);
  color: #687180;
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
  white-space: nowrap;
}

#reservationsSection .orders-table td {
  padding: 14px;
  border-bottom: 1px solid #edf0f3;
  color: #303744;
  font-size: 12px;
  vertical-align: middle;
}

#reservationsSection .orders-table tbody tr:hover {
  background: #fcfcfd;
}

#reservationsSection .pagination,
#reservationsSection .reservations-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
  margin: 0 -24px -24px;
  padding: 12px 24px;
  border-top: 1px solid var(--reservations-line);
  background: #fff;
}

#reservationsSection .reservations-page-info,
#reservationsSection .orders-pagination-info {
  color: #737c89;
  font-size: 12px;
  font-weight: 750;
}

#reservationsSection .reservations-page-actions,
#reservationsSection .orders-pagination-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

#reservationsSection .pagination .table-btn,
#reservationsSection .reservations-pagination .table-btn {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 7px;
}

#reservationsSection .pagination .table-btn:disabled,
#reservationsSection .reservations-pagination .table-btn:disabled {
  cursor: default;
  opacity: .45;
}

#reservationsSection .commercial-ledger-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: -24px -24px 0;
  padding: 22px 24px;
  border-bottom: 1px solid var(--reservations-line);
}

#reservationsSection .commercial-ledger-header h2,
#reservationsSection .reservations-stats-surface h2 {
  margin: 0 0 5px;
  color: var(--reservations-ink);
  font-size: 20px;
}

#reservationsSection .commercial-ledger-header p {
  margin: 0;
  color: var(--reservations-muted);
  font-size: 13px;
}

#reservationsSection .reservation-filter-panel {
  display: grid;
  grid-template-columns: minmax(280px, 2fr) minmax(180px, .75fr) auto;
  align-items: end;
  gap: 14px;
  margin: 0 -24px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--reservations-line);
  background: #fff;
}

#reservationsSection .reservation-conformation-tabs {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 56px;
  margin: 0 -24px;
  padding: 0 24px;
  overflow-x: auto;
  border-bottom: 1px solid var(--reservations-line);
}

#reservationsSection .reservation-conformation-tabs > button {
  align-self: stretch;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 2px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #687180;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

#reservationsSection .reservation-conformation-tabs > button.active {
  border-bottom-color: var(--reservations-orange);
  color: #d94700;
}

#reservationsSection .reservation-conformation-tabs > button span {
  min-width: 24px;
  padding: 3px 7px;
  border-radius: 999px;
  background: #eef1f4;
  color: #687180;
  font-size: 10px;
  text-align: center;
}

#reservationsSection .reservation-conformation-tabs > button.active span {
  background: #fff1ea;
  color: #d94700;
}

#reservationsSection .reservations-list-surface .orders-table-scroll {
  width: calc(100% + 48px);
  margin: 0 -24px;
}

#reservationsSection .reservations-ledger-table {
  min-width: 1500px;
}

#reservationsSection .reservation-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--reservations-line);
}

#reservationsSection .reservation-template-editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 370px;
  gap: 24px;
  align-items: start;
  margin-top: 22px;
}

#reservationsSection .reservation-editor-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--reservations-line);
  border-bottom: 0;
  border-radius: 7px 7px 0 0;
  background: var(--reservations-soft);
}

#reservationsSection .reservation-rich-editor {
  min-height: 720px;
  padding: 36px 42px;
  overflow: auto;
  border: 1px solid var(--reservations-line);
  border-radius: 0 0 7px 7px;
  background: #fff;
  color: var(--reservations-ink);
  font-family: Arial, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  outline: none;
}

#reservationsSection .reservation-field-manager {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 18px;
}

#reservationsSection .reservation-field-builder {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--reservations-line);
  border-radius: 8px;
  background: var(--reservations-soft);
}

#reservationsSection .reservation-variable-list {
  display: grid;
  gap: 8px;
  max-height: 520px;
  overflow: auto;
  padding-right: 4px;
}

#reservationsSection .reservation-template-footer-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--reservations-line);
}

#reservationsSection .commercial-ledger-modal-card {
  width: min(900px, calc(100vw - 32px));
  border-radius: 8px;
}

#reservationsSection .commercial-ledger-seller {
  margin: 0 24px 18px;
  border-radius: 7px;
}

@media (max-width: 1050px) {
  #reservationsSection .reservation-history-filters,
  #reservationsSection .reservation-filter-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  #reservationsSection .reservation-refresh-btn {
    justify-self: start;
  }

  #reservationsSection .reservation-template-editor {
    grid-template-columns: 1fr;
  }

  #reservationsSection .reservation-field-manager {
    position: static;
  }
}

@media (max-width: 760px) {
  #reservationsSection .reservations-page-header {
    align-items: stretch;
    min-height: 0;
  }

  #reservationsSection .reservations-page-header h1 {
    font-size: 25px;
  }

  #reservationsSection .reservation-create-card,
  #reservationsSection .reservations-history-surface,
  #reservationsSection .reservations-list-surface,
  #reservationsSection .reservations-stats-surface,
  #reservationsSection .reservations-templates-surface {
    padding: 18px;
  }

  #reservationsSection .reservation-create-card > .layout,
  #reservationsSection .reservations-templates-surface > .layout,
  #reservationsSection .reservation-fields-grid,
  #reservationsSection .reservation-history-filters,
  #reservationsSection .reservation-filter-panel {
    grid-template-columns: 1fr !important;
  }

  #reservationsSection .reservation-summary-grid,
  #reservationsSection .reservation-stats-grid {
    grid-template-columns: 1fr;
  }

  #reservationsSection .reservation-summary-item,
  #reservationsSection .reservation-stat,
  #reservationsSection .reservation-summary-item:first-child,
  #reservationsSection .reservation-stat:first-child {
    padding: 14px 0;
    border-right: 0;
    border-bottom: 1px solid var(--reservations-line);
  }

  #reservationsSection .reservation-summary-item:last-child,
  #reservationsSection .reservation-stat:last-child {
    border-bottom: 0;
  }

  #reservationsSection .reservation-actions {
    align-items: stretch;
    flex-direction: column;
  }

  #reservationsSection .reservation-actions .btn {
    width: 100%;
  }

  #reservationsSection .commercial-ledger-header {
    align-items: stretch;
    flex-direction: column;
    margin: -18px -18px 0;
    padding: 18px;
  }

  #reservationsSection .commercial-ledger-header .btn {
    width: 100%;
  }

  #reservationsSection .reservation-filter-panel,
  #reservationsSection .reservation-conformation-tabs {
    margin-right: -18px;
    margin-left: -18px;
    padding-right: 18px;
    padding-left: 18px;
  }

  #reservationsSection .orders-table-scroll,
  #reservationsSection .reservations-list-surface .orders-table-scroll {
    width: calc(100% + 36px);
    margin-right: -18px;
    margin-left: -18px;
  }

  #reservationsSection .pagination,
  #reservationsSection .reservations-pagination {
    align-items: stretch;
    flex-direction: column;
    margin: 0 -18px -18px;
    padding: 14px 18px;
  }

  #reservationsSection .reservations-page-actions,
  #reservationsSection .orders-pagination-actions {
    width: 100%;
    margin-left: 0;
  }

  #reservationsSection .reservations-page-actions .table-btn,
  #reservationsSection .orders-pagination-actions .table-btn {
    flex: 1;
  }

  #reservationsSection .reservation-rich-editor {
    min-height: 480px;
    padding: 20px;
    font-size: 14px;
  }
}

/* Reservations product surface v3. */
#reservationsSection {
  --reservations-ink: #111827;
  --reservations-muted: #667085;
  --reservations-subtle: #98a2b3;
  --reservations-line: #e4e7ec;
  --reservations-soft: #f8fafb;
  --reservations-soft-orange: #fff5ef;
  --reservations-orange: #ff5a00;
  --reservations-orange-dark: #d94d00;
}

#reservationsSection .reservations-shell {
  max-width: 1560px;
}

#reservationsSection .reservations-page-header {
  min-height: 96px;
  margin-bottom: 16px;
  padding: 10px 2px 12px;
  align-items: center;
}

#reservationsSection .reservations-eyebrow,
#reservationsSection .reservation-surface-kicker {
  display: block;
  margin: 0 0 7px;
  color: var(--reservations-orange-dark);
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: .06em;
  text-transform: uppercase;
}

#reservationsSection .reservations-page-header h1 {
  margin-bottom: 7px;
  font-size: 32px;
  font-weight: 850;
}

#reservationsSection .reservations-page-header .subtitle {
  max-width: 680px;
  font-size: 15px;
}

#reservationsSection .reservations-header-context {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 230px;
  padding: 12px 14px;
  border: 1px solid var(--reservations-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .82);
}

#reservationsSection .reservations-header-context-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 8px;
  background: var(--reservations-soft-orange);
  color: var(--reservations-orange);
}

#reservationsSection .reservations-header-context-icon svg {
  width: 20px;
  height: 20px;
}

#reservationsSection .reservations-header-context > span:last-child {
  display: grid;
  gap: 3px;
}

#reservationsSection .reservations-header-context strong {
  color: var(--reservations-ink);
  font-size: 13px;
  line-height: 1.2;
}

#reservationsSection .reservations-header-context small {
  color: var(--reservations-muted);
  font-size: 11px;
  line-height: 1.2;
}

#reservationsSection .reservations-tabs {
  gap: 26px;
  margin-bottom: 18px;
  padding: 0 4px;
  overflow-y: hidden;
  border-width: 0 0 1px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#reservationsSection .reservations-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 2px;
  border-radius: 0;
  color: #697386;
  font-size: 13px;
  font-weight: 750;
}

#reservationsSection .reservations-tab::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  border-radius: 2px 2px 0 0;
  background: transparent;
  content: "";
}

#reservationsSection .reservations-tab:hover {
  background: transparent;
  color: var(--reservations-ink);
}

#reservationsSection .reservations-tab.active {
  background: transparent;
  color: var(--reservations-orange-dark);
  box-shadow: none;
}

#reservationsSection .reservations-tab.active::after {
  background: var(--reservations-orange);
}

#reservationsSection .reservations-tab-icon {
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
}

#reservationsSection .reservations-tab-icon svg {
  width: 18px;
  height: 18px;
}

#reservationsSection .reservation-create-card,
#reservationsSection .reservations-history-surface,
#reservationsSection .reservations-list-surface,
#reservationsSection .reservations-stats-surface,
#reservationsSection .reservations-templates-surface {
  padding: 0 28px 28px;
  border-color: #e2e6eb;
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(16, 24, 40, .045);
}

#reservationsSection .reservation-surface-head,
#reservationsSection .commercial-ledger-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 112px;
  margin: 0 -28px;
  padding: 24px 28px;
  border-bottom: 1px solid var(--reservations-line);
}

#reservationsSection .reservation-surface-head h2,
#reservationsSection .commercial-ledger-header h2,
#reservationsSection .reservations-stats-surface h2 {
  margin: 0 0 5px;
  color: var(--reservations-ink);
  font-size: 21px;
  font-weight: 850;
  line-height: 1.2;
}

#reservationsSection .reservation-surface-head p,
#reservationsSection .commercial-ledger-header p {
  margin: 0;
  color: var(--reservations-muted);
  font-size: 13px;
  line-height: 1.45;
}

#reservationsSection .reservation-primary-fields,
#reservationsSection .reservations-templates-surface > .layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin: 0 -28px;
  padding: 22px 28px;
  gap: 18px;
  border-bottom: 1px solid var(--reservations-line);
  background: var(--reservations-soft);
}

#reservationsSection .field > label,
#reservationsSection .field-label,
#reservationsSection .users-detail-form label > span {
  margin-bottom: 8px;
  color: #475467;
  font-size: 12px;
  font-weight: 800;
}

#reservationsSection input,
#reservationsSection select,
#reservationsSection textarea {
  min-height: 50px;
  padding-right: 14px;
  padding-left: 14px;
  border-color: #d8dde5;
  border-radius: 8px;
  color: #182230;
  font-size: 14px;
  font-weight: 600;
}

#reservationsSection input::placeholder,
#reservationsSection textarea::placeholder {
  color: #98a2b3;
  font-weight: 500;
}

#reservationsSection textarea {
  min-height: 120px;
  padding-top: 13px;
}

#reservationsSection .reservation-form-sections {
  counter-reset: reservation-section;
}

#reservationsSection .reservation-form-sections > .hint {
  margin: 28px 0 0;
  padding: 24px;
  border-color: #d7dce3;
  border-radius: 8px;
  background: var(--reservations-soft);
  color: var(--reservations-muted);
  font-size: 14px;
  text-align: center;
}

#reservationsSection .reservation-form-section {
  counter-increment: reservation-section;
  padding: 28px 0 30px;
}

#reservationsSection .reservation-form-section > .layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
}

#reservationsSection .reservation-form-section h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding-left: 0;
  font-size: 17px;
  font-weight: 850;
}

#reservationsSection .reservation-form-section h3::before {
  position: static;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 50%;
  background: var(--reservations-soft-orange);
  color: var(--reservations-orange-dark);
  font-size: 11px;
  font-weight: 900;
  content: counter(reservation-section, decimal-leading-zero);
}

#reservationsSection .reservation-fields-grid {
  gap: 18px 20px;
}

#reservationsSection .reservation-repeatable-row {
  grid-template-columns: 38px minmax(0, 1fr) 46px;
  gap: 10px;
}

#reservationsSection .reservation-repeatable-index {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #f0f2f5;
  color: #667085;
}

#reservationsSection .reservation-repeatable-remove {
  width: 46px;
  height: 46px;
  border-radius: 8px;
}

#reservationsSection .reservation-percentage-control input {
  padding-right: 54px;
}

#reservationsSection .reservation-calculated-input {
  border-color: #e2e6eb !important;
  background: #f5f7f9 !important;
}

#reservationsSection .reservation-calculation-help {
  margin-top: 8px;
  color: #7b8492;
}

#reservationsSection .reservation-actions {
  justify-content: flex-end;
  min-height: 82px;
  margin: 0 -28px -28px;
  padding: 18px 28px;
  background: #fbfcfd;
}

#reservationsSection .reservation-actions .btn {
  min-height: 46px;
  padding: 0 18px;
  border-radius: 8px;
}

#reservationsSection .reservation-status {
  order: -1;
  margin-right: auto;
  margin-left: 0;
  font-size: 13px;
}

#reservationsSection .reservation-history-filters,
#reservationsSection .reservation-filter-panel {
  margin: 0 -28px;
  padding: 20px 28px;
  background: var(--reservations-soft);
}

#reservationsSection .reservation-history-filters {
  grid-template-columns: minmax(320px, 2fr) minmax(170px, .72fr) minmax(170px, .72fr) 50px !important;
}

#reservationsSection .reservation-filter-panel {
  grid-template-columns: minmax(320px, 2fr) minmax(190px, .75fr) 50px;
}

#reservationsSection .reservation-refresh-btn {
  width: 50px;
  min-width: 50px;
  height: 50px;
  min-height: 50px;
  border-radius: 8px;
}

#reservationsSection .reservation-summary-grid {
  margin: 0 -28px;
  padding: 0 28px;
  min-height: 92px;
  align-items: center;
  background: #fff;
}

#reservationsSection .reservation-summary-item,
#reservationsSection .reservation-stat {
  padding: 6px 24px;
}

#reservationsSection .reservation-summary-item strong,
#reservationsSection .reservation-stat strong {
  margin-top: 7px;
  font-size: 26px;
  font-weight: 850;
}

#reservationsSection .reservation-summary-item span,
#reservationsSection .reservation-stat span {
  color: #697386;
  font-size: 10px;
  letter-spacing: .045em;
}

#reservationsSection .orders-table-scroll,
#reservationsSection .reservations-list-surface .orders-table-scroll {
  width: calc(100% + 56px);
  margin-right: -28px;
  margin-left: -28px;
}

#reservationsSection .orders-table thead {
  background: #f5f7f9;
}

#reservationsSection .orders-table th {
  height: 48px;
  padding: 12px 16px;
  color: #667085;
  font-size: 10px;
  letter-spacing: .025em;
}

#reservationsSection .orders-table td {
  min-height: 62px;
  padding: 15px 16px;
  color: #344054;
  font-size: 13px;
  line-height: 1.35;
}

#reservationsSection .orders-table tbody tr {
  transition: background-color .12s ease;
}

#reservationsSection .orders-table tbody tr:hover {
  background: #fffaf7;
}

#reservationsSection .reservation-main-cell {
  min-width: 130px;
}

#reservationsSection .reservation-main-cell strong {
  color: #182230;
  font-size: 13px;
  font-weight: 850;
}

#reservationsSection .reservation-main-cell small {
  margin-top: 3px;
  color: #7a8492;
  font-size: 11px;
}

#reservationsSection .reservation-actions-cell {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  min-width: max-content;
}

#reservationsSection .reservation-actions-cell .table-btn,
#reservationsSection .reservation-actions-cell .btn {
  min-height: 38px;
  border-radius: 7px;
}

#reservationsSection .reservation-conformation-badge {
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

#reservationsSection .pagination,
#reservationsSection .reservations-pagination {
  min-height: 68px;
  margin: 0 -28px -28px;
  padding: 14px 28px;
  background: #fbfcfd;
}

#reservationsSection .commercial-ledger-header {
  min-height: 112px;
}

#reservationsSection .reservations-new-btn {
  min-height: 46px;
  padding: 0 18px;
  border-radius: 8px;
}

#reservationsSection .reservation-conformation-tabs {
  min-height: 60px;
  margin: 0 -28px;
  padding: 0 28px;
  gap: 30px;
}

#reservationsSection .reservation-conformation-tabs > button {
  font-size: 13px;
}

#reservationsSection .reservation-stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 -28px;
  padding: 0 28px;
  border-top: 0;
}

#reservationsSection .reservation-stat {
  min-height: 110px;
  padding-top: 24px;
  padding-bottom: 24px;
}

#reservationsSection .reservation-stat small {
  display: block;
  margin-top: 8px;
  color: #7a8492;
  font-size: 12px;
  line-height: 1.4;
}

#reservationsSection .reservations-templates-surface > .layout {
  padding-top: 20px;
  padding-bottom: 20px;
}

#reservationsSection .reservation-template-editor {
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 28px;
  margin-top: 28px;
}

#reservationsSection .reservation-editor-toolbar {
  min-height: 50px;
  padding: 8px 10px;
  border-radius: 8px 8px 0 0;
}

#reservationsSection .reservation-editor-toolbar .table-btn {
  width: 36px;
  min-width: 36px;
  height: 34px;
  min-height: 34px;
  padding: 0;
}

#reservationsSection .reservation-rich-editor {
  min-height: 720px;
  padding: 44px 48px;
  border-radius: 0 0 8px 8px;
  font-size: 15px;
  line-height: 1.72;
}

#reservationsSection .reservation-field-manager h3 {
  margin: 0 0 6px;
  color: var(--reservations-ink);
  font-size: 16px;
}

#reservationsSection .reservation-variable-row {
  border-radius: 8px;
}

#reservationsSection .reservation-field-builder {
  padding: 20px;
  border-radius: 8px;
}

#reservationsSection .reservation-template-footer-actions {
  min-height: 76px;
  margin: 28px -28px -28px;
  padding: 15px 28px;
  align-items: center;
  background: #fbfcfd;
}

#reservationsSection .commercial-ledger-modal-card {
  border: 1px solid #e3e7ec;
  box-shadow: 0 24px 80px rgba(15, 23, 42, .18);
}

#reservationsSection .commercial-ledger-seller {
  padding: 14px 16px;
  border: 1px solid #e5e9ee;
  background: #f8fafb;
}

#reservationsSection .reservation-colleague-toggle {
  min-height: 64px;
  border-radius: 8px;
}

@media (max-width: 1100px) {
  #reservationsSection .reservations-header-context {
    display: none;
  }

  #reservationsSection .reservation-history-filters,
  #reservationsSection .reservation-filter-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  #reservationsSection .reservation-refresh-btn {
    justify-self: start;
  }

  #reservationsSection .reservation-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Historial v4: seguimiento compacto, legible y sin responsable editable. */
#reservationsSection .reservations-history-surface {
  padding: 0;
  overflow: hidden;
  border: 1px solid #e4e8ed;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(16, 24, 40, .045);
}

#reservationsSection .reservations-history-surface .reservation-history-head {
  min-height: 108px;
  margin: 0;
  padding: 26px 30px 22px;
  border-bottom: 1px solid #edf0f3;
}

#reservationsSection .reservations-history-surface .reservation-history-head h2 {
  margin-top: 4px;
  font-size: 24px;
  line-height: 1.2;
}

#reservationsSection .reservations-history-surface .reservation-history-head p {
  margin-top: 7px;
  color: #697386;
  font-size: 14px;
}

#reservationsSection .reservations-history-surface .reservation-history-filters {
  grid-template-columns: minmax(320px, 2fr) minmax(170px, .7fr) minmax(190px, .8fr) 44px !important;
  align-items: end;
  gap: 14px;
  margin: 0;
  padding: 18px 30px 20px;
  border-bottom: 1px solid #edf0f3;
  background: #fafbfc;
}

#reservationsSection .reservations-history-surface .reservation-history-filters .field {
  min-width: 0;
}

#reservationsSection .reservations-history-surface .reservation-history-filters label {
  margin-bottom: 7px;
  color: #475467;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
}

#reservationsSection .reservations-history-surface .reservation-history-filters input,
#reservationsSection .reservations-history-surface .reservation-history-filters select {
  width: 100%;
  height: 44px;
  min-height: 44px;
  border-color: #dfe3e8;
  border-radius: 7px;
  background: #fff;
  font-size: 14px;
}

#reservationsSection .reservations-history-surface .reservation-refresh-btn {
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  align-self: end;
  justify-self: end;
  border-radius: 7px;
}

#reservationsSection .reservations-history-surface .reservation-refresh-btn svg {
  width: 18px;
  height: 18px;
}

#reservationsSection .reservations-history-surface .reservation-summary-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0 30px;
  border-bottom: 1px solid #edf0f3;
  background: #fff;
}

#reservationsSection .reservations-history-surface .reservation-summary-item {
  min-height: 82px;
  padding: 18px 22px;
  border: 0;
  border-right: 1px solid #edf0f3;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#reservationsSection .reservations-history-surface .reservation-summary-item:first-child {
  padding-left: 0;
}

#reservationsSection .reservations-history-surface .reservation-summary-item:last-child {
  border-right: 0;
}

#reservationsSection .reservations-history-surface .reservation-summary-item span {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

#reservationsSection .reservations-history-surface .reservation-summary-item strong {
  margin-top: 5px;
  color: #182230;
  font-size: 25px;
  line-height: 1;
}

#reservationsSection .reservations-history-surface > .orders-table-scroll {
  width: 100%;
  margin: 0;
  overflow-x: auto;
  border: 0;
  border-radius: 0;
}

#reservationsSection .reservations-history-table {
  min-width: 1180px;
  table-layout: fixed;
}

#reservationsSection .reservations-history-table th:nth-child(1) { width: 145px; }
#reservationsSection .reservations-history-table th:nth-child(2) { width: 165px; }
#reservationsSection .reservations-history-table th:nth-child(3) { width: 215px; }
#reservationsSection .reservations-history-table th:nth-child(4) { width: 175px; }
#reservationsSection .reservations-history-table th:nth-child(5) { width: 130px; }
#reservationsSection .reservations-history-table th:nth-child(6) { width: 108px; }
#reservationsSection .reservations-history-table th:nth-child(7) { width: 145px; }
#reservationsSection .reservations-history-table th:nth-child(8) { width: 240px; }

#reservationsSection .reservations-history-table th {
  height: 46px;
  padding: 11px 14px;
  background: #f7f9fa;
  color: #667085;
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

#reservationsSection .reservations-history-table td {
  height: 72px;
  padding: 14px;
  border-bottom: 1px solid #edf0f3;
  vertical-align: middle;
}

#reservationsSection .reservations-history-table tbody tr:last-child td {
  border-bottom: 0;
}

#reservationsSection .reservations-history-table .reservation-main-cell strong,
#reservationsSection .reservations-history-table .reservation-client-cell strong {
  display: block;
  overflow: hidden;
  color: #182230;
  font-size: 13px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#reservationsSection .reservations-history-table .reservation-main-cell small,
#reservationsSection .reservations-history-table .reservation-client-cell small {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: #7a8492;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#reservationsSection .reservations-history-table .reservation-property-cell {
  overflow: hidden;
  color: #344054;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#reservationsSection .reservation-owner-cell {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
}

#reservationsSection .reservation-owner-cell > span:last-child {
  overflow: hidden;
  color: #344054;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#reservationsSection .reservation-owner-avatar {
  display: inline-flex;
  width: 30px;
  min-width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border: 1px solid #ffd9c6;
  border-radius: 50%;
  background: #fff4ee;
  color: #e94e17;
  font-size: 10px;
  font-weight: 900;
}

#reservationsSection .reservations-history-table .reservation-actions-cell {
  display: flex;
  width: 100%;
  min-width: 0;
  justify-content: flex-end;
  gap: 6px;
}

#reservationsSection .reservations-history-table .reservation-actions-cell .table-btn {
  min-width: 0;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 6px;
  font-size: 11px;
  white-space: nowrap;
}

#reservationsSection .reservations-history-table .reservation-delete-btn {
  width: 34px;
  padding: 0 !important;
  color: #b42318;
}

#reservationsSection .reservations-history-table .reservation-preview-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 36px;
  width: 36px;
  padding: 0 !important;
  color: #c8420b;
}

#reservationsSection .reservation-preview-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

#attachmentPreviewModal.reservation-document-preview .attachment-preview-head strong {
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.35;
}

#attachmentPreviewModal.reservation-document-preview .attachment-preview-head button {
  flex-shrink: 0;
  width: auto !important;
  min-width: 64px;
}

#attachmentPreviewModal.reservation-document-preview .attachment-preview-body {
  padding: 0;
  overflow: hidden;
}

#attachmentPreviewModal.reservation-document-preview iframe {
  min-height: 0;
  border-radius: 0;
}

#attachmentPreviewModal.reservation-document-preview .hint {
  padding: 24px;
}

@media (max-width: 600px) {
  #reservationsSection .reservations-history-table .reservation-preview-btn {
    flex-basis: 44px;
    width: 44px;
    min-height: 44px;
  }

  #attachmentPreviewModal.reservation-document-preview {
    padding: 8px;
  }

  #attachmentPreviewModal.reservation-document-preview .attachment-preview-card {
    height: calc(100dvh - 16px);
    border-radius: 8px;
  }

  #attachmentPreviewModal.reservation-document-preview .attachment-preview-head {
    padding: 12px;
  }
}

#reservationsSection .reservations-history-surface > .pagination {
  min-height: 62px;
  margin: 0;
  padding: 12px 24px;
  border-top: 1px solid #edf0f3;
  background: #fafbfc;
}

#reservationsSection .reservations-history-surface .reservations-page-info {
  color: #697386;
  font-size: 12px;
  font-weight: 650;
}

@media (max-width: 1100px) {
  #reservationsSection .reservations-history-surface .reservation-history-filters {
    grid-template-columns: minmax(260px, 1.5fr) minmax(160px, 1fr) minmax(180px, 1fr) 44px !important;
  }
}

/* Historial de reservas v5: lectura ejecutiva y responsive */
#reservationsSection .reservations-history-surface {
  overflow: hidden;
  border-color: #e3e7eb;
  background: #fff;
  box-shadow: 0 14px 34px rgba(18, 30, 45, .06);
}

#reservationsSection .reservations-history-surface .reservation-history-head {
  min-height: 104px;
  padding: 22px 26px;
  border-bottom: 1px solid #edf0f2;
  background: #fff;
}

#reservationsSection .reservation-history-title {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 14px;
}

#reservationsSection .reservation-history-emblem {
  display: inline-flex;
  width: 46px;
  min-width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid #ffd8c5;
  border-radius: 8px;
  background: #fff5ef;
  color: #f15a24;
}

#reservationsSection .reservation-history-emblem svg {
  width: 23px;
  height: 23px;
}

#reservationsSection .reservations-history-surface .reservation-history-head h2 {
  margin: 2px 0 3px;
  color: #151c26;
  font-size: 23px;
  line-height: 1.2;
  letter-spacing: 0;
}

#reservationsSection .reservations-history-surface .reservation-history-head p {
  margin: 0;
  color: #6f7783;
  font-size: 13px;
}

#reservationsSection .reservations-history-surface .reservation-history-filters {
  display: grid;
  grid-template-columns: minmax(340px, 1.8fr) minmax(170px, .65fr) minmax(190px, .72fr) 44px !important;
  align-items: end;
  gap: 14px;
  margin: 0;
  padding: 20px 26px;
  border-bottom: 1px solid #edf0f2;
  background: #fbfcfd;
}

#reservationsSection .reservation-history-filters .field {
  min-width: 0;
  gap: 7px;
}

#reservationsSection .reservation-history-filters .field > label {
  color: #5e6875;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
}

#reservationsSection .reservation-history-filters input,
#reservationsSection .reservation-history-filters select {
  width: 100%;
  height: 44px;
  min-height: 44px;
  border: 1px solid #dce1e6;
  border-radius: 7px;
  background: #fff;
  color: #1f2933;
  font-size: 13px;
  box-shadow: none;
}

#reservationsSection .reservation-history-search-control {
  position: relative;
}

#reservationsSection .reservation-history-search-control svg {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 14px;
  width: 18px;
  height: 18px;
  color: #8b95a1;
  transform: translateY(-50%);
  pointer-events: none;
}

#reservationsSection .reservation-history-search-control input {
  padding-left: 42px;
}

#reservationsSection .reservation-history-filters input:focus,
#reservationsSection .reservation-history-filters select:focus {
  border-color: #ff8b59;
  outline: 3px solid rgba(255, 90, 0, .1);
}

#reservationsSection .reservations-history-surface .reservation-refresh-btn {
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border-color: #dce1e6;
  border-radius: 7px;
  background: #fff;
  color: #4c5865;
}

#reservationsSection .reservations-history-surface .reservation-refresh-btn:hover {
  border-color: #ffc3a5;
  background: #fff6f1;
  color: #e94e17;
}

#reservationsSection .reservations-history-surface .reservation-summary-grid-compact {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  padding: 0 26px;
  border-bottom: 1px solid #edf0f2;
  background: #fff;
}

#reservationsSection .reservations-history-surface .reservation-summary-item {
  position: relative;
  min-height: 104px;
  padding: 19px 24px 17px;
  border: 0;
  border-right: 1px solid #edf0f2;
  border-radius: 0;
  background: transparent;
}

#reservationsSection .reservations-history-surface .reservation-summary-item:first-child {
  padding-left: 0;
}

#reservationsSection .reservations-history-surface .reservation-summary-item:last-child {
  border-right: 0;
}

#reservationsSection .reservations-history-surface .reservation-summary-item::before {
  position: absolute;
  top: 22px;
  right: 24px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #98a2ad;
  content: "";
}

#reservationsSection .reservations-history-surface .reservation-summary-item.is-effective::before {
  background: #2eae68;
}

#reservationsSection .reservations-history-surface .reservation-summary-item.is-cancelled::before {
  background: #d64545;
}

#reservationsSection .reservations-history-surface .reservation-summary-item span {
  display: block;
  margin: 0 0 3px;
  color: #707a86;
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .04em;
}

#reservationsSection .reservations-history-surface .reservation-summary-item strong {
  color: #161d27;
  font-size: 27px;
  line-height: 1.1;
}

#reservationsSection .reservations-history-surface .reservation-summary-item small {
  display: block;
  margin-top: 5px;
  color: #8a939e;
  font-size: 11px;
}

#reservationsSection .reservations-history-surface .orders-table-scroll {
  overflow: auto;
  background: #fff;
}

#reservationsSection .reservations-history-table {
  min-width: 1120px;
  table-layout: fixed;
}

#reservationsSection .reservations-history-table thead th {
  height: 44px;
  padding: 0 13px;
  border-bottom: 1px solid #e7ebef;
  background: #f7f9fa;
  color: #697481;
  font-size: 9px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: .035em;
}

#reservationsSection .reservations-history-table tbody td {
  height: 74px;
  padding: 12px 13px;
  border-bottom: 1px solid #edf0f2;
  color: #2f3945;
  font-size: 12px;
  vertical-align: middle;
}

#reservationsSection .reservations-history-table tbody tr:hover td {
  background: #fffaf7;
}

#reservationsSection .reservations-history-table tbody tr:last-child td {
  border-bottom: 0;
}

#reservationsSection .reservations-history-surface > .pagination {
  min-height: 60px;
  padding: 12px 26px;
  background: #fbfcfd;
}

#reservationsSection .reservations-history-surface .reservations-page-actions {
  display: flex;
  gap: 8px;
}

#reservationsSection .reservations-history-surface .reservations-page-actions .table-btn {
  min-height: 36px;
  border-color: #dce1e6;
  border-radius: 7px;
  background: #fff;
}

@media (max-width: 1100px) {
  #reservationsSection .reservations-history-surface .reservation-history-filters {
    grid-template-columns: minmax(240px, 1.4fr) minmax(150px, .8fr) minmax(175px, .9fr) 44px !important;
  }
}

@media (max-width: 760px) {
  #reservationsSection .reservations-history-surface {
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  #reservationsSection .reservations-history-surface .reservation-history-head {
    min-height: auto;
    padding: 18px 16px;
    border: 1px solid #e3e7eb;
    border-radius: 8px 8px 0 0;
  }

  #reservationsSection .reservation-history-emblem {
    width: 42px;
    min-width: 42px;
    height: 42px;
  }

  #reservationsSection .reservations-history-surface .reservation-history-head h2 {
    font-size: 20px;
  }

  #reservationsSection .reservations-history-surface .reservation-history-head p {
    font-size: 12px;
    line-height: 1.4;
  }

  #reservationsSection .reservations-history-surface .reservation-history-filters {
    grid-template-columns: 1fr 1fr !important;
    gap: 12px;
    padding: 16px;
    border-right: 1px solid #e3e7eb;
    border-left: 1px solid #e3e7eb;
  }

  #reservationsSection .reservation-history-search {
    grid-column: 1 / -1;
  }

  #reservationsSection .reservations-history-surface .reservation-refresh-btn {
    grid-column: 1 / -1;
    width: 100%;
  }

  #reservationsSection .reservations-history-surface .reservation-summary-grid-compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 0 14px;
    border-right: 1px solid #e3e7eb;
    border-left: 1px solid #e3e7eb;
  }

  #reservationsSection .reservations-history-surface .reservation-summary-item {
    min-height: 86px;
    padding: 15px 10px;
  }

  #reservationsSection .reservations-history-surface .reservation-summary-item:first-child {
    padding-left: 0;
  }

  #reservationsSection .reservations-history-surface .reservation-summary-item::before,
  #reservationsSection .reservations-history-surface .reservation-summary-item small {
    display: none;
  }

  #reservationsSection .reservations-history-surface .reservation-summary-item span {
    font-size: 8px;
  }

  #reservationsSection .reservations-history-surface .reservation-summary-item strong {
    font-size: 23px;
  }

  #reservationsSection .reservations-history-surface .orders-table-scroll {
    overflow: visible;
    padding: 14px 0;
    border: 0;
    background: transparent;
  }

  #reservationsSection .reservations-history-table {
    display: block;
    width: 100%;
    min-width: 0;
  }

  #reservationsSection .reservations-history-table thead {
    display: none;
  }

  #reservationsSection .reservations-history-table tbody {
    display: grid;
    gap: 10px;
  }

  #reservationsSection .reservations-history-table tbody tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px 16px;
    padding: 16px;
    border: 1px solid #e3e7eb;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(18, 30, 45, .045);
  }

  #reservationsSection .reservations-history-table tbody td,
  #reservationsSection .reservations-history-table tbody tr:hover td {
    display: block;
    width: auto !important;
    height: auto;
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
    font-size: 12px;
    text-align: left;
  }

  #reservationsSection .reservations-history-table tbody td::before {
    display: block;
    margin-bottom: 4px;
    color: #8a939e;
    font-size: 8px;
    font-weight: 850;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: .045em;
    content: attr(data-label);
  }

  #reservationsSection .reservations-history-table tbody td[colspan] {
    grid-column: 1 / -1;
    padding: 24px;
    border: 0;
    text-align: center;
  }

  #reservationsSection .reservations-history-table tbody td[colspan]::before {
    display: none;
  }

  #reservationsSection .reservations-history-table .reservation-main-cell,
  #reservationsSection .reservations-history-table .reservation-property-cell,
  #reservationsSection .reservations-history-table tbody td[data-label="Cliente"],
  #reservationsSection .reservations-history-table tbody td[data-label="Acciones"] {
    grid-column: 1 / -1;
  }

  #reservationsSection .reservations-history-table .reservation-owner-cell {
    justify-content: flex-start;
  }

  #reservationsSection .reservations-history-table .reservation-actions-cell {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  #reservationsSection .reservations-history-surface > .pagination {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 14px 16px;
    border: 1px solid #e3e7eb;
    border-radius: 8px;
    background: #fff;
  }

  #reservationsSection .reservations-history-surface .reservations-page-actions .table-btn {
    flex: 1;
  }
}

@media (max-width: 480px) {
  #reservationsSection .reservations-history-surface .reservation-history-filters {
    grid-template-columns: 1fr !important;
  }

  #reservationsSection .reservation-history-search,
  #reservationsSection .reservations-history-surface .reservation-refresh-btn {
    grid-column: auto;
  }
}

#reservationsSection .reservation-monthly-surface {
  min-width: 0;
  padding: 24px;
  background: #fff;
}

#reservationsSection .reservation-monthly-heading,
#reservationsSection .reservation-monthly-table-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

#reservationsSection .reservation-monthly-heading h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.3;
}

#reservationsSection .reservation-monthly-controls {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

#reservationsSection .reservation-monthly-filter {
  display: grid;
  gap: 6px;
  width: 108px;
  min-width: 0;
}

#reservationsSection .reservation-month-filter {
  width: 190px;
}

#reservationsSection .reservation-monthly-controls label {
  flex: 0 0 auto;
  width: auto !important;
  white-space: nowrap;
  margin: 0;
  font-size: 13px;
  color: #57606c;
}

#reservationsSection .reservation-monthly-controls select {
  width: 100% !important;
  min-width: 0;
  min-height: 42px;
  margin: 0;
  padding: 8px 12px;
  font-size: 14px;
  border: 1px solid #d9dfe5;
  border-radius: 6px;
}

#reservationsSection .reservation-monthly-controls button {
  flex: 0 0 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px !important;
  height: 42px;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 6px;
}

#reservationsSection .reservation-monthly-controls svg,
#reservationsSection .reservation-operation-tabs svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

#reservationsSection .reservation-operation-tabs {
  display: flex;
  gap: 16px;
  margin-top: 20px;
  border-bottom: 1px solid #e4e7ec;
}

#reservationsSection .reservation-operation-tabs button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto !important;
  min-height: 46px;
  padding: 10px 12px;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  background: transparent;
  color: #596372;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}

#reservationsSection .reservation-operation-tabs button.active {
  border-bottom-color: #f35c22;
  color: #bd3f0d;
}

#reservationsSection .reservation-monthly-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid #e4e7ec;
}

#reservationsSection .reservation-monthly-summary span {
  display: block;
  color: #637080;
  font-size: 13px;
  line-height: 1.4;
}

#reservationsSection .reservation-monthly-summary strong {
  display: block;
  margin-top: 6px;
  font-size: 28px;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  color: #18232e;
}

#reservationsSection .reservation-monthly-table-heading {
  padding: 20px 0 14px;
}

#reservationsSection .reservation-monthly-table-heading h3 {
  margin: 0;
  font-size: 17px;
}

#reservationsSection .reservation-monthly-table-heading span {
  font-size: 12px;
  color: #637080;
}

#reservationsSection .reservation-monthly-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  border: 1px solid #e4e7ec;
}

#reservationsSection .reservation-monthly-table {
  display: table;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  min-width: 980px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

#reservationsSection .reservation-monthly-table th,
#reservationsSection .reservation-monthly-table td {
  padding: 14px 8px;
  border: 0;
  border-bottom: 1px solid #e8ebef;
  text-align: center;
  vertical-align: middle;
}

#reservationsSection .reservation-monthly-table tr > :first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  width: 200px;
  text-align: left;
  background: #fff;
  border-right: 1px solid #e4e7ec;
}

#reservationsSection .reservation-monthly-table tr > :last-child {
  width: 65px;
  font-weight: 800;
}

#reservationsSection .reservation-monthly-table.is-month-filtered {
  min-width: 0;
}

#reservationsSection .reservation-monthly-table.is-month-filtered tr > :first-child {
  width: auto;
}

#reservationsSection .reservation-monthly-table.is-month-filtered tr > :last-child {
  width: 100px;
}

#reservationsSection .reservation-monthly-table thead th,
#reservationsSection .reservation-monthly-table tfoot th,
#reservationsSection .reservation-monthly-table tfoot td {
  background: #f3f5f7;
  font-weight: 800;
  color: #394655;
}

#reservationsSection .reservation-monthly-table tbody th strong,
#reservationsSection .reservation-monthly-table tbody th small {
  display: block;
  overflow-wrap: anywhere;
  line-height: 1.45;
}

#reservationsSection .reservation-monthly-table tbody th small {
  margin-top: 4px;
  font-weight: 400;
  font-size: 11px;
  color: #77818d;
}

#reservationsSection .reservation-monthly-table .is-zero {
  color: #86909d;
}

#reservationsSection .reservation-monthly-table .has-reservations {
  color: #18232e;
  font-weight: 700;
}

#reservationsSection .reservation-monthly-table .reservation-monthly-row-total {
  color: #ad3b11;
  background: #fff5f0;
}

#reservationsSection .reservation-monthly-empty,
#reservationsSection .reservation-monthly-notice {
  padding: 30px 0;
  color: #637080;
  line-height: 1.5;
  font-size: 14px;
}

#reservationsSection .reservation-monthly-notice {
  padding: 16px 0 0;
  color: #92500c;
}

#reservationsSection .reservation-commission-totals[hidden] {
  display: none !important;
}

#reservationsSection .reservation-commission-totals {
  padding: 20px 24px;
  border-top: 2px solid #dce2e8;
  background: #f8fafb;
}

#reservationsSection .reservation-commission-total-heading {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

#reservationsSection .reservation-commission-total-heading strong {
  font-size: 14px;
}

#reservationsSection .reservation-commission-total-heading span {
  color: #687484;
  font-size: 12px;
}

#reservationsSection .reservation-commission-totals dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
}

#reservationsSection .reservation-commission-totals dt {
  color: #687484;
  font-size: 12px;
  line-height: 1.4;
}

#reservationsSection .reservation-commission-totals dd {
  margin: 6px 0 0;
  font-size: 20px;
  line-height: 1.35;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

#reservationsSection .reservation-commission-grand-total dd {
  color: #ad3b11;
}

@media (max-width: 760px) {
  #reservationsSection .reservation-monthly-surface {
    padding: 16px;
  }

  #reservationsSection .reservation-monthly-heading h2 {
    font-size: 20px;
  }

  #reservationsSection .reservation-monthly-controls {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr) 42px;
    width: 100%;
    align-items: end;
  }

  #reservationsSection .reservation-monthly-filter {
    width: auto;
  }

  #reservationsSection .reservation-monthly-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  #reservationsSection .reservation-monthly-summary > :last-child {
    grid-column: 1 / -1;
  }

  #reservationsSection .reservation-monthly-table tr > :first-child {
    width: 160px;
  }

  #reservationsSection .reservation-commission-totals {
    padding: 20px 16px;
  }

  #reservationsSection .reservation-commission-totals dl {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  #reservationsSection .reservation-commission-grand-total {
    border-top: 1px solid #dce2e8;
    padding-top: 16px;
  }
}

@media (max-width: 380px) {
  #reservationsSection .reservation-monthly-controls {
    grid-template-columns: minmax(0, 1fr) 42px;
  }

  #reservationsSection .reservation-month-filter {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  #reservationsSection .reservation-monthly-controls button {
    grid-column: 2;
    grid-row: 1;
  }
}
