/* ==================================================
   01. DESIGN TOKENS
================================================== */
:root {
	--color-primary: #003399;
	/* Royal blue – main branding, nav, headers */
	--color-primary-dark: #003366;
	/* Darker blue – panels, borders */
	--color-primary-cta: #006666;
	/* Blue variant – Add/primary CTA, matches primary */
	--color-accent: #cc0000;
	/* Red – CTAs, alerts, highlights */
	--color-bg-muted: #f1f5f9;
	/* Light gray – cards, subtle backgrounds */
	--color-text-primary: #000066;
	/* Navy – body text, headings */
	--color-highlight: #ffcc00;
	/* Yellow – highlights, badges */
	--color-surface: #ffffff;

	/* Reusable UI tokens – use these for consistent cards, tables, forms */
	--radius-sm: 8px;
	--radius-md: 12px;
	--shadow-card: 0 1px 3px rgba(0, 51, 153, 0.08);
	--shadow-panel: 0 0 30px 0 rgba(0, 0, 0, 0.05);
	--border-default: 1px solid rgba(0, 51, 102, 0.15);
	--border-subtle: 1px solid rgba(0, 51, 102, 0.08);
	--gray-100: #f1f5f9;
	--gray-200: #e2e8f0;
	--gray-300: #cbd5e1;
	--gray-400: #94a3b8;
	--gray-500: #64748b;
	--gray-600: #475569;
	--gray-800: #1e293b;
	--color-neutral-100: #fbfbfb;
	--color-neutral-200: #dddddd;
	--color-neutral-300: #e5e7eb;
	--color-neutral-500: #555555;
	--color-text-secondary: #343434;
	--color-text-muted: #7a7a7a;
	--color-text-muted-alt: #849ab6;
	--color-border-light: #dcdcdc;
	--color-bg-highlight: #edf5ff;
	--color-success: #1dc653;
	--color-warning: #ea7b25;
	--color-danger: #cc0000;
	--color-info: #17a2b8;
	--color-info-alt: #229bff;
	--pipeline-stage-1: #7f7f7f;
	--pipeline-stage-2: #f2c572;
	--pipeline-stage-3: #81a489;
	--pipeline-stage-4: #c04c31;
	--pipeline-stage-5: #3597dc;
	--color-plans-neutral: #b3b4b8;
	--color-outline-danger: #ff5858;
	--color-link: #007bff;
	--color-auth-subtitle: #f6eafd;
	--color-auth-heading: #1e1d2f;
	--color-text-tertiary: #5d5d5d;
	--color-label-muted: #9d9d9d;
	--color-link-muted: #8d8cb4;
	--color-input-border: #d5d5dc;
	--color-topbar-muted: #6b7280;
	--color-topbar-text: #111827;
	--color-topbar-hover-bg: #f3f4f6;
	--color-topbar-active-bg: #e5e7eb;
	--color-icon-bg: #e8eef4;
	--color-icon-text: #4b5563;
	--color-icon-text-hover: #374151;
	--color-border-topbar: #e5e7eb;
	--color-border-input: #d1d5db;
	--color-subscription-heading: #222222;
	--color-subscription-text: #555555;
	--color-card-body-text: #565656;
	--color-dropdown-text: #707070;
	--color-widget-muted: #dbdbdb;
	--color-static-1: #7f7f7f;
	--color-static-2: #fcc155;
	--color-static-3: #60bc75;
	--color-static-4: #db6144;
	--color-static-5: #957eb3;
	--color-static-6: #008df0;
	--color-static-7: #26ae5f;
	--color-text-dark: #666666;
	--color-drag-muted: #b1b1b1;
	--color-drag-icon: #a6a6a6;
	--color-timeline-link: #97b6d7;
	--color-badge-bg: #fef2f2;
	--color-badge-border: #a7f3d0;
	--color-badge-text-success: #065f46;
	--color-success-bg: #ecfdf5;
	--color-mail-bg: #f4f6f8;
	--color-mail-text: #7f7f7f;
	--color-card-heading: #343438;
	--color-border-mail: #dedede;
	--color-feedback-text: #787878;
	--color-anchor: #3c4b84;
	--color-divider: #f1f1f1;
	--color-table-border: #dee2e6;
	--color-card-header-accent: #da78aa;
	--color-progress-bg: #f5f5f5;
	--color-modal-border: #fff;
	--color-sortable-border: #22c0e8;
	--color-timeline-text: #424242;
	--color-heading-dark: #242424;
	--color-text-muted-secondary: #676b6c;
	--color-loading-muted: #9a9a9a;
	--color-text-black: #000000;
	--color-bg-subtle: #f9fafb;
	--color-button-secondary: #458cfc;
}

/* ==================================================
   02. BASE STYLES
================================================== */
/* (Base typography and resets live in Layout below) */

/* ==================================================
   03. CORE UI COMPONENTS
================================================== */
.ui-card {
	background: var(--color-surface);
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-card);
	border: var(--border-default);
	overflow: hidden;
}

.ui-table-wrap {
	background: var(--color-surface);
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-card);
	border: var(--border-default);
	overflow-x: auto;
	margin-bottom: 1rem;
	-webkit-overflow-scrolling: touch;
}

.ui-table-wrap::-webkit-scrollbar {
	height: 8px;
}

.ui-table-wrap::-webkit-scrollbar-track {
	background: var(--color-bg-muted);
	border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.ui-table-wrap::-webkit-scrollbar-thumb {
	background: rgba(0, 51, 102, 0.25);
	border-radius: 4px;
}

.ui-table-wrap::-webkit-scrollbar-thumb:hover {
	background: var(--color-primary-dark);
}

.ui-empty {
	text-align: center;
	padding: 3rem 2rem;
}

.ui-empty__icon {
	font-size: 2.5rem;
	color: var(--gray-300);
	margin-bottom: 1rem;
}

.ui-empty__title {
	margin: 0 0 0.35rem 0;
	font-size: 1rem;
	font-weight: 600;
	color: var(--color-text-primary);
}

.ui-empty__text {
	margin: 0 0 1.25rem 0;
	font-size: 0.875rem;
	color: var(--gray-400);
}

.ui-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.5rem 1rem;
	font-size: 0.875rem;
	font-weight: 600;
	border-radius: var(--radius-sm);
	border: none;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
	white-space: nowrap;
}

.ui-btn--primary {
	background: var(--color-primary);
	color: var(--color-surface);
	box-shadow: 0 1px 2px rgba(0, 51, 153, 0.3);
}

.ui-btn--primary:hover {
	background: var(--color-primary-dark);
	color: var(--color-surface);
	box-shadow: 0 2px 4px rgba(0, 51, 153, 0.35);
}

.ui-btn--secondary {
	background: var(--color-surface);
	color: var(--color-text-primary);
	border: 1px solid var(--gray-200);
}

.ui-btn--secondary:hover {
	background: var(--color-bg-muted);
	color: var(--color-text-primary);
	border-color: var(--color-primary-dark);
}

.ui-summary {
	background: var(--color-surface);
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-card);
	border: var(--border-default);
	margin-top: 0;
	overflow: hidden;
}

.ui-summary__title {
	font-size: 0.95rem;
	font-weight: 600;
	margin: 0;
	padding: 1rem 1.25rem;
	border-bottom: var(--border-default);
	color: var(--color-text-primary);
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.ui-summary__body {
	padding: 0.5rem 0;
}

.ui-pagination {
	display: flex;
	justify-content: flex-end;
	flex-wrap: wrap;
	gap: 0.25rem;
}

.ui-pagination .pagination {
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem;
}

.ui-pagination .page-link,
.ui-pagination .page-item span {
	padding: 0.5rem 0.75rem;
	font-size: 0.875rem;
	border-radius: var(--radius-sm) !important;
	border: 1px solid var(--gray-200) !important;
	background: var(--color-surface) !important;
	color: var(--gray-600) !important;
}

.ui-pagination .page-item.active .page-link {
	background: var(--color-primary) !important;
	border-color: var(--color-primary) !important;
	color: var(--color-surface) !important;
}

.ui-pagination .page-item:not(.active) .page-link:hover {
	background: var(--color-bg-muted) !important;
	color: var(--color-text-primary) !important;
}

/* ==================================================
   04. LAYOUT
================================================== */
.login-wrapper *,
.page-wrapper * {
	font-family:
		"Inter",
		"Nunito",
		system-ui,
		-apple-system,
		"Segoe UI",
		sans-serif;
}

.page-wrapper .fa,
.page-wrapper .far,
.page-wrapper .fas,
.page-wrapper .fab {
	font-family: "Font Awesome 5 Free";
}

.page-wrapper .far {
	font-weight: 400;
}

.page-wrapper .fas {
	font-weight: 900;
}

.login-wrapper {
	background: var(--color-surface);
}

.auth-left {
	background: url('../img/auth-left-bg.png');
	background-size: cover;
	background-position: center center;
	background-color: var(--color-primary);
	min-height: 100vH;
	padding: 40px;
}

.login-text {
	position: relative;
	top: 50%;
	transform: translateY(-50%);
	margin-top: 0px;
}

.login-text h1 {
	color: var(--color-surface);
	font-weight: 900;
	font-size: 50px;
	font-family:
		"Inter",
		"Nunito",
		system-ui,
		-apple-system,
		"Segoe UI",
		sans-serif;
}

.login-text h4 {
	font-size: 30px;
	color: var(--color-auth-subtitle);
	font-weight: 700;
	font-family:
		"Inter",
		"Nunito",
		system-ui,
		-apple-system,
		"Segoe UI",
		sans-serif;
}

.login-container {
	max-width: 400px;
	margin: 0 auto;
	position: relative;
	top: 50%;
	transform: translateY(-50%);
}

.logo-login {
	width: 100%;
	max-width: 215px;
	display: block;
	margin-bottom: 20px;
}

.logo-login img {
	width: 100%;
}

.login-container h2 {
	font-size: 30px;
	color: var(--color-auth-heading);
	font-weight: 700;
}

.login-container p {
	color: var(--color-text-tertiary);
	font-size: 15px;
}


.login-container .form-group label {
	color: var(--color-label-muted);
	margin-bottom: 5px !important;
}

.login-container .form-group .forgot {
	color: var(--color-link-muted);
	margin-bottom: 5px !important;
	font-size: 13px;
	padding: 0;
	float: right;
}

.login-container .form-control {
	border: 1px solid var(--color-input-border);
	height: 60px;
	border-radius: 2px;
}

.login-container .form-control[type="password"] {
	letter-spacing: 4px;
}

.btn.btn-blue.btn-block {
	height: 60px;
	background: var(--color-primary);
	color: var(--color-surface);
	border-radius: 2px;
	font-size: 17px;
}

.navbar {
	background-color: var(--color-primary) !important;
	border: none;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
	-webkit-box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
	z-index: 999;
}

/* ==================================================
   05. FEATURES
   - Topbar (redesigned)
================================================== */
.topbar.topbar-modern {
	min-height: 77px;
	backdrop-filter: saturate(180%) blur(8px);
}


.topbar-modern .navbar-brand:hover {
	opacity: 0.9;
}

/* Logo lockup: graphic + "DISHA 1056" text (official logo style) */
.topbar-modern .navbar-brand.topbar-brand-logo {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	text-decoration: none;
}
.topbar-modern .navbar-brand.topbar-brand-logo .topbar-logo {
	display: block;
	flex-shrink: 0;
}
.topbar-modern .navbar-brand .topbar-brand-text {
	font-family: inherit;
	font-size: 1.35rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: #1a1a1a;
	line-height: 1.2;
	white-space: nowrap;
}

.topbar-modern .topbar-logo {
	height: 44px;
	width: auto;
	max-width: 280px;
	display: block;
	object-fit: contain;
}

/* Use dark logo on white bar; if only white logo exists, uncomment: .topbar-modern .topbar-logo { filter: brightness(0); } */
body:has(.topbar-modern) {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

body:has(.topbar-modern) .page-wrapper {
	flex: 1 0 auto;
}

body:has(.topbar-modern) footer {
	flex-shrink: 0;
}

.topbar-modern .topbar-nav .nav-link i,
.topbar-modern .topbar-nav .nav-link .nav-icon {
	margin-right: 6px;
	font-size: 13px;
	opacity: 0.85;
	vertical-align: middle;
}

.topbar-modern .topbar-nav .nav-link .nav-icon {
	display: inline-flex;
	align-items: center;
}

.topbar-modern .topbar-nav .nav-link .nav-icon svg {
	width: 1em;
	height: 1em;
	vertical-align: middle;
}

.topbar-modern .topbar-nav .nav-link .nav-icon-dashboard svg {
	width: 14px;
	height: 14px;
}

/* Topbar menu: default, hover, active – with accent underline for active */
.topbar-modern .topbar-nav .nav-link {
	color: var(--color-topbar-muted) !important;
	background: transparent !important;
	padding: 0.55rem 0.9rem !important;
	border-radius: 10px;
	font-weight: 500;
	letter-spacing: 0.01em;
	transition: color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
	position: relative;
}

.topbar-modern .topbar-nav .nav-link:hover {
	color: var(--color-topbar-text) !important;
	background-color: var(--color-topbar-hover-bg) !important;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.topbar-modern .topbar-nav .nav-item.active .nav-link {
	color: var(--color-primary) !important;
	background-color: rgba(0, 51, 153, 0.06) !important;
	font-weight: 600;
}
.topbar-modern .topbar-nav .nav-item.active .nav-link::after {
	content: '';
	position: absolute;
	left: 0.9rem;
	right: 0.9rem;
	bottom: 6px;
	height: 2px;
	background: var(--color-primary);
	border-radius: 1px;
	opacity: 0.85;
}

.topbar-modern .topbar-nav .nav-item.show .nav-link,
.topbar-modern .topbar-nav .nav-link.show {
	color: var(--color-topbar-text) !important;
	background-color: var(--color-topbar-active-bg) !important;
}

.topbar-modern .topbar-nav .nav-link:focus {
	color: var(--color-topbar-text) !important;
	background-color: var(--color-topbar-hover-bg) !important;
	outline: none;
	border-radius: 10px;
	box-shadow: 0 0 0 2px rgba(0, 51, 153, 0.12);
}

/* Gap between menu items */
.topbar-modern .topbar-nav .nav-item {
	margin-right: 0.25rem;
}

.topbar-modern .navbar-collapse {
	display: flex;
	flex-direction: row;
	align-items: center;
	flex-wrap: wrap;
}
/* Push main menus to the right, next to the icon strip */
.topbar-modern .navbar-collapse .topbar-nav {
	margin-left: auto;
	margin-right: 0.25rem;
}


.topbar-modern .topbar-nav .nav-item:last-child {
	margin-right: 0;
}

.topbar-modern .topbar-nav .nav-link {
	margin-right: 0;
}

/* ----- Right-side action strip: mail, settings, notification, profile ----- */
.topbar-modern .nav.navbar-nav.ml-auto {
	align-items: center;
	gap: 0.4rem;
}
.topbar-modern .nav.navbar-nav.ml-auto .nav-item {
	margin-left: 0.35rem;
}
/* Visual separation before profile */
.topbar-modern .nav.navbar-nav.ml-auto .nav-item.user-action {
	margin-left: 0.75rem;
	padding-left: 0.75rem;
	border-left: 1px solid var(--color-border-topbar);
	height: 40px;
}

/* Utility icon buttons: mail, settings, notification */
.topbar-modern .topbar-icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0 !important;
	border-radius: 12px;
	background: linear-gradient(180deg, #f5f7fa 0%, #eef1f5 100%);
	color: var(--color-icon-text) !important;
	border: 1px solid rgba(0, 51, 153, 0.06);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
	transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.topbar-modern .topbar-icon-btn:hover {
	background: linear-gradient(180deg, #ffffff 0%, #f0f4fa 100%) !important;
	color: var(--color-primary) !important;
	border-color: rgba(0, 51, 153, 0.12);
	box-shadow: 0 4px 12px rgba(0, 51, 153, 0.1);
	transform: translateY(-2px);
}
.topbar-modern .topbar-icon-btn:hover i {
	opacity: 1;
}
.topbar-modern .topbar-icon-btn:focus {
	outline: none;
	box-shadow: 0 0 0 2px rgba(0, 51, 153, 0.2);
}

.topbar-modern .notification .topbar-icon-btn {
	position: relative;
}

/* Notification badge – supports 3 digits (e.g. 553) */
.topbar-modern .topbar-badge {
	position: absolute;
	top: -8px;
	right: 2px;
	min-width: 20px;
	height: 18px;
	padding: 0 6px;
	font-size: 10px;
	font-weight: 700;
	line-height: 18px;
	text-align: center;
	letter-spacing: -0.02em;
	background: linear-gradient(145deg, #e53935 0%, #c62828 100%);
	color: #fff;
	border-radius: 9px;
	box-shadow: 0 2px 6px rgba(198, 40, 40, 0.4);
	border: 2px solid var(--color-surface);
	box-sizing: border-box;
}
.topbar-modern .topbar-badge:empty {
	display: none;
}

/* Profile avatar – distinct “user” treatment */
.topbar-modern .topbar-user-wrap .topbar-icon-btn,
.topbar-modern .topbar-user-btn {
	background: linear-gradient(145deg, #ffffff 0%, #e8eef4 100%) !important;
	border-radius: 12px;
	padding: 0 !important;
	border: 1.5px solid rgba(0, 51, 153, 0.12);
	box-shadow: 0 2px 6px rgba(0, 51, 153, 0.08);
}
.topbar-modern .topbar-user-wrap .topbar-icon-btn:hover,
.topbar-modern .topbar-user-btn:hover {
	background: linear-gradient(145deg, #ffffff 0%, #eef4fa 100%) !important;
	border-color: rgba(0, 51, 153, 0.2);
	box-shadow: 0 6px 16px rgba(0, 51, 153, 0.12);
	transform: translateY(-2px);
}
.topbar-modern .topbar-user-btn.show {
	border-color: rgba(0, 51, 153, 0.25);
	box-shadow: 0 4px 14px rgba(0, 51, 153, 0.15);
}

.topbar-modern .topbar-user-btn {
	overflow: hidden;
}

.topbar-modern .topbar-avatar {
	width: 40px;
	height: 40px;
	border-radius: 12px;
	object-fit: cover;
	display: block;
}

.topbar-modern .topbar-toggler {
	border-radius: 10px;
	border: 1px solid var(--color-border-topbar);
	color: var(--color-icon-text-hover);
	transition: background 0.2s ease, border-color 0.2s ease;
}

.topbar-modern .topbar-toggler:hover {
	background: var(--color-topbar-hover-bg);
	border-color: var(--color-border-input);
}

/* Dropdowns: refined card style */
.topbar-modern .dropdown-menu {
	border-radius: 14px;
	box-shadow: 0 12px 48px rgba(0, 51, 153, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.04);
	border: 1px solid var(--color-border-topbar);
	padding: 0.5rem;
	margin-top: 10px;
}

.topbar-modern .dropdown-item {
	border-radius: 10px;
	padding: 0.55rem 0.85rem;
	margin-bottom: 2px;
	transition: background 0.15s ease, color 0.15s ease;
}

.topbar-modern .dropdown-item:last-child {
	margin-bottom: 0;
}

.topbar-modern .dropdown-item:hover,
.topbar-modern .dropdown-item:focus {
	background-color: var(--color-topbar-hover-bg);
	color: var(--color-topbar-text);
}

.topbar-modern .dropdown-item.active {
	background-color: rgba(0, 51, 153, 0.08);
	color: var(--color-primary);
}

.topbar-modern .dropdown-item i {
	margin-right: 8px;
	width: 18px;
	text-align: center;
}

.topbar-modern .dropdown-header {
	font-weight: 600;
	color: var(--color-topbar-text);
	padding: 0.5rem 0.85rem;
	font-size: 0.8125rem;
}

.topbar-modern .topbar-icon-btn.dropdown-toggle::after {
	display: none;
}

/* Topbar responsive: ensure flex layout and safe spacing on all screens */
.topbar.topbar-modern {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	width: 100%;
	box-sizing: border-box;
}

.topbar-modern .navbar-collapse {
	flex-basis: 100%;
	flex-grow: 1;
	align-items: center;
}

@media (min-width: 992px) {
	.topbar-modern .navbar-collapse {
		flex-basis: auto;
		display: flex;
	}
}

/* ==================================================
   FEATURES - Dashboard
================================================== */
.dashboard-overview .row {
	overflow: hidden;
	border-radius: 5px;
	-webkit-border-radius: 5px;
}

.dashboard-overview .ui-widget {
	margin: 0 0;
	border-radius: 0;
	-webkit-border-radius: 0;
	box-shadow: none;
	-webkit-box-shadow: none;
	border: none;
	-webkit-border: none;
	padding: 0px;
	display: flex;
}

.ui-widget,
.dashboard-overview .ui-widget,
.dashboard-overview .row {
	box-shadow: var(--shadow-panel);
	-webkit-box-shadow: var(--shadow-panel);
}

.form-control:disabled,
.hasDatepicker.form-control[readonly] {
	background-color: var(--color-surface);
	opacity: 1;
}

.ui-surface {
	background: var(--color-surface);
	box-shadow: var(--shadow-panel);
	padding: 20px;
	border-radius: 10px;
	overflow: hidden;
}

.ui-surface__header {
	border-bottom: 1px solid var(--color-neutral-200);
	background: var(--color-neutral-100) !important;
	margin: -20px;
	padding: 10px;
	margin-bottom: 20px;
}

.ui-surface__header h3 {
	font-size: 20px;
	margin: 0;
	font-weight: 600;
}

.ui-surface__body {
	padding: 0 20px 20px;
	margin: 0 -20px -20px;
}

.form-group .btn {
	background-color: var(--color-primary);
	border-color: var(--color-primary);
	padding: 0 10px;
	box-shadow: 0 0 12px rgba(0, 0, 0, 0.1);
	line-height: 35px;
	min-width: 90px;
}

.form-group .btn.btn-primary {
	background-color: var(--color-primary);
	border-color: var(--color-primary);
}

.form-group .btn.btn-danger {
	background-color: var(--color-accent);
	border-color: var(--color-accent);
}

.subscription-plan h2 {
	color: var(--color-subscription-heading);
	font-size: 30px;
	font-weight: 700;
	margin: 30px 0 0;
}

.subscription-plan p {
	color: var(--color-subscription-text);
	font-size: 16px;
	font-weight: 400;
	margin: 0px 0 40px;
}

.subscription-plan .card {
	border: none;
	border-radius: 10px;
	box-shadow: 0 0px 30px 0 rgba(0, 0, 0, .05);
	overflow: hidden;
}

.card-heading {
	margin: -16px;
	background: var(--color-warning);
	overflow: hidden;
	border: none;
	padding: 20px 10px;
	margin-bottom: 0;
}

.card-heading h3 {
	color: var(--color-surface);
	margin: 0;
	font-size: 20px;
	margin-bottom: 10px;
}

.card-heading h4 {
	font-size: 35px;
	font-weight: 900;
	margin: 0;
	color: var(--color-surface);
}

.card-body {
	margin: 0;
	padding: 0;
	padding-top: 20px;
}

.card-body h6 {
	color: var(--color-card-body-text);
	font-size: 16px;
	line-height: 20px;
}

.card-body h5 {
	font-weight: 900;
	font-size: 25px;
	margin-top: 10px;
	color: var(--color-warning);
}

.card-body .btn.btn-primary {
	margin: 10px 0 0;
}

.plans-wrap .plans-list:nth-child(1) .card-heading {
	background-color: var(--color-plans-neutral);
}

.plans-wrap .plans-list:nth-child(2) .card-heading {
	background-color: var(--color-accent);
}

.plans-wrap .plans-list:nth-child(3) .card-heading {
	background-color: var(--color-success);
}

.plans-wrap .plans-list:nth-child(4) .card-heading {
	background-color: var(--color-info-alt);
}

.plans-wrap .plans-list:nth-child(1) .card-body h5 {
	color: var(--color-plans-neutral);
}

.plans-wrap .plans-list:nth-child(2) .card-body h5 {
	color: var(--color-accent);
}

.plans-wrap .plans-list:nth-child(3) .card-body h5 {
	color: var(--color-success);
}

.plans-wrap .plans-list:nth-child(4) .card-body h5 {
	color: var(--color-info-alt);
}

.modal-header {
	background: var(--color-primary);
	color: var(--color-surface);
	padding: 10px;
}

.modal-header .close {
	color: var(--color-surface);
	opacity: 1;
	border: 1px solid var(--color-surface) !important;
	width: 30px;
	height: 30px;
	padding: 0 !important;
	display: block !important;
	margin: 0 !important;
	border-radius: 50%;
	top: 2px;
	position: relative;
}

.modal-dialog {
	max-width: 600px;
	margin: 1.75rem auto;
}

.modal-content {
	border: none;
	border-radius: 10px;
	box-shadow: 0 0px 30px 0 rgba(0, 0, 0, .05);
}

/* Unattended Calls – Assign Agent modal (old design) */
#assigned_lead .modal-header {
	background: #2A52A0;
	color: #fff;
	padding: 10px 15px;
	border: none;
}

#assigned_lead .modal-header .modal-title {
	font-weight: bold;
	color: #fff;
}

#assigned_lead .modal-header .close {
	color: #2A52A0;
	opacity: 1;
	border: 1px solid #fff !important;
	width: 30px;
	height: 30px;
	padding: 0 !important;
	display: flex !important;
	align-items: center;
	justify-content: center;
	margin: 0 !important;
	border-radius: 50%;
	position: relative;
	background: #fff;
}

#assigned_lead .modal-header .close:hover {
	background: #2A52A0;
	color: #fff;
}

#assigned_lead .modal-body {
	background: #fff;
	padding: 1rem 15px;
}

#assigned_lead .modal-body .form-control {
	border: 1px solid #ddd;
	background: #fff;
	border-radius: 4px;
}

#assigned_lead .unattended-modal-meta {
	margin-top: 1rem;
	padding-top: 1rem;
	border-top: 1px solid #e0e0e0;
}

#assigned_lead .unattended-modal-meta p {
	margin-bottom: 0.4rem;
}

#assigned_lead .unattended-modal-meta .text-warning {
	color: #c69500 !important;
}

#assigned_lead .modal-body a[href] {
	color: #007bff;
	text-decoration: underline;
}

#assigned_lead .modal-footer {
	border-top: 1px solid #e0e0e0;
	padding: 10px 15px;
	background: #fff;
}

#assigned_lead .modal-footer .btn-secondary {
	background: #8A7B9B;
	border-color: #8A7B9B;
	color: #fff;
	border-radius: 4px;
}

#assigned_lead .modal-footer .btn-secondary:hover {
	background: #7a6b8b;
	border-color: #7a6b8b;
	color: #fff;
}

#assigned_lead .modal-footer .btn-primary {
	background: #2C7BE5;
	border-color: #2C7BE5;
	color: #fff;
	border-radius: 4px;
}

#assigned_lead .modal-footer .btn-primary:hover {
	background: #1a6bd6;
	border-color: #1a6bd6;
	color: #fff;
}

.checkbox-wrapper {
	display: inline-block;
	position: relative;
	margin-right: 13px;
}

.checkbox-wrapper input {
	position: absolute;
	top: 5px;
	width: 100%;
	height: 100%;
	opacity: 0;
	z-index: 22;
	cursor: pointer;
}

.checkbox-wrapper span {
	position: relative;
	width: 20px;
	height: 20px;
	border: 2px solid var(--color-primary);
	left: 0;
	top: 5px;
	display: inline-block;
	border-radius: 50%;
	margin-right: 0px;
}

.checkbox-wrapper span::after {
	position: absolute;
	width: 12px;
	height: 12px;
	background-color: var(--color-primary);
	left: 2px;
	top: 2px;
	display: inline-block;
	border-radius: 50%;
	content: '';
	opacity: 0;
	transition: all ease .1s;
}

.checkbox-wrapper input:checked+span::after {
	opacity: 1;

}

.dropdown-item {
	display: block;
	width: 100%;
	padding: 8px 15px;
	clear: both;
	font-weight: 400;
	color: var(--color-dropdown-text);
	text-align: inherit;
	white-space: nowrap;
	background-color: transparent;
	border: 0;
	font-size: 14px;
	transition: all ease .3s;
}

.dropdown-item i {
	font-size: 12px !important;
	margin-right: 6px;
	line-height: 20px;
	position: relative;
	left: 0;
	transition: all ease .5s;
}

.dropdown-item:hover i {
	left: 4px;
	transition: all ease .3s;
}

.navbar-nav a i {
	transition: all ease .5s;
	left: 0px;
	top: 3px;
}

.nav-link:hover {
	transition: all ease .3s;
}

.navbar-nav a:hover i {
	transition: all ease .3s;
	left: 3px;
}


.widget-container {
	background: var(--color-surface);
	border-radius: 5px;
	padding: 5px;
}

.widget-container span {
	font-size: 35px;
	color: var(--color-widget-muted);
	padding: 6px;
	height: 55px;
	display: block;
	width: 55px;
	float: left;
	line-height: 42px;
}

.widget-container h2 {
	float: left;
	width: calc(100% - 55px);
	text-align: left;
	height: 40px;
	margin: 0;
	color: var(--color-primary);
	font-size: 31px;
	padding-left: 5px;
}

.widget-container p {
	float: left;
	width: calc(100% - 55px);
	margin: 0;
	font-size: 11px;
	padding-left: 5px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: var(--color-surface);
}

.static-wrapper>div:nth-child(1) .widget-container {
	background: var(--pipeline-stage-1);
}

.static-wrapper>div:nth-child(2) .widget-container {
	background: var(--color-static-2);
}

.static-wrapper>div:nth-child(3) .widget-container {
	background: var(--color-static-3);
}

.static-wrapper>div:nth-child(4) .widget-container {
	background: var(--color-static-4);
}

.static-wrapper>div:nth-child(5) .widget-container {
	background: var(--color-static-5);
}

.static-wrapper>div:nth-child(6) .widget-container {
	background: var(--color-static-6);
}

.static-wrapper>div:nth-child(7) .widget-container {
	background: var(--color-static-7);
}

.static-wrapper>div .widget-container h2 {
	color: var(--color-surface);
}



.static-wrapper>div .widget-container span {
	color: var(--color-surface);
	text-align: center;
}

/* ----- Dashboard header (welcome + date filter) ----- */
.dashboard-header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1.5rem;
}
.dashboard-header__welcome {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	min-width: 0;
}
.dashboard-header__filter.date-filter-wrapper {
	position: static;
	width: auto;
	z-index: auto;
	box-shadow: none;
	background: transparent;
	border: none;
	transition: none;
}
.dashboard-header__filter.date-filter-wrapper.active {
	right: auto;
}
/* Date filter – refined header block */
.dashboard-header__filter .date-filter {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0 1.25rem;
	padding: 0.625rem 1rem;
	background: linear-gradient(180deg, #fafbfc 0%, #f1f5f9 100%);
	border: 1px solid var(--gray-200);
	border-radius: var(--radius-md);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.dashboard-header__filter .date-filter__caption {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--gray-500);
	margin-right: 0.5rem;
	padding-right: 1rem;
	border-right: 1px solid var(--gray-200);
}
.dashboard-header__filter .date-filter__caption-icon {
	font-size: 0.875rem;
	opacity: 0.85;
}
.dashboard-header__filter .date-filter__field {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}
.dashboard-header__filter .date-filter__label {
	margin: 0;
	font-size: 0.8125rem;
	font-weight: 500;
	color: var(--gray-600);
	white-space: nowrap;
}
.dashboard-header__filter .date-filter__input {
	width: 128px;
	min-width: 0;
	height: 34px;
	padding: 0.375rem 0.625rem;
	font-size: 0.875rem;
	border: 1px solid var(--gray-200);
	border-radius: var(--radius-sm);
	background: var(--color-surface);
	color: var(--gray-800);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.dashboard-header__filter .date-filter__input:hover {
	border-color: var(--gray-300);
}
.dashboard-header__filter .date-filter__input:focus {
	outline: none;
	border-color: var(--color-primary);
	box-shadow: 0 0 0 3px rgba(0, 51, 153, 0.12);
}
.dashboard-header__filter .date-filter__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.375rem;
	height: 34px;
	padding: 0 1rem;
	font-size: 0.8125rem;
	font-weight: 600;
	border-radius: var(--radius-sm);
	background: var(--color-primary);
	border: 1px solid var(--color-primary);
	color: var(--color-surface);
	transition: background 0.2s ease, transform 0.15s ease;
	box-shadow: 0 1px 2px rgba(0, 51, 153, 0.15);
}
.dashboard-header__filter .date-filter__btn:hover {
	background: var(--color-primary-dark);
	border-color: var(--color-primary-dark);
	color: var(--color-surface);
	transform: translateY(-1px);
	box-shadow: 0 2px 6px rgba(0, 51, 153, 0.2);
}
.dashboard-header__filter .date-filter__btn:active {
	transform: translateY(0);
}
.dashboard-header__filter .date-filter__btn-icon {
	font-size: 0.75rem;
}
.dashboard-header__filter .date-filter__btn--icon {
	padding: 0 0.5rem;
	min-width: 34px;
}
.dashboard-header__filter .date-filter__btn--icon .date-filter__btn-icon {
	font-size: 0.875rem;
}
.dashboard-welcome__title {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--gray-800);
	margin: 0 0 0.25rem 0;
	line-height: 1.3;
}
.dashboard-welcome__subtitle {
	font-size: 0.9375rem;
	color: var(--gray-500);
	margin: 0;
	line-height: 1.4;
}
@media (max-width: 767px) {
	.dashboard-header {
		flex-direction: column;
		align-items: stretch;
	}
	.dashboard-header__filter {
		order: 2;
	}
	.dashboard-header__welcome {
		order: 1;
	}
	.dashboard-header__filter .date-filter {
		justify-content: flex-start;
		gap: 0.75rem 1rem;
	}
	.dashboard-header__filter .date-filter__caption {
		width: 100%;
		margin-right: 0;
		padding-right: 0;
		padding-bottom: 0.5rem;
		margin-bottom: 0.25rem;
		border-right: none;
		border-bottom: 1px solid var(--gray-200);
	}
}

/* ----- Dashboard widgets (modern card design) ----- */
.dashboard-widgets {
	margin-bottom: 1.5rem;
}
.dashboard-widgets__row {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 24px;
}
.dashboard-widget {
	display: flex;
	align-items: center;
	gap: 1rem;
	min-width: 0;
	background: var(--color-surface);
	border-radius: var(--radius-md);
	padding: 1.25rem 1.25rem;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
	border: 1px solid var(--gray-200);
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.dashboard-widget:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
	border-color: var(--gray-300);
}
.dashboard-widget--profiles:hover { background: rgba(71, 85, 105, 0.08); }
.dashboard-widget--open-tickets:hover { background: rgba(245, 158, 11, 0.08); }
.dashboard-widget--processing:hover { background: rgba(16, 185, 129, 0.08); }
.dashboard-widget--closed:hover { background: rgba(239, 68, 68, 0.08); }
.dashboard-widget--emails:hover { background: rgba(139, 92, 246, 0.08); }
.dashboard-widget--campaigns:hover { background: rgba(37, 99, 235, 0.08); }
.dashboard-widget__icon {
	width: 48px;
	height: 48px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	font-size: 1.25rem;
	color: #fff;
}
.dashboard-widget__content {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	min-width: 0;
}
.dashboard-widget__value {
	font-size: 1.75rem;
	font-weight: 700;
	line-height: 1.2;
	color: var(--gray-800);
	letter-spacing: -0.02em;
}
.dashboard-widget__label {
	font-size: 0.8125rem;
	font-weight: 500;
	color: var(--gray-500);
	line-height: 1.3;
}
/* Widget color variants */
.dashboard-widget--profiles .dashboard-widget__icon {
	background: linear-gradient(135deg, #64748b 0%, #475569 100%);
	box-shadow: 0 4px 12px rgba(71, 85, 105, 0.35);
}
.dashboard-widget--open-tickets .dashboard-widget__icon {
	background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
	box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}
.dashboard-widget--processing .dashboard-widget__icon {
	background: linear-gradient(135deg, #10b981 0%, #059669 100%);
	box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}
.dashboard-widget--closed .dashboard-widget__icon {
	background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
	box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
}
.dashboard-widget--emails .dashboard-widget__icon {
	background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
	box-shadow: 0 4px 12px rgba(139, 92, 246, 0.35);
}
.dashboard-widget--campaigns .dashboard-widget__icon {
	background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
	box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}
@media (max-width: 1200px) {
	.dashboard-widgets__row {
		grid-template-columns: repeat(3, 1fr);
	}
}
@media (max-width: 768px) {
	.dashboard-widgets__row {
		gap: 16px;
		grid-template-columns: repeat(2, 1fr);
	}
	.dashboard-widget {
		padding: 1rem 1rem;
	}
	.dashboard-widget__icon {
		width: 42px;
		height: 42px;
		font-size: 1.1rem;
	}
	.dashboard-widget__value {
		font-size: 1.5rem;
	}
	.dashboard-widget__label {
		font-size: 0.75rem;
	}
}

/* Spacing between chart/table cards in dashboard */
#graphcontainer .row > [class*="col-"],
.dashboard-graphs .row > [class*="col-"] {
	margin-bottom: 24px;
}
#graphcontainer .row,
.dashboard-graphs .row {
	margin-left: -12px;
	margin-right: -12px;
}
#graphcontainer .row > [class*="col-"],
.dashboard-graphs .row > [class*="col-"] {
	padding-left: 12px;
	padding-right: 12px;
}
@media (min-width: 768px) {
	#graphcontainer .row > [class*="col-"],
	.dashboard-graphs .row > [class*="col-"] {
		padding-left: 16px;
		padding-right: 16px;
	}
	#graphcontainer .row,
	.dashboard-graphs .row {
		margin-left: -16px;
		margin-right: -16px;
	}
}

/* ----- Summary card (reusable pattern for dashboard chart/summary widgets) ----- */
.widget--summary-card {
	background: #ffffff;
	border-radius: 14px;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
	border: none;
	overflow: hidden;
	height: auto;
	max-height: none;
}
.widget--summary-card .widget__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	padding: 18px 20px 14px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
	background: #fff;
}
.widget--summary-card .widget__header-inner {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	min-width: 0;
}
.widget--summary-card .widget__icon-wrap {
	width: 40px;
	height: 40px;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	font-size: 1.1rem;
	color: #fff;
	background: linear-gradient(135deg, #64748b 0%, #475569 100%);
	box-shadow: 0 4px 12px rgba(71, 85, 105, 0.2);
}
.widget--summary-card .widget__title-block {
	min-width: 0;
}
.widget--summary-card .widget__title {
	font-size: 17px;
	font-weight: 600;
	color: #0f172a;
	margin: 0 0 2px 0;
	line-height: 1.3;
	padding: 0;
	border: none;
}
.widget--summary-card .widget__subtitle {
	font-size: 12px;
	color: #64748b;
	margin: 0;
	line-height: 1.35;
}
.widget--summary-card .widget__help {
	color: #94a3b8;
	font-size: 1rem;
	transition: color 0.2s ease;
	flex-shrink: 0;
}
.widget--summary-card .widget__help:hover {
	color: #64748b;
}
.widget--summary-card .widget__content--chart {
	padding: 16px 20px 20px;
	min-height: 200px;
	background: #fff;
	display: flex;
	flex-direction: column;
}
.widget--summary-card .widget__content--heatmap {
	padding: 16px 20px 20px;
	min-height: 200px;
}
.widget--enquiry-category .enquiry-category-heatmap-wrap {
	max-height: 420px;
	overflow-y: auto;
	overflow-x: hidden;
	margin: 0 -4px 0 0;
	padding-right: 4px;
}
.widget--enquiry-category .enquiry-category-heatmap-wrap::-webkit-scrollbar {
	width: 6px;
}
.widget--enquiry-category .enquiry-category-heatmap-wrap::-webkit-scrollbar-track {
	background: #f1f5f9;
	border-radius: 3px;
}
.widget--enquiry-category .enquiry-category-heatmap-wrap::-webkit-scrollbar-thumb {
	background: #cbd5e1;
	border-radius: 3px;
}
.dashboard-heatmap-tooltip {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 140px;
}
.dashboard-heatmap-tooltip__category {
	font-weight: 600;
	color: #0f172a;
	font-size: 12px;
}
.dashboard-heatmap-tooltip__day {
	color: #64748b;
	font-size: 11px;
}
.dashboard-heatmap-tooltip__value {
	font-weight: 600;
	color: #0369a1;
	font-size: 13px;
	margin-top: 2px;
}
.widget--summary-card .widget__content--table {
	padding: 16px 20px 20px;
	background: #fff;
}
.widget--summary-card .widget__content--table .table--summary {
	font-size: 14px;
}
.widget--summary-card .widget__content--table .table--summary th,
.widget--summary-card .widget__content--table .table--summary td {
	padding: 10px 12px;
	border-color: #f1f5f9;
}
.widget--summary-card .widget__content--table .table--summary thead th {
	background: #f8fafc;
	color: #64748b;
	font-weight: 600;
	font-size: 13px;
}

/* Card variants: icon colour per widget type */
.widget--helpdesk-summary .widget__icon-wrap {
	background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
	box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}
.widget--agent-helpdesk .widget__icon-wrap {
	background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
	box-shadow: 0 4px 12px rgba(139, 92, 246, 0.25);
}

/* ----- Agent-wise Helpdesk Summary: refactored spacing and hierarchy ----- */
.widget--agent-helpdesk--premium .widget__header--agent-helpdesk {
	display: flex;
	align-items: center;
	gap: 20px 28px;
	padding: 18px 20px 14px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.widget--agent-helpdesk--premium .widget__header--agent-helpdesk .widget__header-inner {
	flex: 1;
	min-width: 0;
}
.widget--agent-helpdesk--premium .widget__content--agent-helpdesk {
	padding: 32px 32px 36px;
	min-height: 280px;
	background: #fff;
}

/* Legend at bottom of card (like Enquiry Date Wise Count) */
.agent-helpdesk-legend-wrap {
	margin-top: 24px;
	padding-top: 20px;
	border-top: 1px solid rgba(0, 0, 0, 0.06);
	display: flex;
	justify-content: center;
}
.agent-helpdesk-legend {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 10px 20px;
	font-size: 11px;
	color: #64748b;
}
.agent-helpdesk-legend-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
.agent-helpdesk-legend-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	flex-shrink: 0;
}

/* Three separated mini-stat blocks */
.agent-helpdesk-stats {
	display: flex;
	flex-wrap: wrap;
	gap: 20px 28px;
	padding: 1rem;
}
.agent-helpdesk-stat {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 16px 20px;
	background: #f8fafc;
	border-radius: 10px;
	border: 1px solid rgba(0, 0, 0, 0.04);
	min-width: 0;
}
.agent-helpdesk-stat__label {
	font-size: 10px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #64748b;
	line-height: 1.3;
}
.agent-helpdesk-stat__value {
	font-size: 15px;
	font-weight: 600;
	color: #0f172a;
	line-height: 1.3;
	letter-spacing: -0.01em;
}
.agent-helpdesk-stat__value--open {
	color: #EF4444;
}

/* Agent rows: more height and padding */
.agent-helpdesk-rows {
	display: flex;
	flex-direction: column;
	gap: 18px;
	padding: 0 1rem;
}
.agent-helpdesk-row {
	position: relative;
	display: grid;
	grid-template-columns: 1fr 1fr auto;
	align-items: center;
	gap: 20px 24px;
	min-height: 24px;
	padding: 10px;
	border-radius: 10px;
	transition: background 0.2s ease;
	opacity: 0;
	animation: agent-helpdesk-fadeIn 0.35s ease forwards;
	border-left: 3px solid transparent;
}
.agent-helpdesk-row--top {
	border-left-color: #8b5cf6;
	background: rgba(139, 92, 246, 0.04);
}
.agent-helpdesk-row--top:hover {
	background: rgba(139, 92, 246, 0.07);
}
.agent-helpdesk-row:hover {
	background: rgba(0, 0, 0, 0.02);
}
.agent-helpdesk-row__label {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
}
.agent-helpdesk-row__name {
	font-size: 14px;
	font-weight: 500;
	color: #0f172a;
	line-height: 1.4;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.agent-helpdesk-warning-icon {
	color: #F59E0B;
	font-size: 12px;
	flex-shrink: 0;
}
.agent-helpdesk-row__bar-wrap {
	display: flex;
	align-items: center;
	gap: 20px;
	min-width: 0;
}
.agent-helpdesk-row__bar {
	height: 8px;
	min-width: 4px;
	border-radius: 4px;
	overflow: hidden;
	display: flex;
	transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.agent-helpdesk-segment {
	height: 100%;
	flex-shrink: 0;
	transition: width 0.3s ease;
}
.agent-helpdesk-segment--open {
	background: #EF4444;
}
.agent-helpdesk-segment--processing {
	background: #F59E0B;
}
.agent-helpdesk-segment--closed {
	background: #10B981;
}
.agent-helpdesk-row__total {
	font-size: 14px;
	font-weight: 700;
	color: #0f172a;
	min-width: 28px;
	text-align: right;
	letter-spacing: -0.02em;
}
.agent-helpdesk-tooltip {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	bottom: 100%;
	margin-bottom: 8px;
	padding: 10px 14px;
	background: #1e293b;
	color: #f1f5f9;
	font-size: 11px;
	line-height: 1.5;
	border-radius: 8px;
	text-align: left;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease, visibility 0.2s ease;
	visibility: hidden;
	z-index: 10;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.agent-helpdesk-row:hover .agent-helpdesk-tooltip {
	opacity: 1;
	visibility: visible;
}
.agent-helpdesk-view-all-wrap {
	margin-top: 28px;
	text-align: center;
}
.agent-helpdesk-view-all {
	font-size: 13px;
	font-weight: 500;
	color: #6366f1;
	background: none;
	border: none;
	cursor: pointer;
	padding: 6px 12px;
	border-radius: 6px;
	transition: background 0.2s ease, color 0.2s ease;
}
.agent-helpdesk-view-all:hover {
	background: rgba(99, 102, 241, 0.1);
	color: #4f46e5;
}
@keyframes agent-helpdesk-fadeIn {
	to { opacity: 1; }
}

.widget--escalation-summary .widget__icon-wrap {
	background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
	box-shadow: 0 4px 12px rgba(13, 148, 136, 0.25);
}
/* Call Details card: modern SaaS-style with icons, accent colors and clear hierarchy */
.widget--call-details {
	border-radius: 14px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
	background: #ffffff;
}
.widget--call-details .widget__header {
	padding: 18px 20px 16px;
	border-bottom: 1px solid #e2e8f0;
	background: #ffffff;
}
.widget--call-details .widget__icon-wrap {
	background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
	box-shadow: 0 4px 12px rgba(6, 182, 212, 0.25);
}
.widget--call-details .widget__icon-wrap i {
	color: #fff;
	font-size: 1rem;
}
.widget--call-details .widget__content--metrics.call-details__body {
	--call-details-gap: 16px;
	padding: 20px;
	background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
	border-radius: 0 0 14px 14px;
}
.widget--call-details .call-details__section {
	margin-bottom: calc(var(--call-details-gap, 16px) * 1.5);
}
.widget--call-details .call-details__section:last-child {
	margin-bottom: 0;
}
.widget--call-details .call-details__section-title {
	font-size: 10px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: #64748b;
	margin: 0 0 12px 0;
	line-height: 1.2;
}
.widget--call-details .call-details__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--call-details-gap, 16px);
}
.widget--call-details .call-details__block {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	background: #ffffff;
	border-radius: 12px;
	padding: 18px 12px 16px;
	border: 1px solid #e2e8f0;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
	min-width: 0;
	min-height: 88px;
	position: relative;
	overflow: hidden;
}
.widget--call-details .call-details__block::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	opacity: 0.6;
	border-radius: 12px 12px 0 0;
}
.widget--call-details .call-details__block--calls::before {
	background: linear-gradient(90deg, #06b6d4, #0891b2);
}
.widget--call-details .call-details__block--duration::before {
	background: linear-gradient(90deg, #0d9488, #0f766e);
}
.widget--call-details .call-details__block--avg::before {
	background: linear-gradient(90deg, #8b5cf6, #7c3aed);
}
.widget--call-details .call-details__block:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
	border-color: #cbd5e1;
	transform: translateY(-1px);
}
.widget--call-details .call-details__icon {
	font-size: 1rem;
	margin-bottom: 8px;
	opacity: 0.85;
}
.widget--call-details .call-details__block--calls .call-details__icon {
	color: #0891b2;
}
.widget--call-details .call-details__block--duration .call-details__icon {
	color: #0d9488;
}
.widget--call-details .call-details__block--avg .call-details__icon {
	color: #7c3aed;
}
.widget--call-details .call-details__value {
	display: block;
	font-size: 1.625rem;
	font-weight: 700;
	color: #0f172a;
	line-height: 1.2;
	letter-spacing: -0.02em;
}
.widget--call-details .call-details__unit {
	font-size: 0.75rem;
	font-weight: 500;
	color: #64748b;
	margin-left: 1px;
}
.widget--call-details .call-details__label {
	display: block;
	font-size: 0.6875rem;
	color: #64748b;
	margin-top: 6px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.01em;
	text-transform: uppercase;
}
@media (max-width: 576px) {
	.widget--call-details .call-details__grid {
		grid-template-columns: 1fr;
		gap: var(--call-details-gap, 16px);
	}
	.widget--call-details .call-details__block {
		min-height: 80px;
		padding: 14px 12px;
	}
	.widget--call-details .call-details__value {
		font-size: 1.5rem;
	}
}
.widget--lead-source .widget__icon-wrap {
	background: linear-gradient(135deg, #10b981 0%, #059669 100%);
	box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}
.widget--enquiry-date .widget__icon-wrap {
	background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
	box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}
.widget--enquiry-source .widget__icon-wrap {
	background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
	box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}
.widget--followup .widget__icon-wrap {
	background: linear-gradient(135deg, #64748b 0%, #475569 100%);
	box-shadow: 0 4px 12px rgba(71, 85, 105, 0.2);
}
.widget--complaints .widget__icon-wrap {
	background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
	box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
}
.widget--counselling .widget__icon-wrap {
	background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
	box-shadow: 0 4px 12px rgba(20, 184, 166, 0.25);
}
.widget--covid-vaccination .widget__icon-wrap {
	background: linear-gradient(135deg, #059669 0%, #047857 100%);
	box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25);
}
.widget--query-type.widget--chat-ticket .widget__icon-wrap {
	background: linear-gradient(135deg, #64748b 0%, #475569 100%);
	box-shadow: 0 4px 12px rgba(100, 116, 139, 0.25);
}

/* Today's Followup list */
.widget--followup .widget__content--list {
	padding: 0;
}
.followup-list__scroller {
	overflow-x: auto;
	overflow-y: auto;
	max-height: 320px;
	-webkit-overflow-scrolling: touch;
}
.followup-list__table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9375rem;
}
.followup-list__table thead {
	position: sticky;
	top: 0;
	z-index: 1;
	background: var(--color-bg-secondary, #f1f5f9);
	border-bottom: 1px solid var(--color-border, #e2e8f0);
}
.followup-list__table th {
	text-align: left;
	font-weight: 600;
	color: var(--color-text-muted, #64748b);
	padding: 10px 16px;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}
.followup-list__table tbody tr {
	border-bottom: 1px solid var(--color-border, #e2e8f0);
	transition: background-color 0.15s ease;
}
.followup-list__table tbody tr:hover {
	background: var(--color-bg-secondary, #f8fafc);
}
.followup-list__table .followup-list__name {
	font-weight: 500;
	color: var(--color-text, #0f172a);
	padding: 12px 16px;
}
.followup-list__table .followup-list__phone {
	color: var(--color-text-muted, #64748b);
	padding: 12px 16px;
}
.followup-list__table .followup-list__action {
	padding: 8px 16px;
	width: 1%;
	white-space: nowrap;
}
.followup-list__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 10px;
	background: linear-gradient(135deg, #10b981 0%, #059669 100%);
	color: #fff;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
	box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}
.followup-list__btn:hover {
	color: #fff;
	transform: scale(1.05);
	box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}
.followup-list__table .dashboard-empty-state {
	padding: 24px 16px;
}
/* Followup empty state uses same style as chart (dashboard-empty-state--chart) */
.widget--followup .dashboard-empty-state--chart {
	flex: none;
	min-height: 160px;
}

/* Chart empty state: centered, premium SaaS-style (Counselling & other query-type widgets) */
.dashboard-empty-state--chart {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 160px;
	text-align: center;
	padding: 24px 16px;
}
.dashboard-empty-state--chart .dashboard-empty-state__box {
	background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
	border: 2px dashed #cbd5e1;
	border-radius: 12px;
	padding: 32px 28px;
	max-width: 280px;
	box-sizing: border-box;
}
.dashboard-empty-state--chart .dashboard-empty-state__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	margin: 0 auto 16px;
	color: #94a3b8;
	font-size: 1.75rem;
	line-height: 1;
}
.dashboard-empty-state--chart .dashboard-empty-state__icon i {
	font-size: inherit;
}
.dashboard-empty-state--chart .dashboard-empty-state__title {
	margin: 0 0 6px;
	font-size: 1rem;
	font-weight: 600;
	color: #334155;
	letter-spacing: -0.01em;
	line-height: 1.35;
}
.dashboard-empty-state--chart .dashboard-empty-state__text {
	margin: 0;
	font-size: 0.8125rem;
	color: #64748b;
	line-height: 1.45;
}
@media (max-width: 576px) {
	.dashboard-empty-state--chart {
		min-height: 140px;
		padding: 20px 12px;
	}
	.dashboard-empty-state--chart .dashboard-empty-state__box {
		padding: 24px 20px;
		max-width: 100%;
	}
	.dashboard-empty-state--chart .dashboard-empty-state__icon {
		width: 48px;
		height: 48px;
		font-size: 1.5rem;
		margin-bottom: 12px;
	}
	.dashboard-empty-state--chart .dashboard-empty-state__title {
		font-size: 0.9375rem;
	}
	.dashboard-empty-state--chart .dashboard-empty-state__text {
		font-size: 0.75rem;
	}
}

.date-filter-wrapper {
	position: fixed;
	z-index: 9;
	width: 300px;
	right: -300px;
	top: 44px;
	box-shadow: 0px 0px 12px 0px rgb(0, 0, 0, .2);
	background: var(--color-primary);
	border: 2px solid var(--color-primary);
	transition: all cubic-bezier(0.64, 0.57, 0.67, 1.53) .3s;
}

.date-filter-wrapper.active {
	right: 0px;
}

.date-filter-icon {
	position: absolute;
	width: 40px;
	height: 40px;
	background: var(--color-primary);
	color: var(--color-surface);
	text-align: center;
	line-height: 40px;
	top: 22px;
	left: -40px;
	border-radius: 3px 0 0 3px;
	font-size: 20px;
	cursor: pointer;
}
.dashboard-header .date-filter-icon {
	display: none;
}

.widget .count-wrap h2 {
	border-bottom: none;
}

.border-table td {
	padding: 10px;
	border-bottom: 1px solid var(--gray-200);
}

.pipeline-column {
	width: 100%;
	background: var(--color-surface);
	padding: 10px;
}

.pipeline-card h4 {
	font-size: 15px;
	margin-bottom: 2px;
}

.pipeline-card h4 a {
	color: var(--color-text-secondary);
	font-size: 15px;
}

.pipeline-card {
	margin: 3px auto;
	border: 1px solid var(--color-border-light);
	padding: 10px;
	border-radius: 3px;
	position: relative;
	overflow: hidden;
	top: 0px;
	box-shadow: 0 0 30px 0 rgba(0, 0, 0, 0);
	cursor: pointer;
	transition: box-shadow ease .3s;
	background: var(--color-surface);
}

.pipeline-card:hover {
	box-shadow: 0 0 30px 0 rgba(0, 0, 0, 0.1);
	position: relative;
	z-index: 99;
}

.pipeline-card.ui-sortable-helper {
	background: var(--color-bg-highlight) !important;
}

.card-head h3 {
	float: left;
	font-size: 17px;
	color: var(--color-text-secondary);
	text-transform: uppercase;
}

.card-head span {
	display: block;
	float: right;
	padding: 0px 0;
	background: var(--color-warning);
	color: var(--color-surface);
	font-size: 12px;
	height: 15px;
	line-height: 15px;
	border-radius: 0 10px 10px 0;
	width: 50px;
	text-align: center;
}

.pipeline-column {
	width: 100%;
	background: var(--color-surface);
	padding: 10px;
	border-radius: 4px;
	box-shadow: var(--shadow-panel);
	height: calc(100vH - 270px);
	overflow-y: auto;
}

.pipeline-card i {
	font-size: 10px;
	margin-right: 4px;
}

.pipeline-card p {
	margin-bottom: 0;
	font-size: 11px;
	color: var(--color-text-muted);
	text-overflow: ellipsis;
	white-space: nowrap;
	overflow: hidden;
}

.pipeline-card span {
	margin-bottom: 0;
	font-size: 11px;
	color: var(--color-text-muted-alt);
}

.pipeline-card h4 i {
	position: relative;
	top: -2px;
}

.pipeline-card:hover .card-action {
	right: 3px;
	opacity: 1;
}

.card-action {
	position: absolute;
	top: 50%;
	right: -10px;
	transform: translateY(-50%);
	color: var(--color-text-dark);
	opacity: 0;
	transition: all ease .3s;
}

.drag i {
	color: var(--color-drag-muted);
	font-size: 14px;
}

.drag {
	color: var(--color-drag-icon);
	cursor: move;
}

.add-pro {
	width: 30px;
	height: 30px;
	display: block;
	float: right;
	text-align: center;
	line-height: 30px;
	background: var(--color-surface);
	border-radius: 50%;
	line-height: 31px;
}

.outter-progress {
	height: 15px;
	background: var(--color-border-light);
	width: calc(100% - 50px);
	border-radius: 10px 0 0 10px;
	float: left;
	overflow: hidden;
}

.progress-bar-wrap.clearfix {
	padding: 10px 0;
}

.inner-progress {
	height: 15px;
	background: gray;
	transition: all ease .3s;
}

.pipeline-card.ui-sortable-handle {
	border-left: 2px solid var(--color-neutral-500);
	margin: -1px;
	border-radius: 3px;
}




.anchor-wrap a i {
	color: var(--color-timeline-link);
}

.action-btn .dropdown-toggle::after {
	display: none;
}

.action-btn .dropdown-toggle {
	font-size: 20px;
	float: right;
	color: var(--color-text-dark);
	margin-right: 5px;
}

.status_icon,
span.low,
span.medium,
span.high {
	padding: 0 6px;
	text-align: center;
	margin: 0px 3px;
	border-radius: 100px;
	color: var(--color-surface);
	display: inline-block;
	height: 20px;
	min-width: 20px;
	line-height: 20px;
	font-size: 11px;
	opacity: .7;
	text-transform: uppercase;
}

.count-bdge {
	background: var(--color-danger);
	padding: 2px 10px;
	border-radius: 20px;
	color: var(--color-surface);
	font-size: 10px;
}

#sortablewrp_1 .inner-progress,
#sortablewrp_LEAD .card-head span {
	background: var(--pipeline-stage-1);
}

#sortablewrp_2 .inner-progress,
#sortablewrp_Qualified .card-head span {
	background: var(--pipeline-stage-2);
}

#sortablewrp_3 .inner-progress,
#sortablewrp_Proposition .card-head span {
	background: var(--pipeline-stage-3);
}

#sortablewrp_4 .inner-progress,
#sortablewrp_Negotiation .card-head span {
	background: var(--pipeline-stage-4);
}

#sortablewrp_5 .inner-progress,
#sortablewrp_CUSTOMER .card-head span {
	background: var(--pipeline-stage-5);
}




#sortablewrp_1 .card-head h3 {
	color: var(--pipeline-stage-1);
}

#sortablewrp_2 .card-head h3 {
	color: var(--pipeline-stage-2);
}

#sortablewrp_3 .card-head h3 {
	color: var(--pipeline-stage-3);
}

#sortablewrp_4 .card-head h3 {
	color: var(--pipeline-stage-4);
}

#sortablewrp_5 .card-head h3 {
	color: var(--pipeline-stage-5);
}

#sortablewrp_1 .pipeline-card.ui-sortable-handle {
	border-left: 2px solid var(--pipeline-stage-1);
}

#sortablewrp_2 .pipeline-card.ui-sortable-handle {
	border-left: 2px solid var(--pipeline-stage-2);
}

#sortablewrp_3 .pipeline-card.ui-sortable-handle {
	border-left: 2px solid var(--pipeline-stage-3);
}

#sortablewrp_4 .pipeline-card.ui-sortable-handle {
	border-left: 2px solid var(--pipeline-stage-4);
}

#sortablewrp_5 .pipeline-card.ui-sortable-handle {
	border-left: 2px solid var(--pipeline-stage-5);
}

ul.timeline {
	list-style-type: none;
	position: relative;
	max-height: 200px;
	overflow-y: scroll;
}

ul.timeline:before {
	content: ' ';
	background: var(--gray-300);
	display: inline-block;
	position: absolute;
	left: 29px;
	width: 2px;
	height: 100%;
	z-index: 400;
}

ul.timeline>li {
	margin: 20px 0;
	padding-left: 19px;
	background: var(--color-progress-bg);
	line-height: 12px;
	padding-right: 10px;
	padding-top: 4px;
}

ul.timeline>li:before {
	content: ' ';
	background: white;
	display: inline-block;
	position: absolute;
	border-radius: 50%;
	border: 3px solid var(--color-sortable-border);
	left: 20px;
	width: 20px;
	height: 20px;
	z-index: 400;
}

ul.timeline>li h4 {
	float: left;
	font-weight: 600;
	font-size: 16px;
	color: var(--color-timeline-text);
}

ul.timeline>li span {
	float: right;
	font-size: 13px;
	color: var(--color-text-dark);
	position: relative;
	top: 7px;
}

@media (max-width: 767px) {
	.logo-login {
		max-width: 125px;
		margin: 0 auto;
	}

	.login-text {
		position: relative;
		top: 0;
		transform: none;
		margin-top: 10px;
		text-align: center;
	}

	.auth-left {
		padding: 20px;
		height: auto;
		min-height: auto;
	}

	.login-text h1 {
		font-size: 20px;
	}

	.login-text h4 {
		font-size: 15px;
		margin-bottom: 0;
	}

	.login-container h2 {
		font-size: 25px;
		color: var(--color-auth-heading);
		font-weight: 700;
		margin-top: 10px;
	}
}

.page-wrapper.outside_base {
	padding-left: 0px;
}

.navbar.navbar-expand-lg {
	background: var(--color-surface) !important;
	padding: 5px 40px !important;
	box-shadow: 0 2px 8px -3px rgba(0, 0, 0, .1);
}

.btn-primary {
	background-color: var(--color-primary);
	border-color: var(--color-primary);
	border-radius: 3px;
}

.btn-outline-danger {
	color: var(--color-outline-danger);
	background-color: transparent;
	background-image: none;
	border-color: var(--color-outline-danger);
}

.table thead th {
	color: var(--gray-500);
	font-size: 12px;
	font-weight: 500;
}

.content-area .table-widget .table {
	border-collapse: separate;
	border-spacing: 0;
}

.table-widget.table-responsive {
	background: var(--color-surface);
	border-radius: 8px;
}

.content-area .table-widget .table tr td:first-child,
.content-area .table-widget .table tr th:first-child {
	border-radius: 0;
	-webkit-border-radius: 0;
}

.content-area .table-widget .table tr {
	background-color: var(--color-surface);
	border-radius: 0;
	-webkit-border-radius: 0;
	border: 1px solid rgba(0, 0, 0, 0.1);
}

.anchor-wrap:hover {
	background: var(--gray-100) !important;
	cursor: pointer;
}

.content-area .table-widget .table tr td {
	border-bottom: 1px solid var(--color-table-border);
	padding: 8px 5px;
}

.content-area .table-widget .table.height-small tr td {
	border-bottom: 1px solid var(--color-table-border);
	padding: 4px 3px;
}

.history-table.table thead th {
	padding: 4px 3px;
}

.history-table.table thead th {
	font-size: 12px;
	color: var(--gray-500);
	font-weight: 500;
}

.subtable h5 {
	font-size: 12px;
	margin-top: 10px;
	text-transform: uppercase;
	font-weight: 600;
	padding: 5px 10px;
	background: var(--color-progress-bg);
}

.listproimg {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	overflow: hidden;
}

.listproimg img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.btn.toggle-tabs {
	border: none !important;
	box-shadow: none !important;
}

.pipelinelist {
	width: 20%;
	padding: 0 15px;
}

.file-container {
	position: relative;
	margin-top: 0px;
	float: left;
	overflow: hidden;
	width: 100%;
}

.card-header span {
	float: right;
	color: var(--color-card-header-accent);
	font-size: 17px;
	line-height: 30px;
	text-transform: uppercase;
}

.file-container .form-control-file {
	position: absolute;
	width: 100%;
	height: 100%;
	z-index: 99;
	left: 0;
	top: 0;
	opacity: 0;
	cursor: pointer;
}

.input-file-trigger {
	display: block;
	background: var(--color-info);
	float: left;
	color: var(--color-surface);
	line-height: 40px;
	padding: 0 20px;
	position: relative;
	max-width: 100%;
	border-radius: 2px;
	min-width: 170px;
	text-align: center;
	border: 1px solid var(--color-info);
	cursor: pointer;
	text-overflow: ellipsis;
	white-space: nowrap;
	overflow: hidden;
}

.file-return {
	margin: 0;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.download-wrp {
	background: var(--color-progress-bg);
	padding: 20px;
}

.profile-left {
	padding: 10px;
}

.profile-pic {
	width: 110px;
	height: 110px;
	overflow: hidden;
	border-radius: 50%;
	padding: 0 !important;
	position: relative;
	background: var(--color-progress-bg);
}

.profile-pic img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ajax-file-upload {
	display: block !important;
	text-align: center !important;
	width: 160px !important;
	margin: 10px auto !important;
	padding: 10px !important;
}

.ajax-upload-dragdrop>span {
	text-align: center;
	display: block;
	padding: 0px 0;
}

.profile-left h2 {
	font-size: 20px;
	font-weight: 600;
	padding: 0;
	margin: 0px 0 5px;
	color: var(--color-heading-dark);
}

.pro-email {
	color: var(--color-text-muted-secondary);
	font-size: 13px;
}

.pro-phone {
	color: var(--color-heading-dark);
	font-size: 13px;
}

.profile-left li i {
	font-size: 12px;
	vertical-align: text-bottom;
	margin-right: 2px;
	top: -1px;
	position: relative;
}

.pro-option .btn {
	padding: 4px 7px;
	font-size: 12px;
}

.pro-option .btn:hover {
	opacity: .8;
}

.btn-success {
	background-color: var(--color-success) !important;
	border: 1px solid var(--color-success) !important;
}

.btn-secondary {
	background-color: var(--color-static-5) !important;
	border: 1px solid var(--color-static-5) !important;
}

.btn-dark {
	background-color: var(--color-button-secondary) !important;
	border: 1px solid var(--color-button-secondary) !important;
}

.pro-option .btn i {
	font-size: 12px;
	top: -2px;
	position: relative;
	margin-right: 3px;
}

.profile-left:hover .changeimg {
	top: 0;
	opacity: 1;
}

.changeimg {
	position: absolute;
	top: 100%;
	left: 0;
	background: rgba(0, 0, 0, .6);
	width: 100%;
	height: 100%;
	padding: 44px 0;
	color: var(--color-surface);
	font-size: 12px;
	text-align: center;
	font-weight: 600;
	cursor: pointer;
	transition: all ease .3s;
	opacity: 0;
}

.changeimg i {
	font-size: 12px;
	margin-right: 3px;
	position: relative;
	top: -2px;
}

.loadpro {
	position: absolute;
	width: 100%;
	height: 100%;
	background: var(--color-progress-bg);
	text-align: center;
	line-height: 110px;
}

.loadpro i {
	font-size: 50px;
	position: relative;
	top: 13px;
	color: var(--color-loading-muted);
}

.widget-heading {
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.widget-heading h2 {
	border-bottom: none;
}

.widget-heading select {
	margin-top: 5px;
}

.mail-left {
	width: 400px;
	background: var(--color-surface);
	padding: 10px;
	height: calc(100vH - 160px);
	float: left;
}

.mail-left h2 {
	font-size: 18px;
	margin-bottom: 0;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--gray-200);
	padding-top: 4px;
}

.mails-list a {
	display: block;
	padding: 7px 0px;
	color: var(--color-text-black);
}

.mails-list {
	list-style-type: none;
	margin: 0;
	padding: 0;
	max-height: calc(100vH - 270px);
	display: block;
	overflow-y: auto;
	width: calc(100% + 30px);
	padding-right: 10px;
}

.mail-right {
	float: left;
	width: calc(100% - 400px);
	background: var(--color-surface);
	padding: 10px;
	height: calc(100vH - 160px);
	border-left: 1px solid var(--color-border-mail);
}

.mail-content {
	position: relative;
	height: 100%;
	overflow: scroll;
	padding: 15px;
}

.email-content-header h5 {
	color: var(--color-card-heading);
	font-size: 16px;
}

.email-content-header img {
	margin-right: 5px;
}

.btn.mail-btn {
	background: var(--color-mail-bg);
	border-radius: 50%;
	color: var(--color-mail-text) !important;
	float: right;
	margin-left: 10px;
	width: 40px;
	height: 40px;
	line-height: 40px;
	text-align: center;
	padding: 0;
}

.datemail {
	margin-top: 13px;
	font-size: 12px;
	color: var(--color-feedback-text);
}

.email-content-body h1 {
	font-size: 21px;
	font-weight: 600;
	margin-top: 10px;
}

.email-content-header {
	padding-top: 5px;
	padding-bottom: 3px;
	border-bottom: 1px solid var(--color-divider);
	margin-bottom: 10px;
}

.feedback-message i {
	font-size: 39px;
	line-height: 10px;
	position: relative;
	top: 9px;
}

.anchor-wrap strong {
	color: var(--color-anchor);
}

.btn.btn-sm.btn-outline-danger i {
	color: var(--color-outline-danger);
}

.btn.btn-sm.btn-outline-primary i {
	color: var(--color-link);
}

.dropdown-display .dropdown-chose-list {
	height: 24px !important;
}

.mails-list li a {
	background: transparent;
}

.mails-list li.unread a {
	padding-left: 10px;
}

/* ----- Stats cards (reusable filter/summary widgets: email, campaigns, etc.) ----- */
.stats-cards-wrap {
	margin-bottom: 1rem;
}
.stats-cards {
	margin: 0.5rem;
}
.stats-cards__row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}
.stats-cards__row--single-row {
	flex-wrap: nowrap;
}
.stats-cards__row--single-row > div {
	flex: 1 1 0;
	min-width: 0;
}
.stats-cards__card {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	background: var(--color-surface);
	border: 1px solid var(--gray-200);
	border-radius: 10px;
	padding: 1rem 1.25rem;
	text-decoration: none;
	color: inherit;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
	width: 100%;
	min-height: 72px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
	transform: scale(1);
}
.stats-cards__card:hover {
	transform: scale(1.03);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);
	border-color: var(--gray-300);
}
.stats-cards__left {
	display: flex;
	align-items: center;
	gap: 12px;
	flex: 1;
	min-width: 0;
}
.stats-cards__icon {
	width: 40px;
	height: 40px;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	font-size: 1.125rem;
}
/* Icon color variants (reusable across modules) */
.stats-cards__icon--pink {
	background: rgba(236, 72, 153, 0.1);
	color: #db2777;
}
.stats-cards__icon--blue {
	background: rgba(59, 130, 246, 0.1);
	color: #2563eb;
}
.stats-cards__icon--green {
	background: rgba(34, 197, 94, 0.1);
	color: #16a34a;
}
.stats-cards__icon--red {
	background: rgba(239, 68, 68, 0.1);
	color: #dc2626;
}
.stats-cards__icon--purple {
	background: rgba(139, 92, 246, 0.1);
	color: #7c3aed;
}
.stats-cards__icon--teal {
	background: rgba(20, 184, 166, 0.1);
	color: #0d9488;
}
.stats-cards__body {
	min-width: 0;
}
.stats-cards__label {
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--gray-800);
	margin: 0 0 2px 0;
	display: block;
}
.stats-cards__hint {
	font-size: 0.75rem;
	color: var(--gray-500);
	display: block;
	margin: 0;
}
.stats-cards__hint--active {
	display: none;
}
.stats-cards__card--active .stats-cards__hint--click {
	display: none;
}
.stats-cards__card--active .stats-cards__hint--active {
	display: block;
}
.stats-cards__number {
	font-size: 1.75rem;
	font-weight: 700;
	line-height: 1;
	color: var(--gray-800);
	flex-shrink: 0;
}
.stats-cards__number--highlight {
	color: var(--color-primary);
}
.stats-cards__number--alert {
	color: #dc2626;
}

/* Mailbox layout and left panel */

.mail-wrapper {
	display: flex;
	background: var(--color-surface);
	border-radius: 12px;
	box-shadow: var(--shadow-card);
	border: 1px solid var(--gray-200);
	overflow: hidden;
}
.mail-left {
	width: 380px;
	min-width: 320px;
	background: var(--color-surface);
	padding: 0;
	height: calc(100vH - 200px);
	min-height: 420px;
	float: left;
	display: flex;
	flex-direction: column;
	border-right: 1px solid var(--gray-200);
}
.mail-left h2 {
	font-size: 1.25rem;
	font-weight: 600;
	margin: 0;
	padding: 1rem 1.25rem;
	border-bottom: 1px solid var(--gray-200);
	color: var(--gray-800);
	display: flex;
	align-items: center;
	gap: 0.5rem;
}
.mail-left h2 #totalcount {
	font-size: 0.875rem;
	font-weight: 600;
	background: var(--gray-200);
	color: var(--gray-700);
	padding: 0.25rem 0.5rem;
	border-radius: 6px;
}
.mail-left #list {
	flex: 1;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	padding: 0;
}
.mails-list {
	list-style: none;
	margin: 0;
	padding: 0;
	max-height: none;
	height: 100%;
	overflow-y: auto;
	width: 100%;
	padding-right: 0;
}
.mails-list a {
	display: block;
	padding: 12px 1.25rem;
	color: var(--color-text-black);
	text-decoration: none;
	border-left: 3px solid transparent;
	transition: background 0.15s ease;
}
.mails-list li {
	border-bottom: 1px solid var(--gray-200);
}
.mails-list li:last-child {
	border-bottom: none;
}
.mails-list li:hover a {
	background: var(--gray-100);
}
.mails-list li.active a {
	background: #eff6ff;
	border-left-color: var(--color-primary);
}
.mails-list li a h1 {
	font-size: 0.9375rem;
	font-weight: 600;
	margin: 0 0 4px 0;
	color: var(--gray-800);
	line-height: 1.3;
}
.mails-list li a small {
	display: block;
	font-size: 0.8125rem;
	color: var(--gray-600);
	line-height: 1.4;
	margin-bottom: 4px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.mails-list li a .email-attachment {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	font-size: 0.75rem;
	color: var(--gray-500);
}
.mails-list li a .email-attachment span:first-child {
	flex-shrink: 0;
}
.mails-list li.unread a h1 {
	font-weight: 700;
}
.mail-wrapper .mails-list li.unread a {
	background: transparent;
	border-left: none;
}
.mail-wrapper .mails-list li.unread.active a {
	background: #eff6ff;
	border-left: 3px solid var(--color-primary);
}
.mail-right {
	float: left;
	width: calc(100% - 380px);
	background: var(--color-surface);
	padding: 0;
	height: calc(100vH - 200px);
	min-height: 420px;
	border-left: none;
}
.mail-content {
	position: relative;
	height: 100%;
	overflow: auto;
	padding: 1.5rem 2rem;
}
.email-content-header {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
	padding: 1rem 0;
	border-bottom: 1px solid var(--gray-200);
	margin-bottom: 1rem;
}
.email-content-header .row {
	width: 100%;
	margin: 0;
}
.email-content-header h5 {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 1rem;
	font-weight: 600;
	color: var(--gray-800);
	margin: 0;
}
.email-content-header h5 img {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
	margin-right: 0;
}
.email-content-header .col-md-6.text-right {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	flex-wrap: wrap;
	gap: 8px;
}
.email-content-header .datemail {
	margin: 0;
	font-size: 0.8125rem;
	color: var(--gray-500);
}
.email-content-header--beautified .email-avatar {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%);
	color: #fff;
	font-size: 0.9375rem;
	font-weight: 600;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	margin-right: 12px;
}
.email-content-header--beautified .email-sender-info {
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.email-content-header--beautified .email-sender-name {
	margin: 0;
	font-size: 1rem;
	font-weight: 600;
	color: var(--gray-800);
}
.email-content-header--beautified .email-sender-address {
	font-size: 0.8125rem;
	color: var(--gray-500);
}
.btn.mail-btn {
	background: var(--gray-100);
	border: 1px solid var(--gray-200);
	border-radius: 50%;
	color: var(--gray-700) !important;
	width: 36px;
	height: 36px;
	line-height: 36px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	margin-left: 6px;
	transition: background 0.2s ease, color 0.2s ease;
}
.btn.mail-btn:hover {
	background: var(--gray-200);
	color: var(--color-primary) !important;
}
.email-content-body h1 {
	font-size: 1.25rem;
	font-weight: 600;
	margin: 0 0 1rem 0;
	color: var(--gray-800);
	line-height: 1.4;
}
.email-content-body + strong,
article.py-3 {
	font-size: 0.9375rem;
	color: var(--gray-600);
	line-height: 1.6;
}
.email-footer .attachments a {
	border-radius: 8px;
}

/* ----- Topbar responsive: tablet and below (navbar collapsed) ----- */
@media (max-width: 991px) {
	body:has(.topbar-modern) .page-wrapper {
		padding-top: 56px;
	}

	.page-wrapper {
		padding: 15px !important;
		padding-top: 56px !important;
	}

	.navbar.navbar-expand-lg.topbar-modern {
		position: relative;
	}

	.navbar.navbar-expand-lg {
		margin-left: 0;
		width: 100%;
		min-height: 56px;
		padding: 0 0.75rem;
	}

	.topbar-modern .topbar-logo {
		height: 36px;
		max-width: 180px;
	}

	.topbar-modern .navbar-brand .topbar-brand-text {
		font-size: 1.15rem;
	}

	.topbar-modern .topbar-toggler {
		padding: 0.4rem 0.5rem;
		font-size: 1rem;
	}

	/* Collapsed menu panel */
	.topbar-modern .navbar-collapse {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
		border-top: 1px solid var(--color-border-topbar);
		box-shadow: 0 10px 32px rgba(0, 51, 153, 0.08);
		max-height: calc(100vh - 56px);
		overflow-y: auto;
		flex-direction: column;
		align-items: stretch;
		padding: 0.5rem 0;
		margin: 0 -0.75rem;
		border-radius: 0 0 12px 12px;
	}

	.topbar-modern .navbar-collapse.collapsing {
		transition: none;
	}

	.topbar-modern .topbar-nav {
		margin: 0;
		flex-direction: column;
		width: 100%;
	}

	.topbar-modern .topbar-nav .nav-item {
		margin: 0;
		width: 100%;
		border-bottom: 1px solid var(--color-topbar-hover-bg);
	}

	.topbar-modern .topbar-nav .nav-link {
		padding: 0.75rem 1rem !important;
		width: 100%;
		display: block;
		border-radius: 0;
	}
	.topbar-modern .topbar-nav .nav-item.active .nav-link::after {
		left: 1rem;
		right: 1rem;
		bottom: 10px;
	}

	/* Dropdowns inside collapsed nav: full width, no absolute positioning */
	.topbar-modern .topbar-nav .dropdown-menu {
		position: static !important;
		float: none !important;
		width: 100%;
		box-shadow: none;
		border: none;
		border-radius: 0;
		margin: 0;
		padding: 0 0 0 1rem;
		background: var(--color-bg-subtle);
		max-height: 280px;
		overflow-y: auto;
	}

	.topbar-modern .topbar-nav .dropdown-item {
		border-radius: 0;
		padding: 0.6rem 1rem;
	}

	.topbar-modern .topbar-avatar {
		width: 40px;
		height: 40px;
	}

	#navbarDropdown {
		height: auto;
		overflow: visible;
	}
}

/* ----- Topbar responsive: small phones ----- */
@media (max-width: 576px) {
	body:has(.topbar-modern) .page-wrapper {
		padding-top: 52px;
	}

	.page-wrapper {
		padding: 12px !important;
		padding-top: 52px !important;
	}

	.topbar.topbar-modern {
		min-height: 52px;
		padding: 0 0.5rem;
	}

	.topbar-modern .topbar-logo {
		height: 32px;
		max-width: 140px;
	}

	.topbar-modern .navbar-brand .topbar-brand-text {
		font-size: 1rem;
	}

	.topbar-modern .topbar-toggler {
		padding: 0.35rem 0.45rem;
	}

	.topbar-modern .navbar-collapse {
		max-height: calc(100vh - 52px);
		margin: 0 -0.5rem;
	}

	.topbar-modern .topbar-nav .nav-link {
		padding: 0.65rem 0.75rem !important;
		font-size: 0.9375rem;
	}

	.topbar-modern .topbar-nav .dropdown-menu {
		padding-left: 0.75rem;
	}

	.topbar-modern .topbar-avatar {
		width: 38px;
		height: 38px;
	}

	.topbar-modern .topbar-badge {
		min-width: 18px;
		height: 14px;
		padding: 0 4px;
		font-size: 10px;
		line-height: 14px;
	}
}

/* ----- Topbar responsive: extra small ----- */
@media (max-width: 360px) {
	.topbar-modern .topbar-logo {
		max-width: 120px;
		height: 28px;
	}

	.topbar-modern .navbar-brand .topbar-brand-text {
		font-size: 0.9rem;
	}

	.topbar.topbar-modern {
		padding: 0 0.4rem;
	}

	.topbar-modern .topbar-nav .nav-link {
		font-size: 0.875rem;
	}
}

/* ----- Large screens: ensure topbar doesn't grow beyond content ----- */
@media (min-width: 992px) {
	.topbar-modern .topbar-nav {
		flex-wrap: wrap;
	}

	.topbar-modern .topbar-nav .nav-link {
		white-space: nowrap;
	}
}

@media (min-width: 1200px) {
	.topbar.topbar-modern {
		padding: 0 1.25rem;
	}
}

/* ==================================================
   FEATURES - List page (reusable: leadlist, helpdesk, etc.)
================================================== */
.listpage-filters-bar {
	width: 100%;
	padding: 1.25rem 1.5rem;
	background: var(--color-surface);
}

.listpage-card .listpage-filters-bar {
	box-shadow: none;
}
/* Edit Group page: Group Details card — SaaS-style layout */
.group-details-card {
	background: var(--color-surface);
	padding: 18px 20px;
	border-radius: 12px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
	margin: 1.5rem 1.5rem;
	border: 1px solid var(--gray-100);
}
.group-details-card__title {
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	color: var(--gray-500);
	text-transform: uppercase;
	margin: 0 0 12px 0;
	padding: 0;
	line-height: 1.3;
}
.group-details-card__divider {
	height: 1px;
	background: var(--gray-200);
	margin: 0 0 20px 0;
}
.group-details-card__body {
	/* spacing handled by form row */
}
.group-details-form__row {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 18px 20px;
}
.group-details-form__field {
	flex: 1 1 200px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.group-details-form__label {
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.04em;
	color: var(--gray-600);
	line-height: 1.3;
	margin: 0;
}
.group-details-form__input-wrap {
	position: relative;
	display: block;
}
.group-details-form__icon {
	display: none;
}
.group-details-form__input,
.group-details-form__select {
	display: block;
	width: 100%;
	height: 44px;
	min-height: 44px;
	padding: 0 12px;
	font-size: 0.9rem;
	line-height: 1.25;
	border: 1px solid var(--gray-200);
	border-radius: 8px;
	background: var(--color-surface);
	color: var(--gray-800);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
	box-sizing: border-box;
}
.group-details-form__input:hover,
.group-details-form__select:hover {
	border-color: var(--gray-300);
}
.group-details-form__input:focus,
.group-details-form__select:focus {
	outline: none;
	border-color: var(--color-primary);
	box-shadow: 0 0 0 3px rgba(0, 51, 153, 0.12);
}
.group-details-form__input::placeholder {
	color: var(--gray-400);
}
.group-details-form__input--readonly {
	background: var(--gray-100);
	color: var(--gray-600);
	cursor: not-allowed;
}
.group-details-form__select {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 12px;
	padding-right: 32px;
}
.group-details-form__helper {
	font-size: 0.75rem;
	color: var(--gray-500);
	line-height: 1.35;
	margin: 0;
}
.group-details-form__error {
	font-size: 0.8125rem;
	color: var(--color-danger, #dc3545);
	margin-top: 2px;
}
.group-details-form__select[multiple],
.group-details-form__input--multiple {
	min-height: 100px;
	height: auto;
	padding: 0.5rem 12px;
	padding-right: 12px;
}
textarea.group-details-form__input {
	min-height: 80px;
	height: auto;
	padding: 0.5rem 12px;
	resize: vertical;
}
.group-details-form__field--full {
	flex: 1 1 100%;
}
.group-details-form__checkbox-wrap {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	min-height: 44px;
	margin: 0;
	font-weight: 500;
	color: var(--gray-700);
	cursor: pointer;
}
.group-details-form__checkbox-wrap input[type="checkbox"] {
	width: 1.125rem;
	height: 1.125rem;
	margin: 0;
	accent-color: var(--color-primary);
	cursor: pointer;
	border-radius: 4px;
	flex-shrink: 0;
}
.group-details-form__actions {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	margin-top: 16px;
}
.group-details-form__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 44px;
	min-height: 44px;
	padding: 0 20px;
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--color-surface);
	background: var(--color-primary);
	border: none;
	border-radius: 8px;
	box-shadow: 0 1px 2px rgba(0, 51, 153, 0.2);
	cursor: pointer;
	transition: background-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.group-details-form__submit:hover {
	background: var(--color-primary-dark);
	box-shadow: 0 2px 6px rgba(0, 51, 153, 0.3);
	transform: translateY(-1px);
}
@media (max-width: 767px) {
	.group-details-form__row {
		flex-direction: column;
		align-items: stretch;
	}
	.group-details-form__field {
		flex: 1 1 auto;
	}
	.group-details-form__actions {
		margin-top: 16px;
	}
	.group-details-form__submit {
		width: 100%;
	}
}

/* Import History drawer (right-side slide panel) */
.import-history-drawer {
	position: fixed;
	inset: 0;
	z-index: 1050;
	pointer-events: none;
	visibility: hidden;
	transition: visibility 0s linear 600ms;
}
.import-history-drawer--open {
	pointer-events: auto;
	visibility: visible;
	transition: visibility 0s linear 0s;
}
.import-history-drawer--closed .import-history-drawer__panel {
	transform: translateX(100%);
}
.import-history-drawer--open .import-history-drawer__panel {
	transform: translateX(0);
}
.import-history-drawer__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.35);
	opacity: 0;
	transition: opacity 600ms ease-out;
}
.import-history-drawer--open .import-history-drawer__backdrop {
	opacity: 1;
}
.import-history-drawer__panel {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: 32%;
	min-width: 280px;
	max-width: 420px;
	background: var(--color-surface);
	box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
	display: flex;
	flex-direction: column;
	transition: transform 600ms cubic-bezier(0.32, 0.72, 0, 1);
	transform: translateX(100%);
	pointer-events: auto;
}
.import-history-drawer__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1rem 1.25rem;
	border-bottom: 1px solid var(--gray-200);
	flex-shrink: 0;
}
.import-history-drawer__title {
	margin: 0;
	font-size: 1.1rem;
	font-weight: 600;
	color: var(--gray-800);
}
.import-history-drawer__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	padding: 0;
	border: none;
	background: transparent;
	color: var(--gray-500);
	border-radius: 6px;
	cursor: pointer;
	transition: color 0.15s ease, background 0.15s ease;
}
.import-history-drawer__close:hover {
	color: var(--gray-700);
	background: var(--gray-100);
}
.import-history-drawer__body {
	flex: 1;
	min-height: 0;
	overflow-y: auto;
	padding: 1rem 1.25rem;
	position: relative;
}
.import-history-drawer__loading {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	padding: 2rem;
	color: var(--gray-500);
	font-size: 0.9rem;
}
.import-history-drawer__spinner {
	font-size: 1.5rem;
	color: var(--color-primary);
}
.import-history-drawer__content {
	width: 100%;
}
.import-history-drawer__content .widget {
	margin: 0;
	padding: 0;
	border: none;
	background: transparent;
}
.import-history-drawer__content .widget h2 {
	margin: 0 0 0.75rem 0;
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--gray-700);
}
.import-history-drawer__content .table {
	width: 100%;
	font-size: 0.875rem;
	margin-bottom: 0;
}
.import-history-drawer__content .table th,
.import-history-drawer__content .table td {
	padding: 0.5rem 0.75rem;
	vertical-align: middle;
}

/* Imported Excel List table — layout, alignment, action button */
.imported-excel-widget {
	margin: 0;
	padding: 0;
}
.imported-excel-widget__title {
	margin: 0 0 0.75rem 0;
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--gray-700);
}
.imported-excel-table-wrap {
	width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	border: 1px solid var(--gray-200);
	border-radius: var(--radius-sm);
	background: var(--color-surface);
}
.imported-excel-table {
	width: 100%;
	table-layout: auto;
	font-size: 0.875rem;
	margin: 0;
	border-collapse: collapse;
	border: none;
}
.imported-excel-table__col-name {
	width: 100%;
}
.imported-excel-table__col-actions {
	width: 140px;
	max-width: 150px;
}
.imported-excel-table thead tr {
	border-bottom: 1px solid var(--gray-200);
	background: var(--color-bg-muted);
}
.imported-excel-table th {
	padding: 0.75rem 1rem;
	text-align: left;
	font-weight: 600;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	color: var(--gray-600);
	vertical-align: middle;
	border: none;
}
.imported-excel-table th:first-child {
	padding-left: 1rem;
}
.imported-excel-table th:last-child {
	text-align: right;
	padding-right: 1rem;
}
.imported-excel-table tbody tr {
	transition: background 0.15s ease;
}
.imported-excel-table tbody tr:hover {
	background: var(--color-bg-muted);
}
.imported-excel-table tbody tr:not(:last-child) {
	border-bottom: 1px solid var(--gray-200);
}
.imported-excel-table td {
	padding: 0.75rem 1rem;
	vertical-align: middle;
	border: none;
	color: var(--gray-800);
}
.imported-excel-table td:first-child {
	padding-left: 1rem;
	text-align: left;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.imported-excel-table td:last-child {
	text-align: right;
	padding-right: 1rem;
	white-space: nowrap;
}
.imported-excel-table__action-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	padding: 0.25rem 0.75rem;
	font-size: 0.8125rem;
	line-height: 1.35;
	font-weight: 500;
	color: var(--gray-600);
	background: transparent;
	border: 1px solid var(--gray-300);
	border-radius: 6px;
	cursor: pointer;
	transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.imported-excel-table__action-btn:hover {
	color: var(--gray-800);
	background: var(--gray-100);
	border-color: var(--gray-400);
}
.imported-excel-table__action-btn i {
	font-size: 0.75rem;
	opacity: 0.9;
}
@media (max-width: 480px) {
	.imported-excel-table td:first-child {
		white-space: normal;
		overflow: visible;
		text-overflow: clip;
		max-width: none;
		word-break: break-word;
	}
	.imported-excel-table__action-btn span {
		display: none;
	}
	.imported-excel-table__action-btn {
		padding: 0.35rem 0.5rem;
		min-width: 2rem;
	}
	.imported-excel-table td,
	.imported-excel-table th {
		padding: 0.75rem 1rem;
	}
}

.import-history-drawer__error {
	margin: 0;
	color: var(--color-danger, #dc3545);
	font-size: 0.9rem;
}
body.import-history-drawer-body-open {
	overflow: hidden;
}
@media (max-width: 767px) {
	.import-history-drawer__panel {
		width: 90%;
		max-width: none;
	}
}

/* Filters bar with action buttons on the right (e.g. Edit Group) */
.listpage-filters-bar--with-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem 1.5rem;
	justify-content: space-between;
}
.listpage-filters-bar--with-actions .listpage-filters {
	flex: 1 1 320px;
	min-width: 0;
}
.listpage-filters-bar--with-actions .listpage-header__actions--bar {
	flex: 0 0 auto;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
}
.listpage-form-card--in-card {
	box-shadow: none;
	border: none;
	border-radius: 0;
	border-bottom: var(--border-default);
	margin: 0 -1.5rem;
	padding: 0 1.5rem;
}
.listpage-form-card__grid--group-edit {
	grid-template-columns: 1fr 1fr;
	max-width: 560px;
}
@media (max-width: 767px) {
	.listpage-form-card__grid--group-edit {
		grid-template-columns: 1fr;
	}
}
/* Edit Group: 3-column filter row (Group Name, Department, Save) */
.listpage-filters__row--group-edit {
	grid-template-columns: 1fr 1fr auto;
}
@media (max-width: 767px) {
	.listpage-filters__row--group-edit {
		grid-template-columns: 1fr;
	}
}

/* Mailbox: single white card containing filter + mailbox */
.mailbox-card {
	background: var(--color-surface);
	border: 1px solid var(--gray-200);
	border-radius: var(--radius-md);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
	overflow: hidden;
}
.listpage-filters-bar--in-card {
	border-bottom: 1px solid var(--gray-200);
	box-shadow: none;
}
.listpage-filters-bar--mailbox.listpage-filters-bar--in-card {
	border: none;
	border-radius: 0;
}
.mailbox-card__body {
	overflow: hidden;
}
.mailbox-card__body .mail-wrapper {
	box-shadow: none;
	border: none;
	border-radius: 0;
}

/* Mailbox filter row layout */
.listpage-filters-bar--mailbox {
	border-radius: 0;
	border: none;
	box-shadow: none;
}
.mailbox-card .listpage-filters-bar--mailbox:first-child {
	border-radius: 0;
	border-bottom: 1px solid var(--gray-200);
}
.listpage-filters__row--mailbox {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	align-items: flex-end;
}
.listpage-filters__row--mailbox .listpage-filters__field--keyword {
	flex: 1 1 200px;
	min-width: 0;
}
.listpage-filters__row--mailbox .listpage-filters__field--actions {
	flex: 0 0 auto;
}

.listpage-filters--inline {
	max-width: 1400px;
	margin: 0 auto;
}

/* Single layout for all listpage inline filters (leadlist, helpdesk): equal-width columns so all inputs same size */
.listpage-filters__row--inline {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 1rem 1.25rem;
	align-items: end;
}
.listpage-filters__row--inline .listpage-filters__field {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	min-width: 0;
}
/* All filter fields (keyword/search, user, country, date) same width as search input in leadlist & helpdesk */
.listpage-filters__row--inline .listpage-filters__field--keyword,
.listpage-filters__row--inline .listpage-filters__field--user,
.listpage-filters__row--inline .listpage-filters__field--country,
.listpage-filters__row--inline .listpage-filters__field--date {
	min-width: 0;
	max-width: none;
}
.listpage-filters__row--inline .listpage-filters__field--keyword {
	flex: none; /* override base flex so keyword doesn't get different width */
}
/* Actions: match label + input vertical space so buttons align with inputs (same as leadlist) */
.listpage-filters__row--inline .listpage-filters__field--actions {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding-top: calc(0.75rem * 1.2 + 0.35rem); /* label line-height + margin-bottom */
	gap: 0.5rem;
}
.listpage-filters__row--inline .listpage-filters__field--actions .listpage-filters__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem;
}
/* When actions is on second row (e.g. helpdesk), span rest of row and align buttons right */
.listpage-filters__row--inline .listpage-filters__field--actions:nth-child(n+9) {
	grid-column: 3 / -1;
}
.listpage-filters__row--inline .listpage-filters__field--actions:nth-child(n+9) .listpage-filters__actions {
	justify-content: flex-end;
}
.listpage-filters__row--inline .listpage-filters__field--actions .listpage-filters__label--hidden {
	display: none;
}
@media (max-width: 991px) {
	.listpage-filters__row--inline {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
	.listpage-filters__row--inline .listpage-filters__field--actions:nth-child(n+9) {
		grid-column: auto;
	}
	.listpage-filters__row--inline .listpage-filters__field--actions:nth-child(n+9) .listpage-filters__actions {
		justify-content: flex-end;
	}
}
@media (max-width: 767px) {
	.listpage-filters__row--inline {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (max-width: 575px) {
	.listpage-filters__row--inline {
		grid-template-columns: 1fr;
	}
	.listpage-filters__row--inline .listpage-filters__field--actions {
		padding-top: 0;
		justify-content: flex-start;
	}
	.listpage-filters__row--inline .listpage-filters__field--actions .listpage-filters__actions {
		flex-direction: column;
		align-items: stretch;
	}
	.listpage-filters__row--inline .listpage-filters__field--actions:nth-child(n+9) .listpage-filters__actions {
		justify-content: stretch;
	}
	.listpage-filters__row--inline .listpage-filters__btn {
		width: 100%;
	}
}

/* Add Customers (group lead search): 4-column filter row – Keyword, Start date, End date, Actions */
.listpage-filters__row--add-customers {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 991px) {
	.listpage-filters__row--add-customers {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (max-width: 575px) {
	.listpage-filters__row--add-customers {
		grid-template-columns: 1fr;
	}
}

.listpage-filters {
	background: var(--color-surface);
}

/* Filter panel (popover or inline when trigger is removed) */
.listpage-filters__panel {
	display: block;
}

.listpage-filters__panel-title {
	display: block;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--color-text-primary);
	margin: 0 0 1rem;
	padding-bottom: 0.75rem;
	border-bottom: 1px solid var(--gray-200);
}

.listpage-filters__row--popover {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1rem;
}

.listpage-filters__row--popover .listpage-filters__field--keyword {
	grid-column: 1 / -1;
}

.listpage-filters__row--popover .listpage-filters__field--actions {
	grid-column: 1 / -1;
	display: flex;
	flex-direction: row;
	justify-content: flex-end;
	padding-top: 0.5rem;
}

.listpage-filters__row--popover .listpage-filters__field--actions .listpage-filters__label--hidden {
	display: none;
}

@media (max-width: 480px) {
	.listpage-filters__row--popover {
		grid-template-columns: 1fr;
	}
}

.listpage-filters__row {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	align-items: flex-end;
}


.listpage-filters__field--keyword {
	min-width: 120px;
	flex: 1.2 1 0;
}

.listpage-filters__field--user,
.listpage-filters__field--country {
	min-width: 110px;
}

.listpage-filters__field--date {
	min-width: 120px;
}

.listpage-filters__field--actions {
	flex: 0 0 auto;
	min-width: 0;
}

.listpage-filters__label--hidden {
	visibility: hidden;
	height: 0;
	margin: 0;
	overflow: hidden;
}

.listpage-filters__actions {
	display: flex;
	gap: 0.5rem;
	align-items: center;
	justify-content: flex-end;
}

.listpage-filters__field {
	min-width: 0;
}

.listpage-filters__label {
	display: block;
	margin-bottom: 0.35rem;
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--gray-500);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.listpage-filters__input-wrap {
	position: relative;
	display: block;
}

.listpage-filters__input-icon {
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 0.8rem;
	color: var(--gray-400);
	pointer-events: none;
	z-index: 1;
}

/* Same size for all filter inputs/selects in leadlist and helpdesk */
.listpage-filters .listpage-filters__input,
.listpage-filters .listpage-filters__select {
	box-sizing: border-box;
	width: 100%;
	min-width: 250px;
	height: 42px;
	min-height: 42px;
	padding: 0 12px 0 36px;
	font-size: 0.9rem;
	line-height: 1.25;
	border: 1px solid var(--gray-200);
	border-radius: var(--radius-sm);
	background-color: var(--color-surface);
	color: var(--gray-800);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.listpage-filters__input:focus,
.listpage-filters__select:focus {
	outline: none;
	border-color: var(--color-primary);
	box-shadow: 0 0 0 3px rgba(0, 51, 153, 0.15);
}

.listpage-filters__input::placeholder {
	color: var(--gray-400);
}

.listpage-filters__select {
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	padding-right: 36px;
}

.listpage-filters__select option {
	color: var(--gray-800);
}

/* Same size for all filter buttons in leadlist and helpdesk */
.listpage-filters .listpage-filters__btn {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	height: 42px;
	min-height: 42px;
	padding: 0 1.25rem;
	font-size: 0.9rem;
	font-weight: 600;
	line-height: 1.25;
	border-radius: var(--radius-sm);
	border: none;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.listpage-filters__btn--primary {
	background: var(--color-primary);
	color: var(--color-surface);
	box-shadow: 0 1px 2px rgba(0, 51, 153, 0.3);
}

.listpage-filters__btn--primary:hover {
	background: var(--color-primary-dark);
	color: var(--color-surface);
	box-shadow: 0 2px 4px rgba(0, 51, 153, 0.35);
}

/* Outline button: visible border, no fill (overrides .btn if present) */
.listpage-filters .listpage-filters__btn--reset,
.listpage-filters__btn.listpage-filters__btn--reset {
	background-color: transparent !important;
	background: transparent;
	color: var(--color-primary);
	border: 1px solid var(--color-primary);
	box-shadow: none;
}

.listpage-filters .listpage-filters__btn--reset:hover,
.listpage-filters__btn.listpage-filters__btn--reset:hover {
	background: rgba(0, 51, 153, 0.08) !important;
	background-color: rgba(0, 51, 153, 0.08);
	color: var(--color-primary-dark);
	border-color: var(--color-primary-dark);
	box-shadow: none;
}

@media (max-width: 991px) {
	.listpage-filters-bar {
		padding: 1rem;
	}

	.listpage-filters__actions {
		justify-content: flex-start;
	}
}

/* ----- Leadlist: full page (content area) ----- */

.listpage-page {
	margin: 0 auto;
}

/* Single white card wrapping filters + header + table */
.listpage-card {
	background: var(--color-surface);
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-card);
	border: var(--border-default);
	overflow: hidden;
}

.listpage-breadcrumb {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.35rem;
	margin-bottom: 1rem;
	font-size: 0.8125rem;
	color: var(--gray-500);
}

.listpage-breadcrumb--right {
	justify-content: flex-end;
}

.listpage-breadcrumb__link {
	color: var(--gray-500);
	text-decoration: none;
	transition: color 0.15s ease;
}

.listpage-breadcrumb__link:hover {
	color: var(--color-primary);
}

.listpage-breadcrumb__sep {
	color: var(--gray-300);
	user-select: none;
}

.listpage-breadcrumb__current {
	color: var(--gray-700);
	font-weight: 600;
}

/* Form card (create/edit pages) */
.listpage-form-card {
	background: var(--color-surface);
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-card);
	border: var(--border-default);
	overflow: hidden;
}

.listpage-form-card__header {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 1.25rem 1.5rem;
	background: linear-gradient(135deg, var(--color-primary) 0%, #1e5bb8 100%);
}

.listpage-form-card__icon {
	width: 44px;
	height: 44px;
	border-radius: var(--radius-sm);
	background: rgba(255, 255, 255, 0.2);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 1.25rem;
	color: #fff;
}

.listpage-form-card__title {
	font-size: 1.25rem;
	font-weight: 600;
	color: #fff;
	margin: 0;
	letter-spacing: -0.02em;
}
.listpage-form-card__header-text {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
}
.listpage-form-card__subtitle {
	margin: 0;
	font-size: 0.875rem;
	font-weight: 400;
	color: rgba(255, 255, 255, 0.9);
	letter-spacing: 0;
}

.listpage-form-card__body {
	padding: 1.5rem 1.5rem 1.75rem;
}

.listpage-form-card .message,
.listpage-form-card .response {
	display: block;
	margin-bottom: 1rem;
}

.listpage-form-card__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1.25rem 1.5rem;
	margin-bottom: 1.5rem;
}

.listpage-form-card__field {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.listpage-form-card__label {
	font-weight: 500;
	color: var(--gray-700);
	margin-bottom: 0.4rem;
	font-size: 0.875rem;
}

.listpage-form-card__input {
	width: 100%;
	padding: 0.6rem 1rem;
	font-size: 0.9375rem;
	line-height: 1.4;
	border: 1px solid var(--gray-200);
	border-radius: var(--radius-sm);
	background: var(--color-surface);
	color: var(--gray-800);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.listpage-form-card__input:focus {
	outline: none;
	border-color: var(--color-primary);
	box-shadow: 0 0 0 3px rgba(0, 51, 153, 0.12);
}

.listpage-form-card__input--readonly {
	background: var(--gray-100);
	color: var(--gray-600);
	cursor: not-allowed;
}

.listpage-form-card__error {
	font-size: 0.8125rem;
	color: var(--color-accent, #c00);
	margin-top: 0.35rem;
}

.listpage-form-card__actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	flex-wrap: wrap;
	gap: 0.75rem;
	padding-top: 1.25rem;
	margin-top: 1.25rem;
	border-top: 1px solid var(--gray-200);
}

.listpage-form-card__actions .btn {
	padding: 0.6rem 1.25rem;
	font-weight: 500;
	border-radius: var(--radius-sm);
}

@media (max-width: 767px) {
	.listpage-form-card__grid {
		grid-template-columns: 1fr;
	}
}

/* Group Excel Import page — leadlist-style inputs */
.excel-import-page .excel-import-form.listpage-filters .listpage-filters__input,
.excel-import-page .excel-import-form.listpage-filters .listpage-filters__select {
	min-width: 0;
}
.excel-import-page .excel-import-form.listpage-filters textarea.listpage-filters__input {
	height: auto;
	min-height: 100px;
	padding-top: 0.6rem;
	padding-bottom: 0.6rem;
	resize: vertical;
}
.excel-import-page .excel-import-page__textarea-icon {
	top: 14px;
	transform: none;
}
.excel-import-page__subtitle {
	margin: 0 0 1.25rem 0;
	font-size: 0.9375rem;
	color: var(--gray-600);
	line-height: 1.45;
}
.excel-import-page .listpage-form-card__alert {
	margin-bottom: 1rem;
	border-radius: var(--radius-sm);
}
.excel-import-page__grid {
	margin-bottom: 1.25rem;
}
.excel-import-page__comments {
	margin-bottom: 1.25rem;
}

/* Customer Excel Import page */
.customer-excel-import-page .listpage-page {
	max-width: 720px;
	margin-left: auto;
	margin-right: auto;
}
.customer-excel-import-page .listpage-breadcrumb {
	margin-bottom: 1rem;
}

/* Customer Map Fields page (Import Leads – map step) */
.customer-map-fields-page .listpage-page {
	max-width: 720px;
	margin-left: auto;
	margin-right: auto;
}
.customer-map-fields-page .listpage-breadcrumb {
	margin-bottom: 1rem;
}

/* Map Excel Fields page — field mapping step */
.map-excel-fields-page__subtitle {
	margin: 0 0 1.25rem 0;
	font-size: 0.9375rem;
	color: var(--gray-600);
	line-height: 1.45;
}
.map-excel-fields-page .map-excel-fields-form.listpage-filters .listpage-filters__input,
.map-excel-fields-page .map-excel-fields-form.listpage-filters .listpage-filters__select {
	min-width: 0;
}
.map-excel-fields-page__grid {
	margin-bottom: 1.5rem;
}
.map-excel-fields-page__options {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem 2rem;
	margin-bottom: 1.25rem;
	padding: 1rem 0;
	border-top: 1px solid var(--gray-200);
	border-bottom: 1px solid var(--gray-200);
}
.map-excel-fields-page__options .form-group {
	margin: 0;
}
.map-excel-fields-page__checkbox-label {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	cursor: pointer;
	margin: 0;
	font-weight: 500;
	color: var(--gray-700);
	font-size: 0.9rem;
}
.map-excel-fields-page__checkbox-label input[type="checkbox"] {
	width: 1.125rem;
	height: 1.125rem;
	accent-color: var(--color-primary);
	cursor: pointer;
	flex-shrink: 0;
	border-radius: 4px;
}
.map-excel-fields-page .listpage-form-card__message {
	margin-bottom: 1rem;
	border-radius: var(--radius-sm);
}

/* Excel upload card — 2-step workflow */
.excel-upload-card {
	background: var(--color-surface);
	border: 1px solid var(--gray-200);
	border-radius: var(--radius-md);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
	margin-bottom: 1.5rem;
	overflow: hidden;
}
.excel-upload-card__body {
	padding: 1.25rem 1.5rem;
}
.excel-upload-card__step {
	display: flex;
	gap: 1rem;
	align-items: flex-start;
	margin-bottom: 1.5rem;
}
.excel-upload-card__step:last-child {
	margin-bottom: 0;
}
.excel-upload-card__step-num {
	flex-shrink: 0;
	width: 28px;
	height: 28px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 0.8125rem;
	font-weight: 700;
	color: var(--color-surface);
	background: var(--color-primary);
	border-radius: 50%;
	line-height: 1;
}
.excel-upload-card__step-content {
	flex: 1;
	min-width: 0;
}
.excel-upload-card__step-content .listpage-filters__label {
	display: block;
	margin-bottom: 0.25rem;
}
.excel-upload-card__helper {
	margin: 0 0 0.75rem 0;
	font-size: 0.875rem;
	color: var(--gray-600);
	line-height: 1.45;
}
.excel-upload-card__download-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	height: 42px;
	min-height: 42px;
	padding: 0 1.25rem;
	box-sizing: border-box;
}
.excel-upload-card__file-input {
	position: absolute;
	width: 0.1px;
	height: 0.1px;
	opacity: 0;
	overflow: hidden;
	z-index: -1;
	pointer-events: none;
}
.excel-upload-card__dropzone {
	position: relative;
	min-height: 140px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 2px dashed var(--gray-300);
	border-radius: var(--radius-sm);
	background: var(--gray-50);
	cursor: pointer;
	transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
	margin-bottom: 1rem;
}
.excel-upload-card__dropzone:hover {
	border-color: var(--gray-400);
	background: var(--gray-100);
}
.excel-upload-card__dropzone:focus {
	outline: none;
	border-color: var(--color-primary);
	box-shadow: 0 0 0 3px rgba(0, 51, 153, 0.15);
}
.excel-upload-card__dropzone--dragover {
	border-color: var(--color-primary);
	background: rgba(0, 51, 153, 0.06);
}
.excel-upload-card__dropzone--has-file {
	min-height: 0;
	padding: 0;
	margin-bottom: 0;
	border: none;
	background: transparent;
}
.excel-upload-card__dropzone--has-file .excel-upload-card__dropzone-inner {
	display: none;
}
.excel-upload-card__dropzone-inner {
	text-align: center;
	padding: 1rem;
	pointer-events: none;
}
.excel-upload-card__dropzone-icon {
	font-size: 2rem;
	color: var(--gray-400);
	display: block;
	margin-bottom: 0.5rem;
}
.excel-upload-card__dropzone-text {
	margin: 0;
	font-size: 0.875rem;
	color: var(--gray-600);
	line-height: 1.5;
}
.excel-upload-card__dropzone-browse {
	color: var(--color-primary);
	font-weight: 500;
}
.excel-upload-card__preview {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	min-height: 48px;
	padding: 0.6rem 1rem;
	background: var(--gray-50);
	border: 1px solid var(--gray-200);
	border-radius: var(--radius-sm);
	margin-bottom: 1rem;
}
.excel-upload-card__preview-icon {
	font-size: 1.25rem;
	color: var(--color-primary);
	flex-shrink: 0;
}
.excel-upload-card__preview-name {
	flex: 1;
	min-width: 0;
	font-size: 0.9rem;
	color: var(--gray-800);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.excel-upload-card__preview-remove {
	flex-shrink: 0;
	width: 32px;
	height: 32px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: none;
	background: transparent;
	color: var(--gray-500);
	border-radius: var(--radius-sm);
	cursor: pointer;
	transition: color 0.2s ease, background 0.2s ease;
	pointer-events: auto;
}
.excel-upload-card__preview-remove:hover {
	color: var(--color-danger, #dc3545);
	background: var(--gray-100);
}
.excel-upload-card__upload-actions {
	margin-top: 0.5rem;
}
.excel-upload-card__upload-actions .listpage-btn {
	height: 42px;
	min-height: 42px;
	padding: 0 1.25rem;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}
.excel-upload-card__upload-actions .listpage-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}
.excel-import-page .listpage-form-card__actions {
	border-top: 1px solid var(--gray-200);
	padding-top: 1.25rem;
	margin-top: 1.5rem;
}

.listpage-card .listpage-filters-bar:first-child {
	border-top: none;
}

.listpage-card .listpage-header {
	margin-bottom: 0;
	border-radius: 0;
	box-shadow: none;
	border: none;
	border-bottom: var(--border-default);
	background: transparent;
}

.listpage-card--spaced {
	margin-bottom: 1.5rem;
}

.create-group-page__title {
	margin: 0 0 0.25rem 0;
	font-size: 1.35rem;
	font-weight: 700;
	color: var(--color-text-primary);
	letter-spacing: -0.02em;
	line-height: 1.3;
}
.create-group-page__subtitle {
	margin: 0;
	font-size: 0.875rem;
	color: var(--gray-500);
}

/* Reusable: centered form-card page (Create Group, Query Type, etc.) */
.content-area--form-card {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: calc(100vh - 56px - 80px);
	padding: 2rem 1.5rem;
	border: none;
	box-shadow: none;
}
.content-area--form-card .listpage-breadcrumb {
	position: absolute;
	top: 1rem;
	right: 1.5rem;
	margin: 0;
}
.content-area--form-card .listpage-breadcrumb--right {
	justify-content: flex-end;
}
.content-area--form-card .listpage-form-card__wrap {
	margin-top: 2.5rem;
}

/* Reusable: wrapper constraining the form card width */
.listpage-form-card__wrap {
	max-width: 720px;
	width: 100%;
	margin: 0 auto;
	padding: 0 1.5rem;
}
.listpage-form-card__wrap--wide {
	max-width: 1024px;
}
.listpage-form-card__wrap .listpage-form-card {
	max-width: none;
	margin: 0;
}
.listpage-form-card__wrap .group-details-form__row {
	max-width: 100%;
}

/* Global: single-select dropdown arrow (so all select.form-control show chevron) */
select.form-control:not([multiple]) {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 12px;
	padding-right: 32px;
}

/* Consistent input styling for all form-card pages (plain .form-control and .group-details-form inputs) */
.listpage-form-card__body .form-control {
	border-radius: 8px;
	border: 1px solid var(--gray-200);
	font-size: 0.9rem;
	line-height: 1.25;
	background: var(--color-surface);
	color: var(--gray-800);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
	box-sizing: border-box;
}
.listpage-form-card__body .form-control:focus {
	outline: none;
	border-color: var(--color-primary);
	box-shadow: 0 0 0 3px rgba(0, 51, 153, 0.12);
}
.listpage-form-card__body .form-control:hover {
	border-color: var(--gray-300);
}
.listpage-form-card__body .form-control::placeholder {
	color: var(--gray-400);
}
/* Single-line inputs without icon (e.g. FAQ, Templates, Questions) – same height as group-details-form */
.listpage-form-card__body .form-control:not(.group-details-form__input):not(.group-details-form__select):not(textarea) {
	height: 44px;
	min-height: 44px;
	padding: 0 1rem;
}
.listpage-form-card__body textarea.form-control:not(.group-details-form__input) {
	min-height: 80px;
	padding: 0.5rem 1rem;
	resize: vertical;
}
.listpage-form-card__body select.form-control:not(.group-details-form__input):not(.group-details-form__select):not([multiple]) {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 12px;
	padding-right: 32px;
}

/* Checkboxes inside form cards – consistent size, accent, and label alignment */
.listpage-form-card__body input[type="checkbox"] {
	width: 1.125rem;
	height: 1.125rem;
	margin: 0 0.5rem 0 0;
	accent-color: var(--color-primary);
	cursor: pointer;
	vertical-align: middle;
	flex-shrink: 0;
	border-radius: 4px;
}
.listpage-form-card__body .form-group:has(input[type="checkbox"]) {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.35rem;
	min-height: 44px;
}
.listpage-form-card__body .form-group:has(input[type="checkbox"]) label,
.listpage-form-card__body label:has(input[type="checkbox"]),
.listpage-form-card__body .custom-checkbox-label {
	cursor: pointer;
	margin: 0;
	font-weight: 500;
	color: var(--gray-700);
	font-size: 0.9rem;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}
.listpage-form-card__body label:has(input[type="checkbox"]) input[type="checkbox"] {
	margin: 0;
}

/* Reusable: form actions inside card (border, flex, optional Cancel/Reset/Submit) */
.listpage-form-card__body .group-details-form__actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 1.25rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--gray-200);
}
.group-details-form__cancel {
	display: inline-flex;
	align-items: center;
	padding: 0 1rem;
	height: 44px;
	font-size: 0.9rem;
	font-weight: 500;
	color: var(--gray-600);
	text-decoration: none;
	border: 1px solid var(--gray-300);
	border-radius: 8px;
	background: var(--color-surface);
	transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.group-details-form__cancel:hover {
	color: var(--gray-800);
	border-color: var(--gray-400);
	background: var(--gray-50);
}
.group-details-form__reset {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	height: 44px;
	min-height: 44px;
	padding: 0 1rem;
	font-size: 0.9rem;
	font-weight: 500;
	color: var(--gray-700);
	background: var(--color-surface);
	border: 1px solid var(--gray-300);
	border-radius: 8px;
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.group-details-form__reset:hover {
	border-color: var(--gray-400);
	background: var(--gray-50);
	color: var(--gray-900);
}
@media (max-width: 767px) {
	.content-area--form-card .listpage-breadcrumb {
		position: static;
		justify-content: flex-start;
		margin-bottom: 1rem;
	}
	.content-area--form-card .listpage-form-card__wrap {
		margin-top: 1rem;
	}
	.listpage-form-card__body .group-details-form__actions {
		flex-direction: column;
		align-items: stretch;
	}
	.listpage-form-card__body .group-details-form__actions .group-details-form__cancel,
	.listpage-form-card__body .group-details-form__actions .group-details-form__reset,
	.listpage-form-card__body .group-details-form__actions .group-details-form__submit {
		width: 100%;
		justify-content: center;
	}
}

.listpage-header__arrow {
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	border: 1px solid var(--gray-200);
	background: var(--color-surface);
	color: var(--gray-500);
	border-radius: 50%;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
	transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
	flex-shrink: 0;
}
.listpage-header__arrow:hover {
	color: var(--color-primary);
	background: var(--color-bg-muted);
	border-color: var(--gray-300);
	box-shadow: 0 2px 6px rgba(0, 51, 153, 0.12);
}
.listpage-header__arrow i {
	font-size: 0.75rem;
	transition: transform 0.3s ease;
}
.listpage-card--setup-collapsed .listpage-header__arrow i {
	transform: rotate(-90deg);
}

/* Chat setup body: smooth open/close animation */
.listpage-card__body--chat-setup {
	overflow: hidden;
	max-height: 2000px;
	opacity: 1;
	transition: max-height 0.4s ease, opacity 0.35s ease, padding 0.35s ease;
}
.listpage-card--setup-collapsed .listpage-card__body--chat-setup {
	max-height: 0;
	opacity: 0;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}

/* Chat widget setup: center instructions */
.listpage-card__body--chat-setup .chat-widget-setup {
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
}
.listpage-card__body--chat-setup .chat-widget-setup__header--inline {
	justify-content: center;
}
.listpage-card__body--chat-setup .chat-widget-setup__steps {
	margin-left: auto;
	margin-right: auto;
	width: 100%;
	max-width: 720px;
}
.listpage-card__body--chat-setup .chat-widget-setup__step-body {
	text-align: center;
}
.listpage-card__body--chat-setup .chat-widget-setup__screenshot-wrap {
	display: inline-block;
	text-align: left;
}

.listpage-card__body {
	padding: 1.25rem 1.5rem 1.5rem 1.5rem;
}

.listpage-header__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: var(--radius-sm);
	color: #fff;
	font-size: 0.875rem;
	flex-shrink: 0;
}
.listpage-header__icon--leads {
	background: #1f8d7c;
}
.listpage-header__icon--group {
	background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
	box-shadow: 0 2px 8px rgba(0, 51, 153, 0.3);
}

/* Edit Group page: header + form section beautification */
.listpage-header--group-edit {
	align-items: center;
	gap: 1rem;
}
.listpage-header--group-edit .listpage-header__title {
	font-size: 1.25rem; /* 20px at 16px base */
	font-weight: 700;
	letter-spacing: -0.025em;
	color: var(--color-text-primary);
	line-height: 1.3;
}
.listpage-header--group-edit .listpage-header__count {
	font-weight: 600;
	color: var(--gray-500);
	font-size: 0.95em;
	margin-left: 0.15rem;
}
.listpage-header--group-edit .listpage-header__subtitle {
	font-size: 0.9rem;
	color: var(--gray-500);
	opacity: 0.9;
	line-height: 1.45;
	margin-top: 0.2rem;
}

.listpage-card .listpage-list {
	padding: 0 1.25rem 1rem 1.25rem;
}

.listpage-card .listpage-table-wrap {
	background: transparent;
	box-shadow: none;
	margin-bottom: 0;
}

/* Header */
.listpage-header {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1.25rem;
	margin-bottom: 1.5rem;
	padding: 1.25rem 1.5rem;
	background: var(--color-surface);
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-card);
	border: var(--border-default);
}

.listpage-header__title {
	margin: 0 0 0.25rem 0;
	font-size: 1.35rem;
	font-weight: 700;
	color: var(--color-text-primary);
	letter-spacing: -0.02em;
	line-height: 1.3;
}

.listpage-header__count {
	font-weight: 600;
	color: var(--gray-500);
	font-size: 0.95em;
}

.listpage-header__subtitle {
	margin: 0;
	font-size: 0.875rem;
	color: var(--gray-500);
}

.listpage-header__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
}

.listpage-header__actions-group {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
}

/* Buttons */
.listpage-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.5rem 1rem;
	font-size: 0.875rem;
	font-weight: 600;
	border-radius: var(--radius-sm);
	border: none;
	text-decoration: none;
	color: var(--color-surface);
	background: var(--color-primary);
	transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
	white-space: nowrap;
}

.listpage-btn:hover {
	color: var(--color-surface);
	text-decoration: none;
	box-shadow: 0 2px 4px rgba(0, 51, 153, 0.3);
}

.listpage-btn--primary {
	background: var(--color-primary);
	height: 42px;
	padding: 0 1.25rem;
	font-size: 0.9rem;
	box-shadow: 0 1px 2px rgba(0, 51, 153, 0.3);
}

.listpage-btn--primary:hover {
	background: var(--color-primary-dark);
	color: var(--color-surface);
	box-shadow: 0 2px 4px rgba(0, 51, 153, 0.35);
}

/* Add Customer button: primary-matching variant */
.listpage-header__actions .listpage-btn--primary {
	background: var(--color-primary-cta);
	box-shadow: 0 1px 2px rgba(21, 101, 192, 0.35);
}

.listpage-header__actions .listpage-btn--primary:hover {
	background: var(--color-primary-cta);
	box-shadow: 0 2px 4px rgba(21, 101, 192, 0.45);
	filter: brightness(0.95);
}

.listpage-btn--secondary {
	background: var(--color-surface);
	color: var(--color-text-primary);
	border: 1px solid var(--gray-200);
}

.listpage-header__actions-group .listpage-btn--secondary {
	height: 42px;
	padding: 0 1.25rem;
	min-width: 6.5rem;
}

.listpage-btn--secondary:hover {
	background: var(--color-bg-muted);
	color: var(--color-text-primary);
	border-color: var(--color-primary-dark);
}

.listpage-btn--ghost {
	background: transparent;
	color: var(--gray-500);
}

.listpage-btn--ghost:hover {
	background: var(--color-bg-muted);
	color: var(--color-text-primary);
}

.listpage-btn--sm {
	padding: 0.4rem 0.9rem;
	font-size: 0.8rem;
}

.listpage-btn i {
	font-size: 0.9em;
}

@media (max-width: 767px) {
	.listpage-btn span {
		display: none;
	}

	.listpage-header__actions-group .listpage-btn span {
		display: none;
	}
}

/* Inline message (success/error) */
.listpage-message {
	display: none;
	padding: 0.75rem 1rem;
	margin-bottom: 1rem;
	border-radius: var(--radius-sm);
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.4;
}

.listpage-message:not(:empty) {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.listpage-message--success {
	background: var(--color-success-bg);
	color: var(--color-badge-text-success);
	border: 1px solid var(--color-badge-border);
}

.listpage-message--error {
	background: var(--color-badge-bg);
	color: var(--color-accent);
	border: 1px solid rgba(204, 0, 0, 0.4);
}

.listpage-message--info {
	background: var(--color-bg-highlight);
	color: var(--gray-700);
	border: 1px solid var(--gray-200);
}

.listpage-message.listpage-message--info {
	display: flex;
}

/* Add Customers card: message aligned with filters/table, consistent spacing and styling */
.listpage-message-wrap {
	margin: 16px 0;
	padding: 0 1.5rem;
}
.listpage-card .listpage-message,
.listpage-card .message {
	margin: 0;
	padding: 0.5rem 1rem;
	border-radius: var(--radius-sm);
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.4;
	animation: listpage-message-fadeIn 0.25s ease-out;
}
.listpage-card .listpage-message:not(:empty),
.listpage-card .message.alert:not(:empty) {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
}
.listpage-card .message .listpage-message__text {
	flex: 1;
	min-width: 0;
}
/* Error state inside card: soft red, left accent, no full-width stretch */
.listpage-card .message.alert-danger,
.listpage-card .listpage-message.listpage-message--error {
	background: rgba(220, 53, 69, 0.08);
	color: var(--color-danger, #b91c1c);
	border: 1px solid rgba(220, 53, 69, 0.2);
	border-left: 4px solid var(--color-danger, #dc3545);
}
/* Success state inside card: same alignment */
.listpage-card .message.alert-success {
	background: rgba(25, 135, 84, 0.08);
	color: var(--color-success-text, #0f5132);
	border: 1px solid rgba(25, 135, 84, 0.2);
	border-left: 4px solid #198754;
}
/* Optional: close icon */
.listpage-message__close,
.listpage-card .message .listpage-message__close {
	flex-shrink: 0;
	width: 1.5rem;
	height: 1.5rem;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 1.1rem;
	line-height: 1;
	color: inherit;
	opacity: 0.7;
	background: transparent;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	transition: opacity 0.15s ease, background 0.15s ease;
}
.listpage-message__close:hover,
.listpage-card .message .listpage-message__close:hover {
	opacity: 1;
	background: rgba(0, 0, 0, 0.06);
}
@keyframes listpage-message-fadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}

/* Table wrapper & table */

.listpage-table-wrap {
	background: var(--color-surface);
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-card);
	border: var(--border-default);
	overflow-x: auto;
	margin-bottom: 1rem;
	overflow-y: visible;
	-webkit-overflow-scrolling: touch;
}

.listpage-table-wrap::-webkit-scrollbar {
	height: 8px;
}

.listpage-table-wrap::-webkit-scrollbar-track {
	background: var(--color-bg-muted);
	border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.listpage-table-wrap::-webkit-scrollbar-thumb {
	background: rgba(0, 51, 102, 0.25);
	border-radius: 4px;
}

.listpage-table-wrap::-webkit-scrollbar-thumb:hover {
	background: var(--color-primary-dark);
}

.listpage-table {
	margin: 0;
	border-collapse: collapse;
	font-size: 0.875rem;
	min-width: max-content;
	width: 100%;
}

.listpage-table__th {
	padding: 0.875rem 1rem;
	text-align: left;
	font-weight: 600;
	color: var(--color-text-primary);
	background: var(--color-bg-muted);
	border-bottom: var(--border-default);
	white-space: nowrap;
}

.listpage-table__th--num,
.listpage-table__td--num {
	width: 3rem;
	text-align: center;
	color: var(--gray-400);
}

.listpage-table__th--photo,
.listpage-table__td--photo {
	width: 3.5rem;
	text-align: center;
	padding-left: 0.5rem;
	padding-right: 0.5rem;
}

.listpage-table__th--action,
.listpage-table__td--action {
	width: 4rem;
	text-align: center;
}
.listpage-table__th--action-btn {
	min-width: 6rem;
	width: auto;
}

.listpage-row {
	background: var(--color-surface);
	transition: background-color 0.15s ease;
	cursor: pointer;
}

.listpage-row:hover {
	background: var(--color-bg-muted);
}

.listpage-table__td {
	padding: 0.75rem 1rem;
	border-bottom: var(--border-subtle);
	color: var(--color-text-primary);
	vertical-align: middle;
}

.listpage-row:last-child .listpage-table__td {
	border-bottom-color: transparent;
}

.listpage-avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	overflow: hidden;
	background: var(--gray-200);
}

.listpage-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.listpage-row__action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: var(--radius-sm);
	color: var(--gray-500);
	transition: background-color 0.2s ease, color 0.2s ease;
}

.listpage-row__action:hover {
	background: var(--color-bg-muted);
	color: var(--color-primary);
}
.listpage-row__action--danger {
	color: var(--gray-500);
}
.listpage-row__action--danger:hover {
	background: rgba(220, 53, 69, 0.1);
	color: var(--color-danger);
}

/* Table row actions dropdown */
.listpage-row-actions {
	display: inline-block;
}
.listpage-row-actions .dropdown-toggle::after {
	display: none;
}
.listpage-row-actions__menu {
	min-width: 12rem;
	padding: 0.35rem 0;
}
.listpage-row-actions__item {
	display: flex;
	align-items: center;
	padding: 0.5rem 1rem;
	font-size: 0.9rem;
}
.listpage-row-actions__icon {
	width: 1.35rem;
	margin-right: 0.65rem;
	text-align: center;
	color: var(--gray-500);
	flex-shrink: 0;
}
.listpage-row-actions__icon--primary { color: var(--color-primary); }
.listpage-row-actions__icon--success { color: #198754; }
.listpage-row-actions__icon--info { color: #0dcaf0; }
.listpage-row-actions__icon--warning { color: #ffc107; }
.listpage-row-actions__icon--danger { color: var(--color-danger); }
.listpage-row-actions__item--danger .listpage-row-actions__icon { color: var(--color-danger); }
.listpage-row-actions__item--danger:hover { background-color: rgba(204, 0, 0, 0.08); color: var(--color-danger); }

/* Empty state inside table */
.listpage-table__empty {
	padding: 0 !important;
	vertical-align: middle;
	border: none !important;
}

.listpage-empty-state {
	text-align: center;
	padding: 3rem 2rem;
}

.listpage-empty-state__icon {
	font-size: 2.5rem;
	color: var(--gray-300);
	margin-bottom: 1rem;
}

.listpage-empty-state__title {
	margin: 0 0 0.35rem 0;
	font-size: 1rem;
	font-weight: 600;
	color: var(--color-text-primary);
}

.listpage-empty-state__text {
	margin: 0 0 1.25rem 0;
	font-size: 0.875rem;
	color: var(--gray-400);
}

/* Pagination */
.listpage-pagination {
	display: flex;
	justify-content: flex-end;
	flex-wrap: wrap;
	gap: 1rem;
	padding-top: 1rem;
}

.listpage-pagination .pagination {
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem;
}

.listpage-pagination .page-link,
.listpage-pagination .page-item span {
	padding: 0.5rem 0.75rem;
	font-size: 0.875rem;
	border-radius: var(--radius-sm) !important;
	border: 1px solid var(--gray-200) !important;
	background: var(--color-surface) !important;
	color: var(--gray-600) !important;
}

.listpage-pagination .page-item.active .page-link {
	background: var(--color-primary) !important;
	border-color: var(--color-primary) !important;
	color: var(--color-surface) !important;
}

.listpage-pagination .page-item:not(.active) .page-link:hover {
	background: var(--color-bg-muted) !important;
	color: var(--color-text-primary) !important;
}

/* Summary widget (status counts) */
.listpage-summary {
	background: var(--color-surface);
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-card);
	border: var(--border-default);
	margin-top: 0;
	overflow: hidden;
}

.listpage-summary__title {
	font-size: 0.95rem;
	font-weight: 600;
	margin: 0;
	padding: 1rem 1.25rem;
	border-bottom: var(--border-default);
	color: var(--color-text-primary);
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.listpage-summary__title .help-tooltip {
	color: var(--gray-400);
	font-size: 0.85em;
}

.listpage-summary__body {
	padding: 0.5rem 0;
}

.listpage-summary-table {
	width: 100%;
	border: none;
	font-size: 0.875rem;
}

.listpage-summary-table__row {
	border: none;
}

.listpage-summary-table__row td {
	padding: 0.5rem 1.25rem;
	border: none;
	border-bottom: 1px solid var(--gray-100);
}

.listpage-summary-table__row td:first-child {
	color: var(--gray-500);
}

.listpage-summary-table__row td:last-child {
	text-align: right;
	font-weight: 600;
	color: var(--color-text-primary);
}

.listpage-summary-table__row--total td {
	font-weight: 600;
	color: var(--color-text-primary);
}

@media (max-width: 767px) {
	.listpage-page {
		padding: 1rem;
	}

	.listpage-header {
		flex-direction: column;
		padding: 1rem;
	}

	.listpage-header__actions {
		width: 100%;
		justify-content: space-between;
	}

	.listpage-table-wrap {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	.listpage-table__th,
	.listpage-table__td {
		padding: 0.6rem 0.75rem;
		font-size: 0.8125rem;
	}
}

/* List page tables – shared refinements (leadlist, helpdesk, campaigns, groups, masters, etc.) */
.listpage-table--list .listpage-table__th {
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--gray-500);
	padding: 1rem 1rem;
	border-bottom: 2px solid var(--gray-200);
}
.listpage-table--list .listpage-table__td {
	padding: 0.875rem 1rem;
	font-size: 0.9rem;
}
.listpage-table--list .listpage-row {
	border-bottom: 1px solid var(--gray-100);
}
.listpage-table--list .listpage-row:last-child {
	border-bottom: none;
}
.listpage-table--list .listpage-row:hover {
	background: var(--color-bg-highlight);
}
/* Helpdesk: checkbox column */
.listpage-table__th--check,
.listpage-table__td--check {
	width: 2.75rem;
	text-align: center;
	vertical-align: middle;
}
.listpage-table__th--status,
.listpage-table__td--status {
	width: 2.5rem;
	text-align: center;
	vertical-align: middle;
}
.listpage-table--list .listpage-table__td--check input[type="checkbox"] {
	width: 1.125rem;
	height: 1.125rem;
	cursor: pointer;
	accent-color: var(--color-primary);
	border-radius: 4px;
}
/* Outbound / listpage: checkbox column with Select All + Select Page */
.listpage-table__th--check .listpage-table__check-group {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.35rem;
	font-weight: normal;
	font-size: 0.8125rem;
}
.listpage-table__th--check.listpage-table__th--check-wide,
.listpage-table__td--check.listpage-table__td--check-wide {
	width: auto;
	min-width: 7rem;
	text-align: left;
}
/* Listpage badges (priority, status) */
.listpage-badge {
	display: inline-block;
	padding: 0.2rem 0.5rem;
	font-size: 0.75rem;
	font-weight: 600;
	border-radius: var(--radius-sm);
	line-height: 1.3;
}
.listpage-badge--info {
	background: rgba(13, 202, 240, 0.15);
	color: #0aa2c0;
}
.listpage-badge--warning {
	background: rgba(255, 193, 7, 0.2);
	color: #b38600;
}
.listpage-badge--danger {
	background: rgba(220, 53, 69, 0.12);
	color: var(--color-danger);
}
/* Status badges: active/inactive (reusable across modules) */
.listpage-badge--active {
	background: #28a745;
	color: #fff;
	border-radius: 9999px;
}
.listpage-badge--inactive {
	background: #6c757d;
	color: #fff;
	border-radius: 9999px;
}
.listpage-badge--open {
	background: #17a2b8;
	color: #fff;
	border-radius: 9999px;
}
/* Call status text in outbound list */
.listpage-call-status--unassigned {
	color: var(--color-danger);
	font-weight: 500;
}
.listpage-call-status--assigned {
	color: #198754;
	font-weight: 500;
}
.listpage-summary .widget-scroller {
	max-height: 320px;
	overflow-y: auto;
}
.listpage-summary .listpage-summary-table__row td:first-child {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}
.listpage-summary + .listpage-summary {
	margin-top: 1rem;
}
.listpage-pagination .pagination {
	justify-content: flex-end;
}

/* ----- Helpdesk: tabs above card, collapsible filters, insights ----- */
.helpdesk-tabs-wrap {
	margin-bottom: 1rem;
}
.helpdesk-tabs {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0;
	padding: 0.5rem 0;
	list-style: none;
}
.helpdesk-tabs__tab {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.75rem 1.5rem;
	border: 1px solid var(--gray-200);
	border-radius: 10px;
	background: var(--color-surface);
	color: var(--gray-600);
	font-size: 0.9375rem;
	font-weight: 600;
	cursor: pointer;
	transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.helpdesk-tabs__tab:hover {
	color: var(--color-primary);
	background: rgba(0, 51, 102, 0.04);
	border-color: rgba(0, 51, 102, 0.2);
	box-shadow: 0 2px 6px rgba(0, 51, 102, 0.08);
}
.helpdesk-tabs__tab--active {
	color: #fff;
	background: linear-gradient(135deg, var(--color-primary) 0%, #1a3a5c 100%);
	border-color: var(--color-primary);
	box-shadow: 0 2px 8px rgba(0, 51, 102, 0.25);
}
.helpdesk-tabs__tab--active:hover {
	background: linear-gradient(135deg, #1a5fb4 0%, #2a4a6e 100%);
	border-color: #1a5fb4;
	box-shadow: 0 3px 12px rgba(0, 51, 102, 0.2);
	color: #fff;
}
.helpdesk-tabs__icon {
	font-size: 1rem;
	opacity: 0.9;
}
.helpdesk-tabs__tab:not(.helpdesk-tabs__tab--active) .helpdesk-tabs__icon {
	color: var(--gray-500);
}
.helpdesk-tab-pane {
	display: block;
}
.helpdesk-tab-pane[hidden] {
	display: none !important;
}
.helpdesk-tab-pane--active {
	display: block;
}

.listpage-filters-bar--collapsible {
	position: relative;
	padding-top: 0.75rem;
}
.listpage-filters-bar__toggle {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 0;
	margin-bottom: 0.5rem;
	border: none;
	background: none;
	color: var(--gray-600);
	font-size: 0.875rem;
	font-weight: 600;
	cursor: pointer;
}
.listpage-filters-bar__toggle:hover {
	color: var(--color-primary);
}
.listpage-filters-bar__toggle-arrow {
	transition: transform 0.2s ease;
}
.listpage-filters-bar--collapsible.is-open .listpage-filters-bar__toggle-arrow {
	transform: rotate(0deg);
}
.listpage-filters-bar--collapsible.listpage-filters-bar--collapsed .listpage-filters-bar__toggle-arrow {
	transform: rotate(-90deg);
}
.listpage-filters-bar--collapsible.listpage-filters-bar--collapsed .listpage-filters__panel {
	display: none;
}

.helpdesk-insights-container {
	padding: 1.25rem 1.5rem 1.5rem;
}
#helpdesk-tab-insights.helpdesk-tab-pane--active {
	padding-top: 0;
}
.helpdesk-insights__kpi-row {
	display: flex;
	flex-wrap: wrap;
	gap: 1.25rem;
	margin-bottom: 1.75rem;
}
.helpdesk-insights__kpi-card {
	background: var(--color-surface);
	border: 1px solid var(--gray-200);
	border-radius: 12px;
	padding: 1.35rem 1.75rem;
	min-width: 120px;
	flex: 1 1 0;
	max-width: 200px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
	transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.helpdesk-insights__kpi-card:hover {
	background: rgba(0, 51, 102, 0.04);
	box-shadow: 0 4px 12px rgba(0, 51, 102, 0.08);
	border-color: rgba(0, 51, 102, 0.12);
}
.helpdesk-insights__kpi-value {
	display: block;
	font-size: 2.25rem;
	font-weight: 700;
	color: var(--color-primary);
	line-height: 1.1;
	letter-spacing: -0.02em;
	margin-bottom: 0.4rem;
}
.helpdesk-insights__kpi-label {
	display: block;
	font-size: 0.6875rem;
	font-weight: 600;
	color: var(--gray-500);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	line-height: 1.3;
}
.helpdesk-insights__chart-wrap {
	background: var(--color-surface);
	border: 1px solid var(--gray-200);
	border-radius: var(--radius-md);
	padding: 1.25rem;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.helpdesk-insights__chart-title {
	font-size: 1rem;
	font-weight: 600;
	margin: 0 0 1rem 0;
	color: var(--color-text-primary);
}
.helpdesk-insights__chart-title .help-tooltip {
	color: var(--gray-400);
	font-size: 0.85em;
}
.helpdesk-insights__chart-body {
	min-height: 280px;
}
.helpdesk-insights__chart-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 200px;
	color: var(--gray-400);
}
.helpdesk-insights__chart-empty i {
	font-size: 2.5rem;
	margin-bottom: 0.5rem;
}
.helpdesk-insights__empty-state {
	padding: 1rem;
	text-align: center;
	color: var(--gray-500);
}
.helpdesk-insights__empty-text {
	margin: 0;
	font-size: 0.875rem;
}
@media (max-width: 768px) {
	
	.helpdesk-tabs__tab {
		padding: 0.65rem 1.15rem;
		font-size: 0.875rem;
	}
	.helpdesk-tabs__icon {
		font-size: 0.9rem;
	}
	.helpdesk-insights__kpi-row {
		gap: 1rem;
	}
	.helpdesk-insights__kpi-card {
		min-width: 100px;
		max-width: none;
		padding: 1.1rem 1.25rem;
	}
	.helpdesk-insights__kpi-value {
		font-size: 1.875rem;
	}
	.helpdesk-insights-container {
		padding: 1rem;
	}
}

/* Channel Gateway page – sections, spacing, alignment */
.channel-gateway-page .listpage-form-card__body {
	padding: 1.5rem 1.5rem 1.75rem;
}
.channel-gateway-page .listpage-form-card__body > .row.m-0 {
	margin-left: 0;
	margin-right: 0;
}
.channel-gateway-page .channel-gateway-section {
	margin-bottom: 1.75rem;
}
.channel-gateway-page .channel-gateway-section:last-of-type {
	margin-bottom: 0;
}
.channel-gateway-page .channel-gateway-section__title {
	font-size: 1rem;
	font-weight: 600;
	color: var(--gray-800);
	margin: 0 0 0.75rem 0;
	padding-bottom: 0.5rem;
	border-bottom: 1px solid var(--gray-200);
}
.channel-gateway-page .channel-gateway-section--gateways {
	margin-top: 1.5rem;
}
.channel-gateway-page .channel-gateway-section--gateways .col-md-12 {
	padding-left: 15px;
	padding-right: 15px;
	margin-bottom: 0.75rem;
}
.channel-gateway-page .channel-gateway-section--gateways .col-md-12:last-child {
	margin-bottom: 0;
}
.channel-gateway-page .channel-gateway-section--gateways .channel-gateway-section__title {
	margin-bottom: 0.75rem;
}
.channel-gateway-page .channel-gateway-section--gateways ul.channel_gateway {
	margin-bottom: 1.25rem;
}
/* Communication channel checkboxes – inline, aligned */
.channel-gateway-page .com_channel {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 1.5rem;
	margin-top: 0.5rem;
	margin-bottom: 0;
}
.channel-gateway-page .com_channel .custom-checkbox-label {
	margin-right: 0;
}
/* Default sender / Current assignments rows */
.channel-gateway-page .channel-gateway-section .row.m-0 {
	margin-left: -0.5rem;
	margin-right: -0.5rem;
}
.channel-gateway-page .channel-gateway-section .form-group {
	margin-bottom: 1rem;
	padding-left: 0.5rem;
	padding-right: 0.5rem;
}
.channel-gateway-page .channel-gateway-section--summary .form-group {
	margin-bottom: 0.75rem;
}
/* Tabs-panels and tab content */
.channel-gateway-page .tabs-panels {
	margin-bottom: 0;
	margin-top: 0.5rem;
}
.channel-gateway-page .tabs-panel {
	background: #f8fafc;
	border: 1px solid rgba(0, 0, 0, 0.06);
	border-radius: 12px;
	padding: 1.25rem;
	margin-bottom: 1rem;
}
.channel-gateway-page .tabs-panel .row {
	margin-left: -0.5rem;
	margin-right: -0.5rem;
}
.channel-gateway-page .tabs-panel .form-group {
	margin-bottom: 1rem;
	padding-left: 0.5rem;
	padding-right: 0.5rem;
}
/* Radio/checkbox option rows – flex, consistent gap */
.channel-gateway-page .form-section__options,
.channel-gateway-page .radio_con,
.channel-gateway-page .checkbox_con {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 1.25rem;
	margin-top: 0.75rem;
	margin-bottom: 0;
	padding-top: 0.75rem;
	border-top: 1px dashed rgba(0, 0, 0, 0.08);
}
.channel-gateway-page .form-section__options .custom-checkbox-label,
.channel-gateway-page .radio_con .custom-checkbox-label,
.channel-gateway-page .checkbox_con .custom-checkbox-label {
	margin-right: 0;
}
.channel-gateway-page .form-section__options .custom-checkbox-label.pr-3,
.channel-gateway-page .radio_con .custom-checkbox-label.pr-3,
.channel-gateway-page .checkbox_con .custom-checkbox-label.pr-3 {
	padding-right: 0;
}
/* Add more / Delete buttons in gateway panels */
.channel-gateway-page .ch_add_more,
.channel-gateway-page .ch_remove {
	margin-right: 0.5rem;
	margin-top: 0.5rem;
	margin-bottom: 0.5rem;
}
.channel-gateway-page .tabs-panel__body.gat_con_in,
.channel-gateway-page .tabs-panel .gat_con_in {
	margin-bottom: 0.5rem;
}

/* ========== Company Meta – aligned with settings-form-card (Role, Intimation, etc.) ========== */
.company-meta-tabs-wrap {
	margin-bottom: 1.5rem;
}
.company-meta-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	border: none;
	padding: 0;
	margin: 0 0 1.25rem 0;
	list-style: none;
}
.company-meta-tabs .nav-item {
	margin: 0;
}
.company-meta-tabs .nav-link {
	display: inline-block;
	padding: 0.5rem 1rem;
	border-radius: 999px;
	border: 1px solid #e2e8f0;
	background: #f8fafc;
	color: #64748b;
	font-size: 0.875rem;
	font-weight: 500;
	text-decoration: none;
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.company-meta-tabs .nav-link:hover {
	background: #eff6ff;
	border-color: #bfdbfe;
	color: #1d4ed8;
}
.company-meta-tabs .nav-link.active {
	background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
	border-color: #3b82f6;
	color: #fff;
}

/* Tab panes – same look as form-panel / form-options in settings.css */
.company-meta-tab-content {
	min-height: 200px;
}
.company-meta-pane {
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.06);
	border-radius: 12px;
	padding: 1.25rem 1.5rem;
	margin-bottom: 0;
}
.company-meta-pane .form-group label,
.company-meta-page .listpage-form-card .company-meta-pane .form-group label {
	font-weight: 500;
	color: var(--settings-text, #2d3748);
	font-size: 0.9rem;
	margin-bottom: 0.4rem;
	display: block;
}
.company-meta-pane .form-control {
	border-radius: 10px;
	border: 1px solid #e2e8f0;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.company-meta-pane .form-control:focus {
	border-color: #3b82f6;
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
	outline: none;
}
.company-meta-pane .row.row-eq-height {
	margin-left: -0.5rem;
	margin-right: -0.5rem;
}
.company-meta-pane .form-group {
	margin-bottom: 1.25rem;
}

/* Channel Settings – chips (same primary blue when selected) */
.company-meta-channel-chip {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.45rem 0.95rem;
	background: #f1f5f9;
	border: 1px solid #e2e8f0;
	border-radius: 999px;
	font-size: 0.875rem;
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.company-meta-channel-chip:hover {
	background: #e2e8f0;
	border-color: #cbd5e1;
}
.company-meta-channel-chip:has(input:checked) {
	background: #dbeafe;
	border-color: #3b82f6;
	color: #1d4ed8;
}
.company-meta-channel-chip__checkbox {
	width: 1.125rem;
	height: 1.125rem;
	margin: 0;
	flex-shrink: 0;
	border-radius: 4px;
	accent-color: #3b82f6;
	cursor: pointer;
	vertical-align: middle;
}
.company-meta-channel-chip__label {
	line-height: 1.3;
}
.company-meta-channels-wrap {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 0.75rem;
}

/* Mail Server – add/remove (primary blue add, danger remove) */
.company-meta-page .add_button_companymeta {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.5rem 1rem;
	margin-top: 0.5rem;
	font-size: 0.875rem;
	font-weight: 500;
	color: #3b82f6;
	border: 1px solid #3b82f6;
	border-radius: 10px;
	background: #fff;
	transition: background 0.2s ease, color 0.2s ease;
}
.company-meta-page .add_button_companymeta:hover {
	background: #3b82f6;
	color: #fff;
}
.company-meta-page .add_button_companymeta img {
	width: 18px;
	height: 18px;
	opacity: 0.9;
}
.company-meta-page .remove_button {
	display: inline-flex;
	align-items: center;
	padding: 0.5rem 1rem;
	margin-top: 0.5rem;
	font-size: 0.875rem;
	font-weight: 500;
	color: #dc3545;
	border: 1px solid #dc3545;
	border-radius: 10px;
	background: #fff;
	transition: background 0.2s ease, color 0.2s ease;
}
.company-meta-page .remove_button:hover {
	background: #dc3545;
	color: #fff;
}
.company-meta-page .remove_button img {
	width: 16px;
	height: 16px;
}
.company-meta-page .field_wrapper_companymeta > div {
	margin-bottom: 0.75rem;
}

/* Company Meta – layout with listpage-form-card */
.company-meta-page.content-area--form-card .company-meta-tabs-wrap {
	margin-top: 0.25rem;
}
.company-meta-page .listpage-form-card__body .group-details-form__actions {
	margin-top: 1.5rem;
	padding-top: 1.25rem;
	border-top: 1px solid rgba(0, 0, 0, 0.08);
	gap: 0.75rem;
}
.company-meta-page .slash {
	display: inline-block;
	padding: 0.25rem 0.1rem;
	font-weight: 600;
	color: #64748b;
}

/* Agent Chat Report – results layout */
.agent-chat-report-results {
	padding: 0 1.25rem 1.5rem 1.25rem;
}
.listpage-report-row {
	margin: 0 -0.75rem;
}
.listpage-report-row [class*="col-"] {
	padding: 0 0.75rem;
	margin-bottom: 1rem;
}
.listpage-report-card {
	background: var(--color-surface);
	border-radius: var(--radius-md);
	border: var(--border-default);
	box-shadow: var(--shadow-card);
	overflow: hidden;
	height: 100%;
	display: flex;
	flex-direction: column;
}
.listpage-report-card__header {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 1rem 1.25rem;
	border-bottom: 1px solid var(--gray-200);
	background: var(--color-bg-muted);
}
.listpage-report-card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	border-radius: var(--radius-sm);
	background: var(--color-primary);
	color: #fff;
	font-size: 0.875rem;
}
.listpage-report-card__title {
	margin: 0;
	font-size: 1rem;
	font-weight: 600;
	color: var(--color-text-primary);
}
.listpage-report-card__body {
	padding: 1.25rem;
	flex: 1;
}
.listpage-report-card__body--chart {
	padding: 1rem;
	min-height: 320px;
}
.listpage-report-card__body--chart #container {
	min-height: 300px;
}
.listpage-report-card__hint {
	font-size: 0.8125rem;
	color: var(--color-text-muted);
	margin: 0 0 1rem 0;
}
.listpage-report-meta {
	margin-bottom: 1rem;
}
.listpage-report-meta__row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 0.5rem;
	padding: 0.35rem 0;
	font-size: 0.875rem;
}
.listpage-report-meta__label {
	color: var(--color-text-muted);
	font-weight: 500;
}
.listpage-report-meta__value {
	color: var(--color-text-primary);
	font-weight: 600;
}
.listpage-table-wrap--compact .listpage-table {
	margin-bottom: 0;
}
.listpage-table--compact .listpage-table__td {
	padding: 0.5rem 0.75rem;
	font-size: 0.875rem;
}
.listpage-table--compact .listpage-table__td--num {
	text-align: right;
	font-weight: 600;
}
@media (min-width: 992px) {
	.listpage-report-row .col-lg-3 { margin-bottom: 0; }
	.listpage-report-row .col-lg-9 { margin-bottom: 0; }
}

/* Chat Configuration page – two separate widgets */
.config-page {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}
.config-widget {
	background: var(--color-surface);
	border: 1px solid var(--gray-200);
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-card);
	overflow: hidden;
}
.config-widget__header {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 1rem;
	padding: 1.25rem 1.5rem;
	background: var(--color-bg-muted);
	border-bottom: 1px solid var(--gray-200);
}
.config-widget__header-text {
	flex: 1;
	min-width: 0;
}
.config-widget__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: var(--radius-md);
	background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
	color: #fff;
	font-size: 1.125rem;
	flex-shrink: 0;
	box-shadow: 0 2px 8px rgba(0, 51, 153, 0.2);
}
.config-widget__icon--leads {
	background: linear-gradient(135deg, #1f8d7c 0%, #1a7a6b 100%);
	box-shadow: 0 2px 8px rgba(31, 141, 124, 0.25);
}
.config-widget__title {
	font-size: 1.125rem;
	font-weight: 600;
	color: var(--color-text-primary);
	margin: 0 0 0.25rem 0;
}
.config-widget__subtitle {
	font-size: 0.875rem;
	color: var(--color-text-muted);
	margin: 0;
	line-height: 1.4;
}
.config-widget__count {
	font-size: 0.9em;
	font-weight: 500;
	color: var(--color-text-muted);
	margin-left: 0.25rem;
}
.config-widget__actions {
	display: flex;
	align-items: center;
	flex-shrink: 0;
}
.config-widget__body {
	padding: 1.25rem 1.5rem;
}
.config-widget__body .listpage-filters-bar {
	padding: 0 0 1rem 0;
	border: none;
	background: transparent;
}
.config-widget__body .listpage-list {
	padding: 0;
	min-height: 120px;
}

/* Chat widget setup (inside first config-widget) */
.chat-widget-setup {
	padding: 0;
	border: none;
}
.config-widget--chat .chat-widget-setup__header {
	margin-bottom: 1.25rem;
}
.chat-widget-setup__header--inline {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 1.25rem;
}
.chat-widget-setup__header--inline .chat-widget-setup__title {
	margin: 0;
}
.chat-widget-setup__icon--sm {
	width: 2rem;
	height: 2rem;
	font-size: 0.875rem;
}
.chat-widget-setup__title--sm {
	font-size: 1rem;
	font-weight: 600;
	color: var(--color-text-primary);
}
.chat-widget-setup__header {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
	margin-bottom: 1.5rem;
}
.chat-widget-setup__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3rem;
	height: 3rem;
	border-radius: var(--radius-md);
	background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
	color: #fff;
	font-size: 1.25rem;
	flex-shrink: 0;
	box-shadow: 0 4px 12px rgba(0, 51, 153, 0.25);
}
.chat-widget-setup__header-text {
	min-width: 0;
}
.chat-widget-setup__title {
	font-size: 1.25rem;
	font-weight: 600;
	color: var(--color-text-primary);
	margin: 0 0 0.25rem 0;
}
.chat-widget-setup__subtitle {
	font-size: 0.875rem;
	color: var(--color-text-muted);
	margin: 0;
	line-height: 1.4;
}
.chat-widget-setup__steps {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	max-width: 720px;
}
.chat-widget-setup__step {
	display: flex;
	gap: 1rem;
	align-items: flex-start;
	background: var(--color-surface);
	border: 1px solid var(--gray-200);
	border-radius: var(--radius-md);
	padding: 1.25rem 1.5rem;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.chat-widget-setup__step:hover {
	border-color: var(--gray-300);
	box-shadow: var(--shadow-card);
}
.chat-widget-setup__step-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	border-radius: 50%;
	background: var(--color-bg-muted);
	color: var(--color-primary);
	font-size: 0.875rem;
	font-weight: 700;
	flex-shrink: 0;
	border: 2px solid var(--gray-200);
}
.chat-widget-setup__step-body {
	min-width: 0;
	flex: 1;
}
.chat-widget-setup__step-title {
	font-size: 1rem;
	font-weight: 600;
	color: var(--color-text-primary);
	margin: 0 0 0.35rem 0;
}
.chat-widget-setup__step-desc {
	font-size: 0.875rem;
	color: var(--color-text-secondary);
	margin: 0 0 0.75rem 0;
	line-height: 1.5;
}
.chat-widget-setup__step-desc:last-child {
	margin-bottom: 0;
}
.chat-widget-setup__cta {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 1rem;
	font-weight: 600;
}
.chat-widget-setup__code {
	font-size: 0.8125rem;
	background: var(--gray-100);
	color: var(--color-text-primary);
	padding: 0.15rem 0.45rem;
	border-radius: 4px;
	border: 1px solid var(--gray-300);
}
.chat-widget-setup__screenshot-wrap {
	margin-top: 1rem;
}
.chat-widget-setup__screenshot-label {
	display: block;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: var(--color-text-muted);
	margin-bottom: 0.5rem;
}
.chat-widget-setup__screenshot {
	border-radius: var(--radius-sm);
	overflow: hidden;
	border: 1px solid var(--gray-300);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
	max-width: 520px;
	background: var(--gray-100);
}
.chat-widget-setup__screenshot-img {
	display: block;
	width: 100%;
	height: auto;
	vertical-align: middle;
}
.listpage-header--sub {
	border-top: none;
	padding-top: 1rem;
}
.listpage-header__title--sm {
	font-size: 1.125rem;
}
.chat-config-source-key {
	font-size: 0.8125rem;
	background: var(--gray-100);
	padding: 0.2rem 0.5rem;
	border-radius: 4px;
	color: var(--color-text-primary);
}
.chat-config-generate-link {
	font-weight: 500;
}

/* Notifications list – comment cell */
.listpage-table__comment {
	max-width: 420px;
	word-break: break-word;
	font-size: 0.875rem;
	color: var(--color-text-secondary);
}
