/* Load.Live 1.1.2 — Drive: boom + lijst, bestanddetail, upload met voortgang. Zelfde tokens als ll.css (licht en donker). */
.drive { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 24px; align-items: start; }
.drive-boom { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow: auto; border: 1px solid var(--lijn); border-radius: var(--r); background: var(--rack); padding: 8px; }
.boom, .boom ul { list-style: none; margin: 0; padding: 0; }
.boom ul { padding-left: 14px; border-left: 1px solid var(--lijn); margin-left: 9px; }
.boom li { position: relative; }
.boom a { display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 8px 0 26px; border-radius: var(--r-klein); text-decoration: none; color: var(--zacht); font-size: 14px; overflow-wrap: anywhere; }
.boom a:hover { color: var(--tekst); background: var(--rack-2); }
.boom a[aria-current="page"] { color: var(--tekst); background: var(--rack-2); font-weight: 600; }
.boom svg, .drive-naam svg, .drive-kruimels svg, .drive-geenvoorbeeld svg, .drive-dropzone svg, .kaartkop svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.boom-tak { position: relative; }
.boom-knop { position: absolute; left: 0; top: 0; width: 26px; height: 36px; display: grid; place-items: center; cursor: pointer; border: 0; background: transparent; border-radius: var(--r-klein); color: var(--zacht); z-index: 1; padding: 0; }
.boom-knop::before { content: ''; width: 7px; height: 7px; border-right: 1.8px solid currentColor; border-bottom: 1.8px solid currentColor; transform: rotate(-45deg); transition: transform .15s; }
.boom-knop[aria-expanded="true"]::before { transform: rotate(45deg); }
.boom-knop:hover { background: var(--rack-2); color: var(--tekst); }
.boom-prullenbak { margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--lijn); }
.drive-inhoud { min-width: 0; }
.drive-kop { margin-bottom: 12px; }
.drive-kop h2 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 20px; }
.drive-kop .acties { justify-content: flex-end; }
.drive-kruimels { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; }
.drive-pad { color: var(--zacht); font-size: 14px; }
.drive-pad a { color: var(--zacht); text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; }
.drive-pad a:hover { color: var(--tekst); text-decoration: underline; }
.drive-terug { font-weight: 600; }
.drive-naam { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; min-height: 24px; }
.drive-naam > span { overflow-wrap: anywhere; min-width: 12ch; }
.drive-naam:hover span { text-decoration: underline; }
.drive-naam svg { color: var(--zacht); }
.drive-tabel td .tag { vertical-align: 1px; }
.drive-lijst { position: relative; border-radius: var(--r); }
.drive-lijst.sleep::after { content: 'Laat los om te uploaden'; position: absolute; inset: 0; display: grid; place-items: center; background: color-mix(in srgb, var(--ground) 80%, transparent); border: 2px dashed var(--tekst); border-radius: var(--r); font-weight: 600; font-size: 18px; z-index: 2; }
.drive-sleeptip { margin: 10px 0 0; text-align: center; }
.drive-zoek { display: flex; gap: 6px; align-items: center; }
.drive-zoek input[type=search] { min-width: 200px; max-width: 260px; }
.drive-zoek .knop { padding: 0 12px; }
.drive-zoek .knop svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.drive-quota { height: 6px; border-radius: 999px; background: var(--rack-2); margin: -12px 0 20px; overflow: hidden; max-width: 420px; }
.drive-quota-balk { display: block; height: 100%; width: 0; background: var(--ok); border-radius: 999px; min-width: 2px; }
.drive-quota-balk.let { background: var(--tally); }

/* upload */
.drive-dropzone { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center; padding: 22px 16px; border: 2px dashed var(--lijn-sterk); border-radius: var(--r); text-align: center; }
.drive-dropzone.sleep { border-color: var(--tekst); background: var(--rack-2); }
.drive-dropzone p { width: 100%; margin: 0; }
.drive-kies { position: relative; overflow: hidden; }
.drive-kies input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.drive-kies:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.drive-foto { display: none; }
@media (pointer: coarse) { .drive-foto { display: inline-flex; } }
.drive-uploads { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; max-height: 40vh; overflow: auto; }
.drive-uploads li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; align-items: center; padding: 8px 10px; border: 1px solid var(--lijn); border-radius: var(--r-klein); font-size: 14px; }
.drive-uploads li[data-status="fout"] { border-color: var(--tally); }
.drive-uploads li[data-status="klaar"] .drive-upstatus { color: var(--ok); }
.drive-upnaam { font-weight: 600; overflow-wrap: anywhere; }
.drive-balk { grid-column: 1 / -1; display: block; height: 4px; background: var(--rack-2); border-radius: 999px; overflow: hidden; }
.drive-balk span { display: block; height: 100%; width: 0; background: var(--tekst); transition: width .2s; }
.drive-upstatus { grid-column: 1 / -1; font-size: 13px; color: var(--zacht); }

/* detail */
.drive-detail { grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); }
.drive-voorbeeldvak { min-height: 320px; display: grid; place-items: center; padding: 12px; }
.drive-voorbeeld { max-width: 100%; max-height: 70vh; border-radius: var(--r-klein); }
.drive-pdf { width: 100%; height: min(75vh, 900px); border: 0; border-radius: var(--r-klein); background: #fff; }
.drive-voorbeeldvak:has(.drive-pdf) { display: block; }
.drive-geenvoorbeeld { text-align: center; color: var(--zacht); display: grid; gap: 10px; justify-items: center; }
.drive-geenvoorbeeld svg { width: 48px; height: 48px; }
.drive-geenvoorbeeld p { margin: 0; }
.drive-sha { font-size: 12.5px; }
.drive-versies tr.actueel td { background: var(--rack-2); }
.drive-versieacties { white-space: nowrap; text-align: right; }
.drive-versieacties .knop { margin-left: 6px; }
.drive-versieacties .knop svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.drive-detail .kaart + .kaart { margin-top: 16px; }
.drive-ingebed .drive-kop h2 { font-size: 17px; }
.drive-ingebed { display: grid; gap: 8px; }
.drive-ingebed > .sub { margin: 0; }
.drive-persoon { margin-top: 16px; }

/* gsm: enkel de lijst met "terug"; rijen als kaartjes */
@media (max-width: 960px) {
  .drive { grid-template-columns: 1fr; }
  .drive-boom { display: none; }
  .drive-detail { grid-template-columns: 1fr; }
  .drive-zoek { width: 100%; }
  .drive-zoek input[type=search] { max-width: none; flex: 1; }
  .drive-kop .acties { justify-content: flex-start; }
}
@media (max-width: 720px) {
  .drive-tabel thead, .drive-versies thead { display: none; }
  .drive-tabel tr, .drive-versies tr { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 12px; padding: 10px 14px; border-bottom: 1px solid var(--lijn); }
  .drive-tabel td, .drive-versies td { border: 0; padding: 0; }
  .drive-tabel td[data-l="Naam"], .drive-versies td[data-l="Versie"] { grid-column: 1 / -1; }
  .drive-tabel td[data-l]::before, .drive-versies td[data-l]::before { content: attr(data-l); display: block; font: 500 10.5px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--zacht); }
  .drive-tabel td[data-l="Naam"]::before { display: none; }
  .drive-tabel td.num { text-align: left; }
  .drive-tabel td[data-l="Grootte"]:empty, .drive-tabel td[data-l="Gewijzigd"]:empty { display: none; }
  .drive-versieacties { grid-column: 1 / -1; text-align: left; white-space: normal; display: flex; gap: 6px; flex-wrap: wrap; }
  .drive-versieacties .knop { margin: 0; }
  .drive-pdf { height: 60vh; }
}
