/* Dokumente & Medien · Explorer-Ansicht (Baum · Liste · Vorschau) */
.dx-layout { display:grid; grid-template-columns:204px minmax(0,1fr) 292px; gap:14px; align-items:start; margin-top:12px; }
.dx-tree { position:sticky; top:12px; max-height:calc(100vh - 120px); overflow:auto; padding:14px 12px; border:1px solid #e3dde6; border-radius:14px; background:#fff; }
.dx-tree h4 { margin:12px 0 6px 6px; font-size:11px; font-weight:700; letter-spacing:.14em; text-transform:uppercase; color:#7a5697; }
.dx-tree h4:first-child { margin-top:0; }
.dx-tree ul { list-style:none; margin:0; padding:0; }
.dx-node { width:100%; display:flex; align-items:center; gap:8px; min-height:34px; padding:5px 10px; border:0; border-radius:9px; background:transparent; color:#2b2432; font:inherit; font-size:13.5px; text-align:left; cursor:pointer; }
.dx-node svg { width:15px; height:15px; flex:0 0 auto; color:#7a5697; }
.dx-node span { min-width:0; flex:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.dx-node i { flex:0 0 auto; font-style:normal; font-size:12px; color:#6f667a; }
.dx-node:hover { background:#f7f3f9; }
.dx-node.on { background:#f1e9f5; color:#4e2555; font-weight:600; }
.dx-node.on i { color:#4e2555; }
.dx-node.sub { padding-left:30px; font-size:13px; }
.dx-node.more { color:#643182; font-weight:600; }
.dx-node.more svg { transform:rotate(90deg); }
.dx-main { min-width:0; display:grid; grid-template-columns:minmax(0,1fr); gap:10px; }
.dx-crumb { display:flex; align-items:center; gap:10px; flex-wrap:wrap; padding:2px 4px; color:#2b2432; font-size:14px; font-weight:600; }
.dx-crumb b { color:#b394cc; font-weight:400; }
.dx-crumb small { color:#6f667a; font-weight:400; }
#dx-tree-toggle { display:none; }
.dx-main .table-toolbar { border:1px solid #e3dde6; border-radius:12px; }
.dx-main .document-library-filters { flex-wrap:nowrap; gap:8px; }
.dx-main .document-library-filters label { grid-template-columns:auto; gap:0; font-size:0; }
.dx-main .document-library-filters select { min-width:0; }
.dx-main .document-bulk-toolbar { border-radius:12px; }
.dx-main .table-scroll { border:1px solid #e3dde6; border-radius:12px; background:#fff; overflow:auto; }
.dx-table { width:100%; min-width:420px; border:0; table-layout:auto; }
.dx-table th { height:36px; font-size:12px; }
.dx-table td { height:auto; padding:8px 8px; }
.dx-table th { padding:0 8px; }
.dx-row { cursor:pointer; }
.dx-row.focused { background:#f6f0f8; box-shadow:inset 3px 0 #643182; }
.dx-row.selected td { background:#faf4fb; }
.dx-type { display:inline-grid; place-items:center; width:34px; height:38px; border-radius:6px; font-size:9.5px; font-weight:700; letter-spacing:.02em; color:#fff; }
.t-pdf { background:#b0453a; } .t-img { background:#4f7fb5; } .t-audio { background:#7b45a0; } .t-video { background:#3f8f8f; } .t-doc { background:#5a8f6f; }
.dx-table .person-cell strong { display:block; max-width:min(420px,19vw); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.dx-table .person-cell { max-width:min(440px,20vw); }
.dx-table .person-cell span { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#6f667a; font-size:12px; }
.dx-ref { font-size:13px; }
.dx-ref small { display:block; color:#6f667a; }
.dx-cat { display:inline-block; white-space:nowrap; padding:2px 9px; border-radius:999px; background:#f1e9f5; color:#4e2555; font-size:12px; font-weight:600; }
.dx-state { white-space:nowrap; }
.dx-state > * { display:block; }
.dx-state .dx-status { margin-top:4px; }
.dx-state small { margin-top:2px; max-width:150px; overflow:hidden; text-overflow:ellipsis; color:#6f667a; font-size:11.5px; }
.dx-state small .warn { color:#a3661a; font-weight:600; }
.dx-status { display:inline-flex; align-items:center; white-space:nowrap; gap:6px; font-size:12.5px; font-weight:600; color:#3d3345; }
.dx-status i { width:9px; height:9px; border-radius:50%; background:#a6a0ad; }
.dx-status.success i { background:#4f9a6f; } .dx-status.warning i { background:#d99a2b; } .dx-status.danger i { background:#bd4a40; }
.dx-status + small.warn { color:#a3661a; }
.dx-row-actions { white-space:nowrap; text-align:right; }
.dx-row-actions .button { margin-right:4px; }
.dx-row-actions .icon-button svg { width:14px; height:14px; }
.dx-preview { position:sticky; top:12px; max-height:calc(100vh - 120px); overflow:auto; padding:14px; border:1px solid #e3dde6; border-radius:14px; background:#fff; }
.dx-preview-empty { display:grid; justify-items:center; gap:8px; padding:40px 14px; text-align:center; color:#6f667a; }
.dx-preview-empty svg { width:34px; height:34px; color:#b394cc; }
.dx-preview-empty strong { color:#2b2432; }
.dx-thumb { position:relative; min-height:150px; max-height:300px; display:grid; place-items:center; overflow:hidden; border-radius:10px; background:linear-gradient(160deg,#f1e9f5,#e4d6ea); margin-bottom:12px; }
.dx-thumb.plain { min-height:110px; }
.dx-thumb img { width:100%; height:100%; max-height:300px; object-fit:contain; display:block; }
.dx-thumb .pdf-preview-launch, .dx-thumb .image-preview-launch { position:relative; inset:auto; width:100%; height:auto; max-height:300px; display:block; border:0; padding:0; background:transparent; cursor:zoom-in; }
.dx-thumb .pdf-preview-launch span, .dx-thumb .image-preview-launch span { display:none; }
.dx-thumb svg { width:44px; height:44px; color:#7a5697; }
.dx-audio { display:grid; gap:8px; justify-items:center; padding:16px 10px; border-radius:10px; background:#f1e9f5; margin-bottom:12px; }
.dx-audio svg { width:30px; height:30px; color:#643182; }
.dx-audio audio { width:100%; }
.dx-kicker { display:block; color:#7a5697; font-size:11px; font-weight:700; letter-spacing:.14em; text-transform:uppercase; }
.dx-preview h3 { margin:4px 0 10px; font-size:15.5px; line-height:1.3; word-break:break-word; }
.dx-meta { display:grid; grid-template-columns:auto minmax(0,1fr); gap:7px 12px; margin:0 0 12px; font-size:13px; }
.dx-meta dt { color:#6f667a; }
.dx-meta dd { margin:0; min-width:0; word-break:break-word; }
.dx-actions { display:flex; flex-wrap:wrap; gap:6px; padding-top:12px; border-top:1px solid #e6dcec; }
.dx-main .document-gallery { border-radius:12px; grid-template-columns:repeat(auto-fill,minmax(160px,1fr)) !important; min-width:0; }
.dx-main .document-gallery-item, .dx-main .document-gallery-card { min-width:0; max-width:100%; }
.dx-table .person-cell .dx-ref-inline { display:block; color:#4e2555; font-size:12px; }
@media (max-width:1560px) {
  .dx-layout { grid-template-columns:190px minmax(0,1fr) 270px; }
  .dx-table .person-cell strong { max-width:min(360px,21vw); }
}
@media (max-width:1240px) {
  .dx-layout { grid-template-columns:196px minmax(0,1fr); }
  .dx-preview { grid-column:1 / -1; position:static; max-height:none; }
}
@media (max-width:860px) {
  .dx-layout { grid-template-columns:1fr; }
  #dx-tree-toggle { display:inline-flex; }
  .dx-tree { display:none; position:static; max-height:none; }
  .dx-layout.tree-open .dx-tree { display:block; }
  .dx-table .person-cell strong { max-width:200px; }
}
