html {
  font-family: Arial, Helvetica, sans-serif;
  height: 100%;
}

/* Payments list filter */

.payments-filter,
.workspace > form[method="get"].md\:grid-cols-4 {
  display: grid;
  grid-template-columns: minmax(12rem, 1.25fr) minmax(10rem, 1fr) minmax(12rem, 1.15fr) repeat(2, 9.25rem) repeat(2, 7.5rem) auto;
  align-items: end;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0.75rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  background: #ffffff;
}

.payments-filter-field,
.workspace > form[method="get"].md\:grid-cols-4 > div {
  min-width: 0;
}

.payments-filter-field label,
.workspace > form[method="get"].md\:grid-cols-4 label {
  display: block;
  margin-bottom: 0.2rem;
  overflow: hidden;
  color: #374151;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.payments-filter-field input,
.payments-filter-field select,
.workspace > form[method="get"].md\:grid-cols-4 input,
.workspace > form[method="get"].md\:grid-cols-4 select {
  display: block;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 0.35rem 0.5rem;
  border: 1px solid #d1d5db;
  border-radius: 0.35rem;
  background: #ffffff;
  color: #111827;
  font-size: 0.85rem;
  line-height: 1.25;
}

.payments-filter-actions,
.workspace > form[method="get"].md\:grid-cols-4 > div.flex.items-end {
  display: flex;
  align-items: end;
  gap: 0.5rem;
  min-width: max-content;
}

.payments-filter-button,
.workspace > form[method="get"].md\:grid-cols-4 button,
.workspace > form[method="get"].md\:grid-cols-4 a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2rem;
  box-sizing: border-box;
  padding: 0.35rem 0.7rem;
  border-width: 1px;
  border-style: solid;
  border-radius: 0.35rem;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.payments-filter-button--primary,
.workspace > form[method="get"].md\:grid-cols-4 button {
  border: 1px solid var(--fb-action);
  background: var(--fb-action);
  color: #ffffff;
}

.payments-filter-button--primary:hover,
.workspace > form[method="get"].md\:grid-cols-4 button:hover {
  background: var(--fb-action-hover);
}

.payments-filter-button--secondary,
.workspace > form[method="get"].md\:grid-cols-4 a {
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #111827;
}

.payments-filter-button--secondary:hover,
.workspace > form[method="get"].md\:grid-cols-4 a:hover {
  background: #f3f4f6;
}

.reservations-filter {
  grid-template-columns: minmax(8rem, 0.75fr) repeat(3, minmax(9rem, 1fr)) repeat(2, minmax(14rem, 1.25fr)) auto;
}

.reservations-filter .payments-filter-field--date {
  min-width: 14rem;
}

.tenant-email-log-filter {
  grid-template-columns: repeat(4, minmax(9rem, 1fr)) repeat(2, minmax(9.25rem, 1fr)) auto;
}

@media (min-width: 761px) and (max-width: 1400px) {
  .tenant-email-log-filter {
    grid-template-columns: repeat(3, minmax(9rem, 1fr)) repeat(2, minmax(9.25rem, 1fr));
  }
}

@media (min-width: 761px) and (max-width: 1100px) {
  .tenant-email-log-filter {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.payments-filter-field > .payments-filter-button {
  width: 100%;
  justify-content: space-between;
}

.payments-filter-checkbox {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2rem;
  margin-bottom: 0;
  white-space: normal;
}

.payments-filter-field .payments-filter-checkbox input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
  padding: 0;
}

.payments-filter-checkbox span {
  color: #374151;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.2;
}

.free-capacity-bookable-filter {
  display: flex;
  align-items: center;
}

.payments-filter--borderless {
  border: 0;
}

/* Compact mobile filter disclosure */

.mobile-filter-summary {
  display: none;
}

[data-mobile-filter-panel][hidden] {
  display: none !important;
}

.mobile-filter-summary-text {
  min-width: 0;
  overflow-wrap: anywhere;
  white-space: normal;
}

.mobile-filter-summary-indicator {
  flex: 0 0 auto;
  margin-top: 0.05rem;
  color: #6b7280;
  transition: transform 150ms ease;
}

[data-mobile-filter-disclosure].is-mobile-filter-expanded .mobile-filter-summary-indicator {
  transform: rotate(180deg);
}

@media (max-width: 1400px) {
  .payments-filter,
  .workspace > form[method="get"].md\:grid-cols-4 {
    grid-template-columns: minmax(12rem, 1.25fr) minmax(10rem, 1fr) minmax(12rem, 1.15fr) repeat(2, 9.25rem);
  }

  .reservations-filter {
    grid-template-columns: minmax(8rem, 0.8fr) repeat(2, minmax(9rem, 1fr)) minmax(13rem, 1.25fr) minmax(13rem, 1.25fr);
  }

  .payments-filter-actions,
  .workspace > form[method="get"].md\:grid-cols-4 > div.flex.items-end {
    grid-column: span 2;
  }
}

@media (max-width: 1100px) {
  .payments-filter,
  .workspace > form[method="get"].md\:grid-cols-4 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .reservations-filter {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .payments-filter-actions,
  .workspace > form[method="get"].md\:grid-cols-4 > div.flex.items-end {
    grid-column: auto;
  }
}

@media (max-width: 760px) {
  .page-description {
    display: none;
  }

  .mobile-filter-summary {
    display: flex;
    width: calc(100% - 2rem);
    min-height: 2.5rem;
    box-sizing: border-box;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 1rem 1rem 0;
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    background: #f9fafb;
    color: #111827;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.25;
    text-align: left;
  }

  .mobile-filter-summary:hover {
    border-color: #9ca3af;
    background: #f3f4f6;
  }

  .mobile-filter-summary:focus-visible {
    border-color: var(--fb-accent);
    outline: 2px solid var(--fb-accent);
    outline-offset: 2px;
  }

  .mobile-filter-disclosure--flush > .mobile-filter-summary {
    width: 100%;
    margin: 0;
  }

  [data-mobile-filter-disclosure].is-mobile-filter-expanded > [data-mobile-filter-panel] {
    margin-top: 0.5rem;
  }

  .payments-filter,
  .workspace > form[method="get"].md\:grid-cols-4 {
    grid-template-columns: 1fr;
  }

  .reservations-filter {
    grid-template-columns: 1fr;
  }

  .reservations-filter .payments-filter-field--date {
    min-width: 0;
  }

  .payments-filter-actions,
  .workspace > form[method="get"].md\:grid-cols-4 > div.flex.items-end {
    flex-wrap: wrap;
    min-width: 0;
  }
}

@media (min-width: 761px) {
  .guests-filter-form.payments-filter {
    grid-template-columns: repeat(3, minmax(12rem, 1fr)) auto;
    margin-bottom: 0;
  }

  .guests-filter-form .payments-filter-actions {
    grid-column: auto;
  }
}

body {
  margin: 0;
  background: #f7f7f7;
  color: #1f2937;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Mobile card-view pattern */

.mobile-card-list {
  display: none;
}

.mobile-card {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  background: #ffffff;
  overflow: hidden;
}

.mobile-card-header,
.mobile-card-section,
.mobile-card-action-row,
.mobile-card-grid,
.mobile-card-primary-row {
  min-width: 0;
}

.mobile-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem;
  border-bottom: 1px solid #f3f4f6;
}

.mobile-card-title-block {
  min-width: 0;
}

.mobile-card-kicker {
  display: block;
  margin-bottom: 0.15rem;
  color: #6b7280;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
}

.mobile-card-title {
  margin: 0;
  overflow-wrap: anywhere;
  color: #111827;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
}

.mobile-card-subtitle {
  margin-top: 0.2rem;
  overflow-wrap: anywhere;
  color: #4b5563;
  font-size: 0.85rem;
  line-height: 1.25;
}

.mobile-card-primary-row {
  display: grid;
  grid-template-columns: minmax(5.5rem, 7.5rem) minmax(0, 1fr);
  gap: 0.5rem;
  align-items: baseline;
  padding: 0.75rem 0.85rem 0;
}

.mobile-card-label,
.mobile-card-field dt,
.mobile-card-section-title {
  color: #6b7280;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.2;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.mobile-card-value,
.mobile-card-field dd {
  min-width: 0;
  color: #111827;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.mobile-card-muted {
  display: block;
  margin-top: 0.15rem;
  color: #6b7280;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.25;
}

.mobile-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 0.65rem;
  margin: 0;
  padding: 0.75rem 0.85rem;
}

.mobile-card-field {
  min-width: 0;
}

.mobile-card-field dt,
.mobile-card-field dd {
  margin: 0;
}

.mobile-card-field dd {
  margin-top: 0.2rem;
}

.mobile-card-section {
  padding: 0.75rem 0.85rem;
  border-top: 1px solid #f3f4f6;
}

.mobile-card-section-title {
  margin-bottom: 0.45rem;
}

.mobile-card-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.mobile-card-action-form {
  flex: 1 1 7rem;
  min-width: 0;
}

.mobile-card-button,
.mobile-card-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 2.25rem;
  box-sizing: border-box;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  padding: 0.45rem 0.7rem;
  background: #ffffff;
  color: #111827;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.2;
  overflow-wrap: anywhere;
  text-align: center;
  text-decoration: none;
}

.mobile-card-button {
  width: 100%;
}

.mobile-card-link {
  flex: 1 1 6.5rem;
}

.mobile-card-button:hover,
.mobile-card-link:hover {
  background: #f3f4f6;
}

.mobile-card-link--primary {
  border-color: var(--fb-accent-border);
  background: var(--fb-accent-soft);
  color: var(--fb-accent);
}

.mobile-card-link--primary:hover {
  background: var(--fb-accent-soft-hover);
}

.mobile-card-empty {
  color: #6b7280;
  font-size: 0.85rem;
}

.reservations-mobile-list,
.customer-proposals-mobile-list,
.customer-requests-mobile-list,
.guests-mobile-list,
.resources-mobile-list,
.free-capacity-mobile-list,
.today-schedule-mobile-list,
.resource-utilization-mobile-list,
.financial-summary-mobile-list,
.payments-mobile-list {
  padding: 0.75rem;
}

.tenant-email-log-mobile-list {
  padding-right: 0;
  padding-left: 0;
}

.reservation-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.reservation-card-badges > span {
  max-width: 100%;
  overflow-wrap: anywhere;
  white-space: normal;
}

.reservation-card-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1.25rem;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  border: 0;
  padding: 0.75rem 0.85rem;
  background: #ffffff;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
  text-decoration: none;
}

.reservation-card-summary:hover {
  background: #f9fafb;
}

.reservation-card-summary:focus-visible {
  position: relative;
  z-index: 1;
  outline: 2px solid var(--fb-accent);
  outline-offset: -2px;
}

.reservation-card-summary-content {
  display: grid;
  min-width: 0;
  gap: 0.15rem;
}

.reservation-card-date {
  color: #111827;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.25;
}

.reservation-card-summary .mobile-card-kicker {
  margin-bottom: 0;
}

.reservation-card-summary .mobile-card-subtitle {
  margin-top: 0;
}

.reservation-card-summary .reservation-card-badges {
  margin-top: 0.25rem;
}

.reservation-card-chevron {
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid #6b7280;
  border-bottom: 2px solid #6b7280;
  transform: rotate(45deg);
  transition: transform 150ms ease;
}

.reservation-card--expanded .reservation-card-chevron {
  transform: rotate(225deg);
}

.reservation-card-details {
  border-top: 1px solid #f3f4f6;
}

.reservation-card-details > .mobile-card-action-row {
  padding: 0.75rem 0.85rem 0.85rem;
  border-top: 1px solid #f3f4f6;
}

.customer-proposal-card {
  padding: 0.55rem 0.65rem;
  color: inherit;
  text-decoration: none;
}

.customer-proposal-card:hover {
  border-color: var(--fb-accent-border-strong);
  background: var(--fb-accent-soft);
}

.customer-proposal-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.4rem 0.65rem;
}

.customer-proposal-summary-field {
  min-width: 0;
}

.customer-proposal-summary-field > span {
  display: block;
  margin-bottom: 0.1rem;
  color: #64748b;
  font-size: 0.64rem;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

.customer-proposal-summary-field > strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: #111827;
  font-size: 0.86rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-proposal-customer {
  grid-column: 1;
  grid-row: 1;
}

.customer-proposal-customer > strong {
  font-size: 0.92rem;
}

.customer-proposal-status {
  display: inline-flex;
  grid-column: 2;
  grid-row: 1;
  align-items: center;
  justify-self: end;
  max-width: 12rem;
  border-radius: 999px;
  padding: 0.18rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.2;
  overflow-wrap: anywhere;
  text-align: center;
}

.customer-proposal-dates {
  grid-column: 1;
  grid-row: 2;
}

.customer-proposal-total {
  grid-column: 2;
  grid-row: 2;
  text-align: right;
}

.customer-request-card > .mobile-card-action-row {
  padding: 0.75rem 0.85rem 0.85rem;
  border-top: 1px solid #f3f4f6;
}

/* Customer request details workspace */

.customer-request-details-shell {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.customer-request-details-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  min-width: 0;
  padding: 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  background: #ffffff;
}

.customer-request-title-block {
  display: grid;
  flex: 1 1 auto;
  gap: 0.35rem;
  min-width: 0;
}

.customer-request-back-link {
  justify-self: start;
  color: var(--fb-accent);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}

.customer-request-back-link:hover {
  color: var(--fb-accent-strong);
  text-decoration: underline;
}

.customer-request-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}

.customer-request-title-row h1 {
  margin: 0;
  color: #111827;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.2;
}

.customer-request-title-block p {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  min-width: 0;
  margin: 0;
  color: #4b5563;
  font-size: 0.9rem;
  line-height: 1.35;
}

.customer-request-title-block p strong {
  color: #111827;
  font-weight: 700;
}

.customer-request-status,
.customer-request-selection-summary,
.customer-request-item-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.customer-request-status {
  padding: 0.22rem 0.6rem;
}

.customer-request-status--pending {
  background: var(--fb-accent-soft);
  color: var(--fb-accent-deep);
}

.customer-request-status--accepted {
  background: #dcfce7;
  color: #166534;
}

.customer-request-status--rejected {
  background: #fee2e2;
  color: #991b1b;
}

.customer-request-status--default {
  background: #f3f4f6;
  color: #374151;
}

.customer-request-header-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(7rem, 1fr));
  flex: 0 0 auto;
  gap: 0.5rem;
  min-width: min(100%, 28rem);
  margin: 0;
}

.customer-request-header-summary > div {
  min-width: 0;
  padding: 0.65rem 0.7rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  background: #f8fafc;
}

.customer-request-header-summary dt,
.customer-request-fact-grid dt,
.customer-request-detail-list dt,
.customer-request-item-meta dt,
.customer-request-item-details dt,
.customer-request-panel-kicker {
  color: #64748b;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

.customer-request-header-summary dd,
.customer-request-fact-grid dd,
.customer-request-detail-list dd,
.customer-request-item-meta dd,
.customer-request-item-details dd {
  min-width: 0;
  margin: 0.22rem 0 0;
  color: #111827;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.32;
  overflow-wrap: anywhere;
}

.customer-request-header-summary dt,
.customer-request-header-summary dd,
.customer-request-fact-grid dt,
.customer-request-fact-grid dd,
.customer-request-detail-list dt,
.customer-request-detail-list dd,
.customer-request-item-meta dt,
.customer-request-item-meta dd,
.customer-request-item-details dt,
.customer-request-item-details dd {
  margin-left: 0;
}

.customer-request-workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.42fr);
  gap: 1rem;
  align-items: start;
  min-width: 0;
}

.customer-request-review-column,
.customer-request-action-rail,
.customer-request-item-list {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.customer-request-action-rail {
  position: sticky;
  top: 0.75rem;
}

.customer-request-panel,
.customer-request-action-panel {
  min-width: 0;
  padding: 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  background: #ffffff;
}

.customer-request-action-panel--primary {
  border-color: var(--fb-accent-border);
  box-shadow: inset 3px 0 0 var(--fb-accent);
}

.customer-request-action-panel--success {
  border-color: #bbf7d0;
  box-shadow: inset 3px 0 0 #16a34a;
}

.customer-request-action-panel--danger {
  border-color: #fecaca;
  box-shadow: inset 3px 0 0 #dc2626;
}

.customer-request-panel-heading,
.customer-request-action-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  min-width: 0;
  margin-bottom: 0.85rem;
}

.customer-request-panel-heading > div,
.customer-request-action-heading {
  min-width: 0;
}

.customer-request-panel h2,
.customer-request-action-panel h2 {
  margin: 0.12rem 0 0;
  color: #111827;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
}

.customer-request-selection-summary {
  flex: 0 0 auto;
  padding: 0.22rem 0.55rem;
  background: var(--fb-accent-soft);
  color: var(--fb-accent-deep);
}

.customer-request-fact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0;
}

.customer-request-fact-grid > div,
.customer-request-detail-list > div {
  min-width: 0;
  padding: 0.75rem;
  border: 1px solid #eef2f7;
  border-radius: 0.5rem;
  background: #f8fafc;
}

.customer-request-fact-wide {
  grid-column: 1 / -1;
}

.customer-request-fact-grid dd strong,
.customer-request-fact-grid dd span {
  display: block;
}

.customer-request-fact-grid dd span {
  margin-top: 0.15rem;
  color: #4b5563;
  font-size: 0.84rem;
  font-weight: 500;
}

.customer-request-detail-list,
.customer-request-item-details dl {
  display: grid;
  gap: 0.65rem;
  margin: 0;
}

.customer-request-empty {
  margin: 0;
  padding: 1rem;
  border: 1px dashed #d1d5db;
  border-radius: 0.5rem;
  color: #4b5563;
  font-size: 0.9rem;
}

.customer-request-item-card {
  display: grid;
  gap: 0.85rem;
  min-width: 0;
  padding: 0.85rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  background: #ffffff;
}

.customer-request-item-card--selectable {
  grid-template-columns: minmax(4.5rem, 5.25rem) minmax(0, 1fr);
}

.customer-request-item-card--unmapped {
  background: #fffafa;
}

.customer-request-copy-control {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.4rem;
  min-width: 0;
  min-height: 5.5rem;
  padding: 0.65rem 0.5rem;
  border: 1px solid var(--fb-accent-border);
  border-radius: 0.5rem;
  background: var(--fb-accent-soft);
  color: var(--fb-accent-deep);
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.2;
}

.customer-request-copy-control input {
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--fb-accent);
}

.customer-request-copy-control--disabled {
  border-color: #e5e7eb;
  background: #f9fafb;
  color: #9ca3af;
  cursor: not-allowed;
}

.customer-request-item-content {
  display: grid;
  gap: 0.75rem;
  min-width: 0;
}

.customer-request-item-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  min-width: 0;
}

.customer-request-item-title-block {
  min-width: 0;
}

.customer-request-item-kicker {
  display: block;
  margin-bottom: 0.18rem;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.2;
}

.customer-request-item-title-block h3 {
  margin: 0;
  color: #111827;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.customer-request-item-title-block p {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.55rem;
  margin: 0.25rem 0 0;
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.25;
}

.customer-request-item-status {
  flex: 0 1 auto;
  padding: 0.22rem 0.55rem;
}

.customer-request-item-status--mapped {
  background: #dcfce7;
  color: #166534;
}

.customer-request-item-status--unmapped {
  background: #fee2e2;
  color: #991b1b;
}

.customer-request-item-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 0;
}

.customer-request-item-meta > div {
  min-width: 0;
  padding: 0.6rem;
  border-radius: 0.5rem;
  background: #f8fafc;
}

.customer-request-item-details {
  display: grid;
  gap: 0.65rem;
  min-width: 0;
  padding-top: 0.75rem;
  border-top: 1px solid #f1f5f9;
}

.customer-request-item-details p {
  margin: 0;
  color: #374151;
  font-size: 0.9rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.customer-request-item-details dl > div {
  min-width: 0;
}

.customer-request-form {
  display: grid;
  gap: 0.75rem;
}

.customer-request-field {
  display: grid;
  gap: 0.32rem;
  min-width: 0;
  color: #374151;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.2;
}

.customer-request-field select,
.customer-request-field textarea {
  width: 100%;
  min-width: 0;
  min-height: 2.35rem;
  box-sizing: border-box;
  padding: 0.45rem 0.55rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
  background: #ffffff;
  color: #111827;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 500;
}

.customer-request-field textarea {
  resize: vertical;
}

.customer-request-action-panel p {
  margin: 0 0 0.85rem;
  color: #4b5563;
  font-size: 0.9rem;
  line-height: 1.4;
}

.customer-request-full-action {
  width: 100%;
}

@media (max-width: 1100px) {
  .customer-request-details-header {
    flex-direction: column;
  }

  .customer-request-header-summary {
    width: 100%;
    min-width: 0;
  }

  .customer-request-workspace-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .customer-request-action-rail {
    position: static;
    order: -1;
  }
}

@media (max-width: 760px) {
  .customer-request-details-header,
  .customer-request-panel,
  .customer-request-action-panel {
    padding: 0.85rem;
  }

  .customer-request-title-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.4rem;
  }

  .customer-request-title-row h1 {
    font-size: 1.25rem;
  }

  .customer-request-header-summary,
  .customer-request-fact-grid,
  .customer-request-item-meta {
    grid-template-columns: minmax(0, 1fr);
  }

  .customer-request-item-card--selectable {
    grid-template-columns: minmax(0, 1fr);
  }

  .customer-request-copy-control {
    display: flex;
    justify-content: space-between;
    min-height: 0;
    padding: 0.6rem 0.65rem;
  }

  .customer-request-item-header,
  .customer-request-items-heading {
    flex-direction: column;
    align-items: flex-start;
  }

  .customer-request-selection-summary,
  .customer-request-item-status {
    align-self: flex-start;
  }
}

.resource-card-status {
  display: inline-flex;
  flex: 0 0 auto;
  max-width: 45%;
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
  overflow-wrap: anywhere;
  text-align: center;
}

.resource-card-status--active {
  background: #dcfce7;
  color: #166534;
}

.resource-card-status--inactive {
  background: #fee2e2;
  color: #991b1b;
}

.resource-card-location-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.resource-card-location-list > span,
.resource-card-price-digest span {
  max-width: 100%;
  overflow-wrap: anywhere;
  white-space: normal;
}

.resource-card-price-digest {
  display: grid;
  gap: 0.5rem;
  color: #374151;
  font-size: 0.78rem;
  line-height: 1.4;
}

.resource-card > .mobile-card-action-row {
  padding: 0.75rem 0.85rem 0.85rem;
  border-top: 1px solid #f3f4f6;
}

.payment-card-status {
  flex: 0 0 auto;
  max-width: 45%;
  overflow-wrap: anywhere;
  white-space: normal;
}

.payment-card > .mobile-card-action-row {
  padding: 0.75rem 0.85rem 0.85rem;
  border-top: 1px solid #f3f4f6;
}

.payment-card-amount-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.free-capacity-card-status {
  flex: 0 0 auto;
  max-width: 45%;
  overflow-wrap: anywhere;
  white-space: normal;
}

.free-capacity-card-metrics {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.free-capacity-card-windows {
  display: grid;
  gap: 0.3rem;
  color: #374151;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.3;
}

.free-capacity-card-windows > span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.free-capacity-card > .mobile-card-action-row {
  padding: 0.75rem 0.85rem 0.85rem;
  border-top: 1px solid #f3f4f6;
}

.today-schedule-card-status {
  flex: 0 0 auto;
  max-width: 45%;
  overflow-wrap: anywhere;
  white-space: normal;
}

.today-schedule-card-payment {
  max-width: 100%;
  overflow-wrap: anywhere;
  white-space: normal;
}

.today-schedule-card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.today-schedule-card-grid .mobile-card-field:last-child {
  grid-column: 1 / -1;
}

.today-schedule-card > .mobile-card-action-row {
  padding: 0.75rem 0.85rem 0.85rem;
  border-top: 1px solid #f3f4f6;
}

.resource-utilization-card-status {
  flex: 0 0 auto;
  max-width: 45%;
  overflow-wrap: anywhere;
  white-space: normal;
}

.resource-utilization-card-metrics {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.financial-summary-card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.financial-summary-card-period {
  grid-column: 1 / -1;
}

.financial-summary-card > .mobile-card-action-row {
  padding: 0.75rem 0.85rem 0.85rem;
  border-top: 1px solid #f3f4f6;
}

@media (max-width: 760px) {
  .mobile-card-list {
    display: grid;
    gap: 0.75rem;
  }

  .reservations-table-view,
  .customer-proposals-table-view,
  .customer-requests-table-view,
  .guests-table-view,
  .resources-table-view,
  .free-capacity-table-view,
  .today-schedule-table-view,
  .resource-utilization-table-view,
  .financial-summary-table-view,
  .payments-table-view {
    display: none;
  }
}

@media (max-width: 420px) {
  .mobile-card-primary-row {
    grid-template-columns: 1fr;
  }

  .mobile-card-header {
    flex-direction: column;
  }

  .resource-card-status {
    max-width: 100%;
  }

  .payment-card-status {
    max-width: 100%;
  }

  .free-capacity-card-status {
    max-width: 100%;
  }

  .today-schedule-card-status {
    max-width: 100%;
  }

  .resource-utilization-card-status {
    max-width: 100%;
  }

  .payment-card-amount-grid {
    grid-template-columns: 1fr;
  }

  .free-capacity-card-metrics {
    grid-template-columns: 1fr;
  }

  .today-schedule-card-grid {
    grid-template-columns: 1fr;
  }

  .resource-utilization-card-metrics {
    grid-template-columns: 1fr;
  }

  .financial-summary-card-grid {
    grid-template-columns: 1fr;
  }
}

/* Payments owner workspace */

.payments-workspace-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.payments-view-tabs {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
  padding: 0.25rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.6rem;
  background: #ffffff;
}

.payments-view-tab {
  padding: 0.5rem 0.8rem;
  border-radius: 0.45rem;
  color: #4b5563;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}

.payments-view-tab:hover {
  background: #f3f4f6;
  color: #111827;
}

.payments-view-tab.is-active {
  background: #dbeafe;
  color: #1d4ed8;
}

.payments-mobile-view-selector {
  display: none;
}

.payments-workspace-filter {
  grid-template-columns: repeat(3, minmax(10rem, 1fr)) repeat(2, minmax(9rem, 0.8fr)) auto;
}

.payments-summary-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0.75rem 0;
}

.payments-summary-card {
  display: flex;
  flex: 1 1 11rem;
  max-width: 18rem;
  min-width: 0;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid #e5e7eb;
  border-left: 0.25rem solid #9ca3af;
  border-radius: 0.55rem;
  background: #ffffff;
}

.payments-summary-card span {
  color: #6b7280;
  font-size: 0.75rem;
  font-weight: 600;
}

.payments-summary-card strong {
  color: #111827;
  font-size: 1.2rem;
  line-height: 1.25;
}

.payments-summary-card--positive {
  border-left-color: #4ade80;
  background: #f0fdf4;
}

.payments-summary-card--refund,
.payments-summary-card--overdue {
  border-left-color: #f87171;
  background: #fef2f2;
}

.payments-summary-card--expected {
  border-left-color: #60a5fa;
  background: #eff6ff;
}

.payment-timeline {
  max-height: min(42rem, 60vh);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  border: 1px solid #e5e7eb;
  border-radius: 0.6rem;
  background: #ffffff;
}

.payment-timeline-date {
  position: sticky;
  top: 0;
  z-index: 1;
  border-bottom: 1px solid #e5e7eb;
}

.payment-timeline-date,
.payments-mobile-group-heading {
  margin: 0;
  padding: 0.6rem 0.85rem;
  background: #f9fafb;
  color: #4b5563;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.payment-timeline-row {
  display: grid;
  grid-template-columns: minmax(8rem, 0.7fr) minmax(14rem, 2fr) auto auto;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem;
  border-top: 1px solid #f3f4f6;
  border-left: 0.25rem solid #86efac;
}

.payment-timeline-row--refund {
  border-left-color: #fca5a5;
  background: #fffafa;
}

.payment-timeline-amount,
.payment-timeline-identity {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.15rem;
}

.payment-timeline-kind {
  color: #6b7280;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.payment-timeline-amount strong {
  color: #166534;
  font-size: 1.15rem;
}

.payment-timeline-row--refund .payment-timeline-amount strong {
  color: #b91c1c;
}

.payment-timeline-primary-link {
  overflow: hidden;
  color: #1d4ed8;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.payment-timeline-identity > span {
  overflow-wrap: anywhere;
  color: #6b7280;
  font-size: 0.8rem;
}

.payment-timeline-note {
  color: #374151 !important;
}

.payment-timeline-actions {
  display: flex;
  gap: 0.65rem;
  white-space: nowrap;
}

.payment-timeline-actions a,
.financial-summary-drilldown {
  color: #1d4ed8;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
}

.payment-timeline-actions a:hover,
.financial-summary-drilldown:hover {
  text-decoration: underline;
}

.payments-balance-group-row th {
  padding: 0.55rem 1rem;
  background: #f9fafb;
  color: #4b5563;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-align: left;
  text-transform: uppercase;
}

.payments-row-primary-action,
.payments-row-secondary-action {
  display: inline-flex;
  padding: 0.35rem 0.65rem;
  border: 1px solid #bfdbfe;
  border-radius: 0.45rem;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.payments-row-secondary-action {
  border-color: #e5e7eb;
  background: #ffffff;
  color: #374151;
}

.payments-empty-state {
  padding: 1.5rem;
  border: 1px dashed #d1d5db;
  border-radius: 0.6rem;
  background: #ffffff;
  color: #4b5563;
  font-size: 0.875rem;
}

.payments-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.6rem;
  background: #ffffff;
  font-size: 0.875rem;
}

.payments-pagination-link {
  padding: 0.35rem 0.7rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.45rem;
  color: #111827;
  text-decoration: none;
}

.payments-pagination-link.is-disabled {
  border-color: #f3f4f6;
  color: #9ca3af;
}

.financial-summary-drilldown {
  display: inline-block;
  margin-top: 0.65rem;
}

@media (max-width: 760px) {
  .payments-view-tabs {
    display: none;
  }

  .payments-mobile-view-selector {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    padding: 0.6rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.6rem;
    background: #ffffff;
  }

  .payments-mobile-view-selector label {
    color: #4b5563;
    font-size: 0.75rem;
    font-weight: 600;
  }

  .payments-mobile-view-selector select,
  .payments-mobile-view-selector button {
    min-height: 2.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.45rem;
    background: #ffffff;
    color: #111827;
    font-size: 0.875rem;
  }

  .payments-mobile-view-selector button {
    padding: 0 0.7rem;
    border-color: var(--fb-action);
    background: var(--fb-action);
    color: #ffffff;
  }

  .payments-workspace-filter {
    grid-template-columns: 1fr;
  }

  .payments-summary-card {
    max-width: none;
  }

  .payments-mobile-group-heading {
    border-radius: 0.45rem;
  }

  .payment-timeline-card {
    border-left: 0.25rem solid #86efac;
  }

  .payment-timeline-card.payment-timeline-row--refund,
  .payment-balance-card--overdue {
    border-left-color: #fca5a5;
  }

  .payment-timeline-card-note {
    margin: 0;
    padding: 0 0.85rem 0.75rem;
    color: #4b5563;
    font-size: 0.875rem;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 420px) {
  .payments-mobile-view-selector {
    grid-template-columns: 1fr auto;
  }

  .payments-mobile-view-selector label {
    grid-column: 1 / -1;
  }
}

/* Payments folio compact summaries */

.folio-reservation-summary {
  margin-bottom: 0.75rem;
  padding: 0.75rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  background: #ffffff;
}

.folio-reservation-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.55rem 0.75rem;
  align-items: start;
}

.folio-summary-item,
.folio-metric {
  min-width: 0;
}

.folio-summary-label {
  margin-bottom: 0.15rem;
  overflow: hidden;
  color: #6b7280;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.1;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.folio-summary-value,
.folio-metric-value {
  overflow: hidden;
  color: #111827;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.folio-status-badge {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  overflow: hidden;
  border-radius: 999px;
  padding: 0.1rem 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.folio-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.folio-metric {
  padding: 0.6rem 0.7rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  background: #ffffff;
}

.folio-payment-editor {
  margin-bottom: 1rem;
  padding: 0.75rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  background: #ffffff;
}

.folio-payment-editor-title {
  margin: 0 0 0.5rem;
  color: #111827;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.25;
}

.folio-payment-editor-form {
  display: grid;
  grid-template-columns: 9rem 7.5rem minmax(14rem, 1fr) auto;
  align-items: end;
  gap: 0.5rem;
}

.folio-payment-editor-field {
  min-width: 0;
}

.folio-payment-editor-field label {
  display: block;
  margin-bottom: 0.2rem;
  overflow: hidden;
  color: #374151;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.folio-payment-editor-field input {
  display: block;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 0.35rem 0.5rem;
  border: 1px solid #d1d5db;
  border-radius: 0.35rem;
  background: #ffffff;
  color: #111827;
  font-size: 0.85rem;
  line-height: 1.25;
}

.folio-payment-editor-actions {
  display: flex;
  align-items: end;
  gap: 0.5rem;
  min-width: max-content;
}

.folio-payment-editor-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0.35rem 0.75rem;
  border-radius: 0.35rem;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.folio-payment-editor-button--primary {
  border: 1px solid var(--fb-action);
  background: var(--fb-action);
  color: #ffffff;
}

.folio-payment-editor-button--primary:hover {
  background: var(--fb-action-hover);
}

.folio-payment-editor-button--secondary {
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #111827;
}

.folio-payment-editor-button--secondary:hover {
  background: #f3f4f6;
}

@media (max-width: 1200px) {
  .folio-reservation-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .folio-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .folio-payment-editor-form {
    grid-template-columns: 9rem 7.5rem minmax(14rem, 1fr);
  }

  .folio-payment-editor-actions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .folio-reservation-grid,
  .folio-metrics,
  .folio-payment-editor-form {
    grid-template-columns: 1fr;
  }

  .folio-payment-editor-actions {
    flex-wrap: wrap;
    min-width: 0;
  }
}

/* ── Top header (logo + auth only) ───────────────────── */

.app-header-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  background: #1f2937;
  color: #fff;
  flex-shrink: 0;
}

.app-header-brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  min-width: 0;
  gap: 0.65rem;
}

.app-logo {
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  text-decoration: none;
}

.app-logo:hover {
  color: #e5e7eb;
}

.header-auth {
  display: flex;
  align-items: center;
  justify-self: end;
  min-width: 0;
  gap: 0.5rem;
}

.header-support-access-slot {
  display: flex;
  justify-content: center;
  min-width: 0;
}

.header-support-access {
  display: inline-flex;
  height: 1.75rem;
  align-items: center;
  gap: 0.35rem;
  max-width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(16, 185, 129, 0.7);
  border-radius: 0.375rem;
  background: rgba(6, 95, 70, 0.92);
  padding: 0.125rem 0.25rem 0.125rem 0.5rem;
  color: #d1fae5;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.header-support-access-label {
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-support-access-form {
  display: inline-flex;
  margin: 0;
}

.header-support-access-button {
  display: inline-flex;
  height: 1.35rem;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  border: 1px solid rgba(167, 243, 208, 0.7);
  border-radius: 0.25rem;
  background: #ecfdf5;
  padding: 0 0.45rem;
  color: #065f46;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.header-support-access-button:hover,
.header-support-access-button:focus-visible {
  background: #d1fae5;
}

.app-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0.45rem 1rem;
  border-top: 1px solid #374151;
  background: #1f2937;
  color: #ffffff;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8rem;
}

.language-switcher-separator {
  color: #6b7280;
}

.language-switcher-link {
  color: #9ca3af;
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.language-switcher-link:hover {
  color: #e5e7eb;
}

.language-switcher-link--active {
  color: #fff;
}

.header-btn {
  padding: 0.35rem 0.75rem;
  border: 1px solid #4b5563;
  border-radius: 0.25rem;
  background: #374151;
  color: #fff;
  cursor: pointer;
  font-size: 0.85rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.header-btn:hover {
  background: #4b5563;
}

.header-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.header-btn-signout {
  border-color: #b91c1c;
  background: #991b1b;
}

.header-btn-signout:hover {
  background: #b91c1c;
}

.header-btn-signin {
  border-color: var(--fb-accent);
  background: var(--fb-accent);
}

.header-btn-signin:hover {
  background: var(--fb-accent-strong);
}

.shell-menu-button {
  display: none;
  width: 2.25rem;
  height: 2.25rem;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  border: 1px solid #4b5563;
  border-radius: 0.25rem;
  background: #374151;
  color: #ffffff;
  cursor: pointer;
}

.shell-menu-button:hover {
  background: #4b5563;
}

.shell-menu-button-bars,
.shell-menu-button-bars::before,
.shell-menu-button-bars::after {
  display: block;
  width: 1rem;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  content: "";
}

.shell-menu-button-bars {
  position: relative;
}

.shell-menu-button-bars::before,
.shell-menu-button-bars::after {
  position: absolute;
  left: 0;
}

.shell-menu-button-bars::before {
  top: -0.35rem;
}

.shell-menu-button-bars::after {
  top: 0.35rem;
}

.header-user-menu {
  position: relative;
  flex: 0 0 auto;
}

.header-user-menu-button {
  display: inline-flex;
  width: 2.25rem;
  height: 2.25rem;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  border: 1px solid #4b5563;
  border-radius: 999px;
  background: #374151;
  color: #ffffff;
  cursor: pointer;
}

.header-user-menu-button:hover,
.header-user-menu-button[aria-expanded="true"] {
  background: #4b5563;
}

.header-user-icon {
  position: relative;
  display: block;
  width: 1rem;
  height: 1rem;
}

.header-user-icon::before,
.header-user-icon::after {
  position: absolute;
  left: 50%;
  display: block;
  box-sizing: border-box;
  border: 2px solid currentColor;
  content: "";
  transform: translateX(-50%);
}

.header-user-icon::before {
  top: 0;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
}

.header-user-icon::after {
  bottom: 0;
  width: 0.9rem;
  height: 0.55rem;
  border-radius: 999px 999px 0.15rem 0.15rem;
}

.header-user-menu-panel {
  position: absolute;
  z-index: 1003;
  top: calc(100% + 0.45rem);
  right: 0;
  display: flex;
  min-width: 11rem;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #d1d5db;
  border-radius: 0.35rem;
  background: #ffffff;
  box-shadow: 0 16px 35px rgba(17, 24, 39, 0.18);
}

.header-user-menu-panel[hidden] {
  display: none;
}

.header-user-menu-item {
  display: flex;
  width: 100%;
  align-items: center;
  box-sizing: border-box;
  padding: 0.65rem 0.85rem;
  border: 0;
  background: #ffffff;
  color: #111827;
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  line-height: 1.25;
  text-align: left;
  text-decoration: none;
}

.header-user-menu-item:hover,
.header-user-menu-item:focus {
  background: #f3f4f6;
  color: #111827;
}

.header-user-menu-form {
  margin: 0;
}

.header-user-menu-item--button {
  color: #991b1b;
}

/* ── Body: anonymous = workspace only; auth = 3 columns ─ */

.app-body {
  display: flex;
  flex: 1;
  overflow: hidden;
  min-height: 0;
}

.app-body--anonymous .workspace {
  flex: 1;
  max-width: 100%;
}

.app-body--anonymous .workspace:has(.account-auth-panel) {
  align-items: center;
  justify-content: center;
}

.account-auth-panel {
  width: 100%;
  max-width: 28rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.account-auth-panel .stack-form {
  max-width: 100%;
}

.app-body--authenticated .workspace {
  flex: 1;
  min-width: 0;
}

/* ── Sidebar (authenticated only) ───────────────────── */

.sidebar {
  width: 180px;
  flex-shrink: 0;
  background: #111827;
  display: flex;
  flex-direction: column;
  padding: 0.5rem 0;
  overflow-y: auto;
}

.sidebar-mobile-header {
  display: none;
}

.sidebar-close-button {
  display: none;
}

.sidebar-backdrop {
  display: none;
}

.sidebar-link {
  display: block;
  padding: 0.65rem 1rem;
  color: #d1d5db;
  text-decoration: none;
  font-size: 0.9rem;
  border-left: 3px solid transparent;
}

.sidebar-link:hover {
  background: #1f2937;
  color: #fff;
}

.sidebar-link--disabled,
.sidebar-link--disabled:hover {
  color: #6b7280;
  background: transparent;
  cursor: not-allowed;
}

.sidebar-link.active {
  background: #1f2937;
  color: #fff;
  border-left-color: var(--fb-accent-on-dark);
  font-weight: 600;
}

.sidebar-separator {
  height: 1px;
  margin: 0.5rem 1rem;
  background: rgba(209, 213, 219, 0.22);
}

@media (max-width: 760px),
  ((orientation: landscape) and (max-width: 960px) and (max-height: 520px)) {
  .app-header-top {
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
  }

  .app-header-brand {
    flex: 1 1 auto;
  }

  .app-logo {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .header-auth {
    justify-content: flex-end;
    min-width: 0;
  }

  .shell-menu-button {
    display: inline-flex;
    flex: 0 0 auto;
  }

  .app-body--authenticated .workspace {
    width: 100%;
  }

  .app-body--authenticated .sidebar {
    position: fixed;
    z-index: 1002;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(82vw, 18rem);
    max-width: 100%;
    box-shadow: 0 20px 45px rgba(17, 24, 39, 0.28);
    transform: translateX(-100%);
    transition: transform 160ms ease-out;
  }

  body.is-auth-sidebar-open .app-body--authenticated .sidebar {
    transform: translateX(0);
  }

  .sidebar-mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.65rem 0.75rem 0.75rem 1rem;
    border-bottom: 1px solid #1f2937;
  }

  .sidebar-mobile-title {
    overflow: hidden;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .sidebar-close-button {
    display: inline-flex;
    width: 2rem;
    height: 2rem;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    box-sizing: border-box;
    border: 1px solid #374151;
    border-radius: 0.25rem;
    background: #1f2937;
    color: #ffffff;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1;
  }

  .sidebar-close-button:hover {
    background: #374151;
  }

  .sidebar-backdrop {
    position: fixed;
    z-index: 1001;
    inset: 0;
    display: block;
    background: rgba(17, 24, 39, 0.48);
    opacity: 0;
    pointer-events: none;
    transition: opacity 160ms ease-out;
  }

  body.is-auth-sidebar-open .sidebar-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  body.is-auth-sidebar-open {
    overflow: hidden;
  }
}

/* ── Workspace + scenario toolbar (second header) ───── */

.workspace {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.workspace-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 0.35rem;
  flex-shrink: 0;
}

.toolbar-location {
  padding: 0.3rem 0.5rem;
  border-radius: 0.25rem;
  border: 1px solid #d1d5db;
  background: #fff;
  color: #1f2937;
  min-width: 10rem;
}

.toolbar-btn {
  padding: 0.35rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.25rem;
  background: #f3f4f6;
  color: #1f2937;
  cursor: pointer;
  font-size: 0.85rem;
}

.toolbar-btn:hover:not(:disabled) {
  background: #e5e7eb;
}

.toolbar-btn:disabled {
  opacity: 0.65;
  cursor: default;
}

.toolbar-btn--panel {
  flex: 1;
  min-width: 0;
}

/* ── Right panel (authenticated only) ──────────────── */

.right-panel {
  width: 280px;
  flex-shrink: 0;
  background: #ffffff;
  border-left: 1px solid #d1d5db;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
  color: #6b7280;
  font-size: 0.9rem;
}

.right-panel:has(.planner-draft-workspace) {
  width: 420px;
  display: none;
}

.right-panel:has(.planner-draft-workspace).is-draft-active {
  display: flex;
}

.right-panel-toolbar {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.75rem;
  border-bottom: 1px solid #e5e7eb;
  flex-shrink: 0;
}

.right-panel-body {
  padding: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.planner-draft-workspace {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.planner-draft-scrollarea {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 0;
  overflow-y: auto;
  padding: 1rem;
}

@media (max-width: 760px) {
  .app-body--authenticated:has(.planner-shell--mobile) {
    flex-direction: column;
  }

  .app-body--authenticated:has(.planner-shell--mobile) .workspace {
    box-sizing: border-box;
    max-width: 100%;
    min-width: 0;
  }

  .app-body--authenticated:has(.planner-shell--mobile-draft-expanded) .workspace {
    display: none;
  }

  .app-body--authenticated:has(.planner-shell--mobile-planner-expanded) .workspace {
    overflow: hidden;
    padding-bottom: 0;
  }

  .app-body--authenticated:has(.planner-shell--mobile) .right-panel:has(.planner-draft-workspace) {
    width: 100%;
    min-width: 0;
    flex: 1 1 auto;
    border-top: 1px solid #d1d5db;
    border-left: 0;
    display: none;
    opacity: 0;
    transform: translateY(0.35rem);
    transition: opacity 160ms ease-out, transform 160ms ease-out;
  }

  .app-body--authenticated:has(.planner-shell--mobile) .right-panel:has(.planner-draft-workspace).is-draft-active {
    display: none;
  }

  .app-body--authenticated:has(.planner-shell--mobile-draft-expanded) .right-panel:has(.planner-draft-workspace).right-panel--mobile-draft-expanded {
    display: flex;
    opacity: 1;
    transform: translateY(0);
  }

  .app-body--authenticated:has(.planner-shell--mobile-draft-expanded) .right-panel-body {
    min-height: 0;
  }

  @media (prefers-reduced-motion: reduce) {
    .app-body--authenticated:has(.planner-shell--mobile) .right-panel:has(.planner-draft-workspace) {
      transition: none;
      transform: none;
    }
  }
}

.planner-draft-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.planner-draft-field label {
  font-size: 0.85rem;
  color: #4b5563;
}

.planner-draft-field input,
.planner-draft-field select {
  width: 100%;
  box-sizing: border-box;
  min-height: 2.35rem;
  padding: 0.45rem 0.6rem;
  border: 1px solid #d1d5db;
  border-radius: 0.3rem;
  background: #fff;
  color: #111827;
  font: inherit;
}

.planner-draft-field input:focus,
.planner-draft-field select:focus {
  border-color: var(--fb-accent);
  outline: 2px solid var(--fb-accent);
  outline-offset: 1px;
}

.planner-draft-field input:read-only:not([type="hidden"]) {
  background: #f9fafb;
  cursor: pointer;
}

.planner-draft-field--manual-cost {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(7rem, 9rem);
  align-items: center;
  gap: 0.5rem;
}

.planner-draft-field--manual-cost label {
  min-width: 0;
}

.planner-draft-guest-picker {
  gap: 0.5rem;
}

.planner-draft-guest-details-fields {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.75rem;
  border: 1px solid var(--fb-accent-border-strong);
  border-radius: 0.4rem;
  background: var(--fb-accent-soft);
}

.planner-draft-guest-details-fields[hidden] {
  display: none;
}

.planner-guest-details-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  align-self: flex-start;
  width: 100%;
  text-align: left;
  border-color: var(--fb-accent-border-strong);
  background: var(--fb-accent-soft);
  color: var(--fb-accent-deep);
  font-weight: 600;
}

.planner-guest-details-toggle[hidden] {
  display: none !important;
}

.planner-onetime-add[hidden] {
  display: none;
}

.planner-onetime-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  align-self: flex-start;
  width: 100%;
  text-align: left;
  border-color: var(--fb-accent-border-strong);
  background: var(--fb-accent-soft);
  color: var(--fb-accent-deep);
  font-weight: 600;
}

.planner-onetime-toggle[hidden] {
  display: none !important;
}

.planner-guest-details-toggle:hover:not(:disabled),
.planner-onetime-toggle:hover:not(:disabled),
.planner-guest-details-toggle:focus-visible,
.planner-onetime-toggle:focus-visible {
  border-color: var(--fb-accent);
  background: var(--fb-accent-soft-hover);
}

.planner-guest-details-toggle::after,
.planner-onetime-toggle::after {
  content: "";
  flex: 0 0 auto;
  width: 0;
  height: 0;
  border-right: 0.28rem solid transparent;
  border-left: 0.28rem solid transparent;
  border-top: 0.36rem solid currentColor;
}

.planner-guest-details-toggle[aria-expanded="true"]::after,
.planner-onetime-toggle[aria-expanded="true"]::after {
  transform: rotate(180deg);
}

.planner-selected-guest-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0.15rem 0 0;
  min-width: 0;
}

.planner-selected-guest-row[hidden] {
  display: none;
}

.planner-selected-guest-summary {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 0.85rem;
  font-weight: 600;
  color: #374151;
}

.planner-header-choose-guest {
  position: relative;
  display: inline-flex;
  width: 1.55rem;
  height: 1.55rem;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  border: 1px solid #d1d5db;
  border-radius: 0.25rem;
  background: #f3f4f6;
  color: #374151;
  cursor: pointer;
}

.planner-header-choose-guest:hover {
  background: #e5e7eb;
}

.planner-header-choose-guest[hidden] {
  display: none;
}

.planner-header-choose-guest-icon {
  position: relative;
  display: block;
  width: 0.85rem;
  height: 0.85rem;
}

.planner-header-choose-guest-icon::before,
.planner-header-choose-guest-icon::after {
  position: absolute;
  display: block;
  box-sizing: border-box;
  content: "";
}

.planner-header-choose-guest-icon::before {
  top: 0;
  left: 0;
  width: 0.58rem;
  height: 0.58rem;
  border: 2px solid currentColor;
  border-radius: 999px;
}

.planner-header-choose-guest-icon::after {
  right: 0.06rem;
  bottom: 0.1rem;
  width: 0.42rem;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform: rotate(45deg);
  transform-origin: center;
}

.planner-guest-search-status {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  color: #6b7280;
}

.planner-guest-search-status[hidden] {
  display: none;
}

.planner-draft-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.planner-draft-panel-error {
  color: #b91c1c;
  margin: 0;
}

.planner-draft-panel-success {
  color: #047857;
  margin: 0;
}

.planner-draft-preview-status {
  color: #4b5563;
  font-size: 0.85rem;
  margin: 0;
}

.planner-draft-preview-status.is-error {
  color: #b91c1c;
}

.planner-draft-pricing-status {
  color: #4b5563;
  font-size: 0.85rem;
  margin: 0;
}

.reservation-error-details {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: #4b5563;
}

.planner-draft-idle-hint {
  color: #6b7280;
  margin: 0;
}

.planner-draft-mode-label {
  margin: 0;
  font-size: 1rem;
}

.planner-draft-toolbar {
  flex-direction: row;
  align-items: flex-start;
}

.planner-draft-title-stack {
  min-width: 0;
}

.planner-draft-title-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}

.planner-reservation-nav {
  position: relative;
  flex: 0 0 auto;
}

.planner-reservation-nav[hidden],
.planner-reservation-nav-menu[hidden] {
  display: none !important;
}

.planner-reservation-nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 1.5rem;
  min-width: 1.5rem;
  height: 1.5rem;
  padding: 0;
  border: 1px solid #d1d5db;
  border-radius: 0.25rem;
  background: #fff;
  color: #4b5563;
  cursor: pointer;
}

.planner-reservation-nav-toggle:hover,
.planner-reservation-nav-toggle[aria-expanded="true"] {
  border-color: #9ca3af;
  background: #f3f4f6;
  color: #111827;
}

.planner-reservation-nav-toggle:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.planner-reservation-nav-toggle-icon {
  width: 0;
  height: 0;
  border-right: 0.28rem solid transparent;
  border-left: 0.28rem solid transparent;
  border-top: 0.36rem solid currentColor;
}

.planner-reservation-nav-menu {
  position: absolute;
  z-index: 80;
  top: calc(100% + 0.35rem);
  left: 0;
  display: grid;
  min-width: 8rem;
  padding: 0.25rem;
  border: 1px solid #d1d5db;
  border-radius: 0.35rem;
  background: #fff;
  box-shadow: 0 12px 28px rgb(15 23 42 / 18%);
}

.planner-reservation-nav-item {
  display: block;
  width: 100%;
  padding: 0.45rem 0.6rem;
  border: 0;
  border-radius: 0.25rem;
  background: transparent;
  color: #1f2937;
  font: inherit;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
}

.planner-reservation-nav-item:hover,
.planner-reservation-nav-item:focus-visible {
  background: #f3f4f6;
  outline: none;
}

.planner-draft-status-badge {
  margin-left: auto;
  border: 0;
  border-radius: 0.25rem;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.2;
  padding: 0.2rem 0.45rem;
}

.planner-draft-status-badge:not(:disabled) {
  cursor: pointer;
}

.planner-draft-status-badge:not(:disabled):hover {
  filter: brightness(0.94);
}

.planner-draft-status-badge:not(:disabled):focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.planner-draft-close {
  align-self: flex-start;
}

/* ── Guests list filter (mobile preserves pre-migration look) ── */

@media (max-width: 760px) {
  .guests-filter-form.payments-filter {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    column-gap: 1rem;
    row-gap: 0.75rem;
    margin: 0;
    padding: 1rem 1rem;
    border: 0;
    border-bottom: 1px solid #e5e7eb;
    border-radius: 0;
    background: transparent;
  }

  .guests-filter-form .payments-filter-field {
    box-sizing: border-box;
    width: 11rem;
    max-width: 100%;
    flex: 0 0 auto;
    min-width: 0;
  }

  .guests-filter-form .payments-filter-field:nth-child(3) {
    width: 12rem;
  }

  .guests-filter-form .payments-filter-field label {
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #111827;
    white-space: normal;
  }

  .guests-filter-form .payments-filter-field input {
    padding: 0.5rem;
    border-radius: 0.5rem;
    background: #f9fafb;
    font-size: 0.875rem;
  }

  .guests-filter-form .payments-filter-field input:focus {
    border-color: var(--fb-accent);
    outline: 2px solid var(--fb-accent);
    outline-offset: 0;
  }

  .guests-filter-form .payments-filter-actions {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 0.75rem;
    min-width: 0;
    flex-wrap: nowrap;
  }

  .guests-filter-form .payments-filter-button--primary {
    height: auto;
    padding: 0.5rem 1rem;
    border: 0;
    border-radius: 0.5rem;
    background: var(--fb-action);
    font-size: 0.875rem;
    font-weight: 500;
  }

  .guests-filter-form .payments-filter-button--primary:hover {
    background: var(--fb-action-hover);
  }

  .guests-filter-form .payments-filter-button--secondary {
    height: auto;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--fb-accent);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
  }

  .guests-filter-form .payments-filter-button--secondary:hover {
    background: transparent;
    text-decoration: underline;
  }
}

@media (min-width: 640px) and (max-width: 760px) {
  .guests-filter-form.payments-filter {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

/* ── Reusable page-level styles ─────────────────────── */

.page-shell {
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  padding: 1.5rem;
}

h1 {
  margin-top: 0;
}

.muted {
  color: #6b7280;
  font-size: 0.9rem;
}

.stack-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 22rem;
}

.stack-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.stack-form input[type="text"],
.stack-form input[type="password"] {
  width: 100%;
  padding: 0.5rem 0.6rem;
  border: 1px solid #d1d5db;
  border-radius: 0.35rem;
  box-sizing: border-box;
}

.stack-form button {
  margin-top: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 0.35rem;
  border: 1px solid #1f2937;
  background: #1f2937;
  color: #fff;
  cursor: pointer;
}

.inline-form {
  display: inline;
}

.field-validation-error {
  color: #b91c1c;
  font-size: 0.95rem;
}

.tariff-version-fields {
  display: grid;
  grid-template-columns:
    minmax(8.75rem, 1.15fr)
    repeat(4, minmax(4.75rem, 0.65fr))
    repeat(3, minmax(7.5rem, 0.95fr));
  gap: 0.75rem;
  align-items: flex-end;
}

.tariff-version-field {
  display: flex;
  flex-direction: column;
  min-width: 0;
  box-sizing: border-box;
}

.tariff-version-field + .tariff-version-field {
  margin-left: 0;
}

.tariff-version-field--date {
  width: auto;
}

.tariff-version-field--number {
  width: auto;
}

.tariff-version-field--flag {
  width: auto;
}

.tariff-version-caption {
  display: block;
  margin-bottom: 0.25rem;
  color: #6b7280;
  font-size: 0.58rem;
  font-weight: 500;
  line-height: 1;
}

.tariff-version-field input {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.tariff-version-field--flag input[type="checkbox"] {
  width: 1rem;
  max-width: 1rem;
}

.tariff-version-action-button {
  display: inline-flex;
  width: 7rem;
  height: 2.125rem;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  border-radius: 0.5rem;
  padding: 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1;
}

.tariff-version-action-button--primary {
  border: 1px solid var(--fb-action);
  background: var(--fb-action);
  color: #ffffff;
}

.tariff-version-action-button--primary:hover {
  background: var(--fb-action-hover);
}

.tariff-version-action-button--secondary {
  border: 1px solid #374151;
  background: #1f2937;
  color: #e5e7eb;
}

.tariff-version-action-button--secondary:hover {
  background: #374151;
}

.tariff-version-action-button--danger {
  border: 1px solid #c81e1e;
  background: #450a0a;
  color: #ffffff;
}

.tariff-version-action-button--danger:hover {
  background: #7f1d1d;
}

@media (max-width: 64rem) {
  .tariff-version-fields {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .tariff-version-field--date,
  .tariff-version-field--flag {
    grid-column: span 2;
  }
}

@media (max-width: 40rem) {
  .tariff-version-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tariff-version-field--date,
  .tariff-version-field--flag {
    grid-column: 1 / -1;
  }
}

@media (max-width: 28rem) {
  .tariff-version-fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .tariff-version-field--date,
  .tariff-version-field--flag {
    grid-column: auto;
  }
}

.login-hint {
  color: #4b5563;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.reservation-guest-search-dialog[hidden] {
  display: none;
}

.reservation-guest-search-dialog {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 1rem;
  background: rgba(17, 24, 39, 0.42);
}

.reservation-guest-search-dialog-panel {
  width: min(620px, 100%);
  height: min(680px, calc(100vh - 2rem));
  max-height: 90vh;
  min-width: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  box-sizing: border-box;
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  box-shadow: 0 20px 45px rgba(17, 24, 39, 0.18);
}

.reservation-guest-search-dialog-panel h3 {
  margin: 0 0 0.75rem;
  font-size: 1.125rem;
}

.reservation-guest-search-dialog-header {
  min-width: 0;
  padding: 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.reservation-guest-search-dialog-header label {
  display: block;
  margin-bottom: 0.25rem;
  color: #4b5563;
  font-size: 0.85rem;
}

.reservation-guest-search-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem;
  min-width: 0;
}

.reservation-guest-search-controls input[type="search"] {
  width: 100%;
  min-width: 0;
  min-height: 2.35rem;
  box-sizing: border-box;
  padding: 0.45rem 0.6rem;
  border: 1px solid #d1d5db;
  border-radius: 0.3rem;
  background: #fff;
  color: #111827;
  font: inherit;
}

.reservation-guest-search-controls input[type="search"]:focus {
  border-color: var(--fb-accent);
  outline: 2px solid var(--fb-accent);
  outline-offset: 1px;
}

.reservation-guest-search-dialog-body {
  min-height: 0;
  overflow-y: auto;
  padding: 0.75rem 1rem;
}

.planner-guest-search-status {
  margin: 0.25rem 0 0.75rem;
}

.reservation-guest-search-results {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.reservation-guest-search-result {
  width: 100%;
  min-height: 3.25rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.2rem;
  text-align: left;
}

.reservation-guest-search-result-name {
  font-weight: 600;
}

.reservation-guest-search-result-metadata {
  color: #6b7280;
  font-size: 0.875rem;
  overflow-wrap: anywhere;
}

.reservation-guest-search-result.is-selected {
  outline: 2px solid var(--fb-accent);
  outline-offset: 2px;
}

.reservation-guest-search-dialog-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-width: 0;
  padding: 0.75rem 1rem;
  border-top: 1px solid #e5e7eb;
  background: #ffffff;
}

.reservation-guest-search-pagination,
.reservation-guest-search-dialog-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  min-width: 0;
}

.reservation-guest-search-pagination[hidden] {
  display: none;
}

@media (max-width: 520px) {
  .reservation-guest-search-dialog {
    align-items: stretch;
    justify-content: stretch;
    padding: max(0.5rem, env(safe-area-inset-top)) max(0.5rem, env(safe-area-inset-right)) max(0.5rem, env(safe-area-inset-bottom)) max(0.5rem, env(safe-area-inset-left));
  }

  .reservation-guest-search-dialog-panel {
    width: 100%;
    max-width: calc(100vw - 1rem);
    height: calc(100vh - 1rem);
    height: calc(100dvh - 1rem);
    max-height: calc(100vh - 1rem);
    max-height: calc(100dvh - 1rem);
  }

  .reservation-guest-search-dialog-header,
  .reservation-guest-search-dialog-body,
  .reservation-guest-search-dialog-footer {
    padding-right: 0.75rem;
    padding-left: 0.75rem;
  }

  .reservation-guest-search-controls {
    grid-template-columns: 1fr;
  }

  .reservation-guest-search-controls .toolbar-btn {
    width: 100%;
  }

  .reservation-guest-search-dialog-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .reservation-guest-search-pagination,
  .reservation-guest-search-dialog-actions {
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .reservation-guest-search-dialog-actions .toolbar-btn {
    flex: 1 1 0;
    min-width: 0;
  }
}

/* Dashboard */

.dashboard-shell {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.dashboard-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.dashboard-heading h1,
.dashboard-public h1 {
  margin: 0;
  color: #111827;
  font-size: 1.65rem;
  line-height: 1.2;
}

.dashboard-eyebrow {
  margin: 0 0 0.25rem;
  color: var(--fb-accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.dashboard-mobile-overview {
  display: none;
}

.dashboard-kpi span,
.dashboard-progress-list span {
  display: block;
  color: #6b7280;
  font-size: 0.78rem;
  font-weight: 600;
}

.dashboard-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.dashboard-kpi,
.dashboard-panel {
  border: 1px solid #dbe4f0;
  border-radius: 0.5rem;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.dashboard-kpi {
  min-height: 5.25rem;
  padding: 0.9rem;
  border-top: 3px solid var(--fb-accent);
}

.dashboard-kpi--attention {
  border-top-color: #d97706;
}

.dashboard-kpi strong {
  display: block;
  margin-top: 0.25rem;
  color: #111827;
  font-size: 1.35rem;
  line-height: 1.15;
}

.dashboard-kpi small {
  display: block;
  margin-top: 0.25rem;
  color: #6b7280;
  font-size: 0.78rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 21rem;
  gap: 0.9rem;
  align-items: start;
}

.dashboard-grid--setup {
  grid-template-columns: minmax(0, 1fr) 20rem;
}

.dashboard-side-stack {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.dashboard-panel {
  padding: 1rem;
}

.dashboard-panel--primary {
  min-height: 18rem;
}

.dashboard-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.dashboard-panel-header--compact {
  margin-bottom: 0.65rem;
}

.dashboard-panel h2,
.dashboard-panel-header h2 {
  margin: 0;
  color: #111827;
  font-size: 1rem;
  line-height: 1.25;
}

.dashboard-panel p,
.dashboard-panel-header p {
  margin: 0.25rem 0 0;
  color: #6b7280;
  font-size: 0.86rem;
}

.dashboard-panel-header a,
.dashboard-checklist a,
.dashboard-empty a {
  color: var(--fb-accent);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.dashboard-panel-header a:hover,
.dashboard-checklist a:hover,
.dashboard-empty a:hover {
  text-decoration: underline;
}

.dashboard-checklist {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dashboard-checklist li {
  display: grid;
  grid-template-columns: 1.7rem minmax(0, 1fr) auto;
  gap: 0.65rem;
  align-items: center;
  padding: 0.75rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  background: #f9fafb;
}

.dashboard-checklist li.is-complete {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.dashboard-checkmark {
  display: inline-flex;
  width: 1.45rem;
  height: 1.45rem;
  align-items: center;
  justify-content: center;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #ffffff;
  color: #047857;
  font-size: 0.85rem;
  font-weight: 800;
}

.dashboard-checklist strong,
.dashboard-empty strong {
  color: #111827;
  font-size: 0.92rem;
}

.dashboard-checklist p {
  margin: 0.15rem 0 0;
  color: #6b7280;
  font-size: 0.82rem;
}

.dashboard-progress-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 0.75rem;
}

.dashboard-progress-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid #eef2f7;
}

.dashboard-progress-list div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.dashboard-progress-list strong {
  color: #111827;
  font-size: 0.9rem;
}

.dashboard-report-shortcut-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.dashboard-report-shortcut {
  display: block;
  min-width: 0;
  padding: 0.55rem 0.65rem;
  border: 1px solid #dbe4f0;
  border-radius: 0.5rem;
  background: #f8fafc;
  color: #111827;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.dashboard-report-shortcut:hover {
  border-color: var(--fb-accent-border-strong);
  background: var(--fb-accent-soft);
  color: var(--fb-accent);
}

.reports-overview-settings-controls {
  column-gap: 2rem;
  row-gap: 1rem;
}

.reports-overview-main-report {
  width: 20rem;
  max-width: 100%;
  flex: 0 0 20rem;
}

.reports-overview-main-report select {
  width: 100%;
}

.reports-overview-shortcut-fieldset {
  margin-left: 0;
}

.references-catalog-grid {
  padding-bottom: 1.5rem;
}

.dashboard-reservation-list,
.dashboard-schedule-list,
.dashboard-attention-list,
.dashboard-actions {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.dashboard-reservation,
.dashboard-schedule-card,
.dashboard-attention {
  color: inherit;
  text-decoration: none;
}

.dashboard-schedule-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.dashboard-schedule-filter label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 10rem;
}

.dashboard-schedule-filter > label > span,
.dashboard-schedule-filter-field > label {
  color: #4b5563;
  font-size: 0.76rem;
  font-weight: 700;
}

.dashboard-schedule-filter input,
.dashboard-schedule-filter select {
  box-sizing: border-box;
  width: 100%;
  min-height: 2.25rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
  background: #ffffff;
  color: #111827;
  font-size: 0.86rem;
}

.dashboard-schedule-filter > button {
  box-sizing: border-box;
  min-height: 2.25rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--fb-action);
  border-radius: 0.5rem;
  background: var(--fb-action);
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 700;
}

.dashboard-schedule-card {
  padding: 0.55rem 0.65rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  background: #ffffff;
}

.dashboard-schedule-card:hover {
  border-color: var(--fb-accent-border-strong);
  background: var(--fb-accent-soft);
}

.dashboard-schedule-summary {
  display: grid;
  grid-template-columns: minmax(6.5rem, auto) auto auto minmax(5rem, auto) minmax(7rem, 1fr);
  align-items: center;
  gap: 0.4rem 0.65rem;
}

.dashboard-schedule-summary-field {
  min-width: 0;
}

.dashboard-schedule-summary-field > span {
  display: block;
  margin-bottom: 0.1rem;
  color: #64748b;
  font-size: 0.64rem;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

.dashboard-schedule-summary-field > strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: #111827;
  font-size: 0.86rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-schedule-period > strong {
  font-size: 0.92rem;
}

.dashboard-payment-status {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  border-radius: 999px;
  padding: 0.18rem 0.5rem;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.dashboard-payment-status--free {
  background: #f1f5f9;
  color: #475569;
}

.dashboard-payment-status--unpaid {
  background: #fee2e2;
  color: #991b1b;
}

.dashboard-payment-status--partial {
  background: #fef3c7;
  color: #92400e;
}

.dashboard-payment-status--paid {
  background: #dcfce7;
  color: #166534;
}

.dashboard-payment-status--overpaid {
  background: #dbeafe;
  color: #1e40af;
}

.dashboard-schedule-location {
  padding-left: 0.65rem;
  border-left: 1px solid #e5e7eb;
}

.dashboard-reservation {
  display: grid;
  grid-template-columns: 8.25rem minmax(0, 1fr) 7.5rem;
  gap: 0.75rem;
  align-items: center;
  padding: 0.75rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  background: #ffffff;
}

.dashboard-reservation:hover {
  border-color: var(--fb-accent-border-strong);
  background: var(--fb-accent-soft);
}

.dashboard-reservation-time strong,
.dashboard-reservation-main strong,
.dashboard-reservation-meta strong {
  display: block;
  color: #111827;
  font-size: 0.9rem;
}

.dashboard-reservation-time span,
.dashboard-reservation-main span {
  display: block;
  margin-top: 0.15rem;
  color: #6b7280;
  font-size: 0.8rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-reservation-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
}

.dashboard-status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.18rem 0.5rem;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.2;
}

.dashboard-status--tentative {
  background: #fef3c7;
  color: #92400e;
}

.dashboard-status--definite {
  background: #dcfce7;
  color: #166534;
}

.dashboard-attention {
  display: grid;
  grid-template-columns: 0.45rem minmax(0, 1fr);
  gap: 0.65rem;
  padding: 0.7rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  background: #ffffff;
}

.dashboard-attention > span {
  width: 0.45rem;
  min-height: 100%;
  border-radius: 999px;
  background: var(--fb-accent);
}

.dashboard-attention--warning > span {
  background: #d97706;
}

.dashboard-attention--critical > span {
  background: #dc2626;
}

.dashboard-attention strong {
  color: #111827;
  font-size: 0.88rem;
}

.dashboard-attention p {
  margin: 0.2rem 0 0;
  color: #6b7280;
  font-size: 0.78rem;
}

.dashboard-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
  background: #ffffff;
  color: #1f2937;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
}

.dashboard-action:hover {
  border-color: var(--fb-accent-border-strong);
  background: var(--fb-accent-soft);
}

.dashboard-action--primary {
  border-color: var(--fb-action);
  background: var(--fb-action);
  color: #ffffff;
}

.dashboard-action--primary:hover {
  background: var(--fb-action-hover);
  color: #ffffff;
}

.dashboard-empty {
  padding: 1rem;
  border: 1px dashed #cbd5e1;
  border-radius: 0.5rem;
  background: #f8fafc;
}

.dashboard-empty--small {
  padding: 0.85rem;
}

.dashboard-empty p {
  margin: 0.3rem 0 0.75rem;
  color: #6b7280;
  font-size: 0.86rem;
}

.dashboard-public {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: 56rem;
  margin: 4rem auto 0;
  padding: 2rem;
  border: 1px solid #dbe4f0;
  border-radius: 0.75rem;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.dashboard-public p {
  max-width: 38rem;
  color: #4b5563;
}

.dashboard-public-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

@media (max-width: 1100px) {
  .dashboard-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-grid,
  .dashboard-grid--setup {
    grid-template-columns: 1fr;
  }

  .dashboard-reservation {
    grid-template-columns: 7rem minmax(0, 1fr);
  }

  .dashboard-reservation-meta {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

}

@media (max-width: 760px) {
  .dashboard-heading,
  .dashboard-public {
    flex-direction: column;
    align-items: stretch;
  }

  .dashboard-mobile-overview {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .dashboard-mobile-attention {
    overflow: hidden;
    border: 1px solid #f59e0b;
    border-radius: 0.5rem;
    background: #fffbeb;
  }

  .dashboard-mobile-attention > summary {
    display: flex;
    min-height: 2.75rem;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.75rem;
    color: #92400e;
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 700;
    list-style: none;
  }

  .dashboard-mobile-attention > summary::-webkit-details-marker {
    display: none;
  }

  .dashboard-mobile-attention > summary strong {
    display: inline-flex;
    min-width: 1.5rem;
    min-height: 1.5rem;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    border-radius: 999px;
    background: #d97706;
    color: #ffffff;
    font-size: 0.78rem;
  }

  .dashboard-mobile-attention > summary::after {
    content: "\2304";
    font-size: 1rem;
    line-height: 1;
    transition: transform 0.15s ease;
  }

  .dashboard-mobile-attention[open] > summary::after {
    transform: rotate(180deg);
  }

  .dashboard-mobile-attention-content {
    border-top: 1px solid #fcd34d;
    background: #ffffff;
  }

  .dashboard-mobile-attention-content .dashboard-panel {
    padding: 0.7rem;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .dashboard-mobile-attention-content .dashboard-panel-header {
    display: none;
  }

  .dashboard-mobile-kpi-summary {
    padding: 0.65rem 0.75rem;
    border: 1px solid #dbe4f0;
    border-radius: 0.5rem;
    background: #ffffff;
    color: #4b5563;
    font-size: 0.8rem;
    line-height: 1.45;
  }

  .dashboard-mobile-kpi-summary p {
    margin: 0;
    overflow-wrap: anywhere;
  }

  .dashboard-mobile-kpi-summary p + p {
    margin-top: 0.2rem;
  }

  .dashboard-mobile-kpi-summary strong {
    color: #111827;
    font-weight: 700;
  }

  .dashboard-mobile-kpi-separator {
    padding: 0 0.2rem;
    color: #94a3b8;
  }

  .dashboard-kpis--desktop,
  .dashboard-attention--desktop {
    display: none;
  }

  .dashboard-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
  }

  .dashboard-kpi {
    min-width: 0;
    min-height: auto;
    padding: 0.6rem 0.7rem;
  }

  .dashboard-kpi span {
    font-size: 0.7rem;
  }

  .dashboard-kpi strong {
    font-size: 1.05rem;
  }

  .dashboard-kpi small {
    font-size: 0.72rem;
    white-space: normal;
  }

  .dashboard-checklist li,
  .dashboard-reservation {
    grid-template-columns: 1fr;
  }

  .dashboard-schedule-summary {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .dashboard-schedule-period {
    grid-column: 1;
    grid-row: 1;
  }

  .dashboard-schedule-summary > .dashboard-status {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }

  .dashboard-payment-status {
    grid-column: 1;
    grid-row: 2;
  }

  .dashboard-schedule-amount {
    grid-column: 2;
    grid-row: 2;
    text-align: right;
  }

  .dashboard-schedule-location {
    display: flex;
    grid-column: 1 / -1;
    grid-row: 3;
    gap: 0.4rem;
    align-items: baseline;
    padding-top: 0.35rem;
    padding-left: 0;
    border-top: 1px solid #eef2f7;
    border-left: 0;
  }

  .dashboard-schedule-location > span {
    flex: 0 0 auto;
    margin-bottom: 0;
  }

  .dashboard-schedule-location > strong {
    flex: 1 1 auto;
  }

  .dashboard-schedule-filter {
    align-items: stretch;
  }

  .dashboard-schedule-filter > label,
  .dashboard-schedule-filter > button,
  .dashboard-schedule-filter-field {
    width: 100%;
  }

  .dashboard-checkmark {
    display: none;
  }
}

.public-booking-search-panel {
  padding: 0.75rem;
}

.public-booking-search-panel__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 24rem);
  align-items: start;
  gap: 0.75rem;
}

.public-booking-primary-controls {
  display: flex;
  flex-direction: column;
  min-width: 0;
  align-self: stretch;
}

.public-booking-filter-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: end;
  gap: 0.5rem;
  min-width: 0;
  overflow-x: auto;
  padding-bottom: 0.1rem;
}

.public-booking-filter-field {
  flex: 0 0 auto;
  min-width: 0;
}

.public-booking-filter-field--date {
  width: 8.25rem;
}

.public-booking-filter-field--guests {
  width: 7.75rem;
}

.public-booking-filter-field--search {
  flex: 1 1 auto;
  min-width: 10rem;
}

.public-booking-filter-field label {
  display: block;
  margin-bottom: 0.2rem;
  overflow: hidden;
  color: #374151;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.public-booking-filter-input {
  display: block;
  width: 100%;
  height: 2rem;
  box-sizing: border-box;
  padding: 0.35rem 0.5rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  background: #fff;
  color: #111827;
  font-size: 0.875rem;
  line-height: 1.25;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.public-booking-filter-input:focus {
  border-color: #2563eb;
  outline: none;
  box-shadow: 0 0 0 1px #2563eb;
}

.public-booking-location-explainer {
  max-width: 52rem;
  margin: auto 0 0;
  padding-top: 0.6rem;
  border-top: 1px solid #e5e7eb;
  color: #475569;
  font-size: 0.8rem;
  line-height: 1.35;
}

.public-booking-location-switcher {
  min-width: 0;
  box-sizing: border-box;
  align-self: stretch;
  margin: 0;
  padding: 1rem;
  border: 1px solid #c8d7ea;
  border-radius: 0.75rem;
  background: #f6f9fd;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 10px 28px rgba(30, 64, 175, 0.08);
}

.public-booking-location-switcher__legend {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.public-booking-location-switcher__title {
  margin: 0 0 0.5rem;
  color: #334155;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.15;
  text-transform: uppercase;
}

.public-booking-location-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
  max-height: 5rem;
  overflow-y: auto;
  padding-right: 0.1rem;
}

.public-booking-location-option {
  min-width: 0;
  box-sizing: border-box;
  padding: 0.45rem 0.55rem;
  background: #fff;
}

.public-booking-location-option[aria-pressed="true"] {
  border-color: #1d4ed8;
  background: #eff6ff;
  color: #1e3a8a;
}

.public-booking-location-option > span:first-child {
  font-size: 0.82rem;
  line-height: 1.15;
}

.public-booking-location-option > span:nth-child(2) {
  margin-top: 0.15rem;
  gap: 0.25rem;
}

.public-booking-location-option [data-location-draft-status] {
  font-size: 0.68rem;
  line-height: 1.1;
}

.public-booking-location-option [data-location-draft-count],
.public-booking-location-option [data-location-draft-total] {
  padding: 0.1rem 0.35rem;
  font-size: 0.66rem;
  line-height: 1.1;
}

.public-booking-location-option [data-location-draft-total] {
  max-width: 4.75rem;
}

.public-booking-location-switcher [data-location-status] {
  margin-top: 0.25rem;
  color: #6b7280;
  font-size: 0.68rem;
  line-height: 1.2;
}

.public-booking-resource-area {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 1rem;
}

.public-booking-resource-tabs {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.public-booking-resource-tabs legend {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.public-booking-resource-tabs__list {
  display: flex;
  max-width: 100%;
  gap: 0.125rem;
  overflow-x: auto;
  border-bottom: 1px solid #cbd5e1;
}

.public-booking-resource-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 2rem;
  padding: 0.4rem 0.8rem;
  border: 1px solid transparent;
  border-bottom: 0;
  border-radius: 0.375rem 0.375rem 0 0;
  color: #4b5563;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
}

.public-booking-resource-tab:hover {
  background: #f9fafb;
  color: #111827;
}

.public-booking-resource-tab:has(input:checked) {
  border-color: #cbd5e1;
  background: #fff;
  color: #1d4ed8;
  box-shadow: inset 0 2px 0 #1d4ed8;
}

@media (max-width: 760px) {
  .public-booking-search-panel__top {
    grid-template-columns: minmax(0, 1fr);
  }

  .public-booking-location-grid {
    max-height: 7.5rem;
  }
}

@media (max-width: 520px) {
  .public-booking-filter-field--search {
    min-width: 8rem;
  }

  .public-booking-location-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.public-booking-card-media {
  --public-booking-card-main-photo-height: 200px;

  display: flex;
  flex-direction: column;
  width: 100%;
  overflow: hidden;
}

.public-booking-card-main-photo {
  display: block;
  flex: 0 0 auto;
  width: 100%;
  height: var(--public-booking-card-main-photo-height);
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.public-booking-card-main-photo:focus-visible,
.public-booking-card-thumbnail:focus-visible {
  outline: 2px solid #1d4ed8;
  outline-offset: -2px;
}

.public-booking-card-thumbnail-strip {
  --public-booking-card-thumbnail-gap: 0.25rem;
  --public-booking-card-thumbnail-min-width: 2.75rem;
  --public-booking-card-thumbnail-width: 3.5rem;

  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(var(--public-booking-card-thumbnail-min-width), var(--public-booking-card-thumbnail-width));
  gap: var(--public-booking-card-thumbnail-gap);
  align-items: stretch;
  flex: 0 0 3.25rem;
  min-height: 0;
  padding: 0.375rem 0.5rem;
  overflow: hidden;
  border-top: 1px solid #f3f4f6;
  background: #fff;
}

.public-booking-card-thumbnail {
  position: relative;
  display: block;
  min-width: 0;
  height: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: 0.25rem;
  background: #fff;
  cursor: pointer;
}

.public-booking-card-thumbnail:hover {
  border-color: #3b82f6;
}

.public-booking-card-thumbnail[data-card-thumbnail-selected="true"] {
  border-color: #1d4ed8;
  box-shadow: 0 0 0 2px #bfdbfe;
}

.public-booking-card-main-photo > img,
.public-booking-card-thumbnail > img {
  display: block;
}

.public-booking-card-thumbnail[hidden],
.public-booking-card-thumbnail-overflow[hidden] {
  display: none !important;
}

.public-booking-card-thumbnail-overflow {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(17, 24, 39, 0.62);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
}

@media (max-width: 1024px) {
  .public-booking-card-media {
    --public-booking-card-main-photo-height: 190px;
  }
}

@media (max-width: 640px) {
  .public-booking-card-media {
    --public-booking-card-main-photo-height: 180px;
  }

  .public-booking-card-thumbnail-strip {
    --public-booking-card-thumbnail-min-width: 2.5rem;
    --public-booking-card-thumbnail-width: 3.25rem;

    flex-basis: 3rem;
  }
}

[data-card-availability-calendar] {
  display: inline-block;
  max-width: 100%;
}

[data-card-availability-calendar][hidden] {
  display: none !important;
}

[data-card-availability-calendar-body] {
  width: max-content;
  max-width: 100%;
}

.public-booking-availability-calendar {
  max-width: 100%;
  overflow-x: auto;
  color: #334155;
}

.public-booking-availability-calendar--daily {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  width: max-content;
  max-width: min(100%, 15rem);
}

.public-booking-availability-day {
  width: 2.8rem;
  min-width: 2.8rem;
}

.public-booking-availability-label {
  overflow: hidden;
  margin-bottom: 0.15rem;
  color: #64748b;
  font-size: 0.62rem;
  font-weight: 650;
  line-height: 1.1;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.public-booking-availability-calendar--hourly {
  width: max-content;
}

.public-booking-availability-table {
  width: max-content;
  border-collapse: separate;
  border-spacing: 0.18rem;
  table-layout: fixed;
  text-align: left;
}

.public-booking-availability-table th,
.public-booking-availability-table td {
  padding: 0;
}

.public-booking-availability-heading {
  max-width: 3.5rem;
  overflow: hidden;
  padding: 0.1rem 0.15rem !important;
  color: #64748b;
  font-size: 0.62rem;
  font-weight: 650;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.public-booking-availability-cell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.8rem;
  height: 1.55rem;
  min-width: 0;
  padding: 0 0.35rem;
  border-width: 1px;
  border-style: solid;
  border-radius: 0.25rem;
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  text-align: center;
}

.public-booking-availability-cell:disabled {
  cursor: not-allowed;
}

.public-booking-availability-cell--empty {
  border-color: #f1f5f9;
  background: #f8fafc;
  color: #94a3b8;
  cursor: default;
}

.public-booking-line-dialog {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.public-booking-line-dialog[hidden] {
  display: none !important;
}

.public-booking-line-dialog__panel {
  width: min(calc(100vw - 2rem), 28rem);
  height: auto;
  max-height: min(40rem, calc(100dvh - 2rem));
  border-radius: 0.75rem;
}

.public-booking-line-dialog__header {
  padding: 0.85rem 1rem;
}

.public-booking-line-dialog__context {
  overflow: hidden;
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.public-booking-line-dialog__title {
  margin-top: 0.2rem;
  color: #111827;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.2;
}

.public-booking-line-dialog__close {
  min-height: 1.5rem;
  padding: 0.1rem 0;
  border: 0;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 650;
  line-height: 1.1;
}

.public-booking-line-dialog__close:hover {
  background: transparent;
  color: #475569;
  text-decoration: underline;
}

.public-booking-line-dialog__close:focus-visible {
  border-radius: 0.25rem;
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.public-booking-line-dialog__status {
  margin: 0.65rem 0.75rem 0;
  padding: 0.45rem 0.55rem;
  border: 1px solid #bfdbfe;
  border-radius: 0.375rem;
  background: #eff6ff;
  color: #1e40af;
  font-size: 0.76rem;
  line-height: 1.25;
}

.public-booking-line-dialog__status--error {
  border-color: #fecaca;
  background: #fef2f2;
  color: #991b1b;
}

.public-booking-line-dialog__body {
  display: grid;
  gap: 0.75rem;
  overflow-x: hidden;
  padding: 0.75rem;
}

.public-booking-line-dialog__section {
  min-width: 0;
}

.public-booking-line-dialog__section + .public-booking-line-dialog__section {
  margin-top: 0;
  padding-top: 0.75rem;
  border-top: 1px solid #e5e7eb;
}

.public-booking-line-dialog__section-title {
  margin: 0;
  color: #334155;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: uppercase;
}

.public-booking-line-dialog__fields {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin-top: 0.45rem;
}

.public-booking-line-dialog__field {
  display: block;
  min-width: 0;
}

.public-booking-line-dialog__field--quantity {
  width: 5rem;
  max-width: 100%;
}

.public-booking-line-dialog__field > span {
  display: block;
  overflow: hidden;
  color: #334155;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.public-booking-line-dialog__field input,
.public-booking-line-dialog__fields .fb-calendar-field input {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: 2rem;
  min-height: 2rem;
  margin-top: 0.25rem;
  padding: 0.35rem 0.5rem;
  font-size: 0.8rem;
  line-height: 1.15;
  box-shadow: none;
}

.public-booking-line-dialog__field--quantity input {
  width: 5rem;
}

.public-booking-line-dialog__quantity-notice {
  grid-column: 1 / -1;
  margin: 0;
  color: #64748b;
  font-size: 0.72rem;
  line-height: 1.25;
}

.public-booking-line-dialog__quantity-notice--info {
  color: #1d4ed8;
}

.public-booking-line-dialog__quantity-notice--error {
  color: #b91c1c;
  font-weight: 700;
}

.public-booking-line-dialog__availability,
.public-booking-line-dialog__extras,
.public-booking-line-dialog__properties {
  margin-top: 0.45rem;
}

.public-booking-line-dialog-calendar {
  padding: 0;
  width: max-content;
  max-width: 100%;
  overflow-x: auto;
}

.public-booking-line-dialog__extras .space-y-2,
.public-booking-line-dialog__properties .space-y-3 {
  display: grid;
  gap: 0.45rem;
}

.public-booking-line-dialog__extras label,
.public-booking-line-dialog__properties [data-line-dialog-property-wrapper] {
  padding: 0.55rem;
  border-radius: 0.5rem;
}

.public-booking-line-dialog__properties select,
.public-booking-line-dialog__properties input:not([type="checkbox"]):not([type="radio"]),
.public-booking-line-dialog__properties textarea {
  min-height: 2rem;
  margin-top: 0.25rem;
  padding: 0.35rem 0.5rem;
  font-size: 0.8rem;
  line-height: 1.2;
  box-shadow: none;
}

.public-booking-line-dialog__properties textarea {
  min-height: 4rem;
}

.public-booking-line-dialog__preview-section {
  padding-top: 0.65rem;
}

.public-booking-line-dialog__preview {
  display: grid;
  gap: 0.45rem;
}

.public-booking-line-dialog__preview[hidden] {
  display: none;
}

.public-booking-line-dialog__preview--updating {
  opacity: 0.88;
}

.public-booking-line-dialog-preview-state {
  padding: 0.35rem 0.5rem;
  border: 1px solid #bfdbfe;
  border-radius: 0.375rem;
  background: #eff6ff;
  color: #1e40af;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
}

.public-booking-line-dialog-preview-block {
  padding: 0.5rem 0.6rem;
  border: 1px solid #bfdbfe;
  border-left-width: 3px;
  border-radius: 0.5rem;
  background: #eff6ff;
  color: #1e3a8a;
  font-size: 0.78rem;
  line-height: 1.25;
}

.public-booking-line-dialog-preview-block p {
  margin: 0;
}

.public-booking-line-dialog-preview-block--ready {
  border-color: #bbf7d0;
  border-left-color: #16a34a;
  background: #f0fdf4;
  color: #166534;
}

.public-booking-line-dialog-preview-block--pending {
  border-color: #dbe3ee;
  border-left-color: #64748b;
  background: #f8fafc;
  color: #475569;
}

.public-booking-line-dialog-preview-block--error {
  border-color: #fecaca;
  border-left-color: #dc2626;
  background: #fef2f2;
  color: #991b1b;
}

.public-booking-line-dialog-preview-issues {
  display: grid;
  gap: 0.25rem;
  margin-top: 0.4rem;
}

.public-booking-line-dialog-preview-issue {
  padding: 0.3rem 0.4rem;
  border-radius: 0.375rem;
  background: rgba(254, 202, 202, 0.55);
  color: #991b1b;
  font-size: 0.72rem;
  line-height: 1.2;
}

.public-booking-line-dialog-preview-retry {
  margin-top: 0.45rem;
  padding: 0.25rem 0.5rem;
  border: 1px solid #fecaca;
  border-radius: 0.375rem;
  background: #fff;
  color: #991b1b;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.15;
}

.public-booking-line-dialog-slots {
  padding: 0.55rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  background: #fff;
}

.public-booking-line-dialog-slots h4 {
  margin: 0;
  color: #334155;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.2;
}

.public-booking-line-dialog-slots__grid {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.45rem;
}

.public-booking-line-dialog-slot {
  padding: 0.45rem 0.55rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  background: #fff;
  color: #334155;
  cursor: pointer;
  font-size: 0.78rem;
  line-height: 1.2;
  text-align: left;
}

.public-booking-line-dialog-slot:hover {
  background: #f8fafc;
}

.public-booking-line-dialog-slot span:last-child {
  display: block;
  margin-top: 0.15rem;
  color: #64748b;
  font-size: 0.7rem;
}

.public-booking-line-dialog__footer {
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 0.5rem;
  padding: 0.75rem;
}

.public-booking-line-dialog__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0.4rem 0.75rem;
  border-radius: 0.375rem;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.15;
}

.public-booking-line-dialog__button--secondary {
  border: 1px solid #d1d5db;
  background: #fff;
  color: #374151;
}

.public-booking-line-dialog__button--secondary:hover {
  background: #f9fafb;
}

.public-booking-line-dialog__button--primary {
  border: 1px solid #111827;
  background: #111827;
  color: #fff;
}

.public-booking-line-dialog__button--primary:hover {
  background: #000;
}

.public-booking-line-dialog__button--disabled,
.public-booking-line-dialog__button--disabled:hover {
  border-color: #d1d5db;
  background: #e5e7eb;
  color: #6b7280;
  cursor: not-allowed;
}

@media (max-width: 640px) {
  .public-booking-line-dialog {
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
  }

  .public-booking-line-dialog__panel {
    width: min(calc(100vw - 1.5rem), 28rem);
    height: auto;
    max-height: calc(100dvh - 1.5rem);
    border-radius: 0.75rem;
  }

  .public-booking-line-dialog__fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 420px) {
  .public-booking-line-dialog__fields,
  .public-booking-line-dialog__footer {
    grid-template-columns: minmax(0, 1fr);
  }
}

.public-booking-cart-panel {
  padding: 1rem;
  border: 1px solid #c8d7ea;
  border-radius: 0.75rem;
  background: #f6f9fd;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 10px 28px rgba(30, 64, 175, 0.08);
}

.public-booking-cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 2rem;
}

.public-booking-cart-header[hidden] {
  display: none;
}

.public-booking-cart-summary {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 0.5rem;
}

.public-booking-cart-summary[hidden] {
  display: none;
}

.public-booking-cart-summary__total {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #111827;
  font-size: 1.28rem;
  font-weight: 850;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.public-booking-cart-summary__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  max-width: 9rem;
  padding: 0.22rem 0.5rem;
  overflow: hidden;
  border-radius: 9999px;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.public-booking-cart-summary__badge[hidden] {
  display: none;
}

.public-booking-cart-summary__badge--bookable {
  background: #dcfce7;
  color: #166534;
}

.public-booking-cart-summary__badge--request {
  background: #dbeafe;
  color: #1e40af;
}

.public-booking-cart-summary__badge--pending {
  background: #f3f4f6;
  color: #4b5563;
}

.public-booking-cart-summary__badge--review {
  background: #fef3c7;
  color: #92400e;
}

.public-booking-cart-summary__badge--unavailable {
  background: #fee2e2;
  color: #991b1b;
}

.public-booking-cart-clear {
  flex: 0 0 auto;
  padding: 0.2rem 0;
  border: 0;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 650;
  line-height: 1.15;
}

.public-booking-cart-clear:hover {
  color: #475569;
  text-decoration: underline;
}

.public-booking-cart-clear:focus-visible {
  border-radius: 0.25rem;
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.public-booking-cart-reservation-details {
  margin-top: 0.75rem;
  padding: 0.65rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
  background: #f8fafc;
}

.public-booking-cart-reservation-details__title {
  margin: 0;
  color: #334155;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: uppercase;
}

.public-booking-cart-reservation-properties {
  display: grid;
  gap: 0;
  margin-top: 0.45rem;
  overflow: hidden;
  border: 1px solid #dbe3ee;
  border-radius: 0.375rem;
  background: #fff;
}

.public-booking-cart-reservation-properties > [data-reservation-property-wrapper] {
  margin: 0;
  padding: 0.45rem 0.55rem;
  border: 0;
  border-top: 1px solid #edf2f7;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.public-booking-cart-reservation-properties > [data-reservation-property-wrapper]:first-child {
  border-top: 0;
}

.public-booking-cart-reservation-properties > [data-reservation-property-wrapper].bg-red-50 {
  background: #fef2f2;
}

.public-booking-cart-reservation-properties > [data-reservation-property-wrapper].border-red-300 {
  border-top-color: #fecaca;
}

.public-booking-cart-reservation-properties [data-reservation-property-wrapper] > span,
.public-booking-cart-reservation-properties [data-reservation-property-wrapper] legend {
  color: #334155;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
}

.public-booking-cart-reservation-properties [data-reservation-property-wrapper] p {
  margin-top: 0.25rem;
  font-size: 0.72rem;
  line-height: 1.25;
}

.public-booking-cart-reservation-properties .rounded-full {
  padding: 0.08rem 0.4rem;
  font-size: 0.64rem;
  line-height: 1.1;
}

.public-booking-cart-reservation-properties select[data-reservation-property-key],
.public-booking-cart-reservation-properties input[data-reservation-property-key],
.public-booking-cart-reservation-properties textarea[data-reservation-property-key] {
  min-height: 2rem;
  margin-top: 0.25rem;
  padding: 0.35rem 0.5rem;
  font-size: 0.78rem;
  line-height: 1.2;
  box-shadow: none;
}

.public-booking-cart-reservation-properties textarea[data-reservation-property-key] {
  min-height: 4.25rem;
}

.public-booking-cart-reservation-properties div[data-reservation-property-key] {
  margin-top: 0.35rem;
}

.public-booking-cart-reservation-properties div[data-reservation-property-key] label {
  gap: 0.4rem;
  font-size: 0.78rem;
  line-height: 1.2;
}

.public-booking-cart-reservation-properties [data-custom-property-open] {
  min-height: 1.65rem;
  padding: 0.25rem 0.5rem;
  font-size: 0.72rem;
  line-height: 1.15;
}

.public-booking-cart-contact-details {
  margin-top: 0.75rem;
  padding: 0.65rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
  background: #f8fafc;
}

.public-booking-cart-contact-details__title {
  margin: 0;
  color: #334155;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: uppercase;
}

.public-booking-cart-contact-status {
  margin-top: 0.45rem;
  padding: 0.45rem 0.55rem;
  border: 1px solid #fecaca;
  border-radius: 0.375rem;
  background: #fef2f2;
  color: #991b1b;
  font-size: 0.76rem;
  line-height: 1.25;
}

.public-booking-cart-contact-fields {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.5rem;
  min-width: 0;
}

.public-booking-cart-contact-field-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.5rem;
  min-width: 0;
}

.public-booking-cart-contact-field {
  min-width: 0;
}

.public-booking-cart-contact-field label {
  margin-bottom: 0.2rem;
  color: #334155;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.15;
}

.public-booking-cart-contact-field label > span:last-child {
  color: #64748b;
  font-size: 0.62rem;
  line-height: 1.1;
}

.public-booking-cart-contact-field input,
.public-booking-cart-contact-field textarea {
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-height: 1.75rem;
  padding: 0.25rem 0.45rem;
  background: #fff;
  font-size: 0.74rem;
  line-height: 1.15;
  box-shadow: none;
}

.public-booking-cart-contact-field input {
  height: 1.8rem;
}

.public-booking-cart-contact-field textarea {
  min-height: 3.35rem;
  resize: vertical;
}

@media (min-width: 640px) {
  .public-booking-cart-contact-field-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 0.75rem;
    row-gap: 0.5rem;
  }
}

.public-booking-cart-line {
  padding: 0.65rem 0.75rem;
  overflow: hidden;
  border: 1px solid #d1d5db;
  border-left: 3px solid #2563eb;
  border-radius: 0.5rem;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.public-booking-cart-line__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 0.6rem;
}

.public-booking-cart-line__main {
  min-width: 0;
}

.public-booking-cart-line__title {
  margin: 0;
  overflow-wrap: anywhere;
  color: #111827;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.25;
}

.public-booking-cart-line__facts {
  margin: 0.18rem 0 0;
  overflow-wrap: anywhere;
  color: #6b7280;
  font-size: 0.74rem;
  line-height: 1.3;
}

.public-booking-cart-line__actions {
  display: inline-flex;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  gap: 0.25rem;
}

.public-booking-cart-line-action {
  min-height: 1.5rem;
  padding: 0.18rem 0.35rem;
  border: 1px solid transparent;
  border-radius: 0.375rem;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.1;
}

.public-booking-cart-line-action:hover {
  border-color: #e2e8f0;
  background: #f8fafc;
  color: #475569;
}

.public-booking-cart-line-action:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.public-booking-cart-line__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-top: 0.5rem;
}

.public-booking-cart-line-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.5rem;
  padding: 0.4rem 0.5rem;
  border-radius: 0.375rem;
  background: #f9fafb;
  color: #374151;
  font-size: 0.78rem;
  line-height: 1.25;
}

.public-booking-cart-line-price__status {
  display: inline-flex;
  min-width: 0;
}

.public-booking-cart-line-status {
  display: inline-flex;
  align-items: center;
  max-width: 11rem;
  padding: 0.16rem 0.45rem;
  overflow: hidden;
  border-radius: 9999px;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.public-booking-cart-line-status--bookable {
  background: #dcfce7;
  color: #166534;
}

.public-booking-cart-line-status--request {
  background: #dbeafe;
  color: #1e40af;
}

.public-booking-cart-line-status:empty {
  display: none;
}

.public-booking-cart-line-price__status:empty {
  display: none;
}

.public-booking-cart-line-price__label {
  min-width: 0;
  color: #6b7280;
}

.public-booking-cart-line-price__value {
  flex: 0 0 auto;
  color: #111827;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.public-booking-cart-line-price--unknown {
  display: flex;
  color: #4b5563;
}

.public-booking-cart-line-price--status-only {
  justify-content: flex-start;
}

.public-booking-cart-line-details {
  margin-top: 0.55rem;
  padding-top: 0.5rem;
  border-top: 1px solid #e5e7eb;
}

.public-booking-cart-line-details__title {
  margin: 0 0 0.35rem;
  color: #6b7280;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: uppercase;
}

.public-booking-cart-property-table {
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: 0.375rem;
  background: #fff;
}

.public-booking-cart-property-row {
  display: grid;
  grid-template-columns: minmax(5.5rem, 0.8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: 0.45rem;
  padding: 0.45rem 0.5rem;
  border-top: 1px solid #f3f4f6;
  font-size: 0.74rem;
  line-height: 1.25;
}

.public-booking-cart-property-row:first-child {
  border-top: 0;
}

.public-booking-cart-property-row--with-action {
  grid-template-columns: minmax(5rem, 0.75fr) minmax(0, 1fr) auto;
}

.public-booking-cart-property-row--optional {
  background: #f9fafb;
}

.public-booking-cart-property-row--required {
  background: #fff;
}

.public-booking-cart-property-row--error {
  border-top-color: #fecaca;
  background: #fef2f2;
}

.public-booking-cart-property-row__label {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #374151;
  font-weight: 700;
}

.public-booking-cart-property-row__value {
  min-width: 0;
  overflow-wrap: anywhere;
}

.public-booking-cart-property-row__value--required {
  color: #111827;
  font-weight: 600;
}

.public-booking-cart-property-row__value--muted {
  color: #4b5563;
}

.public-booking-cart-property-row__value--error {
  color: #991b1b;
  font-weight: 700;
}

.public-booking-cart-property-row__action {
  display: flex;
  justify-content: flex-end;
}

.public-booking-cart-property-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.65rem;
  padding: 0.25rem 0.45rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  background: #fff;
  color: #374151;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
}

.public-booking-cart-property-action:hover {
  background: #f9fafb;
}

.public-booking-cart-property-action:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.public-booking-cart-line__issues {
  display: grid;
  gap: 0.25rem;
  margin-top: 0.5rem;
}

.public-booking-cart-line__issues[hidden] {
  display: none;
}

.public-booking-cart-line__issue {
  padding: 0.35rem 0.5rem;
  border-radius: 0.375rem;
  background: #fef2f2;
  color: #991b1b;
  font-size: 0.74rem;
  line-height: 1.25;
}

@media (max-width: 420px) {
  .public-booking-cart-line__header,
  .public-booking-cart-property-row,
  .public-booking-cart-property-row--with-action {
    grid-template-columns: minmax(0, 1fr);
  }

  .public-booking-cart-line__actions,
  .public-booking-cart-property-row__action {
    justify-content: flex-start;
  }
}

/* ── Print: only the workspace (no chrome) ───────────── */
@media print {
  .app-header-top,
  .app-footer,
  .sidebar,
  .sidebar-backdrop,
  .right-panel {
    display: none !important;
  }

  body {
    display: block;
    height: auto;
    background: #fff;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .app-body {
    display: block;
    overflow: visible;
  }

  .workspace {
    overflow: visible;
    padding: 0;
  }
}
