.rbs-app {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px;
  background: #fff;
}
.rbs-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.rbs-title {
  margin: 0;
  font-size: 24px;
}
.rbs-subtitle {
  color: #6b7280;
  margin-top: 6px;
}
.rbs-toolbar-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.rbs-export-toolbar {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 12px;
}

.rbs-export-bookings-button,
.rbs-export-bookings-button.button,
.rbs-export-bookings-button.button-secondary,
.rbs-export-bookings-button.button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.rbs-fixed-room {
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
}
.rbs-admin-nav-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

.rbs-admin-shortcut-button,
.rbs-admin-shortcut-button.button,
.rbs-admin-shortcut-button.button-secondary,
.rbs-admin-shortcut-button.button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #2563eb;
  background: #2563eb;
  color: #ffffff !important;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.2;
  cursor: pointer;
}

.rbs-admin-shortcut-button:hover,
.rbs-admin-shortcut-button:focus,
.rbs-admin-shortcut-button.button:hover,
.rbs-admin-shortcut-button.button-secondary:hover,
.rbs-admin-shortcut-button.button-primary:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: #ffffff !important;
}

.rbs-bulk-mode-toggle {
  cursor: pointer;
}



.rbs-email-toggle-form {
  display: inline-flex;
  margin: 0;
}

.rbs-email-toggle-button--paused,
.rbs-email-toggle-button--paused.button,
.rbs-email-toggle-button--paused.button-secondary,
.rbs-email-toggle-button--paused.button-primary {
  border-color: #dc2626;
  background: #dc2626;
  color: #ffffff !important;
}

.rbs-email-toggle-button--paused:hover,
.rbs-email-toggle-button--paused:focus,
.rbs-email-toggle-button--paused.button:hover,
.rbs-email-toggle-button--paused.button-secondary:hover,
.rbs-email-toggle-button--paused.button-primary:hover {
  border-color: #b91c1c;
  background: #b91c1c;
  color: #ffffff !important;
}

.rbs-email-notice {
  margin-bottom: 12px;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.4;
}

.rbs-email-notice--success {
  background: #ecfdf5;
  border: 1px solid #10b981;
  color: #065f46;
}

.rbs-email-notice--error {
  background: #fef2f2;
  border: 1px solid #ef4444;
  color: #991b1b;
}

.rbs-admin-secondary-button,
.rbs-admin-secondary-button.button,
.rbs-admin-secondary-button.button-secondary,
.rbs-admin-secondary-button.button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #2563eb;
  background: #ffffff;
  color: #2563eb !important;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.2;
  cursor: pointer;
}

.rbs-admin-secondary-button:hover,
.rbs-admin-secondary-button:focus,
.rbs-admin-secondary-button.button:hover,
.rbs-admin-secondary-button.button-secondary:hover,
.rbs-admin-secondary-button.button-primary:hover {
  background: #eff6ff;
  border-color: #1d4ed8;
  color: #1d4ed8 !important;
}

.rbs-admin-secondary-button--active,
.rbs-admin-secondary-button--active.button,
.rbs-admin-secondary-button--active.button-secondary,
.rbs-admin-secondary-button--active.button-primary,
.rbs-admin-secondary-button.rbs-admin-secondary-button--active,
.rbs-admin-secondary-button.rbs-admin-secondary-button--active:hover,
.rbs-admin-secondary-button.rbs-admin-secondary-button--active:focus {
  border-color: #2563eb;
  background: #2563eb;
  color: #ffffff !important;
}


.rbs-message {
  margin-bottom: 12px;
  color: #1f2937;
  font-weight: 600;
  min-height: 1.2em;
}
.rbs-legend {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  font-size: 14px;
}
.rbs-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.rbs-legend-box {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  border: 1px solid #d1d5db;
  display: inline-block;
}
.rbs-legend-box.available { background: #dcfce7; }
.rbs-legend-box.booked { background: #fee2e2; }
.rbs-legend-box.own-booking { background: #ede9fe; }
.rbs-legend-box.selected { background: #dbeafe; }
.rbs-calendar {
  display: grid;
  border: 1px solid #cfd8e3;
  border-radius: 12px;
  overflow: hidden;
  background: #dbe4ec;
}
.rbs-calendar .cell {
  border-right: 1px solid #d7dee7;
  border-bottom: 1px solid #d7dee7;
  min-height: 38px;
  padding: 4px;
  font-size: 12px;
  background: #fff;
  box-sizing: border-box;
}
.rbs-calendar .cell--slot {
  padding: 0;
  position: relative;
  background: #fff;
}
.rbs-calendar .header,
.rbs-calendar .time {
  background: #f9fafb;
  font-weight: 700;
}
.rbs-calendar .time {
  text-align: right;
  color: #6b7280;
}

.rbs-calendar .header,
.rbs-calendar .time,
.rbs-calendar .cell--slot,
.rbs-calendar .cell--slot > .rbs-cell-block,
.rbs-calendar .cell--slot > .rbs-slot-surface {
  box-sizing: border-box;
}
.rbs-cell-block {
  border-radius: 0;
  min-height: 38px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 600;
  padding: 4px;
  box-sizing: border-box;
  user-select: none;
  box-shadow: inset 0 0 0 1px rgba(215, 222, 231, 0.92);
}
.rbs-slot-surface {
  min-height: 38px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 600;
  padding: 4px;
  box-sizing: border-box;
  user-select: none;
  box-shadow: inset 0 0 0 1px rgba(215, 222, 231, 0.95);
}
.rbs-slot-surface.occupied {
  background: #fff;
}
.rbs-slot-surface.past {
  background: #fee2e2;
  color: #991b1b;
}
.rbs-slot-surface.outside {
  background: #f3f4f6;
  color: #9ca3af;
}
.rbs-booking-block {
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 600;
  padding: 8px 10px 18px;
  margin: 2px 4px;
  box-sizing: border-box;
  overflow: hidden;
  z-index: 3;
  user-select: none;
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7), 0 0 0 1px rgba(203, 213, 225, 0.8);
}
.rbs-booking-payment-badge {
  position: absolute;
  right: 6px;
  bottom: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #1f2937;
  font-size: 10px;
  line-height: 1;
  font-weight: 700;
  white-space: nowrap;
  pointer-events: none;
}
.rbs-booking-payment-badge--paid {
  background: rgba(220, 252, 231, 0.95);
  color: #166534;
}
.rbs-booking-payment-badge--not-paid {
  background: rgba(255, 237, 213, 0.95);
  color: #9a3412;
}
.rbs-booking-payment-badge--no-fee {
  background: rgba(239, 246, 255, 0.95);
  color: #1d4ed8;
}
.rbs-cell-block.available {
  background: #dcfce7;
  color: #166534;
  cursor: pointer;
}
.rbs-cell-block.available:hover {
  filter: brightness(0.97);
}

.rbs-cell-block.available.past-selectable {
  background: #fee2e2;
  color: #991b1b;
  cursor: pointer;
}
.rbs-cell-block.available.past-selectable:hover {
  filter: brightness(0.97);
}
.rbs-cell-block.booked,
.rbs-booking-block.booked {
  background: #fee2e2;
  color: #991b1b;
}
.rbs-cell-block.own-booking,
.rbs-booking-block.own-booking {
  background: #ede9fe;
  color: #5b21b6;
  cursor: pointer;
}
.rbs-cell-block.own-booking:hover,
.rbs-booking-block.own-booking:hover {
  filter: brightness(0.97);
}
.rbs-cell-block.admin-manageable,
.rbs-booking-block.admin-manageable {
  cursor: pointer;
  position: relative;
}
.rbs-cell-block.admin-manageable:hover,
.rbs-booking-block.admin-manageable:hover {
  filter: brightness(0.94);
  box-shadow: inset 0 0 0 2px rgba(127,29,29,0.25);
}
.rbs-cell-label{display:flex;flex-direction:column;align-items:center;justify-content:center;line-height:1.15;max-width:100%;overflow:hidden}.rbs-cell-main,.rbs-cell-sub{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rbs-cell-main{font-size:11px;font-weight:700}.rbs-cell-sub{font-size:10px;font-weight:500;opacity:.95}.rbs-cell-block.admin-manageable .rbs-cell-main,.rbs-cell-block.admin-manageable .rbs-cell-sub,.rbs-booking-block.admin-manageable .rbs-cell-main,.rbs-booking-block.admin-manageable .rbs-cell-sub{color:#7f1d1d}
.rbs-cell-block.selected {
  background: #dbeafe;
  color: #1d4ed8;
  outline: 2px solid #60a5fa;
}
.rbs-room-holding {
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  background: #f8fafc;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}
.rbs-room-holding__inner {
  max-width: 520px;
}
.rbs-room-holding__inner h3 {
  margin: 0 0 10px;
  font-size: 24px;
}
.rbs-room-holding__inner p {
  margin: 0;
  color: #4b5563;
}
.rbs-selection-menu {
  position: fixed;
  z-index: 11000;
  min-width: 170px;
  padding: 8px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #d1d5db;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
}
.rbs-selection-menu__item {
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.rbs-selection-menu__item:hover {
  background: #dbeafe;
}
.rbs-form-wrap {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  background: #f9fafb;
}
.rbs-grid-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.rbs-grid-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}
.rbs-grid-form input,
.rbs-grid-form select,
.rbs-grid-form textarea {
  width: 100%;
}
.rbs-field-span-2 {
  grid-column: span 2;
}
.rbs-field-half {
  grid-column: span 1;
}
.rbs-coupon-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.rbs-coupon-row input {
  flex: 1 1 auto;
}
.rbs-coupon-feedback.is-success {
  color: #166534;
}
.rbs-coupon-feedback.is-error {
  color: #b91c1c;
}
.rbs-form-actions { margin-top: 14px; }
.rbs-selected-slot {
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
  border-radius: 10px;
  font-weight: 600;
}
.rbs-price-box {
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  border-radius: 10px;
  display: grid;
  gap: 6px;
}
.rbs-cost-note {
  color: #166534;
  font-weight: 600;
}
@media (max-width: 800px) {
  .rbs-grid-form {
    grid-template-columns: 1fr;
  }
  .rbs-field-span-2 {
    grid-column: span 1;
  }
  .rbs-calendar .cell {
    min-height: 34px;
    font-size: 11px;
    padding: 3px;
  }
}

.rbs-policy-actions {
  display: flex;
  align-items: center;
}
.rbs-policy-check-wrap {
  margin-top: -4px;
}
.rbs-policy-check {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-weight: 600;
}
.rbs-policy-check input {
  width: auto;
  margin-top: 4px;
}
.rbs-policy-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.rbs-policy-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17,24,39,.55);
}
.rbs-policy-modal__dialog {
  position: relative;
  width: min(920px, calc(100vw - 24px));
  max-height: calc(100vh - 40px);
  overflow: hidden;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 18px 48px rgba(0,0,0,.18);
  z-index: 1;
}
.rbs-policy-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid #e5e7eb;
}
.rbs-policy-modal__header h3 {
  margin: 0;
}
.rbs-policy-modal__close {
  border: 0;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: #374151;
}
.rbs-policy-modal__body {
  padding: 20px;
  overflow: auto;
  max-height: calc(100vh - 140px);
}
.rbs-policy-content h4 {
  margin: 18px 0 8px;
}
.rbs-policy-content h4:first-child {
  margin-top: 0;
}
.rbs-policy-content ul {
  margin: 0 0 14px 20px;
}
.rbs-policy-content p {
  margin: 0 0 14px;
}

.rbs-my-bookings-wrap {
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  background: #f9fafb;
}
.rbs-my-bookings-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.rbs-my-bookings-header h3 {
  margin: 0 0 4px;
}

.rbs-my-bookings-header__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
}
.rbs-my-bookings-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 8px;
  margin-left: 8px;
  border-radius: 999px;
  background: #e5e7eb;
  color: #111827;
  font-size: 13px;
}
.rbs-my-bookings-panel {
  margin-top: 12px;
  max-height: 280px;
  overflow: auto;
  border-top: 1px solid #e5e7eb;
  padding-top: 12px;
}
.rbs-my-bookings-subtitle,
.rbs-login-prompt,
.rbs-inline-message {
  color: #4b5563;
}
.rbs-login-prompt {
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  background: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.rbs-inline-message.error {
  color: #991b1b;
}

.rbs-my-bookings-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #ffffff;
}
.rbs-my-bookings-actions__summary {
  font-size: 14px;
  color: #374151;
}
.rbs-my-bookings-actions__buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.rbs-booking-card.is-selected {
  border-color: #2563eb;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.15);
}
.rbs-booking-card__head {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 8px;
}
.rbs-my-bookings-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #374151;
  font-size: 13px;
}
.rbs-my-bookings-cards {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}
.rbs-booking-card {
  border: 1px solid #d1d5db;
  border-radius: 10px;
  background: #fff;
  padding: 12px;
}
.rbs-booking-card__title {
  font-weight: 700;
  margin-bottom: 4px;
}
.rbs-booking-card__meta {
  color: #4b5563;
  margin-bottom: 4px;
  font-size: 14px;
}
.rbs-booking-card__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.rbs-my-bookings-past-section {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #e5e7eb;
}
.rbs-my-bookings-past-title {
  margin: 0 0 10px;
  font-size: 16px;
}
.rbs-booking-card--past {
  background: #f8fafc;
}
.rbs-booking-card__meta--view-only {
  color: #991b1b;
  font-weight: 600;
}
.rbs-booking-card__details {
  margin-top: 10px;
  border-top: 1px solid #e5e7eb;
  padding-top: 10px;
}
.rbs-booking-detail-row {
  display: grid;
  grid-template-columns: minmax(140px, 180px) 1fr;
  gap: 10px;
  padding: 4px 0;
  font-size: 14px;
}
.rbs-booking-detail-row__label {
  color: #374151;
  font-weight: 600;
}
.rbs-booking-detail-row__value {
  color: #111827;
  white-space: pre-wrap;
  word-break: break-word;
}
.rbs-form-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.rbs-form-head h3 {
  margin: 0;
}

.rbs-recurrence-controls{display:grid;grid-template-columns:1fr 1fr;gap:16px}.rbs-recurrence-controls .description{font-size:12px;color:#6b7280;margin-top:4px}

.rbs-booking-action-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}
.rbs-booking-action-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17,24,39,.4);
}
.rbs-booking-action-modal__dialog {
  position: relative;
  width: min(420px, calc(100vw - 24px));
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 18px 48px rgba(0,0,0,.18);
  z-index: 1;
  overflow: hidden;
}
.rbs-booking-action-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid #e5e7eb;
}
.rbs-booking-action-modal__header h3 {
  margin: 0;
  font-size: 18px;
}
.rbs-booking-action-modal__close {
  border: 0;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: #374151;
}
.rbs-booking-action-modal__body {
  padding: 18px;
}
.rbs-booking-action-modal__body p {
  margin: 0 0 14px;
}
.rbs-booking-action-modal__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.rbs-admin-controls{margin:0 0 12px;padding:12px 14px;border:1px solid #dbeafe;background:#eff6ff;border-radius:12px}.rbs-admin-blockout-check{display:flex;align-items:center;gap:8px;font-weight:600}.rbs-admin-controls .description{margin-top:6px;color:#1d4ed8;font-size:13px}

.rbs-frontend-overview { margin: 24px 0; }
.rbs-frontend-overview__head { margin-bottom: 16px; }
.rbs-frontend-overview__head h2 { margin: 0 0 6px; }
.rbs-frontend-overview__subtitle { margin: 0; color: #6b7280; }
.rbs-weekly-overview-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 16px; }
.rbs-weekly-toolbar { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:16px; flex-wrap:wrap; }
.rbs-weekly-toolbar__actions { display:flex; gap:8px; flex-wrap:wrap; }
.rbs-weekly-legend { display:flex; gap:16px; flex-wrap:wrap; margin-bottom:16px; font-size:14px; }
.rbs-weekly-legend-box { display:inline-block; width:12px; height:12px; border-radius:3px; margin-right:6px; vertical-align:middle; }
.rbs-weekly-legend-box--confirmed { background:#d1fae5; }
.rbs-weekly-legend-box--pending { background:#fef3c7; }
.rbs-weekly-legend-box--blocked { background:#fee2e2; }
.rbs-weekly-legend-box--cancelled { background:#e5e7eb; }
.rbs-weekly-table-wrap { overflow:auto; }
.rbs-weekly-table { width:100%; min-width:980px; border-collapse:collapse; }
.rbs-weekly-table th, .rbs-weekly-table td { border:1px solid #e5e7eb; padding:10px; vertical-align:top; text-align:left; }
.rbs-weekly-table thead th { background:#f9fafb; }
.rbs-weekly-room-col { width:190px; min-width:190px; background:#fff; }
.rbs-weekly-date, .rbs-weekly-room-meta { color:#6b7280; font-weight:400; font-size:12px; }
.rbs-weekly-day-cell { display:flex; flex-direction:column; gap:8px; min-width:140px; }
.rbs-weekly-item { border-radius:8px; padding:8px; border:1px solid #dcdcde; background:#fff; }
.rbs-weekly-item--confirmed { background:#ecfdf5; border-color:#a7f3d0; }
.rbs-weekly-item--pending { background:#fffbeb; border-color:#fde68a; }
.rbs-weekly-item--blocked { background:#fef2f2; border-color:#fecaca; }
.rbs-weekly-item--cancelled { background:#f9fafb; border-color:#e5e7eb; color:#6b7280; }
.rbs-weekly-item__time { font-weight:600; margin-bottom:2px; }
.rbs-weekly-item__name { font-weight:500; }
.rbs-weekly-item__ref { font-size:12px; color:#4b5563; }
.rbs-weekly-item__meta { font-size:12px; color:#6b7280; margin-top:2px; }
.rbs-weekly-empty { color:#6b7280; font-size:12px; }

.rbs-admin-overview-link{margin-top:10px; display:flex; flex-wrap:wrap; gap:8px; align-items:center;}
.rbs-admin-overview-link .button{margin-top:0;}

.rbs-form-head-copy{display:flex;flex-direction:column;gap:4px;min-width:0}
.rbs-form-descriptor{margin:0;color:#4b5563;font-size:14px;line-height:1.45}
.rbs-price-box{margin-top:14px;margin-bottom:14px}

.rbs-field-error {
  margin-top: 6px;
  color: #b91c1c;
  font-size: 13px;
  font-weight: 600;
  min-height: 1.2em;
}

.rbs-has-error input {
  border-color: #b91c1c;
  box-shadow: 0 0 0 1px #b91c1c;
}


.rbs-form-message {
  margin-bottom: 12px;
  color: #b91c1c;
  font-weight: 600;
  min-height: 1.2em;
}

.rbs-grid-form input[aria-invalid="true"] {
  border-color: #b91c1c;
  box-shadow: 0 0 0 1px #b91c1c;
}

.rbs-room-details-content { display:grid; gap:16px; }
.rbs-room-details-header h4 { margin:0; font-size:22px; }
.rbs-room-details-location { color:#6b7280; margin-top:4px; }
.rbs-room-details-description { color:#111827; }
.rbs-room-details-description > *:first-child { margin-top:0; }
.rbs-room-details-description > *:last-child { margin-bottom:0; }
.rbs-room-details-gallery { display:grid; grid-template-columns:repeat(auto-fit, minmax(180px, 1fr)); gap:12px; }
.rbs-room-details-photo-link { display:block; }
.rbs-room-details-photo { width:100%; height:180px; object-fit:cover; border-radius:12px; border:1px solid #e5e7eb; background:#f9fafb; }

.rbs-bulk-toolbar {
  margin: 0 0 14px;
}

.rbs-bulk-panel[hidden] {
  display: none !important;
}

.rbs-bulk-panel {
  border: 1px solid #c7d2fe;
  background: #eef2ff;
  border-radius: 14px;
  padding: 14px;
  display: grid;
  gap: 12px;
}

.rbs-bulk-panel__summary {
  color: #312e81;
  line-height: 1.45;
}

.rbs-bulk-panel__count {
  display: inline-block;
  margin-left: 10px;
}

.rbs-bulk-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rbs-cell-block.admin-manageable.bulk-selected,
.rbs-cell-block.own-booking.bulk-selected,
.rbs-booking-block.admin-manageable.bulk-selected,
.rbs-booking-block.own-booking.bulk-selected {
  outline: 3px solid #4338ca;
  outline-offset: -3px;
  box-shadow: inset 0 0 0 9999px rgba(67, 56, 202, 0.12);
}

.rbs-bulk-edit-intro {
  margin-bottom: 14px;
  color: #374151;
}

.rbs-bulk-edit-modal .rbs-policy-modal__dialog {
  width: min(640px, calc(100vw - 24px));
}

@media (max-width: 700px) {
  .rbs-bulk-panel__actions {
    flex-direction: column;
  }

  .rbs-bulk-panel__actions .button {
    width: 100%;
  }
}

.rbs-detailed-list-card {
  display: grid;
  gap: 18px;
}

.rbs-detailed-filters {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
  background: #f9fafb;
}

.rbs-detailed-filters__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.rbs-detailed-filters__wide {
  grid-column: 1 / -1;
}

.rbs-detailed-filters label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #111827;
}

.rbs-detailed-filters input,
.rbs-detailed-filters select {
  width: 100%;
}

.rbs-detailed-filters__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.rbs-detailed-bulk-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  background: #eff6ff;
}

.rbs-detailed-bulk-tools__summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  color: #1f2937;
}

.rbs-detailed-select-all-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.rbs-detailed-bulk-tools__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rbs-detailed-bulk-edit-panel {
  border: 1px solid #d1d5db;
  border-radius: 12px;
  background: #ffffff;
  padding: 16px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
}

.rbs-detailed-bulk-edit-panel__intro {
  margin: 0 0 14px;
  color: #4b5563;
}

.rbs-detailed-bulk-edit-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.rbs-detailed-table__select {
  width: 44px;
  text-align: center;
}

.rbs-detailed-row--selected {
  background: #dbeafe !important;
}

.rbs-detailed-row--locked {
  opacity: 0.84;
}

.rbs-detailed-cell-copy--muted {
  color: #6b7280;
}

.rbs-detailed-table-wrap {
  overflow: auto;
}

.rbs-detailed-table {
  min-width: 1500px;
}

.rbs-detailed-table td,
.rbs-detailed-table th {
  vertical-align: top;
}


.rbs-sort-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: inherit;
  text-decoration: none;
  font-weight: 700;
}

.rbs-sort-link:hover,
.rbs-sort-link:focus {
  color: #1d4ed8;
  text-decoration: underline;
}

.rbs-sort-link__icon {
  font-size: 11px;
  line-height: 1;
  opacity: 0.8;
}

.rbs-detailed-cell-copy {
  margin-top: 4px;
  color: #374151;
  line-height: 1.4;
}

.rbs-detailed-cell-copy:first-child {
  margin-top: 0;
}

.rbs-detailed-cell-copy--message {
  white-space: pre-wrap;
}

.rbs-status-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 8px;
}

.rbs-status-pill--confirmed {
  background: #dcfce7;
  color: #166534;
}

.rbs-status-pill--pending {
  background: #fef3c7;
  color: #92400e;
}

.rbs-status-pill--blocked {
  background: #fee2e2;
  color: #991b1b;
}

.rbs-status-pill--cancelled {
  background: #e5e7eb;
  color: #374151;
}

@media (max-width: 700px) {
  .rbs-detailed-filters__actions {
    flex-direction: column;
  }

  .rbs-detailed-filters__actions .button,
  .rbs-detailed-filters__actions a.button {
    width: 100%;
  }
}

.rbs-masquerade-banner {
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:16px;
    padding:16px 18px;
    margin:0 0 18px;
    border:1px solid #93c5fd;
    background:#eff6ff;
    border-radius:12px;
}
.rbs-masquerade-banner strong {
    display:block;
    margin-bottom:4px;
}
.rbs-masquerade-form {
    margin:0;
}
.rbs-masquerade-launcher {
    width:100%;
    margin-top:8px;
    padding:12px 14px;
    border:1px solid #d1d5db;
    background:#ffffff;
    border-radius:10px;
    box-shadow:0 10px 24px rgba(15, 23, 42, 0.08);
}
.rbs-masquerade-form--launcher {
    display:flex;
    align-items:center;
    gap:10px;
    flex-wrap:wrap;
}
.rbs-masquerade-form--launcher select {
    min-width:280px;
}
@media (max-width: 782px) {
    .rbs-masquerade-banner {
        flex-direction:column;
        align-items:flex-start;
    }
    .rbs-masquerade-form--launcher {
        width:100%;
    }
    .rbs-masquerade-form--launcher select {
        width:100%;
        min-width:0;
    }
}


.rbs-future-invoices-card {
  display: grid;
  gap: 18px;
}


.rbs-status-pill--queued {
  background: #dbeafe;
  color: #1d4ed8;
  border: 1px solid #93c5fd;
}

.rbs-status-pill--synced {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
}

.rbs-status-pill--paid {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
}

.rbs-status-pill--owing {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fcd34d;
}

.rbs-status-pill--partial {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fcd34d;
}

.rbs-status-pill--failed,
.rbs-status-pill--locked {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}


.rbs-future-invoice-notice {
    margin: 0 0 16px;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid #d1d5db;
    background: #f9fafb;
}

.rbs-future-invoice-notice--success {
    border-color: #86efac;
    background: #f0fdf4;
    color: #166534;
}

.rbs-future-invoice-notice--error {
    border-color: #fca5a5;
    background: #fef2f2;
    color: #991b1b;
}

.rbs-future-invoice-action-form {
    margin-top: 10px;
}

.rbs-future-invoice-action-form .button {
    width: 100%;
}


.rbs-coupons-card {
  display: grid;
  gap: 18px;
}

.rbs-coupon-notice {
  margin: 0 0 16px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid #d1d5db;
  background: #f9fafb;
}

.rbs-coupon-notice--success {
  border-color: #86efac;
  background: #f0fdf4;
  color: #166534;
}

.rbs-coupon-notice--error {
  border-color: #fca5a5;
  background: #fef2f2;
  color: #991b1b;
}

.rbs-coupon-form {
  display: grid;
  gap: 18px;
}

.rbs-coupon-form-section {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
  background: #f9fafb;
}

.rbs-coupon-form-section__head {
  margin-bottom: 14px;
}

.rbs-coupon-form-section__title {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
  color: #111827;
}

.rbs-coupon-form-section__help {
  margin: 0;
  color: #4b5563;
}

.rbs-coupon-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.rbs-coupon-form-grid__wide {
  grid-column: 1 / -1;
}

.rbs-coupon-form-field label,
.rbs-coupon-form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #111827;
}

.rbs-coupon-form input,
.rbs-coupon-form select {
  width: 100%;
}

.rbs-checkbox-inline {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  margin-bottom: 0;
}

.rbs-checkbox-inline input[type="checkbox"] {
  width: auto;
  flex: 0 0 auto;
}

.rbs-multi-select {
  min-height: 150px;
}

.rbs-coupon-days-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px 16px;
}

.rbs-coupon-days-grid label {
  margin-bottom: 0;
  font-weight: 500;
}

.rbs-coupon-time-grid,
.rbs-coupon-usage-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  align-items: start;
}

.rbs-coupon-limit-toggle {
  align-self: end;
  min-height: 42px;
}

.rbs-coupon-limit-input.is-disabled {
  opacity: 0.55;
}

.rbs-coupon-limit-input input:disabled {
  background: #f3f4f6;
  cursor: not-allowed;
}

.rbs-coupon-form .description {
  margin-top: 6px;
}

.rbs-coupon-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.rbs-coupon-form-actions .button,
.rbs-coupon-table .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 8px;
  line-height: 1.2;
}

.rbs-inline-form {
  display: inline-block;
  margin-left: 8px;
}

.rbs-table-wrap {
  overflow: auto;
}

.rbs-admin-table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
}

.rbs-admin-table th,
.rbs-admin-table td {
  border: 1px solid #e5e7eb;
  padding: 10px;
  text-align: left;
  vertical-align: top;
}

.rbs-admin-table thead th {
  background: #f9fafb;
}

.rbs-admin-table tbody tr:nth-child(even) td {
  background: #fcfcfd;
}

@media (max-width: 782px) {
  .rbs-admin-table {
    min-width: 680px;
  }
}

.rbs-holiday-note {
  margin-top: 6px;
  font-size: 11px;
  line-height: 1.25;
  color: #8a1c1c;
  font-weight: 600;
}

.rbs-slot-surface.holiday {
  background: repeating-linear-gradient(
    135deg,
    rgba(138, 28, 28, 0.10),
    rgba(138, 28, 28, 0.10) 10px,
    rgba(138, 28, 28, 0.16) 10px,
    rgba(138, 28, 28, 0.16) 20px
  );
  border: 1px solid rgba(138, 28, 28, 0.24);
}


.rbs-policy-modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 20px 20px;
  border-top: 1px solid #e5e7eb;
  background: #fff;
}
.rbs-quick-book-modal .rbs-policy-modal__dialog {
  width: min(520px, calc(100vw - 24px));
}
.rbs-quick-book-summary {
  margin-bottom: 18px;
  padding: 12px 14px;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  background: #eff6ff;
  color: #1d4ed8;
  line-height: 1.5;
}
.rbs-quick-book-slider-wrap label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
}
.rbs-quick-book-slider-wrap input[type="range"] {
  width: 100%;
}
.rbs-quick-book-slider-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  color: #4b5563;
}
.rbs-quick-book-slider-meta strong {
  color: #111827;
}



.rbs-month-picker-modal .rbs-policy-modal__dialog {
  width: min(720px, calc(100vw - 24px));
}
.rbs-month-picker-intro {
  margin-top: 4px;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.4;
}
.rbs-month-picker-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.rbs-month-picker-label {
  flex: 1 1 auto;
  text-align: center;
  font-weight: 700;
  color: #111827;
}
.rbs-month-picker-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.rbs-month-picker-weekdays,
.rbs-month-picker-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}
.rbs-month-picker-weekday {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: #6b7280;
}
.rbs-month-picker-day {
  position: relative;
  min-height: 72px;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  background: #ffffff;
  color: #111827;
  padding: 10px;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.rbs-month-picker-day:hover,
.rbs-month-picker-day:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.16);
  background: #eff6ff;
}
.rbs-month-picker-day.is-outside-month {
  color: #9ca3af;
  background: #f9fafb;
}
.rbs-month-picker-day.is-active-week {
  border-color: #2563eb;
  background: #dbeafe;
}
.rbs-month-picker-day.is-public-holiday {
  border-color: #fecaca;
  background: #fff7f7;
}
.rbs-month-picker-day.is-public-holiday:hover,
.rbs-month-picker-day.is-public-holiday:focus {
  border-color: #f87171;
  background: #fee2e2;
}
.rbs-month-picker-day__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  min-height: 28px;
  border-radius: 999px;
  font-weight: 700;
}
.rbs-month-picker-day__holiday {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: 11px;
  line-height: 1.2;
  color: #b91c1c;
  text-align: left;
  max-width: 100%;
}
.rbs-month-picker-day__booking-dot {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #16a34a;
  box-shadow: 0 0 0 2px #ffffff;
}
@media (max-width: 640px) {
  .rbs-month-picker-weekdays,
  .rbs-month-picker-days {
    gap: 6px;
  }
  .rbs-month-picker-day {
    min-height: 58px;
    padding: 8px;
  }
  .rbs-month-picker-label {
    width: 100%;
    order: -1;
  }
}

.rbs-login-prompt__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.rbs-login-register-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid #1d4ed8;
  background: #2563eb;
  color: #ffffff !important;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.18);
}
.rbs-login-register-button:hover,
.rbs-login-register-button:focus {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: #ffffff !important;
}

.rbs-auth-modal__dialog {
  max-width: 720px;
}
.rbs-auth-modal__intro {
  color: #6b7280;
  font-size: 14px;
  line-height: 1.4;
}
.rbs-auth-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}
.rbs-auth-tab {
  min-width: 120px;
}
.rbs-auth-tab.is-active {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff !important;
}
.rbs-auth-panel[hidden] {
  display: none !important;
}
.rbs-auth-form {
  display: block;
}
.rbs-auth-form__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.rbs-auth-muted-link,
.rbs-auth-muted-text {
  font-size: 14px;
  color: #6b7280;
}
.rbs-auth-muted-link {
  text-decoration: underline;
}
.rbs-auth-muted-link-button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.rbs-auth-muted-link-button:hover,
.rbs-auth-muted-link-button:focus {
  color: #374151;
}
.rbs-logout-button {
  white-space: nowrap;
}
#rbs-auth-message {
  margin-bottom: 14px;
}
@media (max-width: 640px) {
  .rbs-auth-form__actions {
    align-items: stretch;
  }
  .rbs-auth-form__actions .button {
    width: 100%;
  }
}
.rbs-footer-credit {
  margin-top: 18px;
  font-size: 12px;
  line-height: 1.4;
  color: #6b7280;
  text-align: center;
}


#rbs-admin-undo-redo[data-mode="redo"],
#rbs-admin-undo-redo[data-mode="redo"].button,
#rbs-admin-undo-redo[data-mode="redo"].button-secondary,
#rbs-admin-undo-redo[data-mode="redo"].button-primary {
  background: #dc2626;
  border-color: #dc2626;
  color: #ffffff !important;
}

#rbs-admin-undo-redo[data-mode="redo"]:hover,
#rbs-admin-undo-redo[data-mode="redo"]:focus,
#rbs-admin-undo-redo[data-mode="redo"].button:hover,
#rbs-admin-undo-redo[data-mode="redo"].button-secondary:hover,
#rbs-admin-undo-redo[data-mode="redo"].button-primary:hover {
  background: #b91c1c;
  border-color: #b91c1c;
  color: #ffffff !important;
}


.rbs-inline-action-form {
  margin: 0;
}
