/* =========================================================
   CONTROL DE IMPORTADORES / EMPRESAS RESTRINGIDAS
========================================================= */

.cef-module {

    --control-primary: #154289;
    --control-primary-hover: #10366f;

    --control-secondary: #0069a7;
    --control-blue-light: #3c96ca;

    --control-green: #3bae2a;

    --control-danger: #dc3545;
    --control-warning: #f0a500;

    --control-bg: #f4f7fa;
    --control-card: #ffffff;

    --control-text: #172033;
    --control-text-soft: #667085;
    --control-border: #dfe5ec;

    --control-radius: 12px;

    --control-shadow:
        0 4px 18px rgba(25, 45, 75, 0.07);

}


/* =========================================================
   ESTRUCTURA GENERAL
========================================================= */

.cef-module.content-wrapper {

    background: var(--control-bg);

}


.cef-module .content {

    padding-top: 20px;
    padding-bottom: 30px;

}


.cef-module .income-ui {

    width: 100%;
    max-width: 100%;

}


/* =========================================================
   ENCABEZADO
========================================================= */

.cef-module .income-header {

    margin-bottom: 10px;

}


.cef-module .income-header h1 {

    margin: 0;

    color: var(--control-text);

    font-size: 28px;
    font-weight: 700;

}


.cef-module .page-description {

    margin: 7px 0 14px;

    color: var(--control-text-soft);

    font-size: 18px;
    line-height: 1.5;

}



/* =========================================================
   TARJETAS GENERALES
========================================================= */

.cef-module .income-ui .card {

    margin-bottom: 22px;

    padding: 0 22px;

    border: 1px solid var(--control-border);

    border-radius: var(--control-radius);

    background: var(--control-card);

    box-shadow: var(--control-shadow);

}


/* =========================================================
   BARRA PRINCIPAL DE ACCIONES
========================================================= */

.cef-module .control-toolbar {

    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 22px;

    padding: 22px 24px;

    border: 1px solid var(--control-border);
    border-radius: var(--control-radius);

    background: var(--control-card);

    box-shadow: var(--control-shadow);

}


.cef-module .control-toolbar-info {

    min-width: 0;

}


.cef-module .control-toolbar-info h5 {

    margin: 0 0 5px;

    color: var(--control-text);

    font-size: 20px;
    font-weight: 700;

}


.cef-module .control-toolbar-info span {

    display: block;

    color: var(--control-text-soft);

    font-size: 16px;

}


.cef-module .control-toolbar-actions {

    display: flex;

    align-items: center;

    gap: 10px;

    flex-shrink: 0;

}


/* =========================================================
   BOTONES
========================================================= */

.cef-module .btn-control {

    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 8px;

    min-height: 40px;

    padding: 9px 16px;

    border: 1px solid transparent;
    border-radius: 7px;

    font-size: 13px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background-color .2s ease,
        color .2s ease,
        border-color .2s ease,
        transform .15s ease,
        box-shadow .2s ease;

}


.cef-module .btn-control i {

    font-size: 13px;

}


.cef-module .btn-control:hover {

    transform: translateY(-1px);

}


/* Botón principal */

.cef-module .btn-primary-control {

    color: #ffffff;

    background: var(--control-primary);
    border-color: var(--control-primary);

}


.cef-module .btn-primary-control:hover {

    color: #ffffff;

    background: var(--control-primary-hover);

    box-shadow:
        0 4px 10px rgba(21, 66, 137, .20);

}


/* Botón secundario */

.cef-module .btn-secondary-control {

    color: #ffffff;

    background: var(--control-secondary);
    border-color: var(--control-secondary);

}


.cef-module .btn-secondary-control:hover {

    color: #ffffff;

    background: #00598e;

}


/* Botón outline */

.cef-module .btn-outline-control {

    color: var(--control-primary);

    background: #ffffff;

    border-color: var(--control-primary);

}


.cef-module .btn-outline-control:hover {

    color: #ffffff;

    background: var(--control-primary);

}


/* Botón claro */

.cef-module .btn-light-control {

    color: #475467;

    background: #f5f7fa;

    border-color: #d8dee6;

}


.cef-module .btn-light-control:hover {

    color: var(--control-primary);

    background: #edf2f7;

    border-color: #cbd5e1;

}


/* =========================================================
   TARJETAS RESUMEN
========================================================= */

.cef-module .control-summary {

    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 16px;

    margin-bottom: 22px;

}


.cef-module .summary-item {

    position: relative;

    display: flex;

    align-items: center;

    gap: 15px;

    min-height: 95px;

    padding: 18px 20px;

    overflow: hidden;

    border: 1px solid var(--control-border);
    border-radius: var(--control-radius);

    background: var(--control-card);

    box-shadow: var(--control-shadow);

    transition:
        transform .2s ease,
        box-shadow .2s ease;

}


.cef-module .summary-item:hover {

    transform: translateY(-2px);

    box-shadow:
        0 7px 20px rgba(25, 45, 75, .10);

}


.cef-module .summary-item::before {

    position: absolute;

    top: 0;
    left: 0;

    width: 4px;
    height: 100%;

    content: "";

    background: var(--control-primary);

}


.cef-module .summary-item:nth-child(2)::before {

    background: var(--control-secondary);

}


.cef-module .summary-item:nth-child(3)::before {

    background: var(--control-green);

}


.cef-module .summary-icon {

    display: flex;

    align-items: center;
    justify-content: center;

    width: 48px;
    height: 48px;

    flex: 0 0 48px;

    border-radius: 10px;

    color: var(--control-primary);

    background: rgba(21, 66, 137, .08);

    font-size: 19px;

}


.cef-module .summary-item:nth-child(2) .summary-icon {

    color: var(--control-secondary);

    background: rgba(0, 105, 167, .08);

}


.cef-module .summary-item:nth-child(3) .summary-icon {

    color: var(--control-green);

    background: rgba(59, 174, 42, .08);

}


.cef-module .summary-item > div:last-child {

    display: flex;

    flex-direction: column;

    min-width: 0;

}


.cef-module .summary-item span {

    margin-bottom: 4px;

    color: var(--control-text-soft);

    font-size: 13px;
    font-weight: 500;

}


.cef-module .summary-item strong {

    color: var(--control-text);

    font-size: 25px;
    line-height: 1;
    font-weight: 700;

}


/* =========================================================
   FILTROS
========================================================= */

.cef-module .control-filters {

    padding: 22px !important;

}


.cef-module .card-section-title {

    display: flex;

    align-items: center;

    gap: 9px;

    margin-bottom: 20px;

    color: var(--control-text);

    font-size: 16px;
    font-weight: 700;

}


.cef-module .card-section-title i {

    color: var(--control-primary);

}


.cef-module .control-filter-grid {

    display: grid;

    grid-template-columns:
        minmax(260px, 1.6fr)
        minmax(190px, 1fr)
        minmax(160px, .7fr);

    gap: 16px;

}


.cef-module .control-filters .form-group {

    margin-bottom: 0;

}


.cef-module .control-filters label {

    display: block;

    margin-bottom: 7px;

    color: #344054;

    font-size: 12px;
    font-weight: 700;

}


/* =========================================================
   INPUTS Y SELECTS
========================================================= */

.cef-module .control-filters .form-control {

    width: 100%;
    height: 41px;

    padding: 8px 12px;

    border: 1px solid #d0d7e0;
    border-radius: 7px;

    background-color: #ffffff;

    color: var(--control-text);

    font-size: 13px;

    outline: none;

    box-shadow: none;

    transition:
        border-color .2s ease,
        box-shadow .2s ease;

}


.cef-module .control-filters .form-control:hover {

    border-color: #aeb9c6;

}


.cef-module .control-filters .form-control:focus {

    border-color: var(--control-blue-light);

    box-shadow:
        0 0 0 3px rgba(60, 150, 202, .12);

}


.cef-module .control-filters .form-control::placeholder {

    color: #98a2b3;

}


.cef-module .filter-actions {

    display: flex;

    align-items: center;

    gap: 10px;

    margin-top: 18px;

}


/* =========================================================
   TARJETA TABLA
========================================================= */

.cef-module .control-table-card {

    padding: 0 !important;

    overflow: hidden;

}


.cef-module .table-card-header {

    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 20px 22px;

    border-bottom: 1px solid var(--control-border);

}


.cef-module .table-card-header h5 {

    margin: 0 0 4px;

    color: var(--control-text);

    font-size: 16px;
    font-weight: 700;

}


.cef-module .table-card-header span {

    color: var(--control-text-soft);

    font-size: 16px;

}


/* =========================================================
   TABLA
========================================================= */

.cef-module .table-wrapper {

    width: 100%;

    overflow-x: auto;

}




.cef-module .table-control {

    width: 100%;

    margin: 0;

    border-collapse: separate;
    border-spacing: 0;

    background: #ffffff;

    font-size: 13px;

}


.cef-module .table-control thead th {

    padding: 13px 14px;

    border: none;

    background: var(--control-primary);

    color: #ffffff;

    font-size: 12px;
    font-weight: 600;

    text-align: left;
    white-space: nowrap;

}


.cef-module .table-control thead th:first-child {

    padding-left: 20px;

}


.cef-module .table-control thead th:last-child {

    padding-right: 20px;

}


.cef-module .table-control tbody td {

    padding: 14px;

    border-bottom: 1px solid #edf0f4;

    color: #344054;

    vertical-align: middle;

}


.cef-module .table-control tbody td:first-child {

    padding-left: 20px;

}


.cef-module .table-control tbody tr:last-child td {

    border-bottom: none;

}


.cef-module .table-control tbody tr {

    transition: background-color .15s ease;

}


.cef-module .table-control tbody tr:hover {

    background: #f7fafe;

}


.cef-module .text-center {

    text-align: center !important;

}


/* =========================================================
   BADGES PARA ESTADOS
========================================================= */

.cef-module .control-badge {

    display: inline-flex;

    align-items: center;

    gap: 6px;

    padding: 5px 9px;

    border-radius: 50px;

    font-size: 11px;
    font-weight: 700;

    white-space: nowrap;

}


.cef-module .control-badge::before {

    width: 6px;
    height: 6px;

    border-radius: 50%;

    content: "";

    background: currentColor;

}


.cef-module .control-badge-active {

    color: #238636;

    background: #edf9ef;

}


.cef-module .control-badge-inactive {

    color: #667085;

    background: #f1f3f5;

}


.cef-module .control-badge-dian {

    color: #b42318;

    background: #fef3f2;

}


.cef-module .control-badge-internal {

    color: #175cd3;

    background: #eff8ff;

}


/* =========================================================
   BOTONES DE ACCIONES DE LA TABLA
========================================================= */

.cef-module .table-action {

    display: inline-flex;

    align-items: center;
    justify-content: center;

    width: 32px;
    height: 32px;

    margin: 0 2px;

    padding: 0;

    border: 1px solid #dce3eb;
    border-radius: 7px;

    background: #ffffff;

    color: var(--control-primary);

    cursor: pointer;

    transition:
        background .2s ease,
        color .2s ease,
        border-color .2s ease,
        transform .15s ease;

}


.cef-module .table-action:hover {

    transform: translateY(-1px);

    color: #ffffff;

    background: var(--control-primary);

    border-color: var(--control-primary);

}


.cef-module .table-action-edit {

    color: var(--control-secondary);

}


.cef-module .table-action-edit:hover {

    background: var(--control-secondary);
    border-color: var(--control-secondary);

}


.cef-module .table-action-delete {

    color: var(--control-danger);

}


.cef-module .table-action-delete:hover {

    background: var(--control-danger);
    border-color: var(--control-danger);

}


/* =========================================================
   ESTADO VACÍO
========================================================= */

.cef-module .table-empty {

    padding: 45px 20px !important;

    text-align: center;

}


.cef-module .table-empty i {

    display: block;

    margin-bottom: 10px;

    color: #b5bfcb;

    font-size: 32px;

}


.cef-module .table-empty strong {

    display: block;

    margin-bottom: 4px;

    color: #475467;

    font-size: 14px;

}


.cef-module .table-empty span {

    color: #98a2b3;

    font-size: 12px;

}


/* =========================================================
   SCROLL TABLA
========================================================= */

.cef-module .table-wrapper::-webkit-scrollbar {

    height: 8px;

}


.cef-module .table-wrapper::-webkit-scrollbar-track {

    background: #f1f3f5;

}


.cef-module .table-wrapper::-webkit-scrollbar-thumb {

    border-radius: 10px;

    background: #bcc7d3;

}


.cef-module .table-wrapper::-webkit-scrollbar-thumb:hover {

    background: #9daab8;

}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1200px) {

    .cef-module .control-toolbar {

        align-items: flex-start;

        flex-direction: column;

    }


    .cef-module .control-toolbar-actions {

        width: 100%;

        flex-wrap: wrap;

    }


    .cef-module .control-filter-grid {

        grid-template-columns: repeat(2, minmax(0, 1fr));

    }

}


@media (max-width: 900px) {

    .cef-module .control-summary {

        grid-template-columns: 1fr;

    }


    .cef-module .control-filter-grid {

        grid-template-columns: 1fr;

    }

}


@media (max-width: 768px) {

    .cef-module .content {

        padding-left: 5px;
        padding-right: 5px;

    }


    .cef-module .income-header h1 {

        font-size: 23px;

    }


    .cef-module .control-toolbar {

        padding: 18px;

    }


    .cef-module .control-toolbar-actions {

        display: grid;

        grid-template-columns: 1fr;

    }


    .cef-module .control-toolbar-actions .btn-control {

        width: 100%;

    }


    .cef-module .filter-actions {

        display: grid;

        grid-template-columns: 1fr 1fr;

    }


    .cef-module .table-control {

        min-width: 950px;

    }

}


@media (max-width: 480px) {

    .cef-module .income-header h1 {

        font-size: 21px;

    }


    .cef-module .filter-actions {

        grid-template-columns: 1fr;

    }


    .cef-module .filter-actions .btn-control {

        width: 100%;

    }

}

/* =========================================================
   MODALES
========================================================= */

.cef-module.iu-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;

    display: none;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;

    padding: 24px;

    overflow: hidden;

    background: rgba(7, 25, 48, 0.68);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}


/* El JavaScript agrega esta clase */

.cef-module.iu-modal.activo {
    display: flex;
}


/* Caja principal */

.cef-module .iu-modal-box {
    position: relative;

    display: flex;
    flex-direction: column;

    width: 100%;
    max-width: 680px;
    max-height: calc(100vh - 48px);

    overflow: hidden;

    border: 1px solid rgba(223, 229, 236, 0.9);
    border-radius: 16px;

    background: #ffffff;

    box-shadow:
        0 24px 60px rgba(7, 25, 48, 0.28),
        0 8px 22px rgba(7, 25, 48, 0.14);

    animation: cefEmpresasModalEntrada 0.22s ease-out;
}


/* Modal grande */

.cef-module .iu-modal-box-xl {
    max-width: 880px;
}


/* Animación de entrada */

@keyframes cefEmpresasModalEntrada {

    from {
        opacity: 0;
        transform: translateY(18px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

}


/* =========================================================
   ENCABEZADO DEL MODAL
========================================================= */

.cef-module .iu-modal-header {
    position: relative;

    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 20px;

    flex-shrink: 0;

    padding: 22px 24px;

    color: #ffffff;

    background: linear-gradient(
        135deg,
        var(--control-primary) 0%,
        var(--control-secondary) 100%
    );
}


/* Línea decorativa */

.cef-module .iu-modal-header::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;

    height: 4px;

    content: "";

    background: linear-gradient(
        90deg,
        var(--control-green),
        var(--control-blue-light)
    );
}


.cef-module .iu-modal-header > div {
    min-width: 0;
}


.cef-module .iu-modal-header h2 {
    margin: 0 0 6px;

    color: #ffffff;

    font-size: 21px;
    line-height: 1.25;
    font-weight: 700;
}


.cef-module .iu-modal-header p {
    margin: 0;

    color: rgba(255, 255, 255, 0.82);

    font-size: 13px;
    line-height: 1.5;
}


/* Botón cerrar */

.cef-module .iu-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 36px;
    height: 36px;

    flex: 0 0 36px;

    padding: 0;

    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 9px;

    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);

    font-family: Arial, sans-serif;
    font-size: 25px;
    line-height: 1;
    font-weight: 400;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}


.cef-module .iu-close:hover {
    color: #ffffff;

    border-color: rgba(255, 255, 255, 0.5);

    background: rgba(255, 255, 255, 0.22);

    transform: rotate(4deg);
}


.cef-module .iu-close:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.35);
    outline-offset: 2px;
}


/* =========================================================
   FORMULARIO DEL MODAL
========================================================= */

.cef-module .iu-modal-box form {
    display: flex;
    flex-direction: column;

    min-height: 0;
    overflow: hidden;
}


.cef-module .iu-section {
    padding: 24px;

    overflow-x: hidden;
    overflow-y: auto;
}


.cef-module .iu-section h3 {
    display: flex;
    align-items: center;

    gap: 9px;

    margin: 0 0 20px;
    padding-bottom: 12px;

    border-bottom: 1px solid var(--control-border);

    color: var(--control-text);

    font-size: 15px;
    font-weight: 700;
}


.cef-module .iu-section h3::before {
    display: block;

    width: 4px;
    height: 18px;

    border-radius: 10px;

    content: "";

    background: var(--control-primary);
}


/* =========================================================
   CUADRÍCULA DE CAMPOS
========================================================= */

.cef-module .iu-grid-2 {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 20px;
}


.cef-module .iu-field {
    min-width: 0;
    margin-bottom: 18px;
}


.cef-module .iu-grid-2 .iu-field {
    margin-bottom: 0;
}


.cef-module .iu-field label {
    display: block;

    margin-bottom: 7px;

    color: #344054;

    font-size: 13px;
    line-height: 1.4;
    font-weight: 700;
}


.cef-module .iu-field label span[aria-hidden="true"] {
    margin-left: 2px;

    color: var(--control-danger);
}


.cef-module .iu-field .form-control {
    display: block;

    width: 100%;
    height: 43px;

    padding: 9px 12px;

    border: 1px solid #cfd7e2;
    border-radius: 8px;

    color: var(--control-text);
    background-color: #ffffff;

    font-family: inherit;
    font-size: 13px;

    outline: none;
    box-shadow: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}


.cef-module .iu-field .form-control:hover {
    border-color: #aeb9c6;
}


.cef-module .iu-field .form-control:focus {
    border-color: var(--control-blue-light);

    box-shadow:
        0 0 0 3px rgba(60, 150, 202, 0.14);
}


.cef-module .iu-field .form-control::placeholder {
    color: #98a2b3;
}


/* Campo inválido */

.cef-module .iu-field .form-control:invalid:not(:placeholder-shown) {
    border-color: rgba(220, 53, 69, 0.65);
}


/* Campo deshabilitado */

.cef-module .iu-field .form-control:disabled,
.cef-module .iu-field .form-control[readonly] {
    color: #667085;

    background: #f2f4f7;

    cursor: not-allowed;
}


/* Texto de ayuda */

.cef-module .iu-field-help {
    display: block;

    margin-top: 6px;

    color: var(--control-text-soft);

    font-size: 11px;
    line-height: 1.45;
}


/* =========================================================
   INPUT DE ARCHIVO
========================================================= */

.cef-module .iu-field input[type="file"] {
    height: auto;
    min-height: 46px;

    padding: 5px 7px;

    cursor: pointer;
}


.cef-module .iu-field input[type="file"]::file-selector-button {
    min-height: 34px;

    margin-right: 12px;
    padding: 7px 13px;

    border: none;
    border-radius: 6px;

    color: #ffffff;
    background: var(--control-primary);

    font-family: inherit;
    font-size: 12px;
    font-weight: 600;

    cursor: pointer;

    transition: background-color 0.2s ease;
}


.cef-module .iu-field input[type="file"]::file-selector-button:hover {
    background: var(--control-primary-hover);
}


/* Compatibilidad con navegadores antiguos */

.cef-module .iu-field input[type="file"]::-webkit-file-upload-button {
    min-height: 34px;

    margin-right: 12px;
    padding: 7px 13px;

    border: none;
    border-radius: 6px;

    color: #ffffff;
    background: var(--control-primary);

    font-family: inherit;
    font-size: 12px;
    font-weight: 600;

    cursor: pointer;
}


/* =========================================================
   PIE Y BOTONES DEL MODAL
========================================================= */

.cef-module .iu-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 10px;

    flex-shrink: 0;

    padding: 16px 24px;

    border-top: 1px solid var(--control-border);

    background: #f8fafc;
}


.cef-module .iu-actions .btn-control {
    min-width: 115px;
}


/* Estado de carga */

.cef-module .iu-actions .btn-control:disabled {
    opacity: 0.65;

    cursor: not-allowed;
    transform: none;
}


/* =========================================================
   BLOQUE DE INSTRUCCIONES DEL CARGUE
========================================================= */

.cef-module .control-import-info {
    display: flex;
    align-items: flex-start;

    gap: 14px;

    margin-bottom: 18px;
    padding: 16px;

    border: 1px solid rgba(60, 150, 202, 0.28);
    border-radius: 10px;

    color: #344054;

    background: rgba(60, 150, 202, 0.07);
}


.cef-module .control-import-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;

    flex: 0 0 38px;

    border-radius: 9px;

    color: var(--control-secondary);
    background: rgba(0, 105, 167, 0.11);

    font-size: 17px;
}


.cef-module .control-import-info > div:last-child {
    min-width: 0;
}


.cef-module .control-import-info strong {
    display: block;

    margin-bottom: 7px;

    color: var(--control-text);

    font-size: 13px;
    font-weight: 700;
}


.cef-module .control-import-info ul {
    margin: 0;
    padding-left: 18px;

    color: var(--control-text-soft);

    font-size: 12px;
    line-height: 1.65;
}


.cef-module .control-import-info li + li {
    margin-top: 2px;
}


/* =========================================================
   DESCARGA DE PLANTILLA
========================================================= */

.cef-module .control-template-action {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 18px;

    margin-bottom: 20px;
    padding: 16px;

    border: 1px solid rgba(59, 174, 42, 0.25);
    border-radius: 10px;

    background: rgba(59, 174, 42, 0.06);
}


.cef-module .control-template-action > div {
    display: flex;
    flex-direction: column;

    min-width: 0;
}


.cef-module .control-template-action strong {
    margin-bottom: 4px;

    color: var(--control-text);

    font-size: 13px;
    font-weight: 700;
}


.cef-module .control-template-action span {
    color: var(--control-text-soft);

    font-size: 12px;
    line-height: 1.45;
}


.cef-module .control-template-action .btn-control {
    flex-shrink: 0;

    text-decoration: none;
}


/* =========================================================
   ARCHIVO SELECCIONADO
========================================================= */

.cef-module .control-selected-file {
    display: flex;
    align-items: center;

    gap: 12px;

    margin-top: 2px;
    margin-bottom: 18px;
    padding: 13px 15px;

    border: 1px solid rgba(59, 174, 42, 0.3);
    border-radius: 9px;

    background: rgba(59, 174, 42, 0.07);
}


.cef-module .control-selected-file[hidden] {
    display: none !important;
}


.cef-module .control-selected-file > i {
    color: var(--control-green);

    font-size: 24px;
}


.cef-module .control-selected-file > div {
    display: flex;
    flex-direction: column;

    min-width: 0;
}


.cef-module .control-selected-file span {
    margin-bottom: 2px;

    color: var(--control-text-soft);

    font-size: 11px;
}


.cef-module .control-selected-file strong {
    overflow: hidden;

    color: var(--control-text);

    font-size: 13px;
    font-weight: 700;

    text-overflow: ellipsis;
    white-space: nowrap;
}


/* =========================================================
   RESULTADO DEL CARGUE
========================================================= */

.cef-module .control-import-result {
    margin-top: 20px;

    overflow: hidden;

    border: 1px solid var(--control-border);
    border-radius: 11px;

    background: #ffffff;
}


.cef-module .control-import-result[hidden] {
    display: none !important;
}


.cef-module .control-import-result-title {
    display: flex;
    align-items: center;

    gap: 8px;

    padding: 13px 15px;

    border-bottom: 1px solid var(--control-border);

    color: var(--control-primary);
    background: #f8fafc;

    font-size: 13px;
    font-weight: 700;
}


.cef-module .control-import-summary {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 1px;

    background: var(--control-border);
}


.cef-module .control-import-summary > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    min-height: 78px;
    padding: 12px;

    text-align: center;

    background: #ffffff;
}


.cef-module .control-import-summary span {
    margin-bottom: 6px;

    color: var(--control-text-soft);

    font-size: 11px;
    font-weight: 600;
}


.cef-module .control-import-summary strong {
    color: var(--control-text);

    font-size: 21px;
    line-height: 1;
    font-weight: 700;
}


/* Insertados */

.cef-module .control-import-summary > div:nth-child(2) strong {
    color: var(--control-green);
}


/* Omitidos */

.cef-module .control-import-summary > div:nth-child(3) strong {
    color: var(--control-warning);
}


/* Errores */

.cef-module .control-import-summary > div:nth-child(4) strong {
    color: var(--control-danger);
}


/* Detalle de errores */

.cef-module .control-import-errors {
    max-height: 180px;

    overflow-y: auto;

    color: #842029;
    background: rgba(220, 53, 69, 0.04);

    font-size: 12px;
    line-height: 1.5;
}


.cef-module .control-import-errors:not(:empty) {
    padding: 14px 16px;

    border-top: 1px solid rgba(220, 53, 69, 0.18);
}


.cef-module .control-import-errors ul {
    margin: 0;
    padding-left: 18px;
}


.cef-module .control-import-errors li + li {
    margin-top: 5px;
}


/* =========================================================
   SCROLL INTERNO DEL MODAL
========================================================= */

.cef-module .iu-section::-webkit-scrollbar,
.cef-module .control-import-errors::-webkit-scrollbar {
    width: 7px;
}


.cef-module .iu-section::-webkit-scrollbar-track,
.cef-module .control-import-errors::-webkit-scrollbar-track {
    background: #f2f4f7;
}


.cef-module .iu-section::-webkit-scrollbar-thumb,
.cef-module .control-import-errors::-webkit-scrollbar-thumb {
    border-radius: 20px;

    background: #bdc7d2;
}


.cef-module .iu-section::-webkit-scrollbar-thumb:hover,
.cef-module .control-import-errors::-webkit-scrollbar-thumb:hover {
    background: #98a6b5;
}


/* =========================================================
   RESPONSIVE DE MODALES
========================================================= */

@media (max-width: 768px) {

    .cef-module.iu-modal {
        align-items: flex-start;

        padding: 12px;

        overflow-y: auto;
    }


    .cef-module .iu-modal-box,
    .cef-module .iu-modal-box-xl {
        max-width: 100%;
        max-height: calc(100vh - 24px);

        border-radius: 13px;
    }


    .cef-module .iu-modal-header {
        padding: 18px;
    }


    .cef-module .iu-modal-header h2 {
        font-size: 18px;
    }


    .cef-module .iu-section {
        padding: 20px 18px;
    }


    .cef-module .iu-grid-2 {
        grid-template-columns: 1fr;

        gap: 17px;
    }


    .cef-module .control-template-action {
        align-items: stretch;
        flex-direction: column;
    }


    .cef-module .control-template-action .btn-control {
        width: 100%;
    }


    .cef-module .control-import-summary {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }


    .cef-module .iu-actions {
        flex-wrap: wrap;

        padding: 15px 18px;
    }

}


@media (max-width: 520px) {

    .cef-module.iu-modal {
        padding: 0;
    }


    .cef-module .iu-modal-box,
    .cef-module .iu-modal-box-xl {
        min-height: 100%;
        max-height: 100%;

        border: none;
        border-radius: 0;
    }


    .cef-module .iu-modal-header {
        padding: 17px 15px;
    }


    .cef-module .iu-modal-header h2 {
        font-size: 17px;
    }


    .cef-module .iu-modal-header p {
        font-size: 12px;
    }


    .cef-module .iu-close {
        width: 34px;
        height: 34px;

        flex-basis: 34px;
    }


    .cef-module .iu-section {
        padding: 18px 15px;
    }


    .cef-module .control-import-info {
        padding: 14px;
    }


    .cef-module .control-import-icon {
        display: none;
    }


    .cef-module .control-import-summary {
        grid-template-columns: 1fr 1fr;
    }


    .cef-module .iu-actions {
        display: grid;

        grid-template-columns: 1fr;

        gap: 8px;

        padding: 13px 15px;
    }


    .cef-module .iu-actions .btn-control {
        width: 100%;
        min-width: 0;
    }

}


/* =========================================================
   ACCESIBILIDAD
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .cef-module .iu-modal-box {
        animation: none;
    }


    .cef-module .iu-close,
    .cef-module .iu-field .form-control {
        transition: none;
    }

}

/* Insignias para el origen de los registros. */

.cef-module .control-badge-manual {
    color: #175cd3;
    background: #eff8ff;
}

.cef-module .control-badge-masivo {
    color: #237a17;
    background: #eef9eb;
}

