body {
    background-color: var(--bs-tertiary-bg);
}

[data-bs-theme="light"] body {
    background-color: #f4f6f9;
}

.card {
    border-color: var(--bs-border-color-translucent);
}

.table > thead th {
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: var(--bs-secondary-color);
    white-space: nowrap;
}

.form-section {
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--bs-secondary-color);
    border-bottom: 1px solid var(--bs-border-color);
    padding-bottom: .5rem;
    margin: 1rem 0 0;
}

.stat-card {
    transition: transform .1s ease, box-shadow .1s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--bs-box-shadow-sm);
}

.children-tabs {
    --bs-nav-underline-gap: 1.25rem;
    row-gap: .25rem;
}

.children-tabs .nav-link {
    padding-top: .35rem;
    padding-bottom: .35rem;
}

.children-card .table > thead th:first-child,
.children-card .table > tbody td:first-child {
    padding-left: 1rem;
}

.device-picker {
    max-height: 28rem;
    overflow-y: auto;
}

.many-box {
    max-height: 16rem;
    overflow-y: auto;
}

.payload {
    max-height: 24rem;
    overflow: auto;
    white-space: pre-wrap;
    word-break: break-word;
}

.login-wrap {
    min-height: 100vh;
}

.login-card,
.account-card {
    max-width: 26rem;
}

/* Zwei-Faktor-Anmeldung */
.account-grid {
    max-width: 60rem;
}

.mfa-card {
    max-width: 36rem;
}

.mfa-steps {
    padding-left: 1.2rem;
}

.mfa-steps li {
    margin-bottom: .5rem;
}

/* QR-Code immer schwarz auf weiß, auch im dunklen Modus */
.mfa-qr {
    display: inline-block;
    background: #fff;
    padding: .25rem;
    border-radius: .375rem;
    line-height: 0;
}

.mfa-qr svg {
    width: 220px;
    max-width: 100%;
    height: auto;
}

.mfa-secret {
    display: inline-block;
    font-size: 1rem;
    letter-spacing: .05em;
    word-break: break-all;
}

.mfa-code-input {
    max-width: 10rem;
    letter-spacing: .2em;
}

.mfa-recovery {
    columns: 2;
    font-size: 1.1rem;
    padding-left: 1.6rem;
    margin-bottom: 1.5rem;
}

@media print {
    .navbar, .alert { display: none !important; }
    .mfa-card { box-shadow: none !important; border: 0 !important; }
}
