:root {
    --brand-violet: #b400ff;
    --brand-indigo: #6f00ff;
    --brand-green: #68ea7d;
    --brand-cyan: #3df1fd;
    --brand-storm: #f7f7f7;
    --brand-gradient: linear-gradient(160deg, var(--brand-indigo) 0%, var(--brand-violet) 100%);
}
body { font-family: Vazirmatn, Tahoma, sans-serif; background: var(--brand-storm); }
.navbar-brand { font-weight: 700; }
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; }
table td, table th { vertical-align: middle; }

/* ---------- چیدمان با منوی کناری راست ---------- */
/* ===== پوسته مشترک نوینکست (کیت طراحی؛ عیناً در همه سامانه‌ها) — design-system/novinext/MASTER.md ===== */
*, *::before, *::after { box-sizing: border-box; }
.app-shell { display: flex; min-height: 100vh; min-height: 100dvh; align-items: stretch; }
.app-sidebar {
    width: 240px; flex-shrink: 0; color: #fff; padding: 20px 16px; display: flex; flex-direction: column;
    background: linear-gradient(165deg, #6f00ff 0%, #b400ff 100%);
    position: sticky; top: 0; height: 100vh; height: 100dvh; overflow-y: auto;
}
.app-sidebar svg.i, .app-main svg.i { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.nx-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; padding: 0 4px; }
.nx-brand-mark { width: 40px; height: 40px; border-radius: 10px; background: #fff; display: grid; place-items: center; flex-shrink: 0;
    color: #6f00ff; font-weight: 900; font-size: 18px; overflow: hidden; }
.nx-brand-mark img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.nx-brand-name { flex: 1; font-weight: 800; font-size: 15px; line-height: 1.35; }
.nx-brand-sub { display: block; font-size: 12px; font-weight: 500; color: #fff; }
.nx-menu-btn { display: none; width: 44px; height: 44px; border: 0; border-radius: 10px; background: rgba(255,255,255,.18); color: #fff; cursor: pointer; }
.nx-menu-btn svg { display: block; margin: auto; }
.app-sidebar .sidebar-nav { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.app-sidebar .sidebar-nav a {
    display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; border-radius: 10px;
    color: #fff; font-size: 15px; text-decoration: none; transition: background-color 150ms cubic-bezier(.2,.8,.2,1);
}
.app-sidebar .sidebar-nav a:hover { background: rgba(35,0,80,.16); color: #fff; }
.app-sidebar .sidebar-nav a.active { background: rgba(35,0,80,.28); font-weight: 700; box-shadow: inset -3px 0 0 #fff; }
.app-sidebar .sidebar-user { border-top: 1px solid rgba(255,255,255,.3); padding-top: 12px; margin-top: 12px; font-size: 14px; }
.app-sidebar .sidebar-user .user-name { font-weight: 700; margin-bottom: 4px; padding: 0 12px; }
.app-sidebar .sidebar-actions { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; }
.app-sidebar .sidebar-actions a {
    display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; border-radius: 10px;
    color: #fff; background: transparent; font-size: 14px; text-decoration: none; text-align: right;
    transition: background-color 150ms cubic-bezier(.2,.8,.2,1);
}
.app-sidebar .sidebar-actions a:hover { background: rgba(35,0,80,.16); }
.app-main { flex: 1; min-width: 0; padding: 24px; }
.app-main:focus { outline: none; }

/* دسترس‌پذیری عمومی */
a, button, [role="button"] { cursor: pointer; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
    outline: 3px solid #6f00ff; outline-offset: 2px;
}
.app-sidebar a:focus-visible, .app-sidebar button:focus-visible { outline-color: #fff; }
.skip-link { position: absolute; top: -100px; right: 16px; z-index: 1000; background: #fff; color: #231a3a; min-height: 44px;
    display: inline-flex; align-items: center; padding: 0 16px; border-radius: 10px; font-weight: 700; box-shadow: 0 4px 16px rgba(0,0,0,.2); }
.skip-link:focus { top: 12px; }
.badge { font-size: max(12px, .75em); } /* برچسب‌های Bootstrap: حداقل ۱۲ پیکسل */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* موبایل (< ۷۶۸): نوار بالای صفحه + منوی بازشونده */
@media (max-width: 767px) {
    .app-shell { flex-direction: column; }
    .app-sidebar { width: 100%; height: auto; padding: 10px 14px; z-index: 20; overflow: visible; }
    .nx-brand { margin: 0; }
    .nx-menu-btn { display: block; }
    .app-sidebar .sidebar-nav, .app-sidebar .sidebar-user { display: none; }
    body.nav-open .app-sidebar .sidebar-nav { display: flex; margin-top: 10px; }
    body.nav-open .app-sidebar .sidebar-user { display: block; }
    .app-main { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
/* ===== پایان پوسته مشترک ===== */

.stage-pill { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 13px; background: #eef2ff; color: #3730a3; }
.stage-card { border: 1px solid #e5e7eb; border-radius: 10px; padding: 14px; background: #fff; margin-bottom: 10px; }
.transition-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.flow-node { border: 2px solid #c7d2fe; border-radius: 10px; padding: 10px 14px; background: #eef2ff; display: inline-block; margin: 4px; }
.flow-node.terminal-hired { border-color: #86efac; background: #f0fdf4; }
.flow-node.terminal-rejected { border-color: #fca5a5; background: #fef2f2; }
.job-card { border: 1px solid #e5e7eb; border-radius: 12px; padding: 20px; background: #fff; margin-bottom: 16px; }

/* جدول‌های اسکرول‌شونده: برچسب‌های مخصوص صفحه‌خوان (visually-hidden) داخل آن‌ها از کادر بیرون نزنند و صفحه اسکرول افقی نگیرد */
.table-responsive { position: relative; }
/* ناحیه لمسی ۴۴ پیکسل برای دکمه‌ها و پیوندهای دکمه‌مانند */
.touch44 { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
