/* LEA Produkttexte — Monatsbericht (#285). Own prefix `sv4m-`; the look follows the evaluation
   page (`sv4a-`) it is reached from, but the two share no markup. */

body:has(.sv4m-page) {
  background: var(--grey-100);
}

.sv4m-page {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
  font-family: var(--font-base);
  color: var(--fill-primary);
}

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

.sv4m-header h1 {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.3;
}

.sv4m-header__actions {
  display: flex;
  gap: 0.5rem;
}

.sv4m-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 1rem;
  padding: 1rem;
  background: var(--white);
  border: 1px solid var(--rule);
  margin-bottom: 1rem;
}

.sv4m-filter__field {
  display: grid;
  gap: 0.25rem;
}

.sv4m-filter__field label {
  font-size: 0.8rem;
  color: var(--grey-600);
}

.sv4m-filter__back {
  margin-left: auto;
  font-size: 0.875rem;
}

.sv4m-lead {
  max-width: 70ch;
  color: var(--grey-600);
  margin: 0 0 1rem;
}

/* The table is wider than a phone: it scrolls inside its own box, the page does not. */
.sv4m-tablebox {
  overflow-x: auto;
  background: var(--white);
  border: 1px solid var(--rule);
}

.sv4m-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.875rem;
}

.sv4m-table th,
.sv4m-table td {
  padding: 0.4rem 0.6rem;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  white-space: nowrap;
}

.sv4m-table th {
  font-weight: 600;
  background: var(--grey-100);
}

.sv4m-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.sv4m-table td.sv4m-num {
  text-align: right;
}

.sv4m-row--total td {
  font-weight: 600;
  background: var(--grey-100);
}

.sv4m-row--waiting td {
  color: var(--grey-600);
  font-style: italic;
}
