@import url("https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700&family=IBM+Plex+Mono:wght@400;500;600;700&family=Inter:wght@400;500;600;700;800&family=Karla:wght@400;500;600;700&family=Roboto+Mono:wght@400;600;700&display=swap");:root {
  --notif-pri-critical-bg: #fee2e2;
  --notif-pri-critical-fg: #b91c1c;
  --notif-pri-critical-border: #fca5a5;
  --notif-pri-high-bg: #fef3c7;
  --notif-pri-high-fg: #b45309;
  --notif-pri-high-border: #fcd34d;
  --notif-pri-normal-bg: #dbeafe;
  --notif-pri-normal-fg: #1d4ed8;
  --notif-pri-normal-border: #93c5fd;
  --notif-surface: #ffffff;
  --notif-surface-muted: #f8fafc;
  --notif-border: #e2e8f0;
  --notif-border-strong: #cbd5e1;
  --notif-text: #0f172a;
  --notif-text-secondary: #475569;
  --notif-text-muted: #64748b;
  --notif-bell-bg: #f8fafc;
  --notif-bell-fg: #334155;
  --notif-bell-border: #e2e8f0;
  --notif-shadow-dropdown: 0 16px 40px rgba(15, 23, 42, 0.16);
  --notif-shadow-chip: 0 10px 28px rgba(15, 23, 42, 0.14);
  --notif-row-hover: #f8fafc;
  --notif-btn-bg: #ffffff;
  --notif-btn-fg: #334155;
  --notif-input-bg: #ffffff;
}

.ebs-subheader-notifications {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 36px;
  min-height: 36px;
  overflow: visible;
}

.notif-bell-wrap {
  position: relative;
  width: 100%;
  min-width: 0;
}

.notif-bell-wrap--aggregate {
  width: auto;
  max-width: min(720px, 52vw);
}

.notif-bell-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
  width: 100%;
  height: 36px;
  min-height: 36px;
  overflow: visible;
}

.notif-inline-preview {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex: 1;
  min-width: 0;
  height: 36px;
  min-height: 36px;
  overflow: visible;
}

.notif-chip-slot {
  position: relative;
  flex: 0 0 min(340px, 38vw);
  width: min(340px, 38vw);
  height: 36px;
  min-height: 36px;
}

.notif-chip-slot > .notif-chip {
  position: absolute;
  right: 0;
  top: 0;
  width: 100%;
  max-width: 100%;
  margin: 0;
}

.notif-chip-slot:hover,
.notif-chip-slot:focus-within {
  z-index: 20;
}

.notif-chip-slot:hover > .notif-chip,
.notif-chip-slot:focus-within > .notif-chip {
  width: min(520px, 72vw);
  max-width: min(520px, 72vw);
  max-height: none;
  overflow: visible;
  z-index: 21;
  box-shadow: var(--notif-shadow-chip);
  border-color: var(--notif-border-strong);
  background: var(--notif-surface);
}

.notif-chip-slot:hover > .notif-chip.notif-chip--critical,
.notif-chip-slot:focus-within > .notif-chip.notif-chip--critical {
  background: var(--notif-pri-critical-bg-expanded, var(--notif-pri-critical-bg));
}

.notif-chip-slot:hover > .notif-chip.notif-chip--high,
.notif-chip-slot:focus-within > .notif-chip.notif-chip--high {
  background: var(--notif-pri-high-bg-expanded, var(--notif-pri-high-bg));
}

.notif-chip-slot:hover > .notif-chip.notif-chip--normal,
.notif-chip-slot:focus-within > .notif-chip.notif-chip--normal {
  background: var(--notif-pri-normal-bg-expanded, var(--notif-pri-normal-bg));
}

.notif-bell-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--notif-bell-border);
  border-radius: 8px;
  background: var(--notif-bell-bg);
  color: var(--notif-bell-fg);
  cursor: pointer;
}

.notif-bell-btn:hover {
  background: var(--notif-surface-muted);
  border-color: var(--notif-border-strong);
}

.notif-bell-btn svg {
  width: 18px;
  height: 18px;
}

.notif-bell-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #dc2626;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
}

.notif-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 30;
  width: min(380px, calc(100vw - 40px));
  max-height: 420px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--notif-border);
  border-radius: 10px;
  background: var(--notif-surface);
  box-shadow: var(--notif-shadow-dropdown);
  color: var(--notif-text);
}

.notif-dropdown[hidden] {
  display: none !important;
}

.notif-dropdown-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--notif-border);
  font-weight: 700;
  font-size: 12px;
  color: var(--notif-text);
}

.notif-dropdown-list {
  overflow: auto;
  padding: 6px;
}

.notif-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px;
  border-radius: 8px;
}

.notif-row:hover {
  background: var(--notif-row-hover);
}

.notif-row-body {
  flex: 1;
  min-width: 0;
}

.notif-row-msg {
  font-size: 12px;
  line-height: 1.35;
  word-break: break-word;
  color: var(--notif-text);
}

.notif-row-meta {
  margin-top: 3px;
  color: var(--notif-text-muted);
  font-size: 10px;
}

.notif-row-actions {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.notif-icon-btn {
  width: 26px;
  height: 26px;
  border: 1px solid var(--notif-border);
  border-radius: 6px;
  background: var(--notif-btn-bg);
  color: var(--notif-text-secondary);
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
}

.notif-icon-btn:hover {
  background: var(--notif-surface-muted);
  border-color: var(--notif-border-strong);
}

.notif-pri-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.notif-pri-badge--critical {
  background: var(--notif-pri-critical-bg);
  color: var(--notif-pri-critical-fg);
  border: 1px solid var(--notif-pri-critical-border);
}

.notif-pri-badge--high {
  background: var(--notif-pri-high-bg);
  color: var(--notif-pri-high-fg);
  border: 1px solid var(--notif-pri-high-border);
}

.notif-pri-badge--normal {
  background: var(--notif-pri-normal-bg);
  color: var(--notif-pri-normal-fg);
  border: 1px solid var(--notif-pri-normal-border);
}

.notif-chip {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--notif-border);
  border-radius: 999px;
  background: var(--notif-surface);
  min-height: 36px;
  box-sizing: border-box;
  overflow: hidden;
}

.notif-chip-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.notif-chip-scroll-wrap {
  position: relative;
  display: block;
  min-width: 0;
  overflow: hidden;
}

.notif-chip-scroll-measure {
  position: absolute;
  visibility: hidden;
  white-space: nowrap;
  pointer-events: none;
  inset: 0 auto auto 0;
}

.notif-chip-scroll-item {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notif-chip-scroll-track {
  display: inline-flex;
  width: max-content;
  white-space: nowrap;
  animation: notif-chip-marquee var(--notif-chip-marquee-duration, 12s) linear
    infinite;
}

.notif-chip-scroll-segment {
  display: inline-block;
  flex-shrink: 0;
  padding-right: 2.5rem;
}

.notif-chip-text {
  font-size: 11px;
  font-weight: 600;
  color: var(--notif-text);
}

.notif-chip-meta {
  font-size: 10px;
  color: var(--notif-text-muted);
}

.notif-chip-scroll-wrap.notif-chip-text .notif-chip-scroll-item,
.notif-chip-scroll-wrap.notif-chip-text .notif-chip-scroll-segment {
  font-size: 11px;
  font-weight: 600;
  color: var(--notif-text);
}

.notif-chip-scroll-wrap.notif-chip-meta .notif-chip-scroll-item,
.notif-chip-scroll-wrap.notif-chip-meta .notif-chip-scroll-segment {
  font-size: 10px;
  color: var(--notif-text-muted);
}

.notif-chip--hover-expand {
  position: relative;
}

.notif-chip-actions {
  display: none;
  flex-shrink: 0;
  align-items: center;
  gap: 4px;
  align-self: flex-start;
  margin-left: auto;
}

.notif-chip-slot:hover .notif-chip-actions,
.notif-chip-slot:focus-within .notif-chip-actions {
  display: inline-flex;
}

.notif-chip-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 1px solid var(--notif-border);
  border-radius: 6px;
  background: var(--notif-btn-bg);
  color: var(--notif-text-secondary);
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
}

.notif-chip-icon-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.notif-chip-icon-btn svg {
  width: 13px;
  height: 13px;
}

.notif-chip-icon-btn:hover:not(:disabled) {
  border-color: var(--notif-border-strong);
  background: var(--notif-surface-muted);
  color: #2563eb;
}

.notif-chip-icon-btn--danger:hover:not(:disabled) {
  border-color: #fecaca;
  background: #fef2f2;
  color: #b91c1c;
}

.notif-host--buyer .notif-captain-only {
  display: none !important;
}

.notif-chip--critical {
  border-color: var(--notif-pri-critical-border);
  background: var(--notif-pri-critical-bg);
}

.notif-chip--critical .notif-chip-text {
  color: var(--notif-pri-critical-fg);
}

.notif-chip--critical .notif-chip-scroll-wrap.notif-chip-text .notif-chip-scroll-item,
.notif-chip--critical
  .notif-chip-scroll-wrap.notif-chip-text
  .notif-chip-scroll-segment {
  color: var(--notif-pri-critical-fg);
}

.notif-chip--high {
  border-color: var(--notif-pri-high-border);
  background: var(--notif-pri-high-bg);
}

.notif-chip--high .notif-chip-text {
  color: var(--notif-pri-high-fg);
}

.notif-chip--high .notif-chip-scroll-wrap.notif-chip-text .notif-chip-scroll-item,
.notif-chip--high .notif-chip-scroll-wrap.notif-chip-text .notif-chip-scroll-segment {
  color: var(--notif-pri-high-fg);
}

.notif-chip--normal {
  border-color: var(--notif-pri-normal-border);
  background: var(--notif-pri-normal-bg);
}

.notif-chip--normal .notif-chip-text {
  color: var(--notif-pri-normal-fg);
}

.notif-chip--normal .notif-chip-scroll-wrap.notif-chip-text .notif-chip-scroll-item,
.notif-chip--normal
  .notif-chip-scroll-wrap.notif-chip-text
  .notif-chip-scroll-segment {
  color: var(--notif-pri-normal-fg);
}

@keyframes notif-chip-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .notif-chip-scroll-track {
    animation: none;
  }

  .notif-chip-scroll-wrap[data-marquee] .notif-chip-scroll-item,
  .notif-chip-scroll-wrap[data-marquee] .notif-chip-scroll-segment {
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

.notif-compose-select,
.notif-compose-input {
  border: 1px solid var(--notif-border-strong);
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 11px;
  background: var(--notif-input-bg);
  color: var(--notif-text);
  width: 100%;
  box-sizing: border-box;
}

.notif-compose-select option {
  background: var(--notif-surface);
  color: var(--notif-text);
}

.notif-compose-input {
  resize: vertical;
  min-height: 72px;
}

.notif-compose-input::placeholder {
  color: var(--notif-text-muted);
}

.notif-btn {
  border-radius: 6px;
  border: 1px solid var(--notif-border-strong);
  background: var(--notif-btn-bg);
  color: var(--notif-btn-fg);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  cursor: pointer;
}

.notif-btn:hover {
  background: var(--notif-surface-muted);
}

.notif-btn--primary {
  border-color: #2563eb;
  background: #2563eb;
  color: #ffffff;
}

.notif-btn--primary:hover {
  border-color: #1d4ed8;
  background: #1d4ed8;
}

.notif-btn--ghost {
  background: transparent;
}

.notif-btn--ghost:hover {
  background: var(--notif-surface-muted);
}

.notif-popover {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 40;
  width: min(340px, calc(100vw - 40px));
  border: 1px solid var(--notif-border);
  border-radius: 10px;
  background: var(--notif-surface);
  box-shadow: var(--notif-shadow-dropdown);
  padding: 10px;
  color: var(--notif-text);
}

.notif-popover-fields {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.notif-popover-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--notif-text);
}

.notif-popover-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.notif-empty {
  padding: 14px;
  text-align: center;
  color: var(--notif-text-muted);
  font-size: 12px;
}

.notif-tour-group + .notif-tour-group {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--notif-border);
}

.notif-tour-group-title {
  margin: 0 0 4px;
  padding: 0 8px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--notif-text-muted);
}

.ebs-my-shows-topbar-notifications {
  flex: 1;
  min-width: 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 0 12px;
}

/* My Shows topbar is always dark — bell/chips should match even in light theme */
.ebs-my-shows-topbar .notif-bell-btn {
  border-color: #334155;
  background: #243044;
  color: #cbd5e1;
}

.ebs-my-shows-topbar .notif-bell-btn:hover {
  background: #2d3a4f;
  border-color: #475569;
}

.ebs-my-shows-topbar .notif-chip {
  border-color: #334155;
  background: #1a2332;
}

.ebs-my-shows-topbar .notif-chip-text {
  color: #e2e8f0;
}

.ebs-my-shows-topbar .notif-chip-meta {
  color: #94a3b8;
}

/* ——— Dark theme ——— */
html[data-mainview-theme="dark"] {
  --notif-pri-critical-bg: rgba(220, 38, 38, 0.18);
  --notif-pri-critical-fg: #fca5a5;
  --notif-pri-critical-border: rgba(248, 113, 113, 0.4);
  --notif-pri-critical-bg-expanded: #3a2228;
  --notif-pri-high-bg: rgba(234, 179, 8, 0.14);
  --notif-pri-high-fg: #fcd34d;
  --notif-pri-high-border: rgba(250, 204, 21, 0.35);
  --notif-pri-high-bg-expanded: #322a18;
  --notif-pri-normal-bg: rgba(59, 130, 246, 0.14);
  --notif-pri-normal-fg: #93c5fd;
  --notif-pri-normal-border: rgba(96, 165, 250, 0.35);
  --notif-pri-normal-bg-expanded: #1c2a42;
  --notif-surface: #1a2332;
  --notif-surface-muted: #243044;
  --notif-border: #334155;
  --notif-border-strong: #475569;
  --notif-text: #e2e8f0;
  --notif-text-secondary: #94a3b8;
  --notif-text-muted: #64748b;
  --notif-bell-bg: #243044;
  --notif-bell-fg: #cbd5e1;
  --notif-bell-border: #475569;
  --notif-shadow-dropdown: 0 16px 40px rgba(0, 0, 0, 0.45);
  --notif-shadow-chip: 0 10px 28px rgba(0, 0, 0, 0.4);
  --notif-row-hover: #243044;
  --notif-btn-bg: #243044;
  --notif-btn-fg: #e2e8f0;
  --notif-input-bg: #111827;
}

html[data-mainview-theme="dark"] .ebs-my-shows-topbar .notif-bell-btn,
html[data-mainview-theme="dark"] .ebs-my-shows-topbar .notif-chip {
  border-color: var(--notif-bell-border);
  background: var(--notif-bell-bg);
}

html[data-mainview-theme="dark"] .ebs-my-shows-topbar .notif-bell-btn {
  color: var(--notif-bell-fg);
}

html[data-mainview-theme="dark"] .ebs-my-shows-topbar .notif-chip-text {
  color: var(--notif-text);
}

html[data-mainview-theme="dark"] .notif-chip-icon-btn:hover:not(:disabled) {
  color: #93c5fd;
}

html[data-mainview-theme="dark"] .notif-chip-icon-btn--danger:hover:not(:disabled) {
  border-color: rgba(248, 113, 113, 0.45);
  background: rgba(220, 38, 38, 0.18);
  color: #fca5a5;
}

html[data-mainview-theme="dark"] .ebs-my-shows-topbar .notif-chip-meta {
  color: var(--notif-text-muted);
}

html[data-mainview-theme="dark"] .notif-chip-slot:hover > .notif-chip,
html[data-mainview-theme="dark"] .notif-chip-slot:focus-within > .notif-chip {
  background: var(--notif-surface);
}

html[data-mainview-theme="dark"] .ebs-my-shows-topbar .notif-chip-slot:hover > .notif-chip,
html[data-mainview-theme="dark"] .ebs-my-shows-topbar .notif-chip-slot:focus-within > .notif-chip {
  background: var(--notif-surface);
}

/* ——— Realtime bottom-left banners ——— */
.notif-banner-host {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 1200;
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-start;
  gap: 10px;
  width: min(380px, calc(100vw - 32px));
  pointer-events: none;
}

.notif-banner {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  padding: 12px 36px 12px 12px;
  border: 1px solid var(--notif-border);
  border-radius: 10px;
  background: var(--notif-surface);
  box-shadow: var(--notif-shadow-dropdown);
  color: var(--notif-text);
  pointer-events: auto;
  animation: notif-banner-enter 220ms ease-out;
}

.notif-banner--critical {
  border-color: var(--notif-pri-critical-border);
  background: linear-gradient(
    90deg,
    var(--notif-pri-critical-bg) 0%,
    var(--notif-surface) 42%
  );
}

.notif-banner--high {
  border-color: var(--notif-pri-high-border);
  background: linear-gradient(
    90deg,
    var(--notif-pri-high-bg) 0%,
    var(--notif-surface) 42%
  );
}

.notif-banner--normal {
  border-color: var(--notif-pri-normal-border);
  background: linear-gradient(
    90deg,
    var(--notif-pri-normal-bg) 0%,
    var(--notif-surface) 42%
  );
}

.notif-banner-body {
  flex: 1;
  min-width: 0;
}

.notif-banner-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 4px;
}

.notif-banner-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--notif-text-secondary);
}

.notif-banner-tour {
  font-size: 10px;
  font-weight: 700;
  color: var(--notif-text-muted);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notif-banner-message {
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 600;
  word-break: break-word;
}

.notif-banner-meta {
  margin: 4px 0 0;
  font-size: 11px;
  color: var(--notif-text-muted);
}

.notif-banner .notif-btn--critical-ack {
  margin-top: 10px;
  border-color: var(--notif-pri-critical-fg);
  background: var(--notif-pri-critical-fg);
  color: #ffffff;
}

.notif-banner .notif-btn--critical-ack:hover {
  border-color: #991b1b;
  background: #991b1b;
}

.notif-banner-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--notif-text-secondary);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.notif-banner-close:hover {
  background: var(--notif-surface-muted);
  color: var(--notif-text);
}

.notif-banner-timer {
  flex-shrink: 0;
}

.notif-banner-timer-track {
  fill: none;
  stroke: var(--notif-border);
  stroke-width: 2;
}

.notif-banner-timer-progress {
  fill: none;
  stroke: var(--notif-text-secondary);
  stroke-width: 2;
  stroke-linecap: round;
  transition: stroke-dashoffset 50ms linear;
}

.notif-banner--exit-left {
  animation: notif-banner-exit-left 280ms ease-in forwards;
  pointer-events: none;
}

@keyframes notif-banner-enter {
  from {
    opacity: 0;
    transform: translateX(calc(-100% - 24px));
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes notif-banner-exit-left {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(calc(-100% - 24px));
  }
}

html[data-mainview-theme="dark"] .notif-banner--critical,
html[data-mainview-theme="dark"] .notif-banner--high,
html[data-mainview-theme="dark"] .notif-banner--normal {
  background: var(--notif-surface);
}

html[data-mainview-theme="dark"] .notif-banner-timer-progress {
  stroke: #93c5fd;
}
/* Buyer entries + bounds: hide browser steppers on type="number" inputs. */
.ebs-table--entries input[type="number"],
.ebs-bounds-table input[type="number"],
.ebs-show-bounds-read input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.ebs-table--entries input[type="number"]::-webkit-outer-spin-button,
.ebs-table--entries input[type="number"]::-webkit-inner-spin-button,
.ebs-bounds-table input[type="number"]::-webkit-outer-spin-button,
.ebs-bounds-table input[type="number"]::-webkit-inner-spin-button,
.ebs-show-bounds-read input[type="number"]::-webkit-outer-spin-button,
.ebs-show-bounds-read input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
/* Event detail — ~48% / 34% / 18% (ML narrow), navy panel headers */

.ebs-root.buying-sheet {
  box-sizing: border-box;
  min-height: 100vh;
  height: 100vh;
  max-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #f3f4f6;
}

.ebs-subheader {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: flex-start;
  flex-shrink: 0;
  padding: 8px 20px 10px;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  overflow: visible;
}

.ebs-subheader-main {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0;
  min-width: 0;
  flex-shrink: 0;
}

.ebs-subheader-divider {
  flex-shrink: 0;
  width: 1px;
  align-self: stretch;
  min-height: 28px;
  margin: 0 14px;
  background: #94a3b8;
}

.ebs-back-btn {
  color: #2563eb !important;
  font-weight: 600;
  font-size: 13px !important;
  padding: 4px 0 !important;
  height: auto !important;
  flex-shrink: 0;
}

.ebs-subheader-title-block {
  text-align: left;
  min-width: 0;
}

.ebs-extended-title-kpis {
  flex: 0 0 auto;
  margin-left: 16px;
}

.ebs-subheader-title-block .ant-typography {
  margin-bottom: 0 !important;
}

.ebs-event-title {
  margin: 0 !important;
  line-height: 1.1 !important;
  font-family: "Barlow Condensed", Inter, system-ui, sans-serif !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em;
  color: #0f172a !important;
}

.ebs-event-date {
  font-size: 13px;
  color: #64748b;
  font-weight: 400;
  font-family: var(--bs-font-sans, Inter, system-ui, sans-serif);
  letter-spacing: 0;
}

.ebs-event-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 3px;
}

.ebs-event-tour-type-pill {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 2px 8px;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  background: #fff7ed;
  color: #c2410c;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

/* Buyer Entries / Shows & Bounds / ML */
.ebs-columns {
  display: grid;
  grid-template-columns: minmax(0, 10fr) minmax(0, 7.25fr) minmax(0, 4.5fr);
  gap: 0;
  align-items: stretch;
  flex: 1 1 0;
  min-height: 0;
  overflow: hidden;
  border-top: 1px solid #e5e7eb;
}

/* Buyer Entries hidden: Shows wider than ML, but ML still readable. */
.ebs-columns--no-buyer-entries:not(.ebs-columns--no-ml) {
  grid-template-columns: minmax(0, 16.5fr) minmax(0, 4.5fr);
}

/* ML/Code column hidden: Entries + Shows share the row (10fr / 11.25fr). */
.ebs-columns--no-ml:not(.ebs-columns--no-buyer-entries) {
  grid-template-columns: minmax(0, 10fr) minmax(0, 11.25fr);
}

/* Buyer entries hidden and ML hidden: single Shows column. */
.ebs-columns--no-buyer-entries.ebs-columns--no-ml {
  grid-template-columns: minmax(0, 1fr);
}

.ebs-columns--extended {
  grid-template-columns: minmax(0, 1fr);
}

.ebs-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border-right: 1px solid #d1d5db;
  background: #ffffff;
}

.ebs-col .ebs-panel {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.ebs-col:last-child {
  border-right: none;
}

.ebs-extended-access-denied {
  flex: 1 1 auto;
  padding: 32px;
  color: #991b1b;
  background: #fff1f2;
  border-top: 1px solid #fecdd3;
  font-weight: 700;
}

.ebs-extended-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.75fr);
  gap: 0;
  height: 100%;
  min-height: 0;
  background: #f8fafc;
}

.ebs-extended-list,
.ebs-extended-form-panel {
  min-width: 0;
  border-right: 1px solid #d1d5db;
}

.ebs-extended-form-panel {
  border-right: none;
}

.ebs-extended-table-wrap {
  flex: 1;
  min-height: 0;
  overflow: auto;
  background: #ffffff;
}

.ebs-extended-show-tabs {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 8px;
  background: #e2e8f0;
  border-bottom: 1px solid #cbd5e1;
  overflow-x: auto;
}

.ebs-extended-show-tabs button,
.ebs-note-tab,
.ebs-note-add-btn {
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #f8fafc;
  color: #334155;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.ebs-extended-show-tabs button {
  flex-shrink: 0;
  max-width: 190px;
  overflow: hidden;
  padding: 4px 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ebs-extended-show-tabs button.is-active,
.ebs-note-tab.is-active {
  background: #ffffff;
  color: #0f172a;
  border-color: #94a3b8;
}

.ebs-extended-show-tabs button.is-active {
  border-color: #1d4ed8;
  background: #dbeafe;
  color: #1d4ed8;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.14);
}

.ebs-extended-bulk-shows {
  padding: 10px;
  background: #f8fafc;
  border-bottom: 1px solid #cbd5e1;
}

.ebs-extended-bulk-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #475569;
  font-size: 11px;
  margin-bottom: 6px;
}

.ebs-extended-bulk-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
}

.ebs-extended-loading,
.ebs-extended-empty {
  padding: 18px;
  color: #64748b;
  font-size: 13px;
}

.ebs-extended-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 11px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
}

.ebs-extended-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 6px 5px;
  background: #f1f5f9;
  color: #334155;
  text-align: left;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 1px solid #cbd5e1;
}

.ebs-extended-table td {
  padding: 6px 5px;
  border-bottom: 1px solid #e5e7eb;
  color: #0f172a;
  vertical-align: top;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ebs-extended-entry-row {
  background: #ffffff;
}

.ebs-extended-entry-row:hover {
  background: #f8fafc;
}

.ebs-extended-entry-row--editing td {
  background: #fffbeb;
  border-top: 1px solid #2563eb;
  border-bottom: 1px solid #f97316;
}

.ebs-extended-cell-editable {
  cursor: text;
}

.ebs-extended-cell-editable:hover {
  background: #eff6ff;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.18);
}

.ebs-extended-cell-editable[role="button"] {
  cursor: pointer;
}

.ebs-extended-cell-editable:focus-visible {
  outline: 2px solid rgba(37, 99, 235, 0.45);
  outline-offset: -2px;
  background: #eff6ff;
}

.ebs-extended-notes-cell {
  white-space: normal !important;
}

.ebs-extended-notes-preview {
  display: -webkit-box;
  min-height: 3.75em;
  overflow: hidden;
  color: inherit;
  line-height: 1.25;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.ebs-extended-badge-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3px;
  min-width: 0;
}

.ebs-extended-table-badge {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  border-radius: 6px;
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.15;
  white-space: nowrap;
}

.ebs-extended-table-badge--source {
  background: #dbeafe;
  color: #1d4ed8;
}

.ebs-extended-table-badge--setting {
  background: #bbf7d0;
  color: #166534;
}

.ebs-extended-table-badge--result {
  justify-content: center;
  min-width: 62px;
  border-radius: 999px;
}

.ebs-extended-table-badge--success {
  background: #bbf7d0;
  color: #065f46;
}

.ebs-extended-table-badge--failed {
  background: #fecaca;
  color: #991b1b;
}

.ebs-extended-table-badge--pending {
  background: #e2e8f0;
  color: #475569;
}

.ebs-extended-inline-input.ant-input,
.ebs-extended-inline-select.ant-select .ant-select-selector {
  width: 100% !important;
  min-height: 24px !important;
  height: 24px !important;
  border-color: #2563eb !important;
  background: #ffffff !important;
  color: #0f172a !important;
  font-size: 11px !important;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.16) !important;
}

.ebs-extended-inline-input--center.ant-input {
  text-align: center;
}

.ebs-extended-entry-row--success {
  background: #ecfdf5;
}

.ebs-extended-entry-row--denied {
  background: #fff1f2;
}

.ebs-extended-expand-th,
.ebs-extended-expand-cell {
  width: 34px;
  text-align: center !important;
}

.ebs-extended-expand-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  color: #475569;
  font-size: 10px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
  transition:
    background 140ms ease,
    border-color 140ms ease,
    color 140ms ease,
    transform 140ms ease,
    box-shadow 140ms ease;
}

.ebs-extended-expand-btn:hover {
  border-color: #94a3b8;
  color: #0f172a;
  box-shadow: 0 2px 5px rgba(15, 23, 42, 0.12);
}

.ebs-extended-expand-btn:focus-visible {
  outline: 2px solid rgba(37, 99, 235, 0.35);
  outline-offset: 2px;
}

.ebs-extended-expand-btn .anticon {
  transform: rotate(-90deg);
  transition: transform 140ms ease;
}

.ebs-extended-expand-btn[aria-expanded="true"] {
  border-color: #2563eb;
  background: #eff6ff;
  color: #1d4ed8;
}

.ebs-extended-expand-btn[aria-expanded="true"] .anticon {
  transform: rotate(0deg);
}

.ebs-extended-entry-details-row td {
  padding: 0;
  border-top: 0;
  white-space: normal;
  background: #f8fafc;
}

.ebs-extended-entry-details {
  margin: 0 0 8px 34px;
  padding: 10px;
  border: 1px solid #cbd5e1;
  border-top: 0;
  border-radius: 0 0 8px 8px;
  background: #ffffff;
}

.ebs-extended-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.ebs-extended-detail-item {
  min-width: 0;
}

.ebs-extended-detail-item--full {
  grid-column: 1 / -1;
}

.ebs-extended-detail-label {
  display: block;
  margin-bottom: 3px;
  color: #64748b;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ebs-extended-detail-value {
  min-height: 24px;
  padding: 5px 7px;
  border: 1px solid #e2e8f0;
  border-radius: 5px;
  background: #f8fafc;
  color: #0f172a;
  font-size: 11px;
  overflow-wrap: anywhere;
}

.ebs-extended-detail-value--notes {
  min-height: 48px;
  height: auto;
  white-space: pre-wrap;
  line-height: 1.45;
}

.ebs-extended-detail-value--editable {
  cursor: text;
}

.ebs-extended-detail-value--editable:hover {
  border-color: rgba(37, 99, 235, 0.42);
  background: #eff6ff;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.14);
}

.ebs-extended-inline-textarea.ant-input {
  width: 100%;
  min-height: 72px !important;
  border-color: #2563eb !important;
  background: #ffffff !important;
  color: #0f172a !important;
  font-size: 11px !important;
  line-height: 1.45;
  resize: vertical;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.16) !important;
}

.ebs-extended-inline-textarea--compact.ant-input {
  min-height: 58px !important;
  line-height: 1.25;
  resize: vertical;
}

.ebs-extended-notes-cell {
  white-space: normal !important;
}

.ebs-extended-actions {
  white-space: nowrap;
  text-align: right;
}

.ebs-extended-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
  overflow: auto;
}

.ebs-extended-show-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  background: #f8fafc;
  border-bottom: 1px solid #cbd5e1;
  overflow: auto;
  max-height: 45%;
}

.ebs-extended-show-card-head,
.ebs-extended-show-actions,
.ebs-extended-bulk-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.ebs-extended-show-summary {
  margin-top: 2px;
  color: #64748b;
  font-size: 11px;
}

.ebs-extended-show-edit-grid,
.ebs-extended-single-show-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.ebs-extended-show-edit-grid label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.ebs-extended-show-edit-grid label > span {
  color: #475569;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ebs-extended-single-show,
.ebs-extended-bounds-card {
  padding: 10px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
}

.ebs-extended-bounds-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.ebs-extended-bounds-table th,
.ebs-extended-bounds-table td {
  padding: 6px;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
}

.ebs-extended-bounds-table th {
  color: #475569;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ebs-extended-bounds-table tr.is-selected th,
.ebs-extended-bounds-table tr.is-selected td {
  background: #dbeafe !important;
  color: #1e3a8a !important;
  font-weight: 800;
}

.ebs-extended-bounds-table tr.is-selected .ant-input {
  background: transparent !important;
  border-color: transparent !important;
  color: #1e3a8a !important;
  font-weight: 800;
}

.ebs-extended-form label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.ebs-extended-form label > span {
  color: #475569;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ebs-extended-form .ant-input,
.ebs-extended-form .ant-input-number,
.ebs-extended-form .ant-select,
.ebs-extended-form textarea {
  width: 100%;
}

.ebs-extended-field--wide,
.ebs-extended-field--full,
.ebs-extended-form-actions {
  grid-column: 1 / -1;
}

.ebs-extended-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 4px;
}

.ebs-extended-panel-btn.ant-btn {
  border-color: rgba(148, 163, 184, 0.45);
  background: rgba(15, 23, 42, 0.35);
  color: #f8fafc;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.ebs-bulk-drawer-root {
  position: fixed;
  inset: 0;
  z-index: 1000;
}

.ebs-bulk-drawer-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(15, 23, 42, 0.42);
  cursor: pointer;
}

.ebs-bulk-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  width: min(520px, 100vw);
  height: 100%;
  background: #f8fafc;
  box-shadow: -18px 0 40px rgba(15, 23, 42, 0.28);
}

.ebs-bulk-drawer-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: #0f172a;
  color: #f8fafc;
}

.ebs-bulk-drawer-close {
  width: 26px;
  height: 26px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: 6px;
  background: transparent;
  color: #f8fafc;
  cursor: pointer;
}

.ebs-bulk-drawer-title-main {
  display: block;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ebs-bulk-drawer-title-sub {
  display: block;
  margin-top: 3px;
  color: #94a3b8;
  font-size: 12px;
}

.ebs-bulk-drawer-body {
  flex: 1;
  overflow: auto;
  padding: 14px;
}

.ebs-bulk-drawer-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.ebs-bulk-drawer-tab {
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #ffffff;
  color: #334155;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.ebs-bulk-drawer-tab.is-active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

.ebs-bulk-drawer-card {
  padding: 14px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #ffffff;
}

.ebs-bulk-drawer-card-title {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ebs-bulk-drawer-help {
  margin: 0 0 10px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.45;
}

.ebs-bulk-drawer-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.ebs-bulk-drawer-form-grid label {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ebs-bulk-drawer-form-grid .field--full {
  grid-column: 1 / -1;
}

.ebs-bulk-drawer-form-grid label > span {
  color: #475569;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ebs-bulk-drawer-textarea {
  width: 100%;
}

.ebs-bulk-drawer-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}

.ebs-extended-ml-notes {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.ebs-extended-ml-notes > .ebs-panel--ml {
  flex: 0 0 calc(100% - var(--ebs-notes-height, 42%) - 8px);
  height: calc(100% - var(--ebs-notes-height, 42%) - 8px);
  max-height: calc(100% - var(--ebs-notes-height, 42%) - 8px);
  min-height: 0;
  overflow: hidden;
}

.ebs-extended-ml-notes .ebs-ml-panel-body,
.ebs-extended-ml-notes .ebs-ml-panel-scroll {
  min-height: 0;
}

.ebs-extended-ml-notes .ebs-ml-panel-scroll {
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-gutter: stable;
}

.ebs-notes-section {
  display: flex;
  flex-direction: column;
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 5;
  height: var(--ebs-notes-height, 42%);
  max-height: calc(100% - 54px);
  flex: none;
  min-height: 220px;
  overflow: auto;
  border: 1px solid #cbd5e1;
  border-right: 0;
  border-left: 0;
  background: #ffffff;
  box-shadow: 0 -10px 24px rgba(15, 23, 42, 0.16);
}

.ebs-notes-resize-handle {
  position: absolute;
  right: 0;
  bottom: calc(var(--ebs-notes-height, 42%) - 4px);
  left: 0;
  z-index: 8;
  height: 9px;
  border: 0;
  background: transparent;
  cursor: row-resize;
}

.ebs-notes-resize-handle::before {
  content: "";
  position: absolute;
  right: 12px;
  left: 12px;
  top: 4px;
  height: 1px;
  background: rgba(148, 163, 184, 0.9);
}

.ebs-notes-resize-handle:hover::before,
.ebs-notes-resize-handle:focus-visible::before {
  height: 2px;
  background: #2563eb;
}

.ebs-notes-section .section-subhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-bottom: 1px solid #cbd5e1;
}

.ebs-notes-tabs {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 8px 0;
  background: #f8fafc;
  overflow-x: auto;
  border-bottom: 1px solid #cbd5e1;
}

.ebs-note-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 120px;
  overflow: hidden;
  border: 1px solid #cbd5e1;
  border-bottom: none;
  border-radius: 7px 7px 0 0;
  padding: 6px 9px;
  background: #e2e8f0;
  color: #475569;
  font-size: 10px;
  font-weight: 800;
}

.ebs-note-tab.is-active {
  background: #ffffff;
  color: #0f172a;
}

.ebs-note-tab-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ebs-note-tab-close {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.ebs-note-tab-close:hover {
  background: #fee2e2;
  color: #991b1b;
}

.ebs-note-add-btn {
  flex-shrink: 0;
  width: 26px;
  height: 24px;
  background: #ffffff;
  color: #334155;
  font-weight: 900;
}

.ebs-note-add-btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.ebs-note-editor {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 auto;
  min-height: 120px;
  padding: 10px;
  background: #ffffff;
}

.ebs-note-textarea {
  flex: 1 1 auto;
  min-height: 0 !important;
  overflow: auto !important;
  resize: none;
}

.ebs-floating-notes {
  position: fixed;
  z-index: 18;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 38px;
  border: 1px solid #64748b;
  border-radius: 8px 8px 0 0;
  background: #ffffff;
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.32);
}

.ebs-floating-notes.is-minimized {
  height: 38px !important;
}

.ebs-floating-notes.is-minimized .section-subhead,
.ebs-floating-notes.is-minimized .ebs-notes-tabs,
.ebs-floating-notes.is-minimized .ebs-note-editor,
.ebs-floating-notes.is-minimized .ebs-notes-resize-handle,
.ebs-floating-notes.is-minimized .ebs-notes-resize-edge {
  display: none;
}

.ebs-notes-window-bar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 8px;
  background: #0f172a;
  color: #ffffff;
  cursor: move;
  user-select: none;
}

.ebs-notes-window-title {
  min-width: 0;
  overflow: hidden;
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.ebs-notes-window-controls {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.ebs-notes-window-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 22px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
}

.ebs-notes-restore-icon {
  width: 10px;
  height: 10px;
  border: 2px solid currentColor;
}

.ebs-floating-notes .section-subhead {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 8px 10px;
  border-bottom: 1px solid #0f172a;
  background: #1a233a;
  color: #f8fafc;
}

.ebs-floating-notes .ebs-note-editor {
  min-height: 0;
}

.ebs-floating-notes .ebs-notes-resize-handle {
  position: absolute;
  right: 0;
  bottom: 0;
  left: auto;
  z-index: 8;
  width: 18px;
  height: 18px;
  border: 0;
  background: transparent;
  cursor: nwse-resize;
}

.ebs-floating-notes .ebs-notes-resize-handle--sw {
  right: auto;
  left: 0;
  cursor: nesw-resize;
}

.ebs-floating-notes .ebs-notes-resize-handle::before {
  content: "";
  position: absolute;
  right: 4px;
  bottom: 4px;
  left: auto;
  top: auto;
  width: 10px;
  height: 10px;
  border-right: 2px solid #94a3b8;
  border-bottom: 2px solid #94a3b8;
  background: transparent;
}

.ebs-floating-notes .ebs-notes-resize-handle--sw::before {
  right: auto;
  left: 4px;
  border-right: 0;
  border-left: 2px solid #94a3b8;
}

.ebs-notes-resize-edge {
  position: absolute;
}

.ebs-notes-resize-edge--left,
.ebs-notes-resize-edge--right {
  top: 0;
  bottom: 0;
  width: 7px;
  cursor: ew-resize;
}

.ebs-notes-resize-edge--left {
  left: 0;
}

.ebs-notes-resize-edge--right {
  right: 0;
}

.ebs-notes-resize-edge--top,
.ebs-notes-resize-edge--bottom {
  right: 0;
  left: 0;
  height: 7px;
  cursor: ns-resize;
}

.ebs-notes-resize-edge--top {
  top: 0;
}

.ebs-notes-resize-edge--bottom {
  bottom: 0;
}

html[data-mainview-theme="dark"] .ebs-root.buying-sheet,
html[data-mainview-theme="dark"] .ebs-extended-layout,
html[data-mainview-theme="dark"] .ebs-extended-table-wrap,
html[data-mainview-theme="dark"] .ebs-extended-form-panel,
html[data-mainview-theme="dark"] .ebs-notes-section,
html[data-mainview-theme="dark"] .ebs-floating-notes {
  background: #0f172a;
}

html[data-mainview-theme="dark"] .ebs-subheader,
html[data-mainview-theme="dark"] .ebs-col,
html[data-mainview-theme="dark"] .ebs-panel,
html[data-mainview-theme="dark"] .ebs-extended-entry-row,
html[data-mainview-theme="dark"] .ebs-extended-single-show,
html[data-mainview-theme="dark"] .ebs-extended-bounds-card {
  background: #111827;
}

html[data-mainview-theme="dark"] .ebs-event-title,
html[data-mainview-theme="dark"] .ebs-extended-table td {
  color: #e5e7eb !important;
}

html[data-mainview-theme="dark"] .ebs-event-date,
html[data-mainview-theme="dark"] .ebs-extended-form label > span,
html[data-mainview-theme="dark"] .ebs-extended-show-summary,
html[data-mainview-theme="dark"] .ebs-extended-show-edit-grid label > span,
html[data-mainview-theme="dark"] .ebs-extended-bulk-head,
html[data-mainview-theme="dark"] .ebs-extended-bounds-table th {
  color: #94a3b8;
}

html[data-mainview-theme="dark"] .ebs-extended-kpi-strip {
  border-color: #334155;
  background: #0f172a;
}

html[data-mainview-theme="dark"] .ebs-extended-kpi-card {
  border-color: #334155;
  color: #94a3b8;
}

html[data-mainview-theme="dark"] .ebs-extended-kpi-card strong {
  color: #e5e7eb;
}

html[data-mainview-theme="dark"] .ebs-extended-kpi-card--success strong {
  color: #34d399;
}

html[data-mainview-theme="dark"] .ebs-extended-kpi-card--failed strong {
  color: #f87171;
}

html[data-mainview-theme="dark"] .ebs-extended-kpi-card--rate strong {
  color: #60a5fa;
}

html[data-mainview-theme="dark"] .ebs-extended-show-tabs,
html[data-mainview-theme="dark"] .ebs-extended-bulk-shows,
html[data-mainview-theme="dark"] .ebs-extended-show-card,
html[data-mainview-theme="dark"] .ebs-extended-entry-details-row td,
html[data-mainview-theme="dark"] .ebs-extended-table th,
html[data-mainview-theme="dark"] .ebs-notes-section .section-subhead,
html[data-mainview-theme="dark"] .ebs-floating-notes .section-subhead,
html[data-mainview-theme="dark"] .ebs-notes-tabs {
  background: #1f2937;
  border-color: #334155;
}

html[data-mainview-theme="dark"] .ebs-extended-table th,
html[data-mainview-theme="dark"] .ebs-extended-table th .ebs-extended-sort-btn {
  color: #cbd5e1 !important;
}

html[data-mainview-theme="dark"] .ebs-ml-assignment-scroll-region {
  border-bottom-color: #334155;
}

html[data-mainview-theme="dark"] .ebs-extended-entry-row:hover {
  background: #1f2937;
}

html[data-mainview-theme="dark"] .ebs-extended-entry-row:hover td {
  background: #1f2937;
}

html[data-mainview-theme="dark"] .ebs-extended-cell-editable:hover {
  background: #1e293b;
  box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.24);
}

html[data-mainview-theme="dark"] .ebs-extended-cell-editable:focus-visible {
  outline-color: rgba(96, 165, 250, 0.55);
  background: #1e293b;
}

html[data-mainview-theme="dark"] .ebs-extended-entry-row--editing td,
html[data-mainview-theme="dark"] .ebs-extended-entry-row--editing:hover td {
  background: #1e293b;
  border-top-color: #60a5fa;
  border-bottom-color: #f59e0b;
}

html[data-mainview-theme="dark"] .ebs-extended-entry-row--success {
  background: #064e3b;
}

html[data-mainview-theme="dark"] .ebs-extended-entry-row--denied {
  background: #4c0519;
}

html[data-mainview-theme="dark"] .ebs-extended-table-badge--source {
  background: #dbeafe;
  color: #1d4ed8;
}

html[data-mainview-theme="dark"] .ebs-extended-table-badge--setting {
  background: #bbf7d0;
  color: #166534;
}

html[data-mainview-theme="dark"] .ebs-extended-table-badge--success {
  background: #bbf7d0;
  color: #065f46;
}

html[data-mainview-theme="dark"] .ebs-extended-table-badge--failed {
  background: #fecaca;
  color: #991b1b;
}

html[data-mainview-theme="dark"] .ebs-extended-table-badge--pending {
  background: #e2e8f0;
  color: #475569;
}

html[data-mainview-theme="dark"] .ebs-extended-expand-btn,
html[data-mainview-theme="dark"] .ebs-extended-entry-details,
html[data-mainview-theme="dark"] .ebs-extended-detail-value {
  background: #0f172a;
  border-color: #475569;
  color: #e5e7eb;
}

html[data-mainview-theme="dark"] .ebs-extended-expand-btn {
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.28);
}

html[data-mainview-theme="dark"] .ebs-extended-expand-btn:hover {
  background: #1e293b;
  border-color: #64748b;
  color: #ffffff;
}

html[data-mainview-theme="dark"] .ebs-extended-expand-btn[aria-expanded="true"] {
  background: #1e3a8a;
  border-color: #60a5fa;
  color: #dbeafe;
}

html[data-mainview-theme="dark"] .ebs-extended-detail-label {
  color: #94a3b8;
}

html[data-mainview-theme="dark"] .ebs-extended-show-tabs button,
html[data-mainview-theme="dark"] .ebs-note-tab,
html[data-mainview-theme="dark"] .ebs-note-add-btn,
html[data-mainview-theme="dark"] .ebs-extended-show-add-chip {
  background: #0f172a;
  color: #cbd5e1;
  border-color: #475569;
}

html[data-mainview-theme="dark"] .ebs-extended-show-tabs button.is-active,
html[data-mainview-theme="dark"] .ebs-note-tab.is-active {
  background: #334155;
  color: #ffffff;
}

html[data-mainview-theme="dark"] .ebs-entries-view-tabs {
  background: #1f2937;
  border-bottom-color: #334155;
}

html[data-mainview-theme="dark"] .ebs-entries-view-tab {
  background: #0f172a;
  color: #cbd5e1;
  border-color: #475569;
}

html[data-mainview-theme="dark"] .ebs-entries-view-tab:hover:not(.is-active) {
  background: #1e293b;
  border-color: #64748b;
  color: #e5e7eb;
}

html[data-mainview-theme="dark"] .ebs-entries-view-tab.is-active {
  background: #1e3a8a;
  border-color: #60a5fa;
  color: #dbeafe;
}

html[data-mainview-theme="dark"] .ebs-scoreboard-table thead th {
  background: #1f2937;
  border-color: #334155;
  color: #94a3b8;
}

html[data-mainview-theme="dark"] .ebs-scoreboard-table--sortable .ebs-th-sort-btn:hover {
  color: #e5e7eb;
}

html[data-mainview-theme="dark"] .ebs-scoreboard-table--sortable .ebs-th-sort-indicator-slot--active {
  color: #93c5fd;
}

html[data-mainview-theme="dark"] .ebs-scoreboard-table--sortable thead th.ebs-th-sort--active {
  background: #1e3a8a;
  color: #dbeafe;
}

html[data-mainview-theme="dark"] .ebs-bulk-drawer-panel,
html[data-mainview-theme="dark"] .ebs-bulk-drawer-body {
  background: #0f172a;
}

html[data-mainview-theme="dark"] .ebs-bulk-drawer-card {
  background: #111827;
  border-color: #334155;
}

html[data-mainview-theme="dark"] .ebs-bulk-drawer-card-title {
  color: #e5e7eb;
}

html[data-mainview-theme="dark"] .ebs-bulk-drawer-help,
html[data-mainview-theme="dark"] .ebs-bulk-drawer-form-grid label > span {
  color: #94a3b8;
}

html[data-mainview-theme="dark"] .ebs-bulk-drawer-tab {
  background: #111827;
  color: #cbd5e1;
  border-color: #475569;
}

html[data-mainview-theme="dark"] .ebs-bulk-drawer-tab.is-active {
  background: #334155;
  color: #ffffff;
}

html[data-mainview-theme="dark"] .ebs-ml-assignment-drawer .ant-drawer-content,
html[data-mainview-theme="dark"] .ebs-ml-assignment-drawer .ant-drawer-body,
html[data-mainview-theme="dark"] .ebs-ml-panel-body--tab,
html[data-mainview-theme="dark"] .ebs-ml-actions-tabs {
  background: #0f172a !important;
}

html[data-mainview-theme="dark"] .ebs-ml-actions-tabs {
  border-bottom-color: #334155;
}

html[data-mainview-theme="dark"] .ebs-ml-actions-tabs .ant-tabs-tab {
  background: #1f2937;
  border-color: #334155;
}

html[data-mainview-theme="dark"] .ebs-ml-actions-tabs .ant-tabs-tab-btn {
  color: #94a3b8;
}

html[data-mainview-theme="dark"] .ebs-ml-actions-tabs .ant-tabs-tab-active {
  background: #111827;
  border-color: #2563eb;
}

html[data-mainview-theme="dark"] .ebs-ml-actions-tabs .ant-tabs-tab-active .ant-tabs-tab-btn {
  color: #dbeafe !important;
}

html[data-mainview-theme="dark"] .ebs-ml-inline-action-panel {
  background: #111827;
  border-color: #334155;
}

html[data-mainview-theme="dark"] .ebs-ml-inline-action-panel .ebs-bulk-shows-instructions,
html[data-mainview-theme="dark"] .ebs-ml-inline-action-panel .ebs-assignment-map-buyers-label,
html[data-mainview-theme="dark"] .ebs-ml-inline-action-panel .ebs-assignment-bulk-drawer-field-label {
  color: #94a3b8;
}

html[data-mainview-theme="dark"] .ebs-ml-inline-action-panel .ebs-bulk-shows-textarea {
  background: #172235;
  border-color: #334155;
  color: #e5e7eb;
}

html[data-mainview-theme="dark"] .ebs-ml-inline-action-panel .ebs-bulk-shows-textarea:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.18);
}

/* Buylist Testing mockup-aligned sheet */
.ebs-columns--extended {
  grid-template-columns: minmax(0, 1fr);
}

.ebs-columns--extended .ebs-col {
  min-width: 0;
}

.ebs-extended-ml-drawer-button.ant-btn {
  height: 28px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.ebs-ml-assignment-drawer .ant-drawer-header {
  min-height: 44px;
  padding: 10px 14px;
  border-bottom: 1px solid #334155;
  background: #111827;
}

.ebs-ml-assignment-drawer .ant-drawer-title,
.ebs-ml-assignment-drawer .ant-drawer-close {
  color: #f8fafc;
}

.ebs-ml-assignment-drawer .ant-drawer-body {
  overflow: hidden;
}

.ebs-ml-notes-drawer-content {
  display: grid;
  grid-template-rows: minmax(280px, 58%) minmax(220px, 42%);
  height: 100%;
  min-height: 0;
  background: #0f172a;
}

.ebs-ml-assignment-drawer .ebs-panel--ml {
  min-height: 0;
  border: 0;
}

.ebs-ml-assignment-drawer .ebs-notes-section {
  position: static;
  height: auto;
  min-height: 0;
  max-height: none;
  border-width: 1px 0 0;
}

.ebs-ml-assignment-drawer .ebs-note-editor {
  min-height: 0;
}

.ebs-ml-assignment-drawer .ebs-note-textarea {
  min-height: 140px;
}

.ebs-ml-actions-tabs {
  flex: 0 0 auto;
  padding: 10px 12px 0;
  background: #f1f5f9;
  border-bottom: 1px solid #cbd5e1;
}

.ebs-ml-actions-tabs .ant-tabs-nav {
  margin-bottom: 0;
}

.ebs-ml-actions-tabs .ant-tabs-content-holder {
  display: none;
}

.ebs-ml-panel-body--tab {
  background: #f1f5f9;
}

.ebs-ml-inline-action-panel {
  margin: 12px;
  padding: 12px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #ffffff;
}

.ebs-extended-layout {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(220px, 1fr);
  background: #f3f4f6;
  font-size: 11px;
}

.ebs-extended-subheader-actions {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  justify-content: flex-end;
}

.ebs-extended-kpi-strip {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(56px, 1fr));
  overflow: hidden;
  border: 1px solid #dbe3ef;
  border-radius: 10px;
  background: #f8fafc;
}

.ebs-extended-kpi-card {
  display: grid;
  place-items: center;
  gap: 1px;
  min-width: 0;
  padding: 3px 9px;
  border-right: 1px solid #dbe3ef;
  color: #64748b;
  text-transform: uppercase;
}

.ebs-extended-kpi-card:last-child {
  border-right: 0;
}

.ebs-extended-kpi-card strong {
  color: #0f172a;
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
}

.ebs-extended-kpi-card span {
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1.15;
  white-space: nowrap;
}

.ebs-extended-kpi-card--success strong {
  color: #059669;
}

.ebs-extended-kpi-card--failed strong {
  color: #dc2626;
}

.ebs-extended-kpi-card--rate strong {
  color: #2563eb;
}

.ebs-extended-subheader-actions .ebs-extended-show-tabs {
  position: static;
  flex: 1 1 auto;
  max-width: none;
  min-width: 0;
  padding: 0;
  border-bottom: 0;
  background: transparent;
  scrollbar-width: thin;
}

.ebs-extended-show-tabs-shell {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: 1 1 auto;
}

.ebs-extended-show-add-chip {
  flex: 0 0 auto;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #f8fafc;
  color: #334155;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.ebs-extended-show-add-chip:hover {
  border-color: #94a3b8;
  background: #ffffff;
  color: #0f172a;
}

.ebs-extended-subheader-actions .ebs-extended-show-tabs::-webkit-scrollbar {
  height: 4px;
}

.ebs-extended-subheader-actions .ebs-extended-show-tabs::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(100, 116, 139, 0.45);
}

.ebs-extended-form-panel {
  grid-column: 1 / -1;
  grid-row: 1;
  border-right: none;
  border-bottom: 1px solid #d1d5db;
}

.ebs-extended-list {
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  border-right: none;
  min-height: 0;
}

.ebs-extended-list > .ebs-panel-header {
  flex: 0 0 auto;
  z-index: 4;
}

.ebs-extended-form-panel-scroll {
  flex: 0 0 auto;
  min-height: 0;
  overflow: visible;
  padding: 5px 8px;
  background: #f3f4f6;
}

.ebs-extended-form-card {
  overflow: hidden;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.ebs-extended-form-card-head {
  padding: 6px 8px;
  background: #1f2937;
  color: #f8fafc;
  font-family: var(--bs-font-sans, Inter, system-ui, sans-serif);
}

.ebs-extended-form-card-title,
.ebs-extended-show-header-read,
.ebs-extended-show-link-row,
.ebs-extended-panel-actions,
.ebs-extended-bounds-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ebs-extended-form-card-title,
.ebs-extended-bounds-title-row {
  justify-content: space-between;
}

.ebs-extended-show-title-main {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  font-weight: 700;
}

.ebs-extended-show-title-pill {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(125, 211, 252, 0.36);
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.22);
  color: #e0f2fe;
  padding: 1px 6px;
  font-family: "Barlow Condensed", Inter, system-ui, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: none;
}

.ebs-extended-show-title-text,
.ebs-extended-show-header-subline {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ebs-extended-show-title-text {
  color: #f1f5f9;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
}

.ebs-extended-show-summary {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  margin-top: 2px;
  color: #cbd5e1;
  font-size: 9px;
  font-weight: 500;
  line-height: 1.2;
}

.ebs-extended-show-summary-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ebs-extended-show-header-read {
  margin-top: 4px;
  min-width: 0;
}

.ebs-extended-show-header-subline {
  color: #cbd5e1;
  font-size: 9px;
}

.ebs-extended-show-link-row {
  justify-content: flex-end;
  flex: 1 1 auto;
  margin-left: auto;
  min-width: 0;
}

.ebs-extended-show-copy-link-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  min-width: 22px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #94a3b8;
  padding: 0;
}

.ebs-extended-show-copy-link-btn:hover:not(:disabled) {
  background: rgba(37, 99, 235, 0.12);
  color: #60a5fa;
}

.ebs-extended-show-copy-link-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.ebs-extended-show-header-edit {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.ebs-extended-entry-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.44fr);
  align-items: start;
  gap: 6px;
  padding: 6px 8px;
}

.ebs-extended-form-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  column-gap: 5px;
  row-gap: 4px;
}

.ebs-extended-field {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 2px;
}

.ebs-extended-field--wide {
  grid-column: span 4;
}

.ebs-extended-field--full {
  grid-column: 1 / -1;
}

.ebs-extended-form-grid > .ebs-extended-field:not(.ebs-extended-field--wide):not(.ebs-extended-field--full) {
  grid-column: span 2;
}

.ebs-extended-field > span,
.ebs-extended-bounds-title {
  color: #475569;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ebs-extended-form-card-head .ebs-extended-field > span {
  color: #cbd5e1;
}

.ebs-extended-chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  min-width: 0;
}

.ebs-extended-chip-group button {
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #f8fafc;
  color: #475569;
  padding: 2px 6px;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.1;
  cursor: pointer;
}

.ebs-extended-chip-group button:hover {
  border-color: #94a3b8;
  background: #ffffff;
  color: #0f172a;
}

.ebs-extended-chip-group button.is-active {
  border-color: #2563eb;
  background: #dbeafe;
  color: #1d4ed8;
}

.ebs-extended-cell-input.ant-input,
.ebs-extended-cell-select.ant-select .ant-select-selector,
.ebs-extended-cell-picker.ant-picker,
.ebs-extended-cell-textarea.ant-input {
  border: 1px solid #cbd5e1 !important;
  border-radius: 5px !important;
  background: #ffffff !important;
  color: #0f172a !important;
  font-size: 11px !important;
}

.ebs-extended-cell-input.ant-input,
.ebs-extended-cell-picker.ant-picker,
.ebs-extended-cell-select.ant-select .ant-select-selector {
  height: 24px !important;
  min-height: 24px !important;
  padding: 2px 6px !important;
}

.ebs-extended-cell-select.ant-select-single {
  height: 24px !important;
}

.ebs-extended-cell-select.ant-select-single .ant-select-selector {
  align-items: center;
}

.ebs-extended-cell-select.ant-select-single .ant-select-selection-item,
.ebs-extended-cell-select.ant-select-single .ant-select-selection-placeholder {
  line-height: 18px !important;
}

.ebs-extended-cell-picker.ant-picker {
  width: 100%;
}

.ebs-extended-cell-picker.ant-picker .ant-picker-input > input {
  color: #0f172a !important;
  font-size: 11px !important;
}

.ebs-extended-cell-textarea.ant-input {
  min-height: 34px !important;
  padding: 5px 6px !important;
}

.ebs-extended-ml-account-select.ant-select {
  height: 24px !important;
  width: 100%;
}

.ebs-extended-ml-account-select.ant-select-single .ant-select-selector {
  align-items: center;
  height: 24px !important;
  min-height: 24px !important;
  padding: 2px 6px !important;
}

.ebs-extended-ml-account-select.ant-select-single .ant-select-selection-item,
.ebs-extended-ml-account-select.ant-select-single .ant-select-selection-placeholder {
  line-height: 18px !important;
}

.ebs-extended-mono {
  font-family: ui-monospace, Menlo, Consolas, monospace !important;
}

.ebs-extended-bounds-card {
  margin: 0;
  padding: 6px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
}

.ebs-extended-bounds-title-row {
  margin-bottom: 5px;
}

.ebs-extended-bounds-title-row .ebs-buyer-header-meta {
  color: #64748b;
  font-size: 10px;
  letter-spacing: 0;
  text-transform: none;
}

.ebs-extended-bounds-table {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 10px;
}

.ebs-extended-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  grid-column: 1 / -1;
  padding-top: 0;
}

.ebs-extended-form-actions .ant-btn {
  height: 24px;
  padding: 2px 9px;
  font-size: 11px;
  font-weight: 700;
}

.ebs-extended-filter-wrap {
  position: sticky;
  top: 39px;
  z-index: 2;
}

.ebs-extended-filter-bar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 7px 10px;
  border-bottom: 1px solid #dbe3ee;
  background: #f8fafc;
}

.ebs-extended-filter-select {
  min-width: 132px;
}

.ebs-extended-filter-input {
  width: 150px;
}

.ebs-extended-filter-input--ml {
  width: 96px;
}

.ebs-extended-filter-input--search {
  width: 190px;
}

.ebs-extended-filter-kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(44px, 1fr));
  overflow: hidden;
  flex: 0 0 auto;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  background: #ffffff;
}

.ebs-extended-filter-kpi-card {
  display: grid;
  place-items: center;
  gap: 1px;
  min-width: 0;
  padding: 2px 7px;
  border-right: 1px solid #dbe3ef;
  color: #64748b;
  text-transform: uppercase;
}

.ebs-extended-filter-kpi-card:last-child {
  border-right: 0;
}

.ebs-extended-filter-kpi-card strong {
  color: #0f172a;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.ebs-extended-filter-kpi-card span {
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.05em;
  line-height: 1.1;
  white-space: nowrap;
}

.ebs-extended-filter-kpi-card--success strong {
  color: #059669;
}

.ebs-extended-filter-kpi-card--failed strong {
  color: #dc2626;
}

.ebs-extended-filter-kpi-card--rate strong {
  color: #2563eb;
}

.ebs-extended-showing-label {
  margin-left: auto;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.ebs-extended-sort-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  font: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
}

.ebs-extended-sort-btn:hover {
  color: #1d4ed8;
}

.ebs-extended-sort-dir {
  color: #2563eb;
  font-size: 11px;
  line-height: 1;
}

.ebs-extended-panel-btn.ant-btn {
  height: 22px;
  padding: 2px 6px;
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  font-size: 9px;
  font-weight: 800;
}

.ebs-extended-panel-btn.ant-btn:hover,
.ebs-extended-panel-btn.ant-btn:focus-visible,
.ebs-extended-panel-btn.ant-btn:active {
  border-color: rgba(147, 197, 253, 0.65) !important;
  background: rgba(15, 23, 42, 0.72) !important;
  color: #ffffff !important;
}

.ebs-extended-table {
  font-size: 11px;
}

.ebs-extended-table th,
.ebs-extended-table td {
  padding: 6px 5px;
}

.ebs-extended-table th {
  top: 37px;
}

.ebs-buylist-bulk-action-drawer .ebs-new-show-row {
  display: grid;
  gap: 8px;
  margin-bottom: 8px;
}

.ebs-buylist-bulk-action-drawer .ebs-new-show-row--3,
.ebs-buylist-bulk-action-drawer .ebs-new-show-row--4 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ebs-buylist-bulk-action-drawer .ebs-new-show-full {
  margin-top: 2px;
}

.ebs-notes-section {
  background: #ffffff;
}

.ebs-notes-section .section-subhead {
  background: #1a233a;
  border-bottom-color: #0f172a;
  color: #f8fafc;
  justify-content: flex-start;
}

.ebs-note-editor {
  gap: 8px;
  padding: 10px;
  background: #ffffff;
}

.ebs-note-editor .ant-input {
  border: 1px solid #cbd5e1 !important;
  border-radius: 4px !important;
  background: #ffffff !important;
  font-family: Consolas, "Courier New", ui-monospace, monospace;
  font-size: 11px;
}

.ebs-note-textarea.ant-input {
  flex: 1;
  min-height: 0 !important;
  overflow: auto !important;
  line-height: 1.45;
  resize: none;
}

html[data-mainview-theme="dark"] .ebs-columns--extended,
html[data-mainview-theme="dark"] .ebs-extended-layout,
html[data-mainview-theme="dark"] .ebs-extended-form-panel-scroll {
  background: #0f172a;
}

html[data-mainview-theme="dark"] .ebs-extended-form-card,
html[data-mainview-theme="dark"] .ebs-extended-bounds-card {
  background: #111827;
  border-color: #334155;
}

html[data-mainview-theme="dark"] .ebs-extended-form-card-head {
  background: #111827;
  border-bottom: 1px solid #334155;
  color: #f8fafc;
}

html[data-mainview-theme="dark"] .ebs-extended-form-card-head .ebs-extended-show-title-text,
html[data-mainview-theme="dark"] .ebs-extended-form-card-head .ebs-extended-show-summary,
html[data-mainview-theme="dark"] .ebs-extended-form-card-head .ebs-extended-show-header-subline {
  color: #e5e7eb;
}

html[data-mainview-theme="dark"] .ebs-shows-panel-header {
  color: #f8fafc;
}

html[data-mainview-theme="dark"] .ebs-extended-field > span,
html[data-mainview-theme="dark"] .ebs-extended-bounds-title,
html[data-mainview-theme="dark"] .ebs-extended-bounds-title-row .ebs-buyer-header-meta {
  color: #94a3b8;
}

html[data-mainview-theme="dark"] .ebs-extended-cell-input.ant-input,
html[data-mainview-theme="dark"] .ebs-extended-cell-picker.ant-picker,
html[data-mainview-theme="dark"] .ebs-extended-cell-select.ant-select .ant-select-selector,
html[data-mainview-theme="dark"] .ebs-extended-cell-textarea.ant-input {
  background: #020617 !important;
  border-color: #475569 !important;
  color: #e5e7eb !important;
}

html[data-mainview-theme="dark"] .ebs-extended-chip-group button {
  border-color: #475569;
  background: #0f172a;
  color: #cbd5e1;
}

html[data-mainview-theme="dark"] .ebs-extended-chip-group button:hover {
  border-color: #64748b;
  background: #1e293b;
  color: #f8fafc;
}

html[data-mainview-theme="dark"] .ebs-extended-chip-group button.is-active {
  border-color: #60a5fa;
  background: #1e3a8a;
  color: #bfdbfe;
}

html[data-mainview-theme="dark"] .ebs-extended-cell-picker.ant-picker .ant-picker-input > input {
  color: #e5e7eb !important;
}

html[data-mainview-theme="dark"] .ebs-extended-filter-bar {
  background: #111827;
  border-color: #334155;
}

html[data-mainview-theme="dark"] .ebs-extended-filter-select.ant-select .ant-select-selector,
html[data-mainview-theme="dark"] .ebs-extended-filter-input.ant-input,
html[data-mainview-theme="dark"] .ant-input-affix-wrapper.ebs-extended-filter-input {
  background: #172235 !important;
  border-color: #334155 !important;
  color: #e5e7eb !important;
}

html[data-mainview-theme="dark"] .ebs-extended-filter-input input {
  color: #e5e7eb !important;
}

html[data-mainview-theme="dark"] .ebs-extended-filter-kpi-strip {
  border-color: #334155;
  background: #0f172a;
}

html[data-mainview-theme="dark"] .ebs-extended-filter-kpi-card {
  border-color: #334155;
  color: #94a3b8;
}

html[data-mainview-theme="dark"] .ebs-extended-filter-kpi-card strong {
  color: #e5e7eb;
}

html[data-mainview-theme="dark"] .ebs-extended-filter-kpi-card--success strong {
  color: #34d399;
}

html[data-mainview-theme="dark"] .ebs-extended-filter-kpi-card--failed strong {
  color: #f87171;
}

html[data-mainview-theme="dark"] .ebs-extended-filter-kpi-card--rate strong {
  color: #60a5fa;
}

html[data-mainview-theme="dark"] .ebs-extended-showing-label {
  color: #94a3b8;
}

html[data-mainview-theme="dark"] .ebs-extended-sort-btn:hover,
html[data-mainview-theme="dark"] .ebs-extended-sort-dir {
  color: #93c5fd;
}

html[data-mainview-theme="dark"] .ebs-notes-section {
  background: #111827;
}

html[data-mainview-theme="dark"] .ebs-notes-section .section-subhead {
  background: #1a233a;
  border-color: #334155;
}

html[data-mainview-theme="dark"] .ebs-note-editor {
  background: #111827;
}

html[data-mainview-theme="dark"] .ebs-note-editor .ant-input {
  background: #020617 !important;
  border-color: #475569 !important;
  color: #e5e7eb !important;
}


.ebs-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  background: #ffffff;
}

.ebs-panel--ml {
  background: #ffffff;
}

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

.ebs-ml-panel-scroll {
  flex: 1;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  box-sizing: border-box;
}

.ebs-ml-assignment-scroll-region {
  flex: 0 1 auto;
  max-height: min(360px, 42vh);
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  border-bottom: 1px solid #e5e7eb;
  box-sizing: border-box;
}

.ebs-ml-assignment-scroll-region::-webkit-scrollbar {
  display: none;
}

.ebs-ml-assignment-scroll-region > .ebs-assignment-section {
  padding-bottom: 8px;
}

.ebs-panel-header {
  background: #1a233a;
  color: #f8fafc;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-shrink: 0;
  border-bottom: 1px solid #0f172a;
}

.ebs-panel-header--entries {
  justify-content: flex-start;
  gap: 10px;
  padding: 9px 14px 10px;
  background: #141d33;
  border-bottom: 1px solid #0c1222;
}

.ebs-buyer-header-title {
  font-family: "Barlow Condensed", Inter, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #cbd5e1;
}

.ebs-panel-header--entries .ebs-buyer-header-meta {
  margin-left: auto;
  font-size: 11px;
  font-weight: 500;
  color: #94a3b8;
  text-transform: none;
  letter-spacing: 0;
}

.ebs-buyer-header-meta--sort {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  justify-content: flex-end;
}

.ebs-entry-sort-default {
  font-size: 10px;
  font-weight: 500;
  opacity: 0.88;
}

.ebs-entry-sort-status {
  font-size: 10px;
  font-weight: 600;
  color: #e2e8f0;
}

.ebs-entry-sort-dir {
  font-weight: 500;
  opacity: 0.92;
}

.ebs-entry-sort-clear {
  font-family: inherit;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 10px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: 4px;
  background: rgba(15, 23, 42, 0.35);
  color: #f1f5f9;
  cursor: pointer;
}

.ebs-entry-sort-clear:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(226, 232, 240, 0.55);
  color: #ffffff;
}

.ebs-entry-sort-clear:focus-visible {
  outline: 2px solid #93c5fd;
  outline-offset: 2px;
}

.ebs-col--entries .ebs-panel-header--entries {
  background: #3c76a8 !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.15);
}

.ebs-col--entries .ebs-buyer-header-title {
  color: #ffffff !important;
}

.ebs-col--entries .ebs-panel-header--entries .ebs-buyer-header-meta {
  color: rgba(255, 255, 255, 0.88) !important;
}

.ebs-col--entries .ebs-entry-sort-default {
  color: rgba(255, 255, 255, 0.78) !important;
}

.ebs-col--entries .ebs-entry-sort-status {
  color: rgba(255, 255, 255, 0.95) !important;
}

.ebs-col--entries .ebs-entry-sort-clear {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.ebs-col--entries .ebs-entry-sort-clear:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
}

.ebs-col--entries .ebs-panel-header--entries .ebs-shows-header-btn {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.ebs-col--entries .ebs-panel-header--entries .ebs-shows-header-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  color: #ffffff;
}

.ebs-shows-header-btn--panel-open {
  border-color: #2563eb;
  color: #e2e8f0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.ebs-shows-header-btn--panel-open:hover:not(:disabled) {
  border-color: #3b82f6;
  background: rgba(37, 99, 235, 0.12);
}

.ebs-ml-assignments-header-actions .ebs-ml-bulk-action-header-btn {
  background: #2563eb;
  color: #fff;
  border-color: #1d4ed8;
}

.ebs-ml-assignments-header-actions .ebs-ml-bulk-action-header-btn:hover:not(:disabled) {
  background: #1d4ed8;
  border-color: #1e40af;
  color: #fff;
}

.ebs-ml-assignments-header-actions
  .ebs-ml-bulk-action-header-btn.ebs-shows-header-btn--panel-open {
  background: #1e40af;
  border-color: #1e3a8a;
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.ebs-ml-assignments-header-actions
  .ebs-ml-bulk-action-header-btn.ebs-shows-header-btn--panel-open:hover:not(:disabled) {
  background: #1d4ed8;
  border-color: #1e40af;
  color: #fff;
}

.ebs-shows-panel-header .ebs-shows-bulk-action-header-btn {
  background: #2563eb;
  color: #fff;
  border-color: #1d4ed8;
}

.ebs-shows-panel-header .ebs-shows-bulk-action-header-btn:hover:not(:disabled) {
  background: #1d4ed8;
  border-color: #1e40af;
  color: #fff;
}

.ebs-shows-panel-header
  .ebs-shows-bulk-action-header-btn.ebs-shows-header-btn--panel-open {
  background: #1e40af;
  border-color: #1e3a8a;
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.ebs-shows-panel-header
  .ebs-shows-bulk-action-header-btn.ebs-shows-header-btn--panel-open:hover:not(
    :disabled
  ) {
  background: #1d4ed8;
  border-color: #1e40af;
  color: #fff;
}

.ebs-shows-bulk-action-drawer .ant-drawer-body {
  padding: 10px 10px 12px;
}

.ebs-shows-bulk-action-tab-panel--edit .ebs-assignment-bulk-drawer-body-inner {
  padding-top: 4px;
}

.ebs-shows-bulk-drawer-bounds-panel {
  margin-top: 4px;
}

.ebs-shows-bulk-drawer-bounds-lead,
.ebs-shows-bulk-drawer-bounds-empty,
.ebs-shows-bulk-drawer-bounds-targets {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 12px;
  line-height: 1.45;
}

.ebs-shows-bulk-drawer-bounds-table-wrap {
  margin-bottom: 10px;
  overflow-x: auto;
}

.ebs-shows-bulk-drawer-bounds-preview {
  font-size: 12px;
}

.ebs-shows-bulk-drawer-bounds-actions {
  margin-top: 4px;
}

.ebs-shows-bulk-drawer-bounds-paste-row {
  margin-bottom: 8px;
}

.ebs-ml-bulk-action-drawer .ant-drawer-body {
  padding: 10px 10px 12px;
}

.ebs-ml-bulk-action-tab-panel {
  padding: 0 2px 8px;
}

.ebs-ml-bulk-action-tab-panel--edit {
  padding-top: 4px;
}

.ebs-ml-bulk-tab-card.ebs-assignment-bulk-drawer-panel {
  margin-bottom: 12px;
}

.ebs-ml-bulk-list-section-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
  margin: 0 0 8px;
}

.ebs-ml-bulk-list-empty {
  margin: 0;
  font-size: 12px;
  color: #64748b;
  line-height: 1.45;
}

.ebs-ml-bulk-filter-strip {
  padding: 6px 8px;
  border: 1px solid #e2e8f0;
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  background: #eef2f7;
  flex-shrink: 0;
}

.ebs-ml-bulk-filter-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
}

.ebs-ml-bulk-filter-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  flex-shrink: 0;
}

.ebs-ml-bulk-filter-dynamic {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 168px;
}

.ebs-bulk-drawer-filter-kind {
  flex: 0 0 auto;
  width: 92px;
  max-width: 92px;
}

.ebs-bulk-drawer-filter-search {
  width: 100%;
  max-width: 168px;
}

.ebs-bulk-show-dd {
  position: relative;
  flex: 0 0 auto;
  max-width: 168px;
}

.ebs-bulk-show-dd-summary {
  list-style: none;
  cursor: pointer;
  padding: 4px 8px;
  font-size: 11px;
  line-height: 1.35;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ebs-bulk-show-dd-summary::-webkit-details-marker {
  display: none;
}

.ebs-bulk-show-dd[open] .ebs-bulk-show-dd-summary {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.ebs-bulk-show-dd-panel {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  z-index: 30;
  min-width: 148px;
  max-width: 220px;
  max-height: 200px;
  overflow-y: auto;
  padding: 8px;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 0 6px 6px 6px;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
  box-sizing: border-box;
}

.ebs-bulk-show-dd-hint {
  margin: 0 0 8px;
  font-size: 10px;
  line-height: 1.35;
  color: #64748b;
}

.ebs-bulk-show-dd-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 4px 0;
  font-size: 12px;
  cursor: pointer;
}

.ebs-bulk-show-dd-clear {
  margin-top: 8px;
  padding: 4px 0 0;
  border: none;
  border-top: 1px solid #e2e8f0;
  width: 100%;
  background: none;
  font-size: 11px;
  font-weight: 600;
  color: #2563eb;
  cursor: pointer;
  font-family: inherit;
}

.ebs-bulk-show-dd-clear:hover {
  text-decoration: underline;
}

.ebs-ml-bulk-filter-row-hint {
  flex-basis: 100%;
  font-size: 10px;
  color: #64748b;
  line-height: 1.35;
  margin: 0;
}

.ebs-ml-bulk-drawer-table-wrap {
  flex: 1;
  min-height: 0;
  max-height: 220px;
  overflow: auto;
  border: 1px solid #e2e8f0;
  border-radius: 0 0 6px 6px;
  background: #f8fafc;
}

.ebs-ml-bulk-drawer-table {
  margin-top: 0;
  background: #fff;
}

.ebs-ml-bulk-filter-cant-buy-actions {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  flex-shrink: 0;
  margin-left: auto;
  max-width: 100%;
}

.ebs-ml-bulk-filter-cant-buy-all.ant-checkbox-wrapper {
  flex-shrink: 0;
  align-items: center;
  font-size: 10px;
  font-weight: 600;
  color: #475569;
  max-width: 100%;
}

.ebs-ml-bulk-table-delete-cant-buy.ant-btn {
  min-width: 28px;
  width: 28px;
  height: 28px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.ebs-ml-bulk-table-delete-cant-buy.ant-btn .anticon {
  margin-inline: 0 !important;
}

.ebs-ml-bulk-drawer-table.ebs-assignment-table--selectable col.ebs-assignment-col-show-num {
  width: 15%;
}

.ebs-ml-bulk-drawer-table.ebs-assignment-table--selectable col.ebs-assignment-col-code-col {
  width: 24%;
}

.ebs-ml-bulk-drawer-table.ebs-assignment-table--selectable col.ebs-assignment-col-buyer {
  width: 26%;
}

col.ebs-assignment-col-ml-group {
  width: 5.5rem;
}

/* My Shows buyer ML: wider group tag, narrower ML code */
.ebs-assignment-table--show-cards.ebs-assignment-table--tour-first.ebs-assignment-table--no-show-col.ebs-assignment-table--with-ml-group
  col.ebs-assignment-col-buyer {
  width: 28%;
}

.ebs-assignment-table--show-cards.ebs-assignment-table--tour-first.ebs-assignment-table--no-show-col.ebs-assignment-table--with-ml-group
  col.ebs-assignment-col-code-col {
  width: 22%;
}

.ebs-assignment-table--show-cards.ebs-assignment-table--tour-first.ebs-assignment-table--no-show-col.ebs-assignment-table--with-ml-group
  col.ebs-assignment-col-ml-group {
  width: 32%;
  min-width: 6.25rem;
}

.ebs-assignment-table--show-cards.ebs-assignment-table--with-ml-group
  .ebs-ml-group-pill {
  max-width: none;
  white-space: normal;
  word-break: break-word;
  line-height: 1.3;
  padding: 0.15rem 0.5rem;
}

.ebs-assignment-col-ml-group {
  text-align: left;
  vertical-align: middle;
}

.ebs-ml-group-pill-outer {
  display: block;
  max-width: 100%;
  min-width: 0;
  cursor: default;
}

.ebs-ml-group-pill {
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  max-width: 100%;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  font-size: 11px;
  line-height: 1.35;
  font-weight: 500;
  background: rgba(34, 197, 94, 0.14);
  color: inherit;
  border: 1px solid rgba(34, 197, 94, 0.35);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ebs-ml-group-pill--empty {
  background: transparent;
  border: none;
  font-weight: 400;
  color: #94a3b8;
}

.ebs-assignment-table--show-cards .ebs-ml-group-pill {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.28);
}

.ebs-assignment-table--show-cards .ebs-ml-group-pill--empty {
  color: #64748b;
}

.ebs-ml-group-buyer-filter-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}

.ebs-ml-group-buyer-filter-select.ant-select {
  min-width: 18rem;
  max-width: 30rem;
}

.ebs-ml-group-buyer-filter-select .ant-select-selector {
  font-size: 11px !important;
}

.ebs-ml-group-buyer-filter-dropdown {
  min-width: 28rem !important;
}

.ebs-ml-group-buyer-filter-dropdown .ant-select-item-option-content {
  font-size: 11px;
  line-height: 1.25;
  white-space: normal;
  word-break: break-word;
}

.ebs-ml-bulk-drawer-table.ebs-assignment-table--selectable col.ebs-assignment-col-cant-buy-read {
  width: 3.25rem;
}

.ebs-ml-bulk-drawer-table.ebs-assignment-table--selectable col.ebs-ml-bulk-col-delete-cant-buy {
  width: 2.75rem;
}

.ebs-ml-bulk-th-delete-cant-buy {
  text-align: center;
  vertical-align: middle;
  padding: 4px 4px !important;
}

.ebs-ml-bulk-th-delete-cant-buy-placeholder {
  font-size: 10px;
  color: #94a3b8;
  font-weight: 500;
}

.ebs-ml-bulk-td-delete-cant-buy {
  padding: 2px !important;
}

.ebs-assignment-table tbody td.ebs-assignment-col-cant-buy-read {
  text-align: center;
  font-size: 10px;
  vertical-align: middle;
}

.ebs-cant-buy-section {
  border-top: 1px solid #e2e8f0;
}

.ebs-cant-buy-table {
  border: 1px solid #cbd5e1;
}

.ebs-cant-buy-table th,
.ebs-cant-buy-table td {
  padding: 7px 8px;
  border-bottom: 1px solid #e2e8f0;
}

col.ebs-cant-buy-col-expand {
  width: 2.75rem;
}

col.ebs-cant-buy-col-select {
  width: 2.75rem;
}

col.ebs-cant-buy-col-cant-buy-count,
col.ebs-cant-buy-col-total-count {
  width: 4.25rem;
}

.ebs-cant-buy-col-select {
  text-align: center !important;
}

.ebs-cant-buy-col-cant-buy-count,
.ebs-cant-buy-col-total-count {
  text-align: center !important;
}

.ebs-cant-buy-col-cant-buy-count--positive {
  color: #dc2626;
  font-weight: 800;
}

.ebs-cant-buy-summary-row td {
  background: #ffffff;
  color: #1e293b;
  font-weight: 600;
}

.ebs-ml-manager-summary-row {
  cursor: pointer;
  outline: none;
}

.ebs-ml-manager-section .ebs-assignment-subhead {
  gap: 8px;
}

.ebs-ml-manager-section .ebs-assignment-buyer-search-wrap {
  gap: 8px;
  align-items: flex-end;
  flex-wrap: wrap;
  max-width: 100%;
}

.ebs-ml-manager-filter-field {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.ebs-ml-manager-filter-field--name {
  flex: 1 1 190px;
}

.ebs-ml-manager-filter-field--show {
  flex: 0 1 132px;
}

.ebs-ml-manager-show-filter {
  min-width: 78px;
  flex: 1 1 auto;
  max-width: 100%;
}

.ebs-ml-manager-expand-all-btn.ant-btn {
  height: 22px;
  padding: 0 6px;
  font-size: 10px;
  font-weight: 700;
  color: #2563eb;
}

.ebs-ml-manager-expand-all-btn.ant-btn:disabled {
  color: #94a3b8;
}

.ebs-ml-manager-summary-row td {
  transition:
    background-color 140ms ease,
    box-shadow 140ms ease,
    color 140ms ease;
}

.ebs-ml-manager-summary-row:hover td,
.ebs-ml-manager-summary-row:focus-visible td {
  background: #eff6ff;
  box-shadow:
    inset 0 1px 0 rgba(37, 99, 235, 0.18),
    inset 0 -1px 0 rgba(37, 99, 235, 0.18);
}

.ebs-ml-manager-summary-row--expanded td {
  background: #dbeafe;
  box-shadow:
    inset 0 1px 0 rgba(37, 99, 235, 0.28),
    inset 0 -1px 0 rgba(37, 99, 235, 0.28),
    0 0 12px rgba(37, 99, 235, 0.2);
}

.ebs-ml-manager-summary-row--expanded td:first-child,
.ebs-ml-manager-summary-row:hover td:first-child,
.ebs-ml-manager-summary-row:focus-visible td:first-child {
  box-shadow:
    inset 3px 0 0 #2563eb,
    inset 0 1px 0 rgba(37, 99, 235, 0.18),
    inset 0 -1px 0 rgba(37, 99, 235, 0.18);
}

.ebs-cant-buy-details-row > td {
  padding: 0 !important;
  background: #f8fafc;
}

.ebs-cant-buy-details-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 10px;
}

.ebs-cant-buy-details-table th,
.ebs-cant-buy-details-table td {
  padding: 6px 8px;
  border-bottom: 1px solid #e2e8f0;
}

.ebs-cant-buy-details-table th {
  color: #475569;
  font-weight: 700;
  text-transform: uppercase;
}

.ebs-ml-manager-detail-row--flagged td {
  color: #dc2626;
  font-weight: 800;
}

.ebs-cant-buy-empty {
  padding: 14px 10px !important;
  color: #64748b;
  text-align: center;
}

html[data-mainview-theme="dark"] .ebs-cant-buy-table,
html[data-mainview-theme="dark"] .ebs-cant-buy-details-table {
  border-color: #334155;
}

html[data-mainview-theme="dark"] .ebs-cant-buy-table th,
html[data-mainview-theme="dark"] .ebs-cant-buy-details-table th {
  background: #1f2937;
  border-color: #334155;
  color: #94a3b8;
}

html[data-mainview-theme="dark"] .ebs-cant-buy-summary-row td,
html[data-mainview-theme="dark"] .ebs-cant-buy-details-table td {
  background: #111827;
  border-color: #334155;
  color: #e5e7eb;
}

html[data-mainview-theme="dark"] .ebs-ml-manager-detail-row--flagged td {
  color: #fca5a5;
}

html[data-mainview-theme="dark"] .ebs-cant-buy-col-cant-buy-count--positive {
  color: #fca5a5;
}

html[data-mainview-theme="dark"] .ebs-cant-buy-details-row > td {
  background: #0f172a;
}

html[data-mainview-theme="dark"] .ebs-ml-manager-summary-row:hover td,
html[data-mainview-theme="dark"] .ebs-ml-manager-summary-row:focus-visible td {
  background: #172554;
  box-shadow:
    inset 0 1px 0 rgba(96, 165, 250, 0.26),
    inset 0 -1px 0 rgba(96, 165, 250, 0.26);
}

html[data-mainview-theme="dark"] .ebs-ml-manager-summary-row--expanded td {
  background: #1e3a8a;
  box-shadow:
    inset 0 1px 0 rgba(96, 165, 250, 0.34),
    inset 0 -1px 0 rgba(96, 165, 250, 0.34),
    0 0 14px rgba(96, 165, 250, 0.24);
}

.ebs-ml-bulk-drawer-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f1f5f9;
}

.ebs-ml-bulk-drawer-table thead th.ebs-assignment-col-show,
.ebs-ml-bulk-drawer-table thead th.ebs-assignment-col-cant-buy-read,
.ebs-ml-bulk-drawer-table thead th.ebs-ml-bulk-th-delete-cant-buy {
  text-transform: none;
}

.ebs-ml-bulk-empty-td {
  padding: 12px 10px;
  font-size: 12px;
  color: #64748b;
}

.ebs-shows-header-btn--bulk-delete {
  border-color: rgba(248, 113, 113, 0.45);
  color: #fca5a5;
}

.ebs-shows-header-btn--bulk-delete:hover:not(:disabled) {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(252, 165, 165, 0.6);
  color: #fecaca;
}

.ebs-shows-header-btn--bulk-delete .ebs-shows-header-btn-icon {
  color: inherit;
}

.ebs-assignment-bulk-drawer .ant-drawer-header {
  padding: 16px 20px 14px;
  border-bottom: 1px solid #e2e8f0;
  background: #fff;
}

.ebs-assignment-bulk-drawer .ant-drawer-title {
  margin: 0;
}

.ebs-assignment-bulk-drawer-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ebs-assignment-bulk-drawer-title-main {
  font-family: "Barlow Condensed", Inter, system-ui, sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #0f172a;
  text-transform: none;
}

.ebs-assignment-bulk-drawer-title-sub {
  font-size: 12px;
  font-weight: 500;
  color: #64748b;
  line-height: 1.35;
  text-transform: none;
  letter-spacing: 0;
}

.ebs-assignment-bulk-drawer-body-inner {
  padding: 16px 18px 20px;
}

.ebs-assignment-bulk-drawer-panel {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 12px;
  box-shadow: 0 1px 2px rgb(15 23 42 / 6%);
}

.ebs-assignment-bulk-drawer-panel:last-child {
  margin-bottom: 0;
}

.ebs-assignment-bulk-drawer-panel--segment {
  padding-bottom: 12px;
}

.ebs-assignment-bulk-drawer-panel-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 10px;
}

.ebs-assignment-bulk-drawer-segmented.ant-segmented {
  width: 100%;
}

.ebs-assignment-bulk-drawer .ebs-assignment-bulk-drawer-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px 16px;
  background: #fff;
}

.ebs-assignment-bulk-drawer-summary {
  font-size: 13px;
  line-height: 1.5;
  color: #475569;
  margin: 0 0 14px;
  padding: 0 2px;
}

.ebs-assignment-bulk-drawer-panel--form {
  margin-bottom: 0;
}

/* Bulk edit shows: same grid as per-show editor (date / time / venue, then city / state / code / priority, link, buyers). */
.ebs-assignment-bulk-drawer .ebs-shows-bulk-drawer-form.ebs-show-edit-body {
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  padding: 12px;
}

.ebs-assignment-bulk-drawer-fields {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ebs-assignment-bulk-drawer-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  max-width: 100%;
}

.ebs-assignment-bulk-drawer-field-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}

/* Match Ant middle controls: same font, height, radius as each other (not table-compact styles). */
.ebs-assignment-bulk-drawer .ebs-assignment-bulk-drawer-field .ant-input.ebs-assignment-bulk-drawer-control {
  font-family: Inter, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  min-height: 32px;
  padding: 5px 11px;
  border-radius: 8px;
  border-color: #cbd5e1;
  color: #0f172a;
}

.ebs-assignment-bulk-drawer .ebs-assignment-bulk-drawer-field .ant-input.ebs-assignment-bulk-drawer-control::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

.ebs-assignment-bulk-drawer .ebs-assignment-bulk-drawer-field .ant-select.ebs-assignment-bulk-drawer-select {
  width: 100%;
  max-width: 100%;
}

.ebs-assignment-bulk-drawer .ebs-assignment-bulk-drawer-field .ant-select.ebs-assignment-bulk-drawer-select .ant-select-selector {
  min-height: 32px !important;
  height: 32px !important;
  padding-inline: 11px !important;
  padding-block: 0 !important;
  border-radius: 8px !important;
  border-color: #cbd5e1 !important;
  font-family: Inter, system-ui, sans-serif !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  align-items: center !important;
}

.ebs-assignment-bulk-drawer .ebs-assignment-bulk-drawer-field .ant-select.ebs-assignment-bulk-drawer-select .ant-select-selection-item,
.ebs-assignment-bulk-drawer .ebs-assignment-bulk-drawer-field .ant-select.ebs-assignment-bulk-drawer-select .ant-select-selection-placeholder {
  line-height: 30px !important;
  color: #0f172a;
}

.ebs-assignment-bulk-drawer .ebs-assignment-bulk-drawer-field .ant-select.ebs-assignment-bulk-drawer-select .ant-select-selection-placeholder {
  color: #94a3b8;
  font-weight: 400;
}

.ebs-assignment-bulk-drawer-select-dropdown.ant-select-dropdown {
  border-radius: 8px;
}

.ebs-assignment-bulk-drawer-select {
  width: 100%;
  max-width: 100%;
}

/* Single row: nowrap + scroll on very narrow panels instead of wrapping */
.ebs-shows-panel-header {
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.ebs-shows-panel-header::-webkit-scrollbar {
  height: 4px;
}

.ebs-shows-panel-header::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.45);
  border-radius: 4px;
}

.ebs-shows-panel-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex-shrink: 1;
}

.ebs-shows-panel-header-left .ebs-buyer-header-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ebs-shows-find-bar {
  --ebs-shows-find-h: 22px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-bottom: 1px solid #e2e8f0;
  background: #f1f5f9;
}

.ebs-shows-find-bar-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 5px;
  background: #2563eb;
  color: #eff6ff;
  font-size: 11px;
  flex-shrink: 0;
}

.ebs-shows-find-bar-label {
  font-size: 9px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  flex-shrink: 0;
}

.ebs-shows-find-bar-input {
  flex: 1 1 auto;
  min-width: 0;
}

.ebs-shows-find-bar-input.ant-input,
.ebs-shows-find-bar-input.ant-input-affix-wrapper {
  min-height: var(--ebs-shows-find-h) !important;
  height: var(--ebs-shows-find-h) !important;
  border-radius: 5px !important;
  border-color: #cbd5e1 !important;
  font-size: 11px !important;
  line-height: calc(var(--ebs-shows-find-h) - 2px) !important;
  padding-inline: 8px !important;
}

.ebs-shows-find-bar-input.ant-input::placeholder,
.ebs-shows-find-bar-input.ant-input-affix-wrapper input::placeholder {
  font-size: 11px !important;
  color: #94a3b8;
}

.ebs-shows-find-bar-input.ant-input:hover,
.ebs-shows-find-bar-input.ant-input-affix-wrapper:hover {
  border-color: #94a3b8 !important;
}

.ebs-shows-find-bar-input.ant-input:focus,
.ebs-shows-find-bar-input.ant-input-affix-wrapper-focused {
  border-color: #2563eb !important;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.2) !important;
}

.ebs-shows-find-bar-clear.ant-btn-link {
  flex-shrink: 0;
  height: var(--ebs-shows-find-h);
  padding: 0 4px;
  font-size: 11px;
  line-height: var(--ebs-shows-find-h);
}

.ebs-shows-search-empty {
  margin: 12px 8px;
  padding: 10px 12px;
  border-radius: 6px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  color: #64748b;
  font-size: 12px;
  text-align: center;
}

.ebs-panel--match-shows .ebs-shows-find-bar {
  background: #f1f5f9;
  border-bottom-color: #e2e8f0;
}

.ebs-shows-panel-header-spacer {
  flex: 1 1 0;
  min-width: 4px;
  height: 1px;
}

.ebs-shows-header-btn {
  box-sizing: border-box;
  margin: 0;
  padding: 5px 7px;
  border: 1px solid rgba(248, 250, 252, 0.35);
  border-radius: 6px;
  background: transparent;
  color: #cbd5e1;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
  cursor: pointer;
  text-align: center;
  font-family: inherit;
  flex-shrink: 0;
}

.ebs-shows-header-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(248, 250, 252, 0.5);
  color: #f1f5f9;
}

.ebs-shows-header-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.ebs-shows-header-btn--done-editing {
  border-color: #15803d;
  background: #15803d;
  color: #f0fdf4;
  font-weight: 700;
}

.ebs-shows-header-btn--done-editing:hover:not(:disabled) {
  background: #166534;
  border-color: #166534;
  color: #ffffff;
}

.ebs-shows-header-btn--done-editing .ebs-shows-header-btn-icon {
  color: inherit;
}

.ebs-shows-header-btn--toggle {
  max-width: none;
}

/* ML/Code visibility toggle — matches panel accent when panel is shown */
.ebs-shows-header-btn--ml-toggle {
  max-width: none;
}

.ebs-shows-header-btn--ml-toggle-visible {
  border-color: #2563eb;
  color: #e2e8f0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.ebs-shows-header-btn--ml-toggle-visible:hover:not(:disabled) {
  border-color: #3b82f6;
  background: rgba(37, 99, 235, 0.12);
}

.ebs-shows-header-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.ebs-shows-header-actions .ebs-shows-header-btn {
  white-space: nowrap;
}

.ebs-shows-header-btn-icon {
  margin-right: 4px;
  font-size: 11px;
}

.ebs-panel-collapse-hit {
  border: none;
  background: transparent;
  color: #94a3b8;
  padding: 4px 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  border-radius: 4px;
}

.ebs-panel-collapse-hit:hover {
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.06);
}

.ebs-panel-header-meta {
  font-weight: 500;
  color: #94a3b8;
  text-transform: none;
  letter-spacing: 0;
}

.ebs-panel-body {
  flex: 1;
  padding: 0;
  min-height: 0;
}

.ebs-panel-body--scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

.ebs-entries-weekday-tabs {
  flex-shrink: 0;
  padding: 6px 8px 0;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}

.ebs-entries-view-tabs {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px 0;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}

.ebs-entries-view-tab {
  flex-shrink: 0;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #fff;
  color: #334155;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  padding: 5px 10px;
  cursor: pointer;
}

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

.ebs-scoreboard-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  font-family: Karla, Inter, system-ui, sans-serif;
}

.ebs-scoreboard-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 5px 8px;
  border: 1px solid #cbd5e1;
  background: #f1f5f9;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #475569;
  text-align: left;
}

.ebs-scoreboard-table--sortable .ebs-th-sort-btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  width: 100%;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  font-size: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
  text-align: left;
}

.ebs-scoreboard-table--sortable .ebs-th-sort-btn--center {
  justify-content: center;
  text-align: center;
}

.ebs-scoreboard-table--sortable .ebs-th-sort-btn:hover {
  color: #0f172a;
}

.ebs-scoreboard-table--sortable .ebs-th-sort-label {
  flex: 0 1 auto;
  min-width: 0;
}

.ebs-scoreboard-table--sortable .ebs-th-sort-indicator-slot {
  flex-shrink: 0;
  min-width: 1em;
  font-size: 9px;
  line-height: 1;
  text-align: center;
}

.ebs-scoreboard-table--sortable .ebs-th-sort-indicator-slot--muted {
  opacity: 0.38;
  font-weight: 600;
}

.ebs-scoreboard-table--sortable .ebs-th-sort-indicator-slot--active {
  opacity: 1;
  font-weight: 700;
  color: #1d4ed8;
}

.ebs-scoreboard-table--sortable thead th.ebs-th-sort--active {
  background: #e0ecff;
  color: #0f172a;
}

.ebs-scoreboard-table--sortable thead th.ebs-th-sort--active .ebs-th-sort-btn {
  color: inherit;
}

.ebs-scoreboard-table tbody td {
  padding: 6px 8px;
  border: 1px solid #cbd5e1;
  vertical-align: middle;
}

.ebs-scoreboard-tickets {
  color: #047857;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.ebs-scoreboard-attempted {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.ebs-scoreboard-ml-ratio {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 10px;
}

.ebs-scoreboard-ml-ratio--flagged {
  color: #b91c1c;
}

.ebs-scoreboard-empty {
  padding: 12px 10px;
  font-size: 11px;
}

.ebs-entries-weekday-tabs .buying-sheet__persona-switch {
  width: 100%;
}

/* Buyer entries filter — compact strip (slate #f1f5f9, aligned with tours table) */
.ebs-entries-filter-wrap {
  --ebs-entries-filter-h: 22px;
  flex-shrink: 0;
  padding: 4px 8px;
  border-bottom: 1px solid #e2e8f0;
  background: #f1f5f9;
}

.ebs-entries-filter-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.ebs-entries-filter-label {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #64748b;
  line-height: var(--ebs-entries-filter-h);
}

.ebs-entries-filter-fields {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.ebs-entries-filter-input {
  flex: 1 1 3rem;
  min-width: 3rem;
  max-width: 5.25rem;
}

.ebs-entries-filter-row .ebs-entries-filter-input.ant-input,
.ebs-entries-filter-row .ant-input-affix-wrapper.ebs-entries-filter-input {
  min-height: var(--ebs-entries-filter-h) !important;
  height: var(--ebs-entries-filter-h) !important;
  padding-block: 0 !important;
  padding-inline: 6px !important;
  font-size: 11px !important;
  line-height: calc(var(--ebs-entries-filter-h) - 2px) !important;
  border-radius: 4px !important;
  border-width: 1px !important;
  border-style: solid !important;
  background-color: #ffffff !important;
  border-color: #cbd5e1 !important;
  box-shadow: none !important;
}

.ebs-entries-filter-row .ant-input-affix-wrapper.ebs-entries-filter-input {
  display: inline-flex !important;
  align-items: center !important;
}

.ebs-entries-filter-row .ebs-entries-filter-input.ant-input::placeholder,
.ebs-entries-filter-row
  .ant-input-affix-wrapper.ebs-entries-filter-input
  input::placeholder {
  color: #94a3b8 !important;
  font-size: 10px !important;
}

.ebs-entries-filter-row .ebs-entries-filter-input.ant-input:hover,
.ebs-entries-filter-row .ant-input-affix-wrapper.ebs-entries-filter-input:hover {
  border-color: #93c5fd !important;
}

.ebs-entries-filter-row .ebs-entries-filter-input.ant-input:focus,
.ebs-entries-filter-row .ant-input-affix-wrapper.ebs-entries-filter-input:focus-within {
  border-color: #2563eb !important;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.2) !important;
}

.ebs-entries-filter-row .ant-input-affix-wrapper .ant-input-clear-icon {
  font-size: 10px;
}

.ebs-entries-filter-clear.ant-btn-link {
  flex-shrink: 0;
  height: var(--ebs-entries-filter-h);
  padding: 0 4px;
  font-size: 11px;
  font-weight: 600;
  line-height: var(--ebs-entries-filter-h);
  color: #2563eb !important;
}

.ebs-entries-filter-clear.ant-btn-link:hover:not(:disabled) {
  color: #1d4ed8 !important;
}

.ebs-entries-filter-clear.ant-btn-link:disabled {
  color: #94a3b8 !important;
}

/* Shows panel: title bar fixed; bulk / new show / time slot / list share one scroll */
.ebs-panel > .ebs-panel-header {
  flex-shrink: 0;
}

.ebs-shows-panel-scroll.ebs-panel-body--scroll {
  flex: 1 1 auto;
  min-height: 0;
  padding: 0;
  box-sizing: border-box;
  background: #eef2f7;
}

/* Panel fetch: spinner only — no caption; soft dim behind content */
.ebs-shows-loading.ant-spin-nested-loading {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 200px;
}

.ebs-shows-loading.ant-spin-nested-loading > .ant-spin-container {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.ebs-shows-loading .ant-spin-blur {
  opacity: 0.48;
  filter: saturate(0.92);
}

.ebs-shows-loading .ant-spin-text {
  display: none !important;
}

.ebs-shows-loading .ant-spin-dot-item {
  background-color: #2563eb;
}

.ebs-entries-loading.ant-spin-nested-loading,
.ebs-assignments-loading.ant-spin-nested-loading {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 120px;
}

/* Buyer entries: allow horizontal scroll so Conf # / Error cannot clip + Add. */
.ebs-col--entries .ebs-entries-loading.ant-spin-nested-loading,
.ebs-col--entries .ebs-entries-loading .ant-spin-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.ebs-assignments-loading.ant-spin-nested-loading > .ant-spin-container {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.ebs-entries-loading .ant-spin-blur,
.ebs-assignments-loading .ant-spin-blur {
  opacity: 0.48;
}

.ebs-entries-loading .ant-spin-text,
.ebs-assignments-loading .ant-spin-text {
  display: none !important;
}

.ebs-entries-loading .ant-spin-dot-item,
.ebs-assignments-loading .ant-spin-dot-item {
  background-color: #2563eb;
}

.ebs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  font-family: var(--bs-font-sans, Inter, sans-serif);
}

.ebs-table thead th {
  background: #f3f4f6;
  color: #475569;
  font-weight: 600;
  text-align: left;
  padding: 6px 5px;
  border-bottom: 1px solid #e5e7eb;
  white-space: nowrap;
}

/* Buyer entries — single 1px grid; blue rule under add row matches weight, accent only */
.ebs-table--entries {
  --ebs-entries-ctrl-h: 18px;
  table-layout: fixed;
  width: 100%;
  min-width: 36rem;
  font-size: 10px;
  font-family: Karla, Inter, system-ui, sans-serif;
  border: 1px solid #cbd5e1;
  box-sizing: border-box;
}

.ebs-table--entries thead th {
  background: #f1f5f9;
  color: #475569;
  font-weight: 700;
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: Karla, Inter, system-ui, sans-serif;
  padding: 4px 6px;
  border-bottom: 1px solid #cbd5e1;
  border-right: 1px solid #cbd5e1;
}

.ebs-table--entries thead th:last-child {
  border-right: none;
}

.ebs-table--entries .ebs-th-sort-btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  width: 100%;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  font-size: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
  text-align: left;
}

.ebs-table--entries .ebs-th-sort-btn:hover {
  color: #0f172a;
}

.ebs-table--entries .ebs-th-sort-label {
  flex: 1;
  min-width: 0;
}

.ebs-table--entries .ebs-th-sort-indicator-slot {
  flex-shrink: 0;
  min-width: 1em;
  font-size: 9px;
  line-height: 1;
  text-align: center;
}

.ebs-table--entries .ebs-th-sort-indicator-slot--muted {
  opacity: 0.38;
  font-weight: 600;
}

.ebs-table--entries .ebs-th-sort-indicator-slot--active {
  opacity: 1;
  font-weight: 700;
  color: #1d4ed8;
}

.ebs-table--entries thead th.ebs-th-sort--active {
  background: #e0ecff;
  color: #0f172a;
}

.ebs-table--entries thead th.ebs-th-sort--active .ebs-th-sort-btn {
  color: #0f172a;
}

.ebs-table--entries thead th.ebs-th-conf-error,
.ebs-table--entries tbody td.ebs-td-conf-error {
  width: 8.25rem;
  min-width: 8.25rem;
  max-width: 8.25rem;
  box-sizing: border-box;
  overflow: hidden;
}

.ebs-table--entries thead th.ebs-th-conf-error {
  white-space: normal;
  line-height: 1.25;
}

.ebs-table--entries tbody td.ebs-td-conf-error {
  word-break: break-word;
}

.ebs-table--entries tbody td.ebs-td-conf-error .ant-input,
.ebs-table--entries tbody td.ebs-td-conf-error .ant-select,
.ebs-table--entries tbody td.ebs-td-conf-error .ebs-conf-error-split {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}

.ebs-table--entries thead th:first-child,
.ebs-table--entries tbody td:first-child {
  width: 5.25rem;
  max-width: 5.25rem;
}

.ebs-table--entries thead th.ebs-th-show,
.ebs-table--entries tbody td.ebs-td-show {
  width: 5rem;
  min-width: 5rem;
  max-width: 5.25rem;
  padding-left: 4px;
  padding-right: 4px;
  box-sizing: border-box;
}

.ebs-table--entries thead th.ebs-th-bound,
.ebs-table--entries tbody td.ebs-td-bound {
  width: 4.15rem;
  max-width: 4.35rem;
  padding-left: 4px;
  padding-right: 4px;
  box-sizing: border-box;
}

.ebs-table--entries thead th.ebs-th-denied,
.ebs-table--entries tbody td.ebs-td-denied {
  width: 3.5rem;
  max-width: 3.75rem;
  padding-left: 4px;
  padding-right: 4px;
  box-sizing: border-box;
}

.ebs-table--entries tbody td {
  border-right: 1px solid #cbd5e1;
  border-bottom: 1px solid #cbd5e1;
  padding: 3px 6px;
  vertical-align: middle;
  font-family: inherit;
  font-size: 10px;
  line-height: 1.2;
  color: #1e293b;
}

.ebs-table--entries tbody td:last-child {
  border-right: none;
}

.ebs-table--entries tbody tr.ebs-entry-row--add td {
  background: #f1f5f9;
  border-bottom: 1px solid #2563eb !important;
}

.ebs-table--entries tbody tr.ebs-entry-row--add td .ebs-cell-input,
.ebs-table--entries tbody tr.ebs-entry-row--add td .ebs-cell-select .ant-select-selector {
  background-color: #ffffff !important;
}

.ebs-table--entries tbody tr.ebs-entry-row--add td .ebs-cell-input--readonly-buyer.ant-input {
  background: #ffffff !important;
  border-color: #e2e8f0;
}

/* Add row: same outer height for inputs and select roots (antd select root defaults to 24px). */
.ebs-table--entries tbody tr.ebs-entry-row--add td {
  vertical-align: middle;
}

.ebs-table--entries tbody tr.ebs-entry-row--add td .ant-input,
.ebs-table--entries tbody tr.ebs-entry-row--add td .ant-select,
.ebs-table--entries tbody tr.ebs-entry-row--add td .ebs-tour-select-shelf {
  display: block !important;
  margin: 0;
}

.ebs-table--entries tbody tr.ebs-entry-row--add td .ant-input {
  padding-block: 0 !important;
}

.ebs-table--entries tbody tr.ebs-entry-row--add td .ebs-btn-add.ant-btn-sm {
  display: inline-flex !important;
  vertical-align: middle;
}

.ebs-table--entries tbody tr:not(.ebs-entry-row--add) td.ebs-entry-cell--editable {
  cursor: pointer;
  outline: none;
  transition:
    background-color 0.12s ease,
    box-shadow 0.12s ease;
}

.ebs-table--entries tbody tr:not(.ebs-entry-row--add) td.ebs-entry-cell--editable:hover {
  background-color: #eff6ff;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.35);
}

.ebs-table--entries tbody tr:not(.ebs-entry-row--add) td.ebs-entry-cell--editable:focus-visible {
  background-color: #eff6ff;
  box-shadow: inset 0 0 0 2px rgba(37, 99, 235, 0.55);
}

.ebs-entry-overflow-tooltip .ant-tooltip-inner {
  max-width: min(90vw, 32rem);
  word-break: break-word;
  white-space: pre-wrap;
}

.ebs-table--entries .ebs-td-buyer .ebs-entry-readtext-measure {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ebs-table--entries .ebs-td-ml .ebs-entry-readtext-measure {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.2;
}

.ebs-table--entries .ebs-td-ml,
.ebs-table--entries .ebs-td-buyer {
  font-weight: 700;
  color: #0f172a;
}

/* My Shows — tour column: fixed table layout so long tour names never resize the column or push + Add off-screen */
.ebs-table--entries.ebs-table--tour-col {
  table-layout: fixed;
}

/* My Shows — tour column before ML */
.ebs-table--entries.ebs-table--tour-col.ebs-table--tour-col--buyer-first thead th:nth-child(1),
.ebs-table--entries.ebs-table--tour-col.ebs-table--tour-col--buyer-first tbody td:nth-child(1) {
  width: 6.75rem;
  max-width: 6.75rem;
  min-width: 0;
  overflow: hidden;
  box-sizing: border-box;
}

.ebs-table--entries.ebs-table--tour-col.ebs-table--tour-col--buyer-first thead th:nth-child(2),
.ebs-table--entries.ebs-table--tour-col.ebs-table--tour-col--buyer-first tbody td:nth-child(2) {
  width: 5.25rem;
  max-width: 5.25rem;
  min-width: 0;
  overflow: hidden;
  box-sizing: border-box;
}

/* Captain / EBS — ML column before tour */
.ebs-table--entries.ebs-table--tour-col.ebs-table--tour-col--ml-first thead th:nth-child(2),
.ebs-table--entries.ebs-table--tour-col.ebs-table--tour-col--ml-first tbody td:nth-child(2) {
  width: 6.75rem;
  max-width: 6.75rem;
  min-width: 0;
  overflow: hidden;
  box-sizing: border-box;
}

.ebs-table--entries.ebs-table--tour-col.ebs-table--tour-col--ml-first thead th:nth-child(1),
.ebs-table--entries.ebs-table--tour-col.ebs-table--tour-col--ml-first tbody td:nth-child(1) {
  width: 5.25rem;
  max-width: 5.25rem;
  min-width: 0;
  overflow: hidden;
  box-sizing: border-box;
}

.ebs-table--entries.ebs-table--tour-col thead th.ebs-th-show,
.ebs-table--entries.ebs-table--tour-col tbody td.ebs-td-show {
  width: 5rem;
  min-width: 5rem;
  max-width: 5.25rem;
}

.ebs-table--entries.ebs-table--tour-col thead th.ebs-th-show,
.ebs-table--entries.ebs-table--tour-col tbody td.ebs-td-show,
.ebs-table--entries.ebs-table--tour-col thead th.ebs-th-bound,
.ebs-table--entries.ebs-table--tour-col tbody td.ebs-td-bound,
.ebs-table--entries.ebs-table--tour-col thead th.ebs-th-denied,
.ebs-table--entries.ebs-table--tour-col tbody td.ebs-td-denied {
  overflow: hidden;
  text-align: center;
}

.ebs-table--entries.ebs-table--tour-col tbody td.ebs-td-show .ebs-cell-select.ant-select,
.ebs-table--entries.ebs-table--tour-col tbody td.ebs-td-bound .ebs-cell-select.ant-select,
.ebs-table--entries.ebs-table--tour-col tbody td.ebs-td-show .ebs-cell-input,
.ebs-table--entries.ebs-table--tour-col tbody td.ebs-td-bound .ebs-cell-input {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}

.ebs-table--entries.ebs-table--tour-col tbody td.ebs-td-show .ant-select-selector,
.ebs-table--entries.ebs-table--tour-col tbody td.ebs-td-bound .ant-select-selector {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow: hidden !important;
}

.ebs-table--entries.ebs-table--tour-col tbody td.ebs-td-show .ant-select-selection-item,
.ebs-table--entries.ebs-table--tour-col tbody td.ebs-td-bound .ant-select-selection-item,
.ebs-table--entries.ebs-table--tour-col tbody td.ebs-td-show .ant-select-selection-placeholder,
.ebs-table--entries.ebs-table--tour-col tbody td.ebs-td-bound .ant-select-selection-placeholder {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

/* Show # select: keep two-digit show numbers visible inside a narrow cell */
.ebs-table--entries tbody td.ebs-td-show .ebs-cell-select.ant-select .ant-select-selector {
  padding-inline: 4px 18px !important;
}

.ebs-table--entries tbody td.ebs-td-show .ant-select-selection-item,
.ebs-table--entries tbody td.ebs-td-show .ant-select-selection-placeholder {
  flex: 0 1 auto !important;
  min-width: 1.25rem !important;
  max-width: none !important;
}

.ebs-table--entries.ebs-table--tour-col .ebs-th-actions,
.ebs-table--entries.ebs-table--tour-col .ebs-td-actions {
  width: 3.25rem;
  min-width: 3.25rem;
  max-width: 3.25rem;
}

.ebs-table--entries .ebs-tour-select-shelf {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.ebs-table--entries .ebs-tour-select-shelf .ebs-cell-select.ant-select {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}

.ebs-table--entries .ebs-tour-select-shelf .ant-select-selector {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow: hidden !important;
}

.ebs-table--entries .ebs-tour-select-shelf .ant-select-selection-wrap,
.ebs-table--entries .ebs-tour-select-shelf .ant-select-selection-search {
  flex: 1 1 0 !important;
  min-width: 0 !important;
  max-width: 100% !important;
}

.ebs-table--entries .ebs-tour-select-shelf .ant-select-selection-item,
.ebs-table--entries .ebs-tour-select-shelf .ant-select-selection-placeholder {
  flex: 1 1 0 !important;
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.ebs-table--entries .ebs-cell-input--readonly-buyer.ant-input {
  background: #f8fafc;
  color: #334155;
  cursor: default;
  border-color: #e2e8f0;
}

.ebs-table--entries .ebs-td-show {
  font-weight: 700;
  color: #2563eb;
  text-align: center;
}

.ebs-table--entries .ebs-td-bound {
  font-weight: 700;
  color: #6d28d9;
  text-align: center;
}

.ebs-table--entries thead th.ebs-th-qty,
.ebs-table--entries tbody td.ebs-td-qty {
  width: 4.75rem;
  max-width: 5.25rem;
  min-width: 4.5rem;
  padding-left: 4px;
  padding-right: 4px;
  box-sizing: border-box;
  overflow: visible;
}

.ebs-table--entries tbody td.ebs-td-qty .ebs-cell-input,
.ebs-table--entries tbody td.ebs-td-qty .ant-input {
  width: 100%;
  min-width: 3.5rem;
  max-width: 100%;
  box-sizing: border-box;
}

.ebs-table--entries .ebs-qty-ok {
  color: #15803d;
  font-weight: 700;
}

.ebs-table--entries .ebs-td-conf {
  font-weight: 400;
  color: #64748b;
}

.ebs-table--entries .ebs-denied-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  width: 16px;
  height: 16px;
  margin: 0 auto;
  background: #fee2e2;
  border: 1px solid #fecaca;
  border-radius: 3px;
  color: #dc2626;
  font-weight: 700;
  font-size: 10px;
  line-height: 1;
}

.ebs-table--entries .ebs-error-tag {
  display: inline-block;
  padding: 1px 5px;
  border-radius: 3px;
  background: #fef9c3;
  border: 1px solid #fde047;
  color: #92400e;
  font-weight: 600;
  font-size: 10px;
  line-height: 1.2;
}

.ebs-table--entries .ebs-cell-input,
.ebs-table--entries .ebs-cell-select .ant-select-selector {
  font-family: Karla, Inter, system-ui, sans-serif !important;
  font-size: 10px !important;
}

.ebs-table--entries .ebs-cell-select .ant-select-selection-item,
.ebs-table--entries .ebs-cell-select .ant-select-selection-placeholder,
.ebs-table--entries .ebs-cell-select .ant-select-selection-search-input {
  font-size: 10px !important;
}

.ebs-table--entries tbody .ant-select .ant-select-arrow {
  font-size: 8px !important;
}

.ebs-table--entries .ebs-cell-input.ebs-mono,
.ebs-table--entries .ebs-td-conf.ebs-mono {
  font-family: ui-monospace, Menlo, Consolas, monospace !important;
}

/* Match Input and Select heights (compact row density) */
.ebs-table--entries tbody .ant-input {
  height: var(--ebs-entries-ctrl-h) !important;
  min-height: var(--ebs-entries-ctrl-h) !important;
  max-height: var(--ebs-entries-ctrl-h) !important;
  line-height: calc(var(--ebs-entries-ctrl-h) - 2px) !important;
  padding: 0 6px !important;
  font-size: 10px !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  vertical-align: middle !important;
}

/* Ant Design keeps select root at controlHeightSM (~24px) unless the root is capped too. */
.ebs-table--entries tbody .ant-select.ant-select-sm,
.ebs-table--entries tbody .ant-select-single:not(.ant-select-customize-input) {
  height: var(--ebs-entries-ctrl-h) !important;
  min-height: var(--ebs-entries-ctrl-h) !important;
  max-height: var(--ebs-entries-ctrl-h) !important;
  line-height: calc(var(--ebs-entries-ctrl-h) - 2px) !important;
  vertical-align: middle !important;
}

.ebs-table--entries tbody .ant-input-affix-wrapper {
  height: var(--ebs-entries-ctrl-h) !important;
  min-height: var(--ebs-entries-ctrl-h) !important;
  padding-inline: 6px !important;
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
}

.ebs-table--entries tbody .ant-input-affix-wrapper .ant-input {
  height: auto !important;
  min-height: 0 !important;
  line-height: calc(var(--ebs-entries-ctrl-h) - 2px) !important;
  padding: 0 !important;
}

.ebs-table--entries tbody .ant-select:not(.ant-select-customize-input) .ant-select-selector {
  height: 100% !important;
  min-height: var(--ebs-entries-ctrl-h) !important;
  padding: 0 6px !important;
  display: flex !important;
  align-items: center !important;
  box-sizing: border-box !important;
}

.ebs-table--entries tbody .ebs-cell-select.ant-select,
.ebs-table--entries tbody .ebs-select-denied.ant-select {
  width: 100% !important;
  max-width: 100% !important;
}

.ebs-table--entries tbody .ant-select-single .ant-select-selector .ant-select-selection-item,
.ebs-table--entries tbody .ant-select-single .ant-select-selector .ant-select-selection-placeholder {
  line-height: calc(var(--ebs-entries-ctrl-h) - 2px) !important;
}

.ebs-table--entries tbody .ant-select .ant-select-selection-search-input {
  height: calc(var(--ebs-entries-ctrl-h) - 2px) !important;
  line-height: calc(var(--ebs-entries-ctrl-h) - 2px) !important;
}

.ebs-table--entries tbody .ebs-btn-add.ant-btn-sm {
  height: var(--ebs-entries-ctrl-h) !important;
  min-height: var(--ebs-entries-ctrl-h) !important;
  padding: 0 6px !important;
  font-size: 10px !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
}

/* Denied column: compact height; white fill + light blue border */
.ebs-table--entries tbody .ebs-select-denied.ant-select:not(.ant-select-customize-input) .ant-select-selector {
  height: var(--ebs-entries-ctrl-h) !important;
  min-height: var(--ebs-entries-ctrl-h) !important;
  padding: 0 14px 0 6px !important;
  border-radius: 3px !important;
  background: #ffffff !important;
  border: 1px solid #93c5fd !important;
  box-shadow: none !important;
}

/* Keep denied hover/edit footprint compact so row doesn't visually jump. */
.ebs-table--entries tbody .ebs-select-denied.ant-select {
  width: 56px !important;
  max-width: 100% !important;
}

.ebs-table--entries tbody .ebs-select-denied .ant-select-selector .ant-select-selection-item,
.ebs-table--entries tbody .ebs-select-denied .ant-select-selector .ant-select-selection-placeholder {
  line-height: calc(var(--ebs-entries-ctrl-h) - 2px) !important;
  color: #94a3b8 !important;
  font-weight: 500 !important;
  font-size: 10px !important;
}

.ebs-table--entries tbody .ebs-select-denied .ant-select-selection-search-input {
  height: calc(var(--ebs-entries-ctrl-h) - 2px) !important;
  line-height: calc(var(--ebs-entries-ctrl-h) - 2px) !important;
  color: #64748b !important;
}

.ebs-table--entries tbody .ebs-select-denied .ant-select-arrow {
  color: #cbd5e1 !important;
  font-size: 9px !important;
  inset-inline-end: 6px !important;
  margin-top: -4px !important;
}

.ebs-table--entries .ebs-select-denied.ant-select-focused:not(.ant-select-disabled) .ant-select-selector,
.ebs-table--entries .ebs-select-denied.ant-select-open .ant-select-selector {
  background: #ffffff !important;
  border-color: #60a5fa !important;
  box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.45) !important;
}

.ebs-table--entries .ebs-link-edit.ant-btn {
  color: #64748b !important;
  font-weight: 500;
  width: 18px !important;
  min-width: 18px !important;
  height: 18px !important;
  min-height: 18px !important;
  padding: 0 !important;
  margin: 0 auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
}

.ebs-table--entries .ebs-link-edit.ant-btn .anticon {
  font-size: 11px !important;
  line-height: 1 !important;
}

.ebs-table--entries .ebs-link-edit.ant-btn:hover {
  color: #475569 !important;
}

.ebs-table--dense td {
  padding: 3px 5px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

.ebs-table--entries.ebs-table--dense tbody td {
  padding: 3px 6px;
  height: auto;
  min-height: 0;
  line-height: 1.2;
  border-bottom: 1px solid #cbd5e1;
}

/* Buyer name: one line + ellipsis. ML: wrap like Conf # / Error (up to 2 lines). */
.ebs-table--entries .ebs-td-buyer {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ebs-table--entries .ebs-td-ml {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ebs-table--entries .ebs-td-conf-error {
  white-space: normal;
}

.ebs-table--entries .ebs-td-conf-error .ebs-td-conf,
.ebs-table--entries .ebs-td-conf-error .ebs-error-tag {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.2;
  max-width: 100%;
}

.ebs-conf-error-split {
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
  min-width: 0;
}

.ebs-conf-error-split__reason-select {
  flex: 1 1 auto;
  min-width: 0;
}

.ebs-conf-error-split__last4 {
  flex: 0 0 2.75rem;
  max-width: 3rem;
  min-width: 0;
}

.ebs-conf-error-split__last4--invalid {
  border-color: #dc2626 !important;
}

.ebs-conf-error-read {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  width: 100%;
}

.ebs-conf-error-read__reason {
  flex: 1 1 auto;
  min-width: 0;
}

.ebs-conf-error-read__last4 {
  flex: 0 0 auto;
  font-size: 11px;
  color: #64748b;
}

.ebs-table--entries.ebs-table--dense tbody tr.ebs-entry-row--add td {
  border-bottom: 1px solid #2563eb !important;
}

.ebs-th-actions,
.ebs-td-actions {
  width: 3.25rem;
  min-width: 3.25rem;
  max-width: 3.25rem;
  box-sizing: border-box;
  text-align: center;
}

.ebs-td-actions {
  padding-left: 2px !important;
  padding-right: 2px !important;
  white-space: nowrap;
}

.ebs-td-center {
  text-align: center;
}

.ebs-td-muted {
  color: #94a3b8;
}

.ebs-mono {
  font-family: ui-monospace, monospace;
  font-size: 11px;
}

.ebs-num {
  font-weight: 700;
  color: #2563eb;
}

.ebs-qty-ok {
  color: #15803d;
  font-weight: 700;
}

.ebs-denied {
  color: #dc2626;
  font-weight: 700;
}

.ebs-error-text {
  color: #b45309;
  font-weight: 700;
  font-style: italic;
}

.ebs-td-error-highlight {
  background: #fefce8;
  box-shadow: inset 0 0 0 1px #fde047;
}

/* Buyer entries row fills (reference: mint / white / warm yellow / light red) */
.ebs-table--entries tbody tr.ebs-entry-row--success td {
  background-color: #f0fff4;
}

.ebs-table--entries tbody tr.ebs-entry-row--denied td {
  background-color: #fff5f5;
}

.ebs-table--entries tbody tr.ebs-entry-row--entry-warning td {
  background-color: #fffaf0;
}

/* Focused field: keep row tint (success/denied/warning); white controls only */
.ebs-table--entries tbody td.ebs-cell--active .ebs-cell-input,
.ebs-table--entries tbody td.ebs-cell--active .ebs-cell-select .ant-select-selector,
.ebs-table--entries tbody td.ebs-cell--active .ant-input-affix-wrapper {
  background-color: #ffffff !important;
}

.ebs-table--entries tbody td.ebs-cell--active .ebs-select-denied.ant-select:not(.ant-select-customize-input) .ant-select-selector {
  background: #ffffff !important;
}

.ebs-entry-row--success {
  background-color: #f0fff4;
}

.ebs-entry-row--denied {
  background-color: #fff5f5;
}

.ebs-entry-row--entry-warning {
  background-color: #fffaf0;
}

.ebs-entry-row--add {
  background: #f1f5f9;
}

.ebs-entry-row--editing {
  background: #fffbeb;
}

.ebs-table--entries tr.ebs-entry-row--editing td {
  border-top: 1px solid #2563eb;
  border-bottom: 1px solid #f97316;
}

.ebs-table--entries.ebs-table--dense tbody tr.ebs-entry-row--editing td {
  border-top: 1px solid #2563eb !important;
  border-bottom: 1px solid #f97316 !important;
}

.ebs-table--entries .ebs-td-edit-show .ant-select-selection-item,
.ebs-table--entries .ebs-td-edit-show .ant-select-selection-placeholder {
  color: #2563eb !important;
  font-weight: 700 !important;
}

.ebs-table--entries .ebs-entry-row--editing .ebs-cell-input--edit-bound {
  font-weight: 700 !important;
  color: #6d28d9 !important;
}

.ebs-table--entries .ebs-entry-row--editing .ebs-cell-input--edit-qty {
  font-weight: 700 !important;
  color: #15803d !important;
}

.ebs-td-actions--edit-stack {
  vertical-align: top !important;
  min-width: 7.25rem;
  width: 7.5rem;
}

.ebs-edit-actions-stack {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}

.ebs-edit-actions-stack .ant-btn-sm {
  height: 22px !important;
  min-height: 22px !important;
  margin: 0 !important;
  padding: 0 10px !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  border-radius: 5px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.ebs-btn-cancel-edit.ant-btn {
  background: #ffffff !important;
  border-color: #d1d5db !important;
  color: #64748b !important;
}

.ebs-btn-cancel-edit.ant-btn:hover {
  color: #475569 !important;
  border-color: #94a3b8 !important;
}

.ebs-btn-del-edit.ant-btn {
  background: #ffffff !important;
  border-color: #fecaca !important;
  color: #f87171 !important;
}

.ebs-btn-del-edit.ant-btn:hover {
  border-color: #f87171 !important;
  color: #ef4444 !important;
  background: #fffbeb !important;
}

.ebs-link-edit {
  padding: 0 4px !important;
  height: auto !important;
  font-size: 11px !important;
}

.ebs-btn-add {
  font-weight: 600 !important;
}

.ebs-btn-save {
  background: #15803d !important;
  border-color: #15803d !important;
}

.ebs-batch-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 8px 10px;
  border-top: 1px solid #e5e7eb;
  background: #f9fafb;
}

.ebs-bulk-shows-wrap {
  padding: 10px 10px 0;
  background: #ffffff;
}

/* Dotted outer frame; dark bar sits inset (gap like reference) */
.ebs-bulk-shows-card {
  border: 1px dotted #b0bac8;
  border-radius: 8px;
  padding: 3px;
  box-sizing: border-box;
  background: transparent;
}

.ebs-bulk-shows-card--open {
  background: #f4f7f9;
}

/* Collapsed: original dark bar; expanded (--open): brand blue */
.ebs-bulk-shows-card-header--toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin: 0;
  padding: 10px 14px;
  border: none;
  background: #232b38;
  color: #a0aec0;
  font-family: "Barlow Condensed", Inter, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.2;
  cursor: pointer;
  text-align: left;
  border-radius: 6px;
  box-sizing: border-box;
}

.ebs-bulk-shows-card:not(.ebs-bulk-shows-card--open)
  .ebs-bulk-shows-card-header--toggle:hover {
  background: #2a3445;
  color: #b8c4d0;
}

.ebs-bulk-shows-card--open .ebs-bulk-shows-card-header--toggle {
  border-radius: 6px 6px 0 0;
  background: #3c76a8;
  color: #ffffff;
}

.ebs-bulk-shows-card--open .ebs-bulk-shows-card-header--toggle:hover {
  background: #346899;
  color: #ffffff;
}

.ebs-bulk-shows-card-header--toggle:focus-visible {
  outline: 2px solid #38bdf8;
  outline-offset: 2px;
}

/* Down chevron — white, larger than legacy gray emoji; rotates up when open */
.ebs-bulk-shows-card-header-icon {
  flex-shrink: 0;
  display: block;
  width: 0;
  height: 0;
  margin-top: 1px;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-top: 12px solid #ffffff;
  border-bottom: 0;
  transition: transform 0.2s ease;
  transform-origin: 50% 35%;
}

.ebs-bulk-shows-card--open .ebs-bulk-shows-card-header-icon {
  transform: rotate(180deg);
}

.ebs-bulk-shows-card-body {
  padding: 14px 13px 16px;
  box-sizing: border-box;
  border-top: 1px solid rgba(44, 52, 64, 0.12);
}

.ebs-bulk-shows-instructions {
  margin: 0 0 10px;
  font-family: ui-monospace, "Roboto Mono", Menlo, monospace;
  font-size: 11px;
  line-height: 1.45;
  color: #707a8c;
}

.ebs-bulk-shows-textarea {
  display: block;
  width: 100%;
  min-height: 140px;
  margin: 0 0 12px;
  padding: 10px 12px;
  box-sizing: border-box;
  font-size: 12px;
  line-height: 1.45;
  font-family: ui-monospace, "Roboto Mono", Menlo, monospace;
  color: #0f172a;
  background: #ffffff;
  border: 1px solid #335eea;
  border-radius: 6px;
  resize: vertical;
}

.ebs-bulk-shows-textarea::placeholder {
  color: #94a3b8;
}

.ebs-bulk-shows-textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.ebs-bulk-shows-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.ebs-bulk-import-btn-primary.ant-btn-primary {
  font-weight: 600;
  min-width: 108px;
}

.ebs-bulk-import-btn-clear.ant-btn {
  font-weight: 500;
  color: #64748b;
  background: #ffffff;
  border-color: #d1d5db;
}

.ebs-bulk-import-btn-clear.ant-btn:hover {
  color: #334155;
  border-color: #94a3b8;
  background: #f8fafc;
}

.ebs-refill-import-tab {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 360px;
}

.ebs-refill-import-toolbar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.ebs-refill-import-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #64748b;
  font-size: 12px;
}

.ebs-refill-import-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 410px;
  overflow-y: auto;
  padding-right: 3px;
}

.ebs-refill-import-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid #dbe3ee;
  border-radius: 10px;
  background: #ffffff;
  color: #0f172a;
  cursor: pointer;
}

.ebs-refill-import-row:hover {
  border-color: #94a3b8;
  background: #f8fafc;
}

.ebs-refill-import-row-main,
.ebs-refill-import-row-tail {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.ebs-refill-import-row-title {
  overflow: hidden;
  color: #111827;
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ebs-refill-import-row-sub {
  overflow: hidden;
  color: #64748b;
  font-size: 11px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ebs-refill-import-row-tail {
  align-items: flex-end;
  color: #64748b;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.ebs-refill-import-loading,
.ebs-refill-import-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  color: #64748b;
  font-size: 12px;
  gap: 8px;
}

.ebs-extended-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ebs-buylist-show-bulk-list-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ebs-buylist-show-bulk-list-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.ebs-buylist-show-bulk-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 260px;
  overflow-y: auto;
  padding-right: 3px;
}

.ebs-buylist-show-bulk-row {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid #dbe3ee;
  border-radius: 10px;
  background: #ffffff;
  color: #0f172a;
  cursor: pointer;
}

.ebs-buylist-show-bulk-row:hover {
  border-color: #94a3b8;
  background: #f8fafc;
}

.ebs-buylist-show-bulk-row-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.ebs-buylist-show-bulk-row-title {
  overflow: hidden;
  color: #111827;
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ebs-buylist-show-bulk-row-sub {
  overflow: hidden;
  color: #64748b;
  font-size: 11px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html[data-mainview-theme="dark"] .ebs-refill-import-meta,
html[data-mainview-theme="dark"] .ebs-refill-import-row-sub,
html[data-mainview-theme="dark"] .ebs-refill-import-row-tail {
  color: #94a3b8;
}

html[data-mainview-theme="dark"] .ebs-refill-import-row {
  background: #111827;
  border-color: #334155;
  color: #e5e7eb;
}

html[data-mainview-theme="dark"] .ebs-refill-import-row:hover {
  background: #1f2937;
  border-color: #64748b;
}

html[data-mainview-theme="dark"] .ebs-refill-import-row-title {
  color: #f8fafc;
}

html[data-mainview-theme="dark"] .ebs-refill-import-loading,
html[data-mainview-theme="dark"] .ebs-refill-import-empty {
  border-color: #475569;
  color: #94a3b8;
}

html[data-mainview-theme="dark"] .ebs-buylist-show-bulk-row {
  background: #111827;
  border-color: #334155;
  color: #e5e7eb;
}

html[data-mainview-theme="dark"] .ebs-buylist-show-bulk-row:hover {
  background: #1f2937;
  border-color: #64748b;
}

html[data-mainview-theme="dark"] .ebs-buylist-show-bulk-row-title {
  color: #f8fafc;
}

html[data-mainview-theme="dark"] .ebs-buylist-show-bulk-row-sub {
  color: #94a3b8;
}

.ebs-cell-input--center {
  text-align: center;
}

.ebs-cell-input,
.ebs-cell-select {
  font-size: 11px !important;
}

.ebs-new-show-form {
  margin: 6px 8px;
  border: 1px dotted #5b7cff;
  border-radius: 6px;
  overflow: hidden;
  background: #e8eeff;
}

/* Inside collapsible bulk-style card — avoid double frame / outer margin */
.ebs-new-show-form--embedded {
  margin: 0;
  border: none;
  border-radius: 6px;
  overflow: visible;
  background: transparent;
}

.ebs-new-show-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 12px;
  padding: 6px 10px;
  background: #e0e7ff;
  border-bottom: 1px solid rgba(91, 124, 255, 0.2);
}

.ebs-new-show-head-title {
  font-family: "Barlow Condensed", Inter, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1e3a8a;
}

.ebs-new-show-head-hint {
  font-size: 11px;
  font-weight: 500;
  color: #4f6bcc;
}

.ebs-new-show-body {
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  background: #eef2ff;
}

.ebs-new-show-row {
  display: grid;
  gap: 6px;
  align-items: start;
}

.ebs-ns-field-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.ebs-ns-field-wrap--full {
  width: 100%;
}

.ebs-ns-field-error {
  font-size: 10px;
  font-weight: 600;
  color: #b91c1c;
  line-height: 1.2;
  min-height: 14px;
}

.ebs-ns-field-error-spacer {
  min-height: 4px;
  flex-shrink: 0;
}

.ebs-new-show-row--3 {
  grid-template-columns:
    minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 1.6fr);
}

.ebs-new-show-row--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ebs-new-show-full {
  width: 100%;
}

.ebs-ns-field {
  width: 100% !important;
}

.ebs-ns-input {
  font-size: 11px !important;
}

/* Uniform control height for New Show fields (antd puts className on affix wrapper) */
.ebs-new-show-body .ant-input-affix-wrapper.ebs-ns-input {
  min-height: 28px !important;
  height: 28px !important;
  padding-block: 0 !important;
  padding-inline: 10px !important;
  display: inline-flex !important;
  align-items: center !important;
  line-height: 1.25 !important;
  box-sizing: border-box !important;
  font-size: 11px;
  font-family: ui-monospace, "Roboto Mono", Menlo, monospace;
}

.ebs-new-show-body .ant-input-affix-wrapper.ebs-ns-input .ant-input {
  min-height: 0 !important;
  height: auto !important;
  padding-block: 0 !important;
  line-height: 1.25 !important;
  font-size: 11px !important;
  font-family: ui-monospace, "Roboto Mono", Menlo, monospace !important;
}

.ebs-new-show-body > .ebs-new-show-row .ant-input.ebs-ns-input,
.ebs-new-show-body .ebs-ns-input.ebs-new-show-full {
  min-height: 28px !important;
  height: 28px !important;
  padding-top: 3px !important;
  padding-bottom: 3px !important;
  line-height: 1.25 !important;
  box-sizing: border-box !important;
  font-size: 11px;
  font-family: ui-monospace, "Roboto Mono", Menlo, monospace;
}

.ebs-new-show-body > .ebs-new-show-row .ant-picker.ebs-ns-field {
  width: 100% !important;
  min-height: 28px;
  height: 28px;
  font-size: 11px;
  font-family: ui-monospace, "Roboto Mono", Menlo, monospace;
}

.ebs-new-show-body > .ebs-new-show-row .ant-picker.ebs-ns-field .ant-picker-selector {
  min-height: 28px !important;
  height: 28px !important;
  padding: 0 10px !important;
  display: flex !important;
  align-items: center !important;
  box-sizing: border-box !important;
}

.ebs-new-show-body > .ebs-new-show-row .ant-picker.ebs-ns-field .ant-picker-input > input {
  font-size: 11px;
  font-family: ui-monospace, "Roboto Mono", Menlo, monospace;
}

/* Priority tier (High / Normal / Low / Stop) — color-coded selector */
.ebs-show-priority-select.ant-select {
  width: 100%;
  font-family: var(--bs-font-sans, Inter, system-ui, sans-serif);
}

.ebs-show-priority-select.ant-select .ant-select-selector {
  border-width: 2px !important;
}

.ebs-show-priority-select--high.ant-select:not(.ant-select-disabled) .ant-select-selector {
  background: #fef2f2 !important;
  border-color: #fecaca !important;
}

.ebs-show-priority-select--normal.ant-select:not(.ant-select-disabled) .ant-select-selector {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
}

.ebs-show-priority-select--low.ant-select:not(.ant-select-disabled) .ant-select-selector {
  background: #f0fdf4 !important;
  border-color: #bbf7d0 !important;
}

.ebs-show-priority-select--stop.ant-select:not(.ant-select-disabled) .ant-select-selector {
  background: #f3f4f6 !important;
  border-color: #94a3b8 !important;
}

.ebs-new-show-body .ebs-show-priority-select.ant-select-single .ant-select-selector {
  min-height: 28px !important;
  height: 28px !important;
  padding-inline: 10px !important;
  font-size: 11px !important;
}

.ebs-show-edit-body .ebs-show-priority-select.ant-select-single .ant-select-selector {
  min-height: 28px !important;
  height: 28px !important;
  font-size: 11px !important;
}

.ebs-bounds-table {
  width: 100%;
  margin-top: 2px;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 10px;
  font-family: ui-monospace, "Roboto Mono", Menlo, monospace;
  border: 1px solid #cbd5e1;
  background: #ffffff;
}

/* One row per bound; columns are labels (price / qty / bought). Table uses full show-card width (see .ebs-bounds-table width: 100%) so bounds line up with fields when the shows column is wide (e.g. buyer entries hidden). */

.ebs-bounds-table--by-bound-row .ebs-bounds-th--corner,
.ebs-bounds-table--by-bound-row tbody .ebs-bounds-th--row {
  width: 3.1rem;
  min-width: 3.1rem;
  text-align: center;
  vertical-align: middle;
}

/* Bounds matrix: keep Qty/Bought narrow, give remaining room to Price/location. */
.ebs-bounds-table--by-bound-row thead th:nth-child(3),
.ebs-bounds-table--by-bound-row tbody td:nth-child(3) {
  width: 4.5rem;
}

.ebs-bounds-table--by-bound-row thead th:nth-child(4),
.ebs-bounds-table--by-bound-row tbody td:nth-child(4) {
  width: 3.75rem;
}

.ebs-bounds-th {
  padding: 3px 5px;
  text-align: left;
  font-weight: 700;
  border: 1px solid #cbd5e1;
  vertical-align: middle;
}

.ebs-bounds-th--corner {
  width: 22%;
  background: #3c76a8;
  color: #f8fafc;
  font-size: 9px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ebs-bounds-th--num {
  background: #f1f5f9;
  color: #2563eb;
  font-size: 11px;
}

.ebs-bounds-th--row {
  background: #3c76a8;
  color: #f8fafc;
  font-size: 9px;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.ebs-bounds-td {
  padding: 2px 3px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  vertical-align: middle;
}

.ebs-bounds-td .ant-input {
  width: 100%;
}

.ebs-bounds-cell-input.ant-input {
  font-size: 10px !important;
  padding: 1px 5px !important;
  min-height: 22px !important;
  text-align: left;
}

.ebs-bounds-td--readonly {
  background: #f8fafc;
}

.ebs-bounds-cell-readonly {
  display: block;
  box-sizing: border-box;
  padding: 1px 5px;
  font-size: 10px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: #475569;
}

/* Goal met — same “pastel fill + dark ink” language as --qty-filled (pink), mint instead */
.ebs-bounds-td--goal-met {
  background: #ecfdf5 !important;
}

.ebs-bounds-td--goal-met .ebs-bounds-cell-input.ant-input {
  background: transparent !important;
  border: 1px solid transparent !important;
  box-shadow: none !important;
  color: #166534 !important;
}

.ebs-bounds-td--goal-met .ebs-bounds-cell-input.ant-input:hover {
  background: #ffffff !important;
  border-color: #86efac !important;
}

.ebs-bounds-td--goal-met .ebs-bounds-cell-input.ant-input:focus,
.ebs-bounds-td--goal-met .ebs-bounds-cell-input.ant-input-focused {
  background: #ffffff !important;
  border-color: #2563eb !important;
  color: #0f172a !important;
}

.ebs-bounds-td--goal-met .ebs-bounds-cell-readonly {
  color: #166534 !important;
}

.ebs-bounds-th--row-depleted {
  background: #0f172a !important;
  color: #f8fafc !important;
}

.ebs-bounds-td--depleted {
  background: #0f172a !important;
  color: #f8fafc !important;
}

.ebs-bounds-td--depleted .ebs-bounds-cell-readonly {
  color: #f8fafc !important;
}

.ebs-bounds-td--depleted .ebs-bounds-cell-input.ant-input {
  background: transparent !important;
  border: 1px solid transparent !important;
  box-shadow: none !important;
  color: #f8fafc !important;
}

.ebs-bounds-td--depleted .ebs-bounds-cell-input.ant-input:hover {
  background: #ffffff !important;
  color: #0f172a !important;
  border-color: #94a3b8 !important;
}

.ebs-bounds-td--depleted .ebs-bounds-cell-input.ant-input:focus,
.ebs-bounds-td--depleted .ebs-bounds-cell-input.ant-input-focused {
  background: #ffffff !important;
  color: #0f172a !important;
  border-color: #2563eb !important;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.25) !important;
}

.ebs-new-show-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 2px;
  padding-top: 2px;
}

.ebs-new-show-add-btn.ant-btn-primary {
  font-weight: 700 !important;
  min-width: 112px;
  height: 30px !important;
  padding: 0 16px !important;
  background: #2b52cd !important;
  border-color: #2b52cd !important;
}

.ebs-new-show-add-btn.ant-btn-primary:hover {
  background: #2448b8 !important;
  border-color: #2448b8 !important;
}

.ebs-time-slot-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 8px 12px;
  background: #282c37;
  border-bottom: 1px solid #1e2128;
}

.ebs-time-slot-bar--select-only {
  justify-content: flex-start;
}

.ebs-theatre-run-date-group-header {
  display: flex;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  padding: 6px 12px 4px;
  background: #1e2128;
  border-top: 1px solid #343a46;
  border-bottom: 1px solid #343a46;
}

.ebs-theatre-run-date-group-header-label {
  font-family: "Barlow Condensed", Inter, system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
}

.ebs-time-slot-select-all-wrap {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.ebs-time-slot-select-all-cb.ant-checkbox-wrapper {
  line-height: 0;
}

.ebs-time-slot-select-all-cb.ant-checkbox-wrapper > span:not(.ant-checkbox) {
  padding-inline-start: 0 !important;
  padding-inline-end: 0 !important;
}

.ebs-time-slot-select-all-cb .ant-checkbox-inner {
  background-color: rgba(255, 255, 255, 0.06);
  border-color: rgba(226, 232, 240, 0.45);
}

.ebs-time-slot-label {
  font-family: "Barlow Condensed", Inter, system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-right: 2px;
  flex-shrink: 0;
}

.ebs-time-slot-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 6px 5px 12px;
  min-height: 28px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  font-family: "Barlow Condensed", Inter, system-ui, sans-serif;
  letter-spacing: 0.04em;
  line-height: 1;
  box-sizing: border-box;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

/* "All" only — per-slot pills use ebs-time-tone--* (no red when a time slot is selected). */
.ebs-time-slot-pill--active:not([class*="ebs-time-tone--"]) {
  border: 1px solid transparent;
  background: #a62c21;
  color: #ffffff;
}

.ebs-time-slot-pill--active:not([class*="ebs-time-tone--"]):hover {
  background: #8f261c;
  color: #ffffff;
}

.ebs-time-slot-pill--idle {
  background: transparent;
  color: #94a3b8;
  border: 1px solid #3e4451;
}

.ebs-time-slot-pill--idle:hover {
  border-color: #5c6370;
  color: #cbd5e1;
}

.ebs-time-slot-pill:focus-visible {
  outline: 2px solid #38bdf8;
  outline-offset: 2px;
}

.ebs-time-slot-pill-text {
  text-transform: uppercase;
}

.ebs-time-slot-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  font-family: ui-sans-serif, Inter, system-ui, sans-serif;
  letter-spacing: 0;
}

.ebs-time-slot-badge--on-active {
  background: rgba(0, 0, 0, 0.32);
  color: #ffffff;
}

.ebs-time-slot-badge--on-idle {
  background: #1f232d;
  color: #94a3b8;
}

/* Time-of-day colors (spreadsheet spec) — filter pills + show row time chip */
.ebs-time-slot-pill.ebs-time-slot-pill--idle.ebs-time-tone--h9 {
  background: rgba(146, 208, 80, 0.2);
  border-color: rgba(146, 208, 80, 0.75);
  color: #e2e8f0;
}
.ebs-time-slot-pill.ebs-time-slot-pill--active.ebs-time-tone--h9 {
  background: #92d050;
  border-color: transparent;
  color: #0f172a;
}
.ebs-time-slot-pill.ebs-time-slot-pill--active.ebs-time-tone--h9:hover {
  background: #7fb83d;
  color: #0f172a;
}

.ebs-time-slot-pill.ebs-time-slot-pill--idle.ebs-time-tone--h10 {
  background: rgba(255, 192, 0, 0.18);
  border-color: rgba(255, 192, 0, 0.75);
  color: #e2e8f0;
}
.ebs-time-slot-pill.ebs-time-slot-pill--active.ebs-time-tone--h10 {
  background: #ffc000;
  border-color: transparent;
  color: #0f172a;
}
.ebs-time-slot-pill.ebs-time-slot-pill--active.ebs-time-tone--h10:hover {
  background: #e6a800;
  color: #0f172a;
}

.ebs-time-slot-pill.ebs-time-slot-pill--idle.ebs-time-tone--h11 {
  background: rgba(0, 176, 240, 0.2);
  border-color: rgba(0, 176, 240, 0.75);
  color: #e2e8f0;
}
.ebs-time-slot-pill.ebs-time-slot-pill--active.ebs-time-tone--h11 {
  background: #00b0f0;
  border-color: transparent;
  color: #0f172a;
}
.ebs-time-slot-pill.ebs-time-slot-pill--active.ebs-time-tone--h11:hover {
  background: #0099d4;
  color: #0f172a;
}

.ebs-time-slot-pill.ebs-time-slot-pill--idle.ebs-time-tone--h12 {
  background: rgba(255, 255, 0, 0.16);
  border-color: rgba(255, 255, 0, 0.65);
  color: #e2e8f0;
}
.ebs-time-slot-pill.ebs-time-slot-pill--active.ebs-time-tone--h12 {
  background: #ffff00;
  border-color: transparent;
  color: #0f172a;
}
.ebs-time-slot-pill.ebs-time-slot-pill--active.ebs-time-tone--h12:hover {
  background: #e6e600;
  color: #0f172a;
}

.ebs-time-slot-pill.ebs-time-slot-pill--idle.ebs-time-tone--h13 {
  background: rgba(159, 141, 194, 0.22);
  border-color: rgba(159, 141, 194, 0.75);
  color: #e2e8f0;
}
.ebs-time-slot-pill.ebs-time-slot-pill--active.ebs-time-tone--h13 {
  background: #9f8dc2;
  border-color: transparent;
  color: #0f172a;
}
.ebs-time-slot-pill.ebs-time-slot-pill--active.ebs-time-tone--h13:hover {
  background: #8578af;
  color: #0f172a;
}

.ebs-time-slot-pill.ebs-time-slot-pill--idle.ebs-time-tone--h14 {
  background: rgba(193, 169, 81, 0.2);
  border-color: rgba(193, 169, 81, 0.75);
  color: #e2e8f0;
}
.ebs-time-slot-pill.ebs-time-slot-pill--active.ebs-time-tone--h14 {
  background: #c1a951;
  border-color: transparent;
  color: #0f172a;
}
.ebs-time-slot-pill.ebs-time-slot-pill--active.ebs-time-tone--h14:hover {
  background: #a89242;
  color: #0f172a;
}

.ebs-time-slot-pill.ebs-time-slot-pill--idle.ebs-time-tone--h15 {
  background: rgba(224, 173, 176, 0.22);
  border-color: rgba(224, 173, 176, 0.75);
  color: #e2e8f0;
}
.ebs-time-slot-pill.ebs-time-slot-pill--active.ebs-time-tone--h15 {
  background: #e0adb0;
  border-color: transparent;
  color: #0f172a;
}
.ebs-time-slot-pill.ebs-time-slot-pill--active.ebs-time-tone--h15:hover {
  background: #c99397;
  color: #0f172a;
}

.ebs-time-slot-pill.ebs-time-slot-pill--idle.ebs-time-tone--other {
  background: rgba(148, 163, 184, 0.12);
  border-color: #475569;
  color: #94a3b8;
}

.ebs-time-slot-pill.ebs-time-slot-pill--active.ebs-time-tone--other {
  background: #475569;
  border-color: transparent;
  color: #f8fafc;
}

.ebs-time-slot-pill.ebs-time-slot-pill--active.ebs-time-tone--other:hover {
  background: #64748b;
  color: #f8fafc;
}

.ebs-shows-list {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 4px 0;
  background: #eef2f7;
}

.ebs-show-card {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin-bottom: 3px;
  border-radius: 6px;
  overflow: hidden;
  background: #1f2937;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.12);
  border: 1px solid rgba(30, 41, 59, 0.45);
}

.ebs-show-card--open {
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.18);
}

.ebs-show-edit-shell {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin-bottom: 6px;
  border: 1px solid #f59e0b;
  border-radius: 10px;
  overflow: hidden;
  background: #fffbeb;
  box-shadow: 0 2px 12px rgba(245, 158, 11, 0.18);
}

.ebs-show-edit-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: #3c76a8;
  border-bottom: 1px solid rgba(15, 23, 42, 0.12);
}

.ebs-show-edit-topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex-shrink: 0;
}

.ebs-show-edit-topbar-delete-cb .ant-checkbox-inner {
  background-color: rgba(255, 255, 255, 0.06);
  border-color: rgba(226, 232, 240, 0.4);
}

.ebs-show-edit-topbar-title {
  font-family: "Barlow Condensed", Inter, system-ui, sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.02em;
}

.ebs-show-edit-topbar-status-area {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  min-height: 1.25em;
}

.ebs-show-edit-topbar-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  font-size: 13px;
  font-style: italic;
  font-weight: 500;
  color: #fbbf24;
}

.ebs-show-edit-autosave-on {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #ffffff;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
}

.ebs-show-edit-remote-spin.ant-spin {
  line-height: 1;
}

.ebs-show-edit-remote-spin.ant-spin .ant-spin-dot-item {
  background-color: #ffffff !important;
}

@keyframes ebs-saved-flash-enter {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ebs-saved-flash-leave {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  to {
    opacity: 0;
    transform: translateY(-4px) scale(0.98);
  }
}

.ebs-show-edit-saved-flash {
  font-size: 13px;
  font-weight: 700;
  color: #4ade80;
  white-space: nowrap;
}

.ebs-show-edit-saved-flash--visible {
  animation: ebs-saved-flash-enter 0.22s ease-out forwards;
}

.ebs-show-edit-saved-flash--exiting {
  animation: ebs-saved-flash-leave 0.22s ease-in forwards;
}

.ebs-show-edit-topbar-cancel-spacer {
  flex: 0 0 56px;
  width: 56px;
  min-height: 1px;
}

.ebs-show-edit-topbar-cancel {
  margin: 0;
  padding: 4px 8px;
  border: none;
  background: transparent;
  color: #fca5a5;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: inherit;
}

.ebs-show-edit-topbar-cancel:hover {
  color: #fecaca;
}

.ebs-show-edit-topbar-cancel:focus-visible {
  outline: 2px solid #38bdf8;
  outline-offset: 2px;
  border-radius: 4px;
}

.ebs-show-edit-body {
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ebs-show-edit-row {
  display: grid;
  gap: 6px;
  align-items: stretch;
}

.ebs-show-edit-row--4a {
  grid-template-columns:
    minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 1.2fr);
}

.ebs-show-edit-row--4b {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ebs-show-edit-full {
  width: 100%;
}

.ebs-show-edit-body .ant-input-affix-wrapper.ebs-show-edit-input {
  min-height: 28px !important;
  height: 28px !important;
  padding-block: 0 !important;
  padding-inline: 10px !important;
  display: inline-flex !important;
  align-items: center !important;
  line-height: 1.25 !important;
  box-sizing: border-box !important;
}

.ebs-show-edit-body .ant-input-affix-wrapper.ebs-show-edit-input .ant-input {
  min-height: 0 !important;
  height: auto !important;
  padding-block: 0 !important;
  line-height: 1.25 !important;
  font-size: 11px !important;
  font-family: ui-monospace, "Roboto Mono", Menlo, monospace !important;
}

.ebs-show-edit-body > .ebs-show-edit-row .ant-input.ebs-show-edit-input,
.ebs-show-edit-body > .ebs-show-edit-input.ebs-show-edit-full {
  min-height: 28px !important;
  height: 28px !important;
  padding-top: 3px !important;
  padding-bottom: 3px !important;
  line-height: 1.25 !important;
  box-sizing: border-box !important;
}

.ebs-show-edit-body > .ebs-show-edit-row .ant-picker.ebs-show-edit-picker {
  width: 100% !important;
  min-height: 28px;
  height: 28px;
}

.ebs-show-edit-body > .ebs-show-edit-row .ant-picker.ebs-show-edit-picker .ant-picker-selector {
  min-height: 28px !important;
  height: 28px !important;
  padding: 0 10px !important;
  display: flex !important;
  align-items: center !important;
  box-sizing: border-box !important;
}

.ebs-show-edit-body > .ebs-show-edit-row .ant-picker.ebs-show-edit-picker .ant-picker-input > input {
  font-size: 11px;
  font-family: ui-monospace, "Roboto Mono", Menlo, monospace;
}

.ebs-show-edit-input,
.ebs-show-edit-picker {
  font-size: 11px;
  font-family: ui-monospace, "Roboto Mono", Menlo, monospace;
}

.ebs-show-edit-bounds {
  margin-top: 2px;
}

.ebs-show-edit-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px 14px;
  border-top: 1px solid #fde68a;
  background: rgba(255, 251, 235, 0.95);
}

.ebs-show-edit-footer--autosave-only {
  justify-content: flex-start;
}

.ebs-show-edit-footer-delete-only {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.ebs-show-edit-footer-left,
.ebs-show-edit-footer-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.ebs-show-edit-save.ant-btn-primary {
  background: #15803d !important;
  border-color: #15803d !important;
  font-weight: 700 !important;
  min-width: 104px;
  height: 32px !important;
}

.ebs-show-edit-save.ant-btn-primary:hover {
  background: #166534 !important;
  border-color: #166534 !important;
}

.ebs-show-edit-cancel.ant-btn {
  font-weight: 600;
  min-width: 88px;
  height: 32px !important;
  border-color: #d1d5db;
  color: #64748b;
  background: #ffffff;
}

.ebs-show-edit-delete.ant-btn-dangerous {
  font-weight: 600;
  min-width: 112px;
  height: 32px !important;
  background: #ffffff !important;
  border-color: #fecaca !important;
  color: #dc2626 !important;
}

.ebs-show-edit-delete.ant-btn-dangerous:hover {
  border-color: #f87171 !important;
  color: #b91c1c !important;
  background: #fef2f2 !important;
}

.ebs-show-delete-select {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  min-width: 42px;
  max-width: 42px;
  padding: 0;
  background: #1f2937;
  border-right: 1px solid rgba(148, 163, 184, 0.2);
  box-sizing: border-box;
}

.ebs-show-card--open .ebs-show-delete-select {
  background: #3c76a8;
  border-right-color: rgba(255, 255, 255, 0.18);
}

.ebs-show-delete-select .ant-checkbox-inner {
  background-color: rgba(255, 255, 255, 0.06);
  border-color: rgba(226, 232, 240, 0.4);
}

.ebs-show-card-trigger-row {
  display: flex;
  width: 100%;
  align-items: stretch;
  min-height: 0;
}

.ebs-show-card-trigger-main {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  justify-content: flex-start;
  gap: 8px;
  padding: 7px 8px 7px 10px;
  border: none;
  background: #1f2937;
  color: #e2e8f0;
  text-align: left;
  cursor: pointer;
  font-size: 12px;
  box-sizing: border-box;
}

.ebs-show-card:not(.ebs-show-card--open) .ebs-show-card-trigger-main:hover {
  background: #252f3f;
}

.ebs-show-card--open .ebs-show-card-trigger-main {
  background: #3c76a8;
}

.ebs-show-card--open .ebs-show-card-trigger-main:hover {
  background: #346899;
}

.ebs-show-card-trigger-main:focus-visible {
  outline: 2px solid #38bdf8;
  outline-offset: -2px;
}

.ebs-show-card-trigger-edit {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  margin: 0;
  border: none;
  border-left: 1px solid rgba(148, 163, 184, 0.2);
  background: #1f2937;
  color: #e2e8f0;
  cursor: pointer;
  font-size: 11px;
  font-family: inherit;
  box-sizing: border-box;
}

.ebs-show-card:not(.ebs-show-card--open) .ebs-show-card-trigger-edit:hover {
  background: #252f3f;
}

.ebs-show-card--open .ebs-show-card-trigger-edit {
  background: #3c76a8;
  border-left-color: rgba(255, 255, 255, 0.18);
}

.ebs-show-card--open .ebs-show-card-trigger-edit:hover {
  background: #346899;
}

.ebs-show-card--open .ebs-show-edit-label {
  color: rgba(255, 255, 255, 0.9);
}

.ebs-show-card--open .ebs-show-actions-divider {
  background: rgba(255, 255, 255, 0.28);
}

.ebs-show-card-trigger-edit:focus-visible {
  outline: 2px solid #38bdf8;
  outline-offset: -2px;
}

.ebs-show-card-trigger-left {
  display: grid;
  grid-template-columns:
    max-content
    max-content
    1px
    minmax(0, 1fr)
    auto;
  grid-template-rows: auto auto;
  column-gap: 8px;
  row-gap: 2px;
  align-items: center;
  width: 100%;
  min-width: 0;
  flex: 1 1 auto;
}

.ebs-show-expand-icon {
  display: inline-flex;
  width: 16px;
  justify-content: center;
  align-items: center;
  opacity: 1;
  font-size: 12px;
  color: #ffffff;
  flex-shrink: 0;
}

.ebs-show-expand-icon .anticon {
  color: inherit;
}

.ebs-show-pill-row {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
}

.ebs-show-pill {
  font-family: "Barlow Condensed", Inter, system-ui, sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: #e0f2fe;
  background: rgba(14, 165, 233, 0.22);
  border: 1px solid rgba(125, 211, 252, 0.36);
  border-radius: 999px;
  padding: 2px 8px;
  line-height: 1.2;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ~15.6" laptops (typical 1366–1920px viewport width) */
@media (min-width: 1366px) and (max-width: 1920px) {
  .ebs-show-pill {
    font-size: 12px;
  }
}

.ebs-show-tour-badge {
  flex-shrink: 1;
  min-width: 0;
  max-width: 7.5rem;
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.25;
  color: #ffffff;
  background: #4b2c82;
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: default;
}

.ebs-show-card--open .ebs-show-tour-badge {
  border-color: rgba(255, 255, 255, 0.2);
}

.ebs-show-card--open .ebs-show-pill {
  color: #ffffff;
  background: rgba(15, 23, 42, 0.24);
  border-color: rgba(255, 255, 255, 0.36);
}

.ebs-show-divider {
  grid-column: 3;
  grid-row: 1 / span 2;
  width: 1px;
  height: 24px;
  background: rgba(148, 163, 184, 0.24);
  justify-self: center;
  align-self: center;
}

.ebs-show-badge-slot {
  display: flex;
  justify-content: center;
  align-items: center;
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: center;
  min-width: 2.1rem;
  max-width: 100%;
  box-sizing: border-box;
}

/* Tooltip trigger wrapper must shrink; hug badge toward date/venue column */
.ebs-show-badge-slot > * {
  min-width: 0;
  max-width: 100%;
}

.ebs-show-badge-slot > *:not(.ebs-show-badge-p) {
  display: flex;
  justify-content: flex-start;
}

.ebs-show-badge-slot .ebs-show-badge-p {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ebs-show-badge-p {
  flex-shrink: 0;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.02em;
  line-height: 1.2;
  border: 1px solid transparent;
  box-sizing: border-box;
  min-width: 1.9rem;
  text-align: center;
}

/* Priority tier — matches form selector semantics (high / normal / low / stop) */
.ebs-show-badge-p--high {
  background: #dc2626;
  border-color: rgba(254, 202, 202, 0.55);
}

.ebs-show-badge-p--normal {
  background: #2563eb;
  border-color: rgba(147, 197, 253, 0.45);
}

.ebs-show-badge-p--low {
  background: #15803d;
  border-color: rgba(187, 247, 208, 0.45);
}

.ebs-show-badge-p--stop {
  background: #475569;
  color: #f8fafc;
  border-color: rgba(148, 163, 184, 0.5);
}

.ebs-show-code-badge-tooltip .ant-tooltip-inner {
  max-width: min(90vw, 28rem);
  word-break: break-word;
  font-family: ui-monospace, "Roboto Mono", Menlo, monospace;
  font-size: 11px;
}

.ebs-show-meta {
  grid-column: 4;
  grid-row: 1 / span 2;
  align-self: center;
  min-width: 0;
  overflow: hidden;
}

.ebs-show-meta-inline {
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  column-gap: 6px;
  row-gap: 1px;
  min-width: 0;
}

.ebs-show-meta-line {
  font-family: var(--bs-font-sans, Inter, system-ui, sans-serif);
  font-size: 12px;
  font-weight: 500;
  color: #cbd5e1;
  line-height: 1.3;
  text-align: left;
}

.ebs-show-meta-venue {
  flex: 0 1 auto;
  max-width: 100%;
  color: #f1f5f9;
  font-weight: 600;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.ebs-show-meta-venue-name {
  display: block;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ebs-show-meta-subline {
  flex: 1 1 auto;
  max-width: 100%;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ebs-show-code-chip {
  flex-shrink: 0;
  max-width: min(46vw, 18rem);
  padding: 1px 10px;
  border-radius: 6px;
  border: 1px solid rgba(96, 165, 250, 0.35);
  background: rgba(37, 99, 235, 0.14);
  color: #60a5fa;
  font-family: ui-monospace, "Roboto Mono", Menlo, monospace;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.ebs-show-code-chip:hover {
  color: #93c5fd;
  border-color: rgba(147, 197, 253, 0.6);
  background: rgba(59, 130, 246, 0.22);
}

.ebs-show-code-chip:focus-visible {
  outline: 2px solid rgba(147, 197, 253, 0.85);
  outline-offset: 1px;
}

/* Open card: blue header — chip must not stay “blue on blue” */
.ebs-show-card--open .ebs-show-code-chip {
  color: #f8fafc;
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(15, 23, 42, 0.25);
}

.ebs-show-card--open .ebs-show-code-chip:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(15, 23, 42, 0.35);
}

.ebs-show-card--open .ebs-show-code-chip:focus-visible {
  outline-color: rgba(255, 255, 255, 0.95);
}

.ebs-show-time {
  flex-shrink: 0;
  grid-column: 5;
  grid-row: 1 / span 2;
  align-self: center;
  justify-self: end;
  font-family: var(--bs-font-sans, Inter, system-ui, sans-serif);
  font-weight: 600;
  font-size: 11px;
  color: #e2e8f0;
  letter-spacing: normal;
  line-height: 1.25;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
}

.ebs-show-time.ebs-time-tone--h9 {
  background: #92d050;
  color: #0f172a;
}
.ebs-show-time.ebs-time-tone--h10 {
  background: #ffc000;
  color: #0f172a;
}
.ebs-show-time.ebs-time-tone--h11 {
  background: #00b0f0;
  color: #0f172a;
}
.ebs-show-time.ebs-time-tone--h12 {
  background: #ffff00;
  color: #0f172a;
}
.ebs-show-time.ebs-time-tone--h13 {
  background: #9f8dc2;
  color: #0f172a;
}
.ebs-show-time.ebs-time-tone--h14 {
  background: #c1a951;
  color: #0f172a;
}
.ebs-show-time.ebs-time-tone--h15 {
  background: #e0adb0;
  color: #0f172a;
}
.ebs-show-time.ebs-time-tone--other {
  background: rgba(148, 163, 184, 0.22);
  color: #e2e8f0;
  border-color: rgba(148, 163, 184, 0.35);
}

.ebs-show-actions-divider {
  width: 1px;
  height: 14px;
  background: rgba(148, 163, 184, 0.22);
  margin: 0;
  align-self: center;
}

.ebs-show-edit-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #94a3b8;
}

.ebs-show-card-body {
  padding: 0;
  font-size: 11px;
  background: #ffffff;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
}

.ebs-show-link-strip {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border-bottom: 1px solid #e5e7eb;
  background: #f8fafc;
}

.ebs-show-meta-strip {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 12px;
  padding: 6px 12px;
  border-bottom: 1px solid #e5e7eb;
  background: #f8fafc;
  min-width: 0;
}

.ebs-show-meta-strip__primary-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  min-width: 0;
}

.ebs-show-meta-strip__link-group {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
  justify-content: flex-end;
}

.ebs-show-meta-strip__link-group .ebs-show-link-strip-controls {
  flex: 0 1 auto;
  min-width: 0;
  justify-content: flex-start;
}

.ebs-show-meta-strip__link-group .ebs-show-link-strip-url {
  text-align: left;
}

.ebs-show-link-strip-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #94a3b8;
  flex-shrink: 0;
}

.ebs-show-link-strip-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
}

.ebs-show-link-strip-url {
  display: block;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
  font-family: ui-monospace, "Roboto Mono", Menlo, monospace;
  font-size: 11px;
  color: #2563eb;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: right;
}

.ebs-show-link-strip-url:hover {
  text-decoration: underline;
}

.ebs-show-link-copy-btn.ant-btn {
  flex-shrink: 0;
  width: 22px !important;
  min-width: 22px !important;
  height: 22px !important;
  padding: 0 !important;
  font-size: 12px !important;
  color: #94a3b8 !important;
}

.ebs-show-link-copy-btn.ant-btn .anticon {
  font-size: 12px !important;
}

.ebs-show-link-copy-btn.ant-btn:hover {
  color: #2563eb !important;
  background: rgba(37, 99, 235, 0.08) !important;
}

.ebs-show-primary-select {
  width: 8.5rem;
  min-width: 7rem;
  max-width: 10rem;
}

.ebs-show-primary-select--inline.ant-select {
  width: auto;
  min-width: 6.5rem;
  max-width: 11rem;
}

.ebs-show-primary-select.ant-select .ant-select-selector {
  font-size: 11px !important;
  border-radius: 999px !important;
  min-height: 22px !important;
  height: 22px !important;
}

.ebs-show-primary-select--inline.ant-select .ant-select-selector {
  padding-inline: 8px !important;
}

.ebs-show-primary-pill {
  font-family: "Barlow Condensed", Inter, system-ui, sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.06em;
  border-radius: 999px;
  padding: 2px 8px;
  line-height: 1.2;
  white-space: nowrap;
  flex-shrink: 0;
  border: 1px solid transparent;
  margin: 0;
}

button.ebs-show-primary-pill {
  cursor: pointer;
  appearance: none;
}

button.ebs-show-primary-pill:hover:not(:disabled) {
  filter: brightness(0.96);
}

button.ebs-show-primary-pill:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.ebs-show-primary-pill--known,
button.ebs-show-primary-pill.ebs-show-primary-pill--known {
  color: #15803d;
  background: #dcfce7;
  border-color: #86efac;
}

.ebs-show-primary-pill--unknown,
button.ebs-show-primary-pill.ebs-show-primary-pill--unknown {
  color: #b91c1c;
  background: #fee2e2;
  border-color: #fca5a5;
}

.ebs-show-primary-pill--unset,
button.ebs-show-primary-pill.ebs-show-primary-pill--unset {
  color: #64748b;
  background: #f1f5f9;
  border-color: #e2e8f0;
}

.ebs-show-bounds-wrap {
  padding: 10px 12px 12px;
  overflow: auto;
  background: #ffffff;
}

/* Buyer read: bound numbers as columns; Price / Qty / Bought as rows (spreadsheet-style). */
.ebs-bounds-table--by-metric-row {
  margin-top: 4px;
}

.ebs-bounds-table--by-metric-row .ebs-show-bounds-read-th--matrix-corner {
  width: 6.25rem;
  min-width: 5rem;
}

.ebs-bounds-table--by-metric-row .ebs-show-bounds-read-th--bound-col {
  background: #f1f5f9;
  color: #2563eb;
  font-size: 11px;
  text-align: center;
}

.ebs-bounds-table--by-metric-row .ebs-show-bounds-read-th--metric-label {
  background: #f1f5f9;
  color: #334155;
  font-size: 9px;
  font-weight: 700;
  text-align: left;
  letter-spacing: 0.02em;
  text-transform: none;
}

.ebs-show-bounds-read {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 10px;
  font-family: ui-monospace, "Roboto Mono", Menlo, monospace;
  border: 1px solid #cbd5e1;
}

.ebs-show-bounds-read-th {
  padding: 6px 6px;
  border: 1px solid #cbd5e1;
  font-weight: 700;
  vertical-align: middle;
}

.ebs-show-bounds-read-th--corner {
  width: 3.1rem;
  min-width: 3.1rem;
  background: #3c76a8;
  color: #f8fafc;
  font-size: 9px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: left;
  padding-left: 8px;
}

.ebs-show-bounds-read-th--num {
  background: #f1f5f9;
  color: #2563eb;
  font-size: 11px;
  text-align: center;
}

.ebs-show-bounds-read-th--row {
  background: #3c76a8;
  color: #f8fafc;
  font-size: 8px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: left;
  padding-left: 8px;
}

.ebs-show-bounds-read-td {
  padding: 6px 8px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #0f172a;
  text-align: left;
  vertical-align: middle;
  line-height: 1.35;
}

.ebs-show-bounds-read-td--qty-filled {
  background: #fce7f3;
  color: #9f1239;
  font-weight: 700;
  text-align: left;
}

.ebs-show-bounds-read-td--bought {
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: #475569;
  background: #f8fafc;
}

/* Bought ≥ qty requested — pastel mint like --qty-filled pink, dark green text */
.ebs-show-bounds-read-td--goal-met {
  background: #ecfdf5 !important;
  color: #166534 !important;
  font-weight: 700;
}

.ebs-show-bounds-read-td--goal-met.ebs-show-bounds-read-td--qty-filled {
  background: #ecfdf5 !important;
  color: #166534 !important;
}

/* Buyer-entry add row: single animated ring around the focused bound region */
.ebs-bound-focus-ring-wrap {
  position: relative;
}

.ebs-bound-focus-ring {
  position: absolute;
  pointer-events: none;
  z-index: 3;
  box-sizing: border-box;
  border: 2px solid #2563eb;
  border-radius: 4px;
  animation: ebs-bound-focus-ring-pulse 1.8s ease-in-out infinite;
}

@keyframes ebs-bound-focus-ring-pulse {
  0%,
  100% {
    border-color: #2563eb;
    box-shadow:
      0 0 0 0 rgba(37, 99, 235, 0.55),
      inset 0 0 0 0 rgba(239, 246, 255, 0);
  }
  50% {
    border-color: #60a5fa;
    box-shadow:
      0 0 0 4px rgba(37, 99, 235, 0.28),
      inset 0 0 12px 0 rgba(239, 246, 255, 0.65);
  }
}

html[data-mainview-theme="dark"] .ebs-bound-focus-ring {
  border-color: #60a5fa;
  animation-name: ebs-bound-focus-ring-pulse-dark;
}

@keyframes ebs-bound-focus-ring-pulse-dark {
  0%,
  100% {
    border-color: #60a5fa;
    box-shadow:
      0 0 0 0 rgba(96, 165, 250, 0.5),
      inset 0 0 0 0 rgba(30, 58, 138, 0);
  }
  50% {
    border-color: #93c5fd;
    box-shadow:
      0 0 0 4px rgba(96, 165, 250, 0.32),
      inset 0 0 14px 0 rgba(30, 58, 138, 0.55);
  }
}

.ebs-show-bounds-read-td--bought.ebs-show-bounds-read-td--goal-met {
  background: #ecfdf5 !important;
  color: #166534 !important;
}

/* Buyer read bounds: depleted row — no remaining qty or bought ≥ requested */
.ebs-show-bounds-read-th--row-depleted {
  background: #0f172a !important;
  color: #f8fafc !important;
}

.ebs-show-bounds-read-td--depleted {
  background: #0f172a !important;
  color: #f8fafc !important;
  font-weight: 700;
}

.ebs-show-bounds-read-td--depleted.ebs-show-bounds-read-td--qty-filled,
.ebs-show-bounds-read-td--depleted.ebs-show-bounds-read-td--goal-met {
  background: #0f172a !important;
  color: #f8fafc !important;
}

.ebs-show-bounds-read-th--trail {
  width: 32px;
  min-width: 32px;
  padding: 4px !important;
  text-align: center;
  vertical-align: middle;
  background: #f1f5f9;
}

.ebs-show-bounds-read-td--trail {
  width: 32px;
  min-width: 32px;
  padding: 4px !important;
  text-align: center;
  vertical-align: middle;
  background: #f8fafc;
}

/* Trail column shares depleted row (otherwise stays light gray while row is dark) */
.ebs-show-bounds-read-td--trail.ebs-show-bounds-read-td--depleted {
  background: #0f172a !important;
}

.ebs-show-bounds-read-td--trail.ebs-show-bounds-read-td--depleted
  .ebs-show-bounds-clear-btn.ant-btn {
  color: #cbd5e1 !important;
}

.ebs-show-bounds-read-td--trail.ebs-show-bounds-read-td--depleted
  .ebs-show-bounds-clear-btn.ant-btn:hover {
  color: #fecaca !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

.ebs-show-bounds-clear-btn-wrap {
  display: inline-flex;
  vertical-align: middle;
}

.ebs-show-bounds-clear-btn.ant-btn {
  flex-shrink: 0;
  padding: 0 !important;
  width: 22px !important;
  height: 22px !important;
  min-width: 22px !important;
  line-height: 20px !important;
  color: #94a3b8 !important;
  text-transform: none !important;
  font-size: 12px !important;
}

.ebs-show-bounds-clear-btn.ant-btn:hover {
  color: #dc2626 !important;
  background: rgba(254, 226, 226, 0.5) !important;
}

.ebs-show-bounds-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.ebs-show-bounds-toolbar-hint {
  font-size: 11px;
  font-weight: 500;
  color: #64748b;
}

.ebs-bounds-table--by-metric-row + .ebs-bounds-table--by-metric-row {
  margin-top: 10px;
}

.ebs-show-bounds-toolbar-btn {
  border: none;
  background: transparent;
  color: #2563eb;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 2px 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ebs-show-bounds-toolbar-btn:hover {
  color: #1d4ed8;
}

.ebs-show-bounds-read .ebs-show-bounds-inline-spin {
  display: block;
  width: 100%;
}

.ebs-show-bounds-read .ebs-show-bounds-inline-spin .ant-spin-container {
  width: 100%;
}

.ebs-show-bounds-read .ebs-show-bounds-inline-input.ant-input {
  font: inherit;
  color: inherit;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 2px 6px;
  min-height: 26px;
  line-height: inherit;
  box-shadow: none;
}

.ebs-show-bounds-read .ebs-show-bounds-inline-input.ant-input-textarea textarea {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  resize: none;
}

.ebs-show-bounds-read .ebs-show-bounds-inline-input.ant-input:hover {
  border-color: #e2e8f0;
  background: #fafafa;
}

.ebs-show-bounds-read .ebs-show-bounds-inline-input.ant-input:focus,
.ebs-show-bounds-read .ebs-show-bounds-inline-input.ant-input-focused {
  background: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.2);
}

.ebs-show-bounds-read-td--qty-filled .ebs-show-bounds-inline-input.ant-input {
  color: inherit;
  font-weight: inherit;
}

/* Goal-met: read inline inputs — no chrome until hover; ink matches cell */
.ebs-show-bounds-read-td--goal-met .ebs-show-bounds-inline-input.ant-input {
  color: #166534 !important;
  background: transparent !important;
  border: 1px solid transparent !important;
  box-shadow: none !important;
}

.ebs-show-bounds-read-td--goal-met .ebs-show-bounds-inline-input.ant-input:hover {
  background: #ffffff !important;
  border-color: #86efac !important;
}

.ebs-show-bounds-read-td--goal-met .ebs-show-bounds-inline-input.ant-input:focus,
.ebs-show-bounds-read-td--goal-met .ebs-show-bounds-inline-input.ant-input-focused {
  background: #ffffff !important;
  color: #0f172a !important;
  border-color: #2563eb !important;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.25) !important;
}

/* Depleted rows: when hover editor appears on dark cells, keep input text readable. */
.ebs-show-bounds-read-td--depleted .ebs-show-bounds-inline-input.ant-input:hover {
  background: #ffffff !important;
  color: #0f172a !important;
  border-color: #94a3b8 !important;
}

.ebs-show-bounds-read-td--depleted .ebs-show-bounds-inline-input.ant-input:focus,
.ebs-show-bounds-read-td--depleted .ebs-show-bounds-inline-input.ant-input-focused {
  background: #ffffff !important;
  color: #0f172a !important;
  border-color: #2563eb !important;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.25) !important;
}

.ebs-show-bounds-read-td--depleted
  .ebs-show-bounds-inline-input.ant-input::placeholder {
  color: #64748b !important;
}

.ebs-show-detail-row {
  margin-bottom: 6px;
}

.ebs-muted {
  color: #64748b;
}

.ebs-ml-section {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0 0 12px;
  border-bottom: 1px solid #f1f5f9;
}

/* ML block flush under panel header; keep gap only before CODE section */
.ebs-ml-section + .ebs-ml-section {
  padding-top: 8px;
}

.ebs-ml-panel-scroll > .ebs-assignment-section.ebs-ml-section:first-child .ebs-assignment-subhead {
  margin-top: 0;
}

.ebs-assignment-section {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.ebs-assignment-buyer-search-wrap {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  border-radius: 0;
  border-left: none;
  border-right: none;
}

.ebs-assignment-buyer-search-input {
  flex: 1 1 auto;
  min-width: 0;
  max-width: none;
}

.ebs-assignment-bulk-wrap,
.ebs-assignment-bulk-wrap .ebs-bulk-shows-card {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Inset matches .ebs-ml-section so width aligns with Bulk Import card */
.ebs-ml-group-bar-wrap {
  padding: 10px 12px 4px;
  box-sizing: border-box;
}

.ebs-ml-panel-body--match-shows .ebs-ml-group-bar-wrap {
  padding: 8px 10px 4px;
}

/* Same shell as .ebs-bulk-shows-card: dotted frame, inner bar matches bulk header */
.ebs-ml-group-bar {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 3px;
  background: transparent;
  border: 1px dotted #b0bac8;
  border-radius: 8px;
  box-sizing: border-box;
  max-width: 100%;
}

.ebs-ml-group-bar__spin {
  flex: 1;
  min-width: 0;
  width: 100%;
}

.ebs-ml-group-bar__spin .ant-spin-nested-loading,
.ebs-ml-group-bar__spin .ant-spin-container {
  width: 100%;
}

/* Inner control strip — same fill as .ebs-bulk-shows-card-header--toggle (collapsed) */
.ebs-ml-group-bar__field {
  display: flex;
  align-items: stretch;
  flex: 1;
  min-width: 0;
  min-height: 0;
  border-radius: 6px;
  border: none;
  background: #232b38;
  overflow: hidden;
  transition: background 0.12s ease, box-shadow 0.12s ease;
}

.ebs-ml-group-bar__field:focus-within:not(.ebs-ml-group-bar__field--readonly) {
  background: #2a3445;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.35);
}

.ebs-ml-group-bar__field--readonly:focus-within {
  box-shadow: none;
}

.ebs-ml-group-bar__name.ant-input,
.ebs-ml-group-bar__name.ant-input.ant-input-sm {
  flex: 1;
  min-width: 0;
  font-family: "Barlow Condensed", Inter, system-ui, sans-serif;
  font-size: 12px !important;
  font-weight: 700;
  line-height: 1.25 !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #dbe6f3 !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 10px 12px !important;
}

.ebs-ml-group-bar__field:focus-within:not(.ebs-ml-group-bar__field--readonly)
  .ebs-ml-group-bar__name.ant-input {
  color: #f8fafc !important;
}

.ebs-ml-group-bar__name.ant-input:read-only {
  cursor: default;
  color: #e2e8f0 !important;
}

.ebs-ml-group-bar__field--readonly .ebs-ml-group-bar__open.ant-btn {
  color: #cbd5e1 !important;
}

.ebs-ml-group-bar__name.ant-input:focus {
  outline: none;
}

.ebs-ml-group-bar__open.ant-btn,
.ebs-ml-group-bar__open.ant-btn.ant-btn-sm {
  height: auto !important;
  align-self: stretch;
  min-width: 32px !important;
  padding: 0 8px !important;
  border-radius: 0 !important;
  border: none !important;
  border-left: 1px solid rgba(160, 174, 192, 0.25) !important;
  color: #a0aec0 !important;
  background: transparent !important;
  font-size: 11px !important;
}

.ebs-ml-group-bar__field:focus-within:not(.ebs-ml-group-bar__field--readonly)
  .ebs-ml-group-bar__open.ant-btn {
  border-left-color: rgba(203, 213, 225, 0.35) !important;
  color: #e2e8f0 !important;
  background: transparent !important;
}

.ebs-ml-group-bar__open.ant-btn:hover {
  color: #e2e8f0 !important;
  background: rgba(0, 0, 0, 0.12) !important;
}

.ebs-ml-group-bar__field:focus-within:not(.ebs-ml-group-bar__field--readonly)
  .ebs-ml-group-bar__open.ant-btn:hover {
  color: #f8fafc !important;
  background: rgba(0, 0, 0, 0.15) !important;
}

/* Popconfirm for row delete — anchor near icon, above dropdown layer */
.ebs-ml-group-del-popconfirm.ant-popconfirm {
  z-index: 1070;
}

/* Dark dropdown — selected row solid blue + white text; per-row delete; blue “Add new group” */
.ebs-ml-group-bar__menu-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.ebs-ml-group-bar__menu-row-main {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.ebs-ml-group-bar__menu-check {
  flex-shrink: 0;
  color: #60a5fa;
  font-size: 12px;
}

.ebs-ml-group-bar__menu-check-spacer {
  flex-shrink: 0;
  display: inline-block;
  width: 12px;
}

.ebs-ml-group-bar__menu-name {
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: inherit;
}

.ebs-ml-group-bar__dropdown .ant-dropdown-menu {
  min-width: 220px;
  background: #12151d !important;
  border-radius: 10px !important;
  padding: 4px !important;
  border: 1px solid rgba(51, 65, 85, 0.85);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45) !important;
}

.ebs-ml-group-bar__dropdown .ant-dropdown-menu-item {
  color: #f8fafc !important;
  border-radius: 8px !important;
}

.ebs-ml-group-bar__dropdown
  .ant-dropdown-menu-item
  .ant-dropdown-menu-title-content {
  width: 100%;
  flex: 1;
}

.ebs-ml-group-bar__dropdown .ant-dropdown-menu-item:hover {
  background: rgba(255, 255, 255, 0.08) !important;
}

.ebs-ml-group-bar__dropdown .ant-dropdown-menu-item-selected {
  background: #2563eb !important;
  color: #ffffff !important;
}

/* Keep solid blue when selected row is hovered / active (no gray flash) */
.ebs-ml-group-bar__dropdown .ant-dropdown-menu-item-selected:hover,
.ebs-ml-group-bar__dropdown
  .ant-dropdown-menu-item-selected.ant-dropdown-menu-item-active,
.ebs-ml-group-bar__dropdown
  .ant-dropdown-menu-item-selected.ant-dropdown-menu-item-active:hover {
  background: #2563eb !important;
  color: #ffffff !important;
}

.ebs-ml-group-bar__dropdown
  .ant-dropdown-menu-item-selected
  .ebs-ml-group-bar__menu-name,
.ebs-ml-group-bar__dropdown
  .ant-dropdown-menu-item-selected
  .ebs-ml-group-bar__menu-check {
  color: #ffffff !important;
}

.ebs-ml-group-bar__dropdown .ant-dropdown-menu-item-divider {
  margin: 4px 0 !important;
  border-color: rgba(71, 85, 105, 0.65) !important;
}

.ebs-ml-group-bar__dropdown .ebs-ml-group-bar__menu-add {
  color: #60a5fa !important;
  font-weight: 600;
}

.ebs-ml-group-bar__dropdown .ebs-ml-group-bar__menu-add:hover {
  color: #93c5fd !important;
  background: rgba(96, 165, 250, 0.1) !important;
}

.ebs-ml-group-bar__menu-del-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  margin: -4px -6px -4px 0;
}

.ebs-ml-group-bar__menu-del.ant-btn {
  width: 28px !important;
  min-width: 28px !important;
  height: 28px !important;
  padding: 0 !important;
  color: #94a3b8 !important;
  border: none !important;
  background: transparent !important;
}

.ebs-ml-group-bar__menu-del.ant-btn:hover {
  color: #f87171 !important;
  background: rgba(248, 113, 113, 0.12) !important;
}

.ebs-ml-group-bar__dropdown
  .ant-dropdown-menu-item-selected
  .ebs-ml-group-bar__menu-del.ant-btn {
  color: rgba(255, 255, 255, 0.88) !important;
}

.ebs-ml-group-bar__dropdown
  .ant-dropdown-menu-item-selected
  .ebs-ml-group-bar__menu-del.ant-btn:hover {
  color: #fecaca !important;
  background: rgba(255, 255, 255, 0.12) !important;
}

.ebs-assignment-section:last-of-type {
  border-bottom: none;
}

.ebs-assignment-subhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 8px 12px;
  margin: 0 0 4px;
  background: #1e293b;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 0;
  border-left: none;
  border-right: none;
}

.ebs-assignment-subhead-title {
  font-family: "Barlow Condensed", Inter, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #f8fafc;
}

.ebs-assignment-subhead-ml-group-slot {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
}

.ebs-assignment-subhead--two-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  flex-wrap: nowrap;
}

.ebs-assignment-subhead-row {
  display: flex;
  align-items: center;
  min-width: 0;
  width: 100%;
}

.ebs-assignment-below-search {
  width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.ebs-assignment-buyer-search-wrap:has(+ .ebs-assignment-below-search) {
  margin-bottom: 0;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom-color: transparent;
}

.ebs-assignment-below-search + .ebs-assignments-loading .ebs-assignment-table,
.ebs-assignment-below-search + .ebs-assignments-loading .ebs-assignment-table--show-cards {
  margin-top: 0;
  border-top: none;
}

.ebs-ml-assigned-team--below-search {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0;
  padding: 0;
  min-height: 28px;
  box-sizing: border-box;
  background: #eef2ff;
  border: none;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.ebs-assignment-subhead-row--team {
  flex-wrap: nowrap;
}

.ebs-assignment-subhead-row--filters {
  justify-content: space-between;
  gap: 8px;
  flex-wrap: nowrap;
}

.ebs-assignment-subhead-row-left {
  flex: 1 1 auto;
  min-width: 0;
}

.ebs-assignment-subhead-row-left .ebs-ml-group-bar-wrap {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  padding: 0;
}

.ebs-ml-manager-section .ebs-assignment-subhead-row-left {
  flex: 1 1 auto;
  min-width: 0;
}

.ebs-ml-manager-section .ebs-assignment-subhead-right {
  flex: 0 0 auto;
  margin-left: 4px;
}

.ebs-assignment-subhead--two-row .ebs-assignment-subhead-right {
  flex: 0 0 auto;
  margin-left: auto;
}

.ebs-ml-assigned-team {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  flex: 0 0 auto;
  max-width: 100%;
}

.ebs-ml-assigned-team__badge {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #e0e7ff;
  background: rgba(99, 102, 241, 0.22);
  border: 1px solid rgba(129, 140, 248, 0.45);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.ebs-ml-assigned-team--below-search .ebs-ml-assigned-team__badge {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #4338ca;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
  min-height: 28px;
  text-align: center;
}

.ebs-ml-assigned-team--below-search:has(.ebs-ml-assigned-team__edit) .ebs-ml-assigned-team__badge {
  padding-left: 32px;
  padding-right: 32px;
}

.ebs-ml-assigned-team__edit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #93c5fd;
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
}

.ebs-ml-assigned-team--below-search .ebs-ml-assigned-team__edit {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  flex: none;
  width: 32px;
  min-height: 28px;
  margin: 0;
  padding: 0;
  border: none;
  border-left: 1px solid #e2e8f0;
  border-radius: 0;
  color: #6366f1;
}

.ebs-ml-assigned-team__edit:hover {
  background: rgba(148, 163, 184, 0.16);
  color: #bfdbfe;
}

.ebs-ml-assigned-team--below-search .ebs-ml-assigned-team__edit:hover {
  background: rgba(99, 102, 241, 0.12);
  color: #4f46e5;
}

.ebs-ml-assigned-team__edit:focus-visible,
.ebs-ml-assigned-team--below-search .ebs-ml-assigned-team__edit:focus-visible {
  outline: 2px solid rgba(96, 165, 250, 0.85);
  outline-offset: -2px;
}

.ebs-assignment-subhead-row-left .ebs-ml-group-bar {
  padding: 0;
  border: none;
}

.ebs-assignment-subhead-row-left .ebs-ml-group-bar__field,
.ebs-assignment-subhead-ml-group-slot .ebs-ml-group-bar__field {
  border-radius: 7px;
  min-height: 32px;
  border: 1px solid rgba(148, 163, 184, 0.45);
}

.ebs-assignment-subhead-ml-group-slot .ebs-ml-group-bar__name.ant-input,
.ebs-assignment-subhead-ml-group-slot
  .ebs-ml-group-bar__name.ant-input.ant-input-sm {
  padding: 7px 10px !important;
  color: #f1f5f9 !important;
}

.ebs-assignment-subhead-ml-group-slot
  .ebs-ml-group-bar__name.ant-input:read-only {
  color: #f8fafc !important;
}

.ebs-assignment-subhead-ml-group-slot
  .ebs-ml-group-bar__field:focus-within:not(.ebs-ml-group-bar__field--readonly) {
  border-color: rgba(96, 165, 250, 0.85);
}

.ebs-assignment-subhead-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-left: auto;
}

.ebs-assignment-panel-kind-tabs {
  margin: 0 0 12px;
  padding: 0;
}

.ebs-ml-bulk-action-drawer .ebs-assignment-panel-kind-tabs,
.ebs-assignment-bulk-drawer-body-inner > .ebs-assignment-panel-kind-tabs {
  padding: 12px 16px 0;
}

.ebs-assignment-panel-kind-segmented.ant-segmented {
  width: 100%;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 3px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.ebs-assignment-panel-kind-segmented .ant-segmented-group {
  gap: 2px;
}

.ebs-assignment-panel-kind-segmented .ant-segmented-item {
  flex: 1 1 0;
  color: #64748b;
  border-radius: 8px !important;
}

.ebs-assignment-panel-kind-segmented .ant-segmented-item-label {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 32px !important;
  padding: 0 12px !important;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1 !important;
}

.ebs-assignment-panel-kind-segmented .ant-segmented-item-selected,
.ebs-assignment-panel-kind-segmented .ant-segmented-item-selected .ant-segmented-item-label {
  color: #0f172a !important;
}

.ebs-assignment-panel-kind-segmented .ant-segmented-thumb {
  background: #ffffff !important;
  border-radius: 8px !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12) !important;
}

.ebs-assignment-subhead--with-custom-title {
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
}

.ebs-assignment-subhead--with-custom-title .ebs-assignment-subhead-ml-group-slot {
  flex: 1 1 auto;
  min-width: 0;
}

.ebs-assignment-subhead--with-custom-title .ebs-assignment-subhead-right {
  flex: 0 0 auto;
  flex-wrap: nowrap;
  min-width: 0;
}

.ebs-assignment-show-filter-label {
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.ebs-cant-buy-reassign-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-shrink: 0;
  min-width: 178px;
  height: 28px;
}

.ebs-ml-manager-section .ebs-cant-buy-reassign-wrap {
  gap: 4px;
  min-width: 126px;
}

.ebs-cant-buy-import-note-btn,
.ebs-cant-buy-reassign-btn {
  min-width: 78px;
  height: 24px;
  padding: 0 6px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.ebs-ml-manager-section .ebs-cant-buy-import-note-btn {
  min-width: 72px;
  padding: 0 4px;
  font-size: 9.5px;
}

.ebs-ml-manager-section .ebs-cant-buy-reassign-btn {
  min-width: 48px;
  padding: 0 4px;
  font-size: 9.5px;
}

.ebs-assignment-buyer-search-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 3px;
  padding: 6px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.ebs-assignment-buyer-search-wrap + .ebs-assignments-loading .ebs-assignment-table,
.ebs-assignment-buyer-search-wrap + .ebs-assignments-loading .ebs-assignment-table--show-cards {
  margin-top: 0;
}

.ebs-assignment-section--match-shows .ebs-assignment-buyer-search-wrap {
  background: #ffffff;
}

.ebs-assignment-buyer-search-label {
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  flex-shrink: 0;
}

.ebs-assignment-buyer-search-input {
  flex: 1;
  min-width: 140px;
  max-width: 360px;
}

.ebs-assignment-open-show-hint {
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.ebs-assignment-filter {
  min-width: 88px !important;
}

.ebs-assignment-filter.ant-select .ant-select-selector {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(148, 163, 184, 0.45) !important;
  color: #e2e8f0 !important;
  font-size: 11px !important;
  font-weight: 600 !important;
}

.ebs-assignment-bulk-wrap {
  margin-bottom: 12px;
}

/* Tight gap under ML/CODE subhead — base .ebs-bulk-shows-wrap adds 10px top padding */
.ebs-assignment-bulk-wrap.ebs-bulk-shows-wrap {
  padding: 0;
}

.ebs-assignment-map-buyers-wrap {
  margin-top: 8px;
}

.ebs-assignment-map-buyers-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.ebs-assignment-map-buyers-label {
  font-size: 12px;
  font-weight: 600;
  color: #475569;
}

.ebs-team-buyer-multi-select-wrap {
  width: 100%;
}

.ebs-ml-map-buyers-drawer .ebs-team-buyer-multi-select-wrap {
  margin: 6px 0 8px;
}

.ebs-ml-inline-action-panel .ebs-team-buyer-multi-select-wrap {
  margin: 8px 0 10px;
}

.ebs-team-buyer-multi-select-wrap .ant-select {
  width: 100%;
}

.ebs-team-buyer-multi-select-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 8px;
  border-bottom: 1px solid #e2e8f0;
}

.ebs-assignment-field .ant-select {
  width: 100%;
}

.ebs-assignment-table {
  margin-top: 4px;
  table-layout: fixed;
  width: 100%;
  max-width: 100%;
}

/* Column widths — ML adds Unable col: [select] SHOW # | ML | Buyer | Unable | actions */
.ebs-assignment-table col.ebs-assignment-col-show-num {
  width: 23%;
}

.ebs-assignment-table col.ebs-assignment-col-code-col {
  width: 28%;
}

.ebs-assignment-table col.ebs-assignment-col-tickets-bought {
  width: 4.5rem;
}

.ebs-assignment-table col.ebs-assignment-col-buyer {
  width: 38%;
}

.ebs-assignment-table col.ebs-assignment-col-flag {
  width: 2.85rem;
}

.ebs-assignment-table col.ebs-assignment-col-actions {
  width: 3rem;
}

.ebs-assignment-table--selectable col.ebs-assignment-col-select {
  width: 2.125rem;
}

.ebs-assignment-table--selectable col.ebs-assignment-col-show-num {
  width: 20%;
}

.ebs-assignment-table--selectable col.ebs-assignment-col-code-col {
  width: 24%;
}

.ebs-assignment-table--selectable col.ebs-assignment-col-tickets-bought {
  width: 4.5rem;
}

.ebs-assignment-table--selectable col.ebs-assignment-col-buyer {
  width: 34%;
}

.ebs-assignment-table--selectable col.ebs-assignment-col-flag {
  width: 2.85rem;
}

.ebs-assignment-table--selectable col.ebs-assignment-col-actions {
  width: 3rem;
}

.ebs-assignment-th-select,
.ebs-assignment-col-select {
  text-align: center;
  vertical-align: middle;
}

.ebs-assignment-table--selectable .ebs-assignment-th-select,
.ebs-assignment-table--selectable .ebs-assignment-col-select {
  padding-left: 2px;
  padding-right: 2px;
}

.ebs-assignment-table thead th.ebs-assignment-th-select {
  padding-top: 4px;
  padding-bottom: 4px;
}

.ebs-assignment-table tbody td.ebs-assignment-col-select {
  padding: 2px 4px;
}

.ebs-assignment-col-select .ant-checkbox-wrapper {
  margin-inline-start: 0;
  margin-inline-end: 0;
}

.ebs-assignment-table--show-cards thead th.ebs-assignment-th-select,
.ebs-assignment-table--show-cards tbody td.ebs-assignment-col-select {
  padding: 4px 4px !important;
}

/* Buyer read-only: no actions column — ML table includes Unable */
.ebs-assignment-table--no-actions col.ebs-assignment-col-show-num {
  width: 22%;
}

.ebs-assignment-table--no-actions col.ebs-assignment-col-code-col {
  width: 26%;
}

.ebs-assignment-table--no-actions col.ebs-assignment-col-tickets-bought {
  width: 4.5rem;
}

.ebs-assignment-table--no-actions col.ebs-assignment-col-buyer {
  width: 34%;
}

.ebs-assignment-table--no-actions col.ebs-assignment-col-flag {
  width: 2.85rem;
}

.ebs-assignment-table thead th.ebs-assignment-th-flag,
.ebs-assignment-table tbody td.ebs-assignment-col-flag {
  text-align: center;
  vertical-align: middle;
}

.ebs-assignment-table tbody td.ebs-assignment-col-flag {
  padding-top: 5px;
  padding-bottom: 5px;
}

.ebs-ml-flag-switch-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  transform: scale(0.9);
  transform-origin: center center;
}

.ebs-assignment-col-flag .ebs-ml-flag-switch.ant-switch {
  min-width: 0;
}

.ebs-assignment-td-flag-muted {
  color: #94a3b8;
  font-size: 12px;
}

/* ML rows: denied buyer entry on same show + ML, or captain can't-buy flag. */
.ebs-assignment-table tbody tr.ebs-entry-row--ml-flagged > td {
  background: #fef2f2 !important;
  border-bottom-color: #fecaca;
}

.ebs-assignment-table tbody tr.ebs-entry-row--ml-flagged:hover > td {
  background: #fee2e2 !important;
}

.ebs-assignment-table tbody tr.ebs-entry-row--ml-flagged > td:first-child {
  box-shadow: inset 3px 0 0 0 #dc2626;
}

/* ML rows: matching non-denied buyer entry (same show + ML). */
.ebs-assignment-table tbody tr.ebs-entry-row--ml-success > td {
  background: #f0fff4 !important;
  border-bottom-color: #bbf7d0;
}

.ebs-assignment-table tbody tr.ebs-entry-row--ml-success:hover > td {
  background: #dcfce7 !important;
}

.ebs-assignment-table tbody tr.ebs-entry-row--ml-success > td:first-child {
  box-shadow: inset 3px 0 0 0 #16a34a;
}

/* ML rows: mixed success + failed across shows in group scope. */
.ebs-assignment-table tbody tr.ebs-entry-row--ml-mixed > td {
  background: #fffbeb !important;
  border-bottom-color: #fde68a;
}

.ebs-assignment-table tbody tr.ebs-entry-row--ml-mixed:hover > td {
  background: #fef3c7 !important;
}

.ebs-assignment-table tbody tr.ebs-entry-row--ml-mixed > td:first-child {
  box-shadow: inset 3px 0 0 0 #d97706;
}

.ebs-ml-buyer-flag-hint {
  margin: 10px 12px 0;
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.45;
  color: #475569;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.ebs-assignment-table thead th {
  padding: 7px 8px;
  border-right: 1px solid #e5e7eb;
  white-space: normal;
  line-height: 1.25;
  overflow: visible;
  vertical-align: middle;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: #64748b;
  background: #f1f5f9;
}

.ebs-assignment-table .ebs-th-sort-btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  width: 100%;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  font-size: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
  text-align: left;
}

.ebs-assignment-table .ebs-th-sort-btn:hover {
  color: #0f172a;
}

.ebs-assignment-table .ebs-th-sort-label {
  flex: 1;
  min-width: 0;
}

.ebs-assignment-table .ebs-th-sort-indicator-slot {
  flex-shrink: 0;
  min-width: 1em;
  font-size: 9px;
  line-height: 1;
  text-align: center;
}

.ebs-assignment-table .ebs-th-sort-indicator-slot--muted {
  opacity: 0.38;
  font-weight: 600;
}

.ebs-assignment-table .ebs-th-sort-indicator-slot--active {
  opacity: 1;
  font-weight: 700;
  color: #1d4ed8;
}

.ebs-assignment-table thead th.ebs-th-sort--active {
  background: #e0ecff;
  color: #0f172a;
}

.ebs-assignment-table thead th.ebs-th-sort--active .ebs-th-sort-btn {
  color: #0f172a;
}

.ebs-assignment-table--show-cards thead th.ebs-th-sort--active {
  background: #e0ecff;
}

.ebs-assignment-table thead th.ebs-assignment-col-buyer {
  min-width: 7.5rem;
}

.ebs-assignment-table tbody td.ebs-assignment-col-buyer {
  min-width: 7.5rem;
}

.ebs-assignment-table thead th.ebs-assignment-col-show,
.ebs-assignment-table tbody td.ebs-assignment-col-show {
  min-width: 6.75rem;
}

/* CODE table: keep Show # narrow but wide enough for the selected number + chevron */
.ebs-assignment-table--code col.ebs-assignment-col-show-num,
.ebs-assignment-table--code.ebs-assignment-table--selectable col.ebs-assignment-col-show-num,
.ebs-assignment-table--code.ebs-assignment-table--no-actions col.ebs-assignment-col-show-num {
  width: 3.5rem;
}

.ebs-assignment-table--code thead th.ebs-assignment-col-show,
.ebs-assignment-table--code tbody td.ebs-assignment-col-show {
  width: 3.5rem;
  min-width: 3.5rem;
  max-width: 3.75rem;
  padding-left: 4px;
  padding-right: 4px;
  box-sizing: border-box;
}

/* CODE table: give Code input room; shrink Tickets bought (header wraps). */
.ebs-assignment-table--code col.ebs-assignment-col-code-col,
.ebs-assignment-table--code.ebs-assignment-table--selectable col.ebs-assignment-col-code-col,
.ebs-assignment-table--code.ebs-assignment-table--no-actions col.ebs-assignment-col-code-col {
  width: 34%;
}

.ebs-assignment-table--code col.ebs-assignment-col-tickets-bought,
.ebs-assignment-table--code.ebs-assignment-table--selectable col.ebs-assignment-col-tickets-bought,
.ebs-assignment-table--code.ebs-assignment-table--no-actions col.ebs-assignment-col-tickets-bought {
  width: 3.25rem;
}

.ebs-assignment-table--code.ebs-assignment-table--selectable col.ebs-assignment-col-buyer,
.ebs-assignment-table--code.ebs-assignment-table--no-actions col.ebs-assignment-col-buyer {
  width: 30%;
}

.ebs-assignment-table--code thead th.ebs-assignment-col-code,
.ebs-assignment-table--code tbody td.ebs-assignment-col-code {
  min-width: 6.5rem;
}

.ebs-assignment-table--code thead th.ebs-assignment-col-tickets-bought {
  width: 3.25rem;
  min-width: 3.25rem;
  max-width: 3.5rem;
  padding-left: 2px;
  padding-right: 2px;
  white-space: normal;
  line-height: 1.15;
  text-align: center;
}

.ebs-assignment-table--code tbody td.ebs-assignment-col-tickets-bought {
  width: 3.25rem;
  min-width: 3.25rem;
  max-width: 3.5rem;
  padding-left: 2px;
  padding-right: 2px;
}

.ebs-assignment-table--code .ebs-assignment-tickets-bought-input {
  max-width: 2.5rem;
}

.ebs-assignment-table thead th.ebs-assignment-col-code {
  min-width: 7.5rem;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

.ebs-assignment-table thead th:last-child {
  border-right: none;
}

/* Read-only rows: Tour / Show # / code colors (reference ML+CODE tables) */
.ebs-assignment-table
  tbody
  tr.ebs-entry-row:not(.ebs-entry-row--editing):not(.ebs-assignment-add-row)
  td.ebs-assignment-col-buyer {
  color: #6d28d9;
  font-weight: 600;
}

.ebs-assignment-table
  tbody
  tr.ebs-entry-row:not(.ebs-entry-row--editing):not(.ebs-assignment-add-row)
  td.ebs-assignment-col-show {
  color: #2563eb;
  font-weight: 700;
  font-size: 12px;
}

.ebs-assignment-table
  tbody
  tr.ebs-entry-row:not(.ebs-entry-row--editing):not(.ebs-assignment-add-row)
  td.ebs-assignment-col-code {
  color: #1e293b;
  font-weight: 700;
  font-size: 12px;
}

.ebs-ml-code--purchased {
  color: #15803d !important;
  font-weight: 700;
}

.ebs-assignment-th-actions {
  width: 1%;
  min-width: 2.75rem;
}

.ebs-assignment-table thead th.ebs-assignment-th-actions,
.ebs-assignment-table tbody td.ebs-assignment-td-actions {
  overflow: visible !important;
}

.ebs-assignment-col-show,
.ebs-assignment-col-code,
.ebs-assignment-col-buyer,
.ebs-assignment-col-tickets-bought {
  vertical-align: middle;
}

.ebs-assignment-table thead th.ebs-assignment-col-tickets-bought,
.ebs-assignment-table tbody td.ebs-assignment-col-tickets-bought {
  text-align: center;
  padding-left: 4px;
  padding-right: 4px;
}

.ebs-assignment-tickets-bought-input {
  width: 100%;
  max-width: 3.25rem;
}

.ebs-assignment-tickets-bought-input.ant-input-number {
  font-size: 12px;
}

.ebs-assignment-tickets-bought-input.ant-input-number .ant-input-number-input {
  text-align: center;
  padding: 2px 4px;
}

.ebs-assignment-tickets-bought-read {
  display: inline-block;
  min-width: 1.5rem;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: #1e293b;
}

.ebs-assignment-table tbody td {
  vertical-align: middle;
  padding: 6px 8px;
  overflow: hidden;
  position: relative;
}

.ebs-assignment-table tbody td.ebs-assignment-col-buyer {
  overflow: visible;
}

.ebs-assignment-table .ebs-code-cell {
  max-width: none;
  word-break: break-word;
}

.ebs-assignment-row-edit-btn.ant-btn {
  width: 28px;
  min-width: 28px !important;
  height: 28px;
  padding: 0 !important;
  margin: 0 auto;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  color: #2563eb !important;
}

.ebs-assignment-row-edit-btn.ant-btn:hover:not(:disabled) {
  color: #1d4ed8 !important;
  background: rgba(37, 99, 235, 0.08) !important;
}

.ebs-assignment-row-edit-btn.ant-btn:disabled {
  color: #94a3b8 !important;
}

/* Block layout inside table cells — prevents flex overflow / overlapping columns */
.ebs-assignment-field {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0;
  box-sizing: border-box;
}

.ebs-assignment-field .ant-input-affix-wrapper,
.ebs-assignment-field .ebs-assignment-native-select,
.ebs-assignment-field .ebs-assignment-add-show-multi {
  max-width: 100%;
  box-sizing: border-box;
}

.ebs-assignment-field .ant-input-affix-wrapper {
  width: 100% !important;
}

.ebs-assignment-field--action {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 24px;
}

.ebs-assignment-td-actions {
  min-width: 2.75rem;
  padding-left: 4px !important;
  padding-right: 4px !important;
  vertical-align: middle !important;
  text-align: center;
}

.ebs-assignment-add-row td {
  background: #f1f5f9;
  padding-top: 8px !important;
  padding-bottom: 8px !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

.ebs-assignment-add-row .ant-select .ant-select-selector {
  background-color: #ffffff !important;
}

/* Add row: solid white on inputs/selects (cell strip may be slate; controls match Conf # / Buyer entries) */
.ebs-assignment-add-row .ebs-assignment-field .ant-input,
.ebs-assignment-add-row .ebs-assignment-field .ant-input-affix-wrapper,
.ebs-assignment-add-row .ebs-assignment-field .ant-select .ant-select-selector {
  background-color: #ffffff !important;
}

.ebs-assignment-add-row .ebs-assignment-field .ant-input-affix-wrapper .ant-input {
  background: transparent !important;
}

.ebs-assignment-add-row .ebs-assignment-field .ebs-assignment-add-show-multi.ant-select .ant-select-selector {
  background-color: #ffffff !important;
}

/* Native Show # — compact, keep selected number visible in narrow CODE column */
.ebs-assignment-native-select {
  display: block;
  width: 100%;
  min-width: 2.75rem;
  height: 24px;
  margin: 0;
  padding: 0 1rem 0 0.2rem;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 22px;
  text-align: center;
  color: #0f172a;
  background-color: #ffffff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 3px center;
  background-size: 10px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  transition: border-color 0.15s ease;
}

.ebs-assignment-native-select:hover {
  border-color: #94a3b8;
}

.ebs-assignment-native-select:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

/* ML add row — multi Show # (Ant Select) */
.ebs-assignment-field .ebs-assignment-add-show-multi {
  width: 100%;
  max-width: 100%;
}

.ebs-assignment-field
  .ebs-assignment-add-show-multi.ant-select
  .ant-select-selector {
  min-height: 24px !important;
  font-size: 11px !important;
}

/* Ant Input — compact; width constrained by table cell overflow:hidden */
.ebs-assignment-table .ebs-assignment-field .ant-input {
  height: 24px !important;
  min-height: 24px !important;
  margin: 0 !important;
  padding: 2px 8px !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  line-height: 18px !important;
  color: #0f172a !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 4px !important;
  background: #ffffff !important;
  box-sizing: border-box !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
}

.ebs-assignment-table .ebs-assignment-field .ant-input-affix-wrapper {
  display: flex !important;
  align-items: center !important;
  min-height: 24px !important;
  height: 24px !important;
  padding-block: 0 !important;
  padding-inline: 0 !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 4px !important;
  background: #ffffff !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

.ebs-assignment-table .ebs-assignment-field .ant-input-affix-wrapper .ant-input {
  border: none !important;
  box-shadow: none !important;
  height: 22px !important;
  min-height: 22px !important;
  padding: 2px 8px !important;
}

.ebs-assignment-table .ebs-assignment-field .ant-input:hover {
  border-color: #94a3b8 !important;
}

.ebs-assignment-table .ebs-assignment-field .ant-input:focus,
.ebs-assignment-table .ebs-assignment-field .ant-input-focused {
  border-color: #2563eb !important;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2) !important;
}

.ebs-assignment-table .ebs-assignment-field .ant-input-affix-wrapper-focused {
  border-color: #2563eb !important;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2) !important;
}

.ebs-assignment-table .ebs-assignment-field .ant-input::placeholder {
  color: #94a3b8 !important;
  font-weight: 400 !important;
}

.ebs-assignment-add-btn.ant-btn-primary,
.ebs-assignment-add-btn.ant-btn {
  flex-shrink: 0;
  height: 24px !important;
  min-height: 24px !important;
  padding: 0 8px !important;
  line-height: 22px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  border-radius: 4px !important;
  box-sizing: border-box !important;
  white-space: nowrap;
}

.ebs-ml-subhead {
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}

.ebs-bulk-block {
  margin-bottom: 10px;
}

.ebs-bulk-hint {
  font-size: 10px;
  color: #64748b;
  margin-bottom: 4px;
}

.ebs-bulk-block .ant-btn {
  margin-top: 6px;
}

.ebs-code-cell {
  word-break: break-all;
  max-width: 140px;
}

/* Block + horizontal margin was 100% + 24px wide → clipped under overflow-x: hidden */
.ebs-managed-btn.ant-btn {
  width: calc(100% - 24px) !important;
  max-width: calc(100% - 24px);
  margin: 0 12px 12px !important;
  box-sizing: border-box;
  height: auto !important;
  min-height: 0;
  white-space: normal !important;
  line-height: 1.3 !important;
  font-size: 11px !important;
  padding: 7px 10px !important;
}

.ebs-managed-btn.ant-btn .ant-btn-icon {
  line-height: 1;
}

.ebs-managed-btn.ant-btn > span:not(.ant-btn-icon) {
  white-space: normal !important;
}

/* Denied Select dropdown — subtle radius; dark glass so grid shows through (portal) */
.ebs-select-denied-dropdown.ant-select-dropdown {
  min-width: 88px !important;
  background: rgba(15, 23, 42, 0.88) !important;
  backdrop-filter: blur(10px);
  border-radius: 5px !important;
  border: 1px solid rgba(71, 85, 105, 0.65) !important;
  padding: 4px !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45) !important;
}

.ebs-select-denied-dropdown .ant-select-item {
  color: #f8fafc !important;
  border-radius: 3px !important;
  padding: 2px 6px !important;
  min-height: 0 !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
}

.ebs-select-denied-dropdown .ant-select-item-option {
  min-height: 0 !important;
  align-items: center !important;
}

.ebs-select-denied-dropdown .ant-select-item-option:not(.ant-select-item-option-selected) {
  background: transparent !important;
}

.ebs-select-denied-dropdown
  .ant-select-item-option-selected:not(.ant-select-item-option-disabled) {
  background: rgba(37, 99, 235, 0.95) !important;
}

.ebs-select-denied-dropdown
  .ant-select-item-option-selected:not(.ant-select-item-option-disabled)
  .ant-select-item-option-content {
  color: #ffffff !important;
}

.ebs-select-denied-dropdown .ant-select-item-option-selected .anticon {
  color: #ffffff !important;
  font-size: 10px !important;
}

.ebs-select-denied-dropdown .ant-select-item-option-active:not(.ant-select-item-option-selected):not(
  .ant-select-item-option-disabled
) {
  background: rgba(255, 255, 255, 0.06) !important;
}

.ebs-select-denied-dropdown .ant-select-item-option-content {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  font-size: 10px !important;
  line-height: 1.2 !important;
  color: inherit !important;
  overflow: visible !important;
  white-space: nowrap !important;
}

/* Buyer entries cell Select dropdowns (show, bound, ML, failure, tour) */
.ebs-entries-select-dropdown.ant-select-dropdown {
  padding: 4px !important;
  border-radius: 5px !important;
}

.ebs-entries-select-dropdown .ant-select-item {
  min-height: 0 !important;
  padding: 2px 6px !important;
  font-size: 10px !important;
  line-height: 1.2 !important;
  border-radius: 3px !important;
}

.ebs-entries-select-dropdown .ant-select-item-option {
  min-height: 0 !important;
  align-items: center !important;
}

.ebs-entries-select-dropdown .ant-select-item-option-content {
  font-size: 10px !important;
  line-height: 1.2 !important;
}

.ebs-entries-select-dropdown .ant-select-item-empty {
  font-size: 10px !important;
  padding: 2px 6px !important;
}

@media (max-width: 1200px) {
  .ebs-root.buying-sheet {
    height: auto;
    max-height: none;
    min-height: 100vh;
    overflow: visible;
  }

  .ebs-columns {
    grid-template-columns: 1fr;
    flex: none;
    min-height: auto;
    overflow: visible;
  }

  .ebs-col {
    max-height: min(72vh, 640px);
    min-height: 240px;
    border-right: none;
    border-bottom: 1px solid #e5e7eb;
  }

  .ebs-col:last-child {
    border-bottom: none;
  }
}

/* My Shows: ML/CODE tables match Shows & Bounds dark cards + gray track */
.ebs-col--match-shows {
  background: #eef2f7 !important;
}

.ebs-panel--match-shows {
  background: #eef2f7;
}

.ebs-panel--match-shows .ebs-ml-panel-body--match-shows {
  background: #eef2f7;
}

.ebs-assignment-section--match-shows.ebs-ml-section {
  border-bottom: none;
  padding: 0 0 12px;
}

.ebs-assignment-section--match-shows.ebs-ml-section + .ebs-assignment-section--match-shows.ebs-ml-section {
  padding-top: 8px;
}

.ebs-panel--match-shows .ebs-ml-panel-scroll {
  background: #eef2f7;
}

.ebs-assignment-section--match-shows .ebs-assignment-subhead {
  background: #1d263b;
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 6px;
  box-shadow: none;
}

.ebs-assignment-section--match-shows .ebs-assignment-subhead-title {
  letter-spacing: 0.08em;
}

/* My Shows: light ML / CODE tables (navy section bars, pale column headers, row hairlines) */
.ebs-assignment-table--show-cards {
  border-collapse: collapse;
  margin-top: 0;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0;
  border-left: none;
  border-right: none;
  overflow: hidden;
}

.ebs-assignment-table--show-cards thead th {
  background: #f1f5f9;
  color: #64748b;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  border: none;
  border-bottom: 1px solid #e2e8f0;
  border-right: 1px solid #e8eef2;
  padding: 8px 10px;
  vertical-align: middle;
  white-space: normal;
  line-height: 1.25;
  overflow: visible;
}

/* ML / CODE column header — same font size as siblings; slight tracking for “ML CODE”. */
.ebs-assignment-table--show-cards thead th.ebs-assignment-col-code {
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

.ebs-assignment-table--show-cards thead th:last-child {
  border-right: none;
}

.ebs-assignment-table--show-cards tbody td {
  background: #ffffff;
  border: none;
  border-bottom: 1px solid #e8eef4;
  border-right: 1px solid #f1f5f9;
  padding: 8px 10px;
  vertical-align: middle;
}

.ebs-assignment-table--show-cards tbody tr:last-child td {
  border-bottom: none;
}

.ebs-assignment-table--show-cards tbody td:last-child {
  border-right: none;
}

.ebs-assignment-table--show-cards tbody td.ebs-assignment-col-buyer {
  color: #6d28d9;
  font-weight: 600;
  overflow: visible;
  min-width: 9.5rem;
}

.ebs-assignment-table--show-cards tbody td.ebs-assignment-col-show {
  color: #2563eb;
  font-weight: 700;
  font-size: 12px;
}

.ebs-assignment-table--show-cards tbody td.ebs-assignment-col-code {
  color: #1e293b;
  font-weight: 700;
  font-size: 12px;
}

.ebs-assignment-table--show-cards tbody td.ebs-assignment-col-code.ebs-code-cell {
  font-size: 11px;
}

.ebs-assignment-table--show-cards .ebs-link-edit {
  color: #2563eb !important;
}

.ebs-assignment-table--show-cards .ebs-assignment-add-row td {
  background: #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
}

.ebs-assignment-table--show-cards .ebs-entry-row--editing td {
  background: #eff6ff;
  border-color: #dbeafe;
}

.ebs-assignment-table--show-cards .ebs-entry-row--editing td.ebs-assignment-td-actions {
  background: #eff6ff;
}

.ebs-assignment-table--show-cards tbody tr.ebs-entry-row--ml-flagged > td {
  background: #fef2f2 !important;
  border-bottom-color: #fecaca;
  border-right-color: #fecaca;
}

.ebs-assignment-table--show-cards tbody tr.ebs-entry-row--ml-flagged:hover > td {
  background: #fee2e2 !important;
}

.ebs-assignment-table--show-cards tbody tr.ebs-entry-row--ml-flagged.ebs-entry-row--editing > td {
  background: #fee2e2 !important;
  border-color: #fecaca;
}

.ebs-assignment-table--show-cards tbody tr.ebs-entry-row--ml-success > td {
  background: #f0fff4 !important;
  border-bottom-color: #bbf7d0;
  border-right-color: #bbf7d0;
}

.ebs-assignment-table--show-cards tbody tr.ebs-entry-row--ml-success:hover > td {
  background: #dcfce7 !important;
}

.ebs-assignment-table--show-cards tbody tr.ebs-entry-row--ml-success.ebs-entry-row--editing > td {
  background: #dcfce7 !important;
  border-color: #bbf7d0;
}

.ebs-assignment-table--show-cards tbody tr.ebs-entry-row--ml-mixed > td {
  background: #fffbeb !important;
  border-bottom-color: #fde68a;
  border-right-color: #fde68a;
}

.ebs-assignment-table--show-cards tbody tr.ebs-entry-row--ml-mixed:hover > td {
  background: #fef3c7 !important;
}

.ebs-assignment-table--show-cards tbody tr.ebs-entry-row--ml-mixed.ebs-entry-row--editing > td {
  background: #fef3c7 !important;
  border-color: #fde68a;
}

.ebs-assignment-table tbody tr.ebs-entry-row--ml-success.ebs-entry-row--editing > td {
  background: #dcfce7 !important;
  border-bottom-color: #bbf7d0;
}
/* Buyer bounds read matrix — Excel-style conditional fills (qty remaining row). */

.ebs-buyer-bounds-tier--green.ebs-show-bounds-read-td {
  background: #63be7b !important;
  color: #000000 !important;
  font-weight: 700;
}

.ebs-buyer-bounds-tier--red.ebs-show-bounds-read-td {
  background: #f8696b !important;
  color: #000000 !important;
  font-weight: 700;
}

.ebs-buyer-bounds-tier--orange.ebs-show-bounds-read-td {
  background: #ffc000 !important;
  color: #000000 !important;
  font-weight: 700;
}

.ebs-buyer-bounds-tier--black.ebs-show-bounds-read-td,
.ebs-buyer-bounds-tier--black.ebs-show-bounds-read-th--bound-col {
  background: #000000 !important;
  color: #ffffff !important;
  font-weight: 700;
}

html[data-mainview-theme="dark"] .ebs-buyer-bounds-tier--green.ebs-show-bounds-read-td {
  background: #375623 !important;
  color: #ffffff !important;
}

html[data-mainview-theme="dark"] .ebs-buyer-bounds-tier--red.ebs-show-bounds-read-td {
  background: #9c0006 !important;
  color: #ffffff !important;
}

html[data-mainview-theme="dark"] .ebs-buyer-bounds-tier--orange.ebs-show-bounds-read-td {
  background: #974706 !important;
  color: #ffffff !important;
}

html[data-mainview-theme="dark"] .ebs-buyer-bounds-tier--black.ebs-show-bounds-read-td,
html[data-mainview-theme="dark"]
  .ebs-buyer-bounds-tier--black.ebs-show-bounds-read-th--bound-col {
  background: #000000 !important;
  color: #ffffff !important;
}

/* Beat generic dark read-cell overrides for tier cells. */
html[data-mainview-theme="dark"]
  .ebs-bounds-table--by-metric-row
  .ebs-buyer-bounds-tier--green.ebs-show-bounds-read-td,
html[data-mainview-theme="dark"]
  .ebs-bounds-table--by-metric-row
  .ebs-buyer-bounds-tier--red.ebs-show-bounds-read-td,
html[data-mainview-theme="dark"]
  .ebs-bounds-table--by-metric-row
  .ebs-buyer-bounds-tier--orange.ebs-show-bounds-read-td,
html[data-mainview-theme="dark"]
  .ebs-bounds-table--by-metric-row
  .ebs-buyer-bounds-tier--black.ebs-show-bounds-read-td {
  font-weight: 700 !important;
}

html[data-mainview-theme="dark"]
  .ebs-bounds-table--by-metric-row
  .ebs-show-bounds-read-th--bound-col.ebs-buyer-bounds-tier--black {
  background: #000000 !important;
  color: #ffffff !important;
}
.ebs-show-ml-tags-row {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
}

/* Expanded show card: below link, above bounds table (buyer view). */
.ebs-show-ml-tags-body {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 8px 12px 4px;
  margin: 0;
  border-bottom: 1px solid #e8eef4;
}

.ebs-show-card--open .ebs-show-ml-tags-body {
  background: #ffffff;
}

.ebs-show-ml-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  border: 1px solid transparent;
}

.ebs-show-ml-tag--accepted {
  color: #14532d;
  background: #dcfce7;
  border-color: #86efac;
}

.ebs-show-ml-tag--denied {
  color: #7f1d1d;
  background: #fee2e2;
  border-color: #fca5a5;
}

.ebs-show-ml-tag--unused {
  color: #334155;
  background: #e2e8f0;
  border-color: #cbd5e1;
}

.ebs-show-ml-tag--launchable {
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}

.ebs-show-ml-tag--launchable:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 1px;
}

.ebs-show-ml-tag--busy {
  cursor: wait;
  opacity: 0.75;
}

.ebs-show-ml-tag--running {
  color: #b91c1c;
  background: #fee2e2;
  border-color: #fca5a5;
  gap: 4px;
}

.ebs-show-ml-tag-pause {
  font-size: 11px;
}

html[data-mainview-theme="dark"] .ebs-show-ml-tags-body {
  border-bottom-color: #334155;
  background: #1a2332;
}

html[data-mainview-theme="dark"] .ebs-show-card--open .ebs-show-ml-tags-body {
  background: #1a2332;
}

html[data-mainview-theme="dark"] .ebs-show-ml-tag--accepted {
  color: #dcfce7;
  background: #166534;
  border-color: #22c55e;
}

html[data-mainview-theme="dark"] .ebs-show-ml-tag--denied {
  color: #fee2e2;
  background: #991b1b;
  border-color: #ef4444;
}

html[data-mainview-theme="dark"] .ebs-show-ml-tag--unused {
  color: #e2e8f0;
  background: #334155;
  border-color: #475569;
}

html[data-mainview-theme="dark"] .ebs-show-ml-tag--running {
  color: #fecaca;
  background: #7f1d1d;
  border-color: #ef4444;
}
.ebs-show-ml-captain {
  border-bottom: 1px solid #e8eef4;
  background: #f8fafc;
}

.ebs-show-ml-captain-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  margin: 0;
  padding: 6px 12px;
  border: 0;
  background: transparent;
  color: #334155;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
  text-align: left;
}

.ebs-show-ml-captain-toggle:hover {
  background: #f1f5f9;
}

.ebs-show-ml-captain-toggle-label {
  line-height: 1.2;
}

.ebs-show-ml-captain-toggle-chevron {
  font-size: 10px;
  color: #64748b;
  flex-shrink: 0;
}

.ebs-show-ml-captain-tags {
  padding: 4px 12px 8px !important;
  margin: 0 !important;
  border-bottom: 0 !important;
  background: transparent !important;
  gap: 4px !important;
}

.ebs-show-ml-captain-tags .ebs-show-ml-tag {
  padding: 0.1rem 0.4rem;
  font-size: 10px;
  border-radius: 4px;
}

html[data-mainview-theme="dark"] .ebs-show-ml-captain {
  border-bottom-color: #334155;
  background: #1a2332;
}

html[data-mainview-theme="dark"] .ebs-show-ml-captain-toggle {
  color: #cbd5e1;
}

html[data-mainview-theme="dark"] .ebs-show-ml-captain-toggle:hover {
  background: #243044;
}

html[data-mainview-theme="dark"] .ebs-show-card--open .ebs-show-ml-captain {
  background: #1a2332;
}
/* ML group show assignment — matches dark subhead select + checkbox panel (reference UI). */

.ebs-ml-group-buyer-filter-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}

.ebs-ml-group-buyer-filter-select.ant-select {
  min-width: 7.5rem;
  max-width: 11rem;
}

.ebs-ml-group-buyer-filter-select .ant-select-selector {
  font-size: 12px !important;
}

.ebs-ml-group-show-assignment-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.ebs-ml-group-show-assignment-filter-label {
  font-size: 12px;
  font-weight: 600;
  color: #f8fafc;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* Buyer view: static value box (not a select / dropdown). */
.ebs-ml-group-show-assignment-display-value {
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  min-width: 72px;
  max-width: 200px;
  height: 32px;
  padding: 0 12px;
  background: transparent;
  border: 1px solid rgba(203, 213, 225, 0.55);
  border-radius: 6px;
  color: #f8fafc;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.ebs-ml-group-show-assignment-wrap--readonly .ebs-ml-group-show-assignment-filter-label {
  font-weight: 700;
}

.ebs-ml-group-show-assignment-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  box-sizing: border-box;
  min-width: 108px;
  max-width: 200px;
  height: 32px;
  padding: 0 10px 0 12px;
  margin: 0;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.42);
  border-radius: 6px;
  color: #f8fafc;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    background-color 0.15s ease;
}

.ebs-ml-group-show-assignment-wrap--open .ebs-ml-group-show-assignment-trigger,
.ebs-ml-group-show-assignment-trigger:hover:not(:disabled) {
  border-color: #3b82f6;
  background: rgba(15, 23, 42, 0.85);
}

.ebs-ml-group-show-assignment-trigger:focus-visible {
  outline: 2px solid rgba(59, 130, 246, 0.55);
  outline-offset: 1px;
}

.ebs-ml-group-show-assignment-trigger:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.ebs-ml-group-show-assignment-trigger-label {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
}

.ebs-ml-group-show-assignment-caret {
  flex-shrink: 0;
  font-size: 10px;
  color: #f8fafc;
  opacity: 0.9;
}

.ebs-ml-group-show-assignment-dropdown.ant-dropdown .ant-dropdown-menu {
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.ebs-ml-group-show-assignment-menu {
  display: flex;
  flex-direction: column;
  min-width: 132px;
  max-height: 300px;
  overflow-y: auto;
  padding: 4px 0;
  background: #0f172a;
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: 8px;
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(15, 23, 42, 0.6);
}

.ebs-ml-group-show-assignment-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 32px;
  padding: 4px 14px 4px 12px;
  margin: 0;
  cursor: pointer;
  user-select: none;
}

.ebs-ml-group-show-assignment-row:hover {
  background: rgba(59, 130, 246, 0.1);
}

.ebs-ml-group-show-assignment-row .ant-checkbox {
  top: 0;
  align-self: center;
}

.ebs-ml-group-show-assignment-row .ant-checkbox + span {
  padding: 0;
}

.ebs-ml-group-show-assignment-row .ant-checkbox-inner {
  width: 16px;
  height: 16px;
  border-radius: 2px;
  border: 1.5px solid rgba(248, 250, 252, 0.88);
  background-color: transparent !important;
}

.ebs-ml-group-show-assignment-row .ant-checkbox-checked .ant-checkbox-inner {
  background-color: #2563eb !important;
  border-color: #2563eb !important;
}

.ebs-ml-group-show-assignment-row .ant-checkbox-checked .ant-checkbox-inner::after {
  border-color: #ffffff;
}

.ebs-ml-group-show-assignment-row .ant-checkbox-disabled .ant-checkbox-inner {
  border-color: rgba(148, 163, 184, 0.35) !important;
  background: transparent !important;
}

.ebs-ml-group-show-assignment-row-label {
  flex: 1 1 auto;
  min-width: 1.5rem;
  font-size: 14px;
  font-weight: 500;
  color: #f8fafc;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* Light subhead (non match-shows) — still readable on navy bar */
.ebs-assignment-section:not(.ebs-assignment-section--match-shows)
  .ebs-ml-group-show-assignment-filter-label {
  color: #f8fafc;
}

.ebs-assignment-section:not(.ebs-assignment-section--match-shows)
  .ebs-ml-group-show-assignment-trigger {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(148, 163, 184, 0.45);
  color: #f1f5f9;
}

.ebs-assignment-table--no-show-col col.ebs-assignment-col-code-col {
  width: 38%;
}

.ebs-assignment-table--no-show-col.ebs-assignment-table--selectable
  col.ebs-assignment-col-code-col {
  width: 32%;
}

html[data-mainview-theme="dark"] .ebs-ml-group-show-assignment-menu {
  background: #0c1220;
  border-color: rgba(59, 130, 246, 0.4);
}

html[data-mainview-theme="dark"] .ebs-ml-group-show-assignment-trigger {
  background: rgba(10, 15, 28, 0.9);
  border-color: rgba(100, 116, 139, 0.55);
}

html[data-mainview-theme="dark"] .ebs-ml-group-show-assignment-display-value {
  border-color: rgba(148, 163, 184, 0.5);
  color: #f8fafc;
}

html[data-mainview-theme="dark"]
  .ebs-ml-group-show-assignment-wrap--open
  .ebs-ml-group-show-assignment-trigger,
html[data-mainview-theme="dark"]
  .ebs-ml-group-show-assignment-trigger:hover:not(:disabled) {
  border-color: #3b82f6;
  background: rgba(15, 23, 42, 0.95);
}
/*
 * Onsales Main View — dark mode (html[data-mainview-theme="dark"]).
 * Light mode stays the default in existing page CSS; this file only adds overrides.
 */

html[data-mainview-theme="dark"] {
  color-scheme: dark;
  /* One dark family for tours + event/shows: page vs surface only */
  --mv-page: #121826;
  --mv-surface: #1a2332;
  --mv-border: #334155;
  --mv-text: #e2e8f0;
  /* Softer grid lines for nested tables (bounds, add-show matrix) */
  --mv-table-grid: rgba(148, 163, 184, 0.22);
  /* Bounds headers: preserve light-mode hierarchy in dark theme */
  --mv-bounds-header-accent-bg: #2b5f90;
  --mv-bounds-header-accent-text: #e2e8f0;
  --mv-bounds-header-muted-bg: #202b3c;
  --mv-bounds-header-muted-text: #93c5fd;
  /* Bounds read: mirror light-mode qty (pink) / goal (mint) / buyer depleted (ink band) */
  --mv-bounds-qty-filled-bg: rgba(244, 63, 94, 0.16);
  --mv-bounds-qty-filled-text: #fda4af;
  --mv-bounds-goal-met-bg: rgba(16, 185, 129, 0.14);
  --mv-bounds-goal-met-text: #6ee7b7;
  --mv-bounds-depleted-bg: #0f172a;
  --mv-bounds-depleted-text: #e2e8f0;
  /* ML/CODE assignment tables — header strip, ML-flagged row (rose + red rail), inline edit */
  --mv-assignment-thead-bg: #202b3c;
  --mv-assignment-thead-text: #94a3b8;
  --mv-assignment-add-row-bg: #202b3c;
  --mv-assignment-ml-flagged-bg: rgba(220, 38, 38, 0.16);
  --mv-assignment-ml-flagged-hover-bg: rgba(220, 38, 38, 0.24);
  --mv-assignment-ml-flagged-editing-bg: rgba(220, 38, 38, 0.28);
  --mv-assignment-ml-flagged-border: rgba(248, 113, 113, 0.38);
  --mv-assignment-ml-flagged-accent: #f87171;
  --mv-assignment-ml-success-bg: rgba(34, 197, 94, 0.14);
  --mv-assignment-ml-success-hover-bg: rgba(34, 197, 94, 0.22);
  --mv-assignment-ml-success-editing-bg: rgba(34, 197, 94, 0.26);
  --mv-assignment-ml-success-border: rgba(74, 222, 128, 0.35);
  --mv-assignment-ml-success-accent: #4ade80;
  --mv-assignment-ml-mixed-bg: rgba(234, 179, 8, 0.14);
  --mv-assignment-ml-mixed-hover-bg: rgba(234, 179, 8, 0.22);
  --mv-assignment-ml-mixed-editing-bg: rgba(234, 179, 8, 0.26);
  --mv-assignment-ml-mixed-border: rgba(250, 204, 21, 0.35);
  --mv-assignment-ml-mixed-accent: #facc15;
  --mv-assignment-editing-bg: rgba(59, 130, 246, 0.12);
  --mv-assignment-editing-border: rgba(96, 165, 250, 0.35);
  /* Buyer entries — dark equivalents of light row tints */
  --mv-entry-success-bg: #152a22;
  --mv-entry-denied-bg: #301a1f;
  --mv-entry-warning-bg: #2f2618;
  --mv-entry-success-hover: #1a382c;
  --mv-entry-denied-hover: #3d2429;
  --mv-entry-warning-hover: #3d3422;
  --mv-entry-neutral-hover: #243142;
}

/* Toggle control (navy topbars in both themes) */
.mainview-theme-toggle.ant-btn {
  color: #cbd5e1 !important;
  font-size: 16px !important;
}

.mainview-theme-toggle.ant-btn:hover {
  color: #f8fafc !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

html[data-mainview-theme="dark"] body {
  background: var(--mv-page);
  color: #e2e8f0;
}

/* ——— Hub ——— */
html[data-mainview-theme="dark"] .omv-hub {
  background: var(--mv-page);
}

html[data-mainview-theme="dark"] .omv-hub__title-icon,
html[data-mainview-theme="dark"] .omv-hub__card-icon {
  color: #60a5fa;
}

html[data-mainview-theme="dark"] .omv-hub__card.ant-card {
  background: #1a2332;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

html[data-mainview-theme="dark"] .omv-hub__card-title.ant-typography,
html[data-mainview-theme="dark"] .omv-hub__title.ant-typography {
  color: #f1f5f9 !important;
}

html[data-mainview-theme="dark"] .omv-hub__card-desc,
html[data-mainview-theme="dark"] .omv-hub__lead {
  color: #cbd5e1 !important;
}

/* ——— Tours buying sheet ——— */
html[data-mainview-theme="dark"] .buying-sheet {
  background: var(--mv-page);
  --bs-input-placeholder: #94a3b8;
  --bs-header-bg: #1a2332;
}

html[data-mainview-theme="dark"] .buying-sheet__page-header-card {
  background: #1a2332;
  border-color: #334155;
}

html[data-mainview-theme="dark"] .buying-sheet__page-header-divider {
  border-top-color: #334155;
}

html[data-mainview-theme="dark"] .buying-sheet__tours-title {
  color: #f1f5f9 !important;
}

html[data-mainview-theme="dark"] .buying-sheet__subtitle,
html[data-mainview-theme="dark"] .buying-sheet__hint {
  color: #94a3b8;
}

html[data-mainview-theme="dark"] .buying-sheet__env-hint {
  background: #334155;
  color: #e2e8f0;
}

html[data-mainview-theme="dark"] .buying-sheet__my-onsales-view {
  background: rgba(37, 99, 235, 0.15);
  border-color: #3b82f6;
}

html[data-mainview-theme="dark"] .buying-sheet__my-onsales-view-label {
  color: #93c5fd;
}

html[data-mainview-theme="dark"] .buying-sheet__search-section {
  background: var(--mv-surface);
  border-bottom-color: #334155;
}

html[data-mainview-theme="dark"] .buying-sheet__search-label {
  color: #cbd5e1;
}

html[data-mainview-theme="dark"] .buying-sheet__table-shell {
  background: #1a2332;
  border-color: #334155;
}

html[data-mainview-theme="dark"] .buying-sheet__filter-row,
html[data-mainview-theme="dark"] .buying-sheet__add-row {
  background: #1a2332;
  border-top-color: #334155;
}

html[data-mainview-theme="dark"] .buying-sheet__filter-add-row-label {
  color: #cbd5e1;
  border-right-color: #334155;
}

html[data-mainview-theme="dark"] .buying-sheet__include-tr-checkbox {
  color: #cbd5e1;
}

html[data-mainview-theme="dark"] .buying-sheet__filter-row .buying-sheet__filter-input,
html[data-mainview-theme="dark"] .buying-sheet__filter-row .ant-input-affix-wrapper,
html[data-mainview-theme="dark"] .buying-sheet__filter-row .ant-picker,
html[data-mainview-theme="dark"] .buying-sheet__filter-row .ant-select .ant-select-selector,
html[data-mainview-theme="dark"] .buying-sheet__add-row .buying-sheet__add-input,
html[data-mainview-theme="dark"] .buying-sheet__add-row .ant-input-affix-wrapper,
html[data-mainview-theme="dark"] .buying-sheet__add-row .ant-picker,
html[data-mainview-theme="dark"] .buying-sheet__add-row .ant-select .ant-select-selector {
  background-color: #1a2332 !important;
  border-color: #334155 !important;
  color: #e2e8f0 !important;
}

html[data-mainview-theme="dark"] .buying-sheet__btn-clear.ant-btn {
  background: #1a2332 !important;
  border-color: #3b82f6 !important;
  color: #93c5fd !important;
}

html[data-mainview-theme="dark"] .buying-sheet__btn-clear.ant-btn:hover {
  background: #334155 !important;
  color: #bfdbfe !important;
}

html[data-mainview-theme="dark"]
  .buying-sheet__page-header-card
  .buying-sheet__my-onsales-view-date.ant-picker,
html[data-mainview-theme="dark"]
  .buying-sheet__page-header-card
  .buying-sheet__search-date.ant-picker {
  background: #1a2332 !important;
  border-color: #334155 !important;
}

html[data-mainview-theme="dark"] .buying-sheet__table-loading-slot {
  background: #1a2332;
  border-top-color: #334155;
}

html[data-mainview-theme="dark"] .buying-sheet__data-rows {
  background: #1a2332;
}

html[data-mainview-theme="dark"] .buying-sheet__data-row {
  background: #1a2332;
  border-top-color: #334155;
}

html[data-mainview-theme="dark"] .buying-sheet__data-row:last-child {
  border-bottom-color: #334155;
}

html[data-mainview-theme="dark"] .buying-sheet__data-row--editing {
  background: var(--mv-surface) !important;
}

html[data-mainview-theme="dark"]
  .buying-sheet__data-row--editing
  .buying-sheet__edit-input.ant-input,
html[data-mainview-theme="dark"]
  .buying-sheet__data-row--editing
  .buying-sheet__edit-input.ant-input-affix-wrapper,
html[data-mainview-theme="dark"]
  .buying-sheet__data-row--editing
  .buying-sheet__edit-date.ant-picker {
  background: #111827 !important;
  border-color: #334155 !important;
  color: #e2e8f0 !important;
}

html[data-mainview-theme="dark"]
  .buying-sheet__data-row--editing
  .buying-sheet__edit-input.ant-input:hover,
html[data-mainview-theme="dark"]
  .buying-sheet__data-row--editing
  .buying-sheet__edit-input.ant-input-affix-wrapper:hover,
html[data-mainview-theme="dark"]
  .buying-sheet__data-row--editing
  .buying-sheet__edit-date.ant-picker:hover {
  border-color: #475569 !important;
}

html[data-mainview-theme="dark"]
  .buying-sheet__data-row--editing
  .buying-sheet__edit-date.ant-picker
  .ant-picker-input
  > input {
  color: #e2e8f0 !important;
}

html[data-mainview-theme="dark"]
  .buying-sheet__data-row--editing
  .buying-sheet__edit-date.ant-picker
  .ant-picker-input
  > input::placeholder {
  color: #94a3b8 !important;
}

html[data-mainview-theme="dark"]
  .buying-sheet__data-row--editing
  .buying-sheet__edit-date.ant-picker
  .ant-picker-suffix {
  color: #94a3b8 !important;
}

html[data-mainview-theme="dark"]
  .buying-sheet__data-row--editing
  .buying-sheet__edit-input.ant-select
  .ant-select-selector {
  background: #111827 !important;
  border-color: #334155 !important;
  color: #e2e8f0 !important;
}

html[data-mainview-theme="dark"]
  .buying-sheet__data-row--editing
  .buying-sheet__edit-input.ant-select:hover
  .ant-select-selector {
  border-color: #475569 !important;
}

html[data-mainview-theme="dark"]
  .buying-sheet__data-row--editing
  .buying-sheet__edit-input.ant-select.ant-select-focused
  .ant-select-selector,
html[data-mainview-theme="dark"]
  .buying-sheet__data-row--editing
  .buying-sheet__edit-input.ant-select.ant-select-open
  .ant-select-selector {
  border-color: #60a5fa !important;
}

html[data-mainview-theme="dark"]
  .buying-sheet__data-row--editing
  .buying-sheet__edit-input.ant-select
  .ant-select-selection-item,
html[data-mainview-theme="dark"]
  .buying-sheet__data-row--editing
  .buying-sheet__edit-input.ant-select
  .ant-select-selection-search-input {
  color: #e2e8f0 !important;
}

html[data-mainview-theme="dark"]
  .buying-sheet__data-row--editing
  .buying-sheet__edit-input.ant-select
  .ant-select-selection-placeholder {
  color: #94a3b8 !important;
}

html[data-mainview-theme="dark"]
  .buying-sheet__data-row--editing
  .buying-sheet__edit-input.ant-select
  .ant-select-arrow {
  color: #94a3b8 !important;
}

html[data-mainview-theme="dark"] .buying-sheet__date-cell {
  color: #94a3b8;
}

html[data-mainview-theme="dark"] .buying-sheet__captain-cell {
  color: #e2e8f0;
}

html[data-mainview-theme="dark"] .buying-sheet__name-cell strong {
  color: #f8fafc;
}

html[data-mainview-theme="dark"] .buying-sheet__name-sub {
  color: #94a3b8;
}

html[data-mainview-theme="dark"] .buying-sheet__team-tag {
  background: rgba(37, 99, 235, 0.25) !important;
  color: #93c5fd !important;
}

html[data-mainview-theme="dark"] .buying-sheet__panel-mode-hint {
  color: #94a3b8;
}

html[data-mainview-theme="dark"] .buying-sheet__theatre-run-toggle.ant-btn {
  border-radius: 6px !important;
  border-color: #166534 !important;
  color: #86efac !important;
  background: rgba(22, 101, 52, 0.18) !important;
}

html[data-mainview-theme="dark"] .buying-sheet__theatre-run-toggle--active.ant-btn {
  color: #ffffff !important;
  background: #16a34a !important;
  border-color: #16a34a !important;
}

html[data-mainview-theme="dark"] .buying-sheet__theatre-run-toggle.ant-btn:hover {
  color: #bbf7d0 !important;
  border-color: #22c55e !important;
  background: rgba(22, 101, 52, 0.28) !important;
}

html[data-mainview-theme="dark"]
  .buying-sheet__theatre-run-toggle--active.ant-btn:hover {
  color: #ffffff !important;
  background: #15803d !important;
  border-color: #15803d !important;
}

html[data-mainview-theme="dark"] .buying-sheet__theatre-run-bulk {
  background: rgba(22, 101, 52, 0.1);
  border-top-color: #166534;
  border-bottom-color: #166534;
}

html[data-mainview-theme="dark"] .buying-sheet__theatre-run-bulk-toggle:hover {
  background: rgba(22, 101, 52, 0.16);
}

html[data-mainview-theme="dark"] .buying-sheet__theatre-run-bulk-toggle:focus-visible {
  outline-color: #22c55e;
}

html[data-mainview-theme="dark"] .buying-sheet__theatre-run-bulk-head,
html[data-mainview-theme="dark"] .buying-sheet__theatre-run-bulk-head-hint,
html[data-mainview-theme="dark"] .buying-sheet__theatre-run-bulk-copy {
  color: #86efac;
}

html[data-mainview-theme="dark"] .buying-sheet__theatre-run-bulk-chevron {
  background: #1a2332;
  border-color: #166534;
  color: #86efac;
}

html[data-mainview-theme="dark"] .buying-sheet__theatre-run-bulk-textarea {
  background: #1a2332 !important;
  border-color: #166534 !important;
  color: #e2e8f0 !important;
}

html[data-mainview-theme="dark"] .buying-sheet__theatre-run-bulk-textarea::placeholder {
  color: #64748b;
}

html[data-mainview-theme="dark"] .buying-sheet__run-children {
  background: #121826;
  border-top-color: #334155;
}

html[data-mainview-theme="dark"] .buying-sheet__run-children-empty {
  color: #94a3b8;
}

html[data-mainview-theme="dark"] .buying-sheet__run-child-row,
html[data-mainview-theme="dark"] .buying-sheet__run-child-add-row {
  background: #1a2332;
  border-color: #334155;
}

html[data-mainview-theme="dark"] .buying-sheet__run-child-row .buying-sheet__date-cell {
  color: #94a3b8;
}

html[data-mainview-theme="dark"] .buying-sheet__run-child-row .buying-sheet__name-cell strong,
html[data-mainview-theme="dark"] .buying-sheet__run-child-row .buying-sheet__captain-cell {
  color: #f1f5f9;
}

html[data-mainview-theme="dark"] .buying-sheet__run-child-platform-tag.ant-tag {
  background: rgba(37, 99, 235, 0.22) !important;
  border-color: #3b82f6 !important;
  color: #93c5fd !important;
}

html[data-mainview-theme="dark"] .buying-sheet__run-child-add-row .buying-sheet__add-input,
html[data-mainview-theme="dark"] .buying-sheet__run-child-add-row .ant-input-affix-wrapper,
html[data-mainview-theme="dark"] .buying-sheet__run-child-add-row .ant-picker,
html[data-mainview-theme="dark"]
  .buying-sheet__run-child-add-row
  .ant-select
  .ant-select-selector {
  background-color: #121826 !important;
  border-color: #334155 !important;
  color: #e2e8f0 !important;
}

html[data-mainview-theme="dark"] .buying-sheet__tour-type-tag--0.ant-tag {
  background: rgba(37, 99, 235, 0.25) !important;
  color: #93c5fd !important;
}

html[data-mainview-theme="dark"] .buying-sheet__tour-type-tag--1.ant-tag {
  background: rgba(22, 163, 74, 0.22) !important;
  color: #86efac !important;
}

html[data-mainview-theme="dark"] .buying-sheet__tour-type-tag--2.ant-tag {
  background: rgba(234, 88, 12, 0.22) !important;
  color: #fdba74 !important;
}

html[data-mainview-theme="dark"] .buying-sheet__btn-expand-run.ant-btn {
  background: #1a2332 !important;
  border-color: #334155 !important;
  color: #e2e8f0 !important;
}

html[data-mainview-theme="dark"] .buying-sheet__btn-expand-run.ant-btn:hover {
  border-color: #475569 !important;
  color: #f8fafc !important;
}

html[data-mainview-theme="dark"] .buying-sheet__progress-track {
  background: #334155;
}

html[data-mainview-theme="dark"] .buying-sheet__panel-filler {
  background: #121826;
}

html[data-mainview-theme="dark"] .buying-sheet__btn-cancel-edit.ant-btn {
  background: #1a2332 !important;
  border-color: #334155 !important;
  color: #cbd5e1 !important;
}

html[data-mainview-theme="dark"] .buying-sheet__btn-del-row.ant-btn {
  background: #1a2332 !important;
}

/* ——— Manage Team Buyers drawer ——— */
html[data-mainview-theme="dark"] .buying-sheet__manage-buyers-drawer .ant-drawer-content {
  background: #121826;
}

html[data-mainview-theme="dark"] .buying-sheet__manage-buyers-drawer .ant-drawer-header {
  background: var(--mv-surface) !important;
  border-bottom-color: var(--mv-border) !important;
}

html[data-mainview-theme="dark"] .buying-sheet__manage-buyers-drawer .ant-drawer-close {
  color: var(--mv-text) !important;
}

html[data-mainview-theme="dark"] .buying-sheet__manage-buyers-drawer .ant-drawer-body {
  background: #121826 !important;
}

html[data-mainview-theme="dark"] .buying-sheet__manage-buyers-title-kicker {
  color: #93c5fd !important;
}

html[data-mainview-theme="dark"] .buying-sheet__manage-buyers-title-main {
  color: #f8fafc !important;
}

html[data-mainview-theme="dark"] .buying-sheet__manage-buyers-tabs .ant-tabs-tab {
  background: #202b3c !important;
  border-color: var(--mv-border) !important;
  color: #94a3b8 !important;
}

html[data-mainview-theme="dark"] .buying-sheet__manage-buyers-tabs .ant-tabs-tab-active {
  background: var(--mv-surface) !important;
  color: #f1f5f9 !important;
  border-bottom-color: var(--mv-surface) !important;
}

html[data-mainview-theme="dark"] .buying-sheet__manage-buyers-tabs .ant-tabs-nav::before {
  border-bottom-color: var(--mv-border) !important;
}

html[data-mainview-theme="dark"] .buying-sheet__manage-buyers-card,
html[data-mainview-theme="dark"] .buying-sheet__manage-buyers-current {
  background: var(--mv-surface) !important;
  border-color: var(--mv-border) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

html[data-mainview-theme="dark"] .buying-sheet__manage-buyers-help {
  color: #94a3b8 !important;
}

html[data-mainview-theme="dark"] .buying-sheet__manage-buyers-label {
  color: #94a3b8 !important;
}

html[data-mainview-theme="dark"] .buying-sheet__manage-buyers-required-mark {
  color: #f87171 !important;
}

html[data-mainview-theme="dark"] .buying-sheet__manage-buyers-label .ant-input,
html[data-mainview-theme="dark"] .buying-sheet__manage-buyers-label .ant-select .ant-select-selector {
  background: #111827 !important;
  border-color: var(--mv-border) !important;
  color: #f1f5f9 !important;
}

html[data-mainview-theme="dark"] .buying-sheet__manage-buyers-label .ant-input::placeholder,
html[data-mainview-theme="dark"]
  .buying-sheet__manage-buyers-label
  .ant-select
  .ant-select-selection-placeholder {
  color: #94a3b8 !important;
}

html[data-mainview-theme="dark"]
  .buying-sheet__manage-buyers-label
  .ant-select
  .ant-select-selection-item {
  color: #f1f5f9 !important;
}

html[data-mainview-theme="dark"]
  .buying-sheet__manage-buyers-drawer
  .buying-sheet__manage-buyers-label
  .ant-input:not(.ant-input-disabled):focus,
html[data-mainview-theme="dark"]
  .buying-sheet__manage-buyers-drawer
  .buying-sheet__manage-buyers-label
  .ant-input:not(.ant-input-disabled).ant-input-focused {
  border-color: #60a5fa !important;
}

html[data-mainview-theme="dark"]
  .buying-sheet__manage-buyers-drawer
  .buying-sheet__manage-buyers-label
  .ant-select-focused:not(.ant-select-disabled)
  .ant-select-selector {
  border-color: #60a5fa !important;
}

html[data-mainview-theme="dark"] .buying-sheet__manage-buyers-buyers-panel {
  background: #111827 !important;
  border-color: var(--mv-border) !important;
}

html[data-mainview-theme="dark"] .buying-sheet__manage-buyers-buyers-panel-search {
  border-bottom-color: var(--mv-border) !important;
}

html[data-mainview-theme="dark"] .buying-sheet__manage-buyers-buyers-panel-search .ant-input {
  color: #e2e8f0 !important;
}

html[data-mainview-theme="dark"] .buying-sheet__manage-buyers-buyers-panel-search-icon {
  color: #94a3b8 !important;
}

html[data-mainview-theme="dark"]
  .buying-sheet__manage-buyers-buyers-panel-search
  .ant-input-affix-wrapper-focused {
  background: transparent !important;
  box-shadow: 0 0 0 2px #3b82f6 !important;
}

html[data-mainview-theme="dark"]
  .buying-sheet__manage-buyers-buyers-panel-search
  .ant-input-affix-wrapper-focused
  > input.ant-input {
  background: transparent !important;
  color: #f1f5f9 !important;
}

html[data-mainview-theme="dark"] .buying-sheet__manage-buyers-buyers-no-matches {
  color: #94a3b8 !important;
}

html[data-mainview-theme="dark"] .buying-sheet__manage-buyers-buyer-row {
  color: #e2e8f0 !important;
}

html[data-mainview-theme="dark"] .buying-sheet__manage-buyers-hint {
  color: #94a3b8 !important;
}

html[data-mainview-theme="dark"] .buying-sheet__manage-buyers-actions .ant-btn-default {
  background: #1a2332 !important;
  border-color: var(--mv-border) !important;
  color: #e2e8f0 !important;
}

html[data-mainview-theme="dark"] .buying-sheet__manage-buyers-actions .ant-btn-primary:disabled,
html[data-mainview-theme="dark"] .buying-sheet__manage-buyers-actions .ant-btn-primary.ant-btn-disabled {
  background: #334155 !important;
  border-color: #475569 !important;
  color: #94a3b8 !important;
}

html[data-mainview-theme="dark"] .buying-sheet__manage-buyers-actions .ant-btn-primary:disabled:hover,
html[data-mainview-theme="dark"]
  .buying-sheet__manage-buyers-actions
  .ant-btn-primary.ant-btn-disabled:hover {
  background: #334155 !important;
  border-color: #475569 !important;
  color: #94a3b8 !important;
}

html[data-mainview-theme="dark"] .buying-sheet__manage-buyers-current-title {
  color: #94a3b8 !important;
}

html[data-mainview-theme="dark"] .buying-sheet__manage-buyers-team-card {
  background: #111827 !important;
  border-color: var(--mv-border) !important;
}

html[data-mainview-theme="dark"] .buying-sheet__manage-buyers-team-name {
  color: #f1f5f9 !important;
}

html[data-mainview-theme="dark"] .buying-sheet__manage-buyers-team-meta {
  color: #94a3b8 !important;
}

html[data-mainview-theme="dark"] .buying-sheet__manage-buyers-team-actions .ant-btn-default {
  background: rgba(59, 130, 246, 0.12) !important;
  border-color: rgba(96, 165, 250, 0.45) !important;
  color: #93c5fd !important;
}

html[data-mainview-theme="dark"] .buying-sheet__manage-buyers-team-actions .ant-btn-dangerous {
  background: rgba(127, 29, 29, 0.2) !important;
  border-color: rgba(248, 113, 113, 0.4) !important;
  color: #fca5a5 !important;
}

html[data-mainview-theme="dark"] .buying-sheet__manage-buyers-empty {
  background: #111827 !important;
  border-color: var(--mv-border) !important;
  color: #94a3b8 !important;
}

html[data-mainview-theme="dark"] .buying-sheet__manage-buyers-card .ant-checkbox .ant-checkbox-inner {
  background: #111827 !important;
  border-color: #64748b !important;
}

html[data-mainview-theme="dark"] .buying-sheet__manage-buyers-card .ant-checkbox-checked .ant-checkbox-inner {
  background: #2563eb !important;
  border-color: #2563eb !important;
}

html[data-mainview-theme="dark"] .buying-sheet__manage-buyers-drawer .ant-spin-dot-item {
  background-color: #93c5fd !important;
}

/* Popconfirm (delete team) */
html[data-mainview-theme="dark"] .ant-popover .ant-popover-inner {
  background: var(--mv-surface) !important;
  border: 1px solid var(--mv-border);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
}

html[data-mainview-theme="dark"] .ant-popconfirm-message,
html[data-mainview-theme="dark"] .ant-popconfirm-message-title {
  color: #e2e8f0 !important;
}

html[data-mainview-theme="dark"] .ant-popconfirm .ant-btn-default {
  background: #1a2332 !important;
  border-color: var(--mv-border) !important;
  color: #e2e8f0 !important;
}

/* Select dropdown is portaled to body — theme when mainview dark */
html[data-mainview-theme="dark"] .ant-select-dropdown {
  background: var(--mv-surface) !important;
}

html[data-mainview-theme="dark"] .ant-select-item {
  color: #e2e8f0 !important;
}

html[data-mainview-theme="dark"]
  .ant-select-item-option-selected:not(.ant-select-item-option-disabled) {
  background: rgba(59, 130, 246, 0.22) !important;
}

html[data-mainview-theme="dark"] .ant-select-item-option-active:not(.ant-select-item-option-disabled) {
  background: rgba(148, 163, 184, 0.12) !important;
}

html[data-mainview-theme="dark"] .ant-select-item-option-disabled {
  color: #64748b !important;
}

/* ——— Event sheet shell ——— */
html[data-mainview-theme="dark"] .ebs-root.buying-sheet {
  background: #121826;
}

html[data-mainview-theme="dark"] .ebs-subheader {
  background: #1a2332;
  border-bottom-color: #334155;
}

html[data-mainview-theme="dark"] .ebs-subheader-divider {
  background: #64748b;
}

html[data-mainview-theme="dark"] .ebs-back-btn {
  color: #93c5fd !important;
}

html[data-mainview-theme="dark"] .ebs-event-title {
  color: #f1f5f9 !important;
}

html[data-mainview-theme="dark"] .ebs-event-date {
  color: #94a3b8;
}

html[data-mainview-theme="dark"] .ebs-columns {
  border-top-color: #334155;
}

html[data-mainview-theme="dark"] .ebs-col {
  border-right-color: #334155;
  background: #1a2332;
}

html[data-mainview-theme="dark"] .ebs-panel,
html[data-mainview-theme="dark"] .ebs-panel--ml {
  background: #1a2332;
}

html[data-mainview-theme="dark"] .ebs-table thead th {
  background: #1a2332;
  color: #cbd5e1;
  border-bottom-color: #334155;
}

html[data-mainview-theme="dark"] .ebs-table--entries {
  border-color: #334155;
}

/* Buyer entries — compact filter strip */
html[data-mainview-theme="dark"] .ebs-entries-filter-wrap {
  background: #1a2332;
  border-bottom-color: var(--mv-border);
}

html[data-mainview-theme="dark"] .ebs-entries-filter-label {
  color: #94a3b8;
}

html[data-mainview-theme="dark"]
  .ebs-entries-filter-row
  .ebs-entries-filter-input.ant-input,
html[data-mainview-theme="dark"]
  .ebs-entries-filter-row
  .ant-input-affix-wrapper.ebs-entries-filter-input {
  background-color: #0f172a !important;
  border-color: #334155 !important;
  color: var(--mv-text) !important;
}

html[data-mainview-theme="dark"]
  .ebs-entries-filter-row
  .ebs-entries-filter-input.ant-input::placeholder,
html[data-mainview-theme="dark"]
  .ebs-entries-filter-row
  .ant-input-affix-wrapper.ebs-entries-filter-input
  input::placeholder {
  color: #64748b !important;
}

html[data-mainview-theme="dark"]
  .ebs-entries-filter-row
  .ebs-entries-filter-input.ant-input:hover,
html[data-mainview-theme="dark"]
  .ebs-entries-filter-row
  .ant-input-affix-wrapper.ebs-entries-filter-input:hover {
  border-color: #475569 !important;
}

html[data-mainview-theme="dark"]
  .ebs-entries-filter-row
  .ebs-entries-filter-input.ant-input:focus,
html[data-mainview-theme="dark"]
  .ebs-entries-filter-row
  .ant-input-affix-wrapper.ebs-entries-filter-input:focus-within {
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.35) !important;
}

html[data-mainview-theme="dark"] .ebs-entries-filter-row .ant-input-clear-icon {
  color: #64748b;
}

html[data-mainview-theme="dark"] .ebs-entries-filter-clear.ant-btn-link {
  color: #93c5fd !important;
}

html[data-mainview-theme="dark"] .ebs-entries-filter-clear.ant-btn-link:hover:not(:disabled) {
  color: #bfdbfe !important;
}

html[data-mainview-theme="dark"] .ebs-entries-filter-clear.ant-btn-link:disabled {
  color: #475569 !important;
}

/* Shows panel — find show bar (below header / chips) */
html[data-mainview-theme="dark"] .ebs-shows-find-bar {
  background: linear-gradient(180deg, #1a2332 0%, #151d2b 100%);
  border-bottom-color: var(--mv-border);
}

html[data-mainview-theme="dark"] .ebs-shows-find-bar-label {
  color: #94a3b8;
}

html[data-mainview-theme="dark"] .ebs-shows-find-bar-input.ant-input,
html[data-mainview-theme="dark"]
  .ebs-shows-find-bar-input.ant-input-affix-wrapper {
  background-color: #0f172a !important;
  border-color: #334155 !important;
  color: var(--mv-text) !important;
}

html[data-mainview-theme="dark"]
  .ebs-shows-find-bar-input.ant-input::placeholder,
html[data-mainview-theme="dark"]
  .ebs-shows-find-bar-input.ant-input-affix-wrapper
  input::placeholder {
  color: #64748b !important;
}

html[data-mainview-theme="dark"] .ebs-shows-find-bar-input.ant-input:hover,
html[data-mainview-theme="dark"]
  .ebs-shows-find-bar-input.ant-input-affix-wrapper:hover {
  border-color: #475569 !important;
}

html[data-mainview-theme="dark"] .ebs-shows-find-bar-input.ant-input:focus,
html[data-mainview-theme="dark"]
  .ebs-shows-find-bar-input.ant-input-affix-wrapper-focused {
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.25) !important;
}

html[data-mainview-theme="dark"] .ebs-shows-find-bar-clear.ant-btn-link {
  color: #93c5fd !important;
}

html[data-mainview-theme="dark"] .ebs-shows-search-empty {
  background: #1a2332;
  border-color: #334155;
  color: #94a3b8;
}

html[data-mainview-theme="dark"] .ebs-table--entries thead th {
  background: var(--mv-surface);
  color: #e2e8f0;
  border-bottom-color: #334155;
  border-right-color: #334155;
}

html[data-mainview-theme="dark"] .ebs-table--entries thead th.ebs-th-sort--active {
  background: var(--mv-surface);
  color: #f1f5f9;
}

html[data-mainview-theme="dark"] .ebs-table--entries .ebs-th-sort-btn:hover {
  color: #f8fafc;
}

html[data-mainview-theme="dark"] .ebs-table--entries tbody td {
  border-right-color: #334155;
  border-bottom-color: #334155;
  color: #e2e8f0;
  background: var(--mv-surface);
}

html[data-mainview-theme="dark"] .ebs-table--entries tbody tr.ebs-entry-row--add td {
  background: var(--mv-surface);
}

/* Buyer entries — column ink (matches light-mode semantics, tuned for dark rows) */
html[data-mainview-theme="dark"] .ebs-table--entries .ebs-td-ml,
html[data-mainview-theme="dark"] .ebs-table--entries .ebs-td-buyer {
  color: #f1f5f9;
}

html[data-mainview-theme="dark"] .ebs-table--entries .ebs-td-show {
  color: #7dd3fc;
}

html[data-mainview-theme="dark"] .ebs-table--entries .ebs-td-bound {
  color: #d8b4fe;
}

html[data-mainview-theme="dark"] .ebs-table--entries .ebs-qty-ok {
  color: #4ade80;
}

html[data-mainview-theme="dark"] .ebs-table--entries .ebs-td-conf {
  color: #94a3b8;
}

html[data-mainview-theme="dark"] .ebs-table--entries .ebs-cell-input--readonly-buyer.ant-input {
  background: rgba(15, 23, 42, 0.55) !important;
  color: #cbd5e1 !important;
  border-color: #334155 !important;
}

html[data-mainview-theme="dark"] .ebs-table--entries .ebs-denied-chip {
  background: rgba(127, 29, 29, 0.5) !important;
  border-color: #f87171 !important;
  color: #fecaca !important;
}

html[data-mainview-theme="dark"] .ebs-table--entries .ebs-error-tag {
  background: rgba(202, 138, 4, 0.28) !important;
  border-color: #eab308 !important;
  color: #fef9c3 !important;
}

/*
 * Editable cell hover / focus — opaque fills only (alpha was letting light bleed through
 * behind the cell, washing out cyan/green/purple ink on denied & success rows).
 */
html[data-mainview-theme="dark"]
  .ebs-table--entries
  tbody
  tr.ebs-entry-row--success
  td.ebs-entry-cell--editable:not(.ebs-cell--active):hover {
  background-color: var(--mv-entry-success-hover) !important;
  box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.35);
}

html[data-mainview-theme="dark"]
  .ebs-table--entries
  tbody
  tr.ebs-entry-row--denied
  td.ebs-entry-cell--editable:not(.ebs-cell--active):hover {
  background-color: var(--mv-entry-denied-hover) !important;
  box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.4);
}

html[data-mainview-theme="dark"]
  .ebs-table--entries
  tbody
  tr.ebs-entry-row--entry-warning
  td.ebs-entry-cell--editable:not(.ebs-cell--active):hover {
  background-color: var(--mv-entry-warning-hover) !important;
  box-shadow: inset 0 0 0 1px rgba(251, 191, 36, 0.35);
}

html[data-mainview-theme="dark"]
  .ebs-table--entries
  tbody
  tr.ebs-entry-row:not(.ebs-entry-row--add):not(.ebs-entry-row--success):not(.ebs-entry-row--denied):not(.ebs-entry-row--entry-warning)
  td.ebs-entry-cell--editable:not(.ebs-cell--active):hover {
  background-color: var(--mv-entry-neutral-hover) !important;
  box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.4);
}

html[data-mainview-theme="dark"]
  .ebs-table--entries
  tbody
  tr.ebs-entry-row--success
  td.ebs-entry-cell--editable:focus-visible {
  background-color: var(--mv-entry-success-hover) !important;
  box-shadow: inset 0 0 0 2px #38bdf8;
}

html[data-mainview-theme="dark"]
  .ebs-table--entries
  tbody
  tr.ebs-entry-row--denied
  td.ebs-entry-cell--editable:focus-visible {
  background-color: var(--mv-entry-denied-hover) !important;
  box-shadow: inset 0 0 0 2px #60a5fa;
}

html[data-mainview-theme="dark"]
  .ebs-table--entries
  tbody
  tr.ebs-entry-row--entry-warning
  td.ebs-entry-cell--editable:focus-visible {
  background-color: var(--mv-entry-warning-hover) !important;
  box-shadow: inset 0 0 0 2px #fbbf24;
}

html[data-mainview-theme="dark"]
  .ebs-table--entries
  tbody
  tr.ebs-entry-row:not(.ebs-entry-row--add):not(.ebs-entry-row--success):not(.ebs-entry-row--denied):not(.ebs-entry-row--entry-warning)
  td.ebs-entry-cell--editable:focus-visible {
  background-color: var(--mv-entry-neutral-hover) !important;
  box-shadow: inset 0 0 0 2px #60a5fa;
}

/* Keep semantic column colors readable on hover */
html[data-mainview-theme="dark"]
  .ebs-table--entries
  tbody
  td.ebs-entry-cell--editable:not(.ebs-cell--active):hover.ebs-td-show {
  color: #7dd3fc !important;
}

html[data-mainview-theme="dark"]
  .ebs-table--entries
  tbody
  td.ebs-entry-cell--editable:not(.ebs-cell--active):hover.ebs-td-bound {
  color: #d8b4fe !important;
}

html[data-mainview-theme="dark"]
  .ebs-table--entries
  tbody
  td.ebs-entry-cell--editable:not(.ebs-cell--active):hover.ebs-td-ml {
  color: #f1f5f9 !important;
}

html[data-mainview-theme="dark"]
  .ebs-table--entries
  tbody
  td.ebs-entry-cell--editable:not(.ebs-cell--active):hover.ebs-td-qty
  .ebs-qty-ok {
  color: #4ade80 !important;
}

html[data-mainview-theme="dark"] .ebs-table--entries tbody tr.ebs-entry-row--add td .ebs-cell-input,
html[data-mainview-theme="dark"]
  .ebs-table--entries
  tbody
  tr.ebs-entry-row--add
  td
  .ebs-cell-select
  .ant-select-selector,
html[data-mainview-theme="dark"]
  .ebs-table--entries
  tbody
  tr.ebs-entry-row--add
  td
  .ebs-cell-input--readonly-buyer.ant-input {
  background-color: #1a2332 !important;
  border-color: #334155 !important;
  color: #e2e8f0 !important;
}

/* ——— My Shows ——— */
html[data-mainview-theme="dark"] .ebs-my-shows-chip-bar {
  background: #1a2332;
  border-bottom-color: #334155;
}

html[data-mainview-theme="dark"] .ebs-my-shows-chip-label {
  color: #94a3b8;
}

html[data-mainview-theme="dark"] .ebs-my-shows-chip--slot-off,
html[data-mainview-theme="dark"] .ebs-my-shows-chip--tour-off {
  background: #1a2332;
  border-color: #334155;
  color: #cbd5e1;
}

/* ——— Bulk edit drawers (shows + ML/CODE) ——— */
html[data-mainview-theme="dark"] .ebs-assignment-bulk-drawer .ant-drawer-content {
  background: #121826;
}

html[data-mainview-theme="dark"] .ebs-assignment-bulk-drawer .ant-drawer-header {
  background: #1a2332 !important;
  border-bottom-color: #334155 !important;
}

html[data-mainview-theme="dark"] .ebs-assignment-bulk-drawer .ant-drawer-close {
  color: #e2e8f0 !important;
}

html[data-mainview-theme="dark"] .ebs-assignment-bulk-drawer .ant-drawer-body {
  background: #121826 !important;
}

html[data-mainview-theme="dark"] .ebs-assignment-bulk-drawer-title-main {
  color: #f1f5f9 !important;
}

html[data-mainview-theme="dark"] .ebs-assignment-bulk-drawer-title-sub {
  color: #94a3b8 !important;
}

html[data-mainview-theme="dark"] .ebs-assignment-bulk-drawer-summary {
  color: #cbd5e1 !important;
}

html[data-mainview-theme="dark"] .ebs-assignment-bulk-drawer-panel {
  background: #1a2332 !important;
  border-color: #334155 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

html[data-mainview-theme="dark"] .ebs-assignment-panel-kind-segmented.ant-segmented {
  background: rgba(15, 23, 42, 0.72) !important;
  border: 1px solid rgba(148, 163, 184, 0.28) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}

html[data-mainview-theme="dark"]
  .ebs-assignment-panel-kind-segmented
  .ant-segmented-item:not(.ant-segmented-item-selected) {
  color: #94a3b8 !important;
}

html[data-mainview-theme="dark"]
  .ebs-assignment-panel-kind-segmented
  .ant-segmented-item:not(.ant-segmented-item-selected)
  .ant-segmented-item-label {
  color: inherit !important;
}

html[data-mainview-theme="dark"]
  .ebs-assignment-panel-kind-segmented
  .ant-segmented-item-selected,
html[data-mainview-theme="dark"]
  .ebs-assignment-panel-kind-segmented
  .ant-segmented-item-selected
  .ant-segmented-item-label {
  color: #f8fafc !important;
}

html[data-mainview-theme="dark"] .ebs-assignment-panel-kind-segmented .ant-segmented-thumb {
  background: rgba(255, 255, 255, 0.14) !important;
  border-radius: 8px !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35) !important;
}

html[data-mainview-theme="dark"] .ebs-assignment-bulk-drawer-panel-label {
  color: #94a3b8 !important;
}

html[data-mainview-theme="dark"] .ebs-assignment-bulk-drawer .ebs-assignment-bulk-drawer-footer {
  background: #1a2332 !important;
  border-top: 1px solid #334155;
}

html[data-mainview-theme="dark"]
  .ebs-assignment-bulk-drawer
  .ebs-shows-bulk-drawer-form.ebs-show-edit-body {
  background: #1a2332 !important;
  border-color: #334155 !important;
}

html[data-mainview-theme="dark"] .ebs-assignment-bulk-drawer-field-label {
  color: #94a3b8 !important;
}

html[data-mainview-theme="dark"]
  .ebs-assignment-bulk-drawer
  .ebs-assignment-bulk-drawer-field
  .ant-input.ebs-assignment-bulk-drawer-control {
  background: #1a2332 !important;
  border-color: #334155 !important;
  color: #f1f5f9 !important;
}

html[data-mainview-theme="dark"]
  .ebs-assignment-bulk-drawer
  .ebs-assignment-bulk-drawer-field
  .ant-input.ebs-assignment-bulk-drawer-control::placeholder {
  color: #94a3b8 !important;
}

html[data-mainview-theme="dark"]
  .ebs-assignment-bulk-drawer
  .ebs-assignment-bulk-drawer-field
  .ant-select.ebs-assignment-bulk-drawer-select
  .ant-select-selector {
  background: #1a2332 !important;
  border-color: #334155 !important;
  color: #f1f5f9 !important;
}

html[data-mainview-theme="dark"]
  .ebs-assignment-bulk-drawer
  .ebs-assignment-bulk-drawer-field
  .ant-select.ebs-assignment-bulk-drawer-select
  .ant-select-selection-item,
html[data-mainview-theme="dark"]
  .ebs-assignment-bulk-drawer
  .ebs-assignment-bulk-drawer-field
  .ant-select.ebs-assignment-bulk-drawer-select
  .ant-select-selection-placeholder {
  color: #f1f5f9 !important;
}

html[data-mainview-theme="dark"]
  .ebs-assignment-bulk-drawer
  .ebs-assignment-bulk-drawer-field
  .ant-select.ebs-assignment-bulk-drawer-select
  .ant-select-selection-placeholder {
  color: #94a3b8 !important;
  font-weight: 400 !important;
}

/* ML bulk edit — “Filter by” strip, Show # dropdown, search, inner row list */
html[data-mainview-theme="dark"]
  .ebs-assignment-bulk-drawer
  .ebs-ml-bulk-filter-strip {
  background: var(--mv-assignment-thead-bg);
  border-color: var(--mv-border);
}

html[data-mainview-theme="dark"]
  .ebs-assignment-bulk-drawer
  .ebs-ml-bulk-filter-label,
html[data-mainview-theme="dark"]
  .ebs-assignment-bulk-drawer
  .ebs-ml-bulk-filter-row-hint {
  color: var(--mv-assignment-thead-text) !important;
}

html[data-mainview-theme="dark"]
  .ebs-assignment-bulk-drawer
  .ant-select.ebs-bulk-drawer-filter-kind
  .ant-select-selector {
  background: var(--mv-surface) !important;
  border-color: var(--mv-border) !important;
  color: var(--mv-text) !important;
}

html[data-mainview-theme="dark"]
  .ebs-assignment-bulk-drawer
  .ant-select.ebs-bulk-drawer-filter-kind
  .ant-select-selection-item {
  color: var(--mv-text) !important;
}

html[data-mainview-theme="dark"]
  .ebs-assignment-bulk-drawer
  .ebs-bulk-drawer-filter-search.ant-input {
  background: var(--mv-surface) !important;
  border-color: var(--mv-border) !important;
  color: var(--mv-text) !important;
}

html[data-mainview-theme="dark"]
  .ebs-assignment-bulk-drawer
  .ebs-bulk-drawer-filter-search.ant-input::placeholder {
  color: var(--mv-assignment-thead-text) !important;
}

html[data-mainview-theme="dark"]
  .ebs-assignment-bulk-drawer
  .ebs-bulk-drawer-filter-search.ant-input-affix-wrapper {
  background: var(--mv-surface) !important;
  border-color: var(--mv-border) !important;
}

html[data-mainview-theme="dark"]
  .ebs-assignment-bulk-drawer
  .ebs-bulk-drawer-filter-search.ant-input-affix-wrapper
  .ant-input {
  background: transparent !important;
  color: var(--mv-text) !important;
}

html[data-mainview-theme="dark"]
  .ebs-assignment-bulk-drawer
  .ebs-bulk-drawer-filter-search.ant-input-affix-wrapper
  .ant-input::placeholder {
  color: var(--mv-assignment-thead-text) !important;
}

html[data-mainview-theme="dark"]
  .ebs-assignment-bulk-drawer
  .ebs-bulk-drawer-filter-search.ant-input-affix-wrapper
  .anticon {
  color: var(--mv-assignment-thead-text) !important;
}

html[data-mainview-theme="dark"]
  .ebs-assignment-bulk-drawer
  .ebs-bulk-show-dd-summary {
  background: var(--mv-surface) !important;
  border-color: var(--mv-border) !important;
  color: var(--mv-text) !important;
}

html[data-mainview-theme="dark"]
  .ebs-assignment-bulk-drawer
  .ebs-bulk-show-dd-panel {
  background: var(--mv-surface) !important;
  border-color: var(--mv-border) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

html[data-mainview-theme="dark"]
  .ebs-assignment-bulk-drawer
  .ebs-bulk-show-dd-hint {
  color: var(--mv-assignment-thead-text) !important;
}

html[data-mainview-theme="dark"]
  .ebs-assignment-bulk-drawer
  .ebs-bulk-show-dd-row {
  color: var(--mv-text);
}

html[data-mainview-theme="dark"]
  .ebs-assignment-bulk-drawer
  .ebs-ml-bulk-filter-cant-buy-all.ant-checkbox-wrapper {
  color: var(--mv-assignment-thead-text) !important;
}

html[data-mainview-theme="dark"]
  .ebs-assignment-bulk-drawer
  .ebs-ml-bulk-table-delete-cant-buy.ant-btn-primary {
  background: #b91c1c !important;
  border-color: #b91c1c !important;
}

html[data-mainview-theme="dark"]
  .ebs-assignment-bulk-drawer
  .ebs-bulk-show-dd-clear {
  border-top-color: var(--mv-border) !important;
  color: #93c5fd !important;
}

html[data-mainview-theme="dark"]
  .ebs-assignment-bulk-drawer
  .ebs-ml-bulk-drawer-table-wrap {
  background: var(--mv-page);
  border-color: var(--mv-border);
}

html[data-mainview-theme="dark"]
  .ebs-assignment-bulk-drawer
  .ebs-ml-bulk-drawer-table {
  background: var(--mv-surface);
}

html[data-mainview-theme="dark"]
  .ebs-assignment-bulk-drawer
  .ebs-ml-bulk-drawer-table
  thead
  th {
  background: var(--mv-assignment-thead-bg) !important;
  color: var(--mv-assignment-thead-text) !important;
  border-color: var(--mv-table-grid) !important;
}

html[data-mainview-theme="dark"]
  .ebs-assignment-bulk-drawer
  .ebs-ml-bulk-drawer-table
  tbody
  td {
  background: var(--mv-surface);
  color: var(--mv-text);
  border-color: var(--mv-table-grid);
}

html[data-mainview-theme="dark"]
  .ebs-assignment-bulk-drawer
  .ebs-ml-bulk-drawer-table
  tbody
  td.ebs-assignment-col-buyer {
  color: #c4b5fd !important;
}

html[data-mainview-theme="dark"]
  .ebs-assignment-bulk-drawer
  .ebs-ml-bulk-drawer-table
  tbody
  td.ebs-assignment-col-show {
  color: #93c5fd !important;
}

html[data-mainview-theme="dark"]
  .ebs-assignment-bulk-drawer
  .ebs-ml-bulk-drawer-table
  tbody
  td.ebs-assignment-col-code {
  color: #e2e8f0 !important;
}

html[data-mainview-theme="dark"]
  .ebs-assignment-bulk-drawer
  .ebs-ml-bulk-empty-td {
  color: var(--mv-assignment-thead-text) !important;
}

html[data-mainview-theme="dark"]
  .ebs-assignment-bulk-drawer
  .ebs-ml-bulk-list-section-title {
  color: var(--mv-assignment-thead-text) !important;
}

html[data-mainview-theme="dark"]
  .ebs-assignment-bulk-drawer
  .ebs-ml-bulk-list-empty {
  color: var(--mv-assignment-thead-text) !important;
}

/*
 * Bulk drawers: antd 5+ puts the outlined border on the root `.ant-picker`
 * (not `.ant-picker-selector`). Do not set border: none on the root — it removes
 * the frame entirely. Legacy `.ant-picker-selector` kept for older markup.
 */
html[data-mainview-theme="dark"] .ebs-assignment-bulk-drawer .ant-picker {
  background: var(--mv-surface) !important;
  border: 1px solid var(--mv-border) !important;
  box-shadow: none !important;
}

html[data-mainview-theme="dark"]
  .ebs-assignment-bulk-drawer
  .ant-picker:hover:not(.ant-picker-disabled) {
  border-color: #475569 !important;
}

html[data-mainview-theme="dark"]
  .ebs-assignment-bulk-drawer
  .ant-picker.ant-picker-focused:not(.ant-picker-disabled),
html[data-mainview-theme="dark"]
  .ebs-assignment-bulk-drawer
  .ant-picker:focus-within:not(.ant-picker-disabled) {
  border-color: #64748b !important;
  box-shadow: none !important;
}

html[data-mainview-theme="dark"]
  .ebs-assignment-bulk-drawer
  .ant-picker
  .ant-picker-selector {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

html[data-mainview-theme="dark"] .ebs-assignment-bulk-drawer .ant-picker-input > input {
  color: #f1f5f9 !important;
}

html[data-mainview-theme="dark"]
  .ebs-assignment-bulk-drawer
  .ant-picker-input
  > input::placeholder {
  color: #94a3b8 !important;
}

html[data-mainview-theme="dark"] .ebs-assignment-bulk-drawer .ant-picker-suffix {
  color: #94a3b8 !important;
}

/* Shows bulk edit: same surface as row inputs + priority select (not only .ebs-show-edit-shell) */
html[data-mainview-theme="dark"]
  .ebs-assignment-bulk-drawer
  .ebs-shows-bulk-drawer-form.ebs-show-edit-body
  .ant-input.ebs-show-edit-input {
  background: var(--mv-surface) !important;
  border: 1px solid var(--mv-border) !important;
  color: #f1f5f9 !important;
}

html[data-mainview-theme="dark"]
  .ebs-assignment-bulk-drawer
  .ebs-shows-bulk-drawer-form.ebs-show-edit-body
  .ant-input.ebs-show-edit-input::placeholder {
  color: #94a3b8 !important;
}

html[data-mainview-theme="dark"]
  .ebs-assignment-bulk-drawer
  .ebs-shows-bulk-drawer-form.ebs-show-edit-body
  .ant-input.ebs-show-edit-input:hover {
  border-color: #475569 !important;
}

html[data-mainview-theme="dark"]
  .ebs-assignment-bulk-drawer
  .ebs-shows-bulk-drawer-form.ebs-show-edit-body
  .ant-input.ebs-show-edit-input:focus,
html[data-mainview-theme="dark"]
  .ebs-assignment-bulk-drawer
  .ebs-shows-bulk-drawer-form.ebs-show-edit-body
  .ant-input.ebs-show-edit-input.ant-input-focused {
  border-color: #64748b !important;
  box-shadow: none !important;
}

html[data-mainview-theme="dark"]
  .ebs-assignment-bulk-drawer
  .ebs-shows-bulk-drawer-form.ebs-show-edit-body
  .ebs-show-priority-select.ant-select
  .ant-select-selector {
  background: var(--mv-surface) !important;
  border: 1px solid var(--mv-border) !important;
}

html[data-mainview-theme="dark"]
  .ebs-assignment-bulk-drawer
  .ebs-shows-bulk-drawer-form.ebs-show-edit-body
  .ebs-show-priority-select
  .ant-select-selection-item {
  color: #f1f5f9 !important;
}

html[data-mainview-theme="dark"]
  .ebs-assignment-bulk-drawer
  .ebs-shows-bulk-drawer-form.ebs-show-edit-body
  .ebs-show-priority-select
  .ant-select-selection-placeholder {
  color: #94a3b8 !important;
}

html[data-mainview-theme="dark"]
  .ebs-assignment-bulk-drawer
  .ebs-shows-bulk-drawer-form.ebs-show-edit-body
  .ebs-show-priority-select.ant-select:not(.ant-select-disabled):hover
  .ant-select-selector {
  border-color: #475569 !important;
}

html[data-mainview-theme="dark"]
  .ebs-assignment-bulk-drawer
  .ebs-shows-bulk-drawer-form.ebs-show-edit-body
  .ebs-show-priority-select.ant-select-focused:not(.ant-select-disabled)
  .ant-select-selector {
  border-color: #64748b !important;
  box-shadow: none !important;
}

/* ——— Shows list + expanded show detail ——— */
html[data-mainview-theme="dark"] .ebs-shows-panel-scroll.ebs-panel-body--scroll {
  background: #121826;
}

html[data-mainview-theme="dark"] .ebs-shows-list {
  background: #121826;
}

html[data-mainview-theme="dark"] .ebs-show-card {
  border-color: rgba(148, 163, 184, 0.38) !important;
  box-shadow: 0 1px 6px rgba(2, 6, 23, 0.36);
}

html[data-mainview-theme="dark"] .ebs-show-card--open {
  border-color: rgba(147, 197, 253, 0.5) !important;
  box-shadow: 0 4px 14px rgba(2, 6, 23, 0.52);
}

html[data-mainview-theme="dark"] .ebs-show-card-body {
  background: #1a2332 !important;
  border-top-color: rgba(71, 85, 105, 0.6) !important;
}

html[data-mainview-theme="dark"] .ebs-show-link-strip {
  background: #1a2332 !important;
  border-bottom-color: #334155 !important;
}

html[data-mainview-theme="dark"] .ebs-show-meta-strip {
  background: var(--mv-surface) !important;
  border-bottom-color: var(--mv-border) !important;
}

html[data-mainview-theme="dark"] .ebs-show-link-strip-label {
  color: #94a3b8 !important;
}

html[data-mainview-theme="dark"] .ebs-show-link-strip-url {
  color: #93c5fd !important;
}

html[data-mainview-theme="dark"]
  .ebs-show-meta-strip
  .ebs-show-primary-select.ant-select
  .ant-select-selector {
  background: #0f172a !important;
  border-color: var(--mv-border) !important;
}

html[data-mainview-theme="dark"]
  .ebs-show-meta-strip
  .ebs-show-primary-select
  .ant-select-selection-item {
  color: #f1f5f9 !important;
}

html[data-mainview-theme="dark"]
  .ebs-show-meta-strip
  .ebs-show-primary-select
  .ant-select-selection-placeholder {
  color: #94a3b8 !important;
}

html[data-mainview-theme="dark"]
  .ebs-show-meta-strip
  .ebs-show-primary-select.ant-select:not(.ant-select-disabled):hover
  .ant-select-selector {
  border-color: #475569 !important;
}

html[data-mainview-theme="dark"]
  .ebs-show-meta-strip
  .ebs-show-primary-select.ant-select-focused:not(.ant-select-disabled)
  .ant-select-selector {
  border-color: #64748b !important;
  box-shadow: none !important;
}

html[data-mainview-theme="dark"]
  .ebs-show-meta-strip
  .ebs-show-primary-select
  .ant-select-arrow {
  color: #94a3b8 !important;
}

html[data-mainview-theme="dark"] .ebs-show-primary-pill--known {
  color: #86efac !important;
  background: rgba(34, 197, 94, 0.2) !important;
  border-color: rgba(74, 222, 128, 0.45) !important;
}

html[data-mainview-theme="dark"] .ebs-show-primary-pill--unknown {
  color: #fca5a5 !important;
  background: rgba(239, 68, 68, 0.18) !important;
  border-color: rgba(248, 113, 113, 0.42) !important;
}

html[data-mainview-theme="dark"] .ebs-show-primary-pill--unset {
  background: #202b3c !important;
  color: #94a3b8 !important;
  border-color: var(--mv-border) !important;
}

html[data-mainview-theme="dark"] .ebs-show-link-copy-btn.ant-btn {
  color: #64748b !important;
}

html[data-mainview-theme="dark"] .ebs-show-link-copy-btn.ant-btn:hover {
  color: #93c5fd !important;
  background: rgba(147, 197, 253, 0.1) !important;
}

html[data-mainview-theme="dark"] .ebs-show-bounds-wrap {
  background: #1a2332 !important;
}

html[data-mainview-theme="dark"] .ebs-show-edit-shell {
  background: var(--mv-surface) !important;
  border: 1px solid rgba(148, 163, 184, 0.42) !important;
  box-shadow: 0 2px 10px rgba(2, 6, 23, 0.32);
}

html[data-mainview-theme="dark"] .ebs-show-edit-body {
  background: transparent;
}

html[data-mainview-theme="dark"] .ebs-show-edit-footer {
  background: var(--mv-surface) !important;
  border-top-color: var(--mv-border) !important;
}

html[data-mainview-theme="dark"] .ebs-show-edit-cancel.ant-btn {
  background: #1a2332 !important;
  border-color: #334155 !important;
  color: #e2e8f0 !important;
}

html[data-mainview-theme="dark"] .ebs-show-edit-delete.ant-btn-dangerous {
  background: rgba(127, 29, 29, 0.35) !important;
  border-color: #f87171 !important;
  color: #fecaca !important;
}

html[data-mainview-theme="dark"] .ebs-show-edit-delete.ant-btn-dangerous:hover {
  background: rgba(153, 27, 27, 0.45) !important;
  color: #fef2f2 !important;
}

/* Bounds read table */
html[data-mainview-theme="dark"] .ebs-show-bounds-read {
  border-color: var(--mv-table-grid);
}

html[data-mainview-theme="dark"] .ebs-show-bounds-read-th,
html[data-mainview-theme="dark"] .ebs-show-bounds-read-td {
  border-color: var(--mv-table-grid) !important;
}

/* Trail column (remove bound): light CSS used #f1f5f9 / #f8fafc — reads as white on dark */
html[data-mainview-theme="dark"] .ebs-show-bounds-read-th--trail,
html[data-mainview-theme="dark"] .ebs-show-bounds-read-td--trail {
  background: var(--mv-surface) !important;
  border-color: var(--mv-table-grid) !important;
}

html[data-mainview-theme="dark"] .ebs-show-bounds-read-th--corner,
html[data-mainview-theme="dark"] .ebs-show-bounds-read-th--row {
  background: var(--mv-bounds-header-accent-bg) !important;
  color: var(--mv-bounds-header-accent-text) !important;
}

html[data-mainview-theme="dark"] .ebs-bounds-table--by-metric-row .ebs-show-bounds-read-th--bound-col,
html[data-mainview-theme="dark"] .ebs-bounds-table--by-metric-row .ebs-show-bounds-read-th--metric-label,
html[data-mainview-theme="dark"] .ebs-show-bounds-read-th--num {
  background: var(--mv-bounds-header-muted-bg) !important;
  color: var(--mv-bounds-header-muted-text) !important;
}

html[data-mainview-theme="dark"] .ebs-bounds-table--by-metric-row .ebs-show-bounds-read-th--metric-label {
  color: #cbd5e1 !important;
}

/* Buyer metric table: depleted bound column — must beat .th--bound-col alone */
html[data-mainview-theme="dark"]
  .ebs-bounds-table--by-metric-row
  .ebs-show-bounds-read-th--bound-col.ebs-show-bounds-read-th--row-depleted {
  background: var(--mv-bounds-depleted-bg) !important;
  color: var(--mv-bounds-depleted-text) !important;
}

html[data-mainview-theme="dark"] .ebs-show-bounds-read-td {
  background: #1a2332 !important;
  color: #e2e8f0 !important;
}

html[data-mainview-theme="dark"] .ebs-show-bounds-read-td--bought {
  background: #1a2332 !important;
  color: #cbd5e1 !important;
}

html[data-mainview-theme="dark"] .ebs-show-bounds-read-td--qty-filled {
  background: var(--mv-bounds-qty-filled-bg) !important;
  color: var(--mv-bounds-qty-filled-text) !important;
  font-weight: 700 !important;
}

html[data-mainview-theme="dark"] .ebs-show-bounds-read-td--goal-met {
  background: var(--mv-bounds-goal-met-bg) !important;
  color: var(--mv-bounds-goal-met-text) !important;
  font-weight: 700 !important;
}

html[data-mainview-theme="dark"] .ebs-show-bounds-read-td--goal-met.ebs-show-bounds-read-td--qty-filled,
html[data-mainview-theme="dark"] .ebs-show-bounds-read-td--bought.ebs-show-bounds-read-td--goal-met {
  background: var(--mv-bounds-goal-met-bg) !important;
  color: var(--mv-bounds-goal-met-text) !important;
  font-weight: 700 !important;
}

html[data-mainview-theme="dark"] .ebs-show-bounds-toolbar-btn {
  color: #93c5fd !important;
}

html[data-mainview-theme="dark"] .ebs-show-bounds-toolbar-btn:hover {
  color: #bfdbfe !important;
}

html[data-mainview-theme="dark"] .ebs-show-bounds-clear-btn.ant-btn:hover {
  color: #fecaca !important;
  background: rgba(248, 113, 113, 0.14) !important;
}

html[data-mainview-theme="dark"] .ebs-show-bounds-read .ebs-show-bounds-inline-input.ant-input,
html[data-mainview-theme="dark"]
  .ebs-show-bounds-read
  .ebs-show-bounds-inline-input.ant-input-textarea
  textarea {
  background: transparent !important;
  color: inherit !important;
}

html[data-mainview-theme="dark"] .ebs-show-bounds-read .ebs-show-bounds-inline-input.ant-input:hover {
  border-color: #64748b !important;
  background: #1a2332 !important;
}

html[data-mainview-theme="dark"] .ebs-show-bounds-read .ebs-show-bounds-inline-input.ant-input:focus,
html[data-mainview-theme="dark"] .ebs-show-bounds-read .ebs-show-bounds-inline-input.ant-input-focused {
  background: #1a2332 !important;
  color: #f8fafc !important;
  border-color: #3b82f6 !important;
}

html[data-mainview-theme="dark"]
  .ebs-show-bounds-read-td--goal-met
  .ebs-show-bounds-inline-input.ant-input:hover,
html[data-mainview-theme="dark"]
  .ebs-show-bounds-read-td--goal-met
  .ebs-show-bounds-inline-input.ant-input:focus,
html[data-mainview-theme="dark"]
  .ebs-show-bounds-read-td--goal-met
  .ebs-show-bounds-inline-input.ant-input-focused {
  background: rgba(16, 185, 129, 0.22) !important;
  color: #ecfdf5 !important;
}

html[data-mainview-theme="dark"]
  .ebs-show-bounds-read-td--qty-filled
  .ebs-show-bounds-inline-input.ant-input:hover,
html[data-mainview-theme="dark"]
  .ebs-show-bounds-read-td--qty-filled
  .ebs-show-bounds-inline-input.ant-input:focus,
html[data-mainview-theme="dark"]
  .ebs-show-bounds-read-td--qty-filled
  .ebs-show-bounds-inline-input.ant-input-focused {
  background: rgba(244, 63, 94, 0.22) !important;
  color: #ffe4e6 !important;
}

/* Qty column can be both --qty-filled and --goal-met; mint wins (matches light). */
html[data-mainview-theme="dark"]
  .ebs-show-bounds-read-td--goal-met.ebs-show-bounds-read-td--qty-filled
  .ebs-show-bounds-inline-input.ant-input:hover,
html[data-mainview-theme="dark"]
  .ebs-show-bounds-read-td--goal-met.ebs-show-bounds-read-td--qty-filled
  .ebs-show-bounds-inline-input.ant-input:focus,
html[data-mainview-theme="dark"]
  .ebs-show-bounds-read-td--goal-met.ebs-show-bounds-read-td--qty-filled
  .ebs-show-bounds-inline-input.ant-input-focused {
  background: rgba(16, 185, 129, 0.22) !important;
  color: #ecfdf5 !important;
}

html[data-mainview-theme="dark"]
  .ebs-show-bounds-read-td--depleted
  .ebs-show-bounds-inline-input.ant-input:hover,
html[data-mainview-theme="dark"]
  .ebs-show-bounds-read-td--depleted
  .ebs-show-bounds-inline-input.ant-input:focus,
html[data-mainview-theme="dark"]
  .ebs-show-bounds-read-td--depleted
  .ebs-show-bounds-inline-input.ant-input-focused {
  background: rgba(15, 23, 42, 0.92) !important;
  color: var(--mv-bounds-depleted-text) !important;
}

html[data-mainview-theme="dark"] .ebs-muted {
  color: #94a3b8 !important;
}

html[data-mainview-theme="dark"] .ebs-ml-section {
  border-bottom-color: #334155;
}

/* ML assignment group bar — dotted frame visible on dark panel */
html[data-mainview-theme="dark"] .ebs-ml-group-bar {
  border-color: rgba(148, 163, 184, 0.45);
  background: transparent;
}

html[data-mainview-theme="dark"] .ebs-ml-group-bar__field {
  background: #232b38;
}

html[data-mainview-theme="dark"] .ebs-ml-group-bar__dropdown .ant-dropdown-menu {
  background: #0f141c !important;
  border-color: var(--mv-border) !important;
}

html[data-mainview-theme="dark"] .ebs-assignment-subhead {
  background: var(--mv-surface) !important;
}

/* ML buyer search strip */
html[data-mainview-theme="dark"] .ebs-assignment-buyer-search-wrap {
  background: #1a2332 !important;
  border-color: #334155 !important;
}

html[data-mainview-theme="dark"] .ebs-assignment-section--match-shows .ebs-assignment-buyer-search-wrap {
  background: #1a2332 !important;
}

html[data-mainview-theme="dark"] .ebs-assignment-buyer-search-label {
  color: #cbd5e1 !important;
}

html[data-mainview-theme="dark"] .ebs-assignment-buyer-search-input.ant-input-affix-wrapper {
  background: #1a2332 !important;
  border-color: #334155 !important;
}

html[data-mainview-theme="dark"] .ebs-assignment-buyer-search-input.ant-input-affix-wrapper:hover,
html[data-mainview-theme="dark"] .ebs-assignment-buyer-search-input.ant-input-affix-wrapper:focus,
html[data-mainview-theme="dark"] .ebs-assignment-buyer-search-input.ant-input-affix-wrapper-focused {
  border-color: #64748b !important;
}

html[data-mainview-theme="dark"] .ebs-assignment-buyer-search-input .ant-input {
  background: transparent !important;
  color: #f1f5f9 !important;
}

html[data-mainview-theme="dark"] .ebs-assignment-buyer-search-input .ant-input::placeholder {
  color: #94a3b8 !important;
}

html[data-mainview-theme="dark"] .ebs-assignment-buyer-search-input .ant-input-suffix,
html[data-mainview-theme="dark"] .ebs-assignment-buyer-search-input .ant-input-clear-icon {
  background: transparent !important;
  color: #94a3b8 !important;
}

html[data-mainview-theme="dark"] .ebs-ml-buyer-flag-hint {
  background: #1a2332 !important;
  border-color: #334155 !important;
  color: #cbd5e1 !important;
}

/* Assignment / ML / CODE tables */
html[data-mainview-theme="dark"] .ebs-assignment-table thead th {
  background: var(--mv-assignment-thead-bg) !important;
  color: var(--mv-assignment-thead-text) !important;
  border-right-color: var(--mv-table-grid) !important;
}

html[data-mainview-theme="dark"] .ebs-assignment-table .ebs-th-sort-btn:hover {
  color: #f1f5f9 !important;
}

html[data-mainview-theme="dark"] .ebs-assignment-table .ebs-th-sort-indicator-slot--active {
  color: #93c5fd !important;
}

html[data-mainview-theme="dark"] .ebs-assignment-table thead th.ebs-th-sort--active {
  background: #1e3a5f !important;
  color: #dbeafe !important;
}

html[data-mainview-theme="dark"] .ebs-assignment-table thead th.ebs-th-sort--active .ebs-th-sort-btn {
  color: #dbeafe !important;
}

html[data-mainview-theme="dark"] .ebs-assignment-table tbody td {
  background: var(--mv-surface) !important;
  border-bottom-color: var(--mv-table-grid) !important;
}

html[data-mainview-theme="dark"] .ebs-assignment-table tbody tr.ebs-entry-row:not(.ebs-entry-row--editing):not(.ebs-assignment-add-row) td.ebs-assignment-col-buyer {
  color: #c4b5fd !important;
}

html[data-mainview-theme="dark"] .ebs-assignment-table tbody tr.ebs-entry-row:not(.ebs-entry-row--editing):not(.ebs-assignment-add-row) td.ebs-assignment-col-show {
  color: #93c5fd !important;
}

html[data-mainview-theme="dark"] .ebs-assignment-table tbody tr.ebs-entry-row:not(.ebs-entry-row--editing):not(.ebs-assignment-add-row) td.ebs-assignment-col-code {
  color: #e2e8f0 !important;
}

html[data-mainview-theme="dark"] .ebs-ml-code--purchased {
  color: #4ade80 !important;
}

html[data-mainview-theme="dark"] .ebs-assignment-tickets-bought-read {
  color: #e2e8f0 !important;
}

html[data-mainview-theme="dark"] .ebs-assignment-tickets-bought-input.ant-input-number {
  background: var(--mv-input-bg, #1a2332) !important;
  border-color: var(--mv-input-border, #334155) !important;
}

html[data-mainview-theme="dark"] .ebs-assignment-tickets-bought-input.ant-input-number .ant-input-number-input {
  color: #e2e8f0 !important;
}

html[data-mainview-theme="dark"] .ebs-assignment-add-row td {
  background: var(--mv-assignment-add-row-bg) !important;
  border-bottom-color: var(--mv-table-grid) !important;
}

html[data-mainview-theme="dark"] .ebs-assignment-table tbody tr.ebs-entry-row--editing > td,
html[data-mainview-theme="dark"]
  .ebs-assignment-table
  tbody
  tr.ebs-entry-row--editing
  > td.ebs-assignment-td-actions {
  background: rgba(26, 35, 50, 0.92) !important;
  border-bottom-color: var(--mv-assignment-editing-border) !important;
  border-right-color: var(--mv-table-grid) !important;
}

html[data-mainview-theme="dark"] .ebs-assignment-add-row .ant-select .ant-select-selector,
html[data-mainview-theme="dark"] .ebs-assignment-add-row .ebs-assignment-field .ant-input,
html[data-mainview-theme="dark"] .ebs-assignment-add-row .ebs-assignment-field .ant-input-affix-wrapper,
html[data-mainview-theme="dark"] .ebs-assignment-add-row .ebs-assignment-field .ant-select .ant-select-selector,
html[data-mainview-theme="dark"]
  .ebs-assignment-add-row
  .ebs-assignment-field
  .ebs-assignment-add-show-multi.ant-select
  .ant-select-selector {
  background-color: #1a2332 !important;
  border-color: #334155 !important;
  color: #f1f5f9 !important;
}

html[data-mainview-theme="dark"] .ebs-assignment-native-select {
  background-color: #1a2332 !important;
  color: #f1f5f9 !important;
  border-color: #334155 !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 3px center;
  background-size: 10px 10px;
}

html[data-mainview-theme="dark"] .ebs-assignment-table .ebs-assignment-field .ant-input,
html[data-mainview-theme="dark"] .ebs-assignment-table .ebs-assignment-field .ant-input-affix-wrapper {
  background: #1a2332 !important;
  border-color: #334155 !important;
  color: #f1f5f9 !important;
}

html[data-mainview-theme="dark"] .ebs-assignment-table .ebs-assignment-field .ant-input::placeholder {
  color: #94a3b8 !important;
}

html[data-mainview-theme="dark"] .ebs-assignment-table .ebs-btn-cancel-edit.ant-btn {
  background: #1a2332 !important;
  border-color: #334155 !important;
  color: #cbd5e1 !important;
}

html[data-mainview-theme="dark"] .ebs-assignment-table .ebs-btn-cancel-edit.ant-btn:hover {
  background: #202b3c !important;
  border-color: #475569 !important;
  color: #e2e8f0 !important;
}

html[data-mainview-theme="dark"] .ebs-assignment-table .ebs-btn-del-edit.ant-btn {
  background: #1a2332 !important;
  border-color: rgba(248, 113, 113, 0.45) !important;
  color: #fca5a5 !important;
}

html[data-mainview-theme="dark"] .ebs-assignment-table .ebs-btn-del-edit.ant-btn:hover {
  background: rgba(127, 29, 29, 0.28) !important;
  border-color: #f87171 !important;
  color: #fecaca !important;
}

html[data-mainview-theme="dark"] .ebs-assignment-table tbody tr.ebs-entry-row--ml-flagged > td {
  background: var(--mv-assignment-ml-flagged-bg) !important;
  border-bottom-color: var(--mv-assignment-ml-flagged-border) !important;
}

html[data-mainview-theme="dark"] .ebs-assignment-table tbody tr.ebs-entry-row--ml-flagged:hover > td {
  background: var(--mv-assignment-ml-flagged-hover-bg) !important;
}

html[data-mainview-theme="dark"] .ebs-assignment-table tbody tr.ebs-entry-row--ml-flagged > td:first-child {
  box-shadow: inset 4px 0 0 0 var(--mv-assignment-ml-flagged-accent) !important;
}

html[data-mainview-theme="dark"]
  .ebs-assignment-table
  tbody
  tr.ebs-entry-row--ml-flagged.ebs-entry-row--editing
  > td {
  background: var(--mv-assignment-ml-flagged-editing-bg) !important;
  border-bottom-color: var(--mv-assignment-ml-flagged-border) !important;
}

html[data-mainview-theme="dark"] .ebs-assignment-table tbody tr.ebs-entry-row--ml-success > td {
  background: var(--mv-assignment-ml-success-bg) !important;
  border-bottom-color: var(--mv-assignment-ml-success-border) !important;
}

html[data-mainview-theme="dark"] .ebs-assignment-table tbody tr.ebs-entry-row--ml-success:hover > td {
  background: var(--mv-assignment-ml-success-hover-bg) !important;
}

html[data-mainview-theme="dark"] .ebs-assignment-table tbody tr.ebs-entry-row--ml-success > td:first-child {
  box-shadow: inset 4px 0 0 0 var(--mv-assignment-ml-success-accent) !important;
}

html[data-mainview-theme="dark"]
  .ebs-assignment-table
  tbody
  tr.ebs-entry-row--ml-success.ebs-entry-row--editing
  > td {
  background: var(--mv-assignment-ml-success-editing-bg) !important;
  border-bottom-color: var(--mv-assignment-ml-success-border) !important;
}

html[data-mainview-theme="dark"] .ebs-assignment-table tbody tr.ebs-entry-row--ml-mixed > td {
  background: var(--mv-assignment-ml-mixed-bg) !important;
  border-bottom-color: var(--mv-assignment-ml-mixed-border) !important;
}

html[data-mainview-theme="dark"] .ebs-assignment-table tbody tr.ebs-entry-row--ml-mixed:hover > td {
  background: var(--mv-assignment-ml-mixed-hover-bg) !important;
}

html[data-mainview-theme="dark"] .ebs-assignment-table tbody tr.ebs-entry-row--ml-mixed > td:first-child {
  box-shadow: inset 4px 0 0 0 var(--mv-assignment-ml-mixed-accent) !important;
}

html[data-mainview-theme="dark"]
  .ebs-assignment-table
  tbody
  tr.ebs-entry-row--ml-mixed.ebs-entry-row--editing
  > td {
  background: var(--mv-assignment-ml-mixed-editing-bg) !important;
  border-bottom-color: var(--mv-assignment-ml-mixed-border) !important;
}

/* My Shows — middle/right columns use light strip (#eef2f7) in base CSS */
html[data-mainview-theme="dark"] .ebs-col--match-shows {
  background: var(--mv-surface) !important;
}

html[data-mainview-theme="dark"] .ebs-panel--match-shows {
  background: var(--mv-surface) !important;
}

html[data-mainview-theme="dark"] .ebs-panel--match-shows .ebs-ml-panel-body--match-shows {
  background: var(--mv-surface) !important;
}

html[data-mainview-theme="dark"] .ebs-panel--match-shows .ebs-ml-panel-scroll {
  background: var(--mv-page) !important;
}

html[data-mainview-theme="dark"]
  .ebs-panel--match-shows
  .ebs-assignment-section--match-shows
  .ebs-assignment-buyer-search-wrap {
  background: #1a2332 !important;
  border-color: var(--mv-border) !important;
}

html[data-mainview-theme="dark"] .ebs-ml-assigned-team--below-search {
  background: rgba(99, 102, 241, 0.2) !important;
  border-top-color: rgba(129, 140, 248, 0.35) !important;
  border-bottom-color: rgba(129, 140, 248, 0.35) !important;
}

html[data-mainview-theme="dark"] .ebs-ml-assigned-team--below-search .ebs-ml-assigned-team__badge {
  color: #e0e7ff !important;
}

html[data-mainview-theme="dark"] .ebs-ml-assigned-team--below-search .ebs-ml-assigned-team__edit {
  border-left-color: rgba(129, 140, 248, 0.35) !important;
  color: #93c5fd !important;
}

html[data-mainview-theme="dark"] .ebs-ml-assigned-team--below-search .ebs-ml-assigned-team__edit:hover {
  background: rgba(148, 163, 184, 0.16) !important;
  color: #bfdbfe !important;
}

html[data-mainview-theme="dark"]
  .ebs-panel--match-shows
  .ebs-assignments-loading.ant-spin-nested-loading
  > .ant-spin-container {
  background: transparent;
}

html[data-mainview-theme="dark"] .ebs-assignment-section--match-shows .ebs-assignment-subhead {
  background: var(--mv-assignment-thead-bg) !important;
  border-color: rgba(148, 163, 184, 0.28) !important;
}

html[data-mainview-theme="dark"] .ebs-assignment-section--match-shows .ebs-assignment-subhead-title {
  color: var(--mv-assignment-thead-text) !important;
}

html[data-mainview-theme="dark"] .ebs-assignment-table--show-cards {
  background: var(--mv-surface) !important;
  border-color: var(--mv-table-grid) !important;
}

html[data-mainview-theme="dark"] .ebs-assignment-table--show-cards thead th {
  background: var(--mv-assignment-thead-bg) !important;
  color: var(--mv-assignment-thead-text) !important;
  border-bottom-color: var(--mv-table-grid) !important;
  border-right-color: var(--mv-table-grid) !important;
}

html[data-mainview-theme="dark"] .ebs-assignment-table--show-cards tbody td {
  background: var(--mv-surface) !important;
  border-bottom-color: var(--mv-table-grid) !important;
  border-right-color: var(--mv-table-grid) !important;
}

html[data-mainview-theme="dark"] .ebs-assignment-table--show-cards tbody td.ebs-assignment-col-buyer {
  color: #ddd6fe !important;
}

html[data-mainview-theme="dark"] .ebs-assignment-table--show-cards .ebs-ml-group-pill {
  background: rgba(34, 197, 94, 0.18);
  border-color: rgba(74, 222, 128, 0.4);
  color: #bbf7d0;
}

html[data-mainview-theme="dark"] .ebs-assignment-table--show-cards .ebs-ml-group-pill--empty {
  color: #94a3b8;
  border-color: transparent;
}

html[data-mainview-theme="dark"] .ebs-assignment-table--show-cards tbody td.ebs-assignment-col-show {
  color: #93c5fd !important;
}

html[data-mainview-theme="dark"] .ebs-assignment-table--show-cards tbody td.ebs-assignment-col-code {
  color: #e2e8f0 !important;
}

html[data-mainview-theme="dark"] .ebs-assignment-table--show-cards .ebs-assignment-add-row td {
  background: var(--mv-assignment-add-row-bg) !important;
  border-bottom-color: var(--mv-table-grid) !important;
}

html[data-mainview-theme="dark"] .ebs-assignment-table--show-cards .ebs-entry-row--editing td,
html[data-mainview-theme="dark"] .ebs-assignment-table--show-cards .ebs-entry-row--editing td.ebs-assignment-td-actions {
  background: var(--mv-assignment-editing-bg) !important;
  border-color: var(--mv-assignment-editing-border) !important;
}

html[data-mainview-theme="dark"] .ebs-assignment-table--show-cards tbody tr.ebs-entry-row--ml-flagged > td {
  background: var(--mv-assignment-ml-flagged-bg) !important;
  border-bottom-color: var(--mv-assignment-ml-flagged-border) !important;
  border-right-color: var(--mv-assignment-ml-flagged-border) !important;
}

html[data-mainview-theme="dark"] .ebs-assignment-table--show-cards tbody tr.ebs-entry-row--ml-flagged:hover > td {
  background: var(--mv-assignment-ml-flagged-hover-bg) !important;
}

html[data-mainview-theme="dark"] .ebs-assignment-table--show-cards tbody tr.ebs-entry-row--ml-flagged.ebs-entry-row--editing > td {
  background: var(--mv-assignment-ml-flagged-editing-bg) !important;
  border-color: var(--mv-assignment-ml-flagged-border) !important;
}

html[data-mainview-theme="dark"] .ebs-assignment-table--show-cards tbody tr.ebs-entry-row--ml-success > td {
  background: var(--mv-assignment-ml-success-bg) !important;
  border-bottom-color: var(--mv-assignment-ml-success-border) !important;
  border-right-color: var(--mv-assignment-ml-success-border) !important;
}

html[data-mainview-theme="dark"] .ebs-assignment-table--show-cards tbody tr.ebs-entry-row--ml-success:hover > td {
  background: var(--mv-assignment-ml-success-hover-bg) !important;
}

html[data-mainview-theme="dark"] .ebs-assignment-table--show-cards tbody tr.ebs-entry-row--ml-success.ebs-entry-row--editing > td {
  background: var(--mv-assignment-ml-success-editing-bg) !important;
  border-color: var(--mv-assignment-ml-success-border) !important;
}

html[data-mainview-theme="dark"] .ebs-assignment-table--show-cards tbody tr.ebs-entry-row--ml-mixed > td {
  background: var(--mv-assignment-ml-mixed-bg) !important;
  border-bottom-color: var(--mv-assignment-ml-mixed-border) !important;
  border-right-color: var(--mv-assignment-ml-mixed-border) !important;
}

html[data-mainview-theme="dark"] .ebs-assignment-table--show-cards tbody tr.ebs-entry-row--ml-mixed:hover > td {
  background: var(--mv-assignment-ml-mixed-hover-bg) !important;
}

html[data-mainview-theme="dark"] .ebs-assignment-table--show-cards tbody tr.ebs-entry-row--ml-mixed.ebs-entry-row--editing > td {
  background: var(--mv-assignment-ml-mixed-editing-bg) !important;
  border-color: var(--mv-assignment-ml-mixed-border) !important;
}

/* Buyer entries: conditional row tints (dark parallels of mint / rose / amber) */
html[data-mainview-theme="dark"] .ebs-table--entries tbody tr.ebs-entry-row--success td {
  background-color: var(--mv-entry-success-bg) !important;
}

html[data-mainview-theme="dark"] .ebs-table--entries tbody tr.ebs-entry-row--denied td {
  background-color: var(--mv-entry-denied-bg) !important;
}

html[data-mainview-theme="dark"] .ebs-table--entries tbody tr.ebs-entry-row--entry-warning td {
  background-color: var(--mv-entry-warning-bg) !important;
}

html[data-mainview-theme="dark"] .ebs-table--entries tbody td.ebs-cell--active .ebs-cell-input,
html[data-mainview-theme="dark"] .ebs-table--entries tbody td.ebs-cell--active .ebs-cell-select .ant-select-selector,
html[data-mainview-theme="dark"] .ebs-table--entries tbody td.ebs-cell--active .ant-input-affix-wrapper {
  background-color: rgba(30, 64, 175, 0.35) !important;
  border-color: #60a5fa !important;
  color: #f8fafc !important;
}

html[data-mainview-theme="dark"]
  .ebs-table--entries
  tbody
  td.ebs-cell--active
  .ebs-select-denied.ant-select:not(.ant-select-customize-input)
  .ant-select-selector {
  background: rgba(30, 64, 175, 0.35) !important;
  color: #f8fafc !important;
}

html[data-mainview-theme="dark"] .ebs-table--entries tbody td.ebs-cell--active .ant-select-selection-item,
html[data-mainview-theme="dark"] .ebs-table--entries tbody td.ebs-cell--active .ant-select-selection-placeholder {
  color: #f8fafc !important;
}

html[data-mainview-theme="dark"] .ebs-td-error-highlight {
  background: var(--mv-entry-warning-bg) !important;
  box-shadow: inset 0 0 0 1px #ca8a04;
}

/* ——— Per-show editor (expanded shell) ——— */
html[data-mainview-theme="dark"] .ebs-show-edit-shell .ant-input.ebs-show-edit-input,
html[data-mainview-theme="dark"] .ebs-show-edit-shell .ant-input-affix-wrapper.ebs-show-edit-input {
  background: #1a2332 !important;
  border-color: #334155 !important;
}

html[data-mainview-theme="dark"] .ebs-show-edit-shell .ant-input-affix-wrapper.ebs-show-edit-input .ant-input {
  background: transparent !important;
  color: #f1f5f9 !important;
}

html[data-mainview-theme="dark"] .ebs-show-edit-shell .ant-picker.ebs-show-edit-picker {
  background: var(--mv-surface) !important;
  border: 1px solid var(--mv-border) !important;
  box-shadow: none !important;
}

html[data-mainview-theme="dark"]
  .ebs-show-edit-shell
  .ant-picker.ebs-show-edit-picker:hover:not(.ant-picker-disabled) {
  border-color: #475569 !important;
}

html[data-mainview-theme="dark"]
  .ebs-show-edit-shell
  .ant-picker.ebs-show-edit-picker.ant-picker-focused:not(.ant-picker-disabled),
html[data-mainview-theme="dark"]
  .ebs-show-edit-shell
  .ant-picker.ebs-show-edit-picker:focus-within:not(.ant-picker-disabled) {
  border-color: #64748b !important;
  box-shadow: none !important;
}

html[data-mainview-theme="dark"] .ebs-show-edit-shell .ant-picker .ant-picker-input > input {
  color: #f1f5f9 !important;
}

html[data-mainview-theme="dark"] .ebs-show-edit-shell .ebs-show-priority-select .ant-select-selector {
  background: #1a2332 !important;
  border-color: #334155 !important;
  color: #f1f5f9 !important;
}

/* ——— Bulk import / new show ——— */
html[data-mainview-theme="dark"] .ebs-bulk-shows-wrap {
  background: #1a2332 !important;
}

html[data-mainview-theme="dark"] .ebs-bulk-shows-card--open {
  background: #1a2332 !important;
}

html[data-mainview-theme="dark"] .ebs-bulk-shows-instructions {
  color: #94a3b8 !important;
}

html[data-mainview-theme="dark"] .ebs-bulk-shows-textarea {
  background: #1a2332 !important;
  color: #f1f5f9 !important;
  border-color: #3b82f6 !important;
}

html[data-mainview-theme="dark"] .ebs-bulk-import-btn-clear.ant-btn {
  background: #1a2332 !important;
  color: #cbd5e1 !important;
  border-color: #334155 !important;
}

html[data-mainview-theme="dark"] .ebs-batch-footer {
  background: #1a2332 !important;
  border-top-color: #334155 !important;
}

html[data-mainview-theme="dark"] .ebs-new-show-form:not(.ebs-new-show-form--embedded) {
  background: var(--mv-surface) !important;
  border: 1px solid var(--mv-table-grid) !important;
  border-style: solid !important;
}

html[data-mainview-theme="dark"] .ebs-new-show-form--embedded {
  background: transparent !important;
}

html[data-mainview-theme="dark"] .ebs-new-show-head {
  background: var(--mv-surface) !important;
  border-bottom-color: var(--mv-table-grid) !important;
}

html[data-mainview-theme="dark"] .ebs-new-show-head-title {
  color: #e2e8f0 !important;
}

html[data-mainview-theme="dark"] .ebs-new-show-head-hint {
  color: #94a3b8 !important;
}

html[data-mainview-theme="dark"] .ebs-new-show-body {
  background: #1a2332 !important;
}

html[data-mainview-theme="dark"] .ebs-new-show-row--4 {
  align-items: center;
}

html[data-mainview-theme="dark"] .ebs-new-show-body .ant-input.ebs-ns-input,
html[data-mainview-theme="dark"] .ebs-new-show-body .ant-input-affix-wrapper.ebs-ns-input {
  background: #1a2332 !important;
  border-color: #334155 !important;
}

html[data-mainview-theme="dark"] .ebs-new-show-body .ant-input-affix-wrapper.ebs-ns-input .ant-input {
  background: transparent !important;
  color: #f1f5f9 !important;
}

html[data-mainview-theme="dark"] .ebs-new-show-body .ant-picker.ebs-ns-field {
  background: #1a2332 !important;
  border-color: #334155 !important;
}

html[data-mainview-theme="dark"] .ebs-new-show-body .ant-picker .ant-picker-input > input {
  color: #f1f5f9 !important;
}

html[data-mainview-theme="dark"] .ebs-new-show-body .ebs-show-priority-select .ant-select-selector {
  background: #1a2332 !important;
  border-color: #334155 !important;
  color: #f1f5f9 !important;
}

/* Bounds matrix in add/edit show — remove white / pastel cells */
html[data-mainview-theme="dark"] .ebs-bounds-table {
  background: var(--mv-surface) !important;
  border-color: var(--mv-table-grid) !important;
}

html[data-mainview-theme="dark"] .ebs-bounds-th,
html[data-mainview-theme="dark"] .ebs-bounds-th--corner,
html[data-mainview-theme="dark"] .ebs-bounds-th--num,
html[data-mainview-theme="dark"] .ebs-bounds-th--row {
  border-color: var(--mv-table-grid) !important;
}

html[data-mainview-theme="dark"] .ebs-bounds-th--corner,
html[data-mainview-theme="dark"] .ebs-bounds-th--row {
  background: var(--mv-bounds-header-accent-bg) !important;
  color: var(--mv-bounds-header-accent-text) !important;
}

html[data-mainview-theme="dark"] .ebs-bounds-th--num {
  background: var(--mv-bounds-header-muted-bg) !important;
  color: var(--mv-bounds-header-muted-text) !important;
}

html[data-mainview-theme="dark"] .ebs-bounds-th--row-depleted {
  background: var(--mv-bounds-depleted-bg) !important;
  color: var(--mv-bounds-depleted-text) !important;
}

html[data-mainview-theme="dark"] .ebs-bounds-td,
html[data-mainview-theme="dark"] .ebs-bounds-td--readonly {
  background: var(--mv-surface) !important;
  border-color: var(--mv-table-grid) !important;
}

html[data-mainview-theme="dark"] .ebs-bounds-td--goal-met {
  background: var(--mv-bounds-goal-met-bg) !important;
  border-color: var(--mv-table-grid) !important;
}

html[data-mainview-theme="dark"] .ebs-bounds-td--depleted {
  background: var(--mv-bounds-depleted-bg) !important;
  color: var(--mv-bounds-depleted-text) !important;
  border-color: var(--mv-table-grid) !important;
}

html[data-mainview-theme="dark"] .ebs-bounds-td--goal-met .ebs-bounds-cell-input.ant-input {
  background: transparent !important;
  color: var(--mv-bounds-goal-met-text) !important;
}

html[data-mainview-theme="dark"] .ebs-bounds-td--goal-met .ebs-bounds-cell-input.ant-input:hover,
html[data-mainview-theme="dark"] .ebs-bounds-td--goal-met .ebs-bounds-cell-input.ant-input:focus,
html[data-mainview-theme="dark"] .ebs-bounds-td--goal-met .ebs-bounds-cell-input.ant-input-focused {
  background: rgba(16, 185, 129, 0.2) !important;
  border-color: var(--mv-border) !important;
  color: #ecfdf5 !important;
}

html[data-mainview-theme="dark"] .ebs-bounds-cell-readonly {
  color: #cbd5e1 !important;
}

html[data-mainview-theme="dark"] .ebs-bounds-td--goal-met .ebs-bounds-cell-readonly {
  color: var(--mv-bounds-goal-met-text) !important;
}

html[data-mainview-theme="dark"] .ebs-bounds-cell-input.ant-input {
  background: var(--mv-surface) !important;
  color: var(--mv-text) !important;
  border-color: var(--mv-border) !important;
}

html[data-mainview-theme="dark"] .ebs-bounds-td--depleted .ebs-bounds-cell-readonly {
  color: var(--mv-text) !important;
}

html[data-mainview-theme="dark"] .ebs-bounds-td--depleted .ebs-bounds-cell-input.ant-input:hover,
html[data-mainview-theme="dark"] .ebs-bounds-td--depleted .ebs-bounds-cell-input.ant-input:focus,
html[data-mainview-theme="dark"] .ebs-bounds-td--depleted .ebs-bounds-cell-input.ant-input-focused {
  background: rgba(15, 23, 42, 0.95) !important;
  color: var(--mv-bounds-depleted-text) !important;
  border-color: var(--mv-border) !important;
  box-shadow: none !important;
}

/* Priority: pastel tier backgrounds from light CSS → unified surface */
html[data-mainview-theme="dark"] .ebs-show-priority-select--high.ant-select:not(.ant-select-disabled) .ant-select-selector,
html[data-mainview-theme="dark"] .ebs-show-priority-select--normal.ant-select:not(.ant-select-disabled) .ant-select-selector,
html[data-mainview-theme="dark"] .ebs-show-priority-select--low.ant-select:not(.ant-select-disabled) .ant-select-selector,
html[data-mainview-theme="dark"] .ebs-show-priority-select--stop.ant-select:not(.ant-select-disabled) .ant-select-selector {
  background: var(--mv-surface) !important;
  border-color: var(--mv-border) !important;
  color: var(--mv-text) !important;
}

html[data-mainview-theme="dark"] .ebs-show-priority-select .ant-select-selection-item,
html[data-mainview-theme="dark"] .ebs-show-priority-select .ant-select-selection-placeholder {
  color: var(--mv-text) !important;
}

html[data-mainview-theme="dark"] .ebs-show-bounds-read-th--row-depleted,
html[data-mainview-theme="dark"] .ebs-show-bounds-read-td--depleted,
html[data-mainview-theme="dark"] .ebs-show-bounds-read-td--depleted.ebs-show-bounds-read-td--qty-filled,
html[data-mainview-theme="dark"] .ebs-show-bounds-read-td--depleted.ebs-show-bounds-read-td--goal-met {
  background: var(--mv-bounds-depleted-bg) !important;
  color: var(--mv-bounds-depleted-text) !important;
  font-weight: 700 !important;
}

html[data-mainview-theme="dark"] .ebs-show-bounds-read-td--trail.ebs-show-bounds-read-td--depleted {
  background: var(--mv-bounds-depleted-bg) !important;
}


/* Onsales Main View — Inter UI; table column titles Barlow Condensed; data rows Karla */

.buying-sheet {
  --bs-font-sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --bs-font-rows: "Karla", ui-sans-serif, system-ui, sans-serif;
  --bs-table-head-font: "Barlow Condensed", var(--bs-font-sans);
  /* Header + column header strip (design token) — match event sheet brand blue */
  --bs-header-bg: #3c76a8;
  --bs-header-accent: #2563eb;
  /* Legacy ring — prefer solid border focus (--bs-input-focus-blue) */
  --bs-input-focus-ring: 0 0 0 2px rgba(37, 99, 235, 0.28);
  --bs-input-focus-blue: #2563eb;
  /* Filter / add / edit row: one height for Input, DatePicker, Select */
  --bs-compact-control-height: 26px;
  /* Darker than gray-400 — readable placeholder text */
  --bs-input-placeholder: #64748b;
  --bs-panel-radius: 12px;
  --bs-font-header-mono: "IBM Plex Mono", monospace;
  /* Filter+Add labels sit inside onsale date column; 6 data columns (1st col needs room for label + date picker) */
  --bs-tours-table-cols: minmax(14rem, 0.6fr) minmax(200px, 2.2fr) minmax(96px, 1fr) minmax(80px, 0.65fr)
    minmax(118px, 1.05fr) minmax(124px, 1fr);
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  background: #f3f4f6;
  display: flex;
  flex-direction: column;
  font-family: var(--bs-font-sans);
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

/* Native focus ring off — Ant controls show border color instead */

.buying-sheet .ant-input:focus,
.buying-sheet .ant-picker-input > input:focus,
.buying-sheet .ant-select-selection-search-input:focus {
  outline: none !important;
}

.buying-sheet .ant-input::placeholder,
.buying-sheet .ant-picker .ant-picker-input > input::placeholder,
.buying-sheet .ant-select .ant-select-selection-placeholder {
  color: var(--bs-input-placeholder) !important;
  opacity: 1 !important;
  font-weight: 400;
}

/* Top bar — navy + blue accent line (reference) */

.buying-sheet__topbar {
  --bs-topbar-bg: #121826;
  --bs-topbar-line: #2e5bff;
  font-family: var(--bs-font-header-mono);
  background: var(--bs-topbar-bg);
  color: #e2e8f0;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  flex-shrink: 0;
  border-top: none;
  border-bottom: 1px solid var(--bs-topbar-line);
  box-shadow: none;
}

.buying-sheet__brand-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
}

/* Wordmark: TICKET white + BOAT sky blue */

.buying-sheet__logo {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.08em;
  line-height: 1;
}

.buying-sheet__logo-ticket {
  color: #ffffff;
}

.buying-sheet__logo-boat {
  color: #5da2d5;
}

.buying-sheet__logo-page {
  color: #ffffff;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.01em;
  margin-left: 10px;
}

.buying-sheet__brand-date {
  font-weight: 400;
  color: #8e9aaf;
  font-size: 14px;
  margin-left: 10px;
  letter-spacing: 0.02em;
}

.buying-sheet__topbar-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 20px;
}

/* Captain / buyer preview — topbar segmented (label centering via flex on -item-label) */

.buying-sheet__topbar .buying-sheet__persona-switch.ant-segmented,
.ebs-my-shows-topbar .buying-sheet__persona-switch.ant-segmented {
  width: auto;
  min-width: 148px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 8px;
  padding: 3px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.buying-sheet__topbar .buying-sheet__persona-switch .ant-segmented-group,
.ebs-my-shows-topbar .buying-sheet__persona-switch .ant-segmented-group {
  gap: 2px;
}

.buying-sheet__topbar .buying-sheet__persona-switch .ant-segmented-item,
.ebs-my-shows-topbar .buying-sheet__persona-switch .ant-segmented-item {
  color: #94a3b8;
  border-radius: 6px !important;
}

.buying-sheet__topbar .buying-sheet__persona-switch .ant-segmented-item-label,
.ebs-my-shows-topbar .buying-sheet__persona-switch .ant-segmented-item-label {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 28px !important;
  line-height: 1 !important;
  padding: 0 12px !important;
  font-family: var(--bs-font-header-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: none;
}

.buying-sheet__topbar .buying-sheet__persona-switch .ant-segmented-item-selected,
.ebs-my-shows-topbar .buying-sheet__persona-switch .ant-segmented-item-selected {
  color: #f8fafc !important;
}

.buying-sheet__topbar .buying-sheet__persona-switch .ant-segmented-item-selected .ant-segmented-item-label,
.ebs-my-shows-topbar .buying-sheet__persona-switch .ant-segmented-item-selected .ant-segmented-item-label {
  color: inherit !important;
}

.buying-sheet__topbar .buying-sheet__persona-switch .ant-segmented-thumb,
.ebs-my-shows-topbar .buying-sheet__persona-switch .ant-segmented-thumb {
  background: rgba(255, 255, 255, 0.16) !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
}

/*
 * Light mainview theme: Ant Design defaultAlgorithm gives Segmented a white selected
 * thumb while our selected label stays near-white → illegible on the navy topbar.
 * Use a frosted pill + slate text for the active segment; keep inactive labels soft white.
 */

html[data-mainview-theme="light"] .buying-sheet__topbar .buying-sheet__persona-switch.ant-segmented,
html[data-mainview-theme="light"] .ebs-my-shows-topbar .buying-sheet__persona-switch.ant-segmented {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

html[data-mainview-theme="light"] .buying-sheet__topbar .buying-sheet__persona-switch .ant-segmented-item:not(.ant-segmented-item-selected),
html[data-mainview-theme="light"] .ebs-my-shows-topbar .buying-sheet__persona-switch .ant-segmented-item:not(.ant-segmented-item-selected) {
  color: #cbd5e1 !important;
}

html[data-mainview-theme="light"] .buying-sheet__topbar .buying-sheet__persona-switch .ant-segmented-item:not(.ant-segmented-item-selected) .ant-segmented-item-label,
html[data-mainview-theme="light"] .ebs-my-shows-topbar .buying-sheet__persona-switch .ant-segmented-item:not(.ant-segmented-item-selected) .ant-segmented-item-label {
  color: inherit !important;
}

html[data-mainview-theme="light"] .buying-sheet__topbar .buying-sheet__persona-switch .ant-segmented-thumb,
html[data-mainview-theme="light"] .ebs-my-shows-topbar .buying-sheet__persona-switch .ant-segmented-thumb {
  background: #e8edf5 !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.35) !important;
}

html[data-mainview-theme="light"] .buying-sheet__topbar .buying-sheet__persona-switch .ant-segmented-item-selected,
html[data-mainview-theme="light"] .ebs-my-shows-topbar .buying-sheet__persona-switch .ant-segmented-item-selected {
  color: #0f172a !important;
}

html[data-mainview-theme="light"] .buying-sheet__topbar .buying-sheet__persona-switch .ant-segmented-item-selected .ant-segmented-item-label,
html[data-mainview-theme="light"] .ebs-my-shows-topbar .buying-sheet__persona-switch .ant-segmented-item-selected .ant-segmented-item-label {
  color: #0f172a !important;
}

/* Logged-in line — compact (spec) */

.buying-sheet__login-line {
  font-size: 12px;
  line-height: 1.35;
  white-space: nowrap;
}

.buying-sheet__login-label {
  color: #8e9aaf;
  font-weight: 400;
}

.buying-sheet__login-name {
  color: #ffffff;
  font-weight: 700;
}

/* Role pills — Captain bronze + cream; Buyer blue + white (reference) */

.buying-sheet__role-badge.ant-tag {
  margin: 0;
  padding: 4px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.2;
  border: none !important;
  border-radius: 5px;
}

.buying-sheet__role-badge--captain.ant-tag {
  color: #fdf8c1 !important;
  background: #845424 !important;
}

.buying-sheet__role-badge--buyer.ant-tag {
  color: #ffffff !important;
  background: #2b418c !important;
}

.buying-sheet__role-badge--admin.ant-tag {
  color: #ffffff !important;
  background: #7c3aed !important;
}

/* DEMO ROLE — framed group; segmented thumb = slate pill + white selected text */

.buying-sheet__demo-role {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 10px 5px 12px;
  border: 1px solid #323a48;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
}

.buying-sheet__demo-role-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #717d8a;
  white-space: nowrap;
}

.buying-sheet__demo-role .ant-segmented {
  background: rgba(0, 0, 0, 0.2);
  padding: 3px;
  border-radius: 6px;
}

.buying-sheet__demo-role .ant-segmented-item {
  color: #717d8a !important;
  font-weight: 500;
}

.buying-sheet__demo-role .ant-segmented-item:hover:not(.ant-segmented-item-selected) {
  color: #8e9aaf !important;
}

.buying-sheet__demo-role .ant-segmented-item-selected {
  /* bg/text from ConfigProvider Segmented tokens — avoid default white elevated */
  border-radius: 4px !important;
  box-shadow: none !important;
}

.buying-sheet__demo-role .ant-segmented-item-selected .ant-segmented-item-label {
  color: #ffffff !important;
  font-weight: 700;
}

.buying-sheet__demo-role
  .ant-segmented-item:not(.ant-segmented-item-selected)
  .ant-segmented-item-label {
  color: #717d8a !important;
  font-weight: 500;
}

.buying-sheet__demo-role .ant-segmented-thumb {
  border-radius: 4px !important;
  box-shadow: none !important;
}

.buying-sheet__demo-role .ant-segmented-item-label {
  position: relative;
  z-index: 1;
}

/* Main: full viewport width — grid so table panel always spans full column (avoids ~80% flex shrink) */

.buying-sheet__body {
  flex: 1;
  width: 100%;
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  align-content: start;
  padding: 0 0 16px;
}

/* Tours + search: framed card — square corners; border only (no shadow) */

.buying-sheet__page-header-card {
  width: 100%;
  box-sizing: border-box;
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 0;
  margin-bottom: 12px;
  margin-top: 0;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: none;
  font-family: var(--bs-font-header-mono);
}

.buying-sheet__title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 20px 6px;
}

.buying-sheet__title-row--buyer {
  align-items: center;
}

.buying-sheet__title-row-buyer {
  display: flex;
  flex: 1;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px 16px;
}

.buying-sheet__hint--buyer-lead {
  margin: 0 !important;
  max-width: 14rem;
  text-align: left;
}

.buying-sheet__my-onsales-view {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  box-sizing: border-box;
  padding: 8px 12px;
  background: #eff6ff;
  border: 1px solid #93c5fd;
  border-radius: 8px;
}

.buying-sheet__my-onsales-view-label {
  font-family: var(--bs-font-header-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1d4ed8;
  white-space: nowrap;
}

.buying-sheet__my-onsales-view-date {
  width: 168px !important;
  max-width: min(168px, 100%);
}

.buying-sheet__my-onsales-view-open.ant-btn {
  height: 28px;
  padding: 0 12px 0 14px;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--bs-font-header-mono) !important;
}

.buying-sheet__page-header-card .buying-sheet__my-onsales-view-date.ant-picker,
.buying-sheet__page-header-card .buying-sheet__my-onsales-view-date.ant-picker:hover {
  border-width: 2px !important;
  border-color: #93c5fd !important;
  background: #fff !important;
}

.buying-sheet__page-header-card
  .buying-sheet__my-onsales-view-date.ant-picker-focused {
  border-color: var(--bs-input-focus-blue) !important;
}

.buying-sheet__title-block {
  min-width: 0;
}

.buying-sheet__tours-title {
  margin: 0 !important;
  font-family: var(--bs-font-header-mono) !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em !important;
  color: #000000 !important;
  line-height: 1.2 !important;
}

.buying-sheet__subtitle {
  color: #6b7280;
  font-size: 12px;
  font-weight: 400;
  margin-top: 3px;
  letter-spacing: 0.01em;
}

.buying-sheet__title-right {
  text-align: right;
  flex-shrink: 0;
  padding-top: 0;
}

.buying-sheet__hint {
  color: #6b7280;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.35;
  max-width: 300px;
}

.buying-sheet__env-hint {
  font-size: 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  background: #f1f5f9;
  padding: 1px 5px;
  border-radius: 4px;
  color: #334155;
}

.buying-sheet__page-header-divider {
  height: 0;
  margin: 0;
  border: none;
  border-top: 1px solid #d1d5db;
}

/* Search: label | date | button — one flex row (nowrap); tallies stay right */

.buying-sheet__search-section {
  --bs-search-control-h: 30px;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 8px 16px 9px;
  min-width: 0;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 55%);
  border-bottom: 1px solid #e5e7eb;
  overflow-x: auto;
}

.buying-sheet__search-col {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
}

.buying-sheet__search-label {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.09em;
  color: #64748b;
  line-height: 1.2;
  white-space: nowrap;
}

.buying-sheet__search-date {
  flex: 1 1 176px;
  min-width: 0;
  max-width: 240px;
  width: auto !important;
}

.buying-sheet__search-date-range {
  flex: 1 1 280px;
  max-width: 360px;
}

.buying-sheet__search-submit.ant-btn {
  flex-shrink: 0;
  height: var(--bs-search-control-h) !important;
  min-height: var(--bs-search-control-h) !important;
  padding: 0 14px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  font-family: var(--bs-font-sans) !important;
  border-radius: 6px !important;
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.16) !important;
}

.buying-sheet__search-submit.ant-btn:hover {
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.22) !important;
}

.buying-sheet__page-header-card .ant-picker .ant-picker-input > input {
  font-family: var(--bs-font-header-mono) !important;
  font-size: 12px !important;
}

.buying-sheet__search-total {
  flex-shrink: 0;
  color: #64748b;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.buying-sheet__search-actions {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 8px;
}

.buying-sheet__search-actions a {
  color: inherit;
  text-decoration: none;
}

.buying-sheet__manage-buyers-open-btn.ant-btn {
  flex-shrink: 0;
  height: var(--bs-search-control-h) !important;
  min-height: var(--bs-search-control-h) !important;
  padding: 0 16px !important;
  border-radius: 8px !important;
  border: 2px solid #93c5fd !important;
  background: #f1f5f9 !important;
  color: #1e3a8a !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}

.buying-sheet__manage-buyers-open-btn.ant-btn:hover {
  background: #e2e8f0 !important;
  border-color: #60a5fa !important;
}

/* Table panel: sits on gray; second row of body grid (1fr) */

.buying-sheet__panel {
  min-height: 0;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  overflow: hidden;
}

.buying-sheet__panel-mode-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  box-sizing: border-box;
  width: calc(100% - 40px);
  max-width: calc(100% - 40px);
  margin: 0 20px 10px;
  min-width: 0;
}

.buying-sheet__panel-mode-hint {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  color: #64748b;
}

.buying-sheet__theatre-run-toggle {
  flex: 0 0 auto;
  border-radius: 6px !important;
  font-size: 12px;
  font-weight: 600;
  border-color: #86efac !important;
  color: #166534 !important;
  background: #ecfdf5 !important;
}

.buying-sheet__theatre-run-toggle--active {
  color: #ffffff !important;
  background: #16a34a !important;
  border-color: #16a34a !important;
}

.buying-sheet__theatre-run-bulk {
  margin: 0;
  padding: 0;
  background: #ecfdf5;
  border-top: 1px solid #bbf7d0;
  border-bottom: 1px solid #bbf7d0;
}

.buying-sheet__theatre-run-bulk--open {
  padding-bottom: 14px;
}

.buying-sheet__theatre-run-bulk-toggle {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  margin: 0;
  padding: 12px 16px;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
  box-sizing: border-box;
  font: inherit;
  color: inherit;
}

.buying-sheet__theatre-run-bulk-toggle:hover {
  background: rgba(22, 101, 52, 0.06);
}

.buying-sheet__theatre-run-bulk-toggle:focus-visible {
  outline: 2px solid #16a34a;
  outline-offset: -2px;
}

.buying-sheet__theatre-run-bulk-toggle-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.buying-sheet__theatre-run-bulk-head {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #166534;
}

.buying-sheet__theatre-run-bulk-head-hint {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: normal;
  text-transform: none;
  color: #166534;
}

.buying-sheet__theatre-run-bulk-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  margin-top: 1px;
  border: 1px solid #86efac;
  border-radius: 6px;
  background: #ffffff;
  color: #166534;
  font-size: 11px;
}

.buying-sheet__theatre-run-bulk-body {
  padding: 0 16px;
}

.buying-sheet__theatre-run-bulk-copy {
  margin: 0 0 8px;
  font-size: 12px;
  line-height: 1.45;
  color: #166534;
}

.buying-sheet__theatre-run-bulk-textarea {
  display: block;
  width: 100%;
  min-height: 88px;
  margin: 0 0 10px;
  padding: 10px 12px;
  border: 1px solid #86efac;
  border-radius: 8px;
  background: #ffffff;
  color: #334155;
  font-family: var(--bs-font-sans);
  font-size: 12px;
  line-height: 1.45;
  box-sizing: border-box;
  resize: vertical;
}

.buying-sheet__theatre-run-bulk-textarea:disabled {
  opacity: 0.85;
  cursor: not-allowed;
}

.buying-sheet__theatre-run-bulk-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.buying-sheet__theatre-run-bulk-note {
  margin: 8px 0 0;
  font-size: 11px;
  color: #64748b;
}

.buying-sheet__btn-expand-run.ant-btn {
  min-width: 28px;
  padding-inline: 8px;
}

.buying-sheet__run-children {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  padding: 0 0 8px 28px;
}

.buying-sheet__run-children-empty {
  margin: 10px 16px 6px 0;
  font-size: 12px;
  color: #64748b;
}

.buying-sheet__run-child-row,
.buying-sheet__run-child-add-row {
  display: grid;
  grid-template-columns: var(--bs-tours-table-cols);
  gap: 6px;
  align-items: center;
  margin: 8px 16px 0 0;
  padding: 10px 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-sizing: border-box;
}

.buying-sheet__run-child-add-row {
  margin-top: 8px;
}

.buying-sheet__run-child-platform-tag.ant-tag {
  margin-top: 4px;
  border-radius: 999px;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 600;
}

/* Table block only — inset from Tours/search card (20px each side) */

.buying-sheet__panel-table {
  flex: 0 0 auto;
  box-sizing: border-box;
  width: calc(100% - 40px);
  max-width: calc(100% - 40px);
  margin-left: 20px;
  margin-right: 20px;
  min-width: 0;
  overflow-x: auto;
}

/* Main table: same radius + border as Tours card; no shadow */

.buying-sheet__table-shell {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: var(--bs-panel-radius);
  overflow: hidden;
  box-shadow: none;
}

.buying-sheet__table-head-wrap {
  overflow: hidden;
}

/* Full-width grid — columns flex with browser; no side gutters on panel */

.buying-sheet__grid {
  display: grid;
  grid-template-columns: var(--bs-tours-table-cols);
  gap: 0;
  align-items: stretch;
  width: 100%;
}

.buying-sheet__table-shell--with-type {
  --bs-tours-table-cols: minmax(14rem, 0.6fr) minmax(200px, 2fr) minmax(96px, 0.85fr) minmax(80px, 0.65fr)
    minmax(130px, 0.85fr) minmax(118px, 0.9fr) minmax(124px, 1fr);
}

.buying-sheet__th {
  background: var(--bs-header-bg);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--bs-table-head-font);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.15);
}

/*
 * Filter + add: one parent column definition so both rows share the same track sizes (subgrid).
 */

.buying-sheet__filter-add-wrap {
  display: grid;
  grid-template-columns: var(--bs-tours-table-cols);
  column-gap: 8px;
  width: 100%;
}

/* Slate strip — matches #F1F5F9 spec for filter / add rows */

.buying-sheet__filter-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: subgrid;
  align-items: center;
  box-sizing: border-box;
  background: #f1f5f9;
  border-top: 1px solid #e2e8f0;
  padding: 6px 14px;
  min-width: 0;
}

.buying-sheet__filter-row > *,
.buying-sheet__add-row > * {
  min-width: 0;
}

.buying-sheet__filter-name-with-tr {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.buying-sheet__filter-name-with-tr .buying-sheet__filter-input {
  flex: 1 1 auto;
  min-width: 0;
}

.buying-sheet__include-tr-checkbox {
  flex: 0 0 auto;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 600;
  color: #475569;
  margin-inline-end: 0;
}

.buying-sheet__include-tr-checkbox .ant-checkbox + span {
  padding-inline-end: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.buying-sheet__filter-add-row-label {
  font-family: var(--bs-font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #475569;
  display: flex;
  align-items: center;
  align-self: center;
  padding: 0 4px 0 2px;
  white-space: nowrap;
  border-right: 1px solid #e2e8f0;
  box-sizing: border-box;
  min-height: var(--bs-compact-control-height);
}

/* "Filter" / "Add new" in the onsale date column — fixed label column (fits "Add new")
   so the date filter + add date inputs share the same width */

.buying-sheet__date-col-with-label {
  display: grid;
  grid-template-columns: 5.75rem minmax(0, 1fr);
  column-gap: 6px;
  align-items: center;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.buying-sheet__date-col-with-label .buying-sheet__filter-input,
.buying-sheet__date-col-with-label .ant-input-affix-wrapper,
.buying-sheet__date-col-with-label .ant-picker {
  width: 100% !important;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.buying-sheet__filter-add-row-label--inline {
  border-right: none;
  padding: 0 2px 0 0;
  min-height: 0;
  min-width: 0;
  justify-self: start;
  align-self: center;
  white-space: nowrap;
}

.buying-sheet__filter-row-spacer {
  min-height: 1px;
}

/* Browsers without subgrid: same template on both rows (columns still line up) */

@supports not (grid-template-columns: subgrid) {
  .buying-sheet__filter-add-wrap {
    display: block;
  }

  .buying-sheet__filter-row,
  .buying-sheet__add-row {
    display: grid;
    grid-template-columns: var(--bs-tours-table-cols);
    column-gap: 8px;
    grid-column: auto;
  }
}

/* Blue-tinted inputs — filter row only */

.buying-sheet__filter-row .buying-sheet__filter-input {
  border-color: #93c5fd !important;
}

.buying-sheet__filter-row .ant-picker {
  border-color: #93c5fd !important;
}

/* Filter row: white control fills (row strip #F1F5F9) */

.buying-sheet__filter-row .buying-sheet__filter-input,
.buying-sheet__filter-row .ant-input-affix-wrapper,
.buying-sheet__filter-row .ant-picker,
.buying-sheet__filter-row .ant-select .ant-select-selector {
  background-color: #ffffff !important;
  box-shadow: none !important;
}

/* 2px borders so focus stays same width (reference: solid blue ring) */

.buying-sheet__filter-row .ant-input-affix-wrapper,
.buying-sheet__filter-row .ant-picker {
  border-width: 2px !important;
  border-style: solid !important;
  border-radius: 6px !important;
  box-shadow: none !important;
}

/* Add tour row — same #F1F5F9 strip as filter row */

.buying-sheet__add-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: subgrid;
  align-items: center;
  box-sizing: border-box;
  background: #f1f5f9;
  border-top: 1px solid #e2e8f0;
  padding: 6px 14px;
  min-width: 0;
}

/* Filter + add rows: Inter for all fields (reference UI is all sans-serif) */

.buying-sheet__filter-row .ant-input,
.buying-sheet__filter-row .ant-input::placeholder,
.buying-sheet__filter-row .ant-picker .ant-picker-input > input,
.buying-sheet__filter-row .ant-picker .ant-picker-input > input::placeholder,
.buying-sheet__add-row .ant-input,
.buying-sheet__add-row .ant-input::placeholder,
.buying-sheet__add-row .ant-picker .ant-picker-input > input,
.buying-sheet__add-row .ant-picker .ant-picker-input > input::placeholder,
.buying-sheet__add-row .ant-select .ant-select-selector,
.buying-sheet__add-row .ant-select .ant-select-selection-item,
.buying-sheet__add-row .ant-select .ant-select-selection-placeholder,
.buying-sheet__add-row .ant-select .ant-select-selection-search-input {
  font-family: var(--bs-font-sans) !important;
}

.buying-sheet__add-row .ant-select .ant-select-selector {
  font-variant-numeric: tabular-nums;
}

/* Filter + add row: same outer height for Input, DatePicker, Select */

.buying-sheet__filter-row .ant-input-sm,
.buying-sheet__filter-row .ant-input-affix-wrapper-sm,
.buying-sheet__add-row .ant-input-sm,
.buying-sheet__add-row .ant-input-affix-wrapper-sm {
  min-height: var(--bs-compact-control-height) !important;
  height: var(--bs-compact-control-height) !important;
  padding-block: 0 !important;
  padding-inline: 8px !important;
  font-size: 12px;
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
}

.buying-sheet__filter-row .ant-picker,
.buying-sheet__add-row .ant-picker {
  min-height: var(--bs-compact-control-height) !important;
  height: var(--bs-compact-control-height) !important;
  padding: 0 8px !important;
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
}

.buying-sheet__filter-row .ant-picker .ant-picker-input,
.buying-sheet__add-row .ant-picker .ant-picker-input {
  flex: 1 1 auto;
  min-width: 0;
  display: flex !important;
  align-items: center !important;
}

.buying-sheet__filter-row .ant-picker .ant-picker-input > input,
.buying-sheet__add-row .ant-picker .ant-picker-input > input {
  font-size: 12px;
  line-height: 1.2 !important;
  height: auto !important;
  padding: 0 !important;
}

.buying-sheet__filter-row .ant-select .ant-select-selector {
  min-height: var(--bs-compact-control-height) !important;
  height: var(--bs-compact-control-height) !important;
  padding: 0 8px !important;
  font-size: 12px;
  font-family: var(--bs-font-sans) !important;
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
}

.buying-sheet__add-row .ant-select .ant-select-selector {
  min-height: var(--bs-compact-control-height) !important;
  height: var(--bs-compact-control-height) !important;
  padding: 0 8px !important;
  font-size: 12px;
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
}

.buying-sheet__filter-row .ant-select .ant-select-selection-item,
.buying-sheet__filter-row .ant-select .ant-select-selection-placeholder,
.buying-sheet__add-row .ant-select .ant-select-selection-item,
.buying-sheet__add-row .ant-select .ant-select-selection-placeholder {
  line-height: 1.2 !important;
}

/* Select root also uses .buying-sheet__add-input — border only on .ant-select-selector, not the wrapper */

.buying-sheet__add-row .buying-sheet__add-input:not(.ant-select),
.buying-sheet__add-row .ant-input-affix-wrapper,
.buying-sheet__add-row .ant-picker,
.buying-sheet__add-row .ant-select .ant-select-selector {
  border-width: 2px !important;
  border-style: solid !important;
  border-radius: 6px !important;
  border-color: #d1d5db !important;
  background-color: #ffffff !important;
  box-shadow: none !important;
}

.buying-sheet__add-row .buying-sheet__add-input.ant-select {
  width: 100%;
  min-width: 0;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

.buying-sheet__add-row .ant-picker .ant-picker-input > input {
  background: transparent !important;
}

.buying-sheet__add-row .ant-select-arrow {
  color: rgba(0, 0, 0, 0.45);
}

/* Focus: solid blue border (reference — no outer glow) */

.buying-sheet__filter-row .ant-input-affix-wrapper-focused,
.buying-sheet__filter-row .ant-input-affix-wrapper:focus-within,
.buying-sheet__filter-row .ant-picker.ant-picker-focused {
  border-color: var(--bs-input-focus-blue) !important;
  box-shadow: none !important;
  outline: none !important;
}

.buying-sheet__add-row .ant-input-affix-wrapper-focused,
.buying-sheet__add-row .ant-input-affix-wrapper:focus-within,
.buying-sheet__add-row .ant-picker.ant-picker-focused {
  border-color: var(--bs-input-focus-blue) !important;
  box-shadow: none !important;
  outline: none !important;
}

.buying-sheet__add-row .ant-select-focused:not(.ant-select-disabled) .ant-select-selector {
  border-color: var(--bs-input-focus-blue) !important;
  box-shadow: none !important;
  outline: none !important;
}

.buying-sheet__filter-row .buying-sheet__filter-select .ant-select-selector {
  border-color: #93c5fd !important;
}

/* Filter row — Clear: white fill, blue border (reference) */

.buying-sheet__btn-clear.ant-btn {
  justify-self: end;
  height: 22px;
  padding: 0 7px;
  font-size: 12px;
  font-weight: 600;
  line-height: 20px;
  font-family: var(--bs-font-sans) !important;
  background: #ffffff !important;
  border: 1px solid #93c5fd !important;
  color: #2563eb !important;
  box-shadow: none !important;
}

.buying-sheet__btn-clear.ant-btn:hover {
  background: #f8fafc !important;
  border-color: #60a5fa !important;
  color: #1d4ed8 !important;
}

/* + Add: right-aligned like Clear; hug content (no full-column stretch) */

.buying-sheet__btn-add.ant-btn-sm {
  justify-self: end;
  width: auto;
  min-width: unset;
  height: 22px;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 600;
  line-height: 20px;
  font-family: var(--bs-font-sans) !important;
}

.buying-sheet__btn-add .anticon {
  font-size: 12px;
}

/* Search row date: same outer height as primary button */

.buying-sheet__page-header-card .buying-sheet__search-date.ant-picker,
.buying-sheet__page-header-card .buying-sheet__search-date.ant-picker:hover {
  min-height: var(--bs-search-control-h, 30px) !important;
  height: var(--bs-search-control-h, 30px) !important;
  padding: 0 8px !important;
  box-sizing: border-box !important;
  border-width: 1px !important;
  border-style: solid !important;
  border-radius: 6px !important;
  border-color: #e2e8f0 !important;
  background: #ffffff !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
}

.buying-sheet__page-header-card .buying-sheet__search-date.ant-picker-focused {
  border-color: var(--bs-input-focus-blue) !important;
  border-width: 2px !important;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1) !important;
  outline: none !important;
}

.buying-sheet__page-header-card .buying-sheet__search-date .ant-picker-input {
  display: flex !important;
  align-items: center !important;
  min-height: calc(var(--bs-search-control-h, 30px) - 4px) !important;
}

.buying-sheet__page-header-card
  .buying-sheet__search-date.ant-picker
  .ant-picker-input
  > input {
  line-height: 1.25 !important;
}

.buying-sheet__page-header-card
  .buying-sheet__search-date.ant-picker
  .ant-picker-input
  > input:focus {
  outline: none !important;
}

/* Standalone small Spin (no nested pattern) — avoids Ant Design’s zero-height loading wrapper */

.buying-sheet__table-loading-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  padding: 12px 16px 16px;
  box-sizing: border-box;
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
}

.buying-sheet__table-loading-slot .ant-spin {
  line-height: 1;
}

.buying-sheet__data-rows {
  display: flex;
  flex-direction: column;
  width: 100%;
  background: #fff;
  font-family: var(--bs-font-rows);
}

.buying-sheet__data-rows .ant-tag,
.buying-sheet__data-rows .ant-btn {
  font-family: var(--bs-font-rows) !important;
}

.buying-sheet__data-row {
  display: grid;
  grid-template-columns: var(--bs-tours-table-cols);
  gap: 6px;
  align-items: center;
  padding: 10px 16px;
  width: 100%;
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
}

.buying-sheet__data-row:last-child {
  border-bottom: 1px solid #e5e7eb;
}

/* Edit row: light amber wash + accent bar — matches reference (amber-50 + #f59e0b) */

.buying-sheet__data-row--editing {
  background: #fffbeb !important;
  border-top: 1px solid #e5e7eb;
  border-bottom: 3px solid #f59e0b !important;
  border-left: none;
  border-right: none;
  box-sizing: border-box;
}

.buying-sheet__data-row--editing .buying-sheet__edit-input.ant-input-affix-wrapper,
.buying-sheet__data-row--editing .buying-sheet__edit-date.ant-picker,
.buying-sheet__data-row--editing .buying-sheet__edit-input.ant-select .ant-select-selector {
  border-radius: 6px !important;
  border-width: 2px !important;
  border-style: solid !important;
  border-color: #d1d5db !important;
  background-color: #ffffff !important;
  font-size: 13px;
  box-shadow: none !important;
  min-height: var(--bs-compact-control-height) !important;
  height: var(--bs-compact-control-height) !important;
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
}

.buying-sheet__type-edit-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.buying-sheet__type-edit-cell .buying-sheet__edit-input.ant-select {
  width: 100%;
}

.buying-sheet__tour-type-tag.ant-tag {
  border: none;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
}

.buying-sheet__tour-type-tag--0.ant-tag {
  background: #dbeafe;
  color: #1d4ed8;
}

.buying-sheet__tour-type-tag--1.ant-tag {
  background: #dcfce7;
  color: #15803d;
}

.buying-sheet__tour-type-tag--2.ant-tag {
  background: #ffedd5;
  color: #c2410c;
}

.buying-sheet__data-row--editing .buying-sheet__edit-date.ant-picker {
  padding: 0 8px !important;
}

.buying-sheet__data-row--editing .buying-sheet__edit-date .ant-picker-input {
  flex: 1 1 auto;
  min-width: 0;
  display: flex !important;
  align-items: center !important;
}

.buying-sheet__data-row--editing .buying-sheet__edit-date .ant-picker-input > input {
  line-height: 1.2 !important;
  height: auto !important;
  padding: 0 !important;
}

.buying-sheet__data-row--editing .buying-sheet__edit-input.ant-input-affix-wrapper-focused,
.buying-sheet__data-row--editing .buying-sheet__edit-input.ant-input-affix-wrapper:focus-within,
.buying-sheet__data-row--editing .buying-sheet__edit-date.ant-picker-focused {
  border-color: var(--bs-input-focus-blue) !important;
  box-shadow: none !important;
  outline: none !important;
}

.buying-sheet__data-row--editing
  .buying-sheet__edit-input.ant-input-affix-wrapper
  .ant-input:focus {
  outline: none !important;
}

.buying-sheet__data-row--editing
  .buying-sheet__edit-date.ant-picker
  .ant-picker-input
  > input:focus {
  outline: none !important;
}

.buying-sheet__actions--edit {
  gap: 8px;
}

.buying-sheet__btn-save.ant-btn-primary {
  background: #15803d !important;
  border-color: #15803d !important;
  font-weight: 700 !important;
  min-width: 64px;
}

.buying-sheet__btn-save.ant-btn-primary:hover {
  background: #166534 !important;
  border-color: #166534 !important;
}

.buying-sheet__btn-cancel-edit.ant-btn {
  border-color: #d1d5db !important;
  color: #6b7280 !important;
  background: #fff !important;
  font-weight: 600 !important;
}

.buying-sheet__btn-cancel-edit.ant-btn:hover {
  border-color: #9ca3af !important;
  color: #374151 !important;
}

.buying-sheet__btn-del-row.ant-btn {
  border-color: #fecaca !important;
  color: #dc2626 !important;
  background: #fff !important;
  font-weight: 600 !important;
}

.buying-sheet__btn-del-row.ant-btn:hover {
  border-color: #fca5a5 !important;
  color: #b91c1c !important;
}

/* Fills remaining space — same gray as page */

.buying-sheet__panel-filler {
  flex: 1 1 auto;
  min-height: 48px;
  background: #f3f4f6;
}

.buying-sheet__date-cell {
  font-size: 13px;
  font-weight: 500;
  color: #6b7280;
  letter-spacing: 0.01em;
}

.buying-sheet__captain-cell {
  font-size: 13px;
  font-weight: 400;
  color: #111827;
}

.buying-sheet__name-cell strong {
  display: block;
  color: #000000;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.buying-sheet__name-sub {
  font-size: 11px;
  font-weight: 400;
  color: #6b7280;
  margin-top: 2px;
  line-height: 1.35;
}

.buying-sheet__team-tag {
  border-radius: 999px !important;
  padding: 2px 10px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  border: none !important;
  background: #e0f2fe !important;
  color: #1d4ed8 !important;
}

.buying-sheet__progress {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.buying-sheet__progress-track {
  flex: 1;
  height: 5px;
  background: #e5e7eb;
  border-radius: 3px;
  position: relative;
  min-width: 60px;
}

.buying-sheet__progress-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: #ef4444;
  border-radius: 3px;
}

.buying-sheet__progress-knob {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  background: #fff;
  border: 2px solid #ef4444;
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.buying-sheet__progress-text {
  font-size: 12px;
  font-weight: 500;
  color: #6b7280;
  white-space: nowrap;
}

.buying-sheet__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
  width: 100%;
}

.buying-sheet__btn-edit.ant-btn {
  padding: 0 !important;
  height: auto !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #6b7280 !important;
}

.buying-sheet__btn-edit.ant-btn:hover {
  color: #4b5563 !important;
}

.buying-sheet__actions .ant-btn-primary {
  font-weight: 600 !important;
}

.buying-sheet__manage-buyers-drawer .ant-drawer-header {
  padding: 10px 14px 8px;
  border-bottom: 1px solid #d4dae6;
}

.buying-sheet__manage-buyers-drawer .ant-drawer-title {
  margin: 0;
}

.buying-sheet__manage-buyers-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.buying-sheet__manage-buyers-title-kicker {
  color: #2f57c8;
  font-family: var(--bs-table-head-font);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.buying-sheet__manage-buyers-title-main {
  color: #171f33;
  font-family: var(--bs-table-head-font);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.1;
}

.buying-sheet__manage-buyers-drawer .ant-drawer-body {
  background: #eef0f4;
  padding: 10px 10px 12px;
}

.buying-sheet__manage-buyers-tabs .ant-tabs-tab {
  text-transform: uppercase;
  font-family: var(--bs-table-head-font);
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 11px;
  color: #8893ae;
  border: 1px solid #b9c1d3 !important;
  background: #e6ebf3;
  border-top-left-radius: 5px !important;
  border-top-right-radius: 5px !important;
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
  margin: 0 !important;
  padding: 8px 12px !important;
}

.buying-sheet__manage-buyers-tabs .ant-tabs-nav {
  margin-bottom: 0;
}

.buying-sheet__manage-buyers-tabs .ant-tabs-nav-list {
  gap: 0 !important;
}

.buying-sheet__manage-buyers-tabs .ant-tabs-tab + .ant-tabs-tab {
  margin-left: -1px !important;
}

.buying-sheet__manage-buyers-tabs .ant-tabs-tab-active {
  background: #ffffff !important;
  color: #1d2438 !important;
  border-bottom-color: #ffffff !important;
}

.buying-sheet__manage-buyers-tabs .ant-tabs-tab-btn {
  color: inherit !important;
}

.buying-sheet__manage-buyers-tabs .ant-tabs-ink-bar {
  display: none;
}

.buying-sheet__manage-buyers-tabs .ant-tabs-content-holder {
  border: none;
}

.buying-sheet__manage-buyers-card,
.buying-sheet__manage-buyers-current {
  border: 2px solid #b8c2d6;
  border-radius: 5px;
  background: #ffffff;
  padding: 12px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.buying-sheet__manage-buyers-card {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.buying-sheet__manage-buyers-current {
  margin-top: 10px;
}

.buying-sheet__manage-buyers-help {
  margin: 0 0 10px;
  color: #7885a6;
  font-size: 13px;
  line-height: 1.45;
  max-width: 95%;
}

.buying-sheet__manage-buyers-label {
  display: block;
  margin-bottom: 10px;
  color: #74809d;
  font-family: var(--bs-table-head-font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.buying-sheet__manage-buyers-required-mark {
  color: #c0262a;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}

.buying-sheet__manage-buyers-label .ant-input,
.buying-sheet__manage-buyers-label .ant-input::placeholder,
.buying-sheet__manage-buyers-label .ant-select,
.buying-sheet__manage-buyers-label .ant-select .ant-select-selection-item,
.buying-sheet__manage-buyers-label .ant-select .ant-select-selection-placeholder {
  font-family: var(--bs-font-sans) !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

.buying-sheet__manage-buyers-label .ant-select {
  display: block;
  width: 100%;
}

.buying-sheet__manage-buyers-label .ant-input,
.buying-sheet__manage-buyers-label .ant-select-selector {
  margin-top: 6px;
}

.buying-sheet__manage-buyers-label .ant-input,
.buying-sheet__manage-buyers-label .ant-select .ant-select-selector {
  min-height: 34px !important;
  height: 34px !important;
  border-radius: 5px !important;
  border-color: #b8c2d6 !important;
  border-width: 2px !important;
  box-shadow: none !important;
  font-size: 13px !important;
  color: #1e2538 !important;
  background: #ffffff !important;
  font-weight: 500 !important;
}

.buying-sheet__manage-buyers-label .ant-input {
  padding: 5px 10px !important;
}

.buying-sheet__manage-buyers-label .ant-select .ant-select-selector {
  padding: 0 10px !important;
}

.buying-sheet__manage-buyers-label .ant-select-single .ant-select-selector .ant-select-selection-item,
.buying-sheet__manage-buyers-label .ant-select-single .ant-select-selector .ant-select-selection-placeholder {
  line-height: 30px !important;
  font-size: 13px !important;
}

.buying-sheet__manage-buyers-label .ant-select-single .ant-select-selector .ant-select-selection-placeholder,
.buying-sheet__manage-buyers-label .ant-input::placeholder {
  color: #7d879f !important;
  font-weight: 500 !important;
}

/* Manage Team Buyers drawer — focus: solid blue border (clear active state) */

.buying-sheet__manage-buyers-drawer .buying-sheet__manage-buyers-label .ant-input:not(
    .ant-input-disabled
  ):focus,
.buying-sheet__manage-buyers-drawer .buying-sheet__manage-buyers-label .ant-input:not(
    .ant-input-disabled
  ).ant-input-focused {
  border-color: #2563eb !important;
  box-shadow: none !important;
  outline: none !important;
}

.buying-sheet__manage-buyers-drawer
  .buying-sheet__manage-buyers-label
  .ant-select-focused:not(.ant-select-disabled)
  .ant-select-selector {
  border-color: #2563eb !important;
  box-shadow: none !important;
  outline: none !important;
}

.buying-sheet__manage-buyers-buyers-panel-search .ant-input-affix-wrapper-focused {
  background: #ffffff !important;
  border-radius: 4px !important;
  box-shadow: 0 0 0 2px #2563eb !important;
}

.buying-sheet__manage-buyers-buyers-panel-search .ant-input-affix-wrapper-focused > input.ant-input {
  background: #ffffff !important;
}

/* Buyers: single panel — search row + scrollable checklist */

.buying-sheet__manage-buyers-buyers-panel {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  max-height: 182px;
  border: 2px solid #b8c2d6;
  border-radius: 5px;
  background: #ffffff;
  overflow: hidden;
}

.buying-sheet__manage-buyers-buyers-panel-search {
  flex-shrink: 0;
  padding: 2px 6px 2px 8px;
  background: transparent;
  border-bottom: 1px solid #e8ecf2;
}

.buying-sheet__manage-buyers-buyers-panel-search .ant-input-affix-wrapper {
  display: flex !important;
  align-items: center !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 2px !important;
  min-height: 24px !important;
  height: 24px !important;
}

.buying-sheet__manage-buyers-buyers-panel-search
  .ant-input-affix-wrapper
  .ant-input-prefix {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 100%;
  margin-inline-end: 6px !important;
}

.buying-sheet__manage-buyers-buyers-panel-search .ant-input-affix-wrapper > input.ant-input {
  line-height: 1.25 !important;
  min-height: 0 !important;
  height: auto !important;
  padding: 0 !important;
  align-self: center;
}

.buying-sheet__manage-buyers-buyers-panel-search .ant-input-clear-icon {
  display: flex !important;
  align-items: center !important;
  font-size: 12px !important;
}

.buying-sheet__manage-buyers-buyers-panel-search .ant-input {
  font-size: 12px !important;
  font-weight: 500 !important;
  background: transparent !important;
}

.buying-sheet__manage-buyers-buyers-panel-search-icon {
  color: #7c8aa8 !important;
  font-size: 12px !important;
  line-height: 1 !important;
  display: flex !important;
  align-items: center !important;
}

.buying-sheet__manage-buyers-buyers-panel-list {
  flex: 1;
  min-height: 0;
  max-height: 148px;
  overflow-y: auto;
  padding: 8px 10px 10px;
}

.buying-sheet__manage-buyers-buyers-no-matches {
  font-family: var(--bs-font-sans);
  font-size: 13px;
  font-weight: 500;
  color: #94a3b8;
  text-transform: none;
  letter-spacing: 0;
  padding: 6px 2px;
}

.buying-sheet__manage-buyers-buyer-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  font-family: var(--bs-font-sans);
  font-size: 14px;
  text-transform: none;
  letter-spacing: 0;
  color: #1f2937;
}

.buying-sheet__manage-buyers-hint {
  margin-top: 6px;
  font-family: var(--bs-font-sans);
  font-size: 12px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: #7484a4;
}

.buying-sheet__manage-buyers-actions {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.buying-sheet__manage-buyers-actions .ant-btn {
  min-width: 98px;
  height: 32px;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 700;
}

.buying-sheet__manage-buyers-actions .ant-btn-primary {
  background: #2b52cd !important;
  border-color: #2b52cd !important;
}

.buying-sheet__manage-buyers-actions .ant-btn-primary:hover {
  background: #2448b8 !important;
  border-color: #2448b8 !important;
}

.buying-sheet__manage-buyers-actions .ant-btn-primary:disabled,
.buying-sheet__manage-buyers-actions .ant-btn-primary.ant-btn-disabled {
  background: #e2e8f0 !important;
  border-color: #cbd5e1 !important;
  color: #94a3b8 !important;
  cursor: not-allowed;
  opacity: 1;
  text-shadow: none;
  box-shadow: none;
}

.buying-sheet__manage-buyers-actions .ant-btn-primary:disabled:hover,
.buying-sheet__manage-buyers-actions .ant-btn-primary.ant-btn-disabled:hover {
  background: #e2e8f0 !important;
  border-color: #cbd5e1 !important;
  color: #94a3b8 !important;
}

.buying-sheet__manage-buyers-current-title {
  margin-bottom: 8px;
  color: #4b587a;
  font-family: var(--bs-table-head-font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.buying-sheet__manage-buyers-current-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.buying-sheet__manage-buyers-team-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 2px solid #c9d2e2;
  border-radius: 5px;
  background: #f6f8fc;
  padding: 8px 10px;
}

.buying-sheet__manage-buyers-team-name {
  font-family: var(--bs-font-sans);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.1;
  color: #1f2438;
}

.buying-sheet__manage-buyers-team-meta {
  margin-top: 4px;
  font-size: 12px;
  color: #7a85a0;
}

.buying-sheet__manage-buyers-team-actions {
  display: flex;
  gap: 8px;
}

.buying-sheet__manage-buyers-team-actions .ant-btn {
  border-radius: 5px;
  min-width: 66px;
  height: 30px;
  font-size: 12px;
  font-weight: 700;
  border-width: 2px;
}

.buying-sheet__manage-buyers-team-actions .ant-btn-default {
  color: #2c4aa4;
  border-color: #aac5f2;
}

.buying-sheet__manage-buyers-team-actions .ant-btn-dangerous {
  color: #bf2d2d;
  border-color: #f0a5a5;
}

.buying-sheet__manage-buyers-empty {
  padding: 8px;
  color: #8a94ac;
  border: 2px solid #d1d7e5;
  border-radius: 5px;
  background: #f6f8fc;
  font-size: 12px;
}

.buying-sheet__manage-buyers-tabs .ant-tabs-tab-btn:focus-visible {
  outline: none !important;
}

.buying-sheet__manage-buyers-card .ant-checkbox .ant-checkbox-inner {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  border-color: #9aa6c0;
}
.omv-hub {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #f1f5f9;
}

.omv-hub__body {
  flex: 1;
  padding: 24px 28px 48px;
  max-width: 960px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.omv-hub__intro {
  margin-bottom: 24px;
}

.omv-hub__title {
  margin: 0 0 8px !important;
  display: flex;
  align-items: center;
  gap: 10px;
}

.omv-hub__title-icon {
  color: #2563eb;
  font-size: 22px;
}

.omv-hub__lead {
  margin-bottom: 0 !important;
  max-width: 52rem;
}

.omv-hub__cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.omv-hub__card {
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.omv-hub__card-icon {
  font-size: 28px;
  color: #2563eb;
  margin-bottom: 8px;
}

.omv-hub__card-title {
  margin: 0 0 8px !important;
}

.omv-hub__card-desc {
  margin-bottom: 16px !important;
  min-height: 3.5rem;
}
/* Buyer “My Shows” — compact top bar only (no main TICKET/BOAT marketing header). */
.ebs-my-shows-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 16px;
  padding: 10px 20px;
  background: #121826;
  color: #e2e8f0;
  border-bottom: 1px solid #2e5bff;
  flex-shrink: 0;
}

.ebs-my-shows-topbar-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  min-width: 0;
}

.ebs-my-shows-back.ant-btn {
  color: #93c5fd !important;
  padding: 0 4px 0 0;
  height: auto;
  font-weight: 600;
}

.ebs-my-shows-back.ant-btn:hover {
  color: #bfdbfe !important;
}

.ebs-my-shows-title {
  margin: 0 !important;
  color: #ffffff !important;
  font-size: 18px !important;
  font-weight: 700 !important;
}

.ebs-my-shows-date-pill {
  font-family: var(--bs-font-header-mono, "IBM Plex Mono", monospace);
  font-size: 12px;
  font-weight: 600;
  color: #bae6fd;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(37, 99, 235, 0.25);
  border: 1px solid rgba(147, 197, 253, 0.4);
  white-space: nowrap;
}

.ebs-my-shows-topbar-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.ebs-my-shows-viewing {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
  font-size: 12px;
  color: #94a3b8;
}

.ebs-my-shows-viewing .buying-sheet__role-badge--topbar {
  margin: 0;
  line-height: 1.2;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 9px;
  vertical-align: middle;
}

.ebs-my-shows-viewing-name {
  color: #e2e8f0;
  font-weight: 600;
}

.ebs-my-shows-viewing-name::before {
  content: "·";
  margin-right: 6px;
  color: #64748b;
  font-weight: 500;
}

/* Dark strip — time slot + tour filters (compact; same pill size on both rows). */
.ebs-my-shows-chip-bar {
  padding: 6px 10px 8px;
  background: #1a2332;
  border-bottom: 1px solid #334155;
}

.ebs-my-shows-chip-bar .ebs-time-slot-label {
  font-family: "Barlow Condensed", Inter, system-ui, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fbbf24;
  min-width: 4.75rem;
  margin-right: 0;
}

.ebs-my-shows-chip-bar .ebs-my-shows-chip-label {
  font-family: "Barlow Condensed", Inter, system-ui, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c4b5fd;
  min-width: 4.75rem;
  margin-right: 0;
}

.ebs-my-shows-chip-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
}

.ebs-my-shows-chip-group--tour {
  margin-top: 12px;
}

.ebs-my-shows-chip-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

/* Native <button> reset — avoid OS / global styles (white “default” pills). */
.ebs-my-shows-chip-bar button.ebs-my-shows-chip,
.ebs-my-shows-chip-bar button.ebs-time-slot-pill {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  box-shadow: none;
  font: inherit;
  text-align: inherit;
}

/* Shared pill size (time slot + tour). Hour tones from EventBuyingSheet.css. */
.ebs-my-shows-chip-bar .ebs-time-slot-pill,
.ebs-my-shows-chip-bar .ebs-my-shows-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 26px;
  padding: 4px 5px 4px 10px;
  border-radius: 999px;
  border-width: 1px;
  border-style: solid;
  cursor: pointer;
  line-height: 1.2;
  font-family: var(--bs-font-header-mono, "IBM Plex Mono", monospace);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.ebs-my-shows-chip-bar .ebs-time-slot-pill:focus-visible,
.ebs-my-shows-chip-bar .ebs-my-shows-chip:focus-visible {
  outline: 1px solid rgba(96, 165, 250, 0.85);
  outline-offset: 1px;
}

.ebs-my-shows-chip-bar .ebs-time-slot-pill-text,
.ebs-my-shows-chip-bar .ebs-my-shows-chip__text {
  white-space: nowrap;
  font-size: 10px;
  line-height: 1.2;
  text-transform: none;
}

.ebs-my-shows-chip-bar .ebs-time-slot-badge,
.ebs-my-shows-chip-bar .ebs-my-shows-chip__badge {
  box-sizing: border-box;
  flex-shrink: 0;
  min-width: 1.125rem;
  height: 1.125rem;
  padding: 0 5px;
  border-radius: 999px;
  font-family: var(--bs-font-header-mono, "IBM Plex Mono", monospace);
  font-size: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.ebs-my-shows-chip--tour-on {
  background: #7c3aed;
  border-color: #7c3aed;
  color: #ffffff;
}

.ebs-my-shows-chip--tour-on .ebs-my-shows-chip__badge {
  background: #5b21b6;
  color: #ffffff;
}

.ebs-my-shows-chip--tour-on:hover {
  background: #8b5cf6;
  border-color: #8b5cf6;
}

/* Individual tour pills: consecutive tones maximally distinct (blue vs teal vs violet…); badges match chip solids. */
.ebs-my-shows-chip-bar button.ebs-my-shows-chip--tour-pill-idle[data-tour-tone="0"] {
  --tchip-idle-bg: rgba(30, 58, 138, 0.26);
  --tchip-idle-border: rgba(96, 165, 250, 0.55);
  --tchip-idle-text: #dbeafe;
  --tchip-badge-bg: rgba(15, 23, 42, 0.58);
  --tchip-badge-text: #eff6ff;
  --tchip-idle-hover-bg: rgba(30, 58, 138, 0.38);
  --tchip-idle-hover-border: rgba(147, 197, 253, 0.72);
}
.ebs-my-shows-chip-bar button.ebs-my-shows-chip--tour-pill-active[data-tour-tone="0"],
.ebs-my-shows-page .ebs-show-tour-badge[data-tour-tone="0"],
.ebs-my-shows-page .ebs-entry-tour-pill[data-tour-tone="0"] {
  --tchip-bg: #1e3a8a;
  --tchip-border: #2563eb;
  --tchip-text: #ffffff;
  --tchip-badge-bg: #172554;
  --tchip-badge-text: #ffffff;
  --tchip-active-hover-bg: #1d4ed8;
  --tchip-active-hover-border: #3b82f6;
}

.ebs-my-shows-chip-bar button.ebs-my-shows-chip--tour-pill-idle[data-tour-tone="1"] {
  --tchip-idle-bg: rgba(13, 148, 136, 0.26);
  --tchip-idle-border: rgba(45, 212, 191, 0.5);
  --tchip-idle-text: #ccfbf1;
  --tchip-badge-bg: rgba(15, 23, 42, 0.58);
  --tchip-badge-text: #f0fdfa;
  --tchip-idle-hover-bg: rgba(13, 148, 136, 0.38);
  --tchip-idle-hover-border: rgba(94, 234, 212, 0.65);
}
.ebs-my-shows-chip-bar button.ebs-my-shows-chip--tour-pill-active[data-tour-tone="1"],
.ebs-my-shows-page .ebs-show-tour-badge[data-tour-tone="1"],
.ebs-my-shows-page .ebs-entry-tour-pill[data-tour-tone="1"] {
  --tchip-bg: #0f766e;
  --tchip-border: #14b8a6;
  --tchip-text: #ffffff;
  --tchip-badge-bg: #115e59;
  --tchip-badge-text: #ffffff;
  --tchip-active-hover-bg: #0d9488;
  --tchip-active-hover-border: #2dd4bf;
}

.ebs-my-shows-chip-bar button.ebs-my-shows-chip--tour-pill-idle[data-tour-tone="2"] {
  --tchip-idle-bg: rgba(124, 58, 237, 0.22);
  --tchip-idle-border: rgba(167, 139, 250, 0.55);
  --tchip-idle-text: #ede9fe;
  --tchip-badge-bg: rgba(15, 23, 42, 0.58);
  --tchip-badge-text: #f5f3ff;
  --tchip-idle-hover-bg: rgba(124, 58, 237, 0.34);
  --tchip-idle-hover-border: rgba(196, 181, 253, 0.72);
}
.ebs-my-shows-chip-bar button.ebs-my-shows-chip--tour-pill-active[data-tour-tone="2"],
.ebs-my-shows-page .ebs-show-tour-badge[data-tour-tone="2"],
.ebs-my-shows-page .ebs-entry-tour-pill[data-tour-tone="2"] {
  --tchip-bg: #7c3aed;
  --tchip-border: #9333ea;
  --tchip-text: #ffffff;
  --tchip-badge-bg: #5b21b6;
  --tchip-badge-text: #ffffff;
  --tchip-active-hover-bg: #8b5cf6;
  --tchip-active-hover-border: #a78bfa;
}

.ebs-my-shows-chip-bar button.ebs-my-shows-chip--tour-pill-idle[data-tour-tone="3"] {
  --tchip-idle-bg: rgba(79, 70, 229, 0.24);
  --tchip-idle-border: rgba(129, 140, 248, 0.56);
  --tchip-idle-text: #e0e7ff;
  --tchip-badge-bg: rgba(15, 23, 42, 0.58);
  --tchip-badge-text: #eef2ff;
  --tchip-idle-hover-bg: rgba(79, 70, 229, 0.35);
  --tchip-idle-hover-border: rgba(165, 180, 252, 0.74);
}
.ebs-my-shows-chip-bar button.ebs-my-shows-chip--tour-pill-active[data-tour-tone="3"],
.ebs-my-shows-page .ebs-show-tour-badge[data-tour-tone="3"],
.ebs-my-shows-page .ebs-entry-tour-pill[data-tour-tone="3"] {
  --tchip-bg: #4f46e5;
  --tchip-border: #6366f1;
  --tchip-text: #ffffff;
  --tchip-badge-bg: #4338ca;
  --tchip-badge-text: #ffffff;
  --tchip-active-hover-bg: #6366f1;
  --tchip-active-hover-border: #818cf8;
}

.ebs-my-shows-chip-bar button.ebs-my-shows-chip--tour-pill-idle[data-tour-tone="4"] {
  --tchip-idle-bg: rgba(168, 85, 247, 0.2);
  --tchip-idle-border: rgba(216, 180, 254, 0.52);
  --tchip-idle-text: #fae8ff;
  --tchip-badge-bg: rgba(15, 23, 42, 0.58);
  --tchip-badge-text: #faf5ff;
  --tchip-idle-hover-bg: rgba(168, 85, 247, 0.32);
  --tchip-idle-hover-border: rgba(233, 213, 255, 0.68);
}
.ebs-my-shows-chip-bar button.ebs-my-shows-chip--tour-pill-active[data-tour-tone="4"],
.ebs-my-shows-page .ebs-show-tour-badge[data-tour-tone="4"],
.ebs-my-shows-page .ebs-entry-tour-pill[data-tour-tone="4"] {
  --tchip-bg: #a855f7;
  --tchip-border: #c084fc;
  --tchip-text: #ffffff;
  --tchip-badge-bg: #7e22ce;
  --tchip-badge-text: #ffffff;
  --tchip-active-hover-bg: #c084fc;
  --tchip-active-hover-border: #d8b4fe;
}

.ebs-my-shows-chip-bar button.ebs-my-shows-chip--tour-pill-idle[data-tour-tone="5"] {
  --tchip-idle-bg: rgba(67, 56, 202, 0.24);
  --tchip-idle-border: rgba(99, 102, 241, 0.52);
  --tchip-idle-text: #e0e7ff;
  --tchip-badge-bg: rgba(15, 23, 42, 0.58);
  --tchip-badge-text: #eef2ff;
  --tchip-idle-hover-bg: rgba(67, 56, 202, 0.34);
  --tchip-idle-hover-border: rgba(129, 140, 248, 0.68);
}
.ebs-my-shows-chip-bar button.ebs-my-shows-chip--tour-pill-active[data-tour-tone="5"],
.ebs-my-shows-page .ebs-show-tour-badge[data-tour-tone="5"],
.ebs-my-shows-page .ebs-entry-tour-pill[data-tour-tone="5"] {
  --tchip-bg: #4338ca;
  --tchip-border: #4f46e5;
  --tchip-text: #ffffff;
  --tchip-badge-bg: #3730a3;
  --tchip-badge-text: #ffffff;
  --tchip-active-hover-bg: #4f46e5;
  --tchip-active-hover-border: #6366f1;
}

.ebs-my-shows-chip-bar button.ebs-my-shows-chip--tour-pill-idle[data-tour-tone="6"] {
  --tchip-idle-bg: rgba(37, 99, 235, 0.22);
  --tchip-idle-border: rgba(96, 165, 250, 0.52);
  --tchip-idle-text: #dbeafe;
  --tchip-badge-bg: rgba(15, 23, 42, 0.58);
  --tchip-badge-text: #eff6ff;
  --tchip-idle-hover-bg: rgba(37, 99, 235, 0.34);
  --tchip-idle-hover-border: rgba(147, 197, 253, 0.68);
}
.ebs-my-shows-chip-bar button.ebs-my-shows-chip--tour-pill-active[data-tour-tone="6"],
.ebs-my-shows-page .ebs-show-tour-badge[data-tour-tone="6"],
.ebs-my-shows-page .ebs-entry-tour-pill[data-tour-tone="6"] {
  --tchip-bg: #2563eb;
  --tchip-border: #3b82f6;
  --tchip-text: #ffffff;
  --tchip-badge-bg: #1d4ed8;
  --tchip-badge-text: #ffffff;
  --tchip-active-hover-bg: #3b82f6;
  --tchip-active-hover-border: #60a5fa;
}

.ebs-my-shows-chip-bar button.ebs-my-shows-chip--tour-pill-idle[data-tour-tone="7"] {
  --tchip-idle-bg: rgba(3, 105, 161, 0.22);
  --tchip-idle-border: rgba(14, 165, 233, 0.5);
  --tchip-idle-text: #e0f2fe;
  --tchip-badge-bg: rgba(15, 23, 42, 0.58);
  --tchip-badge-text: #f0f9ff;
  --tchip-idle-hover-bg: rgba(3, 105, 161, 0.34);
  --tchip-idle-hover-border: rgba(56, 189, 248, 0.68);
}
.ebs-my-shows-chip-bar button.ebs-my-shows-chip--tour-pill-active[data-tour-tone="7"],
.ebs-my-shows-page .ebs-show-tour-badge[data-tour-tone="7"],
.ebs-my-shows-page .ebs-entry-tour-pill[data-tour-tone="7"] {
  --tchip-bg: #0369a1;
  --tchip-border: #0ea5e9;
  --tchip-text: #ffffff;
  --tchip-badge-bg: #0c4a6e;
  --tchip-badge-text: #ffffff;
  --tchip-active-hover-bg: #0284c7;
  --tchip-active-hover-border: #38bdf8;
}

.ebs-my-shows-page .ebs-show-tour-badge[data-tour-tone] {
  background: var(--tchip-bg);
  border-color: var(--tchip-border);
  color: var(--tchip-text);
}

/* Buyer Entries + ML/Code tour column — block + width so ellipsis applies */
.ebs-my-shows-page .ebs-table--entries .ebs-entry-tour-pill[data-tour-tone],
.ebs-my-shows-page .ebs-assignment-col-buyer .ebs-entry-tour-pill[data-tour-tone] {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 0.1rem 0.38rem;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.25;
  vertical-align: middle;
  box-sizing: border-box;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: var(--tchip-bg);
  border: 1px solid var(--tchip-border);
  color: var(--tchip-text);
}

.ebs-my-shows-page .ebs-assignment-col-buyer .ebs-entry-readtext-measure {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ebs-my-shows-chip-bar button.ebs-my-shows-chip--tour-pill-idle {
  background: var(--tchip-idle-bg);
  border-color: var(--tchip-idle-border);
  color: var(--tchip-idle-text);
}
.ebs-my-shows-chip-bar button.ebs-my-shows-chip--tour-pill-idle .ebs-my-shows-chip__badge {
  background: var(--tchip-badge-bg);
  color: var(--tchip-badge-text);
}
.ebs-my-shows-chip-bar button.ebs-my-shows-chip--tour-pill-idle:hover {
  background: var(--tchip-idle-hover-bg);
  border-color: var(--tchip-idle-hover-border);
  color: var(--tchip-idle-text);
}

.ebs-my-shows-chip-bar button.ebs-my-shows-chip--tour-pill-active {
  background: var(--tchip-bg);
  border-color: var(--tchip-border);
  color: var(--tchip-text);
}
.ebs-my-shows-chip-bar button.ebs-my-shows-chip--tour-pill-active .ebs-my-shows-chip__badge {
  background: var(--tchip-badge-bg);
  color: var(--tchip-badge-text);
}
.ebs-my-shows-chip-bar button.ebs-my-shows-chip--tour-pill-active:hover {
  background: var(--tchip-active-hover-bg);
  border-color: var(--tchip-active-hover-border);
  color: var(--tchip-text);
}

/* Tour "All" — idle (outline on dark) */
.ebs-my-shows-chip-bar button.ebs-my-shows-chip--tour-off {
  background: transparent;
  border-color: #64748b;
  color: #cbd5e1;
}

.ebs-my-shows-chip--tour-off .ebs-my-shows-chip__badge {
  background: #0f172a;
  color: #e2e8f0;
}

.ebs-my-shows-chip-bar button.ebs-my-shows-chip--tour-off:hover {
  border-color: #94a3b8;
  color: #f1f5f9;
}

/* Buyer Entries — narrow Show # / Qty so the add-row + Add button is not clipped */
.ebs-my-shows-page .ebs-table--entries.ebs-table--tour-col thead th.ebs-th-show,
.ebs-my-shows-page .ebs-table--entries.ebs-table--tour-col tbody td.ebs-td-show {
  width: 3.25rem;
  min-width: 3.25rem;
  max-width: 3.25rem;
}

.ebs-my-shows-page .ebs-table--entries.ebs-table--tour-col thead th.ebs-th-qty,
.ebs-my-shows-page .ebs-table--entries.ebs-table--tour-col tbody td.ebs-td-qty {
  width: 3.25rem;
  min-width: 3.25rem;
  max-width: 3.25rem;
}

.ebs-my-shows-page .ebs-table--entries.ebs-table--tour-col tbody td.ebs-td-qty .ebs-cell-input,
.ebs-my-shows-page .ebs-table--entries.ebs-table--tour-col tbody td.ebs-td-qty .ant-input {
  min-width: 2rem;
}

.ebs-my-shows-page .ebs-table--entries.ebs-table--tour-col .ebs-th-actions,
.ebs-my-shows-page .ebs-table--entries.ebs-table--tour-col .ebs-td-actions {
  width: 3.5rem;
  min-width: 3.5rem;
  max-width: 3.5rem;
  padding-left: 2px;
  padding-right: 2px;
}

.ebs-my-shows-page .ebs-table--entries.ebs-table--tour-col tbody .ebs-btn-add.ant-btn-sm {
  padding: 0 4px !important;
  white-space: nowrap;
}
/**
 * Failure Management — layout aligns with Buying Sheet / Tours table patterns.
 * Color tokens (--fm-*) stay on this page; structure reuses buying-sheet__* classes.
 */

.failure-management.buying-sheet {
  --bs-tours-table-cols: minmax(16rem, 1.35fr) minmax(6.5rem, 0.75fr) minmax(
      7.5rem,
      0.7fr
    ) minmax(14rem, 2fr) minmax(112px, 0.85fr);
  min-height: 100vh;
}

.failure-management__body {
  padding-top: 16px;
}

.failure-management__page-header {
  margin-bottom: 12px;
}

.failure-management .buying-sheet__panel-mode-bar {
  margin-bottom: 10px;
}

.failure-management__api-hint {
  margin: 0 20px 10px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.45;
}

.failure-management .fm-result-count {
  flex-shrink: 0;
  color: var(--fm-text-muted);
  font-family: var(--fm-font-mono);
  font-size: 12px;
  font-weight: 700;
}

.failure-management__panel-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.failure-management__add-btn {
  white-space: nowrap;
}

.failure-management__table-shell {
  overflow: visible;
}

.failure-management__grid {
  width: 100%;
}

.failure-management__grid-head {
  border-bottom: 1px solid var(--bs-header-bg);
}

.failure-management__filter-add-wrap {
  width: 100%;
}

.failure-management .buying-sheet__date-col-with-label .buying-sheet__add-input {
  width: 100% !important;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.failure-management .buying-sheet__btn-clear.ant-btn:disabled,
.failure-management .buying-sheet__btn-clear.ant-btn.ant-btn-disabled {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
  color: #94a3b8 !important;
  cursor: not-allowed;
}

.failure-management__data-row {
  align-items: start;
}

.failure-management__edit-details.ant-input {
  min-height: var(--bs-compact-control-height) !important;
  height: auto !important;
  padding-block: 4px !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
}

.failure-management {
  --fm-bg: #f1f5f9;
  --fm-surface: #ffffff;
  --fm-border: #cbd5e1;
  --fm-border-soft: #e2e8f0;
  --fm-text-primary: #0f172a;
  --fm-text-muted: #475569;
  --fm-blue: #2563eb;
  --fm-blue-soft: #dbeafe;
  --fm-blue-text: #1e40af;
  --fm-green: #166534;
  --fm-green-soft: #dcfce7;
  --fm-amber: #9a3412;
  --fm-amber-soft: #ffedd5;
  --fm-font-ui: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  --fm-font-mono: "IBM Plex Mono", "Roboto Mono", Consolas, monospace;
}

.fm-control {
  width: 100%;
  min-width: 0;
  min-height: 28px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #ffffff;
  color: var(--fm-text-primary);
  padding: 4px 8px;
  font-size: 12px;
  outline: none;
  box-sizing: border-box;
}

.fm-control:focus {
  border-color: var(--fm-blue);
  box-shadow: 0 0 0 1px var(--fm-blue);
}

.fm-control::placeholder {
  color: #64748b;
  opacity: 1;
}

textarea.fm-control {
  min-height: 58px;
  padding: 7px 8px;
  resize: vertical;
}

.fm-btn {
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #ffffff;
  color: #334155;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.fm-form-message {
  min-height: 18px;
  color: var(--fm-green);
  font-size: 12px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fm-details-popout {
  position: relative;
  min-width: 0;
}

.fm-details-popout summary {
  list-style: none;
}

.fm-details-popout summary::-webkit-details-marker {
  display: none;
}

.fm-details-popout-panel {
  position: absolute;
  z-index: 10;
  top: calc(100% + 6px);
  right: 0;
  width: min(420px, 80vw);
  padding: 10px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.16);
}

.fm-details-popout-title {
  margin: 0 0 6px;
  color: #334155;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fm-details-popout textarea.fm-control {
  min-height: 118px;
  line-height: 1.35;
}

.fm-failure-name {
  font-weight: 700;
  color: #0f172a;
  line-height: 1.25;
  font-size: 13px;
}

.fm-failure-detail {
  color: #334155;
  line-height: 1.45;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.fm-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid #93c5fd;
  background: var(--fm-blue-soft);
  color: var(--fm-blue-text);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.fm-pill-needed {
  border-color: #fdba74;
  background: var(--fm-amber-soft);
  color: var(--fm-amber);
}

.fm-pill-not-needed {
  border-color: #86efac;
  background: var(--fm-green-soft);
  color: var(--fm-green);
}

.failure-management .fm-edit-row-btn.ant-btn,
.failure-management .fm-delete-row-btn.ant-btn {
  height: auto !important;
  padding: 0 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
}

.failure-management .fm-edit-row-btn.ant-btn {
  color: #1d4ed8 !important;
}

.failure-management .fm-delete-row-btn.ant-btn {
  color: #991b1b !important;
}

.failure-management .buying-sheet__data-row--editing .fm-edit-row-btn.ant-btn-primary {
  border-color: #86efac !important;
  background: #dcfce7 !important;
  color: #15803d !important;
  padding: 0 8px !important;
  height: 22px !important;
}

.failure-management .buying-sheet__data-row--editing .fm-delete-row-btn.ant-btn {
  border: 1px solid #fca5a5 !important;
  background: #fee2e2 !important;
  color: #991b1b !important;
  padding: 0 8px !important;
  height: 22px !important;
}

.fm-empty-state {
  display: none;
  padding: 42px 24px;
  text-align: center;
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
}

.fm-empty-state.is-visible {
  display: block;
}

.fm-empty-title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: var(--fm-text-primary);
}

.fm-empty-copy {
  max-width: 440px;
  margin: 8px auto 0;
  color: var(--fm-text-muted);
}

@media (max-width: 920px) {
  .failure-management__body {
    padding-top: 8px;
  }

  .failure-management .buying-sheet__panel-table {
    width: calc(100% - 24px);
    max-width: calc(100% - 24px);
    margin-left: 12px;
    margin-right: 12px;
  }

  .failure-management .buying-sheet__panel-mode-bar {
    width: calc(100% - 24px);
    max-width: calc(100% - 24px);
    margin-left: 12px;
    margin-right: 12px;
  }
}

/*
 * Admin-embedded dark: neutral grays (#141414 family), not mainview ocean blue.
 * Scoped to .failure-management so tours/event sheets keep their palette.
 */
html[data-mainview-theme="dark"] .failure-management.buying-sheet {
  background: transparent;
  min-height: 0;
  --bs-header-bg: #262626;
  --bs-input-placeholder: rgba(255, 255, 255, 0.35);
  --fm-bg: transparent;
  --fm-surface: #1f1f1f;
  --fm-border: #434343;
  --fm-border-soft: #303030;
  --fm-text-primary: rgba(255, 255, 255, 0.88);
  --fm-text-muted: rgba(255, 255, 255, 0.45);
  --fm-blue-soft: #303030;
  --fm-blue-text: rgba(255, 255, 255, 0.88);
  --fm-green: #95de64;
  --fm-green-soft: rgba(82, 196, 26, 0.12);
  --fm-amber: #ffc069;
  --fm-amber-soft: rgba(250, 173, 20, 0.12);
}

html[data-mainview-theme="dark"] .failure-management.buying-sheet .buying-sheet__page-header-card {
  background: #1f1f1f;
  border-color: #434343;
}

html[data-mainview-theme="dark"] .failure-management.buying-sheet .buying-sheet__subtitle,
html[data-mainview-theme="dark"] .failure-management.buying-sheet .buying-sheet__panel-mode-hint {
  color: rgba(255, 255, 255, 0.45);
}

html[data-mainview-theme="dark"] .failure-management.buying-sheet .buying-sheet__table-shell {
  background: #1f1f1f;
  border-color: #434343;
}

html[data-mainview-theme="dark"] .failure-management.buying-sheet .buying-sheet__th {
  background: #262626;
  color: rgba(255, 255, 255, 0.65);
  border-bottom-color: #434343;
}

html[data-mainview-theme="dark"] .failure-management .failure-management__grid-head {
  border-bottom-color: #434343;
}

html[data-mainview-theme="dark"] .failure-management.buying-sheet .buying-sheet__filter-row,
html[data-mainview-theme="dark"] .failure-management.buying-sheet .buying-sheet__data-rows {
  background: #1f1f1f;
}

html[data-mainview-theme="dark"] .failure-management.buying-sheet .buying-sheet__filter-row {
  border-top-color: #303030;
}

html[data-mainview-theme="dark"] .failure-management.buying-sheet .buying-sheet__filter-add-row-label {
  color: rgba(255, 255, 255, 0.65);
  border-right-color: #434343;
}

html[data-mainview-theme="dark"]
  .failure-management.buying-sheet
  .buying-sheet__filter-row
  .buying-sheet__filter-input,
html[data-mainview-theme="dark"]
  .failure-management.buying-sheet
  .buying-sheet__filter-row
  .ant-input-affix-wrapper,
html[data-mainview-theme="dark"]
  .failure-management.buying-sheet
  .buying-sheet__filter-row
  .ant-select
  .ant-select-selector {
  background-color: #141414 !important;
  border-color: #434343 !important;
  color: rgba(255, 255, 255, 0.88) !important;
}

html[data-mainview-theme="dark"] .failure-management.buying-sheet .buying-sheet__data-row {
  background: #1f1f1f;
  border-top-color: #303030;
}

html[data-mainview-theme="dark"] .failure-management.buying-sheet .buying-sheet__data-row:last-child {
  border-bottom-color: #303030;
}

html[data-mainview-theme="dark"] .failure-management.buying-sheet .buying-sheet__data-row--editing {
  background: #262626 !important;
}

html[data-mainview-theme="dark"] .failure-management.buying-sheet .buying-sheet__table-loading-slot {
  background: #1f1f1f;
  border-top-color: #303030;
  color: rgba(255, 255, 255, 0.45);
}

html[data-mainview-theme="dark"]
  .failure-management.buying-sheet
  .buying-sheet__data-row--editing
  .buying-sheet__edit-input.ant-input,
html[data-mainview-theme="dark"]
  .failure-management.buying-sheet
  .buying-sheet__data-row--editing
  .buying-sheet__edit-input.ant-input-affix-wrapper,
html[data-mainview-theme="dark"]
  .failure-management.buying-sheet
  .buying-sheet__data-row--editing
  .buying-sheet__edit-input.ant-select
  .ant-select-selector,
html[data-mainview-theme="dark"] .failure-management .failure-management__edit-details.ant-input {
  background: #141414 !important;
  border-color: #434343 !important;
  color: rgba(255, 255, 255, 0.88) !important;
}

html[data-mainview-theme="dark"] .failure-management__api-hint {
  color: rgba(255, 255, 255, 0.45);
}

html[data-mainview-theme="dark"] .failure-management .fm-control,
html[data-mainview-theme="dark"] .failure-management .fm-btn,
html[data-mainview-theme="dark"] .failure-management .fm-details-popout-panel {
  background: #1f1f1f;
  border-color: #434343;
  color: rgba(255, 255, 255, 0.88);
}

html[data-mainview-theme="dark"] .failure-management .fm-btn {
  color: rgba(255, 255, 255, 0.65);
}

html[data-mainview-theme="dark"] .failure-management .fm-control::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

html[data-mainview-theme="dark"] .failure-management .fm-details-popout-title {
  color: rgba(255, 255, 255, 0.45);
}

html[data-mainview-theme="dark"] .failure-management .fm-failure-detail,
html[data-mainview-theme="dark"] .failure-management .fm-failure-name {
  color: rgba(255, 255, 255, 0.88);
}

html[data-mainview-theme="dark"] .failure-management .fm-pill {
  border-color: #434343;
  background: #303030;
  color: rgba(255, 255, 255, 0.88);
}

html[data-mainview-theme="dark"] .failure-management .fm-pill-needed {
  border-color: rgba(250, 173, 20, 0.35);
  background: rgba(250, 173, 20, 0.12);
  color: #ffc069;
}

html[data-mainview-theme="dark"] .failure-management .fm-pill-not-needed {
  border-color: rgba(82, 196, 26, 0.35);
  background: rgba(82, 196, 26, 0.12);
  color: #95de64;
}

html[data-mainview-theme="dark"] .failure-management .fm-empty-state {
  background: #1f1f1f;
  border-top-color: #303030;
}

html[data-mainview-theme="dark"] .failure-management .fm-empty-title {
  color: rgba(255, 255, 255, 0.88);
}

html[data-mainview-theme="dark"] .failure-management .fm-empty-copy {
  color: rgba(255, 255, 255, 0.45);
}

html[data-mainview-theme="dark"] .failure-management .fm-edit-row-btn.ant-btn {
  color: #69b1ff !important;
}

html[data-mainview-theme="dark"] .failure-management .fm-delete-row-btn.ant-btn {
  color: #ff7875 !important;
}

html[data-mainview-theme="dark"]
  .failure-management
  .buying-sheet__data-row--editing
  .fm-edit-row-btn.ant-btn-primary {
  border-color: #389e0d !important;
  background: #389e0d !important;
  color: #fff !important;
}

html[data-mainview-theme="dark"]
  .failure-management
  .buying-sheet__data-row--editing
  .fm-delete-row-btn.ant-btn {
  border-color: #434343 !important;
  background: #1f1f1f !important;
  color: #ff7875 !important;
}
.buyer-detail-drawer-root .ant-drawer-content {
  background: #eef2f7;
}

.buyer-detail-drawer__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 20px 18px;
  background: #0f172a;
  color: #ffffff;
}

.buyer-detail-drawer__title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.buyer-detail-drawer__subtitle {
  margin: 6px 0 0;
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.4;
}

.buyer-detail-drawer__close {
  appearance: none;
  border: none;
  background: transparent;
  color: #94a3b8;
  font-size: 16px;
  line-height: 1;
  padding: 4px;
  cursor: pointer;
  flex-shrink: 0;
}

.buyer-detail-drawer__close:hover {
  color: #ffffff;
}

.buyer-detail-drawer__body {
  padding: 18px 20px 24px;
}

.buyer-detail-drawer__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}

.buyer-detail-drawer__stat {
  background: #ffffff;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  padding: 14px 14px 12px;
}

.buyer-detail-drawer__stat-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #64748b;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.buyer-detail-drawer__stat-value {
  display: block;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0f172a;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.buyer-detail-drawer__stat--denied .buyer-detail-drawer__stat-label,
.buyer-detail-drawer__stat--denied .buyer-detail-drawer__stat-value {
  color: #ea580c;
}

.buyer-detail-drawer__success {
  margin-bottom: 18px;
}

.buyer-detail-drawer__success-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #64748b;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.buyer-detail-drawer__success-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.buyer-detail-drawer__success-track {
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: #dbeafe;
  overflow: hidden;
}

.buyer-detail-drawer__success-bar {
  height: 100%;
  border-radius: 999px;
}

.buyer-detail-drawer__success-pct {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
  min-width: 36px;
  text-align: right;
}

.buyer-detail-drawer__note-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #64748b;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.buyer-detail-drawer__note-text {
  margin: 0;
  padding: 12px 14px;
  background: #dbeafe;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  font-family: "IBM Plex Mono", "SF Mono", ui-monospace, monospace;
  font-size: 11px;
  line-height: 1.55;
  color: #334155;
}
.buyers-tab__header {
  margin-bottom: 14px;
}

.buyers-tab__title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.buyers-tab__lead {
  margin: 4px 0 0;
  font-size: 12px;
  color: #64748b;
}

.buyers-tab__kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.buyers-tab--loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}

.buyers-table-wrap {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
}

.buyers-table-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
  color: #ffffff;
}

.buyers-table-banner__summary {
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.buyers-table-banner__summary strong {
  font-weight: 700;
}

.buyers-table-banner__dot {
  opacity: 0.75;
  margin: 0 4px;
}

.buyers-table-banner__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.buyers-table-banner__filter {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.95);
  color: #0f172a;
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 6px;
  min-width: 160px;
  max-width: 220px;
}

.buyers-table-banner__filter::placeholder {
  color: #94a3b8;
}

.buyers-table-banner__filter:focus {
  outline: 2px solid rgba(255, 255, 255, 0.6);
  outline-offset: 1px;
}

.buyers-table-banner__export {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
}

.buyers-table-banner__export:hover {
  background: rgba(255, 255, 255, 0.2);
}

.buyers-table-scroll {
  overflow-x: auto;
  scrollbar-gutter: stable;
}

.buyers-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
  font-size: 12px;
  table-layout: fixed;
}

.buyers-table__col-rank {
  width: 40px;
}

.buyers-table__col-buyer {
  width: 22%;
}

.buyers-table__col-shows {
  width: 7%;
}

.buyers-table__col-num {
  width: 10%;
}

.buyers-table__col-rate {
  width: 14%;
}

.buyers-table thead th {
  padding: 0;
  text-align: left;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #475569;
  text-transform: uppercase;
  border-bottom: 1px solid #dbeafe;
  background: #eff6ff;
  white-space: nowrap;
}

.buyers-table__rank {
  padding: 10px 8px 10px 12px !important;
  color: #94a3b8;
  font-variant-numeric: tabular-nums;
}

.buyers-table thead th.buyers-table__num,
.buyers-table thead th.buyers-table__rate {
  text-align: right;
}

.buyers-table__sort-btn {
  appearance: none;
  border: none;
  background: transparent;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  padding: 10px 12px;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-transform: uppercase;
}

.buyers-table__sort-btn:hover {
  color: #1e40af;
}

.buyers-table__sort-icon {
  font-size: 10px;
  color: #2563eb;
}

.buyers-table__sort-icon--idle {
  color: #94a3b8;
  font-size: 9px;
}

.buyers-table tbody td {
  padding: 10px 12px;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
  vertical-align: middle;
  line-height: 1.4;
}

.buyers-table tbody tr:last-child td {
  border-bottom: none;
}

.buyers-table__row {
  cursor: pointer;
}

.buyers-table__row:hover {
  background: #f8fafc;
}

.buyers-table__buyer {
  font-weight: 500;
  color: #0f172a;
}

.buyers-table__num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.buyers-table__strong {
  font-weight: 700;
  color: #0f172a;
}

.buyers-table__denied {
  color: #dc2626 !important;
  font-weight: 600;
}

.buyers-table__rate {
  width: 120px;
  min-width: 120px;
}

.buyers-table__empty {
  text-align: center;
  padding: 32px 16px !important;
  color: #64748b;
}

@media (max-width: 1280px) {
  .buyers-tab__kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .buyers-table-banner {
    flex-direction: column;
    align-items: stretch;
  }

  .buyers-table-banner__actions {
    width: 100%;
  }

  .buyers-table-banner__filter {
    flex: 1;
    max-width: none;
  }
}

@media (max-width: 640px) {
  .buyers-tab__kpi-grid {
    grid-template-columns: 1fr;
  }
}
.denials-tab__header {
  margin-bottom: 14px;
}

.denials-tab--loading {
  display: flex;
  justify-content: center;
  padding: 48px 0;
}

.denials-tab__title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.denials-tab__lead {
  margin: 4px 0 0;
  font-size: 12px;
  color: #64748b;
  max-width: 720px;
}

.denials-tab__kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.denials-tab__panels-top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 1fr);
  gap: 16px;
  margin-bottom: 16px;
  align-items: start;
}

.denials-panel {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
}

.denials-panel--recent {
  margin-bottom: 0;
}

.denials-panel__header {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 10px 14px;
  background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
  color: #ffffff;
}

.denials-panel__title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.denials-panel__subtitle {
  font-size: 11px;
  opacity: 0.9;
}

.denials-panel__body {
  overflow-x: auto;
}

.denials-table-scroll {
  overflow-x: auto;
  scrollbar-gutter: stable;
}

.denials-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.denials-table thead th {
  padding: 10px 12px;
  text-align: left;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #475569;
  text-transform: uppercase;
  border-bottom: 1px solid #dbeafe;
  background: #eff6ff;
  white-space: nowrap;
}

.denials-table thead th.denials-table__num,
.denials-table thead th.denials-table__share {
  text-align: right;
}

.denials-table tbody td {
  padding: 10px 12px;
  border-bottom: 1px solid #fce7f3;
  color: #334155;
  vertical-align: middle;
}

.denials-table--reasons tbody tr,
.denials-table--recent tbody tr {
  background: #fff1f2;
}

.denials-table--buyers tbody tr {
  background: #ffffff;
}

.denials-table--buyers tbody td {
  border-bottom-color: #f1f5f9;
}

.denials-table tbody tr:last-child td {
  border-bottom: none;
}

.denials-table__reason {
  color: #0f172a;
  font-weight: 500;
}

.denials-table__buyer {
  font-weight: 500;
  color: #0f172a;
}

.denials-table__num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.denials-table__denied-count {
  color: #dc2626;
  font-weight: 700;
}

.denials-table__share {
  width: 120px;
  min-width: 120px;
}

.denials-table__share-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.denials-table__share-pct {
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #475569;
  min-width: 28px;
  text-align: right;
}

.denials-table__share-bar {
  flex: 1;
  min-width: 48px;
  max-width: 56px;
  height: 6px;
  border-radius: 999px;
  background: #fecdd3;
  overflow: hidden;
}

.denials-table__share-fill {
  height: 100%;
  border-radius: 999px;
}

.denials-table__share-fill--red {
  background: #ef4444;
}

.denials-table__when {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.denials-table__tour {
  font-weight: 500;
  color: #0f172a;
}

.denials-table__show {
  min-width: 140px;
}

.denials-table__show-title {
  color: #0f172a;
  font-weight: 600;
  white-space: nowrap;
}

.denials-table__show-venue {
  margin-top: 2px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.2;
}

.denials-table__ml {
  color: #2563eb;
  font-weight: 600;
  font-family: "IBM Plex Mono", "SF Mono", ui-monospace, monospace;
  font-size: 11px;
  white-space: nowrap;
}

.denials-table--recent {
  min-width: 860px;
}

.denials-table__empty {
  text-align: center;
  padding: 32px 16px !important;
  color: #64748b;
  background: #ffffff !important;
}

@media (max-width: 960px) {
  .denials-tab__kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .denials-tab__panels-top {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .denials-tab__kpi-grid {
    grid-template-columns: 1fr;
  }
}
.ml-utilization-tab__header {
  margin-bottom: 14px;
}

.ml-utilization-tab--loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}

.ml-utilization-tab__title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.ml-utilization-tab__lead {
  margin: 4px 0 0;
  font-size: 12px;
  color: #64748b;
  max-width: 720px;
}

.ml-utilization-tab__kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.ml-utilization-tab__panels {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(260px, 1fr);
  gap: 16px;
  align-items: start;
}

.ml-ranked-table-wrap,
.ml-families-panel {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
}

.ml-ranked-table-banner,
.ml-families-panel__header {
  min-height: 40px;
}

.ml-panel-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
  color: #ffffff;
}

.ml-families-panel__header {
  justify-content: flex-start;
}

.ml-panel-banner__title-block {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.ml-panel-banner__summary {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ml-panel-banner__summary strong {
  font-weight: 700;
}

.ml-panel-banner__title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ml-panel-banner__subtitle {
  font-size: 11px;
  font-weight: 500;
  opacity: 0.9;
  text-transform: none;
}

.ml-panel-banner__dot {
  opacity: 0.75;
  margin: 0 4px;
}

.ml-panel-banner__export {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.ml-panel-banner__export:hover {
  background: rgba(255, 255, 255, 0.2);
}

.ml-ranked-table-scroll,
.ml-families-panel__body {
  overflow-x: auto;
  scrollbar-gutter: stable;
}

.ml-ranked-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 12px;
  table-layout: fixed;
}

.ml-families-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.ml-ranked-table__col-ml {
  width: 14%;
}

.ml-ranked-table__col-num {
  width: 11%;
}

.ml-ranked-table__col-rate {
  width: 14%;
}

.ml-ranked-table thead th,
.ml-families-table thead th {
  padding: 10px 12px;
  text-align: left;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #475569;
  text-transform: uppercase;
  border-bottom: 1px solid #dbeafe;
  background: #eff6ff;
  white-space: nowrap;
  vertical-align: middle;
}

.ml-ranked-table thead th.ml-ranked-table__num,
.ml-ranked-table thead th.ml-ranked-table__rate,
.ml-families-table thead th.ml-families-table__num {
  text-align: right;
}

.ml-ranked-table__sort-btn {
  appearance: none;
  border: none;
  background: transparent;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-transform: uppercase;
}

.ml-ranked-table__sort-btn:hover {
  color: #1e40af;
}

.ml-ranked-table__sort-icon {
  font-size: 10px;
  color: #2563eb;
}

.ml-ranked-table tbody td,
.ml-families-table tbody td {
  padding: 10px 12px;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
  vertical-align: middle;
}

.ml-ranked-table tbody tr:nth-child(even),
.ml-families-table tbody tr:nth-child(even) {
  background: #f8fafc;
}

.ml-ranked-table tbody tr:last-child td,
.ml-families-table tbody tr:last-child td {
  border-bottom: none;
}

.ml-ranked-table__ml,
.ml-families-table__prefix {
  color: #2563eb;
  font-weight: 600;
  font-family: "IBM Plex Mono", "SF Mono", ui-monospace, monospace;
  font-size: 11px;
}

.ml-ranked-table__num,
.ml-families-table__num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.ml-ranked-table__strong {
  font-weight: 700;
  color: #0f172a;
}

.ml-ranked-table__denied,
.ml-families-table__denied {
  color: #dc2626 !important;
  font-weight: 600;
}

.ml-ranked-table__rate {
  width: 120px;
  min-width: 120px;
}

.ml-ranked-table__empty,
.ml-families-table__empty {
  text-align: center;
  padding: 32px 16px !important;
  color: #64748b;
}

@media (max-width: 1280px) {
  .ml-utilization-tab__kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .ml-utilization-tab__panels {
    grid-template-columns: 1fr;
  }

  .ml-utilization-tab__kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .ml-utilization-tab__kpi-grid {
    grid-template-columns: 1fr;
  }
}
.ticket-volume-tab__header {
  margin-bottom: 14px;
}

.ticket-volume-tab--loading {
  display: flex;
  justify-content: center;
  padding: 48px 0;
}

.ticket-volume-tab__title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.ticket-volume-tab__lead {
  margin: 4px 0 0;
  font-size: 12px;
  color: #64748b;
}

.ticket-volume-tab__kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.ticket-volume-breakdown {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
}

.ticket-volume-breakdown__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
  color: #ffffff;
}

.ticket-volume-breakdown__title-block {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.ticket-volume-breakdown__title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ticket-volume-breakdown__subtitle {
  font-size: 11px;
  opacity: 0.9;
}

.ticket-volume-breakdown__toggle {
  display: inline-flex;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}

.ticket-volume-breakdown__toggle-btn {
  appearance: none;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 5px 12px;
  cursor: pointer;
  text-transform: uppercase;
}

.ticket-volume-breakdown__toggle-btn + .ticket-volume-breakdown__toggle-btn {
  border-left: 1px solid rgba(255, 255, 255, 0.35);
}

.ticket-volume-breakdown__toggle-btn--active {
  background: #ffffff;
  color: #2563eb;
}

.ticket-volume-chart__body {
  padding: 8px 12px 0;
  border-bottom: 1px solid #e2e8f0;
}

.ticket-volume-table-scroll {
  overflow-x: auto;
  scrollbar-gutter: stable;
}

.ticket-volume-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 12px;
  table-layout: fixed;
}

.ticket-volume-table thead th {
  padding: 10px 12px;
  text-align: left;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #475569;
  text-transform: uppercase;
  border-bottom: 1px solid #dbeafe;
  background: #eff6ff;
  white-space: nowrap;
}

.ticket-volume-table thead th.ticket-volume-table__num,
.ticket-volume-table thead th.ticket-volume-table__share {
  text-align: right;
}

.ticket-volume-table tbody td {
  padding: 10px 12px;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
  vertical-align: middle;
}

.ticket-volume-table tbody tr:last-child td {
  border-bottom: none;
}

.ticket-volume-table__label {
  font-weight: 500;
  color: #0f172a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ticket-volume-table__num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.ticket-volume-table__strong {
  font-weight: 700;
  color: #0f172a;
}

.ticket-volume-table__denied {
  color: #dc2626 !important;
  font-weight: 600;
}

.ticket-volume-table__share {
  width: 120px;
  min-width: 120px;
}

.ticket-volume-table__share-bar {
  height: 6px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.ticket-volume-table__share-fill {
  height: 100%;
  border-radius: 999px;
  background: #3b82f6;
}

.ticket-volume-table__empty {
  text-align: center;
  padding: 32px 16px !important;
  color: #64748b;
}

@media (max-width: 960px) {
  .ticket-volume-tab__kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ticket-volume-breakdown__header {
    flex-direction: column;
    align-items: stretch;
  }

  .ticket-volume-breakdown__toggle {
    align-self: flex-end;
  }
}

@media (max-width: 640px) {
  .ticket-volume-tab__kpi-grid {
    grid-template-columns: 1fr;
  }
}
.tours-shows-tab__header {
  margin-bottom: 14px;
}

.tours-shows-tab__title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.tours-shows-tab__lead {
  margin: 4px 0 0;
  font-size: 12px;
  color: #64748b;
}

.tours-shows-table-wrap {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
}

.tours-shows-table-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
  color: #ffffff;
}

.tours-shows-table-banner__summary {
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tours-shows-table-banner__summary strong {
  font-weight: 700;
}

.tours-shows-table-banner__dot {
  opacity: 0.75;
  margin: 0 4px;
}

.tours-shows-table-banner__export {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
}

.tours-shows-table-banner__export:hover {
  background: rgba(255, 255, 255, 0.2);
}

.tours-shows-table-scroll {
  overflow-x: auto;
  scrollbar-gutter: stable;
}

.tours-shows-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  font-size: 12px;
  table-layout: fixed;
}

.tours-shows-table__col-expand {
  width: 36px;
}

.tours-shows-table__col-date {
  width: 9%;
}

.tours-shows-table__col-tour {
  width: 16%;
}

.tours-shows-table__col-captain {
  width: 11%;
}

.tours-shows-table__col-team {
  width: 11%;
}

.tours-shows-table__col-shows {
  width: 6%;
}

.tours-shows-table__col-num {
  width: 9%;
}

.tours-shows-table__col-fill {
  width: 12%;
}

.tours-shows-table thead th {
  padding: 0;
  text-align: left;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #475569;
  text-transform: uppercase;
  border-bottom: 1px solid #dbeafe;
  background: #eff6ff;
  white-space: nowrap;
}

.tours-shows-table__sort-btn {
  appearance: none;
  border: none;
  background: transparent;
  width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 10px 12px;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-transform: uppercase;
}

.tours-shows-table__sort-btn:hover {
  color: #1e40af;
}

.tours-shows-table__sort-icon {
  font-size: 10px;
  color: #2563eb;
}

.tours-shows-table__sort-icon--idle {
  color: #94a3b8;
  font-size: 9px;
}

.tours-shows-table tbody td {
  padding: 11px 12px;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
  vertical-align: middle;
  line-height: 1.4;
}

.tours-shows-table__expand-col {
  width: 36px;
  min-width: 36px;
  padding-left: 10px !important;
  padding-right: 4px !important;
}

.tours-shows-table__tour-row {
  cursor: pointer;
}

.tours-shows-table__tour-row:hover {
  background: #f8fafc;
}

.tours-shows-table__tour-row--expanded td {
  border-bottom: none;
  background: #eff6ff;
}

.tours-shows-table__tour-row--expanded:hover td {
  background: #e0edff;
}

.tours-shows-table__tour-row--expanded .tours-shows-table__expand-col {
  box-shadow: inset 3px 0 0 #2563eb;
}

.tours-shows-table__tour-row--expanded .tours-shows-table__expand-icon {
  color: #2563eb;
}

.tours-shows-table__tour-row--expanded .tours-shows-table__tour-name {
  color: #1d4ed8;
}

.tours-shows-table__expand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 11px;
}

.tours-shows-table__show-count {
  color: #2563eb;
  font-weight: 600;
}

.tours-shows-fill__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  flex-shrink: 0;
}

.tours-shows-fill--percent .tours-shows-fill__label {
  min-width: 36px;
}

/* ——— Show sub-rows (same table grid as tour rows) ——— */
.tour-shows-subtable__header-row .tour-shows-subtable__head {
  padding: 10px 12px;
  text-align: left;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #64748b;
  text-transform: uppercase;
  background: #e3e8ef;
  border-bottom: 1px solid #d5dce6;
  white-space: nowrap;
  vertical-align: middle;
}

.tour-shows-subtable__header-row .tour-shows-subtable__head.tours-shows-table__num,
.tour-shows-subtable__header-row .tour-shows-subtable__head.tours-shows-table__fill {
  text-align: right;
}

.tour-shows-subtable__data-row td {
  padding: 11px 12px;
  border-bottom: 1px solid #dde3ea;
  color: #334155;
  vertical-align: middle;
  line-height: 1.4;
  background: #eef1f6;
  font-size: 12px;
}

.tour-shows-subtable__data-row:last-child td {
  border-bottom: 1px solid #dde3ea;
}

.tour-shows-subtable__show-col {
  padding-left: 10px;
}

.tour-shows-subtable__show {
  font-weight: 600;
  color: #0f172a;
}

.tour-shows-subtable__date {
  white-space: nowrap;
}

.tour-shows-subtable__venue {
  color: #64748b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tour-shows-subtable__slot {
  color: #475569;
  white-space: nowrap;
}

.tour-shows-subtable__bought {
  color: #2563eb;
  font-weight: 700;
}

.tour-shows-subtable__data-row .tours-shows-fill__track {
  flex: 0 0 52px;
  max-width: 52px;
  min-width: 52px;
}

.tours-shows-table__num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.tours-shows-table thead th.tours-shows-table__num .tours-shows-table__sort-btn {
  justify-content: flex-end;
}

.tours-shows-table__empty {
  text-align: center;
  padding: 32px 16px !important;
  color: #64748b;
}

.tours-shows-table__tour-name {
  font-weight: 600;
  color: #0f172a;
}

.tours-shows-table__team-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.tours-shows-table__strong {
  font-weight: 700;
  color: #0f172a;
}

.tours-shows-table__denied {
  color: #dc2626 !important;
  font-weight: 600;
}

.tours-shows-table__fill {
  min-width: 120px;
}

.tours-shows-fill {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
}

.tours-shows-fill__track {
  flex: 1;
  min-width: 48px;
  max-width: 56px;
  height: 6px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.tours-shows-fill__bar {
  height: 100%;
  border-radius: 999px;
}

.tours-shows-fill__label {
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #475569;
  white-space: nowrap;
}
.onsales-report-page {
  min-height: 100vh;
  background: #f1f5f9;
  color: #0f172a;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ——— Top bar ——— */
.onsales-report-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 20px;
  background: #121826;
  color: #e2e8f0;
  font-family: "IBM Plex Mono", "SF Mono", ui-monospace, monospace;
}

.onsales-report-topbar__left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.onsales-report-topbar__logo {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.08em;
  line-height: 1;
  font-family: Inter, system-ui, sans-serif;
}

.onsales-report-topbar__logo-ticket {
  color: #ffffff;
}

.onsales-report-topbar__logo-boat {
  color: #5da2d5;
}

.onsales-report-topbar__crumb {
  color: #94a3b8;
  font-size: 12px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.onsales-report-topbar__crumb-dot {
  color: #64748b;
}

.onsales-report-topbar__right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 16px;
}

.onsales-report-topbar__login {
  font-size: 12px;
  color: #cbd5e1;
  font-family: Inter, system-ui, sans-serif;
}

.onsales-report-topbar__login strong {
  color: #f8fafc;
  font-weight: 600;
}

.onsales-report-topbar__role-badge {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 2px 10px;
  border-radius: 4px;
  font-family: Inter, system-ui, sans-serif;
}

.onsales-report-topbar__role-badge--admin,
.onsales-report-topbar__role-badge--testing {
  background: #ea580c !important;
  color: #fff !important;
}

.onsales-report-topbar__role-badge--captain {
  background: #2563eb !important;
  color: #fff !important;
}

.onsales-report-topbar__role-badge--buyer {
  background: #059669 !important;
  color: #fff !important;
}

/* ——— Subheader + tabs ——— */
.onsales-report-page__subheader {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: end;
  gap: 12px 20px;
  padding: 18px 20px 0;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
}

.onsales-report-page__title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.onsales-report-page__subtitle {
  margin: 2px 0 0;
  font-size: 12px;
  color: #64748b;
}

.onsales-report-tabs {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  flex-wrap: wrap;
  min-width: 0;
}

.onsales-report-tabs__tab {
  appearance: none;
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 13px;
  font-weight: 500;
  padding: 10px 14px 12px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.onsales-report-tabs__tab:hover {
  color: #334155;
}

.onsales-report-tabs__tab--active {
  color: #2563eb;
  border-bottom-color: #2563eb;
  font-weight: 600;
}

.onsales-report-page__export {
  align-self: center;
  margin-bottom: 8px;
}

/* ——— Filters ——— */
.onsales-report-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 20px;
  padding: 12px 20px;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
}

.onsales-report-filters__group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.onsales-report-filters__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #64748b;
  text-transform: uppercase;
}

.onsales-report-filters__range {
  display: inline-flex;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  background: #f8fafc;
}

.onsales-report-filters__range-btn {
  appearance: none;
  border: none;
  background: transparent;
  color: #475569;
  font-size: 12px;
  font-weight: 500;
  padding: 6px 12px;
  cursor: pointer;
}

.onsales-report-filters__range-btn + .onsales-report-filters__range-btn {
  border-left: 1px solid #e2e8f0;
}

.onsales-report-filters__range-btn--active {
  background: #2563eb;
  color: #ffffff;
}

.onsales-report-filters__select {
  min-width: 140px;
}

.onsales-report-filters__aside {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.onsales-report-filters__hint {
  font-size: 11px;
  color: #94a3b8;
}

.onsales-report-filters__clear {
  color: #64748b !important;
  font-size: 12px;
}

/* ——— Content ——— */
.onsales-report-page__content {
  padding: 20px;
}

.onsales-report-page__loading {
  display: flex;
  justify-content: center;
  padding: 64px 0;
}

.onsales-report-table__row--clickable {
  cursor: pointer;
}

.onsales-report-table__row--clickable:hover td {
  background: #f8fafc;
}

.onsales-report-buyer-drawer__lead {
  margin: 0 0 16px;
  color: #64748b;
}

.onsales-report-buyer-drawer__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.onsales-report-buyer-drawer__stats dt {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
}

.onsales-report-buyer-drawer__stats dd {
  margin: 4px 0 0;
  font-size: 18px;
  font-weight: 600;
  color: #0f172a;
}

/* ——— Overview ——— */
.onsales-report-overview__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.onsales-report-overview__title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.onsales-report-overview__lead {
  margin: 4px 0 0;
  font-size: 13px;
  color: #64748b;
}

.onsales-report-overview__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  font-size: 11px;
  color: #94a3b8;
  text-align: right;
}

.onsales-report-overview__meta-count {
  color: #64748b;
  font-weight: 500;
}

/* ——— KPI cards ——— */
.onsales-report-kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.onsales-report-kpi {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px 14px 12px;
  border-left-width: 4px;
  min-width: 0;
}

.onsales-report-kpi--purple {
  border-left-color: #8b5cf6;
}

.onsales-report-kpi--green {
  border-left-color: #22c55e;
}

.onsales-report-kpi--amber {
  border-left-color: #f59e0b;
}

.onsales-report-kpi--blue {
  border-left-color: #3b82f6;
}

.onsales-report-kpi--orange {
  border-left-color: #f97316;
}

.onsales-report-kpi--rose {
  border-left-color: #f43f5e;
}

.onsales-report-kpi__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #64748b;
  margin-bottom: 8px;
}

.onsales-report-kpi__value-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
}

.onsales-report-kpi__value {
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}

.onsales-report-kpi__subtext {
  margin-top: 6px;
  font-size: 11px;
  color: #94a3b8;
}

/* ——— Charts + tables grid ——— */
.onsales-report-overview__charts {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 16px;
  align-items: start;
}

.onsales-report-chart {
  grid-column: 1;
  grid-row: 1;
}

.onsales-report-ml {
  grid-column: 2;
  grid-row: 1;
}

.onsales-report-top-buyers {
  grid-column: 1;
  grid-row: 2;
}

.onsales-report-top-shows {
  grid-column: 2;
  grid-row: 2;
}

.onsales-report-chart,
.onsales-report-ml,
.onsales-report-table-panel {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
}

.onsales-report-chart__header,
.onsales-report-ml__header {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 10px 14px;
  background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
  color: #ffffff;
}

.onsales-report-chart__title,
.onsales-report-ml__title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.onsales-report-chart__subtitle,
.onsales-report-ml__subtitle {
  font-size: 11px;
  opacity: 0.9;
}

.onsales-report-chart__body {
  padding: 8px 8px 4px;
}

/* ——— ML utilization ——— */
.onsales-report-ml__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 14px;
}

.onsales-report-ml__stat {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px;
}

.onsales-report-ml__stat-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #64748b;
  margin-bottom: 6px;
}

.onsales-report-ml__stat-value {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* ——— Top buyers / top shows tables ——— */
.onsales-report-table-panel__header {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 10px 14px;
  background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
  color: #ffffff;
}

.onsales-report-table-panel__title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.onsales-report-table-panel__subtitle {
  font-size: 11px;
  opacity: 0.9;
}

.onsales-report-table-panel__body {
  overflow-x: auto;
}

.onsales-report-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.onsales-report-table thead th {
  padding: 10px 12px;
  text-align: left;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #64748b;
  text-transform: uppercase;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
  white-space: nowrap;
}

.onsales-report-table tbody td {
  padding: 10px 12px;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
  vertical-align: middle;
}

.onsales-report-table tbody tr:last-child td {
  border-bottom: none;
}

.onsales-report-table__num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.onsales-report-table thead th.onsales-report-table__num {
  text-align: right;
}

.onsales-report-table__rate {
  width: 108px;
  min-width: 108px;
}

.onsales-report-table__primary {
  font-weight: 500;
  color: #0f172a;
}

.onsales-report-table__strong {
  font-weight: 700;
  color: #0f172a;
}

.onsales-report-table__show-title {
  font-weight: 600;
  color: #0f172a;
  line-height: 1.3;
}

.onsales-report-table__show-sub {
  margin-top: 2px;
  font-size: 11px;
  color: #64748b;
  line-height: 1.3;
}

.onsales-report-rate {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
}

.onsales-report-rate__label {
  min-width: 32px;
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #475569;
  text-align: right;
}

.onsales-report-rate__track {
  flex: 1;
  min-width: 48px;
  max-width: 56px;
  height: 6px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.onsales-report-rate__fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.2s ease;
}

/* ——— Placeholder tabs ——— */
.onsales-report-placeholder {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 32px 24px;
}

.onsales-report-placeholder__title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
}

.onsales-report-placeholder__lead {
  margin: 0;
  font-size: 14px;
  color: #64748b;
}

/* ——— Responsive ——— */
@media (max-width: 1280px) {
  .onsales-report-kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .onsales-report-page__subheader {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .onsales-report-tabs {
    order: 2;
  }

  .onsales-report-page__export {
    order: 3;
    justify-self: start;
    margin-bottom: 0;
  }

  .onsales-report-overview__charts {
    grid-template-columns: 1fr;
  }

  .onsales-report-chart,
  .onsales-report-ml,
  .onsales-report-top-buyers,
  .onsales-report-top-shows {
    grid-column: 1;
    grid-row: auto;
  }

  .onsales-report-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .onsales-report-kpi-grid {
    grid-template-columns: 1fr;
  }

  .onsales-report-filters__aside {
    margin-left: 0;
    width: 100%;
    justify-content: space-between;
  }
}
.run-slots-subtable__header-row .run-slots-subtable__slot-head {
  padding-left: 28px;
}

.run-slots-subtable__slot-label {
  padding-left: 28px;
  color: #1e40af;
  font-weight: 600;
}

.run-slots-subtable__slot-label::before {
  content: "↳";
  margin-right: 8px;
  color: #94a3b8;
  font-weight: 400;
}

.run-slots-subtable__empty-row td {
  background: #eef1f6;
  border-bottom: 1px solid #dde3ea;
}

.run-slots-subtable__empty {
  padding: 14px 28px !important;
  color: #64748b;
  font-size: 12px;
  font-style: italic;
}
* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

#root {
  min-height: 100%;
  width: 100%;
  max-width: 100%;
}

body {
  margin: 0;
  width: 100%;
  min-width: 320px;
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, Segoe UI, sans-serif;
  background: #f3f4f6;
  overflow-x: hidden;
}
