/* ── Auth pages ── */

.auth-card {
    max-width: 25rem;
    width: 100%;
}

/* ── Keyboard Shortcut Overlay ── */

.shortcut-overlay-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(0, 0, 0, 0.5);
}

.shortcut-overlay-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    min-width: 20rem;
    max-width: calc(100vw - 2rem);
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
}

.shortcut-row {
    padding: 0.25rem 0;
    border-bottom: 1px solid var(--rz-base-200);
}

.shortcut-key {
    font-family: monospace;
    font-size: 0.75rem;
    background: var(--rz-base-200);
    padding: 0.125rem 0.5rem;
    border-radius: 0.25rem;
    white-space: nowrap;
}

/* ── Back To Top ── */

.back-to-top-btn-style {
    border-radius: 50%;
    width: 2.75rem;
    height: 2.75rem;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.2);
}

/* ── Settings ── */

.settings-card {
    width: 100%;
    max-width: 48rem;
    margin: 0;
}

.settings-card-wide {
    width: 100%;
    max-width: 64rem;
    margin: 0;
}

.about-label {
    font-weight: 600;
    min-width: 7rem;
}

/* ── Tab content: top padding only ── */
.rz-tabview-panel {
    padding: 1rem 0 0 0;
}

/* ── Mobile tab scrolling ── */
@media (max-width: 768px) {
    .rz-tabview-nav {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .rz-tabview-nav li {
        flex-shrink: 0;
    }

    .rz-tabview-nav-content {
        position: relative;
    }

    .rz-tabview-nav-content::after {
        content: "";
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0;
        width: 2rem;
        background: linear-gradient(to right, transparent, var(--rz-base-background-color));
        pointer-events: none;
    }

    .about-label {
        min-width: auto;
    }

    /* ── Mobile card layout for DataGrids ── */
    .mobile-card-grid .rz-datatable-thead {
        display: none;
    }

    .mobile-card-grid .rz-datatable-tbody > tr {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.25rem 0.75rem;
        padding: 0.75rem;
        border: 1px solid var(--rz-grid-cell-border);
        border-radius: 0.5rem;
        margin-bottom: 0.5rem;
    }

    .mobile-card-grid .rz-datatable-tbody > tr > td {
        display: block;
        border: none;
        padding: 0;
        width: auto;
        min-width: 0;
    }
}
