/* Mobile-first: la mayoría de los estilos base ya sirven para celular sin overrides */

:root {
    --altura-nav-inferior: 64px;
}

body {
    background-color: #f4f6f9;
    padding-bottom: env(safe-area-inset-bottom, 0);
}

main {
    min-height: calc(100vh - 56px);
}

/* Botones e inputs grandes, cómodos para tocar con el dedo */
.btn, .form-control, .form-select {
    min-height: 44px;
}

.btn-sm {
    min-height: 34px;
}

textarea.form-control {
    min-height: 110px;
}

/* Tarjeta de ticket (listado en mobile) */
.tarjeta-ticket {
    border: 1px solid #dee2e6;
    border-radius: 10px;
    background: #fff;
    padding: 14px;
    margin-bottom: 12px;
    text-decoration: none;
    color: inherit;
    display: block;
    box-shadow: 0 1px 2px rgba(0,0,0,.04);
}

.tarjeta-ticket:hover {
    border-color: #0d6efd;
}

.tarjeta-ticket .codigo {
    font-family: monospace;
    font-weight: 600;
    color: #0d6efd;
}

.dashboard-tile {
    border-radius: 12px;
    padding: 16px;
    color: #fff;
    min-height: 90px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.dashboard-tile .numero {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
}

.dashboard-tile .etiqueta {
    font-size: .8rem;
    opacity: .9;
}

/* Navegación inferior fija estilo app - navegación principal en mobile */
.navbar-inferior {
    height: var(--altura-nav-inferior);
    padding-bottom: env(safe-area-inset-bottom, 0);
    z-index: 1030;
}

.nav-inferior-link {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #6c757d;
    font-size: .7rem;
    gap: 2px;
}

.nav-inferior-link i {
    font-size: 1.25rem;
}

.nav-inferior-link.activo {
    color: #0d6efd;
    font-weight: 600;
}

.hilo-comentario {
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 10px;
}

.hilo-comentario.interno {
    background: #fff3cd;
    border: 1px dashed #ffc107;
}

.hilo-comentario.publico {
    background: #eef2ff;
}

/* En pantallas medianas/grandes ganamos espacio: dos columnas en filtros, tabla en vez de tarjetas */
@media (min-width: 992px) {
    .navbar-inferior {
        display: none !important;
    }
    main {
        padding-bottom: 1rem !important;
        margin-bottom: 0 !important;
    }
}

@media print {
    .navbar, .navbar-inferior, .no-imprimir {
        display: none !important;
    }
    body {
        background: #fff;
    }
}
