body.manage-bulk-bookings {
  background: #f4f7fb;
  color: #172033;
}

.bmb-page {
  padding: 28px 34px 48px;
  max-width: 1500px;
}

.bmb-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.bmb-eyebrow,
.bmb-section-kicker {
  display: inline-block;
  color: #56708d;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.bmb-hero h1 {
  margin: 5px 0 7px;
  color: #0b2746;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.05;
}

.bmb-hero p,
.bmb-section-heading p {
  margin: 0;
  color: #65758b;
  font-size: 15px;
  line-height: 1.55;
}

.bmb-primary-link,
.bmb-btn {
  border: 0;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.bmb-primary-link {
  min-height: 44px;
  padding: 0 16px;
  color: #fff;
  background: #003b70;
  box-shadow: 0 8px 22px rgba(0, 59, 112, .18);
}

.bmb-primary-link:hover,
.bmb-btn:hover { transform: translateY(-1px); }

.bmb-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 22px;
  padding: 13px 15px;
  border: 1px solid;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 650;
}

.bmb-alert--success { color: #17603b; background: #edf9f2; border-color: #b9e6cb; }
.bmb-alert--warning { color: #7b4b00; background: #fff7e6; border-color: #f0d394; }
.bmb-alert--error { color: #8b2430; background: #fff0f2; border-color: #efbac1; }

.bmb-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.bmb-stats article {
  position: relative;
  overflow: hidden;
  padding: 18px 20px;
  border: 1px solid #dfe7f0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 7px 24px rgba(24, 51, 82, .05);
}

.bmb-stats article::after {
  content: '';
  position: absolute;
  inset: auto -35px -45px auto;
  width: 100px;
  height: 100px;
  border-radius: 999px;
  background: rgba(0, 59, 112, .05);
}

.bmb-stats span,
.bmb-stats small { display: block; color: #6d7e91; }
.bmb-stats span { font-size: 13px; font-weight: 700; }
.bmb-stats strong { display: block; margin: 4px 0 1px; color: #0b2746; font-size: 30px; line-height: 1; }
.bmb-stats small { font-size: 12px; }

.bmb-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  padding: 9px;
  border: 1px solid #dfe7f0;
  border-radius: 14px;
  background: #fff;
}

.bmb-tabs { display: flex; gap: 5px; }
.bmb-tabs a {
  padding: 9px 13px;
  border-radius: 9px;
  color: #607187;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
}
.bmb-tabs a.active { color: #fff; background: #0b3f70; }

.bmb-search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: min(100%, 390px);
}
.bmb-search i { color: #8b9aae; }
.bmb-search input {
  min-width: 0;
  flex: 1;
  height: 38px;
  padding: 0 10px;
  border: 1px solid #d8e1ec;
  border-radius: 8px;
  font: inherit;
}
.bmb-search button,
.bmb-search a {
  border: 0;
  background: transparent;
  color: #0b4d87;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}

.bmb-section { margin-top: 26px; }
.bmb-section--legacy { margin-top: 38px; padding-top: 30px; border-top: 1px solid #d8e2ee; }
.bmb-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}
.bmb-section-heading h2 { margin: 3px 0 0; color: #0b2746; font-size: 22px; }
.bmb-section-heading p { margin-top: 5px; max-width: 820px; }
.bmb-count-pill {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  color: #275174;
  background: #e9f1f8;
  font-size: 12px;
  font-weight: 800;
}
.bmb-count-pill--amber { color: #7a510e; background: #fff0c9; }

.bmb-series-list,
.bmb-legacy-list { display: grid; gap: 13px; }

.bmb-series-card {
  padding: 18px;
  border: 1px solid #dce5ef;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(32, 54, 80, .045);
}
.bmb-series-card.is-past { opacity: .84; }
.bmb-series-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}
.bmb-series-title-wrap { display: flex; align-items: flex-start; gap: 11px; min-width: 0; }
.bmb-series-title-wrap h3,
.bmb-legacy-card h3 { margin: 0; color: #102d4b; font-size: 19px; overflow-wrap: anywhere; }
.bmb-series-title-wrap p,
.bmb-legacy-card p { margin: 4px 0 0; color: #7a899b; font-size: 12px; }
.bmb-status {
  flex: 0 0 auto;
  margin-top: 2px;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.bmb-status--active { color: #146340; background: #e8f7ef; }
.bmb-status--past { color: #667285; background: #eef1f5; }
.bmb-slot-total { flex: 0 0 auto; text-align: right; }
.bmb-slot-total strong { display: block; color: #0b3f70; font-size: 26px; line-height: 1; }
.bmb-slot-total span { color: #7b8a9c; font-size: 11px; font-weight: 650; }

.bmb-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 16px 0 13px;
  overflow: hidden;
  border: 1px solid #e4eaf1;
  border-radius: 11px;
  background: #e4eaf1;
}
.bmb-summary-grid > div { padding: 12px 13px; background: #f9fbfd; min-width: 0; }
.bmb-summary-grid span,
.bmb-summary-grid small { display: block; color: #728297; font-size: 11px; }
.bmb-summary-grid span { margin-bottom: 4px; font-weight: 700; }
.bmb-summary-grid span i { width: 15px; color: #507291; }
.bmb-summary-grid strong { display: block; color: #23394f; font-size: 13px; overflow-wrap: anywhere; }
.bmb-summary-grid small { margin-top: 2px; }

.bmb-chip-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.bmb-chip-row span {
  padding: 5px 8px;
  border-radius: 7px;
  color: #35536d;
  background: #edf3f8;
  font-size: 11px;
  font-weight: 750;
}
.bmb-chip-row--lanes span { color: #494f5c; background: #f1f2f4; }

.bmb-editor {
  margin-top: 15px;
  border-top: 1px solid #e5eaf0;
}
.bmb-editor > summary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  color: #0a4d86;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}
.bmb-editor > summary::-webkit-details-marker { display: none; }
.bmb-editor[open] > summary { margin-bottom: 14px; }

.bmb-edit-form {
  padding: 16px;
  border: 1px solid #dce5ef;
  border-radius: 12px;
  background: #f8fafc;
}
.bmb-form-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.bmb-field { display: grid; gap: 6px; }
.bmb-field--wide { grid-column: 1 / -1; }
.bmb-field > span,
.bmb-options legend { color: #4a5f75; font-size: 12px; font-weight: 800; }
.bmb-field input {
  width: 100%;
  height: 40px;
  padding: 0 10px;
  border: 1px solid #cfd9e5;
  border-radius: 8px;
  background: #fff;
  color: #1e3044;
  font: inherit;
  box-sizing: border-box;
}
.bmb-field input:focus,
.bmb-search input:focus { outline: 2px solid rgba(20, 104, 170, .18); border-color: #4f8fbe; }

.bmb-options { margin: 15px 0 0; padding: 0; border: 0; }
.bmb-options legend { margin-bottom: 7px; }
.bmb-option-grid { display: grid; gap: 7px; }
.bmb-option-grid--days { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.bmb-option-grid--lanes { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
.bmb-option-grid label {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 9px;
  border: 1px solid #d9e2ec;
  border-radius: 8px;
  background: #fff;
  color: #40546b;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}
.bmb-option-grid input { accent-color: #07558f; }
.bmb-edit-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 14px;
  padding: 10px 11px;
  border-radius: 9px;
  color: #53677e;
  background: #edf4fa;
  font-size: 12px;
  line-height: 1.45;
}
.bmb-form-actions { display: flex; justify-content: flex-end; margin-top: 14px; }
.bmb-btn { min-height: 38px; padding: 0 12px; font-size: 12px; }
.bmb-btn--primary { color: #fff; background: #07558f; }
.bmb-btn--secondary { color: #164c73; background: #e8f1f8; }
.bmb-btn--danger { color: #fff; background: #b73743; }
.bmb-btn--danger-ghost { color: #a52e39; background: #fff0f1; }

.bmb-delete-form {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 10px;
  padding: 12px 13px;
  border: 1px solid #efd4d7;
  border-radius: 10px;
  background: #fff8f8;
}
.bmb-delete-form strong,
.bmb-delete-form span { display: block; }
.bmb-delete-form strong { color: #7d2931; font-size: 12px; }
.bmb-delete-form span { margin-top: 2px; color: #8c6d72; font-size: 11px; }

.bmb-legacy-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 16px;
  border: 1px solid #eadfca;
  border-radius: 13px;
  background: #fffcf6;
}
.bmb-legacy-label {
  display: inline-block;
  margin-bottom: 4px;
  color: #956814;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.bmb-legacy-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.bmb-legacy-count { color: #856e4c; font-size: 12px; font-weight: 800; }

.bmb-empty {
  padding: 44px 20px;
  border: 1px dashed #cbd8e5;
  border-radius: 14px;
  background: rgba(255,255,255,.65);
  text-align: center;
}
.bmb-empty i { color: #8ba0b6; font-size: 27px; }
.bmb-empty h3 { margin: 9px 0 4px; color: #31485f; }
.bmb-empty p { margin: 0; color: #7a8b9d; font-size: 13px; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }

@media (max-width: 1050px) {
  .bmb-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bmb-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bmb-option-grid--days { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .bmb-page { padding: 20px 14px 40px; }
  .bmb-hero,
  .bmb-toolbar,
  .bmb-section-heading,
  .bmb-series-topline,
  .bmb-legacy-card,
  .bmb-delete-form { align-items: stretch; flex-direction: column; }
  .bmb-primary-link { align-self: flex-start; }
  .bmb-stats { grid-template-columns: 1fr; }
  .bmb-toolbar { padding: 10px; }
  .bmb-search { min-width: 0; width: 100%; }
  .bmb-series-title-wrap { flex-direction: column; }
  .bmb-slot-total { text-align: left; }
  .bmb-form-grid { grid-template-columns: 1fr; }
  .bmb-option-grid--days { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bmb-form-actions { justify-content: stretch; }
  .bmb-form-actions .bmb-btn,
  .bmb-delete-form .bmb-btn { width: 100%; }
  .bmb-legacy-actions { justify-content: flex-start; }
}

@media (max-width: 480px) {
  .bmb-summary-grid { grid-template-columns: 1fr; }
  .bmb-tabs { width: 100%; }
  .bmb-tabs a { flex: 1; text-align: center; }
  .bmb-search { flex-wrap: wrap; }
  .bmb-search input { min-width: 170px; }
}

/* ---------- List / calendar switch ---------- */
.bmb-toolbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.bmb-view-toggle {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border: 1px solid #dce5ef;
  border-radius: 10px;
  background: #f4f7fa;
}

.bmb-view-btn {
  min-height: 34px;
  padding: 0 11px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #68778a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.bmb-view-btn:hover { color: #0b3f70; background: #fff; }
.bmb-view-btn.active {
  color: #fff;
  background: #003b70;
  box-shadow: 0 4px 12px rgba(0, 59, 112, .16);
}

#bmbListPanel[hidden],
.bmb-calendar-panel[hidden] { display: none !important; }

/* ---------- Series card actions ---------- */
.bmb-card-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 15px;
  padding-top: 13px;
  border-top: 1px solid #e6ebf1;
}

.bmb-card-actions form { margin: 0; }
.bmb-btn--review { color: #fff; background: #b46512; }
.bmb-btn:disabled { opacity: .56; cursor: not-allowed; transform: none; box-shadow: none; }

/* ---------- Bulk bookings month calendar ---------- */
.bmb-calendar-panel {
  margin-top: 26px;
  overflow: hidden;
  border: 1px solid #dce5ef;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 18px rgba(21, 36, 58, .045);
}

.bmb-calendar-viewbar {
  min-height: 54px;
  padding: 0 18px;
  border-bottom: 1px solid #e7ecf2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.bmb-calendar-viewbar > strong { color: #20344b; font-size: 13px; font-weight: 750; }
.bmb-calendar-viewbar-actions { align-self: stretch; display: flex; align-items: stretch; gap: 12px; }
.bmb-calendar-text-action {
  position: relative;
  padding: 0 5px;
  border: 0;
  background: transparent;
  color: #0b3f70;
  display: inline-flex;
  align-items: center;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}
.bmb-calendar-text-action::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: transparent;
}
.bmb-calendar-text-action:hover,
.bmb-calendar-text-action:focus-visible { color: #e16f00; }
.bmb-calendar-add-action::after { background: #e16f00; }

.bmb-calendar-toolbar {
  padding: 24px 18px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.bmb-calendar-toolbar h2 {
  margin: 0;
  color: #1b2d43;
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 850;
  line-height: 1.15;
  letter-spacing: -.025em;
}
.bmb-calendar-nav { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.bmb-calendar-today,
.bmb-calendar-arrow-group button {
  min-height: 36px;
  border: 0;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 750;
}
.bmb-calendar-today { padding: 0 12px; background: #748191; color: #fff; font-size: 12px; text-transform: lowercase; }
.bmb-calendar-today:hover { background: #657181; }
.bmb-calendar-arrow-group { display: inline-flex; overflow: hidden; border-radius: 5px; }
.bmb-calendar-arrow-group button { width: 40px; border-radius: 0; background: #173a5e; color: #fff; font-size: 13px; }
.bmb-calendar-arrow-group button + button { border-left: 1px solid rgba(255,255,255,.16); }
.bmb-calendar-arrow-group button:hover { background: #0c2f52; }
.bmb-calendar-hint {
  margin: 0 18px 10px;
  color: #7a8899;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
}
.bmb-calendar-hint i { color: #e16f00; }
.bmb-calendar-scroll { padding: 0 18px 18px; overflow-x: auto; }

#bmbBulkCalendar {
  --fc-border-color: #dfe5eb;
  --fc-page-bg-color: #fff;
  --fc-neutral-bg-color: #fff;
  --fc-today-bg-color: #fff9db;
  min-width: 760px;
  color: #172033;
}
#bmbBulkCalendar .fc-scrollgrid { border-color: #d9e0e6; }
#bmbBulkCalendar .fc-col-header-cell { background: #fff; }
#bmbBulkCalendar .fc-col-header-cell-cushion {
  padding: 7px 5px;
  color: #00658f;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}
#bmbBulkCalendar .fc-daygrid-day-number {
  padding: 7px 7px 4px;
  color: #00658f;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
}
#bmbBulkCalendar .fc-day-other .fc-daygrid-day-number { color: #9aa7b4; }
#bmbBulkCalendar .fc-daygrid-day-frame { min-height: 112px; }
#bmbBulkCalendar .fc-day-today { background: #fff9db !important; }
#bmbBulkCalendar .fc-daygrid-event {
  margin: 2px 4px;
  padding: 2px 4px;
  border-radius: 4px;
  border-width: 1px;
  cursor: pointer;
  font-size: 11px;
}
#bmbBulkCalendar .bmb-calendar-event-legacy { opacity: .9; }
#bmbBulkCalendar .bmb-calendar-event-line {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 4px;
  overflow: hidden;
  white-space: nowrap;
}
#bmbBulkCalendar .bmb-calendar-event-dot {
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(255,255,255,.7);
}
#bmbBulkCalendar .bmb-calendar-event-time { flex: 0 0 auto; font-weight: 800; }
#bmbBulkCalendar .bmb-calendar-event-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-weight: 700; }
#bmbBulkCalendar .bmb-calendar-event-lanes { flex: 0 0 auto; opacity: .82; font-size: 10px; }
#bmbBulkCalendar.has-feed-error::before {
  content: 'The bulk booking calendar feed could not be loaded. Try refreshing the page.';
  display: block;
  margin-bottom: 10px;
  padding: 10px 12px;
  border: 1px solid #efbac1;
  border-radius: 8px;
  background: #fff0f2;
  color: #8b2430;
  font-size: 12px;
  font-weight: 700;
}
.bmb-calendar-unavailable {
  display: grid;
  justify-items: center;
  gap: 5px;
  padding: 42px 20px;
  color: #67788c;
  text-align: center;
}

/* ---------- Edit whole series modal ---------- */
body.bmb-modal-open { overflow: hidden; }
.bmb-modal {
  position: fixed;
  z-index: 1200;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(6, 22, 39, .58);
  backdrop-filter: blur(2px);
}
.bmb-modal.is-open { display: flex; }
.bmb-modal-dialog {
  width: min(980px, 100%);
  max-height: min(92vh, 980px);
  overflow: auto;
  border-radius: 18px;
  background: #f6f9fc;
  box-shadow: 0 28px 90px rgba(5, 20, 36, .32);
}
.bmb-modal-header {
  position: sticky;
  z-index: 3;
  top: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  border-bottom: 1px solid #dfe7ef;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(8px);
}
.bmb-modal-heading { display: flex; align-items: flex-start; gap: 13px; min-width: 0; }
.bmb-modal-icon {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e7f0f7;
  color: #07558f;
  font-size: 18px;
}
.bmb-modal-eyebrow {
  display: block;
  color: #6f8294;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.bmb-modal-heading h2 { margin: 3px 0 2px; color: #102d4b; font-size: 23px; }
.bmb-modal-heading p { margin: 0; color: #728297; font-size: 12px; }
.bmb-modal-close {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #edf1f5;
  color: #526579;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.bmb-modal-form { padding: 18px 22px 0; }
.bmb-edit-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin-bottom: 14px;
  border: 1px solid #dce5ee;
  border-radius: 12px;
  background: #dce5ee;
}
.bmb-edit-overview > div { padding: 12px 14px; background: #fff; }
.bmb-edit-overview span { display: block; color: #738396; font-size: 10px; font-weight: 700; }
.bmb-edit-overview strong { display: block; margin-top: 2px; color: #123b62; font-size: 20px; }

.bmb-edit-section {
  margin-top: 12px;
  padding: 15px;
  border: 1px solid #dce5ef;
  border-radius: 13px;
  background: #fff;
}
.bmb-edit-section-heading {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}
.bmb-edit-section-icon {
  flex: 0 0 auto;
  width: 31px;
  height: 31px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #edf4fa;
  color: #0b5e98;
  font-size: 13px;
}
.bmb-edit-section-heading h3 { margin: 0; color: #203a55; font-size: 14px; }
.bmb-edit-section-heading p { margin: 2px 0 0; color: #7c8a99; font-size: 11px; }
.bmb-modal-form .bmb-options { margin-top: 0; }
.bmb-modal-form .bmb-option-grid label:has(input:checked) {
  border-color: #79a9ca;
  background: #eff7fc;
  color: #174e78;
}

.bmb-edit-error {
  margin-top: 13px;
  padding: 11px 13px;
  border: 1px solid #efb9bf;
  border-radius: 9px;
  background: #fff1f2;
  color: #8e2732;
  font-size: 12px;
  font-weight: 700;
}
.bmb-edit-availability {
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid #d7e3ee;
  border-radius: 13px;
  background: #fff;
}
.bmb-edit-availability.all-clear { border-color: #b8dfc7; }
.bmb-edit-availability.has-conflicts { border-color: #efd08c; }
.bmb-edit-availability-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 15px 11px;
  border-bottom: 1px solid #e4eaf0;
  background: #fbfcfd;
}
.bmb-edit-availability-head span {
  display: block;
  margin-bottom: 3px;
  color: #6b7e91;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.bmb-edit-availability-head h3 { margin: 0; color: #173654; font-size: 16px; }
.bmb-edit-availability-head > strong {
  flex: 0 0 auto;
  padding: 6px 9px;
  border-radius: 999px;
  background: #e8f1f8;
  color: #24567e;
  font-size: 11px;
}
.bmb-edit-availability.all-clear .bmb-edit-availability-head > strong { background: #e6f6ed; color: #17603b; }
.bmb-edit-availability.has-conflicts .bmb-edit-availability-head > strong { background: #fff0c7; color: #80510b; }
.bmb-edit-availability-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: #e5ebf1;
}
.bmb-edit-availability-stats > div { padding: 11px 13px; background: #fff; }
.bmb-edit-availability-stats span,
.bmb-edit-availability-stats small { display: block; color: #728297; font-size: 10px; }
.bmb-edit-availability-stats strong { display: block; margin: 2px 0; color: #173654; font-size: 21px; }
.bmb-edit-conflict-wrap { padding: 13px 14px 14px; }
.bmb-edit-conflict-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.bmb-edit-conflict-heading strong { color: #6c480e; font-size: 12px; }
.bmb-edit-conflict-heading span { color: #8d7858; font-size: 10px; }
.bmb-edit-conflict-list { display: grid; gap: 7px; max-height: 250px; overflow: auto; }
.bmb-edit-conflict-item {
  display: grid;
  grid-template-columns: 1fr .65fr 1.35fr;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid #ead9b3;
  border-radius: 8px;
  background: #fffdf7;
}
.bmb-edit-conflict-item span,
.bmb-edit-conflict-item small { display: block; color: #8b7b63; font-size: 10px; }
.bmb-edit-conflict-item strong { display: block; margin-top: 2px; color: #3e4c5b; font-size: 11px; }

.bmb-modal-actions {
  position: sticky;
  z-index: 2;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin: 16px -22px 0;
  padding: 13px 22px;
  border-top: 1px solid #dfe7ef;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(8px);
}

@media (max-width: 900px) {
  .bmb-toolbar { align-items: stretch; flex-direction: column; }
  .bmb-toolbar-left { justify-content: space-between; }
  .bmb-search { width: 100%; max-width: none; }
  .bmb-modal { padding: 10px; }
  .bmb-modal-dialog { max-height: 96vh; }
  .bmb-edit-conflict-item { grid-template-columns: 1fr; gap: 5px; }
}

@media (max-width: 760px) {
  .bmb-toolbar-left { align-items: stretch; flex-direction: column; }
  .bmb-view-toggle { width: 100%; }
  .bmb-view-btn { flex: 1; }
  .bmb-card-actions { align-items: stretch; flex-direction: column; }
  .bmb-card-actions .bmb-btn,
  .bmb-card-actions form { width: 100%; }
  .bmb-card-actions form .bmb-btn { width: 100%; }
  .bmb-calendar-viewbar,
  .bmb-calendar-toolbar { align-items: flex-start; flex-direction: column; }
  .bmb-calendar-viewbar-actions { align-self: auto; min-height: 36px; }
  .bmb-calendar-toolbar { padding-top: 18px; }
  .bmb-calendar-nav { align-self: flex-end; }
  .bmb-edit-overview,
  .bmb-edit-availability-stats { grid-template-columns: 1fr; }
  .bmb-modal-header { padding: 16px; }
  .bmb-modal-form { padding: 14px 14px 0; }
  .bmb-modal-actions { margin-right: -14px; margin-left: -14px; padding: 12px 14px; flex-wrap: wrap; }
  .bmb-modal-actions .bmb-btn { flex: 1 1 150px; }
}

@media (max-width: 520px) {
  .bmb-calendar-viewbar { padding: 10px 14px; }
  .bmb-calendar-toolbar { padding: 16px 14px 12px; }
  .bmb-calendar-hint { margin-right: 14px; margin-left: 14px; align-items: flex-start; }
  .bmb-calendar-scroll { padding: 0 14px 14px; }
  .bmb-modal-heading p { display: none; }
  .bmb-modal-heading h2 { font-size: 19px; }
  .bmb-modal-icon { width: 36px; height: 36px; }
}

/* ---------- 2026-09-15 v3: keep the original list layout, improve inline editing ---------- */
.bmb-hero-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  flex-wrap: wrap;
}

.bmb-secondary-link {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid #cbd9e6;
  border-radius: 10px;
  background: #fff;
  color: #164c73;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
  box-shadow: 0 5px 18px rgba(24, 51, 82, .045);
}
.bmb-secondary-link:hover { background: #f4f8fb; border-color: #aebfd0; }

/* Restore the simple tabs-left / search-right toolbar used in the first version. */
.bmb-toolbar > .bmb-tabs { flex: 0 0 auto; }

.bmb-series-card--focus {
  border-color: #69a5cf;
  box-shadow: 0 0 0 3px rgba(7, 85, 143, .11), 0 12px 34px rgba(32, 54, 80, .08);
}

.bmb-editor {
  margin-top: 16px;
  border-top: 1px solid #e3e9f0;
}

.bmb-editor > summary {
  width: fit-content;
  min-height: 38px;
  margin-top: 11px;
  padding: 0 11px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #07558f;
  background: #eef5fa;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}
.bmb-editor > summary::-webkit-details-marker { display: none; }
.bmb-editor > summary:hover { background: #e4f0f8; }
.bmb-editor[open] > summary { margin-bottom: 14px; }

.bmb-edit-form {
  padding: 20px;
  border: 1px solid #d6e1ec;
  border-radius: 14px;
  background: #f8fafc;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}

.bmb-edit-form-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e2e8ef;
}
.bmb-edit-form-heading h4 { margin: 3px 0 3px; color: #183954; font-size: 19px; }
.bmb-edit-form-heading p { margin: 0; color: #718196; font-size: 12px; line-height: 1.45; }

.bmb-edit-current-counts {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(90px, 1fr));
  overflow: hidden;
  border: 1px solid #dce5ee;
  border-radius: 10px;
  background: #dce5ee;
}
.bmb-edit-current-counts > span { min-width: 92px; padding: 9px 11px; background: #fff; }
.bmb-edit-current-counts small { display: block; color: #78889a; font-size: 9px; font-weight: 750; text-transform: uppercase; letter-spacing: .04em; }
.bmb-edit-current-counts strong { display: block; margin-top: 2px; color: #123b62; font-size: 18px; line-height: 1.1; }

.bmb-form-grid--editor {
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 14px;
}
.bmb-edit-form .bmb-field > span { color: #405a73; font-size: 12px; }
.bmb-edit-form .bmb-field input { height: 43px; border-color: #c8d5e2; }

.bmb-edit-options-row {
  display: grid;
  gap: 13px;
  margin-top: 16px;
}
.bmb-edit-options-row .bmb-options {
  margin: 0;
  padding: 14px;
  border: 1px solid #dbe4ee;
  border-radius: 11px;
  background: #fff;
}
.bmb-edit-options-row .bmb-options legend {
  padding: 0 4px;
  color: #354e66;
  font-size: 12px;
  font-weight: 800;
}
.bmb-edit-options-row .bmb-option-grid--days { grid-template-columns: repeat(7, minmax(72px, 1fr)); }
.bmb-edit-options-row .bmb-option-grid--lanes { grid-template-columns: repeat(6, minmax(105px, 1fr)); }
.bmb-edit-options-row .bmb-option-grid label {
  min-height: 40px;
  justify-content: flex-start;
  border-color: #d6e0e9;
}
.bmb-edit-options-row .bmb-option-grid label:has(input:checked) {
  border-color: #79a9ca;
  background: #eff7fc;
  color: #174e78;
}

.bmb-edit-error {
  margin-top: 14px;
  padding: 11px 13px;
  border: 1px solid #efb9bf;
  border-radius: 9px;
  background: #fff1f2;
  color: #8e2732;
  font-size: 12px;
  font-weight: 700;
}

.bmb-edit-availability {
  margin-top: 16px;
  overflow: hidden;
  border: 1px solid #d7e3ee;
  border-radius: 12px;
  background: #fff;
}
.bmb-edit-availability.all-clear { border-color: #afdabe; }
.bmb-edit-availability.has-conflicts { border-color: #e6c574; }

.bmb-edit-availability-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 16px 12px;
  border-bottom: 1px solid #e4eaf0;
  background: #fbfcfd;
}
.bmb-edit-availability-head span {
  display: block;
  margin-bottom: 3px;
  color: #6b7e91;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.bmb-edit-availability-head h3 { margin: 0; color: #173654; font-size: 17px; }
.bmb-edit-availability-head > strong {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  background: #e8f1f8;
  color: #24567e;
  font-size: 11px;
}
.bmb-edit-availability.all-clear .bmb-edit-availability-head > strong { color: #17603b; background: #e6f6ed; }
.bmb-edit-availability.has-conflicts .bmb-edit-availability-head > strong { color: #80510b; background: #fff0c7; }

.bmb-edit-availability-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: #e3eaf1;
}
.bmb-edit-availability-stats > div { padding: 12px 15px; background: #fff; }
.bmb-edit-availability-stats span,
.bmb-edit-availability-stats small { display: block; color: #728297; font-size: 10px; }
.bmb-edit-availability-stats strong { display: block; margin: 2px 0; color: #173654; font-size: 22px; }

.bmb-edit-conflict-wrap {
  padding: 15px;
  border-top: 1px solid #efe4c8;
  background: #fffaf0;
}
.bmb-edit-conflict-heading { margin-bottom: 10px; }
.bmb-edit-conflict-heading strong { display: block; color: #744a08; font-size: 13px; }
.bmb-edit-conflict-heading strong i { margin-right: 5px; color: #bd7a0b; }
.bmb-edit-conflict-heading span { display: block; margin-top: 2px; color: #8d7858; font-size: 10px; }
.bmb-edit-conflict-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  max-height: 380px;
  overflow: auto;
  padding-right: 3px;
}
.bmb-edit-conflict-item {
  min-width: 0;
  padding: 12px;
  border: 1px solid #ead9b3;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 7px rgba(105, 76, 25, .04);
}
.bmb-conflict-date-block {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}
.bmb-conflict-date-icon {
  flex: 0 0 auto;
  width: 31px;
  height: 31px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #a76808;
  background: #fff3d7;
}
.bmb-conflict-date-block strong,
.bmb-conflict-date-block span { display: block; }
.bmb-conflict-date-block strong { color: #33495e; font-size: 12px; }
.bmb-conflict-date-block div > span { margin-top: 2px; color: #7f6a4b; font-size: 10px; }
.bmb-conflict-lane-pill {
  width: fit-content;
  margin: 9px 0;
  padding: 4px 8px;
  border-radius: 999px;
  color: #4d5d6b;
  background: #eef2f5;
  font-size: 10px;
  font-weight: 800;
}
.bmb-conflict-lane-pill i { margin-right: 5px; color: #a56c14; }
.bmb-conflict-existing-block { padding-top: 8px; border-top: 1px solid #ece6d8; }
.bmb-conflict-label {
  display: block;
  margin-bottom: 5px;
  color: #8e6e3c;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.bmb-conflict-booking {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 3px 0;
}
.bmb-conflict-booking strong { min-width: 0; color: #37495b; font-size: 11px; overflow-wrap: anywhere; }
.bmb-conflict-booking span { flex: 0 0 auto; color: #7f6f59; font-size: 10px; }
.bmb-conflict-more { display: block; margin-top: 3px; color: #8b744f; font-size: 10px; font-weight: 750; }

.bmb-edit-form .bmb-edit-note { margin-top: 14px; }
.bmb-edit-form .bmb-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 14px;
}
.bmb-edit-form .bmb-form-actions .bmb-btn { min-height: 40px; }
.bmb-btn--review { color: #fff; background: #b46512; }
.bmb-btn:disabled { opacity: .56; cursor: not-allowed; transform: none; box-shadow: none; }

@media (max-width: 1180px) {
  .bmb-form-grid--editor { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bmb-edit-options-row .bmb-option-grid--days { grid-template-columns: repeat(4, minmax(85px, 1fr)); }
  .bmb-edit-options-row .bmb-option-grid--lanes { grid-template-columns: repeat(4, minmax(105px, 1fr)); }
}

@media (max-width: 820px) {
  .bmb-hero-actions { justify-content: flex-start; }
  .bmb-edit-form-heading { flex-direction: column; }
  .bmb-edit-current-counts { width: 100%; }
  .bmb-edit-current-counts > span { min-width: 0; }
  .bmb-edit-conflict-list { grid-template-columns: 1fr; }
  .bmb-edit-options-row .bmb-option-grid--lanes { grid-template-columns: repeat(3, minmax(90px, 1fr)); }
}

@media (max-width: 620px) {
  .bmb-hero-actions { width: 100%; }
  .bmb-secondary-link,
  .bmb-hero-actions .bmb-primary-link { flex: 1 1 190px; }
  .bmb-edit-form { padding: 14px; }
  .bmb-form-grid--editor { grid-template-columns: 1fr; }
  .bmb-edit-options-row .bmb-option-grid--days,
  .bmb-edit-options-row .bmb-option-grid--lanes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bmb-edit-availability-head { flex-direction: column; }
  .bmb-edit-availability-stats { grid-template-columns: 1fr; }
  .bmb-edit-form .bmb-form-actions { flex-direction: column; }
  .bmb-edit-form .bmb-form-actions .bmb-btn { width: 100%; }
}


/* ---------- 2026-09-15 v4: full-width inline editor + readable conflicts ---------- */
/*
 * style.css contains old admin-wide form/input/button defaults (including
 * form { max-width: 400px }).  Reset those defaults inside this page so the
 * bulk-series editor can use the width of its series card.
 */
body.manage-bulk-bookings .bmb-page form {
  width: auto;
  max-width: none;
  margin: 0;
  box-shadow: none;
}

body.manage-bulk-bookings .bmb-page input,
body.manage-bulk-bookings .bmb-page select,
body.manage-bulk-bookings .bmb-page button {
  margin: 0;
}

body.manage-bulk-bookings .bmb-page input[type="checkbox"],
body.manage-bulk-bookings .bmb-page input[type="radio"] {
  width: auto;
  padding: 0;
}

body.manage-bulk-bookings .bmb-page button,
body.manage-bulk-bookings .bmb-page .bmb-btn,
body.manage-bulk-bookings .bmb-page .bmb-secondary-link,
body.manage-bulk-bookings .bmb-page .bmb-calendar-text-action,
body.manage-bulk-bookings .bmb-page .bmb-calendar-today,
body.manage-bulk-bookings .bmb-page .bmb-calendar-arrow-group button {
  width: auto;
}

.bmb-page,
#bmbListPanel,
.bmb-section,
.bmb-series-list,
.bmb-series-card,
.bmb-editor {
  min-width: 0;
}

.bmb-editor,
.bmb-edit-form,
.bmb-delete-form {
  width: 100%;
  max-width: none;
}

.bmb-edit-form {
  box-sizing: border-box;
  container-type: inline-size;
}

/* Use the editor's real width, not just the viewport width. */
.bmb-form-grid--editor {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.bmb-edit-form-heading {
  flex-wrap: wrap;
}

.bmb-edit-form-heading > div:first-child {
  flex: 1 1 250px;
  min-width: 0;
}

.bmb-edit-current-counts {
  flex: 0 1 auto;
  max-width: 100%;
}

.bmb-edit-options-row .bmb-option-grid--days {
  grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
}

.bmb-edit-options-row .bmb-option-grid--lanes {
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
}

/* Conflict review: one clear card per requested slot, with responsive columns. */
.bmb-edit-conflict-wrap {
  padding: 16px;
  background: #fffbf2;
}

.bmb-edit-conflict-heading {
  margin-bottom: 12px;
}

.bmb-edit-conflict-heading strong {
  font-size: 13px;
}

.bmb-edit-conflict-heading span {
  margin-top: 3px;
  font-size: 11px;
  line-height: 1.4;
}

.bmb-edit-conflict-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  max-height: 430px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
}

.bmb-edit-conflict-item {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  align-items: stretch;
  gap: 10px;
  min-width: 0;
  padding: 11px;
  border: 1px solid #e7d3a5;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(105, 76, 25, .05);
}

.bmb-conflict-date-block,
.bmb-conflict-lane-block,
.bmb-conflict-existing-block {
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid #ece6d8;
  border-radius: 9px;
  background: #fbfcfd;
}

.bmb-conflict-date-block {
  align-items: flex-start;
  background: #fffaf0;
  border-color: #f0dfbb;
}

.bmb-conflict-date-icon {
  width: 34px;
  height: 34px;
  margin-top: 1px;
}

.bmb-conflict-date-copy {
  min-width: 0;
}

.bmb-conflict-meta-label,
.bmb-conflict-label {
  display: block;
  margin: 0 0 4px;
  color: #8e6e3c;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .07em;
  line-height: 1.2;
  text-transform: uppercase;
}

.bmb-conflict-date-copy strong {
  display: block;
  color: #2f455a;
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: break-word;
  word-break: normal;
}

.bmb-conflict-requested-time {
  display: block;
  margin-top: 3px;
  color: #755e3c;
  font-size: 11px;
  font-weight: 700;
}

.bmb-conflict-lane-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bmb-conflict-lane-block strong {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #33495e;
  font-size: 13px;
  line-height: 1.3;
}

.bmb-conflict-lane-block strong i {
  color: #a56c14;
}

.bmb-conflict-existing-block {
  padding-top: 10px;
  border-top: 1px solid #ece6d8;
  background: #fff;
}

.bmb-conflict-booking {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 5px 0;
}

.bmb-conflict-booking + .bmb-conflict-booking {
  border-top: 1px dashed #ece6d8;
}

.bmb-conflict-booking strong {
  min-width: 0;
  color: #37495b;
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: break-word;
  word-break: normal;
}

.bmb-conflict-booking span {
  flex: none;
  padding: 3px 6px;
  border-radius: 999px;
  background: #f4efe5;
  color: #725e40;
  font-size: 10px;
  font-weight: 750;
  white-space: nowrap;
}

.bmb-conflict-more {
  display: inline-block;
  margin-top: 5px;
  color: #7d6847;
  font-size: 10px;
  font-weight: 800;
}

/* Container queries keep the editor tidy even if it sits in a narrow admin column. */
@container (max-width: 720px) {
  .bmb-edit-current-counts {
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .bmb-edit-conflict-item {
    grid-template-columns: 1fr;
  }
}

@container (max-width: 520px) {
  .bmb-form-grid--editor {
    grid-template-columns: 1fr;
  }

  .bmb-edit-current-counts {
    grid-template-columns: 1fr;
  }

  .bmb-edit-options-row .bmb-option-grid--days,
  .bmb-edit-options-row .bmb-option-grid--lanes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bmb-edit-availability-head {
    flex-direction: column;
  }

  .bmb-edit-availability-stats {
    grid-template-columns: 1fr;
  }

  .bmb-conflict-booking {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .bmb-conflict-booking span {
    width: fit-content;
  }
}
