




.wrap.info-document-page {
    padding-top: 28px;
}



.doc-body p {
    margin: 0 0 0.75em;
}

.doc-body h3,
.doc-body h4 {
    margin: 1.25rem 0 0.35rem;
    line-height: 1.35;
}

.doc-body h3 {
    font-size: 1.05rem;
}

.doc-body h4 {
    font-size: 0.98rem;
}


.doc-body > :first-child,
.doc-section > :first-child,
.doc-section > h2 + h3,
.doc-section > h2 + h4,
.doc-body .md-block > h3:first-child,
.doc-body .md-block > h4:first-child,
.doc-body .md-definition dd > :first-child {
    margin-top: 0;
}




.doc-body .md-definitions {
    display: grid;
    row-gap: 16px;
    margin: 0.75rem 0 1.1rem;
}

.doc-body .md-definition {
    display: grid;
    grid-template-columns: 25% minmax(0, 1fr);
    column-gap: 16px;
    align-items: start;
}

.doc-body .md-definition dt {
    margin: 0;
    padding: 2px 0 2px 10px;
    border-left: 3px solid var(--color-primary);
    font-weight: 700;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.doc-body .md-definition dd {
    margin: 0;
    min-width: 0;
}

.doc-body .md-definition dd > :last-child {
    margin-bottom: 0;
}



.doc-body ul,
.doc-body ol {
    list-style-position: outside;
    padding-left: 1.25rem;
    margin: 0.35rem 0 1rem;
}

.doc-body li {
    margin-bottom: 0.4rem;
    padding-left: 0.2rem;
}

.doc-body li::marker {
    color: var(--color-primary);
}

.doc-body ol > li::marker {
    font-weight: 600;
}

.doc-body li > ul,
.doc-body li > ol {
    margin: 0.4rem 0 0;
}


.doc-body strong {
    font-weight: 700;
}




.doc-body table {
    width: 100%;
    table-layout: fixed;
}

.doc-body th:first-child:nth-last-child(2),
.doc-body td:first-child:nth-last-child(2) {
    width: 28%;
}




.doc-body .md-danger {
    background: #fff1f2;
    border-color: #fecdd3;
    border-left: 3px solid #e11d48;
    border-radius: 4px;
    padding: 10px 14px;
    color: var(--color-text);
}

.doc-body .md-warning {
    background: #fff7ed;
    border-color: #fed7aa;
    border-left: 3px solid #ea580c;
    border-radius: 4px;
    padding: 10px 14px;
}

.doc-body .md-danger strong,
.doc-body .md-danger .md-text-danger {
    color: #be123c;
}



.doc-body a {
    overflow-wrap: anywhere;
}



:root[data-theme="dark"] .doc-body .md-danger {
    background: #3a1820;
    border-color: #6b2433;
    border-left-color: #f43f5e;
    color: var(--color-text);
}

:root[data-theme="dark"] .doc-body .md-danger strong,
:root[data-theme="dark"] .doc-body .md-danger .md-text-danger {
    color: #fda4af;
}

:root[data-theme="dark"] .doc-body .md-warning {
    background: #3a2614;
    border-color: #6b4220;
    border-left-color: #fb923c;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .doc-body .md-danger {
        background: #3a1820;
        border-color: #6b2433;
        border-left-color: #f43f5e;
        color: var(--color-text);
    }

    :root:not([data-theme="light"]) .doc-body .md-danger strong,
    :root:not([data-theme="light"]) .doc-body .md-danger .md-text-danger {
        color: #fda4af;
    }

    :root:not([data-theme="light"]) .doc-body .md-warning {
        background: #3a2614;
        border-color: #6b4220;
        border-left-color: #fb923c;
    }
}



@media (max-width: 640px) {
    .wrap.info-document-page {
        padding-top: 20px;
    }

    
    .doc-body .md-definition {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 4px;
    }
}

@media (max-width: 480px) {
    .doc-body th:first-child:nth-last-child(2),
    .doc-body td:first-child:nth-last-child(2) {
        width: 36%;
    }

    .doc-body ul,
    .doc-body ol {
        padding-left: 1.1rem;
    }
}


.doc-page-head { padding-bottom: 14px; border-bottom: 1px solid var(--color-border); margin-bottom: 18px; }
.doc-page-head h1 { margin-bottom: 6px; }
.doc-page-head .doc-subtitle { margin: 0; color: var(--color-text-muted); font-size: 1.0625rem; line-height: 1.5; }


.acknowledge-due { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin: 0 0 0.75rem; color: var(--color-text-muted); }
.acknowledge-due .pill { white-space: normal; }


.document-page {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
}

.document-page-public {
    padding-top: 32px;
    padding-bottom: 40px;
}

.document-head {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--color-border);
}

.document-head h1 {
    margin: 0;
    font-size: clamp(1.45rem, 3.2vw, 1.9rem);
    line-height: 1.25;
    overflow-wrap: break-word;
}

.document-subtitle {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 1.02rem;
    line-height: 1.5;
}

.document-pills {
    margin-top: 6px;
    gap: 8px;
}

.document-page > .notice {
    margin: 0;
}

.document-grid,
.document-side {
    min-width: 0;
}


.document-card .document-watermark {
    transform: none;
    overflow: hidden;
}

.document-watermark-text {
    display: block;
    max-width: 88%;
    transform: rotate(-24deg);
    overflow-wrap: break-word;
}

.document-side {
    gap: 18px;
}

.document-actions {
    margin-top: 22px;
    gap: 10px 12px;
}

.document-actions form {
    display: contents;
}

.document-actions .button {
    max-width: 100%;
    white-space: normal;
    text-align: center;
}

.document-action-hint {
    margin: 10px 0 0;
    font-size: 0.9rem;
    line-height: 1.45;
}



.document-pay-amounts {
    margin-bottom: 14px;
}

.document-pay-card .notice {
    margin: 0 0 12px;
}

.document-pay-intro {
    margin: 4px 0 10px;
    font-weight: 600;
}


.document-pay-issue-hint span,
.document-pay-unavailable span {
    font-size: 0.92rem;
    line-height: 1.45;
}


.pay-transfer-hint {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.45;
    color: var(--color-text-muted);
}

.pay-qr-missing {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.45;
}


.document-pay-refund .list-title {
    color: var(--color-amber, var(--color-text));
}


.document-files {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    margin-top: 22px;
}

.document-files-title {
    margin: 0;
}

.document-files .file-gallery {
    min-width: 0;
}

.document-files-hint {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.45;
}

.document-files + .document-actions {
    margin-top: 16px;
}

.pay-option-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pay-option {
    min-width: 0;
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-small);
    background: var(--color-surface-raised);
}

.pay-option[open] {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 1px var(--color-primary);
}

.pay-option-head {
    list-style: none;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
        "title chevron"
        "badges badges";
    align-items: center;
    gap: 8px 10px;
    padding: 12px 14px;
    cursor: pointer;
}


.pay-option-head-plain {
    grid-template-areas: "title chevron";
}

.pay-option-head::-webkit-details-marker {
    display: none;
}

.pay-option-head:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
    border-radius: var(--radius-small);
}

.pay-option-title {
    grid-area: title;
    font-weight: 700;
    line-height: 1.35;
}

.pay-option-chevron {
    grid-area: chevron;
    display: inline-flex;
    color: var(--color-text-muted);
    transition: transform 0.15s ease;
}

.pay-option[open] .pay-option-chevron {
    transform: rotate(180deg);
}

.pay-badge-row {
    grid-area: badges;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.pay-badge-row > span {
    display: inline-flex;
}

.pay-badge {
    display: block;
    flex: 0 0 auto;
}

.pay-badge-chip {
    width: 40px;
    height: 26px;
}

.pay-badge-wordmark {
    width: auto;
    height: 24px;
}

.pay-option-body {
    padding: 0 14px 14px;
    border-top: 1px solid var(--color-border);
}

.pay-option-body > p {
    margin: 12px 0;
    line-height: 1.5;
}

.pay-option-body form {
    margin: 0;
}

.pay-option-button {
    width: 100%;
    max-width: 100%;
    justify-content: center;
    text-align: center;
    white-space: normal;
}

.pay-option-note {
    margin: 0;
}

.pay-transfer {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.pay-bank-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 0;
}

.pay-bank-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
    padding: 8px 0;
    border-bottom: 1px solid var(--color-border);
}

.pay-bank-row:last-child {
    border-bottom: 0;
}

.pay-bank-row dt {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text-muted);
}

.pay-bank-row dd {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    min-width: 0;
    margin: 0;
}

.pay-bank-value {
    flex: 1 1 12rem;
    min-width: 0;
    font-weight: 600;
    overflow-wrap: anywhere;
    user-select: all;
}

.pay-bank-code {
    font-family: ui-monospace, Consolas, monospace;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
}

.pay-copy {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 4px 10px;
    font: inherit;
    font-size: 0.86rem;
    color: var(--color-text);
    background: var(--color-surface-raised);
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-small);
    cursor: pointer;
}

.pay-copy[hidden] {
    display: none;
}

.pay-copy:hover,
.pay-copy:focus-visible {
    border-color: var(--color-accent);
    color: var(--color-link);
}

.pay-copy .icon {
    width: 16px;
    height: 16px;
}

.pay-copy-status {
    font-size: 0.82rem;
    color: var(--color-green);
}

.pay-copy-status:empty {
    display: none;
}


.pay-qr {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 14px;
    color: #1e2a35;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-small);
}

.pay-qr svg {
    display: block;
    width: 100%;
    max-width: 190px;
    height: auto;
}

.pay-qr figcaption {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: center;
    font-size: 0.86rem;
    line-height: 1.4;
}

.document-pay-history {
    margin-top: 6px;
}



.document-action-card .card-body > p {
    margin: 0 0 12px;
}

.document-action-panel summary {
    max-width: 100%;
    white-space: normal;
}

.document-action-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.document-action-pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.document-action-note {
    margin: 0;
    font-size: 0.88rem;
}



.belege-filter {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto;
    align-items: end;
    gap: 12px 14px;
    padding: 14px 18px;
    background: var(--color-surface-alt);
    border-bottom: 1px solid var(--color-border);
}

.belege-filter-field {
    min-width: 0;
}

.belege-filter-field .field-label {
    font-size: 0.86rem;
}

.belege-filter-wide {
    grid-column: span 2;
}

.belege-filter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.belege-filter-actions .button {
    min-height: 46px;
    white-space: nowrap;
}


.belege-table-wrap td.col-date,
.belege-table-wrap td.col-due {
    white-space: nowrap;
}

.belege-result-count {
    margin: 0;
    padding: 10px 18px 0;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.belege-pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px 14px;
    padding: 14px 18px;
    border-top: 1px solid var(--color-border);
}

.belege-pager .is-disabled {
    opacity: 0.5;
    cursor: default;
    pointer-events: none;
}

.belege-pager-position {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.belege-truncated {
    margin: 0;
    padding: 0 18px 14px;
    font-size: 0.88rem;
}


.sort-head {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: inherit;
    text-decoration: none;
    white-space: nowrap;
}

.sort-head:hover,
.sort-head:focus-visible {
    color: var(--color-link);
    text-decoration: underline;
}

.sort-head.is-sorted {
    color: var(--color-orange-dark);
}

.sort-arrow {
    font-size: 0.85em;
    opacity: 0.7;
}

.sort-head.is-sorted .sort-arrow {
    opacity: 1;
}

.finance-reference,
.finance-date {
    white-space: nowrap;
}

.finance-date {
    font-variant-numeric: tabular-nums;
}


@container finance-table (min-width: 700px) and (max-width: 999.98px) {
    .belege-table-wrap .finance-table th.col-registration,
    .belege-table-wrap .finance-table td.col-registration {
        display: none;
    }

    .belege-table-wrap .finance-table .finance-registration-inline {
        display: block;
        margin-top: 4px;
    }

    
    .belege-table-wrap .cockpit-table th,
    .belege-table-wrap .cockpit-table td {
        padding-left: 6px;
        padding-right: 6px;
    }

    .belege-table-wrap .finance-actions .button {
        padding-left: 8px;
        padding-right: 8px;
    }
}

@media (max-width: 900px) {
    .belege-filter {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .belege-filter-wide {
        grid-column: auto;
    }

    .belege-filter-actions {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .document-page-public {
        padding-top: 22px;
    }

    
    .document-table,
    .document-table tbody {
        display: block;
        width: 100%;
    }

    .document-table tfoot {
        display: table;
        width: 100%;
        border-collapse: collapse;
    }

    
    .document-table tfoot td {
        padding-left: 0;
        padding-right: 0;
    }

    .document-table tbody td:nth-child(2) {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .document-action-pair,
    .belege-filter {
        grid-template-columns: minmax(0, 1fr);
    }

    .belege-filter {
        padding: 12px 14px;
    }

    .belege-filter-actions .button {
        white-space: normal;
    }

    .document-actions .button {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 380px) {
    .pay-option-head {
        padding: 10px 12px;
    }

    .pay-option-body {
        padding: 0 12px 12px;
    }

    .pay-badge-chip {
        width: 36px;
        height: 24px;
    }
}


@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .pay-badge-wordmark {
        box-sizing: content-box;
        padding: 2px 4px;
        background: #ffffff;
        border-radius: 4px;
    }
}

:root[data-theme="dark"] .pay-badge-wordmark {
    box-sizing: content-box;
    padding: 2px 4px;
    background: #ffffff;
    border-radius: 4px;
}
