.aerp-dashboard-grid{
    display:flex;
    gap:20px;
    margin-top:20px;
}

.aerp-dashboard-left,
.aerp-dashboard-right{
    width:50%;
}


.aerp-progress{
    width:100%;
    height:12px;
    background:#edf2f7;
    border-radius:30px;
    overflow:hidden;
    margin:15px 0 10px;
    box-shadow:inset 0 1px 3px rgba(0,0,0,.08);
}

.aerp-progress-bar{
    height:100%;
    background:linear-gradient(90deg,#22c55e,#16a34a);
    border-radius:30px;
    transition:width .5s ease;
}

.aerp-progress-info{
    display:flex;
    justify-content:space-between;
    align-items:center;
    font-size:13px;
    color:#6b7280;
    font-weight:600;
}

.aerp-card{
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:14px;
    padding:22px;
    margin-bottom:20px;
    box-shadow:0 8px 24px rgba(15,23,42,.06);
    transition:all .25s ease;
}

.aerp-card:hover{
    transform:translateY(-2px);
    box-shadow:0 14px 30px rgba(15,23,42,.10);
}

.aerp-card h3{
    margin:0 0 18px;
    padding-bottom:10px;
    border-bottom:1px solid #eef2f7;
    font-size:18px;
    font-weight:700;
    color:#1f2937;
}

.aerp-card h4{
    margin:20px 0 10px;
    font-size:15px;
    font-weight:600;
    color:#374151;
}

.aerp-card p{
    margin:8px 0;
    line-height:1.6;
    color:#4b5563;
}

.aerp-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:10px 18px;
    border:none;
    border-radius:10px;
    font-size:14px;
    font-weight:600;
    text-decoration:none;
    cursor:pointer;
    transition:all .25s ease;
}

.aerp-btn-primary{
    background:#2563eb;
    color:#fff;
}

.aerp-btn-primary:hover:not(:disabled){
    background:#1d4ed8;
    transform:translateY(-2px);
    box-shadow:0 8px 20px rgba(37,99,235,.25);
}

.aerp-btn:disabled{
    background:#d1d5db;
    color:#6b7280;
    cursor:not-allowed;
    box-shadow:none;
}

.aerp-card strong{
    color:#111827;
}

.aerp-help{
    margin-top:10px;
    font-size:13px;
    color:#6b7280;
}

.aerp-table{
    width:100%;
    border-collapse:collapse;
    margin-top:15px;
    font-size:14px;
    background:#fff;
    border-radius:12px;
    overflow:hidden;
}

.aerp-table thead{
    background:#2563eb;
    color:#fff;
}

.aerp-table th{
    padding:6px 8px;
    text-align:left;
    font-weight:600;
    letter-spacing:.3px;
}

.aerp-table td{
    padding:4px 6px;
    border-bottom:1px solid #eef2f7;
    color:#374151;
    line-height:1.15;
}

.aerp-table tbody tr:nth-child(even){
    background:#f8fafc;
}

.aerp-table tbody tr:hover{
    background:#eef6ff;
    transition:.2s;
}

.aerp-table tbody tr:last-child td{
    border-bottom:none;
}

.aerp-dashboard-grid{
    align-items:flex-start;
    margin-bottom:28px;
}

.aerp-card{
    position:relative;
    overflow:hidden;
}

.aerp-card::before{
    content:"";
    position:absolute;
    left:0;
    top:0;
    width:5px;
    height:100%;
    background:linear-gradient(180deg,#2563eb,#60a5fa);
}

.aerp-card{
    animation:aerpFade .35s ease;
}

@keyframes aerpFade{

    from{
        opacity:0;
        transform:translateY(10px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }

}

.aerp-card p{
    margin:10px 0;
    line-height:1.7;
    color:#4b5563;
}

.aerp-card strong{
    display:inline-block;
    min-width:130px;
    color:#111827;
    font-weight:600;
}

.aerp-card h4{
    margin:20px 0 12px;
    padding-left:10px;
    border-left:4px solid #2563eb;
    font-size:15px;
    color:#1e293b;
}

.aerp-info{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:8px 0;
    border-bottom:1px solid #f1f5f9;
}

.aerp-info:last-child{
    border-bottom:none;
}

.aerp-info span{
    color:#64748b;
}

.aerp-info strong{
    color:#111827;
}

.aerp-hero{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:25px;
}

.aerp-hero-left{
    flex:1;
}

.aerp-hero-right{
    min-width:180px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:6px;
    text-align:center;
}

.aerp-hero-right{
    background:#16a34a;
    color:#fff;
    padding:10px 18px;
    border-radius:10px;
    font-size:14px;
    font-weight:700;
    box-shadow:0 6px 18px rgba(22,163,74,.25);
}




.aerp-row{
    display:flex;
    gap:16px;
    width:95%;
}

.aerp-row > .aerp-field{
    flex:1 1 20%;
/*    max-width:20%;  */
    min-width:20%;
    box-sizing:border-box;
}

.aerp-field{
    flex:1;
    min-width:160px;
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:12px;
    padding:20px 10px;
    text-align:center;
    transition:.25s;
}

.aerp-field:hover{
    transform:translateY(-3px);
    box-shadow:0 10px 20px rgba(0,0,0,.08);
}

.aerp-field label{
    display:block;
    margin-bottom:10px;
    font-size:12px;
    color:#64748b;
    text-transform:uppercase;
    letter-spacing:.5px;
}

.aerp-field strong{
    display:block;
    min-width:0;
    font-size:22px;
    font-weight:700;
    color:#2563eb;
}

.aerp-icon{
    width:46px;
    height:46px;
    border-radius:50%;
    margin:0 auto 12px;
}

.aerp-blue{background:#dbeafe;}
.aerp-green{background:#dcfce7;}
.aerp-orange{background:#ffedd5;}
.aerp-purple{background:#ede9fe;}
.aerp-red{background:#fee2e2;}



@media (max-width:768px){

    .aerp-row{
        display:flex;
        flex-wrap:wrap;
        justify-content:space-between;
        width:100%;
    }

    .aerp-row > .aerp-field{
        flex:0 0 48%;
        max-width:47%;
    }

    .aerp-row > .aerp-field:last-child{
        flex:0 0 100%;
        max-width:100%;
        min-width:100%;
    }

    .aerp-dashboard-grid{
        flex-direction:column;
    }
    
    .aerp-dashboard-left,
    .aerp-dashboard-right{
        width:100%;
    }

    .aerp-hero{
        display:block;
    }
    
    .aerp-hero-left,
    .aerp-hero-right{
        width:100%;
    }
    
    .aerp-hero-right{
        margin-top:18px;
    }
    
    .aerp-progress-badge{
        display:flex;
        width:100%;
        text-align:center;
        box-sizing:border-box;
        align-items:center;
        justify-content:center;
    }

}

/*-----------
Dashboard
------------*/

.aerp-card{
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:14px;
    padding:22px;
    margin-bottom:20px;
    box-shadow:0 8px 24px rgba(15,23,42,.06);
    transition:all .25s ease;
}

.aerp-card:hover{
    transform:translateY(-3px);
    box-shadow:0 16px 32px rgba(15,23,42,.10);
}

.aerp-card h2,
.aerp-card h3{
    margin-top:0;
    color:#1e3a8a;
}

/*==================================================
=            ERP FRONTEND UI SYSTEM
==================================================*/

/*========== TABLAS ERP ==========*/

.aerp-card table{
    width:100%;
    border-collapse:collapse;
    margin-top:15px;
}

.aerp-card thead{
    background:#2563eb;
}

.aerp-card thead th{
    color:#fff;
    padding:14px 12px;
    font-weight:600;
    border:none;
}

.aerp-card tbody td{
    padding:13px 12px;
    border-bottom:1px solid #eef2f7;
    vertical-align:middle;
}

.aerp-card tbody tr:hover{
    background:#f8fbff;
}

.aerp-dashboard{
    display:flex;
    flex-wrap:wrap;
    gap:20px;
    margin:25px 0;
}

.aerp-dashboard > .aerp-card{
    flex:1 1 260px;
    margin:0;
}

/*========== BOTONES ERP ==========*/

.aerp-btn,
.button,
.page-title-action{

    display:inline-flex;
    align-items:center;
    justify-content:center;

    padding:10px 18px;

    border-radius:10px !important;

    border:none !important;

    background:#2563eb !important;

    color:#fff !important;

    text-decoration:none;

    font-weight:600;

    transition:.25s;

    cursor:pointer;

}

.aerp-btn:hover,
.button:hover,
.page-title-action:hover{

    background:#1d4ed8 !important;

    transform:translateY(-2px);

    color:#fff !important;

}

/*========== TABLAS ERP ==========*/

.widefat{

    border:1px solid #e5e7eb;

    border-radius:12px;

    overflow:hidden;

    box-shadow:0 4px 16px rgba(15,23,42,.05);

}

.widefat thead{

    background:#2563eb;

}

.widefat thead th{

    color:#fff;

    padding:14px;

    font-size:14px;

    font-weight:600;

    border:none;

}

.widefat tbody td{

    padding:14px;

    border-bottom:1px solid #eef2f7;

}

.widefat tbody tr:hover{

    background:#f8fbff;

}

/*========== FORMULARIOS ERP ==========*/

.aerp-card input[type=text],
.aerp-card input[type=date],
.aerp-card input[type=time],
.aerp-card input[type=email],
.aerp-card input[type=number],
.aerp-card select,
.aerp-card textarea{

    width:100%;

    padding:12px 14px;

    border:1px solid #dbe3ec;

    border-radius:10px;

    background:#fff;

    transition:.25s;

    box-sizing:border-box;

}

.aerp-card input:focus,
.aerp-card select:focus,
.aerp-card textarea:focus{

    outline:none;

    border-color:#2563eb;

    box-shadow:0 0 0 3px rgba(37,99,235,.15);

}

.aerp-card label{

    display:block;

    margin-bottom:8px;

    font-weight:600;

    color:#334155;

}

/*========== BADGES ERP ==========*/

.aerp-estado{

    display:inline-block;

    padding:6px 12px;

    border-radius:999px;

    font-size:13px;

    font-weight:600;

    text-align:center;
    
    min-width: 90px

}

.estado-activo,
.estado-practica{

    background:#00a32a;

    color:#ffffff;

}

.estado-inactivo,
.estado-retirado{

    background:#fee2e2;

    color:#ffffff;

}

.estado-proceso{

    background:#fef3c7;

    color:#92400e;

}

.estado-finalizado{

    background:#000000;

    color:#ffffff;

}


.estado-teoria{

    background:#2271b1;

    color:#ffffff;

}

.estado-examen{

    background:#dba617;

    color:#ffffff;

}

.estado-simultaneo{

    background:#8c3ffc;

    color:#ffffff;

}

.estado-retirado{

    background:#d63638;

    color:#ffffff;

}

/*========== SECCIONES ERP ==========*/

.aerp-card{

    margin-bottom:25px;

}

.aerp-card h2{

    font-size:22px;

    font-weight:700;

    padding-bottom:12px;

    margin-bottom:20px;

    border-bottom:1px solid #eef2f7;

}

.aerp-resumen{

    margin:20px 0 25px;

}

.aerp-botones{

    margin-top:25px;

    display:flex;

    gap:12px;

    flex-wrap:wrap;

}

/*========== FILTROS ERP ==========*/

.aerp-filtros{

    display:flex;

    gap:12px;

    align-items:center;

    flex-wrap:wrap;

    margin-bottom:20px;

}

.aerp-filtros select{

    width:220px;

}

.aerp-filtros .regular-text{

    flex:1;

    min-width:220px;

}

@media(max-width:768px){

    .aerp-filtros{

        flex-direction:column;

        align-items:stretch;

    }

    .aerp-filtros select,

    .aerp-filtros .regular-text,

    .aerp-filtros .button{

        width:100%;

    }

}

/*========== TARJETAS RESUMEN ERP ==========*/

.aerp-cards{

    display:flex;

    flex-wrap:wrap;

    gap:18px;

    margin:25px 0;

}

.aerp-cards > .aerp-card{

    flex:1 1 calc(20% - 15px);

/*    min-width:180px; */

    margin:0;

    text-align:center;

}

.aerp-cards > .aerp-card span{

    display:block;

    color:#64748b;

    font-size:14px;

    margin-bottom:10px;

}

.aerp-cards > .aerp-card strong{

    display:block;

    font-size:34px;

    color:#1e3a8a;

    font-weight:700;

}

@media(max-width:768px){

    .aerp-cards > .aerp-card{

        flex:0 0 47%;

        max-width:47%;

    }

    .aerp-cards > .aerp-card:last-child{

        flex:0 0 100%;

        max-width:100%;

    }

}

/*========== FORMULARIO 2 COLUMNAS ==========*/

.aerp-form{

    display:flex;

    gap:20px;

    align-items:flex-start;

    margin-bottom:20px;

}

.aerp-form .aerp-col{

    flex:1;

}

@media(max-width:768px){

    .aerp-form{

        display:block;

    }

    .aerp-form .aerp-col{

        width:100%;

    }

}

.aerp-form > .aerp-card{

    width:100%;

    flex:1 1 100%;

}

.aerp-logo-form{
    text-align:center;
    margin:35px 0 55px;
}

.aerp-logo-form img{
    
    width:100%;
    max-height:110px;
    object-fit:contain;
}

/*========== TABLA MODULOS ==========*/

.aerp-modulos-table th:nth-child(2),
.aerp-modulos-table td:nth-child(2){
    width:45%;
}

/*========== RESUMEN ERP ==========*/

.aerp-resumen{

    display:flex;

    gap:18px;

    flex-wrap:wrap;

    margin:20px 0 30px;

}

.aerp-resumen-item{

    flex:1;

    min-width:180px;

    background:#fff;

    border:1px solid #e5e7eb;
    
    border-left:4px solid #2563eb;

    border-radius:12px;

    padding:20px;

    text-align:center;

    box-shadow:0 4px 12px rgba(15,23,42,.05);

}

.aerp-resumen-item strong{

    display:block;

    font-size:32px;

    color:#2563eb;

    margin-bottom:8px;

}

.aerp-resumen-item span{

    color:#64748b;

    font-size:14px;

}

@media(max-width:768px){

    .aerp-resumen-item{

        flex:0 0 48%;

    }

    .aerp-resumen-item:last-child{

        flex:0 0 100%;

    }

}

.estado-aprobado{
    color:#16a34a !important;
    font-weight:600;
}

.estado-desaprobado{
    color:#dc2626 !important;
    font-weight:600;
}
