/**
 * WMS Public Styles — Premium Dashboard Design System
 *
 * @package WMS
 * @since   1.0.0
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
	/* Primary: Burnt Orange */
	--wms-primary: #E8600A;
	--wms-primary-hover: #C85300;
	--wms-primary-light: rgba(232, 96, 10, 0.06);
	--wms-primary-ring: rgba(232, 96, 10, 0.18);
	--wms-primary-subtle: #FFF4EE;
	/* Secondary: Dark Slate */
	--wms-secondary: #1E293B;
	/* Tertiary: Warm Cream */
	--wms-tertiary: #F9F0E8;
	/* Status colors */
	--wms-success: #10B981;
	--wms-success-light: rgba(16, 185, 129, 0.08);
	--wms-danger: #EF4444;
	--wms-danger-light: rgba(239, 68, 68, 0.08);
	--wms-warning: #F59E0B;
	--wms-warning-light: rgba(245, 158, 11, 0.08);
	--wms-info: #3B82F6;
	--wms-info-light: rgba(59, 130, 246, 0.08);
	--wms-purple: #8B5CF6;
	--wms-purple-light: rgba(139, 92, 246, 0.08);
	/* Layout colors */
	--wms-dark: #1E293B;
	--wms-card: #FFFFFF;
	--wms-bg: #FAFAF9;
	--wms-border: #E5E7EB;
	--wms-border-light: #F3F4F6;
	/* Text colors */
	--wms-text: #1E293B;
	--wms-text-body: #334155;
	--wms-text-secondary: #6B7280;
	--wms-text-muted: #9CA3AF;
	/* Radii */
	--wms-radius: 16px;
	--wms-radius-sm: 10px;
	--wms-radius-pill: 24px;
	/* Shadows */
	--wms-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 6px 16px rgba(0,0,0,0.06);
	--wms-shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
	--wms-shadow-lg: 0 4px 24px rgba(0,0,0,0.1);
	--wms-shadow-hover: 0 8px 30px rgba(0,0,0,0.12);
	--wms-shadow-glow: 0 0 20px rgba(232, 96, 10, 0.15);
	--wms-transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
	--wms-transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
	/* Gradients */
	--wms-gradient-primary: linear-gradient(135deg, #E8600A 0%, #FF8C42 100%);
	--wms-gradient-dark: linear-gradient(135deg, #111827 0%, #1E293B 100%);
	--wms-gradient-success: linear-gradient(135deg, #059669 0%, #34D399 100%);
	--wms-gradient-info: linear-gradient(135deg, #2563EB 0%, #60A5FA 100%);
	--wms-gradient-warm: linear-gradient(135deg, #F97316 0%, #FB923C 100%);
	--wms-primary-subtle: #FFF4EE;
	--wms-gradient-subtle: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
	/* Font */
	--wms-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

/* ═══════════════ ANIMATIONS ═══════════════ */
@keyframes wms-fadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}
@keyframes wms-slideUp {
	from { opacity: 0; transform: translateY(12px); }
	to { opacity: 1; transform: translateY(0); }
}
@keyframes wms-slideDown {
	from { opacity: 0; transform: translateY(-12px); }
	to { opacity: 1; transform: translateY(0); }
}
@keyframes wms-scaleIn {
	from { opacity: 0; transform: scale(0.95); }
	to { opacity: 1; transform: scale(1); }
}
@keyframes wms-pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.5; }
}
@keyframes wms-shimmer {
	0% { background-position: -200% 0; }
	100% { background-position: 200% 0; }
}
@keyframes wms-float {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-4px); }
}

/* ═══════════════ RESET & BASE ═══════════════ */
.wms-registration-container,
.wms-login-container,
.wms-dashboard {
	font-family: var(--wms-font);
	font-size: 15px;
	color: var(--wms-text-body);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	font-feature-settings: "cv11", "ss01";
}

.wms-dashboard *, .wms-registration-container *, .wms-login-container * {
	box-sizing: border-box;
}

.wms-dashboard h1, .wms-dashboard h2, .wms-dashboard h3,
.wms-registration-container h1, .wms-registration-container h2, .wms-registration-container h3 {
	letter-spacing: -0.01em;
}

/* WordPress theme container override — break free from content width */
.wms-dashboard,
.wms-login-container {
	width: 100%;
	position: relative;
	/* Removed 100vw breakout to prevent horizontal scroll */
}

/* Remove WP theme padding / margin constraints */
.entry-content .wms-dashboard,
.page-content .wms-dashboard,
.post-content .wms-dashboard,
.site-main .wms-dashboard,
.wp-block-post-content .wms-dashboard {
	max-width: 100% !important;
	padding: 0 !important;
	margin: 0 !important;
	width: 100% !important;
	left: auto !important;
}

/* ═══════════════ TOAST NOTIFICATIONS ═══════════════ */
.wms-toast-container {
	position: fixed;
	top: 24px;
	right: 24px;
	z-index: 99999;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.wms-toast {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 20px;
	background: var(--wms-card);
	border-radius: var(--wms-radius-sm);
	box-shadow: var(--wms-shadow-lg);
	border-left: 4px solid var(--wms-primary);
	font-family: var(--wms-font);
	font-size: 14px;
	color: var(--wms-text);
	transform: translateX(120%);
	animation: wmsSlideIn 0.3s ease forwards;
	max-width: 380px;
}

.wms-toast.wms-toast-success { border-left-color: var(--wms-success); }
.wms-toast.wms-toast-error { border-left-color: var(--wms-danger); }
.wms-toast.wms-toast-warning { border-left-color: var(--wms-warning); }

.wms-toast-icon {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
}

.wms-toast.wms-toast-exit {
	animation: wmsSlideOut 0.3s ease forwards;
}

@keyframes wmsSlideIn {
	to { transform: translateX(0); }
}

@keyframes wmsSlideOut {
	to { transform: translateX(120%); opacity: 0; }
}

/* ═══════════════ DASHBOARD LAYOUT ═══════════════ */
.wms-dashboard {
	display: grid;
	grid-template-columns: 260px 1fr;
	min-height: calc(100vh - 32px); /* Account for WP admin bar */
	background: var(--wms-bg);
	overflow: hidden;
	margin-top: -20px; /* Pull up to counter theme spacing */
}

body:not(.admin-bar) .wms-dashboard {
	min-height: 100vh;
}

/* ═══════════════ SIDEBAR ═══════════════ */
.wms-sidebar {
	background: #111827;
	border-right: 1px solid rgba(255,255,255,0.06);
	box-shadow: inset -1px 0 0 rgba(255,255,255,0.03);
	padding: 28px 0;
	position: sticky;
	top: 0;
	height: 100vh;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	animation: wms-fadeIn 0.4s ease;
}

.wms-sidebar-brand {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 0 24px 24px;
	border-bottom: 1px solid rgba(255,255,255,0.08);
	margin-bottom: 8px;
}

.wms-sidebar-brand .wms-brand-icon {
	width: 40px;
	height: 40px;
	background: var(--wms-primary);
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	box-shadow: 0 2px 8px rgba(232, 96, 10, 0.35);
}

.wms-sidebar-brand .wms-brand-icon svg { width: 22px; height: 22px; }

.wms-sidebar-brand h3 {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	color: #F9FAFB;
	line-height: 1.2;
}

.wms-sidebar-brand small {
	font-size: 12px;
	color: rgba(255,255,255,0.45);
	font-weight: 400;
}

.wms-user-card {
	margin: auto 16px 16px;
	padding: 14px 16px;
	background: rgba(255,255,255,0.05);
	border-radius: var(--wms-radius);
	text-align: center;
	border-top: 1px solid rgba(255,255,255,0.08);
	order: 3;
}

.wms-user-card img {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	border: 3px solid rgba(255,255,255,0.15);
	box-shadow: var(--wms-shadow-sm);
	margin-bottom: 8px;
}

.wms-user-card h4 {
	margin: 0;
	font-size: 15px;
	font-weight: 600;
	color: #F1F5F9;
}

.wms-user-card p {
	margin: 2px 0 0;
	font-size: 12px;
	color: rgba(255,255,255,0.4);
}

/* ═══════════════ NAV ═══════════════ */
.wms-nav {
	padding: 8px 12px;
	flex: 1;
	order: 2;
}

.wms-nav-label {
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: rgba(255,255,255,0.3);
	padding: 16px 12px 8px;
}

.wms-nav a,
.wms-nav a:hover,
.wms-nav a:focus,
.wms-nav a:visited,
.wms-nav a:active {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 14px;
	border-radius: var(--wms-radius-sm);
	color: rgba(255,255,255,0.6);
	text-decoration: none !important;
	font-size: 14px;
	font-weight: 500;
	transition: all 0.2s ease;
	cursor: pointer;
	position: relative;
}

.wms-nav a:hover {
	background: rgba(255,255,255,0.07);
	color: rgba(255,255,255,0.95) !important;
	transform: translateX(2px);
}

.wms-nav a.active {
	background: rgba(255,255,255,0.1);
	color: #fff;
	font-weight: 600;
}

.wms-nav a.active::before {
	content: '';
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 3px;
	height: 20px;
	background: var(--wms-primary);
	border-radius: 0 3px 3px 0;
}

.wms-nav a svg {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	opacity: 0.6;
	transition: opacity 0.2s, transform 0.2s;
}
.wms-nav a:hover svg {
	opacity: 0.9;
	transform: scale(1.05);
}

.wms-nav a.active svg { opacity: 1; }

.wms-nav .wms-badge {
	margin-left: auto;
	background: var(--wms-primary);
	color: #fff;
	padding: 2px 8px;
	border-radius: var(--wms-radius-pill);
	font-size: 12px;
	font-weight: 600;
	min-width: 24px;
	text-align: center;
}
.wms-nav .wms-badge-dot {
	margin-left: auto;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--wms-primary);
	box-shadow: 0 0 0 2px rgba(232, 96, 10, 0.3);
	animation: wms-pulse 2s ease infinite;
}

.wms-nav a.wms-nav-logout {
	margin-top: auto;
	color: rgba(255,255,255,0.35);
}

.wms-nav a.wms-nav-logout:hover {
	color: #FCA5A5;
	background: rgba(239,68,68,0.15);
}

/* ═══════════════ MAIN CONTENT ═══════════════ */
.wms-main {
	padding: 20px 32px;
	overflow-y: auto;
	min-width: 0;
	animation: wms-slideUp 0.5s ease;
}

/* ═══════════════ WELCOME BANNER ═══════════════ */
.wms-welcome {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 16px;
}

.wms-welcome h1 {
	font-size: 26px;
	font-weight: 700;
	background: var(--wms-gradient-dark);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	line-height: 1.2;
	margin: 0 0 4px;
}

.wms-welcome p {
	margin: 0;
	font-size: 14px;
	color: var(--wms-text-secondary);
}

.wms-welcome-date {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: var(--wms-text-secondary);
	background: var(--wms-card);
	padding: 8px 16px;
	border-radius: var(--wms-radius-sm);
	border: 1px solid var(--wms-border);
}

.wms-welcome-date svg { width: 16px; height: 16px; opacity: 0.6; }

/* ═══════════════ STAT PILLS ═══════════════ */
.wms-stat-row {
	display: flex;
	gap: 12px;
	margin-bottom: 28px;
	flex-wrap: wrap;
}

.wms-stat-pill {
	display: flex;
	align-items: center;
	gap: 10px;
	background: var(--wms-card);
	padding: 10px 18px;
	border-radius: var(--wms-radius-pill);
	border: 1px solid var(--wms-border);
	font-size: 14px;
	transition: all var(--wms-transition);
	cursor: default;
	animation: wms-slideUp 0.5s ease both;
}
.wms-stat-pill:nth-child(2) { animation-delay: 0.05s; }
.wms-stat-pill:nth-child(3) { animation-delay: 0.1s; }
.wms-stat-pill:nth-child(4) { animation-delay: 0.15s; }

.wms-stat-pill:hover {
	box-shadow: var(--wms-shadow);
	border-color: var(--wms-border);
	transform: translateY(-2px);
}

.wms-stat-pill .wms-stat-icon {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.wms-stat-pill .wms-stat-icon svg { width: 16px; height: 16px; }

.wms-stat-pill .wms-stat-icon.icon-primary { background: var(--wms-primary-light); color: var(--wms-primary); }
.wms-stat-pill .wms-stat-icon.icon-success { background: var(--wms-success-light); color: var(--wms-success); }
.wms-stat-pill .wms-stat-icon.icon-warning { background: var(--wms-warning-light); color: var(--wms-warning); }
.wms-stat-pill .wms-stat-icon.icon-info { background: var(--wms-info-light); color: var(--wms-info); }
.wms-stat-pill .wms-stat-icon.icon-purple { background: var(--wms-purple-light); color: var(--wms-purple); }
.wms-stat-pill .wms-stat-icon.icon-danger { background: var(--wms-danger-light); color: var(--wms-danger); }

.wms-stat-pill strong {
	font-size: 20px;
	font-weight: 700;
	color: var(--wms-text);
}

.wms-stat-pill span {
	font-size: 13px;
	color: var(--wms-text-secondary);
}

/* ── PHASE 4.1 — STAT GRID ── */
.wms-stat-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 12px; margin-bottom: 28px;
}
.wms-stat-card {
	display: flex; align-items: center; gap: 14px;
	background: var(--wms-card); border: 1px solid var(--wms-border-light);
	border-radius: 14px; padding: 16px 20px;
	transition: box-shadow 0.2s, transform 0.15s;
}
.wms-stat-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.06); transform: translateY(-1px); }
.wms-stat-card-icon {
	width: 44px; height: 44px; border-radius: 12px;
	display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.wms-stat-card.stat-blue .wms-stat-card-icon { background: rgba(59,130,246,0.08); color: #3B82F6; }
.wms-stat-card.stat-green .wms-stat-card-icon { background: rgba(16,185,129,0.08); color: #10B981; }
.wms-stat-card.stat-amber .wms-stat-card-icon { background: rgba(245,158,11,0.08); color: #F59E0B; }
.wms-stat-card.stat-purple .wms-stat-card-icon { background: rgba(139,92,246,0.08); color: #8B5CF6; }
.wms-stat-card-body { display: flex; flex-direction: column; gap: 2px; }
.wms-stat-card-num { font-size: 26px; font-weight: 800; color: var(--wms-text); line-height: 1; }
.wms-stat-card-label { font-size: 12px; color: var(--wms-text-muted); font-weight: 500; }

/* Warranty countdown badge */
.wms-warranty-countdown {
	font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 20px;
}
.wms-warranty-countdown.countdown-green { background: #D1FAE5; color: #059669; }
.wms-warranty-countdown.countdown-amber { background: #FEF3C7; color: #D97706; }
.wms-warranty-countdown.countdown-red { background: #FEE2E2; color: #DC2626; }

/* Recent Activity Feed */
.wms-activity-feed { padding: 8px 0; }
.wms-activity-item {
	display: flex; align-items: flex-start; gap: 12px;
	padding: 10px 20px; border-bottom: 1px solid #F9FAFB;
}
.wms-activity-item:last-child { border-bottom: none; }
.wms-activity-dot {
	width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; margin-top: 5px;
}
.wms-activity-dot-ticket { background: #3B82F6; }
.wms-activity-dot-case { background: #F59E0B; }
.wms-activity-dot-product { background: #10B981; }
.wms-activity-body { flex: 1; min-width: 0; }
.wms-activity-label { font-size: 13px; color: var(--wms-text-body); display: block; }
.wms-activity-meta { display: flex; align-items: center; gap: 8px; margin-top: 2px; }
.wms-activity-sub { font-size: 11px; font-weight: 600; color: #94A3B8; }
.wms-activity-time { font-size: 11px; color: #CBD5E1; }

/* ── PHASE 4.3 — PRODUCT CARDS ── */
.wms-product-card { overflow: hidden; position: relative; }
.wms-product-card-strip { height: 4px; width: 100%; }
.wms-product-card-strip.strip-green { background: #10B981; }
.wms-product-card-strip.strip-amber { background: #F59E0B; }
.wms-product-card-strip.strip-red { background: #EF4444; }
.wms-product-card-strip.strip-gray { background: #E2E8F0; }
.wms-product-card-inner { padding: 16px 20px; }
.wms-product-card-head {
	display: flex; align-items: flex-start; gap: 14px; margin-bottom: 14px;
}
.wms-product-device-icon {
	width: 48px; height: 48px; border-radius: 10px;
	background: var(--wms-bg); border: 1px solid var(--wms-border);
	display: flex; align-items: center; justify-content: center;
	flex-shrink: 0; color: #94A3B8;
}
.wms-product-card-fields {
	display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px;
	font-size: 14px; margin-bottom: 12px;
}
.wms-field-label { color: var(--wms-text-muted); font-size: 12px; display: block; margin-bottom: 2px; }
.wms-view-history-btn {
	display: inline-flex; align-items: center; gap: 5px;
	font-size: 12px; font-weight: 600; color: var(--wms-text-muted);
	background: transparent !important; border: none !important;
	cursor: pointer; padding: 4px 0; margin-top: 10px;
	box-shadow: none !important; outline: none !important;
	text-decoration: none;
}
.wms-view-history-btn:hover,
.wms-view-history-btn:focus,
.wms-view-history-btn:active {
	color: var(--wms-primary);
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
	outline: none !important;
}
.wms-view-history-btn svg { transition: transform 0.2s; }
.wms-view-history-btn.open svg { transform: rotate(90deg); }
.wms-product-history { padding: 10px 0 4px; border-top: 1px solid var(--wms-border-light); margin-top: 8px; }
.wms-history-item {
	display: flex; align-items: center; gap: 8px; padding: 6px 0;
	font-size: 12px; color: var(--wms-text-body); border-bottom: 1px solid #F9FAFB;
}
.wms-history-item:last-child { border-bottom: none; }
.wms-history-date { margin-left: auto; color: #94A3B8; white-space: nowrap; }

/* Product history — chronological timeline */
.wms-timeline { position: relative; padding-left: 20px; }
.wms-timeline-entry { position: relative; display: flex; gap: 12px; padding-bottom: 16px; }
.wms-timeline-entry:last-child { padding-bottom: 0; }
.wms-timeline-dot {
	width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0;
	margin-top: 4px; position: relative; z-index: 1;
}
.wms-timeline-line {
	position: absolute; left: 4px; top: 14px; bottom: 0;
	width: 2px; background: #E5E7EB;
}
.wms-timeline-entry:last-child .wms-timeline-line { display: none; }
.wms-timeline-body { flex: 1; }
.wms-timeline-title { font-size: 13px; font-weight: 600; color: var(--wms-text-body); line-height: 1.4; }
.wms-timeline-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 2px; }
.wms-timeline-sub { font-size: 11px; color: var(--wms-text-muted); }
.wms-timeline-date { font-size: 11px; color: #94A3B8; white-space: nowrap; }

/* ── PHASE 4.4 — SERVICE CASE STEPPER ── */
.wms-case-stepper {
	display: flex; align-items: center; gap: 0; margin: 14px 0 10px;
}
.wms-case-step {
	display: flex; flex-direction: column; align-items: center; gap: 5px;
	flex: 1; font-size: 10px; font-weight: 600; text-transform: uppercase;
	letter-spacing: 0.3px; color: #CBD5E1;
}
.wms-case-step.completed { color: #10B981; }
.wms-case-step.active { color: var(--wms-primary); }
.wms-case-step-dot {
	width: 14px; height: 14px; border-radius: 50%;
	border: 2px solid currentColor; background: transparent; transition: all 0.25s;
}
.wms-case-step.completed .wms-case-step-dot { background: #10B981; border-color: #10B981; }
.wms-case-step.active .wms-case-step-dot {
	background: var(--wms-primary); border-color: var(--wms-primary);
	box-shadow: 0 0 0 3px rgba(232, 96, 10, 0.18);
}
.wms-case-step-line { flex: 1; height: 2px; background: #E2E8F0; margin-bottom: 19px; transition: background 0.25s; }
.wms-case-step-line.completed { background: #10B981; }
.wms-service-date { font-size: 12px; color: #94A3B8; }
.wms-case-notes { margin: 8px 0 0; font-size: 14px; color: var(--wms-text-body); }

/* ═══════════════ CARDS ═══════════════ */
.wms-card {
	background: var(--wms-card);
	border-radius: var(--wms-radius);
	box-shadow: var(--wms-shadow-sm);
	border: 1px solid var(--wms-border-light);
	transition: all var(--wms-transition);
	overflow: hidden;
	animation: wms-slideUp 0.5s ease both;
}

.wms-card:hover {
	box-shadow: var(--wms-shadow);
	transform: translateY(-2px);
}

.wms-card-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px 24px;
	border-bottom: 1px solid var(--wms-border-light);
}

.wms-card-header h3 {
	margin: 0;
	font-size: 16px;
	font-weight: 600;
	color: var(--wms-secondary);
	line-height: 1.2;
	display: flex;
	align-items: center;
	gap: 8px;
}

.wms-card-header h3 svg { width: 20px; height: 20px; color: var(--wms-text-secondary); }

.wms-card-body {
	padding: 24px;
}

.wms-card-body.compact {
	padding: 16px 24px;
}

/* ═══════════════ STAT GRID CARDS ═══════════════ */
.wms-stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 16px;
	margin-bottom: 28px;
}

.wms-stat-card {
	background: var(--wms-card);
	padding: 24px;
	border-radius: var(--wms-radius);
	border: 1px solid var(--wms-border-light);
	box-shadow: var(--wms-shadow-sm);
	display: flex;
	align-items: flex-start;
	gap: 16px;
	transition: all var(--wms-transition);
	cursor: default;
}

.wms-stat-card:hover {
	box-shadow: var(--wms-shadow);
	transform: translateY(-2px);
}

.wms-stat-card .wms-stat-card-icon {
	width: 48px;
	height: 48px;
	border-radius: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.wms-stat-card .wms-stat-card-icon svg { width: 24px; height: 24px; }

.wms-stat-card .wms-stat-card-icon.bg-primary { background: var(--wms-primary-light); color: var(--wms-primary); }
.wms-stat-card .wms-stat-card-icon.bg-success { background: var(--wms-success-light); color: var(--wms-success); }
.wms-stat-card .wms-stat-card-icon.bg-warning { background: var(--wms-warning-light); color: var(--wms-warning); }
.wms-stat-card .wms-stat-card-icon.bg-info { background: var(--wms-info-light); color: var(--wms-info); }
.wms-stat-card .wms-stat-card-icon.bg-purple { background: var(--wms-purple-light); color: var(--wms-purple); }
.wms-stat-card .wms-stat-card-icon.bg-danger { background: var(--wms-danger-light); color: var(--wms-danger); }

.wms-stat-card-info h4 {
	margin: 0;
	font-size: 13px;
	font-weight: 500;
	color: var(--wms-text-secondary);
}

.wms-stat-card-info .wms-stat-number {
	font-size: 28px;
	font-weight: 700;
	color: var(--wms-text);
	line-height: 1.2;
	margin-top: 4px;
}

.wms-stat-card-info .wms-stat-trend {
	font-size: 12px;
	font-weight: 500;
	margin-top: 4px;
	display: flex;
	align-items: center;
	gap: 4px;
}

.wms-stat-trend.up { color: var(--wms-success); }
.wms-stat-trend.down { color: var(--wms-danger); }
.wms-stat-trend svg { width: 14px; height: 14px; }

/* ═══════════════ WARRANTY PROGRESS CARDS ═══════════════ */
.wms-warranty-card {
	background: var(--wms-card);
	padding: 20px 24px;
	border-radius: 16px;
	box-shadow: 0 2px 10px rgba(0,0,0,0.05);
	border: 1px solid var(--wms-border-light);
	border-left: 3px solid transparent;
	margin-bottom: 12px;
	transition: all 0.25s ease;
	animation: wms-slideUp 0.4s ease both;
}
.wms-warranty-card:nth-child(2) { animation-delay: 0.05s; }
.wms-warranty-card:nth-child(3) { animation-delay: 0.1s; }
.wms-warranty-card:nth-child(4) { animation-delay: 0.15s; }

.wms-warranty-card:hover {
	box-shadow: 0 4px 16px rgba(0,0,0,0.08);
	border-left-color: var(--wms-primary);
	transform: translateX(2px);
}

.wms-warranty-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 12px;
}

.wms-warranty-header strong {
	font-size: 15px;
	font-weight: 600;
}

.wms-warranty-header span {
	font-size: 13px;
	color: var(--wms-text-muted);
	font-family: var(--wms-font);
}

.wms-progress-track {
	height: 8px;
	background: var(--wms-border-light);
	border-radius: 8px;
	overflow: hidden;
	position: relative;
}

.wms-progress-fill {
	height: 100%;
	border-radius: 8px;
	transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
	position: relative;
}
.wms-progress-fill::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
	animation: wms-shimmer 2s infinite;
}

.wms-progress-fill.safe { background: linear-gradient(90deg, var(--wms-success), #4ADE80); }
.wms-progress-fill.caution { background: linear-gradient(90deg, var(--wms-warning), #FCD34D); }
.wms-progress-fill.critical { background: linear-gradient(90deg, var(--wms-danger), #F87171); }

.wms-warranty-footer {
	display: flex;
	justify-content: space-between;
	margin-top: 10px;
	font-size: 13px;
	color: var(--wms-text-muted);
}

/* ═══════════════ PRODUCT CARDS ═══════════════ */
.wms-product-card {
	background: var(--wms-card);
	padding: 20px 24px;
	border-radius: var(--wms-radius);
	border: 1px solid var(--wms-border-light);
	box-shadow: var(--wms-shadow-sm);
	margin-bottom: 12px;
	transition: all var(--wms-transition);
}

.wms-product-card:hover { box-shadow: var(--wms-shadow); }

/* Product action buttons row */
.wms-product-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px solid var(--wms-border-light);
}

.wms-product-card-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 12px;
}

.wms-product-card-head h3 {
	margin: 0;
	font-size: 16px;
	font-weight: 600;
}

/* ═══════════════ STATUS BADGES ═══════════════ */
.wms-badge-status {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 12px;
	border-radius: var(--wms-radius-pill);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.01em;
}

.wms-badge-status::before {
	content: '';
	width: 6px;
	height: 6px;
	border-radius: 50%;
}

.wms-badge-new,
.wms-badge-approved_with_warranty { background: var(--wms-success-light); color: var(--wms-success); }
.wms-badge-new::before,
.wms-badge-approved_with_warranty::before { background: var(--wms-success); }

.wms-badge-open,
.wms-badge-pending,
.wms-badge-approved_no_warranty { background: var(--wms-warning-light); color: #B45309; }
.wms-badge-open::before,
.wms-badge-pending::before,
.wms-badge-approved_no_warranty::before { background: var(--wms-warning); }

.wms-badge-closed,
.wms-badge-completed { background: var(--wms-bg); color: var(--wms-text-muted); }
.wms-badge-closed::before,
.wms-badge-completed::before { background: var(--wms-text-muted); }

.wms-badge-escalated,
.wms-badge-rejected { background: var(--wms-danger-light); color: var(--wms-danger); }
.wms-badge-escalated::before,
.wms-badge-rejected::before { background: var(--wms-danger); }

.wms-badge-received,
.wms-badge-in_repair { background: var(--wms-info-light); color: var(--wms-info); }
.wms-badge-received::before,
.wms-badge-in_repair::before { background: var(--wms-info); }

/* ═══════════════ BUTTONS ═══════════════ */
.wms-btn {
	-webkit-appearance: none;
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 10px 20px;
	border-radius: var(--wms-radius-sm);
	font-family: var(--wms-font);
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	border: 1px solid var(--wms-border);
	background: var(--wms-card);
	color: var(--wms-text);
	transition: all var(--wms-transition);
	text-decoration: none !important;
	line-height: 1.4;
	outline: none;
}
.wms-btn:visited {
	text-decoration: none !important;
}

.wms-btn:hover {
	border-color: var(--wms-primary);
	color: var(--wms-primary);
	box-shadow: var(--wms-shadow-sm);
	outline: none !important;
	text-decoration: none !important;
}

.wms-btn:focus,
.wms-btn:focus-within {
	outline: none !important;
	box-shadow: none !important;
}
.wms-btn:focus-visible { outline: 2px solid rgba(232,96,10,0.5) !important; outline-offset: 2px; }
.wms-btn:active { transform: scale(0.97); }

.wms-btn svg { width: 16px; height: 16px; }

.wms-btn-primary {
	background: var(--wms-primary);
	color: #fff;
	border-color: var(--wms-primary);
}

.wms-btn-primary:hover {
	background: var(--wms-primary-hover);
	border-color: var(--wms-primary-hover);
	color: #fff;
	box-shadow: 0 4px 12px rgba(232, 96, 10, 0.35);
}

.wms-btn-danger {
	background: var(--wms-danger);
	color: #fff;
	border-color: var(--wms-danger);
}

.wms-btn-danger:hover {
	background: #DC2626;
	border-color: #DC2626;
	color: #fff;
}

.wms-btn-ghost {
	background: transparent;
	border-color: transparent;
	color: var(--wms-text-secondary);
}

.wms-btn-ghost:hover {
	background: var(--wms-bg);
	color: var(--wms-text);
	border-color: transparent;
}

.wms-btn-outline {
	background: transparent;
	border-color: var(--wms-primary);
	color: var(--wms-primary);
}

.wms-btn-outline:hover {
	background: var(--wms-primary);
	border-color: var(--wms-primary);
	color: #fff;
	box-shadow: 0 4px 12px rgba(232, 96, 10, 0.25);
}

.wms-btn-sm {
	padding: 6px 14px;
	font-size: 13px;
	border-radius: 8px;
}

.wms-btn:disabled,
.wms-btn.loading {
	opacity: 0.6;
	cursor: not-allowed;
	pointer-events: none;
}

.wms-btn.loading::after {
	content: '';
	width: 14px;
	height: 14px;
	border: 2px solid currentColor;
	border-top-color: transparent;
	border-radius: 50%;
	animation: wms-spin 0.6s linear infinite;
}

@keyframes wms-spin {
	to { transform: rotate(360deg); }
}

/* ═══════════════ FORM ELEMENTS ═══════════════ */
.wms-form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.wms-field {
	margin-bottom: 18px;
}

.wms-field label {
	display: block;
	font-weight: 600;
	font-size: 13px;
	margin-bottom: 6px;
	color: var(--wms-text);
	letter-spacing: 0.01em;
}

.wms-field input,
.wms-field select,
.wms-field textarea {
	width: 100%;
	padding: 10px 14px;
	border: 1.5px solid var(--wms-border);
	border-radius: var(--wms-radius-sm);
	font-family: var(--wms-font);
	font-size: 14px;
	color: var(--wms-text);
	background: var(--wms-card);
	transition: all var(--wms-transition);
	box-sizing: border-box;
}

.wms-field input:focus,
.wms-field select:focus,
.wms-field textarea:focus {
	border-color: var(--wms-info);
	outline: none;
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}

.wms-field input::placeholder,
.wms-field textarea::placeholder {
	color: var(--wms-text-muted);
}

.wms-field small {
	display: block;
	margin-top: 4px;
	font-size: 12px;
	color: var(--wms-text-muted);
}

/* ═══════════════ REGISTRATION WIZARD ═══════════════ */
.wms-registration-container {
	max-width: 720px;
	margin: 48px auto;
	padding: 0 24px;
	width: 100%;
	animation: wms-slideUp 0.5s ease;
}

.wms-registration-header {
	text-align: center;
	margin-bottom: 32px;
}

.wms-registration-header h2 {
	font-size: 28px;
	font-weight: 700;
	color: var(--wms-text);
	margin: 0 0 8px;
}

.wms-registration-header p {
	color: var(--wms-text-secondary);
	margin: 0;
	font-size: 15px;
}

/* Step Indicator */
.wms-steps-indicator {
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 32px;
	padding: 0;
	position: relative;
}

.wms-step {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	flex: 1;
	position: relative;
	z-index: 1;
}

.wms-step:not(:last-child)::after {
	content: '';
	position: absolute;
	top: 16px;
	left: calc(50% + 20px);
	width: calc(100% - 40px);
	height: 2px;
	background: var(--wms-border);
	transition: background var(--wms-transition);
}

.wms-step.completed:not(:last-child)::after { background: var(--wms-success); }

.wms-step-num {
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	font-size: 13px;
	font-weight: 700;
	border: 2px solid var(--wms-border);
	background: var(--wms-card);
	color: var(--wms-text-muted);
	transition: all var(--wms-transition);
}

.wms-step.active .wms-step-num {
	border-color: var(--wms-primary);
	background: var(--wms-primary);
	color: #fff;
}

.wms-step.completed .wms-step-num {
	border-color: var(--wms-success);
	background: var(--wms-success);
	color: #fff;
}

.wms-step-label {
	font-size: 12px;
	font-weight: 500;
	color: var(--wms-text-muted);
	transition: color var(--wms-transition);
}

.wms-step.active .wms-step-label { color: var(--wms-primary); font-weight: 600; }
.wms-step.completed .wms-step-label { color: var(--wms-success); }

/* Step icon/check toggle */
.wms-step-check { display: none; }
.wms-step.completed .wms-step-icon { display: none; }
.wms-step.completed .wms-step-check { display: block; }

/* Step breadcrumb */
.wms-step-breadcrumb {
	text-align: center; font-size: 12px; font-weight: 500;
	color: #94A3B8; margin: -16px 0 20px; letter-spacing: 0.01em;
}

/* ── PHASE 2 — REGISTRATION FORM ENHANCEMENTS ── */

/* Sub-cards within steps */
.wms-form-subcard {
	background: var(--wms-bg);
	border: 1px solid var(--wms-border-light);
	border-radius: 12px; padding: 20px 24px; margin-bottom: 16px;
}
.wms-subcard-title {
	font-size: 13px; font-weight: 700; color: var(--wms-text-muted);
	text-transform: uppercase; letter-spacing: 0.6px; margin: 0 0 16px;
}
.wms-subcard-desc { font-size: 13px; color: var(--wms-text-muted); margin: -8px 0 16px; }

/* Floating label fields */
.wms-field-float { position: relative; }
.wms-field-float input { padding-top: 26px; padding-bottom: 8px; }
.wms-field-float > label {
	position: absolute; left: 12px; top: 50%;
	transform: translateY(-50%);
	font-size: 14px; font-weight: 400; color: #94A3B8;
	pointer-events: none; transition: all 0.18s ease; background: transparent;
	margin: 0; line-height: 1;
}
.wms-field-float input:focus ~ label,
.wms-field-float input:not(:placeholder-shown) ~ label {
	top: 8px; transform: none;
	font-size: 10px; font-weight: 600;
	color: var(--wms-info); letter-spacing: 0.4px; text-transform: uppercase;
}
.wms-field-hint { display: block; font-size: 11px; color: #94A3B8; margin-top: 4px; }

/* Logged-in notice */
.wms-logged-in-notice {
	display: flex; align-items: center; gap: 10px;
	padding: 12px 16px; background: var(--wms-success-light);
	border-radius: 10px; color: var(--wms-success); font-size: 14px;
}

/* Upload zones (drag-and-drop) */
.wms-upload-zones {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 12px;
}
.wms-upload-zone {
	display: flex; flex-direction: column; align-items: center;
	border: 2px dashed var(--wms-border);
	border-radius: 12px; padding: 20px 12px;
	text-align: center; cursor: pointer;
	transition: border-color 0.2s, background 0.2s;
	position: relative; overflow: hidden; min-height: 140px; justify-content: center;
}
.wms-upload-zone:hover { border-color: var(--wms-primary); background: var(--wms-primary-subtle); }
.wms-upload-zone.drag-over { border-color: var(--wms-info); background: rgba(59,130,246,0.04); }
.wms-upload-zone.has-file { border-color: var(--wms-success); border-style: solid; }
.wms-upload-input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.wms-upload-zone-idle {
	display: flex; flex-direction: column; align-items: center; gap: 6px;
	color: #94A3B8; pointer-events: none;
}
.wms-upload-zone-name { font-size: 13px; font-weight: 600; color: var(--wms-text-body); }
.wms-upload-zone-hint { font-size: 11px; color: #94A3B8; }
.wms-upload-zone-formats {
	font-size: 10px; color: #CBD5E1; padding: 2px 8px;
	border: 1px solid var(--wms-border); border-radius: 20px;
}
.wms-upload-zone-preview {
	width: 100%; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 4px;
}
.wms-upload-zone-preview img {
	max-width: 100%; max-height: 90px; object-fit: cover;
	border-radius: 8px; border: 1px solid var(--wms-border);
}
.wms-upload-zone-clear {
	font-size: 11px; background: var(--wms-danger); color: #fff;
	border: none; border-radius: 20px; padding: 2px 10px; cursor: pointer;
}
.wms-upload-file-chip {
	display: flex; flex-direction: column; align-items: center; gap: 4px;
	font-size: 11px; color: var(--wms-text-body); word-break: break-all;
}
.wms-upload-file-chip em { color: #94A3B8; font-style: normal; font-size: 10px; }

.wms-form-step {
	display: none;
	background: var(--wms-card);
	padding: 32px;
	border-radius: var(--wms-radius);
	box-shadow: var(--wms-shadow);
	border: 1px solid var(--wms-border-light);
	animation: wmsFadeUp 0.3s ease;
}

.wms-form-step.active { display: block; }

@keyframes wmsFadeUp {
	from { opacity: 0; transform: translateY(12px); }
	to { opacity: 1; transform: translateY(0); }
}

.wms-form-step h3 {
	margin: 0 0 24px;
	font-size: 18px;
	font-weight: 600;
	color: var(--wms-text);
}

.wms-form-actions {
	display: flex;
	justify-content: space-between;
	margin-top: 24px;
	gap: 12px;
}

/* Upload Cards */
.wms-upload-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 14px;
	margin-bottom: 20px;
}

.wms-upload-card {
	background: var(--wms-bg);
	border: 2px dashed var(--wms-border);
	border-radius: var(--wms-radius);
	padding: 20px 16px;
	text-align: center;
	transition: all var(--wms-transition);
	cursor: pointer;
}

.wms-upload-card:hover {
	border-color: var(--wms-primary);
	background: var(--wms-primary-light);
}

.wms-upload-card .upload-icon {
	width: 40px;
	height: 40px;
	margin: 0 auto 10px;
	color: var(--wms-text-muted);
}

.wms-upload-card label {
	font-size: 13px;
	font-weight: 600;
	color: var(--wms-text);
	display: block;
	margin-bottom: 4px;
}

.wms-upload-card p {
	font-size: 12px;
	color: var(--wms-text-muted);
	margin: 0 0 10px;
}

.wms-upload-card input[type="file"] {
	font-size: 12px;
	width: 100%;
}

/* Success */
.wms-success-card {
	text-align: center;
	background: var(--wms-card);
	padding: 64px 40px;
	border-radius: var(--wms-radius);
	box-shadow: var(--wms-shadow);
	border: 1px solid var(--wms-border-light);
	animation: wms-scaleIn 0.4s ease;
}

.wms-success-icon {
	width: 72px;
	height: 72px;
	margin: 0 auto 20px;
	background: var(--wms-success-light);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--wms-success);
}

.wms-success-icon svg { width: 36px; height: 36px; }

/* ═══════════════ LOGIN ═══════════════ */
/* LOGIN — Split Layout */
.wms-login-container {
	display: flex;
	min-height: 100vh;
	background: var(--wms-bg);
}

.wms-login-brand-panel {
	flex: 0 0 420px;
	background: #111827;
	display: flex;
	flex-direction: column;
	position: relative;
	overflow: hidden;
}

.wms-login-brand-inner {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	padding: 56px 40px;
	text-align: center;
}

.wms-login-brand-strip {
	position: absolute;
	top: 0; right: 0;
	width: 3px; height: 100%;
	background: var(--wms-primary);
	opacity: 0.7;
}

.wms-login-brand-logo {
	max-height: 56px; max-width: 180px;
	object-fit: contain; margin-bottom: 24px;
}

.wms-login-brand-icon {
	width: 72px; height: 72px;
	background: var(--wms-primary);
	border-radius: 20px;
	display: flex; align-items: center; justify-content: center;
	color: #fff; margin-bottom: 24px;
	box-shadow: 0 4px 16px rgba(232, 96, 10, 0.4);
}

.wms-login-brand-name {
	margin: 0 0 8px;
	font-size: 22px; font-weight: 700; color: #F9FAFB; letter-spacing: -0.01em;
}

.wms-login-brand-tagline {
	margin: 0 0 32px;
	font-size: 14px; color: rgba(255,255,255,0.45);
}

.wms-login-shield { opacity: 0.8; margin-bottom: 32px; }

.wms-login-features {
	list-style: none; margin: 0; padding: 0; text-align: left; width: 100%;
}

.wms-login-features li {
	display: flex; align-items: center; gap: 10px;
	font-size: 13px; color: rgba(255,255,255,0.6); padding: 6px 0;
}

.wms-login-features li svg { color: var(--wms-primary); flex-shrink: 0; }

.wms-login-form-panel {
	flex: 1;
	display: flex; align-items: center; justify-content: center;
	padding: 40px 24px; background: var(--wms-card);
}

.wms-login-form-inner { width: 100%; max-width: 400px; }

.wms-login-form-header { margin-bottom: 28px; }

.wms-login-form-header h2 {
	margin: 0 0 6px; font-size: 24px; font-weight: 700;
	color: var(--wms-text); letter-spacing: -0.01em;
}

.wms-login-form-header p {
	margin: 0; font-size: 14px; color: var(--wms-text-secondary);
}

.wms-login-form-inner #wms-loginform p { margin-bottom: 16px; }

.wms-login-form-inner #wms-loginform label {
	font-size: 13px; font-weight: 600; color: var(--wms-text);
	display: block; margin-bottom: 6px;
}

.wms-login-form-inner #wms-loginform input[type="text"],
.wms-login-form-inner #wms-loginform input[type="password"] {
	width: 100%; padding: 11px 14px;
	border: 1.5px solid var(--wms-border);
	border-radius: var(--wms-radius-sm);
	font-family: var(--wms-font); font-size: 14px;
	transition: all var(--wms-transition); box-sizing: border-box;
	background: var(--wms-bg); color: var(--wms-text);
}

.wms-login-form-inner #wms-loginform input:focus {
	border-color: var(--wms-info); outline: none;
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
	background: var(--wms-card);
}

.wms-login-form-inner #wms-loginform input[type="submit"] {
	width: 100%; padding: 12px;
	background: var(--wms-primary); color: #fff; border: none;
	border-radius: var(--wms-radius-sm);
	font-family: var(--wms-font); font-size: 15px; font-weight: 600;
	cursor: pointer; margin-top: 8px; transition: all var(--wms-transition);
}

.wms-login-form-inner #wms-loginform input[type="submit"]:hover {
	background: var(--wms-primary-hover);
	box-shadow: 0 4px 12px rgba(232, 96, 10, 0.35);
}

.wms-login-form-inner #wms-loginform input[type="submit"]:active { transform: scale(0.97); }

/* Legacy card fallback */
.wms-login-card {
	background: var(--wms-card); padding: 48px 40px;
	border-radius: var(--wms-radius); box-shadow: var(--wms-shadow-lg);
	border: 1px solid var(--wms-border-light);
	width: 100%; max-width: 420px; text-align: center;
}

.wms-login-logo { max-height: 48px; margin-bottom: 24px; }

.wms-login-card h2 {
	margin: 0 0 24px; font-size: 22px; font-weight: 700; color: var(--wms-text);
}

.wms-login-card #wms-loginform { text-align: left; }
.wms-login-card #wms-loginform p { margin-bottom: 16px; }

.wms-login-card #wms-loginform label {
	font-size: 13px; font-weight: 600; color: var(--wms-text); display: block; margin-bottom: 6px;
}

.wms-login-card #wms-loginform input[type="text"],
.wms-login-card #wms-loginform input[type="password"] {
	width: 100%; padding: 11px 14px;
	border: 1.5px solid var(--wms-border); border-radius: var(--wms-radius-sm);
	font-family: var(--wms-font); font-size: 14px;
	transition: all var(--wms-transition); box-sizing: border-box;
}

.wms-login-card #wms-loginform input:focus {
	border-color: var(--wms-info); outline: none;
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}

.wms-login-card #wms-loginform input[type="submit"] {
	width: 100%; padding: 12px; background: var(--wms-primary);
	color: #fff; border: none; border-radius: var(--wms-radius-sm);
	font-family: var(--wms-font); font-size: 15px; font-weight: 600;
	cursor: pointer; margin-top: 8px; transition: all var(--wms-transition);
}

.wms-login-card #wms-loginform input[type="submit"]:hover {
	background: var(--wms-primary-hover);
	box-shadow: 0 4px 12px rgba(232, 96, 10, 0.35);
}

.wms-login-links {
	margin-top: 16px; font-size: 13px; color: var(--wms-text-muted); text-align: right;
}

.wms-login-links a {
	color: var(--wms-text-secondary); text-decoration: none; font-size: 12px;
}

.wms-login-links a:hover { color: var(--wms-primary); }

.wms-login-register-link { margin-top: 20px; }

.wms-btn-outline-full {
	width: 100%; display: flex; align-items: center; justify-content: center;
	gap: 8px; padding: 11px 20px; border-radius: var(--wms-radius-sm);
	font-family: var(--wms-font); font-size: 14px; font-weight: 500;
	cursor: pointer; border: 1.5px solid var(--wms-border);
	background: transparent; color: var(--wms-text-secondary);
	transition: all var(--wms-transition); text-decoration: none;
}

.wms-btn-outline-full:hover {
	border-color: var(--wms-primary); color: var(--wms-primary);
	background: var(--wms-primary-subtle);
}

@media (max-width: 768px) {
	.wms-login-container { flex-direction: column; min-height: auto; }
	.wms-login-brand-panel { flex: 0 0 auto; }
	.wms-login-brand-inner { padding: 28px 24px; }
	.wms-login-brand-strip, .wms-login-shield, .wms-login-features, .wms-login-brand-tagline { display: none; }
	.wms-login-brand-name { font-size: 18px; margin: 0; }
	.wms-login-form-panel { flex: 1; padding: 28px 20px; }
}

.wms-alert {
	padding: 12px 16px;
	border-radius: var(--wms-radius-sm);
	margin-bottom: 16px;
	font-size: 14px;
}

.wms-alert-error {
	background: var(--wms-danger-light);
	color: var(--wms-danger);
	border: 1px solid rgba(239, 68, 68, 0.2);
}

/* ═══════════════ CHAT ═══════════════ */
.wms-chat {
	max-height: 420px;
	overflow-y: auto;
	padding: 16px 0;
}

.wms-chat-bubble {
	max-width: 72%;
	padding: 12px 16px;
	border-radius: 16px;
	margin-bottom: 8px;
	position: relative;
}

.wms-chat-sent {
	background: #EFF6FF;
	color: #1E293B;
	margin-left: auto;
	border-bottom-right-radius: 4px;
	border: 1px solid rgba(59,130,246,0.12);
}

.wms-chat-received {
	background: var(--wms-bg);
	color: var(--wms-text);
	border-bottom-left-radius: 4px;
}

.wms-chat-internal {
	background: #FFFBEB;
	border: 1px dashed var(--wms-warning);
	color: var(--wms-text);
}

.wms-chat-sender {
	font-size: 12px;
	font-weight: 600;
	margin-bottom: 4px;
	opacity: 0.85;
}

.wms-chat-text { font-size: 14px; line-height: 1.5; }
.wms-chat-time { font-size: 11px; opacity: 0.6; margin-top: 6px; }

/* ═══════════════ TICKET / SERVICE CARDS ═══════════════ */
.wms-ticket-card,
.wms-service-card {
	background: var(--wms-card);
	padding: 20px 24px;
	border-radius: var(--wms-radius);
	border: 1px solid var(--wms-border-light);
	box-shadow: var(--wms-shadow-sm);
	margin-bottom: 14px;
	transition: all var(--wms-transition);
}

.wms-ticket-card:hover, .wms-service-card:hover { box-shadow: var(--wms-shadow); }

.wms-ticket-header,
.wms-service-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 8px;
}

.wms-ticket-number, .wms-case-number {
	font-weight: 700;
	font-size: 14px;
	color: var(--wms-primary);
	font-family: var(--wms-font);
}

/* Case cards (clickable) */
.wms-case-card {
	background: var(--wms-card);
	padding: 20px 24px;
	border-radius: var(--wms-radius);
	border: 1px solid var(--wms-border-light);
	box-shadow: var(--wms-shadow-sm);
	margin-bottom: 12px;
	cursor: pointer;
	transition: all var(--wms-transition);
}

.wms-case-card:hover {
	box-shadow: var(--wms-shadow);
	transform: translateY(-2px);
	border-color: var(--wms-primary);
}

.wms-case-card-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 8px;
}

/* ═══════════════ REPLY FORM ═══════════════ */
.wms-reply-form,
.wms-support-reply-form {
	margin-top: 16px;
}

.wms-reply-form textarea,
.wms-support-reply-form textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1.5px solid var(--wms-border);
	border-radius: var(--wms-radius-sm);
	font-family: var(--wms-font);
	font-size: 14px;
	resize: vertical;
	transition: all var(--wms-transition);
	box-sizing: border-box;
}

.wms-reply-form textarea:focus,
.wms-support-reply-form textarea:focus {
	border-color: var(--wms-info);
	outline: none;
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}

.wms-reply-actions {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 10px;
}

.wms-reply-actions label {
	font-size: 13px;
	color: var(--wms-text-secondary);
	display: flex;
	align-items: center;
	gap: 6px;
	cursor: pointer;
}

/* ═══════════════ TECH PORTAL ═══════════════ */
.wms-scan-card {
	background: var(--wms-card);
	padding: 48px 40px;
	border-radius: var(--wms-radius);
	box-shadow: var(--wms-shadow);
	border: 1px solid var(--wms-border-light);
	text-align: center;
	max-width: 480px;
	margin: 40px auto;
	animation: wms-scaleIn 0.4s ease;
}

.wms-scan-card .scan-icon {
	width: 56px;
	height: 56px;
	margin: 0 auto 20px;
	color: var(--wms-primary);
}

.wms-large-input {
	font-size: 18px !important;
	text-align: center;
	padding: 14px 18px !important;
	letter-spacing: 0.02em;
}

.wms-case-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 24px;
}

.wms-case-header h2 {
	margin: 0;
	font-size: 20px;
	font-weight: 700;
}

.wms-case-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.wms-panel {
	background: var(--wms-card);
	padding: 24px;
	border-radius: var(--wms-radius);
	box-shadow: var(--wms-shadow-sm);
	border: 1px solid var(--wms-border-light);
	transition: all var(--wms-transition);
	animation: wms-slideUp 0.5s ease both;
}
.wms-panel:hover {
	box-shadow: var(--wms-shadow);
	transform: translateY(-2px);
}

.wms-panel h3 {
	margin: 0 0 16px;
	font-size: 15px;
	font-weight: 600;
	color: var(--wms-text);
	display: flex;
	align-items: center;
	gap: 8px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--wms-border-light);
}

.wms-panel h3 svg { width: 18px; height: 18px; color: var(--wms-text-secondary); }

.wms-timer-controls {
	display: flex;
	gap: 8px;
	margin-bottom: 16px;
	flex-wrap: wrap;
}

.wms-mini-table {
	width: 100%;
	font-size: 13px;
	border-collapse: collapse;
}

.wms-mini-table td {
	padding: 6px 8px;
	border-bottom: 1px solid var(--wms-border-light);
}

/* ═══════════════ SUPPORT TABLE ═══════════════ */
.wms-table {
	width: 100%;
	border-collapse: collapse;
}

.wms-table th,
.wms-table td {
	padding: 12px 16px;
	text-align: left;
	border-bottom: 1px solid var(--wms-border-light);
	font-size: 14px;
}

.wms-table th {
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--wms-text-muted);
	background: var(--wms-bg);
}

.wms-table tbody tr {
	transition: background var(--wms-transition);
}

.wms-table tbody tr:hover {
	background: var(--wms-primary-light);
}

.wms-ticket-detail-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin: 16px 0;
}

.wms-ticket-meta {
	display: flex;
	gap: 20px;
	flex-wrap: wrap;
	font-size: 13px;
	color: var(--wms-text-secondary);
	margin-bottom: 20px;
	padding: 14px 20px;
	background: var(--wms-bg);
	border-radius: var(--wms-radius-sm);
}

.wms-ticket-meta span {
	display: flex;
	align-items: center;
	gap: 6px;
}

.wms-ticket-meta svg { width: 16px; height: 16px; }

/* ═══════════════ ACCORDION ═══════════════ */
.wms-accordion {
	background: var(--wms-card);
	border-radius: var(--wms-radius);
	border: 1px solid var(--wms-border-light);
	box-shadow: var(--wms-shadow-sm);
	margin-bottom: 16px;
	overflow: hidden;
}

.wms-accordion summary {
	list-style: none;
	cursor: pointer;
	padding: 14px 20px;
	font-weight: 600;
	font-size: 14px;
}

.wms-accordion summary::-webkit-details-marker { display: none; }

/* ═══════════════ PROFILE ═══════════════ */
.wms-profile-form {
	max-width: 520px;
}

/* ═══════════════ ANIMATIONS ═══════════════ */
@keyframes wmsPulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.5; }
}

.wms-loading { animation: wmsPulse 1.5s ease-in-out infinite; }

/* ═══════════════ RESPONSIVE ═══════════════ */
@media (max-width: 768px) {
	.wms-dashboard {
		grid-template-columns: 1fr;
	}

	.wms-sidebar {
		position: relative;
		height: auto;
		border-right: none;
		border-bottom: 1px solid var(--wms-border);
		padding: 16px 0;
	}

	.wms-user-card { display: none; }

	.wms-nav {
		display: flex;
		overflow-x: auto;
		gap: 4px;
		padding: 0 12px;
	}

	.wms-nav a {
		white-space: nowrap;
		padding: 8px 14px;
	}

	.wms-nav a.active::before { display: none; }

	.wms-nav-label { display: none; }

	.wms-main { padding: 20px 16px; }

	.wms-form-row { grid-template-columns: 1fr; }
	.wms-case-grid { grid-template-columns: 1fr; }
	.wms-stats-grid { grid-template-columns: 1fr 1fr; }
	.wms-stat-row { flex-direction: column; }
	.wms-chat-bubble { max-width: 88%; }

	.wms-welcome { flex-direction: column; gap: 12px; }
	.wms-upload-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
	.wms-stats-grid { grid-template-columns: 1fr; }
	.wms-registration-container { margin: 20px auto; }
	.wms-form-step { padding: 20px; }
	.wms-login-card { padding: 32px 24px; }
}

/* ═══════════════ TECH PORTAL — CASE VIEW ═══════════════ */
.wms-case-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 24px;
}

.wms-case-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.wms-panel {
	background: var(--wms-card);
	border-radius: var(--wms-radius);
	padding: 24px;
	border: 1px solid var(--wms-border-light);
	box-shadow: var(--wms-shadow-sm);
}

.wms-panel h3 {
	margin: 0 0 16px;
	font-size: 15px;
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 8px;
}

.wms-panel h3 svg { width: 20px; height: 20px; color: var(--wms-text-secondary); }

.wms-timer-controls {
	display: flex;
	gap: 8px;
	justify-content: center;
	margin-top: 8px;
}

.wms-mini-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
}

.wms-mini-table td {
	padding: 6px 10px;
	border-bottom: 1px solid var(--wms-border-light);
	vertical-align: middle;
}

.wms-mini-table tr:last-child td { border-bottom: none; }

.wms-large-input {
	width: 100%;
	padding: 14px 18px !important;
	font-size: 18px !important;
	text-align: center;
	border-radius: 12px !important;
	letter-spacing: 2px;
}

.wms-scan-card {
	background: var(--wms-card);
	padding: 48px 40px;
	border-radius: var(--wms-radius);
	box-shadow: var(--wms-shadow);
	text-align: center;
	max-width: 480px;
	margin: 60px auto;
	border: 1px solid var(--wms-border-light);
}

.wms-scan-card .scan-icon {
	width: 64px;
	height: 64px;
	margin: 0 auto 16px;
	color: var(--wms-primary);
}

/* ═══════════════ SUPPORT PORTAL — EXTRAS ═══════════════ */
.wms-detail-row {
	display: flex;
	justify-content: space-between;
	padding: 8px 0;
	border-bottom: 1px solid var(--wms-border-light);
	font-size: 14px;
}

.wms-detail-row:last-child { border-bottom: none; }
.wms-detail-row .label { color: var(--wms-text-secondary); font-weight: 500; }
.wms-detail-row .value { color: var(--wms-text); font-weight: 600; }

.wms-ticket-meta {
	display: flex;
	gap: 16px;
	margin-bottom: 16px;
	font-size: 13px;
	color: var(--wms-text-secondary);
}

.wms-ticket-meta span {
	display: flex;
	align-items: center;
	gap: 6px;
}

.wms-reply-form,
.wms-support-reply-form {
	border-top: 1px solid var(--wms-border-light);
	padding-top: 16px;
	margin-top: 16px;
}

.wms-reply-form textarea,
.wms-support-reply-form textarea {
	width: 100%;
	padding: 10px 14px;
	border: 1.5px solid var(--wms-border);
	border-radius: var(--wms-radius-sm);
	font-family: var(--wms-font);
	font-size: 14px;
	resize: vertical;
	min-height: 60px;
	box-sizing: border-box;
}

.wms-reply-form textarea:focus,
.wms-support-reply-form textarea:focus {
	border-color: var(--wms-info);
	outline: none;
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}

.wms-reply-actions {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 10px;
}

.wms-accordion {
	background: var(--wms-card);
	border: 1px solid var(--wms-border-light);
	border-radius: var(--wms-radius);
	overflow: hidden;
}

.wms-accordion summary {
	padding: 16px 20px;
	font-weight: 600;
	font-size: 14px;
	cursor: pointer;
	list-style: none;
	transition: background var(--wms-transition);
}

.wms-accordion summary:hover { background: var(--wms-bg); }
.wms-accordion summary::-webkit-details-marker { display: none; }

/* ═══════════════ TOAST NOTIFICATIONS ═══════════════ */
.wms-toast-container {
	position: fixed;
	top: 20px;
	right: 20px;
	z-index: 999999;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.wms-toast {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 20px;
	border-radius: 12px;
	font-family: var(--wms-font);
	font-size: 14px;
	font-weight: 500;
	box-shadow: 0 8px 30px rgba(0,0,0,0.14);
	animation: wmsToastIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	max-width: 380px;
}

.wms-toast-icon { width: 18px; height: 18px; flex-shrink: 0; }

.wms-toast-success { background: #ECFDF5; color: #065F46; border: 1px solid rgba(34,197,94,0.2); }
.wms-toast-error { background: #FEF2F2; color: #991B1B; border: 1px solid rgba(239,68,68,0.2); }
.wms-toast-warning { background: #FFFBEB; color: #92400E; border: 1px solid rgba(245,158,11,0.2); }

.wms-toast-exit { animation: wmsToastOut 0.3s ease forwards; }

@keyframes wmsToastIn { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }
@keyframes wmsToastOut { to { opacity: 0; transform: translateX(40px); } }

/* ═══════════════ FILE PREVIEW THUMBNAILS ═══════════════ */
.wms-file-previews {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 10px;
	padding: 12px;
	background: var(--wms-bg, #f8f9fa);
	border-radius: 8px;
	border: 1px dashed rgba(0,0,0,0.12);
}
.wms-file-preview-item {
	position: relative;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 10px;
	background: #fff;
	border: 1px solid rgba(0,0,0,0.1);
	border-radius: 8px;
	min-width: 0;
	max-width: 200px;
	transition: box-shadow 0.15s;
}
.wms-file-preview-item:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.wms-fp-thumb {
	width: 44px; height: 44px; border-radius: 6px;
	background-size: cover; background-position: center;
	background-color: #e9ecef; flex-shrink: 0;
}
.wms-fp-icon {
	width: 44px; height: 44px; border-radius: 6px;
	display: flex; flex-direction: column; align-items: center;
	justify-content: center; flex-shrink: 0;
}
.wms-fp-icon span { font-size: 9px; font-weight: 700; text-transform: uppercase; margin-top: 2px; }
.wms-fp-pdf { background: #fef2f2; color: #dc2626; }
.wms-fp-video { background: #eff6ff; color: #2563eb; }
.wms-fp-info { display: flex; flex-direction: column; min-width: 0; }
.wms-fp-name {
	font-size: 12px; font-weight: 500; line-height: 1.3;
	overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.wms-fp-size { font-size: 11px; color: var(--wms-text-muted, #6b7280); }
.wms-fp-remove {
	position: absolute; top: -6px; right: -6px;
	width: 20px; height: 20px; border-radius: 50%;
	border: 1px solid rgba(0,0,0,0.15); background: #fff;
	color: #dc2626; font-size: 14px; line-height: 1;
	cursor: pointer; display: flex; align-items: center;
	justify-content: center; opacity: 0;
	transition: opacity 0.15s, background 0.15s;
}
.wms-file-preview-item:hover .wms-fp-remove { opacity: 1; }
.wms-fp-remove:hover { background: #fef2f2; }

/* ═══════════════════════════════════════════════════
   3-COLUMN INBOX LAYOUT (Phase 15.5)
   ═══════════════════════════════════════════════════ */

.wms-inbox-layout {
	display: grid;
	grid-template-columns: 240px 1fr;
	height: calc(100vh - 60px);
	gap: 0;
	background: var(--wms-surface, #fff);
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(0,0,0,0.06);
	border: 1px solid rgba(0,0,0,0.08);
}
.wms-inbox-layout.wms-ctx-open {
	grid-template-columns: 240px 1fr 220px;
}
.wms-inbox-layout.wms-ctx-open .wms-inbox-context {
	display: flex;
	flex-direction: column;
}

/* --- Left Panel: List --- */
.wms-inbox-list {
	display: flex;
	flex-direction: column;
	border-right: 1px solid rgba(0,0,0,0.08);
	background: #fafbfc;
	overflow: hidden;
}
.wms-inbox-list-header {
	padding: 16px;
	border-bottom: 1px solid rgba(0,0,0,0.06);
	flex-shrink: 0;
}
.wms-inbox-list-header h3 {
	margin: 0 0 10px;
	font-size: 15px;
	font-weight: 700;
	color: var(--wms-heading, #1e293b);
}
.wms-inbox-search {
	width: 100%;
	padding: 8px 12px;
	border: 1px solid rgba(0,0,0,0.1);
	border-radius: 8px;
	font-size: 13px;
	background: #fff;
	outline: none;
	transition: border-color 0.2s;
}
.wms-inbox-search:focus { border-color: var(--wms-info, #3B82F6); box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18); }
.wms-inbox-filters {
	display: flex;
	gap: 4px;
	padding: 8px 16px;
	border-bottom: 1px solid rgba(0,0,0,0.06);
	flex-shrink: 0;
	overflow-x: auto;
}
.wms-inbox-filter {
	padding: 4px 10px;
	border-radius: 12px;
	font-size: 12px;
	font-weight: 500;
	cursor: pointer;
	white-space: nowrap;
	border: 1px solid transparent;
	background: transparent;
	color: var(--wms-text-secondary, #64748b);
	transition: all 0.15s;
}
.wms-inbox-filter:hover { background: rgba(0,0,0,0.04); }
.wms-inbox-filter.active {
	background: var(--wms-primary, #E8600A);
	color: #fff;
	border-color: var(--wms-primary, #E8600A);
}
.wms-inbox-items {
	flex: 1;
	overflow-y: auto;
	padding: 4px 0;
}
.wms-inbox-item {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 12px 16px;
	cursor: pointer;
	border-left: 3px solid transparent;
	transition: all 0.2s ease;
	text-decoration: none;
	color: inherit;
	animation: wms-slideUp 0.3s ease both;
}
.wms-inbox-item:nth-child(n+2) { animation-delay: 0.03s; }
.wms-inbox-item:nth-child(n+3) { animation-delay: 0.06s; }
.wms-inbox-item:nth-child(n+4) { animation-delay: 0.09s; }

.wms-inbox-item:hover {
	background: rgba(0,0,0,0.025);
	box-shadow: inset 0 -1px 0 rgba(0,0,0,0.04);
}
.wms-inbox-item.active {
	background: #FEF0E7;
	border-left-color: #EA5A00 !important;
	box-shadow: none;
}

/* Unread state */
.wms-inbox-item.unread .wms-inbox-item-name { font-weight: 700; }
.wms-inbox-item.unread .wms-inbox-item-subject { font-weight: 600; }
.wms-inbox-item.unread::after {
	content: '';
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--wms-primary, #E8600A);
	flex-shrink: 0;
	margin-top: 6px;
	box-shadow: 0 0 0 2px rgba(232,96,10,0.15);
}

/* Priority left-border per ticket item */
.wms-inbox-item[data-priority="urgent"] { border-left-color: #EF4444; }
.wms-inbox-item[data-priority="high"] { border-left-color: #F59E0B; }
.wms-inbox-item[data-priority="normal"] { border-left-color: #3B82F6; }
.wms-inbox-item[data-priority="medium"] { border-left-color: #F59E0B; }
.wms-inbox-item[data-priority="low"] { border-left-color: #10B981; }

.wms-inbox-avatar {
	width: 36px; height: 36px;
	border-radius: 50%;
	background: linear-gradient(135deg, #667eea, #764ba2);
	display: flex; align-items: center; justify-content: center;
	color: #fff; font-weight: 700; font-size: 14px;
	flex-shrink: 0;
	text-transform: uppercase;
	transition: transform 0.2s;
}
.wms-inbox-item:hover .wms-inbox-avatar { transform: scale(1.08); }

.wms-inbox-item-content { flex: 1; min-width: 0; }
.wms-inbox-item-top {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 2px;
}
.wms-inbox-item-name {
	font-weight: 600; font-size: 13px;
	color: var(--wms-heading, #1e293b);
	overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.wms-inbox-item-time {
	font-size: 11px;
	color: var(--wms-text-muted, #94a3b8);
	white-space: nowrap;
	flex-shrink: 0;
	margin-left: 8px;
}
.wms-inbox-item-subject {
	font-size: 12px; font-weight: 500;
	color: var(--wms-text, #334155);
	overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
	margin-bottom: 2px;
}
.wms-inbox-item-preview {
	font-size: 12px;
	color: var(--wms-text-muted, #94a3b8);
	overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.wms-inbox-item-badges {
	display: flex; gap: 4px; margin-top: 4px;
}
.wms-inbox-item-badges .wms-badge-status {
	font-size: 10px;
	padding: 1px 6px;
}

/* Skeleton loading */
.wms-inbox-skeleton {
	display: flex; align-items: center; gap: 10px;
	padding: 12px 16px;
}
.wms-inbox-skeleton-avatar,
.wms-inbox-skeleton-line {
	background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
	background-size: 200% 100%;
	animation: wms-shimmer 1.5s infinite;
	border-radius: 4px;
}
.wms-inbox-skeleton-avatar {
	width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
}
.wms-inbox-skeleton-lines { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.wms-inbox-skeleton-line { height: 10px; }
.wms-inbox-skeleton-line:first-child { width: 60%; }
.wms-inbox-skeleton-line:last-child { width: 85%; }

/* --- Center Panel: Chat --- */
.wms-inbox-chat {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: #fff;
}
.wms-inbox-chat-header {
	padding: 14px 20px;
	border-bottom: 1px solid rgba(0,0,0,0.06);
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-shrink: 0;
	background: #fff;
}
.wms-inbox-chat-header h3 {
	margin: 0;
	font-size: 15px;
	font-weight: 700;
	color: var(--wms-heading, #1e293b);
}
.wms-inbox-chat-header .wms-chat-header-meta {
	font-size: 12px;
	color: var(--wms-text-muted, #94a3b8);
}
.wms-inbox-chat-header .wms-chat-actions {
	display: flex; gap: 6px;
}
.wms-inbox-messages {
	flex: 1;
	overflow-y: auto;
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 4px;
	background: linear-gradient(180deg, #f8f9fb 0%, #f1f4f8 100%);
	scroll-behavior: smooth;
}

/* --- Date Separator (frontend inbox) --- */
.wms-inbox-date-sep {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 14px 0 10px;
	font-size: 10px;
	font-weight: 600;
	color: var(--wms-text-muted, #94a3b8);
	text-transform: uppercase;
	letter-spacing: 0.5px;
}
.wms-inbox-date-sep::before,
.wms-inbox-date-sep::after {
	content: '';
	flex: 1;
	height: 1px;
	background: rgba(0,0,0,0.08);
}

/* --- Message Row (avatar + bubble) --- */
.wms-inbox-msg-row {
	display: flex;
	gap: 8px;
	max-width: 78%;
	animation: wms-slideUp 0.25s ease both;
}
.wms-inbox-msg-row-sent { align-self: flex-end; flex-direction: row-reverse; }
.wms-inbox-msg-row-received { align-self: flex-start; }

/* Grouping */
.wms-inbox-msg-row.wms-inbox-msg-grouped .wms-inbox-msg-avatar { visibility: hidden; }
.wms-inbox-msg-row.wms-inbox-msg-grouped .wms-inbox-msg-sender { display: none; }
.wms-inbox-msg-row + .wms-inbox-msg-row.wms-inbox-msg-grouped { margin-top: -2px; }

/* --- Avatar --- */
.wms-inbox-msg-avatar {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 11px;
	font-weight: 700;
	color: #fff;
	flex-shrink: 0;
	text-transform: uppercase;
	margin-top: 2px;
}
.wms-inbox-msg-avatar-customer { background: linear-gradient(135deg, #E8600A, #FB923C); }
.wms-inbox-msg-avatar-support  { background: linear-gradient(135deg, #6366F1, #818CF8); }

/* --- Bubble --- */
.wms-inbox-msg {
	max-width: 100%;
	padding: 8px 14px;
	border-radius: 18px;
	position: relative;
	font-size: 13px;
	line-height: 1.55;
	word-wrap: break-word;
	overflow-wrap: break-word;
	min-width: 60px;
	box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.wms-inbox-msg-sent {
	background: #EFF6FF;
	color: #1E293B;
	border-radius: 18px 18px 4px 18px;
	border: 1px solid rgba(59,130,246,0.12);
}
.wms-inbox-msg-received {
	background: #F8FAFC;
	border: 1px solid rgba(0,0,0,0.06);
	color: #1E293B;
	border-radius: 18px 18px 18px 4px;
}
.wms-inbox-msg-internal {
	background: #FFFEF5;
	border: 1px solid #FDE68A;
	border-left: 3px solid #F59E0B;
	border-radius: 4px 18px 18px 4px;
	color: #92400e;
}

/* --- Sender name --- */
.wms-inbox-msg-sender {
	font-size: 11px;
	font-weight: 600;
	margin-bottom: 2px;
	opacity: 0.85;
}
.wms-inbox-msg-sent .wms-inbox-msg-sender { color: #64748B; }
.wms-inbox-msg-received .wms-inbox-msg-sender { color: var(--wms-text-muted, #94a3b8); }

/* --- Time --- */
.wms-inbox-msg-time {
	font-size: 10px;
	margin-top: 4px;
	opacity: 0.5;
	transition: opacity 0.2s;
}
.wms-inbox-msg-row:hover .wms-inbox-msg-time { opacity: 0.9; }
.wms-inbox-msg-sent .wms-inbox-msg-time { text-align: right; color: #94A3B8; }

/* --- Attachments --- */
.wms-inbox-msg-attachments {
	display: flex; flex-direction: column; gap: 4px; margin-top: 6px;
	padding-top: 6px; border-top: 1px solid rgba(0,0,0,0.05);
}
.wms-inbox-msg-attachments a {
	display: inline-flex; align-items: center; gap: 4px;
	padding: 4px 10px; border-radius: 8px;
	font-size: 11px; font-weight: 500;
	background: rgba(0,0,0,0.05);
	color: inherit; text-decoration: none;
	transition: all 0.2s;
}
.wms-inbox-msg-sent .wms-inbox-msg-attachments a {
	background: rgba(59,130,246,0.08); color: #1E40AF;
}
.wms-inbox-msg-attachments a:hover {
	background: rgba(0,0,0,0.1);
	transform: translateY(-1px);
}

/* --- Messages wrapper: positions scroll button over messages area only --- */
.wms-messages-wrap {
	position: relative;
	flex: 1;
	min-height: 0;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}
.wms-messages-wrap .wms-inbox-messages,
.wms-messages-wrap .wms-inbox-chat-messages,
.wms-messages-wrap .wms-tech-tabpanel {
	flex: 1;
	min-height: 0;
	overflow-y: auto;
}

/* --- Scroll-to-bottom button (public portals) --- */
.wms-scroll-btn {
	position: absolute;
	bottom: 16px;
	right: 16px;
	z-index: 20;
	width: 40px;
	height: 40px;
	min-width: 40px;
	min-height: 40px;
	padding: 0;
	box-sizing: border-box;
	border-radius: 50%;
	border: 1px solid rgba(0,0,0,0.10);
	outline: none;
	-webkit-appearance: none;
	appearance: none;
	background: #F5F2EE;
	color: #1a1a1a;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 10px rgba(0,0,0,0.14);
	opacity: 0;
	pointer-events: none;
	transition: opacity .2s, background .15s, transform .1s, box-shadow .15s;
	flex-shrink: 0;
	line-height: 1;
}
.wms-scroll-btn:focus {
	outline: none;
	box-shadow: 0 2px 10px rgba(0,0,0,0.14);
}
.wms-scroll-btn svg {
	display: block;
	flex-shrink: 0;
	pointer-events: none;
}
.wms-scroll-btn.is-visible {
	opacity: 1;
	pointer-events: auto;
}
.wms-scroll-btn:hover {
	background: #EAE6E0;
	color: #1a1a1a;
	outline: none;
	box-shadow: 0 4px 14px rgba(0,0,0,0.18);
	transform: translateY(-1px);
}
.wms-scroll-btn:active {
	background: #DDD9D3;
	color: #1a1a1a;
	outline: none;
	transform: scale(0.93);
	box-shadow: 0 1px 6px rgba(0,0,0,0.14);
}
.wms-scroll-btn > span {
	position: absolute;
	top: -7px;
	right: -7px;
	background: #E8600A;
	color: #fff;
	border-radius: 10px;
	font-size: 10px;
	font-weight: 700;
	padding: 1px 5px;
	min-width: 18px;
	text-align: center;
}
/* Priority badge pills (public portals) */
.wms-priority-badge { display:inline-flex;align-items:center;gap:4px;padding:2px 8px;border-radius:20px;font-size:11px;font-weight:600;user-select:none; }
.wms-priority-low    { background:#F0FDF4;color:#16A34A; }
.wms-priority-normal { background:#F1F5F9;color:#64748B; }
.wms-priority-high   { background:#FFF7ED;color:#EA580C; }
.wms-priority-urgent { background:#FEF2F2;color:#DC2626; }
/* Inbox tabs */
.wms-inbox-tabs {
	display: flex;
	gap: 0;
	border-bottom: 2px solid #F1F5F9;
	padding: 0 12px;
	flex-shrink: 0;
	background: #fff;
}
.wms-inbox-tab {
	all: unset;
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 10px 14px;
	margin-bottom: -2px;
	border-bottom: 2px solid transparent;
	font-size: 13px;
	font-weight: 600;
	font-family: inherit;
	color: #94A3B8;
	background: none;
	cursor: pointer;
	white-space: nowrap;
	transition: color .15s;
	-webkit-appearance: none;
	appearance: none;
}
.wms-inbox-tab:hover,
.wms-inbox-tab:focus,
.wms-inbox-tab:focus-visible {
	color: #64748B;
	background: none;
	outline: none;
	box-shadow: none;
}
.wms-inbox-tab.active {
	color: #E8600A;
	border-bottom-color: #E8600A;
}
.wms-inbox-tab.active:hover,
.wms-inbox-tab.active:focus {
	color: #E8600A;
	background: none;
	outline: none;
}
.wms-inbox-tab-count {
	background: none;
	padding: 0;
	font-size: 13px;
	font-weight: 600;
	color: inherit;
}

/* --- Reply Composer --- */
.wms-inbox-reply {
	border-top: 1px solid rgba(0,0,0,0.06);
	padding: 12px 16px;
	flex-shrink: 0;
	background: #fff;
}
.wms-inbox-reply textarea {
	width: 100%;
	border: 1.5px solid rgba(0,0,0,0.1);
	border-radius: 12px;
	padding: 10px 14px;
	font-size: 14px;
	resize: none;
	outline: none;
	font-family: inherit;
	transition: border-color 0.2s, box-shadow 0.2s;
	min-height: 44px;
	max-height: 120px;
	box-sizing: border-box;
}
.wms-inbox-reply textarea:focus {
	border-color: var(--wms-info, #3B82F6);
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}
.wms-inbox-reply-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 8px;
}

/* Drag-drop zone highlight */
.wms-inbox-reply.wms-drop-active {
	background: rgba(232,96,10,0.04);
	border-top-color: var(--wms-primary, #EA5A00);
}
.wms-inbox-reply.wms-drop-active textarea {
	border-color: var(--wms-primary, #E8600A);
	border-style: dashed;
}

/* --- Empty State --- */
.wms-inbox-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	height: 100%;
	color: var(--wms-text-muted, #94a3b8);
	text-align: center;
	padding: 40px;
	animation: wms-scaleIn 0.35s ease;
}
.wms-inbox-empty svg { margin-bottom: 16px; opacity: 0.25; }
.wms-inbox-empty h3 { margin: 0 0 6px; font-size: 16px; color: var(--wms-text-secondary, #64748b); }
.wms-inbox-empty p { margin: 0; font-size: 13px; }

/* --- Right Panel: Context --- */
.wms-inbox-context {
	display: flex;
	flex-direction: column;
	border-left: 1px solid rgba(0,0,0,0.08);
	background: #fafbfc;
	overflow-y: auto;
	padding: 16px;
}
.wms-context-section {
	margin-bottom: 20px;
}
.wms-context-section h4 {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--wms-text-muted, #94a3b8);
	margin: 0 0 10px;
}
.wms-context-card {
	background: #fff;
	border: 1px solid rgba(0,0,0,0.06);
	border-radius: 10px;
	padding: 14px;
}
.wms-context-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 6px 0;
	font-size: 13px;
}
.wms-context-row .label { color: var(--wms-text-muted, #94a3b8); }
.wms-context-row .value { font-weight: 600; color: var(--wms-text, #334155); }

/* --- Process Timeline --- */
.wms-timeline {
	position: relative;
	padding-left: 20px;
}
.wms-timeline::before {
	content: '';
	position: absolute;
	left: 6px;
	top: 4px;
	bottom: 4px;
	width: 2px;
	background: rgba(0,0,0,0.08);
	border-radius: 1px;
}
.wms-timeline-step {
	position: relative;
	padding: 0 0 14px;
	font-size: 12px;
	color: var(--wms-text-muted, #94a3b8);
}
.wms-timeline-step:last-child { padding-bottom: 0; }
.wms-timeline-step::before {
	content: '';
	position: absolute;
	left: -18px;
	top: 3px;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	border: 2px solid rgba(0,0,0,0.12);
	background: #fff;
}
.wms-timeline-step.completed::before {
	background: var(--wms-success, #10B981);
	border-color: var(--wms-success, #10B981);
}
.wms-timeline-step.active::before {
	background: var(--wms-primary, #E8600A);
	border-color: var(--wms-primary, #E8600A);
	box-shadow: 0 0 0 3px rgba(232,96,10,0.15);
}
.wms-timeline-step.completed,
.wms-timeline-step.active { color: var(--wms-text, #334155); font-weight: 500; }

/* --- Mobile Back Button (shown on small screens) --- */
.wms-inbox-back-btn {
	display: none;
	align-items: center;
	gap: 4px;
	padding: 6px 10px;
	border: none;
	background: transparent;
	cursor: pointer;
	font-size: 13px;
	color: var(--wms-primary, #EA5A00);
	font-weight: 500;
}

/* --- New Ticket Modal Overlay --- */
.wms-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,0.45);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 9999;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s, visibility 0.25s;
}
.wms-modal-overlay.active { opacity: 1; visibility: visible; }

/* ═══════════════ PARTS QUOTE MODAL ═══════════════ */
.wms-quote-modal-dialog {
	max-width: 640px;
	width: 94%;
	border-radius: 18px;
	box-shadow: 0 24px 80px rgba(0,0,0,.22);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	max-height: 90vh;
	animation: wms-slideUp .22s cubic-bezier(.4,0,.2,1);
}
.wms-quote-modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 22px 16px;
	background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%);
	border-bottom: 1px solid #FDE68A;
	flex-shrink: 0;
}
.wms-quote-modal-icon {
	width: 40px; height: 40px;
	border-radius: 11px;
	background: #fff;
	box-shadow: 0 2px 8px rgba(245,158,11,.18);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}
.wms-quote-modal-close {
	width: 30px; height: 30px;
	border-radius: 8px;
	background: rgba(0,0,0,.06);
	border: none;
	cursor: pointer;
	font-size: 18px;
	color: #64748B;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background .15s, color .15s;
}
.wms-quote-modal-close:hover { background: #FEE2E2; color: #DC2626; }
.wms-quote-modal-body {
	padding: 20px 22px;
	overflow-y: auto;
	flex: 1;
}
.wms-quote-section-label {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .07em;
	color: #64748B;
	margin-bottom: 10px;
}
.wms-quote-table-wrap {
	border: 1px solid #E2E8F0;
	border-radius: 10px;
	overflow: hidden;
	margin-bottom: 10px;
}
.wms-quote-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
}
.wms-quote-table thead tr {
	background: #F8FAFC;
}
.wms-quote-table thead th {
	padding: 9px 12px;
	text-align: left;
	font-weight: 600;
	color: #475569;
	font-size: 12px;
	border-bottom: 1px solid #E2E8F0;
}
.wms-quote-table .wms-quote-col-num { text-align: center; width: 110px; }
.wms-quote-table .wms-quote-col-del { width: 46px; text-align: center; }
.wms-quote-item-row td {
	padding: 6px 8px;
	border-bottom: 1px solid #F1F5F9;
	vertical-align: middle;
}
.wms-quote-item-row:last-child td { border-bottom: none; }
.wms-quote-input {
	width: 100%;
	border: 1px solid #E2E8F0;
	border-radius: 7px;
	padding: 7px 10px;
	font-size: 13px;
	font-family: inherit;
	color: #1E293B;
	background: #FAFBFF;
	outline: none;
	transition: border-color .15s, box-shadow .15s;
	box-sizing: border-box;
	/* hide browser number spinners */
	-moz-appearance: textfield;
}
.wms-quote-input::-webkit-outer-spin-button,
.wms-quote-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
/* reset any browser invalid/valid state coloring */
.wms-quote-input:invalid { box-shadow: none; background: #FAFBFF; border-color: #E2E8F0; }
.wms-quote-input:focus { border-color: #F59E0B; box-shadow: 0 0 0 3px rgba(245,158,11,.12); }
.wms-quote-table .wms-quote-col-num .wms-quote-input { text-align: center; }
.wms-quote-table td:first-child .wms-quote-input { min-width: 0; }
.wms-quote-del-btn {
	width: 32px; height: 32px;
	border-radius: 7px;
	background: #FEE2E2;
	border: 1px solid #FECACA;
	color: #DC2626;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background .15s, border-color .15s;
	flex-shrink: 0;
	line-height: 1;
}
.wms-quote-del-btn svg { display: block; stroke: #DC2626; flex-shrink: 0; }
.wms-quote-del-btn:hover { background: #FECACA; border-color: #FCA5A5; }
.wms-quote-add-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	font-weight: 600;
	color: #3B82F6;
	background: #EFF6FF;
	border: 1px dashed #93C5FD;
	border-radius: 8px;
	padding: 7px 14px;
	cursor: pointer;
	transition: background .15s, border-color .15s;
	margin-bottom: 18px;
}
.wms-quote-add-btn:hover { background: #DBEAFE; border-color: #60A5FA; }
.wms-quote-costs-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin-bottom: 14px;
}
.wms-quote-cost-card {
	background: #F8FAFC;
	border: 1px solid #E2E8F0;
	border-radius: 10px;
	padding: 12px 14px;
}
.wms-quote-cost-label {
	display: flex;
	align-items: center;
	gap: 5px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: #64748B;
	margin-bottom: 8px;
}
.wms-quote-cost-input-wrap {
	display: flex;
	align-items: center;
	background: #fff;
	border: 1px solid #E2E8F0;
	border-radius: 8px;
	overflow: hidden;
	transition: border-color .15s, box-shadow .15s;
}
.wms-quote-cost-input-wrap:focus-within { border-color: #F59E0B; box-shadow: 0 0 0 3px rgba(245,158,11,.12); }
.wms-quote-cost-sym {
	padding: 0 10px;
	font-size: 12px;
	font-weight: 700;
	color: #94A3B8;
	background: #F8FAFC;
	border-right: 1px solid #E2E8F0;
	line-height: 38px;
	white-space: nowrap;
}
.wms-quote-cost-input {
	border: none;
	outline: none;
	padding: 9px 10px;
	font-size: 14px;
	font-weight: 600;
	font-family: inherit;
	color: #1E293B;
	width: 100%;
	background: transparent;
	-moz-appearance: textfield;
}
.wms-quote-cost-input::-webkit-outer-spin-button,
.wms-quote-cost-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.wms-quote-cost-input:invalid { box-shadow: none; }
.wms-quote-total-banner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: linear-gradient(135deg, #1E293B 0%, #334155 100%);
	border-radius: 12px;
	padding: 14px 18px;
	margin-bottom: 4px;
}
.wms-quote-total-label {
	font-size: 13px;
	font-weight: 600;
	color: rgba(255,255,255,.7);
	letter-spacing: .03em;
}
.wms-quote-total-amount {
	font-size: 22px;
	font-weight: 800;
	color: #fff;
	letter-spacing: -.02em;
}
.wms-quote-notes {
	width: 100%;
	border: 1px solid #E2E8F0;
	border-radius: 10px;
	padding: 11px 13px;
	font-size: 13px;
	font-family: inherit;
	color: #1E293B;
	background: #FAFBFF;
	resize: vertical;
	min-height: 80px;
	outline: none;
	box-sizing: border-box;
	transition: border-color .15s, box-shadow .15s;
}
.wms-quote-notes:focus { border-color: #F59E0B; box-shadow: 0 0 0 3px rgba(245,158,11,.12); }
.wms-quote-modal-footer {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
	padding: 14px 22px;
	background: #F8FAFC;
	border-top: 1px solid #E2E8F0;
	flex-shrink: 0;
}
.wms-quote-btn-cancel {
	padding: 9px 18px;
	border-radius: 9px;
	border: 1px solid #E2E8F0;
	background: #fff;
	color: #64748B;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	font-family: inherit;
	transition: background .15s, border-color .15s;
}
.wms-quote-btn-cancel:hover { background: #F1F5F9; border-color: #CBD5E1; }
.wms-quote-btn-send {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 20px;
	border-radius: 9px;
	border: none;
	background: linear-gradient(135deg, #F59E0B 0%, #EAB308 100%);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
	font-family: inherit;
	box-shadow: 0 2px 12px rgba(245,158,11,.3);
	transition: opacity .15s, transform .12s;
}
.wms-quote-btn-send:hover { opacity: .92; transform: translateY(-1px); }
.wms-quote-btn-send.loading { opacity: .65; pointer-events: none; }
@media (max-width: 600px) {
	.wms-quote-costs-grid { grid-template-columns: 1fr; }
	.wms-quote-modal-dialog { width: 96%; }
}

/* Modal dialog box (used in tech portal + customer portal popups) */
.wms-modal {
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 20px 60px rgba(0,0,0,.2);
	width: 90%;
	max-height: 85vh;
	overflow-y: auto;
	position: relative;
	z-index: 1;
}
.wms-modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px;
	border-bottom: 1px solid #E2E8F0;
}
.wms-modal-header h3 {
	margin: 0;
	font-size: 15px;
	font-weight: 700;
	color: #1E293B;
}
.wms-modal-body {
	padding: 20px;
}
.wms-modal-footer {
	padding: 14px 20px;
	border-top: 1px solid #E2E8F0;
	display: flex;
	gap: 8px;
	justify-content: flex-end;
}
.wms-modal-close {
	background: none;
	border: none;
	cursor: pointer;
	padding: 4px 8px;
	font-size: 20px;
	color: #94A3B8;
	line-height: 1;
	border-radius: 6px;
	transition: background .15s, color .15s;
	flex-shrink: 0;
}
.wms-modal-close:hover { background: #F1F5F9; color: #475569; }
.wms-modal-content {
	background: #fff;
	border-radius: 20px;
	max-width: 520px;
	width: 90%;
	max-height: 85vh;
	overflow-y: auto;
	padding: 28px;
	box-shadow: 0 24px 64px rgba(0,0,0,0.2), 0 0 0 1px rgba(0,0,0,0.04);
	transform: scale(0.92) translateY(20px);
	opacity: 0;
	transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s;
	border-top: 3px solid transparent;
	background-image: linear-gradient(#fff,#fff),linear-gradient(90deg,#EA5A00,#F97316);
	background-origin: border-box;
	background-clip: padding-box, border-box;
}
.wms-modal-overlay.active .wms-modal-content { transform: scale(1) translateY(0); opacity: 1; }
.wms-modal-content h3 { margin: 0 0 20px; font-size: 19px; font-weight: 700; padding-bottom: 16px; border-bottom: 1px solid rgba(0,0,0,0.06); }

/* --- Context toggle button --- */
.wms-ctx-toggle {
	font-size: 12px;
	padding: 5px 12px;
	border-radius: 20px;
	border: 1px solid var(--wms-border);
	background: var(--wms-bg);
	color: var(--wms-text-secondary);
	cursor: pointer;
	font-family: var(--wms-font);
	font-weight: 500;
	transition: all 0.15s;
	white-space: nowrap;
}
.wms-ctx-toggle:hover {
	background: var(--wms-card);
	border-color: #94A3B8;
	color: var(--wms-text);
}

/* ═══ Responsive Breakpoints ═══ */
@media (max-width: 1200px) {
	.wms-inbox-layout { grid-template-columns: 280px 1fr; }
	.wms-inbox-layout.wms-ctx-open { grid-template-columns: 280px 1fr; }
	.wms-inbox-context, .wms-inbox-layout.wms-ctx-open .wms-inbox-context { display: none; }
	.wms-ctx-toggle { display: none; }
}
@media (max-width: 900px) {
	.wms-inbox-layout {
		grid-template-columns: 1fr;
		height: auto;
		min-height: calc(100vh - 60px);
	}
	.wms-inbox-list { max-height: none; border-right: none; border-bottom: 1px solid rgba(0,0,0,0.08); }
	.wms-inbox-chat { min-height: 400px; }
	.wms-inbox-context { display: none; }
	/* Show/hide panels via JS-toggled class */
	.wms-inbox-layout.chat-active .wms-inbox-list { display: none; }
	.wms-inbox-layout:not(.chat-active) .wms-inbox-chat { display: none; }
	.wms-inbox-back-btn { display: flex; }
}

/* SLA Warning for inbox */
.wms-inbox-item.overdue {
	border-left-color: #EF4444 !important;
	background: rgba(239, 68, 68, 0.04) !important;
}
.wms-inbox-item.overdue:hover { background: rgba(239, 68, 68, 0.07) !important; }

/* ─── PHASE 4.2 — TICKET INBOX ENHANCEMENTS ─── */

/* Unread pulse indicator on ticket list items */
@keyframes wmsUnreadPulse {
	0%, 100% { opacity: 1; transform: scale(1); }
	50% { opacity: 0.5; transform: scale(0.8); }
}
.wms-inbox-item.unread .wms-inbox-item-title::before {
	content: '';
	display: inline-block;
	width: 7px; height: 7px;
	border-radius: 50%;
	background: var(--wms-primary);
	margin-right: 6px;
	vertical-align: middle;
	animation: wmsUnreadPulse 1.8s ease-in-out infinite;
}
.wms-inbox-item.unread { background: var(--wms-primary-subtle); }
.wms-inbox-item.unread .wms-inbox-item-name { font-weight: 700; }

/* Auto-growing composer textarea */
.wms-inbox-composer textarea {
	field-sizing: content;
}

/* Character counter for composer */
.wms-inbox-char-counter {
	font-size: 11px; color: #94A3B8;
	align-self: flex-end; padding-bottom: 12px;
	flex-shrink: 0; transition: color 0.2s; white-space: nowrap;
}
.wms-inbox-char-counter.near-limit { color: #F59E0B; }
.wms-inbox-char-counter.at-limit { color: #EF4444; }

/* Warranty status pill in right context panel */
.wms-inbox-warranty-pill {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 5px 12px; border-radius: 20px;
	font-size: 11px; font-weight: 600;
	border: 1px solid currentColor;
}
.wms-inbox-warranty-pill.active { color: #059669; background: #D1FAE5; border-color: #A7F3D0; }
.wms-inbox-warranty-pill.expiring { color: #D97706; background: #FEF3C7; border-color: #FDE68A; }
.wms-inbox-warranty-pill.expired { color: #DC2626; background: #FEE2E2; border-color: #FECACA; }
.wms-inbox-warranty-pill.none { color: #64748B; background: #F1F5F9; border-color: #E2E8F0; }

/* Days Since Opened stat in right panel */
.wms-inbox-days-stat {
	display: flex; align-items: center; justify-content: space-between;
	padding: 10px 0; border-bottom: 1px solid #F9FAFB;
}
.wms-inbox-days-stat span { font-size: 11px; color: #94A3B8; font-weight: 500; }
.wms-inbox-days-stat strong { font-size: 13px; font-weight: 700; color: var(--wms-secondary); }

/* Internal note badge */
.wms-inbox-internal-badge {
	display: inline-flex; align-items: center; gap: 4px;
	font-size: 10px; font-weight: 700; letter-spacing: 0.5px;
	text-transform: uppercase; color: #92400E;
	background: #FEF3C7; border: 1px solid #FDE68A;
	padding: 2px 8px; border-radius: 6px; margin-bottom: 4px;
}
.wms-inbox-msg.internal-note {
	background: #FFFBEB !important;
	border-left: 3px solid #F59E0B;
}
.wms-inbox-msg.internal-note .wms-inbox-msg-bubble {
	background: #FFFBEB; color: var(--wms-text-body);
}

/* ─── PHASE 5 — SUPPORT PORTAL ENHANCEMENTS ─── */

/* Quick Actions icon button row */
.wms-support-quick-actions {
	display: flex; gap: 8px; margin-bottom: 8px;
}
.wms-quick-action-btn {
	display: flex; flex-direction: column; align-items: center; gap: 5px;
	padding: 10px 8px; border-radius: 10px;
	background: #F8FAFC; border: 1px solid var(--wms-border);
	cursor: pointer; flex: 1; min-width: 0;
	font-size: 11px; font-weight: 600; color: var(--wms-text-body);
	transition: all 0.15s; text-align: center; line-height: 1.2;
}
.wms-quick-action-btn:hover {
	background: #fff; border-color: #94A3B8;
	transform: translateY(-1px); box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.wms-quick-action-btn.wms-quick-action-primary { color: #2563EB; }
.wms-quick-action-btn.wms-quick-action-primary:hover { background: #EFF6FF; border-color: #BFDBFE; }
.wms-quick-action-btn.wms-quick-action-primary.active { background: #EFF6FF; border-color: #2563EB; box-shadow: 0 0 0 2px rgba(37,99,235,.15); }
.wms-quick-action-btn.wms-quick-action-danger { color: #DC2626; }
.wms-quick-action-btn.wms-quick-action-danger:hover { background: #FEF2F2; border-color: #FECACA; }
.wms-quick-action-btn.wms-quick-action-success { color: #059669; }
.wms-quick-action-btn.wms-quick-action-success:hover { background: #F0FDF4; border-color: #A7F3D0; }

/* Ticket status stepper */
.wms-support-stepper {
	display: flex; flex-direction: column; gap: 0;
	position: relative; padding-left: 4px;
}
.wms-support-stepper::before {
	content: ''; position: absolute;
	left: 11px; top: 16px; bottom: 16px;
	width: 2px; background: var(--wms-border);
}
.wms-support-step {
	display: flex; align-items: center; gap: 12px;
	padding: 8px 6px; position: relative; z-index: 1;
	font-size: 12px; color: #94A3B8;
	cursor: pointer; border-radius: 8px; margin: 0 -6px;
	transition: background 0.15s;
}
.wms-support-step:hover { background: #F1F5F9; color: var(--wms-text-body); }
.wms-support-step:hover .wms-support-step-dot { border-color: #94A3B8; }
.wms-support-step-dot {
	width: 16px; height: 16px; border-radius: 50%; flex-shrink: 0;
	border: 2px solid var(--wms-border); background: #fff; transition: all 0.25s;
}
.wms-support-step.completed .wms-support-step-dot { background: #10B981; border-color: #10B981; }
.wms-support-step.completed { color: #6B7280; }
.wms-support-step.active .wms-support-step-dot {
	background: var(--wms-primary); border-color: var(--wms-primary);
	box-shadow: 0 0 0 3px rgba(232, 96, 10, 0.18);
}
.wms-support-step.active { color: var(--wms-text-body); font-weight: 600; cursor: default; }
.wms-support-step.active:hover { background: none; }

/* ── PHASE 6 — TECH PORTAL ── */

/* Status filter chips */
.wms-tech-filters {
	display: flex; gap: 6px; padding: 10px 12px;
	border-bottom: 1px solid var(--wms-border); flex-wrap: nowrap; overflow-x: auto;
}
.wms-tech-filter {
	flex-shrink: 0; padding: 5px 12px; border-radius: 20px;
	font-size: 11px; font-weight: 600; cursor: pointer;
	background: #F1F5F9; border: none; color: #64748B; transition: all 0.15s;
}
.wms-tech-filter.active { background: var(--wms-primary); color: #fff; }
.wms-tech-filter:hover:not(.active) { background: #E2E8F0; }

/* Tech portal header */
.wms-tech-header {
	background: #fff; border-bottom: 1px solid #E5E7EB; padding: 12px 20px;
	display: flex; align-items: center; justify-content: space-between; flex-shrink: 0;
}
.wms-tech-case-title { margin: 0; font-size: 16px; color: var(--wms-secondary); }
.wms-tech-case-meta { font-size: 12px; color: #64748B; margin-top: 2px; }
.wms-tech-timer-wrap { display: flex; align-items: center; gap: 12px; }
.wms-tech-timer-ring { position: relative; display: flex; align-items: center; justify-content: center; }
.wms-timer-text {
	position: absolute; font-family: monospace; font-size: 11px; font-weight: 700;
	color: var(--wms-secondary); user-select: none;
}
.wms-tech-timer-btns { display: flex; gap: 6px; }
.wms-ring-fill { transition: stroke-dashoffset 1s linear; }
.wms-timer-running .wms-ring-fill { stroke: #F59E0B; }

/* Repair log timeline */
.wms-repair-timeline { display: flex; flex-direction: column; gap: 0; padding: 4px 0; }
.wms-repair-entry { display: flex; gap: 10px; padding: 8px 0; position: relative; }
.wms-repair-entry-line {
	position: absolute; left: 11px; top: 28px; bottom: -8px; width: 1px; background: #F1F5F9;
}
.wms-repair-entry:last-child .wms-repair-entry-line { display: none; }
.wms-repair-entry-dot {
	width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
	background: #F1F5F9; border: 2px solid #E2E8F0; margin-top: 2px;
}
.wms-repair-entry-body { flex: 1; min-width: 0; }
.wms-repair-entry-header { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.wms-repair-entry-initials {
	font-size: 10px; font-weight: 700; background: var(--wms-primary-light);
	color: var(--wms-primary); border-radius: 4px; padding: 1px 6px;
}
.wms-repair-entry-time { font-size: 11px; color: #94A3B8; }
.wms-repair-entry-desc { font-size: 12px; color: var(--wms-text-body); margin: 0; }

/* Parts table */
.wms-parts-table {
	width: 100%; border-collapse: collapse; background: #fff;
	border: 1px solid #E2E8F0; border-radius: 6px; overflow: hidden; font-size: 12px;
}
.wms-parts-table th {
	background: #F8FAFC; text-align: left; font-size: 10px;
	font-weight: 700; color: #64748B; text-transform: uppercase;
	letter-spacing: 0.4px; padding: 8px 10px; border-bottom: 1px solid #E2E8F0;
}
.wms-parts-table td { padding: 8px 10px; border-bottom: 1px solid #F9FAFB; color: var(--wms-text-body); }
.wms-parts-table tr:last-child td { border-bottom: none; }
.wms-parts-subtotal { font-weight: 600; color: var(--wms-secondary); }

/* Cost rows */
.wms-cost-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 13px; }
.wms-cost-total {
	font-weight: 700; font-size: 15px; margin-top: 6px;
	border-top: 1px solid #E2E8F0; padding-top: 10px;
}

/* Coverage decision cards */
.wms-coverage-card { user-select: none; }
.wms-coverage-card:hover { background: var(--wms-bg) !important; }
.wms-coverage-card input[type="radio"] { accent-color: var(--wms-primary); }

/* Coverage confirmation modal */
#wms-coverage-confirm-modal { align-items: center; justify-content: center; }

/* Tech footer */
.wms-tech-footer {
	background: #fff; border-top: 1px solid #E5E7EB; padding: 10px 16px;
	display: flex; align-items: center; gap: 8px; flex-shrink: 0;
}
.wms-tech-status-select {
	flex: 1; padding: 7px 10px; border: 1px solid var(--wms-border);
	border-radius: 8px; font-size: 13px; font-family: inherit;
	background: #fff; color: var(--wms-text-body);
}

/* Tech context panel */
.wms-tech-ctx-section {
	padding: 16px 18px; border-bottom: 1px solid #F1F5F9;
}
.wms-tech-ctx-label {
	font-size: 10px; font-weight: 700; text-transform: uppercase;
	letter-spacing: 0.8px; color: #94A3B8; margin: 0 0 10px;
}
.wms-tech-ctx-customer { display: flex; align-items: center; gap: 10px; }
.wms-tech-ctx-avatar {
	width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
	background: linear-gradient(135deg, #6366F1, #818CF8);
	display: flex; align-items: center; justify-content: center;
	font-size: 12px; font-weight: 700; color: #fff;
}
.wms-tech-ctx-name { font-size: 13px; font-weight: 600; color: var(--wms-secondary); }
.wms-tech-ctx-email { font-size: 11px; color: #3B82F6; text-decoration: none; }
.wms-tech-ctx-product { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 8px; }
.wms-tech-ctx-product-icon {
	width: 36px; height: 36px; border-radius: 8px; flex-shrink: 0;
	background: var(--wms-bg); border: 1px solid var(--wms-border);
	display: flex; align-items: center; justify-content: center; color: #94A3B8;
}
.wms-tech-ctx-serial { font-size: 11px; color: #64748B; margin-top: 2px; }
.wms-tech-ctx-notes {
	font-size: 12px; color: #334155; background: #F8FAFC;
	padding: 8px 10px; border-radius: 6px; border: 1px solid #F1F5F9; margin: 0;
}
.wms-tech-ctx-empty { padding: 40px 20px; text-align: center; color: #94A3B8; font-size: 13px; }

/* ═══════════════════════════════════════════════════════════════
   INBOX UI UPGRADE — Clean & Refined
   ═══════════════════════════════════════════════════════════════ */

/* ── Outer Container ── */
.wms-inbox-layout {
	grid-template-columns: 280px 1fr;
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 4px 24px rgba(0,0,0,0.07), 0 0 0 1px rgba(0,0,0,0.05);
	border: none;
	height: calc(100vh - 72px);
}
.wms-inbox-layout.wms-ctx-open {
	grid-template-columns: 280px 1fr 260px;
}

/* ── Left Panel ── */
.wms-inbox-list {
	background: #fff;
	border-right: 1px solid #EFF2F7;
}
.wms-inbox-list-header {
	padding: 18px 16px 14px;
	border-bottom: none;
	background: #fff;
}
.wms-inbox-list-header h3 {
	margin: 0 0 12px;
	font-size: 17px;
	font-weight: 700;
	color: #0F172A;
	letter-spacing: -0.01em;
}

/* Search with icon */
.wms-inbox-search {
	width: 100%;
	padding: 9px 14px 9px 36px;
	border-radius: 22px;
	border: 1.5px solid #E8EDF5;
	background: #F5F7FA url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2.5'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") no-repeat 13px center;
	font-family: inherit;
	font-size: 13px;
	color: #334155;
	outline: none;
	transition: all 0.2s;
	box-sizing: border-box;
}
.wms-inbox-search:focus {
	background-color: #fff;
	border-color: #E8600A;
	box-shadow: 0 0 0 3px rgba(232,96,10,0.08);
}
.wms-inbox-search::placeholder { color: #B0BAC9; }

/*
 * Scoped overrides: ensure both portals show exactly one icon regardless
 * of theme CSS load order. Higher specificity wins over plain class rules.
 */
/* Support portal — input inside .wms-inbox-layout */
.wms-inbox-layout input.wms-inbox-search {
	background: #F5F7FA url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2.5'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") no-repeat 13px center !important;
	padding: 9px 14px 9px 36px !important;
	border-radius: 22px !important;
	border: 1.5px solid #E8EDF5 !important;
	-webkit-appearance: none;
	appearance: none;
}
.wms-inbox-layout input.wms-inbox-search:focus {
	background-color: #fff !important;
	border-color: #E8600A !important;
	box-shadow: 0 0 0 3px rgba(232,96,10,0.08) !important;
}
/* Tech-portal — input inside .wms-col-list, needs horizontal margin */
.wms-col-list > input.wms-inbox-search {
	margin: 0 16px 8px;
	width: calc(100% - 32px);
	box-sizing: border-box;
	background: #F5F7FA url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2.5'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") no-repeat 13px center;
	padding: 9px 14px 9px 36px;
	border-radius: 22px;
	border: 1.5px solid #E8EDF5;
	-webkit-appearance: none;
	appearance: none;
}
.wms-col-list > input.wms-inbox-search:focus {
	background-color: #fff;
	border-color: #E8600A;
	box-shadow: 0 0 0 3px rgba(232,96,10,0.08);
	outline: none;
}

/* ── Tech Portal: outer 2-column grid ── */
.wms-inbox-wrap {
	display: grid;
	grid-template-columns: 280px 1fr;
	height: 100vh;
	overflow: hidden;
	background: #fff;
	transition: grid-template-columns 0.25s ease;
}
/* Right context panel open (3-col) */
.wms-inbox-wrap.wms-detail-open {
	grid-template-columns: 280px 1fr 300px;
}
/* Responsive */
@media (max-width: 900px) {
	.wms-inbox-wrap {
		grid-template-columns: 1fr;
		height: auto;
		min-height: 100vh;
	}
}

/* ── Tech Portal: workbench center column ── */
.wms-inbox-workspace {
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

/* ══════════════════════════════════════════════════
   TECH PORTAL — FULL-WIDTH CASES REVAMP
   ══════════════════════════════════════════════════ */

/* Main wrapper */
.wms-tech-main {
	padding: 0;
	overflow: hidden;
	height: calc(100vh - 0px);
	display: flex;
	flex-direction: column;
}
.wms-tc-wrap {
	flex: 1;
	min-height: 0;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	background: #fff;
}

/* ── LIST PAGE ── */
.wms-tc-list-page {
	flex: 1;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: #fff;
}
.wms-tc-list-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 20px 28px 16px;
	border-bottom: 1px solid #EFF2F7;
	flex-shrink: 0;
	background: #fff;
}
.wms-tc-list-title {
	margin: 0 0 2px;
	font-size: 20px;
	font-weight: 700;
	color: #1E293B;
}
.wms-tc-list-subtitle {
	margin: 0;
	font-size: 13px;
	color: #64748B;
}
.wms-tc-search {
	width: 280px;
	padding: 8px 14px 8px 36px;
	border: 1px solid #E2E8F0;
	border-radius: 8px;
	font-size: 13px;
	background: #F8FAFC url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%2394A3B8' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") 12px center no-repeat;
	color: #1E293B;
	outline: none;
	transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.wms-tc-search:focus {
	border-color: #E8600A;
	box-shadow: 0 0 0 3px rgba(232,96,10,0.08);
	background-color: #fff;
}

/* Tabs */
.wms-tc-tabs {
	display: flex;
	gap: 0;
	padding: 0 28px;
	border-bottom: 1px solid #EFF2F7;
	flex-shrink: 0;
	background: #fff;
}
.wms-tc-tab {
	-webkit-appearance: none;
	appearance: none;
	padding: 11px 18px;
	font-size: 13px;
	font-weight: 600;
	border: none;
	border-bottom: 2px solid transparent;
	border-radius: 0;
	background: transparent;
	color: #64748B;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	transition: color 0.15s, border-color 0.15s;
	outline: none;
	box-shadow: none;
}
.wms-tc-tab:hover { color: #E8600A; background: transparent; }
.wms-tc-tab:focus { outline: none; box-shadow: none; }
.wms-tc-tab:focus-visible { outline: 2px solid rgba(232,96,10,0.45); outline-offset: -2px; }
.wms-tc-tab:active { background: transparent; color: #E8600A; transform: none; }
.wms-tc-tab.active {
	color: #E8600A;
	border-bottom-color: #E8600A;
	background: transparent;
}
.wms-tc-tab-count {
	background: #F1F5F9;
	color: #475569;
	border-radius: 10px;
	padding: 1px 7px;
	font-size: 11px;
	font-weight: 700;
	transition: background 0.15s, color 0.15s;
}
.wms-tc-tab.active .wms-tc-tab-count {
	background: rgba(232,96,10,0.10);
	color: #E8600A;
}
.wms-tc-tab:hover .wms-tc-tab-count {
	background: rgba(232,96,10,0.07);
	color: #E8600A;
}

/* Case rows */
.wms-tc-case-rows {
	flex: 1;
	overflow-y: auto;
	padding: 6px 0;
}
.wms-tc-case-row {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 14px 28px;
	border-left: 4px solid transparent;
	border-bottom: 1px solid #F8FAFC;
	text-decoration: none;
	color: inherit;
	transition: background 0.12s;
	cursor: pointer;
}
.wms-tc-case-row:hover { background: #FAFBFC; }
.wms-tc-row-id {
	width: 46px;
	height: 46px;
	background: #F1F5F9;
	color: #64748B;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 11px;
	font-weight: 700;
	flex-shrink: 0;
}
.wms-tc-row-info {
	flex: 1;
	min-width: 0;
}
.wms-tc-row-title {
	font-size: 14px;
	font-weight: 600;
	color: #1E293B;
	margin-bottom: 2px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.wms-tc-row-serial {
	font-size: 12px;
	color: #64748B;
}
.wms-tc-row-badges {
	display: flex;
	align-items: center;
	gap: 5px;
	flex-wrap: wrap;
}
.wms-tc-pay-badge {
	display: inline-block;
	font-size: 11px;
	font-weight: 600;
	border-radius: 10px;
	padding: 2px 8px;
}
.wms-tc-pay-approved { color: #065F46; background: #D1FAE5; }
.wms-tc-pay-review   { color: #92400E; background: #FEF3C7; }
.wms-tc-pay-pending  { color: #DC2626; background: #FEE2E2; }
.wms-tc-pay-dispute  { color: #9A3412; background: #FFF7ED; }
.wms-tc-row-date {
	font-size: 12px;
	color: #94A3B8;
	white-space: nowrap;
	flex-shrink: 0;
}
.wms-tc-row-arrow {
	color: #CBD5E1;
	flex-shrink: 0;
	transition: color 0.15s, transform 0.15s;
}
.wms-tc-case-row:hover .wms-tc-row-arrow {
	color: #E8600A;
	transform: translateX(3px);
}
.wms-tc-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 80px 40px;
	color: #94A3B8;
	text-align: center;
	gap: 12px;
}

/* ── DETAIL PAGE ── */
.wms-tc-detail-page {
	flex: 1;
	min-height: 0;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}
.wms-tc-back-bar {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 10px 24px;
	border-bottom: 1px solid #EFF2F7;
	background: #fff;
	flex-shrink: 0;
	flex-wrap: wrap;
}
.wms-tc-back-btn {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 6px 13px;
	font-size: 12px;
	font-weight: 600;
	color: #475569;
	background: #F1F5F9;
	border: 1px solid #E2E8F0;
	border-radius: 7px;
	text-decoration: none;
	white-space: nowrap;
	flex-shrink: 0;
	transition: background 0.15s, color 0.15s;
}
.wms-tc-back-btn:hover { background: #E2E8F0; color: #1E293B; }
.wms-tc-back-bar-title {
	display: flex;
	align-items: center;
	gap: 7px;
	flex-shrink: 0;
}
.wms-tc-back-bar-case {
	font-size: 15px;
	font-weight: 700;
	color: #E8600A;
}
.wms-tc-back-bar-sep { color: #CBD5E1; }
.wms-tc-back-bar-product {
	font-size: 15px;
	font-weight: 600;
	color: #1E293B;
}
.wms-tc-back-bar-meta {
	display: flex;
	align-items: center;
	gap: 7px;
	flex-wrap: wrap;
	margin-left: auto;
}
.wms-tc-meta-chip {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 4px 10px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 500;
	background: #F1F5F9;
	color: #475569;
}
.wms-tc-workspace {
	flex: 1;
	min-height: 0;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
}

/* ── Top Bar Action Buttons ── */
.wms-tc-bar-actions {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-left: auto;
	flex-shrink: 0;
}
.wms-tc-bar-actions .wms-btn { font-size: 12px; padding: 6px 14px; }
.wms-tc-bar-actions .wms-wf-advance-btn { font-size: 12px; padding: 6px 14px; }

/* ── Two-column case workspace ── */
.wms-case-body {
	flex: 1;
	display: flex;
	overflow: hidden;
	min-height: 0;
}
.wms-case-main {
	flex: 1;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	min-width: 0;
	border-right: 1px solid #EFF2F7;
}

/* Case workbench tabs (new clean version, replaces inline-styled .wms-tech-tabs) */
.wms-case-tabs {
	display: flex;
	gap: 0;
	border-bottom: 1px solid #EFF2F7;
	background: #fff;
	flex-shrink: 0;
}
.wms-case-tab {
	-webkit-appearance: none;
	appearance: none;
	padding: 10px 18px;
	font-size: 13px;
	font-weight: 600;
	border: none;
	border-bottom: 2px solid transparent;
	border-radius: 0;
	background: transparent;
	color: #64748B;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	outline: none;
	transition: color 0.15s, border-color 0.15s;
}
.wms-case-tab:hover { color: #E8600A; }
.wms-case-tab:focus { outline: none; }
.wms-case-tab:focus-visible { outline: 2px solid rgba(232,96,10,0.4); outline-offset: -2px; }
.wms-case-tab.active { color: #E8600A; border-bottom-color: #E8600A; }

/* ── Right Sidebar ── */
.wms-case-sidebar {
	width: 300px;
	flex-shrink: 0;
	background: #F8FAFC;
	overflow-y: auto;
	padding: 16px 14px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	border-left: 1px solid #EFF2F7;
}
.wms-sb-card {
	background: #fff;
	border: 1px solid #EFF2F7;
	border-radius: 10px;
	padding: 14px;
}
.wms-sb-card-label {
	display: flex;
	align-items: center;
	gap: 5px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #94A3B8;
	margin-bottom: 10px;
}

/* Timer card */
.wms-sb-timer-card { background: #fff; }
.wms-sb-timer-wrap {
	display: flex;
	align-items: center;
	gap: 14px;
}
.wms-sb-timer-wrap .wms-tech-timer-ring {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}
.wms-sb-timer-wrap .wms-timer-text {
	position: absolute;
	font-size: 12px;
	font-weight: 700;
	color: #1E293B;
}
.wms-sb-timer-btns {
	display: flex;
	flex-direction: column;
	gap: 6px;
	flex: 1;
}
.wms-sb-timer-btns .wms-btn { width: 100%; justify-content: center; font-size: 12px; padding: 6px 10px; }
.wms-sb-timer-logged {
	margin-top: 8px;
	font-size: 12px;
	color: #64748B;
	text-align: center;
	padding-top: 8px;
	border-top: 1px solid #F1F5F9;
}

/* Customer card */
.wms-sb-customer {
	display: flex;
	align-items: center;
	gap: 10px;
}
.wms-sb-avatar {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: linear-gradient(135deg, #E8600A, #F59E0B);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}
.wms-sb-customer-name { font-size: 13px; font-weight: 600; color: #1E293B; }
.wms-sb-customer-email { font-size: 11px; color: #64748B; text-decoration: none; display: block; }
.wms-sb-customer-email:hover { color: #E8600A; }

/* Reported issue */
.wms-sb-issue-text {
	font-size: 12px;
	color: #475569;
	line-height: 1.6;
	margin: 0;
	background: #F8FAFC;
	border-radius: 6px;
	padding: 8px 10px;
	border-left: 3px solid #E8600A;
}

/* Warranty badge */
.wms-sb-warranty-badge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 12px;
	font-weight: 600;
	border-radius: 20px;
	padding: 4px 10px;
	margin-bottom: 4px;
}
.wms-sb-warranty-ok      { background: #ECFDF5; color: #059669; }
.wms-sb-warranty-warn    { background: #FFFBEB; color: #D97706; }
.wms-sb-warranty-expired { background: #FEF2F2; color: #DC2626; }
.wms-sb-warranty-date { font-size: 11px; color: #94A3B8; margin-top: 2px; }

/* Cost summary */
.wms-sb-cost-rows { display: flex; flex-direction: column; gap: 6px; }
.wms-sb-cost-row {
	display: flex;
	justify-content: space-between;
	font-size: 12px;
	color: #475569;
}
.wms-sb-cost-total {
	font-weight: 700;
	color: #1E293B;
	font-size: 13px;
	padding-top: 8px;
	margin-top: 2px;
	border-top: 1px solid #EFF2F7;
}

/* Responsive */
@media (max-width: 900px) {
	.wms-case-body { flex-direction: column; }
	.wms-case-sidebar { width: 100%; border-left: none; border-top: 1px solid #EFF2F7; }
	.wms-tc-bar-actions { flex-wrap: wrap; }
}

/* ── Workflow Stage Bar ── */
.wms-wf-stages {
	display: flex;
	align-items: center;
	padding: 14px 24px;
	background: #fff;
	border-bottom: 1px solid #EFF2F7;
	flex-shrink: 0;
	overflow-x: auto;
	scrollbar-width: none;
}
.wms-wf-stages::-webkit-scrollbar { display: none; }
.wms-wf-stage {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 5px;
	flex-shrink: 0;
}
.wms-wf-stage-dot {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 11px;
	font-weight: 700;
	transition: background 0.2s, border-color 0.2s;
}
.wms-wf-stage-pending .wms-wf-stage-dot {
	background: #F1F5F9;
	color: #94A3B8;
	border: 2px solid #E2E8F0;
}
.wms-wf-stage-active .wms-wf-stage-dot {
	background: #E8600A;
	color: #fff;
	border: 2px solid #E8600A;
	box-shadow: 0 0 0 4px rgba(232,96,10,0.15);
}
.wms-wf-stage-done .wms-wf-stage-dot {
	background: #D1FAE5;
	color: #059669;
	border: 2px solid #6EE7B7;
}
.wms-wf-stage-label {
	font-size: 11px;
	font-weight: 600;
	white-space: nowrap;
}
.wms-wf-stage-pending .wms-wf-stage-label { color: #94A3B8; }
.wms-wf-stage-active  .wms-wf-stage-label { color: #E8600A; }
.wms-wf-stage-done    .wms-wf-stage-label { color: #059669; }
.wms-wf-connector {
	flex: 1;
	height: 2px;
	min-width: 24px;
	margin: 0 4px;
	margin-bottom: 16px; /* align with dots */
	border-radius: 2px;
}
.wms-wf-connector-done    { background: #6EE7B7; }
.wms-wf-connector-pending { background: #E2E8F0; }

/* ── Workflow Footer ── */
.wms-wf-footer {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 20px;
	background: #fff;
	border-top: 1px solid #EFF2F7;
	flex-shrink: 0;
}
.wms-wf-advance-btn {
	padding: 8px 20px;
	font-size: 13px;
	border-radius: 8px;
}
.wms-wf-complete-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 14px;
	background: #ECFDF5;
	color: #059669;
	border: 1px solid #6EE7B7;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 600;
}
.wms-wf-footer .wms-btn-danger { margin-left: auto; }

/* ── Responsive ── */
@media (max-width: 900px) {
	.wms-tc-list-header { flex-direction: column; align-items: stretch; padding: 16px; }
	.wms-tc-search { width: 100%; }
	.wms-tc-tabs { padding: 0 16px; }
	.wms-tc-case-row { padding: 12px 16px; gap: 12px; }
	.wms-tc-back-bar { padding: 10px 16px; gap: 10px; }
	.wms-tc-back-bar-meta { margin-left: 0; }
	.wms-tc-back-bar-title { flex-wrap: wrap; }
	.wms-wf-stages { padding: 12px 16px; }
	.wms-wf-footer { flex-wrap: wrap; padding: 10px 16px; }
	.wms-wf-footer .wms-btn-danger { margin-left: 0; }
}

/* ── Tech Portal: Mobile Responsive ── */
@media (max-width: 900px) {
	/* Stack the two-column content grid */
	.wms-tech-content-grid { grid-template-columns: 1fr !important; }

	/* Tech main: allow page scroll on mobile */
	.wms-tech-main { height: auto !important; overflow: visible !important; }
	.wms-tc-wrap { overflow: visible !important; }
	.wms-tc-detail-page { overflow: visible !important; }
	.wms-tc-workspace { overflow: visible !important; }

	/* Chat area: fixed height on mobile */
	#wms-internal-notes-list { height: 320px !important; }

	/* Back-bar: wrap row 1 chips */
	.wms-tc-back-bar-title { font-size: 13px; }
}
@media (max-width: 600px) {
	/* Back-bar rows: stack vertically */
	.wms-tc-back-bar > div:first-child { flex-direction: column; align-items: flex-start !important; gap: 8px !important; }
	.wms-tc-back-bar > div:first-child > div[style*="margin-left:auto"] { margin-left: 0 !important; flex-wrap: wrap; }

	/* Row 2 action buttons: wrap */
	.wms-tc-back-bar > div:last-child { flex-wrap: wrap !important; gap: 6px !important; }
	.wms-tc-back-bar > div:last-child > div[style*="margin-left:auto"] { margin-left: 0 !important; }

	/* Case list rows: compact */
	.wms-tc-case-row { flex-direction: column; align-items: flex-start; gap: 8px; }
	.wms-tc-row-badge { align-self: flex-start; }

	/* Sidebar: hide on mobile, show hamburger (future) */
	.wms-dashboard { grid-template-columns: 1fr; }
	.wms-sidebar { display: none; }
	.wms-tech-main, .wms-main { margin-left: 0 !important; }
}

/* ── Tech Portal: right detail panel (hidden until a case is selected) ── */
.wms-inbox-detail {
	display: none;
	flex-direction: column;
	border-left: 1px solid var(--wms-border, #E2E8F0);
	overflow-y: auto;
	background: #FAFBFC;
}
.wms-inbox-wrap.wms-detail-open .wms-inbox-detail {
	display: flex;
}

/* Filter tabs — underline style */
.wms-inbox-filters {
	display: flex;
	gap: 0;
	padding: 0 16px;
	border-bottom: 1px solid #EFF2F7;
	flex-shrink: 0;
	overflow-x: auto;
	scrollbar-width: none;
}
.wms-inbox-filters::-webkit-scrollbar { display: none; }
.wms-inbox-filter {
	padding: 9px 12px;
	border-radius: 0;
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	white-space: nowrap;
	border: none;
	border-bottom: 2px solid transparent;
	margin-bottom: -1px;
	background: transparent;
	color: #64748B;
	transition: color 0.15s, border-color 0.15s;
}
.wms-inbox-filter:hover { background: transparent; color: #1E293B; }
.wms-inbox-filter.active {
	color: #E8600A;
	background: transparent;
	border-bottom-color: #E8600A;
	font-weight: 600;
}

/* Ticket list items */
.wms-inbox-items {
	padding: 6px 0;
}
.wms-inbox-item {
	padding: 13px 16px;
	gap: 11px;
	border-left: 3px solid transparent;
	border-bottom: 1px solid #F8FAFB;
	transition: background 0.15s, border-left-color 0.15s;
}
.wms-inbox-item:last-child { border-bottom: none; }
.wms-inbox-item:hover {
	background: #FAFBFD;
	box-shadow: none;
}
.wms-inbox-item.active {
	background: #FEF0E7;
	border-left-color: #EA5A00 !important;
	box-shadow: none;
}
.wms-inbox-item.active .wms-inbox-item-name {
	color: #C04A08;
}

/* Avatar — rounded square */
.wms-inbox-avatar {
	width: 38px;
	height: 38px;
	border-radius: 10px;
	font-size: 13px;
	font-weight: 700;
	flex-shrink: 0;
	transition: transform 0.15s;
}
.wms-inbox-item:hover .wms-inbox-avatar { transform: scale(1.06); }

/* Item text */
.wms-inbox-item-name {
	font-size: 13px;
	font-weight: 600;
	color: #0F172A;
}
.wms-inbox-item-time {
	font-size: 11px;
	color: #B0BAC9;
}
.wms-inbox-item-subject {
	font-size: 13px;
	font-weight: 500;
	color: #2D3A4A;
	margin-bottom: 3px;
}
.wms-inbox-item-preview {
	font-size: 12px;
	color: #94A3B8;
}
.wms-inbox-item-badges {
	display: flex;
	gap: 4px;
	margin-top: 5px;
}
.wms-inbox-item-badges .wms-badge-status {
	font-size: 10px;
	padding: 2px 8px;
	border-radius: 20px;
}

/* New Ticket button area */
.wms-inbox-list > div:last-child {
	padding: 12px 14px;
	border-top: 1px solid #EFF2F7;
	background: #fff;
}
#wms-new-ticket-btn {
	width: 100% !important;
	border-radius: 12px !important;
	padding: 11px 16px !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	letter-spacing: 0.01em !important;
	background: var(--wms-primary) !important;
	border-color: var(--wms-primary) !important;
	box-shadow: 0 3px 10px rgba(232,96,10,0.22) !important;
	transition: all 0.2s !important;
}
#wms-new-ticket-btn:hover {
	background: var(--wms-primary-hover) !important;
	box-shadow: 0 5px 16px rgba(232,96,10,0.35) !important;
	transform: translateY(-1px);
}

/* ── Center Panel — Chat ── */
.wms-inbox-chat {
	background: #fff;
	display: flex;
	flex-direction: column;
}

/* Chat header */
.wms-inbox-chat-header {
	padding: 14px 24px;
	border-bottom: 1px solid #EFF2F7;
	background: #fff;
	box-shadow: 0 2px 6px rgba(0,0,0,0.03);
	z-index: 1;
}
.wms-inbox-chat-header > div:first-child {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}
.wms-inbox-chat-header h3 {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	color: #0F172A;
	letter-spacing: -0.01em;
	line-height: 1.3;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.wms-inbox-chat-header .wms-chat-header-meta {
	font-size: 12px;
	color: #94A3B8;
	display: block;
	line-height: 1.4;
}
.wms-inbox-chat-header .wms-chat-actions {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-shrink: 0;
}

/* Status badge in header */
.wms-inbox-chat-header .wms-badge-status {
	padding: 4px 12px;
	font-size: 12px;
}

/* Show/Hide details toggle */
.wms-ctx-toggle {
	font-size: 12px;
	padding: 6px 14px;
	border-radius: 8px;
	border: 1.5px solid #E2E8F0;
	background: #F5F7FA;
	color: #64748B;
	cursor: pointer;
	font-family: var(--wms-font);
	font-weight: 600;
	transition: all 0.15s;
	white-space: nowrap;
	letter-spacing: 0.01em;
}
.wms-ctx-toggle:hover {
	background: #fff;
	border-color: #CBD5E1;
	color: #1E293B;
	box-shadow: 0 1px 5px rgba(0,0,0,0.07);
}

/* ── Messages Area ── */
.wms-inbox-messages {
	flex: 1;
	overflow-y: auto;
	padding: 20px 24px 12px;
	display: flex;
	flex-direction: column;
	gap: 4px;
	background: #F4F6F9;
	scroll-behavior: smooth;
}
/* Subtle scrollbar */
.wms-inbox-messages::-webkit-scrollbar { width: 4px; }
.wms-inbox-messages::-webkit-scrollbar-track { background: transparent; }
.wms-inbox-messages::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.12); border-radius: 2px; }

/* Date separator */
.wms-inbox-date-sep {
	font-size: 11px;
	font-weight: 600;
	color: #A0AABA;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin: 14px 0 8px;
	gap: 10px;
}
.wms-inbox-date-sep::before,
.wms-inbox-date-sep::after {
	background: #DDE3EC;
	height: 1px;
}

/* Message rows */
.wms-inbox-msg-row {
	max-width: 74%;
	gap: 9px;
	animation: wms-slideUp 0.2s ease both;
}

/* Message avatars */
.wms-inbox-msg-avatar {
	width: 30px;
	height: 30px;
	border-radius: 8px;
	font-size: 11px;
	font-weight: 700;
	flex-shrink: 0;
}
.wms-inbox-msg-avatar-customer { background: linear-gradient(135deg, #E8600A 0%, #F97316 100%); }
.wms-inbox-msg-avatar-support  { background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%); }

/* Bubble */
.wms-inbox-msg {
	padding: 10px 14px;
	border-radius: 14px;
	font-size: 14px;
	line-height: 1.6;
	box-shadow: 0 1px 4px rgba(0,0,0,0.05);
	word-break: break-word;
}
.wms-inbox-msg-sent {
	background: #EAF1FF;
	color: #1E293B;
	border-radius: 14px 14px 4px 14px;
	border: 1px solid rgba(59,130,246,0.1);
}
.wms-inbox-msg-received {
	background: #fff;
	border: 1px solid #E8EDF5;
	color: #1E293B;
	border-radius: 14px 14px 14px 4px;
	box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

/* Sender name */
.wms-inbox-msg-sender {
	font-size: 11px;
	font-weight: 600;
	color: #64748B;
	margin-bottom: 3px;
}
.wms-inbox-msg-sent .wms-inbox-msg-sender { color: #6B8FAE; }

/* Timestamp */
.wms-inbox-msg-time {
	font-size: 10px;
	color: #A0AABA;
	margin-top: 5px;
	opacity: 0.75;
	transition: opacity 0.2s;
}
.wms-inbox-msg-row:hover .wms-inbox-msg-time { opacity: 1; }
.wms-inbox-msg-sent .wms-inbox-msg-time { text-align: right; }

/* Attachment chips in messages */
.wms-inbox-msg-attachments {
	display: flex;
	flex-direction: column;
	gap: 5px;
	margin-top: 8px;
	padding-top: 8px;
	border-top: 1px solid rgba(0,0,0,0.06);
}
.wms-inbox-msg-attachments a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	border-radius: 8px;
	font-size: 12px;
	font-weight: 500;
	background: rgba(0,0,0,0.04);
	color: #475569;
	border: 1px solid rgba(0,0,0,0.06);
	text-decoration: none;
	transition: all 0.15s;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.wms-inbox-msg-sent .wms-inbox-msg-attachments a {
	background: rgba(59,130,246,0.07);
	color: #1D4ED8;
	border-color: rgba(59,130,246,0.12);
}
.wms-inbox-msg-attachments a:hover {
	background: rgba(0,0,0,0.08);
	transform: translateY(-1px);
	box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

/* ── Reply Composer ── */
.wms-inbox-reply {
	padding: 14px 20px 16px;
	border-top: 1px solid #EFF2F7;
	background: #fff;
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.wms-inbox-reply textarea {
	width: 100%;
	border: 1.5px solid #E2E8F0;
	border-radius: 12px;
	padding: 12px 16px;
	font-family: inherit;
	font-size: 14px;
	line-height: 1.5;
	color: #1E293B;
	background: #FAFBFD;
	resize: none;
	outline: none;
	min-height: 52px;
	max-height: 140px;
	box-sizing: border-box;
	transition: all 0.2s;
}
.wms-inbox-reply textarea:focus {
	border-color: #E8600A;
	background: #fff;
	box-shadow: 0 0 0 3px rgba(232,96,10,0.08);
}
.wms-inbox-reply textarea::placeholder { color: #A0AABA; }
.wms-inbox-reply-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

/* Attach button */
.wms-attach-btn.wms-btn {
	color: #64748B !important;
	background: #F1F5F9 !important;
	border: 1.5px solid transparent !important;
	padding: 7px 14px !important;
	border-radius: 9px !important;
	font-size: 13px !important;
	font-weight: 500 !important;
	display: inline-flex !important;
	align-items: center !important;
	gap: 5px !important;
	transition: all 0.15s !important;
}
.wms-attach-btn.wms-btn:hover {
	background: #E2E8F0 !important;
	color: #1E293B !important;
	box-shadow: none !important;
	transform: none !important;
}

/* Send button */
#wms-inbox-send-reply,
#wms-support-send-reply {
	padding: 9px 24px !important;
	font-size: 14px !important;
	border-radius: 10px !important;
	font-weight: 600 !important;
	letter-spacing: 0.01em !important;
	background: var(--wms-primary) !important;
	border-color: var(--wms-primary) !important;
	box-shadow: 0 2px 8px rgba(232,96,10,0.22) !important;
	transition: all 0.2s !important;
}
#wms-inbox-send-reply:hover,
#wms-support-send-reply:hover {
	background: var(--wms-primary-hover) !important;
	box-shadow: 0 4px 14px rgba(232,96,10,0.35) !important;
	transform: translateY(-1px) !important;
}

/* ── Right Context Panel ── */
.wms-inbox-context {
	background: #F9FAFB;
	border-left: 1px solid #EFF2F7;
	padding: 18px 16px;
	overflow-y: auto;
}
.wms-inbox-context::-webkit-scrollbar { width: 3px; }
.wms-inbox-context::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.1); border-radius: 2px; }

.wms-context-section {
	margin-bottom: 22px;
}
.wms-context-section h4 {
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.7px;
	color: #94A3B8;
	margin: 0 0 10px;
}
.wms-context-card {
	background: #fff;
	border: 1px solid #EEF2F7;
	border-radius: 12px;
	padding: 12px 14px;
	box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.wms-context-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 6px 0;
	font-size: 13px;
	border-bottom: 1px solid #F5F7FA;
}
.wms-context-row:last-child { border-bottom: none; }
.wms-context-row .label {
	font-size: 12px;
	color: #94A3B8;
	flex-shrink: 0;
}
.wms-context-row .value {
	font-size: 13px;
	font-weight: 600;
	color: #0F172A;
	text-align: right;
	word-break: break-all;
}

/* Timeline */
.wms-timeline { padding-left: 22px; }
.wms-timeline::before {
	left: 7px;
	background: #DDE3EC;
	border-radius: 2px;
}
.wms-timeline-step {
	font-size: 12px;
	font-weight: 500;
	color: #94A3B8;
	padding-bottom: 16px;
}
.wms-timeline-step:last-child { padding-bottom: 0; }
.wms-timeline-step::before {
	left: -19px;
	top: 3px;
	width: 12px;
	height: 12px;
	border-color: #DDE3EC;
	background: #fff;
	border-width: 2px;
}
.wms-timeline-step.completed { color: #10B981; font-weight: 500; }
.wms-timeline-step.completed::before {
	background: #10B981;
	border-color: #10B981;
}
.wms-timeline-step.active {
	color: #E8600A;
	font-weight: 700;
}
.wms-timeline-step.active::before {
	background: #E8600A;
	border-color: #E8600A;
	box-shadow: 0 0 0 3px rgba(232,96,10,0.14);
}

/* ── Empty State ── */
.wms-inbox-empty {
	padding: 60px 32px;
}
.wms-inbox-empty svg {
	margin-bottom: 20px;
	opacity: 0.14;
}
.wms-inbox-empty h3 {
	font-size: 18px;
	font-weight: 600;
	color: #475569;
	margin: 0 0 8px;
}
.wms-inbox-empty p {
	font-size: 14px;
	color: #94A3B8;
	line-height: 1.6;
	margin: 0;
}

/* ── Drop-zone highlight ── */
.wms-inbox-reply.wms-drop-active {
	background: rgba(232,96,10,0.03);
	border-top-color: var(--wms-primary);
}
.wms-inbox-reply.wms-drop-active textarea {
	border-color: var(--wms-primary);
	border-style: dashed;
}

/* ── Responsive override ── */
@media (max-width: 1200px) {
	.wms-inbox-layout { grid-template-columns: 260px 1fr; }
	.wms-inbox-layout.wms-ctx-open { grid-template-columns: 260px 1fr; }
	.wms-inbox-context, .wms-inbox-layout.wms-ctx-open .wms-inbox-context { display: none !important; }
	.wms-ctx-toggle { display: none; }
}
@media (max-width: 900px) {
	.wms-inbox-layout { grid-template-columns: 1fr; height: auto; min-height: calc(100vh - 72px); }
	.wms-inbox-list { max-height: none; border-right: none; border-bottom: 1px solid #EFF2F7; }
	.wms-inbox-chat { min-height: 400px; }
}
