﻿/* ==========================================================
   ERP CATALOG MODAL
   ========================================================== */


/* ==========================================================
   MODAL
   ========================================================== */

.modal-catalogo {
    max-width: 950px;
}

.erp-catalog-modal {
    background: #f8fafc;
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(15,23,42,.18);
}

/* ==========================================================
   HEADER
   ========================================================== */

.erp-modal-header {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 14px 18px;
}

    .erp-modal-header .modal-title {
        font-size: 1.4rem;
        font-weight: 700;
        color: #1e293b;
        margin-bottom: 2px;
    }

.erp-modal-subtitle {
    color: #64748b;
    font-size: .8rem;
}

/* BOTON CERRAR */

.erp-modal-header .btn-close {
    background-size: 12px;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 2px solid #bfdbfe;
    opacity: 1;
}

    .erp-modal-header .btn-close:hover {
        background-color: #eff6ff;
    }

/* ==========================================================
   BODY
   ========================================================== */

.modal-body {
    background: #f8fafc;
    padding: 24px 28px;
}

/* ==========================================================
   CARD INTERNA
   ========================================================== */

.catalog-section {
   /* background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 14px;
    box-shadow: 0 2px 6px rgba(15,23,42,.04);*/
}

/* ==========================================================
   TITULO SECCION
   ========================================================== */

.catalog-section-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #2563eb;
    margin-bottom: 20px;
}

/* ==========================================================
   LABELS
   ========================================================== */

.catalog-section label {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .7px;
    color: #64748b;
    margin-bottom: 2px;
    font-size: 10px;
}

/* ==========================================================
   INPUTS
   ========================================================== */

.catalog-section .form-control {
 
    border: none;
    border-radius: 12px;
    background: #ffffff;
    color: #334155;
   
    padding-left: 14px;
    padding-right: 14px;
    box-shadow: inset 0 0 0 1px #cbd5e1;
    transition: all .20s ease;
    height: 32px;
    font-size: 13px;
}

    /* HOVER */

    .catalog-section .form-control:hover {
        box-shadow: inset 0 0 0 1px #94a3b8;
    }

    /* FOCUS */

    .catalog-section .form-control:focus {
        border: none;
        background: #fff;
        box-shadow: inset 0 0 0 2px #2563eb, 0 0 0 4px rgba(37,99,235,.10);
    }

    /* DISABLED */

    .catalog-section .form-control:disabled {
        background: #f1f5f9;
        color: #334155;
        font-weight: 600;
        opacity: 1;
        box-shadow: inset 0 0 0 1px #dbe3ec;
    }

/* ==========================================================
   ID SOLO LECTURA
   ========================================================== */

.catalog-id {
    height: 44px;
    border-radius: 12px;
    background: #f1f5f9;
    border: 1px solid #dbe3ec;
    display: flex;
    align-items: center;
    padding-left: 14px;
    font-weight: 700;
    color: #334155;
}

/* ==========================================================
   CHECKBOX
   ========================================================== */

.form-check {
    margin-top: 2px;
}

.form-check-input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.form-check-label {
    font-size: 14px;
    color: #334155;
    font-weight: 500;
    margin-left: 4px;
}

/* ==========================================================
   FOOTER
   ========================================================== */

.erp-modal-footer {
    padding: 12px 18px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    border-top: 1px solid #e2e8f0;
    background: #fff;
}

/* ==========================================================
   BOTON CANCELAR
   ========================================================== */

.btn-catalog-cancel {
    height: 38px;
    border: 1px solid #dbe3ec;
    background: #fff;
    color: #475569;
    border-radius: 10px;
    padding: 0 18px;
    font-weight: 500;
}

    .btn-catalog-cancel:hover {
        background: #f8fafc;
        border-color: #cbd5e1;
    }
/* ==========================================================
   BOTON GUARDAR
   ========================================================== */

/* ==========================
   BOTON GUARDAR
   ========================== */

.btn-catalog-save {
    min-width: 180px;
    height: 38px;
    border: none;
    border-radius: 10px;
    background: linear-gradient( 135deg, #2563eb, #1d4ed8 );
    color: #fff !important;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 6px 18px rgba(37,99,235,.25);
    transition: all .2s ease;
}

    .btn-catalog-save:hover,
    .btn-catalog-save:focus,
    .btn-catalog-save:active {
        color: #fff !important;
        background: linear-gradient( 135deg, #1d4ed8, #1e40af );
        transform: translateY(-1px);
        box-shadow: 0 10px 24px rgba(37,99,235,.35);
    }

    .btn-catalog-save i {
        color: inherit;
    }
/* ==========================================================
   SCROLL
   ========================================================== */

.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 20px;
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 768px) {
    .modal-catalogo {
        max-width: 98%;
    }

    .erp-modal-header {
        padding: 18px;
    }

    .modal-body {
        padding: 18px;
    }

    .erp-modal-footer {
        padding: 18px;
        flex-direction: column;
    }

    .btn-catalog-save,
    .btn-catalog-cancel {
        width: 100%;
    }
}

.section-divider {
    border-top: 1px solid #e2e8f0;
    margin-bottom: 15px;
}

.erp-modal-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient( 135deg, #2563eb, #1d4ed8 );
    color: white;
    font-size: 22px;
    box-shadow: 0 8px 20px rgba(37,99,235,.25);
}