/* Estilos de la tabla */
.mgh-accounts-container {
    margin-top: 20px;
}

.wp-list-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 8px;
    overflow: hidden;
    background-color: #ffffff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.wp-list-table th {
    background-color: #ffffff;
    color: #1c1c1c;
    padding: 15px;
    font-weight: 600;
    text-align: left;
    border-bottom: 2px solid #eeeeeebf;
}

.wp-list-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.wp-list-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eeeeeebf;
}

.wp-list-table th.sortable {
    cursor: pointer;
    position: relative;
    padding-right: 25px;
}

.wp-list-table th.sortable:after {
    content: '';
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid #aaa;
}

.wp-list-table th.sortable.desc:after {
    border-bottom: none;
    border-top: 5px solid #2271b1;
}

.wp-list-table th.sortable.asc:after {
    border-bottom: 5px solid #2271b1;
}

/* Estados de las cuentas - Nuevo estilo */
.mgh-status {
    display: inline-flex;
    text-align: center;
    border-radius: 10px;
    padding: 4px 8px;
    font-weight: 500;
    font-size: 12px;
    line-height: 17px;
    text-transform: uppercase;
}

.mgh-status.processing { 
    background: #f0f6fc;
    color: #1a457a;
}

.mgh-status.error { 
    background: #ffb9ae;
    color: #210000;
}

.mgh-status.active { 
    background: #c7ffe5;
    color: #002015;
}

.mgh-status.pending { 
    background: #fff3cd;
    color: #856404;
}

.mgh-status.inactive { 
    background: #e9ecef;
    color: #495057;
}

/* Paginación */
.tablenav-pages {
    float: right;
    margin: 1em 0;
}

.tablenav-pages .button {
    margin: 0 4px;
    padding: 8px 12px;
    border-radius: 5px;
    border: 1px solid #eeeeeebf;
    background: #ffffff;
    color: #1c1c1c;
    transition: all 0.2s ease-in-out;
}

.tablenav-pages .button:hover {
    background: #f9f9f9;
}

.tablenav-pages .button:disabled {
    opacity: 0.5;
    cursor: default;
}

.displaying-num {
    margin-right: 10px;
    color: #666;
}

/* Loading */
.mgh-loading {
    position: relative;
    min-height: 50px;
    width: 100%;
    background: rgba(255,255,255,0.9);
    text-align: center;
    margin: 10px 0;
    border-radius: 8px;
}

.mgh-loading .spinner {
    float: none;
    margin: 0;
    visibility: visible;
}

/* Responsive */
@media screen and (max-width: 782px) {
    .wp-list-table tr:not(.inline-edit-row):not(.no-items) td:not(.check-column) {
        display: block;
        padding: 8px 15px;
    }

    .wp-list-table td.column-primary ~ td:not(.check-column) {
        border-top: 1px solid #eeeeeebf;
    }
}

#accounts-pagination {
    margin-top: 15px;
}

.pagination-status {
    display: flex;
    text-align: center;
    flex-grow: 1;
    justify-content: center;
    align-items: center;
    font-weight: 600;
}