/* ============================================================================
   V15.0 :: tanda-v150-componentes
   - SelectorUnidad reutilizable (tabs unidad/100g/1kg/custom)
   - Refuerzo del FAB pérdida (ya existía CSS, mejoramos visual)
   ============================================================================ */

/* ════════════════════ SelectorUnidad ════════════════════ */
.selu-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 8px 0;
}
.selu-wrap.selu-compact {
    gap: 4px;
    margin: 4px 0;
}
.selu-label {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.selu-tabs {
    display: inline-flex;
    background: rgba(15,23,42,0.65);
    border: 1.5px solid rgba(99,102,241,0.30);
    border-radius: 10px;
    padding: 3px;
    gap: 2px;
    align-self: flex-start;
}
.selu-tab {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 12px;
    background: transparent;
    border: none;
    color: #94a3b8;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}
.selu-tab:hover { background: rgba(99,102,241,0.15); color: #e2e8f0; }
.selu-tab-on {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: white !important;
    box-shadow: 0 2px 8px rgba(99,102,241,0.40);
}
.selu-tab-ico { font-size: 13px; line-height: 1; }
.selu-tab-lbl { font-size: 11px; }
.selu-compact .selu-tab { padding: 5px 9px; }
.selu-compact .selu-tab-lbl { font-size: 10px; }

.selu-custom-input {
    margin-top: 6px;
    padding: 8px 12px;
    background: rgba(15,23,42,0.85);
    border: 1.5px solid rgba(99,102,241,0.40);
    color: white;
    border-radius: 8px;
    font-size: 13px;
    width: 100%;
    max-width: 220px;
    outline: none;
}
.selu-custom-input:focus {
    border-color: rgba(99,102,241,0.80);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.20);
}

/* ════════════════════ FAB Pérdida (refuerzo del existente) ════════════════════ */
/* Refuerza el .pos-perdida-fab que ya existe en v140-componentes.css.
   Ahora también muestra texto "PÉRDIDA ACTIVA" cuando .activa, no solo emoji. */
.pos-perdida-fab {
    z-index: 9981 !important;
}
.pos-perdida-fab.activa {
    padding-right: 18px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.4px;
}
