.main-content {
    margin-left: 245px;
    flex: 1;
    min-width: 0;
    padding: 35px;
}

/* TOPBAR */

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.topbar h1 {
    font-size: 28px;
    margin-bottom: 5px;
}

.topbar p {
    color: #64748b;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-info small {
    display: block;
    color: #64748b;
    margin-top: 4px;
}

.avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #1464e8;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}


/* ESTADISTICAS */

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.stat-card {
    background: white;
    border: 1px solid #e5eaf0;
    border-radius: 12px;
    padding: 22px;
    display: flex;
    gap: 18px;
}

.stat-card strong {
    font-size: 30px;
}

.stat-card h3 {
    font-size: 16px;
    margin: 5px 0;
}

.stat-card p {
    font-size: 13px;
    color: #64748b;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 23px;
}

.blue {
    background: #e8f1ff;
    color: #1264e8;
}

.purple {
    background: #f0eaff;
    color: #6941c6;
}

.orange {
    background: #fff1df;
    color: #e58a00;
}

.green {
    background: #e8f8ef;
    color: #16834b;
}


/* PANELES */

.panel {
    background: white;
    border: 1px solid #e5eaf0;
    border-radius: 12px;
    margin-bottom: 25px;
    overflow: hidden;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    padding: 22px;
}

.panel-header h2 {
    font-size: 18px;
}

.panel-header a {
    color: #1264e8;
    text-decoration: none;
    font-weight: bold;
}


/* TABLAS */

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 18px 22px;
    text-align: left;
    border-top: 1px solid #edf0f4;
    font-size: 14px;
}

th {
    color: #64748b;
    font-weight: 600;
}

.btn-view {
    border: 1px solid #1264e8;
    background: white;
    color: #1264e8;
    padding: 9px 15px;
    border-radius: 6px;
    cursor: pointer;
}

.btn-view:hover {
    background: #1264e8;
    color: white;
}


/* ESTADOS */

.status {
    padding: 7px 12px;
    border-radius: 7px;
    font-size: 13px;
    display: inline-block;
}

.en-revisión {
    background: #fff5df;
    color: #d88900;
}

.completado {
    background: #e8f8ef;
    color: #16834b;
}

.accion {
    background: #fff0f0;
    color: #d92d20;
}

.status small {
    display: block;
    margin-top: 3px;
}


/* INFO */

.info-box {
    background: #eff6ff;
    border: 1px solid #d5e7ff;
    border-radius: 10px;
    padding: 18px;
    display: flex;
    gap: 12px;
    color: #31547c;
}

/* =========================================
   RESPONSIVE
   ========================================= */

/* =========================================
   RESPONSIVE
   ========================================= */

/* TABLET */
@media (max-width: 1024px) {

    .main-content {
        margin-left: 245px;
        padding: 25px;
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-card {
        padding: 18px;
    }

    .topbar h1 {
        font-size: 24px;
    }

}


/* =========================================
   CELULAR
   ========================================= */

@media (max-width: 768px) {

    .main-content {
        margin-left: 70px;
        padding: 20px;
    }


    /* TOPBAR */

    .topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .topbar h1 {
        font-size: 24px;
    }

    .user-info {
        width: 100%;
    }


    /* ESTADÍSTICAS */

    .stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .stat-card {
        padding: 18px;
    }


    /* PANELES */

    .panel-header {
        flex-direction: column;
        gap: 12px;
        padding: 18px;
    }

    .panel-header h2 {
        font-size: 17px;
    }


    /* TABLAS */

    .table-container {
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
    }

    table {
        min-width: 750px;
    }

    th,
    td {
        padding: 14px 16px;
        font-size: 13px;
    }


    /* INFO */

    .info-box {
        padding: 15px;
    }

}


/* =========================================
   CELULARES PEQUEÑOS
   ========================================= */

@media (max-width: 480px) {

    .main-content {
        margin-left: 70px;
        padding: 15px;
    }

    .topbar h1 {
        font-size: 21px;
    }

    .topbar p {
        font-size: 14px;
    }

    .avatar {
        width: 40px;
        height: 40px;
        font-size: 13px;
    }

    .user-info {
        gap: 9px;
    }

    .stat-card {
        gap: 12px;
        padding: 15px;
    }

    .stat-icon {
        width: 42px;
        height: 42px;
        font-size: 19px;
        flex-shrink: 0;
    }

    .stat-card strong {
        font-size: 25px;
    }

    .stat-card h3 {
        font-size: 15px;
    }

    .stat-card p {
        font-size: 12px;
    }

    .panel-header {
        padding: 15px;
    }

    .panel-header h2 {
        font-size: 16px;
    }

    .info-box {
        font-size: 13px;
    }

}