/* ===================== Сторінка "Співробітники" ===================== */

.staff-hint {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 16px;
    padding: 10px 14px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    color: #1e3a8a;
    font-size: 13px;
    flex-shrink: 0;
}

.staff-hint i {
    font-size: 18px;
    color: #2563eb;
    margin-top: 1px;
}

/* Плашки ролей */
.role-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 6px;
    border: 1px solid transparent;
    white-space: nowrap;
}

.role-sales {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
}

.role-logist {
    background: #dcfce7;
    color: #15803d;
    border-color: #bbf7d0;
}

.role-head {
    background: #fef3c7;
    color: #b45309;
    border-color: #fde68a;
}

/* Telegram */
.tg-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #229ed9;
    font-weight: 600;
    text-decoration: none;
}

.tg-link:hover {
    text-decoration: underline;
}

.tg-link i {
    font-size: 17px;
}

.tg-connected {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-top: 2px;
    font-size: 11px;
    color: #15803d;
    font-weight: 600;
}

/* Неактивні — сірі */
.staff-table tbody tr.staff-inactive td {
    color: #94a3b8;
}

.staff-table tbody tr.staff-inactive .role-badge {
    opacity: 0.55;
}

/* Вибір ролі у формі — три кнопки */
.role-picker {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.role-option {
    flex: 1;
    min-width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 12px;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
    background: #ffffff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    transition: all 0.15s ease;
}

.form-group .role-option {
    font-size: 14px;
}

.role-option input {
    display: none;
}

.role-option:has(input:checked).role-sales {
    border-color: #2563eb;
    background: #eff6ff;
    color: #1d4ed8;
}

.role-option:has(input:checked).role-logist {
    border-color: #10b981;
    background: #dcfce7;
    color: #15803d;
}

.role-option:has(input:checked).role-head {
    border-color: #f59e0b;
    background: #fef3c7;
    color: #b45309;
}

.form-group .active-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 0;
    font-size: 14px;
    font-weight: 500;
    color: #1e293b;
    cursor: pointer;
}

.active-toggle input {
    width: 16px;
    height: 16px;
    accent-color: #10b981;
}

.form-group .active-toggle input {
    padding: 0;
}

/* Кілька ролей в одній клітинці */
.role-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.role-admin {
    background: #fce7f3;
    color: #be185d;
    border-color: #fbcfe8;
}

.role-option:has(input:checked).role-admin {
    border-color: #db2777;
    background: #fce7f3;
    color: #be185d;
}
