/* Fase 9.3 — CSS verbatim de los bloques de estilo de Pages/Ventas/GuiaRemision/GuiaV2/SeriesCaptureModal.razor. Igual que hoy, es global mientras el componente está en pantalla:
   se enlaza con <link> donde estaba el bloque. Cambios: @@ → @ y capas D-51. */
.scm-overlay {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(4, 44, 83, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-modal);
}

.scm-modal {
    position: relative;
    width: 660px;
    max-width: 94vw;
    max-height: 90vh;
    overflow-y: auto;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(4, 44, 83, 0.18);
    z-index: 1;
}

.scm-header {
    background: #E6F1FB;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #B5D4F4;
}

.scm-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #0C447C;
}

.scm-subtitle {
    margin: 2px 0 0;
    font-size: 13px;
    color: #185FA5;
}

.scm-close {
    font-size: 20px;
    color: #185FA5;
    cursor: pointer;
}

.scm-cabecera {
    padding: 16px 24px 4px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.scm-label {
    display: block;
    font-size: 12px;
    color: #6b7280;
}

.scm-value {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #1f2937;
}

.scm-help {
    padding: 8px 24px 0;
    margin: 0;
    font-size: 13px;
    color: #4b5563;
}

.scm-linea {
    margin: 12px 24px 0;
    border: 1px solid #dbe6f4;
    border-radius: 8px;
    overflow: hidden;
}

.scm-linea-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    cursor: pointer;
}

.scm-linea-titulo {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: #1f2937;
}

.scm-linea-sub {
    margin: 2px 0 0;
    font-size: 12px;
    color: #6b7280;
}

.scm-linea-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.scm-badge {
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
}

    .scm-badge.ok {
        background: #EAF3DE;
        color: #3B6D11;
    }

    .scm-badge.warn {
        background: #FAEEDA;
        color: #854F0B;
    }

.scm-linea-body {
    padding: 0 14px 14px;
    border-top: 1px solid #eef3fa;
}

.scm-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 10px 0;
}

.scm-vacio {
    font-size: 12px;
    color: #9ca3af;
}

.scm-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 20px;
}

    .scm-chip.pendiente {
        background: #E6F1FB;
        color: #0C447C;
    }

    .scm-chip.valida {
        background: #EAF3DE;
        color: #3B6D11;
    }

    .scm-chip.invalida {
        background: #FCEBEB;
        color: #A32D2D;
    }

    .scm-chip.para-eliminar {
        background: #f3f4f6;
        color: #6b7280;
        border: 1px dashed #9ca3af;
    }

    .scm-chip i {
        cursor: pointer;
    }

.scm-btn-eliminar-todas {
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid #FCEBEB;
    background: #ffffff;
    color: #A32D2D;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

    .scm-btn-eliminar-todas:hover {
        background: #FCEBEB;
    }

.scm-row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

    .scm-row input, .scm-row textarea {
        flex: 1;
        font-size: 13px;
        padding: 8px;
        border-radius: 6px;
        border: 1px solid #d1d9e6;
    }

    .scm-row textarea {
        min-height: 44px;
        resize: vertical;
    }

    .scm-row button {
        font-size: 13px;
        padding: 6px 14px;
        border-radius: 6px;
        border: 1px solid #B5D4F4;
        background: #ffffff;
        color: #185FA5;
        cursor: pointer;
    }

        .scm-row button:hover {
            background: #E6F1FB;
        }

.scm-validacion {
    margin: 12px 24px 0;
    padding: 10px 12px;
    border-radius: 8px;
    background: #f7f9fc;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.scm-val-ok {
    font-size: 13px;
    color: #3B6D11;
}

.scm-val-pendiente {
    font-size: 13px;
    color: #6b7280;
}

.scm-footer {
    margin-top: 16px;
    padding: 16px 24px 20px;
    border-top: 1px solid #eef3fa;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

    .scm-footer button {
        font-size: 13px;
        padding: 8px 18px;
        border-radius: 6px;
        border: 1px solid #B5D4F4;
        background: #ffffff;
        color: #185FA5;
        cursor: pointer;
    }

        .scm-footer button.scm-primary {
            background: #378ADD;
            border-color: #378ADD;
            color: #ffffff;
        }

        .scm-footer button:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }
.scm-validacion-contenido {
    flex: 1;
    min-width: 0;
}

.scm-validacion-error {
    width: 100%;
}

.scm-validacion-titulo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #a32d2d;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 6px;
}

    .scm-validacion-titulo i {
        font-size: 18px;
    }

.scm-validacion-resumen {
    color: #6b7280;
    font-size: 12px;
    margin-bottom: 10px;
}

.scm-duplicados-lista {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 220px;
    overflow-y: auto;
}

.scm-duplicado-producto {
    border: 1px solid #f1caca;
    background: #fffafa;
    border-radius: 8px;
    overflow: hidden;
}

.scm-duplicado-producto-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    background: #fcebeb;
}

.scm-duplicado-producto-nombre {
    font-size: 13px;
    font-weight: 600;
    color: #7f1d1d;
}

.scm-duplicado-producto-codigo {
    margin-top: 2px;
    font-size: 11px;
    color: #991b1b;
}

.scm-duplicado-count {
    flex-shrink: 0;
    padding: 3px 8px;
    border-radius: 12px;
    background: #a32d2d;
    color: white;
    font-size: 11px;
    font-weight: 600;
}

.scm-duplicado-series {
    padding: 6px 12px;
}

.scm-duplicado-serie {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 0;
    border-bottom: 1px solid #f3dada;
}

    .scm-duplicado-serie:last-child {
        border-bottom: none;
    }

    .scm-duplicado-serie > i {
        color: #a32d2d;
        font-size: 16px;
    }

.scm-duplicado-serie-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

    .scm-duplicado-serie-info strong {
        color: #374151;
        font-size: 12px;
    }

    .scm-duplicado-serie-info span {
        color: #9ca3af;
        font-size: 11px;
    }

.scm-validacion-ayuda {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid #f1d0d0;
    color: #854f0b;
    font-size: 11px;
}

.scm-btn-validar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 140px;
    height: 38px;
    padding: 0 16px;
    border: 1px solid #378ADD;
    border-radius: 7px;
    background: #378ADD;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

    .scm-btn-validar:hover:not(:disabled) {
        background: #2f78c4;
        box-shadow: 0 3px 8px rgba(55, 138, 221, 0.25);
    }

    .scm-btn-validar:active:not(:disabled) {
        transform: translateY(1px);
    }

    .scm-btn-validar:disabled {
        opacity: 0.65;
        cursor: not-allowed;
    }

    .scm-btn-validar i {
        font-size: 17px;
    }

.scm-spin {
    animation: scm-spin 0.9s linear infinite;
}

@keyframes scm-spin {
    from

{
    transform: rotate(0deg);
}

to {
    transform: rotate(360deg);
}

}
