html[data-shab="light"] {
	--bg: #e7efe9;
	--card: #ffffff;
	--soft: #f4f8f6;
	--ink: #13241c;
	--muted: #5e756b;
	--line: #d5e4dc;
	--accent: #17884c;
	--accent-2: #34c56a;
	--nav: #0b1c16;
	--nav-2: #143328;
	--nav-ink: #e9fff3;
	--shadow: 0 14px 34px rgba(11, 28, 22, 0.08);
	color-scheme: light;
}

html[data-shab="dark"] {
	--bg: #07110d;
	--card: #112019;
	--soft: #173026;
	--ink: #f3fff6;
	--muted: #9bb5a6;
	--line: rgba(142, 224, 164, 0.16);
	--accent: #3dba7a;
	--accent-2: #8ee0a4;
	--nav: #050d0a;
	--nav-2: #10241c;
	--nav-ink: #f3fff6;
	--shadow: 0 18px 40px rgba(0, 0, 0, 0.38);
	color-scheme: dark;
}

html[data-shab] body:not(:has(.loginPageContainer)),
html[data-shab] body:not(:has(.loginPageContainer)) button,
html[data-shab] body:not(:has(.loginPageContainer)) input,
html[data-shab] body:not(:has(.loginPageContainer)) select,
html[data-shab] body:not(:has(.loginPageContainer)) textarea,
html[data-shab] body:not(:has(.loginPageContainer)) .btn {
	font-family: Vazirmatn, Tahoma, sans-serif;
}

html[data-shab] body:not(:has(.loginPageContainer)) {
	background: var(--bg) !important;
	color: var(--ink) !important;
}

html[data-shab] .app-fixed-navbar,
html[data-shab] .navbar-inverse,
html[data-shab] .global-nav {
	background: var(--nav) !important;
	border: 0 !important;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18) !important;
}

html[data-shab] .navbar-inverse .navbar-nav > li > a,
html[data-shab] .global-nav a,
html[data-shab] .app-navigator,
html[data-shab] .navbar .fa,
html[data-shab] .qc-button {
	color: var(--nav-ink) !important;
}

html[data-shab] .module-action-bar a,
html[data-shab] .module-action-bar .module-title,
html[data-shab] .module-breadcrumb,
html[data-shab] .current-filter-name {
	color: var(--ink) !important;
}

html[data-shab] .company-logo img {
	max-height: 32px;
	width: auto;
}

html[data-shab] .app-menu {
	background: var(--nav) !important;
	color: var(--nav-ink) !important;
	box-shadow: -12px 0 32px rgba(0, 0, 0, 0.18);
}

html[data-shab] .app-menu .app-item,
html[data-shab] .app-menu .menu-item,
html[data-shab] .app-menu .app-modules-dropdown li a {
	color: var(--nav-ink) !important;
	border-radius: 10px;
}

html[data-shab] .app-menu .app-item:hover,
html[data-shab] .app-menu .menu-item:hover,
html[data-shab] .app-menu .app-modules-dropdown li a:hover {
	background: rgba(61, 186, 122, 0.16) !important;
}

html[data-shab] .app-menu .app-item-color-MARKETING,
html[data-shab] .app-menu .app-item-color-SALES,
html[data-shab] .app-menu .app-item-color-INVENTORY,
html[data-shab] .app-menu .app-item-color-SUPPORT,
html[data-shab] .app-menu .app-item-color-PROJECT,
html[data-shab] .app-menu .app-item-color-TOOLS {
	box-shadow: inset -3px 0 0 var(--accent-2);
}

html[data-shab] .app-menu .module-icon img {
	width: 18px !important;
	height: 18px !important;
	max-width: 18px !important;
	max-height: 18px !important;
	object-fit: contain;
	border-radius: 4px;
}

html[data-shab] .module-nav,
html[data-shab] #modnavigator,
html[data-shab] .settingsNav,
html[data-shab] .settingsgroup {
	background: var(--nav) !important;
	color: var(--nav-ink) !important;
}

html[data-shab] .modules-menu {
	background: var(--nav) !important;
	color: var(--nav-ink) !important;
}

html[data-shab] .modules-menu a,
html[data-shab] .modules-menu .fa {
	color: var(--nav-ink) !important;
}

html[data-shab] .module-nav .active,
html[data-shab] .settingsNav .active,
html[data-shab] .lists-menu .active {
	background: rgba(61, 186, 122, 0.18) !important;
}

html[data-shab] .main-container,
html[data-shab] .content-area,
html[data-shab] .listViewPageDiv,
html[data-shab] .detailViewContainer,
html[data-shab] .editViewPageDiv,
html[data-shab] .settingsPageDiv,
html[data-shab] .dashBoardContainer,
html[data-shab] .CalendarViewPageDiv,
html[data-shab] .overlayPageContent,
html[data-shab] #overlayPageContent {
	background: var(--bg) !important;
	color: var(--ink) !important;
}

html[data-shab] .app-nav,
html[data-shab] .module-action-bar,
html[data-shab] .detailview-header,
html[data-shab] .listview-actions-container,
html[data-shab] .related-tabs,
html[data-shab] .detailview-header-block {
	background: var(--bg) !important;
	border-color: transparent !important;
	color: var(--ink) !important;
	box-shadow: none !important;
}

html[data-shab] .module-action-bar .module-title,
html[data-shab] .module-breadcrumb,
html[data-shab] .current-filter-name,
html[data-shab] h4,
html[data-shab] .summaryViewHeader h4 {
	color: var(--ink) !important;
}

html[data-shab] .listview-table,
html[data-shab] .table,
html[data-shab] .listViewEntriesTable,
html[data-shab] .detailview-table {
	background: var(--card) !important;
	color: var(--ink) !important;
	border: 1px solid var(--line) !important;
	border-radius: 16px !important;
	overflow: hidden;
	box-shadow: var(--shadow);
}

html[data-shab] .listview-table th,
html[data-shab] .listViewEntriesTable thead th,
html[data-shab] .searchRow,
html[data-shab] .listViewContentHeader {
	background: var(--soft) !important;
	color: var(--muted) !important;
	border-color: var(--line) !important;
}

html[data-shab] .listViewEntries,
html[data-shab] .listview-table td,
html[data-shab] .table > tbody > tr > td,
html[data-shab] .table > thead > tr > th {
	border-color: var(--line) !important;
	color: var(--ink) !important;
}

html[data-shab] .listViewEntries:hover,
html[data-shab] .table-hover > tbody > tr:hover {
	background: rgba(61, 186, 122, 0.08) !important;
}

html[data-shab] .fieldLabel,
html[data-shab] .fieldValue,
html[data-shab] .summaryViewEntries .fieldLabel,
html[data-shab] .summaryViewEntries .fieldValue {
	color: var(--ink) !important;
	background: transparent !important;
	border-color: var(--line) !important;
}

html[data-shab] .block,
html[data-shab] .fieldBlockContainer,
html[data-shab] .summaryView,
html[data-shab] .summaryWidgetContainer,
html[data-shab] .dashboardWidget,
html[data-shab] .widget_header,
html[data-shab] .commentContainer,
html[data-shab] .relatedContents,
html[data-shab] .quickPreview,
html[data-shab] .editViewContents {
	background: var(--card) !important;
	color: var(--ink) !important;
	border: 1px solid var(--line) !important;
	border-radius: 16px !important;
	box-shadow: var(--shadow);
}

html[data-shab] .block .blockHeader,
html[data-shab] .widget_header,
html[data-shab] .summaryViewHeader {
	background: transparent !important;
	color: var(--ink) !important;
	border-color: var(--line) !important;
}

html[data-shab] .form-control,
html[data-shab] input[type="text"],
html[data-shab] input[type="password"],
html[data-shab] input[type="email"],
html[data-shab] input[type="search"],
html[data-shab] select,
html[data-shab] textarea,
html[data-shab] .inputElement {
	background: var(--soft) !important;
	color: var(--ink) !important;
	border: 1px solid var(--line) !important;
	border-radius: 10px !important;
	box-shadow: none !important;
}

html[data-shab] .form-control:focus,
html[data-shab] input:focus,
html[data-shab] select:focus,
html[data-shab] textarea:focus {
	border-color: var(--accent) !important;
	outline: none !important;
}

html[data-shab] .btn,
html[data-shab] .btn-default,
html[data-shab] .btn-success,
html[data-shab] .btn-primary,
html[data-shab] .addButton,
html[data-shab] button.btn {
	border-radius: 999px !important;
	border: 0 !important;
	box-shadow: none !important;
}

html[data-shab] .btn-default {
	background: var(--soft) !important;
	color: var(--ink) !important;
	border: 1px solid var(--line) !important;
}

html[data-shab] .btn-success,
html[data-shab] .btn-primary,
html[data-shab] .addButton,
html[data-shab] .saveButton {
	background: #1f8f4a !important;
	background-image: linear-gradient(180deg, #34c56a 0%, #157a3a 100%) !important;
	color: #ffffff !important;
}

html[data-shab] .btn-danger,
html[data-shab] .btn-warning {
	border-radius: 999px !important;
}

html[data-shab] a,
html[data-shab] .listViewEntryValue a,
html[data-shab] .fieldValue a {
	color: var(--accent) !important;
}

html[data-shab] .navbar a,
html[data-shab] .app-menu a,
html[data-shab] .global-actions a {
	color: var(--nav-ink) !important;
}

html[data-shab] .dropdown-menu,
html[data-shab] .select2-drop,
html[data-shab] .select2-results,
html[data-shab] .select2-choice,
html[data-shab] .select2-container .select2-choice,
html[data-shab] .datepicker,
html[data-shab] .bootstrap-datetimepicker-widget,
html[data-shab] .popover,
html[data-shab] .tooltip-inner {
	background: var(--card) !important;
	color: var(--ink) !important;
	border: 1px solid var(--line) !important;
	border-radius: 12px !important;
}

html[data-shab] .dropdown-menu > li > a,
html[data-shab] .select2-results .select2-result-label {
	color: var(--ink) !important;
}

html[data-shab] .dropdown-menu > li > a:hover,
html[data-shab] .select2-highlighted,
html[data-shab] .select2-results .select2-highlighted {
	background: rgba(61, 186, 122, 0.16) !important;
	color: var(--ink) !important;
}

html[data-shab] .modal-content,
html[data-shab] .modal-header,
html[data-shab] .modal-body,
html[data-shab] .modal-footer {
	background: var(--card) !important;
	color: var(--ink) !important;
	border-color: var(--line) !important;
}

html[data-shab] .modal-content {
	border-radius: 18px !important;
	overflow: hidden;
	box-shadow: var(--shadow);
}

html[data-shab] .pagination > li > a,
html[data-shab] .pagination > li > span,
html[data-shab] .listViewActions .btn {
	background: var(--card) !important;
	color: var(--ink) !important;
	border-color: var(--line) !important;
}

html[data-shab] .pagination > .active > a,
html[data-shab] .pagination > .active > span {
	background: var(--accent) !important;
	color: #ffffff !important;
	border-color: var(--accent) !important;
}

html[data-shab] .fc-widget-content,
html[data-shab] .fc-widget-header,
html[data-shab] .fc-day,
html[data-shab] .fc-unthemed td,
html[data-shab] .fc-unthemed th {
	background: var(--card) !important;
	border-color: var(--line) !important;
	color: var(--ink) !important;
}

html[data-shab] .fc-event {
	border: 0 !important;
}

html[data-shab] .module-buttons-container .btn,
html[data-shab] .listViewMassActions .btn,
html[data-shab] .detailViewButtoncontainer .btn {
	margin-right: 6px;
}

html[data-shab] .emptyRecordsContent,
html[data-shab] .listViewEntriesDiv,
html[data-shab] .relatedContents .bottomscroll-div {
	background: transparent !important;
	color: var(--ink) !important;
}

html[data-shab] .search-link .keyword-input,
html[data-shab] #globalSearchValue {
	background: rgba(255, 255, 255, 0.08) !important;
	color: var(--nav-ink) !important;
	border: 0 !important;
	border-radius: 999px !important;
}

html[data-shab] .app-footer,
html[data-shab] .footer {
	background: transparent !important;
	color: var(--muted) !important;
	border: 0 !important;
}

html[data-shab] .muted,
html[data-shab] .text-muted,
html[data-shab] .referencefield-wrapper .input-group-addon,
html[data-shab] .input-group-addon {
	color: var(--muted) !important;
	background: var(--soft) !important;
	border-color: var(--line) !important;
}

html[data-shab] #shab-switch {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin: 12px 8px 0;
	padding: 3px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.08);
	list-style: none;
}

html[data-shab] #shab-switch button {
	width: 34px;
	height: 30px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--nav-ink);
	border-radius: 999px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

html[data-shab] #shab-switch svg {
	display: block;
	width: 18px;
	height: 18px;
}

html[data-shab] #shab-switch button.is-on {
	background: linear-gradient(180deg, #34c56a 0%, #157a3a 100%);
	color: #ffffff;
}

html[data-shab] .shab-page {
	direction: rtl;
	text-align: right;
	padding: 8px 4px 28px;
	color: var(--ink);
}

html[data-shab] .shab-hero,
html[data-shab] .shab-card,
html[data-shab] .shab-preview {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 18px;
	box-shadow: var(--shadow);
}

html[data-shab] .shab-hero {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 22px 24px;
	margin-bottom: 16px;
	background: linear-gradient(135deg, #0b1c16, #146b3a);
	color: #f3fff6;
}

html[data-shab] .shab-hero h2 {
	margin: 0 0 6px;
	color: #ffffff !important;
	font-size: 28px;
}

html[data-shab] .shab-muted {
	color: var(--muted) !important;
	line-height: 1.8;
}

html[data-shab] .shab-hero p,
html[data-shab] .shab-hero .shab-muted {
	color: #c9ead6 !important;
}

html[data-shab] .shab-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}

html[data-shab] .shab-card,
html[data-shab] .shab-preview {
	padding: 16px;
	margin-bottom: 14px;
}

html[data-shab] .shab-preview.dark {
	background: #102019;
	color: #f3fff6;
}

html[data-shab] .shab-preview .bar {
	height: 28px;
	border-radius: 8px;
	background: #0b1c16;
	margin-bottom: 10px;
}

html[data-shab] .shab-preview .row {
	height: 12px;
	border-radius: 6px;
	background: rgba(61, 186, 122, 0.25);
	margin-bottom: 8px;
}

html[data-shab] .shab-ok {
	background: #e8f7ef;
	color: #166534;
	border-radius: 12px;
	padding: 10px 12px;
	margin-bottom: 12px;
}

html[data-shab="dark"] .shab-ok {
	background: #143328;
	color: #b7f0c8;
}

@media (max-width: 900px) {
	html[data-shab] .shab-grid,
	html[data-shab] .shab-hero {
		display: block;
	}
}

html[data-shab] .navbar .dropdown-menu,
html[data-shab] .global-actions .dropdown-menu,
html[data-shab] .navbar .dropdown-menu a,
html[data-shab] .global-actions .dropdown-menu a,
html[data-shab] .navbar .dropdown-menu li,
html[data-shab] .global-actions .dropdown-menu span,
html[data-shab] .global-actions .dropdown-menu strong,
html[data-shab] .select2-drop,
html[data-shab] .select2-results .select2-result-label,
html[data-shab] .datepicker,
html[data-shab] .datepicker td,
html[data-shab] .datepicker th,
html[data-shab] .popover,
html[data-shab] .popover-content,
html[data-shab] .modal-content,
html[data-shab] .modal-body,
html[data-shab] .modal-header,
html[data-shab] .modal-title {
	background: var(--card) !important;
	color: var(--ink) !important;
	text-shadow: none !important;
}

html[data-shab] .app-menu .app-modules-dropdown {
	background: #0b1c16 !important;
	color: #f4fff8 !important;
	border: 0 !important;
}

html[data-shab] .app-menu .app-modules-dropdown li {
	opacity: 1 !important;
	background: transparent !important;
}

html[data-shab] .app-menu .app-modules-dropdown li a,
html[data-shab] .app-menu .app-modules-dropdown .module-name,
html[data-shab] .app-menu .app-modules-dropdown span {
	color: #f4fff8 !important;
	text-shadow: none !important;
	opacity: 1 !important;
}

html[data-shab] .app-menu .app-modules-dropdown li:hover,
html[data-shab] .app-menu .app-modules-dropdown li:hover a {
	background: rgba(61, 186, 122, 0.22) !important;
	color: #ffffff !important;
}

html[data-shab] .app-menu .app-modules-dropdown .module-icon {
	opacity: 1 !important;
}

/* Settings rail reuses .app-nav on each group. The day theme paints .app-nav
   light, while these links stay pale — that was the invisible settings menu. */
html[data-shab] #modnavigator,
html[data-shab] .settingsNav,
html[data-shab] .settingsgroup,
html[data-shab] .settingsgroup .panel-group,
html[data-shab] .settingsgroup .panel,
html[data-shab] .settingsgroup .panel-default,
html[data-shab] .settingsgroup .app-nav,
html[data-shab] .settingsgroup .app-settings-accordion,
html[data-shab] .settingsgroup .settingsgroup-accordion,
html[data-shab] .settingsgroup .panel-collapse,
html[data-shab] .settingsgroup .list-group,
html[data-shab] .settingsgroup li,
html[data-shab] .settings-menu {
	background: #0b1c16 !important;
	background-color: #0b1c16 !important;
	color: #f4fff8 !important;
	border-color: transparent !important;
	box-shadow: none !important;
	opacity: 1 !important;
}

html[data-shab] #modnavigator .settingsgroup a,
html[data-shab] #modnavigator .settingsgroup a:link,
html[data-shab] #modnavigator .settingsgroup a:visited,
html[data-shab] #modnavigator .settingsgroup a:active,
html[data-shab] .settingsgroup .settingsgroup-accordion a,
html[data-shab] .settingsgroup .settingsgroup-accordion span,
html[data-shab] .settingsgroup .menuItemLabel,
html[data-shab] .settingsgroup .indicator,
html[data-shab] .settingsgroup .fa,
html[data-shab] .settings-menu a {
	color: #f4fff8 !important;
	text-shadow: none !important;
	opacity: 1 !important;
}

html[data-shab] #modnavigator .settingsgroup .settingsgroup-accordion a:hover,
html[data-shab] #modnavigator .settingsgroup li:hover,
html[data-shab] #modnavigator .settingsgroup li:hover a,
html[data-shab] #modnavigator .settingsgroup a.settingsgroup-menu-color,
html[data-shab] .panel-collapse ul li a.settingsgroup-menu-color {
	background: rgba(61, 186, 122, 0.28) !important;
	color: #ffffff !important;
}

html[data-shab] #settingsMenuSearch,
html[data-shab] .settingsgroup input.search-list {
	background: #ffffff !important;
	color: #13241c !important;
	border: 0 !important;
	border-radius: 12px !important;
	opacity: 1 !important;
}

html[data-shab] body[data-language="fa_ir"] .settingsPageDiv .modal-overlay-footer {
	border-right-color: #0b1c16 !important;
}

/* List filters sit on a white stock panel. Do not reuse navbar ink there. */
html[data-shab] .sidebar-essentials,
html[data-shab] .sidebar-menu,
html[data-shab] .module-filters,
html[data-shab] .lists-menu-container {
	background: var(--card) !important;
	color: var(--ink) !important;
	border-color: var(--line) !important;
}

html[data-shab] .sidebar-essentials a,
html[data-shab] .sidebar-menu a,
html[data-shab] .lists-menu a,
html[data-shab] .lists-menu li,
html[data-shab] .lists-header,
html[data-shab] .sidebar-header,
html[data-shab] .sidebar-essentials h5,
html[data-shab] .sidebar-essentials h6,
html[data-shab] .module-filters h5,
html[data-shab] .module-filters h6 {
	color: var(--ink) !important;
	text-shadow: none !important;
	opacity: 1 !important;
}

html[data-shab] .lists-menu > li.active,
html[data-shab] .lists-menu > li:hover,
html[data-shab] .listViewFilter.active {
	background: rgba(61, 186, 122, 0.16) !important;
}

html[data-shab] .lists-menu > li.active > a,
html[data-shab] .listViewFilter.active a {
	color: var(--accent) !important;
}
