/*
|--------------------------------------------------------------------------
| DIGIFLEXO ERP PRO
| Engine: Rótulo
| Arquivo: engines/rotulo/css/inputs.css
| Versão: 6.2.2.rotulo.inputs.6
|--------------------------------------------------------------------------
| Controla SOMENTE:
| - Material
| - Largura
| - Altura
| - Quantidade
| - Validação dos inputs
|
| NÃO controla:
| - Fundo azul geral
| - Valor do produto
| - Frete
| - Total geral
| - Botões
|--------------------------------------------------------------------------
*/

.dfx-erp-product-inputs {
    width: 100%;
    margin: 0;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    box-sizing: border-box;
}

/*
|--------------------------------------------------------------------------
| SEÇÕES INTERNAS
|--------------------------------------------------------------------------
*/

.dfx-erp-input-section {
    width: 100%;
    margin: 0 0 22px;
    padding: 0;
    background: transparent;
    border: none;
    box-sizing: border-box;
}

.dfx-erp-input-section:last-child {
    margin-bottom: 0;
}

/*
|--------------------------------------------------------------------------
| TÍTULOS DAS SEÇÕES
|--------------------------------------------------------------------------
*/

.dfx-erp-section-title {
    display: block;
    margin: 0 0 12px;
    padding: 0;

    color: #d60000;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
}

/*
|--------------------------------------------------------------------------
| MATERIAL
|--------------------------------------------------------------------------
*/

.dfx-erp-material-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;

    width: 100%;
    margin: 0;
}

.dfx-erp-material-option {
    position: relative;
    display: block;
    margin: 0;
    cursor: pointer;
}

.dfx-erp-material-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.dfx-erp-material-card {
    display: flex;
    align-items: center;
    gap: 10px;

    min-height: 52px;
    padding: 10px 14px;

    background: #ffffff;
    border: 1px solid #cfd8e3;
    border-radius: 9px;

    box-sizing: border-box;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.dfx-erp-material-option:hover .dfx-erp-material-card,
.dfx-erp-material-option:has(input[type="radio"]:checked) .dfx-erp-material-card {
    border-color: #0d6efd;
    box-shadow: 0 0 0 2px rgba(13, 110, 253, .15);
}

.dfx-erp-material-check {
    display: none;
    align-items: center;
    justify-content: center;

    width: 22px;
    height: 22px;
    flex: 0 0 22px;

    background: #0d6efd;
    border-radius: 50%;

    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
}

.dfx-erp-material-option:has(input[type="radio"]:checked) .dfx-erp-material-check {
    display: inline-flex;
}

.dfx-erp-material-content {
    display: block;
    min-width: 0;
}

.dfx-erp-material-name {
    display: block;

    color: #111827;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
}

.dfx-erp-material-description {
    display: block;
    margin-top: 2px;

    color: #4b5563;
    font-size: 10px;
    font-weight: 500;
    line-height: 1.1;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/*
|--------------------------------------------------------------------------
| MEDIDAS
|--------------------------------------------------------------------------
*/

.dfx-erp-input-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;

    width: 100%;
    margin: 0 0 16px;
}

.dfx-erp-input-group {
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    box-sizing: border-box;
}

.dfx-erp-quantity-group {
    width: 100%;
}

/*
|--------------------------------------------------------------------------
| LABELS
|--------------------------------------------------------------------------
*/

.dfx-erp-input-label {
    display: block;
    margin: 0 0 7px;

    color: #111827;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.25;
}

/*
|--------------------------------------------------------------------------
| CAMPOS
|--------------------------------------------------------------------------
*/

.dfx-erp-input {
    width: 100%;
    height: 42px;
    padding: 0 14px;

    background: #ffffff;
    border: 1px solid #cfd8e3;
    border-radius: 8px;

    color: #111827;
    font-size: 14px;
    font-weight: 500;

    box-sizing: border-box;
    outline: none;

    transition: border-color .2s ease, box-shadow .2s ease;
}

.dfx-erp-input::placeholder {
    color: #64748b;
    font-weight: 400;
}

.dfx-erp-input:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, .13);
}

/*
|--------------------------------------------------------------------------
| VALIDAÇÃO DOS INPUTS
|--------------------------------------------------------------------------
*/

.dfx-erp-input-validation {
    width: 100%;
    margin-top: 10px;

    color: #64748b;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
}

.dfx-erp-input-validation.info {
    color: #475569;
}

.dfx-erp-input-validation.error {
    color: #dc2626;
}

.dfx-erp-input-validation.success {
    color: #15803d;
}

.dfx-erp-input-validation:empty {
    display: none;
}

/*
|--------------------------------------------------------------------------
| MENSAGEM VAZIA
|--------------------------------------------------------------------------
*/

.dfx-erp-empty-message {
    margin: 0;

    color: #6b7280;
    font-size: 13px;
    font-weight: 600;
}

/*
|--------------------------------------------------------------------------
| VALIDAÇÃO ABAIXO DA QUANTIDADE
|--------------------------------------------------------------------------
*/

.dfx-erp-quantity-group {
    width: 100%;
    grid-column: 1 / -1;
}

#box-erro.dfx-erp-input-validation {
    display: block;
    width: 100%;
    grid-column: 1 / -1;
    margin-top: 4px;
    margin-bottom: 0;
    clear: both;

    color: #dc2626;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.25;
}

/*
|--------------------------------------------------------------------------
| RESPONSIVO
|--------------------------------------------------------------------------
*/

@media (max-width: 768px) {

    .dfx-erp-material-options,
    .dfx-erp-input-row {
        grid-template-columns: 1fr;
    }

    .dfx-erp-section-title {
        font-size: 13px;
    }

    .dfx-erp-material-card {
        min-height: 50px;
    }
}
