:root {
	--crm-primary: #2563eb;
	--crm-primary-dark: #1d4ed8;
	--crm-primary-soft: #eaf1ff;
	--crm-sidebar: #0b1b33;
	--crm-sidebar-deep: #071426;
	--crm-background: #f5f7fb;
	--crm-surface: #ffffff;
	--crm-text: #172033;
	--crm-text-muted: #64748b;
	--crm-border: #e5eaf2;
	--crm-success: #22c55e;
	--crm-success-soft: #e8f8ef;
	--crm-warning: #f59e0b;
	--crm-warning-soft: #fff4e5;
	--crm-danger: #ef4444;
	--crm-danger-soft: #feeeee;
	--crm-purple: #8b5cf6;
	--crm-purple-soft: #f1eafe;
	--crm-radius: 12px;
	--crm-radius-sm: 9px;
	--crm-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
	--crm-shadow-hover: 0 12px 30px rgba(15, 23, 42, 0.1);
	--crm-sidebar-width: 248px;
	--crm-sidebar-collapsed-width: 82px;
	--crm-topbar-height: 72px;
	--crm-transition: 180ms ease;
}

body.crm-themed {
	min-height: 100vh;
	margin: 0;
	background: var(--crm-background);
	color: var(--crm-text);
	font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 14px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

body.crm-themed:not(.crm-auth-page) {
	padding-left: 0;
}

body.crm-themed *,
body.crm-themed *::before,
body.crm-themed *::after {
	box-sizing: border-box;
}

body.crm-themed a {
	color: var(--crm-primary);
	transition: color var(--crm-transition), background-color var(--crm-transition), border-color var(--crm-transition), box-shadow var(--crm-transition), transform var(--crm-transition);
}

body.crm-themed a:hover,
body.crm-themed a:focus {
	color: var(--crm-primary-dark);
}

body.crm-themed a:focus-visible,
body.crm-themed button:focus-visible,
body.crm-themed input:focus-visible,
body.crm-themed select:focus-visible,
body.crm-themed textarea:focus-visible,
body.crm-themed [tabindex]:focus-visible {
	outline: 3px solid rgba(37, 99, 235, 0.28) !important;
	outline-offset: 2px;
}

.crm-icon {
	display: inline-block;
	width: 20px;
	height: 20px;
	vertical-align: middle;
	flex: 0 0 auto;
}

.crm-skip-link {
	position: fixed;
	top: 10px;
	left: 50%;
	z-index: 1200;
	padding: 10px 16px;
	border-radius: var(--crm-radius-sm);
	background: var(--crm-surface);
	box-shadow: var(--crm-shadow-hover);
	transform: translate(-50%, -150%);
}

.crm-skip-link:focus {
	transform: translate(-50%, 0);
}

body.crm-themed > .users-area.container,
body.crm-themed .users-area.container {
	width: 100% !important;
	max-width: none;
	min-height: 100vh;
	margin: 0;
	padding: 0;
}

body.crm-themed .users-area > .navbar,
body.crm-themed .users-area > .top-margin-adjuster {
	display: block;
}

body.crm-themed .users-area > .alert,
body.crm-themed .users-area > .notification-placeholder,
body.crm-themed .users-area > .window-message {
	position: relative;
	z-index: 2;
}

.crm-sidebar {
	position: fixed;
	inset: 0 auto 0 0;
	z-index: 1045;
	display: flex;
	width: var(--crm-sidebar-width);
	min-height: 100vh;
	flex-direction: column;
	color: #e7eefb;
	background:
		radial-gradient(circle at 15% 10%, rgba(37, 99, 235, 0.14), transparent 28%),
		linear-gradient(180deg, var(--crm-sidebar) 0%, var(--crm-sidebar-deep) 100%);
	box-shadow: 8px 0 30px rgba(7, 20, 38, 0.08);
	transition: width var(--crm-transition), transform var(--crm-transition);
}

.crm-sidebar-brand {
	display: flex;
	min-height: 88px;
	align-items: center;
	padding: 17px 18px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.crm-sidebar-brand a {
	display: flex;
	width: 100%;
	align-items: center;
	justify-content: center;
	color: #fff;
	text-decoration: none;
}

.crm-sidebar-brand img {
	display: block;
	width: 188px;
	height: 42px;
	max-width: 100%;
	object-fit: contain;
}

.crm-sidebar-brand-subtitle {
	display: none;
}

.crm-sidebar-nav {
	flex: 1 1 auto;
	min-height: 0;
	padding: 20px 14px;
	overflow-x: hidden;
	overflow-y: auto;
	scrollbar-width: thin;
	scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
}

.crm-nav-item {
	display: flex;
	min-height: 44px;
	align-items: center;
	gap: 13px;
	margin: 3px 0;
	padding: 10px 12px;
	border: 1px solid transparent;
	border-radius: 8px;
	color: #e3eafa !important;
	font-size: 14px;
	font-weight: 550;
	text-decoration: none !important;
	white-space: nowrap;
}

.crm-nav-item:hover,
.crm-nav-item:focus {
	color: #fff !important;
	background: rgba(255, 255, 255, 0.075);
}

.crm-nav-item.is-active {
	color: #fff !important;
	background: linear-gradient(135deg, #2f75ef, #2563d8);
	box-shadow: 0 8px 18px rgba(37, 99, 235, 0.28);
}

.crm-nav-icon {
	display: grid;
	width: 22px;
	height: 22px;
	place-items: center;
	flex: 0 0 22px;
}

.crm-nav-icon .crm-icon {
	width: 20px;
	height: 20px;
}

.crm-nav-label {
	overflow: hidden;
	text-overflow: ellipsis;
}

.crm-sidebar-footer {
	padding: 16px 16px 18px;
	border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.crm-sidebar-user {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px;
	border-radius: var(--crm-radius-sm);
	color: #fff !important;
	text-decoration: none !important;
}

.crm-sidebar-user:hover {
	background: rgba(255, 255, 255, 0.07);
}

.crm-sidebar-user-copy {
	display: flex;
	min-width: 0;
	flex-direction: column;
}

.crm-sidebar-user-copy strong,
.crm-sidebar-user-copy small {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.crm-sidebar-user-copy strong {
	font-size: 13px;
}

.crm-sidebar-user-copy small,
.crm-version {
	color: #9eabc0;
	font-size: 11px;
}

.crm-version {
	padding: 4px 9px 0;
}

.crm-avatar {
	display: inline-grid;
	width: 38px;
	height: 38px;
	place-items: center;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 50%;
	color: #fff;
	background: #34445f;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.02em;
}

.crm-avatar--small {
	width: 34px;
	height: 34px;
	background: rgba(255, 255, 255, 0.08);
}

.crm-topbar {
	position: fixed;
	inset: 0 0 auto var(--crm-sidebar-width);
	z-index: 1035;
	display: flex;
	height: var(--crm-topbar-height);
	align-items: center;
	justify-content: space-between;
	padding: 0 22px;
	border-bottom: 1px solid var(--crm-border);
	background: rgba(255, 255, 255, 0.95);
	box-shadow: 0 4px 16px rgba(15, 23, 42, 0.025);
	backdrop-filter: blur(14px);
	transition: left var(--crm-transition);
}

.crm-topbar-left,
.crm-topbar-actions {
	display: flex;
	align-items: center;
}

.crm-topbar-actions {
	gap: 10px;
}

.crm-icon-button {
	position: relative;
	display: inline-grid;
	width: 42px;
	height: 42px;
	padding: 0;
	place-items: center;
	border: 1px solid transparent;
	border-radius: 10px;
	color: #40516b;
	background: transparent;
}

.crm-icon-button:hover,
.crm-icon-button:focus {
	color: var(--crm-primary);
	border-color: var(--crm-border);
	background: var(--crm-primary-soft);
}

.crm-global-search {
	position: relative;
	display: flex;
	width: min(340px, 30vw);
	height: 42px;
	align-items: center;
}

.crm-global-search .crm-search-icon {
	position: absolute;
	left: 14px;
	z-index: 1;
	display: grid;
	place-items: center;
	color: #52627a;
	pointer-events: none;
}

.crm-global-search .crm-icon {
	width: 18px;
	height: 18px;
}

.crm-global-search input {
	width: 100%;
	height: 42px;
	padding: 0 14px 0 42px;
	border: 1px solid var(--crm-border);
	border-radius: 12px;
	color: var(--crm-text);
	background: #f8fafc;
	box-shadow: none;
}

.crm-global-search input:focus {
	border-color: rgba(37, 99, 235, 0.55);
	background: var(--crm-surface);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.crm-notification-badge {
	position: absolute;
	top: 3px;
	right: 2px;
	display: grid;
	min-width: 18px;
	height: 18px;
	padding: 0 4px;
	place-items: center;
	border: 2px solid #fff;
	border-radius: 10px;
	color: #fff;
	background: var(--crm-danger);
	font-size: 10px;
	font-weight: 700;
}

.crm-quick-action .btn {
	display: inline-flex;
	height: 42px;
	align-items: center;
	gap: 7px;
	padding-inline: 15px;
}

.crm-quick-action .crm-icon {
	width: 17px;
	height: 17px;
}

.crm-user-menu-button {
	display: flex;
	min-height: 46px;
	align-items: center;
	gap: 9px;
	padding: 4px 7px 4px 5px;
	border: 1px solid transparent;
	border-radius: 12px;
	color: var(--crm-text);
	background: transparent;
}

.crm-user-menu-button:hover,
.crm-user-menu.open .crm-user-menu-button {
	border-color: var(--crm-border);
	background: #f8fafc;
}

.crm-user-copy {
	display: flex;
	max-width: 150px;
	flex-direction: column;
	align-items: flex-start;
	line-height: 1.3;
}

.crm-user-copy strong,
.crm-user-copy small {
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.crm-user-copy strong {
	font-size: 12px;
}

.crm-user-copy small {
	color: var(--crm-text-muted);
	font-size: 11px;
}

.crm-user-menu .dropdown-menu,
.crm-quick-action .dropdown-menu {
	margin-top: 8px;
	padding: 7px;
	border: 1px solid var(--crm-border);
	border-radius: 11px;
	box-shadow: var(--crm-shadow-hover);
}

.crm-user-menu .dropdown-menu > li > a,
.crm-quick-action .dropdown-menu > li > a {
	display: flex;
	min-height: 38px;
	align-items: center;
	gap: 9px;
	padding: 8px 10px;
	border-radius: 7px;
	color: var(--crm-text);
}

.crm-user-menu .dropdown-menu > li > a:hover,
.crm-quick-action .dropdown-menu > li > a:hover {
	color: var(--crm-primary-dark);
	background: var(--crm-primary-soft);
}

.crm-user-menu .dropdown-menu .crm-icon {
	width: 17px;
	height: 17px;
}

.crm-sidebar-backdrop {
	position: fixed;
	inset: 0;
	z-index: 1040;
	border: 0;
	background: rgba(7, 20, 38, 0.55);
	backdrop-filter: blur(2px);
}

body.crm-sidebar-collapsed .crm-sidebar {
	width: var(--crm-sidebar-collapsed-width);
}

body.crm-sidebar-collapsed .crm-topbar {
	left: var(--crm-sidebar-collapsed-width);
}

body.crm-sidebar-collapsed .users-area.container {
	margin-left: 0;
}

body.crm-themed.crm-sidebar-collapsed:not(.crm-auth-page) {
	padding-left: var(--crm-sidebar-collapsed-width);
}

body.crm-sidebar-collapsed .crm-nav-label,
body.crm-sidebar-collapsed .crm-sidebar-user-copy,
body.crm-sidebar-collapsed .crm-version,
body.crm-sidebar-collapsed .crm-sidebar-brand img {
	display: none;
}

body.crm-sidebar-collapsed .crm-sidebar-brand a::after {
	content: "LM";
	display: grid;
	width: 42px;
	height: 42px;
	place-items: center;
	border-radius: 11px;
	color: #fff;
	background: linear-gradient(135deg, #14d9ef, #2563eb);
	font-size: 13px;
	font-weight: 800;
}

body.crm-sidebar-collapsed .crm-sidebar-brand,
body.crm-sidebar-collapsed .crm-sidebar-footer {
	padding-inline: 12px;
}

body.crm-sidebar-collapsed .crm-nav-item,
body.crm-sidebar-collapsed .crm-sidebar-user {
	justify-content: center;
	padding-inline: 8px;
}

.crm-page-heading {
	display: flex;
	min-height: 54px;
	align-items: flex-start;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 18px;
}

.crm-heading-line {
	display: flex;
	align-items: baseline;
	gap: 12px;
}

.crm-heading-line h1 {
	margin: 0;
	color: var(--crm-text);
	font-size: clamp(24px, 2.1vw, 30px);
	font-weight: 750;
	letter-spacing: -0.025em;
}

.crm-heading-line > span,
.crm-page-heading p {
	color: var(--crm-text-muted);
}

.crm-heading-line > span {
	font-size: 13px;
}

.crm-page-heading p {
	margin: 3px 0 0;
	font-size: 12px;
}

.crm-panel,
body.crm-themed .panel,
body.crm-themed .well {
	border: 1px solid var(--crm-border);
	border-radius: var(--crm-radius);
	background: var(--crm-surface);
	box-shadow: var(--crm-shadow);
}

body.crm-themed .panel-heading {
	padding: 14px 17px;
	border-bottom: 1px solid var(--crm-border);
	border-radius: var(--crm-radius) var(--crm-radius) 0 0;
	color: var(--crm-text);
	background: #fbfcfe;
}

body.crm-themed .panel-title {
	font-weight: 700;
}

body.crm-themed .panel-body {
	padding: 18px;
}

body.crm-themed .page-header {
	margin: 0 0 18px;
	padding: 0 0 13px;
	border-color: var(--crm-border);
}

body.crm-themed .page-header h1,
body.crm-themed .page-header h2,
body.crm-themed .page-header h3 {
	color: var(--crm-text);
	font-weight: 740;
	letter-spacing: -0.02em;
}

body.crm-themed .btn {
	min-height: 38px;
	padding: 8px 14px;
	border-radius: 8px;
	font-weight: 600;
	box-shadow: none;
	transition: transform var(--crm-transition), box-shadow var(--crm-transition), background-color var(--crm-transition), border-color var(--crm-transition), color var(--crm-transition);
}

body.crm-themed .btn:hover:not(:disabled) {
	transform: translateY(-1px);
}

body.crm-themed .btn-primary {
	border-color: var(--crm-primary);
	background: var(--crm-primary);
}

body.crm-themed .btn-primary:hover,
body.crm-themed .btn-primary:focus {
	border-color: var(--crm-primary-dark);
	background: var(--crm-primary-dark);
	box-shadow: 0 7px 16px rgba(37, 99, 235, 0.2);
}

body.crm-themed .btn-success {
	border-color: #17a94c;
	background: var(--crm-success);
}

body.crm-themed .btn-warning {
	border-color: #df8d06;
	background: var(--crm-warning);
}

body.crm-themed .btn-danger {
	border-color: #dc3434;
	background: var(--crm-danger);
}

body.crm-themed .btn-default {
	border-color: var(--crm-border);
	color: #40516b;
	background: #fff;
}

body.crm-themed .btn-default:hover,
body.crm-themed .btn-default:focus {
	border-color: #cdd6e4;
	color: var(--crm-primary-dark);
	background: #f8fafc;
}

body.crm-themed .form-control,
body.crm-themed .select2-container .select2-choice,
body.crm-themed input[type="text"],
body.crm-themed input[type="email"],
body.crm-themed input[type="password"],
body.crm-themed input[type="search"],
body.crm-themed input[type="number"],
body.crm-themed textarea,
body.crm-themed select {
	min-height: 40px;
	border-color: #dbe2ec;
	border-radius: 8px;
	color: var(--crm-text);
	background-color: #fff;
	box-shadow: none;
}

body.crm-themed textarea.form-control {
	min-height: 110px;
}

body.crm-themed .form-control:focus,
body.crm-themed .select2-container-active .select2-choice,
body.crm-themed .select2-container-active .select2-choices {
	border-color: rgba(37, 99, 235, 0.58);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

body.crm-themed label.control-label,
body.crm-themed .form-group > label {
	color: #344258;
	font-size: 13px;
	font-weight: 650;
}

body.crm-themed .form-group {
	margin-bottom: 17px;
}

body.crm-themed .text-danger {
	color: var(--crm-danger);
}

body.crm-themed .help-block {
	color: var(--crm-text-muted);
	font-size: 12px;
}

body.crm-themed .detail_view .panel,
body.crm-themed .table_view + .detail_view {
	overflow: hidden;
}

body.crm-themed .detail_view .form-horizontal {
	padding-block: 4px;
}

body.crm-themed .table-responsive {
	border: 0;
	border-radius: 10px;
}

body.crm-themed .table {
	margin-bottom: 0;
	color: var(--crm-text);
	background: #fff;
}

body.crm-themed .table > thead > tr > th {
	padding: 12px 11px;
	border-color: var(--crm-border);
	color: #526179;
	background: #f8fafc;
	font-size: 12px;
	font-weight: 700;
	vertical-align: middle;
	white-space: nowrap;
}

body.crm-themed .table > tbody > tr > td {
	padding: 12px 11px;
	border-color: #edf1f6;
	vertical-align: middle;
}

body.crm-themed .table-striped > tbody > tr:nth-of-type(odd) {
	background: #fbfcfe;
}

body.crm-themed .table-hover > tbody > tr:hover {
	background: #f2f6fd;
}

body.crm-themed td.crm-data-cell-badge {
	color: #526179;
	font-weight: 650;
}

body.crm-themed td.crm-data-cell-badge::before {
	content: "";
	display: inline-block;
	width: 6px;
	height: 6px;
	margin-right: 6px;
	border-radius: 50%;
	background: currentColor;
	vertical-align: 1px;
}

body.crm-themed td.crm-data-cell-badge--primary {
	color: var(--crm-primary);
}

body.crm-themed td.crm-data-cell-badge--success {
	color: #159348;
}

body.crm-themed td.crm-data-cell-badge--warning {
	color: #b66d00;
}

body.crm-themed .table-bordered,
body.crm-themed .table-bordered > thead > tr > th,
body.crm-themed .table-bordered > tbody > tr > td {
	border-color: var(--crm-border);
}

body.crm-themed .table_view {
	padding: 0;
	border: 1px solid var(--crm-border);
	border-radius: var(--crm-radius);
	background: #fff;
	box-shadow: var(--crm-shadow);
	overflow: hidden;
}

body.crm-themed .table_view > .table-responsive,
body.crm-themed .table_view form > .table-responsive {
	border-radius: 0;
}

body.crm-themed #top_buttons {
	margin-bottom: 15px;
}

body.crm-themed .pagination-section,
body.crm-themed .record-count-info {
	padding-inline: 12px;
}

body.crm-themed .pagination-section {
	padding-bottom: 15px;
}

body.crm-themed .alert {
	border-radius: 10px;
	box-shadow: none;
}

body.crm-themed .alert-success {
	border-color: #bfe9cf;
	color: #14753a;
	background: var(--crm-success-soft);
}

body.crm-themed .alert-warning {
	border-color: #f6d696;
	color: #925c05;
	background: var(--crm-warning-soft);
}

body.crm-themed .alert-danger {
	border-color: #f7c3c3;
	color: #a82c2c;
	background: var(--crm-danger-soft);
}

.crm-site-footer {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	margin-left: 0;
	padding: 12px 22px;
	color: var(--crm-text-muted);
	font-size: 11px;
	transition: margin-left var(--crm-transition);
}

body.crm-sidebar-collapsed .crm-site-footer {
	margin-left: 0;
}

.crm-search-page {
	max-width: 1040px;
	margin: 0 auto;
}

.crm-search-hero {
	margin-bottom: 18px;
	padding: 20px;
	border: 1px solid var(--crm-border);
	border-radius: var(--crm-radius);
	background: #fff;
	box-shadow: var(--crm-shadow);
}

.crm-search-hero > label {
	display: block;
	margin-bottom: 8px;
	color: #344258;
	font-weight: 700;
}

.crm-search-hero-control {
	position: relative;
	display: flex;
	gap: 10px;
}

.crm-search-hero-control > .crm-icon {
	position: absolute;
	top: 11px;
	left: 13px;
	z-index: 1;
	color: var(--crm-text-muted);
}

.crm-search-hero-control input {
	min-width: 0;
	flex: 1 1 auto;
	padding-left: 42px;
}

.crm-search-results {
	min-height: 220px;
	padding: 8px;
}

.crm-search-result-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 7px;
}

.crm-search-result {
	display: flex;
	min-height: 88px;
	align-items: center;
	gap: 13px;
	padding: 13px;
	border: 1px solid transparent;
	border-radius: 10px;
	color: var(--crm-text) !important;
	text-decoration: none !important;
}

.crm-search-result:hover,
.crm-search-result:focus {
	border-color: var(--crm-border);
	background: #f8fafc;
	transform: translateY(-1px);
}

.crm-search-result-icon {
	display: grid;
	width: 42px;
	height: 42px;
	place-items: center;
	border-radius: 10px;
	color: var(--crm-primary);
	background: var(--crm-primary-soft);
}

.crm-search-result-copy {
	display: flex;
	min-width: 0;
	flex: 1 1 auto;
	flex-direction: column;
}

.crm-search-result-copy small,
.crm-search-result-copy span {
	color: var(--crm-text-muted);
}

.crm-search-result-copy small {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.crm-search-result-copy strong,
.crm-search-result-copy span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.crm-search-result-arrow {
	color: #94a3b8;
}

body.crm-auth-page {
	display: flex;
	min-height: 100vh;
	align-items: center;
	justify-content: center;
	padding: 28px;
	background:
		radial-gradient(circle at 75% 15%, rgba(37, 99, 235, 0.14), transparent 30%),
		var(--crm-background) !important;
}

body.crm-auth-page .users-area > .navbar,
body.crm-auth-page .users-area > .top-margin-adjuster {
	display: none !important;
}

body.crm-auth-page .vertical-nav,
body.crm-auth-page .btn-toggle-vertical-nav {
	display: none !important;
}

body.crm-auth-page .users-area.container-fluid {
	width: min(1120px, 100%);
	min-height: 0;
	margin: 0;
	padding: 0;
}

body.crm-auth-page .users-area > .row {
	margin: 0;
}

body.crm-auth-page .main-content {
	float: none !important;
	width: 100% !important;
	min-height: 0;
	padding: 0;
}

body.crm-auth-page .users-area.container {
	width: min(1120px, 100%);
	min-height: 0;
	margin: 0;
	padding: 0;
}

body.crm-auth-page .users-area > .clearfix + div,
body.crm-auth-page .users-area > div[style*="height: 70px"] {
	display: none !important;
}

body.crm-auth-page #login_splash {
	position: relative;
	display: flex;
	min-height: 520px;
	align-items: flex-end;
	overflow: hidden;
	border-radius: 18px 0 0 18px;
	background:
		radial-gradient(circle at 20% 20%, rgba(29, 135, 255, 0.25), transparent 32%),
		linear-gradient(145deg, var(--crm-sidebar) 0%, var(--crm-sidebar-deep) 100%);
	box-shadow: var(--crm-shadow-hover);
}

body.crm-auth-page #login_splash::after {
	content: "";
	position: absolute;
	inset: 28% -10% -35% 30%;
	border: 1px solid rgba(255, 255, 255, 0.06);
	border-radius: 50%;
	box-shadow: 0 0 0 55px rgba(255, 255, 255, 0.025), 0 0 0 110px rgba(255, 255, 255, 0.02);
}

.crm-auth-brand {
	display: none;
}

#login_splash .crm-auth-brand.is-mounted {
	position: relative;
	z-index: 1;
	display: flex;
	width: 100%;
	min-height: 100%;
	flex-direction: column;
	justify-content: space-between;
	padding: 42px;
	color: #d9e4f6;
}

#login_splash .crm-auth-brand img {
	width: min(330px, 90%);
	height: auto;
	border-radius: 14px;
}

#login_splash .crm-auth-brand p {
	max-width: 360px;
	margin: 0;
	font-size: 20px;
	line-height: 1.45;
}

body.crm-auth-page #login_splash + div {
	display: flex;
	min-height: 520px;
	align-items: center;
	padding: 34px;
	border: 1px solid var(--crm-border);
	border-left: 0;
	border-radius: 0 18px 18px 0;
	background: #fff;
	box-shadow: var(--crm-shadow-hover);
}

body.crm-auth-page #login_splash + div > .panel {
	width: 100%;
	border: 0;
	box-shadow: none;
}

body.crm-auth-page #login_splash + div .panel-heading {
	padding-inline: 0;
	border: 0;
	background: transparent;
}

body.crm-auth-page #login_splash + div .panel-title {
	font-size: 24px;
	letter-spacing: -0.02em;
}

body.crm-auth-page #login_splash + div .panel-body,
body.crm-auth-page #login_splash + div .panel-footer {
	padding-inline: 0;
}

/* Existing production commercial-agent selector, aligned with the dashboard UI. */
body.crm-themed .filtro-commerciale-container {
	justify-content: flex-start;
	margin: 0 0 18px;
	padding: 13px 16px;
	border: 1px solid var(--crm-border);
	border-radius: var(--crm-radius);
	color: var(--crm-text);
	background: var(--crm-surface);
	box-shadow: var(--crm-shadow);
	font-family: inherit;
}

body.crm-themed .filtro-commerciale-container form {
	width: 100%;
	flex-wrap: wrap;
}

body.crm-themed .filtro-commerciale-container label {
	margin: 0;
	color: var(--crm-text-muted);
	font-size: 12px;
	letter-spacing: .04em;
}

body.crm-themed .filtro-commerciale-container select,
body.crm-themed .filtro-commerciale-container input {
	min-height: 38px;
	padding: 7px 10px;
	border-color: var(--crm-border);
	border-radius: 8px;
	font-weight: 600;
}

/* AppGini 26.12 native navigation: one menu, restyled in place. */
body.crm-themed.crm-native-navigation .navbar-fixed-top {
	min-height: 66px;
	margin: 0;
	border: 0;
	border-bottom: 1px solid var(--crm-border);
	color: var(--crm-text);
	background: rgba(255, 255, 255, .97) !important;
	box-shadow: 0 4px 18px rgba(15, 23, 42, .06);
	backdrop-filter: blur(14px);
}

body.crm-themed.crm-native-navigation .navbar-fixed-top .navbar-header,
body.crm-themed.crm-native-navigation .navbar-fixed-top .navbar-collapse {
	min-height: 66px;
}

body.crm-themed.crm-native-navigation .navbar-fixed-top .navbar-brand {
	display: flex;
	height: 66px;
	align-items: center;
	gap: 8px;
	padding: 10px 17px;
	color: var(--crm-text) !important;
	font-size: 16px;
	font-weight: 750;
}

body.crm-themed.crm-native-navigation .navbar-fixed-top .navbar-brand img {
	display: block !important;
	width: auto;
	max-width: 205px;
	height: 38px !important;
	margin: 0;
	object-fit: contain;
}

body.crm-themed.crm-native-navigation .navbar-fixed-top .navbar-nav > li > a,
body.crm-themed.crm-native-navigation .navbar-fixed-top .navbar-text {
	color: #40516b !important;
}

body.crm-themed.crm-native-navigation .navbar-fixed-top .navbar-nav > li > a {
	min-height: 46px;
	margin: 10px 2px;
	padding: 12px;
	border-radius: 9px;
}

body.crm-themed.crm-native-navigation .navbar-fixed-top .navbar-nav > li > a:hover,
body.crm-themed.crm-native-navigation .navbar-fixed-top .navbar-nav > li > a:focus,
body.crm-themed.crm-native-navigation .navbar-fixed-top .navbar-nav > .open > a {
	color: var(--crm-primary-dark) !important;
	background: var(--crm-primary-soft) !important;
}

body.crm-themed.crm-native-navigation .top-margin-adjuster {
	min-height: 78px !important;
}

body.crm-themed.crm-native-navigation .users-area.container-fluid {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0 15px 24px;
}

body.crm-themed.crm-native-navigation .users-area > .row {
	min-height: calc(100vh - 78px);
}

body.crm-themed.crm-native-navigation .vertical-nav {
	display: flex;
	min-height: calc(100vh - 78px) !important;
	height: calc(100vh - 78px) !important;
	padding: 17px 12px 14px !important;
	border: 0;
	color: #dbe7f8;
	background:
		radial-gradient(circle at 15% 8%, rgba(37, 99, 235, .18), transparent 27%),
		linear-gradient(180deg, var(--crm-sidebar) 0%, var(--crm-sidebar-deep) 100%);
	box-shadow: 8px 0 28px rgba(7, 20, 38, .08);
}

body.crm-themed.crm-native-navigation .vertical-nav .panel-group {
	min-height: 0;
	margin: 0 0 12px;
	padding-right: 3px;
	overflow-y: auto;
	scrollbar-width: thin;
	scrollbar-color: rgba(255, 255, 255, .18) transparent;
}

body.crm-themed.crm-native-navigation .vertical-nav .panel {
	margin: 0 0 7px;
	border: 0;
	border-radius: 9px;
	background: transparent;
	box-shadow: none;
	overflow: hidden;
}

body.crm-themed.crm-native-navigation .vertical-nav .panel-heading {
	border: 1px solid rgba(255, 255, 255, .07);
	border-radius: 9px;
	background: rgba(255, 255, 255, .045);
}

body.crm-themed.crm-native-navigation .vertical-nav .panel-expanded > .panel-heading,
body.crm-themed.crm-native-navigation .vertical-nav .panel-heading:hover {
	background: rgba(255, 255, 255, .085);
}

body.crm-themed.crm-native-navigation .vertical-nav .panel-title a {
	padding: 12px 13px;
	color: #cbd8ec !important;
	font-size: 11px;
	font-weight: 750;
	letter-spacing: .055em;
	text-transform: uppercase;
}

body.crm-themed.crm-native-navigation .vertical-nav .panel-title .indicator {
	right: 12px;
	color: #7f91ab;
	font-size: 12px;
}

body.crm-themed.crm-native-navigation .vertical-nav .panel-collapse {
	padding-top: 5px;
}

body.crm-themed.crm-native-navigation .vertical-nav .list-group {
	margin: 0;
}

body.crm-themed.crm-native-navigation .vertical-nav .vertical-nav-link {
	border: 0;
	background: transparent;
}

body.crm-themed.crm-native-navigation .vertical-nav .vertical-nav-link a {
	display: flex;
	min-height: 44px;
	align-items: center;
	gap: 11px;
	margin: 2px 0;
	padding: 9px 11px;
	border-radius: 8px;
	color: #e2eaf7 !important;
	font-size: 13px;
	font-weight: 590;
	white-space: normal;
}

body.crm-themed.crm-native-navigation .vertical-nav .vertical-nav-link a:hover,
body.crm-themed.crm-native-navigation .vertical-nav .vertical-nav-link a:focus {
	color: #fff !important;
	background: rgba(255, 255, 255, .08);
}

body.crm-themed.crm-native-navigation .vertical-nav .vertical-nav-link a.active,
body.crm-themed.crm-native-navigation .vertical-nav .vertical-nav-link a.is-current {
	color: #fff !important;
	background: linear-gradient(135deg, #3479ef, #2563d8);
	box-shadow: 0 7px 18px rgba(37, 99, 235, .28);
}

body.crm-themed.crm-native-navigation .vertical-nav .vertical-nav-link img {
	width: 21px;
	height: 21px;
	margin: 0;
	object-fit: contain;
	filter: brightness(0) invert(1);
	opacity: .88;
	flex: 0 0 21px;
}

.crm-native-dashboard-link {
	display: flex;
	min-height: 46px;
	align-items: center;
	gap: 11px;
	margin: 0 3px 13px;
	padding: 11px 12px;
	border-radius: 8px;
	color: #e2eaf7 !important;
	font-weight: 650;
	text-decoration: none !important;
}

.crm-native-dashboard-link:hover,
.crm-native-dashboard-link:focus {
	color: #fff !important;
	background: rgba(255, 255, 255, .08);
}

.crm-native-dashboard-link.is-current {
	color: #fff !important;
	background: linear-gradient(135deg, #3479ef, #2563d8);
	box-shadow: 0 7px 18px rgba(37, 99, 235, .28);
}

body.crm-themed.crm-native-navigation .vertical-nav > .btn {
	margin: 5px 2px 0;
	border-color: rgba(255, 255, 255, .12);
	color: #dce7f7;
	background: rgba(255, 255, 255, .06);
	font-size: 12px;
	text-align: left;
}

body.crm-themed.crm-native-navigation .vertical-nav > .btn:hover,
body.crm-themed.crm-native-navigation .vertical-nav > .btn:focus {
	color: #fff;
	background: rgba(255, 255, 255, .12);
}

body.crm-themed.crm-native-navigation .btn-toggle-vertical-nav {
	margin-top: 5px;
	border: 1px solid var(--crm-border);
	border-left: 0;
	color: #40516b;
	background: #fff;
	box-shadow: 3px 4px 12px rgba(15, 23, 42, .08);
}

body.crm-themed.crm-native-navigation .main-content {
	min-height: calc(100vh - 78px);
	padding: 22px 25px 30px;
	background: var(--crm-background);
}

.crm-native-search {
	position: relative;
	width: min(320px, 30vw);
	margin-top: 12px;
	margin-bottom: 12px;
}

.crm-native-search .crm-search-icon {
	position: absolute;
	top: 10px;
	left: 25px;
	z-index: 2;
	color: #52627a;
	pointer-events: none;
}

.crm-native-search .crm-icon {
	width: 18px;
	height: 18px;
}

body.crm-themed .crm-native-search input {
	width: 100%;
	height: 42px;
	padding-left: 39px;
	border-color: var(--crm-border);
	border-radius: 11px;
	background: #f8fafc;
}

@media (prefers-reduced-motion: reduce) {
	body.crm-themed *,
	body.crm-themed *::before,
	body.crm-themed *::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}

@media print {
	.crm-sidebar,
	.crm-topbar,
	.crm-site-footer,
	.crm-sidebar-backdrop,
	.crm-skip-link {
		display: none !important;
	}

	body.crm-themed .users-area.container {
		margin: 0;
		padding: 0;
	}
}
