﻿html, body {
    font-family: var(--rz-text-font-family);
}

.page-title {
    margin: 0 0 1rem 0;
    font-weight: 600;
}

.page-subtitle {
    margin: -0.75rem 0 1rem 0;
    color: var(--rz-text-secondary-color);
}

.toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 1rem;
}

.toolbar .spacer {
    flex: 1;
}

.metric-card {
    height: 100%;
}

.metric-value {
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.2;
}

.metric-label {
    color: var(--rz-text-secondary-color);
    font-size: 0.85rem;
}

.field-error {
    color: var(--rz-danger);
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(140px, 220px) 1fr;
    gap: 0.4rem 1rem;
}

.detail-grid .label {
    color: var(--rz-text-secondary-color);
}

.impersonation-banner {
    background: #b3261e;
    color: #fff;
    padding: 0.5rem 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    font-weight: 500;
}

.impersonation-banner.expiring {
    background: #7a0000;
}

.impersonation-banner .spacer {
    flex: 1;
}

.message-bubble {
    border-radius: 8px;
    padding: 0.75rem 1rem;
    background: var(--rz-base-100);
    white-space: pre-wrap;
}

.message-bubble.handler {
    background: var(--rz-primary-lighter);
}

.message-bubble.internal {
    background: var(--rz-warning-lighter);
}

.code-block {
    font-family: Consolas, monospace;
    font-size: 0.85rem;
    white-space: pre-wrap;
    word-break: break-all;
    background: var(--rz-base-100);
    padding: 0.75rem;
    border-radius: 4px;
}

.recovery-codes {
    display: grid;
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    gap: 0.5rem;
    font-family: Consolas, monospace;
    font-size: 1rem;
}

.table-container {
    overflow-x: auto;
}

.rz-grid-table th {
    white-space: nowrap;
}

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