:root {
	--tblr-primary: #4375a7;
	--tblr-primary-rgb: 67, 117, 167;
	--tblr-link-color: #4375a7;
	--tblr-link-hover-color: #34618d;
}

body.crm-app {
	background: #f3f6fa;
}

.crm-topbar {
	background: #fff;
	border-bottom: 1px solid var(--tblr-border-color);
}

.crm-menubar {
	background: #fff;
	border-bottom: 1px solid var(--tblr-border-color);
	box-shadow: 0 1px 2px rgba(15, 23, 42, .03);
}

.crm-topbar-brand,
.crm-auth-brand .navbar-brand {
	display: inline-flex;
	align-items: center;
	gap: .6rem;
}

.crm-topbar-logo {
	width: auto;
	max-width: 96px;
	max-height: 32px;
	object-fit: contain;
}

.crm-topbar-name {
	display: block;
	color: #4375a7;
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.05;
}

.crm-topbar-subtitle {
	display: block;
	margin-top: .1rem;
	color: #667085;
	font-size: .68rem;
	font-weight: 600;
	letter-spacing: .02em;
	line-height: 1.1;
	text-transform: uppercase;
}

.crm-menubar .nav-item.active .nav-link {
	color: #4375a7;
	font-weight: 600;
}

.crm-menubar .nav-item.active .nav-link::after {
	background: #4375a7;
}

.crm-avatar {
	background: #4375a7;
	color: #fff;
}

.crm-auth-page {
	min-height: 100vh;
}

.crm-auth-logo {
	width: auto;
	max-width: 118px;
	max-height: 42px;
	object-fit: contain;
}

.crm-auth-name {
	color: #4375a7;
	font-size: 1.12rem;
	font-weight: 600;
	line-height: 1.1;
}

.crm-auth-brand .h2 {
	color: #2f5f91;
	font-size: 1.35rem;
	font-weight: 600;
}

.crm-alert {
	margin-bottom: 1rem;
	border-radius: 6px;
	box-shadow: none;
}

.crm-alert .alert-title {
	margin-bottom: .15rem;
	font-weight: 600;
}

.crm-alert .alert-icon {
	margin-top: .1rem;
}

.crm-modal-open {
	overflow: hidden;
}

.crm-dialog-backdrop {
	position: fixed;
	inset: 0;
	z-index: 1080;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	background: rgba(15, 23, 42, .46);
}

.crm-dialog {
	width: min(420px, 100%);
	border: 1px solid rgba(15, 23, 42, .08);
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 18px 48px rgba(15, 23, 42, .2);
}

.crm-dialog-body {
	padding: 1.4rem 1.35rem 1.2rem;
	text-align: center;
}

.crm-dialog-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.4rem;
	height: 2.4rem;
	margin-bottom: .75rem;
	border: 2px solid #4375a7;
	border-radius: 50%;
	color: #4375a7;
	font-size: 1.28rem;
	font-weight: 700;
	line-height: 1;
}

.crm-dialog-icon-success {
	border-color: #2fb344;
	color: #2fb344;
}

.crm-dialog-icon-danger {
	border-color: #d63939;
	color: #d63939;
}

.crm-dialog-title {
	margin: 0 0 .45rem;
	color: #172033;
	font-size: 1.05rem;
	font-weight: 700;
	letter-spacing: 0;
}

.crm-dialog-message {
	margin: 0;
	color: #475467;
	font-size: .92rem;
	line-height: 1.45;
}

.crm-dialog-actions {
	display: flex;
	justify-content: center;
	gap: .55rem;
	margin-top: 1.1rem;
}

.crm-dialog-btn {
	min-width: 5.8rem;
	padding: .42rem .85rem;
	border-radius: 6px;
	font-size: .86rem;
}

.card {
	border-radius: 6px;
}

.btn {
	box-shadow: none;
	font-weight: 500;
}

.btn-primary {
	--tblr-btn-bg: #4375a7;
	--tblr-btn-border-color: #4375a7;
	--tblr-btn-hover-bg: #34618d;
	--tblr-btn-hover-border-color: #34618d;
}

.btn-sm {
	--tblr-btn-padding-y: .22rem;
	--tblr-btn-padding-x: .48rem;
	--tblr-btn-font-size: .78rem;
}

.crm-narrow-card {
	max-width: 680px;
}

.inline-form {
	display: inline-flex;
	margin: 0;
}

.crm-module-card {
	color: inherit;
	text-decoration: none;
	transition: border-color .15s ease, transform .15s ease;
}

.crm-module-card:hover {
	border-color: rgba(67, 117, 167, .45);
	color: inherit;
	text-decoration: none;
	transform: translateY(-1px);
}

.crm-module-disabled {
	opacity: .72;
}

.crm-module-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	margin-bottom: .75rem;
	border-radius: 8px;
	font-weight: 700;
}

.crm-welcome-mark {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 96px;
	height: 96px;
	border-radius: 22px;
	background: linear-gradient(135deg, rgba(67, 117, 167, .16), rgba(67, 117, 167, .04));
	color: #4375a7;
	font-weight: 800;
	letter-spacing: .04em;
}

.table .btn-list {
	flex-wrap: nowrap;
}

.table .btn {
	white-space: nowrap;
}

@media (max-width: 767.98px) {
	.crm-topbar-logo {
		max-width: 82px;
		max-height: 28px;
	}

	.crm-topbar-name {
		font-size: .98rem;
	}

	.crm-topbar-subtitle {
		font-size: .62rem;
	}

	.table .btn-list {
		flex-wrap: wrap;
	}
}
