:root {
  --mbt-ink: #15243a;
  --mbt-muted: #6c7a8f;
  --mbt-line: #dce4ed;
  --mbt-soft: #f5f8fc;
  --mbt-card: #ffffff;
  --mbt-navy: #003b70;
  --mbt-navy-dark: #00264d;
  --mbt-orange: #ff8400;
  --mbt-danger: #b42318;
  --mbt-success: #087a52;
  --mbt-brand: radial-gradient(circle at top right, rgba(255, 132, 0, 0.14), transparent 32%), linear-gradient(135deg, rgba(0, 38, 77, 0.96), rgba(0, 59, 112, 0.96));
}

.manage-booking-types-v2 {
  min-height: 100vh;
  background: #f4f7fb;
  color: var(--mbt-ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.manage-booking-types-v2 form,
.mbt-modal form {
  max-width: none;
  margin: 0;
  padding: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.manage-booking-types-v2 button,
.manage-booking-types-v2 input,
.manage-booking-types-v2 select,
.mbt-modal button,
.mbt-modal input,
.mbt-modal select {
  font: inherit;
  margin: 0;
}

.manage-booking-types-v2 button,
.mbt-modal button { width: auto; }

.mbt-page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.mbt-page-header h1 {
  margin: 2px 0 5px;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.mbt-page-header p,
.mbt-modal-head p { color: var(--mbt-muted); margin: 0; line-height: 1.45; }

.mbt-eyebrow {
  color: var(--mbt-navy);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.mbt-header-actions,
.mbt-card-actions,
.mbt-modal-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.mbt-btn,
.mbt-action-btn,
.mbt-icon-btn {
  appearance: none;
  border: 0;
  text-decoration: none !important;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, background .15s ease;
}

.mbt-btn {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 750;
  white-space: nowrap;
}

.mbt-btn-primary {
  color: #fff !important;
  background: var(--mbt-brand);
  box-shadow: 0 7px 20px rgba(0, 59, 112, .17);
}

.mbt-btn-primary:hover { transform: translateY(-1px); filter: brightness(1.05); }

.mbt-btn-secondary {
  color: var(--mbt-navy) !important;
  background: #fff;
  border: 1px solid var(--mbt-line);
}

.mbt-btn-secondary:hover,
.mbt-btn-quiet:hover { border-color: #9bb8d4; background: #f8fbff; }

.mbt-btn-quiet {
  color: var(--mbt-muted);
  background: transparent;
  border: 1px solid transparent;
}

.mbt-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  margin-bottom: 14px;
  font-weight: 650;
  border: 1px solid;
}

.mbt-alert-success { color: #065f46; background: #ecfdf3; border-color: #b7ead2; }
.mbt-alert-error { color: #8a1c13; background: #fff1f0; border-color: #f2c3bf; }

.mbt-rule-note {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  border: 1px solid #cbdced;
  background: #f7fbff;
  border-radius: 12px;
  padding: 13px 15px;
  margin-bottom: 14px;
  color: var(--mbt-navy-dark);
}

.mbt-rule-note > i { margin-top: 2px; color: var(--mbt-orange); }
.mbt-rule-note div { display: grid; gap: 2px; }
.mbt-rule-note strong { font-size: 13px; }
.mbt-rule-note span { color: #52677d; font-size: 13px; line-height: 1.45; }
.mbt-rule-note-compact { margin: 2px 0 0; }

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

.mbt-stat {
  background: #fff;
  border: 1px solid var(--mbt-line);
  border-radius: 12px;
  padding: 13px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 3px 12px rgba(21, 36, 58, .035);
}

.mbt-stat span { color: var(--mbt-muted); font-size: 13px; font-weight: 650; }
.mbt-stat strong { color: var(--mbt-navy); font-size: 22px; }

.mbt-controls {
  background: #fff;
  border: 1px solid var(--mbt-line);
  border-radius: 13px;
  padding: 12px;
  margin-bottom: 12px;
  box-shadow: 0 4px 15px rgba(21, 36, 58, .04);
}

.mbt-tabs {
  display: flex;
  gap: 4px;
  padding-bottom: 11px;
  margin-bottom: 11px;
  border-bottom: 1px solid #e9eef4;
  overflow-x: auto;
}

.mbt-tab {
  border: 0;
  background: transparent;
  color: var(--mbt-muted);
  padding: 8px 10px;
  border-radius: 8px;
  font-weight: 750;
  cursor: pointer;
  white-space: nowrap;
}

.mbt-tab span {
  display: inline-flex;
  min-width: 21px;
  height: 21px;
  margin-left: 4px;
  align-items: center;
  justify-content: center;
  border-radius: 99px;
  background: #edf2f7;
  font-size: 11px;
}

.mbt-tab.active { color: #fff; background: var(--mbt-brand); }
.mbt-tab.active span { color: var(--mbt-navy); background: #fff; }

.mbt-filter-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(160px, .3fr) auto;
  gap: 8px;
  align-items: end;
}

.mbt-search { position: relative; display: block; }
.mbt-search i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #8b9aab; pointer-events: none; }

.mbt-search input,
.mbt-compact-field select,
.mbt-field input {
  width: 100%;
  border: 1px solid var(--mbt-line);
  background: #fff;
  color: var(--mbt-ink);
  border-radius: 9px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.mbt-search input { height: 42px; padding: 0 12px 0 36px; }
.mbt-compact-field { display: grid; gap: 5px; }
.mbt-compact-field > span { color: var(--mbt-muted); font-size: 11px; font-weight: 750; }
.mbt-compact-field select { height: 42px; padding: 0 10px; }

.mbt-search input:focus,
.mbt-compact-field select:focus,
.mbt-field input:focus { border-color: #5c95c9; box-shadow: 0 0 0 3px rgba(0, 59, 112, .09); }

.mbt-results-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 0 2px;
  margin: 0 0 9px;
  color: var(--mbt-muted);
  font-size: 12px;
}

.mbt-results-head strong { color: var(--mbt-ink); font-size: 13px; }

.mbt-list { display: grid; gap: 9px; }

.mbt-card {
  background: var(--mbt-card);
  border: 1px solid var(--mbt-line);
  border-radius: 13px;
  padding: 13px 14px;
  box-shadow: 0 4px 14px rgba(21, 36, 58, .04);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.mbt-card[hidden] { display: none !important; }

.mbt-card-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.mbt-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--mbt-brand);
  box-shadow: 0 6px 16px rgba(0, 59, 112, .14);
}

.mbt-card-copy { min-width: 0; }
.mbt-card-title-line { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.mbt-card h2 { margin: 0; color: var(--mbt-ink); font-size: 17px; letter-spacing: -.015em; }

.mbt-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 7px;
  border-radius: 99px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.mbt-status i { font-size: 6px; }
.mbt-status-active { background: #eaf8f2; color: #087a52; }
.mbt-status-inactive { background: #eef1f5; color: #647286; }

.mbt-card-meta {
  display: flex;
  align-items: center;
  gap: 13px;
  flex-wrap: wrap;
  color: var(--mbt-muted);
  font-size: 12px;
  margin-top: 6px;
}

.mbt-card-meta span { display: inline-flex; align-items: center; gap: 5px; }
.mbt-card-meta i { color: #7d9ab6; }

.mbt-card-actions { justify-content: flex-end; flex: 0 0 auto; }
.mbt-card-actions form { display: inline-flex; }

.mbt-action-btn,
.mbt-protected {
  min-height: 34px;
  padding: 0 10px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.mbt-action-btn { color: var(--mbt-navy); background: #f7faff; border: 1px solid #d9e5f0; }
.mbt-action-btn:hover { background: #eef6ff; border-color: #adc7df; }
.mbt-action-muted { color: #59697a; background: #f7f8fa; border-color: #e1e5ea; }
.mbt-action-positive { color: #087a52; background: #effaf6; border-color: #caebde; }
.mbt-action-danger { color: var(--mbt-danger); background: #fff6f5; border-color: #f1d0cd; }
.mbt-protected { color: #6b7788; background: #f5f7f9; border: 1px solid #e3e7eb; cursor: help; }

.mbt-empty {
  background: #fff;
  border: 1px dashed #c9d7e4;
  border-radius: 14px;
  text-align: center;
  padding: 38px 20px;
  color: var(--mbt-muted);
}

.mbt-empty[hidden] { display: none !important; }
.mbt-empty h2 { color: var(--mbt-ink); font-size: 18px; margin: 9px 0 5px; }
.mbt-empty p { margin: 0 0 15px; }
.mbt-empty-icon { margin: 0 auto; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: #eef5fb; color: var(--mbt-navy); }

.mbt-modal {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(8, 20, 34, .54);
  backdrop-filter: blur(3px);
}

.mbt-modal.open { display: flex; }
body.mbt-modal-open { overflow: hidden; }

.mbt-modal-dialog {
  width: min(620px, 100%);
  max-height: calc(100vh - 44px);
  overflow: auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(0, 28, 58, .28);
  padding: 20px;
}

.mbt-modal-head { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; margin-bottom: 18px; }
.mbt-modal-head h2 { margin: 3px 0 4px; font-size: 23px; }
.mbt-icon-btn { width: 36px; height: 36px; border-radius: 9px; color: #627286; background: #f2f5f8; display: grid; place-items: center; }
.mbt-icon-btn:hover { color: var(--mbt-navy); background: #e8f0f7; }

.mbt-form { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.mbt-field { display: grid; gap: 6px; }
.mbt-field > span { color: #34475d; font-size: 12px; font-weight: 750; }
.mbt-field input { min-height: 43px; padding: 0 11px; }
.mbt-span-2 { grid-column: 1 / -1; }

.mbt-switch-field {
  position: relative;
  min-height: 67px;
  border: 1px solid var(--mbt-line);
  border-radius: 10px;
  padding: 10px 58px 10px 11px;
  display: flex;
  align-items: center;
}

.mbt-switch-field > span:first-child { display: grid; gap: 2px; }
.mbt-switch-field strong { font-size: 12px; color: #34475d; }
.mbt-switch-field small { color: var(--mbt-muted); line-height: 1.35; }
.mbt-switch-field input { position: absolute; opacity: 0; pointer-events: none; }
.mbt-switch { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 38px; height: 22px; border-radius: 99px; background: #c8d1db; transition: background .15s ease; }
.mbt-switch::after { content: ''; position: absolute; width: 16px; height: 16px; border-radius: 50%; background: #fff; left: 3px; top: 3px; box-shadow: 0 1px 3px rgba(0,0,0,.18); transition: transform .15s ease; }
.mbt-switch-field input:checked + .mbt-switch { background: var(--mbt-navy); }
.mbt-switch-field input:checked + .mbt-switch::after { transform: translateX(16px); }
.mbt-switch-field input:focus-visible + .mbt-switch { outline: 3px solid rgba(0, 59, 112, .18); }

.mbt-modal-actions { justify-content: flex-end; padding-top: 4px; }

@media (max-width: 900px) {
  .mbt-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mbt-card { align-items: flex-start; flex-direction: column; }
  .mbt-card-actions { width: 100%; justify-content: flex-start; }
}

@media (max-width: 680px) {
  .mbt-page-header { align-items: stretch; flex-direction: column; }
  .mbt-header-actions { width: 100%; }
  .mbt-header-actions .mbt-btn { flex: 1 1 160px; }
  .mbt-filter-row { grid-template-columns: 1fr; }
  .mbt-results-head { align-items: flex-start; flex-direction: column; gap: 3px; }
  .mbt-card-meta { align-items: flex-start; flex-direction: column; gap: 4px; }
  .mbt-card-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mbt-card-actions form { width: 100%; }
  .mbt-card-actions .mbt-action-btn,
  .mbt-card-actions form .mbt-action-btn,
  .mbt-protected { width: 100%; }
  .mbt-form { grid-template-columns: 1fr; }
  .mbt-span-2 { grid-column: auto; }
  .mbt-modal-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .mbt-modal-actions .mbt-btn { width: 100%; }
}

@media (max-width: 430px) {
  .mbt-stats { grid-template-columns: 1fr 1fr; }
  .mbt-stat { padding: 11px; flex-direction: column; align-items: flex-start; }
  .mbt-card-actions { grid-template-columns: 1fr; }
}
