/* V494: isolated customer-dossier UI */
.fh494-page .fh494-top{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:18px}.fh494-page .fh494-top .back{margin:0}.fh494-status{font-size:12px;color:#64748b}.fh494-hero{display:flex;align-items:center;gap:18px;padding:23px;background:linear-gradient(110deg,#f7fafc,#eef5f8);border:1px solid #dce5ed;border-radius:20px;margin-bottom:18px}.fh494-avatar{width:58px;height:58px;flex:0 0 58px;border-radius:17px;background:#e0ebf1;color:#23617c;display:grid;place-items:center;font-size:30px}.fh494-person{flex:1;min-width:0}.fh494-person h1{margin:4px 0;font-size:clamp(21px,2.3vw,30px)}.fh494-person p{margin:0;color:#64748b}.fh494-hero .pill{max-width:240px;overflow-wrap:anywhere}.fh494-shell{display:grid;grid-template-columns:230px minmax(0,1fr);gap:18px;align-items:start}.fh494-sidebar{background:#fff;border:1px solid #e1e7ee;border-radius:17px;padding:13px;position:sticky;top:16px}.fh494-sidehead{display:flex;align-items:center;justify-content:space-between;padding:4px 6px 13px;gap:6px}.fh494-sidehead strong{font-size:13px;color:#566779}.fh494-sidehead button{border:1px solid #e2e8f0;border-radius:9px;background:#fff;cursor:pointer;padding:6px 10px}.fh494-nav{display:grid;gap:5px}.fh494-nav button{width:100%;border:0;border-radius:11px;background:transparent;display:flex;align-items:center;gap:12px;padding:12px 10px;text-align:left;color:#40566a;cursor:pointer}.fh494-nav button span{font-size:20px;width:23px;text-align:center;flex-shrink:0}.fh494-nav button b{font-size:13px;font-weight:600}.fh494-nav button.active{background:#eaf3f7;color:#0f5877}.fh494-nav button:hover{background:#f0f5f8}.fh494-shell.fh494-collapsed{grid-template-columns:64px minmax(0,1fr)}.fh494-collapsed .fh494-sidehead strong,.fh494-collapsed .fh494-nav b{display:none}.fh494-collapsed .fh494-sidebar{padding:8px}.fh494-collapsed .fh494-sidehead{padding:4px 0 12px;justify-content:center}.fh494-collapsed .fh494-nav button{justify-content:center;padding:12px 4px}.fh494-main{min-width:0}.fh494-panel{border:1px solid #e1e7ee;border-radius:18px;background:#fff;padding:clamp(16px,2vw,27px)}.fh494-panel[hidden]{display:none!important}.fh494-panel h2{margin:0 0 8px}.fh494-panel>p,.fh494-sectionhead p{color:#66788b;margin:0 0 20px}.fh494-tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:18px 0}.fh494-tiles button{display:flex;flex-direction:column;align-items:flex-start;gap:7px;text-align:left;padding:18px;border:1px solid #dfe7ef;border-radius:14px;background:#fff;cursor:pointer;color:#223b4e}.fh494-tiles button:hover{background:#f5fafc;border-color:#a9cad9}.fh494-tiles button span{font-size:25px;color:#246783}.fh494-tiles button strong{font-size:15px}.fh494-tiles button small{color:#64748b}.fh494-callout{background:#f5f9fb;border:1px solid #e1edf2;border-radius:15px;padding:18px;margin-top:16px}.fh494-callout h3{margin:0 0 7px}.fh494-callout p{color:#627487}.fh494-actions{display:flex;gap:10px;flex-wrap:wrap}.fh494-page .fh-customer-areas393{display:grid;grid-template-columns:1fr;gap:12px}.fh494-page .fh-area393{margin:0}.fh494-page .fh-workflow393{margin-top:16px!important}@media(max-width:850px){.fh494-shell{grid-template-columns:1fr}.fh494-sidebar{position:static}.fh494-nav{display:flex;overflow-x:auto}.fh494-nav button{width:auto;min-width:max-content}.fh494-shell.fh494-collapsed{grid-template-columns:1fr}.fh494-collapsed .fh494-nav b{display:inline}.fh494-collapsed .fh494-sidehead strong{display:inline}.fh494-hero{flex-wrap:wrap}.fh494-hero .pill{max-width:100%}}@media(max-width:540px){.fh494-tiles{grid-template-columns:1fr}.fh494-avatar{width:44px;height:44px;flex-basis:44px}.fh494-panel{padding:15px}}

/* V495: Aktennavigation ersetzt die allgemeine Arbeitsbereich-Leiste. */
body:has(#kundenakte.view.active) .app>aside{display:none!important}
body:has(#kundenakte.view.active) .app>main{width:100%;max-width:none;min-width:0;margin-left:0}
body:has(#kundenakte.view.active) .app>main .content{max-width:none}
.fh494-shell{grid-template-columns:minmax(205px,230px) minmax(0,1fr)}
.fh494-shell.fh494-collapsed{grid-template-columns:minmax(0,1fr)}
.fh494-shell.fh494-collapsed>.fh494-sidebar{display:none!important}
.fh494-reopen{display:none!important;align-items:center;gap:8px;margin:0 0 14px;padding:9px 14px;border:1px solid #d5e2ec;background:#fff;border-radius:11px;color:#24516b;cursor:pointer}
.fh494-shell.fh494-collapsed .fh494-reopen{display:inline-flex!important}
.fh494-shell.fh494-collapsed .fh494-main{grid-column:1}
@media(max-width:850px){.fh494-shell,.fh494-shell.fh494-collapsed{display:block}.fh494-sidebar{margin-bottom:12px}.fh494-shell.fh494-collapsed .fh494-nav{display:none}}

/* V496: same visual language as the FH-Finance shell: navy, white, soft blue. */
.fh494-page .fh494-hero{background:#f5f8fd;border:1px solid #dce6f4;border-radius:16px;box-shadow:none;padding:24px 28px}
.fh494-avatar{background:#172b52;color:white;border-radius:14px}
.fh494-person .eyebrow{color:#52719a}
.fh494-person h1{color:#172b52;font-weight:750}
.fh494-shell{gap:20px;grid-template-columns:225px minmax(0,1fr)}
.fh494-sidebar{border:1px solid #dce6f4;background:#fff;border-radius:16px;box-shadow:0 8px 24px #172b5209;padding:13px}
.fh494-sidehead{border-bottom:1px solid #e9eef6;margin-bottom:10px}
.fh494-sidehead strong{color:#172b52;font-size:14px}
.fh494-nav button{border-radius:10px;color:#314767;padding:13px 12px}
.fh494-nav button.active{background:#172b52;color:#fff}
.fh494-nav button:hover:not(.active){background:#f0f5fd}
.fh494-panel{border:1px solid #dce6f4;box-shadow:0 8px 24px #172b5208;border-radius:16px;padding:26px}
.fh494-panel h2{color:#172b52;font-size:22px}
.fh494-tiles{gap:14px}
.fh494-tiles button{min-height:145px;border:1px solid #dce6f4;border-radius:14px;padding:22px;box-shadow:0 5px 14px #172b5208}
.fh494-tiles button:hover{border-color:#86a9d5;background:#f5f8fd}
.fh494-tiles button span{color:#315c98}
.fh494-tiles button strong{font-size:16px;color:#172b52}
.fh494-callout{background:#f5f8fd;border-color:#dce6f4}
.fh494-reopen{color:#172b52;border-color:#dce6f4}
@media(max-width:850px){.fh494-shell{display:block}.fh494-sidebar{position:static}.fh494-nav{display:grid;overflow:visible}.fh494-nav button{width:100%}}
