/* ==========================================================================
   IDXShare - Minimalist Monochrome (Dominant White & Black) Design System
   Inspired by modern clean dashboard aesthetics (Solid Black Icons & White Cards)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Outfit:wght@500;600;700;800&family=JetBrains+Mono:wght@500;600;700&display=swap');

:root {
  /* Backgrounds & Canvas */
  --bg-app: #f4f5f7;
  --bg-sidebar: #ffffff;
  --bg-card: #ffffff;
  --bg-card-subtle: #f8fafc;
  --bg-input: #ffffff;
  --bg-hover: #f1f3f5;
  --bg-active: #000000;

  /* Primary Monochrome Tokens */
  --color-black: #000000;
  --color-dark: #111827;
  --color-gray-900: #0f172a;
  --color-gray-800: #1e293b;
  --color-gray-700: #334155;
  --color-gray-600: #475569;
  --color-gray-500: #64748b;
  --color-gray-400: #94a3b8;
  --color-gray-300: #cbd5e1;
  --color-gray-200: #e2e8f0;
  --color-gray-100: #f1f5f9;
  --color-gray-50: #f8fafc;
  --color-white: #ffffff;

  /* Subtle Readability Tints */
  --tint-buy-bg: #f0fdf4;
  --tint-buy-text: #166534;
  --tint-buy-border: #bbf7d0;

  --tint-sell-bg: #fef2f2;
  --tint-sell-text: #991b1b;
  --tint-sell-border: #fecaca;

  --tint-amber-bg: #fffbeb;
  --tint-amber-text: #92400e;
  --tint-amber-border: #fde68a;

  /* Text Colors */
  --text-main: #111827;
  --text-heading: #000000;
  --text-muted: #6b7280;
  --text-dim: #9ca3af;
  --text-inverse: #ffffff;

  /* Borders & Dividers */
  --border-subtle: #e5e7eb;
  --border-light: #f3f4f6;
  --border-dark: #111827;

  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Radius & Shadows */
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-pill: 9999px;

  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.03), 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-card-hover: 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-dropdown: 0 10px 25px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.03);

  --transition-fast: all 0.15s ease-in-out;
  --transition-normal: all 0.25s ease-in-out;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-app);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Universal monochrome black icons */
[data-lucide], svg.lucide {
  color: #000000;
  stroke-width: 2px;
}

/* ==========================================================================
   Layout: Sidebar + Main Wrapper
   ========================================================================== */

.layout-wrapper {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

/* Sidebar */
.sidebar {
  width: 260px;
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  padding: 1.75rem 1.25rem;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 50;
}

.sidebar-header {
  margin-bottom: 2.25rem;
  padding-left: 0.25rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.logo-icon-wrap {
  width: 38px;
  height: 38px;
  background: #000000;
  color: #ffffff;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  overflow: hidden;
}

.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.logo-icon-wrap svg,
.logo-icon-wrap [data-lucide] {
  width: 20px;
  height: 20px;
  color: #ffffff !important;
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #000000;
}

.brand-title span {
  color: #6b7280;
  font-weight: 600;
}

.sidebar-menu-wrap {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  flex: 1;
  overflow-y: auto;
}

.menu-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.menu-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  padding-left: 0.75rem;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
}

.nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.nav-item a {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 0.95rem;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition-fast);
}

.nav-item a svg,
.nav-item a [data-lucide] {
  width: 19px;
  height: 19px;
  color: #000000;
  transition: var(--transition-fast);
}

.nav-item:hover a {
  background-color: var(--bg-hover);
  color: var(--color-black);
}

.nav-item:hover a svg {
  color: #000000;
}

/* Active Nav Item: Solid Black Pill */
.nav-item.active a {
  background-color: #000000;
  color: #ffffff;
  font-weight: 700;
}

.nav-item.active a svg,
.nav-item.active a [data-lucide] {
  color: #ffffff !important;
}

/* Sidebar Bottom Card */
.sidebar-bottom-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.15rem 1rem;
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: auto;
}

.promo-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #111827;
  background: #f3f4f6;
  border: 1px solid var(--border-subtle);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-pill);
  align-self: flex-start;
}

.promo-badge svg {
  width: 13px;
  height: 13px;
  color: #000000;
}

.sidebar-bottom-card h4 {
  font-size: 0.88rem;
  font-weight: 700;
  color: #000000;
}

.sidebar-bottom-card p {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.btn-sidebar-action {
  margin-top: 0.4rem;
  background: #000000;
  color: #ffffff;
  border: none;
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  transition: var(--transition-fast);
}

.btn-sidebar-action svg {
  width: 14px;
  height: 14px;
  color: #ffffff !important;
}

.btn-sidebar-action:hover {
  background: #1f2937;
}

/* ==========================================================================
   Main Content Area & Topbar
   ========================================================================== */

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

/* Topbar */
.topbar {
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-subtle);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  position: sticky;
  top: 0;
  z-index: 40;
}

.search-box-global {
  position: relative;
  width: 440px;
  max-width: 100%;
}

.search-box-global .search-icon {
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  color: #000000;
  pointer-events: none;
}

.search-box-global input {
  width: 100%;
  padding: 0.7rem 1.1rem 0.7rem 2.8rem;
  background-color: #f9fafb;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  font-size: 0.86rem;
  font-family: var(--font-body);
  color: var(--text-main);
  outline: none;
  transition: var(--transition-fast);
}

.search-box-global input:focus {
  background-color: #ffffff;
  border-color: #000000;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.05);
}

.search-box-global input::placeholder {
  color: var(--text-dim);
}

.search-clear-btn {
  position: absolute;
  right: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.topbar-period-selector {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  padding: 0.55rem 0.95rem;
  border-radius: var(--radius-pill);
  transition: var(--transition-fast);
}

.topbar-period-selector:hover {
  border-color: #000000;
}

.topbar-period-selector .period-icon {
  width: 16px;
  height: 16px;
  color: #000000;
}

.topbar-period-selector select {
  background: transparent;
  border: none;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  color: #000000;
  cursor: pointer;
  outline: none;
}

.user-profile-pill {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.4rem 0.85rem 0.4rem 0.4rem;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #000000;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
}

.user-info {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: #000000;
  line-height: 1.2;
}

.user-role {
  font-size: 0.68rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Page Content Canvas & Cards
   ========================================================================== */

.page-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  max-width: 1600px;
  width: 100%;
}

/* Header Hero Banner (Clean Minimalist White) */
.dash-hero-banner {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 1.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  box-shadow: var(--shadow-card);
}

.dash-hero-left {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.dash-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: #f4f5f7;
  border: 1px solid var(--border-subtle);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #000000;
  align-self: flex-start;
}

.live-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #000000;
}

.dash-hero-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #000000;
}

.dash-hero-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 780px;
}

.dash-hero-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  flex-shrink: 0;
}

.dash-refresh-btn {
  background: #000000;
  color: #ffffff;
  border: none;
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  transition: var(--transition-fast);
}

.dash-refresh-btn svg {
  width: 16px;
  height: 16px;
  color: #ffffff !important;
}

.dash-refresh-btn:hover {
  background: #1f2937;
}

.dash-sync-time {
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* Common Page Header */
.page-header-clean {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 1.5rem 1.75rem;
  box-shadow: var(--shadow-card);
}

.header-text-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.page-badge-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.feature-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #f4f5f7;
  border: 1px solid var(--border-subtle);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  color: #000000;
}

.feature-tag svg {
  width: 14px;
  height: 14px;
  color: #000000;
}

.page-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #000000;
}

.page-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.header-btn-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.2rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
  text-decoration: none;
}

.btn svg {
  width: 16px;
  height: 16px;
}

.btn-primary {
  background: #000000;
  color: #ffffff;
  border: 1px solid #000000;
}

.btn-primary svg {
  color: #ffffff !important;
}

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

.btn-secondary {
  background: #ffffff;
  color: #000000;
  border: 1px solid var(--border-subtle);
}

.btn-secondary svg {
  color: #000000;
}

.btn-secondary:hover {
  background: #f9fafb;
  border-color: #000000;
}

/* ==========================================================================
   Dashboard Grids & Cards
   ========================================================================== */

.dash-flow-grid,
.dash-dual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.dashboard-widget,
.dash-table-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.widget-header,
.dash-table-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  background: #ffffff;
}

.widget-title-badge,
.dash-widget-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-pill);
  background: #f4f5f7;
  border: 1px solid var(--border-subtle);
  color: #000000;
  margin-bottom: 0.4rem;
}

.widget-title,
.dash-card-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: #000000;
  letter-spacing: -0.01em;
}

.widget-sub,
.dash-card-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: block;
  margin-top: 0.15rem;
}

/* Clean Grid Tables */
.table-scroll-container,
.table-scroll-wrap {
  overflow-x: auto;
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: #ffffff;
}

.clean-data-table,
.clean-dash-table,
.clean-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  text-align: left;
}

.clean-data-table th,
.clean-dash-table th,
.clean-table th {
  background: #f8fafc;
  color: #475569;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.8rem 1rem;
  border-bottom: 2px solid var(--border-subtle);
  border-right: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.clean-data-table th:last-child,
.clean-dash-table th:last-child,
.clean-table th:last-child {
  border-right: none;
}

.clean-data-table td,
.clean-dash-table td,
.clean-table td {
  padding: 0.8rem 1rem;
  font-size: 0.86rem;
  color: var(--text-main);
  border-bottom: 1px solid var(--border-subtle);
  border-right: 1px solid var(--border-subtle);
  vertical-align: middle;
  background-color: #ffffff;
}

.clean-data-table td:last-child,
.clean-dash-table td:last-child,
.clean-table td:last-child {
  border-right: none;
}

.clean-data-table tbody tr:nth-child(even) td,
.clean-dash-table tbody tr:nth-child(even) td,
.clean-table tbody tr:nth-child(even) td {
  background-color: #fcfdfe;
}

.clean-data-table tbody tr:last-child td,
.clean-dash-table tbody tr:last-child td,
.clean-table tbody tr:last-child td {
  border-bottom: none;
}

.clean-data-table tbody tr:hover td,
.clean-dash-table tbody tr:hover td,
.clean-table tbody tr:hover td {
  background-color: #f1f5f9 !important;
}

/* Loading Cell */
.table-loading-cell {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--text-muted);
}

.loading-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid #e5e7eb;
  border-top-color: #000000;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 0.75rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Broker Pill & Badges */
.broker-pill-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.82rem;
  padding: 0.25rem 0.55rem;
  border-radius: var(--radius-xs);
  background: #f3f4f6;
  border: 1px solid var(--border-subtle);
  color: #000000;
}

.broker-pill-tag.buyer {
  background: #f0fdf4;
  color: #166534;
  border-color: #bbf7d0;
}

.broker-pill-tag.seller {
  background: #fef2f2;
  color: #991b1b;
  border-color: #fecaca;
}

.flow-inspect-btn {
  background: #000000;
  color: #ffffff;
  border: none;
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: var(--transition-fast);
}

.flow-inspect-btn svg {
  width: 13px;
  height: 13px;
  color: #ffffff !important;
}

.flow-inspect-btn:hover {
  background: #1f2937;
}

.action-pill-buy {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-pill);
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.action-pill-sell {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-pill);
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.action-pill-transfer {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-pill);
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #e5e7eb;
}

.role-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-pill);
  background: #f3f4f6;
  color: #1f2937;
  border: 1px solid var(--border-subtle);
}

/* Semantic Table Helper Classes */
.mono-rank {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--text-muted);
}

.mono-code {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
}

.cell-broker-name {
  font-weight: 600;
  color: var(--text-main);
  margin-left: 4px;
}

.cell-name-strong {
  font-weight: 700;
  color: var(--text-main);
}

.mono-date {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.text-buy {
  color: #15803d;
  font-family: var(--font-mono);
}

.text-sell {
  color: #dc2626;
  font-family: var(--font-mono);
}

.text-neutral {
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.text-dash {
  color: var(--border-subtle);
  font-style: normal;
}

.cell-sub-info {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: normal;
}

.table-empty-cell {
  text-align: center;
  padding: 2.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.table-error-cell {
  text-align: center;
  padding: 1.5rem;
  color: #dc2626;
  font-size: 0.9rem;
}

/* ==========================================================================
   Bandarmologi Styles
   ========================================================================== */

/* Sub-Tab Navigation Bar */
.bm-tabs-wrapper {
  display: flex;
  margin-bottom: 0.25rem;
}

.bm-tab-buttons {
  display: flex;
  gap: 0.5rem;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  padding: 0.35rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.bm-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: var(--transition-fast);
}

.bm-tab-btn svg {
  width: 17px;
  height: 17px;
  color: #000000;
}

.bm-tab-btn:hover {
  color: #000000;
  background: #f4f5f7;
}

.bm-tab-btn.active {
  background: #000000;
  color: #ffffff;
}

.bm-tab-btn.active svg {
  color: #ffffff !important;
}

/* Stock Selector Bar */
.bm-ticker-bar {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 1.5rem 1.75rem;
  box-shadow: var(--shadow-card);
}

.bm-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.bm-ticker-input-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.bm-ticker-input-wrap input {
  padding: 0.65rem 1rem;
  background: #f9fafb;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: #000000;
  text-transform: uppercase;
  width: 250px;
  outline: none;
  transition: var(--transition-fast);
}

.bm-ticker-input-wrap input:focus {
  background: #ffffff;
  border-color: #000000;
}

/* Stock Hero Banner */
.stock-hero-banner {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 1.5rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  box-shadow: var(--shadow-card);
}

.stock-hero-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.stock-hero-badge {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 800;
  background: #000000;
  color: #ffffff;
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-md);
}

.stock-hero-names {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stock-hero-fullname {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: #000000;
}

.stock-hero-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.stock-hero-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.stock-hero-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.2rem;
}

.sh-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sh-val {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: #000000;
}

.sh-val.green {
  color: #166534;
}

.sh-val.red {
  color: #991b1b;
}

/* Timeframe Bar */
.bm-timeframe-bar {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 1.15rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  box-shadow: var(--shadow-card);
  flex-wrap: wrap;
}

.tf-left, .tf-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Single Expansive Line Chart Card */
.single-large-chart-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.single-chart-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1.25rem;
  flex-wrap: wrap;
}

.chart-header-left {
  display: flex;
  flex-direction: column;
}

.mode-toggle-pill-group {
  display: inline-flex;
  gap: 0.45rem;
  background: #f4f5f7;
  padding: 0.3rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  align-self: flex-start;
}

.mode-pill-btn {
  background: transparent;
  border: none;
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-md);
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-fast);
}

.mode-pill-btn:hover {
  color: #000000;
}

.mode-pill-btn.active-buy,
.mode-pill-btn.active-sell {
  background: #000000;
  color: #ffffff;
}

.bm-scope-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  background: #f4f5f7;
  border: 1px solid var(--border-subtle);
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-pill);
}

/* Dual Side-by-Side Chart Grid */
.bm-charts-dual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.bm-chart-half-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.badge-accum {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.badge-dist {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.bm-half-canvas-wrap {
  position: relative;
  width: 100%;
  height: 480px;
  min-height: 440px;
}

.bm-half-canvas-wrap canvas {
  width: 100% !important;
  height: 480px !important;
  min-height: 440px !important;
}

@media (max-width: 1024px) {
  .bm-charts-dual-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .bm-half-canvas-wrap,
  .bm-half-canvas-wrap canvas {
    height: 380px !important;
    min-height: 340px !important;
  }
}

/* Detail Section Card */
.bm-detail-section-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.bm-detail-meta-bar {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.table-section-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  color: #000000;
}

.meta-count-text {
  font-size: 0.84rem;
  color: var(--text-muted);
}

.bm-detail-filter-box {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: #fafafa;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}

.bm-detail-presets-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.bm-detail-inputs-wrap {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.bm-date-field {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.55rem 0.85rem;
}

.bm-date-field label {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.bm-date-field label svg {
  width: 14px;
  height: 14px;
  color: #000000;
}

.bm-date-field input[type="date"] {
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 700;
  color: #000000;
  outline: none;
}

.btn-fetch-broksum {
  padding: 0.65rem 1.35rem;
  font-size: 0.86rem;
}

/* Detail Placeholder */
.bm-detail-placeholder {
  text-align: center;
  padding: 3.5rem 1.5rem;
  background: #ffffff;
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-lg);
}

.bm-prompt-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  max-width: 480px;
  margin: 0 auto;
}

.bm-prompt-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #f4f5f7;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bm-prompt-icon svg {
  width: 24px;
  height: 24px;
  color: #000000;
}

.bm-prompt-content h4 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: #000000;
}

.bm-prompt-content p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Dual Tables Container */
.bm-dual-tables-container {
  width: 100%;
}

.bm-dual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.bm-table-column {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}

.bm-column-header {
  padding: 1.15rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.bm-column-header.buyer {
  background: #f0fdf4;
}

.bm-column-header.buyer .column-badge {
  color: #166534;
  font-weight: 800;
}

.bm-column-header.seller {
  background: #fef2f2;
}

.bm-column-header.seller .column-badge {
  color: #991b1b;
  font-weight: 800;
}

.column-badge {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.column-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.bm-compact-table th, .bm-compact-table td {
  padding: 0.65rem 0.85rem;
  font-size: 0.8rem;
}

.bm-chart-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   Perubahan MoM Styles
   ========================================================================== */

.kpi-cards-grid,
.mom-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.kpi-card,
.mom-kpi-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 1.35rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  box-shadow: var(--shadow-card);
  transition: var(--transition-fast);
}

.kpi-card:hover,
.mom-kpi-card:hover {
  box-shadow: var(--shadow-card-hover);
  border-color: #000000;
}

.kpi-card-top,
.kpi-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.kpi-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
}

.mom-kpi-badge,
.kpi-badge-pill {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-pill);
  background: #f3f4f6;
  border: 1px solid var(--border-subtle);
  color: #000000;
}

.kpi-number,
.kpi-value-main {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #000000;
}

.kpi-growth-pill,
.kpi-sub-row {
  font-size: 0.78rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.pill-badge {
  font-weight: 700;
  padding: 0.1rem 0.4rem;
  border-radius: var(--radius-xs);
  background: #f3f4f6;
  color: #111827;
}

/* MoM Visual Analytics Charts Grid */
.analisa-charts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.analisa-chart-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Table Card & Meta Bar */
.data-table-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.table-meta-bar {
  padding: 1.25rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  background: #ffffff;
}

.mom-filter-bar {
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

.mom-search-box {
  position: relative;
  flex: 1;
  min-width: 260px;
}

.mom-search-box svg {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  color: #000000;
}

.mom-search-box input {
  width: 100%;
  padding: 0.65rem 1rem 0.65rem 2.6rem;
  background: #f9fafb;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-size: 0.86rem;
  font-family: var(--font-body);
  color: #000000;
  outline: none;
}

.mom-search-box input:focus {
  background: #ffffff;
  border-color: #000000;
}

.mom-filter-select-wrap select {
  padding: 0.65rem 1.1rem;
  background: #f9fafb;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-family: var(--font-body);
  font-weight: 600;
  color: #000000;
  outline: none;
  cursor: pointer;
}

.quick-filter-chips {
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
  background: #fafafa;
  flex-wrap: wrap;
}

.chips-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.chips-title svg {
  width: 14px;
  height: 14px;
  color: #000000;
}

.chips-container {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.clean-chip {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  color: #111827;
  cursor: pointer;
  transition: var(--transition-fast);
}

.clean-chip:hover {
  border-color: #000000;
}

.clean-chip.active {
  background: #000000;
  color: #ffffff;
  border-color: #000000;
}

.mom-source-indicator-bar {
  padding: 0.65rem 1.5rem;
  background: #f9fafb;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mom-source-indicator-bar svg {
  width: 15px;
  height: 15px;
  color: #000000;
}

.mom-status-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-pill);
}

.mom-status-badge.accum {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.mom-status-badge.dist {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.mom-status-badge.new {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
}

.mom-status-badge.exit {
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #e5e7eb;
}

.mom-status-badge.unchanged {
  background: #f9fafb;
  color: #6b7280;
  border: 1px solid #e5e7eb;
}

/* Pagination Bar */
.pagination-bar {
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border-top: 1px solid var(--border-subtle);
}

.page-controls {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.page-btn {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 700;
  color: #000000;
  cursor: pointer;
  transition: var(--transition-fast);
}

.page-btn:hover:not(:disabled) {
  background: #f3f4f6;
  border-color: #000000;
}

.page-btn.active {
  background: #000000;
  color: #ffffff;
  border-color: #000000;
}

.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ==========================================================================
   Analisa Saham & Investor Styles
   ========================================================================== */

.analisa-mode-toggle-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 0.75rem;
  box-shadow: var(--shadow-card);
}

.mode-toggle-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.mode-btn {
  background: #f4f5f7;
  border: 1px solid var(--border-subtle);
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  transition: var(--transition-fast);
}

.mode-btn svg {
  width: 18px;
  height: 18px;
  color: #000000;
}

.mode-btn.active {
  background: #000000;
  color: #ffffff;
  border-color: #000000;
}

.mode-btn.active svg {
  color: #ffffff !important;
}

.mode-badge-live {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  background: #ffffff;
  color: #000000;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-pill);
}

.analisa-selector-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: var(--shadow-card);
}

.analisa-selector-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.analisa-select-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
  font-weight: 800;
  color: #000000;
}

.analisa-select-label svg {
  width: 17px;
  height: 17px;
  color: #000000;
}

.analisa-popular-chips {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.pop-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
}

.pop-chip, .pop-chip-inv {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  color: #111827;
  cursor: pointer;
  transition: var(--transition-fast);
}

.pop-chip:hover, .pop-chip-inv:hover {
  border-color: #000000;
}

.pop-chip.active, .pop-chip-inv.active {
  background: #000000;
  color: #ffffff;
  border-color: #000000;
}

.custom-select-wrap {
  position: relative;
  width: 100%;
}

.analisa-dropdown-wrap select {
  width: 100%;
  padding: 0.75rem 1.15rem;
  background: #f9fafb;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-family: var(--font-body);
  font-weight: 700;
  color: #000000;
  outline: none;
  cursor: pointer;
  appearance: none;
}

.dropdown-chevron {
  position: absolute;
  right: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: #000000;
  pointer-events: none;
}

.analisa-dropdown-wrap select:focus {
  background: #ffffff;
  border-color: #000000;
}

/* Autocomplete Investor */
.investor-autocomplete-container {
  position: relative;
  width: 100%;
}

.investor-input-wrapper {
  position: relative;
  width: 100%;
}

.investor-input-wrapper svg.inv-search-icon {
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: #000000;
}

.investor-input-wrapper input {
  width: 100%;
  padding: 0.8rem 1.25rem 0.8rem 3rem;
  background: #f9fafb;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-family: var(--font-body);
  font-weight: 600;
  color: #000000;
  outline: none;
}

.investor-input-wrapper input:focus {
  background: #ffffff;
  border-color: #000000;
}

.inv-clear-btn {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
}

.investor-suggestions-dropdown {
  position: absolute;
  top: 105%;
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-dropdown);
  z-index: 100;
  max-height: 320px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.suggestion-item {
  padding: 0.75rem 1.15rem;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition-fast);
}

.suggestion-item:hover, .suggestion-item.selected {
  background: #f4f5f7;
}

.sugg-name {
  font-weight: 700;
  font-size: 0.88rem;
  color: #000000;
}

.sugg-shares {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

/* Analisa Details & KPIs */
.analisa-grid-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.analisa-kpi-panel {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.analisa-issuer-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.analisa-ticker-badge {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 800;
  background: #000000;
  color: #ffffff;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-md);
}

.analisa-issuer-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: #000000;
}

.analisa-kpi-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.analisa-kpi-box {
  background: #f9fafb;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.analisa-kpi-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
}

.analisa-kpi-val {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: #000000;
}

.analisa-insight-card {
  background: #f9fafb;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--text-main);
}

.clean-table-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.clean-table-card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: #000000;
}

/* Legend items in Analisa charts */
.analisa-legend-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1rem;
}

.legend-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-main);
}

.legend-bullet {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 0.5rem;
}

.legend-label {
  font-weight: 600;
}

.legend-pct {
  font-family: var(--font-mono);
  font-weight: 700;
}

.legend-pill {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-pill);
}

.controller-pill {
  background: #000000;
  color: #ffffff;
}

.major-pill {
  background: #f3f4f6;
  color: #111827;
  border: 1px solid var(--border-subtle);
}

.substantial-pill {
  background: #f9fafb;
  color: #4b5563;
  border: 1px solid var(--border-subtle);
}

.origin-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-pill);
  background: #f3f4f6;
  border: 1px solid var(--border-subtle);
  color: #111827;
}

.category-tag {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 600;
  color: #374151;
  background: #f9fafb;
  border: 1px solid var(--border-subtle);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-xs);
}

.clean-ticker-btn, .clean-investor-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  font-weight: 700;
  color: #000000;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.clean-ticker-btn:hover, .clean-investor-btn:hover {
  color: #4b5563;
}

/* Charts Containers */
.chart-canvas-wrap {
  position: relative;
  width: 100%;
  min-height: 260px;
}

/* Mobile Sidebar Controls (Desktop Default: Hidden) */
.btn-hamburger {
  display: none;
}

.btn-sidebar-close {
  display: none;
}

.sidebar-backdrop {
  display: none;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .sidebar {
    width: 220px;
  }
  .dash-dual-grid, .dash-flow-grid, .bm-dual-grid, .analisa-grid-two-col, .analisa-charts-grid {
    grid-template-columns: 1fr;
  }
  .kpi-cards-grid, .mom-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  /* Mobile App Shell & Layout */
  .layout-wrapper {
    flex-direction: column;
    min-height: 100vh;
  }

  .main-wrapper {
    width: 100%;
    min-width: 0;
    overflow-x: hidden;
  }

  /* Mobile Drawer Sidebar Navigation */
  .sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 99;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .sidebar-backdrop.active {
    opacity: 1;
    pointer-events: auto;
  }

  .sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: 290px;
    max-width: 85vw;
    height: 100vh;
    z-index: 100;
    background: #ffffff;
    border-right: 1px solid var(--border-subtle);
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: none;
    display: flex;
    flex-direction: column;
    padding: 1.25rem 1.25rem 2rem 1.25rem;
  }

  .sidebar.mobile-open {
    transform: translateX(0);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
  }

  [data-theme="dark"] .sidebar {
    background: #111827;
    border-color: #1f2937;
  }

  body.mobile-nav-lock {
    overflow: hidden !important;
  }

  .sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-subtle);
  }

  .btn-sidebar-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background: transparent;
    border: 1px solid var(--border-subtle);
    cursor: pointer;
    color: #64748b;
    transition: var(--transition-fast);
  }

  .btn-sidebar-close:hover {
    background: #f1f5f9;
    color: #0f172a;
  }

  [data-theme="dark"] .btn-sidebar-close {
    border-color: #334155;
    color: #cbd5e1;
  }

  /* Topbar & Hamburger Button */
  .topbar {
    padding: 0.75rem 1rem;
    gap: 0.75rem;
  }

  .topbar-left {
    flex: 0 0 38px;
  }

  .btn-hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    cursor: pointer;
    color: #0f172a;
    transition: var(--transition-fast);
  }

  .btn-hamburger:hover {
    background: #f1f5f9;
  }

  [data-theme="dark"] .btn-hamburger {
    background: #182234;
    border-color: #334155;
    color: #f8fafc;
  }

  .header-disclaimer-banner {
    font-size: 0.75rem;
    gap: 6px;
    line-height: 1.35;
  }

  .header-disclaimer-banner i,
  .header-disclaimer-banner svg {
    width: 15px;
    height: 15px;
    min-width: 15px;
  }

  /* Page Content & Spacing */
  .page-content {
    padding: 1rem 0.85rem;
    gap: 1.25rem;
  }

  /* Hero Banners */
  .dash-hero-banner,
  .stock-hero-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 1.25rem;
  }

  .dash-hero-title {
    font-size: 1.35rem;
  }

  .dash-hero-right {
    align-items: stretch;
    width: 100%;
  }

  .dash-refresh-btn {
    width: 100%;
    justify-content: center;
  }

  /* Bandarmologi Tab Navigation */
  .bm-tab-card {
    padding: 0.3rem;
    width: 100%;
  }

  .bm-tab-list {
    display: flex;
    width: 100%;
    gap: 0.35rem;
  }

  .bm-tab-btn {
    flex: 1;
    justify-content: center;
    padding: 0.6rem 0.45rem;
    font-size: 0.78rem;
    gap: 0.35rem;
    text-align: center;
  }

  .bm-tab-btn span {
    white-space: normal;
    line-height: 1.25;
  }

  .bm-tab-btn svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
  }

  /* Bandarmologi Stock Selector (Fix Button Clipping on Mobile) */
  .bm-ticker-bar,
  .analisa-selector-card {
    padding: 1.15rem 1rem;
  }

  .bm-ticker-input-wrap {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
    gap: 0.5rem;
  }

  .bm-ticker-input-wrap input {
    flex: 1;
    width: 100%;
    min-width: 0;
    padding: 0.65rem 0.85rem;
    font-size: 0.9rem;
  }

  .bm-ticker-input-wrap button,
  .bm-ticker-input-wrap .btn {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 0.65rem 1.15rem;
    font-size: 0.85rem;
    font-weight: 700;
  }

  /* Bandarmologi Controls */
  .bm-timeframe-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 1rem;
  }

  .tf-left,
  .tf-right {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    width: 100%;
  }

  .chips-container {
    flex-wrap: wrap;
    width: 100%;
    gap: 0.4rem;
  }

  .clean-chip {
    font-size: 0.76rem;
    padding: 0.45rem 0.75rem;
  }

  /* Filter Bars */
  .mom-filter-bar,
  .bm-filter-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
    padding: 1rem;
  }

  .mom-filter-group {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .mom-filter-select,
  .mom-filter-input {
    width: 100%;
    min-width: 100%;
  }

  /* Inline Top Pagination */
  .mom-inline-pagination-wrap {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .mom-pag-controls {
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.25rem;
  }

  .pag-btn-sm {
    min-width: 28px;
    height: 28px;
    padding: 0 6px;
    font-size: 0.74rem;
  }

  /* Donut & Origin Chart Cards */
  .analisa-donut-body {
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    padding: 1rem;
  }

  .analisa-donut-canvas-wrap {
    width: 100%;
    max-width: 240px;
    height: 240px;
  }

  .analisa-legend-list {
    width: 100%;
  }

  .legend-item-card {
    padding: 0.55rem 0.75rem;
  }

  /* KPI Grids */
  .kpi-cards-grid,
  .mom-kpi-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .table-meta-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding: 1rem;
  }

  .insight-box {
    padding: 1rem;
  }

  /* Smooth Touch Tables */
  .table-scroll-container {
    -webkit-overflow-scrolling: touch;
  }

  .clean-data-table {
    min-width: 600px;
  }
}

@media (max-width: 480px) {
  .topbar {
    padding: 0.6rem 0.75rem;
  }

  .header-disclaimer-banner {
    font-size: 0.7rem;
    line-height: 1.3;
  }

  .stock-hero-fullname {
    font-size: 1.2rem;
  }

  .stock-hero-badge {
    font-size: 1.1rem;
    padding: 0.35rem 0.75rem;
  }

  .pag-btn-sm {
    min-width: 26px;
    height: 26px;
    padding: 0 4px;
    font-size: 0.7rem;
  }

  .bm-ticker-input-wrap input {
    font-size: 0.85rem;
    padding: 0.55rem 0.75rem;
  }

  .bm-ticker-input-wrap button,
  .bm-ticker-input-wrap .btn {
    padding: 0.55rem 0.85rem;
    font-size: 0.8rem;
  }

  .bm-tab-btn {
    font-size: 0.73rem;
    padding: 0.5rem 0.35rem;
  }
}

/* ==========================================================================
   Dark Mode & Theme Toggle Styles
   ========================================================================== */

.theme-toggle-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #000000;
  transition: var(--transition-fast);
  flex-shrink: 0;
}

.theme-toggle-btn:hover {
  background: #f4f5f7;
  border-color: #000000;
  transform: scale(1.05);
}

.theme-toggle-btn svg,
.theme-toggle-btn [data-lucide] {
  width: 18px;
  height: 18px;
  color: #000000;
  transition: transform 0.3s ease;
}

/* Dark Mode Theme Tokens */
[data-theme="dark"] {
  --bg-app: #0b0f17;
  --bg-sidebar: #111827;
  --bg-card: #111827;
  --bg-card-subtle: #182234;
  --bg-input: #182234;
  --bg-hover: #1e293b;
  --bg-active: #ffffff;

  --text-main: #f3f4f6;
  --text-heading: #ffffff;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;
  --text-inverse: #000000;

  --border-subtle: #1f2937;
  --border-light: #1e293b;
  --border-dark: #ffffff;

  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-card-hover: 0 4px 14px rgba(0, 0, 0, 0.6);
  --shadow-dropdown: 0 10px 25px rgba(0, 0, 0, 0.5);
}

/* Dark Mode Overrides */
[data-theme="dark"] [data-lucide],
[data-theme="dark"] svg.lucide {
  color: #ffffff;
}

[data-theme="dark"] .sidebar {
  background-color: #111827;
  border-color: #1f2937;
}

[data-theme="dark"] .brand-title {
  color: #ffffff;
}

[data-theme="dark"] .brand-title span {
  color: #9ca3af;
}

[data-theme="dark"] .logo-icon-wrap {
  background: #ffffff;
}

[data-theme="dark"] .logo-icon-wrap svg,
[data-theme="dark"] .logo-icon-wrap [data-lucide] {
  color: #000000 !important;
}

[data-theme="dark"] .nav-item a {
  color: #9ca3af;
}

[data-theme="dark"] .nav-item a svg,
[data-theme="dark"] .nav-item a [data-lucide] {
  color: #9ca3af;
}

[data-theme="dark"] .nav-item:hover a {
  background-color: #1f2937;
  color: #ffffff;
}

[data-theme="dark"] .nav-item:hover a svg,
[data-theme="dark"] .nav-item:hover a [data-lucide] {
  color: #ffffff;
}

[data-theme="dark"] .nav-item.active a {
  background-color: #ffffff;
  color: #000000;
}

[data-theme="dark"] .nav-item.active a svg,
[data-theme="dark"] .nav-item.active a [data-lucide] {
  color: #000000 !important;
}

[data-theme="dark"] .sidebar-bottom-card {
  background: #182234;
  border-color: #1f2937;
}

[data-theme="dark"] .sidebar-bottom-card h4 {
  color: #ffffff;
}

[data-theme="dark"] .promo-badge {
  background: #111827;
  border-color: #374151;
  color: #ffffff;
}

[data-theme="dark"] .btn-sidebar-action {
  background: #ffffff;
  color: #000000;
}

[data-theme="dark"] .btn-sidebar-action svg {
  color: #000000 !important;
}

[data-theme="dark"] .topbar {
  background-color: #111827;
  border-color: #1f2937;
}

[data-theme="dark"] .search-box-global input {
  background-color: #182234;
  border-color: #374151;
  color: #ffffff;
}

[data-theme="dark"] .search-box-global input:focus {
  background-color: #111827;
  border-color: #ffffff;
}

[data-theme="dark"] .search-box-global .search-icon {
  color: #9ca3af;
}

[data-theme="dark"] .topbar-period-selector {
  background: #182234;
  border-color: #374151;
}

[data-theme="dark"] .topbar-period-selector select {
  color: #ffffff;
}

[data-theme="dark"] .topbar-period-selector select option {
  background: #111827;
  color: #ffffff;
}

[data-theme="dark"] .user-profile-pill {
  background: #182234;
  border-color: #374151;
}

[data-theme="dark"] .user-avatar {
  background: #ffffff;
  color: #000000;
}

[data-theme="dark"] .user-name {
  color: #ffffff;
}

[data-theme="dark"] .theme-toggle-btn {
  background: #182234;
  border-color: #374151;
  color: #ffffff;
}

[data-theme="dark"] .theme-toggle-btn:hover {
  background: #1e293b;
  border-color: #ffffff;
}

[data-theme="dark"] .theme-toggle-btn svg,
[data-theme="dark"] .theme-toggle-btn [data-lucide] {
  color: #ffffff;
}

/* Cards & Hero */
[data-theme="dark"] .dash-hero-banner,
[data-theme="dark"] .page-header-clean,
[data-theme="dark"] .dashboard-widget,
[data-theme="dark"] .dash-table-card,
[data-theme="dark"] .bm-header-card,
[data-theme="dark"] .bm-detail-section-card,
[data-theme="dark"] .bm-broker-side-card,
[data-theme="dark"] .bm-chart-card,
[data-theme="dark"] .kpi-card,
[data-theme="dark"] .mom-kpi-card,
[data-theme="dark"] .analisa-chart-card,
[data-theme="dark"] .data-table-card,
[data-theme="dark"] .analisa-mode-toggle-card,
[data-theme="dark"] .analisa-selector-card,
[data-theme="dark"] .analisa-kpi-panel,
[data-theme="dark"] .clean-table-card {
  background: #111827;
  border-color: #1f2937;
}

[data-theme="dark"] .dash-hero-title,
[data-theme="dark"] .page-title,
[data-theme="dark"] .widget-title,
[data-theme="dark"] .dash-card-title,
[data-theme="dark"] .kpi-number,
[data-theme="dark"] .kpi-value-main,
[data-theme="dark"] .analisa-select-label,
[data-theme="dark"] .analisa-issuer-title,
[data-theme="dark"] .analisa-kpi-val,
[data-theme="dark"] .clean-table-card h3 {
  color: #ffffff;
}

[data-theme="dark"] .dash-hero-badge,
[data-theme="dark"] .feature-tag,
[data-theme="dark"] .dash-widget-pill,
[data-theme="dark"] .widget-title-badge,
[data-theme="dark"] .kpi-badge-pill,
[data-theme="dark"] .mom-kpi-badge,
[data-theme="dark"] .pill-badge {
  background: #182234;
  border-color: #374151;
  color: #ffffff;
}

[data-theme="dark"] .bm-chart-half-card {
  background: #111827 !important;
  border-color: #1f2937 !important;
}

[data-theme="dark"] .badge-accum {
  background: #064e3b !important;
  color: #6ee7b7 !important;
  border-color: #047857 !important;
}

[data-theme="dark"] .badge-dist {
  background: #7f1d1d !important;
  color: #fca5a5 !important;
  border-color: #991b1b !important;
}

[data-theme="dark"] .live-pulse {
  background: #ffffff;
}

[data-theme="dark"] .btn-primary,
[data-theme="dark"] .dash-refresh-btn,
[data-theme="dark"] .btn-bm-submit,
[data-theme="dark"] .bm-search-action-btn,
[data-theme="dark"] .flow-inspect-btn {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
}

[data-theme="dark"] .btn-primary svg,
[data-theme="dark"] .dash-refresh-btn svg,
[data-theme="dark"] .btn-bm-submit svg,
[data-theme="dark"] .bm-search-action-btn svg,
[data-theme="dark"] .flow-inspect-btn svg {
  color: #000000 !important;
}

[data-theme="dark"] .btn-primary:hover,
[data-theme="dark"] .dash-refresh-btn:hover,
[data-theme="dark"] .btn-bm-submit:hover,
[data-theme="dark"] .bm-search-action-btn:hover,
[data-theme="dark"] .flow-inspect-btn:hover {
  background: #e5e7eb;
  border-color: #e5e7eb;
}

[data-theme="dark"] .btn-secondary {
  background: #182234;
  color: #ffffff;
  border-color: #374151;
}

[data-theme="dark"] .btn-secondary:hover {
  background: #1f2937;
  border-color: #ffffff;
}

/* Tables in Dark Mode */
[data-theme="dark"] .widget-header,
[data-theme="dark"] .dash-table-header,
[data-theme="dark"] .pagination-bar,
[data-theme="dark"] .table-meta-bar {
  background: #111827;
  border-color: #1f2937;
}

[data-theme="dark"] .table-scroll-container,
[data-theme="dark"] .table-scroll-wrap {
  border-color: #1f2937 !important;
  background: #111827 !important;
}

[data-theme="dark"] .clean-data-table th,
[data-theme="dark"] .clean-dash-table th,
[data-theme="dark"] .clean-table th,
[data-theme="dark"] table th {
  background: #182234 !important;
  color: #cbd5e1 !important;
  border-bottom: 2px solid #2d3748 !important;
  border-right: 1px solid #1f2937 !important;
  font-weight: 700;
  letter-spacing: 0.04em;
}

[data-theme="dark"] .clean-data-table th:last-child,
[data-theme="dark"] .clean-dash-table th:last-child,
[data-theme="dark"] .clean-table th:last-child,
[data-theme="dark"] table th:last-child {
  border-right: none !important;
}

[data-theme="dark"] .clean-data-table td,
[data-theme="dark"] .clean-dash-table td,
[data-theme="dark"] .clean-table td,
[data-theme="dark"] table td {
  background-color: #111827;
  color: #f3f4f6 !important;
  border-bottom: 1px solid #1f2937 !important;
  border-right: 1px solid #1f2937 !important;
}

[data-theme="dark"] .clean-data-table td:last-child,
[data-theme="dark"] .clean-dash-table td:last-child,
[data-theme="dark"] .clean-table td:last-child,
[data-theme="dark"] table td:last-child {
  border-right: none !important;
}

[data-theme="dark"] .clean-data-table tbody tr:nth-child(even) td,
[data-theme="dark"] .clean-dash-table tbody tr:nth-child(even) td,
[data-theme="dark"] .clean-table tbody tr:nth-child(even) td {
  background-color: #151f30 !important;
}

[data-theme="dark"] .clean-data-table tbody tr:hover td,
[data-theme="dark"] .clean-dash-table tbody tr:hover td,
[data-theme="dark"] .clean-table tbody tr:hover td,
[data-theme="dark"] table tbody tr:hover td {
  background-color: #1e293b !important;
}

[data-theme="dark"] strong,
[data-theme="dark"] .font-bold,
[data-theme="dark"] .mono-code,
[data-theme="dark"] .cell-broker-name,
[data-theme="dark"] .cell-name-strong {
  color: #ffffff !important;
}

[data-theme="dark"] .mono-rank,
[data-theme="dark"] .mono-date,
[data-theme="dark"] .cell-sub-info,
[data-theme="dark"] .table-empty-cell {
  color: #9ca3af !important;
}

[data-theme="dark"] .mono-shares {
  color: #f3f4f6 !important;
}

[data-theme="dark"] .text-buy {
  color: #4ade80 !important;
}

[data-theme="dark"] .text-sell {
  color: #f87171 !important;
}

[data-theme="dark"] .text-dash {
  color: #4b5563 !important;
}

[data-theme="dark"] .clean-ticker-btn {
  background: #ffffff !important;
  color: #000000 !important;
  border-color: #ffffff !important;
  font-weight: 800;
}

[data-theme="dark"] .clean-ticker-btn:hover {
  background: #e5e7eb !important;
}

[data-theme="dark"] .clean-investor-btn {
  color: #ffffff !important;
  border-color: #374151 !important;
  background: #182234 !important;
}

[data-theme="dark"] .clean-investor-btn:hover {
  background: #1e293b !important;
  border-color: #ffffff !important;
}

[data-theme="dark"] .table-action-icon-btn {
  background: #182234 !important;
  border-color: #374151 !important;
  color: #ffffff !important;
}

[data-theme="dark"] .table-action-icon-btn svg {
  color: #ffffff !important;
}

[data-theme="dark"] .table-action-icon-btn:hover {
  background: #ffffff !important;
  border-color: #ffffff !important;
  color: #000000 !important;
}

[data-theme="dark"] .table-action-icon-btn:hover svg {
  color: #000000 !important;
}

[data-theme="dark"] .global-search-container,
[data-theme="dark"] .search-bar,
[data-theme="dark"] .topbar-search-box {
  background: #182234 !important;
  border-color: #374151 !important;
}

[data-theme="dark"] .global-search-container input,
[data-theme="dark"] .search-bar input,
[data-theme="dark"] .topbar-search-box input {
  color: #ffffff !important;
}

[data-theme="dark"] .global-search-container input::placeholder,
[data-theme="dark"] .search-bar input::placeholder,
[data-theme="dark"] .topbar-search-box input::placeholder {
  color: #9ca3af !important;
}

[data-theme="dark"] .global-search-container svg,
[data-theme="dark"] .search-bar svg,
[data-theme="dark"] .topbar-search-box svg {
  color: #ffffff !important;
}

[data-theme="dark"] .flow-inspect-btn {
  background: #ffffff !important;
  color: #000000 !important;
  border-color: #ffffff !important;
}

[data-theme="dark"] .flow-inspect-btn svg {
  color: #000000 !important;
}

[data-theme="dark"] .flow-inspect-btn:hover {
  background: #e5e7eb !important;
}

[data-theme="dark"] .broker-pill-tag {
  background: #182234;
  border-color: #374151;
  color: #ffffff;
}

[data-theme="dark"] .broker-pill-tag.buyer {
  background: #064e3b;
  color: #6ee7b7;
  border-color: #047857;
}

[data-theme="dark"] .broker-pill-tag.seller {
  background: #7f1d1d;
  color: #fca5a5;
  border-color: #991b1b;
}

[data-theme="dark"] .action-pill-buy {
  background: #064e3b;
  color: #6ee7b7;
  border-color: #047857;
}

[data-theme="dark"] .action-pill-sell {
  background: #7f1d1d;
  color: #fca5a5;
  border-color: #991b1b;
}

[data-theme="dark"] .role-badge,
[data-theme="dark"] .action-pill-transfer {
  background: #182234;
  color: #d1d5db;
  border-color: #374151;
}

/* Bandarmologi in Dark Mode */
[data-theme="dark"] .bm-tab-buttons {
  background: #111827;
  border-color: #1f2937;
}

[data-theme="dark"] .bm-tab-btn {
  color: #9ca3af;
}

[data-theme="dark"] .bm-tab-btn svg {
  color: #9ca3af;
}

[data-theme="dark"] .bm-tab-btn:hover {
  color: #ffffff;
  background: #182234;
}

[data-theme="dark"] .bm-tab-btn.active {
  background: #ffffff;
  color: #000000;
}

[data-theme="dark"] .bm-tab-btn.active svg {
  color: #000000 !important;
}

[data-theme="dark"] .bm-ticker-bar,
[data-theme="dark"] .stock-hero-banner,
[data-theme="dark"] .bm-timeframe-bar,
[data-theme="dark"] .single-large-chart-card,
[data-theme="dark"] .bm-detail-section-card,
[data-theme="dark"] .bm-table-column {
  background: #111827;
  border-color: #1f2937;
}

[data-theme="dark"] .stock-hero-badge {
  background: #ffffff;
  color: #000000;
}

[data-theme="dark"] .stock-hero-fullname,
[data-theme="dark"] .sh-val,
[data-theme="dark"] .table-section-title,
[data-theme="dark"] .bm-prompt-content h4 {
  color: #ffffff;
}

[data-theme="dark"] .mode-toggle-pill-group {
  background: #182234;
  border-color: #1f2937;
}

[data-theme="dark"] .mode-pill-btn {
  color: #9ca3af;
}

[data-theme="dark"] .mode-pill-btn:hover {
  color: #ffffff;
}

[data-theme="dark"] .mode-pill-btn.active-buy,
[data-theme="dark"] .mode-pill-btn.active-sell {
  background: #ffffff;
  color: #000000;
}

[data-theme="dark"] .bm-scope-badge {
  background: #182234;
  border-color: #374151;
  color: #9ca3af;
}

[data-theme="dark"] .bm-detail-filter-box {
  background: #182234;
  border-color: #1f2937;
}

[data-theme="dark"] .bm-detail-placeholder {
  background: #111827;
  border-color: #374151;
}

[data-theme="dark"] .bm-prompt-icon {
  background: #182234;
}

[data-theme="dark"] .bm-prompt-icon svg {
  color: #ffffff;
}

[data-theme="dark"] .bm-column-header.buyer {
  background: #064e3b;
}

[data-theme="dark"] .bm-column-header.buyer .column-badge {
  color: #6ee7b7;
}

[data-theme="dark"] .bm-column-header.seller {
  background: #7f1d1d;
}

[data-theme="dark"] .bm-column-header.seller .column-badge {
  color: #fca5a5;
}

[data-theme="dark"] .bm-ticker-input-wrap input,
[data-theme="dark"] .bm-date-field {
  background: #182234;
  border-color: #374151;
}

[data-theme="dark"] .bm-ticker-input-wrap input,
[data-theme="dark"] .bm-date-field input[type="date"] {
  color: #ffffff;
}

[data-theme="dark"] .clean-chip,
[data-theme="dark"] .pop-chip,
[data-theme="dark"] .pop-chip-inv,
[data-theme="dark"] .page-btn {
  background: #182234;
  border-color: #374151;
  color: #f3f4f6;
}

[data-theme="dark"] .clean-chip:hover,
[data-theme="dark"] .pop-chip:hover,
[data-theme="dark"] .pop-chip-inv:hover,
[data-theme="dark"] .page-btn:hover:not(:disabled) {
  border-color: #ffffff;
  background: #1e293b;
}

[data-theme="dark"] .clean-chip.active,
[data-theme="dark"] .pop-chip.active,
[data-theme="dark"] .pop-chip-inv.active,
[data-theme="dark"] .page-btn.active {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
}

[data-theme="dark"] .bm-side-header.buyer {
  background: #064e3b;
  color: #6ee7b7;
}

[data-theme="dark"] .bm-side-header.seller {
  background: #7f1d1d;
  color: #fca5a5;
}

/* MoM in Dark Mode */
[data-theme="dark"] .mom-filter-bar,
[data-theme="dark"] .quick-filter-chips,
[data-theme="dark"] .mom-source-indicator-bar {
  background: #111827;
  border-color: #1f2937;
}

[data-theme="dark"] .mom-search-box input,
[data-theme="dark"] .mom-filter-select-wrap select,
[data-theme="dark"] .analisa-dropdown-wrap select,
[data-theme="dark"] .investor-input-wrapper input {
  background: #182234;
  border-color: #374151;
  color: #ffffff;
}

[data-theme="dark"] .mom-filter-select-wrap select option,
[data-theme="dark"] .analisa-dropdown-wrap select option {
  background: #111827;
  color: #ffffff;
}

/* Analisa in Dark Mode */
[data-theme="dark"] .mode-btn {
  background: #182234;
  border-color: #374151;
  color: #9ca3af;
}

[data-theme="dark"] .mode-btn svg {
  color: #9ca3af;
}

[data-theme="dark"] .mode-btn.active {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
}

[data-theme="dark"] .mode-btn.active svg {
  color: #000000 !important;
}

[data-theme="dark"] .analisa-ticker-badge {
  background: #ffffff;
  color: #000000;
}

[data-theme="dark"] .analisa-kpi-box,
[data-theme="dark"] .analisa-insight-card {
  background: #182234;
  border-color: #1f2937;
}

[data-theme="dark"] .investor-suggestions-dropdown {
  background: #111827;
  border-color: #374151;
}

[data-theme="dark"] .suggestion-item {
  border-color: #1f2937;
}

[data-theme="dark"] .suggestion-item:hover,
[data-theme="dark"] .suggestion-item.selected {
  background: #182234;
}

[data-theme="dark"] .sugg-name {
  color: #ffffff;
}

[data-theme="dark"] .controller-pill {
  background: #ffffff;
  color: #000000;
}

[data-theme="dark"] .major-pill,
[data-theme="dark"] .substantial-pill,
[data-theme="dark"] .origin-tag,
[data-theme="dark"] .category-tag {
  background: #182234;
  border-color: #374151;
  color: #e5e7eb;
}

/* ===================================================================
   TABLE PAGINATION COMPONENT
   =================================================================== */
.mom-inline-pagination-wrap {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.mom-count-summary {
  font-size: 0.8rem;
  color: #64748b;
  white-space: nowrap;
  user-select: none;
}

.table-pagination-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  border-radius: 0 0 12px 12px;
  gap: 16px;
  flex-wrap: wrap;
}

.pagination-status {
  font-size: 0.85rem;
  font-weight: 500;
  color: #64748b;
  user-select: none;
}

.pagination-buttons {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.page-number-group {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.pag-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #334155;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
  user-select: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.pag-btn-sm {
  min-width: 28px;
  height: 28px;
  padding: 0 6px;
  font-size: 0.78rem;
  border-radius: 6px;
}

.pag-btn i,
.pag-btn svg {
  width: 15px;
  height: 15px;
  stroke-width: 2.2;
}

.pag-btn-sm i,
.pag-btn-sm svg {
  width: 13px;
  height: 13px;
  stroke-width: 2.2;
}

.pag-btn:hover:not(:disabled) {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a;
  transform: translateY(-1px);
}

.pag-btn.active {
  background: #0f172a !important;
  border-color: #0f172a !important;
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.2);
}

.pag-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
  background: #f8fafc;
  border-color: #e2e8f0;
}

/* Dark Mode Overrides for Pagination */
[data-theme="dark"] .table-pagination-footer {
  background: #1e293b;
  border-top-color: #334155;
}

[data-theme="dark"] .mom-count-summary {
  color: #94a3b8;
}

[data-theme="dark"] .mom-count-summary strong,
[data-theme="dark"] .mom-count-summary span {
  color: #ffffff !important;
}

[data-theme="dark"] .pagination-status {
  color: #94a3b8;
}

[data-theme="dark"] .pag-btn {
  background: #0f172a;
  border-color: #334155;
  color: #cbd5e1;
  box-shadow: none;
}

[data-theme="dark"] .pag-btn:hover:not(:disabled) {
  background: #334155;
  color: #ffffff;
  border-color: #475569;
}

[data-theme="dark"] .pag-btn.active {
  background: #3b82f6 !important;
  border-color: #3b82f6 !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
}

[data-theme="dark"] .pag-btn:disabled {
  background: #1e293b;
  border-color: #334155;
  opacity: 0.3;
}

/* ===================================================================
   ANALISA DONUT CHARTS & LEGEND CARDS
   =================================================================== */
.analisa-donut-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 8px 0;
  width: 100%;
}

.analisa-donut-canvas-wrap {
  width: 100%;
  height: 240px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.analisa-chart-legend {
  width: 100%;
}

.analisa-legend-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.legend-item-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  gap: 12px;
  transition: all 0.15s ease-in-out;
}

.legend-item-card:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  transform: translateX(2px);
}

.legend-item-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.legend-color-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.legend-item-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.legend-item-right {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-shrink: 0;
  text-align: right;
}

.legend-item-pct {
  font-size: 0.82rem;
  font-weight: 700;
  color: #0f172a;
}

.legend-item-shares {
  font-size: 0.72rem;
  color: #64748b;
}

/* Dark Mode Overrides for Donut Legend */
[data-theme="dark"] .legend-item-card {
  background: #182234;
  border-color: #334155;
}

[data-theme="dark"] .legend-item-card:hover {
  background: #1e293b;
  border-color: #475569;
}

[data-theme="dark"] .legend-item-name {
  color: #e2e8f0;
}

[data-theme="dark"] .legend-item-pct {
  color: #ffffff;
}

[data-theme="dark"] .legend-item-shares {
  color: #94a3b8;
}

/* ===================================================================
   ANALISA VIEW SPACING & INSIGHT CARD
   =================================================================== */
#contentAnalisaStock,
#contentAnalisaInvestor {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
}

.insight-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.25rem 1.75rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.insight-content {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.insight-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.insight-text {
  font-size: 0.85rem;
  line-height: 1.65;
  color: #475569;
  margin: 0;
}

[data-theme="dark"] .insight-box {
  background: #182234;
  border-color: #334155;
}

[data-theme="dark"] .insight-title {
  color: #f8fafc;
}

[data-theme="dark"] .insight-text {
  color: #cbd5e1;
}

/* Topbar Sub-Elements */
.topbar-left {
  flex: 0 0 40px;
}

.topbar-center {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.topbar-actions {
  flex: 0 0 40px;
  display: flex;
  justify-content: flex-end;
}

/* Header Disclaimer Banner (Bold, Large, Centered) */
.header-disclaimer-banner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.96rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.01em;
  text-align: center;
  line-height: 1.4;
  user-select: none;
}

.header-disclaimer-banner i,
.header-disclaimer-banner svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.5;
  color: #dc2626;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

[data-theme="dark"] .header-disclaimer-banner {
  color: #f8fafc;
}

[data-theme="dark"] .header-disclaimer-banner i,
[data-theme="dark"] .header-disclaimer-banner svg {
  color: #ef4444;
}

