﻿/* =========================================================
   appointments.css  (Day / Week / Month + Shell)
   ========================================================= */

/* ---------- Shell / Toolbar (Appointments.razor) ---------- */
.cal-shell {
    width: 100%;
    padding: 12px;
    box-sizing: border-box;
}

.cal-toolbar {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--mud-palette-background);
    padding-bottom: 10px;
    margin-bottom: 6px;
}
/* Toolbar layout */
.cal-toolbar-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: center;
}

/* Left/right groups */
.cal-left {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: nowrap; /* Desktop: kein Umbruch */
    min-width: 0;
}

.cal-right {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: flex-end; /* Desktop: sauber rechts */
    flex-wrap: nowrap; /* Desktop: kein Umbruch */
    white-space: nowrap;
}

.cal-date {
    width: 140px; /* war 180/165 – jetzt kompakter */
}

    /* optional: auch das eigentliche Input-Feld im DatePicker schmaler */
    .cal-date .mud-input-control,
    .cal-date .mud-input-slot {
        max-width: 140px;
    }

/* Selects: Desktop gleichmäßig */
.cal-select {
    width: 140px;
}

.cal-view {
    width: 140px;
}

.cal-zoom {
    width: 140px;
}

/* Mobile */
@media (max-width: 600px) {
    .cal-toolbar-grid {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .cal-left, .cal-right {
        flex-wrap: wrap; /* Mobile: darf umbrechen */
        justify-content: flex-start;
    }

    .cal-date,
    .cal-select {
        width: 100%; /* Mobile: full width */
    }

    .cal-date {
        width: 100%;
    }

        .cal-date .mud-input-control,
        .cal-date .mud-input-slot {
            max-width: 100%;
        }
}

/* selects: Mindestbreite */
.cal-select {
    min-width: 140px;
}


.cal-zoom {
    min-width: 130px;
}

/* small helper spacing (optional) */
.ml-2 {
    margin-left: 8px;
}

/* ---------- Common “event” skins (shared) ---------- */
.appt-chip {
    background: rgba(2, 136, 209, 0.10);
    border-color: rgba(2, 136, 209, 0.20);
}

.appt-surface {
    border-radius: 14px;
    background: rgba(0,0,0,0.02);
    overflow: hidden;
}

/* =========================================================
   DAY VIEW (CalendarDayView.razor)
   Prefix: cd-
   ========================================================= */

.cd-shell {
    width: 100%;
    padding: 12px;
    box-sizing: border-box;
}

.cd-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--mud-palette-background);
    padding-bottom: 10px;
}

.cd-chip-appt {
    background: rgba(2, 136, 209, 0.10);
    border-color: rgba(2, 136, 209, 0.20);
}

/* All-day row */
.cd-allday {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 10px;
    align-items: center;
    padding: 8px 0 10px 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.cd-allday-right {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.cd-allday-pill {
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 12px;
    cursor: pointer;
    border: 1px solid rgba(2, 136, 209, 0.20);
    background: rgba(2, 136, 209, 0.10);
    box-shadow: 0 1px 0 rgba(0,0,0,0.06);
    max-width: 360px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-flex;
    gap: 8px;
}

.cd-pill-title {
    font-weight: 600;
}

.cd-pill-sub {
    opacity: .8;
}

/* Scroll area */
.cd-viewport {
    height: 100vh;
    overflow: auto;
    padding-right: 4px;
}

/* Main layout */
.cd-grid {
    position: relative;
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 10px;
    padding-top: 10px;
    min-height: calc(var(--cd-total-min) * var(--cd-px-per-min) * 1px);
}

/* Ruler */
.cd-ruler {
    position: relative;
}

.cd-hour-label {
    position: absolute;
    left: 0;
    transform: translateY(-50%);
    font-size: 12px;
    color: var(--mud-palette-text-secondary);
}

/* Surface */
.cd-surface {
    position: relative;
    border-radius: 14px;
    background: rgba(0,0,0,0.02);
    overflow: hidden;
}

/* WICHTIG: relative + definierter "Top-Start" für das Raster */
.cd-surface-body {
    position: relative;
    min-height: calc(var(--cd-total-min) * var(--cd-px-per-min) * 1px);
    padding-top: 0px; /* <- später nutzbar falls du Header IN surface willst */
}
/* Hour lines */
.cd-hour-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(0,0,0,0.06);
}

/* Now line */
.cd-now {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--mud-palette-error);
    opacity: 0.65;
    z-index: 4;
}

.cd-now-dot {
    position: absolute;
    left: 6px;
    top: -4px;
    width: 10px;
    height: 10px;
    border-radius: 99px;
    background: var(--mud-palette-error);
}

.cd-now-label {
    position: absolute;
    left: 22px;
    top: -10px;
    font-size: 11px;
    color: var(--mud-palette-error);
    background: var(--mud-palette-background);
    padding: 0 6px;
    border-radius: 999px;
}

/* Items */
.cd-item {
    position: absolute;
    border-radius: 12px;
    padding: 8px;
    box-sizing: border-box;
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 1px 0 rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.07);
    z-index: 2;
}

    .cd-item:hover {
        z-index: 6;
    }

.cd-item-appt {
    background: rgba(2, 136, 209, 0.10);
    border-color: rgba(2, 136, 209, 0.20);
}

.cd-item-title {
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.15;
}

.cd-item-sub {
    font-size: 11px;
    color: var(--mud-palette-text-secondary);
    margin-top: 2px;
}

.cd-item-timebadge {
    position: absolute;
    top: 6px;
    right: 8px;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 999px;
    background: rgba(255,255,255,0.75);
    color: var(--mud-palette-text-secondary);
    font-variant-numeric: tabular-nums;
    backdrop-filter: blur(3px);
}

/* Tooltip */
.cd-tip {
    max-width: 380px;
}

.cd-tip-title {
    font-weight: 700;
    margin-bottom: 4px;
}

.cd-tip-sub {
    opacity: .85;
    margin-bottom: 4px;
}

.cd-tip-time {
    opacity: .85;
    font-variant-numeric: tabular-nums;
    margin-bottom: 6px;
}

.cd-tip-body {
    max-height: 220px;
    overflow: auto;
}

/* =========================================================
   WEEK VIEW (CalendarWeekView.razor)
   Prefix: cw-
   Assumption: grid with ruler + 7 columns, sticky header
   ========================================================= */


/* ===== WEEK VIEW (cw-*) ===== */

.cw-shell {
    width: 100%;
    box-sizing: border-box;
}


.cw-header {
    display: grid;
    grid-template-columns: 56px repeat(7, 1fr);
    gap: 8px;
    align-items: end;
    margin-top: 6px;
    position: sticky;
    top: 0;
    z-index: 12;
    background: var(--mud-palette-background);
    padding-bottom: 8px;
}

    .cw-header.cw-aw {
        grid-template-columns: 56px repeat(var(--cw-days), 1fr);
    }

.cw-allday-right.cw-aw {
    grid-template-columns: repeat(var(--cw-days), 1fr);
}

.cw-grid.cw-aw {
    grid-template-columns: repeat(var(--cw-days), 1fr);
}

.cw-header-day {
    padding: 6px 8px;
    border-radius: 12px;
    background: rgba(0,0,0,0.03);
}

    .cw-header-day.is-today {
        outline: 2px solid rgba(var(--mud-palette-primary-rgb), 0.35);
    }

.cw-dow {
    font-size: 12px;
    color: var(--mud-palette-text-secondary);
}

.cw-date {
    font-size: 13px;
    font-weight: 700;
}

/* all-day */
.cw-allday {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 8px;
    align-items: start;
    margin-top: 6px;
    padding: 8px 0 10px 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.cw-allday-right {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.cw-allday-right {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.cw-allday-pill {
    border-radius: 999px;
    padding: 4px 8px;
    font-size: 12px;
    cursor: pointer;
    border: 1px solid rgba(2, 136, 209, 0.20);
    background: rgba(2, 136, 209, 0.10);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.cw-allday-more {
    opacity: .75;
    padding-left: 2px;
}

/* body */
.cw-body {
    margin-top: 8px;
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 8px;
    min-height: calc(var(--cw-total-min) * var(--cw-px-per-min) * 1px);
}

.cw-ruler {
    position: relative;
}

.cw-hour-label {
    position: absolute;
    left: 0;
    transform: translateY(-50%);
    font-size: 12px;
    color: var(--mud-palette-text-secondary);
}

.cw-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.cw-col {
    position: relative;
    border-radius: 14px;
    background: rgba(0,0,0,0.02);
    overflow: hidden;
}

.cw-hour-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(0,0,0,0.06);
}

.cw-now {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--mud-palette-error);
    opacity: .65;
    z-index: 4;
}

/* items */
.cw-item {
    position: absolute;
    border-radius: 12px;
    padding: 6px 8px;
    box-sizing: border-box;
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 1px 0 rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.07);
    z-index: 2;
    color: var(--mud-palette-text-primary);
}

    .cw-item:hover {
        z-index: 6;
    }

.cw-item-appt {
    background: rgba(2, 136, 209, 0.10);
    border-color: rgba(2, 136, 209, 0.20);
}

.cw-item-title {
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.15;
    padding-right: 64px;
}

.cw-item-sub {
    font-size: 11px;
    color: var(--mud-palette-text-secondary);
    margin-top: 2px;
    padding-right: 64px;
}

.cw-item-timebadge {
    position: absolute;
    top: 6px;
    right: 8px;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 999px;
    background: rgba(255,255,255,0.75);
    color: var(--mud-palette-text-secondary);
    font-variant-numeric: tabular-nums;
    backdrop-filter: blur(3px);
    z-index: 2;
}

.cw-item--slim {
    padding: 4px 6px;
}

.cw-item--tiny {
    padding: 2px 6px;
    border-radius: 10px;
}

    .cw-item--tiny .cw-item-sub {
        display: none;
    }

    .cw-item--tiny .cw-item-timebadge {
        position: static;
        display: inline-block;
        margin-bottom: 2px;
    }

/* tooltip */
.cw-tip {
    max-width: 380px;
}

.cw-tip-title {
    font-weight: 700;
    margin-bottom: 4px;
}

.cw-tip-sub {
    opacity: .85;
    margin-bottom: 4px;
}

.cw-tip-time {
    opacity: .85;
    font-variant-numeric: tabular-nums;
    margin-bottom: 6px;
}

.cw-tip-body {
    max-height: 220px;
    overflow: auto;
}


/*.cw-shell {
    width: 100%;
    box-sizing: border-box;
}*/

/* header row (Mo–So) */
/*.cw-header {
    display: grid;
    grid-template-columns: 56px repeat(7, 1fr);
    gap: 8px;
    align-items: end;
    margin-top: 6px;
    position: sticky;
    top: 0;
    z-index: 12;
    background: var(--mud-palette-background);
    padding-bottom: 8px;
}

.cw-header-left {
    height: 1px;*/ /* just spacer */
/*}

.cw-header-day {
    padding: 6px 8px;
    border-radius: 12px;
    background: rgba(0,0,0,0.03);
}

    .cw-header-day.is-today {
        outline: 2px solid rgba(var(--mud-palette-primary-rgb), 0.35);
    }

.cw-dow {
    font-size: 12px;
    color: var(--mud-palette-text-secondary);
}

.cw-date {
    font-size: 13px;
    font-weight: 700;
}*/

/* body grid */
/*.cw-body {
    margin-top: 8px;
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 8px;
    min-height: calc(var(--cw-total-min) * var(--cw-px-per-min) * 1px);
}

.cw-ruler {
    position: relative;
}

.cw-hour-label {
    position: absolute;
    left: 0;
    transform: translateY(-50%);
    font-size: 12px;
    color: var(--mud-palette-text-secondary);
}

.cw-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.cw-col {
    position: relative;
    border-radius: 14px;
    background: rgba(0,0,0,0.02);
    overflow: hidden;
}*/

/* hour lines per column */
/*.cw-hour-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(0,0,0,0.06);
}*/

/* now line inside a column */
/*.cw-now {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--mud-palette-error);
    opacity: .65;
    z-index: 4;
}*/

/* events in week columns */
/*.cw-item {
    position: absolute;
    border-radius: 12px;
    padding: 6px 8px;
    box-sizing: border-box;
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 1px 0 rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.07);
    z-index: 2;
}

    .cw-item:hover {
        z-index: 6;
    }

.cw-item-appt {
    background: rgba(2, 136, 209, 0.10);
    border-color: rgba(2, 136, 209, 0.20);
}

.cw-item-title {
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.15;
}

.cw-item-sub {
    font-size: 11px;
    color: var(--mud-palette-text-secondary);
    margin-top: 2px;
}

.cw-item-timebadge {
    position: absolute;
    top: 6px;
    right: 8px;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 999px;
    background: rgba(255,255,255,0.75);
    color: var(--mud-palette-text-secondary);
    font-variant-numeric: tabular-nums;
    backdrop-filter: blur(3px);
}*/

/* optional: all-day strip above week grid */
/*.cw-allday {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 8px;
    align-items: center;
    margin-top: 6px;
    padding: 8px 0 10px 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.cw-allday-right {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.cw-allday-cell {
    min-height: 34px;
    border-radius: 14px;
    background: rgba(0,0,0,0.02);
    padding: 6px;
    overflow: hidden;
}

.cw-allday-pill {
    border-radius: 999px;
    padding: 4px 8px;
    font-size: 12px;
    cursor: pointer;
    border: 1px solid rgba(2, 136, 209, 0.20);
    background: rgba(2, 136, 209, 0.10);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}*/

/* =========================================================
   MONTH VIEW (CalendarMonthView.razor)
   Prefix: cm-
   7x6 grid
   ========================================================= */

/*.cm-shell {
    width: 100%;
    box-sizing: border-box;
}*/

/* day-of-week header */
/*.cm-dow {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-top: 6px;
    position: sticky;
    top: 0;
    z-index: 12;
    background: var(--mud-palette-background);
    padding-bottom: 8px;
}

.cm-dow-cell {
    font-size: 12px;
    color: var(--mud-palette-text-secondary);
    padding: 0 6px;
}*/

/* month grid */
/*.cm-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-top: 8px;
}

.cm-cell {
    min-height: 120px;
    border-radius: 14px;
    background: rgba(0,0,0,0.02);
    padding: 8px;
    box-sizing: border-box;
    cursor: pointer;
    overflow: hidden;
}

    .cm-cell.is-out {
        opacity: 0.55;
    }

    .cm-cell.is-today {
        outline: 2px solid rgba(var(--mud-palette-primary-rgb), 0.35);
    }

.cm-cell-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cm-daynum {
    font-weight: 700;
    font-size: 13px;
}

.cm-items {
    margin-top: 6px;
    display: grid;
    gap: 4px;
}

.cm-item {
    border-radius: 10px;
    padding: 4px 6px;
    font-size: 12px;
    cursor: pointer;
    border: 1px solid rgba(2, 136, 209, 0.20);
    background: rgba(2, 136, 209, 0.10);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cm-more {
    opacity: .75;
    font-size: 12px;
    padding: 0 2px;
}*/


/* ===== MONTH VIEW (cm-*) ===== */

.cm-shell {
    width: 100%;
    box-sizing: border-box;
}

.cm-dow {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-top: 6px;
    position: sticky;
    top: 0;
    z-index: 12;
    background: var(--mud-palette-background);
    padding-bottom: 8px;
}

.cm-dow-cell {
    font-size: 12px;
    color: var(--mud-palette-text-secondary);
    padding: 0 6px;
}

/* AutoWidth: Monatsansicht Spalten dynamisch über CSS var --cm-days */
.cm-dow.cm-aw {
    grid-template-columns: repeat(var(--cm-days), 1fr);
}

.cm-grid.cm-aw {
    grid-template-columns: repeat(var(--cm-days), 1fr);
}

.cm-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-top: 8px;
}

.cm-cell {
    min-height: 120px;
    border-radius: 14px;
    background: rgba(0,0,0,0.02);
    padding: 8px;
    box-sizing: border-box;
    cursor: pointer;
    overflow: hidden;
}

    .cm-cell.is-out {
        opacity: 0.55;
    }

    .cm-cell.is-today {
        outline: 2px solid rgba(var(--mud-palette-primary-rgb), 0.35);
    }

.cm-cell-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cm-daynum {
    font-weight: 700;
    font-size: 13px;
}

.cm-items {
    margin-top: 6px;
    display: grid;
    gap: 4px;
}

.cm-item {
    border-radius: 10px;
    padding: 4px 6px;
    font-size: 12px;
    cursor: pointer;
    border: 1px solid rgba(2, 136, 209, 0.20);
    background: rgba(2, 136, 209, 0.10);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    gap: 6px;
    align-items: center;
}

.cm-item-allday {
    border-radius: 999px;
}

.cm-item-timed {
    background: rgba(2, 136, 209, 0.07);
}

.cm-item-time {
    font-variant-numeric: tabular-nums;
    opacity: .85;
}

.cm-item-title {
    font-weight: 600;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cm-more {
    opacity: .75;
    font-size: 12px;
    padding: 0 2px;
}

/* tooltip */
.cm-tip {
    max-width: 380px;
}

.cm-tip-title {
    font-weight: 700;
    margin-bottom: 4px;
}

.cm-tip-sub {
    opacity: .85;
    margin-bottom: 4px;
}

.cm-tip-time {
    opacity: .85;
    font-variant-numeric: tabular-nums;
    margin-bottom: 6px;
}

.cm-tip-body {
    max-height: 220px;
    overflow: auto;
}

/* =========================================================
   Optional: make scrollbars a bit nicer (webkit only)
   ========================================================= */
.cd-viewport::-webkit-scrollbar,
.cw-scroll::-webkit-scrollbar {
    width: 10px;
}

.cd-viewport::-webkit-scrollbar-thumb,
.cw-scroll::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.15);
    border-radius: 999px;
}

.cd-viewport::-webkit-scrollbar-track,
.cw-scroll::-webkit-scrollbar-track {
    background: transparent;
}


/* Kleine Events: weniger Padding, weniger Text */
.cd-item--slim {
    padding: 4px 6px;
}

.cd-item--tiny {
    padding: 2px 6px;
    border-radius: 10px;
}

    .cd-item--tiny .cd-item-sub {
        display: none;
    }

    .cd-item--tiny .cd-item-title {
        font-size: 12px;
        line-height: 1.05;
    }

    /* Timebadge bei tiny nicht absolut (sonst überdeckt es alles) */
    .cd-item--tiny .cd-item-timebadge {
        position: static;
        display: inline-block;
        margin-bottom: 2px;
        padding: 1px 6px;
    }

/* =========================================================
   Appointment type colors (TT / Exchange / Holiday)
   ========================================================= */

/* default = TT appointment (dein bisheriges Blau) */
.appt-tt {
    background: rgba(2, 136, 209, 0.10);
    border-color: rgba(2, 136, 209, 0.20);
}

/* Exchange: andere Farbe (hier: teal/grünlich) */
.appt-ex {
    background: rgba(0, 150, 136, 0.12);
    border-color: rgba(0, 150, 136, 0.28);
}

/* Holiday: wie Timeline (secondary-ish / violett) */
.appt-holiday {
    background: rgba(123, 31, 162, 0.10);
    border-color: rgba(123, 31, 162, 0.20);
}

/* Day items */
.cd-item.appt-tt, .cd-allday-pill.appt-tt {
}

.cd-item.appt-ex, .cd-allday-pill.appt-ex {
}

.cd-item.appt-holiday, .cd-allday-pill.appt-holiday {
}

/* Week items */
.cw-item.appt-tt, .cw-allday-pill.appt-tt {
}

.cw-item.appt-ex, .cw-allday-pill.appt-ex {
}

.cw-item.appt-holiday, .cw-allday-pill.appt-holiday {
}

/* Month items */
.cm-item.appt-tt {
}

.cm-item.appt-ex {
}

.cm-item.appt-holiday {
}

/* Legend chips */
.cal-chip-tt {
    background: rgba(2, 136, 209, 0.10);
    border-color: rgba(2, 136, 209, 0.20);
}

.cal-chip-ex {
    background: rgba(0, 150, 136, 0.12);
    border-color: rgba(0, 150, 136, 0.28);
}

.cal-chip-holiday {
    background: rgba(123, 31, 162, 0.10);
    border-color: rgba(123, 31, 162, 0.20);
}
/* Merge aktiv: Typ-Chips nur Border, Background weg */
.cal-chip-borderonly {
    background: transparent !important;
}

.cal-legend {
    flex-wrap: wrap;
    margin-top: 6px;
}

/* Mitarbeiter Select etwas breiter */
.cal-resp {
    width: 220px;
}

/* Multi-Calendar Grid: nebeneinander, bei wenig Platz untereinander */
.cal-multi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(520px, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.cal-multi-card {
    padding: 10px;
    border-radius: 14px;
}

.cal-multi-title {
    margin-bottom: 8px;
    font-weight: 700;
}

/* Mobile: eine Spalte */
@media (max-width: 600px) {
    .cal-resp {
        width: 100%;
    }

    .cal-multi-grid {
        grid-template-columns: 1fr;
    }
}

/*EDIT*/
/* Dialog sizing */
.ea-dialog .mud-dialog-content {
    padding: 14px 16px;
}

.ea-dialog {
    width: min(1100px, 96vw);
    margin-left: 10px;
}

.ea-form {
    display: block;
}

/* Header */
.ea-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.ea-header-left {
    display: flex;
    gap: 10px;
    align-items: center;
}

.ea-icon {
    font-size: 28px;
    opacity: .9;
}

.ea-title {
    line-height: 1.1;
}

.ea-subtitle {
    margin-top: 2px;
}

.ea-header-right {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}

/* Cards */
.ea-card {
    padding: 12px;
    border-radius: 16px;
    margin-top: 10px;
}

.ea-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.ea-card-head--row {
    align-items: baseline;
    gap: 10px;
}

.ea-field {
    width: 100%;
}

/* Quick duration */
.ea-quick {
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.ea-quick-buttons {
    flex-wrap: wrap;
}

/* Attendee chips */
.ea-chipbar {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* Actions */
.ea-actions {
    padding: 10px 16px 14px 16px;
}

/* Responsive */
@media (max-width: 900px) {
    .ea-dialog {
        width: min(900px, 98vw);
    }
}

@media (max-width: 600px) {
    .ea-card {
        padding: 10px;
        border-radius: 14px;
    }

    .ea-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

.ea-ticketbar {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ea-ticket-suggestions {
    margin-top: 8px;
    flex-wrap: wrap;
}

.tt-gen-title {
    font-weight: 700;
    font-size: 12.5px;
    margin-bottom: 8px;
    letter-spacing: .2px;
    opacity: .9;
}

.cal-chip-room {
    border-color: #ef6c00;
    color: #ef6c00;
}
.appt-rm {
    border-left: 4px solid #ef6c00;
    background: rgba(239, 108, 0, 0.12);
}