:root {
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  
  /* Color Palette - Dark Fintech (Default) */
  --bg-base: #0a0e17;
  --bg-surface: #111827;
  --bg-surface-elevated: #1a2234;
  --bg-card: rgba(26, 34, 52, 0.7);
  --bg-card-hover: rgba(33, 44, 68, 0.85);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: #3b82f6;
  
  --text-main: #f3f4f6;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  /* Accent Colors for the 4 Value Pillars */
  --col-eigen-deposit: #10b981;      /* Emerald: Eigene Einzahlungen */
  --col-eigen-return: #06b6d4;       /* Cyan: Gewinn auf eigene Einzahlung */
  --col-anbieter-deposit: #6366f1;   /* Indigo: Einzahlung Anbieter */
  --col-anbieter-return: #a855f7;    /* Purple: Gewinn auf Anbieter-Zuschuss */
  --col-total: #38bdf8;              /* Total Accent */
  
  --col-accent: #2563eb;
  --col-accent-hover: #1d4ed8;
  --col-success: #10b981;
  --col-warning: #f59e0b;
  --col-fees: #f43f5e;              /* Rose: Depot- & Verwaltungskosten */
  
  /* Shadows & Glassmorphism */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.5);
  --shadow-glow-cyan: 0 0 25px rgba(6, 182, 212, 0.15);
  --shadow-glow-indigo: 0 0 25px rgba(99, 102, 241, 0.15);
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
}

[data-theme="light"] {
  --bg-base: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #f1f5f9;
  --bg-card: rgba(255, 255, 255, 0.9);
  --bg-card-hover: #ffffff;
  --border-subtle: rgba(15, 23, 42, 0.08);
  --border-focus: #2563eb;
  
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #94a3b8;
  
  --col-eigen-deposit: #059669;
  --col-eigen-return: #0284c7;
  --col-anbieter-deposit: #4f46e5;
  --col-anbieter-return: #9333ea;
  --col-total: #0284c7;
  --col-fees: #e11d48;
  
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 28px rgba(0, 0, 0, 0.1);
  --shadow-glow-cyan: 0 0 20px rgba(2, 132, 199, 0.1);
  --shadow-glow-indigo: 0 0 20px rgba(79, 70, 229, 0.1);
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-base);
  color: var(--text-main);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: 3rem;
}

/* App Header */
.app-header {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  padding: 1.1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header-inner {
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

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

.logo-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.logo-icon svg {
  width: 22px;
  height: 22px;
}

.logo-text h1 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.logo-text p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface-elevated);
  color: var(--text-main);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

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

.btn:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border: 1px solid #3b82f6;
  color: #ffffff;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.btn-sm {
  padding: 0.3rem 0.65rem;
  font-size: 0.775rem;
}

/* Preset selector (Dropdown & Management) */
.preset-header-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.preset-dropdown-wrap {
  position: relative;
  width: 100%;
}

.preset-select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  background-color: var(--bg-surface-elevated);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.65rem 2.2rem 0.65rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px;
}

.preset-select:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background-color: var(--bg-card-hover);
}

.preset-select:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25);
}

.preset-select optgroup {
  font-weight: 700;
  color: var(--text-muted);
  background-color: var(--bg-surface);
}

.preset-select option {
  font-weight: 500;
  color: var(--text-main);
  background-color: var(--bg-surface);
  padding: 0.4rem;
}

.preset-sync-status {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-top: 0.4rem;
  padding: 0 0.15rem;
}

.preset-sync-status svg {
  width: 12px;
  height: 12px;
  color: #10b981;
}

/* Preset Save Form */
.preset-save-box {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  margin-bottom: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.preset-save-box input[type="text"] {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 0.8rem;
  padding: 0.45rem 0.6rem;
  outline: none;
}

.preset-save-box input[type="text"]:focus {
  border-color: var(--border-focus);
}

.preset-save-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.45rem;
}

/* Modal: Presets verwalten */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
  animation: modalFadeIn 0.15s ease-out;
}

.modal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 700px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalSlideUp 0.2s ease-out;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalSlideUp {
  from { transform: translateY(12px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.modal-header {
  padding: 1.15rem 1.35rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-surface-elevated);
}

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

.modal-title-wrap svg {
  width: 20px;
  height: 20px;
  color: #60a5fa;
}

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

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.35rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
}

.modal-close-btn svg {
  width: 18px;
  height: 18px;
}

.modal-body {
  padding: 1.25rem 1.35rem;
  overflow-y: auto;
  flex: 1 1 auto;
}

.modal-desc {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 0.85rem;
  line-height: 1.45;
}

.modal-quick-add {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
  align-items: center;
}

.modal-quick-add input {
  flex: 1 1 auto;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  color: var(--text-main);
  font-size: 0.825rem;
  outline: none;
  transition: border-color var(--transition-fast);
}

.modal-quick-add input:focus {
  border-color: var(--border-focus);
}

.custom-preset-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.custom-preset-item {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  transition: border-color var(--transition-fast);
}

.custom-preset-item:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.preset-item-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1 1 auto;
  min-width: 0;
}

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

.preset-item-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
}

.preset-badge-active {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
  display: inline-flex;
  align-items: center;
}

.preset-item-details {
  font-size: 0.725rem;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.preset-item-edit-input {
  background: var(--bg-surface);
  border: 1px solid var(--border-focus);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.3rem 0.5rem;
  width: 100%;
  max-width: 280px;
  outline: none;
}

.preset-item-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.modal-empty-state {
  text-align: center;
  padding: 2.2rem 1rem;
  color: var(--text-dim);
  font-size: 0.825rem;
  background: var(--bg-surface-elevated);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-md);
  line-height: 1.5;
}

.modal-empty-state-actions {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.modal-footer {
  padding: 0.9rem 1.35rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: flex-end;
  background: var(--bg-surface-elevated);
}

/* Layout Container */
.dashboard-layout {
  max-width: 1600px;
  margin: 1.75rem auto 0;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 390px 1fr;
  gap: 1.75rem;
  align-items: start;
}

@media (max-width: 1180px) {
  .dashboard-layout {
    grid-template-columns: 1fr;
  }
}

/* Sidebar / Inputs Panel */
.sidebar-panel {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.config-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  box-shadow: var(--shadow-md);
}

.card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
}

.card-title-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-title svg {
  width: 18px;
  height: 18px;
  color: #60a5fa;
}

/* Form Groups & Sliders */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group:last-child {
  margin-bottom: 0;
}

.form-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.45rem;
}

.form-label {
  font-size: 0.825rem;
  font-weight: 500;
  color: var(--text-muted);
}

.input-with-unit {
  display: inline-flex;
  align-items: center;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.28rem 0.55rem;
  min-width: 120px;
  max-width: 150px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.input-with-unit:focus-within {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25);
}

.input-with-unit input[type="number"] {
  flex: 1 1 auto;
  width: 55px;
  min-width: 40px;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0;
  margin: 0;
  text-align: right;
  -moz-appearance: textfield;
}

.input-with-unit input[type="number"]::-webkit-outer-spin-button,
.input-with-unit input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.input-with-unit input[type="number"]:focus {
  outline: none;
}

.input-unit {
  flex: 0 0 auto;
  font-size: 0.775rem;
  font-weight: 500;
  color: var(--text-dim);
  margin-left: 0.35rem;
  user-select: none;
  white-space: nowrap;
}

/* Range Sliders */
.slider-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 4px;
  background: var(--bg-surface-elevated);
  outline: none;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #3b82f6;
  border: 2px solid #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: transform var(--transition-fast), background-color var(--transition-fast);
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  background: #2563eb;
}

/* Pill / Radio Button Group */
.radio-pills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
  background: var(--bg-surface-elevated);
  padding: 0.3rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.radio-pill-item {
  position: relative;
}

.radio-pill-item input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  width: 0;
  height: 0;
}

.radio-pill-item label {
  display: block;
  text-align: center;
  padding: 0.45rem 0.35rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  user-select: none;
}

.radio-pill-item input:checked + label {
  background: #2563eb;
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
}

.timing-desc {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 0.35rem;
  line-height: 1.35;
}

/* Badge Highlight */
.badge-highlight {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.15);
  color: #818cf8;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

/* Main Content Area */
.main-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 0;
}

/* KPI Overview Grid */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.kpi-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.kpi-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.15);
}

.kpi-card.kpi-highlight {
  background: linear-gradient(145deg, rgba(37, 99, 235, 0.12), var(--bg-surface));
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow: var(--shadow-glow-cyan);
}

.kpi-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.6rem;
}

.kpi-label {
  font-size: 0.775rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.kpi-indicator-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dot-eigen-dep { background: var(--col-eigen-deposit); }
.dot-eigen-ret { background: var(--col-eigen-return); }
.dot-anb-dep   { background: var(--col-anbieter-deposit); }
.dot-anb-ret   { background: var(--col-anbieter-return); }
.dot-fees      { background: var(--col-fees); }
.dot-total     { background: var(--col-total); }

.kpi-value {
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-main);
  line-height: 1.2;
}

.kpi-subtext {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 0.45rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.kpi-tag {
  font-weight: 600;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}

.kpi-tag.positive {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}

.kpi-tag.negative {
  background: rgba(244, 63, 94, 0.15);
  color: #fb7185;
}

/* Visualization Card */
.content-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  box-shadow: var(--shadow-md);
}

.card-header-tabs {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tabs-nav {
  display: flex;
  align-items: center;
  background: var(--bg-surface-elevated);
  padding: 0.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.tab-btn {
  padding: 0.45rem 0.85rem;
  font-size: 0.785rem;
  font-weight: 500;
  border: none;
  background: transparent;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

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

.tab-btn.active {
  background: #2563eb;
  color: #ffffff;
  font-weight: 600;
}

/* Chart Canvas Wrapper */
.chart-wrapper {
  position: relative;
  width: 100%;
  height: 380px;
}

.chart-legend-custom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.785rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--text-muted);
}

.legend-color-box {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

/* Pension / Rente Module */
.pension-module {
  background: linear-gradient(145deg, rgba(99, 102, 241, 0.08), var(--bg-surface));
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
}

.pension-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1rem;
}

@media (max-width: 850px) {
  .pension-grid {
    grid-template-columns: 1fr;
  }
}

.pension-result-box {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pension-box-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.5rem;
}

.pension-box-amount {
  font-size: 1.75rem;
  font-weight: 700;
  color: #818cf8;
}

.pension-box-detail {
  font-size: 0.775rem;
  color: var(--text-dim);
  margin-top: 0.4rem;
}

/* Year by Year Table */
.table-container {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  margin-top: 1rem;
  max-height: 480px;
  position: relative;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.825rem;
  text-align: right;
  white-space: nowrap;
}

.data-table th,
.data-table td {
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--border-subtle);
}

.data-table th {
  background: var(--bg-surface-elevated);
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.03em;
  position: sticky;
  top: 0;
  z-index: 10;
}

.data-table th:first-child,
.data-table td:first-child {
  text-align: left;
  font-weight: 600;
  position: sticky;
  left: 0;
  background: var(--bg-surface);
  z-index: 5;
}

.data-table th:first-child {
  background: var(--bg-surface-elevated);
  z-index: 15;
}

.data-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

.col-eigen {
  color: var(--col-eigen-deposit);
}

.col-eigen-gain {
  color: var(--col-eigen-return);
}

.col-anbieter {
  color: var(--col-anbieter-deposit);
}

.col-anbieter-gain {
  color: var(--col-anbieter-return);
}

.col-fees {
  color: var(--col-fees);
  font-weight: 500;
}

.col-total-val {
  font-weight: 700;
  color: var(--text-main);
}

/* View Mode Switcher in Table Card */
.table-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.table-filter-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Print Styling */
@media print {
  body {
    background: #ffffff;
    color: #000000;
  }
  .app-header, .sidebar-panel, .header-actions, .tabs-nav {
    display: none !important;
  }
  .dashboard-layout {
    display: block;
    max-width: 100%;
    margin: 0;
    padding: 0;
  }
  .content-card, .kpi-card, .pension-module {
    box-shadow: none !important;
    border: 1px solid #ddd !important;
    break-inside: avoid;
    margin-bottom: 1.5rem;
  }
  .table-container {
    max-height: none !important;
    overflow: visible !important;
  }
}
