:root {
    --ink: #17212b;
    --muted: #697680;
    --line: #dde3e6;
    --paper: #ffffff;
    --canvas: #f3f5f3;
    --navy: #102932;
    --navy-soft: #183942;
    --teal: #0c6c67;
    --teal-light: #dff2ed;
    --amber: #a95f21;
    --amber-light: #fff0df;
    --shadow: 0 12px 30px rgba(21, 37, 43, 0.07);
    --radius: 14px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    color: var(--ink);
    background: var(--canvas);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
}

button, select, input, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }

.account-navigation {
    position: relative; z-index: 50; display: flex; align-items: center; gap: 20px; min-height: 62px;
    padding: 9px 18px; color: #dce7e8; background: #091f27; box-shadow: 0 4px 18px rgba(8,28,34,.2);
}
.account-navigation__brand { display: flex; align-items: center; gap: 9px; flex: 0 0 auto; }
.account-navigation__brand > span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; color: var(--navy); background: #d8f36b; font-weight: 850; }
.account-navigation__brand strong { color: #fff; font-size: 18px; }
.account-navigation__links { display: flex; align-items: center; gap: 4px; min-width: 0; flex: 1; }
.account-navigation__links > a, .account-navigation summary { display: flex; align-items: center; min-height: 38px; padding: 0 10px; border-radius: 8px; color: #c1d1d3; font-weight: 650; cursor: pointer; list-style: none; }
.account-navigation summary::after { content: '⌄'; margin-left: 7px; font-size: 16px; line-height: 1; transition: transform .16s ease; }
.account-navigation details[open] > summary::after { transform: rotate(180deg); }
.account-navigation summary::-webkit-details-marker { display: none; }
.account-navigation__links > a:hover, .account-navigation summary:hover, .account-navigation details[open] > summary { color: #fff; background: rgba(255,255,255,.08); }
.account-navigation details { position: relative; }
.account-navigation details[open] { z-index: 20; }
.account-navigation__menu { position: absolute; top: calc(100% + 8px); left: 0; display: grid; gap: 4px; min-width: 260px; max-height: min(70vh, 620px); padding: 10px; overflow: auto; border: 1px solid #28434b; border-radius: 11px; color: var(--ink); background: #fff; box-shadow: 0 16px 45px rgba(4,25,31,.3); }
.account-navigation__menu a { display: block; padding: 9px 10px; border-radius: 7px; color: #35515a; }
.account-navigation__menu a:hover { color: var(--teal); background: #eff7f5; }
.account-navigation__menu section { display: grid; gap: 2px; padding: 8px; border-bottom: 1px solid var(--line); }
.account-navigation__menu section:last-child { border-bottom: 0; }
.account-navigation__menu section > strong { padding: 1px 10px; }
.account-navigation__menu section > small { padding: 0 10px 5px; color: var(--muted); }
.account-navigation__account { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.account-navigation__account > span { display: grid; text-align: right; }
.account-navigation__account small { color: #91aaae; }
.account-navigation__account form { margin: 0; }
.account-navigation__account button { padding: 7px 10px; border: 1px solid #36515a; border-radius: 8px; color: #dce7e8; background: transparent; cursor: pointer; }
.account-navigation__account button:hover { border-color: #d8f36b; color: #fff; }

.app-shell { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh; background: var(--navy); }

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    scrollbar-gutter: stable;
    padding: 25px 18px 18px;
    display: flex;
    flex-direction: column;
    color: #dce7e8;
    background: var(--navy);
}

.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; padding: 0 9px 27px; }
.brand__mark {
    display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
    background: #d8f36b; color: var(--navy); font-weight: 850; letter-spacing: -1px;
}
.brand__word { color: #fff; font-size: 21px; font-weight: 760; letter-spacing: -0.7px; }

.nav { display: grid; flex-shrink: 0; gap: 5px; }
.nav__item {
    display: flex; align-items: center; justify-content: space-between; min-height: 42px;
    padding: 0 12px; border-radius: 9px; color: #b8cbce; font-weight: 580;
}
.nav__item:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav__item--active { background: var(--navy-soft); color: #fff; box-shadow: inset 3px 0 #d8f36b; }
.nav__group { display: grid; gap: 4px; padding: 9px 8px 8px; border-radius: 9px; }
.nav__group--active { background: var(--navy-soft); box-shadow: inset 3px 0 #d8f36b; }
.nav__group-title { padding: 0 5px 3px; color: #fff; font-size: 12px; font-weight: 760; }
.nav__subitems { display: grid; gap: 2px; }
.nav__subitem { padding: 6px 8px; border-radius: 7px; color: #b8cbce; font-size: 12px; line-height: 1.4; }
.nav__subitem:hover, .nav__subitem:focus-visible { color: #fff; background: rgba(255,255,255,.07); }
.nav__count { padding: 2px 7px; border-radius: 99px; color: var(--navy); background: #d8f36b; font-size: 11px; }
.nav__dot { width: 7px; height: 7px; border-radius: 50%; background: #ffb25c; }

.sidebar__bottom { margin-top: auto; display: grid; flex-shrink: 0; gap: 14px; }
.module-card { display: grid; gap: 5px; padding: 14px; border: 1px solid rgba(255,255,255,.12); border-radius: 12px; background: rgba(255,255,255,.04); }
.module-card__eyebrow { color: #91aaae; font-size: 10px; text-transform: uppercase; letter-spacing: .11em; }
.module-card strong { color: #fff; font-size: 14px; }
.module-card span:last-child { color: #acc0c3; font-size: 11px; }

.main { min-width: 0; background: var(--canvas); }
.topbar {
    height: 72px; display: flex; align-items: center; justify-content: space-between;
    padding: 0 32px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.92);
}
.tenant-switch { display: flex; align-items: center; gap: 10px; }
.tenant-switch label { color: var(--muted); font-size: 12px; font-weight: 650; }
.tenant-switch select { min-width: 230px; padding: 9px 35px 9px 12px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: #fff; font-weight: 650; }
.topbar__actions { display: flex; align-items: center; gap: 12px; }
.logout-form { margin: 0; }
.logout-button { padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; color: #52626a; background: #fff; font-size: 10px; font-weight: 750; cursor: pointer; }
.logout-button:hover { color: var(--teal); border-color: #b9d4ce; }
.icon-button, .avatar { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 50%; }
.icon-button { border: 1px solid var(--line); background: #fff; color: var(--teal); font-size: 11px; font-weight: 800; }
.avatar { color: #fff; background: var(--teal); font-size: 11px; font-weight: 750; }

.content { max-width: 1480px; margin: 0 auto; padding: 31px 32px 46px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 25px; }
.eyebrow { margin: 0 0 7px; color: var(--teal); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 38px; line-height: 1; letter-spacing: -1.2px; }
.page-heading p:last-child { margin: 9px 0 0; color: var(--muted); }
.primary-button { display: inline-flex; align-items: center; justify-content: center; min-height: 43px; padding: 0 17px; border: 0; border-radius: 9px; color: #fff; background: var(--teal); font-weight: 720; box-shadow: 0 7px 16px rgba(12,108,103,.2); cursor: pointer; }
.primary-button:hover { background: #095b57; }
.primary-button:disabled, .secondary-button:disabled { color: #879398; background: #edf1f1; box-shadow: none; cursor: not-allowed; }
.secondary-button { display: inline-flex; align-items: center; justify-content: center; min-height: 43px; padding: 0 17px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: #fff; font-weight: 700; cursor: pointer; }
.primary-button--full, .secondary-button--full { width: 100%; }
.mode-chip, .roadmap-chip { display: inline-flex; align-items: center; min-height: 29px; padding: 0 10px; border-radius: 99px; font-size: 10px; font-weight: 750; }
.mode-chip { color: #48606a; background: #edf2f2; }
.roadmap-chip { color: var(--teal); background: var(--teal-light); }

.demo-banner { display: flex; align-items: center; gap: 10px; margin: -9px 0 21px; padding: 10px 13px; border: 1px solid #d9e6df; border-radius: 10px; color: #4f685d; background: #f2f8f4; font-size: 12px; line-height: 1.45; }
.demo-banner strong { color: #215d4d; }
.flash { margin: 0 0 16px; padding: 12px 15px; border: 1px solid var(--line); border-radius: 10px; font-size: 12px; font-weight: 650; }
.flash--success { color: #176258; border-color: #bfe1d8; background: var(--teal-light); }
.flash--warning { color: #8a4c18; border-color: #efd7bd; background: var(--amber-light); }
.flash--error { color: #922e34; border-color: #efc5c8; background: #fff0f1; }

.metrics { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 13px; margin-bottom: 16px; }
.metric { min-height: 122px; padding: 19px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); }
.metric span, .metric small { display: block; color: var(--muted); }
.metric span { font-size: 12px; font-weight: 650; }
.metric strong { display: block; margin: 13px 0 8px; font-family: Georgia, "Times New Roman", serif; font-size: 25px; letter-spacing: -.5px; }
.metric small { font-size: 11px; }
.metric--attention { border-color: #efd7bd; background: #fffaf4; }
.metric--attention strong { color: var(--amber); }

.workspace-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); overflow: hidden; }
.content > .panel { margin-bottom: 18px; }
.content .panel[id], .content tr[id] { scroll-margin-top: 18px; }
.panel__header { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 21px 16px; }
.panel__header h2 { margin: 0; font-size: 18px; letter-spacing: -.2px; }
.panel__header p { margin: 6px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; }

.segmented { display: flex; padding: 3px; border-radius: 9px; background: #f0f3f2; }
.segmented button { padding: 6px 9px; border: 0; border-radius: 7px; color: var(--muted); background: transparent; font-size: 11px; cursor: pointer; }
.segmented .segmented__active { color: var(--ink); background: #fff; box-shadow: 0 2px 6px rgba(20,40,45,.08); font-weight: 700; }

.table-wrap { max-width: 100%; overflow-x: auto; }
.table-wrap > table { min-width: 600px; }
table { width: 100%; border-collapse: collapse; }
th { padding: 10px 15px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: #66757d; background: #f8f9f8; text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
td { padding: 14px 15px; border-bottom: 1px solid #edf0f1; color: #4f5d66; font-size: 13px; line-height: 1.45; vertical-align: top; overflow-wrap: break-word; }
td:first-child strong, td:first-child span { display: block; }
td:first-child strong { color: var(--ink); font-size: 13px; }
td:first-child span { margin-top: 4px; color: var(--muted); font-size: 12px; }
th.amount, td.amount { text-align: right; white-space: nowrap; }
td.amount strong { color: var(--ink); }
.format-tag { color: #365c66; font-size: 10px; font-weight: 700; }
.badge { display: inline-flex; align-items: center; max-width: 100%; padding: 4px 8px; border-radius: 99px; font-size: 11px; line-height: 1.3; font-weight: 750; white-space: normal; overflow-wrap: anywhere; }
.badge--neutral { color: #45606a; background: #edf2f2; }
.badge--warning { color: #945019; background: var(--amber-light); }
.badge--danger { color: #9a3037; background: #ffedef; }
.badge--success { color: #176258; background: var(--teal-light); }
.badge--large { align-self: center; padding: 7px 11px; font-size: 11px; }
.panel__footer { display: flex; justify-content: space-between; padding: 15px 20px; color: var(--teal); font-size: 11px; font-weight: 750; }

.review-panel { padding-bottom: 13px; }
.review-item { display: grid; grid-template-columns: 31px 1fr; gap: 11px; margin: 0 13px 10px; padding: 14px; border: 1px solid var(--line); border-radius: 11px; }
.review-item--urgent { border-color: #efd7bd; background: #fffaf4; }
.review-item__icon { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 9px; color: var(--teal); background: var(--teal-light); font-weight: 850; }
.review-item--urgent .review-item__icon { color: var(--amber); background: var(--amber-light); }
.review-item strong { font-size: 12px; }
.review-item p { margin: 5px 0 8px; color: var(--muted); font-size: 11px; line-height: 1.4; }
.review-item button { padding: 0; border: 0; color: var(--teal); background: transparent; font-size: 10px; font-weight: 750; cursor: pointer; }
.review-item a { color: var(--teal); font-size: 10px; font-weight: 750; }
.compliance-note { display: grid; gap: 3px; margin: 18px 13px 0; padding: 14px; border-radius: 11px; color: #dbe6e6; background: var(--navy); }
.compliance-note span { color: #94abad; font-size: 9px; text-transform: uppercase; letter-spacing: .09em; }
.compliance-note strong { font-size: 12px; }
.compliance-note small { color: #adc0c2; font-size: 10px; }

.text-button { padding: 0; border: 0; color: var(--teal); background: transparent; font-size: 11px; font-weight: 750; cursor: pointer; }
.form-note { display: block; margin-top: 10px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.invoice-form { display: grid; gap: 15px; }
.form-section { padding: 22px; overflow: visible; }
.form-section[id] { scroll-margin-top: 16px; }
.section-heading { display: flex; align-items: flex-start; gap: 13px; margin-bottom: 21px; }
.section-heading > span { display: grid; place-items: center; flex: 0 0 auto; width: 30px; height: 30px; border-radius: 9px; color: var(--teal); background: var(--teal-light); font-size: 10px; font-weight: 850; }
.section-heading h2 { margin: 0; font-size: 16px; }
.section-heading p { margin: 5px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.form-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field { display: grid; gap: 7px; min-width: 0; }
.field--wide { grid-column: 1 / -1; }
.field > span { color: #57656d; font-size: 12px; font-weight: 750; text-transform: uppercase; letter-spacing: .035em; }
.field input, .field select { width: 100%; min-height: 42px; padding: 9px 11px; border: 1px solid #ccd5d8; border-radius: 8px; outline: 0; color: var(--ink); background: #fff; }
.field input:focus, .field select:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(12,108,103,.1); }
.line-items { display: grid; gap: 11px; margin-bottom: 14px; }
.line-item { display: grid; grid-template-columns: minmax(230px, 2fr) minmax(90px, .55fr) minmax(135px, .75fr) minmax(90px, .5fr) 28px; gap: 10px; align-items: end; padding: 13px; border: 1px solid var(--line); border-radius: 10px; background: #fafbfa; }
.remove-line { width: 28px; height: 42px; padding: 0; border: 0; color: #9b575a; background: transparent; font-size: 20px; cursor: pointer; }
.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 4px 2px; }
.form-actions > span { color: var(--muted); font-size: 11px; }

.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 17px; align-items: start; }
.document-card { padding: 31px; }
.document-card__top { display: flex; justify-content: space-between; gap: 25px; padding-bottom: 29px; border-bottom: 1px solid var(--line); }
.document-card__top > div { display: grid; gap: 5px; }
.document-card__top span, .address-block > span, .document-meta dt { color: var(--muted); font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: .04em; }
.document-card__top strong { font-size: 15px; }
.document-card__top small { color: var(--muted); font-size: 10px; }
.document-number { text-align: right; }
.document-number strong { font-family: Georgia, "Times New Roman", serif; font-size: 18px; }
.address-block { margin: 28px 0; }
.address-block strong { display: block; margin: 9px 0 6px; font-size: 14px; }
.address-block p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.document-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; margin: 0 0 25px; padding: 14px; border-radius: 10px; background: #f5f7f6; }
.document-meta div { display: grid; gap: 5px; }
.document-meta dd { margin: 0; font-size: 13px; font-weight: 700; }
.invoice-lines td:nth-child(2) { white-space: normal; min-width: 220px; }
.totals { width: min(350px, 100%); margin: 20px 0 0 auto; display: grid; gap: 9px; }
.totals > div { display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 11px; }
.totals > div strong { color: var(--ink); }
.totals .totals__grand { margin-top: 4px; padding-top: 13px; border-top: 2px solid var(--ink); color: var(--ink); font-size: 14px; }
.totals__grand strong { font-family: Georgia, "Times New Roman", serif; font-size: 20px; }
.action-stack { display: grid; gap: 13px; }
.action-card, .artifact-card { padding: 18px; }
.action-card h2, .artifact-card h2 { margin: 0 0 8px; font-size: 14px; }
.action-card p, .artifact-card p { margin: 0 0 15px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.action-card form { display: grid; gap: 12px; }
.success-copy { padding: 11px; border-radius: 8px; color: #176258 !important; background: var(--teal-light); }
.artifact-card__status { display: inline-flex; margin-bottom: 12px; padding: 4px 7px; border-radius: 99px; color: #8a4c18; background: var(--amber-light); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.artifact-card__status.is-ready { color: #176258; background: var(--teal-light); }
.download-link { display: block; margin-top: 7px; color: var(--teal); font-size: 12px; line-height: 1.4; font-weight: 750; overflow-wrap: anywhere; }
.empty-state { display: grid; justify-items: start; gap: 13px; padding: 60px 0; }
.empty-state h1 { font-size: 32px; }
.empty-state p { margin: 0; color: var(--muted); }
.empty-row { padding: 40px; text-align: center; color: var(--muted); }
.table-action { padding: 7px 10px; border: 1px solid #c7dcd7; border-radius: 7px; color: var(--teal); background: #f3faf8; font-size: 10px; font-weight: 750; cursor: pointer; }

.provider-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.provider-card { position: relative; padding: 25px; }
.provider-card__icon { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 20px; border-radius: 12px; color: var(--navy); background: #d8f36b; font-weight: 850; }
.provider-card h2 { margin: 0 0 10px; font-family: Georgia, "Times New Roman", serif; font-size: 23px; }
.provider-card > p:not(.eyebrow) { margin: 0; color: var(--muted); line-height: 1.6; }
.provider-card ul { margin: 19px 0; padding-left: 18px; color: #415059; line-height: 1.9; font-size: 12px; }
.provider-card__state { display: inline-flex; padding: 6px 9px; border-radius: 8px; color: #8a4c18; background: var(--amber-light); font-size: 10px; font-weight: 750; }
.provider-card--wide { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 35px; align-items: center; background: var(--navy); color: #fff; }
.provider-card--wide > div > p:not(.eyebrow) { color: #b7c9cc; }
.integration-flow { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; }
.integration-flow span { padding: 9px 11px; border: 1px solid rgba(255,255,255,.15); border-radius: 8px; color: #e7eeee; background: rgba(255,255,255,.06); font-size: 10px; font-weight: 700; }
.integration-flow b { color: #d8f36b; }
.provider-card--routing { grid-column: 1 / -1; display: grid; min-width: 0; gap: 20px; }
.provider-routing__heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.provider-routing__heading > div { min-width: 0; }
.provider-routing__heading h2 { margin-bottom: 8px; overflow-wrap: break-word; hyphens: auto; }
.provider-routing__heading p:not(.eyebrow) { max-width: 780px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.provider-routing__routes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.provider-route { min-width: 0; padding: 17px; border: 1px solid var(--line); border-radius: 11px; background: #f8fbfa; }
.provider-route__title { display: flex; align-items: center; gap: 12px; }
.provider-route__title > div { min-width: 0; }
.provider-route__title .provider-card__icon { flex: 0 0 auto; width: 38px; height: 38px; margin: 0; font-size: 10px; }
.provider-route__title h3 { margin: 0 0 4px; font-size: 14px; }
.provider-route__title small { display: block; color: var(--muted); font-size: 10px; overflow-wrap: anywhere; }
.provider-route__facts { display: grid; gap: 10px; margin: 16px 0 0; }
.provider-route__facts div { min-width: 0; }
.provider-route__facts dt { color: #77838b; font-size: 9px; font-weight: 750; text-transform: uppercase; letter-spacing: .055em; }
.provider-route__facts dd { margin: 4px 0 0; color: #3f5058; font-size: 11px; line-height: 1.45; overflow-wrap: anywhere; }
.provider-route__facts a { color: var(--teal); font-weight: 750; }
.provider-route__facts code { color: #294b53; font-size: 10px; overflow-wrap: anywhere; }
.provider-routing__guards { display: grid; gap: 4px; padding: 14px 16px; border: 1px solid #efd7bd; border-radius: 10px; color: #78502b; background: #fffaf4; font-size: 10px; line-height: 1.5; }
.provider-routing__guards strong { color: #8a4c18; font-size: 11px; }

.metric__status { font-size: 20px !important; }
.select-cell { width: 48px; text-align: center; }
.select-cell input { width: 17px; height: 17px; accent-color: var(--teal); }
.aok-footer { align-items: center; gap: 20px; }
.aok-footer > span { color: var(--muted); font-weight: 500; }
.aok-history { margin-top: 16px; }
.aok-run-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 0 20px 20px; }
.aok-run-links a { display: flex; justify-content: space-between; gap: 12px; padding: 13px; border: 1px solid var(--line); border-radius: 9px; color: var(--teal); background: #f8fbfa; font-size: 11px; }
.aok-run-links strong { color: var(--ink); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.artifact-card code { color: #38525a; font-size: 10px; overflow-wrap: anywhere; }

.login-page { min-height: 100vh; background: var(--navy); }
.login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(360px, 520px); align-items: center; gap: clamp(40px, 8vw, 120px); width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 56px 0; }
.login-intro { color: #fff; }
.login-brand { width: fit-content; padding: 0 0 55px; }
.login-intro h1 { max-width: 620px; font-size: clamp(48px, 7vw, 78px); line-height: .98; letter-spacing: -2.5px; }
.login-intro > p:not(.eyebrow) { max-width: 570px; margin: 22px 0 0; color: #b7c9cc; font-size: 16px; line-height: 1.65; }
.login-security-note { display: grid; gap: 7px; max-width: 620px; margin-top: 45px; padding: 17px 19px; border: 1px solid rgba(255,255,255,.14); border-radius: 12px; background: rgba(255,255,255,.05); }
.login-security-note strong { color: #d8f36b; font-size: 11px; text-transform: uppercase; letter-spacing: .07em; }
.login-security-note span { color: #b7c9cc; font-size: 11px; line-height: 1.55; }
.login-card { padding: 34px; border: 1px solid rgba(255,255,255,.1); border-radius: 18px; background: #fff; box-shadow: 0 24px 70px rgba(0,0,0,.22); }
.login-card h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 31px; letter-spacing: -.8px; }
.login-card > div:first-child > p:last-child { margin: 9px 0 23px; color: var(--muted); font-size: 12px; }
.login-form { display: grid; gap: 17px; }
.customer-setup { font-size: 1rem; line-height: 1.5; }
.customer-setup > .content { max-width: 1200px; margin-inline: auto; }
.customer-setup .field > span, .customer-setup small, .customer-setup th { font-size: .875rem; }
.customer-setup .field > span { text-transform: none; letter-spacing: normal; }
.customer-setup h2 { font-size: 1.25rem; }
.customer-setup .panel { margin-block: 1.5rem; }
.customer-setup textarea { width: 100%; min-height: 8rem; resize: vertical; padding: .75rem; border: 1px solid #ccd5d8; border-radius: 8px; }
.customer-setup textarea:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.customer-setup fieldset { min-width: 0; padding: 1rem; }
.customer-setup code { overflow-wrap: anywhere; }
.customer-setup .content a:not(.primary-button):not(.secondary-button) { text-decoration: underline; text-underline-offset: .15em; }
.login-card .flash { margin-bottom: 17px; }
.login-help { margin: 18px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.mfa-qr { display: grid; place-items: center; width: min(100%, 280px); min-height: 280px; margin: 18px auto 12px; padding: 14px; border: 1px solid #d8e1e3; border-radius: 14px; background: #fff; }
.mfa-qr svg { display: block; width: 100%; height: auto; aspect-ratio: 1; }
.mfa-qr p { margin: 0; color: var(--muted); text-align: center; }
.mfa-qr__note { color: var(--muted); font-size: 12px; line-height: 1.5; }

@media (max-width: 1080px) {
    .metrics { grid-template-columns: repeat(2, 1fr); }
    .workspace-grid { grid-template-columns: 1fr; }
    .review-panel { display: grid; grid-template-columns: 1fr 1fr; }
    .review-panel .panel__header, .review-panel .compliance-note { grid-column: 1 / -1; }
    .detail-grid { grid-template-columns: 1fr; }
    .action-stack { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .line-item { grid-template-columns: minmax(220px, 2fr) repeat(3, minmax(85px, 1fr)) 28px; }
}

@media (max-width: 760px) {
    .account-navigation { align-items: stretch; flex-direction: column; gap: 8px; padding: 12px; }
    .account-navigation__links { align-items: stretch; flex-direction: column; width: 100%; }
    .account-navigation__links > a, .account-navigation summary { min-height: 40px; }
    .account-navigation details { width: 100%; }
    .account-navigation__menu { position: static; width: 100%; max-height: none; margin: 4px 0 8px; box-shadow: none; }
    .account-navigation__account { justify-content: space-between; width: 100%; padding: 8px 10px 2px; border-top: 1px solid #28434b; }
    .account-navigation__account > span { text-align: left; }
    .login-shell { grid-template-columns: 1fr; width: min(520px, calc(100% - 32px)); gap: 34px; padding: 32px 0; }
    .login-brand { padding-bottom: 28px; }
    .login-intro h1 { font-size: 45px; }
    .login-security-note { margin-top: 26px; }
    .login-card { padding: 25px; }
    .app-shell { grid-template-columns: 1fr; }
    .sidebar { position: static; height: auto; min-height: 0; max-height: 70vh; max-height: min(70dvh, 600px); overflow-y: auto; padding: 14px; }
    .brand { padding-bottom: 13px; }
    .nav { grid-template-columns: minmax(0, 1fr); }
    .topbar { height: auto; padding: 13px 16px; }
    .tenant-switch { align-items: flex-start; flex-direction: column; gap: 4px; }
    .tenant-switch select { min-width: 0; width: min(65vw, 270px); }
    .content { padding: 22px 16px 35px; }
    .page-heading { align-items: flex-start; flex-direction: column; }
    h1 { font-size: 33px; }
    .metrics { grid-template-columns: 1fr 1fr; }
    .metric { min-height: 110px; padding: 15px; }
    .metric strong { font-size: 21px; }
    .panel__header { align-items: flex-start; flex-direction: column; }
    .review-panel { grid-template-columns: 1fr; }
    .review-panel .panel__header, .review-panel .compliance-note { grid-column: auto; }
    .demo-banner { align-items: flex-start; flex-direction: column; }
    .form-grid, .form-grid--three, .provider-card--wide { grid-template-columns: 1fr; }
    .line-item { grid-template-columns: 1fr 1fr; }
    .line-item__description { grid-column: 1 / -1; }
    .remove-line { grid-column: 2; justify-self: end; height: 28px; }
    .document-card { padding: 20px; }
    .document-card__top { flex-direction: column; }
    .document-number { text-align: left; }
    .document-meta { grid-template-columns: 1fr 1fr; }
    .action-stack { grid-template-columns: 1fr; }
    .provider-grid { grid-template-columns: 1fr; }
    .provider-card--wide { grid-column: auto; }
    .provider-card--routing { grid-column: auto; }
    .provider-routing__heading { flex-direction: column; }
    .provider-routing__heading h2 { font-size: 20px; }
    .provider-routing__routes { grid-template-columns: 1fr; }
    .aok-run-links { grid-template-columns: 1fr; }
    .aok-footer { align-items: stretch; flex-direction: column; }
    .topbar__actions .mode-chip { display: none; }
}

@media (max-width: 470px) {
    .metrics { grid-template-columns: 1fr; }
    .form-actions { align-items: stretch; flex-direction: column; }
    .form-actions .primary-button { justify-content: center; }
}
.upload-progress{margin:1rem 0;padding:.9rem;border:1px solid #c8d5e6;border-radius:.75rem;background:#f7faff}.upload-progress[hidden]{display:none}.upload-progress__track{height:.8rem;overflow:hidden;border-radius:999px;background:#dbe5f0}.upload-progress__bar{height:100%;width:0;border-radius:inherit;background:linear-gradient(90deg,#1769aa,#39a8e0);transition:width .18s ease}.upload-progress__text{display:block;margin-top:.55rem;color:#24384c}.upload-progress--processing .upload-progress__bar{background:linear-gradient(90deg,#1769aa 0%,#65c5ef 45%,#1769aa 90%);background-size:200% 100%;animation:fixkus-upload-working 1.2s linear infinite}.upload-progress--error{border-color:#b42318;background:#fff4f2}.upload-progress--error .upload-progress__bar{background:#b42318}@keyframes fixkus-upload-working{from{background-position:200% 0}to{background-position:0 0}}@media (prefers-reduced-motion:reduce){.upload-progress__bar{transition:none}.upload-progress--processing .upload-progress__bar{animation:none}}
.ocr-text{margin:1rem 0}.ocr-text pre{max-height:24rem;overflow:auto;padding:1rem;border:1px solid #d7e0ea;border-radius:.65rem;background:#f7f9fc;white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;line-height:1.45}
.pipeline-list{display:grid;gap:.45rem;min-width:16rem;margin:0;padding:0;list-style:none}.pipeline-list li{display:grid;gap:.18rem}.pipeline-list small{color:var(--muted);line-height:1.35}.pipeline-list .badge{width:max-content;max-width:100%}
.payer-combobox__label{color:#57656d;font-size:.875rem;font-weight:750}.payer-combobox__control{position:relative}.payer-combobox__control>input[type="search"]{width:100%}.payer-suggestions{position:absolute;z-index:30;top:calc(100% + .25rem);left:0;right:0;max-height:18rem;overflow-y:auto;padding:.35rem;border:1px solid var(--line);border-radius:.65rem;background:#fff;box-shadow:0 14px 35px rgba(19,42,48,.16)}.payer-suggestions[hidden]{display:none}.payer-suggestions button{display:flex;align-items:center;justify-content:space-between;gap:1rem;width:100%;padding:.7rem .8rem;border:0;border-radius:.45rem;background:transparent;color:var(--ink);font-size:.875rem;text-align:left;cursor:pointer}.payer-suggestions button[hidden]{display:none}.payer-suggestions button:hover,.payer-suggestions button:focus-visible,.payer-suggestions button.is-active{outline:none;background:#edf5f3}.payer-suggestions button small{flex:0 0 auto;color:var(--muted)}.payer-suggestions p{margin:.55rem .7rem;color:var(--muted)}
.ride-date-row{display:grid;grid-template-columns:minmax(12rem,1fr) auto;gap:.75rem;align-items:end;margin-bottom:.75rem}.ride-date-row .secondary-button{margin-bottom:.1rem}.form-actions{display:flex;flex-wrap:wrap;gap:.75rem;margin-top:1rem}@media(max-width:640px){.ride-date-row{grid-template-columns:1fr}.ride-date-row .secondary-button{justify-self:start}}
.synthetic-e2e__result{margin-top:1rem;padding:1rem;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface-soft)}.synthetic-e2e__result .pipeline-list{grid-template-columns:repeat(auto-fit,minmax(15rem,1fr));margin-top:1rem}
.disclosure-panel > summary { cursor: pointer; list-style: none; }
.disclosure-panel > summary::-webkit-details-marker { display: none; }
.disclosure-panel > summary::after { content: 'Details anzeigen'; flex: none; color: var(--teal); font-size: 12px; font-weight: 750; }
.disclosure-panel[open] > summary::after { content: 'Details schließen'; }
.disclosure-panel > form, .disclosure-panel > p, .disclosure-panel > .document-meta, .disclosure-panel > .synthetic-e2e__result { margin: 0 20px 18px; }
.disclosure-panel > form + p { margin-top: 12px; }
#alle-abrechnungsfaelle .table-wrap > table { min-width: 780px; }
#fallauswahl .table-wrap > table { min-width: 920px; }
.table-wrap > .aok-invoices-table { min-width: 1050px; table-layout: fixed; }
.aok-invoices-table th:nth-child(1) { width: 16%; }
.aok-invoices-table th:nth-child(2) { width: 16%; }
.aok-invoices-table th:nth-child(3) { width: 22%; }
.aok-invoices-table th:nth-child(4) { width: 27%; }
.aok-invoices-table th:nth-child(5) { width: 19%; }
.aok-invoices-table td { white-space: normal; }
.aok-invoice-identity small { display: block; margin-top: 5px; color: var(--muted); }
.aok-invoices-table td > strong, .aok-invoices-table td > small, .aok-invoices-table td > .badge { display: block; width: fit-content; margin-bottom: 7px; }
.aok-invoices-table form { margin: 10px 0 16px; }
.aok-invoices-table .checkbox-row { align-items: flex-start; }
.aok-invoices-table .secondary-button { max-width: 100%; white-space: normal; text-align: left; }
.aok-dta-details { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.aok-dta-details > summary { cursor: pointer; color: var(--teal); font-size: 12px; font-weight: 750; line-height: 1.4; }
.aok-dta-details .pipeline-list { min-width: 0; margin-top: 10px; }
@media (prefers-reduced-motion:reduce){.account-navigation summary::after{transition:none}}

.login-register-link { margin-top: 13px; }
.registration-page { min-height: 100vh; background: linear-gradient(135deg, var(--navy) 0 34%, #f3f5f3 34% 100%); font-size: 16px; }
.registration-page.registration-public-page { background: #f3f5f3; color: var(--ink); }
.registration-public-page .registration-header { box-sizing: border-box; width: 100%; max-width: none; margin: 0; padding: 18px max(24px, calc((100% - 1240px) / 2)); background: var(--navy); }
.registration-public-page .registration-brand, .registration-public-page .registration-brand:visited, .registration-public-page .registration-login-link { color: #fff; }
.registration-public-page .registration-shell { padding-top: 36px; }
.registration-public-page .registration-intro { padding: 28px; border: 1px solid rgba(255,255,255,.12); border-radius: 19px; background: var(--navy); box-shadow: 0 20px 55px rgba(10,34,41,.18); }
.registration-header { display: flex; align-items: center; justify-content: space-between; width: min(1240px, calc(100% - 48px)); margin: 0 auto; padding: 24px 0 10px; }
.registration-brand { padding: 0; }
.registration-login-link { padding: 10px 14px; border: 1px solid rgba(255,255,255,.2); border-radius: 9px; color: #fff; font-size: .875rem; font-weight: 700; background: rgba(9,31,39,.28); }
.registration-login-link:hover { border-color: #d8f36b; }
.registration-shell { display: grid; grid-template-columns: minmax(280px, .8fr) minmax(560px, 1.35fr); align-items: start; gap: clamp(36px, 7vw, 96px); width: min(1240px, calc(100% - 48px)); margin: 0 auto; padding: 42px 0 70px; }
.registration-intro { position: sticky; top: 28px; color: #fff; padding-top: 22px; }
.registration-intro h1 { max-width: 480px; font-size: clamp(45px, 5vw, 68px); line-height: 1; letter-spacing: -2px; }
.registration-intro > p:not(.eyebrow) { max-width: 500px; margin: 20px 0 0; color: #c1d1d3; font-size: 1rem; line-height: 1.65; }
.registration-steps { display: grid; gap: 16px; margin: 34px 0 0; padding: 0; list-style: none; }
.registration-steps li { display: grid; grid-template-columns: 38px minmax(0,1fr); gap: 13px; align-items: center; }
.registration-steps li > span { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(216,243,107,.45); border-radius: 11px; color: var(--navy); background: #d8f36b; font-size: .875rem; font-weight: 850; }
.registration-steps li div { display: grid; gap: 3px; }
.registration-steps li strong { font-size: .9375rem; }
.registration-steps li small { color: #9fb4b8; font-size: .8125rem; line-height: 1.4; }
.registration-safety-note { display: grid; gap: 6px; margin-top: 34px; padding: 16px 17px; border: 1px solid rgba(255,255,255,.14); border-radius: 12px; background: rgba(255,255,255,.05); }
.registration-safety-note strong { color: #d8f36b; font-size: .8125rem; text-transform: uppercase; letter-spacing: .055em; }
.registration-safety-note span { color: #bdced0; font-size: .8125rem; line-height: 1.55; }
.registration-card { padding: clamp(24px, 4vw, 42px); border: 1px solid #d7dfe1; border-radius: 19px; background: #fff; box-shadow: 0 24px 70px rgba(10,34,41,.16); }
.registration-card__heading { margin-bottom: 24px; }
.registration-card h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 2rem; letter-spacing: -.7px; }
.registration-card__heading > p:last-child, .registration-result > p:not(.eyebrow) { margin: 9px 0 0; color: var(--muted); font-size: .875rem; line-height: 1.55; }
.registration-form { display: grid; gap: 23px; }
.registration-form fieldset { min-width: 0; margin: 0; padding: 20px; border: 1px solid var(--line); border-radius: 12px; }
.registration-form legend { padding: 0 8px; color: var(--ink); font-size: 1rem; font-weight: 800; }
.registration-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; }
.registration-form .field > span { font-size: .875rem; text-transform: none; letter-spacing: normal; }
.registration-form .field input, .registration-form .field select { min-height: 46px; font-size: 1rem; }
.registration-fieldset-note { margin: 0 0 15px; color: var(--muted); font-size: .875rem; line-height: 1.5; }
.registration-module-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px; }
.registration-module-grid > label { display: grid; grid-template-columns: 20px minmax(0,1fr); gap: 10px; align-items: start; padding: 13px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.registration-module-grid > label:hover { border-color: #aacbc4; background: #f7fbfa; }
.registration-module-grid input, .registration-confirmation input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--teal); }
.registration-module-grid span { display: grid; gap: 4px; }
.registration-module-grid strong { font-size: .875rem; }
.registration-module-grid small { color: var(--muted); font-size: .8125rem; line-height: 1.35; }
.registration-confirmation { display: grid; grid-template-columns: 20px minmax(0,1fr); gap: 10px; align-items: start; color: #3f5058; font-size: .875rem; line-height: 1.5; cursor: pointer; }
.registration-data-note { margin: -10px 0 0 30px; color: var(--muted); font-size: .8125rem; line-height: 1.5; }
.registration-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.registration-result { display: grid; justify-items: start; gap: 16px; padding: 20px 4px; }
.registration-result__mark { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 15px; color: var(--navy); background: #d8f36b; font-size: 1.55rem; font-weight: 900; }
.registration-result .eyebrow { margin: 5px 0 -8px; }
.registration-result .primary-button { margin-top: 8px; }
.registration-secondary-link { justify-self: center; color: var(--teal); font-size: .875rem; font-weight: 700; }
.customer-registrations { font-size: 1rem; line-height: 1.5; }
.customer-registrations .panel__header p, .customer-registrations td, .customer-registrations td span { font-size: .875rem; }
.customer-registrations td { vertical-align: top; white-space: normal; min-width: 160px; }
.customer-registrations td span { display: block; margin-top: 5px; color: var(--muted); }
.customer-registrations .badge { display: inline-flex; margin-top: 0; font-size: .75rem; }

@media (max-width: 940px) {
    .registration-page { background: var(--navy); }
    .registration-page.registration-public-page { background: #f3f5f3; }
    .registration-public-page .registration-header { width: 100%; padding: 18px 24px; }
    .registration-shell { grid-template-columns: 1fr; width: min(720px, calc(100% - 32px)); gap: 28px; padding-top: 24px; }
    .registration-header { width: min(720px, calc(100% - 32px)); }
    .registration-intro { position: static; padding-top: 0; }
    .registration-intro h1 { font-size: 46px; }
    .registration-steps { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .registration-steps li { align-items: start; grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
    .registration-header { align-items: flex-start; gap: 16px; }
    .registration-login-link { max-width: 170px; text-align: center; }
    .registration-intro h1 { font-size: 39px; }
    .registration-steps { grid-template-columns: 1fr; }
    .registration-steps li { grid-template-columns: 38px minmax(0,1fr); }
    .registration-card { padding: 22px 17px; border-radius: 14px; }
    .registration-grid, .registration-module-grid { grid-template-columns: 1fr; }
    .registration-form fieldset { padding: 16px 13px; }
    .registration-data-note { margin-left: 0; }
}
.invoice-preview {
    margin: 1rem 0;
    padding: 1rem;
    border: 1px solid #aeb9c6;
    border-radius: 12px;
    background: #e9eef4;
}

.invoice-preview__notice {
    margin-bottom: .8rem;
    padding: .65rem .8rem;
    border-radius: 8px;
    background: #fff3cd;
    color: #624a00;
    font-weight: 700;
}

.invoice-preview__sheet {
    max-width: 820px;
    margin: 0 auto 1rem;
    padding: 2rem;
    border: 1px solid #ccd3dc;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 3px 14px rgba(15, 34, 55, .12);
    color: #152333;
}

.invoice-preview__sheet:last-child { margin-bottom: 0; }
.invoice-preview__sheet h3 { display: flex; justify-content: space-between; gap: 1rem; }
.invoice-preview__sheet h3 span { font-size: .82rem; font-weight: 500; color: #687484; }
.invoice-preview__recipient { min-height: 5.5rem; white-space: pre-line; }

@media (max-width: 700px) {
    .invoice-preview { padding: .5rem; }
    .invoice-preview__sheet { padding: 1rem; }
    .invoice-preview__sheet h3 { display: block; }
    #alle-abrechnungsfaelle .secondary-button { white-space: nowrap; }
}

/* Taxi-Fallerfassung: lesbare Abschnitte und echte Umbrüche auch auf schmalen Geräten. */
.taxi-cases-page .content { max-width: 1050px; }
.taxi-page-heading { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; margin-bottom: 1rem; }
.taxi-page-heading p:last-child { margin: .6rem 0 0; color: var(--muted); line-height: 1.5; }
.taxi-page-heading .primary-button { flex: 0 0 auto; }
.taxi-page-jumps { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1rem; }
.taxi-page-jumps a { display: inline-flex; align-items: center; min-height: 2.5rem; padding: .45rem .8rem; border: 1px solid var(--line); border-radius: .6rem; background: #fff; color: var(--teal); font-weight: 700; text-decoration: none; }
.taxi-page-jumps a:hover, .taxi-page-jumps a:focus-visible { border-color: var(--teal); background: var(--teal-light); }
.taxi-help { margin: 0 0 1.25rem; border: 1px solid var(--line); border-radius: .75rem; background: #f8faf9; }
.taxi-help summary { padding: .85rem 1rem; cursor: pointer; color: var(--teal); font-weight: 750; }
.taxi-help > div { padding: 0 1rem 1rem; color: #4e5d63; line-height: 1.55; }
.taxi-help > div p { margin: .5rem 0 0; }
.taxi-help--inline { margin: .8rem 0 1.25rem; }
.taxi-cases-page .form-section h2 { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem; margin-top: 0; line-height: 1.25; }
.taxi-cases-page .form-section p, .taxi-cases-page .form-section li, .taxi-case-form label { line-height: 1.5; }
.taxi-case-count { display: inline-grid; place-items: center; min-width: 1.75rem; height: 1.75rem; padding: 0 .4rem; border-radius: 999px; background: var(--teal-light); color: var(--teal); font: 750 .85rem/1 sans-serif; }
.taxi-case-form { display: grid; gap: 1.25rem; }
.taxi-case-context { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; align-items: start; }
.taxi-case-form .field > span, .taxi-case-form .field > label, .taxi-case-form .payer-combobox__label { display: block; color: #35464d; font-size: .9rem; line-height: 1.35; font-weight: 700; text-transform: none; letter-spacing: normal; }
.taxi-case-form .field input, .taxi-case-form .field select, .taxi-case-form .payer-combobox input[type="search"] { min-height: 2.85rem; font-size: 1rem; }
.taxi-case-form .taxi-case-group, .taxi-case-form .ride-dates { min-width: 0; margin: 0; padding: 1.25rem; border: 1px solid var(--line); border-radius: .75rem; background: #fbfcfb; }
.taxi-case-form legend { padding: 0 .45rem; color: var(--ink); font-size: 1.05rem; font-weight: 800; }
.taxi-case-form .form-grid { gap: 1rem 1.25rem; }
.taxi-case-form small, .taxi-case-form .field, .taxi-case-form .ride-dates, .taxi-case-list a, .taxi-case-list span { min-width: 0; overflow-wrap: anywhere; }
.taxi-address-copy { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem 1rem; margin: 0 0 1rem; }
.taxi-address-copy .secondary-button { flex: 0 0 auto; }
.taxi-address-copy small { color: var(--muted); }
.taxi-address-copy small[data-state="error"] { color: #9b2c2c; font-weight: 700; }
.taxi-address-copy small[data-state="success"] { color: var(--teal); font-weight: 700; }
.taxi-address-combobox__control { position: relative; }
.taxi-address-combobox__control > input[type="search"] { width: 100%; }
.address-suggestions { position: absolute; z-index: 31; top: calc(100% + .25rem); right: 0; left: 0; max-height: 18rem; overflow-y: auto; padding: .35rem; border: 1px solid var(--line); border-radius: .65rem; background: #fff; box-shadow: 0 14px 35px rgba(19,42,48,.16); }
.address-suggestions[hidden], .address-suggestions button[hidden] { display: none; }
.address-suggestions button { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; padding: .7rem .8rem; border: 0; border-radius: .45rem; background: transparent; color: var(--ink); font-size: .875rem; text-align: left; cursor: pointer; }
.address-suggestions button:hover, .address-suggestions button:focus-visible, .address-suggestions button.is-active { outline: none; background: #edf5f3; }
.address-suggestions button strong { min-width: 0; overflow-wrap: anywhere; }
.address-suggestions button small { flex: 0 0 auto; color: var(--muted); }
.address-suggestions p { margin: .55rem .7rem; color: var(--muted); }
.taxi-case-form .form-actions { justify-content: flex-end; padding-top: 1rem; border-top: 1px solid var(--line); }
.taxi-case-list { display: grid; gap: 0; margin: .5rem 0 0; padding: 0; list-style: none; }
.taxi-case-list li { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .25rem 1rem; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.taxi-case-list li:last-child { border-bottom: 0; }
.taxi-case-list a { flex: 1 1 17rem; font-weight: 750; }
.taxi-case-list span { flex: 1 1 13rem; color: var(--muted); }
.taxi-case-list strong { color: var(--ink); }
.taxi-claims-table { min-width: 38rem; }
.taxi-claims-table th, .taxi-claims-table td { padding: .8rem .7rem; font-size: .9rem; line-height: 1.4; }
.taxi-claims-table td { white-space: normal; vertical-align: top; }
.taxi-claims-table td:first-child { width: 36%; }
.taxi-claims-table td:first-child a { font-weight: 750; overflow-wrap: anywhere; }
.taxi-claims-table td.amount { white-space: nowrap; font-variant-numeric: tabular-nums; }
.taxi-claims-table td:last-child { min-width: 10rem; }
.taxi-claims-table tbody tr:hover { background: #f8faf9; }
.taxi-new-draft-warning { padding: .9rem 1rem; border: 1px solid #e8cf9e; border-radius: .65rem; background: #fff9eb; color: #694718; }
.taxi-legacy-close { display: grid; gap: 1rem; padding-top: .7rem; }
.taxi-legacy-close .field { max-width: 36rem; }
.taxi-legacy-close label { line-height: 1.5; }
.taxi-legacy-close .secondary-button { justify-self: start; text-align: center; white-space: normal; }
@media (max-width: 760px) {
    .taxi-page-heading { align-items: stretch; flex-direction: column; }
    .taxi-page-heading .primary-button { align-self: flex-start; }
    .taxi-case-context { grid-template-columns: 1fr; }
    .taxi-cases-page .form-section { padding: 1rem; }
    .taxi-case-form .taxi-case-group, .taxi-case-form .ride-dates { padding: 1rem .8rem; }
    .taxi-case-list li { display: grid; }
}
@media (max-width: 470px) {
    .taxi-page-heading .primary-button { width: 100%; }
    .taxi-page-jumps a { flex: 1 1 auto; justify-content: center; }
    .taxi-address-copy { align-items: stretch; flex-direction: column; }
    .taxi-address-copy .secondary-button { width: 100%; }
    .address-suggestions button { align-items: flex-start; flex-direction: column; gap: .2rem; }
    .taxi-case-form .form-actions > button { width: 100%; }
}

/* BARMER-Postrechnung: dieselbe ruhige Kartenhierarchie wie bei den übrigen Kundenabläufen. */
.barmer-postal-page .content { max-width: 1080px; }
.barmer-back { margin-bottom: 1.15rem; font-size: .9rem; font-weight: 700; }
.barmer-page-heading { margin-bottom: 1.4rem; }
.barmer-page-heading h1 { line-height: 1.12; }
.barmer-page-heading > p:last-child { margin: .65rem 0 0; color: var(--muted); line-height: 1.5; }
.barmer-postal-page .panel { margin-block: 1rem; }
.barmer-case-card, .barmer-status-card, .barmer-error, .barmer-form-card { padding: clamp(1.1rem, 2.4vw, 1.7rem); }
.barmer-error { border-color: #efc5c8; }
.barmer-error h2 { margin: 0 0 .55rem; }
.barmer-error p { margin: .55rem 0 0; line-height: 1.5; overflow-wrap: anywhere; }
.barmer-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.barmer-card-heading > div { min-width: 0; }
.barmer-card-heading h2 { margin: 0; font-size: 1.3rem; line-height: 1.3; overflow-wrap: anywhere; }
.barmer-card-heading p:last-child { margin: .4rem 0 0; color: var(--muted); line-height: 1.45; }
.barmer-kicker { margin: 0 0 .3rem !important; color: var(--teal) !important; font-size: .72rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.barmer-amounts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .75rem; margin: 1.25rem 0; }
.barmer-amounts > div { min-width: 0; padding: 1rem; border: 1px solid var(--line); border-radius: .7rem; background: #f8faf9; }
.barmer-amounts dt, .barmer-invoice-numbers dt { color: var(--muted); font-size: .78rem; font-weight: 700; }
.barmer-amounts dd { margin: .45rem 0 0; font-size: clamp(1.15rem,2vw,1.45rem); font-weight: 800; line-height: 1.25; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.barmer-amounts__total { border-color: #b9ddd3 !important; background: #edf8f4 !important; }
.barmer-amounts__total dd { color: #176258; }
.barmer-ik-note { margin: 0 0 1rem; color: var(--muted); font-size: .85rem; line-height: 1.5; }
.barmer-no-send { padding: .9rem 1rem; border-left: 4px solid var(--teal); border-radius: .45rem; background: #f0f7f5; }
.barmer-no-send > strong { color: #176258; }
.barmer-no-send p { margin: .35rem 0 0; line-height: 1.5; }
.barmer-invoice-numbers { display: flex; flex-wrap: wrap; gap: .8rem 2rem; margin: 1.15rem 0; }
.barmer-invoice-numbers div { min-width: min(100%,13rem); }
.barmer-invoice-numbers dd { margin: .25rem 0 0; font-weight: 800; overflow-wrap: anywhere; }
.barmer-pdf-actions { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,14rem),1fr)); gap: .7rem; margin: 1.25rem 0 0; }
.barmer-pdf-actions .secondary-button { min-width: 0; padding: .7rem 1rem; white-space: normal; text-align: center; }
.barmer-help { margin: 1rem 0 0; color: var(--muted); font-size: .88rem; line-height: 1.5; }
.barmer-form-card .barmer-card-heading { margin-bottom: 1.15rem; }
.barmer-form-block { padding: 1.25rem 0; border-top: 1px solid var(--line); }
.barmer-form-block h3 { margin: 0 0 .35rem; font-size: 1.05rem; }
.barmer-form-block > p { margin: 0 0 1rem; color: var(--muted); font-size: .88rem; line-height: 1.5; }
.barmer-form-block .form-grid { gap: .95rem 1.2rem; }
.barmer-state-field { max-width: 28rem; }
.barmer-form-actions { display: grid; gap: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.barmer-form-actions .checkbox-row { display: flex; align-items: flex-start; gap: .7rem; margin: 0; padding: .9rem; border: 1px solid var(--line); border-radius: .65rem; background: #f8faf9; line-height: 1.5; }
.barmer-form-actions .checkbox-row input { flex: 0 0 auto; margin: .28rem 0 0; }
.barmer-form-actions .primary-button { justify-self: start; min-height: 46px; white-space: normal; text-align: center; }
.barmer-disclosure { padding: 0; }
.barmer-disclosure > summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.3rem; font-weight: 750; }
.barmer-disclosure > summary::after { white-space: nowrap; }
.barmer-disclosure > div { padding: 0 1.3rem 1.15rem; color: var(--muted); font-size: .88rem; line-height: 1.55; }
.barmer-disclosure > div p { margin: .7rem 0 0; }
.barmer-postal-page a:focus-visible, .barmer-postal-page button:focus-visible, .barmer-disclosure > summary:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
@media (max-width: 760px) {
    .barmer-amounts { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .barmer-amounts__total { grid-column: 1 / -1; }
}
@media (max-width: 470px) {
    .barmer-amounts { grid-template-columns: 1fr; }
    .barmer-amounts__total { grid-column: auto; }
    .barmer-pdf-actions { grid-template-columns: 1fr; }
    .barmer-form-actions .primary-button { width: 100%; }
    .barmer-card-heading { flex-wrap: wrap; }
}
