@font-face {
  font-family: 'Geist';
  src: url('./fonts/geist-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --ink: #141514;
  --muted: #666d68;
  --paper: #f3f4f2;
  --line: #e5e8e4;
  --green: #07844e;
  --green-dark: #05663c;
  --green-soft: #edf6ef;
  font-family: 'Geist', system-ui, 'Arial', sans-serif;
  color: var(--ink);
  background: #dedfe1;
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { overflow-y:auto; }
body { margin: 0; touch-action:auto; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { outline-offset: 4px; }
button { border: 0; cursor: pointer; }
button:disabled { opacity: .45; cursor: not-allowed; }
a { color: inherit; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.workspace-frame { max-width: 1460px; margin: 28px auto; width: calc(100% - 64px); background: var(--paper); border: 1px solid #f6f7f5; border-radius: 18px; padding: 18px; min-height: calc(100dvh - 56px); }
.topbar { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 18px; background: #fff; border-radius: 40px; padding: 10px 18px; }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--green); font-size: 23px; font-weight: 700; letter-spacing: -.9px; white-space: nowrap; }
.brand b { font-weight: 450; }
.brand-symbol { width: 26px; height: 26px; object-fit: contain; }
.top-navigation { display: flex; padding: 4px; background: #f6f6f4; border-radius: 40px; }
.top-navigation button { font-size: 14px; padding: 9px 15px; background: transparent; color: #555b56; border-radius: 30px; font-weight: 450; }
.top-navigation button.active { color: #171917; background: #fff; }
.top-navigation button:hover { color: #111; }
.account-tools { display: flex; align-items: center; gap: 9px; }
.icon-button { width: 35px; height: 35px; display: inline-grid; place-items: center; border-radius: 50%; background: #f6f7f5; color: #292e29; text-decoration: none; flex-shrink: 0; }
.icon-button:hover { background: #e9eeea; }
.icon-button svg { width: 17px; height: 17px; }
.avatar { display: grid; place-items: center; width: 33px; height: 33px; border-radius: 50%; background: #dfeadf; color: #25402e; font-size: 13px; font-weight: 600; margin-left: 3px; }
.account { border: 0; background: transparent; color: #525952; padding: 7px 2px; font-size: 13px; width: 105px; min-height: 30px; }
.workspace-body { display: grid; grid-template-columns: 56px minmax(0,1fr); gap: 25px; padding-top: 32px; }
.icon-rail { padding-top: 72px; display: flex; flex-direction: column; gap: 16px; align-items: center; min-width: 0; }
.icon-rail nav { display: grid; gap: 16px; width: 100%; }
.rail-group { display: grid; gap: 4px; padding: 7px; background: #fff; border-radius: 30px; width: 56px; }
.rail-bottom { margin-top: auto; margin-bottom: 45px; }
.rail-button { width: 42px; height: 42px; display: grid; place-items: center; position: relative; border-radius: 50%; color: #2c322c; background: transparent; text-decoration: none; }
.rail-button svg { width: 19px; height: 19px; }
.rail-button.active { background: var(--green); color: #fff; }
.rail-button:hover { background: #ecf2ec; }
.rail-button.active:hover { background: var(--green-dark); }
.rail-tooltip { display: none; pointer-events: none; position: absolute; left: 50px; z-index: 4; background: #252e27; color: #fff; padding: 7px 10px; border-radius: 8px; font-size: 13px; white-space: nowrap; }
.rail-button:hover .rail-tooltip, .rail-button:focus-visible .rail-tooltip { display: block; }
.main { min-width: 0; }
.page-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 46px; margin-bottom: 26px; }
h1 { font-size: 34px; line-height: 1.15; letter-spacing: -1.3px; font-weight: 500; margin: 0; }
h1 span { color: #777d76; font-weight: 400; }
h2 { font-size: 16px; line-height: 1.3; letter-spacing: -.25px; font-weight: 600; margin: 0 0 4px; }
h3 { font-size: 15px; font-weight: 600; margin: 0 0 6px; }
p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.6; }
.page-header p { margin-top: 8px; font-size: 14px; }
.page-actions { display: flex; align-items: center; gap: 9px; }
.role-context { display:flex; align-items:center; gap:12px; padding:16px 18px; margin-bottom:24px; border:1px solid var(--line); border-radius:18px; background:#fff; }
.role-context-icon { display:grid; place-items:center; flex:0 0 38px; height:38px; border-radius:50%; color:var(--green); background:var(--green-soft); }
.role-context-copy { flex:1; min-width:0; }
.role-context h2 { font-size:14px; margin-bottom:3px; }
.role-context p { font-size:12px; line-height:1.55; }
.role-access { flex-shrink:0; border-radius:30px; padding:7px 11px; color:var(--green-dark); background:var(--green-soft); font-size:11px; font-weight:500; }
@media(max-width:650px) { .role-context { flex-wrap:wrap; padding:14px; gap:10px; }.role-context-copy { flex-basis:calc(100% - 48px); }.role-access { margin-left:48px; max-width:calc(100% - 48px); } }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: #fff; background: var(--green); padding: 11px 19px; min-height: 39px; border-radius: 40px; font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.button svg { width: 16px; height: 16px; }
.button:hover { background: var(--green-dark); }
.button.header-action, .button.secondary { color: #171d18; background: #fff; }
.button.header-action:hover, .button.secondary:hover { background: #e8eeea; }
.button.secondary { border: 1px solid var(--line); }
.button.danger { color: #963e35; background: #faeeeb; }
.scope-select { display: flex; align-items: center; gap: 8px; border-radius: 30px; background: #fff; padding: 0 12px; }
.scope-select svg { width: 15px; }
.scope-select select { background: transparent; padding: 11px 20px 11px 0; border: 0; font-size: 13px; max-width: 160px; }
.panel { background: #fff; border-radius: 24px; overflow: hidden; }
.card-header { padding: 20px 21px 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card-header p { font-size: 12px; }
.card-heading { display: flex; align-items: center; gap: 9px; }
.heading-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #f6f7f5; flex-shrink: 0; }
.heading-icon svg { width: 16px; height: 16px; }
.card-jump { width: 32px; height: 32px; color: #5c635c; }
.card-jump svg { width: 14px; height: 14px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(205px,.88fr) minmax(305px,1.5fr) minmax(235px,.95fr); grid-template-areas: 'stock chart side' 'orders orders side'; gap: 18px; align-items: start; }
.stock-column { grid-area: stock; display: grid; gap: 16px; }
.stock-summary-card .card-header { padding-bottom: 10px; }
.stock-balance { margin: 8px 10px 10px; background: var(--green); color: white; padding: 20px 19px; border-radius: 20px; }
.stock-balance-label { font-size: 14px; color: #e2f3e8; }
.stock-balance-number { font-size: 40px; font-weight: 400; letter-spacing: -1px; margin: 12px 0 23px; line-height: 1.1; white-space: nowrap; }
.stock-balance-number span { font-size: 14px; margin-left: 8px; letter-spacing: 0; color: #e2f3e8; }
.stock-balance-details { display: flex; gap: 30px; }
.stock-balance-details span { display: block; font-size: 12px; color: #e2f3e8; margin-bottom: 5px; }
.stock-balance-details strong { font-size: 16px; font-weight: 450; }
.stock-health-card { display: flex; align-items: center; gap: 10px; justify-content: space-between; padding: 19px 17px; min-height: 82px; }
.stock-health-card h2 { font-size: 14px; }
.stock-health-card p { font-size: 12px; }
.stock-health-count { display: flex; align-items: center; gap: 10px; color: #1c291e; background: #f3f7f2; border-radius: 20px; padding: 5px 11px; font-size: 22px; font-weight: 450; }
.stock-health-count svg { width: 13px; }
.stock-chart-card { grid-area: chart; position: relative; min-height: 340px; padding-bottom: 16px; }
.stock-chart-card .card-header { padding: 20px 18px 10px; }
.stock-chart-card .heading-icon { width: 28px; height: 28px; }
.chart-controls { position: absolute; top: 22px; right: 16px; display: flex; padding: 3px; border-radius: 25px; background: #f6f7f5; }
.chart-controls button { background: transparent; color: #555f54; font-size: 12px; border-radius: 22px; padding: 8px 10px; }
.chart-controls button.selected { background: var(--green); color: #fff; }
.stock-chart { display: grid; grid-template-columns: 26px minmax(0,1fr); gap: 8px; height: 221px; margin: 22px 18px 12px; }
.chart-scale { display: flex; flex-direction: column; justify-content: space-between; padding-bottom: 27px; color: #737b72; font-size: 12px; }
.chart-plot { position: relative; min-width: 0; }
.chart-grid { position: absolute; inset: 0 0 27px; display: flex; flex-direction: column; justify-content: space-between; }
.chart-grid span { width: 100%; border-top: 1px dashed #e2e6e1; }
.chart-columns { display: flex; gap: 9px; height: 100%; position: relative; }
.chart-column { display: flex; flex-direction: column; align-items: center; width: 0; flex: 1; min-width: 0; background: transparent; color: #425344; padding: 0; }
.column-body { display: flex; align-items: flex-end; justify-content: center; height: calc(100% - 27px); width: 100%; }
.column-bar { display: block; position: relative; width: 44px; max-width: 93%; border-radius: 25px; }
.column-bar::before { content:''; position:absolute; inset:0; border-radius:inherit; background-color:#b4d4c0; background-image:repeating-linear-gradient(135deg,transparent 0 5px,#689d7d38 5px 6px); transform-origin:50% 100%; }
.chart-column.emphasis .column-bar::before { background-color: var(--green); background-image: repeating-linear-gradient(135deg,transparent 0 5px,#065d3540 5px 6px); }
.chart-column:hover .column-bar::before { background-color: #91bca1; }
.chart-column.emphasis:hover .column-bar::before { background-color: #086f43; }
.column-value { position: absolute; bottom: calc(100% + 7px); left: 50%; transform: translateX(-50%); font-size: 13px; font-weight: 550; color: #326246; white-space: nowrap; }
.column-label { height: 27px; display: flex; align-items: flex-end; font-size: 12px; color: #737b72; white-space: nowrap; }
.chart-caption { font-size: 12px; padding: 0 20px; color: #6c756b; }
.dashboard-side { grid-area: side; display: grid; gap: 18px; }
.movement-card .card-header { padding-bottom: 4px; }
.movement-total { padding: 6px 21px 3px; font-size: 34px; line-height: 1.2; letter-spacing: -1px; font-weight: 450; }
.movement-total span { font-size: 13px; margin-left: 8px; letter-spacing: 0; color: var(--muted); }
.movement-chart { display: block; width: 100%; height: 98px; overflow: hidden; margin-top: 4px; }
.movement-grid { stroke: #e2e7e2; stroke-dasharray: 5 5; stroke-width: .8; }
.movement-area { fill: #e5f1e7; stroke: none; }
.movement-line { fill:none; stroke: var(--green); stroke-width: 1.5; stroke-linecap:round; stroke-linejoin:round; }
.movement-endpoint { fill:var(--green); stroke:#fff; stroke-width:1; }
.movement-caption { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px 18px; gap: 8px; font-size: 12px; color: var(--muted); }
.movement-caption .text-button { font-size: 12px; }
.fulfilment-card { padding-bottom: 12px; }
.fulfilment-card .card-header { padding-left: 17px; padding-right: 15px; }
.fulfilment-number { padding: 5px 21px 12px; font-size: 36px; letter-spacing: -1.1px; font-weight: 450; }
.fulfilment-number span { color: #737b73; font-size: 23px; letter-spacing: -.8px; }
.fulfilment-progress { height: 5px; background: #edf2ed; border-radius: 10px; margin: 0 21px; overflow: hidden; }
.fulfilment-progress span { height: 100%; display: block; background: var(--green); border-radius: 10px; }
.fulfilment-caption { font-size: 12px; margin: 9px 21px 18px; }
.review-list { margin: 0 12px; border-radius: 18px; background: #f7f8f5; padding: 14px 12px 6px; }
.review-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; gap: 5px; }
.review-heading h3 { font-size: 13px; margin: 0; }
.review-heading > span { font-size: 12px; color: var(--muted); }
.review-item { display: flex; align-items: center; gap: 9px; padding: 11px 0; width: 100%; color: var(--ink); background: transparent; text-align: left; }
.review-icon { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 50%; background: #fff; flex-shrink: 0; }
.review-icon svg { width: 14px; height: 14px; }
.review-item strong { font-size: 13px; font-weight: 550; display: block; }
.review-item small { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; }
.review-item > svg { width: 12px; height: 12px; margin-left: auto; color: #778277; }
.review-item:hover strong { color: var(--green); }
.empty-review { font-size: 13px; padding: 12px 0; }
.recent-orders-card { grid-area: orders; }
.recent-orders-card .card-header { padding-bottom: 8px; }
.recent-orders-card .table-scroll { padding: 0 12px 10px; }
.dashboard-footnote { display: flex; align-items: center; justify-content: space-between; margin: 18px 8px 0; gap: 15px; font-size: 12px; color: #627263; }
.dashboard-footnote .text-button { font-size: 12px; }
.table-scroll { overflow-x: auto; }
table { border-collapse: separate; border-spacing: 0 4px; width: 100%; text-align: left; font-size: 14px; white-space: nowrap; }
th { padding: 13px 17px; font-weight: 450; color: #717970; font-size: 13px; }
td { padding: 15px 17px; line-height: 1.45; border: 0; }
tbody tr:nth-child(even) td { background: #f7f8f5; }
tbody tr:hover td { background: #f1f5ef; }
tbody td:first-child { border-radius: 12px 0 0 12px; }
tbody td:last-child { border-radius: 0 12px 12px 0; }
.recent-orders td { padding: 9px 9px; font-size: 13px; }
.recent-orders th { padding: 10px 9px; font-size: 12px; }
.recent-orders td:first-child { min-width: 178px; }
.customer-link { display: flex; gap: 9px; align-items: center; text-align: left; font-size: 13px; color: #1e261e; background: transparent; padding: 0; }
.customer-link small { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; }
.customer-monogram { width: 29px; height: 29px; border-radius: 50%; display: grid; place-items: center; color: #377549; background: #e9f4e9; font-size: 12px; font-weight: 600; flex-shrink: 0; }
tr:nth-child(2) .customer-monogram { color: #725f38; background: #f2eee4; }
tr:nth-child(3) .customer-monogram { color: #526989; background: #edf0f5; }
.cell-main { display: block; font-weight: 550; font-size: 14px; }
.cell-sub { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; }
.mono { font-variant-numeric: tabular-nums; font-size: 13px; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.table-link { padding: 0; background: transparent; color: #1a5e35; font-size: 14px; font-weight: 500; text-align: left; }
.recent-orders .table-link { font-size: 12px; color: #454e43; }
.text-button { display: inline-flex; gap: 6px; align-items: center; background: transparent; color: #356d43; font-size: 13px; font-weight: 500; padding: 0; white-space: nowrap; }
.text-button svg { width: 13px; height: 13px; }
.pill { display: inline-flex; align-items: center; border-radius: 20px; padding: 5px 9px; font-size: 12px; color: #646c62; background: #f1f3ef; white-space: nowrap; }
.pill.confirmed, .pill.completed, .pill.received, .pill.fulfilled { color: #1b663d; background: #eaf6ec; }
.pill.partial, .pill.in_transit, .pill.running { color: #85612f; background: #fbf3e6; }
.pill.failed, .pill.shortage { color: #914b40; background: #f9eeea; }
.pill.queued { color: #496983; background: #edf2f6; }
.recent-orders .pill { font-size: 12px; padding: 5px 7px; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 22px; }
.panel-heading p { font-size: 13px; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 18px 20px 8px; }
.filters { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.search { position: relative; }
.search svg { position: absolute; top: 11px; left: 13px; width: 16px; height: 16px; color: #778174; }
.search input { width: 240px; padding-left: 38px; }
input, select, textarea { border: 1px solid #e3e8e0; border-radius: 14px; background: #f9faf7; color: #222b21; font-size: 14px; padding: 10px 12px; max-width: 100%; }
select { min-height: 38px; }
textarea { width: 100%; min-height: 155px; line-height: 1.8; font-family: ui-monospace,Consolas,monospace; font-size: 13px; resize: vertical; }
.result-count { font-size: 12px; color: var(--muted); }
.empty { padding: 32px; font-size: 14px; text-align: center; color: var(--muted); }
.warehouse-summary { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; margin-bottom: 20px; }
.warehouse-card { display: flex; align-items: center; gap: 13px; padding: 21px; border-radius: 23px; background: #fff; }
.warehouse-code { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #f0f5ed; color: #37553c; font-size: 12px; font-weight: 500; }
.warehouse-card strong { font-size: 15px; font-weight: 550; }
.warehouse-card p { font-size: 12px; }
.warehouse-card .right { margin-left: auto; text-align: right; }
.warehouse-card .right strong { display: block; font-size: 25px; font-weight: 400; }
.notice { display: flex; gap: 12px; padding: 19px 22px; border-radius: 20px; background: #fff; font-size: 14px; margin-bottom: 20px; }
.notice svg { width: 18px; height: 18px; color: #405841; margin-top: 2px; }
.notice strong { font-weight: 550; }
.notice p { font-size: 14px; }
.notice.warning { background: #fbf3e7; }
.subtle-band { display: flex; align-items: center; gap: 9px; padding: 16px 22px; font-size: 13px; color: #677164; }
.subtle-band svg { width: 15px; height: 15px; }
.import-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.2fr); gap: 20px; }
.import-form { padding: 8px 23px 23px; }
.import-form label { display: grid; gap: 8px; margin-bottom: 17px; font-size: 14px; }
.small-note { font-size: 13px; line-height: 1.7; margin: 16px 0; color: var(--muted); }
.job-card { padding: 20px 23px; }
.job-card:nth-child(odd) { background: #f8faf6; }
.job-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.job-top strong { font-size: 14px; font-weight: 550; }
.job-error { font-size: 13px; line-height: 1.6; white-space: pre-wrap; color: #954d40; margin-top: 10px; }
.footer-note { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 20px 8px 0; color: #798174; font-size: 12px; line-height: 1.6; }
.loading { padding: 80px; text-align: center; color: var(--muted); font-size: 15px; }
dialog { padding: 0; border: 0; background: #fff; color: var(--ink); box-shadow: 0 10px 45px #18251b18; }
dialog::backdrop { background: #1c291e26; }
#drawer { position: fixed; inset: 16px 16px 16px auto; margin: 0; width: min(650px,94vw); height: calc(100dvh - 32px); max-height: none; max-width: none; border-radius: 24px; overflow-y: auto; }
#form-dialog { width: min(640px,94vw); max-height: 90dvh; border-radius: 24px; overflow-y: auto; }
.dialog-header { display: flex; align-items: start; justify-content: space-between; gap: 18px; padding: 25px 26px 18px; }
.dialog-header h2 { font-size: 25px; font-weight: 500; letter-spacing: -.8px; margin: 8px 0 12px; }
.eyebrow { font-size: 12px; color: var(--muted); }
.close { width: 31px; height: 31px; display: inline-grid; place-items: center; background: #f2f5ef; border-radius: 50%; color: #64705f; flex-shrink: 0; }
.close svg { width: 14px; height: 14px; }
.dialog-body { padding: 19px 26px 26px; }
.record-meta { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 21px; margin: 0 0 27px; }
.record-meta dt { font-size: 12px; color: var(--muted); margin-bottom: 7px; }
.record-meta dd { margin: 0; font-size: 15px; }
.dialog-body .table-scroll { margin: 15px 0; border-radius: 15px; background: #fafbf8; padding: 5px; }
dialog td, dialog th { font-size: 13px; padding: 12px 9px; }
dialog input[type=number] { width: 78px; min-width: 65px; background: white; }
.action-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.error-message { border-radius: 15px; background: #fbede8; color: #91483d; font-size: 14px; line-height: 1.6; padding: 13px 15px; margin: 15px 0; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; margin-bottom: 20px; }
.form-grid label { display: grid; gap: 8px; font-size: 14px; }
.line-entry { display: grid; grid-template-columns: minmax(0,1fr) 85px 32px; align-items: center; gap: 9px; margin-bottom: 10px; }
.form-caption { margin: 17px 0 12px; }
.steps { display: grid; gap: 18px; }
.step { display: flex; gap: 13px; }
.step-num { display: grid; place-items: center; flex-shrink: 0; border-radius: 50%; width: 27px; height: 27px; background: #edf5e9; color: #3c6240; font-size: 13px; }
.step p { font-size: 14px; }
.step strong { font-size: 14px; display: block; margin-bottom: 4px; font-weight: 550; }
#toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); display: none; background: #253b29; color: white; padding: 13px 20px; border-radius: 20px; font-size: 14px; z-index: 10; max-width: 90vw; }
#toast.visible { display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (min-width:1600px) { .workspace-frame { margin: 40px auto; padding: 22px; }.workspace-body { gap: 30px; }.dashboard-grid { gap: 22px; } }
@media (max-width:1200px) { .workspace-frame { width: calc(100% - 40px); margin: 20px auto; padding: 16px; }.workspace-body { gap: 20px; }.topbar { gap: 10px; padding: 10px 15px; }.brand { font-size: 21px; }.top-navigation button { padding: 9px 12px; font-size: 13px; }.account-tools { gap: 6px; }.header-activity { display: none; }.dashboard-grid { grid-template-columns: minmax(185px,.85fr) minmax(280px,1.35fr) minmax(220px,.95fr); gap: 15px; }.stock-chart-card .heading-icon { display: none; }.card-header { padding: 18px 17px 12px; }.stock-balance { padding: 19px 17px; }.stock-balance-number { font-size: 37px; }.stock-health-card { padding: 18px 15px; }.movement-caption { padding-left: 14px; padding-right: 14px; }.review-item { gap: 7px; }.recent-orders td { padding: 9px 7px; }.recent-orders th { padding-left: 7px; padding-right: 7px; } }
@media (max-width:1050px) { .header-search { display: none; }.account { width: 98px; }.top-navigation button { padding: 9px 10px; }.page-header { align-items: start; }h1 { font-size: 30px; }.page-actions { gap: 7px; }.scope-select { padding: 0 10px; }.scope-select select { max-width: 140px; }.button { padding-left: 15px; padding-right: 15px; }.dashboard-grid { grid-template-columns: minmax(205px,.8fr) minmax(300px,1.2fr); grid-template-areas: 'stock chart' 'orders orders' 'side side'; gap: 18px; }.dashboard-side { grid-template-columns: repeat(2,minmax(0,1fr)); }.stock-chart-card .heading-icon { display: grid; }.import-grid { grid-template-columns: 1fr; }.result-count { display: none; }.footer-note { flex-wrap: wrap; gap: 3px 15px; } }
@media (max-width:800px) { .workspace-frame { width: calc(100% - 24px); margin: 12px auto; padding: 13px; }.topbar { min-height: 56px; padding: 8px 13px; }.top-navigation { display: none; }.brand { font-size: 22px; }.brand-symbol { width: 23px; height: 23px; }.account-tools { gap: 6px; }.account { width: 112px; }.header-search { display: grid; }.workspace-body { display: block; padding-top: 18px; }.icon-rail { padding: 0; display: flex; flex-direction: row; justify-content: space-between; margin-bottom: 22px; gap: 10px; }.icon-rail nav { display: flex; gap: 10px; width: auto; }.rail-group { display: flex; width: auto; padding: 5px; gap: 2px; }.rail-button { width: 37px; height: 37px; }.rail-tooltip { display: none !important; }.rail-bottom { margin: 0; }.page-header { min-height: 0; margin-bottom: 21px; }.page-actions { gap: 8px; }.scope-select select { max-width: 135px; }.dashboard-grid { gap: 15px; }.dashboard-side { gap: 15px; }.footer-note { margin-top: 18px; } }
@media (max-width:650px) { .workspace-frame { border-radius: 15px; }.topbar { padding: 8px 12px; }.brand { font-size: 20px; }.account { font-size: 12px; width: 105px; }.avatar { width: 30px; height: 30px; font-size: 12px; }.header-search, .rail-bottom { display: none; }.icon-rail nav { width: 100%; justify-content: space-between; gap: 7px; }.rail-group { padding: 5px; }.rail-button { width: 36px; height: 36px; }.rail-button svg { width: 17px; height: 17px; }.page-header { display: block; }h1 { font-size: 29px; }.page-header p { font-size: 13px; }.page-actions { margin-top: 17px; }.scope-select { flex: 1; }.scope-select select { max-width: none; width: 100%; }.button.header-action { font-size: 13px; padding: 10px 15px; }.dashboard-grid { grid-template-columns: minmax(0,1fr); grid-template-areas: 'stock' 'chart' 'side' 'orders'; }.stock-column { grid-template-columns: minmax(0,1fr); gap: 12px; }.stock-balance { padding: 21px; }.stock-balance-number { font-size: 45px; margin-bottom: 23px; }.stock-summary-card .card-header { padding: 21px 22px 10px; }.stock-health-card { min-height: 75px; padding: 19px 22px; }.stock-health-card h2 { font-size: 15px; }.stock-health-card p { font-size: 13px; }.stock-health-count { font-size: 23px; }.stock-chart-card { min-height: 346px; }.stock-chart-card .heading-icon { display: none; }.stock-chart-card .card-header { padding-left: 22px; }.stock-chart { margin-left: 20px; margin-right: 20px; }.column-label { font-size: 12px; }.dashboard-side { grid-template-columns: 1fr; }.movement-chart { height: 108px; }.fulfilment-number { padding-top: 7px; font-size: 42px; }.review-item { padding: 13px 0; }.review-item strong { font-size: 14px; }.review-item small { font-size: 12px; }.recent-orders-card .card-header { padding: 21px 20px 12px; }.dashboard-footnote { flex-wrap: wrap; gap: 9px; }.toolbar { padding: 18px 16px 8px; }.filters { width: 100%; }.search, .search input { width: 100%; }.filters select { flex: 1; }.warehouse-summary { gap: 12px; }.warehouse-card { padding: 17px; display: block; }.warehouse-code { display: none; }.warehouse-card .right { text-align: left; margin-top: 13px; }.warehouse-card p { font-size: 12px; }.warehouse-card .right strong { font-size: 27px; }.panel { border-radius: 22px; }.import-form { padding-left: 20px; padding-right: 20px; }.notice { padding: 18px 20px; }.notice p { font-size: 13px; }.job-top { align-items: start; }.footer-note { font-size: 12px; display: block; }.footer-note span { display: block; }.form-grid { grid-template-columns: 1fr; }.dialog-header { padding: 23px 22px 15px; }.dialog-body { padding: 18px 20px 23px; }.record-meta { gap: 18px; }.record-meta dd { font-size: 14px; }#drawer { inset: 10px 10px 10px auto; width: calc(100% - 20px); height: calc(100dvh - 20px); border-radius: 22px; }#form-dialog { width: calc(100% - 24px); }.line-entry { grid-template-columns: minmax(0,1fr) 70px 28px; gap: 7px; }.line-entry select { font-size: 13px; }.close { width: 28px; height: 28px; } }
@media (max-width:360px) { .workspace-frame { width: calc(100% - 16px); margin: 8px auto; padding: 10px; }.brand { font-size: 18px; }.brand-symbol { width: 19px; }.account { width: 92px; }.avatar { display: none; }.rail-button { width: 33px; height: 33px; }.rail-group { padding: 4px; }.chart-controls { right: 10px; }.chart-controls button { padding: 8px 7px; }.stock-chart-card .card-header { padding-left: 17px; } }

/* Readable interface sizing, retaining the original workspace and green palette. */
:root { font-size:15px; }
.brand { letter-spacing:-.5px; }
.top-navigation button,.account { font-weight:500; }
h2,h3 { font-weight:600; }
p { line-height:1.6; }
.card-header p,.cell-sub,.customer-link small,.review-item small { line-height:1.5; }
.button,input,select,.scope-select select { min-height:44px; }
.scope-select { min-width:0; }
.scope-select select { min-width:0; }
.page-actions { flex-wrap:wrap; }
.card-heading { min-width:0; }
.stock-chart-card .card-header { padding-right:155px; }
.movement-caption,.review-heading,.stock-health-card { flex-wrap:wrap; }
.mono,.stock-balance-number,.movement-total,.fulfilment-number { font-variant-numeric:tabular-nums; }
.rail-button,.icon-button,.close { transition:background .16s ease; }
.view-enter > * { animation:flowIn .28s ease-out both; }
.view-enter > *:nth-child(2) { animation-delay:.035s; }
.view-enter > *:nth-child(3) { animation-delay:.07s; }
.dialog-enter .dialog-header,.dialog-enter .dialog-body { animation:flowIn .22s ease-out both; }
@keyframes flowIn { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:translateY(0); } }
/* Finite viewport entrances: no timers, animation library, or idle animation loop. */
.chart-column { --bar-delay:0ms; }
.chart-column:nth-child(2) { --bar-delay:55ms; }
.chart-column:nth-child(3) { --bar-delay:110ms; }
.chart-column:nth-child(4) { --bar-delay:165ms; }
.chart-column:nth-child(5) { --bar-delay:220ms; }
.chart-column:nth-child(6) { --bar-delay:275ms; }
.chart-awaiting:not(.chart-revealed) .column-bar::before { transform:scaleY(.04); opacity:0; }
.chart-awaiting:not(.chart-revealed) .column-value { opacity:0; }
.chart-revealed .column-bar::before { animation:stockGrow 750ms cubic-bezier(.22,1,.36,1) var(--bar-delay) both; }
.chart-revealed .column-value { animation:chartLabel 400ms ease-out calc(var(--bar-delay) + 320ms) both; }
.chart-awaiting:not(.chart-revealed) .movement-line { stroke-dasharray:1; stroke-dashoffset:1; }
.chart-awaiting:not(.chart-revealed) .movement-area,.chart-awaiting:not(.chart-revealed) .movement-endpoint { opacity:0; }
.chart-revealed .movement-line { stroke-dasharray:1; animation:movementDraw 1000ms cubic-bezier(.3,0,.2,1) both; }
.chart-revealed .movement-area { animation:movementFill 700ms ease-out 250ms both; }
.chart-revealed .movement-endpoint { animation:movementFill 300ms ease-out 850ms both; }
@keyframes stockGrow { from { transform:scaleY(.04); opacity:0; } to { transform:scaleY(1); opacity:1; } }
@keyframes chartLabel { from { opacity:0; translate:0 4px; } to { opacity:1; translate:0 0; } }
@keyframes movementDraw { from { stroke-dashoffset:1; } to { stroke-dashoffset:0; } }
@keyframes movementFill { from { opacity:0; } to { opacity:1; } }
@media(max-width:650px) { .account { width:108px; }.header-action { min-width:0; }.card-header { flex-wrap:wrap; }.stock-chart-card .card-header { padding-right:22px; }.chart-controls { position:static; display:flex; width:fit-content; margin:0 20px 10px auto; }.movement-caption .text-button { font-size:12px; }.review-item strong { font-size:14px; }.review-item small { font-size:12px; }.column-label { font-size:11px; }.stock-chart { margin-inline:16px; }.form-grid input,.form-grid select,.line-entry select { font-size:16px; } }
@media(prefers-reduced-motion:reduce) { .view-enter > *,.dialog-enter .dialog-header,.dialog-enter .dialog-body,.chart-revealed .column-bar::before,.chart-revealed .column-value,.chart-revealed .movement-line,.chart-revealed .movement-area,.chart-revealed .movement-endpoint { animation:none; }.chart-awaiting .column-bar::before { transform:none!important; opacity:1!important; }.chart-awaiting .column-value,.chart-awaiting .movement-area,.chart-awaiting .movement-endpoint { opacity:1!important; }.chart-awaiting .movement-line { stroke-dasharray:none!important; stroke-dashoffset:0!important; }.rail-button,.icon-button,.close { transition:none; } }

.account-tools .uxa-select-shell{width:150px;min-width:0}.account-tools .uxa-select-trigger{border:0;background:transparent;padding:8px 4px;font-size:13px;gap:10px;border-radius:8px}.scope-select .uxa-select-shell{flex:1;min-width:0}.scope-select .uxa-select-trigger{border:0;background:transparent;padding:10px 4px;border-radius:20px;font-size:13px;gap:12px}.filters .uxa-select-shell{flex:1;min-width:150px}.form-grid .uxa-select-shell,.line-entry .uxa-select-shell{width:100%}.form-grid .uxa-select-trigger,.line-entry .uxa-select-trigger{background:#f9faf7}.uxa-select-shell{--uxa-select-accent:var(--green)}@media(max-width:650px){.account-tools .uxa-select-shell{width:112px}.account-tools .uxa-select-trigger{font-size:12px;padding-inline:0;gap:8px}.scope-select .uxa-select-shell{width:100%}.scope-select{min-width:0}.filters .uxa-select-shell{min-width:0}}
