﻿/* ===== Back groud ===== */
.page-light {
    --bg: #f6f8fb;
    --card: #ffffff;
    --stroke: rgba(16,24,40,.08);
    --text: #0f172a;
    --muted: rgba(15,23,42,.62);
    --shadow: 0 12px 30px rgba(16,24,40,.10);
    --shadow2: 0 8px 18px rgba(16,24,40,.08);
    --r: 18px;
    background: radial-gradient(1200px 600px at 10% 0%, rgba(59,130,246,.14), transparent 60%), radial-gradient(900px 520px at 90% 0%, rgba(16,185,129,.12), transparent 55%), linear-gradient(180deg, var(--bg), #ffffff 60%);
    color: var(--text);
   /* padding: 1rem 0 2rem;*/
   /* min-height: 100vh;*/
}

.po-table {
    --po-row-h: 60px; /* set to your desired row height */
}

    /* Force tbody rows to the same height */
    .po-table table.rs-table tbody tr {
        height: var(--po-row-h);
    }

    /* Remove vertical padding that changes perceived row height */
    .po-table table.rs-table tbody td.rs-td {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        vertical-align: middle !important;
    }

        /* Your actual wrapper inside every TD is: <div class="flex ..."> */
        .po-table table.rs-table tbody td.rs-td > .flex {
            height: 100%;
            width: 100%;
            align-items: center !important; /* overrides items-start */
            min-width: 0;
        }

            /* KEY: make the first-level children INSIDE that flex wrapper expand */
            .po-table table.rs-table tbody td.rs-td > .flex > * {
                flex: 1 1 auto;
                width: 100%;
                min-width: 0;
            }

    /* Cards/wrappers should stretch too */
    .po-table .rs-cell-card {
        height: 100%;
        width: 100%;
        display: flex;
        align-items: center;
        padding: 0 !important;
        min-width: 0;
    }

    /* Make common inner wrappers fill the column */
    .po-table .customer-search,
    .po-table .dropdown,
    .po-table .input-group {
        width: 100%;
        min-width: 0;
    }

        /* Inputs/selects/buttons match row height (doesn't change widths) */
        .po-table .form-control,
        .po-table .form-select,
        .po-table .btn,
        .po-table .input-group .btn {
            height: var(--po-row-h);
        }

    /* Make this cell content fill the TD without changing widths */
    .po-table .qty-control {
        height: 100%;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: .5rem;
        min-width: 0;
    }

    /* Keep the number centered and stable */
    .po-table .qty-value {
        min-width: 2rem;
        text-align: center;
    }



.auth-card {
    max-width: 900px;
}

.auth-shell {
    min-height: calc(100vh - 8rem);
    padding-top: calc(20vh - 10vh);
    padding-bottom: calc(20vh - 10vh);
    display: flex;
    align-items: center;
    justify-content: center;
}

.center-viewport {
    display: flex;
    align-items: center; /* vertical center */
    justify-content: center; /* horizontal center */
    min-height: 90vh; /* keeps it tall on small screens */
}

.rs-cell-card {
    border-left: 4px solid var(--rs-accent, #0d6efd);
    transition: box-shadow .08s ease, transform .08s ease, background-color .08s ease;
}

    .rs-cell-card:hover {
        transform: translateY(-1px);
        box-shadow: 0 .25rem .75rem rgba(0,0,0,.06);
        background-color: #fbfcfe;
    }

.rs-selected {
    box-shadow: 0 0 0 .2rem rgba(13,110,253,.15);
}
/* ===== Session warning overlay + popup ===== */

/*.session-warning-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease-out;
}*/

.session-warning-overlay {
    /* keep fixed full-screen click-catcher */
    position: fixed;
    inset: 0;
    /* reduce the “darkness” */
    background: rgba(2, 6, 23, 0.45); /* was .85 */
    /* soften blur (or remove entirely) */
    backdrop-filter: blur(1.5px); /* was 4px */

    display: grid;
    place-items: center;
    z-index: 1000;
    animation: fadeIn 0.25s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.03);
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

.session-warning-popup {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(51, 65, 85, 0.9));
    border: 2px solid var(--warning);
    border-radius: var(--radius-lg);
    padding: 3rem;
    text-align: center;
    max-width: 440px;
    width: 90%;
    box-shadow: 0 0 80px rgba(245, 158, 11, 0.25);
    animation: pulse 2s ease-in-out infinite;
}

    .session-warning-popup .warning-icon {
        font-size: 5rem;
        margin-bottom: 1.25rem;
        animation: shake 0.5s ease-in-out infinite;
    }

    .session-warning-popup h2 {
        font-size: 1.75rem;
        font-weight: 700;
        margin-bottom: 0.75rem;
        color: var(--warning);
    }

    .session-warning-popup p {
        color: var(--text-muted);
        margin-bottom: 0.5rem;
        font-size: 1rem;
    }

.warning-timer {
    font-size: 4rem;
    font-weight: 800;
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
    color: var(--warning);
    margin: 1.25rem 0;
    text-shadow: 0 0 30px rgba(245, 158, 11, 0.5);
}

.warning-hint {
    font-size: 0.95rem;
    color: var(--accent);
    font-weight: 600;
    margin-top: 1.25rem;
}

.warning-progress {
    width: 100%;
    height: 8px;
    background: rgba(51, 65, 85, 0.6);
    border-radius: 4px;
    margin-top: 1.75rem;
    overflow: hidden;
}

.warning-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--danger), var(--warning));
    border-radius: 4px;
    transition: width 1s linear;
}

/* Button used in your markup */
.btn-stay-logged-in {
    margin-top: 1.75rem;
    background: linear-gradient(135deg, var(--success), #059669);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

    .btn-stay-logged-in:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
    }

/* Mobile tightening (matches your modified CSS intent) */
@media (max-width: 768px) {
    .session-warning-popup {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }

    .warning-timer {
        font-size: 3rem;
    }
}

@media (max-width: 480px) {
    .warning-timer {
        font-size: 2.5rem;
    }
}

/* Token timer block */
.token-timer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.1), rgba(99, 102, 241, 0.1));
    padding: 0.625rem 1rem;
    border-radius: var(--radius);
    border: 1px solid rgba(34, 211, 238, 0.2);
}

.timer-icon {
    font-size: 1rem;
    animation: pulse-soft 2s infinite;
}

@keyframes pulse-soft {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

.timer-text {
    font-family: 'Monaco', 'Consolas', 'SF Mono', monospace;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--accent);
    letter-spacing: 0.05em;
}
