:root {
	--app-ink: #172320;
	--app-muted: #6b7874;
	--app-line: #dfe7e3;
	--app-surface: #ffffff;
	--app-canvas: #f5f7f6;
	--app-accent: #1f6f66;
	--app-accent-strong: #18584f;
	--app-accent-soft: #e8f1ef;
	--app-danger: #b44747;
	--app-radius: 8px;
	--app-radius-tight: 5px;
}

html, body {
	background: var(--app-canvas);
	color: var(--app-ink);
	font-feature-settings: "tnum" 1, "cv11" 1;
	font-variant-numeric: tabular-nums;
}

body, input, select, textarea, button {
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { color: var(--app-accent); }
a:hover { color: var(--app-accent-strong); }

.body { background: var(--app-canvas); }
.content-body, .content-body-modern { background: var(--app-canvas); }
.content-body { padding: 28px 30px 48px; }

.card, .card-modern, .card-modern-alt-padding, .widget-user-info {
	background: var(--app-surface);
	border: 1px solid var(--app-line) !important;
	border-radius: var(--app-radius) !important;
	box-shadow: none !important;
}
.card-header, .card-modern .card-header {
	background: transparent;
	background-image: none !important;
	border-bottom: 1px solid var(--app-line);
	padding: 18px 22px;
}
.card-title { color: var(--app-ink); font-size: 1rem; letter-spacing: -.01em; }
.card-body { padding: 22px; }
.card-modern .card-body { box-shadow: none !important; }
.card-modern .bg-light, .card-body.bg-light { background: #fbfcfc !important; }
.content-body .icon-inline { background: transparent !important; color: var(--app-accent) !important; border-radius: 0 !important; }
.content-body .widget-user-acrostic { background: transparent !important; color: var(--app-accent) !important; border: 1px solid var(--app-line); border-radius: var(--app-radius-tight); }
.content-body .badge { background-image: none !important; border-radius: 999px; }
.content-body .btn-primary, .login-submit { background: var(--app-accent); background-image: none !important; border: 1px solid var(--app-accent); color: #fff; border-radius: var(--app-radius-tight); }
.content-body .btn-primary:hover, .login-submit:hover { background: var(--app-accent-strong); border-color: var(--app-accent-strong); }
.content-body .btn-light, .content-body .btn-default { background: #fff; border: 1px solid var(--app-line); color: var(--app-ink); border-radius: var(--app-radius-tight); }
.content-body .btn-light:hover, .content-body .btn-default:hover { background: var(--app-accent-soft); color: var(--app-accent-strong); }
.form-control, .form-control-modern, .select-style-1, .input-group-text { border-color: var(--app-line); border-radius: var(--app-radius-tight); box-shadow: none !important; }
.form-control:focus, .form-control-modern:focus { border-color: var(--app-accent); box-shadow: 0 0 0 3px rgba(31,111,102,.12) !important; }
.password-input-wrap { position: relative; }
.password-input-wrap > input { padding-right: 46px !important; }
.password-toggle { align-items: center; background: transparent; border: 0; color: var(--app-muted); cursor: pointer; display: inline-flex; font-size: 1.15rem; height: 36px; justify-content: center; padding: 0; position: absolute; right: 7px; top: 50%; transform: translateY(-50%); width: 36px; z-index: 2; }
.password-toggle:hover, .password-toggle:focus-visible { color: var(--app-accent); }
.password-toggle:focus-visible { outline: 2px solid rgba(31,111,102,.35); outline-offset: 1px; }
.table { color: var(--app-ink); }
.table thead th { color: var(--app-muted); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; border-bottom: 1px solid var(--app-line); }
.table td { border-bottom: 1px solid #edf1ef; vertical-align: middle; }
.table-striped tbody tr:nth-of-type(odd) { background: #fbfcfc; }
.ecommerce-status { border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .04em; padding: 5px 9px; }
.ecommerce-status.completed { background: var(--app-accent-soft); color: var(--app-accent-strong); }
.ecommerce-status.on-hold { background: #fff4e5; color: #8b5a1a; }
.header, .sidebar-left, .sidebar-right { background: #fff; border-color: var(--app-line); }
.header { box-shadow: none !important; }
.header .logo.brand-lockup, .header.header-nav-menu .logo.brand-lockup { align-items: center; background: #fff; display: inline-flex; gap: 9px; height: 70px; left: 0; margin: 0; padding: 0 18px; position: absolute; text-decoration: none; top: 0; }
.header .logo.brand-lockup:after { display: none !important; }
.brand-mark { display: block; height: 34px; object-fit: contain; width: 34px; }
.brand-wordmark { color: var(--app-ink); font-size: 1.05rem; font-weight: 760; letter-spacing: -.045em; line-height: 1; }
.brand-lockup:hover .brand-wordmark { color: var(--app-accent); }
.nav-main > li > a, .nav-main .nav-children li a { color: var(--app-muted); }
.nav-main > li > a:hover, .nav-main > li.active > a, .nav-main .nav-children li a:hover { color: var(--app-accent); background: var(--app-accent-soft); }
.nav-group-label { color: #9aa8a4; font-size: .66rem; letter-spacing: .1em; }
.profile-picture-as-text { background: var(--app-accent-soft); color: var(--app-accent-strong); border-radius: 50%; }
.cartItemList { max-height: 320px; overflow-y: auto; }
.cartItemList li { border-bottom: 1px solid var(--app-line); }

/* Premium application top bar */
:root { --app-sidebar-width: 220px; }
.header.app-topbar {
	align-items: center;
	background: #fff !important;
	border-bottom: 0 !important;
	border-top: 0 !important;
	display: flex;
	height: 70px;
	padding: 0 22px 0 0;
	position: absolute;
}
.header.app-topbar::after { background: linear-gradient(90deg, var(--app-accent-strong) 0%, var(--app-accent) 55%, #9bcfc5 100%); bottom: -1px; content: ''; height: 2px; left: 0; pointer-events: none; position: absolute; right: 0; }
.header.app-topbar .app-topbar-brand-area {
	align-items: center;
	display: flex;
	flex: 0 0 var(--app-sidebar-width);
	height: 70px;
	position: relative !important;
	width: var(--app-sidebar-width);
}
.header.app-topbar .logo.brand-lockup {
	align-items: center;
	display: inline-flex !important;
	flex: 1 1 auto;
	height: 70px;
	padding: 0 20px;
	position: relative !important;
	top: auto;
}
.app-topbar-context { display: grid; gap: 3px; min-width: 0; }
.app-topbar-context span, .topbar-menu-overline { color: var(--app-muted); font-size: .63rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.app-topbar-context strong { color: var(--app-ink); font-size: .86rem; font-weight: 720; letter-spacing: -.01em; }
.header.app-topbar .header-right.app-topbar-actions {
	align-items: center;
	display: flex;
	float: none !important;
	gap: 14px;
	height: 100%;
	margin-left: auto;
}
.app-topbar-menu-slot { display: none; }
.topbar-control, .topbar-user-trigger { align-items: center; color: var(--app-ink); display: inline-flex; text-decoration: none; }
.topbar-control:hover, .topbar-control:focus-visible, .topbar-user-trigger:hover, .topbar-user-trigger:focus-visible { color: var(--app-accent-strong); text-decoration: none; }
.topbar-control { border: 1px solid transparent; border-radius: var(--app-radius-tight); gap: 10px; min-height: 42px; padding: 5px 9px; transition: background .18s ease, border-color .18s ease; }
.topbar-control:hover, .topbar-control:focus-visible { background: #f7faf9; border-color: var(--app-line); }
.topbar-control-icon { align-items: center; color: var(--app-accent); display: inline-flex; font-size: 1.35rem; justify-content: center; position: relative; }
.topbar-control-copy { display: grid; gap: 2px; min-width: 0; }
.topbar-control-copy small { color: var(--app-muted); font-size: .62rem; line-height: 1; }
.topbar-control-copy strong { color: var(--app-ink); font-size: .75rem; font-variant-numeric: tabular-nums; font-weight: 720; line-height: 1.1; white-space: nowrap; }
.topbar-cart-badge { align-items: center; background: var(--app-accent); border: 2px solid #fff; border-radius: 999px; color: #fff; display: inline-flex; font-size: .58rem; font-weight: 750; height: 17px; justify-content: center; line-height: 1; min-width: 17px; padding: 0 4px; position: absolute; right: -8px; top: -7px; }
.topbar-divider { background: var(--app-line); display: block; height: 28px; width: 1px; }
.topbar-userbox { margin: 0; position: relative; }
.topbar-user-trigger { gap: 9px; min-height: 42px; padding: 4px 0 4px 4px; }
.topbar-user-trigger .profile-picture-as-text { align-items: center; display: inline-flex; flex: 0 0 34px; font-size: .72rem; height: 34px; justify-content: center; width: 34px; }
.topbar-user-chevron { color: var(--app-muted); font-size: .62rem; margin-left: 2px; }
.topbar-cart-menu, .topbar-user-menu { background: #fff; border: 1px solid var(--app-line); border-radius: var(--app-radius); box-shadow: 0 16px 40px rgba(20, 46, 41, .14); margin-top: 10px; padding: 0; }
.topbar-cart-menu { min-width: 340px; right: 0 !important; }
.topbar-cart-menu-header { align-items: start; border-bottom: 1px solid var(--app-line); display: flex; justify-content: space-between; padding: 17px 18px 14px; }
.topbar-cart-menu-header > div { display: grid; gap: 4px; }
.topbar-cart-menu-header strong { color: var(--app-ink); font-size: .92rem; font-weight: 750; }
.topbar-cart-count { align-items: center; background: var(--app-accent-soft); border-radius: 999px; color: var(--app-accent-strong); display: inline-flex; font-size: .68rem; font-variant-numeric: tabular-nums; font-weight: 750; height: 24px; justify-content: center; min-width: 24px; padding: 0 7px; }
.topbar-cart-agent { align-items: center; color: var(--app-muted); display: inline-flex; font-size: .7rem; gap: 5px; }
.topbar-cart-agent i { color: var(--app-accent); font-size: .9rem; }
.topbar-cart-menu-body { padding: 0 18px; }
.topbar-cart-list { margin: 0; max-height: 248px; padding: 0; }
.topbar-cart-list .sale-cart-line { padding: 11px 0; }
.topbar-cart-empty { padding: 16px 0 4px; }
.topbar-cart-menu-footer { border-top: 1px solid var(--app-line); padding: 13px 18px 17px; }
.topbar-cart-subtotal { align-items: center; display: flex; justify-content: space-between; margin-bottom: 12px; }
.topbar-cart-subtotal span { color: var(--app-muted); font-size: .74rem; }
.topbar-cart-subtotal strong { color: var(--app-ink); font-size: 1rem; font-variant-numeric: tabular-nums; }
.topbar-cart-checkout { align-items: center; display: flex; font-size: .76rem; gap: 6px; justify-content: center; min-height: 39px; }
.header.app-topbar .topbar-userbox .topbar-user-menu { left: auto !important; min-width: 260px !important; padding: 0 !important; right: 0 !important; top: calc(100% + 8px) !important; transform: none !important; width: 260px !important; z-index: 1030; }
.topbar-user-menu-header { border-bottom: 1px solid var(--app-line); display: grid; gap: 4px; padding: 15px 17px 13px; }
.topbar-user-menu-header strong { color: var(--app-ink); font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-user-menu-header small { color: var(--app-muted); font-size: .68rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-user-menu > ul { margin: 0; padding: 7px; }
.topbar-user-menu > ul a { align-items: center; border-radius: var(--app-radius-tight); color: var(--app-ink); display: flex; font-size: .76rem; gap: 9px; padding: 9px 10px; text-decoration: none; }
.topbar-user-menu > ul a:hover, .topbar-user-menu > ul a:focus-visible { background: var(--app-accent-soft); color: var(--app-accent-strong); }
.topbar-user-menu > ul a i { color: var(--app-accent); font-size: 1rem; }
.sidebar-left .nav-main { margin-right: 0; padding: 0 10px 28px; }
.sidebar-left .nav-main li > a { border-radius: var(--app-radius-tight); color: var(--app-muted) !important; margin: 2px 0; }
.sidebar-left .nav-main li > a i { color: var(--app-muted) !important; }
.sidebar-left .nav-main li > a:hover, .sidebar-left .nav-main li > a:focus, .sidebar-left .nav-main li > a.active { background: var(--app-accent-soft) !important; color: var(--app-accent-strong) !important; }
.sidebar-left .nav-main li > a:hover i, .sidebar-left .nav-main li > a:focus i, .sidebar-left .nav-main li > a.active i { color: var(--app-accent) !important; }
.sidebar-left .nav-main li.nav-group-label { color: #9aa8a4; font-size: .63rem; font-weight: 750; letter-spacing: .1em; }
.sidebar-left .sidebar-nav-footer { background: #1d2127; border-top: 1px solid rgba(199, 211, 207, .16); bottom: 0; box-sizing: border-box; height: 64px; left: 0; padding: 10px 10px 12px; position: absolute; right: 0; z-index: 3; }
.sidebar-left .sidebar-nav-logout { align-items: center; border-radius: var(--app-radius-tight); color: #c7d3cf !important; display: flex; font-size: .8rem; gap: 9px; margin: 0; min-height: 42px; padding: 10px 18px; text-decoration: none; }
.sidebar-left .sidebar-nav-logout i { color: #d38b8b !important; font-size: 1.35rem; width: 1.1em; }
.sidebar-left .sidebar-nav-logout:hover, .sidebar-left .sidebar-nav-logout:focus-visible { background: rgba(180, 71, 71, .16) !important; color: #f2c4c4 !important; }
.sidebar-left .sidebar-nav-logout:hover i, .sidebar-left .sidebar-nav-logout:focus-visible i { color: #f0a5a5 !important; }
.sidebar-left .sidebar-header .sidebar-toggle { background: #fff !important; border-bottom: 1px solid var(--app-line); color: var(--app-muted) !important; }
.sidebar-left .sidebar-header .sidebar-toggle i { color: inherit !important; }
html.modern .sidebar-left .nav-main li > a { color: #c7d3cf !important; }
html.modern .sidebar-left .nav-main li > a i { color: #a9bbb5 !important; }
html.modern .sidebar-left .nav-main li.nav-group-label { color: #e2ebe8 !important; }
html.modern .sidebar-left .nav-main li > a:hover, html.modern .sidebar-left .nav-main li > a:focus, html.modern .sidebar-left .nav-main li > a.active { color: var(--app-accent-strong) !important; }
html.modern .sidebar-left, html.modern .sidebar-left .nano, html.modern .sidebar-left .nano-content { background: #1d2127 !important; }
html.modern .sidebar-left .sidebar-header { background: #1d2127 !important; }
html.modern .sidebar-left .sidebar-header .sidebar-toggle { background: #1d2127 !important; border-bottom-color: #1d2127; color: #c7d3cf !important; }
html.modern .sidebar-left .nav-main li > a:hover i, html.modern .sidebar-left .nav-main li > a:focus i, html.modern .sidebar-left .nav-main li > a.active i { color: var(--app-accent) !important; }
html.modern .sidebar-right, html.modern .sidebar-right .nano, html.modern .sidebar-right .nano-content { background: #fff !important; }
html.modern .sidebar-right { border-left: 1px solid var(--app-line); }
.sidebar-right .sidebar-widget h6 { color: var(--app-ink); }
.sidebar-right .drawer-task a { color: var(--app-ink) !important; }
.sidebar-right .drawer-task-copy strong { color: var(--app-ink); }
.sidebar-right .drawer-task-copy small { color: var(--app-muted); }

/* Keep the compact breadcrumb row clear of vendor page-header offsets. */
.page-header.app-breadcrumb-header.page-header-left-inline-breadcrumb {
	background: transparent !important;
	height: auto !important;
	margin: 0 0 18px !important;
	min-height: 0 !important;
	padding: 0 0 8px !important;
}
.page-header.app-breadcrumb-header .breadcrumbs { line-height: 1.35 !important; }
.page-header.app-breadcrumb-header .right-wrapper { padding-left: 0 !important; }
.page-header.app-breadcrumb-header .sidebar-right-toggle { height: 30px !important; margin: 0 !important; width: 30px !important; }
.page-header.app-breadcrumb-header .sidebar-right-toggle i { line-height: 1 !important; }

/* Tighter desktop navigation footprint */
@media only screen and (min-width: 768px) {
	html.modern.fixed .sidebar-left { width: var(--app-sidebar-width) !important; }
	html.modern.fixed .sidebar-left { box-sizing: border-box; max-width: var(--app-sidebar-width) !important; min-width: var(--app-sidebar-width) !important; }
	html.modern.fixed .content-body { margin-left: var(--app-sidebar-width) !important; }
	html.modern.fixed .page-header { left: var(--app-sidebar-width) !important; }
	html.modern.fixed.sidebar-left-collapsed .sidebar-left { width: 73px !important; }
	html.modern.fixed.sidebar-left-collapsed .sidebar-left { max-width: 73px !important; min-width: 73px !important; }
	html.modern.fixed.sidebar-left-collapsed .content-body { margin-left: 73px !important; }
	html.modern.fixed.sidebar-left-collapsed .page-header { left: 73px !important; }
	/* Keep the desktop rail compact and give its navigation an independent scroll region. */
	html.modern.fixed .sidebar-left { bottom: 0 !important; overflow: hidden !important; top: 70px !important; z-index: 1022 !important; }
	html.modern.fixed .sidebar-left::before { background: #1d2127; content: ''; height: 3px; left: 0; position: absolute; right: 0; top: -2px; z-index: 1; }
	html.modern.fixed .sidebar-left > .nano { bottom: 64px !important; height: auto !important; left: 0 !important; overflow: hidden !important; position: absolute !important; right: 0 !important; top: 50px !important; width: 100% !important; }
	html.modern.fixed .sidebar-left > .nano > .nano-content { bottom: 0 !important; height: auto !important; max-height: none !important; overflow-x: hidden !important; overflow-y: auto !important; right: 0 !important; top: 0 !important; scrollbar-color: rgba(170, 190, 184, .72) transparent; scrollbar-width: thin; }
	html.modern.fixed .sidebar-left > .nano > .nano-content::-webkit-scrollbar { width: 7px; }
	html.modern.fixed .sidebar-left > .nano > .nano-content::-webkit-scrollbar-track { background: transparent; }
	html.modern.fixed .sidebar-left > .nano > .nano-content::-webkit-scrollbar-thumb { background: rgba(170, 190, 184, .72); border-radius: 999px; }
	html.modern.fixed .sidebar-left > .nano > .nano-pane { right: 2px !important; width: 5px !important; }
	html.modern.fixed .sidebar-left > .nano > .nano-pane > .nano-slider { background: rgba(170, 190, 184, .72) !important; border-radius: 999px; }
	.header.app-topbar .app-desktop-sidebar-toggle { align-items: center; background: transparent; border: 0; border-left: 1px solid var(--app-line); color: var(--app-muted); display: inline-flex !important; flex: 0 0 46px; height: 70px; justify-content: center; margin: 0; padding: 0; width: 46px; }
	.header.app-topbar .app-desktop-sidebar-toggle:hover, .header.app-topbar .app-desktop-sidebar-toggle:focus-visible { background: var(--app-accent-soft); color: var(--app-accent-strong); }
	html.modern.fixed .sidebar-left .sidebar-header .sidebar-toggle { display: none !important; }
	html.modern.fixed.sidebar-left-collapsed .sidebar-left .sidebar-nav-logout { justify-content: center; padding-left: 0; padding-right: 0; }
	html.modern.fixed.sidebar-left-collapsed .sidebar-left .sidebar-nav-logout span { display: none; }
	html.sidebar-left-collapsed .app-topbar-brand-area { flex-basis: 73px; width: 73px; }
	html.sidebar-left-collapsed .app-topbar .brand-lockup { display: none !important; }
	html.fixed .sidebar-left { top: 70px; }
	html.fixed .inner-wrapper { padding-top: 70px; }
	html.modern .sidebar-left .sidebar-header { background: #1d2127 !important; height: 50px !important; }
	html.modern .sidebar-left .sidebar-header .sidebar-toggle { background: #1d2127 !important; height: 50px !important; top: 0 !important; }
	html.modern ul.nav-main > li > a { padding: 10px 18px; }
	html.modern ul.nav-main li.nav-group-label { padding-left: 18px; padding-right: 18px; }
	html.modern ul.nav-main li > a { font-size: .8rem; }
}
@media (max-width: 991.98px) and (min-width: 768px) {
	.app-topbar-context { display: none; }
	.topbar-control-copy { display: none; }
	.header.app-topbar .header-right.app-topbar-actions { gap: 8px; }
	.topbar-control { padding-left: 7px; padding-right: 7px; }
}
@media (min-width: 576px) and (max-width: 767.98px) {
	.app-topbar-context { display: grid !important; flex: 1 1 auto; margin-left: 14px; min-width: 0; }
	.app-topbar-context span { font-size: .56rem; }
	.app-topbar-context strong { font-size: .75rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
@media (max-width: 767.98px) {
	.sidebar-left > .nano > .nano-content { padding-bottom: 72px !important; }
	.header.app-topbar {
		height: 58px !important;
		min-height: 58px;
		padding: 0 12px;
		position: fixed !important;
		top: 0;
		z-index: 1021;
	}
	.header.app-topbar .app-topbar-brand-area {
		display: none !important;
		height: 58px;
		width: auto;
	}
	.header.app-topbar .logo.brand-lockup { display: none !important; }
	.header.app-topbar .header-right.app-topbar-actions { flex: 0 0 auto; gap: 8px; height: 58px; margin-left: auto !important; margin-top: 0 !important; width: auto !important; }
	.app-topbar-context, .topbar-control-copy, .topbar-divider { display: none; }
	.header.app-topbar .topbar-userbox { display: block !important; flex: 0 0 auto; margin: 0; order: 1; }
	.topbar-cart { flex: 0 0 auto; order: 2; }
	.header.app-topbar .topbar-user-trigger .profile-picture-as-text { display: inline-flex !important; }
	.topbar-control { min-height: 38px; padding: 4px 7px; }
	.topbar-control-icon { font-size: 1.25rem; }
	.topbar-user-trigger { padding-left: 0; }
	.topbar-user-trigger .profile-picture-as-text { flex-basis: 31px; height: 31px; width: 31px; }
	.topbar-user-chevron { display: none; }
	.topbar-cart-menu, .topbar-user-menu { margin-top: 7px; max-width: calc(100vw - 24px); }
	.topbar-cart-menu { min-width: min(340px, calc(100vw - 24px)); }
	.header.app-topbar .topbar-userbox .topbar-user-menu { min-width: min(260px, calc(100vw - 24px)) !important; width: min(260px, calc(100vw - 24px)) !important; }
	.header.app-topbar + .inner-wrapper { padding-top: 58px !important; }
	.header.app-topbar .app-topbar-menu-slot { align-items: center; display: flex; flex: 0 0 40px; height: 58px; order: 0; }
	.header.app-topbar .app-topbar-menu-slot .app-topbar-menu-toggle { align-items: center; background: transparent; border: 0; border-right: 1px solid var(--app-line); color: var(--app-muted); display: inline-flex; font-size: 1rem; height: 34px; justify-content: center; margin: 0 10px 0 0; padding: 0 10px 0 0; position: static !important; right: auto !important; top: auto !important; width: 40px; }
	.header.app-topbar .app-topbar-menu-slot .app-topbar-menu-toggle:hover, .header.app-topbar .app-topbar-menu-slot .app-topbar-menu-toggle:focus-visible { color: var(--app-accent); }
	.header.app-topbar .app-topbar-context { order: 1; }
	.header.app-topbar .header-right.app-topbar-actions { order: 2; }
	.header.app-topbar .topbar-userbox { left: auto !important; position: relative !important; right: auto !important; }
	.header.app-topbar .topbar-userbox .topbar-user-menu { left: auto !important; position: fixed !important; right: 12px !important; top: 66px !important; transform: none !important; }
}
.drawer-widget-intro { color: var(--app-muted); font-size: .74rem; line-height: 1.45; margin: -2px 0 14px; }
.drawer-task-list { display: grid; gap: 8px; list-style: none; margin: 0; padding: 0; }
.drawer-task { border: 1px solid var(--app-line); border-radius: var(--app-radius-tight); margin: 0; }
.drawer-task a { align-items: center; color: var(--app-ink); display: flex; gap: 9px; padding: 10px; text-decoration: none; }
.drawer-task a:hover { background: var(--app-accent-soft); color: var(--app-ink); }
.drawer-task-icon { align-items: center; border: 1px solid var(--app-line); border-radius: 4px; color: var(--app-accent); display: inline-flex; flex: 0 0 28px; height: 28px; justify-content: center; }
.drawer-task-warning .drawer-task-icon { color: #8b5a1a; }
.drawer-task-copy { display: grid; gap: 2px; min-width: 0; }
.drawer-task-copy strong { font-size: .74rem; font-weight: 700; }
.drawer-task-copy small { color: var(--app-muted); font-size: .66rem; line-height: 1.35; }
.drawer-task-arrow { color: var(--app-muted); margin-left: auto; }
.drawer-task-empty { border: 1px dashed var(--app-line); color: var(--app-muted); font-size: .74rem; line-height: 1.45; margin: 0; padding: 13px 11px; }

/* Sales workspace */
.sale-page { max-width: 1640px; }
.sale-page-heading { margin-bottom: 22px; }
.sale-page-status { align-items: center; border: 1px solid var(--app-line); color: var(--app-muted); display: inline-flex; flex: 0 0 auto; font-size: .75rem; gap: 8px; padding: 10px 12px; }
.sale-toolbar-card { align-items: end; background: #fff; border: 1px solid var(--app-line); border-radius: var(--app-radius); display: grid; gap: 26px; grid-template-columns: minmax(190px, .65fr) minmax(0, 2fr); margin-bottom: 18px; padding: 20px 22px; }
.sale-toolbar-context { display: grid; gap: 5px; }
.sale-toolbar-context strong { color: var(--app-ink); font-size: 1rem; font-weight: 750; }
.sale-toolbar-context small { color: var(--app-muted); font-size: .74rem; line-height: 1.4; }
.sale-toolbar-overline { color: var(--app-accent); display: block; font-size: .66rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.sale-toolbar-controls { align-items: end; display: grid; gap: 12px; grid-template-columns: minmax(180px, .8fr) minmax(240px, 1.2fr) auto; }
.sale-agent-control, .sale-search-form { display: grid; gap: 6px; }
.sale-agent-control label, .sale-search-form label { color: var(--app-muted); font-size: .68rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.sale-search-form .input-group { display: flex; }
.sale-search-form .form-control { min-height: 42px; }
.sale-search-form .btn { min-width: 44px; }
.sale-add-product { align-items: center; display: inline-flex; gap: 7px; justify-content: center; min-height: 42px; white-space: nowrap; }
.sale-layout { align-items: start; display: grid; gap: 18px; grid-template-columns: 212px minmax(0, 1fr) 300px; }
.sale-filter-panel, .sale-catalog, .sale-checkout-card { background: #fff; border: 1px solid var(--app-line); border-radius: var(--app-radius); }
.sale-filter-panel { padding: 18px 14px; }
.sale-filter-heading, .sale-catalog-header, .sale-checkout-heading { align-items: start; display: flex; justify-content: space-between; }
.sale-filter-heading { border-bottom: 1px solid var(--app-line); margin-bottom: 8px; padding: 0 4px 15px; }
.sale-filter-heading h2, .sale-catalog-header h2, .sale-checkout-heading h2 { color: var(--app-ink); font-size: 1rem; font-weight: 750; letter-spacing: -.02em; margin: 5px 0 0; }
.sale-filter-count, .sale-cart-count { align-items: center; background: var(--app-accent-soft); border-radius: 999px; color: var(--app-accent-strong); display: inline-flex; font-size: .67rem; font-variant-numeric: tabular-nums; height: 24px; justify-content: center; min-width: 24px; padding: 0 7px; }
.sale-category-list { display: grid; gap: 3px; }
.sale-category-list a { align-items: center; border-radius: var(--app-radius-tight); color: var(--app-muted); display: flex; font-size: .76rem; gap: 8px; justify-content: space-between; padding: 9px 8px; text-decoration: none; }
.sale-category-list a:hover, .sale-category-list a.is-active { background: var(--app-accent-soft); color: var(--app-accent-strong); }
.sale-category-list a small { color: inherit; font-size: .68rem; font-variant-numeric: tabular-nums; }
.sale-filter-note { align-items: start; border-top: 1px solid var(--app-line); color: var(--app-muted); display: flex; font-size: .68rem; gap: 7px; line-height: 1.4; margin-top: 17px; padding: 15px 4px 0; }
.sale-filter-note i { color: var(--app-accent); font-size: .95rem; }
.sale-catalog { min-width: 0; padding: 20px; }
.sale-catalog-header { align-items: end; border-bottom: 1px solid var(--app-line); margin-bottom: 18px; padding-bottom: 15px; }
.sale-results { color: var(--app-muted); font-size: .73rem; font-variant-numeric: tabular-nums; }
.sale-product-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.sale-product-card { background: #fff; border: 1px solid var(--app-line); border-radius: var(--app-radius-tight); min-width: 0; overflow: hidden; transition: border-color .18s ease, transform .18s ease; }
.sale-product-card:hover { border-color: #a8c6bf; transform: translateY(-2px); }
.sale-product-media { background: #f4f8f6; min-height: 164px; overflow: hidden; position: relative; }
.sale-product-image-link { align-items: center; display: flex; height: 164px; justify-content: center; }
.sale-product-image { height: 100%; object-fit: contain; padding: 15px; transition: transform .18s ease; width: 100%; }
.sale-product-card:hover .sale-product-image { transform: scale(1.035); }
.sale-stock-badge { background: #fff; border: 1px solid #c7ddd7; border-radius: 999px; color: var(--app-accent-strong); font-size: .65rem; font-weight: 700; left: 9px; padding: 4px 7px; position: absolute; top: 9px; }
.sale-stock-badge.is-low { border-color: #e4c796; color: #8b5a1a; }
.sale-edit-link { align-items: center; background: #fff; border: 1px solid var(--app-line); border-radius: 50%; color: var(--app-muted); display: inline-flex; height: 28px; justify-content: center; position: absolute; right: 9px; text-decoration: none; top: 9px; width: 28px; }
.sale-edit-link:hover { color: var(--app-accent); }
.sale-product-body { display: grid; gap: 7px; padding: 14px; }
.sale-product-category { color: var(--app-muted); font-size: .65rem; font-weight: 700; letter-spacing: .07em; text-decoration: none; text-transform: uppercase; }
.sale-product-body h3 { font-size: .87rem; line-height: 1.3; margin: 0; min-height: 34px; }
.sale-product-body h3 a { color: var(--app-ink); text-decoration: none; }
.sale-product-body h3 a:hover { color: var(--app-accent); }
.sale-product-footer { align-items: end; display: grid; gap: 12px; grid-template-columns: 1fr; }
.sale-product-price { color: var(--app-ink); font-size: .94rem; font-variant-numeric: tabular-nums; }
.sale-quantity-control { display: grid; grid-template-columns: minmax(0, 1fr) 34px; }
.sale-quantity-control .form-control { font-size: .72rem; min-height: 34px; min-width: 0; }
.sale-quantity-control button { align-items: center; background: var(--app-accent); border: 1px solid var(--app-accent); border-radius: 0 var(--app-radius-tight) var(--app-radius-tight) 0; color: #fff; display: inline-flex; justify-content: center; }
.sale-quantity-control button:hover { background: var(--app-accent-strong); }
.sale-empty-state { align-items: center; border: 1px dashed var(--app-line); color: var(--app-muted); display: flex; flex-direction: column; grid-column: 1 / -1; justify-content: center; min-height: 300px; padding: 28px; text-align: center; }
.sale-empty-icon { align-items: center; border: 1px solid var(--app-line); border-radius: 50%; color: var(--app-accent); display: inline-flex; font-size: 1.35rem; height: 46px; justify-content: center; margin-bottom: 12px; width: 46px; }
.sale-empty-state h3 { color: var(--app-ink); font-size: 1rem; margin: 0 0 6px; }
.sale-empty-state p { font-size: .78rem; margin: 0 0 16px; max-width: 340px; }
.sale-pagination { border-top: 1px solid var(--app-line); margin-top: 20px; padding-top: 16px; }
.sale-pagination .pagination { justify-content: end; margin-bottom: 0; }
.sale-checkout-panel { min-width: 0; position: sticky; top: 86px; }
.sale-checkout-card { box-shadow: 0 12px 30px rgba(21, 48, 43, .08); padding: 20px; }
.sale-checkout-heading { align-items: end; border-bottom: 1px solid var(--app-line); padding-bottom: 15px; }
.sale-checkout-agent { align-items: center; color: var(--app-accent-strong); display: flex; font-size: .78rem; font-weight: 700; gap: 8px; margin: 16px 0 13px; }
.sale-checkout-agent i { font-size: 1.05rem; }
.sale-cart-empty { color: var(--app-muted); font-size: .74rem; line-height: 1.5; margin: 0 0 14px; }
.sale-cart-list { display: grid; gap: 0; margin: 0 0 15px; max-height: 260px; overflow-y: auto; }
.sale-cart-line { border-bottom: 1px solid #edf1ef; display: grid; gap: 3px; padding: 10px 0; }
.sale-cart-line-name { color: var(--app-ink); font-size: .76rem; font-weight: 700; }
.sale-cart-line-meta { color: var(--app-muted); font-size: .68rem; font-variant-numeric: tabular-nums; }
.sale-cart-total { align-items: center; border-top: 1px solid var(--app-line); display: flex; justify-content: space-between; padding: 15px 0; }
.sale-cart-total span:first-child { color: var(--app-muted); font-size: .76rem; }
.sale-cart-total strong { color: var(--app-ink); font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.sale-checkout-link { align-items: center; display: flex; gap: 6px; justify-content: center; min-height: 44px; }
.sale-checkout-link i { font-size: 1rem; }
.sale-checkout-note { color: var(--app-muted); display: flex; font-size: .67rem; gap: 6px; line-height: 1.45; margin-top: 13px; }
.sale-checkout-note i { color: var(--app-accent); font-size: .9rem; }

@media (max-width: 1199.98px) {
	.sale-layout { grid-template-columns: 190px minmax(0, 1fr); }
	.sale-checkout-panel { grid-column: 1 / -1; position: static; }
	.sale-checkout-card { margin-left: auto; max-width: 420px; width: 100%; }
}

@media (max-width: 767.98px) {
	.sale-toolbar-card { align-items: stretch; grid-template-columns: 1fr; }
	.sale-toolbar-controls { align-items: stretch; grid-template-columns: 1fr 1fr; }
	.sale-add-product { grid-column: 1 / -1; }
	.sale-layout { grid-template-columns: 1fr; }
	.sale-filter-panel { padding: 14px; }
	.sale-category-list { display: flex; gap: 5px; overflow-x: auto; padding-bottom: 2px; }
	.sale-category-list a { flex: 0 0 auto; gap: 10px; white-space: nowrap; }
	.sale-filter-note { display: none; }
}

@media (max-width: 575.98px) {
	.sale-page-heading { gap: 12px; }
	.sale-toolbar-card, .sale-catalog, .sale-checkout-card { padding: 15px; }
	.sale-toolbar-controls { grid-template-columns: 1fr; }
	.sale-add-product { grid-column: auto; }
	.sale-catalog-header { align-items: start; flex-direction: column; gap: 8px; }
	.sale-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sale-product-media, .sale-product-image-link { min-height: 130px; height: 130px; }
	.sale-product-body { padding: 11px; }
	.sale-product-body h3 { font-size: .78rem; }
	.sale-product-price { font-size: .82rem; }
	.sale-product-footer { gap: 8px; }
}

@media (max-width: 380px) {
	.sale-product-grid { grid-template-columns: 1fr; }
}

/* Dashboard hierarchy */
.dashboard-heading { align-items: end; display: flex; gap: 28px; justify-content: space-between; margin-bottom: 28px; }
.dashboard-heading h1 { color: var(--app-ink); font-size: clamp(1.75rem, 3vw, 2.35rem); font-weight: 760; letter-spacing: -.05em; margin: 0; }
.dashboard-subtitle { color: var(--app-muted); font-size: .9rem; margin: 8px 0 0; }
.dashboard-period { min-width: 220px; }
.dashboard-period label { color: var(--app-muted); display: block; font-size: .7rem; font-weight: 700; letter-spacing: .08em; margin-bottom: 7px; text-transform: uppercase; }
.dashboard-period-row { display: flex; gap: 7px; }
.dashboard-period input { background: #fff; border: 1px solid var(--app-line); border-radius: var(--app-radius-tight); color: var(--app-ink); min-height: 40px; padding: 0 10px; width: 100%; }
.dashboard-period .btn { min-height: 40px; padding: 0 14px; }
.dashboard-grid { display: grid; gap: 18px; }
.dashboard-grid-top { grid-template-columns: minmax(0, 1.6fr) minmax(300px, .9fr); margin-bottom: 18px; }
.kpi-primary, .kpi-compact, .dashboard-card { background: #fff; border: 1px solid var(--app-line); border-radius: var(--app-radius); }
.kpi-primary { padding: 26px; }
.kpi-overline, .kpi-label { color: var(--app-muted); font-size: .7rem; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
.kpi-primary-row { align-items: start; display: flex; justify-content: space-between; margin-top: 18px; }
.kpi-number { color: var(--app-ink); font-size: clamp(2.25rem, 5vw, 4.3rem); font-variant-numeric: tabular-nums; font-weight: 760; letter-spacing: -.07em; line-height: .98; }
.kpi-note { color: var(--app-muted); font-size: .82rem; margin: 10px 0 0; }
.kpi-mark { align-items: center; border: 1px solid var(--app-line); border-radius: var(--app-radius-tight); color: var(--app-accent); display: inline-flex; font-size: 1.35rem; height: 42px; justify-content: center; width: 42px; }
.kpi-meta-grid { border-top: 1px solid var(--app-line); display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); margin-top: 30px; padding-top: 17px; }
.kpi-meta-grid span, .kpi-foot { color: var(--app-muted); display: block; font-size: .72rem; }
.kpi-meta-grid strong { color: var(--app-ink); display: block; font-size: .95rem; font-variant-numeric: tabular-nums; margin-top: 5px; }
.dashboard-secondary-grid { display: grid; gap: 18px; grid-template-rows: repeat(3, 1fr); }
.kpi-compact { display: grid; grid-template-columns: 1fr auto; padding: 20px 22px; }
.kpi-compact .kpi-label, .kpi-compact .kpi-foot { grid-column: 1; }
.kpi-compact-number { align-self: center; color: var(--app-ink); font-size: 1.8rem; font-variant-numeric: tabular-nums; grid-column: 2; grid-row: 1 / span 2; letter-spacing: -.05em; }
.kpi-foot { margin-top: 6px; }
.dashboard-grid-main { grid-template-columns: minmax(0, 1.65fr) minmax(280px, .85fr); margin-bottom: 18px; }
.dashboard-card { padding: 22px; }
.dashboard-card-heading { align-items: start; display: flex; justify-content: space-between; margin-bottom: 24px; }
.dashboard-card-heading h2 { color: var(--app-ink); font-size: 1rem; font-weight: 750; margin: 0; }
.dashboard-card-heading p { color: var(--app-muted); font-size: .78rem; margin: 5px 0 0; }
.dashboard-pending-card { margin-bottom: 18px; }
.dashboard-pending-list { display: grid; gap: 0; }
.dashboard-pending-row { align-items: center; border-top: 1px solid #edf1ef; display: flex; gap: 11px; padding: 12px 0; }
.dashboard-pending-row:first-child { border-top: 0; }
.dashboard-pending-avatar { align-items: center; background: #fff4e5; border-radius: 50%; color: #8b5a1a; display: inline-flex; flex: 0 0 32px; font-size: .66rem; font-weight: 750; height: 32px; justify-content: center; width: 32px; }
.dashboard-pending-row > div { display: grid; gap: 3px; min-width: 0; }
.dashboard-pending-row > div strong { color: var(--app-ink); font-size: .78rem; }
.dashboard-pending-row > div small { color: var(--app-muted); font-size: .68rem; }
.dashboard-pending-amount { color: #8b5a1a; font-size: .82rem; font-variant-numeric: tabular-nums; margin-left: auto; white-space: nowrap; }
.dashboard-empty-note { align-items: center; color: var(--app-muted); display: flex; font-size: .75rem; gap: 8px; margin: 0; padding: 8px 0 2px; }
.dashboard-empty-note i { color: var(--app-accent); font-size: 1rem; }
.chart-key { align-items: center; color: var(--app-muted); display: inline-flex; font-size: .72rem; gap: 7px; }
.chart-key i { background: var(--app-accent); border-radius: 50%; display: inline-block; height: 7px; width: 7px; }
.revenue-chart { align-items: end; border-bottom: 1px solid var(--app-line); display: grid; gap: 10px; grid-template-columns: repeat(12, 1fr); height: 235px; padding-top: 8px; }
.revenue-column { align-items: center; display: flex; flex-direction: column; height: 100%; justify-content: end; }
.revenue-bars { align-items: end; display: flex; gap: 3px; height: calc(100% - 20px); width: 100%; }
.revenue-bar { border-radius: 3px 3px 0 0; display: block; min-height: 2px; width: 50%; }
.revenue-bar-current { background: var(--app-accent); }
.revenue-bar-prior { background: #d7e1de; }
.revenue-column > span { color: var(--app-muted); font-size: .65rem; margin-top: 9px; }
.signal-list { display: grid; gap: 21px; }
.signal-row { align-items: center; display: flex; gap: 12px; }
.signal-icon { align-items: center; border: 1px solid var(--app-line); border-radius: var(--app-radius-tight); color: var(--app-accent); display: inline-flex; flex: 0 0 34px; height: 34px; justify-content: center; }
.signal-row strong { color: var(--app-ink); display: block; font-size: .8rem; }
.signal-row small { color: var(--app-muted); display: block; font-size: .7rem; margin-top: 3px; }
.text-link { color: var(--app-accent); font-size: .78rem; font-weight: 700; text-decoration: none; }
.table-primary { color: var(--app-accent); font-weight: 750; }
.empty-state { color: var(--app-muted); padding: 36px 12px !important; text-align: center; }
.results-summary { color: var(--app-muted); font-size: .76rem; margin: 0 0 14px; }
.results-summary.is-loading { color: var(--app-accent); }
.datatable-header { margin-bottom: 2px; }
.card-modern-table-over-header .card-body { overflow-x: auto; }
.card-modern-table-over-header .datatable-header { min-width: 0; }
.app-breadcrumb-header { align-items: center; border-bottom: 1px solid var(--app-line); display: flex; gap: 18px; justify-content: space-between; margin: 0 0 24px; min-height: 42px; padding: 0 0 10px; }
.app-breadcrumb-header .right-wrapper { align-items: center; display: flex; gap: 16px; justify-content: space-between; min-width: 0; width: 100%; }
.app-breadcrumb-header nav { min-width: 0; }
.app-breadcrumbs { align-items: center; display: flex; flex-wrap: wrap; gap: 0; list-style: none; margin: 0; padding: 0; }
.app-breadcrumbs li { align-items: center; color: var(--app-muted); display: inline-flex; font-size: .72rem; line-height: 1.35; min-width: 0; }
.app-breadcrumbs li + li::before { color: #a8b6b1; content: '/'; margin: 0 9px; }
.app-breadcrumbs a { color: var(--app-muted); text-decoration: none; }
.app-breadcrumbs a:hover { color: var(--app-accent); text-decoration: underline; text-underline-offset: 3px; }
.app-breadcrumbs [aria-current="page"] span { color: var(--app-ink); font-weight: 650; }
.app-breadcrumb-header .sidebar-right-toggle { align-items: center; border: 1px solid var(--app-line); color: var(--app-muted); display: inline-flex; flex: 0 0 30px; height: 30px; justify-content: center; text-decoration: none; width: 30px; }
.app-breadcrumb-header .sidebar-right-toggle:hover { background: var(--app-accent-soft); border-color: #b9d8d1; color: var(--app-accent-strong); }
.ops-page-heading { align-items: end; display: flex; gap: 20px; justify-content: space-between; margin-bottom: 22px; }
.ops-page-heading h1 { color: var(--app-ink); font-size: clamp(1.55rem, 2.7vw, 2.1rem); font-weight: 760; letter-spacing: -.05em; margin: 0; }
.ops-page-heading p { color: var(--app-muted); font-size: .84rem; line-height: 1.5; margin: 7px 0 0; max-width: 680px; }
.ops-page-heading .eyebrow { margin-bottom: 8px; }
.report-page { max-width: 1460px; }
.report-page-heading { align-items: end; }
.report-print-button { align-items: center; display: inline-flex; gap: 8px; min-height: 40px; }
.report-print-only { display: none; }
.report-filter-card { align-items: end; background: var(--app-surface); border: 1px solid var(--app-line); border-radius: var(--app-radius); display: grid; gap: 24px; grid-template-columns: minmax(230px, .85fr) minmax(0, 1.5fr); margin-bottom: 18px; padding: 20px 22px; }
.report-filter-copy { display: grid; gap: 5px; }
.report-overline { color: var(--app-accent); display: block; font-size: .65rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.report-filter-copy h2 { color: var(--app-ink); font-size: 1.05rem; font-weight: 750; letter-spacing: -.025em; margin: 0; }
.report-filter-copy p { color: var(--app-muted); font-size: .75rem; line-height: 1.45; margin: 0; max-width: 330px; }
.report-filter-fields { align-items: end; display: grid; gap: 12px; grid-template-columns: minmax(150px, .8fr) minmax(200px, 1fr) auto; }
.report-field { display: grid; gap: 6px; }
.report-field label { color: var(--app-muted); font-size: .67rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.report-field .form-control { min-height: 42px; }
.report-refresh-button { align-items: center; display: inline-flex; gap: 7px; justify-content: center; min-height: 42px; white-space: nowrap; }
.report-status { color: var(--app-muted); font-size: .73rem; grid-column: 1 / -1; margin: 0; }
.report-status.is-loading { color: var(--app-accent); }
.report-status.is-error { color: var(--app-danger); }
.report-summary-grid { display: grid; gap: 14px; grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(160px, .7fr)); margin-bottom: 18px; }
.report-summary-primary, .report-summary-stat { background: var(--app-surface); border: 1px solid var(--app-line); border-radius: var(--app-radius); min-height: 120px; padding: 18px 20px; }
.report-summary-primary { display: grid; gap: 7px; }
.report-summary-primary strong { color: var(--app-ink); font-size: clamp(1.7rem, 3.2vw, 2.45rem); font-weight: 760; letter-spacing: -.06em; line-height: 1; }
.report-summary-primary small, .report-summary-stat small { color: var(--app-muted); font-size: .72rem; }
.report-summary-stat { display: grid; gap: 8px; align-content: center; }
.report-stat-label { color: var(--app-muted); font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.report-summary-stat strong { color: var(--app-ink); font-size: 1.45rem; font-weight: 750; line-height: 1; }
.report-results-card { background: var(--app-surface); border: 1px solid var(--app-line); border-radius: var(--app-radius); overflow: hidden; }
.report-results-header { align-items: end; border-bottom: 1px solid var(--app-line); display: flex; gap: 16px; justify-content: space-between; padding: 19px 22px 16px; }
.report-results-header h2 { color: var(--app-ink); font-size: 1.05rem; font-weight: 750; letter-spacing: -.025em; margin: 5px 0 0; }
.report-results-header p { color: var(--app-muted); font-size: .75rem; margin: 5px 0 0; }
.report-results-date { color: var(--app-muted); font-size: .73rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.report-table { min-width: 700px; }
.report-table th, .report-table td { padding: 13px 16px; }
.report-table tfoot th { background: #fbfcfc; border-top: 1px solid var(--app-line); color: var(--app-ink); font-size: .75rem; }
.report-empty-row { color: var(--app-muted); padding: 44px 16px !important; text-align: center; }
.products-page { max-width: 1460px; }
.products-page-heading { align-items: end; }
.products-add-button { align-items: center; display: inline-flex; gap: 7px; min-height: 40px; }
.products-summary-grid { display: grid; gap: 14px; grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(160px, .7fr)); margin-bottom: 18px; }
.products-summary-primary, .products-summary-stat { background: var(--app-surface); border: 1px solid var(--app-line); border-radius: var(--app-radius); min-height: 112px; padding: 18px 20px; }
.products-summary-primary { background: var(--app-ink); border-color: var(--app-ink); display: grid; gap: 7px; }
.products-summary-primary .report-overline { color: #9bcfc5; }
.products-summary-primary strong { color: #fff; font-size: clamp(1.8rem, 3.2vw, 2.5rem); font-variant-numeric: tabular-nums; font-weight: 760; letter-spacing: -.06em; line-height: 1; }
.products-summary-primary small, .products-summary-stat small { color: var(--app-muted); font-size: .7rem; }
.products-summary-primary small { color: #c9d6d3; }
.products-summary-stat { align-content: center; display: grid; gap: 8px; }
.products-summary-stat span { color: var(--app-muted); font-size: .67rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.products-summary-stat strong { color: var(--app-ink); font-size: 1.35rem; font-variant-numeric: tabular-nums; font-weight: 750; line-height: 1; }
.products-list-card { overflow: hidden; }
.products-list-header { align-items: end; }
.products-list-header .card-actions { display: none; }
.products-list-header .card-title { font-size: 1.05rem; font-weight: 750; margin: 5px 0 0; }
.products-list-card .card-body { padding: 0 22px 20px; }
.products-filter-form { margin: 0; padding: 18px 0 0; }
.products-filter-form > .row { align-items: end !important; gap: 12px; margin: 0 0 14px !important; }
.products-filter-form > .row > div { margin: 0 !important; padding: 0; }
.products-filter-form > .row > div:first-child { flex: 0 0 auto; order: 2; }
.products-filter-form > .row > div:last-child { flex: 1 1 320px; max-width: 430px; order: 1; }
.products-filter-form label { color: var(--app-muted); font-size: .66rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.products-filter-form .search { margin: 0 !important; }
.products-filter-form .input-group { align-items: stretch; }
.products-filter-form .search-term { min-height: 40px; }
.products-filter-form .input-group .btn { align-items: center; display: inline-flex; justify-content: center; min-width: 42px; }
.products-filter-form .results-per-page { min-height: 40px; min-width: 82px; }
.products-results-summary { border-bottom: 1px solid var(--app-line); margin: 0; padding: 0 0 13px; }
.products-table { min-width: 900px; }
.products-table thead th { background: #fbfcfc; border-bottom: 1px solid var(--app-line); padding: 11px 14px; white-space: nowrap; }
.products-table tbody td { padding: 13px 14px; }
.products-select-column { padding-left: 2px !important; padding-right: 4px !important; width: 34px; }
.products-item-link { align-items: center; color: var(--app-ink); display: inline-flex; gap: 10px; min-width: 190px; text-decoration: none; }
.products-item-link:hover strong { color: var(--app-accent); }
.products-item-image { background: #f7faf9; border: 1px solid var(--app-line); border-radius: var(--app-radius-tight); flex: 0 0 40px; object-fit: contain; padding: 4px; }
.products-item-link > span { display: grid; gap: 3px; min-width: 0; }
.products-item-link strong { color: inherit; font-size: .78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.products-item-link small { color: var(--app-muted); font-size: .66rem; }
.products-price { color: var(--app-ink); font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }
.products-stock { align-items: center; border: 1px solid var(--app-line); border-radius: var(--app-radius-tight); color: var(--app-ink); display: inline-flex; font-size: .72rem; font-variant-numeric: tabular-nums; font-weight: 700; min-height: 25px; padding: 0 8px; }
.products-stock.is-low { border-color: #e4c796; color: #8b5a1a; }
.products-stock.is-empty { border-color: #e2baba; color: var(--app-danger); }
.products-table td:nth-last-child(-n+2) { color: var(--app-muted); font-size: .71rem; white-space: nowrap; }
.products-empty-row { color: var(--app-muted); padding: 48px 16px !important; text-align: center; }
.products-table-footer { border-top: 1px solid var(--app-line); margin-top: 0; padding-top: 16px; }
.products-table-footer .row { margin: 0; }
.products-table-footer .pagination { margin: 0; }
.directory-page { max-width: 1460px; }
.directory-page-heading { align-items: end; }
.directory-add-button { align-items: center; display: inline-flex; gap: 7px; min-height: 40px; }
.directory-summary-grid { display: grid; gap: 14px; grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(160px, .7fr)); margin-bottom: 18px; }
.directory-summary-primary, .directory-summary-stat { background: var(--app-surface); border: 1px solid var(--app-line); border-radius: var(--app-radius); min-height: 112px; padding: 18px 20px; }
.directory-summary-primary { background: var(--app-ink); border-color: var(--app-ink); display: grid; gap: 7px; }
.directory-summary-primary .report-overline { color: #9bcfc5; }
.directory-summary-primary strong { color: #fff; font-size: clamp(1.8rem, 3.2vw, 2.5rem); font-variant-numeric: tabular-nums; font-weight: 760; letter-spacing: -.06em; line-height: 1; }
.directory-summary-primary small, .directory-summary-stat small { color: var(--app-muted); font-size: .7rem; }
.directory-summary-primary small { color: #c9d6d3; }
.directory-summary-stat { align-content: center; display: grid; gap: 8px; }
.directory-summary-stat span { color: var(--app-muted); font-size: .67rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.directory-summary-stat strong { color: var(--app-ink); font-size: 1.35rem; font-variant-numeric: tabular-nums; font-weight: 750; line-height: 1; }
.directory-list-card { overflow: hidden; }
.directory-list-header { align-items: end; }
.directory-list-header .card-actions { display: none; }
.directory-list-header .card-title { font-size: 1.05rem; font-weight: 750; margin: 5px 0 0; }
.directory-list-card .card-body { padding: 0 22px 20px; }
.directory-filter-form { margin: 0; padding: 18px 0 0; }
.directory-filter-form > .row { align-items: end !important; gap: 12px; margin: 0 0 14px !important; }
.directory-filter-form > .row > div { margin: 0 !important; padding: 0; }
.directory-filter-form > .row > div:first-child { flex: 0 0 auto; order: 2; }
.directory-filter-form > .row > div:last-child { flex: 1 1 320px; max-width: 430px; order: 1; }
.directory-filter-form label { color: var(--app-muted); font-size: .66rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.directory-filter-form .search { margin: 0 !important; }
.directory-filter-form .search-term { min-height: 40px; }
.directory-filter-form .input-group .btn { align-items: center; display: inline-flex; justify-content: center; min-width: 42px; }
.directory-filter-form .results-per-page { min-height: 40px; min-width: 82px; }
.directory-results-summary { border-bottom: 1px solid var(--app-line); margin: 0; padding: 0 0 13px; }
.directory-table { min-width: 780px; }
.directory-table thead th { background: #fbfcfc; border-bottom: 1px solid var(--app-line); padding: 11px 14px; white-space: nowrap; }
.directory-table tbody td { padding: 13px 14px; }
.directory-select-column { padding-left: 2px !important; padding-right: 4px !important; width: 34px; }
.directory-name-link { color: var(--app-ink); text-decoration: none; }
.directory-name-link:hover { color: var(--app-accent); }
.directory-name-link strong { font-size: .78rem; }
.directory-count { color: var(--app-ink); font-variant-numeric: tabular-nums; font-weight: 700; }
.directory-table td:nth-last-child(-n+2) { color: var(--app-muted); font-size: .71rem; }
.directory-empty-row { color: var(--app-muted); padding: 48px 16px !important; text-align: center; }
.directory-table-footer { border-top: 1px solid var(--app-line); margin-top: 0; padding-top: 16px; }
.directory-table-footer .row { margin: 0; }
.directory-table-footer .pagination { margin: 0; }
.analytics-page { max-width: 1680px; }
.analytics-page-heading { align-items: end; background: #1d2127; border: 1px solid #1d2127; border-radius: var(--app-radius); margin-bottom: 18px; padding: 22px 24px; }
.analytics-page-heading h1 { color: #fff; max-width: 760px; }
.analytics-page-heading .eyebrow { color: #9bcfc5; margin-bottom: 8px; }
.analytics-period-badge { align-items: center; background: #fff; border: 1px solid #fff; border-radius: var(--app-radius-tight); color: var(--app-ink); display: inline-flex; flex: 0 0 auto; font-size: .74rem; font-weight: 700; gap: 7px; padding: 10px 12px; white-space: nowrap; }
.analytics-period-badge i { color: var(--app-accent); font-size: 1rem; }
.analytics-filter-card { background: var(--app-surface); border: 1px solid var(--app-line); border-top: 3px solid var(--app-accent); border-radius: var(--app-radius); display: grid; gap: 20px; grid-template-columns: minmax(180px, .62fr) minmax(0, 2.38fr); margin-bottom: 18px; padding: 18px 22px 19px; }
.analytics-filter-heading { align-content: start; display: grid; gap: 5px; }
.analytics-filter-heading h2 { color: var(--app-ink); font-size: 1.05rem; font-weight: 750; letter-spacing: -.025em; margin: 0; }
.analytics-filter-heading p { color: var(--app-muted); font-size: .75rem; line-height: 1.45; margin: 0; max-width: 310px; }
.analytics-filter-fields { align-items: end; display: grid; gap: 11px; grid-template-columns: repeat(4, minmax(125px, 1fr)); }
.analytics-field { display: grid; gap: 6px; min-width: 0; }
.analytics-field label { color: var(--app-muted); font-size: .65rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.analytics-field .form-control { min-height: 40px; min-width: 0; }
.analytics-filter-actions { align-items: center; display: flex; gap: 8px; grid-column: 1 / -1; justify-content: flex-end; }
.analytics-filter-actions .btn { align-items: center; display: inline-flex; gap: 7px; min-height: 40px; }
.analytics-filter-note { display: none; }
.analytics-filter-note i { color: var(--app-accent); margin-right: 4px; }
.analytics-summary-grid { display: grid; gap: 12px; grid-template-columns: minmax(300px, 1.8fr) repeat(4, minmax(145px, .75fr)); margin-bottom: 18px; }
.analytics-summary-primary, .analytics-summary-stat { background: var(--app-surface); border: 1px solid var(--app-line); border-radius: var(--app-radius); min-height: 112px; padding: 17px 18px; }
.analytics-summary-primary { background: var(--app-ink); border-color: var(--app-ink); display: grid; gap: 7px; grid-column: span 2; }
.analytics-summary-primary .report-overline { color: #9bcfc5; }
.analytics-summary-primary strong { color: var(--app-ink); font-size: clamp(1.65rem, 3vw, 2.35rem); font-weight: 760; letter-spacing: -.06em; line-height: 1; }
.analytics-summary-primary strong { color: #fff; font-variant-numeric: tabular-nums; }
.analytics-summary-primary small, .analytics-summary-stat small { color: var(--app-muted); font-size: .69rem; line-height: 1.35; }
.analytics-summary-primary small { color: #c9d6d3; }
.analytics-summary-stat { align-content: center; display: grid; gap: 7px; }
.analytics-summary-stat span { color: var(--app-muted); font-size: .66rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.analytics-summary-stat strong { color: var(--app-ink); font-size: 1.2rem; font-weight: 750; line-height: 1.1; font-variant-numeric: tabular-nums; }
.analytics-sparkline { display: block; height: 24px; margin-top: 4px; overflow: visible; width: 100%; }
.analytics-sparkline[hidden] { display: none; }
.analytics-primary-sparkline { margin-top: 2px; opacity: .82; }
.analytics-chart-grid { display: grid; gap: 14px; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); margin-bottom: 18px; }
.analytics-chart-card, .analytics-table-card { background: var(--app-surface); border: 1px solid var(--app-line); border-radius: var(--app-radius); min-height: 340px; min-width: 0; overflow: hidden; }
.analytics-chart-wide { grid-column: span 2; }
.analytics-chart-heading, .analytics-table-heading { align-items: end; background: #fbfcfc; border-bottom: 1px solid var(--app-line); display: flex; gap: 16px; justify-content: space-between; padding: 18px 20px 14px; }
.analytics-chart-heading h2, .analytics-table-heading h2 { color: var(--app-ink); font-size: 1rem; font-weight: 750; letter-spacing: -.025em; margin: 5px 0 0; }
.analytics-chart-heading p, .analytics-table-heading p { color: var(--app-muted); font-size: .72rem; margin: 5px 0 0; }
.analytics-chart-key { align-items: center; color: var(--app-muted); display: inline-flex; font-size: .68rem; gap: 6px; white-space: nowrap; }
.analytics-chart-key i { background: var(--app-accent); border-radius: 50%; display: inline-block; height: 7px; width: 7px; }
.analytics-morris-chart { height: 260px; padding: 18px 15px 12px 8px; }
.analytics-morris-chart svg text { fill: var(--app-muted) !important; font-family: inherit; font-size: 10px; }
.analytics-morris-chart .morris-hover { background: var(--app-ink) !important; border: 0 !important; border-radius: var(--app-radius-tight); box-shadow: 0 8px 20px rgba(29, 33, 39, .16); color: #fff !important; padding: 9px 11px; }
.analytics-morris-chart .morris-hover-row-label { color: #9bcfc5 !important; font-weight: 700; margin-bottom: 3px; }
.analytics-morris-chart .morris-hover-point { color: #fff !important; }
.analytics-bar-chart { height: 290px; }
.analytics-donut-chart { height: 260px; padding: 17px; }
.analytics-chart-empty, .analytics-empty-row { color: var(--app-muted); font-size: .74rem; margin: 0; padding: 42px 18px; text-align: center; }
.analytics-chart-empty[hidden], .analytics-morris-chart[hidden] { display: none; }
.analytics-table-grid { display: grid; gap: 14px; grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr); }
.analytics-table-heading { align-items: start; }
.analytics-table-period, .analytics-recovery-count { color: var(--app-muted); font-size: .68rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.analytics-recovery-count { align-items: center; background: transparent; border: 1px solid var(--app-line); border-radius: var(--app-radius-tight); color: var(--app-accent-strong); display: inline-flex; font-weight: 750; min-height: 25px; padding: 0 9px; }
.analytics-recovery-card { border-top: 3px solid var(--app-accent); }
.analytics-table { min-width: 620px; }
.analytics-table th, .analytics-table td { padding: 12px 16px; }
.analytics-table th { color: var(--app-muted); font-size: .65rem; letter-spacing: .07em; text-transform: uppercase; }
.analytics-table td { color: var(--app-ink); font-size: .76rem; }
.analytics-table td strong, .analytics-table td small { display: block; }
.analytics-table td small { color: var(--app-muted); font-size: .66rem; margin-top: 3px; }
.analytics-recovery-list { display: grid; gap: 0; padding: 4px 20px 12px; }
.analytics-recovery-row { align-items: center; border-bottom: 1px solid #edf1ef; display: flex; gap: 10px; padding: 12px 0; }
.analytics-recovery-row:last-child { border-bottom: 0; }
.analytics-agent-avatar { align-items: center; background: transparent; border: 1px solid var(--app-line); border-radius: 50%; color: var(--app-accent-strong); display: inline-flex; flex: 0 0 32px; font-size: .66rem; font-weight: 750; height: 32px; justify-content: center; width: 32px; }
.analytics-recovery-row > div { display: grid; gap: 3px; min-width: 0; }
.analytics-recovery-row strong { color: var(--app-ink); font-size: .76rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.analytics-recovery-row small { color: var(--app-muted); font-size: .66rem; line-height: 1.35; }
.analytics-recovery-state { color: #8b5a1a; font-size: .64rem; font-weight: 750; margin-left: auto; white-space: nowrap; }
.analytics-recovery-empty { padding-bottom: 48px; padding-top: 48px; }
.order-detail-page { max-width: 1460px; }
.order-detail-heading { align-items: end; }
.order-detail-actions { align-items: center; display: inline-flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.order-detail-actions .btn { align-items: center; display: inline-flex; gap: 6px; min-height: 40px; }
.order-detail-permission { align-items: center; color: var(--app-muted); display: inline-flex; font-size: .7rem; gap: 5px; }
.order-summary-grid { display: grid; gap: 14px; grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(160px, .7fr)); margin-bottom: 18px; }
.order-total-card, .order-summary-stat, .order-lines-card, .order-context-card { background: var(--app-surface); border: 1px solid var(--app-line); border-radius: var(--app-radius); }
.order-total-card { display: grid; gap: 9px; min-height: 128px; padding: 20px 22px; }
.order-summary-overline { color: var(--app-accent); display: block; font-size: .65rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.order-total-card > strong { color: var(--app-ink); font-size: clamp(1.85rem, 3.3vw, 2.65rem); font-weight: 760; letter-spacing: -.065em; line-height: 1; }
.order-total-meta { align-items: center; color: var(--app-muted); display: flex; flex-wrap: wrap; font-size: .73rem; gap: 12px; }
.order-status { align-items: center; display: inline-flex; font-weight: 700; gap: 6px; }
.order-status .status-dot { background: #c68c30; height: 7px; width: 7px; }
.order-status.is-complete { color: var(--app-accent-strong); }
.order-status.is-complete .status-dot { background: var(--app-accent); }
.order-summary-stat { align-content: center; display: grid; gap: 8px; min-height: 128px; padding: 20px; }
.order-stat-label { color: var(--app-muted); font-size: .68rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.order-summary-stat strong { color: var(--app-ink); font-size: 1.32rem; font-weight: 750; line-height: 1.1; }
.order-summary-stat small { color: var(--app-muted); font-size: .72rem; }
.order-detail-layout { align-items: start; display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr) 320px; }
.order-lines-card, .order-context-card { overflow: hidden; }
.order-section-header { align-items: end; border-bottom: 1px solid var(--app-line); display: flex; gap: 16px; justify-content: space-between; padding: 19px 22px 16px; }
.order-section-header h2 { color: var(--app-ink); font-size: 1.05rem; font-weight: 750; letter-spacing: -.025em; margin: 5px 0 0; }
.order-section-header p { color: var(--app-muted); font-size: .75rem; margin: 5px 0 0; }
.order-total-note { color: #8b5a1a; font-size: .7rem; text-align: right; }
.order-lines-table { min-width: 660px; }
.order-lines-table th, .order-lines-table td { padding: 13px 16px; }
.order-lines-table tfoot th { background: #fbfcfc; border-top: 1px solid var(--app-line); color: var(--app-ink); font-size: .76rem; }
.order-product-name { color: var(--app-ink); display: block; font-size: .78rem; }
.order-product-id { color: var(--app-muted); display: block; font-size: .67rem; margin-top: 3px; }
.order-line-total { color: var(--app-ink); font-weight: 700; }
.order-empty-row { color: var(--app-muted); padding: 42px 16px !important; text-align: center; }
.order-context-header { align-items: start; }
.order-agent-avatar { align-items: center; background: var(--app-accent-soft); border-radius: 50%; color: var(--app-accent-strong); display: inline-flex; flex: 0 0 36px; font-size: .74rem; font-weight: 750; height: 36px; justify-content: center; width: 36px; }
.order-agent-profile { display: grid; gap: 4px; padding: 18px 22px 2px; }
.order-agent-profile strong { color: var(--app-ink); font-size: .95rem; }
.order-agent-profile span { color: var(--app-muted); font-size: .72rem; text-transform: capitalize; }
.order-contact-list { display: grid; gap: 0; margin: 0; padding: 10px 22px 18px; }
.order-contact-list > div { border-bottom: 1px solid #edf1ef; display: grid; gap: 3px; padding: 11px 0; }
.order-contact-list > div:last-child { border-bottom: 0; }
.order-contact-list dt { color: var(--app-muted); font-size: .65rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.order-contact-list dd { color: var(--app-ink); font-size: .76rem; margin: 0; overflow-wrap: anywhere; }
.order-status-form { border-top: 1px solid var(--app-line); display: grid; gap: 8px; padding: 18px 22px 22px; }
.order-status-form label { color: var(--app-muted); font-size: .67rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.order-status-form .btn { align-items: center; display: inline-flex; gap: 7px; justify-content: center; margin-top: 4px; min-height: 42px; }
.order-readonly-note { align-items: start; border-top: 1px solid var(--app-line); color: var(--app-muted); display: flex; font-size: .73rem; gap: 8px; line-height: 1.45; padding: 18px 22px 22px; }
.order-readonly-note i { color: var(--app-accent); font-size: 1rem; }
.orders-page { max-width: 1460px; }
.orders-page-heading { align-items: end; }
.orders-new-sale { align-items: center; display: inline-flex; gap: 7px; min-height: 40px; }
.orders-summary-grid { display: grid; gap: 14px; grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(160px, .7fr)); margin-bottom: 18px; }
.orders-summary-primary, .orders-summary-stat, .orders-table-card { background: var(--app-surface); border: 1px solid var(--app-line); border-radius: var(--app-radius); }
.orders-summary-primary { display: grid; gap: 8px; min-height: 124px; padding: 20px 22px; }
.orders-overline { color: var(--app-accent); display: block; font-size: .65rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.orders-summary-primary strong { color: var(--app-ink); font-size: clamp(1.8rem, 3.2vw, 2.55rem); font-weight: 760; letter-spacing: -.065em; line-height: 1; }
.orders-summary-primary small, .orders-summary-stat small { color: var(--app-muted); font-size: .72rem; }
.orders-summary-stat { align-content: center; display: grid; gap: 8px; min-height: 124px; padding: 20px; }
.orders-summary-stat span { color: var(--app-muted); font-size: .68rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.orders-summary-stat strong { color: var(--app-ink); font-size: 1.32rem; font-weight: 750; line-height: 1.1; }
.orders-table-card { overflow: hidden; }
.orders-table-header { align-items: end; border-bottom: 1px solid var(--app-line); display: flex; gap: 18px; justify-content: space-between; padding: 19px 22px 16px; }
.orders-table-header h2 { color: var(--app-ink); font-size: 1.05rem; font-weight: 750; letter-spacing: -.025em; margin: 5px 0 0; }
.orders-filter-form { align-items: center; display: flex; gap: 8px; min-width: min(100%, 440px); }
.orders-filter-form .input-group { min-width: 0; }
.orders-filter-form .form-control { min-height: 40px; }
.orders-filter-form select { flex: 0 0 112px; }
.orders-table { min-width: 760px; }
.orders-table th, .orders-table td { padding: 13px 16px; }
.orders-table th { white-space: nowrap; }
.orders-select-column { padding-left: 22px !important; padding-right: 4px !important; width: 32px; }
.orders-id-link { color: var(--app-accent); font-size: .8rem; font-weight: 750; text-decoration: none; }
.orders-id-link:hover { color: var(--app-accent-strong); text-decoration: underline; text-underline-offset: 3px; }
.orders-agent-link { align-items: center; color: var(--app-ink); display: inline-flex; gap: 9px; text-decoration: none; }
.orders-agent-link:hover strong { color: var(--app-accent); }
.orders-agent-link > span:last-child { display: grid; gap: 3px; }
.orders-agent-link strong { font-size: .78rem; }
.orders-agent-link small, .orders-time { color: var(--app-muted); display: block; font-size: .67rem; }
.orders-agent-avatar { align-items: center; background: var(--app-accent-soft); border-radius: 50%; color: var(--app-accent-strong); display: inline-flex; flex: 0 0 30px; font-size: .67rem; font-weight: 750; height: 30px; justify-content: center; width: 30px; }
.orders-date { color: var(--app-ink); display: block; font-size: .76rem; }
.orders-total { color: var(--app-ink); font-size: .8rem; font-weight: 700; white-space: nowrap; }
.orders-empty-row { color: var(--app-muted); padding: 46px 16px !important; text-align: center; }
.orders-table-footer { align-items: center; border-top: 1px solid var(--app-line); display: flex; gap: 16px; justify-content: space-between; padding: 16px 22px; }
.orders-bulk-controls { align-items: center; display: flex; gap: 8px; min-width: 0; }
.orders-bulk-controls select { max-width: 170px; min-height: 38px; }
.orders-bulk-controls .btn { min-height: 38px; }
.orders-bulk-status { color: var(--app-muted); font-size: .7rem; }
.orders-bulk-status.is-error { color: var(--app-danger); }
.orders-pagination .pagination { justify-content: flex-end; margin: 0; }

@media (max-width: 1199.98px) and (min-width: 768px) {
	.products-summary-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.products-summary-primary { grid-column: span 3; }
	.directory-summary-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.directory-summary-primary { grid-column: span 3; }
	.analytics-filter-card { grid-template-columns: 1fr; }
	.analytics-filter-fields { grid-template-columns: repeat(3, minmax(135px, 1fr)); }
	.analytics-summary-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.analytics-summary-primary { grid-column: span 4; }
	.analytics-chart-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.analytics-table-grid { grid-template-columns: 1fr; }
}

@media (max-width: 575.98px) {
	.app-breadcrumb-header { align-items: start; flex-direction: column; gap: 9px; min-height: 0; padding-bottom: 12px; }
	.app-breadcrumb-header .right-wrapper { justify-content: space-between; width: 100%; }
	.app-breadcrumbs { max-width: calc(100vw - 64px); }
	.ops-page-heading { align-items: start; flex-direction: column; gap: 4px; margin-bottom: 16px; }
	.report-page-heading { align-items: start; }
	.report-filter-card { grid-template-columns: 1fr; padding: 16px; }
	.report-filter-fields { grid-template-columns: 1fr; }
	.report-refresh-button { width: 100%; }
	.report-summary-grid { grid-template-columns: 1fr; }
	.report-summary-primary, .report-summary-stat { min-height: 0; }
	.report-results-header { align-items: start; flex-direction: column; padding-left: 16px; padding-right: 16px; }
	.products-page-heading { align-items: start; }
	.products-add-button { width: 100%; justify-content: center; }
	.products-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.products-summary-primary { grid-column: span 2; }
	.products-list-card .card-body { padding-left: 16px; padding-right: 16px; }
	.products-filter-form > .row { align-items: stretch !important; flex-direction: column; }
	.products-filter-form > .row > div:first-child, .products-filter-form > .row > div:last-child { flex: 1 1 auto; max-width: none; width: 100%; }
	.products-filter-form > .row > div:first-child { order: 1; }
	.products-filter-form > .row > div:last-child { order: 2; }
	.directory-page-heading { align-items: start; }
	.directory-add-button { justify-content: center; width: 100%; }
	.directory-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.directory-summary-primary { grid-column: span 2; }
	.directory-list-card .card-body { padding-left: 16px; padding-right: 16px; }
	.directory-filter-form > .row { align-items: stretch !important; flex-direction: column; }
	.directory-filter-form > .row > div:first-child, .directory-filter-form > .row > div:last-child { flex: 1 1 auto; max-width: none; width: 100%; }
	.directory-filter-form > .row > div:first-child { order: 1; }
	.directory-filter-form > .row > div:last-child { order: 2; }
	.analytics-page-heading { align-items: start; padding: 18px; }
	.analytics-period-badge { width: 100%; }
	.analytics-filter-card { grid-template-columns: 1fr; padding: 16px; }
	.analytics-filter-fields { grid-template-columns: 1fr; }
	.analytics-filter-actions { align-items: stretch; flex-direction: column; }
	.analytics-filter-actions .btn { justify-content: center; width: 100%; }
	.analytics-summary-grid, .analytics-chart-grid, .analytics-table-grid { grid-template-columns: 1fr; }
	.analytics-summary-primary, .analytics-chart-wide { grid-column: auto; }
	.analytics-summary-primary, .analytics-summary-stat { min-height: 0; }
	.analytics-chart-card, .analytics-table-card { min-height: 0; }
	.analytics-chart-heading, .analytics-table-heading { align-items: start; flex-direction: column; gap: 8px; padding-left: 16px; padding-right: 16px; }
	.analytics-morris-chart { height: 230px; padding-left: 0; padding-right: 8px; }
	.analytics-table { min-width: 560px; }
	.card-modern-table-over-header .table { font-size: .78rem; }
	.card-modern-table-over-header .table th, .card-modern-table-over-header .table td { padding-left: 9px; padding-right: 9px; white-space: nowrap; }
	.datatable-header .row > [class*="col-"] { margin-left: 0 !important; }
	.datatable-header .search { width: 100%; }
}

/* Login */
.login-page { min-height: 100vh; margin: 0; background: #f5f7f6; }
.login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(380px, .82fr) minmax(0, 1.18fr); }
.login-panel { display: flex; align-items: center; justify-content: center; padding: 48px clamp(24px, 6vw, 96px); background: #fff; }
.login-panel-inner { width: min(100%, 430px); }
.login-brand { display: inline-flex; align-items: center; gap: 11px; color: var(--app-ink); font-size: 1.1rem; font-weight: 760; letter-spacing: -.03em; text-decoration: none; }
.login-brand img { object-fit: contain; }
.login-copy { margin: 74px 0 34px; }
.eyebrow { color: var(--app-accent); font-size: .72rem; font-weight: 750; letter-spacing: .13em; margin: 0 0 12px; text-transform: uppercase; }
.login-copy h1 { color: var(--app-ink); font-size: clamp(2.3rem, 4vw, 3.6rem); font-weight: 760; letter-spacing: -.065em; line-height: .98; margin: 0 0 18px; }
.login-copy p:not(.eyebrow) { color: var(--app-muted); font-size: 1rem; line-height: 1.65; margin: 0; max-width: 390px; }
.login-form { display: grid; gap: 21px; }
.login-field { display: grid; gap: 8px; }
.login-field label, .login-label-row label { color: var(--app-ink); font-size: .78rem; font-weight: 700; }
.login-label-row { display: flex; align-items: center; justify-content: space-between; }
.login-label-row a { font-size: .76rem; font-weight: 650; text-decoration: none; }
.login-field input:not([type="checkbox"]), .login-field select, .login-field textarea { appearance: none; background: #fff; border: 1px solid #cbd8d3; border-radius: var(--app-radius-tight); color: var(--app-ink); font-size: .95rem; min-height: 52px; outline: 0; padding: 0 15px; transition: border-color .18s ease, box-shadow .18s ease; width: 100%; }
.login-field textarea { min-height: 96px; padding-bottom: 12px; padding-top: 12px; resize: vertical; }
.login-field .password-input-wrap > input { padding-right: 48px; }
.login-field input:focus { border-color: var(--app-accent); box-shadow: 0 0 0 3px rgba(31,111,102,.13); }
.login-remember { align-items: center; color: var(--app-muted); display: inline-flex; font-size: .8rem; gap: 9px; }
.login-remember input { accent-color: var(--app-accent); height: 15px; width: 15px; }
.login-submit { align-items: center; display: inline-flex; font-size: .9rem; font-weight: 720; justify-content: center; min-height: 52px; transition: background .18s ease; width: 100%; }
.login-submit i { font-size: 1.2rem; margin-left: 7px; }
.auth-form { display: grid; gap: 18px; }
.auth-form .login-submit { margin-top: 3px; }
.auth-form-footer { align-items: center; color: var(--app-muted); display: flex; font-size: .78rem; justify-content: space-between; margin-top: 2px; }
.auth-form-footer a { font-weight: 650; text-decoration: none; }
.auth-form-footer p { margin: 0; }
.auth-field-hint { color: var(--app-muted); display: block; font-size: .72rem; line-height: 1.45; margin-top: 6px; }
.auth-resend-copy { color: var(--app-muted); font-size: .9rem; line-height: 1.65; margin: 0 0 20px; }
.auth-resend-copy strong { color: var(--app-ink); }
.login-alert { border: 1px solid; border-radius: var(--app-radius-tight); font-size: .8rem; margin-bottom: 20px; padding: 12px 14px; }
.login-alert-success { background: var(--app-accent-soft); border-color: #b9d8d1; color: var(--app-accent-strong); }
.login-alert-error { background: #fff3f2; border-color: #efc8c4; color: var(--app-danger); }
.login-footer { color: #9aa8a4; font-size: .72rem; margin: 45px 0 0; }
.login-visual { background: #20322f url('../img/inventree-login-hero.png') center center / cover no-repeat; min-height: 100vh; position: relative; }
.login-visual-overlay { align-items: flex-end; background: rgba(19, 36, 33, .14); display: flex; height: 100%; padding: clamp(28px, 5vw, 72px); }
.login-visual-caption { align-items: center; background: rgba(255,255,255,.92); border: 1px solid rgba(255,255,255,.7); border-radius: var(--app-radius-tight); color: var(--app-ink); display: inline-flex; font-size: .8rem; font-weight: 650; gap: 10px; padding: 12px 15px; }
.status-dot { background: var(--app-accent); border-radius: 50%; height: 8px; width: 8px; }

/* RBAC management */
.rbac-page-heading { align-items: end; display: flex; gap: 24px; justify-content: space-between; margin-bottom: 26px; }
.rbac-page-heading h1 { color: var(--app-ink); font-size: clamp(1.7rem, 3vw, 2.35rem); font-weight: 760; letter-spacing: -.055em; margin: 0; }
.rbac-page-heading p:not(.eyebrow) { color: var(--app-muted); font-size: .88rem; line-height: 1.55; margin: 9px 0 0; max-width: 660px; }
.rbac-page-note { align-items: center; border: 1px solid var(--app-line); color: var(--app-muted); display: inline-flex; flex: 0 0 auto; font-size: .78rem; gap: 9px; padding: 12px 14px; }
.rbac-page-note i { color: var(--app-accent); font-size: 1.1rem; }
.rbac-page-note strong { color: var(--app-ink); }
.rbac-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); }
.rbac-card { background: var(--app-surface); border: 1px solid var(--app-line); border-radius: var(--app-radius); }
.rbac-card-header { align-items: start; border-bottom: 1px solid var(--app-line); display: flex; gap: 14px; justify-content: space-between; padding: 20px 22px 17px; }
.rbac-card-header h2 { color: var(--app-ink); font-size: 1.05rem; font-weight: 750; margin: 5px 0 0; }
.rbac-role-key { color: var(--app-muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .7rem; letter-spacing: .04em; }
.rbac-count, .rbac-locked { color: var(--app-muted); font-size: .7rem; white-space: nowrap; }
.rbac-locked { align-items: center; color: var(--app-accent-strong); display: inline-flex; gap: 5px; }
.rbac-super-admin-note { background: var(--app-accent-soft); border-bottom: 1px solid var(--app-line); color: var(--app-accent-strong); font-size: .76rem; line-height: 1.45; padding: 12px 22px; }
.rbac-super-admin-note i { font-size: 1rem; margin-right: 4px; vertical-align: -2px; }
.rbac-permission-groups { display: grid; gap: 0; padding: 4px 22px 9px; }
.rbac-permission-group { border: 0; border-bottom: 1px solid #edf1ef; margin: 0; padding: 15px 0 12px; }
.rbac-permission-group:last-child { border-bottom: 0; }
.rbac-permission-group legend { color: var(--app-muted); float: none; font-size: .66rem; font-weight: 750; letter-spacing: .09em; margin: 0 0 8px; padding: 0; text-transform: uppercase; width: 100%; }
.rbac-permission { align-items: center; cursor: pointer; display: flex; gap: 10px; padding: 7px 0; }
.rbac-permission input { accent-color: var(--app-accent); flex: 0 0 auto; height: 16px; width: 16px; }
.rbac-permission input:disabled { cursor: not-allowed; opacity: .75; }
.rbac-permission > span { display: grid; gap: 2px; min-width: 0; }
.rbac-permission strong { color: var(--app-ink); font-size: .78rem; font-weight: 650; }
.rbac-permission small { color: var(--app-muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .65rem; overflow-wrap: anywhere; }
.rbac-permission-sensitive small { color: var(--app-accent-strong); }
.rbac-card-footer { align-items: center; border-top: 1px solid var(--app-line); display: flex; gap: 16px; justify-content: space-between; padding: 16px 22px; }
.rbac-card-footer p { color: var(--app-muted); font-size: .72rem; line-height: 1.4; margin: 0; }
.rbac-card-footer .btn { align-items: center; display: inline-flex; flex: 0 0 auto; gap: 6px; }

/* Authentication and password recovery */
.auth-page { background: var(--app-canvas); color: var(--app-ink); min-height: 100vh; }
.auth-page #app { min-height: 100vh; }
.auth-nav { background: #fff; border-bottom: 1px solid var(--app-line); }
.auth-nav .navbar-brand { color: var(--app-ink); font-weight: 760; letter-spacing: -.03em; }
.auth-nav .nav-link { color: var(--app-muted); font-size: .86rem; }
.auth-nav .nav-link:hover { color: var(--app-accent); }
.auth-main { align-items: center; display: flex; min-height: calc(100vh - 57px); padding: clamp(28px, 6vw, 76px) 16px !important; }
.auth-content { margin: 0 auto; width: 100%; }
.auth-content > .container { max-width: 980px; }
.auth-content .card { margin: 0 auto; max-width: 650px; overflow: hidden; }
.auth-content .card-header { color: var(--app-ink); font-size: 1.3rem; font-weight: 760; letter-spacing: -.035em; padding: 24px 28px 18px; }
.auth-content .card-body { padding: 28px; }
.auth-content .form-control { min-height: 44px; }
.auth-content .form-control::placeholder { color: #9aa8a4; }
.auth-content .form-control:focus { border-color: var(--app-accent); }
.auth-content .btn-primary { background: var(--app-accent); background-image: none; border-color: var(--app-accent); border-radius: var(--app-radius-tight); }
.auth-content .btn-primary:hover { background: var(--app-accent-strong); border-color: var(--app-accent-strong); }
.auth-content .invalid-feedback { font-size: .76rem; }
.auth-content .alert { border-radius: var(--app-radius-tight); font-size: .82rem; }
.auth-content a { color: var(--app-accent); }
.auth-content a:hover { color: var(--app-accent-strong); }

@media (max-width: 991.98px) {
	.content-body { padding: 22px 18px 40px; }
	.dashboard-grid-top, .dashboard-grid-main { grid-template-columns: 1fr; }
	.dashboard-secondary-grid { grid-template-columns: repeat(3, 1fr); grid-template-rows: none; }
	.report-filter-card { grid-template-columns: 1fr; }
	.report-filter-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.report-refresh-button { min-width: 130px; }
	.order-detail-layout { grid-template-columns: 1fr; }
	.orders-table-header { align-items: start; flex-direction: column; }
	.orders-filter-form { min-width: 0; width: 100%; }
	.rbac-page-heading { align-items: start; flex-direction: column; }
	.login-shell { grid-template-columns: 1fr; }
	.login-panel { min-height: 68vh; order: 2; padding: 40px 24px 54px; }
	.login-visual { min-height: 32vh; order: 1; }
	.login-visual-overlay { align-items: flex-end; padding: 22px 24px; }
	.login-copy { margin-top: 42px; }
}

@media (max-width: 575.98px) {
	.content-body { padding-left: 12px; padding-right: 12px; }
	.dashboard-heading { align-items: start; flex-direction: column; gap: 18px; }
	.dashboard-period { width: 100%; }
	.report-page-heading, .order-detail-heading { align-items: start; }
	.order-detail-actions { justify-content: flex-start; }
	.order-summary-grid { grid-template-columns: 1fr; }
	.order-total-card, .order-summary-stat { min-height: 0; }
	.order-section-header { align-items: start; flex-direction: column; padding-left: 16px; padding-right: 16px; }
	.order-total-note { text-align: left; }
	.order-agent-profile, .order-contact-list, .order-status-form, .order-readonly-note { padding-left: 16px; padding-right: 16px; }
	.orders-page-heading { align-items: start; }
	.orders-summary-grid { grid-template-columns: 1fr; }
	.orders-summary-primary, .orders-summary-stat { min-height: 0; }
	.orders-table-header { padding-left: 16px; padding-right: 16px; }
	.orders-filter-form { align-items: stretch; flex-direction: column; }
	.orders-filter-form select { flex-basis: auto; width: 100%; }
	.orders-table-footer { align-items: stretch; flex-direction: column; padding-left: 16px; padding-right: 16px; }
	.orders-bulk-controls { align-items: stretch; flex-wrap: wrap; }
	.orders-bulk-controls select { flex: 1 1 180px; max-width: none; }
	.orders-pagination .pagination { justify-content: flex-start; }
	.dashboard-secondary-grid { grid-template-columns: 1fr; }
	.kpi-meta-grid { gap: 10px; }
	.kpi-meta-grid strong { font-size: .82rem; }
	.dashboard-card { padding: 16px; }
	.revenue-chart { gap: 4px; }
	.rbac-grid { grid-template-columns: 1fr; }
	.rbac-card-header, .rbac-permission-groups { padding-left: 16px; padding-right: 16px; }
	.rbac-super-admin-note, .rbac-card-footer { padding-left: 16px; padding-right: 16px; }
	.rbac-card-footer { align-items: stretch; flex-direction: column; }
	.rbac-card-footer .btn { justify-content: center; }
	.auth-main { padding-left: 10px !important; padding-right: 10px !important; }
	.auth-content > .container { padding-left: 0; padding-right: 0; }
	.auth-content .card-header, .auth-content .card-body { padding-left: 18px; padding-right: 18px; }
	.card-body { padding: 16px; }
	.card-header { padding: 15px 16px; }
	.login-visual { min-height: 210px; }
	.login-panel { padding-left: 20px; padding-right: 20px; }
	.login-copy h1 { font-size: 2.45rem; }
	.login-copy { margin-top: 34px; }
	.header .logo.brand-lockup, .header.header-nav-menu .logo.brand-lockup { gap: 7px; height: 58px; padding: 0 12px; }
	.brand-mark { height: 29px; width: 29px; }
	.brand-wordmark { font-size: .95rem; }
}

@media print {
	.header, .sidebar-left, .sidebar-right { display: none !important; }
	.content-body { margin: 0 !important; padding: 0 !important; }
	.report-page { background: #fff !important; max-width: none; }
	.report-page .app-breadcrumb-header,
	.report-page .report-page-heading,
	.report-page .report-filter-card,
	.report-page .report-summary-grid { display: none !important; }
	.report-page .report-print-only { align-items: end; border-bottom: 1px solid #1b1b1b; display: flex; justify-content: space-between; margin-bottom: 16px; padding-bottom: 10px; }
	.report-print-only .report-overline { color: #444; font-size: 9px; }
	.report-print-only h1 { color: #111; font-size: 18px; letter-spacing: -.02em; margin: 3px 0 0; }
	.report-print-only dl { display: grid; gap: 3px; margin: 0; text-align: right; }
	.report-print-only dl div { display: flex; gap: 8px; justify-content: flex-end; }
	.report-print-only dt { color: #555; font-size: 9px; font-weight: 700; text-transform: uppercase; }
	.report-print-only dd { color: #111; font-size: 10px; margin: 0; }
	.report-page .report-results-card { border: 0; border-radius: 0; overflow: visible; }
	.report-page .report-results-header { align-items: end; border-bottom: 1px solid #777; padding: 0 0 8px; }
	.report-page .report-results-header .report-overline,
	.report-page .report-results-header p { display: none; }
	.report-page .report-results-header h2 { color: #111; font-size: 13px; margin: 0; }
	.report-page .report-results-date { color: #333; font-size: 10px; }
	.report-page .report-table { min-width: 0; }
	.report-page .report-table th, .report-page .report-table td { color: #111 !important; font-size: 9px; padding: 6px 4px; }
	.report-page .report-table th { background: #fff !important; }
	.report-page .report-table a { color: #111 !important; text-decoration: none; }
	.report-page .report-table tfoot th { background: #fff !important; border-top: 1px solid #777; font-size: 10px; }
	.report-page .report-empty-row { padding: 24px 4px !important; }
}
