/* 0.15 Aktentasche (js/aktentasche.js) und Ordner-Kontextmenue/Eigenschaften (js/ordnermenue.js). Eingebunden in index.html (eine Zeile).
   Nur vorhandene Theme-Variablen; Farben des Vorschau-Kopfs kommen aus der Lesekopf-Reihe (.reader .rhead, js/schemen.js + css/akzente.css). */

/* --- Vorschau-Kopf = Lesekopf des Themes (Klasse rhead im .reader): Flaeche, Schrift und Kontrast wie der Mail-Lesekopf --- */
.akt-vorschau .rhead.akt-kopf { position: static; display: flex; align-items: center; gap: calc(10px * var(--s)); flex-wrap: wrap; padding: calc(8px * var(--s)) var(--vs-pad, calc(12px * var(--s))) !important;
  border-bottom: 1px solid var(--lese-trenn, var(--line2)) !important; color: var(--text); }
.akt-kopf .akt-titel { flex: 1 1 calc(180px * var(--s)); min-width: 0; }
.akt-kopf .vs-name { color: inherit; font-size: calc(14px * var(--s)); }
.akt-kopf .akt-meta { display: flex; flex-wrap: wrap; gap: 0 calc(12px * var(--s)); font-size: calc(11.5px * var(--s)); color: var(--muted); margin-top: calc(2px * var(--s)); }
.akt-kopf .akt-meta .k { opacity: .85; }
.akt-kopf .vs-knoepfe .btn { white-space: nowrap; }
.akt-inhalt { position: relative; }
.akt-inhalt iframe { flex: 1; border: 0; width: 100%; min-height: calc(300px * var(--s)); background: #fff; }
.akt-datei { display: flex; flex-direction: column; align-items: center; gap: calc(12px * var(--s)); padding: calc(24px * var(--s)) var(--vs-pad, 12px); width: 100%; }
.akt-angaben { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: calc(3px * var(--s)) calc(14px * var(--s)); font-size: calc(12.5px * var(--s)); min-width: min(100%, calc(340px * var(--s))); }
.akt-angaben .k { color: var(--muted); }
.akt-angaben > span { overflow-wrap: anywhere; }
.akt-info { max-width: calc(400px * var(--s)); line-height: 1.45; text-align: center; }

/* --- Liste: Schrift erbt von .list wie die Mailliste (gemessen gleich in 4 Layouts, test/pw_aktentasche_0150.py) --- */
.aktliste .row.akt .fr { display: flex; align-items: center; gap: calc(5px * var(--s)); min-width: 0; }
.aktliste .row.akt .fr .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aktliste .row.akt .fr svg.i { flex: none; }

/* --- grosse Ansicht + Editor --- */
.akt-gross .db { display: flex; flex-direction: column; min-height: 0; }
.akt-dlg { min-height: min(70vh, calc(620px * var(--s))); height: min(70vh, calc(620px * var(--s))); display: flex; flex-direction: column; border-radius: calc(6px * var(--s)); overflow: hidden; }
.akt-editor .db { display: flex; flex-direction: column; gap: calc(6px * var(--s)); min-height: 0; }
.akt-ed-name { display: flex; align-items: center; gap: calc(8px * var(--s)); }
.akt-ed-name .inp { flex: 1; }
.akt-ed-leiste { display: flex; align-items: center; gap: calc(2px * var(--s)); flex-wrap: wrap; padding: calc(3px * var(--s)); border: 1px solid var(--line); border-radius: calc(5px * var(--s)); background: var(--card2); }
.akt-ed-leiste .btn { min-width: calc(28px * var(--s)); justify-content: center; }
.akt-ed-leiste .sep { width: 1px; align-self: stretch; background: var(--line); margin: 0 calc(4px * var(--s)); }
.akt-ed-flaeche { width: 100%; height: min(62vh, calc(560px * var(--s))); border: 1px solid var(--line); border-radius: calc(5px * var(--s)); background: #fff; }

/* --- Ordner: Leeren + Eigenschaften --- */
.om-dlg .om-frage { margin: 2px 0 10px; font-weight: 600; }
.om-dlg .om-folge { margin: 10px 0 0; }
.om-form { grid-template-columns: calc(80px * var(--s)) minmax(0, 1fr); }
.om-wert { padding: calc(3px * var(--s)) 0; overflow-wrap: anywhere; }
.om-farbpunkt { display: inline-block; width: calc(14px * var(--s)); height: calc(14px * var(--s)); border-radius: 50%; border: 1px solid var(--line); margin-left: calc(8px * var(--s)); vertical-align: middle; }
.om-auf { border: 1px solid var(--line); border-radius: calc(6px * var(--s)); margin: calc(12px * var(--s)) 0 0; padding: calc(6px * var(--s)) calc(12px * var(--s)) calc(8px * var(--s)); display: grid; gap: calc(6px * var(--s)); }
.om-auf legend { padding: 0 calc(4px * var(--s)); font-weight: 600; }
.om-rp-zeile { display: flex; align-items: center; gap: calc(6px * var(--s)); flex-wrap: wrap; }
.om-auf-info { margin: 0; font-size: calc(11.5px * var(--s)); line-height: 1.4; min-height: 1.4em; }
.om-rp-zeile.aus :is(.inp) { opacity: .6; }
