/* Etiketten-Plattform - Oberflaeche auf Basis von Bootstrap 5 */

/* Oberflaechenschrift Inter (SIL Open Font License, siehe fonts/Inter-LICENSE.txt) */
@font-face {
    font-family: "Inter";
    src: url("../fonts/Inter-Variable.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

/* Etikettenschrift fuer die Vorschau (dieselbe Schrift wie im PDF) */
@font-face {
    font-family: "Carlito";
    src: url("../fonts/Carlito-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Carlito";
    src: url("../fonts/Carlito-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --ink: #111827;
    --ink-2: #374151;
    --ink-soft: #6b7280;
    --ink-faint: #9ca3af;
    --line: #e7e9ee;
    --line-strong: #d5d9e0;
    --surface: #ffffff;
    --surface-2: #f9fafb;
    --canvas: #f5f6f8;
    --accent: #2563eb;
    --accent-dark: #1d4ed8;
    --accent-soft: #eef3ff;
    --radius: 12px;
    --radius-md: 8px;
    --radius-sm: 6px;
    --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05);
    --shadow: 0 1px 3px rgba(16, 24, 40, 0.06), 0 1px 2px rgba(16, 24, 40, 0.04);
    --bs-primary: #2563eb;
    --bs-primary-rgb: 37, 99, 235;
    --bs-link-color: #2563eb;
    --bs-link-color-rgb: 37, 99, 235;
    --bs-link-hover-color: #1d4ed8;
    --bs-link-hover-color-rgb: 29, 78, 216;
    --bs-body-color: #111827;
    --bs-body-bg: #f5f6f8;
    --bs-border-color: #e7e9ee;
    --bs-secondary-color: #6b7280;
    --bs-body-font-size: 0.875rem;
    --bs-body-line-height: 1.55;
    --bs-border-radius: 8px;
    --bs-border-radius-sm: 6px;
    --bs-border-radius-lg: 12px;
    --bs-font-monospace: ui-monospace, "Cascadia Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

body {
    min-height: 100vh;
    font-family: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
    font-feature-settings: "cv11", "ss03";
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Artikelbezeichnungen wie "40x5" unveraendert zeigen (manche Schriften machen daraus ein Malzeichen) */
    font-variant-ligatures: no-contextual;
}

a {
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.font-monospace {
    font-size: 0.9em;
}

.min-w-0 {
    min-width: 0;
}

.cell-title {
    display: block;
    font-weight: 500;
    color: var(--ink);
}

.cell-sub {
    display: block;
    margin-top: 0.1rem;
    font-size: 0.8rem;
    color: var(--ink-soft);
}

/* ------------------------------------------------------------------- Buttons */

.btn {
    --bs-btn-font-weight: 500;
    --bs-btn-border-radius: var(--radius-md);
    --bs-btn-padding-y: 0.5rem;
    --bs-btn-padding-x: 0.9rem;
    --bs-btn-font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.btn-sm {
    --bs-btn-padding-y: 0.3rem;
    --bs-btn-padding-x: 0.65rem;
    --bs-btn-font-size: 0.8rem;
    --bs-btn-border-radius: var(--radius-sm);
}

.btn-lg {
    --bs-btn-padding-y: 0.65rem;
    --bs-btn-padding-x: 1.15rem;
    --bs-btn-font-size: 0.95rem;
}

.btn:hover {
    text-decoration: none;
}

.btn-primary {
    --bs-btn-bg: var(--accent);
    --bs-btn-border-color: var(--accent);
    --bs-btn-hover-bg: var(--accent-dark);
    --bs-btn-hover-border-color: var(--accent-dark);
    --bs-btn-active-bg: var(--accent-dark);
    --bs-btn-active-border-color: var(--accent-dark);
    --bs-btn-disabled-bg: var(--accent);
    --bs-btn-disabled-border-color: var(--accent);
    box-shadow: 0 1px 2px rgba(37, 99, 235, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.btn-outline-primary,
.btn-outline-secondary {
    --bs-btn-color: var(--ink-2);
    --bs-btn-bg: var(--surface);
    --bs-btn-border-color: var(--line-strong);
    --bs-btn-hover-color: var(--ink);
    --bs-btn-hover-bg: var(--surface-2);
    --bs-btn-hover-border-color: var(--line-strong);
    --bs-btn-active-color: var(--ink);
    --bs-btn-active-bg: #f1f3f6;
    --bs-btn-active-border-color: var(--line-strong);
    box-shadow: var(--shadow-sm);
}

.btn-outline-primary {
    --bs-btn-color: var(--accent);
    --bs-btn-hover-color: var(--accent-dark);
}

.btn-outline-danger {
    --bs-btn-bg: var(--surface);
    box-shadow: var(--shadow-sm);
}

/* -------------------------------------------------------------------- Formulare */

.form-control,
.form-select {
    border-color: var(--line-strong);
    border-radius: var(--radius-md);
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    box-shadow: var(--shadow-sm);
}

.form-control::placeholder {
    color: var(--ink-faint);
}

.form-control:focus,
.form-select:focus,
.form-check-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.form-check-input:checked {
    background-color: var(--accent);
    border-color: var(--accent);
}

.form-label,
.col-form-label,
legend.form-label {
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--ink-2);
    margin-bottom: 0.35rem;
}

legend.form-label {
    float: none;
}

.form-text {
    color: var(--ink-soft);
    font-size: 0.8rem;
}

/* ---------------------------------------------------------------- Grundgeruest */

.app-shell {
    display: flex;
    min-height: 100vh;
}

/* Bootstrap macht .offcanvas-lg ab 992px transparent - die Flaeche liegt deshalb auf .sidebar-inner */
.sidebar {
    --bs-offcanvas-width: 256px;
    --bs-offcanvas-bg: var(--surface);
    --bs-offcanvas-border-width: 0;
}

.sidebar-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--surface);
    border-right: 1px solid var(--line);
    color: var(--ink);
    overflow-y: auto;
}

@media (min-width: 992px) {
    .sidebar {
        flex: 0 0 256px;
        width: 256px;
    }

    .sidebar-inner {
        position: sticky;
        top: 0;
        height: 100vh;
    }
}

.sidebar-brand,
.guest-brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-weight: 650;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
}

.sidebar-brand {
    min-height: 4rem;
    padding: 0.9rem 1.25rem;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
    color: var(--ink);
}

.brand-link:hover {
    text-decoration: none;
    color: var(--ink);
}

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

.brand-mark {
    display: inline-grid;
    flex: 0 0 auto;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: var(--radius-md);
    background: var(--accent);
    color: #fff;
    font-size: 1.05rem;
    box-shadow: 0 1px 2px rgba(37, 99, 235, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.brand-logo {
    display: block;
    max-height: 40px;
    max-width: 200px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0.5rem 0.75rem 1rem;
    flex: 1 1 auto;
}

.sidebar-group {
    padding: 1.1rem 0.75rem 0.4rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--ink-faint);
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-md);
    color: var(--ink-2);
    font-weight: 500;
    font-size: 0.875rem;
    transition: background-color 0.12s ease, color 0.12s ease;
}

.sidebar-link .bi {
    font-size: 1.05rem;
    width: 1.15rem;
    text-align: center;
    color: var(--ink-faint);
    transition: color 0.12s ease;
}

.sidebar-link:hover {
    background: #f3f4f6;
    color: var(--ink);
    text-decoration: none;
}

.sidebar-link:hover .bi {
    color: var(--ink-soft);
}

.sidebar-link.active {
    background: var(--accent-soft);
    color: var(--accent-dark);
    font-weight: 600;
}

.sidebar-link.active .bi {
    color: var(--accent);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0.75rem 0.75rem;
    padding: 0.6rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-2);
}

.sidebar-user form {
    margin: 0;
}

.sidebar-user-link {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    gap: 0.6rem;
    min-width: 0;
    color: var(--ink);
}

.sidebar-user-link:hover {
    text-decoration: none;
    color: var(--ink);
}

.avatar {
    display: inline-grid;
    flex: 0 0 auto;
    place-items: center;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 50%;
    background: linear-gradient(180deg, #3b82f6, #2563eb);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.sidebar-user-text {
    min-width: 0;
}

.sidebar-user-text strong,
.sidebar-user-text small {
    display: block;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-user-text strong {
    font-size: 0.85rem;
    font-weight: 600;
}

.sidebar-user-text small {
    color: var(--ink-soft);
    font-size: 0.75rem;
}

.btn-logout {
    display: inline-grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 0;
    border-radius: var(--radius-md);
    background: none;
    color: var(--ink-faint);
    font-size: 1.05rem;
}

.btn-logout:hover,
.btn-logout:focus-visible {
    background: #fee2e2;
    color: #b91c1c;
}

.app-main {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 1020;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1rem;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}

.topbar-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 650;
}

.topbar-title .brand-logo {
    max-height: 30px;
}

.content {
    padding: 1.5rem 1rem 3rem;
    width: 100%;
    max-width: 1440px;
}

@media (min-width: 992px) {
    .content {
        padding: 2.25rem 2.5rem 4rem;
    }
}

/* ------------------------------------------------------------------- Seiten */

.page-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.page-header h1 {
    font-size: 1.6rem;
    font-weight: 650;
    letter-spacing: -0.025em;
    line-height: 1.2;
    margin: 0;
}

.page-header h1 .badge {
    font-size: 0.75rem;
    vertical-align: middle;
    letter-spacing: 0;
}

.page-subtitle {
    color: var(--ink-soft);
    margin: 0.35rem 0 0;
    max-width: 70ch;
    font-size: 0.9rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.82rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--ink-soft);
}

.back-link:hover {
    color: var(--ink);
    text-decoration: none;
}

.header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.section-title {
    font-size: 1rem;
    font-weight: 650;
    letter-spacing: -0.01em;
    margin: 2.5rem 0 1rem;
}

.card {
    --bs-card-bg: var(--surface);
    --bs-card-border-color: var(--line);
    --bs-card-cap-bg: var(--surface);
    --bs-card-border-radius: var(--radius);
    --bs-card-inner-border-radius: calc(var(--radius) - 1px);
    --bs-card-cap-padding-x: 1.25rem;
    --bs-card-cap-padding-y: 1rem;
    --bs-card-spacer-x: 1.25rem;
    --bs-card-spacer-y: 1.25rem;
    box-shadow: var(--shadow);
}

.card-header {
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
}

.card-header a.small {
    font-weight: 500;
    font-size: 0.82rem;
}

.card-footer {
    background: var(--surface-2);
    padding: 0.85rem 1.25rem;
}

.alert {
    border-radius: var(--radius-md);
    font-size: 0.875rem;
}

.form-card {
    max-width: 980px;
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem;
}

.form-section {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ink);
    margin: 2rem 0 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--line);
}

.form-section:first-of-type {
    margin-top: 0;
}

.list-group {
    --bs-list-group-bg: var(--surface);
    --bs-list-group-border-color: var(--line);
    --bs-list-group-action-hover-bg: var(--surface-2);
}

.list-group-item {
    padding: 0.85rem 1.25rem;
}

.list-group-flush > .list-group-item:last-child {
    border-bottom-left-radius: calc(var(--radius) - 1px);
    border-bottom-right-radius: calc(var(--radius) - 1px);
}

/* Haeufig verwendete Artikel: ab mittlerer Breite nebeneinander */
@media (min-width: 768px) {
    .article-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        /* rechte und untere Linie der Eintraege liegen auf dem Kartenrahmen */
        margin: 0 -1px -1px 0;
    }

    .article-grid > .list-group-item {
        border-width: 0 1px 1px 0;
        border-radius: 0 !important;
    }
}

/* -------------------------------------------------------------------- Tabellen */

.table {
    --bs-table-hover-bg: #f8fafc;
    --bs-table-border-color: var(--line);
    margin-bottom: 0;
    font-size: 0.875rem;
}

.table > thead > tr > th {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--ink-soft);
    background: var(--surface-2);
    white-space: nowrap;
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
}

.table > :not(caption) > * > * {
    padding: 0.85rem 1.25rem;
}

.table td {
    vertical-align: middle;
}

.table > tbody > tr:last-child > * {
    border-bottom: 0;
}

.sort-link {
    color: inherit;
}

.empty-state {
    padding: 3rem 1.5rem;
    margin: 0;
    text-align: center;
    color: var(--ink-soft);
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.filter-bar > div {
    flex: 1 1 150px;
    min-width: 0;
}

.filter-bar > .filter-grow {
    flex: 2 1 240px;
}

.filter-bar > .filter-date {
    flex: 0 1 130px;
}

.detail-list {
    display: grid;
    grid-template-columns: minmax(11.5rem, 38%) 1fr;
    gap: 0.7rem 1rem;
}

@media (max-width: 575.98px) {
    .detail-list {
        grid-template-columns: 1fr;
        gap: 0.1rem;
    }

    .detail-list dd {
        margin-bottom: 0.6rem;
    }
}

.order-table .article-cell {
    min-width: 15rem;
}

.detail-list dt {
    color: var(--ink-soft);
    font-weight: 400;
}

.detail-list dd {
    margin: 0;
    font-weight: 500;
    overflow-wrap: anywhere;
}

.permission-group {
    font-size: 0.9rem;
    font-weight: 600;
    padding-bottom: 0.4rem;
    margin-bottom: 0.6rem;
    border-bottom: 1px solid var(--line);
    float: none;
}

/* ---------------------------------------------------------------- Kennzahlen */

.stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

@media (min-width: 1200px) {
    .stat-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.stat {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas: "label icon" "value icon";
    align-items: center;
    column-gap: 1rem;
    row-gap: 0.35rem;
    padding: 1.15rem 1.25rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    color: var(--ink);
    transition: border-color 0.12s ease, box-shadow 0.12s ease, transform 0.12s ease;
}

a.stat:hover {
    border-color: var(--line-strong);
    box-shadow: 0 4px 12px rgba(16, 24, 40, 0.08);
    text-decoration: none;
    color: var(--ink);
}

.stat-label {
    grid-area: label;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--ink-soft);
}

.stat-value {
    grid-area: value;
    font-size: 1.85rem;
    font-weight: 650;
    line-height: 1.1;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
}

.stat-value small {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0;
    color: var(--ink-soft);
}

.stat-icon {
    grid-area: icon;
    display: inline-grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: var(--radius);
    font-size: 1.2rem;
}

.tone-blue { background: #eef3ff; color: #2563eb; }
.tone-indigo { background: #eef0ff; color: #4f46e5; }
.tone-amber { background: #fff6eb; color: #d9690b; }
.tone-green { background: #ecfbf2; color: #16a34a; }
.tone-slate { background: #f2f4f7; color: #475467; }
.tone-red { background: #fef1f1; color: #dc2626; }

.stat-warning {
    border-color: #fecaca;
}

.stat-warning .stat-value {
    color: #b91c1c;
}

/* -------------------------------------------------------------------- Status */

.badge {
    font-weight: 500;
    border-radius: 999px;
}

.badge[class*="status-"] {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3em 0.65em 0.3em 0.55em;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge[class*="status-"]::before {
    content: "";
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 50%;
    background: currentColor;
}

.status-draft {
    background: #f2f4f7;
    color: #475467;
}

.status-released {
    background: #eef3ff;
    color: #1d4ed8;
}

.status-completed {
    background: #ecfbf2;
    color: #15803d;
}

.status-cancelled {
    background: #fef1f1;
    color: #b91c1c;
}

/* ------------------------------------------------------------ Auftragsformular */

.article-results {
    max-height: 18rem;
    overflow-y: auto;
    margin-top: 0.35rem;
    border-radius: var(--radius-md);
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.08);
}

.article-results:empty {
    display: none;
}

.article-results .list-group-item {
    text-align: left;
}

.selected-article {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1rem;
    border: 1px solid #c7d7fe;
    border-radius: var(--radius-md);
    background: var(--accent-soft);
}

.selected-article-number {
    font-weight: 600;
    margin-right: 0.5rem;
}

.selected-article-name {
    font-weight: 600;
}

.preview-card {
    position: sticky;
    top: 1rem;
}

.preview-status {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--ink-soft);
}

.preview-status.is-ok {
    color: #15803d;
}

.preview-status.is-error {
    color: #b91c1c;
}

.label-preview {
    position: relative;
    background: #eef0f3;
    border-radius: var(--radius-md);
    padding: 1.25rem;
}

.label-preview svg,
.label-svg {
    display: block;
    width: 100%;
    height: auto;
    max-width: 640px;
    margin: 0 auto;
    background: #fff;
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08), 0 8px 24px rgba(16, 24, 40, 0.1);
}

.label-preview.is-stale svg {
    opacity: 0.35;
}

.label-preview.is-cancelled svg {
    opacity: 0.45;
}

.preview-placeholder {
    margin: 0;
    padding: 5rem 1rem;
    text-align: center;
    color: var(--ink-soft);
}

.preview-warnings {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0 0;
}

.preview-warnings li {
    padding: 0.55rem 0.8rem;
    margin-bottom: 0.4rem;
    border: 1px solid #fde3c3;
    border-radius: var(--radius-md);
    background: #fff8ef;
    color: #9a4a06;
    font-size: 0.85rem;
}

.preview-barcodes {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.25rem 0.8rem;
    margin: 0.75rem 0;
    font-size: 0.85rem;
}

.preview-barcodes:empty {
    display: none;
}

.preview-barcodes dt {
    color: var(--ink-soft);
    font-weight: 400;
}

.preview-barcodes dd {
    margin: 0;
    font-family: var(--bs-font-monospace);
}

.code-editor {
    font-size: 0.8rem;
    line-height: 1.5;
    white-space: pre;
    overflow-x: auto;
    tab-size: 4;
}

.audit-table td {
    vertical-align: top;
}

.audit-changes {
    font-size: 0.8rem;
    max-width: 34rem;
    overflow-wrap: anywhere;
}

.dropdown-menu {
    --bs-dropdown-border-color: var(--line);
    --bs-dropdown-border-radius: var(--radius-md);
    --bs-dropdown-link-active-bg: var(--accent);
    --bs-dropdown-font-size: 0.875rem;
    padding: 0.35rem;
    box-shadow: 0 12px 32px rgba(16, 24, 40, 0.12);
}

.dropdown-item {
    border-radius: var(--radius-sm);
    padding: 0.45rem 0.65rem;
}

.dropdown-item .bi {
    margin-right: 0.4rem;
}

.modal-content {
    border: 0;
    border-radius: var(--radius);
    box-shadow: 0 24px 48px rgba(16, 24, 40, 0.18);
}

.modal-header,
.modal-footer {
    border-color: var(--line);
}

.pagination {
    --bs-pagination-active-bg: var(--accent);
    --bs-pagination-active-border-color: var(--accent);
    --bs-pagination-color: var(--ink-2);
    --bs-pagination-border-color: var(--line-strong);
}

/* ---------------------------------------------------------------- Einstellungen */

.logo-preview {
    display: grid;
    place-items: center;
    min-height: 6.5rem;
    padding: 1rem;
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius-md);
    background: var(--surface-2);
}

.logo-preview img {
    max-height: 60px;
    max-width: 100%;
}

.logo-preview.is-empty span {
    color: var(--ink-soft);
    font-size: 0.85rem;
    text-align: center;
}

/* ---------------------------------------------------------- Anmeldung, Fehler */

body.guest {
    display: grid;
    place-items: center;
    padding: 1.5rem;
    background:
        radial-gradient(circle at 1px 1px, #dfe3ea 1px, transparent 0) 0 0 / 22px 22px,
        var(--canvas);
}

.guest-card {
    width: 100%;
    max-width: 420px;
    padding: 2.25rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 20px 40px rgba(16, 24, 40, 0.08);
}

.install-card {
    max-width: 720px;
    margin: 2rem 0;
}

.install-checks {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
}

.install-checks li {
    display: flex;
    gap: 0.6rem;
    padding: 0.3rem 0;
}

.guest-brand {
    margin-bottom: 1.75rem;
    color: var(--ink);
}

.guest-brand .brand-logo {
    max-height: 48px;
    max-width: 240px;
}

.error-page {
    max-width: 560px;
    margin: 3rem auto;
    text-align: center;
}

.guest-card .error-page {
    margin: 0;
}

.error-code {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

@media print {
    .sidebar,
    .topbar,
    .header-actions,
    .filter-bar {
        display: none !important;
    }
}
