﻿        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        html {
            height: 100%;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background-color: #f5f5f5;
            color: #333;
            height: 100%;
            display: flex;
            flex-direction: column;
        }

        :root {
            --admin-surface: #ffffff;
            --admin-surface-muted: #f6f6f6;
            --admin-surface-soft: #f1f1f1;
            --admin-border: #dddddd;
            --admin-border-strong: #c8c8c8;
            --admin-text: #333333;
            --admin-text-muted: #666666;
            --admin-primary: #0066cc;
            --admin-primary-dark: #0052a3;
            --admin-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
            --admin-shadow-md: 0 2px 8px rgba(0, 0, 0, 0.06);
        }

        h4 {
            font-size: 14px;
            line-height: 1.4;
        }

        .app-shell {
            display: flex;
            flex-direction: column;
            height: 100%;
        }

        .login-shell {
            display: none;
            min-height: 100vh;
            align-items: center;
            justify-content: center;
            padding: 24px;
            background: radial-gradient(circle at top left, #d7e8ff, #eef3f9 60%);
        }

        .login-card {
            width: 100%;
            max-width: 380px;
            background-color: #ffffff;
            border: 1px solid #d7deea;
            border-radius: 10px;
            box-shadow: 0 14px 36px rgba(30, 58, 95, 0.14);
            padding: 22px;
        }

        .login-card h1 {
            font-size: 20px;
            margin-bottom: 6px;
            color: #1e3a5f;
        }

        .login-card p {
            font-size: 13px;
            color: #5f6f84;
            margin-bottom: 14px;
        }

        .login-form {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .login-error {
            border: 1px solid #f5c2c2;
            border-radius: 4px;
            background-color: #fff1f1;
            color: #9b1b1b;
            font-size: 12px;
            padding: 8px 10px;
        }

        body.unauthenticated .login-shell {
            display: flex;
        }

        body.unauthenticated .app-shell {
            display: none;
        }

        body.authenticated .login-shell {
            display: none;
        }

        body.authenticated .app-shell {
            display: flex;
        }

        .event-selector {
            background-color: rgba(255,255,255,0.1);
            padding: 6px 12px;
            border-radius: 4px;
            font-size: 13px;
            cursor: pointer;
        }

        .event-selector--out-of-range {
            background-color: #b91c1c;
            color: #fff;
            font-weight: 600;
        }

        .topbar-btn {
            border: none;
            background: rgba(255,255,255,0.1);
            color: #fff;
            border-radius: 4px;
            font-size: 13px;
            padding: 8px 12px;
            cursor: pointer;
            width: auto;
            max-width: none;
            margin: 0;
        }

        .topbar-btn:hover {
            background: rgba(255,255,255,0.18);
        }

        .sidebar-kasse-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            text-decoration: none;
        }

        .sidebar-kasse-btn-mobile {
            display: none;
        }

        .sidebar-kasse-btn-footer {
            display: inline-flex;
            width: 100%;
            margin-bottom: 8px;
            font-size: 12px;
            padding: 8px 10px;
            text-align: center;
        }

        .container {
            display: flex;
            height: 100vh;
        }

        .sidebar {
            width: 220px;
            background-color: #2c3e50;
            color: white;
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }

        .sidebar .event-selector {
            margin: 10px 10px 6px;
            white-space: pre-line;
            line-height: 1.25;
            min-height: 44px;
            display: flex;
            align-items: center;
        }

        .sidebar-nav {
            flex: 1;
            overflow-y: auto;
            overflow-x: hidden;
            min-height: 0;
        }

        .sidebar-footer {
            margin-top: auto;
            padding: 10px;
            border-top: 1px solid rgba(255,255,255,0.12);
            background: rgba(0,0,0,0.1);
        }

        .sidebar-logout-btn {
            width: 100%;
            max-width: none;
            text-align: center;
            font-size: 12px;
            padding: 8px 10px;
        }

        .login-blocked-back-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            text-decoration: none;
        }

        .sidebar-title {
            padding: 20px;
            border-bottom: 1px solid rgba(255,255,255,0.1);
            font-weight: bold;
            font-size: 13px;
            text-transform: uppercase;
            color: #bdc3c7;
        }

        .nav-item {
            padding: 12px 20px;
            cursor: pointer;
            border-left: 3px solid transparent;
            transition: all 0.2s;
            font-size: 13px;
        }

        .nav-item:hover {
            background-color: rgba(255,255,255,0.1);
        }

        .nav-item.active {
            background-color: #0066cc;
            border-left-color: #0066cc;
            font-weight: 600;
        }

        .main-content {
            flex: 1;
            display: flex;
            flex-direction: column;
            background-color: var(--admin-surface);
            margin: 12px;
            border: 1px solid var(--admin-border);
            border-radius: 6px;
            box-shadow: var(--admin-shadow-md);
            overflow: hidden;
            min-height: 0;
        }

        .content-header {
            background-color: #f9f9f9;
            border-bottom: 1px solid #e0e0e0;
            display: flex;
            flex-direction: column;
            gap: 0;
        }

        .content-header h2 {
            font-size: 18px;
            color: #1e3a5f;
            margin: 0;
            padding: 10px 16px 8px 16px;
        }

        .content-header-title-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
        }

        .content-header-title-row h2 {
            flex: 1;
            min-width: 0;
        }

        .content-header-actions {
            display: none;
            align-items: center;
            justify-content: flex-end;
            gap: 6px;
            padding-right: 12px;
        }

        .content-filter-toggle {
            display: none;
            align-self: center;
            margin: 0;
            width: auto;
            max-width: none;
            min-width: 30px;
            height: 30px;
            padding: 0;
            font-size: 12px;
            line-height: 1;
        }

        .content-filter-toggle-icon {
            width: 14px;
            height: 14px;
            display: block;
        }

        .content-add-toggle {
            display: none;
            width: auto;
            max-width: none;
            min-width: 30px;
            height: 30px;
            padding: 0;
            font-size: 18px;
            line-height: 1;
            align-items: center;
            justify-content: center;
        }

        .content-body {
            display: flex;
            flex: 1;
            overflow: hidden;
            gap: 0;
        }

        .entity-list-pane {
            flex: 1 1 100%;
            display: flex;
            flex-direction: column;
            border-right: 1px solid #e0e0e0;
            background-color: #fff;
            min-width: 0;
        }

        .entity-detail-pane,
        .entity-edit-pane {
            min-width: 0;
        }

        .entity-pane-scroll {
            flex: 1;
            overflow-y: auto;
        }

        .screen {
            display: none;
            flex: 1;
            flex-direction: column;
            overflow: hidden;
        }

        .screen.active {
            display: flex;
        }

        /* List/Table Screen */
        .list-container {
            display: flex;
            flex-direction: column;
            flex: 1;
        }

        .list-header {
            padding: 8px 16px 10px 16px;
            background-color: transparent;
            border-bottom: none;
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 8px;
        }

        .list-header.list-header-block {
            display: block;
        }

        .list-search-box {
            display: flex;
            gap: 8px;
            flex: 1;
            align-items: center;
        }

        .list-search-box input {
            flex: 1;
            max-width: 300px;
            min-height: 40px;
            padding: 9px 12px;
            border: 1px solid var(--admin-border);
            border-radius: 4px;
            font-size: 13px;
            background: var(--admin-surface);
            transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
        }

        .list-search-box input:focus {
            outline: none;
            border-color: #bdbdbd;
            box-shadow: 0 0 0 2px rgba(0,0,0,0.04);
        }

        .search-clear-btn {
            border: 1px solid var(--admin-border);
            background-color: var(--admin-surface);
            color: #5b6b7d;
            width: 32px;
            height: 32px;
            border-radius: 4px;
            font-size: 14px;
            cursor: pointer;
            line-height: 1;
            box-shadow: none;
            transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
        }

        .search-clear-btn:hover {
            background-color: #f3f6fa;
            border-color: var(--admin-border-strong);
            color: #334155;
        }

        .btn {
            padding: 8px 14px;
            border: 1px solid transparent;
            border-radius: 4px;
            font-size: 12px;
            font-weight: 600;
            cursor: pointer;
            transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
            box-shadow: none;
        }

        .btn-primary {
            background-color: #4b5563;
            border-color: #3f4752;
            color: white;
        }

        .btn-primary:hover {
            background-color: #3f4752;
        }

        .btn-secondary {
            background-color: #f2f2f2;
            color: #333;
            border: 1px solid var(--admin-border);
        }

        .btn-secondary:hover {
            background-color: #e8e8e8;
            border-color: var(--admin-border-strong);
        }

        .btn-success {
            background-color: #4d7c57;
            border-color: #41694a;
            color: white;
        }

        .btn-success:hover {
            background-color: #41694a;
        }

        .btn-danger {
            background-color: #9a5252;
            border-color: #854646;
            color: white;
        }

        .btn-danger:hover {
            background-color: #854646;
        }

        .btn:hover:not(:disabled) {
            transform: translateY(-1px);
        }

        .btn-small {
            padding: 3px 7px;
            font-size: 11px;
        }

        .btn:disabled {
            opacity: 0.55;
            cursor: not-allowed;
        }

        .settings-item {
            transition: background-color 0.2s, border-left-color 0.2s, box-shadow 0.2s;
            border-left: 3px solid transparent;
            padding: 12px 16px;
            border-bottom: 1px solid #f0f0f0;
            cursor: pointer;
            color: #333;
        }

        .settings-item-title {
            font-weight: 500;
        }

        .settings-item-subtitle {
            font-size: 12px;
            color: #666;
            line-height: 1.35;
        }


        .settings-item:hover {
            background-color: #f4f8fc;
        }

        .settings-item.active {
            background-color: #eef4fb;
            border-left-color: var(--admin-primary);
            box-shadow: inset 0 1px 0 rgba(255,255,255,0.9);
        }

        #settings-list-pane {
            flex: 1 1 100%;
            display: flex;
            flex-direction: column;
            overflow-y: auto;
            background: #f6f6f6 !important;
            border-right: 1px solid var(--admin-border) !important;
        }

        #settings-detail-pane .detail-section {
            margin-bottom: 14px;
            padding: 14px 16px;
            border: 1px solid var(--admin-border);
            border-radius: 6px;
            background: #fff;
            box-shadow: none;
        }

        #settings-detail-pane .detail-section .detail-section {
            margin: 16px 0 0;
            padding: 14px 0 0;
            border: none;
            border-top: 1px solid #e0e0e0;
            border-radius: 0;
            background: transparent;
            box-shadow: none;
        }

        #settings-detail-pane .detail-section > p {
            line-height: 1.5;
            color: var(--admin-text-muted);
        }

        .settings-group-row {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 8px 0;
            border-bottom: 1px solid #e8e8e8;
        }

        .settings-customer-groups-row {
            display: grid;
            grid-template-columns: minmax(44px, 0.45fr) minmax(180px, 1.6fr) minmax(160px, 1fr) minmax(90px, 0.8fr) auto;
            gap: 10px;
            align-items: center;
        }

        .settings-article-groups-head,
        .settings-article-groups-row {
            display: grid;
            grid-template-columns: minmax(44px, 0.45fr) minmax(180px, 1.5fr) minmax(110px, 0.9fr) minmax(100px, 0.9fr) minmax(92px, 0.8fr);
            gap: 8px;
            align-items: center;
        }

        .settings-article-groups-row .settings-group-id {
            min-width: 0;
            text-align: center;
            padding: 4px 6px;
        }

        .settings-article-groups-row input[type="text"],
        .settings-article-groups-row input[type="number"] {
            width: 100%;
            min-width: 0;
        }

        .settings-article-groups-row .settings-group-usage {
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        @media (max-width: 1180px) {
            .settings-article-groups-head,
            .settings-article-groups-row {
                grid-template-columns: minmax(40px, 0.4fr) minmax(150px, 1.3fr) minmax(92px, 0.8fr) minmax(84px, 0.75fr) minmax(84px, 0.75fr);
                gap: 6px;
            }
        }

        @media (max-width: 900px) {
            .settings-article-groups-head,
            .settings-article-groups-row {
                grid-template-columns: minmax(130px, 1.3fr) minmax(86px, 0.75fr) minmax(80px, 0.7fr) minmax(80px, 0.7fr);
            }

            .settings-article-groups-head span:first-child,
            .settings-article-groups-row span.settings-group-id {
                display: none;
            }
        }

        @media (max-width: 680px) {
            .settings-article-groups-head,
            .settings-article-groups-row {
                grid-template-columns: minmax(120px, 1.2fr) minmax(78px, 0.7fr) minmax(72px, 0.65fr) minmax(74px, 0.65fr);
                gap: 5px;
            }

            .settings-article-groups-row .btn.btn-small {
                padding: 3px 6px;
                font-size: 10px;
            }
        }

        .settings-group-list {
            display: flex;
            flex-direction: column;
            gap: 0;
            margin-top: 2px;
        }

        .settings-group-row:last-child {
            border-bottom: none;
        }

        .settings-group-id {
            min-width: 48px;
            padding: 6px 8px;
            border-radius: 999px;
            background: #f2f2f2;
            border: 1px solid #dddddd;
            color: #444;
            font-size: 11px;
            font-weight: 700;
            text-align: center;
        }

        .settings-group-row > input {
            flex: 1;
            min-width: 0;
            padding: 7px 9px;
            border: 1px solid #d4dce7;
            border-radius: 4px;
            font-size: 12px;
        }

        .settings-group-row > input:focus {
            outline: none;
            border-color: #0066cc;
            box-shadow: 0 0 0 2px rgba(0,102,204,0.1);
        }

        .settings-portal-access-label {
            min-width: 0;
        }

        .settings-portal-access-label .switch-row__text {
            font-size: 12px;
            color: #475569;
        }

        .settings-group-usage {
            min-width: 78px;
            font-size: 11px;
            color: #64748b;
            text-align: right;
            white-space: nowrap;
        }

        .settings-group-usage.in-use {
            color: #8a3b00;
            font-weight: 600;
        }

        @media (max-width: 900px) {
            .settings-customer-groups-row {
                grid-template-columns: minmax(44px, 0.45fr) minmax(140px, 1.2fr) minmax(140px, 1fr) minmax(84px, 0.8fr) auto;
                gap: 8px;
            }
        }

        @media (max-width: 720px) {
            .settings-customer-groups-row {
                grid-template-columns: minmax(120px, 1.2fr) minmax(132px, 1fr) minmax(78px, 0.8fr) auto;
            }

            .settings-customer-groups-row .settings-group-id {
                display: none;
            }
        }

        .settings-group-empty {
            color: #6f7f90;
            font-size: 12px;
            padding: 8px 0 2px;
        }

        .import-export-tabs {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
        }

        .import-export-tab.active {
            background-color: #0066cc;
            color: #fff;
        }

        .import-export-mode-row {
            display: flex;
            gap: 14px;
            align-items: center;
            font-size: 13px;
            margin-bottom: 8px;
        }

        .import-export-format-row {
            font-size: 12px;
            color: #555;
        }

        .import-export-filter-preview {
            margin: 0;
            background: #f8fafc;
            border: 1px solid #e5e7eb;
            border-radius: 4px;
            padding: 10px;
            font-size: 12px;
            line-height: 1.4;
            overflow-x: auto;
        }

        .import-export-actions-row {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
        }

        .import-export-status-ok {
            color: #166534;
            font-weight: 600;
        }

        .import-export-status-warn {
            color: #92400e;
            font-weight: 600;
        }

        .import-export-status-error {
            color: #b91c1c;
            font-weight: 600;
        }

        .import-knackpunkte {
            display: flex;
            flex-wrap: wrap;
            gap: 4px;
            margin-top: 4px;
        }

        .import-knackpunkt-badge {
            display: inline-block;
            border: 1px solid #d6d3d1;
            background: #fef7ed;
            color: #7c2d12;
            border-radius: 999px;
            padding: 1px 7px;
            font-size: 10px;
            line-height: 1.4;
            font-weight: 600;
        }

        .import-record-cell {
            display: flex;
            flex-direction: column;
            gap: 4px;
            line-height: 1.25;
        }

        .import-record-line {
            font-size: 12px;
        }

        .import-record-label {
            color: #1f2937;
            font-weight: 600;
        }

        .import-record-value {
            color: #111827;
            font-weight: 500;
        }

        .import-record-secondary {
            color: #6b7280;
            font-size: 11px;
            line-height: 1.35;
        }

        .import-record-secondary-label {
            color: #6b7280;
            font-weight: 500;
        }

        .import-record-value-highlight-equal {
            color: #b91c1c;
            font-weight: 700;
        }

        .import-record-value-highlight-different {
            color: #15803d;
            font-weight: 700;
        }

        .settings-section-title {
            margin-top: 0;
            font-size: 14px;
        }

        .settings-section-subtitle {
            font-size: 13px;
            color: #666;
            margin-bottom: 12px;
        }

        .settings-subheading {
            font-size: 14px;
            margin: 0 0 10px;
        }

        .u-mb-8 {
            margin-bottom: 8px;
        }

        .settings-section-divider {
            margin-bottom: 18px;
            padding-bottom: 18px;
            border-bottom: 1px solid #eef2f7;
        }

        .settings-column-list {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .settings-pdf-head {
            font-size: 12px;
            font-weight: 600;
            color: #555;
        }

        .u-mb-6 {
            margin-bottom: 6px;
        }

        .u-mb-10 {
            margin-bottom: 10px;
        }

        .u-mb-14 {
            margin-bottom: 14px;
        }

        .u-mb-16 {
            margin-bottom: 16px;
        }

        .u-mb-18 {
            margin-bottom: 18px;
        }

        .u-mb-20 {
            margin-bottom: 20px;
        }

        .u-mb-0 {
            margin-bottom: 0;
        }

        .u-max-w-620 {
            max-width: 620px;
        }

        .u-max-w-560 {
            max-width: 560px;
        }

        .u-max-w-320 {
            max-width: 320px;
        }

        .u-max-w-220 {
            max-width: 220px;
        }

        .u-mt-12 {
            margin-top: 12px;
        }

        .u-mt-18 {
            margin-top: 18px;
        }

        .u-mt-16 {
            margin-top: 16px;
        }

        .u-mt-8 {
            margin-top: 8px;
        }

        .u-mt-4 {
            margin-top: 4px;
        }

        .u-mt-0 {
            margin-top: 0;
        }

        .u-gap-14 {
            gap: 14px;
        }

        .u-gap-8 {
            gap: 8px;
        }

        .u-flex {
            display: flex;
        }

        .u-justify-center {
            justify-content: center;
        }

        .u-items-center {
            align-items: center;
        }

        .u-flex-1 {
            flex: 1;
        }

        .u-min-w-240 {
            min-width: 240px;
        }

        .u-p-16 {
            padding: 16px;
        }

        .u-overflow-hidden {
            overflow: hidden;
        }

        .u-scroll-y {
            overflow-y: auto;
        }

        .u-max-h-240 {
            max-height: 240px;
        }

        .u-max-h-360 {
            max-height: 360px;
        }

        .u-max-h-420 {
            max-height: 420px;
        }

        .u-grid-cols-2-gap-10 {
            grid-template-columns: 1fr 1fr;
            gap: 10px;
        }

        .u-grid-cols-3 {
            grid-template-columns: 1fr 1fr 1fr;
        }

        .text-center {
            text-align: center;
        }

        .u-m0 {
            margin: 0;
        }

        .settings-detail-grid-end {
            align-items: end;
        }

        .terms-pdf-upload-controls {
            display: flex;
            gap: 8px;
            align-items: center;
        }

        .terms-pdf-upload-controls #settings-terms-pdf-file {
            flex: 1;
            min-width: 0;
            width: auto;
        }

        .terms-pdf-upload-controls__actions {
            display: flex;
            gap: 8px;
            flex-wrap: nowrap;
        }

        .terms-pdf-upload-controls__actions .btn {
            white-space: nowrap;
        }

        .settings-terms-pdf-meta {
            font-size: 12px;
            color: #777;
            line-height: 1.4;
        }

        .settings-terms-pdf-meta a {
            color: inherit;
            text-decoration: underline;
            text-underline-offset: 2px;
        }

        @media (max-width: 780px) {
            .terms-pdf-upload-controls {
                flex-direction: column;
                align-items: stretch;
            }

            .terms-pdf-upload-controls #settings-terms-pdf-file {
                width: 100%;
            }

            .terms-pdf-upload-controls__actions {
                width: 100%;
            }

            .terms-pdf-upload-controls__actions .btn {
                flex: 1;
            }
        }

        .detail-actions-row {
            display: flex;
            gap: 8px;
            align-items: center;
            justify-content: space-between;
            flex-wrap: nowrap;
        }

        .detail-actions-row .btn {
            flex: 1;
            min-width: 0;
        }

        .entity-pane-actions .btn-primary {
            background-color: #596270;
            border-color: #4a5260;
        }

        .entity-pane-actions .btn-success {
            background-color: #5a775f;
            border-color: #4c6551;
        }

        .entity-pane-actions .btn-danger {
            background-color: #8f5d5d;
            border-color: #7a4f4f;
        }

        .table-container {
            flex: 1;
            overflow-y: auto;
        }

        .table-container-boxed {
            border: 1px solid #e0e0e0;
            border-radius: 4px;
            background: #fff;
        }

        table {
            width: 100%;
            border-collapse: collapse;
            font-size: 13px;
        }

        thead {
            background-color: #f9f9f9;
            position: sticky;
            top: 0;
        }

        th {
            padding: 12px 16px;
            text-align: left;
            font-weight: 600;
            color: #666;
            border-bottom: 2px solid #e0e0e0;
            background-color: #f9f9f9;
        }

        td {
            padding: 12px 16px;
            border-bottom: 1px solid #f0f0f0;
        }

        tr:hover {
            background-color: #f9f9f9;
        }

        .status-badge {
            display: inline-block;
            padding: 4px 8px;
            border-radius: 3px;
            font-size: 11px;
            font-weight: 600;
        }

        .status-badge.active {
            background-color: #c8e6c9;
            color: #2e7d32;
        }

        .status-badge.inactive {
            background-color: #ffcccc;
            color: #c62828;
        }

        .transaction-inline-badge {
            margin-left: 6px;
            vertical-align: middle;
        }

        .status-positive {
            color: #4caf50;
        }

        .status-negative {
            color: #f44336;
        }

        .kpi-container {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 12px;
            margin-bottom: 20px;
        }

        .kpi-card {
            background-color: #fff;
            border: 1px solid #e0e0e0;
            border-radius: 4px;
            padding: 14px;
        }

        #stats-kpi-grid {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .stats-kpi-group {
            background: #f3f4f6;
            border: 1px solid #d9dde3;
            border-radius: 8px;
            padding: 8px 10px 10px;
        }

        .stats-kpi-group-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 8px;
        }

        .stats-kpi-card {
            text-align: left;
            cursor: pointer;
            transition: border-color 0.2s ease, box-shadow 0.2s ease;
        }

        .stats-kpi-card:hover {
            border-color: #9ec5f8;
            box-shadow: 0 2px 8px rgba(0, 102, 204, 0.12);
        }

        .stats-kpi-group-heading {
            font-size: 16px;
            font-weight: 700;
            color: #4b5563;
            text-transform: uppercase;
            letter-spacing: 0.02em;
            margin: 0 0 6px;
            padding-bottom: 5px;
            border-bottom: 1px solid #d7dce2;
        }

        .stats-kpi-group .kpi-card {
            border-radius: 6px;
            border: 1px solid #d4dae1;
            background: #ffffff;
            padding: 10px 12px;
        }

        #statistik-screen .stats-kpi-group-grid > .stats-kpi-right-col {
            grid-column: 2;
        }

        @media (max-width: 499px) {
            .stats-kpi-group-grid {
                grid-template-columns: 1fr;
            }

            #statistik-screen .stats-kpi-group-grid > .stats-kpi-right-col {
                grid-column: auto;
            }
        }

        .stats-filter-grid {
            display: grid;
            grid-template-columns: repeat(6, minmax(0, 1fr));
            gap: 10px;
            align-items: end;
        }

        .stats-filter-actions {
            display: flex;
            justify-content: flex-end;
            margin-top: 8px;
        }

        #statistik-screen #statistik-list-pane {
            background: #f3f3f3;
            border-right: 1px solid var(--admin-border);
        }

        #statistik-screen .stats-kpi-group {
            background: #fff;
            border: 1px solid var(--admin-border);
            border-radius: 6px;
            padding: 14px 16px;
        }

        #statistik-screen .stats-kpi-group-grid {
            gap: 10px;
        }

        #statistik-screen .stats-kpi-group-heading {
            font-size: 13px;
            font-weight: 600;
            color: #666;
            text-transform: uppercase;
            letter-spacing: 0;
            margin: 0 0 10px;
            padding-bottom: 6px;
            border-bottom: 1px solid #e0e0e0;
        }

        #statistik-screen .stats-kpi-group .kpi-card {
            border-radius: 6px;
            border: 1px solid var(--admin-border);
            background: #ffffff;
            padding: 14px;
        }

        #statistik-screen .stats-kpi-subsection {
            margin-top: 12px;
        }

        #statistik-screen .stats-kpi-divider {
            grid-column: 1 / -1;
            border-top: 2px solid var(--admin-border-strong);
            margin: 2px 0 0;
            height: 0;
        }

        #statistik-screen .stats-kpi-divider-right {
            grid-column: 2;
            border-top: 2px solid var(--admin-border-strong);
            margin: 2px 0 0;
            height: 0;
        }

        #statistik-screen .stats-kpi-subsection-heading {
            margin: 0 0 8px;
            font-size: 12px;
            font-weight: 700;
            color: #6b7280;
            text-transform: uppercase;
            letter-spacing: 0.02em;
        }

        #statistik-screen .stats-kpi-card:hover {
            border-color: var(--admin-border-strong);
            box-shadow: none;
            background: #fafafa;
        }

        #statistik-screen #statistik-detail-pane {
            background: #f3f3f3 !important;
        }

        .stats-heatmap-hours {
            display: grid;
            grid-template-columns: 88px repeat(24, minmax(28px, 1fr));
            gap: 3px;
            margin-bottom: 4px;
            font-size: 10px;
            color: #667085;
            text-align: center;
        }

        .stats-heatmap-grid {
            display: flex;
            flex-direction: column;
            gap: 3px;
        }

        .stats-heatmap-row {
            display: grid;
            grid-template-columns: 88px repeat(24, minmax(28px, 1fr));
            gap: 3px;
            align-items: center;
        }

        .stats-heatmap-weekday {
            font-size: 11px;
            color: #475467;
            text-align: right;
            padding-right: 6px;
            white-space: nowrap;
        }

        .stats-heatmap-cell {
            min-height: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 4px;
            font-size: 10px;
            font-weight: 600;
            border: 1px solid rgba(0, 0, 0, 0.05);
        }

        .kpi-label {
            font-size: 11px;
            color: #777;
            text-transform: uppercase;
            margin-bottom: 6px;
            font-weight: 600;
        }

        .kpi-value {
            font-size: 20px;
            font-weight: 700;
            color: #1e3a5f;
        }

        .kpi-value-md {
            font-size: 16px;
        }

        .settings-pdf-grid {
            display: grid;
            grid-template-columns: minmax(220px, 1.6fr) minmax(120px, 0.7fr) minmax(120px, 0.7fr) minmax(150px, 0.9fr);
            column-gap: 12px;
            row-gap: 6px;
            align-items: center;
        }

        .settings-display-layout {
            display: flex;
            gap: 16px;
            align-items: flex-start;
            flex-wrap: wrap;
            margin-bottom: 14px;
        }

        .settings-session-card {
            background: #fff;
            border: 1px solid #e0e0e0;
            border-radius: 6px;
            padding: 10px;
            min-width: 220px;
            text-align: center;
        }

        .settings-session-qr-image {
            max-width: 220px;
            width: 100%;
            border-radius: 4px;
            border: 1px solid #e0e0e0;
            background: #fff;
        }

        .settings-session-qr-text {
            font-family: monospace;
            font-size: 13px;
            padding: 8px;
            background: #f5f5f5;
            border-radius: 4px;
            margin-top: 10px;
        }

        .settings-session-link {
            margin-top: 8px;
            font-size: 13px;
            text-align: center;
        }

        .settings-display-join-title {
            font-weight: 600;
            margin-bottom: 6px;
        }

        .settings-display-join-grid {
            display: grid;
            grid-template-columns: minmax(120px, 180px) auto;
            gap: 8px;
            margin-bottom: 6px;
            align-items: center;
            justify-content: flex-start;
        }

        .settings-session-join-input {
            margin: 0;
            text-transform: uppercase;
            font-family: monospace;
            letter-spacing: 0.08em;
        }

        .settings-sound-mappings {
            max-width: 520px;
        }

        .email-template-body {
            font-family: monospace;
            font-size: 13px;
            resize: vertical;
        }


        #email-template-modal .modal-content {
            max-width: 680px;
            width: 95%;
        }

        #email-template-modal .modal-footer {
            justify-content: space-between;
        }

        .kpi-value.negative {
            color: #d32f2f;
        }

        .transaction-history {
            border: 1px solid #e0e0e0;
            border-radius: 4px;
            background-color: #fff;
        }

        .transaction-item {
            display: grid;
            grid-template-columns: 124px 160px minmax(0, 0.85fr) 90px 128px;
            gap: 8px;
            padding: 10px 12px;
            border-bottom: 1px solid #f0f0f0;
            font-size: 12px;
            align-items: center;
        }

        .transaction-head {
            background-color: #f9f9f9;
            font-size: 11px;
            font-weight: 700;
            color: #666;
            text-transform: uppercase;
            position: sticky;
            top: 0;
            z-index: 1;
        }

        .transaction-item:last-child {
            border-bottom: none;
        }

        .transaction-head span:last-child {
            text-align: right;
            padding-right: 2px;
        }

        .transaction-date {
            color: #777;
        }

        .transaction-desc {
            color: #333;
            font-weight: 500;
        }

        .transaction-meta {
            color: #666;
            font-size: 11px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .transaction-amount {
            text-align: right;
            font-weight: 600;
            color: #1e3a5f;
        }

        .transaction-amount.debit {
            color: #d32f2f;
        }

        .transaction-amount.credit {
            color: #2e7d32;
        }

        .accounts-controls {
            display: flex;
            gap: 8px;
            align-items: center;
            margin-left: 8px;
        }

        .accounts-controls select {
            border: 1px solid #ddd;
            border-radius: 4px;
            padding: 8px 10px;
            font-size: 12px;
            background-color: #fff;
        }

        .accounts-controls .btn {
            white-space: nowrap;
            padding: 8px 10px;
            font-size: 12px;
        }

        .account-item-meta {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: 6px;
            gap: 8px;
            font-size: 11px;
        }

        .meta-left {
            color: #555;
        }

        .meta-badges {
            display: flex;
            gap: 6px;
        }

        .mini-badge {
            padding: 2px 6px;
            border-radius: 3px;
            font-size: 10px;
            font-weight: 600;
        }

        .mini-badge.active {
            background-color: #c8e6c9;
            color: #2e7d32;
        }

        .mini-badge.inactive {
            background-color: #ffdddd;
            color: #b71c1c;
        }

        #konten-list-pane,
        #artikel-list-pane,
        #veranstaltungen-list-pane,
        #benutzer-list-pane,
        #freigebarcodes-list-pane,
        #transaktionen-list-pane {
            background: #f6f6f6 !important;
        }

        #konten-items,
        #artikel-items,
        #event-items,
        #user-items,
        #freigabe-barcode-items,
        #transactions-items {
            padding: 10px;
            background: transparent;
        }

        .entity-list-head,
        .entity-list-row {
            display: grid;
            grid-template-columns: 1.4fr 0.85fr 0.95fr 0.85fr 0.55fr;
            gap: 8px;
            align-items: center;
            padding: 10px 14px;
        }

        .article-list-head,
        .article-list-row {
            grid-template-columns: 1.4fr 1fr 0.7fr 0.7fr;
        }

        .article-list-head > span:nth-child(3),
        .article-list-row > span:nth-child(3) {
            justify-self: start;
            text-align: left;
            white-space: nowrap;
        }

        .events-list-head,
        .events-list-row {
            grid-template-columns: 1.3fr 1fr 0.7fr;
        }

        .users-list-head,
        .users-list-row {
            grid-template-columns: 1fr 1fr 0.8fr 0.7fr;
        }

        .freigabe-list-head,
        .freigabe-list-row {
            grid-template-columns: 1fr 1.2fr 0.8fr;
        }

        .entity-list-head {
            font-size: 11px;
            color: #666;
            font-weight: 700;
            text-transform: uppercase;
            border-bottom: 1px solid var(--admin-border);
            background: #f9f9f9;
        }

        .entity-list-head > span {
            min-width: 0;
        }

        .entity-list-row {
            border-bottom: 1px solid #e8eef5;
            background: transparent;
            cursor: pointer;
            font-size: 12px;
            transition: background-color 0.18s ease, border-color 0.18s ease;
        }

        .entity-list-row:hover {
            background-color: #f5f9ff;
        }

        .entity-list-row.active {
            background-color: #eef5ff;
            border-bottom-color: #d9e7f8;
        }

        .entity-list-row:last-child {
            border-bottom: none;
        }

        .entity-list-row > span {
            min-width: 0;
        }

        .account-list-with-select {
            grid-template-columns: 40px minmax(170px, 1.4fr) minmax(95px, 0.85fr) minmax(110px, 0.95fr) minmax(95px, 0.85fr) minmax(70px, 0.55fr);
        }

        .account-list-with-select > span:nth-child(5),
        .account-list-with-select > span:nth-child(6) {
            justify-self: start;
            text-align: left;
            font-variant-numeric: tabular-nums;
            white-space: nowrap;
        }

        .entity-list-head.account-list-with-select > span {
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .account-list-with-select > span:first-child {
            display: flex;
            align-items: center;
            justify-content: center;
        }

        #konten-list-pane.pane-condensed .account-list-with-select {
            grid-template-columns: 40px minmax(170px, 1.65fr) minmax(95px, 1fr);
        }

        #konten-list-pane.pane-condensed .account-list-with-select > span:nth-child(4),
        #konten-list-pane.pane-condensed .account-list-with-select > span:nth-child(5),
        #konten-list-pane.pane-condensed .account-list-with-select > span:nth-child(6) {
            display: none;
        }

        .account-select-cell {
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .account-select-cell input,
        .account-list-with-select input[type="checkbox"] {
            width: 16px;
            height: 16px;
            cursor: pointer;
            margin: 0;
        }

        .entity-primary {
            font-weight: 600;
            color: #333;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            line-height: 1.35;
        }

        .entity-secondary {
            color: #555;
            font-family: Consolas, monospace;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .entity-value.negative {
            color: #d32f2f;
            font-weight: 700;
        }

        .entity-value.positive {
            color: #2e7d32;
            font-weight: 700;
        }

        .entity-value.neutral {
            color: #374151;
            font-weight: 700;
        }

        .article-item .entity-value,
        .account-item .entity-value {
            justify-self: start;
        }

        .entity-list-row .mini-badge {
            justify-self: start;
        }

        .transactions-list-head,
        .transactions-list-row {
            grid-template-columns: 1.05fr 1.2fr 1fr 0.9fr 1fr 0.8fr 0.8fr 0.75fr;
        }

        .transactions-list-head > span:nth-child(7),
        .transactions-list-head > span:nth-child(8),
        .transactions-list-row > span:nth-child(7),
        .transactions-list-row > span:nth-child(8) {
            justify-self: start;
            text-align: left;
        }

        .transactions-list-row .transaction-inline-badge {
            margin-left: 4px;
        }

        #transaktionen-list-pane.pane-condensed .transactions-list-head,
        #transaktionen-list-pane.pane-condensed .transactions-list-row {
            grid-template-columns: 1.15fr 1.25fr 1.2fr 0.95fr 0.85fr;
        }

        #transaktionen-list-pane.pane-condensed .transactions-list-head > span:nth-child(3),
        #transaktionen-list-pane.pane-condensed .transactions-list-head > span:nth-child(4),
        #transaktionen-list-pane.pane-condensed .transactions-list-head > span:nth-child(6),
        #transaktionen-list-pane.pane-condensed .transactions-list-row > span:nth-child(3),
        #transaktionen-list-pane.pane-condensed .transactions-list-row > span:nth-child(4),
        #transaktionen-list-pane.pane-condensed .transactions-list-row > span:nth-child(6) {
            display: none;
        }

        .sortable-list-head .sort-arrows,
        .sort-arrows {
            margin-left: 4px;
            color: #8a8a8a;
            letter-spacing: 1px;
            font-size: 10px;
            cursor: pointer;
            user-select: none;
        }

        /* Form Screen */
        .form-container {
            padding: 16px;
            overflow-y: auto;
            max-width: 600px;
        }

        .form-container-full {
            max-width: 100%;
        }

        .entity-edit-pane,
        .entity-detail-pane {
            background: #f3f3f3 !important;
        }

        .entity-pane-header {
            display: flex;
            justify-content: flex-start;
            align-items: center;
            padding: 10px 14px;
            border-bottom: 1px solid var(--admin-border);
            background-color: #f9f9f9;
            flex-shrink: 0;
        }

        .entity-pane-header strong {
            color: #333;
            font-size: 14px;
        }

        .entity-pane-body {
            flex: 1;
            overflow-y: auto;
            padding: 14px;
            min-height: 0;
        }

        .entity-pane-body.entity-pane-body-compact {
            padding: 16px;
        }

        .entity-pane-actions {
            padding: 12px 16px;
            border-top: 1px solid var(--admin-border);
            background-color: #f9f9f9;
            display: flex;
            gap: 6px;
            flex-shrink: 0;
        }

        .entity-pane-actions .btn {
            border-radius: 4px;
            box-shadow: none;
        }

        .text-muted-sm {
            font-size: 12px;
            color: #666;
        }

        .text-right {
            text-align: right;
        }

        .empty-state-note {
            padding: 12px;
            color: #666;
        }

        .entity-pane-actions.entity-pane-actions-comfy {
            padding: 16px;
        }

        #konten-detail-pane .detail-actions-row.entity-pane-actions.entity-pane-actions-comfy {
            display: grid;
            grid-template-columns: minmax(200px, 33%) 1fr 1fr;
            grid-template-rows: repeat(2, minmax(26px, auto));
            gap: 6px;
            align-items: stretch;
        }

        #konten-detail-pane .detail-actions-row.entity-pane-actions.entity-pane-actions-comfy > .btn {
            width: 100%;
            margin: 0;
            max-width: none;
            min-width: 0;
            white-space: normal;
            line-height: 1.2;
            padding: 3px 8px;
            min-height: 28px;
            height: auto;
            font-size: 10px;
        }

        #konten-detail-pane .detail-actions-row.entity-pane-actions.entity-pane-actions-comfy > .btn:nth-child(2) {
            grid-column: 1;
            grid-row: 1 / span 2;
            font-size: 12px;
            font-weight: 700;
            height: auto;
            min-height: 0;
            align-self: stretch;
        }

        #konten-detail-pane .detail-actions-row.entity-pane-actions.entity-pane-actions-comfy > .btn:nth-child(1) {
            grid-column: 2;
            grid-row: 1;
        }

        #konten-detail-pane .detail-actions-row.entity-pane-actions.entity-pane-actions-comfy > .btn:nth-child(4) {
            grid-column: 3;
            grid-row: 1;
        }

        #konten-detail-pane .detail-actions-row.entity-pane-actions.entity-pane-actions-comfy > .btn:nth-child(3) {
            grid-column: 2;
            grid-row: 2;
        }

        #konten-detail-pane .detail-actions-row.entity-pane-actions.entity-pane-actions-comfy > .btn:nth-child(5) {
            grid-column: 3;
            grid-row: 2;
        }

        @media (max-width: 900px) {
            #konten-detail-pane .detail-actions-row.entity-pane-actions.entity-pane-actions-comfy {
                grid-template-columns: 1fr 1fr;
                grid-template-rows: auto;
            }

            #konten-detail-pane .detail-actions-row.entity-pane-actions.entity-pane-actions-comfy > .btn {
                min-height: 34px;

            #statistik-screen .stats-kpi-desktop-only,
            #statistik-screen .stats-kpi-divider,
            #statistik-screen .stats-kpi-divider-right {
                display: none;
            }
                padding: 6px 10px;
                font-size: 12px;
            }

            #konten-detail-pane .detail-actions-row.entity-pane-actions.entity-pane-actions-comfy > .btn:nth-child(2) {
                grid-column: 1 / span 2;
                grid-row: auto;
            }

            #konten-detail-pane .detail-actions-row.entity-pane-actions.entity-pane-actions-comfy > .btn:nth-child(1),
            #konten-detail-pane .detail-actions-row.entity-pane-actions.entity-pane-actions-comfy > .btn:nth-child(3),
            #konten-detail-pane .detail-actions-row.entity-pane-actions.entity-pane-actions-comfy > .btn:nth-child(4),
            #konten-detail-pane .detail-actions-row.entity-pane-actions.entity-pane-actions-comfy > .btn:nth-child(5) {
                grid-column: auto;
                grid-row: auto;
            }
        }

        @media (max-width: 640px) {
            #konten-detail-pane .detail-actions-row.entity-pane-actions.entity-pane-actions-comfy {
                grid-template-columns: 1fr;
            }

            #konten-detail-pane .detail-actions-row.entity-pane-actions.entity-pane-actions-comfy > .btn:nth-child(2),
            #konten-detail-pane .detail-actions-row.entity-pane-actions.entity-pane-actions-comfy > .btn:nth-child(1),
            #konten-detail-pane .detail-actions-row.entity-pane-actions.entity-pane-actions-comfy > .btn:nth-child(3),
            #konten-detail-pane .detail-actions-row.entity-pane-actions.entity-pane-actions-comfy > .btn:nth-child(4),
            #konten-detail-pane .detail-actions-row.entity-pane-actions.entity-pane-actions-comfy > .btn:nth-child(5) {
                grid-column: auto;
                grid-row: auto;
            }
        }

        .entity-pane-actions.entity-pane-actions-grid-3 {
            display: grid;
            grid-template-columns: 1fr 1fr 1fr;
        }

        .entity-pane-actions.entity-pane-actions-grid-4 {
            display: grid;
            grid-template-columns: 1fr 1fr 1fr 1fr;
        }

        .entity-edit-pane .entity-pane-body {
            display: flex;
            flex-direction: column;
        }

        .entity-detail-pane .entity-pane-body {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .entity-edit-pane .form-container {
            max-width: 760px;
            width: 100%;
            margin: 0 auto;
            padding: 14px 16px;
            border: 1px solid var(--admin-border);
            border-radius: 6px;
            background: #fff;
            box-shadow: none;
            display: flex;
            flex-direction: column;
            flex: 1;
            min-height: 0;
            overflow-x: hidden;
            overflow-y: auto;
        }

        .entity-detail-pane .detail-section {
            width: 100%;
            max-width: none;
            margin: 0;
            padding: 14px 16px;
            border: 1px solid var(--admin-border);
            border-radius: 6px;
            background: #fff;
            box-shadow: none;
        }

        .entity-detail-pane .transaction-history {
            border-radius: 4px;
        }

        .entity-edit-pane .form-group {
            margin-bottom: 12px;
        }

        .entity-edit-pane .form-group label {
            color: #666;
            margin-bottom: 6px;
        }

        .entity-edit-pane .detail-grid,
        .entity-detail-pane .detail-grid {
            gap: 10px 12px;
        }

        .entity-edit-pane .input-readonly-hint,
        #artikel-edit-pane #artikel-edit-status-hint {
            display: block;
            margin-top: 4px;
            padding: 6px 8px;
            border-radius: 4px;
            background: #f5f5f5;
            border: 1px solid #e0e0e0;
        }

        #artikel-edit-pane .image-select-toggle {
            min-height: 40px;
            border-radius: 4px;
            border: 1px solid var(--admin-border);
            background: var(--admin-surface);
        }

        #artikel-edit-pane .edit-image-preview-wrap {
            min-height: 150px;
            padding: 14px;
            border: 1px dashed #d5d5d5;
            border-radius: 4px;
            background: #fafafa;
        }

        .entity-edit-pane .entity-pane-actions {
            position: static;
        }

        .entity-edit-pane .entity-pane-actions .btn {
            flex: 1;
            min-width: 0;
        }

        .form-group {
            margin-bottom: 16px;
        }

        .form-group label {
            display: block;
            font-weight: 600;
            font-size: 12px;
            color: #666;
            margin-bottom: 6px;
            text-transform: uppercase;
        }

        .form-group input,
        .form-group select,
        .form-group textarea {
            width: 100%;
            min-height: 40px;
            padding: 9px 12px;
            border: 1px solid var(--admin-border);
            border-radius: 4px;
            font-size: 13px;
            font-family: inherit;
            background: var(--admin-surface);
            color: var(--admin-text);
            transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
        }

        .form-group input:focus,
        .form-group select:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: #bdbdbd;
            box-shadow: 0 0 0 2px rgba(0,0,0,0.04);
        }

        .form-group textarea {
            resize: vertical;
            min-height: 100px;
        }

        .form-group select {
            appearance: none;
            background-image: linear-gradient(45deg, transparent 50%, #64748b 50%), linear-gradient(135deg, #64748b 50%, transparent 50%);
            background-position: calc(100% - 18px) calc(50% - 3px), calc(100% - 12px) calc(50% - 3px);
            background-size: 6px 6px, 6px 6px;
            background-repeat: no-repeat;
            padding-right: 34px;
        }

        .form-group input.input-readonly-display {
            background-color: #f5f5f5;
            color: #666;
            cursor: default;
            border-color: #e0e0e0;
        }

        .form-group input.input-readonly-display:focus {
            outline: none;
            border-color: #e0e0e0;
            box-shadow: none;
        }

        .input-readonly-hint {
            display: block;
            margin-top: 4px;
            font-size: 11px;
            color: #999;
        }

        .inline-link-button {
            margin-top: 6px;
            padding: 0;
            border: none;
            background: none;
            color: #0066cc;
            font-size: 12px;
            font-weight: 600;
            text-decoration: underline;
            cursor: pointer;
        }

        .inline-link-button:hover,
        .inline-link-button:focus {
            color: #004a99;
        }

        .stripe-audit-modal-content {
            max-width: 1920px;
            width: 99.5%;
            max-height: 96vh;
        }

        .stripe-audit-modal-content .u-max-h-420 {
            max-height: 82vh;
        }

        .stripe-audit-header-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
        }

        .stripe-audit-header-actions {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .stripe-audit-modal-toolbar {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 10px;
        }

        .stripe-audit-modal-toolbar label {
            font-size: 12px;
            font-weight: 600;
            color: #666;
            text-transform: uppercase;
        }

        .stripe-audit-modal-toolbar select {
            width: 90px;
            min-height: 32px;
            padding: 6px 8px;
            border: 1px solid var(--admin-border);
            border-radius: 4px;
            font-size: 12px;
            background: #fff;
        }

        #stripe-audit-table-body td {
            font-size: 12px;
            vertical-align: top;
        }

        .stripe-audit-intent {
            font-family: Consolas, monospace;
            font-size: 11px;
            word-break: break-all;
        }

        .stripe-audit-mono {
            font-family: Consolas, monospace;
            font-size: 11px;
            word-break: break-all;
        }

        .switch-list {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .switch-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 14px;
            min-height: 32px;
        }

        .switch-row__text {
            flex: 1;
            min-width: 0;
            font-size: 13px;
            line-height: 1.4;
            color: #334155;
        }

        .switch-control {
            position: relative;
            display: inline-flex;
            width: 42px;
            height: 24px;
            flex: 0 0 auto;
            cursor: pointer;
        }

        .switch-control--compact {
            width: 38px;
            height: 22px;
        }

        .switch-control input {
            position: absolute;
            width: 1px;
            height: 1px;
            margin: -1px;
            padding: 0;
            border: 0;
            overflow: hidden;
            clip: rect(0 0 0 0);
            clip-path: inset(50%);
            white-space: nowrap;
        }

        .switch-control__slider {
            position: relative;
            width: 100%;
            height: 100%;
            border-radius: 999px;
            background: #cbd5e1;
            border: 1px solid #b8c4d5;
            transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
        }

        .switch-control__slider::after {
            content: '';
            position: absolute;
            top: 2px;
            left: 2px;
            width: 18px;
            height: 18px;
            border-radius: 50%;
            background: #ffffff;
            box-shadow: 0 1px 3px rgba(15, 23, 42, 0.24);
            transition: transform 0.18s ease;
        }

        .switch-control--compact .switch-control__slider::after {
            width: 16px;
            height: 16px;
        }

        .switch-control input:checked + .switch-control__slider {
            background: #0066cc;
            border-color: #0055aa;
        }

        .switch-control input:checked + .switch-control__slider::after {
            transform: translateX(18px);
        }

        .switch-control--compact input:checked + .switch-control__slider::after {
            transform: translateX(16px);
        }

        .switch-control input:focus-visible + .switch-control__slider {
            box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.18);
        }

        .switch-control input:disabled + .switch-control__slider {
            opacity: 0.55;
            cursor: not-allowed;
        }

        .form-actions {
            display: flex;
            gap: 8px;
            margin-top: 16px;
        }

        .form-actions .btn {
            flex: 1;
        }

        .image-select-dropdown {
            position: relative;
        }

        .image-select-toggle {
            width: 100%;
            text-align: left;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .image-select-menu {
            position: absolute;
            top: calc(100% + 6px);
            left: 0;
            right: 0;
            max-height: 280px;
            overflow-y: auto;
            border: 1px solid #d8e0eb;
            border-radius: 6px;
            background: #fff;
            box-shadow: 0 8px 20px rgba(31, 41, 55, 0.12);
            padding: 8px;
            display: grid;
            gap: 6px;
            z-index: 20;
        }

        .image-select-option {
            width: 100%;
            display: grid;
            grid-template-columns: 42px 1fr;
            gap: 8px;
            align-items: center;
            text-align: left;
            border: 1px solid #e5e7eb;
            border-radius: 5px;
            background: #fff;
            padding: 6px;
            cursor: pointer;
        }

        .image-select-option:hover {
            border-color: #9ec5f8;
            background: #f7fbff;
        }

        .image-select-option.active {
            border-color: #0066cc;
            background: #edf4ff;
        }

        .image-select-option img {
            width: 42px;
            height: 42px;
            object-fit: cover;
            border-radius: 4px;
            border: 1px solid #dce3ed;
            background: #f5f7fa;
        }

        .image-select-option span {
            font-size: 12px;
            color: #374151;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .image-select-empty {
            padding: 8px;
            font-size: 12px;
            color: #6b7280;
        }

        .settings-article-images-list {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
            gap: 6px;
        }

        .settings-article-image-item {
            border: 1px solid #e0e6ef;
            border-radius: 6px;
            background: #fff;
            overflow: hidden;
        }

        .settings-article-image-item img {
            width: 100%;
            height: 56px;
            object-fit: cover;
            border-bottom: 1px solid #e0e6ef;
            background: #f2f4f7;
        }

        .settings-article-image-meta {
            padding: 5px;
            display: grid;
            gap: 4px;
        }

        .settings-article-image-name {
            font-size: 11px;
            color: #334155;
            word-break: break-all;
        }

        .settings-article-image-usage {
            font-size: 11px;
            font-weight: 600;
        }

        .settings-article-image-usage.in-use {
            color: #8a3b00;
        }

        .settings-article-image-usage.not-in-use {
            color: #1b6f3a;
        }

        .detail-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 16px;
        }

        .detail-section {
            margin-bottom: 16px;
        }

        .detail-section h3 {
            font-size: 13px;
            font-weight: 600;
            color: #666;
            text-transform: uppercase;
            margin-bottom: 8px;
            padding-bottom: 6px;
            border-bottom: 1px solid #e0e0e0;
        }

        .section-title-sm {
            margin-top: 0;
            font-size: 14px;
        }

        .entity-detail-pane .detail-row {
            padding: 4px 0;
            font-size: 12px;
        }

        .detail-row-image-preview {
            display: none;
            flex-direction: column;
            align-items: flex-start;
            gap: 8px;
        }

        .image-thumb-180x120 {
            max-width: 180px;
            max-height: 120px;
            border-radius: 4px;
            border: 1px solid #ddd;
        }

        .detail-row {
            display: flex;
            justify-content: space-between;
            padding: 5px 0;
            font-size: 13px;
        }

        .detail-label {
            color: #999;
            font-weight: 500;
        }

        .detail-value {
            color: #333;
            font-weight: 600;
        }

        .konto-personal-details .konto-detail-primary-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px;
            margin-bottom: 6px;
        }

        .konto-personal-details .section-title-sm {
            margin-top: 0;
            margin-bottom: 10px;
            padding-bottom: 0;
            border-bottom: none;
        }

        .konto-personal-details .konto-detail-header-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            margin-bottom: 6px;
        }

        .konto-personal-details .konto-detail-header-row .section-title-sm {
            margin-bottom: 0;
        }

        .konto-personal-details .konto-detail-primary-card {
            border-radius: 4px;
            border: 1px solid #e0e0e0;
            background: #fff;
            padding: 8px 10px;
            min-width: 0;
            display: flex;
            align-items: baseline;
            justify-content: space-between;
            gap: 6px;
        }

        .konto-personal-details .konto-detail-primary-card .kpi-label {
            display: inline-block;
            font-size: 11px;
            margin-bottom: 0;
            color: #777;
        }

        .konto-personal-details .konto-detail-primary-card .kpi-value {
            display: inline-block;
            min-width: 0;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            text-align: right;
        }

        .konto-personal-details .field-name {
            grid-column: 1;
            grid-row: 1;
        }

        .konto-personal-details .field-account {
            grid-column: 2;
            grid-row: 1;
        }

        .konto-personal-details .field-birthdate {
            grid-column: 1;
            grid-row: 2;
        }

        .konto-personal-details .field-email {
            grid-column: 2;
            grid-row: 2;
        }

        .konto-personal-details:not(.konto-extra-expanded) .konto-detail-extra {
            display: none;
        }

        .konto-balance-section .kpi-container {
            margin-bottom: 6px;
        }

        @media (max-width: 760px) {
            .konto-personal-details .konto-detail-primary-grid {
                grid-template-columns: 1fr;
            }
        }

        @media (max-width: 1000px) {
            .konto-personal-details .konto-detail-primary-grid {
                grid-template-columns: 1fr;
                gap: 4px;
            }

            .konto-personal-details .field-name,
            .konto-personal-details .field-account,
            .konto-personal-details .field-birthdate,
            .konto-personal-details .field-email {
                grid-column: 1;
                grid-row: auto;
            }

            .konto-personal-details .konto-detail-primary-card .kpi-value {
                font-size: clamp(15px, 2.4vh, 22px);
            }
        }

        @media (min-width: 721px) and (max-width: 1000px) {
            .konto-personal-details .konto-detail-primary-grid {
                grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
                gap: 6px;
            }

            .konto-personal-details .field-name {
                grid-column: 1;
                grid-row: 1;
            }

            .konto-personal-details .field-account {
                grid-column: 2;
                grid-row: 1;
            }

            .konto-personal-details .field-birthdate {
                grid-column: 1;
                grid-row: 2;
            }

            .konto-personal-details .field-email {
                grid-column: 2;
                grid-row: 2;
            }
        }

        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: rgba(0,0,0,0.5);
            z-index: 1000;
            align-items: center;
            justify-content: center;
        }

        .modal.active {
            display: flex;
        }

        .modal-content {
            background-color: white;
            border-radius: 4px;
            max-width: 500px;
            width: 90%;
            max-height: 80vh;
            overflow-y: auto;
            box-shadow: 0 4px 20px rgba(0,0,0,0.2);
        }

        /* Keep Stripe audit modal wide even with generic modal-content defaults. */
        #stripe-audit-modal .stripe-audit-modal-content {
            max-width: min(1920px, 99vw);
            width: 98vw;
            max-height: 96vh;
        }

        .account-adjustment-modal-content {
            max-width: 860px;
            width: 96%;
            max-height: 92vh;
        }

        @media (max-width: 900px) {
            #konten-detail-pane .detail-actions-row.entity-pane-actions.entity-pane-actions-comfy {
                display: flex;
                flex-direction: column;
                gap: 8px;
            }

            #konten-detail-pane .detail-actions-row.entity-pane-actions.entity-pane-actions-comfy > .btn {
                width: 100%;
                min-height: 36px;
                height: auto;
                font-size: 13px;
                padding: 8px 10px;
            }
        }

        #account-adjustment-modal .modal-body {
            padding: 24px;
        }

        #account-adjustment-modal .modal-footer {
            padding: 16px 24px 20px;
            display: flex;
            align-items: stretch;
            justify-content: flex-start;
            gap: 14px;
            flex-wrap: wrap;
        }

        #account-adjustment-modal .modal-header {
            padding: 20px 24px;
            font-size: 18px;
            color: #1e3a5f;
        }

        #account-adjustment-online-qr-wrap {
            text-align: center;
        }

        #account-adjustment-online-qr-image {
            width: 320px !important;
            height: 320px !important;
            margin-left: auto;
            margin-right: auto;
        }

        #account-adjustment-modal.qr-only-mode .modal-body > :not(#account-adjustment-online-qr-wrap) {
            display: none !important;
        }

        #account-adjustment-modal.qr-only-mode .modal-footer {
            display: none;
        }

        .modal-header {
            padding: 16px 20px;
            border-bottom: 1px solid #e0e0e0;
            font-weight: 600;
            color: #333;
        }

        .modal-body {
            padding: 20px;
        }

        .modal-footer {
            padding: 16px 20px;
            border-top: 1px solid #e0e0e0;
            display: flex;
            justify-content: flex-end;
            gap: 8px;
        }

        .quick-adjust-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 8px;
            margin-top: 8px;
        }

        .account-adjustment-actions-group {
            display: grid;
            grid-template-columns: 1fr;
            gap: 8px;
            min-width: 210px;
            flex: 1;
            max-width: 280px;
        }

        .account-adjustment-actions-group-online {
            padding-left: 14px;
            border-left: 1px solid #d8dde5;
        }

        .account-adjustment-cancel-btn {
            margin-left: auto;
            align-self: flex-start;
            min-width: 120px;
        }

        .btn.btn-soft-disabled {
            opacity: 0.55;
            filter: saturate(0.3);
        }

        @media (max-width: 760px) {
            .account-adjustment-actions-group,
            .account-adjustment-actions-group-online {
                max-width: none;
                width: 100%;
            }

            .account-adjustment-actions-group-online {
                border-left: 0;
                padding-left: 0;
                padding-top: 8px;
                border-top: 1px solid #d8dde5;
            }

            .account-adjustment-cancel-btn {
                width: 100%;
                margin-left: 0;
            }
        }

        .edit-image-preview-wrap {
            min-height: 130px;
            display: flex;
            align-items: center;
        }

        .toast-container {
            position: fixed;
            right: 20px;
            top: 68px;
            display: flex;
            flex-direction: column;
            gap: 10px;
            z-index: 1400;
        }

        .toast {
            min-width: 360px;
            max-width: 520px;
            color: #fff;
            border-radius: 10px;
            padding: 16px 18px;
            box-shadow: 0 12px 28px rgba(0, 0, 0, 0.32);
            animation: toast-in 0.16s ease-out;
            font-size: 16px;
            font-weight: 600;
            border-left: 8px solid rgba(255,255,255,0.5);
        }

        .toast.success {
            background-color: #2e7d32;
        }

        .toast.error {
            background-color: #c62828;
        }

        .toast.warning {
            background-color: #ef6c00;
        }

        .toast.info {
            background-color: #1565c0;
        }

        @keyframes toast-in {
            from {
                opacity: 0;
                transform: translateY(6px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .close-btn {
            position: absolute;
            top: 16px;
            right: 16px;
            background: none;
            border: none;
            font-size: 24px;
            cursor: pointer;
            color: #666;
        }

        .empty-state {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            height: 100%;
            color: #999;
            text-align: center;
        }

        ::-webkit-scrollbar {
            width: 8px;
        }

        ::-webkit-scrollbar-track {
            background: #f1f1f1;
        }

        ::-webkit-scrollbar-thumb {
            background: #bbb;
            border-radius: 4px;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: #999;
        }

        /* WebSocket Status Styles */
        .status {
            display: inline-block;
            padding: 6px 12px;
            border-radius: 4px;
            font-size: 13px;
            font-weight: 500;
        }

        .status.connected {
            background-color: #c8e6c9;
            color: #2e7d32;
        }

        .status.disconnected {
            background-color: #ffcccc;
            color: #c62828;
        }

        @media (max-width: 1200px) {
            .container {
                flex-direction: column;
            }

            .sidebar {
                width: 100%;
                max-height: none;
                display: flex;
                flex-direction: row;
                align-items: center;
                overflow-x: auto;
                overflow-y: hidden;
                gap: 6px;
                padding: 8px;
            }

            .sidebar-title {
                display: none;
            }

            .sidebar .event-selector {
                display: none;
            }

            .sidebar-nav {
                display: flex;
                overflow: visible;
                flex: 1 0 auto;
                min-width: max-content;
            }

            .sidebar-kasse-btn-mobile {
                display: inline-flex;
                flex: 0 0 auto;
                min-width: 88px;
                white-space: nowrap;
            }

            .sidebar-kasse-btn-footer {
                display: none;
            }

            .nav-item {
                padding: 12px 16px;
                white-space: nowrap;
                flex-shrink: 0;
            }

            .sidebar-footer {
                margin: 0;
                padding: 0;
                border-top: none;
                background: transparent;
                flex: 0 0 auto;
            }

            .sidebar-footer .sidebar-logout-btn {
                width: auto;
                min-width: 120px;
            }

        }

        @media (max-width: 1200px) {
            .content-header-actions {
                display: inline-flex;
            }

            .content-filter-toggle {
                display: inline-flex;
            }

            .content-add-toggle {
                display: none;
            }

            .content-header .list-header.mobile-collapsible {
                display: none !important;
            }

            .content-header.filters-open .list-header.mobile-collapsible {
                display: block !important;
            }

            .list-header {
                flex-direction: column;
                gap: 8px;
                padding: 6px 10px 8px 10px;
            }

            .list-search-box {
                flex-direction: row;
                align-items: center;
                flex-wrap: wrap;
                gap: 6px;
            }

            .list-search-box input {
                max-width: 100%;
                flex: 1 1 220px;
            }

            .search-clear-btn {
                align-self: center;
                flex: 0 0 auto;
            }

            .accounts-controls {
                margin-left: 0;
                width: 100%;
                flex-wrap: wrap;
            }

            .accounts-controls .btn {
                flex: 1 1 180px;
            }

            .accounts-controls select {
                flex: 1;
                min-width: 120px;
            }

            .account-list-with-select {
                grid-template-columns: 38px minmax(148px, 1.3fr) minmax(82px, 0.75fr) minmax(92px, 0.82fr) minmax(106px, 0.95fr) minmax(112px, 0.95fr);
            }

            body.freigetraenke-disabled .account-list-with-select {
                grid-template-columns: 38px minmax(156px, 1.38fr) minmax(86px, 0.8fr) minmax(96px, 0.85fr) minmax(112px, 0.95fr);
            }
        }

        @media (max-width: 768px) {
            .sidebar .event-selector {
                width: fit-content;
                min-width: 0;
                flex: 0 0 auto;
                padding: 4px 8px;
                font-size: 11px;
            }

            .main-content {
                margin: 6px;
            }

            .content-header {
                padding-top: 2px;
            }

            .content-header h2 {
                font-size: 16px;
                padding: 8px 0 6px 12px;
                line-height: 1.2;
            }

            .list-header {
                flex-direction: column;
                gap: 8px;
                padding: 6px 10px 8px 10px;
            }

            .list-search-box {
                flex-direction: row;
                align-items: center;
                flex-wrap: wrap;
                gap: 6px;
            }

            .list-search-box input {
                max-width: 100%;
                flex: 1 1 220px;
            }

            .search-clear-btn {
                align-self: center;
                flex: 0 0 auto;
            }

            .accounts-controls {
                margin-left: 0;
                width: 100%;
                flex-wrap: wrap;
            }

            .accounts-controls .btn {
                flex: 1 1 180px;
            }

            .detail-actions-row {
                flex-wrap: wrap;
            }

            #settings-list-pane,
            #settings-detail-pane {
                flex: 1 1 100% !important;
                width: 100%;
                max-width: 100%;
                border-right: none !important;
            }

            #settings-detail-pane .detail-section {
                padding: 14px;
                border-radius: 6px;
            }

            .settings-group-row {
                align-items: stretch;
                flex-wrap: wrap;
            }

            .settings-group-usage {
                min-width: auto;
                width: 100%;
                text-align: left;
            }

            .import-export-actions-row .btn {
                flex: 1 1 180px;
            }

            .stats-filter-grid {
                grid-template-columns: repeat(2, minmax(0, 1fr));
                gap: 8px;
            }

            #stats-kpi-grid {
                grid-template-columns: 1fr !important;
            }

            .accounts-controls select {
                flex: 1;
                min-width: 120px;
            }

            .entity-list-head,
            .entity-list-row {
                grid-template-columns: 1.3fr 0.8fr 0.9fr 0.8fr 0.55fr;
                font-size: 11px;
                gap: 6px;
            }

            .transactions-list-head,
            .transactions-list-row {
                grid-template-columns: 1.1fr 1.2fr 1fr 0.95fr 1fr 0.95fr 0.9fr 0.8fr;
            }

            #transaktionen-list-pane.pane-condensed .transactions-list-head,
            #transaktionen-list-pane.pane-condensed .transactions-list-row {
                grid-template-columns: 1.15fr 1.25fr 1.2fr 0.95fr 0.85fr !important;
            }

            #transaktionen-list-pane.pane-condensed .transactions-list-head > span:nth-child(3),
            #transaktionen-list-pane.pane-condensed .transactions-list-head > span:nth-child(4),
            #transaktionen-list-pane.pane-condensed .transactions-list-head > span:nth-child(6),
            #transaktionen-list-pane.pane-condensed .transactions-list-row > span:nth-child(3),
            #transaktionen-list-pane.pane-condensed .transactions-list-row > span:nth-child(4),
            #transaktionen-list-pane.pane-condensed .transactions-list-row > span:nth-child(6) {
                display: none;
            }

            .account-list-with-select {
                grid-template-columns: 40px minmax(130px, 1.3fr) minmax(84px, 0.8fr) minmax(88px, 0.9fr) minmax(84px, 0.8fr) minmax(68px, 0.55fr);
            }

            #konten-list-pane {
                overflow-x: auto;
            }

            #konten-list-pane .entity-list-head.account-list-with-select,
            #konten-items .account-list-with-select {
                min-width: 620px;
            }

            .transactions-list-head,
            .transactions-list-row {
                min-width: 880px;
            }

            #transactions-items {
                overflow-x: auto;
            }

            .detail-grid {
                grid-template-columns: 1fr;
            }

            .switch-row {
                align-items: flex-start;
            }

            .switch-row__text {
                padding-top: 2px;
            }

            .form-container {
                padding: 12px;
            }

            table {
                font-size: 11px;
            }

            th, td {
                padding: 8px 12px;
            }
        }

        @media (max-width: 420px) {
            .entity-list-head,
            .entity-list-row {
                padding: 8px 10px;
                gap: 5px;
                font-size: 10px;
            }

            .account-list-with-select {
                grid-template-columns: 36px minmax(118px, 1.25fr) minmax(78px, 0.8fr) minmax(80px, 0.85fr) minmax(78px, 0.8fr) minmax(62px, 0.5fr);
                min-width: 520px;
            }

            #konten-list-pane .entity-list-head.account-list-with-select,
            #konten-items .account-list-with-select {
                min-width: 520px;
            }

            body.freigetraenke-disabled .account-list-with-select {
                grid-template-columns: 36px minmax(118px, 1.25fr) minmax(78px, 0.8fr) minmax(80px, 0.85fr) minmax(78px, 0.8fr);
                min-width: 460px;
            }

            #konten-items {
                overflow-x: auto;
            }

            .transactions-list-head,
            .transactions-list-row {
                min-width: 820px;
                font-size: 10px;
            }
        }

    .shortcut-settings-list {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .shortcut-settings-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
        padding: 12px;
        background: #fff;
        border: 1px solid #e0e0e0;
        border-radius: 6px;
    }

    .shortcut-settings-main {
        min-width: 0;
        flex: 1;
    }

    .shortcut-settings-title {
        font-weight: 600;
        color: #1e3a5f;
        margin-bottom: 4px;
    }

    .shortcut-settings-meta {
        font-size: 12px;
        color: #666;
    }

    .shortcut-settings-actions,
    .shortcut-settings-command-controls {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-end;
    }

    .shortcut-settings-command-controls select {
        min-width: 140px;
    }

    /* Admin Scanner Test Styles */
    .admin-scanner-test-output {
        width: 100%;
        margin: 0 0 12px 0;
        max-width: none;
        font-family: Consolas, 'Courier New', monospace;
        font-size: 12px;
        line-height: 1.35;
        padding: 10px;
        border: 1px solid #d7e5f5;
        border-radius: 4px;
        background: #f8fbff;
        color: #1f2f45;
        resize: vertical;
    }

    .admin-scanner-test-quality {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 8px 10px;
        background: #f0f4f8;
        border-radius: 4px;
        font-size: 13px;
        color: #516275;
        margin-bottom: 12px;
    }

    .admin-scanner-test-quality-indicator {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: #ccc;
        flex-shrink: 0;
        transition: background-color 0.2s ease;
    }

    .admin-scanner-test-quality-indicator.scanner-typical {
        background: #4caf50;
    }

    .admin-scanner-test-quality-indicator.hybrid {
        background: #ff9800;
    }

    .admin-scanner-test-quality-indicator.manual-typical {
        background: #f44336;
    }

    .admin-scanner-test-quality-label {
        font-family: Consolas, 'Courier New', monospace;
        font-size: 12px;
        color: #1f2f45;
    }

    .admin-scanner-test-actions {
        display: flex;
        gap: 8px;
        justify-content: center;
    }

    .admin-scanner-test-actions .btn {
        flex: 1;
    }

    /* Freigetränke Feature Toggle */
    body.freigetraenke-disabled .freigetraenke-feature {
        display: none !important;
    }

    body.freigetraenke-disabled .account-list-with-select {
        grid-template-columns: 40px minmax(170px, 1.4fr) minmax(95px, 0.85fr) minmax(110px, 0.95fr) minmax(95px, 0.85fr);
    }

    /* Final override: keep Stripe audit modal truly wide. */
    #stripe-audit-modal .modal-content.stripe-audit-modal-content {
        width: 98vw !important;
        max-width: 1920px !important;
        max-height: 96vh !important;
    }

    /* Final override: stable account action buttons on narrow screens (no overlap, no single-column stretch). */
    @media (max-width: 900px) {
        #konten-detail-pane .detail-actions-row.entity-pane-actions.entity-pane-actions-comfy {
            display: grid !important;
            grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
            gap: 8px !important;
            align-items: stretch !important;
        }

        #konten-detail-pane .detail-actions-row.entity-pane-actions.entity-pane-actions-comfy > .btn {
            width: 100% !important;
            min-height: 36px !important;
            height: auto !important;
            font-size: 13px !important;
            padding: 8px 10px !important;
            grid-column: auto !important;
            grid-row: auto !important;
        }

        #konten-detail-pane .detail-actions-row.entity-pane-actions.entity-pane-actions-comfy > .btn:nth-child(1) {
            grid-column: 1 !important;
            grid-row: 1 !important;
        }

        #konten-detail-pane .detail-actions-row.entity-pane-actions.entity-pane-actions-comfy > .btn:nth-child(2) {
            grid-column: 2 !important;
            grid-row: 1 !important;
        }

        #konten-detail-pane .detail-actions-row.entity-pane-actions.entity-pane-actions-comfy > .btn:nth-child(3) {
            grid-column: 1 !important;
            grid-row: 2 !important;
        }

        #konten-detail-pane .detail-actions-row.entity-pane-actions.entity-pane-actions-comfy > .btn:nth-child(4) {
            grid-column: 2 !important;
            grid-row: 2 !important;
        }

        #konten-detail-pane .detail-actions-row.entity-pane-actions.entity-pane-actions-comfy > .btn:nth-child(5) {
            grid-column: 1 / span 2 !important;
            grid-row: 3 !important;
        }
    }

    @media (max-width: 670px) {
        .entity-edit-pane .entity-pane-actions .btn,
        .entity-detail-pane .entity-pane-actions .btn {
            font-size: 11px;
            padding: 6px 9px;
            min-height: 32px;
        }

        #konten-detail-pane .detail-actions-row.entity-pane-actions.entity-pane-actions-comfy > .btn {
            min-height: 32px !important;
            font-size: 11px !important;
            padding: 6px 9px !important;
        }
    }

    @media (max-width: 420px) {
        #konten-detail-pane .detail-actions-row.entity-pane-actions.entity-pane-actions-comfy {
            grid-template-columns: 1fr !important;
        }

        #konten-detail-pane .konto-personal-details .konto-detail-primary-card .kpi-value {
            font-size: clamp(12px, 3.2vw, 14px) !important;
            line-height: 1.25;
        }

        #konten-detail-pane .konto-personal-details .konto-detail-primary-card {
            padding: 7px 8px;
            gap: 4px;
        }

        #konten-detail-pane .detail-actions-row.entity-pane-actions.entity-pane-actions-comfy > .btn:nth-child(1),
        #konten-detail-pane .detail-actions-row.entity-pane-actions.entity-pane-actions-comfy > .btn:nth-child(2),
        #konten-detail-pane .detail-actions-row.entity-pane-actions.entity-pane-actions-comfy > .btn:nth-child(3),
        #konten-detail-pane .detail-actions-row.entity-pane-actions.entity-pane-actions-comfy > .btn:nth-child(4),
        #konten-detail-pane .detail-actions-row.entity-pane-actions.entity-pane-actions-comfy > .btn:nth-child(5) {
            grid-column: auto !important;
            grid-row: auto !important;
        }
    }
