2026-08-29 21:06:30 +03:30
|
|
|
|
<script setup lang="ts">
|
|
|
|
|
|
import { computed, onMounted, ref } from 'vue';
|
|
|
|
|
|
import axios from 'axios';
|
|
|
|
|
|
import { api } from '@/lib/api';
|
|
|
|
|
|
import { useAuthStore } from '@/stores/auth';
|
|
|
|
|
|
import type {
|
|
|
|
|
|
InviteUserRequest,
|
2026-09-03 16:45:59 +03:30
|
|
|
|
OrganizationDto,
|
2026-08-29 21:06:30 +03:30
|
|
|
|
OrgUserDto,
|
2026-09-03 16:45:59 +03:30
|
|
|
|
UpdateOrganizationRequest,
|
2026-08-29 21:06:30 +03:30
|
|
|
|
UserRole,
|
|
|
|
|
|
} from '@mento/shared';
|
2026-09-03 16:45:59 +03:30
|
|
|
|
import { USER_ROLE_LABELS, canManageSettings, canManageUsers } from '@/lib/roles';
|
|
|
|
|
|
import { BUSINESS_FIELDS, BUSINESS_FIELD_LABELS } from '@/lib/business-fields';
|
2026-08-29 21:06:30 +03:30
|
|
|
|
|
|
|
|
|
|
const auth = useAuthStore();
|
|
|
|
|
|
const loading = ref(false);
|
|
|
|
|
|
const saving = ref(false);
|
|
|
|
|
|
const error = ref('');
|
|
|
|
|
|
const users = ref<OrgUserDto[]>([]);
|
2026-09-03 16:45:59 +03:30
|
|
|
|
const org = ref<OrganizationDto | null>(null);
|
|
|
|
|
|
const orgName = ref('');
|
|
|
|
|
|
const businessField = ref('');
|
|
|
|
|
|
const orgSaving = ref(false);
|
|
|
|
|
|
const orgOk = ref('');
|
2026-08-29 21:06:30 +03:30
|
|
|
|
|
|
|
|
|
|
const email = ref('');
|
|
|
|
|
|
const fullName = ref('');
|
|
|
|
|
|
const password = ref('');
|
|
|
|
|
|
const role = ref<Exclude<UserRole, 'owner'>>('sales');
|
|
|
|
|
|
|
|
|
|
|
|
const inviteRoles: Array<{ value: Exclude<UserRole, 'owner'>; label: string }> = [
|
|
|
|
|
|
{ value: 'admin', label: USER_ROLE_LABELS.admin },
|
|
|
|
|
|
{ value: 'sales', label: USER_ROLE_LABELS.sales },
|
|
|
|
|
|
{ value: 'support', label: USER_ROLE_LABELS.support },
|
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
|
|
const isOwner = computed(() => auth.user?.role === 'owner');
|
|
|
|
|
|
const canInvite = computed(() => canManageUsers(auth.user?.role));
|
2026-09-03 16:45:59 +03:30
|
|
|
|
const canEditOrg = computed(() => canManageSettings(auth.user?.role));
|
2026-08-29 21:06:30 +03:30
|
|
|
|
|
|
|
|
|
|
function roleOptionsFor(user: OrgUserDto): UserRole[] {
|
|
|
|
|
|
if (isOwner.value) return ['owner', 'admin', 'sales', 'support'];
|
|
|
|
|
|
if (user.role === 'owner') return ['owner'];
|
|
|
|
|
|
return ['admin', 'sales', 'support'];
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
async function load() {
|
|
|
|
|
|
loading.value = true;
|
|
|
|
|
|
error.value = '';
|
|
|
|
|
|
try {
|
2026-09-03 16:45:59 +03:30
|
|
|
|
const [usersRes, orgRes] = await Promise.all([
|
|
|
|
|
|
api.get<OrgUserDto[]>('/users'),
|
|
|
|
|
|
api.get<OrganizationDto>('/organizations/current'),
|
|
|
|
|
|
]);
|
|
|
|
|
|
users.value = usersRes.data;
|
|
|
|
|
|
org.value = orgRes.data;
|
|
|
|
|
|
orgName.value = orgRes.data.name;
|
|
|
|
|
|
businessField.value = orgRes.data.businessField ?? '';
|
2026-08-29 21:06:30 +03:30
|
|
|
|
} catch (e) {
|
|
|
|
|
|
if (axios.isAxiosError(e) && !e.response) {
|
|
|
|
|
|
error.value = 'اتصال به API برقرار نشد.';
|
|
|
|
|
|
} else {
|
|
|
|
|
|
error.value = 'بارگذاری کاربران ناموفق بود.';
|
|
|
|
|
|
}
|
|
|
|
|
|
} finally {
|
|
|
|
|
|
loading.value = false;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-09-03 16:45:59 +03:30
|
|
|
|
async function saveOrg() {
|
|
|
|
|
|
if (!canEditOrg.value) return;
|
|
|
|
|
|
if (!businessField.value) {
|
|
|
|
|
|
error.value = 'زمینه فعالیت را انتخاب کنید.';
|
|
|
|
|
|
return;
|
|
|
|
|
|
}
|
|
|
|
|
|
orgSaving.value = true;
|
|
|
|
|
|
error.value = '';
|
|
|
|
|
|
orgOk.value = '';
|
|
|
|
|
|
try {
|
|
|
|
|
|
const payload: UpdateOrganizationRequest = {
|
|
|
|
|
|
name: orgName.value.trim(),
|
|
|
|
|
|
businessField: businessField.value as UpdateOrganizationRequest['businessField'],
|
|
|
|
|
|
};
|
|
|
|
|
|
const { data } = await api.patch<OrganizationDto>('/organizations/current', payload);
|
|
|
|
|
|
org.value = data;
|
|
|
|
|
|
orgName.value = data.name;
|
|
|
|
|
|
businessField.value = data.businessField ?? '';
|
|
|
|
|
|
orgOk.value = 'مشخصات سازمان ذخیره شد.';
|
|
|
|
|
|
} catch (e) {
|
|
|
|
|
|
if (axios.isAxiosError(e)) {
|
|
|
|
|
|
const msg = (e.response?.data as { message?: string | string[] })?.message;
|
|
|
|
|
|
error.value = Array.isArray(msg) ? msg.join('، ') : (msg ?? 'ذخیره سازمان ناموفق بود');
|
|
|
|
|
|
} else {
|
|
|
|
|
|
error.value = 'ذخیره سازمان ناموفق بود';
|
|
|
|
|
|
}
|
|
|
|
|
|
} finally {
|
|
|
|
|
|
orgSaving.value = false;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-08-29 21:06:30 +03:30
|
|
|
|
async function invite() {
|
|
|
|
|
|
if (!email.value.trim() || !fullName.value.trim() || password.value.length < 8) {
|
|
|
|
|
|
error.value = 'نام، ایمیل و رمز حداقل ۸ کاراکتر لازم است.';
|
|
|
|
|
|
return;
|
|
|
|
|
|
}
|
|
|
|
|
|
saving.value = true;
|
|
|
|
|
|
error.value = '';
|
|
|
|
|
|
try {
|
|
|
|
|
|
const payload: InviteUserRequest = {
|
|
|
|
|
|
email: email.value.trim(),
|
|
|
|
|
|
fullName: fullName.value.trim(),
|
|
|
|
|
|
password: password.value,
|
|
|
|
|
|
role: role.value,
|
|
|
|
|
|
};
|
|
|
|
|
|
await api.post('/users', payload);
|
|
|
|
|
|
email.value = '';
|
|
|
|
|
|
fullName.value = '';
|
|
|
|
|
|
password.value = '';
|
|
|
|
|
|
role.value = 'sales';
|
|
|
|
|
|
await load();
|
|
|
|
|
|
} catch (e) {
|
|
|
|
|
|
if (axios.isAxiosError(e)) {
|
|
|
|
|
|
const msg = (e.response?.data as { message?: string | string[] })?.message;
|
|
|
|
|
|
error.value = Array.isArray(msg) ? msg.join('، ') : (msg ?? 'دعوت کاربر ناموفق بود');
|
|
|
|
|
|
} else {
|
|
|
|
|
|
error.value = 'دعوت کاربر ناموفق بود';
|
|
|
|
|
|
}
|
|
|
|
|
|
} finally {
|
|
|
|
|
|
saving.value = false;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-09-11 01:09:59 +03:30
|
|
|
|
async function changeCommission(user: OrgUserDto, raw: string) {
|
|
|
|
|
|
if (!canInvite.value) return;
|
|
|
|
|
|
const next = Number(raw);
|
|
|
|
|
|
if (!Number.isFinite(next) || next === Number(user.commissionPercent ?? 0)) return;
|
|
|
|
|
|
error.value = '';
|
|
|
|
|
|
try {
|
|
|
|
|
|
await api.patch(`/users/${user.id}/commission`, { commissionPercent: next });
|
|
|
|
|
|
await load();
|
|
|
|
|
|
} catch (e) {
|
|
|
|
|
|
if (axios.isAxiosError(e)) {
|
|
|
|
|
|
const msg = (e.response?.data as { message?: string | string[] })?.message;
|
|
|
|
|
|
error.value = Array.isArray(msg) ? msg.join('، ') : (msg ?? 'ذخیره پورسانت ناموفق بود');
|
|
|
|
|
|
} else {
|
|
|
|
|
|
error.value = 'ذخیره پورسانت ناموفق بود';
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-08-29 21:06:30 +03:30
|
|
|
|
async function changeRole(user: OrgUserDto, next: string) {
|
|
|
|
|
|
const nextRole = next as UserRole;
|
|
|
|
|
|
if (nextRole === user.role) return;
|
|
|
|
|
|
error.value = '';
|
|
|
|
|
|
try {
|
|
|
|
|
|
await api.patch(`/users/${user.id}/role`, { role: nextRole });
|
|
|
|
|
|
await load();
|
|
|
|
|
|
} catch (e) {
|
|
|
|
|
|
if (axios.isAxiosError(e)) {
|
|
|
|
|
|
const msg = (e.response?.data as { message?: string | string[] })?.message;
|
|
|
|
|
|
error.value = Array.isArray(msg) ? msg.join('، ') : (msg ?? 'تغییر نقش ناموفق بود');
|
|
|
|
|
|
} else {
|
|
|
|
|
|
error.value = 'تغییر نقش ناموفق بود';
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
onMounted(load);
|
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
<template>
|
|
|
|
|
|
<section class="page">
|
2026-09-05 02:29:41 +03:30
|
|
|
|
<header class="page-head">
|
|
|
|
|
|
<div class="head-copy">
|
|
|
|
|
|
<h1>تیم و نقشها</h1>
|
|
|
|
|
|
<p class="lead">
|
2026-09-11 01:09:59 +03:30
|
|
|
|
زمینه فعالیت سازمان، نقشها و درصد پیشفرض پورسانت هر کارشناس را اینجا مدیریت کنید.
|
2026-09-05 02:29:41 +03:30
|
|
|
|
</p>
|
|
|
|
|
|
</div>
|
2026-08-29 21:06:30 +03:30
|
|
|
|
</header>
|
|
|
|
|
|
|
2026-09-05 02:29:41 +03:30
|
|
|
|
<form v-if="org" class="panel" @submit.prevent="saveOrg">
|
2026-09-03 16:45:59 +03:30
|
|
|
|
<h2>سازمان</h2>
|
|
|
|
|
|
<div class="grid">
|
|
|
|
|
|
<label>
|
|
|
|
|
|
نام سازمان
|
|
|
|
|
|
<input v-model="orgName" :disabled="!canEditOrg" required minlength="2" />
|
|
|
|
|
|
</label>
|
|
|
|
|
|
<label>
|
|
|
|
|
|
زمینه فعالیت
|
|
|
|
|
|
<select v-model="businessField" :disabled="!canEditOrg" required>
|
|
|
|
|
|
<option value="" disabled>انتخاب کنید</option>
|
|
|
|
|
|
<option v-for="id in BUSINESS_FIELDS" :key="id" :value="id">
|
|
|
|
|
|
{{ BUSINESS_FIELD_LABELS[id] }}
|
|
|
|
|
|
</option>
|
|
|
|
|
|
</select>
|
|
|
|
|
|
</label>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<p v-if="orgOk" class="ok">{{ orgOk }}</p>
|
2026-09-05 02:29:41 +03:30
|
|
|
|
<button v-if="canEditOrg" class="btn primary" type="submit" :disabled="orgSaving">
|
2026-09-03 16:45:59 +03:30
|
|
|
|
{{ orgSaving ? 'در حال ذخیره…' : 'ذخیره مشخصات سازمان' }}
|
|
|
|
|
|
</button>
|
|
|
|
|
|
</form>
|
|
|
|
|
|
|
2026-08-29 21:06:30 +03:30
|
|
|
|
<p v-if="error" class="error">{{ error }}</p>
|
|
|
|
|
|
<p v-else-if="loading" class="muted">در حال بارگذاری…</p>
|
|
|
|
|
|
|
2026-09-05 02:29:41 +03:30
|
|
|
|
<form v-if="canInvite" class="panel" @submit.prevent="invite">
|
2026-08-29 21:06:30 +03:30
|
|
|
|
<h2>دعوت کاربر</h2>
|
|
|
|
|
|
<div class="grid">
|
|
|
|
|
|
<label>
|
|
|
|
|
|
نام کامل
|
|
|
|
|
|
<input v-model="fullName" required maxlength="120" />
|
|
|
|
|
|
</label>
|
|
|
|
|
|
<label>
|
|
|
|
|
|
ایمیل
|
|
|
|
|
|
<input v-model="email" type="email" required />
|
|
|
|
|
|
</label>
|
|
|
|
|
|
<label>
|
|
|
|
|
|
رمز عبور موقت
|
|
|
|
|
|
<input v-model="password" type="password" required minlength="8" />
|
|
|
|
|
|
</label>
|
|
|
|
|
|
<label>
|
|
|
|
|
|
نقش
|
|
|
|
|
|
<select v-model="role">
|
|
|
|
|
|
<option v-for="opt in inviteRoles" :key="opt.value" :value="opt.value">
|
|
|
|
|
|
{{ opt.label }}
|
|
|
|
|
|
</option>
|
|
|
|
|
|
</select>
|
|
|
|
|
|
</label>
|
|
|
|
|
|
</div>
|
2026-09-05 02:29:41 +03:30
|
|
|
|
<button class="btn primary" type="submit" :disabled="saving">
|
2026-08-29 21:06:30 +03:30
|
|
|
|
{{ saving ? 'در حال ثبت…' : 'افزودن کاربر' }}
|
|
|
|
|
|
</button>
|
|
|
|
|
|
</form>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="list">
|
|
|
|
|
|
<article v-for="user in users" :key="user.id" class="row">
|
|
|
|
|
|
<div>
|
|
|
|
|
|
<strong>{{ user.fullName }}</strong>
|
|
|
|
|
|
<p class="muted">{{ user.email }}</p>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="role-cell">
|
2026-09-11 01:09:59 +03:30
|
|
|
|
<label class="comm-field">
|
|
|
|
|
|
<span>پورسانت %</span>
|
|
|
|
|
|
<input
|
|
|
|
|
|
type="number"
|
|
|
|
|
|
min="0"
|
|
|
|
|
|
max="100"
|
|
|
|
|
|
step="0.1"
|
|
|
|
|
|
:value="user.commissionPercent ?? 0"
|
|
|
|
|
|
:disabled="!canInvite"
|
|
|
|
|
|
@change="changeCommission(user, ($event.target as HTMLInputElement).value)"
|
|
|
|
|
|
/>
|
|
|
|
|
|
</label>
|
2026-08-29 21:06:30 +03:30
|
|
|
|
<template v-if="canInvite">
|
|
|
|
|
|
<select
|
|
|
|
|
|
:value="user.role"
|
|
|
|
|
|
:disabled="!isOwner && user.role === 'owner'"
|
|
|
|
|
|
@change="changeRole(user, ($event.target as HTMLSelectElement).value)"
|
|
|
|
|
|
>
|
|
|
|
|
|
<option
|
|
|
|
|
|
v-for="r in roleOptionsFor(user)"
|
|
|
|
|
|
:key="r"
|
|
|
|
|
|
:value="r"
|
|
|
|
|
|
>
|
|
|
|
|
|
{{ USER_ROLE_LABELS[r] }}
|
|
|
|
|
|
</option>
|
|
|
|
|
|
</select>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
<span v-else class="role-pill">{{ USER_ROLE_LABELS[user.role] }}</span>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</article>
|
|
|
|
|
|
<p v-if="!loading && !users.length" class="muted">کاربری نیست.</p>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</section>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<style scoped>
|
|
|
|
|
|
.page {
|
|
|
|
|
|
display: grid;
|
2026-09-05 02:29:41 +03:30
|
|
|
|
gap: 1rem;
|
2026-08-29 21:06:30 +03:30
|
|
|
|
max-width: 820px;
|
2026-09-05 02:29:41 +03:30
|
|
|
|
min-width: 0;
|
|
|
|
|
|
overflow-x: clip;
|
2026-08-29 21:06:30 +03:30
|
|
|
|
}
|
|
|
|
|
|
|
2026-09-05 02:29:41 +03:30
|
|
|
|
.page-head {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
|
gap: 1rem;
|
|
|
|
|
|
align-items: flex-start;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.head-copy {
|
|
|
|
|
|
min-width: 0;
|
2026-08-29 21:06:30 +03:30
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
h1 {
|
2026-09-05 02:29:41 +03:30
|
|
|
|
margin: 0 0 0.3rem;
|
|
|
|
|
|
font-size: clamp(1.45rem, 2.5vw, 1.85rem);
|
|
|
|
|
|
font-weight: 800;
|
2026-08-29 21:06:30 +03:30
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.lead,
|
|
|
|
|
|
.muted {
|
2026-09-05 02:29:41 +03:30
|
|
|
|
margin: 0;
|
|
|
|
|
|
color: #64748b;
|
2026-08-29 21:06:30 +03:30
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.error {
|
2026-09-05 02:29:41 +03:30
|
|
|
|
margin: 0;
|
|
|
|
|
|
color: #b91c1c;
|
2026-08-29 21:06:30 +03:30
|
|
|
|
}
|
|
|
|
|
|
|
2026-09-03 16:45:59 +03:30
|
|
|
|
.ok {
|
|
|
|
|
|
margin: 0;
|
|
|
|
|
|
color: #0f766e;
|
|
|
|
|
|
font-size: 0.9rem;
|
2026-09-05 02:29:41 +03:30
|
|
|
|
font-weight: 600;
|
2026-09-03 16:45:59 +03:30
|
|
|
|
}
|
|
|
|
|
|
|
2026-09-05 02:29:41 +03:30
|
|
|
|
.panel,
|
2026-08-29 21:06:30 +03:30
|
|
|
|
.row {
|
2026-09-05 02:29:41 +03:30
|
|
|
|
background: #fff;
|
|
|
|
|
|
border: 1px solid #e2e8f0;
|
|
|
|
|
|
border-radius: 18px;
|
|
|
|
|
|
box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
|
|
|
|
|
|
padding: 1.1rem;
|
2026-08-29 21:06:30 +03:30
|
|
|
|
}
|
|
|
|
|
|
|
2026-09-05 02:29:41 +03:30
|
|
|
|
.panel {
|
2026-08-29 21:06:30 +03:30
|
|
|
|
display: grid;
|
|
|
|
|
|
gap: 0.85rem;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-09-05 02:29:41 +03:30
|
|
|
|
.panel h2 {
|
2026-08-29 21:06:30 +03:30
|
|
|
|
margin: 0;
|
|
|
|
|
|
font-size: 1rem;
|
2026-09-05 02:29:41 +03:30
|
|
|
|
font-weight: 700;
|
|
|
|
|
|
color: #0f172a;
|
2026-08-29 21:06:30 +03:30
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.grid {
|
|
|
|
|
|
display: grid;
|
|
|
|
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
|
|
|
|
gap: 0.75rem;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
label {
|
|
|
|
|
|
display: grid;
|
|
|
|
|
|
gap: 0.35rem;
|
|
|
|
|
|
font-size: 0.9rem;
|
2026-09-05 02:29:41 +03:30
|
|
|
|
color: #64748b;
|
2026-08-29 21:06:30 +03:30
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
input,
|
|
|
|
|
|
select {
|
2026-09-05 02:29:41 +03:30
|
|
|
|
border: 1px solid #e2e8f0;
|
2026-09-10 23:45:11 +03:30
|
|
|
|
border-radius: var(--radius);
|
|
|
|
|
|
min-height: var(--control-h);
|
|
|
|
|
|
padding: 0 0.85rem;
|
2026-08-29 21:06:30 +03:30
|
|
|
|
font: inherit;
|
|
|
|
|
|
background: #fff;
|
2026-09-05 02:29:41 +03:30
|
|
|
|
color: #0f172a;
|
2026-09-10 23:45:11 +03:30
|
|
|
|
box-sizing: border-box;
|
2026-09-05 02:29:41 +03:30
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.btn {
|
|
|
|
|
|
display: inline-flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
justify-content: center;
|
2026-09-10 23:45:11 +03:30
|
|
|
|
min-height: var(--control-h);
|
|
|
|
|
|
padding: 0 0.95rem;
|
|
|
|
|
|
border-radius: var(--radius);
|
2026-09-05 02:29:41 +03:30
|
|
|
|
font-weight: 700;
|
|
|
|
|
|
border: 1px solid transparent;
|
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
font: inherit;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.btn.primary {
|
|
|
|
|
|
background: #14b8a6;
|
|
|
|
|
|
color: #fff;
|
|
|
|
|
|
box-shadow: 0 8px 18px rgba(20, 184, 166, 0.24);
|
2026-08-29 21:06:30 +03:30
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.list {
|
|
|
|
|
|
display: grid;
|
|
|
|
|
|
gap: 0.65rem;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.row {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
|
gap: 1rem;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
flex-wrap: wrap;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.row p {
|
|
|
|
|
|
margin: 0.2rem 0 0;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-09-11 01:09:59 +03:30
|
|
|
|
.role-cell {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
gap: 0.55rem;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.comm-field {
|
|
|
|
|
|
display: grid;
|
|
|
|
|
|
gap: 0.15rem;
|
|
|
|
|
|
font-size: 0.75rem;
|
|
|
|
|
|
color: #64748b;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.comm-field input {
|
|
|
|
|
|
width: 4.8rem;
|
|
|
|
|
|
padding: 0 0.45rem;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-08-29 21:06:30 +03:30
|
|
|
|
.role-pill {
|
2026-09-05 02:29:41 +03:30
|
|
|
|
background: #f0fdfa;
|
|
|
|
|
|
color: #0f766e;
|
2026-08-29 21:06:30 +03:30
|
|
|
|
border-radius: 999px;
|
|
|
|
|
|
padding: 0.25rem 0.7rem;
|
|
|
|
|
|
font-size: 0.85rem;
|
|
|
|
|
|
font-weight: 700;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@media (max-width: 700px) {
|
|
|
|
|
|
.grid {
|
|
|
|
|
|
grid-template-columns: 1fr;
|
|
|
|
|
|
}
|
2026-09-05 02:29:41 +03:30
|
|
|
|
|
|
|
|
|
|
.row {
|
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
|
align-items: stretch;
|
|
|
|
|
|
}
|
2026-08-29 21:06:30 +03:30
|
|
|
|
}
|
|
|
|
|
|
</style>
|