.brand-mark { font-size: 1.2rem; }
.gana { color: #1e8c4d; font-weight: 800; }
.pierde { color: #d63c3c; font-weight: 800; }
.monto-grande { font-size: 2rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.compras-rapidas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.compras-rapidas .btn { padding: 14px 4px; font-size: 1rem; }
.fila-yo td { background: rgba(255, 196, 0, .16) !important; }
.sidebar-empresa .btn-pf:hover { background: #fff; color: #1f1f22; }
.table td, .table th { vertical-align: middle; font-variant-numeric: tabular-nums; }
.table th { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: #7a7a75; white-space: nowrap; }
.lista { list-style: none; margin: 0; padding: 0; }
.lista li { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #efefec; }
.lista li:last-child { border-bottom: 0; }
.anulada { text-decoration: line-through; opacity: .5; }
.auth-solo { width: min(400px, 100%); background: #fff; border-radius: 16px; padding: 32px 28px; }
.auth-solo .brand { justify-content: center; margin-bottom: 20px; font-size: 1.15rem; }
@media (max-width: 575.98px) { .form-control, .form-select { font-size: 16px; } }
/* Sin la cabecera fija de ADA. */
:root { --mainbar-h: 0px !important; }

/* ── Celular (la vista principal) ─────────────────────── */
.solo-movil { display: none; }
@media (max-width: 991.98px) {
    body { font-size: 1rem; }
    .sidebar { display: none; }
    .shell { margin-left: 0; }
    .topbar { top: 0; padding: calc(10px + env(safe-area-inset-top)) 14px 10px; min-height: 0; gap: 12px; }
    .topbar-title h1 { font-size: 1.15rem; }
    .main { padding: 12px 12px calc(96px + env(safe-area-inset-bottom)); }
    .card-pf { padding: 16px; border-radius: 14px; }
    .solo-movil { display: inline; }

    .btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
    .btn-sm { min-height: 40px; padding-inline: 14px; }
    .form-control, .form-select { min-height: 48px; font-size: 16px; }
    textarea.form-control { min-height: 110px; }
    .form-check-input { width: 1.4em; height: 1.4em; margin-right: 6px; }
    .compras-rapidas .btn { min-height: 62px; font-size: 1.05rem; }
    .monto-grande { font-size: 2.6rem; }

    .kpis { grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
    .kpi .kpi-icon { display: none; }
    .kpi .kpi-valor { font-size: 1.3rem; }

    /* Tablas como tarjetas: cada celda lleva su título en data-l. */
    .cards-movil, .cards-movil tbody, .cards-movil td { display: block; width: auto; }
    .cards-movil thead { display: none; }
    .cards-movil tr { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 10px; padding: 14px 4px; border-bottom: 1px solid #e6e6e3; }
    .cards-movil tr:last-child { border-bottom: 0; }
    .cards-movil td { padding: 0; border: 0; text-align: left !important; background: none !important; box-shadow: none !important; }
    .cards-movil td[data-l]::before { content: attr(data-l); display: block; font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #7a7a75; }
    .cards-movil td.titulo, .cards-movil td.ancho { grid-column: 1 / -1; }
    .cards-movil td.titulo { font-size: 1.05rem; }
    .cards-movil tr.fila-yo { background: rgba(255, 196, 0, .16); border-radius: 10px; padding-inline: 10px; }
    .cards-movil td.acciones-movil { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }

    .tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1050; display: flex !important; background: #1f1f22; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
    .tabbar > a, .tabbar summary { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 52px; color: #bdbdb8; text-decoration: none; font-size: .68rem; font-weight: 700; border-radius: 10px; }
    .tabbar i { font-size: 1.2rem; }
    .tabbar .activo { color: #FFC400; }
    .tabbar > a.mesa.en-juego { background: #FFC400; color: #1f1f22; }
    .tabbar > a.mesa.en-juego.activo { box-shadow: 0 0 0 2px #fff inset; }
    .tabbar .mas { flex: 1; display: flex; }
    .tabbar summary { list-style: none; cursor: pointer; width: 100%; }
    .tabbar summary::-webkit-details-marker { display: none; }
    .mas-hoja { position: fixed; left: 8px; right: 8px; bottom: calc(72px + env(safe-area-inset-bottom)); background: #1f1f22; color: #fff; border-radius: 16px; padding: 14px; box-shadow: 0 -10px 40px rgba(0,0,0,.35); }
    .mas-hoja a { display: flex; align-items: center; gap: 14px; padding: 14px 8px; color: #fff; text-decoration: none; font-weight: 700; border-bottom: 1px solid #35353a; }
    .mas-hoja a i { width: 24px; text-align: center; }
    .mas-quien { font-size: .8rem; color: #a5a5a0; padding: 0 8px 6px; }
}

/* Listas tocables (tabla y fechas en el celular). */
.lista a.fila { display: flex; flex: 1; gap: 12px; align-items: center; color: inherit; text-decoration: none; min-height: 48px; }
.lista .detalle { font-size: .8rem; color: #7a7a75; }
.lista .puesto { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #eeeeea; font-weight: 800; }
.lista li.podio .puesto { background: #FFC400; }
.lista li.fila-yo { background: rgba(255, 196, 0, .16); border-radius: 10px; padding-inline: 8px; }