2026-08-29 21:06:30 +03:30
|
|
|
|
<script setup lang="ts">
|
2026-09-11 14:47:01 +03:30
|
|
|
|
import { computed, nextTick, onMounted, onUnmounted, ref, watch } from 'vue';
|
2026-08-29 21:06:30 +03:30
|
|
|
|
import { RouterLink, RouterView, useRoute, useRouter } from 'vue-router';
|
|
|
|
|
|
import { useAuthStore } from '@/stores/auth';
|
|
|
|
|
|
import { api } from '@/lib/api';
|
2026-09-01 15:39:18 +03:30
|
|
|
|
import { formatJalaliShort, toFaDigits } from '@/lib/jalali';
|
|
|
|
|
|
import UiIcon from '@/components/UiIcon.vue';
|
2026-09-01 16:05:29 +03:30
|
|
|
|
import MentoLogo from '@/components/brand/MentoLogo.vue';
|
2026-09-03 14:20:55 +03:30
|
|
|
|
import QuickCreate from '@/components/QuickCreate.vue';
|
2026-09-15 21:37:58 +03:30
|
|
|
|
import OrgSwitcher from '@/components/OrgSwitcher.vue';
|
2026-09-11 17:37:24 +03:30
|
|
|
|
import NavHubPanel from '@/components/nav/NavHubPanel.vue';
|
|
|
|
|
|
import { NAV_HUBS, type NavHubDef, type NavHubKey } from '@/lib/nav-hubs';
|
2026-09-01 15:21:54 +03:30
|
|
|
|
import type {
|
|
|
|
|
|
ActivitySummaryDto,
|
|
|
|
|
|
NotificationDto,
|
|
|
|
|
|
NotificationsListDto,
|
|
|
|
|
|
} from '@mento/shared';
|
2026-09-07 11:49:54 +03:30
|
|
|
|
import { brand } from '@mento/shared';
|
2026-09-09 17:51:40 +03:30
|
|
|
|
import { canManageSettings, canViewAllRecords } from '@/lib/roles';
|
2026-08-29 21:06:30 +03:30
|
|
|
|
|
|
|
|
|
|
const auth = useAuthStore();
|
|
|
|
|
|
const router = useRouter();
|
|
|
|
|
|
const route = useRoute();
|
|
|
|
|
|
|
|
|
|
|
|
const canSettings = computed(() => canManageSettings(auth.user?.role));
|
|
|
|
|
|
const showOwnRecordsBanner = computed(
|
|
|
|
|
|
() => Boolean(auth.user?.role) && !canViewAllRecords(auth.user?.role),
|
|
|
|
|
|
);
|
2026-09-01 15:39:18 +03:30
|
|
|
|
const todayLabel = computed(() => formatJalaliShort(new Date()));
|
2026-08-29 21:06:30 +03:30
|
|
|
|
|
2026-09-09 17:51:40 +03:30
|
|
|
|
const SIDEBAR_KEY = 'mento_sidebar_collapsed';
|
|
|
|
|
|
const collapsed = ref(false);
|
|
|
|
|
|
|
2026-09-11 17:37:24 +03:30
|
|
|
|
const openHubKey = ref<NavHubKey | null>(null);
|
2026-09-01 15:21:54 +03:30
|
|
|
|
const globalSearch = ref('');
|
|
|
|
|
|
const activityBadge = ref(0);
|
2026-08-30 10:06:41 +03:30
|
|
|
|
|
|
|
|
|
|
function pathIn(prefixes: string[]) {
|
|
|
|
|
|
return prefixes.some(
|
|
|
|
|
|
(p) => route.path === p || route.path.startsWith(`${p}/`),
|
|
|
|
|
|
);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-09-14 19:19:09 +03:30
|
|
|
|
const dashboardActive = computed(() => route.path === '/');
|
|
|
|
|
|
const loyaltyActive = computed(() => pathIn(['/loyalty']));
|
|
|
|
|
|
const reportsActive = computed(() => pathIn(['/reports']));
|
2026-09-11 14:47:01 +03:30
|
|
|
|
const customersActive = computed(() => pathIn(['/contacts']));
|
|
|
|
|
|
const salesActive = computed(() =>
|
|
|
|
|
|
pathIn(['/pipeline', '/deals', '/quotes', '/invoices', '/commissions', '/sales/forecast', '/settings/products']),
|
|
|
|
|
|
);
|
|
|
|
|
|
const activitiesActive = computed(() => pathIn(['/activities']));
|
|
|
|
|
|
const notesActive = computed(() => route.path === '/notes' || route.path.startsWith('/notes/'));
|
|
|
|
|
|
const supportActive = computed(() => pathIn(['/tickets']));
|
2026-09-14 16:49:43 +03:30
|
|
|
|
const automationsActive = computed(
|
|
|
|
|
|
() =>
|
|
|
|
|
|
route.path.startsWith('/settings/automations') ||
|
2026-09-26 16:12:29 +03:30
|
|
|
|
route.path.startsWith('/settings/message-automations') ||
|
|
|
|
|
|
route.path.startsWith('/settings/sms-campaigns'),
|
2026-09-13 19:11:47 +03:30
|
|
|
|
);
|
2026-09-11 14:47:01 +03:30
|
|
|
|
const toolsActive = computed(() =>
|
2026-09-27 09:38:17 +03:30
|
|
|
|
pathIn([
|
|
|
|
|
|
'/settings/lead-forms',
|
|
|
|
|
|
'/projects',
|
|
|
|
|
|
'/project-cards',
|
|
|
|
|
|
'/inventory',
|
|
|
|
|
|
'/cheques',
|
|
|
|
|
|
'/attachments',
|
|
|
|
|
|
'/reservations',
|
|
|
|
|
|
]),
|
2026-09-11 14:47:01 +03:30
|
|
|
|
);
|
|
|
|
|
|
const settingsActive = computed(() =>
|
2026-09-09 17:51:40 +03:30
|
|
|
|
pathIn([
|
2026-09-11 14:47:01 +03:30
|
|
|
|
'/settings/team',
|
2026-09-26 16:12:29 +03:30
|
|
|
|
'/settings/audit-logs',
|
|
|
|
|
|
'/settings/public-api',
|
2026-09-09 17:51:40 +03:30
|
|
|
|
'/settings/custom-fields',
|
|
|
|
|
|
'/settings/currencies',
|
|
|
|
|
|
'/settings/tahesab',
|
2026-09-26 17:59:16 +03:30
|
|
|
|
'/settings/woocommerce',
|
2026-09-27 08:47:11 +03:30
|
|
|
|
'/settings/voip',
|
2026-09-09 17:51:40 +03:30
|
|
|
|
'/settings/faq',
|
2026-09-11 14:47:01 +03:30
|
|
|
|
]),
|
2026-09-09 17:51:40 +03:30
|
|
|
|
);
|
2026-09-14 19:19:09 +03:30
|
|
|
|
const moreSectionActive = computed(
|
|
|
|
|
|
() =>
|
|
|
|
|
|
notesActive.value ||
|
|
|
|
|
|
supportActive.value ||
|
|
|
|
|
|
loyaltyActive.value ||
|
|
|
|
|
|
reportsActive.value ||
|
|
|
|
|
|
automationsActive.value ||
|
|
|
|
|
|
toolsActive.value ||
|
|
|
|
|
|
settingsActive.value,
|
|
|
|
|
|
);
|
|
|
|
|
|
|
2026-09-20 11:24:14 +03:30
|
|
|
|
const enabledModules = computed(() => auth.user?.enabledModules ?? null);
|
|
|
|
|
|
const subscription = computed(() => auth.user?.subscription ?? null);
|
|
|
|
|
|
|
|
|
|
|
|
function moduleAllowed(module?: string) {
|
|
|
|
|
|
if (!module) return true;
|
|
|
|
|
|
if (!enabledModules.value) return true;
|
|
|
|
|
|
return enabledModules.value.includes(module as never);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-09-11 17:37:24 +03:30
|
|
|
|
const openHub = computed<NavHubDef | null>(() => {
|
|
|
|
|
|
if (!openHubKey.value) return null;
|
|
|
|
|
|
const hub = NAV_HUBS.find((item) => item.key === openHubKey.value);
|
|
|
|
|
|
if (!hub) return null;
|
|
|
|
|
|
return {
|
|
|
|
|
|
...hub,
|
2026-09-20 11:24:14 +03:30
|
|
|
|
cards: hub.cards.filter(
|
|
|
|
|
|
(card) =>
|
|
|
|
|
|
(!card.admin || canSettings.value) && moduleAllowed(card.module),
|
|
|
|
|
|
),
|
|
|
|
|
|
shortcuts: hub.shortcuts.filter(
|
|
|
|
|
|
(item) =>
|
|
|
|
|
|
(!item.admin || canSettings.value) && moduleAllowed(item.module),
|
|
|
|
|
|
),
|
2026-09-11 17:37:24 +03:30
|
|
|
|
};
|
|
|
|
|
|
});
|
2026-09-11 14:47:01 +03:30
|
|
|
|
|
2026-09-20 11:24:14 +03:30
|
|
|
|
const hubVisible = computed(() => {
|
|
|
|
|
|
const map: Record<string, boolean> = {};
|
|
|
|
|
|
for (const hub of NAV_HUBS) {
|
|
|
|
|
|
map[hub.key] = hub.cards.some(
|
|
|
|
|
|
(card) =>
|
|
|
|
|
|
(!card.admin || canSettings.value) && moduleAllowed(card.module),
|
|
|
|
|
|
);
|
|
|
|
|
|
}
|
|
|
|
|
|
return map;
|
|
|
|
|
|
});
|
|
|
|
|
|
|
2026-09-11 14:47:01 +03:30
|
|
|
|
function givenName(fullName: string): string {
|
|
|
|
|
|
const parts = fullName.trim().split(/\s+/).filter(Boolean);
|
|
|
|
|
|
if (parts.length <= 1) return fullName.trim();
|
|
|
|
|
|
return parts.slice(0, -1).join(' ');
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
const profileNameEl = ref<HTMLElement | null>(null);
|
|
|
|
|
|
const useShortProfileName = ref(false);
|
|
|
|
|
|
const profileFullName = computed(() => auth.user?.fullName?.trim() || '');
|
|
|
|
|
|
const profileDisplayName = computed(() => {
|
|
|
|
|
|
if (!profileFullName.value) return '';
|
|
|
|
|
|
return useShortProfileName.value
|
|
|
|
|
|
? givenName(profileFullName.value)
|
|
|
|
|
|
: profileFullName.value;
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
async function fitProfileName() {
|
|
|
|
|
|
if (collapsed.value) {
|
|
|
|
|
|
useShortProfileName.value = false;
|
|
|
|
|
|
return;
|
|
|
|
|
|
}
|
|
|
|
|
|
useShortProfileName.value = false;
|
|
|
|
|
|
await nextTick();
|
|
|
|
|
|
const el = profileNameEl.value;
|
|
|
|
|
|
if (!el) return;
|
|
|
|
|
|
if (el.scrollWidth > el.clientWidth + 1) {
|
|
|
|
|
|
useShortProfileName.value = true;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
let profileNameObserver: ResizeObserver | null = null;
|
|
|
|
|
|
|
|
|
|
|
|
watch([profileFullName, collapsed], () => {
|
|
|
|
|
|
void fitProfileName();
|
|
|
|
|
|
});
|
2026-08-30 10:06:41 +03:30
|
|
|
|
|
2026-09-11 17:37:24 +03:30
|
|
|
|
function closeHub() {
|
|
|
|
|
|
openHubKey.value = null;
|
2026-09-11 14:47:01 +03:30
|
|
|
|
}
|
|
|
|
|
|
|
2026-09-11 17:37:24 +03:30
|
|
|
|
function onHubClick(key: NavHubKey) {
|
|
|
|
|
|
openHubKey.value = openHubKey.value === key ? null : key;
|
2026-09-14 19:19:09 +03:30
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function openTabHub(key: NavHubKey) {
|
|
|
|
|
|
moreOpen.value = false;
|
|
|
|
|
|
notifOpen.value = false;
|
|
|
|
|
|
onHubClick(key);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function openMoreHub(key: NavHubKey) {
|
|
|
|
|
|
notifOpen.value = false;
|
|
|
|
|
|
onHubClick(key);
|
2026-09-11 17:37:24 +03:30
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function goHub(to: string) {
|
|
|
|
|
|
closeHub();
|
|
|
|
|
|
closeMenu();
|
|
|
|
|
|
void router.push(to);
|
2026-08-30 10:06:41 +03:30
|
|
|
|
}
|
|
|
|
|
|
|
2026-09-14 19:19:09 +03:30
|
|
|
|
const moreOpen = ref(false);
|
2026-08-29 21:06:30 +03:30
|
|
|
|
const notifOpen = ref(false);
|
|
|
|
|
|
const loading = ref(false);
|
|
|
|
|
|
const unreadCount = ref(0);
|
|
|
|
|
|
const items = ref<NotificationDto[]>([]);
|
|
|
|
|
|
let pollTimer: ReturnType<typeof setInterval> | null = null;
|
2026-09-14 19:19:09 +03:30
|
|
|
|
let mobileMq: MediaQueryList | null = null;
|
2026-08-29 21:06:30 +03:30
|
|
|
|
|
|
|
|
|
|
const hasUnread = computed(() => unreadCount.value > 0);
|
2026-09-14 19:19:09 +03:30
|
|
|
|
const moreTabActive = computed(() => moreOpen.value || moreSectionActive.value);
|
|
|
|
|
|
|
|
|
|
|
|
function closeMore() {
|
|
|
|
|
|
moreOpen.value = false;
|
|
|
|
|
|
}
|
2026-08-29 21:06:30 +03:30
|
|
|
|
|
|
|
|
|
|
function closeMenu() {
|
2026-09-14 19:19:09 +03:30
|
|
|
|
closeMore();
|
2026-09-09 17:51:40 +03:30
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function toggleCollapsed() {
|
|
|
|
|
|
collapsed.value = !collapsed.value;
|
|
|
|
|
|
try {
|
|
|
|
|
|
localStorage.setItem(SIDEBAR_KEY, collapsed.value ? '1' : '0');
|
|
|
|
|
|
} catch {
|
|
|
|
|
|
// ignore
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-08-29 21:06:30 +03:30
|
|
|
|
function closeNotif() {
|
|
|
|
|
|
notifOpen.value = false;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-09-14 19:19:09 +03:30
|
|
|
|
function onMobileMqChange(event: MediaQueryListEvent) {
|
|
|
|
|
|
if (!event.matches) closeMore();
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-08-29 21:06:30 +03:30
|
|
|
|
function onLogout() {
|
2026-09-11 17:37:24 +03:30
|
|
|
|
closeHub();
|
2026-08-29 21:06:30 +03:30
|
|
|
|
closeMenu();
|
|
|
|
|
|
closeNotif();
|
|
|
|
|
|
auth.logout();
|
|
|
|
|
|
router.push({ name: 'login' });
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-09-01 15:21:54 +03:30
|
|
|
|
async function refreshNotifs() {
|
2026-08-29 21:06:30 +03:30
|
|
|
|
if (!auth.isAuthenticated) return;
|
|
|
|
|
|
loading.value = true;
|
|
|
|
|
|
try {
|
|
|
|
|
|
const { data } = await api.get<NotificationsListDto>('/notifications', {
|
|
|
|
|
|
params: { limit: 20 },
|
|
|
|
|
|
});
|
|
|
|
|
|
items.value = data.items;
|
|
|
|
|
|
unreadCount.value = data.unreadCount;
|
|
|
|
|
|
} catch {
|
|
|
|
|
|
// keep previous
|
|
|
|
|
|
} finally {
|
|
|
|
|
|
loading.value = false;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-09-01 15:21:54 +03:30
|
|
|
|
async function loadActivityBadge() {
|
|
|
|
|
|
try {
|
|
|
|
|
|
const { data } = await api.get<ActivitySummaryDto>('/activities/summary');
|
|
|
|
|
|
activityBadge.value = data.todayCount + data.overdueCount;
|
|
|
|
|
|
} catch {
|
|
|
|
|
|
activityBadge.value = 0;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-08-29 21:06:30 +03:30
|
|
|
|
async function markRead(item: NotificationDto) {
|
|
|
|
|
|
if (!item.readAt) {
|
|
|
|
|
|
await api.patch(`/notifications/${item.id}/read`);
|
|
|
|
|
|
item.readAt = new Date().toISOString();
|
|
|
|
|
|
unreadCount.value = Math.max(0, unreadCount.value - 1);
|
|
|
|
|
|
}
|
|
|
|
|
|
closeNotif();
|
|
|
|
|
|
closeMenu();
|
2026-09-01 15:39:18 +03:30
|
|
|
|
if (item.link) await router.push(item.link);
|
2026-08-29 21:06:30 +03:30
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
async function markAll() {
|
|
|
|
|
|
await api.patch('/notifications/read-all');
|
|
|
|
|
|
items.value = items.value.map((n) => ({
|
|
|
|
|
|
...n,
|
|
|
|
|
|
readAt: n.readAt ?? new Date().toISOString(),
|
|
|
|
|
|
}));
|
|
|
|
|
|
unreadCount.value = 0;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-09-14 19:19:09 +03:30
|
|
|
|
function toggleMore() {
|
2026-08-29 21:06:30 +03:30
|
|
|
|
notifOpen.value = false;
|
2026-09-14 19:19:09 +03:30
|
|
|
|
if (moreOpen.value) {
|
|
|
|
|
|
moreOpen.value = false;
|
|
|
|
|
|
return;
|
|
|
|
|
|
}
|
|
|
|
|
|
closeHub();
|
|
|
|
|
|
moreOpen.value = true;
|
2026-08-29 21:06:30 +03:30
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function toggleNotif() {
|
2026-09-14 19:19:09 +03:30
|
|
|
|
moreOpen.value = false;
|
2026-08-29 21:06:30 +03:30
|
|
|
|
notifOpen.value = !notifOpen.value;
|
2026-09-01 15:21:54 +03:30
|
|
|
|
if (notifOpen.value) void refreshNotifs();
|
2026-08-29 21:06:30 +03:30
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function formatTime(iso: string) {
|
|
|
|
|
|
try {
|
|
|
|
|
|
return new Intl.DateTimeFormat('fa-IR', {
|
|
|
|
|
|
dateStyle: 'short',
|
|
|
|
|
|
timeStyle: 'short',
|
|
|
|
|
|
}).format(new Date(iso));
|
|
|
|
|
|
} catch {
|
|
|
|
|
|
return iso;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-09-01 15:21:54 +03:30
|
|
|
|
function submitSearch() {
|
|
|
|
|
|
const q = globalSearch.value.trim();
|
|
|
|
|
|
if (!q) return;
|
|
|
|
|
|
void router.push({ name: 'contacts', query: { q } });
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-09-11 17:37:24 +03:30
|
|
|
|
function syncBodyLock() {
|
2026-09-14 19:19:09 +03:30
|
|
|
|
const overlay = moreOpen.value || Boolean(openHubKey.value);
|
2026-09-11 17:37:24 +03:30
|
|
|
|
document.body.style.overflow =
|
2026-09-14 19:19:09 +03:30
|
|
|
|
overlay || notifOpen.value ? 'hidden' : '';
|
|
|
|
|
|
document.body.classList.toggle('mobile-nav-overlay', overlay);
|
2026-09-11 17:37:24 +03:30
|
|
|
|
}
|
2026-09-14 19:19:09 +03:30
|
|
|
|
watch(moreOpen, syncBodyLock);
|
2026-09-11 17:37:24 +03:30
|
|
|
|
watch(notifOpen, syncBodyLock);
|
|
|
|
|
|
watch(openHubKey, syncBodyLock);
|
2026-08-29 21:06:30 +03:30
|
|
|
|
watch(
|
|
|
|
|
|
() => route.fullPath,
|
|
|
|
|
|
() => {
|
|
|
|
|
|
closeMenu();
|
|
|
|
|
|
closeNotif();
|
2026-09-11 17:37:24 +03:30
|
|
|
|
closeHub();
|
2026-08-29 21:06:30 +03:30
|
|
|
|
},
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
onMounted(() => {
|
2026-09-09 17:51:40 +03:30
|
|
|
|
try {
|
|
|
|
|
|
collapsed.value = localStorage.getItem(SIDEBAR_KEY) === '1';
|
|
|
|
|
|
} catch {
|
|
|
|
|
|
collapsed.value = false;
|
|
|
|
|
|
}
|
2026-09-01 15:21:54 +03:30
|
|
|
|
void refreshNotifs();
|
|
|
|
|
|
void loadActivityBadge();
|
2026-09-01 15:39:18 +03:30
|
|
|
|
pollTimer = setInterval(() => void refreshNotifs(), 45000);
|
2026-09-11 14:47:01 +03:30
|
|
|
|
void fitProfileName();
|
|
|
|
|
|
if (typeof ResizeObserver !== 'undefined') {
|
|
|
|
|
|
profileNameObserver = new ResizeObserver(() => {
|
|
|
|
|
|
void fitProfileName();
|
|
|
|
|
|
});
|
|
|
|
|
|
const meta = profileNameEl.value?.parentElement;
|
|
|
|
|
|
if (meta) profileNameObserver.observe(meta);
|
|
|
|
|
|
}
|
2026-09-14 19:19:09 +03:30
|
|
|
|
mobileMq = window.matchMedia('(max-width: 900px)');
|
|
|
|
|
|
mobileMq.addEventListener('change', onMobileMqChange);
|
2026-08-29 21:06:30 +03:30
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
onUnmounted(() => {
|
|
|
|
|
|
if (pollTimer) clearInterval(pollTimer);
|
|
|
|
|
|
document.body.style.overflow = '';
|
2026-09-14 19:19:09 +03:30
|
|
|
|
document.body.classList.remove('mobile-nav-overlay');
|
2026-09-11 14:47:01 +03:30
|
|
|
|
profileNameObserver?.disconnect();
|
2026-09-14 19:19:09 +03:30
|
|
|
|
mobileMq?.removeEventListener('change', onMobileMqChange);
|
2026-08-29 21:06:30 +03:30
|
|
|
|
});
|
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
<template>
|
2026-09-14 19:19:09 +03:30
|
|
|
|
<div class="shell" :class="{ collapsed, 'hub-open': Boolean(openHub), 'more-open': moreOpen }">
|
2026-08-29 21:06:30 +03:30
|
|
|
|
|
2026-09-14 19:19:09 +03:30
|
|
|
|
<aside id="app-sidebar" class="sidebar" :class="{ collapsed }">
|
2026-09-01 15:39:18 +03:30
|
|
|
|
<div class="brand-row">
|
2026-09-09 17:51:40 +03:30
|
|
|
|
<div class="brand-cluster">
|
|
|
|
|
|
<MentoLogo class="sidebar-logo" :size="32" />
|
|
|
|
|
|
<RouterLink
|
|
|
|
|
|
class="profile-card"
|
|
|
|
|
|
:to="{ name: 'profile' }"
|
|
|
|
|
|
:title="auth.user?.fullName || 'پروفایل'"
|
|
|
|
|
|
@click="closeMenu"
|
|
|
|
|
|
>
|
|
|
|
|
|
<span class="avatar-wrap">
|
|
|
|
|
|
<span class="avatar">
|
|
|
|
|
|
<img
|
2026-09-15 14:10:52 +03:30
|
|
|
|
:src="auth.avatarSrc"
|
2026-09-09 17:51:40 +03:30
|
|
|
|
:alt="auth.user?.fullName || 'کاربر'"
|
|
|
|
|
|
width="36"
|
|
|
|
|
|
height="36"
|
|
|
|
|
|
/>
|
|
|
|
|
|
</span>
|
|
|
|
|
|
<i class="online-dot" title="آنلاین" aria-hidden="true" />
|
|
|
|
|
|
</span>
|
|
|
|
|
|
<span class="profile-meta">
|
2026-09-11 14:47:01 +03:30
|
|
|
|
<strong ref="profileNameEl">{{ profileDisplayName }}</strong>
|
2026-09-09 17:51:40 +03:30
|
|
|
|
</span>
|
|
|
|
|
|
</RouterLink>
|
|
|
|
|
|
</div>
|
2026-09-01 15:39:18 +03:30
|
|
|
|
<button
|
|
|
|
|
|
class="icon-btn ghost mobile-only"
|
|
|
|
|
|
type="button"
|
|
|
|
|
|
aria-label="بستن منو"
|
|
|
|
|
|
@click="closeMenu"
|
|
|
|
|
|
>
|
2026-08-29 21:06:30 +03:30
|
|
|
|
✕
|
|
|
|
|
|
</button>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
2026-09-09 17:51:40 +03:30
|
|
|
|
<div class="rail-stem">
|
2026-08-30 10:06:41 +03:30
|
|
|
|
<nav class="side-nav">
|
|
|
|
|
|
<div class="nav-primary">
|
2026-09-11 17:37:24 +03:30
|
|
|
|
<RouterLink to="/" class="nav-item" title="داشبورد" @click="closeHub(); closeMenu()">
|
2026-09-09 17:51:40 +03:30
|
|
|
|
<UiIcon name="home" :size="collapsed ? 20 : 18" />
|
2026-09-01 15:21:54 +03:30
|
|
|
|
<span>داشبورد</span>
|
|
|
|
|
|
</RouterLink>
|
2026-09-11 14:47:01 +03:30
|
|
|
|
|
2026-09-20 11:24:14 +03:30
|
|
|
|
<div class="nav-fold" v-if="hubVisible.customers" :class="{ active: customersActive || openHubKey === 'customers' }">
|
2026-09-11 14:47:01 +03:30
|
|
|
|
<button
|
|
|
|
|
|
class="nav-item nav-fold-btn"
|
|
|
|
|
|
type="button"
|
|
|
|
|
|
title="مشتریان"
|
2026-09-11 17:37:24 +03:30
|
|
|
|
:class="{ 'router-link-active': customersActive || openHubKey === 'customers', 'hub-on': openHubKey === 'customers' }"
|
|
|
|
|
|
:aria-expanded="openHubKey === 'customers'"
|
|
|
|
|
|
@click="onHubClick('customers')"
|
2026-09-11 14:47:01 +03:30
|
|
|
|
>
|
|
|
|
|
|
<UiIcon name="users" :size="collapsed ? 20 : 18" />
|
|
|
|
|
|
<span>مشتریان</span>
|
|
|
|
|
|
<i class="chev" aria-hidden="true" />
|
|
|
|
|
|
</button>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
2026-09-20 11:24:14 +03:30
|
|
|
|
<div class="nav-fold" v-if="hubVisible.sales" :class="{ active: salesActive || openHubKey === 'sales' }">
|
2026-09-11 14:47:01 +03:30
|
|
|
|
<button
|
|
|
|
|
|
class="nav-item nav-fold-btn"
|
|
|
|
|
|
type="button"
|
|
|
|
|
|
title="فروش"
|
2026-09-11 17:37:24 +03:30
|
|
|
|
:class="{ 'router-link-active': salesActive || openHubKey === 'sales', 'hub-on': openHubKey === 'sales' }"
|
|
|
|
|
|
:aria-expanded="openHubKey === 'sales'"
|
|
|
|
|
|
@click="onHubClick('sales')"
|
2026-09-11 14:47:01 +03:30
|
|
|
|
>
|
|
|
|
|
|
<UiIcon name="briefcase" :size="collapsed ? 20 : 18" />
|
|
|
|
|
|
<span>فروش</span>
|
|
|
|
|
|
<i class="chev" aria-hidden="true" />
|
|
|
|
|
|
</button>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
2026-09-20 11:24:14 +03:30
|
|
|
|
<div class="nav-fold" v-if="hubVisible.activities" :class="{ active: activitiesActive || openHubKey === 'activities' }">
|
2026-09-11 14:47:01 +03:30
|
|
|
|
<button
|
|
|
|
|
|
class="nav-item nav-fold-btn"
|
|
|
|
|
|
type="button"
|
|
|
|
|
|
title="فعالیتها"
|
2026-09-11 17:37:24 +03:30
|
|
|
|
:class="{ 'router-link-active': activitiesActive || openHubKey === 'activities', 'hub-on': openHubKey === 'activities' }"
|
|
|
|
|
|
:aria-expanded="openHubKey === 'activities'"
|
|
|
|
|
|
@click="onHubClick('activities')"
|
2026-09-11 14:47:01 +03:30
|
|
|
|
>
|
|
|
|
|
|
<UiIcon name="check" :size="collapsed ? 20 : 18" />
|
|
|
|
|
|
<span>فعالیتها</span>
|
|
|
|
|
|
<span v-if="activityBadge" class="nav-badge">{{ toFaDigits(activityBadge) }}</span>
|
|
|
|
|
|
<i class="chev" aria-hidden="true" />
|
|
|
|
|
|
</button>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
2026-08-30 10:06:41 +03:30
|
|
|
|
<RouterLink
|
2026-09-11 14:47:01 +03:30
|
|
|
|
to="/notes"
|
2026-09-01 15:21:54 +03:30
|
|
|
|
class="nav-item"
|
2026-09-11 14:47:01 +03:30
|
|
|
|
title="یادداشتها"
|
|
|
|
|
|
:class="{ 'router-link-active': notesActive }"
|
2026-09-11 17:37:24 +03:30
|
|
|
|
@click="closeHub(); closeMenu()"
|
2026-08-30 10:06:41 +03:30
|
|
|
|
>
|
2026-09-11 14:47:01 +03:30
|
|
|
|
<UiIcon name="document" :size="collapsed ? 20 : 18" />
|
|
|
|
|
|
<span>یادداشتها</span>
|
2026-09-01 15:21:54 +03:30
|
|
|
|
</RouterLink>
|
2026-09-11 14:47:01 +03:30
|
|
|
|
|
2026-09-11 17:37:24 +03:30
|
|
|
|
<div class="nav-fold" :class="{ active: supportActive || openHubKey === 'support' }">
|
2026-09-11 14:47:01 +03:30
|
|
|
|
<button
|
|
|
|
|
|
class="nav-item nav-fold-btn"
|
|
|
|
|
|
type="button"
|
|
|
|
|
|
title="پشتیبانی"
|
2026-09-11 17:37:24 +03:30
|
|
|
|
:class="{ 'router-link-active': supportActive || openHubKey === 'support', 'hub-on': openHubKey === 'support' }"
|
|
|
|
|
|
:aria-expanded="openHubKey === 'support'"
|
|
|
|
|
|
@click="onHubClick('support')"
|
2026-09-11 14:47:01 +03:30
|
|
|
|
>
|
|
|
|
|
|
<UiIcon name="chat" :size="collapsed ? 20 : 18" />
|
|
|
|
|
|
<span>پشتیبانی</span>
|
|
|
|
|
|
<i class="chev" aria-hidden="true" />
|
|
|
|
|
|
</button>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
2026-09-11 17:37:24 +03:30
|
|
|
|
<RouterLink to="/loyalty" class="nav-item" title="باشگاه مشتریان" @click="closeHub(); closeMenu()">
|
2026-09-11 14:47:01 +03:30
|
|
|
|
<UiIcon name="gift" :size="collapsed ? 20 : 18" />
|
|
|
|
|
|
<span>باشگاه مشتریان</span>
|
2026-09-01 15:21:54 +03:30
|
|
|
|
</RouterLink>
|
2026-09-11 17:37:24 +03:30
|
|
|
|
<RouterLink to="/reports" class="nav-item" title="گزارشها" @click="closeHub(); closeMenu()">
|
2026-09-09 17:51:40 +03:30
|
|
|
|
<UiIcon name="chart" :size="collapsed ? 20 : 18" />
|
2026-09-01 15:21:54 +03:30
|
|
|
|
<span>گزارشها</span>
|
2026-08-30 10:06:41 +03:30
|
|
|
|
</RouterLink>
|
2026-09-14 16:49:43 +03:30
|
|
|
|
<div
|
2026-09-09 21:43:17 +03:30
|
|
|
|
v-if="canSettings"
|
2026-09-14 16:49:43 +03:30
|
|
|
|
class="nav-fold"
|
|
|
|
|
|
:class="{ active: automationsActive || openHubKey === 'automations' }"
|
2026-09-09 21:43:17 +03:30
|
|
|
|
>
|
2026-09-14 16:49:43 +03:30
|
|
|
|
<button
|
|
|
|
|
|
class="nav-item nav-fold-btn"
|
|
|
|
|
|
type="button"
|
|
|
|
|
|
title="اتوماسیون"
|
|
|
|
|
|
:class="{ 'router-link-active': automationsActive || openHubKey === 'automations', 'hub-on': openHubKey === 'automations' }"
|
|
|
|
|
|
:aria-expanded="openHubKey === 'automations'"
|
|
|
|
|
|
@click="onHubClick('automations')"
|
|
|
|
|
|
>
|
|
|
|
|
|
<UiIcon name="layers" :size="collapsed ? 20 : 18" />
|
|
|
|
|
|
<span>اتوماسیون</span>
|
|
|
|
|
|
<i class="chev" aria-hidden="true" />
|
|
|
|
|
|
</button>
|
|
|
|
|
|
</div>
|
2026-08-30 10:06:41 +03:30
|
|
|
|
</div>
|
|
|
|
|
|
|
2026-09-11 14:47:01 +03:30
|
|
|
|
<div class="nav-sep" aria-hidden="true" />
|
2026-09-09 17:51:40 +03:30
|
|
|
|
|
2026-09-11 14:47:01 +03:30
|
|
|
|
<div class="nav-utility">
|
2026-09-11 17:37:24 +03:30
|
|
|
|
<div class="nav-fold" :class="{ active: toolsActive || openHubKey === 'tools' }">
|
2026-09-11 14:47:01 +03:30
|
|
|
|
<button
|
|
|
|
|
|
class="nav-item nav-fold-btn"
|
|
|
|
|
|
type="button"
|
|
|
|
|
|
title="ابزارها"
|
2026-09-11 17:37:24 +03:30
|
|
|
|
:class="{ 'router-link-active': toolsActive || openHubKey === 'tools', 'hub-on': openHubKey === 'tools' }"
|
|
|
|
|
|
:aria-expanded="openHubKey === 'tools'"
|
|
|
|
|
|
@click="onHubClick('tools')"
|
2026-09-11 14:47:01 +03:30
|
|
|
|
>
|
|
|
|
|
|
<UiIcon name="apps-plus" :size="collapsed ? 20 : 18" />
|
|
|
|
|
|
<span>ابزارها</span>
|
|
|
|
|
|
<i class="chev" aria-hidden="true" />
|
|
|
|
|
|
</button>
|
2026-08-30 10:06:41 +03:30
|
|
|
|
</div>
|
|
|
|
|
|
|
2026-09-11 14:47:01 +03:30
|
|
|
|
<div
|
|
|
|
|
|
v-if="canSettings"
|
|
|
|
|
|
class="nav-fold"
|
2026-09-11 17:37:24 +03:30
|
|
|
|
:class="{ active: settingsActive || openHubKey === 'settings' }"
|
2026-08-30 10:06:41 +03:30
|
|
|
|
>
|
2026-09-11 14:47:01 +03:30
|
|
|
|
<button
|
|
|
|
|
|
class="nav-item nav-fold-btn"
|
|
|
|
|
|
type="button"
|
|
|
|
|
|
title="تنظیمات"
|
2026-09-11 17:37:24 +03:30
|
|
|
|
:class="{ 'router-link-active': settingsActive || openHubKey === 'settings', 'hub-on': openHubKey === 'settings' }"
|
|
|
|
|
|
:aria-expanded="openHubKey === 'settings'"
|
|
|
|
|
|
@click="onHubClick('settings')"
|
2026-09-11 14:47:01 +03:30
|
|
|
|
>
|
|
|
|
|
|
<UiIcon name="settings" :size="collapsed ? 20 : 18" />
|
|
|
|
|
|
<span>تنظیمات</span>
|
|
|
|
|
|
<i class="chev" aria-hidden="true" />
|
|
|
|
|
|
</button>
|
2026-08-30 10:06:41 +03:30
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
2026-08-29 21:06:30 +03:30
|
|
|
|
</nav>
|
|
|
|
|
|
|
|
|
|
|
|
<p v-if="showOwnRecordsBanner" class="scope-banner">
|
|
|
|
|
|
فقط پروندههای خودتان را میبینید.
|
|
|
|
|
|
</p>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="sidebar-foot">
|
2026-09-01 15:39:18 +03:30
|
|
|
|
<div class="promo-card">
|
2026-09-02 16:06:17 +03:30
|
|
|
|
<span class="promo-icons" aria-hidden="true">
|
2026-09-02 21:29:00 +03:30
|
|
|
|
<UiIcon name="send" :size="20" />
|
|
|
|
|
|
<UiIcon name="sparkle" :size="18" />
|
2026-09-02 16:06:17 +03:30
|
|
|
|
</span>
|
2026-09-02 21:29:00 +03:30
|
|
|
|
<p>
|
2026-09-07 11:49:54 +03:30
|
|
|
|
<span>با {{ brand.nameFa }} فروشات را</span>
|
2026-09-02 21:29:00 +03:30
|
|
|
|
<span>چند برابر کن</span>
|
|
|
|
|
|
</p>
|
2026-09-01 15:39:18 +03:30
|
|
|
|
</div>
|
|
|
|
|
|
|
2026-09-15 21:37:58 +03:30
|
|
|
|
<div class="foot-actions">
|
|
|
|
|
|
<OrgSwitcher :compact="collapsed" />
|
|
|
|
|
|
<button class="logout-link" type="button" title="خروج از حساب" @click="onLogout">
|
|
|
|
|
|
<UiIcon name="logout" :size="18" />
|
|
|
|
|
|
<span>خروج از حساب</span>
|
|
|
|
|
|
</button>
|
|
|
|
|
|
</div>
|
2026-09-09 17:51:40 +03:30
|
|
|
|
<button
|
|
|
|
|
|
class="collapse-btn desktop-only"
|
|
|
|
|
|
type="button"
|
|
|
|
|
|
:aria-pressed="collapsed"
|
|
|
|
|
|
:aria-label="collapsed ? 'باز کردن منو' : 'جمع کردن منو'"
|
|
|
|
|
|
@click="toggleCollapsed"
|
|
|
|
|
|
>
|
|
|
|
|
|
<UiIcon name="chevron" :size="16" />
|
|
|
|
|
|
</button>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
2026-08-29 21:06:30 +03:30
|
|
|
|
</aside>
|
|
|
|
|
|
|
2026-09-01 15:21:54 +03:30
|
|
|
|
<div class="workspace">
|
2026-09-01 15:39:18 +03:30
|
|
|
|
<header class="mobile-topbar mobile-only">
|
2026-09-01 15:21:54 +03:30
|
|
|
|
<div class="top-brand">
|
2026-09-01 16:05:29 +03:30
|
|
|
|
<MentoLogo :size="32" :show-text="false" variant="mark" />
|
2026-09-07 11:49:54 +03:30
|
|
|
|
<BrandName lang="en" />
|
2026-09-01 15:21:54 +03:30
|
|
|
|
</div>
|
2026-09-14 19:19:09 +03:30
|
|
|
|
<div class="top-tools">
|
|
|
|
|
|
<button class="round-btn" type="button" aria-label="اعلانها" @click="toggleNotif">
|
|
|
|
|
|
<UiIcon name="bell" :size="18" />
|
|
|
|
|
|
<span v-if="hasUnread" class="badge">{{ toFaDigits(unreadCount) }}</span>
|
|
|
|
|
|
</button>
|
|
|
|
|
|
<RouterLink
|
|
|
|
|
|
class="top-avatar"
|
|
|
|
|
|
:to="{ name: 'profile' }"
|
|
|
|
|
|
:title="auth.user?.fullName || 'پروفایل'"
|
|
|
|
|
|
:aria-label="auth.user?.fullName || 'پروفایل'"
|
|
|
|
|
|
>
|
|
|
|
|
|
<span class="avatar-wrap">
|
|
|
|
|
|
<span class="avatar">
|
|
|
|
|
|
<img
|
2026-09-15 14:10:52 +03:30
|
|
|
|
:src="auth.avatarSrc"
|
2026-09-14 19:19:09 +03:30
|
|
|
|
:alt="auth.user?.fullName || 'کاربر'"
|
|
|
|
|
|
width="36"
|
|
|
|
|
|
height="36"
|
|
|
|
|
|
/>
|
|
|
|
|
|
</span>
|
|
|
|
|
|
<i class="online-dot" title="آنلاین" aria-hidden="true" />
|
|
|
|
|
|
</span>
|
|
|
|
|
|
</RouterLink>
|
|
|
|
|
|
</div>
|
2026-09-01 15:21:54 +03:30
|
|
|
|
</header>
|
2026-08-29 21:06:30 +03:30
|
|
|
|
|
2026-09-01 15:21:54 +03:30
|
|
|
|
<header class="desktop-topbar desktop-only">
|
|
|
|
|
|
<form class="global-search" @submit.prevent="submitSearch">
|
2026-09-01 15:39:18 +03:30
|
|
|
|
<UiIcon name="search" :size="18" class="search-leading" />
|
2026-09-01 15:21:54 +03:30
|
|
|
|
<input
|
|
|
|
|
|
v-model="globalSearch"
|
|
|
|
|
|
type="search"
|
2026-09-01 15:39:18 +03:30
|
|
|
|
placeholder="جستجو در مشتریان، معاملات و..."
|
2026-09-01 15:21:54 +03:30
|
|
|
|
/>
|
|
|
|
|
|
</form>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="topbar-actions">
|
2026-09-01 15:39:18 +03:30
|
|
|
|
<RouterLink class="round-btn accent" :to="{ name: 'notes' }" title="هوش مصنوعی">
|
|
|
|
|
|
<UiIcon name="sparkle" :size="18" />
|
|
|
|
|
|
</RouterLink>
|
|
|
|
|
|
<button class="round-btn" type="button" aria-label="اعلانها" @click="toggleNotif">
|
|
|
|
|
|
<UiIcon name="bell" :size="18" />
|
|
|
|
|
|
<span v-if="hasUnread" class="badge">{{ toFaDigits(unreadCount) }}</span>
|
2026-09-01 15:21:54 +03:30
|
|
|
|
</button>
|
2026-09-01 15:39:18 +03:30
|
|
|
|
<RouterLink class="round-btn" :to="{ name: 'activities-calendar' }" title="تقویم">
|
|
|
|
|
|
<UiIcon name="calendar" :size="18" />
|
|
|
|
|
|
</RouterLink>
|
|
|
|
|
|
<RouterLink class="round-btn" :to="{ name: 'tickets' }" title="پیامها">
|
|
|
|
|
|
<UiIcon name="mail" :size="18" />
|
|
|
|
|
|
</RouterLink>
|
2026-09-20 11:24:14 +03:30
|
|
|
|
<div
|
|
|
|
|
|
v-if="subscription"
|
|
|
|
|
|
class="sub-chip"
|
|
|
|
|
|
:class="{ warn: subscription.warn }"
|
|
|
|
|
|
:title="`انقضا: ${subscription.expiresAt}`"
|
|
|
|
|
|
>
|
|
|
|
|
|
<UiIcon name="clock" :size="15" />
|
|
|
|
|
|
<span>
|
|
|
|
|
|
{{ toFaDigits(subscription.daysRemaining) }} روز باقیمانده
|
|
|
|
|
|
</span>
|
|
|
|
|
|
</div>
|
2026-09-01 15:39:18 +03:30
|
|
|
|
<div class="date-chip">
|
|
|
|
|
|
<UiIcon name="calendar" :size="16" />
|
|
|
|
|
|
<span>{{ todayLabel }}</span>
|
|
|
|
|
|
</div>
|
2026-09-01 15:21:54 +03:30
|
|
|
|
</div>
|
|
|
|
|
|
</header>
|
|
|
|
|
|
|
|
|
|
|
|
<div v-if="notifOpen" class="notif-layer">
|
|
|
|
|
|
<div class="notif-backdrop" @click="closeNotif" />
|
|
|
|
|
|
<div class="notif-panel" role="dialog" aria-label="اعلانها">
|
|
|
|
|
|
<header class="notif-head">
|
|
|
|
|
|
<strong>اعلانها</strong>
|
|
|
|
|
|
<div class="notif-head-actions">
|
|
|
|
|
|
<button v-if="hasUnread" class="linkish" type="button" @click="markAll">
|
|
|
|
|
|
همه خوانده شد
|
|
|
|
|
|
</button>
|
2026-09-01 15:39:18 +03:30
|
|
|
|
<button class="round-btn sm" type="button" aria-label="بستن" @click="closeNotif">
|
2026-09-01 15:21:54 +03:30
|
|
|
|
✕
|
|
|
|
|
|
</button>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</header>
|
|
|
|
|
|
<p v-if="loading && !items.length" class="muted">در حال بارگذاری…</p>
|
|
|
|
|
|
<ul v-else-if="items.length" class="notif-list">
|
|
|
|
|
|
<li v-for="item in items" :key="item.id" :class="{ unread: !item.readAt }">
|
|
|
|
|
|
<button type="button" @click="markRead(item)">
|
|
|
|
|
|
<span class="title">{{ item.title }}</span>
|
|
|
|
|
|
<span v-if="item.body" class="body">{{ item.body }}</span>
|
|
|
|
|
|
<span class="time">{{ formatTime(item.createdAt) }}</span>
|
|
|
|
|
|
</button>
|
|
|
|
|
|
</li>
|
|
|
|
|
|
</ul>
|
|
|
|
|
|
<p v-else class="muted">اعلانی نیست.</p>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<main class="content">
|
|
|
|
|
|
<RouterView />
|
|
|
|
|
|
</main>
|
|
|
|
|
|
</div>
|
2026-09-11 17:37:24 +03:30
|
|
|
|
|
|
|
|
|
|
<div v-if="openHub" class="hub-layer">
|
|
|
|
|
|
<button class="hub-dim" type="button" aria-label="بستن منو" @click="closeHub" />
|
|
|
|
|
|
<NavHubPanel :hub="openHub" @close="closeHub" @go="goHub" />
|
|
|
|
|
|
</div>
|
2026-09-14 19:19:09 +03:30
|
|
|
|
|
|
|
|
|
|
<nav class="mobile-tabbar mobile-only" aria-label="منوی اصلی">
|
|
|
|
|
|
<RouterLink
|
|
|
|
|
|
to="/"
|
|
|
|
|
|
class="tab"
|
|
|
|
|
|
:class="{ on: dashboardActive && !moreOpen }"
|
|
|
|
|
|
@click="closeHub(); closeMore()"
|
|
|
|
|
|
>
|
|
|
|
|
|
<UiIcon name="home" :size="20" />
|
|
|
|
|
|
<span>داشبورد</span>
|
|
|
|
|
|
</RouterLink>
|
|
|
|
|
|
<button
|
|
|
|
|
|
class="tab"
|
|
|
|
|
|
type="button"
|
|
|
|
|
|
:class="{ on: !moreOpen && (customersActive || openHubKey === 'customers') }"
|
|
|
|
|
|
:aria-expanded="openHubKey === 'customers'"
|
|
|
|
|
|
@click="openTabHub('customers')"
|
|
|
|
|
|
>
|
|
|
|
|
|
<UiIcon name="users" :size="20" />
|
|
|
|
|
|
<span>مشتریان</span>
|
|
|
|
|
|
</button>
|
|
|
|
|
|
<button
|
|
|
|
|
|
class="tab"
|
|
|
|
|
|
type="button"
|
|
|
|
|
|
:class="{ on: !moreOpen && (salesActive || openHubKey === 'sales') }"
|
|
|
|
|
|
:aria-expanded="openHubKey === 'sales'"
|
|
|
|
|
|
@click="openTabHub('sales')"
|
|
|
|
|
|
>
|
|
|
|
|
|
<UiIcon name="briefcase" :size="20" />
|
|
|
|
|
|
<span>فروش</span>
|
|
|
|
|
|
</button>
|
|
|
|
|
|
<button
|
|
|
|
|
|
class="tab"
|
|
|
|
|
|
type="button"
|
|
|
|
|
|
:class="{ on: !moreOpen && (activitiesActive || openHubKey === 'activities') }"
|
|
|
|
|
|
:aria-expanded="openHubKey === 'activities'"
|
|
|
|
|
|
@click="openTabHub('activities')"
|
|
|
|
|
|
>
|
|
|
|
|
|
<span class="tab-ico">
|
|
|
|
|
|
<UiIcon name="check" :size="20" />
|
|
|
|
|
|
<span v-if="activityBadge" class="tab-badge">{{ toFaDigits(activityBadge) }}</span>
|
|
|
|
|
|
</span>
|
|
|
|
|
|
<span>فعالیتها</span>
|
|
|
|
|
|
</button>
|
|
|
|
|
|
<button
|
|
|
|
|
|
class="tab"
|
|
|
|
|
|
type="button"
|
|
|
|
|
|
:class="{ on: moreTabActive }"
|
|
|
|
|
|
:aria-expanded="moreOpen"
|
|
|
|
|
|
aria-controls="mobile-more"
|
|
|
|
|
|
@click="toggleMore"
|
|
|
|
|
|
>
|
|
|
|
|
|
<UiIcon name="grid" :size="20" />
|
|
|
|
|
|
<span>بیشتر</span>
|
|
|
|
|
|
</button>
|
|
|
|
|
|
</nav>
|
|
|
|
|
|
|
|
|
|
|
|
<div
|
|
|
|
|
|
v-if="moreOpen"
|
|
|
|
|
|
id="mobile-more"
|
|
|
|
|
|
class="more-layer mobile-only"
|
|
|
|
|
|
role="dialog"
|
|
|
|
|
|
aria-modal="true"
|
|
|
|
|
|
aria-label="منو"
|
|
|
|
|
|
>
|
|
|
|
|
|
<header class="more-head">
|
|
|
|
|
|
<h2>منو</h2>
|
|
|
|
|
|
<button class="round-btn sm" type="button" aria-label="بستن" @click="closeMore">✕</button>
|
|
|
|
|
|
</header>
|
|
|
|
|
|
<nav class="more-body">
|
|
|
|
|
|
<RouterLink to="/notes" class="nav-item" @click="closeHub(); closeMore()">
|
|
|
|
|
|
<UiIcon name="document" :size="18" />
|
|
|
|
|
|
<span>یادداشتها</span>
|
|
|
|
|
|
</RouterLink>
|
|
|
|
|
|
<button
|
|
|
|
|
|
class="nav-item nav-fold-btn"
|
|
|
|
|
|
type="button"
|
|
|
|
|
|
:class="{
|
|
|
|
|
|
'router-link-active': supportActive || openHubKey === 'support',
|
|
|
|
|
|
'hub-on': openHubKey === 'support',
|
|
|
|
|
|
}"
|
|
|
|
|
|
:aria-expanded="openHubKey === 'support'"
|
|
|
|
|
|
@click="openMoreHub('support')"
|
|
|
|
|
|
>
|
|
|
|
|
|
<UiIcon name="chat" :size="18" />
|
|
|
|
|
|
<span>پشتیبانی</span>
|
|
|
|
|
|
<i class="chev" aria-hidden="true" />
|
|
|
|
|
|
</button>
|
|
|
|
|
|
<RouterLink to="/loyalty" class="nav-item" @click="closeHub(); closeMore()">
|
|
|
|
|
|
<UiIcon name="gift" :size="18" />
|
|
|
|
|
|
<span>باشگاه مشتریان</span>
|
|
|
|
|
|
</RouterLink>
|
|
|
|
|
|
<RouterLink to="/reports" class="nav-item" @click="closeHub(); closeMore()">
|
|
|
|
|
|
<UiIcon name="chart" :size="18" />
|
|
|
|
|
|
<span>گزارشها</span>
|
|
|
|
|
|
</RouterLink>
|
|
|
|
|
|
<button
|
|
|
|
|
|
v-if="canSettings"
|
|
|
|
|
|
class="nav-item nav-fold-btn"
|
|
|
|
|
|
type="button"
|
|
|
|
|
|
:class="{
|
|
|
|
|
|
'router-link-active': automationsActive || openHubKey === 'automations',
|
|
|
|
|
|
'hub-on': openHubKey === 'automations',
|
|
|
|
|
|
}"
|
|
|
|
|
|
:aria-expanded="openHubKey === 'automations'"
|
|
|
|
|
|
@click="openMoreHub('automations')"
|
|
|
|
|
|
>
|
|
|
|
|
|
<UiIcon name="layers" :size="18" />
|
|
|
|
|
|
<span>اتوماسیون</span>
|
|
|
|
|
|
<i class="chev" aria-hidden="true" />
|
|
|
|
|
|
</button>
|
|
|
|
|
|
<button
|
|
|
|
|
|
class="nav-item nav-fold-btn"
|
|
|
|
|
|
type="button"
|
|
|
|
|
|
:class="{
|
|
|
|
|
|
'router-link-active': toolsActive || openHubKey === 'tools',
|
|
|
|
|
|
'hub-on': openHubKey === 'tools',
|
|
|
|
|
|
}"
|
|
|
|
|
|
:aria-expanded="openHubKey === 'tools'"
|
|
|
|
|
|
@click="openMoreHub('tools')"
|
|
|
|
|
|
>
|
|
|
|
|
|
<UiIcon name="apps-plus" :size="18" />
|
|
|
|
|
|
<span>ابزارها</span>
|
|
|
|
|
|
<i class="chev" aria-hidden="true" />
|
|
|
|
|
|
</button>
|
|
|
|
|
|
<button
|
|
|
|
|
|
v-if="canSettings"
|
|
|
|
|
|
class="nav-item nav-fold-btn"
|
|
|
|
|
|
type="button"
|
|
|
|
|
|
:class="{
|
|
|
|
|
|
'router-link-active': settingsActive || openHubKey === 'settings',
|
|
|
|
|
|
'hub-on': openHubKey === 'settings',
|
|
|
|
|
|
}"
|
|
|
|
|
|
:aria-expanded="openHubKey === 'settings'"
|
|
|
|
|
|
@click="openMoreHub('settings')"
|
|
|
|
|
|
>
|
|
|
|
|
|
<UiIcon name="settings" :size="18" />
|
|
|
|
|
|
<span>تنظیمات</span>
|
|
|
|
|
|
<i class="chev" aria-hidden="true" />
|
|
|
|
|
|
</button>
|
|
|
|
|
|
</nav>
|
|
|
|
|
|
<button class="logout-link more-logout" type="button" @click="onLogout">
|
|
|
|
|
|
<UiIcon name="logout" :size="18" />
|
|
|
|
|
|
<span>خروج از حساب</span>
|
|
|
|
|
|
</button>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
2026-09-03 14:20:55 +03:30
|
|
|
|
<QuickCreate />
|
2026-08-29 21:06:30 +03:30
|
|
|
|
</div>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<style scoped>
|
|
|
|
|
|
.shell {
|
2026-09-09 17:51:40 +03:30
|
|
|
|
--sidebar-card: 220px;
|
|
|
|
|
|
--sidebar-gutter-start: 14px;
|
|
|
|
|
|
--sidebar-gutter-end: 10px;
|
2026-09-11 17:37:24 +03:30
|
|
|
|
--hub-offset: calc(var(--sidebar-card) + var(--sidebar-gutter-start));
|
2026-08-29 21:06:30 +03:30
|
|
|
|
display: grid;
|
2026-09-09 17:51:40 +03:30
|
|
|
|
grid-template-columns: calc(var(--sidebar-card) + var(--sidebar-gutter-start) + var(--sidebar-gutter-end)) minmax(0, 1fr);
|
2026-08-29 21:06:30 +03:30
|
|
|
|
min-height: 100vh;
|
|
|
|
|
|
min-height: 100dvh;
|
2026-09-10 01:22:24 +03:30
|
|
|
|
background: var(--bg);
|
2026-09-02 16:06:17 +03:30
|
|
|
|
gap: 0;
|
2026-09-09 17:51:40 +03:30
|
|
|
|
transition: grid-template-columns 0.2s ease;
|
2026-09-01 15:21:54 +03:30
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.workspace {
|
|
|
|
|
|
min-width: 0;
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
flex-direction: column;
|
2026-09-09 17:51:40 +03:30
|
|
|
|
position: relative;
|
|
|
|
|
|
z-index: 1;
|
2026-08-29 21:06:30 +03:30
|
|
|
|
}
|
|
|
|
|
|
|
2026-09-01 15:39:18 +03:30
|
|
|
|
.backdrop,
|
2026-08-29 21:06:30 +03:30
|
|
|
|
.mobile-only {
|
|
|
|
|
|
display: none;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-09-01 15:39:18 +03:30
|
|
|
|
.desktop-only {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-08-29 21:06:30 +03:30
|
|
|
|
.sidebar {
|
2026-08-30 10:28:38 +03:30
|
|
|
|
position: sticky;
|
2026-09-02 16:06:17 +03:30
|
|
|
|
top: 14px;
|
2026-08-30 10:28:38 +03:30
|
|
|
|
align-self: start;
|
2026-09-11 17:37:24 +03:30
|
|
|
|
z-index: 20;
|
2026-09-02 16:06:17 +03:30
|
|
|
|
height: calc(100dvh - 28px);
|
|
|
|
|
|
margin: 14px;
|
|
|
|
|
|
margin-inline-end: 10px;
|
2026-09-01 15:21:54 +03:30
|
|
|
|
background: #fff;
|
2026-09-02 16:06:17 +03:30
|
|
|
|
border: 0;
|
|
|
|
|
|
border-radius: 28px;
|
2026-09-09 17:51:40 +03:30
|
|
|
|
padding: 0.35rem 0.85rem 1.1rem;
|
2026-08-29 21:06:30 +03:30
|
|
|
|
display: flex;
|
|
|
|
|
|
flex-direction: column;
|
2026-09-02 16:06:17 +03:30
|
|
|
|
gap: 1.35rem;
|
2026-08-30 10:06:41 +03:30
|
|
|
|
overflow: hidden;
|
2026-08-30 10:28:38 +03:30
|
|
|
|
box-sizing: border-box;
|
2026-09-02 16:06:17 +03:30
|
|
|
|
box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
|
2026-08-29 21:06:30 +03:30
|
|
|
|
}
|
|
|
|
|
|
|
2026-09-09 17:51:40 +03:30
|
|
|
|
.rail-stem {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
|
flex: 1;
|
|
|
|
|
|
min-height: 0;
|
|
|
|
|
|
gap: inherit;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-09-01 15:39:18 +03:30
|
|
|
|
.brand-row {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
justify-content: space-between;
|
2026-09-09 17:51:40 +03:30
|
|
|
|
gap: 0.45rem;
|
|
|
|
|
|
padding: 0.1rem 0.2rem 0.2rem;
|
2026-09-01 15:21:54 +03:30
|
|
|
|
flex-shrink: 0;
|
2026-08-30 10:16:03 +03:30
|
|
|
|
}
|
|
|
|
|
|
|
2026-09-09 17:51:40 +03:30
|
|
|
|
.brand-cluster {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
gap: 1.5rem;
|
|
|
|
|
|
min-width: 0;
|
|
|
|
|
|
flex: 1;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.brand-cluster :deep(.brand-logo.full) {
|
|
|
|
|
|
gap: 0.35rem;
|
2026-09-11 14:47:01 +03:30
|
|
|
|
flex-shrink: 0;
|
|
|
|
|
|
min-width: max-content;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.sidebar-logo {
|
|
|
|
|
|
flex-shrink: 0;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.brand-cluster :deep(.text) {
|
|
|
|
|
|
flex-shrink: 0;
|
2026-09-09 17:51:40 +03:30
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.brand-cluster :deep(.text strong) {
|
|
|
|
|
|
font-size: 0.92rem;
|
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.brand-cluster :deep(.text small) {
|
|
|
|
|
|
font-size: 0.62rem;
|
2026-09-11 14:47:01 +03:30
|
|
|
|
white-space: nowrap;
|
2026-09-09 17:51:40 +03:30
|
|
|
|
}
|
|
|
|
|
|
|
2026-08-30 10:06:41 +03:30
|
|
|
|
.side-nav {
|
2026-08-29 21:06:30 +03:30
|
|
|
|
display: grid;
|
2026-09-02 16:06:17 +03:30
|
|
|
|
gap: 0.45rem;
|
2026-08-30 10:06:41 +03:30
|
|
|
|
overflow-y: auto;
|
|
|
|
|
|
min-height: 0;
|
|
|
|
|
|
flex: 1;
|
2026-08-30 10:16:03 +03:30
|
|
|
|
scrollbar-width: none;
|
2026-09-02 16:06:17 +03:30
|
|
|
|
padding-inline: 0.15rem;
|
2026-08-30 10:16:03 +03:30
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.side-nav::-webkit-scrollbar {
|
|
|
|
|
|
display: none;
|
2026-08-30 10:06:41 +03:30
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.nav-primary,
|
|
|
|
|
|
.nav-sub {
|
|
|
|
|
|
display: grid;
|
2026-09-02 16:06:17 +03:30
|
|
|
|
gap: 0.35rem;
|
2026-08-30 10:06:41 +03:30
|
|
|
|
}
|
|
|
|
|
|
|
2026-09-01 15:39:18 +03:30
|
|
|
|
.nav-item {
|
2026-09-01 15:21:54 +03:30
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
2026-09-02 16:06:17 +03:30
|
|
|
|
gap: 0.75rem;
|
|
|
|
|
|
padding: 0.82rem 1rem;
|
|
|
|
|
|
border-radius: 18px;
|
|
|
|
|
|
color: #334155;
|
2026-08-30 10:06:41 +03:30
|
|
|
|
text-decoration: none;
|
2026-09-01 15:39:18 +03:30
|
|
|
|
font-weight: 600;
|
2026-09-02 16:06:17 +03:30
|
|
|
|
font-size: 0.94rem;
|
2026-09-01 15:39:18 +03:30
|
|
|
|
transition: background 0.15s ease, color 0.15s ease;
|
2026-08-30 10:06:41 +03:30
|
|
|
|
}
|
|
|
|
|
|
|
2026-09-01 15:39:18 +03:30
|
|
|
|
.nav-item:hover {
|
|
|
|
|
|
background: #f8fafc;
|
|
|
|
|
|
color: #0f172a;
|
2026-09-01 15:21:54 +03:30
|
|
|
|
}
|
|
|
|
|
|
|
2026-09-01 15:39:18 +03:30
|
|
|
|
.nav-item.router-link-active {
|
2026-09-02 16:06:17 +03:30
|
|
|
|
background: #d8faf3;
|
2026-09-01 16:05:29 +03:30
|
|
|
|
color: #0f766e;
|
|
|
|
|
|
box-shadow: none;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.nav-item.router-link-active :deep(.ico) {
|
|
|
|
|
|
color: #0f766e;
|
2026-09-01 15:21:54 +03:30
|
|
|
|
}
|
|
|
|
|
|
|
2026-09-11 17:37:24 +03:30
|
|
|
|
.shell.hub-open .nav-item.router-link-active:not(.hub-on) {
|
|
|
|
|
|
background: transparent;
|
|
|
|
|
|
color: #334155;
|
|
|
|
|
|
box-shadow: none;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.shell.hub-open .nav-item.router-link-active:not(.hub-on) :deep(.ico) {
|
|
|
|
|
|
color: inherit;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.shell.hub-open .sidebar {
|
|
|
|
|
|
z-index: 70;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.hub-layer {
|
|
|
|
|
|
position: fixed;
|
|
|
|
|
|
inset: 0;
|
|
|
|
|
|
z-index: 60;
|
|
|
|
|
|
pointer-events: none;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.hub-dim {
|
|
|
|
|
|
pointer-events: auto;
|
|
|
|
|
|
position: absolute;
|
|
|
|
|
|
inset: 0;
|
|
|
|
|
|
border: 0;
|
|
|
|
|
|
padding: 0;
|
|
|
|
|
|
background: rgba(15, 23, 42, 0.28);
|
|
|
|
|
|
cursor: default;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.hub-layer :deep(.hub) {
|
|
|
|
|
|
pointer-events: auto;
|
|
|
|
|
|
position: absolute;
|
|
|
|
|
|
top: 42px;
|
|
|
|
|
|
inset-inline-start: var(--hub-offset);
|
|
|
|
|
|
inset-inline-end: auto;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-09-01 15:21:54 +03:30
|
|
|
|
.nav-badge {
|
|
|
|
|
|
margin-inline-start: auto;
|
|
|
|
|
|
min-width: 1.35rem;
|
|
|
|
|
|
height: 1.35rem;
|
|
|
|
|
|
border-radius: 999px;
|
2026-09-01 15:39:18 +03:30
|
|
|
|
background: #14b8a6;
|
2026-08-30 10:06:41 +03:30
|
|
|
|
color: #fff;
|
2026-09-01 15:39:18 +03:30
|
|
|
|
font-size: 0.7rem;
|
2026-09-01 15:21:54 +03:30
|
|
|
|
display: grid;
|
|
|
|
|
|
place-items: center;
|
2026-09-01 15:39:18 +03:30
|
|
|
|
padding: 0 0.3rem;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.nav-item.router-link-active .nav-badge {
|
2026-09-01 16:05:29 +03:30
|
|
|
|
background: #14b8a6;
|
|
|
|
|
|
color: #fff;
|
2026-08-30 10:06:41 +03:30
|
|
|
|
}
|
|
|
|
|
|
|
2026-09-11 14:47:01 +03:30
|
|
|
|
.nav-fold {
|
|
|
|
|
|
display: grid;
|
|
|
|
|
|
gap: 0.15rem;
|
2026-08-30 10:06:41 +03:30
|
|
|
|
}
|
|
|
|
|
|
|
2026-09-11 14:47:01 +03:30
|
|
|
|
.nav-fold-btn {
|
2026-08-30 10:06:41 +03:30
|
|
|
|
width: 100%;
|
|
|
|
|
|
border: 0;
|
|
|
|
|
|
background: transparent;
|
|
|
|
|
|
cursor: pointer;
|
2026-09-11 14:47:01 +03:30
|
|
|
|
font: inherit;
|
2026-08-30 10:06:41 +03:30
|
|
|
|
text-align: right;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-09-11 14:47:01 +03:30
|
|
|
|
.nav-fold-btn .chev {
|
|
|
|
|
|
margin-inline-start: auto;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.nav-sep {
|
|
|
|
|
|
height: 1px;
|
|
|
|
|
|
margin: 0.55rem 0.85rem;
|
|
|
|
|
|
background: #e8eef4;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.nav-utility {
|
|
|
|
|
|
display: grid;
|
|
|
|
|
|
gap: 0.35rem;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-08-30 10:06:41 +03:30
|
|
|
|
.chev {
|
2026-09-01 15:39:18 +03:30
|
|
|
|
width: 0.42rem;
|
|
|
|
|
|
height: 0.42rem;
|
|
|
|
|
|
border-right: 1.6px solid currentColor;
|
|
|
|
|
|
border-bottom: 1.6px solid currentColor;
|
2026-09-11 17:37:24 +03:30
|
|
|
|
transform: rotate(135deg);
|
2026-08-30 10:06:41 +03:30
|
|
|
|
transition: transform 0.15s ease;
|
2026-09-11 14:47:01 +03:30
|
|
|
|
flex-shrink: 0;
|
2026-08-30 10:06:41 +03:30
|
|
|
|
}
|
|
|
|
|
|
|
2026-09-11 17:37:24 +03:30
|
|
|
|
.nav-fold-btn.hub-on .chev {
|
|
|
|
|
|
transform: rotate(-45deg);
|
2026-08-30 10:06:41 +03:30
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.nav-sub {
|
2026-09-02 16:06:17 +03:30
|
|
|
|
margin-inline-end: 0.55rem;
|
|
|
|
|
|
padding-inline-end: 0.25rem;
|
2026-09-01 15:39:18 +03:30
|
|
|
|
border-inline-end: 1px solid #eef2f7;
|
2026-08-30 10:06:41 +03:30
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.nav-sub a {
|
2026-09-01 15:39:18 +03:30
|
|
|
|
display: block;
|
2026-09-02 16:06:17 +03:30
|
|
|
|
padding: 0.58rem 0.9rem;
|
|
|
|
|
|
border-radius: 14px;
|
2026-09-01 15:39:18 +03:30
|
|
|
|
color: #64748b;
|
|
|
|
|
|
text-decoration: none;
|
|
|
|
|
|
font-size: 0.88rem;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.nav-sub a.router-link-active {
|
|
|
|
|
|
background: #ecfdf8;
|
|
|
|
|
|
color: #0f766e;
|
|
|
|
|
|
font-weight: 700;
|
2026-08-29 21:06:30 +03:30
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.scope-banner {
|
|
|
|
|
|
margin: 0;
|
|
|
|
|
|
padding: 0.55rem 0.75rem;
|
2026-09-01 15:39:18 +03:30
|
|
|
|
border-radius: 12px;
|
2026-09-01 15:21:54 +03:30
|
|
|
|
background: #f8fafc;
|
2026-09-01 15:39:18 +03:30
|
|
|
|
color: #94a3b8;
|
|
|
|
|
|
font-size: 0.75rem;
|
2026-08-29 21:06:30 +03:30
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.sidebar-foot {
|
|
|
|
|
|
margin-top: auto;
|
|
|
|
|
|
display: grid;
|
2026-09-02 16:06:17 +03:30
|
|
|
|
gap: 0.85rem;
|
2026-08-30 10:28:38 +03:30
|
|
|
|
flex-shrink: 0;
|
2026-09-02 16:06:17 +03:30
|
|
|
|
padding-top: 0.35rem;
|
2026-08-30 10:28:38 +03:30
|
|
|
|
}
|
|
|
|
|
|
|
2026-09-15 21:37:58 +03:30
|
|
|
|
.foot-actions {
|
|
|
|
|
|
display: grid;
|
|
|
|
|
|
gap: 0.15rem;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-09-01 15:21:54 +03:30
|
|
|
|
.profile-card {
|
|
|
|
|
|
display: flex;
|
2026-09-09 17:51:40 +03:30
|
|
|
|
flex-direction: column;
|
2026-09-01 15:21:54 +03:30
|
|
|
|
align-items: center;
|
2026-09-09 17:51:40 +03:30
|
|
|
|
gap: 0.22rem;
|
|
|
|
|
|
padding: 0.15rem 0.2rem;
|
|
|
|
|
|
border-radius: 12px;
|
|
|
|
|
|
background: transparent;
|
2026-09-02 21:29:00 +03:30
|
|
|
|
color: inherit;
|
2026-09-09 17:51:40 +03:30
|
|
|
|
text-decoration: none;
|
2026-09-11 14:47:01 +03:30
|
|
|
|
flex: 1 1 0;
|
2026-09-09 17:51:40 +03:30
|
|
|
|
min-width: 0;
|
|
|
|
|
|
max-width: 4.8rem;
|
2026-09-02 21:29:00 +03:30
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.profile-card:hover {
|
|
|
|
|
|
background: #f0fdfa;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.profile-card.router-link-active {
|
|
|
|
|
|
background: #ecfdf5;
|
2026-09-01 15:21:54 +03:30
|
|
|
|
}
|
|
|
|
|
|
|
2026-09-09 17:51:40 +03:30
|
|
|
|
.avatar-wrap {
|
2026-09-02 21:29:00 +03:30
|
|
|
|
position: relative;
|
2026-09-09 17:51:40 +03:30
|
|
|
|
width: 36px;
|
|
|
|
|
|
height: 36px;
|
2026-09-01 15:21:54 +03:30
|
|
|
|
flex-shrink: 0;
|
2026-09-09 17:51:40 +03:30
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.avatar {
|
|
|
|
|
|
width: 36px;
|
|
|
|
|
|
height: 36px;
|
|
|
|
|
|
border-radius: 999px;
|
2026-09-02 21:29:00 +03:30
|
|
|
|
overflow: hidden;
|
2026-09-09 17:51:40 +03:30
|
|
|
|
box-shadow: 0 3px 8px rgba(15, 23, 42, 0.1);
|
|
|
|
|
|
display: block;
|
2026-09-02 21:29:00 +03:30
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.avatar img {
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
height: 100%;
|
|
|
|
|
|
object-fit: cover;
|
|
|
|
|
|
display: block;
|
2026-09-01 15:21:54 +03:30
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.profile-meta {
|
|
|
|
|
|
min-width: 0;
|
2026-09-09 17:51:40 +03:30
|
|
|
|
width: 100%;
|
2026-09-01 15:21:54 +03:30
|
|
|
|
display: grid;
|
2026-09-09 17:51:40 +03:30
|
|
|
|
text-align: center;
|
2026-09-01 15:21:54 +03:30
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.profile-meta strong {
|
2026-09-09 17:51:40 +03:30
|
|
|
|
font-size: 0.78rem;
|
|
|
|
|
|
font-weight: 800;
|
|
|
|
|
|
line-height: 1.25;
|
2026-08-30 10:16:03 +03:30
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-09-01 15:21:54 +03:30
|
|
|
|
.online-dot {
|
2026-09-09 17:51:40 +03:30
|
|
|
|
position: absolute;
|
|
|
|
|
|
bottom: 0;
|
|
|
|
|
|
inset-inline-start: 0;
|
|
|
|
|
|
width: 10px;
|
|
|
|
|
|
height: 10px;
|
2026-08-30 10:16:03 +03:30
|
|
|
|
border-radius: 999px;
|
2026-09-01 15:21:54 +03:30
|
|
|
|
background: #22c55e;
|
2026-09-09 17:51:40 +03:30
|
|
|
|
border: 2px solid #fff;
|
|
|
|
|
|
box-sizing: border-box;
|
2026-09-01 15:39:18 +03:30
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.promo-card {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
2026-09-02 21:29:00 +03:30
|
|
|
|
gap: 0.75rem;
|
2026-09-02 16:06:17 +03:30
|
|
|
|
padding: 1.05rem 1.05rem;
|
|
|
|
|
|
border-radius: 22px;
|
|
|
|
|
|
background: linear-gradient(105deg, #c4e84a 0%, #2dd4bf 42%, #1d4ed8 100%);
|
|
|
|
|
|
color: #fff;
|
|
|
|
|
|
box-shadow: 0 12px 26px rgba(29, 78, 216, 0.18);
|
2026-09-01 15:39:18 +03:30
|
|
|
|
}
|
|
|
|
|
|
|
2026-09-02 16:06:17 +03:30
|
|
|
|
.promo-icons {
|
|
|
|
|
|
display: inline-flex;
|
2026-09-02 21:29:00 +03:30
|
|
|
|
flex-direction: column;
|
2026-09-02 16:06:17 +03:30
|
|
|
|
align-items: center;
|
2026-09-02 21:29:00 +03:30
|
|
|
|
justify-content: center;
|
|
|
|
|
|
gap: 0.35rem;
|
2026-09-01 15:21:54 +03:30
|
|
|
|
flex-shrink: 0;
|
2026-09-02 16:06:17 +03:30
|
|
|
|
opacity: 0.95;
|
2026-08-29 21:06:30 +03:30
|
|
|
|
}
|
|
|
|
|
|
|
2026-09-01 15:39:18 +03:30
|
|
|
|
.promo-card p {
|
|
|
|
|
|
margin: 0;
|
2026-09-02 21:29:00 +03:30
|
|
|
|
flex: 1;
|
|
|
|
|
|
min-width: 0;
|
|
|
|
|
|
font-size: 0.98rem;
|
|
|
|
|
|
font-weight: 800;
|
|
|
|
|
|
line-height: 1.5;
|
|
|
|
|
|
display: grid;
|
|
|
|
|
|
gap: 0.1rem;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.promo-card p span {
|
|
|
|
|
|
display: block;
|
2026-09-01 15:39:18 +03:30
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.logout-link {
|
2026-09-09 17:51:40 +03:30
|
|
|
|
display: inline-flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
gap: 0.4rem;
|
2026-09-01 15:39:18 +03:30
|
|
|
|
border: 0;
|
|
|
|
|
|
background: transparent;
|
|
|
|
|
|
color: #94a3b8;
|
|
|
|
|
|
font: inherit;
|
2026-09-02 16:06:17 +03:30
|
|
|
|
font-size: 0.78rem;
|
2026-09-01 15:39:18 +03:30
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
text-align: right;
|
2026-09-02 16:06:17 +03:30
|
|
|
|
padding: 0 0.45rem 0.15rem;
|
2026-09-01 15:21:54 +03:30
|
|
|
|
}
|
|
|
|
|
|
|
2026-09-09 17:51:40 +03:30
|
|
|
|
.collapse-btn {
|
|
|
|
|
|
display: inline-flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
justify-content: center;
|
|
|
|
|
|
gap: 0.35rem;
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
border: 1px solid #e2e8f0;
|
|
|
|
|
|
background: #fff;
|
|
|
|
|
|
color: #64748b;
|
|
|
|
|
|
font: inherit;
|
|
|
|
|
|
font-size: 0.78rem;
|
|
|
|
|
|
font-weight: 700;
|
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
border-radius: 12px;
|
|
|
|
|
|
min-height: 36px;
|
|
|
|
|
|
padding: 0.35rem 0.5rem;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.collapse-btn :deep(.ico) {
|
|
|
|
|
|
transition: transform 0.15s ease;
|
|
|
|
|
|
transform: scaleX(-1);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.more-btn {
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
border: 0;
|
|
|
|
|
|
background: transparent;
|
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
font: inherit;
|
|
|
|
|
|
color: inherit;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.more-flyout {
|
|
|
|
|
|
position: absolute;
|
|
|
|
|
|
top: 4.6rem;
|
|
|
|
|
|
inset-inline-start: calc(100% + 8px);
|
|
|
|
|
|
inset-inline-end: auto;
|
|
|
|
|
|
width: 13.5rem;
|
|
|
|
|
|
max-height: min(70vh, 28rem);
|
|
|
|
|
|
overflow: auto;
|
|
|
|
|
|
background: #fff;
|
|
|
|
|
|
border: 1px solid #e8eef3;
|
|
|
|
|
|
border-radius: 16px;
|
|
|
|
|
|
box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
|
|
|
|
|
|
padding: 0.55rem;
|
|
|
|
|
|
display: grid;
|
|
|
|
|
|
gap: 0.15rem;
|
|
|
|
|
|
z-index: 40;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.more-flyout p {
|
|
|
|
|
|
margin: 0.35rem 0 0.15rem;
|
|
|
|
|
|
padding: 0 0.55rem;
|
|
|
|
|
|
color: #94a3b8;
|
|
|
|
|
|
font-size: 0.72rem;
|
|
|
|
|
|
font-weight: 800;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.more-flyout p:first-child {
|
|
|
|
|
|
margin-top: 0;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.more-flyout a {
|
|
|
|
|
|
display: block;
|
|
|
|
|
|
padding: 0.48rem 0.55rem;
|
|
|
|
|
|
border-radius: 10px;
|
|
|
|
|
|
color: #334155;
|
|
|
|
|
|
text-decoration: none;
|
|
|
|
|
|
font-size: 0.84rem;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.more-flyout a.router-link-active {
|
|
|
|
|
|
background: #ecfdf8;
|
|
|
|
|
|
color: #0f766e;
|
|
|
|
|
|
font-weight: 700;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@media (min-width: 901px) {
|
|
|
|
|
|
.shell.collapsed {
|
2026-09-11 17:37:24 +03:30
|
|
|
|
--hub-offset: 72px;
|
2026-09-09 17:51:40 +03:30
|
|
|
|
grid-template-columns: 80px minmax(0, 1fr);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.sidebar.collapsed {
|
|
|
|
|
|
width: 64px;
|
|
|
|
|
|
margin-inline: 8px;
|
|
|
|
|
|
padding: 0;
|
|
|
|
|
|
gap: 0;
|
|
|
|
|
|
align-items: flex-start;
|
|
|
|
|
|
overflow: visible;
|
|
|
|
|
|
background: transparent;
|
|
|
|
|
|
box-shadow: none;
|
|
|
|
|
|
border-radius: 0;
|
|
|
|
|
|
z-index: 24;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.sidebar.collapsed .brand-row {
|
|
|
|
|
|
width: max-content;
|
|
|
|
|
|
max-width: none;
|
2026-09-10 23:45:11 +03:30
|
|
|
|
height: var(--control-h);
|
|
|
|
|
|
min-height: var(--control-h);
|
2026-09-09 17:51:40 +03:30
|
|
|
|
box-sizing: border-box;
|
2026-09-10 23:45:11 +03:30
|
|
|
|
overflow: hidden;
|
2026-09-09 17:51:40 +03:30
|
|
|
|
align-self: flex-start;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
justify-content: flex-start;
|
|
|
|
|
|
z-index: 3;
|
2026-09-10 23:45:11 +03:30
|
|
|
|
padding: 0 0.5rem;
|
2026-09-09 17:51:40 +03:30
|
|
|
|
background: #fff;
|
2026-09-10 23:45:11 +03:30
|
|
|
|
border-radius: var(--radius);
|
2026-09-09 17:51:40 +03:30
|
|
|
|
box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.sidebar.collapsed .brand-cluster {
|
|
|
|
|
|
flex: 0 0 auto;
|
|
|
|
|
|
width: max-content;
|
|
|
|
|
|
flex-direction: row;
|
|
|
|
|
|
align-items: center;
|
2026-09-10 23:45:11 +03:30
|
|
|
|
gap: 0.55rem;
|
2026-09-09 17:51:40 +03:30
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.sidebar.collapsed .sidebar-logo,
|
|
|
|
|
|
.sidebar.collapsed .brand-cluster :deep(.brand-logo) {
|
|
|
|
|
|
display: inline-flex;
|
|
|
|
|
|
flex-shrink: 0;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.sidebar.collapsed .brand-cluster :deep(.mark) {
|
|
|
|
|
|
width: 28px !important;
|
|
|
|
|
|
height: 28px !important;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.sidebar.collapsed .brand-cluster :deep(.text strong) {
|
|
|
|
|
|
font-size: 0.82rem;
|
|
|
|
|
|
line-height: 1.05;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.sidebar.collapsed .brand-cluster :deep(.text small) {
|
|
|
|
|
|
font-size: 0.58rem;
|
|
|
|
|
|
line-height: 1;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.sidebar.collapsed .profile-card {
|
2026-09-10 23:45:11 +03:30
|
|
|
|
flex-direction: row;
|
2026-09-09 17:51:40 +03:30
|
|
|
|
align-items: center;
|
2026-09-10 23:45:11 +03:30
|
|
|
|
max-width: none;
|
2026-09-09 17:51:40 +03:30
|
|
|
|
flex: 0 0 auto;
|
2026-09-10 23:45:11 +03:30
|
|
|
|
gap: 0;
|
2026-09-09 17:51:40 +03:30
|
|
|
|
padding: 0;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.sidebar.collapsed .profile-meta {
|
2026-09-10 23:45:11 +03:30
|
|
|
|
display: none;
|
2026-09-09 17:51:40 +03:30
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.sidebar.collapsed .avatar-wrap,
|
|
|
|
|
|
.sidebar.collapsed .avatar {
|
|
|
|
|
|
width: 28px;
|
|
|
|
|
|
height: 28px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.sidebar.collapsed .online-dot {
|
|
|
|
|
|
width: 8px;
|
|
|
|
|
|
height: 8px;
|
|
|
|
|
|
border-width: 1.5px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.shell.collapsed .desktop-topbar {
|
|
|
|
|
|
padding-inline-start: 8rem;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.shell.collapsed .global-search {
|
|
|
|
|
|
margin-inline-start: 0;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.sidebar.collapsed .rail-stem {
|
|
|
|
|
|
width: 64px;
|
|
|
|
|
|
align-self: flex-start;
|
|
|
|
|
|
flex: 1 1 0;
|
|
|
|
|
|
min-height: 0;
|
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
margin-top: 8px;
|
|
|
|
|
|
padding: 0.7rem 0.2rem 0.3rem;
|
|
|
|
|
|
background: #fff;
|
|
|
|
|
|
border-radius: 16px;
|
|
|
|
|
|
box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
|
|
|
|
|
|
gap: 0.1rem;
|
|
|
|
|
|
z-index: 1;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.sidebar.collapsed .side-nav {
|
|
|
|
|
|
overflow-x: hidden;
|
|
|
|
|
|
overflow-y: auto;
|
|
|
|
|
|
min-height: 0;
|
|
|
|
|
|
flex: 1 1 0;
|
|
|
|
|
|
gap: 0.08rem;
|
|
|
|
|
|
padding-inline: 0;
|
|
|
|
|
|
scrollbar-width: none;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.sidebar.collapsed .nav-primary,
|
2026-09-11 14:47:01 +03:30
|
|
|
|
.sidebar.collapsed .nav-utility {
|
2026-09-09 17:51:40 +03:30
|
|
|
|
display: grid;
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
gap: 0.08rem;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-09-11 14:47:01 +03:30
|
|
|
|
.sidebar.collapsed .nav-sep {
|
|
|
|
|
|
margin: 0.25rem 0.55rem;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.sidebar.collapsed .nav-fold {
|
|
|
|
|
|
gap: 0;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.sidebar.collapsed .nav-sub,
|
|
|
|
|
|
.sidebar.collapsed .nav-fold-btn .chev {
|
|
|
|
|
|
display: none;
|
2026-09-09 17:51:40 +03:30
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.sidebar.collapsed .nav-item {
|
|
|
|
|
|
display: grid;
|
|
|
|
|
|
place-items: center;
|
|
|
|
|
|
flex-shrink: 0;
|
2026-09-10 23:45:11 +03:30
|
|
|
|
min-height: var(--control-h);
|
|
|
|
|
|
height: var(--control-h);
|
2026-09-09 17:51:40 +03:30
|
|
|
|
padding: 0;
|
2026-09-10 23:45:11 +03:30
|
|
|
|
border-radius: var(--radius);
|
2026-09-09 17:51:40 +03:30
|
|
|
|
position: relative;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.sidebar.collapsed .nav-item :deep(.ico) {
|
|
|
|
|
|
width: 20px;
|
|
|
|
|
|
height: 20px;
|
|
|
|
|
|
flex-shrink: 0;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.sidebar.collapsed .nav-item > span:not(.nav-badge) {
|
|
|
|
|
|
display: none;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.sidebar.collapsed .nav-item.router-link-active {
|
|
|
|
|
|
background: #d8faf3;
|
|
|
|
|
|
color: #0f766e;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.sidebar.collapsed .nav-badge {
|
|
|
|
|
|
position: absolute;
|
|
|
|
|
|
top: 0.18rem;
|
|
|
|
|
|
inset-inline-end: 0.1rem;
|
|
|
|
|
|
margin: 0;
|
|
|
|
|
|
min-width: 0.95rem;
|
|
|
|
|
|
height: 0.95rem;
|
|
|
|
|
|
font-size: 0.58rem;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.sidebar.collapsed .promo-card,
|
|
|
|
|
|
.sidebar.collapsed .scope-banner {
|
|
|
|
|
|
display: none;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.sidebar.collapsed .sidebar-foot {
|
|
|
|
|
|
margin-top: 0.15rem;
|
|
|
|
|
|
padding-top: 0;
|
|
|
|
|
|
gap: 0.1rem;
|
|
|
|
|
|
flex-shrink: 0;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.sidebar.collapsed .logout-link {
|
|
|
|
|
|
display: grid;
|
|
|
|
|
|
place-items: center;
|
|
|
|
|
|
width: 100%;
|
2026-09-10 23:45:11 +03:30
|
|
|
|
min-height: var(--control-h);
|
2026-09-09 17:51:40 +03:30
|
|
|
|
padding: 0;
|
2026-09-10 23:45:11 +03:30
|
|
|
|
border-radius: var(--radius);
|
2026-09-09 17:51:40 +03:30
|
|
|
|
color: #94a3b8;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.sidebar.collapsed .logout-link:hover {
|
|
|
|
|
|
background: #f8fafc;
|
|
|
|
|
|
color: #0f172a;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.sidebar.collapsed .logout-link span {
|
|
|
|
|
|
display: none;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.sidebar.collapsed .collapse-btn {
|
|
|
|
|
|
min-height: 32px;
|
|
|
|
|
|
font-size: 0.7rem;
|
|
|
|
|
|
padding: 0.15rem;
|
|
|
|
|
|
border-radius: 10px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.sidebar.collapsed .collapse-btn :deep(.ico) {
|
|
|
|
|
|
transform: none;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-09-01 15:21:54 +03:30
|
|
|
|
.global-search {
|
2026-09-02 16:06:17 +03:30
|
|
|
|
width: min(100%, 420px);
|
|
|
|
|
|
max-width: 420px;
|
2026-09-09 17:51:40 +03:30
|
|
|
|
min-width: 0;
|
2026-09-02 16:06:17 +03:30
|
|
|
|
justify-self: start;
|
2026-09-09 17:51:40 +03:30
|
|
|
|
margin: 0;
|
2026-09-01 15:21:54 +03:30
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
2026-09-01 15:39:18 +03:30
|
|
|
|
gap: 0.7rem;
|
2026-09-02 16:06:17 +03:30
|
|
|
|
background: #fff;
|
2026-09-10 01:22:24 +03:30
|
|
|
|
border-radius: var(--radius);
|
|
|
|
|
|
min-height: var(--control-h);
|
|
|
|
|
|
padding: 0 0.95rem;
|
2026-09-01 15:39:18 +03:30
|
|
|
|
border: 1px solid transparent;
|
2026-09-02 16:06:17 +03:30
|
|
|
|
box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
|
2026-09-09 17:51:40 +03:30
|
|
|
|
box-sizing: border-box;
|
2026-09-01 15:39:18 +03:30
|
|
|
|
}
|
|
|
|
|
|
|
2026-09-01 16:28:45 +03:30
|
|
|
|
.desktop-topbar {
|
|
|
|
|
|
display: grid;
|
|
|
|
|
|
grid-template-columns: minmax(0, 1fr) auto;
|
2026-09-10 23:45:11 +03:30
|
|
|
|
align-items: center;
|
2026-09-01 16:28:45 +03:30
|
|
|
|
gap: 1rem;
|
2026-09-09 17:51:40 +03:30
|
|
|
|
min-width: 0;
|
2026-09-02 16:06:17 +03:30
|
|
|
|
/* همان فاصله بالای سایدبار شناور (14px) */
|
|
|
|
|
|
padding: 14px 1.5rem 0.85rem;
|
2026-09-01 16:28:45 +03:30
|
|
|
|
position: sticky;
|
|
|
|
|
|
top: 0;
|
|
|
|
|
|
z-index: 20;
|
2026-09-10 01:22:24 +03:30
|
|
|
|
background: color-mix(in srgb, var(--bg) 92%, transparent);
|
2026-09-01 16:28:45 +03:30
|
|
|
|
backdrop-filter: blur(10px);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-09-02 16:06:17 +03:30
|
|
|
|
.topbar-actions {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
gap: 0.5rem;
|
2026-09-09 17:51:40 +03:30
|
|
|
|
flex-shrink: 0;
|
2026-09-02 16:06:17 +03:30
|
|
|
|
/* مرکز عمودی نسبت به ارتفاع جستجو (~49px) */
|
2026-09-10 01:22:24 +03:30
|
|
|
|
min-height: var(--control-h);
|
2026-09-02 16:06:17 +03:30
|
|
|
|
}
|
|
|
|
|
|
|
2026-09-01 15:39:18 +03:30
|
|
|
|
.global-search:focus-within {
|
|
|
|
|
|
background: #fff;
|
2026-09-02 16:06:17 +03:30
|
|
|
|
border-color: #e2e8f0;
|
|
|
|
|
|
box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
|
2026-09-01 15:21:54 +03:30
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.global-search input {
|
|
|
|
|
|
border: 0;
|
|
|
|
|
|
background: transparent;
|
|
|
|
|
|
width: 100%;
|
2026-09-09 17:51:40 +03:30
|
|
|
|
min-width: 0;
|
2026-09-01 15:21:54 +03:30
|
|
|
|
outline: none;
|
2026-09-01 15:39:18 +03:30
|
|
|
|
font-size: 0.92rem;
|
|
|
|
|
|
color: #0f172a;
|
2026-09-01 15:21:54 +03:30
|
|
|
|
}
|
|
|
|
|
|
|
2026-09-01 15:39:18 +03:30
|
|
|
|
.global-search input::placeholder {
|
|
|
|
|
|
color: #94a3b8;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.search-leading {
|
|
|
|
|
|
color: #94a3b8;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.round-btn {
|
2026-09-01 15:21:54 +03:30
|
|
|
|
position: relative;
|
2026-09-10 23:45:11 +03:30
|
|
|
|
width: var(--control-h);
|
|
|
|
|
|
height: var(--control-h);
|
|
|
|
|
|
border-radius: var(--radius);
|
2026-09-01 15:39:18 +03:30
|
|
|
|
border: 0;
|
2026-09-01 15:21:54 +03:30
|
|
|
|
background: #fff;
|
2026-09-01 15:39:18 +03:30
|
|
|
|
color: #64748b;
|
2026-09-01 15:21:54 +03:30
|
|
|
|
display: grid;
|
|
|
|
|
|
place-items: center;
|
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
text-decoration: none;
|
2026-09-01 15:39:18 +03:30
|
|
|
|
box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.round-btn.accent {
|
|
|
|
|
|
color: #14b8a6;
|
|
|
|
|
|
background: #ecfdf8;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.round-btn.sm {
|
|
|
|
|
|
width: 34px;
|
|
|
|
|
|
height: 34px;
|
2026-09-01 15:21:54 +03:30
|
|
|
|
}
|
|
|
|
|
|
|
2026-09-20 11:24:14 +03:30
|
|
|
|
.sub-chip {
|
|
|
|
|
|
display: inline-flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
gap: 0.35rem;
|
|
|
|
|
|
padding: 0.35rem 0.7rem;
|
|
|
|
|
|
border-radius: 999px;
|
|
|
|
|
|
background: var(--accent-subtle);
|
|
|
|
|
|
color: var(--accent-deep);
|
|
|
|
|
|
font-size: 0.78rem;
|
|
|
|
|
|
font-weight: 800;
|
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.sub-chip.warn {
|
|
|
|
|
|
background: color-mix(in srgb, var(--danger) 12%, white);
|
|
|
|
|
|
color: var(--danger);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-09-01 15:21:54 +03:30
|
|
|
|
.date-chip {
|
2026-09-01 15:39:18 +03:30
|
|
|
|
display: inline-flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
gap: 0.45rem;
|
2026-09-10 23:45:11 +03:30
|
|
|
|
height: var(--control-h);
|
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
|
padding: 0 0.75rem;
|
|
|
|
|
|
border-radius: var(--radius);
|
2026-09-01 15:21:54 +03:30
|
|
|
|
background: #fff;
|
2026-09-01 15:39:18 +03:30
|
|
|
|
color: #64748b;
|
|
|
|
|
|
font-size: 0.84rem;
|
|
|
|
|
|
font-weight: 600;
|
2026-09-01 15:21:54 +03:30
|
|
|
|
white-space: nowrap;
|
2026-09-01 15:39:18 +03:30
|
|
|
|
box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
|
2026-08-29 21:06:30 +03:30
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.badge {
|
2026-09-01 15:21:54 +03:30
|
|
|
|
position: absolute;
|
2026-09-01 15:39:18 +03:30
|
|
|
|
top: -2px;
|
|
|
|
|
|
inset-inline-start: -2px;
|
|
|
|
|
|
min-width: 1.05rem;
|
|
|
|
|
|
height: 1.05rem;
|
2026-08-29 21:06:30 +03:30
|
|
|
|
border-radius: 999px;
|
2026-09-01 15:21:54 +03:30
|
|
|
|
background: #ef4444;
|
2026-08-29 21:06:30 +03:30
|
|
|
|
color: #fff;
|
2026-09-01 15:39:18 +03:30
|
|
|
|
font-size: 0.65rem;
|
2026-08-29 21:06:30 +03:30
|
|
|
|
display: grid;
|
|
|
|
|
|
place-items: center;
|
2026-09-01 15:39:18 +03:30
|
|
|
|
padding: 0 0.22rem;
|
|
|
|
|
|
border: 2px solid #fff;
|
2026-08-29 21:06:30 +03:30
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.notif-layer {
|
|
|
|
|
|
position: fixed;
|
|
|
|
|
|
inset: 0;
|
|
|
|
|
|
z-index: 40;
|
|
|
|
|
|
display: grid;
|
|
|
|
|
|
place-items: start end;
|
2026-09-01 15:21:54 +03:30
|
|
|
|
padding: 5rem 1rem 1rem;
|
2026-08-29 21:06:30 +03:30
|
|
|
|
pointer-events: none;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.notif-backdrop {
|
|
|
|
|
|
position: absolute;
|
|
|
|
|
|
inset: 0;
|
2026-09-01 15:39:18 +03:30
|
|
|
|
background: rgba(15, 23, 42, 0.22);
|
2026-08-29 21:06:30 +03:30
|
|
|
|
pointer-events: auto;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.notif-panel {
|
|
|
|
|
|
position: relative;
|
2026-09-01 15:21:54 +03:30
|
|
|
|
width: min(360px, calc(100vw - 2rem));
|
2026-08-29 21:06:30 +03:30
|
|
|
|
max-height: min(70vh, 480px);
|
|
|
|
|
|
overflow: auto;
|
2026-09-01 15:21:54 +03:30
|
|
|
|
background: #fff;
|
2026-09-01 15:39:18 +03:30
|
|
|
|
border: 1px solid #e8eef3;
|
2026-09-01 15:21:54 +03:30
|
|
|
|
border-radius: 18px;
|
2026-08-29 21:06:30 +03:30
|
|
|
|
padding: 0.85rem;
|
2026-09-01 15:21:54 +03:30
|
|
|
|
box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
|
2026-08-29 21:06:30 +03:30
|
|
|
|
pointer-events: auto;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.notif-head {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
margin-bottom: 0.55rem;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.notif-head-actions {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
gap: 0.35rem;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.linkish {
|
|
|
|
|
|
border: 0;
|
|
|
|
|
|
background: transparent;
|
2026-09-01 15:39:18 +03:30
|
|
|
|
color: #14b8a6;
|
2026-08-29 21:06:30 +03:30
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
font: inherit;
|
|
|
|
|
|
font-size: 0.82rem;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.notif-list {
|
|
|
|
|
|
list-style: none;
|
|
|
|
|
|
margin: 0;
|
|
|
|
|
|
padding: 0;
|
|
|
|
|
|
display: grid;
|
|
|
|
|
|
gap: 0.35rem;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.notif-list button {
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
text-align: right;
|
|
|
|
|
|
border: 0;
|
2026-09-01 15:21:54 +03:30
|
|
|
|
background: #f8fafc;
|
|
|
|
|
|
border-radius: 12px;
|
2026-08-29 21:06:30 +03:30
|
|
|
|
padding: 0.65rem 0.7rem;
|
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
display: grid;
|
|
|
|
|
|
gap: 0.2rem;
|
|
|
|
|
|
font: inherit;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.notif-list li.unread button {
|
2026-09-01 15:39:18 +03:30
|
|
|
|
background: #ecfdf8;
|
2026-08-29 21:06:30 +03:30
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.title {
|
|
|
|
|
|
font-weight: 700;
|
|
|
|
|
|
font-size: 0.9rem;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.body,
|
|
|
|
|
|
.time,
|
|
|
|
|
|
.muted {
|
2026-09-01 15:39:18 +03:30
|
|
|
|
color: #94a3b8;
|
2026-08-29 21:06:30 +03:30
|
|
|
|
font-size: 0.8rem;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.content {
|
2026-09-01 15:21:54 +03:30
|
|
|
|
padding: 0 1.5rem 1.5rem;
|
2026-08-29 21:06:30 +03:30
|
|
|
|
min-width: 0;
|
|
|
|
|
|
overflow-x: clip;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-09-09 13:12:13 +03:30
|
|
|
|
@media (max-width: 1280px) and (min-width: 901px) {
|
|
|
|
|
|
.content {
|
|
|
|
|
|
padding-inline: 1rem;
|
|
|
|
|
|
}
|
2026-09-09 17:51:40 +03:30
|
|
|
|
|
|
|
|
|
|
.desktop-topbar {
|
|
|
|
|
|
padding-inline: 1rem;
|
|
|
|
|
|
}
|
2026-09-09 13:12:13 +03:30
|
|
|
|
}
|
|
|
|
|
|
|
2026-08-29 21:06:30 +03:30
|
|
|
|
.burger {
|
2026-09-01 15:39:18 +03:30
|
|
|
|
width: 16px;
|
2026-08-29 21:06:30 +03:30
|
|
|
|
height: 2px;
|
|
|
|
|
|
background: currentColor;
|
|
|
|
|
|
position: relative;
|
|
|
|
|
|
display: block;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.burger::before,
|
|
|
|
|
|
.burger::after {
|
|
|
|
|
|
content: '';
|
|
|
|
|
|
position: absolute;
|
|
|
|
|
|
inset-inline: 0;
|
|
|
|
|
|
height: 2px;
|
|
|
|
|
|
background: currentColor;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.burger::before {
|
2026-09-01 15:39:18 +03:30
|
|
|
|
top: -5px;
|
2026-08-29 21:06:30 +03:30
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.burger::after {
|
2026-09-01 15:39:18 +03:30
|
|
|
|
top: 5px;
|
2026-08-29 21:06:30 +03:30
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.burger.open {
|
|
|
|
|
|
background: transparent;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.burger.open::before {
|
2026-09-01 15:39:18 +03:30
|
|
|
|
transform: translateY(5px) rotate(45deg);
|
2026-08-29 21:06:30 +03:30
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.burger.open::after {
|
2026-09-01 15:39:18 +03:30
|
|
|
|
transform: translateY(-5px) rotate(-45deg);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.mobile-topbar {
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
|
gap: 0.75rem;
|
|
|
|
|
|
padding: 0.75rem 0.9rem;
|
|
|
|
|
|
background: #fff;
|
|
|
|
|
|
border-bottom: 1px solid #e8eef3;
|
|
|
|
|
|
position: sticky;
|
|
|
|
|
|
top: 0;
|
|
|
|
|
|
z-index: 30;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.top-brand {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
gap: 0.5rem;
|
2026-08-29 21:06:30 +03:30
|
|
|
|
}
|
|
|
|
|
|
|
2026-09-14 19:19:09 +03:30
|
|
|
|
.top-tools {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
gap: 0.45rem;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.top-avatar {
|
|
|
|
|
|
display: grid;
|
|
|
|
|
|
place-items: center;
|
|
|
|
|
|
width: var(--control-h);
|
|
|
|
|
|
height: var(--control-h);
|
|
|
|
|
|
text-decoration: none;
|
|
|
|
|
|
flex-shrink: 0;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.top-avatar .avatar-wrap,
|
|
|
|
|
|
.top-avatar .avatar {
|
|
|
|
|
|
width: 36px;
|
|
|
|
|
|
height: 36px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.mobile-tabbar,
|
|
|
|
|
|
.more-layer {
|
|
|
|
|
|
display: none;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-08-29 21:06:30 +03:30
|
|
|
|
@media (max-width: 900px) {
|
|
|
|
|
|
.shell {
|
2026-09-14 19:19:09 +03:30
|
|
|
|
--mobile-tabbar-h: calc(3.65rem + env(safe-area-inset-bottom, 0px));
|
2026-08-29 21:06:30 +03:30
|
|
|
|
grid-template-columns: minmax(0, 1fr);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.desktop-only {
|
|
|
|
|
|
display: none !important;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.mobile-only {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.sidebar {
|
2026-09-14 19:19:09 +03:30
|
|
|
|
display: none;
|
2026-08-29 21:06:30 +03:30
|
|
|
|
}
|
|
|
|
|
|
|
2026-09-11 17:37:24 +03:30
|
|
|
|
.hub-layer {
|
|
|
|
|
|
z-index: 80;
|
2026-09-14 19:19:09 +03:30
|
|
|
|
bottom: var(--mobile-tabbar-h);
|
2026-09-11 17:37:24 +03:30
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.hub-layer :deep(.hub) {
|
|
|
|
|
|
top: auto;
|
|
|
|
|
|
bottom: 0;
|
|
|
|
|
|
inset-inline: 0;
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
margin: 0;
|
2026-09-14 19:19:09 +03:30
|
|
|
|
padding-bottom: 0.9rem;
|
|
|
|
|
|
max-height: min(86dvh, calc(100dvh - var(--mobile-tabbar-h) - 2rem));
|
2026-09-11 17:37:24 +03:30
|
|
|
|
animation: hub-sheet-up 0.28s ease;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@keyframes hub-sheet-up {
|
|
|
|
|
|
from {
|
|
|
|
|
|
transform: translateY(100%);
|
|
|
|
|
|
}
|
|
|
|
|
|
to {
|
|
|
|
|
|
transform: translateY(0);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-08-29 21:06:30 +03:30
|
|
|
|
.content {
|
2026-09-14 19:19:09 +03:30
|
|
|
|
padding: 1rem 0.85rem calc(1.25rem + var(--mobile-tabbar-h));
|
2026-08-29 21:06:30 +03:30
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.notif-layer {
|
2026-09-14 19:19:09 +03:30
|
|
|
|
padding: 4.25rem 0.65rem calc(1rem + var(--mobile-tabbar-h));
|
2026-08-29 21:06:30 +03:30
|
|
|
|
place-items: start stretch;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.notif-panel {
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
}
|
2026-09-14 19:19:09 +03:30
|
|
|
|
|
|
|
|
|
|
.mobile-tabbar {
|
|
|
|
|
|
position: fixed;
|
|
|
|
|
|
inset-inline: 0;
|
|
|
|
|
|
bottom: 0;
|
|
|
|
|
|
z-index: 45;
|
|
|
|
|
|
display: grid;
|
|
|
|
|
|
grid-template-columns: repeat(5, minmax(0, 1fr));
|
|
|
|
|
|
align-items: stretch;
|
|
|
|
|
|
height: var(--mobile-tabbar-h);
|
|
|
|
|
|
min-height: var(--mobile-tabbar-h);
|
|
|
|
|
|
padding: 0.28rem 0.2rem calc(0.28rem + env(safe-area-inset-bottom, 0px));
|
|
|
|
|
|
background: #fff;
|
|
|
|
|
|
border-top: 1px solid #e8eef3;
|
|
|
|
|
|
box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.06);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.tab {
|
|
|
|
|
|
appearance: none;
|
|
|
|
|
|
border: 0;
|
|
|
|
|
|
background: transparent;
|
|
|
|
|
|
color: #334155;
|
|
|
|
|
|
display: grid;
|
|
|
|
|
|
justify-items: center;
|
|
|
|
|
|
align-content: center;
|
|
|
|
|
|
gap: 0.12rem;
|
|
|
|
|
|
min-width: 0;
|
|
|
|
|
|
margin: 0.12rem;
|
|
|
|
|
|
padding: 0.28rem 0.1rem;
|
|
|
|
|
|
border-radius: 14px;
|
|
|
|
|
|
font: inherit;
|
|
|
|
|
|
font-size: 0.68rem;
|
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
|
line-height: 1.15;
|
|
|
|
|
|
text-decoration: none;
|
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
-webkit-tap-highlight-color: transparent;
|
|
|
|
|
|
transition: background 0.15s ease, color 0.15s ease;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.tab > span:not(.tab-ico) {
|
|
|
|
|
|
max-width: 100%;
|
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.tab:hover {
|
|
|
|
|
|
background: #f8fafc;
|
|
|
|
|
|
color: #0f172a;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.tab:active,
|
|
|
|
|
|
.tab.on {
|
|
|
|
|
|
background: #d8faf3;
|
|
|
|
|
|
color: #0f766e;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.tab:active :deep(.ico),
|
|
|
|
|
|
.tab.on :deep(.ico) {
|
|
|
|
|
|
color: #0f766e;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.tab-ico {
|
|
|
|
|
|
position: relative;
|
|
|
|
|
|
display: grid;
|
|
|
|
|
|
place-items: center;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.tab-badge {
|
|
|
|
|
|
position: absolute;
|
|
|
|
|
|
top: -0.35rem;
|
|
|
|
|
|
inset-inline-start: 0.85rem;
|
|
|
|
|
|
min-width: 1rem;
|
|
|
|
|
|
height: 1rem;
|
|
|
|
|
|
padding: 0 0.2rem;
|
|
|
|
|
|
border-radius: 999px;
|
|
|
|
|
|
background: #14b8a6;
|
|
|
|
|
|
color: #fff;
|
|
|
|
|
|
font-size: 0.62rem;
|
|
|
|
|
|
font-weight: 800;
|
|
|
|
|
|
display: grid;
|
|
|
|
|
|
place-items: center;
|
|
|
|
|
|
border: 2px solid #fff;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.more-layer {
|
|
|
|
|
|
position: fixed;
|
|
|
|
|
|
inset: 0 0 var(--mobile-tabbar-h) 0;
|
|
|
|
|
|
z-index: 40;
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
|
background: #fff;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.more-head {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
|
gap: 0.75rem;
|
|
|
|
|
|
padding: calc(0.75rem + env(safe-area-inset-top, 0px)) 1rem 0.85rem;
|
|
|
|
|
|
background: #fff;
|
|
|
|
|
|
border-bottom: 1px solid #e8eef3;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.more-head h2 {
|
|
|
|
|
|
margin: 0;
|
|
|
|
|
|
font-size: 1.05rem;
|
|
|
|
|
|
font-weight: 800;
|
|
|
|
|
|
color: #0f172a;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.more-body {
|
|
|
|
|
|
flex: 1;
|
|
|
|
|
|
overflow: auto;
|
|
|
|
|
|
display: grid;
|
|
|
|
|
|
align-content: start;
|
|
|
|
|
|
gap: 0.35rem;
|
|
|
|
|
|
padding: 0.45rem 0.55rem 0.5rem;
|
|
|
|
|
|
-webkit-tap-highlight-color: transparent;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.more-body .nav-item:active {
|
|
|
|
|
|
background: #d8faf3;
|
|
|
|
|
|
color: #0f766e;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.more-logout {
|
|
|
|
|
|
justify-self: start;
|
|
|
|
|
|
margin: 0.15rem 0.85rem 0.85rem;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
</style>
|
|
|
|
|
|
|
|
|
|
|
|
<style>
|
|
|
|
|
|
body.mobile-nav-overlay .qc {
|
|
|
|
|
|
display: none;
|
2026-08-29 21:06:30 +03:30
|
|
|
|
}
|
|
|
|
|
|
</style>
|