﻿body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, sans-serif;
  background: linear-gradient(180deg, #f4f7fb 0%, #edf2f7 100%);
  color: #122033;
}

.page-shell {
  max-width: 1700px;
  margin: 0 auto;
  padding: 32px 20px 48px;
}

.hero {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
  align-items: stretch;
}

.hero-copy {
  background: linear-gradient(135deg, #0f4c81 0%, #1277b3 100%);
  color: #fff;
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 16px 40px rgba(15, 76, 129, 0.18);
  height: 100%;
}

.hero-upload {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  min-height: 100%;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  opacity: 0.78;
}

.card {
  background: #fff;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.upload-box {
  border: 2px dashed #9db8d3;
  border-radius: 14px;
  padding: 24px 16px;
  text-align: center;
  color: #35506b;
  cursor: pointer;
  background: #f8fbff;
}

.upload-status {
  margin-top: 12px;
  color: #35506b;
  font-size: 14px;
}

.filters,
.variables-panel {
  margin-bottom: 20px;
}

.filters-grid,
.two-column,
.axis-selector-grid {
  display: grid;
  gap: 16px;
}

.filters-grid {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.axis-selector-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.axis-selector-block {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px;
  background: #f8fbff;
  min-width: 0;
}

.ger-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 220px));
  gap: 16px;
}

.ger-card {
  overflow: hidden;
  border-radius: 14px 14px 26px 14px;
  background: #f4f8fc;
  border: 1px solid #c9d7e6;
  box-shadow: 0 8px 18px rgba(16, 41, 74, 0.08);
}

.ger-card-bar {
  height: 12px;
  background: #1f4b79;
}

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

.ger-card-title {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
  color: #4f647a;
}

.ger-card-value {
  font-size: 28px;
  font-weight: 700;
  color: #0b1f33;
  line-height: 1;
}

.content-grid {
  display: grid;
  gap: 20px;
}

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

.collapsible-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  color: #122033;
}

.collapsible-summary::-webkit-details-marker {
  display: none;
}

.collapsible-summary-label {
  color: #0f4c81;
}

.collapsible-summary-meta {
  color: #58708a;
  font-size: 13px;
  font-weight: 600;
}

.collapsible-content {
  padding: 0 20px 20px;
  border-top: 1px solid #e2e8f0;
}

.cardless-empty-state {
  padding: 14px 0 6px;
  color: #58708a;
}

.detail-tabs-parent {
  margin-top: 12px;
}

.detail-tabs {
  border-bottom: 1px solid #d9e3ed;
}

.detail-tab {
  border: 0 !important;
  background: transparent !important;
  color: #58708a !important;
  padding: 0 !important;
}

.detail-tab--selected {
  color: #0f4c81 !important;
}

.detail-tab > div,
.detail-tab--selected > div {
  padding: 10px 16px !important;
  border: 0 !important;
  border-bottom: 3px solid transparent !important;
  font-weight: 700;
}

.detail-tab--selected > div {
  border-bottom-color: #0f4c81 !important;
}

.detail-tab-panel {
  padding-top: 16px;
}

.detail-chart-stack {
  display: grid;
  gap: 18px;
}

.detail-chart-block {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px;
  background: #fbfdff;
}

.detail-chart-title {
  margin: 0 0 10px;
  color: #122033;
}

.detail-tab-caption {
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #58708a;
}

.tab-chart {
  min-height: 360px;
}

.tab-empty-state {
  border: 1px dashed #c7d5e3;
  border-radius: 14px;
  padding: 28px 20px;
  text-align: center;
  color: #58708a;
  background: #f8fbff;
}

#dashboard-content-body > .card,
#dashboard-content-body > section {
  overflow: hidden;
}

.js-plotly-plot,
.plot-container {
  width: 100%;
}

.variable-checklist {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-top: 8px;
  width: 100%;
  align-content: flex-start;
}

.variable-checklist label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 8px 12px;
  border: 1px solid #d7e0ea;
  border-radius: 999px;
  background: #ffffff;
  font-weight: 500;
  color: #23364d;
}

.variable-checklist input {
  margin: 0;
}

.two-column {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #344256;
}

h1,
h3,
p {
  margin-top: 0;
}

@media (max-width: 960px) {
  .hero,
  .two-column,
  .axis-selector-grid {
    grid-template-columns: 1fr;
  }
}

.report-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}

.report-button {
  border: 0;
  border-radius: 12px;
  padding: 12px 18px;
  background: linear-gradient(135deg, #18468f 0%, #1063a4 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(24, 70, 143, 0.18);
}

.report-button:hover {
  filter: brightness(1.05);
}

@page {
  size: A4 portrait;
  margin: 8mm;
}

@media print {
  body {
    background: #ffffff;
  }

  .hero,
  .filters,
  .variables-panel,
  .report-actions,
  .upload-status {
    display: none !important;
  }

  .page-shell {
    max-width: none;
    width: 100%;
    padding: 0;
    margin: 0;
  }

  #dashboard-content {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
  }

  #dashboard-content-body {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    width: 100%;
    max-width: none;
    margin: 0;
  }

  #dashboard-content-body > .card,
  #dashboard-content-body > section,
  .card,
  .ger-card {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
    box-shadow: none;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .ger-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }

  .ger-card {
    min-height: 100%;
  }

  .js-plotly-plot,
  .plot-container,
  .dash-table-container {
    width: 100% !important;
  }
}




