:root {
    --frig-primary: #8b1e24;
    --frig-primary-dark: #5e1115;
    --frig-accent: #1e293b;
    --frig-bg: #f1f5f9;
}

html, body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: var(--frig-bg);
    color: #0f172a;
    margin: 0;
    -webkit-tap-highlight-color: transparent;
}

/* Espacio inferior en celulares para que la barra de navegación fija no tape el contenido */
@media (max-width: 767.98px) {
    .main-content-wrapper {
        padding-bottom: 78px !important;
    }
}

.navbar-frigorifico {
    background: linear-gradient(90deg, #1e293b 0%, #7f1d1d 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

/* Barra inferior estilo App Móvil */
.bottom-nav-mobile {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: #0f172a;
    border-top: 2px solid #334155;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1030;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.2);
}

.bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    height: 100%;
    transition: all 0.15s;
}

.bottom-nav-item .nav-icon {
    font-size: 1.25rem;
    line-height: 1.1;
    margin-bottom: 2px;
}

.bottom-nav-item.active {
    color: #ffffff;
    background: rgba(220, 38, 38, 0.22);
    border-top: 3px solid #ef4444;
}

.card-industrial {
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
    background: #ffffff;
}

.input-fast {
    font-size: 1.2rem;
    font-weight: 700;
    border: 2px solid #94a3b8;
    border-radius: 10px;
    padding: 0.5rem 0.65rem;
    transition: all 0.12s ease-in-out;
}

.input-fast:focus {
    border-color: #dc2626;
    box-shadow: 0 0 0 0.22rem rgba(220, 38, 38, 0.22);
    background-color: #fffbeb;
}

.input-kilos {
    font-size: 1.65rem;
    font-weight: 800;
    color: #991b1b;
    text-align: center;
}

.input-garron {
    font-size: 1.55rem;
    font-weight: 800;
    color: #1e3a8a;
    text-align: center;
}

/* Botones táctiles cómodos para el pulgar en celular */
.chip-btn {
    border: 1.5px solid #cbd5e1;
    background: #f8fafc;
    color: #334155;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.42rem 0.78rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.1s;
    user-select: none;
}

.chip-btn:active {
    transform: scale(0.96);
}

.chip-btn.active {
    background: #991b1b;
    color: #ffffff;
    border-color: #7f1d1d;
    box-shadow: 0 2px 5px rgba(153, 27, 27, 0.3);
}

.btn-guardar-mobile {
    font-size: 1.15rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    letter-spacing: 0.3px;
}

/* Tarjeta de registro móvil */
.registro-mobile-card {
    border: 1px solid #cbd5e1;
    border-left: 5px solid #991b1b;
    border-radius: 10px;
    background: #ffffff;
    padding: 0.75rem;
    margin-bottom: 0.6rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

/* Vista previa estilo etiqueta térmica real de frigorífico */
.etiqueta-preview {
    background: #fffef9;
    border: 2px solid #1e293b;
    border-radius: 6px;
    font-family: 'Courier New', Courier, monospace;
    color: #111827;
    padding: 10px;
    box-shadow: 2px 4px 12px rgba(0, 0, 0, 0.08);
}

.etiqueta-header {
    background: #111827;
    color: #ffffff;
    font-family: Arial, sans-serif;
    font-weight: 800;
    text-align: center;
    padding: 4px 8px;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.etiqueta-grid-top {
    display: grid;
    grid-template-columns: 1.2fr 0.9fr 1.1fr;
    border: 1.5px solid #111827;
    margin-top: 6px;
    text-align: center;
}

.etiqueta-cell {
    border-right: 1.5px solid #111827;
    padding: 4px;
}

.etiqueta-cell:last-child {
    border-right: none;
}

.etiqueta-label {
    font-family: Arial, sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    border-bottom: 1px solid #111827;
    padding-bottom: 2px;
}

.etiqueta-val {
    font-family: 'Times New Roman', Times, serif;
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.15;
    padding-top: 3px;
}

.etiqueta-val-kilos {
    font-size: 1.65rem;
}

.kbd-hint {
    background: #1e293b;
    color: #f8fafc;
    border-radius: 4px;
    padding: 1px 6px;
    font-size: 0.7rem;
    font-family: monospace;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1050;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}
