:root {
  --bg: #f6f8f7;
  --surface: #ffffff;
  --surface-soft: #f9fbfa;
  --surface-hover: #f1f5f2;
  --line: #e2e8e4;
  --line-strong: #d3ddd6;
  --text: #17211b;
  --muted: #66736a;
  --muted-2: #8a958d;
  --green: #168846;
  --green-strong: #0f6f38;
  --green-soft: #e8f5ed;
  --amber: #b8750b;
  --amber-soft: #fff3d9;
  --red: #c33d3d;
  --red-soft: #fdeaea;
  --blue: #2d6cdf;
  --blue-soft: #eaf1ff;
  --shadow-sm: 0 1px 2px rgba(22, 42, 29, .04), 0 6px 18px rgba(22, 42, 29, .04);
  --shadow-lg: 0 20px 60px rgba(20, 38, 26, .14);
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --sidebar: 272px;
  --sidebar-rail: 66px;
  --topbar: 64px;
  --font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); }
body { margin: 0; min-height: 100vh; color: var(--text); font-family: var(--font); font-size: 14px; line-height: 1.45; background: var(--bg); }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
svg { display: block; }
[hidden] { display: none; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); transition: grid-template-columns .22s ease; }
/* Keep a narrow sidebar rail when unpinned: the ONE hamburger must remain reachable. */
.app-shell.sidebar-unpinned { grid-template-columns: var(--sidebar-rail) minmax(0, 1fr); }
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar); background: var(--surface); border-right: 1px solid var(--line); display: flex; flex-direction: column; z-index: 30; transition: width .22s ease, transform .22s ease, box-shadow .22s ease; }
.app-shell.sidebar-unpinned .sidebar { width: var(--sidebar-rail); transform: none; }
.app-shell.sidebar-unpinned .brand { justify-content: center; padding: 0; }
.app-shell.sidebar-unpinned .brand-logo-link,
.app-shell.sidebar-unpinned .sidebar-scroll,
.app-shell.sidebar-unpinned .sidebar-user { display: none; }
.app-shell.sidebar-unpinned .sidebar-menu-button { margin: 0; }
.sidebar-scrim { position: fixed; inset: 0; z-index: 25; background: rgba(13,25,17,.24); backdrop-filter: blur(1px); }
.brand { height: var(--topbar); display: flex; align-items: center; gap: 10px; padding: 0 12px 0 14px; border-bottom: 1px solid var(--line); }
.brand-mark { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; color: white; background: linear-gradient(145deg, #24a85d, #0d6f37); box-shadow: 0 8px 20px rgba(22, 136, 70, .2); }
.brand-copy { min-width: 0; flex: 1; }
.brand-logo-link { min-width: 0; flex: 1; display: flex; align-items: center; height: 48px; }
.brand-logo-image { width: auto; height: 39px; max-width: 132px; object-fit: contain; object-position: left center; }
.side-panel-control { width: 31px; height: 31px; display: inline-grid; place-items: center; border: 1px solid transparent; border-radius: 9px; background: transparent; color: var(--muted); cursor: pointer; transition: background .15s ease,color .15s ease,border-color .15s ease; }
.side-panel-control:hover { color: var(--text); background: var(--surface-hover); border-color: var(--line); }
.side-panel-control.active { color: var(--green-strong); background: var(--green-soft); border-color: #cfe5d7; }
.side-panel-control svg { width: 16px; height: 16px; }
.brand-name { font-weight: 760; letter-spacing: -.02em; font-size: 18px; }
.brand-tag { color: var(--green); font-size: 10px; font-weight: 750; letter-spacing: .15em; text-transform: uppercase; }
.sidebar-scroll { flex: 1; overflow-y: auto; padding: 16px 12px 20px; scrollbar-width: thin; }
.nav-group + .nav-group { margin-top: 18px; }
.nav-heading { padding: 0 9px 8px; color: var(--muted-2); font-size: 10px; font-weight: 780; letter-spacing: .13em; text-transform: uppercase; }
.nav-link, .nav-parent { width: 100%; min-height: 42px; display: flex; align-items: center; gap: 12px; border: 0; border-radius: 10px; padding: 9px 10px; background: transparent; cursor: pointer; text-align: left; color: #263229; font-weight: 560; transition: background .16s ease, color .16s ease, transform .16s ease; }
.nav-link:hover, .nav-parent:hover { background: var(--surface-hover); }
.nav-link:active, .nav-parent:active { transform: scale(.99); }
.nav-link.active { color: var(--green-strong); background: var(--green-soft); font-weight: 700; }
.nav-icon { width: 20px; height: 20px; color: #657168; flex: 0 0 auto; }
.nav-link.active .nav-icon { color: var(--green); }
.nav-label { min-width: 0; flex: 1; }
.nav-chevron { width: 16px; height: 16px; color: var(--muted-2); transition: transform .2s ease; }
.nav-parent[aria-expanded="true"] .nav-chevron { transform: rotate(180deg); }
.nav-children { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .22s ease; }
.nav-children.open { grid-template-rows: 1fr; }
.nav-children-inner { min-height: 0; overflow: hidden; padding-left: 31px; }
@media (prefers-reduced-motion: reduce) { .nav-children, .nav-chevron { transition: none; } }
.nav-child { min-height: 36px; display: flex; align-items: center; gap: 10px; border-radius: 9px; padding: 7px 10px; color: #4f5d54; font-size: 13px; font-weight: 540; cursor: pointer; }
.nav-child::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #bac3bd; }
.nav-child:hover { background: var(--surface-hover); color: var(--text); }
.nav-child.active { background: var(--green-soft); color: var(--green-strong); font-weight: 700; }
.nav-child.active::before { background: var(--green); }
.sidebar-user { margin: 12px; border: 1px solid var(--line); border-radius: 14px; padding: 11px; display: flex; align-items: center; gap: 10px; background: var(--surface-soft); }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: var(--green-strong); background: var(--green-soft); flex: 0 0 auto; }
.user-copy { min-width: 0; flex: 1; }
.user-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 700; }
.user-role { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--muted); font-size: 11px; }
.icon-button { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 10px; display: inline-grid; place-items: center; background: var(--surface); cursor: pointer; transition: background .15s ease, border-color .15s ease; }
.icon-button:hover { background: var(--surface-hover); border-color: var(--line-strong); }
.icon-button svg { width: 18px; height: 18px; }

.main { grid-column: 2; min-width: 0; }
.topbar { position: sticky; top: 0; height: var(--topbar); z-index: 20; background: rgba(255,255,255,.93); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 14px; padding: 0 28px; }
.mobile-menu { display: inline-grid; flex: 0 0 38px; width: 38px; height: 38px; border-radius: 12px; color: #284c35; }
.mobile-menu.is-active { background: #f0f6ed; border-color: #cee0d1; }
.sidebar .mobile-menu { margin-left: auto; }
.mobile-menu:focus-visible { outline: 2px solid #769c7d; outline-offset: 3px; }
.breadcrumb { min-width: 0; display: flex; align-items: center; gap: 8px; color: var(--muted); }
.breadcrumb strong { color: var(--text); font-weight: 670; }
.topbar-spacer { flex: 1; }
.topbar-user { display: flex; align-items: center; gap: 9px; }
.topbar-user .avatar { width: 32px; height: 32px; font-size: 12px; }
.content { width: min(1600px, 100%); margin: 0 auto; padding: 30px 28px 48px; }
.page { animation: page-in .2s ease; }
@keyframes page-in { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: translateY(0); } }
.page-header { display: flex; align-items: flex-start; gap: 20px; margin-bottom: 24px; }
.page-title-wrap { min-width: 0; flex: 1; }
.eyebrow { margin-bottom: 7px; color: var(--green); font-weight: 780; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 5px; font-size: clamp(26px, 3vw, 34px); line-height: 1.15; letter-spacing: -.035em; }
h2 { margin-bottom: 7px; font-size: 20px; letter-spacing: -.02em; }
h3 { margin-bottom: 6px; font-size: 15px; }
.page-subtitle { margin-bottom: 0; color: var(--muted); max-width: 760px; }
.page-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }

.button { min-height: 40px; border: 1px solid var(--line-strong); border-radius: 10px; padding: 9px 14px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--surface); cursor: pointer; font-weight: 680; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, background .15s ease; }
.button:hover { border-color: #becbc2; box-shadow: 0 5px 16px rgba(25,43,31,.07); }
.button:active { transform: translateY(1px); box-shadow: none; }
.button svg { width: 17px; height: 17px; }
.button.primary { color: white; border-color: var(--green); background: linear-gradient(180deg, #23964f, #168846); box-shadow: 0 8px 18px rgba(22,136,70,.16); }
.button.primary:hover { border-color: var(--green-strong); background: var(--green-strong); }
.button.danger { color: var(--red); border-color: #f0c7c7; background: #fffafa; }
.button.ghost { border-color: transparent; background: transparent; box-shadow: none; }
.button.small { min-height: 34px; padding: 6px 10px; border-radius: 9px; font-size: 12px; }
.button:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }

.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.kpi-grid.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.kpi-card { min-height: 126px; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; background: var(--surface); box-shadow: var(--shadow-sm); display: flex; gap: 14px; align-items: flex-start; }
.kpi-icon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: var(--green); background: var(--green-soft); flex: 0 0 auto; }
.kpi-icon.amber { color: var(--amber); background: var(--amber-soft); }
.kpi-icon.blue { color: var(--blue); background: var(--blue-soft); }
.kpi-icon.red { color: var(--red); background: var(--red-soft); }
.kpi-icon svg { width: 22px; height: 22px; }
.kpi-label { color: var(--muted); font-size: 12px; font-weight: 620; }
.kpi-value { margin-top: 3px; font-size: 27px; font-weight: 780; line-height: 1.1; letter-spacing: -.035em; }
.kpi-note { margin-top: 6px; color: var(--muted); font-size: 11px; }

.panel { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); overflow: hidden; }
.panel + .panel { margin-top: 18px; }
.panel-header { min-height: 62px; padding: 16px 18px; display: flex; align-items: center; gap: 14px; border-bottom: 1px solid var(--line); }
.panel-title { min-width: 0; flex: 1; }
.panel-title h2, .panel-title h3 { margin-bottom: 2px; }
.panel-title p { margin: 0; color: var(--muted); font-size: 12px; }
.panel-body { padding: 18px; }
.toolbar { padding: 15px 18px; display: grid; grid-template-columns: minmax(260px, 1fr) repeat(2, minmax(160px, 240px)) auto; gap: 12px; align-items: end; border-bottom: 1px solid var(--line); }
.field { display: grid; gap: 6px; }
.field-label { color: #56625a; font-size: 11px; font-weight: 690; }
.input, .select, .textarea { width: 100%; min-height: 40px; border: 1px solid var(--line-strong); border-radius: 10px; padding: 9px 11px; color: var(--text); background: var(--surface); outline: none; transition: border-color .15s ease, box-shadow .15s ease; }
.input::placeholder, .textarea::placeholder { color: #9da7a0; }
.input:focus, .select:focus, .textarea:focus { border-color: #75b88e; box-shadow: 0 0 0 3px rgba(22,136,70,.1); }
.textarea { min-height: 92px; resize: vertical; }
.input-with-icon { position: relative; }
.input-with-icon svg { position: absolute; left: 11px; top: 50%; width: 17px; height: 17px; color: var(--muted-2); transform: translateY(-50%); pointer-events: none; }
.input-with-icon .input { padding-left: 37px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid .wide { grid-column: 1 / -1; }
.form-section { grid-column: 1 / -1; padding-top: 5px; color: var(--green-strong); font-size: 11px; font-weight: 760; letter-spacing: .08em; text-transform: uppercase; }

.table-wrap { overflow-x: auto; }
.data-table { width: 100%; min-width: 860px; border-collapse: collapse; }
.data-table th { padding: 12px 16px; color: #657168; background: #fbfcfb; border-bottom: 1px solid var(--line); font-size: 10px; font-weight: 790; letter-spacing: .06em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.data-table td { padding: 13px 16px; border-bottom: 1px solid #edf1ee; vertical-align: middle; }
.data-table tbody tr { transition: background .14s ease; }
.data-table tbody tr:hover { background: #fbfdfb; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.cell-main { font-weight: 680; }
.cell-sub { margin-top: 2px; color: var(--muted); font-size: 11px; }
.product-cell { display: flex; align-items: center; gap: 11px; min-width: 220px; }
.product-thumb { width: 38px; height: 38px; border: 1px solid #dce6df; border-radius: 10px; display: grid; place-items: center; overflow: hidden; color: var(--green-strong); background: linear-gradient(145deg, #ecf7f0, #f8fbf9); font-weight: 780; flex: 0 0 auto; }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.actions { display: flex; justify-content: flex-end; gap: 7px; }
.badge { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 4px 8px; font-size: 10px; font-weight: 760; line-height: 1; text-transform: capitalize; }
.badge.green { color: var(--green-strong); background: var(--green-soft); }
.badge.amber { color: #8d5800; background: var(--amber-soft); }
.badge.red { color: var(--red); background: var(--red-soft); }
.badge.blue { color: #2458ad; background: var(--blue-soft); }
.badge.gray { color: #59655d; background: #eef2ef; }
.stock-low { color: var(--red); font-weight: 750; }
.stock-ok { color: var(--green-strong); font-weight: 650; }
.panel-footer { min-height: 58px; padding: 11px 16px; display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.panel-footer .spacer { flex: 1; }
.product-page-size-control { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; color: var(--muted); }
.product-page-size-control .select { width: 86px; min-width: 86px; height: 36px; padding-top: 6px; padding-bottom: 6px; }
.pagination { display: flex; gap: 6px; }
.page-button { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); cursor: pointer; }
.page-button.active { color: white; border-color: var(--green); background: var(--green); }
.page-button:disabled { opacity: .45; cursor: not-allowed; }

.tabs { display: flex; gap: 3px; overflow-x: auto; padding: 5px; border: 1px solid var(--line); border-radius: 12px; background: #f7f9f7; }
.tab { min-height: 36px; padding: 7px 13px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); cursor: pointer; white-space: nowrap; font-weight: 650; }
.tab.active { color: var(--green-strong); background: var(--surface); box-shadow: 0 1px 5px rgba(25,45,31,.08); }
.split-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(300px, .6fr); gap: 18px; }
.stack { display: grid; gap: 14px; }
.mini-card { border: 1px solid var(--line); border-radius: 14px; padding: 15px; background: var(--surface); }
.mini-card h3 { margin-bottom: 4px; }
.mini-card p { margin: 0; color: var(--muted); font-size: 12px; }
.progress { height: 7px; margin-top: 12px; border-radius: 999px; overflow: hidden; background: #edf2ee; }
.progress > span { display: block; height: 100%; border-radius: inherit; background: var(--green); }

.empty-state { min-height: 250px; padding: 36px 20px; display: grid; place-items: center; text-align: center; color: var(--muted); }
.empty-icon { width: 54px; height: 54px; margin: 0 auto 13px; border-radius: 17px; display: grid; place-items: center; color: var(--green); background: var(--green-soft); }
.empty-icon svg { width: 25px; height: 25px; }
.empty-state h3 { color: var(--text); font-size: 17px; }
.error-state { margin: 16px; border: 1px solid #f1caca; border-radius: 12px; padding: 14px; color: #9f2e2e; background: #fff7f7; }
.skeleton { border-radius: 8px; background: linear-gradient(90deg, #eef2ef 25%, #f8faf8 40%, #eef2ef 65%); background-size: 400% 100%; animation: shimmer 1.3s infinite; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

.modal-backdrop, .drawer-backdrop { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; background: rgba(16,28,20,.34); backdrop-filter: blur(3px); animation: fade-in .15s ease; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.modal { width: min(720px, 100%); max-height: min(88vh, 900px); display: flex; flex-direction: column; border: 1px solid rgba(255,255,255,.6); border-radius: 18px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow-lg); }
.modal.small { width: min(500px, 100%); }
.modal.large { width: min(980px, 100%); }
.modal-header { padding: 17px 19px; display: flex; align-items: flex-start; gap: 12px; border-bottom: 1px solid var(--line); }
.modal-header-copy { min-width: 0; flex: 1; }
.modal-header h2 { margin-bottom: 2px; font-size: 19px; }
.modal-header p { margin: 0; color: var(--muted); font-size: 12px; }
.modal-body { overflow: auto; padding: 19px; }
.modal-footer { padding: 13px 19px; display: flex; justify-content: flex-end; gap: 9px; border-top: 1px solid var(--line); background: #fbfcfb; }
.drawer-backdrop { place-items: stretch end; padding: 0; }
.drawer { width: min(560px, 100%); height: 100%; display: flex; flex-direction: column; background: var(--surface); box-shadow: -20px 0 60px rgba(16,28,20,.16); animation: slide-in .2s ease; }
@keyframes slide-in { from { transform: translateX(24px); opacity: .8; } to { transform: translateX(0); opacity: 1; } }
.drawer-header { padding: 18px 20px; display: flex; gap: 12px; align-items: flex-start; border-bottom: 1px solid var(--line); }
.drawer-title { min-width: 0; flex: 1; }
.drawer-title h2 { margin-bottom: 2px; }
.drawer-title p { margin: 0; color: var(--muted); font-size: 12px; }
.drawer-body { overflow: auto; padding: 20px; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.detail { border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: var(--surface-soft); }
.detail-label { color: var(--muted); font-size: 10px; font-weight: 730; text-transform: uppercase; letter-spacing: .05em; }
.detail-value { margin-top: 4px; font-weight: 670; overflow-wrap: anywhere; }
.timeline { display: grid; gap: 10px; }
.timeline-item { position: relative; padding: 0 0 12px 20px; border-left: 1px solid var(--line); }
.timeline-item::before { content: ""; position: absolute; left: -5px; top: 4px; width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item strong { display: block; }
.timeline-item span { color: var(--muted); font-size: 11px; }

.toast-root { position: fixed; z-index: 120; right: 18px; bottom: 18px; display: grid; gap: 9px; width: min(380px, calc(100vw - 36px)); }
.toast { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; align-items: flex-start; gap: 10px; background: var(--surface); box-shadow: var(--shadow-lg); animation: toast-in .2s ease; }
.toast.success { border-color: #bfe1ca; }
.toast.error { border-color: #efc3c3; }
.toast-icon { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--green-soft); color: var(--green); flex: 0 0 auto; }
.toast.error .toast-icon { color: var(--red); background: var(--red-soft); }
.toast-message { min-width: 0; flex: 1; }
.toast-message strong { display: block; }
.toast-message span { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.login-page { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(420px, .9fr); background: var(--surface); }
.login-visual { position: relative; padding: clamp(36px, 6vw, 80px); display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; color: white; background: radial-gradient(circle at 12% 12%, rgba(255,255,255,.16), transparent 30%), linear-gradient(145deg, #0e6e38, #143e28 70%); }
.login-visual::after { content: ""; position: absolute; width: 420px; height: 420px; right: -120px; bottom: -150px; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; box-shadow: 0 0 0 60px rgba(255,255,255,.035), 0 0 0 120px rgba(255,255,255,.025); }
.login-brand { display: flex; align-items: center; gap: 12px; position: relative; z-index: 1; }
.login-brand .brand-mark { background: rgba(255,255,255,.16); box-shadow: none; }
.login-brand-logo-shell { display:flex; align-items:center; justify-content:center; min-height:54px; padding:7px 12px; border-radius:15px; background:rgba(255,255,255,.94); box-shadow:0 12px 30px rgba(0,0,0,.12); }
.login-brand-logo { width:auto; height:40px; max-width:150px; object-fit:contain; }
.login-brand strong { font-size:17px; letter-spacing:.08em; text-transform:uppercase; color:rgba(255,255,255,.88); }
.login-copy { position: relative; z-index: 1; max-width: 620px; }
.login-copy h1 { max-width: 600px; font-size: clamp(38px, 5vw, 62px); letter-spacing: -.05em; }
.login-copy p { max-width: 540px; margin-bottom: 0; color: rgba(255,255,255,.72); font-size: 16px; }
.login-form-side { padding: 30px; display: grid; place-items: center; background: #fbfcfb; }
.login-card { width: min(430px, 100%); border: 1px solid var(--line); border-radius: 22px; padding: 30px; background: var(--surface); box-shadow: var(--shadow-sm); }
.login-card-logo { width:auto; height:52px; max-width:190px; object-fit:contain; margin:0 0 18px; }
.login-card h2 { font-size: 28px; }
.login-card > p { color: var(--muted); }
.login-card form { margin-top: 24px; display: grid; gap: 15px; }
.login-card .button { margin-top: 4px; width: 100%; }
.login-error { border: 1px solid #efc7c7; border-radius: 10px; padding: 10px 12px; color: var(--red); background: var(--red-soft); font-size: 12px; }

.chart-bars { min-height: 190px; display: flex; align-items: flex-end; gap: 10px; padding: 18px 6px 2px; }
.chart-bar { flex: 1; min-width: 24px; display: grid; align-content: end; gap: 7px; text-align: center; }
.chart-bar span { min-height: 4px; border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, #2aa85d, #168846); }
.chart-bar label { color: var(--muted); font-size: 10px; }
.report-table { max-height: 540px; overflow: auto; }

@media (max-width: 1200px) {
  :root { --sidebar: 248px; }
  .kpi-grid.five { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  :root { --sidebar-mobile-tab: 58px; }
  .app-shell { display: block; }
  /* Closed: only the sidebar HEADER control is visible at the screen edge. */
  .sidebar,
  .app-shell.sidebar-unpinned .sidebar {
    width: min(320px, 88vw);
    height: var(--topbar);
    bottom: auto;
    transform: translateX(calc(-100% + var(--sidebar-mobile-tab)));
    box-shadow: none;
    transition: transform .22s ease, height 0s linear .22s;
  }
  .app-shell.sidebar-open .sidebar,
  .app-shell.sidebar-unpinned.sidebar-open .sidebar {
    height: 100dvh;
    bottom: 0;
    transform: translateX(0);
    box-shadow: var(--shadow-lg);
    transition: transform .22s ease;
  }
  .app-shell.sidebar-unpinned .brand { justify-content: initial; padding: 0 12px 0 14px; }
  .app-shell.sidebar-unpinned .sidebar-menu-button { margin-left: auto; }
  .app-shell.sidebar-unpinned.sidebar-open .brand-logo-link { display: flex; }
  .app-shell.sidebar-unpinned.sidebar-open .sidebar-scroll { display: block; }
  .app-shell.sidebar-unpinned.sidebar-open .sidebar-user { display: flex; }
  .app-shell:not(.sidebar-open) .sidebar-scroll,
  .app-shell:not(.sidebar-open) .sidebar-user { display: none; }
  .sidebar .brand { min-width: 0; }
  .main { min-width: 0; }
  .topbar { padding: 0 16px 0 calc(var(--sidebar-mobile-tab) + 12px); }
  .po-workspace-footer, .app-shell.sidebar-unpinned .po-workspace-footer { left: 0; }
  .content { padding: 22px 16px 40px; }
  .page-header { flex-direction: column; }
  .page-actions { width: 100%; justify-content: flex-start; }
  .toolbar { grid-template-columns: 1fr 1fr; }
  .toolbar > :first-child { grid-column: 1 / -1; }
  .login-page { grid-template-columns: 1fr; }
  .login-visual { display: none; }
  .login-form-side { min-height: 100vh; padding: 18px; }
  .sidebar-scrim { background: rgba(13,25,17,.28); }
}

@media (max-width: 620px) {
  .topbar-user .user-copy { display: none; }
  .breadcrumb span:first-child, .breadcrumb .slash { display: none; }
  .kpi-grid, .kpi-grid.five { grid-template-columns: 1fr; }
  .kpi-card { min-height: 105px; }
  .toolbar { grid-template-columns: 1fr; }
  .toolbar > :first-child { grid-column: auto; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .wide, .form-section { grid-column: auto; }
  .modal-backdrop { padding: 0; align-items: end; }
  .modal { width: 100%; max-height: 94vh; border-radius: 18px 18px 0 0; }
  .detail-grid { grid-template-columns: 1fr; }
  .panel-header, .panel-footer { flex-wrap: wrap; }
  .page-actions .button { flex: 1; }
}

/* Product workspace: one active product interface, scoped to the clean inventory module. */
.clickable-row { cursor: pointer; }
.clickable-row:focus { outline: 2px solid rgba(22, 136, 70, .28); outline-offset: -2px; }
.danger-icon { color: var(--red); }
.row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.workspace-header-actions { min-width: 0; display: flex; align-items: center; gap: 14px; }
.workspace-delete-button { flex: 0 0 auto; white-space: nowrap; }
.delete-confirmation { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 14px; align-items: start; }
.delete-warning-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: var(--red); background: #fff0f0; }
.delete-warning-icon svg { width: 22px; height: 22px; }
.delete-confirmation > div:last-child > strong { display: block; font-size: 16px; }
.delete-confirmation p { margin: 6px 0 16px; color: var(--muted); line-height: 1.55; }
.delete-confirmation code { border: 1px solid var(--line); border-radius: 6px; padding: 2px 6px; color: var(--text); background: var(--surface-soft); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.delete-error { margin-top: 12px; border: 1px solid #efcaca; border-radius: 10px; padding: 10px 12px; color: #8f2727; background: #fff7f7; font-size: 11px; line-height: 1.45; }
.delete-error strong { display: block; }
.delete-error ul { margin: 7px 0 0; padding-left: 18px; }
.text-button, .workspace-back { border: 0; padding: 0; display: inline-flex; align-items: center; gap: 7px; color: var(--green-strong); background: transparent; cursor: pointer; font-weight: 700; }
.text-button svg, .workspace-back svg { width: 17px; height: 17px; }
.workspace-back { margin-bottom: 16px; }
.product-workspace-page { max-width: 1500px; margin: 0 auto; }
.product-workspace-header, .ingredient-workspace-header, .packing-workspace-header { min-height: 144px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 20px; border: 1px solid var(--line); border-radius: 20px; padding: 22px; background: var(--surface); box-shadow: var(--shadow-sm); }
.workspace-product-image { width: 92px; height: 92px; border: 1px solid var(--line); border-radius: 20px; display: grid; place-items: center; overflow: hidden; color: var(--green-strong); background: linear-gradient(145deg, #eaf7ef, #fbfdfb); font-size: 25px; font-weight: 800; }
.workspace-product-image img { width: 100%; height: 100%; object-fit: cover; }
.workspace-product-copy { min-width: 0; }
.workspace-product-copy h1 { margin: 6px 0 4px; font-size: clamp(27px, 3vw, 38px); }
.workspace-product-copy p { margin: 0; color: var(--muted); }
.workspace-status-line { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 12px; }
.workspace-summary { display: grid; grid-template-columns: repeat(3, minmax(86px, 1fr)); gap: 8px; }
.workspace-summary > div { min-width: 90px; border-left: 1px solid var(--line); padding: 5px 0 5px 17px; }
.workspace-summary span, .workspace-summary strong { display: block; }
.workspace-summary span { color: var(--muted); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.workspace-summary strong { margin-top: 5px; font-size: 16px; }
.product-tabs { position: sticky; top: calc(var(--topbar) + 8px); z-index: 12; margin: 16px 0; display: flex; gap: 4px; overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; padding: 5px; background: rgba(249, 251, 250, .94); backdrop-filter: blur(12px); box-shadow: 0 4px 16px rgba(20, 38, 26, .04); scrollbar-width: thin; }
.product-tab { min-height: 38px; border: 0; border-radius: 10px; padding: 8px 13px; color: var(--muted); background: transparent; cursor: pointer; white-space: nowrap; font-weight: 680; }
.product-tab:hover { color: var(--text); background: var(--surface-hover); }
.product-tab.active { color: var(--green-strong); background: var(--surface); box-shadow: 0 1px 5px rgba(25, 45, 31, .09); }
.product-tab-panel { min-height: 420px; }
.workspace-form { display: grid; gap: 16px; }
.workspace-card { border: 1px solid var(--line); border-radius: 18px; padding: 20px; background: var(--surface); box-shadow: var(--shadow-sm); }
.workspace-card-header { min-height: 48px; margin-bottom: 18px; display: flex; align-items: flex-start; gap: 16px; }
.workspace-card-header > div { min-width: 0; flex: 1; }
.workspace-card-header h2 { margin-bottom: 3px; }
.workspace-card-header p { margin: 0; color: var(--muted); font-size: 12px; }
.workspace-form-footer { min-height: 66px; border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px 12px 18px; display: flex; align-items: center; gap: 14px; background: var(--surface); box-shadow: var(--shadow-sm); }
.workspace-form-footer span { min-width: 0; flex: 1; color: var(--muted); font-size: 12px; }
.general-layout { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 24px; }
.product-image-editor { align-self: start; display: grid; gap: 10px; }
.product-image-preview { aspect-ratio: 1; width: 100%; border: 1px solid var(--line); border-radius: 18px; display: grid; place-items: center; overflow: hidden; color: var(--green-strong); background: linear-gradient(145deg, #eaf7ef, #fbfdfb); font-size: 34px; font-weight: 820; }
.product-image-preview img { width: 100%; height: 100%; object-fit: contain; background:#fff; }
.image-upload-button { position: relative; overflow: hidden; }
.image-upload-button input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.product-image-editor small { color: var(--muted); font-size: 10px; line-height: 1.45; }
.product-image-url-field{display:grid;gap:6px}.product-image-url-field>span{font-size:11px;font-weight:760;color:var(--ink)}.product-image-url-field .input{width:100%;font-size:11px}.product-image-url-field small[data-state="success"]{color:var(--green-strong)}.product-image-url-field small[data-state="error"]{color:#b42318}.product-image-upload-help{display:block}
.essential-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.essential-fields .wide { grid-column: 1 / -1; }
.field-help { color: var(--muted-2); font-size: 10px; line-height: 1.35; }
.input[readonly] { color: var(--muted); background: #f5f7f5; }
.file-input { padding-top: 7px; }
.multi-select { min-height: 130px; }
.form-accordion { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-sm); overflow: hidden; }
.form-accordion summary { min-height: 64px; padding: 15px 18px; display: flex; align-items: center; gap: 15px; cursor: pointer; list-style: none; }
.form-accordion summary::-webkit-details-marker { display: none; }
.form-accordion summary > span { min-width: 0; flex: 1; }
.form-accordion summary strong, .form-accordion summary small { display: block; }
.form-accordion summary small { margin-top: 2px; color: var(--muted); }
.form-accordion summary svg { width: 18px; height: 18px; color: var(--muted); transition: transform .18s ease; }
.form-accordion[open] summary svg { transform: rotate(180deg); }
.form-accordion[open] summary { border-bottom: 1px solid var(--line); }
.accordion-content { padding: 18px; }
.toggle-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.toggle-grid.wide { grid-column: 1 / -1; }
.toggle-field { min-height: 62px; border: 1px solid var(--line); border-radius: 13px; padding: 11px 12px; display: flex; align-items: center; gap: 12px; background: var(--surface-soft); cursor: pointer; }
.toggle-field > span { min-width: 0; flex: 1; }
.toggle-field strong, .toggle-field small { display: block; }
.toggle-field strong { font-size: 12px; }
.toggle-field small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.toggle-field input { position: absolute; opacity: 0; pointer-events: none; }
.toggle-field i { position: relative; width: 38px; height: 22px; border-radius: 999px; background: #dce3de; transition: background .18s ease; flex: 0 0 auto; }
.toggle-field i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: white; box-shadow: 0 1px 4px rgba(20, 38, 26, .18); transition: transform .18s ease; }
.toggle-field input:checked + i { background: var(--green); }
.toggle-field input:checked + i::after { transform: translateX(16px); }
.inventory-stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.inventory-stat-grid article { min-height: 100px; border: 1px solid var(--line); border-radius: 16px; padding: 16px; background: var(--surface); box-shadow: var(--shadow-sm); }
.inventory-stat-grid span, .inventory-stat-grid strong { display: block; }
.inventory-stat-grid span { color: var(--muted); font-size: 11px; font-weight: 670; }
.inventory-stat-grid strong { margin-top: 8px; font-size: 25px; }
.location-cards { display: grid; gap: 10px; }
.location-cards article { min-height: 66px; border: 1px solid var(--line); border-radius: 13px; padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; gap: 14px; background: var(--surface-soft); }
.location-cards article > div:last-child { text-align: right; }
.location-cards strong, .location-cards span { display: block; }
.location-cards span { margin-top: 2px; color: var(--muted); font-size: 10px; }
.document-grid { display: grid; gap: 10px; }
.document-card { min-height: 76px; border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: flex; align-items: center; gap: 12px; background: var(--surface-soft); }
.document-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: var(--green); background: var(--green-soft); flex: 0 0 auto; }
.document-icon svg { width: 20px; height: 20px; }
.document-copy { min-width: 0; flex: 1; }
.document-copy span, .document-copy strong, .document-copy small { display: block; }
.document-copy span { color: var(--green-strong); font-size: 10px; font-weight: 750; text-transform: uppercase; letter-spacing: .04em; }
.document-copy strong { margin-top: 2px; }
.document-copy small { margin-top: 3px; color: var(--muted); }
.workspace-loading { min-height: 600px; }

@media (max-width: 1180px) {
  .product-workspace-header, .ingredient-workspace-header, .packing-workspace-header { grid-template-columns: auto minmax(0, 1fr); }
  .workspace-header-actions { grid-column: 1 / -1; width: 100%; border-top: 1px solid var(--line); padding-top: 15px; }
  .workspace-summary { min-width: 0; flex: 1; }
  .workspace-summary > div:first-child { border-left: 0; padding-left: 0; }
  .essential-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 780px) {
  .product-workspace-header, .ingredient-workspace-header, .packing-workspace-header { grid-template-columns: 70px minmax(0, 1fr); padding: 16px; }
  .workspace-product-image { width: 70px; height: 70px; border-radius: 16px; }
  .workspace-header-actions { align-items: flex-end; }
  .workspace-summary { grid-template-columns: repeat(3, 1fr); }
  .workspace-summary > div { min-width: 0; padding-left: 10px; }
  .general-layout { grid-template-columns: 1fr; }
  .product-image-editor { grid-template-columns: 120px minmax(0, 1fr); align-items: center; }
  .product-image-editor small { grid-column: 2; }
  .essential-fields { grid-template-columns: 1fr; }
  .essential-fields .wide { grid-column: auto; }
  .inventory-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toggle-grid { grid-template-columns: 1fr; }
  .workspace-card { padding: 16px; }
}

@media (max-width: 520px) {
  .product-workspace-header, .ingredient-workspace-header, .packing-workspace-header { grid-template-columns: 58px minmax(0, 1fr); gap: 12px; }
  .workspace-product-image { width: 58px; height: 58px; border-radius: 14px; }
  .workspace-product-copy h1 { font-size: 24px; }
  .workspace-header-actions { align-items: stretch; flex-direction: column; }
  .workspace-delete-button { width: 100%; }
  .workspace-summary { width: 100%; grid-template-columns: 1fr; }
  .workspace-summary > div { border-left: 0; border-top: 1px solid var(--line); padding: 9px 0 0; }
  .workspace-summary > div:first-child { border-top: 0; }
  .product-tabs { top: calc(var(--topbar) + 4px); margin-inline: -2px; }
  .product-image-editor { grid-template-columns: 1fr; }
  .product-image-preview { width: 130px; }
  .product-image-editor small { grid-column: auto; }
  .inventory-stat-grid { grid-template-columns: 1fr; }
  .workspace-form-footer { align-items: stretch; flex-direction: column; }
  .workspace-form-footer .button { width: 100%; }
  .workspace-card-header { flex-direction: column; }
  .workspace-card-header .button { width: 100%; }
  .document-card { align-items: flex-start; flex-wrap: wrap; }
  .document-card .actions { width: 100%; justify-content: flex-start; padding-left: 54px; }
}

/* Ingredient Master — single active, database-backed workspace */
.ingredient-workspace-page { min-width: 0; }
.ingredient-summary { grid-template-columns: repeat(4, minmax(96px, 1fr)); }
.ingredient-list-toolbar { grid-template-columns: minmax(320px, 1fr) minmax(170px, 230px) minmax(150px, 210px) auto; }
.ingredient-list-table { min-width: 1440px; }
.ingredient-list-table tbody tr { cursor: pointer; }
.ingredient-list-table tbody tr:focus { outline: 2px solid #75b88e; outline-offset: -2px; }
.ingredient-list-table .stock-low { color: var(--red); font-weight: 750; }
.ingredient-inventory-stats { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.cost-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.cost-grid article { min-height: 94px; border: 1px solid var(--line); border-radius: 15px; padding: 15px; background: var(--surface-soft); }
.cost-grid span, .cost-grid strong { display: block; }
.cost-grid span { color: var(--muted); font-size: 11px; font-weight: 680; }
.cost-grid strong { margin-top: 7px; font-size: 21px; letter-spacing: -.02em; }
.recipe-control-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.recipe-control-badges .badge { font-size: 9px; }
.lot-control-form .form-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.empty-inline { border: 1px dashed var(--line-strong); border-radius: 14px; padding: 22px; color: var(--muted); text-align: center; background: var(--surface-soft); }
.activity-timeline { display: grid; gap: 0; }
.activity-timeline article { position: relative; min-height: 76px; padding: 4px 0 20px 34px; }
.activity-timeline article:not(:last-child)::before { content: ""; position: absolute; top: 18px; bottom: -2px; left: 9px; width: 1px; background: var(--line-strong); }
.activity-dot { position: absolute; top: 7px; left: 3px; width: 13px; height: 13px; border: 3px solid var(--surface); border-radius: 50%; background: var(--green); box-shadow: 0 0 0 1px var(--line-strong); }
.activity-timeline strong, .activity-timeline span, .activity-timeline small { display: block; }
.activity-timeline span { margin-top: 3px; color: var(--muted); font-size: 12px; }
.activity-timeline small { margin-top: 5px; color: var(--muted-2); font-size: 10px; }
.ingredient-tabs .product-tab:disabled { opacity: .38; cursor: not-allowed; }

@media (max-width: 1320px) {
  .ingredient-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ingredient-inventory-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cost-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .ingredient-list-toolbar { grid-template-columns: 1fr 1fr; }
  .ingredient-list-toolbar .field:first-child { grid-column: 1 / -1; }
  .lot-control-form .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 780px) {
  .ingredient-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ingredient-inventory-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lot-control-form .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .ingredient-list-toolbar { grid-template-columns: 1fr; }
  .ingredient-list-toolbar .field:first-child { grid-column: auto; }
  .ingredient-list-toolbar .button { width: 100%; }
  .ingredient-summary, .ingredient-inventory-stats, .cost-grid { grid-template-columns: 1fr; }
}

.lot-disposition-note { border: 1px solid #d9e8de; border-radius: 12px; padding: 11px 13px; color: var(--green-strong); background: var(--green-soft); font-size: 11px; line-height: 1.45; }

@media (max-width: 620px) {
  .delete-confirmation { grid-template-columns: 1fr; }
  .delete-warning-icon { width: 42px; height: 42px; }
}

/* Product recipe workspace */
.workspace-card-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.manufacturing-recipe-strip,
.recipe-summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.recipe-summary-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.recipe-summary-grid.compact { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.manufacturing-recipe-strip > div,
.recipe-summary-grid > article { min-width: 0; border: 1px solid var(--line); border-radius: 14px; padding: 13px 14px; background: #fbfcfb; }
.manufacturing-recipe-strip span,
.recipe-summary-grid span { display: block; margin-bottom: 5px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
.manufacturing-recipe-strip strong,
.recipe-summary-grid strong { display: block; overflow: hidden; color: var(--text); font-size: 16px; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.recipe-master-card .form-accordion { margin-top: 18px; }
.recipe-master-card .textarea { min-height: 112px; }
.form-section-title { display: flex; flex-direction: column; gap: 3px; margin-top: 4px; border-top: 1px solid var(--line); padding-top: 15px; }
.form-section-title strong { font-size: 14px; }
.form-section-title span { color: var(--muted); font-size: 12px; }
.current-recipe-row { background: var(--green-soft); }
.recipe-bom-table td { vertical-align: top; }
.recipe-line-form .toggle-grid { margin-top: 2px; }

@media (max-width: 1100px) {
  .recipe-summary-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .manufacturing-recipe-strip,
  .recipe-summary-grid.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .workspace-card-actions { width: 100%; justify-content: stretch; }
  .workspace-card-actions .button { flex: 1 1 auto; }
  .manufacturing-recipe-strip,
  .recipe-summary-grid,
  .recipe-summary-grid.compact { grid-template-columns: 1fr 1fr; }
  .recipe-summary-grid > article:last-child { grid-column: 1 / -1; }
}

/* Product recipe source-of-truth architecture */
.source-of-truth-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 20px;
  padding: 14px 16px;
  border: 1px solid #cfe5d8;
  border-radius: 14px;
  background: #f3faf6;
}
.source-of-truth-note strong {
  flex: 0 0 auto;
  color: #17653a;
  font-size: 13px;
}
.source-of-truth-note span {
  color: #486156;
  font-size: 13px;
  line-height: 1.45;
}
.recipe-version-picker {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 20px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-soft);
}
.recipe-version-picker .field {
  width: min(520px, 100%);
  margin: 0;
}
.selected-version-row {
  background: #f4faf6;
}
.workspace-card-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}
@media (max-width: 720px) {
  .source-of-truth-note,
  .recipe-version-picker {
    align-items: stretch;
    flex-direction: column;
  }
  .workspace-card-actions {
    justify-content: flex-start;
    width: 100%;
  }
}


/* Initial boot state: prevents a silent white page when a module cannot load. */
.boot-state{min-height:100vh;display:grid;place-items:center;padding:32px;background:#f6f8f7}
.boot-card{display:grid;justify-items:center;gap:12px;max-width:460px;padding:32px;text-align:center;color:#1d2a22;background:#fff;border:1px solid #e5ebe7;border-radius:20px;box-shadow:0 18px 48px rgba(20,48,31,.08)}
.boot-card span{color:#68766e;font-size:14px;line-height:1.55}
.boot-spinner{width:30px;height:30px;border:3px solid #dce7df;border-top-color:#16794a;border-radius:50%;animation:boot-spin .8s linear infinite}
.boot-error{border-color:#efd6d6}
.boot-error strong{color:#9f2d2d}
@keyframes boot-spin{to{transform:rotate(360deg)}}


/* Admin partner and employee management */
.portal-toolbar { display:grid; grid-template-columns:minmax(280px,520px); gap:12px; padding:16px; border-bottom:1px solid var(--line); }
.portal-toolbar .field { margin:0; }
.data-table .button.small { min-height:32px; padding:6px 11px; font-size:11px; }
@media(max-width:720px){.portal-toolbar{grid-template-columns:1fr}.portal-toolbar .input{width:100%}}

/* Production execution */
.production-tabs{display:inline-flex;gap:4px;padding:4px;background:#eef3ef;border:1px solid var(--line);border-radius:12px;margin:0 0 16px}.production-tabs button{border:0;background:transparent;padding:9px 14px;border-radius:9px;font-weight:750;color:var(--muted);cursor:pointer}.production-tabs button.active{background:#fff;color:var(--ink);box-shadow:0 3px 12px rgba(18,55,35,.08)}
.progress-inline,.progress-track{height:7px;background:#e7eee9;border-radius:999px;overflow:hidden;min-width:110px}.progress-inline span,.progress-track span{display:block;height:100%;background:var(--green);border-radius:inherit}.progress-track.large{height:11px}.production-summary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:20px}.production-summary-grid>div{padding:14px;border:1px solid var(--line);border-radius:12px;background:#fbfcfb}.production-summary-grid small,.production-summary-grid strong{display:block}.production-summary-grid small{color:var(--muted);margin-bottom:7px}.production-action-bar{display:flex;gap:9px;flex-wrap:wrap;margin:0 0 24px}.production-detail h3{margin:24px 0 12px}.event-list{border:1px solid var(--line);border-radius:14px;overflow:hidden}.event-row{display:flex;justify-content:space-between;gap:20px;padding:13px 15px;border-bottom:1px solid var(--line)}.event-row:last-child{border-bottom:0}.event-row strong,.event-row small{display:block}.event-row small,.event-row time{color:var(--muted);font-size:12px}.scale-admin-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;padding:18px 20px;border-bottom:1px solid var(--line)}.scale-admin-head h3{margin:0 0 5px}.scale-station-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;padding:18px}.scale-station-card{border:1px solid var(--line);border-radius:16px;padding:18px;background:#fff}.scale-station-card header{display:flex;justify-content:space-between;gap:14px}.scale-station-card h3{margin:9px 0 4px}.scale-station-card p{margin:0;color:var(--muted)}.scale-live-value{font-size:34px;font-weight:800;margin:18px 0 5px}.connection-pill,.status-badge{display:inline-flex;padding:5px 9px;border-radius:999px;font-size:11px;font-weight:800}.connection-pill.online,.status-badge.green{background:#e6f5eb;color:#177044}.connection-pill.offline,.status-badge.gray{background:#eef1ef;color:#65726b}.device-list{display:grid;gap:7px;margin-top:16px}.device-row{display:flex;justify-content:space-between;align-items:center;gap:12px;width:100%;border:1px solid var(--line);background:#fafcfb;border-radius:11px;padding:11px;text-align:left;cursor:pointer}.device-row strong,.device-row small{display:block}.device-row small{color:var(--muted);margin-top:3px}.compact-empty{padding:18px}.production-page .field.compact{max-width:240px}
@media(max-width:900px){.production-summary-grid,.scale-station-grid{grid-template-columns:1fr}.scale-admin-head{flex-direction:column}.production-page .field.compact{max-width:none}}
.modal.xlarge{width:min(1280px,100%)}

/* Browser-connected WebHID scale station */
.browser-scale-model{display:grid;gap:4px;margin:14px 0;padding:13px 14px;border:1px solid var(--line);border-radius:12px;background:#fafcfa}.browser-scale-model strong{font-size:15px}.browser-scale-model small{color:var(--muted)}.field-help{display:block;color:var(--muted);font-size:11px;margin-top:5px}

/* Packing Materials — shared list and measurement controls. */
.packing-material-table { min-width: 1540px; }
.packing-dimensions-field { gap: 7px; }
.packing-dimensions-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(90px, .45fr);
  gap: 10px;
  align-items: end;
}
.packing-dimensions-grid label { display: grid; gap: 5px; }
.packing-dimensions-grid label > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}
.packing-measurement-pair > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px;
  gap: 8px;
}

.packing-bottle-dimensions-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(90px, .55fr);
  gap: 10px;
  align-items: end;
}
.packing-bottle-dimensions-grid label { display: grid; gap: 5px; }
.packing-bottle-dimensions-grid label > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}
.bottle-spec-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.bottle-shape-preview {
  min-height: 300px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-soft);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.bottle-shape-preview strong { margin-top: 14px; font-size: 14px; }
.bottle-shape-preview small { margin-top: 7px; color: var(--muted); line-height: 1.45; }
.bottle-shape-figure { position: relative; width: 104px; height: 190px; }
.bottle-shape-figure span,
.bottle-shape-figure::before,
.bottle-shape-figure::after { content: ''; position: absolute; left: 50%; transform: translateX(-50%); border: 2px solid #789486; background: rgba(255,255,255,.78); }
.bottle-shape-figure span { top: 4px; width: 42px; height: 18px; border-radius: 5px 5px 2px 2px; z-index: 3; }
.bottle-shape-figure::after { top: 21px; width: 31px; height: 34px; border-top: 0; border-radius: 0 0 7px 7px; z-index: 2; }
.bottle-shape-figure::before { top: 46px; width: 88px; height: 137px; border-radius: 34px 34px 18px 18px; box-shadow: inset 12px 0 18px rgba(34,71,50,.05); }
.bottle-shape-preview[data-shape="cylinder"] .bottle-shape-figure::before { width: 78px; border-radius: 16px 16px 12px 12px; }
.bottle-shape-preview[data-shape="oval"] .bottle-shape-figure::before { width: 96px; border-radius: 48% 48% 35% 35%; }
.bottle-shape-preview[data-shape="square"] .bottle-shape-figure::before { width: 86px; border-radius: 8px; }
.bottle-shape-preview[data-shape="rectangular"] .bottle-shape-figure::before { width: 72px; border-radius: 7px; }
.bottle-shape-preview[data-shape="flask"] .bottle-shape-figure::before { width: 96px; border-radius: 10px 10px 22px 22px; clip-path: polygon(31% 0,69% 0,100% 100%,0 100%); }
.bottle-shape-preview[data-shape="specialty-custom"] .bottle-shape-figure::before { width: 92px; border-radius: 42px 14px 32px 12px; transform: translateX(-50%) rotate(-2deg); }
.measurement-unit-readout {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

@media (max-width: 920px) {
  .packing-dimensions-grid, .packing-bottle-dimensions-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bottle-spec-layout { grid-template-columns: 1fr; }
  .bottle-shape-preview { min-height: 250px; }
}

@media (max-width: 520px) {
  .packing-dimensions-grid, .packing-bottle-dimensions-grid { grid-template-columns: 1fr; }
}

/* Packing Materials — product-style workspace replacing the legacy master popup. */
.packing-workspace-page { min-width: 0; }
.packing-workspace-header .workspace-header-actions { justify-content: flex-end; }
.packing-header-buttons { display: flex; align-items: center; justify-content: flex-end; flex-wrap: nowrap; gap: 8px; }
.packing-header-buttons .button { white-space: nowrap; }
.workspace-mode-label { border: 1px solid var(--line); border-radius: 999px; padding: 4px 8px; color: var(--muted); background: var(--surface-soft); font-size: 10px; font-weight: 750; text-transform: uppercase; letter-spacing: .04em; }
.packing-row-actions { min-width: 104px; flex-wrap: nowrap; }
.packing-row-actions .button { white-space: nowrap; }
.packing-action-trigger { width: 34px; height: 34px; border-radius: 9px; flex: 0 0 auto; color: var(--muted); }
.packing-header-action-trigger { width: 40px; height: 40px; border-radius: 10px; }
.packing-action-trigger[aria-expanded="true"],
.packing-action-trigger.active { color: var(--green-strong); border-color: #b8d8c2; background: var(--green-soft); }
.packing-action-popover { position: fixed; z-index: 140; width: 190px; border: 1px solid var(--line); border-radius: 12px; padding: 6px; background: var(--surface); box-shadow: 0 18px 45px rgba(16, 28, 20, .18); animation: packing-action-menu-in .14s ease; }
.packing-action-menu-item { width: 100%; min-height: 40px; border: 0; border-radius: 9px; padding: 9px 10px; display: flex; align-items: center; gap: 10px; color: var(--text); background: transparent; cursor: pointer; text-align: left; font: inherit; font-size: 12px; font-weight: 680; }
.packing-action-menu-item svg { width: 17px; height: 17px; flex: 0 0 auto; color: var(--muted); }
.packing-action-menu-item:hover,
.packing-action-menu-item:focus-visible,
.packing-action-menu-item.active { outline: none; color: var(--green-strong); background: var(--green-soft); }
.packing-action-menu-item:hover svg,
.packing-action-menu-item:focus-visible svg,
.packing-action-menu-item.active svg { color: currentColor; }
.packing-action-menu-item.danger { color: var(--red); }
.packing-action-menu-item.danger:hover,
.packing-action-menu-item.danger:focus-visible { background: var(--red-soft); }
.packing-action-menu-item:disabled { opacity: .45; cursor: not-allowed; background: transparent; }
@keyframes packing-action-menu-in { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
.packing-pricing-fields { margin-top: 18px; }
.workspace-view-mode .toggle-field { cursor: default; }
.workspace-view-mode .input:disabled,
.workspace-view-mode .select:disabled,
.workspace-view-mode .textarea:disabled { opacity: 1; color: var(--text); -webkit-text-fill-color: var(--text); background: var(--surface-soft); cursor: default; }
.workspace-view-mode .toggle-field input:disabled + i { opacity: .82; }
.archive-banner { margin-top: 14px; border: 1px solid #e9c676; border-radius: 14px; padding: 13px 15px; display: flex; align-items: flex-start; gap: 10px; color: #725310; background: #fffaf0; }
.archive-banner strong, .archive-banner span { display: block; }
.archive-banner strong { flex: 0 0 auto; }
.archive-banner span { color: #846829; line-height: 1.45; }
.dependency-list { margin: -4px 0 15px; padding-left: 19px; color: var(--muted); line-height: 1.55; }
.dependency-list li + li { margin-top: 3px; }

@media (max-width: 1180px) {
  .packing-workspace-header .workspace-header-actions { justify-content: space-between; }
  .packing-header-buttons { justify-content: flex-start; }
}

@media (max-width: 780px) {
  .packing-row-actions { min-width: 0; justify-content: flex-start; }
  .packing-workspace-header .workspace-header-actions { align-items: stretch; flex-direction: column; }
  .packing-header-buttons { width: 100%; justify-content: flex-start; }
}

@media (max-width: 520px) {
  .packing-header-buttons .button { flex: 1 1 auto; }
  .packing-header-action-trigger { flex: 0 0 40px; }
  .archive-banner { flex-direction: column; }
}

/* Customer sales workspace */
.customer-statement-filter .panel-body{display:flex;align-items:end;gap:14px}.customer-statement-filter .field{width:min(420px,100%)}
.customer-line-editor{margin:18px 0;border:1px solid var(--border);border-radius:16px;background:var(--surface-subtle,#fafafa);overflow:hidden}
.customer-line-header{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 16px;border-bottom:1px solid var(--border);background:#fff}
.customer-line-header>div{display:grid;gap:2px}.customer-line-header span{font-size:12px;color:var(--muted)}
.customer-line-row{display:grid;grid-template-columns:minmax(220px,1.5fr) minmax(180px,1fr) 100px 120px 40px;gap:10px;align-items:end;padding:12px 14px;border-bottom:1px solid var(--border)}
.customer-line-row:last-child{border-bottom:0}.customer-line-row .field{margin:0}.customer-line-remove{margin-bottom:2px}
.check-row{display:flex;align-items:center;gap:9px;margin-top:14px;font-size:13px;color:var(--text)}
.button.compact{min-height:34px;padding:7px 11px;font-size:12px}
@media(max-width:900px){.customer-line-row{grid-template-columns:1fr 1fr}.customer-line-row .field.small{grid-column:auto}.customer-line-remove{justify-self:end}.customer-line-row [data-product]{min-width:0}}
@media(max-width:620px){.customer-line-header{align-items:flex-start}.customer-line-row{grid-template-columns:1fr}.customer-line-remove{justify-self:end}.customer-statement-filter .field{width:100%}}

/* v262 — one canonical invoice builder layout; replaces legacy invoice editor and Quick Select CSS. */
.customer-invoice-workspace{--inv-paper:#f8f8f0;--inv-green:#284c35;--inv-sage:#92ac86;--inv-yellow:#f4da79;--inv-border:#dae3da;margin:-30px -28px -45px;padding:0 0 70px;min-height:calc(100vh - var(--topbar));background:var(--inv-paper);color:#1d2b23}
.customer-invoice-workspace>form{min-height:calc(100vh - var(--topbar))}
.invoice-workspace-header{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:15px 24px 14px;background:rgba(248,248,240,.94);border-bottom:1px solid var(--inv-border)}
.invoice-title-group{display:flex;align-items:center;gap:12px;min-width:0}.invoice-title-group h1{margin:0;font-size:24px;letter-spacing:-.04em}.invoice-title-group p{margin:3px 0 0;font-size:12px;color:#68766d}.invoice-title-group .eyebrow{font-size:10px;color:#54735e;margin-bottom:3px}.invoice-header-actions,.invoice-footer-actions,.invoice-footer-links{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.invoice-header-actions .button{min-height:34px}.invoice-lock-banner,.invoice-fulfillment-banner{margin:12px 20px;padding:12px 14px;border:1px solid #f0d5a0;border-radius:13px;background:#fff9eb;display:flex;gap:10px;align-items:center;font-size:12px}
.invoice-editor-card{margin:14px 20px 0;background:transparent;border:none;box-shadow:none;overflow:visible}
.invoice-customer-section{display:grid;grid-template-columns:minmax(350px,1.2fr) minmax(500px,1.35fr);align-items:start;gap:22px;padding:19px 20px;background:rgba(255,255,252,.87);border:1px solid var(--inv-border);border-radius:22px;box-shadow:0 7px 25px rgba(34,62,41,.04);backdrop-filter:blur(12px)}
.invoice-section-label{font-size:15px;font-weight:800;letter-spacing:-.02em;color:var(--inv-green)}.invoice-customer-picker{min-width:0}.invoice-customer-controls{display:flex;gap:8px;margin-top:9px;align-items:stretch}.invoice-v262-customer-combo{flex:1;min-width:0;position:relative}.invoice-v262-customer-combo>.input{width:100%;height:44px;background:#fff;border:1px solid #ccdccc;border-radius:12px;padding:10px 14px}.invoice-v262-customer-combo>select{position:absolute;left:0;bottom:0;width:1px;height:1px;opacity:0;pointer-events:none}.invoice-v262-customer-results{position:absolute;left:0;right:0;top:calc(100% + 5px);z-index:70;max-height:290px;overflow:auto;background:#fff;border:1px solid #d7e3d8;border-radius:14px;box-shadow:0 14px 32px rgba(26,51,31,.15);padding:5px}.invoice-v262-customer-results[hidden]{display:none}.invoice-v262-customer-results p{font-size:12px;padding:12px;margin:0}.invoice-v262-customer-result{display:grid;gap:3px;width:100%;border:0;background:transparent;text-align:left;padding:10px;border-radius:9px;cursor:pointer}.invoice-v262-customer-result:hover,.invoice-v262-customer-result.active{background:#eff6ef}.invoice-v262-customer-result strong{font-size:12px}.invoice-v262-customer-result small{color:#66786c;font-size:11px;overflow:hidden;text-overflow:ellipsis}
.invoice-customer-summary{display:grid;gap:3px;font-size:11px;color:#66766c;margin-top:10px;line-height:1.5}.invoice-customer-summary strong{font-size:13px;color:#243c2b}.invoice-meta-grid{display:grid;grid-template-columns:repeat(3,minmax(110px,1fr));gap:9px}.invoice-meta-grid .field{min-width:0;margin:0}.invoice-meta-grid .field-label{font-size:10px}.invoice-meta-grid .input,.invoice-meta-grid .select{width:100%;min-height:40px;padding:8px 10px;border-radius:10px;font-size:12px;background:#fff}.invoice-v262-status{display:grid;align-content:center;gap:5px;font-size:10px;color:#64736b}.invoice-v262-status>.badge{width:max-content}
.invoice-v262-advanced,.invoice-v262-notes{margin-top:10px;border:1px solid var(--inv-border);border-radius:14px;background:rgba(255,255,255,.7);padding:0 16px}.invoice-v262-advanced>summary,.invoice-v262-notes>summary{padding:12px 0;cursor:pointer;color:#596c5d;font-size:11px;font-weight:750}.invoice-reference-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:10px 0 14px}.invoice-payment-banner{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid var(--inv-border)}.invoice-payment-banner>div{display:grid;gap:3px}.invoice-payment-banner strong{font-size:12px}.invoice-payment-banner span{font-size:11px;color:#718076}.invoice-switch{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--inv-green)}.invoice-switch input{accent-color:var(--inv-green)}.invoice-switch i{display:none}
.invoice-products-section{padding:16px 0 0}.invoice-products-heading{display:flex;justify-content:space-between;gap:16px;align-items:center;padding:0 3px 12px}.invoice-products-heading p{margin:4px 0 0;color:#6c7a6c;font-size:11px}.invoice-products-actions{display:flex;align-items:center;gap:10px}.invoice-v262-mode-note{display:none}
.invoice-v262-quick{background:rgba(255,255,255,.6);border:1px solid var(--inv-border);border-radius:22px;padding:15px;backdrop-filter:blur(12px);box-shadow:0 8px 25px rgba(34,62,41,.035);overflow:visible}.invoice-v262-catalog-toolbar{display:grid;gap:10px}.invoice-quick-categories{display:flex;overflow-x:auto;gap:7px;padding:2px 0 8px;scrollbar-width:thin}.invoice-quick-category{display:inline-flex;align-items:center;gap:7px;flex:0 0 auto;border:1px solid #d8e4d8;background:#f9fbf6;color:#46604c;border-radius:99px;font-size:11px;font-weight:750;padding:8px 13px;cursor:pointer;white-space:nowrap}.invoice-quick-category small{font-size:10px;color:#81948a}.invoice-quick-category:hover{background:#ecf4ec}.invoice-quick-category.active{background:var(--inv-green);color:white;border-color:var(--inv-green)}.invoice-quick-category.active small{color:#dce9df}
.invoice-quick-search{position:relative;display:flex;align-items:center;max-width:475px}.invoice-quick-search>span{position:absolute;left:12px;display:grid;place-items:center;color:#76917b;pointer-events:none}.invoice-quick-search svg{width:16px;height:16px}.invoice-quick-search input{width:100%;height:40px;border:1px solid #d5e1d4;background:#fff;border-radius:11px;padding:9px 12px 9px 37px;outline-color:#9dbba3;font-size:12px}
.invoice-v262-products{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;padding:13px 0 8px;overflow:visible;max-height:none}.invoice-v262-product-card{position:relative;min-width:0;border:1px solid #e0e8df;border-radius:17px;background:#fff;box-shadow:0 2px 9px rgba(36,58,42,.035);transition:transform .16s,box-shadow .16s,border-color .16s}.invoice-v262-product-card:hover,.invoice-v262-product-card.menu-open{border-color:#abcbb3;box-shadow:0 8px 18px rgba(30,65,40,.09);transform:translateY(-1px)}.invoice-v262-product-card.menu-open{z-index:16}.invoice-v262-card-media{position:relative;aspect-ratio:1.3;display:flex;align-items:center;justify-content:center;overflow:visible;background:#f6f8f3;border-radius:17px 17px 0 0}.invoice-v262-product-image{width:100%;height:100%;object-fit:contain;padding:12px;border-radius:inherit}.invoice-v262-image-placeholder{width:100%;height:100%;display:grid;place-items:center;color:#a3b4a5}.invoice-v262-image-placeholder[hidden]{display:none}.invoice-v262-image-placeholder svg{height:32px;width:32px;stroke-width:1.2}.invoice-v262-menu-trigger{position:absolute;top:7px;right:7px;width:31px;height:31px;display:grid;place-items:center;border:1px solid #d6e5d8;border-radius:9px;background:rgba(255,255,255,.96);color:#315941;cursor:pointer}.invoice-v262-menu-trigger svg{height:18px;width:18px}.invoice-v262-menu-trigger:focus-visible,.invoice-v262-variant-option:focus-visible,.invoice-quick-category:focus-visible{outline:3px solid #92ac86;outline-offset:2px}
.invoice-v262-card-text{padding:10px 11px 12px;min-height:84px;display:grid;align-content:start;gap:3px}.invoice-v262-card-text strong,.invoice-v263-product-title{font-size:11.5px;line-height:1.35;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.invoice-v263-product-title{border:0;background:none;text-align:left;padding:0;font-weight:750;color:inherit;cursor:pointer}.invoice-v262-card-text small{font-size:10px;color:#728075;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.invoice-v262-card-text>span{font-size:9.5px;font-weight:700}.invoice-v262-card-text .has-stock{color:#3a8251}.invoice-v262-card-text .no-stock{color:#ad712d}
/* v263 product picker: one compact stepper per active ERP pack and one Add action. */
.invoice-v263-media-open{width:100%;height:100%;display:block;background:transparent;border:0;padding:0;cursor:pointer;border-radius:17px 17px 0 0}.invoice-v263-media-open .invoice-v262-product-image{display:block}.invoice-v263-media-open .invoice-v262-image-placeholder{pointer-events:none}
.invoice-v262-variant-popover.invoice-v263-pack-picker{position:fixed;z-index:101;top:0;left:0;width:min(428px,calc(100vw - 24px));max-height:min(590px,calc(100dvh - 104px));display:flex;flex-direction:column;overflow:hidden;padding:0;background:#fffefb;border:1px solid #cbdccf;border-radius:19px;box-shadow:0 22px 56px rgba(20,45,27,.22);overscroll-behavior:contain}
.invoice-v264-pack-backdrop{position:fixed;inset:0;z-index:100;background:rgba(20,35,25,.30);backdrop-filter:blur(2px)}
.invoice-v262-variant-popover.invoice-v263-pack-picker.is-dialog{left:50%;top:50%;transform:translate(-50%,-50%);width:min(440px,calc(100vw - 24px));max-height:min(680px,calc(100dvh - 34px))}
.invoice-v264-picker-close{width:30px;height:30px;border:1px solid #d7e6d8;border-radius:9px;background:white;display:grid;place-items:center;cursor:pointer;align-self:start;grid-column:2;grid-row:1/span 2;color:#3b6045}
.invoice-v264-picker-close svg{width:16px;height:16px}
.invoice-v264-picker-close:hover{background:#f0f7ef}
.invoice-v264-picker-close:focus-visible{outline:2px solid #86ab8c;outline-offset:2px}
.invoice-v263-picker-head{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 10px;padding:15px 15px 10px;border-bottom:1px solid #e9eee7}.invoice-v263-picker-head strong{font-size:13px;color:#284c35;grid-column:1}.invoice-v263-picker-head span{font-size:10px;color:#748577;grid-column:1}.invoice-v263-pack-list{overflow-y:auto;min-height:0;padding:3px 9px;scrollbar-width:thin}.invoice-v263-pack-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:9px;align-items:center;padding:10px 5px;border-bottom:1px solid #edf1eb}.invoice-v263-pack-row:last-child{border-bottom:0}.invoice-v263-pack-copy{display:grid;gap:3px;min-width:0}.invoice-v263-pack-copy strong{font-size:12px;color:#22362a}.invoice-v263-pack-copy small{font-size:9.5px;line-height:1.35;color:#77877a;overflow-wrap:anywhere}.invoice-v263-pack-price{color:#254c33;font-size:12px;white-space:nowrap;font-variant-numeric:tabular-nums}
.invoice-v263-qty{display:flex;align-items:center;gap:3px}.invoice-v263-qty button{width:29px;height:32px;display:grid;place-items:center;flex:0 0 29px;border:1px solid #dae6d9;border-radius:8px;background:#f6faf5;color:#2d5d3a;cursor:pointer}.invoice-v263-qty button:hover{background:#e9f3e9}.invoice-v263-qty button svg{height:14px;width:14px}.invoice-v263-qty input{box-sizing:border-box;width:48px;height:32px;padding:3px;border:1px solid #d2e2d2;border-radius:8px;background:#fff;text-align:center;font-size:12px;color:#253c2d;font-weight:700;font-variant-numeric:tabular-nums;appearance:textfield;-moz-appearance:textfield}.invoice-v263-qty input::-webkit-inner-spin-button,.invoice-v263-qty input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.invoice-v263-qty input.invalid{border-color:#bd6b52;background:#fff4ee}
.invoice-v263-picker-footer{display:grid;gap:9px;padding:12px 14px 14px;border-top:1px solid #e8eee8;background:#f9fbf7}.invoice-v263-picker-summary{min-height:15px;font-size:11px;font-weight:700;color:#4b6951}.invoice-v263-add-to-invoice{display:flex;justify-content:center;align-items:center;gap:8px;width:100%;min-height:40px;border:0;border-radius:10px;background:#284c35;color:#fff;font-size:12px;font-weight:800;cursor:pointer}.invoice-v263-add-to-invoice:hover:not(:disabled){background:#1d3927}.invoice-v263-add-to-invoice:disabled{opacity:.48;cursor:not-allowed}.invoice-v263-add-to-invoice svg{width:16px;height:16px}.invoice-v263-no-packs{padding:10px 14px;font-size:12px;color:#788879}
.invoice-v263-qty button:focus-visible,.invoice-v263-qty input:focus-visible,.invoice-v263-add-to-invoice:focus-visible,.invoice-v263-media-open:focus-visible,.invoice-v263-product-title:focus-visible{outline:2px solid #86ab8c;outline-offset:2px}
@media(max-width:520px){.invoice-v263-pack-row{grid-template-columns:minmax(0,1fr) auto;gap:5px 8px}.invoice-v263-pack-price{grid-column:1;grid-row:2}.invoice-v263-qty{grid-column:2;grid-row:1/span 2;justify-self:end}.invoice-v263-pack-list{padding:2px 9px}}
.invoice-v262-pagination{display:flex;justify-content:space-between;align-items:center;gap:12px;color:#758276;font-size:11px;padding:8px 0 1px}.invoice-v262-pagination>div{display:flex;align-items:center;gap:10px}.invoice-v262-pagination button{border:1px solid #dce6dc;border-radius:9px;padding:7px 12px;background:white;color:#315742;cursor:pointer}.invoice-v262-pagination button:disabled{opacity:.4;cursor:default}.invoice-quick-no-products{grid-column:1/-1;padding:42px;text-align:center;color:#718074;display:grid;gap:5px}.invoice-quick-no-products strong{font-size:14px;color:#213b2c}
.invoice-v262-selected-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(250px,300px);gap:15px;align-items:start;margin-top:17px}.invoice-v262-line-stack{min-width:0}.invoice-lines-label{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 2px 11px}.invoice-lines-label strong{color:#254a33;font-size:15px}.invoice-lines-label>span{font-size:10px;color:#829084;flex:1}.invoice-v262-selected-heading.just-added{animation:invoice-v262-add-highlight .8s ease}@keyframes invoice-v262-add-highlight{0%{background:#eaf5c1}100%{background:transparent}}
.invoice-v262-lines{min-width:0;overflow-x:auto;border:1px solid #dee7dc;border-radius:16px;background:white}.invoice-v262-lines .invoice-line-head,.invoice-v262-lines .invoice-line-row{min-width:820px;display:grid;grid-template-columns:minmax(178px,2fr) minmax(122px,1.4fr) 62px 96px 106px 55px 92px 36px;align-items:center;gap:5px;padding:0 9px}.invoice-v262-lines .invoice-line-head{height:37px;border-bottom:1px solid #e2e9e0;background:#f5f8f2;color:#718074;font-size:9px;text-transform:uppercase;font-weight:750;letter-spacing:.04em}.invoice-v262-lines .invoice-line-head span{padding:0}.invoice-v262-lines .invoice-line-row{min-height:76px;border-bottom:1px solid #edf0e9}.invoice-v262-lines .invoice-line-row:last-child{border-bottom:0}.invoice-v262-lines .input,.invoice-v262-lines .select{min-height:34px;max-width:100%;font-size:11px;border:1px solid #dce5da;border-radius:8px;background:#fff;padding:6px;box-shadow:none}.invoice-v262-line-product{display:flex;align-items:center;min-width:0;gap:7px}.invoice-v262-line-img{width:38px!important;height:38px!important;object-fit:contain;flex:0 0 38px;border-radius:8px;background:#f2f6ef;padding:4px}.invoice-v262-line-product .type-search-combobox{min-width:0;position:relative;display:grid;gap:3px}.invoice-v262-line-product .type-search-combobox>.input{padding:5px 4px;border:0;min-height:30px;background:transparent;font-size:11px;min-width:0;overflow:hidden;text-overflow:ellipsis}.invoice-v262-line-product small{font-size:9px;color:#5e8d65;padding-left:4px}.invoice-v262-lines .invoice-pack-select{min-width:0;display:grid;gap:4px}.invoice-v262-lines .invoice-pack-select>small{font-size:9px;line-height:1.2;color:#8b988d}.invoice-v262-lines .invoice-v262-rate{position:relative;min-width:0}.invoice-v262-lines .invoice-v262-rate>span{position:absolute;left:8px;top:11px;font-size:11px;color:#829184}.invoice-v262-lines .invoice-v262-rate>input{padding-left:18px}.invoice-v262-lines .invoice-v262-rate small{display:block;font-size:9px;color:#9aa69b}.invoice-v262-lines .invoice-v262-discount{display:flex;align-items:center;gap:3px;min-width:0}.invoice-v262-lines .invoice-v262-discount>input{min-width:0;flex:1}.invoice-v262-lines .invoice-v262-discount>select{width:40px;padding:2px;flex:0 0 40px}.invoice-v262-lines .invoice-tax-check{height:auto;display:grid;justify-items:center;gap:2px;font-size:9px;color:#778778}.invoice-v262-lines .invoice-tax-check input{accent-color:var(--inv-green)}.invoice-v262-lines .invoice-line-amount{height:auto;min-width:0;border:0;padding:0;font-size:12px;text-align:right;justify-content:flex-end}.invoice-v262-lines [data-line-remove]{width:32px;height:32px;color:#b45c59;border:0}
.invoice-totals-panel{position:sticky;top:15px;padding:16px;border:1px solid #dae6d9;border-radius:17px;background:rgba(255,255,252,.92);box-shadow:0 4px 20px rgba(33,66,45,.04)}.invoice-total-row,.invoice-balance-row{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:35px;font-size:12px}.invoice-total-row.muted{color:#75867a;font-size:10px}.invoice-total-control{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center;min-height:48px;font-size:11px}.invoice-total-control>label{display:grid;gap:4px}.invoice-total-control>label>div{display:flex;align-items:center;gap:3px}.invoice-total-control .input,.invoice-total-control .select{width:100%;min-width:0;min-height:33px;border:1px solid #dbe6da;border-radius:8px;background:white;text-align:right;padding:5px;font-size:11px}.invoice-total-control .select{width:46px}.invoice-total-control strong{min-width:67px;text-align:right}.invoice-grand-total{margin-top:8px;padding-top:10px;border-top:1px solid #d9e4d9;font-size:14px;color:var(--inv-green)}.invoice-grand-total strong{font-size:19px}.invoice-balance-row{margin-top:8px;padding:11px;background:#fff6ce;border-radius:11px;font-weight:750;color:#3a452d}.invoice-balance-row strong{font-size:17px}
.invoice-inventory-note{margin:12px 1px;padding:9px 11px;border-radius:10px;border:1px solid #dce8dd;background:#f6faf4;display:flex;gap:8px;font-size:10px;color:#6a7a6d}.invoice-inventory-note strong{color:#3b674b}.invoice-procurement-preflight{margin-top:10px}.invoice-v262-notes{margin:14px 0}.invoice-lower-grid{padding:10px 0 16px}.invoice-notes-stack{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.invoice-notes-stack .textarea{min-height:64px}.invoice-attachment-card{padding:10px;border:1px dashed #dce6d8;border-radius:11px}.invoice-attachment-card>div{display:grid;gap:3px}.invoice-attachment-card span{color:#829084;font-size:10px}
.invoice-action-footer{position:sticky;bottom:0;z-index:30;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 20px;margin-top:15px;border-top:1px solid #d8e5d9;background:rgba(255,255,250,.96);backdrop-filter:blur(12px);box-shadow:0 -7px 25px rgba(31,69,41,.07)}.invoice-v262-footer .button.primary{background:var(--inv-green);border-color:var(--inv-green);color:white}.invoice-v262-footer .button.primary:hover{background:#1c3927}
.invoice-locked .invoice-editor-card input:disabled,.invoice-locked .invoice-editor-card select:disabled{opacity:.7}
@media(max-width:1550px){.invoice-v262-products{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(max-width:1280px){.invoice-customer-section{grid-template-columns:1fr}.invoice-meta-grid{grid-template-columns:repeat(5,minmax(0,1fr))}.invoice-v262-products{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:1050px){.invoice-v262-products{grid-template-columns:repeat(3,minmax(0,1fr))}.invoice-v262-selected-layout{grid-template-columns:1fr}.invoice-totals-panel{position:static}}
@media(max-width:760px){.customer-invoice-workspace{margin:-22px -16px -40px}.invoice-workspace-header{padding:12px 14px}.invoice-editor-card{margin:10px 12px 0}.invoice-customer-section{padding:13px;gap:12px}.invoice-meta-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.invoice-v262-products{grid-template-columns:repeat(2,minmax(0,1fr))}.invoice-notes-stack,.invoice-reference-grid{grid-template-columns:1fr}.invoice-v262-footer{flex-direction:column;align-items:stretch}.invoice-footer-actions,.invoice-footer-links{justify-content:space-between}.invoice-v262-catalog-heading{align-items:flex-start;flex-direction:column}}
@media(max-width:440px){.invoice-v262-products{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.invoice-v262-quick{padding:9px}.invoice-v262-card-text{padding:8px;min-height:95px}.invoice-customer-controls{flex-direction:column}.invoice-title-group h1{font-size:19px}.invoice-header-actions{gap:4px}.invoice-header-actions .button{font-size:10px}.invoice-v262-pagination{flex-direction:column}}
@media print{.customer-invoice-workspace{display:none!important}}

/* Employee Portal customer-sales access assignment */
.employee-access-heading{display:flex;align-items:center;justify-content:space-between;gap:18px}.employee-access-heading>div:first-child{display:grid;gap:4px}.employee-access-actions{display:flex;gap:8px}.employee-access-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:14px}.employee-access-card{position:relative;display:grid;grid-template-columns:auto 1fr;gap:11px;align-items:flex-start;padding:14px;border:1px solid var(--line);border-radius:14px;background:#fff;cursor:pointer;transition:border-color .15s ease,box-shadow .15s ease,background .15s ease}.employee-access-card:hover{border-color:#a9cbb7;box-shadow:0 8px 22px rgba(29,75,48,.07)}.employee-access-card:has(input:checked){border-color:#63a77d;background:#f3faf5;box-shadow:0 0 0 2px rgba(46,129,78,.08)}.employee-access-card input{margin-top:3px}.employee-access-card strong,.employee-access-card small{display:block}.employee-access-card strong{font-size:13px}.employee-access-card small{margin-top:4px;color:var(--muted);font-size:11px;line-height:1.45}.employee-access-note{margin-top:12px;padding:12px 14px;border-radius:12px;background:#f5f8f6;color:var(--muted);font-size:12px;line-height:1.5}@media(max-width:980px){.employee-access-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:640px){.employee-access-heading{align-items:flex-start;flex-direction:column}.employee-access-grid{grid-template-columns:1fr}}

/* People / HR lifecycle — one connected implementation from recruiting to archival */
.people-page{min-width:0}.people-kpis{grid-template-columns:repeat(5,minmax(0,1fr))}.people-dashboard-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.people-list-card,.people-compliance-card,.people-report-card{min-width:0}.people-mini-list{display:grid}.people-mini-row{min-height:66px;padding:12px 18px;display:flex;align-items:center;justify-content:space-between;gap:14px;border-top:1px solid var(--line)}.people-mini-row:first-child{border-top:0}.people-mini-row>div{min-width:0;display:grid;gap:4px}.people-mini-row strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.people-mini-row span,.people-empty-mini{color:var(--muted);font-size:12px}.people-empty-mini{padding:24px 18px;text-align:center}.people-control-list{display:grid;gap:12px;padding:0 18px 18px}.people-control{display:grid;grid-template-columns:40px minmax(0,1fr);gap:12px;align-items:start;padding:12px;border:1px solid var(--line);border-radius:13px;background:#fbfdfb}.people-control-icon{width:40px;height:40px;border-radius:11px;display:grid;place-items:center;color:var(--green-strong);background:var(--green-soft)}.people-control-icon svg{width:19px;height:19px}.people-control>div:last-child{display:grid;gap:4px}.people-control span{color:var(--muted);font-size:11px;line-height:1.5}
.people-section-tabs,.employee-workspace-tabs{position:relative;z-index:2;display:flex;gap:4px;overflow-x:auto;margin-bottom:16px;padding:5px;border:1px solid var(--line);border-radius:14px;background:#f7f9f7;scrollbar-width:thin;pointer-events:auto}.employee-tab{position:relative;z-index:1;flex:0 0 auto;min-height:38px;padding:8px 13px;border:0;border-radius:10px;color:#5d675f;background:transparent;font:inherit;font-size:12px;font-weight:720;cursor:pointer;white-space:nowrap;pointer-events:auto;touch-action:manipulation}.employee-tab:hover{color:var(--text);background:#fff}.employee-tab.active{color:var(--green-strong);background:#fff;box-shadow:0 1px 5px rgba(20,38,26,.11)}
.employee-cell{display:flex;align-items:center;gap:11px}.employee-list-avatar,.employee-workspace-avatar{display:grid;place-items:center;border:1px solid #cfe6d7;color:var(--green-strong);background:linear-gradient(145deg,#e8f7ed,#fbfdfb);font-weight:820}.employee-list-avatar{width:38px;height:38px;border-radius:12px}.employee-workspace-page{max-width:1540px;margin:0 auto}.employee-workspace-header{min-height:148px;display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:20px;align-items:center;margin-bottom:16px;padding:22px;border:1px solid var(--line);border-radius:20px;background:#fff;box-shadow:var(--shadow-sm)}.employee-workspace-avatar{width:92px;height:92px;border-radius:22px;font-size:28px}.employee-workspace-header .workspace-header-actions{align-items:center}.employee-overview-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(320px,.8fr);gap:16px}.employee-stack{display:grid;gap:16px}.employee-record-card{min-width:0}.employee-definition-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 24px;margin:0}.employee-definition-list>div{min-height:60px;padding:11px 0;border-top:1px solid var(--line)}.employee-definition-list>div:nth-child(-n+2){border-top:0}.employee-definition-list dt{color:var(--muted);font-size:10px;font-weight:760;text-transform:uppercase;letter-spacing:.05em}.employee-definition-list dd{margin:5px 0 0;font-size:13px;font-weight:650;line-height:1.45}.employee-lifecycle-strip{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.employee-lifecycle-strip>div{min-height:70px;padding:13px;border:1px solid var(--line);border-radius:13px;background:#fafcfa}.employee-lifecycle-strip span,.employee-lifecycle-strip strong{display:block}.employee-lifecycle-strip span{color:var(--muted);font-size:10px;font-weight:750;text-transform:uppercase;letter-spacing:.05em}.employee-lifecycle-strip strong{margin-top:7px;font-size:13px}.people-form-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.people-form-grid .field.wide,.people-form-grid .toggle-card{grid-column:1/-1}
.people-report-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.people-bars{display:grid;gap:14px;padding:0 18px 20px}.people-bar-row{display:grid;gap:7px}.people-bar-label{display:flex;align-items:center;justify-content:space-between;gap:14px;font-size:12px}.people-bar-label span{color:var(--muted)}.people-bar-track{height:9px;border-radius:999px;overflow:hidden;background:#edf1ee}.people-bar-track i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#5ca876,#2f7e4b)}
@media(max-width:1240px){.people-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}.employee-workspace-header{grid-template-columns:auto minmax(0,1fr)}.employee-workspace-header .workspace-header-actions{grid-column:1/-1;padding-top:14px;border-top:1px solid var(--line)}.people-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:900px){.people-dashboard-grid,.people-report-grid,.employee-overview-grid{grid-template-columns:1fr}.employee-workspace-header{grid-template-columns:72px minmax(0,1fr);padding:16px}.employee-workspace-avatar{width:72px;height:72px;border-radius:17px}.employee-definition-list{grid-template-columns:1fr}.employee-definition-list>div:nth-child(2){border-top:1px solid var(--line)}}
@media(max-width:650px){.people-kpis{grid-template-columns:1fr}.people-form-grid{grid-template-columns:1fr}.employee-workspace-header{grid-template-columns:58px minmax(0,1fr);gap:12px}.employee-workspace-avatar{width:58px;height:58px;border-radius:14px;font-size:20px}.employee-workspace-header .workspace-header-actions{align-items:stretch;flex-direction:column}.employee-workspace-header .workspace-summary{width:100%;grid-template-columns:1fr}.employee-lifecycle-strip{grid-template-columns:1fr}.people-mini-row{align-items:flex-start;flex-direction:column}.people-report-grid{grid-template-columns:1fr}}
@media print{.people-section-tabs,.employee-workspace-tabs,.page-actions,.workspace-back,.workspace-header-actions .button,.employee-record-card .button{display:none!important}.people-dashboard-grid,.people-report-grid{grid-template-columns:1fr 1fr}.panel,.workspace-card,.employee-workspace-header{break-inside:avoid;box-shadow:none}}

/* Product pack sizes and pack-specific packing-material assignments */
.product-packaging-shell { padding: 0; overflow: hidden; }
.product-packaging-header { margin: 0; padding: 20px 20px 12px; }
.workspace-subtabs { display: flex; gap: 6px; overflow-x: auto; padding: 0 20px 12px; border-bottom: 1px solid var(--line); }
.workspace-subtab { min-height: 38px; border: 1px solid transparent; border-radius: 10px; padding: 8px 13px; color: var(--muted); background: transparent; cursor: pointer; font: inherit; font-size: 12px; font-weight: 720; white-space: nowrap; }
.workspace-subtab:hover { color: var(--text); background: #f6f9f7; }
.workspace-subtab.active { color: var(--green-strong); border-color: #cbe5d3; background: var(--green-soft); box-shadow: 0 2px 8px rgba(25, 104, 55, .06); }
.product-packaging-subpanel { padding: 20px; }
.pack-size-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 16px; align-items: start; }
.pack-size-main { min-width: 0; }
.pack-section-heading { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 16px; }
.pack-section-heading > div { flex: 1; min-width: 0; }
.pack-section-heading h3 { margin: 0 0 4px; font-size: 17px; }
.pack-section-heading p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.pack-base-summary { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin-bottom: 14px; }
.pack-base-summary > div { min-height: 92px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #fafcfa; }
.pack-base-summary span,.pack-base-summary strong,.pack-base-summary small { display: block; }
.pack-base-summary span { color: var(--muted); font-size: 10px; font-weight: 760; text-transform: uppercase; letter-spacing: .04em; }
.pack-base-summary strong { margin-top: 7px; color: var(--green-strong); font-size: 24px; }
.pack-base-summary small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.pack-size-table { min-width: 1180px; }
.pack-assignment-table { min-width: 1250px; }
.pack-positive { color: var(--green-strong); }
.pack-calculator-card { position: sticky; top: calc(var(--topbar) + 82px); display: grid; gap: 13px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(180deg,#fbfdfb,#f6faf7); box-shadow: var(--shadow-sm); }
.pack-calculator-title { display: flex; gap: 10px; align-items: center; }
.pack-calculator-title svg { width: 22px; height: 22px; color: var(--green-strong); }
.pack-calculator-title strong,.pack-calculator-title span { display: block; }
.pack-calculator-title strong { font-size: 14px; }
.pack-calculator-title span { margin-top: 2px; color: var(--muted); font-size: 10px; }
.pack-calculator-results { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pack-calculator-results > div { padding: 12px; border: 1px solid #d8e9dd; border-radius: 12px; background: #fff; }
.pack-calculator-results span,.pack-calculator-results strong { display: block; }
.pack-calculator-results span { color: var(--muted); font-size: 10px; }
.pack-calculator-results strong { margin-top: 5px; color: var(--green-strong); font-size: 22px; }
.pack-formula-note,.pack-example-list { display: grid; gap: 5px; padding: 12px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.pack-formula-note strong,.pack-example-list strong { font-size: 11px; }
.pack-formula-note span,.pack-example-list span { color: var(--muted); font-size: 10px; line-height: 1.45; }
.pack-modal-preview { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; padding: 12px; border: 1px solid #cfe6d7; border-radius: 14px; background: var(--green-soft); }
.pack-modal-preview > div { min-width: 0; }
.pack-modal-preview span,.pack-modal-preview strong { display: block; }
.pack-modal-preview span { color: var(--muted); font-size: 10px; }
.pack-modal-preview strong { margin-top: 5px; color: var(--green-strong); font-size: 21px; }
.pack-settings-form { padding-top: 2px; }
.packing-pack-link { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 6px; padding: 4px 7px; border: 1px solid #cfe6d7; border-radius: 8px; background: var(--green-soft); color: var(--green-strong); font-size: 10px; }
.packing-pack-link strong { font-size: 10px; }
.packing-pack-link span { color: var(--muted); }
@media(max-width:1180px){.pack-size-layout{grid-template-columns:1fr}.pack-calculator-card{position:static}.pack-base-summary{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:720px){.product-packaging-header,.product-packaging-subpanel{padding:16px}.workspace-subtabs{padding:0 16px 10px}.pack-section-heading{flex-direction:column}.pack-section-heading .button{width:100%}.pack-base-summary,.pack-modal-preview{grid-template-columns:1fr}.pack-calculator-results{grid-template-columns:1fr}}

/* Controlled recipe versions and ingredient tolerances */
.source-of-truth-note.amber{background:#fff8e8;border-color:#efd69a;color:#735514}.source-of-truth-note.amber strong{color:#735514}.recipe-approval-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:18px}.recipe-approval-strip>div{padding:13px 14px;border:1px solid var(--line);border-radius:12px;background:#fafcfa}.recipe-approval-strip span,.recipe-approval-strip strong{display:block}.recipe-approval-strip span{font-size:11px;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);font-weight:800}.recipe-approval-strip strong{margin-top:5px}.recipe-history-list{display:grid}.recipe-history-list article{display:flex;justify-content:space-between;gap:18px;padding:15px 20px;border-top:1px solid var(--line)}.recipe-history-list article:first-child{border-top:0}.recipe-history-list strong,.recipe-history-list span{display:block}.recipe-history-list span,.recipe-history-list time{color:var(--muted);font-size:12px;margin-top:4px}.recipe-history-list p{margin:7px 0 0;color:var(--ink);font-size:13px}.recipe-tolerance-preview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:14px;border:1px solid #cfe2d6;border-radius:14px;background:#f3faf6}.recipe-tolerance-preview>div{padding:11px 12px;border-radius:10px;background:#fff}.recipe-tolerance-preview span,.recipe-tolerance-preview strong{display:block}.recipe-tolerance-preview span{font-size:11px;color:var(--muted);font-weight:800;text-transform:uppercase;letter-spacing:.04em}.recipe-tolerance-preview strong{margin-top:6px;color:var(--green);font-size:17px}.workspace-card-actions .button.danger{border-color:#efc7c4;background:#fff7f6;color:#bc302b}.recipe-bom-table td{vertical-align:top}@media(max-width:900px){.recipe-approval-strip,.recipe-tolerance-preview{grid-template-columns:1fr}.recipe-history-list article{display:block}.recipe-history-list time{display:block;margin-top:8px}}

/* Recipe quantity display: oz / g / kg */
.recipe-bom-header-actions{align-items:flex-end;gap:10px;flex-wrap:wrap}.recipe-mass-display-control{display:flex;flex-direction:column;align-items:flex-start;gap:5px;min-width:190px}.recipe-mass-display-control>span,.recipe-stored-unit>span{font-size:10px;font-weight:850;letter-spacing:.055em;text-transform:uppercase;color:var(--muted)}.recipe-mass-display-control>small,.recipe-stored-unit>small{font-size:10px;line-height:1.35;color:var(--muted)}.recipe-unit-segmented{display:inline-grid;grid-template-columns:repeat(3,minmax(46px,1fr));gap:3px;padding:4px;border:1px solid var(--line);border-radius:12px;background:#f2f6f3}.recipe-unit-segmented button{border:0;border-radius:8px;background:transparent;color:var(--muted);font:inherit;font-size:12px;font-weight:850;line-height:1;padding:9px 12px;cursor:pointer;text-transform:lowercase}.recipe-unit-segmented button:hover:not(:disabled){color:var(--green)}.recipe-unit-segmented button.active{background:#fff;color:var(--green);box-shadow:0 1px 5px rgba(18,63,44,.12)}.recipe-unit-segmented button:disabled{opacity:.35;cursor:not-allowed}.recipe-unit-editor{display:grid;grid-template-columns:minmax(220px,1fr) minmax(180px,.7fr);gap:14px;padding:14px;border:1px solid var(--line);border-radius:14px;background:#fafcfb}.recipe-stored-unit{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:5px;padding-left:14px;border-left:1px solid var(--line)}.recipe-stored-unit strong{font-size:18px;color:var(--ink)}.recipe-unit-input{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;border:1px solid var(--line);border-radius:10px;background:#fff;overflow:hidden}.recipe-unit-input .input{border:0;border-radius:0;box-shadow:none}.recipe-unit-input>span{min-width:48px;padding:0 12px;color:var(--muted);font-size:12px;font-weight:850;text-align:center;border-left:1px solid var(--line);text-transform:lowercase}
@media(max-width:900px){.recipe-bom-header-actions{width:100%;align-items:stretch}.recipe-mass-display-control{width:100%}.recipe-unit-segmented{width:100%}.recipe-unit-editor{grid-template-columns:1fr}.recipe-stored-unit{padding:12px 0 0;border-left:0;border-top:1px solid var(--line)}}


/* Inline finished-product pack quantity editing */
.pack-inline-edit-note { display:flex; gap:10px; align-items:flex-start; margin:0 0 14px; padding:11px 13px; border:1px solid #d8e9dd; border-radius:12px; background:#f5faf6; color:var(--muted); font-size:11px; line-height:1.45; }
.pack-inline-edit-note strong { flex:0 0 auto; color:var(--green-strong); }
.pack-inline-quantity-table { min-width:880px; }
.pack-equivalent-edit { display:inline-flex; flex-direction:column; align-items:flex-start; gap:3px; min-width:150px; padding:6px 8px; border:1px solid transparent; border-radius:10px; background:transparent; text-align:left; cursor:pointer; }
.pack-equivalent-edit strong { color:var(--green-strong); font-size:15px; line-height:1; }
.pack-equivalent-edit span { color:var(--muted); font-size:10px; }
.pack-equivalent-edit:hover:not(:disabled),.pack-equivalent-edit:focus-visible { border-color:#cfe6d7; background:var(--green-soft); outline:none; }
.pack-equivalent-edit:disabled { cursor:not-allowed; opacity:.65; }
.pack-inline-equivalent-editor { display:grid; grid-template-columns:minmax(105px,140px) auto; gap:6px 8px; align-items:end; min-width:230px; }
.pack-inline-equivalent-editor label { display:grid; gap:4px; }
.pack-inline-equivalent-editor label>span { color:var(--muted); font-size:9px; font-weight:800; text-transform:uppercase; letter-spacing:.04em; }
.pack-inline-equivalent-editor .input { min-height:34px; padding:7px 9px; font-weight:800; color:var(--green-strong); }
.pack-inline-equivalent-preview { grid-column:1/-1; color:var(--muted); font-size:10px; }
.pack-inline-equivalent-preview strong { color:var(--text); }
.pack-inline-equivalent-actions { display:flex; gap:4px; align-items:center; }
.success-icon { color:var(--green-strong); border-color:#cfe6d7; background:var(--green-soft); }
@media(max-width:720px){.pack-inline-edit-note{display:block}.pack-inline-edit-note strong{display:block;margin-bottom:4px}.pack-inline-equivalent-editor{min-width:210px}}


/* Purchasing vendors: supplier master, PO, receiving, payables, and checks */
.vendor-purchasing-page .panel{overflow:hidden}.vendor-purchasing-page .data-table{min-width:980px}.vendor-receipt-layout{display:grid;gap:0}.vendor-receipt-layout>section+section{border-top:1px solid var(--line)}.panel-section-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:20px 20px 8px}.panel-section-heading h2{margin:0;font-size:18px}.panel-section-heading p{margin:5px 0 0;color:var(--muted);font-size:12px;line-height:1.5}.po-line-card{position:relative;margin-top:12px;padding:15px 52px 15px 15px;border:1px solid var(--line);border-radius:14px;background:#fafcfa}.po-line-remove{position:absolute;right:12px;top:12px}.vendor-purchasing-page input[type="checkbox"][data-check-id]{width:17px;height:17px;accent-color:var(--green-strong)}
@media(max-width:720px){.panel-section-heading{padding:16px 16px 8px}.po-line-card{padding:14px 48px 14px 14px}.vendor-purchasing-page .page-actions{width:100%}.vendor-purchasing-page .page-actions .button{flex:1}}

/* Vendor dashboard: supplier balances, bills, purchase commitments, and payment readiness */
.vendor-dashboard-page .vendor-page-header{align-items:center}
.vendor-dashboard-page .vendor-page-header h1{font-size:30px;letter-spacing:-.035em}
.vendor-header-actions{align-items:center}
.vendor-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:18px}
.vendor-summary-card{min-height:118px;padding:17px 18px;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-end;gap:4px;border:0;border-radius:14px;text-align:left;cursor:pointer;box-shadow:var(--shadow-sm);transition:transform .16s ease,box-shadow .16s ease}
.vendor-summary-card:hover,.vendor-summary-card:focus-visible{transform:translateY(-2px);box-shadow:0 14px 34px rgba(20,38,26,.14);outline:none}
.vendor-summary-card span{font-size:11px;font-weight:850;letter-spacing:.045em;text-transform:uppercase;opacity:.85}
.vendor-summary-card strong{font-size:27px;line-height:1.1;letter-spacing:-.035em;font-variant-numeric:tabular-nums}
.vendor-summary-card small{font-size:11px;font-weight:750;opacity:.88}
.vendor-summary-card.unbilled{color:#073d43;background:linear-gradient(135deg,#27c5ce,#83e1df)}
.vendor-summary-card.overdue{color:#fff;background:linear-gradient(135deg,#e66d16,#ee8b3a)}
.vendor-summary-card.open-bills{color:#27313a;background:linear-gradient(135deg,#dfe6ea,#eef2f4)}
.vendor-summary-card.paid{color:#fff;background:linear-gradient(135deg,#13933f,#21ad52)}
.vendor-dashboard-page>.panel{overflow:hidden}
.vendor-dashboard-toolbar{min-height:112px;padding:18px 20px 15px;display:flex;align-items:flex-end;justify-content:space-between;gap:18px;border-bottom:1px solid var(--line);background:#fff}
.vendor-dashboard-toolbar>div:first-child{display:grid;gap:13px;min-width:min(100%,520px)}
.vendor-filter-line{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:12px}
.vendor-filter-chip{padding:6px 10px;border:1px solid #d8e2dc;border-radius:8px;background:#edf2ef;color:#536159;font:inherit;font-size:11px;font-weight:800;cursor:pointer}
.vendor-clear-filter{padding:0;border:0;background:transparent;color:var(--green-strong);font:inherit;font-size:12px;font-weight:750;cursor:pointer}
.vendor-search{width:min(100%,360px);min-height:40px;padding:0 12px;display:flex;align-items:center;gap:9px;border:1px solid var(--line-strong);border-radius:9px;background:#fff}
.vendor-search:focus-within{border-color:#74b98e;box-shadow:0 0 0 3px rgba(22,136,70,.1)}
.vendor-search svg{width:18px;height:18px;color:var(--muted)}
.vendor-search input{width:100%;border:0;outline:0;background:transparent;color:var(--text)}
.vendor-table-tools{display:flex;align-items:center;gap:8px}
.vendor-dashboard-page .data-table{min-width:1320px}
.vendor-dashboard-page .data-table th{white-space:nowrap}
.vendor-dashboard-page .data-table td{vertical-align:middle}
.vendor-dashboard-page input[type="checkbox"][data-vendor-id]{width:17px;height:17px;accent-color:var(--green-strong)}
.vendor-name-button,.vendor-link-button{padding:0;border:0;background:transparent;color:var(--green-strong);font:inherit;text-align:left;cursor:pointer}
.vendor-name-button{display:grid;gap:3px}
.vendor-name-button strong{font-size:13px;color:var(--text)}
.vendor-name-button small{font-size:10px;color:var(--muted)}
.vendor-link-button{font-size:12px;font-weight:780}
.vendor-link-button:hover,.vendor-email-link:hover{text-decoration:underline}
.vendor-email-link{color:#265f9a;font-size:12px}
.vendor-action-wrap{display:flex;align-items:center;gap:6px;white-space:nowrap}
.vendor-action-wrap .icon-button{width:30px;height:30px}
.vendor-ach-status,.vendor-dashboard-page td>strong+.vendor-overdue-copy{display:grid;gap:2px}
.vendor-ach-status strong{font-size:12px}
.vendor-ach-status small,.vendor-overdue-copy{display:block;margin-top:3px;color:var(--muted);font-size:10px}
.vendor-ach-status.ready strong{color:var(--green-strong)}
.vendor-ach-status.pending strong{color:var(--amber)}
.vendor-ach-status.missing strong,.vendor-overdue-copy{color:var(--red)}
@media(max-width:1180px){.vendor-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.vendor-dashboard-page .vendor-page-header{align-items:flex-start}.vendor-summary-grid{grid-template-columns:1fr}.vendor-summary-card{min-height:100px}.vendor-dashboard-toolbar{align-items:stretch;flex-direction:column}.vendor-dashboard-toolbar>div:first-child,.vendor-search{width:100%}.vendor-table-tools{align-self:flex-end}}
@media print{.sidebar,.topbar,.vendor-page-header .page-actions,.vendor-summary-grid,.vendor-dashboard-toolbar .vendor-table-tools{display:none!important}.app-shell{display:block}.main,.content{margin:0;padding:0}.vendor-dashboard-page .panel{border:0;box-shadow:none}.vendor-dashboard-page .data-table{min-width:0;font-size:10px}}

/* Vendor detail and purchase-order workspace */
.vendor-detail-page,.purchase-order-workspace{max-width:none}
.vendor-detail-topline,.po-workspace-header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px}
.vendor-detail-left-actions{display:flex;align-items:center;gap:10px}.vendor-directory-toggle{display:none}.vendor-directory-collapsed .vendor-directory-toggle{display:inline-flex}
.back-link{display:inline-flex;align-items:center;gap:7px;padding:0;border:0;background:transparent;color:var(--green-strong);font:inherit;font-size:13px;font-weight:800;cursor:pointer}
.back-link svg{width:15px;height:15px;transform:rotate(180deg)}
.vendor-detail-actions{display:flex;align-items:center;gap:9px}
.vendor-detail-shell{display:grid;grid-template-columns:260px minmax(0,1fr);gap:16px;min-height:650px;transition:grid-template-columns .2s ease,gap .2s ease}.vendor-detail-page.vendor-directory-collapsed .vendor-detail-shell{grid-template-columns:0 minmax(0,1fr);gap:0}
.vendor-directory-panel{min-width:0;overflow:hidden;border:1px solid var(--line);border-radius:16px;background:#fff;box-shadow:var(--shadow-sm);opacity:1;transform:translateX(0);transition:opacity .16s ease,transform .2s ease,border-color .2s ease}.vendor-detail-page.vendor-directory-collapsed .vendor-directory-panel{width:0;min-width:0;opacity:0;transform:translateX(-10px);visibility:hidden;pointer-events:none;border-color:transparent}.vendor-detail-page.vendor-directory-unpinned:not(.vendor-directory-collapsed) .vendor-directory-panel{box-shadow:0 18px 42px rgba(20,38,26,.12)}
.vendor-directory-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:16px 14px 10px}.side-panel-controls{display:flex;align-items:center;gap:4px}.side-panel-controls .icon-button{width:31px;height:31px;border-radius:9px}.side-panel-controls .icon-button svg{width:16px;height:16px}
.vendor-directory-head strong{font-size:18px}
.vendor-directory-search{margin:0 12px 10px;min-height:39px;padding:0 10px;display:flex;align-items:center;gap:8px;border:1px solid var(--line-strong);border-radius:9px;background:#fff}
.vendor-directory-search svg{width:17px;height:17px;color:var(--muted)}
.vendor-directory-search input{width:100%;border:0;outline:0;background:transparent;font:inherit}
.vendor-directory-sort{margin:0 12px 8px;padding:9px 12px;border:1px solid var(--line);border-radius:8px;color:var(--green-strong);font-size:12px;font-weight:800;text-align:center}
.vendor-directory-list{max-height:550px;overflow:auto;border-top:1px solid var(--line)}
.vendor-directory-row{width:100%;padding:12px 14px;display:grid;gap:3px;border:0;border-bottom:1px solid var(--line);background:#fff;text-align:left;cursor:pointer}
.vendor-directory-row:hover{background:#f7faf8}.vendor-directory-row.active{background:#e8f1ff}
.vendor-directory-row strong{font-size:12px;color:var(--text)}.vendor-directory-row span{font-size:11px;color:var(--muted)}
.vendor-directory-empty{padding:24px 14px;color:var(--muted);font-size:12px;text-align:center}
.vendor-detail-main{min-width:0}
.vendor-profile-card{padding:20px;border:1px solid var(--line);border-radius:16px;background:#fff;box-shadow:var(--shadow-sm)}
.vendor-profile-title{display:flex;align-items:center;gap:10px;margin-bottom:18px}.vendor-profile-title h1{margin:0;font-size:27px;letter-spacing:-.035em}
.vendor-profile-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.vendor-profile-grid>div{display:grid;gap:5px;align-content:start}.vendor-profile-grid span,.vendor-detail-cell span{color:var(--muted);font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.045em}
.vendor-profile-grid strong{font-size:12px;line-height:1.55}.vendor-profile-grid .vendor-ach-status small{display:none}
.vendor-detail-tabs{display:flex;align-items:center;gap:18px;margin-top:14px;padding:0 14px;border-bottom:1px solid var(--line)}
.vendor-detail-tabs button{padding:12px 0;border:0;border-bottom:2px solid transparent;background:transparent;color:var(--muted);font:inherit;font-size:13px;font-weight:800;cursor:pointer}
.vendor-detail-tabs button.active{border-color:var(--green-strong);color:var(--text)}
.vendor-transaction-panel{margin-top:12px;overflow:hidden}
.vendor-transaction-toolbar{padding:14px;display:flex;align-items:center;gap:10px;border-bottom:1px solid var(--line)}
.vendor-transaction-toolbar .select{width:auto;min-width:170px}.vendor-filter-search{min-width:220px;min-height:40px;padding:0 10px;display:flex;align-items:center;gap:8px;border:1px solid var(--line-strong);border-radius:9px}
.vendor-filter-search svg{width:17px;height:17px;color:var(--muted)}.vendor-filter-search input{width:100%;border:0;outline:0;background:transparent}
.vendor-transaction-panel .data-table{min-width:900px}
.vendor-info-panel,.vendor-notes-panel{margin-top:12px;padding:20px}.vendor-info-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.vendor-detail-cell{display:grid;gap:6px;padding:14px;border:1px solid var(--line);border-radius:10px;background:#fafcfa}.vendor-detail-cell strong{font-size:13px;line-height:1.45}
.vendor-notes-panel{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}.vendor-notes-panel h2{margin:0 0 8px}.vendor-notes-panel p{margin:0;color:var(--muted);line-height:1.65;white-space:pre-wrap}
.vendor-new-transaction{position:relative}.vendor-new-transaction summary{list-style:none;cursor:pointer}.vendor-new-transaction summary::-webkit-details-marker{display:none}.vendor-new-transaction summary svg{width:14px;height:14px}
.vendor-transaction-dropdown{position:absolute;right:0;top:calc(100% + 7px);z-index:20;width:210px;padding:7px;border:1px solid var(--line);border-radius:11px;background:#fff;box-shadow:0 18px 45px rgba(17,35,23,.18)}
.vendor-transaction-dropdown button{width:100%;padding:10px 11px;border:0;border-radius:7px;background:transparent;color:var(--text);font:inherit;font-size:12px;text-align:left;cursor:pointer}.vendor-transaction-dropdown button:hover{background:#f1f6f2;color:var(--green-strong)}

.purchase-order-workspace{padding-bottom:88px}.po-workspace-header h1{margin:8px 0 0;font-size:25px}.po-workspace-total{display:grid;gap:4px;text-align:right}.po-workspace-total span{color:var(--muted);font-size:11px;text-transform:capitalize}.po-workspace-total strong{font-size:25px}
.po-header-panel,.po-items-panel{padding:18px}.po-header-fields{display:grid;grid-template-columns:1.3fr 1.4fr .8fr .9fr;gap:12px}.po-address-grid{display:grid;grid-template-columns:1fr 1fr 1fr .7fr;gap:12px;margin-top:16px}.po-address-grid .textarea{min-height:110px}.po-date-fields{display:grid;gap:10px}.po-shipping-address{margin-top:8px}
.po-items-panel{margin-top:14px}.po-section-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:14px}.po-section-heading h2{margin:0;font-size:18px}.po-section-heading p{margin:5px 0 0;color:var(--muted);font-size:12px}
.po-items-table{overflow:auto;border:1px solid var(--line);border-radius:11px}.po-items-head,.po-workspace-line{min-width:1060px;display:grid;grid-template-columns:34px minmax(240px,1.5fr) minmax(230px,1.35fr) 110px 95px 115px 110px 42px;gap:8px;align-items:center}
.po-items-head{padding:9px 10px;background:#f6f8f6;color:var(--muted);font-size:10px;font-weight:850;text-transform:uppercase;letter-spacing:.04em}.po-workspace-line{padding:9px 10px;border-top:1px solid var(--line);background:#fff}.po-workspace-line:first-child{border-top:0}.po-line-number{color:var(--muted);font-size:12px;text-align:center}.po-item-select-wrap{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px;align-items:center}.po-item-select-wrap small{grid-column:1/-1;color:var(--muted);font-size:9px}.po-inline-create{padding:7px 8px;border:1px solid var(--line);border-radius:7px;background:#f7faf8;color:var(--green-strong);font-size:10px;font-weight:800;cursor:pointer}.po-workspace-line>[data-line-amount]{text-align:right;font-size:12px}.po-line-actions{display:flex;gap:8px;margin-top:10px}
.po-bottom-grid{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:40px;margin-top:22px}.po-bottom-grid .textarea{min-height:100px}.field-help{display:block;margin-top:6px;color:var(--muted);font-size:10px;line-height:1.45}.po-totals{display:grid;align-content:start}.po-totals label{min-height:42px;display:grid;grid-template-columns:1fr 130px;align-items:center;gap:12px;border-bottom:1px solid var(--line);font-size:12px}.po-totals label>strong{text-align:right}.po-totals .input{height:34px;text-align:right}.po-grand-total{font-size:15px!important;font-weight:850}.po-grand-total strong{font-size:19px}
.po-workspace-footer{position:fixed;right:0;bottom:0;left:var(--sidebar);z-index:18;padding:12px 24px;display:flex;align-items:center;justify-content:space-between;gap:16px;border-top:1px solid var(--line);background:rgba(255,255,255,.96);backdrop-filter:blur(12px);box-shadow:0 -8px 28px rgba(18,37,24,.08)}.app-shell.sidebar-unpinned .po-workspace-footer{left:var(--sidebar-rail)}.po-workspace-footer>div{display:flex;align-items:center;gap:8px}.po-readonly-note{color:var(--muted);font-size:12px}

@media(max-width:1180px){.vendor-detail-shell{grid-template-columns:220px minmax(0,1fr)}.vendor-profile-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.po-header-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.po-address-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.vendor-info-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:900px){.po-workspace-footer{left:0}}
@media(max-width:760px){.vendor-detail-topline,.po-workspace-header{align-items:flex-start;flex-direction:column}.vendor-detail-left-actions{width:100%;justify-content:space-between}.vendor-detail-actions{width:100%;justify-content:flex-end}.vendor-detail-shell{grid-template-columns:1fr}.vendor-directory-panel{max-height:300px}.vendor-directory-list{max-height:210px}.vendor-profile-grid,.vendor-info-grid,.po-header-fields,.po-address-grid,.po-bottom-grid{grid-template-columns:1fr}.vendor-transaction-toolbar{align-items:stretch;flex-direction:column}.vendor-transaction-toolbar .select,.vendor-filter-search{width:100%;min-width:0}.vendor-notes-panel{flex-direction:column}.po-workspace-footer{padding:10px;align-items:stretch;flex-direction:column}.po-workspace-footer>div{width:100%;justify-content:space-between}.po-workspace-footer .button{flex:1}.purchase-order-workspace{padding-bottom:150px}}
@media print{.vendor-directory-panel,.vendor-detail-topline,.vendor-detail-tabs,.vendor-transaction-toolbar,.po-workspace-footer,.po-workspace-header .back-link,.po-section-heading .button,.po-line-actions,.po-inline-create,.danger-icon{display:none!important}.vendor-detail-shell{display:block}.po-items-table{overflow:visible}.po-items-head,.po-workspace-line{min-width:0}.purchase-order-workspace{padding-bottom:0}}

/* Vendor Purchase Order — full-width accounting workspace (v38) */
.qb-po-workspace{padding:0 0 86px;max-width:none;background:#fff;min-height:calc(100vh - var(--topbar))}
.qb-po-titlebar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 22px;border-bottom:1px solid #d9e1dc;background:#fff}
.qb-po-title-left{display:flex;align-items:center;gap:16px;min-width:0}.qb-po-title-left h1{margin:0;font-size:22px;font-weight:640;white-space:nowrap}.qb-po-title-left .back-link{margin:0}
.qb-po-title-tools{display:flex;gap:8px}
.qb-po-header-sheet{padding:18px 22px 0;background:#edf6fb;border-bottom:1px solid #d9e4e8}
.qb-po-top-grid{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:28px;align-items:start}
.qb-po-vendor-fields{display:grid;grid-template-columns:220px 280px;gap:8px 12px;align-items:end}.qb-po-vendor-fields .field{margin:0}.qb-po-status-field{grid-column:1/-1;display:flex;align-items:center;gap:7px;color:#36483f;font-size:11px}.qb-po-status-field .select{min-height:29px;width:auto;padding:4px 28px 4px 8px;text-transform:uppercase;font-weight:780;background:transparent;border:0;box-shadow:none}
.qb-po-amount-box{text-align:right;min-width:260px}.qb-po-amount-box>span{display:block;color:#52665b;font-size:10px;font-weight:850;letter-spacing:.05em}.qb-po-amount-box>strong{display:block;margin-top:4px;font-size:32px;font-weight:520;line-height:1.15;color:#1f2c25}.qb-po-header-actions{display:flex;justify-content:flex-end;align-items:center;gap:8px;margin-top:12px}.qb-po-header-actions .button{min-height:36px}
.qb-po-split-menu{position:relative;margin-left:-8px}.qb-po-split-menu>summary{list-style:none;width:36px;height:36px;display:grid;place-items:center;border:1px solid #0d6941;border-left:0;border-radius:0 8px 8px 0;background:var(--green-strong);color:#fff;cursor:pointer}.qb-po-split-menu>summary::-webkit-details-marker{display:none}.qb-po-split-menu>div{position:absolute;right:0;top:42px;z-index:40;width:190px;padding:6px;border:1px solid var(--line);border-radius:10px;background:#fff;box-shadow:var(--shadow-lg)}.qb-po-split-menu>div button,.qb-po-more>div button{width:100%;border:0;border-radius:7px;padding:9px 10px;background:transparent;text-align:left;font:inherit;font-size:12px;cursor:pointer}.qb-po-split-menu>div button:hover,.qb-po-more>div button:hover{background:var(--green-soft);color:var(--green-strong)}
.qb-po-address-grid{display:grid;grid-template-columns:220px 250px 300px minmax(160px,1fr);gap:16px;align-items:start;margin-top:22px}.qb-po-address-field .textarea,.qb-po-shipto-field .textarea{min-height:112px;background:#fff}.qb-po-shipto-field .select{margin-bottom:7px}.qb-po-date-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px 12px}.qb-po-date-grid .field:nth-child(3){grid-column:1}.qb-po-store{justify-self:end;width:min(100%,220px)}
.qb-po-category-details{margin-top:14px;border-top:1px solid rgba(67,98,80,.14);padding:12px 4px}.qb-po-category-details summary{cursor:pointer;font-size:13px;font-weight:760}.qb-po-category-details>div{padding:10px 0 2px;color:var(--muted);font-size:11px;line-height:1.5}
.qb-po-item-sheet{padding:18px 22px 22px;background:#fff}.qb-po-item-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:10px}.qb-po-item-heading h2{margin:0;font-size:14px;font-weight:760}.qb-po-table-wrap{overflow:auto;border-top:1px solid #cfd9d3;border-bottom:1px solid #cfd9d3}
.qb-po-table-head,.qb-po-line{min-width:1280px;display:grid;grid-template-columns:26px 30px minmax(250px,1.25fr) minmax(235px,1.5fr) 105px 105px 110px 125px 95px 75px 38px;align-items:center}.qb-po-table-head{min-height:38px;color:#34483d;font-size:10px;font-weight:850;border-bottom:1px solid #cfd9d3}.qb-po-table-head>span{padding:0 7px}.qb-po-line{min-height:52px;border-bottom:1px solid #e1e7e3;background:#fff}.qb-po-line:hover{background:#f8fbf9}.qb-po-line>*{min-width:0;margin:0 5px}.qb-po-line .input,.qb-po-line .select{min-height:34px;border-radius:4px;padding:6px 8px;font-size:12px}.qb-po-drag{color:#a2b0a8;text-align:center;font-size:12px;letter-spacing:-2px}.po-line-number{text-align:center;color:#405349}.qb-po-product-cell{display:grid;gap:2px}.qb-po-product-cell small,.qb-po-qty-cell small{color:var(--muted);font-size:9px}.qb-po-qty-cell{display:grid;grid-template-columns:minmax(0,1fr);align-items:center;gap:4px}.qb-po-qty-cell small{min-width:26px;text-align:right}.qb-po-uom-select{width:100%;min-width:90px}.qb-po-line>[data-line-amount]{text-align:right;padding-right:8px;font-size:12px}.qb-po-received{text-align:center;color:#53675d;font-size:12px}.qb-po-closed{display:grid;place-items:center}.qb-po-closed input{width:17px;height:17px;accent-color:var(--green-strong)}
.qb-po-bottom-grid{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:32px;margin-top:28px}.qb-po-bottom-grid .textarea{min-height:110px}.qb-po-attachments{display:grid;grid-template-columns:1fr auto;gap:8px 12px;margin-top:12px;padding:14px;border:1px dashed #c8d5cd;border-radius:9px}.qb-po-attachments strong{font-size:12px}.qb-po-attachments small{grid-column:1/-1;color:var(--muted);font-size:10px}.qb-po-total-box{display:grid;align-content:start;gap:8px}.qb-po-total-box>div,.qb-po-total-box>label{display:grid;grid-template-columns:1fr 140px;gap:12px;align-items:center;min-height:38px}.qb-po-total-box span{font-size:12px}.qb-po-total-box strong{text-align:right}.qb-po-total-box .input{text-align:right;min-height:34px}.qb-po-total-line{margin-top:5px;padding-top:10px;border-top:1px solid var(--line)}.qb-po-total-line strong{font-size:19px}
.qb-po-footer{display:grid;grid-template-columns:1fr auto 1fr}.qb-po-footer>div:last-child{justify-self:end}.qb-po-footer-center{justify-self:center}.qb-po-more{position:relative}.qb-po-more>summary{list-style:none;min-height:38px;padding:9px 12px;border-radius:8px;cursor:pointer;color:#30453a;font-size:12px}.qb-po-more>summary::-webkit-details-marker{display:none}.qb-po-more>div{position:absolute;left:50%;bottom:44px;transform:translateX(-50%);z-index:45;width:210px;padding:6px;border:1px solid var(--line);border-radius:10px;background:#fff;box-shadow:var(--shadow-lg)}
.qb-po-vendor-sku{display:grid;gap:3px;max-width:260px;margin-top:6px;font-size:10px;color:#64736c}
.qb-po-vendor-sku .input{font-size:11px;min-height:30px}
@media(max-width:1100px){.qb-po-address-grid{grid-template-columns:1fr 1fr}.qb-po-store{justify-self:stretch;width:100%}.qb-po-bottom-grid{grid-template-columns:1fr}}
@media(max-width:760px){.qb-po-titlebar,.qb-po-top-grid,.qb-po-item-heading{align-items:flex-start}.qb-po-titlebar,.qb-po-top-grid,.qb-po-item-heading{display:flex;flex-direction:column}.qb-po-amount-box{width:100%;text-align:left}.qb-po-header-actions{justify-content:flex-start}.qb-po-vendor-fields,.qb-po-address-grid,.qb-po-date-grid{grid-template-columns:1fr}.qb-po-vendor-fields{width:100%}.qb-po-store{width:100%}.qb-po-header-sheet,.qb-po-item-sheet{padding-left:14px;padding-right:14px}.qb-po-footer{display:flex}.qb-po-footer-center{justify-self:auto}.qb-po-footer>div:last-child{justify-self:auto}.qb-po-bottom-grid{gap:18px}}
@media print{.qb-po-title-tools,.qb-po-header-actions,.qb-po-item-heading .button,.qb-po-footer,.qb-po-split-menu,.danger-icon{display:none!important}.qb-po-workspace{padding-bottom:0}.qb-po-header-sheet{background:#fff}.qb-po-table-wrap{overflow:visible}.qb-po-table-head,.qb-po-line{min-width:0}}

/* v39 landed-cost allocation */
.qb-po-landed-flag{display:flex;align-items:center;gap:5px;margin-top:2px;color:#5e7167;font-size:9px;font-weight:650;line-height:1.2}.qb-po-landed-flag[hidden]{display:none}.qb-po-landed-flag input{width:13px;height:13px;accent-color:var(--green-strong)}
.qb-po-total-box>.qb-po-landed-note{display:block;min-height:0;padding:8px 10px;border-radius:7px;background:#f5f8f6;color:#5d7066;font-size:9px;line-height:1.45}
.qb-checkbox-row{display:flex;align-items:flex-start;gap:8px;color:#405349;font-size:12px;line-height:1.4}.qb-checkbox-row input{margin-top:2px;accent-color:var(--green-strong)}

/* Employee Portal password recovery */
.portal-security-card{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:16px 18px;border:1px solid var(--line);border-radius:16px;background:#f8fbf9}.portal-security-card>div:first-child{display:grid;gap:4px}.portal-security-card strong{font-size:14px}.portal-security-card small{color:var(--muted);line-height:1.45}.portal-security-actions{display:flex;gap:9px;flex-wrap:wrap;justify-content:flex-end}.password-reset-result{display:grid;gap:16px}.password-reset-result-status{display:grid;gap:5px;padding:14px 16px;border:1px solid #cfe4d7;border-radius:14px;background:#f3faf6}.password-reset-result-status span{color:var(--muted);font-size:13px}.password-reset-result-actions{display:flex;gap:10px;flex-wrap:wrap}.password-reset-email-warning{display:grid;gap:4px;padding:13px 15px;border:1px solid #ecd9a8;border-radius:13px;background:#fff9ea;color:#74510d;line-height:1.5}.password-reset-email-warning strong{font-size:13px}.password-reset-email-warning span{font-size:12px}.button:disabled{opacity:.48;cursor:not-allowed}@media(max-width:760px){.portal-security-card{align-items:stretch;flex-direction:column}.portal-security-actions{justify-content:flex-start}.portal-security-actions .button{flex:1}}

/* Recipe builder: saved version = recipe header + ordered ingredients + BOM + audit */
.recipe-builder-section{margin-top:22px;padding-top:22px;border-top:1px solid var(--line)}
.recipe-builder-header{padding:0 0 14px}.recipe-builder-header h3{margin:0;font-size:18px}.recipe-builder-header p{margin:5px 0 0;color:var(--muted);font-size:12px;line-height:1.5}
.recipe-builder-stats{display:flex;align-items:center;gap:20px;flex-wrap:wrap;padding:11px 13px;margin-bottom:12px;border:1px solid var(--line);border-radius:12px;background:#fafcfa;color:var(--muted);font-size:11px}.recipe-builder-stats strong{color:var(--ink)}
.recipe-builder-table{min-width:980px}.recipe-builder-row{transition:background .12s ease,opacity .12s ease}.recipe-builder-row.dragging{opacity:.45;background:#eef8f1}.recipe-builder-row.drag-over{outline:2px solid rgba(24,145,78,.35);outline-offset:-2px;background:#f2fbf5}
.recipe-drag-cell{white-space:nowrap}.recipe-drag-handle{display:inline-grid;place-items:center;width:30px;height:30px;margin-right:7px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--muted);font-weight:900;letter-spacing:-3px;cursor:grab}.recipe-drag-handle:active{cursor:grabbing}.recipe-builder-row:hover .recipe-drag-handle{border-color:#bcd9c6;color:var(--green-strong);background:var(--green-soft)}
.recipe-change-log{display:grid}.recipe-change-log article{display:flex;justify-content:space-between;gap:20px;padding:14px 18px;border-top:1px solid var(--line)}.recipe-change-log article:first-child{border-top:0}.recipe-change-log strong,.recipe-change-log span{display:block}.recipe-change-log span{margin-top:4px;color:var(--muted);font-size:12px}.recipe-change-log p{margin:7px 0 0;max-width:900px;color:var(--ink);font-size:11px;line-height:1.5;word-break:break-word}.recipe-change-log time{flex:0 0 auto;color:var(--muted);font-size:11px;text-align:right}.change-arrow{display:inline!important;margin:0 5px!important;color:var(--green-strong)!important;font-weight:900}
@media(max-width:900px){.recipe-builder-header{align-items:stretch;flex-direction:column}.recipe-builder-header .workspace-card-actions{width:100%;align-items:stretch;flex-direction:column}.recipe-builder-header .button{width:100%}.recipe-change-log article{display:block}.recipe-change-log time{display:block;margin-top:8px;text-align:left}}

/* v48 — pack-aware invoice fulfillment, dealer pricing, backorders, and Production Board */
.invoice-fulfillment-banner{margin:16px 22px 0;padding:13px 15px;display:flex;align-items:flex-start;gap:10px;border:1px solid #b9dcc5;border-radius:12px;color:var(--green-strong);background:#f1faf4}.invoice-fulfillment-banner span{color:#4f6858}
.invoice-products-actions{align-items:center}.invoice-pack-mode{min-height:42px;display:flex;align-items:center;gap:10px;padding:7px 11px;border:1px solid var(--line);border-radius:11px;background:#f8faf8;cursor:pointer}.invoice-pack-mode.enabled{border-color:#a9d1b7;background:#eff9f2}.invoice-pack-mode input{width:17px;height:17px;accent-color:var(--green)}.invoice-pack-mode span{display:grid;gap:1px}.invoice-pack-mode strong{font-size:11px}.invoice-pack-mode small{max-width:245px;color:var(--muted);font-size:9px;line-height:1.35}
.invoice-inventory-note{display:flex;gap:9px;align-items:flex-start;margin-top:10px;padding:10px 12px;border:1px solid #dbe7df;border-radius:10px;background:#f8fbf9;color:var(--muted);font-size:10px;line-height:1.45}.invoice-inventory-note strong{flex:0 0 auto;color:var(--green-strong)}
.invoice-pack-lines .invoice-line-head,.invoice-pack-lines .invoice-line-row{min-width:1320px;grid-template-columns:minmax(220px,1.15fr) minmax(210px,1.05fr) minmax(220px,1.1fr) 90px 128px 112px 68px 42px}
.invoice-pack-line>.invoice-pack-select,.invoice-pack-line>div:has([data-line-rate]){min-height:55px;padding:5px 8px;border-right:1px solid var(--line);background:#fff}.invoice-pack-select{display:grid;align-content:center;gap:2px}.invoice-pack-select .select,.invoice-pack-line>div:has([data-line-rate]) .input{min-height:32px;border:1px solid transparent;background:transparent;box-shadow:none}.invoice-pack-select .select:focus,.invoice-pack-line>div:has([data-line-rate]) .input:focus{border-color:#75b88e;background:#fff}.invoice-pack-select small,.invoice-pack-line [data-price-source]{min-height:13px;display:block;overflow:hidden;color:var(--muted);font-size:9px;line-height:1.2;text-overflow:ellipsis;white-space:nowrap}.invoice-pack-line>[data-line-description],.invoice-pack-line>[data-line-quantity]{min-height:55px;border:0;border-right:1px solid var(--line);border-radius:0;background:transparent}.invoice-pack-line>[data-line-description]:focus,.invoice-pack-line>[data-line-quantity]:focus{box-shadow:inset 0 0 0 2px #75b88e}

.customer-discount-editor{grid-column:1/-1;padding:14px;border:1px solid var(--line);border-radius:14px;background:#f8fbf9}.customer-discount-editor>header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.customer-discount-editor>header div{display:grid;gap:3px}.customer-discount-editor>header small{color:var(--muted);font-size:10px}.customer-discount-list{display:grid;gap:8px}.customer-discount-row{display:grid;grid-template-columns:minmax(220px,1fr) 150px 38px;gap:8px;align-items:center}.input-with-suffix{position:relative}.input-with-suffix .input{padding-right:30px}.input-with-suffix>span{position:absolute;right:10px;top:50%;transform:translateY(-50%);color:var(--muted);font-size:11px}

.production-board-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:18px 20px 0}.production-board-header h3{margin:0 0 4px;font-size:18px}.production-board-filters{padding:14px 20px;border-bottom:1px solid var(--line)}.production-board-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding:18px 20px}.production-board-card{min-width:0;padding:16px;border:1px solid var(--line);border-radius:16px;background:#fff;box-shadow:var(--shadow-sm)}.production-board-card.active{border-color:#8fc8a4;box-shadow:0 0 0 2px rgba(63,143,91,.07),var(--shadow-sm)}.production-board-card>header{display:flex;align-items:center;justify-content:space-between;gap:12px}.production-board-card>header>div{display:flex;align-items:center;gap:8px}.production-board-rank{display:grid;place-items:center;min-width:30px;height:30px;padding:0 7px;border-radius:9px;background:var(--green-soft);color:var(--green-strong);font-size:11px;font-weight:850}.production-board-product{margin:14px 0 12px}.production-board-product h3{margin:0;font-size:17px}.production-board-product p{margin:4px 0 0;color:var(--muted);font-size:10px}.production-board-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.production-board-metrics>div{min-height:74px;padding:10px;border:1px solid var(--line);border-radius:11px;background:#fafcfa}.production-board-metrics small,.production-board-metrics strong,.production-board-metrics span{display:block}.production-board-metrics small{color:var(--muted);font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.04em}.production-board-metrics strong{margin-top:5px;font-size:17px}.production-board-metrics span{margin-top:2px;color:var(--muted);font-size:9px}.production-board-source{display:grid;gap:2px;margin-top:10px;padding:10px 12px;border-radius:10px;background:#f4f7f5}.production-board-source strong{font-size:11px}.production-board-source span{color:var(--muted);font-size:9px}.production-board-card>footer{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:12px}.production-board-card>footer .select{max-width:150px}

@media(max-width:1100px){.production-board-grid{grid-template-columns:1fr}.invoice-pack-mode{width:100%}.invoice-pack-mode span{flex:1}.invoice-products-actions{width:100%}}
@media(max-width:720px){.invoice-fulfillment-banner{margin:12px 12px 0;flex-direction:column}.customer-discount-row{grid-template-columns:1fr 110px 38px}.production-board-grid,.production-board-filters,.production-board-header{padding-left:14px;padding-right:14px}.production-board-metrics{grid-template-columns:1fr}.production-board-card>footer{align-items:stretch;flex-direction:column}.production-board-card>footer .button,.production-board-card>footer .select{width:100%;max-width:none}}
@media(max-width:520px){.customer-discount-row{grid-template-columns:1fr 1fr}.customer-discount-row .icon-button{grid-column:2;justify-self:end}.invoice-pack-mode small{max-width:none}}

@media print{
  .invoice-fulfillment-banner,.invoice-pack-mode,.invoice-inventory-note{display:none!important}
  .invoice-pack-lines .invoice-line-head,.invoice-pack-lines .invoice-line-row{min-width:0;grid-template-columns:1.45fr 1fr 1.3fr .5fr .65fr .7fr .4fr}
  .invoice-pack-lines .invoice-line-head span:last-child,.invoice-pack-lines .invoice-line-row>*:last-child{display:none}
}
.customer-category-discounts{grid-column:1/-1;padding:14px;border:1px solid var(--line);border-radius:14px;background:#f8fbf9}.customer-category-discounts .customer-line-header{padding:0 0 10px;border:0;background:transparent}.customer-category-discounts [data-category-discounts]{display:grid;gap:8px}.customer-category-discounts>.field-help{display:block;margin-top:9px}

/* v48 — department production boards */
.production-department-boards{display:grid;gap:18px;margin-top:14px}
.production-department-board{border:1px solid var(--border,#dce5df);border-radius:20px;background:var(--surface,#fff);overflow:hidden}
.production-department-header{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px 20px;border-bottom:1px solid var(--border,#e3e9e5);background:linear-gradient(180deg,rgba(244,250,246,.92),rgba(255,255,255,.98))}
.production-department-header h3{margin:3px 0 0;font-size:20px}
.production-department-summary{display:grid;grid-template-columns:auto auto;column-gap:8px;align-items:baseline;text-align:right}
.production-department-summary strong{font-size:22px;color:var(--brand,#16753b)}
.production-department-summary span{font-size:12px;color:var(--muted,#637168)}
.production-department-summary small{grid-column:1/-1;margin-top:3px;color:var(--muted,#637168)}
.production-department-board .production-board-grid{padding:16px}
@media(max-width:800px){.production-department-header{align-items:flex-start;flex-direction:column}.production-department-summary{text-align:left}}

/* v50 — physical production display manager */
.physical-screen-manager{margin:16px 20px 0;padding:16px;border:1px solid var(--line);border-radius:16px;background:#f9fbfa}.physical-screen-manager-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:14px}.physical-screen-manager-head h3{margin:2px 0 4px;font-size:18px}.physical-screen-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.physical-screen-card{padding:14px;border:1px solid var(--line);border-radius:14px;background:#fff;box-shadow:var(--shadow-sm)}.physical-screen-card.disabled{opacity:.66}.physical-screen-card>header{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}.physical-screen-card h4{margin:7px 0 3px;font-size:15px}.physical-screen-card p{margin:0;color:var(--muted);font-size:10px}.physical-screen-link{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center;margin:12px 0;padding:9px 10px;border:1px solid var(--line);border-radius:10px;background:#f7faf8}.physical-screen-link code{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:9px;color:#315d45}.physical-screen-card>footer{display:flex;gap:7px;flex-wrap:wrap}.empty-state-inline{grid-column:1/-1;padding:18px;border:1px dashed var(--line);border-radius:12px;color:var(--muted);text-align:center}
@media(max-width:1000px){.physical-screen-grid{grid-template-columns:1fr}}@media(max-width:720px){.physical-screen-manager{margin:12px 14px 0}.physical-screen-manager-head{flex-direction:column}.physical-screen-link{grid-template-columns:1fr}.physical-screen-card>footer .button{flex:1}}

/* v60 — inline product-category creation */
.field-label-row{display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0}.field-label-row>.field-label{min-width:0}.field-inline-action{flex:0 0 auto;font-size:11px;line-height:1;white-space:nowrap}.field-inline-action svg{width:14px;height:14px}@media(max-width:620px){.field-label-row{align-items:flex-start}.field-inline-action{font-size:10px}}

/* v62 · BOM lot traceability + draft procurement */
.bom-material-row { cursor: pointer; }
.bom-material-row:hover td { background: rgba(24, 137, 77, .045); }
.bom-material-row:focus { outline: 2px solid var(--green, #16894d); outline-offset: -2px; }
.bom-material-link { color: var(--green, #16894d); }
.bom-lot-summary { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin-bottom:18px; }
.bom-lot-summary article { border:1px solid var(--line,#dfe7e1); border-radius:14px; padding:14px 16px; background:#fff; display:flex; flex-direction:column; gap:5px; }
.bom-lot-summary article span { color:var(--muted,#66756b); font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:.04em; }
.bom-lot-summary article strong { font-size:19px; }
.bom-lot-summary article small { color:var(--muted,#66756b); }
.bom-lot-section { border-top:1px solid var(--line,#dfe7e1); padding-top:18px; margin-top:18px; }
.bom-lot-section > header { display:flex; align-items:flex-end; justify-content:space-between; gap:18px; margin-bottom:12px; }
.bom-lot-section > header h3 { margin:0 0 4px; }
.bom-lot-section > header p { margin:0; color:var(--muted,#66756b); }
.bom-procurement-header { align-items:center !important; }
.bom-order-qty { display:flex; flex-direction:column; gap:4px; min-width:150px; }
.bom-order-qty span { font-size:11px; font-weight:700; color:var(--muted,#66756b); text-transform:uppercase; }
.link-button { border:0; background:none; color:var(--green,#16894d); padding:0; font:inherit; font-weight:700; cursor:pointer; }
@media (max-width: 900px) {
  .bom-lot-summary { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .bom-lot-section > header { align-items:flex-start; flex-direction:column; }
  .bom-procurement-header .workspace-card-actions { width:100%; flex-wrap:wrap; }
}
@media (max-width: 600px) { .bom-lot-summary { grid-template-columns:1fr; } }

/* v65 — canonical Recipe units: g for mass, L for liquid volume */
.recipe-dual-unit-control{min-width:330px;gap:7px}.recipe-unit-pair{display:grid;grid-template-columns:48px minmax(0,1fr);align-items:center;gap:7px;width:100%}.recipe-unit-pair>small{font-size:10px;font-weight:850;text-transform:uppercase;letter-spacing:.05em;color:var(--muted)}.recipe-unit-segmented{grid-template-columns:repeat(auto-fit,minmax(46px,1fr));width:100%}.recipe-unit-segmented button{text-transform:none}.recipe-stored-unit strong{text-transform:none}@media(max-width:720px){.recipe-dual-unit-control{min-width:0}.recipe-unit-pair{grid-template-columns:1fr}.recipe-unit-pair>small{margin-top:2px}}

/* v67 — employee-assignment labor costing + production analytics */
.production-team-field{align-self:stretch}.production-team-select{min-height:112px;padding:7px}.production-team-select option{padding:7px 9px;border-radius:6px}.production-team-select option:checked{font-weight:800}.field-help-inline{color:var(--muted);font-size:10px;font-weight:650;text-align:right}.production-summary-grid-teams{grid-template-columns:repeat(4,minmax(0,1fr))}
.production-cost-section{margin:22px 0;padding:18px;border:1px solid var(--line);border-radius:18px;background:#fbfdfb}.production-cost-section .section-heading,.analytics-pivot-section .section-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:14px}.production-cost-section .section-heading h3,.analytics-pivot-section .section-heading h3{margin:3px 0 0}.production-cost-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.production-cost-cards article{display:grid;gap:4px;padding:13px 14px;border:1px solid var(--line);border-radius:13px;background:#fff}.production-cost-cards article.total{border-color:rgba(22,137,77,.32);background:var(--green-soft)}.production-cost-cards small{color:var(--muted);font-size:9px;font-weight:850;text-transform:uppercase;letter-spacing:.05em}.production-cost-cards strong{font-size:19px}.production-cost-cards span{color:var(--muted);font-size:10px}.production-cost-note{margin:12px 0;color:var(--muted);font-size:10px;line-height:1.55}.compact-table td,.compact-table th{padding-top:9px;padding-bottom:9px}
.production-analytics-workspace{display:grid;gap:16px;padding:18px}.analytics-filter-bar{display:grid;grid-template-columns:150px 150px minmax(230px,1fr) minmax(290px,1.35fr) auto;gap:12px;align-items:end;padding:15px;border:1px solid var(--line);border-radius:15px;background:#f8fbf9}.analytics-multi-filter .select{min-height:92px;padding:6px}.analytics-filter-actions{display:flex;gap:8px;align-items:center;padding-bottom:1px}.analytics-explainer{padding:11px 13px;border:1px solid rgba(22,137,77,.18);border-radius:11px;background:var(--green-soft);color:#365d47;font-size:11px;line-height:1.5}.analytics-chart-card,.analytics-pivot-section{padding:17px;border:1px solid var(--line);border-radius:16px;background:#fff;box-shadow:var(--shadow-sm)}.analytics-chart-card>header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:8px}.analytics-chart-card h3{margin:3px 0 2px;font-size:17px}.analytics-chart-card p{margin:4px 0 0;color:var(--muted);font-size:10px}.analytics-chart-scroll{overflow-x:auto;overflow-y:hidden;padding:4px 0 0}.analytics-chart-scroll svg{display:block;max-width:none}.analytics-grid-line{stroke:var(--line);stroke-width:1}.analytics-axis-text{fill:var(--muted);font-size:9px;font-weight:650}.analytics-axis-label{font-size:8px}.analytics-cost-ingredient{fill:#2f8f58}.analytics-cost-packaging{fill:#8dbb9d}.analytics-cost-labor{fill:#b6c8bb}.analytics-legend{display:flex;align-items:center;gap:12px;flex-wrap:wrap;color:var(--muted);font-size:9px;font-weight:800}.analytics-legend span{display:inline-flex;align-items:center;gap:6px}.analytics-legend span:before{content:"";width:10px;height:10px;border-radius:3px;background:#ccc}.analytics-legend .ingredient:before{background:#2f8f58}.analytics-legend .packaging:before{background:#8dbb9d}.analytics-legend .labor:before{background:#b6c8bb}.analytics-trend-line{stroke-width:2;opacity:.65}.analytics-trend-point{stroke:#fff;stroke-width:2}.analytics-trend-line.series-0,.analytics-trend-point.series-0{stroke:#287b4a;fill:#287b4a}.analytics-trend-line.series-1,.analytics-trend-point.series-1{stroke:#557a68;fill:#557a68}.analytics-trend-line.series-2,.analytics-trend-point.series-2{stroke:#7a8f80;fill:#7a8f80}.analytics-trend-line.series-3,.analytics-trend-point.series-3{stroke:#406b56;fill:#406b56}.analytics-trend-line.series-4,.analytics-trend-point.series-4{stroke:#9aaa9f;fill:#9aaa9f}.analytics-trend-line.series-5,.analytics-trend-point.series-5{stroke:#6a756e;fill:#6a756e}.analytics-change,.analytics-delta{font-size:9px;font-weight:850}.analytics-change.up,.analytics-delta.up{fill:#16753b;color:#16753b}.analytics-change.down,.analytics-delta.down{fill:#a73a36;color:#a73a36}.analytics-change.flat,.analytics-delta.flat{fill:var(--muted);color:var(--muted)}.analytics-delta{display:inline-flex;white-space:nowrap}.analytics-empty{min-height:180px;display:grid;place-items:center;color:var(--muted);font-size:11px}.analytics-table{min-width:1080px}
@media(max-width:1280px){.analytics-filter-bar{grid-template-columns:repeat(2,minmax(0,1fr))}.analytics-filter-actions{grid-column:1/-1}.production-summary-grid-teams{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.production-cost-cards,.production-summary-grid-teams,.analytics-filter-bar{grid-template-columns:1fr}.analytics-filter-actions{grid-column:auto;align-items:stretch;flex-direction:column}.analytics-chart-card>header{flex-direction:column}.field-help-inline{display:none}.production-analytics-workspace{padding:12px}.production-cost-section{padding:13px}}

/* v69 — batched event-driven realtime connection status */
.realtime-indicator{display:inline-flex;align-items:center;gap:7px;min-height:32px;padding:6px 10px;border:1px solid #dfe8e2;border-radius:999px;background:#fff;color:#66756d;font-size:12px;font-weight:750;white-space:nowrap}.realtime-dot{width:8px;height:8px;border-radius:50%;background:#a0aaa4;box-shadow:0 0 0 3px rgba(160,170,164,.12)}.realtime-indicator[data-status="live"]{color:#147a45;background:#f2fbf6;border-color:#cfeada}.realtime-indicator[data-status="live"] .realtime-dot{background:#20a45a;box-shadow:0 0 0 3px rgba(32,164,90,.14)}.realtime-indicator[data-status="connecting"],.realtime-indicator[data-status="reconnecting"]{color:#8a6411;background:#fffaf0;border-color:#eedfb9}.realtime-indicator[data-status="connecting"] .realtime-dot,.realtime-indicator[data-status="reconnecting"] .realtime-dot{background:#d39a25;animation:realtimePulse 1.15s ease-in-out infinite}.realtime-indicator[data-status="unsupported"],.realtime-indicator[data-status="stopped"]{color:#8c3b35;background:#fff5f4;border-color:#f1d2cf}.realtime-indicator[data-pending="true"]:after{content:"update waiting";font-size:10px;color:#8a6411;margin-left:2px}@keyframes realtimePulse{0%,100%{opacity:.4;transform:scale(.9)}50%{opacity:1;transform:scale(1.12)}}@media(max-width:760px){.realtime-indicator{padding:6px 8px}.realtime-indicator [data-realtime-label]{display:none}.realtime-indicator[data-pending="true"]:after{display:none}}


/* v72 Employee Portal administrator-created PIN */
.portal-pin-card{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(260px,.85fr);gap:18px;align-items:start;padding:16px;border:1px solid var(--line);border-radius:15px;background:#f8faf8}
.portal-pin-copy strong,.portal-pin-copy small{display:block}.portal-pin-copy small{margin-top:5px;color:var(--muted);line-height:1.45}
.portal-pin-state{display:inline-flex!important;width:max-content;margin-top:10px;padding:5px 9px;border-radius:999px;background:#eef1ef;color:#6b756f;font-size:11px;font-weight:800}.portal-pin-state.configured{background:#e6f4eb;color:#14643f}
.portal-pin-controls{display:grid;gap:9px}.portal-pin-input{font-size:18px;font-weight:850;letter-spacing:.18em}.portal-pin-clear{display:flex;align-items:center;gap:8px;color:#a33;font-size:12px;font-weight:750;cursor:pointer}
@media(max-width:760px){.portal-pin-card{grid-template-columns:1fr}}

/* v75 — recipe ratio basis / assigned ratio */
.input-pair{display:grid;grid-template-columns:minmax(0,1fr) 110px;gap:8px}.recipe-builder-table th:nth-child(4),.recipe-builder-table td:nth-child(4){min-width:165px}.recipe-builder-stats{flex-wrap:wrap}.recipe-builder-stats [data-recipe-ratio-basis]{white-space:nowrap}@media(max-width:760px){.input-pair{grid-template-columns:1fr}.recipe-builder-table th:nth-child(4),.recipe-builder-table td:nth-child(4){min-width:145px}}
/* v76 inventory audit */
.audit-mini-progress{height:6px;background:#edf2ee;border-radius:999px;overflow:hidden;margin-top:6px}.audit-mini-progress span{display:block;height:100%;background:var(--accent,#17944c);border-radius:inherit}.audit-builder{border:1px solid var(--border,#dde4df);border-radius:14px;padding:14px;margin:14px 0}.audit-builder-controls{display:grid;grid-template-columns:180px 200px minmax(220px,1fr) auto;gap:10px;align-items:end}.audit-catalog{border:1px solid var(--border,#dde4df);border-radius:12px;margin-top:12px;max-height:360px;overflow:auto}.audit-catalog-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:12px;align-items:center;padding:11px 12px;border-bottom:1px solid var(--border,#edf1ee);cursor:pointer}.audit-catalog-row:last-child{border-bottom:0}.audit-catalog-row span{min-width:0}.audit-catalog-row strong,.audit-catalog-row small{display:block}.audit-catalog-row small{color:var(--muted,#6d766f);margin-top:2px}.audit-method-pill{white-space:nowrap;border-radius:999px;padding:5px 9px;background:#eef4ef;font-size:12px}.audit-method-pill.scale{background:#edf5ff}.audit-selection-summary{display:flex;justify-content:space-between;gap:12px;padding-top:10px;color:var(--muted,#6d766f)}.audit-detail-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:16px}.audit-detail-summary>div{border:1px solid var(--border,#dde4df);border-radius:12px;padding:12px}.audit-detail-summary span,.audit-detail-summary strong{display:block}.audit-detail-summary span{font-size:12px;color:var(--muted,#6d766f);margin-bottom:5px}@media(max-width:800px){.audit-builder-controls{grid-template-columns:1fr}.audit-detail-summary{grid-template-columns:1fr}.audit-catalog-row{grid-template-columns:auto 1fr}.audit-method-pill{grid-column:2}}

/* v78 audit assignment editing / row actions */
.audit-assignment-row{cursor:pointer;transition:background .16s ease}.audit-assignment-row:hover{background:#f8fbf9}.audit-assignment-row:focus{outline:2px solid #76b98f;outline-offset:-2px}.audit-actions-head,.audit-actions-cell{width:54px;text-align:right}.audit-row-menu{position:relative;display:inline-block}.audit-row-menu>summary{list-style:none}.audit-row-menu>summary::-webkit-details-marker{display:none}.audit-more-button{width:34px;height:34px;border:1px solid var(--line);border-radius:10px;background:#fff}.audit-more-button svg{width:18px;height:18px}.audit-row-menu[open] .audit-more-button{border-color:#8dc3a0;background:#f0f8f3}.audit-row-menu-popover{position:absolute;z-index:80;top:40px;right:0;width:210px;padding:6px;border:1px solid var(--line);border-radius:12px;background:#fff;box-shadow:0 14px 36px rgba(31,57,43,.17);text-align:left}.audit-row-menu-popover button{width:100%;min-height:42px;padding:8px 10px;border:0;border-radius:9px;display:flex;align-items:center;gap:10px;background:transparent;color:var(--text);font:inherit;text-align:left;cursor:pointer}.audit-row-menu-popover button:hover:not(:disabled){background:#f2f8f4}.audit-row-menu-popover button.danger{color:#b42318}.audit-row-menu-popover button.danger:hover:not(:disabled){background:#fff1f0}.audit-row-menu-popover button:disabled{opacity:.43;cursor:not-allowed}.audit-row-menu-popover button svg{width:17px;height:17px;flex:0 0 auto}.audit-row-menu-popover button span{display:grid;gap:1px}.audit-row-menu-popover button small{font-size:9px;color:var(--muted)}.audit-editable-notice,.audit-readonly-notice{margin-bottom:14px;display:flex;align-items:center;justify-content:space-between;gap:10px}.audit-editable-notice{border-color:#b9dfc7;background:#f1faf4;color:#245d39}.audit-readonly-notice{border-color:#ead5aa;background:#fff9ed;color:#73551f}

/* v79 audit assignment actions */
.audit-actions-cell{overflow:visible!important;position:relative;min-width:56px}.audit-row-menu{position:relative;display:inline-flex!important;justify-content:flex-end;overflow:visible}.audit-more-button{display:inline-flex!important;align-items:center;justify-content:center;cursor:pointer}.audit-more-glyph{font-size:24px;line-height:1;font-weight:700;letter-spacing:0;color:#314b3d;transform:translateY(-1px)}.audit-row-menu-popover{display:block}.audit-row-menu:not([open]) .audit-row-menu-popover{display:none}.audit-row-menu[open] .audit-row-menu-popover{display:block}.audit-assignment-row td:last-child{overflow:visible}.audit-admin-page .table-wrap{overflow:visible}.audit-admin-page .data-table{overflow:visible}

/* v80 Audit action menu visibility fix.
   The generic .panel uses overflow:hidden for rounded tables, which clipped
   the audit assignment action popover below the final row. Audit needs its
   action layer to escape the table/panel without changing the rest of ERP. */
.audit-admin-page > .panel,
.audit-admin-page .panel:has(.audit-row-menu) {
  overflow: visible !important;
}
.audit-admin-page .table-wrap {
  overflow: visible !important;
}
.audit-admin-page .data-table,
.audit-admin-page .data-table tbody,
.audit-admin-page .data-table tr,
.audit-admin-page .audit-actions-cell,
.audit-admin-page .audit-row-menu {
  overflow: visible !important;
}
.audit-admin-page .audit-actions-cell {
  position: relative;
  z-index: 30;
}
.audit-admin-page .audit-row-menu[open] {
  z-index: 3000;
}
.audit-admin-page .audit-row-menu-popover {
  z-index: 3100;
  top: calc(100% + 6px);
  right: 0;
}
.audit-admin-page .audit-row-menu[open] .audit-row-menu-popover {
  display: block !important;
}

/* v81 audit inventory reconciliation */
.audit-reconcile-note{display:flex;gap:10px;align-items:flex-start;padding:10px 12px;margin:0 0 12px;border:1px solid #dbe8df;border-radius:12px;background:#f7fbf8;color:#53645a}.audit-reconcile-note strong{white-space:nowrap;color:#244b34}.audit-reconcile-wrap{overflow:auto!important}.audit-reconcile-table td strong,.audit-reconcile-table td small{display:block}.audit-reconcile-table td small{margin-top:3px;color:var(--muted,#6d766f)}.audit-post-row td{padding-top:0!important;background:#fbfdfb}.audit-post-controls{display:grid;grid-template-columns:190px minmax(260px,1fr) auto;gap:10px;align-items:end;padding:12px;border:1px solid #dfe9e2;border-radius:12px;background:#f8fbf9}.audit-post-controls .field{margin:0}.audit-posted-badge{display:inline-flex;padding:5px 9px;border-radius:999px;background:#e6f6eb;color:#13733a;font-size:12px;font-weight:700}.audit-posted-detail{display:grid;gap:3px;padding:11px 12px;border:1px solid #cde6d5;border-radius:12px;background:#f2faf5;color:#31533d}.audit-posted-detail small{color:#6f7d73}.stock-positive{color:#13733a}@media(max-width:900px){.audit-post-controls{grid-template-columns:1fr}.audit-reconcile-note{display:grid}}


/* v83/v84 — type-to-search selectors for purchase orders and invoices */
.type-search-combobox{position:relative;min-width:0;width:100%}
.type-search-combobox>.input{width:100%;min-width:0}
.qb-po-product-cell .type-search-combobox>.input{min-height:38px;border-color:#b8d7c1;background:var(--surface)}
.invoice-line-row>.type-search-combobox{height:55px;border-right:1px solid var(--line);display:flex;align-items:center;background:var(--surface)}
.invoice-line-row>.type-search-combobox>.input{height:55px;min-height:55px;border:0;border-radius:0;box-shadow:none;background:transparent}
.invoice-line-row>.type-search-combobox>.input:focus{position:relative;z-index:1;box-shadow:inset 0 0 0 2px #75b88e}


/* v84 — themed inline search results (replaces browser-native datalist popup) */
.type-search-combobox{position:relative;min-width:0;width:100%}
.type-search-combobox::after{content:"⌄";position:absolute;right:12px;top:50%;transform:translateY(-53%);color:var(--muted);font-size:15px;line-height:1;pointer-events:none}
.type-search-combobox>.input[type="search"]{padding-right:34px;-webkit-appearance:none;appearance:none}
.type-search-combobox>.input[type="search"]::-webkit-search-cancel-button{margin-right:4px}
.type-search-results-popover{position:fixed;z-index:260;max-height:320px;overflow:auto;border:1px solid var(--line-strong);border-radius:12px;padding:5px;background:var(--surface);box-shadow:0 16px 42px rgba(20,38,26,.16);scrollbar-width:thin}
.type-search-result{width:100%;min-height:54px;border:0;border-radius:9px;padding:9px 11px;display:flex;align-items:center;text-align:left;background:var(--surface);color:var(--text);cursor:pointer}
.type-search-result+.type-search-result{margin-top:2px}
.type-search-result:hover,.type-search-result.active{background:var(--surface-hover)}
.type-search-result.active{box-shadow:inset 0 0 0 1px #cfe4d6}
.type-search-result-copy{min-width:0;display:grid;gap:2px}
.type-search-result-copy strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:700;color:var(--text)}
.type-search-result-copy small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted);font-size:11px;font-weight:520}
.type-search-empty{padding:16px 12px;color:var(--muted);font-size:12px;text-align:center;background:var(--surface)}

/* Purchase Order inline vendor creation — v85 */
.qb-po-vendor-picker{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px;align-items:end;min-width:0}
.qb-po-vendor-picker>.field{min-width:0}.qb-po-new-vendor-button{height:38px;white-space:nowrap;margin-bottom:0}
.qb-po-inline-vendor{grid-column:1/-1;margin-top:6px;padding:14px;border:1px solid #bdd9c9;border-radius:12px;background:rgba(255,255,255,.82);box-shadow:0 8px 20px rgba(24,64,45,.08)}
.qb-po-inline-vendor[hidden]{display:none!important}.qb-po-inline-vendor-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:12px}.qb-po-inline-vendor-head>div{display:grid;gap:3px}.qb-po-inline-vendor-head strong{font-size:14px;color:#183b2a}.qb-po-inline-vendor-head small{font-size:11px;color:#607168}.qb-po-inline-vendor-head .icon-button{width:30px;height:30px;font-size:18px}
.qb-po-inline-vendor-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px 12px}.qb-po-inline-vendor-grid>.wide{grid-column:span 2}.qb-po-inline-vendor-grid .field{margin:0}.qb-po-inline-vendor-more{border-top:1px solid #dbe8e1;padding-top:8px}.qb-po-inline-vendor-more>summary{cursor:pointer;color:#245b3e;font-size:12px;font-weight:700}.qb-po-inline-vendor-more-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px 12px;margin-top:10px}.qb-po-inline-vendor-more-grid>.wide{grid-column:1/-1}
.qb-po-inline-vendor-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin-top:12px;padding-top:10px;border-top:1px solid #dbe8e1}.qb-po-inline-vendor-actions>[data-po-vendor-status]{margin-right:auto;font-size:11px;color:#8a4d12}.qb-po-inline-vendor-actions .button{min-width:92px}
@media(max-width:1050px){.qb-po-inline-vendor-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.qb-po-inline-vendor-more-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.qb-po-vendor-picker{grid-template-columns:1fr}.qb-po-new-vendor-button{width:100%}.qb-po-inline-vendor-grid,.qb-po-inline-vendor-more-grid{grid-template-columns:1fr}.qb-po-inline-vendor-grid>.wide,.qb-po-inline-vendor-more-grid>.wide{grid-column:1}.qb-po-inline-vendor-actions{flex-wrap:wrap}.qb-po-inline-vendor-actions>[data-po-vendor-status]{width:100%}}
.qb-po-vendor-fields{grid-template-columns:minmax(330px,440px) 280px}
@media(max-width:760px){.qb-po-vendor-fields{grid-template-columns:1fr}}

/* v86 purchase-cost semantics: inventory items are priced by total purchase
   amount; canonical per-unit cost is calculated from total / quantity. */
.qb-po-cost-entry{display:grid;gap:2px;align-items:center}.qb-po-cost-entry small{color:var(--muted);font-size:8.5px;line-height:1.15;white-space:normal}.qb-po-cost-entry .input{width:100%}

/* v93 Pickup & Delivery */
.pickup-page{padding-bottom:48px}.pickup-kpis{margin:18px 0}.pickup-kpi{padding:18px}.pickup-kpi small,.pickup-kpi span{display:block;color:var(--text-muted,#68756f)}.pickup-kpi strong{font-size:30px;display:block;margin:5px 0}.pickup-tabs{display:flex;gap:6px;background:#edf3ef;padding:5px;border-radius:14px;margin-bottom:14px;overflow:auto}.pickup-tabs button{border:0;background:transparent;padding:10px 15px;border-radius:10px;font-weight:700;white-space:nowrap}.pickup-tabs button.active{background:white;box-shadow:0 1px 4px rgba(0,0,0,.08);color:#08763e}.pickup-section{padding:18px;margin-bottom:16px;overflow:visible}.pickup-section-head{display:flex;justify-content:space-between;gap:18px;margin-bottom:15px}.pickup-section-head h2{margin:0 0 4px}.pickup-section-head p{margin:0;color:#65716b}.pickup-form-grid,.pickup-person-verify,.offset-form{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.pickup-form-grid label,.pickup-person-verify label,.offset-form label,.pickup-access-form label,.pickup-access-select{display:flex;flex-direction:column;gap:6px;font-weight:700;font-size:12px}.pickup-form-grid input,.pickup-form-grid select,.pickup-product-search input,.pickup-scan-row input,.pickup-scan-row select,.pickup-person-verify input,.pickup-person-verify select,.pickup-access-form input,.pickup-access-form select,.pickup-person-form input,.offset-form input,.offset-form select{min-height:42px;border:1px solid #d9e2dc;border-radius:10px;background:#fff;padding:0 11px;font:inherit}.pickup-form-grid .wide,.offset-form .wide{grid-column:span 2}.pickup-product-search{margin:16px 0}.pickup-product-search label{display:flex;flex-direction:column;gap:6px;font-weight:700;font-size:12px;max-width:720px}.pickup-cart{border:1px solid #e0e7e2;border-radius:12px;overflow:hidden}.pickup-cart-row{display:grid;grid-template-columns:minmax(240px,1fr) 170px 90px 115px 42px;gap:10px;align-items:center;padding:10px 12px;border-bottom:1px solid #edf1ee}.pickup-cart-row:last-child{border-bottom:0}.pickup-cart-row strong,.pickup-cart-row small{display:block}.pickup-cart-row small{color:#6b766f;margin-top:3px}.pickup-cart-row label{font-size:10px;color:#68756f}.pickup-cart-row input,.pickup-cart-row select{width:100%;min-height:36px;border:1px solid #d9e2dc;border-radius:8px;padding:0 8px;background:white}.pickup-notes{display:flex;flex-direction:column;gap:5px;margin:12px 0;font-weight:700;font-size:12px}.pickup-notes textarea{border:1px solid #d9e2dc;border-radius:10px;padding:10px}.pickup-actions{display:flex;justify-content:flex-end}.pickup-scan-row{display:grid;grid-template-columns:1fr 260px auto;gap:10px;margin-bottom:14px}.pickup-scan-empty{padding:35px;border:1px dashed #cbd8d0;border-radius:14px;text-align:center;color:#65716b}.pickup-verified{border:1px solid #acd6bb;background:#f1fbf5;border-radius:14px;padding:15px}.pickup-verified h3{margin:7px 0 3px}.pickup-verified p{margin:0;color:#5d6c64}.verified-pill{font-size:11px;font-weight:800;color:#08763e}.pickup-person-ok{display:flex;gap:12px;align-items:center;margin:12px 0;padding:12px;border:1px solid #d9e7df;border-radius:10px}.pickup-person-ok span{color:#607068}.pickup-person-verify{margin:12px 0;grid-template-columns:1fr 1fr}.factory-order-builder{margin-top:20px;padding-top:18px;border-top:1px solid #e1e8e3}.pickup-access-select{max-width:620px;margin-bottom:14px}.pickup-access-select select{min-height:43px;border:1px solid #d9e2dc;border-radius:10px;padding:0 10px}.pickup-access-form{display:grid;grid-template-columns:1fr 1fr 1fr auto;gap:12px;align-items:end;background:#f7faf8;padding:14px;border-radius:12px}.toggle-field{flex-direction:row!important;align-items:center!important;gap:9px!important;min-height:42px}.pickup-people{margin-top:20px}.pickup-people-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:10px 0}.pickup-people-list>div{padding:12px;border:1px solid #e0e7e2;border-radius:10px}.pickup-people-list strong,.pickup-people-list span{display:block}.pickup-people-list span{font-size:12px;color:#65716b;margin-top:3px}.pickup-person-form{display:grid;grid-template-columns:1.3fr 1fr 1fr 1fr 1fr auto;gap:8px}.offset-form{margin-top:18px;padding:14px;background:#f7faf8;border-radius:12px;align-items:end}.pickup-history-title{margin-top:25px}.data-table td small{display:block;color:#6c7771;margin-top:3px}@media(max-width:1000px){.pickup-form-grid,.offset-form{grid-template-columns:1fr 1fr}.pickup-access-form{grid-template-columns:1fr 1fr}.pickup-person-form{grid-template-columns:1fr 1fr}.pickup-people-list{grid-template-columns:1fr 1fr}.pickup-scan-row{grid-template-columns:1fr}.pickup-cart-row{grid-template-columns:1fr 90px 110px 40px}}@media(max-width:650px){.pickup-form-grid,.offset-form,.pickup-access-form,.pickup-person-verify{grid-template-columns:1fr}.pickup-form-grid .wide,.offset-form .wide{grid-column:auto}.pickup-people-list,.pickup-person-form{grid-template-columns:1fr}.pickup-cart-row{grid-template-columns:1fr 1fr}.pickup-cart-row .icon-button{justify-self:end}}


/* v95 Customer Hub */
.customer-hub-panel{margin-top:14px;overflow:visible}
.customer-hub-toolbar{display:grid;grid-template-columns:minmax(320px,2fr) minmax(180px,.7fr) minmax(190px,.7fr);gap:12px;align-items:end}
.customer-hub-search{min-width:0}
.customer-name-button{appearance:none;border:0;background:none;padding:0;text-align:left;font:inherit;color:inherit;cursor:pointer;display:block;width:100%}
.customer-name-button:hover .cell-main{text-decoration:underline;text-underline-offset:3px}
.customer-row-actions{display:flex;align-items:center;gap:6px;white-space:nowrap}
.text-danger{color:#c93b37}
.customer-profile-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:14px}
.customer-profile-kpi{border:1px solid var(--border,#e0e7e2);border-radius:12px;padding:14px;background:var(--surface-soft,#f7faf8);display:flex;flex-direction:column;gap:4px}
.customer-profile-kpi span,.customer-profile-kpi small{font-size:12px;color:var(--muted,#6c7770)}
.customer-profile-kpi strong{font-size:22px;line-height:1.1}
.customer-profile-actions{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:14px}
.customer-profile-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:14px}
.customer-profile-card,.customer-profile-section{border:1px solid var(--border,#e0e7e2);border-radius:14px;padding:16px;background:#fff}
.customer-profile-card h3,.customer-profile-section h3{margin:0 0 12px;font-size:15px}
.customer-profile-card dl{display:grid;grid-template-columns:130px 1fr;gap:8px 12px;margin:0}
.customer-profile-card dt{font-size:12px;color:var(--muted,#6c7770)}
.customer-profile-card dd{margin:0;font-weight:600;min-width:0;overflow-wrap:anywhere}
.customer-profile-people{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px}
.customer-profile-section{margin-top:12px}
@media(max-width:980px){.customer-hub-toolbar{grid-template-columns:1fr}.customer-profile-summary{grid-template-columns:1fr 1fr}.customer-profile-grid{grid-template-columns:1fr}}
@media(max-width:620px){.customer-profile-summary{grid-template-columns:1fr}.customer-profile-card dl{grid-template-columns:1fr}.customer-profile-card dt{margin-top:6px}}

/* v96 — Ingredient bulk selection and master actions */
.ingredient-list-panel{overflow:visible}
.ingredient-list-toolbar{grid-template-columns:minmax(320px,1fr) minmax(170px,230px) minmax(150px,210px) auto}
.ingredient-toolbar-actions{display:flex;align-items:end;gap:8px;white-space:nowrap}
.ingredient-toolbar-actions .button.active{background:#e5f5eb;border-color:#97c9aa;color:#0e6f3a}
.ingredient-bulk-bar{display:grid;grid-template-columns:minmax(190px,.8fr) minmax(170px,.65fr) minmax(210px,1fr) auto auto auto;gap:10px;align-items:end;margin:0 14px 12px;padding:12px;border:1px solid #b9d9c5;border-radius:12px;background:#f3faf5;box-shadow:0 4px 14px rgba(25,86,52,.05)}
.ingredient-bulk-bar[hidden]{display:none!important}
.ingredient-bulk-summary{display:flex;flex-direction:column;gap:3px;align-self:center;min-width:0}
.ingredient-bulk-summary strong{font-size:14px;color:#174c2e}.ingredient-bulk-summary span{font-size:11px;color:var(--muted)}
.ingredient-bulk-action-field,.ingredient-bulk-value>.field{margin:0}.ingredient-bulk-value{min-width:0}.ingredient-bulk-value small{display:block;margin-top:4px;color:var(--muted);font-size:10px;line-height:1.25}
.ingredient-bulk-placeholder{height:38px;display:flex;align-items:center;padding:0 10px;border:1px dashed #cbd9d0;border-radius:9px;color:var(--muted);font-size:11px;background:#fff}
.ingredient-select-column{width:44px!important;min-width:44px!important;max-width:44px!important;text-align:center!important;padding-left:12px!important;padding-right:8px!important}
.table-checkbox{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;cursor:pointer;position:relative}.table-checkbox input{position:absolute;opacity:0;pointer-events:none}.table-checkbox span{width:17px;height:17px;border:1.5px solid #9fb4a7;border-radius:5px;background:#fff;display:grid;place-items:center;transition:.14s ease}.table-checkbox input:checked+span{background:#13864b;border-color:#13864b}.table-checkbox input:checked+span:after{content:"✓";font-size:12px;line-height:1;color:#fff;font-weight:800}.table-checkbox input:indeterminate+span{background:#13864b;border-color:#13864b}.table-checkbox input:indeterminate+span:after{content:"−";font-size:14px;line-height:1;color:#fff;font-weight:800}.table-checkbox input:focus-visible+span{outline:2px solid #77b98f;outline-offset:2px}
.ingredient-list-table tbody tr.selected-row{background:#f0faf4}.ingredient-list-table tbody tr.selected-row td:first-child{box-shadow:inset 3px 0 0 #16864c}
.ingredient-bulk-confirm{display:grid;gap:10px}.ingredient-bulk-confirm>div:not(.ingredient-bulk-error){display:grid;grid-template-columns:150px 1fr;gap:12px;padding:10px 12px;border:1px solid #e2e9e4;border-radius:10px;background:#f8fbf9}.ingredient-bulk-confirm span{color:var(--muted);font-size:12px}.ingredient-bulk-confirm strong{overflow-wrap:anywhere}.ingredient-bulk-error{padding:11px 12px;border-radius:10px;background:#fff2f1;border:1px solid #efc2bf;color:#9e2e2a}.ingredient-bulk-error p{margin:5px 0 0}.ingredient-bulk-error ul{margin:7px 0 0;padding-left:18px}
@media(max-width:1200px){.ingredient-bulk-bar{grid-template-columns:1fr 1fr 1fr}.ingredient-bulk-summary{grid-column:1/-1}.ingredient-bulk-bar>.button{width:100%}}
@media(max-width:760px){.ingredient-toolbar-actions{display:grid;grid-template-columns:1fr 1fr;width:100%}.ingredient-bulk-bar{grid-template-columns:1fr;margin:0 10px 10px}.ingredient-bulk-confirm>div:not(.ingredient-bulk-error){grid-template-columns:1fr}.ingredient-list-toolbar{grid-template-columns:1fr}.ingredient-list-toolbar .field:first-child{grid-column:auto}}

/* v98 — Printable receiving lot labels */
.lot-label-ready-list{display:grid;gap:10px}.lot-label-ready-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 14px;border:1px solid var(--border,#dfe7e1);border-radius:12px;background:var(--surface-soft,#f7faf8)}.lot-label-ready-row>div{display:grid;gap:3px;min-width:0}.lot-label-ready-row strong{font-size:14px}.lot-label-ready-row span{font-size:11px;color:var(--muted,#6c7770)}.lot-label-ready-row code{font-size:12px;font-weight:800;color:#174c2e;overflow-wrap:anywhere}.lot-label-ready-row .button{flex:0 0 auto}@media(max-width:620px){.lot-label-ready-row{align-items:stretch;flex-direction:column}.lot-label-ready-row .button{width:100%}}


/* v109 product batch costing */
.costing-summary-grid{grid-template-columns:repeat(6,minmax(145px,1fr));gap:12px}.workspace-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(160px,1fr));gap:12px;margin-top:14px}.workspace-summary-grid article{border:1px solid var(--border,#e3e8e4);border-radius:14px;padding:14px;background:var(--surface,#fff)}.workspace-summary-grid article span{display:block;font-size:12px;color:var(--muted,#68736b);margin-bottom:6px}.workspace-summary-grid article strong{font-size:22px}.workspace-summary-grid article small{display:block;color:var(--muted,#68736b);margin-top:5px}.cost-breakdown-sections{display:grid;gap:22px;margin-top:22px}.cost-breakdown-sections h3{margin:0 0 10px;font-size:16px}.batch-cost-detail{scroll-margin-top:100px}@media(max-width:1200px){.costing-summary-grid{grid-template-columns:repeat(3,minmax(160px,1fr))}}@media(max-width:760px){.costing-summary-grid,.workspace-summary-grid{grid-template-columns:1fr 1fr}}

/* v110 batch cost history comparison + graphs */
.latest-cost-comparison{display:grid;grid-template-columns:repeat(4,minmax(150px,1fr));gap:10px;margin-top:14px;padding-top:14px;border-top:1px solid var(--border,#e3e8e4)}
.latest-cost-comparison>div{padding:11px 12px;border:1px solid var(--border,#e3e8e4);border-radius:12px;background:#fafcfa}.latest-cost-comparison span{display:block;font-size:11px;color:var(--muted,#68736b);margin-bottom:5px}.latest-cost-comparison strong{font-size:15px}
.cost-delta{display:inline-flex!important;align-items:center;gap:4px;width:max-content;padding:5px 8px;border-radius:999px;font-size:11px!important;font-weight:800;margin:0!important}.cost-delta.good{color:#0c7440!important;background:#e9f7ef}.cost-delta.bad{color:#a33832!important;background:#fff0ef}.cost-delta.neutral{color:#66736b!important;background:#f0f3f1}
.cost-chart-scroll{overflow-x:auto;overflow-y:hidden}.cost-trend-chart{display:block;max-width:none;min-width:100%}.cost-chart-grid{stroke:#e5ebe7;stroke-width:1}.cost-chart-axis,.cost-chart-x{fill:#6d776f;font-size:10px}.cost-chart-x{font-size:9px}.cost-chart-value{fill:#26362d;font-size:10px;font-weight:800}.cost-trend-path{stroke:#19884c;stroke-width:3;stroke-linejoin:round;stroke-linecap:round}.cost-trend-point{fill:#19884c;stroke:#fff;stroke-width:2}
.cost-breakdown-chart{display:grid;gap:10px;margin-top:10px}.cost-breakdown-legend{display:flex;gap:14px;flex-wrap:wrap;font-size:11px;color:var(--muted,#68736b)}.cost-breakdown-legend span{display:inline-flex;align-items:center;gap:6px}.cost-breakdown-legend span:before{content:"";width:10px;height:10px;border-radius:3px}.cost-breakdown-legend .ingredient:before,.cost-breakdown-stack .ingredient{background:#258851}.cost-breakdown-legend .packaging:before,.cost-breakdown-stack .packaging{background:#82b797}.cost-breakdown-legend .labor:before,.cost-breakdown-stack .labor{background:#b6c6bc}
.cost-breakdown-row{display:grid;grid-template-columns:minmax(160px,240px) minmax(300px,1fr);gap:12px;align-items:center}.cost-breakdown-label{display:flex;align-items:baseline;justify-content:space-between;gap:8px}.cost-breakdown-label strong{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cost-breakdown-label small{color:var(--muted,#68736b);white-space:nowrap}.cost-breakdown-track{height:20px;border-radius:7px;background:#eff3f0;overflow:hidden}.cost-breakdown-stack{display:flex;height:100%;min-width:2px;border-radius:inherit;overflow:hidden}.cost-breakdown-stack span{display:block;height:100%}
@media(max-width:900px){.latest-cost-comparison{grid-template-columns:1fr 1fr}.cost-breakdown-row{grid-template-columns:1fr}.cost-breakdown-label{justify-content:flex-start}.cost-breakdown-track{width:100%}}@media(max-width:560px){.latest-cost-comparison{grid-template-columns:1fr}}

/* v132 explicit work roles */
.workflow-role-grid{margin-bottom:10px}.workflow-role-card{min-height:92px}.workflow-role-note{margin:0 0 18px;padding:10px 12px;border:1px solid #dbe7df;border-radius:10px;background:#f6faf7;color:#5e6b63;font-size:11px;line-height:1.45}.workflow-role-note strong{color:#263a2e}.workflow-role-badges{display:flex;gap:4px;flex-wrap:wrap;margin-top:6px}.workflow-role-badges span{display:inline-flex;align-items:center;padding:3px 7px;border-radius:999px;background:#e9f6ee;color:#0e713c;font-size:9px;font-weight:750;line-height:1.2}

/* v134 invoice stock/material preflight */
.invoice-procurement-preflight{margin-top:12px}
.invoice-preflight-loading,.invoice-preflight-ok,.invoice-preflight-warning{display:flex;align-items:center;gap:12px;border:1px solid var(--border,#dfe7e2);border-radius:14px;padding:12px 14px;background:#fff}
.invoice-preflight-loading{color:#617068}
.invoice-preflight-ok{background:#f4fbf6;border-color:#cfe8d7;color:#1a6b3d}
.invoice-preflight-warning{background:#fff9ed;border-color:#f1d7a6;color:#744e07}
.invoice-preflight-ok>div,.invoice-preflight-warning>div{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;background:rgba(23,128,73,.09);flex:0 0 auto}
.invoice-preflight-warning>div{background:rgba(190,120,10,.10)}
.invoice-preflight-ok>span,.invoice-preflight-warning>span{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}
.invoice-preflight-ok small,.invoice-preflight-warning small{font-size:12px;color:#65726b}
.invoice-shortage-modal{display:grid;gap:18px;margin-top:16px}
.invoice-shortage-modal section{display:grid;gap:8px}
.invoice-shortage-modal section>h3{margin:0;font-size:15px}
.invoice-shortage-modal section>p{margin:0;color:#66716b;font-size:13px}
.invoice-shortage-list{display:grid;gap:8px}
.invoice-shortage-list article{display:grid;grid-template-columns:minmax(180px,1fr) minmax(280px,1.4fr);gap:12px;align-items:center;border:1px solid #e4e9e6;border-radius:12px;padding:11px 12px;background:#fff}
.invoice-shortage-list article.short{border-color:#efd4aa;background:#fffdf8}
.invoice-shortage-list article>div:first-child{display:flex;flex-direction:column;gap:2px}
.invoice-shortage-list article>div:first-child span,.invoice-shortage-list article>small{font-size:12px;color:#6c766f}
.invoice-shortage-list article>small{grid-column:1/-1}
.invoice-shortage-numbers{display:flex;flex-wrap:wrap;gap:7px;justify-content:flex-end}
.invoice-shortage-numbers span{background:#f4f7f5;border-radius:999px;padding:5px 8px;font-size:12px;white-space:nowrap}
.invoice-shortage-numbers b{font-weight:750}
@media(max-width:760px){.invoice-shortage-list article{grid-template-columns:1fr}.invoice-shortage-numbers{justify-content:flex-start}}

/* v135 Customer performance board + territory map */
.customer-dashboard-map{margin:14px 0}.customer-map-loading{padding:34px;text-align:center;color:var(--muted,#6b7280)}
.performance-filter-panel{margin-bottom:14px}.performance-filters{display:grid;grid-template-columns:minmax(220px,1fr) minmax(180px,.65fr) minmax(280px,1.5fr);gap:14px;align-items:end}.performance-filter-note{border:1px solid #dfe7e2;background:#f7faf8;border-radius:14px;padding:13px 16px;display:flex;flex-direction:column;gap:3px}.performance-filter-note span{font-size:12px;color:#66736b}
.customer-performance-page>.panel{margin-top:14px}.performance-category-panel .panel-body{padding-top:0}.customer-category-cards{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}.customer-category-card{border:1px solid #dce5df;border-top:4px solid #166f48;border-radius:14px;padding:14px;background:#fff;min-width:0}.customer-category-card>span{display:block;font-size:12px;font-weight:800;color:#47564e;text-transform:uppercase;letter-spacing:.04em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.customer-category-card>strong{display:block;font-size:25px;line-height:1.1;margin:7px 0;color:#102018}.customer-category-card>div{font-size:13px;font-weight:700;color:#1c6e4a}.customer-category-card>small{display:block;margin-top:4px;color:#69766f;line-height:1.35}
.trend-legend{display:flex;gap:14px;align-items:center;color:#657169;font-size:12px}.trend-legend span{display:flex;align-items:center;gap:6px}.trend-legend i{display:inline-block;width:20px;border-top:3px solid #16704a}.trend-legend i.forecast{border-top-style:dashed;border-color:#855bc7}.customer-trend-svg{width:100%;height:auto;min-height:260px;display:block}.trend-grid line{stroke:#e6ece8;stroke-width:1}.trend-grid text,.trend-labels text{font-size:11px;fill:#68746d}.trend-actual,.trend-forecast{fill:none;stroke:#16704a;stroke-width:4;stroke-linecap:round;stroke-linejoin:round}.trend-forecast{stroke:#855bc7;stroke-dasharray:10 8}
.customer-matrix-wrap{overflow:auto;border:1px solid #e1e8e4;border-radius:14px}.customer-performance-matrix{width:100%;border-collapse:separate;border-spacing:0;min-width:1050px}.customer-performance-matrix th,.customer-performance-matrix td{padding:11px 12px;border-right:1px solid #e2e8e4;border-bottom:1px solid #e2e8e4;vertical-align:top}.customer-performance-matrix thead th{position:sticky;top:0;z-index:2;background:#f4f7f5;color:#415048;font-size:12px;text-transform:uppercase;letter-spacing:.035em}.customer-performance-matrix tbody th{position:sticky;left:0;z-index:1;background:#fff;min-width:210px;text-align:left}.customer-performance-matrix tbody th strong,.customer-performance-matrix td b{display:block;color:#17241d}.customer-performance-matrix tbody th small,.customer-performance-matrix td small,.customer-performance-matrix td span{display:block;margin-top:3px;color:#657269;font-size:11px}.customer-performance-matrix td{min-width:150px}.customer-performance-matrix td.good{background:#e8f6ef}.customer-performance-matrix td.warn{background:#fff5df}.customer-performance-matrix td.risk{background:#fdecec}.customer-performance-matrix td.empty{background:#f8faf9;color:#9aa59f}.customer-performance-matrix .matrix-overall b{font-size:16px}
.customer-map-grid{display:grid;grid-template-columns:minmax(0,2.4fr) minmax(260px,.75fr);gap:16px}.customer-world-wrap{position:relative;min-width:0}.customer-world-svg{width:100%;height:auto;display:block}.map-ocean{fill:#eef5f1}.map-grid line{stroke:#d9e5de;stroke-width:1}.map-land path{fill:#c9ddd2;stroke:#abc8b8;stroke-width:1.3}.customer-map-pin{cursor:pointer;outline:none}.customer-map-pin>circle:first-child{fill:#13744a;opacity:.72;stroke:#fff;stroke-width:2}.customer-map-pin:hover>circle:first-child,.customer-map-pin:focus>circle:first-child{opacity:1;stroke:#0c4f33;stroke-width:3}.customer-map-pin .pin-core{fill:#fff;pointer-events:none}.map-legend{position:absolute;left:14px;bottom:14px;background:rgba(255,255,255,.94);border:1px solid #dbe5df;border-radius:12px;padding:9px 12px;display:flex;gap:10px;align-items:center;font-size:11px}.map-legend span{color:#6a756f}.customer-territory-rank{border:1px solid #e0e7e3;border-radius:16px;padding:14px;background:#fff}.panel-section-title strong{display:block;font-size:15px}.panel-section-title span{font-size:11px;color:#6d7972}.territory-rank-row{display:grid;grid-template-columns:26px 1fr auto;gap:9px;align-items:center;padding:10px 0;border-bottom:1px solid #edf1ef}.territory-rank-row:last-of-type{border-bottom:0}.territory-rank-number{width:24px;height:24px;border-radius:8px;background:#edf7f1;color:#16704a;display:grid;place-items:center;font-weight:800;font-size:11px}.territory-rank-row strong{display:block;font-size:12px}.territory-rank-row small{display:block;color:#6d7972;font-size:10px;margin-top:2px}.territory-rank-row>b{font-size:12px}.map-unmapped-note{margin-top:12px;border:1px solid #f0d6a5;background:#fff7e8;color:#7a5721;border-radius:12px;padding:10px;display:flex;gap:8px}.map-unmapped-note svg{width:18px;height:18px;flex:0 0 auto}.map-unmapped-note span{display:flex;flex-direction:column}.map-unmapped-note small{color:#8b7046}.customer-map-detail{margin-top:10px;border:1px solid #e1e8e4;border-radius:12px;padding:10px 13px;display:flex;gap:8px;align-items:center;flex-wrap:wrap}.customer-map-detail strong{font-size:13px}.customer-map-detail span,.customer-map-detail small{font-size:11px;color:#6b7770}
.customer-ranking td{white-space:nowrap}.customer-ranking td:first-child{white-space:normal;min-width:210px}.customer-territory-editor{border:1px solid #dfe7e2;background:#f8fbf9;border-radius:16px;padding:14px;margin-top:2px}.territory-fields{margin-top:12px}.empty-inline{padding:22px;text-align:center;color:#6c7771}.customer-dashboard-map .panel-body{padding-top:8px}
@media(max-width:1150px){.customer-category-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.customer-map-grid{grid-template-columns:1fr}.performance-filters{grid-template-columns:1fr 1fr}.performance-filter-note{grid-column:1/-1}}
@media(max-width:720px){.customer-category-cards,.performance-filters{grid-template-columns:1fr}.map-legend{position:static;margin-top:8px}.customer-performance-matrix{min-width:900px}}


/* v137 Leaflet + OpenStreetMap customer territory map */
.customer-osm-map{width:100%;height:500px;min-height:360px;border:1px solid #dbe5df;border-radius:18px;overflow:hidden;background:#eef5f1;z-index:1}
.customer-dashboard-map .customer-osm-map{height:430px}
.customer-osm-map .leaflet-control-attribution{font-size:10px;background:rgba(255,255,255,.9)}
.customer-osm-map .leaflet-popup-content-wrapper{border-radius:14px;box-shadow:0 12px 30px rgba(18,54,37,.18)}
.customer-osm-popup{display:flex;flex-direction:column;gap:4px;min-width:190px;color:#1a2a21}.customer-osm-popup strong{font-size:14px}.customer-osm-popup span,.customer-osm-popup small{font-size:11px;color:#66736c}.customer-osm-popup b{font-size:18px;color:#126d47}.customer-osm-popup a{margin-top:4px;color:#126d47;font-size:11px;font-weight:800;text-decoration:none}.customer-osm-popup a:hover{text-decoration:underline}
.customer-map-error,.customer-map-preview-empty{height:100%;min-height:220px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;padding:24px;text-align:center;color:#6c7771;background:#f7faf8}.customer-map-error strong{color:#25372e}
.customer-location-preview{grid-column:1/-1;height:260px;margin-top:4px;border-radius:16px;overflow:hidden;border:1px solid #dfe7e2;background:#eef5f1}.customer-location-preview .leaflet-container{height:100%;width:100%}
.customer-location-preview .customer-map-preview-empty{min-height:258px}
@media(max-width:720px){.customer-osm-map,.customer-dashboard-map .customer-osm-map{height:380px;min-height:320px}.customer-location-preview{height:230px}}

/* v139 Distributor network + colored hex territory map */
.customer-network-toolbar{display:grid;grid-template-columns:minmax(220px,320px) minmax(320px,1fr);gap:14px;align-items:end;margin-bottom:12px}.network-map-rule{border:1px solid #dfe7e2;background:#f7faf8;border-radius:14px;padding:11px 14px;display:flex;flex-direction:column;gap:2px}.network-map-rule strong{font-size:12px}.network-map-rule span{font-size:11px;color:#66736b;line-height:1.4}
.customer-distributor-map{background:#0b1220}.distributor-leaflet-icon,.distribution-location-leaflet-icon,.network-hex-label{background:transparent!important;border:0!important}.distributor-hex-pin{width:34px;height:38px;clip-path:polygon(25% 4%,75% 4%,100% 50%,75% 96%,25% 96%,0 50%);background:var(--network-color);display:grid;place-items:center;color:#fff;border:0;filter:drop-shadow(0 4px 6px rgba(15,23,42,.35));position:relative}.distributor-hex-pin:after{content:"";position:absolute;inset:4px;clip-path:inherit;border:2px solid rgba(255,255,255,.72)}.distributor-hex-pin span{font-size:12px;font-weight:900;z-index:2}
.distribution-location-pin{width:24px;height:24px;border-radius:50%;background:var(--network-color);border:3px solid #fff;box-shadow:0 3px 8px rgba(15,23,42,.28);display:grid;place-items:center;color:#fff;font-size:8px;font-weight:900}.distribution-location-pin.zip{clip-path:polygon(25% 4%,75% 4%,100% 50%,75% 96%,25% 96%,0 50%);border-radius:0;border:0;outline:2px solid rgba(255,255,255,.95);outline-offset:-3px}.network-hex-label>div{width:64px;height:40px;border:2px solid var(--network-color);background:rgba(255,255,255,.94);border-radius:12px;display:flex;flex-direction:column;align-items:center;justify-content:center;box-shadow:0 5px 15px rgba(15,23,42,.18);color:#17241d}.network-hex-label strong{font-size:14px;line-height:1}.network-hex-label span{font-size:8px;text-transform:uppercase;letter-spacing:.05em;margin-top:2px}
.distributor-network-panel .territory-mini-heading{font-size:10px;font-weight:850;text-transform:uppercase;letter-spacing:.08em;color:#7b877f;margin:16px 0 5px}.distributor-network-list{display:grid;gap:7px;margin-top:10px}.distributor-network-row{display:grid;grid-template-columns:18px minmax(0,1fr) auto;gap:9px;align-items:center;padding:8px 0;border-bottom:1px solid #edf1ef}.distributor-network-row i{width:15px;height:15px;clip-path:polygon(25% 4%,75% 4%,100% 50%,75% 96%,25% 96%,0 50%);background:var(--network-color);display:block}.distributor-network-row strong{display:block;font-size:11px}.distributor-network-row small{display:block;color:#6d7972;font-size:9.5px;margin-top:2px}.distributor-network-row>b{font-size:11px;white-space:nowrap}
.customer-distributor-editor{border:1px solid #dce6e0;background:#f8fbf9;border-radius:16px;padding:14px;margin-top:2px}.customer-distributor-editor[hidden]{display:none!important}.distributor-network-chip{font-size:10px;font-weight:800;color:#176b47;background:#e8f6ee;border-radius:999px;padding:5px 9px}.distributor-profile-grid{display:grid;grid-template-columns:minmax(180px,.7fr) minmax(150px,.5fr) minmax(160px,.6fr);gap:12px;margin-top:12px}.distributor-color-input{display:flex;align-items:center;gap:10px;border:1px solid #d8e3dc;background:#fff;border-radius:10px;padding:5px 9px;height:42px}.distributor-color-input input{width:42px;height:28px;border:0;padding:0;background:none;cursor:pointer}.distributor-color-input span{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:11px;font-weight:800}.distributor-network-note{margin:10px 0 14px;border:1px solid #d9e6df;background:#fff;border-radius:11px;padding:9px 11px;display:flex;gap:8px;align-items:baseline}.distributor-network-note strong{font-size:11px;white-space:nowrap}.distributor-network-note span{font-size:10px;color:#66736b;line-height:1.4}
.distributor-network-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}.distributor-network-toolbar>div{display:flex;flex-direction:column}.distributor-network-toolbar strong{font-size:12px}.distributor-network-toolbar span{font-size:10px;color:#6b7770}.distributor-location-list{display:grid;gap:7px}.distributor-location-row{display:grid;grid-template-columns:18px minmax(0,1fr) auto;gap:9px;align-items:center;border:1px solid #e0e8e3;background:#fff;border-radius:11px;padding:9px 10px}.distributor-location-marker{width:13px;height:13px;border-radius:50%;background:#1b7a50}.distributor-location-row strong{display:block;font-size:11px}.distributor-location-row span,.distributor-location-row small{display:block;font-size:9.5px;color:#6d7972;margin-top:2px}.distributor-location-row small{color:#178054}.distributor-location-actions{display:flex;gap:5px}.distributor-location-form{margin-top:12px;padding:12px;border:1px dashed #bfcfc5;border-radius:13px;background:#fff}.distributor-location-form[hidden]{display:none!important}.distributor-location-form-actions{display:flex;justify-content:flex-end;margin-top:10px}.distributor-popup b{font-size:14px}.network-map-legend{max-width:calc(100% - 30px)}
@media(max-width:900px){.customer-network-toolbar,.distributor-profile-grid{grid-template-columns:1fr}.distributor-network-note{flex-direction:column}.customer-network-toolbar{align-items:stretch}}


/* v140 Neon distributor network map */
.customer-distributor-map{background:#071019}
.customer-distributor-map .leaflet-tile-pane{filter:saturate(.82) brightness(.9) contrast(1.04)}
.distributor-hex-pin{
  isolation:isolate;
  filter:drop-shadow(0 0 3px var(--network-color)) drop-shadow(0 0 8px var(--network-color)) drop-shadow(0 0 17px var(--network-color));
  animation:network-neon-breathe 2.8s ease-in-out infinite;
}
.distributor-hex-pin:before{
  content:"";position:absolute;inset:-8px;clip-path:inherit;background:var(--network-color);opacity:.27;filter:blur(8px);z-index:-1;pointer-events:none
}
.distributor-hex-pin:after{box-shadow:inset 0 0 5px rgba(255,255,255,.86),0 0 5px rgba(255,255,255,.42)}
.distribution-location-pin{
  position:relative;isolation:isolate;
  box-shadow:0 0 3px #fff,0 0 8px var(--network-color),0 0 15px var(--network-color),0 0 26px color-mix(in srgb,var(--network-color) 58%,transparent);
  animation:network-neon-breathe 3.2s ease-in-out infinite;
}
.distribution-location-pin:before{
  content:"";position:absolute;inset:-7px;border-radius:inherit;background:var(--network-color);opacity:.18;filter:blur(7px);z-index:-1;pointer-events:none
}
.distribution-location-pin.zip:before{clip-path:inherit;border-radius:0}
.network-hex-label>div{
  border-color:var(--network-color);
  box-shadow:0 0 4px var(--network-color),0 0 11px color-mix(in srgb,var(--network-color) 72%,transparent),0 0 24px color-mix(in srgb,var(--network-color) 38%,transparent),0 6px 18px rgba(15,23,42,.18)
}
.network-hex-label strong{color:var(--network-color);text-shadow:0 0 8px color-mix(in srgb,var(--network-color) 62%,transparent)}
.distributor-network-row i{
  filter:drop-shadow(0 0 3px var(--network-color)) drop-shadow(0 0 8px var(--network-color));
  animation:network-neon-breathe 3s ease-in-out infinite
}
.distributor-location-marker{box-shadow:0 0 4px #1b7a50,0 0 10px rgba(27,122,80,.52)}
.neon-map-rule{background:linear-gradient(135deg,#f7faf8 0%,#f4fbff 100%);position:relative;overflow:hidden}
.neon-map-rule:after{content:"";position:absolute;inset:auto 14px 0 14px;height:2px;background:linear-gradient(90deg,#00d4ff,#7c3aed,#ff2bd6,#39ff88);opacity:.62;filter:blur(.2px)}
.customer-distributor-map .leaflet-tooltip{background:rgba(8,17,27,.94);color:#f8fafc;border:1px solid rgba(255,255,255,.16);box-shadow:0 0 14px rgba(56,189,248,.18)}
.customer-distributor-map .leaflet-tooltip:before{border-top-color:rgba(8,17,27,.94)}
@keyframes network-neon-breathe{0%,100%{filter:drop-shadow(0 0 3px var(--network-color)) drop-shadow(0 0 8px var(--network-color))}50%{filter:drop-shadow(0 0 4px var(--network-color)) drop-shadow(0 0 11px var(--network-color)) drop-shadow(0 0 20px var(--network-color))}}
@media(prefers-reduced-motion:reduce){.distributor-hex-pin,.distribution-location-pin,.distributor-network-row i{animation:none}}

/* v141 BigCommerce SKU sync board */
.bigcommerce-sync-page .page-header{align-items:flex-start}.bc-kpi-grid{margin:14px 0}.bc-connection-banner{display:grid;grid-template-columns:40px minmax(0,1fr) auto;gap:12px;align-items:center;border:1px solid #d9e6df;background:#f8fbf9;border-radius:16px;padding:13px 15px}.bc-connection-banner.warning{border-color:#efd4a7;background:#fff9ed}.bc-connection-icon{width:34px;height:34px;border-radius:11px;display:grid;place-items:center;background:#e4f6eb;color:#14734a}.bc-connection-banner.warning .bc-connection-icon{background:#fff0cf;color:#9a651c}.bc-connection-icon svg{width:18px;height:18px}.bc-connection-banner>div:nth-child(2){display:flex;flex-direction:column;gap:2px}.bc-connection-banner strong{font-size:13px}.bc-connection-banner span,.bc-connection-banner small{font-size:11px;color:#657269}.bc-connection-banner code{background:#eef2ef;padding:2px 5px;border-radius:5px}.bc-connection-last{text-align:right;display:flex;flex-direction:column}.bc-connection-last strong{text-transform:capitalize}.bc-sync-panel{margin-top:14px}.bc-panel-actions{display:flex;gap:8px}.bc-sync-toolbar{display:grid;grid-template-columns:minmax(260px,1.5fr) minmax(160px,.55fr) minmax(190px,.65fr);gap:12px;align-items:end}.bc-sync-toolbar .search-input{position:relative}.bc-sync-toolbar .search-input>svg{position:absolute;left:11px;top:50%;transform:translateY(-50%);width:16px;height:16px;color:#77837c}.bc-sync-toolbar .search-input input{padding-left:36px}.bc-match-summary{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.bc-match-summary span{border:1px solid #e0e8e3;background:#f8faf9;border-radius:999px;padding:6px 9px;font-size:10px;color:#657269}.bc-match-summary strong{color:#17241d}.bc-sync-table-wrap{border:1px solid #e0e7e3;border-radius:14px;overflow:auto}.bc-sync-table{min-width:1280px}.bc-check-col{width:42px;text-align:center}.bc-product-cell{display:flex;align-items:center;gap:10px;min-width:260px}.bc-product-cell img,.bc-product-placeholder{width:46px;height:46px;border-radius:10px;object-fit:cover;border:1px solid #dfe7e2;background:#f4f8f5;flex:0 0 46px}.bc-product-placeholder{display:grid;place-items:center;color:#718078}.bc-product-placeholder svg{width:20px}.bc-product-cell strong,.bc-product-cell span{display:block}.bc-product-cell span{font-size:10px;color:#68756e;margin-top:3px}.bc-sku{font-size:11px;font-weight:800;white-space:nowrap;background:#f0f4f2;border-radius:7px;padding:5px 7px}.bc-match-pill{display:inline-flex;border-radius:999px;padding:5px 8px;font-size:9.5px;font-weight:850;white-space:nowrap;background:#eaf3ff;color:#245a9b}.bc-match-pill.pack{background:#eee9ff;color:#6146aa}.bc-difference{font-weight:850;border-radius:8px;padding:5px 8px;display:inline-flex;min-width:48px;justify-content:center}.bc-difference.same{background:#e9f6ef;color:#14734a}.bc-difference.up{background:#e8f2ff;color:#245a9b}.bc-difference.down{background:#fff0ef;color:#b33c32}.bc-sync-status{display:inline-flex;border-radius:999px;padding:5px 8px;font-size:9.5px;font-weight:850;white-space:nowrap}.bc-sync-status.good{background:#e7f5ed;color:#14734a}.bc-sync-status.ready{background:#e9f2ff;color:#245a9b}.bc-sync-status.blocked{background:#fff2dc;color:#9a651c}.bc-block-reason{max-width:210px;margin-top:5px!important;white-space:normal!important}.bc-sync-table td{vertical-align:middle}.bc-sync-table input[type=checkbox]{width:16px;height:16px;accent-color:#16704a}
@media(max-width:900px){.bc-sync-toolbar{grid-template-columns:1fr}.bc-connection-banner{grid-template-columns:40px 1fr}.bc-connection-last{grid-column:2;text-align:left}}


/* v144 - BigCommerce sync -> ERP Packaging deep-link */
.bc-erp-inventory-link {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 8px 10px;
  margin: -8px -10px;
  min-width: 138px;
  border-radius: 12px;
  text-align: left;
  color: inherit;
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  transition: background .16s ease, box-shadow .16s ease, transform .16s ease;
}
.bc-erp-inventory-link strong { font-size: 1.05rem; color: var(--text, #17211b); }
.bc-erp-inventory-link span { color: var(--muted, #6b766f); font-size: .88rem; }
.bc-erp-inventory-link small {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 3px;
  color: #16834a;
  font-weight: 700;
  font-size: .72rem;
  opacity: 0;
  transform: translateY(2px);
  transition: opacity .16s ease, transform .16s ease;
}
.bc-erp-inventory-link small svg { width: 13px; height: 13px; }
.bc-erp-inventory-link:hover,
.bc-erp-inventory-link:focus-visible {
  background: #edf8f1;
  box-shadow: 0 0 0 2px rgba(25,135,84,.13), 0 8px 24px rgba(25,135,84,.08);
  outline: none;
  transform: translateY(-1px);
}
.bc-erp-inventory-link:hover small,
.bc-erp-inventory-link:focus-visible small { opacity: 1; transform: translateY(0); }
.pack-size-table tr.pack-sync-focus-row > td {
  background: #effbf4 !important;
  border-top: 1px solid rgba(25,135,84,.35);
  border-bottom: 1px solid rgba(25,135,84,.35);
}
.pack-size-table tr.pack-sync-focus-row > td:first-child {
  box-shadow: inset 4px 0 0 #16834a, -8px 0 24px rgba(22,131,74,.12);
}
.pack-sync-focus-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 3px 7px;
  border-radius: 999px;
  background: #dff5e8;
  color: #126b3d;
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .035em;
  text-transform: uppercase;
  vertical-align: middle;
}

/* v145 BigCommerce automatic bidirectional inventory bridge */
.bc-auto-sync-card{margin-top:12px;border:1px solid #dfe7e2;border-radius:16px;padding:14px 16px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:18px;align-items:center;background:#fbfcfb}.bc-auto-sync-card.enabled{border-color:#bfe5cd;background:linear-gradient(135deg,#f6fff9,#f9fcfa)}.bc-auto-sync-copy{min-width:0}.bc-auto-sync-copy>strong{display:block;font-size:14px;margin:4px 0;color:#18251e}.bc-auto-sync-copy p{margin:0;color:#5f6d65;font-size:11px;line-height:1.5;max-width:900px}.bc-auto-sync-status{display:inline-flex;align-items:center;gap:7px;font-size:9.5px;font-weight:900;letter-spacing:.08em;color:#6c7771}.bc-auto-sync-status i{width:8px;height:8px;border-radius:50%;background:#9aa59f;box-shadow:0 0 0 3px rgba(154,165,159,.12)}.bc-auto-sync-card.enabled .bc-auto-sync-status{color:#14734a}.bc-auto-sync-card.enabled .bc-auto-sync-status i{background:#21b66f;box-shadow:0 0 0 3px rgba(33,182,111,.12),0 0 10px rgba(33,182,111,.45)}.bc-auto-sync-meta{display:flex;gap:12px;flex-wrap:wrap;margin-top:8px}.bc-auto-sync-meta span{font-size:10px;color:#748078}.bc-auto-sync-meta b{color:#26352d}.bc-auto-sync-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.bc-auto-sync-error{margin-top:8px;border-radius:8px;background:#fff0ef;color:#a63a32;padding:7px 9px;font-size:10px;max-width:900px}@media(max-width:900px){.bc-auto-sync-card{grid-template-columns:1fr}.bc-auto-sync-actions{justify-content:flex-start}}

/* v148 physical pack / lot receiving */

/* v149 NVIDIA Nemotron Work AI */
.ai-work-page{min-height:calc(100vh - 76px)}
.ai-status-strip{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 15px;border:1px solid #dfe7e2;border-radius:14px;background:#fbfdfb;margin-bottom:14px}
.ai-status-strip>div{display:grid;grid-template-columns:auto 1fr;column-gap:9px;align-items:center}.ai-status-strip strong{font-size:13px;color:#17261d}.ai-status-strip small{grid-column:2;font-size:10.5px;color:#6b776f}.ai-status-dot{width:9px;height:9px;border-radius:50%;background:#99a49e;grid-row:1/3}.ai-status-strip.ready{border-color:#bfe5cd;background:#f7fff9}.ai-status-strip.ready .ai-status-dot{background:#1eb66b;box-shadow:0 0 0 4px rgba(30,182,107,.1),0 0 12px rgba(30,182,107,.35)}.ai-status-strip.missing{border-color:#f2d3b2;background:#fffaf4}.ai-status-strip.missing .ai-status-dot{background:#d68a31}
.ai-work-layout{display:grid;grid-template-columns:280px minmax(0,1fr);gap:14px;min-height:650px;height:calc(100vh - 245px)}
.ai-thread-panel,.ai-chat-panel{overflow:hidden;min-height:0}.ai-thread-panel{display:flex;flex-direction:column}.ai-thread-head{padding:16px;border-bottom:1px solid #e7ece9;display:flex;flex-direction:column;gap:3px}.ai-thread-head strong{font-size:14px}.ai-thread-head small{font-size:10px;color:#748078}.ai-thread-list{overflow:auto;padding:8px;display:flex;flex-direction:column;gap:5px}.ai-thread-row{display:grid;grid-template-columns:minmax(0,1fr) 30px;border-radius:10px;border:1px solid transparent}.ai-thread-row:hover{background:#f7faf8}.ai-thread-row.active{background:#eef8f1;border-color:#cfe6d7}.ai-thread-row>button:first-child{appearance:none;border:0;background:transparent;text-align:left;padding:10px;cursor:pointer;min-width:0}.ai-thread-row strong,.ai-thread-row small,.ai-thread-row time{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ai-thread-row strong{font-size:12px;color:#1b2a21}.ai-thread-row small{font-size:10px;color:#6f7c74;margin-top:3px}.ai-thread-row time{font-size:9px;color:#96a19b;margin-top:5px}.ai-thread-archive{appearance:none;border:0;background:transparent;color:#9aa59f;cursor:pointer;font-size:19px;border-radius:8px}.ai-thread-archive:hover{background:#fff1ef;color:#c43e34}
.ai-chat-panel{display:grid;grid-template-rows:auto minmax(0,1fr) auto}.ai-chat-head{padding:14px 16px;border-bottom:1px solid #e7ece9;display:flex;justify-content:space-between;align-items:center;gap:10px}.ai-chat-head>div{display:flex;flex-direction:column;gap:3px}.ai-chat-head strong{font-size:14px}.ai-chat-head small{font-size:10px;color:#718078}.ai-message-list{overflow:auto;padding:20px;background:linear-gradient(180deg,#fbfdfb 0%,#fff 38%);scroll-behavior:smooth}.ai-message{display:flex;gap:10px;align-items:flex-start;margin:0 auto 16px;max-width:880px}.ai-message.user{flex-direction:row-reverse}.ai-avatar{width:30px;height:30px;border-radius:9px;background:#e8f4ec;color:#146f46;display:grid;place-items:center;font-weight:800;font-size:10px;flex:0 0 auto}.ai-message.user .ai-avatar{background:#1c7b4d;color:#fff}.ai-bubble{max-width:min(78%,760px);background:#f4f7f5;border:1px solid #e1e8e4;border-radius:15px;padding:11px 13px;line-height:1.55;font-size:12.5px;color:#243129;overflow-wrap:anywhere}.ai-message.user .ai-bubble{background:#167347;color:#fff;border-color:#167347}.ai-bubble small{display:block;margin-top:7px;font-size:8.5px;opacity:.58}.ai-composer{padding:12px;border-top:1px solid #e7ece9;background:#fff}.ai-composer textarea{resize:none;min-height:72px;max-height:160px}.ai-composer-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:8px}.ai-composer-foot>span{font-size:9.5px;color:#7b877f}.ai-composer-foot .button,.ai-composer-foot .btn{min-width:90px}.ai-empty{height:100%;min-height:360px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:28px}.ai-empty-icon{width:54px;height:54px;border-radius:18px;background:#e8f7ed;color:#147448;display:grid;place-items:center;font-weight:900;letter-spacing:.05em;box-shadow:0 10px 30px rgba(24,112,71,.1)}.ai-empty h2{margin:13px 0 5px;font-size:20px}.ai-empty p{margin:0;color:#68766e;font-size:11px;max-width:520px;line-height:1.5}.ai-starter-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:18px;width:min(620px,100%)}.ai-starter-grid button{appearance:none;border:1px solid #dce7e0;background:#fff;border-radius:11px;padding:10px 12px;text-align:left;color:#294033;font-size:11px;cursor:pointer}.ai-starter-grid button:hover{border-color:#93c9a7;background:#f5fbf7}.empty-state.compact{padding:22px 12px;text-align:center}.employee-ai-layout{height:calc(100vh - 300px);min-height:560px}
@media(max-width:900px){.ai-work-layout,.employee-ai-layout{grid-template-columns:1fr;height:auto;min-height:0}.ai-thread-panel{max-height:200px}.ai-chat-panel{min-height:620px}.ai-starter-grid{grid-template-columns:1fr}.ai-bubble{max-width:88%}.ai-status-strip{align-items:flex-start;flex-direction:column}.ai-composer-foot{align-items:flex-end}.ai-composer-foot>span{max-width:65%}}

/* v150 multimodal Work AI */
.ai-composer-multimodal{display:block}.ai-selected-images{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:8px}.ai-selected-image{display:flex;align-items:center;gap:7px;border:1px solid #dfe7e2;background:#f8fbf9;border-radius:10px;padding:5px 7px;max-width:220px}.ai-selected-image img{width:42px;height:42px;object-fit:cover;border-radius:7px;border:1px solid #d7e2db}.ai-selected-image span{font-size:9.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:125px}.ai-selected-image button{border:0;background:transparent;color:#8b4747;font-size:17px;line-height:1;cursor:pointer;padding:2px}.ai-composer-tools{display:flex;align-items:center;gap:8px;min-width:0;flex-wrap:wrap}.ai-composer-tools span{font-size:9.5px;color:#7b877f}.ai-message-images{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-bottom:8px}.ai-message-image{display:block;text-decoration:none;color:inherit;border-radius:10px;overflow:hidden;border:1px solid rgba(0,0,0,.09);background:rgba(255,255,255,.7)}.ai-message-image img{display:block;width:100%;height:150px;object-fit:cover;background:#edf1ee}.ai-message-image span{display:block;font-size:8.5px;padding:5px 7px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#526159}.ai-message.user .ai-message-image{border-color:rgba(255,255,255,.25);background:rgba(255,255,255,.12)}.ai-message.user .ai-message-image span{color:#fff}.ai-message-images:has(.ai-message-image:only-child){grid-template-columns:minmax(0,320px)}
@media(max-width:700px){.ai-message-images{grid-template-columns:1fr}.ai-message-image img{height:180px}.ai-composer-foot{flex-direction:column;align-items:stretch}.ai-composer-tools{justify-content:space-between}.ai-composer-foot .button,.ai-composer-foot .btn{width:100%}}

/* v151 — persistent bottom-right Work AI + murmuration thinking state */
.ai-thinking-message{animation:aiThinkingIn .22s ease-out both}.ai-thinking-avatar{box-shadow:0 0 0 3px rgba(35,185,105,.08),0 0 18px rgba(35,185,105,.13)}.ai-thinking-bubble{width:min(330px,76vw);padding:10px!important;background:linear-gradient(145deg,#f4fbf7,#fbfdfc)!important;border-color:#cfe8d8!important;color:#203127!important}.ai-murmuration-shell{position:relative;height:78px;overflow:hidden;border-radius:12px;background:radial-gradient(circle at 55% 48%,rgba(32,197,111,.12),transparent 30%),linear-gradient(145deg,#0d241a,#123325 58%,#0c2218);border:1px solid rgba(79,224,147,.15);box-shadow:inset 0 0 28px rgba(38,217,128,.05)}.ai-murmuration-canvas{display:block;width:100%;height:100%;cursor:crosshair}.ai-murmuration-core{position:absolute;left:50%;top:50%;width:5px;height:5px;border-radius:50%;transform:translate(-50%,-50%);background:#79f1ad;box-shadow:0 0 12px #57df95,0 0 32px rgba(67,222,143,.65);animation:aiMurmurationCore 2s ease-in-out infinite;pointer-events:none}.ai-thinking-copy{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 3px 1px}.ai-thinking-copy strong{font-size:10px;color:#24583b;letter-spacing:.03em}.ai-thinking-copy span{font-size:9.5px;color:#728078;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ai-thinking-message .ai-bubble small{display:none}@keyframes aiThinkingIn{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}@keyframes aiMurmurationCore{0%,100%{opacity:.4;transform:translate(-50%,-50%) scale(.8)}50%{opacity:1;transform:translate(-50%,-50%) scale(1.25)}}

.ai-float-root{position:fixed;right:22px;bottom:22px;z-index:1700;display:flex;flex-direction:column;align-items:flex-end;gap:12px;pointer-events:none;font-family:inherit}.ai-float-root>*{pointer-events:auto}.ai-float-launcher{position:relative;display:flex;align-items:center;gap:10px;min-height:58px;border:1px solid rgba(37,140,85,.22);border-radius:19px;padding:8px 15px 8px 9px;background:rgba(251,255,252,.92);color:#173124;box-shadow:0 16px 45px rgba(19,67,42,.17),0 2px 9px rgba(19,67,42,.08),inset 0 1px 0 rgba(255,255,255,.82);backdrop-filter:blur(18px) saturate(140%);-webkit-backdrop-filter:blur(18px) saturate(140%);cursor:pointer;transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease}.ai-float-launcher:hover{transform:translateY(-2px);border-color:rgba(31,166,93,.38);box-shadow:0 20px 52px rgba(19,67,42,.22),0 0 0 5px rgba(37,187,105,.06)}.ai-float-launcher-mark,.ai-float-brand-mark{display:grid;place-items:center;width:40px;height:40px;border-radius:14px;background:linear-gradient(145deg,#0d5f38,#16a35e);color:#fff;font-size:11px;font-weight:900;letter-spacing:.06em;box-shadow:0 8px 20px rgba(18,127,72,.28),0 0 20px rgba(36,211,117,.18);position:relative;z-index:2}.ai-float-launcher-orbit{position:absolute;left:8px;top:8px;width:40px;height:40px;border-radius:14px;box-shadow:0 0 0 0 rgba(35,203,112,.24);animation:aiFloatPulse 2.8s ease-out infinite}.ai-float-launcher-copy{display:flex;flex-direction:column;text-align:left;gap:1px}.ai-float-launcher-copy strong{font-size:12px}.ai-float-launcher-copy small{font-size:9px;color:#6d7c73}.ai-float-root.thinking .ai-float-launcher-mark{animation:aiFloatThinking 1.45s ease-in-out infinite alternate}.ai-float-root.thinking .ai-float-launcher-orbit{animation-duration:1.3s}
@keyframes aiFloatPulse{0%{box-shadow:0 0 0 0 rgba(35,203,112,.24)}70%{box-shadow:0 0 0 10px rgba(35,203,112,0)}100%{box-shadow:0 0 0 0 rgba(35,203,112,0)}}@keyframes aiFloatThinking{from{box-shadow:0 8px 20px rgba(18,127,72,.28),0 0 16px rgba(36,211,117,.2)}to{box-shadow:0 8px 28px rgba(18,127,72,.36),0 0 34px rgba(64,239,145,.5)}}

.ai-float-panel{width:min(430px,calc(100vw - 32px));height:min(680px,calc(100vh - 112px));display:grid;grid-template-rows:auto minmax(0,1fr) auto auto auto;overflow:hidden;border:1px solid rgba(31,116,71,.18);border-radius:24px;background:rgba(250,253,251,.965);box-shadow:0 28px 80px rgba(10,48,29,.24),0 8px 24px rgba(10,48,29,.09),inset 0 1px 0 rgba(255,255,255,.9);backdrop-filter:blur(24px) saturate(145%);-webkit-backdrop-filter:blur(24px) saturate(145%);transform-origin:bottom right;animation:aiFloatOpen .2s cubic-bezier(.2,.8,.2,1) both}.ai-float-panel[hidden]{display:none!important}@keyframes aiFloatOpen{from{opacity:0;transform:translateY(12px) scale(.96)}to{opacity:1;transform:none}}.ai-float-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 13px 11px;border-bottom:1px solid #e1e9e4;background:linear-gradient(180deg,rgba(255,255,255,.85),rgba(247,251,248,.82))}.ai-float-brand{display:flex;align-items:center;gap:9px;min-width:0}.ai-float-brand-mark{width:34px;height:34px;border-radius:11px;font-size:9px}.ai-float-brand>div{display:flex;flex-direction:column;min-width:0}.ai-float-brand strong{font-size:12px;color:#182b20}.ai-float-brand small{font-size:8.5px;color:#728078;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ai-float-head-actions{display:flex;gap:4px}.ai-float-head-actions button{width:30px;height:30px;border:1px solid transparent;border-radius:9px;background:transparent;color:#627168;font-size:17px;cursor:pointer;display:grid;place-items:center}.ai-float-head-actions button:hover{background:#edf5f0;border-color:#d8e7dd;color:#135f3a}.ai-float-messages{overflow:auto;overscroll-behavior:contain;padding:15px 13px;background:radial-gradient(circle at 88% 0%,rgba(42,189,111,.055),transparent 28%),linear-gradient(180deg,#f8fbf9,#fff 45%);scroll-behavior:smooth}.ai-float-loading,.ai-float-error{margin:14px;padding:12px;border-radius:12px;font-size:10.5px}.ai-float-loading{background:#f0f6f2;color:#67766d}.ai-float-error{background:#fff0ef;border:1px solid #f0d0cd;color:#a63c34}.ai-float-welcome{min-height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:28px 15px}.ai-float-welcome-mark{display:grid;place-items:center;width:46px;height:46px;border-radius:16px;background:#e7f8ed;color:#147448;font-size:23px;box-shadow:0 11px 30px rgba(22,116,70,.1)}.ai-float-welcome strong{margin-top:12px;font-size:15px}.ai-float-welcome>span{margin-top:4px;max-width:270px;color:#718078;font-size:10px;line-height:1.5}.ai-float-welcome>div:last-child{display:flex;gap:6px;flex-wrap:wrap;justify-content:center;margin-top:13px}.ai-float-welcome button{border:1px solid #d8e8dd;background:#fff;border-radius:999px;padding:7px 10px;font-size:9.5px;color:#29543a;cursor:pointer}.ai-float-welcome button:hover{background:#f0f9f3;border-color:#acd3ba}.ai-float-message{display:flex;margin:0 0 11px}.ai-float-message.user{justify-content:flex-end}.ai-float-message.assistant{justify-content:flex-start}.ai-float-bubble{max-width:84%;padding:9px 11px;border-radius:14px 14px 14px 5px;background:#f0f4f1;border:1px solid #e1e8e4;color:#27372e;font-size:11.5px;line-height:1.5;overflow-wrap:anywhere}.ai-float-message.user .ai-float-bubble{border-radius:14px 14px 5px 14px;background:linear-gradient(145deg,#126d42,#188c52);border-color:#167a49;color:#fff;box-shadow:0 7px 17px rgba(20,118,71,.12)}.ai-float-bubble small{display:block;margin-top:6px;font-size:7.5px;opacity:.52}.ai-float-message-images{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;margin-bottom:7px}.ai-float-message-images img{display:block;width:100%;height:92px;object-fit:cover;border-radius:8px;background:#edf1ee}.ai-float-message-images img:only-child{grid-column:1/-1;height:135px}.ai-float-messages .ai-message{margin:0 0 11px;max-width:100%;gap:7px}.ai-float-messages .ai-avatar{width:25px;height:25px;border-radius:8px;font-size:8px}.ai-float-messages .ai-bubble{max-width:88%;font-size:10.5px}.ai-float-messages .ai-thinking-bubble{width:min(310px,84vw);padding:8px!important}.ai-float-messages .ai-murmuration-shell{height:68px}.ai-float-messages .ai-thinking-copy{padding-inline:2px}.ai-float-messages .ai-thinking-copy strong,.ai-float-messages .ai-thinking-copy span{font-size:8.5px}.ai-float-image-tray{display:flex;gap:7px;overflow-x:auto;padding:7px 12px;border-top:1px solid #e7ede9;background:#fbfdfc}.ai-float-image-tray[hidden]{display:none}.ai-float-image-chip{display:grid;grid-template-columns:32px minmax(0,82px) 20px;align-items:center;gap:5px;flex:0 0 auto;padding:4px;border:1px solid #dce7e0;border-radius:9px;background:#fff}.ai-float-image-chip img{width:32px;height:32px;object-fit:cover;border-radius:6px}.ai-float-image-chip span{font-size:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ai-float-image-chip button{border:0;background:transparent;color:#9a4343;cursor:pointer;font-size:15px}.ai-float-composer{display:grid;grid-template-columns:34px minmax(0,1fr) 38px;gap:7px;align-items:end;padding:10px 11px 7px;border-top:1px solid #e1e9e4;background:rgba(255,255,255,.94)}.ai-float-composer textarea{display:block;width:100%;height:40px;min-height:40px;max-height:112px;resize:none;border:1px solid #d9e5de;border-radius:13px;padding:10px 11px;outline:0;font:inherit;font-size:11px;line-height:1.45;background:#f9fbfa;color:#1d3024;transition:border-color .18s ease,box-shadow .18s ease,background .18s ease}.ai-float-composer textarea:focus{background:#fff;border-color:#7fbea0;box-shadow:0 0 0 3px rgba(34,157,88,.08)}.ai-float-tool,.ai-float-send{height:38px;border-radius:12px;border:1px solid #d9e5de;cursor:pointer;font-size:19px;display:grid;place-items:center}.ai-float-tool{background:#f5f9f6;color:#176f44}.ai-float-send{background:linear-gradient(145deg,#116c40,#169451);border-color:#137b46;color:#fff;box-shadow:0 7px 16px rgba(17,111,65,.17)}.ai-float-tool:hover{background:#eaf6ee}.ai-float-send:hover{filter:brightness(1.04)}.ai-float-send:disabled,.ai-float-tool:disabled{opacity:.45;cursor:not-allowed}.ai-float-foot{display:flex;justify-content:space-between;gap:8px;padding:0 13px 9px;background:#fff;color:#89948e;font-size:7.8px}.ai-float-root.thinking .ai-float-panel{box-shadow:0 28px 80px rgba(10,48,29,.24),0 0 0 1px rgba(40,207,119,.08),0 0 42px rgba(52,214,129,.12)}

@media(max-width:640px){.ai-float-root{right:10px;bottom:10px}.ai-float-launcher{min-height:52px;padding-right:11px}.ai-float-launcher-mark{width:36px;height:36px}.ai-float-launcher-orbit{width:36px;height:36px}.ai-float-launcher-copy small{display:none}.ai-float-panel{position:fixed;left:8px;right:8px;bottom:8px;width:auto;height:min(76vh,680px);border-radius:22px}.ai-float-foot{display:none}.ai-float-message-images img{height:110px}}
@media(prefers-reduced-motion:reduce){.ai-float-launcher-orbit,.ai-float-root.thinking .ai-float-launcher-mark,.ai-murmuration-core{animation:none!important}.ai-float-panel,.ai-thinking-message{animation:none!important}}

/* v153 Operations AI validated action cards */
.ai-action-card{margin-top:12px;padding:13px;border:1px solid #d8e6dd;border-radius:14px;background:#fbfdfb;display:flex;flex-direction:column;gap:8px}.ai-action-card.pending{border-color:#b9dcc6;background:linear-gradient(145deg,#f6fff9,#fbfdfb);box-shadow:0 8px 24px rgba(24,112,65,.07)}.ai-action-card.executed{border-color:#b7dfc5;background:#f1fbf4}.ai-action-card.failed{border-color:#efc9c5;background:#fff5f4}.ai-action-kicker{font-size:8px;font-weight:900;letter-spacing:.12em;color:#177044}.ai-action-card.failed .ai-action-kicker{color:#aa3f36}.ai-action-card>strong{font-size:13px;color:#1a2c21}.ai-action-card>span,.ai-action-card>small{font-size:9px;color:#6f7d74}.ai-action-detail{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;padding:8px 9px;border-radius:10px;background:#fff;border:1px solid #e5ece7;font-size:9px}.ai-action-detail span{color:#6b786f}.ai-action-lines{display:flex;flex-direction:column;border:1px solid #e4ebe6;border-radius:10px;overflow:hidden;background:#fff}.ai-action-lines>div{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:8px;align-items:center;padding:7px 9px;border-bottom:1px solid #edf1ee;font-size:9px}.ai-action-lines>div:last-child{border-bottom:0}.ai-action-lines small{color:#78847c}.ai-action-total{display:flex;justify-content:space-between;align-items:center;padding-top:2px}.ai-action-total span{font-size:9px;color:#748078}.ai-action-total strong{font-size:14px;color:#176d43}.ai-action-card .button{align-self:flex-start}
.ai-float-action{margin-top:9px;padding:9px;border-radius:11px;border:1px solid #d6e4db;background:#fff;display:flex;flex-direction:column;gap:5px}.ai-float-action.pending{border-color:#acd5bc;background:#f5fdf8}.ai-float-action.executed{border-color:#b6dec5;background:#f0faf4}.ai-float-action.failed{border-color:#edc7c3;background:#fff4f3}.ai-float-action-label{font-size:7px!important;font-weight:900;letter-spacing:.1em;color:#167044}.ai-float-action strong{font-size:10.5px}.ai-float-action span,.ai-float-action small{font-size:8px;color:#6d796f}.ai-float-action b{font-size:12px;color:#176d43}.ai-float-action button{align-self:flex-start;border:0;border-radius:9px;padding:7px 10px;background:#167447;color:#fff;font-size:9px;font-weight:800;cursor:pointer}.ai-float-action button:disabled{opacity:.55;cursor:wait}.ai-float-action a{align-self:flex-start;color:#12683f;font-size:9px;font-weight:800;text-decoration:none}

/* v167 — customer list/profile workflow inspired by the supplied customer accounting flow. */
.qb-customer-list-page .page-header{margin-bottom:16px}
.customer-sales-pipeline{position:relative;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:0;margin-bottom:16px;padding:18px 14px 24px;background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow-sm);overflow:hidden}
.customer-pipeline-metric{padding:0 16px;min-width:0;border-right:1px solid var(--line)}
.customer-pipeline-metric:last-of-type{border-right:0}
.customer-pipeline-metric span{display:block;color:var(--muted);font-size:12px;font-weight:650;margin-bottom:4px}
.customer-pipeline-metric strong{display:block;font-size:22px;letter-spacing:-.025em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.customer-pipeline-metric small{display:block;margin-top:4px;color:var(--muted-2);font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.customer-pipeline-bar{position:absolute;left:14px;right:14px;bottom:10px;height:10px;border-radius:999px;overflow:hidden;display:grid;grid-template-columns:1.15fr .75fr 1.2fr 1.35fr .55fr;background:#eef2ef}
.customer-pipeline-bar i:nth-child(1){background:#66aaf8}.customer-pipeline-bar i:nth-child(2){background:#8b5cf6}.customer-pipeline-bar i:nth-child(3){background:#f59e0b}.customer-pipeline-bar i:nth-child(4){background:#cbd5d1}.customer-pipeline-bar i:nth-child(5){background:#22a447}
.customer-list-heading{align-items:center}.customer-list-utilities{display:flex;align-items:center;gap:8px}
.customer-list-avatar{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:var(--green-soft);color:var(--green-strong);font-size:11px;font-weight:800;flex:0 0 auto}
.qb-customer-name{display:flex!important;align-items:center;gap:10px;text-align:left}
.qb-customer-list-page .customer-row-actions{display:flex;justify-content:flex-end;align-items:center;gap:6px;white-space:nowrap}
.qb-customer-list-page .data-table td:first-child{min-width:220px}.qb-customer-list-page .data-table td:nth-child(2){min-width:190px}

.qb-customer-profile-page{position:relative}
.qb-profile-topbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
.qb-profile-topbar-actions{display:flex;align-items:center;gap:8px}
.qb-new-transaction-wrap{position:relative}
.qb-new-transaction-menu{position:absolute;right:0;top:calc(100% + 7px);z-index:40;width:210px;padding:7px;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 20px 50px rgba(22,42,29,.18)}
.qb-new-transaction-menu button{width:100%;display:flex;align-items:center;padding:9px 10px;border:0;border-radius:8px;background:transparent;text-align:left;cursor:pointer}
.qb-new-transaction-menu button:hover{background:var(--surface-hover);color:var(--green-strong)}
.qb-customer-profile-card{display:grid;grid-template-columns:minmax(250px,.95fr) minmax(330px,1.35fr) 230px;gap:20px;align-items:stretch;background:#fff;border:1px solid var(--line);border-radius:16px;padding:20px;box-shadow:var(--shadow-sm)}
.qb-customer-identity{display:flex;gap:14px;align-items:center;padding-right:18px;border-right:1px solid var(--line)}
.qb-customer-avatar{width:66px;height:66px;border-radius:50%;display:grid;place-items:center;background:var(--green-soft);color:var(--green-strong);font-size:18px;font-weight:850;flex:0 0 auto}
.qb-customer-name{min-width:0}.qb-customer-name h1{margin:0;font-size:23px;line-height:1.15;letter-spacing:-.025em}.qb-customer-name>span{display:block;color:var(--muted);font-size:12px;margin-top:4px}
.qb-customer-contact-links{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.qb-customer-contact-links span{display:inline-flex;align-items:center;gap:5px;color:#506057;font-size:12px}.qb-customer-contact-links svg{width:14px;height:14px}
.qb-customer-address-block{display:grid;grid-template-columns:90px 1fr;gap:5px 10px;align-content:start}.qb-customer-address-block span{color:var(--muted);font-size:11px}.qb-customer-address-block strong{font-size:12px;font-weight:650;overflow-wrap:anywhere}.qb-customer-address-block small{grid-column:1/-1;margin-top:6px;padding-top:8px;border-top:1px dashed var(--line);color:var(--muted)}
.qb-financial-summary{border-radius:12px;background:#eaf3ff;padding:14px 16px;display:flex;flex-direction:column;align-items:flex-start}.qb-financial-summary>span{font-weight:750;margin-bottom:12px}.qb-financial-summary small{font-size:11px;color:#5c6b7b;margin-top:7px}.qb-financial-summary strong{font-size:21px;letter-spacing:-.02em}.qb-financial-summary .qb-overdue-label{color:var(--red)}
.qb-customer-tabs{display:flex;gap:0;overflow-x:auto;margin:14px 0 0;border-bottom:1px solid var(--line);background:#fff;border-radius:14px 14px 0 0;padding:0 10px}
.qb-customer-tabs button{border:0;border-bottom:3px solid transparent;background:transparent;padding:14px 12px 11px;white-space:nowrap;cursor:pointer;color:#536158;font-size:12px;font-weight:650}
.qb-customer-tabs button:hover{color:var(--text)}.qb-customer-tabs button.active{border-bottom-color:var(--green);color:var(--green-strong)}
.qb-profile-content-panel{margin-top:0;border-top:0;border-radius:0 0 14px 14px;overflow:visible}
.qb-transaction-toolbar{display:grid;grid-template-columns:190px 190px minmax(260px,1fr);gap:10px;align-items:end;border-bottom:1px solid var(--line);background:var(--surface-soft)}
.qb-transaction-search{min-width:0}.qb-customer-transactions tbody tr{cursor:default}.qb-customer-transactions tbody tr:hover{background:#fbfdfb}
.qb-profile-section{border:0;border-radius:0;padding:0}.customer-profile-section-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:14px}.customer-profile-section-heading h3{margin:0}.customer-profile-section-heading p{margin:4px 0 0;color:var(--muted)}
.qb-profile-subsection{margin-top:20px}.qb-profile-subsection h4{margin:0 0 10px}.qb-profile-details-grid{padding:16px;margin:0}.qb-notes-card,.qb-performance-launch{margin:16px}.qb-performance-launch{display:flex;align-items:center;justify-content:space-between;gap:20px}.qb-performance-launch h3{margin:0 0 5px}.qb-performance-launch p{margin:0;color:var(--muted)}
.customer-transaction-drawer{position:fixed;right:0;top:var(--topbar);bottom:0;width:min(390px,92vw);z-index:45;background:#fff;border-left:1px solid var(--line);box-shadow:-18px 0 50px rgba(20,38,26,.16);padding:20px;overflow:auto}
.customer-transaction-drawer-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;border-bottom:1px solid var(--line);padding-bottom:14px}.customer-transaction-drawer-head span{color:var(--muted);font-size:11px}.customer-transaction-drawer-head h3{margin:3px 0 0;font-size:18px}
.customer-transaction-status{margin:16px 0}.customer-transaction-amount{display:flex;flex-direction:column;padding:16px;border-radius:12px;background:var(--surface-soft);border:1px solid var(--line)}.customer-transaction-amount span,.customer-transaction-amount small{color:var(--muted);font-size:11px}.customer-transaction-amount strong{font-size:30px;margin:2px 0}
.customer-transaction-drawer dl{display:grid;grid-template-columns:90px 1fr;gap:9px 12px;margin:18px 0}.customer-transaction-drawer dt{font-size:11px;color:var(--muted)}.customer-transaction-drawer dd{margin:0;font-weight:600;overflow-wrap:anywhere}.customer-transaction-drawer-actions{display:flex;gap:8px;flex-wrap:wrap;border-top:1px solid var(--line);padding-top:16px}
.customer-map-dedicated-panel{margin-top:14px}.customer-map-dedicated-panel .customer-osm-map{height:620px;min-height:500px}.customer-map-page .customer-map-grid{grid-template-columns:minmax(0,1fr) 300px}

@media(max-width:1150px){.customer-sales-pipeline{grid-template-columns:repeat(3,minmax(0,1fr));row-gap:18px}.customer-pipeline-metric:nth-child(3){border-right:0}.qb-customer-profile-card{grid-template-columns:1fr 1.2fr}.qb-financial-summary{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:18px}.qb-financial-summary>span{grid-column:1/-1}.customer-map-page .customer-map-grid{grid-template-columns:1fr}}
@media(max-width:820px){.customer-sales-pipeline{grid-template-columns:1fr 1fr}.customer-pipeline-metric{border-right:0;border-bottom:1px solid var(--line);padding:10px 12px}.customer-pipeline-bar{display:none}.qb-customer-profile-card{grid-template-columns:1fr}.qb-customer-identity{border-right:0;border-bottom:1px solid var(--line);padding:0 0 16px}.qb-financial-summary{grid-template-columns:1fr 1fr 1fr}.qb-transaction-toolbar{grid-template-columns:1fr}.qb-profile-topbar{align-items:flex-start}.customer-map-dedicated-panel .customer-osm-map{height:480px;min-height:380px}}
@media(max-width:560px){.customer-sales-pipeline{grid-template-columns:1fr}.qb-profile-topbar{flex-direction:column}.qb-profile-topbar-actions{width:100%;justify-content:space-between}.qb-customer-contact-links{display:grid}.qb-financial-summary{grid-template-columns:1fr}.qb-performance-launch{align-items:flex-start;flex-direction:column}.customer-transaction-drawer{top:0}}

/* v168 — customer roles, hierarchy, territories, and multi-store network. */
.customer-role-badge{display:inline-flex;align-items:center;width:max-content;padding:4px 8px;border-radius:999px;border:1px solid transparent;font-size:10px;font-weight:800;line-height:1;text-transform:uppercase;letter-spacing:.045em;white-space:nowrap}
.customer-role-badge.role-distributor{background:#f2eaff;border-color:#dccbff;color:#6d28d9}.customer-role-badge.role-dealer{background:#eaf2ff;border-color:#cfe0ff;color:#1d4ed8}.customer-role-badge.role-wholesale{background:#fff5df;border-color:#fde3a7;color:#a85d00}.customer-role-badge.role-retail{background:#eaf8ee;border-color:#ccebd5;color:#166534}
.qb-customer-role-line{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:7px}.qb-customer-role-line>span:not(.customer-role-badge){font-size:11px;color:var(--muted)}
.customer-network-profile{display:grid;gap:14px;padding:16px}.customer-network-profile .customer-profile-card{padding:0;overflow:hidden}.customer-network-profile .customer-line-header{padding:14px 16px}.customer-network-profile .customer-line-header h3{margin:0;font-size:15px}.customer-network-profile .customer-line-header>strong{font-size:13px}
.network-position-card{min-height:170px}.network-path-row{display:flex;align-items:stretch;gap:12px;padding:18px 16px;overflow-x:auto}.network-node{min-width:210px;display:flex;flex-direction:column;align-items:flex-start;gap:6px;padding:13px 14px;border:1px solid var(--line);border-radius:12px;background:#fbfdfb;text-align:left;color:inherit}.network-node.current{box-shadow:inset 3px 0 0 var(--green)}button.network-node{cursor:pointer}button.network-node:hover{border-color:#aacfb7;background:#f5fbf7}.network-node strong{font-size:13px}.network-node small{color:var(--muted);font-size:11px}.network-arrow{display:grid;place-items:center;font-size:24px;color:#8a9890}.network-root-label{align-self:center;padding:8px 10px;border-radius:999px;background:#f3f6f4;color:var(--muted);font-size:11px;font-weight:700;white-space:nowrap}
.customer-network-rule{display:flex;align-items:flex-start;gap:10px;margin:0 16px 16px;padding:10px 12px;border-radius:10px;background:#f5f8f6;border:1px dashed #d6e1da}.customer-network-rule strong{font-size:11px;white-space:nowrap}.customer-network-rule span{font-size:11px;color:var(--muted);line-height:1.45}
.customer-store-profile-list{display:grid}.customer-store-profile-row{padding:13px 16px;border-top:1px solid var(--line)}.customer-store-profile-row:first-child{border-top:0}.customer-store-profile-row>div{display:grid;grid-template-columns:max-content max-content 1fr;align-items:center;gap:6px 8px}.customer-store-profile-row strong{font-size:13px}.customer-store-profile-row>div>span:not(.customer-store-primary){grid-column:1/-1;color:#4f5f56;font-size:12px}.customer-store-profile-row small{grid-column:1/-1;color:var(--muted);font-size:11px}.customer-store-primary{padding:3px 6px;border-radius:999px;background:var(--green-soft);color:var(--green-strong);font-size:9px;font-weight:800;text-transform:uppercase}
.network-child-list{display:grid}.network-child-row{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;border:0;border-top:1px solid var(--line);background:#fff;padding:12px 16px;text-align:left;cursor:pointer}.network-child-row:first-child{border-top:0}.network-child-row:hover{background:#f8fbf9}.network-child-row>div{display:grid;grid-template-columns:max-content 1fr;align-items:center;gap:5px 9px}.network-child-row>div>strong{font-size:12px}.network-child-row>div>span:not(.customer-role-badge){grid-column:1/-1;color:var(--muted);font-size:11px}.network-child-row>small{display:flex;align-items:center;gap:5px;color:var(--muted);white-space:nowrap}.network-child-row svg{width:13px;height:13px}
.customer-form-section,.customer-stores-editor{grid-column:1/-1;border:1px solid #dfe7e2;background:#f8fbf9;border-radius:16px;padding:14px}.customer-form-section .customer-line-header,.customer-stores-editor .customer-line-header{padding:0 0 11px;border:0;background:transparent}.customer-form-section>.form-grid{margin-top:2px}.customer-stores-editor>.field-help{display:block;margin-top:9px}
.customer-store-editor-list{display:grid;gap:12px}.customer-store-editor-row{border:1px solid #dce6df;background:#fff;border-radius:13px;padding:12px}.customer-store-editor-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:11px;padding-bottom:10px;border-bottom:1px solid var(--line)}.customer-store-primary-choice{display:inline-flex;align-items:center;gap:7px;font-size:11px;font-weight:750}.customer-store-editor-actions{display:flex;align-items:center;gap:6px}.customer-store-fields{gap:10px}.customer-store-map-status{margin-top:10px;padding:8px 10px;border-radius:9px;background:#f7f9f8;color:var(--muted);font-size:10px}.customer-store-map-status .badge{margin-right:5px}
.map-role-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--role-color,#64748B);margin-right:6px}.network-rule-compact{display:grid;gap:3px;padding:10px 12px;margin-bottom:12px;border:1px solid var(--line);border-radius:10px;background:#f8fbf9}.network-rule-compact strong{font-size:12px}.network-rule-compact span{font-size:10px;color:var(--muted);line-height:1.4}
.customer-network-rule-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:14px}.customer-network-rule-cards article{display:flex;flex-direction:column;gap:7px;padding:14px;border:1px solid var(--line);border-radius:14px;background:#fff;box-shadow:var(--shadow-sm)}.customer-network-rule-cards article>strong{font-size:13px}.customer-network-rule-cards p{margin:0;color:var(--muted);font-size:11px;line-height:1.45}
.customer-network-tree{display:grid;gap:9px}.customer-network-tree-node{position:relative}.customer-network-tree-children{display:grid;gap:7px;margin:7px 0 0 26px;padding-left:18px;border-left:1px solid #d9e4dc}.customer-network-tree-card{position:relative;width:100%;display:grid;grid-template-columns:max-content minmax(0,1fr) max-content;align-items:center;gap:11px;padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:#fff;text-align:left;cursor:pointer;color:inherit}.customer-network-tree-card:hover{background:#f8fbf9;border-color:#b9d9c3}.customer-network-tree-copy{display:grid;gap:3px;min-width:0}.customer-network-tree-copy strong{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.customer-network-tree-copy small{font-size:10px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.customer-network-tree-map{font-size:10px;color:var(--muted);padding:5px 7px;border-radius:999px;background:#f1f5f2;white-space:nowrap}
@media(max-width:1050px){.customer-network-rule-cards{grid-template-columns:1fr 1fr}}
@media(max-width:680px){.network-path-row{flex-direction:column}.network-arrow{transform:rotate(90deg)}.customer-store-editor-head{align-items:flex-start;flex-direction:column}.customer-store-editor-actions{width:100%;justify-content:space-between}.customer-network-rule-cards{grid-template-columns:1fr}.customer-network-tree-children{margin-left:12px;padding-left:10px}.customer-network-tree-card{grid-template-columns:1fr}.customer-network-tree-map{justify-self:start}}

/* v169 customer network add controls */
.customer-network-header-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.customer-network-add-menu{width:250px}
.customer-network-add-menu button{gap:8px}
.customer-network-add-menu button svg{width:14px;height:14px}
.customer-network-empty-action{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.customer-network-tree-row{display:grid;grid-template-columns:minmax(0,1fr) max-content;gap:8px;align-items:center}
.customer-network-tree-add{height:100%;min-height:46px;align-self:stretch}
@media(max-width:680px){.customer-network-header-actions{justify-content:flex-start}.customer-network-tree-row{grid-template-columns:1fr}.customer-network-tree-add{height:auto;justify-self:start}.customer-network-empty-action{align-items:flex-start}}

/* v170 automatic customer network persistence */
.customer-network-autosave{display:inline-flex;align-items:center;gap:5px;margin-left:auto;padding:5px 8px;border:1px solid #cfe7d8;border-radius:999px;background:#f0faf4;color:#176b40;font-size:10px;font-style:normal;font-weight:700;white-space:nowrap}.customer-network-autosave svg{width:13px;height:13px}.customer-auto-save-note{display:flex;align-items:center;gap:8px;padding:10px 12px;border:1px solid #cfe7d8;border-radius:10px;background:#f3faf6;color:#315b43;font-size:11px}.customer-auto-save-note svg{width:15px;height:15px;color:#17824c}.customer-auto-save-choice{display:flex;flex-direction:column;gap:5px;padding:10px 12px;border:1px solid #dfe9e3;border-radius:10px;background:#fafcfb}.customer-auto-save-choice>span{display:flex;align-items:center;gap:8px;font-weight:700;color:#24382c}.customer-auto-save-choice small{color:#718078;line-height:1.45}.customer-network-rule{flex-wrap:wrap}.customer-network-rule .customer-network-autosave{margin-left:auto}


/* v172 weekly drag-and-drop employee scheduler */
.schedule-planner-page{--schedule-employee-width:220px}
.schedule-planner-panel{overflow:hidden}
.schedule-planner-toolbar{display:flex;align-items:end;justify-content:space-between;gap:16px;padding:18px 18px 12px;border-bottom:1px solid var(--border,#e1e8e3)}
.schedule-week-nav{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.schedule-week-nav>strong{font-size:15px;min-width:170px;text-align:center}
.schedule-nav-button{font-size:23px;line-height:1}
.schedule-search{display:grid;gap:6px;min-width:250px}
.schedule-instruction{display:flex;gap:10px;align-items:flex-start;margin:12px 18px;padding:11px 13px;border:1px solid #dce9df;border-radius:12px;background:#f5faf6;color:#4d6256;font-size:13px}
.schedule-instruction svg{width:18px;height:18px;flex:0 0 auto;color:#18854d}
.schedule-grid-scroll{overflow-x:auto;border-top:1px solid #eef2ef;border-bottom:1px solid #eef2ef}
.schedule-grid{display:grid;grid-template-columns:var(--schedule-employee-width) repeat(7,minmax(145px,1fr));min-width:1235px}
.schedule-grid-header{position:sticky;top:0;z-index:2;min-height:66px;padding:12px;border-right:1px solid #e6ece8;border-bottom:1px solid #e6ece8;background:#fbfcfb;display:flex;flex-direction:column;justify-content:center;gap:3px;color:#52655a}
.schedule-grid-header span{font-size:12px;text-transform:uppercase;letter-spacing:.06em}
.schedule-grid-header strong{font-size:14px;color:#20382b}
.schedule-grid-header.today{background:#eef8f1}
.schedule-employee-header{left:0;z-index:4}
.schedule-grid-row{display:contents}
.schedule-employee-cell{position:sticky;left:0;z-index:3;padding:8px;border-right:1px solid #e6ece8;border-bottom:1px solid #e6ece8;background:#fff}
.schedule-employee-chip{width:100%;display:flex;align-items:center;gap:10px;text-align:left;border:0;background:transparent;padding:7px;border-radius:10px;cursor:grab;color:inherit}
.schedule-employee-chip:hover{background:#f5f8f6}
.schedule-employee-chip.dragging{opacity:.45;cursor:grabbing}
.schedule-avatar{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;flex:0 0 auto;background:#e8f4ec;color:#14713e;font-weight:800;font-size:12px}
.schedule-employee-chip strong,.schedule-employee-chip small{display:block;max-width:145px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.schedule-employee-chip small{margin-top:2px;color:#7a887f;font-size:11px}
.schedule-day-cell{min-height:92px;padding:7px;border-right:1px solid #e6ece8;border-bottom:1px solid #e6ece8;background:#fff;display:flex;flex-direction:column;gap:6px;transition:background .15s,border-color .15s}
.schedule-day-cell.today{background:#fbfefc}
.schedule-day-cell.drag-over{background:#eaf7ee;box-shadow:inset 0 0 0 2px #1b914f}
.schedule-cell-add{min-height:70px;width:100%;border:1px dashed transparent;background:transparent;border-radius:10px;color:#8b9991;font-size:12px;cursor:pointer}
.schedule-day-cell:hover .schedule-cell-add,.schedule-cell-add:focus{border-color:#cbd9d0;background:#f7faf8;color:#267449}
.schedule-shift-card{width:100%;border:1px solid #cfe4d6;border-left:4px solid #269355;border-radius:10px;background:#edf8f1;padding:8px 9px;text-align:left;color:#173427;cursor:pointer;display:block}
.schedule-shift-card strong,.schedule-shift-card span,.schedule-shift-card small{display:block}
.schedule-shift-card strong{font-size:12px;line-height:1.3}
.schedule-shift-card span{font-size:11px;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.schedule-shift-card small{font-size:10px;margin-top:2px;color:#60786a}
.schedule-shift-card.changed{background:#fff8e7;border-color:#ead69e;border-left-color:#d09a17}
.schedule-shift-card.completed{background:#f1f4f2;border-color:#d9dfdb;border-left-color:#718178}
.schedule-shift-card.draft{background:#f7f7f7;border-color:#e0e0e0;border-left-color:#9a9a9a}
.schedule-shift-card.cancelled{background:#fff1f1;border-color:#efcccc;border-left-color:#c94e4e}
.schedule-legend{padding:12px 18px;display:flex;align-items:center;gap:16px;flex-wrap:wrap;color:#6a796f;font-size:12px}
.schedule-legend span{display:flex;align-items:center;gap:6px}
.schedule-legend i{width:10px;height:10px;border-radius:3px;background:#269355}
.schedule-legend i.changed{background:#d09a17}.schedule-legend i.completed{background:#718178}
.schedule-help{margin-left:auto}
.schedule-grid-empty{grid-column:1/-1;padding:30px}
.schedule-remove-button{margin-right:auto}
.button.danger{border-color:#efcaca;color:#b93636;background:#fff6f6}
.button.danger:hover{background:#ffecec}
@media(max-width:760px){
  .schedule-planner-toolbar{align-items:stretch;flex-direction:column}
  .schedule-search{min-width:0;width:100%}
  .schedule-planner-page{--schedule-employee-width:180px}
  .schedule-grid{grid-template-columns:var(--schedule-employee-width) repeat(7,minmax(132px,1fr));min-width:1104px}
  .schedule-week-nav>strong{min-width:130px}
  .schedule-help{margin-left:0}
}

/* v173 — admin inventory attention glow */
@keyframes adminMenuAttentionPulse{0%,100%{box-shadow:inset 0 0 0 1px rgba(236,173,71,.18),0 0 0 rgba(235,166,53,0)}50%{box-shadow:inset 0 0 0 1px rgba(230,157,37,.52),0 0 15px rgba(235,166,53,.24)}}
.sidebar .nav-child.menu-attention,.sidebar .nav-link.menu-attention,.sidebar .nav-parent.menu-attention{position:relative;background:#fff8e8;color:#704c0a;animation:adminMenuAttentionPulse 1.8s ease-in-out infinite}
.sidebar .nav-child.menu-attention::before{background:#df941a;box-shadow:0 0 9px rgba(223,148,26,.8)}
.sidebar .nav-parent.menu-attention>.nav-icon,.sidebar .nav-link.menu-attention>.nav-icon{color:#b87508}
.admin-nav-alert-badge{margin-left:auto;min-width:21px;height:20px;padding:0 6px;border-radius:999px;background:#b96e00;color:#fff;display:inline-grid;place-items:center;font-size:10px;font-weight:850;line-height:1;flex:0 0 auto}
.nav-parent>.admin-nav-alert-badge{margin-left:4px;margin-right:-3px}
.nav-child>.admin-nav-alert-badge{margin-left:auto}
@media(prefers-reduced-motion:reduce){.sidebar .nav-child.menu-attention,.sidebar .nav-link.menu-attention,.sidebar .nav-parent.menu-attention{animation:none}}

/* v174 — ingredient row attention acknowledgement */
.ingredient-list-table tbody tr.ingredient-attention-row > td{
  position:relative;
  background:#fff1f1;
  border-top-color:rgba(217,45,32,.32);
  border-bottom-color:rgba(217,45,32,.32);
  animation:ingredientAttentionRowPulse 1.55s ease-in-out infinite;
}
.ingredient-list-table tbody tr.ingredient-attention-row > td:first-child{
  border-left:4px solid #d92d20;
}
.ingredient-list-table tbody tr.ingredient-attention-row > td:last-child{
  border-right:1px solid rgba(217,45,32,.35);
}
.ingredient-list-table tbody tr.ingredient-attention-row:hover > td{
  background:#ffe8e8;
}
@keyframes ingredientAttentionRowPulse{
  0%,100%{
    background:#fff2f2;
    box-shadow:inset 0 1px 0 rgba(217,45,32,.18),inset 0 -1px 0 rgba(217,45,32,.18),0 0 0 rgba(217,45,32,0);
  }
  50%{
    background:#ffdede;
    box-shadow:inset 0 1px 0 rgba(217,45,32,.5),inset 0 -1px 0 rgba(217,45,32,.5),0 0 14px rgba(217,45,32,.16);
  }
}
@media(prefers-reduced-motion:reduce){
  .ingredient-list-table tbody tr.ingredient-attention-row > td{animation:none;background:#ffe5e5}
}


/* v179 BigCommerce Sales / Customers / blue-dot customer map */
.bigcommerce-sales-page{display:flex;flex-direction:column;gap:16px}
.bc-sales-header{align-items:flex-start}
.bc-sales-actions{display:flex;flex-wrap:wrap;gap:10px}
.bc-sales-connection{display:grid;grid-template-columns:minmax(260px,1fr) auto auto;gap:24px;align-items:center;padding:14px 16px;border:1px solid var(--line,#dfe6e2);border-radius:14px;background:#fff}
.bc-sales-connection.connected{border-color:#b9e2c8;background:#f7fcf9}
.bc-sales-connection.warning{border-color:#f0cf8b;background:#fffaf0}
.bc-sales-connection>div:first-child{display:flex;flex-direction:column;gap:4px;min-width:0}.bc-sales-connection span,.bc-sales-connection small{color:var(--muted,#6b756f);font-size:12px}.bc-sales-connection b{font-size:12px;white-space:nowrap}
.bc-sales-kpis{margin:0}
.bc-sales-workspace{overflow:hidden}
.bc-sales-toolbar{display:grid;grid-template-columns:minmax(260px,1fr) minmax(180px,220px) minmax(180px,220px);gap:12px;padding:14px 16px;border-bottom:1px solid var(--line,#e4e9e6)}
.bc-sales-search{min-width:0}
.bc-sales-table td{vertical-align:middle}.bc-sales-product-summary,.bc-top-products{max-width:420px;line-height:1.4}.bc-sales-product-summary{font-weight:600}
.bc-order-status{display:inline-flex;align-items:center;padding:4px 8px;border-radius:999px;font-size:11px;font-weight:700;background:#e8f6ed;color:#17733c}.bc-order-status.excluded{background:#f4f5f4;color:#727a75}
.bc-customer-row{cursor:pointer}.bc-customer-row:hover{background:#fbfdfc}.bc-customer-row.repeat{background:linear-gradient(90deg,rgba(33,150,83,.035),transparent 34%)}
.bc-customer-name{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.bc-repeat-pill{display:inline-flex;padding:3px 7px;border-radius:999px;background:#e8f3ff;color:#1d5fae;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.04em}
.bc-customer-detail-modal{width:min(1040px,calc(100vw - 40px));max-height:calc(100vh - 48px);overflow:hidden}.bc-customer-detail-modal .modal-body{overflow:auto}
.bc-customer-detail-grid{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:20px}.bc-customer-detail-main{display:flex;flex-direction:column;gap:22px}.bc-customer-detail-main h3,.bc-customer-contact-card h3{margin:0 0 10px}
.bc-detail-stat-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.bc-detail-stat-row>div{padding:12px;border:1px solid var(--line,#e3e8e5);border-radius:12px;background:#fafcfb;display:flex;flex-direction:column;gap:5px}.bc-detail-stat-row span{font-size:11px;color:var(--muted,#6b756f)}.bc-detail-stat-row strong{font-size:17px}
.bc-detail-list,.bc-address-list{display:flex;flex-direction:column;border:1px solid var(--line,#e3e8e5);border-radius:12px;overflow:hidden}.bc-detail-list>div,.bc-address-list>article{display:flex;justify-content:space-between;gap:16px;padding:12px 14px;border-bottom:1px solid var(--line,#e3e8e5)}.bc-detail-list>div:last-child,.bc-address-list>article:last-child{border-bottom:0}.bc-detail-list>div{align-items:center}.bc-detail-list span,.bc-address-list span{font-size:12px;color:var(--muted,#6b756f)}.bc-address-list article>div{display:flex;flex-direction:column;gap:4px;min-width:0}
.bc-map-state{display:inline-flex;align-self:flex-start;padding:4px 7px;border-radius:999px;font-size:10px!important;font-weight:800;white-space:nowrap}.bc-map-state.mapped{background:#e9f7ee;color:#14723b}.bc-map-state.pending{background:#fff4dc;color:#9a6500}
.bc-customer-contact-card{border:1px solid var(--line,#e3e8e5);border-radius:14px;padding:16px;align-self:start;background:#fafcfb}.bc-customer-contact-card dl{display:grid;grid-template-columns:105px 1fr;gap:10px;margin:0}.bc-customer-contact-card dt{font-size:11px;color:var(--muted,#6b756f)}.bc-customer-contact-card dd{margin:0;font-size:13px;word-break:break-word}
.bc-sales-map-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;min-height:590px}.bc-sales-map{min-height:590px;border-right:1px solid var(--line,#e3e8e5);background:#eef3ef}.bc-sales-map-detail{padding:18px;display:flex;flex-direction:column;gap:8px}.bc-sales-map-detail span,.bc-sales-map-detail small{color:var(--muted,#6b756f);font-size:12px;line-height:1.45}.bc-map-customer-metrics{display:flex;flex-direction:column;gap:4px;margin-top:8px}.bc-map-customer-metrics b{font-size:13px}
.bc-map-popup{display:flex;flex-direction:column;gap:5px;min-width:220px}.bc-map-popup strong{font-size:14px}.bc-map-popup span,.bc-map-popup small{font-size:11px;line-height:1.35;color:#56615b}.bc-map-popup b{font-size:12px}
@media (max-width:1050px){.bc-sales-connection{grid-template-columns:1fr 1fr}.bc-sales-connection>div:first-child{grid-column:1/-1}.bc-sales-toolbar{grid-template-columns:1fr 1fr}.bc-sales-search{grid-column:1/-1}.bc-customer-detail-grid{grid-template-columns:1fr}.bc-customer-contact-card{width:100%}.bc-sales-map-layout{grid-template-columns:1fr}.bc-sales-map{border-right:0;border-bottom:1px solid var(--line,#e3e8e5);min-height:500px}}
@media (max-width:720px){.bc-sales-connection,.bc-sales-toolbar{grid-template-columns:1fr}.bc-sales-connection>div:first-child,.bc-sales-search{grid-column:auto}.bc-detail-stat-row{grid-template-columns:1fr 1fr}.bc-customer-detail-modal{width:calc(100vw - 20px)}.bc-sales-map{min-height:420px}.bc-sales-actions{width:100%}.bc-sales-actions .button{flex:1}}

/* v180 BigCommerce customer order history + frequent SKU purchases */
.bc-detail-sync-banner{display:flex;align-items:flex-start;gap:10px;padding:12px 14px;margin-bottom:16px;border:1px solid #b8d8ff;border-radius:12px;background:#f3f8ff;color:#174f8f}.bc-detail-sync-banner svg,.bc-detail-sync-banner .bc-detail-sync-icon{width:18px!important;height:18px!important;min-width:18px!important;max-width:18px!important;min-height:18px!important;max-height:18px!important;flex:0 0 18px!important;margin-top:2px;display:block}.bc-detail-sync-banner>div{display:flex;flex-direction:column;gap:3px}.bc-detail-sync-banner strong{font-size:13px}.bc-detail-sync-banner span{font-size:11px;color:#55708f}
.bc-detail-section-head{display:flex;justify-content:space-between;gap:14px;align-items:flex-start;margin-bottom:10px}.bc-detail-section-head h3{margin:0 0 3px}.bc-detail-section-head p{margin:0;color:var(--muted,#6b756f);font-size:12px}.bc-detail-section-head>span{font-size:11px;font-weight:700;color:var(--muted,#6b756f);white-space:nowrap;padding-top:3px}
.bc-customer-frequency-wrap{border:1px solid var(--line,#e3e8e5);border-radius:12px}.bc-customer-frequency-table{min-width:760px}.bc-customer-frequency-table code,.bc-order-item-product code{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:11px;background:#f2f5f3;border-radius:5px;padding:2px 5px;color:#1d3428}.bc-frequency-name{display:flex;align-items:center;gap:9px}.bc-frequency-rank{width:24px;height:24px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;background:#eaf5ee;color:#17733c;font-size:10px;font-weight:800;flex:0 0 auto}
.bc-customer-orders{display:flex;flex-direction:column;gap:10px}.bc-customer-order-card{border:1px solid var(--line,#e3e8e5);border-radius:12px;background:#fff;overflow:hidden}.bc-customer-order-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;padding:12px 14px;background:#fafcfb;border-bottom:1px solid var(--line,#e3e8e5)}.bc-customer-order-head>div:first-child{display:flex;flex-direction:column;gap:4px}.bc-customer-order-head span{font-size:11px;color:var(--muted,#6b756f)}.bc-customer-order-head-right{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}.bc-customer-order-head-right strong{font-size:15px}
.bc-order-item-list{display:flex;flex-direction:column}.bc-order-item-row{display:grid;grid-template-columns:minmax(260px,1fr) 90px 110px 110px;gap:12px;align-items:center;padding:11px 14px;border-bottom:1px solid var(--line,#eef1ef)}.bc-order-item-row:last-child{border-bottom:0}.bc-order-item-product{display:flex;flex-direction:column;gap:4px;min-width:0}.bc-order-item-product strong{font-size:13px}.bc-order-item-product span,.bc-order-item-row>div:not(:first-child)>span{font-size:10px;color:var(--muted,#6b756f)}.bc-order-item-row>div:not(:first-child){display:flex;flex-direction:column;gap:3px}.bc-order-item-row>div:not(:first-child) strong{font-size:12px}.bc-order-items-empty{padding:14px;color:var(--muted,#6b756f);font-size:12px;background:#fffaf0}
.bc-customer-order-foot{display:flex;justify-content:space-between;gap:14px;padding:9px 14px;border-top:1px solid var(--line,#e3e8e5);background:#fafcfb;color:var(--muted,#6b756f);font-size:10px}.bc-customer-detail-modal{width:min(1240px,calc(100vw - 40px))}
@media (max-width:900px){.bc-order-item-row{grid-template-columns:minmax(0,1fr) 70px 90px}.bc-order-item-row>div:last-child{grid-column:2/-1}.bc-customer-order-foot{flex-direction:column;gap:4px}.bc-detail-section-head{flex-direction:column}.bc-detail-section-head>span{white-space:normal}}
@media (max-width:620px){.bc-order-item-row{grid-template-columns:1fr 1fr}.bc-order-item-product{grid-column:1/-1}.bc-order-item-row>div:last-child{grid-column:auto}.bc-customer-order-head{flex-direction:column}.bc-customer-order-head-right{justify-content:flex-start}}

/* v181 BigCommerce map batching: addresses persist first, 100 are geocoded sequentially, map repaints once per batch. */
.bc-map-batch-progress{display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,34%);gap:18px;align-items:center;padding:12px 16px;border-top:1px solid var(--line,#e3e8e5);border-bottom:1px solid var(--line,#e3e8e5);background:#f8fbf9}.bc-map-batch-progress[hidden]{display:none}.bc-map-batch-progress>div:first-child{display:flex;flex-direction:column;gap:3px;min-width:0}.bc-map-batch-progress strong{font-size:12px}.bc-map-batch-progress span{font-size:11px;color:var(--muted,#6b756f);line-height:1.4}.bc-map-progress-track{height:8px;border-radius:999px;background:#e4ebe6;overflow:hidden}.bc-map-progress-track i{display:block;height:100%;width:0;border-radius:inherit;background:#20884a;transition:width .18s ease}@media(max-width:720px){.bc-map-batch-progress{grid-template-columns:1fr;gap:9px}}

/* v182 BigCommerce customer map progress foundation (extended by v183 automatic queue). */
.bc-map-load-summary{display:flex;align-items:center;gap:10px 18px;flex-wrap:wrap;padding:11px 16px;border-top:1px solid var(--line,#e3e8e5);background:#fbfcfb;font-size:11px;color:var(--muted,#6b756f)}
.bc-map-load-summary span{display:inline-flex;align-items:baseline;gap:4px}.bc-map-load-summary b{font-size:12px;color:var(--text,#17221b)}
.bc-map-progress-copy{display:flex;flex-direction:column;gap:3px;min-width:0}.bc-map-progress-count{font-weight:700!important;color:var(--text,#17221b)!important}
.bc-map-progress-meter{display:grid;grid-template-columns:52px minmax(160px,1fr);gap:10px;align-items:center}.bc-map-progress-percent{font-size:14px;font-weight:800;text-align:right;color:var(--text,#17221b)}
.bc-sales-map-waiting{display:flex;align-items:center;justify-content:center;background:#fbfcfb}.bc-sales-map-waiting .empty-state{min-height:320px}
@media(max-width:720px){.bc-map-progress-meter{grid-template-columns:44px 1fr}.bc-map-load-summary{align-items:flex-start;flex-direction:column;gap:5px}}
\n\n/* v183 BigCommerce customer map: continuous automatic ERP address mapping. */\n.bc-map-auto-status{display:inline-flex;align-items:center;gap:8px;min-height:34px;padding:8px 11px;border:1px solid #dce5df;border-radius:999px;background:#fbfcfb;color:#66736b;font-size:10px;font-weight:800;white-space:nowrap}.bc-map-auto-status i{width:8px;height:8px;border-radius:50%;background:#98a39d}.bc-map-auto-status.running{border-color:#bfe5cd;background:#f4fff8;color:#147448}.bc-map-auto-status.running i{background:#1fb86c;box-shadow:0 0 0 4px rgba(31,184,108,.11),0 0 12px rgba(31,184,108,.38);animation:bcAutoMapPulse 1.5s ease-in-out infinite}.bc-map-auto-status.ready{border-color:#cfe6d7;background:#f7fff9;color:#176d45}.bc-map-auto-status.ready i{background:#22a762}.bc-map-auto-status.warning{border-color:#f0d4ad;background:#fffaf2;color:#98651e}.bc-map-auto-status.warning i{background:#d58a28}@keyframes bcAutoMapPulse{0%,100%{opacity:.55;transform:scale(.85)}50%{opacity:1;transform:scale(1.1)}}@media(prefers-reduced-motion:reduce){.bc-map-auto-status.running i{animation:none}}@media(max-width:760px){.bc-map-auto-status{white-space:normal}}\n

/* v185 BigCommerce customer detail hotfix: keep sync icon bounded inside the banner. */
.bc-customer-detail-modal .bc-detail-sync-banner{min-width:0;overflow:hidden}.bc-customer-detail-modal .bc-detail-sync-banner>div{min-width:0}.bc-customer-detail-modal .bc-detail-sync-banner strong,.bc-customer-detail-modal .bc-detail-sync-banner span{overflow-wrap:anywhere}


/* v186 BigCommerce customer modal: lazy data loading, stable scrolling, per-order expansion */
body.bc-modal-open{overflow:hidden}
.bc-customer-detail-modal{width:min(1240px,calc(100vw - 40px));height:min(88vh,900px);max-height:calc(100vh - 40px);display:flex!important;flex-direction:column;overflow:hidden;background:#fff}
.bc-customer-detail-header{flex:0 0 auto;background:#fff;z-index:2}
.bc-customer-detail-scroll{flex:1 1 auto;min-height:0;overflow-y:auto!important;overflow-x:hidden;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;scrollbar-gutter:stable;padding:18px 19px 28px}
.bc-customer-detail-grid{align-items:start}
.bc-data-loader{min-height:280px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:8px;color:var(--muted,#6b756f)}
.bc-data-loader strong{color:var(--text,#17241d);font-size:15px}.bc-data-loader>span{font-size:12px;max-width:440px;line-height:1.5}
.bc-data-loader-orbit{height:34px;display:flex;align-items:center;gap:7px}.bc-data-loader-orbit i{width:9px;height:9px;border-radius:50%;background:#16894d;animation:bc-loader-bounce 1s ease-in-out infinite}.bc-data-loader-orbit i:nth-child(2){animation-delay:.14s}.bc-data-loader-orbit i:nth-child(3){animation-delay:.28s}
.bc-data-loader-lines{width:min(420px,75%);display:grid;gap:7px;margin-top:12px}.bc-data-loader-lines b{height:8px;border-radius:999px;background:linear-gradient(90deg,#edf2ef 20%,#f8faf8 45%,#edf2ef 70%);background-size:300% 100%;animation:bc-loader-shimmer 1.25s linear infinite}.bc-data-loader-lines b:nth-child(2){width:82%;justify-self:center}.bc-data-loader-lines b:nth-child(3){width:64%;justify-self:center}
@keyframes bc-loader-bounce{0%,60%,100%{transform:translateY(0);opacity:.45}30%{transform:translateY(-7px);opacity:1}}@keyframes bc-loader-shimmer{0%{background-position:100% 0}100%{background-position:0 0}}
.bc-detail-lazy-note{display:flex;align-items:flex-start;gap:10px;padding:11px 13px;border:1px solid #cfe0f8;border-radius:12px;background:#f5f9ff;color:#274d75}.bc-detail-lazy-note>div{display:flex;flex-direction:column;gap:3px}.bc-detail-lazy-note strong{font-size:12px}.bc-detail-lazy-note span:not(.bc-inline-spinner){font-size:11px;line-height:1.45;color:#5c7390}
.bc-inline-spinner{width:18px;height:18px;flex:0 0 18px;border:2px solid #c9dfd2;border-top-color:#16894d;border-radius:50%;display:inline-block;animation:bc-spin .72s linear infinite}.bc-inline-spinner.mini{width:13px;height:13px;flex-basis:13px;border-width:2px;vertical-align:-2px;margin-right:4px}@keyframes bc-spin{to{transform:rotate(360deg)}}
.bc-customer-order-card{scroll-margin-top:12px}
.bc-customer-order-head.bc-customer-order-toggle{width:100%;border:0;margin:0;text-align:left;font:inherit;cursor:pointer;color:inherit}.bc-customer-order-head.bc-customer-order-toggle:hover{background:#f5faf7}.bc-customer-order-head.bc-customer-order-toggle:focus-visible{outline:2px solid #64ad80;outline-offset:-2px}.bc-customer-order-head.bc-customer-order-toggle:disabled{cursor:wait;opacity:.82}
.bc-order-open-label{display:inline-flex;padding:3px 7px;border-radius:999px;background:#edf5ff;color:#245a9b!important;font-size:9px!important;font-weight:800;white-space:nowrap}.bc-order-chevron{font-size:18px!important;line-height:1;color:#597067!important;transition:transform .16s ease}.bc-customer-order-toggle[aria-expanded="true"] .bc-order-chevron{transform:rotate(180deg)}
.bc-order-lazy-body{border-bottom:1px solid var(--line,#e3e8e5);background:#fff}.bc-order-data-loader{min-height:92px;padding:18px 16px;display:flex;align-items:center;justify-content:center;gap:12px;color:#5e6f66}.bc-order-data-loader>div{display:flex;flex-direction:column;gap:3px}.bc-order-data-loader strong{font-size:12px;color:#21362a}.bc-order-data-loader span:not(.bc-inline-spinner){font-size:10px}
.bc-order-load-error .error-state{margin:10px}.bc-order-page-sentinel{height:2px}.bc-order-load-more-wrap{min-height:44px;display:flex;align-items:center;justify-content:center;gap:10px;padding-top:10px}.bc-order-page-status{font-size:10px;color:var(--muted,#6b756f)}
@media(max-width:720px){.bc-customer-detail-modal{width:calc(100vw - 16px);height:calc(100vh - 16px);max-height:calc(100vh - 16px)}.bc-customer-detail-scroll{padding:14px}.bc-order-open-label{display:none}}
@media(prefers-reduced-motion:reduce){.bc-data-loader-orbit i,.bc-data-loader-lines b,.bc-inline-spinner{animation:none}}

/* v187 Gmail customer support inbox */
.support-inbox-page{display:flex;flex-direction:column;gap:16px;min-width:0}
.support-summary-row{display:flex;align-items:center;gap:10px 22px;flex-wrap:wrap;padding:11px 15px;border:1px solid var(--line,#e2e8e4);border-radius:13px;background:#fff;color:var(--muted,#6b756f);font-size:11px}.support-summary-row span{display:inline-flex;align-items:center;gap:5px}.support-summary-row b{font-size:13px;color:var(--text,#18231d)}
.support-live-state{margin-left:auto}.support-live-state i{width:8px;height:8px;border-radius:50%;background:#22a762;box-shadow:0 0 0 4px rgba(34,167,98,.08)}.support-live-state.syncing i{animation:supportPulse 1s ease-in-out infinite}.support-live-state.error{color:#a24b36}.support-live-state.error i{background:#c75a43;box-shadow:none}@keyframes supportPulse{0%,100%{opacity:.35;transform:scale(.85)}50%{opacity:1;transform:scale(1.08)}}
.support-workspace{display:grid;grid-template-columns:minmax(300px,360px) minmax(420px,1fr) minmax(270px,320px);height:clamp(600px,calc(100vh - 245px),760px);min-height:0;border:1px solid var(--line,#dfe6e2);border-radius:16px;background:#fff;overflow:hidden}
.support-conversation-panel,.support-chat-panel,.support-context-panel{min-width:0;min-height:0}.support-conversation-panel{display:flex;flex-direction:column;border-right:1px solid var(--line,#e4e9e6);background:#fbfcfb;overflow:hidden}.support-chat-panel{display:flex;flex-direction:column;background:#fff;overflow:hidden}.support-context-panel{border-left:1px solid var(--line,#e4e9e6);background:#fafcfb;overflow:hidden}
.support-list-toolbar{display:grid;grid-template-columns:1fr;gap:9px;padding:12px;border-bottom:1px solid var(--line,#e4e9e6);background:#fff}.support-list-toolbar .field{gap:5px}.support-list-toolbar .field-label{font-size:10px}.support-conversation-list{flex:1 1 0;min-height:0;height:0;overflow-y:scroll;overscroll-behavior:contain;scrollbar-gutter:stable;touch-action:pan-y}
.support-conversation-row{position:relative;width:100%;display:grid;grid-template-columns:38px minmax(0,1fr) auto;gap:10px;align-items:start;padding:12px;border:0;border-bottom:1px solid #e8edea;background:transparent;text-align:left;color:inherit;cursor:pointer;font:inherit}.support-conversation-row:hover{background:#f4f9f6}.support-conversation-row.active{background:#eaf5ee}.support-conversation-row.unread{background:#fffaf1}.support-conversation-row.unread.active{background:#edf8f1}.support-avatar{width:34px;height:34px;border-radius:50%;display:inline-grid;place-items:center;background:#e7f3ec;color:#176c43;font-size:12px;font-weight:850;flex:0 0 auto}.support-avatar.large{width:42px;height:42px;font-size:14px}.support-row-copy{min-width:0;display:flex;flex-direction:column;gap:3px}.support-row-top{display:flex;align-items:baseline;justify-content:space-between;gap:8px;min-width:0}.support-row-top strong{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.support-conversation-row.unread .support-row-top strong{font-weight:900}.support-row-top time{font-size:9px;color:#7b857f;white-space:nowrap}.support-row-subject{font-size:11px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.support-row-snippet{font-size:10px;color:#69746e;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.support-row-meta{font-size:9px;color:#849089}.support-unread-dot{min-width:22px;height:20px;padding:0 5px;border-radius:999px;background:#1d8d52;color:#fff;display:grid;place-items:center;font-size:9px;font-weight:850;margin-top:1px}
.support-chat-shell{height:100%;min-height:0;display:flex;flex-direction:column}.support-chat-header{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;padding:14px 16px;border-bottom:1px solid var(--line,#e4e9e6);background:#fff}.support-chat-header>div:first-child{min-width:0;display:flex;flex-direction:column;gap:8px}.support-chat-person{display:flex;align-items:center;gap:10px;min-width:0}.support-chat-person>div{display:flex;flex-direction:column;min-width:0}.support-chat-person strong{font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.support-chat-person span{font-size:10px;color:#6d7872}.support-chat-tags{display:flex;gap:6px;flex-wrap:wrap}.support-case-pill,.support-status-pill,.support-order-pill{display:inline-flex;align-items:center;min-height:22px;padding:3px 8px;border-radius:999px;font-size:9px;font-weight:800}.support-case-pill{background:#eef3f0;color:#4b5e54}.support-case-pill.missing_order{background:#fff1e8;color:#a24b16}.support-case-pill.exchange{background:#eef2ff;color:#4256a4}.support-case-pill.new_order{background:#e9f7ee;color:#197042}.support-status-pill.open{background:#eef6ff;color:#245f9e}.support-status-pill.pending{background:#fff7df;color:#8b6508}.support-status-pill.resolved{background:#e9f7ee;color:#16713f}.support-order-pill{background:#f3f4f3;color:#34443b;border:0;font-family:inherit;font-size:9px;font-weight:800;cursor:pointer}.support-order-pill:hover{background:#e8f2ec;color:#176f43}.support-chat-actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}.support-chat-actions .button{padding:7px 9px;font-size:10px}
.support-action-strip{display:flex;gap:6px;align-items:center;flex-wrap:wrap;padding:8px 14px;border-bottom:1px solid var(--line,#e4e9e6);background:#fafcfb}.support-action-strip>span{font-size:9px;font-weight:850;letter-spacing:.04em;text-transform:uppercase;color:#7b857f;margin-right:4px}.support-action-strip button{display:inline-flex;align-items:center;gap:5px;min-height:30px;padding:5px 8px;border:1px solid #dfe7e2;border-radius:9px;background:#fff;color:#31443a;font:inherit;font-size:10px;font-weight:750;cursor:pointer}.support-action-strip button:hover{border-color:#9fc9af;background:#f4faf6}.support-action-strip svg{width:13px;height:13px}
.support-message-history{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:18px 18px 12px;background:linear-gradient(180deg,#fbfcfb,#f7faf8);display:flex;flex-direction:column;gap:13px}.support-message{display:flex;flex-direction:column;gap:5px;max-width:82%}.support-message.inbound{align-self:flex-start}.support-message.outbound{align-self:flex-end}.support-message-meta{display:flex;align-items:center;gap:6px;flex-wrap:wrap;font-size:9px;color:#748077}.support-message-meta strong{font-size:10px;color:#425149}.support-message-meta b{display:inline-flex;padding:2px 6px;border-radius:999px;background:#edf3ff;color:#325f9a}.support-message-bubble{padding:11px 13px;border-radius:14px;background:#fff;border:1px solid #dfe6e2;box-shadow:0 2px 7px rgba(28,64,42,.03)}.support-message.outbound .support-message-bubble{background:#e9f7ee;border-color:#c9e5d3}.support-message.was-unread .support-message-bubble{border-left:3px solid #228d52}.support-message-text{font-size:12px;line-height:1.55;color:#26352d;overflow-wrap:anywhere}.support-attachments{display:flex;gap:6px;flex-wrap:wrap;margin-top:9px}.support-attachments span{display:inline-flex;align-items:center;gap:4px;padding:4px 7px;border-radius:8px;background:#f4f6f5;font-size:9px}.support-attachments svg{width:12px;height:12px}
.support-reply-box{flex:0 0 auto;padding:12px 14px 14px;border-top:1px solid var(--line,#e4e9e6);background:#fff}.support-reply-meta{display:flex;justify-content:space-between;gap:10px;margin-bottom:7px;color:#77827c;font-size:9px}.support-reply-box textarea{width:100%;resize:vertical;min-height:96px;max-height:220px}.support-reply-footer{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:8px}.support-reply-hint{font-size:9px;color:#7c8781}.support-inline-spinner{width:13px;height:13px;border:2px solid rgba(255,255,255,.4);border-top-color:#fff;border-radius:50%;display:inline-block;animation:supportSpin .7s linear infinite}@keyframes supportSpin{to{transform:rotate(360deg)}}
.support-context-scroll{height:100%;overflow-y:auto;padding:12px;display:flex;flex-direction:column;gap:10px}.support-context-card{border:1px solid #e0e7e3;border-radius:12px;background:#fff;padding:12px}.support-context-title{display:flex;align-items:center;gap:8px;margin-bottom:10px}.support-context-title>span{width:30px;height:30px;border-radius:9px;background:#eaf5ee;color:#187044;display:grid;place-items:center}.support-context-title svg{width:15px;height:15px}.support-context-title>div{display:flex;flex-direction:column}.support-context-title strong{font-size:12px}.support-context-title small{font-size:9px;color:#78837d}.support-context-card dl{display:grid;grid-template-columns:82px minmax(0,1fr);gap:7px 9px;margin:0}.support-context-card dt{font-size:9px;color:#7b867f}.support-context-card dd{margin:0;font-size:10px;overflow-wrap:anywhere}.support-order-total{display:flex;justify-content:space-between;align-items:baseline;padding:8px 0;border-top:1px solid #edf0ee;border-bottom:1px solid #edf0ee}.support-order-total span{font-size:9px;color:#7b867f}.support-order-total strong{font-size:15px}.support-order-items{display:flex;flex-direction:column;margin-top:7px}.support-order-items article{display:flex;justify-content:space-between;gap:8px;padding:7px 0;border-bottom:1px solid #eef1ef}.support-order-items article:last-child{border-bottom:0}.support-order-items article>div{min-width:0;display:flex;flex-direction:column;gap:2px}.support-order-items strong{font-size:10px}.support-order-items code{font-size:8px;color:#69756e;background:#f5f7f6;padding:2px 4px;border-radius:4px;align-self:flex-start}.support-order-items article>span{font-size:9px;color:#56645c;white-space:nowrap}.support-context-empty{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:30px;color:#7b867f;gap:7px}.support-context-empty svg{width:28px;height:28px}.support-context-empty strong{color:#394a40;font-size:12px}.support-context-empty span{font-size:10px;line-height:1.45}.support-context-skeleton{padding:18px;display:grid;gap:10px}.support-context-skeleton b{height:62px;border-radius:11px;background:linear-gradient(90deg,#eef2ef,#f8faf8,#eef2ef);background-size:240% 100%;animation:supportShimmer 1.3s linear infinite}@keyframes supportShimmer{to{background-position:-240% 0}}
.support-chat-loader,.support-page-loader{min-height:360px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:8px;color:#738078}.support-page-loader{min-height:520px}.support-chat-loader strong,.support-page-loader strong{font-size:14px;color:#26362d}.support-chat-loader span:not(.support-loader-ring),.support-page-loader span:not(.support-loader-ring){font-size:11px}.support-loader-ring{width:30px;height:30px;border:3px solid #dce9e1;border-top-color:#16894d;border-radius:50%;animation:supportSpin .75s linear infinite}.support-chat-empty{padding:30px;text-align:center;color:#77827c;font-size:11px}
.support-connect-card{margin:0}.support-account-manager{border:1px solid var(--line,#e2e8e4);border-radius:13px;background:#fff;overflow:hidden}.support-account-manager>summary{cursor:pointer;padding:12px 15px;font-size:11px;font-weight:800}.support-account-manager[open]>summary{border-bottom:1px solid #e4e9e6}.support-account-manager .workspace-card{border:0;border-radius:0;box-shadow:none}.support-account-list{display:flex;flex-direction:column;gap:8px;padding:0 16px 16px}.support-account{display:grid;grid-template-columns:36px minmax(0,1fr) auto;gap:10px;align-items:center;padding:10px 12px;border:1px solid #e3e9e5;border-radius:11px;background:#fff}.support-account-icon{width:34px;height:34px;border-radius:10px;background:#eaf5ee;color:#177044;display:grid;place-items:center}.support-account-icon svg{width:16px;height:16px}.support-account>div:nth-child(2){display:flex;flex-direction:column;min-width:0}.support-account strong{font-size:11px}.support-account span,.support-account small{font-size:9px;color:#77827c}.support-account small{color:#a24b36}.support-connect-empty{display:flex;flex-direction:column;align-items:center;text-align:center;gap:5px;padding:28px;color:#7a857f}.support-connect-empty>div{width:38px;height:38px;border-radius:11px;background:#eef6f1;color:#1b7648;display:grid;place-items:center}.support-connect-empty svg{width:18px;height:18px}.support-connect-empty strong{color:#34463b;font-size:12px}.support-connect-empty span{font-size:10px}.support-oauth-note{display:grid;grid-template-columns:auto minmax(0,1fr);gap:4px 10px;align-items:center;margin:0 16px 16px;padding:10px 12px;border-radius:10px;background:#f7f9f8;font-size:9px;color:#6f7b74}.support-oauth-note strong{font-size:9px}.support-oauth-note code{overflow-wrap:anywhere}.support-oauth-note span{grid-column:2}
@media(max-width:1200px){.support-workspace{grid-template-columns:320px minmax(0,1fr)}.support-context-panel{display:none}.support-live-state{margin-left:0}}
@media(max-width:820px){.support-workspace{grid-template-columns:1fr;height:auto;max-height:none;min-height:0}.support-conversation-panel{max-height:360px;border-right:0;border-bottom:1px solid var(--line,#e4e9e6)}.support-chat-panel{min-height:620px}.support-chat-header{flex-direction:column}.support-chat-actions{justify-content:flex-start}.support-message{max-width:94%}.support-reply-footer{align-items:flex-start;flex-direction:column}.support-account{grid-template-columns:36px minmax(0,1fr)}.support-account .button{grid-column:1/-1}.support-oauth-note{grid-template-columns:1fr}.support-oauth-note span{grid-column:auto}}
@media(prefers-reduced-motion:reduce){.support-live-state.syncing i,.support-inline-spinner,.support-loader-ring,.support-context-skeleton b{animation:none}}

/* v188 automated order-status and experience emails */
.support-automation-list{display:flex;flex-direction:column;gap:7px}.support-automation-list article{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 0;border-top:1px solid #edf1ee}.support-automation-list article:first-child{border-top:0}.support-automation-list article>div{min-width:0;display:flex;flex-direction:column;gap:2px}.support-automation-list strong{font-size:10px}.support-automation-list span{font-size:8px;color:#728077;overflow-wrap:anywhere}.support-automation-list b{font-size:13px;color:#197247;white-space:nowrap}
.support-case-pill.partial_shipment{background:#fff6df;color:#8b6200}.support-case-pill.refund{background:#fff0f0;color:#a33131}.support-case-pill.wait_for_order{background:#f2f3f7;color:#515a6d}


/* v189 support inbox qualification, order viewer, customer locate and fixed scrolling */
.support-close-ticket{border-color:#cfe6d7!important;background:#f3fbf6!important;color:#176f43!important}
.support-context-button{width:100%;margin-top:10px;justify-content:center}
.support-customer-location{display:flex;gap:8px;align-items:flex-start;margin-top:10px;padding:9px 10px;border-radius:10px;background:#f7faf8;border:1px solid #e7ece9}
.support-customer-location>span{width:26px;height:26px;border-radius:8px;display:grid;place-items:center;background:#e9f5ed;color:#187247;flex:0 0 auto}
.support-customer-location svg{width:13px;height:13px}.support-customer-location>div{min-width:0;display:flex;flex-direction:column;gap:2px}
.support-customer-location strong{font-size:9px}.support-customer-location small{font-size:8px;color:#738078;line-height:1.4;overflow-wrap:anywhere}
.support-order-modal-backdrop{position:fixed;inset:0;z-index:2200;background:rgba(18,31,24,.48);display:flex;align-items:center;justify-content:center;padding:24px}
.support-order-modal{width:min(900px,calc(100vw - 40px));max-height:min(780px,calc(100vh - 48px));display:flex;flex-direction:column;border-radius:18px;background:#fff;box-shadow:0 28px 80px rgba(14,38,24,.28);overflow:hidden}
.support-order-modal>header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 18px;border-bottom:1px solid #e3e9e5;background:#fbfcfb}
.support-order-modal>header>div{display:flex;flex-direction:column;gap:2px}.support-order-modal>header span{font-size:8px;letter-spacing:.12em;font-weight:850;color:#18804c}.support-order-modal>header strong{font-size:18px}
.support-order-modal>header button{width:34px;height:34px;border:1px solid #dde5e0;border-radius:10px;background:#fff;display:grid;place-items:center;cursor:pointer;color:#526158}.support-order-modal>header button svg{width:16px;height:16px}
.support-order-modal-body{min-height:0;overflow-y:auto;padding:18px;display:flex;flex-direction:column;gap:16px}
.support-order-modal-loader{min-height:360px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;text-align:center;color:#748078}.support-order-modal-loader strong{font-size:14px;color:#26372e}.support-order-modal-loader>span:last-child{font-size:10px}
.support-order-modal-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.support-order-modal-summary>div{padding:11px;border:1px solid #e3e9e5;border-radius:11px;background:#fafcfb;display:flex;flex-direction:column;gap:4px}.support-order-modal-summary span{font-size:8px;color:#758179}.support-order-modal-summary strong{font-size:12px;overflow-wrap:anywhere}
.support-order-modal-breakdown{display:flex;gap:8px 18px;flex-wrap:wrap;padding:10px 12px;border-radius:10px;background:#f5f8f6;font-size:9px;color:#68766e}.support-order-modal-breakdown b{color:#2d4035}
.support-order-modal-section-head{display:flex;align-items:end;justify-content:space-between;gap:12px;margin-bottom:8px}.support-order-modal-section-head>div{display:flex;flex-direction:column}.support-order-modal-section-head strong{font-size:13px}.support-order-modal-section-head span{font-size:9px;color:#77827b}.support-order-modal-section-head>b{font-size:10px}
.support-order-modal-items{border:1px solid #e1e7e3;border-radius:12px;overflow:hidden}.support-order-modal-items article{display:grid;grid-template-columns:minmax(220px,1fr) 80px 95px 95px;gap:12px;align-items:center;padding:11px 12px;border-bottom:1px solid #edf1ee}.support-order-modal-items article:last-child{border-bottom:0}.support-order-modal-items article>div:first-child{display:flex;flex-direction:column;gap:3px;min-width:0}.support-order-modal-items article>div:not(:first-child){display:flex;flex-direction:column;gap:2px}.support-order-modal-items strong{font-size:10px}.support-order-modal-items code{font-size:8px;color:#647269;overflow-wrap:anywhere}.support-order-modal-items span{font-size:8px;color:#7b867f}.support-order-modal-items b{font-size:10px}
.support-order-modal-empty{padding:22px;border:1px dashed #dce4df;border-radius:11px;text-align:center;color:#758179;font-size:10px}
.support-order-customer-card{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px;border:1px solid #e1e8e4;border-radius:12px;background:#fbfcfb}.support-order-customer-card>div:first-child{min-width:0;display:flex;flex-direction:column;gap:3px}.support-order-customer-card strong{font-size:11px}.support-order-customer-card span{font-size:9px;color:#758079;overflow-wrap:anywhere}.support-order-modal-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
@media(max-width:700px){.support-order-modal-backdrop{padding:10px}.support-order-modal-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.support-order-modal-items article{grid-template-columns:minmax(0,1fr) 60px}.support-order-modal-items article>div:nth-child(3),.support-order-modal-items article>div:nth-child(4){display:none}.support-order-customer-card{align-items:flex-start;flex-direction:column}.support-order-modal-actions{justify-content:flex-start}}
/* v191 manual refund/exchange/order/customer workflow */
.support-commerce-overlay{position:fixed;inset:0;background:rgba(15,23,42,.5);z-index:1300;display:flex;align-items:center;justify-content:center;padding:20px;overflow:auto}.support-commerce-modal{width:min(820px,96vw);max-height:90vh;background:#fff;border-radius:18px;border:1px solid #dce6df;display:flex;flex-direction:column;overflow:hidden;box-shadow:0 28px 80px rgba(15,23,42,.28)}.support-commerce-modal header,.support-commerce-modal footer{padding:16px 20px;display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid #e7eee9}.support-commerce-modal footer{border-bottom:0;border-top:1px solid #e7eee9;justify-content:flex-end}.support-commerce-modal header h3{margin:0;font-size:21px}.support-commerce-modal header button{width:38px;height:38px;border:1px solid #dce6df;border-radius:10px;background:#fff;font-size:22px}.support-commerce-body{padding:20px;overflow:auto}.support-commerce-items,[data-lines]{display:flex;flex-direction:column;gap:10px;margin:14px 0}.support-commerce-item{display:grid;grid-template-columns:auto 1fr 90px;gap:12px;align-items:center;border:1px solid #dde7e1;border-radius:12px;padding:12px}.support-commerce-item span{display:flex;flex-direction:column;gap:3px}.support-commerce-line{display:grid;grid-template-columns:1fr 90px auto;gap:10px;align-items:center;margin-bottom:10px}.support-customer-form{display:grid;grid-template-columns:1fr 1fr;gap:12px}.support-customer-form label{font-size:12px;font-weight:700;text-transform:capitalize;display:flex;flex-direction:column;gap:5px}.support-action-strip [data-support-create-customer]{margin-left:auto}@media(max-width:720px){.support-customer-form{grid-template-columns:1fr}.support-commerce-line{grid-template-columns:1fr 80px}.support-commerce-line .button{grid-column:1/-1}.support-commerce-item{grid-template-columns:auto 1fr}.support-commerce-item [data-qty]{grid-column:2}}

/* v193 Twilio SMS + Gmail dual-channel customer support */
.support-twilio-setup{display:grid;grid-template-columns:36px minmax(0,1fr);gap:10px;align-items:center;margin:0 16px 16px;padding:11px 12px;border:1px solid #e2e8e4;border-radius:11px;background:#fafcfb}.support-twilio-setup.active{border-color:#cce5d5;background:#f5fbf7}.support-twilio-setup>div:nth-child(2){min-width:0;display:flex;flex-direction:column;gap:2px}.support-twilio-setup strong{font-size:10px}.support-twilio-setup span,.support-twilio-setup small{font-size:8px;color:#728077;overflow-wrap:anywhere}.support-twilio-setup.inactive .support-account-icon{background:#f3f4f4;color:#7b867f}
.support-reply-channel-row{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:10px;flex-wrap:wrap}.support-reply-channel-title{display:flex;flex-direction:column;gap:2px}.support-reply-channel-title strong{font-size:10px}.support-reply-channel-title span{font-size:8px;color:#7a857f}.support-channel-switches{display:flex;gap:8px;flex-wrap:wrap}.support-channel-switch{position:relative;display:grid;grid-template-columns:30px 16px minmax(0,1fr);gap:7px;align-items:center;min-width:170px;padding:8px 10px;border:1px solid #dce5df;border-radius:11px;background:#fff;cursor:pointer;user-select:none}.support-channel-switch:hover{border-color:#bbd8c5;background:#fbfefc}.support-channel-switch.disabled{opacity:.52;cursor:not-allowed;background:#f7f8f7}.support-channel-switch>input{position:absolute;opacity:0;pointer-events:none}.support-channel-switch>svg{width:15px;height:15px;color:#557066}.support-channel-switch>span:last-child{display:flex;flex-direction:column;gap:1px;font-size:9px;font-weight:800;color:#34463c}.support-channel-switch small{font-size:7px;font-weight:600;color:#7b877f;max-width:130px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.support-switch-ui{width:30px;height:17px;border-radius:999px;background:#cbd4cf;position:relative;transition:.18s ease}.support-switch-ui:after{content:"";position:absolute;width:13px;height:13px;top:2px;left:2px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(20,40,29,.2);transition:.18s ease}.support-channel-switch>input:checked+.support-switch-ui{background:#19884f}.support-channel-switch>input:checked+.support-switch-ui:after{transform:translateX(13px)}.support-channel-switch:has(input:focus-visible){outline:2px solid #72b28d;outline-offset:2px}
.support-channel-badge{display:inline-flex;align-items:center;gap:3px;padding:2px 6px;border-radius:999px;font-size:8px;font-weight:800}.support-channel-badge svg{width:10px;height:10px}.support-channel-badge.email{background:#edf3ff;color:#315e98}.support-channel-badge.sms{background:#ecf8f0;color:#157247}.support-message.sms .support-message-bubble{border-color:#cfe3d6}.support-message.sms.outbound .support-message-bubble{background:#e4f5ea}.support-message.sms.inbound .support-message-bubble{background:#fffef9;border-color:#e7e0c9}
@media(max-width:760px){.support-reply-channel-row{align-items:stretch;flex-direction:column}.support-channel-switches{width:100%;display:grid;grid-template-columns:1fr}.support-channel-switch{min-width:0}.support-reply-box textarea{min-height:120px}}

/* v208 — Product Packaging > Fixed Labels */
.fixed-label-loading{min-height:240px;display:flex;align-items:center;justify-content:center;gap:12px;color:#6d7d73}.fixed-label-section{display:grid;gap:18px}.fixed-label-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.fixed-label-summary>div{border:1px solid #e0e9e3;background:#f8fbf9;border-radius:14px;padding:14px 16px}.fixed-label-summary span,.fixed-label-summary strong,.fixed-label-summary small{display:block}.fixed-label-summary span{font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:#77867d;font-weight:800}.fixed-label-summary strong{font-size:26px;color:#174d35;margin:4px 0}.fixed-label-summary small{color:#86938b}.fixed-label-info{border:1px solid #d7eadf;background:#f1faf4;border-radius:14px;padding:14px 16px;display:grid;gap:4px}.fixed-label-info strong{color:#176a42}.fixed-label-info span{color:#65756c;font-size:13px}.fixed-label-grid{display:grid;gap:12px}.fixed-label-card{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:16px;align-items:center;border:1px solid #dfe8e2;border-radius:16px;background:#fff;padding:16px}.fixed-label-card.is-inactive{opacity:.62;background:#f7f8f7}.fixed-label-file-badge{width:56px;height:56px;border-radius:14px;display:grid;place-items:center;background:#eaf7ee;border:1px solid #d5eadc;color:#126b3d;font-size:12px;font-weight:900;letter-spacing:.06em}.fixed-label-card-top{display:flex;gap:8px;align-items:center;font-size:11px;color:#78867e;text-transform:uppercase;font-weight:800}.fixed-label-card-copy h4{font-size:18px;margin:5px 0 3px}.fixed-label-card-copy p{margin:0;color:#5e7066}.fixed-label-card-copy small{display:block;margin-top:5px;color:#829088}.fixed-label-note{margin-top:9px;padding:8px 10px;border-radius:10px;background:#f6f8f7;color:#6b786f;font-size:12px}.fixed-label-card-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;justify-content:flex-end}.fixed-label-file-input{padding:10px}.fixed-label-empty{padding:10px 0}@media(max-width:900px){.fixed-label-card{grid-template-columns:auto 1fr}.fixed-label-card-actions{grid-column:1/-1;justify-content:flex-start}.fixed-label-summary{grid-template-columns:1fr}}@media(max-width:520px){.fixed-label-card{grid-template-columns:1fr}.fixed-label-file-badge{width:48px;height:48px}.fixed-label-card-actions .button{flex:1}}
.audit-bulk-post-bar{display:grid;grid-template-columns:minmax(220px,1fr) minmax(220px,280px) auto auto;gap:12px;align-items:end;margin:0 0 12px;padding:14px;border:1px solid #cfe3d5;border-radius:14px;background:#f4faf6;box-shadow:0 8px 24px rgba(24,81,48,.06)}
.audit-select-all{display:flex;align-items:center;gap:10px;min-height:44px;cursor:pointer}.audit-select-all input,.audit-row-check{width:18px;height:18px;accent-color:#178a4a;cursor:pointer}.audit-select-all span{display:grid;gap:2px}.audit-select-all strong{font-size:14px;color:#183d28}.audit-select-all small{font-size:11px;color:var(--muted,#6d766f)}
.audit-bulk-reason{margin:0}.audit-bulk-count{display:grid;justify-items:center;min-width:72px;padding:7px 11px;border:1px solid #d9e7dd;border-radius:11px;background:#fff}.audit-bulk-count strong{font-size:18px;color:#176a42}.audit-bulk-count span{font-size:10px;color:var(--muted,#6d766f);text-transform:uppercase;letter-spacing:.06em}.audit-select-col{width:62px;text-align:center!important}.audit-check-done{display:inline-grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#e6f6eb;color:#13733a;font-weight:800}.audit-reconcile-row.is-selectable:has(.audit-row-check:checked){background:#f1faf4}.audit-post-controls-simple{grid-template-columns:1fr auto}.audit-post-controls-simple>span{align-self:center;color:#617067;font-size:12px}
@media(max-width:900px){.audit-bulk-post-bar{grid-template-columns:1fr}.audit-bulk-count{justify-items:start}.audit-post-controls-simple{grid-template-columns:1fr}.audit-select-col{width:48px}}

/* v210 — Audit bulk adjustment UI polish */
.audit-readonly-notice{padding:11px 14px;border-radius:12px;background:linear-gradient(180deg,#fffaf1 0%,#fff8eb 100%);box-shadow:0 1px 0 rgba(101,78,31,.03)}
.audit-readonly-notice strong{font-size:12px;letter-spacing:.01em}.audit-readonly-notice span{font-size:11px;color:#7b6334;text-align:right}
.audit-detail-summary{gap:12px;margin-bottom:14px}.audit-detail-summary>div{position:relative;overflow:hidden;padding:13px 14px;border-color:#e1e9e4;background:linear-gradient(180deg,#fff 0%,#fbfdfb 100%);box-shadow:0 5px 18px rgba(25,62,41,.035)}.audit-detail-summary>div:before{content:"";position:absolute;inset:0 auto 0 0;width:3px;background:#d8eadf}.audit-detail-summary>div:first-child:before{background:#87c49d}.audit-detail-summary span{font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.055em}.audit-detail-summary strong{font-size:18px;color:#173c29}
.audit-bulk-post-bar{position:sticky;top:-1px;z-index:8;display:grid;grid-template-columns:1fr;gap:12px;margin:0 0 14px;padding:15px 16px;border:1px solid #c8dfd0;border-radius:16px;background:rgba(247,252,248,.97);box-shadow:0 12px 34px rgba(24,81,48,.08);backdrop-filter:blur(14px);transition:border-color .18s ease,box-shadow .18s ease,background .18s ease}
.audit-bulk-post-bar.has-selection{border-color:#90c7a3;background:rgba(242,250,245,.98);box-shadow:0 14px 38px rgba(22,112,61,.11)}
.audit-bulk-topline{display:flex;align-items:center;justify-content:space-between;gap:18px;padding-bottom:11px;border-bottom:1px solid #dde9e1}.audit-bulk-title{display:grid;gap:2px;min-width:0}.audit-bulk-kicker{font-size:9px;font-weight:900;letter-spacing:.095em;text-transform:uppercase;color:#2b8151}.audit-bulk-title>strong{font-size:15px;color:#173b29}.audit-bulk-title>small{font-size:10px;color:#6e7d74}.audit-bulk-count{display:grid;justify-items:center;align-content:center;min-width:90px;padding:7px 11px;border:1px solid #d5e5da;border-radius:12px;background:#fff;box-shadow:0 3px 10px rgba(25,68,43,.04)}.audit-bulk-count strong{font-size:20px;line-height:1;color:#176a42}.audit-bulk-count span{margin-top:3px;font-size:8px;color:#7a877f;text-transform:uppercase;letter-spacing:.07em;white-space:nowrap}
.audit-bulk-actions{display:grid;grid-template-columns:minmax(180px,.8fr) minmax(250px,1.2fr) auto;gap:12px;align-items:end}.audit-select-all{display:flex;align-items:center;gap:10px;min-height:44px;padding:7px 10px;border:1px solid transparent;border-radius:11px;cursor:pointer;transition:.16s ease}.audit-select-all:hover{border-color:#d5e5da;background:#fff}.audit-select-all span{display:grid;gap:1px}.audit-select-all strong{font-size:12px;color:#183d28}.audit-select-all small{font-size:9px;color:#748178}.audit-bulk-reason{margin:0}.audit-bulk-reason .field-label{font-size:9px;letter-spacing:.055em;text-transform:uppercase}.audit-bulk-reason .select{min-height:42px;border-color:#d7e4db;background:#fff}.audit-bulk-submit{min-width:168px;min-height:42px;box-shadow:0 7px 16px rgba(22,119,65,.14)}.audit-bulk-submit:disabled{box-shadow:none;opacity:.5}
.audit-select-all>input,.audit-row-check{appearance:none;-webkit-appearance:none;position:relative;width:19px;height:19px;flex:0 0 19px;border:1.5px solid #b8c9be;border-radius:6px;background:#fff;cursor:pointer;transition:.16s ease;outline:0}.audit-select-all>input:hover,.audit-row-check:hover{border-color:#65aa7d;box-shadow:0 0 0 3px rgba(31,139,75,.08)}.audit-select-all>input:checked,.audit-row-check:checked{border-color:#178a4a;background:#178a4a}.audit-select-all>input:checked:after,.audit-row-check:checked:after{content:"";position:absolute;left:5px;top:2px;width:5px;height:9px;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg)}.audit-select-all>input:indeterminate{border-color:#178a4a;background:#178a4a}.audit-select-all>input:indeterminate:after{content:"";position:absolute;left:4px;right:4px;top:8px;height:2px;border-radius:2px;background:#fff}
.audit-reconcile-note{gap:9px;padding:9px 12px;margin-bottom:10px;border-color:#e0e9e3;background:#fafcfb}.audit-reconcile-note strong{font-size:10px;text-transform:uppercase;letter-spacing:.045em}.audit-reconcile-note span{font-size:10px;line-height:1.45}
.audit-reconcile-wrap{border:1px solid #e2e9e4;border-radius:14px;background:#fff;box-shadow:0 5px 20px rgba(25,62,41,.035)}.audit-reconcile-table{margin:0}.audit-reconcile-table thead th{position:sticky;top:0;z-index:2;padding-top:10px;padding-bottom:10px;background:#f8faf9;color:#758179;font-size:8px;letter-spacing:.07em;text-transform:uppercase;border-bottom:1px solid #e4ebe6}.audit-reconcile-table tbody tr.audit-reconcile-row{transition:background .15s ease,box-shadow .15s ease}.audit-reconcile-table tbody tr.audit-reconcile-row:hover{background:#fbfdfb}.audit-reconcile-row.is-selectable:has(.audit-row-check:checked){background:#f1faf4;box-shadow:inset 3px 0 0 #1d8e4e}.audit-reconcile-row.is-posted{background:#fbfdfb}.audit-reconcile-table td{padding-top:11px!important;padding-bottom:11px!important;vertical-align:middle}.audit-select-col{width:58px;text-align:center!important}.audit-row-check-wrap{display:inline-grid;place-items:center;cursor:pointer}.audit-row-check-wrap>span{display:none}.audit-check-done{width:25px;height:25px;border:1px solid #cce5d4;background:#eef9f2;color:#16713f;font-size:12px}.audit-item-cell .cell-main{font-size:12px;font-weight:800;color:#173627}.audit-item-cell .cell-sub{font-size:8px;line-height:1.4;color:#7a867f}.audit-qty-block{display:grid;gap:2px}.audit-qty-block strong{font-size:12px;color:#263e31}.audit-qty-block small{font-size:8px!important;margin:0!important}.audit-qty-audited strong{color:#173e2a}.audit-diff-pill{display:inline-grid;gap:1px;min-width:76px;padding:6px 8px;border-radius:9px;background:#f4f6f5;border:1px solid #e5e9e6}.audit-diff-pill strong{font-size:11px}.audit-diff-pill small{font-size:8px!important;margin:0!important;font-weight:700}.audit-diff-pill.short{background:#fff5f4;border-color:#f2d2cf;color:#b43b32}.audit-diff-pill.over{background:#eff9f3;border-color:#cee6d7;color:#157344}.audit-diff-pill.matched{background:#f2f6f3;border-color:#dce6df;color:#4f6858}.audit-diff-pill.neutral{color:#7b847e}.audit-posted-badge{padding:4px 8px;font-size:9px;letter-spacing:.02em}.audit-status-reason{font-size:8px!important;text-transform:capitalize}.audit-post-row td{padding:0 10px 10px!important;background:#fbfdfb}.audit-posted-detail{padding:9px 11px;border-radius:10px;font-size:9px}.audit-posted-detail strong{font-size:10px}.audit-posted-detail span,.audit-posted-detail small{font-size:8px}
@media(max-width:900px){.audit-readonly-notice{align-items:flex-start;flex-direction:column}.audit-readonly-notice span{text-align:left}.audit-bulk-post-bar{position:relative;top:auto}.audit-bulk-topline{align-items:flex-start}.audit-bulk-actions{grid-template-columns:1fr}.audit-bulk-count{justify-items:center;min-width:78px}.audit-bulk-submit{width:100%}.audit-select-col{width:48px}}
@media(max-width:620px){.audit-bulk-topline{display:grid;grid-template-columns:1fr auto}.audit-bulk-title>small{display:none}.audit-bulk-post-bar{padding:12px}.audit-detail-summary{grid-template-columns:1fr 1fr}.audit-detail-summary>div:first-child{grid-column:1/-1}.audit-reconcile-table{min-width:760px}}

/* v218: floating AI launcher removed from portal surfaces; AI remains accessible from navigation. */
.ai-float-root,[data-ai-float-root]{display:none!important;visibility:hidden!important;pointer-events:none!important}


/* v224 — Ingredients inventory sort control */
.ingredient-list-toolbar{grid-template-columns:minmax(300px,1fr) minmax(150px,200px) minmax(140px,180px) minmax(170px,220px) auto}
.ingredient-sort-field .select{font-weight:650}
.ingredient-sort-field .select:has(option:checked:not([value=""])){border-color:#9fcdb0;background:#f3faf5;color:#165f3a}
@media(max-width:1180px){.ingredient-list-toolbar{grid-template-columns:minmax(260px,1fr) 1fr 1fr}.ingredient-list-toolbar .ingredient-sort-field{grid-column:auto}.ingredient-toolbar-actions{grid-column:auto}}
@media(max-width:860px){.ingredient-list-toolbar{grid-template-columns:1fr 1fr}.ingredient-list-toolbar .field:first-child{grid-column:1/-1}.ingredient-toolbar-actions{grid-column:1/-1}}
@media(max-width:620px){.ingredient-list-toolbar{grid-template-columns:1fr}.ingredient-list-toolbar .field:first-child,.ingredient-toolbar-actions{grid-column:auto}}

/* ===== v231 Ingredient stock adjustment + g/oz display ===== */
.ingredient-list-toolbar{
  grid-template-columns:minmax(280px,1fr) minmax(145px,185px) minmax(135px,175px) minmax(160px,205px) minmax(116px,132px) auto;
}
.ingredient-unit-field{min-width:116px}
.ingredient-unit-toggle{
  display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:4px;border:1px solid #d5e2d8;
  border-radius:12px;background:#eef4ee;min-height:42px;align-items:stretch
}
.ingredient-unit-toggle button{
  border:0;border-radius:9px;background:transparent;color:#738078;font:inherit;font-weight:800;
  padding:7px 10px;cursor:pointer;min-width:44px
}
.ingredient-unit-toggle button.active{background:#fff;color:#176c45;box-shadow:0 2px 8px rgba(28,82,51,.10)}
.ingredient-stock-admin-field{min-width:0}
.ingredient-stock-admin-control{display:flex;align-items:center;gap:8px;min-height:43px}
.ingredient-stock-reading{display:flex;align-items:center;gap:8px;min-width:0;flex:1;padding:7px 9px;border:1px solid #dce5de;border-radius:11px;background:#f6f8f5}
.ingredient-stock-reading>strong{font-size:13px;color:#2b4938;white-space:nowrap}
.ingredient-stock-reading .ingredient-unit-toggle{margin-left:auto;min-height:30px;padding:2px;border-radius:9px}
.ingredient-stock-reading .ingredient-unit-toggle button{padding:4px 8px;min-width:36px;font-size:11px}
.ingredient-stock-admin-control>.button{white-space:nowrap}
.ingredient-inventory-toolbar{display:flex;justify-content:space-between;align-items:flex-end;gap:14px;margin:0 0 14px}
.ingredient-inventory-toolbar>div{display:grid;gap:6px}
.ingredient-inventory-toolbar .ingredient-unit-toggle{width:126px}
.ingredient-stock-adjust-form{display:grid;gap:16px}
.ingredient-stock-adjust-summary{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.ingredient-stock-adjust-summary>div{padding:15px;border:1px solid #dde6df;border-radius:14px;background:#f6f9f5;display:grid;gap:5px}
.ingredient-stock-adjust-summary span,.ingredient-stock-conversion span{font-size:10px;letter-spacing:.08em;text-transform:uppercase;color:#78867c;font-weight:800}
.ingredient-stock-adjust-summary strong{font-size:22px;color:#244a34;letter-spacing:-.03em}
.ingredient-stock-target{font-size:22px;font-weight:800;color:#1d5135}
.ingredient-fixed-unit{display:flex;align-items:center;min-height:42px;border:1px solid #d8e1da;border-radius:11px;background:#f4f7f4;padding:0 12px;font-weight:800;color:#3a5c47}
.ingredient-stock-conversion{display:grid;grid-template-columns:1fr auto;gap:5px 12px;align-items:center;padding:14px 15px;border-radius:13px;background:#eef7ef;border:1px solid #d5e8d9}
.ingredient-stock-conversion strong{font-size:18px;color:#17633f}
.ingredient-stock-conversion small{grid-column:1/-1;color:#6b7b70}
.ingredient-stock-adjust-error{padding:10px 12px;border-radius:10px;background:#fff0ee;border:1px solid #f3ccc6;color:#a63e32;font-size:12px}
@media(max-width:1280px){
  .ingredient-list-toolbar{grid-template-columns:minmax(250px,1fr) 1fr 1fr 1fr}
  .ingredient-unit-field{grid-column:auto}
  .ingredient-toolbar-actions{grid-column:auto}
}
@media(max-width:920px){
  .ingredient-list-toolbar{grid-template-columns:1fr 1fr}
  .ingredient-list-toolbar .field:first-child{grid-column:1/-1}
  .ingredient-toolbar-actions{grid-column:1/-1}
}
@media(max-width:620px){
  .ingredient-list-toolbar{grid-template-columns:1fr}
  .ingredient-list-toolbar .field:first-child,.ingredient-toolbar-actions{grid-column:auto}
  .ingredient-stock-admin-control,.ingredient-inventory-toolbar{align-items:stretch;flex-direction:column}
  .ingredient-stock-admin-control>.button,.ingredient-inventory-toolbar>.button{width:100%}
  .ingredient-stock-adjust-summary{grid-template-columns:1fr}
}


/* v232 — simplified destructive confirmation */
.simple-delete-confirm{padding:6px 2px 2px;color:#4d5d54;font-size:14px;line-height:1.55}
.simple-delete-confirm p{margin:0}
.simple-delete-confirm strong{color:#1f3328}
.simple-delete-confirm .delete-error{margin-top:14px;padding:11px 13px;border-radius:12px;background:#fff1ef;border:1px solid #f2c9c4;color:#a83b31;font-size:12px}

/* v244 Quick Production --------------------------------------------------- */
.quick-production-shell{margin:0;border-bottom:1px solid var(--line);background:linear-gradient(180deg,#f8fbf9 0%,#fff 100%)}
.quick-production-header{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;padding:20px 20px 16px}
.quick-production-header h3,.production-orders-heading h3{margin:3px 0 4px;font-size:20px;letter-spacing:-.02em}.quick-production-header p{max-width:820px;margin:0;color:var(--muted);font-size:11px;line-height:1.55}
.quick-production-search{position:relative;display:block;min-width:300px}.quick-production-search>span{position:absolute;left:12px;top:50%;width:17px;height:17px;transform:translateY(-50%);color:var(--muted);pointer-events:none}.quick-production-search>span svg{width:17px;height:17px}.quick-production-search .input{padding-left:38px;background:#fff}
.quick-production-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:0 20px 20px;max-height:660px;overflow:auto;align-items:start}
.quick-production-card{display:grid;gap:13px;min-width:0;padding:15px;border:1px solid var(--line);border-radius:17px;background:#fff;box-shadow:var(--shadow-sm);transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease}.quick-production-card:hover{border-color:#b8d7c3;box-shadow:0 8px 24px rgba(26,80,48,.08)}.quick-production-card.unavailable{background:#fbfcfb;opacity:.78}
.quick-production-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.quick-production-product{display:flex;align-items:flex-start;gap:11px;min-width:0}.quick-production-image{display:grid;place-items:center;flex:0 0 46px;width:46px;height:46px;border:1px solid var(--line);border-radius:13px;overflow:hidden;background:#f4f8f5;color:var(--green)}.quick-production-image img{width:100%;height:100%;object-fit:contain}.quick-production-image svg{width:22px;height:22px}.quick-production-product>div:last-child{min-width:0}.quick-production-badges{display:flex;align-items:center;gap:5px;flex-wrap:wrap;margin-bottom:5px}.quick-production-product h4{margin:0;font-size:14px;line-height:1.25}.quick-production-product p{margin:3px 0 0;color:var(--muted);font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:290px}.quick-production-history-pill{flex:0 0 auto;max-width:128px;padding:5px 7px;border-radius:999px;background:#f1f5f2;color:#68756d;font-size:8px;font-weight:750;text-align:center;line-height:1.2}
.quick-production-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.quick-production-metrics>div{min-width:0;padding:9px;border:1px solid var(--line);border-radius:11px;background:#fafcfa}.quick-production-metrics small,.quick-production-metrics strong,.quick-production-metrics span{display:block}.quick-production-metrics small{color:var(--muted);font-size:8px;font-weight:850;text-transform:uppercase;letter-spacing:.05em}.quick-production-metrics strong{margin:4px 0 1px;font-size:16px}.quick-production-metrics span{color:var(--muted);font-size:8px;line-height:1.3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.quick-production-team{display:grid;gap:6px;padding:10px 11px;border-radius:11px;background:#f5f8f6}.quick-production-team>div{display:grid;grid-template-columns:72px minmax(0,1fr);gap:8px;align-items:start}.quick-production-team small{color:var(--muted);font-size:8px;font-weight:800;text-transform:uppercase;letter-spacing:.04em}.quick-production-team strong{min-width:0;font-size:9px;line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.quick-production-warning{display:flex;align-items:center;gap:7px;padding:8px 9px;border:1px solid #ead8a7;border-radius:10px;background:#fff8e5;color:#805d16;font-size:9px;font-weight:700}.quick-production-warning svg{width:14px;height:14px;flex:0 0 auto}.quick-production-card>footer{display:flex;justify-content:space-between;gap:8px;margin-top:auto}.quick-production-card>footer .button{min-height:34px;font-size:10px}.quick-production-card>footer .button svg{width:14px;height:14px}
.production-orders-list{background:#fff}.production-orders-heading{padding:18px 20px 0}.production-orders-list>.list-toolbar{padding-top:12px}
@media(max-width:1280px){.quick-production-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:850px){.quick-production-header{align-items:stretch;flex-direction:column}.quick-production-search{min-width:0;width:100%}.quick-production-grid{grid-template-columns:1fr;max-height:none}.quick-production-metrics{grid-template-columns:1fr 1fr 1fr}}
@media(max-width:560px){.quick-production-header,.quick-production-grid{padding-left:13px;padding-right:13px}.quick-production-metrics{grid-template-columns:1fr}.quick-production-card-head{flex-direction:column}.quick-production-history-pill{max-width:none}.quick-production-card>footer{flex-direction:column}.quick-production-card>footer .button{width:100%}}

/* v247 — BigCommerce sync history */
.bc-history-shell{display:grid;gap:14px;min-height:420px}
.bc-history-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.bc-history-kpis>div{padding:13px 14px;border:1px solid var(--line);border-radius:13px;background:#f8fbf9;display:grid;gap:4px}
.bc-history-kpis span{font-size:9px;font-weight:800;letter-spacing:.05em;text-transform:uppercase;color:var(--muted)}
.bc-history-kpis strong{font-size:22px;letter-spacing:-.03em;color:#214c34}
.bc-history-toolbar{display:grid;grid-template-columns:minmax(280px,1fr) minmax(180px,220px) minmax(160px,200px) auto;gap:10px;align-items:end}
.bc-history-toolbar .field{min-width:0}
.bc-history-toolbar .search-input{position:relative;min-width:0;width:100%}
.bc-history-toolbar .search-input>svg{position:absolute;left:12px;top:50%;transform:translateY(-50%);display:block;width:16px;height:16px;min-width:16px;max-width:16px;pointer-events:none;color:#77837c}
.bc-history-toolbar .search-input>.input{display:block;width:100%;padding-left:38px}
.bc-history-toolbar>.button{min-height:42px}
.bc-history-note{display:flex;align-items:center;gap:7px;padding:9px 11px;border:1px solid #d7e7db;border-radius:11px;background:#f1f8f3;color:#41624d;font-size:10px;font-weight:650}
.bc-history-note svg{width:14px;height:14px;flex:0 0 auto}
.bc-history-table-wrap{max-height:520px;overflow:auto;border:1px solid var(--line);border-radius:13px}
.bc-history-table{min-width:1180px}
.bc-history-table th{position:sticky;top:0;z-index:2;background:#f7faf8}
.bc-history-table td{vertical-align:top}
.bc-history-time,.bc-history-product,.bc-history-trigger,.bc-history-qty{display:grid;gap:3px}
.bc-history-time strong{font-size:10px;white-space:nowrap}.bc-history-time span{font-size:8px;color:var(--muted)}
.bc-history-product strong{font-size:11px;max-width:235px}.bc-history-product code{width:max-content;padding:3px 6px;border-radius:7px;background:#eef4ef;color:#2d5b3d;font-size:9px;font-weight:800}.bc-history-product span{font-size:8px;color:var(--muted)}
.bc-history-direction{display:inline-flex;align-items:center;gap:6px;width:max-content;padding:5px 8px;border-radius:999px;font-size:9px;font-weight:800;white-space:nowrap}.bc-history-direction svg{width:12px;height:12px}.bc-history-direction.outbound{background:#edf7f0;color:#246441}.bc-history-direction.inbound{background:#eef4fb;color:#315f91}
.bc-history-qty small{font-size:8px;color:var(--muted);font-weight:750}.bc-history-qty strong{font-size:13px;white-space:nowrap}.bc-history-qty span{font-size:8px;color:var(--muted)}
.bc-history-delta{display:block;margin-top:4px;color:#276946;font-size:8px;font-weight:800}
.bc-history-trigger strong{font-size:9px;text-transform:capitalize}.bc-history-trigger span{max-width:220px;color:var(--muted);font-size:8px;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.bc-history-status{display:inline-flex;width:max-content;padding:5px 8px;border-radius:999px;font-size:8px;font-weight:850;text-transform:uppercase;letter-spacing:.04em}.bc-history-status.good{background:#e8f6ed;color:#177044}.bc-history-status.bad{background:#fff0ee;color:#a74436}.bc-history-status.muted{background:#f0f2f0;color:#6d7770}.bc-history-status.ready{background:#fff6df;color:#8b6515}
.bc-history-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;color:var(--muted);font-size:10px}.bc-history-pagination>div{display:flex;align-items:center;gap:9px}.bc-history-pagination .button{min-height:32px;padding:6px 10px;font-size:9px}
@media(max-width:900px){.bc-history-kpis{grid-template-columns:1fr 1fr}.bc-history-toolbar{grid-template-columns:1fr 1fr}.bc-history-toolbar .field:first-child{grid-column:1/-1}.bc-history-pagination{align-items:stretch;flex-direction:column}.bc-history-pagination>div{justify-content:space-between}}
@media(max-width:560px){.bc-history-kpis,.bc-history-toolbar{grid-template-columns:1fr}.bc-history-toolbar .field:first-child{grid-column:auto}}

/* v256 — explicit BigCommerce variant-pricing controls.
   This is the sole styling for the new price column; existing stock controls are retained. */
.bc-price-guide{border:1px solid #dbe8df;background:#f6faf7;color:#46554c;border-radius:12px;padding:12px 15px;margin-bottom:15px;font-size:12px;line-height:1.6}
.bc-price-guide strong,.bc-price-guide b{color:#183c29}
.bc-price-progress{margin-top:8px;border-top:1px solid #d7e6dc;padding-top:8px;font-weight:750;color:#17623f}
.bc-panel-actions.bc-price-actions{align-items:center;flex-wrap:wrap;justify-content:flex-end}
.bc-price-actions .button{white-space:nowrap}
.bigcommerce-sync-page .bc-sync-toolbar{grid-template-columns:minmax(250px,1.35fr) repeat(3,minmax(145px,.65fr))}
.bigcommerce-sync-page .bc-sync-table{min-width:1550px}
.bc-pricing-column{min-width:200px;width:210px}
.bc-price-cell{display:flex;flex-direction:column;gap:6px;min-width:175px}
.bc-price-compare{display:flex;align-items:center;justify-content:space-between;gap:8px}
.bc-price-compare strong{font-size:13px;font-variant-numeric:tabular-nums}
.bc-price-pill{font-size:9px;font-weight:750;border-radius:20px;padding:4px 7px;white-space:nowrap}
.bc-price-pill.good{background:#e9f5ee;color:#216b42}
.bc-price-pill.needs{background:#fff0df;color:#905210}
.bc-price-pill.review{background:#f0f2f1;color:#58655d}
.bc-price-secondary{color:#64736a;font-size:10px;line-height:1.35}
.bc-price-edit-row{display:flex;align-items:center;gap:6px;max-width:200px;margin-top:3px}
.bc-price-edit-row>input[type=checkbox]{flex:0 0 16px}
.bc-price-edit-row>span{font-size:11px;font-weight:750;color:#536259}
.bc-price-edit-row>input[type=number]{width:100%;min-width:0;max-width:132px;border:1px solid #cfded4;background:#fff;border-radius:8px;padding:6px 8px;font-size:12px;color:#1a2920;font-variant-numeric:tabular-nums}
.bc-price-edit-row>input[type=number]:focus{outline:2px solid rgba(22,112,74,.2);border-color:#16704a}
.bc-price-edit-row>input:disabled{opacity:.55;cursor:not-allowed}
.bc-price-audit .data-table{min-width:900px}
.bc-price-audit .data-table td{font-size:11px;vertical-align:middle}
@media(max-width:1100px){.bigcommerce-sync-page .bc-sync-toolbar{grid-template-columns:repeat(2,minmax(0,1fr))}.bc-price-actions{width:100%}}
@media(max-width:650px){.bigcommerce-sync-page .bc-sync-toolbar{grid-template-columns:1fr}.bc-panel-actions.bc-price-actions{justify-content:stretch}.bc-price-actions .button{width:100%;justify-content:center}.bc-price-guide{padding:10px 12px}}

/* v257 — Category-first Bulk Pack Pricing. One maintained pricing workspace;
   this is not an overlay on the old matched-inventory table. */
.bc-category-pricing-panel{margin:17px 0 20px;overflow:hidden}
.bc-category-pricing-panel .panel-header{align-items:center;gap:20px}
.bc-category-pricing-panel .panel-header .eyebrow{font-size:9px;letter-spacing:.13em;color:#317452;font-weight:800;margin-bottom:4px}
.bc-category-price-toolbar{display:grid;grid-template-columns:minmax(200px,.8fr) minmax(240px,1.2fr) minmax(190px,.8fr);gap:13px;align-items:end}
.bc-category-price-toolbar .field{min-width:0}
.bc-category-price-toolbar .search-input{position:relative}
.bc-category-price-toolbar .search-input>svg{position:absolute;left:12px;top:50%;transform:translateY(-50%);width:16px;height:16px;color:#6b7d70}
.bc-category-price-toolbar .search-input input{padding-left:38px}
.bc-category-summary{display:flex;gap:8px;flex-wrap:wrap;margin:15px 0;color:#53645b}
.bc-category-summary span{background:#f2f7f3;border:1px solid #e0e9e2;border-radius:9px;padding:7px 10px;font-size:11px}
.bc-category-summary strong{color:#143921;font-variant-numeric:tabular-nums}
.bc-category-actions{display:flex;gap:9px;align-items:center;flex-wrap:wrap;padding:12px 0;border-top:1px solid #e6eee8}
.bc-category-actions .button{font-size:11px;min-height:36px;white-space:nowrap}
.bc-category-actions .bc-category-select{margin-right:auto;display:inline-flex;align-items:center;gap:8px;color:#32493a;font-size:11px;font-weight:700}
.bc-category-actions input[type=checkbox],.bc-category-pack-edit input[type=checkbox]{width:16px;height:16px;accent-color:#197044;flex:0 0 16px}
.bc-category-pricing-panel .bc-price-guide{margin:5px 0 12px;font-size:11px}
.bc-category-pricing-panel .bc-price-progress{background:#f1f8f2;border:1px solid #cddfd0;border-radius:9px;padding:9px 11px;margin:10px 0;color:#17633a;font-size:12px}
.bc-category-product-list{display:grid;grid-template-columns:1fr;gap:13px;margin-top:14px}
.bc-category-product-card{background:#fff;border:1px solid #dbe5de;border-radius:14px;overflow:hidden;box-shadow:0 4px 15px rgba(15,65,30,.03)}
.bc-category-product-head{display:flex;gap:12px;align-items:center;background:#f7faf7;padding:13px 15px;border-bottom:1px solid #e2eae4}
.bc-category-product-head>img,.bc-category-product-placeholder{height:43px;width:43px;object-fit:cover;flex:0 0 43px;border:1px solid #e1e8e2;background:#fff;border-radius:9px}
.bc-category-product-placeholder{display:grid;place-items:center;color:#607e6a}
.bc-category-product-placeholder svg{width:19px;height:19px}
.bc-category-product-head>div{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.bc-category-product-head>div>strong{color:#15271c;font-size:13px}
.bc-category-product-head>div>span{color:#6b7b71;font-size:10px}
.bc-category-erp-open{border:1px solid #dbe7dd;background:#fff;border-radius:9px;color:#2c6945;padding:8px 10px;font-weight:700;font-size:10px;cursor:pointer;display:inline-flex;align-items:center;gap:4px;white-space:nowrap}
.bc-category-erp-open svg{width:13px;height:13px}
.bc-category-pack-list{display:flex;flex-direction:column}
.bc-category-pack-row{display:grid;grid-template-columns:minmax(108px,1.15fr) minmax(110px,1fr) repeat(3,minmax(96px,.8fr)) minmax(210px,1.6fr);align-items:center;gap:10px;padding:11px 14px;min-height:74px;border-bottom:1px solid #edf1ee}
.bc-category-pack-row:last-child{border-bottom:none}
.bc-category-pack-row:nth-child(even){background:#fcfdfc}
.bc-category-pack-id strong{font-size:12px;font-weight:780;color:#172d20;display:block}
.bc-category-pack-id small{font-size:10px;color:#7b877e;display:block;margin-top:3px}
.bc-category-pack-sku code{font-size:10.5px;font-weight:750;color:#264633;background:#eef4ef;border-radius:6px;padding:5px 7px;display:inline-block;word-break:break-all}
.bc-category-col-label{display:block;font-size:9px;letter-spacing:.045em;text-transform:uppercase;color:#84938a;margin-bottom:3px}
.bc-category-pack-price strong{font-size:12px;font-weight:780;color:#1f3225;font-variant-numeric:tabular-nums}
.bc-category-pack-price small{font-size:9px;color:#846620;display:block}
.bc-category-pack-edit{display:flex;align-items:center;gap:9px;justify-content:flex-end;flex-wrap:wrap}
.bc-category-price-input{display:flex;align-items:center;gap:6px}
.bc-category-price-input>span{font-size:11px;font-weight:700;color:#4c6854}
.bc-category-price-input input[type=number]{width:92px;max-width:100%;min-width:0;padding:8px;border:1px solid #cfded1;border-radius:8px;background:#fff;color:#182a1d;font-size:12px;font-variant-numeric:tabular-nums}
.bc-category-price-input input[type=number]:focus{outline:2px solid rgba(22,112,74,.18);border-color:#16704a}
.bc-category-unlinked{font-size:10px;color:#7b877c}

.bc-price-source-note{padding:10px 12px;margin:9px 0 12px;background:#f7faf8;border:1px solid #e0e9e2;border-radius:9px;color:#516458;font-size:11px;line-height:1.6}
.bc-price-remote-sku{display:block;margin-top:8px;font-size:10px;line-height:1.4;color:#526c5a;word-break:break-word}
.bc-price-remote-sku b{font-weight:750;color:#214a32}
.bc-price-link-button{border:1px solid #cbdccf;background:#fff;color:#245d3c;border-radius:8px;padding:7px 10px;font-weight:730;font-size:10px;cursor:pointer;display:inline-flex;align-items:center;gap:5px;max-width:100%;white-space:nowrap}
.bc-price-link-button svg{width:13px;height:13px;flex:none}
.bc-price-link-button:hover{border-color:#729e80;background:#f1f7f3}
.bc-import-price-btn{font-size:10px!important;white-space:nowrap}
.bc-price-link-dialog{display:grid;gap:15px}
.bc-price-link-dialog p{margin:0;color:#3a5340;line-height:1.6}
.bc-price-link-dialog code{padding:2px 5px;background:#edf4ee;border-radius:5px}
.bc-price-link-dialog .field{display:grid;gap:5px}
.bc-price-link-dialog select[size]{min-height:210px;height:210px;max-height:50vh;overflow:auto;padding:4px;font-size:12px;line-height:1.55}
.bc-price-link-dialog select[size] option{padding:7px;white-space:normal}
.bc-price-link-warning{background:#f4f8f4;border:1px solid #e1eae1;border-radius:9px;padding:10px;font-size:11px;color:#4d6251;line-height:1.6}

.bc-category-pack-row.is-unlinked{background:#fafbfa}
.bc-category-pack-edit .bc-price-pill{font-size:9px}
.bc-category-empty{padding:12px;background:#fff;border:1px solid #e3eae4;border-radius:12px}
@media(max-width:1180px){.bc-category-pack-row{grid-template-columns:minmax(100px,1fr) minmax(105px,1fr) repeat(3,minmax(80px,.75fr)) minmax(175px,1.4fr);gap:8px}.bc-category-price-input input[type=number]{width:75px}}
@media(max-width:900px){.bc-category-price-toolbar{grid-template-columns:repeat(2,minmax(0,1fr))}.bc-category-price-toolbar .field:nth-child(2){grid-column:span 1}.bc-category-pack-row{grid-template-columns:repeat(3,minmax(0,1fr));align-items:start;gap:12px}.bc-category-pack-edit{grid-column:span 3;justify-content:flex-start;padding-top:8px;border-top:1px dashed #e3eae4}.bc-category-pack-price{min-width:0}}
@media(max-width:620px){.bc-category-price-toolbar{grid-template-columns:1fr}.bc-category-price-toolbar .field:nth-child(2){grid-column:auto}.bc-category-product-head{flex-wrap:wrap}.bc-category-erp-open{margin-left:55px}.bc-category-pack-row{grid-template-columns:repeat(2,minmax(0,1fr));padding:12px}.bc-category-pack-edit{grid-column:1/-1}.bc-category-pack-sku code{word-break:break-word}.bc-category-actions .bc-category-select{flex:1 0 100%}.bc-category-actions .button{flex:1 1 170px;white-space:normal}.bc-category-pricing-panel .panel-header{flex-wrap:wrap}}

/* v259 - Category-wide pack price editor. Reuses existing BigCommerce board. */
.bc-multi-price-editor{margin:15px 0 17px;padding:18px;background:#f8fbf8;border:1px solid #d9e6dc;border-radius:15px;box-shadow:0 5px 18px rgba(18,67,37,.035)}
.bc-multi-price-header{display:flex;justify-content:space-between;align-items:flex-start;flex-wrap:wrap;gap:14px;margin-bottom:16px}
.bc-multi-price-header h3{margin:3px 0 5px;font-size:17px;line-height:1.3;font-weight:780;color:#172e21}
.bc-multi-price-header p{margin:0;max-width:800px;color:#687b6e;font-size:11px;line-height:1.6}
.bc-multi-price-header .eyebrow{font-size:9px;letter-spacing:.13em;color:#2d7750;font-weight:790}
.bc-bulk-select-all{display:inline-flex;align-items:center;gap:8px;padding:10px 12px;border-radius:9px;border:1px solid #d2e0d5;background:#fff;font-size:11px;font-weight:750;color:#275c3c;cursor:pointer;white-space:nowrap}
.bc-bulk-select-all input,.bc-bulk-product-check input{width:17px;height:17px;accent-color:#177447;cursor:pointer}
.bc-bulk-product-check{display:flex;align-items:center;padding:5px;cursor:pointer}
.bc-bulk-pack-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px}
.bc-bulk-price-field{display:flex;flex-direction:column;gap:3px;background:#fff;border:1px solid #dae5dc;border-radius:11px;padding:12px 13px;min-width:0}
.bc-bulk-price-field>span{font-size:13px;color:#1d3525;font-weight:800}
.bc-bulk-price-field>small{font-size:10px;color:#748679;min-height:14px}
.bc-bulk-price-field>div{display:flex;align-items:center;gap:7px;margin-top:7px}
.bc-bulk-price-field b{font-size:13px;color:#347449}
.bc-bulk-price-field input{width:100%;min-width:0;border:1px solid #cfddd2;border-radius:8px;padding:10px 11px;font-size:13px;background:#fff;color:#193120;font-variant-numeric:tabular-nums}
.bc-bulk-price-field input:focus{outline:2px solid rgba(31,117,70,.16);border-color:#19804a}
.bc-multi-price-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:16px;flex-wrap:wrap}
.bc-multi-price-footer [data-bulk-price-summary]{font-size:11px;color:#4c6554;line-height:1.7;flex:1;min-width:200px}
.bc-multi-price-footer .button{white-space:nowrap}
.bc-multi-price-help{font-size:10px;color:#708176;line-height:1.65;margin-top:10px;border-top:1px solid #e0eae1;padding-top:11px}
.bc-bulk-placeholder{padding:14px;color:#647a6b;background:#fff;border:1px dashed #cfdfd3;border-radius:9px;font-size:12px;margin:0;grid-column:1/-1}
@media(max-width:620px){.bc-multi-price-editor{padding:13px}.bc-multi-price-header{flex-direction:column}.bc-bulk-select-all{width:100%;justify-content:center}.bc-bulk-pack-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.bc-bulk-price-field{padding:10px}.bc-multi-price-footer .button{width:100%;white-space:normal}}
@media(max-width:370px){.bc-bulk-pack-fields{grid-template-columns:1fr}}

.bc-bulk-preview>p{font-size:12px;color:#465c4c;line-height:1.6;margin:0 0 13px}
.bc-bulk-preview-table{overflow:auto;max-height:min(52vh,520px);border:1px solid #e2e9e3;border-radius:10px}
.bc-bulk-preview-table table{min-width:620px}
.bc-bulk-preview-table td,.bc-bulk-preview-table th{font-size:11px;padding:10px}
.bc-bulk-preview-table td small{display:block;font-size:9px;color:#6b806f;margin-top:3px}
.bc-bulk-preview-warning{margin-top:12px!important;color:#8e5c15!important;background:#fff6e9;padding:10px;border-radius:8px}
