/* Seite „Gästebuchungen“: Titelzeile mit „Gästebuchung“, Reiter „Kommende“/„Vergangene“ mit der Summe der kommenden Buchungen und je Buchung eine
   Karte (GuestBookingCard). Karten und Chips bauen auf app.css auf (.kantine-card, .kantine-chip); die Datei wird nach app.css eingebunden. Der Dialog „Gästebuchung“ hat sein eigenes Stylesheet
   (guest-booking-dialog.css). Nur var(--kantine-…) und var(--mud-palette-…), keine Farbwerte. */

/* Seite: Titelzeile, Reiterzeile und Karten untereinander */
.kantine-guests-page {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Titelzeile: Titel links, „Gästebuchung“ rechts; auf schmalen Bildschirmen bricht der Button um */
.kantine-guests-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

/* Reiterzeile: Reiter links, die Summe der kommenden Buchungen rechts; auf schmalen Bildschirmen bricht sie um */
.kantine-guests-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

/* Reiter „Kommende“/„Vergangene“ (role="tablist"): ein Rahmen mit zwei Segmenten wie auf der Seite „À-la-carte“. Der gewählte Reiter (aria-selected) steht in primary mit weißem Text, der andere in primary
   auf weißem Grund. Die Reiter sind 44 px hoch. */
.kantine-guests-tabs {
    display: flex;
    gap: 4px;
    padding: 2px;
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 10px;
    background-color: var(--mud-palette-surface);
}

.kantine-guests-tab {
    min-height: 44px;
    padding: 0 14px;
    border: 0;
    border-radius: 8px;
    background-color: transparent;
    color: var(--mud-palette-primary);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
}

.kantine-guests-tab[aria-selected="true"] {
    background-color: var(--mud-palette-primary);
    color: var(--mud-palette-primary-text);
}

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

.kantine-guests-summary {
    font-size: 14px;
    color: var(--mud-palette-text-secondary);
}

/* Leerer Zustand: ein Satz in einer Karte mit gestricheltem Rahmen */
.kantine-guests-empty {
    padding: 32px 24px;
    border: 1px dashed var(--kantine-input-border);
    border-radius: 12px;
    background-color: var(--mud-palette-surface);
    text-align: center;
}

.kantine-guests-empty p {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

/* Karte einer Buchung (GuestBookingCard über .kantine-card): links der Inhalt, rechts die Gäste und die Aktionen. Reicht die Breite nicht für beide, rutscht die rechte Seite unter den Inhalt
   (margin-inline-start: auto schiebt sie dann an den rechten Rand). */
.kantine-guest-card {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 12px 24px;
    padding: 16px 20px;
}

.kantine-guest-card-main {
    display: flex;
    flex: 1 1 420px;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

/* Kopfzeile: Tag, Uhrzeit und Chip „Gast“ nebeneinander, bei Platzmangel untereinander */
.kantine-guest-card-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
}

.kantine-guest-card-day {
    font-size: 13px;
    font-weight: 700;
    color: var(--mud-palette-primary);
}

/* Heute in den Hinweis-Farben: Das Orange der Akzentfarbe ist nie eine Textfarbe auf Weiß */
.kantine-guest-card-day--today {
    color: var(--kantine-notice-chip-text);
}

.kantine-guest-card-time {
    font-size: 13px;
    color: var(--mud-palette-text-secondary);
}

/* Vermerk als Überschrift; ein langer Vermerk darf überall umbrechen */
.kantine-guest-card-note {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    overflow-wrap: anywhere;
    color: var(--mud-palette-text-primary);
}

.kantine-guest-card-lines {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 14px;
    overflow-wrap: anywhere;
}

.kantine-guest-card-created {
    font-size: 12px;
    color: var(--mud-palette-text-secondary);
}

/* Rechte Seite: „n Gäste · n Plätze“ oben, die Aktionen unten, beides am rechten Rand */
.kantine-guest-card-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    margin-inline-start: auto;
}

.kantine-guest-card-count {
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    color: var(--mud-palette-primary);
}

/* „Bearbeiten“ und „Stornieren“: Klickfläche mindestens 44 px, der Rahmen in der Linienfarbe (nur der Text trägt die Farbe) */
.kantine-guest-card-actions {
    display: flex;
    gap: 8px;
}

.kantine-guest-card-actions .mud-button-root.mud-button-outlined {
    min-height: 44px;
    border-color: var(--mud-palette-lines-default);
}

/* Vergangene Buchungen (Tag vor heute): Tag und Vermerk gedämpft */
.kantine-guest-card--past .kantine-guest-card-day,
.kantine-guest-card--past .kantine-guest-card-note {
    color: var(--mud-palette-text-secondary);
}
