.bijlage-laag {
    position: fixed;
    inset: 0;
    z-index: 1600;
    display: flex;
    justify-content: flex-end;
    background: rgb(18 24 21 / 36%);
}

.bijlage-paneel {
    width: min(460px, 100vw);
    height: 100%;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    background: #fff;
    border-left: 1px solid #8d9892;
    box-shadow: -12px 0 32px rgb(0 0 0 / 16%);
}

.bijlage-paneel > header {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 18px;
    border-bottom: 1px solid #c7cfcb;
}

.bijlage-paneel h2,
.bijlage-paneel h3,
.bijlage-paneel p { margin: 0; }
.bijlage-paneel h2 { font-size: 18px; line-height: 1.3; }
.bijlage-paneel h3 { font-size: 15px; }
.bijlage-paneel header small { color: var(--primair); font-weight: 700; }

.bijlage-paneel-inhoud {
    overflow: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}

.bijlage-sectie {
    display: grid;
    gap: 12px;
    padding: 18px;
    border-bottom: 1px solid #d6dcd9;
}

.bijlage-bestandskeuze,
.bijlage-omschrijving {
    display: grid;
    gap: 6px;
    font-weight: 600;
}

.bijlage-bestandskeuze input,
.bijlage-omschrijving textarea {
    width: 100%;
    min-height: 36px;
    padding: 8px 10px;
    font: inherit;
    font-weight: 400;
    color: #1f2422;
    background: #fff;
    border: 1px solid #69736e;
    border-bottom: 2px solid var(--primair);
    border-radius: 2px;
}

.bijlage-omschrijving textarea { min-height: 72px; resize: vertical; }
.bijlage-sectie > small,
.bijlage-rij small { color: #5a635f; }
.bijlage-privacy { padding: 10px 12px; background: #f2f5f3; border-left: 3px solid var(--primair); }

.bijlage-rij {
    display: grid;
    gap: 6px;
    padding: 12px 0;
    border-top: 1px solid #d6dcd9;
}

.bijlage-rij:first-of-type { border-top: 0; }
.bijlage-rij.gearchiveerd { color: #505854; }
.bijlage-rij-kop,
.bijlage-rij-acties,
.bijlage-pdf-acties { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.bijlage-rij-kop strong { min-width: 0; overflow-wrap: anywhere; }
.bijlage-status { padding: 3px 7px; color: #185c37; background: #e3f3e9; border: 1px solid #b4d8c1; border-radius: 2px; font-size: 11px; }
.bijlage-leeg { color: #5a635f; padding: 8px 0; }
.bijlage-paneel > footer { padding: 9px 18px; color: #234b37; background: #edf6f0; border-top: 1px solid #b9cec0; }

@media (max-width: 600px) {
    .bijlage-laag { background: #fff; }
    .bijlage-paneel { width: 100%; border-left: 0; box-shadow: none; }
    .bijlage-sectie { padding: 16px; }
    .bijlage-pdf-acties { align-items: stretch; flex-direction: column; }
}
