﻿/* ===== Totals row ===== */
.totals-bar {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: 10px;
    padding: 10px;
    background: var(--brand-50);
    border-top: 1px solid var(--brand);
    border-bottom: 1px solid var(--brand);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

    .totals-bar::-webkit-scrollbar {
        height: 6px;
    }

    .totals-bar::-webkit-scrollbar-thumb {
        border-radius: 8px;
        background: rgba(0,0,0,.15);
    }

.total-item {
    display: grid;
    justify-items: center;
    align-content: center;
    padding: 10px;
    border-radius: 12px;
    background: #fff;
    border: 1px dashed var(--brand-border);
    transition: transform .15s ease, box-shadow .15s ease;
}

    .total-item:hover {
        transform: translateY(-2px);
    }

.total-label {
    font: 700 12px/1 system-ui, Arial;
    color: var(--brand-ink);
    text-transform: uppercase;
    letter-spacing: .2px;
}

.total-value {
    font: 800 22px/1.1 system-ui, Arial;
    color: #102a43;
    margin-top: 4px;
}

/* Variants */
.totals--solid {
    background: #fff;
    border-top: 1px solid var(--brand);
    border-bottom: 1px solid var(--brand);
}

    .totals--solid .total-item {
        background: linear-gradient(180deg, var(--brand) 0%, var(--brand-600) 100%);
        border: none;
        color: #fff;
        box-shadow: 0 6px 14px rgba(0,191,255,.25);
    }

    .totals--solid .total-label {
        color: #eaf8ff;
        opacity: .9;
    }

    .totals--solid .total-value {
        color: #fff;
        text-shadow: 0 1px 0 rgba(0,0,0,.15);
    }

.totals--outline .total-item {
    background: #fff;
    border: 1px dashed rgba(0,191,255,.55);
}

.totals--outline .total-label {
    color: var(--brand-ink);
}

.totals--outline .total-value {
    color: #102a43;
}

.totals--glass {
    background: linear-gradient(180deg, rgba(0,191,255,.08), rgba(0,191,255,.04));
    border-top: 1px solid rgba(0,191,255,.25);
    border-bottom: 1px solid rgba(0,191,255,.25);
}

    .totals--glass .total-item {
        background: rgba(255,255,255,.6);
        border: 1px solid rgba(255,255,255,.7);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
        box-shadow: 0 4px 16px rgba(0,0,0,.08);
    }

.totals--neo {
    background: #f7fbff;
    border-color: transparent;
}

    .totals--neo .total-item {
        background: #f7fbff;
        border: none;
        box-shadow: 6px 6px 14px rgba(0,0,0,.08), -6px -6px 14px #ffffff;
    }

.totals--pill .total-item {
    background: #fff;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 999px;
    padding: 10px 16px;
}

.totals--pill .total-value {
    color: var(--brand-ink);
    background: var(--brand-100);
    border-radius: 999px;
    padding: 4px 10px;
    margin-top: 6px;
}

.totals--split .total-item {
    background: #fff;
    border: 1px solid rgba(0,0,0,.08);
    position: relative;
    padding-left: 14px;
}

    .totals--split .total-item::before {
        content: "";
        position: absolute;
        left: 0;
        top: 8px;
        bottom: 8px;
        width: 6px;
        background: linear-gradient(180deg, var(--brand), var(--brand-600));
        border-radius: 6px;
    }

/* Mobile trims for totals */
@media (max-width:640px) {
    .total-item {
        padding: 8px;
    }

    .total-value {
        font-size: 18px;
    }

    .total-label {
        font-size: 11px;
    }
}

/* === Migrated from css.css/Site.css (auto-merged) === */

/* ===== Totals row ===== */
.totals-bar {
display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: 10px;
    padding: 10px;
    background: var(--brand-50);
    border-top: 1px solid var(--brand);
    border-bottom: 1px solid var(--brand);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Solid variant (apply .totals--solid to .totals-bar) */
.totals--solid {
background: #fff;
    border-top: 1px solid var(--brand);
    border-bottom: 1px solid var(--brand);
}

/* Optional alternate card styles (kept once) */
.totals--outline .total-item {
background: #fff;
    border: 1px dashed rgba(0,191,255,.55);
}
