/* ============================================
   NRM Module - Estilos específicos v1.1
   ============================================ */

/* Input readonly específico */
input[readonly] {
    color: #0d6efd;
    font-weight: bold;
    background-color: #e9ecef;
    cursor: default;
    pointer-events: none;
}

/* Contenedores de formato dinámico NRM */
.formato-dinamico-container {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    margin-top: 10px;
    transition: max-height 0.3s ease, padding 0.3s ease, opacity 0.2s ease;
    overflow: hidden;
    max-height: 0;
    padding: 0 1.25rem;
    opacity: 0;
}

.formato-dinamico-container.expanded {
    max-height: 2000px;
    padding: 1.25rem;
    opacity: 1;
}

.formato-dinamico-container.dispensador {
    border-left-color: #28a745;
    background: linear-gradient(to bottom, #f6fff6 0%, #e8f5e9 100%);
}

.formato-dinamico-container.compresor {
    border-left-color: #ff9800;
    background: linear-gradient(to bottom, #fffbf5 0%, #fff8e1 100%);
}

/* Badges de dispersión */
.badge-dispersion {
    font-size: 0.75rem;
    padding: 0.4rem 0.6rem;
    border-radius: 2rem;
    font-weight: 600;
}

/* Tabla de fugas */
.fugas-table {
    width: 100%;
    border-collapse: collapse;
}

.fugas-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    font-size: 0.8rem;
    text-align: center;
    padding: 8px 4px;
    border: 1px solid #dee2e6;
}

.fugas-table td {
    border: 1px solid #dee2e6;
    padding: 6px 4px;
    vertical-align: middle;
}

.fugas-table .radio-group {
    display: flex;
    justify-content: center;
    gap: 10px;
}

/* Toggle Switch específico NRM */
.toggle-switch-elegante {
    width: 60px;
    height: 30px;
    background: #f0f0f0;
    border-radius: 30px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    margin: 0 auto;
}

.toggle-switch-elegante .toggle-knob {
    width: 36px;
    height: 36px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: -4px;
    left: -3px;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #28a745;
}

.toggle-switch-elegante.active {
    background: linear-gradient(135deg, #28a745, #218838);
}

.toggle-switch-elegante.active .toggle-knob {
    left: 27px;
}

.dispensador-row .toggle-switch-elegante.active {
    background: linear-gradient(135deg, #28a745, #218838);
}

.compresor-row .toggle-switch-elegante.active {
    background: linear-gradient(135deg, #ff9800, #f57c00);
}