:root {
    --brand: #7c3aed;
    --brand-dark: #5b21b6;
}

html, body {
    background: #f8fafc;
}

.btn-brand {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

.btn-brand:hover {
    background: var(--brand-dark);
    border-color: var(--brand-dark);
    color: #fff;
}

.card-soft, .form-section {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.form-section {
    padding: 1.25rem;
}

.validation-message {
    color: #dc3545;
    font-size: .875rem;
}

#blazor-error-ui {
    display: none;
    background: #fff3cd;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, .2);
    left: 0;
    padding: .6rem 1.25rem .7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: .75rem;
    top: .5rem;
}
.agenda-week-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(220px, 1fr));
    gap: 1rem;
    overflow-x: auto;
}

.agenda-day {
    min-height: 420px;
    overflow: hidden;
}

.agenda-day-header {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
}

.agenda-day-body {
    padding: 0.75rem;
}

.agenda-afspraak {
    background: #ffffff;
    border-radius: 0.75rem;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    box-shadow: 0 0.25rem 0.75rem rgba(15, 23, 42, 0.08);
}

.agenda-status {
    border-radius: 999px;
    padding: 0.2rem 0.5rem;
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
}

.agenda-status-pending {
    background: #fef3c7;
    color: #92400e;
}

.agenda-status-approved {
    background: #d1fae5;
    color: #065f46;
}

.agenda-status-rejected {
    background: #fee2e2;
    color: #991b1b;
}

.agenda-status-cancelled {
    background: #e5e7eb;
    color: #374151;
}

.agenda-status-done {
    background: #dbeafe;
    color: #1e40af;
}

.agenda-kapper-select {
    min-width: 220px;
}

@media (max-width: 1200px) {
    .agenda-week-grid {
        grid-template-columns: repeat(7, 260px);
    }
}
.agenda-scroll {
    overflow-x: auto;
    border-radius: 14px;
}

.agenda-grid {
    display: grid;
    grid-template-columns: 70px repeat(7, minmax(180px, 1fr));
    min-width: 1380px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    overflow: hidden;
}

.agenda-header {
    position: sticky;
    top: 0;
    z-index: 5;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
    border-right: 1px solid #e5e7eb;
    padding: 0.75rem;
    min-height: 64px;
}

.agenda-time-header {
    left: 0;
    z-index: 6;
}

.agenda-time-column {
    position: relative;
    background: #f8fafc;
    border-right: 1px solid #e5e7eb;
}

.agenda-time-label {
    position: absolute;
    right: 8px;
    transform: translateY(-50%);
    font-size: 0.75rem;
    color: #6b7280;
}

.agenda-day-column {
    position: relative;
    border-right: 1px solid #e5e7eb;
    background: #ffffff;
}

.agenda-hour-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: #eef2f7;
}

.agenda-event {
    position: absolute;
    left: 6px;
    right: 6px;
    z-index: 2;
    overflow: hidden;
    background: #ffffff;
    border-left: 7px solid var(--behandeling-kleur);
    border-radius: 10px;
    padding: 0.45rem 0.55rem;
    box-shadow: 0 0.25rem 0.75rem rgba(15, 23, 42, 0.12);
    font-size: 0.82rem;
}

    .agenda-event::before {
        content: "";
        position: absolute;
        inset: 0;
        background: var(--behandeling-kleur);
        opacity: 0.08;
        pointer-events: none;
    }

    .agenda-event > * {
        position: relative;
    }

.agenda-status {
    border-radius: 999px;
    padding: 0.1rem 0.4rem;
    font-size: 0.68rem;
    font-weight: 700;
    white-space: nowrap;
}

.agenda-status-pending {
    background: #fef3c7;
    color: #92400e;
}

.agenda-status-approved {
    background: #d1fae5;
    color: #065f46;
}

.agenda-status-rejected {
    background: #fee2e2;
    color: #991b1b;
}

.agenda-status-cancelled {
    background: #e5e7eb;
    color: #374151;
}

.agenda-status-done {
    background: #dbeafe;
    color: #1e40af;
}

.agenda-kapper-select {
    min-width: 220px;
}
