/* Reducir espacio del título */
.mis-usuarios-container .container-title {
    margin-bottom: 0 !important;
}

.mis-usuarios-container .nota-contenido {
    padding-top: 0 !important;
}

.mis-usuarios-header {
    margin-bottom: 16px;
    padding: 0;
}

.mis-usuarios-header h1 {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 2px 0;
}

.mis-usuarios-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 16px 0;
}

/* ── Layout dos columnas ── */
.seccion-usuarios {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 16px;
    align-items: start;
    min-width: 0;
    width: 100%;
}

.seccion-descripcion h6 {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 6px 0;
}

.seccion-descripcion p {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

/* Tarjetas de tablas */
.tabla-usuarios-card {
    background: rgb(255, 255, 255);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    min-width: 0;
    width: 100%;
}

.tabla-usuarios-header {
    padding: 20px 24px;
    background: #b9b0b3;
    border-bottom: 1px solid #e9ecef;
}

.tabla-usuarios-header h5 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #f9f9f9;
}

.tabla-usuarios-body {
    padding: 0;
}

/* Tabla moderna */
.tabla-usuarios {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.tabla-usuarios thead {
    background: #ffffff;
}

.tabla-usuarios thead th {
    padding: 10px 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #cacbcb;
}

.tabla-usuarios tbody tr {
    border-bottom: 1px solid #c8cacb;
    transition: background-color 0.2s ease;
}

.tabla-usuarios tbody tr:last-child {
    border-bottom: none;
}

.tabla-usuarios tbody tr:hover {
    background-color: #f8f9fa;
}

.tabla-usuarios tbody td {
    padding: 10px 16px;
    font-size: 14px;
    color: #495057;
    vertical-align: middle;
}

/* ── Avatar + Nombre ── */
.usuario-nombre {
    display: flex;
    align-items: center;
    gap: 12px;
}

.usuario-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fd07a7 15%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    flex-shrink: 0;
}

/* ── Nombre + email en columna ── */
.usuario-nombre-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.usuario-nombre-info strong {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

.usuario-nombre-info span {
    font-size: 13px;
    color: #9ca3af;
}

/* Columna de estado */
.badge-status {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-activo {
    background-color: #d4edda;
    color: #155724;
}

.badge-inactivo {
    background-color: #f8d7da;
    color: #721c24;
}

/* Botones de acciones */
.acciones-grupo {
    display: flex;
    gap: 8px;
    justify-content: flex-start;
}

.btn-accion {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.btn-accion:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-editar {
    background-color: #e3f2fd;
    color: #1976d2;
}

.btn-editar:hover {
    background-color: #1976d2;
    color: white;
}

.btn-deshabilitar {
    background-color: #fff3e0;
    color: #f57c00;
}

.btn-deshabilitar:hover {
    background-color: #f57c00;
    color: white;
}

.btn-habilitar {
    background-color: #e8f5e9;
    color: #388e3c;
}

.btn-habilitar:hover {
    background-color: #388e3c;
    color: white;
}

.btn-eliminar {
    background-color: #ffebee;
    color: #c62828;
}

.btn-eliminar:hover {
    background-color: #c62828;
    color: white;
}

/* Botón vincular colaborador */
.btn-vincular {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 20px;
    background: #f21c71;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 20px;
}

.btn-vincular:hover {
    background: #b8047f;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(235, 51, 121, 0.35);
}

.btn-vincular-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

/* Responsivo */
@media (max-width: 768px) {
    .seccion-usuarios {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .tabla-usuarios thead {
        display: none;
    }

    .tabla-usuarios tbody tr {
        display: block;
        margin-bottom: 16px;
        border: 1px solid #e9ecef;
        border-radius: 8px;
        overflow: hidden;
    }

    .tabla-usuarios tbody td {
        display: block;
        text-align: right;
        padding: 12px 16px;
        border-bottom: 1px solid #f1f3f5;
    }

    .tabla-usuarios tbody td:last-child {
        border-bottom: none;
    }

    .tabla-usuarios tbody td::before {
        content: attr(data-label);
        float: left;
        font-weight: 600;
        color: #6c757d;
        font-size: 12px;
        text-transform: uppercase;
    }

    .usuario-nombre {
        justify-content: flex-end;
    }

    .tabla-usuarios-header {
        padding: 16px;
    }

    .acciones-grupo {
        justify-content: flex-end;
        margin-top: 8px;
    }

    .btn-vincular {
        width: 100%;
        justify-content: center;
    }
}