/**
 * Minimal theme overrides on top of Cuba.
 * Vazirmatn + admin-bar fix + ACL UI only.
 */

html,
body {
	font-family: Vazirmatn, Tahoma, sans-serif !important;
}

/* Full-bleed Cuba shell: no WP admin bar offset on panel/auth */
html.wp-toolbar {
	padding-top: 0 !important;
}

body.cs-panel-body.admin-bar,
body.cs-auth-body.admin-bar,
body.admin-bar.cs-panel-body,
body.admin-bar.cs-auth-body {
	margin-top: 0 !important;
	padding-top: 0 !important;
}

body.cs-panel-body #wpadminbar,
body.cs-auth-body #wpadminbar {
	display: none !important;
}

.cs-toast-host {
	position: fixed;
	left: 1rem;
	bottom: 1rem;
	z-index: 9999;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.cs-toast {
	background: #0f172a;
	color: #fff;
	padding: 0.75rem 1rem;
	border-radius: 10px;
	font-size: 0.875rem;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
	animation: csToastIn 0.25s ease;
}

.cs-toast.is-success {
	background: #059669;
}

.cs-toast.is-error {
	background: #dc2626;
}

@keyframes csToastIn {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.cs-acl-layout {
	display: grid;
	grid-template-columns: 260px 1fr;
	gap: 1.25rem;
	min-height: 420px;
}

@media (max-width: 991px) {
	.cs-acl-layout {
		grid-template-columns: 1fr;
	}
}

.cs-role-list {
	background: var(--body-color, #f5f6fa);
	border-radius: 8px;
	border: 1px solid rgba(0, 0, 0, 0.06);
	padding: 1rem;
}

.cs-role-list-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	border: 0;
	background: transparent;
	padding: 0.7rem 0.85rem;
	border-radius: 8px;
	text-align: right;
	margin-bottom: 0.35rem;
	cursor: pointer;
	transition: background 0.15s ease;
}

.cs-role-list-item:hover,
.cs-role-list-item.is-active {
	background: rgba(115, 102, 255, 0.12);
	color: #7366ff;
}

.cs-role-badge {
	font-size: 0.7rem;
	background: rgba(0, 0, 0, 0.06);
	color: #717171;
	padding: 0.15rem 0.45rem;
	border-radius: 999px;
}

.cs-acl-matrix {
	background: var(--body-color, #f5f6fa);
	border-radius: 8px;
	border: 1px solid rgba(0, 0, 0, 0.06);
	padding: 1.25rem;
}

.cs-acl-group {
	margin-bottom: 1.5rem;
}

.cs-acl-group h5 {
	font-size: 0.95rem;
	margin-bottom: 0.85rem;
	padding-bottom: 0.5rem;
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.cs-acl-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.65rem 0;
	border-bottom: 1px dashed rgba(0, 0, 0, 0.06);
}

.cs-acl-row:last-child {
	border-bottom: 0;
}

.cs-acl-row .cs-cap-label {
	font-weight: 500;
}

.cs-acl-row .cs-cap-hint {
	display: block;
	font-size: 0.78rem;
	color: #898989;
	font-weight: 400;
}

.cs-switch {
	position: relative;
	width: 46px;
	height: 26px;
	flex-shrink: 0;
}

.cs-switch input {
	opacity: 0;
	width: 0;
	height: 0;
}

.cs-switch .slider {
	position: absolute;
	inset: 0;
	background: #cbd5e1;
	border-radius: 999px;
	cursor: pointer;
	transition: 0.2s;
}

.cs-switch .slider:before {
	content: "";
	position: absolute;
	height: 20px;
	width: 20px;
	right: 3px;
	top: 3px;
	background: #fff;
	border-radius: 50%;
	transition: 0.2s;
}

.cs-switch input:checked + .slider {
	background: #7366ff;
}

.cs-switch input:checked + .slider:before {
	transform: translateX(-20px);
}

.cs-switch input:disabled + .slider {
	opacity: 0.5;
	cursor: not-allowed;
}

.cs-empty-state {
	text-align: center;
	padding: 3rem 1rem;
	color: #898989;
}

/* Panel list pages: card-header + toolbar + table (users/companies reference) */
.cs-panel-list-card .card-header h4 {
	margin-bottom: 0;
}

.cs-panel-list-card .cs-panel-toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
}

/* Prefer Cuba badge-light-* over Bootstrap bg-light-* in panel UI */
.badge.badge-light-primary,
.badge-light-primary {
	background-color: rgba(115, 102, 255, 0.12);
	color: #7366ff;
}

.badge.badge-light-secondary,
.badge-light-secondary {
	background-color: rgba(131, 131, 131, 0.12);
	color: #717171;
}

.badge.badge-light-success,
.badge-light-success {
	background-color: rgba(5, 150, 105, 0.12);
	color: #059669;
}

.badge.badge-light-warning,
.badge-light-warning {
	background-color: rgba(255, 184, 34, 0.15);
	color: #ffb822;
}

.cs-view-toggle .btn svg {
	width: 16px;
	height: 16px;
	vertical-align: -2px;
}

.cs-module-stub {
	border: 1px dashed rgba(0, 0, 0, 0.12);
	border-radius: 8px;
	padding: 2.5rem;
	text-align: center;
}

.page-wrapper.compact-wrapper .page-body {
	min-height: calc(100vh - var(--cs-header-height, 80px));
}

/* ?? Compact, tidy panel header ?? */
:root {
	--cs-header-height: 80px;
}

.page-wrapper .page-header {
	z-index: 10;
}

.page-wrapper .page-header .header-wrapper {
	padding: 12px 20px;
	min-height: var(--cs-header-height);
	height: var(--cs-header-height);
	box-sizing: border-box;
	align-items: center;
	flex-wrap: nowrap;
	overflow: visible;
}

.page-wrapper.compact-wrapper .page-body-wrapper .page-body {
	margin-top: var(--cs-header-height) !important;
	min-height: calc(100vh - var(--cs-header-height));
}

@media (max-width: 991px) {
	:root {
		--cs-header-height: 72px;
	}
}

.page-wrapper.compact-wrapper .page-body-wrapper div.sidebar-wrapper .logo-wrapper,
.page-wrapper.compact-wrapper .page-body-wrapper div.sidebar-wrapper .logo-icon-wrapper {
	padding: 12px 18px;
	min-height: var(--cs-header-height);
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
}

.page-wrapper.compact-wrapper .page-body-wrapper div.sidebar-wrapper .logo-wrapper img,
.page-wrapper.compact-wrapper .page-body-wrapper div.sidebar-wrapper .logo-icon-wrapper img {
	max-height: 32px;
	width: auto;
}

/* Keep a reliable header toggle (Cuba hides it in compact mode) */
.page-wrapper.compact-wrapper .page-header .header-wrapper .header-logo-wrapper {
	display: flex;
	align-items: center;
	gap: 0.35rem;
}

.page-wrapper.compact-wrapper .page-header .header-wrapper .logo-wrapper {
	display: none;
}

.page-wrapper.compact-wrapper .page-header .header-wrapper .toggle-sidebar {
	display: inline-flex !important;
	position: static;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	cursor: pointer;
	color: #2f2f3b;
}

.page-wrapper.compact-wrapper .page-header .header-wrapper .toggle-sidebar:before {
	display: none;
}

.page-wrapper.compact-wrapper .page-header .header-wrapper .toggle-sidebar svg {
	width: 20px;
	height: 20px;
}

html[dir="rtl"] .page-wrapper.compact-wrapper .page-header .header-wrapper .toggle-sidebar,
html[dir="rtl"] .page-wrapper.compact-wrapper .page-body-wrapper .sidebar-wrapper .toggle-sidebar {
	right: auto;
	left: auto;
}

.page-wrapper.compact-wrapper .page-body-wrapper div.sidebar-wrapper .toggle-sidebar {
	position: static;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	flex-shrink: 0;
	cursor: pointer;
}

.page-wrapper.compact-wrapper .page-body-wrapper div.sidebar-wrapper .toggle-sidebar:before {
	display: none;
}

/* Collapsed sidebar: fixed width, no hover-expand fight, toggle stays visible */
.page-wrapper.compact-wrapper .page-body-wrapper div.sidebar-wrapper.close_icon {
	width: 90px !important;
}

.page-wrapper.compact-wrapper .page-body-wrapper div.sidebar-wrapper.close_icon:hover {
	width: 90px !important;
}

.page-wrapper.compact-wrapper .page-body-wrapper div.sidebar-wrapper.close_icon .logo-wrapper {
	display: none !important;
}

.page-wrapper.compact-wrapper .page-body-wrapper div.sidebar-wrapper.close_icon:hover .logo-wrapper {
	display: none !important;
}

.page-wrapper.compact-wrapper .page-body-wrapper div.sidebar-wrapper.close_icon .logo-icon-wrapper,
.page-wrapper.compact-wrapper .page-body-wrapper div.sidebar-wrapper.close_icon:hover .logo-icon-wrapper {
	display: flex !important;
}

.page-wrapper.compact-wrapper .page-body-wrapper div.sidebar-wrapper.close_icon:hover .sidebar-main-title {
	display: none !important;
}

.page-wrapper.compact-wrapper .page-body-wrapper div.sidebar-wrapper.close_icon:hover .sidebar-main .sidebar-links .simplebar-wrapper .simplebar-mask .simplebar-content-wrapper .simplebar-content > li {
	max-width: 86px !important;
}

.page-wrapper.compact-wrapper .page-body-wrapper div.sidebar-wrapper.close_icon:hover .sidebar-main .sidebar-links .simplebar-wrapper .simplebar-mask .simplebar-content-wrapper .simplebar-content > li a {
	text-align: center !important;
}

.page-wrapper.compact-wrapper .page-body-wrapper div.sidebar-wrapper.close_icon:hover .sidebar-main .sidebar-links .simplebar-wrapper .simplebar-mask .simplebar-content-wrapper .simplebar-content > li .sidebar-submenu a,
.page-wrapper.compact-wrapper .page-body-wrapper div.sidebar-wrapper.close_icon:hover .sidebar-main .sidebar-links .simplebar-wrapper .simplebar-mask .simplebar-content-wrapper .simplebar-content > li > a span {
	display: none !important;
}

.page-wrapper.compact-wrapper .page-body-wrapper div.sidebar-wrapper.close_icon .logo-icon-wrapper {
	display: flex !important;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	padding: 10px 8px;
	min-height: var(--cs-header-height);
}

.page-wrapper.compact-wrapper .page-body-wrapper div.sidebar-wrapper.close_icon .logo-icon-wrapper .toggle-sidebar {
	display: inline-flex !important;
}

html[dir="rtl"] .page-wrapper.compact-wrapper .page-header.close_icon {
	margin-right: 90px;
	width: calc(100% - 90px);
}

html[dir="rtl"] .page-wrapper.compact-wrapper .page-body-wrapper div.sidebar-wrapper.close_icon ~ .page-body,
html[dir="rtl"] .page-wrapper.compact-wrapper .page-body-wrapper div.sidebar-wrapper.close_icon ~ footer {
	margin-right: 90px;
}

/* Company switcher: icon only (label lives in left-header) */
.page-header .nav-menus #cs-company-switcher-trigger .cs-company-switcher-label {
	display: none;
}

.page-header .nav-menus #cs-company-switcher-trigger {
	min-width: 36px;
	justify-content: center;
}

.page-header .nav-right > ul.nav-menus {
	display: flex;
	align-items: center;
	gap: 0.15rem 0.65rem;
	margin: 0;
	flex-wrap: nowrap;
}

.page-header .nav-right > ul.nav-menus > li {
	padding: 0 !important;
	margin: 0 !important;
}

.page-header .nav-right .profile-media {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.page-header .nav-right .profile-media img {
	width: 36px;
	height: 36px;
	object-fit: cover;
}

.page-header .nav-right .profile-media .media-body p {
	margin-bottom: 0;
	line-height: 1.2;
	font-size: 0.75rem;
}

.page-header .nav-right .profile-media .media-body span {
	line-height: 1.2;
	font-size: 0.875rem;
}

.cs-header-status {
	min-height: 36px;
	max-width: 100%;
	padding-inline: 0.25rem;
	gap: 0.5rem;
}

.cs-header-chips {
	min-height: 36px;
	max-width: 100%;
	padding-inline: 0.25rem;
}

.cs-header-chip {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.25rem 0.55rem;
	border-radius: 999px;
	background: rgba(115, 102, 255, 0.08);
	border: 1px solid rgba(115, 102, 255, 0.12);
	font-size: 0.75rem;
	line-height: 1.2;
	max-width: 100%;
}

.cs-header-chip-label {
	color: var(--body-font-color, #6b7280);
	font-size: 0.6875rem;
}

.cs-header-chip-company strong {
	font-weight: 600;
	max-width: 140px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.cs-header-chip-plan span:last-child {
	font-weight: 500;
}

.cs-header-seats-bar {
	display: inline-block;
	width: 48px;
	height: 4px;
	border-radius: 4px;
	background: rgba(115, 102, 255, 0.15);
	overflow: hidden;
	vertical-align: middle;
}

.cs-header-seats-fill {
	display: block;
	height: 100%;
	background: var(--theme-default, #7366ff);
	border-radius: 4px;
	transition: width 0.3s ease;
}

.cs-global-timer-chip {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.2rem 0.45rem;
	border-radius: 999px;
	background: rgba(34, 197, 94, 0.1);
	border: 1px solid rgba(34, 197, 94, 0.25);
	max-width: 320px;
}

.cs-timer-not-ready {
	display: none !important;
}

.cs-global-timer-link {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	min-width: 0;
	flex: 1;
}

.cs-header-status-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--theme-default, #7366ff);
	flex-shrink: 0;
}

.cs-header-status-text {
	font-size: 0.8125rem;
	line-height: 1.35;
	font-weight: 400;
}

.page-header .onhover-show-div {
	top: 52px;
}

.cs-header-chip-combo {
	color: inherit;
	max-width: min(420px, 100%);
}

.cs-header-chip-combo strong {
	font-weight: 600;
	max-width: 140px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.cs-header-chip-sep {
	opacity: 0.45;
	padding-inline: 0.05rem;
}

@media (max-width: 767.98px) {
	.page-header .nav-right .profile-media .media-body {
		display: none;
	}

	.cs-header-status {
		display: none !important;
	}
}

/* Active sidebar link when Cuba .active is on link-nav */
.sidebar-wrapper .sidebar-links .sidebar-list .sidebar-link.link-nav.active {
	color: var(--theme-default, #7366ff);
}

/* Sidebar density + alignment (override Cuba sparse paddings) */
.page-wrapper.compact-wrapper .page-body-wrapper div.sidebar-wrapper .sidebar-main .sidebar-links {
	margin-top: 0.5rem !important;
	margin-bottom: 0.75rem !important;
}

.page-wrapper.compact-wrapper .page-body-wrapper div.sidebar-wrapper .sidebar-main .sidebar-links .sidebar-main-title,
.page-wrapper.compact-wrapper .page-body-wrapper div.sidebar-wrapper .sidebar-main .sidebar-links .simplebar-wrapper .simplebar-mask .simplebar-content-wrapper .simplebar-content > li.sidebar-main-title {
	padding: 0.85rem 1rem 0.35rem !important;
	margin-top: 0.35rem !important;
}

.page-wrapper.compact-wrapper .page-body-wrapper div.sidebar-wrapper .sidebar-main .sidebar-links .simplebar-wrapper .simplebar-mask .simplebar-content-wrapper .simplebar-content > li a,
.page-wrapper.compact-wrapper .page-body-wrapper div.sidebar-wrapper .sidebar-main .sidebar-links .sidebar-list > a.sidebar-link {
	padding: 8px 14px !important;
	display: flex !important;
	align-items: center;
	gap: 0.65rem;
	min-height: 40px;
}

.page-wrapper.compact-wrapper .page-body-wrapper div.sidebar-wrapper .sidebar-main .sidebar-links .simplebar-wrapper .simplebar-mask .simplebar-content-wrapper .simplebar-content > li .sidebar-link.active,
.page-wrapper.compact-wrapper .page-body-wrapper div.sidebar-wrapper .sidebar-main .sidebar-links .sidebar-list > a.sidebar-link.active {
	margin-bottom: 0 !important;
	border-radius: 0 8px 8px 0;
}

html[dir="rtl"] .page-wrapper.compact-wrapper .page-body-wrapper div.sidebar-wrapper .sidebar-main .sidebar-links .simplebar-wrapper .simplebar-mask .simplebar-content-wrapper .simplebar-content > li .sidebar-link.active,
html[dir="rtl"] .page-wrapper.compact-wrapper .page-body-wrapper div.sidebar-wrapper .sidebar-main .sidebar-links .sidebar-list > a.sidebar-link.active {
	border-radius: 8px 0 0 8px;
}

.page-wrapper.compact-wrapper .page-body-wrapper div.sidebar-wrapper .sidebar-main .sidebar-links .simplebar-wrapper .simplebar-mask .simplebar-content-wrapper .simplebar-content > li .sidebar-link::after {
	height: 28px !important;
}

.page-wrapper.compact-wrapper .page-body-wrapper div.sidebar-wrapper .sidebar-main .sidebar-links .sidebar-link .stroke-icon,
.page-wrapper.compact-wrapper .page-body-wrapper div.sidebar-wrapper .sidebar-main .sidebar-links .sidebar-link .fill-icon {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}

.page-wrapper.compact-wrapper .page-body-wrapper div.sidebar-wrapper .sidebar-main .sidebar-links .sidebar-link > span {
	flex: 0 1 auto;
	min-width: 0;
	line-height: 1.35;
	padding-inline-end: 1.25rem;
}

/* Chevron: hide on leaves; align on parents (RTL) */
.page-wrapper.compact-wrapper .page-body-wrapper div.sidebar-wrapper .sidebar-main .sidebar-links .link-nav .according-menu {
	display: none !important;
}

.page-wrapper.compact-wrapper .page-body-wrapper .according-menu {
	position: absolute;
	inset-inline-end: 12px;
	inset-inline-start: auto;
	right: auto;
	left: auto;
	top: 50%;
	transform: translateY(-50%);
	line-height: 1;
	display: flex;
	align-items: center;
}

html[dir="rtl"] .page-wrapper.compact-wrapper .page-body-wrapper .according-menu {
	right: auto;
	left: 12px;
}

html[dir="rtl"] .page-wrapper.compact-wrapper .page-body-wrapper .according-menu .fa-angle-right {
	transform: scaleX(-1);
}

.page-wrapper.compact-wrapper .page-body-wrapper div.sidebar-wrapper .sidebar-main .sidebar-links .sidebar-submenu > li > a {
	padding: 6px 14px !important;
	padding-inline-start: 1.5rem !important;
	min-height: 34px;
}

html[dir="rtl"] .page-wrapper.compact-wrapper .page-body-wrapper div.sidebar-wrapper .sidebar-main .sidebar-links .sidebar-submenu > li > a {
	padding: 6px 14px !important;
	padding-inline-start: 1.5rem !important;
}

.page-wrapper.compact-wrapper .page-body-wrapper div.sidebar-wrapper .sidebar-main .sidebar-links .sidebar-submenu .submenu-title {
	padding: 6px 14px !important;
	padding-inline-start: 1.5rem !important;
	min-height: 34px;
}

#cs-menu-order-list .list-group-item {
	background: #fff;
}

.cs-menu-stub-badge {
	display: inline-block;
	margin-right: 0.35rem;
	padding: 0.1rem 0.4rem;
	font-size: 0.65rem;
	border-radius: 4px;
	background: rgba(115, 102, 255, 0.12);
	color: #7366ff;
	vertical-align: middle;
}

.cs-forbidden-card {
	margin-top: 4rem;
}

.cs-onboarding-banner {
	border-radius: 10px;
}

@media (max-width: 767.98px) {
	.cs-panel-table-wrap {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	.cs-panel-table-wrap .table:not(.cs-table-stack) {
		min-width: 640px;
	}

	.cs-panel-table-wrap .btn-group {
		flex-wrap: wrap;
	}
}

.cs-users-table thead th {
	font-size: 0.75rem;
	font-weight: 600;
	color: rgba(47, 47, 59, 0.55);
	border-bottom-width: 1px;
	white-space: nowrap;
}

.cs-users-table tbody td {
	vertical-align: middle;
}

.cs-users-table .cs-user-name:focus {
	box-shadow: none;
	background: #f8f9fa !important;
	border-radius: 0.25rem;
	padding-inline: 0.35rem !important;
}

.cs-user-actions .dropdown-menu {
	min-width: 10.5rem;
	padding: 0.35rem 0;
}

.cs-user-actions .dropdown-item {
	padding: 0.45rem 1rem;
	font-size: 0.875rem;
}

.cs-users-table .cs-user-actions .dropdown-menu {
	min-width: 10.5rem;
}

.cs-team-member-card {
	transition: box-shadow 0.2s ease;
}

.cs-team-member-card:hover {
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.cs-companies-table thead th {
	font-size: 0.75rem;
	font-weight: 600;
	color: rgba(47, 47, 59, 0.55);
	white-space: nowrap;
}

.cs-companies-table .cs-company-actions .dropdown-menu {
	min-width: 13rem;
}

.cs-user-role-chips .cs-role-chip {
	padding: 0.4rem 0.75rem;
	font-weight: 500;
	border-radius: 0.35rem;
	color: inherit;
}

.cs-user-role-chips .cs-role-chip-active {
	background: var(--theme-default, #7366ff);
	color: #fff;
}

/* Overdue dates (RISE-style) */
.cs-overdue,
td .cs-overdue,
small.cs-overdue,
span.cs-overdue {
	color: var(--bs-danger, #dc3545) !important;
	font-weight: 600;
}

.cs-status-badge {
	font-size: 0.75rem;
	vertical-align: middle;
}

.cs-project-label-badge {
	display: inline-block;
	font-size: 0.7rem;
	padding: 0.15rem 0.45rem;
	border-radius: 4px;
	color: #fff;
	margin-top: 0.25rem;
}

.cs-project-members {
	display: flex;
	align-items: center;
	gap: 0.25rem;
}

.cs-avatar-xs {
	width: 24px;
	height: 24px;
	object-fit: cover;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 0.65rem;
}

.cs-table-progress {
	min-width: 80px;
}

.cs-table-progress .progress {
	height: 6px;
}

#cs-events-calendar {
	min-height: 640px;
}

.cs-kanban-card.is-dragging {
	opacity: 0.5;
}

/* Projects ? Kanban */
.cs-kanban-board {
	display: grid;
	grid-template-columns: repeat(4, minmax(200px, 1fr));
	gap: 1rem;
	overflow-x: auto;
	padding-bottom: 0.5rem;
}

.cd-timeline-block {
	margin-bottom: 1rem;
	padding-inline-start: 1rem;
	border-inline-start: 2px solid #e2e8f0;
}

/* PM module design tokens */
#cs-projects-app,
#cs-my-tasks-app,
#cs-projects-dashboard-app,
#cs-projects-portfolio-app,
#cs-project-detail {
	--cs-pm-gap: 1rem;
	--cs-pm-radius: 12px;
}

#cs-projects-app .cs-pm-filter-drawer,
#cs-my-tasks-app .cs-pm-filter-drawer {
	background: var(--bs-body-bg, #fff);
	border: 1px solid #e2e8f0;
	border-radius: var(--cs-pm-radius);
	padding: var(--cs-pm-gap);
}

#cs-project-detail .cs-project-tabs {
	background: transparent;
	border-bottom: 0;
	padding-block: 0;
}

#cs-projects-table.table,
#cs-portfolio-table.table {
	margin-bottom: 0;
}

@media (max-width: 767.98px) {
	#cs-projects-table.cs-table-stack td::before,
	#cs-portfolio-table.cs-table-stack td::before {
		font-weight: 600;
		color: #64748b;
	}
}

.cs-kanban-touch-hint {
	font-size: 0.75rem;
	color: #64748b;
	padding: 0.25rem 0.5rem;
}

.cs-pm-skeleton-table .cs-pm-skeleton-row {
	padding: 0.5rem 0;
}

@media (hover: none) and (pointer: coarse) {
	.cs-kanban-card {
		touch-action: manipulation;
	}
	.cs-kanban-column-body.is-drag-over {
		background: rgba(59, 130, 246, 0.08);
	}
	.cs-kanban-touch-move {
		margin-top: 0.35rem;
	}
}

.cs-kanban-column {
	background: #f8fafc;
	border-radius: 10px;
	min-height: 280px;
}

.cs-kanban-column-title {
	font-weight: 600;
	font-size: 0.875rem;
	padding: 0.75rem;
	border-bottom: 1px solid #e2e8f0;
}

.cs-kanban-column-body {
	padding: 0.5rem;
	min-height: 200px;
}

.cs-kanban-column-body.is-drag-over {
	background: #eef2ff;
}

.cs-kanban-card {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 0.625rem;
	margin-bottom: 0.5rem;
	cursor: pointer;
	border-inline-start-width: 3px;
}

.cs-kanban-card.is-priority-high { border-inline-start-color: #f59e0b; }
.cs-kanban-card.is-priority-urgent { border-inline-start-color: #ef4444; }
.cs-kanban-card.is-priority-low { border-inline-start-color: #94a3b8; }

.cs-kanban-card:hover {
	border-color: #7366ff;
}

.cs-kanban-card.is-blocked {
	opacity: 0.92;
	border-style: dashed;
}

.cs-kanban-card-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.25rem;
	margin-bottom: 0.25rem;
}

.cs-blocked-badge {
	display: inline-block;
	font-size: 0.65rem;
	padding: 0.05rem 0.35rem;
	border-radius: 999px;
	background: rgba(245, 158, 11, 0.18);
	color: #b45309;
}

.cs-kanban-subtasks {
	margin-top: 0.4rem;
	padding-top: 0.35rem;
	border-top: 1px dashed #e2e8f0;
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
}

.cs-kanban-sub {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	background: none;
	border: 0;
	padding: 0.15rem 0;
	text-align: start;
	font-size: 0.78rem;
	color: inherit;
	cursor: pointer;
}

.cs-kanban-sub-dot {
	width: 0.45rem;
	height: 0.45rem;
	border-radius: 50%;
	background: #94a3b8;
	flex-shrink: 0;
}

.cs-kanban-sub-dot.is-in_progress { background: #7366ff; }
.cs-kanban-sub-dot.is-review { background: #f59e0b; }
.cs-kanban-sub-dot.is-done { background: #22c55e; }

.cs-task-split {
	min-height: 0;
}

.cs-task-pane-compose {
	padding-inline-end: 1rem;
}

.cs-task-pane-activity {
	padding-inline-start: 1rem;
	border-inline-start: 1px solid #e8ebf2;
	max-height: min(70vh, 640px);
	overflow-y: auto;
}

.cs-task-modal.is-create .cs-task-pane-activity {
	display: none;
}

.cs-task-modal.is-create .cs-task-pane-compose {
	padding-inline-end: 0;
}

.cs-gantt-chart .bar-blocked .bar {
	fill: #f59e0b;
}

.cs-project-header .progress-bar {
	background: #7366ff;
}

.cs-kpi-block {
	border-inline-start: 3px solid var(--theme-default, #7366ff);
	padding-inline-start: 0.75rem;
}

.cs-kpi-value {
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.2;
}

.cs-kanban-avatars {
	display: flex;
	align-items: center;
	gap: 0.25rem;
	margin-top: 0.4rem;
}

.cs-avatar-dot {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.35rem;
	height: 1.35rem;
	border-radius: 50%;
	background: #eef1ff;
	color: #4a3aff;
	font-size: 0.65rem;
	font-weight: 700;
}

.cs-avatar-more {
	font-size: 0.7rem;
	color: #64748b;
}

.cs-assignee-chips .cs-assignee-chip {
	display: inline-flex;
	align-items: center;
	gap: 0.15rem;
	border: 1px solid #e2e8f0;
	border-radius: 999px;
	padding: 0.15rem 0.45rem;
	background: #f8fafc;
	font-size: 0.8rem;
}

.cs-assignee-chips .cs-assignee-chip.is-primary {
	border-color: #7366ff;
	background: #f3f1ff;
}

.cs-assignee-chips .cs-assignee-chip button {
	border: 0;
	background: transparent;
	padding: 0;
	line-height: 1.2;
}

.cs-assignee-chips .cs-assignee-remove {
	color: #94a3b8;
	margin-inline-start: 0.15rem;
}

.cs-project-timeline {
	position: relative;
}

.cs-timeline-track {
	position: relative;
	padding-inline-start: 1.5rem;
}

.cs-timeline-track::before {
	content: '';
	position: absolute;
	inset-inline-start: 0.35rem;
	top: 0.25rem;
	bottom: 0.25rem;
	width: 2px;
	background: linear-gradient(180deg, #7366ff 0%, #cbd5e1 100%);
}

.cs-timeline-item {
	position: relative;
	padding-bottom: 1.5rem;
}

.cs-timeline-marker {
	position: absolute;
	inset-inline-start: -1.28rem;
	top: 0.35rem;
	width: 0.75rem;
	height: 0.75rem;
	border-radius: 50%;
	background: #94a3b8;
	border: 2px solid #fff;
	box-shadow: 0 0 0 2px #cbd5e1;
}

.cs-timeline-item.is-active .cs-timeline-marker {
	background: #7366ff;
	box-shadow: 0 0 0 2px #7366ff;
}

.cs-timeline-item.is-done .cs-timeline-marker {
	background: #22c55e;
	box-shadow: 0 0 0 2px #22c55e;
}

.cs-timeline-item.is-upcoming .cs-timeline-marker {
	background: #f59e0b;
	box-shadow: 0 0 0 2px #f59e0b;
}

.cs-timeline-title {
	font-weight: 700;
	font-size: 1rem;
}

.cs-timeline-actions {
	display: flex;
	gap: 0.75rem;
}

.cs-timeline-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
}

.cs-timeline-chip {
	border: 1px solid #e2e8f0;
	background: #fff;
	border-radius: 999px;
	padding: 0.15rem 0.55rem;
	font-size: 0.75rem;
	color: inherit;
	cursor: pointer;
}

.cs-timeline-chip[data-status="done"] {
	opacity: 0.65;
	text-decoration: line-through;
}

.cs-timeline-chip.is-more {
	cursor: default;
	border-style: dashed;
}

body.dark-only .cs-kanban-avatars .cs-avatar-dot {
	background: #2b2f45;
	color: #c7c2ff;
}

body.dark-only .cs-assignee-chips .cs-assignee-chip {
	background: #1f2335;
	border-color: #3a3f55;
}

body.dark-only .cs-assignee-chips .cs-assignee-chip.is-primary {
	background: #2a2748;
	border-color: #7366ff;
}

body.dark-only .cs-timeline-track::before {
	background: linear-gradient(180deg, #7366ff 0%, #3a3f55 100%);
}

body.dark-only .cs-timeline-marker {
	border-color: #1c1f2a;
}

body.dark-only .cs-timeline-chip {
	background: #1f2335;
	border-color: #3a3f55;
	color: #e2e8f0;
}

body.dark-only .cs-kpi-block {
	border-inline-start-color: #7366ff;
}

/* Phase 2: labels, subtasks, gantt, timesheet */
.cs-label-badge {
	display: inline-block;
	font-size: 0.65rem;
	padding: 0.1rem 0.4rem;
	border-radius: 999px;
	border: 1px solid transparent;
	margin-inline-end: 0.25rem;
	line-height: 1.4;
}

.cs-label-badge.is-more {
	background: rgba(115, 102, 255, 0.12);
	border-color: rgba(115, 102, 255, 0.35);
	color: #7366ff;
}

.cs-label-chip {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	font-size: 0.75rem;
	padding: 0.15rem 0.45rem;
	border-radius: 999px;
	border: 1px solid #d8dae5;
}

.cs-label-chip .cs-label-remove {
	border: none;
	background: transparent;
	padding: 0 0.15rem;
	line-height: 1;
	font-size: 1rem;
	color: #94a3b8;
	cursor: pointer;
}

.cs-subtask-indent {
	color: #7366ff;
	margin-inline-end: 0.15rem;
}

.cs-gantt-wrap {
	overflow-x: auto;
	border: 1px solid #e8ebf2;
	border-radius: 8px;
	padding: 0.5rem;
	background: #fff;
}

.cs-gantt-chart {
	min-height: 280px;
	direction: ltr;
}

.cs-gantt-chart .gantt-container {
	font-family: inherit;
}

.cs-gantt-chart .bar-milestone .bar {
	fill: #7366ff;
}

.cs-gantt-chart .bar-milestone-done .bar {
	fill: #22c55e;
}

.cs-gantt-chart .bar-milestone-active .bar {
	fill: #7366ff;
}

.cs-gantt-chart .bar-milestone-upcoming .bar {
	fill: #94a3b8;
}

.cs-gantt-chart .bar-task .bar {
	fill: #06b6d4;
}

.cs-gantt-chart .bar-subtask .bar {
	fill: #8b5cf6;
	opacity: 0.85;
}

.cs-gantt-popup {
	padding: 0.35rem 0.5rem;
	font-size: 0.8rem;
	text-align: right;
	direction: rtl;
}

.cs-gantt-chart .bar-wrapper {
	cursor: grab;
}

.cs-comment-mention-menu {
	position: absolute;
	top: 100%;
	right: 0;
	left: 0;
	z-index: 20;
	max-height: 180px;
	overflow-y: auto;
}

.cs-mention {
	color: var(--theme-default, #7366ff);
	font-weight: 600;
}

.cs-comment-item .btn-link {
	font-size: 0.75rem;
}

.cs-global-timer {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.2rem 0.55rem;
	border-radius: 999px;
	background: rgba(115, 102, 255, 0.1);
	max-width: 220px;
}

.cs-global-timer-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #ef4444;
	animation: cs-timer-pulse 1.4s ease-in-out infinite;
}

.cs-global-timer-label {
	max-width: 120px;
}

@keyframes cs-timer-pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.35; }
}

.cs-task-times-list {
	max-height: 160px;
	overflow-y: auto;
}

.cs-subtask-badge {
	display: inline-block;
	font-size: 0.65rem;
	padding: 0.05rem 0.35rem;
	border-radius: 999px;
	background: rgba(139, 92, 246, 0.15);
	color: #8b5cf6;
	margin-inline-start: 0.25rem;
}

.cs-subtask-list .btn-link {
	text-decoration: none;
}

body.dark-only .cs-subtask-badge {
	background: rgba(139, 92, 246, 0.25);
	color: #c4b5fd;
}

body.dark-only .cs-label-chip {
	background: #1f2335;
	border-color: #3a3f55;
	color: #e2e8f0;
}

body.dark-only .cs-gantt-wrap {
	background: #1c1f2a;
	border-color: #3a3f55;
}

body.dark-only .cs-gantt-chart .grid-header,
body.dark-only .cs-gantt-chart .grid-row {
	fill: #1c1f2a;
}

body.dark-only .cs-gantt-chart .grid-row:nth-child(even) {
	fill: #232736;
}

@media (max-width: 991.98px) {
	.cs-kanban-board {
		display: flex;
		flex-wrap: nowrap;
		gap: 0.75rem;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scroll-snap-type: x mandatory;
		padding-bottom: 0.75rem;
	}

	.cs-kanban-column {
		flex: 0 0 80%;
		max-width: 280px;
		scroll-snap-align: start;
		min-height: 240px;
	}

	.cs-task-pane-compose,
	.cs-task-pane-activity {
		padding-inline: 0;
		border-inline-start: 0;
		max-height: none;
	}

	.cs-task-pane-activity {
		margin-top: 1rem;
		padding-top: 1rem;
		border-top: 1px solid #e8ebf2;
	}
}

.cs-menu-lock-badge,
.cs-menu-stub-badge {
	font-size: 0.65rem;
	margin-right: 0.35rem;
	opacity: 0.85;
}

.cs-upsell-menu {
	opacity: 0.85;
}

#csGlobalSearchModal .modal-content {
	border-radius: 12px;
}

#cs-global-search-input {
	border: none;
	box-shadow: none;
}

#cs-entitlements-modules .badge {
	font-weight: 500;
}

/* Cuba dashboard polish */
.widget-grid .profile-box {
	margin-bottom: 0;
	min-height: 0;
}

.widget-grid .recent-activity-list {
	list-style: none;
	padding: 0;
}

.widget-grid .bookmark-content .bookmark-icon {
	width: 40px;
	height: 40px;
	border-radius: 8px;
	background: rgba(115, 102, 255, 0.08);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--theme-default, #7366ff);
}

.widget-grid .bookmark-content .bookmark-icon svg,
.widget-grid .bookmark-content .bookmark-icon i {
	width: 18px;
	height: 18px;
}

.cs-panel-list-card .card-header.card-no-border .header-top {
	width: 100%;
}

.cs-panel-list-card .card-header-right-icon.cs-panel-toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
}

.page-header .left-header .notification-slider img {
	width: 22px;
	height: 22px;
	margin-left: 0.5rem;
}

.page-header .bookmark-dropdown .bookmark-content {
	display: block;
	color: inherit;
}

.page-header .bookmark-dropdown .bookmark-icon {
	width: 40px;
	height: 40px;
	margin: 0 auto 0.35rem;
	border-radius: 8px;
	background: rgba(115, 102, 255, 0.08);
	display: flex;
	align-items: center;
	justify-content: center;
}

.light-card.balance-card.widget-hover {
	border-radius: 10px;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.light-card.balance-card.widget-hover:hover {
	box-shadow: 0 8px 24px rgba(115, 102, 255, 0.12);
	transform: translateY(-2px);
}

body.dark-only .widget-grid .bookmark-content .bookmark-icon,
body.dark-only .page-header .bookmark-dropdown .bookmark-icon {
	background: rgba(115, 102, 255, 0.2);
}

/* Cuba activity timeline on dashboard */
.cs-activity-timeline {
	list-style: none;
	padding: 0;
	margin: 0;
}

.cs-activity-timeline > li {
	margin-bottom: 1.15rem;
	position: relative;
}

.cs-activity-timeline > li:last-child {
	margin-bottom: 0;
}

.cs-activity-timeline h6 {
	font-size: 0.95rem;
	margin-bottom: 0.25rem;
}

.cs-activity-timeline .date-content {
	padding: 0.15rem 0.55rem;
	border-radius: 4px;
	font-size: 0.75rem;
}

#cs-ops-chart,
#cs-project-status-chart {
	min-height: 220px;
}

.overall-card .balance-data {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.25rem;
	list-style: none;
	padding: 0;
	margin: 0 0 0.75rem;
}

.overall-card .balance-data .circle {
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 100%;
	margin-left: 0.35rem;
	vertical-align: middle;
}

.order-content {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 1rem;
	justify-content: center;
	height: 100%;
}

.order-content li {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
}

.recent-circle {
	width: 12px;
	height: 12px;
	border-radius: 100%;
	display: inline-block;
	margin-top: 0.4rem;
	flex-shrink: 0;
}

.page-header .notification-slider {
	max-width: 100%;
	overflow: hidden;
}

.page-header .notification-slider .slick-list,
.page-header .notification-slider .slick-track {
	height: 100%;
}

.page-header .notification-slider .slick-slide > div {
	height: 100%;
}

.widget-grid .card.height-equal {
	transition: min-height 0.15s ease;
}

/* Auth / login polish */
.login-card .cs-login-brand {
	font-size: 1.05rem;
	color: #2f2f3b;
}

.login-card .login-main .theme-form .link {
	position: static;
	display: inline-block;
	margin-top: 0.35rem;
	right: auto;
	left: auto;
}

.login-card .form-input {
	position: relative;
}

.login-card .show-hide,
.needs-validation .show-hide {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	inset-inline-end: 14px;
	inset-inline-start: auto;
	right: auto;
	left: auto;
}

.login-card .show-hide span {
	font-size: 0;
}

.login-card .show-hide span.show::before {
	content: "?????";
	font-size: 0.75rem;
	color: #7366ff;
}

.login-card .show-hide span:not(.show)::before {
	content: "?????";
	font-size: 0.75rem;
	color: #7366ff;
}

.login-card.login-dark .login-main,
.login-card .login-main {
	border-radius: 12px;
}

.login-card .login-main .theme-form input[dir="ltr"] {
	padding-inline-end: 3.5rem;
}

body.dark-only .login-card .cs-login-brand,
body.dark-only .login-card h4,
body.dark-only .login-card p,
body.dark-only .login-card .col-form-label,
body.dark-only .login-card .text-muted,
body.dark-only .login-card .link {
	color: rgba(255, 255, 255, 0.9) !important;
}

body.dark-only .login-card .form-control {
	color: rgba(255, 255, 255, 0.92);
	background-color: #1d1e26;
	border-color: #374558;
}

/* ?? Dark mode contrast overrides ?? */
body.dark-only {
	--body-font-color: rgba(255, 255, 255, 0.92);
	--bs-modal-color: rgba(255, 255, 255, 0.9);
}

body.dark-only .form-control,
body.dark-only .form-select,
body.dark-only .form-control:focus,
body.dark-only .form-select:focus {
	color: rgba(255, 255, 255, 0.92);
	background-color: #1d1e26;
	border-color: #374558;
}

body.dark-only .txt-dark {
	color: rgba(255, 255, 255, 0.9) !important;
}

body.dark-only .f-light {
	color: rgba(255, 255, 255, 0.72) !important;
	opacity: 1;
}

body.dark-only .btn-outline-light {
	color: #eee;
	border-color: #555;
}

body.dark-only .btn-outline-light:hover {
	color: #1d1e26;
	background: #eee;
	border-color: #eee;
}

body.dark-only .btn-light {
	color: #1d1e26 !important;
	background-color: #e8ebf2 !important;
	border-color: #e8ebf2 !important;
}

body.dark-only .page-wrapper.compact-wrapper .page-header .header-wrapper .toggle-sidebar {
	color: #eee;
}

body.dark-only .nav-tabs .nav-link {
	color: rgba(255, 255, 255, 0.7);
}

body.dark-only .nav-tabs .nav-link.active {
	color: #fff;
}

body.dark-only .cs-role-list,
body.dark-only .cs-acl-matrix,
body.dark-only #cs-menu-order-list .list-group-item,
body.dark-only .list-group-item {
	background: #1d1e26;
	border-color: #374558;
	color: rgba(255, 255, 255, 0.9);
}

body.dark-only .cs-role-list-item:hover,
body.dark-only .cs-role-list-item.is-active {
	background: rgba(115, 102, 255, 0.22);
	color: #c4b5ff;
}

body.dark-only .cs-role-badge {
	background: rgba(255, 255, 255, 0.1);
	color: rgba(255, 255, 255, 0.7);
}

body.dark-only .cs-users-table thead th,
body.dark-only .table thead th {
	color: rgba(255, 255, 255, 0.55);
}

body.dark-only .card {
	background-color: #262932;
	border-color: #374558;
}

body.dark-only .modal-content {
	background-color: #262932;
	color: rgba(255, 255, 255, 0.92);
}

body.dark-only .modal-header,
body.dark-only .modal-footer {
	border-color: #374558;
}

body.dark-only .cs-kanban-card,
body.dark-only .border {
	border-color: #374558 !important;
}

body.dark-only .badge-light-primary {
	background: rgba(115, 102, 255, 0.25);
	color: #c4b5ff;
}

body.dark-only .page-header .header-wrapper {
	background: #1d1e26;
}

body.dark-only .cs-header-status-text .f-light {
	color: rgba(255, 255, 255, 0.65) !important;
}

body.dark-only .sidebar-wrapper {
	background: #1d1e26;
}

body.dark-only .cs-module-stub {
	border-color: rgba(255, 255, 255, 0.15);
}

/* Skeleton loading */
.cs-skeleton-block {
	position: relative;
	overflow: hidden;
	background: rgba(115, 102, 255, 0.08);
	border-radius: 6px;
	min-height: 1rem;
}
.cs-skeleton-rows {
	height: 120px;
}
.cs-skeleton-rows-3 {
	height: 72px;
}
.cs-skeleton-block::after {
	content: '';
	position: absolute;
	inset: 0;
	transform: translateX(-100%);
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
	animation: cs-skeleton-shimmer 1.2s infinite;
}
@keyframes cs-skeleton-shimmer {
	to { transform: translateX(100%); }
}
.cs-is-loading {
	pointer-events: none;
	opacity: 0.85;
}

@media (max-width: 991.98px) {
	.page-body .nav-tabs,
	.page-body .border-tab.nav-tabs {
		flex-wrap: nowrap;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: thin;
	}

	.page-body .nav-tabs .nav-item {
		flex: 0 0 auto;
	}

	.page-body .nav-tabs .nav-link {
		white-space: nowrap;
	}
}

/* ?? Mobile: tabs, buttons, lists, sheets ?? */
@media (max-width: 767.98px) {
	.page-body .nav-tabs {
		flex-wrap: nowrap;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: thin;
	}

	.page-body .nav-tabs .nav-item {
		flex: 0 0 auto;
	}

	.page-body .nav-tabs .nav-link {
		white-space: nowrap;
		padding: 0.7rem 0.9rem;
	}

	.page-body .border-tab.nav-tabs {
		overflow-x: auto;
		flex-wrap: nowrap;
	}

	.page-body .btn-sm,
	.page-body .btn-group-sm > .btn {
		min-height: 44px;
		min-width: 44px;
		padding: 0.45rem 0.85rem;
	}

	.page-body .form-control,
	.page-body .form-select {
		font-size: 16px;
		min-height: 44px;
	}

	.cs-panel-list-card .header-top {
		flex-direction: column;
		align-items: stretch !important;
	}

	.cs-panel-list-card .card-header-right-icon.cs-panel-toolbar {
		width: 100%;
		flex-direction: column;
		align-items: stretch;
	}

	.cs-panel-toolbar .form-control,
	.cs-panel-toolbar .form-select,
	.cs-toolbar-search {
		width: 100%;
		min-width: 0 !important;
	}

	.page-body .btn-group {
		flex-wrap: wrap;
	}

	#cs-finance-new,
	#cs-fin-new,
	#cs-fin-create-wrap,
	#cs-project-new,
	#cs-task-new,
	#cs-member-add,
	#cs-file-upload,
	#cs-milestone-new {
		width: 100%;
	}

	#cs-projects-app .cs-view-toggle,
	#cs-projects-export {
		display: none !important;
	}

	#cs-finance-app .widget-1 .card-body,
	#cs-projects-kpis .widget-1 .card-body {
		padding: 0.85rem 1rem;
	}

	.page-wrapper .page-body-wrapper .page-title .breadcrumb {
		justify-content: flex-start;
		margin-top: 0.25rem;
	}

	.modal.cs-mobile-sheet .modal-dialog {
		margin: 0;
		max-width: 100%;
		min-height: 100%;
	}

	.modal.cs-mobile-sheet .modal-content {
		min-height: 100dvh;
		border: 0;
		border-radius: 0;
	}

	.modal.cs-mobile-sheet .modal-body {
		overflow-y: auto;
	}

	.modal.cs-mobile-sheet .modal-footer {
		position: sticky;
		bottom: 0;
		z-index: 1;
		background: inherit;
		flex-wrap: wrap;
		gap: 0.5rem;
	}

	#cs-finance-table,
	#cs-finance-app .table-responsive,
	#cs-fin-table,
	#cs-fin-books .cs-panel-table-wrap .table-responsive {
		display: none !important;
	}

	.cs-finance-cards {
		display: flex;
		flex-direction: column;
		gap: 0.75rem;
	}

	.cs-finance-card {
		border: 1px solid #e8ebf2;
		border-radius: 10px;
		padding: 0.9rem 1rem;
		background: #fff;
	}

	.cs-finance-card-amount {
		font-size: 1.15rem;
		font-weight: 700;
	}

	.cs-task-toolbar {
		flex-direction: column;
		align-items: stretch !important;
	}

	.cs-task-toolbar > .d-flex {
		width: 100%;
		flex-direction: column;
		align-items: stretch !important;
	}

	.cs-task-toolbar .form-select {
		width: 100% !important;
		min-width: 0 !important;
	}

	.cs-pd-actions {
		width: 100%;
		justify-content: flex-start !important;
	}

	.cs-pd-actions .cs-pd-desktop-actions {
		display: none !important;
	}

	.cs-table-stack thead {
		display: none;
	}

	.cs-table-stack,
	.cs-table-stack tbody,
	.cs-table-stack tr,
	.cs-table-stack td {
		display: block;
		width: 100%;
	}

	.cs-table-stack {
		min-width: 0 !important;
	}

	#cs-task-list-wrap .table-responsive {
		overflow: visible;
	}

	.cs-table-stack tbody tr {
		border: 1px solid #e8ebf2;
		border-radius: 10px;
		margin-bottom: 0.75rem;
		padding: 0.75rem 0.9rem;
		background: #fff;
	}

	.cs-table-stack td {
		display: flex;
		justify-content: space-between;
		align-items: flex-start;
		gap: 0.75rem;
		border: 0;
		padding: 0.2rem 0;
	}

	.cs-table-stack td::before {
		content: attr(data-label);
		color: #64748b;
		font-size: 0.75rem;
		font-weight: 600;
		flex-shrink: 0;
	}

	.cs-table-stack td[data-label=""] {
		justify-content: flex-start;
	}

	.cs-table-stack td[data-label=""]::before {
		content: none;
	}

	.cs-hide-mobile {
		display: none !important;
	}

	.cs-member-card .cs-member-role,
	.cs-member-card .form-select {
		flex: 1 1 10rem;
		width: 100%;
		max-width: none !important;
	}

	#cs-activity-filter {
		max-width: none !important;
		width: 100%;
	}
}

@media (min-width: 768px) {
	.cs-finance-cards {
		display: none;
	}

	.cs-pd-more {
		display: none !important;
	}
}

body.dark-only .cs-finance-card,
body.dark-only .cs-table-stack tbody tr,
body.dark-only .cs-member-card {
	background: #1c1f2a;
	border-color: #3a3f55;
}

body.dark-only .cs-table-stack td::before {
	color: #94a3b8;
}

body.dark-only .modal.cs-mobile-sheet .modal-footer {
	background: #1c1f2a;
}

/* Core panel shell polish */
.sidebar-submenu.is-open {
	display: block;
}

.cs-sidebar-heading {
	list-style: none;
	pointer-events: none;
}

.cs-sidebar-heading span {
	display: block;
	padding: 0.7rem 1.25rem 0.2rem;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: #90a1b5;
}

.cs-sidebar-heading:first-child span {
	padding-top: 0.35rem;
}

.cs-fin-tree-code {
	font-variant-numeric: tabular-nums;
	direction: ltr;
	unicode-bidi: isolate;
}

#cs-fin-books .cs-finance-card-amount {
	font-variant-numeric: tabular-nums;
	direction: ltr;
	unicode-bidi: isolate;
}

.cs-fin-amt {
	font-variant-numeric: tabular-nums;
	direction: ltr;
	unicode-bidi: isolate;
}

#cs-fin-books .table td:has(.cs-fin-amt),
#cs-fin-table td.cs-fin-num {
	font-variant-numeric: tabular-nums;
	direction: ltr;
	unicode-bidi: isolate;
	white-space: nowrap;
}

.cs-sidebar-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(15, 23, 42, 0.45);
	z-index: 8;
}

.cs-sidebar-overlay.is-visible {
	display: block;
}

.cs-bookmark-dropdown {
	min-width: 200px;
	padding: 0.75rem 1rem;
}

.cs-header-search-results {
	max-height: 320px;
	overflow-y: auto;
}

.cs-header-search-results .list-group-item {
	border: 0;
	border-bottom: 1px solid #ecf3fa;
	cursor: pointer;
}

#csGlobalSearchModal.cs-mobile-sheet .modal-dialog {
	margin: 0;
	max-width: 100%;
	min-height: 100%;
}

#csGlobalSearchModal.cs-mobile-sheet .modal-content {
	min-height: 100vh;
	border-radius: 0;
}

.cs-notif-inbox-list .cs-notif-card {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 0.75rem;
	cursor: pointer;
}

.cs-notif-card-actions .btn {
	min-height: 44px;
	min-width: 88px;
}

.cs-onboarding-banner .card-body {
	padding-top: 0.5rem;
}

#cs-entitlements-card .cs-skeleton-block {
	min-height: 72px;
}

@media (max-width: 767.98px) {
	.page-header .nav-menus {
		gap: 0.25rem;
	}

	.page-header .nav-menus > li {
		margin-inline: 0;
	}

	.cs-company-switcher-label {
		max-width: 72px;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
		display: inline-block;
		vertical-align: middle;
	}

	.cs-acl-layout .cs-role-list {
		position: sticky;
		top: calc(var(--cs-header-height, 72px) + 8px);
		z-index: 2;
		background: var(--bs-body-bg, #fff);
		padding-bottom: 0.5rem;
	}

	#cs-activity-filters-collapse:not(.show) {
		display: none;
	}

	.cs-user-actions .dropdown-toggle,
	.cs-company-actions .dropdown-toggle {
		min-height: 44px;
	}

	#cs-users-page .col-xl-4 {
		order: -1;
		margin-bottom: 1rem;
	}
}

body.dark-only .cs-header-search-results .list-group-item {
	border-color: #3a3f55;
}

body.dark-only .cs-sidebar-overlay {
	background: rgba(0, 0, 0, 0.55);
}

body.dark-only .cs-acl-layout .cs-role-list {
	background: #1c1f2a;
}

/* Task view ? org block read-only for assignees */
.cs-task-org-readonly .cs-task-org-fields {
	opacity: 0.92;
}
.cs-task-org-readonly .cs-task-org-fields input:not([type="hidden"]),
.cs-task-org-readonly .cs-task-org-fields select,
.cs-task-org-readonly .cs-task-org-fields textarea,
.cs-task-org-readonly .cs-task-org-fields #cs-task-label-input,
.cs-task-org-readonly .cs-task-org-fields #cs-task-assignee-add {
	background-color: var(--bs-light, #f8f9fa);
	cursor: not-allowed;
}

/* Jalali date picker */
.cs-jalali-picker-popup {
	min-width: 220px;
	max-width: 280px;
}
.cs-jalali-picker-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 4px;
}
.cs-jalali-picker-grid .cs-jalali-day {
	padding: 0.15rem 0;
	min-width: 0;
}
.cs-jalali-picker-grid .cs-jalali-day.active {
	font-weight: 700;
}

.cs-task-detail-form .cs-task-pane {
	padding: 0.5rem 1rem;
}
@media (min-width: 992px) {
	.cs-task-detail-form .cs-task-pane-org {
		border-left: 1px solid var(--bs-border-color, #dee2e6);
	}
}

.cs-progress-donut {
	flex-shrink: 0;
}

.cs-org-root, .cs-org-children {
	list-style: none;
	padding-right: 1.25rem;
	margin: 0;
}
.cs-org-root { padding-right: 0; }
.cs-org-node-row { padding: 0.35rem 0; }
.cs-org-children { border-right: 1px dashed var(--bs-border-color, #dee2e6); }
.cs-principal-picker .cs-picker-results { max-height: 220px; overflow: auto; }
.cs-picker-chips .btn-close { width: 0.5em; height: 0.5em; }

@media print {
	.page-header,
	.sidebar-wrapper,
	.footer,
	.cs-panel-toolbar,
	.btn,
	.pagination,
	.modal,
	#cs-global-timer-start-wrap,
	.onhover-dropdown {
		display: none !important;
	}
	.page-body-wrapper,
	.page-body {
		margin: 0 !important;
		padding: 0 !important;
	}
	.card {
		border: none !important;
		box-shadow: none !important;
	}
	.cs-table-stack tr,
	.table tr {
		break-inside: avoid;
	}
	.cs-overdue {
		color: #000 !important;
		font-weight: 700;
	}
}

/* PM workspace redesign */
.cs-pm-page {
	--cs-pm-line: #e8edf3;
	--cs-pm-muted: #64748b;
	--cs-pm-surface: #fff;
	--cs-pm-radius: 12px;
}

#cs-projects-app,
#cs-my-tasks-app,
#cs-projects-dashboard-app,
#cs-projects-portfolio-app,
#cs-project-times-app,
#cs-project-detail,
#cs-task-detail {
	--cs-pm-gap: 1rem;
	--cs-pm-radius: 12px;
}

.cs-pm-list-shell,
.cs-pd-surface,
.cs-pm-panel {
	background: var(--cs-pm-surface, #fff);
	border: 1px solid var(--cs-pm-line, #e8edf3);
	border-radius: var(--cs-pm-radius, 12px);
	padding: 1rem 1.15rem 1.25rem;
}

.cs-pm-toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 0.75rem;
}

.cs-pm-toolbar-start,
.cs-pm-toolbar-end {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
}

.cs-pm-search {
	min-width: 12rem;
}

.cs-status-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
}

.cs-status-pill {
	border: 1px solid var(--cs-pm-line, #e8edf3);
	background: #f8fafc;
	border-radius: 999px;
	padding: 0.25rem 0.7rem;
	font-size: 0.8rem;
	color: inherit;
}

.cs-status-pill span {
	color: var(--cs-pm-muted, #64748b);
	margin-inline-start: 0.2rem;
}

.cs-status-pill.active {
	background: var(--theme-default, #7366ff);
	border-color: var(--theme-default, #7366ff);
	color: #fff;
}

.cs-status-pill.active span {
	color: rgba(255, 255, 255, 0.85);
}

.cs-health-dot {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	font-size: 0.75rem;
	color: var(--cs-pm-muted, #64748b);
}

.cs-health-dot::before {
	content: "";
	width: 0.5rem;
	height: 0.5rem;
	border-radius: 50%;
	background: #94a3b8;
}

.cs-health-dot.is-on_track::before { background: #22c55e; }
.cs-health-dot.is-at_risk::before { background: #f59e0b; }
.cs-health-dot.is-off_track::before,
.cs-health-dot.is-critical::before { background: #ef4444; }

.cs-project-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--cs-pm-line, #e8edf3);
	border-radius: 14px;
	overflow: hidden;
	min-height: 100%;
	height: 100%;
	transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.cs-project-card:hover {
	border-color: #c7d2fe;
	box-shadow: 0 10px 28px rgba(115, 102, 255, 0.1);
	transform: translateY(-1px);
}

.cs-project-accent {
	width: 100%;
	height: 4px;
	flex-shrink: 0;
}

.cs-project-card-body {
	padding: 1rem 1.1rem 1.15rem;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.cs-project-card-title {
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.35;
}

.cs-project-card-sub {
	font-size: 0.8rem;
}

.cs-project-card-progress {
	display: flex;
	align-items: center;
	gap: 0.55rem;
}

.cs-project-card-progress .progress {
	height: 8px;
	flex: 1;
	border-radius: 999px;
	background: #f1f5f9;
}

.cs-project-card-progress .progress-bar {
	border-radius: 999px;
}

.cs-project-stat-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	margin-top: 0.65rem;
}

.cs-project-stat-chip {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	padding: 0.15rem 0.5rem;
	border-radius: 999px;
	background: #f8fafc;
	border: 1px solid var(--cs-pm-line, #e8edf3);
	font-size: 0.72rem;
	color: var(--cs-pm-muted, #64748b);
}

.cs-project-stat-chip.is-overdue {
	background: #fef2f2;
	border-color: #fecaca;
	color: #dc2626;
}

.cs-project-stat-chip.is-done {
	background: #f0fdf4;
	border-color: #bbf7d0;
	color: #16a34a;
}

/* Activity feed (replaces Cuba cd-timeline) */
.cs-pm-feed {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
}

.cs-pm-feed-item {
	padding: 0.75rem 0.9rem;
	border: 1px solid var(--cs-pm-line, #e8edf3);
	border-radius: 10px;
	background: #fff;
}

.cs-pm-feed-item h6 {
	font-size: 0.9rem;
	margin-bottom: 0.25rem;
}

.cs-pm-feed-meta {
	font-size: 0.75rem;
	color: var(--cs-pm-muted, #64748b);
}

/* Project pulse bar (replaces overview tab) */
.cs-pd-pulse {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0.65rem;
	margin-bottom: 1rem;
	padding: 0.75rem 0.85rem;
	border: 1px solid var(--cs-pm-line, #e8edf3);
	border-radius: 12px;
	background: #f8fafc;
}

.cs-pd-pulse-item {
	border: 0;
	background: transparent;
	text-align: start;
	cursor: pointer;
	padding: 0.35rem 0.5rem;
	border-radius: 8px;
	color: inherit;
	min-width: 0;
}

.cs-pd-pulse-item:hover {
	background: rgba(115, 102, 255, 0.08);
}

.cs-pd-pulse-item:focus-visible {
	outline: 2px solid #7366ff;
	outline-offset: 1px;
}

.cs-pd-pulse-label {
	font-size: 0.72rem;
	color: var(--cs-pm-muted, #64748b);
	margin-bottom: 0.15rem;
}

.cs-pd-pulse-value {
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.2;
}

	@media (max-width: 767.98px) {
	.cs-pd-pulse {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0.4rem;
		padding: 0.55rem 0.6rem;
	}

	.cs-pd-pulse-item {
		padding: 0.25rem 0.35rem;
	}

	.cs-pd-pulse-value {
		font-size: 0.95rem;
	}

	.cs-pd-dock {
		box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.06);
	}
}

/* Primary nav: work / plan / people / more */
.cs-pd-nav-groups {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.25rem;
}

.cs-pd-nav-item {
	border: 0;
	background: transparent;
	padding: 0.45rem 0.85rem;
	border-radius: 8px;
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--cs-pm-muted, #64748b);
}

.cs-pd-nav-item:hover {
	background: #f1f5f9;
	color: inherit;
}

.cs-pd-nav-item.active,
.cs-pd-nav-item[aria-expanded="true"] {
	background: rgba(115, 102, 255, 0.12);
	color: var(--theme-default, #7366ff);
	font-weight: 650;
}

.cs-pd-nav-more .dropdown-menu {
	min-width: 11rem;
	border-radius: 10px;
	border-color: var(--cs-pm-line, #e8edf3);
	box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
}

.cs-pd-nav-more .dropdown-item.active {
	background: rgba(115, 102, 255, 0.1);
	color: var(--theme-default, #7366ff);
}

.cs-file-item {
	padding: 0.75rem;
	border: 1px solid var(--cs-pm-line, #e8edf3);
	border-radius: 10px;
	background: #fff;
	height: 100%;
}

.cs-file-item .cs-file-meta {
	font-size: 0.72rem;
	color: var(--cs-pm-muted, #64748b);
	margin-top: 0.25rem;
}

.cs-file-thumb-wrap {
	display: block;
	margin-bottom: 0.5rem;
	border-radius: 8px;
	overflow: hidden;
	background: #f1f5f9;
	aspect-ratio: 16 / 10;
}

.cs-file-thumb {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.cs-file-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 8px;
	background: #fee2e2;
	color: #b91c1c;
	font-size: 0.7rem;
	font-weight: 700;
	margin-bottom: 0.45rem;
}

.cs-files-drop-host.is-dragover {
	outline: 2px dashed #7366ff;
	outline-offset: 4px;
	border-radius: 12px;
}

.cs-files-dropzone {
	border: 1px dashed var(--cs-pm-line, #e8edf3);
	border-radius: 12px;
	padding: 1.75rem 1rem;
	text-align: center;
	background: #f8fafc;
}

.cs-member-card {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0.5rem;
	padding: 0.85rem 1rem;
	border: 1px solid var(--cs-pm-line, #e8edf3);
	border-radius: 12px;
	background: #fff;
}

.cs-member-card .cs-member-avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
	background: #eef2ff;
}

.cs-member-avatar-fallback {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: 600;
	font-size: 0.9rem;
	color: #7366ff;
	background: #eef2ff;
}

.cs-ov-block.cs-note-card {
	border: 1px solid var(--cs-pm-line, #e8edf3);
	border-radius: 12px;
	padding: 0.85rem 1rem;
	margin-bottom: 0.75rem;
	background: #fff;
}

.cs-ov-block.cs-note-card.is-pinned {
	border-color: #f59e0b;
}

.cs-pd-pulse-value.is-green,
.cs-pd-pulse-value.is-healthy { color: #16a34a; }
.cs-pd-pulse-value.is-yellow,
.cs-pd-pulse-value.is-at_risk { color: #d97706; }
.cs-pd-pulse-value.is-red,
.cs-pd-pulse-value.is-critical { color: #dc2626; }

.cs-member-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 0.75rem;
}

body.dark-only .cs-project-card,
body.dark-only .cs-pm-feed-item,
body.dark-only .cs-file-item,
body.dark-only .cs-member-card,
body.dark-only .cs-pd-pulse {
	background: #1c1f2a;
	border-color: #3a3f55;
}

body.dark-only .cs-pd-pulse {
	background: #161822;
}

body.dark-only .cs-project-stat-chip {
	background: #252836;
	border-color: #3a3f55;
	color: #94a3b8;
}

body.dark-only .cs-pd-nav-item:hover {
	background: #252836;
}

body.dark-only .cs-pd-nav-item.active {
	background: rgba(115, 102, 255, 0.2);
}

.cs-pm-table {
	margin-bottom: 0;
}

.cs-pd-chrome {
	position: sticky;
	top: 0;
	z-index: 20;
	background: var(--cs-pm-surface, #fff);
	border: 1px solid var(--cs-pm-line, #e8edf3);
	border-radius: 12px;
	margin-bottom: 1rem;
	overflow: visible;
}

.cs-pd-chrome-accent {
	height: 4px;
	width: 100%;
	border-radius: 12px 12px 0 0;
}

.cs-pd-chrome-row {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	align-items: center;
	justify-content: space-between;
	padding: 0.85rem 1.1rem 1rem;
}

.cs-pd-back {
	display: inline-block;
	font-size: 0.75rem;
	color: var(--cs-pm-muted, #64748b);
	text-decoration: none;
	margin-bottom: 0.15rem;
}

.cs-pd-crumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem;
	font-size: 0.75rem;
	color: var(--cs-pm-muted, #64748b);
	margin-bottom: 0.15rem;
}

.cs-pd-crumb a {
	color: inherit;
	text-decoration: none;
}

.cs-pd-crumb a:hover {
	color: inherit;
	text-decoration: underline;
}

.cs-pd-chrome-identity {
	position: relative;
	min-width: 0;
}

.cs-pd-switcher-wrap {
	position: relative;
}

.cs-pd-title-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	max-width: 100%;
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	text-align: start;
}

.cs-pd-title-btn:hover .cs-pd-title,
.cs-pd-title-btn:focus-visible .cs-pd-title {
	text-decoration: underline;
}

.cs-pd-switcher-caret {
	font-size: 0.7rem;
	color: var(--cs-pm-muted, #64748b);
}

.cs-pd-switcher {
	position: absolute;
	inset-inline-start: 0;
	top: calc(100% + 0.4rem);
	z-index: 40;
	width: min(22rem, 80vw);
	padding: 0.7rem;
	background: #fff;
	border: 1px solid var(--cs-pm-line, #e8edf3);
	border-radius: 10px;
	box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
}

.cs-pd-switcher-heading {
	font-size: 0.7rem;
	color: var(--cs-pm-muted, #64748b);
	margin: 0.55rem 0 0.25rem;
}

.cs-pd-switcher-item {
	display: block;
	padding: 0.35rem 0.2rem;
	color: inherit;
	text-decoration: none;
	border-radius: 6px;
}

.cs-pd-switcher-item:hover {
	background: #f8fafc;
}

.cs-pd-nextbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.45rem;
	padding: 0.45rem 1.1rem 0.75rem;
	border-top: 1px solid var(--cs-pm-line, #e8edf3);
}

.cs-pd-nextbar[hidden],
.cs-task-filter-context[hidden],
.cs-pd-health-pop[hidden] {
	display: none !important;
}

.cs-pd-nextbar-label,
.cs-pd-nextbar-calm {
	font-size: 0.78rem;
	color: var(--cs-pm-muted, #64748b);
}

.cs-pd-nextchip {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	border: 1px solid var(--cs-pm-line, #e8edf3);
	background: #fff;
	border-radius: 999px;
	padding: 0.15rem 0.65rem;
	font-size: 0.75rem;
	color: inherit;
}

.cs-pd-nextchip.is-active,
.cs-pd-nextchip:hover {
	border-color: #cbd5e1;
	background: #f8fafc;
}

.cs-health-btn {
	border: 0;
	background: transparent;
	padding: 0;
	cursor: pointer;
	font: inherit;
}

.cs-pd-health-pop {
	position: absolute;
	inset-inline-start: 0;
	top: 100%;
	z-index: 41;
	width: min(20rem, 85vw);
	margin-top: 0.4rem;
	padding: 0.75rem 0.85rem;
	background: #fff;
	border: 1px solid var(--cs-pm-line, #e8edf3);
	border-radius: 10px;
	box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
}

.cs-pd-health-pop-title {
	font-weight: 650;
	margin-bottom: 0.4rem;
}

.cs-pd-health-reasons {
	list-style: none;
	padding: 0;
	margin: 0;
	font-size: 0.8rem;
}

.cs-pd-health-reasons li {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	align-items: baseline;
	margin-bottom: 0.3rem;
}

.cs-task-filter-context {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	margin: -0.35rem 0 0.85rem;
	font-size: 0.8rem;
	color: var(--cs-pm-muted, #64748b);
}

.cs-pd-dock {
	position: fixed;
	inset-inline: 0;
	bottom: 0;
	z-index: 25;
	display: flex;
	background: var(--cs-pm-surface, #fff);
	border-top: 1px solid var(--cs-pm-line, #e8edf3);
	padding: 0.35rem 0.5rem calc(0.35rem + env(safe-area-inset-bottom));
}

.cs-pd-dock-item {
	flex: 1;
	border: 0;
	background: transparent;
	padding: 0.55rem 0.4rem;
	font-size: 0.8rem;
	color: var(--cs-pm-muted, #64748b);
}

.cs-pd-dock-item.is-active {
	color: inherit;
	font-weight: 650;
}

.cs-pd-dock .dropup {
	flex: 1;
	display: flex;
}

.cs-pd-dock .dropup .cs-pd-dock-item {
	width: 100%;
}

.cs-dash-kpis-compact .cs-ov-kpi {
	padding: 0.55rem 0.75rem;
}

.cs-dash-kpis-compact strong {
	font-size: 1.05rem;
}

.cs-dash-sub {
	padding-top: 0.75rem;
	border-top: 1px dashed var(--cs-pm-line, #e8edf3);
}

.cs-pd-title {
	font-size: 1.25rem;
	font-weight: 700;
}

.cs-pd-meta {
	font-size: 0.8rem;
	color: var(--cs-pm-muted, #64748b);
}

.cs-pd-status-pill {
	display: inline-flex;
	align-items: center;
	border-radius: 999px;
	background: #f1f5f9;
	padding: 0.1rem 0.55rem;
	font-size: 0.72rem;
}

.cs-pd-chrome-stats {
	display: flex;
	align-items: center;
	gap: 1rem;
	min-width: 12rem;
}

.cs-pd-progress-compact {
	min-width: 8rem;
	font-size: 0.75rem;
}

.cs-pd-progress-compact .progress {
	height: 6px;
	margin-top: 0.25rem;
}

.cs-pd-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	align-items: center;
}

.cs-pd-shell {
	display: grid;
	grid-template-columns: 13.5rem minmax(0, 1fr);
	gap: 1rem;
	align-items: start;
}

.cs-pd-nav {
	position: sticky;
	top: 5.5rem;
}

.cs-pd-nav-groups {
	flex-direction: column;
	gap: 0.15rem;
}

.cs-kanban-column.is-wip-over {
	border-color: #f59e0b;
	box-shadow: inset 0 0 0 1px #f59e0b;
}

.cs-kanban-column.is-wip-over .cs-kanban-column-title {
	color: #b45309;
}

.cs-action-queue-item + .cs-action-queue-item {
	border-top: 1px solid var(--cs-pm-line, #e8edf3);
	padding-top: 0.5rem;
	margin-top: 0.5rem;
}

.cs-action-queue-link {
	display: block;
	text-decoration: none;
	color: inherit;
}

.cs-action-queue-type {
	font-size: 0.75rem;
	color: var(--cs-pm-muted, #64748b);
	margin-inline-end: 0.35rem;
}

.cs-action-queue-meta {
	display: block;
}

.cs-cycles-panel {
	border: 1px solid var(--cs-pm-line, #e8edf3);
	border-radius: 10px;
	padding: 0.85rem 1rem;
	background: #fff;
}

.cs-cycles-item {
	padding: 0.35rem 0;
	border-bottom: 1px solid var(--cs-pm-line, #e8edf3);
}

.cs-cycles-item:last-child {
	border-bottom: 0;
}

.cs-priority-badge {
	font-size: 0.65rem;
	vertical-align: middle;
	margin-inline-start: 0.35rem;
}

.cs-settings-section {
	scroll-margin-top: 5.5rem;
}

.cs-pd-nav-group {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
}

.cs-pd-nav-label {
	font-size: 0.7rem;
	letter-spacing: 0.04em;
	color: var(--cs-pm-muted, #64748b);
	padding: 0 0.55rem 0.2rem;
}

.cs-pd-nav-item {
	text-align: start;
	border: 0;
	background: transparent;
	border-radius: 8px;
	padding: 0.4rem 0.65rem;
	color: inherit;
	font-size: 0.875rem;
}

.cs-pd-nav-item:hover {
	background: #f8fafc;
}

.cs-pd-nav-item.active {
	background: #111827;
	color: #fff;
}

.cs-pd-surface {
	min-height: 24rem;
}

.cs-ov-kpis {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0.75rem;
	margin-bottom: 1rem;
}

.cs-ov-kpi,
.cs-ov-block,
.cs-member-card,
.cs-file-item,
.cs-dash-block {
	border: 1px solid var(--cs-pm-line, #e8edf3);
	border-radius: 10px;
	padding: 0.85rem 1rem;
	background: #fff;
}

.cs-ov-note {
	border-inline-start: 3px solid #f59e0b;
}

.cs-settings-section {
	padding: 1.25rem 0;
	border-bottom: 1px solid var(--cs-pm-line, #e8edf3);
}

.cs-settings-section h6 {
	margin-bottom: 0.85rem;
}

.cs-settings-toc {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 0.85rem;
	margin-bottom: 0.5rem;
}

.cs-settings-toc a {
	font-size: 0.8rem;
	color: var(--cs-pm-muted, #64748b);
	text-decoration: none;
}

.cs-settings-save {
	position: sticky;
	bottom: 0;
	padding-top: 1rem;
	background: linear-gradient(transparent, #fff 30%);
}

.cs-settings-danger {
	border-bottom: 0;
}

.cs-wizard-steps {
	display: flex;
	gap: 0.75rem;
	font-size: 0.85rem;
}

.cs-wizard-step {
	color: var(--cs-pm-muted, #64748b);
}

.cs-wizard-step.is-active {
	color: inherit;
	font-weight: 650;
}

.cs-task-surface {
	display: grid;
	grid-template-columns: minmax(0, 1.7fr) minmax(16rem, 0.9fr);
	gap: 1.25rem;
	align-items: start;
}

.cs-task-title-input {
	width: 100%;
	border: 0;
	border-bottom: 1px solid transparent;
	font-size: 1.25rem;
	font-weight: 700;
	padding: 0.15rem 0 0.45rem;
	background: transparent;
	color: inherit;
}

.cs-task-title-input:focus {
	outline: none;
	border-bottom-color: #cbd5e1;
}

.cs-task-desc {
	border: 0;
	background: #f8fafc;
}

.cs-task-block {
	margin-bottom: 1.25rem;
}

.cs-task-block-label,
.cs-prop-label {
	font-size: 0.72rem;
	font-weight: 650;
	color: var(--cs-pm-muted, #64748b);
	margin-bottom: 0.35rem;
}

.cs-task-comments {
	max-height: min(40vh, 280px);
	overflow: auto;
	border: 1px solid var(--cs-pm-line, #e8edf3);
	border-radius: 8px;
	padding: 0.65rem;
}

.cs-task-props {
	border: 1px solid var(--cs-pm-line, #e8edf3);
	border-radius: 10px;
	padding: 0.35rem 0.75rem 0.75rem;
}

.cs-prop-row {
	display: grid;
	grid-template-columns: 5.5rem minmax(0, 1fr);
	gap: 0.5rem;
	align-items: start;
	padding: 0.4rem 0;
	border-bottom: 1px solid #f1f5f9;
}

.cs-prop-row .cs-prop-label {
	margin: 0.2rem 0 0;
	font-size: 0.68rem;
}

.cs-task-extras details > summary {
	cursor: pointer;
	list-style: none;
}

.cs-task-extras details > summary::-webkit-details-marker {
	display: none;
}

.cs-dash-card-link {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	padding: 0.65rem 0.75rem;
	margin-bottom: 0.5rem;
	border: 1px solid var(--cs-pm-line, #e8edf3);
	border-radius: 10px;
	text-decoration: none;
	color: inherit;
	background: #fff;
}

.cs-dash-card-link:hover {
	border-color: #7366ff;
	color: inherit;
}

.cs-times-user-strip {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.cs-times-user-chip {
	min-width: 140px;
	flex: 1 1 140px;
	padding: 0.55rem 0.7rem;
	border: 1px solid var(--cs-pm-line, #e8edf3);
	border-radius: 10px;
	background: #fff;
}

body.dark-only .cs-dash-card-link,
body.dark-only .cs-times-user-chip {
	background: #1c1f2a;
	border-color: #2d3344;
}

.cs-task-acc {
	border-bottom: 1px solid #f1f5f9;
	padding: 0.45rem 0;
}

.cs-task-acc summary {
	cursor: pointer;
	font-size: 0.8rem;
	font-weight: 650;
	color: var(--cs-pm-muted, #64748b);
}

.cs-task-acc-body {
	padding-top: 0.65rem;
}

.cs-task-drawer {
	margin: 0;
	max-width: min(720px, 100%);
	min-height: 100%;
}

.cs-task-drawer .modal-content {
	min-height: 100vh;
	border-radius: 0;
	border: 0;
}

.modal.cs-task-modal .modal-dialog.cs-task-drawer {
	margin-inline-start: auto;
	margin-inline-end: 0;
}

.cs-task-modal.is-create .cs-task-comments,
.cs-task-modal.is-create #cs-task-comment-compose,
.cs-task-modal.is-create #cs-task-subtasks-wrap,
.cs-task-modal.is-create .cs-task-acc {
	display: none;
}

.cs-dash-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.7fr) minmax(16rem, 0.9fr);
	gap: 1rem;
}

.cs-dash-kpis {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0.75rem;
	margin-bottom: 1rem;
}

@media (max-width: 991.98px) {
	.cs-pd-shell {
		grid-template-columns: 1fr;
	}

	.cs-pd-nav-groups {
		/* Keep Bootstrap d-none d-lg-flex; mobile uses #cs-pd-nav-select */
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	#cs-pd-nav-select {
		display: block;
		width: 100%;
		margin-bottom: 0.75rem;
	}

	.cs-pd-nav,
	.cs-pd-chrome {
		position: static;
	}

	.cs-task-surface,
	.cs-dash-grid,
	.cs-ov-kpis,
	.cs-dash-kpis {
		grid-template-columns: 1fr;
	}

	.cs-prop-row {
		grid-template-columns: 1fr;
	}

	.cs-pm-search {
		min-width: 0;
		width: 100%;
	}

	#cs-project-detail {
		padding-bottom: 4.5rem;
	}
}

body.dark-only .cs-pm-list-shell,
body.dark-only .cs-pd-surface,
body.dark-only .cs-pm-panel,
body.dark-only .cs-pd-chrome,
body.dark-only .cs-project-card,
body.dark-only .cs-ov-kpi,
body.dark-only .cs-ov-block,
body.dark-only .cs-member-card,
body.dark-only .cs-file-item,
body.dark-only .cs-dash-block,
body.dark-only .cs-task-props,
body.dark-only .cs-pd-switcher,
body.dark-only .cs-pd-health-pop,
body.dark-only .cs-pd-dock {
	background: #1c1f2a;
	border-color: #3a3f55;
}

body.dark-only .cs-status-pill {
	background: #232736;
	border-color: #3a3f55;
	color: #e2e8f0;
}

body.dark-only .cs-status-pill.active {
	background: #e2e8f0;
	border-color: #e2e8f0;
	color: #111827;
}

body.dark-only .cs-pd-nav-item:hover {
	background: #232736;
}

body.dark-only .cs-pd-nav-item.active {
	background: #e2e8f0;
	color: #111827;
}

body.dark-only .cs-pd-switcher-item:hover,
body.dark-only .cs-pd-nextchip:hover,
body.dark-only .cs-pd-nextchip.is-active {
	background: #232736;
}

body.dark-only .cs-task-desc,
body.dark-only .cs-task-title-input {
	background: transparent;
	color: inherit;
}

body.dark-only .cs-settings-save {
	background: linear-gradient(transparent, #1c1f2a 30%);
}

/* Dashboard: unified hero + KPI grid (no leftover empty cells) */
.cs-dash-layout {
	display: grid;
	gap: 1rem;
	align-items: stretch;
	margin-bottom: 1rem;
}

.cs-dash-kpis {
	display: grid;
	gap: 1rem;
	grid-template-columns: 1fr;
	align-items: stretch;
	min-width: 0;
}

.cs-dash-hero,
.cs-dash-kpi {
	min-width: 0;
}

.cs-dash-hero .card,
.cs-dash-kpi .card {
	height: 100%;
	margin-bottom: 0;
}

.cs-dash-hero .profile-box {
	min-height: 0;
	height: 100%;
	position: relative;
	overflow: hidden;
}

.cs-dash-hero .profile-box .card-body {
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 1.25rem 1.35rem;
	position: relative;
	z-index: 1;
}

.cs-dash-hero .profile-box .cartoon {
	bottom: -8px;
	opacity: 0.92;
	pointer-events: none;
	z-index: 0;
}

.cs-dash-hero .profile-box .cartoon img {
	max-height: 140px;
	width: auto;
}

.cs-dash-hero .profile-box .greeting-user p {
	width: auto;
	max-width: 18rem;
	margin-bottom: 0.75rem;
}

.cs-dash-hero .profile-box .whatsnew-btn {
	margin-top: 0.85rem;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
}

.cs-greeting-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	margin: 0.15rem 0 0.25rem;
}

.cs-greeting-chip {
	display: inline-flex;
	align-items: baseline;
	gap: 0.35rem;
	padding: 0.35rem 0.65rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.18);
	border: 1px solid rgba(255, 255, 255, 0.28);
	backdrop-filter: blur(4px);
	font-size: 0.75rem;
	line-height: 1.3;
	color: #fff;
}

.cs-greeting-chip__label {
	opacity: 0.9;
}

.cs-greeting-chip__value {
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.cs-greeting-clock {
	flex-shrink: 0;
	position: relative;
	z-index: 2;
}

.cs-dash-kpi .widget-1 {
	margin-bottom: 0;
	transform: none;
}

.cs-dash-kpi .widget-1:hover {
	transform: translateY(-3px);
}

.cs-dash-layout .widget-1 .card-body {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	height: 100%;
	padding: 1rem 1.15rem;
}

.cs-dash-layout .widget-1 .f-w-500 {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.15rem;
	margin-top: 0.25rem;
	font-size: 0.75rem;
	line-height: 1.35;
}

.widget-1 .widget-content {
	min-width: 0;
	width: 100%;
	align-items: center;
}

.widget-1 .widget-round {
	flex-shrink: 0;
}

.widget-1 .cs-kpi-copy {
	min-width: 0;
	flex: 1;
}

.widget-1 .cs-kpi-copy h4 {
	font-variant-numeric: tabular-nums;
	font-size: clamp(0.95rem, 1.1vw, 1.25rem);
	overflow-wrap: anywhere;
	word-break: break-word;
	max-width: 100%;
}

.widget-1 .cs-kpi-copy > span.f-light {
	display: block;
	white-space: normal;
}

.widget-1 .cs-kpi-footnote {
	line-height: 1.35;
}

@media (min-width: 576px) {
	.cs-dash-kpis {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.cs-dash-kpis .cs-dash-kpi:last-child:nth-child(odd) {
		grid-column: 1 / -1;
	}
}

@media (min-width: 1200px) {
	.cs-dash-layout--with-kpis {
		grid-template-columns: minmax(280px, 1.1fr) minmax(0, 2.15fr);
		align-items: stretch;
	}

	.cs-dash-layout--with-kpis > .cs-dash-hero,
	.cs-dash-layout--with-kpis > .cs-dash-kpis {
		height: 100%;
		min-height: 100%;
	}

	.cs-dash-kpis {
		grid-template-columns: repeat(6, minmax(0, 1fr));
		grid-auto-rows: 1fr;
	}

	.cs-dash-kpi {
		grid-column: span 2;
	}

	.cs-dash-kpis .cs-dash-kpi:last-child:nth-child(odd) {
		grid-column: span 2;
	}

	/* Fill incomplete last row so no blank cells */
	.cs-dash-kpis[data-mod="1"] .cs-dash-kpi:last-child {
		grid-column: span 6;
	}

	.cs-dash-kpis[data-mod="2"] .cs-dash-kpi:nth-last-child(-n + 2) {
		grid-column: span 3;
	}
}

/* Panel widgets: CSS Grid instead of ragged Bootstrap columns */
.row.widget-grid {
	display: grid;
	gap: 1rem;
	grid-template-columns: 1fr;
	--bs-gutter-x: 0;
	--bs-gutter-y: 0;
	margin-left: 0;
	margin-right: 0;
	margin-top: 0;
}

.row.widget-grid > [class*="col-"] {
	width: auto;
	max-width: none;
	flex: none;
	padding-left: 0;
	padding-right: 0;
	margin-top: 0;
	min-width: 0;
}

.row.widget-grid > [class*="col-"] > .card {
	height: 100%;
	margin-bottom: 0;
}

@media (min-width: 768px) {
	.row.widget-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.row.widget-grid > .col-12,
	.row.widget-grid > .col-sm-12,
	.row.widget-grid > .col-xl-12,
	.row.widget-grid > .col-xxl-12,
	.row.widget-grid > .col-lg-12 {
		grid-column: 1 / -1;
	}
}

@media (min-width: 1400px) {
	.row.widget-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.row.widget-grid > .col-xxl-8,
	.row.widget-grid > .col-xl-8 {
		grid-column: span 2;
	}

	.row.widget-grid > .col-xxl-4,
	.row.widget-grid > .col-xl-4,
	.row.widget-grid > .col-xl-5,
	.row.widget-grid > .col-xl-6,
	.row.widget-grid > .col-xl-7,
	.row.widget-grid > .col-md-6 {
		grid-column: span 1;
	}

	.row.widget-grid > .col-12,
	.row.widget-grid > .col-sm-12,
	.row.widget-grid > .col-xl-12,
	.row.widget-grid > .col-xxl-12,
	.row.widget-grid > .col-lg-12 {
		grid-column: 1 / -1;
	}
}

.cs-activity-timeline {
	max-height: 360px;
	overflow: auto;
}

/* Nested finance groups */
.sidebar-wrapper .sidebar-submenu .submenu-title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.45rem 1.25rem;
	padding-inline-start: 1.5rem;
	font-size: 0.8rem;
	font-weight: 600;
	color: #64748b;
}

.sidebar-wrapper .sidebar-submenu .submenu-content {
	display: none;
	list-style: none;
	padding: 0;
	margin: 0;
}

.sidebar-wrapper .sidebar-submenu .submenu-content.is-open {
	display: block;
}

.sidebar-wrapper .sidebar-submenu .submenu-content > li > a {
	padding-inline-start: 2.25rem !important;
}

/* Minimal sidebar scrollbar (override CUBA SimpleBar) */
.sidebar-wrapper .left-arrow,
.sidebar-wrapper .right-arrow {
	display: none !important;
}

.sidebar-wrapper .simplebar-mask {
	top: 0 !important;
}

.sidebar-wrapper .simplebar-track.simplebar-vertical {
	top: 10px !important;
	bottom: 10px;
	width: 4px !important;
	background: transparent !important;
	right: auto !important;
	left: 3px !important;
}

html[dir="rtl"] .sidebar-wrapper .simplebar-track.simplebar-vertical {
	left: 3px !important;
	right: auto !important;
}

.sidebar-wrapper .simplebar-track.simplebar-horizontal {
	display: none !important;
	visibility: hidden !important;
}

.sidebar-wrapper .simplebar-scrollbar:before {
	background: rgba(100, 116, 139, 0.35) !important;
	border-radius: 999px;
	left: 0;
	right: 0;
	width: auto;
	opacity: 0;
	transition: opacity 0.2s ease;
}

.sidebar-wrapper .simplebar-scrollbar.simplebar-visible:before {
	opacity: 0.45;
}

.sidebar-wrapper:hover .simplebar-scrollbar:before {
	opacity: 0.35;
}

body.dark-only .sidebar-wrapper .simplebar-scrollbar:before {
	background: rgba(226, 232, 240, 0.28) !important;
}

body.dark-only .cs-cycles-panel,
body.dark-only .cs-action-queue-link {
	color: #e2e8f0;
}

@media (max-width: 991.98px) {
	.cs-pd-chrome-row {
		flex-direction: column;
		align-items: stretch;
	}

	.cs-pd-actions {
		justify-content: flex-start;
		flex-wrap: wrap;
	}

	.cs-kanban-board {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	.cs-kanban-column {
		min-width: 220px;
	}
}

/* Sidebar submenu indent: neutralize Cuba physical padding, use logical steps. */
html[dir="rtl"] .page-wrapper.compact-wrapper .page-body-wrapper .sidebar-wrapper .sidebar-main .sidebar-links .simplebar-wrapper .simplebar-mask .simplebar-content-wrapper .simplebar-content > li .sidebar-submenu > li a,
html[dir="rtl"] .page-wrapper.compact-wrapper .page-body-wrapper div.sidebar-wrapper .sidebar-main .sidebar-links .simplebar-wrapper .simplebar-mask .simplebar-content-wrapper .simplebar-content > li .sidebar-submenu > li a,
.page-wrapper.compact-wrapper .page-body-wrapper div.sidebar-wrapper .sidebar-main .sidebar-links .simplebar-wrapper .simplebar-mask .simplebar-content-wrapper .simplebar-content > li .sidebar-submenu > li a {
	padding-left: 14px !important;
	padding-right: 14px !important;
	padding-inline-start: 1.5rem !important;
	padding-inline-end: 14px !important;
}

html[dir="rtl"] .page-wrapper.compact-wrapper .page-body-wrapper .sidebar-wrapper .sidebar-main .sidebar-links .simplebar-wrapper .simplebar-mask .simplebar-content-wrapper .simplebar-content > li .sidebar-submenu > li a:after {
	right: auto;
	left: auto;
	inset-inline-start: 8px;
}

.page-wrapper.compact-wrapper .page-body-wrapper div.sidebar-wrapper .sidebar-main .sidebar-links .sidebar-submenu .submenu-content > li > a {
	padding-inline-start: 2.25rem !important;
}

.page-wrapper.compact-wrapper .page-body-wrapper div.sidebar-wrapper .sidebar-main .sidebar-links .sidebar-submenu .cs-sidebar-heading {
	padding-inline-start: 1.5rem;
	padding-inline-end: 14px;
}

html[dir="rtl"] .sidebar-wrapper .simplebar-track.simplebar-vertical {
	left: auto !important;
	right: 3px !important;
}

