/* ── TamingTrade — Main Stylesheet ─────────────────────────────────────── */

/* 1. Design Tokens */
:root, [data-theme="light"] {
  --color-bg:          #f8fafc;
  --color-surface:     #ffffff;
  --color-surface-2:   #f1f5f9;
  --color-border:      #e2e8f0;
  --color-primary:     #0284c7;
  --color-primary-dim: #e0f2fe;
  --color-text:        #0f172a;
  --color-text-muted:  #64748b;
  --color-success:     #059669;
  --color-danger:      #dc2626;

  --font-sans:    'Inter', system-ui, sans-serif;
  --radius:       8px;
  --radius-lg:    14px;
  --shadow:       0 4px 20px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04);
  --transition:   0.2s ease;
}

[data-theme="dark"] {
  --color-bg:          #1c2838;
  --color-surface:     #26364c;
  --color-surface-2:   #31445e;
  --color-border:      #415777;
  --color-primary:     #38bdf8;
  --color-primary-dim: #0e4e6d;
  --color-text:        #f8fafc;
  --color-text-muted:  #94a3b8;
  --color-success:     #3fb950;
  --color-danger:      #f85149;

  --shadow:            0 4px 24px rgba(0, 0, 0, 0.4);
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
}

a { color: var(--color-primary); text-decoration: none; transition: opacity var(--transition); }
a:hover { opacity: 0.8; }

/* 3. Layout */
.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

main.container { flex: 1; padding-top: 1.25rem; padding-bottom: 2rem; }

/* 4. Header */
.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-left: auto;
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  background: none;
  padding: 0;
}

.header-logo-img {
  height: 36px;
  width: auto;
  object-fit: contain;
  display: block;
}

.site-header nav { display: flex; align-items: center; gap: 1.25rem; }
.site-header nav a {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  font-weight: 500;
  transition: color var(--transition);
}
.site-header nav a:hover { color: var(--color-text); opacity: 1; }

/* 5. Hero */
.hero {
  padding: 1.5rem 0 0.9rem;
}

.hero h1 {
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--color-text) 40%, var(--color-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.25rem;
}

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

/* 6. Card */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  /* No overflow:hidden — that breaks position:sticky on thead */
  box-shadow: var(--shadow);
  margin-top: 1rem;
  animation: fadeUp 0.35s ease both;
}
/* Clip rounded corners on the table-wrap instead */
.card > .table-wrap:last-child { border-radius: 0 0 var(--radius-lg) var(--radius-lg); overflow: hidden; }

.card-header {
  padding: 0.65rem 1.25rem;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--color-surface-2);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  /* Sticky so it stays visible while table scrolls */
  position: sticky;
  top: 60px;
  z-index: 3;
  box-shadow: 0 1px 0 var(--color-border);
}

.card-header h2 {
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* 7. Badge */
.badge {
  display: inline-block;
  background: var(--color-primary-dim);
  color: var(--color-primary);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

/* 8. Table */
.table-wrap {
  overflow: auto;                        /* scrolls both axes */
  -webkit-overflow-scrolling: touch;
  /* Cap height so the table scrolls inside its own box — this makes
     thead position:sticky work (sticky is relative to scroll container) */
  max-height: calc(100vh - 160px);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

/* thead is sticky at the top of the .table-wrap scroll container — not the viewport.
   This is the only reliable approach when an overflow ancestor is present. */
thead {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--color-surface-2);
}

th {
  padding: 0.5rem 0.9rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  border-bottom: 2px solid var(--color-border);
  white-space: nowrap;
  background: var(--color-surface-2); /* must match thead bg to cover scrolling rows */
}

td {
  padding: 0.42rem 0.9rem;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
  white-space: nowrap;
}

tbody tr { transition: background var(--transition); }
tbody tr:hover { background: #f1f5f9; }
tbody tr:last-child td { border-bottom: none; }

#company-tenders-table th, #company-tenders-table td {
  text-align: left;
}

/* 9. Empty State */
.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--color-text-muted);
}

.empty-state code {
  background: var(--color-surface-2);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-size: 0.85rem;
  color: var(--color-primary);
}

/* 10. Footer */
.site-footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: 1.2rem 0;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-align: center;
}

/* 11. Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* 12. Responsive */
@media (max-width: 640px) {
  .site-header .container { height: 52px; }
  .hero { padding: 1rem 0 0.6rem; }
  th, td { padding: 0.38rem 0.65rem; }
  .table-wrap { max-height: calc(100vh - 130px); }
}

/* 13. Nav active state & divider */
.nav-link.active {
  color: var(--color-text) !important;
  opacity: 1;
}
.nav-divider { color: var(--color-border); }
.nav-icon { font-size: 0.85em; }

/* 14. Filter Bar */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1rem;
  padding: 1.25rem 0 0.5rem;
}
.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.filter-group label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
}
.filter-group select {
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0.45rem 0.85rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  cursor: pointer;
  min-width: 220px;
  transition: border-color var(--transition);
}
.filter-group select:hover,
.filter-group select:focus { border-color: var(--color-primary); outline: none; }

/* 15. Buttons */
.btn {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  text-decoration: none;
  border: none;
}
.btn-ghost {
  background: #ffffff;
  color: #475569;
  border: 1px solid #cbd5e1;
}
.btn-ghost:hover { background: #f1f5f9; color: #0f172a; opacity: 1; }
.btn-ghost.disabled { opacity: 0.35; pointer-events: none; }
.btn-primary {
  background: #0284c7;
  color: #ffffff;
  border: 1px solid #0284c7;
}
.btn:disabled, .btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
  filter: grayscale(0.4);
}


/* 16. Pills & Tags */
.pill {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
}
.pill-green  { background: #d1fae5; color: #047857; }
.pill-red    { background: #fee2e2; color: #b91c1c; }
.pill-gray   { background: #f1f5f9; color: #64748b; }
.pill-blue   { background: #e0f2fe; color: #0369a1; }

.tag {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  padding: 0.1rem 0.45rem;
  border-radius: 4px;
  font-size: 0.78rem;
  font-family: monospace;
  color: #0284c7;
}

/* 17. Clickable rows */
.clickable-row { cursor: pointer; }

/* 18. Search input */
.search-wrap { margin-left: auto; }
.search-wrap input {
  background: var(--color-surface-2);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0.4rem 0.85rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  width: 200px;
  transition: border-color var(--transition);
}
.search-wrap input:focus { outline: none; border-color: var(--color-primary); }

/* 19. Pagination */
.pagination {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}
.page-info {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  padding: 0 0.5rem;
}
.card-footer {
  padding: 0.65rem 1.25rem;
  border-top: 1px solid var(--color-border);
  background: var(--color-surface-2);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* 20. Table cell helpers */
.num        { text-align: right; font-variant-numeric: tabular-nums; }
.text-muted { color: var(--color-text-muted); }
.positive   { color: var(--color-success); }
.negative   { color: var(--color-danger); }
.comment-cell { max-width: 260px; white-space: normal; font-size: 0.82rem; color: var(--color-text-muted); }
.title-cell   { max-width: 340px; white-space: normal; font-size: 0.82rem; }
.companies-cell { max-width: 200px; white-space: normal; font-size: 0.78rem; color: var(--color-text-muted); }

/* 21. Hero sub-label */
.hero h1 .hero-sub {
  font-size: 0.45em;
  font-weight: 500;
  background: none;
  -webkit-text-fill-color: var(--color-text-muted);
  color: var(--color-text-muted);
  vertical-align: middle;
  margin-left: 0.5rem;
  letter-spacing: 0.02em;
}

/* 22. Tender link */
.tender-link {
  font-family: monospace;
  font-size: 0.8rem;
  color: var(--color-primary);
}

/* 23. Stock Section */
.stock-section {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-top: 1.5rem;
  animation: fadeUp 0.4s ease both;
  animation-delay: 0.05s;
}

.stock-header {
  padding: 1rem 1.5rem 0.75rem;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.stock-price-block {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.stock-current {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.stock-current small {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

.stock-change {
  font-size: 0.95rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.stock-name {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  align-self: center;
}

.stock-note {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  align-self: flex-end;
  padding-bottom: 0.1rem;
}

.stock-chart-wrap {
  padding: 1rem 1.25rem 1.25rem;
}

.stock-error {
  padding: 1.2rem 1.5rem;
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

/* Spinner */
.stock-spinner {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--color-text-muted);
  font-size: 0.875rem;
  padding: 0.25rem 0;
}
.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid var(--color-border);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* 24. Period buttons */
.period-bar {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.period-btn {
  background: var(--color-surface-2);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  letter-spacing: 0.02em;
}
.period-btn:hover {
  background: var(--color-border);
  color: var(--color-text);
}
.period-btn.active {
  background: var(--color-primary-dim);
  color: var(--color-primary);
  border-color: var(--color-primary-dim);
}
.period-reset {
  margin-left: 0.4rem;
  border-color: transparent;
  background: transparent;
  color: var(--color-text-muted);
}
.period-reset:hover {
  background: var(--color-surface-2);
  border-color: var(--color-border);
}

/* 25. Selected rating row */
.rating-row { cursor: pointer; }
.rating-selected {
  background: rgba(88, 166, 255, 0.07) !important;
  outline: 1px solid var(--color-primary-dim);
  outline-offset: -1px;
}
.rating-selected td { color: var(--color-text); }

/* 26. Chart context banner */
.chart-context {
  padding: 0.45rem 1.5rem;
  background: rgba(241, 161, 13, 0.08);
  border-bottom: 1px solid rgba(241, 161, 13, 0.2);
  font-size: 0.8rem;
  color: #f1a10d;
  font-weight: 500;
}

/* 27. Hint text */
.hint-text {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-left: auto;
  font-style: italic;
}

/* ── 28. Dashboard compact topbar ─────────────────────────────────────── */
.dash-topbar {
  display: flex;
  align-items: flex-end;
  flex-wrap: nowrap;          /* never wraps — keeps controls on one line */
  gap: 0.75rem;
  padding: 0.9rem 0 0.85rem;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 1.25rem;
}

/* ticker tag shown inline inside a label */
.tag-inline {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  padding: 0.05rem 0.35rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-family: monospace;
  color: var(--color-primary);
  vertical-align: middle;
  margin-left: 0.3rem;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 400;
}

.dash-topbar-filters {
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.filter-group-inline {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.filter-group-inline label {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--color-text-muted);
}
.filter-group-inline select {
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0.3rem 0.7rem;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  cursor: pointer;
  min-width: 180px;
  transition: border-color var(--transition);
}
.filter-group-inline select:focus { outline: none; border-color: var(--color-primary); }

.btn-sm { padding: 0.28rem 0.6rem; font-size: 0.75rem; align-self: flex-end; }

/* ── 29. Dashboard top row (Left: Chart, Right: Analysis Equal Height) ── */
.dashboard-top-row {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}

@media (max-width: 1100px) {
  .dashboard-top-row { grid-template-columns: 1fr; }
}

.chart-column, .analytics-column {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.chart-column .stock-section { margin-top: 0; }
.analytics-column .analytics-section { margin-top: 0; }

/* Tighter chart canvas */
.stock-chart-wrap canvas { max-height: 260px; }

/* ── 30. Ratings column under Stock Chart ────────────────────────────── */
.ratings-column {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ratings-column-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 0 0.6rem;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 0.75rem;
}
.ratings-column-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
}

.ratings-cards-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}
@media (max-width: 600px) {
  .ratings-cards-list {
    grid-template-columns: 1fr;
  }
}

/* ── 31. Rating card ──────────────────────────────────────────────────── */
.rating-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0.8rem 1rem;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), transform 0.15s ease;
  animation: fadeUp 0.25s ease both;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.rating-card:hover {
  border-color: var(--color-primary-dim);
  background: var(--color-surface-2);
  transform: translateY(-2px);
}
.rating-card.rating-selected {
  border-color: var(--color-primary) !important;
  background: rgba(88,166,255,0.06) !important;
  transform: translateY(-2px);
}

/* Top row: tender tag + profit */
.rc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.55rem;
}
.rc-profit {
  font-size: 0.95rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* Buy / Sell trade rows */
.rc-trades {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 0.45rem;
}
.rc-trade {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
}
.rc-trade-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  text-align: center;
}
.buy-label  { background: #d1fae5; color: #047857; }
.sell-label { background: #fee2e2; color: #b91c1c; }

.rc-trade-date  { color: var(--color-text-muted); }
.rc-trade-value { font-variant-numeric: tabular-nums; font-weight: 500; text-align: right; }

/* Duration */
.rc-meta {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}
.rc-meta-item {
  font-size: 0.72rem;
  color: var(--color-text-muted);
}

/* Comment */
.rc-comment {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  line-height: 1.45;
  padding-top: 0.45rem;
  border-top: 1px solid var(--color-border);
  margin-top: 0.1rem;
}

/* Smaller tag variant */
.tag-sm {
  font-size: 0.7rem;
  padding: 0.05rem 0.35rem;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  font-family: monospace;
  color: #0284c7;
}

/* ── 32. Rating Analytics Component & 2-Column Cards ──────────────────── */
.analytics-section {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  margin-top: 1.25rem;
  overflow: hidden;
  animation: fadeUp 0.4s ease both;
  width: 100%;
}

.analytics-header {
  padding: 0.75rem 1.1rem;
  background: var(--color-surface-2);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.analytics-header-title {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.analytics-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

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

.analytics-signal-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  letter-spacing: 0.02em;
}
.signal-stark-positive { background: #d1fae5; color: #047857; border: 1px solid #a7f3d0; }
.signal-stark-negative { background: #fee2e2; color: #b91c1c; border: 1px solid #fca5a5; }
.signal-moderat-positive { background: #e0f2fe; color: #0369a1; border: 1px solid #bae6fd; }
.signal-negativ { background: #fee2e2; color: #b91c1c; border: 1px solid #fca5a5; }
.signal-neutral { background: #f1f5f9; color: #64748b; border: 1px solid #cbd5e1; }
.signal-beobachtung { background: #fef3c7; color: #b45309; border: 1px solid #fde68a; }

.analytics-body {
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* 2-Card Grid for Win / Loss / Duration / Tender Value */
.analytics-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

@media (max-width: 640px) {
  .analytics-cards-grid {
    grid-template-columns: 1fr;
  }
}

/* Individual Feature Card */
.analytics-card {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0.85rem 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.analytics-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(15,23,42,0.08);
}

/* Win Card Styling */
.card-win {
  border-color: #a7f3d0;
  background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 100%);
}
.card-win:hover {
  border-color: #059669;
}
.badge-win {
  background: #d1fae5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

/* Loss Card Styling */
.card-loss {
  border-color: #fca5a5;
  background: linear-gradient(180deg, #fef2f2 0%, #ffffff 100%);
}
.card-loss:hover {
  border-color: #dc2626;
}
.badge-loss {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fca5a5;
}

/* Duration Card Styling */
.card-duration {
  border-color: #bae6fd;
  background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 100%);
}
.card-duration:hover {
  border-color: #0284c7;
}
.badge-info {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

/* Tender Card Styling */
.card-tender {
  border-color: #fde68a;
  background: linear-gradient(180deg, #fffbeb 0%, #ffffff 100%);
}
.card-tender:hover {
  border-color: #d97706;
}
.badge-amber {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}

/* Card Elements */
.ac-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.ac-main-stat {
  display: flex;
  flex-direction: column;
}

.ac-stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.ac-stat-value small {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.ac-stat-label {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  font-weight: 500;
  margin-top: 0.1rem;
}

.ac-metrics {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding-top: 0.5rem;
  border-top: 1px solid #e2e8f0;
}

.ac-metric-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
}

.ac-m-label {
  color: var(--color-text-muted);
}

.ac-m-val {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* Progress bar section */
.analytics-progress-section {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0.65rem 0.85rem;
}

.aps-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.progress-bar-wrap {
  width: 100%;
  height: 7px;
  background: #fee2e2;
  border-radius: 999px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: var(--color-success);
  border-radius: 999px;
  transition: width 0.4s ease;
}

/* Algorithmic Takeaways / Insights Banner */
.insights-banner {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: var(--radius);
  padding: 0.75rem 0.9rem;
}

.insights-header {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.insights-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.insights-list li {
  font-size: 0.75rem;
  color: var(--color-text);
  line-height: 1.4;
  position: relative;
  padding-left: 1.1rem;
}

.insights-list li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-size: 0.68rem;
  top: 1px;
}

/* ── 33. Header Actions & Email Signup Toast ─────────────────────────── */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
}

.btn-email-signup {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  white-space: nowrap;
}

.email-toast {
  position: fixed;
  top: 72px;
  right: 24px;
  z-index: 1000;
  background: var(--color-surface);
  border: 1px solid var(--color-primary);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  border-radius: var(--radius-lg);
  padding: 0.85rem 1.2rem;
  color: var(--color-text);
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.email-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast-content {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.toast-icon {
  font-size: 1.1rem;
}

.toast-close {
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  font-size: 0.9rem;
  margin-left: 0.5rem;
}
.toast-close:hover {
  color: var(--color-text);
}

/* ── 34. Legal Container ─────────────────────────────────────────────── */
.legal-container {
  max-width: 900px;
  margin: 1.5rem auto 2.5rem;
}

.legal-card {
  padding: 0;
  overflow: hidden;
}

.legal-content {
  padding: 1.5rem 1.75rem;
}

.legal-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.75rem;
}

.legal-body h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-top: 1.1rem;
  margin-bottom: 0.35rem;
}

.legal-body p {
  font-size: 0.86rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

/* ── 35. Compact Footer ─────────────────────────────────────────── */
.site-footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: 1.5rem 0 0;
  margin-top: 2.5rem;
  color: var(--color-text-muted);
  font-size: 0.82rem;
}

.footer-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-bottom: 1.25rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  background: none;
  padding: 0;
}

.footer-logo-img {
  height: 30px;
  width: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.65));
}

.footer-desc {
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

.footer-links-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
}

.footer-links-row a {
  color: var(--color-text-muted);
  transition: color 0.2s ease;
}

.footer-links-row a:hover {
  color: var(--color-text);
  opacity: 1;
}

.dot-sep {
  color: var(--color-border);
  font-size: 0.7rem;
}

.footer-bottom {
  border-top: 1px solid var(--color-border);
  background: var(--color-surface-2);
  padding: 0.65rem 0;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
}

/* ── 36. AdSense Ad Containers ─────────────────────────────────────────── */
.ad-slot-container {
  background: var(--color-surface);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-lg);
  padding: 0.75rem 1rem;
  margin: 1.25rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ad-slot-container:hover {
  border-color: var(--color-primary);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.ad-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.ad-placeholder-box {
  background: rgba(88, 166, 255, 0.03);
  border: 1px dashed rgba(88, 166, 255, 0.25);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  min-height: 85px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 0.78rem;
  gap: 0.2rem;
}

.ad-placeholder-title {
  font-weight: 700;
  color: var(--color-primary);
  font-size: 0.82rem;
}

.ad-placeholder-desc {
  font-size: 0.72rem;
  color: var(--color-text-muted);
}

/* ── 37. Theme Switcher & Header Actions ────────────────────────────── */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

/* ── 38. Theme-dependent Component Overrides for Dark Mode ──────────── */
[data-theme="dark"] tbody tr:hover { background: rgba(255, 255, 255, 0.06); }

[data-theme="dark"] .pill-green  { background: rgba(63,185,80,0.18);  color: var(--color-success); }
[data-theme="dark"] .pill-red    { background: rgba(248,81,73,0.18);  color: var(--color-danger); }
[data-theme="dark"] .pill-gray   { background: var(--color-surface-2); color: var(--color-text-muted); }
[data-theme="dark"] .pill-blue   { background: var(--color-primary-dim); color: var(--color-primary); }

[data-theme="dark"] .buy-label  { background: rgba(63,185,80,0.18);  color: var(--color-success); }
[data-theme="dark"] .sell-label { background: rgba(248,81,73,0.18);  color: var(--color-danger); }

[data-theme="dark"] .tag,
[data-theme="dark"] .tag-sm,
[data-theme="dark"] .tag-inline {
  background: var(--color-surface-2);
  border-color: var(--color-border);
  color: var(--color-primary);
}

[data-theme="dark"] .btn-ghost {
  background: var(--color-surface-2);
  color: var(--color-text-muted);
  border-color: var(--color-border);
}
[data-theme="dark"] .btn-ghost:hover {
  background: var(--color-border);
  color: var(--color-text);
}

[data-theme="dark"] .btn-primary {
  background: var(--color-primary-dim);
  color: var(--color-primary);
  border-color: var(--color-primary-dim);
}

[data-theme="dark"] .signal-stark-positive { background: rgba(63,185,80,0.18); color: var(--color-success); border: 1px solid rgba(63,185,80,0.3); }
[data-theme="dark"] .signal-stark-negative { background: rgba(248,81,73,0.18); color: var(--color-danger); border: 1px solid rgba(248,81,73,0.3); }
[data-theme="dark"] .signal-moderat-positive { background: rgba(56,189,248,0.18); color: var(--color-primary); border: 1px solid rgba(56,189,248,0.3); }
[data-theme="dark"] .signal-negativ { background: rgba(248,81,73,0.18); color: var(--color-danger); border: 1px solid rgba(248,81,73,0.3); }
[data-theme="dark"] .signal-neutral { background: var(--color-surface); color: var(--color-text-muted); border: 1px solid var(--color-border); }
[data-theme="dark"] .signal-beobachtung { background: rgba(241,161,13,0.18); color: #f1a10d; border: 1px solid rgba(241,161,13,0.3); }

[data-theme="dark"] .card-win {
  border-color: rgba(63, 185, 80, 0.3);
  background: linear-gradient(180deg, rgba(63, 185, 80, 0.08) 0%, var(--color-surface-2) 100%);
}
[data-theme="dark"] .card-loss {
  border-color: rgba(248, 81, 73, 0.3);
  background: linear-gradient(180deg, rgba(248, 81, 73, 0.08) 0%, var(--color-surface-2) 100%);
}
[data-theme="dark"] .card-duration {
  border-color: rgba(56, 189, 248, 0.3);
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.08) 0%, var(--color-surface-2) 100%);
}
[data-theme="dark"] .card-tender {
  border-color: rgba(241, 161, 13, 0.3);
  background: linear-gradient(180deg, rgba(241, 161, 13, 0.08) 0%, var(--color-surface-2) 100%);
}

[data-theme="dark"] .insights-banner {
  background: rgba(56, 189, 248, 0.06);
  border-color: rgba(56, 189, 248, 0.25);
}

[data-theme="dark"] .rating-card.rating-selected {
  border-color: var(--color-primary) !important;
  background: rgba(56,189,248,0.08) !important;
}

[data-theme="dark"] .progress-bar-wrap {
  background: rgba(248, 81, 73, 0.35);
}

[data-theme="dark"] .chart-context {
  background: rgba(241, 161, 13, 0.12);
  border-bottom: 1px solid rgba(241, 161, 13, 0.3);
  color: #f1a10d;
}

/* 26. Modal Component & Newsletter Form */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.modal-backdrop.active {
  opacity: 1;
}

.modal-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 500px;
  overflow: hidden;
  transform: translateY(16px);
  transition: transform 0.2s ease;
}

.modal-backdrop.active .modal-card {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--color-border);
}

.modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-title-wrap h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-text);
}

.modal-icon {
  font-size: 1.25rem;
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 1.25rem;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 0.25rem;
  line-height: 1;
  border-radius: var(--radius);
  transition: background 0.15s ease, color 0.15s ease;
}

.modal-close-btn:hover {
  background: var(--color-surface-2);
  color: var(--color-text);
}

.modal-body {
  padding: 1.5rem;
}

.modal-description {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.375rem;
  color: var(--color-text);
}

.form-label .required {
  color: var(--color-danger);
}

.form-input {
  width: 100%;
  padding: 0.625rem 0.875rem;
  font-size: 0.9375rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
  color: var(--color-text);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-dim);
}

.form-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.875rem;
  color: var(--color-text);
  cursor: pointer;
  user-select: none;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
  transition: background 0.15s ease;
}

.form-checkbox-label:hover {
  background: var(--color-surface-2);
}

.form-checkbox-label input[type="checkbox"] {
  margin-top: 0.2rem;
  accent-color: var(--color-primary);
}

.radio-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.875rem;
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.radio-option:hover {
  background: var(--color-surface-2);
}

.radio-option input[type="radio"] {
  accent-color: var(--color-primary);
}

.radio-option input[type="radio"]:checked + span {
  font-weight: 600;
  color: var(--color-primary);
}

.form-alert {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.form-alert.error {
  background: rgba(220, 38, 38, 0.1);
  color: var(--color-danger);
  border: 1px solid rgba(220, 38, 38, 0.2);
}

.form-alert.success {
  background: rgba(5, 150, 105, 0.1);
  color: var(--color-success);
  border: 1px solid rgba(5, 150, 105, 0.2);
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* ── 38. GDPR Cookie Consent Banner (DSGVO-Konform) ───────────────────── */
.cookie-banner-backdrop {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  width: calc(100% - 2.5rem);
  max-width: 960px;
  z-index: 99999;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
  opacity: 0;
  pointer-events: none;
}

.cookie-banner-backdrop.active {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.cookie-banner-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

@media (min-width: 768px) {
  .cookie-banner-card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.cookie-banner-content {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  flex: 1;
}

.cookie-banner-icon {
  font-size: 1.75rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.cookie-banner-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.25rem 0;
  color: var(--color-text);
}

.cookie-banner-text {
  font-size: 0.825rem;
  line-height: 1.45;
  color: var(--color-text-muted);
  margin: 0;
}

.cookie-banner-text a {
  color: var(--color-primary);
  text-decoration: underline;
  font-weight: 500;
}

.cookie-banner-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 0.55rem 1.1rem;
  font-size: 0.825rem;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.cookie-btn-primary {
  background: var(--color-primary);
  color: #ffffff;
}

.cookie-btn-primary:hover {
  filter: brightness(1.1);
  box-shadow: 0 2px 8px rgba(88, 166, 255, 0.3);
}

.cookie-btn-secondary {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}

.cookie-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--color-primary);
}

.cookie-btn-link {
  background: transparent;
  color: var(--color-text-muted);
  font-size: 0.8rem;
  text-decoration: underline;
  padding: 0.4rem 0.6rem;
}

.cookie-btn-link:hover {
  color: var(--color-text);
}

/* ── 39. In-Table Ad Slot Styling ─────────────────────────────────────── */
.ad-table-row {
  background: rgba(88, 166, 255, 0.02) !important;
}

.ad-table-cell {
  padding: 1rem 0.75rem !important;
  text-align: center;
}

.ad-table-cell .ad-slot-container {
  margin: 0;
  box-shadow: none;
}

/* ── 40. Mobile Responsiveness & Burger Menu ─────────────────────────── */

.burger-menu-btn {
  display: none;
  background: var(--color-surface-2);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  transition: background var(--transition);
}

.burger-menu-btn:hover {
  background: var(--color-primary-dim);
  color: var(--color-primary);
}

.mobile-sub-info,
.mobile-nested-data {
  display: none;
}

/* Card Header responsive linebreaks */
.responsive-card-header {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
}

.header-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.header-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .burger-menu-btn {
    display: inline-flex;
  }

  .header-right {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: 1.25rem 1.5rem;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    z-index: 99;
  }

  .header-right.mobile-open {
    display: flex;
  }

  .header-right nav {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: stretch;
  }

  .header-right .nav-link {
    padding: 0.6rem 0.85rem;
    border-radius: var(--radius);
    background: var(--color-surface-2);
    font-weight: 600;
  }

  .header-right .nav-divider {
    display: none;
  }

  .header-actions {
    margin-left: 0;
    width: 100%;
    justify-content: space-between;
    gap: 0.5rem;
    border-top: 1px solid var(--color-border);
    padding-top: 1rem;
  }

  /* Responsive card headers */
  .header-controls-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .header-controls-row .search-wrap {
    width: 100%;
  }

  .header-controls-row .search-wrap input {
    width: 100%;
  }

  .header-controls-row .pagination {
    width: 100%;
    justify-content: space-between;
  }

  /* Responsive tables */
  .hide-mobile {
    display: none !important;
  }

  .mobile-sub-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.35rem;
    font-size: 0.78rem;
    color: var(--color-text-muted);
  }

  .mobile-sub-info code {
    font-family: monospace;
    font-size: 0.8rem;
    background: var(--color-surface-2);
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
  }

  .mobile-nested-data {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-top: 0.5rem;
    padding-top: 0.4rem;
    border-top: 1px dashed var(--color-border);
    font-size: 0.8rem;
  }

  .mobile-nested-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .mobile-nested-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.2rem;
  }

  /* Dashboard topbar */
  .dash-topbar-filters {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .filter-group-inline {
    width: 100%;
  }

  .filter-group-inline select {
    width: 100%;
  }
}



