:root {
    --erp-ink: #0f172a;
    --erp-ink-soft: #334155;
    --erp-muted: #64748b;
    --erp-line: #e2e8f0;
    --erp-line-soft: #edf2f7;
    --erp-bg: #f8fafc;
    --erp-surface: #ffffff;
    --erp-accent: #0ea5e9;
    --erp-success: #10b981;
    --erp-warning: #f59e0b;
    --erp-danger: #ef4444;
    --erp-shadow-sm: 0 10px 24px rgba(15, 23, 42, .06);
    --erp-shadow-md: 0 18px 45px rgba(15, 23, 42, .10);
    --erp-radius: 16px;
    --erp-radius-sm: 12px;
    --erp-font: "Cairo", "Tajawal", "IBM Plex Sans Arabic", Tahoma, Arial, sans-serif;
}

html,
body {
    background: var(--erp-bg) !important;
    color: var(--erp-ink);
    font-family: var(--erp-font) !important;
    text-rendering: optimizeLegibility;
}

body {
    letter-spacing: 0;
}

.content-page,
.content-page .content,
.container-fluid {
    background: var(--erp-bg);
}

.navbar-custom {
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    background: rgba(255, 255, 255, .84) !important;
    border-bottom: 1px solid rgba(226, 232, 240, .78);
    box-shadow: 0 14px 35px rgba(15, 23, 42, .07);
    min-height: 72px;
}

.logo-box {
    background: var(--erp-ink) !important;
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .08);
    min-height: 72px;
}

.navbar-custom .topnav-menu .nav-link,
.navbar-custom .button-menu-mobile {
    align-items: center;
    border-radius: 999px;
    color: var(--erp-ink-soft) !important;
    display: inline-flex;
    min-height: 42px;
    transition: background-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.navbar-custom .topnav-menu .nav-link:hover,
.navbar-custom .button-menu-mobile:hover {
    background: #f1f5f9;
    box-shadow: 0 10px 22px rgba(15, 23, 42, .08);
    transform: translateY(-1px);
}

.erp-topbar-command-center {
    align-items: center;
    display: flex;
    gap: 10px;
    margin: 14px 18px 0 0;
}

.erp-global-search {
    align-items: center;
    background: rgba(248, 250, 252, .9);
    border: 1px solid rgba(203, 213, 225, .78);
    border-radius: 999px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
    display: flex;
    gap: 8px;
    min-width: 320px;
    padding: 0 14px;
}

.erp-global-search i {
    color: var(--erp-muted);
}

.erp-global-search input {
    background: transparent;
    border: 0;
    color: var(--erp-ink);
    font-family: var(--erp-font);
    height: 42px;
    max-width: none;
    outline: 0;
    width: 100%;
}

.erp-company-switcher,
.erp-quick-create {
    align-items: center;
    border: 1px solid rgba(203, 213, 225, .78);
    border-radius: 999px;
    display: inline-flex;
    font-weight: 800;
    gap: 8px;
    height: 42px;
    justify-content: center;
    padding: 0 14px;
    white-space: nowrap;
}

.erp-company-switcher {
    background: #fff;
    color: var(--erp-ink-soft);
}

.erp-quick-create {
    background: var(--erp-ink);
    border-color: var(--erp-ink);
    color: #fff;
    box-shadow: 0 13px 28px rgba(15, 23, 42, .18);
}

.left-side-menu {
    background: var(--erp-ink) !important;
    border-left: 1px solid rgba(255, 255, 255, .06);
    box-shadow: -18px 0 45px rgba(15, 23, 42, .13);
}

#sidebar-menu {
    padding: 10px 10px 18px;
}

.side-menu-search {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 14px;
    margin: 8px 2px 14px;
    padding: 6px;
}

.side-menu-search .form-control {
    background: transparent;
    border: 0;
    color: #e5eefb;
    max-width: none;
}

.side-menu-search .form-control::placeholder {
    color: #94a3b8;
}

.metismenu li a,
#side-menu li a {
    align-items: center;
    border-radius: 14px;
    color: #cbd5e1 !important;
    display: flex;
    font-weight: 700;
    gap: 10px;
    margin: 2px 0;
    min-height: 42px;
    padding: 10px 12px !important;
    position: relative;
    transition: background-color .18s ease, color .18s ease, transform .18s ease;
}

.metismenu li a:hover,
.metismenu li a:focus,
.metismenu li a.active,
.metismenu li.mm-active > a {
    background: rgba(14, 165, 233, .14);
    color: #fff !important;
    transform: translateX(-2px);
}

.metismenu li a.active::before,
.metismenu li.mm-active > a::before {
    background: var(--erp-accent);
    border-radius: 999px;
    bottom: 9px;
    content: "";
    position: absolute;
    right: 4px;
    top: 9px;
    width: 4px;
}

#side-menu i {
    color: #7dd3fc;
    font-size: 17px;
    min-width: 20px;
    text-align: center;
}

.erp-menu-section {
    color: #7c8ca5;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0;
    padding: 18px 13px 7px;
    text-transform: uppercase;
}

.enlarged .left-side-menu #side-menu span,
.enlarged .left-side-menu .erp-menu-section,
.enlarged .left-side-menu .side-menu-search,
.enlarged .left-side-menu .favorite-screens-card {
    display: none !important;
}

.enlarged .left-side-menu {
    width: 84px;
}

.enlarged .content-page {
    margin-right: 84px;
}

html[dir="ltr"] .left-side-menu {
    border-left: 0;
    border-right: 1px solid rgba(255, 255, 255, .06);
    box-shadow: 18px 0 45px rgba(15, 23, 42, .13);
    left: 0;
    right: auto;
}

html[dir="ltr"] .enlarged .content-page {
    margin-left: 84px;
    margin-right: 0;
}

html[dir="ltr"] .metismenu li a:hover,
html[dir="ltr"] .metismenu li a:focus,
html[dir="ltr"] .metismenu li a.active,
html[dir="ltr"] .metismenu li.mm-active > a {
    transform: translateX(2px);
}

html[dir="ltr"] .metismenu li a.active::before,
html[dir="ltr"] .metismenu li.mm-active > a::before {
    left: 4px;
    right: auto;
}

html[dir="ltr"] .erp-topbar-command-center {
    margin: 14px 0 0 18px;
}

.card-box,
.card,
.modal-content {
    border: 1px solid rgba(226, 232, 240, .78) !important;
    border-radius: var(--erp-radius) !important;
    box-shadow: var(--erp-shadow-sm);
}

.card-box {
    background: var(--erp-surface);
    transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}

.card-box:hover {
    border-color: rgba(14, 165, 233, .22) !important;
    box-shadow: var(--erp-shadow-md);
    transform: translateY(-2px);
}

.header-title,
.page-title {
    color: var(--erp-ink);
    font-family: var(--erp-font) !important;
    font-weight: 900;
}

.btn {
    border-radius: 12px;
    font-weight: 800;
}

.table-responsive {
    border-radius: 14px;
}

.table {
    background: #fff;
    border-collapse: separate;
    border-spacing: 0;
}

.table thead th,
.table .thead-light th {
    background: #f8fafc !important;
    border-bottom: 1px solid var(--erp-line) !important;
    color: var(--erp-ink-soft);
    font-size: 12px;
    font-weight: 900;
    position: sticky;
    top: 0;
    z-index: 2;
}

.table td,
.table th {
    border-color: var(--erp-line-soft) !important;
    vertical-align: middle !important;
}

.table-hover tbody tr {
    transition: background-color .16s ease, box-shadow .16s ease;
}

.table-hover tbody tr:hover {
    background: #f8fafc;
    box-shadow: inset 4px 0 0 var(--erp-accent);
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select,
.form-control,
.select2-container .select2-selection {
    border-color: #cbd5e1 !important;
    border-radius: 12px !important;
    box-shadow: none !important;
}

.dataTables_wrapper .dt-buttons .btn,
.erp-table-tools .btn {
    background: #fff;
    border: 1px solid var(--erp-line);
    color: var(--erp-ink-soft);
}

.dynamic-premium-dashboard {
    direction: rtl;
    font-family: var(--erp-font);
    padding: 8px 0 22px;
}

.erp-dashboard-hero {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.erp-dashboard-title h1 {
    color: var(--erp-ink);
    font-size: 28px;
    font-weight: 900;
    line-height: 1.35;
    margin: 0;
}

.erp-dashboard-title p {
    color: var(--erp-muted);
    margin: 4px 0 0;
}

.erp-dashboard-context {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.erp-dashboard-context span,
.erp-dashboard-context em {
    border-radius: 999px;
    display: inline-flex;
    font-size: 12px;
    font-style: normal;
    font-weight: 900;
    min-height: 30px;
    padding: 6px 10px;
}

.erp-dashboard-context span {
    align-items: center;
    background: #ecfdf5;
    color: #047857;
    gap: 6px;
}

.erp-dashboard-context em {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: var(--erp-muted);
    max-width: 900px;
}

.erp-dashboard-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.erp-action-button,
.erp-dashboard-filter {
    align-items: center;
    border-radius: 14px;
    display: inline-flex;
    font-weight: 900;
    gap: 8px;
    min-height: 42px;
    padding: 0 14px;
}

.erp-action-button {
    background: var(--erp-ink);
    color: #fff;
}

.erp-dashboard-filter {
    background: #fff;
    border: 1px solid var(--erp-line);
    color: var(--erp-ink-soft);
}

.erp-kpi-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(6, minmax(150px, 1fr));
    margin-bottom: 18px;
}

.erp-kpi-card,
.erp-analytics-panel,
.erp-quick-actions-panel,
.erp-activity-panel {
    background: #fff;
    border: 1px solid rgba(226, 232, 240, .82);
    border-radius: var(--erp-radius);
    box-shadow: var(--erp-shadow-sm);
}

.erp-kpi-card {
    overflow: hidden;
    padding: 18px;
    position: relative;
    transition: transform .18s ease, box-shadow .18s ease;
}

.erp-kpi-card:hover {
    box-shadow: var(--erp-shadow-md);
    transform: translateY(-3px);
}

.erp-kpi-top {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.erp-kpi-icon {
    align-items: center;
    background: #e0f2fe;
    border-radius: 14px;
    color: #0369a1;
    display: inline-flex;
    height: 42px;
    justify-content: center;
    width: 42px;
}

.erp-kpi-value {
    color: var(--erp-ink);
    direction: ltr;
    font-size: 26px;
    font-weight: 900;
    line-height: 1.1;
    margin-top: 16px;
    text-align: right;
}

.erp-kpi-label {
    color: var(--erp-muted);
    font-size: 13px;
    font-weight: 800;
    margin-top: 5px;
}

.erp-kpi-trend {
    align-items: center;
    background: #ecfdf5;
    border-radius: 999px;
    color: #047857;
    display: inline-flex;
    font-size: 12px;
    font-weight: 900;
    gap: 4px;
    padding: 4px 8px;
}

.erp-kpi-spark {
    height: 34px;
    margin-top: 12px;
}

.erp-operational-focus {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 18px;
}

.erp-focus-panel {
    background: #fff;
    border: 1px solid rgba(226, 232, 240, .88);
    border-radius: var(--erp-radius);
    box-shadow: var(--erp-shadow-sm);
    padding: 18px;
}

.erp-focus-header {
    align-items: flex-start;
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
}

.erp-focus-icon {
    align-items: center;
    background: #e0f2fe;
    border-radius: 14px;
    color: #0369a1;
    display: inline-flex;
    flex: 0 0 44px;
    height: 44px;
    justify-content: center;
    width: 44px;
}

.erp-focus-icon.accent {
    background: #ecfdf5;
    color: #047857;
}

.erp-focus-header h2 {
    color: var(--erp-ink);
    font-size: 18px;
    font-weight: 900;
    margin: 0;
}

.erp-focus-header p {
    color: var(--erp-muted);
    font-size: 13px;
    margin: 3px 0 0;
}

.erp-focus-metrics {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 12px;
}

.erp-focus-metrics div {
    background: #f8fafc;
    border: 1px solid #e5edf5;
    border-radius: 10px;
    padding: 10px;
}

.erp-focus-metrics span {
    color: var(--erp-muted);
    display: block;
    font-size: 12px;
    font-weight: 800;
}

.erp-focus-metrics strong {
    color: var(--erp-ink);
    direction: ltr;
    display: block;
    font-size: 18px;
    font-weight: 900;
    margin-top: 5px;
    text-align: right;
    unicode-bidi: plaintext;
}

.erp-focus-search {
    display: grid;
    gap: 8px;
    grid-template-columns: minmax(0, 1fr) auto;
    margin-bottom: 12px;
}

.erp-focus-search input,
.erp-focus-search button {
    border-radius: 10px;
    min-height: 38px;
}

.erp-focus-search input {
    border: 1px solid #dbe4ef;
    color: var(--erp-ink);
    padding: 0 12px;
}

.erp-focus-search button {
    align-items: center;
    background: var(--erp-ink);
    border: 0;
    color: #fff;
    display: inline-flex;
    font-weight: 900;
    gap: 6px;
    justify-content: center;
    padding: 0 14px;
}

.erp-focus-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.erp-focus-actions a {
    align-items: center;
    background: #fff;
    border: 1px solid #dbe4ef;
    border-radius: 10px;
    color: var(--erp-ink-soft);
    display: inline-flex;
    font-size: 13px;
    font-weight: 900;
    gap: 6px;
    min-height: 34px;
    padding: 0 10px;
}

.erp-dashboard-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 1.7fr) minmax(300px, .8fr);
}

.erp-analytics-panel,
.erp-quick-actions-panel,
.erp-activity-panel {
    padding: 20px;
}

.erp-panel-header {
    align-items: flex-start;
    display: flex;
    gap: 14px;
    justify-content: space-between;
    margin-bottom: 12px;
}

.erp-panel-title {
    color: var(--erp-ink);
    font-size: 18px;
    font-weight: 900;
    margin: 0;
}

.erp-panel-subtitle {
    color: var(--erp-muted);
    font-size: 13px;
    margin: 3px 0 0;
}

.dynamic-premium-dashboard .erp-chart-controls {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.dynamic-premium-dashboard .erp-segment {
    align-items: center;
    background: linear-gradient(180deg, #f8fafc 0%, #eef4fb 100%);
    border: 1px solid rgba(203, 213, 225, .92);
    border-radius: 14px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 8px 20px rgba(15, 23, 42, .06);
    display: inline-flex;
    gap: 4px;
    min-height: 40px;
    padding: 4px;
}

.dynamic-premium-dashboard .erp-segment button {
    appearance: none;
    -webkit-appearance: none;
    align-items: center;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 10px;
    box-shadow: none;
    color: var(--erp-muted);
    cursor: pointer;
    display: inline-flex;
    font-family: var(--erp-font);
    font-size: 12px;
    font-weight: 900;
    gap: 5px;
    justify-content: center;
    line-height: 1;
    min-height: 32px;
    min-width: 38px;
    outline: 0;
    padding: 0 13px;
    transition: background .18s ease, border-color .18s ease, box-shadow .18s ease, color .18s ease, transform .18s ease;
    white-space: nowrap;
}

.dynamic-premium-dashboard .erp-segment button:hover {
    background: rgba(255, 255, 255, .66);
    color: #075985;
}

.dynamic-premium-dashboard .erp-segment button.active {
    background: #fff;
    border-color: rgba(37, 99, 235, .16);
    box-shadow: 0 8px 18px rgba(15, 23, 42, .10);
    color: #0f4f8f;
    transform: translateY(-1px);
}

.dynamic-premium-dashboard #erpRevenueChartType button {
    padding: 0;
    width: 34px;
}

.dynamic-premium-dashboard #erpRevenueChartType button i {
    font-size: 15px;
}

#erpRevenueChart {
    min-height: 365px;
}

.erp-chart-empty,
.erp-chart-loading {
    align-items: center;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    color: #64748b;
    display: flex;
    font-size: 14px;
    font-weight: 900;
    justify-content: center;
    min-height: 330px;
    padding: 18px;
    text-align: center;
}

.erp-revenue-insights {
    border-top: 1px solid #eef2f7;
    margin-top: 18px;
    padding-top: 14px;
}

.erp-revenue-insight-title {
    color: var(--erp-ink);
    font-size: 14px;
    font-weight: 900;
    margin-bottom: 10px;
}

.erp-revenue-insight-list {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.erp-revenue-insight-item {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(226, 232, 240, .92);
    border-radius: 8px;
    display: grid;
    gap: 8px;
    min-width: 0;
    padding: 12px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .04);
}

.erp-revenue-insight-item strong {
    color: var(--erp-ink);
    direction: rtl;
    display: block;
    font-size: 13px;
    font-weight: 900;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.erp-revenue-insight-metrics {
    display: grid;
    gap: 6px;
}

.erp-revenue-insight-metrics span {
    align-items: center;
    background: #fff;
    border: 1px solid #edf2f7;
    border-radius: 7px;
    display: flex;
    gap: 8px;
    justify-content: space-between;
    min-width: 0;
    padding: 6px 8px;
}

.erp-revenue-insight-metrics b {
    color: #64748b;
    font-size: 11px;
    font-weight: 900;
}

.erp-revenue-insight-metrics em {
    color: #0f4f8f;
    direction: ltr;
    font-size: 12px;
    font-style: normal;
    font-weight: 900;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.erp-revenue-insight-empty {
    color: var(--erp-muted);
    font-size: 11px;
    font-weight: 800;
}

.erp-side-stack {
    display: grid;
    gap: 18px;
}

.erp-quick-action-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.erp-quick-personas {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 2px 0 14px;
}

.erp-quick-persona {
    background: #f8fafc;
    border: 1px solid var(--erp-line);
    border-radius: 999px;
    color: var(--erp-muted);
    cursor: pointer;
    font-family: var(--erp-font);
    font-size: 12px;
    font-weight: 900;
    min-height: 34px;
    padding: 0 12px;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
}

.erp-quick-persona:hover,
.erp-quick-persona.is-active {
    background: #e0f2fe;
    border-color: rgba(14, 165, 233, .28);
    color: #0369a1;
    box-shadow: 0 8px 18px rgba(14, 165, 233, .12);
}

.erp-quick-tile {
    align-items: center;
    background: #f8fafc;
    border: 1px solid var(--erp-line);
    border-radius: 14px;
    color: var(--erp-ink);
    display: flex;
    font-weight: 900;
    gap: 10px;
    min-height: 64px;
    padding: 12px;
    transition: background-color .18s ease, transform .18s ease;
}

.erp-quick-tile:hover {
    background: #eff6ff;
    color: #075985;
    transform: translateY(-2px);
}

.erp-quick-tile i {
    color: var(--erp-accent);
    font-size: 20px;
}

.erp-quick-empty {
    background: #f8fafc;
    border: 1px dashed var(--erp-line);
    border-radius: 14px;
    color: var(--erp-muted);
    font-weight: 900;
    grid-column: 1 / -1;
    padding: 18px;
    text-align: center;
}

.erp-timeline {
    display: grid;
    gap: 14px;
}

.erp-timeline-item {
    display: grid;
    gap: 10px;
    grid-template-columns: 36px minmax(0, 1fr);
}

.erp-timeline-dot {
    align-items: center;
    background: #e0f2fe;
    border-radius: 999px;
    color: #0369a1;
    display: inline-flex;
    height: 36px;
    justify-content: center;
    width: 36px;
}

.erp-timeline-title {
    color: var(--erp-ink);
    font-weight: 900;
    margin: 0;
}

.erp-timeline-meta {
    color: var(--erp-muted);
    font-size: 12px;
    margin: 2px 0 0;
}

.dynamic-legacy-dashboard-row {
    display: none !important;
}

.erp-table-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 10px;
}

.dashboard-settings-page .erp-settings-header {
    align-items: flex-start;
    display: flex;
    gap: 14px;
    justify-content: space-between;
}

.erp-explainability-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    color: var(--erp-muted);
    display: grid;
    gap: 6px;
    margin-top: 16px;
    padding: 14px;
}

.erp-explainability-box strong {
    color: var(--erp-ink);
    font-weight: 900;
}

@media (max-width: 1400px) {
    .erp-kpi-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 992px) {
    .erp-topbar-command-center {
        display: none;
    }

    .erp-dashboard-hero,
    .erp-panel-header {
        display: block;
    }

    .erp-dashboard-actions,
    .erp-chart-controls {
        margin-top: 12px;
    }

    .erp-chart-controls {
        justify-content: flex-start;
    }

    .erp-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .erp-operational-focus {
        grid-template-columns: 1fr;
    }

    .erp-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .erp-revenue-insight-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .content-page,
    .enlarged .content-page {
        margin-left: 0;
        margin-right: 0;
    }
}

@media (max-width: 576px) {
    .erp-kpi-grid,
    .erp-focus-metrics,
    .erp-focus-search,
    .erp-quick-action-grid,
    .erp-revenue-insight-list {
        grid-template-columns: 1fr;
    }

    .erp-dashboard-title h1 {
        font-size: 22px;
    }
}

/* Web shell closure overrides */
html[dir="rtl"] body {
    direction: rtl;
    text-align: start;
}

html[dir="ltr"] body {
    direction: ltr;
    text-align: start;
}

.logo-box {
    align-items: center;
    display: flex;
    justify-content: center;
    min-height: 72px;
    overflow: hidden;
    width: 240px;
}

.logo-box .logo {
    align-items: center;
    display: flex;
    height: 72px;
    justify-content: center;
    padding: 0 14px;
    width: 100%;
}

.erp-logo-lockup {
    align-items: center;
    color: #fff;
    display: inline-flex !important;
    font-family: Inter, "Cairo", "Tajawal", Tahoma, Arial, sans-serif;
    gap: 8px;
    justify-content: center;
    letter-spacing: 0;
    line-height: 1;
    white-space: nowrap;
}

.erp-logo-mark {
    align-items: center;
    background: #f8fafc;
    border-radius: 8px;
    color: #0f172a;
    display: inline-flex;
    font-size: 13px;
    font-weight: 900;
    height: 30px;
    justify-content: center;
    min-width: 34px;
    padding: 0 7px;
}

.erp-logo-word {
    color: #e2e8f0;
    font-size: 18px;
    font-weight: 900;
}

.erp-logo-compact .erp-logo-mark {
    font-size: 12px;
    height: 32px;
    min-width: 38px;
}

.navbar-custom {
    align-items: center;
    display: flex;
    min-height: 72px;
}

.navbar-custom > .topnav-menu {
    align-items: center;
    display: flex;
    float: none !important;
    gap: 6px;
    margin-bottom: 0 !important;
}

html[dir="rtl"] .navbar-custom {
    padding-inline-start: 0;
    padding-inline-end: 240px;
}

html[dir="ltr"] .navbar-custom {
    padding-inline-start: 240px;
    padding-inline-end: 0;
}

.navbar-custom > .topnav-menu.float-right {
    margin-inline-start: auto;
}

.erp-topbar-command-center {
    margin: 0 14px !important;
}

.erp-language-switch {
    gap: 7px;
}

.left-side-menu {
    width: 240px;
}

html[dir="rtl"] .left-side-menu {
    left: auto;
    right: 0;
}

html[dir="ltr"] .left-side-menu {
    left: 0;
    right: auto;
}

html[dir="rtl"] .content-page {
    margin-left: 0;
    margin-right: 240px;
}

html[dir="ltr"] .content-page {
    margin-left: 240px;
    margin-right: 0;
}

body.enlarged .left-side-menu,
body.enlarged .logo-box {
    width: 84px !important;
}

html[dir="rtl"] body.enlarged .content-page {
    margin-right: 84px;
}

html[dir="ltr"] body.enlarged .content-page {
    margin-left: 84px;
}

body.enlarged .erp-logo-word,
body.enlarged .logo-lg:not(.erp-logo-lockup),
body.enlarged .left-side-menu #side-menu span:not(.menu-arrow),
body.enlarged .left-side-menu .erp-menu-section,
body.enlarged .left-side-menu .side-menu-search,
body.enlarged .left-side-menu .favorite-screens-card {
    display: none !important;
}

body.enlarged .erp-logo-lockup {
    gap: 0;
}

#side-menu,
#side-menu ul {
    list-style: none;
}

#side-menu li a {
    outline: 0;
}

#side-menu li a:focus-visible {
    box-shadow: inset 0 0 0 2px rgba(125, 211, 252, .72);
}

#side-menu li a.active,
#side-menu li.mm-active > a {
    background: rgba(20, 184, 166, .18);
}

#side-menu li a.active::before,
#side-menu li.mm-active > a::before {
    inset-block: 9px;
    inset-inline-start: 4px;
    inset-inline-end: auto;
}

#side-menu .menu-arrow {
    margin-inline-start: auto;
    margin-inline-end: 0;
    position: static;
}

html[dir="ltr"] #side-menu li a.active::before,
html[dir="ltr"] #side-menu li.mm-active > a::before {
    inset-inline-start: 4px;
    inset-inline-end: auto;
}

html[dir="rtl"] #side-menu li a.active::before,
html[dir="rtl"] #side-menu li.mm-active > a::before {
    inset-inline-start: auto;
    inset-inline-end: 4px;
}

#side-menu .nav-second-level a,
#side-menu .nav-thrid-level a {
    min-height: 36px;
    padding-inline-start: 22px !important;
}

html[dir="rtl"] #side-menu .nav-second-level a,
html[dir="rtl"] #side-menu .nav-thrid-level a {
    padding-inline-start: 12px !important;
    padding-inline-end: 22px !important;
}

.dynamic-premium-dashboard {
    direction: inherit;
}

html[dir="ltr"] .dynamic-premium-dashboard .erp-kpi-value,
html[dir="ltr"] .dynamic-premium-dashboard .erp-focus-metrics strong {
    text-align: left;
}

html[dir="ltr"] .dynamic-premium-dashboard .erp-dashboard-hero,
html[dir="ltr"] .dynamic-premium-dashboard .erp-panel-header,
html[dir="ltr"] .dynamic-premium-dashboard .erp-focus-header {
    direction: ltr;
}

@media (max-width: 1200px) {
    .erp-global-search {
        min-width: 220px;
    }

    .erp-company-switcher span,
    .erp-quick-create span {
        display: none;
    }
}

@media (max-width: 768px) {
    html[dir="rtl"] .navbar-custom,
    html[dir="ltr"] .navbar-custom {
        padding-inline-start: 84px;
        padding-inline-end: 0;
    }

    .logo-box {
        width: 84px;
    }

    html[dir="rtl"] .content-page,
    html[dir="ltr"] .content-page,
    html[dir="rtl"] body.enlarged .content-page,
    html[dir="ltr"] body.enlarged .content-page {
        margin-inline-start: 0;
        margin-inline-end: 0;
    }

    .erp-topbar-command-center {
        flex: 1 1 auto;
        min-width: 0;
    }

    .erp-global-search {
        min-width: 0;
        width: min(46vw, 260px);
    }
}
