:root {
    color-scheme: light;

    --brand: #e6212a;
    --brand-dark: #98070c;
    --brand-soft: #fff0f1;

    --success: #225d3a;
    --success-soft: #e7f3ea;
    --success-border: #b9d7c2;

    --warning: #805400;
    --warning-soft: #fff5d9;
    --warning-border: #ead39a;

    --danger: #98070c;
    --danger-soft: #fff0f0;
    --danger-border: #efb7b9;

    --background: #f3f5f7;
    --surface: #ffffff;
    --surface-muted: #f8fafb;

    --text: #17212b;
    --muted: #647180;
    --border: #dce2e7;

    --sidebar: #17212b;
    --sidebar-soft: #23313f;
    --sidebar-text: #f8fafc;
    --sidebar-muted: #aab5c0;
    --sidebar-width: 18.75rem;

    --radius-small: 8px;
    --radius: 14px;
    --radius-large: 22px;

    --shadow-small:
        0 3px 12px rgb(23 33 43 / 6%);

    --shadow:
        0 18px 50px rgb(23 33 43 / 12%);

    --focus:
        0 0 0 3px rgb(230 33 42 / 24%);
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html {
    min-height: 100%;
    background: var(--background);
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--text);
    background: var(--background);
    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    line-height: 1.5;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
select {
    cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
    outline: none;
    box-shadow: var(--focus);
}

button:disabled,
input:disabled,
select:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 0;
    font-size: clamp(1.35rem, 3vw, 2rem);
}

h2 {
    margin-bottom: 0;
    font-size: clamp(1.15rem, 2vw, 1.45rem);
}

h3 {
    margin-bottom: 0;
    font-size: 1.05rem;
}

label {
    display: grid;
    gap: 0.42rem;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 700;
}

input,
select,
textarea {
    width: 100%;
    min-height: 44px;
    padding: 0.7rem 0.82rem;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--radius-small);
    background: var(--surface);
}

textarea {
    resize: vertical;
}

input:hover,
select:hover,
textarea:hover {
    border-color: #b6c0c8;
}

.button {
    display: inline-flex;
    min-height: 42px;
    gap: 0.45rem;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1rem;
    border: 1px solid transparent;
    border-radius: var(--radius-small);
    font-weight: 750;
    text-decoration: none;
}

.button--primary {
    color: #fff;
    background: var(--brand);
}

.button--primary:hover {
    background: var(--brand-dark);
}

.button--secondary {
    color: var(--text);
    border-color: var(--border);
    background: var(--surface);
}

.button--secondary:hover {
    border-color: #b9c2ca;
    background: var(--surface-muted);
}

.button--ghost {
    color: var(--muted);
    background: transparent;
}

.button--ghost:hover {
    color: var(--text);
    background: var(--surface-muted);
}

.button--full {
    width: 100%;
}

.icon-button {
    display: inline-grid;
    width: 42px;
    height: 42px;
    padding: 0;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-small);
    background: var(--surface);
    font-size: 1.25rem;
}

.eyebrow {
    margin-bottom: 0.2rem;
    color: var(--brand);
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.muted {
    color: var(--muted);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    margin: -1px;
    padding: 0;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.login-page {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 1.25rem;
    background:
        radial-gradient(circle at 85% 10%,
            rgb(230 33 42 / 11%),
            transparent 36%),
        radial-gradient(circle at 10% 90%,
            rgb(34 93 58 / 8%),
            transparent 34%),
        var(--background);
}

.login-card {
    width: min(100%, 440px);
    padding: clamp(1.5rem, 5vw, 2.5rem);
    border: 1px solid var(--border);
    border-radius: var(--radius-large);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.login-brand {
    display: flex;
    gap: 0.85rem;
    align-items: center;
    margin-bottom: 2rem;
}

.brand-mark {
    display: inline-grid;
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    place-items: center;
    color: #fff;
    border-radius: 14px;
    background: var(--brand);
    box-shadow:
        0 8px 20px rgb(230 33 42 / 25%);
    font-weight: 900;
}

.form-stack {
    display: grid;
    gap: 1rem;
}

.app-shell {
    display: grid;
    min-height: 100vh;
    grid-template-columns:
        var(--sidebar-width) minmax(0, 1fr);
}

.sidebar {
    position: sticky;
    z-index: 30;
    top: 0;
    display: flex;
    min-width: 0;
    height: 100vh;
    height: 100dvh;
    flex-direction: column;
    overflow: hidden;
    padding: 1rem;
    color: var(--sidebar-text);
    background:
        linear-gradient(180deg,
            var(--sidebar),
            #101820);
}

.sidebar__brand {
    display: flex;
    flex-shrink: 0;
    gap: 0.8rem;
    align-items: center;
    padding: 0.5rem;
}

.sidebar__brand small,
.sidebar__footer small {
    display: block;
    color: var(--sidebar-muted);
}

.sidebar__nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    flex: 1;
    min-width: 0;
    min-height: 0;
    gap: 0.35rem;
    margin-top: 2rem;
    padding: 0.25rem;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
}

.nav-link {
    display: flex;
    width: 100%;
    min-width: 0;
    min-height: 45px;
    gap: 0.65rem;
    align-items: center;
    padding: 0.75rem 0.9rem;
    color: var(--sidebar-muted);
    border: 0;
    border-radius: 10px;
    background: transparent;
    text-align: left;
    font-weight: 720;
}

.nav-link__label {
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
    hyphens: auto;
}

.nav-link > [aria-hidden="true"] {
    width: 1.25rem;
    flex: 0 0 1.25rem;
    text-align: center;
}

.sidebar__brand > span:last-child,
.sidebar__footer {
    min-width: 0;
    overflow-wrap: anywhere;
}

.nav-link:hover,
.nav-link.is-active {
    color: #fff;
    background: rgb(255 255 255 / 10%);
}

.nav-link.is-active {
    box-shadow:
        inset 3px 0 0 var(--brand);
}

.sidebar__footer {
    flex-shrink: 0;
    margin-top: auto;
    padding: 1rem 0.5rem;
    border-top:
        1px solid rgb(255 255 255 / 9%);
}

.sidebar-backdrop {
    position: fixed;
    z-index: 25;
    inset: 0;
    background: rgb(0 0 0 / 42%);
}

.app-main {
    min-width: 0;
}

.topbar {
    position: sticky;
    z-index: 20;
    top: 0;
    display: flex;
    min-height: 82px;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    padding:
        0.85rem clamp(1rem, 3vw, 2rem);
    border-bottom: 1px solid var(--border);
    background: rgb(255 255 255 / 92%);
    backdrop-filter: blur(14px);
}

.topbar__left,
.topbar__actions {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.mobile-menu-button {
    display: none;
}

.content {
    display: grid;
    gap: 1.25rem;
    padding:
        clamp(1rem, 3vw, 2rem);
}

.view {
    display: grid;
    gap: 1.15rem;
}

.view-heading {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
    justify-content: space-between;
}

.panel {
    min-width: 0;
    padding:
        clamp(1rem, 2.5vw, 1.4rem);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-small);
}

.panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.metric-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns:
        repeat(auto-fit,
            minmax(175px, 1fr));
}

.metric-card {
    display: flex;
    gap: 0.85rem;
    align-items: center;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-small);
}

.metric-card__icon {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    place-items: center;
    color: var(--brand);
    border-radius: 12px;
    background: var(--brand-soft);
    font-size: 1.2rem;
    font-weight: 900;
}

.metric-card__label {
    display: block;
    color: var(--muted);
    font-size: 0.82rem;
}

.metric-card__value {
    display: block;
    font-size: 1.75rem;
    line-height: 1.15;
}

.dashboard-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns:
        minmax(0, 2fr) minmax(260px, 1fr);
}

.load-list {
    display: grid;
    gap: 1rem;
}

.load-item {
    display: grid;
    gap: 0.45rem;
}

.load-item__heading {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    color: var(--muted);
    font-size: 0.86rem;
}

.employee-name {
    color: var(--text);
    font-weight: 750;
}

.employee-color,
.color-preview {
    display: inline-block;
    width: 13px;
    height: 13px;
    margin-right: 0.4rem;
    border-radius: 50%;
    vertical-align: middle;
}

.color-preview {
    width: 24px;
    height: 24px;
    border:
        1px solid rgb(0 0 0 / 12%);
}

.color-preview-input {
    width: 28px;
    height: 28px;
    min-height: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: transparent;
    cursor: default;
}

.color-preview-input::-webkit-color-swatch-wrapper {
    padding: 0;
}

.color-preview-input::-webkit-color-swatch {
    border: 0;
    border-radius: 50%;
}

.color-preview-input::-moz-color-swatch {
    border: 0;
    border-radius: 50%;
}

.progress {
    height: 8px;
    overflow: hidden;
    border-radius: 99px;
    background: #edf0f2;
}

.progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background:
        linear-gradient(90deg,
            var(--brand),
            var(--brand-dark));
}

.quick-actions {
    display: grid;
    gap: 0.7rem;
}

.quick-action {
    min-height: 48px;
    padding: 0.75rem 0.9rem;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--radius-small);
    background: var(--surface-muted);
    text-align: left;
    font-weight: 720;
}

.quick-action:hover {
    color: var(--brand-dark);
    border-color: #efb7b9;
    background: var(--brand-soft);
}

.filter-bar {
    display: grid;
    gap: 0.8rem;
    align-items: end;
    margin-bottom: 1rem;
    grid-template-columns:
        repeat(3, minmax(0, 1fr)) auto;
}

.filter-reset {
    white-space: nowrap;
}

.search-bar {
    display: grid;
    gap: 0.75rem;
    grid-template-columns:
        minmax(0, 1fr) auto;
}

.result-summary {
    min-height: 1.5rem;
    margin-top: 1rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 0.8rem 0.75rem;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: middle;
}

th {
    color: var(--muted);
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

tbody tr:hover {
    background: var(--surface-muted);
}

.table-subtitle {
    display: block;
    margin-top: 0.15rem;
    color: var(--muted);
}

.table-action {
    padding: 0.4rem 0.65rem;
    color: var(--brand-dark);
    border: 0;
    border-radius: 7px;
    background: var(--brand-soft);
    font-weight: 750;
}

.status-badge {
    display: inline-flex;
    padding: 0.25rem 0.55rem;
    color: #56616c;
    border: 1px solid #d5dbe0;
    border-radius: 99px;
    background: #f0f2f4;
    font-size: 0.76rem;
    font-weight: 750;
}

.status-badge--success {
    color: var(--success);
    border-color: var(--success-border);
    background: var(--success-soft);
}

.status-badge--warning {
    color: var(--warning);
    border-color: var(--warning-border);
    background: var(--warning-soft);
}

.status-badge--danger {
    color: var(--danger);
    border-color: var(--danger-border);
    background: var(--danger-soft);
}

.message {
    padding: 0.75rem 0.9rem;
    color: var(--success);
    border: 1px solid var(--success-border);
    border-radius: var(--radius-small);
    background: var(--success-soft);
}

.message--error {
    color: var(--danger);
    border-color: var(--danger-border);
    background: var(--danger-soft);
}

.message:not([hidden]) {
    margin-block: 1rem;
}

.form-stack>.message:not([hidden]),
.dialog-card>.message:not([hidden]) {
    margin-block: 0.75rem 1rem;
}

.empty-state {
    margin: 0;
    padding: 2rem 1rem;
    color: var(--muted);
    text-align: center;
}

.toast-region {
    position: fixed;
    z-index: 100;
    top: 1rem;
    right: 1rem;
    display: grid;
    width: min(380px, calc(100% - 2rem));
    gap: 0.65rem;
}

.toast {
    padding: 0.85rem 1rem;
    color: var(--success);
    border: 1px solid var(--success-border);
    border-radius: var(--radius-small);
    background: var(--success-soft);
    box-shadow: var(--shadow);
    animation:
        toast-in 180ms ease-out;
}

.toast--error {
    color: var(--danger);
    border-color: var(--danger-border);
    background: var(--danger-soft);
}

.toast.is-leaving {
    opacity: 0;
    transform: translateY(-8px);
    transition:
        opacity 220ms,
        transform 220ms;
}

.loading-overlay {
    position: fixed;
    z-index: 200;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgb(23 33 43 / 35%);
    backdrop-filter: blur(2px);
}

.loading-card {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
    font-weight: 720;
}

.spinner {
    width: 22px;
    height: 22px;
    border: 3px solid #e3e7ea;
    border-top-color: var(--brand);
    border-radius: 50%;
    animation:
        spin 700ms linear infinite;
}

.dialog {
    width:
        min(900px,
            calc(100% - 2rem));
    max-height:
        calc(100vh - 2rem);
    padding: 0;
    overflow: auto;
    border: 0;
    border-radius: var(--radius-large);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.dialog::backdrop {
    background: rgb(23 33 43 / 60%);
    backdrop-filter: blur(3px);
}

.dialog-card {
    padding:
        clamp(1rem, 3vw, 1.5rem);
}

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

.detail-grid {
    display: grid;
    gap: 0.75rem;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
}

.detail-item {
    display: grid;
    gap: 0.2rem;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-small);
    background: var(--surface-muted);
}

.detail-item span {
    color: var(--muted);
    font-size: 0.78rem;
}

.detail-item--wide {
    grid-column: 1 / -1;
}

.dialog-section-grid {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
}

.dialog-section {
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.dialog-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

.form-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
}

.form-field--wide {
    grid-column: 1 / -1;
}

.checkbox-grid {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.checkbox-label {
    display: flex;
    gap: 0.55rem;
    align-items: center;
    color: var(--text);
}

.checkbox-label input {
    width: 18px;
    min-height: auto;
    height: 18px;
}

/*
|--------------------------------------------------------------------------
| Kalendersuche
|--------------------------------------------------------------------------
*/

.calendar-search {
    display: grid;
    gap: 1rem;
}

.calendar-search__form {
    display: grid;
    gap: 0.75rem;
    align-items: end;
    grid-template-columns:
        minmax(260px, 1fr) auto auto;
}

.calendar-search__field {
    min-width: 0;
}

.calendar-search__results {
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.calendar-search__results .result-summary {
    margin-top: 0;
    margin-bottom: 0.75rem;
}

/*
|--------------------------------------------------------------------------
| Kalender
|--------------------------------------------------------------------------
*/

.calendar-panel {
    overflow: hidden;
}

.calendar-display-settings {
    margin: 0 0 0.65rem;
}

.calendar-display-settings > summary {
    width: fit-content;
    margin-left: auto;
    padding: 0.25rem 0.55rem;
    color: var(--muted);
    border-radius: 6px;
    font-size: 0.82rem;
    cursor: pointer;
}

.calendar-display-settings > summary:hover {
    color: var(--text);
    background: var(--surface-muted);
}

.calendar-weekdays {
    min-width: 0;
    margin: 0.5rem 0 0;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-small);
    background: var(--surface-muted);
}

.calendar-weekdays legend {
    padding: 0 0.35rem;
    font-weight: 750;
}

.calendar-weekdays__options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.calendar-weekdays__options label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 40px;
    padding: 0.35rem 0.65rem;
    border: 1px solid var(--border);
    border-radius: 7px;
    background: var(--surface);
    cursor: pointer;
}

.calendar-weekdays__options label:has(input:checked) {
    color: var(--brand-dark);
    border-color: var(--brand);
    background: var(--brand-soft);
}

.calendar-weekdays__options input {
    width: 1rem;
    height: 1rem;
    margin: 0;
    accent-color: var(--brand);
}

#admin-calendar {
    width: 100%;
    min-height: 680px;
}

.fc {
    --fc-border-color:
        var(--border);

    --fc-page-bg-color:
        var(--surface);

    --fc-neutral-bg-color:
        var(--surface-muted);

    --fc-today-bg-color:
        rgb(230 33 42 / 5%);

    --fc-now-indicator-color:
        var(--brand);

    --fc-event-bg-color:
        var(--brand);

    --fc-event-border-color:
        var(--brand-dark);

    --fc-event-text-color:
        #ffffff;

    width: 100%;
    color: var(--text);
    font-family: inherit;
    font-size: 0.9rem;
}

.fc .fc-toolbar {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.25rem;
}

.fc .fc-toolbar-title {
    color: var(--text);
    font-size: clamp(1.1rem,
            2vw,
            1.45rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.fc .fc-button {
    min-height: 38px;
    padding: 0.48rem 0.75rem;
    border-radius: 8px;
    box-shadow: none;
    font-family: inherit;
    font-size: 0.86rem;
    font-weight: 750;
}

.fc .fc-button:focus-visible {
    outline: none;
    box-shadow: var(--focus);
}

.fc .fc-day-header {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 750;
}

.fc .fc-timegrid-axis {
    color: var(--muted);
    font-size: 0.76rem;
}

.fc .fc-timegrid-slot {
    height: 2.7rem;
}

.fc .fc-timegrid-slot-label {
    color: var(--muted);
    font-size: 0.76rem;
}

.fc .fc-event {
    overflow: hidden;
    border-radius: 7px;
    box-shadow:
        0 3px 8px rgb(23 33 43 / 14%);
    cursor: pointer;
}

.fc .fc-event:hover {
    filter: brightness(0.96);
}

.fc .fc-event-main {
    padding: 0.2rem 0.35rem;
}

.fc .fc-event-time {
    font-size: 0.74rem;
    font-weight: 800;
}

.fc .fc-event-title {
    margin-top: 0.1rem;
    overflow: hidden;
    font-size: 0.78rem;
    font-weight: 700;
    text-overflow: ellipsis;
}

.fc .fc-col-header-cell {
    padding-block: 0.6rem;
    background: var(--surface-muted);
}

.fc .fc-scrollgrid {
    overflow: hidden;
    border-radius: 10px;
}

.fc .fc-list {
    border-radius: 10px;
}

.fc .fc-list-day-cushion {
    padding: 0.65rem 0.8rem;
    background: var(--surface-muted);
}

.fc .fc-list-event:hover td {
    background: var(--brand-soft);
}

/*
|--------------------------------------------------------------------------
| Individuelle Kalendertermine
|--------------------------------------------------------------------------
*/

.fc .fc-event.calendar-event {
    color:
        var(--employee-calendar-text-color,
            #ffffff) !important;

    border-color:
        var(--employee-calendar-color,
            var(--brand)) !important;

    background:
        var(--employee-calendar-color,
            var(--brand)) !important;
}

.fc .fc-event.calendar-event .fc-event-main {
    height: 100%;
    color: inherit;
}

/*
|--------------------------------------------------------------------------
| Kalendertermin – gemeinsamer Aufbau
|--------------------------------------------------------------------------
*/

.fc .fc-event.calendar-event {
    overflow: hidden;
    color:
        var(--employee-calendar-text-color,
            #ffffff) !important;
    border-color:
        var(--employee-calendar-color,
            var(--brand)) !important;
    background:
        var(--employee-calendar-color,
            var(--brand)) !important;
}

.fc .fc-event.calendar-event .fc-event-main {
    width: 100%;
    height: 100%;
    min-width: 0;
    overflow: hidden;
    color: inherit;
}

.calendar-event__content {
    width: 100%;
    min-width: 0;
    height: 100%;
    color: inherit;
}

.calendar-event__heading {
    display: flex;
    min-width: 0;
    gap: 0.35rem;
    align-items: center;
    justify-content: space-between;
}

.calendar-event__time {
    min-width: 0;
    overflow: hidden;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.calendar-event__customer {
    display: block;
    min-width: 0;
    overflow: hidden;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.calendar-event__service {
    display: block;
    min-width: 0;
    overflow: hidden;
    font-size: 0.68rem;
    font-weight: 650;
    line-height: 1.2;
    opacity: 0.9;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.calendar-event__summary {
    display: block;
    min-width: 0;
    overflow: hidden;
    font-size: 0.72rem;
    font-weight: 760;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/*
|--------------------------------------------------------------------------
| Tages- und Wochenansicht
|--------------------------------------------------------------------------
*/

.fc-timegrid-event .calendar-event__content--timegrid {
    display: grid;
    gap: 0.12rem;
    align-content: center;
    padding: 0.22rem 0.38rem;
}

.fc-timegrid-event .calendar-event__heading {
    min-height: 16px;
}

.fc-timegrid-event .calendar-event__summary {
    font-size: 0.7rem;
    line-height: 1.1;
}

.fc-timegrid-event .calendar-event__status {
    max-width: 48%;
    padding:
        0.08rem 0.3rem;
    font-size: 0.56rem;
    line-height: 1.1;
}

/*
 * FullCalendar versieht kurze Termine teilweise mit
 * der Klasse fc-event-short. Wir verwenden trotzdem
 * einen stabilen zweizeiligen Aufbau.
 */
.fc-timegrid-event.fc-event-short .calendar-event__content--timegrid {
    gap: 0.05rem;
    padding:
        0.14rem 0.3rem;
}

.fc-timegrid-event.fc-event-short .calendar-event__time {
    font-size: 0.64rem;
}

.fc-timegrid-event.fc-event-short .calendar-event__summary {
    font-size: 0.64rem;
}

.fc-timegrid-event.fc-event-short .calendar-event__status {
    max-width: 46%;
    padding:
        0.05rem 0.24rem;
    font-size: 0.51rem;
}

/*
|--------------------------------------------------------------------------
| Wochenansicht – kompakte Termine
|--------------------------------------------------------------------------
*/

.fc-timeGridWeek-view .calendar-event__content--week {
    display: grid;
    width: 100%;
    min-width: 0;
    gap: 0.12rem;
    align-content: center;
    padding: 0.2rem 0.3rem;
}

.fc-timeGridWeek-view .calendar-event__content--week .calendar-event__heading {
    display: flex;
    width: 100%;
    min-width: 0;
    gap: 0.22rem;
    align-items: center;
    justify-content: space-between;
}

.fc-timeGridWeek-view .calendar-event__content--week .calendar-event__time {
    min-width: 0;
    flex: 0 1 auto;
    overflow: hidden;
    font-size: 0.68rem;
    font-weight: 850;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fc-timeGridWeek-view .calendar-event__content--week .calendar-event__status {
    min-width: 0;
    max-width: 58%;
    flex: 0 1 auto;
    padding: 0.07rem 0.26rem;
    overflow: hidden;
    font-size: 0.52rem;
    line-height: 1.05;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fc-timeGridWeek-view .calendar-event__content--week .calendar-event__summary {
    display: block;
    width: 100%;
    min-width: 0;
    overflow: hidden;
    font-size: 0.68rem;
    font-weight: 780;
    line-height: 1.12;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/*
 * In der Wochenansicht wird die Dienstleistung
 * bewusst nicht als eigene Zeile dargestellt.
 */
.fc-timeGridWeek-view .calendar-event__service--timegrid {
    display: none;
}

@media (max-width: 1250px) {
    .fc-timeGridWeek-view .calendar-event__content--week .calendar-event__status {
        max-width: 52%;
        padding-inline: 0.2rem;
        font-size: 0.48rem;
    }

    .fc-timeGridWeek-view .calendar-event__content--week .calendar-event__time,
    .fc-timeGridWeek-view .calendar-event__content--week .calendar-event__summary {
        font-size: 0.62rem;
    }
}

/*
|--------------------------------------------------------------------------
| Listenansicht
|--------------------------------------------------------------------------
*/

.fc-list-event .calendar-event__content--list {
    display: grid;
    gap: 0.12rem;
    padding:
        0.35rem 0.55rem;
}

.fc-list-event .calendar-event__heading {
    justify-content: flex-start;
}

.fc-list-event .calendar-event__status {
    max-width: none;
}

.fc-list-event .calendar-event__customer {
    font-size: 0.82rem;
}

.fc-list-event .calendar-event__service {
    font-size: 0.72rem;
}

/*
|--------------------------------------------------------------------------
| Monatsansicht
|--------------------------------------------------------------------------
*/

.fc-daygrid-event .calendar-event__content--daygrid {
    display: flex;
    min-width: 0;
    gap: 0.3rem;
    align-items: center;
    padding:
        0.12rem 0.25rem;
}

.fc-daygrid-event .calendar-event__time {
    flex: 0 0 auto;
}

.fc-daygrid-event .calendar-event__summary {
    flex: 1 1 auto;
}

.fc-daygrid-event .calendar-event__status {
    max-width: 42%;
    flex: 0 1 auto;
    padding:
        0.06rem 0.25rem;
    font-size: 0.52rem;
}

/*
|--------------------------------------------------------------------------
| Statusanzeige innerhalb des Termins
|--------------------------------------------------------------------------
*/

.calendar-event__status {
    display: inline-flex;
    min-width: 0;
    flex: 0 1 auto;
    align-items: center;
    justify-content: center;
    padding:
        0.1rem 0.32rem;
    overflow: hidden;
    color: #17212b;
    border: 1px solid rgb(255 255 255 / 45%);
    border-radius: 99px;
    background:
        rgb(255 255 255 / 88%);
    font-size: 0.58rem;
    font-weight: 700;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgb(23 33 43 / 10%);
}

.fc-timegrid-event.calendar-status--cancelled .calendar-event__summary {
    text-decoration:
        line-through;
}

.fc-timegrid-event.calendar-status--cancelled .calendar-event__status {
    opacity: 1;
    text-decoration: none;
}

/*
|--------------------------------------------------------------------------
| Statusvarianten
|--------------------------------------------------------------------------
*/

/* Die Mitarbeiterfarbe bestimmt den Terminrand in allen Kalenderansichten.
   Statusfarben bleiben auf die Beschriftung beschränkt. */
.calendar-event {
    border-color: var(--employee-calendar-color, #647180) !important;
}

/* Entwurf */

.status-badge--draft,
.calendar-event.calendar-status--draft .calendar-event__status {
    color: #444e59;
    border-color: #cbd1d8;
    background: #e9edf1;
}

/* Reserviert */

.status-badge--reserved,
.calendar-event.calendar-status--reserved .calendar-event__status {
    color: #6a591e;
    border-color: #cfc08d;
    background: #eee5c9;
}

/* Geplant */

.status-badge--planned,
.calendar-event.calendar-status--planned .calendar-event__status {
    color: #334f75;
    border-color: #acbed5;
    background: #dbe5f1;
}

/* Bestätigt */

.status-badge--confirmed,
.calendar-event.calendar-status--confirmed .calendar-event__status {
    color: #235b55;
    border-color: #9cbfb8;
    background: #d3eae6;
}

/* In Bearbeitung */

.status-badge--in-progress,
.calendar-event.calendar-status--in-progress .calendar-event__status {
    color: #714d17;
    border-color: #cdb17b;
    background: #f3dfb9;
}

/* Erledigt */

.status-badge--completed,
.calendar-event.calendar-status--completed .calendar-event__status {
    color: #315b34;
    border-color: #a4bea0;
    background: #d8e8d5;
}

/* Nicht angetroffen */

.status-badge--not-home,
.calendar-event.calendar-status--not-home .calendar-event__status {
    color: #7b4b2d;
    border-color: #d3b19a;
    background: #f4dfd0;
}

/* Kein Zutritt */

.status-badge--access-denied,
.calendar-event.calendar-status--access-denied .calendar-event__status {
    color: #604435;
    border-color: #bca494;
    background: #e6d8cc;
}

/* Neuer Termin erforderlich */

.status-badge--rescheduling-required,
.calendar-event.calendar-status--rescheduling-required .calendar-event__status {
    color: #783c56;
    border-color: #c59eaf;
    background: #eed7e1;
}

/* Verschoben */

.status-badge--rescheduled,
.calendar-event.calendar-status--rescheduled .calendar-event__status {
    color: #574579;
    border-color: #b6a6ca;
    background: #e3daf0;
}

/* Storniert */

/* Nur den Inhalt abschwächen, damit Status-Badges gut lesbar bleiben. */
.calendar-event.calendar-status--cancelled :is(.calendar-event__time, .calendar-event__summary, .calendar-event__customer, .calendar-event__service) {
    opacity: 0.72;
}

.calendar-event.calendar-status--cancelled .calendar-event__summary,
.calendar-event.calendar-status--cancelled .calendar-event__customer,
.calendar-event.calendar-status--cancelled .calendar-event__service {
    text-decoration:
        line-through;
}

.status-badge--customer-cancelled,
.status-badge--company-cancelled,
.status-badge--employee-cancelled,
.calendar-event.calendar-status--cancelled .calendar-event__status {
    color: #843c3c;
    border-color: #d0a0a0;
    background: #f2dada;
}

/* Synchronisierung offen */

.status-badge--sync-pending,
.calendar-event.calendar-status--sync-pending .calendar-event__status {
    color: #4b5277;
    border-color: #afb5d0;
    background: #e3e5f2;
}

/* Synchronisierungskonflikt */

.status-badge--sync-conflict,
.calendar-event.calendar-status--sync-conflict .calendar-event__status {
    color: #713c69;
    border-color: #c2a0ba;
    background: #e9d5e4;
}

/* Archiviert */

.calendar-event.calendar-status--archived :is(.calendar-event__time, .calendar-event__summary, .calendar-event__customer, .calendar-event__service) {
    opacity: 0.72;
}

.status-badge--archived,
.calendar-event.calendar-status--archived .calendar-event__status {
    color: #424d5a;
    border-color: #b1bac6;
    background: #d7dee7;
}

.fc-daygrid-event .calendar-event__content {
    gap: 0.05rem;
    padding: 0.16rem 0.25rem;
}

.fc-daygrid-event .calendar-event__service {
    display: none;
}

.fc-daygrid-event .calendar-event__status {
    max-width: 52%;
    font-size: 0.56rem;
}

@media (max-width: 680px) {
    .calendar-event__status {
        max-width: 54%;
        padding-inline: 0.25rem;
        font-size: 0.55rem;
    }

    .calendar-event__service {
        display: none;
    }
}

@media (max-width: 760px) {
    .calendar-search__form {
        grid-template-columns: 1fr;
    }

    .calendar-search__form .button {
        width: 100%;
    }
}

@media (max-width: 900px) {
    #admin-calendar {
        min-height: 600px;
    }

    .fc .fc-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .fc .fc-toolbar-chunk {
        display: flex;
        justify-content: center;
    }
}

@media (max-width: 680px) {
    #admin-calendar {
        min-height: 520px;
    }

    .fc .fc-button {
        padding-inline: 0.55rem;
        font-size: 0.78rem;
    }

    .fc .fc-toolbar-title {
        text-align: center;
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes toast-in {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
}

@media (max-width: 1050px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .filter-bar {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 850px) {
    .app-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: fixed;
        width: min(var(--sidebar-width), calc(100vw - 1.5rem));
        transform: translateX(-105%);
        transition:
            transform 180ms ease;
    }

    .sidebar.is-open {
        transform: translateX(0);
    }

    .mobile-menu-button {
        display: inline-grid;
    }

    .topbar__actions .button--ghost {
        display: none;
    }

    .dialog-section-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .content {
        padding: 0.75rem;
    }

    .topbar {
        padding: 0.75rem;
    }

    .topbar__actions .button--secondary {
        font-size: 0;
    }

    .topbar__actions .button--secondary::after {
        content: "↻";
        font-size: 1.2rem;
    }

    .view-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .filter-bar,
    .form-grid,
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .detail-item--wide,
    .form-field--wide {
        grid-column: auto;
    }

    .search-bar {
        grid-template-columns: 1fr;
    }

    .fc .fc-toolbar {
        gap: 0.75rem;
        align-items: stretch;
        flex-direction: column;
    }

    .fc .fc-toolbar-chunk {
        display: flex;
        justify-content: center;
    }

    .dialog {
        width: 100%;
        max-height: 100vh;
        margin: 0;
        border-radius: 0;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}


/*
|--------------------------------------------------------------------------
| Ausbaustufe 1 – vollständige Terminverwaltung
|--------------------------------------------------------------------------
*/

.view-heading__actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: flex-end;
}

.view-heading__actions .muted {
    max-width: 620px;
    margin: 0;
    text-align: right;
}

.dialog--wide {
    width: min(1180px, calc(100% - 2rem));
}

.dialog-tabs {
    display: flex;
    gap: 0.35rem;
    margin-bottom: 1rem;
    padding: 0.3rem;
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface-muted);
    scrollbar-width: thin;
}

.dialog-tab {
    min-height: 40px;
    flex: 0 0 auto;
    padding: 0.55rem 0.8rem;
    color: var(--muted);
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    font-weight: 760;
    white-space: nowrap;
}

.dialog-tab:hover {
    color: var(--text);
    background: var(--surface);
}

.dialog-tab.is-active {
    color: var(--brand-dark);
    border-color: var(--border);
    background: var(--surface);
    box-shadow: var(--shadow-small);
}

.appointment-tab-panel {
    min-width: 0;
}

.form-section {
    display: grid;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface-muted);
}

.form-section__header {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
}

.form-grid--three {
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
}

.form-submit-row {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
    justify-content: space-between;
    padding-top: 0.25rem;
}

.notification-option {
    font-weight: 760;
}

.form-hint {
    display: block;
    max-width: 680px;
    margin: 0.35rem 0 0;
    color: var(--muted);
    font-size: 0.78rem;
}

.history-state {
    margin-bottom: 0.8rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.history-state--error {
    color: var(--danger);
}

.history-list {
    display: grid;
    gap: 0.8rem;
}

.history-entry {
    position: relative;
    display: grid;
    gap: 0.45rem;
    padding: 1rem;
    border: 1px solid var(--border);
    border-left: 4px solid var(--brand);
    border-radius: var(--radius-small);
    background: var(--surface);
    box-shadow: var(--shadow-small);
}

.history-entry__header {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    justify-content: space-between;
}

.history-entry__header time {
    flex: 0 0 auto;
    color: var(--muted);
    font-size: 0.78rem;
    white-space: nowrap;
}

.history-entry__meta,
.history-entry__note {
    margin: 0;
}

.history-entry__meta {
    color: var(--muted);
    font-size: 0.82rem;
}

.history-entry__note {
    padding: 0.65rem 0.75rem;
    border-radius: 7px;
    background: var(--surface-muted);
    white-space: pre-wrap;
}

.history-entry__details {
    margin-top: 0.2rem;
    border-top: 1px solid var(--border);
    padding-top: 0.65rem;
}

.history-entry__details summary {
    color: var(--brand-dark);
    cursor: pointer;
    font-size: 0.84rem;
    font-weight: 760;
}

.history-change-grid {
    display: grid;
    gap: 0;
    margin-top: 0.75rem;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 8px;
    grid-template-columns:
        minmax(140px, 0.7fr) minmax(0, 1fr) minmax(0, 1fr);
}

.history-change-grid__header,
.history-change-grid__label,
.history-value {
    min-width: 0;
    padding: 0.55rem 0.65rem;
    border-bottom: 1px solid var(--border);
    overflow-wrap: anywhere;
}

.history-change-grid__header {
    color: var(--text);
    background: #eef2f5;
    font-size: 0.75rem;
    font-weight: 850;
    text-transform: uppercase;
}

.history-change-grid__label {
    color: var(--muted);
    background: var(--surface-muted);
    font-size: 0.78rem;
    font-weight: 760;
}

.history-value {
    font-size: 0.82rem;
    white-space: pre-wrap;
}

.history-value--old {
    color: #7f1d1d;
    background: #fff7f7;
}

.history-value--new {
    color: #14532d;
    background: #f5fff8;
}

.history-change-grid> :nth-last-child(-n + 3) {
    border-bottom: 0;
}

@media (max-width: 980px) {
    .form-grid--three {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .view-heading__actions {
        align-items: flex-end;
        flex-direction: column;
    }

    .view-heading__actions .muted {
        text-align: left;
    }
}

@media (max-width: 680px) {
    .dialog--wide {
        width: 100%;
    }

    .dialog-tabs {
        border-inline: 0;
        border-radius: 0;
    }

    .form-grid--three {
        grid-template-columns: 1fr;
    }

    .form-submit-row,
    .history-entry__header,
    .view-heading__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .form-submit-row .button,
    .view-heading__actions .button {
        width: 100%;
    }

    .history-entry__header time {
        white-space: normal;
    }

    .history-change-grid {
        grid-template-columns: 1fr;
    }

    .history-change-grid__header {
        display: none;
    }

    .history-change-grid__label {
        border-top: 1px solid var(--border);
        border-bottom: 0;
    }

    .history-change-grid__label:first-child {
        border-top: 0;
    }

    .history-value {
        border-bottom: 0;
    }

    .history-value--new {
        border-bottom: 1px solid var(--border);
    }
}

.availability-tabs {
    margin-bottom: 1rem;
}

.availability-list {
    display: grid;
    gap: 0.75rem;
    margin-block: 1rem;
}

.availability-item {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr) auto auto auto;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
}

.availability-item__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.availability-item__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.assignment-grid {
    display: grid;
    grid-template-columns:
        repeat(auto-fit,
            minmax(240px, 1fr));
    gap: 0.75rem;
    margin-block: 1rem;
}

.assignment-option {
    display: grid;
    grid-template-columns:
        auto minmax(0, 1fr);
    align-items: start;
    gap: 0.75rem;
    padding: 0.9rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
}

.assignment-option__priority {
    grid-column: 2;
}

.availability-preview-results {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.availability-preview-slot {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 0.8rem;
    border: 1px solid var(--success-border);
    border-radius: 999px;
    background:
        var(--success-surface);
}

.weekday-grid {
    display: grid;
    grid-template-columns:
        repeat(7,
            minmax(160px, 1fr));
    gap: 0.75rem;
    overflow-x: auto;
}

.weekday-column {
    min-width: 160px;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background:
        var(--surface-muted);
}

@media (max-width: 760px) {
    .availability-item {
        grid-template-columns: 1fr;
    }

    .weekday-grid {
        grid-template-columns: 1fr;
        overflow-x: visible;
    }

    .availability-item__actions {
        width: 100%;
    }
}

.area-postal-rows {
    display: grid;
    gap: 0.75rem;
}

.area-postal-row {
    display: grid;
    grid-template-columns:
        minmax(120px, 0.7fr) minmax(180px, 1fr) minmax(180px, 1fr) auto;
    align-items: end;
    gap: 0.75rem;
    padding: 0.85rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface-muted);
}

.area-postal-summary+.area-postal-summary {
    margin-top: 0.25rem;
}

.table-actions,
.badge-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.permission-matrix {
    min-width: 900px;
}

.permission-matrix__cell {
    text-align: center;
    font-weight: 700;
}

.assignment-option span {
    display: grid;
    gap: 0.15rem;
}

.assignment-option small {
    color: var(--muted);
}

@media (max-width: 760px) {
    .area-postal-row {
        grid-template-columns: 1fr;
    }

    .area-postal-row__remove {
        justify-self: start;
    }
}

/*
|--------------------------------------------------------------------------
| Arbeitszeiten – Aktivstatus ausrichten
|--------------------------------------------------------------------------
*/

#working-hours-list .availability-item__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.5rem;
}

#working-hours-list .status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;

    min-width: 4.5rem;
    min-height: 2.25rem;

    margin: 0;
    padding: 0.45rem 0.75rem;

    box-sizing: border-box;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
}

/*
|--------------------------------------------------------------------------
| Ausbaustufe 4 – Kalenderwerkzeuge
|--------------------------------------------------------------------------
*/

.calendar-comfort {
    display: grid;
    grid-template-columns: minmax(18rem, 1fr) minmax(12rem, auto) auto;
    gap: 1rem;
    align-items: end;
    margin-bottom: 1rem;
    padding: 1rem;
    border: 1px solid var(--border-color, #d8dee5);
    border-radius: 0.75rem;
    background: var(--surface-color, #ffffff);
}

.calendar-comfort__layers {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.calendar-comfort__layers legend {
    width: 100%;
    margin-bottom: 0.35rem;
    font-weight: 700;
}

.calendar-comfort__updated {
    align-self: center;
    color: var(--muted-color, #647180);
    font-size: 0.875rem;
    white-space: nowrap;
}

.calendar-comfort__actions {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem;
}

/* Arbeitszeiten als ruhiger FullCalendar-Hintergrund. */
.fc .calendar-layer--working-hours,
.fc .calendar-layer-event--working_hours {
    background: rgba(36, 143, 83, 0.14) !important;
    border-color: transparent !important;
}

/* Abwesenheiten und Sperrzeiten bleiben klar von Terminen unterscheidbar. */
.fc .calendar-layer-event--absence,
.fc .calendar-layer--absence {
    background: rgba(184, 70, 70, 0.88) !important;
    border-color: rgba(130, 35, 35, 1) !important;
    color: #ffffff !important;
    cursor: default;
}

.fc .calendar-layer-event--blocking_period,
.fc .calendar-layer--blocking-period {
    background: rgba(214, 132, 35, 0.9) !important;
    border-color: rgba(153, 84, 5, 1) !important;
    color: #17212b !important;
    cursor: default;
}

/*
|--------------------------------------------------------------------------
| Excel-Import
|--------------------------------------------------------------------------
*/

.import-dialog {
    display: grid;
    gap: 1rem;
}

.import-summary {
    margin: 0;
    padding: 0.75rem 1rem;
    border-radius: 0.6rem;
    background: #f2f6f4;
    font-weight: 600;
}

.import-preview {
    max-height: 28rem;
}

.import-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 5.5rem;
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
}

.import-status--valid,
.import-status--imported {
    background: #dff3e6;
    color: #17683a;
}

.import-status--invalid,
.import-status--conflict {
    background: #f8dddd;
    color: #8d2424;
}

.import-status--duplicate,
.import-status--skipped {
    background: #fff0cf;
    color: #7a5200;
}

/*
|--------------------------------------------------------------------------
| Audit
|--------------------------------------------------------------------------
*/

.audit-check-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
    gap: 0.75rem;
    margin: 1rem 0;
}

.audit-check {
    display: grid;
    gap: 0.25rem;
    padding: 0.9rem;
    border: 1px solid var(--border-color, #d8dee5);
    border-radius: 0.65rem;
    background: #f7faf8;
}

.audit-check strong {
    font-size: 1.4rem;
}

.audit-check--warning {
    border-color: #d69a3a;
    background: #fff5df;
}

/*
|--------------------------------------------------------------------------
| Responsive Abnahme
|--------------------------------------------------------------------------
*/

@media (max-width: 900px) {
    .calendar-comfort {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .calendar-comfort__actions {
        grid-column: auto;
        justify-content: stretch;
    }

    .calendar-comfort__actions .button {
        flex: 1 1 12rem;
    }
}

@media (max-width: 640px) {
    .calendar-comfort {
        padding: 0.75rem;
    }

    .calendar-comfort__layers {
        display: grid;
        grid-template-columns: 1fr;
    }

    .calendar-comfort__updated {
        white-space: normal;
    }

    .import-preview {
        max-height: 22rem;
    }
}

/*
|--------------------------------------------------------------------------
| Druckansicht
|--------------------------------------------------------------------------
*/

.print-only {
    display: none;
}

@media print {
    @page {
        size: A4 landscape;
        margin: 10mm;
    }

    body>*:not(.print-only) {
        display: none !important;
    }

    .print-only,
    .print-view {
        display: block !important;
    }

    .print-view {
        color: #000000;
        background: #ffffff;
        font-family: Arial, sans-serif;
        font-size: 9pt;
    }

    .print-view__header {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        margin-bottom: 6mm;
        border-bottom: 1px solid #000000;
    }

    .print-view__header h1 {
        margin: 0 0 2mm;
        font-size: 16pt;
    }

    .print-view__table {
        width: 100%;
        border-collapse: collapse;
        table-layout: fixed;
    }

    .print-view__table th,
    .print-view__table td {
        padding: 1.5mm;
        border: 0.2mm solid #777777;
        vertical-align: top;
        overflow-wrap: anywhere;
    }

    .print-view__table th {
        background: #eeeeee !important;
        font-weight: 700;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .print-view__table tr {
        break-inside: avoid;
    }
}


/* Neue Änderungen – nicht störende Aktualisierungsanzeige */
.calendar-change-notice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 0 0 1rem;
}

.calendar-change-notice[hidden] {
    display: none;
}

@media (max-width: 700px) {
    .calendar-change-notice {
        align-items: stretch;
        flex-direction: column;
    }
}

/*
|--------------------------------------------------------------------------
| Kompakte Kalender-Layer
|--------------------------------------------------------------------------
*/

.calendar-layer-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
}

.calendar-layer-controls__title {
    flex: 0 0 100%;
    margin: 0 0 0.15rem;
    font-size: 0.875rem;
    font-weight: 700;
}

.calendar-layer-option {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0;
    cursor: pointer;
    font-size: 0.875rem;
    line-height: 1.25;
    white-space: nowrap;
}

.calendar-layer-option input[type="checkbox"] {
    appearance: auto;
    width: 1rem;
    height: 1rem;
    min-width: 1rem;
    min-height: 1rem;
    margin: 0;
    padding: 0;
    flex: 0 0 1rem;
    accent-color: currentColor;
}

.calendar-layer-option span {
    display: inline;
    margin: 0;
}

@media (max-width: 700px) {
    .calendar-layer-controls {
        align-items: flex-start;
        gap: 0.65rem;
    }

    .calendar-layer-option {
        flex: 1 1 calc(50% - 0.65rem);
        white-space: normal;
    }
}

/*
|--------------------------------------------------------------------------
| Kompakte Kalender-Layer
|--------------------------------------------------------------------------
*/

.calendar-layer-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem 1rem;
}

.calendar-layer-controls__title {
    flex: 0 0 100%;
    margin: 0;
    font-size: 0.875rem;
    font-weight: 700;
}

.calendar-layer-option {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 0.4rem;
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.25;
    white-space: nowrap;
    cursor: pointer;
}

.calendar-layer-option input[type="checkbox"] {
    appearance: auto;
    width: 1rem;
    height: 1rem;
    min-width: 1rem;
    min-height: 1rem;
    margin: 0;
    padding: 0;
    flex: 0 0 1rem;
}

.calendar-layer-option span {
    display: inline;
    margin: 0;
}

@media (max-width: 760px) {
    .calendar-layer-controls {
        align-items: flex-start;
    }

    .calendar-layer-option {
        flex: 1 1 calc(50% - 0.5rem);
        white-space: normal;
    }
}

@media (max-width: 480px) {
    .calendar-layer-option {
        flex-basis: 100%;
    }
}

/*
|--------------------------------------------------------------------------
| Bayern-Kalender
|--------------------------------------------------------------------------
*/

.fc-event.calendar-layer-event--bavaria_public_holiday {
    font-weight: 700;
    border-width: 1px;
    border-style: solid;
}

.fc-event.calendar-layer-event--bavaria_school_holiday {
    border-width: 1px;
    border-style: dashed;
    opacity: 0.82;
}

.calendar-layer-event {
    cursor: default;
}

.calendar-layer__content {
    display: block;
    width: 100%;
    min-width: 0;
    padding: 0.15rem 0.35rem;
    overflow: hidden;
}

.calendar-layer__title {
    display: block;
    overflow: hidden;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.calendar-layer-event--bavaria_public_holiday .calendar-layer__title {
    font-weight: 700;
}

.calendar-layer-event--bavaria_school_holiday .calendar-layer__title {
    font-weight: 600;
}

.appointment-context-menu {
    position: fixed;
    z-index: 200;
    min-width: 180px;
    max-width: calc(100vw - 16px);
    padding: 0.35rem;
    border: 1px solid var(--danger-border);
    border-radius: var(--radius-small);
    background: var(--surface, #fff);
    box-shadow: var(--shadow);
}
.appointment-context-menu button {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 0;
    border-radius: var(--radius-small);
    background: transparent;
    color: var(--danger);
    font: inherit;
    text-align: left;
    cursor: pointer;
}
.appointment-context-menu button:hover,
.appointment-context-menu button:focus-visible {
    background: var(--danger-soft);
    outline: 2px solid var(--danger-border);
}
.appointment-context-menu button:disabled { opacity: 0.5; cursor: wait; }

/* Lauflisten-Upload */
.run-list-card { padding: 1.5rem; }
.run-list-dropzone { position: relative; display: flex; align-items: center; flex-direction: column; gap: .6rem; padding: 1.7rem 1rem; border: 2px dashed var(--border, #cbd5e1); border-radius: 12px; background: var(--surface-muted); text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.run-list-dropzone input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.run-list-dropzone input:disabled { cursor: wait; }
.run-list-dropzone:focus-within, .run-list-dropzone:hover, .run-list-dropzone.is-dragover { border-color: var(--accent, #cf1730); background: #fff4f5; }
.run-list-dropzone:focus-within { outline: 2px solid var(--accent, #cf1730); outline-offset: 3px; }
.run-list-dropzone.has-file { border-style: solid; }
.run-list-upload-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: #ffe6e9; color: #b9142a; }
#run-list-file-name { max-width: 100%; overflow-wrap: anywhere; color: var(--text, #17212b); font-size: 1rem; }
#run-list-upload-hint { color: var(--muted); font-size: .85rem; }
.run-list-file-button { padding: .4rem .8rem; margin-top: .2rem; border: 1px solid var(--border, #cbd5e1); border-radius: 6px; background: var(--surface); color: var(--text, #17212b); }
.run-list-progress { margin: .9rem 0; color: var(--muted); font-size: .875rem; }
.run-list-progress progress { display: block; width: 100%; height: 10px; margin-top: .45rem; accent-color: #d71935; border: 0; border-radius: 8px; overflow: hidden; }
.run-list-progress progress::-webkit-progress-bar { background: #e7ebef; border-radius: 8px; }
.run-list-progress progress::-webkit-progress-value { background: #d71935; border-radius: 8px; transition: width .15s; }
@media (max-width: 600px) { .run-list-card { padding: 1rem; } .run-list-dropzone { padding: 1.3rem .7rem; } }

/* Persistierte Lauflisten */
.run-list-activity{display:flex;gap:1rem;margin:1.5rem 0}.run-list-stat{display:flex;flex-direction:column;gap:.4rem;background:var(--surface-alt,#f0f6f5);padding:1.2rem;border-radius:12px;flex:1}.run-list-stat strong{font-size:2rem;color:#14665f}.run-list-filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem;margin:1.5rem 0}.run-list-filters label,.run-list-assignment label{display:flex;flex-direction:column;gap:.5rem}.run-list-assignment{display:flex;align-items:end;gap:1rem;flex-wrap:wrap;padding:1rem;background:#f4f7f7;border-radius:12px;margin:1rem 0}.run-list-assignment>div{flex:1;min-width:200px}.run-list-houses{display:grid;gap:1rem;margin-top:1.5rem}.run-list-house{padding:1rem;border:1px solid #dce5e4;border-radius:12px;display:grid;grid-template-columns:1fr 1fr;gap:1rem}.run-list-house>div{display:flex;flex-direction:column;gap:.4rem}.run-list-house p{white-space:pre-wrap;grid-column:1/-1;margin:0}.run-list-house.is-completed{border-left:5px solid #348561;background:#f5faf6}.run-list-house .run-list-house-actions{grid-column:1/-1;flex-direction:row;align-items:center;justify-content:space-between}.run-list-house-status{font-weight:600}.run-list-house span{color:#536661}.run-list-filters select,.run-list-assignment select{min-height:44px;max-width:100%;padding:.5rem;border:1px solid #ccd8d6;border-radius:8px;background:#fff}@media(max-width:760px){.run-list-filters{grid-template-columns:1fr 1fr}.run-list-house{grid-template-columns:1fr}.run-list-assignment{align-items:stretch;flex-direction:column}}

/* Bereichs- und Mitarbeiterauswahl */
.run-list-assignment{display:block;padding:1.5rem;border:1px solid #dce5e4;background:#f7faf9}
.run-list-assignment h3,.run-list-assignment h4{margin:0 0 .65rem}.run-list-assignment-heading .form-hint{margin:0 0 1.5rem}
.run-list-assignment-layout{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:1.5rem}
.run-list-territories,.run-list-assignees{display:grid;gap:.65rem;align-content:start;max-height:430px;overflow:auto;padding:3px}
.run-list-territory-button,.run-list-person{display:flex;align-items:center;gap:.8rem;width:100%;text-align:left;border:1px solid #d4e0dc;background:#fff;color:#203d36;border-radius:12px;padding:1rem;cursor:pointer;font:inherit;min-height:64px}
.run-list-territory-button{justify-content:space-between}.run-list-territory-button strong,.run-list-territory-button small,.run-list-person small{display:block}.run-list-territory-button small,.run-list-person small{font-size:.8rem;color:#5b7069;margin-top:.3rem}.run-list-person-name{font-size:.85rem;text-align:right;overflow-wrap:anywhere}
.run-list-assignment button[aria-pressed=true]{border-color:#237266;background:#e8f4ee;box-shadow:inset 0 0 0 1px #237266}
.run-list-assignment button:hover:not(:disabled){border-color:#237266}.run-list-assignment button:focus-visible{outline:3px solid #237266;outline-offset:2px}.run-list-assignment button:disabled{cursor:default;opacity:.65}
.run-list-street-choices{display:flex;gap:.5rem;flex-wrap:wrap;padding:.75rem 0 .5rem 1rem;border-left:2px solid #d4e0dc;margin-left:1rem}
.run-list-street-choices button{font:inherit;font-size:.85rem;border:1px solid #d4e0dc;border-radius:9px;padding:.65rem .8rem;background:white;color:#203d36;text-align:left;cursor:pointer;min-height:44px}.run-list-street-choices small{display:block;color:#5b7069;margin-top:.25rem}
.run-list-avatar{display:grid;place-items:center;background:#edf2ef;color:#23695b;border-radius:50%;width:40px;height:40px;flex-shrink:0;font-weight:700}.run-list-person-check{margin-left:auto;color:#237266;font-weight:700}.run-list-assignment-scope{font-weight:600;margin:.2rem 0 .75rem}
.run-list-assignment-footer{display:flex;gap:1rem;align-items:center;justify-content:space-between;border-top:1px solid #dce5e4;margin-top:1.25rem;padding-top:1rem}.run-list-assignment-footer p{font-size:.85rem;color:#5b7069;margin:0}
@media(max-width:760px){.run-list-assignment{padding:1rem}.run-list-assignment-layout{grid-template-columns:1fr}.run-list-assignment-footer{align-items:stretch;flex-direction:column}.run-list-territory-button{flex-wrap:wrap}.run-list-person-name{text-align:left}}

.run-list-street-check{display:inline-block;width:1.1em;height:1.1em;line-height:1.1em;margin-right:.45rem;vertical-align:middle;border:1px solid #7d9e94;border-radius:3px;text-align:center;color:#237266;font-weight:700}

/* Lesbare Hausübersicht mit fortlaufender Dateireihenfolge */
.run-list-list-heading{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin:2rem 0 1rem}.run-list-list-heading h3{margin:0 0 .4rem}.run-list-list-heading p{font-size:.85rem;color:#5b7069;margin:0}
.run-list-selection-summary{display:flex;gap:.5rem;flex-wrap:wrap}.run-list-selection-summary>span{white-space:nowrap;border:1px solid #dce5e4;border-radius:9px;padding:.6rem .8rem;font-size:.85rem;background:#fff;color:#536661}.run-list-selection-summary strong{color:#203d36}.run-list-selection-summary .is-done{background:#e8f4ee;border-color:#cee3d7}
.run-list-houses{gap:1.25rem}.run-list-street-group{border:1px solid #dce5e4;border-radius:14px;overflow:hidden;background:#fff;min-width:0}.run-list-group-heading{display:flex;align-items:center;justify-content:space-between;gap:1rem;background:#edf3f1;padding:1rem 1.25rem}.run-list-group-heading>div{display:flex;align-items:baseline;gap:.75rem;flex-wrap:wrap}.run-list-group-heading h4{margin:0;font-size:1rem;color:#203d36}.run-list-group-heading span{font-size:.8rem;color:#536661}
.run-list-columns,.run-list-house{display:grid;grid-template-columns:55px minmax(180px,2fr) minmax(130px,1fr) 95px 195px;gap:1rem;align-items:start;padding:1rem 1.25rem}.run-list-columns{font-size:.72rem;text-transform:uppercase;letter-spacing:.04em;color:#657a72;border-bottom:1px solid #e5ece9;background:#fafcfb;padding-top:.75rem;padding-bottom:.75rem}
.run-list-house{border:0;border-radius:0;border-bottom:1px solid #e5ece9}.run-list-house:last-child{border-bottom:0}.run-list-house.is-completed{border-left:0;background:#f5faf6}.run-list-house>div{min-width:0;gap:.3rem}.run-list-house small{color:#657a72;font-size:.78rem;overflow-wrap:anywhere}.run-list-house span,.run-list-house strong{overflow-wrap:anywhere}.run-list-house-number strong{font-variant-numeric:tabular-nums;color:#657a72;font-size:.9rem}.run-list-house-number small,.run-list-house-employee>small{display:none}.run-list-house-address>strong{color:#203d36;font-size:.95rem}.run-list-house-address>span{font-size:.9rem}.run-list-house .run-list-house-note{grid-column:auto;font-size:.82rem;line-height:1.5;white-space:pre-wrap;margin-top:.4rem;padding-left:.65rem;border-left:2px solid #c6d8d0;color:#536661;overflow-wrap:anywhere}
.run-list-employee-badge{align-self:flex-start;background:#eef3f1;border-radius:7px;padding:.3rem .6rem;font-size:.8rem}.run-list-employee-badge.is-unassigned{color:#91600b;background:#fff4dc}.run-list-house .run-list-house-status{display:inline-flex;align-self:flex-start;border-radius:20px;padding:.3rem .65rem;background:#eef1f0;font-size:.78rem;white-space:nowrap}.run-list-house.is-completed .run-list-house-status{color:#216746;background:#dfefe4}
.run-list-house .run-list-house-actions{grid-column:auto;justify-content:flex-end}.run-list-house-actions .button{display:inline-flex;align-items:center;justify-content:center;gap:.4rem;padding:.5rem .7rem;min-height:38px;font-size:.78rem}.run-list-house-actions svg{flex-shrink:0}
#run-list-result{margin-top:1rem;padding:1rem 1.25rem;border:1px solid #cee3d7;border-radius:12px;background:#f3faf6}#run-list-summary{margin:0 0 .75rem;font-size:.9rem}#run-list-result .form-hint{margin:.65rem 0 0}
@media(max-width:1050px){.run-list-columns,.run-list-house{grid-template-columns:45px minmax(150px,2fr) minmax(100px,1fr) 85px 175px;gap:.65rem;padding-left:1rem;padding-right:1rem}.run-list-list-heading{align-items:flex-start;flex-direction:column}}
@media(max-width:850px){.run-list-columns{display:none}.run-list-house{grid-template-columns:45px minmax(0,1fr);gap:.75rem;padding:1rem}.run-list-house-number{grid-column:1;grid-row:1}.run-list-house-number small{display:block}.run-list-house-address{grid-column:2;grid-row:1}.run-list-house-employee{grid-column:2}.run-list-house-state{grid-column:2}.run-list-house .run-list-house-actions{grid-column:2;justify-content:flex-start}.run-list-house-employee>small{display:block}.run-list-group-heading{align-items:flex-start;padding:1rem}.run-list-group-heading>span{white-space:nowrap}.run-list-selection-summary>span{padding:.45rem .6rem}}

/* A moved slot is a read-only notice; keep its new date readable on narrow screens. */
.calendar-event__reschedule {
    grid-column: 1 / -1;
    flex-basis: 100%;
    font-size: 0.72rem;
    line-height: 1.3;
    font-weight: 600;
    white-space: normal;
    overflow-wrap: anywhere;
}
.calendar-event__content--daygrid:has(.calendar-event__reschedule) {
    flex-wrap: wrap;
}

/* New appointment: choose postcode/locality from the maintained areas. */
.appointment-location { grid-column: 1 / -1; padding: 1rem; border: 1px solid var(--border, #dce2e8); border-radius: .8rem; background: #f8fafb; }
.appointment-location__toolbar { display: flex; align-items: flex-end; gap: 1rem; }
.appointment-location__toolbar label { flex: 1; min-width: 0; }
.appointment-location__toolbar .button { flex-shrink: 0; }
.appointment-location > p { margin: .6rem 0 0; font-size: .85rem; }
.appointment-location #appointment-location-manual { margin-top: .8rem; }
.appointment-location [hidden] { display: none !important; }
@media(max-width: 700px) { .appointment-location__toolbar { flex-direction: column; align-items: stretch; } }

/* Database-backed run-list creation; existing assignment and mobile list layouts stay intact. */
.run-list-creation,.run-list-creation-preview{margin:1.25rem 0;padding:1.25rem;border:1px solid #dce5e4;border-radius:12px;background:#f7faf9}
.run-list-creation h3,.run-list-creation-preview h3{margin:0 0 .75rem}.run-list-creation fieldset{border:0;padding:0;margin:0;min-width:0}
.run-list-creation-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}
.run-list-creation label{display:flex;flex-direction:column;gap:.4rem;font-size:.9rem}.run-list-creation select{width:100%;min-height:44px;padding:.6rem;border:1px solid #ccd8d6;border-radius:8px;background:#fff;color:inherit}
.run-list-scope-choice{max-width:28rem;margin:1rem 0}.run-list-creation-streets{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:.5rem;max-height:260px;overflow:auto;padding:.2rem}
.run-list-creation-streets label{flex-direction:row;align-items:center;gap:.6rem;padding:.65rem;background:#fff;border:1px solid #dce5e4;border-radius:8px;min-height:44px;overflow-wrap:anywhere}.run-list-creation-streets input{width:18px;height:18px;flex-shrink:0}
.run-list-creation-actions{display:flex;gap:.75rem;flex-wrap:wrap;margin-top:1rem}#run-list-creation-message{margin-bottom:0;overflow-wrap:anywhere}#run-list-creation-message.is-error{color:#a51d2d}
.run-list-preview-table{max-height:420px;overflow:auto;margin:1rem 0;background:#fff}.run-list-preview-table table{border-collapse:collapse;width:100%;font-size:.85rem}.run-list-preview-table th,.run-list-preview-table td{padding:.65rem;text-align:left;border-bottom:1px solid #e5ece9;vertical-align:top;overflow-wrap:anywhere}.run-list-preview-table th{background:#edf3f1;position:sticky;top:0}.run-list-preview-table small{display:block;color:#657a72;margin-top:.25rem}
@media(max-width:600px){.run-list-creation-grid{grid-template-columns:1fr}.run-list-creation,.run-list-creation-preview{padding:1rem}.run-list-creation-actions{flex-direction:column}.run-list-preview-table{max-width:100%}}

/* Activities belong to the stored list, including houses currently hidden by the live filter. */
.run-list-territory-button .run-list-work-label,.run-list-street-choices .run-list-work-label{display:block;color:#28624f;font-weight:600;white-space:normal;overflow-wrap:anywhere}
.run-list-removal{border-top:1px solid var(--border,#dce2e8);padding-top:1rem;margin-top:1rem}
.run-list-removal-heading{display:flex;align-items:center;justify-content:space-between;gap:1rem}.run-list-removal-heading p{margin:0;font-size:.9rem;overflow-wrap:anywhere}.run-list-removal-heading .button{flex-shrink:0}
.run-list-removal-confirm{margin-top:1rem;padding:1rem;border:1px solid #e2b7bd;border-radius:10px;background:#fff7f7}.run-list-removal-confirm h4{margin:0}.run-list-removal-confirm p{font-size:.9rem;overflow-wrap:anywhere}#run-list-remove-confirm{background:#a3293c;border-color:#a3293c}
@media(max-width:700px){.run-list-removal-heading{align-items:stretch;flex-direction:column}.run-list-removal-heading .button{white-space:normal}}
