/*
Theme Name: CRM GoGrewal
Theme URI: https://crmgogrewal.com/
Author: GoGrewal
Description: A lightweight, clean WordPress theme designed for a CRM-focused.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: https://www.grewaltruckinsurance.com/
Text Domain: crmgogrewal
*/

/* CRM login template. */
body.crm-login-body {
	margin: 0;
	font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	color: #111827;
	background: #fff;
}

.crm-login-page {
	display: flex;
	min-height: 100vh;
	width: 100%;
	overflow-x: hidden;
	background: #fff;
}

.crm-login-hero {
	position: relative;
	flex: 0 0 50%;
	min-height: 100vh;
	overflow: hidden;
	background: #000;
	user-select: none;
}

.crm-login-hero-image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: left bottom;
}

.crm-login-hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, .5), transparent 45%, rgba(0, 0, 0, .25));
	pointer-events: none;
}

.crm-login-logo-wrap {
	position: absolute;
	z-index: 2;
	top: 40px;
	left: 40px;
}

.crm-login-logo {
	display: block;
	width: min(180px, 70vw);
	height: auto;
	filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .35));
}

.crm-login-content {
	display: flex;
	flex: 1;
	align-items: center;
	justify-content: center;
	min-height: 560px;
	padding: 64px 48px;
	background:
		radial-gradient(circle at 60% 70%, rgba(220, 214, 254, 0.3), transparent 55%),
		radial-gradient(circle at 90% 20%, rgba(237, 233, 254, 0.4), transparent 50%),
		#fff;
}

.crm-login-card {
	width: 100%;
	max-width: 420px;
}

.crm-login-heading {
	margin-bottom: 32px;
}

.crm-login-heading h1 {
	margin: 0;
	color: #111827;
	font-size: 32px;
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1.3;
}

.crm-login-heading p {
	margin: 8px 0 0;
	color: #6b7280;
	font-size: 14px;
	line-height: 1.6;
}

.crm-login-form .form-label {
	margin: 0;
	color: #374151;
	font-size: 12px;
	font-weight: 500;
}

.crm-field-hint,
.crm-forgot-password {
	color: #9ca3af;
	font-size: 11px;
	text-decoration: none;
}

.crm-forgot-password:hover {
	color: #111827;
	text-decoration: underline;
}

.crm-input-wrap {
	position: relative;
}

.crm-input-leading,
.crm-password-toggle {
	position: absolute;
	top: 50%;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	background: transparent;
	color: #9ca3af;
	transform: translateY(-50%);
}

.crm-input-leading {
	left: 14px;
	pointer-events: none;
}

.crm-password-toggle {
	right: 12px;
	cursor: pointer;
}

.crm-password-toggle:hover {
	color: #374151;
}

.crm-login-form .form-control {
	min-height: 44px;
	padding: 11px 14px 11px 40px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
	color: #111827;
	font-size: 14px;
}

.crm-login-form .crm-password-input {
	padding-right: 40px;
	letter-spacing: .18em;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.crm-login-form .form-control:focus {
	border-color: #f5be18;
	box-shadow: 0 0 0 1px #f5be18;
}

.crm-login-form .form-check-input {
	width: 16px;
	height: 16px;
	margin-top: .15rem;
	border-color: #d1d5db;
	cursor: pointer;
}

.crm-login-form .form-check-input:checked,
.crm-login-form .form-check-input:focus {
	background-color: #111827;
	border-color: #111827;
	box-shadow: 0 0 0 .2rem rgba(245, 190, 24, .25);
}

.crm-login-form .form-check-label {
	color: #374151;
	cursor: pointer;
	font-size: 12px;
}

.crm-btn-signin {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	border: 0;
	border-radius: 8px;
	background: #f5be18;
	color: #111827;
	font-size: 14px;
	font-weight: 600;
}

.crm-btn-signin:hover,
.crm-btn-signin:focus-visible {
	background: #e6b113;
	color: #111827;
}

.crm-login-notice {
	margin-bottom: 20px;
	padding: 12px 14px;
	border: 1px solid #fecaca;
	border-radius: 8px;
	background: #fef2f2;
	color: #991b1b;
	font-size: 13px;
}

.crm-login-notice--success {
	border-color: #bbf7d0;
	background: #f0fdf4;
	color: #166534;
}

.crm-login-form .crm-otp-input {
	padding-left: 40px;
	letter-spacing: .35em;
	text-align: center;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
	font-size: 20px;
	font-weight: 600;
}

.crm-otp-hint {
	display: block;
	margin: 8px 0 0;
}

.crm-login-resend-form {
	margin: 0;
	text-align: center;
}

.crm-login-resend-btn {
	padding: 0;
	border: 0;
	background: transparent;
	color: #6b7280;
	font-size: 13px;
	font-weight: 500;
	text-decoration: none;
}

.crm-login-resend-btn:hover,
.crm-login-resend-btn:focus-visible {
	color: #111827;
	text-decoration: underline;
}

.crm-login-back-wrap {
	margin: 16px 0 0;
	text-align: center;
}

@media (max-width: 991.98px) {
	.crm-login-page {
		flex-direction: column;
	}

	.crm-login-hero {
		flex-basis: auto;
		width: 100%;
		min-height: 320px;
	}

	.crm-login-logo-wrap {
		top: 24px;
		left: 24px;
	}

	.crm-login-content {
		padding: 44px 24px;
		min-height: auto;
	}
}

/* CRM application chrome. */
body.crm-app .site-header,
body.crm-app .site-footer,
body.home .site-header,
body.home .site-footer {
	display: none;
}

.crm-dashboard {
	--crm-sidebar-width: 248px;
	min-height: 100vh;
	background: #f7f8fc;
	color: #172033;
	font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.crm-sidebar-scroll-lock {
	overflow: hidden;
}

.crm-sidebar {
	position: fixed;
	z-index: 20;
	top: 0;
	bottom: 0;
	left: 0;
	display: flex;
	width: var(--crm-sidebar-width);
	flex-direction: column;
	padding: 24px 16px;
	background: #172033;
	color: #e7ebf5;
	box-sizing: border-box;
	transition: transform .25s ease;
	will-change: transform;
}

.crm-sidebar-backdrop {
	position: fixed;
	inset: 0;
	z-index: 15;
	padding: 0;
	border: 0;
	margin: 0;
	background: rgba(23, 32, 51, .5);
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transition: opacity .25s ease, visibility .25s ease;
}

.crm-dashboard.is-sidebar-open .crm-sidebar-backdrop {
	opacity: 1;
	visibility: visible;
}

.crm-dashboard.is-sidebar-collapsed .crm-sidebar {
	transform: translateX(-100%);
}

.crm-sidebar-brand {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 8px 24px;
	color: #fff;
	font-size: 17px;
	font-weight: 700;
	text-decoration: none;
}

.crm-sidebar-brand small {
	display: block;
	color: #c4cadd;
	font-size: 10px;
	font-weight: 500;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.crm-sidebar-logo {
	display: flex;
	width: 36px;
	height: 36px;
	align-items: center;
	justify-content: center;
	border-radius: 10px;
	background: #f5c518;
	color: #172033;
	font-size: 20px;
	font-weight: 800;
}

.crm-nav-label,
.crm-sidebar-bottom p {
	margin: 0 8px 12px;
	color: #aeb7cb;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.crm-nav-label--secondary {
	margin-top: 18px;
}

.crm-nav {
	display: grid;
	gap: 6px;
}

.crm-nav .nav-link,
.crm-nav a {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px;
	border-radius: 10px;
	color: #c9d0df;
	font-size: 13px;
	text-decoration: none;
}

.crm-nav .nav-link:hover,
.crm-nav .nav-link:focus,
.crm-nav .nav-link.is-active,
.crm-nav a:hover,
.crm-nav a.is-active {
	background: #f5c518;
	color: #29230d;
	font-weight: 700;
}

.crm-sidebar-bottom {
	display: grid;
	gap: 8px;
	margin-top: auto;
	padding: 16px 8px 0;
	border-top: 1px solid rgba(255, 255, 255, .12);
}

.crm-sidebar-bottom p {
	margin: 0;
}

.crm-sidebar-bottom strong {
	overflow-wrap: anywhere;
	color: #fff;
	font-size: 14px;
}

.crm-sidebar-bottom a {
	color: #f5d76b;
	font-size: 12px;
	text-decoration: none;
}

.crm-dashboard-main {
	min-height: 100vh;
	margin-left: var(--crm-sidebar-width);
	transition: margin-left .25s ease;
}

.crm-dashboard.is-sidebar-collapsed .crm-dashboard-main {
	margin-left: 0;
}

.crm-dashboard-header {
	position: sticky;
	z-index: 10;
	top: 0;
	display: flex;
	min-height: 76px;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 16px 32px;
	border-bottom: 1px solid #e6e9f1;
	background: rgba(255, 255, 255, .94);
	box-sizing: border-box;
}

.crm-dashboard-header__lead {
	display: flex;
	min-width: 0;
	align-items: center;
	gap: 14px;
}

.crm-sidebar-toggle {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 1px solid #e0e4ee;
	border-radius: 10px;
	background: #fff;
	color: #172033;
	cursor: pointer;
	font: inherit;
	line-height: 1;
}

.crm-sidebar-toggle:hover,
.crm-sidebar-toggle:focus-visible {
	border-color: #c9cfdd;
	background: #f7f8fc;
	outline: none;
}

.crm-sidebar-toggle .material-symbols-outlined {
	font-size: 22px;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.crm-eyebrow {
	color: #7b8498;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .14em;
}

.crm-dashboard-header h1 {
	margin: 4px 0 0;
	font-size: 20px;
	font-weight: 700;
}

.crm-current-user {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 13px;
	font-weight: 600;
}

.crm-current-user .crm-profile-avatar-wrap {
	flex: 0 0 auto;
}

.crm-table-avatar-wrap {
	position: relative;
	display: inline-flex;
	flex: 0 0 auto;
}

.crm-presence-dot {
	position: absolute;
	z-index: 2;
	right: -1px;
	bottom: -1px;
	width: 10px;
	height: 10px;
	border: 2px solid #fff;
	border-radius: 50%;
	box-sizing: border-box;
}

.crm-presence-dot--online {
	background: #16a34a;
}

.crm-presence-dot--offline {
	background: #dc2626;
}

.crm-user-avatar,
.crm-table-avatar {
	display: inline-flex;
	width: 38px;
	height: 38px;
	flex: 0 0 38px;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: #fff0b8;
	color: #594500;
	font-weight: 700;
	overflow: hidden;
}

.crm-user-avatar--image {
	padding: 0;
	background: #e8ecf4;
}

.crm-user-avatar-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 50%;
}

.crm-directory {
	padding: 32px;
}

.crm-directory-title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 24px;
}

.crm-directory-title h2 {
	margin: 0;
	font-size: 27px;
	font-weight: 750;
	letter-spacing: -.03em;
}

.crm-directory-title p {
	margin: 7px 0 0;
	color: #737d91;
	font-size: 13px;
}

.crm-user-count {
	display: flex;
	flex-direction: column;
	padding: 12px 18px;
	border: 1px solid #e6e9f1;
	border-radius: 12px;
	background: #fff;
}

.crm-user-count strong {
	font-size: 22px;
}

.crm-user-count span {
	color: #737d91;
	font-size: 11px;
}

.crm-user-search {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 18px;
	padding: 14px;
	border: 1px solid #e6e9f1;
	border-radius: 12px;
	background: #fff;
}

.crm-user-search .form-control,
.crm-user-search input {
	width: 100%;
	min-width: 0;
	padding: 10px 12px;
	border: 1px solid #dfe3ec;
	border-radius: 8px;
	background: #f8f9fc;
	font: inherit;
	font-size: 13px;
	box-shadow: none;
}

.crm-user-search .form-control:focus {
	border-color: #f5c518;
	box-shadow: 0 0 0 2px rgba(245, 197, 24, .25);
}

.crm-user-search button {
	padding: 10px 18px;
	border: 0;
	border-radius: 8px;
	background: #f5c518;
	color: #29230d;
	cursor: pointer;
	font-size: 13px;
	font-weight: 700;
}

.crm-user-search a,
.crm-user-search .btn-link {
	color: #626d82;
	font-size: 12px;
	text-decoration: none;
}

.crm-customer-filters-panel {
	margin-bottom: 18px;
	padding: 16px 18px;
	border: 1px solid #e6e9f1;
	border-radius: 12px;
	background: #fff;
}

.crm-customer-filters-panel__header {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 16px;
	padding-bottom: 14px;
	border-bottom: 1px solid #eef1f6;
}

.crm-customer-filters-panel__header .material-symbols-outlined {
	display: flex;
	width: 36px;
	height: 36px;
	flex: 0 0 36px;
	align-items: center;
	justify-content: center;
	border-radius: 10px;
	background: #fff8dd;
	color: #7a6200;
	font-size: 20px;
}

.crm-customer-filters-panel__title {
	margin: 0;
	color: #303a4d;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.3;
}

.crm-customer-filters-panel__hint {
	margin: 4px 0 0;
	color: #737d91;
	font-size: 12px;
	line-height: 1.4;
}

.crm-customer-filters-panel__grid {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 12px 14px;
}

.crm-customer-filters-label {
	display: block;
	margin-bottom: 6px;
	color: #626d82;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .02em;
	text-transform: uppercase;
}

.crm-customer-filters-control {
	width: 100%;
	min-width: 0;
	padding: 10px 12px;
	border: 1px solid #dfe3ec;
	border-radius: 8px;
	background: #f8f9fc;
	font: inherit;
	font-size: 13px;
	box-shadow: none;
}

.crm-customer-filters-control:focus {
	border-color: #f5c518;
	box-shadow: 0 0 0 2px rgba(245, 197, 24, .22);
	outline: 0;
}

.crm-customer-filters-input-wrap {
	position: relative;
}

.crm-customer-filters-input-icon {
	position: absolute;
	top: 50%;
	left: 12px;
	color: #8a94a8;
	font-size: 20px;
	pointer-events: none;
	transform: translateY(-50%);
}

.crm-customer-filters-input-wrap .crm-customer-filters-control {
	padding-left: 40px;
}

.crm-customer-filters-panel__footer {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 16px;
	padding-top: 14px;
	border-top: 1px solid #eef1f6;
}

.crm-customer-filters-submit {
	min-width: 132px;
}

.crm-customer-filters-clear {
	padding: 10px 16px;
	font-size: 13px;
	font-weight: 600;
}

@media (max-width: 1200px) {
	.crm-customer-filters-panel__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 768px) {
	.crm-customer-filters-panel {
		padding: 14px;
	}

	.crm-customer-filters-panel__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}

	.crm-customer-filters-panel__footer {
		flex-direction: column;
		align-items: stretch;
	}

	.crm-customer-filters-submit,
	.crm-customer-filters-clear {
		width: 100%;
		text-align: center;
	}
}

@media (max-width: 480px) {
	.crm-customer-filters-panel__grid {
		grid-template-columns: 1fr;
	}
}

.crm-table-wrap {
	overflow-x: auto;
	border: 1px solid #e6e9f1;
	border-radius: 12px;
	background: #fff;
}

.crm-users-table {
	width: 100%;
	min-width: 760px;
	border-collapse: collapse;
	text-align: left;
}

.crm-users-table th {
	padding: 14px 18px;
	background: #f3f5fa;
	color: #747e92;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	white-space: nowrap;
}

.crm-users-table td {
	padding: 16px 18px;
	border-top: 1px solid #edf0f5;
	font-size: 12px;
	vertical-align: middle;
}

.crm-users-table tbody tr:hover {
	background: #fafbfe;
}

.crm-table-user {
	display: flex;
	min-width: 200px;
	align-items: center;
	gap: 11px;
}

.crm-table-user > span:last-child {
	display: flex;
	min-width: 0;
	flex-direction: column;
	gap: 4px;
}

.crm-table-user strong {
	color: #202a3c;
	font-size: 12px;
}

.crm-table-user small,
.crm-cell-subtext {
	display: block;
	color: #7a8497;
	font-size: 11px;
	overflow-wrap: anywhere;
}

.crm-role-pill,
.crm-status-pill {
	display: inline-block;
	padding: 5px 8px;
	border-radius: 6px;
	background: #fff2bf;
	color: #6b5200;
	font-size: 11px;
	font-weight: 600;
}

.crm-status-pill {
	border-radius: 20px;
	background: #e0f7ed;
	color: #14764e;
}

.crm-cell-subtext {
	margin-top: 5px;
}

.crm-empty-state {
	padding: 40px !important;
	color: #737d91;
	text-align: center;
}

.crm-pagination {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 18px 2px;
	color: #737d91;
	font-size: 12px;
}

.crm-pagination div {
	display: flex;
	gap: 8px;
}

.crm-pagination a {
	padding: 8px 12px;
	border: 1px solid #dfe3ec;
	border-radius: 8px;
	background: #fff;
	color: #303a4d;
	text-decoration: none;
}

.crm-table-footer {
	flex-wrap: wrap;
	margin-top: 0;
}

.crm-table-footer__summary {
	color: #303a4d;
	font-size: 13px;
}

.crm-table-footer__summary strong {
	font-weight: 600;
}

.crm-table-footer__range {
	margin-left: 6px;
	color: #737d91;
}

.crm-table-footer__pages {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.crm-table-footer__page-label {
	color: #737d91;
}

.crm-customers-table-wrap {
	max-width: 100%;
}

.crm-customers-table {
	font-size: 13px;
}

.crm-customers-table th {
	font-size: 11px;
	font-weight: 600;
	text-transform: none;
	letter-spacing: 0;
	vertical-align: middle;
}

.crm-customers-table td {
	vertical-align: middle;
	max-width: 220px;
	overflow: hidden;
	text-overflow: ellipsis;
}

.crm-customer-profile-link {
	color: #151c27;
	font-weight: 600;
	text-decoration: none;
}

.crm-customer-profile-link:hover {
	color: #745b00;
	text-decoration: underline;
}

.crm-customer-profile-back {
	margin: 0 0 8px;
}

.crm-customer-profile-back a {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	color: #4e4633;
	font-size: 13px;
	text-decoration: none;
}

.crm-customer-profile-back a:hover {
	color: #151c27;
}

.crm-customer-profile-subtitle {
	margin: 6px 0 0;
	color: #737d91;
	font-size: 13px;
}

.crm-customer-profile-tabs {
	margin-bottom: 16px;
	border-bottom: 1px solid #dce2f3;
}

.crm-customer-profile-tabs .nav-link {
	color: #4e4633;
	font-size: 13px;
	font-weight: 600;
}

.crm-customer-profile-tabs .nav-link.active {
	color: #151c27;
}

.crm-customer-profile-tab-panels {
	padding-top: 4px;
}

.crm-customer-fleet-panel {
	padding: 4px 0 16px;
}

.crm-customer-fleet-panel__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 12px;
}

.crm-customer-fleet-panel__header h3 {
	margin: 0 0 4px;
	font-size: 15px;
	font-weight: 700;
}

.crm-customer-fleet-panel__header p {
	margin: 0;
	color: #737d91;
	font-size: 13px;
}

.crm-customer-fleet-table {
	font-size: 13px;
	white-space: normal;
}

.crm-customer-fleet-table__actions {
	width: 140px;
	white-space: nowrap;
}

.crm-customer-fleet-empty td {
	color: #737d91;
	font-style: italic;
}

.crm-pipeline-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin-bottom: 16px;
}

.crm-pipeline-toolbar .form-control {
	max-width: 320px;
}

.crm-pipeline-toolbar .form-select {
	max-width: 200px;
}

.crm-pipeline-toolbar__open {
	display: flex;
	align-items: center;
	white-space: nowrap;
}

.crm-pipeline-view-toggle {
	margin-left: auto;
}

.crm-dashboard-main:has(.crm-directory--pipeline) {
	min-width: 0;
	overflow-x: clip;
}

.crm-directory--pipeline {
	min-width: 0;
	max-width: 100%;
}

.crm-pipeline-board {
	display: flex;
	gap: 12px;
	align-items: stretch;
	width: 100%;
	max-width: 100%;
	height: var(--crm-pipeline-board-height, calc(100vh - 300px));
	min-height: 380px;
	overflow-x: auto;
	overflow-y: hidden;
	overscroll-behavior-x: contain;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: auto;
	scrollbar-color: #b9c2d8 #eef1f8;
	padding-bottom: 10px;
	box-sizing: border-box;
}

.crm-pipeline-board:focus-visible {
	outline: 2px solid #f5c518;
	outline-offset: 2px;
	border-radius: 12px;
}

.crm-pipeline-board::-webkit-scrollbar {
	height: 12px;
}

.crm-pipeline-board::-webkit-scrollbar-track {
	background: #eef1f8;
	border-radius: 999px;
}

.crm-pipeline-board::-webkit-scrollbar-thumb {
	background: #b9c2d8;
	border: 2px solid #eef1f8;
	border-radius: 999px;
}

.crm-pipeline-board::-webkit-scrollbar-thumb:hover {
	background: #8f9ab3;
}

.crm-pipeline-column {
	display: flex;
	flex-direction: column;
	flex: 0 0 280px;
	max-width: 280px;
	min-height: 0;
	height: 100%;
	background: #f8f9fc;
	border: 1px solid #dce2f3;
	border-radius: 12px;
	box-sizing: border-box;
}

.crm-pipeline-column__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 12px 14px;
	border-bottom: 1px solid rgba(220, 226, 243, .8);
}

.crm-pipeline-column__header h3 {
	margin: 0;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.3;
}

.crm-pipeline-column__count {
	display: inline-flex;
	min-width: 22px;
	height: 22px;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	background: #e7eefe;
	color: #4e4633;
	font-size: 11px;
	font-weight: 700;
}

.crm-pipeline-column__header {
	flex: 0 0 auto;
}

.crm-pipeline-column__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 8px;
	min-height: 0;
	overflow-y: auto;
	overscroll-behavior-y: contain;
	padding: 10px;
	scrollbar-width: thin;
	scrollbar-color: #c7cee0 transparent;
}

.crm-pipeline-column__body > .crm-pipeline-card {
	flex: 0 0 auto;
}

.crm-pipeline-column__empty {
	margin: 8px 0 0;
	padding: 16px 8px;
	border: 1px dashed #d5dcee;
	border-radius: 10px;
	color: #8a93a8;
	font-size: 12px;
	text-align: center;
}

.crm-pipeline-column__more {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 6px 0 2px;
}

.crm-pipeline-column__more[hidden],
.crm-pipeline-column__empty[hidden],
.crm-pipeline-column__loading[hidden],
.crm-pipeline-column__error[hidden],
.crm-pipeline-column__more-btn[hidden] {
	display: none !important;
}

.crm-pipeline-column__loading {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #737d91;
	font-size: 12px;
}

.crm-pipeline-column__error {
	margin: 0;
	color: #b42318;
	font-size: 12px;
	text-align: center;
}

.crm-pipeline-column__more-btn {
	width: 100%;
	font-size: 12px;
}

.crm-pipeline-card:focus-visible {
	outline: 2px solid #f5c518;
	outline-offset: 2px;
}

.crm-pipeline-card:hover {
	border-color: #c4cde6;
	box-shadow: 0 4px 12px rgba(15, 23, 42, .08);
}

.crm-pipeline-card.is-selected {
	border-color: #f5c518;
	box-shadow: 0 0 0 2px rgba(245, 197, 24, .35);
}

@media (max-width: 991.98px) {
	.crm-pipeline-column {
		flex-basis: 260px;
		max-width: 260px;
	}
}

@media (max-width: 575.98px) {
	.crm-pipeline-board {
		scroll-snap-type: x proximity;
		gap: 10px;
	}

	.crm-pipeline-column {
		flex-basis: 84vw;
		max-width: 84vw;
		scroll-snap-align: start;
	}
}

.crm-pipeline-column__body--over {
	background: rgba(245, 197, 24, .12);
	outline: 2px dashed #f5c518;
	outline-offset: -4px;
	border-radius: 0 0 12px 12px;
}

.crm-pipeline-card {
	padding: 12px;
	border: 1px solid #dce2f3;
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(15, 23, 42, .06);
	cursor: pointer;
}

.crm-pipeline-card[draggable="true"] {
	cursor: grab;
}

.crm-pipeline-card--dragging {
	opacity: .65;
}

.crm-pipeline--readonly .crm-pipeline-card {
	cursor: pointer;
}

.crm-pipeline-card__title {
	margin: 0 0 6px;
	font-size: 13px;
	font-weight: 700;
}

.crm-pipeline-card__customer {
	display: inline-block;
	margin-bottom: 6px;
	color: #745b00;
	font-size: 12px;
	font-weight: 600;
	text-decoration: none;
}

.crm-pipeline-card__customer:hover {
	color: #5a4800;
	text-decoration: underline;
}

.crm-pipeline-card__customer--text {
	margin: 0 0 6px;
	color: #737d91;
	font-weight: 500;
}

.crm-pipeline-card__customer-link {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-left: auto;
	color: #745b00;
	font-size: 11px;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

.crm-pipeline-card__customer-link .material-symbols-outlined {
	font-size: 14px;
}

.crm-pipeline-card__customer-link:hover {
	color: #5a4800;
	text-decoration: underline;
}

.crm-pipeline-card__meta {
	margin: 0 0 8px;
	color: #737d91;
	font-size: 11px;
	line-height: 1.4;
}

.crm-pipeline-card__footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	width: 100%;
	color: #4e4633;
	font-size: 11px;
	font-weight: 600;
}

.crm-pipeline-column--inactive .crm-pipeline-column__header {
	opacity: .85;
}

.crm-pipeline-column__badge {
	display: inline-block;
	margin-left: 6px;
	padding: 2px 6px;
	border-radius: 4px;
	background: rgba(115, 125, 145, .15);
	color: #737d91;
	font-size: 10px;
	font-weight: 600;
	text-transform: uppercase;
	vertical-align: middle;
}

.crm-pipeline-stages-loading {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 12px;
	font-size: 13px;
	color: #737d91;
}

.crm-pipeline-stages-table__order {
	white-space: nowrap;
}

.crm-pipeline-stages-table__order .btn {
	padding: 2px 8px;
	margin-right: 4px;
}

.crm-pipeline-stages-table__row--inactive {
	opacity: .75;
}

.crm-pipeline-stages-table__actions {
	white-space: nowrap;
}

.crm-pipeline-stages-footer-note {
	max-width: 320px;
}

.crm-activity-timeline {
	margin: 0;
	padding: 0;
	list-style: none;
}

.crm-activity-timeline__item {
	padding: 14px 0 14px 16px;
	border-left: 3px solid rgba(78, 70, 51, .2);
	margin-left: 4px;
}

.crm-activity-timeline__item--opportunity_stage_changed {
	border-left-color: #4e4633;
}

.crm-activity-timeline__item--customer_sync {
	border-left-color: #2d6a4f;
}

.crm-activity-timeline__item--opportunity_created {
	border-left-color: #5c6bc0;
}

.crm-activity-timeline__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-bottom: 4px;
	font-size: 11px;
	color: #737d91;
}

.crm-activity-timeline__badge {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 4px;
	background: rgba(78, 70, 51, .08);
	color: #4e4633;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .03em;
}

.crm-activity-timeline__summary {
	margin: 0;
	font-size: 13px;
	color: #2c2c2c;
	line-height: 1.45;
}

.crm-activity-timeline__actor {
	margin: 4px 0 0;
	font-size: 11px;
	color: #737d91;
}

.crm-policy-status {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 4px;
	font-size: 11px;
	font-weight: 600;
	background: rgba(115, 125, 145, .12);
	color: #4e4633;
}

.crm-policy-status--active,
.crm-policy-status--bound {
	background: rgba(45, 106, 79, .12);
	color: #2d6a4f;
}

.crm-policy-status--cancelled,
.crm-policy-status--expired,
.crm-policy-status--non_renewed {
	background: rgba(180, 60, 60, .1);
	color: #8b3a3a;
}

.crm-activity-timeline__item--policy_created,
.crm-activity-timeline__item--policy_updated,
.crm-activity-timeline__item--policy_deleted,
.crm-activity-timeline__item--policy_auto_created {
	border-left-color: #5c6bc0;
}

.crm-dashboard-renewals__header h3 {
	margin: 0 0 4px;
	font-size: 1.1rem;
}

.crm-dashboard-renewals__header p {
	margin: 0;
}

.crm-dashboard-renewals__header {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
}

.crm-settings-card {
	background: var(--crm-surface-elevated, #fff);
	border: 1px solid var(--crm-border, rgba(0, 0, 0, 0.08));
	border-radius: 12px;
	padding: 1.25rem 1.5rem;
	margin-bottom: 1rem;
}

.crm-settings-card--muted {
	background: var(--crm-surface-muted, #f8f9fa);
}

.crm-settings-card h3 {
	margin: 0 0 0.5rem;
	font-size: 1.05rem;
}

.crm-settings-card__lead {
	margin: 0 0 1rem;
	color: var(--crm-text-muted, #6c757d);
	font-size: 0.9rem;
}

.crm-settings-pipeline-map .form-select {
	min-width: 10rem;
}

.crm-settings-map li {
	padding: 0.2rem 0;
}

.crm-email-template-block {
	margin-top: 1.5rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--crm-border, rgba(0, 0, 0, 0.08));
}

.crm-email-template-block:first-of-type {
	margin-top: 0.75rem;
	padding-top: 0;
	border-top: 0;
}

.crm-drawer__email-editor .wp-editor-wrap {
	border-radius: 8px;
	overflow: hidden;
}

.crm-drawer__email-editor .wp-editor-container {
	border-color: #d1d5db;
}

.crm-settings-form__actions {
	margin-top: 0.5rem;
}

.crm-activity-table__summary {
	max-width: 28rem;
	font-size: 0.9rem;
}

.crm-activity-table__when {
	white-space: nowrap;
	font-size: 0.875rem;
}

.crm-activity-toolbar .form-select {
	min-width: 11rem;
}

.crm-policies-toolbar .form-select {
	min-width: 9rem;
}

.crm-policies-toolbar__window:disabled {
	opacity: 0.55;
}

.crm-tasks-toolbar .form-select {
	max-width: 180px;
}

.crm-tasks-summary {
	margin: 0 0 12px;
}

.crm-task-row--overdue td {
	background: rgba(180, 60, 60, .06);
}

.crm-task-row__meta {
	font-size: 11px;
	color: #737d91;
}

.crm-activity-timeline__item--task_created,
.crm-activity-timeline__item--task_completed,
.crm-activity-timeline__item--task_deleted,
.crm-activity-timeline__item--task_synced {
	border-left-color: #c45c26;
}

.crm-opportunity-history__title {
	margin: 0 0 8px;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: #4e4633;
}

.crm-opportunity-history__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.crm-opportunity-history__list li {
	padding: 8px 0;
	border-bottom: 1px solid rgba(220, 226, 243, .6);
	font-size: 12px;
}

.crm-opportunity-history__meta {
	display: block;
	margin-top: 2px;
	color: #737d91;
	font-size: 11px;
	font-weight: 400;
}

.crm-opportunity-history__empty {
	color: #737d91;
	font-size: 12px;
	font-style: italic;
}

.crm-customer-profile-grid {
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.crm-customer-profile-card {
	padding: 20px;
	border: 1px solid #dce2f3;
	border-radius: 12px;
	background: #fff;
}

.crm-customer-profile-card h3 {
	margin: 0 0 16px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: #4e4633;
}

.crm-customer-profile-dl {
	margin: 0;
}

.crm-customer-profile-dl__row {
	display: grid;
	grid-template-columns: minmax(120px, 38%) 1fr;
	gap: 8px 12px;
	padding: 8px 0;
	border-bottom: 1px solid rgba(220, 226, 243, .5);
}

.crm-customer-profile-dl__row:last-child {
	border-bottom: 0;
}

.crm-customer-profile-dl dt {
	margin: 0;
	color: #737d91;
	font-size: 12px;
	font-weight: 500;
}

.crm-customer-profile-dl dd {
	margin: 0;
	color: #151c27;
	font-size: 13px;
	word-break: break-word;
}

.crm-customers-cell-notes {
	max-width: 160px;
}

.crm-phone-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #b8860b;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
	border: 0;
	background: transparent;
	padding: 0;
	font: inherit;
	cursor: pointer;
}

.crm-phone-link--loading {
	cursor: wait;
	pointer-events: none;
}

.crm-phone-link--loading .crm-phone-link__number {
	opacity: 0.55;
}

.crm-phone-link--loading .crm-phone-link__icon {
	animation: crm-phone-spin 0.85s linear infinite;
}

.crm-phone-link .material-symbols-outlined,
.crm-phone-link__icon {
	font-size: 18px;
	line-height: 1;
}

@keyframes crm-phone-spin {
	from {
		transform: rotate(0deg);
	}
	to {
		transform: rotate(360deg);
	}
}

.crm-dial-toast {
	position: fixed;
	bottom: 1.25rem;
	right: 1.25rem;
	z-index: 9999;
	max-width: 22rem;
	margin: 0;
	display: inline-flex;
	align-items: center;
	gap: 0.65rem;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.crm-ringcentral-call-banner {
	position: fixed;
	top: 1rem;
	left: 50%;
	transform: translateX(-50%);
	z-index: 10000;
	width: min(32rem, calc(100vw - 2rem));
	margin: 0;
	padding: 0;
	border-radius: 12px;
	background: #fff;
	border: 1px solid rgba(184, 134, 11, 0.35);
	box-shadow: 0 12px 40px rgba(15, 23, 42, 0.14);
}

.crm-ringcentral-call-banner--done .crm-ringcentral-call-banner__spinner {
	display: none;
}

.crm-ringcentral-call-banner--error {
	border-color: rgba(220, 53, 69, 0.45);
}

.crm-ringcentral-call-banner__inner {
	display: flex;
	align-items: flex-start;
	gap: 0.85rem;
	padding: 1rem 1.1rem;
}

.crm-ringcentral-call-banner__icon {
	flex-shrink: 0;
	font-size: 28px;
	color: #b8860b;
}

.crm-ringcentral-call-banner--error .crm-ringcentral-call-banner__icon {
	color: #dc3545;
}

.crm-ringcentral-call-banner__body {
	flex: 1;
	min-width: 0;
}

.crm-ringcentral-call-banner__title {
	display: block;
	font-size: 0.95rem;
	margin-bottom: 0.2rem;
}

.crm-ringcentral-call-banner__label {
	margin: 0 0 0.35rem;
	font-size: 0.875rem;
	color: #334155;
}

.crm-ringcentral-call-banner__hint {
	margin: 0 0 0.5rem;
	font-size: 0.75rem;
	color: #64748b;
}

.crm-ringcentral-call-banner__numbers {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.5rem 1rem;
	margin: 0;
	font-size: 0.8rem;
}

.crm-ringcentral-call-banner__numbers dt {
	margin: 0;
	font-weight: 600;
	color: #64748b;
}

.crm-ringcentral-call-banner__numbers dd {
	margin: 0;
	font-weight: 600;
	color: #0f172a;
}

.crm-ringcentral-call-banner__spinner {
	flex-shrink: 0;
	width: 1.25rem;
	height: 1.25rem;
	margin-top: 0.15rem;
	border: 2px solid rgba(184, 134, 11, 0.25);
	border-top-color: #b8860b;
	border-radius: 50%;
	animation: crm-phone-spin 0.85s linear infinite;
}

.crm-rc-widget-staging {
	position: fixed;
	left: -10000px;
	top: 0;
	width: 0;
	height: 0;
	overflow: hidden;
	opacity: 0;
	pointer-events: none;
	visibility: hidden;
	z-index: -1;
}

/* Hide every RingCentral embed until the CRM phone panel is deliberately opened. */
body.crm-rc-widget-suppressed iframe[src*="ringcentral.com"],
body.crm-rc-widget-suppressed #rc-widget-adapter-frame,
body.crm-rc-widget-suppressed [id*="rc-widget"],
body.crm-rc-widget-suppressed [class*="RcAdapter"],
body.crm-rc-widget-suppressed [data-test-automation-id="adapter"] {
	display: none !important;
	visibility: hidden !important;
	opacity: 0 !important;
	pointer-events: none !important;
	position: fixed !important;
	left: -10000px !important;
	top: 0 !important;
	width: 0 !important;
	height: 0 !important;
	overflow: hidden !important;
	z-index: -1 !important;
}

.crm-rc-phone-fab {
	position: fixed;
	right: 1rem;
	bottom: 1rem;
	z-index: 9997;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3rem;
	height: 3rem;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: #b8860b;
	color: #fff;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.2);
	cursor: pointer;
}

.crm-rc-phone-fab .material-symbols-outlined {
	font-size: 1.35rem;
}

.crm-rc-phone-fab[hidden] {
	display: none !important;
}

.crm-rc-phone-dock {
	position: fixed;
	right: 1rem;
	bottom: 1rem;
	z-index: 9998;
	width: min(22rem, calc(100vw - 2rem));
	max-height: min(34rem, calc(100vh - 2rem));
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid rgba(184, 134, 11, 0.35);
	border-radius: 12px;
	box-shadow: 0 16px 48px rgba(15, 23, 42, 0.18);
	overflow: hidden;
	opacity: 0;
	transform: translate3d(0, 10px, 0) scale(0.98);
	visibility: hidden;
	pointer-events: none;
	transition:
		opacity 0.22s ease,
		transform 0.22s ease,
		visibility 0.22s ease;
	will-change: opacity, transform;
}

.crm-rc-phone-dock--closed {
	display: none !important;
}

.crm-rc-phone-dock--preparing {
	display: flex !important;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translate3d(0, 10px, 0) scale(0.98);
}

.crm-rc-phone-dock--open {
	display: flex !important;
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translate3d(0, 0, 0) scale(1);
}

body.crm-rc-phone-panel-open .crm-rc-phone-fab {
	display: none;
}

/* RingCentral iframe stays off-screen until the CRM phone panel is open. */
body:not(.crm-rc-phone-panel-open) #rc-widget-adapter-frame,
.crm-rc-widget-staging #rc-widget-adapter-frame {
	position: absolute !important;
	left: -10000px !important;
	top: 0 !important;
	width: 1px !important;
	height: 1px !important;
	opacity: 0 !important;
	pointer-events: none !important;
	overflow: hidden !important;
	visibility: hidden !important;
}

.crm-rc-phone-dock__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 0.75rem 0.85rem 0.35rem;
	border-bottom: 1px solid #f1f5f9;
}

.crm-rc-phone-dock__title {
	margin: 0;
	font-size: 0.95rem;
	font-weight: 700;
	color: #0f172a;
}

.crm-rc-phone-dock__status {
	margin: 0.15rem 0 0;
	font-size: 0.75rem;
	color: #64748b;
}

.crm-rc-phone-dock__status--ready {
	color: #15803d;
}

.crm-rc-phone-dock__status--warn {
	color: #b45309;
}

.crm-rc-phone-dock__status--error {
	color: #dc2626;
}

.crm-rc-phone-dock__hint {
	margin: 0;
	padding: 0.35rem 0.85rem 0.5rem;
	font-size: 0.72rem;
	line-height: 1.35;
	color: #64748b;
}

.crm-rc-phone-dock__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	justify-content: flex-end;
}

.crm-rc-phone-dock__btn {
	font-size: 0.72rem;
	padding: 0.2rem 0.55rem;
	border: 1px solid #cbd5e1;
	background: #fff;
	color: #334155;
}

.crm-rc-phone-dock__btn--danger {
	border-color: #fecaca;
	color: #b91c1c;
}

.crm-rc-phone-dock__widget {
	flex: 1;
	min-height: 22rem;
	background: #f8fafc;
	position: relative;
	overflow: hidden;
}

.crm-rc-phone-dock__widget-loading {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.65rem;
	background: #f8fafc;
	color: #64748b;
	font-size: 0.8rem;
}

.crm-rc-phone-dock__widget-loading[hidden] {
	display: none !important;
}

.crm-rc-phone-dock__widget-loading-spinner {
	width: 1.35rem;
	height: 1.35rem;
	border: 2px solid rgba(184, 134, 11, 0.2);
	border-top-color: #b8860b;
	border-radius: 50%;
	animation: crm-phone-spin 0.85s linear infinite;
}

body.crm-rc-phone-panel-open .crm-rc-phone-dock__widget iframe,
body.crm-rc-phone-panel-open #crm-rc-phone-dock__widget #rc-widget-adapter-frame {
	display: block !important;
	position: relative !important;
	inset: auto !important;
	left: auto !important;
	top: auto !important;
	width: 100% !important;
	height: 22rem !important;
	max-height: none !important;
	border: 0 !important;
	box-shadow: none !important;
	opacity: 1 !important;
	visibility: visible !important;
	pointer-events: auto !important;
}

.crm-phone-link__number {
	text-decoration: inherit;
}

.crm-phone-link:hover {
	text-decoration: underline;
}

.crm-phone-link:hover .crm-phone-link__number {
	text-decoration: underline;
}

.material-symbols-outlined {
	font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
	display: inline-block;
	line-height: 1;
	user-select: none;
	vertical-align: middle;
}

.crm-directory-actions {
	display: flex;
	align-items: center;
	gap: 12px;
}

a.crm-invite-user {
	text-decoration: none;
}

.crm-dashboard-kpis .col-lg-3 {
	flex: 0 0 auto;
}

@media (min-width: 992px) {
	.crm-dashboard-kpis > .col-lg-3 {
		width: 20%;
		max-width: 20%;
	}
}

.crm-dashboard-cards {
	margin-bottom: 24px;
}

.crm-dash-card {
	display: grid;
	gap: 8px;
	padding: 20px;
	border: 1px solid #e6e9f1;
	border-radius: 12px;
	background: #fff;
}

.crm-dash-card span {
	color: #737d91;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.crm-dash-card strong {
	font-size: 28px;
	letter-spacing: -.03em;
}

.crm-dash-card small,
.crm-dash-card p {
	margin: 0;
	color: #737d91;
	font-size: 13px;
}

.crm-dash-card a {
	color: #745b00;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
}

.crm-users-table.table {
	--bs-table-bg: transparent;
	--bs-table-hover-bg: #fafbfe;
	--bs-table-striped-bg: transparent;
	border-color: transparent;
}

.crm-users-table.table > :not(caption) > * > * {
	background-color: transparent;
	border-bottom-color: #edf0f5;
	box-shadow: none;
}

.crm-invite-user,
.crm-modal-primary,
.btn.crm-invite-user,
.btn.crm-modal-primary {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	border: 0;
	border-radius: 12px;
	background: #f5c518;
	color: #151c27;
	cursor: pointer;
	font: inherit;
	font-size: 14px;
	font-weight: 700;
}

.crm-invite-user-secondary {
	background: #e7eefe;
	color: #151c27;
	border: 0;
	border-radius: 12px;
	cursor: pointer;
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	display: inline-flex;
    align-items: center;
}

.crm-invite-user:hover,
.crm-modal-primary:hover,
.btn.crm-invite-user:hover,
.btn.crm-modal-primary:hover,
.btn.crm-invite-user:focus-visible,
.btn.crm-modal-primary:focus-visible {
	background: #e6b113;
	color: #151c27;
}

.crm-invite-user .material-symbols-outlined,
.crm-modal-primary .material-symbols-outlined {
	font-size: 20px;
	font-variation-settings: "FILL" 0, "wght" 700, "GRAD" 0, "opsz" 24;
}

.crm-user-notice {
	margin-bottom: 16px;
	padding: 12px 14px;
	border-radius: 10px;
	font-size: 13px;
}

.crm-user-notice--success {
	border: 1px solid #b7ebd3;
	background: #eefbf4;
	color: #14764e;
}

.crm-user-notice--error {
	border: 1px solid #fecaca;
	background: #fef2f2;
	color: #991b1b;
}

body.crm-modal-open,
body.modal-open {
	overflow: hidden;
	overscroll-behavior: none;
}

.crm-add-user-modal.modal {
	--bs-modal-width: 672px;
	--crm-modal-viewport-gap: 1rem;
}

/* Scrollable CRM modals: form wraps header/body/footer, so flex + overflow live on the form. */
.crm-add-user-modal .modal-dialog {
	max-height: calc(100dvh - (var(--crm-modal-viewport-gap) * 2));
	max-height: calc(100vh - (var(--crm-modal-viewport-gap) * 2));
	margin-top: var(--crm-modal-viewport-gap);
	margin-bottom: var(--crm-modal-viewport-gap);
}

.crm-add-user-modal .modal-dialog.modal-dialog-centered {
	min-height: calc(100% - (var(--crm-modal-viewport-gap) * 2));
}

.crm-add-user-modal .modal-dialog.modal-dialog-scrollable {
	height: calc(100% - (var(--crm-modal-viewport-gap) * 2));
}

.crm-add-user-dialog.modal-content {
	display: flex;
	flex-direction: column;
	max-height: 100%;
	overflow: hidden;
	border: 1px solid #dce2f3;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 24px 60px rgba(15, 23, 42, .24);
	color: #151c27;
}

.crm-add-user-form {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	width: 100%;
	min-height: 0;
	max-height: 100%;
	overflow: hidden;
}

.crm-add-user-header,
.crm-add-user-footer,
.modal-header.crm-add-user-header,
.modal-footer.crm-add-user-footer {
	display: flex;
	flex: 0 0 auto;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	padding: 20px 24px;
	border-bottom: 1px solid rgba(220, 226, 243, .6);
	background: rgba(240, 243, 255, .4);
}

.modal-header.crm-add-user-header,
.crm-add-user-header {
	position: sticky;
	top: 0;
	z-index: 3;
	background: rgba(240, 243, 255, .96);
	backdrop-filter: blur(6px);
}

.crm-add-user-footer,
.modal-footer.crm-add-user-footer {
	position: sticky;
	bottom: 0;
	z-index: 2;
	align-items: center;
	justify-content: flex-end;
	border-bottom: 0;
	border-top: 1px solid rgba(220, 226, 243, .6);
	background: rgba(240, 243, 255, .96);
	backdrop-filter: blur(6px);
}

.crm-add-user-title-row {
	display: flex;
	align-items: center;
	gap: 8px;
}

.crm-add-user-icon {
	display: inline-flex;
	width: 32px;
	height: 32px;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
	background: #f5c518;
	color: #241a00;
}

.crm-add-user-icon .material-symbols-outlined {
	font-size: 18px;
	font-weight: 700;
}

.crm-add-user-heading h2 {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
}

.crm-add-user-heading p {
	margin: 6px 0 0;
	color: #4e4633;
	font-size: 12px;
	line-height: 1.4;
}

.crm-modal-icon-button {
	padding: 6px;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: #4e4633;
	cursor: pointer;
}

.crm-modal-icon-button:hover {
	background: #e7eefe;
	color: #151c27;
}

.crm-date-input {
	cursor: pointer;
}

body.crm-app .flatpickr-calendar {
	border-radius: 8px;
	border-color: #e2e6ef;
	box-shadow: 0 8px 24px rgba(21, 28, 39, .12);
	font-family: inherit;
}

body.crm-app .flatpickr-day.selected,
body.crm-app .flatpickr-day.startRange,
body.crm-app .flatpickr-day.endRange {
	background: #745b00;
	border-color: #745b00;
}

body.crm-app .flatpickr-day.selected:hover,
body.crm-app .flatpickr-day.startRange:hover,
body.crm-app .flatpickr-day.endRange:hover {
	background: #5a4800;
	border-color: #5a4800;
}

body.crm-app .flatpickr-day.today {
	border-color: #745b00;
}

.crm-add-user-dialog {
	position: relative;
}

.crm-modal-loading {
	position: absolute;
	inset: 0;
	z-index: 10;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	border-radius: inherit;
	background: rgba(255, 255, 255, .92);
}

.crm-modal-loading__text {
	color: #737d91;
	font-size: 14px;
}

.crm-modal-loading.d-none {
	display: none !important;
}

.crm-add-user-modal:not(.show) .crm-modal-loading {
	display: none !important;
}

.crm-add-user-body {
	display: grid;
	flex: 1 1 auto;
	gap: 24px;
	min-height: 0;
	padding: 24px;
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
}

.crm-add-user-modal .modal-body.crm-add-user-body {
	/* Bootstrap scrollable modals also set overflow on .modal-body; keep one scroll region. */
	overflow-y: auto;
}

.crm-add-user-section {
	display: grid;
	gap: 16px;
}

.crm-add-user-section h3,
.crm-role-fieldset legend {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	color: #4e4633;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.crm-add-user-section h3 .material-symbols-outlined {
	font-size: 16px;
	color: #745b00;
}

.crm-add-user-form hr {
	margin: 0;
	border: 0;
	border-top: 1px solid rgba(220, 226, 243, .6);
}

.crm-avatar-field {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 12px;
	border: 1px solid rgba(220, 226, 243, .5);
	border-radius: 12px;
	background: #f0f3ff;
}

.crm-avatar-preview {
	display: flex;
	width: 56px;
	height: 56px;
	flex: 0 0 56px;
	align-items: center;
	justify-content: center;
	border: 2px dashed #d1c5ac;
	border-radius: 50%;
	background: #dce2f3 center / cover no-repeat;
	color: #4e4633;
}

.crm-avatar-preview.has-image {
	border-style: solid;
}

.crm-avatar-preview.has-image .material-symbols-outlined {
	display: none;
}

.crm-avatar-field strong {
	display: block;
	font-size: 12px;
}

.crm-avatar-field span {
	color: #4e4633;
	font-size: 12px;
}

.crm-avatar-actions {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 6px;
}

.crm-avatar-upload {
	display: inline-flex;
	padding: 4px 10px;
	border: 1px solid #dce2f3;
	border-radius: 8px;
	background: #fff;
	cursor: pointer;
	font-size: 12px;
	font-weight: 600;
}

.crm-avatar-upload input {
	display: none;
}

.crm-avatar-actions button {
	padding: 0;
	border: 0;
	background: transparent;
	color: #4e4633;
	cursor: pointer;
	font: inherit;
	font-size: 12px;
}

.crm-avatar-actions button:hover {
	color: #ba1a1a;
}

.crm-add-user-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.crm-add-user-form .form-label,
.crm-add-user-form label,
.crm-add-user-form .crm-role-fieldset legend {
	display: block;
	margin-bottom: 6px;
	font-size: 12px;
	font-weight: 500;
}

.crm-add-user-form label span,
.crm-required-mark {
	color: #ba1a1a;
}

.crm-add-user-form .form-control,
.crm-add-user-form .form-select,
.crm-add-user-form input[type="text"],
.crm-add-user-form input[type="email"],
.crm-add-user-form select {
	box-sizing: border-box;
	width: 100%;
	padding: 8px 12px;
	border: 1px solid #dce2f3;
	border-radius: 12px;
	background: #f0f3ff;
	color: #151c27;
	font: inherit;
	font-size: 14px;
	box-shadow: none;
}

.crm-add-user-form .form-control:focus,
.crm-add-user-form .form-select:focus,
.crm-add-user-form input:focus,
.crm-add-user-form select:focus {
	background: #fff;
	border-color: #f5c518;
	box-shadow: 0 0 0 2px #f5c518;
	outline: none;
}

.crm-input-icon {
	position: relative;
}

.crm-input-icon .material-symbols-outlined {
	position: absolute;
	top: 50%;
	left: 12px;
	font-size: 16px;
	color: #4e4633;
	pointer-events: none;
	transform: translateY(-50%);
}

.crm-input-icon input {
	padding-left: 36px;
}

.crm-role-fieldset {
	border: 0;
	padding: 0;
	margin: 0;
}

.crm-role-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

.crm-role-option,
.crm-setting-option {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 12px;
	border: 1px solid #dce2f3;
	border-radius: 12px;
	background: #f0f3ff;
	cursor: pointer;
}

.crm-role-option:has(input:checked) {
	border-color: #f5c518;
	background: rgba(245, 197, 24, .12);
}

.crm-role-option strong,
.crm-setting-option strong {
	display: block;
	font-size: 12px;
}

.crm-role-option small,
.crm-setting-option small {
	display: block;
	margin-top: 2px;
	color: #4e4633;
	font-size: 12px;
	line-height: 1.35;
}

.crm-setting-option {
	align-items: center;
}

.crm-add-user-form .form-check-input,
.crm-add-user-form input[type="radio"],
.crm-add-user-form input[type="checkbox"] {
	width: 16px;
	height: 16px;
	margin-top: 2px;
	flex-shrink: 0;
	accent-color: #f5c518;
	cursor: pointer;
}

.crm-add-user-form .form-check-input:checked {
	background-color: #f5c518;
	border-color: #f5c518;
}

.crm-add-user-footer span {
	color: #4e4633;
	font-size: 12px;
}

.crm-add-user-footer div {
	display: flex;
	align-items: center;
	gap: 12px;
}

.crm-modal-secondary,
.btn.crm-modal-secondary {
	padding: 8px 16px;
	border: 0;
	border-radius: 12px;
	background: #e7eefe;
	color: #151c27;
	cursor: pointer;
	font: inherit;
	font-size: 12px;
	font-weight: 600;
}

.crm-modal-secondary:hover,
.btn.crm-modal-secondary:hover {
	background: #dce2f3;
	color: #151c27;
}

@media (max-width: 900px) {
	.crm-sidebar {
		width: min(280px, 85vw);
		padding: 16px;
		transform: translateX(-100%);
	}

	.crm-dashboard.is-sidebar-open .crm-sidebar {
		transform: translateX(0);
	}

	.crm-dashboard.is-sidebar-collapsed .crm-sidebar {
		transform: translateX(-100%);
	}

	.crm-sidebar-brand {
		margin-bottom: 18px;
	}

	.crm-nav {
		grid-template-columns: 1fr;
	}

	.crm-sidebar-bottom {
		margin-top: 18px;
	}

	.crm-dashboard-main {
		margin-left: 0;
	}

	.crm-dashboard-header {
		padding: 16px 20px;
	}

	.crm-directory {
		padding: 22px 16px;
	}
}

@media (min-width: 901px) {
	.crm-sidebar-backdrop {
		display: none;
	}
}

@media (max-width: 640px) {
	.crm-add-user-grid,
	.crm-role-grid {
		grid-template-columns: 1fr;
	}

	.crm-add-user-footer {
		flex-direction: column;
		align-items: stretch;
	}

	.crm-add-user-footer div {
		justify-content: flex-end;
	}
}

.crm-page-loader {
	position: fixed;
	inset: 0;
	z-index: 2000;
	display: flex;
	align-items: center;
	justify-content: center;
}

.crm-page-loader[hidden] {
	display: none !important;
}

.crm-page-loader__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(23, 32, 51, .45);
	backdrop-filter: blur(2px);
}

.crm-page-loader__panel {
	position: relative;
	z-index: 1;
	display: grid;
	gap: 12px;
	justify-items: center;
	padding: 28px 32px;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 24px 60px rgba(15, 23, 42, .24);
}

.crm-page-loader__text {
	margin: 0;
	color: #172033;
	font-size: 14px;
	font-weight: 600;
}

body.crm-page-loader-active {
	overflow: hidden;
}

.crm-add-user-form-alert {
	margin-bottom: 16px;
	font-size: 13px;
}

.crm-import-results {
	margin-bottom: 16px;
	padding: 12px 14px;
	border: 1px solid #e6e9f1;
	border-radius: 10px;
	background: #fafbfe;
	font-size: 12px;
}

.crm-import-errors-list {
	margin: 0;
	padding-left: 18px;
	color: #737d91;
}

.crm-customer-avatar-wrap .crm-presence-dot {
	display: none;
}

.crm-edit-user-btn .material-symbols-outlined {
	font-size: 18px;
}

.crm-add-user-form .invalid-feedback {
	display: none;
	font-size: 12px;
}

.crm-add-user-form .form-control.is-invalid ~ .invalid-feedback,
.crm-add-user-form .form-select.is-invalid ~ .invalid-feedback,
.crm-add-user-form [data-error-for].d-block:not(:empty) {
	display: block;
}

@media (max-width: 520px) {
	.crm-directory-title {
		align-items: flex-start;
		flex-direction: column;
	}

	.crm-directory-actions {
		width: 100%;
		flex-wrap: wrap;
	}

	.crm-user-search {
		flex-wrap: wrap;
	}

	.crm-user-search input {
		flex-basis: 100%;
	}

	.crm-current-user {
		font-size: 0;
	}
}

/* ---------------------------------------------------------------- Customer drawer (pipeline) */

body.crm-drawer-open {
	overflow: hidden;
}

.crm-drawer {
	position: fixed;
	inset: 0;
	z-index: 1045;
	pointer-events: none;
}

.crm-drawer[hidden] {
	display: none !important;
}

.crm-drawer__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(23, 32, 51, .28);
	opacity: 0;
	transition: opacity .28s ease;
	pointer-events: auto;
}

.crm-drawer__panel {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	display: flex;
	width: min(820px, calc(100vw - 72px));
	background: #f7f8fc;
	box-shadow: -18px 0 40px rgba(15, 23, 42, .18);
	transform: translateX(100%);
	transition: transform .28s cubic-bezier(.22, .61, .36, 1);
	pointer-events: auto;
	outline: none;
}

.crm-drawer.is-open .crm-drawer__backdrop {
	opacity: 1;
}

.crm-drawer.is-open .crm-drawer__panel {
	transform: translateX(0);
}

@media (prefers-reduced-motion: reduce) {
	.crm-drawer__backdrop,
	.crm-drawer__panel {
		transition: none;
	}
}

.crm-drawer [hidden] {
	display: none !important;
}

.crm-drawer__toolbar {
	display: flex;
	flex: 0 0 64px;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 16px 0;
	background: #172033;
	overflow-y: auto;
}

.crm-drawer__tool {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 12px;
	background: transparent;
	color: #c3cbe0;
	transition: background-color .15s ease, color .15s ease;
}

.crm-drawer__tool:hover,
.crm-drawer__tool:focus-visible {
	background: rgba(255, 255, 255, .1);
	color: #fff;
	outline: none;
}

.crm-drawer__tool.is-active {
	background: #f5c518;
	color: #172033;
}

.crm-drawer__tool::after {
	content: attr(data-tooltip);
	position: absolute;
	left: calc(100% + 10px);
	top: 50%;
	z-index: 5;
	padding: 4px 8px;
	border-radius: 6px;
	background: #0f172a;
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	white-space: nowrap;
	opacity: 0;
	transform: translate(-4px, -50%);
	transition: opacity .12s ease, transform .12s ease;
	pointer-events: none;
}

.crm-drawer__tool:hover::after,
.crm-drawer__tool:focus-visible::after {
	opacity: 1;
	transform: translate(0, -50%);
}

.crm-drawer__tool-badge {
	position: absolute;
	top: 3px;
	right: 2px;
	min-width: 16px;
	height: 16px;
	padding: 0 4px;
	border-radius: 999px;
	background: #e7eefe;
	color: #172033;
	font-size: 10px;
	font-weight: 700;
	line-height: 16px;
}

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

.crm-drawer__header {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 10px 12px;
	padding: 18px 22px 14px;
	border-bottom: 1px solid #dce2f3;
	background: #fff;
}

.crm-drawer__identity {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}

.crm-drawer__avatar {
	display: inline-flex;
	flex: 0 0 44px;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: #fff4c7;
	color: #745b00;
	font-size: 15px;
	font-weight: 700;
}

.crm-drawer__identity-text {
	min-width: 0;
}

.crm-drawer__eyebrow {
	margin: 0;
	color: #745b00;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
}

.crm-drawer__title {
	margin: 0;
	overflow: hidden;
	font-size: 18px;
	font-weight: 700;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.crm-drawer__sub {
	margin: 0;
	color: #737d91;
	font-size: 12px;
}

.crm-drawer__header-actions {
	display: flex;
	align-items: flex-start;
	gap: 8px;
}

.crm-drawer__header-actions .btn {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.crm-drawer__header-actions .material-symbols-outlined {
	font-size: 16px;
}

.crm-drawer__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border: 1px solid #dce2f3;
	border-radius: 10px;
	background: #fff;
	color: #4e5568;
}

.crm-drawer__close:hover {
	background: #f0f3fb;
}

.crm-drawer__chips {
	display: flex;
	flex-wrap: wrap;
	grid-column: 1 / -1;
	gap: 6px;
}

.crm-drawer__chip {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 3px 9px;
	border: 1px solid #dce2f3;
	border-radius: 999px;
	background: #f8f9fc;
	color: #4e4633;
	font-size: 11px;
	font-weight: 600;
}

.crm-drawer__chip .material-symbols-outlined {
	font-size: 14px;
}

.crm-drawer__chip--stage {
	border-color: #f5c518;
	background: #fff8db;
}

.crm-drawer__chip--overdue {
	border-color: #f3b4ae;
	background: #fdecea;
	color: #b42318;
}

.crm-drawer__notice {
	margin: 12px 22px 0;
	padding: 8px 12px;
	border-radius: 8px;
	font-size: 13px;
}

.crm-drawer__notice--success {
	background: #e8f6ee;
	color: #1d6b3d;
}

.crm-drawer__notice--danger {
	background: #fdecea;
	color: #b42318;
}

.crm-drawer__content {
	flex: 1 1 auto;
	min-height: 0;
	padding: 18px 22px 28px;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.crm-drawer__state {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	min-height: 240px;
	color: #4e5568;
	text-align: center;
}

.crm-drawer__state p {
	margin: 0;
	max-width: 360px;
}

.crm-drawer__state--error p {
	color: #b42318;
}

.crm-drawer__pane-title {
	margin: 0 0 12px;
	font-size: 16px;
	font-weight: 700;
}

.crm-drawer__section-title {
	margin: 20px 0 8px;
	color: #4e5568;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .03em;
	text-transform: uppercase;
}

.crm-drawer__hint {
	margin: 0 0 12px;
	color: #737d91;
	font-size: 12px;
}

.crm-drawer__readonly {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0 0 12px;
	padding: 8px 12px;
	border-radius: 8px;
	background: #eef1f8;
	color: #4e5568;
	font-size: 12px;
}

.crm-drawer__readonly .material-symbols-outlined {
	font-size: 16px;
}

.crm-drawer__subtabs {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin-bottom: 14px;
	padding: 4px;
	border: 1px solid #dce2f3;
	border-radius: 10px;
	background: #fff;
}

.crm-drawer__subtab {
	padding: 6px 12px;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: #4e5568;
	font-size: 12px;
	font-weight: 600;
}

.crm-drawer__subtab:hover {
	background: #f0f3fb;
}

.crm-drawer__subtab.is-active {
	background: #172033;
	color: #fff;
}

.crm-drawer__card {
	margin-bottom: 12px;
	padding: 14px 16px;
	border: 1px solid #dce2f3;
	border-radius: 12px;
	background: #fff;
}

.crm-drawer__card--highlight {
	border-color: #f5c518;
	box-shadow: inset 3px 0 0 #f5c518;
}

.crm-drawer__card-title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin: 0 0 10px;
	font-size: 13px;
	font-weight: 700;
}

.crm-drawer__dl {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 10px 16px;
	margin: 0;
}

.crm-drawer__dl dt {
	color: #737d91;
	font-size: 11px;
	font-weight: 600;
}

.crm-drawer__dl dd {
	margin: 2px 0 0;
	font-size: 13px;
	overflow-wrap: anywhere;
	white-space: pre-line;
}

.crm-drawer__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.crm-drawer__item {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 8px;
	padding: 10px 12px;
	border: 1px solid #dce2f3;
	border-radius: 10px;
	background: #fff;
}

.crm-drawer__item--stack {
	flex-direction: column;
	align-items: stretch;
}

.crm-drawer__item-row {
	display: flex;
	align-items: flex-start;
	gap: 10px;
}

.crm-drawer__item.is-current {
	border-color: #f5c518;
}

.crm-drawer__item.is-overdue {
	border-color: #f3b4ae;
}

.crm-drawer__item-icon {
	display: inline-flex;
	color: #745b00;
}

.crm-drawer__item-main {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	min-width: 0;
	font-size: 13px;
}

.crm-drawer__item-main a {
	color: inherit;
}

.crm-drawer__item-note {
	margin: 4px 0 0;
	color: #4e5568;
	font-size: 12px;
	white-space: pre-line;
}

.crm-drawer__item-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	padding-left: 34px;
}

.crm-drawer__item-actions .btn,
.crm-drawer__note-actions .btn {
	padding: 0 4px;
	font-size: 12px;
}

.crm-drawer__meta {
	color: #737d91;
	font-size: 11px;
}

.crm-drawer__status {
	flex: 0 0 auto;
	padding: 2px 8px;
	border-radius: 999px;
	background: #eef1f8;
	color: #4e5568;
	font-size: 11px;
	font-weight: 600;
}

.crm-drawer__status--completed {
	background: #e8f6ee;
	color: #1d6b3d;
}

.crm-drawer__status--cancelled,
.crm-drawer__status--no_show {
	background: #f3f4f6;
	color: #6b7280;
}

.crm-drawer__status--scheduled,
.crm-drawer__status--in_progress {
	background: #fff8db;
	color: #745b00;
}

.crm-drawer__timeline {
	margin: 0;
	padding: 0 0 0 14px;
	border-left: 2px solid #dce2f3;
	list-style: none;
}

.crm-drawer__timeline li {
	position: relative;
	margin-bottom: 14px;
	font-size: 13px;
}

.crm-drawer__timeline li::before {
	content: "";
	position: absolute;
	left: -20px;
	top: 4px;
	width: 10px;
	height: 10px;
	border: 2px solid #f5c518;
	border-radius: 50%;
	background: #fff;
}

.crm-drawer__timeline p {
	margin: 2px 0;
}

.crm-drawer__timeline-label {
	color: #745b00;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
}

.crm-drawer__more-link {
	margin: 8px 0 0;
	font-size: 12px;
}

.crm-drawer__more-link a {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	color: #745b00;
}

.crm-drawer__more-link .material-symbols-outlined {
	font-size: 14px;
}

.crm-drawer__empty {
	margin: 0;
	padding: 18px;
	border: 1px dashed #d5dcee;
	border-radius: 10px;
	color: #737d91;
	font-size: 13px;
	text-align: center;
}

.crm-drawer__inline-state {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 0;
	color: #737d91;
	font-size: 13px;
}

.crm-drawer__inline-state--error {
	color: #b42318;
}

.crm-drawer__phones {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.crm-drawer__phone {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	border: 1px solid #dce2f3;
	border-radius: 10px;
	background: #fff;
}

.crm-drawer__phone-label {
	flex: 0 0 56px;
	color: #737d91;
	font-size: 12px;
	font-weight: 600;
}

.crm-drawer__thread {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.crm-drawer__bubble {
	max-width: 78%;
	padding: 8px 12px;
	border-radius: 14px;
	font-size: 13px;
}

.crm-drawer__bubble p {
	margin: 0 0 2px;
	white-space: pre-line;
}

.crm-drawer__bubble--in {
	align-self: flex-start;
	border: 1px solid #dce2f3;
	border-bottom-left-radius: 4px;
	background: #fff;
}

.crm-drawer__bubble--out {
	align-self: flex-end;
	border-bottom-right-radius: 4px;
	background: #fff4c7;
}

.crm-drawer__form {
	margin-bottom: 18px;
	padding: 14px 16px;
	border: 1px solid #dce2f3;
	border-radius: 12px;
	background: #fff;
}

.crm-drawer__form .form-label {
	font-size: 12px;
	font-weight: 600;
}

.crm-drawer__form .btn .material-symbols-outlined {
	font-size: 16px;
	vertical-align: -3px;
}

.crm-drawer__form-actions {
	display: flex;
	justify-content: flex-end;
	gap: 8px;
	margin-top: 10px;
}

.crm-drawer__dropzone {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	margin-bottom: 10px;
	padding: 22px 12px;
	border: 2px dashed #d5dcee;
	border-radius: 12px;
	color: #4e5568;
	font-size: 13px;
	text-align: center;
	cursor: pointer;
	transition: border-color .15s ease, background-color .15s ease;
}

.crm-drawer__dropzone:hover,
.crm-drawer__dropzone.is-over,
.crm-drawer__upload input:focus-visible + .crm-drawer__dropzone {
	border-color: #f5c518;
	background: #fffbea;
}

.crm-drawer__dropzone .material-symbols-outlined {
	color: #745b00;
	font-size: 28px;
}

.crm-drawer__dropzone small {
	color: #737d91;
	font-size: 11px;
}

.crm-drawer__progress {
	height: 6px;
	margin-bottom: 10px;
}

.crm-drawer__note {
	margin-bottom: 10px;
	padding: 12px 14px;
	border: 1px solid #dce2f3;
	border-radius: 10px;
	background: #fff;
}

.crm-drawer__note-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 8px;
	font-size: 13px;
}

.crm-drawer__note-actions {
	margin-left: auto;
}

.crm-drawer__note-body {
	margin: 6px 0 0;
	font-size: 13px;
	white-space: pre-line;
	overflow-wrap: anywhere;
}

.crm-drawer__note-edit {
	margin-top: 8px;
}

@media (max-width: 767.98px) {
	.crm-drawer__panel {
		width: 100vw;
	}

	.crm-drawer__toolbar {
		flex-basis: 52px;
		gap: 4px;
		padding: 10px 0;
	}

	.crm-drawer__tool {
		width: 40px;
		height: 40px;
	}

	.crm-drawer__tool::after {
		display: none;
	}

	.crm-drawer__header {
		grid-template-columns: 1fr;
		padding: 14px 14px 12px;
	}

	.crm-drawer__header-actions {
		justify-content: space-between;
	}

	.crm-drawer__content {
		padding: 14px;
	}

	.crm-drawer__notice {
		margin: 10px 14px 0;
	}

	.crm-drawer__dl {
		grid-template-columns: 1fr;
	}
}
