.helpdesk-werkruimte {
    display: grid;
    min-height: 560px;
    grid-template-columns: minmax(720px, 1fr) minmax(300px, 380px);
    border-top: 1px solid var(--lijn);
    background: #fff;
}

.helpdesk-lijst { min-width: 0; padding: 20px 18px; overflow: hidden; }
.helpdesk-lijst > header { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 16px; }
.helpdesk-lijst > header h2, .helpdesk-lijst > header p { margin-bottom: 4px; }
.helpdesk-lijst > header p { max-width: 680px; color: var(--subtiel); line-height: 1.45; }
.helpdesk-zoeken { display: grid; min-width: min(420px, 42%); grid-template-columns: minmax(240px, 1fr) auto; align-items: end; gap: 8px; }
.helpdesk-raster-omhulsel { width: 100%; overflow: auto; border: 1px solid var(--lijn); }
.helpdesk-raster { min-width: 1030px; }
.helpdesk-raster th { position: sticky; z-index: 1; top: 0; background: #f5f5f5; }
.helpdesk-raster th, .helpdesk-raster td { border-right: 1px solid #dedede; }
.helpdesk-raster th:last-child, .helpdesk-raster td:last-child { border-right: 0; }
.helpdesk-raster td:first-child { min-width: 210px; }
.helpdesk-raster td:first-child strong, .helpdesk-raster td:first-child small { display: block; }
.helpdesk-raster td:first-child small { margin-top: 2px; color: var(--subtiel); }
.helpdesk-raster .helpdesk-rij.actief { background: #e8f3ee; box-shadow: inset 3px 0 var(--primair); }
.helpdesk-paginering { display: flex; min-height: 44px; align-items: center; justify-content: space-between; gap: 16px; color: var(--subtiel); }
.helpdesk-paginering > div { display: flex; gap: 4px; }

.helpdesk-details { min-width: 0; border-left: 1px solid var(--lijn); background: #fafafa; }
.helpdesk-details > header, .helpdesk-details > section, .helpdesk-details-leeg { padding: 18px 20px; border-bottom: 1px solid var(--lijn); }
.helpdesk-details > header small { color: var(--primair); font-size: 11px; font-weight: 700; }
.helpdesk-details > header h2 { margin: 4px 0 6px; font-size: 18px; }
.helpdesk-details > header p, .helpdesk-details-leeg p, .helpdesk-toegang p { color: var(--subtiel); line-height: 1.45; }
.helpdesk-detailacties { display: flex; flex-wrap: wrap; gap: 8px; }
.helpdesk-detailslijst { display: grid; margin: 0; padding: 0; list-style: none; }
.helpdesk-detailslijst li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 10px 0; border-top: 1px solid #e3e3e3; }
.helpdesk-detailslijst li > div { min-width: 0; }
.helpdesk-detailslijst li > div:last-child { text-align: right; }
.helpdesk-detailslijst strong, .helpdesk-detailslijst span, .helpdesk-detailslijst small { display: block; overflow: hidden; text-overflow: ellipsis; }
.helpdesk-detailslijst span, .helpdesk-detailslijst small { color: var(--subtiel); font-size: 12px; }

.tijdelijke-rol-banner {
    display: flex;
    min-height: 46px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid #e0b23f;
    padding: 7px 14px;
    color: #4d3a00;
    background: #fff4ce;
}
.tijdelijke-rol-banner > div:first-child { min-width: 0; }
.tijdelijke-rol-banner strong, .tijdelijke-rol-banner span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tijdelijke-rol-banner span { margin-top: 1px; color: #6b5700; font-size: 12px; }
.tijdelijke-rol-banner-acties { display: flex; flex: 0 0 auto; gap: 4px; }
.tijdelijke-rol-banner fluent-button::part(control) { color: #4d3a00; }

.rolkeuze { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 22px 0 0; padding: 0; border: 0; }
.rolkeuze legend { grid-column: 1 / -1; margin-bottom: 5px; font-size: 12px; font-weight: 650; }
.rolkeuze button { min-height: 68px; border: 1px solid #bdbdbd; border-radius: 4px; padding: 10px 12px; color: var(--inkt); background: #fff; text-align: left; cursor: pointer; }
.rolkeuze button:hover { border-color: #737373; background: #f7f7f7; }
.rolkeuze button.actief { border: 2px solid #0f6cbd; padding: 9px 11px; background: #eff6fc; }
.rolkeuze strong, .rolkeuze span { display: block; }
.rolkeuze span { margin-top: 3px; color: var(--subtiel); font-size: 12px; }
.rolkeuze-uitleg { margin: 8px 0 18px; color: var(--subtiel); line-height: 1.45; }
.tijdelijke-rol-reden textarea { min-height: 88px; resize: vertical; border: 1px solid #8a8886; border-radius: 3px; padding: 8px; font: inherit; line-height: 1.4; }
.tijdelijke-rol-reden small { color: var(--subtiel); }
.tijdelijke-rol-dialoog .select-veld { margin-top: 14px; }

@media (max-width: 1050px) {
    .helpdesk-werkruimte { grid-template-columns: 1fr; }
    .helpdesk-details { border-top: 1px solid var(--lijn); border-left: 0; }
}

@media (max-width: 700px) {
    .helpdesk-lijst { padding: 14px 10px; }
    .helpdesk-lijst > header { align-items: stretch; flex-direction: column; gap: 10px; }
    .helpdesk-zoeken { min-width: 0; grid-template-columns: 1fr auto; }
    .tijdelijke-rol-banner { align-items: stretch; flex-direction: column; gap: 4px; }
    .tijdelijke-rol-banner strong, .tijdelijke-rol-banner span { white-space: normal; }
    .tijdelijke-rol-banner-acties { justify-content: flex-end; }
    .rolkeuze { grid-template-columns: 1fr; }
}
