/* ============================================================================
   BigDataManager.com (v0.10.1) — 1:1 Light Material UI Stylesheet
   Matches gallery_073.mp4 (00:00–00:38) and private reference screenshots
   ============================================================================ */

:root {
  color-scheme: light;
  --bg-canvas: #f7f8fa;
  --bg-card: #ffffff;
  --border-card: #e5e7eb;
  --border-subtle: #edf0f3;
  --text-main: #212529;
  --text-secondary: #6c757d;
  --text-muted: #9ca3af;
  --primary-blue: #1976d2;
  --primary-blue-hover: #1565c0;
  --primary-blue-tint: #e8f1fb;
  --nav-blue-bg: #eaf2f8;
  --nav-blue-active: #2b79c2;
  --nav-purple-bg: #eeedfa;
  --nav-purple-active: #6d5dfc;
  --nav-gray-bg: #f1f3f5;
  --nav-gray-active: #495057;
  --crumb-bg: #f1f4f8;
  --crumb-active-bg: #e6ebf2;
  --chip-blue-bg: #e3f2fd;
  --chip-blue-text: #1565c0;
  --status-green: #16a34a;
  --status-green-bg: #dcfce7;
  --status-red: #dc2626;
  --status-red-bg: #fee2e2;
  --status-amber: #d97706;
  --status-amber-bg: #fef3c7;
  --shadow-card: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-modal: 0 12px 32px rgba(15, 23, 42, 0.22);
  --shadow-menu: 0 6px 20px rgba(15, 23, 42, 0.16);
  --font-sans: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', Menlo, Monaco, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--bg-canvas);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

/* ============================================================================
   1. APP SHELL & LEFT SIDEBAR (v0.10.1 3-Group Pastel Card Navigation)
   ============================================================================ */

.app-shell {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

.sidebar {
  width: 200px;
  min-width: 200px;
  background: #ffffff;
  border-right: 1px solid var(--border-card);
  display: flex;
  flex-direction: column;
  padding: 10px 8px 8px;
  transition: width 0.16s ease, min-width 0.16s ease;
  user-select: none;
  z-index: 20;
}

.sidebar.collapsed {
  width: 52px;
  min-width: 52px;
  padding: 10px 4px 8px;
}

.sidebar.collapsed .brand-text,
.sidebar.collapsed .nav-label,
.sidebar.collapsed .nav-caret,
.sidebar.collapsed .nav-subitems,
.sidebar.collapsed .hide-text {
  display: none !important;
}

.sidebar.collapsed .nav-item {
  justify-content: center;
  padding: 8px 0;
}

.brand-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px 12px;
  cursor: pointer;
}

.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-text {
  line-height: 1.08;
}

.brand-title {
  font-size: 16px;
  font-weight: 800;
  color: #1e293b;
  letter-spacing: -0.02em;
}

.brand-subtitle {
  font-size: 12px;
  font-weight: 700;
  color: #4f46e5;
}

.brand-dot {
  color: #0ea5e9;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  overflow-y: auto;
}

.nav-group {
  border-radius: 8px;
  padding: 5px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-group-blue {
  background: var(--nav-blue-bg);
}

.nav-group-purple {
  background: var(--nav-purple-bg);
}

.nav-group-gray {
  background: var(--nav-gray-bg);
}

.nav-item {
  appearance: none;
  border: none;
  background: transparent;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border-radius: 6px;
  color: #374151;
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}

.nav-item:hover {
  background: rgba(15, 23, 42, 0.06);
}

.nav-group-blue .nav-item.active {
  background: var(--nav-blue-active);
  color: #ffffff;
  font-weight: 600;
}

.nav-group-purple .nav-item.active {
  background: var(--nav-purple-active);
  color: #ffffff;
  font-weight: 600;
}

.nav-group-gray .nav-item.active {
  background: var(--nav-gray-active);
  color: #ffffff;
  font-weight: 600;
}

.nav-icon {
  font-size: 13px;
  width: 16px;
  text-align: center;
  flex-shrink: 0;
}

.nav-caret {
  margin-left: auto;
  font-size: 11px;
  opacity: 0.7;
}

.nav-subitems {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding-left: 24px;
  margin-top: 1px;
}

.nav-subitems.collapsed {
  display: none;
}

.nav-subitem {
  appearance: none;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  padding: 5px 8px;
  border-radius: 5px;
  font-family: var(--font-sans);
  font-size: 11.5px;
  color: #4b5563;
  cursor: pointer;
}

.nav-subitem:hover {
  background: rgba(15, 23, 42, 0.06);
  color: #111827;
}

.nav-subitem.active {
  background: #ffffff;
  color: var(--primary-blue);
  font-weight: 600;
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-hide-btn {
  appearance: none;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 6px;
  color: #6b7280;
  font-size: 12px;
  cursor: pointer;
}

.sidebar-hide-btn:hover {
  background: #f3f4f6;
  color: #111827;
}

.hide-arrow {
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
}

.sidebar-version {
  font-size: 11px;
  color: #9ca3af;
  padding: 0 8px 2px;
}

/* ============================================================================
   2. TOP CHEVRON BREADCRUMB BAR (.topbar)
   ============================================================================ */

.main-area {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg-canvas);
}

.topbar {
  height: 54px;
  background: #ffffff;
  border-bottom: 1px solid var(--border-card);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 15;
}

.breadcrumb-rail {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  min-width: 0;
}

.crumb-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 14px 0 20px;
  background: var(--crumb-bg);
  color: #374151;
  font-size: 12.5px;
  font-weight: 500;
  margin-right: 6px;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%, 10px 50%);
  cursor: pointer;
  transition: background 0.12s ease;
  white-space: nowrap;
}

.crumb-pill:first-child {
  padding-left: 12px;
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%);
}

.crumb-pill:hover {
  background: #e2e8f0;
}

.crumb-pill.crumb-active {
  background: var(--crumb-active-bg);
  color: #111827;
  font-weight: 600;
}

.crumb-id-badge {
  color: #6b7280;
  font-weight: 400;
  margin-left: 2px;
}

.crumb-copy-btn {
  appearance: none;
  border: none;
  background: transparent;
  padding: 1px 3px;
  font-size: 11px;
  color: #6b7280;
  cursor: pointer;
  border-radius: 3px;
}

.crumb-copy-btn:hover {
  background: rgba(15, 23, 42, 0.08);
  color: var(--primary-blue);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.conn-indicator {
  font-size: 11px;
  color: var(--status-green);
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 12px;
  background: var(--status-green-bg);
  transition: color 0.15s ease, background 0.15s ease;
}

.conn-indicator.offline {
  color: var(--status-red);
  background: var(--status-red-bg);
}

.conn-indicator.connecting {
  color: #b45309;
  background: #fef3c7;
}

.btn-icon-subtle {
  appearance: none;
  border: 1px solid var(--border-card);
  background: #ffffff;
  color: #4b5563;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-icon-subtle:hover {
  background: #f3f4f6;
}

/* ============================================================================
   3. BUTTONS, LINKS & MATERIAL UNDERLINE INPUTS
   ============================================================================ */

.btn {
  appearance: none;
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #374151;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}

.btn:hover {
  background: #f9fafb;
  border-color: #9ca3af;
}

.btn-primary {
  background: var(--primary-blue);
  border-color: var(--primary-blue);
  color: #ffffff;
  box-shadow: 0 1px 2px rgba(25, 118, 210, 0.25);
}

.btn-primary:hover {
  background: var(--primary-blue-hover);
  border-color: var(--primary-blue-hover);
}

.btn-outline-blue {
  background: #ffffff;
  border: 1px solid #90caf9;
  color: var(--primary-blue);
}

.btn-outline-blue:hover {
  background: var(--primary-blue-tint);
}

.btn-pill-outline {
  background: #ffffff;
  border: 1px solid #90caf9;
  color: var(--primary-blue);
  border-radius: 18px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 500;
  text-transform: none;
}

.btn-pill-outline:hover {
  background: var(--primary-blue-tint);
}

.btn-text-blue {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--primary-blue);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 4px 6px;
  cursor: pointer;
  border-radius: 3px;
}

.btn-text-blue:hover {
  background: var(--primary-blue-tint);
}

.btn-text-danger {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--status-red);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  padding: 4px 6px;
  cursor: pointer;
}

.btn-sm {
  padding: 4px 10px;
  font-size: 11px;
}

/* Material Underline Inputs & Selects */
.mui-field {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 140px;
}

.mui-label {
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 400;
}

.mui-input,
.mui-select,
.form-input,
.form-select {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--text-main);
  background: transparent;
  border: none;
  border-bottom: 1px solid #cbd5e1;
  padding: 5px 2px;
  outline: none;
  transition: border-color 0.15s ease;
  width: 100%;
}

.mui-input:focus,
.mui-select:focus,
.form-input:focus,
.form-select:focus {
  border-bottom-color: var(--primary-blue);
  border-bottom-width: 2px;
  padding-bottom: 4px;
}

.form-textarea {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-main);
  background: #fafafa;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  padding: 8px 10px;
  width: 100%;
  outline: none;
}

.form-textarea:focus {
  border-color: var(--primary-blue);
  background: #ffffff;
}

/* ============================================================================
   4. WORKSPACE CANVAS, FILTER BARS, MATERIAL CARDS & TABLES
   ============================================================================ */

.view-root {
  padding: 16px 20px 36px;
  flex: 1;
}

.bdm-filter-row {
  display: flex;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.sources-filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.bdm-filter-controls {
  display: flex;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
}

.sources-today-metric-card {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 8px 18px;
  margin-left: auto;
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #cbd5e1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  outline: none;
}

.sources-today-metric-card:hover,
.sources-today-metric-card:focus-visible {
  transform: translateY(-2px);
  border-color: #6366f1;
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.18);
}

.sources-today-metric-card:active {
  transform: translateY(0);
}

.st-metric-icon {
  font-size: 24px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.st-metric-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.st-metric-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #64748b;
}

.st-metric-number {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.1;
  color: #1e293b;
  letter-spacing: -0.5px;
}

.st-metric-action {
  font-size: 11px;
  font-weight: 600;
  color: #4f46e5;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Dark mode overrides for today metric card */
body.app-dark .sources-today-metric-card,
.app-dark .sources-today-metric-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1px solid rgba(99, 102, 241, 0.35);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

body.app-dark .sources-today-metric-card:hover,
body.app-dark .sources-today-metric-card:focus-visible,
.app-dark .sources-today-metric-card:hover,
.app-dark .sources-today-metric-card:focus-visible {
  border-color: #818cf8;
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35);
}

body.app-dark .st-metric-label,
.app-dark .st-metric-label {
  color: #94a3b8;
}

body.app-dark .st-metric-number,
.app-dark .st-metric-number {
  color: #38bdf8;
  text-shadow: 0 0 12px rgba(56, 189, 248, 0.25);
}

body.app-dark .st-metric-action,
.app-dark .st-metric-action {
  color: #a5b4fc;
}

/* Sources Header Date Selector */
.sources-th-date-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
  user-select: none;
}

.sources-th-date-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary, #64748b);
  letter-spacing: 0.2px;
}

.sources-th-picker-box {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 3px 8px;
  transition: all 0.15s ease-in-out;
}

.sources-th-picker-box:hover,
.sources-th-picker-box:focus-within {
  background: #ffffff;
  border-color: #6366f1;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.15);
}

.sources-th-date-input {
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
  cursor: pointer;
  outline: none;
  padding: 0;
  margin: 0;
}

.sources-th-today-pill {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 6px;
  border-radius: 4px;
  background: #e0e7ff;
  color: #4338ca;
  line-height: 1.2;
}

.btn-sources-today-reset {
  border: none;
  background: #6366f1;
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  cursor: pointer;
  line-height: 1.2;
  transition: all 0.15s ease;
}

.btn-sources-today-reset:hover {
  background: #4f46e5;
  transform: translateY(-1px);
}

/* Dark mode overrides for Sources Header Date Selector */
body.app-dark .sources-th-date-label,
.app-dark .sources-th-date-label {
  color: #94a3b8;
}

body.app-dark .sources-th-picker-box,
.app-dark .sources-th-picker-box {
  background: rgba(30, 41, 59, 0.85);
  border-color: rgba(99, 102, 241, 0.35);
}

body.app-dark .sources-th-picker-box:hover,
body.app-dark .sources-th-picker-box:focus-within,
.app-dark .sources-th-picker-box:hover,
.app-dark .sources-th-picker-box:focus-within {
  background: rgba(30, 41, 59, 1);
  border-color: #818cf8;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.3);
}

body.app-dark .sources-th-date-input,
.app-dark .sources-th-date-input {
  color: #38bdf8;
  color-scheme: dark;
}

body.app-dark .sources-th-today-pill,
.app-dark .sources-th-today-pill {
  background: rgba(99, 102, 241, 0.25);
  color: #a5b4fc;
}

body.app-dark .btn-sources-today-reset,
.app-dark .btn-sources-today-reset {
  background: #6366f1;
  color: #ffffff;
}

body.app-dark .btn-sources-today-reset:hover,
.app-dark .btn-sources-today-reset:hover {
  background: #818cf8;
}

/* Source Leads Column & Badge Styles */
.source-leads-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.source-leads-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #1e293b;
  text-decoration: none;
  font-size: 12.5px;
  cursor: pointer;
  transition: all 0.18s ease-in-out;
  user-select: none;
}

.source-leads-badge:hover,
.source-leads-badge:focus-visible {
  background: #e2e8f0;
  border-color: #6366f1;
  color: #4f46e5;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(99, 102, 241, 0.15);
}

.source-leads-badge-num {
  font-weight: 800;
  font-size: 13.5px;
  color: #0f172a;
  letter-spacing: -0.2px;
}

.source-leads-badge-lbl {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
}

.source-leads-badge-arrow {
  font-size: 10px;
  font-weight: 700;
  color: #6366f1;
  transition: transform 0.15s ease;
}

.source-leads-badge:hover .source-leads-badge-arrow {
  transform: translateX(2px);
}

.subsource-leads-breakdown {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
  margin-top: 2px;
}

.subsource-lead-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  border-radius: 4px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #64748b;
  font-size: 11px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.subsource-lead-item:hover,
.subsource-lead-item:focus-visible {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #1e293b;
}

.subsource-lead-id {
  font-weight: 600;
  font-family: var(--font-mono, monospace);
  font-size: 10.5px;
}

.subsource-lead-count {
  font-weight: 700;
  color: #334155;
}

/* Dark mode overrides for Source Leads Column */
body.app-dark .source-leads-badge,
.app-dark .source-leads-badge {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(99, 102, 241, 0.35);
  color: #e2e8f0;
}

body.app-dark .source-leads-badge:hover,
body.app-dark .source-leads-badge:focus-visible,
.app-dark .source-leads-badge:hover,
.app-dark .source-leads-badge:focus-visible {
  background: rgba(99, 102, 241, 0.25);
  border-color: #818cf8;
  color: #38bdf8;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

body.app-dark .source-leads-badge-num,
.app-dark .source-leads-badge-num {
  color: #38bdf8;
  text-shadow: 0 0 8px rgba(56, 189, 248, 0.2);
}

body.app-dark .source-leads-badge-lbl,
.app-dark .source-leads-badge-lbl {
  color: #94a3b8;
}

body.app-dark .source-leads-badge-arrow,
.app-dark .source-leads-badge-arrow {
  color: #a5b4fc;
}

body.app-dark .subsource-lead-item,
.app-dark .subsource-lead-item {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
}

body.app-dark .subsource-lead-item:hover,
body.app-dark .subsource-lead-item:focus-visible,
.app-dark .subsource-lead-item:hover,
.app-dark .subsource-lead-item:focus-visible {
  border-color: #38bdf8;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
}

body.app-dark .subsource-lead-count,
.app-dark .subsource-lead-count {
  color: #f1f5f9;
}

.bdm-search-box {
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid #cbd5e1;
  padding: 4px 2px;
  min-width: 210px;
}

.bdm-search-box:focus-within {
  border-bottom: 2px solid var(--primary-blue);
}

.bdm-search-box input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 13px;
  width: 100%;
}

.bdm-card,
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 4px;
  box-shadow: var(--shadow-card);
  margin-bottom: 16px;
}

.bdm-card-header,
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--border-subtle);
}

.bdm-card-title,
.card-title {
  font-size: 15px;
  font-weight: 500;
  color: #1f2937;
  margin: 0;
}

.bdm-card-body,
.card-body {
  padding: 14px 16px;
}

/* Tables (Buyers > All, Buyer Orders, Sources > All, Data Report, Posts) */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: 4px;
  box-shadow: var(--shadow-card);
}

@media (min-width: 769px) {
  .col-w-sm { width: 110px; }
  .col-w-md { width: 160px; }
  .col-w-lg { width: 240px; }
}

.bdm-table,
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.bdm-table th,
.data-table th {
  text-align: left;
  padding: 11px 14px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-card);
  background: #ffffff;
  white-space: nowrap;
}

.bdm-table td,
.data-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: top;
  color: var(--text-main);
}

.bdm-table tbody tr:hover,
.data-table tbody tr:hover {
  background: #f8fafc;
}

/* Buyer navigation and readable policy / vault metadata. */
.buyers-workspace-content { min-width: 0; max-width: 100%; }
.buyers-workspace-content .table-wrap { max-width: 100%; }
.buyers-subnav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.buyers-subnav a { padding: 10px 16px; border-radius: 8px; color: var(--text-secondary); text-decoration: none; transition: background .15s, color .15s; }
.buyers-subnav a:hover { background: #eff6ff; color: var(--primary-blue); }
.buyers-subnav a[aria-current="page"] { background: #dbeafe; color: #1e40af; font-weight: 600; }
.buyer-policy-summary { font-size: 12px; line-height: 1.6; color: var(--text-secondary); white-space: normal; overflow-wrap: anywhere; margin: 4px 0 10px; }
.vault-credential-badge { display: inline-block; border-radius: 6px; padding: 3px 7px; background: #ecfdf5; color: #065f46; font-size: 12px; white-space: normal; overflow-wrap: anywhere; }
.buyers-integrations-table { table-layout: fixed; }
.buyers-integrations-table td { white-space: normal; overflow-wrap: anywhere; }
#buyers-all-table td, #buyer-orders-table td { white-space: normal; overflow-wrap: anywhere; }
@media (max-width: 768px) {
  .buyers-integrations-table { min-width: 640px; }
  #buyers-all-table { table-layout: fixed; }
  #buyers-all-table th, #buyers-all-table td { padding: 8px 5px; white-space: normal; overflow-wrap: anywhere; }
  #buyers-all-table th:last-child { width: 45%; }
}

/* Buyers > All Inline Order Stack (00:02-00:04, 00:11-00:15) */
.buyer-company-link {
  color: #1f2937;
  text-decoration: underline;
  font-weight: 500;
  cursor: pointer;
}

.buyer-company-link:hover {
  color: var(--primary-blue);
}

.buyer-orders-stack {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.buyer-order-inline-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #374151;
  text-decoration: none;
  font-size: 12.5px;
  cursor: pointer;
  padding: 1px 0;
}

.buyer-order-inline-link:hover {
  color: var(--primary-blue);
  text-decoration: underline;
}

.buyer-order-doc-icon {
  color: #6b7280;
  font-size: 12px;
}

.view-all-orders-link {
  margin-top: 4px;
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: #4b5563;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
}

.view-all-orders-link:hover {
  color: var(--primary-blue);
}

/* ============================================================================
   5. ORDER DETAIL 3-COLUMN LAYOUT (00:00-00:01, 00:05-00:06, 00:16-00:20, 00:30-00:31)
   ============================================================================ */

.bdm-subheader-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-card);
  margin-bottom: 16px;
  padding-bottom: 0;
}

.bdm-underline-tabs {
  display: flex;
  align-items: center;
  gap: 24px;
}

.bdm-underline-tab {
  appearance: none;
  border: none;
  background: transparent;
  padding: 8px 4px 10px;
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-secondary);
  border-bottom: 2px solid transparent;
  cursor: pointer;
}

.bdm-underline-tab:hover {
  color: var(--text-main);
}

.bdm-underline-tab.active {
  color: var(--primary-blue);
  border-bottom-color: var(--primary-blue);
}

.bdm-subheader-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 6px;
}

.bdm-order-3col {
  display: grid;
  grid-template-columns: 1fr 1.35fr 1fr;
  gap: 16px;
  align-items: start;
}

@media (max-width: 1180px) {
  .bdm-order-3col {
    grid-template-columns: 1fr;
  }
}

.bdm-kv-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bdm-kv-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bdm-kv-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.bdm-kv-label {
  font-size: 11px;
  color: var(--text-secondary);
}

.bdm-kv-value {
  font-size: 13.5px;
  color: var(--text-main);
  font-weight: 400;
}

.bdm-source-block {
  padding: 8px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.bdm-source-block:last-child {
  border-bottom: none;
}

.bdm-source-title {
  font-size: 13px;
  color: #374151;
  margin-bottom: 6px;
}

.bdm-subsource-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.bdm-subsource-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 12px;
  background: var(--chip-blue-bg);
  color: var(--chip-blue-text);
  font-size: 12px;
  font-weight: 500;
}

.bdm-section-subtitle {
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  margin: 14px 0 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Cap/Schedule 7-Day Table inside Order Type card */
.bdm-cap-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  margin-bottom: 10px;
}

.bdm-cap-table th {
  text-align: left;
  padding: 6px 6px;
  color: var(--text-secondary);
  font-weight: 500;
  border-bottom: 1px solid var(--border-card);
  font-size: 11px;
}

.bdm-cap-table td {
  padding: 6px 6px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-main);
}

/* Destinations Table & Floating 5-Item Kebab Menu (00:06, 00:17, 00:31) */
.bdm-dest-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 4px;
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
}

.bdm-dest-name {
  font-size: 13px;
  color: var(--text-main);
  cursor: pointer;
}

.bdm-dest-name:hover {
  color: var(--primary-blue);
}

.bdm-kebab-btn {
  appearance: none;
  border: none;
  background: transparent;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 16px;
  color: #6b7280;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.bdm-kebab-btn:hover {
  background: #f1f5f9;
  color: #111827;
}

.bdm-kebab-menu {
  position: absolute;
  right: 28px;
  top: 6px;
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: 4px;
  box-shadow: var(--shadow-menu);
  min-width: 185px;
  z-index: 50;
  padding: 4px 0;
}

.bdm-kebab-item {
  appearance: none;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  padding: 8px 14px;
  font-family: var(--font-sans);
  font-size: 13px;
  color: #1f2937;
  cursor: pointer;
  display: block;
}

.bdm-kebab-item:hover {
  background: #f3f4f6;
}

.bdm-kebab-item.danger {
  color: var(--status-red);
}

/* ============================================================================
   6. CONFIGURE INTEGRATION 2-PANE MODAL & 3-COLUMN TESTER (00:25-00:26, 00:32)
   ============================================================================ */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
}

.modal-backdrop.hidden {
  display: none !important;
}

.modal-container {
  background: #ffffff;
  border-radius: 4px;
  box-shadow: var(--shadow-modal);
  width: 100%;
  max-width: 1140px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-card);
}

.modal-title {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  color: #111827;
}

.modal-close {
  appearance: none;
  border: none;
  background: transparent;
  font-size: 18px;
  color: #6b7280;
  cursor: pointer;
  padding: 4px 8px;
}

.modal-close:hover {
  color: #111827;
}

.modal-body {
  padding: 14px 20px;
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  padding: 10px 20px;
  border-top: 1px solid var(--border-card);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  background: #fafafa;
}

.bdm-int-url-bar {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  align-items: end;
  margin: 12px 0;
}

.bdm-int-split {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 18px;
  margin-top: 10px;
}

@media (max-width: 960px) {
  .bdm-int-split {
    grid-template-columns: 1fr;
  }
}

.bdm-int-left,
.bdm-int-right {
  border: 1px solid var(--border-card);
  border-radius: 4px;
  padding: 12px;
  background: #ffffff;
}

.bdm-radio-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 10px 0;
  font-size: 12.5px;
}

.bdm-radio-row label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.bdm-token-list {
  max-height: 330px;
  overflow-y: auto;
  margin-top: 8px;
  border-top: 1px solid var(--border-subtle);
}

.bdm-token-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 4px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 12.5px;
}

.bdm-token-row:hover {
  background: #f8fafc;
}

.bdm-token-insert-btn {
  appearance: none;
  border: none;
  background: transparent;
  color: #374151;
  font-family: var(--font-sans);
  font-size: 12.5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 4px;
  text-align: left;
}

.bdm-token-insert-btn:hover {
  color: var(--primary-blue);
}

.bdm-token-plus {
  color: #6b7280;
  font-weight: 700;
}

/* 3-Column Integration Test Tab (gallery_017.jpg, gallery_051.jpg) */
.bdm-test-3col {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1.15fr;
  gap: 14px;
  margin-top: 12px;
}

.bdm-test-col {
  border: 1px solid var(--border-card);
  border-radius: 4px;
  padding: 12px;
  background: #ffffff;
}

.bdm-code-box {
  background: #f8fafc;
  border: 1px solid var(--border-card);
  border-radius: 4px;
  padding: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 320px;
  overflow-y: auto;
}

/* ============================================================================
   7. SUB-SOURCE SCHEDULE WEEKDAY CIRCLES, DONUT CHART & DATA REPORT
   ============================================================================ */

.bdm-weekday-circles {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 8px 0;
}

.bdm-day-circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #4b5563;
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.bdm-day-circle.active {
  background: var(--primary-blue);
  border-color: var(--primary-blue);
  color: #ffffff;
}

.bdm-donut-wrap {
  display: flex;
  align-items: center;
  gap: 20px;
}

.bdm-donut-ring {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.bdm-donut-hole {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}

.badge-success {
  background: var(--status-green-bg);
  color: var(--status-green);
}

.badge-danger {
  background: var(--status-red-bg);
  color: var(--status-red);
}

.badge-warning {
  background: var(--status-amber-bg);
  color: var(--status-amber);
}

.badge-info {
  background: var(--chip-blue-bg);
  color: var(--chip-blue-text);
}

.badge-neutral {
  background: #f1f5f9;
  color: #475569;
}

body.app-dark .badge-neutral,
.app-dark .badge-neutral {
  background: rgba(148, 163, 184, 0.15);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.25);
}

/* ============================================================================
   8. LOGIN SCREEN (00:07–00:08 of gallery_073.mp4)
   ============================================================================ */

.bdm-login-wrapper {
  min-height: calc(100vh - 90px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.bdm-login-card {
  width: 100%;
  max-width: 360px;
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: 4px;
  box-shadow: var(--shadow-card);
  padding: 28px 28px 22px;
}

/* ============================================================================
   9. UTILITY HELPERS & TOASTS
   ============================================================================ */

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

@media (max-width: 960px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.flex-gap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.text-muted { color: var(--text-secondary); }
.text-mono { font-family: var(--font-mono); }

@media (max-width: 768px) {
  html,
  body {
    overflow-x: hidden;
  }

  .app-shell {
    flex-direction: column;
  }

  .sidebar,
  .sidebar.collapsed {
    width: 100%;
    min-width: 0;
    border-right: none;
    border-bottom: 1px solid var(--border-card);
    padding: 6px 8px;
  }

  .sidebar-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px;
  }

  .nav-group {
    flex-direction: row;
    flex-wrap: wrap;
    padding: 3px;
    gap: 2px;
  }

  .nav-item {
    width: auto;
    padding: 4px 7px;
    font-size: 11px;
  }

  .nav-subitems {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    padding-left: 0;
    gap: 2px;
  }

  .nav-subitem {
    width: auto;
    padding: 3px 6px;
    font-size: 10.5px;
  }

  .sidebar-footer {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding-top: 4px;
  }

  .topbar {
    height: auto;
    min-height: 46px;
    flex-wrap: wrap;
    padding: 6px 10px;
    gap: 6px;
  }

  .breadcrumb-rail {
    flex: 1 1 auto;
    min-width: 140px;
  }

  .crumb-pill {
    height: 26px;
    padding: 0 10px 0 14px;
    font-size: 11px;
  }

  .view-root {
    padding: 10px 8px 24px;
  }

  .bdm-filter-row {
    gap: 10px;
  }

  .bdm-search-box,
  .mui-field {
    min-width: 110px;
    flex: 1 1 120px;
  }

  .table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    max-width: 100%;
  }

  .bdm-table,
  .data-table {
    table-layout: fixed;
    width: 100%;
    font-size: 11px;
  }

  .bdm-table th,
  .bdm-table td,
  .data-table th,
  .data-table td {
    padding: 6px 4px;
    white-space: normal;
    word-break: break-word;
  }

  .buyer-order-inline-link {
    font-size: 11px;
    word-break: break-word;
  }
}

.toast-container {
  position: fixed;
  bottom: 18px;
  right: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 200;
}

.toast {
  background: #1e293b;
  color: #ffffff;
  padding: 10px 16px;
  border-radius: 4px;
  font-size: 12.5px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.toast-success { border-left: 4px solid #22c55e; }
.toast-error { border-left: 4px solid #ef4444; }

/* ============================================================================
   BIGDATAMANAGER 1:1 REPLICA COMPONENT STYLES
   ============================================================================ */

/* 1. Order Filters Card Stack (photo_2026-10-30_17-58-19.jpg) */
.filter-cards-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}

.filter-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 14px 18px;
  transition: all 0.15s ease-in-out;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.filter-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.filter-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}

.filter-card-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.filter-card-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #1e293b;
}

.filter-card-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-card-badge.passed {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.filter-card-badge.failed {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.filter-card-body {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
}

.filter-outcome-pills {
  display: inline-flex;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  overflow: hidden;
}

.filter-outcome-btn {
  background: #f8fafc;
  border: none;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 500;
  color: #64748b;
  cursor: pointer;
  transition: all 0.1s ease;
}

.filter-outcome-btn.active-passed {
  background: #16a34a;
  color: #ffffff;
  font-weight: 600;
}

.filter-outcome-btn.active-failed {
  background: #dc2626;
  color: #ffffff;
  font-weight: 600;
}

/* 2. Chesstree Ventures LLC Invoice (photo_2026-10-30_17-48-21.jpg) */
.bdm-invoice-sheet {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  max-width: 860px;
  margin: 0 auto 24px auto;
  padding: 36px 42px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #1e293b;
}

.invoice-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 2px solid #f1f5f9;
}

.invoice-company-title {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 4px 0;
}

.invoice-company-sub {
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
}

.invoice-doc-label {
  font-size: 28px;
  font-weight: 800;
  color: #0284c7;
  text-align: right;
  letter-spacing: 1px;
}

.invoice-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 28px;
}

.invoice-bill-to {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 16px;
}

.invoice-bill-title {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.invoice-bill-name {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 2px;
}

.invoice-bill-body {
  font-size: 13px;
  color: #475569;
  line-height: 1.5;
}

.invoice-meta-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

.invoice-meta-table td {
  padding: 6px 8px;
  border-bottom: 1px solid #f1f5f9;
}

.invoice-meta-table td:first-child {
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  font-size: 11px;
  width: 40%;
}

.invoice-meta-table td:last-child {
  text-align: right;
  font-weight: 600;
  color: #0f172a;
}

.invoice-items-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  font-size: 13px;
}

.invoice-items-table th {
  background: #f1f5f9;
  color: #475569;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 11px;
  padding: 10px 12px;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #cbd5e1;
}

.invoice-items-table td {
  padding: 12px;
  border-bottom: 1px solid #e2e8f0;
  color: #334155;
}

.invoice-total-box {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 28px;
}

.invoice-total-summary {
  width: 280px;
}

.invoice-total-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 13px;
  color: #475569;
}

.invoice-total-row.grand-total {
  border-top: 2px solid #0f172a;
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  padding-top: 10px;
  margin-top: 4px;
}

.invoice-ach-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 6px;
  padding: 16px 20px;
  font-size: 12.5px;
  color: #166534;
  line-height: 1.6;
}

.invoice-ach-title {
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 4px;
  color: #15803d;
}

/* 3. Export Profiles & Field Mappings (photo_2026-10-30_17-58-22.jpg) */
.ep-mapping-row td {
  padding: 6px 8px;
}

.ep-mapping-row input {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 12px;
}

/* 4. API Instructions Dialog & Syntax Blocks (photo_2026-10-30_18-04-32.jpg) */
.api-endpoint-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #0f172a;
  color: #38bdf8;
  padding: 10px 14px;
  border-radius: 6px;
  font-family: ui-monospace, monospace;
  font-size: 12.5px;
  overflow-x: auto;
  margin: 12px 0;
}

.api-endpoint-badge code {
  color: #38bdf8;
  word-break: break-all;
}

.code-snippet-box {
  background: #0f172a;
  color: #f8fafc;
  padding: 14px;
  border-radius: 6px;
  font-family: ui-monospace, monospace;
  font-size: 12px;
  line-height: 1.5;
  overflow-x: auto;
  border: 1px solid #334155;
  position: relative;
}

.code-snippet-box pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}

/* ============================================================================
   SETTINGS > FILTERS & ADVANCED REPLICA STYLES (photo_2026-10-30_17-49-37.jpg)
   ============================================================================ */
.filter-settings-layout {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin-top: 12px;
}

.filter-provider-sidebar {
  width: 280px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.filter-provider-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  font-size: 13.5px;
  font-weight: 500;
  color: #334155;
  cursor: pointer;
  border-bottom: 1px solid #f1f5f9;
  transition: all 0.15s ease;
  user-select: none;
}

.filter-provider-item:last-child {
  border-bottom: none;
}

.filter-provider-item:hover {
  background: #f8fafc;
  color: #0f172a;
}

.filter-provider-item.active {
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 600;
  border-left: 3px solid #2563eb;
}

.filter-config-card {
  flex: 1;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 24px 28px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  max-width: 780px;
}

.filter-config-section {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f1f5f9;
}

.filter-config-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.filter-section-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Green toggle switch */
.toggle-switch-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cbd5e1;
  transition: 0.2s;
  border-radius: 24px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.2s;
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.toggle-switch input:checked + .toggle-slider {
  background-color: #10b981;
}

.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(20px);
}

/* Multi-order checklist modal box */
.other-orders-checklist {
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 8px 12px;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.other-orders-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: #334155;
  cursor: pointer;
  padding: 3px 0;
}

.other-orders-item:hover {
  color: #0f172a;
}

/* Sources Analytics tree table */
.tree-table-parent {
  background: #f8fafc;
  font-weight: 600;
  color: #0f172a;
}

.tree-table-parent td {
  border-top: 1px solid #e2e8f0;
}

.tree-table-child td {
  color: #334155;
  background: #ffffff;
}

/* Topbar user identity badge matching photo_2026-10-30_17-58-22.jpg */
.topbar-user-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(241, 245, 249, 0.85);
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 11.5px;
}

.topbar-account-name {
  font-weight: 600;
  color: #1e293b;
}

.topbar-user-email {
  color: #64748b;
  font-family: var(--font-mono);
}

.topbar-help-link {
  color: #2563eb;
  text-decoration: none;
  font-weight: 600;
  font-size: 11px;
  padding-left: 4px;
  border-left: 1px solid #cbd5e1;
}

.topbar-help-link:hover {
  text-decoration: underline;
}

/* Ping Tree Waterfall & Priority styling */
.ping-tree-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ping-tree-tier-card {
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.ping-tree-tier-header {
  background: #f1f5f9;
  padding: 10px 16px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ping-tree-tier-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ping-tree-tier-badge {
  background: #3b82f6;
  color: #ffffff;
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 12px;
  font-weight: 600;
}

.ping-tree-tier-body {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ping-tree-orders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}

.ping-tree-order-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 12.5px;
}

.ping-tree-order-chip.active {
  border-color: #93c5fd;
  background: #eff6ff;
}

/* Post Detail Modal 2-Pane Inspection (photo_2026-10-30_17-49-38.jpg) */
.post-detail-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.post-detail-pane {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.post-detail-pane-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 13px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 8px;
}

/* Ingress Multi-Year Table (photo_2026-10-30_18-09-29.jpg) */
.ingress-table th, .ingress-table td {
  text-align: right;
}

.ingress-table th:first-child, .ingress-table td:first-child,
.ingress-table th:nth-child(2), .ingress-table td:nth-child(2) {
  text-align: left;
}

/* Subscription & Allowances Cards */
.sub-plan-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sub-plan-card.active {
  border-color: #3b82f6;
  box-shadow: 0 0 0 1px #3b82f6;
}

/* ============================================================================
   ORDER FILTERS 2-COLUMN SPLIT LAYOUT (photo_2026-10-30_17-56-46.jpg & 17-57-36.jpg)
   ============================================================================ */
.order-filters-split-layout {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  min-height: 520px;
  max-width: 100%;
  min-width: 0;
}

.filters-nav-panel {
  width: 320px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.filters-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}

.filters-nav-title {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.filters-nav-list {
  display: flex;
  flex-direction: column;
  padding: 10px 12px;
  gap: 8px;
  max-height: 480px;
  overflow-y: auto;
}

.filter-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
  text-align: left;
  user-select: none;
}

.filter-nav-item:hover {
  border-color: #94a3b8;
  background: #f8fafc;
}

.filter-nav-item.active {
  border-color: #2563eb;
  background: #eff6ff;
  box-shadow: 0 0 0 1.5px #2563eb;
}

.filter-nav-item-title {
  font-size: 12.5px;
  font-weight: 600;
  color: #1e293b;
  word-break: break-word;
}

.filter-nav-item.active .filter-nav-item-title {
  color: #1d4ed8;
}

.filters-nav-bottom-bar {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px 18px;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
  margin-top: auto;
}

.filter-config-panel {
  flex: 1 1 0%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow-wrap: anywhere;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 20px 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.filter-config-panel .filter-pane-card,
.filter-config-panel .filter-pane-body,
.filter-config-panel .grid-2,
.filter-config-panel .grid-2 > *,
.filter-config-panel .mui-field,
.filter-config-panel .mui-select,
.filter-config-panel .mui-input {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.filter-config-panel .mui-select {
  width: 100%;
  text-overflow: ellipsis;
}

.filter-config-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 12px;
  margin-bottom: 18px;
}

.filter-config-title {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.filter-radio-group {
  display: flex;
  gap: 20px;
  margin-bottom: 14px;
}

.filter-radio-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #1e293b;
  cursor: pointer;
}

.filter-instruction-tip {
  font-size: 12px;
  color: #64748b;
  margin: 4px 0 12px 0;
  line-height: 1.4;
}

.filter-chips-container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 12px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  min-height: 42px;
  align-items: center;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
  border-radius: 12px;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 600;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.filter-chip-remove {
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
  color: #0284c7;
  transition: color 0.1s;
}

.filter-chip-remove:hover {
  color: #dc2626;
}

.filter-checklist-box {
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  max-height: 240px;
  overflow-y: auto;
  background: #ffffff;
  padding: 6px 0;
  margin-top: 8px;
}

.filter-checklist-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  font-size: 12.5px;
  cursor: pointer;
  transition: background 0.1s;
  user-select: none;
}

.filter-checklist-item:hover {
  background: #f1f5f9;
}

.filter-checklist-item input[type="checkbox"] {
  accent-color: #2563eb;
  cursor: pointer;
}

.filter-config-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #f1f5f9;
  padding-top: 16px;
  margin-top: 24px;
}

/* ============================================================================
   DATA IMPORTS CSV PARSING STYLES (photo_2026-10-30_17-49-41.jpg)
   ============================================================================ */
.progress-bar-inline {
  display: inline-block;
  width: 130px;
  height: 9px;
  background: #e2e8f0;
  border-radius: 6px;
  overflow: hidden;
  vertical-align: middle;
  margin: 0 8px;
}

.progress-fill {
  height: 100%;
  background: #2563eb;
  border-radius: 6px;
  transition: width 0.3s ease;
}

.progress-fill-parsing {
  background: repeating-linear-gradient(
    45deg,
    #2563eb,
    #2563eb 8px,
    #60a5fa 8px,
    #60a5fa 16px
  );
  background-size: 24px 24px;
  animation: progress-stripes 1s linear infinite;
}

@keyframes progress-stripes {
  0% { background-position: 0 0; }
  100% { background-position: 24px 0; }
}

/* ============================================================================
   DATA REPORT TOP TOOLBAR & TRAFFIC VOLUME (photo_2026-10-30_17-49-04.jpg)
   ============================================================================ */
.traffic-volume-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 12px;
  color: #1e293b;
  font-weight: 500;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.traffic-volume-badge strong {
  font-size: 13px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.dr-grouping-bar {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 12.5px;
  color: #334155;
  padding: 4px 8px;
}

.traffic-volume-badge {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 4px 12px;
  min-width: 170px;
}

.traffic-volume-badge .tv-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: #64748b;
  letter-spacing: 0.5px;
}

.traffic-volume-badge .tv-value {
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
}

.grouped-table-header-row {
  background: #f1f5f9;
  font-weight: 700;
  color: #1e293b;
  font-size: 12.5px;
  cursor: pointer;
  user-select: none;
}

.grouped-table-header-row td {
  padding: 8px 12px !important;
  border-top: 1px solid #cbd5e1 !important;
  border-bottom: 1px solid #cbd5e1 !important;
}

.incoming-modal-tabs {
  display: flex;
  gap: 16px;
  border-bottom: 2px solid #e2e8f0;
  margin-bottom: 16px;
}

.incoming-tab-btn {
  font-weight: 600;
  padding: 8px 16px;
  font-size: 13px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  color: #64748b;
  transition: all 0.15s ease;
}

.incoming-tab-btn.active {
  color: #2563eb;
  border-bottom-color: #2563eb;
}

.data-report-footer-version {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  font-size: 11.5px;
  color: #94a3b8;
}

@media (max-width: 900px) {
  .topbar-right,
  .topbar-user-badge,
  .topbar-actions,
  .breadcrumb-rail {
    flex-wrap: wrap;
    max-width: 100%;
    min-width: 0;
  }
  .order-filters-split-layout {
    flex-direction: column;
    min-height: auto;
  }
  .filters-nav-panel,
  .filter-config-panel {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  .filter-config-panel {
    padding: 14px;
  }
  .bdm-card-header,
  .card-header {
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
    max-width: 100%;
  }
  .bdm-search-box {
    min-width: 0 !important;
    max-width: 100%;
    box-sizing: border-box;
  }
}





