/* Cloud-bestandskiezer (component, MO33) - Outlook-model: groot venster met links
   de bronnen (OneDrive/SharePoint/Recent/Met mij gedeeld), een breadcrumb en een
   scrollende bestandenlijst, onderin de keuze kopie/koppeling en de gekozen-chips.
   Vlakke kaart, 1px-rand, geen accentbalk. Ligt boven het opstelvenster
   (mail-modal z-index 80) en de collega-kiezer (95). */
.ck { position: fixed; inset: 0; z-index: 96; display: flex; align-items: center; justify-content: center; padding: 20px; }
.ck[hidden] { display: none; }
.ck__scrim { position: absolute; inset: 0; background: rgba(28, 42, 57, .45); }
.ck__venster {
  position: relative;
  width: min(840px, 94vw);
  height: min(660px, 88vh);
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.ck__kop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.ck__kop h2 { margin: 0; font-size: 1.05rem; color: var(--blue-700); }

/* Body: links de bronnen, rechts het hoofdvlak. */
.ck__body { flex: 1 1 auto; min-height: 0; display: flex; }

.ck__tabs {
  flex: 0 0 180px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 8px;
  border-right: 1px solid var(--line);
  overflow: auto;
}
.ck__tab {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 9px 11px;
  border: 0;
  border-radius: var(--radius-sm);
  background: none;
  font: inherit;
  font-size: .88rem;
  color: var(--ink-900);
  cursor: pointer;
  text-align: left;
}
.ck__tab svg { width: 16px; height: 16px; flex: 0 0 16px; color: var(--muted); }
.ck__tab:hover { background: var(--bg-50); }
.ck__tab:focus-visible { outline: 2px solid var(--blue-100); outline-offset: 0; }
.ck__tab.is-actief { background: var(--sidebar-active); color: var(--blue-700); font-weight: 600; }
.ck__tab.is-actief svg { color: var(--blue-700); }

.ck__hoofd { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }

/* Balk met breadcrumb (en, bij SharePoint-sites, het zoekveld). */
.ck__balk {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}
.ck__kruimels { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 2px; font-size: .85rem; }
.ck__kruimel {
  display: inline-flex;
  align-items: center;
  max-width: 220px;
  padding: 3px 6px;
  border: 0;
  border-radius: var(--radius-sm);
  background: none;
  font: inherit;
  font-size: .85rem;
  color: var(--blue-700);
  cursor: pointer;
}
.ck__kruimel:hover { background: var(--bg-50); text-decoration: underline; }
.ck__kruimel:focus-visible { outline: 2px solid var(--blue-100); outline-offset: 0; }
.ck__kruimel.is-huidig { color: var(--ink-900); cursor: default; font-weight: 600; }
.ck__kruimel-tekst { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ck__kruimel-sep { display: inline-flex; color: var(--muted); }
.ck__kruimel-sep svg { width: 14px; height: 14px; }

.ck__zoek {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 280px;
  max-width: 50%;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
}
.ck__zoek[hidden] { display: none; }
.ck__zoek:focus-within { outline: 2px solid var(--blue-100); outline-offset: 0; border-color: var(--blue-700); }
.ck__zoek svg { width: 16px; height: 16px; flex: 0 0 16px; color: var(--muted); }
.ck__zoekveld { flex: 1 1 auto; border: 0; padding: 0; font: inherit; font-size: .88rem; color: var(--ink-900); background: transparent; }
.ck__zoekveld:focus { outline: none; }

/* Bestandenlijst: het schermvullende middendeel. */
.ck__lijst { flex: 1 1 auto; min-height: 0; overflow: auto; padding: 8px 10px; }
.ck__lijst:focus { outline: none; }
.ck__lijst:focus-visible { outline: 2px solid var(--blue-100); outline-offset: -2px; border-radius: var(--radius-sm); }

.ck__item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  user-select: none;
}
.ck__item:hover { background: var(--bg-50); }
.ck__item.is-aan { background: var(--sidebar-active); }
.ck__item.is-actief { outline: 2px solid var(--blue-700); outline-offset: -2px; }
.ck__item--map .ck__item-naam { font-weight: 600; }

/* Vinkje voor selecteerbare bestanden (CSS-checkbox, geen icoon per rij). */
.ck__vink {
  position: relative;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  border: 1px solid var(--muted);
  border-radius: var(--radius-sm);
  background: var(--paper);
}
.ck__item.is-aan .ck__vink { background: var(--blue-700); border-color: var(--blue-700); }
.ck__item.is-aan .ck__vink::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 9px;
  border: solid var(--paper);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.ck__item-ico {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  background: var(--bg-50);
  color: var(--blue-700);
}
.ck__item-ico svg { width: 16px; height: 16px; }
.ck__item-tekst { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.ck__item-naam { font-size: .9rem; color: var(--ink-900); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ck__item-meta { font-size: .76rem; color: var(--muted); }
.ck__item-open { flex: 0 0 auto; display: inline-flex; color: var(--muted); }
.ck__item-open svg { width: 16px; height: 16px; }

/* Laad-, fout-, geen-recht- en lege-staat: gecentreerd, nooit een blanco vlak. */
.ck__staat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 100%;
  padding: 24px;
  color: var(--muted);
  font-size: .9rem;
  text-align: center;
}
.ck__staat p { margin: 0; max-width: 48ch; }
.ck__spinner {
  width: 22px;
  height: 22px;
  border: 2px solid var(--blue-100);
  border-top-color: var(--blue-700);
  border-radius: 50%;
  animation: ck-draai .8s linear infinite;
}
@keyframes ck-draai { to { transform: rotate(360deg); } }

/* Gekozen bestanden (chips) boven de voet. */
.ck__gekozen {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: 92px;
  overflow: auto;
  padding: 10px 16px;
  border-top: 1px solid var(--line);
}
/* display:flex wint anders van het UA-[hidden]; guard zoals .ck__zoek[hidden] hierboven. */
.ck__gekozen[hidden] { display: none; }
.ck__chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 6px 3px 9px;
  background: var(--bg-50);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .82rem;
  color: var(--ink-900);
  max-width: 260px;
}
.ck__chip svg { width: 13px; height: 13px; flex: 0 0 13px; color: var(--blue-700); }
.ck__chip-weg { display: inline-flex; align-items: center; padding: 0; border: 0; background: none; color: var(--muted); cursor: pointer; }
.ck__chip-weg:hover { color: var(--err); }
.ck__chip-weg svg { width: 13px; height: 13px; color: inherit; }

/* Voet: links de wijze (kopie/koppeling), rechts de knoppen. */
.ck__voetfout {
  margin: 0;
  padding: 8px 16px 0;
  color: var(--err);
  font-size: .82rem;
}
.ck__voet {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
}
.ck__wijze { display: flex; align-items: center; gap: 16px; margin: 0; padding: 0; border: 0; }
.ck__radio { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; color: var(--ink-900); cursor: pointer; }
.ck__radio input { accent-color: var(--blue-700); }
.ck__radio span { display: inline-flex; align-items: center; gap: 5px; }
.ck__radio svg { width: 14px; height: 14px; color: var(--muted); }
.ck__acties { display: flex; align-items: center; gap: 10px; margin-left: auto; }

@media (max-width: 600px) {
  .ck__body { flex-direction: column; }
  .ck__tabs { flex: 0 0 auto; flex-direction: row; flex-wrap: wrap; border-right: 0; border-bottom: 1px solid var(--line); }
  .ck__tab span { display: none; }
  .ck__zoek { flex-basis: 160px; }
}
