.page-agenda {
    --agenda-accent: #5547ed;
    --agenda-accent-strong: #4638dc;
    --agenda-accent-soft: #efedff;
    --agenda-event-time-size: 11px;
    --agenda-event-customer-size: 13px;
    --agenda-event-service-size: 11px;
    --agenda-ink: var(--os-color-ink);
    --agenda-muted: #778096;
    --agenda-line: var(--os-color-border);
    --agenda-canvas: var(--os-color-canvas);
    --agenda-surface: var(--os-color-surface);
}

.page-agenda .main.main-agenda {
    background: var(--agenda-canvas);
}

.page-agenda .agenda-workspace {
    background: var(--agenda-canvas);
}

.page-agenda .agenda-toolbar {
    min-height: 72px;
    padding: 12px 18px;
    border-bottom-color: var(--agenda-line);
    background: var(--agenda-surface);
}

.page-agenda .agenda-period-controls {
    gap: 8px;
}

.page-agenda .agenda-period-controls strong {
    min-width: 124px;
    margin-left: 8px;
    color: var(--agenda-ink);
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -.02em;
}

.page-agenda .icon-button,
.page-agenda .agenda-toolbar .btn {
    min-height: 40px;
    border: 1px solid var(--agenda-line);
    border-radius: 11px;
    box-shadow: none;
}

.page-agenda .icon-button {
    width: 40px;
    height: 40px;
    color: #596176;
}

.page-agenda .icon-button:hover,
.page-agenda .agenda-toolbar .btn:hover {
    border-color: #cbc6ff;
    background: var(--agenda-accent-soft);
    color: var(--agenda-accent-strong);
    box-shadow: none;
}

.page-agenda [data-calendar-today] {
    border-color: var(--os-color-primary-border) !important;
    background: var(--os-color-primary-softer) !important;
    color: var(--agenda-accent-strong) !important;
    font-weight: 800;
}

.page-agenda .agenda-view-switch {
    gap: 2px;
    padding: 4px;
    border-color: var(--agenda-line);
    border-radius: var(--os-radius-pill);
    background: #f3f4f8;
}

.page-agenda .agenda-view-switch button {
    min-height: 34px;
    padding: 7px 13px;
    border-radius: var(--os-radius-pill);
    color: #737b8f;
    font-size: 13px;
}

.page-agenda .agenda-view-switch button:hover {
    color: var(--agenda-ink);
}

.page-agenda .agenda-view-switch button.active {
    background: var(--agenda-accent);
    color: #fff;
    box-shadow: none;
}

.page-agenda .agenda-tool-group {
    display: contents;
}

.page-agenda .agenda-tool-group .btn {
    min-width: 92px;
    height: 40px;
    min-height: 40px;
    justify-content: center;
    padding: 0 14px;
    border: 1px solid var(--agenda-line);
    border-radius: 11px;
    background: var(--agenda-surface);
    color: #596176;
}

.page-agenda .agenda-tool-group .btn + .btn {
    border-left: 1px solid var(--agenda-line);
    border-radius: 11px;
}

.page-agenda .agenda-tools > .agenda-toolbar-action {
    min-width: 92px;
    height: 40px;
    justify-content: center;
    padding: 0 14px;
}

.page-agenda .agenda-toolbar .btn-primary {
    border-color: var(--agenda-accent);
    background: var(--agenda-accent);
    color: #fff;
}

.page-agenda .agenda-toolbar .btn-primary:hover {
    border-color: var(--agenda-accent-strong);
    background: var(--agenda-accent-strong);
    color: #fff;
}

.page-agenda .filter-count {
    background: var(--agenda-accent);
}

.page-agenda .agenda-summary {
    min-height: 42px;
    padding: 0 8px;
    border-bottom-color: var(--agenda-line);
    background: #fbfbfd;
}

.page-agenda .agenda-summary > div {
    min-height: 30px;
    padding: 4px 12px;
    border-right-color: var(--agenda-line);
}

.page-agenda .agenda-summary span {
    color: var(--agenda-muted);
    font-size: 12px;
}

.page-agenda .agenda-summary span > i {
    width: 22px;
    height: 22px;
    display: inline-grid;
    place-items: center;
    border-radius: 8px;
    background: var(--agenda-accent-soft);
    color: var(--agenda-accent);
}

.page-agenda .agenda-summary strong {
    color: var(--agenda-ink);
    font-size: 13px;
}

.page-agenda .agenda-summary-help {
    margin-left: auto;
    border-right: 0 !important;
}

.page-agenda .agenda-summary-help span > i {
    background: #eef1f6;
    color: #737b8f;
}

.page-agenda .agenda-summary-help {
    gap: 15px;
}

.page-agenda .agenda-summary-help .agenda-closed-swatch {
    width: 22px;
    height: 22px;
    border: 1px solid #d5d8df;
    border-radius: 7px;
    background: repeating-linear-gradient(
        135deg,
        transparent 0,
        transparent 6px,
        rgba(118, 126, 143, .18) 6px,
        rgba(118, 126, 143, .18) 7px
    ) #f3f4f7;
}

.page-agenda .agenda-body {
    background: var(--agenda-canvas);
}

.page-agenda .full-calendar {
    position: relative;
    padding: 0;
    background: var(--agenda-surface);
}

.page-agenda .full-calendar [role="presentation"],
.page-agenda .full-calendar .presentation {
    padding: 0 !important;
}

.page-agenda .full-calendar .fc {
    color: var(--agenda-ink);
    font-size: 12px;
}

.page-agenda .full-calendar .fc-scrollgrid {
    overflow: hidden;
    /* The adjoining shell and grid cells already draw the calendar edges. */
    border: 0;
    border-radius: 0;
    background: var(--agenda-surface);
}

.page-agenda .full-calendar .fc-scrollgrid,
.page-agenda .full-calendar td,
.page-agenda .full-calendar th {
    border-color: var(--agenda-line);
}

.page-agenda .full-calendar td {
    padding: 0;
}

.page-agenda .full-calendar .fc-col-header-cell {
    height: 38px;
    padding: 0;
    background: #fbfbfd;
    vertical-align: middle;
}

.page-agenda .full-calendar .fc-col-header-cell-cushion {
    padding: 9px 6px;
    color: #626a7e;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .055em;
}

.page-agenda .full-calendar .fc-col-header-cell.fc-day-today {
    background: var(--agenda-accent-soft);
}

.page-agenda .full-calendar .fc-col-header-cell.fc-day-today .fc-col-header-cell-cushion {
    color: var(--agenda-accent-strong);
}

/* Dagoverzicht: één duidelijke kolom per actieve collega. */
.page-agenda .agenda-calendar-wrap.agenda-team-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-color: #c9c5ef transparent;
    scrollbar-width: thin;
}

.page-agenda .full-calendar.agenda-team-day .fc-col-header-cell {
    height: 62px;
    background: var(--agenda-surface);
}

.page-agenda .full-calendar.agenda-team-day .fc-col-header-cell-cushion {
    width: 100%;
    display: block;
    padding: 0;
    text-transform: none;
    letter-spacing: normal;
}

.page-agenda .agenda-team-columns {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(var(--agenda-team-count), minmax(0, 1fr));
}

.page-agenda .agenda-team-member {
    min-width: 0;
    height: 61px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 12px;
    border-right: 1px solid var(--agenda-line);
    box-shadow: inset 0 -3px 0 var(--agenda-employee-color);
    text-align: left;
}

.page-agenda .agenda-team-member:last-child { border-right: 0; }

.page-agenda .agenda-team-avatar {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: color-mix(in srgb, var(--agenda-employee-color) 13%, var(--agenda-surface));
    color: var(--agenda-employee-color);
    font-size: 11px;
    font-weight: 850;
}

.page-agenda .agenda-team-member-copy {
    min-width: 0;
    display: grid;
    gap: 1px;
}

.page-agenda .agenda-team-member-copy strong,
.page-agenda .agenda-team-member-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.page-agenda .agenda-team-member-copy strong {
    color: var(--agenda-ink);
    font-size: 12px;
    font-weight: 800;
}

.page-agenda .agenda-team-member-copy small {
    color: var(--agenda-muted);
    font-size: 9px;
    font-weight: 650;
}

.page-agenda .full-calendar.agenda-team-day .fc-timegrid-col-frame::after {
    content: '';
    position: absolute;
    z-index: 1;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(to right, transparent calc(100% - 1px), var(--agenda-line) calc(100% - 1px));
    background-size: calc(100% / var(--agenda-team-count)) 100%;
}

.page-agenda .full-calendar.agenda-team-day .agenda-team-event-harness {
    box-sizing: border-box;
    padding-right: 3px;
    padding-left: 3px;
}

.page-agenda .full-calendar.agenda-team-day .agenda-team-event-harness .fc-event {
    width: 100%;
}

/* Keep today visible independently of the table-row hover resets below. */
.page-agenda .full-calendar .fc-timegrid-body .fc-timegrid-col.fc-day-today,
.page-agenda .full-calendar .fc-daygrid-body .fc-daygrid-day.fc-day-today {
    background: var(--os-color-primary-softer) !important;
}

.page-agenda .full-calendar .fc-timegrid-axis,
.page-agenda .full-calendar .fc-timegrid-slot-label {
    padding: 0;
    background: var(--os-color-surface-muted);
    text-transform: none;
    letter-spacing: 0;
}

.page-agenda .full-calendar .fc-timegrid-slot {
    height: 34px;
    border-color: var(--os-color-border-strong);
    border-top-width: 1px;
    cursor: default;
}

.page-agenda .full-calendar .fc-timegrid-slot-minor {
    border-top-style: dashed;
    border-top-color: var(--os-color-border);
}

.page-agenda .full-calendar .fc-timegrid-slot-label-cushion {
    min-width: 62px;
    display: inline-flex;
    justify-content: flex-end;
    padding: 3px 10px 3px 6px;
    color: #4e586d;
    font-size: 12px;
    font-weight: 750;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}

.page-agenda .full-calendar .fc-timegrid-axis {
    border-right-color: var(--os-color-border-strong);
}

.page-agenda .full-calendar .fc-timegrid-col {
    border-left-color: var(--os-color-border-strong);
    border-left-width: 1px;
    cursor: default;
}

.page-agenda .full-calendar .fc-non-business,
.page-agenda .full-calendar .fc-bg-event.agenda-roster-non-business {
    z-index: 0;
    pointer-events: none;
    padding: 0 !important;
    border: 0 !important;
    background: repeating-linear-gradient(
        135deg,
        transparent 0,
        transparent 10px,
        color-mix(in srgb, var(--os-color-text-muted) 20%, transparent) 10px,
        color-mix(in srgb, var(--os-color-text-muted) 20%, transparent) 11px
    ) var(--os-color-surface-strong) !important;
    opacity: 1;
    box-shadow: none !important;
}

.page-agenda .full-calendar .fc-day-today .fc-non-business,
.page-agenda .full-calendar .fc-day-today .fc-bg-event.agenda-roster-non-business {
    /* Retain the closed-hours hatching over today's full-column tint. */
    background-color: color-mix(in srgb, var(--os-color-primary-softer) 70%, var(--os-color-surface-strong)) !important;
}

.page-agenda .full-calendar .fc-timegrid-body,
.page-agenda .full-calendar .fc-timegrid-slots {
    cursor: default;
}

.page-agenda .full-calendar .fc-timegrid-now-indicator-line {
    border-width: 2px 0 0;
    border-color: #ef5a67;
}

.page-agenda .full-calendar .fc-timegrid-now-indicator-arrow {
    border-width: 5px 0 5px 7px;
    border-left-color: #ef5a67;
    border-top-color: transparent;
    border-bottom-color: transparent;
}

.page-agenda .full-calendar .fc-event {
    overflow: hidden;
    padding: 6px 9px;
    border: 0 !important;
    border-left: 4px solid var(--agenda-event-color, #5547ed) !important;
    border-radius: 0;
    background: color-mix(in srgb, var(--agenda-event-color, #5547ed) 14%, var(--os-color-surface)) !important;
    color: color-mix(in srgb, var(--agenda-event-color, #5547ed) 82%, var(--agenda-ink)) !important;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .07);
}

.page-agenda .full-calendar .fc-event:hover {
    border-color: var(--agenda-event-color, #5547ed) !important;
    background: color-mix(in srgb, var(--agenda-event-color, #5547ed) 17%, var(--os-color-surface)) !important;
    box-shadow: 0 10px 22px rgba(15, 23, 42, .1);
}

.page-agenda .full-calendar .fc-event:focus-visible {
    border-color: color-mix(in srgb, var(--agenda-event-color, #5547ed) 52%, var(--os-color-surface)) !important;
    background: color-mix(in srgb, var(--agenda-event-color, #5547ed) 17%, var(--os-color-surface)) !important;
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--agenda-event-color, #5547ed) 15%, transparent);
}

.page-agenda .full-calendar .fc-event.agenda-absence-event {
    --agenda-event-color: #7f8798;
    cursor: default;
    overflow: visible;
    padding: 0 !important;
    border: 0 !important;
    border-left: 0 !important;
    background: repeating-linear-gradient(
        135deg,
        color-mix(in srgb, var(--os-color-text-muted) 4%, var(--os-color-surface-strong)) 0,
        color-mix(in srgb, var(--os-color-text-muted) 4%, var(--os-color-surface-strong)) 11px,
        color-mix(in srgb, var(--os-color-text-muted) 13%, var(--os-color-surface-strong)) 11px,
        color-mix(in srgb, var(--os-color-text-muted) 13%, var(--os-color-surface-strong)) 12px
    ) !important;
    color: var(--os-color-text-secondary) !important;
    box-shadow: none;
}

.page-agenda .full-calendar .fc-event.agenda-absence-event:hover {
    border: 0 !important;
    background: repeating-linear-gradient(
        135deg,
        color-mix(in srgb, var(--os-color-text-muted) 4%, var(--os-color-surface-strong)) 0,
        color-mix(in srgb, var(--os-color-text-muted) 4%, var(--os-color-surface-strong)) 11px,
        color-mix(in srgb, var(--os-color-text-muted) 13%, var(--os-color-surface-strong)) 11px,
        color-mix(in srgb, var(--os-color-text-muted) 13%, var(--os-color-surface-strong)) 12px
    ) !important;
    box-shadow: none;
}
.page-agenda .agenda-absence-content {
    position: sticky;
    top: 6px;
    width: max-content;
    max-width: calc(100% - 12px);
    min-width: 0;
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    margin: 6px;
    padding: 5px 8px;
    overflow: hidden;
    border: 1px solid var(--os-color-border);
    border-radius: 7px;
    background: color-mix(in srgb, var(--os-color-surface) 90%, transparent);
    box-shadow: 0 2px 7px rgba(15, 23, 42, .05);
}
.page-agenda .full-calendar .fc-timegrid-col-events:has(.agenda-absence-event) {
    margin-inline: 0;
}
.page-agenda .full-calendar .fc-timegrid-event.agenda-absence-event {
    left: 0 !important;
    right: 0 !important;
    margin: 0 !important;
}
.page-agenda .full-calendar .fc-timegrid-event.agenda-absence-event .fc-event-main {
    padding: 0;
}
.page-agenda .full-calendar .fc-timegrid-event.agenda-absence-event .agenda-absence-content {
    top: 0;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 6px 8px;
    border-width: 0 0 1px;
    border-radius: 0;
    box-shadow: none;
}
.page-agenda .agenda-absence-heading { min-width: 0; display: flex; align-items: center; gap: 5px; color: var(--os-color-text); font-size: 10px; font-weight: 850; }
.page-agenda .agenda-absence-heading span,
.page-agenda .agenda-absence-type,
.page-agenda .agenda-absence-detail { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.page-agenda .agenda-absence-heading i { flex: 0 0 auto; color: var(--os-color-primary); }
.page-agenda .agenda-absence-type { color: var(--os-color-text-muted); font-size: 9px; font-weight: 700; }
.page-agenda .agenda-absence-type::before { content: '\00b7'; margin-right: 6px; }
.page-agenda .agenda-absence-detail { display: none; }
.page-agenda .fc-daygrid-event .agenda-absence-content { gap: 6px; }
.page-agenda .fc-daygrid-event .agenda-absence-type::before { content: '\00b7'; margin-right: 7px; }
.page-agenda .fc-list-event.agenda-absence-event .agenda-absence-content { display: grid; grid-template-columns: minmax(150px, .8fr) minmax(180px, 1fr); align-items: center; gap: 16px; }
.page-agenda .fc-list-event.agenda-absence-event .agenda-absence-detail { display: block; grid-column: 1 / -1; color: var(--os-color-text-muted); font-size: 9px; }

.page-agenda .full-calendar .fc-timegrid-event.agenda-event-service-segment {
    border-radius: 0;
    box-shadow: inset 0 -1px color-mix(in srgb, var(--agenda-event-color, #5547ed) 18%, transparent);
}

.page-agenda .full-calendar .fc-timegrid-event.agenda-event-service-first:not(.agenda-event-service-last) {
    border-radius: 0;
}

.page-agenda .full-calendar .fc-timegrid-event.agenda-event-service-middle {
    border-radius: 0;
}

.page-agenda .full-calendar .fc-timegrid-event.agenda-event-service-last:not(.agenda-event-service-first) {
    border-radius: 0;
}

.page-agenda .full-calendar .fc-event-main {
    min-width: 0;
    height: 100%;
    color: inherit !important;
}

.page-agenda .agenda-event-content {
    min-width: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow: hidden;
}

.page-agenda .agenda-event-head {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.page-agenda .agenda-event-time {
    min-width: 0;
    overflow: hidden;
    color: inherit;
    font-size: var(--agenda-event-time-size);
    font-weight: 850;
    line-height: 1.2;
    letter-spacing: .015em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.page-agenda .agenda-event-status,
.page-agenda .agenda-event-sequence {
    flex: 0 0 auto;
    max-width: 94px;
    margin-left: auto;
    overflow: hidden;
    padding: 3px 7px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--os-color-surface-elevated) 88%, transparent);
    color: color-mix(in srgb, var(--agenda-event-color, #5547ed) 84%, var(--agenda-ink));
    font-size: 9px;
    font-weight: 800;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.page-agenda .agenda-event-sequence {
    margin-left: auto;
}

.page-agenda .agenda-event-sequence + .agenda-event-status {
    margin-left: 0;
}

.page-agenda .agenda-event-customer,
.page-agenda .agenda-event-service {
    overflow: hidden;
    color: inherit;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.page-agenda .agenda-event-customer {
    font-size: var(--agenda-event-customer-size);
    font-weight: 850;
}

.page-agenda .agenda-event-service {
    font-size: var(--agenda-event-service-size);
    font-weight: 500;
}

.page-agenda .agenda-event-meta {
    overflow: hidden;
    color: var(--os-color-text-secondary);
    font-size: 10px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.page-agenda .agenda-event-compact {
    padding: 1px 5px;
}

.page-agenda .agenda-event-compact .agenda-event-content {
    gap: 0;
}

.page-agenda .agenda-event-compact .agenda-event-head {
    min-height: 9px;
}

.page-agenda .agenda-event-compact .agenda-event-status,
.page-agenda .agenda-event-compact .agenda-event-sequence,
.page-agenda .agenda-event-compact .agenda-event-meta {
    display: none;
}

.page-agenda .agenda-event-compact .agenda-event-time {
    font-size: var(--agenda-event-time-size);
    line-height: 1.2;
}

.page-agenda .agenda-event-compact .agenda-event-customer {
    min-width: 0;
    font-size: var(--agenda-event-customer-size);
    line-height: 1.2;
}

.page-agenda .agenda-event-compact .agenda-event-service {
    min-width: 0;
    font-size: var(--agenda-event-service-size);
    line-height: 1.2;
}

.page-agenda .agenda-event-simple {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    overflow: hidden;
}

.page-agenda .agenda-event-simple-time {
    flex: 0 0 auto;
    font-size: var(--agenda-event-time-size);
    font-weight: 800;
}

.page-agenda .agenda-event-simple strong {
    overflow: hidden;
    font-size: var(--agenda-event-customer-size);
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.page-agenda .full-calendar [class*="agenda-event-status-cancelled"] {
    --agenda-event-color: #98a2b3 !important;
    border-style: dashed !important;
    opacity: .72;
}

.page-agenda .agenda-event-status-checked_in .agenda-event-status {
    background: #dcfae6;
    color: #067647;
}

.page-agenda .agenda-event-status-completed .agenda-event-status {
    background: #e8f0ff;
    color: #2954b8;
}

.page-agenda .agenda-event-status-no_show .agenda-event-status {
    background: #fff0dc;
    color: #b54708;
}

.page-agenda .full-calendar .fc-list {
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: var(--agenda-canvas);
}

.page-agenda .full-calendar .fc-list .fc-scroller {
    background: var(--agenda-canvas);
}

.page-agenda .full-calendar .fc-list-table {
    width: 100%;
    padding: 6px 18px 24px;
    border: 0;
    border-collapse: separate;
    border-spacing: 0 7px;
    background: transparent;
}

.page-agenda .full-calendar .fc-list-day > th {
    padding: 13px 2px 3px;
    border: 0 !important;
    background: transparent;
}

.page-agenda .full-calendar .fc-list-day:first-child > th {
    padding-top: 7px;
}

.page-agenda .full-calendar .fc-list-day-cushion {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 0 3px 8px;
    border-bottom: 1px solid #dfe3eb;
    background: transparent;
    color: var(--agenda-ink);
}

.page-agenda .full-calendar .fc-list-day-text,
.page-agenda .full-calendar .fc-list-day-side-text {
    color: inherit;
    text-decoration: none;
}

.page-agenda .full-calendar .fc-list-day-text {
    font-size: 14px;
    font-weight: 850;
    letter-spacing: -.01em;
    text-transform: capitalize;
}

.page-agenda .full-calendar .fc-list-day-side-text {
    padding: 5px 9px;
    border: 1px solid #e2e5ec;
    border-radius: 999px;
    background: var(--os-color-surface);
    color: #7a8296;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .035em;
    text-transform: uppercase;
}

.page-agenda .full-calendar .fc-list-event.fc-event,
.page-agenda .full-calendar .fc-list-event.fc-event:hover,
.page-agenda .full-calendar .fc-list-event.fc-event:focus-visible {
    padding: 0;
    border: 0 !important;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none;
    opacity: 1;
}

.page-agenda .full-calendar .fc-list-event > td {
    height: 72px;
    padding-top: 11px !important;
    padding-bottom: 11px !important;
    border-top: 1px solid #e1e5ec !important;
    border-bottom: 1px solid #e1e5ec !important;
    background: var(--os-color-surface) !important;
    vertical-align: middle;
}

.page-agenda .full-calendar .fc-list-event > td:first-child {
    padding-left: 17px !important;
    border-left: 1px solid #e1e5ec !important;
    border-radius: 13px 0 0 13px;
    box-shadow: inset 4px 0 0 var(--agenda-event-color, #5547ed);
}

.page-agenda .full-calendar .fc-list-event > td:last-child {
    padding-right: 14px !important;
    border-right: 1px solid #e1e5ec !important;
    border-radius: 0 13px 13px 0;
}

.page-agenda .full-calendar .fc-list-event:hover td {
    background: var(--os-color-surface) !important;
}

.page-agenda .full-calendar .fc-list-event:focus-visible > td {
    border-top-color: #b9b2ff !important;
    border-bottom-color: #b9b2ff !important;
}

.page-agenda .full-calendar .fc-list-event:focus-visible > td:first-child {
    border-left-color: #b9b2ff !important;
}

.page-agenda .full-calendar .fc-list-event:focus-visible > td:last-child {
    border-right-color: #b9b2ff !important;
}

.page-agenda .full-calendar .fc-list-event-time {
    width: 132px;
    color: #30394d;
    font-size: 13px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.page-agenda .full-calendar .fc-list-event-graphic {
    width: 30px;
    padding-right: 11px !important;
}

.page-agenda .full-calendar .fc-list-event-dot {
    border-width: 5px;
    border-color: var(--agenda-event-color, #5547ed) !important;
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--agenda-event-color, #5547ed) 11%, var(--os-color-surface));
}

.page-agenda .full-calendar .fc-list-event-title {
    min-width: 0;
}

.page-agenda .full-calendar .fc-list-event-title > a {
    color: inherit;
    text-decoration: none;
}

.page-agenda .agenda-list-event {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(180px, 1.35fr) minmax(150px, 1fr) auto 26px;
    align-items: center;
    gap: 16px;
}

.page-agenda .agenda-list-event-main {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.page-agenda .agenda-list-event-customer,
.page-agenda .agenda-list-event-service,
.page-agenda .agenda-list-event-employee > span,
.page-agenda .agenda-list-event-location {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.page-agenda .agenda-list-event-customer {
    color: var(--agenda-ink);
    font-size: 14px;
    font-weight: 850;
    letter-spacing: -.01em;
}

.page-agenda .agenda-list-event-service {
    color: #737c90;
    font-size: 11px;
    font-weight: 650;
}

.page-agenda .agenda-list-event-meta {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #626b7e;
    font-size: 11px;
    font-weight: 700;
}

.page-agenda .agenda-list-event-employee,
.page-agenda .agenda-list-event-location {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.page-agenda .agenda-list-event-employee > i {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 50%;
    background: var(--agenda-event-color, #5547ed);
}

.page-agenda .agenda-list-event-location::before {
    content: "\2022";
    color: #b0b6c2;
}

.page-agenda .agenda-list-event-status {
    justify-self: end;
    padding: 5px 9px;
    border-radius: 999px;
    background: #f0efff;
    color: #5144ce;
    font-size: 10px;
    font-weight: 850;
    white-space: nowrap;
}

.page-agenda .agenda-list-event-arrow {
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #f5f6f9;
    color: #7e8799;
}

.page-agenda .agenda-list-event-arrow::before {
    content: "\203A";
    margin-top: -2px;
    font-size: 22px;
    font-weight: 500;
    line-height: 1;
}

.page-agenda .agenda-event-status-checked_in .agenda-list-event-status {
    background: #e8f8ef;
    color: #087443;
}

.page-agenda .agenda-event-status-completed .agenda-list-event-status {
    background: #edf4ff;
    color: #2954b8;
}

.page-agenda .agenda-event-status-no_show .agenda-list-event-status {
    background: #fff3e3;
    color: #b54708;
}

.page-agenda .full-calendar .fc-list-event[class*="agenda-event-status-cancelled"] > td {
    background: #fafbfc !important;
}

.page-agenda .full-calendar .fc-list-event[class*="agenda-event-status-cancelled"] .agenda-list-event-status {
    background: #eef0f3;
    color: var(--os-color-text-secondary);
}

.page-agenda .full-calendar .fc-list-event[class*="agenda-event-status-cancelled"] .agenda-list-event-customer {
    color: #70788a;
    text-decoration: line-through;
}

.page-agenda .full-calendar .fc-list-empty {
    padding: 64px 20px;
    background: var(--agenda-canvas);
    color: #778096;
    font-size: 13px;
    text-align: center;
}

.page-agenda .agenda-filters {
    width: 260px;
    padding: 17px;
    border-color: var(--agenda-line);
    border-radius: 16px;
    background: var(--os-color-surface);
    box-shadow: 0 18px 44px rgba(18, 25, 45, .13);
}

.page-agenda .agenda-filter-head strong,
.page-agenda .agenda-filters legend,
.page-agenda .agenda-filters > label {
    color: var(--agenda-ink);
}

.page-agenda .text-button,
.page-agenda .drawer-tabs button.active,
.page-agenda .eyebrow {
    color: var(--agenda-accent);
}

.page-agenda .check-row input {
    accent-color: var(--agenda-accent);
}

.page-agenda .drawer-header {
    border-bottom: 1px solid #eef0f4;
}

.page-agenda .drawer-header h2 {
    color: var(--agenda-ink);
    letter-spacing: -.025em;
}

.page-agenda .drawer-tabs button.active {
    border-color: var(--agenda-accent);
}

@media (max-width: 1180px) and (min-width: 701px) {
    .page-agenda .agenda-toolbar {
        padding-right: 12px;
        padding-left: 12px;
    }

    .page-agenda .agenda-period-controls strong {
        font-size: 14px;
    }

    .page-agenda .agenda-summary-help {
        display: none;
    }

    .page-agenda .agenda-tool-group .btn,
    .page-agenda .agenda-tools > .agenda-toolbar-action {
        width: 38px;
        min-width: 38px;
        padding: 0;
    }
}

@media (max-width: 700px) {
    .page-agenda .agenda-toolbar {
        min-height: auto;
        padding: 9px;
    }

    .page-agenda .agenda-period-controls strong {
        font-size: 14px;
    }

    .page-agenda .agenda-view-switch button {
        padding-right: 6px;
        padding-left: 6px;
    }

    .page-agenda .agenda-tool-group .btn,
    .page-agenda .agenda-tools > .agenda-toolbar-action {
        width: 38px;
        min-width: 38px;
        padding: 0;
    }

    .page-agenda .full-calendar {
        padding: 0;
    }

    .page-agenda .full-calendar .fc-scrollgrid {
        border-radius: 0;
    }

    .page-agenda .full-calendar .fc-timegrid-slot {
        height: 38px;
    }

    .page-agenda .full-calendar .fc-col-header-cell-cushion {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .page-agenda .agenda-event-status {
        display: none;
    }

    .page-agenda .full-calendar .fc-list-table {
        padding: 3px 8px 18px;
        border-spacing: 0 6px;
    }

    .page-agenda .full-calendar .fc-list-day > th {
        padding: 11px 1px 2px;
    }

    .page-agenda .full-calendar .fc-list-day-cushion {
        gap: 8px;
        padding-bottom: 7px;
    }

    .page-agenda .full-calendar .fc-list-day-text {
        font-size: 13px;
    }

    .page-agenda .full-calendar .fc-list-day-side-text {
        padding: 4px 7px;
        font-size: 9px;
    }

    .page-agenda .full-calendar .fc-list-event > td {
        height: 78px;
        padding-top: 9px !important;
        padding-bottom: 9px !important;
    }

    .page-agenda .full-calendar .fc-list-event > td:first-child {
        padding-left: 11px !important;
        border-radius: 11px 0 0 11px;
    }

    .page-agenda .full-calendar .fc-list-event > td:last-child {
        padding-right: 9px !important;
        border-radius: 0 11px 11px 0;
    }

    .page-agenda .full-calendar .fc-list-event-time {
        width: 82px;
        font-size: 11px;
        line-height: 1.35;
        white-space: normal;
    }

    .page-agenda .full-calendar .fc-list-event-graphic {
        display: none;
    }

    .page-agenda .agenda-list-event {
        grid-template-columns: minmax(0, 1fr);
        gap: 4px;
    }

    .page-agenda .agenda-list-event-meta,
    .page-agenda .agenda-list-event-arrow {
        display: none;
    }

    .page-agenda .agenda-list-event-customer {
        font-size: 13px;
    }

    .page-agenda .agenda-list-event-status {
        justify-self: start;
        padding: 4px 7px;
        font-size: 9px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .page-agenda .full-calendar .fc-scroller {
        scroll-behavior: auto;
    }
}

/* Volledige afspraakweergave */
.page-agenda .appointment-detail-hero {
    min-height: 112px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 16px !important;
    padding: 22px 24px;
    border: 1px solid var(--agenda-line);
    border-radius: 21px;
    background: var(--agenda-surface);
}

.page-agenda .appointment-detail-heading { min-width: 0; }

.page-agenda .appointment-detail-identity {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.page-agenda .appointment-detail-avatar {
    width: 62px;
    height: 62px;
    flex: 0 0 62px;
    display: grid;
    place-items: center;
    border-radius: 17px;
    background: linear-gradient(145deg, #5547ed, #8176f7);
    color: #fff;
    font-size: 22px;
}

.page-agenda .appointment-detail-name {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-agenda .appointment-detail-name h1 {
    min-width: 0;
    margin: 2px 0 0;
    overflow: hidden;
    color: var(--agenda-ink);
    font-size: 27px;
    letter-spacing: -.035em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.page-agenda .appointment-detail-identity p {
    margin: 4px 0 0;
    color: #8e96a8;
    font-size: 11px;
}

.page-agenda .appointment-detail-status,
.page-agenda .appointment-state-pill {
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 11px;
    border-radius: 999px;
    background: #e7f8ef;
    color: #18825b;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.page-agenda .appointment-detail-status i,
.page-agenda .appointment-state-pill i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

.page-agenda .appointment-detail-status.is-info,
.page-agenda .appointment-state-pill.is-info { background: #ebeaff; color: #5649d9; }
.page-agenda .appointment-detail-status.is-muted,
.page-agenda .appointment-state-pill.is-muted { background: #eef1f5; color: #737c8f; }
.page-agenda .appointment-state-pill.is-pending { background: #fff1df; color: #c36a19; }

.page-agenda .appointment-detail-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: nowrap;
}

.page-agenda .appointment-detail-actions .btn {
    min-height: 44px;
    border-radius: 12px;
    box-shadow: none;
    font-size: 14px;
    white-space: nowrap;
}

.page-agenda .appointment-more-actions > summary {
    width: 54px;
    padding: 0;
}

.page-agenda .appointment-profile-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.page-agenda .appointment-profile-metrics article {
    min-width: 0;
    min-height: 82px;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    align-items: center;
    gap: 11px;
    padding: 14px 16px;
    border: 1px solid var(--agenda-line);
    border-radius: 16px;
    background: var(--agenda-surface);
}

.page-agenda .appointment-profile-metrics article > span {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 12px;
}

.page-agenda .appointment-profile-metrics strong,
.page-agenda .appointment-profile-metrics small { display: block; }

.page-agenda .appointment-profile-metrics strong {
    overflow: hidden;
    color: var(--agenda-ink);
    font-size: 19px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.page-agenda .appointment-profile-metrics small {
    margin-top: 4px;
    color: #7f889b;
    font-size: 12px;
}

.page-agenda .appointment-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(270px, .62fr);
    gap: 16px;
    align-items: start;
}

.page-agenda .appointment-detail-main,
.page-agenda .appointment-detail-side {
    min-width: 0;
    display: grid;
    gap: 16px;
}

.page-agenda .appointment-profile-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--agenda-line);
    border-radius: 19px;
    background: var(--agenda-surface);
}

.page-agenda .appointment-card-heading {
    min-height: 78px;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 15px 20px;
    border-bottom: 1px solid var(--agenda-line);
}

.page-agenda .appointment-card-heading.compact {
    min-height: 70px;
    padding: 13px 16px;
}

.page-agenda .appointment-card-heading > span,
.page-agenda .appointment-contact-grid > div > span {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: var(--agenda-accent-soft);
    color: var(--agenda-accent);
}

.page-agenda .appointment-card-heading.compact > span {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
}

.page-agenda .appointment-card-heading > span.is-green,
.page-agenda .appointment-contact-grid > div > span.is-green { background: #e4f8ef; color: #1aa779; }
.page-agenda .appointment-card-heading > span.is-orange,
.page-agenda .appointment-contact-grid > div > span.is-orange { background: #fff1df; color: #ed7e1e; }
.page-agenda .appointment-card-heading > span.is-slate,
.page-agenda .appointment-contact-grid > div > span.is-slate { background: #eef1f6; color: #697286; }

.page-agenda .appointment-card-heading > div { min-width: 0; }
.page-agenda .appointment-card-heading h2,
.page-agenda .appointment-card-heading p { margin: 0; }

.page-agenda .appointment-card-heading h2 {
    color: var(--agenda-ink);
    font-size: 17px;
    letter-spacing: -.02em;
}

.page-agenda .appointment-card-heading p {
    margin-top: 4px;
    color: #7f889b;
    font-size: 12px;
}

.page-agenda .appointment-card-heading > em {
    min-width: 27px;
    height: 27px;
    display: grid;
    place-items: center;
    margin-left: auto;
    border-radius: 999px;
    background: #f0efff;
    color: #6357dc;
    font-size: 10px;
    font-style: normal;
    font-weight: 800;
}

.page-agenda .appointment-card-heading > a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    color: var(--agenda-accent);
    font-size: 12px;
    font-weight: 800;
}

.page-agenda .appointment-service-timeline { padding: 5px 0; }

.page-agenda .appointment-service-row {
    position: relative;
    min-height: 82px;
    display: grid;
    grid-template-columns: 58px 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 13px;
    padding: 11px 20px;
    border-bottom: 1px solid var(--agenda-line);
}

.page-agenda .appointment-service-row:last-child { border-bottom: 0; }
.page-agenda .appointment-service-row:hover { background: #faf9ff; }

.page-agenda .appointment-service-row time {
    display: grid;
    justify-items: end;
    color: var(--agenda-ink);
    font-variant-numeric: tabular-nums;
}

.page-agenda .appointment-service-row time strong { font-size: 14px; }
.page-agenda .appointment-service-row time small { color: #9299aa; font-size: 11px; }

.page-agenda .appointment-service-sequence {
    position: relative;
    z-index: 1;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border: 4px solid var(--agenda-surface);
    border-radius: 50%;
    background: var(--agenda-accent-soft);
    color: var(--agenda-accent);
    font-size: 10px;
    font-weight: 850;
    box-sizing: content-box;
}

.page-agenda .appointment-service-row:not(:last-child)::after {
    content: "";
    position: absolute;
    z-index: 0;
    top: 52px;
    bottom: -30px;
    left: 110px;
    width: 2px;
    background: #dcd8ff;
}

.page-agenda .appointment-service-copy strong,
.page-agenda .appointment-service-copy small { display: block; }
.page-agenda .appointment-service-copy strong { color: var(--agenda-ink); font-size: 14px; }
.page-agenda .appointment-service-copy small { margin-top: 5px; color: #7f889b; font-size: 12px; }
.page-agenda .appointment-service-copy small i { margin: 0 5px; font-style: normal; }
.page-agenda .appointment-service-price { color: #3a4253; font-size: 14px; white-space: nowrap; }

.page-agenda .appointment-contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    background: var(--agenda-line);
}

.page-agenda .appointment-contact-grid > div {
    min-width: 0;
    min-height: 88px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 17px 20px;
    background: var(--agenda-surface);
}

.page-agenda .appointment-contact-grid small,
.page-agenda .appointment-contact-grid strong { min-width: 0; display: block; }
.page-agenda .appointment-contact-grid small { color: #7f889b; font-size: 12px; }
.page-agenda .appointment-contact-grid strong { margin-top: 4px; overflow: hidden; color: #31394c; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }

.page-agenda .appointment-notes-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    background: var(--agenda-line);
}

.page-agenda .appointment-notes-grid article { min-height: 116px; padding: 20px; background: var(--agenda-surface); }
.page-agenda .appointment-notes-grid small { color: #7f889b; font-size: 12px; font-weight: 800; }
.page-agenda .appointment-notes-grid p { margin: 8px 0 0; color: #555f73; font-size: 13px; line-height: 1.65; }

.page-agenda .appointment-fact-list,
.page-agenda .appointment-state-overview { padding: 4px 16px; }

.page-agenda .appointment-fact-list > div,
.page-agenda .appointment-state-overview > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 13px;
    padding: 13px 0;
    border-bottom: 1px solid var(--agenda-line);
}

.page-agenda .appointment-fact-list > div:last-child,
.page-agenda .appointment-state-overview > div:last-child { border-bottom: 0; }
.page-agenda .appointment-fact-list span,
.page-agenda .appointment-state-overview > div > span { flex: 0 0 auto; color: #7f889b; font-size: 12px; }
.page-agenda .appointment-fact-list strong,
.page-agenda .appointment-state-overview > div > strong { min-width: 0; color: #343c4f; font-size: 12px; text-align: right; }
.page-agenda .appointment-fact-list small,
.page-agenda .appointment-state-overview small { display: block; margin-top: 2px; color: #9299aa; font-size: 10px; text-align: right; }
.page-agenda .appointment-fact-list > div:has(small),
.page-agenda .appointment-state-overview > div:has(small) { align-items: flex-start; flex-wrap: wrap; }
.page-agenda .appointment-fact-list > div:has(small) small,
.page-agenda .appointment-state-overview > div:has(small) small { width: 100%; }

.page-agenda .appointment-state-pill { min-height: 27px; padding: 0 9px; font-size: 10px !important; }

.page-agenda .appointment-status-actions { display: grid; padding: 8px; }
.page-agenda .appointment-status-actions form { margin: 0; }

.page-agenda .appointment-status-actions button {
    width: 100%;
    min-height: 48px;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 7px 10px;
    border: 0;
    border-radius: 11px;
    background: transparent;
    color: #848c9d;
    text-align: left;
    cursor: pointer;
}

.page-agenda .appointment-status-actions button:hover { background: #f7f6ff; color: var(--agenda-accent); }
.page-agenda .appointment-status-actions button.is-current { background: var(--agenda-accent-soft); color: var(--agenda-accent); }
.page-agenda .appointment-status-actions button > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: #f2f3f6; }
.page-agenda .appointment-status-actions button.is-current > span { background: #dedaff; }
.page-agenda .appointment-status-actions button strong { color: #41495b; font-size: 12px; }
.page-agenda .appointment-status-actions button.is-current strong { color: var(--agenda-accent-strong); }

.page-agenda .appointment-reminder-list { padding: 4px 16px; }
.page-agenda .appointment-reminder-list > div { min-height: 58px; display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--agenda-line); }
.page-agenda .appointment-reminder-list > div:last-child { border-bottom: 0; }
.page-agenda .appointment-reminder-list > div > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--agenda-accent-soft); color: var(--agenda-accent); }
.page-agenda .appointment-reminder-list strong,
.page-agenda .appointment-reminder-list small { display: block; }
.page-agenda .appointment-reminder-list strong { color: #41495b; font-size: 12px; }
.page-agenda .appointment-reminder-list small { margin-top: 3px; color: #8c94a5; font-size: 10px; }
.page-agenda .appointment-reminder-empty { grid-template-columns: 1fr !important; justify-items: center; padding: 24px 0 !important; border: 0 !important; text-align: center; }
.page-agenda .appointment-reminder-empty p { margin: 0; color: #8c94a5; font-size: 12px; }

.page-agenda .appointment-cancelled-card { border-color: #f6ceca; }
.page-agenda .appointment-cancelled-card .appointment-card-heading > span { background: #fff0ef; color: #c94f48; }
.page-agenda .appointment-cancelled-copy { padding: 18px 20px; background: #fffafa; }
.page-agenda .appointment-cancelled-copy strong { color: #8e302a; }
.page-agenda .appointment-cancelled-copy p { margin: 5px 0 0; color: #a96864; font-size: 12px; }

@media (max-width: 1180px) {
    .page-agenda .appointment-detail-layout { grid-template-columns: 1fr; }
    .page-agenda .appointment-profile-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 800px) {
    .page-agenda .appointment-detail-hero { align-items: stretch; flex-direction: column; }
    .page-agenda .appointment-detail-actions { justify-content: flex-start; flex-wrap: wrap; }
    .page-agenda .appointment-contact-grid,
    .page-agenda .appointment-notes-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    .page-agenda .appointment-detail-hero { padding: 18px; border-radius: 17px; }
    .page-agenda .appointment-detail-avatar { width: 52px; height: 52px; flex-basis: 52px; }
    .page-agenda .appointment-detail-name { align-items: flex-start; flex-direction: column; gap: 4px; }
    .page-agenda .appointment-detail-name h1 { font-size: 22px; white-space: normal; }
    .page-agenda .appointment-detail-actions .btn { flex: 1 1 auto; }
    .page-agenda .appointment-more-actions { margin-left: auto; }
    .page-agenda .appointment-profile-metrics { grid-template-columns: 1fr 1fr; gap: 8px; }
    .page-agenda .appointment-profile-metrics article { min-height: 72px; grid-template-columns: 34px minmax(0, 1fr); gap: 9px; padding: 11px; }
    .page-agenda .appointment-profile-metrics article > span { width: 34px; height: 34px; }
    .page-agenda .appointment-profile-metrics strong { font-size: 14px; }
    .page-agenda .appointment-service-row { grid-template-columns: 46px 30px minmax(0, 1fr); gap: 9px; padding: 11px 13px; }
    .page-agenda .appointment-service-row:not(:last-child)::after { left: 79px; }
    .page-agenda .appointment-service-price { grid-column: 3; margin-top: -5px; color: #7f889b; font-size: 11px; }
    .page-agenda .appointment-card-heading { padding: 14px 16px; }
}

/* Rustige afspraakdetailpagina in dezelfde vormtaal als het dashboard. */
.page-agenda .appointment-detail-back {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 20px;
    color: #6f7991;
    font-size: 12px;
    font-weight: 650;
}

.page-agenda .appointment-detail-back:hover { color: var(--agenda-accent); }

.page-agenda .appointment-detail-hero {
    position: relative;
    width: 100%;
    max-width: none;
    min-height: 126px;
    align-items: flex-start;
    margin-bottom: 20px !important;
    padding: 10px 0 24px;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.page-agenda .appointment-detail-hero > * { position: relative; z-index: 1; }
.page-agenda .appointment-detail-heading { padding-top: 2px; }

.page-agenda .appointment-detail-name { gap: 14px; }

.page-agenda .appointment-detail-name h1 {
    margin: 0;
    font-size: clamp(36px, 3.2vw, 46px);
    font-weight: 750;
    letter-spacing: -.055em;
}

.page-agenda .appointment-detail-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 13px 27px;
    margin-top: 19px;
    color: #71809a;
    font-size: 13px;
    font-weight: 550;
}

.page-agenda .appointment-detail-meta > span {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    white-space: nowrap;
}

.page-agenda .appointment-detail-meta i { width: 18px; color: #6c7893; font-size: 16px; text-align: center; }
.page-agenda .appointment-detail-actions { align-self: center; padding-top: 2px; }
.page-agenda .appointment-detail-actions .btn { min-height: 50px; padding: 0 20px; border-radius: 11px; font-size: 13px; }
.page-agenda .appointment-detail-actions .os-btn-primary { padding-inline: 24px; }
.page-agenda .appointment-more-actions { position: relative; }
.page-agenda .appointment-more-actions > summary { width: 50px; }
.page-agenda .appointment-more-actions > div {
    z-index: 80;
    right: 0;
    left: auto;
    width: max-content;
    max-width: min(220px, calc(100vw - 24px));
}

.page-agenda .appointment-detail-layout {
    grid-template-columns: minmax(0, 1.58fr) minmax(340px, .96fr);
    gap: 18px;
}

.page-agenda .appointment-detail-main,
.page-agenda .appointment-detail-side { gap: 18px; }

.page-agenda .appointment-profile-card {
    border-radius: 15px;
    box-shadow: 0 8px 28px rgba(39, 42, 68, .025);
}

.page-agenda .appointment-card-heading {
    min-height: 92px;
    gap: 16px;
    padding: 17px 20px;
    border-bottom: 0;
}

.page-agenda .appointment-card-heading.compact { min-height: 72px; padding: 13px 17px; }
.page-agenda .appointment-card-heading h2 { font-size: 18px; font-weight: 750; }
.page-agenda .appointment-card-heading p { margin-top: 3px; }
.page-agenda .appointment-card-heading p i { margin: 0 5px; font-style: normal; }

.page-agenda .appointment-card-heading > span,
.page-agenda .appointment-contact-grid > div > span {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
    border-radius: 13px;
    font-size: 18px;
}

.page-agenda .appointment-card-heading.compact > span { width: 42px; height: 42px; flex-basis: 42px; font-size: 15px; }

.page-agenda .appointment-card-heading > a {
    min-height: 36px;
    justify-content: center;
    padding: 0 12px;
    border: 1px solid var(--agenda-line);
    border-radius: 9px;
    background: var(--agenda-surface);
    color: #5e6880;
}

.page-agenda .appointment-card-heading > a:hover { border-color: #c7c1fa; color: var(--agenda-accent); }
.page-agenda .appointment-card-heading > em { padding: 0 12px; }

.page-agenda .appointment-service-timeline { padding: 0 16px 16px; }

.page-agenda .appointment-service-row {
    min-height: 96px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    padding: 17px 18px;
    border: 1px solid var(--agenda-line);
    border-radius: 10px;
}

.page-agenda .appointment-service-row + .appointment-service-row { margin-top: 10px; }
.page-agenda .appointment-service-row:last-child { border-bottom: 1px solid var(--agenda-line); }
.page-agenda .appointment-service-row:not(:last-child)::after { display: none; }
.page-agenda .appointment-service-copy strong { font-size: 15px; }

.page-agenda .appointment-service-copy small {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px 22px;
    margin-top: 10px;
}

.page-agenda .appointment-service-copy small > span { display: inline-flex; align-items: center; gap: 8px; }
.page-agenda .appointment-service-copy small i { margin: 0; color: #73819d; }
.page-agenda .appointment-service-price { align-self: start; font-size: 16px; }

.page-agenda .appointment-walkin-notice {
    min-height: 88px;
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0 18px 18px;
    padding: 17px 19px;
    border-radius: 10px;
    background: #f6f8fc;
    color: #77839c;
}

.page-agenda .appointment-walkin-notice > i { font-size: 24px; }
.page-agenda .appointment-walkin-notice p,
.page-agenda .appointment-walkin-notice strong,
.page-agenda .appointment-walkin-notice span { display: block; margin: 0; }
.page-agenda .appointment-walkin-notice strong { color: #66738d; font-size: 12px; }
.page-agenda .appointment-walkin-notice span { margin-top: 4px; font-size: 11px; }

.page-agenda .appointment-notes-card { min-height: 350px; }
.page-agenda .appointment-note-add { margin-left: auto; }
.page-agenda .appointment-note-tabs { position: relative; }
.page-agenda .appointment-note-tabs > input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.page-agenda .appointment-note-tablist {
    display: flex;
    gap: 28px;
    padding: 0 20px;
    border-bottom: 1px solid var(--agenda-line);
}

.page-agenda .appointment-note-tablist label {
    position: relative;
    padding: 13px 0 14px;
    color: #7d879c;
    font-size: 12px;
    font-weight: 650;
    cursor: pointer;
}

.page-agenda .appointment-note-tablist label::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 2px;
    border-radius: 2px;
    background: transparent;
}

.page-agenda .appointment-note-tabs > input[data-note-tab="customer"]:checked ~ .appointment-note-tablist label:first-child,
.page-agenda .appointment-note-tabs > input[data-note-tab="internal"]:checked ~ .appointment-note-tablist label:last-child { color: var(--agenda-accent); }
.page-agenda .appointment-note-tabs > input[data-note-tab="customer"]:checked ~ .appointment-note-tablist label:first-child::after,
.page-agenda .appointment-note-tabs > input[data-note-tab="internal"]:checked ~ .appointment-note-tablist label:last-child::after { background: var(--agenda-accent); }

.page-agenda .appointment-note-panels > article { display: none; min-height: 215px; padding: 24px; }
.page-agenda .appointment-note-tabs > input[data-note-tab="customer"]:checked ~ .appointment-note-panels [data-note-panel="customer"],
.page-agenda .appointment-note-tabs > input[data-note-tab="internal"]:checked ~ .appointment-note-panels [data-note-panel="internal"] { display: grid; }

.page-agenda .appointment-note-empty { place-self: center; display: grid; justify-items: center; color: #8a94aa; text-align: center; }
.page-agenda .appointment-note-empty > span { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 11px; border-radius: 50%; background: var(--agenda-accent-soft); color: var(--agenda-accent); font-size: 17px; }
.page-agenda .appointment-note-empty strong { color: #758097; font-size: 12px; }
.page-agenda .appointment-note-empty p { margin: 5px 0 0; font-size: 11px; }
.page-agenda .appointment-note-copy { align-self: start; margin: 0; color: #505a70; font-size: 13px; line-height: 1.7; }

.page-agenda .appointment-status-card > header {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    margin: 14px;
    padding: 13px;
    border-radius: 11px;
    background: linear-gradient(100deg, #e9faf2, #f0fbf7);
}

.page-agenda .appointment-status-card > header > span { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: #12a66f; color: #fff; font-size: 17px; }
.page-agenda .appointment-status-card > header h2,
.page-agenda .appointment-status-card > header p { margin: 0; }
.page-agenda .appointment-status-card > header h2 { color: var(--agenda-ink); font-size: 17px; }
.page-agenda .appointment-status-card > header p { margin-top: 4px; color: #738099; font-size: 11px; }

.page-agenda .appointment-status-editor { margin: 0 14px 14px; border: 1px solid var(--agenda-line); border-radius: 9px; }
.page-agenda .appointment-status-editor > summary { min-height: 46px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 14px; color: #67738c; font-size: 12px; font-weight: 650; list-style: none; cursor: pointer; }
.page-agenda .appointment-status-editor > summary::-webkit-details-marker { display: none; }
.page-agenda .appointment-status-editor[open] > summary { border-bottom: 1px solid var(--agenda-line); color: var(--agenda-accent); }
.page-agenda .appointment-status-editor[open] > summary i { transform: rotate(90deg); }
.page-agenda .appointment-status-actions { padding: 6px; }

.page-agenda .appointment-payment-card .appointment-card-heading { padding-bottom: 7px; }
.page-agenda .appointment-payment-summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 4px 18px 15px; }
.page-agenda .appointment-payment-summary > strong { color: var(--agenda-ink); font-size: 30px; letter-spacing: -.035em; }
.page-agenda .appointment-payment-action { min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0 16px 16px; border-radius: 9px; background: #5947f1; color: #fff; font-size: 13px; font-weight: 750; }
.page-agenda .appointment-payment-action:hover { background: #4938df; }
.page-agenda .appointment-payment-details { margin: 0 16px 16px; padding-top: 4px; border-top: 1px solid var(--agenda-line); }
.page-agenda .appointment-payment-details p { display: grid; grid-template-columns: minmax(90px, 1fr) auto; gap: 4px 12px; margin: 0; padding: 10px 0; }
.page-agenda .appointment-payment-details span { color: #7f899e; font-size: 11px; }
.page-agenda .appointment-payment-details strong { color: #3e475b; font-size: 11px; text-align: right; }
.page-agenda .appointment-payment-details small { grid-column: 1 / -1; color: #8d96a8; font-size: 10px; text-align: right; }

.page-agenda .appointment-data-card .appointment-card-heading > a { margin-left: auto; }
.page-agenda .appointment-fact-list,
.page-agenda .appointment-state-overview { padding: 2px 17px 8px; }
.page-agenda .appointment-fact-list > div { min-height: 46px; padding: 10px 0; }
.page-agenda .appointment-fact-list strong { max-width: 68%; overflow-wrap: anywhere; }

html[data-theme="dark"] .page-agenda .appointment-service-row,
html[data-theme="dark"] .page-agenda .appointment-service-row:last-child { border-color: var(--agenda-line); }
html[data-theme="dark"] .page-agenda .appointment-service-row:hover,
html[data-theme="dark"] .page-agenda .appointment-walkin-notice { background: var(--os-color-surface-strong); }
html[data-theme="dark"] .page-agenda .appointment-status-card > header { background: color-mix(in srgb, #16a873 15%, var(--agenda-surface)); }

@media (max-width: 1180px) {
    .page-agenda .appointment-detail-layout { grid-template-columns: 1fr; }
    .page-agenda .appointment-detail-side { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
}

@media (max-width: 800px) {
    .page-agenda .appointment-detail-hero { padding-top: 0; }
    .page-agenda .appointment-detail-actions { align-self: flex-start; }
    .page-agenda .appointment-detail-side { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    .page-agenda .appointment-detail-back { margin-bottom: 14px; }
    .page-agenda .appointment-detail-hero { padding: 0 0 18px; }
    .page-agenda .appointment-detail-name h1 { font-size: 32px; }
    .page-agenda .appointment-detail-meta { gap: 10px 16px; margin-top: 14px; }
    .page-agenda .appointment-detail-meta > span { white-space: normal; }
    .page-agenda .appointment-detail-actions { width: 100%; }
    .page-agenda .appointment-detail-actions .btn { min-width: 0; padding-inline: 13px; }
    .page-agenda .appointment-card-heading { min-height: 80px; gap: 11px; }
    .page-agenda .appointment-card-heading > span { width: 42px; height: 42px; flex-basis: 42px; }
    .page-agenda .appointment-card-heading > a { padding-inline: 9px; font-size: 10px; }
    .page-agenda .appointment-service-row { grid-template-columns: minmax(0, 1fr) auto; padding: 15px; }
    .page-agenda .appointment-service-price { grid-column: auto; margin: 0; color: #3a4253; font-size: 13px; }
    .page-agenda .appointment-payment-summary > strong { font-size: 26px; }
}

/* Fast internal appointment creation */
.page-agenda .agenda-toast-error {
    border-color: #fecdca;
    background: #fff4f3;
    color: #b42318;
}

.page-agenda .full-calendar .fc-timegrid-slot-lane {
    cursor: default;
}

.page-agenda .full-calendar .fc-timegrid-slot-lane:hover {
    background: transparent !important;
}

.page-agenda .full-calendar .fc-scrollgrid-section-body:hover,
.page-agenda .full-calendar .fc-scrollgrid-section-body:hover > td {
    background: transparent !important;
}

.page-agenda .full-calendar .fc-timegrid-body tbody tr,
.page-agenda .full-calendar .fc-timegrid-body tbody tr:hover,
.page-agenda .full-calendar .fc-timegrid-body tbody tr:hover > td {
    background: transparent !important;
}

.page-agenda .full-calendar .fc-timegrid-col:hover,
.page-agenda .full-calendar .fc-timegrid-col-frame:hover,
.page-agenda .full-calendar .fc-timegrid-col-bg:hover,
.page-agenda .full-calendar .fc-timegrid-slots table tbody tr:hover {
    filter: none !important;
}

.page-agenda .full-calendar .fc-timegrid-slots table tbody tr,
.page-agenda .full-calendar .fc-timegrid-slots table tbody tr:hover {
    background: transparent !important;
}

.page-agenda .full-calendar .agenda-time-label-minor .fc-timegrid-slot-label-cushion {
    color: #929bad;
}

.page-agenda .full-calendar .agenda-time-cell-hover {
    position: absolute;
    z-index: 2;
    border-radius: 3px;
    background: color-mix(in srgb, var(--agenda-accent) 15%, transparent);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--agenda-accent) 48%, transparent);
    pointer-events: none;
}

.page-agenda .full-calendar .agenda-time-cell-hover.is-non-business {
    background: color-mix(in srgb, var(--os-color-text-muted) 22%, transparent);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--os-color-text) 36%, transparent);
}

.page-agenda .full-calendar .fc-highlight {
    border: 0;
    background: transparent !important;
    box-shadow: inset 0 0 0 1px #aeb4c1;
}

.page-agenda .full-calendar .fc-event,
.page-agenda .full-calendar .fc-event:hover {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
    transition: none !important;
}

.page-agenda .agenda-create-drawer {
    width: min(860px, 100%);
    border-radius: 0;
}

.page-agenda .agenda-create-form {
    grid-template-rows: auto minmax(0, 1fr) auto;
}

.page-agenda .agenda-create-header {
    padding: 23px 26px 18px;
}

.page-agenda .agenda-create-header p {
    max-width: 470px;
    font-size: 13px;
    line-height: 1.5;
}

.page-agenda .agenda-create-content {
    min-height: 0;
    display: grid;
    align-content: start;
    overflow-y: auto;
    padding: 18px 26px 26px;
    background: #f8f9fc;
}

.page-agenda .agenda-create-section,
.page-agenda .agenda-create-notes {
    padding: 17px;
    border: 1px solid var(--agenda-line);
    border-radius: 15px;
    background: var(--agenda-surface);
    box-shadow: 0 3px 12px rgba(18, 25, 45, .025);
}

.page-agenda .agenda-create-section-heading {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: center;
    gap: 11px;
    margin-bottom: 15px;
}

.page-agenda .agenda-create-section-heading-action {
    grid-template-columns: 38px minmax(0, 1fr) auto;
}

.page-agenda .agenda-create-section-heading > span {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: var(--agenda-accent-soft);
    color: var(--agenda-accent);
}

.page-agenda .agenda-create-section-heading h3 {
    margin: 0 0 2px;
    color: var(--agenda-ink);
    font-size: 15px;
    letter-spacing: -.015em;
}

.page-agenda .agenda-create-section-heading p {
    margin: 0;
    color: var(--agenda-muted);
    font-size: 12px;
    line-height: 1.4;
}

.page-agenda .agenda-create-section-heading .text-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.page-agenda .agenda-create-moment-grid,
.page-agenda .agenda-create-fields {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(118px, .52fr);
    gap: 8px;
}

.page-agenda .agenda-create-moment-section {
    padding: 14px 15px;
}

.page-agenda .agenda-create-moment-section .agenda-create-section-heading {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 9px;
    margin-bottom: 11px;
}

.page-agenda .agenda-create-moment-section .agenda-create-section-heading > span {
    width: 34px;
    height: 34px;
    border-radius: 10px;
}

.page-agenda .agenda-create-moment-section .agenda-create-section-heading h3 {
    font-size: 14px;
}

.page-agenda .agenda-create-moment-section .agenda-create-section-heading p {
    font-size: 11px;
}

.page-agenda .agenda-create-moment-section .field {
    gap: 5px;
}

.page-agenda .agenda-create-moment-section .input {
    min-height: 40px;
    border-radius: 9px;
    font-size: 12px;
}

.page-agenda .agenda-create-fields {
    grid-template-columns: minmax(0, 1fr);
}

.page-agenda .agenda-create-services,
.page-agenda .agenda-add-service {
    grid-column: 1 / -1;
}

.page-agenda .agenda-create-services {
    display: grid;
    gap: 10px;
}

.page-agenda .agenda-create-service-row {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e1e4ea;
    border-radius: 12px;
    background: #fff;
    transition: border-color .16s ease, box-shadow .16s ease;
}

.page-agenda .agenda-create-service-row.is-editing {
    border-color: #d7d3ff;
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--agenda-accent) 7%, transparent);
}

.page-agenda .agenda-create-service-card-summary {
    min-height: 66px;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) 72px minmax(145px, .9fr) 32px;
    align-items: center;
    gap: 12px;
    padding: 11px 13px;
}

.page-agenda .agenda-create-service-card-summary[hidden],
.page-agenda .agenda-create-service-editor[hidden],
.page-agenda .agenda-create-service-grip[hidden] {
    display: none !important;
}

.page-agenda .agenda-create-service-card-summary > strong,
.page-agenda .agenda-create-service-card-summary > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.page-agenda .agenda-create-service-card-summary > strong {
    color: #303746;
    font-size: 13px;
    font-weight: 750;
}

.page-agenda .agenda-create-service-card-summary > [data-create-service-card-duration] {
    color: #596176;
    font-size: 12px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.page-agenda .agenda-create-service-card-employee {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #42495a;
    font-size: 12px;
    font-weight: 700;
}

.page-agenda .agenda-create-service-card-employee i,
.page-agenda .agenda-create-service-employee-control > i {
    width: 31px;
    height: 31px;
    flex: 0 0 31px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--service-employee-color, #98a2b3);
    color: #fff;
    font-size: 10px;
    font-style: normal;
    font-weight: 850;
    letter-spacing: -.02em;
}

.page-agenda .agenda-create-service-edit {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #777f90;
    cursor: pointer;
}

.page-agenda .agenda-create-service-edit:hover {
    background: var(--agenda-accent-soft);
    color: var(--agenda-accent);
}

.page-agenda .agenda-create-service-editor {
    position: relative;
    padding: 13px 13px 9px;
    background: #fbfbfd;
}

.page-agenda .agenda-create-service-editor-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(82px, .52fr) minmax(0, 1.08fr);
    align-items: end;
    gap: 10px;
    padding-top: 13px;
    padding-right: 27px;
}

.page-agenda .agenda-create-service-editor .field {
    min-width: 0;
    gap: 6px;
    margin: 0;
}

.page-agenda .agenda-create-service-editor .field > span:first-child {
    color: #858b99;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.page-agenda .agenda-create-service-editor .input {
    min-height: 42px;
    border-radius: 9px;
    font-size: 12px;
}

.page-agenda .agenda-create-service-duration-field .input[readonly] {
    background: #fff;
    color: #4b5364;
    cursor: default;
    font-variant-numeric: tabular-nums;
}

.page-agenda .agenda-create-service-employee-control {
    position: relative;
    display: block;
}

.page-agenda .agenda-create-service-employee-control > i {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 8px;
    width: 27px;
    height: 27px;
    flex-basis: 27px;
    transform: translateY(-50%);
}

.page-agenda .agenda-create-service-employee-control .input {
    padding-left: 43px;
}

.page-agenda .agenda-create-service-remove {
    position: absolute;
    z-index: 2;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #7d8491;
    cursor: pointer;
}

.page-agenda .agenda-create-service-remove:hover {
    background: #fff1f2;
    color: #b42318;
}

.page-agenda .agenda-create-service-grip {
    min-height: 20px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 5px 3px 0;
    color: #9297a2;
    font-size: 15px;
}

.page-agenda .booking-service-sequence {
    display: grid;
    gap: 9px;
}

.page-agenda .booking-service-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 9px;
}

.page-agenda .booking-service-row:has(.booking-service-remove[hidden]) {
    grid-template-columns: minmax(0, 1fr);
    column-gap: 0;
}

.page-agenda .booking-service-field {
    min-width: 0;
    margin-bottom: 0;
}

.page-agenda .booking-service-label-line {
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-agenda .booking-service-order {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    display: grid;
    place-items: center;
    border-radius: 7px;
    background: var(--agenda-accent-soft);
    color: var(--agenda-accent-strong);
    font-size: 11px;
    font-weight: 850;
}

.page-agenda .booking-service-remove {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    align-self: end;
    margin-bottom: 3px;
    border: 1px solid #e4e7ec;
    border-radius: 10px;
    background: #fff;
    color: #8b4650;
    cursor: pointer;
}

.page-agenda .booking-service-remove:hover {
    border-color: #f3b8bd;
    background: #fff1f2;
    color: #b42318;
}

.page-agenda .booking-add-service {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    justify-self: start;
    padding: 8px 12px;
    border: 1px dashed #a9a2f7;
    border-radius: 10px;
    background: #f8f7ff;
    color: var(--agenda-accent-strong);
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.page-agenda .booking-add-service:hover {
    border-style: solid;
    background: var(--agenda-accent-soft);
}

.page-agenda .agenda-add-service {
    width: auto;
    min-height: 30px;
    justify-self: start;
    padding: 4px 2px;
    border: 0;
    background: transparent;
}

.page-agenda .booking-service-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 11px 13px;
    border-radius: 10px;
    background: #f3f4f8;
    color: #667085;
    font-size: 12px;
}

.page-agenda .booking-service-total strong {
    color: #31384a;
}

.page-agenda .booking-add-service[hidden],
.page-agenda .booking-service-remove[hidden],
.page-agenda .agenda-create-service-remove[hidden],
.page-agenda .booking-service-total[hidden] {
    display: none !important;
}

.page-agenda .agenda-create-form .field {
    display: grid;
    gap: 7px;
    color: #555e72;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .025em;
}

.page-agenda .agenda-create-form .input {
    width: 100%;
    min-height: 45px;
    border-color: #d8dce5;
    border-radius: 11px;
    background: #fff;
    color: var(--agenda-ink);
    font-size: 13px;
    letter-spacing: normal;
}

.page-agenda .agenda-create-form .input:focus,
.page-agenda .agenda-create-customer-search:focus-within {
    border-color: #9b92ff;
    outline: 0;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--agenda-accent) 12%, transparent);
}

.page-agenda .agenda-time-picker {
    position: relative;
    display: block;
    min-width: 0;
}

.page-agenda .agenda-time-picker-input {
    width: 100%;
    padding-right: 46px;
    cursor: pointer;
    font-variant-numeric: tabular-nums;
}

.page-agenda .agenda-time-picker-toggle {
    position: absolute;
    z-index: 2;
    top: 50%;
    right: 7px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #4d566a;
    cursor: pointer;
    transform: translateY(-50%);
    transition: background .16s ease, color .16s ease;
}

.page-agenda .agenda-time-picker-toggle svg {
    width: 16px;
    height: 16px;
}

.page-agenda .agenda-time-picker-toggle:hover,
.page-agenda .agenda-time-picker.is-open .agenda-time-picker-toggle {
    background: #efedff;
    color: var(--agenda-accent);
}

.page-agenda .agenda-time-picker.is-open .agenda-time-picker-input {
    border-color: #9b92ff;
    outline: 0;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--agenda-accent) 12%, transparent);
}

.page-agenda .agenda-time-picker-popover {
    position: absolute;
    z-index: 60;
    top: calc(100% + 8px);
    right: 0;
    width: min(258px, calc(100vw - 44px));
    padding: 10px;
    border: 1px solid #dfe2ea;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 18px 44px rgba(23, 27, 45, .18), 0 3px 10px rgba(23, 27, 45, .08);
    animation: agenda-time-picker-in .16s ease-out;
}

.page-agenda .agenda-time-picker-popover[hidden] {
    display: none;
}

.page-agenda .agenda-time-picker-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    color: var(--agenda-ink);
    letter-spacing: normal;
}

.page-agenda .agenda-time-picker-heading strong {
    font-size: 12px;
}

.page-agenda .agenda-time-picker-columns {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: stretch;
    gap: 6px;
}

.page-agenda .agenda-time-picker-column-wrap {
    min-width: 0;
    display: grid;
    gap: 5px;
}

.page-agenda .agenda-time-picker-column-wrap > small {
    padding-left: 5px;
    color: #737c90;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.page-agenda .agenda-time-picker-column {
    height: 148px;
    display: grid;
    align-content: start;
    gap: 3px;
    overflow-y: auto;
    padding: 4px;
    border: 1px solid #e5e7ee;
    border-radius: 9px;
    background: #f8f9fc;
    scrollbar-width: thin;
    scrollbar-color: #c8cbd8 transparent;
}

.page-agenda .agenda-time-picker-column button {
    width: 100%;
    min-height: 32px;
    padding: 4px 7px;
    border: 1px solid transparent;
    border-radius: 7px;
    background: transparent;
    color: #333b4e;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    cursor: pointer;
    transition: background .14s ease, color .14s ease, box-shadow .14s ease;
}

.page-agenda .agenda-time-picker-column button:hover,
.page-agenda .agenda-time-picker-column button:focus-visible {
    outline: 0;
    background: #e9e6ff;
    color: #4938d9;
}

.page-agenda .agenda-time-picker-column button.is-selected {
    border-color: #c8c2ff;
    background: transparent;
    color: var(--agenda-accent);
    box-shadow: none;
}

.page-agenda .agenda-time-picker-separator {
    display: grid;
    place-items: center;
    padding-top: 16px;
    color: #7d8597;
    font-size: 16px;
    font-weight: 900;
    letter-spacing: normal;
}

@keyframes agenda-time-picker-in {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.page-agenda .agenda-create-repeat-section {
    padding: 0;
    overflow: visible;
}

.page-agenda .agenda-repeat-toggle {
    min-height: 72px;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
    padding: 15px 17px;
    cursor: pointer;
}

.page-agenda .agenda-repeat-toggle > input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.page-agenda .agenda-repeat-toggle:has(input:focus-visible) {
    outline: 3px solid color-mix(in srgb, var(--agenda-accent) 18%, transparent);
    outline-offset: -3px;
}

.page-agenda .agenda-repeat-toggle-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: #f1f2f6;
    color: #737c90;
}

.page-agenda .agenda-repeat-toggle > span:nth-of-type(2) {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.page-agenda .agenda-repeat-toggle strong {
    color: var(--agenda-ink);
    font-size: 14px;
}

.page-agenda .agenda-repeat-toggle small {
    color: var(--agenda-muted);
    font-size: 11px;
}

.page-agenda .agenda-repeat-switch {
    position: relative;
    width: 38px;
    height: 22px;
    border-radius: 999px;
    background: #d8dce5;
    transition: background .16s ease;
}

.page-agenda .agenda-repeat-switch::after {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(16, 24, 40, .2);
    content: "";
    transition: transform .16s ease;
}

.page-agenda .agenda-repeat-toggle:has(input:checked) .agenda-repeat-toggle-icon {
    background: var(--agenda-accent-soft);
    color: var(--agenda-accent);
}

.page-agenda .agenda-repeat-toggle:has(input:checked) .agenda-repeat-switch {
    background: var(--agenda-accent);
}

.page-agenda .agenda-repeat-toggle:has(input:checked) .agenda-repeat-switch::after {
    transform: translateX(16px);
}

.page-agenda .agenda-repeat-panel {
    display: grid;
    gap: 14px;
    padding: 16px 17px 17px;
    border-top: 1px solid #eceef3;
    border-radius: 0 0 15px 15px;
    background: #fbfbfd;
}

.page-agenda .agenda-repeat-panel[hidden],
.page-agenda .agenda-repeat-count[hidden],
.page-agenda .agenda-repeat-until[hidden] {
    display: none !important;
}

.page-agenda .agenda-repeat-grid {
    display: grid;
    grid-template-columns: 145px minmax(0, 1fr);
    align-items: start;
    gap: 12px;
}

.page-agenda .agenda-repeat-weekdays {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.page-agenda .agenda-repeat-weekdays legend {
    width: 100%;
    margin: 0 0 7px;
    padding: 0;
    color: #555e72;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .025em;
    line-height: normal;
}

.page-agenda .agenda-repeat-weekday-options {
    display: grid;
    grid-template-columns: repeat(7, minmax(35px, 1fr));
    gap: 6px;
}

.page-agenda .agenda-repeat-weekdays label {
    min-width: 0;
    cursor: pointer;
}

.page-agenda .agenda-repeat-weekdays input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.page-agenda .agenda-repeat-weekdays span {
    min-height: 45px;
    display: grid;
    place-items: center;
    border: 1px solid #d8dce5;
    border-radius: 10px;
    background: #fff;
    color: #60697c;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.page-agenda .agenda-repeat-weekdays input:focus-visible + span {
    outline: 3px solid color-mix(in srgb, var(--agenda-accent) 15%, transparent);
    outline-offset: 1px;
}

.page-agenda .agenda-repeat-weekdays input:checked + span {
    border-color: var(--agenda-accent);
    background: var(--agenda-accent);
    color: #fff;
}

.page-agenda .agenda-repeat-ending {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(150px, .65fr);
    align-items: end;
    gap: 12px;
}

.page-agenda .agenda-repeat-summary {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
    padding: 10px 11px;
    border-radius: 10px;
    background: var(--agenda-accent-soft);
    color: #655ca4;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.45;
}

.page-agenda .agenda-repeat-summary > i {
    margin-top: 2px;
    color: var(--agenda-accent);
}

.page-agenda .agenda-create-service-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: hidden;
    margin-top: 12px;
    border: 1px solid #e7e9ef;
    border-radius: 10px;
    background: #f5f6f9;
}

.page-agenda .agenda-create-service-summary span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 0;
    padding: 9px 8px;
    color: #666f82;
    font-size: 11px;
}

.page-agenda .agenda-create-service-summary span + span {
    border-left: 1px solid #e1e4eb;
}

.page-agenda .agenda-create-service-summary strong {
    color: #31384a;
}

.page-agenda .agenda-create-service-summary[hidden] {
    display: none !important;
}

.page-agenda .agenda-create-customer-combobox {
    position: relative;
}

.page-agenda .agenda-create-customer-search {
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0 11px 0 13px;
    border: 1px solid #d8dce5;
    border-radius: 11px;
    background: #fff;
    color: #9098a9;
    transition: border-color .16s ease, box-shadow .16s ease;
}

.page-agenda .agenda-create-customer-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--agenda-ink);
    font: inherit;
    font-size: 13px;
}

.page-agenda .agenda-create-customer-search > i {
    flex: 0 0 auto;
    color: #70798d;
}

.page-agenda .agenda-create-customer-search button {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #667085;
    cursor: pointer;
}

.page-agenda .agenda-create-customer-search button:hover {
    background: #f1f3f7;
    color: var(--agenda-ink);
}

.page-agenda .agenda-create-customer-dropdown {
    position: absolute;
    z-index: 30;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    max-height: 292px;
    display: grid;
    gap: 6px;
    overflow-y: auto;
    padding: 8px;
    border: 1px solid #e0e3e9;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(22, 29, 47, .16), 0 3px 10px rgba(22, 29, 47, .08);
}

.page-agenda .agenda-create-customer-dropdown[hidden],
.page-agenda .agenda-create-customer-option[hidden] {
    display: none !important;
}

.page-agenda .agenda-create-customer-option {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto 20px;
    align-items: center;
    gap: 11px;
    padding: 10px;
    border: 1px solid transparent;
    border-radius: 11px;
    background: #fff;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color .14s ease, background .14s ease, box-shadow .14s ease;
}

.page-agenda .agenda-create-customer-option:hover,
.page-agenda .agenda-create-customer-option:focus-visible {
    border-color: #cbc6ff;
    outline: 0;
    background: #f8f7ff;
}

.page-agenda .agenda-create-customer-option.is-selected {
    border-color: var(--agenda-accent);
    background: color-mix(in srgb, var(--agenda-accent) 7%, #fff);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--agenda-accent) 55%, transparent);
}

.page-agenda .agenda-create-customer-avatar {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: var(--agenda-accent-soft);
    color: var(--agenda-accent-strong);
    font-size: 16px;
    font-weight: 850;
}

.page-agenda .agenda-create-customer-copy {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.page-agenda .agenda-create-customer-copy strong,
.page-agenda .agenda-create-customer-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.page-agenda .agenda-create-customer-copy strong {
    color: var(--agenda-ink);
    font-size: 13px;
}

.page-agenda .agenda-create-customer-copy small {
    color: var(--agenda-muted);
    font-size: 11px;
}

.page-agenda .agenda-create-customer-recent {
    align-self: start;
    padding: 3px 7px;
    border-radius: 999px;
    background: #ecfdf3;
    color: #067647;
    font-size: 9px;
    font-weight: 850;
}

.page-agenda .agenda-create-customer-check {
    color: var(--agenda-accent);
    opacity: 0;
}

.page-agenda .agenda-create-customer-option.is-selected .agenda-create-customer-check {
    opacity: 1;
}

.page-agenda .agenda-create-customer-empty {
    margin: 0;
    padding: 18px 10px;
    color: var(--agenda-muted);
    font-size: 12px;
    text-align: center;
}

.page-agenda .agenda-create-notes {
    overflow: hidden;
    padding: 0;
}

.page-agenda .agenda-create-notes summary {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
    min-height: 72px;
    padding: 15px 17px;
    list-style: none;
    color: var(--agenda-ink);
    cursor: pointer;
}

.page-agenda .agenda-create-notes summary::-webkit-details-marker {
    display: none;
}

.page-agenda .agenda-create-notes-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: var(--agenda-accent-soft);
    color: var(--agenda-accent);
}

.page-agenda .agenda-create-notes-copy {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.page-agenda .agenda-create-notes-copy strong {
    font-size: 14px;
}

.page-agenda .agenda-create-notes-copy strong small {
    color: var(--agenda-muted);
    font-size: 11px;
    font-weight: 650;
}

.page-agenda .agenda-create-notes-copy em {
    overflow: hidden;
    color: var(--agenda-muted);
    font-size: 11px;
    font-style: normal;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.page-agenda .agenda-create-notes-chevron {
    color: #667085;
    transition: transform .16s ease;
}

.page-agenda .agenda-create-notes[open] .agenda-create-notes-chevron {
    transform: rotate(90deg);
}

.page-agenda .agenda-create-notes-fields {
    padding: 15px 17px 17px;
    border-top: 1px solid #eceef3;
    background: #fbfbfd;
}

.page-agenda .agenda-create-notes-fields .field {
    margin-bottom: 0;
}

.page-agenda .agenda-create-notes .field + .field {
    margin-top: 12px;
}

.page-agenda .agenda-create-checking {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 10px;
    color: #737c90;
    font-size: 12px;
}

.page-agenda .agenda-create-checking span {
    width: 16px;
    height: 16px;
    border: 2px solid #dedaff;
    border-top-color: var(--agenda-accent);
    border-radius: 50%;
    animation: agenda-create-spin .7s linear infinite;
}

.page-agenda .agenda-create-warning {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 11px;
    padding: 14px;
    border: 1px solid #fedf89;
    border-radius: 13px;
    background: #fffaeb;
    color: #93370d;
}

.page-agenda .agenda-create-warning > i {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: #fef0c7;
    color: #dc6803;
}

.page-agenda .agenda-create-warning > div {
    display: grid;
    gap: 4px;
}

.page-agenda .agenda-create-warning strong {
    font-size: 13px;
}

.page-agenda .agenda-create-warning p {
    margin: 0;
    color: #b54708;
    font-size: 12px;
    line-height: 1.45;
}

.page-agenda .agenda-create-warning label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 5px;
    color: #7a2e0e;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.page-agenda .agenda-create-warning input {
    margin-top: 2px;
    accent-color: #dc6803;
}

.page-agenda .agenda-create-warning-overlap {
    border-color: #c7d7fe;
    background: #f5f8ff;
    color: #243b78;
}

.page-agenda .agenda-create-warning-overlap > i {
    background: #e7edff;
    color: #4169d8;
}

.page-agenda .agenda-create-warning-overlap p,
.page-agenda .agenda-create-warning-overlap label {
    color: #3653a5;
}

.page-agenda .agenda-create-warning-overlap input {
    accent-color: #4169d8;
}

.page-agenda .agenda-create-error {
    margin: 0;
    border: 1px solid #fecdca;
    border-radius: 11px;
}

.page-agenda .agenda-create-footer {
    min-height: 78px;
    justify-content: space-between;
    padding: 13px 26px;
}

.page-agenda .agenda-create-footer-summary {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.page-agenda .agenda-create-footer-summary span {
    overflow: hidden;
    color: var(--agenda-muted);
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.page-agenda .agenda-create-footer-summary strong {
    color: var(--agenda-ink);
    font-size: 17px;
}

.page-agenda .agenda-create-footer .btn {
    min-height: 46px;
    flex: 0 0 auto;
    margin-left: 12px;
    border-color: var(--agenda-accent);
    background: var(--agenda-accent);
}

.page-agenda .agenda-create-footer .btn.is-loading {
    opacity: .72;
    cursor: wait;
}

.page-agenda .agenda-quick-customer-dialog .field {
    display: grid;
    gap: 6px;
    color: #4f586b;
    font-size: 12px;
    font-weight: 800;
}

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

/* Nieuwe afspraak: gecentreerde modal volgens de agenda-referentie. */
.page-agenda .agenda-create-modal {
    width: min(1230px, calc(100vw - 48px));
    max-width: none;
    height: min(1035px, calc(100dvh - 48px));
    max-height: none;
    margin: auto;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(224, 227, 237, .92);
    border-radius: 20px;
    background: #fff;
    color: var(--agenda-ink);
    box-shadow: 0 30px 90px rgba(24, 32, 57, .26);
}

.page-agenda .agenda-create-modal::backdrop {
    background: rgba(55, 66, 94, .44);
    backdrop-filter: blur(7px);
}

.page-agenda .agenda-create-modal-shell {
    width: 100%;
    height: 100%;
    min-height: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    background: #fff;
}

.page-agenda .agenda-create-header {
    min-height: 108px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding: 28px 32px 19px;
    border: 0;
    background: #fff;
}

.page-agenda .agenda-create-header h2 {
    margin: 0 0 5px;
    color: #10162f;
    font-size: 27px;
    font-weight: 850;
    letter-spacing: -.035em;
    line-height: 1.12;
}

.page-agenda .agenda-create-header p {
    margin: 0;
    color: #657198;
    font-size: 13px;
    line-height: 1.45;
}

.page-agenda .agenda-create-header .icon-button {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    flex: 0 0 44px;
    padding: 0;
    border: 1px solid #e0e4ed;
    border-radius: 12px;
    background: #fff;
    color: #46526f;
    box-shadow: 0 3px 10px rgba(32, 40, 66, .035);
}

.page-agenda .agenda-create-modal-body {
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 350px;
    gap: 25px;
    overflow: hidden;
    padding: 0 27px 0 31px;
}

.page-agenda .agenda-create-content {
    min-height: 0;
    display: grid;
    align-content: start;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0 5px 26px 1px;
    background: #fff;
    scrollbar-width: thin;
    scrollbar-color: #d8dcea transparent;
}

.page-agenda .agenda-create-section,
.page-agenda .agenda-create-notes {
    padding: 18px 19px;
    border: 0;
    border-bottom: 1px solid #e4e7f0;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
}

.page-agenda .agenda-create-section-heading {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 15px;
    margin-bottom: 15px;
}

.page-agenda .agenda-create-section-heading-action {
    grid-template-columns: 46px minmax(0, 1fr) auto;
}

.page-agenda .agenda-create-section-heading > span,
.page-agenda .agenda-create-moment-section .agenda-create-section-heading > span {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: #f0efff;
    color: #5644ef;
    font-size: 18px;
}

.page-agenda .agenda-create-section-heading h3,
.page-agenda .agenda-create-moment-section .agenda-create-section-heading h3 {
    margin-bottom: 3px;
    font-size: 16px;
}

.page-agenda .agenda-create-section-heading p,
.page-agenda .agenda-create-moment-section .agenda-create-section-heading p {
    color: #6d7898;
    font-size: 12px;
}

.page-agenda .agenda-create-section-heading .text-button {
    min-height: 45px;
    padding: 0 18px;
    border: 1px solid #9b91ff;
    border-radius: 12px;
    background: #fff;
    color: #5140eb;
    font-size: 12px;
    font-weight: 800;
}

.page-agenda .agenda-create-moment-section {
    padding: 18px 19px;
}

.page-agenda .agenda-create-moment-section .agenda-create-section-heading {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 15px;
    margin-bottom: 15px;
}

.page-agenda .agenda-create-moment-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.page-agenda .agenda-create-moment-section .field,
.page-agenda .agenda-create-form .field {
    gap: 7px;
    color: #52607e;
    font-size: 12px;
    font-weight: 750;
}

.page-agenda .agenda-create-input-control {
    position: relative;
    display: block;
    min-width: 0;
}

.page-agenda .agenda-create-input-control .input,
.page-agenda .agenda-create-moment-section .agenda-create-input-control .input {
    min-height: 54px;
    padding-right: 42px;
    padding-left: 48px;
    border-color: #d9deea;
    border-radius: 12px;
    background: #fff;
    color: #17203b;
    font-size: 14px;
    font-weight: 650;
}

.page-agenda .agenda-create-input-icon,
.page-agenda .agenda-create-input-chevron {
    position: absolute;
    z-index: 2;
    top: 50%;
    display: grid;
    place-items: center;
    color: #64708e;
    pointer-events: none;
    transform: translateY(-50%);
}

.page-agenda .agenda-create-input-icon {
    left: 18px;
}

.page-agenda .agenda-create-input-chevron {
    right: 17px;
    font-size: 11px;
}

.page-agenda .agenda-time-picker-toggle {
    right: 7px;
    width: 38px;
    height: 38px;
    color: #293650;
}

.page-agenda .agenda-time-picker-toggle svg {
    width: 12px;
    height: 12px;
}

.page-agenda .agenda-create-repeat-section {
    padding: 0;
    overflow: visible;
}

.page-agenda .agenda-repeat-toggle {
    min-height: 78px;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    gap: 15px;
    padding: 16px 19px;
}

.page-agenda .agenda-repeat-toggle-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: #f0efff;
    color: #5644ef;
    font-size: 17px;
}

.page-agenda .agenda-repeat-toggle strong {
    font-size: 16px;
}

.page-agenda .agenda-repeat-toggle small {
    color: #6d7898;
    font-size: 12px;
}

.page-agenda .agenda-repeat-switch {
    width: 48px;
    height: 26px;
    margin-right: 8px;
}

.page-agenda .agenda-repeat-switch::after {
    width: 20px;
    height: 20px;
}

.page-agenda .agenda-repeat-toggle:has(input:checked) .agenda-repeat-switch::after {
    transform: translateX(22px);
}

.page-agenda .agenda-create-services-section {
    padding-bottom: 16px;
}

.page-agenda .agenda-create-fields {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding: 13px 14px 14px;
    border-radius: 14px;
    background: #f8f8ff;
}

.page-agenda .agenda-create-services {
    gap: 9px;
}

.page-agenda .agenda-create-service-row,
.page-agenda .agenda-create-service-row.is-editing {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.page-agenda .agenda-create-service-editor {
    padding: 0;
    border: 0;
    background: transparent;
}

.page-agenda .agenda-create-service-editor-grid {
    grid-template-columns: minmax(0, 1.16fr) 120px minmax(0, 1.15fr);
    gap: 12px;
    padding: 0 54px 0 0;
}

.page-agenda .agenda-create-service-editor .field > span:first-child {
    color: #586582;
    font-size: 10px;
    letter-spacing: 0;
    text-transform: none;
}

.page-agenda .agenda-create-service-editor .input {
    min-height: 50px;
    border-color: #d9deea;
    border-radius: 11px;
    background-color: #fff;
    font-size: 12px;
}

.page-agenda .agenda-create-service-remove {
    top: auto;
    right: 0;
    bottom: 0;
    width: 44px;
    height: 50px;
    border-radius: 11px;
    background: #fff0f1;
    color: #ef2029;
}

.page-agenda .agenda-create-service-grip {
    display: none;
}

.page-agenda .agenda-add-service {
    width: 100%;
    min-height: 48px;
    justify-self: stretch;
    padding: 0 14px;
    border: 0;
    border-radius: 11px;
    background: #efedff;
    color: #5140eb;
    font-size: 12px;
}

.page-agenda .agenda-add-service:hover {
    background: #e7e3ff;
}

.page-agenda .agenda-create-notes {
    overflow: visible;
    padding: 18px 19px;
}

.page-agenda .agenda-create-notes summary {
    min-height: 46px;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 15px;
    padding: 0;
    cursor: default;
}

.page-agenda .agenda-create-notes-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
}

.page-agenda .agenda-create-notes-copy strong {
    font-size: 16px;
}

.page-agenda .agenda-create-notes-copy em {
    color: #6d7898;
    font-size: 12px;
}

.page-agenda .agenda-create-notes-fields {
    padding: 14px 0 0;
    border: 0;
    background: transparent;
}

.page-agenda .agenda-create-notes-fields .field {
    position: relative;
}

.page-agenda .agenda-create-notes .textarea {
    min-height: 62px;
    padding: 14px 16px 24px;
    resize: vertical;
}

.page-agenda .agenda-create-note-counter {
    position: absolute;
    right: 13px;
    bottom: 8px;
    color: #75809d;
    font-size: 10px;
    font-weight: 500;
}

.page-agenda .agenda-create-summary-card {
    min-height: 0;
    align-self: stretch;
    overflow-y: auto;
    padding: 28px 22px;
    border-radius: 15px;
    background: linear-gradient(155deg, #f9f8ff 0%, #f5f5ff 100%);
    color: #11182f;
}

.page-agenda .agenda-create-summary-card > header h3 {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 850;
}

.page-agenda .agenda-create-summary-card > header p {
    margin: 0;
    color: #697596;
    font-size: 12px;
}

.page-agenda .agenda-create-summary-list {
    display: grid;
    gap: 16px;
    margin-top: 25px;
}

.page-agenda .agenda-create-summary-item {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: center;
    gap: 13px;
}

.page-agenda .agenda-create-summary-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #eff0f8;
    color: #55617d;
}

.page-agenda .agenda-create-summary-item > span:nth-child(2) {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.page-agenda .agenda-create-summary-item strong {
    font-size: 12px;
    font-weight: 850;
}

.page-agenda .agenda-create-summary-item small {
    overflow: hidden;
    color: #687595;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.page-agenda .agenda-create-summary-item > i {
    color: #4d5873;
    font-size: 13px;
    font-style: normal;
}

.page-agenda .agenda-create-summary-totals {
    display: grid;
    gap: 18px;
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid #dde1eb;
}

.page-agenda .agenda-create-summary-totals > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.page-agenda .agenda-create-summary-totals span {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    color: #596581;
    font-size: 12px;
    font-weight: 750;
}

.page-agenda .agenda-create-summary-totals span > i {
    width: 18px;
    color: #667390;
    font-size: 16px;
    text-align: center;
}

.page-agenda .agenda-create-summary-totals strong {
    color: #11182f;
    font-size: 14px;
    font-weight: 850;
}

.page-agenda .agenda-create-summary-hint {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 10px;
    margin: 28px 0 0;
    padding: 12px 14px;
    border-radius: 11px;
    background: #e9e7ff;
    color: #5a47f0;
    font-size: 10px;
    line-height: 1.4;
}

.page-agenda .agenda-create-summary-hint > i {
    margin-top: 1px;
    font-size: 15px;
}

.page-agenda .agenda-create-summary-hint.is-ready {
    background: #eaf9f1;
    color: #16815c;
}

.page-agenda .agenda-create-footer {
    min-height: 78px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 28px;
    border-top: 1px solid #e8eaf0;
    background: #fff;
}

.page-agenda .agenda-create-footer .btn {
    min-height: 50px;
    margin-left: 0;
    padding: 0 22px;
    border-radius: 12px;
    font-size: 13px;
}

.page-agenda .agenda-create-footer .btn-primary {
    min-width: 218px;
    margin-left: auto;
    border-color: #5641ee;
    background: #5641ee;
    box-shadow: 0 9px 22px rgba(86, 65, 238, .23);
}

.page-agenda .agenda-create-footer .btn-secondary {
    border-color: #dfe3ec;
    background: #fff;
    color: #45516c;
    box-shadow: none;
}

.page-agenda [data-create-row-employee-avatar].is-placeholder {
    background: #fff;
    color: #64708e;
}

.page-agenda [data-create-row-employee-avatar].is-placeholder::before {
    content: "\f007";
    font-family: "Font Awesome 6 Free";
    font-size: 12px;
    font-weight: 900;
}

@media (max-width: 700px) {
    .page-agenda .agenda-create-drawer {
        top: 0;
        height: 100%;
        border-radius: 0;
    }

    .page-agenda .agenda-create-header,
    .page-agenda .agenda-create-content,
    .page-agenda .agenda-create-footer {
        padding-right: 16px;
        padding-left: 16px;
    }

    .page-agenda .agenda-create-header p {
        display: none;
    }

    .page-agenda .agenda-create-content {
        padding-top: 13px;
        padding-bottom: 18px;
    }

    .page-agenda .agenda-create-section,
    .page-agenda .agenda-create-notes {
        padding-right: 14px;
        padding-left: 14px;
        border-radius: 0;
    }

    .page-agenda .agenda-create-repeat-section {
        padding: 0;
    }

    .page-agenda .agenda-create-fields,
    .page-agenda .agenda-repeat-grid,
    .page-agenda .agenda-repeat-ending {
        grid-template-columns: 1fr;
    }

    .page-agenda .agenda-create-moment-grid {
        grid-template-columns: minmax(0, 1fr) minmax(108px, .5fr);
    }

    .page-agenda .agenda-create-moment-section {
        padding: 13px;
    }

    .page-agenda .agenda-create-service-card-summary {
        grid-template-columns: minmax(0, 1fr) auto 32px;
        gap: 7px 10px;
    }

    .page-agenda .agenda-create-service-card-summary > strong {
        grid-column: 1;
        grid-row: 1;
    }

    .page-agenda .agenda-create-service-card-summary > [data-create-service-card-duration] {
        grid-column: 2;
        grid-row: 1;
    }

    .page-agenda .agenda-create-service-card-employee {
        grid-column: 1 / 3;
        grid-row: 2;
    }

    .page-agenda .agenda-create-service-edit {
        grid-column: 3;
        grid-row: 1 / 3;
    }

    .page-agenda .agenda-create-service-editor-grid {
        grid-template-columns: minmax(0, 1fr) 86px;
    }

    .page-agenda .agenda-create-service-employee-field {
        grid-column: 1 / -1;
    }

    .page-agenda .agenda-repeat-weekday-options {
        grid-template-columns: repeat(7, minmax(31px, 1fr));
        gap: 4px;
    }

    .page-agenda .agenda-repeat-weekdays span {
        min-height: 38px;
        border-radius: 9px;
        font-size: 10px;
    }

    .page-agenda .agenda-create-section-heading-action {
        grid-template-columns: 36px minmax(0, 1fr);
    }

    .page-agenda .agenda-create-section-heading-action .text-button {
        grid-column: 2;
        justify-self: start;
    }

    .page-agenda .agenda-create-footer {
        min-height: 70px;
        overflow: visible;
    }

    .page-agenda .agenda-create-footer .btn {
        min-width: 180px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .page-agenda .agenda-create-checking span,
    .page-agenda .agenda-time-picker-popover {
        animation: none;
    }
}

.page-agenda .agenda-create-input-control input[type="date"]::-webkit-calendar-picker-indicator {
    position: absolute;
    inset: 0;
    width: auto;
    height: auto;
    cursor: pointer;
    opacity: 0;
}

@media (max-width: 980px) {
    .page-agenda .agenda-create-modal {
        width: min(820px, calc(100vw - 32px));
        height: min(960px, calc(100dvh - 32px));
    }

    .page-agenda .agenda-create-modal-body {
        display: block;
        overflow-y: auto;
        padding: 0 22px 24px;
    }

    .page-agenda .agenda-create-content {
        overflow: visible;
        padding-right: 0;
    }

    .page-agenda .agenda-create-summary-card {
        min-height: auto;
        margin-top: 18px;
    }

    .page-agenda .agenda-create-summary-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .page-agenda .agenda-create-modal {
        width: calc(100vw - 16px);
        height: calc(100dvh - 16px);
        border-radius: 16px;
    }

    .page-agenda .agenda-create-header {
        min-height: 92px;
        padding: 21px 18px 15px;
    }

    .page-agenda .agenda-create-header h2 {
        font-size: 23px;
    }

    .page-agenda .agenda-create-header p {
        display: block;
    }

    .page-agenda .agenda-create-modal-body {
        padding: 0 15px 20px;
    }

    .page-agenda .agenda-create-content {
        padding: 0 0 18px;
    }

    .page-agenda .agenda-create-section,
    .page-agenda .agenda-create-notes,
    .page-agenda .agenda-create-moment-section {
        padding: 15px;
        border-radius: 0;
    }

    .page-agenda .agenda-create-repeat-section {
        padding: 0;
    }

    .page-agenda .agenda-create-moment-grid,
    .page-agenda .agenda-create-service-editor-grid {
        grid-template-columns: 1fr;
    }

    .page-agenda .agenda-create-service-editor-grid {
        padding-right: 0;
        padding-bottom: 58px;
    }

    .page-agenda .agenda-create-service-employee-field {
        grid-column: auto;
    }

    .page-agenda .agenda-create-service-remove {
        right: 0;
        bottom: 0;
        width: 100%;
        height: 46px;
    }

    .page-agenda .agenda-create-summary-list {
        grid-template-columns: 1fr;
    }

    .page-agenda .agenda-create-footer {
        min-height: 74px;
        flex-direction: row;
        padding: 11px 15px;
    }

    .page-agenda .agenda-create-footer .btn {
        width: auto;
        min-width: 0;
    }

    .page-agenda .agenda-create-footer .btn-primary {
        min-width: 0;
    }
}
