/* Role administration styles */

.role-matrix {
    border-collapse: collapse;
    width: 100%;
}

.role-matrix th,
.role-matrix td {
    padding: 4px 10px;
    border: 1px solid #ddd;
    text-align: center;
    vertical-align: middle;
}

.role-matrix th:first-child,
.role-matrix td.role-matrix-perm {
    text-align: left;
}

.role-matrix-group td {
    background: #f5f5f5;
    padding: 6px 10px;
    border-top: 2px solid #ccc;
}

.role-matrix-cell {
    width: 60px;
}

.role-perm-checkbox {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* Role list in sidebar */
.role-list {
    list-style: none;
    padding: 0;
    margin: 0 0 12px 0;
}

.role-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 0;
    border-bottom: 1px solid #eee;
}

.role-label {
    font-weight: bold;
    flex: 1;
}

/* Role badges on UserPage */
.role-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.role-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #e0eaf8;
    border: 1px solid #a0c0e8;
    border-radius: 12px;
    padding: 2px 10px 2px 8px;
    font-size: 0.9em;
}

.role-badge button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.85em;
    color: #666;
    padding: 0;
    line-height: 1;
}

.role-badge button:hover {
    color: #c00;
}

.muted {
    color: #888;
    font-size: 0.85em;
}
