/* Dezhban enterprise workspace: scoped so authentication/consent screens are unchanged. */
html.dejban-enterprise {
    --vz-primary: #2459a5;
    --vz-primary-rgb: 36, 89, 165;
    --vz-body-bg: #f3f6fa;
    --vz-body-color: #243349;
    --vz-border-color: #dfe6ef;
    --dejban-navy: #15243b;
    --dejban-navy-soft: #233954;
    --dejban-muted: #64748b;
    --dejban-line: #e0e7f0;
    --dejban-radius: 11px;
}
html.dejban-enterprise body {
    font-family: "Vazirmatn", Tahoma, sans-serif;
    background: #f3f6fa;
    color: #243349;
    font-size: 13px;
    -webkit-font-smoothing: antialiased;
}
html.dejban-enterprise .main-content { min-width: 0; }
html.dejban-enterprise .page-content { padding-top: 93px; padding-bottom: 35px; }
html.dejban-enterprise .dejban-workspace { max-width: 1720px; padding-inline: clamp(14px, 1.8vw, 32px); }
.dejban-skip {
    position: fixed; top: -100px; right: 18px; z-index: 1100;
    padding: 10px 16px; background: #fff; color: #174a87; border: 2px solid #2459a5; border-radius: 8px;
}
.dejban-skip:focus { top: 12px; }
html.dejban-enterprise :is(a,button,input,select,textarea):focus-visible {
    outline: 2px solid #3575c8; outline-offset: 2px;
}
html.dejban-enterprise .navbar-menu.dejban-sidebar {
    background: var(--dejban-navy) !important;
    border-inline-end: 1px solid #293d58;
    box-shadow: 4px 0 24px rgba(22,39,63,.10);
}
html.dejban-enterprise .dejban-sidebar .navbar-brand-box {
    background: #101d31 !important;
    height: 72px;
    border-bottom: 1px solid #30435c;
    display: flex; align-items: center;
    padding-inline: 18px;
}
.dejban-brand { display: flex; align-items: center; gap: 11px; min-width: 0; text-decoration: none; color: #fff; }
.dejban-brand:hover { color: #fff; }
.dejban-brand-icon {
    width: 40px; height: 40px; border-radius: 11px; background: #315c93;
    display: inline-flex; align-items: center; justify-content: center;
    color: #e9f2ff; font-size: 23px; flex-shrink: 0;
}
.dejban-brand-name { display: flex; flex-direction: column; gap: 2px; text-align: start; }
.dejban-brand-name strong { color: #fff; font-size: 18px; letter-spacing: -.3px; line-height: 1.2; }
.dejban-brand-name small { color: #9ab0cc; font-size: 10px; }
html.dejban-enterprise .dejban-sidebar #scrollbar { height: calc(100vh - 117px); }
html.dejban-enterprise .dejban-sidebar .navbar-nav { padding: 12px 8px 18px; }
html.dejban-enterprise .dejban-sidebar .menu-title {
    margin-top: 15px; margin-bottom: 6px; letter-spacing: 0; padding: 0 14px;
}
html.dejban-enterprise .dejban-sidebar .menu-title span {
    color: #849cbb !important; font-weight: 600; font-size: 11px;
}
html.dejban-enterprise .dejban-sidebar .nav-item { margin-bottom: 2px; }
html.dejban-enterprise .dejban-sidebar .nav-link.menu-link {
    display: flex; align-items: center; gap: 11px; min-height: 41px;
    color: #c1cee0 !important; margin: 0; padding: 9px 13px;
    border-radius: 8px; font-size: 12.6px; font-weight: 500;
    border-inline-start: 3px solid transparent;
}
html.dejban-enterprise .dejban-sidebar .nav-link.menu-link i {
    margin: 0; min-width: 20px; color: #8faaca !important; font-size: 20px; line-height: 1;
}
html.dejban-enterprise .dejban-sidebar .nav-link.menu-link:hover {
    color: #fff !important; background: #253c59;
}
html.dejban-enterprise .dejban-sidebar .nav-link.menu-link.active {
    color: #fff !important; background: #2b4769; border-inline-start-color: #70abf6;
    font-weight: 700;
}
html.dejban-enterprise .dejban-sidebar .nav-link.menu-link.active i { color: #c4dfff !important; }
.dejban-sidebar-footer {
    height: 45px; display: flex; align-items: center; gap: 8px;
    padding-inline: 18px; color: #8faaca; border-top: 1px solid #30435c; font-size: 11px;
}
.dejban-sidebar-footer i { color: #8fcbce; font-size: 17px; }
html.dejban-enterprise #page-topbar.dejban-topbar {
    background: #fff !important;
    border-bottom: 1px solid var(--dejban-line);
    box-shadow: 0 1px 5px rgba(30,48,74,.03);
}
html.dejban-enterprise #page-topbar .navbar-header { height: 72px; padding-inline: 12px 24px; gap: 10px; }
html.dejban-enterprise #page-topbar .navbar-header > div { min-width: 0; }
.dejban-location { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding-inline-start: 5px; }
.dejban-location-eyebrow { color: var(--dejban-muted); font-size: 10.5px; white-space: nowrap; }
.dejban-location-title { font-size: 15px; line-height: 1.3; color: #1b2a40; font-weight: 750; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.dejban-topbar-link {
    color: #4a5e77; display: inline-flex; align-items: center; gap: 7px;
    text-decoration: none; padding: 8px 9px; font-size: 12px; border-radius: 7px; white-space: nowrap;
}
.dejban-topbar-link:hover { color: #2459a5; background: #f0f5fc; }
.dejban-topbar-link i { font-size: 19px; }
.dejban-topbar-create { display: inline-flex; align-items: center; gap: 7px; border-radius: 7px; padding: 8px 12px; font-weight: 650; white-space: nowrap; }
.dejban-topbar-divider { width: 1px; height: 27px; background: #e3e8ef; }
.dejban-current-user { max-width: 165px; gap: 8px; align-items: center; color: #46566c; font-weight: 600; font-size: 11px; }
.dejban-user-dot { width: 8px; height: 8px; background: #16986d; box-shadow: 0 0 0 3px #e1f5ed; border-radius: 50%; flex-shrink: 0; }
html.dejban-enterprise .topnav-hamburger { color: #344c68; }
html.dejban-enterprise :is(h1,h2,h3,h4,h5,h6) { font-family: inherit; color: #22334b; }
html.dejban-enterprise h4 { font-size: 19px; font-weight: 750; }
html.dejban-enterprise .text-muted { color: var(--dejban-muted) !important; }
html.dejban-enterprise .card {
    border: 1px solid var(--dejban-line) !important;
    border-radius: var(--dejban-radius);
    box-shadow: 0 2px 9px rgba(34,57,91,.035) !important;
    background: #fff; min-width: 0;
}
html.dejban-enterprise .card .card-header {
    background: #fff !important; border-bottom: 1px solid #e8edf3;
    border-radius: var(--dejban-radius) var(--dejban-radius) 0 0;
    padding: 14px 18px;
}
html.dejban-enterprise .card .card-body { padding: 17px 18px; }
html.dejban-enterprise .card .card-body.p-0 { padding: 0 !important; }
html.dejban-enterprise .card .card-footer { background: #fbfcfe; border-top: 1px solid #e8edf3; padding: 12px 18px; }
html.dejban-enterprise .form-label { color: #374b65; font-weight: 600; font-size: 12px; margin-bottom: 6px; }
html.dejban-enterprise :is(.form-control,.form-select) {
    border-radius: 7px; border-color: #d3deeb; background-color: #fff;
    color: #283a51; min-height: 38px; font-size: 12.5px;
}
html.dejban-enterprise :is(.form-control,.form-select):focus {
    border-color: #5b8dcc; box-shadow: 0 0 0 3px rgba(36,89,165,.11);
}
html.dejban-enterprise .form-text { font-size: 11px; line-height: 1.7; }
html.dejban-enterprise .btn { border-radius: 7px; font-weight: 600; font-size: 12px; }
html.dejban-enterprise .btn-primary { background: #2459a5; border-color: #2459a5; }
html.dejban-enterprise .btn-primary:hover { background: #1b497f; border-color: #1b497f; }
html.dejban-enterprise .btn-sm { padding: 6px 11px; }
html.dejban-enterprise .table-responsive {
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    scrollbar-color: #c0cede transparent;
}
/* Data tables retain readable cells at mobile widths; only the table scrolls. */
html.dejban-enterprise .table-responsive > table.table { min-width: 920px; }
html.dejban-enterprise .table-responsive > table.table th,
html.dejban-enterprise .table-responsive > table.table td { word-break: normal; }
html.dejban-enterprise .table-responsive > table.table td { white-space: nowrap; }
html.dejban-enterprise .table-responsive > table.table td[style*="overflow-wrap"] { white-space: normal; }
.dejban-table-hint { color: #667f9a; font-size: 11px; padding: 10px 14px; border-bottom: 1px solid #eef2f6; }
.dejban-table-hint i { color: #2865af; font-size: 16px; vertical-align: middle; margin-inline-end: 4px; }
@media (max-width: 767.98px) {
    html.dejban-enterprise body.dejban-admin .table-responsive > table.table th:first-child,
    html.dejban-enterprise body.dejban-admin .table-responsive > table.table td:first-child {
        position: sticky; right: 0; z-index: 1; background: #fff; box-shadow: -1px 0 0 #e4eaf2;
    }
    html.dejban-enterprise body.dejban-admin .table-responsive > table.table th:first-child { background: #f6f8fb; z-index: 2; }
}

html.dejban-enterprise .table {
    --vz-table-bg: transparent; margin: 0; vertical-align: middle;
    font-size: 12.5px; color: #31445b;
}
html.dejban-enterprise .table thead th {
    background: #f6f8fb !important; color: #52677f;
    font-size: 11px; font-weight: 750; padding: 12px 14px;
    border-bottom: 1px solid #dee6ee; white-space: nowrap;
}
html.dejban-enterprise .table tbody td { padding: 12px 14px; border-color: #edf1f5; }
html.dejban-enterprise .table tbody tr:hover { background: #f8fbff; }
html.dejban-enterprise .badge { font-weight: 650; padding: 5px 8px; border-radius: 5px; }
html.dejban-enterprise .alert { border-radius: 8px; }
html.dejban-enterprise .footer { border-top: 1px solid #e2e9f2; background: #f8fafc; color: #607188; }
html.dejban-enterprise .pagination { gap: 3px; }
html.dejban-enterprise .page-link { border-radius: 6px; }
.dejban-eyebrow { font-size: 11px; font-weight: 750; color: #3769a4; }
.dejban-page-title { font-weight: 800; font-size: 23px; letter-spacing: -.5px; margin: 5px 0 7px; }
.dejban-page-subtitle { color: #62748d; font-size: 12.5px; max-width: 780px; }
.dejban-page-heading { margin-bottom: 24px; }
.dejban-stat-card { position: relative; overflow: hidden; min-height: 142px; }
.dejban-stat-card .card-body { display: flex; justify-content: space-between; align-items: flex-start; }
.dejban-stat-value { font-size: 30px; font-weight: 800; line-height: 1.2; color: #173d76; font-variant-numeric: tabular-nums; }
.dejban-stat-label { color: #536881; font-size: 12px; font-weight: 600; }
.dejban-stat-help { color: #7889a0; font-size: 11px; margin-top: 14px; }
.dejban-stat-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 11px; background: #eaf2fc; color: #2459a5; font-size: 23px; }
.dejban-tile-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.dejban-action-tile {
    display: flex; gap: 12px; align-items: flex-start; padding: 17px 15px;
    color: #243349; border: 1px solid #e0e7f0; border-radius: 9px; text-decoration: none;
    background: #fff; min-height: 95px;
}
.dejban-action-tile:hover { border-color: #a9c3e5; background: #f7faff; color: #19477f; }
.dejban-action-tile > i { color: #3769a4; font-size: 23px; flex: 0 0 auto; }
.dejban-action-tile strong { display: block; font-size: 12.5px; margin-bottom: 5px; }
.dejban-action-tile small { display: block; color: #77869b; font-size: 11px; line-height: 1.6; }
.dejban-steps { padding: 0; margin: 0; list-style: none; }
.dejban-steps li { position: relative; display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-bottom: 1px solid #edf1f5; }
.dejban-steps li:last-child { border-bottom: none; }
.dejban-step-number { width: 25px; height: 25px; flex-shrink: 0; background: #e8f0fb; color: #2459a5; border-radius: 8px; text-align: center; line-height: 25px; font-weight: 700; }
.dejban-steps strong { display: block; margin-bottom: 3px; }
.dejban-steps small { display: block; color: #687c93; line-height: 1.6; }
html.dejban-enterprise .table :is(td,th)[dir="ltr"] { unicode-bidi: isolate; }
html.dejban-enterprise .table td { overflow-wrap: anywhere; }
@media (max-width: 1199.98px) {
    .dejban-tile-grid { grid-template-columns: 1fr; }
}
@media (max-width: 991.98px) {
    html.dejban-enterprise .page-content { padding-top: 86px; }
    html.dejban-enterprise #page-topbar .navbar-header { padding-inline: 6px 12px; }
    .dejban-sidebar-footer { display: none; }
    html.dejban-enterprise .dejban-sidebar #scrollbar { height: calc(100vh - 72px); }
}
@media (max-width: 575.98px) {
    html.dejban-enterprise .dejban-workspace { padding-inline: 13px; }
    .dejban-location-eyebrow { display: none; }
    .dejban-location-title { font-size: 13px; max-width: 135px; }
    html.dejban-enterprise .card .card-body { padding: 14px; }
    .dejban-page-title { font-size: 19px; }
    .dejban-stat-value { font-size: 25px; }
    .dejban-tile-grid { grid-template-columns: 1fr; }
    html.dejban-enterprise .table thead th,html.dejban-enterprise .table tbody td { padding: 10px 12px; }
}
@media (prefers-reduced-motion: reduce) {
    html.dejban-enterprise * { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
/* Identity detail data is a two-column definition list, not a wide record grid. */
html.dejban-enterprise .dejban-properties > table.table { min-width: 0; width: 100%; table-layout: fixed; }
html.dejban-enterprise .dejban-properties > table.table :is(th,td) { white-space: normal; overflow-wrap: anywhere; }
html.dejban-enterprise .dejban-properties > table.table th { width: min(33%, 190px) !important; }
html.dejban-enterprise .dejban-audit-table { min-width: 1240px !important; }
html.dejban-enterprise .dejban-audit-table td { vertical-align: top; }
html.dejban-enterprise .dejban-audit-table .dejban-audit-reason {
    min-width: 230px; max-width: 360px; white-space: normal; overflow-wrap: anywhere; line-height: 1.8;
}
html.dejban-enterprise .dejban-audit-table .dejban-audit-change {
    min-width: 210px; max-width: 350px; white-space: normal; overflow-wrap: anywhere;
    font: 12px ui-monospace, Consolas, monospace; line-height: 1.7;
}
html.dejban-enterprise .dejban-audit-table td[dir="ltr"] { text-align: left; }
html.dejban-enterprise .dejban-audit-table td.font-monospace { font-size: 11px; }
html.dejban-enterprise .table-responsive:focus-visible { outline: 2px solid #3575c8; outline-offset: 0; }
