.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 18px; background: var(--surface); border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 10;
}
.brand { font-size: 18px; font-weight: 700; }
.brand span { color: var(--accent); }
.topbar-actions { display: flex; align-items: center; gap: 14px; }
.userbox { color: var(--text-dim); font-size: 14px; }
.portalsw { display: inline-flex; align-items: center; gap: 3px; padding: 3px; margin-right: 14px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; }
.portalsw a { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 650;
  padding: 7px 18px; border-radius: 999px; color: var(--text-dim); text-decoration: none; transition: color .15s, background .15s, box-shadow .15s; }
.portalsw a:not(.on):hover { color: var(--text); }
.portalsw a.on { background: var(--accent); color: #fff; box-shadow: 0 2px 8px rgba(47,158,127,.4); }
.portalsw a.on .pdot { box-shadow: 0 0 0 3px rgba(255,255,255,.35); }
.pdot { width: 9px; height: 9px; border-radius: 999px; display: inline-block; background: var(--accent); }
.pdot.lohn { background: #1E7A3E; }
.pdot.fibu { background: #2f9e7f; }
.pdot.auswertung { background: #7a5cc0; }

/* Auswertung-Bereich (Mandant + Kanzlei) */
.ausw-bereich { margin-bottom: 18px; }
.ausw-bereich h3 { display: flex; align-items: center; gap: 8px; margin: 6px 0 10px; }
.ausw-item { display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; background: var(--card); }
.ausw-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ausw-titel { font-weight: 620; }
.ausw-meta { font-size: 12.5px; color: var(--muted); }
.ausw-act { display: flex; gap: 8px; flex: none; }
.ausw-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; align-items: end; }
.ausw-form label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; color: var(--muted); }
.ausw-form input, .ausw-form select { font: inherit; }
.ausw-form #aw-send { grid-column: 1 / -1; justify-self: start; }
@media (max-width: 640px) { .ausw-form { grid-template-columns: 1fr; } .ausw-item { flex-direction: column; align-items: stretch; } }
.badge.grau { background: rgba(120,120,130,.18); color: var(--muted); }
.badge.blau { background: rgba(70,120,200,.18); color: #4678c8; }
.ausw-pref-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.ausw-month { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 12px; }
.ausw-month-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.ausw-month-titel { font-weight: 700; }
.ausw-lohn-item { border: none; padding: 8px 0; border-bottom: 1px dashed var(--line); border-radius: 0; background: none; }
.ausw-lohn-item:last-child { border-bottom: none; }
.ausw-note { display: flex; gap: 8px; margin-top: 6px; }
.ausw-note input { flex: 1; font: inherit; }
.ausw-note-ro { font-size: 12.5px; color: var(--muted); margin-top: 4px; font-style: italic; }
.imp-mini { padding: 3px 9px; font-size: 12px; margin-right: 5px; }
.ausw-bulk { display: flex; align-items: center; gap: 12px; margin: 4px 0 10px; font-size: 13px; }
.ausw-bulk > label, .ausw-bulk > button { flex: none; white-space: nowrap; }
.ausw-bulk #aw-clear { margin-left: auto; }
.ausw-item > .aw-sel { flex: none; align-self: center; margin-right: 2px; }
/* Filterleiste über der Kanzlei-Liste: Bereich/Jahr/Monat/Suche */
.ausw-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0 4px; }
.ausw-filter select, .ausw-filter input { font: inherit; font-size: 13px; }
.ausw-filter #af-such { flex: 1; min-width: 180px; }
.ausw-count { flex: 1 1 auto; min-width: 0; font-size: 12.5px; color: var(--muted); }
.ausw-count.warn { color: #b26a00; font-weight: 600; }
@media (max-width: 640px) { .ausw-filter #af-such { flex-basis: 100%; } .ausw-bulk { flex-wrap: wrap; } .ausw-bulk #aw-clear { margin-left: 0; } }
/* Lohnabrechnungen-Kontrolle: kompakte Liste + Detail-Modal mit PDF */
.ausw-lohn-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ausw-lohn-h > span { display: inline-flex; align-items: center; gap: 8px; }
.ausw-sort-lbl { font-size: 13px; font-weight: 400; color: var(--muted); }
.ausw-sort-lbl select { font: inherit; margin-left: 4px; }
.ausw-month-sum { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; padding: 8px 4px; list-style: none; }
.ausw-month-sum::-webkit-details-marker { display: none; }
.ausw-lohn-rows { display: flex; flex-direction: column; gap: 4px; padding: 2px 0 10px; }
.ausw-lohn-row { text-align: left; width: 100%; background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; cursor: pointer; font: inherit; box-shadow: none; }
.ausw-lohn-row:hover { border-color: var(--accent); background: var(--card); color: var(--text); }
.lohn-win { position: fixed; top: 28px; left: 50%; transform: translateX(-50%); width: min(1120px, 96vw); height: 86vh;
  min-width: 360px; min-height: 300px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: 0 24px 70px rgba(0,0,0,.45); z-index: 1100; display: flex; flex-direction: column; overflow: hidden; resize: both; }
.lohn-win-head { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px;
  background: var(--card); border-bottom: 1px solid var(--line); cursor: move; user-select: none; border-radius: 12px 12px 0 0; }
.lohn-win-title { font-weight: 700; font-size: 14px; }
.lohn-win-tools { display: flex; gap: 4px; }
.lohn-win-tools button { font: inherit; padding: 2px 10px; cursor: pointer; }
.lohn-win-tools button:disabled { opacity: .4; cursor: default; }
.lohn-body { flex: 1 1 auto; display: flex; min-height: 0; }
.lohn-pdf { flex: 1 1 auto; min-width: 0; border: none; background: #fff; }
.lohn-side { flex: 0 0 340px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px;
  padding: 10px 12px; overflow: auto; background: var(--surface); }
.lohn-side .ld-pnr { font-size: 14px; }
.ld-sec-lbl { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; margin-top: 4px; }
.ld-z { border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; font-size: 13px; margin-bottom: 6px; }
.ld-z-meta { font-size: 10px; color: var(--muted); margin-top: 3px; }

/* Teil B – „Eine Stelle": Eingabemaske + Eintrag-Feed */
.eintrag-form { border: 1px solid var(--line); border-radius: 10px; padding: 16px; margin: 6px 0 16px;
  background: color-mix(in srgb, var(--text) 7%, var(--surface)); }
.eintrag-form .ef-row { display: flex; gap: 14px; flex-wrap: wrap; }
.eintrag-form .field { flex: 1; min-width: 200px; }
.eintrag-form .ef-field { margin-top: 14px; }
.eintrag-form label { font-size: 12px; font-weight: 700; color: var(--text); display: block; margin-bottom: 5px; }
.eintrag-form input, .eintrag-form select, .eintrag-form textarea {
  width: 100%; background: var(--surface); color: var(--text);
  border: 1.5px solid color-mix(in srgb, var(--text) 32%, transparent);
  border-radius: 8px; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.eintrag-form input::placeholder, .eintrag-form textarea::placeholder { color: color-mix(in srgb, var(--text) 45%, transparent); }
.eintrag-form input:focus, .eintrag-form select:focus, .eintrag-form textarea:focus {
  border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(47,158,127,.20); }
.eintrag-form .dropzone { background: var(--surface); border: 2px dashed color-mix(in srgb, var(--text) 30%, transparent); }
.ef-nopnr { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); margin-top: 6px; font-weight: 400; }
.ef-nopnr input { width: auto; }
.ef-actions { display: flex; align-items: center; gap: 12px; margin-top: 10px; justify-content: flex-end; }
.ef-actions .ef-status { flex: 1; }
.ef-queue { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 0; }
.ef-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; background: rgba(127,127,127,.1);
  border: 1px solid var(--line); border-radius: 999px; padding: 3px 8px; }
.ef-chip button { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 0 2px; font-size: 12px; }
.ei-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 4px 0 12px; flex-wrap: wrap; }
.ei-filter { display: inline-flex; gap: 2px; padding: 3px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; }
.ei-fbtn { background: none; color: var(--text-dim); border: 0; border-radius: 999px; padding: 5px 14px; font-size: 13px; font-weight: 600; cursor: pointer; box-shadow: none; }
.ei-fbtn.on { background: var(--accent); color: #fff; }
.eintrag-feed { display: flex; flex-direction: column; gap: 10px; }
.ei-item { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.ei-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ei-pnr { font-weight: 600; }
.ei-meta { font-size: 11px; color: var(--muted); margin-left: auto; }
.ei-notiz { margin: 6px 0; white-space: pre-wrap; }
.ei-dok { margin: 4px 0; }
.ei-antworten { margin: 6px 0; border-left: 2px solid var(--line); padding-left: 10px; }
.ei-ant { font-size: 13px; margin: 3px 0; }
.ei-ant .ei-meta { margin-left: 6px; }
.ei-actions { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.ei-actions .ei-reply { flex: 1; min-width: 160px; }
.ld-note-lbl { font-size: 13px; font-weight: 600; color: var(--muted); }
.ld-note { font: inherit; width: 100%; }
.ld-actions { display: flex; gap: 8px; justify-content: flex-end; align-items: center; }
@media (max-width: 720px) { .lohn-body { flex-direction: column; } .lohn-side { flex: 0 0 auto; border-left: none; border-top: 1px solid var(--line); } }
.userinfo { color: var(--text-dim); font-size: 14px; }
.danger { color: var(--danger); }
.build-marker { font-size: 11px; color: var(--text-dim); border: 1px solid var(--border); border-radius: 6px; padding: 2px 6px; }

.app { max-width: 1100px; margin: 0 auto; padding: 22px 18px 60px; }
.loading { color: var(--text-dim); padding: 40px; text-align: center; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 20px 22px; margin-bottom: 18px; box-shadow: var(--shadow); }
.card h2 { margin: 0 0 14px; font-size: 16px; display: flex; align-items: center; gap: 9px; }
.card h2::before { content: ""; width: 4px; height: 17px; border-radius: 3px; background: var(--accent); display: inline-block; flex: none; }
.card h2 .badge { align-self: center; }
.card h3 { margin: 0 0 8px; font-size: 14px; color: var(--text-dim); }

.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.field { display: flex; flex-direction: column; gap: 4px; }
.field label { font-size: 12px; color: var(--text-dim); }
input, select, textarea {
  background: var(--surface-2); color: var(--text); border: 1px solid var(--border);
  border-radius: 8px; padding: 8px 10px; font-size: 14px; min-width: 120px;
}
textarea { min-width: 260px; }

button {
  background: var(--accent); color: #fff; border: 0; border-radius: 8px;
  padding: 9px 14px; font-size: 14px; font-weight: 600; cursor: pointer;
}
button:hover { filter: brightness(1.08); }
button.secondary { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); }
button.danger { background: var(--danger); color: #fff; }
button.ghost { background: transparent; color: var(--accent-2); padding: 4px 8px; }
button:disabled { opacity: .5; cursor: not-allowed; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); }
th { color: var(--text-dim); font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; border-bottom: 1.5px solid var(--border); }
tbody tr { transition: background .12s; }
tbody tr:hover { background: color-mix(in srgb, var(--accent) 6%, transparent); }
tbody tr:last-child td { border-bottom: 0; }
/* Aktions-Spalte (speichern/löschen) rechts fixieren – bleibt bei breiter Tabelle sichtbar. */
/* Dokumentenliste – ein Block je Beleg, Dateiname oben längs */
.doc-item { padding: 12px 0; border-bottom: 1px solid var(--border); }
.doc-item:last-child { border-bottom: 0; }
.doc-item-name { font-weight: 500; margin-bottom: 8px; word-break: break-word; }
.doc-item-body { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.doc-col-meta { display: flex; flex-direction: column; gap: 6px; flex: 0 0 210px; }
.doc-col-meta select, .doc-col-meta .pnr-input { width: 100%; min-width: 0; }
.pnr-input { font: inherit; }
.doc-col-desc { flex: 1 1 340px; min-width: 220px; }
.doc-col-desc .e-desc { width: 100%; min-width: 0; min-height: 40px; resize: vertical; overflow: hidden; line-height: 1.45; }
.doc-col-act { display: flex; flex-direction: column; gap: 6px; flex: 0 0 130px; align-items: stretch; }
.doc-col-act button { width: 100%; }
.doc-date { font-size: 12px; color: var(--text-dim); text-align: center; margin-bottom: 2px; white-space: nowrap; }
.doc-ro { font-size: 14px; color: var(--text); }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; cursor: pointer; transition: border-color .15s; }
.tile:hover { border-color: var(--accent); }
.tile .lbl { font-size: 17px; font-weight: 650; }
.tile .meta { color: var(--text-dim); font-size: 13px; margin-top: 6px; }

.badge { display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 999px; font-weight: 600; }
/* Ampel-Schema: ROT = noch nicht begonnen · GELB = begonnen · GRÜN = fertig/abgeschlossen */
.badge.rot, .badge.neu, .badge.fehler,
.badge.ampel-rot { background: rgba(229,83,75,.18); color: var(--danger); }
.badge.gelb, .badge.offen, .badge.teilerkannt,
.badge.ampel-gelb { background: rgba(216,167,42,.18); color: var(--warn); }
.badge.gruen, .badge.abgeschlossen, .badge.uebernommen, .badge.erledigt, .badge.erkannt,
.badge.ampel-gruen { background: rgba(47,158,127,.2); color: var(--ok); }

.tabs { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
/* Admin-Konsole: gruppierte Navigation (Gemeinsam / Lohn / Fibu) */
.ac-nav { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: flex-end; margin-bottom: 16px; }
.ac-group { display: flex; flex-direction: column; gap: 5px; }
.ac-glbl { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-dim); font-weight: 700; padding-left: 2px; }
.ac-nav .ac-tabs { margin-bottom: 0; }
.mand-check { display: inline-flex; align-items: center; gap: 6px; }
/* Mandanten-Auswahl (Gast mit mehreren Zugängen) */
.mand-choose { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.mand-choose-item { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; text-align: left; padding: 14px 16px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; cursor: pointer; width: 100%; }
.mand-choose-item:hover { border-color: var(--accent); }
.mc-name { font-weight: 600; font-size: 15px; color: var(--text); }
.mc-meta { font-size: 12px; color: var(--text-dim); }
.mand-switch { font-weight: 600; }
.mand-checks { max-height: 260px; overflow: auto; }
.tabs button { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); }
.tabs button.active { background: var(--accent); color: #fff; border-color: var(--accent); }

.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: 6px; margin: 8px 0; }
.checks label { display: flex; gap: 8px; align-items: center; font-size: 14px; background: var(--surface-2); padding: 8px 10px; border-radius: 8px; border: 1px solid var(--border); }

.muted { color: var(--text-dim); }
.hint { font-size: 12px; color: var(--text-dim); }
.spacer { flex: 1; }
.right { text-align: right; }
.toolbar { display: flex; gap: 8px; align-items: center; margin-bottom: 14px; }
.dropzone { border: 2px dashed var(--border); border-radius: var(--radius); padding: 22px; text-align: center; color: var(--text-dim); }
.dropzone.drag { border-color: var(--accent); color: var(--text); }
.soon { font-size: 11px; background: rgba(216,167,42,.18); color: var(--warn); padding: 2px 7px; border-radius: 999px; }

.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: var(--surface-2); border: 1px solid var(--border); color: var(--text); padding: 10px 16px; border-radius: 10px; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .2s; max-width: 80%; }
.toast.show { opacity: 1; }
.toast.err { border-color: var(--danger); }

/* ---------- Login-Startseite (grafisch, „Ruhige Präzision") ---------- */
.login { display: grid; grid-template-columns: 1.05fr 1fr; max-width: 880px; margin: 7vh auto 0;
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px;
  overflow: hidden; box-shadow: var(--shadow); }
.login-hero { position: relative; padding: 38px 36px 34px; color: #fff; min-height: 430px;
  background: linear-gradient(158deg, #24956f 0%, #157055 52%, #0f4f3c 100%);
  display: flex; flex-direction: column; overflow: hidden; }
.login-brand { font-size: 26px; font-weight: 750; letter-spacing: .2px; display: flex; gap: 9px; align-items: baseline; }
.login-brand span { font-weight: 300; opacity: .9; }
.hero-art { position: absolute; right: 4px; top: 58px; width: 64%; max-width: 300px; opacity: .95; pointer-events: none; }
.login-tag { margin-top: auto; font-size: 30px; font-weight: 300; line-height: 1.15; letter-spacing: .2px;
  position: relative; }
.login-chips { margin-top: 18px; display: flex; gap: 10px; }
.pchip { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600;
  padding: 6px 13px; border-radius: 999px; background: rgba(255,255,255,.14); color: #fff;
  border: 1px solid rgba(255,255,255,.22); }
.pchip .pdot { box-shadow: 0 0 0 2px rgba(255,255,255,.25); }
.login-panel { padding: 46px 40px; display: flex; flex-direction: column; justify-content: center; }
.login-panel h1 { font-size: 24px; margin: 0 0 4px; }
.login-panel .muted { margin: 0 0 22px; }
.login-primary { width: 100%; padding: 14px; font-size: 15px; border-radius: 11px; }
.login-panel .hint { margin-top: 11px; text-align: center; }
.login-dev { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--border); }
.login-dev-lbl { font-size: 11px; text-transform: uppercase; letter-spacing: .8px; color: var(--text-dim); }
.login-dev-row { display: flex; gap: 8px; margin-top: 9px; }
.login-dev-row input { flex: 1; min-width: 0; }
@media (max-width: 720px) {
  .login { grid-template-columns: 1fr; max-width: 440px; margin-top: 4vh; }
  .login-hero { min-height: 260px; padding: 30px 28px; }
  .hero-art { position: static; width: 200px; margin: 14px 0 6px auto; }
  .login-tag { font-size: 25px; }
}

.pbgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px 14px; }
.pbgrid .field { min-width: 0; }
.pb-check { display: flex; align-items: center; gap: 8px; font-size: 14px; padding: 8px 0; }
.pb-check input[type="checkbox"] { width: 18px; height: 18px; min-width: 0; flex: none; accent-color: var(--accent); }
.sv-combo { display: flex; align-items: center; gap: 10px; }
.sv-combo > input { flex: 1; min-width: 0; }
.sv-combo .sv-neu { flex: none; padding: 0; white-space: nowrap; color: var(--text-dim); }
.pbgrid input, .pbgrid select { width: 100%; min-width: 0; }
.missing { border-color: var(--danger) !important; box-shadow: 0 0 0 2px rgba(229,83,75,.25); }

.chatlog { max-height: 320px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 4px 0; }
.chatmsg { background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; font-size: 14px; }
.chatmeta { font-size: 11px; color: var(--text-dim); margin-bottom: 2px; }

/* ---------- Fibu: Monatsreihe oben + positionierbare Kategorie-Tabs ---------- */
.fibu-topbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.fibu-months { display: flex; gap: 8px; flex-wrap: wrap; flex: 1; }
.fibu-month { background: var(--surface-2); color: var(--text-dim); border: 1px solid var(--border);
  border-radius: 999px; padding: 8px 18px; font-weight: 650; }
.fibu-month.active { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: 0 2px 8px rgba(47,158,127,.35); }
.fibu-postoggle { display: inline-flex; align-items: center; gap: 4px; }
.fibu-postoggle a { padding: 4px 11px; border-radius: 999px; border: 1px solid var(--border);
  color: var(--text-dim); text-decoration: none; font-weight: 600; font-size: 12px; }
.fibu-postoggle a.on { background: var(--accent); color: #fff; border-color: var(--accent); }

.fibu-layout { display: flex; gap: 16px; }
.fibu-layout.pos-top { flex-direction: column; }
.fibu-layout.pos-left { flex-direction: row; }
.fibu-layout.pos-right { flex-direction: row-reverse; }
.fibu-cat-tabs { display: flex; gap: 8px; }
.fibu-layout.pos-top .fibu-cat-tabs { flex-direction: row; flex-wrap: wrap; }
.fibu-layout.pos-left .fibu-cat-tabs, .fibu-layout.pos-right .fibu-cat-tabs { flex-direction: column; min-width: 200px; flex-shrink: 0; }
.fibu-cat-content { flex: 1; min-width: 0; }
.fibu-layout.pos-left .fibu-cat-content, .fibu-layout.pos-right .fibu-cat-content { overflow-x: auto; }
.fibu-cat-content .card { margin-bottom: 0; }
.fibu-cat-tab { background: var(--surface-2); color: var(--text); border: 1px solid var(--border);
  border-radius: 10px; padding: 11px 16px; font-weight: 600; cursor: pointer; text-align: left;
  display: flex; align-items: center; gap: 10px; justify-content: space-between; }
.fibu-cat-tab:hover { border-color: var(--accent); }
.fibu-cat-tab.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.fibu-cat-tab.active .badge { background: rgba(255,255,255,.22); color: #fff; }
.fibu-cat-name { display: flex; align-items: center; gap: 9px; }
.kat-ic { width: 18px; height: 18px; flex: none; opacity: .85; }
.fibu-cat-tab.active .kat-ic { opacity: 1; }
.fibu-cat-tab { border-radius: 12px; transition: border-color .12s, background .12s; }
.fibu-cat-tab:not(.active):hover { background: color-mix(in srgb, var(--accent) 8%, var(--surface-2)); }
.doc-wrap, .cash-wrap, .bank-wrap { overflow-x: auto; }
.op-controls { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.op-seg { display: inline-flex; padding: 3px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; gap: 2px; }
.op-seg a { padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--text-dim); text-decoration: none; }
.op-seg a.on { background: var(--accent); color: #fff; }
.op-head { font-weight: 650; margin-bottom: 10px; }
.op-sec { border: 1px solid var(--border); border-radius: 10px; margin-bottom: 8px; overflow: hidden; }
.op-sec-h { background: var(--surface-2); padding: 8px 12px; font-weight: 600; font-size: 14px; }
.op-sec-b { padding: 12px; font-size: 13px; }
.kk-cell { min-width: 330px; }
.kk-row { display: flex; align-items: center; gap: 6px; padding: 2px 0; }
.kk-row input { padding: 4px 7px; font-size: 13px; }
.e-datum, .e-kred, .e-sach { width: 92px; }
.e-rnr { width: 130px; }
.e-btext { min-width: 180px; flex: 1; }
.kk-bez { font-size: 12px; color: var(--text-dim); }
.kk-save { margin-top: 6px; }
.kkst-cell { min-width: 150px; }
.kkst-row { display: flex; align-items: center; gap: 6px; padding: 2px 0; }
.kkst-row input { width: 90px; padding: 4px 7px; font-size: 13px; }
.kkst-lbl { display: inline-block; min-width: 42px; font-size: 11px; text-transform: uppercase; letter-spacing: .03em; color: var(--text-dim); }
.imp-lbl { font-size: 12px; font-weight: 600; color: var(--accent-2); cursor: pointer; margin-left: 8px; }
.imp-lbl:hover { text-decoration: underline; }
.kk-lbl { display: inline-block; min-width: 90px; font-size: 11px; text-transform: uppercase; letter-spacing: .03em; color: var(--text-dim); flex: none; }
.tooltip-pop { position: fixed; z-index: 9999; max-width: 380px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; box-shadow: var(--shadow); padding: 10px 13px; font-size: 13px; color: var(--text); pointer-events: none; }
.tooltip-pop .tt-title { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--accent); margin-bottom: 6px; font-weight: 700; }
.tooltip-pop > div { padding: 1px 0; }
.tooltip-pop .tt-l { display: inline-block; min-width: 96px; color: var(--text-dim); }
.doc-preview:not(:empty) { margin-top: 6px; border-top: 1px solid var(--border); padding-top: 10px; }
.doc-frame { width: 100%; height: 620px; border: 1px solid var(--border); border-radius: 8px; background: #fff; }
.ocr-text { white-space: pre-wrap; word-break: break-word; max-height: 460px; overflow: auto; background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; font-size: 13px; line-height: 1.5; margin: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.doc-img { max-width: 100%; border: 1px solid var(--border); border-radius: 8px; }

/* Fliegendes Fenster (Bild-/OCR-Vorschau, rechts angedockt, verschiebbar) */
.float-win { position: fixed; top: 76px; right: 20px; width: 480px; height: 74vh; max-width: calc(100vw - 32px); max-height: calc(100vh - 96px); background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 18px 50px rgba(0,0,0,.28); display: flex; flex-direction: column; z-index: 900; overflow: hidden; }
.fw-head { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-bottom: 1px solid var(--border); background: var(--surface-2); cursor: move; user-select: none; }
.fw-title { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fw-title .fw-link { font-weight: 400; font-size: 12px; margin-left: 8px; }
.fw-close { padding: 2px 10px; }
.fw-body { flex: 1; overflow: auto; padding: 12px; display: flex; flex-direction: column; }
.fw-body .doc-img { align-self: flex-start; height: auto; }
.fw-body .doc-frame { flex: 1; height: auto; min-height: 400px; }
.fw-body .ocr-text { flex: 0 0 auto; max-height: none; }
.fw-grip { position: absolute; right: 2px; bottom: 2px; width: 18px; height: 18px; cursor: nwse-resize; }
.fw-grip::after { content: ""; position: absolute; right: 4px; bottom: 4px; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); }
.fw-body .w-csv { flex: 1; width: 100%; min-height: 320px; resize: none; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; line-height: 1.5; white-space: pre; overflow: auto; }

/* Wissensdatei – Übersichtskacheln */
.w-tiles { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
.w-tile { flex: 1 1 120px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; text-align: left; cursor: pointer; color: var(--text); font: inherit; transition: border-color .15s; }
.w-tile:hover { border-color: var(--accent); }
.w-tile-n { font-size: 26px; font-weight: 700; line-height: 1; }
.w-tile-l { color: var(--text-dim); font-size: 13px; margin-top: 4px; }
.w-tile-hint { color: var(--accent-2); font-size: 11px; margin-left: 4px; opacity: 0; transition: opacity .15s; }
.w-tile:hover .w-tile-hint { opacity: 1; }

/* Modaler Dialog */
.modal-ov { position: fixed; inset: 0; background: rgba(0,0,0,.5); display: flex; align-items: center; justify-content: center; z-index: 1000; padding: 20px; }
.modal-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 24px 70px rgba(0,0,0,.4); width: 100%; max-width: 460px; max-height: 90vh; overflow: auto; }
.modal-head { padding: 14px 18px; border-bottom: 1px solid var(--border); }
.modal-head b { font-size: 15px; }
.modal-body { padding: 16px 18px; }
.modal-body p { margin: 0 0 10px; }
.modal-list { margin: 0 0 12px; padding-left: 20px; }
.modal-list li { margin: 3px 0; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; }

/* Kassenbuch-Tabelle */
.cash-table td, .cash-table th { vertical-align: top; }
.cash-table .nowrap { white-space: nowrap; }
.cash-table tr.row-warn td { background: color-mix(in srgb, var(--warn, #d8a72a) 14%, transparent); }
.linklike { background: none; border: 0; color: var(--accent); padding: 0; cursor: pointer; font: inherit; text-decoration: underline; text-align: left; }
.kasse-up { margin: 8px 0 4px; }

/* Monate (Mandant → aktueller Monat + ausklappbare ältere) */
.mand-block { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; background: var(--surface-2); }
.mand-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.month-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 10px; border-radius: 8px; }
.month-row.prominent { background: var(--surface); border: 1px solid var(--border); }
.month-row .month-lbl { font-weight: 600; min-width: 130px; }
.month-row .month-kats { flex: 1; min-width: 180px; }
.mand-more { margin-top: 6px; }
.mand-more-box { margin-top: 4px; }

/* Belegsuche */
.s-facets { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.s-fgrp { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.s-flbl { color: var(--text-dim); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; min-width: 78px; }
.s-chip { background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: 3px 10px; font-size: 12px; cursor: pointer; color: var(--text); }
.s-chip:hover { border-color: var(--accent); }
.s-cnt { color: var(--text-dim); font-size: 11px; margin-left: 2px; }
.s-table td { vertical-align: top; }
.s-tags { margin-top: 4px; display: flex; flex-wrap: wrap; gap: 4px; }
.s-tag { font-size: 11px; padding: 1px 7px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-dim); }
.s-tag.t-kategorie { color: var(--accent-2); }
.s-snip { margin-top: 5px; font-size: 12px; color: var(--text-dim); line-height: 1.4; }

/* Einstellungs-Zahnrad (Mandant) + Popover */
.gear-btn { font-size: 15px; text-decoration: none; }
.settings-pop { position: fixed; z-index: 1100; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 14px 44px rgba(0,0,0,.32); padding: 8px; min-width: 190px; }
.sp-item { display: block; width: 100%; text-align: left; background: transparent; border: 0; color: var(--text); padding: 8px 10px; border-radius: 7px; cursor: pointer; font: inherit; }
.sp-item:hover { background: var(--surface-2); }
.sp-label { color: var(--text-dim); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; padding: 8px 10px 4px; }
.sp-seg { display: flex; gap: 4px; padding: 0 6px 4px; }
.sp-seg a { flex: 1; text-align: center; padding: 6px 8px; border: 1px solid var(--border); border-radius: 7px; font-size: 13px; text-decoration: none; color: var(--text); }
.sp-seg a:hover { border-color: var(--accent); }
.sp-seg a.on { background: var(--accent); color: #fff; border-color: var(--accent); }

/* Hilfe-Overlay */
.help-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 24px 70px rgba(0,0,0,.4); width: 100%; max-width: 820px; max-height: 90vh; display: flex; flex-direction: column; overflow: hidden; }
.help-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border-bottom: 1px solid var(--border); }
.help-head b { font-size: 16px; }
.help-body { padding: 8px 20px 20px; overflow: auto; }
.help-sec { padding: 14px 0; border-bottom: 1px solid var(--border); }
.help-sec:last-child { border-bottom: 0; }
.help-sec h3 { margin: 0 0 8px; font-size: 14px; }
.help-sec p { margin: 0 0 8px; line-height: 1.5; }
.help-sec ul { margin: 4px 0; padding-left: 20px; line-height: 1.55; }
.help-sec li { margin: 3px 0; }
.help-sec code { background: var(--surface-2); border: 1px solid var(--border); border-radius: 5px; padding: 1px 5px; font-size: 12px; }
.help-legend { list-style: none; padding-left: 0; }
.help-legend li { margin: 6px 0; }
.help-legend .badge { margin-right: 8px; }
.help-abbr { columns: 2; }
.help-note { color: var(--text-dim); font-size: 12px; }
@media (max-width: 720px) {
  .fibu-layout.pos-left, .fibu-layout.pos-right { flex-direction: column; }
  .fibu-layout.pos-left .fibu-cat-tabs, .fibu-layout.pos-right .fibu-cat-tabs { flex-direction: row; flex-wrap: wrap; min-width: 0; }
}

/* Gast-E-Mail-Liste (max. 5, einzeln anzeigen) */
.email-list { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.email-row { display: flex; gap: 8px; width: 100%; align-items: center; }
.email-row .ge-input { flex: 1; min-width: 240px; }
.email-row .ge-del { flex: 0 0 auto; font-size: 16px; line-height: 1; padding: 4px 10px; }
.email-list .ge-add { margin-top: 2px; }

/* Importierte Bank-Auszüge als Chips mit Löschen-Knopf */
.bank-file { display: inline-flex; align-items: center; gap: 2px; margin-right: 10px; white-space: nowrap; }
.bank-file .bank-del { padding: 2px 7px; font-size: 15px; line-height: 1; }

/* Mandant: Kontext-/OCR-Korrektur im Fliegenden Fenster */
.ctx-edit { display: flex; flex-direction: column; gap: 8px; }
.ctx-row { display: flex; align-items: center; gap: 10px; }
.ctx-row label { flex: 0 0 110px; color: var(--muted); font-size: 13px; }
.ctx-row input { flex: 1; }
.ctx-lbl { margin-top: 6px; color: var(--muted); font-size: 13px; }
.ctx-edit textarea.c-ocr { width: 100%; font-family: ui-monospace, Menlo, monospace; font-size: 12px; line-height: 1.4; resize: vertical; }
.ctx-actions { margin-top: 4px; }

/* Personalliste (Lohn-Admin) */
.pers-box { border: 1px solid var(--line); border-radius: 8px; padding: 10px; }
.pers-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pers-list { margin-top: 6px; max-height: 220px; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.pers-row { font-size: 13px; padding: 2px 4px; border-bottom: 1px solid var(--line); }
.pers-nr { display: inline-block; min-width: 70px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* Admin-Testansicht („Als Mandant ansehen") */
.imp-bar { display: flex; align-items: center; gap: 12px; background: #b45309; color: #fff; padding: 8px 16px; font-size: 14px; }
.imp-bar b { color: #fff; }
.imp-exit { margin-left: auto; background: #fff; color: #b45309; border: none; border-radius: 6px; padding: 5px 14px; font-weight: 600; cursor: pointer; }
.imp-exit:hover { background: #ffe9d5; }

/* kDrive-Hauptordner-Auswahl */
.kd-field { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.kd-cur { font-size: 13px; }
.kp-crumb { font-size: 13px; margin-bottom: 8px; }
.kp-crumb a { color: var(--accent-2); text-decoration: none; }
.kp-list { max-height: 300px; overflow-y: auto; border: 1px solid var(--line); border-radius: 8px; padding: 6px; }
.kp-row a { display: block; padding: 5px 8px; border-radius: 6px; text-decoration: none; color: inherit; }
.kp-row a:hover { background: rgba(127,127,127,.12); }
.kp-actions { display: flex; align-items: center; gap: 8px; margin-top: 12px; }

/* Sortier-/Filter-Tabellen */
.tbl-tools { margin: 2px 0 6px; }
.tbl-filter { max-width: 240px; padding: 5px 9px; border: 1px solid var(--line); border-radius: 6px; font-size: 13px; }
th.th-sort { cursor: pointer; user-select: none; white-space: nowrap; }
th.th-sort:hover { text-decoration: underline; }
th.th-sort[data-sort=asc]::after { content: " ▲"; font-size: 10px; opacity: .65; }
th.th-sort[data-sort=desc]::after { content: " ▼"; font-size: 10px; opacity: .65; }

/* Personalbogen: Gruppen als (grüne) Reiter + großes Notizfeld */
.pb-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.pb-tab { border: 1px solid var(--line); border-radius: 8px; padding: 7px 13px; cursor: pointer; font-size: 13px; font-weight: 600; }
/* Rot solange Pflichtfelder fehlen … */
.pb-tab.todo { background: #fdecec; border-color: #d9534f; color: #a12a22; }
.pb-tab.todo.on { background: #d9534f; border-color: #d9534f; color: #fff; }
/* … grün wenn alle Pflichtfelder ausgefüllt */
.pb-tab.done { background: #e6f6ec; border-color: #2e9d5b; color: #1c6e3f; }
.pb-tab.done.on { background: #2e9d5b; border-color: #2e9d5b; color: #fff; }
/* Reiter OHNE Pflichtfelder: blau (freiwillig ausfüllbar, nicht „fertig") */
.pb-tab.none { background: #eaf2fb; border-color: #3b82c4; color: #1f5a8a; }
.pb-tab.none.on { background: #3b82c4; border-color: #3b82c4; color: #fff; }
.pb-tab-c { opacity: .85; font-size: 11px; margin-left: 3px; }
.pb-sub { margin: 14px 0 4px; font-size: 14px; color: var(--accent-2); border-bottom: 1px solid var(--line); padding-bottom: 3px; }
.pb-sub:first-child { margin-top: 0; }
.field.field-wide { flex-basis: 100%; width: 100%; grid-column: 1 / -1; }
.pb-textarea { width: 100%; min-height: 130px; resize: vertical; font-family: inherit; font-size: 14px; padding: 8px; }

/* Personalbogen: leere Pflichtfelder rot umrahmen + ungültige Nummern */
.field input.fld-req-empty, .field select.fld-req-empty, .field textarea.fld-req-empty { border-color: #d9534f; box-shadow: 0 0 0 2px rgba(217,83,79,.15); }
.field input.fld-bad, .field select.fld-bad { border-color: #d9534f; background: #fff5f5; }

/* Datei-Dialog „Frage an Finverta" – Nachrichten */
.msg-compose { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.msg-compose textarea, .msg-reply textarea { width: 100%; resize: vertical; font-family: inherit; font-size: 14px;
  padding: 8px 10px; background: var(--surface-2); color: var(--text); border: 1px solid var(--border); border-radius: 8px; }
.msg-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.msg { border: 1px solid var(--border); border-left: 4px solid var(--border); border-radius: 10px;
  padding: 12px 14px; margin-bottom: 12px; background: var(--surface-2); }
.msg.open { border-left-color: var(--danger); }
.msg.done { border-left-color: var(--ok); }
.msg-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; margin-bottom: 4px; }
.msg-body { font-size: 14px; line-height: 1.4; white-space: pre-wrap; }
.msg-file { display: inline-block; margin-left: 6px; color: var(--accent-2); font-size: 13px; white-space: nowrap; }
.msg-answer { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--border); }
.msg-reply { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }

/* Suche im Feed „Dokumente & Rückfragen" */
.ei-such { display: inline-flex; align-items: center; gap: 8px; flex: 1 1 220px; min-width: 180px; }
.ei-suche { flex: 1; min-width: 0; padding: 6px 12px; font-size: 13px; border-radius: 999px;
  border: 1.5px solid color-mix(in srgb, var(--text) 32%, transparent); background: var(--surface);
  color: var(--text); }
.ei-suche:focus { outline: none; border-color: var(--accent); }
.ei-treffer { font-size: 12px; color: var(--text-dim); white-space: nowrap; }

/* Entsperren: Zweck auswählen */
.es-wahl { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.es-wahl button { flex: 1 1 220px; text-align: left; line-height: 1.35; padding: 10px 14px; }
.es-hint { display: block; font-size: 11.5px; font-weight: 400; opacity: .8; margin-top: 2px; }

/* Personalbogen: Eintritt in einem anderen Monat als dem geöffneten */
.fld-monat { border-color: var(--danger) !important; box-shadow: 0 0 0 2px rgba(229,83,75,.25); }
.pb-monatswarnung { border-left: 5px solid var(--danger); }
.pb-versteckt { margin-top: 14px; padding: 10px 12px; border: 1px solid var(--border);
  border-left: 5px solid var(--danger); border-radius: 8px; background: var(--surface-2); font-size: 13px; }
.pb-vtab { width: 100%; margin-top: 6px; border-collapse: collapse; }
.pb-vtab td { padding: 4px 6px; border-top: 1px solid var(--border); }
.pb-zukunft { border-left-color: var(--accent) !important; }

/* ===== Auswertungen (Kanzlei): Baum Jahr → Monat → Dateien, eine schmale Zeile je Datei ===== */
.aw-jahr { margin: 6px 0; }
.aw-jahr > summary, .aw-monat > summary {
  display: flex; align-items: center; gap: 8px; cursor: pointer; list-style: none;
  padding: 5px 8px; border-radius: 6px; user-select: none; }
.aw-jahr > summary::-webkit-details-marker, .aw-monat > summary::-webkit-details-marker { display: none; }
.aw-jahr > summary::before, .aw-monat > summary::before {
  content: "›"; display: inline-block; width: 10px; color: var(--text-dim);
  transition: transform .12s ease; font-weight: 700; }
.aw-jahr[open] > summary::before, .aw-monat[open] > summary::before { transform: rotate(90deg); }
.aw-jahr > summary { font-size: 14px; font-weight: 700; background: var(--surface-2); }
.aw-monat { margin: 2px 0 2px 14px; }
.aw-monat > summary { font-size: 12.5px; font-weight: 600; color: var(--text-dim); }
.aw-jahr > summary:hover, .aw-monat > summary:hover { background: color-mix(in srgb, var(--text) 7%, transparent); }
.aw-knoten { flex: 0 0 auto; }
.aw-anz { font-size: 11px; font-weight: 400; color: var(--text-dim);
  border: 1px solid var(--border); border-radius: 999px; padding: 0 6px; }
.aw-msel { margin-left: auto; background: none; border: 0; box-shadow: none; cursor: pointer;
  font-size: 11px; color: var(--accent); padding: 2px 6px; }
.aw-msel:hover { text-decoration: underline; }

.aw-zeile { display: flex; align-items: center; gap: 8px; margin-left: 28px;
  padding: 2px 8px; border-top: 1px solid color-mix(in srgb, var(--text) 8%, transparent);
  font-size: 12.5px; line-height: 1.9; }
.aw-zeile:hover { background: color-mix(in srgb, var(--text) 5%, transparent); }
.aw-zeile.zurueckgezogen { opacity: .55; }
.aw-zeile input[type=checkbox] { margin: 0; flex: 0 0 auto; }
.aw-bez { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aw-chip { flex: 0 0 auto; font-size: 10.5px; color: var(--text-dim);
  border: 1px solid var(--border); border-radius: 999px; padding: 0 6px; }
.aw-note { flex: 0 0 auto; cursor: help; }
.aw-zeile .badge { flex: 0 0 auto; font-size: 10px; padding: 0 5px; }
.aw-akt { flex: 0 0 auto; display: inline-flex; gap: 1px; opacity: .45; transition: opacity .12s ease; }
.aw-zeile:hover .aw-akt { opacity: 1; }
.aw-ic { background: none; border: 0; box-shadow: none; cursor: pointer; padding: 1px 5px;
  font-size: 13px; line-height: 1; color: var(--text-dim); text-decoration: none; border-radius: 4px; }
.aw-ic:hover { background: color-mix(in srgb, var(--text) 12%, transparent); color: var(--text); }
.aw-ic.gefahr:hover { background: var(--danger); color: #fff; }

/* Mandantensicht: Sammeldownload je Monat bzw. Bereich */
.ausw-dl { display: inline-flex; gap: 4px; margin-left: auto; }
.ausw-dl .btn, .ausw-lohn-h .ausw-zip { font-size: 11.5px; padding: 3px 9px; }
.ausw-month-sum .ausw-dl { margin-left: 12px; }
.aw-bez.klickbar { cursor: pointer; }
.aw-bez.klickbar:hover { text-decoration: underline; }
.aw-monat > summary .badge, .aw-monat > summary .btn { margin-left: 6px; }
.aw-monat > summary .btn { font-size: 11px; padding: 2px 9px; }

/* Lernliste neuer Kategorie-Begriffe */
.kat-neu { border-left: 5px solid var(--danger); }
.kat-bg { display: flex; align-items: center; gap: 10px; padding: 6px 0;
  border-top: 1px solid color-mix(in srgb, var(--text) 10%, transparent); }
.kat-bg:first-child { border-top: 0; }
.kat-bg-wort { font-weight: 600; flex: 0 0 auto; }
.kat-bg-sel { margin-left: auto; }
.kat-bg .btn { font-size: 12px; padding: 4px 10px; }
.ac-badge { display: inline-block; min-width: 16px; padding: 0 5px; border-radius: 999px;
  background: var(--danger); color: #fff; font-size: 10.5px; line-height: 16px; font-weight: 700; }
.kat-hinweis h2 { font-size: 16px; margin: 0 0 4px; }
