/* GSX workspace design tokens. All fonts and artwork are local or system supplied.
   Approved logos attach to [data-brand-slot="logo"]; future product media can use
   .product-artwork. No official logo or external artwork is bundled. */
:root {
  --canvas: #f3f5f1;
  --surface: #ffffff;
  --surface-soft: #f8faf7;
  --ink: #202a25;
  --muted: #627067;
  --line: #dee5de;
  --green: #276344;
  --green-deep: #183e2c;
  --green-soft: #edf5ed;
  --charcoal: #1c2420;
  --nav-width: 226px;
  --radius: 12px;
  font-family: "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
  color: var(--ink);
  background: var(--canvas);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; padding-left: var(--nav-width); }
a { color: var(--green); text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea, summary, [tabindex] { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #83ad87; outline-offset: 3px; }
section, h2, #trace-batch { scroll-margin-top: 24px; }

/* Application shell */
.workspace-nav {
  position: fixed; inset: 0 auto 0 0; width: var(--nav-width); z-index: 20;
  background: var(--charcoal); color: #d5dfd7; display: flex; flex-direction: column;
  padding: 30px 15px 20px; gap: 5px; overflow-y: auto;
}
.workspace-nav .brand-slot { padding: 0 14px 30px; color: #f6f8f4; text-decoration: none; display: block; }
.brand-slot strong { font-size: 32px; font-weight: 750; letter-spacing: -1.5px; }
.brand-slot strong span { font-size: 13px; letter-spacing: .1px; color: #c2d9bb; margin-left: 9px; padding: 3px 7px; border: 1px solid #4c6051; border-radius: 5px; vertical-align: middle; }
.brand-slot small { display: block; color: #9caea0; font-size: 8px; letter-spacing: 1.4px; margin-top: 9px; }
.nav-label { font-size: 9px; font-weight: 700; letter-spacing: 1.8px; color: #93a096; padding: 10px 14px 13px; }
.workspace-nav a[data-nav] { display: flex; align-items: center; gap: 12px; padding: 12px 14px; min-height: 44px; border-radius: 7px; text-decoration: none; color: #bfcbc1; font-size: 13px; font-weight: 500; border: 1px solid transparent; }
.workspace-nav svg { width: 18px; height: 18px; flex: 0 0 18px; opacity: .8; }
.workspace-nav a[data-nav]:hover { background: #2b3630; color: white; }
.workspace-nav a[aria-current=page] { background: #344e3b; color: #e7f3e1; border-color: #48644b; box-shadow: inset 3px 0 #aec994; }
.workspace-nav a[aria-current=page] svg { opacity: 1; }
.nav-footer { margin-top: auto; border-top: 1px solid #39443d; padding: 22px 10px 0; display: flex; gap: 10px; align-items: center; }
.nav-footer strong { font-size: 10px; font-weight: 500; color: #c7d2c8; }
.nav-footer small { font-size: 9px; color: #9caba0; margin-top: 5px; }
.environment-dot { display: inline-block; width: 7px; height: 7px; background: #a6c791; border-radius: 50%; flex: 0 0 7px; box-shadow: 0 0 0 4px #b6d99c13; }
header { padding: 25px 38px 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); background: #fbfcfa; }
.breadcrumb { font-size: 10px; font-weight: 600; color: var(--muted); letter-spacing: .2px; }
.breadcrumb > span:first-child { padding: 0 10px; color: #b0bab1; }
h1 { margin: 10px 0 6px; font-size: 29px; font-weight: 650; letter-spacing: -1px; line-height: 1.2; }
header p { font-size: 12px; margin: 0; }
.environment { display: flex; align-items: center; gap: 12px; padding-left: 22px; border-left: 1px solid var(--line); flex-shrink: 0; }
.environment .environment-dot { background: var(--green); }
.environment strong { font-size: 11px; font-weight: 600; }
.environment small { font-size: 10px; margin-top: 4px; }
main { max-width: 1550px; margin: auto; padding: 22px 38px 50px; min-width: 0; }
.notice { margin: 0; padding: 10px 14px; border: 1px solid #dce4d5; border-radius: 7px; background: #eef2e8; color: #59664f; font-size: 11px; line-height: 1.5; }
#status { min-height: 17px; margin: 10px 1px 20px; font-size: 11px; color: var(--muted); }
#section-nav { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 20px; }
#section-nav a { padding: 8px 11px; font-size: 11px; text-decoration: none; color: var(--muted); border: 1px solid transparent; border-radius: 6px; }
#section-nav a:hover, #section-nav a[aria-current] { background: white; border-color: var(--line); color: var(--green); }

/* Consistent workspaces and forms */
main > section:not(.forms), article { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin-bottom: 22px; box-shadow: 0 2px 4px #24312603; min-width: 0; }
h2 { font-size: 19px; font-weight: 650; letter-spacing: -.4px; margin: 0 0 10px; }
h3 { font-size: 14px; font-weight: 650; margin: 27px 0 14px; letter-spacing: -.1px; }
p { font-size: 12px; line-height: 1.7; color: var(--muted); }
small { display: block; color: var(--muted); font-size: 10px; font-weight: 400; margin-top: 6px; line-height: 1.5; }
.eyebrow { font-size: 9px; font-weight: 650; letter-spacing: 1.5px; color: var(--muted); }
.forms, .form-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; align-items: start; }
.forms article { padding: 22px; }
.forms h2 { font-size: 15px; margin-bottom: 18px; }
form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 17px 20px; padding: 22px; margin: 18px 0 24px; background: var(--surface-soft); border: 1px solid #e1e7de; border-radius: 9px; align-items: start; min-width: 0; }
form:last-child { margin-bottom: 0; }
form > h3, form > p, form > div, form > fieldset, form > button { grid-column: 1 / -1; }
form > h3 { margin: 0 0 4px; }
form > p { margin: 0; }
.forms form { display: block; border: 0; padding: 0; background: none; margin: 0; }
.forms label { margin-bottom: 15px; }
.form-grid form { grid-template-columns: 1fr; margin: 0; height: 100%; }
.transfer-form, .adjustment-form, .reservation-form { grid-template-columns: repeat(3,minmax(0,1fr)); }
label { display: block; font-size: 11px; font-weight: 600; line-height: 1.5; color: #435247; min-width: 0; }
input, select, textarea { width: 100%; min-width: 0; min-height: 42px; margin-top: 7px; border: 1px solid #cbd5cb; border-radius: 6px; color: var(--ink); background: white; padding: 10px 12px; font-size: 12px; font-weight: 400; line-height: 1.4; transition: border-color .12s, box-shadow .12s; }
input::placeholder, textarea::placeholder { color: #8c998e; }
input:hover, select:hover, textarea:hover { border-color: #92a595; }
input:focus, select:focus, textarea:focus { border-color: #57835f; outline: 0; box-shadow: 0 0 0 3px #5482631c; }
textarea { min-height: 110px; resize: vertical; }
button { width: fit-content; max-width: 100%; padding: 11px 18px; min-height: 42px; border: 1px solid transparent; border-radius: 6px; background: var(--green); color: white; font-size: 11px; font-weight: 600; line-height: 1.5; cursor: pointer; transition: background .12s, border-color .12s; }
button:hover:not(:disabled) { background: #1c4d33; }
button[type=button] { background: white; color: var(--green); border-color: #cad9cb; }
button[type=button]:hover:not(:disabled) { background: #edf3eb; border-color: #7fa386; }
button:disabled { opacity: .5; cursor: not-allowed; }
fieldset { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 15px; border: 1px solid #d6e0d3; border-radius: 8px; padding: 18px; margin: 12px 0; min-width: 0; background: #ffffffa6; }
fieldset legend { padding: 0 7px; color: var(--green); font-size: 10px; font-weight: 650; }
fieldset button { align-self: end; min-height: 36px; }
fieldset.reservation-form { margin-top: 12px; }
#consumption-lines, #package-lines, #order-lines { min-width: 0; }
#package-availability, #fulfill-review, #reservation-availability, #count-comparison, #count-review, #trace-summary { padding: 12px 15px; border-left: 3px solid #9ab587; background: #eef3e9; border-radius: 0 5px 5px 0; font-size: 11px; overflow-wrap: anywhere; }
.legacy-note { border-left: 2px solid #bac5bb; padding: 2px 0 2px 12px; font-size: 11px; }
[role=status] { overflow-wrap: anywhere; font-size: 11px; }
[role=status]:empty { display: none; }
.error, [role=status].error, #status.error { color: #943a32; background: #fcf0ee; border: 1px solid #eed5cf; padding: 12px 14px; border-radius: 6px; }
.success { color: #2b6040; background: #edf6ed; border: 1px solid #d3e6d2; padding: 12px 14px; border-radius: 6px; }

/* Tables preserve all values, with keyboard-accessible horizontal scrolling. */
.table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; margin: 18px 0; scrollbar-color: #b9c8b9 #f5f7f3; scrollbar-width: thin; }
.table-wrap:last-child { margin-bottom: 0; }
table { border-collapse: collapse; width: 100%; min-width: 680px; font-size: 11px; text-align: left; }
th { background: #f5f7f2; padding: 12px 15px; font-size: 9px; font-weight: 650; letter-spacing: .5px; text-transform: uppercase; color: #65715e; white-space: nowrap; border-bottom: 1px solid var(--line); }
td { padding: 14px 15px; border-bottom: 1px solid #e9eee6; color: #3e4c42; vertical-align: top; line-height: 1.55; max-width: 350px; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
tr:last-child td { border-bottom: 0; }
tr:nth-child(even) td { background: #fcfdfb; }
tr:hover td { background: #f3f7f0; }
td[colspan], .empty { text-align: center; color: #7a887b; padding: 28px 18px; font-size: 11px; }
.identifier { font-family: Consolas, monospace; font-size: 10px; min-width: 125px; max-width: 165px; color: #73806f; }
.identifier a { color: #526a4c; }
.status-cell { white-space: nowrap; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 5px; background: #edf1ec; color: #5c6a5d; font-size: 10px; font-weight: 600; text-transform: capitalize; white-space: nowrap; }
.status-pill::before { content: ''; width: 5px; height: 5px; background: currentColor; border-radius: 50%; flex-shrink: 0; }
.status-pill:is([data-state=passed],[data-state=completed],[data-state=confirmed],[data-state=shipped]) { color: #31673e; background: #eaf3e5; }
.status-pill:is([data-state=pending],[data-state=partially_shipped],[data-state=draft]) { color: #896329; background: #f8f0df; }
.status-pill[data-state=failed] { color: #9b433c; background: #faeae5; }
.status-pill:is([data-state=reserved],[data-state=in_progress]) { color: #46694d; background: #e9f0e8; }
.status-pill:is([data-state=released],[data-state=canceled],[data-state=closed_with_releases]) { color: #667267; background: #eef1ec; }
summary { cursor: pointer; white-space: nowrap; color: var(--green); font-size: 10px; }
.audit-ids { min-width: 225px; font-family: Consolas, monospace; font-size: 10px; }
.audit-ids p { font-size: 10px; margin: 7px 0; }
.transfer-history { min-width: 1120px; }
.adjustment-history, .reservation-history { min-width: 1300px; }
.transfer-history th, .adjustment-history th, .reservation-history th { min-width: 105px; }
.balance-table { min-width: 850px; }
.balance-table td:nth-child(n+4):nth-child(-n+6) { white-space: nowrap; font-weight: 600; }

/* Overview */
main > #overview { border: 0; background: transparent; box-shadow: none; padding: 0; }
.overview-hero { display: flex; justify-content: space-between; align-items: center; gap: 30px; padding: 30px 32px; border-radius: var(--radius); color: #f0f4e9; background: linear-gradient(115deg,#263e2c,#203128); position: relative; overflow: hidden; border: 1px solid #304b34; }
.overview-hero::after { content: ''; width: 210px; height: 210px; border: 1px solid #b2ca9d16; border-radius: 50%; position: absolute; right: -65px; top: -95px; pointer-events: none; box-shadow: 0 0 0 40px #b2ca9d05,0 0 0 80px #b2ca9d04; }
.overview-hero .eyebrow { color: #b1c9a2; font-size: 8px; }
.overview-hero h2 { font-size: 28px; line-height: 1.2; letter-spacing: -.8px; font-weight: 550; margin: 12px 0 10px; }
.overview-hero p { color: #b7c7b5; font-size: 12px; margin: 0; line-height: 1.75; }
.hero-actions { display: grid; gap: 9px; flex-shrink: 0; z-index: 1; }
.hero-actions a { display: flex; justify-content: space-between; gap: 24px; font-size: 11px; font-weight: 600; padding: 11px 14px; border-radius: 6px; background: #bdcfaa; color: #263b26; border: 1px solid #bdcfaa; text-decoration: none; }
.hero-actions a:last-child { background: transparent; color: #d8e2ce; border-color: #627359; }
.hero-actions a:hover { filter: brightness(1.1); }
.section-caption { display: flex; justify-content: space-between; align-items: baseline; margin: 27px 0 13px; }
.section-caption h3 { margin: 0; font-size: 13px; }
.section-caption > span, .panel-meta { font-size: 10px; color: #7c887b; }
.metric-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; }
.metric-card { display: flex; flex-direction: column; text-decoration: none; padding: 19px 20px; border: 1px solid var(--line); border-radius: 9px; background: white; color: var(--ink); transition: border-color .12s,box-shadow .12s; }
.metric-card:hover { border-color: #96ad8b; box-shadow: 0 3px 12px #34463009; }
.metric-top { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.metric-top > span:first-child { font-size: 11px; font-weight: 500; color: #65705e; }
.metric-icon { width: 28px; height: 28px; border-radius: 6px; background: #f0f4ed; color: #6c8460; display: grid; place-items: center; }
.metric-icon svg { width: 16px; height: 16px; }
.metric-card strong { font-size: 32px; letter-spacing: -1px; font-weight: 600; margin: 5px 0 1px; line-height: 1.3; font-variant-numeric: tabular-nums; }
.metric-card small { font-size: 9px; color: #83907d; margin: 0; }
.metric-card[data-metric=held] .metric-icon { background: #f6f0df; color: #8c743d; }
.workflow-strip { display: flex; justify-content: space-between; gap: 8px; padding: 16px 4px; margin: 10px 0 18px; }
.workflow-strip a { display: flex; align-items: center; gap: 8px; color: #627258; font-size: 10px; text-decoration: none; }
.workflow-strip a:hover { color: var(--green); text-decoration: underline; }
.step-number { font-size: 9px; color: #879780; font-variant-numeric: tabular-nums; }
.step-arrow { color: #9caa95; margin-left: 5px; }
.workflow-strip a:last-child .step-arrow { display: none; }
.dashboard-panels { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(0,1fr); gap: 18px; margin-bottom: 18px; }
.dashboard-panel { padding: 22px; margin: 0; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.panel-heading h3 { margin: 6px 0 0; font-size: 14px; }
.panel-heading .eyebrow { font-size: 8px; }
.dashboard-panel > p { font-size: 11px; margin-top: 13px; }
.text-link { color: #57734a; font-size: 10px; text-decoration: none; white-space: nowrap; }
.text-link:hover { text-decoration: underline; }
.dashboard-panel .table-wrap { margin-top: 17px; }
.dashboard-panel table { min-width: 560px; }
#reconciliation-summary { background: #f2f6ed; border: 1px solid #e1e9d9; border-radius: 8px; margin: 20px 0; padding: 20px 18px; display: flex; align-items: flex-start; gap: 13px; }
#reconciliation-summary p { font-size: 11px; margin: 0; color: #5c7151; line-height: 1.7; }
.health-symbol { width: 23px; height: 23px; flex: 0 0 23px; border-radius: 50%; background: #dfead5; color: #587441; display: grid; place-items: center; font-size: 12px; font-weight: 700; }
#reconciliation-summary.needs-review { background: #f9efe6; border-color: #ebdbca; }
#reconciliation-summary.needs-review p { color: #8c6345; }
#reconciliation-summary.needs-review .health-symbol { background: #efd9bf; color: #8c6345; }
.activity-panel { margin-top: 0; }
.product-artwork { aspect-ratio: 1; object-fit: contain; border-radius: 8px; background: var(--surface-soft); }

@media (min-width:1500px) { .metric-grid { grid-template-columns: repeat(6,minmax(0,1fr)); } .metric-card { padding: 18px 15px; } .metric-icon { display:none; } }
@media (max-width:1200px) { :root { --nav-width: 192px; } header { padding: 23px 28px; } main { padding: 20px 28px 40px; } .form-grid, .forms { grid-template-columns: 1fr; } .form-grid form { grid-template-columns: repeat(2,minmax(0,1fr)); } .forms form { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px 20px; } .forms label { margin:0; } .dashboard-panels { grid-template-columns:1fr; } .forms article { margin-bottom:0; } .forms { margin-bottom:22px; } }
@media (max-width:950px) { .transfer-form, .adjustment-form, .reservation-form, fieldset { grid-template-columns: repeat(2,minmax(0,1fr)); } .overview-hero { padding:25px; } .overview-hero h2 { font-size:24px; } .hero-actions a { gap:14px; } .environment { border:0; padding:0; } .environment strong { font-size:10px; } .metric-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } .workflow-strip { flex-wrap:wrap; justify-content:flex-start; gap:12px 20px; } }
@media (max-width:760px) {
 body { padding-left:0; }
 .workspace-nav { position:static; width:100%; padding:18px 18px 10px; flex-direction:row; flex-wrap:wrap; gap:3px; overflow:visible; }
 .workspace-nav .brand-slot { width:100%; padding:0 8px 12px; display:flex; gap:18px; align-items:center; }
 .brand-slot strong { font-size:27px; }
 .brand-slot small { margin:0; font-size:8px; }
 .nav-label,.nav-footer { display:none; }
 .workspace-nav a[data-nav] { padding:9px 10px; min-height:36px; font-size:11px; gap:7px; }
 .workspace-nav svg { width:14px; height:14px; flex-basis:14px; }
 header { padding:22px 24px; align-items:flex-start; }
 h1 { font-size:26px; }
 header p { max-width:290px; font-size:11px; }
 .environment { margin-top:5px; gap:8px; }
 .environment strong { font-size:9px; }
 .environment small { font-size:9px; }
 main { padding:18px 22px 35px; }
 .notice { font-size:10px; }
 main>section:not(.forms),article { padding:22px; }
 main>#overview { padding:0; }
 .overview-hero { gap:22px; }
 .overview-hero h2 { font-size:23px; }
 .overview-hero p { font-size:11px; }
 .hero-actions a { font-size:10px; padding:10px 12px; }
 .metric-card { padding:16px; }
 .metric-card strong { font-size:29px; }
 form,.transfer-form,.adjustment-form,.reservation-form,fieldset,.form-grid form,.forms form { grid-template-columns:1fr; }
 form { padding:18px; }
 .form-grid { gap:16px; }
 #section-nav { flex-wrap:nowrap; overflow:auto; padding-bottom:6px; }
 #section-nav a { white-space:nowrap; }
}
@media (max-width:520px) {
 .workspace-nav { padding:14px 12px 9px; }
 .workspace-nav a[data-nav] { flex:1 0 21%; justify-content:center; gap:5px; font-size:10px; padding:8px 5px; }
 .workspace-nav svg { display:none; }
 header { padding:20px 18px; }
 .environment { display:none; }
 main { padding:15px 16px 30px; }
 .overview-hero { display:block; padding:24px; }
 .hero-actions { grid-template-columns:1fr 1fr; margin-top:22px; gap:10px; }
 .hero-actions a { gap:8px; }
 .metric-grid { gap:10px; }
 .metric-card { padding:14px; }
 .metric-icon { display:none; }
 .metric-top > span:first-child { font-size:10px; }
 .metric-card small { font-size:9px; }
 .panel-heading { align-items:flex-start; flex-wrap:wrap; }
 .dashboard-panel table { min-width:550px; }
 .brand-slot small { letter-spacing:1px; }
}
@media (prefers-reduced-motion:reduce) { * { transition:none!important; scroll-behavior:auto!important; } }
/* Draft label previews are deliberately enlarged and never invoke printing. */
.label-preview-row { display:flex; gap:12px; overflow-x:auto; padding:20px; background:#eef3ef; border:1px solid #d7e2da; border-radius:12px; }
.label-sticker { box-sizing:border-box; flex-shrink:0; width:360px; min-height:240px; padding:14px; background:white; color:#17251c; border:1px dashed #64806c; }
.label-sticker[data-template=hammer] { width:400px; min-height:300px; }
.label-sticker h3 { margin:0 0 8px; font-size:20px; }
.label-sticker p { margin:5px 0; font-size:13px; overflow-wrap:anywhere; }
.label-sticker p:last-child { font-weight:700; color:#854622; }
.label-copy-summary { font-weight:700; font-size:18px; }
#catalog-documents button { margin:4px 0; }
#catalog-products td { max-width:360px; white-space:normal; overflow-wrap:anywhere; }
/* Keep SKU identifiers intact; the existing wrapper scrolls on narrow screens. */
#catalog-heading > .table-wrap > table { min-width:880px; }
#catalog-heading > .table-wrap > table th:nth-child(2),
#catalog-products td:nth-child(2) { width:144px; min-width:144px; white-space:nowrap; overflow-wrap:normal; word-break:normal; }
.delivery-page #review, .delivery-page #links, .delivery-page #history { overflow-x:auto; }
.delivery-page #review table, .delivery-page #history table { min-width:1250px; }
.delivery-page #review td { white-space:nowrap; }
.delivery-page #exceptions td { max-width:460px; overflow-wrap:anywhere; }
.delivery-page #exceptions button { display:block; margin-top:10px; }
.delivery-page fieldset { border:1px solid var(--border,#cbd6ce); border-radius:10px; padding:18px; margin-bottom:16px; }
.delivery-page .readiness { padding:12px; border-left:4px solid #a17432; background:#f5f0e6; }
.delivery-page .readiness[data-state=passed] { border-color:#357358; background:#eaf3ee; }
.queue-page header { flex-wrap:wrap; }
.queue-page header > * { min-width:0; max-width:100%; overflow-wrap:anywhere; }
@media (max-width:600px) { .queue-page header { flex-direction:column; align-items:stretch; } }
.morning-briefing { border-top: 4px solid #476e4c; }
.morning-briefing h2 { font-size: clamp(20px, 2.5vw, 28px); }
.morning-actions { list-style: none; padding: 0; display: grid; gap: 10px; }
.morning-actions a { display: block; padding: 12px 14px; min-height: 44px; font-size: 15px; line-height: 1.5; border: 1px solid #cad8cb; border-radius: 8px; background: #f3f7f1; overflow-wrap: anywhere; }
.morning-actions a:focus-visible { outline: 3px solid #476e4c; outline-offset: 2px; }
#overview-morning > p, #morning > p { font-size: 14px; line-height: 1.6; }
#overview-morning details, #morning details { margin: 16px 0; }

.customer-order-page #decisions { display:flex; flex-wrap:wrap; gap:12px; margin:18px 0; }
.customer-order-page #orders { display:grid; gap:16px; }
.customer-order-page #orders article { border:1px solid var(--border); padding:16px; border-radius:10px; overflow-wrap:anywhere; }
.customer-order-page #totals { padding:16px; background:#edf4eb; font-weight:650; border-radius:8px; }
.customer-order-page .order-lines fieldset label:first-of-type { grid-column:1 / -1; }

/* Fast customer review; detailed editing is opt-in. */
.customer-order-page { padding-left:0; }
.customer-order-page main { max-width:1100px; padding:16px 24px 32px; }
.customer-order-page header { padding:12px 24px; }
.customer-order-page header h1 { font-size:24px; }
.customer-order-page #inventory-source-notice { display:none; } /* Equivalent concise policy notice remains visible. */
.customer-order-page .order-safety { font-size:13px; margin:0 0 8px; }
.customer-order-page #new { float:right; margin-bottom:8px; }
.customer-order-page .mike-order-request { clear:both; padding:12px 16px; margin-bottom:12px; }
.customer-order-page #request { grid-template-columns:1fr auto; align-items:end; padding:0; border:0; margin:0; background:none; }
.customer-order-page #request button { grid-column:auto; }
.customer-order-page #request textarea { min-height:60px; height:60px; }
.customer-order-page label,.customer-order-page input,.customer-order-page select,.customer-order-page textarea { font-size:16px; }
.customer-order-page button { font-size:16px; min-height:44px; }
.customer-order-page #review-card { padding:18px 22px; border:2px solid #b6cbb7; margin-bottom:16px; }
.customer-order-page #review-card h2 { font-size:26px; margin-bottom:4px; }
.customer-order-page #review-card p { font-size:16px; margin:5px 0; }
.customer-order-page #review-card small { font-size:12px; }
.customer-order-page .review-product { display:grid; grid-template-columns:minmax(160px,1fr) 90px 120px 110px; gap:12px; padding:10px 0; border-bottom:1px solid var(--line); font-size:18px; }
.customer-order-page #review-card .review-total { font-size:26px; font-weight:750; color:var(--green-deep); margin:12px 0 6px; }
.customer-order-page #review-card #status { font-size:16px; color:#733b12; font-weight:600; margin:8px 0; }
.customer-order-page #decisions { margin:12px 0 0; }
.customer-order-page .quick-price-form { margin:10px 0; padding:12px; gap:10px; }
@media(max-width:650px) {
 .customer-order-page main { padding:12px; }
 .customer-order-page #request { grid-template-columns:1fr; }
 .customer-order-page header { gap:8px; }
 .customer-order-page header p { display:none; }
 .customer-order-page #review-card { padding:16px; }
 .customer-order-page .review-product { grid-template-columns:1fr 1fr; gap:6px; }
 .customer-order-page .review-product > strong:first-child { grid-column:1 / -1; }
 .customer-order-page .review-product > strong:last-child { grid-column:2; text-align:right; }
 .customer-order-page #decisions button { flex:1; }
}
.customer-order-page #decisions [data-approve]{background:#245b43;color:white;border-color:#245b43}
.customer-order-page #decisions [data-approve]:disabled{opacity:.45}
.packing-page .packing-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:12px}
.packing-page article{padding:16px;border:1px solid var(--border);border-radius:12px;background:white}
.packing-page article h2{font-size:21px;margin-bottom:6px}
.packing-page article p{margin:6px 0;font-size:16px}
.packing-page .packing-brief{font-size:20px;font-weight:700}
.packing-page #work{border:2px solid #b6cbb7;padding:18px}
.packing-page #work h2{font-size:26px;margin-bottom:6px}
.packing-page #work p{margin:6px 0;font-size:17px}
.packing-page .pack-form{padding:0;background:none;border:0;gap:10px}
.packing-page fieldset{display:grid;grid-template-columns:2fr 1fr;gap:12px;padding:12px}
.packing-page input[type=checkbox]{width:24px;height:24px;vertical-align:middle;margin:0 12px}
.packing-page button{margin:8px 8px 8px 0}
.packing-page article a{display:block;margin-top:12px}
@media(max-width:650px){.packing-page .packing-cards{grid-template-columns:1fr}.packing-page fieldset{grid-template-columns:1fr}.packing-page #work{padding:12px}}
#language-choices fieldset { display:flex; flex-wrap:wrap; gap:.6rem; margin:.5rem 0; }
#language-choices button[aria-pressed="true"] { outline:3px solid #236747; background:#dcefe4; color:#173c2c; }
#language-status:not(:empty) { font-size:1.05rem; font-weight:600; }
#mike-chat { max-width:960px; margin:0 auto 1.5rem; }
#chat-form { display:flex; gap:12px; align-items:end; }
#chat-form label { flex:1; }
#chat-form textarea { min-height:80px; width:100%; }
#chat-messages { max-height:none; overflow-y:visible; overflow-wrap:anywhere; }
.chat-answer { background:#f2f7f3; border-left:4px solid #2d6548; padding:16px; margin:12px 0; border-radius:8px; }
.chat-answer a,.chat-answer button { margin:8px; }
.chat-answer small { display:block; color:#526057; }
@media(max-width:600px){#chat-form{display:block}#chat-form button{width:100%}.chat-answer{padding:12px}}

/* Mike: readable conversation, including narrow touch screens. */
#mike-chat {font-family:Arial,Helvetica,sans-serif;color:#172d24;font-size:17px;line-height:1.55;min-width:0;max-width:100%;box-sizing:border-box;}
#mike-chat p,#mike-chat small,#mike-chat label {font-size:1em;line-height:1.55;color:#253e32;}
#mike-chat .chat-answer {background:#fff;border:1px solid #bbcbbf;border-left:4px solid #286344;padding:18px;margin:16px 0;overflow-wrap:anywhere;}
#mike-chat .chat-question {background:#e3eee7;border-radius:12px;padding:14px 18px;margin:20px 0 8px 24px;color:#142d20;}
#mike-chat a {color:#135d37;text-decoration:underline;text-underline-offset:3px;display:inline-block;padding:10px 0;}
#mike-chat textarea,#mike-chat button {font:inherit;min-height:48px;max-width:100%;box-sizing:border-box;}
#mike-chat textarea {width:100%;color:#172d24;background:#fff;padding:12px;}
#mike-chat #chat-budget {display:block;color:#354c40;font-size:16px;}
#mike-chat #chat-messages {max-width:75ch;overflow-wrap:anywhere;}
@media(max-width:640px){#mike-chat{font-size:18px;padding:16px;}#mike-chat .chat-answer{padding:14px;}#mike-chat .chat-question{margin-left:12px;}#chat-form{display:block;}#chat-form button{width:100%;margin-top:12px;}}

/* Owner catalog review: readable cards without exposing internal identifiers. */
.catalog-review-page { font-size:16px; line-height:1.5; }
.catalog-review-page #products > section { padding:1rem; margin:1rem 0; border:1px solid #cbd5cb; border-radius:10px; background:#fff; }
.catalog-review-page input[type=checkbox] { width:24px; height:24px; min-height:24px; display:block; }
.catalog-review-page summary { font-size:16px; padding:.6rem 0; cursor:pointer; }
.catalog-review-page input,.catalog-review-page select,.catalog-review-page button { font-size:16px; min-height:44px; max-width:100%; }
.catalog-review-page h2 { overflow-wrap:anywhere; }
@media(max-width:640px) { .catalog-review-page form { grid-template-columns:1fr; } }

.catalog-toolbar { display:flex; align-items:end; flex-wrap:wrap; gap:1rem; }
.catalog-toolbar label { flex:1 1 200px; }
.catalog-table-wrap { overflow-x:auto; margin:1rem 0; }
.catalog-price-table { width:100%; min-width:820px; table-layout:auto; }
.catalog-price-table th,.catalog-price-table td { padding:.55rem .65rem; vertical-align:top; text-align:left; }
.catalog-price-table td:nth-child(2) { white-space:nowrap; min-width:105px; }
.catalog-price-table input:not([type=checkbox]) { width:100px; min-width:90px; }
.catalog-review-page #confirmation { border:2px solid #246646; padding:1rem; background:#fff; }
.catalog-review-page #confirmation-lines { columns:2 280px; }
.catalog-price-table td { font-size:16px; line-height:1.4; }
/* Customer directory: compact list, optional details, responsive import review. */
.customer-fields { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr)); gap:14px; }
#preview-rows article { padding:12px; border-bottom:1px solid #b8c9bf; }
#preview-rows input[type=checkbox] { width:22px; height:22px; vertical-align:middle; }
#preview-rows p,#orders p { overflow-wrap:anywhere; }
.customers-page { padding-left:0; font-size:16px; line-height:1.5; }
.customers-page main,.customers-page header { max-width:1400px; margin-inline:auto; }
.customers-page p,.customers-page td,.customers-page label,.customers-page summary { font-size:16px; }
.customers-page input,.customers-page select,.customers-page button { font-size:16px; min-height:44px; max-width:100%; }
.customers-page summary { padding:12px 0; cursor:pointer; }
.customers-page #customer-form,.customers-page #import-form { display:block; }
.customers-page #customer-form > label,.customers-page #import-form > label { margin-block:12px; }
.customers-page #list td { overflow-wrap:anywhere; }
@media(max-width:640px) { .customers-page header { flex-wrap:wrap; } .customers-page #price-form { grid-template-columns:1fr; } }

.knowledge-content,.knowledge-original{white-space:pre-wrap;overflow-wrap:anywhere;max-width:100%;font-family:inherit;line-height:1.55}.knowledge-original{font-size:16px}

.knowledge-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:10px 0}.knowledge-row strong{flex:1;min-width:200px}.knowledge-row input[type=checkbox]{width:22px;height:22px}.knowledge-row span{font-size:14px}#batch-tools,#batch-confirm{padding:16px;border:1px solid #80968b;border-radius:8px;margin:12px 0}#batch-error{color:#a12424}#entries article:has(.knowledge-row){padding:8px 16px;margin:8px 0}

/* Mike workspace: only messages scroll; composer remains in the panel. */
.mike-page > header {padding:12px 20px;}
.mike-page > header h1 {font-size:24px;margin:0;}
.mike-page > header p,.mike-page > header .eyebrow {display:none;}
.mike-page main {max-width:1500px;padding:12px 20px;}
#mike-chat {padding:12px;margin:0 0 16px;}
.chat-toolbar {display:flex;gap:12px;align-items:center;flex-wrap:wrap;}
.chat-toolbar h2 {margin:0 auto 0 0;}
.chat-diagnostics {font-size:14px;max-width:100%;}
.chat-layout {display:grid;grid-template-columns:260px minmax(0,1fr);height:clamp(360px,65dvh,850px);gap:18px;margin-top:12px;}
#chat-topics {overflow:auto;border-right:1px solid #bac9bf;padding-right:12px;}
#chat-topics h3 {font-size:18px;margin:0 0 8px;}
#chat-topic-list button {display:block;text-align:left;width:100%;margin:0 0 8px;padding:12px;background:#f1f5f2;color:#183c2a;white-space:normal;overflow-wrap:anywhere;border:1px solid #c4d1c8;}
#chat-topic-list button[aria-current="true"] {background:#d8eadd;border:2px solid #246442;}
#chat-topic-list small {display:block;font-size:13px;}
.chat-workspace {display:flex;flex-direction:column;min-width:0;min-height:0;}
#chat-title {font-size:18px;margin:0 0 8px;overflow-wrap:anywhere;}
#mike-chat #chat-messages {flex:1;min-height:0;max-width:none;overflow:auto;overscroll-behavior:contain;padding:0 12px 0 0;scrollbar-gutter:stable;}
#mike-chat .chat-answer {margin:10px 0;padding:14px;}
#mike-chat .chat-question {margin:12px 0 8px 32px;}
#mike-chat #chat-form {flex:none;margin:8px 0 0;display:flex;align-items:end;gap:12px;}
#chat-form label {flex:1;min-width:0;margin:0;}
#mike-chat #chat-input {resize:none;max-height:120px;margin:0;}
#mike-chat #chat-status {flex:none;margin:4px 0 0;font-size:14px;max-height:64px;overflow:auto;}
@media(max-width:700px){
 .mike-page > header {padding:8px 12px;}.mike-page > header nav {font-size:14px;}
 .mike-page main {padding:8px;}#mike-chat {padding:8px;font-size:18px;}
 .chat-layout {grid-template-columns:minmax(0,1fr);height:62dvh;min-height:320px;position:relative;}
 #chat-topics {display:none;} .topics-open #chat-topics {display:block;position:absolute;inset:0;z-index:2;background:#fff;border:1px solid #bac9bf;padding:12px;}
 .chat-toolbar {gap:6px;} .chat-toolbar h2 {font-size:22px;width:100%;}
 #mike-chat #chat-form {gap:6px;}#mike-chat #chat-form button {width:auto;margin:0;padding:10px;}
 #mike-chat .chat-question {margin-left:12px;}.chat-diagnostics {width:100%;}
}
.chat-layout {min-height:0;}
.chat-workspace:has(#chat-messages:empty) #chat-messages {flex:0;}
.chat-workspace:has(#chat-messages:empty) #chat-form {margin-top:24px;}
body.mike-page {padding-left:0;}
@media(max-width:700px){
 .mike-page > header {flex-wrap:wrap;gap:8px;align-items:center;}
 .mike-page > header > div:first-child {flex:1;min-width:160px;}
 .mike-page > header nav {order:3;width:100%;}
 .mike-page #session-user {font-size:13px;}
}

/* Orders queue: one compact row per saved order, stacked naturally on phones. */
.order-filters{display:flex;gap:16px;flex-wrap:wrap;margin:16px 0}.order-filters label{flex:1;min-width:180px}.orders-table{width:100%;border-collapse:collapse}.orders-table td,.orders-table th{padding:14px 10px;vertical-align:top;text-align:left;border-bottom:1px solid #ccd7d0}.orders-table button{text-align:left;font-weight:700}.orders-table small{font-size:14px;color:#374b40}.packing-page #work{border:2px solid #366a4e;padding:20px;margin:16px 0;scroll-margin-top:20px}.packing-page main{max-width:1240px}.packing-page input,.packing-page select,.packing-page button{min-height:44px}.packing-page #queue{overflow-wrap:anywhere}@media(max-width:680px){.orders-table thead{display:none}.orders-table tr{display:block;border:1px solid #ccd7d0;margin:12px 0;padding:10px}.orders-table td{display:block;border:0;padding:6px}.order-filters{display:block}.packing-page #work{padding:12px}.packing-page input,.packing-page select{max-width:100%;box-sizing:border-box}}
.packing-page header{flex-wrap:wrap}.packing-page header>*{min-width:0;max-width:100%;overflow-wrap:anywhere}.packing-page .orders-table{min-width:0;font-size:16px}.packing-page input,.packing-page select,.packing-page button,.packing-page label,.packing-page summary{font-size:16px}.packing-page #runs>article{min-width:0;overflow-wrap:anywhere}.packing-page #runs form{display:flex;flex-direction:column;align-items:stretch}.packing-page #runs form label{width:100%}.packing-page #runs form button{align-self:flex-start}@media(max-width:680px){.packing-page .orders-table,.packing-page .orders-table tbody{display:block;width:100%;min-width:0}.packing-page .orders-table td{width:100%;max-width:100%}.packing-page header{padding:12px}.packing-page #session-user{width:100%}}

/* Keep saved-order approval visible even on a long product list. */
.customer-order-page .order-review-actions{position:sticky;top:0;z-index:5;background:#fff;border-bottom:2px solid #245f45;padding:12px;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.customer-order-page .order-review-actions #decisions{margin:0;display:flex;gap:10px;flex-wrap:wrap}
.customer-order-page #review-card{scroll-margin-top:12px;clear:both}
@media(max-width:600px){.customer-order-page .order-review-actions{padding:8px;font-size:16px}.customer-order-page .order-review-actions button{min-height:44px}}

.customer-order-page .order-review-actions #status{flex-basis:100%;margin:0;font-size:16px}.customer-order-page .approval-confirmation{max-width:620px}.customer-order-page .approval-confirmation p{margin:0 0 8px}.customer-order-page .approval-confirmation button{margin-right:8px}

.pick-sheet-link{display:inline-block;padding:12px 18px;border:2px solid #245f45;border-radius:6px;font-size:18px;font-weight:700;margin:8px;background:#fff;color:#153c2a}
