/* =============================================================================
   KT-AVOLVE THEME
   Version : 1.1.0 (Compact)
   Author  : Avolve Fleet Management
   
   TABLE OF CONTENTS
   -----------------
   01. Design Tokens (CSS Variables)
       1.1 Brand Colors
       1.2 Neutral Palette
       1.3 Text Colors
       1.4 Status Colors
       1.5 Fluid Typography
       1.6 Fluid Spacing
       1.7 Fluid Sizes
       1.8 Shell Dimensions
       1.9 Shape & Shadow
       1.10 Transitions

   02. Base & Reset

   03. Layout
       3.1 Header / Navbar
       3.2 Sidebar
       3.3 Sidebar Tooltip
       3.4 Main Content Area
       3.5 Page Wrapper
       3.6 Page Header
       3.7 Page Body
       3.8 Page Footer

   04. Components
       4.1 Buttons
       4.2 Cards
       4.3 Grid Layouts
       4.4 Tables
       4.5 Forms
       4.6 Alerts / In-page Notifications
       4.7 Badges
       4.8 Empty States
       4.9 Notification Panel
       4.10 User Panel
       4.11 Modal
       4.12 Select2 Override
       4.13 Checkboxes (Custom Variants)
       4.14 Filter Panel
       4.15 Report Cards
       4.16 Stat Cards
       4.17 Info-Stats Component
       4.18 Step Wizard
       4.19 Ticket Detail

   05. Page-Specific
       5.1 Login Page

   06. Utilities & Accessibility

   07. Animations & Keyframes

   08. Responsive Breakpoints

   09. Print Styles
============================================================================= */


/* =============================================================================
   01. DESIGN TOKENS (CSS Variables)
============================================================================= */

:root {
	/* --- 1.1 Brand Colors --- */
	--clr-primary: #5C2D90;
	--clr-primary-dark: #4a2473;
	--clr-primary-light: #9854CB;
	--clr-primary-pale: #f6edfd;
	--clr-primary-tint: #f0e6fa;
	--clr-primary-muted: #e9ddf5;

	/* --- 1.2 Neutral Palette --- */
	--clr-white: #ffffff;
	--clr-bg: #f5f5f5;
	--clr-surface: #f8fafc;
	--clr-border: #e2e8f0;
	--clr-border-2: #cbd5e1;

	/* --- 1.3 Text Colors --- */
	--clr-text-heading: #1e293b;
	--clr-text-body: #334155;
	--clr-text-muted: #64748b;
	--clr-text-faint: #94a3b8;

	/* --- 1.4 Status Colors --- */
	--clr-success: #16a34a;
	--clr-warning: #d97706;
	--clr-danger: #dc2626;
	--clr-info: #2563eb;

	/* --- 1.5 Fluid Typography (Compact Scale)
     Scales smoothly from 320px → 1920px viewport */
	--text-xs: clamp(0.6rem, 0.55rem + 0.2vw, 0.7rem);
	--text-sm: clamp(0.7rem, 0.65rem + 0.25vw, 0.8rem);
	--text-base: clamp(0.75rem, 0.7rem + 0.28vw, 0.875rem);
	--text-md: clamp(0.8rem, 0.75rem + 0.3vw, 0.9375rem);
	--text-lg: clamp(0.875rem, 0.82rem + 0.35vw, 1rem);
	--text-xl: clamp(0.975rem, 0.9rem + 0.4vw, 1.1rem);
	--text-2xl: clamp(1.1rem, 0.95rem + 0.55vw, 1.3rem);
	--text-3xl: clamp(1.2rem, 1.05rem + 0.65vw, 1.5rem);
	--text-4xl: clamp(1.3rem, 1.1rem + 0.8vw, 1.75rem);
	--text-hero: clamp(1.75rem, 1.4rem + 1.6vw, 3.25rem);

	/* --- 1.6 Fluid Spacing (Compact ~15% tighter) --- */
	--space-xs: clamp(0.2rem, 0.18rem + 0.18vw, 0.4rem);
	--space-sm: clamp(0.4rem, 0.35rem + 0.4vw, 0.65rem);
	--space-md: clamp(0.65rem, 0.52rem + 0.6vw, 1.05rem);
	--space-lg: clamp(0.85rem, 0.7rem + 0.8vw, 1.3rem);
	--space-xl: clamp(1.05rem, 0.85rem + 1vw, 1.7rem);
	--space-2xl: clamp(1.25rem, 1rem + 1.2vw, 2.1rem);

	/* --- 1.7 Fluid Sizes --- */
	--logo-width: clamp(80px, 6vw + 30px, 120px);
	--logo-width-sm: clamp(65px, 4vw + 28px, 100px);
	--icon-nav: clamp(14px, 0.8vw + 10px, 20px);
	--icon-nav-right: clamp(18px, 1vw + 12px, 26px);
	--icon-sidebar: clamp(14px, 0.8vw + 10px, 20px);
	--avatar-size: clamp(24px, 1.6vw + 14px, 34px);

	/* --- 1.8 Shell Dimensions (Compact) --- */
	--header-height: clamp(44px, 2.8vw + 26px, 52px);
	--sidebar-width: clamp(190px, 14vw + 50px, 240px);
	--sidebar-collapsed: clamp(48px, 3.2vw + 20px, 64px);

	/* --- 1.9 Shape & Shadow --- */
	--radius-sm: 6px;
	--radius-md: 10px;
	--radius-lg: 12px;
	--radius-xl: 16px;
	--radius-pill: 50px;
	--shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
	--shadow-md: 0 2px 8px rgba(0, 0, 0, 0.08);
	--shadow-lg: 0 4px 12px rgba(92, 45, 144, 0.15);
	--shadow-brand: var(--clr-primary) 1.95px 1.95px 2.6px;

	/* --- 1.10 Transitions --- */
	--transition-fast: 0.2s ease;
	--transition-med: 0.3s ease;
	--transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}


/* =============================================================================
   02. BASE & RESET
============================================================================= */

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	background: var(--clr-bg);
	overflow-x: hidden;
}

.hidden {
	display: none !important;
}


/* =============================================================================
   03. LAYOUT
============================================================================= */

/* -----------------------------------------------------------------------------
   3.1 Header / Navbar — Fixed at top
----------------------------------------------------------------------------- */
.header-container {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	display: flex;
	justify-content: space-between;
	background: var(--clr-primary-pale);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	z-index: 2000;
	height: var(--header-height);
}

.avolve-brand {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 260px;
	height: var(--header-height);
	background-color: #fff;
	gap: 36px;
	border-radius: 0 50px 50px 0;
	box-shadow: var(--clr-primary) 1.95px 1.95px 2.6px;
}

.logo {
	margin-left: 45px;
}

.avolve-logo {
	width: var(--logo-width);
}

.menubar {
	width: 15px;
	height: 15px;
	cursor: pointer;
}

.sidebar-toggle {
	margin-right: 18px;
	width: 18px;
	height: 18px;
	cursor: pointer;
}

.nav-right-block {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-right: 22px;
	gap: 18px;
}

.nav-right-icons {
	padding: 0;
	margin: 0;
	height: 100%;
	display: flex;
	align-items: center;
	cursor: pointer;
}

.nav-right-icons img {
	width: 24px;
	height: 24px;
}

.notifications {
	display: flex;
	justify-content: center;
	align-items: center;
	height: 34px;
	width: 34px;
	border-radius: 50%;
	transition: all 0.3s ease;
	cursor: pointer;
	position: relative;
}

.notifications:hover {
	background-color: var(--clr-primary-tint);
}

.notifications:hover img {
	filter: brightness(0) saturate(100%) invert(20%) sepia(40%) saturate(700%) hue-rotate(255deg) brightness(90%) contrast(100%);
}

.notifications.active {
	background-color: var(--clr-primary);
}

.notifications.active img {
	filter: brightness(0) invert(1);
}

/* -----------------------------------------------------------------------------
   3.2 Sidebar — Fixed at left
----------------------------------------------------------------------------- */
.sidebar {
	position: fixed;
	top: var(--header-height);
	left: 0;
	width: var(--sidebar-width);
	height: calc(100vh - var(--header-height));
	background: #fff;
	transition: all 0.4s ease;
	z-index: 1020;
	box-shadow: var(--clr-primary) 1.95px 1.95px 2.6px;
	overflow-y: auto;
	overflow-x: hidden;
	scrollbar-width: thin;
	scrollbar-color: rgba(92, 45, 145, 0.5) transparent;
	scrollbar-gutter: stable;
}

.sidebar::-webkit-scrollbar-track {
	background: transparent;
}

.sidebar::-webkit-scrollbar-thumb:hover {
	background: rgba(92, 45, 145, 0.8);
}

@supports (overflow: overlay) {
	.sidebar {
		overflow-y: overlay;
	}
}

.sidebar.collapsed {
	width: 80px;
}

/* Sidebar Nav */
.sidebar-nav {
	padding-right: 4px;
}

.sidebar-nav .nav-list {
	list-style: none;
	display: flex;
	gap: 6px;
	margin-top: 14px;
	padding: 0 3px 12px 8px;
	flex-direction: column;
	transition: 0.3s ease;
}

.sidebar-nav .nav-link {
	color: #5C2D91;
	display: flex;
	gap: 8px;
	white-space: nowrap;
	border-radius: 8px;
	padding: 7px 8px 7px 10px;
	font-weight: 600;
	font-size: 13px;
	margin-top: 3px;
	align-items: center;
	text-decoration: none;
	transition: 0.3s ease;
	cursor: pointer;
}

.sidebar-nav .nav-link:hover {
	background: var(--clr-primary-muted);
}

/* Nav Icon */
.icon-block img {
	width: 18px;
	height: 18px;
	transition: filter 0.3s ease;
}

/* Nav Label — collapse animation */
.sidebar .sidebar-nav .nav-link .nav-label {
	opacity: 1;
	transform: translateX(0);
	transition: opacity 0.3s ease 0.2s, transform 0.3s ease 0.2s;
}

.sidebar.collapsed .sidebar-nav .nav-link .nav-label {
	opacity: 0;
	transform: translateX(-20px);
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.sidebar.collapsed .sidebar-nav .nav-link {
	border-radius: 12px;
}

/* Active & Parent-active states */
.nav-item.active>.nav-link,
.nav-item.parent-active>.nav-link {
	color: #fff;
	background: var(--clr-primary-light);
}

.nav-item.active>.nav-link .icon-block img,
.nav-item.parent-active>.nav-link .icon-block img {
	filter: brightness(0) invert(1);
}

/* Expand / Collapse — children */
.nav-item.has-children>.nav-link {
	position: relative;
}

.expand-icon {
	margin-left: auto;
	display: flex;
	align-items: center;
	transition: transform 0.3s ease;
}

.nav-item.has-children.open .expand-icon svg {
	transform: rotate(180deg);
}

.nav-link:hover .expand-icon svg path {
	fill: #fff;
}

.nav-item.active>.nav-link .expand-icon svg path,
.nav-item.parent-active>.nav-link .expand-icon svg path {
	fill: #fff;
}

/* Child Menu */
.child-menu {
	list-style: none;
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease;
	padding-left: 0;
}

.nav-item.has-children.open .child-menu {
	max-height: 500px;
}

.child-menu .nav-link {
	padding-left: 38px;
	font-size: 12.5px;
}

.sidebar.collapsed .child-menu {
	display: none;
}

/*
 * mapview.css
 * ─────────────────────────────────────────────────────────────────────────────
 * Styles for the GPS map view page — new theme.
 * ─────────────────────────────────────────────────────────────────────────────
 */
#mapview {
	width: 100%;
	height: 100%;
	min-height: 500px;
	border-radius: 15px;
}

/* Map + Sidebar layout */
.map-layout {
	display: flex;
	padding: 10px;
	gap: 10px;
}

.map-container {
	flex: 3;
	height: 100Vh;
	border-radius: 15px;
	position: relative;
}

/* Right sidebar */
.map-sidebar {
	flex: 1;
	height: calc(100vh - 90px);
	min-width: 260px;
	max-width: 340px;
	background: #efe7f7;
	border-radius: 12px;
	padding: 12px;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

/* Search row */
.search-row {
	display: flex;
	gap: 8px;
	margin-bottom: 10px;
	flex-shrink: 0;
}

#asset_filter,
#grouplist {
	flex: 1;
	height: 38px;
	border-radius: 10px;
	border: 1px solid #d6c7e8;
	background: #f7f3fb;
	padding: 6px 10px;
	font-size: 13px;
	color: #333;
}

#asset_filter:focus,
#grouplist:focus {
	outline: none;
	border-color: #6a1b9a;
	box-shadow: 0 0 0 2px rgba(106, 27, 154, 0.15);
}

.map-sidebar {
	height: calc(100vh - 90px);
	overflow-y: auto;
}

/* Stat / accordion bar */
.right-stat-bar {
	flex: 1;
	min-height: 0;
	overflow-y: auto;
	margin-top: 4px;
}

.right-side-accordion,
.widget-container {
	list-style: none;
	padding-left: 0;
	margin: 0;
}

.widget-container li {
	list-style: none;
}

/* Widget header */
.widget-head {
	position: sticky;
	top: 0;
	z-index: 20;
	background: #6a1b9a !important;
	color: #fff;
	border-radius: 8px;
	padding: 10px 12px;
	font-size: 13px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	text-decoration: none;
	margin-bottom: 4px;
}

.widget-head:hover {
	background: #7b1fa2 !important;
	color: #fff;
	text-decoration: none;
}

.widget-head span {
	white-space: nowrap;
}

.widget-collapse {
	margin-left: auto;
}

/* Asset list scroll area */
#gpsConnectedAssets {
	scrollbar-width: thin;
	scrollbar-color: #6a1b9a transparent;
	overflow-y: auto;
}

#gpsConnectedAssets::-webkit-scrollbar {
	width: 4px;
}

#gpsConnectedAssets::-webkit-scrollbar-track {
	background: transparent;
}

#gpsConnectedAssets::-webkit-scrollbar-thumb {
	background-color: #6a1b9a;
	border-radius: 4px;
}

/* Asset row */
.asset-row-side {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	padding: 8px 4px;
	border-bottom: 1px solid rgba(106, 27, 154, 0.1);
	cursor: pointer;
	transition: background 0.15s;
}

.asset-row-side:hover {
	background: rgba(106, 27, 154, 0.06);
	border-radius: 8px;
}

/* Asset image cell */
.asset-image {
	flex-shrink: 0;
	width: 80px;
	text-align: center;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.2;
}

.asset-image a {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-decoration: none;
	gap: 2px;
}

.asset-image img {
	display: block;
	width: 40px;
}

/* Filter tints for the SVG img — converts black SVG to status color */
.asset-image.green img {
	filter: invert(40%) sepia(1) saturate(4) hue-rotate(90deg) brightness(0.85);
}

.asset-image.yellow img {
	filter: invert(80%) sepia(1) saturate(5) hue-rotate(10deg) brightness(1.05);
}

.asset-image.orange img {
	filter: invert(55%) sepia(1) saturate(6) hue-rotate(5deg) brightness(0.95);
}

.asset-image.red img {
	filter: invert(25%) sepia(1) saturate(8) hue-rotate(340deg) brightness(0.85);
}

.asset-image.gray img {
	filter: invert(50%) sepia(0) saturate(0) brightness(1.1);
}

/* Asset info cell */
.asset-info {
	flex: 1;
	min-width: 0;
}

.asset-info .lplate {
	font-size: 13px;
	font-weight: 700;
	margin: 0 0 2px;
	color: #2c003e;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.asset-info .tag {
	display: block;
	margin-bottom: 3px;
}

.asset-info .location {
	font-size: 11px;
	color: #666;
	margin: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Tooltip (quickTip) */
.maker-quicktip {
	position: absolute;
	z-index: 9999;
	background: rgba(50, 50, 50, 0.88);
	color: #fff;
	font-size: 12px;
	padding: 6px 10px;
	border-radius: 6px;
	pointer-events: none;
	display: none;
	max-width: 220px;
	line-height: 1.5;
}


/* =============================================================================
   INFOBOX — full redesign
   Drop this into mapview.css, replacing the previous .infoBox block
   =============================================================================

   Changes:
   • Close button moved INSIDE top-right corner of header
   • Customer tname becomes a purple header bar at the top
   • Share / Direction / Details / History centred in footer pill-buttons
   • Smart positioning: box appears above/below/left/right of the marker
     with a matching CSS arrow — never overlapping the vehicle icon
   ============================================================================= */

/* Wrapper injected by JS to control position + arrow side */
.ib-positioner {
	position: absolute;
	z-index: 9000;
	pointer-events: none;
	/* clicks pass through until the box itself */
}

.ib-positioner .infoBox {
	pointer-events: all;
}

/* Arrow triangle — shared base */
.ib-positioner::after {
	content: '';
	position: absolute;
	width: 0;
	height: 0;
	border: 10px solid transparent;
}

/* Arrow variants set by JS via data-arrow="top|bottom|left|right" */
.ib-positioner[data-arrow="top"]::after {
	/* arrow points DOWN toward the marker below the box */
	border-top-color: #fff;
	bottom: -20px;
	left: 50%;
	transform: translateX(-50%);
}

.ib-positioner[data-arrow="bottom"]::after {
	/* arrow points UP toward the marker above the box */
	border-bottom-color: #fff;
	top: -20px;
	left: 50%;
	transform: translateX(-50%);
}

.ib-positioner[data-arrow="left"]::after {
	/* arrow points RIGHT toward the marker to the right */
	border-left-color: #fff;
	right: -20px;
	top: 50%;
	transform: translateY(-50%);
}

.ib-positioner[data-arrow="right"]::after {
	/* arrow points LEFT toward the marker to the left */
	border-right-color: #fff;
	left: -20px;
	top: 50%;
	transform: translateY(-50%);
}

/* InfoBox card */
.infoBox {
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
	overflow: visible;
	/* let the arrow ::after bleed out */
	font-size: 12px;
	width: 300px;
	position: relative;
}

/* Customer name header bar */
.infoBox .ib-account-header {
	background: #6a1b9a;
	color: #fff;
	padding: 7px 36px 7px 12px;
	/* right pad leaves room for close btn */
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	border-radius: 10px 10px 0 0;
	position: relative;
	min-height: 32px;
	display: flex;
	align-items: center;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Close button — inside header, top-right */
.infoBox .ib-close {
	position: absolute;
	top: 6px;
	right: 8px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.2);
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 14px;
	line-height: 1;
	transition: background 0.15s;
	padding: 0;
}

.infoBox .ib-close:hover {
	background: rgba(255, 255, 255, 0.35);
}

/* Body row (icons + plate/status) */
.infoBox .info-body {
	display: flex;
	gap: 8px;
	padding: 10px 12px;
}

.infoBox .info-body .left {
	display: flex;
	flex-direction: column;
	gap: 4px;
	align-items: center;
}

.infoBox .info-body .left img {
	width: 20px;
	height: 20px;
	object-fit: contain;
}

.infoBox .info-body .right {
	flex: 1;
}

.infoBox .info-body .right h3 {
	margin: 0 0 0 18px;
	font-size: 14px;
	font-weight: 700;
	color: #2c003e;
}

.infoBox .status {
	display: flex;
	gap: 4px;
	font-size: 10px;
	color: #555;
}

.infoBox .status span {
	flex: 1;
	text-align: center;
	line-height: 1.4;
	border-right: 0.5px solid #e0d0f0;
	padding: 0 4px;
}

.infoBox .status span:last-child {
	border-right: none;
}

/* Extra fields (odo, fuel, etc.) */
.infoBox .info-foot-more {
	padding: 6px 12px;
	border-top: 0.5px solid #f0e6fb;
	overflow: hidden;
	font-size: 11px;
	color: #555;
	display: flex;
	flex-wrap: wrap;
}

.infoBox .info-foot-more span {
	float: left;
}

/* Footer action links — centred pill buttons */
.infoBox .info-foot {
	padding: 8px 12px;
	border-top: 0.5px solid #ede0f5;
	display: flex;
	gap: 6px;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	border-radius: 0 0 10px 10px;
}

.infoBox .info-foot a {
	font-size: 11px;
	font-weight: 600;
	color: #6a1b9a;
	text-decoration: none;
	padding: 4px 10px;
	border-radius: 20px;
	border: 0.5px solid #d6c7e8;
	background: #f7f3fb;
	transition: background 0.15s;
	white-space: nowrap;
}

.infoBox .info-foot a:hover {
	background: #ede0f5;
}

/* SIM variant */
.infoBox.sim .info-body {
	flex-direction: column;
}

.infoBox.sim .asset-name {
	font-size: 14px;
	font-weight: 700;
	margin: 0 0 6px;
	color: #2c003e;
}

.infoBox.sim .field-container {
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.infoBox.sim .field {
	font-size: 12px;
	color: #555;
}

/* Google Map control overrides */
.gm-style button,
.gm-style .gm-control-active {
	background: #f7f3fb !important;
	border-radius: 10px !important;
	border: none !important;
	color: #4a2c7a !important;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;
}

.gm-style button[aria-pressed="true"],
.gm-style .gm-control-active[aria-pressed="true"] {
	background: #6a1b9a !important;
	color: #fff !important;
}

.gm-style button:hover {
	background: #eee6f7 !important;
}

.gm-style .gm-style-mtc {
	background: #efe7f7 !important;
	border-radius: 12px !important;
	padding: 6px !important;
}

.gm-style input[type="checkbox"] {
	accent-color: #6a1b9a !important;
}

.gm-style .gm-bundled-control button {
	background: #f7f3fb !important;
	border-radius: 50% !important;
	margin: 4px !important;
}

.gm-style button[title="Toggle fullscreen view"] {
	background: #f7f3fb !important;
	border-radius: 10px !important;
}

.gm-style .gm-style-mtc div {
	background: #f7f3fb !important;
	color: #4a2c7a !important;
	border-radius: 8px !important;
}

.gm-style svg {
	fill: #4a2c7a !important;
}

.gm-style button[aria-pressed="true"] svg {
	fill: #ffffff !important;
}

/* Polygon zone labels */
.polygonlable {
	background: rgba(74, 44, 122, 0.75);
	padding: 2px 6px;
	border-radius: 4px;
}

/* Responsive */
@media (max-width: 768px) {
	.map-layout {
		flex-direction: column;
		height: auto;
	}

	.map-container {
		height: 50vh;
	}

	.map-sidebar {
		max-width: 100%;
		border-radius: 0;
	}
}

/* -----------------------------------------------------------------------------
   3.3 Sidebar Tooltip — Collapsed state hover label
----------------------------------------------------------------------------- */
.sidebar-nav .nav-tooltip {
	position: fixed;
	margin: -22px 0 0 72px;
	transform: translateY(-50%) translateX(-10px);
	color: #5C2D91;
	background: #fff;
	padding: 8px 12px;
	border-radius: 8px;
	white-space: nowrap;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
	z-index: 1501;
	pointer-events: none;
	font-weight: 550;
	font-size: 13.5px;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s ease 0.5s,
		visibility 0.2s ease 1s,
		transform 0.2s ease 1s;
}

.sidebar-nav .nav-tooltip::before {
	content: '';
	position: absolute;
	right: 100%;
	top: 50%;
	transform: translateY(-50%);
	border-width: 6px;
	border-style: solid;
	border-color: transparent #fff transparent transparent;
}

.sidebar:not(.collapsed) .nav-tooltip {
	display: none !important;
}

.sidebar.collapsed .nav-tooltip {
	display: block;
}

.sidebar.collapsed .nav-item {
	position: relative;
}

.sidebar.collapsed .nav-item:hover .nav-tooltip {
	opacity: 1;
	visibility: visible;
	transform: translateY(-50%) translateX(0);
	transition-delay: 1.2s;
}

/* -----------------------------------------------------------------------------
   3.4 Main Content Area
----------------------------------------------------------------------------- */
#main-content {
	margin-left: var(--sidebar-collapsed);
	margin-top: var(--header-height);
	min-height: calc(100vh - var(--header-height));
	background: var(--clr-bg);
	transition: margin-left 0.4s ease;
	padding: 0;
}

#main-content.expanded {
	margin-left: 290px;
}

/* -----------------------------------------------------------------------------
   3.5 Page Wrapper — Standard container used in all page templates
----------------------------------------------------------------------------- */
.page-wrapper {
	width: 100%;
	min-height: calc(100vh - var(--header-height));
	display: flex;
	flex-direction: column;
}

/* -----------------------------------------------------------------------------
   3.6 Page Header
----------------------------------------------------------------------------- */
.page-header {
	background: var(--clr-white);
	padding: 14px 24px;
	border-bottom: 2px solid #5C2D91;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 14px;
	min-height: 60px;
}

.page-title {
	color: #6b4c9a;
	font-size: 20px;
	font-weight: 650;
	display: flex;
	align-items: center;
	gap: 9px;
	margin: 0;
}

.page-title i {
	color: #6b4c9a;
	font-size: 20px;
}

.page-title img {
	color: #6b4c9a;
	width: 22px;
	height: 22px;
}

.page-header-actions {
	display: flex;
	gap: 10px;
	align-items: center;
	flex-wrap: wrap;
}

/* Search box in header */
.search-box {
	position: relative;
	min-width: 230px;
}

.search-box input {
	width: 100%;
	padding: 9px 40px 9px 14px;
	border: 1px solid #e0e0e0;
	border-radius: 25px;
	outline: none;
	font-size: 13.5px;
	transition: all 0.3s ease;
}

.search-box input:focus {
	border-color: #6b4c9a;
	box-shadow: 0 0 0 3px rgba(107, 76, 154, 0.1);
}

.search-box i {
	position: absolute;
	right: 14px;
	top: 50%;
	transform: translateY(-50%);
	color: #999;
	font-size: 14px;
}

.search-box input:focus+i {
	color: var(--clr-primary);
}

/* Header action button */
.btn-header {
	padding: 8px 16px;
	font-size: 13px;
	font-weight: 600;
	color: var(--clr-white);
	background: var(--clr-primary);
	border: none;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	gap: 6px;
}

.btn-header:hover {
	background: var(--clr-primary-dark);
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(92, 45, 144, 0.3);
}

.btn-header i {
	font-size: 14px;
}

/* Back navigation link */
.back-event-block {
	display: flex;
	align-items: center;
	gap: 7px;
	padding: 8px 16px;
	font-size: 13px;
	font-weight: 600;
	color: var(--clr-primary);
	background: var(--clr-white);
	border-radius: 10px;
	cursor: pointer;
	transition: all 0.2s ease;
	text-decoration: none;
}

.back-event-block:hover {
	background: #f8f4fc;
	transform: translateX(-2px);
	text-decoration: none;
	color: var(--clr-primary);
}

.back-event-block i {
	font-size: 14px;
}

/* -----------------------------------------------------------------------------
   3.7 Page Body
----------------------------------------------------------------------------- */
.page-body {
	flex: 1;
	padding: 16px;
	background: #fff;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.content-section {
	background: var(--clr-white);
	border-radius: 10px;
	padding: 18px;
	margin-bottom: 18px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.section-title {
	font-size: 16px;
	font-weight: 650;
	color: #1e293b;
	margin-bottom: 12px;
	padding-bottom: 10px;
	border-bottom: 2px solid #f1f5f9;
}

/* -----------------------------------------------------------------------------
   3.8 Page Footer
----------------------------------------------------------------------------- */
.page-footer {
	background: var(--clr-white);
	padding: 12px 24px;
	border-top: 1px solid #e2e8f0;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	min-height: 50px;
}

.footer-info {
	font-size: 12.5px;
	color: #64748b;
}

.footer-actions {
	display: flex;
	gap: 10px;
}


/* =============================================================================
   04. COMPONENTS
============================================================================= */

/* -----------------------------------------------------------------------------
   4.1 Buttons
----------------------------------------------------------------------------- */

/* Primary */
.btn-primary:active {
	transform: translateY(0);
	box-shadow: 0 2px 6px rgba(92, 45, 144, 0.2);
}

.btn-primary:disabled {
	background: #94a3b8;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
	opacity: 0.6;
}

.btn-primary:focus {
	outline: none;
	box-shadow: 0 0 0 4px rgba(92, 45, 144, 0.2);
}

.btn-primary.loading {
	position: relative;
	color: transparent;
	pointer-events: none;
}

.btn-primary.loading::after {
	content: '';
	position: absolute;
	width: 18px;
	height: 18px;
	top: 50%;
	left: 50%;
	margin-left: -9px;
	margin-top: -9px;
	border: 2px solid var(--clr-white);
	border-radius: 50%;
	border-top-color: transparent;
	animation: spinner 0.6s linear infinite;
}

/* Secondary */
.btn-secondary:hover {
	background: var(--clr-primary);
	transform: translateY(-1px);
	color: white;
}

.btn-secondary:active {
	transform: translateY(0);
}

.btn-secondary:focus {
	outline: none;
	box-shadow: 0 0 0 4px rgba(92, 45, 144, 0.1);
}

/* Ghost */
.btn-ghost {
	width: 100%;
	height: 40px;
	padding: 9px 20px;
	font-size: 14px;
	font-weight: 600;
	color: var(--clr-primary);
	background: transparent;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.2s ease;
	font-family: inherit;
}

.btn-ghost:hover {
	background: #f8f4fc;
}

/* Filter Buttons */
.btn-filter {
	padding: 7px 18px;
	font-size: 13px;
	font-weight: 600;
	border-radius: 50px;
	cursor: pointer;
	transition: all 0.2s ease;
	display: flex;
	align-items: center;
	gap: 6px;
	border: 2px solid transparent;
	font-family: inherit;
}

.btn-filter i {
	font-size: 12px;
}

.btn-filter:active {
	transform: translateY(0);
}

.btn-filter:disabled {
	opacity: 0.5;
	cursor: not-allowed;
	transform: none !important;
}

.btn-load {
	background: var(--clr-primary);
	color: var(--clr-white);
	border-radius: 25px;
	padding: 5px 12px;
	font-size: 13px;
	transition: opacity 0.3s ease;
}

.btn-load:hover {
	background: var(--clr-primary-dark);
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(92, 45, 144, 0.3);
}

.btn-reset {
	background: var(--clr-white);
	color: var(--clr-primary);
}

.btn-reset:hover {
	background: #f8f4fc;
	transform: translateY(-1px);
}

/* -----------------------------------------------------------------------------
   4.2 Cards
----------------------------------------------------------------------------- */
.card {
	background: var(--clr-white);
	border-radius: 10px;
	padding: 8px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
	transition: all 0.3s ease;
	border: 2px solid transparent;
}

.card:hover {
	box-shadow: 0 4px 12px rgba(107, 76, 154, 0.15);
	border-color: #6b4c9a;
}

.card-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 12px;
}

.card-title {
	font-size: 14px;
	font-weight: 650;
	color: #1e293b;
	margin: 0;
}

.card-body {
	font-size: 13px;
	padding: 8px;
	color: #475569;
	line-height: 1.6;
}

.card-footer {
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid #f1f5f9;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

/* -----------------------------------------------------------------------------
   4.3 Grid Layouts
----------------------------------------------------------------------------- */
.grid-container {
	display: grid;
	gap: 16px;
}

.grid-1 {
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.grid-2 {
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.grid-3 {
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.grid-4 {
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

/* -----------------------------------------------------------------------------
   4.4 Tables
----------------------------------------------------------------------------- */
.table-container {
	width: 100%;
	overflow-x: auto;
	background: var(--clr-white);
	border-radius: 10px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.data-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
}

.data-table thead {
	background: var(--clr-surface);
	border-bottom: 2px solid #e2e8f0;
}

.data-table th {
	padding: 10px 13px;
	text-align: center;
	font-weight: 650;
	color: #475569;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.data-table td {
	padding: 9px 13px;
	border-bottom: 1px solid #f1f5f9;
	color: #334155;
}

.data-table tbody tr {
	transition: background 0.2s ease;
}

.data-table tbody tr:hover {
	background: var(--clr-surface);
}

.data-table tbody tr:last-child td {
	border-bottom: none;
}

/* Table Badges */
.table-badge {
	display: inline-block;
	padding: 3px 8px;
	border-radius: 12px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.3px;
}

.table-badge.success {
	background: #dcfce7;
	color: #16a34a;
}

.table-badge.warning {
	background: #fef3c7;
	color: #d97706;
}

.table-badge.danger {
	background: #fee2e2;
	color: #dc2626;
}

.table-badge.info {
	background: #dbeafe;
	color: #2563eb;
}

/* -----------------------------------------------------------------------------
   4.5 Forms
----------------------------------------------------------------------------- */
.form-row {
	display: grid;
	gap: 16px;
	margin-bottom: 16px;
}

.form-row.cols-2 {
	grid-template-columns: repeat(2, 1fr);
}

.form-row.cols-3 {
	grid-template-columns: repeat(3, 1fr);
}

.form-row.cols-4 {
	grid-template-columns: repeat(4, 1fr);
}

.form-group {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.form-label {
	font-size: 13px;
	font-weight: 600;
	color: #334155;
	margin-bottom: 6px;
}

.form-input,
.form-textarea,
.form-control,
.form-select {
	padding: 8px 12px;
	border: 2px solid #e2e8f0;
	border-radius: 8px;
	font-size: 13px;
	color: #1e293b;
	background: var(--clr-surface);
	transition: all 0.2s ease;
	width: 100%;
}

.form-control:focus,
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
	outline: none;
	border-color: var(--clr-primary);
	box-shadow: 0 0 0 3px rgba(92, 45, 144, 0.1);
}

.form-hint {
	font-size: 12px;
	color: #64748b;
	margin-top: 3px;
}

.form-input.error,
.form-select.error,
.form-textarea.error {
	border-color: #dc2626;
}

.form-input.success,
.form-select.success,
.form-textarea.success {
	border-color: #16a34a;
}

.form-error-message {
	font-size: 12px;
	color: #dc2626;
	margin-top: 3px;
}

/* -----------------------------------------------------------------------------
   4.6 Alerts / In-page Notifications
----------------------------------------------------------------------------- */
.alert {
	padding: 12px 16px;
	border-radius: 7px;
	margin-bottom: 13px;
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 13px;
	line-height: 1.5;
}

.alert-icon {
	font-size: 17px;
	flex-shrink: 0;
}

.alert-content {
	flex: 1;
}

.alert-title {
	font-weight: 650;
	font-size: 13.5px;
	margin-bottom: 3px;
}

.alert.info {
	background: #dbeafe;
	color: #1e40af;
	border-left: 4px solid #2563eb;
}

.alert.success {
	background: #dcfce7;
	color: #15803d;
	border-left: 4px solid #16a34a;
}

.alert.warning {
	background: #fef3c7;
	color: #a16207;
	border-left: 4px solid #d97706;
}

.alert.error {
	background: #fee2e2;
	color: #b91c1c;
	border-left: 4px solid #dc2626;
}

/* -----------------------------------------------------------------------------
   4.7 Badges
----------------------------------------------------------------------------- */
.status-badge {
	display: inline-block;
	padding: 4px 11px;
	border-radius: 16px;
	font-size: 12px;
	font-weight: 600;
}

.status-started {
	background: #dbeafe;
	color: #2563eb;
}

.status-assigned {
	background: #fef3c7;
	color: #d97706;
}

.status-progress {
	background: #ddd6fe;
	color: #7c3aed;
}

.status-completed {
	background: #d1fae5;
	color: #059669;
}

.status-failed {
	background: #fee2e2;
	color: #dc2626;
}

.status-reopened {
	background: #fed7aa;
	color: #ea580c;
}

.status-unknown {
	background: #e2e8f0;
	color: #64748b;
}

.priority-badge {
	display: inline-block;
	padding: 4px 11px;
	border-radius: 16px;
	font-size: 12px;
	font-weight: 600;
}

.priority-high {
	background: #fee2e2;
	color: #dc2626;
}

.priority-medium {
	background: #fef3c7;
	color: #d97706;
}

.priority-low {
	background: #dbeafe;
	color: #2563eb;
}

.status-note {
	background: #e3f2fd;
	color: #1976d2;
}

/* -----------------------------------------------------------------------------
   4.8 Empty States
----------------------------------------------------------------------------- */
.empty-state {
	text-align: center;
	padding: 44px 16px;
	color: #94a3b8;
}

.empty-state-icon {
	font-size: 52px;
	margin-bottom: 16px;
	opacity: 0.5;
}

.empty-state-title {
	font-size: 17px;
	font-weight: 650;
	color: #475569;
	margin-bottom: 7px;
}

.empty-state-message {
	font-size: 13.5px;
	margin-bottom: 20px;
}

.empty-state-action {
	margin-top: 16px;
}

/* -----------------------------------------------------------------------------
   4.9 Notification Panel
----------------------------------------------------------------------------- */
.notification-block {
	position: fixed;
	top: calc(var(--header-height) + 8px);
	right: 18px;
	width: 380px;
	max-width: 90vw;
	min-height: 260px;
	background: var(--clr-white);
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	padding: 4px 12px 0 12px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateY(-10px);
	transition: all 0.3s ease;
	z-index: 1000;
}

.notification-block.active {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateY(0);
}

.notification-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 13px 10px 5px 4px;
	border-bottom: 1px solid var(--clr-primary-light);
}

.notification-header h3 {
	margin: 0;
	font-size: 16px;
	font-weight: 600;
	color: #5C2D91;
}

.notification-content {
	max-height: 360px;
	overflow-y: auto;
}

.notification-empty {
	padding: 32px 16px;
	text-align: center;
	color: #999;
}

/* -----------------------------------------------------------------------------
   4.10 User Panel
----------------------------------------------------------------------------- */
.user-block {
	display: flex;
	flex-direction: column;
	gap: 5px;
	position: fixed;
	top: calc(var(--header-height) + 8px);
	right: 18px;
	width: 130px;
	background: var(--clr-white);
	border: 1px solid #e0e0e0;
	border-radius: 20px;
	padding: 8px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	opacity: 0;
	visibility: hidden;
	text-align: center;
	transform: translateY(-10px);
	transition: all 0.3s ease;
	z-index: 1000;
}

.user-block.active {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.user-block a {
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.3px;
	color: #5C2D91;
	width: 100%;
	display: flex;
	align-items: center;
	gap: 7px;
	padding: 10px;
	border-radius: 15px;
	transition: all 0.3s ease;
}

.user-block a:hover {
	background-color: var(--clr-primary-light);
	color: #fff;
}

/* -----------------------------------------------------------------------------
   4.11 Modal
----------------------------------------------------------------------------- */

/* Overlay */
.mdl-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.6);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 5000;
	opacity: 0;
	visibility: hidden;
	transition: all 0.4s ease;
	backdrop-filter: blur(4px);
	padding: 16px;
}

.mdl-overlay.active {
	opacity: 1;
	visibility: visible;
}

/* Container */
.cust-mdl {
	background: var(--clr-white);
	border-radius: 14px;
	max-width: 860px;
	width: 100%;
	max-height: 90vh;
	display: flex;
	flex-direction: column;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
	transform: scale(0.9) translateY(20px);
	transition: transform 0.4s ease;
	overflow: hidden;
	z-index: 5001;
}

.mdl-overlay.active .cust-mdl {
	transform: scale(1) translateY(0);
}

/* Size Modifiers */
.cust-mdl.mdl-sm {
	max-width: 460px;
}

.cust-mdl.mdl-md {
	max-width: 640px;
}

.cust-mdl.mdl-lg {
	max-width: 860px;
}

.cust-mdl.mdl-xl {
	max-width: 1100px;
}

.cust-mdl.mdl-full {
	max-width: 95vw;
	max-height: 95vh;
}

/* Header */
.mdl-header-block {
	padding: 0 10px;
	display: flex;
	justify-content: center;
	width: 100%;
}

.mdl-header {
	width: 95%;
	padding: 14px 18px 14px 10px;
	color: var(--clr-primary);
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-shrink: 0;
	border-bottom: 2px solid var(--clr-primary-dark);
}

.mdl-title {
	color: var(--clr-primary);
	font-size: 16px;
	position: relative;
	margin: 0;
	padding: 0;
}

.mdl-title i {
	font-size: 18px;
}

.mdl-close {
	border: 2px solid var(--clr-primary-dark);
	color: var(--clr-primary);
	width: 34px;
	height: 34px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.2s ease;
	font-size: 17px;
}

.mdl-close:hover {
	background: rgba(255, 255, 255, 0.25);
	transform: rotate(90deg);
}

/* Body */
.mdl-body {
	padding: 22px;
	overflow-y: auto;
	flex: 1;
}

.mdl-body::-webkit-scrollbar {
	width: 8px;
}

.mdl-body::-webkit-scrollbar-track {
	background: #f1f5f9;
	border-radius: 4px;
}

.mdl-body::-webkit-scrollbar-thumb {
	background: rgba(92, 45, 144, 0.3);
	border-radius: 4px;
}

.mdl-body::-webkit-scrollbar-thumb:hover {
	background: rgba(92, 45, 144, 0.5);
}

/* Footer */
.mdl-footer {
	padding: 14px 22px;
	border-top: 2px solid #f1f5f9;
	display: flex;
	justify-content: center;
	gap: 10px;
	flex-shrink: 0;
	background: #fafafa;
}

/* Modal Form Elements */
.mdl-form-row {
	display: grid;
	gap: 16px;
	margin-bottom: 18px;
}

.mdl-form-row.cols-1 {
	grid-template-columns: 1fr;
}

.mdl-form-row.cols-2 {
	grid-template-columns: repeat(2, 1fr);
}

.mdl-form-row.cols-3 {
	grid-template-columns: repeat(3, 1fr);
}

.mdl-form-row.cols-4 {
	grid-template-columns: repeat(4, 1fr);
}

.mdl-form-group {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.mdl-form-label {
	font-size: 13px;
	font-weight: 600;
	color: #334155;
	display: flex;
	align-items: center;
	gap: 5px;
}

.mdl-form-label .required {
	color: #ef4444;
	font-size: 15px;
}

.mdl-form-control {
	width: 100%;
	height: 38px;
	padding: 8px 12px;
	font-size: 13px;
	color: #1e293b;
	background: var(--clr-surface);
	border: 2px solid #e2e8f0;
	border-radius: 8px;
	outline: none;
	transition: all 0.2s ease;
	font-family: inherit;
}

.mdl-form-control:focus {
	background: var(--clr-white);
	border-color: #6f42c1;
	box-shadow: 0 0 0 3px rgba(111, 66, 193, 0.15);
}

.mdl-form-control:hover:not(:focus) {
	border-color: #cbd5e1;
	background: var(--clr-white);
}

.mdl-form-control.error {
	border-color: #ef4444;
	background: #fef2f2;
}

textarea.mdl-form-control {
	min-height: 85px;
	resize: vertical;
}

.mdl-form-select {
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	padding-right: 36px;
	cursor: pointer;
}

.error-message {
	font-size: 12px;
	color: #ef4444;
	margin-top: 3px;
}

.msl-form-hint {
	font-size: 12px;
	color: #64748b;
	margin-top: 3px;
}

/* Modal Buttons */
.mdl-btn {
	padding: 9px 22px;
	font-size: 13.5px;
	font-weight: 600;
	border-radius: 20px;
	border: none;
	cursor: pointer;
	transition: all 0.2s ease;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-family: inherit;
}

.mdl-btn i {
	font-size: 12px;
}

.mdl-btn-primary {
	background: var(--clr-primary);
	color: var(--clr-white);
	box-shadow: 0 2px 8px rgba(92, 45, 144, 0.2);
}

.mdl-btn-secondary {
	background: var(--clr-white);
	color: var(--clr-primary);
	border: 2px solid var(--clr-primary);
}

.mdl-btn-danger {
	background: #ef4444;
	color: var(--clr-white);
}

.mdl-btn-success {
	background: #10b981;
	color: var(--clr-white);
}

.mdl-btn-primary:hover {
	background: var(--clr-primary-dark);
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(92, 45, 144, 0.3);
}

.mdl-btn-secondary:hover {
	background: #f8f4fc;
	transform: translateY(-1px);
}

.mdl-btn-danger:hover {
	background: #dc2626;
}

.mdl-btn-success:hover {
	background: #059669;
}

.mdl-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
	transform: none !important;
}

.mdl-btn-icon {
	padding: 7px;
	width: 32px;
	height: 32px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
}

.mdl-btn-add-row {
	background: #10b981;
	color: white;
	padding: 8px 16px;
	font-size: 13px;
	font-weight: 600;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	transition: all 0.2s ease;
}

.mdl-btn-add-row:hover {
	background: #059669;
	transform: translateY(-1px);
}

/* Modal Table Form */
.mdl-table-form-container {
	background: var(--clr-surface);
	border-radius: 10px;
	padding: 16px;
	margin-bottom: 18px;
}

.mdl-table-form-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 13px;
}

.mdl-table-form-title {
	font-size: 14px;
	font-weight: 650;
	color: #1e293b;
}

.mdl-table-responsive {
	overflow-x: auto;
	border-radius: 8px;
	background: var(--clr-white);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.mdl-table-form {
	width: 100%;
	border-collapse: collapse;
}

.mdl-table-form thead {
	background: linear-gradient(135deg, #f8f4fc 0%, var(--clr-primary-tint) 100%);
}

.mdl-table-form th {
	padding: 11px 10px;
	text-align: left;
	font-weight: 650;
	font-size: 12px;
	color: var(--clr-primary);
	border-bottom: 2px solid var(--clr-primary-muted);
	white-space: nowrap;
}

.mdl-table-form th .required {
	color: #ef4444;
}

.mdl-table-form td {
	padding: 9px 10px;
	border-bottom: 1px solid #f1f5f9;
}

.mdl-table-form tbody tr {
	transition: background 0.2s ease;
}

.mdl-table-form tbody tr:hover {
	background: var(--clr-surface);
}

.mdl-table-form .mdl-form-control {
	height: 34px;
	font-size: 12.5px;
	margin: 0;
}

.mdl-table-form .mdl-form-select {
	height: 34px;
	font-size: 12.5px;
}

/* Modal — Checkbox & Radio */
.form-check {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 10px;
}

.form-check input[type="checkbox"],
.form-check input[type="radio"] {
	width: 18px;
	height: 18px;
	cursor: pointer;
	accent-color: var(--clr-primary);
}

.form-check-label {
	font-size: 13px;
	color: #334155;
	cursor: pointer;
}

/* Modal — File Upload */
.file-upload-wrapper {
	position: relative;
}

.file-upload-input {
	opacity: 0;
	position: absolute;
	z-index: -1;
}

.file-upload-label {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 14px;
	border: 2px dashed #cbd5e1;
	border-radius: 10px;
	background: var(--clr-surface);
	cursor: pointer;
	transition: all 0.2s ease;
}

.file-upload-label:hover {
	border-color: #6f42c1;
	background: var(--clr-primary-tint);
}

.file-upload-label i {
	font-size: 28px;
	color: #6f42c1;
}

.file-upload-text {
	text-align: center;
}

.file-upload-text strong {
	display: block;
	font-size: 14px;
	color: #1e293b;
	margin-bottom: 3px;
}

.file-upload-text span {
	font-size: 12px;
	color: #64748b;
}

.file-list {
	margin-top: 13px;
}

.file-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 14px;
	background: var(--clr-surface);
	border-radius: 8px;
	margin-bottom: 7px;
}

.file-item-info {
	display: flex;
	align-items: center;
	gap: 10px;
}

.file-item-icon {
	width: 36px;
	height: 36px;
	background: var(--clr-primary-muted);
	color: var(--clr-primary);
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
}

/* Modal — Select2 z-index fix */
.mdl-overlay .select2-container {
	z-index: 1;
}

.mdl-overlay .select2-dropdown {
	z-index: 10000 !important;
}

.mdl-overlay .select2-container--open {
	z-index: 10000 !important;
}

.cust-mdl .select2-dropdown {
	z-index: 10000 !important;
}

.cust-mdl .select2-container--open {
	z-index: 10000 !important;
}

.mdl-overlay .select2-close-mask {
	z-index: 9999;
}

/* -----------------------------------------------------------------------------
   4.12 Select2 Override
----------------------------------------------------------------------------- */

.select2-container {
	box-sizing: border-box;
	display: block;
	width: min-content;
	margin: 0;
	position: relative;
	vertical-align: middle;
}

/* Single */
.select2-container--default .select2-selection--single {
	background-color: var(--clr-surface);
	border: 2px solid #e2e8f0;
	border-radius: 8px;
	cursor: pointer;
	display: block;
	height: 38px;
	user-select: none;
	-webkit-user-select: none;
	transition: all 0.2s ease;
}

.select2-container--default .select2-selection--single:hover {
	border-color: #cbd5e1;
	background: var(--clr-white);
}

.select2-container--default.select2-container--open .select2-selection--single,
.select2-container--default.select2-container--focus .select2-selection--single {
	background: var(--clr-white);
	border-color: var(--clr-primary);
	box-shadow: 0 0 0 3px rgba(92, 45, 144, 0.1);
	outline: none;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
	color: #1e293b;
	line-height: 34px;
	padding-left: 12px;
	padding-right: 36px;
	font-size: 13px;
	font-weight: 400;
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
	color: var(--clr-primary);
	font-size: 13px;
	font-weight: 400;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
	height: 34px;
	position: absolute;
	top: 2px;
	right: 10px;
	width: 18px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
	border-color: #64748b transparent transparent transparent;
	border-style: solid;
	border-width: 5px 4px 0 4px;
	height: 0;
	left: 50%;
	margin-left: -4px;
	margin-top: -2px;
	position: absolute;
	top: 50%;
	width: 0;
	transition: all 0.2s ease;
}

.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
	border-color: transparent transparent var(--clr-primary) transparent;
	border-width: 0 4px 5px 4px;
}

.select2-container--default .select2-selection--single .select2-selection__clear {
	cursor: pointer;
	float: right;
	font-weight: bold;
	height: 34px;
	margin-right: 26px;
	padding-right: 0;
	position: relative;
	color: #64748b;
	font-size: 17px;
	line-height: 34px;
}

.select2-container--default .select2-selection--single .select2-selection__clear:hover {
	color: #dc2626;
}

/* Multiple */
.select2-container--default .select2-selection--multiple {
	background-color: var(--clr-surface);
	border: 2px solid #e2e8f0;
	border-radius: 8px;
	cursor: text;
	display: block;
	min-height: 38px;
	user-select: none;
	-webkit-user-select: none;
	transition: all 0.2s ease;
	padding: 3px 6px;
}

.select2-container--default .select2-selection--multiple:hover {
	border-color: #cbd5e1;
	background: var(--clr-white);
}

.select2-container--default.select2-container--open .select2-selection--multiple,
.select2-container--default.select2-container--focus .select2-selection--multiple {
	background: var(--clr-white);
	border-color: var(--clr-primary);
	box-shadow: 0 0 0 3px rgba(92, 45, 144, 0.1);
	outline: none;
}

.select2-container--default .select2-selection--multiple .select2-selection__rendered {
	box-sizing: border-box;
	list-style: none;
	margin: 0;
	padding: 0;
	width: 100%;
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
}

.select2-container--default .select2-selection--multiple .select2-selection__placeholder {
	color: var(--clr-primary);
	margin-top: 5px;
	font-size: 13px;
	font-weight: 400;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
	background-color: var(--clr-primary-muted);
	border: 1px solid #d4b5f0;
	border-radius: 6px;
	cursor: default;
	color: var(--clr-primary);
	float: none;
	margin: 0;
	padding: 3px 7px;
	font-weight: 600;
	font-size: 12px;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	transition: all 0.2s ease;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice:hover {
	background-color: #d4b5f0;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
	color: var(--clr-primary);
	cursor: pointer;
	display: inline-block;
	font-weight: bold;
	margin-right: 0;
	font-size: 15px;
	line-height: 1;
	transition: color 0.2s ease;
	order: 2;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
	color: #dc2626;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__display {
	cursor: default;
	padding-left: 0;
	padding-right: 0;
}

.select2-container--default .select2-search--inline {
	float: none;
	display: inline-block;
	margin: 0;
}

.select2-container--default .select2-search--inline .select2-search__field {
	box-sizing: border-box;
	border: none;
	font-size: 13px;
	margin: 0;
	padding: 5px 0;
	background: transparent;
	color: #1e293b;
	outline: none;
	min-width: 100px;
}

.select2-container--default .select2-search--inline .select2-search__field::placeholder {
	color: var(--clr-primary);
	font-size: 13px;
	font-weight: 400;
}

.select2-container--default .select2-search--inline .select2-search__field::-webkit-search-cancel-button {
	-webkit-appearance: none;
}

/* Dropdown */
.select2-dropdown {
	background-color: var(--clr-white);
	border: 2px solid var(--clr-primary);
	border-radius: 10px;
	box-sizing: border-box;
	left: -100000px;
	width: 100%;
	z-index: 1051;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
	animation: dropdownSlideIn 0.2s ease;
}

.select2-container--open .select2-dropdown {
	left: 0;
}

/* Dropdown below — flush connection to select field */
.select2-container--open .select2-dropdown--below {
	border-top: 2px solid var(--clr-primary);
	border-top-left-radius: 0;
	border-top-right-radius: 0;
	border-bottom-left-radius: 10px;
	border-bottom-right-radius: 10px;
	margin-top: 0;
}

/* Dropdown above — flush connection to select field */
.select2-container--open .select2-dropdown--above {
	border-bottom: 2px solid var(--clr-primary);
	border-top-left-radius: 10px;
	border-top-right-radius: 10px;
	border-bottom-left-radius: 0;
	border-bottom-right-radius: 0;
	margin-top: 0;
	margin-bottom: 4px;
}

.select2-search--dropdown {
	display: block;
	padding: 10px;
	background: var(--clr-surface);
	border-bottom: 1px solid #e2e8f0;
}

.select2-container--open .select2-dropdown--above .select2-search--dropdown {
	border-top-left-radius: 10px;
	border-top-right-radius: 10px;
}

.select2-search--dropdown .select2-search__field {
	padding: 7px 10px;
	width: 100%;
	box-sizing: border-box;
	border: 2px solid #e2e8f0;
	border-radius: 8px;
	outline: none;
	font-size: 13px;
	color: #1e293b;
	background: var(--clr-white);
	transition: all 0.2s ease;
}

.select2-search--dropdown .select2-search__field:focus {
	border-color: var(--clr-primary);
	box-shadow: 0 0 0 3px rgba(92, 45, 144, 0.1);
}

.select2-search--dropdown .select2-search__field::placeholder {
	color: #94a3b8;
}

.select2-search--dropdown .select2-search__field::-webkit-search-cancel-button {
	-webkit-appearance: none;
}

.select2-search--dropdown.select2-search--hide {
	display: none;
}

.select2-results {
	display: block;
}

.select2-results__options {
	list-style: none;
	margin: 0;
	padding: 6px 0;
	max-height: 260px;
	overflow-y: auto;
	scrollbar-width: thin;
	scrollbar-color: rgba(92, 45, 144, 0.3) transparent;
}

.select2-results__options::-webkit-scrollbar {
	width: 5px;
}

.select2-results__options::-webkit-scrollbar-track {
	background: transparent;
}

.select2-results__options::-webkit-scrollbar-thumb {
	background: rgba(92, 45, 144, 0.3);
	border-radius: 3px;
}

.select2-results__options::-webkit-scrollbar-thumb:hover {
	background: rgba(92, 45, 144, 0.5);
}

.select2-results__option {
	padding: 8px 14px;
	user-select: none;
	-webkit-user-select: none;
	font-size: 13px;
	color: #1e293b;
	cursor: pointer;
	transition: all 0.15s ease;
}

.select2-results__option[aria-selected] {
	cursor: pointer;
}

.select2-results__option[aria-disabled=true] {
	color: #94a3b8;
	cursor: not-allowed;
	background: transparent;
}

.select2-results__option--highlighted[aria-selected] {
	background-color: var(--clr-primary-tint);
	color: var(--clr-primary);
}

.select2-results__option[aria-selected=true] {
	background-color: var(--clr-primary-muted);
	color: var(--clr-primary);
	font-weight: 600;
}

.select2-results__option[aria-selected=true]:hover {
	background-color: #d4b5f0;
}

.select2-results__option.loading-results {
	padding: 16px;
	text-align: center;
	color: #64748b;
	font-style: italic;
}

.select2-results__message {
	padding: 16px;
	text-align: center;
	color: #64748b;
	font-style: italic;
}

.select2-container--default.select2-container--disabled .select2-selection--single,
.select2-container--default.select2-container--disabled .select2-selection--multiple {
	background-color: #f1f5f9;
	cursor: not-allowed;
	opacity: 0.6;
}

.select2-container--default.select2-container--disabled .select2-selection__choice__remove {
	display: none;
}

.select2-hidden-accessible {
	border: 0 !important;
	clip: rect(0 0 0 0) !important;
	height: 1px !important;
	margin: -1px !important;
	overflow: hidden !important;
	padding: 0 !important;
	position: absolute !important;
	width: 1px !important;
}

.select2-close-mask {
	border: 0;
	margin: 0;
	padding: 0;
	display: block;
	position: fixed;
	left: 0;
	top: 0;
	min-height: 100%;
	min-width: 100%;
	height: auto;
	width: auto;
	opacity: 0;
	z-index: 99;
	background-color: #000;
	filter: alpha(opacity=0);
}

.filter-group .select2-container {
	width: 100% !important;
}

.filter-group .select-wrapper {
	position: relative;
	width: 100%;
}

.filter-group .select-wrapper .select-icon {
	display: none;
}

.select2-container--default .select2-selection--single:focus-visible,
.select2-container--default .select2-selection--multiple:focus-visible {
	outline: 2px solid var(--clr-primary);
	outline-offset: 2px;
}

.select2-selection__clear {
	transition: transform 0.2s ease;
}

.select2-selection__clear:hover {
	transform: scale(1.1);
}

input.filter-input.date-input.form-control.input::placeholder,
input.filter-input.date-input-from.form-control.input::placeholder,
input.filter-input.date-input-to.form-control.input::placeholder {
    color: var(--clr-primary);
    font-size: 13px;
    font-weight: 500;
}

/* -----------------------------------------------------------------------------
   4.13 Checkboxes (Custom Variants)
----------------------------------------------------------------------------- */

.input-group-checkbox {
	display: flex;
	align-items: center;
	justify-content: center;
}

.checkbox-label {
	display: flex;
	align-items: center;
	margin: 0;
	padding: 0;
	font-size: 12px;
	color: #475569;
	cursor: pointer;
	user-select: none;
	font-weight: 500;
}

.checkbox-label input[type="checkbox"] {
	width: 13px;
	height: 13px;
	margin-right: 7px;
	cursor: pointer;
	accent-color: var(--clr-primary);
	border-radius: 4px;
}

.filter-checkbox {
	display: flex;
	flex-direction: column;
	gap: 7px;
	justify-content: center;
	min-height: 38px;
	cursor: pointer;
	height: 0;
	width: 0;
	margin-left: 5px;
}

.checkbox-wrapper {
	display: flex;
	align-items: center;
	position: relative;
	cursor: pointer;
	user-select: none;
}

.checkbox-label-custom {
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	margin: 0;
	padding: 0;
	transition: all 0.2s ease;
}

.checkbox-icon {
	position: relative;
	width: 18px;
	height: 18px;
	background: var(--clr-surface);
	border: 2px solid #e2e8f0;
	border-radius: 5px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
	flex-shrink: 0;
}

.checkbox-icon i {
	color: var(--clr-white);
	font-size: 11px;
	opacity: 0;
	transform: scale(0.5);
	transition: all 0.2s ease;
}

.checkbox-icon::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 0;
	height: 0;
	border-radius: 50%;
	background: rgba(92, 45, 144, 0.2);
	transform: translate(-50%, -50%);
	transition: width 0.3s ease, height 0.3s ease;
}

.checkbox-text {
	font-size: 13px;
	font-weight: 500;
	color: #334155;
	transition: color 0.2s ease;
}

.checkbox-wrapper:hover .checkbox-icon {
	border-color: #cbd5e1;
	background: var(--clr-white);
}

.checkbox-wrapper:hover .checkbox-text {
	color: var(--clr-primary);
}

.radio-toggle {
	display: flex;
	gap: 10px;
	background: #f3f4f6;
	padding: 5px;
	border-radius: 30px;
}

.radio-wrapper {
	position: relative;
}

.radio-input {
	display: none;
}

.radio-label {
	padding: 6px 16px;
	border-radius: 20px;
	cursor: pointer;
	font-weight: 500;
	color: #555;
}

.radio-input:checked+.radio-label {
	background: #6f42c1;
	/* purple like your button */
	color: #fff;
}

.hidden {
	display: none !important;
}

.filter-checkbox:focus+.checkbox-label-custom .checkbox-icon {
	border-color: var(--clr-primary);
	box-shadow: 0 0 0 3px rgba(92, 45, 144, 0.1);
}

.filter-checkbox:checked+.checkbox-label-custom .checkbox-icon {
	background: var(--clr-primary);
	border-color: var(--clr-primary);
}

.filter-checkbox:checked+.checkbox-label-custom .checkbox-icon i {
	opacity: 1;
	transform: scale(1);
}

.filter-checkbox:checked+.checkbox-label-custom .checkbox-text {
	color: var(--clr-primary);
	font-weight: 600;
}

.filter-checkbox:checked+.checkbox-label-custom:hover .checkbox-icon {
	background: var(--clr-primary-dark);
	border-color: var(--clr-primary-dark);
}

.filter-checkbox:disabled+.checkbox-label-custom {
	cursor: not-allowed;
	opacity: 0.5;
}

.filter-checkbox:disabled+.checkbox-label-custom .checkbox-icon {
	background: #f1f5f9;
	border-color: #e2e8f0;
}

.filter-checkbox:active+.checkbox-label-custom .checkbox-icon::after {
	width: 36px;
	height: 36px;
}

.checkbox-group {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.checkbox-group-horizontal {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	gap: 14px;
}

.checkbox-label-with-desc {
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.checkbox-description {
	font-size: 11.5px;
	color: #64748b;
	padding-left: 28px;
	line-height: 1.4;
}

.filter-row .filter-checkbox {
	align-self: center;
}

.filter-group.filter-checkbox-full {
	grid-column: 1 / -1;
}

/* Variant 1 */
.checkbox-wrapper-1 {
	display: flex;
	align-items: center;
	margin-bottom: 0.9rem;
}

.checkbox-wrapper-1 input[type="checkbox"] {
	appearance: none;
	width: 18px;
	height: 18px;
	border: 2px solid #d1d5db;
	border-radius: 4px;
	cursor: pointer;
	position: relative;
	transition: all 0.2s ease;
	background: white;
}

.checkbox-wrapper-1 input[type="checkbox"]:hover {
	border-color: #3b82f6;
}

.checkbox-wrapper-1 input[type="checkbox"]:checked {
	background: #3b82f6;
	border-color: #3b82f6;
}

.checkbox-wrapper-1 input[type="checkbox"]:checked::after {
	content: '';
	position: absolute;
	left: 5px;
	top: 2px;
	width: 5px;
	height: 9px;
	border: solid white;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.checkbox-wrapper-1 label {
	margin-left: 0.5rem;
	cursor: pointer;
	user-select: none;
	color: #374151;
	font-size: 13px;
}

/* Variant 2 */
.checkbox-wrapper-2 {
	display: flex;
	align-items: center;
	margin-bottom: 0.9rem;
}

.checkbox-wrapper-2 input[type="checkbox"] {
	appearance: none;
	width: 20px;
	height: 20px;
	border: 2px solid #cbd5e1;
	border-radius: 50%;
	cursor: pointer;
	position: relative;
	transition: all 0.3s ease;
	background: white;
}

.checkbox-wrapper-2 input[type="checkbox"]:hover {
	border-color: #10b981;
	transform: scale(1.05);
}

.checkbox-wrapper-2 input[type="checkbox"]:checked {
	background: #10b981;
	border-color: #10b981;
}

.checkbox-wrapper-2 input[type="checkbox"]:checked::after {
	content: '';
	position: absolute;
	left: 5px;
	top: 2px;
	width: 5px;
	height: 9px;
	border: solid white;
	border-width: 0 2.5px 2.5px 0;
	transform: rotate(45deg);
}

.checkbox-wrapper-2 label {
	margin-left: 0.65rem;
	cursor: pointer;
	user-select: none;
	color: #1f2937;
	font-size: 13px;
}

/* Variant 3 */
.checkbox-wrapper-3 {
	display: flex;
	align-items: center;
	margin-bottom: 0.9rem;
}

.checkbox-wrapper-3 input[type="checkbox"] {
	appearance: none;
	width: 44px;
	height: 24px;
	background: #cbd5e1;
	border-radius: 12px;
	cursor: pointer;
	position: relative;
	transition: all 0.3s ease;
}

.checkbox-wrapper-3 input[type="checkbox"]::before {
	content: '';
	position: absolute;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: white;
	top: 3px;
	left: 3px;
	transition: all 0.3s ease;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.checkbox-wrapper-3 input[type="checkbox"]:checked {
	background: #8b5cf6;
}

.checkbox-wrapper-3 input[type="checkbox"]:checked::before {
	left: 23px;
}

.checkbox-wrapper-3 label {
	margin-left: 0.65rem;
	cursor: pointer;
	user-select: none;
	color: #374151;
	font-size: 13px;
}

/* Variant 4 */
.checkbox-wrapper-4 {
	display: flex;
	align-items: center;
	margin-bottom: 0.9rem;
}

.checkbox-wrapper-4 input[type="checkbox"] {
	appearance: none;
	width: 18px;
	height: 18px;
	border: 2px solid #9ca3af;
	border-radius: 2px;
	cursor: pointer;
	position: relative;
	transition: all 0.15s ease;
	background: white;
}

.checkbox-wrapper-4 input[type="checkbox"]:hover {
	border-color: #ef4444;
	box-shadow: 0 0 0 7px rgba(239, 68, 68, 0.1);
}

.checkbox-wrapper-4 input[type="checkbox"]:checked {
	background: #ef4444;
	border-color: #ef4444;
	animation: check-bounce 0.3s ease;
}

.checkbox-wrapper-4 input[type="checkbox"]:checked::after {
	content: '';
	position: absolute;
	left: 4px;
	top: 1px;
	width: 6px;
	height: 10px;
	border: solid white;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.checkbox-wrapper-4 label {
	margin-left: 0.65rem;
	cursor: pointer;
	user-select: none;
	color: #1f2937;
	font-size: 13px;
}

/* Variant 5 */
.checkbox-wrapper-5 {
	margin-bottom: 0.9rem;
}

.checkbox-wrapper-5 input[type="checkbox"] {
	display: none;
}

.checkbox-wrapper-5 label {
	display: flex;
	align-items: center;
	padding: 0.6rem 0.85rem;
	border: 2px solid #e5e7eb;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.2s ease;
	user-select: none;
	color: #374151;
	font-size: 13px;
}

.checkbox-wrapper-5 label:hover {
	border-color: #f59e0b;
	background: #fffbeb;
}

.checkbox-wrapper-5 input[type="checkbox"]:checked+label {
	border-color: #f59e0b;
	background: #fef3c7;
}

.checkbox-wrapper-5 label::before {
	content: '';
	width: 18px;
	height: 18px;
	border: 2px solid #d1d5db;
	border-radius: 4px;
	margin-right: 0.65rem;
	transition: all 0.2s ease;
	flex-shrink: 0;
}

.checkbox-wrapper-5 input[type="checkbox"]:checked+label::before {
	background: #f59e0b;
	border-color: #f59e0b;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='10' viewBox='0 0 12 10'%3E%3Cpolyline points='1.5 6 4.5 9 10.5 1' fill='none' stroke='white' stroke-width='2'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
}

input[type="checkbox"]:disabled {
	cursor: not-allowed;
	opacity: 0.5;
}

label:has(input[type="checkbox"]:disabled) {
	cursor: not-allowed;
	opacity: 0.6;
}

/* -----------------------------------------------------------------------------
   4.14 Filter Panel
----------------------------------------------------------------------------- */
.filter-wrapper {
	background: #fff;
	overflow: hidden;
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	opacity: 1;
	transform: translateY(0);
	will-change: max-height;
}

.filter-wrapper.filter-hidden {
	max-height: 0;
	margin-bottom: 0;
	opacity: 0;
	transform: translateY(-8px);
	pointer-events: none;
	border-width: 0;
}

.filter-wrapper.filter-visible {
	max-height: 2000px;
	opacity: 1;
	margin-left: 3px;
	transform: translateY(0);
	pointer-events: auto;
}

.filter-wrapper,
.filter-body,
.filter-toggle i {
	will-change: transform;
	transform: translateZ(0);
	backface-visibility: hidden;
}

.filter-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 8px 18px 8px 20px;
	user-select: none;
	transition: background 0.3s ease;
	flex-wrap: wrap;
}

.filter-title {
	font-size: 15px;
	font-weight: 650;
	color: var(--clr-primary);
	margin: 0;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 8px;
	position: relative;
}

.filter-title i {
	font-size: 14px;
}

.filter-count-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	height: 20px;
	padding: 0 6px;
	background: var(--clr-primary);
	color: var(--clr-white);
	border-radius: 10px;
	font-size: 11px;
	font-weight: 700;
	margin-left: 3px;
	animation: badgePop 0.3s ease;
}

.filter-toggle {
	background: var(--clr-white);
	border: 2px solid var(--clr-primary);
	border-radius: 50%;
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.3s ease;
	color: var(--clr-primary);
}

.filter-toggle:hover {
	background: var(--clr-primary);
	color: var(--clr-white);
	transform: scale(1.05);
}

.filter-toggle:focus {
	outline: 2px solid var(--clr-primary);
	outline-offset: 2px;
}

.filter-toggle i {
	transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-wrapper.filter-collapsed .filter-toggle i {
	transform: rotate(180deg);
}

.filter-body {
	padding: 4px 20px;
	background: var(--clr-white);
	max-height: 2000px;
	opacity: 1;
	transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
		padding 0.4s cubic-bezier(0.4, 0, 0.2, 1),
		opacity 0.3s ease 0.1s;
	overflow: hidden;
	will-change: max-height, padding;
}

.filter-wrapper.filter-collapsed .filter-body {
	max-height: 0;
	padding: 0 20px;
}

.filter-row {
	display: grid;
	grid-template-columns: repeat(auto-fit, 295px);
	gap: 14px;
	background: var(--clr-primary-pale);
	margin-bottom: 18px;
	padding: 16px;
	border-radius: 15px;
}

.filter-group {
	display: flex;
	flex-direction: column;
	gap: 6px;
	opacity: 1;
	transform: translateY(0);
	transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Stagger animation */
.filter-wrapper.filter-visible .filter-group {
	animation: filterSlideIn 0.4s ease forwards;
}

.filter-wrapper.filter-visible .filter-group:nth-child(1) {
	animation-delay: 0.05s;
}

.filter-wrapper.filter-visible .filter-group:nth-child(2) {
	animation-delay: 0.1s;
}

.filter-wrapper.filter-visible .filter-group:nth-child(3) {
	animation-delay: 0.15s;
}

.filter-wrapper.filter-visible .filter-group:nth-child(4) {
	animation-delay: 0.2s;
}

.filter-wrapper.filter-visible .filter-group:nth-child(5) {
	animation-delay: 0.25s;
}

.filter-wrapper.filter-visible .filter-group:nth-child(6) {
	animation-delay: 0.3s;
}

.filter-wrapper.filter-visible .filter-group:nth-child(7) {
	animation-delay: 0.35s;
}

.filter-wrapper.filter-visible .filter-group:nth-child(8) {
	animation-delay: 0.4s;
}

.filter-wrapper.filter-visible .filter-group:nth-child(9) {
	animation-delay: 0.45s;
}

.filter-wrapper.filter-visible .filter-group:nth-child(10) {
	animation-delay: 0.5s;
}

.filter-label {
	font-size: 12.5px;
	font-weight: 600;
	color: #334155;
	margin: 0;
}

.select-wrapper {
	position: relative;
}

.filter-input {
	width: 100%;
	height: 38px;
	padding: 8px 12px;
	font-size: 13px;
	color: #1e293b;
	background: var(--clr-surface);
	border: 2px solid #e2e8f0;
	border-radius: 8px;
	outline: none;
	transition: all 0.2s ease;
	font-family: inherit;
}

.filter-input:focus {
	background: var(--clr-white);
	border-color: var(--clr-primary);
	box-shadow: 0 0 0 3px rgba(92, 45, 144, 0.1);
}

.filter-input:hover:not(:focus) {
	border-color: #cbd5e1;
	background: var(--clr-white);
}

.date-input-wrapper {
	position: relative;
}

.date-input {
	padding-right: 36px;
	cursor: pointer;
}

.date-icon {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	color: #64748b;
	pointer-events: none;
	font-size: 14px;
}

.filter-input:focus~.date-icon {
	color: var(--clr-primary);
}

.filter-right {
	display: flex;
	align-items: center;
	gap: 10px;
}

.filter-actions {
	display: flex;
	gap: 10px;
	align-items: center;
	opacity: 1;
	transform: translateY(0);
	transition: opacity 0.3s ease 0.5s, transform 0.3s ease 0.5s;
}

/* -----------------------------------------------------------------------------
   4.15 Report Cards
----------------------------------------------------------------------------- */
.report-card {
	cursor: pointer;
	max-height: 68px;
	display: flex;
	flex-direction: row;
	justify-content: center;
	background: var(--clr-primary-light)26;
	transition: all 0.3s ease;
}

.report-card .card-body {
	display: flex;
	flex-direction: row;
	align-items: center;
	text-align: center;
	gap: 9px;
}

.report-card .card-icon {
	font-size: 22px;
	color: #5C2D91;
	transition: transform 0.3s ease;
}

.report-card .card-title {
	color: #5C2D91;
	font-size: 13px;
	font-weight: 600;
	margin: 0;
}

.report-card:hover {
	background: var(--clr-primary-muted);
	transform: translateY(-4px);
	box-shadow: 0 6px 16px rgba(107, 76, 154, 0.2);
}

.report-card:hover .card-icon {
	transform: scale(1.1);
}

.report-card.active {
	background: #5C2D91;
	border-color: #5C2D91;
}

.report-card.active .card-icon,
.report-card.active .card-title {
	color: var(--clr-white);
}

a.report-card {
	text-decoration: none;
	color: inherit;
}

a.report-card:hover {
	text-decoration: none;
}

.report-card.search-hidden {
	display: none;
}

.report-category-section {
	margin-bottom: 26px;
	transition: opacity 0.3s ease;
}

.report-category-section .section-title {
	display: flex;
	align-items: center;
	color: var(--clr-primary);
	margin-bottom: 16px;
}

.report-category-section .section-title iconify-icon {
	color: var(--clr-primary);
}

.no-results {
	text-align: center;
	padding: 48px 16px;
	color: #94a3b8;
}

.no-results i {
	font-size: 42px;
	margin-bottom: 13px;
	opacity: 0.5;
}

.no-results h3 {
	font-size: 16px;
	font-weight: 600;
	color: #475569;
	margin-bottom: 7px;
}

.no-results p {
	font-size: 13px;
	color: #64748b;
}

.report-loading {
	text-align: center;
	padding: 32px;
	color: #64748b;
}

.report-loading i {
	font-size: 28px;
	animation: spin 1s linear infinite;
}

/* -----------------------------------------------------------------------------
   4.16 Stat Cards
----------------------------------------------------------------------------- */
.stat-card {
	background: linear-gradient(135deg, #f5f0fb 0%, var(--clr-white) 100%);
	border-left: 4px solid var(--clr-primary);
}

.stat-card .card-header {
	margin-bottom: 16px;
}

.stat-card .card-title {
	font-size: 12.5px;
	font-weight: 600;
	color: #64748b;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.stat-value {
	font-size: 28px;
	font-weight: 700;
	color: var(--clr-primary);
	margin: 0;
	line-height: 1;
}

.stat-label {
	font-size: 12.5px;
	color: #64748b;
	margin: 9px 0 0 0;
}

.stat-trend {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	font-size: 12px;
	font-weight: 600;
	padding: 3px 7px;
	border-radius: 4px;
	margin-top: 6px;
}

.stat-trend i {
	font-size: 11px;
}

.stat-trend.positive {
	background: #dcfce7;
	color: #16a34a;
}

.stat-trend.negative {
	background: #fee2e2;
	color: #dc2626;
}

/* -----------------------------------------------------------------------------
   4.17 Info-Stats Component
----------------------------------------------------------------------------- */
.info-stats-container {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 18px;
	justify-content: center;
	padding: 16px 16px 8px 16px;
	background: #fff;
	width: 100%;
	cursor: default;
	pointer-events: none;
}

.info-stats-group {
	display: flex;
	align-items: center;
	gap: 18px;
	border-radius: 14px;
	padding: 18px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	width: auto;
	overflow: hidden;
}

.info-stats-group--violet {
	background: #FEF1FD;
}

.info-stats-group--white {
	background: var(--clr-white);
	border: 1px solid #f0f0f0;
}

.info-stats-group--grey {
	background: #f5f5f7;
}

.info-stats-group--light {
	background: #fafafa;
}

.info-stats-item {
	text-align: center;
	padding: 8px 14px;
	transition: transform 0.2s ease;
	position: relative;
	cursor: pointer;
}

.info-stats-item:hover {
	transform: translateY(-2px);
}

.info-stats-item:not(:last-child)::after {
	content: '';
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	height: 60%;
	width: 1px;
	background: rgba(0, 0, 0, 0.1);
}

.info-stats-group--violet .info-stats-item:not(:last-child)::after {
	background: rgba(147, 51, 234, 0.15);
}

.info-stats-group--white .info-stats-item:not(:last-child)::after {
	background: #e5e7eb;
	border: 0.6px solid var(--clr-primary)
}

.info-stats-group--grey .info-stats-item:not(:last-child)::after {
	background: #d1d5db;
}

.info-stats-label {
	display: block;
	font-size: 12.5px;
	font-weight: 500;
	color: #6b7280;
	margin-bottom: 6px;
	text-transform: capitalize;
	letter-spacing: 0.2px;
}

.info-stats-value {
	display: block;
	font-size: 20px;
	font-weight: 650;
	line-height: 1.1;
	color: #111827;
}

.info-stats-value--primary {
	color: #111827;
}

.info-stats-value--success {
	color: #10b981;
}

.info-stats-value--danger {
	color: #ef4444;
}

.info-stats-value--warning {
	color: #f59e0b;
}

.info-stats-value--info {
	color: #3b82f6;
}

.info-stats-value--purple {
	color: #9333ea;
}

.info-stats-value.black {
	color: #111827;
}

.info-stats-value.red {
	color: #ef4444;
}

/* Split layout */
.info-stats-split-container {
	background: linear-gradient(135deg, #ffeef8 0%, #f3e7ff 100%);
	border-radius: 18px;
	padding: 12px 16px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	width: auto;
	align-items: center;
}

.info-stats-split-wrapper {
	display: flex;
	gap: 36px;
	justify-content: center;
	flex-wrap: wrap;
}

.info-stats-split-left {
	width: auto;
	display: flex;
	align-items: center;
	gap: 36px;
	justify-content: center;
	background: transparent;
	border-radius: 10px;
	overflow: hidden;
}

.info-stats-split-left .info-stats-item {
	background: transparent;
}

.info-stats-split-left .info-stats-item:not(:last-child)::after {
	background: rgba(255, 255, 255, 0.4);
}

.info-stats-split-right {
	width: auto;
	display: flex;
	gap: 36px;
	justify-content: center;
	background: #fff;
	border-radius: 10px;
	overflow: hidden;
	padding: 0 22px;
}

.info-stats-split-right .info-stats-item {
	background: var(--clr-white);
	padding: 18px;
}

.info-stats-split-right .info-stats-item:not(:last-child)::after {
	background: rgba(208, 192, 216, 0.3);
}

/* Compact modifier */
.info-stats-group--compact .info-stats-item {
	padding: 10px 14px;
}

.info-stats-group--compact .info-stats-label {
	font-size: 12px;
	margin-bottom: 4px;
}

.info-stats-group--compact .info-stats-value {
	font-size: 18px;
}

/* Utility modifiers */
.info-stats-group--full {
	flex: 1 1 100%;
	min-width: 100%;
}

.info-stats-group--no-shadow {
	box-shadow: none;
}

.info-stats-group--bordered {
	border: 2px solid #e5e7eb;
}

.info-stats-group--equal .info-stats-item {
	flex: 1 1 0;
	min-width: 0;
}

.info-stats-group--hoverable {
	transition: all 0.3s ease;
	cursor: pointer;
}

.info-stats-group--hoverable:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

/* -----------------------------------------------------------------------------
   4.18 Step Wizard
----------------------------------------------------------------------------- */
.step-wizard {
	margin-bottom: 26px;
}

.step-wizard-nav {
	display: flex;
	justify-content: space-between;
	margin-bottom: 30px;
	position: relative;
}

.step-wizard-nav::before {
	content: '';
	position: absolute;
	top: 19px;
	left: 10%;
	right: 10%;
	height: 2px;
	background: #e2e8f0;
	z-index: 0;
}

.step-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	flex: 1;
	position: relative;
	z-index: 1;
}

.step-circle {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: #e2e8f0;
	color: #64748b;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 15px;
	transition: all 0.3s ease;
	border: 3px solid var(--clr-white);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.step-item.active .step-circle {
	background: linear-gradient(135deg, #6f42c1 0%, var(--clr-primary) 100%);
	color: var(--clr-white);
	transform: scale(1.1);
}

.step-item.completed .step-circle {
	background: #10b981;
	color: var(--clr-white);
}

.step-label {
	margin-top: 9px;
	font-size: 12px;
	font-weight: 600;
	color: #64748b;
	text-align: center;
}

.step-item.active .step-label {
	color: var(--clr-primary);
}

.step-content {
	display: none;
}

.step-content.active {
	display: block;
	animation: fadeIn 0.3s ease;
}

.step-actions {
	display: flex;
	justify-content: space-between;
	margin-top: 24px;
	padding-top: 18px;
	border-top: 2px solid #f1f5f9;
}

/* -----------------------------------------------------------------------------
   4.19 Ticket Detail
----------------------------------------------------------------------------- */
.ticket-header {
	background: var(--clr-white);
	padding: 14px 18px 6px;
	border-bottom: 3px solid var(--clr-primary);
	border-radius: 12px 12px 0 0;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 16px;
}

.ticket-header-left {
	display: flex;
	align-items: center;
	gap: 13px;
}

.back-btn {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--clr-surface);
	border: 2px solid #e2e8f0;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.2s ease;
	color: var(--clr-primary);
}

.back-btn:hover {
	background: var(--clr-primary);
	color: var(--clr-white);
	border-color: var(--clr-primary);
}

.ticket-title-block h1 {
	font-size: 20px;
	color: var(--clr-primary);
	font-weight: 650;
	margin-bottom: 2px;
}

.ticket-subtitle {
	font-size: 12.5px;
	color: #64748b;
}

.ticket-header-actions {
	display: flex;
	gap: 10px;
	width: 260px;
	justify-content: space-between;
}

.ticket-note-header-actions {
	display: flex;
	gap: 10px;
	width: 90px;
	justify-content: space-between;
}

.ticket-content {
	display: grid;
	grid-template-columns: 1fr 320px;
	gap: 12px;
	padding: 13px;
}

.ticket-main {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.ticket-sidebar {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.ticket-card {
	background: var(--clr-white);
	border-radius: 10px;
	padding: 16px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.ticket-card-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 12px;
	padding-bottom: 10px;
	border-bottom: 2px solid #f1f5f9;
}

.ticket-card-title {
	font-size: 15px;
	font-weight: 650;
	color: #1e293b;
	display: flex;
	align-items: center;
	gap: 8px;
}

.ticket-card-title i {
	color: var(--clr-primary);
}

.ticket-info-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 15px;
}

.info-item {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.info-label {
	font-size: 11.5px;
	font-weight: 600;
	color: #64748b;
	text-transform: uppercase;
	letter-spacing: 0.4px;
}

.info-value {
	font-size: 13.5px;
	color: #1e293b;
	font-weight: 500;
}

.description-section {
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid #e2e8f0;
}

.description-header {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 10px;
}

.description-title {
	font-size: 14px;
	font-weight: 650;
	color: #475569;
	display: flex;
	align-items: center;
	gap: 7px;
}

.description-title i {
	color: var(--clr-primary);
	font-size: 13px;
}

.ticket-description-content {
	font-size: 13px;
	line-height: 1.7;
	color: #475569;
	background: var(--clr-surface);
	padding: 13px;
	border-radius: 8px;
}

/* Timeline */
.timeline {
	position: relative;
	padding-left: 28px;
}

.timeline::before {
	content: '';
	position: absolute;
	left: 8px;
	top: 6px;
	bottom: 0;
	width: 3px;
	background: #e2e8f0;
}

.timeline-item {
	position: relative;
	margin-bottom: 20px;
}

.timeline-item::before {
	content: '';
	position: absolute;
	left: -25px;
	top: 6px;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: var(--clr-white);
	border: 3px solid var(--clr-primary);
	z-index: 1;
}

.timeline-item.completed::before {
	background: #10b981;
	border-color: #10b981;
}

.timeline-item.pending::before {
	background: var(--clr-white);
	border-color: #cbd5e1;
}

.timeline-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 7px;
}

.timeline-status {
	font-size: 13.5px;
	font-weight: 650;
	color: #1e293b;
}

.timeline-date {
	font-size: 12.5px;
	font-style: italic;
	color: #64748b;
}

.timeline-user {
	font-size: 13px;
	color: #64748b;
	margin-bottom: 3px;
}

.timeline-note {
	font-size: 13px;
	color: #475569;
	background: var(--clr-surface);
	padding: 10px;
	border-radius: 6px;
	margin-top: 7px;
}

.ticket-quick-info-card {
	background: linear-gradient(135deg, #f5f0fb 0%, var(--clr-white) 100%);
	border-left: 4px solid var(--clr-primary);
	padding: 10px;
	border-radius: 8px;
}

.ticket-card-group {
	display: flex;
	justify-content: space-between;
	padding: 8px;
}

.ticket-quick-info-label {
	font-size: 11.5px;
	font-weight: 600;
	color: #64748b;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 7px;
}

.quick-info-value {
	font-size: 15px;
	font-weight: 700;
	color: var(--clr-primary);
}

.ticket-action-buttons {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	align-items: stretch;
}

.ticket-action-buttons .btn,
.ticket-action-buttons .btn-secondary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 120px;
	padding: 4px 12px;
	border-radius: 10px;
	font-size: 12px;
	font-weight: 600;
	white-space: nowrap;
	transition: all 0.2s ease;
	cursor: pointer;
}

.ticket-notes-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.ticket-note-item {
	background: var(--clr-surface);
	padding: 12px;
	border-radius: 8px;
	border-left: 3px solid var(--clr-primary);
}

.ticket-note-header {
	display: flex;
	justify-content: space-between;
	margin-bottom: 7px;
}

.ticket-note-user {
	font-size: 12.5px;
	font-weight: 600;
	color: #1e293b;
}

.ticket-note-date {
	font-size: 11.5px;
	color: #64748b;
}

.ticket-note-content {
	font-size: 13px;
	color: #475569;
	line-height: 1.6;
}

.ticket-logs-table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 0.9rem;
}

.ticket-logs-table thead {
	background: var(--clr-bg);
}

.ticket-logs-table th {
	padding: 10px;
	text-align: left;
	font-weight: 600;
	border-bottom: 2px solid #ddd;
	font-size: 13px;
}

.ticket-logs-table td {
	padding: 7px;
	border-bottom: 1px solid #eee;
	vertical-align: top;
	font-size: 13px;
}

.ticket-logs-table tbody tr:hover {
	background: #f9f9f9;
}

.ticket-logs-table .empty-state {
	text-align: center;
	padding: 1.6rem;
}

.note-cell {
	max-width: 380px;
	word-wrap: break-word;
}

.ticket-attachments-card {
	background: var(--clr-white);
	border-radius: 10px;
	padding: 20px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.ticket-attachments-list {
	display: flex;
	flex-wrap: wrap;
	gap: 13px;
}

.attachment-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	background: var(--clr-surface);
	border-radius: 10px;
	border: 2px solid #e2e8f0;
	overflow: hidden;
	transition: all 0.3s ease;
	cursor: pointer;
	max-width: 220px;
	height: 140px;
}

.attachment-item:hover {
	border-color: var(--clr-primary);
	box-shadow: 0 4px 12px rgba(92, 45, 144, 0.15);
	transform: translateY(-2px);
}

.attachment-preview {
	width: 140px !important;
	height: 66px;
	align-items: center;
	background: var(--clr-white);
}

.attachment-preview-image {
	background: var(--clr-surface);
}

.attachment-preview-icon {
	display: flex;
	align-items: center;
	justify-content: center;
}

.attachment-preview-icon i {
	font-size: 34px;
	line-height: 1;
	background-image: linear-gradient(135deg, var(--clr-primary) 0%, #7c3aed 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}

.attachment-item:hover .attachment-preview-icon i {
	transform: translateY(-1px);
}

.attachment-thumbnail {
	width: 100%;
	height: 100%;
	object-fit: contain;
	cursor: pointer;
	transition: transform 0.3s ease;
}

.attachment-info {
	padding: 10px 12px;
	display: flex;
	width: 100%;
	flex-direction: column;
	gap: 2px;
	background: var(--clr-white);
}

.attachment-name {
	font-size: 11px;
	font-weight: 600;
	text-align: center;
	color: #1e293b;
	line-height: 1.4;
}

.attachment-actions {
	flex-direction: column;
	display: flex;
	gap: 6px;
	margin-top: 3px;
}

.attachment-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 3px;
	flex: 1;
	padding: 5px 8px;
	font-size: 11px;
	font-weight: 600;
	color: var(--clr-primary);
	background: #f1f5f9;
	border: none;
	border-radius: 6px;
	text-decoration: none;
	transition: all 0.2s ease;
	cursor: pointer;
}

.attachment-link:hover {
	background: var(--clr-primary);
	color: var(--clr-white);
	transform: translateY(-1px);
}

.attachment-link i {
	font-size: 10px;
}

.attachment-view-btn {
	background: #ddd6fe;
	color: var(--clr-primary);
}

.attachment-view-btn:hover {
	background: var(--clr-primary);
	color: var(--clr-white);
}

.viewer-backdrop {
	background-color: rgba(0, 0, 0, 0.9);
}

.viewer-button {
	background-color: rgba(92, 45, 144, 0.8);
	border-radius: 6px;
}

.viewer-button:hover {
	background-color: var(--clr-primary);
}

.viewer-title {
	color: var(--clr-white);
	font-weight: 600;
}


/* =============================================================================
   Region Switcher — Login Page Component
============================================================================= */

.region-switcher-bar {
	display: flex;
	justify-content: center;
	margin-bottom: 18px;
	margin-top: -6px;
}

.region-switcher-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 16px 7px 12px;
	background: var(--clr-primary-pale);
	border: 1.5px solid #d4b5f0;
	border-radius: var(--radius-pill, 50px);
	color: var(--clr-primary);
	font-size: 12.5px;
	font-weight: 600;
	cursor: pointer;
	font-family: inherit;
	transition: all 0.2s ease;
	outline: none;
	letter-spacing: 0.2px;
}

.region-switcher-btn:hover {
	background: #ede0fa;
	border-color: var(--clr-primary-light);
	box-shadow: 0 2px 8px rgba(92, 45, 144, 0.18);
	transform: translateY(-1px);
}

.region-switcher-btn:active {
	transform: translateY(0);
}

.region-globe-icon {
	display: flex;
	align-items: center;
	opacity: 0.8;
}

.region-current-label {
	color: var(--clr-primary-light);
	font-weight: 500;
	font-size: 12px;
}

.region-current-value {
	color: var(--clr-primary-dark);
	font-weight: 700;
	max-width: 120px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.region-chevron {
	display: flex;
	align-items: center;
	opacity: 0.6;
	margin-left: 2px;
	transition: transform 0.3s ease;
}

.region-switcher-btn[aria-expanded="true"] .region-chevron {
	transform: rotate(180deg);
}

/* Overlay */
.region-popup-overlay {
	position: fixed;
	inset: 0;
	background: rgba(15, 10, 30, 0.45);
	z-index: 8000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease, visibility 0.25s ease;
	backdrop-filter: blur(3px);
}

.region-popup-overlay.active {
	opacity: 1;
	visibility: visible;
}

/* Popup box */
.region-popup {
	background: var(--clr-white);
	border-radius: 16px;
	width: 100%;
	max-width: 360px;
	display: flex;
	flex-direction: column;
	box-shadow: 0 20px 60px rgba(92, 45, 144, 0.22), 0 4px 16px rgba(0, 0, 0, 0.12);
	transform: scale(0.92) translateY(16px);
	transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
	overflow: hidden;
	max-height: 90vh;
}

.region-popup-overlay.active .region-popup {
	transform: scale(1) translateY(0);
}

/* Header */
.region-popup-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 18px;
	background: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-primary-light) 100%);
	flex-shrink: 0;
}

.region-popup-title {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	font-weight: 700;
	color: var(--clr-white);
	margin: 0;
}

.region-popup-title svg {
	opacity: 0.9;
}

.region-popup-close {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.15);
	border: 1.5px solid rgba(255, 255, 255, 0.3);
	color: #fff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	transition: all 0.2s ease;
	flex-shrink: 0;
}

.region-popup-close:hover {
	background: rgba(255, 255, 255, 0.28);
	transform: rotate(90deg);
}

/* Body */
.region-popup-body {
	flex: 1;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

/* Search */
.region-search-wrap {
	position: relative;
	padding: 12px 14px 8px;
	border-bottom: 1px solid var(--clr-primary-tint);
	flex-shrink: 0;
}

.region-search-icon {
	position: absolute;
	left: 26px;
	top: 50%;
	transform: translateY(-55%);
	color: var(--clr-primary-light);
	pointer-events: none;
}

.region-search-input {
	width: 100%;
	height: 36px;
	padding: 8px 12px 8px 34px;
	font-size: 13px;
	color: #1e293b;
	background: #f8f4fc;
	border: 1.5px solid #e2d5f0;
	border-radius: 50px;
	outline: none;
	transition: all 0.2s ease;
	font-family: inherit;
}

.region-search-input:focus {
	border-color: var(--clr-primary-light);
	background: #fff;
	box-shadow: 0 0 0 3px rgba(92, 45, 144, 0.1);
}

.region-search-input::placeholder {
	color: #a78bc0;
	font-size: 12.5px;
}

/* List */
.region-list-wrap {
	flex: 1;
	overflow-y: auto;
	min-height: 120px;
	max-height: 280px;
	padding: 6px 8px;
	scrollbar-width: thin;
	scrollbar-color: rgba(92, 45, 144, 0.25) transparent;
}

.region-list-wrap::-webkit-scrollbar {
	width: 4px;
}

.region-list-wrap::-webkit-scrollbar-thumb {
	background: rgba(92, 45, 144, 0.25);
	border-radius: 4px;
}

.region-list {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

/* Loading state */
.region-list-loading {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 28px 16px;
	color: var(--clr-primary-light);
	font-size: 13px;
	font-weight: 500;
}

.region-spinner {
	width: 18px;
	height: 18px;
	border: 2px solid var(--clr-primary-muted);
	border-top-color: var(--clr-primary-light);
	border-radius: 50%;
	animation: regionSpin 0.7s linear infinite;
	flex-shrink: 0;
}

@keyframes regionSpin {
	to {
		transform: rotate(360deg);
	}
}

/* Error state */
.region-list-error {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 24px 16px;
	color: #dc2626;
	font-size: 13px;
	text-align: center;
}

.region-retry-btn {
	margin-top: 4px;
	padding: 6px 16px;
	font-size: 12px;
	font-weight: 600;
	color: var(--clr-primary);
	background: var(--clr-primary-pale);
	border: 1.5px solid #d4b5f0;
	border-radius: 50px;
	cursor: pointer;
	font-family: inherit;
	transition: all 0.2s ease;
}

.region-retry-btn:hover {
	background: var(--clr-primary);
	color: #fff;
	border-color: var(--clr-primary);
}

/* Empty */
.region-list-empty {
	padding: 24px 16px;
	text-align: center;
	color: #94a3b8;
	font-size: 13px;
}

/* Region item */
.region-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	border-radius: 10px;
	cursor: pointer;
	transition: all 0.15s ease;
	border: 1.5px solid transparent;
	position: relative;
	user-select: none;
}

.region-item:hover {
	background: var(--clr-primary-pale);
	border-color: var(--clr-primary-muted);
}

.region-item.selected {
	background: var(--clr-primary-tint);
	border-color: var(--clr-primary-light);
}

.region-item.selected .region-item-name {
	color: var(--clr-primary-dark);
	font-weight: 700;
}

.region-item-icon {
	width: 32px;
	height: 32px;
	border-radius: 8px;
	background: #ede0fa;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	font-size: 15px;
	transition: background 0.15s ease;
}

.region-item:hover .region-item-icon,
.region-item.selected .region-item-icon {
	background: #d4b5f0;
}

.region-item-info {
	flex: 1;
	min-width: 0;
}

.region-item-name {
	font-size: 13px;
	font-weight: 600;
	color: #1e293b;
	line-height: 1.2;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.region-item-code {
	font-size: 11px;
	font-weight: 500;
	color: #94a3b8;
	margin-top: 2px;
	text-transform: uppercase;
	letter-spacing: 0.4px;
}

.region-item-check {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--clr-primary-light);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transform: scale(0.5);
	transition: all 0.2s ease;
	flex-shrink: 0;
}

.region-item.selected .region-item-check {
	opacity: 1;
	transform: scale(1);
}

.region-item-check svg {
	color: #fff;
}

/* Footer */
.region-popup-footer {
	padding: 10px 18px;
	border-top: 1px solid var(--clr-primary-tint);
	background: #faf7fd;
	flex-shrink: 0;
}

.region-footer-hint {
	font-size: 11.5px;
	color: #a78bc0;
	font-weight: 500;
	display: block;
	text-align: center;
}

/* Highlight match in search */
.region-item-name mark {
	background: var(--clr-primary-tint);
	color: var(--clr-primary);
	font-weight: 700;
	border-radius: 2px;
	padding: 0 1px;
}

/* Reset password region bar */
.fp-region-bar {
	display: flex;
	justify-content: center;
	padding: 20px;
}

.fp-region-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 14px 6px 10px;
	background: var(--clr-primary-pale);
	border: 1.5px solid #d4b5f0;
	border-radius: var(--radius-pill);
	color: var(--clr-primary);
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	font-family: inherit;
	transition: all 0.2s ease;
	outline: none;
}

.fp-region-btn:hover:not(:disabled) {
	background: #ede0fa;
	border-color: var(--clr-primary-light);
	box-shadow: 0 2px 8px rgba(92, 45, 144, 0.18);
}

.fp-region-label {
	color: var(--clr-primary-light);
	font-weight: 500;
}

.fp-region-value {
	color: var(--clr-primary-dark);
	font-weight: 700;
}

.fp-region-chevron {
	opacity: 0.6;
	transition: transform 0.3s ease;
}

.fp-region-btn[aria-expanded="true"] .fp-region-chevron {
	transform: rotate(180deg);
}

/* Locked state — after step 1 is submitted */
.fp-region-bar--locked .fp-region-btn {
	opacity: 0.45;
	cursor: not-allowed;
	pointer-events: none;
	background: #f8f8f8;
	border-color: #e2e8f0;
	color: var(--clr-text-muted);
}

/* Callout flash animation on region switch */
@keyframes fpCalloutFlash {
	0% {
		background: var(--clr-primary-pale);
		border-left-color: var(--clr-primary-light);
	}

	40% {
		background: var(--clr-primary-muted);
		border-left-color: var(--clr-primary);
	}

	100% {
		background: var(--clr-primary-pale);
		border-left-color: var(--clr-primary-light);
	}
}

.fp-callout--flash {
	animation: fpCalloutFlash 0.5s ease forwards;
}

/* =============================================================================
   Profile Picker Modal — Login Page
   Shown when login credentials match multiple accounts (usersGroup > 1)
============================================================================= */

.profile-picker-overlay {
	position: fixed;
	inset: 0;
	background: rgba(15, 10, 30, 0.52);
	z-index: 9000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease, visibility 0.25s ease;
	backdrop-filter: blur(4px);
}

.profile-picker-overlay.active {
	opacity: 1;
	visibility: visible;
}

/* Modal box */
.profile-picker {
	background: var(--clr-white);
	border-radius: 16px;
	width: 100%;
	max-width: 420px;
	display: flex;
	flex-direction: column;
	box-shadow: 0 24px 64px rgba(92, 45, 144, 0.22), 0 4px 16px rgba(0, 0, 0, 0.1);
	transform: scale(0.92) translateY(16px);
	transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
	overflow: hidden;
	max-height: 90vh;
}

.profile-picker-overlay.active .profile-picker {
	transform: scale(1) translateY(0);
}

/* Header */
.profile-picker-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px;
	background: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-primary-light) 100%);
	flex-shrink: 0;
}

.profile-picker-title {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 15px;
	font-weight: 700;
	color: var(--clr-white);
	margin: 0;
}

.profile-picker-title svg {
	opacity: 0.9;
	flex-shrink: 0;
}

.profile-picker-close {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.15);
	border: 1.5px solid rgba(255, 255, 255, 0.3);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.2s ease;
	flex-shrink: 0;
}

.profile-picker-close:hover {
	background: rgba(255, 255, 255, 0.28);
	transform: rotate(90deg);
}

/* Body */
.profile-picker-body {
	flex: 1;
	overflow-y: auto;
	padding: 18px 18px 8px;
	scrollbar-width: thin;
	scrollbar-color: rgba(92, 45, 144, 0.2) transparent;
}

.profile-picker-subtitle {
	font-size: 13px;
	color: #64748b;
	line-height: 1.6;
	margin: 0 0 16px 0;
	padding: 10px 12px;
	background: var(--clr-primary-pale);
	border-radius: 8px;
	border-left: 3px solid var(--clr-primary-light);
}

/* Profile list */
.profile-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

/* Profile card */
.profile-card {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	border: 1.5px solid var(--clr-primary-muted);
	border-radius: 12px;
	cursor: pointer;
	transition: all 0.18s ease;
	position: relative;
	overflow: hidden;
	background: var(--clr-white);
	outline: none;
}

.profile-card:hover {
	border-color: var(--clr-primary-light);
	background: var(--clr-primary-pale);
	transform: translateX(3px);
	box-shadow: 0 3px 12px rgba(92, 45, 144, 0.12);
}

.profile-card:focus-visible {
	border-color: var(--clr-primary);
	box-shadow: 0 0 0 3px rgba(92, 45, 144, 0.15);
}

.profile-card.loading {
	pointer-events: none;
	opacity: 0.75;
}

/* Avatar circle */
.profile-card-avatar {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-primary-light) 100%);
	color: var(--clr-white);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	font-weight: 700;
	flex-shrink: 0;
	letter-spacing: 0.5px;
}

/* Name + role */
.profile-card-info {
	flex: 1;
	min-width: 0;
}

.profile-card-name {
	font-size: 14px;
	font-weight: 650;
	color: #1e293b;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.profile-card-role {
	font-size: 12px;
	font-weight: 500;
	color: var(--clr-primary-light);
	margin-top: 2px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Chevron arrow */
.profile-card-arrow {
	color: #cbd5e1;
	display: flex;
	align-items: center;
	flex-shrink: 0;
	transition: all 0.18s ease;
}

.profile-card:hover .profile-card-arrow {
	color: var(--clr-primary-light);
	transform: translateX(2px);
}

/* Inline loading spinner (per card) */
.profile-card-loader {
	position: absolute;
	inset: 0;
	background: rgba(255, 255, 255, 0.85);
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 12px;
}

.profile-card-spinner {
	width: 20px;
	height: 20px;
	border: 2.5px solid var(--clr-primary-muted);
	border-top-color: var(--clr-primary-light);
	border-radius: 50%;
	animation: profileSpin 0.65s linear infinite;
}

@keyframes profileSpin {
	to {
		transform: rotate(360deg);
	}
}

/* Footer */
.profile-picker-footer {
	padding: 12px 20px;
	border-top: 1px solid var(--clr-primary-tint);
	background: #faf7fd;
	text-align: center;
	flex-shrink: 0;
}

.profile-picker-hint {
	font-size: 12px;
	color: #94a3b8;
	font-weight: 500;
}

.profile-picker-hint a {
	color: var(--clr-primary);
	font-weight: 600;
	text-decoration: none;
	transition: color 0.2s ease;
}

.profile-picker-hint a:hover {
	color: var(--clr-primary-dark);
	text-decoration: underline;
}

/* Responsive */
@media (max-width: 480px) {
	.profile-picker {
		max-width: 100%;
		border-radius: 16px 16px 0 0;
		max-height: 80vh;
	}

	.profile-picker-overlay {
		align-items: flex-end;
		padding: 0;
	}

	.profile-picker-overlay.active .profile-picker {
		transform: scale(1) translateY(0);
	}
}

/* =============================================================================
   05. PAGE-SPECIFIC
============================================================================= */

/* -----------------------------------------------------------------------------
   5.1 Login Page
----------------------------------------------------------------------------- */
.login-body {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	background: var(--clr-white);
	min-height: 100vh;
	overflow-x: hidden;
	line-height: 1.5;
}

.login-container {
	display: flex;
	min-height: 100vh;
	width: 100%;
}

.login-panel {
	flex: 0 0 420px;
	width: 420px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	position: relative;
	z-index: 2;
}

.login-block {
	display: flex;
	width: 100%;
	justify-content: center;
	align-items: center;
	flex: 1;
}

.login-content {
	width: 100%;
	max-width: 340px;
}

.login-logo {
	text-align: center;
	margin-bottom: 36px;
}

.logo-img {
	max-width: 160px;
	height: auto;
	display: inline-block;
}

.login-form {
	width: 100%;
}

.input::placeholder {
	font-family: "Poppins", sans-serif;
	font-size: 13px;
	color: #999;
}

.input-group {
	width: 100%;
}

.input-group.hide {
	display: none;
}

.input-label {
	display: block;
	font-size: 13px;
	font-weight: 620;
	color: #1e293b;
	margin-bottom: 6px;
	transition: color 0.2s ease;
}

.input-label-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin: 0;
	padding: 0;
	margin-bottom: 20px;
}

.input-wrapper {
	position: relative;
	display: flex;
	align-items: center;
	width: 100%;
}

.input-icon {
	position: absolute;
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1;
}

.input-icon img {
	width: 18px;
	height: 18px;
	opacity: 0.6;
	transition: opacity 0.2s ease;
}

.input-field {
	width: 100%;
	height: 42px;
	padding: 10px 14px 10px 44px;
	font-size: 14px;
	font-weight: 400;
	color: #1e293b;
	background: var(--clr-surface);
	border: 2px solid #e2e8f0;
	border-radius: 11px;
	outline: none;
	transition: all 0.2s ease;
	font-family: inherit;
}

.input-wrapper:not(:has(.input-icon)) .input-field,
.input-group:not(:has(.input-wrapper)) .input-field {
	padding-left: 14px;
}

.input-field::placeholder {
	color: var(--clr-primary);
	font-size: 13px;
	font-weight: 400;
}

.input-field:focus {
	background: var(--clr-white);
	border-color: var(--clr-primary);
	box-shadow: 0 0 0 4px rgba(92, 45, 144, 0.1);
}

.input-field:focus+.input-icon img {
	opacity: 1;
}

.input-field:hover:not(:focus) {
	border-color: #cbd5e1;
	background: var(--clr-white);
}

.input-field:disabled {
	background: #f1f5f9;
	color: #94a3b8;
	cursor: not-allowed;
	opacity: 0.6;
}

.input-field.error {
	border-color: #dc2626;
	background: #fef2f2;
}

.input-field.error:focus {
	border-color: #dc2626;
	box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1);
}

.input-field.success {
	border-color: #16a34a;
	background: #f0fdf4;
}

.input-field.success:focus {
	border-color: #16a34a;
	box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.1);
}

.error-message {
	display: block;
	margin-top: 5px;
	font-size: 12px;
	color: #dc2626;
	font-weight: 500;
}

.success-message {
	display: block;
	margin-top: 5px;
	font-size: 12px;
	color: #16a34a;
	font-weight: 500;
}

.forgot-link {
	font-size: 11.5px;
	font-weight: 600;
	color: var(--clr-primary);
	text-decoration: none;
	transition: all 0.2s ease;
}

.forgot-link:hover {
	color: var(--clr-primary-dark);
	text-decoration: underline;
}

.forgot-link:focus {
	outline: 2px solid var(--clr-primary);
	outline-offset: 2px;
	border-radius: 2px;
}

.divider {
	display: flex;
	align-items: center;
	margin: 22px 0;
	color: #94a3b8;
	font-size: 13px;
	font-weight: 500;
}

.divider::before,
.divider::after {
	content: '';
	flex: 1;
	height: 1px;
	background: #e2e8f0;
}

.divider span {
	padding: 0 14px;
}

#g_id_onload,
.g_id_signin {
	width: 100%;
	display: flex;
	justify-content: center;
}

.login-footer {
	margin: 22px 0 8px 0;
	text-align: center;
	flex: 0 0 auto;
}

.copyright {
	font-size: 12px;
	color: #64748b;
	margin-bottom: 10px;
	font-weight: 500;
}

.footer-links {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 36px;
	font-size: 13px;
	flex-wrap: wrap;
}

.footer-links p {
	margin: 0;
	padding: 0;
	color: var(--clr-primary);
}

.footer-links a {
	color: var(--clr-primary);
	text-decoration: none;
	font-weight: 600;
	transition: all 0.2s ease;
}

.footer-links a:hover {
	color: var(--clr-primary-dark);
	text-decoration: underline;
}

.footer-links a:focus {
	outline: 2px solid var(--clr-primary);
	outline-offset: 2px;
	border-radius: 2px;
}

.footer-links .separator {
	color: #cbd5e1;
	font-weight: 400;
}

.hero-panel {
	flex: 1;
	background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
	position: relative;
	overflow: hidden;
	min-height: 100vh;
}

.hero-content {
	position: relative;
	width: 100%;
	height: 100%;
	min-height: 100vh;
}

.hero-top-logos {
	position: absolute;
	top: 28px;
	left: 32px;
	right: 32px;
	z-index: 3;

	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}

.top-logo {
	width: auto;
	object-fit: contain;
}

.top-logo-avolve {
	max-height: 105px;
}

.top-logo-apollo {
	max-height: 75px;
}

.hero-image {
	width: 100%;
	height: 100%;
	min-height: 100vh;
	object-fit: cover;
	object-position: center;
	display: block;
}

.hero-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(135deg, rgba(6, 182, 212, 0.85) 0%, rgba(14, 165, 233, 0.85) 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 50px;
}

.hero-text {
	max-width: 560px;
	color: var(--clr-white);
	text-align: left;
}

.hero-title {
	font-size: 52px;
	font-weight: 300;
	line-height: 1.2;
	margin-bottom: 20px;
	letter-spacing: -1px;
}

.hero-highlight {
	font-weight: 700;
	font-style: italic;
}

.hero-subtitle {
	font-size: 17px;
	font-weight: 500;
	opacity: 0.95;
	line-height: 1.6;
}


/* =============================================================================
   06. UTILITIES & ACCESSIBILITY
============================================================================= */

.divider {
	height: 1px;
	background: #e5e7eb;
	margin: 1.6rem 0;
}

.filter-checkbox:focus-visible+.checkbox-label-custom .checkbox-icon {
	outline: 2px solid var(--clr-primary);
	outline-offset: 2px;
}

@media (prefers-contrast: high) {
	.checkbox-icon {
		border-width: 3px;
	}

	.filter-checkbox:checked+.checkbox-label-custom .checkbox-icon {
		border-width: 3px;
	}
}

@media (prefers-reduced-motion: reduce) {

	.checkbox-icon,
	.checkbox-icon i,
	.checkbox-text {
		transition: none;
	}

	.checkbox-icon::after {
		display: none;
	}
}


/* =============================================================================
   07. ANIMATIONS & KEYFRAMES
============================================================================= */

@keyframes spinner {
	to {
		transform: rotate(360deg);
	}
}

@keyframes spin {
	from {
		transform: rotate(0deg);
	}

	to {
		transform: rotate(360deg);
	}
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(10px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes filterSlideIn {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes badgePop {
	0% {
		transform: scale(0);
	}

	50% {
		transform: scale(1.2);
	}

	100% {
		transform: scale(1);
	}
}

@keyframes dropdownSlideIn {
	from {
		opacity: 0;
		transform: translateY(-8px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes check-bounce {

	0%,
	100% {
		transform: scale(1);
	}

	50% {
		transform: scale(1.15);
	}
}


/* =============================================================================
   08. RESPONSIVE BREAKPOINTS
============================================================================= */

/* Large Desktop (1920px+) */
@media (min-width: 1920px) {
	.page-header {
		padding: 13px 28px 9px 28px;
	}
}

/* Desktop (1200px – 1919px) */
@media (max-width: 1919px) and (min-width: 1200px) {
	.page-header {
		padding: 13px 28px 9px 28px;
	}
}

/* Login — Large Desktop (1440px+) */
@media (min-width: 1440px) {
	.login-panel {
		flex: 0 0 580px;
		width: 580px
	}

	.login-content {
		max-width: 380px;
	}

	.hero-overlay {
		padding: 70px;
	}

	.hero-title {
		font-size: 62px;
	}

	.hero-subtitle {
		font-size: 20px;
	}
}

/* Login — Desktop (1024px – 1439px) */
@media (max-width: 1439px) and (min-width: 1100px) {
	.login-panel {
		flex: 0 0 400px;
		width: 400px;
		padding: 36px 28px;
	}

	.login-content {
		max-width: 330px;
	}

	.hero-title {
		font-size: 48px;
	}

	.hero-subtitle {
		font-size: 16px;
	}

	.footer-links {
		gap: 9px;
	}
}

/* Login — Desktop (1024px – 1439px) */
@media (max-width: 1100px) and (min-width: 1024px) {
	.login-panel {
		flex: 0 0 350px;
		width: 350px;
		padding: 36px 28px;
	}

	.login-content {
		max-width: 330px;
	}
}

/* Ticket info grid */
@media (max-width: 1449px) {
	.ticket-info-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* Tablet Landscape (992px – 1199px) */
@media (max-width: 1199px) and (min-width: 992px) {
	.page-header {
		padding: 9px 20px 13px;
	}

	.page-title {
		font-size: 18px;
	}

	.grid-2,
	.grid-3,
	.grid-4 {
		grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	}

	.filter-row {
		grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
		gap: 13px;
	}
}

/* Info-stats large tablet */
@media (max-width: 1200px) {
	.info-stats-item {
		padding: 12px 13px;
	}

	.info-stats-value {
		font-size: 18px;
	}

	.info-stats-label {
		font-size: 12px;
	}
}

/* Tablet Portrait (768px – 991px) */
@media (max-width: 991px) and (min-width: 768px) {
	.header-container {
		height: 52px;
	}

	.page-header {
		padding: 13px 18px;
		min-height: 60px;
	}

	.page-title {
		font-size: 18px;
	}

	.page-title i {
		font-size: 18px;
	}

	.search-box {
		min-width: 100%;
		width: 100%;
	}

	.grid-2,
	.grid-3,
	.grid-4 {
		grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
	}

	.notification-block,
	.user-block {
		top: calc(52px + 6px);
	}

	.form-row.cols-2,
	.form-row.cols-3,
	.form-row.cols-4 {
		grid-template-columns: 1fr;
	}

	.stat-value {
		font-size: 24px;
	}

	.filter-row {
		grid-template-columns: repeat(2, 1fr);
		gap: 13px;
	}

	.btn-filter {
		width: 100%;
		justify-content: center;
	}

	.info-stats-group {
		min-width: 100%;
		flex-wrap: wrap;
		padding: 16px;
	}

	.info-stats-split-wrapper {
		flex-direction: column;
	}

	.info-stats-split-left,
	.info-stats-split-right {
		min-width: 100%;
		flex-wrap: wrap;
	}

	.info-stats-item {
		min-width: 120px;
	}

	.info-stats-item:nth-child(even)::after {
		display: none;
	}
}

/* Ticket sidebar stacking */
@media (max-width: 1024px) {
	.ticket-content {
		grid-template-columns: 1fr;
	}

	.ticket-sidebar {
		order: -1;
	}

	.ticket-info-grid {
		grid-template-columns: 1fr;
	}
}

/* Login Tablet (768px – 1023px) */
@media (max-width: 1023px) and (min-width: 768px) {
	.login-container {
		flex-direction: column;
	}

	.login-panel {
		flex: 1;
		width: 100%;
		min-height: auto;
		border-radius: 50px;
		padding: 36px 22px;
	}

	.login-content {
		max-width: 370px;
		margin: 0 auto;
	}

	.hero-panel {
		min-height: 300px;
		max-height: 40vh;
		order: -1;
	}

	.hero-content,
	.hero-image {
		min-height: 300px;
	}

	.hero-overlay {
		padding: 36px 22px;
	}

	.hero-title {
		font-size: 36px;
	}

	.hero-subtitle {
		font-size: 14px;
	}

	.login-logo {
		margin-bottom: 28px;
	}

	.logo-img {
		max-width: 130px;
	}

	.footer-links {
		gap: 9px;
	}
}

/* Mobile (481px – 767px) */
@media (max-width: 767px) and (min-width: 481px) {
	.header-container {
		height: 50px;
	}

	.avolve-logo {
		width: 105px;
	}

	.page-wrapper {
		min-height: calc(100vh - 50px);
	}

	.page-header {
		padding: 13px;
		min-height: 54px;
		align-items: flex-start;
	}

	.page-footer {
		padding: 10px 13px;
		flex-direction: column;
	}

	.page-title {
		font-size: 17px;
	}

	.page-title i {
		font-size: 17px;
	}

	.search-box {
		min-width: 100%;
		width: 100%;
	}

	.btn-header {
		width: 100%;
		justify-content: center;
	}

	.grid-2,
	.grid-3,
	.grid-4 {
		grid-template-columns: 1fr;
	}

	.notification-block {
		top: 56px;
		width: calc(100vw - 28px);
		right: 14px;
	}

	.user-block {
		top: 56px;
		right: 14px;
	}

	.filter-row {
		grid-template-columns: 1fr;
		gap: 13px;
		margin-bottom: 16px;
	}

	/* Login */
	.login-container {
		flex-direction: column;
	}

	.login-panel {
		flex: 1;
		width: 100%;
		border-radius: 50px;
		padding: 36px 22px;
	}

	.login-content {
		max-width: 370px;
		margin: 0 auto;
	}

	.hero-panel {
		min-height: 300px;
		max-height: 40vh;
		order: -1;
	}

	.hero-content,
	.hero-image {
		min-height: 300px;
	}

	.hero-overlay {
		padding: 36px 22px;
	}

	.hero-title {
		font-size: 36px;
	}

	.hero-subtitle {
		font-size: 14px;
	}

	.login-logo {
		margin-bottom: 28px;
	}

	.logo-img {
		max-width: 130px;
	}

	.input-field {
		height: 40px;
	}

	/* Ticket */
	.ticket-header {
		padding: 16px;
	}

	.ticket-header-left {
		width: 100%;
	}

	.ticket-header-actions {
		width: 100%;
	}

	.ticket-card {
		padding: 13px;
	}

	.attachment-preview {
		height: 160px;
	}
}

/* Small Mobile (< 480px) */
@media (max-width: 480px) {
	.header-container {
		height: 46px;
	}

	.avolve-logo {
		width: 92px;
	}

	.nav-right-block {
		gap: 12px;
		margin-right: 13px;
	}

	.nav-right-icons img {
		width: 21px;
		height: 21px;
	}

	.page-wrapper {
		min-height: calc(100vh - 46px);
	}

	.page-header {
		padding: 10px;
		min-height: 48px;
		align-items: flex-start;
	}

	.page-footer {
		padding: 8px 10px;
		min-height: 42px;
		flex-direction: column;
		font-size: 11.5px;
	}

	.page-title {
		font-size: 15px;
	}

	.page-title i {
		font-size: 15px;
	}

	.section-title {
		font-size: 14px;
	}

	.search-box {
		min-width: 100%;
	}

	.search-box input {
		padding: 8px 36px 8px 12px;
		font-size: 13px;
	}

	.btn-header {
		width: 100%;
		justify-content: center;
		padding: 7px 13px;
		font-size: 13px;
	}

	.content-section {
		padding: 12px;
	}

	.grid-2,
	.grid-3,
	.grid-4 {
		grid-template-columns: 1fr;
		gap: 13px;
	}

	.card {
		padding: 8px;
	}

	.notification-block {
		top: 52px;
		width: calc(100vw - 20px);
		right: 10px;
	}

	.user-block {
		top: 52px;
		right: 10px;
	}

	.stat-value {
		font-size: 22px;
	}

	.alert {
		padding: 10px 13px;
		font-size: 12.5px;
	}

	.empty-state {
		padding: 36px 13px;
	}

	.empty-state-icon {
		font-size: 46px;
	}

	.filter-header {
		padding: 11px 13px;
	}

	.filter-body {
		padding: 13px;
	}

	.filter-label {
		font-size: 12px;
	}

	.filter-input {
		height: 36px;
		font-size: 12.5px;
	}

	.btn-filter {
		padding: 7px 16px;
		font-size: 13px;
	}

	.back-event-block {
		padding: 7px 13px;
		font-size: 13px;
	}

	.checkbox-icon i {
		font-size: 10px;
	}

	.checkbox-text {
		font-size: 11.5px;
	}

	.checkbox-label-custom {
		gap: 5px;
	}

	.info-stats-container {
		padding: 10px;
		gap: 10px;
	}

	.info-stats-group {
		padding: 13px;
		flex-direction: column;
		gap: 7px;
	}

	.info-stats-item {
		flex: 1 1 100%;
		padding: 10px;
		min-width: 100%;
	}

	.info-stats-item::after {
		display: none !important;
	}

	.info-stats-label {
		font-size: 11px;
		margin-bottom: 3px;
	}

	.info-stats-value {
		font-size: 18px;
	}

	/* Login */
	.login-panel {
		padding: 20px 14px;
	}

	.hero-panel {
		min-height: 220px;
		max-height: 30vh;
	}

	.hero-content,
	.hero-image {
		min-height: 220px;
	}

	.hero-title {
		font-size: 28px;
	}

	.hero-subtitle {
		font-size: 13px;
	}

	.login-logo {
		margin-bottom: 20px;
	}

	.logo-img {
		max-width: 110px;
	}

	.input-field {
		height: 38px;
		font-size: 13px;
		padding-left: 40px;
	}

	.input-icon {
		left: 12px;
	}

	.input-icon img {
		width: 16px;
		height: 16px;
	}

	.input-group {
		margin-bottom: 16px;
	}

	.input-label {
		font-size: 12.5px;
	}

	.forgot-link {
		font-size: 11px;
	}

	.divider {
		margin: 18px 0;
		font-size: 12.5px;
	}

	.login-footer {
		margin-top: 26px;
	}

	.copyright,
	.footer-links {
		font-size: 11.5px;
	}

	.footer-links {
		flex-direction: column;
		gap: 6px;
	}

	.footer-links .separator {
		display: none;
	}

	/* Step wizard */
	.step-wizard-nav {
		flex-direction: column;
		gap: 13px;
	}

	.step-wizard-nav::before {
		display: none;
	}

	.step-item {
		flex-direction: row;
		justify-content: flex-start;
	}

	.step-label {
		margin-top: 0;
		margin-left: 10px;
		text-align: left;
	}

	/* Modal */
	.cust-mdl {
		max-width: 100%;
		max-height: 100%;
		border-radius: 0;
	}

	.mdl-header {
		padding: 16px 20px;
	}

	.mdl-body {
		padding: 18px;
	}

	.mdl-form-row.cols-2,
	.mdl-form-row.cols-3,
	.mdl-form-row.cols-4 {
		grid-template-columns: 1fr;
	}

	.mdl-footer {
		flex-direction: column;
	}

	.mdl-btn {
		width: 100%;
		justify-content: center;
	}
}

/* Login scroll lock */
@media (min-height: 550px) {
	.login-body {
		overflow: hidden;
		height: 100vh;
	}

	.login-container {
		overflow: hidden;
		height: 100vh;
	}

	.login-panel {
		overflow-y: auto;
		max-height: 100vh;
	}
}

/* Login small tablet fallback */
@media (max-width: 599px) {
	.login-panel {
		padding: 28px 18px;
	}

	.login-content {
		max-width: 100%;
	}

	.hero-panel {
		min-height: 260px;
		max-height: 35vh;
	}

	.hero-content,
	.hero-image {
		min-height: 260px;
	}

	.hero-overlay {
		padding: 28px 18px;
	}

	.hero-title {
		font-size: 32px;
	}

	.hero-subtitle {
		font-size: 14px;
	}

	.login-logo {
		margin-bottom: 24px;
	}

	.logo-img {
		max-width: 120px;
	}

	.input-group {
		margin-bottom: 17px;
	}

	.input-label {
		font-size: 12.5px;
	}

	.forgot-link {
		font-size: 11px;
	}

	.divider {
		margin: 20px 0;
		font-size: 12.5px;
	}

	.login-footer {
		margin-top: 26px;
	}

	.copyright,
	.footer-links {
		font-size: 11.5px;
	}

	.footer-links {
		flex-direction: column;
		gap: 6px;
	}

	.footer-links .separator {
		display: none;
	}
}

/* =============================================================================
   09. PRINT STYLES
============================================================================= */

@media print {

	.header-container,
	.sidebar,
	.page-header-actions,
	.page-footer,
	.ticket-header-actions,
	.back-btn,
	.ticket-action-buttons {
		display: none !important;
	}

	#main-content {
		margin-left: 0;
		margin-top: 0;
	}

	.page-body {
		padding: 8px;
	}

	.info-stats-group {
		box-shadow: none;
		border: 1px solid #e5e7eb;
		page-break-inside: avoid;
	}

	.info-stats-item:hover {
		transform: none;
	}

	body * {
		visibility: hidden;
	}

	#main-content,
	#main-content * {
		visibility: visible;
	}

	#main-content {
		position: absolute;
		left: 0;
		top: 0;
		width: 100%;
	}

	.ticket-card {
		page-break-inside: avoid;
		box-shadow: none;
		border: 1px solid #e2e8f0;
	}

	.ticket-content {
		grid-template-columns: 1fr !important;
	}

	.ticket-sidebar {
		display: block;
		margin-top: 16px;
	}

	@page {
		margin: 1cm;
		size: A4;
	}
}

/* =============================================================================
   forgot-password.css
   Forgot Password Page — KT-Avolve Theme
   Depends on: theme.css (design tokens already loaded globally)
============================================================================= */

/* PAGE LAYOUT */
.fp-container {
	display: flex;
	min-height: 100vh;
	width: 100%;
}

/* LEFT HERO PANEL */
.fp-hero {
	flex: 1;
	position: relative;
	overflow: hidden;
	background: linear-gradient(145deg, #3b1466 0%, var(--clr-primary) 45%, var(--clr-primary-light) 100%);
}

.fp-hero-bg {
	position: absolute;
	inset: 0;
	overflow: hidden;
}

.fp-hero-bg::before {
	content: '';
	position: absolute;
	width: 520px;
	height: 520px;
	border-radius: 50%;
	border: 60px solid rgba(255, 255, 255, 0.06);
	top: -120px;
	left: -140px;
}

.fp-hero-bg::after {
	content: '';
	position: absolute;
	width: 360px;
	height: 360px;
	border-radius: 50%;
	border: 40px solid rgba(255, 255, 255, 0.05);
	bottom: -80px;
	right: -100px;
}

.fp-hero-circle-mid {
	position: absolute;
	width: 220px;
	height: 220px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.04);
	bottom: 160px;
	left: 60px;
}

.fp-hero-circle-sm {
	position: absolute;
	width: 110px;
	height: 110px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.07);
	top: 160px;
	right: 80px;
}

.fp-hero-content {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	height: 100%;
	padding: 60px 56px;
}

/* Hero Logo */
.fp-hero-logo {
	display: flex;
	justify-content: center;
	margin-bottom: 52px;
}

.fp-hero-logo-text {
	font-family: 'DM Serif Display', 'Georgia', serif;
	font-size: 26px;
	color: #fff;
	letter-spacing: 0.5px;
}

/* Hero Badge */
.fp-hero-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: rgba(255, 255, 255, 0.12);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: var(--radius-pill);
	padding: 6px 16px;
	font-size: 12.5px;
	color: rgba(255, 255, 255, 0.9);
	font-weight: 500;
	margin-bottom: 28px;
	letter-spacing: 0.3px;
}

.fp-hero-badge i {
	font-size: 11px;
	opacity: 0.8;
}

/* Hero Title */
.fp-hero-title {
	font-family: 'DM Serif Display', 'Georgia', serif;
	font-size: clamp(32px, 3.5vw, 52px);
	color: #fff;
	line-height: 1.15;
	margin-bottom: 20px;
	font-weight: 400;
}

.fp-hero-title em {
	font-style: italic;
	color: rgba(255, 255, 255, 0.7);
}

/* Hero Subtitle */
.fp-hero-subtitle {
	font-size: 15px;
	color: rgba(255, 255, 255, 0.72);
	line-height: 1.7;
	max-width: 380px;
	margin-bottom: 48px;
	font-weight: 400;
}

/* Step Indicators on Hero */
.fp-steps-preview {
	display: flex;
	flex-direction: column;
	gap: 16px;
	width: 100%;
	max-width: 340px;
}

.fp-step-item {
	display: flex;
	align-items: center;
	gap: 14px;
	opacity: 0.45;
	transition: opacity var(--transition-med);
}

.fp-step-item.active {
	opacity: 1;
}

.fp-step-item.done {
	opacity: 0.7;
}

.fp-step-num {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.12);
	border: 1.5px solid rgba(255, 255, 255, 0.25);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	font-weight: 600;
	color: #fff;
	flex-shrink: 0;
	transition: all var(--transition-med);
}

.fp-step-item.active .fp-step-num {
	background: rgba(255, 255, 255, 0.95);
	color: var(--clr-primary);
	border-color: transparent;
}

.fp-step-item.done .fp-step-num {
	background: rgba(22, 163, 74, 0.3);
	border-color: rgba(22, 163, 74, 0.5);
	color: #6ee7b7;
}

.fp-step-label {
	font-size: 13.5px;
	color: #fff;
	font-weight: 500;
}

.fp-step-sublabel {
	font-size: 12px;
	color: rgba(255, 255, 255, 0.55);
	margin-top: 1px;
}

/* RIGHT FORM PANEL */
.fp-panel {
	flex: 0 0 680px;
	width: 680px;
	background: var(--clr-white);
	display: flex;
	flex-direction: column;
	overflow-y: auto;
	box-shadow: -4px 0 24px rgba(0, 0, 0, 0.06);
}

.fp-panel-inner {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 48px 44px;
}

/* BACK LINK */
.fp-back {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 13px;
	font-weight: 600;
	color: var(--clr-primary);
	text-decoration: none;
	margin-top: 36px;
	transition: all var(--transition-fast);
	width: fit-content;
	background: none;
	border: none;
	cursor: pointer;
	font-family: inherit;
	padding: 0;
}

.fp-back:hover {
	transform: translateX(-3px);
	color: var(--clr-primary-dark);
	text-decoration: none;
}

.fp-back i {
	font-size: 12px;
}

/* FORM HEADER */
.fp-form-icon {
	width: 52px;
	height: 52px;
	border-radius: 14px;
	background: var(--clr-primary-pale);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 20px;
}

.fp-form-icon i {
	font-size: 22px;
	color: var(--clr-primary);
}

.fp-form-title {
	font-size: 24px;
	font-weight: 700;
	color: var(--clr-text-heading);
	margin-bottom: 6px;
	line-height: 1.2;
}

.fp-form-desc {
	font-size: 13.5px;
	color: var(--clr-text-muted);
	line-height: 1.6;
	margin-bottom: 28px;
}

/* FORM STEPS */
.fp-step {
	display: none;
}

.fp-step.active {
	display: block;
	animation: fpStepIn 0.35s ease forwards;
}

@keyframes fpStepIn {
	from {
		opacity: 0;
		transform: translateX(12px);
	}

	to {
		opacity: 1;
		transform: translateX(0);
	}
}

/* INPUT GROUP */
.fp-input-group {
	margin-bottom: 18px;
}

.fp-label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: var(--clr-text-body);
	margin-bottom: 7px;
}

.fp-label .required {
	color: var(--clr-danger);
	margin-left: 2px;
}

.fp-input-wrap {
	position: relative;
	display: flex;
	align-items: center;
}

.fp-input-icon {
	position: absolute;
	left: 14px;
	color: var(--clr-text-muted);
	font-size: 14px;
	pointer-events: none;
	transition: color var(--transition-fast);
	z-index: 1;
}

.fp-input-wrap:focus-within .fp-input-icon {
	color: var(--clr-primary);
}

.fp-input {
	width: 100%;
	height: 44px;
	padding: 10px 14px 10px 42px;
	font-size: 13.5px;
	color: var(--clr-text-heading);
	background: var(--clr-surface);
	border: 2px solid var(--clr-border);
	border-radius: var(--radius-md);
	outline: none;
	transition: all var(--transition-fast);
	font-family: inherit;
}

.fp-input:focus {
	background: var(--clr-white);
	border-color: var(--clr-primary);
	box-shadow: 0 0 0 3px rgba(92, 45, 144, 0.1);
}

.fp-input:hover:not(:focus) {
	border-color: var(--clr-border-2);
	background: var(--clr-white);
}

.fp-input.error {
	border-color: var(--clr-danger);
	background: #fef2f2;
}

.fp-input.success {
	border-color: var(--clr-success);
	background: #f0fdf4;
}

.fp-input-hint {
	display: block;
	font-size: 12px;
	color: var(--clr-text-muted);
	margin-top: 5px;
}

.fp-input-hint.error {
	color: var(--clr-danger);
}

.fp-input-hint.success {
	color: var(--clr-success);
}

/* Password toggle */
.fp-pwd-toggle {
	position: absolute;
	right: 12px;
	background: none;
	border: none;
	color: var(--clr-text-muted);
	cursor: pointer;
	font-size: 14px;
	padding: 4px;
	transition: color var(--transition-fast);
	z-index: 1;
}

.fp-pwd-toggle:hover {
	color: var(--clr-primary);
}

/* RESEND ROW */
.fp-resend-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 8px;
	margin-bottom: 4px;
}

.fp-resend-timer {
	font-size: 12.5px;
	color: var(--clr-text-muted);
}

.fp-resend-btn {
	font-size: 12.5px;
	font-weight: 600;
	color: var(--clr-primary);
	background: none;
	border: none;
	cursor: pointer;
	font-family: inherit;
	padding: 2px 0;
	transition: color var(--transition-fast);
}

.fp-resend-btn:hover:not(:disabled) {
	color: var(--clr-primary-dark);
	text-decoration: underline;
}

.fp-resend-btn:disabled {
	color: var(--clr-text-muted);
	cursor: not-allowed;
	text-decoration: none;
}

/* PASSWORD STRENGTH BAR */
.fp-strength-bar {
	display: flex;
	gap: 4px;
	margin-top: 8px;
}

.fp-strength-seg {
	flex: 1;
	height: 3px;
	border-radius: 4px;
	background: var(--clr-border);
	transition: background 0.3s ease;
}

.fp-strength-seg.weak {
	background: var(--clr-danger);
}

.fp-strength-seg.medium {
	background: var(--clr-warning);
}

.fp-strength-seg.strong {
	background: var(--clr-success);
}

.fp-strength-label {
	font-size: 11.5px;
	color: var(--clr-text-muted);
	margin-top: 4px;
	min-height: 16px;
}

/* SUBMIT BUTTON */
.fp-submit {
	width: 100%;
	height: 46px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: var(--clr-primary);
	color: var(--clr-white);
	font-size: 14px;
	font-weight: 600;
	border: none;
	border-radius: var(--radius-pill);
	cursor: pointer;
	transition: all var(--transition-med);
	font-family: inherit;
	box-shadow: 0 4px 14px rgba(92, 45, 144, 0.25);
	margin-top: 8px;
	text-decoration: none;
}

.fp-submit:hover {
	background: var(--clr-primary-dark);
	transform: translateY(-1px);
	box-shadow: 0 6px 18px rgba(92, 45, 144, 0.35);
	color: var(--clr-white);
	text-decoration: none;
}

.fp-submit:active {
	transform: translateY(0);
}

.fp-submit:disabled {
	background: var(--clr-text-faint);
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
	opacity: 0.7;
}

.fp-submit.fp-loading {
	pointer-events: none;
	color: transparent !important;
	position: relative;
}

.fp-submit.fp-loading::after {
	content: '';
	position: absolute;
	width: 20px;
	height: 20px;
	top: 50%;
	left: 50%;
	margin: -10px 0 0 -10px;
	border: 2px solid rgba(255, 255, 255, 0.35);
	border-top-color: #fff;
	border-radius: 50%;
	animation: fpSpin 0.7s linear infinite;
}

@keyframes fpSpin {
	to {
		transform: rotate(360deg);
	}
}

/* CALLOUT */
.fp-callout {
	background: var(--clr-primary-pale);
	border-left: 3px solid var(--clr-primary-light);
	border-radius: 0 8px 8px 0;
	padding: 11px 14px;
	font-size: 12.5px;
	color: var(--clr-primary);
	line-height: 1.5;
	margin-bottom: 22px;
	display: flex;
	gap: 10px;
	align-items: flex-start;
}

.fp-callout i {
	margin-top: 2px;
	flex-shrink: 0;
}

/* SUCCESS BOX */
.fp-success-box {
	text-align: center;
	padding: 20px 0;
	animation: fpStepIn 0.4s ease;
}

.fp-success-icon {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background: linear-gradient(135deg, #d1fae5, #a7f3d0);
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 20px;
	font-size: 30px;
	color: #059669;
	animation: fpSuccessPop 0.5s cubic-bezier(.16, 1, .3, 1) 0.1s both;
}

@keyframes fpSuccessPop {
	from {
		transform: scale(0.5);
		opacity: 0;
	}

	to {
		transform: scale(1);
		opacity: 1;
	}
}

.fp-success-title {
	font-size: 22px;
	font-weight: 700;
	color: var(--clr-text-heading);
	margin-bottom: 8px;
}

.fp-success-msg {
	font-size: 13.5px;
	color: var(--clr-text-muted);
	line-height: 1.6;
	margin-bottom: 28px;
}

/* DIVIDER */
.fp-divider {
	text-align: center;
	position: relative;
	margin: 20px 0 16px;
}

.fp-divider::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	height: 1px;
	background: var(--clr-border);
}

.fp-divider span {
	position: relative;
	background: var(--clr-white);
	padding: 0 12px;
	font-size: 12px;
	color: var(--clr-text-muted);
	font-weight: 500;
}

/* PANEL FOOTER */
.fp-panel-footer {
	padding: 16px 44px 24px;
	text-align: center;
	border-top: 1px solid var(--clr-border);
}

.fp-footer-link {
	font-size: 13px;
	color: var(--clr-text-muted);
	margin: 0;
}

.fp-footer-link a {
	color: var(--clr-primary);
	font-weight: 600;
	text-decoration: none;
	transition: color var(--transition-fast);
}

.fp-footer-link a:hover {
	color: var(--clr-primary-dark);
	text-decoration: underline;
}

/* TOAST CONTAINER */
#fp-toast-container {
	position: fixed;
	bottom: 24px;
	right: 24px;
	z-index: 9999;
	display: flex;
	flex-direction: column;
	gap: 12px;
	pointer-events: none;
}

.fp-toast {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 14px 18px;
	border-radius: 12px;
	min-width: 300px;
	max-width: 400px;
	pointer-events: auto;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14), 0 0 0 1px rgba(0, 0, 0, 0.05);
	animation: fpToastIn 0.35s cubic-bezier(.16, 1, .3, 1) forwards;
}

.fp-toast.fp-toast-out {
	animation: fpToastOut 0.25s ease forwards;
}

@keyframes fpToastIn {
	from {
		transform: translateX(110%);
		opacity: 0;
	}

	to {
		transform: translateX(0);
		opacity: 1;
	}
}

@keyframes fpToastOut {
	from {
		transform: translateX(0);
		opacity: 1;
	}

	to {
		transform: translateX(110%);
		opacity: 0;
	}
}

.fp-toast.success {
	background: #ecfdf5;
	border-left: 4px solid #10b981;
	color: #065f46;
}

.fp-toast.error {
	background: #fef2f2;
	border-left: 4px solid #ef4444;
	color: #7f1d1d;
}

.fp-toast.info {
	background: #eff6ff;
	border-left: 4px solid #3b82f6;
	color: #1e3a8a;
}

.fp-toast.warning {
	background: #fffbeb;
	border-left: 4px solid #f59e0b;
	color: #78350f;
}

.fp-toast-icon {
	width: 26px;
	height: 26px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	flex-shrink: 0;
}

.fp-toast.success .fp-toast-icon {
	background: #d1fae5;
	color: #059669;
}

.fp-toast.error .fp-toast-icon {
	background: #fee2e2;
	color: #dc2626;
}

.fp-toast.info .fp-toast-icon {
	background: #dbeafe;
	color: #2563eb;
}

.fp-toast.warning .fp-toast-icon {
	background: #fef3c7;
	color: #d97706;
}

.fp-toast-body {
	flex: 1;
	min-width: 0;
}

.fp-toast-title {
	font-weight: 700;
	font-size: 13.5px;
	margin-bottom: 2px;
}

.fp-toast-msg {
	font-size: 12.5px;
	line-height: 1.5;
}

/* RESPONSIVE */
@media (max-width: 960px) {
	.fp-hero {
		display: none;
	}

	.fp-panel {
		flex: 1;
		width: 100%;
		max-width: 560px;
		margin: 0 auto;
		box-shadow: none;
	}

	.fp-container {
		justify-content: center;
		background: var(--clr-white);
	}
}

@media (max-width: 480px) {
	.fp-panel-inner {
		padding: 32px 22px;
	}

	.fp-panel-footer {
		padding: 14px 22px 20px;
	}
}

/* =============================================================================
   assetinfo.css  —  Asset Info page styles (extends theme.css)
============================================================================= */

/* Hero Strip */
.asset-hero-strip {
	display: flex;
	gap: 0;
	background: #fff;
	border-bottom: 1px solid var(--clr-border);
	padding: 0 24px;
	flex-wrap: wrap;
}

.asset-hero-stat {
	display: flex;
	flex-direction: column;
	padding: 14px 28px 14px 0;
	margin-right: 28px;
	border-right: 1px solid var(--clr-border);
	gap: 3px;
}

.asset-hero-stat:last-child {
	border-right: none;
}

.asset-hero-label {
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.6px;
	color: var(--clr-text-muted);
}

.asset-hero-value {
	font-size: 18px;
	font-weight: 700;
	color: var(--clr-primary);
}

.asset-hero-unit {
	font-size: 13px;
	font-weight: 500;
	color: var(--clr-text-muted);
}

.asset-hero-value a {
	color: var(--clr-primary);
	font-size: 13px;
}

/* Tab Navigation */
.asset-tabs-wrapper {
	width: 100%;
}

.asset-tab-content {
	width: 100%;
	overflow-y: scroll;
}

.asset-tabs {
	list-style: none;
	display: flex;
	gap: 4px;
	padding: 0 0 0 4px;
	margin: 0 0 20px 0;
	border-bottom: 2px solid var(--clr-primary-muted);
	flex-wrap: wrap;
}

.asset-tab {
	padding: 10px 22px;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--clr-text-muted);
	cursor: pointer;
	border-radius: 8px 8px 0 0;
	user-select: none;
	position: relative;
	bottom: -2px;
}

.asset-tab:hover {
	color: var(--clr-primary);
	background: var(--clr-primary-pale);
}

.asset-tab.active {
	color: var(--clr-primary);
	background: #fff;
	border: 2px solid var(--clr-primary-muted);
	border-bottom-color: #fff;
}

.asset-tab-pane {
	display: none;
}

.asset-tab-pane.active {
	display: block;
	animation: tabFadeIn 0.25s ease;
}

@keyframes tabFadeIn {
	from {
		opacity: 0;
		transform: translateY(6px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Info Layout (2-col) */
.info-layout {
	display: grid;
	grid-template-columns: 1fr 480px;
	gap: 18px;
	align-items: start;
}

@media (max-width: 1100px) {
	.info-layout {
		grid-template-columns: 1fr;
	}
}

/* Section Header Row */
.section-header-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 16px;
}

.section-header-row .section-title {
	margin-bottom: 0;
	padding-bottom: 0;
	border-bottom: none;
}

.section-desc {
	font-size: 13px;
	color: var(--clr-text-muted);
	margin: 0;
}

.section-desc i {
	color: var(--clr-info);
}

/* Edit Button */
.btn-edit {
	padding: 6px 14px;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--clr-primary);
	background: var(--clr-primary-pale);
	border: 1.5px solid var(--clr-primary-light);
	border-radius: var(--radius-pill);
	cursor: pointer;
	transition: all 0.2s ease;
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.btn-edit:hover {
	background: var(--clr-primary);
	color: #fff;
	transform: translateY(-1px);
}

/* Detail Blocks */
.detail-grid {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.detail-block {
	background: var(--clr-surface);
	border: 1px solid var(--clr-border);
	border-radius: var(--radius-md);
	overflow: hidden;
}

.detail-block--grid2 .detail-row {
	display: grid;
	grid-template-columns: 200px 1fr;
}

.detail-row {
	display: flex;
	align-items: baseline;
	border-bottom: 1px solid var(--clr-border);
	padding: 9px 14px;
	gap: 12px;
	transition: background 0.15s ease;
}

.detail-row:last-child {
	border-bottom: none;
}

.detail-row:hover {
	background: var(--clr-primary-pale);
}

.detail-label {
	min-width: 170px;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--clr-text-muted);
	text-transform: uppercase;
	letter-spacing: 0.3px;
	flex-shrink: 0;
}

.detail-value {
	font-size: 13px;
	color: var(--clr-text-body);
	font-weight: 500;
}

/* Input with Addon */
.input-with-addon {
	display: flex;
	align-items: stretch;
	border: 2px solid var(--clr-border);
	border-radius: var(--radius-md);
	overflow: hidden;
	transition: border-color 0.2s ease;
}

.input-with-addon:focus-within {
	border-color: var(--clr-primary);
	box-shadow: 0 0 0 3px rgba(92, 45, 144, 0.1);
}

.input-with-addon .mdl-form-control {
	border: none;
	box-shadow: none;
	border-radius: 0;
	flex: 1;
}

.input-with-addon .mdl-form-control:focus {
	border: none;
	box-shadow: none;
}

.input-addon {
	display: flex;
	align-items: center;
	padding: 0 12px;
	background: var(--clr-primary-muted);
	color: var(--clr-primary);
	font-size: 12px;
	font-weight: 700;
	white-space: nowrap;
}

/* =============================================================================
   axle-diagram.css  — Vehicle tyre position diagram + tyre detail modal
   Extends: theme.css (uses its CSS variables)
============================================================================= */

/* Panel Shell */
.axle-panel {
	background: #fff;
	border: 1px solid var(--clr-border);
	border-radius: var(--radius-lg);
	overflow: hidden;
	box-shadow: var(--shadow-sm);
}

.axle-panel__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 16px;
	background: var(--clr-primary-pale);
	border-bottom: 1px solid var(--clr-primary-muted);
}

.axle-panel__title {
	font-size: 12.5px;
	font-weight: 700;
	color: var(--clr-primary);
	text-transform: uppercase;
	letter-spacing: 0.6px;
}

.axle-panel__subtitle {
	font-size: 11px;
	font-weight: 600;
	color: var(--clr-text-muted);
}

/* Diagram Container */
#axle-diagram {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0;
	width: 100%;
	min-height: 220px;
	position: relative;
}

.axle-diagram {
	padding-top: 18px;
}

.axle-diagram__spinner {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	color: var(--clr-text-faint);
	font-size: 20px;
}

/* Vehicle Body */
.veh-body {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0;
	position: relative;
	z-index: 2;
}

/* Front bumper cap */
.veh-nose {
	width: 52px;
	height: 14px;
	background: linear-gradient(180deg, var(--clr-primary) 0%, var(--clr-primary-light) 100%);
	border-radius: 10px 10px 0 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.veh-nose__label {
	font-size: 8px;
	font-weight: 800;
	color: #fff;
	letter-spacing: 1.5px;
	text-transform: uppercase;
}

/* Chassis segment between axles */
.veh-chassis {
	width: 52px;
	background: var(--clr-primary-muted);
	border-left: 2px solid var(--clr-primary-light);
	border-right: 2px solid var(--clr-primary-light);
	flex-shrink: 0;
}

/* Rear bumper cap */
.veh-tail {
	width: 52px;
	height: 10px;
	background: var(--clr-primary-muted);
	border-radius: 0 0 8px 8px;
	border: 2px solid var(--clr-primary-light);
	border-top: none;
}

/* Axle Row */
.axle-row {
	display: flex;
	align-items: center;
	position: relative;
	z-index: 3;
	gap: 16px;
	width: 100%;
	justify-content: center;
}

/* Axle shaft spanning full width */
.axle-shaft {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	height: 5px;
	background: linear-gradient(90deg, #94a3b8 0%, #64748b 50%, #94a3b8 100%);
	border-radius: 3px;
	z-index: 0;
}

/* Side clusters */
.axle-side {
	display: flex;
	gap: 3px;
	align-items: center;
	z-index: 2;
	position: relative;
}

.axle-side--left {
	flex-direction: row-reverse;
}

.axle-side--right {
	flex-direction: row;
}

/* Centre label box (body section at axle level) */
.axle-center {
	width: 52px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 4;
	position: relative;
}

.axle-name-tag {
	font-size: 9px;
	font-weight: 700;
	color: var(--clr-primary);
	background: var(--clr-primary-pale);
	border: 1px solid var(--clr-primary-muted);
	border-radius: 4px;
	padding: 2px 6px;
	white-space: nowrap;
	text-transform: uppercase;
	letter-spacing: 0.4px;
	position: relative;
	z-index: 1;
}

/* Tyre Block */
.tyre-slot {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 3px;
	cursor: pointer;
	transition: transform 0.15s ease, filter 0.15s ease;
	position: relative;
}

.tyre-slot:hover {
	transform: scale(1.12);
	filter: drop-shadow(0 2px 6px rgba(92, 45, 144, 0.35));
}

.tyre-slot:hover .tyre-block {
	border-color: var(--clr-primary);
}

/* The tyre block itself */
.tyre-block {
	border-radius: 5px;
	border: 2px solid #64748b;
	background: #334155;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	transition: all 0.2s ease;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 2px 4px rgba(0, 0, 0, 0.25);
}

/* Size variants */
.tyre-block--single {
	width: 22px;
	height: 52px;
}

.tyre-block--dual {
	width: 18px;
	height: 46px;
}

.tyre-block--steer {
	width: 24px;
	height: 56px;
	border-color: #3b82f6;
	background: #1e40af;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 2px 4px rgba(30, 64, 175, 0.4);
}

/* Tread grooves (decorative lines) */
.tyre-block::before {
	content: '';
	position: absolute;
	top: 8px;
	bottom: 8px;
	left: 3px;
	right: 3px;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
	pointer-events: none;
}

/* Status colour overrides */
.tyre-block--ok {
	border-color: #16a34a;
	background: #14532d;
}

.tyre-block--warn {
	border-color: #d97706;
	background: #78350f;
}

.tyre-block--critical {
	border-color: #dc2626;
	background: #7f1d1d;
}

.tyre-block--empty {
	border-style: dashed;
	border-color: #cbd5e1;
	background: var(--clr-surface) !important;
}

/* Status dot */
.tyre-status-dot {
	position: absolute;
	top: 4px;
	left: 50%;
	transform: translateX(-50%);
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.6);
}

/* KTT label below each tyre */
.tyre-pos-label {
	font-size: 9px;
	font-weight: 700;
	color: var(--clr-primary);
	background: var(--clr-primary-pale);
	border-radius: 3px;
	padding: 1px 4px;
	line-height: 1.3;
	white-space: nowrap;
	text-align: center;
	letter-spacing: 0.2px;
}

.tyre-slot--steer .tyre-pos-label {
	color: #1d4ed8;
	background: #eff6ff;
}

/* Spare Wheel Row */
.axle-row--spare {
	margin-top: 12px;
	gap: 8px;
	flex-direction: column;
	align-items: center;
}

.spare-divider {
	width: 80%;
	height: 1px;
	background: var(--clr-border);
	margin-bottom: 4px;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
}

.spare-divider::after {
	content: 'SPARE';
	position: absolute;
	background: #fff;
	padding: 0 8px;
	font-size: 9px;
	font-weight: 700;
	color: var(--clr-text-faint);
	letter-spacing: 1px;
}

.tyre-block--spare {
	width: 34px;
	height: 34px;
	border-radius: 50% !important;
	border-width: 3px;
	border-color: #94a3b8;
	background: #334155;
}

.tyre-block--spare::before {
	display: none;
}

/* Tyre Detail Modal */
.tyre-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(15, 23, 42, 0.55);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 6000;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease, visibility 0.25s ease;
	backdrop-filter: blur(3px);
	padding: 16px;
}

.tyre-modal-overlay.active {
	opacity: 1;
	visibility: visible;
}

.tyre-modal {
	background: #fff;
	border-radius: var(--radius-lg);
	width: 100%;
	max-width: 520px;
	max-height: 90vh;
	display: flex;
	flex-direction: column;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
	transform: scale(0.92) translateY(16px);
	transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
	overflow: hidden;
}

.tyre-modal-overlay.active .tyre-modal {
	transform: scale(1) translateY(0);
}

/* Modal header */
.tyre-modal__header {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 18px;
	background: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-primary-light) 100%);
	flex-shrink: 0;
}

.tyre-modal__badge {
	background: rgba(255, 255, 255, 0.2);
	color: #fff;
	font-size: 12px;
	font-weight: 800;
	padding: 4px 10px;
	border-radius: var(--radius-pill);
	border: 1.5px solid rgba(255, 255, 255, 0.35);
	letter-spacing: 0.5px;
	white-space: nowrap;
}

.tyre-modal__title {
	flex: 1;
	font-size: 15px;
	font-weight: 700;
	color: #fff;
	margin: 0;
}

.tyre-modal__close {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: 1.5px solid rgba(255, 255, 255, 0.4);
	background: transparent;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	font-size: 13px;
	transition: background 0.2s ease, transform 0.2s ease;
	flex-shrink: 0;
}

.tyre-modal__close:hover {
	background: rgba(255, 255, 255, 0.2);
	transform: rotate(90deg);
}

/* Modal body */
.tyre-modal__body {
	flex: 1;
	overflow-y: auto;
	padding: 18px 20px;
}

.tm-status-row {
	display: flex;
	align-items: center;
	gap: 25px;
}

.tm-status-chip {
	display: inline-flex;
	align-items: center;
	padding: 4px 12px;
	border-radius: var(--radius-pill);
	font-size: 11.5px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.4px;
	background: var(--clr-primary-muted);
	color: var(--clr-primary);
}

.tm-status-chip.in-use {
	background: #d1fae5;
	color: #065f46;
}

.tm-status-chip.in-stock {
	background: #dbeafe;
	color: #1e40af;
}

.tm-status-chip.removed {
	background: #fee2e2;
	color: #7f1d1d;
}

.tm-status-chip.retreading {
	background: #fef3c7;
	color: #78350f;
}

.tm-status-chip.scrap {
	background: #f1f5f9;
	color: #475569;
}

.tm-condition {
	font-size: 12px;
	font-weight: 600;
	color: var(--clr-text-muted);
}

/* Detail grid */
.tm-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1px;
	background: var(--clr-border);
	border: 1px solid var(--clr-border);
	border-radius: var(--radius-md);
	overflow: hidden;
	margin-bottom: 14px;
}

.tm-field {
	display: flex;
	flex-direction: column;
	gap: 3px;
	padding: 9px 12px;
	background: #fff;
	transition: background 0.15s ease;
}

.tm-field:hover {
	background: var(--clr-primary-pale);
}

.tm-label {
	font-size: 10.5px;
	font-weight: 700;
	color: var(--clr-text-muted);
	text-transform: uppercase;
	letter-spacing: 0.4px;
}

.tm-value {
	font-size: 13px;
	font-weight: 600;
	color: var(--clr-text-body);
}

.tm-value.empty {
	color: var(--clr-text-faint);
	font-weight: 400;
	font-style: italic;
}

/* Remarks */
.tm-remarks-row {
	background: var(--clr-surface);
	border-radius: var(--radius-md);
	padding: 10px 12px;
}

.tm-remarks {
	font-size: 12.5px;
	color: var(--clr-text-body);
	margin: 4px 0 0;
	line-height: 1.6;
}

/* Modal footer */
.tyre-modal__footer {
	padding: 12px 18px;
	border-top: 1px solid var(--clr-border);
	display: flex;
	gap: 10px;
	justify-content: flex-end;
	flex-shrink: 0;
	background: #fafafa;
}

/* Responsive */
@media (max-width: 600px) {
	.tm-grid {
		grid-template-columns: 1fr;
	}

	.tyre-modal {
		max-width: 100%;
	}
}

/* =============================================================================
   customer-create.css  —  5-step Customer Onboarding Wizard
   Extends: theme.css  (all --clr-* tokens and component classes are inherited)
============================================================================= */

/* Page Body */
#customerWizardPage {
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0;
	background: var(--clr-bg);
	flex: 1;
}

/* Progress Bar */
.cw-progress-bar {
	display: flex;
	align-items: center;
	padding: 22px 32px 18px;
	background: #fff;
	border-bottom: 1px solid var(--clr-border);
	gap: 0;
	flex-wrap: nowrap;
	overflow-x: auto;
}

.cw-step {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 7px;
	flex-shrink: 0;
}

.cw-step__circle {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: #e2e8f0;
	border: 2px solid #e2e8f0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	font-weight: 700;
	color: #64748b;
	transition: all 0.3s ease;
	position: relative;
}

.cw-step__num {
	line-height: 1;
}

.cw-step__check {
	display: none;
}

.cw-step__label {
	font-size: 12px;
	font-weight: 600;
	color: #94a3b8;
	white-space: nowrap;
	transition: color 0.3s ease;
}

/* Active step */
.cw-step--active .cw-step__circle {
	background: var(--clr-primary);
	border-color: var(--clr-primary);
	color: #fff;
	box-shadow: 0 0 0 4px rgba(92, 45, 144, 0.15);
}

.cw-step--active .cw-step__label {
	color: var(--clr-primary);
}

/* Completed step */
.cw-step--done .cw-step__circle {
	background: var(--clr-success);
	border-color: var(--clr-success);
	color: #fff;
}

.cw-step--done .cw-step__num {
	display: none;
}

.cw-step--done .cw-step__check {
	display: block;
}

.cw-step--done .cw-step__label {
	color: var(--clr-success);
}

/* Connector line */
.cw-connector {
	flex: 1;
	height: 2px;
	background: #e2e8f0;
	min-width: 32px;
	margin-bottom: 22px;
	transition: background 0.3s ease;
}

.cw-connector--done {
	background: var(--clr-success);
}

/* Panel */
.cw-panel {
	flex: 1;
	animation: cwPanelIn 0.28s ease forwards;
}

.cw-panel__inner {
	max-width: 1100px;
	margin: 0 auto;
	padding: 24px 24px 0;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

@keyframes cwPanelIn {
	from {
		opacity: 0;
		transform: translateX(18px);
	}

	to {
		opacity: 1;
		transform: translateX(0);
	}
}

/* Section Card */
.cw-section {
	background: #fff;
	border: 1px solid var(--clr-border);
	border-radius: var(--radius-lg);
	overflow: visible;
}

.cw-section__head {
	display: flex;
	align-items: center;
	gap: 9px;
	padding: 12px 18px;
	background: var(--clr-primary-pale);
	border-bottom: 1px solid var(--clr-primary-muted);
	font-size: 13.5px;
	font-weight: 700;
	color: var(--clr-primary);
}

.cw-section__head i {
	font-size: 14px;
}

.cw-section__head>span {
	flex: 1;
}

/* Grid Helpers */
.cw-grid {
	display: grid;
	gap: 14px;
	padding: 18px;
}

.cw-grid--2 {
	grid-template-columns: repeat(2, 1fr);
}

.cw-grid--3 {
	grid-template-columns: repeat(3, 1fr);
}

.cw-grid--4 {
	grid-template-columns: repeat(4, 1fr);
}

.cw-span2 {
	grid-column: span 2;
}

/* List Container */
.cw-list-container {
	padding: 14px 18px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.cw-list-container:empty::after {
	content: 'No items added yet.';
	display: block;
	font-size: 13px;
	color: #94a3b8;
	text-align: center;
	padding: 18px 0;
}

/* Row card (workshop / user / vehicle group / vendor) */
.cw-row-card {
	background: var(--clr-surface);
	border: 1px solid var(--clr-border);
	border-radius: var(--radius-md);
	padding: 14px 16px;
	position: relative;
}

.cw-row-card__grid {
	display: grid;
	gap: 12px;
}

.cw-row-card__grid--2 {
	grid-template-columns: repeat(2, 1fr);
}

.cw-row-card__grid--3 {
	grid-template-columns: repeat(3, 1fr);
}

.cw-row-card__grid--4 {
	grid-template-columns: repeat(4, 1fr);
}

.cw-row-card__grid--5 {
	grid-template-columns: repeat(5, 1fr);
}

.cw-row-card__grid--6 {
	grid-template-columns: repeat(6, 1fr) 38px;
}

.cw-row-card__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 12px;
}

.cw-row-card__title {
	font-size: 13px;
	font-weight: 700;
	color: var(--clr-primary);
}

/* Remove button */
.cw-btn-remove {
	width: 32px;
	height: 32px;
	border: 1.5px solid #fecdd3;
	background: #fff1f2;
	color: #be123c;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	font-size: 13px;
	transition: all 0.2s ease;
	flex-shrink: 0;
}

.cw-btn-remove:hover {
	background: #be123c;
	color: #fff;
	border-color: #be123c;
}

/* Add button (section header) */
.cw-btn-add {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 5px 12px;
	font-size: 12px;
	font-weight: 600;
	background: var(--clr-primary);
	color: #fff;
	border: none;
	border-radius: var(--radius-pill);
	cursor: pointer;
	transition: all 0.2s ease;
	font-family: inherit;
}

.cw-btn-add:hover {
	background: var(--clr-primary-dark);
	transform: translateY(-1px);
}

.cw-btn-add i {
	font-size: 11px;
}

/* Map embed */
.cw-map-wrap {
	border-radius: var(--radius-md);
	overflow: hidden;
	border: 1px solid var(--clr-border);
	margin-top: 10px;
	height: 200px;
}

.cw-map-wrap iframe,
.cw-map-wrap #map {
	width: 100%;
	height: 100%;
	border: none;
	display: block;
}

/* Callouts */
.cw-callout {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 12px 16px;
	border-radius: var(--radius-md);
	font-size: 13px;
	line-height: 1.6;
}

.cw-callout>i {
	margin-top: 1px;
	flex-shrink: 0;
}

.cw-callout--info {
	background: #dbeafe;
	color: #1e40af;
	border-left: 3px solid #2563eb;
}

.cw-callout--purple {
	background: var(--clr-primary-pale);
	color: var(--clr-primary);
	border-left: 3px solid var(--clr-primary);
}

.cw-callout--warn {
	background: #fef3c7;
	color: #92400e;
	border-left: 3px solid #d97706;
}

/* Vendor row tabs (existing/new) */
.cw-vendor-tabs {
	display: flex;
	gap: 6px;
	margin-bottom: 10px;
}

.cw-vendor-tab {
	padding: 4px 12px;
	font-size: 12px;
	font-weight: 600;
	border: 1.5px solid var(--clr-primary-muted);
	border-radius: var(--radius-pill);
	background: #fff;
	color: var(--clr-primary);
	cursor: pointer;
	transition: all 0.2s ease;
	font-family: inherit;
}

.cw-vendor-tab--active {
	background: var(--clr-primary);
	color: #fff;
	border-color: var(--clr-primary);
}

.toggle-switcher {
	display: inline-flex;
	align-items: center;
	background: #f4f1fb;
	border: 1px solid #e0d7f7;
	border-radius: 50px;
	padding: 4px;
	gap: 5px;
}

.toggle-switcher .toggle-btn {
	padding: 6px 18px;
	border: none;
	border-radius: 50px;
	background: transparent;
	font-size: 14px;
	font-weight: 500;
	color: #6b6b6b;
	cursor: pointer;
	transition: all 0.25s ease;
	outline: none;
}

.toggle-switcher .toggle-btn.active {
	background: linear-gradient(135deg, #6a11cb, #7b2ff7);
	color: #fff;
	box-shadow: 0 3px 10px rgba(123, 47, 247, 0.3);
	font-weight: 600;
}

/* Hover */
.toggle-switcher .toggle-btn:not(.active):hover {
	background: #ebe6fb;
	color: #5a2fd6;
}

.toggle-switcher .toggle-btn.active {
	transform: scale(1.02);
}

.empty-state {
	padding: 20px 10px;
	/* reduce vertical space */
	text-align: center;
	min-height: 120px;
	/* reduce height */
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.empty-state {
	padding: 12px 10px;
	min-height: 80px;
}

.empty-state-icon {
	font-size: 28px;
	margin-bottom: 8px;
}

/* Nav row */
.cw-nav-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 24px;
	background: #fff;
	border-top: 1px solid var(--clr-border);
	margin-top: auto;
	position: sticky;
	bottom: 0;
	z-index: 100;
}

.cw-nav-row__right {
	display: flex;
	gap: 10px;
	align-items: center;
}

/* Workshop geozone tag */
.cw-geo-tag {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 3px 9px;
	background: var(--clr-primary-muted);
	color: var(--clr-primary);
	border-radius: var(--radius-pill);
	font-size: 11.5px;
	font-weight: 600;
}

/* Wheeler position counter */
.cw-position-badge {
	display: inline-flex;
	align-items: center;
	padding: 3px 9px;
	border-radius: var(--radius-pill);
	font-size: 12px;
	font-weight: 700;
	background: #dcfce7;
	color: #15803d;
}

/* mt helper */
.mt-3 {
	margin-top: 12px;
}

/* Responsive */
@media (max-width: 900px) {
	.cw-grid--4 {
		grid-template-columns: repeat(2, 1fr);
	}

	.cw-grid--3 {
		grid-template-columns: repeat(2, 1fr);
	}

	.cw-row-card__grid--6 {
		grid-template-columns: repeat(3, 1fr) 38px;
	}

	.cw-row-card__grid--5 {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 600px) {

	.cw-grid--4,
	.cw-grid--3,
	.cw-grid--2 {
		grid-template-columns: 1fr;
	}

	.cw-span2 {
		grid-column: span 1;
	}

	.cw-row-card__grid--6,
	.cw-row-card__grid--5,
	.cw-row-card__grid--4,
	.cw-row-card__grid--3,
	.cw-row-card__grid--2 {
		grid-template-columns: 1fr;
	}

	.cw-progress-bar {
		gap: 4px;
		padding: 14px 12px 10px;
	}

	.cw-step__label {
		font-size: 10px;
	}

	.cw-connector {
		min-width: 16px;
	}
}

/* =============================================================================
   AVOLVE DATA FIX CENTER
   Stylesheet for the Data Fix module — extends theme.css and bootstrap-theme.css.
   All colours reference the Avolve design-token variables defined in theme.css.

   TABLE OF CONTENTS
   -----------------
   1. Page Header Banner
   2. Search Bar
   3. Fix Cards Grid
   4. Fix Card
   5. Fix Card — Icon
   6. Fix Card — Badges
   7. Fix Card — Launch Button
   8. Fix Card — Draft / Inactive State
   9. No-Results State
   10. Responsive Overrides
============================================================================= */


/* =============================================================================
   1. PAGE HEADER BANNER
============================================================================= */

.df-page-header {
	display: flex;
	align-items: center;
	gap: 16px;
	background: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-primary-light) 100%);
	border-radius: var(--radius-lg);
	padding: 22px 28px;
	margin-bottom: 24px;
	box-shadow: 0 4px 20px rgba(92, 45, 144, 0.18);
}

.df-page-header__icon {
	width: 48px;
	height: 48px;
	background: rgba(255, 255, 255, 0.18);
	border-radius: var(--radius-md);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.df-page-header__icon .fa {
	font-size: 20px;
	color: #fff;
}

.df-page-header__title {
	color: #fff;
	font-size: 20px;
	font-weight: 700;
	margin: 0 0 4px 0;
}

.df-page-header__subtitle {
	color: rgba(255, 255, 255, 0.85);
	font-size: 13.5px;
	margin: 0;
}


/* =============================================================================
   2. SEARCH BAR
============================================================================= */

.df-search-bar {
	background: #fff;
	border: 1.5px solid var(--clr-primary-muted);
	border-radius: var(--radius-md);
	padding: 14px 18px;
	margin-bottom: 24px;
	display: flex;
	align-items: center;
	gap: 12px;
	box-shadow: var(--shadow-sm);
}

.df-search-wrapper {
	position: relative;
	flex: 1;
}

.df-search-icon {
	position: absolute;
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--clr-primary-light);
	font-size: 14px;
	pointer-events: none;
}

.df-search-input {
	width: 250px;
	height: 42px;
	padding: 8px 16px 8px 42px;
	border: 1.5px solid var(--clr-border);
	border-radius: var(--radius-md);
	font-size: 13.5px;
	color: var(--clr-text-body);
	background: var(--clr-surface);
	transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
	font-family: inherit;
}

.df-search-input:focus {
	outline: none;
	border-color: var(--clr-primary);
	background: #fff;
	box-shadow: 0 0 0 3px rgba(92, 45, 144, 0.12);
}

.df-search-input::placeholder {
	color: var(--clr-text-faint);
	font-size: 13px;
}


/* =============================================================================
   3. FIX CARDS GRID
============================================================================= */

.df-cards-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 20px;
}


/* =============================================================================
   4. FIX CARD
============================================================================= */

.df-card {
	background: var(--clr-surface);
	border: 1.5px solid var(--clr-primary-muted);
	border-radius: var(--radius-lg);
	display: flex;
	flex-direction: column;
	transition:
		border-color var(--transition-med),
		box-shadow var(--transition-med),
		transform var(--transition-med),
		background var(--transition-med);
}

.df-card:hover {
	background: #fff;
	border-color: var(--clr-primary);
	box-shadow: 0 6px 20px rgba(92, 45, 144, 0.14);
	transform: translateY(-3px);
}

.df-card__body {
	padding: 20px 20px 14px;
	flex: 1;
}

.df-card__header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 12px;
}

.df-card__title-group {
	display: flex;
	align-items: center;
	gap: 10px;
}

.df-card__title {
	font-size: 15px;
	font-weight: 650;
	color: var(--clr-text-heading);
	margin: 0;
}

.df-card__description {
	font-size: 13.5px;
	color: var(--clr-text-muted);
	line-height: 1.65;
	margin: 0;
}

.df-card__footer {
	padding: 12px 20px 16px;
	border-top: 1px solid var(--clr-primary-muted);
}


/* =============================================================================
   5. FIX CARD — ICON
============================================================================= */

.df-card__icon {
	width: 34px;
	height: 34px;
	border-radius: var(--radius-sm);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	flex-shrink: 0;
	background: var(--clr-primary-tint);
	color: var(--clr-primary);
	transition: background var(--transition-fast);
}

.df-card:hover .df-card__icon {
	background: var(--clr-primary-muted);
}


/* =============================================================================
   6. FIX CARD — BADGES
============================================================================= */

.df-badge {
	display: inline-block;
	padding: 3px 10px;
	border-radius: var(--radius-pill);
	font-size: 10.5px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.4px;
	flex-shrink: 0;
}

.df-badge--active {
	background: #d1fae5;
	color: #065f46;
}

.df-badge--draft {
	background: var(--clr-primary-muted);
	color: var(--clr-primary);
}


/* =============================================================================
   7. FIX CARD — LAUNCH BUTTON
============================================================================= */

.df-btn-launch {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	width: 100%;
	padding: 10px 0;
	background: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-primary-light) 100%);
	color: #fff;
	border: none;
	border-radius: var(--radius-md);
	font-size: 13.5px;
	font-weight: 600;
	cursor: pointer;
	transition:
		opacity var(--transition-fast),
		transform var(--transition-fast),
		box-shadow var(--transition-fast);
	font-family: inherit;
}

.df-btn-launch .fa {
	font-size: 12px;
}

.df-btn-launch:hover {
	opacity: 0.92;
	transform: translateY(-1px);
	box-shadow: 0 6px 18px rgba(92, 45, 144, 0.32);
	color: #fff;
}

.df-btn-launch:active {
	transform: translateY(0);
	box-shadow: 0 2px 8px rgba(92, 45, 144, 0.2);
}


/* =============================================================================
   8. FIX CARD — DRAFT / INACTIVE STATE
============================================================================= */

.df-card--draft {
	opacity: 0.6;
	pointer-events: none;
}

.df-card--draft:hover {
	transform: none;
	box-shadow: none;
	border-color: var(--clr-primary-muted);
	background: var(--clr-surface);
}

.df-coming-soon {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 12.5px;
	color: var(--clr-text-faint);
	font-weight: 500;
}

.df-coming-soon .fa {
	font-size: 12px;
}


/* =============================================================================
   9. NO-RESULTS STATE
============================================================================= */

.df-no-results {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	background: #fff;
	border: 1.5px solid var(--clr-primary-muted);
	border-radius: var(--radius-lg);
	padding: 28px;
	min-height: 80px;
}

.df-no-results__icon {
	width: 38px;
	height: 38px;
	background: var(--clr-primary-tint);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.df-no-results__icon .fa {
	font-size: 16px;
	color: var(--clr-primary-light);
}

.df-no-results__text {
	font-size: 15px;
	font-weight: 600;
	color: var(--clr-text-muted);
	margin: 0;
}


/* =============================================================================
   10. RESPONSIVE OVERRIDES
============================================================================= */

@media (max-width: 768px) {
	.df-cards-grid {
		grid-template-columns: 1fr;
	}

	.df-page-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
		padding: 18px 20px;
	}

	.df-search-bar {
		flex-direction: column;
		align-items: stretch;
	}

	.hero-top-logos {
		top: -5px;
		left: -25px;
		right: -25px;
	}

	.top-logo-avolve {
		max-height: 65px;
	}

	.top-logo-apollo {
		max-height: 35px;
	}
}

@media (max-width: 480px) {
	.df-page-header {
		padding: 14px 16px;
	}

	.df-page-header__title {
		font-size: 17px;
	}

	.df-search-bar {
		padding: 12px 14px;
	}

	.df-card__body {
		padding: 16px 16px 12px;
	}

	.df-card__footer {
		padding: 10px 16px 14px;
	}
}

/* =============================================================================
   AVOLVE DATA FIX — MODAL STYLES
   Shared stylesheet for Offer Update and Tyre Histories Update modals.
   Extends theme.css + bootstrap-theme.css with minimal custom rules.

   TABLE OF CONTENTS
   -----------------
   1.  Modal Shell
   2.  Offer Info Strip
   3.  Table Wrapper
   4.  Table Header
   5.  Table Body — Editable Cells
   6.  Date Picker Cell
   7.  Depth Fields
   8.  Row States  (modified / error)
   9.  Reset Button
   10. Info Banner
   11. Responsive
============================================================================= */


/* =============================================================================
   1. MODAL SHELL
   Override Bootstrap defaults to match the Avolve design system.
============================================================================= */

#updateOfferModal .modal-content,
#updateTyreHistoryModal .modal-content {
	border-radius: var(--radius-lg);
	box-shadow: 0 8px 40px rgba(0, 0, 0, 0.18);
	border: none;
}

#updateOfferModal .modal-dialog,
#updateTyreHistoryModal .modal-dialog {
	max-width: 1600px;
	width: 96vw;
}

/* Reuse .modal-header styling already defined in bootstrap-theme.css */

#updateOfferModal .modal-header,
#updateTyreHistoryModal .modal-header {
	border-bottom: 2px solid var(--avolve-primary);
}

/* Footer */
#updateOfferModal .modal-footer,
#updateTyreHistoryModal .modal-footer {
	background: #faf8fc;
	border-top: 2px solid var(--avolve-light);
	gap: 12px;
}

/* Save / action button */
#updateOfferBtn,
#updateTyreHistoryBtn {
	background: var(--avolve-primary);
	border-color: var(--avolve-primary);
	color: #fff;
	font-weight: 600;
	padding: 9px 28px;
	border-radius: var(--radius-pill, 50px);
	transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

#updateOfferBtn:hover,
#updateTyreHistoryBtn:hover {
	background: var(--avolve-primary-dark);
	border-color: var(--avolve-primary-dark);
	transform: translateY(-1px);
	box-shadow: 0 4px 14px rgba(92, 45, 144, 0.3);
	color: #fff;
}


/* =============================================================================
   2. OFFER INFO STRIP
============================================================================= */

.offer-info-strip {
	background: var(--avolve-lighter);
	border: 1.5px solid var(--avolve-light);
	border-radius: var(--radius-md);
	padding: 14px 18px;
	margin-bottom: 16px;
}

.offer-stat {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.offer-stat__label {
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.4px;
	color: #64748b;
}

.offer-stat__value {
	font-size: 13.5px;
	font-weight: 600;
	color: var(--avolve-primary);
}

.offer-stat__input {
	max-width: 90px;
	font-size: 13px;
	font-weight: 600;
	color: var(--avolve-primary);
	background: #fff;
	border-color: var(--avolve-light);
}

.offer-stat__input:focus {
	border-color: var(--avolve-primary);
	box-shadow: 0 0 0 3px rgba(92, 45, 144, 0.1);
}


/* =============================================================================
   3. TABLE WRAPPER
============================================================================= */

.adf-table-wrap {
	border: 1px solid #dee2e6;
	margin-bottom: 20px;
	border-radius: var(--radius-md);
	overflow: hidden;
	max-height: 58vh;
	overflow-y: auto;
	overflow-x: auto;
}

/* Custom scrollbar */
.adf-table-wrap::-webkit-scrollbar {
	width: 6px;
	height: 6px;
}

.adf-table-wrap::-webkit-scrollbar-track {
	background: #f1f5f9;
}

.adf-table-wrap::-webkit-scrollbar-thumb {
	background: rgba(92, 45, 144, 0.35);
	border-radius: 4px;
}

.adf-table-wrap::-webkit-scrollbar-thumb:hover {
	background: var(--avolve-primary);
}


/* =============================================================================
   4. TABLE HEADER
   Sticky + Avolve tint
============================================================================= */

.adf-table-wrap table thead th {
	position: sticky;
	top: 0;
	z-index: 10;
	background: var(--avolve-lighter);
	color: var(--avolve-primary);
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: 0.3px;
	border-bottom: 2px solid var(--avolve-light) !important;
	white-space: nowrap;
	text-align: center;
	padding: 11px 12px;
}


/* =============================================================================
   5. TABLE BODY — EDITABLE CELLS
============================================================================= */

.adf-table-wrap tbody td {
	padding: 5px 12px;
	vertical-align: middle;
	font-size: 13.5px;
}

/* Compact form controls inside table */
.adf-table-wrap .form-control,
.adf-table-wrap .form-select {
	font-size: 13px;
	border-color: #dee2e6;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.adf-table-wrap .form-control:focus,
.adf-table-wrap .form-select:focus {
	border-color: var(--avolve-primary);
	box-shadow: 0 0 0 3px rgba(92, 45, 144, 0.12);
}

/* Remove row link */
.adf-remove-row {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	color: #dc2626;
	background: #fee2e2;
	border-radius: 6px;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.2s ease;
	text-decoration: none;
	font-size: 13px;
}

.adf-remove-row:hover {
	background: #dc2626;
	color: #fff;
	transform: scale(1.1);
}


/* =============================================================================
   6. DATE PICKER CELL
============================================================================= */

.datetime-picker-wrapper {
	position: relative;
}

.date-label-cell {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 5px 10px;
	border-radius: var(--radius-sm);
	background: #f8f9fa;
	border: 1px solid #dee2e6;
	cursor: pointer;
	transition: border-color 0.2s ease, background 0.2s ease;
	min-width: 160px;
}

.date-label-cell:hover {
	background: var(--avolve-lighter);
	border-color: var(--avolve-primary);
}

.date-label-text {
	font-size: 12.5px;
	font-weight: 500;
	color: #334155;
	flex: 1;
}

.date-calendar-icon {
	color: var(--avolve-primary);
	font-size: 14px;
	flex-shrink: 0;
	transition: transform 0.2s ease;
}

.date-label-cell:hover .date-calendar-icon {
	transform: scale(1.15);
}

/* Hidden native input — shown programmatically */
.datetime-picker-input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 5;
}


/* =============================================================================
   7. DEPTH FIELDS
============================================================================= */

.adf-depth-group {
	display: flex;
	gap: 5px;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
}

.adf-groove-label {
	font-size: 10.5px;
	font-weight: 700;
	color: var(--avolve-primary);
	background: var(--avolve-light);
	padding: 4px 5px;
	border-radius: 4px 0 0 4px;
	border: 1px solid var(--avolve-light);
	border-right: none;
	white-space: nowrap;
}

.adf-groove-input {
	width: 62px !important;
	border-radius: 0 4px 4px 0 !important;
	text-align: center;
	font-size: 12.5px !important;
	padding: 4px 6px !important;
}

.adf-depth-single {
	width: 88px !important;
	text-align: center;
	font-size: 12.5px !important;
}


/* =============================================================================
   8. ROW STATES
============================================================================= */

/* Modified (unsaved change) */
#offerDetailsTable tbody tr.row-modified,
#updateTyreHistoryTable tbody tr.row-modified {
	background-color: #fefce8 !important;
}

/* Validation error */
#offerDetailsTable tbody tr.error-row,
#updateTyreHistoryTable tbody tr.error-row {
	background-color: #fce8ea !important;
}

#offerDetailsTable tbody tr.error-row td,
#updateTyreHistoryTable tbody tr.error-row td {
	color: #b91c1c;
}

/* Tyre odo readout */
.tyre-odo-value {
	display: inline-block;
	padding: 4px 10px;
	background: var(--avolve-light);
	border-radius: var(--radius-sm);
	font-weight: 600;
	font-size: 13px;
	color: var(--avolve-primary);
	text-align: center;
	min-width: 60px;
}


/* =============================================================================
   9. RESET BUTTON (per-row)
============================================================================= */

.reset-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	padding: 5px 10px;
	font-size: 12px;
	font-weight: 600;
	background: #fee2e2;
	color: #dc2626;
	border: 1px solid #fecaca;
	border-radius: var(--radius-sm);
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease, visibility 0.25s ease, background 0.2s ease, transform 0.2s ease;
}

.reset-btn:hover {
	background: #dc2626;
	color: #fff;
	border-color: #dc2626;
	transform: translateY(-1px);
}

.reset-btn.visible {
	opacity: 1;
	visibility: visible;
}

/* =============================================================================
   10. INFO BANNER
============================================================================= */

.adf-info-banner {
	background: var(--avolve-lighter);
	border: 1px solid var(--avolve-light);
	border-left: 3px solid var(--avolve-primary);
	border-radius: var(--radius-sm);
	padding: 10px 14px;
	font-size: 13px;
	color: var(--avolve-primary-dark);
	gap: 12px;
}


/* =============================================================================
   11. RESPONSIVE
============================================================================= */

@media (max-width: 992px) {

	#updateOfferModal .modal-dialog,
	#updateTyreHistoryModal .modal-dialog {
		width: 99vw;
		max-width: 99vw;
		margin: 4px auto;
	}

	.adf-table-wrap {
		max-height: 50vh;
	}

	.offer-info-strip .row {
		flex-wrap: wrap;
		gap: 12px;
	}
}

@media (max-width: 576px) {

	#updateOfferModal .modal-body,
	#updateTyreHistoryModal .modal-body {
		padding: 14px;
	}

	.adf-info-banner {
		flex-direction: column;
		align-items: flex-start;
	}
}

/* =============================================================================
   1. SETTINGS LAYOUT — dual-sidebar shell
   The global sidebar sits on the left (handled by theme.css).
   This block sits inside #main-content and provides the inner split:
     [settings-sidebar | settings-content]
============================================================================= */

.settings-layout {
	display: flex;
	min-height: calc(100vh - var(--header-height) - 60px);
	/* subtract page-header */
	background: var(--clr-bg);
}

/* =============================================================================
   2. SETTINGS SIDEBAR — module switcher
   Visually mirrors the global sidebar (sidebar.pug / theme.css) but is
   narrower, always expanded, and lives INSIDE .settings-layout — it is NOT
   the global aside.sidebar.
============================================================================= */

.settings-sidebar {
	width: 210px;
	flex-shrink: 0;
	background: var(--clr-white);

	/* Shadow matches the global sidebar brand shadow */
	box-shadow: var(--clr-primary) 1.95px 1.95px 2.6px;

	display: flex;
	flex-direction: column;

	/* Sticky: stays put while .settings-content scrolls */
	position: sticky;
	top: calc(var(--header-height) + 60px);
	/* below page-header */
	height: calc(100vh - var(--header-height) - 60px);

	overflow-y: auto;
	overflow-x: hidden;
	scrollbar-width: thin;
	scrollbar-color: rgba(92, 45, 144, 0.4) transparent;
}

.settings-sidebar::-webkit-scrollbar {
	width: 4px;
}

.settings-sidebar::-webkit-scrollbar-track {
	background: transparent;
}

.settings-sidebar::-webkit-scrollbar-thumb {
	background: rgba(92, 45, 144, 0.35);
	border-radius: 4px;
}

.settings-sidebar::-webkit-scrollbar-thumb:hover {
	background: rgba(92, 45, 144, 0.65);
}

/* Header band — matches .avolve-brand pill radius style */
.settings-sidebar-header {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 16px 12px;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.8px;
	color: var(--clr-primary);
	background: var(--clr-primary-pale);

	/* Bottom rule same weight as sidebar nav link hover underline */
	border-bottom: 2px solid var(--clr-primary-muted);
	flex-shrink: 0;
}

.settings-sidebar-icon {
	display: flex;
	align-items: center;
	color: var(--clr-primary);
	opacity: 0.85;
}

/* Nav list */
.settings-sidebar-nav {
	padding: 8px 6px 16px;
	flex: 1;
}

.settings-nav-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 3px;
}

/* Nav item */
.settings-nav-item {
	border-radius: var(--radius-md);
	position: relative;
}

/* Nav link — mirrors .sidebar-nav .nav-link */
.settings-nav-link {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px 8px 14px;
	font-size: 13px;
	font-weight: 600;
	color: var(--clr-primary);
	text-decoration: none;
	border-radius: var(--radius-md);
	transition: background 0.25s ease, color 0.25s ease, padding-left 0.2s ease;
	white-space: nowrap;
	position: relative;
	overflow: hidden;
}

/* Left indicator bar (hidden by default) */
.settings-nav-indicator {
	position: absolute;
	left: 0;
	top: 20%;
	height: 60%;
	width: 3px;
	border-radius: 0 3px 3px 0;
	background: var(--clr-primary);
	opacity: 0;
	transform: scaleY(0);
	transition: opacity 0.2s ease, transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.settings-nav-label {
	flex: 1;
	overflow: hidden;
	text-overflow: ellipsis;
}

.settings-nav-chevron {
	display: flex;
	align-items: center;
	color: var(--clr-white);
	opacity: 0.85;
	flex-shrink: 0;
}

/* Hover state */
.settings-nav-item:hover>.settings-nav-link {
	background: var(--clr-primary-pale);
	color: var(--clr-primary-dark);
	padding-left: 18px;
	text-decoration: none;
}

/* ACTIVE state — mirrors .nav-item.active > .nav-link */
.settings-nav-item.active>.settings-nav-link {
	background: var(--clr-primary-light);
	color: var(--clr-white);
	font-weight: 700;
	padding-left: 18px;
	box-shadow: 0 2px 8px rgba(92, 45, 144, 0.25);
}

.settings-nav-item.active>.settings-nav-link .settings-nav-indicator {
	opacity: 1;
	transform: scaleY(1);
	background: var(--clr-white);
}

.settings-nav-item.active:hover>.settings-nav-link {
	background: var(--clr-primary);
	color: var(--clr-white);
}

/* Ripple animation on active-item click */
.settings-nav-link::after {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(92, 45, 144, 0.06);
	opacity: 0;
	border-radius: inherit;
	transition: opacity 0.2s ease;
}

.settings-nav-link:active::after {
	opacity: 1;
}


/* =============================================================================
   3. SETTINGS CONTENT AREA
============================================================================= */

.settings-content {
	flex: 1;
	min-width: 0;
	/* prevent flex overflow */
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

/* =============================================================================
   8. RESPONSIVE
============================================================================= */

/* Tablet landscape — narrow the settings sidebar slightly */
@media (max-width: 1200px) and (min-width: 992px) {
	.settings-sidebar {
		width: 185px;
	}

	.settings-nav-link {
		font-size: 12.5px;
		padding: 7px 10px 7px 12px;
	}
}

/* Tablet portrait — settings sidebar becomes a horizontal scrollable pill bar */
@media (max-width: 991px) {
	.settings-layout {
		flex-direction: column;
	}

	.settings-sidebar {
		width: 100%;
		height: auto;
		position: static;
		box-shadow: none;
		border-bottom: 2px solid var(--clr-primary-muted);
		overflow-y: visible;
		overflow-x: auto;
		flex-direction: row;
		align-items: center;
	}

	.settings-sidebar-header {
		flex-shrink: 0;
		border-bottom: none;
		border-right: 2px solid var(--clr-primary-muted);
		padding: 10px 14px;
		height: 100%;
	}

	.settings-sidebar-nav {
		padding: 8px;
		flex: 1;
		overflow-x: auto;
		scrollbar-width: none;
	}

	.settings-sidebar-nav::-webkit-scrollbar {
		display: none;
	}

	.settings-nav-list {
		flex-direction: row;
		flex-wrap: nowrap;
		gap: 4px;
	}

	.settings-nav-item {
		flex-shrink: 0;
	}

	/* Active indicator becomes bottom bar on horizontal layout */
	.settings-nav-indicator {
		top: auto;
		bottom: 0;
		left: 10%;
		width: 80%;
		height: 3px;
		border-radius: 3px 3px 0 0;
		transform: scaleX(0);
	}

	.settings-nav-item.active>.settings-nav-link .settings-nav-indicator {
		transform: scaleX(1);
	}

	.settings-nav-link {
		padding: 7px 14px;
		font-size: 12.5px;
	}

	.settings-nav-item:hover>.settings-nav-link,
	.settings-nav-item.active>.settings-nav-link {
		padding-left: 14px;
		/* no left-shift in horizontal mode */
	}

	/* Hide chevron on horizontal layout — no space */
	.settings-nav-chevron {
		display: none;
	}
}

/* Mobile */
@media (max-width: 767px) {
	.status-toggles {
		gap: 10px;
	}

	.settings-sidebar-header span:last-child {
		display: none;
		/* hide "Settings" text label on small screens */
	}
}

@media (max-width: 480px) {
	.settings-nav-link {
		font-size: 12px;
		padding: 6px 10px;
	}
}

/*
   PRIVACY & TERMS MODULE
*/
.lp-header {
	background: #fff;
	border-bottom: 1px solid var(--clr-border);
	padding: 22px 32px;
	display: flex;
	align-items: center;
	position: sticky;
	top: 0;
	z-index: 100;
	box-shadow: var(--shadow-sm);
}

.lp-logo {
	display: flex;
	align-items: center;
	gap: 10px;
	height: 35px;
	text-decoration: none;
}


/* Tab bar */
.lp-tabs-bar {
	background: #fff;
	border-bottom: 2px solid var(--clr-border);
	padding: 0 32px;
	position: sticky;
	top: 56px;
	z-index: 99;
	box-shadow: var(--shadow-sm);
}

.lp-tabs {
	display: flex;
	gap: 0;
	list-style: none;
	max-width: 860px;
	margin: 0 auto;
	padding: 0;
}

.lp-tab {
	padding: 14px 24px;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--clr-text-muted);
	cursor: pointer;
	border-bottom: 3px solid transparent;
	margin-bottom: -2px;
	transition: all var(--transition-fast);
	user-select: none;
	white-space: nowrap;
	display: flex;
	align-items: center;
	gap: 7px;
}

.lp-tab:hover {
	color: var(--clr-primary);
	background: var(--clr-primary-pale);
}

.lp-tab.active {
	color: var(--clr-primary);
	border-bottom-color: var(--clr-primary);
}

/* Layout */
.lp-body {
	margin: 0 auto;
	padding: 36px 32px 64px;
	display: grid;
	grid-template-columns: 220px 1fr;
	gap: 32px;
	align-items: start;
}

/* TOC */
.lp-toc {
	position: sticky;
	top: calc(56px + 50px + 24px);
	background: #fff;
	border: 1px solid var(--clr-border);
	border-radius: var(--radius-lg);
	overflow: hidden;
	box-shadow: var(--shadow-sm);
}

.lp-toc-head {
	padding: 12px 16px;
	background: var(--clr-primary-pale);
	border-bottom: 1px solid var(--clr-primary-muted);
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.8px;
	color: var(--clr-primary);
	display: flex;
	align-items: center;
	gap: 7px;
}

.lp-toc-list {
	list-style: none;
	padding: 8px 0;
	margin: 0;
}

.lp-toc-item a {
	display: block;
	padding: 7px 16px;
	font-size: 12.5px;
	font-weight: 500;
	color: var(--clr-text-muted);
	text-decoration: none;
	transition: all var(--transition-fast);
	border-left: 3px solid transparent;
}

.lp-toc-item a:hover {
	color: var(--clr-primary);
	background: var(--clr-primary-pale);
	border-left-color: var(--clr-primary-light);
	padding-left: 20px;
}

.lp-toc-item a.active {
	color: var(--clr-primary);
	background: var(--clr-primary-tint);
	border-left-color: var(--clr-primary);
	font-weight: 600;
}

/* Content */
.lp-content {
	min-width: 0;
}

.lp-pane {
	display: none;
}

.lp-pane.active {
	display: block;
	animation: lpFadeIn 0.3s ease;
}

@keyframes lpFadeIn {
	from {
		opacity: 0;
		transform: translateY(8px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Meta strip */
.lp-meta-strip {
	display: flex;
	align-items: center;
	gap: 20px;
	padding: 12px 18px;
	background: var(--clr-surface);
	border: 1px solid var(--clr-border);
	border-radius: var(--radius-md);
	margin-bottom: 24px;
	font-size: 12.5px;
	flex-wrap: wrap;
}

.lp-meta-item {
	display: flex;
	align-items: center;
	gap: 6px;
	color: var(--clr-text-muted);
}

.lp-meta-item strong {
	color: var(--clr-text-body);
	font-weight: 600;
}

.lp-meta-dot {
	width: 3px;
	height: 3px;
	border-radius: 50%;
	background: var(--clr-border-2);
}

/* Alert */
.lp-alert {
	display: flex;
	gap: 12px;
	padding: 14px 18px;
	background: var(--clr-primary-pale);
	border-left: 3px solid var(--clr-primary);
	border-radius: 0 var(--radius-md) var(--radius-md) 0;
	margin-bottom: 28px;
	font-size: 13px;
	line-height: 1.65;
	color: var(--clr-primary-dark);
}

.lp-alert-icon {
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	margin-top: 1px;
	color: var(--clr-primary);
}

/* Section */
.lp-section {
	margin-bottom: 36px;
	scroll-margin-top: 130px;
}

.lp-section-head {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 14px;
	padding-bottom: 12px;
	border-bottom: 2px solid var(--clr-primary-muted);
}

.lp-section-num {
	width: 28px;
	height: 28px;
	border-radius: 8px;
	background: var(--clr-primary);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.lp-section-title {
	font-size: 15.5px;
	font-weight: 700;
	color: var(--clr-text-heading);
	line-height: 1.3;
	flex: 1;
	margin: 0;
}

/* Body text */
.lp-section p {
	font-size: 13.5px;
	color: var(--clr-text-body);
	line-height: 1.75;
	margin-bottom: 12px;
}

.lp-section p:last-child {
	margin-bottom: 0;
}

/* Bullet list */
.lp-list {
	list-style: none;
	padding: 0;
	margin: 10px 0 14px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.lp-list li {
	display: flex;
	gap: 10px;
	font-size: 13.5px;
	color: var(--clr-text-body);
	line-height: 1.65;
	padding: 10px 14px;
	background: var(--clr-surface);
	border: 1px solid var(--clr-border);
	border-radius: var(--radius-sm);
}

.lp-list li::before {
	content: '';
	flex-shrink: 0;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--clr-primary-light);
	margin-top: 6px;
}

/* Ordered list */
.lp-ordered {
	list-style: none;
	counter-reset: ol-counter;
	padding: 0;
	margin: 10px 0 14px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.lp-ordered li {
	counter-increment: ol-counter;
	display: flex;
	gap: 12px;
	font-size: 13.5px;
	color: var(--clr-text-body);
	line-height: 1.65;
	padding: 10px 14px;
	background: var(--clr-surface);
	border: 1px solid var(--clr-border);
	border-radius: var(--radius-sm);
}

.lp-ordered li::before {
	content: counter(ol-counter, lower-alpha) ".";
	flex-shrink: 0;
	font-size: 11.5px;
	font-weight: 700;
	color: var(--clr-primary);
	background: var(--clr-primary-pale);
	border-radius: 4px;
	padding: 2px 6px;
	line-height: 1.6;
	height: fit-content;
}

/* Inline term */
.lp-term {
	font-weight: 600;
	color: var(--clr-text-heading);
}

/* Contact card */
.lp-contact-card {
	background: #fff;
	border: 1px solid var(--clr-primary-muted);
	border-radius: var(--radius-lg);
	padding: 18px 20px;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
	margin-top: 14px;
}

.lp-contact-row {
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.lp-contact-label {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--clr-text-muted);
}

.lp-contact-value {
	font-size: 13.5px;
	font-weight: 600;
	color: var(--clr-text-heading);
}

.lp-contact-value a {
	color: var(--clr-primary);
	text-decoration: none;
	font-weight: 600;
}

.lp-contact-value a:hover {
	text-decoration: underline;
}

.lp-contact-full {
	grid-column: 1 / -1;
}

/* Footer */
.lp-footer {
	background: #fff;
	border-top: 1px solid var(--clr-border);
	padding: 20px 32px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
}

.lp-footer-copy {
	font-size: 12px;
	color: var(--clr-text-muted);
}

.lp-footer-links {
	display: flex;
	gap: 20px;
	font-size: 12.5px;
}

.lp-footer-links a {
	color: var(--clr-primary);
	font-weight: 600;
	text-decoration: none;
}

.lp-footer-links a:hover {
	text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
	.lp-body {
		grid-template-columns: 1fr;
		padding: 20px 16px 48px;
		gap: 20px;
	}

	.lp-toc {
		position: static;
	}

	.lp-hero {
		padding: 32px 16px 38px;
	}

	.lp-hero-title {
		font-size: 24px;
	}

	.lp-tabs-bar {
		padding: 0 16px;
		overflow-x: auto;
	}

	.lp-tabs {
		flex-wrap: nowrap;
	}

	.lp-header {
		padding: 0 16px;
	}

	.lp-footer {
		padding: 16px;
	}

	.lp-contact-card {
		grid-template-columns: 1fr;
	}
}

/* =============================================================================
   USER ROLES — Permission Matrix Table
   Add to theme.css (section 04. Components) or a page-specific stylesheet.
   All colours reference the existing KT-Avolve design tokens.
============================================================================= */

/* Search bar inside modal */
.ur-search-wrap {
	position: relative;
	flex: 1;
	max-width: 300px;
}

.ur-search-icon {
	position: absolute;
	left: 11px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 13px;
	color: var(--clr-text-muted);
	pointer-events: none;
}

.ur-search-input {
	width: 100%;
	height: 36px;
	padding: 0 12px 0 32px;
	border: 2px solid var(--clr-border);
	border-radius: var(--radius-pill);
	font-size: 13px;
	color: var(--clr-text-body);
	background: var(--clr-surface);
	outline: none;
	font-family: inherit;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ur-search-input:focus {
	border-color: var(--clr-primary);
	background: var(--clr-white);
	box-shadow: 0 0 0 3px rgba(92, 45, 144, 0.1);
}

.ur-search-input::placeholder {
	color: var(--clr-text-faint);
}

/* Table outer shell */
.ur-table-outer {
	border: 1px solid var(--clr-primary-muted);
	border-radius: var(--radius-lg);
	overflow: hidden;
	max-height: 55vh;
	overflow-y: auto;
	overflow-x: auto;
	scrollbar-width: thin;
	scrollbar-color: rgba(92, 45, 144, 0.3) transparent;
}

.ur-table-outer::-webkit-scrollbar {
	width: 5px;
	height: 5px;
}

.ur-table-outer::-webkit-scrollbar-track {
	background: transparent;
}

.ur-table-outer::-webkit-scrollbar-thumb {
	background: rgba(92, 45, 144, 0.3);
	border-radius: 4px;
}

.ur-table-outer::-webkit-scrollbar-thumb:hover {
	background: rgba(92, 45, 144, 0.55);
}

/* Component column */
#menuListTable col.ur-col-comp {
	width: 180px;
}

td.ur-comp-td {
	padding: 6px 10px;
	vertical-align: top;
}

td.ur-comp-td--empty {
	background: var(--clr-surface);
}

/* Override: in the new dedicated cell, stack vertically */
td.ur-comp-td .ur-comp-wrap {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin-top: 0;
}

/* Label sits in its own cell, no inline wrapping needed */
.ur-comp-label {
	display: flex;
	align-items: center;
	gap: 5px;
	font-size: 11.5px;
	color: var(--clr-text-muted);
	cursor: pointer;
	margin: 0;
	padding: 3px 6px;
	border-radius: var(--radius-sm);
	border: 0.5px solid var(--clr-border);
	background: var(--clr-surface);
	transition: background 0.15s ease;
	white-space: nowrap;
}

.ur-comp-label:hover {
	background: var(--clr-primary-pale);
}

.ur-comp-label input[type="checkbox"] {
	accent-color: var(--clr-primary);
	width: 12px;
	height: 12px;
	flex-shrink: 0;
}

.ur-comp-label input[type="hidden"] {
	display: none;
}

.ur-comp-label-text {
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 140px;
}

/* Responsive */
@media (max-width: 576px) {
	#menuListTable col.ur-col-comp {
		width: 120px;
	}

	.ur-comp-label-text {
		max-width: 80px;
	}
}

/* Table base */
#menuListTable {
	width: 100%;
	border-collapse: collapse;
	table-layout: fixed;
	font-size: 13px;
}

#menuListTable col.ur-col-module {
	width: 170px;
}

#menuListTable col.ur-col-section {
	width: 170px;
}

#menuListTable col.ur-col-perm {
	width: 82px;
}

/* Sticky thead */
#menuListTable thead {
	position: sticky;
	top: 0;
	z-index: 10;
}

#menuListTable thead tr {
	background: var(--clr-primary);
}

#menuListTable thead th {
	padding: 9px 10px;
	text-align: center;
	color: #fff;
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 0.3px;
	border-right: 0.5px solid rgba(255, 255, 255, 0.15);
	white-space: nowrap;
}

#menuListTable thead th:first-child,
#menuListTable thead th:nth-child(2) {
	text-align: left;
}

#menuListTable thead th:last-child {
	border-right: none;
}

/* Master-check label */
.ur-master-label {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	cursor: pointer;
	font-size: 11.5px;
	font-weight: 600;
	color: #fff;
	margin: 0;
}

.ur-master-label input[type="checkbox"] {
	accent-color: #fff;
	width: 13px;
	height: 13px;
	cursor: pointer;
}

/* Group separator row */
tr.ur-group-sep td {
	height: 5px;
	background: var(--clr-surface);
	border: none;
	padding: 0;
}

/* Parent group header row */
tr.ur-group-header {
	background: var(--clr-primary-pale);
}

tr.ur-group-header td {
	padding: 8px 12px;
	border-bottom: 0.5px solid var(--clr-primary-muted);
}

tr.ur-group-header td.ur-module-td {
	font-weight: 600;
	font-size: 12.5px;
	color: var(--clr-primary-dark);
	cursor: default;
}

/* Chevron toggle */
.ur-group-toggle {
	display: inline-flex;
	align-items: center;
	margin-right: 4px;
	cursor: pointer;
}

.ur-chevron {
	font-size: 11px;
	color: var(--clr-primary);
	transition: transform 0.22s ease;
	display: inline-block;
}

.ur-chevron.ur-open {
	transform: rotate(90deg);
}

/* Child-count badge */
.ur-group-badge {
	display: inline-block;
	padding: 2px 8px;
	border-radius: var(--radius-pill);
	background: var(--clr-primary-muted);
	color: var(--clr-primary);
	font-size: 11px;
	font-weight: 600;
	margin-left: 6px;
	vertical-align: middle;
}

/* L2 child rows */
tr.ur-child-row td {
	padding: 7px 10px;
	border-bottom: 0.5px solid var(--clr-border);
	color: var(--clr-text-body);
	vertical-align: middle;
	background: var(--clr-white);
}

tr.ur-child-row:hover td {
	background: #faf7fd;
}

tr.ur-child-row:last-of-type td,
tr.ur-child-row+tr.ur-group-sep td {}

/* separator handles spacing */

td.ur-section-td {
	padding-left: 30px !important;
	font-size: 12.5px;
	color: var(--clr-text-body);
}

/* Standalone rows (L1 with no children) */
tr.ur-standalone-row td {
	padding: 8px 12px;
	border-bottom: 0.5px solid var(--clr-border);
	color: var(--clr-text-body);
	vertical-align: middle;
	background: var(--clr-white);
}

tr.ur-standalone-row:hover td {
	background: #faf7fd;
}

tr.ur-standalone-row td.ur-module-td {
	font-weight: 600;
	font-size: 12.5px;
	color: var(--clr-primary-dark);
}

/* Shared check cells */
td.ur-check-td {
	text-align: center;
	vertical-align: middle;
}

td.ur-enable-td {
	background: rgba(92, 45, 144, 0.03);
}

/* Checkboxes */
#menuListTable input[type="checkbox"] {
	accent-color: var(--clr-primary);
	width: 14px;
	height: 14px;
	cursor: pointer;
}

/* Group-check on parent row */
input.group-check {
	accent-color: var(--clr-primary-light);
	width: 14px;
	height: 14px;
	cursor: pointer;
}

/* Components inline display */
.ur-comp-wrap {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 10px;
	margin-top: 5px;
}

.ur-comp-label {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 11.5px;
	color: var(--clr-text-muted);
	cursor: pointer;
	margin: 0;
	padding: 2px 6px;
	border-radius: var(--radius-sm);
	border: 0.5px solid var(--clr-border);
	background: var(--clr-surface);
	transition: background 0.15s ease;
}

.ur-comp-label:hover {
	background: var(--clr-primary-pale);
}

.ur-comp-label input[type="checkbox"] {
	accent-color: var(--clr-primary);
	width: 12px;
	height: 12px;
}

.ur-comp-label input[type="hidden"] {
	display: none;
}

/* Hidden rows (collapsed children) */
tr.ur-hidden {
	display: none;
}

/* No-results row */
.ur-no-results {
	padding: 28px;
	text-align: center;
	color: var(--clr-text-muted);
	font-size: 13px;
}

/* Responsive: modal full-screen on mobile */
@media (max-width: 576px) {

	#menuListTable col.ur-col-module,
	#menuListTable col.ur-col-section {
		width: 130px;
	}

	#menuListTable col.ur-col-perm {
		width: 68px;
	}

	td.ur-section-td {
		padding-left: 18px !important;
	}

	.ur-search-input {
		max-width: 100%;
	}
}

/* =============================================================================
   CUSTOMER CREATE MODAL — Supplementary Styles
   Add this file to your page:
     link(rel='stylesheet' href='/css/customer-create-modal.css')
   Or import inside your main bundle.

   Depends on: theme.css (--clr-* tokens must be loaded first)
   Bootstrap 5 is assumed for .modal, .form-control, .badge etc.
============================================================================= */


/* =============================================================================
   1. MODAL SHELL OVERRIDES
   Ensure the modal dialog and content box render correctly
============================================================================= */

#customerCreateModal .modal-content {
	border-radius: 16px !important;
	overflow: hidden;
	border: none;
	box-shadow: 0 32px 80px rgba(0, 0, 0, 0.28);
}

#customerCreateModal .modal-dialog {
	max-width: 1020px;
	margin: 16px auto;
}

/* Body: side-by-side rail + scroll area */
#customerCreateModal .modal-body {
	padding: 0;
	display: flex;
	min-height: 560px;
	max-height: 72vh;
}

/* Scrollable right panel */
#customerCreateModal .cm-body-scroll {
	flex: 1;
	overflow-y: auto;
	padding: 22px;
	scrollbar-width: thin;
	scrollbar-color: rgba(92, 45, 144, 0.2) transparent;
}

#customerCreateModal .cm-body-scroll::-webkit-scrollbar {
	width: 5px;
}

#customerCreateModal .cm-body-scroll::-webkit-scrollbar-thumb {
	background: rgba(92, 45, 144, 0.2);
	border-radius: 4px;
}


/* =============================================================================
   2. LEFT PROGRESS RAIL
============================================================================= */

#cm-rail {
	width: 220px;
	flex-shrink: 0;
	background: linear-gradient(160deg, var(--clr-primary) 0%, #2d1052 100%);
	padding: 24px 16px;
	display: flex;
	flex-direction: column;
	overflow-y: auto;
	scrollbar-width: none;
}

#cm-rail::-webkit-scrollbar {
	display: none;
}

/* Brand block */
.cm-rail__brand {
	font-family: 'DM Serif Display', serif;
	font-size: 17px;
	color: #fff;
	margin-bottom: 6px;
	letter-spacing: 0.3px;
	line-height: 1.2;
}

.cm-rail__brand span {
	font-family: 'Figtree', -apple-system, sans-serif;
	font-size: 11px;
	color: rgba(255, 255, 255, 0.45);
	font-weight: 500;
	display: block;
	margin-top: 2px;
}

/* Divider */
#cm-rail hr {
	border-color: rgba(255, 255, 255, 0.12);
	margin: 14px 0 18px;
}


/* =============================================================================
   3. STEP INDICATORS (left rail)
============================================================================= */

#cm-steps {
	display: flex;
	flex-direction: column;
	gap: 0;
	position: relative;
}

/* Vertical connector line */
#cm-steps::before {
	content: '';
	position: absolute;
	left: 14px;
	top: 28px;
	bottom: 28px;
	width: 2px;
	background: rgba(255, 255, 255, 0.12);
	z-index: 0;
}

/* Each step row */
#cm-steps .cm-step {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 10px 0;
	cursor: pointer;
	position: relative;
	z-index: 1;
	text-decoration: none;
}

/* Circle number */
#cm-steps .cm-step__num {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	flex-shrink: 0;
	border: 2px solid rgba(255, 255, 255, 0.22);
	background: rgba(255, 255, 255, 0.07);
	color: rgba(255, 255, 255, 0.5);
	font-size: 11px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
}

/* Labels */
#cm-steps .cm-step__label {
	font-size: 12px;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.45);
	padding-top: 4px;
	line-height: 1.2;
	transition: color 0.2s ease;
}

#cm-steps .cm-step__sub {
	font-size: 10.5px;
	color: rgba(255, 255, 255, 0.28);
	margin-top: 1px;
	line-height: 1.2;
}

/* ACTIVE step */
#cm-steps .cm-step.active .cm-step__num {
	background: #fff;
	border-color: #fff;
	color: var(--clr-primary);
	box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.18);
}

#cm-steps .cm-step.active .cm-step__label {
	color: #fff;
	font-weight: 700;
}

#cm-steps .cm-step.active .cm-step__sub {
	color: rgba(255, 255, 255, 0.55);
}

/* DONE (completed) step */
#cm-steps .cm-step.done .cm-step__num {
	background: #10b981;
	border-color: #10b981;
	color: #fff;
}

#cm-steps .cm-step.done .cm-step__label {
	color: rgba(255, 255, 255, 0.7);
}


/* =============================================================================
   4. RAIL STATS (bottom of left rail)
============================================================================= */

.cm-rail__stats {
	margin-top: auto;
	padding-top: 16px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	display: flex;
	flex-direction: column;
	gap: 9px;
}

.cm-rail__stats .cs-lbl {
	font-size: 10.5px;
	color: rgba(255, 255, 255, 0.4);
	font-weight: 500;
}

.cm-rail__stats .cs-val {
	font-size: 14px;
	font-weight: 800;
	color: #fff;
}


/* =============================================================================
   5. MODAL HEADER
============================================================================= */

#customerCreateModal .modal-header {
	padding: 0;
	border: none;
	background: #fff;
}

.cm-modal-header-inner {
	display: flex;
	width: 100%;
	align-items: center;
	justify-content: space-between;
	padding: 14px 22px 12px;
	border-bottom: 2px solid var(--clr-primary);
	background: #fff;
}

/* Step chip badge in header */
#cm-step-chip {
	background: var(--clr-primary-pale);
	color: var(--clr-primary);
	font-size: 11px;
	font-weight: 700;
	padding: 4px 10px;
	border-radius: 50px;
	font-family: 'Figtree', -apple-system, sans-serif;
}

/* Draft status indicator */
.draft-status {
	display: flex;
	align-items: center;
	gap: 6px;
}

.draft-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #94a3b8;
	flex-shrink: 0;
}

.draft-dot.saving {
	background: var(--clr-warning);
	animation: cmPulse 1s ease-in-out infinite;
}

.draft-dot.saved {
	background: var(--clr-success);
}

@keyframes cmPulse {

	0%,
	100% {
		opacity: 1;
	}

	50% {
		opacity: 0.3;
	}
}


/* =============================================================================
   6. MODAL FOOTER
============================================================================= */

#customerCreateModal .modal-footer {
	background: var(--clr-surface);
	border-top: 1px solid var(--clr-border);
	padding: 12px 20px;
	justify-content: space-between;
	gap: 10px;
}

#cm-prev-btn {
	color: var(--clr-text-muted);
	background: transparent;
	border: none;
	font-size: 12.5px;
	font-weight: 600;
}

#cm-prev-btn:hover {
	color: var(--clr-primary);
}

#cm-next-btn {
	border-radius: 50px;
	padding: 8px 22px;
	font-weight: 600;
	font-size: 13.5px;
}

#cm-draft-btn2 {
	font-size: 12px;
	border-radius: 50px;
}


/* =============================================================================
   7. STEP PANELS — animation
============================================================================= */

.cm-step-panel {
	animation: cmPanelIn 0.28s ease forwards;
}

@keyframes cmPanelIn {
	from {
		opacity: 0;
		transform: translateX(14px);
	}

	to {
		opacity: 1;
		transform: translateX(0);
	}
}

/* Step heading */
.step-heading {
	margin-bottom: 18px;
	padding-bottom: 12px;
	border-bottom: 2px solid var(--clr-primary-muted);
}

.step-heading h6 {
	font-family: 'DM Serif Display', serif;
	font-size: 19px;
	color: var(--clr-primary);
	margin-bottom: 3px;
}

.step-heading p {
	font-size: 12.5px;
	color: var(--clr-text-muted);
	margin: 0;
}


/* =============================================================================
   8. SECTION CARDS (cw-section already in theme, these are modal-scoped tweaks)
============================================================================= */

#customerCreateModal .cw-section {
	background: #fff;
	border: 1px solid var(--clr-border);
	border-radius: var(--radius-lg);
	margin-bottom: 16px;
}

#customerCreateModal .cw-section__head {
	display: flex;
	align-items: center;
	gap: 9px;
	padding: 11px 16px;
	background: linear-gradient(90deg, var(--clr-primary-pale), #fff);
	border-bottom: 1px solid var(--clr-primary-muted);
	font-size: 13px;
	font-weight: 700;
	color: var(--clr-primary);
}

#customerCreateModal .cw-section__head>i {
	width: 26px;
	height: 26px;
	border-radius: 7px;
	background: var(--clr-primary);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 11px;
	flex-shrink: 0;
}

#customerCreateModal .cw-grid {
	padding: 16px;
	display: grid;
	gap: 14px;
}

#customerCreateModal .cw-grid--2 {
	grid-template-columns: repeat(2, 1fr);
}

#customerCreateModal .cw-grid--3 {
	grid-template-columns: repeat(3, 1fr);
}

#customerCreateModal .cw-grid--4 {
	grid-template-columns: repeat(4, 1fr);
}

#customerCreateModal .cw-span2 {
	grid-column: span 2;
}

#customerCreateModal .cw-list-container {
	padding: 14px 16px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

@media (max-width: 700px) {

	#customerCreateModal .cw-grid--2,
	#customerCreateModal .cw-grid--3,
	#customerCreateModal .cw-grid--4 {
		grid-template-columns: 1fr;
	}

	#customerCreateModal .cw-span2 {
		grid-column: span 1;
	}
}


/* =============================================================================
   9. FORM ELEMENTS — input-group icons, focus states, error states
============================================================================= */

/* Input group text (icon prefix boxes) */
#customerCreateModal .input-group-text {
	background: var(--clr-surface);
	border: 2px solid var(--clr-border);
	border-right: none;
	color: var(--clr-text-faint);
	font-size: 13px;
	border-radius: var(--radius-md) 0 0 var(--radius-md);
	padding: 0 11px;
	transition: border-color 0.2s ease, color 0.2s ease;
}

#customerCreateModal .input-group:focus-within .input-group-text {
	border-color: var(--clr-primary);
	color: var(--clr-primary);
	background: #fff;
}

#customerCreateModal .input-group .form-control,
#customerCreateModal .input-group .form-select {
	border-left: none !important;
	border-radius: 0 var(--radius-md) var(--radius-md) 0 !important;
}

/* Standalone form controls */
#customerCreateModal .form-control,
#customerCreateModal .form-select {
	height: 36px;
	font-size: 12.5px;
	font-family: 'Figtree', -apple-system, sans-serif;
	color: var(--clr-text-heading);
	background: var(--clr-surface);
	border: 2px solid var(--clr-border);
	border-radius: var(--radius-md);
	outline: none;
	transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

#customerCreateModal .form-control:focus,
#customerCreateModal .form-select:focus {
	background: #fff;
	border-color: var(--clr-primary);
	box-shadow: 0 0 0 3px rgba(92, 45, 144, 0.1);
}

#customerCreateModal .form-control:hover:not(:focus),
#customerCreateModal .form-select:hover:not(:focus) {
	border-color: var(--clr-border-2);
	background: #fff;
}

/* Error / valid states */
#customerCreateModal .form-control.is-invalid,
#customerCreateModal .form-select.is-invalid {
	border-color: var(--clr-danger) !important;
	background: #fef2f2;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23dc2626' viewBox='0 0 16 16'%3E%3Cpath d='M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z'/%3E%3Cpath d='M7.002 11a1 1 0 1 1 2 0 1 1 0 0 1-2 0zM7.1 4.995a.905.905 0 1 1 1.8 0l-.35 3.507a.552.552 0 0 1-1.1 0L7.1 4.995z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 10px center;
	background-size: 14px;
	padding-right: 30px;
}

#customerCreateModal .input-group .form-control.is-invalid {
	border-left: none !important;
}

#customerCreateModal .input-group:focus-within .input-group-text+.is-invalid,
#customerCreateModal .input-group .is-invalid~.input-group-text {
	border-color: var(--clr-danger) !important;
}

/* Invalid feedback text */
#customerCreateModal .invalid-feedback {
	display: none;
	font-size: 11.5px;
	color: var(--clr-danger);
	margin-top: 3px;
	font-weight: 500;
}

#customerCreateModal .invalid-feedback.show,
#customerCreateModal .form-control.is-invalid~.invalid-feedback,
#customerCreateModal .form-select.is-invalid~.invalid-feedback {
	display: block;
}

/* Textarea */
#customerCreateModal textarea.form-control {
	height: auto;
	min-height: 64px;
	resize: vertical;
}

/* Form labels */
#customerCreateModal .form-label {
	font-size: 11px;
	font-weight: 700;
	color: var(--clr-text-muted);
	text-transform: uppercase;
	letter-spacing: 0.45px;
	margin-bottom: 4px;
	display: flex;
	align-items: center;
	gap: 3px;
}

/* Hint text */
#customerCreateModal .form-text {
	font-size: 11px;
	color: var(--clr-text-muted);
	margin-top: 2px;
}


/* =============================================================================
   10. WORKSHOP CARDS
============================================================================= */

.cw-row-card {
	background: var(--clr-surface);
	border: 1.5px solid var(--clr-border);
	border-radius: var(--radius-lg);
	padding: 12px 14px;
	transition: border-color 0.2s ease;
}

.cw-row-card:hover {
	border-color: var(--clr-primary-light);
}

.cw-row-card__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 12px;
}

.cw-row-card__title {
	font-size: 12.5px;
	font-weight: 700;
	color: var(--clr-primary);
}

.cw-row-card__grid {
	display: grid;
	gap: 10px;
}

.cw-row-card__grid--2 {
	grid-template-columns: repeat(2, 1fr);
}

.cw-row-card__grid--3 {
	grid-template-columns: repeat(3, 1fr);
}

.cw-row-card__grid--4 {
	grid-template-columns: repeat(4, 1fr);
}

/* Map embed box */
.cw-map-wrap {
	border-radius: var(--radius-md);
	overflow: hidden;
	border: 1px solid var(--clr-border);
	margin-top: 10px;
	height: 180px;
	background: linear-gradient(135deg, #e0f2fe, #f0f9ff);
}

.cw-map-wrap iframe,
.cw-map-wrap #map {
	width: 100%;
	height: 100%;
	border: none;
	display: block;
}


/* =============================================================================
   11. ROLE BADGES (FM / FO user cards)
============================================================================= */

.role-badge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 3px 10px;
	border-radius: 50px;
	font-size: 11.5px;
	font-weight: 700;
}

.rb-fo {
	background: #dbeafe;
	color: #1e40af;
}

.rb-fm {
	background: #d1fae5;
	color: #065f46;
}

/* Same-as-primary toggle */
.same-toggle {
	display: flex;
	align-items: center;
	gap: 7px;
	padding: 8px 10px;
	background: var(--clr-primary-pale);
	border-radius: var(--radius-md);
	cursor: pointer;
	margin-top: 4px;
}

.same-toggle input[type="checkbox"] {
	accent-color: var(--clr-primary);
	width: 14px;
	height: 14px;
	cursor: pointer;
	flex-shrink: 0;
}


/* =============================================================================
   12. SLAB CARDS (step 2)
============================================================================= */

.slab-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 8px;
	margin-top: 6px;
}

.slab-card {
	border: 2px solid var(--clr-border);
	border-radius: var(--radius-md);
	padding: 10px 12px;
	cursor: pointer;
	transition: all 0.2s ease;
	position: relative;
}

.slab-card:hover {
	border-color: var(--clr-primary-light);
	background: var(--clr-primary-pale);
}

.slab-card.selected {
	border-color: var(--clr-primary);
	background: var(--clr-primary-tint);
}

.slab-card__name {
	font-size: 12.5px;
	font-weight: 700;
	color: var(--clr-primary);
}

.slab-card__range {
	font-size: 11px;
	color: var(--clr-text-muted);
	margin-top: 2px;
}

.slab-card__type {
	position: absolute;
	top: 6px;
	right: 7px;
	font-size: 9.5px;
	font-weight: 700;
	padding: 2px 6px;
	border-radius: 4px;
}

.sc-shared {
	background: #dbeafe;
	color: #1e40af;
}

.sc-captive {
	background: #fef3c7;
	color: #92400e;
}

/* Tyre commit range display */
.commit-range {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 10px;
	flex-wrap: wrap;
}

.commit-range-item {
	display: flex;
	flex-direction: column;
	gap: 2px;
	background: #fff;
	border-radius: var(--radius-md);
	padding: 7px 12px;
	border: 1px solid var(--clr-border);
	flex: 1;
	min-width: 70px;
	text-align: center;
}

.cr-label {
	font-size: 10px;
	font-weight: 700;
	color: var(--clr-text-muted);
	text-transform: uppercase;
	letter-spacing: 0.4px;
}

.cr-val {
	font-size: 19px;
	font-weight: 800;
	color: var(--clr-primary);
}

.commit-sep {
	color: var(--clr-text-faint);
	font-size: 18px;
	font-weight: 300;
}

/* Commit hint text */
#cm-commit-hint-l,
#cm-commit-hint-r {
	font-size: 11px;
	color: var(--clr-text-muted);
}


/* =============================================================================
   13. VEHICLE GROUP CARDS (step 3)
============================================================================= */

.vg-card {
	border: 1.5px solid var(--clr-border);
	border-radius: var(--radius-lg);
	margin-bottom: 10px;
	transition: border-color 0.2s ease;
}

.vg-card:hover {
	border-color: var(--clr-primary-light);
}

.vg-card__head {
	padding: 9px 14px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: linear-gradient(90deg, #f5f0fb, #fff);
	border-bottom: 1px solid var(--clr-primary-muted);
}

.vg-head-l {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.vg-num {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--clr-primary);
	color: #fff;
	font-size: 10px;
	font-weight: 800;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.vg-card__body {
	padding: 12px 14px;
}

/* Tyre calc strip */
.tyre-calc {
	margin-top: 10px;
	padding: 8px 12px;
	background: linear-gradient(90deg, var(--clr-primary-pale), #fff);
	border-radius: var(--radius-md);
	border-left: 3px solid var(--clr-primary);
	display: flex;
	gap: 20px;
	align-items: center;
	flex-wrap: wrap;
}

.tc-item {
	display: flex;
	flex-direction: column;
	gap: 1px;
}

.tc-lbl {
	font-size: 9.5px;
	font-weight: 700;
	color: var(--clr-text-muted);
	text-transform: uppercase;
	letter-spacing: 0.4px;
}

.tc-val {
	font-size: 17px;
	font-weight: 800;
	color: var(--clr-primary);
}

/* Fleet totals strip */
.ft-item {
	background: #fff;
	border: 1px solid var(--clr-border);
	border-radius: var(--radius-md);
	padding: 9px 12px;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.ft-lbl {
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.4px;
	color: var(--clr-text-muted);
}

.ft-val {
	font-size: 19px;
	font-weight: 800;
	color: var(--clr-primary);
}


/* =============================================================================
   14. FTE SEARCH (step 4)
============================================================================= */

/* Dropdown list */
#cm-fte-dd {
	border: 2px solid var(--clr-primary) !important;
	border-radius: var(--radius-md);
	box-shadow: 0 4px 12px rgba(92, 45, 144, 0.15);
	padding: 4px 0;
	z-index: 400;
}

#cm-fte-dd .dropdown-item {
	font-size: 12.5px;
	padding: 8px 12px;
	cursor: pointer;
	border-bottom: 1px solid var(--clr-border);
	transition: background 0.15s ease;
}

#cm-fte-dd .dropdown-item:last-child {
	border-bottom: none;
}

#cm-fte-dd .dropdown-item:hover,
#cm-fte-dd .dropdown-item.active {
	background: var(--clr-primary-pale);
	color: var(--clr-primary);
	font-weight: 600;
}

/* Selected FTE card */
#cm-fte-card {
	display: none;
	margin-top: 7px;
	padding: 9px 12px;
	background: var(--clr-primary-pale);
	border-radius: var(--radius-md);
	border-left: 3px solid var(--clr-primary);
	align-items: center;
	gap: 10px;
}

.fte-av {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--clr-primary);
	color: #fff;
	font-weight: 700;
	font-size: 11px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.fte-name {
	font-size: 12.5px;
	font-weight: 700;
	color: var(--clr-primary);
}

.fte-sub {
	font-size: 11px;
	color: var(--clr-text-muted);
	margin-top: 1px;
}


/* =============================================================================
   15. VENDOR CARDS (step 5)
============================================================================= */

.vendor-card {
	border: 1.5px solid var(--clr-border);
	border-radius: var(--radius-md);
	padding: 9px 12px;
	display: flex;
	align-items: center;
	gap: 10px;
	background: var(--clr-surface);
	margin-bottom: 8px;
	transition: all 0.2s ease;
}

.vendor-card:hover {
	border-color: var(--clr-primary-light);
	background: #fff;
}

.vc-ico {
	width: 32px;
	height: 32px;
	border-radius: 9px;
	background: var(--clr-primary-muted);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.vc-ico i {
	color: var(--clr-primary);
	font-size: 14px;
}

.vc-info {
	flex: 1;
	min-width: 0;
}

.vc-name {
	font-size: 12.5px;
	font-weight: 700;
	color: var(--clr-text-heading);
}

.vc-code {
	font-size: 11px;
	color: var(--clr-text-muted);
}

.vc-type {
	padding: 2px 7px;
	border-radius: 7px;
	font-size: 10.5px;
	font-weight: 700;
	white-space: nowrap;
}

.vt-m {
	background: var(--clr-primary-muted);
	color: var(--clr-primary);
}

.vt-s {
	background: #d1fae5;
	color: #14532d;
}


/* =============================================================================
   16. cw-btn-add & cw-btn-remove (scoped to modal)
============================================================================= */

#customerCreateModal .cw-btn-add {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 5px 12px;
	font-size: 12px;
	font-weight: 600;
	background: var(--clr-primary);
	color: #fff;
	border: none;
	border-radius: var(--radius-pill);
	cursor: pointer;
	transition: all 0.2s ease;
	font-family: inherit;
	white-space: nowrap;
}

#customerCreateModal .cw-btn-add:hover {
	background: var(--clr-primary-dark);
	transform: translateY(-1px);
}

#customerCreateModal .cw-btn-remove {
	width: 30px;
	height: 30px;
	border: 1.5px solid #fecdd3;
	background: #fff1f2;
	color: #be123c;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	font-size: 12px;
	transition: all 0.2s ease;
	flex-shrink: 0;
}

#customerCreateModal .cw-btn-remove:hover {
	background: #be123c;
	color: #fff;
	border-color: #be123c;
}


/* =============================================================================
   17. MAP SUB-MODAL
============================================================================= */

#cmMapModal .modal-content {
	border-radius: 14px;
	border: none;
}

#cmMapModal .modal-header {
	background: linear-gradient(135deg, var(--clr-primary), var(--clr-primary-light));
	border: none;
	padding: 13px 16px;
}

#cmMapModal .modal-title {
	color: #fff;
	font-weight: 700;
	font-size: 14px;
}

#cmMapModal #cm-map-container {
	width: 100%;
	height: 300px;
	border-radius: 10px;
	border: 1.5px solid var(--clr-border);
	overflow: hidden;
	background: linear-gradient(135deg, #e0f2fe, #f0f9ff);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	cursor: crosshair;
	color: #64748b;
	transition: background 0.2s ease;
}

#cmMapModal #cm-map-container:hover {
	background: linear-gradient(135deg, #bae6fd, #e0f2fe);
}


/* =============================================================================
   18. RESPONSIVE — narrow the rail on small modals
============================================================================= */

@media (max-width: 768px) {
	#customerCreateModal .modal-body {
		flex-direction: column;
		max-height: none;
	}

	#cm-rail {
		width: 100%;
		padding: 14px 16px;
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
		gap: 8px;
		min-height: auto;
	}

	#cm-steps {
		flex-direction: row;
		flex-wrap: nowrap;
		overflow-x: auto;
		gap: 4px;
	}

	#cm-steps::before {
		display: none;
	}

	#cm-steps .cm-step {
		flex-direction: column;
		align-items: center;
		gap: 4px;
		padding: 6px 8px;
		flex-shrink: 0;
	}

	#cm-steps .cm-step__sub {
		display: none;
	}

	.cm-rail__stats {
		margin-top: 0;
		padding-top: 0;
		border-top: none;
		flex-direction: row;
		gap: 14px;
	}

	#customerCreateModal .modal-body .cm-body-scroll {
		max-height: 55vh;
	}

	#customerCreateModal .cw-grid--2,
	#customerCreateModal .cw-grid--3,
	#customerCreateModal .cw-grid--4 {
		grid-template-columns: 1fr;
	}

	#customerCreateModal .cw-span2 {
		grid-column: span 1;
	}

	.cw-row-card__grid--2,
	.cw-row-card__grid--3,
	.cw-row-card__grid--4 {
		grid-template-columns: 1fr;
	}
}

/* ================================
   AVOLVE ANALYTICS DASHBOARD UI
================================ */

.avolve-analytics-page {
	background: #fff;
	min-height: calc(100vh - var(--header-height));
	padding: 24px 24px 40px;
	color: var(--clr-primary);
}

.avolve-analytics-title {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 22px;
	font-weight: 650;
	color: var(--clr-primary);
	margin: 0 0 16px;
	padding-bottom: 14px;
	border-bottom: 2px solid rgba(92, 45, 144, 0.45);
}

.avolve-analytics-title i {
	font-size: 22px;
}

.avolve-analytics-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 36px 42px;
	padding: 24px 18px 0;
}

.chart-reset-icon {
	cursor: pointer;
	font-size: 16px;
	color: #5C2D90;
}

.analytics-hbar-clickable {
	cursor: pointer;
}

.analytics-hbar-active .analytics-hbar-fill {
	outline: 2px solid #5C2D90;
}

.avolve-analytics-card {
	background: #f0e6fa;
	border-radius: 10px;
	padding: 22px;
	height: 200px;
	display: flex;
	flex-direction: column;
	text-decoration: none;
	cursor: pointer;
	color: var(--clr-primary);
}

.avolve-analytics-card:hover {
	text-decoration: none;
	color: var(--clr-primary);
}

.analytics-icon {
	font-size: 22px;
	color: var(--clr-primary);
	margin-bottom: 20px;
}

.avolve-analytics-card h4 {
	font-size: 20px;
	font-weight: 600;
	color: var(--clr-primary);
	margin: 0;
}

.avolve-analytics-footer {
	margin-top: auto;

	display: flex;
	justify-content: space-between;
	align-items: center;
}

.avolve-analytics-footer span {
	font-size: 15px;
	color: var(--clr-primary);
}

.avolve-analytics-footer a {
	font-size: 15px;
	font-weight: 500;
	color: var(--clr-primary);
	text-decoration: underline;
}

@media (max-width: 992px) {
	.avolve-analytics-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 576px) {
	.avolve-analytics-page {
		padding: 20px 14px;
	}

	.avolve-analytics-grid {
		grid-template-columns: 1fr;
		gap: 20px;
		padding: 18px 0 0;
	}
}

.analytics-page {
	background: #fff;
	padding: 16px;
}

.analytics-chart-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 24px;
	width: 100%;
}

.analytics-chart-card {
	background: #fff;
	border: 1px solid var(--clr-primary-muted);
	border-radius: 16px;
	box-shadow: 0 4px 14px rgba(92, 45, 144, 0.12);
	overflow: hidden;
	min-height: 430px;
}

.analytics-chart-title {
	padding: 14px 16px;
	font-weight: 700;
	color: var(--clr-primary);
	background: linear-gradient(135deg, #fbf7ff, var(--clr-primary-tint));
	border-bottom: 1px solid var(--clr-primary-muted);
	text-transform: uppercase;
	font-size: 14px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.analytics-chart-body {
	padding: 14px;
	position: relative;
}

.analytics-donut-chart {
	width: 100%;
	min-height: 360px;
	position: relative;
}

.analytics-donut-wrap {
	width: 100%;
	height: 280px;
	position: relative;
}

.analytics-donut-wrap canvas {
	position: absolute !important;
	left: 0;
	top: 0;
}

.analytics-donut-svg {
	position: absolute;
	top: 0;
	left: 0;
	pointer-events: none;
	z-index: 5;
}

.analytics-donut-centre {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	text-align: center;
	color: var(--clr-primary);
	pointer-events: none;
	z-index: 10;
	line-height: 1.2;
}

.analytics-donut-centre-title,
.analytics-donut-centre-value {
	display: block;
}

.analytics-donut-centre-title {
	font-size: 13px;
	font-weight: 600;
}

.analytics-donut-centre-value {
	font-size: 20px;
	font-weight: 750;
}

.analytics-chart-legend {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 12px;
	padding: 10px 6px 4px;
	font-size: 12px;
	margin-top: 20px;
}

.analytics-chart-legend-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--clr-primary-dark);
	font-weight: 500;
}

.analytics-chart-legend-item i {
	width: 11px;
	height: 11px;
	border-radius: 3px;
	display: inline-block;
	box-shadow: 0 0 0 1px rgba(92, 45, 144, 0.12);
}

.analytics-chart-empty,
.analytics-chart-spinner {
	height: 260px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--clr-primary);
	font-weight: 650;
}

.analytics-chart-tooltip {
	position: absolute;
	display: none;
	background: #fff;
	color: var(--clr-primary);
	border: 1px solid var(--clr-primary-muted);
	border-radius: 8px;
	padding: 8px 10px;
	box-shadow: 0 4px 14px rgba(92, 45, 144, 0.18);
	font-size: 12px;
	font-weight: 600;
	z-index: 999999;
	pointer-events: none;
	white-space: nowrap;
	line-height: 1.5;
}

#tyreAnalytics-accountSelect+.select2-container {
	max-width: 100%;
}

#tyreAnalytics-accountSelect+.select2-container .select2-selection--single {
	background: #fbf7ff;
	border-color: var(--clr-primary-muted);
}

#tyreAnalytics-accountSelect+.select2-container.select2-container--focus .select2-selection--single,
#tyreAnalytics-accountSelect+.select2-container.select2-container--open .select2-selection--single {
	border-color: var(--clr-primary);
	box-shadow: 0 0 0 3px rgba(92, 45, 144, 0.1);
}

@media (max-width: 1400px) {
	.analytics-chart-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	.analytics-chart-grid {
		grid-template-columns: 1fr;
	}

	.analytics-chart-card {
		min-height: 390px;
	}

	.analytics-donut-wrap {
		height: 250px;
	}
}

/* Horizontal grouped bar chart */
.analytics-hbar-chart {
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 12px 8px 4px;
	box-sizing: border-box;
}

.analytics-hbar-body {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: space-evenly;
	gap: 12px;
}

.analytics-hbar-group {
	display: flex;
	align-items: center;
	gap: 10px;
}

.analytics-hbar-label {
	width: 110px;
	min-width: 90px;
	font-size: 12px;
	font-weight: 600;
	color: #555;
	text-align: right;
	flex-shrink: 0;
}

.analytics-hbar-bars {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.analytics-hbar-row {
	display: flex;
	align-items: center;
}

.analytics-hbar-track {
	flex: 1;
	display: flex;
	align-items: center;
	gap: 6px;
}

.analytics-hbar-fill {
	height: 60px;
	border-radius: 3px;
	min-width: 2px;
	transition: width 0.4s ease;
}

.analytics-hbar-value {
	font-size: 11px;
	font-weight: 600;
	color: #444;
	white-space: nowrap;
}

/* Legend */
.analytics-hbar-legend {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	padding-top: 10px;
	border-top: 1px solid #f0f0f0;
	margin-top: 8px;
}

.analytics-hbar-legend-item {
	display: flex;
	align-items: center;
	gap: 5px;
	font-size: 11px;
	color: #555;
}

.analytics-hbar-legend-item i {
	display: inline-block;
	width: 14px;
	height: 14px;
	border-radius: 2px;
	flex-shrink: 0;
}

.notifications.nav-right-icons {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.notification-count {
	position: absolute;
	top: -6px;
	right: -6px;
	min-width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #9061C2;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 0 5px;
}

.notification-block {
	width: 360px;
	height: auto !important;
	min-height: 260px !important;
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14);
	overflow: visible !important;
}

.notification-content {
	display: block !important;
	height: auto !important;
	min-height: 180px !important;
	max-height: 390px !important;
	overflow-y: auto !important;
	padding: 8px;
	scrollbar-width: thin;
	scrollbar-color: #8a49e6 transparent;
}

.notification-content::-webkit-scrollbar {
	width: 4px;
}

.notification-content::-webkit-scrollbar-track {
	background: transparent;
}

.notification-content::-webkit-scrollbar-thumb {
	background: #8a49e6;
	border-radius: 20px;
}

.notification-header {
	padding: 12px 16px 10px;
	border-bottom: 1px solid #eee;
}

.notification-header h3 {
	margin: 0;
	font-size: 15px;
	font-weight: 700;
	color: #6b2dbd;
}

.alerts-label {
	padding: 10px 16px 6px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .6px;
	color: #8a49e6;
}

.alert-summary-cards {
	display: flex !important;
	height: auto !important;
	min-height: 80px !important;
	visibility: visible !important;
	opacity: 1 !important;
	gap: 10px;
	padding: 0 16px 14px;
}

.alert-summary-card {
	display: block !important;
	height: auto !important;
	min-height: 65px !important;
	visibility: visible !important;
	opacity: 1 !important;
	flex: 1;
	border: 1px solid #e6dcf5;
	border-radius: 10px;
	padding: 6px 12px;
	cursor: pointer;
	background: #fff;
	transition: .15s;
}

.alert-summary-card:hover {
	box-shadow: 0 3px 10px rgba(107, 45, 189, .12);
	border-color: #c9a9e8;
	background: #faf7ff;
}

.alert-summary-card .card-title {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 15px;
	font-weight: 600;
	color: #3d2c52;
	margin-bottom: 8px;
	white-space: nowrap;
}

.alert-summary-card .card-count {
	display: flex;
	align-items: baseline;
	gap: 5px;
}

.alert-summary-card .card-count #dueCount,
.alert-summary-card .card-count #overdueCount {
	font-size: 19px;
	font-weight: 700;
	color: #6b2dbd;
}

.alert-summary-card .card-count .unit {
	font-size: 12px;
	font-weight: 500;
	color: #9a8fab;
}

/* ---- Drill-in header (list view) ---- */
.notification-detail-header {
	display: none;
	align-items: center;
	gap: 8px;
	padding: 12px 15px 8px;
	font-size: 13px;
	font-weight: 600;
	color: #6b2dbd;
}

.notification-detail-header.active {
	display: flex;
}

#backToSummary {
	cursor: pointer;
	display: inline-flex;
	align-items: center;
}

/* ---- Service card (list view) ---- */
.service-notification-card {
	background: #fff;
	border: 1px solid #eee;
	border-left: 4px solid #6b2dbd;
	border-radius: 10px;
	padding: 12px;
	margin-bottom: 12px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}

.service-card-top {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 6px;
}

.service-vehicle {
	display: flex;
	align-items: center;
	gap: 8px;
	background: #f4efff;
	border-radius: 8px;
	padding: 4px 6px;
	font-size: 13px;
	font-weight: 500;
	color: darkmagenta;
}

.vehicle-icon {
	width: 18px;
	height: 18px;
	object-fit: contain;
}

.service-days {
	text-align: right;
	font-size: 10px;
	color: #666;
}

.service-days strong {
	display: block;
	color: #ef4444;
	font-size: 13px;
}

.service-card-mid {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 8px 0;
	font-size: 11px;
}

.status-badge {
	padding: 2px 8px;
	border-radius: 20px;
	font-size: 10px;
	font-weight: 600;
}

.status-overdue {
	background: #ffe5e5;
	color: #dc3545;
}

.status-due {
	background: #fff3cd;
	color: #e09b00;
}

.service-date {
	color: #666;
	font-size: 11px;
	font-weight: 700;
}

.service-chip-wrap {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
}

.service-chip {
	background: #eef2f7;
	color: #526174;
	border-radius: 6px;
	padding: 4px 8px;
	font-size: 10px;
	font-weight: 600;
}

.notification-empty {
	padding: 14px;
	text-align: center;
	color: #777;
	font-size: 12px;
}

/* ---- Modal ---- */
#serviceAlertModal .modal-dialog {
	max-width: 800px;
}

#serviceAlertModal .modal-content {
	max-height: 80vh;
}

#serviceAlertModal .modal-body {
	max-height: calc(80vh - 80px);
	overflow-y: auto;
	padding: 24px;
}

/* ---- Offer notification cards ---- */
.offer-notification-card {
	background: #fff;
	border: 1px solid #eee;
	border-left: 4px solid #6b35b6;
	border-radius: 10px;
	padding: 8px 9px;
	margin-bottom: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
}

.offer-card-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.offer-card-left {
	display: flex;
	align-items: center;
	gap: 7px;
	min-width: 0;
}

.offer-icon {
	width: 26px;
	height: 26px;
	border-radius: 7px;
	background: #f2e9ff;
	color: #6b35b6;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 11px;
	flex-shrink: 0;
}

.offer-customer {
	font-size: 13px;
	font-weight: 700;
	color: #5c2d90;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 185px;
}

.offer-ref {
	font-size: 10px;
	color: #8a8a8a;
	margin-top: 0;
}

.offer-date-box {
	text-align: right;
	font-size: 9px;
	color: #777;
	line-height: 1.2;
	flex-shrink: 0;
}

.offer-date-box strong {
	display: block;
	font-size: 11px;
	color: #d93025;
	margin-top: 1px;
}

.offer-card-divider {
	height: 1px;
	background: #f0edf5;
	margin: 6px 0;
}

.offer-card-body {
	font-size: 12px;
	color: #444;
}

.offer-row {
	display: flex;
	align-items: center;
	gap: 5px;
	flex-wrap: wrap;
	margin-bottom: 5px;
}

.offer-status-chip {
	background: #f8d7da;
	color: #842029;
	font-size: 10px;
	font-weight: 700;
	padding: 2px 7px;
	border-radius: 7px;
}

.offer-label {
	font-size: 11px;
	font-weight: 700;
	color: #555;
}

.offer-value {
	font-size: 11px;
	font-weight: 700;
	color: #333;
}

.offer-badge-row {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
}

.offer-chip {
	display: inline-block;
	font-size: 10px;
	font-weight: 700;
	padding: 3px 8px;
	border-radius: 7px;
}

.chip-purple {
	background: #f1eaff;
	color: #5c2d90;
}

.chip-blue {
	background: #e9edff;
	color: #3751c9;
}

#serviceNotificationList,
#offerExpiryNotificationList {
	display: block !important;
	width: 100% !important;
	height: auto !important;
	min-height: 1px !important;
	overflow: visible !important;
}

#serviceNotificationList .notification-service-alert-section {
	display: block !important;
	height: auto !important;
	min-height: 100px !important;
	overflow: visible !important;
}

.analytics-chart-scroll {
	width: calc(100% - 75px);
	overflow-x: auto;
	overflow-y: hidden;
	padding-bottom: 8px;
}

.analytics-chart-scroll::-webkit-scrollbar {
	height: 8px;
}

.analytics-chart-scroll::-webkit-scrollbar-track {
	background: transparent;
}

.analytics-chart-scroll::-webkit-scrollbar-thumb {
	background: rgba(92, 45, 145, 0.5);
	border-radius: 10px;
}

.analytics-chart-scroll::-webkit-scrollbar-thumb:hover {
	background: rgba(92, 45, 145, 0.8);
}

@supports (overflow: overlay) {
	.analytics-chart-scroll {
		overflow-x: overlay;
	}
}

.vc-axle-card {
	display: inline-flex;
	flex-direction: column;
	gap: 6px;
	width: 340px;
	padding: 8px 12px;
	border-left: 4px solid #5C2D90;
	background: #f7f1fb;
	border-radius: 8px;
}

.vc-axle-item {
	font-size: 13px;
	color: #344054;
	line-height: 1.4;
	white-space: nowrap;
}

.vc-axle-item strong {
	color: #344054;
	font-weight: 700;
}

#vc-modal-title {
	width: 100%;
	margin: 0;
}

.vc-layout-title {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
}

.vc-layout-axle {
	font-size: 17px;
	font-weight: 500;
	color: #222;
	line-height: 1;
}

.vc-layout-meta {
	font-size: 20px;
	font-weight: 700;
	color: #5C2D90;
	line-height: 1;
}

.axle-diagram-wrap {
	flex: 1;
	width: 100%;
	max-width: 480px;
	margin: 0 auto;
	height: auto;
	overflow-y: auto;
	overflow-x: hidden;
	display: block;
	padding: 20px;
}

.axle-diagram-wrap::-webkit-scrollbar {
	width: 5px;
}

.axle-diagram-wrap::-webkit-scrollbar-track {
	background: transparent;
}

.axle-diagram-wrap::-webkit-scrollbar-thumb {
	background: var(--clr-primary-muted);
	border-radius: 10px;
}

.axle-diagram-wrap::-webkit-scrollbar-thumb:hover {
	background: var(--clr-primary-muted);
}

@supports (overflow: overlay) {
	.axle-diagram-wrap {
		overflow-y: overlay;
	}
}

#axle-diagram {
	width: 100%;
	min-height: 100%;
}

.axle-panel {
	width: 450px;
	background: #fff;
	border: 1px solid var(--clr-border);
	border-radius: var(--radius-lg);
	overflow: hidden;
	box-shadow: var(--shadow-sm);
}

.axel-scroll {
	width: 100%;
	min-height: 100%;
	overflow: visible;
}

.real-vehicle-layout {
	position: relative;
	width: 380px;
	margin: 0 auto;
	background: #fff;
	overflow: visible;
	transform: none !important;
	margin-bottom: 30px;
}

.real-vehicle-title {
	text-align: center;
	position: sticky;
	top: 10px;
	z-index: 100;
	margin-bottom: 10px;
	background: transparent;
	color: #5C2D90;
	font-size: 15px;
	padding: 4px 0;
}

.real-vehicle-title span {
	margin-left: 8px;
	color: #344054;
}

.real-vehicle-bg {
	position: absolute;
	inset: 0;
	z-index: 1;
	opacity: 0.45;
}

.real-cabin {
	position: absolute;
	top: 15px;
	left: 40px;
	right: 40px;
	height: 155px;
	background: linear-gradient(180deg, #dde6ea 0%, #eef3f5 100%);
	border-radius: 60px 60px 0 0;
	border: 2px solid rgba(130, 140, 145, 0.22);
	border-bottom: none;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.07);
	z-index: 2;
}

.real-cabin-top {
	position: absolute;
	top: -20px;
	left: 110px;
	right: 110px;
	height: 25px;
	border: 6px solid rgba(100, 100, 100, 0.25);
	border-bottom: 0;
	border-radius: 18px 18px 0 0;
}

.real-windshield {
	position: absolute;
	left: 40px;
	right: 40px;
	top: 35px;
	height: 45px;
	background: rgba(255, 255, 255, 0.65);
	border-radius: 35px 35px 8px 8px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.real-body {
	position: absolute;
	top: 160px;
	left: 35px;
	right: 35px;
	background: rgba(230, 237, 240, 0.65);
	border: 6px solid rgba(160, 170, 175, 0.20);
	border-top: 0;
	border-radius: 0 0 16px 16px;
}

.real-body-lines {
	position: absolute;
	left: 45px;
	right: 45px;
	z-index: 2;
	pointer-events: none;
}

.real-body-line {
	position: absolute;
	top: 25px;
	bottom: 25px;
	width: 3px;
	background: rgba(130, 130, 130, 0.20);
}

.real-body-line.line-1 {
	left: 27%;
}

.real-body-line.line-2 {
	left: 50%;
}

.real-body-line.line-3 {
	left: 73%;
}

.real-center-chassis {
	position: absolute;
	left: 50%;
	width: 10px;
	transform: translateX(-50%);
	background: rgba(130, 130, 130, 0.22);
	border-radius: 8px;
}

.real-layout-overlay {
	position: relative;
	z-index: 3;
	padding-left: 8px;
	padding-right: 8px;
}

.real-axle-row {
	display: flex;
	align-items: center;
	margin-bottom: 65px;
	width: 100%;
}

.real-axle-line {
	flex: 1;
	height: 9px;
	margin: 0 -2px;
	background: rgba(110, 110, 110, 0.28);
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
}

.real-axle-line span {
	background: rgba(201, 199, 199, 0.92);
	border: 1px solid rgba(120, 120, 120, 0.18);
	border-radius: 4px;
	padding: 0 6px;
	font-size: 10px;
	font-weight: 600;
	color: #555;
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
	white-space: nowrap;
}

.real-tyre-group {
	display: flex;
	gap: 8px;
	justify-content: center;
	align-items: center;
	width: auto;
	min-width: auto;
}

.real-tyre {
	width: 40px;
	height: 85px;
	background: #777;
	color: #fff;
	border-radius: 12px;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding-top: 12px;
	font-size: 9px;
	font-weight: 600;
	box-shadow: inset 0 0 7px rgba(255, 255, 255, 0.2);
}

.tyre-wrap {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 5px;
	cursor: pointer;
}

.tyre-badge {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #6b6b6b;
	color: #fff;
	font-size: 9px;
	font-weight: 600;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
}

.real-spare-area {
	position: relative;
	margin-top: -50px;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 10px;
	z-index: 5;
}

.spare-section-label {
	display: none;
}

.spare-tyres-row {
	display: flex;
	gap: 10px;
	justify-content: center;
	align-items: center;
}

.real-spare-tyre {
	width: 120px;
	height: 40px;
	background: #777;
	color: #fff;
	border-radius: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	font-weight: 600;
}

.axle-empty-state {
	text-align: center;
	padding: 32px;
	color: #94a3b8;
	font-size: 13px;
}

.ui-pair-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin: 2px 3px 2px 0;
	padding: 2px 7px;
	border-radius: 12px;
	background: #f0eefe;
	border: 1px solid #d4cefb;
	font-size: 11.5px;
	white-space: nowrap;
}

.ui-pair-badge-label {
	font-weight: 600;
	color: #5b3fd4;
}

.ui-pair-badge-pos {
	color: #444;
}

body.login-body {
	min-height: 100vh;
	overflow-x: hidden;
	font-family: var(--font-body);
	color: var(--clr-text-body);
	background: var(--clr-bg);
}

.hide {
	display: none !important;
}

.login-page {
	position: relative;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	background-image:
		linear-gradient(90deg,
			rgba(255, 255, 255, 0.97) 0%,
			rgba(255, 255, 255, 0.93) 18%,
			rgba(255, 255, 255, 0.62) 38%,
			rgba(255, 255, 255, 0.18) 60%,
			rgba(255, 255, 255, 0.02) 100%),
		url('/images/avolve.jpg');
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center;
}

.login-nav {
	position: relative;
	z-index: 5;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 5%;
}

.login-nav-logo {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 58px;
}

.login-nav-logo img {
	display: block;
	max-width: 100%;
	object-fit: contain;
}

.login-nav-logo.avolve img {
	width: clamp(130px, 14vw, 195px);
}

.login-nav-logo.apollo img {
	width: clamp(115px, 12vw, 155px);
}

.login-main {
	position: relative;
	z-index: 2;
	flex: 1;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(340px, 420px);
	align-items: center;
	gap: clamp(30px, 5vw, 80px);
	width: 100%;
	padding: 20px 5% 26px;
}

.hero-section {
	max-width: 500px;
}

.hero-headline {
	margin-bottom: 18px;
}

.hero-headline .line-one {
	font-family: var(--font-heading);
	font-size: clamp(28px, 2.6vw, 42px);
	font-weight: 600;
	line-height: 1.05;
	color: var(--clr-text-muted);
}

.hero-headline .line-two,
.hero-headline .line-three {
	font-family: var(--font-heading);
	font-size: clamp(46px, 5.4vw, 78px);
	font-weight: 800;
	line-height: 0.98;
	letter-spacing: -2px;
}

.hero-headline .line-two {
	color: var(--clr-text-heading);
}

.hero-headline .line-three {
	color: var(--clr-primary);
}

.hero-tagline {
	max-width: 390px;
	margin: 0 0 8px;
	color: var(--clr-text-body);
	font-size: clamp(15px, 1.25vw, 18px);
	line-height: 1.6;
}

.hero-subtitle {
	margin: 0;
	color: var(--clr-primary-dark);
	font-family: var(--font-heading);
	font-size: 14px;
	font-weight: 700;
}

.hero-divider {
	width: 50px;
	height: 4px;
	margin: 24px 0;
	border-radius: var(--radius-pill);
	background: var(--clr-primary);
}

.feature-list {
	display: grid;
	gap: 12px;
	max-width: 410px;
}

.feature-card {
	display: flex;
	align-items: center;
	gap: 15px;
	padding: 14px 16px;
	border: 1px solid rgba(92, 45, 144, 0.16);
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.82);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	box-shadow: 0 10px 30px rgba(48, 22, 76, 0.11);
	transition: transform var(--transition-med), box-shadow var(--transition-med);
}

.feature-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 16px 34px rgba(48, 22, 76, 0.16);
}

.feature-icon {
	flex: 0 0 40px;
	width: 40px;
	height: 40px;
	display: grid;
	place-items: center;
	border-radius: 11px;
	background: var(--clr-primary);
	color: var(--clr-white);
	box-shadow: var(--shadow-lg);
}

.feature-icon svg {
	width: 19px;
	height: 19px;
	stroke: currentColor;
	stroke-width: 2.1;
}

.feature-copy strong {
	display: block;
	margin-bottom: 2px;
	color: var(--clr-text-heading);
	font-size: 14px;
	font-weight: 700;
}

.feature-copy span {
	display: block;
	color: var(--clr-text-muted);
	font-size: 12.5px;
	line-height: 1.45;
}

.login-panel {
	width: 100%;
}

.login-card {
	position: relative;
	width: 100%;
	padding: clamp(28px, 3vw, 38px);
	border: 1px solid rgba(226, 232, 240, 0.95);
	border-radius: 20px;
	background: rgba(255, 255, 255, 0.97);
	box-shadow: 0 28px 65px rgba(27, 12, 48, 0.24);
	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);
}

.login-card-title {
	margin: 0 0 5px;
	font-family: var(--font-heading);
	font-size: 25px;
	font-weight: 800;
	color: var(--clr-primary-light);
}

.login-card-subtitle {
	margin: 0 0 26px;
	color: var(--clr-text-muted);
	font-size: 14px;
}

.login-form {
	margin: 0;
}

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

.form-label {
	display: block;
	margin-bottom: 7px;
	color: var(--clr-text-body);
	font-size: 13px;
	font-weight: 600;
}

.field-wrapper {
	position: relative;
}

.field-icon {
	position: absolute;
	left: 14px;
	top: 50%;
	z-index: 2;
	width: 17px;
	height: 17px;
	transform: translateY(-50%);
	color: var(--clr-text-faint);
	pointer-events: none;
}

.field-icon svg {
	display: block;
	width: 100%;
	height: 100%;
	stroke: currentColor;
}

.form-input {
	width: 100%;
	height: 47px;
	padding: 0 44px;
	border: 1.5px solid var(--clr-border);
	border-radius: var(--radius-md);
	outline: none;
	background: var(--clr-surface);
	color: var(--clr-text-heading);
	font-family: var(--font-body);
	font-size: 14px;
	transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.form-input::placeholder {
	color: var(--clr-text-faint);
}

.form-input:focus {
	border-color: var(--clr-primary);
	background: var(--clr-white);
	box-shadow: 0 0 0 4px rgba(92, 45, 144, 0.1);
}

.password-toggle {
	position: absolute;
	right: 11px;
	top: 50%;
	z-index: 3;
	transform: translateY(-50%);
	border: 0;
	background: transparent;
	color: var(--clr-primary);
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
}

.form-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 4px 0 24px;
	font-size: 12.5px;
}

.remember-label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--clr-text-muted);
	cursor: pointer;
	user-select: none;
}

.remember-label input {
	width: 16px;
	height: 16px;
	accent-color: var(--clr-primary);
}

.forgot-link {
	color: var(--clr-primary);
	font-weight: 600;
	text-decoration: none;
}

.forgot-link:hover {
	color: var(--clr-primary-dark);
	text-decoration: underline;
}

.login-button {
	width: 100%;
	height: 48px;
	border: 0;
	border-radius: 11px;
	background: var(--clr-primary);
	color: var(--clr-white);
	font-family: var(--font-body);
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	box-shadow: 0 10px 20px rgba(92, 45, 144, 0.22);
	transition: transform var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
}

.login-button:hover {
	transform: translateY(-1px);
	background: var(--clr-primary-dark);
	box-shadow: 0 14px 24px rgba(92, 45, 144, 0.28);
}

.card-footer-links {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	margin-top: 23px;
	font-size: 12px;
}

.card-footer-links a {
	color: var(--clr-text-muted);
	text-decoration: none;
}

.card-footer-links a:hover {
	color: var(--clr-primary);
}

/* ============================================
   STATS BAR — fluid/responsive sizing
   Everything below scales continuously with
   viewport width via clamp(), instead of
   jumping between fixed values at breakpoints.
   ============================================ */

.stats-wrapper {
	position: relative;
	z-index: 2;
	padding: 0 5% clamp(12px, 2.4vw, 24px);
}

.stats-bar {
	display: flex;
	align-items: center;
	width: fit-content;
	max-width: 100%;
	padding: clamp(8px, 1.4vw, 13px) clamp(10px, 2vw, 18px);
	gap: clamp(2px, 0.6vw, 6px);
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: clamp(12px, 2vw, 20px);
	background: linear-gradient(135deg, rgba(74, 36, 115, 0.93), rgba(92, 45, 144, 0.93));
	box-shadow: 0 14px 34px rgba(54, 21, 85, 0.25);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
}

.stat-item {
	display: flex;
	align-items: center;
	gap: clamp(6px, 1.2vw, 12px);
	padding: 0 clamp(8px, 1.6vw, 17px);
	white-space: nowrap;
}

.stat-item:first-child {
	padding-left: 0;
}

.stat-item:last-child {
	padding-right: 0;
}

.stat-icon {
	flex: 0 0 clamp(26px, 3.2vw, 38px);
	width: clamp(26px, 3.2vw, 38px);
	height: clamp(26px, 3.2vw, 38px);
	display: grid;
	place-items: center;
	border: 1px solid rgba(255, 255, 255, 0.28);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.14);
	color: var(--clr-white);
}

.stat-icon svg {
	width: clamp(13px, 1.6vw, 18px);
	height: clamp(13px, 1.6vw, 18px);
	stroke: currentColor;
}

.stat-text {
	color: rgba(255, 255, 255, 0.96);
	font-size: clamp(10.5px, 1.1vw, 12.5px);
	font-weight: 600;
}

.stat-divider {
	width: 1px;
	height: clamp(26px, 4vw, 42px);
	background: rgba(255, 255, 255, 0.2);
	flex-shrink: 0;
}

@media (max-width: 1120px) {
	.login-main {
		grid-template-columns: minmax(0, 1fr) 390px;
		gap: 32px;
	}

	.stats-bar {
		width: 100%;
		justify-content: center;
	}
}

@media (max-width: 900px) {
	.login-page {
		background-position: 65% center;
	}

	.login-main {
		grid-template-columns: 1fr;
		padding-top: 10px;
	}

	.hero-section {
		max-width: 650px;
		text-align: center;
		margin: 0 auto;
	}

	.hero-tagline {
		margin-left: auto;
		margin-right: auto;
	}

	.hero-divider {
		margin-left: auto;
		margin-right: auto;
	}

	.feature-list {
		max-width: 600px;
		margin: 0 auto;
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.feature-card {
		align-items: flex-start;
		text-align: left;
	}

	.login-panel {
		max-width: 440px;
		margin: 0 auto;
	}

	.stats-bar {
		flex-wrap: wrap;
		justify-content: center;
		row-gap: clamp(10px, 2vw, 16px);
	}

	.stat-item {
		flex: 0 1 auto;
		white-space: nowrap;
	}

	.stat-divider {
		display: none;
	}
}

@media (max-width: 680px) {
	.login-page {
		background-image:
			linear-gradient(rgba(255, 255, 255, 0.91), rgba(255, 255, 255, 0.91)),
			url('/images/avolve.jpg');
		background-position: center;
	}

	.login-nav {
		padding: 14px 18px;
	}

	.login-main {
		padding: 14px 18px 22px;
	}

	.hero-headline .line-two,
	.hero-headline .line-three {
		letter-spacing: -1px;
	}

	.feature-list {
		grid-template-columns: 1fr;
	}

	.stats-wrapper {
		padding: 0 18px clamp(12px, 4vw, 20px);
	}

	.stats-bar {
		width: 100%;
		justify-content: space-between;
		padding: clamp(8px, 3vw, 13px);
	}

	.stat-item {
		flex: 0 0 calc(50% - 6px);
		padding: clamp(4px, 1.5vw, 7px);
		white-space: normal;
	}
}

@media (max-width: 420px) {
	.login-nav-logo.avolve img {
		width: 115px;
	}

	.login-nav-logo.apollo img {
		width: 100px;
	}

	.login-card {
		padding: 25px 20px;
	}

	.form-meta {
		align-items: flex-start;
		flex-direction: column;
	}

	.stat-item {
		flex: 0 0 100%;
	}

	.stats-bar {
		gap: 8px;
	}
}

/* =============================================================================
   HEADER BAR — Reusable Component
============================================================================= */

.header-bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: var(--space-md, 14px);
	background: var(--clr-white);
	padding: var(--space-lg, 14px) var(--space-2xl, 24px);
	border-bottom: 2px solid var(--clr-primary);
	box-shadow: var(--shadow-sm);
	border-radius: var(--radius-md);
	min-height: 60px;
	border: 2px solid #f6edfd;
}

/* Left side: icon + title + optional subtitle */
.header-bar-left {
	display: flex;
	align-items: center;
	gap: var(--space-md, 10px);
	min-width: 0;
}

.header-bar-icon {
	width: 38px;
	height: 38px;
	border-radius: var(--radius-md);
	background: var(--clr-primary-pale);
	color: var(--clr-primary);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	font-size: 16px;
}

.header-bar-icon img {
	width: 20px;
	height: 20px;
}

.header-bar-text {
	min-width: 0;
}

.header-bar-title {
	color: var(--clr-primary);
	font-size: var(--text-2xl, 20px);
	font-weight: 650;
	margin: 0;
	display: flex;
	align-items: center;
	gap: 8px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.header-bar-subtitle {
	font-size: var(--text-sm, 12.5px);
	color: var(--clr-text-muted);
	margin-top: 2px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Right side: action buttons / search / filters */
.header-bar-actions {
	display: flex;
	gap: 10px;
	align-items: center;
	flex-wrap: wrap;
}

/* Optional badge/count next to title */
.header-bar-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 22px;
	height: 22px;
	padding: 0 7px;
	background: var(--clr-primary);
	color: var(--clr-white);
	border-radius: var(--radius-pill);
	font-size: 11px;
	font-weight: 700;
}

/* Color variants */
.header-bar--gradient {
	background: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-primary-light) 100%);
	border-bottom: none;
}

.header-bar--gradient .header-bar-title,
.header-bar--gradient .header-bar-subtitle {
	color: var(--clr-white);
}

.header-bar--gradient .header-bar-icon {
	background: rgba(255, 255, 255, 0.18);
	color: var(--clr-white);
}

.header-bar--flat {
	box-shadow: none;
	border-bottom: 1px solid var(--clr-border);
}

/* Size variant — compact */
.header-bar--compact {
	padding: 15px 16px;
	min-height: 44px;
}

.header-bar--compact .header-bar-title {
	font-size: var(--text-lg, 16px);
}

/* Responsive */
@media (max-width: 767px) {
	.header-bar {
		padding: 12px 16px;
	}

	.header-bar-title {
		font-size: var(--text-xl, 17px);
	}

	.header-bar-actions {
		width: 100%;
		justify-content: flex-start;
	}
}

.axle-panel,
.axle-diagram-wrap {
	width: 100% !important;
	max-width: 480px;
	margin: 0 auto !important;
}

.axle-diagram-wrap {
	overflow-y: auto !important;
	overflow-x: hidden !important;
}

/* =============================================================================
   HEADER BAR — Reusable Component
============================================================================= */

.header-bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: var(--space-md, 14px);
	background: var(--clr-white);
	padding: var(--space-lg, 14px) var(--space-2xl, 24px);
	border-bottom: 2px solid var(--clr-primary);
	box-shadow: var(--shadow-sm);
	border-radius: var(--radius-md);
	min-height: 60px;
	border: 2px solid #f6edfd;
}

/* Left side: icon + title + optional subtitle */
.header-bar-left {
	display: flex;
	align-items: center;
	gap: var(--space-md, 10px);
	min-width: 0;
}

.header-bar-icon {
	width: 38px;
	height: 38px;
	border-radius: var(--radius-md);
	background: var(--clr-primary-pale);
	color: var(--clr-primary);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	font-size: 16px;
}

.header-bar-icon img {
	width: 20px;
	height: 20px;
}

.header-bar-text {
	min-width: 0;
}

.header-bar-title {
	color: var(--clr-primary);
	font-size: var(--text-2xl, 20px);
	font-weight: 650;
	margin: 0;
	display: flex;
	align-items: center;
	gap: 8px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.header-bar-subtitle {
	font-size: var(--text-sm, 12.5px);
	color: var(--clr-text-muted);
	margin-top: 2px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Right side: action buttons / search / filters */
.header-bar-actions {
	display: flex;
	gap: 10px;
	align-items: center;
	flex-wrap: wrap;
}

/* Optional badge/count next to title */
.header-bar-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 22px;
	height: 22px;
	padding: 0 7px;
	background: var(--clr-primary);
	color: var(--clr-white);
	border-radius: var(--radius-pill);
	font-size: 11px;
	font-weight: 700;
}

/* Color variants */
.header-bar--gradient {
	background: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-primary-light) 100%);
	border-bottom: none;
}

.header-bar--gradient .header-bar-title,
.header-bar--gradient .header-bar-subtitle {
	color: var(--clr-white);
}

.header-bar--gradient .header-bar-icon {
	background: rgba(255, 255, 255, 0.18);
	color: var(--clr-white);
}

.header-bar--flat {
	box-shadow: none;
	border-bottom: 1px solid var(--clr-border);
}

/* Size variant — compact */
.header-bar--compact {
	padding: 15px 16px;
	min-height: 44px;
}

.header-bar--compact .header-bar-title {
	font-size: var(--text-lg, 16px);
}

/* Responsive */
@media (max-width: 767px) {
	.header-bar {
		padding: 12px 16px;
	}

	.header-bar-title {
		font-size: var(--text-xl, 17px);
	}

	.header-bar-actions {
		width: 100%;
		justify-content: flex-start;
	}
}

/* Tab count badge */
.asset-tab .tab-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	height: 20px;
	margin-left: 6px;
	padding: 0 6px;
	border-radius: var(--radius-pill);
	background: var(--clr-primary-muted);
	color: var(--clr-primary);
	font-size: 11.5px;
	font-weight: 700;
	line-height: 1;
	vertical-align: middle;
}

.asset-tab.active .tab-count {
	background: var(--clr-primary);
	color: #fff;
}

.adf-table-wrap {
	overflow-y: auto;
	overflow-x: auto;
	max-height: 400px;
	border-radius: 8px;
	border: 1px solid var(--clr-border);
}

#offerDetailsTable {
	border-collapse: separate;
	border-spacing: 0;
	width: 100%;
}

#offerDetailsTable thead.table-light {
	position: sticky;
	top: 0;
	z-index: 10;
	background: var(--clr-surface) !important;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

#offerDetailsTable thead th {
	top: 0;
	background: var(--clr-surface) !important;
	z-index: 11;
	border-bottom: 2px solid #5C2D91;
	white-space: nowrap;
}

#offerDetailsTable thead tr:first-child th {
	top: 0;
	vertical-align: bottom !important;
}

#offerDetailsTable thead tr:first-child th[rowspan],
#offerDetailsTable thead tr:first-child th[colspan] {
	padding-bottom: 8px;
}

#offerDetailsTable tbody tr:first-child td {
	border-top: 1px solid #e2e8f0;
}

#updateOfferModal .adf-table-wrap {
	position: relative;
	max-height: 400px;
	overflow: auto !important;
	isolation: isolate;
}

#updateOfferModal #offerDetailsTable {
	border-collapse: separate !important;
	border-spacing: 0;
}

#updateOfferModal #offerDetailsTable thead th {
	position: sticky;
	background: #faf8fc !important;
	color: var(--clr-primary);
	z-index: 20;
	white-space: nowrap;
}

#updateOfferModal #offerDetailsTable thead tr:first-child th {
	top: 0;
	z-index: 30;
	height: 43px;
}

#updateOfferModal #offerDetailsTable thead tr:nth-child(2) th {
	top: 43px;
	z-index: 29;
	height: 43px;
	background: #faf8fc !important;
}

#updateOfferModal #offerDetailsTable thead tr:first-child th[rowspan='2'] {
	top: 0;
	z-index: 31;
	vertical-align: middle;
	background: #faf8fc !important;
}

#updateOfferModal #offerDetailsTable tbody td {
	position: relative;
	z-index: 1;
	background: #fff;
}

#updateOfferModal #offerDetailsTable thead tr:last-child th,
#updateOfferModal #offerDetailsTable thead tr:first-child th[rowspan='2'] {
	border-bottom: 2px solid var(--clr-primary-muted) !important;
	box-shadow: 0 2px 2px rgba(30, 41, 59, 0.06);
}

#updateOfferModal #offerDetailsTable tbody .select2-container {
	position: relative;
	z-index: 2;
}

.cust-dashboard {
	position: relative;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	min-height: 100vh;
	height: auto !important;
	padding: 20px;
	overflow: visible !important;
	color: var(--clr-text-body);
	-webkit-font-smoothing: antialiased;
	box-sizing: border-box;
}

.cust-dashboard *,
.cust-dashboard *::before,
.cust-dashboard *::after {
	box-sizing: border-box;
}

/* Header row (hero + right cards) */
.cust-dashboard__header {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 14px;
	align-items: stretch;
	margin-bottom: 16px;
	width: 100%;
	max-width: 100%;
	height: auto !important;
	min-width: 0;
}

.cust-dashboard__header-right {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 14px;
	min-width: 0;
	max-width: 100%;
}

/* Hero card */
.cust-dashboard__hero {
	position: relative;
	overflow: hidden;
	min-height: 100px;
	width: 100%;
	height: 100%;
	padding: 20px 24px;

	background:
		linear-gradient(135deg,
			rgba(92, 45, 144, 0.08) 0%,
			var(--clr-white) 48%,
			var(--clr-primary-pale) 100%);
	border: 1px solid var(--clr-primary-muted);
	border-radius: var(--radius-xl);
	box-shadow: var(--shadow-md);

	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	min-width: 0;
	height: auto !important;
	transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.cust-dashboard__hero:hover {
	transform: translateY(-1px);
	box-shadow: var(--shadow-lg);
}

.cust-dashboard__hero-top {
	position: relative;
	z-index: 1;
	width: 100%;
	display: flex;
	align-items: flex-start;
	justify-content: flex-start;
	gap: var(--space-md);
	text-align: left;
}

.cust-dashboard__welcome-icon {
	width: 48px;
	height: 48px;
	flex-shrink: 0;
	border-radius: var(--radius-lg);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: var(--text-2xl);
	color: var(--clr-white);
	background: linear-gradient(135deg, var(--clr-primary-light), var(--clr-primary));
	box-shadow: var(--shadow-lg);
}

.cust-dashboard__greeting {
	text-align: left;
	width: 100%;
	min-width: 0;
}

.cust-dashboard__greeting h2 {
	margin: 0;
	font-size: 25px;
	line-height: 1.2;
	font-weight: 700;
	letter-spacing: -0.025em;
	color: #241f38;
	max-width: 100%;
	overflow-wrap: break-word;
	display: flex;
	align-items: center;
	gap: 1px;
}

.cust-dashboard__greeting p {
	margin-top: 20px;
	font-size: var(--text-base);
	line-height: 1.6;
	color: var(--clr-text-muted);
}

.tis-greeting-wave {
	display: inline-block;
	margin-left: var(--space-xs);
	font-size: 20px;
	transform-origin: 70% 70%;
}

.cust-dashboard__summary {
	flex-wrap: wrap;
	gap: var(--space-sm);
	margin: 10px 0 0;
	font-size: 13.5px;
	font-weight: 500;
	color: #6b6480;
	justify-content: flex-start;
	text-align: left;
	max-width: 100%;
}

.cust-dashboard__summary strong {
	margin-right: 3px;
	font-size: 15px;
	font-weight: 700;
	color: #241f38;
}

.tis-summary-dot {
	width: 4px;
	height: 4px;
	flex-shrink: 0;
	border-radius: 50%;
	background: var(--clr-primary-light);
}

.cust-dashboard__hero-actions {
	position: relative;
	z-index: 1;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-sm);
	margin-top: var(--space-xl);
	width: 100%;
}

/* Action / CTA buttons */
.tis-action-btn,
.tis-btn {
	min-height: 40px;
	padding: 0 var(--space-md);
	border: 1px solid transparent;
	border-radius: var(--radius-md);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-sm);
	font-size: 14px;
	font-weight: 650;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	flex: 0 1 auto;
	max-width: 100%;
	white-space: normal;
	transition:
		transform var(--transition-fast),
		box-shadow var(--transition-fast),
		background var(--transition-fast),
		border-color var(--transition-fast),
		color var(--transition-fast);
}

.tis-action-btn i,
.tis-btn i { font-size: var(--text-base); }

.tis-action-btn--primary,
.btn-primary.tis-btn {
	color: var(--clr-white);
	background: linear-gradient(135deg, var(--clr-primary-light), var(--clr-primary));
	border-color: var(--clr-primary);
	box-shadow: 0 6px 14px rgba(92, 45, 144, 0.2);
}

.tis-action-btn--primary:hover,
.tis-action-btn--primary:focus,
.btn-primary.tis-btn:hover,
.btn-primary.tis-btn:focus {
	color: var(--clr-white);
	background: linear-gradient(135deg, var(--clr-primary), var(--clr-primary-dark));
	border-color: var(--clr-primary-dark);
	transform: translateY(-2px);
	box-shadow: var(--shadow-lg);
}

.tis-action-btn--secondary,
.btn-outline.tis-btn {
	color: var(--clr-text-body);
	background: var(--clr-white);
	border-color: var(--clr-border);
	box-shadow: var(--shadow-sm);
}

.tis-action-btn--secondary:hover,
.tis-action-btn--secondary:focus,
.btn-outline.tis-btn:hover,
.btn-outline.tis-btn:focus {
	color: var(--clr-primary);
	background: var(--clr-primary-pale);
	border-color: var(--clr-primary-light);
	transform: translateY(-2px);
	box-shadow: var(--shadow-md);
}

.tis-action-btn:active,
.tis-btn:active { transform: translateY(0); }

/* Summary cards (Vehicles Enrolled / Mapping Rate siblings) */
.tis-summary-card {
	background:
		radial-gradient(circle at 75% 20%, rgba(92, 45, 144, 0.10) 0%, rgba(92, 45, 144, 0) 45%),
		linear-gradient(135deg, rgba(92, 45, 144, 0.04) 0%, #ffffff 55%, rgba(240, 230, 250, 0.85) 100%);
	border: 1px solid rgba(92, 45, 144, 0.10);
	border-radius: var(--radius-xl);
	box-shadow: var(--shadow-sm);
	padding: 12px 22px;
	display: flex;
	gap: 10px;
	align-items: center;
	min-height: 100px;
	min-width: 0;
	transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.tis-summary-card:hover {
	transform: translateY(-2px);
	border-color: var(--clr-primary-muted);
	box-shadow: var(--shadow-lg);
}

.tis-summary-card__icon {
	width: 35px;
	height: 35px;
	border-radius: 50%;
	background: #f2ebff;
	display: flex;
	justify-content: center;
	align-items: center;
	color: #5C2D90;
	font-size: 16px;
	flex-shrink: 0;
}

.tis-summary-card__label {
	font-size: 16px;
	font-weight: 600;
	color: #7a7391;
}

.tis-summary-card__value {
	font-size: 20px;
	font-weight: 700;
	color: #241f38;
	margin: 0;
	line-height: 1.1;
}

.tis-summary-card__sub { color: #777; }

/* Mapping Rate card */
.tis-mapping-card {
	position: relative;
	min-width: 0;
	min-height: 100px;
	width: 100%;
	padding: 10px 14px;
	overflow: hidden;
	display: flex;
	align-items: center;
	background:
		radial-gradient(circle at 75% 20%, rgba(92, 45, 144, 0.10) 0%, rgba(92, 45, 144, 0) 45%),
		linear-gradient(135deg, rgba(92, 45, 144, 0.04) 0%, #ffffff 55%, rgba(240, 230, 250, 0.85) 100%);
	border: 1px solid rgba(92, 45, 144, 0.10);
	border-radius: var(--radius-xl);
	box-shadow: var(--shadow-sm);
	height: auto !important;
	transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.tis-mapping-card:hover {
	transform: translateY(-2px);
	border-color: var(--clr-primary-muted);
	box-shadow: var(--shadow-lg);
}

.tis-mapping-card__content {
	position: relative;
	z-index: 2;
	width: 100%;
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr);
	align-items: center;
	gap: 25px;
	padding-bottom: 0;
}

/* Ring progress */
.tis-mapping-card__progress {
	position: relative;
	width: 60px;
	height: 60px;
	flex-shrink: 0;
}

.tis-mapping-ring {
	width: 60px;
	height: 60px;
	transform: rotate(-90deg);
}

.tis-mapping-ring__track,
.tis-mapping-ring__value { fill: none; stroke-width: 8; }

.tis-mapping-ring__track { stroke: var(--clr-primary-tint); }

.tis-mapping-ring__value {
	stroke: var(--clr-primary);
	stroke-linecap: round;
	stroke-dasharray: 194.78;
	stroke-dashoffset: 194.78;
	transition: stroke-dashoffset var(--transition-slow);
}

.tis-mapping-ring__text {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	font-weight: 800;
	color: var(--clr-text-heading);
}

.tis-mapping-card__details { min-width: 0; }

.tis-mapping-card__label {
	margin: 0 0 1px;
	font-size: 15px;
	font-weight: 600;
	color: #7a7391;
}

.tis-mapping-card__value {
	margin: 0 0 1px;
	font-size: 19px;
	line-height: 1;
	font-weight: 700;
	letter-spacing: -0.025em;
	color: #5C2D90;
}

.tis-mapping-card__sub {
	font-size: 13px;
	font-weight: 500;
	color: #8a839c;
}

/* Sparkline — hidden at default compact size */
.tis-mapping-card__chart { display: none; }

.tis-mapping-card__sparkline {
	width: 100%;
	height: 38px;
}

/* Stat cards row */
.cust-dashboard__stats {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 12px;
	margin-bottom: 14px;
	width: 100%;
	height: auto !important;
	min-width: 0;
}

.tis-stat-card {
	background: var(--clr-white);
	border: 1px solid var(--clr-border);
	border-radius: var(--radius-lg);
	padding: 12px 14px;
	box-shadow: var(--shadow-sm);
	min-height: 80px;
	height: auto !important;
	min-width: 0;
	overflow: hidden;
	display: flex !important;
	flex-direction: column !important;
	justify-content: center !important;
	align-items: flex-start !important;
	gap: 1px;
	transition: box-shadow var(--transition-fast), transform var(--transition-fast), border-color var(--transition-fast);
}

.tis-stat-card:hover {
	border-color: var(--clr-primary-muted);
	box-shadow: var(--shadow-lg);
	transform: translateY(-2px);
}

.tis-stat-card__icon {
	width: 36px;
	height: 36px;
	margin-bottom: 2px;
	border-radius: var(--radius-md);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
}

.tis-icon--purple  { color: var(--clr-primary);  background: var(--clr-primary-tint); }
.tis-icon--red     { color: var(--clr-danger);    background: #fee2e2; }
.tis-icon--green   { color: var(--clr-success);   background: #dcfce7; }
.tis-icon--amber   { color: var(--clr-warning);   background: #fef3c7; }
.tis-icon--grey   { color: #3461a1; background: #d1ddf4; }
.tis-stat-card__label {
	font-size: 13px;
	font-weight: 600;
	color: #7a7391;
}

.tis-stat-card__value {
	font-size: 17px;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: #241f38;
	margin: 1px 0;
	max-width: 100%;
	overflow-wrap: break-word;
}

.tis-stat-card__sub {
	font-size: 11.5px;
	font-weight: 600;
	color: var(--clr-success);
	margin: 1px 0 var(--space-sm);
}

.tis-stat-card__sparkline { display: none; }

/* Charts row */
.cust-dashboard__charts {
	display: grid;
	grid-template-columns: minmax(300px, 1fr) minmax(0, 2fr);
	gap: 16px;
	margin-bottom: var(--space-lg);
	width: 100%;
	height: auto !important;
	min-width: 0;
	align-items: stretch;
}

.tis-chart-card {
	background: var(--clr-white);
	border: 1px solid var(--clr-border);
	border-radius: var(--radius-lg);
	padding: 16px;
	box-shadow: var(--shadow-sm);
	display: flex;
	flex-direction: column;
	width: 100%;
	min-width: 0;
	height: auto !important;
	overflow: hidden;
	transition: box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.tis-chart-card:hover {
	border-color: var(--clr-primary-muted);
	box-shadow: var(--shadow-md);
}

.tis-chart-card__header {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: var(--space-md);
    font-size: 18px;
    font-weight: 650;
    color: #241f38;
}

.tis-chart-card__body {
	flex: 1;
	width: 100%;
	min-width: 0;
}

/* Donut variant */
.tis-chart-card--donut .tis-chart-card__body {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 20px;
	min-width: 0;
}

.tis-donut-wrap {
	position: relative;
	width: clamp(150px, 20cqw, 200px);
	height: clamp(150px, 20cqw, 200px);
	flex-shrink: 0;
}

.tis-donut-wrap .tis-donut-canvas {
	width: 100%;
	height: 100%;
}

.tis-donut-center {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	text-align: center;
	pointer-events: none;
}

.tis-donut-center span {
	display: block;
	font-size: 24px;
	font-weight: 800;
	color: #241f38;
}

.tis-donut-center small {
	font-size: 11px;
	font-weight: 600;
	color: #8a839c;
}

.tis-donut-canvas {
	flex: 0 1 220px;
	width: 220px;
	height: 220px;
	min-width: 0;
}

.tis-bar-canvas {
	width: 100%;
	min-width: 0;
	height: 260px;
	overflow: hidden;
}

.tis-donut-canvas canvas,
.tis-bar-canvas canvas,
.tis-mapping-card__sparkline canvas { max-width: 100% !important; }

/* Legend */
.tis-chart-card__legend {
	display: flex;
	flex-direction: column;
	gap: var(--space-sm);
	font-size: 13.5px;
	font-weight: 500;
	color: #4a4460;
	flex: 1 1 120px;
	min-width: 105px;
	max-width: 180px;
}

.tis-legend-item {
	display: grid;
	grid-template-columns: 10px minmax(0, 1fr) auto;
	width: 100%;
	align-items: center;
	gap: var(--space-sm);
}

.tis-legend-value {
	margin-left: 6px;
	padding-left: 8px;
	font-weight: 600;
	color: #8a839c;
}

.tis-legend-dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	display: inline-block;
	flex-shrink: 0;
}

.tis-dot--healthy   { background: var(--clr-primary); }
.tis-dot--attention { background: var(--clr-warning); }
.tis-dot--critical  { background: var(--clr-danger); }

/* NSD slab dots */
.tis-dot--slab0 { background-color: #FB9498; }
.tis-dot--slab1 { background-color: #F1A9AC; }
.tis-dot--slab2 { background-color: #EBAB7F; }
.tis-dot--slab3 { background-color: #A5EE18; }
.tis-dot--slab4 { background-color: #4AE07F; }
.tis-dot--slab5 { background-color: #14DA5F; }

/* Badges */
.tis-badge {
	padding: 3px 9px;
	border-radius: var(--radius-pill);
	font-size: var(--text-xs);
	font-weight: 600;
	color: var(--clr-primary);
	background: var(--clr-primary-tint);
}

.tis-badge--live {
	color: var(--clr-success);
	background: #dcfce7;
}

/* Flot tooltip */
.tis-flot-tooltip {
	position: absolute;
	display: none;
	z-index: 100;
	padding: 7px 10px;
	border-radius: var(--radius-md);
	pointer-events: none;
	background: var(--clr-text-heading);
	color: var(--clr-white);
	font-size: var(--text-sm);
	line-height: 1.5;
	box-shadow: var(--shadow-lg);
}

#tyreHealthChart .pieLabel,
#tyreHealthChart .pieLabel div { pointer-events: none; }

/* Panel row (two-up) */
.cust-dashboard__panel {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
	margin-bottom: var(--space-md);
	width: 100%;
	max-width: 100%;
	height: auto !important;
	min-width: 0;
	align-items: stretch !important;
}

.cust-dashboard__inspection {
	margin-top: 24px;
	width: 100%;
}

.cust-dashboard__inspection .tis-panel { width: 100%; }

/* Panel card */
.tis-panel {
	background: var(--clr-white);
	border: 1px solid #ebe8f5;
	border-radius: 18px;
	box-shadow: 0 6px 20px rgba(92, 45, 144, 0.06);
	padding: 20px;
	width: 100%;
	max-width: 100%;
	overflow: visible !important;
	display: flex;
	flex-direction: column;
	height: 100%;
	min-width: 0;
}

.tis-panel__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
	font-size: 18px;
	font-weight: 650;
	color: var(--clr-text-heading);
	gap: 12px;
	flex-shrink: 0;
}
.tis-chart-card__legend .legend-slabValues {
	display: flex;
	gap: 5px;
	flex-wrap: nowrap;
}
.legend-slabValues span:first-child {
	white-space: nowrap;
}
.tis-panel__link {
	font-size: 13px;
	font-weight: 600;
	color: #5C2D90;
	text-decoration: none;
}

.tis-panel__link:hover {
	color: var(--clr-primary-dark);
	text-decoration: underline;
}

/* Scrollable inner area */
.tis-panel-scroll {
	flex: 1;
	max-height: 260px;
	overflow-y: auto;
	overflow-x: hidden;
	padding-right: 4px;
	margin-top: 4px;
}

.tis-panel-scroll::-webkit-scrollbar { width: 6px; }
.tis-panel-scroll::-webkit-scrollbar-thumb {
	background: var(--clr-border, #e0dbf0);
	border-radius: 999px;
}
.tis-panel-scroll::-webkit-scrollbar-track { background: transparent; }

/* Maintenance panel variant */
.tis-panel--maintenance .tis-panel-scroll {
	flex: 1;
	max-height: 260px;
	overflow-y: auto;
	padding: 12px 0;
}

/* Simple table */
.tis-simple-table {
	width: 100%;
	border-collapse: collapse;
}

.tis-simple-table thead th {
	position: sticky;
	top: 0;
	background: var(--clr-white, #fff);
	z-index: 1;
	font-size: 11.5px;
	font-weight: 700;
	color: #8a839c;
	text-transform: none !important;
	letter-spacing: 0.04em;
	text-align: left;
	padding: 6px 8px 10px;
	border-bottom: 1px solid #f0edf7;
}

.tis-simple-table tbody td {
	padding: 9px 8px;
	font-size: 13.5px;
	font-weight: 500;
	line-height: 1.3;
	vertical-align: middle;
	color: #4a4460;
	border-bottom: 1px solid #f0edf7;
}

.tis-simple-table tbody tr:last-child td { border-bottom: none; }
.tis-simple-table tbody tr:hover { background: #faf9ff; }

/* Maintenance table row spacing */
#upcomingMaintenanceBody tr { border-bottom: 1px solid #eceaf4; }
#upcomingMaintenanceBody td { padding: 14px 16px; vertical-align: middle; }
#upcomingMaintenanceBody tr:first-child td { padding-top: 18px; }
#upcomingMaintenanceBody tr:last-child td { padding-bottom: 18px; }

/* Row item helpers */
.tis-panel__row-icon {
	width: 30px;
	height: 30px;
	border-radius: var(--radius-md);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--clr-primary);
	background: var(--clr-primary-tint);
}

.tis-panel__row-title { font-weight: 600; color: var(--clr-text-heading); }

.tis-panel__row-sub {
	margin-top: var(--space-xs);
	font-size: var(--text-xs);
	color: var(--clr-text-muted);
}

/* Tags */
.tis-tag {
	padding: 4px 10px;
	border-radius: var(--radius-pill);
	white-space: nowrap;
	font-size: var(--text-xs);
	font-weight: 600;
}

.tis-tag--low    { color: var(--clr-danger);  background: #fee2e2; }
.tis-tag--medium { color: var(--clr-warning); background: #fef3c7; }
.tis-tag--high   { color: var(--clr-success); background: #dcfce7; }

/* Status badges */
.tis-status-badge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
}

.tis-status-badge i { font-size: 9px; }
.tis-status-badge--success { background: #dcfce7; color: #15803d; }
.tis-status-badge--danger  { background: #fee2e2; color: #dc2626; }

/* Range toggle */
.tis-range-toggle {
	display: flex;
	gap: 4px;
	padding: 3px;
	border-radius: var(--radius-md);
	background: var(--clr-primary-tint);
}

.tis-range-btn {
	padding: 6px 12px;
	border: none;
	border-radius: var(--radius-sm);
	background: transparent;
	font-size: 13px;
	font-weight: 600;
	color: var(--clr-primary-dark);
	cursor: pointer;
	flex: 0 0 auto;
	transition: background var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast);
}

.tis-range-btn:hover { background: var(--clr-primary-muted); }
.tis-range-btn.is-active,
.tis-range-btn.is-active:hover {
	color: var(--clr-white);
	background: var(--clr-primary);
	box-shadow: var(--shadow-sm);
}

/* DataTables toolbar */
.tis-dt-toolbar {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 12px;
	margin-bottom: 14px;
}

.tis-dt-toolbar .dataTables_filter { grid-column: 1; justify-self: start; margin: 0; }
.tis-dt-toolbar-buttons            { grid-column: 2; justify-self: center; }
.tis-dt-toolbar-buttons .dt-buttons { display: flex; gap: 8px; }

.tis-dt-toolbar-right {
	grid-column: 3;
	justify-self: end;
	display: flex;
	align-items: center;
	gap: 14px;
}

.tis-dt-toolbar-right .dataTables_length,
.tis-dt-toolbar-right .dataTables_paginate { margin: 0; }

.tis-dt-toolbar .dataTables_filter label {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	font-size: 0;
}

.tis-dt-toolbar .dataTables_filter input {
	border: 1px solid var(--clr-border, #e0dbf0);
	border-radius: 999px;
	padding: 8px 14px;
	font-size: 13px;
	min-width: 220px;
	outline: none;
}

.tis-dt-toolbar .dataTables_filter input::placeholder {
	color: var(--clr-text-faint, #a39cb5);
	font-weight: 400;
}

.tis-dt-toolbar .dataTables_filter input:focus {
	border-color: var(--clr-primary-light, #a78bda);
	box-shadow: 0 0 0 3px rgba(92, 45, 144, 0.08);
}

/* Footer row */
.tis-dt-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	margin-top: 10px;
	gap: 16px;
}

.tis-dt-footer-left  { flex: 1; }
.tis-dt-footer-right { display: flex; justify-content: flex-end; }

.tis-dt-footer .dataTables_info {
	margin: 0;
	font-size: 13px;
	color: var(--clr-text-muted, #7a7391);
}

.tis-dt-toolbar-right .dataTables_length select {
	border: 1px solid var(--clr-border, #e0dbf0);
	border-radius: 999px;
	padding: 6px 28px 6px 14px;
	font-size: 13px;
	font-weight: 600;
	color: var(--clr-white, #fff);
	background: var(--clr-primary, #5C2D90);
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
}

/* DataTables text */
.dataTables_info,
.dataTables_length,
.dataTables_filter label {
	font-size: 13px;
	font-weight: 500;
	color: #7a7391;
}

/* DataTables scroll wrapper */
.tis-panel .dataTables_wrapper {
	width: 100%;
	max-width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.tis-panel .dataTables_scroll,
.tis-panel .dataTables_scrollBody { max-width: 100%; }

/* Inspection toolbar */
.tis-inspection-toolbar {
	display: flex;
	align-items: center;
	gap: 10px;
}

.tis-download-btn {
	width: 34px;
	height: 34px;
	border: 1px solid var(--clr-border, #e0dbf0);
	border-radius: 8px;
	background: #fff;
	color: #5C2D90;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s, border-color 0.15s;
}

.tis-download-btn:hover {
	background: var(--clr-primary-tint, #f2ebff);
	border-color: var(--clr-primary-light, #a78bda);
}

/* Footer */
.cust-dashboard__footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: var(--space-sm);
	gap: 12px;
	width: 100%;
}

.cust-dashboard__build {
	font-size: var(--text-xs);
	color: var(--clr-text-muted);
}

.cust-dashboard__footer-actions {
	display: flex;
	gap: var(--space-sm);
	flex-wrap: wrap;
}

/* =============================================================================
   RESPONSIVE
============================================================================= */

/* Small laptop ≤ 1200px */
@media screen and (max-width: 1200px) {
	.cust-dashboard { padding: 18px; }

	.cust-dashboard__header {
		grid-template-columns: minmax(0, 1fr) minmax(250px, 310px);
	}

	.cust-dashboard__stats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.cust-dashboard__charts {
		grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.5fr);
	}

	.tis-donut-wrap,
	.tis-donut-canvas {
		width: 190px;
		height: 190px;
		flex-basis: 190px;
	}

	.cust-dashboard__panel { grid-template-columns: 1fr; }

	.cust-dashboard__panel .tis-panel { height: auto; }
}

/* Tablet ≤ 992px */
@media screen and (max-width: 992px) {
	#main-content { width: auto; }

	.cust-dashboard { padding: 16px; }

	.cust-dashboard__header { grid-template-columns: minmax(0, 1fr); }

	.cust-dashboard__charts { grid-template-columns: minmax(0, 1fr); }

	.cust-dashboard__stats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.tis-mapping-card {
		display: grid;
		grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
		gap: 18px;
		align-items: center;
	}

	.tis-mapping-card__content { padding-bottom: 0; }

	.tis-mapping-card__chart {
		display: block;
		position: relative !important;
		left: auto !important; right: auto !important; bottom: auto !important;
		width: 100%;
		max-width: 100%;
		height: 65px;
	}

	.tis-mapping-card__sparkline { height: 65px; }

	.tis-donut-wrap,
	.tis-donut-canvas {
		width: 230px;
		height: 230px;
		flex-basis: 230px;
	}

	.tis-bar-canvas { height: 280px; }
}

/* Mobile landscape ≤ 768px */
@media screen and (max-width: 768px) {
	html, body { overflow-y: auto !important; }

	#container, #main-content {
		min-height: 100vh;
		height: auto !important;
		overflow: visible !important;
	}

	.cust-dashboard {
		min-height: 100vh;
		height: auto !important;
		padding: 12px;
		overflow: visible !important;
	}

	.cust-dashboard__header,
	.cust-dashboard__stats,
	.cust-dashboard__charts {
		display: grid;
		grid-template-columns: minmax(0, 1fr);
		gap: 12px;
	}

	.cust-dashboard__hero { padding: 16px; }

	.cust-dashboard__hero-top { display: block; }

	.cust-dashboard__greeting h2 {
		font-size: 22px;
		line-height: 1.35;
		word-break: break-word;
	}

	.cust-dashboard__summary {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		gap: 4px;
	}

	.tis-summary-dot { display: none; }

	.cust-dashboard__hero-actions {
		display: grid;
		grid-template-columns: minmax(0, 1fr);
		gap: 10px;
		width: 100%;
	}

	.tis-action-btn { width: 100%; max-width: 100%; }

	.tis-mapping-card {
		display: block;
		padding: 16px;
	}

	.tis-mapping-card__content {
		grid-template-columns: 68px minmax(0, 1fr);
		gap: 20px;
		padding-bottom: 14px;
	}

	.tis-mapping-card__progress,
	.tis-mapping-ring { width: 68px; height: 68px; }

	.tis-mapping-card__chart {
		position: relative !important;
		left: auto !important; right: auto !important; bottom: auto !important;
		width: 100%;
		height: 55px;
	}

	.tis-stat-card { width: 100%; min-height: 165px; padding: 14px; }

	.tis-chart-card { width: 100%; padding: 14px; }

	.tis-chart-card--donut .tis-chart-card__body {
		flex-direction: column;
		align-items: center;
		gap: 16px;
	}

	.tis-donut-wrap,
	.tis-donut-canvas {
		flex: none;
		width: min(220px, 100%);
		height: 220px;
	}

	.tis-chart-card__legend { width: 100%; max-width: 100%; }

	.tis-legend-item {
		display: grid;
		grid-template-columns: 10px auto auto;
		width: 100%;
	}

	.tis-legend-value { margin-left: 0; padding-left: 8px; }

	.tis-bar-canvas { height: 240px; }

	.tis-panel { width: 100%; padding: 14px; overflow: visible !important; }

	.tis-panel__header { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px; }

	.tis-range-toggle {
		width: 100%;
		max-width: 100%;
		overflow-x: auto;
		white-space: nowrap;
		-webkit-overflow-scrolling: touch;
	}

	.cust-dashboard__footer { flex-direction: column; align-items: stretch; }

	.cust-dashboard__footer-actions {
		display: grid;
		grid-template-columns: minmax(0, 1fr);
		width: 100%;
	}

	.cust-dashboard__footer-actions .tis-btn { width: 100%; }

	.tis-dt-toolbar { grid-template-columns: 1fr; }

	.tis-dt-toolbar .dt-buttons,
	.tis-dt-toolbar .dataTables_filter { grid-column: 1; width: 100%; justify-self: stretch; }

	.tis-dt-toolbar .dataTables_filter input { width: 100%; }

	.tis-simple-table { min-width: 600px; }
}

/* Small mobile ≤ 480px */
@media screen and (max-width: 480px) {
	.cust-dashboard { padding: 8px; }

	.cust-dashboard__hero,
	.tis-mapping-card,
	.tis-stat-card,
	.tis-chart-card,
	.tis-panel { padding: 12px; border-radius: 10px; }

	.cust-dashboard__greeting h2 { font-size: 19px; }

	.tis-stat-card__value { font-size: 21px; }

	.tis-donut-wrap,
	.tis-donut-canvas { width: min(190px, 100%); height: 190px; }

	.tis-bar-canvas { height: 210px; }
}

.tis-mapping-card__progress {
	position: relative;
}

.tis-mapping-ring__text {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	font-weight: 800;
	color: var(--clr-text-heading, #241f38);
	pointer-events: none;
}
.cust-avg-summary {
	font-size: 13px;
	font-weight: 500;
	color: #6b6480;
}
#customDateRangeGroup {
    display: flex;
    gap: 12px;
    flex: 1;
}

#customDateRangeGroup .filter-group {
    flex: 1;
    min-width: 220px;
}

#customDateRangeGroup .form-control {
    width: 100%;
}

/* super admin dashboard */

.admin-page {
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
    padding: var(--space-md) var(--space-lg) var(--space-xl);
}

/* SECTION TITLES */

.super-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 20px;
    margin: 28px 0 12px;
    position: relative;

    color: var(--tis-violet, #4c2a86);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.super-section-title .bar {
    display: inline-block;
    width: 4px;
    height: 16px;
    flex: 0 0 4px;
    border-radius: 2px;
    background: var(--clr-primary, #5b2d90);
}

.super-section-title__aside {
    margin-left: auto;
    color: #98a2b3;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.admin-section-title {
    width: 100%;
    margin: 0 0 12px;
    text-align: left;
    color: var(--clr-primary-light);
    font-size: 15px;
    font-weight: 600;
}

.section-title,
.admin-section-title { color: var(--clr-primary-light); }

.section-title__aside {
    float: right;
    color: var(--clr-text-faint);
    font-size: var(--text-xs);
    font-weight: 500;
    letter-spacing: 0;
}

.section-meta,
.section-subtitle { color: var(--clr-text-faint); }

.aging-card__title {
    margin: 0 0 18px;
    color: var(--tis-violet, #4c2a86);
    font-size: 15px;
    font-weight: 700;
}

.card,
.stat-card,
.customer-card,
.tyre,
.inspection-card,
.fte-donut-card,
.fte-unmapped-card,
.support-card,
.aging-card,
.vehicles-card,
.mf-card,
.mini-card {
    background: var(--clr-white);
    border: 1px solid #e7e2f5;
    box-shadow: none;
}

.card { border-radius: var(--radius-lg); transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast); }

.card:hover,
.customer-card:hover,
.tyre:hover,
.inspection-card:hover { border-color: #cabdea; box-shadow: none; }

.admin-header-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg, 20px);
    margin-bottom: var(--space-md);
}

.admin-greeting-card {
    display: flex;
    min-height: 100px;
    padding: var(--space-lg) var(--space-xl);

    background: linear-gradient(
        135deg,
        var(--clr-primary-pale),
        #ffffff 72%
    );
    border-color: var(--clr-primary-muted);
}

.admin-dashboard__greeting h2 {
    display: flex;
    align-items: center;
    gap: 1px;
    max-width: 100%;
    margin: 0;
    color: #241f38;
    font-size: 25px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.025em;

    overflow-wrap: break-word;
}

/* STAT CARDS */

.stat-card { justify-content: center; padding: var(--space-md) var(--space-lg); }

.stat-card__label,
.customer-card__label,
.mini-card__label {
    display: flex;
    align-items: center;
    gap: var(--space-sm);

    color: var(--clr-primary-light);
    font-size: var(--text-md);
    font-weight: 600;
}

.stat-card__value,
.customer-card__value,
.mini-card__value,
.tyre__value,
.fte-tyre__value,
.inspection-card__value {
    color: var(--clr-text-heading);
    font-weight: 700;
    letter-spacing: -0.01em;
}

.stat-card__value {
    margin-top: 4px;
    font-size: var(--text-2xl);
    line-height: 1.2;
}
/* ICONS */

.card-icon,
.stat-icon,
.icon,
.icon i,
.icon svg { color: var(--clr-primary); }

.icon-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: auto;
    height: auto;
    flex: 0 0 auto;
    padding: 0;

    color: var(--tis-violet-muted, #7c5cbf) !important;
    background: transparent !important;
    border-radius: 0;
}

.icon-badge svg { width: 15px; height: 15px; }

.icon-badge--red,
.icon-badge--green { color: var(--tis-violet-muted, #7c5cbf) !important; }

.customers-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    gap: var(--space-lg, 20px);
    margin-bottom: 20px;
}

.customer-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    padding: 16px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition:
        box-shadow var(--transition-fast),
        border-color var(--transition-fast);
}

.customers-row > .customer-card {
    height: auto;
    padding: 16px 20px;
    box-sizing: border-box;
    overflow: hidden;
}

.customer-card__body {
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 0;
    margin-bottom: 6px;
}

.customer-card__body .donut {
    position: relative;
    width: 180px;
    height: 180px;
    flex: 0 0 180px;
    margin-left: 0;
    overflow: visible;
}

.customer-card__body .donut canvas {
    display: block;
    width: 180px;
    height: 180px;
}

.customer-card__value {
    margin-top: 12px;
    margin-left: 10px;
    font-size: var(--text-2xl);
}

.legend {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 5px;
    min-width: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.legend li {
    display: grid;
    grid-template-columns: 8px 1fr auto auto;
    align-items: center;
    gap: 10px;
    font-size: var(--text-sm);
}

.legend .dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot--active { background: #4c2a86 !important; }
.dot--inactive { background: #8f6fce !important; }
.dot--expired { background: #d9cdf2 !important; }

.legend-label {
    color: var(--clr-text-body);
    font-size: var(--text-md);
    font-weight: 550;
    white-space: nowrap;
}

.legend-value {
    color: var(--clr-text-heading);
    font-weight: 700;
    text-align: right;
    white-space: nowrap;
}

.legend-pct {
    min-width: 44px;
    color: var(--clr-text-muted);
    font-size: var(--text-sm);
    font-weight: 500;
    text-align: right;
    white-space: nowrap;
}

.pct--active,
.pct--inactive,
.pct--expired { color: var(--clr-text-muted); font-weight: 500; }

/* DONUTS */

.donut { background: transparent; }

.donut__center {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 68%;
    transform: translate(-50%, -50%);
    text-align: center;
    pointer-events: none;
    line-height: 1.15;
}

.donut__center-value {
    color: var(--clr-primary-dark) !important;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.donut__center-sub {
    margin-top: 3px;
    color: var(--clr-primary) !important;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
    overflow-wrap: break-word;
}

.donut--support {
    position: relative;
    width: 180px;
    height: 180px;
    flex: 0 0 180px;
    overflow: visible;
}

.donut--big {
    position: relative;
    width: 180px;
    height: 180px;
    flex: 0 0 180px;
}

.donut--mini {
    position: relative;
    width: 110px;
    height: 110px;
    flex: 0 0 90px;
    overflow: visible;
}

.donut--mini canvas {
    display: block;
    width: 110px;
    height: 110px;
}

.donut--mini .donut__center-value { font-size: 13px; }

.donut--mini .donut__center-sub { margin-top: 1px; font-size: 9px; }

.donut--fte {
    position: relative;
    width: 140px;
    height: 140px;
    flex: 0 0 140px;
    overflow: visible;
}

.donut--fte canvas {
    display: block;
    width: 140px;
    height: 140px;
}

.legend--big { min-width: 190px; gap: 18px; }

.legend--big li {
    display: grid;
    grid-template-columns: 10px 1fr auto;
    align-items: center;
    gap: 10px;
}

.legend-label--big {
    font-size: var(--text-md);
    font-weight: 650;
    white-space: nowrap;
}

.legend-value--big {
    margin-right: 30px;
    color: var(--clr-text-heading);
    font-size: var(--text-lg);
    font-weight: 750;
    text-align: right;
    white-space: nowrap;
}

.dot--purple { background: #5b4fd6; }
.dot--purple-light { background: #c9c2f2; }

.mini-card {
    display: flex;
    flex-direction: column;
    padding: var(--space-md);
}

.mini-card__value { margin-top: 6px; font-size: var(--text-xl); }

.mini-card__sub { font-size: var(--text-xs); font-weight: 550; }
/*VEHICLES*/

.vehicles-row {
    display: grid;
    grid-template-columns:
        minmax(300px, 1fr)
        minmax(300px, 1fr);
    gap: var(--space-lg, 20px);
}

.vehicles-card,
.mf-card { min-height: 250px; padding: var(--space-lg); }

.vehicles-card__body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 210px;
    gap: var(--space-2xl);
}

/* MF CHART */

.mf-card__body {
    display: flex;
    flex-direction: column;
    min-height: 190px;
    margin-top: var(--space-md);
}

.mf-chart {
    width: 100%;
    height: 190px;
    min-height: 190px;
}

.mf-card .bar,
.mf-card .bar--primary,
.mf-card .bar-primary { background: var(--clr-primary); }

.mf-card .bar--secondary,
.mf-card .bar-secondary { background: var(--clr-primary-light); }

.mf-card .grid-line { border-color: var(--clr-primary-muted); }

.chart-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-md);
    margin: var(--space-sm) 0 0;
    padding: 0;
    list-style: none;
}

.chart-legend li {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--clr-text-muted);
    font-size: var(--text-xs);
    font-weight: 600;
    white-space: nowrap;
}

.chart-legend .swatch {
    width: 10px;
    height: 10px;
    flex-shrink: 0;
    background: var(--clr-primary);
    border-radius: 2px;
}

.donut-tooltip {
    position: fixed;
    z-index: 9999;
    display: none;
    padding: 8px 12px;
    background: #241f38;
    color: #fff;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.4;
    pointer-events: none;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.donut-tooltip__label { font-weight: 600; opacity: 0.85; }
.donut-tooltip__value { margin-top: 2px; font-weight: 700; }
/*TYRE SUMMARY */

.tyre-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(150px, 1fr));
    gap: var(--space-lg, 20px);
}

.tyre {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 88px;
    padding: var(--space-md) var(--space-lg);
    position: relative;
    overflow: hidden;
}

.tyre__top {
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
    z-index: 1;
}

.tyre__label {
    margin: 0;
    color: var(--clr-primary-light);
    font-size: var(--text-md);
    font-weight: 600;
    line-height: 1.35;
    white-space: nowrap;
}

.tyre__value {
    position: relative;
    z-index: 1;
    margin-top: 6px;
    margin-left: 0;
    font-size: 21px;
}

.tyre__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    color: var(--tis-violet-muted, #7c5cbf) !important;
    background: transparent !important;
    border-radius: 0;
}

.tyre__icon--red,
.tyre__icon--green,
.tyre__icon--yellow { color: var(--tis-violet-muted, #7c5cbf) !important; }

.fte-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg, 20px);
}

.fte-tyre {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 105px;
    padding: var(--space-md) var(--space-lg);
}

.fte-tyre__label {
    color: var(--clr-primary-light);
    font-size: var(--text-md);
    font-weight: 600;
}

.fte-tyre__value { margin-top: 4px; font-size: var(--text-2xl); }

.fte-tyre__caption {
    color: green;
    font-size: var(--text-xs);
    font-weight: 500;
}

.tpms-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg, 20px);
}

.tpms-grid .fte-tyre__label {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    color: #4c2a86 !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    line-height: 1 !important;
}

.tpms-grid .tpms-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 14px !important;
    height: 14px !important;
    min-width: 14px !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;

    line-height: 1 !important;
}

.tpms-grid .tpms-icon svg {
    display: block !important;
    width: 14px !important;
    height: 14px !important;
}

.tpms-grid .tpms-icon--iot { color: #8b5cf6 !important; }
.tpms-grid .tpms-icon--tpms { color: #e84d83 !important; }
.tpms-grid .tpms-icon--gps { color: #9b7cff !important; }

.support-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg, 20px);
    align-items: stretch;
}

.support-row > .card { height: 100%; box-sizing: border-box; }
.support-card {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    align-items: center;
    min-height: 250px;
    padding: var(--space-lg);
    box-sizing: border-box;
    column-gap: 35px;
}

.support-card .admin-section-title {
    grid-column: 1 / -1;
    grid-row: 1;
    margin: 0 0 12px;
    text-align: left;
}

.support-card__list {
    grid-column: 2;
    grid-row: 2;
    width: 100%;
    margin: 0;
    padding: 0;
}

.support-row-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    margin: 0 0 10px;
}

.support-row-item:last-child { margin-bottom: 0; }

.support-row-label {
    min-width: 0;
    color: var(--clr-text-muted);
    font-size: var(--text-md);
    font-weight: 550;
    white-space: nowrap;
}

.support-row-value {
    margin: 0;
    padding: 0;
    color: var(--clr-text-heading);
    font-size: var(--text-md);
    font-weight: 600;
    text-align: right;
    white-space: nowrap;
}

.aging-card {
    height: 100%;
    min-height: 295px;
    padding: 18px 20px;
    box-sizing: border-box;
}

.aging-row {
    display: grid;
    grid-template-columns: 8px 1fr auto;
    align-items: center;
    column-gap: 10px;
    min-height: 32px;
    margin-bottom: 4px;
}

.aging-row .dot {
    width: 10px;
    height: 10px;
    margin-left: 50px;
    border-radius: 50%;
}

.aging-row .dot--expired { background: #ef5350; }
.aging-row .dot--inactive { background: #f5a623; }

.aging-label {
    margin-left: 50px;
    color: var(--clr-text-muted);
    font-size: 17px;
    font-weight: 500;
}

.aging-value {
    margin-right: 50px;
    color: var(--clr-text-heading);
    font-size: 17px;
    font-weight: 700;
}

.card-subsection {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--clr-primary-muted);
}

.card-subsection__title {
    margin-bottom: 8px;
    color: #98a2b3;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.card-subsection__body {
    display: flex;
    align-items: center;
    gap: 14px;
}

.bar-list {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.bar-list li {
    display: grid;
    grid-template-columns: max-content 1fr auto;
    align-items: center;
    gap: 10px;
}

.bar-list__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    height: 20px;
    padding: 0 8px;
    color: #4b5563;
    background: #eef0f4;
    border: 1px solid #e1e4ea;
    border-radius: 5px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-align: center;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: visible;
}

.bar-list li:nth-child(1) .bar-list__badge {
    color: #b7a8ee;
    background: #f8f6ff;
    border-color: #e7e1fb;
}

.bar-list li:nth-child(2) .bar-list__badge {
    color: #9b83df;
    background: #f6f2ff;
    border-color: #ded5f7;
}

.bar-list li:nth-child(3) .bar-list__badge {
    color: #8759d5;
    background: #f2ebff;
    border-color: #d2c1f2;
}

.bar-list li:nth-child(4) .bar-list__badge {
    color: #6f42b8;
    background: #eee6fb;
    border-color: #c8b5e7;
}

.bar-list li:nth-child(5) .bar-list__badge {
    color: #5f3aa0;
    background: #e9def8;
    border-color: #bfa9df;
}

.bar-list__track {
    height: 6px;
    background: var(--clr-primary-muted);
    border-radius: 999px;
    overflow: hidden;
}

.bar-list__fill {
    height: 100%;
    background: var(--clr-primary);
    border-radius: 999px;
}

.bar-list .bar:nth-child(1) .bar-list__fill { background: var(--clr-primary-dark); }

.bar-list .bar:nth-child(2) .bar-list__fill { background: var(--clr-primary); }

.bar-list .bar:nth-child(3) .bar-list__fill { background: var(--clr-primary-light); }

.bar-list .bar:nth-child(4) .bar-list__fill { background: #B79BD5; }

.bar-list .bar:nth-child(5) .bar-list__fill { background: var(--clr-primary-muted); }

.bar-list__value {
    color: var(--clr-text-heading);
    font-size: var(--text-sm);
    font-weight: 700;
    text-align: right;
    white-space: nowrap;
}

.inspection-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg, 20px);
    align-items: stretch;
}

.inspection-card {
    display: flex;
    flex-direction: column;

    padding: var(--space-lg);
}

.inspection-card--wide { grid-column: span 2; }

.inspection-card__label {
    display: flex;
    align-items: center;
    gap: var(--space-sm);

    color: var(--clr-primary-light);
    font-size: var(--text-md);
    font-weight: 600;
}

.inspection-card__value {
    margin-top: 6px;

    font-size: var(--text-2xl);
    line-height: 1.2;
}

.inspection-card__value-aside {
    margin-left: 10px;

    color: #98a2b3;
    font-size: var(--text-sm);
    font-weight: 500;
}

.inspection-card__breakdown {
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 140px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--clr-primary-muted);
}

.inspection-card__stat {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
}

.inspection-card__stat-value,
.inspection-card__stat-value-non {
    font-size: 16px;
    font-weight: 750;
    line-height: 1.2;
}

.inspection-card__stat-value { color: var(--clr-primary); }
.inspection-card__stat-value-non { color: var(--clr-danger); }

.inspection-card__stat-label {
    margin-top: 3px;

    color: var(--clr-text-muted);
    font-size: 12px;
    font-weight: 550;
}

.inspection-card__chips {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 14px;
}

.inspection-card__chip {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 60px;
    padding: 14px 18px;
    background: var(--clr-primary-pale);
    border: 1px solid var(--clr-primary-muted);
    border-radius: 12px;
}

.inspection-card__chip-value {
    color: var(--clr-primary);
    font-size: 19px;
    font-weight: 800;
    line-height: 1.2;
}

.inspection-card__chip-label {
    margin-top: 3px;
    color: var(--clr-text-muted);
    font-size: 12.5px;
    font-weight: 550;
}

.inspection-card__chip--danger .inspection-card__chip-value { color: var(--clr-danger); }

.inspection-card--wide > .inspection-card__label,
.fte-unmapped-card > .inspection-card__label { color: var(--clr-primary); font-weight: 700; }

.fte-unmapped-card > .inspection-card__value {
    color: var(--clr-primary);
    font-size: 30px;
    font-weight: 800;
}

.progress-bar,
.progress-track {
    margin-top: 10px;
    height: 8px;
    background: var(--clr-primary-muted);
    border-radius: 999px;
    overflow: hidden;
}

.progress-bar__fill,
.progress-fill {
    height: 100%;
    min-width: 6px;
    background: var(--clr-primary);
    border-radius: 999px;
}

.progress-bar__labels {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    color: #98a2b3;
    font-size: var(--text-xs);
    font-weight: 550;
}

.fte-row {
    display: grid;
    grid-template-columns:
        minmax(280px, 1fr)
        minmax(320px, 1.4fr);
    gap: var(--space-lg, 20px);
    align-items: stretch;
}

.fte-donut-card {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center;
    gap: var(--space-lg);
    padding: var(--space-lg);
}

.fte-donut-card__body { flex: 1; min-width: 0; }
.fte-donut-card__body .legend--big { gap: 8px; min-width: 0; }

.fte-donut-card__label {
    color: var(--clr-primary-light);
    font-size: var(--text-md);
    font-weight: 600;
}

.fte-donut-card__value {
    margin-top: 2px;
    margin-bottom: 8px;
    color: var(--clr-text-heading);
    font-size: var(--text-2xl);
    font-weight: 750;
}

.fte-unmapped-card { justify-content: flex-start; padding: var(--space-lg); }

.fte-unmapped-card .primary-value { color: var(--clr-primary); }

.tpms-card__label,
.gps-card__label { color: var(--clr-text-muted); }

.tpms-card__value,
.gps-card__value { color: var(--clr-text-heading); }

.text-primary,
.text-purple,
.primary-text,
.admin-page a { color: var(--clr-primary); }

.admin-page a:hover { color: var(--clr-primary-dark); }

/* STATUS COLORS */

.text-success { color: var(--clr-success); }

.text-warning { color: var(--clr-warning); }

.text-danger { color: var(--clr-danger); }

.text-info { color: var(--clr-info); }

/* BACKGROUNDS */

.bg-primary { background: var(--clr-primary); color: var(--clr-white); }

.bg-primary-pale { background: var(--clr-primary-pale); }

.bg-primary-tint { background: var(--clr-primary-tint); }

/* SMALL STAT BOXES */

.stat-box,
.inspection-card__chip { background: var(--clr-primary-pale); border: 1px solid var(--clr-primary-muted); }

.stat-box__value,
.inspection-card__chip-value { color: var(--clr-primary); }

.stat-box__label,
.inspection-card__chip-label { color: var(--clr-text-muted); }

/* SIDEBAR */

.sidebar,
.side-menu,
.main-sidebar { background: var(--clr-white); border-right: 1px solid var(--clr-border); }

.sidebar a,
.side-menu a,
.main-sidebar a { color: var(--clr-primary); }

.sidebar i,
.side-menu i,
.main-sidebar i,
.sidebar svg,
.side-menu svg,
.main-sidebar svg { color: var(--clr-primary); }

.sidebar .active,
.side-menu .active,
.main-sidebar .active,
.sidebar a.active,
.side-menu a.active { color: var(--clr-primary); background: var(--clr-primary-pale); }

.sidebar .active i,
.side-menu .active i,
.main-sidebar .active i,
.sidebar a.active svg,
.side-menu a.active svg { color: var(--clr-primary); }

.sidebar a:hover,
.side-menu a:hover,
.main-sidebar a:hover { color: var(--clr-primary-dark); background: var(--clr-primary-tint); }

/* HEADER */

.header,
.top-header,
.navbar { background: var(--clr-white); border-bottom: 1px solid var(--clr-border); }

.header i,
.header svg,
.top-header i,
.top-header svg { color: var(--clr-primary); }

/* DIVIDERS */

.card-subsection,
.inspection-card__breakdown,
.card-divider { border-color: var(--clr-primary-muted); }

/* MEDIA QUERIES */

@media (max-width: 1100px) {

    .admin-page {
        width: 100%;
        max-width: 100%;
        padding: var(--space-md) var(--space-lg) var(--space-xl);
        box-sizing: border-box;
    }

    .admin-header-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-md); }

    .admin-greeting-card,
    .stat-card,
    .mini-card { min-width: 0; }

    .customers-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .customers-row > .customer-card {
        min-width: 0;
        min-height: 280px;
        height: auto;
        box-sizing: border-box;
    }

    .customer-card { min-width: 0; overflow: hidden; }

    .customer-card__body {
        display: flex;
        align-items: center;
        width: 100%;
        min-width: 0;
        gap: 12px;
    }

    .customer-card__body .donut {
        width: clamp(120px, 14vw, 160px);
        height: clamp(120px, 14vw, 160px);
        flex: 0 1 clamp(120px, 14vw, 160px);
        min-width: 0;
        margin-left: 0;
    }

    .customer-card__body .donut canvas { width: 100% !important; height: 100% !important; }

    .customer-card__body .legend {
        flex: 1 1 0;
        width: 100%;
        min-width: 0;
    }

    .customer-card__body .legend li {
        width: 100%;
        min-width: 0;
        grid-template-columns: 8px minmax(0, 1fr) auto auto;
        gap: 5px;
    }

    .customer-card__body .legend-label {
        min-width: 0;

        font-size: clamp(10px, 1.2vw, 14px);

        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .customer-card__body .legend-value {
        margin: 0;
        padding: 0;

        font-size: clamp(10px, 1.2vw, 13px);
        text-align: right;
        white-space: nowrap;
    }

    .customer-card__body .legend-pct {
        margin: 0;
        padding: 0;

        font-size: clamp(9px, 1.1vw, 12px);
        text-align: right;
        white-space: nowrap;
    }

    .customer-card__value {
        margin-top: 6px;
        margin-left: 0;

        font-size: clamp(18px, 2vw, 24px);
        white-space: nowrap;
    }

    .vehicles-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .vehicles-card,
    .mf-card { min-width: 0; min-height: 250px; }

    .vehicles-card__body { gap: var(--space-lg); }

    .donut--big {
        width: 160px;
        height: 160px;
        flex: 0 0 160px;
    }

    .legend--big { min-width: 160px; }

    .legend-value--big { margin-right: 0; }

    .legend-label--big { white-space: normal; }

    .mf-chart { width: 100%; max-width: 100%; }

    .tyre-summary-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

    .tyre { min-width: 0; }

    .tyre__label { white-space: normal; }

    .tyre__value { margin-left: 0; }

    .fte-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .fte-tyre { min-width: 0; }

    .tpms-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

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

    .support-card,
    .aging-card { min-width: 0; }

    .aging-row .dot { margin-left: 0; }

    .aging-label { margin-left: 0; }

    .aging-value { margin-right: 0; }

    .inspection-grid { grid-template-columns: 1fr 1fr; }

    .inspection-card--wide { grid-column: span 2; }

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

@media (max-width: 900px) {

    .admin-page { padding: var(--space-md); }

    .admin-header-row { grid-template-columns: 1fr 1fr; }

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

    .customers-row > .customer-card { min-height: 250px; }

    .customer-card__body { justify-content: center; }

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

    .tyre-summary-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

    .support-card { grid-template-columns: 160px minmax(0, 1fr); column-gap: 25px; }

    .donut--support {
        width: 160px;
        height: 160px;
        flex-basis: 160px;
    }

    .inspection-grid { grid-template-columns: 1fr; }

    .inspection-card--wide { grid-column: span 1; }
}

@media (max-width: 768px) {

    .admin-page {
        width: 100%;
        max-width: 100%;
        padding: var(--space-md);
        box-sizing: border-box;
    }

    #main-content { margin-left: 0; padding-top: var(--header-height); }

    .super-section-title { margin: 18px 0 10px; font-size: 14px; }

    .super-section-title__aside { font-size: 11px; }

    .admin-section-title { font-size: 14px; }

    .admin-header-row { grid-template-columns: 1fr; gap: var(--space-sm); }

    .admin-greeting-card { min-height: 80px; padding: var(--space-md); }

    .admin-dashboard__greeting h2 { font-size: 20px; }

    .stat-card { padding: var(--space-md); }

    .stat-card__label,
    .customer-card__label,
    .mini-card__label { font-size: var(--text-sm); }

    .stat-card__value { font-size: var(--text-xl); }

    .customers-row { grid-template-columns: 1fr; gap: var(--space-sm); }

    .customers-row > .customer-card {
        width: 100%;
        min-height: 220px;
        height: auto;
    }

    .customer-card {
        width: 100%;
        min-width: 0;
        padding: 14px;
        box-sizing: border-box;
    }

    .customer-card__body {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 15px;
        min-height: 160px;
    }

    .customer-card__body .donut {
        width: 140px;
        height: 140px;
        flex: 0 0 140px;
    }

    .customer-card__body .legend {
        width: auto;
        max-width: 280px;
        min-width: 0;
    }

    .customer-card__body .legend li { grid-template-columns: 8px minmax(0, 1fr) auto auto; gap: 5px; }

    .customer-card__body .legend-label { font-size: 12px; }

    .customer-card__body .legend-value { font-size: 12px; }

    .customer-card__body .legend-pct { font-size: 11px; }

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

    .vehicles-card,
    .mf-card { min-height: auto; padding: var(--space-md); }

    .vehicles-card__body {
        flex-direction: column;

        min-height: auto;
        padding: var(--space-md) 0;

        gap: var(--space-lg);
    }

    .donut--big {
        width: 160px;
        height: 160px;
        flex: 0 0 160px;
    }

    .legend--big { width: 100%; min-width: 0; }

    .legend-value--big { margin-right: 0; }

    .mf-card__body { min-height: 180px; }

    .mf-chart {
        width: 100%;
        height: 180px;
        min-height: 180px;
    }

    .chart-legend { gap: 10px; }

    .tyre-summary-grid { grid-template-columns: 1fr; }

    .tyre { min-height: 80px; }

    .tyre__label { white-space: normal; }

    .tyre__value { margin-left: 0; }

    .fte-grid { grid-template-columns: 1fr; }

    .fte-tyre { min-height: 95px; }

    .tpms-grid { grid-template-columns: 1fr; }

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

    .support-card {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;

        min-height: auto;
        padding: var(--space-md);

        row-gap: 18px;
        column-gap: 0;

        justify-items: center;
    }

    .support-card .admin-section-title {
        grid-column: 1;
        grid-row: 1;

        width: 100%;
        margin-bottom: 0;

        text-align: left;
    }

    .donut--support {
        grid-column: 1;
        grid-row: 2;

        width: 150px;
        height: 150px;
        flex-basis: 150px;
    }

    .support-card__list {
        grid-column: 1;
        grid-row: 3;

        width: 100%;
    }

    .support-row-item { gap: 12px; }

    .support-row-label,
    .support-row-value { font-size: var(--text-sm); }

    .aging-card { min-height: auto; padding: var(--space-md); }

    .aging-card__title { margin-bottom: 14px; }

    .aging-row {
        grid-template-columns: 8px minmax(0, 1fr) auto;
        column-gap: 8px;

        min-height: 34px;
        margin-bottom: 4px;
    }

    .aging-row .dot { margin-left: 0; }

    .aging-label { margin-left: 0; font-size: 14px; }

    .aging-value { margin-right: 0; font-size: 14px; }

    .card-subsection__body { flex-direction: column; align-items: flex-start; }

    .donut--mini { margin: 0 auto; }

    .bar-list { width: 100%; }

    .inspection-card__chips { grid-template-columns: 1fr; }

    .fte-donut-card { flex-direction: column; text-align: center; }

    .fte-donut-card__body .legend--big { align-items: center; }
}

@media (max-width: 500px) {

    .admin-page { padding: 12px; }

    .admin-dashboard__greeting h2 { font-size: 18px; }

    .stat-card { padding: 12px; }

    .stat-card__value { font-size: 20px; }

    .customer-card { padding: 12px !important; }

    .customer-card__value { font-size: 20px; }

    .customer-card__body { gap: 10px; }

    .customer-card__body .donut {
        width: 115px;
        height: 115px;
        flex: 0 0 115px;
    }

    .customer-card__body .legend { width: 100%; max-width: none; }

    .customer-card__body .legend li { grid-template-columns: 7px minmax(0, 1fr) auto auto; gap: 4px; }

    .customer-card__body .legend-label { font-size: 11px; }

    .customer-card__body .legend-value { font-size: 11px; }

    .customer-card__body .legend-pct { min-width: 32px; font-size: 10px; }

    .vehicles-card,
    .mf-card { padding: 12px; }

    .donut--big {
        width: 140px;
        height: 140px;
        flex-basis: 140px;
    }

    .legend--big { width: 100%; }

    .legend-label--big { font-size: 13px; }

    .legend-value--big { font-size: 14px; }

    .support-card { padding: 14px; }

    .donut--support {
        width: 140px;
        height: 140px;
        flex-basis: 140px;
    }

    .support-row-label,
    .support-row-value { font-size: 12px; }

    .aging-label,
    .aging-value { font-size: 13px; }
}

@media (max-width: 380px) {

    .admin-page { padding: 10px; }

    .customer-card__body {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .customer-card__body .donut {
        width: 120px;
        height: 120px;
        flex: 0 0 120px;
    }

    .customer-card__body .legend { width: 100%; max-width: 260px; }

    .donut--big {
        width: 130px;
        height: 130px;
        flex-basis: 130px;
    }

    .support-card { grid-template-columns: 1fr; }

    .donut--support {
        width: 120px;
        height: 120px;
        flex-basis: 120px;
    }

    .support-row-item { gap: 8px; }

    .aging-row { grid-template-columns: 8px minmax(0, 1fr) auto; gap: 7px; }

    .aging-label,
    .aging-value { font-size: 12px; }
}

@media (hover: none) and (pointer: coarse) {
	input,
	select,
	textarea,
	.form-control,
	.form-input,
	.form-select,
	.filter-input,
	.mdl-form-control,
	.select2-search__field,
	.select2-container--default .select2-selection--single .select2-selection__rendered,
	.select2-container--default .select2-selection--multiple .select2-search__field,
	.ts-control,
	.ts-control input,
	.dt-search input,
	.dt-length select {
		font-size: 16px !important;
	}
}
.analytics-donut-wrap { position: relative; }
.analytics-leader-svg {
	position: absolute;
	top: 0; left: 0;
	pointer-events: none;  
}
.analytics-leader-text {
	font-size: 11px;
	font-weight: 600;
	fill: #5C2D90;
}