.user-avatar {
    border: 1px solid rgba(236, 240, 241, .1);
    border-radius: 6px;
    height: 25px;
    width: 25px;
    overflow: hidden;
    vertical-align: middle;
}
.user-avatar.user-avatar-lg {
    border-radius: 9px;
    height: 36px;
    width: 34px;
}
.list-group-activity .h6 {
    margin: 0;
}
.list-group-item {
    position: relative;
    display: block;
    padding: 0.75rem 1.25rem;
    background-color: #fff;
    border: 1px solid #dee2e6;
}
.list-group-activity .avatars {
    list-style: none;
    margin-right: 0.75rem;
    display: flex;
    align-items: center;
}
.list-group-activity .h6 {
    margin: 0;
}
.list-group-activity span {
    margin-right: 0.25rem;
}

.content-list-pagination {
    margin-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.crm-checkbox {
    cursor: pointer;
    border: 1px solid;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border-width: 1px;

}

/* Inline icoontjes in de takenregel */
.task-icon {
    display: inline-block;
    line-height: 0;
    vertical-align: middle;
    margin-left: 0.25rem;
    color: #64748b;
}
.task-icon svg { width: 13px; height: 13px; fill: currentColor; display: inline-block; }
.task-icon--urgent { color: #dc2626; }

/* Lijst/Kalender weergave-schakelaar + bovenbalk */
.crm-tasks-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    padding: 0 20px;
}
.crm-view-switch { flex: 0 0 auto; }

/* FullCalendar: event-inhoud met medewerkernaam */
.fc-event { color: #fff; }
.fc-ev { line-height: 1.25; overflow: hidden; padding: 1px 2px; }
.fc-ev-urgent {
    display: inline-block;
    background: #dc2626;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    padding: 0 4px;
    border-radius: 3px;
    margin-right: 4px;
    vertical-align: middle;
}
.fc-ev-time { font-weight: 600; opacity: .9; margin-right: 3px; }
.fc-ev-title { font-weight: 600; }
.fc-ev-who {
    display: block;
    font-size: 11px;
    opacity: .92;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.fc .fc-daygrid-event { white-space: normal; }
.fc-event { cursor: pointer; }
/* Ruimte tussen items in maandweergave */
.fc .fc-daygrid-event-harness { margin-bottom: 3px; }
.fc .fc-daygrid-event { padding: 1px 4px; border-radius: 4px; }
.fc .fc-daygrid-day-events { margin-top: 2px; }
/* Afgeronde taken: gedimd + doorgestreept */
.crm-ev-done { opacity: .55; }
.crm-ev-done .fc-ev-title { text-decoration: line-through; }

/* ===== Taken kalender ===== */
.crm-cal { --cal-border: #e6e9ef; --cal-muted: #8a93a2; color: #2b3340; }
/* Ruimte links/rechts op de Taken-pagina (niet in het dashboard-widget) */
#tasksCalendarView { padding: 0 20px; }
.crm-cal__bar {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.crm-cal__title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    flex: 1 1 auto;
    text-align: center;
}
.crm-cal__nav { display: flex; gap: 4px; }
.crm-cal__nav .btn { min-width: 34px; }
.crm-cal__right { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.crm-cal__views { flex: 0 0 auto; }

/* Filters-dropdown */
.crm-cal__filter { position: relative; display: inline-block; }
.crm-cal__filter > summary { list-style: none; cursor: pointer; }
.crm-cal__filter > summary::-webkit-details-marker { display: none; }
.crm-cal__badge {
    display: inline-block; background: #2563eb; color: #fff;
    border-radius: 10px; padding: 0 6px; font-size: 11px; line-height: 16px;
}
.crm-cal__filter-panel {
    position: absolute; right: 0; z-index: 30; margin-top: 4px;
    background: #fff; border: 1px solid var(--cal-border); border-radius: 8px;
    box-shadow: 0 8px 24px rgba(16, 24, 40, .14); padding: 12px; width: 300px;
}
.crm-cal__filter-title {
    font-size: 11px; text-transform: uppercase; letter-spacing: .04em;
    color: var(--cal-muted); margin: 2px 2px 6px;
}
.crm-cal__filter-head { display: flex; align-items: center; justify-content: space-between; margin: 2px 2px 4px; }
.crm-cal__filter-actions a { font-size: 12px; margin-left: 10px; }
.crm-cal__search { margin-bottom: 8px; }
.crm-cal__userlist { max-height: 340px; overflow-y: auto; padding-right: 2px; }
.crm-cal__userlist .crm-cal__opt { padding: 5px 4px; border-radius: 5px; }
.crm-cal__userlist .crm-cal__opt:hover { background: #f3f4f6; }
.crm-cal__opt {
    display: flex; align-items: center; gap: 7px;
    padding: 4px 2px; margin: 0; cursor: pointer; font-size: 13px; font-weight: 500;
}
.crm-cal__opt input { margin: 0; cursor: pointer; }
.crm-cal__opt--head { border-bottom: 1px solid var(--cal-border); margin-bottom: 6px; padding-bottom: 8px; }
.crm-cal__dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: 0 0 auto; }
.crm-cal__user-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.crm-cal__grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: var(--cal-border);
    border: 1px solid var(--cal-border);
    border-radius: 10px;
    overflow: hidden;
}
.crm-cal__weekday {
    background: #f6f7f9;
    padding: 9px 10px;
    font-weight: 600;
    font-size: 12px;
    color: var(--cal-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.crm-cal__weekday-short { display: none; }
.crm-cal__day {
    background: #fff;
    padding: 5px 6px 7px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.crm-cal--month .crm-cal__day { min-height: 116px; }
.crm-cal--week .crm-cal__day { min-height: 340px; }
.crm-cal__day.is-outside { background: #fafbfc; }
.crm-cal__day.is-outside .crm-cal__daynum { color: #c4cad3; }
.crm-cal__day.is-today { background: #f0f6ff; }
.crm-cal__dayhead { display: flex; align-items: center; justify-content: space-between; }
.crm-cal__daynum {
    font-weight: 600;
    font-size: 13px;
    color: #566070;
    min-width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
}
.crm-cal__day.is-today .crm-cal__daynum {
    background: #2563eb;
    color: #fff;
    border-radius: 50%;
}
.crm-cal__add {
    color: var(--cal-muted); text-decoration: none; font-weight: 700;
    font-size: 16px; line-height: 1; opacity: 0; padding: 1px 6px; border-radius: 4px;
    transition: opacity .12s ease, background .12s ease;
}
.crm-cal__day:hover .crm-cal__add { opacity: 1; }
.crm-cal__add:hover { background: #e6eefc; color: #2563eb; }
.crm-cal__events { display: flex; flex-direction: column; gap: 3px; }
.crm-cal__event {
    display: block;
    border-left: 3px solid #94a3b8;
    background: #f7f8fa;
    border-radius: 4px;
    padding: 3px 7px;
    text-decoration: none;
    color: #2b3340;
    line-height: 1.3;
    transition: background .12s ease;
}
.crm-cal__event:hover { background: #eef1f6; color: #2b3340; }
.crm-cal__event.is-urgent { background: #fff1f1; }
.crm-cal__time { font-size: 11px; font-weight: 600; opacity: .75; display: block; }
.crm-cal__name {
    font-size: 12.5px;
    font-weight: 500;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.crm-cal__assignee {
    font-size: 11px;
    font-weight: 600;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.crm-cal__urgent {
    display: inline-block;
    width: 14px; height: 14px;
    line-height: 14px;
    text-align: center;
    border-radius: 50%;
    background: #dc2626;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    float: right;
    margin-left: 4px;
}
.crm-cal__grid--5 { grid-template-columns: repeat(5, 1fr); }

/* Week-/dag uurrooster */
.crm-tg {
    border: 1px solid var(--cal-border);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}
.crm-tg__row {
    display: grid;
    grid-template-columns: 64px repeat(var(--cols), 1fr);
    border-top: 1px solid #eef0f3;
}
.crm-tg__head { background: #f6f7f9; border-top: 0; position: sticky; top: 0; z-index: 2; }
.crm-tg__hour {
    padding: 6px 8px;
    font-size: 11px;
    color: var(--cal-muted);
    text-align: right;
    background: #fafbfc;
    border-right: 1px solid #eef0f3;
}
.crm-tg__dayhead {
    padding: 8px 10px;
    font-weight: 600;
    font-size: 12.5px;
    border-right: 1px solid #eef0f3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}
.crm-tg__dayhead.is-today { background: #eef5ff; color: #2563eb; }
.crm-tg__cell {
    padding: 3px 4px;
    border-right: 1px solid #f3f4f6;
    min-height: 42px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.crm-tg__dayhead:last-child, .crm-tg__cell:last-child { border-right: 0; }

/* Week per medewerker (resource) */
#tasksResourceView { padding: 0 20px; }
.crm-res__grid { border: 1px solid #e6e9ef; border-radius: 10px; overflow-x: auto; background: #fff; }
/* minmax(.,1fr): alle dag-kolommen exact gelijk; lange taaknamen rekken niet meer op */
.crm-res__row { display: grid; grid-template-columns: 170px repeat(var(--cols), minmax(120px, 1fr)); border-top: 1px solid #eef0f3; }
.crm-res__head { background: #f6f7f9; border-top: 0; font-weight: 600; font-size: 12px; color: #8a93a2; }
.crm-res__name {
    padding: 8px 10px; border-right: 1px solid #eef0f3;
    display: flex; align-items: center; gap: 7px; font-weight: 600; font-size: 13px;
    position: sticky; left: 0; z-index: 2; background: #fff;
}
.crm-res__head .crm-res__name { background: #f6f7f9; }
.crm-res__name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crm-res__daycol { padding: 8px; text-align: center; border-right: 1px solid #eef0f3; }
.crm-res__daycol.is-today, .crm-res__cell.is-today { background: rgba(52, 152, 219, .1); }
.crm-res__cell { padding: 4px; border-right: 1px solid #f3f4f6; min-height: 44px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.crm-res__daycol:last-child, .crm-res__cell:last-child { border-right: 0; }
.crm-res__task { color: #fff; border-radius: 4px; padding: 2px 6px; font-size: 12px; line-height: 1.3; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crm-res__task.is-done { opacity: .55; text-decoration: line-through; }

@media (max-width: 760px) {
    .crm-cal__weekday-full { display: none; }
    .crm-cal__weekday-short { display: inline; }
    .crm-cal__title { order: -1; flex-basis: 100%; }
}

/* ===== Uniforme kalender-UI (FullCalendar in backend-stijl) ===== */
/* Header op één regel */
.fc .fc-header-toolbar.fc-toolbar { flex-wrap: nowrap; gap: 12px; align-items: center; }
.fc .fc-toolbar-chunk { display: flex; align-items: center; gap: 8px; }
.fc .fc-toolbar-title { font-size: 18px; font-weight: 600; white-space: nowrap; }

/* FullCalendar-knoppen als October-knoppen, groter */
.fc .fc-button {
    background: #fff;
    border: 1px solid var(--bs-border-color, #c4ced7);
    color: #3a4250;
    box-shadow: none;
    text-transform: none;
    font-weight: 500;
    padding: 8px 16px;
    font-size: 14px;
    line-height: 1.2;
    border-radius: 6px;
}
.fc .fc-button .fc-icon { font-size: 1.3em; vertical-align: -2px; }
.fc .fc-button:hover { background: #f1f3f6; color: #1f2733; border-color: var(--bs-border-color, #c4ced7); }
.fc .fc-button-primary:not(:disabled).fc-button-active,
.fc .fc-button-primary:not(:disabled):active {
    background: var(--bs-primary, #3498db);
    border-color: var(--bs-primary, #3498db);
    color: #fff;
}
.fc .fc-button:focus, .fc .fc-button-primary:focus,
.fc .fc-button-primary:not(:disabled):active:focus,
.fc .fc-button-primary:not(:disabled).fc-button-active:focus { box-shadow: none; outline: none; }
.fc .fc-button-primary:disabled { opacity: .5; background: #fff; color: #3a4250; border-color: #e2e5ea; }
/* Segmented button-group: gedeelde randen */
.fc .fc-button-group > .fc-button { border-radius: 0; }
.fc .fc-button-group > .fc-button:first-child { border-radius: 6px 0 0 6px; }
.fc .fc-button-group > .fc-button:last-child { border-radius: 0 6px 6px 0; }
.fc .fc-button-group > .fc-button:not(:first-child) { border-left: 0; }

/* Lijst/Kalender/Per-medewerker schakelaar groter */
.crm-view-switch .btn { padding: 8px 16px; font-size: 14px; }

/* Uniforme accentkleur (zelfde als de backend) */
.crm-cal__badge { background: var(--bs-primary, #3498db); }
.crm-cal__day.is-today .crm-cal__daynum { background: var(--bs-primary, #3498db); }
.crm-res__daycol.is-today, .crm-res__cell.is-today { background: rgba(52, 152, 219, .1); }
.crm-cal__filter-foot { border-top: 1px solid #eef0f3; margin-top: 8px; padding-top: 8px; text-align: center; }
.crm-cal__filter-foot a { font-size: 12px; }

/* Navigatieknoppen (per-medewerker + dashboard-widget) gelijk aan FullCalendar */
.crm-cal__nav .btn {
    padding: 8px 16px;
    font-size: 14px;
    line-height: 1.2;
    min-width: 42px;
    border-color: var(--bs-border-color, #c4ced7);
}
.crm-cal__nav .btn:hover { background: #f1f3f6; }

.crm-cal__nav .crm-cal__today { margin-left: 6px; }
