:root {
	--espresso-950: #1f1814;
	--espresso-900: #271e19;
	--espresso-800: #362820;
	--coffee-700: #6f4f3d;
	--coffee-600: #866148;
	--coffee-500: #9d7458;
	--coffee-100: #eee5df;
	--canvas: #f5f6f8;
	--surface: #fff;
	--text: #17202b;
	--muted: #697586;
	--soft: #8d98a6;
	--border: #e3e6eb;
	--sage: #4f7462;
	--sage-bg: #edf4f0;
	--amber: #9a6b2c;
	--amber-bg: #faf2e5;
	--red: #a84d45;
	--red-bg: #f9ecea;
	--blue: #51708a;
	--blue-bg: #edf3f7;
	--sidebar-width: 250px;
	--sidebar-collapsed-width: 74px;
	--radius: 9px;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--canvas); }
body { margin: 0; font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 15px; color: var(--text); background: var(--canvas); -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
.app-shell select, .app-shell select option, .app-shell .searchable-option, .app-shell .product-query-option { text-transform: uppercase; }

/* Keep user-entered values and persisted data consistent wherever they are shown. */
.app-shell input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), .app-shell textarea,
.app-shell table td, .app-shell .product-cell, .app-shell .customer-cell, .app-shell .stock-lot,
.app-shell .activity-list strong, .app-shell .activity-list small, .app-shell .schedule-list strong,
.app-shell .schedule-list small, .app-shell .detail-list dd, .app-shell .delivery-detail-list strong,
.app-shell .delivery-detail-list p, .app-shell .compact-orders, .app-shell .notification-menu > a,
.app-shell .tag-chip, .app-shell .status, .app-shell .product-query-identity,
.app-shell .product-query-metrics, .app-shell .price-list-table td, .app-shell .product-pricing-table td {
	text-transform: uppercase;
}
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
svg { display: block; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }

/* Sign in */
.sign-in-page { min-height: 100vh; background: #fff; }
.sign-in-shell { display: grid; min-height: 100vh; grid-template-columns: minmax(420px, .92fr) minmax(520px, 1.08fr); }
.sign-in-intro { position: relative; display: flex; min-height: 100vh; flex-direction: column; justify-content: space-between; overflow: hidden; padding: 42px 52px; color: #fff; background: var(--espresso-950); }
.sign-in-intro::before { position: absolute; right: -170px; bottom: -230px; width: 560px; height: 560px; content: ""; border: 1px solid rgba(255,255,255,.07); border-radius: 50%; box-shadow: 0 0 0 78px rgba(255,255,255,.025), 0 0 0 156px rgba(255,255,255,.018); }
.sign-in-intro::after { position: absolute; top: 22%; right: 11%; width: 120px; height: 190px; transform: rotate(34deg); content: ""; border: 1px solid rgba(193,154,120,.13); border-radius: 50%; box-shadow: inset -18px 0 0 rgba(193,154,120,.018); }
.sign-in-brand { position: relative; z-index: 1; display: flex; width: max-content; align-items: center; gap: 12px; }
.sign-in-brand .brand-logo { width: 36px; height: 36px; }
.sign-in-brand strong, .sign-in-brand small { display: block; }
.sign-in-brand strong { font-size: 16px; font-weight: 600; letter-spacing: .01em; }
.sign-in-brand small { margin-top: 4px; color: #94867e; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.sign-in-intro-copy { position: relative; z-index: 1; max-width: 500px; margin: auto 0; padding: 72px 0; }
.sign-in-intro-copy h1 { max-width: 470px; margin: 0; font-size: clamp(38px, 4.1vw, 60px); font-weight: 500; line-height: 1.08; letter-spacing: -.045em; text-wrap: balance; }
.sign-in-intro-copy p { max-width: 430px; margin: 24px 0 0; color: #a99d96; font-size: 15px; line-height: 1.75; }
.sign-in-status { position: relative; z-index: 1; display: flex; width: max-content; align-items: center; gap: 10px; }
.sign-in-status > span { width: 8px; height: 8px; border: 2px solid #273d32; border-radius: 50%; background: #74a088; box-shadow: 0 0 0 4px rgba(116,160,136,.08); }
.sign-in-status strong, .sign-in-status small { display: block; }
.sign-in-status strong { color: #d7d0cb; font-size: 11px; font-weight: 500; }
.sign-in-status small { margin-top: 3px; color: #796f69; font-size: 9px; }
.sign-in-panel { display: flex; min-height: 100vh; flex-direction: column; align-items: center; justify-content: center; padding: 48px 7vw 28px; background: #fff; }
.sign-in-card { width: min(410px, 100%); margin: auto 0; }
.sign-in-card-head h2 { margin: 0; color: var(--espresso-950); font-size: 29px; font-weight: 600; letter-spacing: -.035em; }
.sign-in-card-head > p { margin: 10px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.sign-in-mobile-brand { display: none; }
.sign-in-form { display: grid; gap: 20px; margin-top: 34px; }
.sign-in-field { display: grid; gap: 8px; color: #4d4844; font-size: 12px; font-weight: 500; }
.sign-in-input { display: flex; height: 46px; align-items: center; gap: 10px; padding: 0 13px; border: 1px solid #ddd8d4; border-radius: 7px; color: #958d87; background: #fff; transition: border-color .18s ease, box-shadow .18s ease; }
.sign-in-input:focus-within { border-color: var(--coffee-500); box-shadow: 0 0 0 4px rgba(157,116,88,.09); }
.sign-in-input > svg { width: 17px; height: 17px; flex: 0 0 auto; }
.sign-in-input input { width: 100%; min-width: 0; border: 0; outline: 0; color: var(--text); background: transparent; font-size: 13px; }
.sign-in-input input::placeholder { color: #aaa39d; }
.password-toggle { display: grid; width: 28px; height: 28px; flex: 0 0 auto; place-items: center; border: 0; border-radius: 5px; color: #938b85; background: transparent; cursor: pointer; }
.password-toggle:hover { color: var(--espresso-800); background: #f6f3f1; }
.password-toggle svg { width: 17px; height: 17px; }
.password-toggle .eye-closed { display: none; }
.password-toggle[aria-pressed="true"] .eye-open { display: none; }
.password-toggle[aria-pressed="true"] .eye-closed { display: block; }
.sign-in-options { display: flex; align-items: center; justify-content: space-between; margin-top: -3px; font-size: 11px; }
.remember-me { display: inline-flex; align-items: center; gap: 8px; color: #5f5955; cursor: pointer; }
.remember-me input { width: 14px; height: 14px; margin: 0; accent-color: var(--coffee-700); }
.sign-in-options > a, .sign-in-help a { color: var(--coffee-700); font-weight: 500; }
.sign-in-options > a:hover, .sign-in-help a:hover { text-decoration: underline; text-underline-offset: 3px; }
.sign-in-submit { display: inline-flex; height: 46px; align-items: center; justify-content: center; gap: 9px; border: 0; border-radius: 7px; color: #fff; background: var(--espresso-800); box-shadow: 0 7px 18px rgba(39,30,25,.12); font-size: 13px; font-weight: 600; cursor: pointer; transition: transform .18s ease, background .18s ease, box-shadow .18s ease; }
.sign-in-submit:hover { transform: translateY(-1px); background: var(--espresso-950); box-shadow: 0 9px 22px rgba(39,30,25,.17); }
.sign-in-submit:active { transform: translateY(0); }
.sign-in-submit svg { width: 16px; height: 16px; transition: transform .18s ease; }
.sign-in-submit:hover svg { transform: translateX(2px); }
.sign-in-help { margin: 28px 0 0; padding-top: 24px; border-top: 1px solid var(--border); color: var(--muted); font-size: 11px; text-align: center; }
.sign-in-footer { display: flex; width: min(410px, 100%); align-items: center; justify-content: space-between; color: #a39c96; font-size: 9px; }
.sign-in-footer span:last-child { position: relative; padding-left: 14px; }
.sign-in-footer span:last-child::before { position: absolute; top: 50%; left: 0; width: 7px; height: 7px; transform: translateY(-50%); content: ""; border: 1px solid #8d9c94; border-radius: 50%; }

.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 40; display: flex; width: var(--sidebar-width); flex-direction: column; color: #625952; background: #fff; border-right: 1px solid var(--border); transition: width .22s ease; }
.brand { display: flex; height: 68px; align-items: center; gap: 11px; padding: 0 20px; border-bottom: 1px solid var(--border); overflow: hidden; white-space: nowrap; }
.brand-logo { display: block; width: 30px; height: 30px; flex: 0 0 auto; object-fit: contain; }
.brand strong { display: block; color: var(--espresso-900); font-size: 15px; font-weight: 600; letter-spacing: .01em; }
.brand small { display: block; margin-top: 3px; color: #9a918a; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.sidebar-nav { flex: 1; padding: 15px 10px; overflow-y: auto; }
.sidebar-group + .sidebar-group { margin-top: 13px; }
.sidebar-group-toggle { display: flex; width: 100%; min-height: 25px; align-items: center; justify-content: space-between; padding: 0 10px; border: 0; color: #8d98a6; background: transparent; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-align: left; text-transform: uppercase; cursor: pointer; }
.sidebar-group-toggle:hover { color: var(--text); }
.sidebar-group-toggle svg { width: 14px; height: 14px; transition: transform .18s ease; }
.sidebar-group-toggle[aria-expanded="false"] svg { transform: rotate(-90deg); }
.sidebar-group-items { overflow: hidden; max-height: 500px; transition: max-height .2s ease, opacity .18s ease; }
.sidebar-group.is-collapsed .sidebar-group-items { max-height: 0; opacity: 0; }
.sidebar-nav a, .sidebar-bottom a { position: relative; display: flex; min-height: 36px; align-items: center; gap: 10px; margin: 1px 0; padding: 0 10px; border-radius: 7px; color: #697586; font-size: 13px; transition: .18s ease; }
.sidebar-nav a:hover, .sidebar-bottom a:hover { color: var(--espresso-900); background: #f2f3f6; }
.sidebar-nav a.active, .sidebar-bottom a.active { color: #fff; background: #000; }
.sidebar-nav a.active::before, .sidebar-bottom a.active::before { position: absolute; top: 9px; bottom: 9px; left: -10px; width: 2px; content: ""; border-radius: 0 3px 3px 0; background: #c39775; }
.sidebar-nav svg, .sidebar-bottom svg { width: 17px; height: 17px; flex: 0 0 auto; }
.sidebar-nav b { min-width: 20px; margin-left: auto; padding: 2px 5px; border-radius: 10px; color: #697586; background: #eceff2; font-size: 11px; font-weight: 600; text-align: center; }
.sidebar-bottom { padding: 10px; border-top: 1px solid var(--border); }
.sidebar-overlay { display: none; }

.app-main { min-height: 100vh; margin-left: var(--sidebar-width); }
body.sidebar-collapsed { --sidebar-width: var(--sidebar-collapsed-width); }
body.sidebar-collapsed .brand { justify-content: center; padding: 0 10px; }
body.sidebar-collapsed .brand > div, body.sidebar-collapsed .sidebar-group-toggle, body.sidebar-collapsed .sidebar-nav a > span, body.sidebar-collapsed .sidebar-nav b, body.sidebar-collapsed .sidebar-bottom a > span { display: none; }
body.sidebar-collapsed .sidebar-group + .sidebar-group { margin-top: 2px; }
body.sidebar-collapsed .sidebar-nav a, body.sidebar-collapsed .sidebar-bottom a { justify-content: center; padding: 0; }
body.sidebar-collapsed .sidebar-nav a.active::before, body.sidebar-collapsed .sidebar-bottom a.active::before { left: -10px; }
.app-main { transition: margin-left .22s ease; }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; height: 50px; align-items: center; justify-content: space-between; padding: 0 22px; border-bottom: 1px solid var(--border); background: #fff; backdrop-filter: blur(12px); }
.topbar-left, .topbar-actions { display: flex; align-items: center; }
.global-search { display: flex; width: min(330px, 30vw); height: 34px; align-items: center; gap: 8px; padding: 0 10px; border: 1px solid transparent; border-radius: 6px; color: #968e88; background: #f5f3f1; transition: .18s ease; }
.global-search:focus-within { border-color: #cbb7a8; background: #fff; box-shadow: 0 0 0 3px rgba(157,116,88,.08); }
.global-search svg { width: 15px; height: 15px; }
.global-search input { min-width: 0; flex: 1; border: 0; outline: 0; color: var(--text); background: transparent; font-size: 13px; }
.global-search input::placeholder { color: #9c9691; }
.global-search kbd { padding: 2px 5px; border: 1px solid #ddd8d4; border-radius: 4px; color: #8a827d; background: #fff; font-family: inherit; font-size: 11px; }
.topbar-actions { position: relative; gap: 12px; }
.topbar-icon, .mobile-menu-button { display: grid; width: 34px; height: 34px; place-items: center; border: 0; border-radius: 6px; color: #77706b; background: transparent; cursor: pointer; }
.topbar-icon:hover, .mobile-menu-button:hover { color: var(--text); background: #f2f3f6; }
.topbar-icon svg, .mobile-menu-button svg { width: 17px; height: 17px; }
.notification-button { position: relative; margin-right: 9px; }
.notification-button > span { position: absolute; top: 7px; right: 7px; width: 6px; height: 6px; border: 1px solid #fff; border-radius: 50%; background: #ad5b4e; }
.profile { display: flex; align-items: center; gap: 9px; padding-left: 13px; border-left: 1px solid var(--border); }
.avatar { display: grid; width: 31px; height: 31px; place-items: center; border-radius: 50%; color: #fff; background: var(--coffee-700); font-size: 12px; font-weight: 600; }
.profile strong, .profile small { display: block; line-height: 1.35; }
.profile strong { font-size: 13px; font-weight: 600; }
.profile small { color: var(--muted); font-size: 11px; }
.mobile-menu-button { display: grid; margin-right: 7px; }
.notification-menu { position: absolute; top: 45px; right: 120px; width: 330px; padding: 5px; border: 1px solid var(--border); border-radius: 9px; background: #fff; box-shadow: 0 12px 35px rgba(35,25,20,.12); }
.notification-head { display: flex; align-items: center; justify-content: space-between; padding: 10px; border-bottom: 1px solid var(--border); }
.notification-head strong { font-size: 13px; }
.notification-head button { border: 0; color: var(--coffee-700); background: transparent; font-size: 11px; cursor: pointer; }
.notification-menu > a { display: flex; gap: 10px; padding: 11px 10px; border-radius: 6px; }
.notification-menu > a:hover { background: #f2f3f6; }
.notification-type { width: 7px; height: 7px; margin-top: 5px; flex: 0 0 auto; border-radius: 50%; background: var(--coffee-500); }
.notification-type.warning { background: #c68a3d; }
.notification-type.success { background: var(--sage); }
.notification-menu a div { display: grid; gap: 3px; }
.notification-menu a strong { font-size: 12px; font-weight: 600; }
.notification-menu a small, .notification-menu time { color: var(--muted); font-size: 11px; }

.page-content { width: min(1500px, 100%); margin: 0 auto; padding: 30px 32px 48px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 22px; }
.eyebrow { margin: 0 0 5px; color: var(--muted); font-size: 12px; }
.page-heading h1 { margin: 0; font-size: 30px; font-weight: 600; letter-spacing: -.04em; }
.page-description { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.heading-actions { display: flex; gap: 8px; }
.button { display: inline-flex; height: 34px; align-items: center; justify-content: center; gap: 7px; padding: 0 13px; border: 1px solid transparent; border-radius: 6px; font-size: 13px; font-weight: 500; cursor: pointer; transition: .18s ease; }
.button svg { width: 14px; height: 14px; }
.button-primary { color: #fff; background: #000; box-shadow: 0 8px 20px rgba(0,0,0,.12); }
.button-primary:hover { background: #252a30; }
.button-secondary { border-color: #d6dbe1; color: #465160; background: #fff; }
.button-secondary:hover { border-color: #bfc7d0; background: #f8f9fb; }
.button-danger { border-color: rgba(168,77,69,.3); color: #fff; background: var(--red); }
.button-danger:hover { background: #8f4039; }

.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 12px; }
.metric-card, .panel { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.metric-card { min-height: 120px; padding: 16px; }
.metric-card-alert { border-color: #ebd8d4; }
.metric-top { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 13px; }
.metric-icon { display: grid; width: 29px; height: 29px; place-items: center; border-radius: 6px; color: var(--coffee-700); background: #f3eeea; }
.metric-icon svg { width: 15px; height: 15px; }
.metric-card-alert .metric-icon { color: var(--red); background: var(--red-bg); }
.metric-card > strong { display: block; margin-top: 10px; font-size: 24px; font-weight: 600; letter-spacing: -.035em; }
.metric-card p { margin: 8px 0 0; color: var(--soft); font-size: 12px; }
.trend { color: var(--muted); font-weight: 500; }
.trend-up { color: var(--sage); }
.trend-down { color: var(--red); }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(290px, .8fr); gap: 12px; }
.panel { min-width: 0; }
.panel-header { display: flex; min-height: 61px; align-items: center; justify-content: space-between; padding: 13px 16px; border-bottom: 1px solid var(--border); }
.panel-header h2 { margin: 0; font-size: 15px; font-weight: 600; }
.panel-header p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.panel-header a { color: var(--coffee-700); font-size: 12px; font-weight: 500; }
.panel-header a:hover { text-decoration: underline; }
.segmented-control { display: flex; padding: 2px; border: 1px solid var(--border); border-radius: 6px; background: #f7f8fa; }
.segmented-control button { height: 25px; padding: 0 9px; border: 0; border-radius: 4px; color: var(--muted); background: transparent; font-size: 11px; cursor: pointer; }
.segmented-control button.active { color: var(--text); background: #fff; box-shadow: 0 1px 2px rgba(31,24,20,.08); }
.sales-panel { min-height: 355px; }
.chart-summary { display: flex; align-items: flex-start; justify-content: space-between; padding: 16px 19px 3px; }
.chart-summary div strong, .chart-summary div span { display: block; }
.chart-summary div strong { font-size: 20px; font-weight: 600; }
.chart-summary div span { margin-top: 4px; color: var(--muted); font-size: 11px; }
.chart-wrap { position: relative; height: 238px; margin: 0 18px 8px 48px; }
.chart-axis { position: absolute; inset: 9px auto 25px -39px; display: flex; flex-direction: column; justify-content: space-between; color: #8d98a6; font-size: 11px; }
.sales-chart { width: 100%; height: 205px; overflow: visible; }
.chart-lines path { stroke: #edf0f3; stroke-width: 1; stroke-dasharray: 2 5; }
.chart-area { fill: url(#chartFill); stroke: none; }
.chart-line { fill: none; stroke: var(--coffee-500); stroke-width: 2; }
.chart-points circle { fill: #fff; stroke: var(--coffee-500); stroke-width: 2; }
.chart-labels { display: flex; justify-content: space-between; padding-top: 2px; color: #8d98a6; font-size: 11px; }
.plan-panel { min-height: 355px; }
.progress-ring-row { display: flex; align-items: center; gap: 23px; padding: 20px 18px 16px; }
.progress-ring { position: relative; display: grid; width: 94px; height: 94px; flex: 0 0 auto; place-items: center; text-align: center; }
.progress-ring svg { position: absolute; inset: 0; width: 94px; height: 94px; transform: rotate(-90deg); }
.progress-ring-track,
.progress-ring-value { fill: none; stroke-width: 9; }
.progress-ring-track { stroke: #edf0f3; }
.progress-ring-value { stroke: var(--coffee-600); stroke-linecap: round; transition: stroke-dashoffset .2s ease; }
.progress-ring > div { position: relative; z-index: 1; display: grid; width: 72px; height: 72px; place-items: center; border-radius: 50%; background: #fff; }
.progress-ring strong, .progress-ring span { display: block; }
.progress-ring strong { font-size: 17px; font-weight: 600; }
.progress-ring span { margin-top: 3px; color: var(--muted); font-size: 9px; }
.plan-stats { display: grid; flex: 1; gap: 13px; }
.plan-stats div { padding-bottom: 11px; border-bottom: 1px solid var(--border); }
.plan-stats div:last-child { padding-bottom: 0; border: 0; }
.plan-stats span, .plan-stats strong { display: block; }
.plan-stats span { color: var(--muted); font-size: 10px; }
.plan-stats strong { margin-top: 4px; font-size: 13px; font-weight: 600; }
.schedule-list { margin: 0; padding: 0 16px 13px; list-style: none; }
.schedule-list li { display: flex; min-height: 50px; align-items: center; gap: 8px; border-top: 1px solid var(--border); }
.schedule-time { width: 29px; color: var(--muted); font-size: 10px; }
.schedule-dot { width: 7px; height: 7px; flex: 0 0 auto; border: 2px solid #c5bdb8; border-radius: 50%; }
.schedule-dot.done { border-color: var(--sage); background: var(--sage); }
.schedule-dot.active { border-color: var(--coffee-600); box-shadow: 0 0 0 3px var(--coffee-100); }
.schedule-list div { min-width: 0; flex: 1; }
.schedule-list strong, .schedule-list small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.schedule-list strong { font-size: 11px; font-weight: 600; }
.schedule-list small { margin-top: 3px; color: var(--muted); font-size: 10px; }

.stock-panel, .orders-panel { grid-column: 1 / -1; }
.orders-panel { margin-bottom: 7px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; white-space: nowrap; }
th { height: 35px; padding: 0 15px; color: #697586; background: #f8f9fb; font-size: 11px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }
td { height: 53px; padding: 0 15px; border-top: 1px solid var(--border); color: #5e6b79; font-size: 12px; }
td > strong { color: var(--text); font-weight: 600; }
.product-cell, .customer-cell { display: flex; align-items: center; gap: 9px; }
.product-mark, .customer-cell > span { display: grid; width: 29px; height: 29px; flex: 0 0 auto; place-items: center; border-radius: 6px; color: #fff; background: var(--coffee-700); font-size: 10px; font-weight: 600; }
.country-badge-default { background: #6f4f3d; }
.country-badge-brazil { background: #2f7d4b; }
.country-badge-colombia { background: #c18b2f; }
.country-badge-ethiopia { background: #a34f45; }
.country-badge-kenya { background: #9d3d3d; }
.country-badge-guatemala { background: #4d7691; }
.country-badge-honduras { background: #497b91; }
.country-badge-costa-rica { background: #b9574c; }
.country-badge-peru { background: #a34845; }
.country-badge-mexico { background: #4f7b56; }
.country-badge-tanzania { background: #4d7890; }
.country-badge-uganda { background: #587a4b; }
.country-badge-rwanda { background: #52768d; }
.country-badge-burundi { background: #8e4b4a; }
.country-badge-india { background: #b87535; }
.country-badge-indonesia { background: #a94d49; }
.country-badge-vietnam { background: #a94742; }
.country-badge-ecuador { background: #b28a31; }
.country-badge-bolivia { background: #7b6743; }
.country-badge-panama { background: #4d7d7b; }
.country-badge-0 { background: #4f7462; }
.country-badge-1 { background: #51708a; }
.country-badge-2 { background: #9a6b2c; }
.country-badge-3 { background: #8b5e83; }
.country-badge-4 { background: #3f7a78; }
.country-badge-5 { background: #a84d45; }
.country-badge-6 { background: #6c6a3f; }
.country-badge-7 { background: #70558b; }
.mark-gold { background: #a88451; }
.mark-green { background: #667a60; }
.mark-red { background: #91605a; }
.product-cell strong, .product-cell small, .customer-cell strong, .customer-cell small { display: block; }
.product-cell strong, .customer-cell strong { color: var(--text); font-size: 11px; font-weight: 600; }
.product-cell small, .customer-cell small { margin-top: 3px; color: var(--soft); font-size: 10px; }
.customer-cell > span { border-radius: 50%; color: var(--coffee-700); background: #eee6e0; }
.status { display: inline-flex; min-height: 20px; align-items: center; padding: 0 7px; border-radius: 4px; color: #697586; background: #eef0f3; font-size: 11px; font-weight: 500; }
.status-success { color: var(--sage); background: var(--sage-bg); }
.status-warning { color: var(--amber); background: var(--amber-bg); }
.status-danger { color: var(--red); background: var(--red-bg); }
.status-progress { color: var(--blue); background: var(--blue-bg); }
.icon-button { width: 28px; height: 28px; border: 0; border-radius: 5px; color: #8c8580; background: transparent; font-size: 12px; cursor: pointer; }
.icon-button:hover { color: var(--text); background: #f2f3f6; }
.table-tools { display: flex; align-items: center; justify-content: space-between; padding: 10px 15px; border-bottom: 1px solid var(--border); }
.table-search { display: flex; width: 250px; height: 30px; align-items: center; gap: 7px; padding: 0 9px; border: 1px solid var(--border); border-radius: 5px; color: var(--soft); background: #fff; }
.table-search svg { width: 13px; height: 13px; }
.table-search input { width: 100%; border: 0; outline: 0; color: var(--text); background: transparent; font-size: 12px; }
.table-tools select { height: 30px; padding: 0 25px 0 9px; border: 1px solid var(--border); border-radius: 5px; outline: 0; color: #68615d; background: #fff; font-size: 12px; }
.empty-state { display: none; margin: 0; padding: 35px; color: var(--muted); text-align: center; font-size: 12px; }
.empty-state.visible { display: block; }
.modal-backdrop { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 18px; background: rgba(31,24,20,.5); }
.modal { width: min(480px, 100%); border: 1px solid rgba(255,255,255,.2); border-radius: 10px; background: #fff; box-shadow: 0 22px 60px rgba(27,18,13,.23); animation: modal-in .18s ease-out; }
@keyframes modal-in { from { transform: translateY(8px) scale(.985); opacity: 0; } }
.modal-header { display: flex; align-items: flex-start; justify-content: space-between; padding: 18px; border-bottom: 1px solid var(--border); }
.modal-header h2 { margin: 0; font-size: 16px; font-weight: 600; }
.modal-header p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.modal-close { font-size: 20px; }
.modal form { padding: 18px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.form-grid label { position: relative; display: grid; gap: 6px; color: #5e5854; font-size: 12px; font-weight: 500; }
.phone-input { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 6px; }
.phone-input select { min-width: 0; }
.field-label-text { display: inline-flex; width: max-content; max-width: 100%; align-items: flex-start; gap: 4px; }
.required-star { color: var(--red); font-size: 13px; font-weight: 700; line-height: 1; }
.form-grid input, .form-grid select { width: 100%; height: 34px; padding: 0 10px; border: 1px solid #d6dbe1; border-radius: 5px; outline: 0; color: var(--text); background: #fff; font-size: 13px; }
.form-grid input:focus, .form-grid select:focus { border-color: var(--coffee-500); box-shadow: 0 0 0 3px rgba(157,116,88,.09); }
.form-full { grid-column: 1 / -1; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; padding-top: 15px; border-top: 1px solid var(--border); }
.checkbox-field { display: flex !important; min-height: 34px; align-items: center; gap: 8px; padding-top: 18px; }
.checkbox-field input { width: 14px !important; height: 14px !important; accent-color: var(--red); }
.checkbox-field::before { content: none !important; }
.customer-settings-modal .form-grid { grid-template-columns: 1fr; }
.customer-settings-modal .checkbox-field { min-height: 0; padding-top: 0; }
.danger-form { margin: 0 18px 18px; padding: 14px 0 0 !important; border-top: 1px solid var(--border); }
.danger-form .button { width: 100%; }
.toast { position: fixed; right: 22px; bottom: 22px; z-index: 120; max-width: 330px; transform: translateY(15px); padding: 11px 14px; border-radius: 7px; color: #fff; background: var(--espresso-800); box-shadow: 0 10px 30px rgba(31,24,20,.18); font-size: 12px; opacity: 0; pointer-events: none; transition: .2s ease; }
.toast.visible { transform: translateY(0); opacity: 1; }
.notice { padding: 11px 14px; border: 1px solid var(--border); border-radius: 7px; color: #4f4741; background: #fff; font-size: 12px; }
.notice-success { border-color: rgba(83,122,99,.25); color: var(--green); background: rgba(83,122,99,.08); }
.notice-error { border-color: rgba(177,75,69,.25); color: var(--red); background: rgba(177,75,69,.08); }

/* Management list pages */
.summary-strip { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 14px; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.summary-strip > div { min-height: 96px; padding: 17px 19px; border-right: 1px solid var(--border); }
.summary-strip > div:last-child { border-right: 0; }
.summary-strip span, .summary-strip strong, .summary-strip small { display: block; }
.summary-strip span { color: var(--muted); font-size: 12px; }
.summary-strip strong { margin-top: 8px; font-size: 21px; font-weight: 600; letter-spacing: -.025em; }
.summary-strip small { margin-top: 5px; color: var(--soft); font-size: 10px; }
.bulk-netsis-actions { display: flex; align-items: center; gap: 8px; }
.bulk-netsis-actions > span:first-child { color: var(--muted); font-size: 10px; white-space: nowrap; }
.bulk-netsis-actions input[type="checkbox"] { width: 14px; height: 14px; }
.evening-date-nav { display: flex; align-items: flex-end; gap: 4px; }
.evening-date-nav .button { min-width: 30px; padding: 0 8px; font-size: 15px; }
.block-report-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.block-report-grid .panel { min-width: 0; }
.text-success { color: var(--sage) !important; }
.text-warning { color: var(--amber) !important; }
.text-danger { color: var(--red) !important; }
.list-panel { overflow: hidden; }
.list-toolbar { display: flex; min-height: 62px; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 15px; border-bottom: 1px solid var(--border); }
.tabs { display: flex; align-items: center; gap: 3px; }
.tabs button { display: inline-flex; height: 32px; align-items: center; gap: 6px; padding: 0 10px; border: 0; border-radius: 5px; color: var(--muted); background: transparent; font-size: 11px; cursor: pointer; }
.tabs button:hover { color: var(--text); background: #f2f3f6; }
.tabs button.active { color: var(--text); background: var(--coffee-100); font-weight: 500; }
.tabs button span { min-width: 18px; padding: 1px 5px; border-radius: 8px; color: #79675c; background: rgba(255,255,255,.65); font-size: 9px; text-align: center; }
.toolbar-actions { display: flex; align-items: center; gap: 7px; }
.table-search.wide { width: 270px; }
.toolbar-actions select, .filter-button { height: 32px; border: 1px solid var(--border); border-radius: 5px; color: #625c58; background: #fff; font-size: 12px; }
.toolbar-actions select { min-width: 130px; padding: 0 27px 0 9px; }
.filter-button { display: inline-flex; align-items: center; gap: 6px; padding: 0 10px; cursor: pointer; }
.filter-button:hover { border-color: #cfc7c1; background: #faf8f7; }
.filter-button svg { width: 13px; height: 13px; }
.management-table th:first-child, .management-table td:first-child { padding-left: 18px; }
.management-table th:last-child, .management-table td:last-child { width: 42px; padding-right: 15px; text-align: right; }
.management-table td { height: 64px; }
.management-table td > small, .management-table td > strong + small { display: block; margin-top: 4px; color: var(--soft); font-size: 9px; }
.stock-table { width: 100%; min-width: 1180px; table-layout: fixed; }
.stock-table th, .stock-table td { overflow: hidden; text-overflow: ellipsis; }
.stock-table td:nth-child(7) { overflow: visible; }
.stock-table td { height: 94px; vertical-align: middle; }
.stock-table th:first-child { width: 245px; }
.stock-table th:nth-child(2) { width: 90px; }
.stock-table th:nth-child(3) { width: 112px; }
.stock-table th:nth-child(4) { width: 105px; }
.stock-table th:nth-child(5), .stock-table th:nth-child(6), .stock-table th:nth-child(7) { width: 105px; }
.stock-table th:nth-child(8) { width: 135px; }
.stock-table th:last-child, .stock-table td:last-child { width: 96px; padding-right: 15px; text-align: left; }
.stock-product-cell > div { min-width: 0; }
.stock-product-meta { display: block; max-width: 200px; margin-top: 3px; overflow: hidden; color: var(--muted); font-size: 8px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.stock-lot strong, .stock-lot small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stock-lot strong { color: var(--text); font-size: 10px; font-weight: 600; }
.stock-lot small { margin-top: 5px; color: var(--muted); font-size: 8px; }
.stock-balance strong { display: block; color: var(--text); font-size: 13px; font-weight: 600; }
.stock-balance > span { display: flex; gap: 10px; margin-top: 7px; }
.stock-balance small { color: var(--soft); font-size: 8px; }
.stock-balance b { margin-left: 3px; color: var(--muted); font-weight: 500; }
.stock-blocked { position: relative; display: inline-block; outline: none; }
.stock-tooltip { position: absolute; z-index: 20; left: 0; bottom: calc(100% + 8px); width: 220px; padding: 9px 10px; border: 1px solid #ded8d2; border-radius: 6px; color: #4f4945; background: #fff; box-shadow: 0 12px 28px rgba(49, 37, 29, .14); font-size: 10px; line-height: 1.45; opacity: 0; pointer-events: none; transform: translateY(4px); transition: opacity .14s ease, transform .14s ease; }
.stock-blocked:hover .stock-tooltip, .stock-blocked:focus .stock-tooltip { opacity: 1; transform: translateY(0); }
.management-table input[type="checkbox"] { width: 13px; height: 13px; margin: 0; accent-color: var(--coffee-700); }
.table-footer { display: flex; min-height: 54px; align-items: center; justify-content: space-between; padding: 9px 15px; border-top: 1px solid var(--border); color: var(--muted); font-size: 10px; }
.pagination { display: flex; gap: 3px; }
.pagination button { display: grid; width: 28px; height: 28px; place-items: center; border: 1px solid var(--border); border-radius: 4px; color: var(--muted); background: #fff; font-size: 10px; cursor: pointer; }
.pagination button:hover:not(:disabled), .pagination button.active { border-color: var(--coffee-700); color: #fff; background: var(--coffee-700); }
.pagination button:disabled { opacity: .45; cursor: default; }
.inventory-layout, .customer-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; align-items: start; gap: 12px; }
.inventory-layout-full { grid-template-columns: 1fr; }
.customer-layout { grid-template-columns: minmax(0, 1fr); }
.activity-panel, .customer-insight { overflow: hidden; }
.activity-list { margin: 0; padding: 0 16px; list-style: none; }
.activity-list li { display: flex; gap: 11px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.activity-list-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 18px; }
.activity-list-grid li:nth-last-child(-n+3) { border-bottom: 0; }
.stock-activity-dock { margin-top: 12px; }
.activity-icon { display: grid; width: 28px; height: 28px; flex: 0 0 auto; place-items: center; border-radius: 50%; color: var(--sage); background: var(--sage-bg); font-size: 14px; font-weight: 500; }
.activity-icon.out { color: var(--red); background: var(--red-bg); }
.activity-icon.move { color: var(--blue); background: var(--blue-bg); }
.activity-icon.count { color: var(--amber); background: var(--amber-bg); }
.activity-list strong, .activity-list small, .activity-list time { display: block; }
.activity-list strong { font-size: 11px; font-weight: 600; }
.activity-list small { margin-top: 4px; color: #625d59; font-size: 10px; }
.activity-list time { margin-top: 4px; color: var(--soft); font-size: 9px; }
.activity-link { width: 100%; height: 42px; border: 0; color: var(--coffee-700); background: #fff; font-size: 10px; font-weight: 500; cursor: pointer; }
.activity-link:hover { background: #faf8f7; }
.product-large .product-mark, .customer-large > span { width: 34px; height: 34px; }
.segment { display: inline-flex; padding: 4px 7px; border-radius: 4px; color: #6e5140; background: var(--coffee-100); font-size: 9px; font-weight: 500; }
.segment-bayii { color: var(--blue); background: var(--blue-bg); }
.segment-cafe { color: var(--sage); background: var(--sage-bg); }
.product-filter-actions { flex-wrap: wrap; }
.product-filter-actions select { min-width: 118px; }
.product-management-table { min-width: 1320px; }
.product-management-table th:first-child { min-width: 280px; }
.product-note-status { display: inline-flex; max-width: 120px; align-items: center; padding: 4px 7px; overflow: hidden; border-radius: 4px; color: #5f554f; background: #f2efec; font-size: 9px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; cursor: help; }
.product-warehouse-list strong { color: var(--text); }
.donut-wrap { display: grid; place-items: center; padding: 22px 0 14px; }
.donut { display: grid; width: 118px; height: 118px; place-content: center; border-radius: 50%; background: radial-gradient(circle at center, #fff 0 54%, transparent 55%), conic-gradient(var(--espresso-800) 0 41%, var(--coffee-500) 41% 74%, #789080 74%); text-align: center; }
.donut strong, .donut span { display: block; }
.donut strong { font-size: 20px; font-weight: 600; }
.donut span { margin-top: 2px; color: var(--muted); font-size: 9px; }
.legend-list { margin: 0; padding: 0 18px 14px; list-style: none; }
.legend-list li { display: flex; align-items: center; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--border); }
.legend-list li:last-child { border: 0; }
.legend-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--espresso-800); }
.legend-dot.brown { background: var(--coffee-500); }
.legend-dot.sage { background: #789080; }
.legend-list div { flex: 1; }
.legend-list strong, .legend-list small { display: block; }
.legend-list strong { font-size: 10px; font-weight: 500; }
.legend-list small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.legend-list b { font-size: 10px; font-weight: 600; }
.insight-note { margin: 0 16px 16px; padding: 13px; border-radius: 6px; background: #f6f2ef; }
.insight-note span, .insight-note strong, .insight-note small { display: block; }
.insight-note span { color: var(--muted); font-size: 9px; }
.insight-note strong { margin-top: 5px; font-size: 11px; }
.insight-note small { margin-top: 3px; color: var(--coffee-700); font-size: 9px; }
.customer-insight-horizontal { display: grid; grid-template-columns: 210px 150px minmax(260px, 1fr) 210px; align-items: stretch; gap: 0; margin-bottom: 12px; }
.customer-insight-horizontal .panel-header { border-right: 1px solid var(--border); border-bottom: 0; }
.customer-insight-horizontal .donut-wrap { padding: 12px; border-right: 1px solid var(--border); }
.customer-insight-horizontal .donut { width: 92px; height: 92px; }
.customer-insight-horizontal .donut strong { font-size: 18px; }
.customer-insight-horizontal .legend-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-content: center; gap: 0; padding: 8px 14px; }
.customer-insight-horizontal .legend-list li { min-width: 0; padding: 8px 10px; border-right: 1px solid var(--border); border-bottom: 0; }
.customer-insight-horizontal .legend-list li:last-child { border-right: 0; }
.customer-insight-horizontal .insight-note { align-self: center; margin: 14px 16px; }
.customer-table { min-width: 1080px; }
.customer-table th:first-child { min-width: 220px; }
.customer-name-link, .product-name-link { color: var(--text); font-size: 11px; font-weight: 600; }
.customer-name-link:hover, .product-name-link:hover { color: var(--coffee-700); text-decoration: underline; text-underline-offset: 3px; }
.modal-large { width: min(900px, calc(100vw - 32px)); max-height: calc(100vh - 36px); overflow: hidden; }
.modal-large form { padding: 0; }
.quote-approval-modal { display: flex; flex-direction: column; }
.quote-approval-form { max-height: calc(100vh - 116px); overflow-y: auto; }
.quote-approval-form .form-grid { padding: 18px; }
.customer-form-body, .product-form-body { max-height: calc(100vh - 180px); padding: 18px; overflow-y: auto; background: #faf9f8; }
.customer-create-form { overflow: hidden; }
.customer-create-form .customer-form-body, .customer-create-form .product-form-body { max-height: none; overflow: visible; }
.form-section { margin-bottom: 14px; overflow: hidden; border: 1px solid var(--border); border-radius: 8px; background: #fff; }
.form-section:last-child { margin-bottom: 0; }
.form-section-title { display: flex; align-items: center; gap: 10px; padding: 13px 15px; border-bottom: 1px solid var(--border); }
.form-section-title > span { display: grid; width: 27px; height: 27px; flex: 0 0 auto; place-items: center; border-radius: 50%; color: var(--coffee-700); background: var(--coffee-100); font-size: 9px; font-weight: 600; }
.form-section-title h3, .form-section-title p { margin: 0; }
.form-section-title h3 { font-size: 12px; font-weight: 600; }
.form-section-title p { margin-top: 3px; color: var(--muted); font-size: 9px; }
.form-section .form-grid { padding: 15px; }
.form-grid-3 { grid-template-columns: repeat(3, 1fr); }
.form-span-2 { grid-column: span 2; }
.form-span-3 { grid-column: 1 / -1; }
.form-grid textarea { width: 100%; min-height: 58px; padding: 9px 10px; resize: vertical; border: 1px solid #ddd8d4; border-radius: 5px; outline: 0; color: var(--text); background: #fff; font: inherit; font-size: 12px; line-height: 1.45; }
.form-grid textarea:focus { border-color: var(--coffee-500); box-shadow: 0 0 0 3px rgba(157,116,88,.09); }
.packaging-field { display: grid; grid-template-columns: minmax(0, 1fr) 68px; gap: 6px; }
.packaging-field input, .packaging-field select { min-width: 0; }
.tag-input { display: flex; width: 100%; min-height: 34px; align-items: center; flex-wrap: wrap; gap: 5px; padding: 4px 7px; border: 1px solid #ddd8d4; border-radius: 5px; background: #fff; }
.tag-input:focus-within { border-color: var(--coffee-500); box-shadow: 0 0 0 3px rgba(157,116,88,.09); }
.tag-list { display: contents; }
.tag-input input[data-tag-entry] { width: auto; min-width: 150px; flex: 1; height: 24px; padding: 0 3px; border: 0; outline: 0; box-shadow: none; font-size: 12px; }
.tag-chip { display: inline-flex; max-width: 100%; min-height: 24px; align-items: center; gap: 6px; padding: 0 4px 0 7px; border: 1px solid #d5cbc3; border-radius: 4px; color: var(--coffee-800); background: var(--coffee-100); font: inherit; font-size: 10px; font-weight: 500; }
.tag-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tag-chip button { display: grid; width: 18px; height: 18px; place-items: center; border: 0; border-radius: 3px; color: var(--coffee-700); background: transparent; font: inherit; font-size: 12px; line-height: 1; cursor: pointer; }
.tag-chip button:hover { background: rgba(111,78,55,.12); }
.datalist-menu { position: fixed; z-index: 3000; max-height: 210px; padding: 4px; overflow-y: auto; border: 1px solid #d5cbc3; border-radius: 6px; box-shadow: 0 8px 18px rgba(50,38,30,.16); background: #fff; }
.datalist-option { display: block; width: 100%; padding: 8px 9px; border: 0; border-radius: 4px; color: var(--text); background: transparent; text-align: left; font: inherit; font-size: 11px; cursor: pointer; }
.datalist-option:hover, .datalist-option:focus { color: var(--coffee-800); background: var(--coffee-100); outline: 0; }
.delivery-title > div { flex: 1; }
.button-small { height: 30px; padding: 0 10px; font-size: 10px; }
.delivery-list { display: grid; gap: 10px; padding: 14px; }
.delivery-card { overflow: hidden; border: 1px solid var(--border); border-radius: 7px; background: #fcfbfa; }
.delivery-card-head { display: flex; min-height: 38px; align-items: center; justify-content: space-between; padding: 0 13px; border-bottom: 1px solid var(--border); }
.delivery-card-head strong { font-size: 10px; font-weight: 600; }
.delivery-card-head button { border: 0; color: var(--red); background: transparent; font-size: 9px; cursor: pointer; }
.delivery-card-head button:disabled { color: var(--soft); cursor: default; }
.delivery-card .form-grid { padding: 13px; }
.modal-actions-sticky { margin: 0; padding: 13px 18px; background: #fff; }
.modal-order { width: min(1120px, calc(100vw - 32px)); max-height: calc(100vh - 28px); overflow: hidden; }
.modal-order .modal-header { position: relative; z-index: 2; background: #fff; }
.modal-order .form-section { position: relative; overflow: visible; }
.modal-order .form-section:focus-within { z-index: 4; }
.order-entry-form { position: relative; display: flex; max-height: calc(100vh - 105px); flex-direction: column; padding: 0 !important; }
.order-form-body { flex: 1; padding: 16px; overflow-y: auto; background: #f7f5f3; }
.order-page-panel { overflow: visible; }
.order-page-panel .modal-header { border-bottom: 1px solid var(--border); }
.order-page-panel .order-entry-form { max-height: none; }
.order-page-panel .order-form-body { overflow: visible; }
.order-page-panel .form-section { position: relative; overflow: visible; }
.order-page-panel .form-section:focus-within { z-index: 4; }
.order-products-title > div { flex: 1; }
.order-items { padding: 7px 14px 14px; }
.order-items-table-head { display: grid; grid-template-columns: minmax(280px, 2.3fr) minmax(120px, .95fr) 82px 78px minmax(115px, .95fr) 105px 110px 72px 28px; gap: 8px; margin: 0 14px; padding: 9px 6px 4px; color: var(--muted); font-size: 9px; font-weight: 600; text-transform: uppercase; }
.order-product-row { display: grid; grid-template-columns: minmax(280px, 2.3fr) minmax(120px, .95fr) 82px 78px minmax(115px, .95fr) 105px 110px 72px 28px; align-items: end; gap: 8px; padding: 12px 0 14px; border-bottom: 1px solid var(--border); }
.order-product-row:not(.is-filled) { grid-template-columns: minmax(260px, 2.3fr) minmax(120px, .95fr) 130px 130px 28px; grid-template-areas: "product product lot quantity unit" "warehouse price total vat remove"; row-gap: 12px; padding: 15px 6px 16px; border: 1px solid #d8d0ca; border-radius: 7px; background: #fff; }
.order-product-main { grid-area: product; }
.order-product-lot { grid-area: lot; }
.order-product-quantity { grid-area: quantity; }
.order-product-unit { grid-area: unit; }
.order-product-warehouse { grid-area: warehouse; }
.order-product-price { grid-area: price; }
.order-product-total { grid-area: total; }
.order-product-vat { grid-area: vat; }
.order-product-row:not(.is-filled) .order-item-remove { grid-area: remove; }
.order-product-row.is-filled > * { grid-area: auto; }
.order-product-row.is-filled > label { color: transparent; }
.order-product-row.is-filled .searchable-input { color: #9a938d; }
.order-product-row.is-filled { padding-right: 6px; padding-left: 6px; border-radius: 6px; background: rgba(255,255,255,.62); }
.order-product-row:last-child { padding-bottom: 0; border-bottom: 0; }
.order-product-row:not(.is-filled):last-child { padding-bottom: 16px; border-bottom: 1px solid #d8d0ca; }
.order-product-row label { display: grid; min-width: 0; gap: 6px; color: #5e5854; font-size: 10px; font-weight: 500; }
.order-product-row input, .order-product-row select { width: 100%; min-width: 0; height: 34px; padding: 0 8px; border: 1px solid #ddd8d4; border-radius: 5px; outline: 0; color: var(--text); background: #fff; font-size: 11px; }
.order-product-row input:focus, .order-product-row select:focus { border-color: var(--coffee-500); box-shadow: 0 0 0 3px rgba(157,116,88,.09); }
.order-product-row input[readonly] { color: #6f6863; background: #f6f4f2; }
.searchable-select { position: relative; display: block; min-width: 0; }
.searchable-input { display: flex; min-width: 0; height: 34px; align-items: center; gap: 6px; padding: 0 8px; border: 1px solid #ddd8d4; border-radius: 5px; color: #9a938d; background: #fff; }
.searchable-input:focus-within { border-color: var(--coffee-500); box-shadow: 0 0 0 3px rgba(157,116,88,.09); }
.searchable-input svg { width: 13px; height: 13px; flex: 0 0 auto; }
.searchable-input .searchable-chevron { width: 14px; height: 14px; margin-left: auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .16s ease; }
.searchable-select.open .searchable-chevron { transform: rotate(180deg); }
.searchable-input input { height: 32px !important; padding: 0 !important; border: 0 !important; background: transparent !important; box-shadow: none !important; }
.searchable-input input::placeholder { color: #aaa39d; }
.searchable-options { position: absolute; z-index: 20; top: calc(100% + 5px); right: 0; left: 0; max-height: 190px; padding: 5px; overflow-y: auto; border: 1px solid #d9d2cc; border-radius: 7px; background: #fff; box-shadow: 0 12px 28px rgba(42,32,26,.14); }
.searchable-option { display: flex; width: 100%; min-height: 34px; align-items: center; padding: 7px 9px; border: 0; border-radius: 5px; color: var(--text); background: transparent; font: inherit; font-size: 11px; text-align: left; cursor: pointer; }
.searchable-option:hover, .searchable-option.active { background: #f1ece8; color: var(--coffee-800); }
.searchable-empty { display: block; padding: 10px 9px; color: var(--muted); font-size: 10px; text-align: center; }
.form-grid .searchable-input { height: 34px; }
.form-grid .searchable-input input { width: 100%; min-width: 0; outline: 0; color: var(--text); font-size: 12px; }
.order-item-remove { display: grid; width: 28px; height: 34px; place-items: center; border: 0; border-radius: 5px; color: var(--red); background: transparent; font-size: 17px; cursor: pointer; }
.order-item-remove:hover:not(:disabled) { background: var(--red-bg); }
.order-item-remove:disabled { color: #c8c2bd; cursor: default; }
.money-input { display: flex; height: 34px; align-items: center; border: 1px solid #ddd8d4; border-radius: 5px; background: #fff; }
.money-input:focus-within { border-color: var(--coffee-500); box-shadow: 0 0 0 3px rgba(157,116,88,.09); }
.money-input > span { padding-left: 10px; color: var(--muted); font-size: 11px; }
.money-input input { height: 32px; padding-left: 5px; border: 0; box-shadow: none !important; }
.money-input.readonly { background: #f6f4f2; }
.money-input.readonly input { background: transparent; }
.order-preview { overflow: hidden; border: 1px solid #d8d0c9; border-radius: 8px; background: #fff; box-shadow: 0 4px 16px rgba(39,30,25,.04); }
.order-preview-head { display: flex; min-height: 69px; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 17px; color: #fff; background: var(--espresso-800); }
.order-preview-head span { display: block; margin-bottom: 5px; color: #b8aaa1; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.order-preview-head h3 { margin: 0; font-size: 15px; font-weight: 600; }
.order-preview-head-actions { display: flex; align-items: center; gap: 14px; }
.order-preview-head-actions > strong { color: #d2c6be; font-size: 10px; font-weight: 500; white-space: nowrap; }
.order-preview-download { display: inline-flex; min-height: 32px; align-items: center; gap: 7px; padding: 0 11px; border: 1px solid rgba(255,255,255,.28); border-radius: 6px; color: #fff; background: rgba(255,255,255,.08); font: inherit; font-size: 10px; font-weight: 600; cursor: pointer; transition: background .18s ease, border-color .18s ease; }
.order-preview-download:hover { border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.16); }
.order-preview-download svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.order-preview-meta { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--border); }
.order-preview-meta > div { padding: 13px 16px; border-right: 1px solid var(--border); }
.order-preview-meta > div:last-child { border: 0; }
.order-preview-meta span, .order-preview-meta strong, .order-preview-meta small { display: block; }
.order-preview-meta span { color: var(--muted); font-size: 9px; }
.order-preview-meta strong { margin-top: 4px; font-size: 11px; font-weight: 600; }
.order-preview-meta small { margin-top: 4px; color: var(--muted); font-size: 9px; line-height: 1.45; }
.order-preview-table { padding: 5px 16px; border-bottom: 1px solid var(--border); }
.order-preview-row { display: grid; grid-template-columns: minmax(220px, 1.8fr) .6fr .7fr .7fr; align-items: center; gap: 12px; min-height: 48px; color: #5e5854; font-size: 10px; }
.order-preview-row > :last-child { text-align: right; }
.order-preview-row strong, .order-preview-row small { display: block; }
.order-preview-row strong { color: var(--text); font-size: 11px; font-weight: 600; }
.order-preview-row small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.order-preview-labels { min-height: 31px; border-bottom: 1px solid var(--border); color: #948d87; font-size: 9px; text-transform: uppercase; }
.order-preview-table [data-preview-items] .order-preview-row { border-bottom: 1px solid var(--border); }
.order-preview-table [data-preview-items] .order-preview-row:last-child { border-bottom: 0; }
.order-preview-totals { width: min(330px, 100%); margin-left: auto; padding: 12px 16px 14px; }
.order-preview-totals > div { display: flex; align-items: center; justify-content: space-between; min-height: 28px; color: var(--muted); font-size: 10px; }
.order-preview-totals strong { color: var(--text); font-size: 11px; font-weight: 600; }
.order-preview-totals .order-preview-grand { min-height: 39px; margin-top: 5px; padding-top: 8px; border-top: 1px solid var(--border); color: var(--text); font-weight: 600; }
.order-preview-grand strong { font-size: 16px; }
.order-modal-actions { z-index: 2; justify-content: flex-end; gap: 9px; border-top: 1px solid var(--border); box-shadow: 0 -8px 18px rgba(39,30,25,.04); }
.order-modal-actions .button { min-width: 155px; }
.product-query-page { padding-bottom: 30px; }
.product-query-heading { margin-bottom: 12px; }
.product-query-search { margin-bottom: 12px; }
.product-query-search > label { display: block; margin-bottom: 7px; color: var(--muted); font-size: 10px; font-weight: 500; }
.product-query-search-control { position: relative; display: flex; width: min(710px, 100%); height: 43px; align-items: center; gap: 9px; padding: 0 13px; border: 1px solid #cbc4be; border-radius: 7px; background: #fff; box-shadow: 0 2px 6px rgba(39,30,25,.03); }
.product-query-search-control:focus-within { border-color: var(--coffee-500); box-shadow: 0 0 0 3px rgba(157,116,88,.1); }
.product-query-search-control > svg { width: 17px; height: 17px; flex: 0 0 auto; fill: none; stroke: #8d857f; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.product-query-search-control input { width: 100%; height: 39px; border: 0; outline: 0; color: var(--text); background: transparent; font: inherit; font-size: 12px; }
.product-query-search-control .query-chevron { width: 15px; height: 15px; transition: transform .16s ease; }
.product-query-search-control.open .query-chevron { transform: rotate(180deg); }
.product-query-options { position: absolute; z-index: 15; top: calc(100% + 6px); right: 0; left: 0; padding: 6px; border: 1px solid var(--border); border-radius: 8px; background: #fff; box-shadow: 0 14px 34px rgba(40,30,24,.14); }
.product-query-option { display: flex; width: 100%; align-items: center; gap: 10px; padding: 9px 10px; border: 0; border-radius: 6px; color: var(--text); background: transparent; font: inherit; text-align: left; cursor: pointer; }
.product-query-option:hover, .product-query-option.active { background: #f3efeb; }
.product-query-option b { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 7px; color: #fff; background: var(--coffee-700); font-size: 10px; }
.product-query-option span { display: grid; gap: 3px; font-size: 11px; }
.product-query-option small { color: var(--muted); font-size: 9px; }
.product-query-empty { display: block; padding: 12px; color: var(--muted); font-size: 10px; text-align: center; }
.product-query-heading .button.disabled { opacity: .45; pointer-events: none; }
.product-query-blank { display: grid; min-height: 360px; place-items: center; align-content: center; padding: 50px 24px; text-align: center; }
.product-query-blank > span { display: grid; width: 58px; height: 58px; place-items: center; border-radius: 14px; color: var(--coffee-700); background: var(--coffee-100); }
.product-query-blank svg { width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.product-query-blank h2 { margin: 18px 0 0; font-size: 16px; font-weight: 600; }
.product-query-blank p { max-width: 450px; margin: 8px 0 20px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.product-query-identity { display: flex; min-height: 94px; align-items: center; gap: 16px; margin-bottom: 10px; padding: 15px 18px; }
.product-query-mark { display: grid; width: 58px; height: 58px; flex: 0 0 auto; place-items: center; border-radius: 10px; color: #fff; background: var(--coffee-600); font-size: 20px; font-weight: 600; }
.product-query-title h2 { margin: 0 0 10px; font-size: 19px; font-weight: 600; }
.product-query-title > div { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; color: var(--muted); font-size: 10px; }
.product-query-title i { width: 3px; height: 3px; border-radius: 50%; background: #a79f99; }
.product-query-title strong { color: #5e5752; font-weight: 500; }
.product-query-metrics { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 10px; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.product-query-metrics article { display: flex; min-height: 91px; align-items: center; gap: 12px; padding: 14px 17px; border-right: 1px solid var(--border); }
.product-query-metrics article:last-child { border: 0; }
.product-query-metrics article > div { min-width: 0; }
.product-query-metrics article span, .product-query-metrics article strong, .product-query-metrics article small { display: block; }
.product-query-metrics article > div > span { color: var(--muted); font-size: 10px; }
.product-query-metrics article strong { margin-top: 5px; font-size: 18px; font-weight: 600; white-space: nowrap; }
.product-query-metrics article small { margin-top: 4px; color: var(--soft); font-size: 9px; }
.query-metric-icon { display: grid !important; width: 39px; height: 39px; flex: 0 0 auto; place-items: center; border-radius: 8px; color: #706863; background: #f0eeec; }
.query-metric-icon.stock { color: #39864a; background: #edf7ef; }
.query-metric-icon.reserved { color: #c48400; background: #fff5dc; }
.query-metric-icon.sale { color: #a66f42; background: #f8eee5; }
.query-metric-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.text-success { color: var(--green) !important; }
.text-warning { color: #c48500 !important; }
.product-query-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(350px, .85fr); align-items: start; gap: 10px; margin-bottom: 10px; }
.product-query-column { display: grid; gap: 10px; }
.query-panel { overflow: hidden; }
.query-panel > header { display: flex; min-height: 54px; align-items: center; justify-content: space-between; gap: 16px; padding: 11px 15px; border-bottom: 1px solid var(--border); }
.query-panel > header h2, .query-panel > header p { margin: 0; }
.query-panel > header h2 { font-size: 12px; font-weight: 600; }
.query-panel > header p { margin-top: 4px; color: var(--muted); font-size: 9px; }
.query-panel > header > span { color: var(--muted); font-size: 9px; }
.query-panel > header > button { border: 0; color: var(--coffee-700); background: transparent; font: inherit; font-size: 9px; font-weight: 500; cursor: pointer; }
.query-table { width: 100%; border-collapse: collapse; font-size: 9px; }
.query-table th { height: 34px; padding: 0 12px; color: #8c847e; background: #faf9f8; font-size: 8px; font-weight: 600; text-align: left; text-transform: uppercase; white-space: nowrap; }
.query-table td { height: 42px; padding: 7px 12px; border-top: 1px solid var(--border); color: #5d5651; white-space: nowrap; }
.query-table td:first-child { color: var(--text); font-weight: 600; }
.query-table .movement-positive { color: var(--green); font-weight: 600; }
.query-table .movement-negative { color: var(--red); font-weight: 600; }
.warehouse-progress { display: flex; min-width: 120px; align-items: center; gap: 7px; }
.warehouse-progress span { width: 82px; height: 6px; overflow: hidden; border-radius: 4px; background: #ebe8e5; }
.warehouse-progress i { display: block; height: 100%; border-radius: inherit; background: #4c9a58; }
.warehouse-progress small { color: var(--muted); font-size: 8px; }
.quality-list { display: grid; grid-template-columns: 1fr 1fr; margin: 0; padding: 7px 15px 10px; }
.quality-list div { display: grid; grid-template-columns: minmax(95px, .8fr) 1.2fr; gap: 8px; min-height: 35px; align-items: center; border-bottom: 1px solid var(--border); }
.quality-list div:nth-last-child(-n+2) { border-bottom: 0; }
.quality-list dt { color: #6e6762; font-size: 9px; font-weight: 600; }
.quality-list dd { margin: 0; color: var(--text); font-size: 9px; }
.query-tasting { margin: 0 15px 15px; padding: 12px 13px; border-radius: 7px; background: #f7f3ef; }
.query-tasting span { color: var(--coffee-700); font-size: 8px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.query-tasting p { margin: 6px 0 0; color: #5d5550; font-size: 10px; line-height: 1.55; }
.query-movements { margin-bottom: 0; }
.query-movements .query-table td { height: 39px; }
.price-list-page { width: min(1600px, 100%); }
.price-config-panel { display: flex; min-height: 94px; align-items: center; gap: 30px; margin-bottom: 12px; padding: 16px 18px; }
.price-config-panel fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.price-config-panel legend { margin-bottom: 8px; color: #5f5853; font-size: 10px; font-weight: 600; }
.price-choice-group { display: flex; padding: 3px; border: 1px solid var(--border); border-radius: 7px; background: #f8f6f4; }
.price-choice-group label { cursor: pointer; }
.price-choice-group input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.price-choice-group label > span { display: flex; min-width: 100px; height: 33px; align-items: center; justify-content: center; gap: 7px; padding: 0 13px; border-radius: 5px; color: var(--muted); font-size: 10px; font-weight: 500; transition: .16s ease; }
.price-choice-group.shipping label > span { min-width: 94px; }
.price-choice-group svg { width: 14px; height: 14px; }
.price-choice-group input:checked + span { color: #fff; background: var(--espresso-800); box-shadow: 0 2px 6px rgba(39,30,25,.13); }
.price-choice-group input:focus-visible + span { outline: 3px solid rgba(157,116,88,.18); }
.price-config-note { display: flex; min-width: 280px; align-items: center; gap: 11px; margin-left: auto; padding-left: 24px; border-left: 1px solid var(--border); }
.price-config-note > svg { width: 23px; height: 23px; flex: 0 0 auto; color: var(--coffee-600); }
.price-config-note strong, .price-config-note p { display: block; margin: 0; }
.price-config-note strong { font-size: 10px; font-weight: 600; }
.price-config-note p { margin-top: 5px; color: var(--muted); font-size: 9px; line-height: 1.45; }
.price-list-panel { overflow: hidden; }
.price-list-header { display: flex; min-height: 62px; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 15px; border-bottom: 1px solid var(--border); }
.price-list-header h2, .price-list-header p { margin: 0; }
.price-list-header h2 { font-size: 13px; font-weight: 600; }
.price-list-header p { margin-top: 4px; color: var(--muted); font-size: 9px; }
.price-list-header p strong { color: var(--text); font-weight: 600; }
.price-table-wrap { overflow: auto; }
.price-list-table { width: 100%; min-width: 1460px; border-collapse: separate; border-spacing: 0; font-size: 9px; }
.price-list-table th { position: sticky; top: 0; z-index: 3; height: 39px; padding: 0 11px; border-bottom: 1px solid var(--border); color: #827a74; background: #faf9f8; font-size: 8px; font-weight: 600; text-align: left; text-transform: uppercase; white-space: nowrap; }
.price-list-table td { height: 57px; padding: 8px 11px; border-bottom: 1px solid var(--border); color: #5d5651; background: #fff; vertical-align: middle; }
.price-list-table tbody tr:hover td { background: #fcfbfa; }
.price-list-table th:first-child, .price-list-table td:first-child { position: sticky; left: 0; z-index: 2; box-sizing: border-box; width: 104px; min-width: 104px; max-width: 104px; }
.price-list-table th:nth-child(2), .price-list-table td:nth-child(2) { position: sticky; left: 104px; z-index: 2; box-sizing: border-box; width: 210px; min-width: 210px; max-width: 210px; box-shadow: 7px 0 9px -10px rgba(35,26,21,.5); }
.price-list-table th:first-child, .price-list-table th:nth-child(2) { z-index: 5; background: #faf9f8; }
.price-list-table td:first-child { color: var(--coffee-700); font-weight: 600; }
.price-product-cell { display: flex; min-width: 0; align-items: center; gap: 8px; }
.price-product-mark { display: grid; width: 29px; height: 29px; flex: 0 0 auto; place-items: center; border-radius: 6px; color: #fff; background: var(--coffee-600); font-size: 9px; font-weight: 600; }
.price-product-cell strong { min-width: 0; overflow: hidden; color: var(--text); font-size: 10px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.price-list-table .price-cell { color: var(--text); font-size: 10px; font-weight: 600; white-space: nowrap; }
.price-list-table .payment-price { color: var(--coffee-700); }
.price-list-table .stock-cell { color: var(--sage); font-weight: 600; white-space: nowrap; }
.price-list-table .stock-cell.empty { color: var(--red); }
.price-list-table .description-cell { width: 260px; min-width: 260px; color: var(--muted); line-height: 1.45; }
.price-list-empty { margin: 0; padding: 45px 20px; color: var(--muted); font-size: 11px; text-align: center; }
.price-list-footer { display: flex; min-height: 48px; align-items: center; justify-content: space-between; gap: 20px; padding: 0 15px; color: var(--muted); background: #fbfaf9; font-size: 9px; }
.price-list-footer strong { color: #69625d; font-weight: 500; }
.product-pricing-page { width: min(1760px, 100%); }
.pricing-summary { display: flex; min-height: 78px; align-items: center; gap: 13px; margin-bottom: 12px; padding: 14px 17px; }
.pricing-summary-icon { display: grid; width: 39px; height: 39px; flex: 0 0 auto; place-items: center; border-radius: 8px; color: var(--coffee-700); background: var(--coffee-100); }
.pricing-summary-icon svg { width: 20px; height: 20px; }
.pricing-summary > div:nth-child(2) { min-width: 0; flex: 1; }
.pricing-summary strong, .pricing-summary p { display: block; margin: 0; }
.pricing-summary > div:nth-child(2) strong { font-size: 11px; font-weight: 600; }
.pricing-summary p { max-width: 680px; margin-top: 5px; color: var(--muted); font-size: 9px; line-height: 1.5; }
.pricing-summary-status { min-width: 170px; padding-left: 18px; border-left: 1px solid var(--border); text-align: right; }
.pricing-summary-status span { display: block; margin-bottom: 5px; color: var(--muted); font-size: 9px; }
.pricing-summary-status strong { font-size: 10px; font-weight: 500; }
.pricing-settings-panel { margin-bottom: 12px; overflow: hidden; }
.pricing-settings-panel .price-list-header strong { color: var(--muted); font-size: 10px; font-weight: 500; white-space: nowrap; }
.pricing-settings-form { padding: 15px; }
.pricing-settings-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; }
.pricing-settings-grid label { display: grid; gap: 6px; color: #5e5854; font-size: 10px; font-weight: 500; }
.pricing-settings-grid input { width: 100%; height: 32px; padding: 0 9px; border: 1px solid #ddd8d4; border-radius: 5px; outline: 0; color: var(--text); background: #fff; font-size: 11px; }
.pricing-settings-grid input:focus { border-color: var(--coffee-500); box-shadow: 0 0 0 3px rgba(157,116,88,.09); }
.pricing-settings-actions { display: flex; justify-content: flex-end; margin-top: 13px; padding-top: 13px; border-top: 1px solid var(--border); }
.pricing-table-panel { overflow: hidden; }
.pricing-table-header { border-bottom: 0; }
.pricing-legend { display: flex; min-height: 38px; align-items: center; flex-wrap: wrap; gap: 20px; padding: 0 15px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); color: var(--muted); background: #fbfaf9; font-size: 8px; }
.pricing-legend span { display: inline-flex; align-items: center; gap: 6px; }
.pricing-legend svg { width: 12px; height: 12px; }
.pricing-dot { width: 7px; height: 7px; border-radius: 50%; }
.pricing-dot.live { background: var(--coffee-500); }
.pricing-dot.fixed { background: var(--sage); }
.pricing-table-wrap { overflow: auto; }
.product-pricing-table { width: 100%; min-width: 2148px; border-collapse: separate; border-spacing: 0; font-size: 9px; }
.product-pricing-table th { position: sticky; top: 0; z-index: 3; height: 40px; padding: 0 10px; border-bottom: 1px solid var(--border); color: #827a74; background: #faf9f8; font-size: 8px; font-weight: 600; text-align: left; text-transform: uppercase; white-space: nowrap; }
.product-pricing-table td { height: 86px; padding: 9px 10px; border-bottom: 1px solid var(--border); color: #5d5651; background: #fff; vertical-align: middle; }
.product-pricing-table tbody tr:hover td { background: #fcfbfa; }
.product-pricing-table th:first-child, .product-pricing-table td:first-child { position: sticky; left: 0; z-index: 2; width: 94px; min-width: 94px; }
.product-pricing-table th:nth-child(2), .product-pricing-table td:nth-child(2) { position: sticky; left: 94px; z-index: 2; width: 190px; min-width: 190px; box-shadow: 7px 0 9px -10px rgba(35,26,21,.5); }
.product-pricing-table th:first-child, .product-pricing-table th:nth-child(2) { z-index: 5; background: #faf9f8; }
.product-pricing-table td:first-child { color: var(--coffee-700); font-weight: 600; }
.product-pricing-table th:nth-child(n+3), .product-pricing-table td:nth-child(n+3) { width: 188px; min-width: 188px; }
.pricing-cell { display: grid; gap: 6px; }
.pricing-live-line { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pricing-live-line span { color: var(--muted); font-size: 8px; font-weight: 500; text-transform: uppercase; }
.pricing-live-line strong { color: var(--text); font-size: 10px; font-weight: 600; white-space: nowrap; }
.pricing-fixed-line { display: flex; height: 31px; align-items: center; overflow: hidden; border: 1px solid #dcd7d3; border-radius: 5px; background: #fff; transition: border-color .16s ease, background .16s ease, box-shadow .16s ease; }
.pricing-fixed-line:focus-within { border-color: var(--coffee-500); box-shadow: 0 0 0 3px rgba(157,116,88,.09); }
.pricing-fixed-line.is-fixed { border-color: #a9c2ad; background: #f3f8f4; }
.pricing-fixed-prefix { padding-left: 8px; color: var(--muted); font-size: 9px; }
.pricing-fixed-line input { width: 100%; min-width: 0; height: 29px; padding: 0 5px; border: 0; outline: 0; color: var(--text); background: transparent; font: inherit; font-size: 10px; font-weight: 600; }
.pricing-fixed-line input::placeholder { color: #aaa29c; font-weight: 400; }
.pricing-apply-live { display: grid; width: 31px; height: 29px; flex: 0 0 auto; place-items: center; border: 0; border-left: 1px solid #e1dcd8; color: var(--coffee-700); background: #f7f4f2; cursor: pointer; }
.pricing-apply-live:hover { background: var(--coffee-100); }
.pricing-apply-live svg { width: 13px; height: 13px; }
.pricing-fixed-line.is-fixed .pricing-apply-live { color: var(--sage); background: #e9f3eb; }
.pricing-fixed-line.is-fixed .pricing-fixed-prefix::before { content: "✓ "; color: var(--sage); font-weight: 700; }
.pricing-diff .pricing-live-line strong.positive { color: var(--green); }
.pricing-diff .pricing-live-line strong.negative { color: var(--red); }
.pricing-diff .pricing-fixed-prefix { display: none; }
.pricing-table-panel .price-list-footer strong { color: var(--sage); }
.breadcrumb-nav { display: flex; align-items: center; gap: 7px; margin-bottom: 12px; color: var(--muted); font-size: 10px; }
.breadcrumb-nav a:hover { color: var(--coffee-700); }
.breadcrumb-nav strong { color: var(--text); font-weight: 500; }
.customer-hero { display: flex; min-height: 94px; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 12px; padding: 17px 19px; }
.customer-hero-main { display: flex; align-items: center; gap: 13px; }
.customer-avatar-large { display: grid; width: 52px; height: 52px; flex: 0 0 auto; place-items: center; border-radius: 50%; color: #fff; background: var(--coffee-700); font-size: 15px; font-weight: 600; }
.product-card-mark { width: 52px; height: 52px; border-radius: 10px; font-size: 14px; }
.customer-title-line { display: flex; align-items: center; gap: 9px; }
.customer-title-line h1 { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -.025em; }
.customer-hero-main p { margin: 6px 0 0; color: var(--muted); font-size: 11px; }
.customer-detail-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin-bottom: 12px; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.customer-detail-metrics > div { padding: 14px 17px; border-right: 1px solid var(--border); }
.customer-detail-metrics > div:last-child { border: 0; }
.customer-detail-metrics span, .customer-detail-metrics strong, .customer-detail-metrics small { display: block; }
.customer-detail-metrics span { color: var(--muted); font-size: 10px; }
.customer-detail-metrics strong { margin-top: 6px; font-size: 17px; font-weight: 600; }
.customer-detail-metrics small { margin-top: 4px; color: var(--soft); font-size: 9px; }
.customer-detail-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 12px; }
.detail-column { display: grid; gap: 12px; }
.detail-panel { overflow: hidden; }
.detail-list { display: grid; grid-template-columns: 1fr 1fr; margin: 0; padding: 5px 16px 14px; }
.detail-list > div { padding: 12px 4px; border-bottom: 1px solid var(--border); }
.detail-list > div:nth-last-child(-n+2) { border-bottom: 0; }
.detail-list .detail-wide { grid-column: 1 / -1; }
.detail-list dt { margin-bottom: 5px; color: var(--muted); font-size: 9px; }
.detail-list dd { margin: 0; color: var(--text); font-size: 11px; line-height: 1.55; }
.detail-list dd a { color: var(--coffee-700); }
.text-button { border: 0; color: var(--coffee-700); background: transparent; font-size: 10px; font-weight: 500; cursor: pointer; }
.delivery-detail-list { padding: 3px 16px 10px; }
.delivery-detail-list > div { display: flex; align-items: flex-start; gap: 10px; padding: 13px 0; border-bottom: 1px solid var(--border); }
.delivery-detail-list > div:last-child { border-bottom: 0; }
.address-index { display: grid; width: 28px; height: 28px; flex: 0 0 auto; place-items: center; border-radius: 50%; color: var(--coffee-700); background: var(--coffee-100); font-size: 9px; font-weight: 600; }
.delivery-detail-list div > div { min-width: 0; flex: 1; }
.delivery-detail-list strong { font-size: 11px; font-weight: 600; }
.delivery-detail-list p { margin: 5px 0; color: #57514d; font-size: 10px; line-height: 1.5; }
.delivery-detail-list small { color: var(--muted); font-size: 9px; }
.compact-orders { padding: 3px 16px 10px; }
.compact-orders a { display: grid; grid-template-columns: 86px 1fr auto; align-items: center; gap: 8px; padding: 13px 0; border-bottom: 1px solid var(--border); }
.compact-orders a:last-child { border-bottom: 0; }
.compact-orders strong, .compact-orders b { font-size: 10px; font-weight: 600; }
.compact-orders span { color: var(--muted); font-size: 9px; }
.order-workflow-panel .tabs { max-width: 100%; overflow-x: auto; }
.order-table-view { display: none; }
.order-table-view.active { display: block; }
.order-workflow-table { min-width: 1180px; table-layout: fixed; }
.order-workflow-table tbody tr[data-modal-open] { cursor: pointer; }
.order-workflow-table td { height: 76px; vertical-align: middle; }
.order-workflow-table th, .order-workflow-table td { overflow: hidden; text-overflow: ellipsis; }
.order-workflow-table th:first-child { width: 120px; }
.order-workflow-table th:nth-child(2) { width: 165px; }
.order-workflow-table th:nth-child(3) { width: 245px; }
.order-workflow-table th:nth-child(4) { width: 130px; }
.order-workflow-table th:last-child, .order-workflow-table td:last-child { width: 50px; text-align: right; }
.order-detail-body { padding: 15px; }
.order-detail-modal { display: flex; width: min(1040px, calc(100vw - 32px)); flex-direction: column; }
.order-detail-modal .modal-header { flex: 0 0 auto; }
.order-detail-modal .order-detail-body { max-height: calc(100vh - 124px); overflow-y: auto; }
.order-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.order-detail-grid > div { min-height: 62px; padding: 11px 12px; border: 1px solid var(--border); border-radius: 6px; background: #fbfaf9; }
.order-detail-grid span { display: block; margin-bottom: 5px; color: var(--muted); font-size: 9px; }
.order-detail-grid strong, .order-label-area strong, .order-label-area b { display: block; color: var(--text); font-size: 12px; font-weight: 600; }
.order-detail-grid small { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; }
.order-detail-wide { grid-column: 1 / -1; }
.order-detail-items { margin-bottom: 12px; border: 1px solid var(--border); }
.order-quote-summary { margin: 12px 0; padding: 14px; border: 1px solid var(--border); border-radius: 6px; background: #fbfaf9; }
.order-quote-summary h3 { margin: 0 0 10px; font-size: 13px; }
.order-quote-summary > div { display: flex; justify-content: space-between; padding: 6px 0; color: var(--muted); font-size: 11px; }
.order-quote-summary strong { color: var(--text); font-weight: 600; }
.order-quote-summary-total { margin-top: 5px; padding-top: 9px !important; border-top: 1px solid var(--border); color: var(--text) !important; font-size: 12px !important; }
.order-label-area { margin: 12px 0; padding: 14px; border: 1px dashed #cfc7c1; border-radius: 6px; background: #fff; }
.order-label-area h3 { margin: 0 0 8px; font-size: 13px; }
.order-label-area p { margin: 6px 0; color: #5d5651; font-size: 11px; }
.order-label-area b { font-size: 15px; text-transform: uppercase; }
.order-detail-actions, .order-status-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.order-action-form { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.order-status-actions form { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 9px; border: 1px solid var(--border); border-radius: 6px; background: #fbfaf9; }
.order-status-actions input, .order-status-actions select { height: 32px; padding: 0 9px; border: 1px solid #ddd8d4; border-radius: 5px; color: var(--text); background: #fff; font: inherit; font-size: 11px; }
.order-status-actions input[type="file"] { height: auto; max-width: 210px; padding: 6px 9px; }
.discount-lines { display: grid; gap: 7px; }
.discount-lines span { display: flex; gap: 7px; }
.discount-lines input { flex: 1; }
.discount-lines .button { width: 34px; flex: 0 0 auto; padding: 0; }
.order-action-dialog { position: absolute; inset: 0; z-index: 8; display: grid; place-items: center; padding: 18px; background: rgba(44,33,28,.18); }
.order-action-panel { width: min(520px, 100%); padding: 20px; border: 1px solid var(--border); border-radius: 9px; background: #fff; box-shadow: 0 18px 45px rgba(42,32,26,.18); }
.order-action-panel h3 { margin: 0; font-size: 15px; }
.order-action-panel p { margin: 6px 0 16px; color: var(--muted); font-size: 11px; }
.order-action-panel label, .check-line label { display: grid; gap: 6px; color: #5e5854; font-size: 10px; font-weight: 500; }
.order-action-panel input, .order-action-panel select, .check-line input { width: 100%; height: 34px; padding: 0 9px; border: 1px solid #ddd8d4; border-radius: 5px; color: var(--text); background: #fff; font: inherit; font-size: 11px; }
.order-action-panel-buttons { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.check-lines { display: grid; gap: 9px; padding: 0 15px 15px; }
.check-line { display: grid; grid-template-columns: minmax(0, 1fr) minmax(120px, .8fr) minmax(0, 1fr) 30px; align-items: end; gap: 8px; padding: 10px; border: 1px solid var(--border); border-radius: 6px; background: #fbfaf9; }
.check-line [data-remove-check] { width: 30px; padding: 0; }
textarea[data-order-description] { text-transform: uppercase; }
.description-lines { display: grid; gap: 9px; padding: 15px; }
.description-line { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(180px, 1fr) 30px; align-items: end; gap: 8px; padding: 10px; border: 1px solid var(--border); border-radius: 6px; background: #fbfaf9; }
.description-line label { display: grid; gap: 6px; color: #5e5854; font-size: 10px; font-weight: 500; }
.description-line textarea { min-height: 58px; }
.description-line select { width: 100%; height: 34px; padding: 0 9px; border: 1px solid #ddd8d4; border-radius: 5px; color: var(--text); background: #fff; font: inherit; font-size: 11px; }
.description-line [data-remove-description] { width: 30px; padding: 0; }
.description-line textarea { text-transform: uppercase; }
.form-grid select[multiple] { height: auto; min-height: 92px; padding: 7px 9px; }
.evening-filter { align-items: end; }
.evening-filter label { display: grid; gap: 5px; color: var(--muted); font-size: 10px; font-weight: 500; }
.evening-filter input { height: 34px; padding: 0 9px; border: 1px solid #ddd8d4; border-radius: 5px; color: var(--text); background: #fff; font: inherit; font-size: 11px; }
.evening-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr); gap: 12px; margin-bottom: 12px; }
.evening-chart-panel { overflow: hidden; }
.evening-bars { display: grid; gap: 12px; padding: 16px; }
.evening-bars div { display: grid; grid-template-columns: 48px minmax(120px, 1fr); align-items: center; gap: 10px; }
.evening-bars span { color: var(--muted); font-size: 10px; font-weight: 600; }
.evening-bars strong { color: var(--text); font-size: 12px; font-weight: 600; text-align: right; }
.evening-bars i { position: relative; grid-column: 1 / -1; display: block; height: 9px; min-width: 3px; overflow: hidden; border-radius: 5px; background: var(--coffee-700); }
.evening-bars div:nth-child(2) i { background: var(--sage); }
.evening-bars div:nth-child(3) i { background: var(--blue); }
.evening-mini-metrics { display: grid; grid-template-columns: repeat(2, 1fr); }
.evening-mini-metrics div { min-height: 75px; padding: 14px 16px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.evening-mini-metrics div:nth-child(2n) { border-right: 0; }
.evening-mini-metrics div:nth-last-child(-n+2) { border-bottom: 0; }
.evening-mini-metrics span { display: block; color: var(--muted); font-size: 9px; }
.evening-mini-metrics strong { display: block; margin-top: 6px; color: var(--text); font-size: 14px; font-weight: 600; }
.evening-mini-metrics small { display: block; margin-top: 4px; color: var(--soft); font-size: 9px; }
.evening-table { min-width: 1050px; table-layout: fixed; }
.evening-table td { height: 68px; vertical-align: middle; }
.evening-table th, .evening-table td { overflow: hidden; text-overflow: ellipsis; }
.evening-table th:first-child { width: 120px; }
.evening-table th:nth-child(4) { width: 250px; }
.evening-table th:nth-last-child(-n+4) { width: 115px; }
.import-table { min-width: 1420px; table-layout: fixed; }
.import-table td { height: 92px; vertical-align: middle; }
.import-table th, .import-table td { overflow: hidden; text-overflow: ellipsis; }
.import-table th:first-child { width: 150px; }
.import-table th:nth-child(2) { width: 190px; }
.import-table th:nth-child(3) { width: 260px; }
.import-table th:nth-child(4) { width: 210px; }
.import-table th:nth-child(5), .import-table th:nth-child(6), .import-table th:nth-child(9) { width: 105px; }
.import-table th:nth-child(7) { width: 190px; }
.import-table th:nth-child(8) { width: 150px; }
.settings-nav { display: flex; align-items: center; gap: 4px; margin: -6px 0 14px; padding: 4px; overflow-x: auto; border: 1px solid var(--border); border-radius: 7px; background: #fff; }
.settings-nav a { display: inline-flex; height: 34px; flex: 0 0 auto; align-items: center; justify-content: center; padding: 0 13px; border-radius: 5px; color: var(--muted); font-size: 12px; font-weight: 500; }
.settings-nav a:hover { color: var(--text); background: #f6f3f1; }
.settings-nav a.active { color: #fff; background: var(--espresso-800); }
.settings-page-grid { display: grid; grid-template-columns: minmax(320px, .72fr) minmax(0, 1.28fr); align-items: start; gap: 12px; }
.settings-page-grid-single { grid-template-columns: minmax(320px, 680px); }
.settings-page-grid-wide { grid-template-columns: 1fr; }
.settings-user-form { padding: 15px; }
.settings-user-form .modal-actions { margin-top: 2px; padding-top: 13px; }
.settings-readonly-field { display: grid; gap: 6px; color: #5e5854; font-size: 11px; font-weight: 500; }
.settings-readonly-field strong { display: flex; height: 34px; align-items: center; padding: 0 10px; border: 1px solid #e3ded9; border-radius: 5px; color: var(--muted); background: #f8f6f4; font-size: 12px; font-weight: 500; }
.settings-users-table th:last-child, .settings-users-table td:last-child { width: 92px; text-align: right; }
.settings-edit-button { height: 28px; padding: 0 10px; font-size: 11px; }
.category-inline-form { display: flex; align-items: center; gap: 7px; }
.category-inline-form input, .category-inline-form select { min-width: 0; height: 30px; padding: 0 8px; border: 1px solid var(--border); border-radius: 5px; color: var(--text); background: #fff; font-size: 12px; }
.category-inline-form input { flex: 1; }
.category-delete-form { display: inline-flex; }
.category-create-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 15px; border-top: 1px solid var(--border); }
.category-create-card { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--border); border-radius: 7px; background: #fbfaf9; }
.category-create-card > div { display: grid; gap: 3px; }
.category-create-card strong { color: var(--text); font-size: 13px; }
.category-create-card small { color: var(--muted); font-size: 11px; line-height: 1.4; }
.category-create-card label { display: grid; gap: 6px; color: var(--muted); font-size: 11px; font-weight: 600; }
.category-create-card input, .category-create-card select { height: 34px; padding: 0 9px; border: 1px solid var(--border); border-radius: 5px; color: var(--text); background: #fff; font-size: 12px; }
.category-create-card button { justify-self: start; }
.category-count { color: var(--muted); font-size: 11px; }
.category-tree { padding: 0 15px 15px; }
.category-tree-group { border: 1px solid var(--border); border-radius: 7px; overflow: hidden; }
.category-tree-group + .category-tree-group { margin-top: 9px; }
.category-tree-row { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; gap: 7px; min-height: 48px; padding: 7px 10px; }
.category-tree-parent { background: #f7f4f1; }
.category-tree-child { padding-left: 27px; border-top: 1px solid var(--border); background: #fff; }
.category-tree-icon { display: inline-flex; width: 22px; height: 22px; align-items: center; justify-content: center; border-radius: 5px; color: var(--accent); background: #eee5dc; font-size: 10px; font-weight: 700; }
.category-tree-child .category-tree-icon { color: var(--muted); background: #f1eeeb; font-size: 14px; font-weight: 500; }
.category-tree-row .category-inline-form { min-width: 0; }
.danger-text { color: var(--red); }

@media (max-width: 1100px) {
	.sign-in-shell { grid-template-columns: minmax(360px, .8fr) minmax(460px, 1fr); }
	.sign-in-intro { padding: 36px 38px; }
	.metric-grid { grid-template-columns: repeat(2, 1fr); }
	.dashboard-grid { grid-template-columns: 1fr; }
	.stock-panel, .orders-panel { grid-column: auto; }
	.list-toolbar { align-items: flex-start; flex-direction: column; }
	.toolbar-actions { width: 100%; }
	.table-search.wide { flex: 1; width: auto; }
	.inventory-layout, .customer-layout { grid-template-columns: 1fr; }
	.activity-panel { display: none; }
	.stock-activity-dock { display: block; }
	.activity-list-grid { grid-template-columns: 1fr; }
	.activity-list-grid li:nth-last-child(-n+3) { border-bottom: 1px solid var(--border); }
	.activity-list-grid li:last-child { border-bottom: 0; }
	.customer-insight-horizontal { grid-template-columns: 1fr; }
	.customer-insight-horizontal .panel-header, .customer-insight-horizontal .donut-wrap, .customer-insight-horizontal .legend-list li { border-right: 0; border-bottom: 1px solid var(--border); }
	.customer-insight-horizontal .legend-list { grid-template-columns: 1fr; }
	.customer-detail-grid { grid-template-columns: 1fr; }
	.settings-page-grid, .settings-page-grid-single { grid-template-columns: 1fr; }
	.order-product-row { grid-template-columns: minmax(230px, 1.8fr) 110px 75px 75px 100px 90px 105px 62px 28px; overflow-x: auto; }
	.order-items-table-head { display: none; }
	.order-product-row:not(.is-filled) { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "product product" "lot quantity" "unit warehouse" "price total" "vat remove"; overflow: visible; }
	.product-query-metrics { grid-template-columns: repeat(2, 1fr); }
	.product-query-metrics article:nth-child(2) { border-right: 0; }
	.product-query-metrics article:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
	.product-query-grid { grid-template-columns: 1fr; }
	.price-config-panel { align-items: flex-start; flex-wrap: wrap; }
	.price-config-note { width: 100%; margin-left: 0; padding: 12px 0 0; border-top: 1px solid var(--border); border-left: 0; }
	.pricing-summary { align-items: flex-start; flex-wrap: wrap; }
	.pricing-summary-status { width: 100%; padding: 11px 0 0 52px; border-top: 1px solid var(--border); border-left: 0; text-align: left; }
	.pricing-settings-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
	:root { --sidebar-width: 250px; }
	.sign-in-shell { display: block; }
	.sign-in-intro { display: none; }
	.sign-in-panel { min-height: 100svh; padding: 32px 24px 22px; }
	.sign-in-card { margin: auto 0; }
	.sign-in-mobile-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 52px; color: var(--espresso-950); }
	.mobile-brand-logo { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 8px; background: var(--espresso-950); }
	.mobile-brand-logo .brand-logo { width: 24px; height: 24px; }
	.sign-in-mobile-brand strong { font-size: 14px; font-weight: 600; }
	.sidebar { transform: translateX(-100%); transition: transform .22s ease; }
	body.sidebar-open .sidebar { transform: translateX(0); box-shadow: 12px 0 40px rgba(20,15,12,.24); }
	.sidebar-overlay { position: fixed; inset: 0; z-index: 35; display: block; border: 0; background: rgba(31,24,20,.4); opacity: 0; pointer-events: none; transition: opacity .22s ease; }
	body.sidebar-open .sidebar-overlay { opacity: 1; pointer-events: auto; }
	.app-main { margin-left: 0; }
	.topbar { height: 60px; padding: 0 16px; }
	.mobile-menu-button { display: grid; }
	.global-search { width: min(270px, 45vw); }
	.global-search kbd, .profile > div { display: none; }
	.profile { padding-left: 8px; }
	.page-content { padding: 16px; }
	.category-create-grid { grid-template-columns: 1fr; padding: 12px; }
	.category-tree { padding: 0 12px 12px; }
	.category-tree-row { grid-template-columns: 22px minmax(0, 1fr) auto; padding: 7px; }
	.category-inline-form { flex-wrap: wrap; }
	.category-inline-form input { flex-basis: 100%; }
	.page-heading { align-items: flex-start; gap: 18px; }
	.page-description { max-width: 300px; }
	.heading-actions .button-secondary { display: none; }
	.notification-menu { position: fixed; top: 55px; right: 12px; width: min(330px, calc(100vw - 24px)); }
	.summary-strip { grid-template-columns: repeat(2, 1fr); }
	.summary-strip > div:nth-child(2) { border-right: 0; }
	.summary-strip > div:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
	.block-report-grid { grid-template-columns: 1fr; }
	.bulk-netsis-actions { width: 100%; justify-content: space-between; }
	.tabs { width: 100%; overflow-x: auto; padding-bottom: 2px; }
	.tabs button { flex: 0 0 auto; }
	.modal-order { width: calc(100vw - 20px); max-height: calc(100vh - 20px); }
	.order-entry-form { max-height: calc(100vh - 90px); }
	.order-form-body { padding: 10px; }
	.order-products-title { align-items: flex-start; flex-wrap: wrap; }
	.order-products-title .button { width: 100%; }
	.order-items { padding: 5px 12px 12px; }
	.order-product-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.order-product-row .order-product-main { grid-column: 1 / -1; }
	.order-item-remove { grid-column: 2; justify-self: end; }
	.order-preview-row { grid-template-columns: minmax(150px, 1.4fr) .6fr .8fr; }
	.order-preview-row > :nth-child(3) { display: none; }
	.product-query-heading .heading-actions .button-secondary { display: inline-flex; }
	.product-pricing-page .heading-actions .button-secondary { display: inline-flex; }
	.price-config-panel { gap: 18px; }
}
@media (max-width: 540px) {
	.sign-in-panel { align-items: stretch; padding: 26px 20px 20px; }
	.sign-in-card-head h2 { font-size: 26px; }
	.sign-in-form { margin-top: 28px; }
	.sign-in-footer { padding-top: 36px; }
	.global-search { width: 36px; padding: 0; justify-content: center; background: transparent; }
	.global-search input { display: none; }
	.metric-grid { grid-template-columns: 1fr; }
	.page-heading { flex-direction: column; }
	.heading-actions { width: 100%; }
	.heading-actions .button-primary { width: 100%; }
	.progress-ring-row { align-items: flex-start; }
	.table-tools { align-items: stretch; gap: 8px; }
	.table-search { width: 100%; }
	.form-grid { grid-template-columns: 1fr; }
	.form-full { grid-column: auto; }
	.toolbar-actions { align-items: stretch; flex-direction: column; }
	.toolbar-actions select, .filter-button { width: 100%; }
	.table-search.wide { width: 100%; flex: none; }
	.table-footer { align-items: flex-start; flex-direction: column; gap: 10px; }
	.summary-strip strong { font-size: 18px; }
	.customer-hero { align-items: flex-start; flex-direction: column; }
	.customer-hero .heading-actions { width: 100%; }
	.customer-hero .heading-actions .button { display: inline-flex; flex: 1; }
	.customer-detail-metrics { grid-template-columns: repeat(2, 1fr); }
	.customer-detail-metrics > div { border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
	.customer-detail-metrics > div:nth-child(2n) { border-right: 0; }
	.customer-detail-metrics > div:last-child { border-bottom: 0; }
	.customer-title-line { align-items: flex-start; flex-direction: column; gap: 5px; }
	.detail-list { grid-template-columns: 1fr; }
	.detail-list .detail-wide { grid-column: auto; }
	.detail-list > div:nth-last-child(2) { border-bottom: 1px solid var(--border); }
	.compact-orders a { grid-template-columns: 75px 1fr; }
	.compact-orders b { grid-column: 2; }
	.modal-large { width: calc(100vw - 20px); max-height: calc(100vh - 20px); }
	.form-grid-3 { grid-template-columns: 1fr; }
	.form-span-2, .form-span-3 { grid-column: auto; }
	.customer-form-body, .product-form-body { max-height: calc(100vh - 170px); padding: 10px; }
	.delivery-title { align-items: flex-start; flex-wrap: wrap; }
	.delivery-title .button { width: 100%; margin-top: 4px; }
	.order-product-row { grid-template-columns: 1fr; }
	.order-product-row .order-product-main, .order-item-remove { grid-column: auto; }
	.order-preview-head { align-items: flex-start; flex-direction: column; gap: 8px; }
	.order-preview-head-actions { width: 100%; justify-content: space-between; }
	.order-preview-meta { grid-template-columns: 1fr; }
	.order-preview-meta > div { border-right: 0; border-bottom: 1px solid var(--border); }
	.order-preview-meta > div:last-child { border-bottom: 0; }
	.order-preview-row { grid-template-columns: 1fr auto; }
	.order-preview-row > :nth-child(2), .order-preview-row > :nth-child(3) { display: none; }
	.order-modal-actions { display: grid; grid-template-columns: 1fr; }
	.order-modal-actions .button { width: 100%; min-width: 0; }
	.product-query-heading .heading-actions { display: flex; }
	.product-query-heading .heading-actions .button { display: inline-flex; width: auto; flex: 1; }
	.product-pricing-page .heading-actions .button { display: inline-flex; width: 100%; }
	.product-query-identity { align-items: flex-start; }
	.product-query-metrics { grid-template-columns: 1fr; }
	.product-query-metrics article { border-right: 0; border-bottom: 1px solid var(--border); }
	.quality-list { grid-template-columns: 1fr; }
	.quality-list div:nth-last-child(2) { border-bottom: 1px solid var(--border); }
	.price-config-panel fieldset, .price-choice-group { width: 100%; }
	.price-choice-group label { flex: 1; }
	.price-choice-group label > span { min-width: 0; padding: 0 8px; }
	.price-list-header { align-items: stretch; flex-direction: column; }
	.price-list-header .table-search { width: 100%; }
	.price-list-footer { align-items: flex-start; flex-direction: column; justify-content: center; padding: 10px 15px; }
	.pricing-summary-status { padding-left: 0; }
	.pricing-settings-grid { grid-template-columns: 1fr; }
	.pricing-legend { align-items: flex-start; flex-direction: column; gap: 7px; padding: 10px 15px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

@media print {
	body * { visibility: hidden !important; }
	.modal-backdrop:not([hidden]), .modal-backdrop:not([hidden]) * { visibility: visible !important; }
	.modal-backdrop:not([hidden]) { position: static !important; display: block !important; background: #fff !important; }
	.modal-backdrop:not([hidden]) .modal { width: 100% !important; max-height: none !important; box-shadow: none !important; border: 0 !important; }
	.sidebar, .topbar, .modal-header button, .order-detail-actions, .order-action-form, .order-status-actions, .toast { display: none !important; }
	.order-detail-body { padding: 0 !important; }
	.order-label-area { break-inside: avoid; border: 2px solid #000; }
}
