/* ========================================== */
/* FINANCIAL STATEMENTS CASE - STYLES        */
/* ========================================== */

:root {
    /* Haufe Finance Office Premium — Farbwelt des Echtprodukts (products.haufe.de) */
    --navy: #1d2228;
    --primary: #1a66c2;
    --primary-dark: #124d99;
    --primary-light: #4d8ad6;
    --panel: #dbe8f8;
    --panel-soft: #edf3fb;
    --chipb: #c3d7f0;
    --success: #1e8e5a;
    --success-bg: #e9f6ef;
    --warning: #f59e0b;
    --warning-bg: #fffbeb;
    --danger: #ef4444;
    --danger-bg: #fef2f2;
    --info: #1a66c2;
    --info-bg: #edf3fb;
    --gray-50: #f7f8fa;
    --gray-100: #f0f2f5;
    --gray-200: #e2e5ea;
    --gray-300: #cdd3da;
    --gray-400: #98a1ab;
    --gray-500: #66717c;
    --gray-600: #4d565f;
    --gray-700: #363e46;
    --gray-800: #23282e;
    --gray-900: #16191d;
    --font-family: "Segoe UI", 'Inter', system-ui, -apple-system, Roboto, Arial, sans-serif;
    --topbar-h: 64px;
    --subbar-h: 44px;
    --rail-w: 48px;
    --radius: 6px;
    --radius-lg: 8px;
    --radius-xl: 12px;
    --shadow-sm: 0 1px 2px rgba(20,30,40,0.05);
    --shadow: 0 1px 3px rgba(20,30,40,0.07);
    --shadow-md: 0 3px 8px rgba(20,30,40,0.08);
    --shadow-lg: 0 8px 20px rgba(20,30,40,0.12);
    --transition: all 0.2s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-family);
    background: #fff;
    color: var(--gray-800);
    line-height: 1.5;
}

/* ========================================== */
/* HAUFE TOPBAR                               */
/* Optik wie das Echtprodukt Haufe Finance    */
/* Office Premium (products.haufe.de)         */
/* ========================================== */

.fs-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--topbar-h);
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 0 24px;
    background: #fff;
    border-bottom: 1px solid var(--gray-200);
    z-index: 200;
}

.fs-topbar-brand { line-height: 1.15; white-space: nowrap; }

.fs-topbar-logo {
    font-weight: 800;
    letter-spacing: 0.4px;
    color: var(--navy);
    font-size: 1.05rem;
}

.fs-topbar-product {
    font-size: 1.02rem;
    font-weight: 400;
    color: var(--navy);
}

.fs-demo-badge {
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: #fff3d6;
    color: #8a6100;
    border: 1px solid #f0d590;
    border-radius: 6px;
    padding: 2px 8px;
    margin-left: 8px;
    vertical-align: 2px;
    white-space: nowrap;
}

/* Zentrierte Suche wie im Echtprodukt */
.fs-search-wrap {
    flex: 1;
    display: flex;
    justify-content: center;
    min-width: 0;
}

.fs-search {
    width: min(560px, 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 1px solid #b9c2cc;
    border-radius: 999px;
    padding: 9px 18px;
    color: var(--gray-500);
    font-style: italic;
    font-size: 0.88rem;
}

.fs-search svg { flex-shrink: 0; color: var(--gray-600); }

/* ========================================== */
/* SUBBAR (Zurück + Breadcrumb + Werkzeuge)   */
/* ========================================== */

.fs-subbar {
    position: fixed;
    top: var(--topbar-h);
    left: 0;
    right: 0;
    height: var(--subbar-h);
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 16px;
    background: #fff;
    border-bottom: 1px solid var(--gray-200);
    z-index: 190;
}

.fs-back-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 1px solid var(--primary);
    color: var(--primary);
    background: #fff;
    border-radius: 999px;
    padding: 4px 14px 4px 10px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: var(--transition);
}

.fs-back-pill:hover { background: var(--panel-soft); }

.fs-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.8rem;
    color: var(--gray-600);
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
}

.fs-bc-link { color: var(--gray-600); }
.fs-bc-sep { color: var(--gray-400); }
.fs-bc-current { color: var(--gray-800); font-weight: 600; }

.fs-subbar-tools {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 2px;
}

.fs-subbar-tools button {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    border-radius: var(--radius);
    color: var(--gray-600);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.fs-subbar-tools button:hover { background: var(--gray-100); color: var(--gray-800); }

/* ========================================== */
/* ICON-LEISTE LINKS (wie im Echtprodukt)     */
/* ========================================== */

.fs-rail {
    position: fixed;
    left: 0;
    top: calc(var(--topbar-h) + var(--subbar-h));
    bottom: 0;
    width: var(--rail-w);
    background: #fff;
    border-right: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0;
    gap: 4px;
    z-index: 110;
}

.fs-rail-btn {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    border-radius: var(--radius);
    color: var(--gray-500);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.fs-rail-btn:hover { background: var(--gray-100); color: var(--gray-700); }

.fs-rail-btn.active {
    background: var(--panel-soft);
    color: var(--primary);
}

.fs-rail-collapse { margin-top: auto; }

/* KI-Status: die Automatisierung sichtbar "am Leben" */
.fs-ki-live {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--success-bg);
    border: 1px solid #bfe3cf;
    border-radius: 999px;
    padding: 7px 14px;
    font-size: 0.78rem;
    color: #14563a;
    font-weight: 600;
    white-space: nowrap;
}

.fs-ki-live-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--success);
    animation: kiPulse 2s ease-in-out infinite;
}

@keyframes kiPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(30,142,90,0.45); }
    50% { box-shadow: 0 0 0 6px rgba(30,142,90,0); }
}

.fs-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

@media (prefers-reduced-motion: reduce) {
    .fs-ki-live-dot { animation: none; }
}

/* ========================================== */
/* APP LAYOUT (Sidebar + Content)             */
/* ========================================== */

.fs-app {
    display: flex;
    height: 100vh;
    padding-top: calc(var(--topbar-h) + var(--subbar-h));
    overflow: hidden;
}

.fs-sidebar {
    position: fixed;
    left: var(--rail-w);
    top: calc(var(--topbar-h) + var(--subbar-h));
    bottom: 0;
    width: 260px;
    background: #fff;
    border-right: 1px solid var(--gray-200);
    overflow-y: auto;
    z-index: 100;
    display: flex;
    flex-direction: column;
}

.fs-content-area {
    flex: 1;
    margin-left: calc(var(--rail-w) + 260px);
    display: flex;
    height: calc(100vh - var(--topbar-h) - var(--subbar-h));
    overflow: hidden;
}

/* ========== SIDEBAR STYLES ========== */

.fs-sb { display: flex; flex-direction: column; height: 100%; }

.fs-sb-brand {
    padding: 0.75rem 0.75rem 0.85rem;
    border-bottom: 1px solid var(--gray-100);
}
.fs-sb-smart {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--panel);
    color: var(--gray-800);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.5rem 0.65rem;
    border-radius: var(--radius);
    margin-bottom: 0.65rem;
}
.fs-sb-smart svg { color: var(--primary); flex-shrink: 0; }
.fs-sb-logo {
    font-size: 15px;
    font-weight: 700;
    color: var(--gray-800);
    margin: 0 0 0 0.65rem;
}
.fs-sb-title {
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--gray-500);
    margin: 3px 0 0 0.65rem;
    font-weight: 500;
}

.fs-sb-company {
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid var(--gray-100);
}
.fs-sb-company-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--gray-800);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.fs-sb-company-year {
    font-size: 0.7rem;
    color: var(--gray-500);
    margin-top: 0.1rem;
}

.fs-sb-areas { flex: 1; overflow-y: auto; padding: 0.5rem 0; }

.fs-sb-divider {
    padding: 0.6rem 1.25rem 0.25rem;
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gray-400);
    border-top: 1px solid var(--gray-100);
    margin-top: 0.5rem;
}

.fs-sb-dmnote {
    margin: 0.6rem 1.1rem 0;
    padding: 0.6rem 0.7rem;
    font-size: 0.72rem;
    line-height: 1.45;
    color: var(--gray-500);
    background: var(--gray-50, #f8fafc);
    border: 1px solid var(--gray-100);
    border-radius: 8px;
}

.fs-sb-area { margin-bottom: 0.25rem; }
/* Überschriften (Captions): Jahresabschluss · Aktiva · Passiva · GuV · … —
   jede mit einer feinen Trennlinie, darunter die Arbeitsbereiche. */
.fs-sb-area + .fs-sb-area { border-top: 1px solid var(--gray-100); padding-top: 0.15rem; margin-top: 0.35rem; }
.fs-sb-area-header { letter-spacing: 0.08em; }

.fs-sb-area-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.25rem;
    color: var(--gray-500);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: color 0.15s;
}
.fs-sb-area-header:hover { color: var(--gray-800); }
.fs-sb-area-header.expanded { color: var(--gray-700); }
.fs-sb-area-arrow { font-size: 0.55rem; width: 0.75rem; }

/* Zusatzmodule hinter einem Schloss (Steuern · Steuerung & Konzern ·
   Prüfung & Offenlegung): Schloss rechts vom Titel, Klick öffnet das
   Passwortfenster. */
.fs-sb-area-header.locked { color: var(--gray-400); }
.fs-sb-area-header.locked:hover, .fs-sb-area-header.locked:focus-visible { color: var(--primary); }
.fs-sb-lock { flex: 0 0 auto; margin-left: auto; opacity: 0.85; }
.fs-addon-mask { position: fixed; inset: 0; z-index: 1200; background: rgba(17, 24, 39, 0.45); display: flex; align-items: center; justify-content: center; padding: 1rem; }
.fs-addon-card { background: #fff; border: 1px solid var(--gray-200); border-top: 3px solid var(--primary); border-radius: 6px; width: min(380px, 100%); padding: 1.1rem 1.25rem 1rem; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18); }
.fs-addon-card.shake { animation: fs-addon-shake 0.3s; }
@keyframes fs-addon-shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
@media (prefers-reduced-motion: reduce) { .fs-addon-card.shake { animation: none; } }
.fs-addon-kicker { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.66rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gray-500); }
.fs-addon-card h3 { margin: 0.35rem 0 0.3rem; font-size: 1.05rem; color: var(--gray-900); }
.fs-addon-card p { margin: 0 0 0.8rem; font-size: 0.86rem; color: var(--gray-600); line-height: 1.45; }
.fs-addon-lbl { display: block; font-size: 0.72rem; font-weight: 600; color: var(--gray-600); margin-bottom: 0.25rem; }
.fs-addon-in { width: 100%; box-sizing: border-box; padding: 0.5rem 0.6rem; border: 1px solid var(--gray-300); border-radius: 4px; font: inherit; font-size: 0.92rem; }
.fs-addon-in:focus { outline: 2px solid var(--primary-light); outline-offset: 1px; border-color: var(--primary); }
.fs-addon-err { min-height: 1.1rem; margin-top: 0.35rem; font-size: 0.8rem; color: #b91c1c; }
.fs-addon-actions { display: flex; justify-content: flex-end; gap: 0.5rem; margin-top: 0.6rem; }

.fs-sb-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.75rem 0.45rem 1.6rem;
    margin: 1px 0.6rem;
    color: var(--gray-700);
    font-size: 0.82rem;
    text-decoration: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.15s;
}
.fs-sb-item:hover {
    background: var(--gray-100);
    color: var(--gray-900);
}
.fs-sb-item.active {
    background: var(--panel);
    color: var(--primary);
    font-weight: 600;
}
.fs-sb-item.placeholder {
    opacity: 0.45;
    cursor: default;
}
.fs-sb-item.placeholder:hover { background: none; color: var(--gray-700); }

/* Dashboard als übergeordneter „Haus"-Eintrag (Solo, ganz oben) */
.fs-sb-solo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.75rem;
    margin: 0.2rem 0.6rem 0.5rem;
    color: var(--gray-800);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.15s;
}
.fs-sb-solo svg { color: var(--primary); flex: none; }
.fs-sb-solo:hover { background: var(--gray-100); }
.fs-sb-solo.active { background: var(--panel); color: var(--primary); }
.fs-sb-solo.active svg { color: var(--primary); }

/* „Zuletzt hier" (Okt. 2026): Sprungzeile oben in der Leiste, Punkt an jeder
   zugeklappten Kopfzeile darüber, kleine Pille am Eintrag selbst. */
.fs-sb-zuletzt {
    display: flex; align-items: center; gap: 0.55rem;
    margin: 0.35rem 0.6rem 0.5rem; padding: 0.45rem 0.7rem;
    border: 1px solid var(--gray-200); border-radius: 6px; background: #fff;
    color: var(--gray-700); text-decoration: none; cursor: pointer;
}
.fs-sb-zuletzt:hover { border-color: var(--primary); }
.fs-sb-zuletzt-ic { color: var(--primary); font-size: 0.85rem; flex: none; }
.fs-sb-zuletzt-txt { display: flex; flex-direction: column; min-width: 0; }
.fs-sb-zuletzt-k { font-size: 0.62rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gray-400); }
.fs-sb-zuletzt-w { font-size: 0.78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fs-sb-zmark {
    width: 6px; height: 6px; border-radius: 50%; background: var(--primary);
    flex: none; margin-left: 0.35rem; display: inline-block;
}
.expanded > .fs-sb-zmark { display: none; }
.fs-sb-zpill {
    margin-left: auto; font-size: 0.6rem; padding: 0 0.35rem; border-radius: 8px;
    background: var(--panel, #eef3fa); color: var(--primary); flex: none;
}

/* Zwischenüberschriften unter dem Jahresabschluss: Aktiva · Passiva ·
   GuV-Positionen · Berichterstattung */
.fs-sb-group { margin-top: 0.35rem; }
.fs-sb-grouphead {
    display: flex; align-items: center; gap: 0.4rem;
    padding: 0.4rem 1.25rem 0.2rem 1.6rem; margin: 0 0.6rem;
    font-size: 0.66rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--gray-400); cursor: pointer; border-top: 1px dashed var(--gray-100);
}
.fs-sb-grouphead:hover, .fs-sb-grouphead.expanded { color: var(--gray-600); }
.fs-sb-grouparrow { font-size: 0.5rem; width: 0.7rem; flex: none; }
.fs-sb-groupitems .fs-sb-subheader, .fs-sb-groupitems > .fs-sb-item { padding-left: 2rem; }
.fs-sb-groupitems .fs-sb-subitems .fs-sb-item:not(.fs-sb-spiegellabel):not(.fs-sb-postitem) { padding-left: 3.5rem; }
.fs-sb-groupitems .fs-sb-spiegelrow { padding-left: 2.9rem; }
.fs-sb-groupitems .fs-sb-subitems .fs-sb-postitem { padding-left: 4.3rem; }

/* Verschachtelte Untergruppen (Bilanz-/GuV-Positionen unter Jahresabschluss) */
.fs-sb-subarea { margin: 1px 0.6rem; }
.fs-sb-subheader {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.6rem 0.4rem 1.6rem;
    color: var(--gray-600);
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.15s;
}
.fs-sb-subheader:hover { background: var(--gray-100); color: var(--gray-800); }
.fs-sb-subarrow { font-size: 0.6rem; color: var(--gray-400); width: 0.8rem; flex: none; }
.fs-sb-sublabel { text-transform: none; letter-spacing: 0; }
/* Blätter innerhalb einer Untergruppe zusätzlich einrücken */
.fs-sb-subitems .fs-sb-item { padding-left: 2.5rem; margin-left: 0; margin-right: 0; font-size: 0.8rem; }

/* Rückstellungsspiegel als aufklappbarer Knoten + dynamische Arten darunter.
   Bewusst gegenüber „Cockpit" eingerückt und etwas kleiner (Baum-Hierarchie). */
.fs-sb-spiegelrow { display: flex; align-items: center; padding-left: 2rem; }
.fs-sb-spiegelarrow {
    border: none; background: transparent; color: var(--gray-400); cursor: pointer;
    font-size: 0.55rem; width: 1.1rem; padding: 0.2rem 0; flex: none; line-height: 1;
}
.fs-sb-spiegelarrow:hover { color: var(--primary); }
.fs-sb-spiegellabel { flex: 1; }
.fs-sb-subitems .fs-sb-spiegellabel { padding-left: 0.25rem; font-size: 0.76rem; }
.fs-sb-postitems { margin-bottom: 0.15rem; }
.fs-sb-subitems .fs-sb-postitem {
    padding-left: 3.4rem; display: flex; align-items: center; gap: 0.45rem;
    font-size: 0.73rem;
}
.fs-sb-postdot { width: 6px; height: 6px; border-radius: 50%; background: var(--gray-300); flex: none; }
.fs-sb-postdot.vorl { background: #d9a441; }
.fs-sb-postlabel { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fs-sb-postvorl {
    margin-left: auto; font-size: 0.58rem; color: #9a6a12; background: #fbf1dd;
    padding: 0.05rem 0.3rem; border-radius: 3px; flex: none;
}

.fs-sb-soon {
    margin-left: auto;
    font-size: 0.6rem;
    background: var(--gray-100);
    color: var(--gray-500);
    padding: 0.1rem 0.35rem;
    border-radius: 3px;
    font-weight: 500;
}
.fs-sb-item-icon { font-size: 0.85rem; }

.fs-sb-bottom {
    border-top: 1px solid var(--gray-100);
    padding: 0.5rem 0;
    margin-top: auto;
}
.fs-sb-bottom .fs-sb-item { padding-left: 0.75rem; }

/* ========================================== */
/* HEADER (hidden - replaced by sidebar)      */
/* ========================================== */

.fs-header {
    display: none;
}

.fs-header-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.btn-back {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 0.85rem;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-back:hover {
    background: rgba(255,255,255,0.25);
}

.fs-header-title h1 {
    font-size: 1.25rem;
    font-weight: 700;
}

.fs-header-subtitle {
    font-size: 0.85rem;
    opacity: 0.9;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.fs-header-kpis {
    display: flex;
    gap: 1.5rem;
}

.header-kpi {
    text-align: center;
    padding: 0.25rem 0.75rem;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius);
    min-width: 100px;
}

.header-kpi-value {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
}

.header-kpi-label {
    font-size: 0.7rem;
    opacity: 0.8;
}

/* ========================================== */
/* TAB NAVIGATION (hidden - replaced by sidebar) */
/* ========================================== */

.fs-tabs { display: none; }
.fs-tab { display: none; }

.fs-tab-icon {
    font-size: 1rem;
}

/* ========================================== */
/* MAIN LAYOUT                                */
/* ========================================== */

.fs-main {
    display: flex;
    flex: 1;
    min-width: 0;
    height: 100%;
    min-height: 0;
}

.fs-content {
    flex: 1;
    min-width: 0;
    padding: 1.5rem 2rem;
    overflow-y: auto;
    overflow-x: hidden;
    animation: fadeIn 0.3s ease;
    min-height: 0;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========================================== */
/* AI SIDEBAR                                 */
/* ========================================== */

.fs-ai-sidebar {
    width: 340px;
    min-width: 340px;
    flex-shrink: 0;
    background: white;
    border-left: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
    transition: width 0.3s ease, opacity 0.2s ease;
    overflow: hidden;
    height: 100%;
    min-height: 0;
}

.fs-ai-sidebar.visible {
    display: flex;
}

.fs-ai-sidebar.collapsed {
    width: 0;
    min-width: 0;
    border-left: none;
    opacity: 0;
    padding: 0;
}

.ai-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--gray-200);
    background: var(--gray-50);
}

.ai-sidebar-header h3 {
    font-size: 1rem;
    font-weight: 600;
}

.ai-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-height: 0;
}

.ai-message {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-lg);
    font-size: 0.85rem;
    line-height: 1.6;
}

.ai-message-system {
    background: var(--info-bg);
    color: var(--gray-700);
    border: 1px solid var(--chipb);
}

.ai-message-user {
    background: var(--primary);
    color: white;
    align-self: flex-end;
    max-width: 85%;
}

.ai-message-assistant {
    background: var(--gray-100);
    color: var(--gray-800);
    border: 1px solid var(--gray-200);
}

.ai-message-assistant h4 {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
}

.ai-message-assistant ul {
    margin: 0.5rem 0;
    padding-left: 1.25rem;
}

.ai-message-assistant li {
    margin-bottom: 0.25rem;
}

.ai-chat-input {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--gray-200);
    background: var(--gray-50);
}

.ai-chat-input input {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-family: var(--font-family);
}

.ai-chat-input input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26,102,194,0.1);
}

/* ========================================== */
/* COMPANY BANNER                             */
/* ========================================== */

.company-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.75rem;
    background: var(--panel-soft);
    border: 1px solid var(--chipb);
    border-radius: var(--radius-xl);
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
    flex-wrap: wrap;
    gap: 1rem;
}

.company-banner-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.company-logo {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
}

.company-info h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.15rem;
}

.company-meta {
    font-size: 0.8rem;
    color: var(--gray-500);
    font-weight: 400;
}

.company-banner-right {
    display: flex;
    gap: 1.5rem;
}

.company-stat {
    text-align: center;
    padding: 0.35rem 0.75rem;
    background: white;
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    min-width: 90px;
}

.company-stat-label {
    display: block;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray-500);
    font-weight: 600;
}

.company-stat-value {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--gray-800);
}

/* ========================================== */
/* DASHBOARD                                  */
/* ========================================== */

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.upload-section {
    grid-column: 1 / -1;
}

.upload-zone {
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius-xl);
    padding: 1.5rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: white;
}

.upload-zone:hover, .upload-zone.drag-over {
    border-color: var(--primary);
    background: var(--info-bg);
}

.upload-zone-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.upload-zone h3 {
    font-size: 1.1rem;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.upload-zone p {
    color: var(--gray-500);
    font-size: 0.85rem;
}

.upload-formats {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.format-badge {
    padding: 0.25rem 0.75rem;
    background: var(--gray-100);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-600);
}

.upload-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.75rem;
}

.status-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
}

.status-card h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--gray-700);
}

.status-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius);
    background: var(--gray-50);
}

.status-item .status-label {
    font-size: 0.85rem;
    font-weight: 500;
}

.status-badge {
    padding: 0.15rem 0.6rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
}

.status-badge.filled {
    background: var(--success-bg);
    color: var(--success);
}

.status-badge.empty {
    background: var(--gray-100);
    color: var(--gray-400);
}

.status-badge.partial {
    background: var(--warning-bg);
    color: var(--warning);
}

.quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.quick-action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gray-700);
    transition: var(--transition);
    font-family: var(--font-family);
}

.quick-action-btn:hover {
    background: var(--info-bg);
    border-color: var(--primary);
    color: var(--primary);
}

/* Template download */
.template-download {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.template-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.template-info-icon { font-size: 1.5rem; }

.template-info h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-700);
}

.template-info p {
    font-size: 0.8rem;
    color: var(--gray-500);
}

/* ========================================== */
/* FINANCIAL TABLES (Bilanz, GuV, CF)         */
/* ========================================== */

.fs-table-container {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
    overflow: hidden;
}

.fs-table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
}

.fs-table-header h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-800);
}

.fs-table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Toggle Button Group */
.toggle-group {
    display: flex;
    background: var(--gray-100);
    border-radius: var(--radius);
    padding: 2px;
    border: 1px solid var(--gray-200);
}

.toggle-btn {
    padding: 0.4rem 1rem;
    border: none;
    background: none;
    border-radius: calc(var(--radius) - 2px);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--gray-500);
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-family);
}

.toggle-btn.active {
    background: white;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
    font-weight: 600;
}

/* Financial Table */
.fs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.fs-table thead th {
    padding: 0.7rem 1rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray-500);
    background: var(--gray-50);
    border-bottom: 2px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 5;
}

.fs-table thead th:not(:first-child) {
    text-align: right;
}

.fs-table tbody tr {
    border-bottom: 1px solid var(--gray-100);
    transition: background 0.15s ease;
}

.fs-table tbody tr:hover {
    background: var(--gray-50);
}

.fs-table tbody td {
    padding: 0.55rem 1rem;
    color: var(--gray-700);
}

.fs-table tbody td:not(:first-child) {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

/* Row Levels */
.fs-table tr.level-0 td {
    padding-top: 0.75rem;
    padding-bottom: 0.55rem;
}

.fs-table tr.level-0 td:first-child {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--gray-900);
}

.fs-table tr.level-1 td:first-child {
    padding-left: 2rem;
    font-weight: 600;
    color: var(--gray-800);
}

.fs-table tr.level-2 td:first-child {
    padding-left: 3.5rem;
    font-weight: 400;
}

.fs-table tr.level-3 td:first-child {
    padding-left: 5rem;
    font-weight: 400;
    font-size: 0.82rem;
    color: var(--gray-600);
}

/* Summenzeilen — Bundesanzeiger-Optik */
.fs-table tr.row-sum {
    background: var(--gray-50);
    font-weight: 700;
}

.fs-table tr.row-sum td {
    border-top: 1px solid var(--gray-400);
    border-bottom: 1px solid var(--gray-400);
    color: var(--gray-900);
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
}

/* Gesamtsumme — Doppellinie oben */
.fs-table tr.row-total {
    background: var(--gray-50);
}

.fs-table tr.row-total td {
    font-weight: 700;
    font-size: 0.9rem;
    border-top: 3px double var(--gray-800);
    color: var(--gray-900);
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
}

/* Editable Cells */
.fs-table td.editable {
    position: relative;
}

.fs-table td.editable input {
    width: 100%;
    border: none;
    background: transparent;
    text-align: right;
    font-size: 0.85rem;
    font-family: var(--font-family);
    font-variant-numeric: tabular-nums;
    padding: 0;
    color: var(--gray-700);
}

.fs-table td.editable input:focus {
    outline: none;
    background: #fffde7;
    border-radius: 2px;
    box-shadow: 0 0 0 2px rgba(26,102,194,0.15);
}

/* Change indicators */
.change-positive {
    color: var(--success) !important;
}

.change-negative {
    color: var(--danger) !important;
}

.change-neutral {
    color: var(--gray-400) !important;
}

.change-cell {
    font-size: 0.8rem;
}

/* ========================================== */
/* KENNZAHLEN / VFE ANALYSIS                  */
/* ========================================== */

.vfe-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.vfe-section {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
    overflow: hidden;
}

.vfe-section-header {
    padding: 1rem 1.25rem;
    font-weight: 700;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--gray-200);
}

.vfe-section-header.vermögen {
    background: linear-gradient(135deg, var(--panel-soft), var(--panel));
    color: var(--primary-dark);
}

.vfe-section-header.finanz {
    background: linear-gradient(135deg, #e9f6ef, #d8eee2);
    color: #14563a;
}

.vfe-section-header.ertrag {
    background: linear-gradient(135deg, #fefce8, #fef3c7);
    color: #92400e;
}

.vfe-kennzahl {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid var(--gray-100);
    transition: background 0.15s ease;
}

.vfe-kennzahl:last-child {
    border-bottom: none;
}

.vfe-kennzahl:hover {
    background: var(--gray-50);
}

.vfe-kz-info {
    flex: 1;
}

.vfe-kz-name {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gray-700);
}

.vfe-kz-formula {
    font-size: 0.7rem;
    color: var(--gray-400);
    font-style: italic;
}

.vfe-kz-values {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.vfe-kz-value {
    font-size: 1rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    min-width: 70px;
    text-align: right;
}

.vfe-kz-trend {
    font-size: 0.8rem;
    font-weight: 600;
    min-width: 50px;
    text-align: right;
}

/* Ampel System */
.ampel {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 0.4rem;
}

.ampel-green { background: var(--success); box-shadow: 0 0 4px rgba(16,185,129,0.4); }
.ampel-yellow { background: var(--warning); box-shadow: 0 0 4px rgba(245,158,11,0.4); }
.ampel-red { background: var(--danger); box-shadow: 0 0 4px rgba(239,68,68,0.4); }

/* ========================================== */
/* CASH FLOW WATERFALL CHART                  */
/* ========================================== */

.chart-container {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
    margin-bottom: 1.5rem;
}

.chart-container h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--gray-700);
}

.chart-wrapper {
    position: relative;
    height: 350px;
}

/* ========================================== */
/* BUTTONS                                    */
/* ========================================== */

.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-family);
}

.btn-primary:hover { background: var(--primary-dark); }

.btn-secondary {
    background: white;
    color: var(--primary);
    border: 1px solid var(--primary);
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-family);
}

.btn-secondary:hover {
    background: var(--panel-soft);
}

.btn-sm {
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
}

.btn-icon {
    background: none;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    padding: 0.4rem 0.75rem;
    cursor: pointer;
    font-size: 0.8rem;
    color: var(--gray-600);
    transition: var(--transition);
    font-family: var(--font-family);
}

.btn-icon:hover {
    background: var(--gray-100);
    border-color: var(--gray-400);
}

/* ========================================== */
/* SECTION HEADERS                            */
/* ========================================== */

.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .75rem 1rem;
    margin-bottom: 1.5rem;
}

.section-title h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--gray-800);
}

.section-subtitle {
    font-size: 0.85rem;
    color: var(--gray-500);
}

/* ========================================== */
/* YEAR INPUT                                 */
/* ========================================== */

.year-inputs {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    background: white;
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
}

.year-inputs label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray-600);
}

.year-inputs input {
    width: 80px;
    padding: 0.35rem 0.5rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-family: var(--font-family);
    text-align: center;
}

.year-inputs input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26,102,194,0.1);
}

/* ========================================== */
/* LOADING & EMPTY STATES                     */
/* ========================================== */

.loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 3rem;
    color: var(--gray-500);
}

.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid var(--gray-200);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--gray-500);
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* ========================================== */
/* BILANZ LAYOUT                              */
/* ========================================== */

.bilanz-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

/* Mit Abweichungsspalten: untereinander, damit 5 Spalten Platz haben */
.bilanz-layout--expanded {
    grid-template-columns: 1fr;
}

.bilanz-side h2 {
    margin-bottom: 0;
}

/* ========================================== */
/* NOTIFICATIONS / TOAST                      */
/* ========================================== */

.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-weight: 500;
    color: white;
    z-index: 1000;
    animation: slideUp 0.3s ease;
    box-shadow: var(--shadow-lg);
}

.toast-success { background: var(--success); }
.toast-error { background: var(--danger); }
.toast-info { background: var(--info); }

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Hidden file input */
.hidden-input {
    display: none;
}

/* ========================================== */
/* ANHANG & LAGEBERICHT                       */
/* ========================================== */

.anhang-container,
.lagebericht-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.anhang-section {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.anhang-section:hover {
    box-shadow: var(--shadow);
}

.anhang-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 1.25rem;
    background: linear-gradient(135deg, var(--gray-50), var(--gray-100));
    border-bottom: 1px solid var(--gray-200);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--gray-800);
}

.anhang-section-header h3 {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
    color: var(--gray-800);
}

.anhang-section-body {
    padding: 1.25rem;
}

.anhang-text {
    font-size: 0.85rem;
    line-height: 1.7;
    color: var(--gray-600);
}

.anhang-text br {
    display: block;
    margin-top: 0.25rem;
}

.anhang-edit {
    padding: 1rem 1.25rem;
}

.anhang-textarea {
    width: 100%;
    min-height: 200px;
    padding: 0.85rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--gray-700);
    resize: vertical;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.anhang-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 102, 194, 0.1);
}

.anhang-edit .btn-primary,
.anhang-edit .btn-secondary {
    margin-top: 0.75rem;
    margin-right: 0.5rem;
}

/* ========================================== */
/* ANHANG CHECKLISTE - Aufklappbar           */
/* ========================================== */

.anhang-cl-section {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.anhang-cl-section-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1rem;
    background: var(--gray-50);
    cursor: pointer;
    user-select: none;
    transition: background 0.15s;
}

.anhang-cl-section-header:hover {
    background: var(--gray-100);
}

.anhang-cl-section-arrow {
    font-size: 0.65rem;
    color: var(--gray-400);
    width: 1rem;
    text-align: center;
    flex-shrink: 0;
}

.anhang-cl-section-title {
    font-weight: 600;
    font-size: 0.85rem;
    flex: 1;
}

.anhang-cl-section-count {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-500);
    background: var(--gray-200);
    padding: 0.1rem 0.5rem;
    border-radius: 10px;
    flex-shrink: 0;
}

.anhang-cl-section-body {
    padding: 0.25rem 0;
}

.anhang-cl-group {
    padding: 0 0.75rem;
    margin-bottom: 0.25rem;
}

.anhang-cl-group-title {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--gray-500);
    padding: 0.4rem 0.25rem 0.2rem;
    border-bottom: 1px solid var(--gray-100);
    margin-bottom: 0.15rem;
}

.anhang-cl-item {
    border-radius: var(--radius);
    transition: background 0.15s;
}

.anhang-cl-item:hover {
    background: var(--gray-50);
}

.anhang-cl-item.done {
    opacity: 0.7;
}

.anhang-cl-item-row {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.35rem 0.25rem;
    min-height: 2rem;
}

.anhang-cl-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    flex: 1;
    cursor: pointer;
    font-size: 0.82rem;
    line-height: 1.4;
}

.anhang-cl-checkbox {
    margin-top: 0.15rem;
    flex-shrink: 0;
    accent-color: var(--primary);
}

.anhang-cl-nr {
    font-weight: 600;
    color: var(--gray-400);
    min-width: 1.8rem;
    flex-shrink: 0;
}

.anhang-cl-text {
    flex: 1;
}

.anhang-cl-item.done .anhang-cl-text {
    text-decoration: line-through;
    color: var(--gray-400);
}

.anhang-cl-item-right {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
}

.anhang-cl-badge {
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.1rem 0.45rem;
    border-radius: 10px;
    white-space: nowrap;
}

.anhang-cl-badge.auto {
    background: var(--success-bg);
    color: #14563a;
}

.anhang-cl-badge.manual {
    background: var(--panel);
    color: var(--primary-dark);
}

.anhang-cl-badge.open {
    background: var(--gray-100);
    color: var(--gray-500);
}

.anhang-cl-vorschrift {
    font-size: 0.7rem;
    color: var(--gray-400);
    max-width: 180px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.anhang-cl-expand-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.6rem;
    color: var(--gray-400);
    padding: 0.15rem 0.3rem;
    border-radius: var(--radius);
    transition: background 0.15s;
}

.anhang-cl-expand-btn:hover {
    background: var(--gray-200);
    color: var(--gray-600);
}

.anhang-cl-subitems {
    padding: 0.15rem 0 0.35rem 2.6rem;
}

.anhang-cl-subitem {
    display: flex;
    align-items: flex-start;
    gap: 0.35rem;
    font-size: 0.78rem;
    color: var(--gray-600);
    padding: 0.15rem 0;
}

.anhang-cl-sub-arrow {
    font-size: 0.55rem;
    color: var(--gray-400);
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.anhang-cl-sub-text {
    flex: 1;
}

.anhang-cl-sub-vorschrift {
    font-size: 0.65rem;
    color: var(--gray-400);
    flex-shrink: 0;
}

/* Befreiung / Hinweis Boxen */
.befreiung-notice,
.info-notice {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-lg);
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 1.25rem;
}

.befreiung-notice {
    background: linear-gradient(135deg, #e9f6ef, #d8eee2);
    border: 1px solid #bfe3cf;
    color: #14563a;
}

.info-notice {
    background: linear-gradient(135deg, var(--info-bg), var(--panel-soft));
    border: 1px solid var(--chipb);
    color: var(--primary-dark);
}

/* Offenlegung highlight Spalte */
.fs-table td.highlight,
.fs-table th.highlight {
    background: rgba(26, 102, 194, 0.06);
    font-weight: 600;
}

.fs-table tr.row-sum td.highlight {
    background: rgba(26, 102, 194, 0.1);
}

/* Pflichtangaben check/cross icons */
.check-icon {
    color: var(--success);
    font-weight: 700;
}

.cross-icon {
    color: var(--gray-300);
}

/* Hidden utility class */
.hidden {
    display: none !important;
}

/* ========================================== */
/* ABSCHLUSS-COCKPIT (Dashboard)              */
/* ========================================== */

/* Kompakter Unternehmens-Streifen (statt großem Banner) */
.dash-firmbar {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: .55rem .85rem; background: var(--panel, #f7f9fc);
    border: 1px solid var(--gray-200); border-radius: var(--radius-lg); margin-bottom: 1.1rem;
}
.dash-firm-left { display: flex; align-items: center; gap: .7rem; }
.dash-firm-badge {
    width: 36px; height: 36px; border-radius: 9px; background: var(--primary); color: #fff;
    display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .85rem; flex: none;
}
.dash-firm-txt { display: flex; flex-direction: column; line-height: 1.25; }
.dash-firm-name { font-weight: 700; font-size: 1rem; color: var(--gray-900); }
.dash-firm-meta { font-size: .78rem; color: var(--gray-500); }
.dash-firm-right { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.dash-today { font-size: .8rem; color: var(--gray-600); font-weight: 600; white-space: nowrap; }

/* Aufgaben & Fristen */
/* Aufgaben & Fristen — bewusst ruhig/Haufe: keine Ampel-Balken, kein
   buntes Grün/Gelb. Status trägt allein die Frist-Spalte rechts; nur
   „überfällig" wird als zurückhaltende Pille hervorgehoben. */
.dash-tasks { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1.5rem; }
.dash-task {
    display: flex; align-items: center; gap: .7rem; padding: .7rem .9rem;
    background: #fff; border: 1px solid var(--gray-200);
    border-radius: var(--radius); cursor: pointer; transition: border-color .15s, box-shadow .15s;
}
.dash-task:hover { border-color: var(--primary); box-shadow: var(--shadow-sm, 0 1px 3px rgba(0,0,0,.06)); }
/* dezenter Bullet — neutral; nur überfällig gedämpft rot */
.dash-task-dot { width: 6px; height: 6px; border-radius: 50%; flex: none; background: var(--gray-300); }
.dash-task.red .dash-task-dot { background: #b4524b; }
.dash-task-main { flex: 1; min-width: 0; }
.dash-task-label { font-weight: 600; font-size: .88rem; color: var(--gray-800); }
.dash-task-norm { font-size: .74rem; color: var(--gray-400); margin-top: .05rem; }
.dash-task-due { text-align: right; white-space: nowrap; display: flex; flex-direction: column; align-items: flex-end; gap: .2rem; }
.dash-task-date { font-size: .84rem; font-weight: 600; color: var(--gray-700); }
.dash-task-cd { font-size: .72rem; color: var(--gray-500); }
.dash-task.red .dash-task-cd { color: #9c4a44; background: #f6eceb; padding: .1rem .45rem; border-radius: 999px; font-weight: 600; }
.dash-task.amber .dash-task-cd { color: var(--gray-500); }
.dash-task.green .dash-task-cd { color: var(--gray-400); }
.dash-task.done .dash-task-dot { background: #1e8e5a; }
.dash-task.done .dash-task-cd { color: #1e6e47; }
.dash-task.done .dash-task-label { color: var(--gray-500); }
.dash-task-arrow { color: var(--gray-300); flex: none; }

/* Abschnitts-Überschrift im Dashboard (kompakt) */
.dash-sec { margin: 0 0 .6rem; }
.dash-sec h2 { font-size: 1.05rem; color: var(--gray-900); margin: 0; }
.dash-sec-sub { font-size: .8rem; color: var(--gray-500); }
.cockpit-col-main > .dash-sec:not(:first-child) { margin-top: 1.4rem; }

/* Nächste Schritte (schlanke Liste statt Karte) */
.dash-nextlist { display: flex; flex-direction: column; gap: .4rem; }
.dash-next { display: flex; align-items: flex-start; gap: .6rem; padding: .55rem .75rem; background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius); cursor: pointer; transition: all .15s; }
.dash-next:hover { border-color: var(--primary); box-shadow: var(--shadow-sm, 0 1px 3px rgba(0,0,0,.06)); }
.dash-next-arrow { color: var(--primary); font-weight: 700; flex: none; }
.dash-next-label { font-weight: 600; font-size: .85rem; color: var(--gray-800); }
.dash-next-sub { font-size: .76rem; color: var(--gray-500); line-height: 1.35; }

/* „Weitermachen, wo Sie aufgehört haben" */
.dash-resume { display: flex; align-items: center; gap: .75rem; padding: .85rem 1rem; background: color-mix(in srgb, var(--primary) 6%, #fff); border: 1px solid color-mix(in srgb, var(--primary) 25%, #fff); border-radius: var(--radius-lg); cursor: pointer; transition: all .15s; }
.dash-resume:hover { background: color-mix(in srgb, var(--primary) 10%, #fff); border-color: var(--primary); }
.dash-resume-ic { width: 34px; height: 34px; border-radius: 8px; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.05rem; flex: none; }
.dash-resume-txt { flex: 1; min-width: 0; }
.dash-resume-label { font-weight: 700; font-size: .92rem; color: var(--gray-900); }
.dash-resume-sub { font-size: .8rem; color: var(--gray-500); }
.dash-resume-arrow { color: var(--primary); font-weight: 700; flex: none; }

/* Fachbereiche im Überblick — Bereichs-Kacheln mit Live-Status + Sprung */
.dash-areas { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
@media (max-width: 720px) { .dash-areas { grid-template-columns: 1fr; } }
.dash-area { display: flex; align-items: flex-start; gap: .65rem; padding: .7rem .8rem; background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-lg); cursor: pointer; transition: all .15s; }
.dash-area:hover { border-color: var(--primary); box-shadow: var(--shadow-sm, 0 1px 3px rgba(0,0,0,.06)); transform: translateY(-1px); }
.dash-area.attn { border-left: 3px solid var(--primary); }
.dash-area-ic { width: 34px; height: 34px; border-radius: 8px; background: var(--gray-50, #f8fafc); border: 1px solid var(--gray-200); color: var(--primary); display: flex; align-items: center; justify-content: center; flex: none; }
.dash-area-body { flex: 1; min-width: 0; }
.dash-area-top { display: flex; align-items: center; gap: .4rem; margin-bottom: .15rem; }
.dash-area-title { font-weight: 700; font-size: .88rem; color: var(--gray-900); }
.dash-area-badge { font-size: .64rem; font-weight: 600; color: var(--gray-500); background: var(--gray-100, #eef1f4); padding: .06rem .4rem; border-radius: 4px; white-space: nowrap; }
.dash-area-badge.attn { color: var(--primary); background: color-mix(in srgb, var(--primary) 10%, #fff); }
.dash-area-status { font-size: .78rem; color: var(--gray-700); line-height: 1.35; }
.dash-area-norm { font-size: .7rem; color: var(--gray-400); margin-top: .15rem; }
.dash-area-arrow { color: var(--gray-300); font-weight: 700; flex: none; align-self: center; transition: color .15s; }
.dash-area:hover .dash-area-arrow { color: var(--primary); }

/* Kompakte Seiten-Karten (rechte Spalte) */
.dash-side-card { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: .8rem .85rem; }
.dash-side-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .6rem; }
.dash-side-head h3 { font-size: .9rem; color: var(--gray-800); margin: 0; display: flex; align-items: center; gap: .4rem; }
.dash-side-head h3 .cp-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success, #2e9e63); }
.dash-side-head a { font-size: .76rem; color: var(--primary); cursor: pointer; }
.dash-side-link { display: inline-block; margin-top: .5rem; font-size: .78rem; color: var(--primary); cursor: pointer; }
.dash-side-card .fs-kpi { grid-template-columns: 1fr 1fr; gap: .5rem; margin-bottom: 0; }
.dash-msg { display: flex; align-items: flex-start; gap: .5rem; padding: .35rem 0; border-top: 1px solid var(--gray-100); }
.dash-msg:first-of-type { border-top: none; }
.dash-msg-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: .3rem; flex: none; background: var(--gray-300); }
.dash-msg.error .dash-msg-dot { background: #cf3b3b; }
.dash-msg.warning .dash-msg-dot { background: #e0a021; }
.dash-msg.passed .dash-msg-dot { background: #2e9e63; }
.dash-msg-txt { font-size: .8rem; color: var(--gray-700); line-height: 1.35; }
.dash-side-card .datasource-actions { display: flex; gap: .4rem; margin-top: .6rem; flex-wrap: wrap; }

.cockpit-steps {
    display: flex;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow-sm);
}

.cockpit-step {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.85rem 1rem;
    cursor: pointer;
    border-right: 1px solid var(--gray-100);
    transition: background 0.15s;
    min-width: 0;
}

.cockpit-step:last-child { border-right: none; }
.cockpit-step:hover { background: var(--gray-50); }

.cockpit-step-num {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 700;
    border: 1.5px solid var(--gray-300);
    color: var(--gray-500);
    flex-shrink: 0;
}

.cockpit-step-num.done { background: var(--success-bg); border-color: #bfe3cf; color: var(--success); }
.cockpit-step-num.warn { background: var(--warning-bg); border-color: #f0d590; color: #b45309; }
.cockpit-step-num.error { background: var(--danger-bg); border-color: #f5c2c2; color: var(--danger); }

.cockpit-step-texts { min-width: 0; }

.cockpit-step-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray-800);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cockpit-step-sub {
    font-size: 0.7rem;
    color: var(--gray-500);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cockpit-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 1.25rem;
    align-items: start;
}

.cockpit-col-main { display: flex; flex-direction: column; gap: 1.25rem; min-width: 0; }
.cockpit-col-side { display: flex; flex-direction: column; gap: 0.75rem; }

.ki-report-head {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 0.85rem;
    flex-wrap: wrap;
}

.ki-report-titles { flex: 1; min-width: 200px; }
.ki-report-head h3 { margin: 0; }

.ki-report-sub {
    font-size: 0.72rem;
    color: var(--gray-500);
    display: block;
    margin-top: 2px;
    line-height: 1.45;
}

.ki-report-counts { margin: 0; }
.ki-report-more { margin-top: 0.75rem; }

.next-steps { display: flex; flex-direction: column; }

.next-step {
    display: flex;
    gap: 10px;
    padding: 0.6rem 0.5rem;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background 0.15s;
    align-items: flex-start;
}

.next-step:hover { background: var(--panel-soft); }

.next-step-arrow { color: var(--primary); font-weight: 700; flex-shrink: 0; }
.next-step-label { font-size: 0.83rem; font-weight: 600; color: var(--gray-800); }
.next-step-sub { font-size: 0.73rem; color: var(--gray-500); }

/* Kennzahlen-Kacheln: die verbindliche Umsetzung steht in js/fs-core.js
   (.fs-kpi / .fs-kpi-tile, erzeugt über fsCore.kpiRow). Diese Datei
   definiert bewusst KEINE zweite Kachel — sonst laufen die beiden
   Fassungen auseinander. */

.datasource-card { margin-top: 0.5rem; }
.datasource-name { font-size: 0.9rem; font-weight: 700; color: var(--gray-800); }
.datasource-meta { font-size: 0.75rem; color: var(--gray-500); margin: 2px 0 0.75rem; }
.datasource-actions { display: flex; flex-direction: column; gap: 0.5rem; }

.cockpit-empty {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    margin-bottom: 1.25rem;
}

.cockpit-empty h3 { font-size: 1.05rem; color: var(--gray-800); margin-bottom: 0.4rem; }
.cockpit-empty p { font-size: 0.85rem; color: var(--gray-500); margin-bottom: 1rem; max-width: 520px; margin-left: auto; margin-right: auto; }

@media (max-width: 1500px) {
    .cockpit-grid { grid-template-columns: 1fr; }
    .dash-side-card .fs-kpi { grid-template-columns: repeat(4, 1fr); }
}

/* ========================================== */
/* RESPONSIVE                                 */
/* ========================================== */

@media (max-width: 1200px) {
    .fs-rail {
        display: none;
    }
    .fs-sidebar {
        left: 0;
    }
    .fs-content-area {
        margin-left: 260px;
    }
    .fs-main {
        flex-direction: column;
    }
    .fs-ai-sidebar {
        width: 100%;
        min-width: 0;
        max-height: 400px;
        border-left: none;
        border-top: 1px solid var(--gray-200);
    }
    .fs-ai-sidebar.collapsed {
        max-height: 0;
        border-top: none;
        width: 100%;
    }
    .vfe-grid {
        grid-template-columns: 1fr;
    }
    .bilanz-layout {
        grid-template-columns: 1fr;
    }
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    .agent-toggle-fab {
        bottom: 1.5rem;
        right: 1.5rem;
    }
}

@media (max-width: 768px) {
    .fs-header {
        padding: 0.5rem 1rem;
    }
    .fs-header-kpis {
        display: none;
    }
    .fs-content {
        padding: 1rem;
    }
    .fs-tabs {
        padding: 0;
    }
    .fs-tab {
        padding: 0.6rem 0.75rem;
        font-size: 0.8rem;
    }
    .fs-tab-label {
        display: none;
    }
    .fs-tab-icon {
        font-size: 1.2rem;
    }
}

/* ========================================== */
/* HGB AGENT - SIDEBAR MODES                 */
/* ========================================== */

.agent-header {
    border-bottom: 1px solid var(--gray-200);
}

.agent-header-top {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.75rem 1rem;
    background: #fff;
    color: var(--navy);
    border-bottom: 1px solid var(--gray-100);
}

.agent-header-titles {
    flex: 1;
    line-height: 1.25;
    min-width: 0;
}

.agent-header-top h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0;
    color: var(--navy);
}

.agent-header-sub {
    font-size: 0.68rem;
    color: var(--gray-500);
    margin: 1px 0 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Animierter KI-Punkt — gleiche Optik wie der CoPilot-Punkt der Checklisten-Demo */
.cp-dot {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: conic-gradient(from 210deg, #35a8dd, #1a66c2, #35a8dd);
    box-shadow: inset 0 0 0 5px #fff;
    flex-shrink: 0;
    animation: cpBreath 3s ease-in-out infinite;
}

@keyframes cpBreath {
    0%, 100% { box-shadow: inset 0 0 0 5px #fff, 0 0 0 0 rgba(26,102,194,0.28); }
    50% { box-shadow: inset 0 0 0 5px #fff, 0 0 0 6px rgba(26,102,194,0); }
}

@media (prefers-reduced-motion: reduce) {
    .cp-dot { animation: none; }
}

.agent-collapse-btn {
    background: none;
    border: none;
    font-size: 1rem;
    color: var(--navy);
    padding: 3px 8px;
    border-radius: 6px;
    cursor: pointer;
    flex-shrink: 0;
}

.agent-collapse-btn:hover { background: var(--gray-100); }

.agent-modes {
    display: flex;
    background: var(--gray-50);
}

.agent-mode-btn {
    flex: 1;
    padding: 0.6rem 0.4rem;
    border: none;
    background: none;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--gray-500);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
    font-family: var(--font-family);
    text-align: center;
    position: relative;
}

.agent-mode-btn:hover {
    color: var(--primary);
    background: rgba(26,102,194,0.04);
}

.agent-mode-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    font-weight: 600;
}

/* ========================================== */
/* AGENT BADGE                                */
/* ========================================== */

.agent-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    font-size: 0.65rem;
    font-weight: 700;
    margin-left: 3px;
    vertical-align: middle;
}

.agent-badge:empty {
    display: none;
}

.agent-badge.badge-error {
    background: var(--danger);
    color: white;
}

.agent-badge.badge-warning {
    background: var(--warning);
    color: white;
}

.agent-badge.badge-success {
    background: var(--success);
    color: white;
}

/* ========================================== */
/* AGENT BODY                                 */
/* ========================================== */

.agent-body {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

/* ========================================== */
/* AGENT INPUT AREA                           */
/* ========================================== */

.agent-input-area {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--gray-200);
    background: var(--gray-50);
}

.agent-input-area input {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-family: var(--font-family);
}

.agent-input-area input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26,102,194,0.1);
}

/* ========================================== */
/* PRÜFUNG PANEL                              */
/* ========================================== */

.pruefung-panel {
    padding: 0.75rem;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.pruefung-summary {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.pruefung-count {
    padding: 0.3rem 0.6rem;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
}

.pruefung-count-error {
    background: #fef2f2;
    color: var(--danger);
}

.pruefung-count-warning {
    background: #fffbeb;
    color: #b45309;
}

.pruefung-count-passed {
    background: #ecfdf5;
    color: var(--success);
}

.pruefung-section {
    margin-bottom: 0.75rem;
}

.pruefung-section-title {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray-500);
    margin-bottom: 0.4rem;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid var(--gray-100);
}

.pruefung-item {
    padding: 0.5rem 0.65rem;
    border-radius: var(--radius);
    margin-bottom: 0.35rem;
    font-size: 0.8rem;
    line-height: 1.5;
}

.pruefung-item.error {
    background: #fef2f2;
    border-left: 3px solid var(--danger);
}

.pruefung-item.warning {
    background: #fffbeb;
    border-left: 3px solid var(--warning);
}

.pruefung-item.passed {
    background: #ecfdf5;
    border-left: 3px solid var(--success);
}

.pruefung-item.info {
    background: #eff6ff;
    border-left: 3px solid var(--info);
}

.pruefung-item-title {
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--gray-800);
}

.pruefung-item-message {
    font-size: 0.76rem;
    color: var(--gray-600);
    margin-top: 0.15rem;
}

.pruefung-ref {
    font-size: 0.7rem;
    color: var(--gray-400);
    font-style: italic;
    margin-top: 0.15rem;
}

/* ========================================== */
/* BERATUNG PANEL                             */
/* ========================================== */

.beratung-panel {
    padding: 0.75rem;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.beratung-card {
    padding: 0.75rem 0.85rem;
    border-radius: var(--radius-lg);
    margin-bottom: 0.6rem;
    border: 1px solid var(--gray-200);
    background: white;
    transition: box-shadow 0.2s ease;
}

.beratung-card:hover {
    box-shadow: var(--shadow);
}

.beratung-card.priority-high {
    border-left: 3px solid var(--danger);
}

.beratung-card.priority-medium {
    border-left: 3px solid var(--warning);
}

.beratung-card.priority-low {
    border-left: 3px solid var(--info);
}

.beratung-card-header {
    margin-bottom: 0.3rem;
}

.beratung-card-category {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray-400);
}

.beratung-card-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.25rem;
}

.beratung-card-body {
    font-size: 0.78rem;
    color: var(--gray-600);
    line-height: 1.5;
}

.beratung-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.4rem;
    font-size: 0.7rem;
}

.beratung-impact {
    color: var(--success);
    font-weight: 600;
}

.beratung-ref {
    color: var(--gray-400);
    font-style: italic;
}

/* ========================================== */
/* FLOATING ACTION BUTTON                     */
/* ========================================== */

.agent-toggle-fab {
    position: fixed;
    right: 1.5rem;
    bottom: 5rem;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: conic-gradient(from 210deg, #35a8dd, #1a66c2, #35a8dd);
    color: white;
    border: none;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(26,102,194,0.35);
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    animation: fabPulse 2.6s ease-in-out infinite;
}

@keyframes fabPulse {
    0%, 100% { box-shadow: 0 4px 14px rgba(26,102,194,0.35), 0 0 0 0 rgba(26,102,194,0.3); }
    50% { box-shadow: 0 4px 14px rgba(26,102,194,0.35), 0 0 0 8px rgba(26,102,194,0); }
}

.agent-toggle-fab:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 20px rgba(26,102,194,0.45);
}

@media (prefers-reduced-motion: reduce) {
    .agent-toggle-fab { animation: none; }
}

.agent-toggle-fab.show {
    display: flex;
}

/* ========================================== */
/* TYPING INDICATOR                           */
/* ========================================== */

.typing-dots {
    display: flex;
    gap: 4px;
    padding: 0.25rem 0;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gray-400);
    animation: typingBounce 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) { animation-delay: 0s; }
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; }
}

/* ========================================== */
/* CHAT SESSION HEADER                       */
/* ========================================== */

.session-header {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.6rem;
    background: rgba(0,0,0,0.08);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    flex-shrink: 0;
}

.session-select {
    flex: 1;
    padding: 0.3rem 0.5rem;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius);
    background: rgba(255,255,255,0.1);
    color: var(--gray-700);
    font-size: 0.75rem;
    cursor: pointer;
    outline: none;
}

.session-select:focus {
    border-color: var(--primary);
}

.session-new-btn,
.session-delete-btn {
    width: 26px;
    height: 26px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    background: white;
    color: var(--gray-600);
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.session-new-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.session-delete-btn:hover {
    background: var(--error);
    color: white;
    border-color: var(--error);
}

/* ========================================== */
/* KNOWLEDGE MANAGEMENT EDITOR               */
/* ========================================== */

.knowledge-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 1.25rem;
    min-height: 600px;
}

.knowledge-sidebar {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 75vh;
    overflow: hidden;
}

.knowledge-categories {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.knowledge-cat-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0.75rem;
    border: none;
    background: transparent;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--gray-700);
    transition: all 0.15s ease;
    text-align: left;
}

.knowledge-cat-btn:hover {
    background: var(--gray-50);
    color: var(--primary);
}

.knowledge-cat-btn.active {
    background: var(--primary);
    color: white;
}

.knowledge-cat-btn.active .knowledge-badge {
    background: rgba(255,255,255,0.25);
    color: white;
}

.knowledge-badge {
    background: var(--gray-100);
    color: var(--gray-600);
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
    min-width: 1.4rem;
    text-align: center;
}

.knowledge-divider {
    height: 1px;
    background: var(--gray-200);
}

.knowledge-search {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 0.8rem;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.knowledge-search:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(26, 102, 194, 0.1);
}

.knowledge-item-list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.knowledge-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.65rem;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 0.78rem;
    color: var(--gray-700);
    transition: all 0.15s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.knowledge-item:hover {
    background: var(--gray-50);
}

.knowledge-item.active {
    background: #eef2ff;
    color: var(--primary);
    font-weight: 600;
}

.knowledge-item-label {
    overflow: hidden;
    text-overflow: ellipsis;
}

.knowledge-custom-dot {
    color: #f59e0b;
    font-size: 0.6rem;
    flex-shrink: 0;
    margin-left: 0.3rem;
}

.knowledge-add-btn {
    width: 100%;
    margin-top: 0.25rem;
}

/* Editor Main */
.knowledge-editor-main {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    padding: 1.5rem;
    overflow-y: auto;
    max-height: 75vh;
}

.knowledge-editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--gray-200);
}

.knowledge-editor-header h3 {
    margin: 0;
    font-size: 1.05rem;
    color: var(--gray-900);
}

.knowledge-actions {
    display: flex;
    gap: 0.5rem;
}

.knowledge-field {
    margin-bottom: 1rem;
}

.knowledge-field label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.35rem;
}

.knowledge-field input,
.knowledge-field textarea,
.knowledge-field select {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 0.82rem;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.knowledge-field input:focus,
.knowledge-field textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 102, 194, 0.1);
}

.knowledge-field input:disabled,
.knowledge-field textarea:disabled {
    background: var(--gray-50);
    color: var(--gray-500);
    cursor: not-allowed;
}

.knowledge-field-hint {
    display: block;
    font-size: 0.72rem;
    color: var(--gray-500);
    margin-top: 0.25rem;
}

/* Base Reference Box */
.knowledge-base-ref {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 0.85rem;
    margin-bottom: 1rem;
}

.knowledge-base-ref-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.4rem;
}

.knowledge-base-ref-text {
    font-size: 0.8rem;
    color: var(--gray-600);
    line-height: 1.5;
}

/* Benchmark Fields */
.knowledge-bench-section {
    margin-bottom: 1.25rem;
}

.knowledge-bench-section h4 {
    font-size: 0.85rem;
    color: var(--gray-800);
    margin: 0 0 0.5rem 0;
}

.knowledge-bench-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.knowledge-bench-field {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.knowledge-bench-field label {
    font-size: 0.72rem;
    color: var(--gray-600);
    font-weight: 500;
}

.knowledge-bench-field input {
    padding: 0.45rem 0.6rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 0.8rem;
    width: 100%;
    box-sizing: border-box;
}

.knowledge-bench-field input:focus {
    outline: none;
    border-color: var(--primary);
}

.knowledge-bench-unit {
    font-size: 0.7rem;
    color: var(--gray-400);
}

.knowledge-bench-base {
    font-size: 0.68rem;
    color: var(--gray-400);
    font-style: italic;
}

/* Welcome State */
.knowledge-welcome {
    text-align: center;
    padding: 3rem 2rem;
}

.knowledge-welcome-icon {
    font-size: 3rem;
    margin-bottom: 0.75rem;
}

.knowledge-welcome h3 {
    margin: 0 0 0.5rem 0;
    color: var(--gray-800);
}

.knowledge-welcome p {
    color: var(--gray-500);
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}

.knowledge-welcome-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    text-align: left;
}

.knowledge-info-card {
    background: var(--gray-50);
    border-radius: var(--radius);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.knowledge-info-card strong {
    font-size: 0.82rem;
    color: var(--gray-800);
}

.knowledge-info-card span {
    font-size: 0.75rem;
    color: var(--gray-500);
    line-height: 1.4;
}

/* Export Bar */
.knowledge-export-bar {
    display: flex;
    gap: 0.5rem;
}

/* Delete Button */
.btn-danger {
    background: #ef4444;
    color: white;
    border: none;
    border-radius: var(--radius);
    padding: 0.35rem 0.75rem;
    font-size: 0.78rem;
    cursor: pointer;
    transition: background 0.15s;
}

.btn-danger:hover {
    background: #dc2626;
}

/* ========================================== */
/* INLINE-FEHLERMARKIERUNG (Anhang/Lagebericht) */
/* ========================================== */

.fs-inline-error {
    background: rgba(239, 68, 68, 0.15);
    border-bottom: 2px wavy #ef4444;
    cursor: help;
    position: relative;
    padding: 0.05rem 0.15rem;
    border-radius: 2px;
    transition: background 0.2s ease;
}

.fs-inline-error:hover {
    background: rgba(239, 68, 68, 0.28);
}

.fs-inline-warning {
    background: rgba(245, 158, 11, 0.15);
    border-bottom: 2px wavy #f59e0b;
    cursor: help;
    position: relative;
    padding: 0.05rem 0.15rem;
    border-radius: 2px;
    transition: background 0.2s ease;
}

.fs-inline-warning:hover {
    background: rgba(245, 158, 11, 0.28);
}

/* Aktiver Inline-Fehler (angeklickt) */
.fs-inline-error.fs-inline-active {
    background: rgba(239, 68, 68, 0.25);
    outline: 2px solid #ef4444;
    outline-offset: 1px;
}
.fs-inline-warning.fs-inline-active {
    background: rgba(245, 158, 11, 0.25);
    outline: 2px solid #f59e0b;
    outline-offset: 1px;
}

/* Fehler-Karte (erscheint bei Hover auf markierten Text, Two-View) */
.fs-error-card {
    position: fixed;
    width: 390px;
    max-width: 90vw;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(0,0,0,0.18);
    z-index: 10000;
    font-size: 0.82rem;
    line-height: 1.5;
    pointer-events: auto;
    animation: cardFadeIn 0.15s ease;
}

@keyframes cardFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Two-View System: nur die aktive View wird angezeigt */
.fs-error-card-view {
    display: none;
    padding: 0.85rem 1rem;
}
.fs-error-card-view.active {
    display: block;
}

.fs-error-card-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}
.fs-error-card-badge.error { background: #fef2f2; color: #dc2626; }
.fs-error-card-badge.warning { background: #fffbeb; color: #d97706; }
.fs-error-card-badge.suggestion { background: #f0fdf4; color: #16a34a; }

.fs-error-card-title {
    font-weight: 700;
    color: var(--gray-800);
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

.fs-error-card-message {
    color: var(--gray-600);
    font-size: 0.8rem;
    margin-bottom: 0.4rem;
}

.fs-error-card-ref {
    font-size: 0.72rem;
    color: var(--gray-400);
    font-style: italic;
    margin-bottom: 0.6rem;
}

/* Button: "Korrekturvorschlag →" in der Fehler-View */
.fs-error-card-switch-btn {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.4rem 0.9rem;
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}
.fs-error-card-switch-btn:hover { background: #dcfce7; border-color: #86efac; }

.fs-error-card-suggestion-text {
    font-size: 0.8rem;
    color: #334155;
    background: #f0fdf4;
    padding: 0.5rem 0.65rem;
    border-radius: 6px;
    border: 1px solid #bbf7d0;
    line-height: 1.45;
    margin-bottom: 0.6rem;
}

.fs-error-card-fix-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

/* Button: "← Fehler" zurück zur Fehler-View */
.fs-error-card-back-btn {
    padding: 0.4rem 0.8rem;
    background: var(--gray-100);
    color: var(--gray-600);
    border: 1px solid var(--gray-200);
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
}
.fs-error-card-back-btn:hover { background: var(--gray-200); color: var(--gray-700); }

.fs-error-card-apply-btn {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: #16a34a;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}
.fs-error-card-apply-btn:hover { background: #15803d; }

/* Error-Summary-Banner für Anhang/Lagebericht */
.fs-validation-banner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1rem;
    margin-bottom: 1rem;
    border-radius: var(--radius);
    font-size: 0.85rem;
}

.fs-validation-banner.has-errors {
    background: #fef2f2;
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-left: 4px solid #ef4444;
    color: #991b1b;
}

.fs-validation-banner.has-warnings {
    background: #fffbeb;
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-left: 4px solid #f59e0b;
    color: #92400e;
}

.fs-validation-banner.all-ok {
    background: #ecfdf5;
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-left: 4px solid #10b981;
    color: #065f46;
}

.fs-validation-banner-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.fs-validation-banner-text {
    flex: 1;
}

.fs-validation-banner-text strong {
    display: block;
    font-size: 0.85rem;
}

.fs-validation-banner-text span {
    font-size: 0.78rem;
    opacity: 0.8;
}

.fs-validation-banner-action {
    background: none;
    border: 1px solid currentColor;
    border-radius: var(--radius);
    padding: 0.25rem 0.6rem;
    font-size: 0.75rem;
    color: inherit;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
}

.fs-validation-banner-action:hover {
    background: rgba(0,0,0,0.05);
}

/* Error Navigation */
.fs-validation-banner-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-left: auto;
    flex-shrink: 0;
}

.fs-banner-nav-btn {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: var(--radius);
    color: inherit;
    font-size: 1rem;
    font-weight: 700;
    width: 1.6rem;
    height: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    line-height: 1;
    padding: 0;
}

.fs-banner-nav-btn:hover {
    background: rgba(255,255,255,0.35);
}

.fs-banner-nav-pos {
    font-size: 0.75rem;
    font-weight: 600;
    min-width: 2.5rem;
    text-align: center;
    white-space: nowrap;
}

/* KI-Analyse Toggle */
.fs-ki-toggle-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.5rem;
    background: #f8fafc;
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
}

.fs-ki-toggle-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--gray-700);
}

.fs-ki-toggle-switch {
    position: relative;
    width: 36px;
    height: 20px;
    background: var(--gray-300);
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s ease;
    border: none;
    padding: 0;
}

.fs-ki-toggle-switch.active {
    background: var(--primary);
}

.fs-ki-toggle-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: white;
    transition: transform 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.fs-ki-toggle-switch.active::after {
    transform: translateX(16px);
}

.fs-ki-cost-info {
    font-size: 0.7rem;
    color: var(--gray-500);
    padding: 0.35rem 0.75rem;
    margin-bottom: 0.5rem;
    background: #eff6ff;
    border-radius: var(--radius);
    border: 1px solid rgba(26, 102, 194, 0.15);
    line-height: 1.4;
}

.fs-ki-cost-counter {
    font-size: 0.68rem;
    color: var(--gray-400);
    text-align: center;
    padding: 0.25rem 0;
}

/* Responsive */
@media (max-width: 768px) {
    .knowledge-grid {
        grid-template-columns: 1fr;
    }
    .knowledge-sidebar {
        max-height: 300px;
    }
    .knowledge-bench-row {
        grid-template-columns: 1fr;
    }
    .knowledge-welcome-info {
        grid-template-columns: 1fr;
    }
    .fs-error-tooltip {
        width: 260px;
        left: -10px;
    }
}

/* ========================================== */
/* BERICHTSLAYOUT der Rechenwerke (Okt. 2026) */
/* Bilanz · GuV · KFR in Staffelform wie der   */
/* Überblick (fs-ueberblick.js): graue Fläche, */
/* Zeichenspalte + – =, Zwischensumme mit      */
/* Linie, Endsumme mit Doppellinie, Vorjahr    */
/* grau. Eingaben bleiben, sehen aber wie Text */
/* aus, bis man darüberfährt.                  */
/* ========================================== */
.fs-report {
    --rp-panel: #f1f3f6;
    --rp-rule: #b9c1cc;
    --rp-acc: #1a3fa0;
    --rp-muted: #68748a;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
}
.fs-report .fs-table-header {
    background: transparent;
    border-bottom: 2px solid var(--rp-acc);
    padding: 0 0 8px;
    margin-bottom: 4px;
    justify-content: flex-start;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}
.fs-report .fs-table-header h2 {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
}
.fs-report .fs-table-header .section-subtitle { color: var(--rp-muted); font-size: .8rem; }
.fs-report .fs-table { font-size: .86rem; background: var(--rp-panel); }
.fs-report .fs-table thead th {
    background: #fff;
    border-bottom: 0;
    text-transform: none;
    letter-spacing: 0;
    font-size: .72rem;
    font-weight: 500;
    color: var(--rp-muted);
    padding: 0 10px 6px;
}
.fs-report .fs-table thead th.rp-s { width: 22px; padding: 0; }
.fs-report .fs-table tbody tr { border-bottom: 0; }
.fs-report .fs-table tbody tr:hover { background: #fff; }
.fs-report .fs-table tbody td { padding: 3px 10px; color: #1d2633; }
.fs-report .fs-table tbody tr:first-child td { padding-top: 10px; }
.fs-report .fs-table tbody tr:last-child td { padding-bottom: 10px; }
.fs-report .fs-table td.rp-s {
    width: 22px;
    padding-left: 10px;
    padding-right: 0;
    text-align: center !important;
    color: #5d6878;
    font-weight: 400;
}
/* Gruppen fett, Unterposten eingerückt */
.fs-report .fs-table tr.level-0 td { padding-top: 12px; padding-bottom: 3px; font-size: .86rem; font-weight: 600; }
.fs-report .fs-table tr.level-0 td.rp-t { font-weight: 600; font-size: .86rem; }
.fs-report .fs-table tr.level-1 td.rp-t { padding-left: 10px; font-weight: 400; color: #1d2633; }
.fs-report .fs-table tr.level-2 td.rp-t { padding-left: 22px; font-weight: 400; }
.fs-report .fs-table tr.level-3 td.rp-t { padding-left: 34px; font-weight: 400; font-size: .8rem; color: var(--rp-muted); }
.fs-report .fs-table tr.level-3 { background: transparent !important; }
.fs-report .fs-table tr.level-3 td { color: var(--rp-muted) !important; }
/* Zwischensumme: Linie darüber */
.fs-report .fs-table tr.row-sum { background: transparent; }
.fs-report .fs-table tr.row-sum td {
    font-weight: 700;
    border-top: 1px solid var(--rp-rule);
    border-bottom: 0;
    padding-top: 4px;
    padding-bottom: 6px;
    color: #1d2633;
}
/* Endsumme: Linie darüber, Doppellinie darunter */
.fs-report .fs-table tr.row-total { background: transparent; }
.fs-report .fs-table tr.row-total td {
    font-weight: 700;
    font-size: .86rem;
    border-top: 1px solid #1d2633;
    border-bottom: 3px double #1d2633;
    padding-top: 5px;
    padding-bottom: 5px;
    color: #1d2633;
}
.fs-report .fs-table tr.row-total + tr td { padding-top: 10px; }
/* Vorjahr grau */
.fs-report .fs-table tbody td.rp-p,
.fs-report .fs-table tbody td.rp-p input { color: var(--rp-muted); }
/* Abweichungsspalten ruhig */
.fs-report .fs-table td.change-cell { font-size: .8rem; }
/* Eingabe: sieht aus wie Text, wird beim Darüberfahren sichtbar */
.fs-report .fs-table td.editable input {
    font-size: .86rem;
    color: inherit;
    border-bottom: 1px dashed transparent;
    border-radius: 0;
}
.fs-report .fs-table tr:hover td.editable input { border-bottom-color: var(--rp-rule); }
.fs-report .fs-table td.editable input:focus {
    background: #fff;
    border-bottom-color: var(--rp-acc);
    box-shadow: none;
}
.fs-report .fs-table td.editable input:focus-visible { outline: 2px solid var(--rp-acc); outline-offset: 1px; }
.fs-report .detail-toggle { color: var(--rp-muted) !important; }
/* Zeilennummer der Gliederung leise */
.fs-report .rp-hint { font-size: .7rem; color: var(--rp-muted); font-weight: 400; margin-left: .25rem; }
/* Bilanz: Aktiva und Passiva nebeneinander mit Luft */
.bilanz-layout.fs-report-pair { gap: 40px; }
/* Bezeichnung links — die Grundregel richtet jede Zelle außer der ersten
   rechts aus, und die erste ist hier die Zeichenspalte */
.fs-report .fs-table tbody td.rp-t,
.fs-report .fs-table thead th:nth-child(2) { text-align: left; font-variant-numeric: normal; }
/* Zeichenspalte in jeder Ebene an derselben Stelle (die Grundregeln
   .fs-table tr.level-n td:first-child rücken sonst die erste Zelle ein) */
.fs-report .fs-table tbody tr td.rp-s { padding-left: 10px; padding-right: 0; font-size: .86rem; font-weight: 400; color: #5d6878; }
