/* Dialog „Export für Buchhaltung“: Schnellwahl-Chips, die Felder Von und Bis, die Vorschau mit genau den Spalten der Datei und die Fußleiste.
   Die Feldzeile kommt von app.css (.kantine-field-row), die Abschnittslabels ebenso (.kantine-label); hier steht nur, was der Dialog selbst braucht. Nur var(--kantine-…) und var(--mud-palette-…),
   keine Farbwerte. */

/* Breite: 480 px; MudBlazor kennt nur 444 px (ExtraSmall) und 600 px (Small). Der Dialog bittet um ExtraSmall und wird hier auf 480 px gesetzt; schmaler füllt er die Breite (FullWidth). */
.mud-dialog:has(.kantine-export-dialog-content) {
    max-width: 480px;
}

.kantine-export-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* Abschnitt „Zeitraum“: ein fieldset ohne Rahmen; die Legende ist das Abschnittslabel (12 px, 600, Großbuchstaben, text-muted) */
.kantine-export-section {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.kantine-export-section > legend {
    margin-bottom: 10px;
    padding: 0;
}

/* Schnellwahl: runde Auswahl-Chips mit aria-pressed, ausgewählt = Rahmen interaction auf Info-Hintergrund; die Klickfläche ist 44 px hoch */
.kantine-export-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.kantine-export-presets button {
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 999px;
    background-color: var(--mud-palette-surface);
    color: var(--mud-palette-text-primary);
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.kantine-export-presets button[aria-pressed="true"] {
    border-color: var(--mud-palette-info);
    background-color: var(--kantine-info-bg);
    color: var(--kantine-info-text);
}

.kantine-export-presets button:focus-visible {
    outline: 2px solid var(--mud-palette-info);
    outline-offset: 2px;
}

/* Von und Bis: Monate mit tabellarischen Ziffern */
.kantine-export-field input {
    font-variant-numeric: tabular-nums;
}

/* Vorschau: links das Label, rechts die Zahl der Monate (13 px, text-muted) */
.kantine-export-preview-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.kantine-export-months {
    font-size: 13px;
    color: var(--mud-palette-text-secondary);
}

/* Tabelle „Monat“ | „Anzahl“: Rahmen mit Radius 10 px; ab etwa sechs Monaten scrollt sie, der Kopf bleibt oben stehen. Die Spaltenköpfe sind Tabellenköpfe (12 px, 600, Großbuchstaben, Laufweite 0,4 px,
   text-muted). */
.kantine-export-table-wrap {
    max-height: 264px;
    overflow-y: auto;
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 10px;
}

.kantine-export-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.kantine-export-table th,
.kantine-export-table td {
    padding: 9px 14px;
    text-align: start;
}

.kantine-export-table th {
    position: sticky;
    top: 0;
    background-color: var(--mud-palette-background);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: var(--mud-palette-text-secondary);
}

.kantine-export-table tbody tr {
    border-top: 1px solid var(--mud-palette-lines-default);
}

.kantine-export-table td {
    font-variant-numeric: tabular-nums;
}

.kantine-export-table .kantine-export-count {
    text-align: end;
}

.kantine-export-table td.kantine-export-count {
    font-weight: 600;
}

/* Fußleiste: „Abbrechen“ und „Excel herunterladen“ rechts; auf schmalen Bildschirmen bricht sie um */
.mud-dialog .mud-dialog-actions.kantine-export-dialog-actions {
    flex-wrap: wrap;
    gap: 10px;
}
