/**
 * Estilos compartidos de componentes (SelectGroupDialog, GroupUsersByGrupo, GroupsManagement, etc.)
 */

/* Select a Group - expand/collapse y tabla */
.select-group-table .expand-cell {
    vertical-align: middle;
    text-align: center;
}

.btn-expand {
    width: 28px;
    height: 28px;
    padding: 0;
    border-radius: 6px;
    border: 1px solid var(--bs-border-color, #dee2e6);
    background: var(--bs-body-bg, #fff);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, background-color 0.15s ease;
}

.btn-expand:hover {
    background-color: rgba(13, 110, 253, 0.1);
    border-color: #0d6efd;
}

.btn-expand .chevron {
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid currentColor;
    margin-top: 2px;
    transition: transform 0.2s ease;
}

.btn-expand.expanded .chevron {
    transform: rotate(180deg);
    margin-top: -2px;
}

.tree-line {
    display: inline-block;
    width: 16px;
    height: 1px;
    background: var(--bs-border-color);
}

.tree-line.empty {
    background: transparent;
}

.group-row-child td:nth-child(3) {
    font-weight: 500;
}

/* GroupUsersByGrupo, GroupsManagement - loading y acciones */
.field-with-loading {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.field-with-loading-center {
    justify-content: center;
}

.loading-inline {
    display: inline-flex;
    align-items: center;
}

.loading-spinner-sm {
    width: 16px;
    height: 16px;
    border: 2px solid #e0e0e0;
    border-top-color: #0d6efd;
    border-radius: 50%;
    animation: components-spin 0.7s linear infinite;
}

@keyframes components-spin {
    to {
        transform: rotate(360deg);
    }
}
