.info-card,
.content-card {
    background: rgba(255, 252, 246, 0.92);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.info-card {
    padding: 22px;
}

.info-card h3 {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
}

.info-number {
    margin: 0;
    font-size: 38px;
    line-height: 1;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: -0.04em;
}

.info-number-money {
    font-size: 30px;
}

.content-card {
    padding: 26px;
    overflow-x: auto;
}

.content-card h3 {
    margin-top: 0;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.table {
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
}

.table thead th {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: #f4efe5;
    padding: 18px 18px;
    white-space: nowrap;
}

.table tbody td {
    color: #3f493e;
    font-size: 14px;
    font-weight: 500;
    padding: 18px 18px;
    line-height: 1.5;
    background: rgba(255, 252, 246, 0.84);
}

.table tbody tr {
    height: 78px;
}

.table > :not(caption) > * > * {
    border-color: #ddd4c4;
}

.table tbody tr:hover td {
    background: #f9f5ee;
}

.table td,
.table th {
    vertical-align: middle;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.detail-item {
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 16px;
}

.detail-label {
    display: block;
    margin-bottom: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--muted);
}

.detail-value {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #314352;
}

.detail-section-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.dokument-liste {
    display: grid;
    gap: 14px;
}

.dokument-eintrag {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface-soft);
}

.dokument-eintrag strong {
    display: block;
    margin-bottom: 6px;
    font-size: 15px;
}

.dokument-eintrag p {
    margin: 0 0 4px;
    color: #3d5060;
    font-size: 14px;
}

.dokument-eintrag small {
    color: var(--muted);
    font-size: 12px;
}

.summary-button {
    text-align: left;
    cursor: pointer;
}

.summary-button .info-number {
    width: 100%;
}

.geraete-search-form {
    justify-content: flex-start;
}

.detail-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.list-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.list-pagination-meta {
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

.list-pagination-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.inline-form-reset {
    display: inline;
    margin: 0;
}

.form-reset-margin {
    margin: 0;
}

.inline-flex-wrap-gap-md {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.inline-flex-wrap-gap-sm {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.align-center {
    align-items: center;
}

.align-end {
    align-items: flex-end;
}

.min-height-520 {
    min-height: 520px;
}

.truncate-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.company-caret-text {
    font-size: 0.7rem;
    color: var(--iia-muted);
    flex-shrink: 0;
    margin-left: 0.25rem;
}

.iia-nav-icon-sm {
    width: 14px;
    height: 14px;
}

.mt-xxs {
    margin-top: 0.2rem;
}

.mt-1rem {
    margin-top: 1rem;
}

.mt-0 {
    margin-top: 0;
}

.cockpit-text {
    color: var(--cockpit-text);
}

.mf-summary-value-md {
    font-size: 1.25rem;
}

.mf-summary-value-sm {
    font-size: 1rem;
    line-height: 1.3;
}

.invoice-note-muted {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

@media (max-width: 980px) {
    .detail-section-grid {
        grid-template-columns: 1fr;
    }

    .list-pagination {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ── Page header ─────────────────────────────────────────────────────── */
.dashboard-header {
    margin-bottom: 1.75rem;
}

.dashboard-title {
    margin: 0 0 0.25rem;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #0a1628;
}

/* ── Section card ────────────────────────────────────────────────────── */
.dashboard-section {
    background: #ffffff;
    border: 1px solid var(--line, #d7edf3);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(9, 21, 36, 0.06);
    margin-bottom: 1.5rem;
}

.section-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #0a1628;
}

/* ── Data table ──────────────────────────────────────────────────────── */
.table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.data-table thead th {
    padding: 0.6rem 0.9rem;
    text-align: left;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted, #607184);
    background: #f8fafc;
    border-bottom: 2px solid var(--line, #d7edf3);
    white-space: nowrap;
}

.data-table tbody td {
    padding: 0.7rem 0.9rem;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
    color: #1e293b;
    font-size: 0.875rem;
    line-height: 1.4;
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

.data-table tbody tr:hover td {
    background: #f5fafd;
}

/* ── Badges ──────────────────────────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2em 0.65em;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.badge-warning {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.badge-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.badge-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.badge-neutral {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}
