:root {
  color-scheme: light;
  --ink: #172d2c;
  --muted: #5e706e;
  --line: #d9e2de;
  --green: #175748;
  --dark: #153e36;
  --wash: #f5f7f4;
  --soft: #e9f2eb;
  font-family:
    Inter,
    "Instrument Sans",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Arial,
    sans-serif;
  font-size: 15px;
  color: var(--ink);
  background: var(--wash);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: var(--green);
  text-decoration: none;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.skip {
  position: absolute;
  left: -10000px;
}
.skip:focus {
  left: 10px;
  top: 8px;
  z-index: 15;
  background: #fff;
  padding: 10px;
}
:focus-visible {
  outline: 3px solid #d78110;
  outline-offset: 3px;
}
.shell {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: 237px;
  flex: none;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: #153c35;
  color: #f4f9f4;
  padding: 28px 15px 18px;
}
.brand,
.loginbrand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand {
  color: white;
  padding: 2px 8px 32px;
}
.brandmark {
  width: 41px;
  height: 44px;
  display: grid;
  place-items: center;
  background: #c7e6bc;
  color: #1e5141;
  border-radius: 12px;
}
.brandmark .icon {
  width: 29px;
  height: 29px;
  stroke-width: 1.55;
}
.brandtext {
  font-size: 24px;
  font-weight: 680;
  letter-spacing: -1.1px;
  line-height: 1;
}
.brandtext span {
  display: block;
  font-size: 12px;
  font-weight: 480;
  letter-spacing: 0.5px;
  margin-top: 5px;
  color: #bfd5c9;
}
.sidebar nav {
  overflow: auto;
}
.navtitle {
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  margin: 15px 13px 11px;
  color: #a1c0b1;
}
.navitem + .navtitle {
  margin-top: 29px;
}
.navitem {
  display: flex;
  gap: 13px;
  align-items: center;
  min-height: 43px;
  border-radius: 7px;
  color: #e1eee6;
  padding: 10px 13px;
  margin-bottom: 2px;
  font-size: 14px;
  font-weight: 470;
}
.navitem .icon {
  width: 18px;
  height: 18px;
  color: #b5d0be;
}
.navitem:hover,
.logout:hover {
  background: #254d42;
}
.navitem.on {
  color: #fff;
  background: #335b4d;
  box-shadow: inset 3px 0 #c6e99e;
}
.navitem.on .icon {
  color: #d8edc8;
}
.sidefoot {
  margin-top: auto;
  padding-top: 20px;
}
.account {
  border-top: 1px solid #456457;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 19px 4px 0;
}
.avatar {
  border: 1px solid #6d8972;
  background: #466544;
  color: #e2efd8;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 650;
}
.account strong,
.account small {
  display: block;
}
.account strong {
  font-size: 12px;
  color: white;
}
.account small {
  font-size: 11px;
  color: #bbcebf;
  margin-top: 4px;
}
.account form {
  margin-left: auto;
}
.logout,
.menux,
.menutoggle,
.scrim {
  background: none;
  border: 0;
  color: inherit;
}
.logout {
  padding: 7px;
}
.logout .icon {
  width: 16px;
  height: 16px;
}
.menux,
.menutoggle,
.scrim {
  display: none;
}
.shellmain {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.topbar {
  height: 69px;
  min-height: 69px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 0 clamp(20px, 3.3vw, 54px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.lab {
  display: flex;
  align-items: center;
  gap: 10px;
}
.lab strong {
  font-size: 14px;
}
.labicon {
  color: #45745c;
  display: grid;
  place-items: center;
}
.labicon .icon {
  width: 18px;
  height: 18px;
}
.crumb {
  color: #afbeb5;
  margin: 0 3px;
}
.crumbname {
  font-size: 13px;
  color: var(--muted);
}
.topscan,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #c9d5cd;
  border-radius: 7px;
  background: white;
  color: #26473b;
  padding: 10px 15px;
  min-height: 42px;
  font-size: 14px;
  font-weight: 590;
  line-height: 1.25;
}
.topscan {
  min-height: 35px;
  padding: 7px 11px;
  font-size: 12px;
}
.topscan .icon {
  width: 16px;
  height: 16px;
}
.button:hover,
.topscan:hover {
  background: #edf4ed;
  border-color: #9cb8a5;
}
.button.primary {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
.button.primary:hover {
  background: #113f34;
}
.button .icon {
  width: 17px;
  height: 17px;
}
.button.small {
  font-size: 12px;
  min-height: 34px;
  padding: 7px 11px;
}
.content {
  width: 100%;
  max-width: 1650px;
  margin: 0 auto;
  padding: 34px clamp(20px, 3.3vw, 54px) 40px;
  flex: 1;
}
.dateline {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 8px;
}
.dateline .icon {
  width: 15px;
  height: 15px;
}
.heading,
.panelhead,
.sectionhead,
.buttons,
.metricline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.heading {
  margin-bottom: 26px;
}
.heading h1,
h1 {
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1.12;
  font-weight: 650;
  letter-spacing: -1.6px;
  margin: 0;
}
.heading p,
.loginbox > p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.5;
}
.heading .button {
  flex: none;
}
h2 {
  font-size: 19px;
  letter-spacing: -0.55px;
  font-weight: 640;
  margin: 0;
}
h3 {
  font-size: 16px;
  margin: 8px 0 3px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
}
.metric {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 16px 18px 12px;
  min-height: 104px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  color: var(--ink);
}
.metricline {
  align-items: center;
  gap: 4px;
}
.metricline span {
  font-size: 13px;
  color: #4b6058;
  font-weight: 530;
}
.metricline .icon {
  height: 26px;
  width: 26px;
  border-radius: 7px;
  background: var(--tbg);
  color: var(--tcolor);
  padding: 5px;
  box-sizing: content-box;
}
.metric b {
  font-size: 31px;
  line-height: 1;
  letter-spacing: -1px;
  font-weight: 610;
}
.metric:hover,
.action:hover,
.labelcard:hover {
  border-color: #9bb7a5;
  background: #fcfefc;
}
.green {
  --tbg: #e9f3e9;
  --tcolor: #47825b;
}
.blue {
  --tbg: #eaf1f6;
  --tcolor: #537c94;
}
.purple {
  --tbg: #f0ecf6;
  --tcolor: #7b649c;
}
.amber {
  --tbg: #f8f0dd;
  --tcolor: #916f21;
}
.rose {
  --tbg: #f8ebe5;
  --tcolor: #a05e45;
}
.sectionhead {
  margin: 28px 0 13px;
}
.actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.action {
  border: 1px solid #cdded0;
  background: #edf4ed;
  border-radius: 10px;
  padding: 16px 14px;
  display: flex;
  align-items: center;
  gap: 11px;
  color: #234a38;
  min-height: 82px;
}
.actionic {
  display: grid;
  place-items: center;
  color: #437453;
}
.actionic .icon {
  width: 24px;
  height: 24px;
}
.action > div {
  flex: 1;
}
.action strong,
.productcell strong,
.line strong,
.attentionrow b {
  font-size: 14px;
  line-height: 1.4;
  font-weight: 600;
}
.action small,
.productcell small,
.stockrow small,
.attentionrow small,
.line small,
.panel small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
  margin-top: 3px;
}
.action > svg {
  width: 14px;
  height: 14px;
}
.action small {
  font-size: 11px;
  color: #4c6957;
}
.lowergrid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(270px, 1fr);
  gap: 16px;
  align-items: start;
  margin-top: 27px;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 11px;
  min-width: 0;
  overflow: hidden;
}
.panel + .panel,
.labelgrid + .panel {
  margin-top: 20px;
}
.lowergrid > .panel,
.labelgrid > .panel {
  margin-top: 0;
}
.panelhead {
  border-bottom: 1px solid var(--line);
  padding: 17px 20px;
}
.panelhead h2 {
  font-size: 17px;
}
.textlink,
.linkbtn,
.labelcard span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green);
  font-weight: 600;
  font-size: 12px;
}
.textlink .icon,
.labelcard span .icon {
  width: 13px;
  height: 13px;
}
.stockrow {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(100px, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px 19px;
}
.stockrow + .stockrow,
.attentionrow + .attentionrow,
.line + .line,
.queueitem + .queueitem,
.decisions article + article {
  border-top: 1px solid #e7ece7;
}
.productcell,
.attentionrow {
  display: flex;
  align-items: center;
  gap: 11px;
}
.productcell strong,
.productcell small {
  overflow-wrap: anywhere;
}
.linked-row {
  position: relative;
}
.item-link {
  color: var(--green);
  text-decoration: underline;
  text-decoration-color: #a4bfae;
  text-underline-offset: 3px;
}
.linked-row .item-link::after {
  content: "";
  position: absolute;
  inset: 0;
}
.linked-row:hover, .linked-row:focus-within {
  background: #f5f9f4;
}
.linked-row .stockdetail a {
  position: relative;
  z-index: 1;
}
.sheet-back {
  margin-bottom: 16px;
}
.lot-heading, .lot-actions {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 16px;
}
.lot-heading {
  justify-content: space-between;
}
.lot-actions, .use-reference {
  grid-column: 1 / -1;
  font-size: 13px;
}
.lot-actions a {
  padding: 4px 0;
  text-decoration: underline;
}
#eln-note {
  display: block;
  width: 100%;
  margin: 8px 0 14px;
  padding: 12px;
  font: inherit;
  line-height: 1.5;
  border: 1px solid var(--line);
  border-radius: 6px;
  resize: vertical;
}
.sheet-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.sheet-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 42px;
  background: var(--soft);
  border-radius: 10px;
  padding: 18px 20px;
  margin: 0 0 20px;
}
.sheet-summary dt, .sheet-event p, .event-meta time {
  font-size: 12px;
  color: var(--muted);
}
.sheet-summary dd {
  margin: 5px 0 0;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.sheet-location, .sheet-event {
  padding: 15px 18px;
  overflow-wrap: anywhere;
}
.sheet-location + .sheet-location, .sheet-event + .sheet-event {
  border-top: 1px solid var(--line);
}
.sheet-location h3 {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 0;
}
.sheet-location h3 .icon {
  color: var(--green);
  height: 17px;
  width: 17px;
}
.sheet-lot, .sheet-event {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 5px 12px;
}
.sheet-lot {
  border-top: 1px dashed var(--line);
  padding-top: 10px;
  margin-top: 10px;
}
.sheet-lot:target {
  outline: 2px solid var(--green);
  outline-offset: 2px;
  scroll-margin-block: 70px;
}
.photo-strip { display: flex; flex-wrap: wrap; gap: 10px; }
.photo-strip:empty, #photo-status:empty, #camera-picker[hidden] { display: none; }
.photo-strip img { display: block; width: 92px; height: 84px; object-fit: contain; border: 1px solid var(--line); border-radius: 6px; background: var(--soft); }
.photo-strip button { display: block; margin: 4px auto; padding: 6px; border: 0; background: transparent; color: var(--green); cursor: pointer; }
.placement-photos { grid-column: 1 / -1; padding-block: 6px; }
.placement-photos summary { cursor: pointer; color: var(--green); }
.placement-photos small { display: block; margin-block: 8px; }
.formpanel input[type=file] { max-width: 100%; }
.sheet-quantity {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.sheet-event p, .sheet-event .event-location, .event-meta {
  grid-column: 1 / -1;
  margin: 0;
}
.movement-people {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
}
.event-meta, .event-meta .movement-people {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  column-gap: 14px;
}
.movement-people div {
  display: flex;
  flex-wrap: wrap;
  column-gap: 5px;
}
.movement-people dt {
  color: var(--muted);
}
.movement-people dd {
  margin: 0;
}
.movement-people a, .version {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.release-notes {
  padding: 0 22px 0 38px;
  line-height: 1.6;
}
.release-notes li + li {
  margin-top: 6px;
}
.producticon,
.badgeic {
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex: none;
}
.producticon {
  width: 35px;
  height: 35px;
  color: #527862;
  background: #eef3ed;
}
.producticon .icon {
  width: 18px;
  height: 18px;
}
.where {
  font-size: 12px;
}
.balance {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.balance strong {
  font-size: 15px;
  white-space: nowrap;
}
.balance strong span {
  font-size: 12px;
  font-weight: 530;
}
.stockdetail {
  grid-column: 1/-1;
  border-top: 1px dashed var(--line);
  padding-top: 9px;
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
}
.stockdetail b {
  font-weight: 500;
  color: var(--ink);
}
.stockdetail a,
.empty a {
  text-decoration: underline;
}
.badgeic {
  width: 35px;
  height: 35px;
  background: var(--tbg);
  color: var(--tcolor);
}
.badgeic .icon {
  width: 18px;
  height: 18px;
}
.attentionrow {
  padding: 15px 18px;
  color: var(--ink);
}
.attentionrow > strong {
  margin-left: auto;
  font-size: 19px;
}
.attentionrow > .icon {
  width: 13px;
  color: #789082;
}
.attentionfoot {
  padding: 15px 20px;
  background: #fafcf9;
  border-top: 1px solid var(--line);
  display: flex;
}
.attentionrow:hover,
.textlink:hover {
  color: #3a7852;
}
footer {
  flex-wrap: wrap;
  margin: 0 clamp(20px, 3.3vw, 54px);
  border-top: 1px solid var(--line);
  display: flex;
  gap: 8px;
  align-items: center;
  color: #64756a;
  font-size: 11px;
  padding: 16px 0 22px;
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6b9472;
}
.version {
  margin-left: auto;
}
.footsep {
  color: #96a69a;
}
.loginpage {
  min-height: 100vh;
  display: grid;
  align-content: center;
  justify-items: center;
  background: #e9efe7;
  padding: 20px;
}
.loginbox {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 36px;
  width: min(100%, 455px);
}
.loginbrand {
  padding-bottom: 31px;
}
.loginbrand .brandtext span {
  color: #65766b;
}
.loginbox h1 {
  font-size: 31px;
}
.loginbox form {
  margin-top: 20px;
}
.formpanel {
  padding: 22px;
  max-width: 650px;
}
.formpanel.wide {
  max-width: 850px;
}
.formpanel > h2 {
  margin-bottom: 12px;
}
.formpanel + .panel {
  margin-top: 20px;
}
.formpanel > h1 {
  margin: 15px 0;
}
.formpanel > p {
  line-height: 1.6;
}
.buttons {
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
input,
select {
  width: 100%;
  border: 1px solid #bfcfc5;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 9px 10px;
  min-height: 42px;
  max-width: 100%;
}
input[readonly] {
  color: #4e6656;
  background: #f3f6f2;
}
label {
  display: block;
  font-size: 13px;
  font-weight: 590;
  line-height: 1.4;
  color: #344d41;
  margin: 13px 0;
}
label input,
label select {
  display: block;
  margin-top: 5px;
  font-size: 15px;
  font-weight: 400;
}
label span {
  font-weight: 400;
  color: var(--muted);
}
.fieldgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 14px;
}
.filterbar {
  padding: 17px 19px;
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
}
.filterbar label {
  margin: 0;
  flex: 1;
  min-width: 125px;
}
.filterbar.inline {
  padding: 0;
  border: 0;
  margin: 0;
}
.hint,
.empty {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.hint {
  margin: 10px 0 16px;
}
.empty {
  padding: 18px;
  margin: 0;
}
.formpanel .empty {
  padding-left: 0;
}
.notice,
.issue {
  display: flex;
  gap: 9px;
  align-items: center;
  background: #f8efd9;
  color: #6b5219;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 18px;
  font-size: 14px;
  line-height: 1.5;
}
.notice.success {
  background: #e2f1e4;
  color: #225338;
}
.issue {
  margin-top: 12px;
}
.camera {
  background: #edf2eb;
  position: relative;
  border: 1px dashed #a8bca9;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 2.3;
  border-radius: 10px;
  margin: 10px 0;
}
.camera .icon {
  width: 48px;
  height: 48px;
  color: #668b6e;
}
.camera video {
  width: 100%;
  max-height: 55vh;
}
.camera:has(video:not([hidden])) {
  aspect-ratio: auto;
}
hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 20px 0;
}
.amount {
  background: #edf5ed;
  color: #22553d;
  padding: 15px 20px;
  border-radius: 9px;
}
.amount span,
.amount strong {
  display: block;
}
.amount span {
  font-size: 12px;
}
.amount strong {
  font-size: 27px;
}
.details {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  margin: 15px 0;
}
.details > * {
  margin: 0;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.details dt {
  color: var(--muted);
}
.details dd {
  text-align: right;
}
.line,
.countrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 16px 20px;
}
.countrow {
  border-top: 1px solid var(--line);
  padding: 14px 0;
}
.countrow > div:last-child {
  max-width: 145px;
}
.countrow p {
  font-size: 13px;
  margin: 7px 0;
}
.countrow label {
  margin: 0 0 3px;
}
.linkbtn {
  background: none;
  border: 0;
  padding: 7px 0;
  text-decoration: underline;
}
.extra {
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 14px 0;
  padding: 8px 15px;
}
.extra legend {
  font-weight: 600;
}
.right {
  text-align: right;
}
.pill,
.flag,
.counter {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 560;
  background: #edf2ed;
  color: #4b6852;
}
.flag,
.attentionpill {
  background: #f6edd7;
  color: #735815;
}
.counter {
  border-radius: 15px;
  padding: 2px 7px;
  margin-left: 4px;
  font-size: 11px;
}
.tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 17px;
  flex-wrap: wrap;
}
.tabs a {
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 6px;
  color: #52665b;
  border: 1px solid transparent;
}
.tabs a.active {
  background: #e4eee3;
  border-color: #bfd4bd;
  color: #285b3c;
}
.tablescroll {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}
th {
  font-weight: 560;
  color: #52675a;
  background: #f4f7f3;
  font-size: 12px;
}
th,
td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.labelgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 13px;
}
.labelcard {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px;
  color: var(--ink);
}
.labelcard img {
  width: 65px;
  height: 65px;
}
.labelcard span {
  margin-top: 6px;
}
.printlabel {
  border: 1px solid #bac5bd;
  background: white;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px;
  width: 280px;
  text-align: center;
}
.printlabel img {
  width: 160px;
  height: 160px;
}
.printlabel > * {
  margin: 3px 0;
}
.printlabel span,
.printlabel small {
  font-size: 12px;
  color: #334c3c;
}
.printlabel code {
  font-size: 14px;
  overflow-wrap: anywhere;
}
.queueitem {
  padding: 17px 20px;
}
.queueitem p {
  font-size: 14px;
  color: var(--muted);
}
.decisions article {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) 2fr;
  gap: 16px;
  padding: 13px 19px;
}
.decisions p {
  margin: 5px 0;
  font-size: 14px;
}

/* Product-level stock browse */
.browse-scope {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  margin-top: 5px;
}
.stockrow .balance {
  display: grid;
  justify-items: end;
  gap: 2px;
}
.stockrow .balance small {
  margin-top: 0;
}
@media (min-width: 1500px) {
  .sidebar {
    width: 254px;
  }
  .content {
    padding-top: 43px;
  }
  .metric {
    min-height: 116px;
  }
  .action {
    min-height: 90px;
  }
  .stockrow {
    padding-block: 17px;
  }
}
@media (max-width: 1240px) {
  .sidebar {
    width: 207px;
    padding-inline: 11px;
  }
  .lowergrid {
    grid-template-columns: minmax(0, 1.65fr) minmax(245px, 1fr);
  }
  .lowergrid .stockrow {
    grid-template-columns: minmax(130px, 1fr) auto;
  }
  .lowergrid .stockrow .where {
    display: none;
  }
  .actions {
    grid-template-columns: repeat(2, 1fr);
  }
  .action {
    min-height: 69px;
  }
  .brandtext {
    font-size: 22px;
  }
}
@media (max-width: 900px) {
  .lowergrid {
    grid-template-columns: 1fr;
  }
  .content {
    padding: 24px 20px;
  }
  .metrics {
    gap: 8px;
  }
  .metric {
    padding: 12px;
  }
  .metricline .icon {
    width: 17px;
    height: 17px;
  }
  .metric b {
    font-size: 28px;
  }
  .lowergrid .stockrow {
    grid-template-columns: minmax(0, 1.5fr) 1fr auto;
  }
  .lowergrid .stockrow .where {
    display: block;
  }
  .lowergrid {
    margin-top: 20px;
  }
  .topbar {
    padding-inline: 20px;
  }
}
@media (max-width: 760px) {
  .sidebar {
    visibility: hidden;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    height: 100dvh;
    width: 255px;
    z-index: 6;
    transform: translateX(-102%);
  }
  .navopen .sidebar {
    visibility: visible;
    transform: none;
  }
  .navopen .scrim {
    display: block;
    z-index: 5;
    position: fixed;
    inset: 0;
    background: #122d2380;
    width: 100%;
  }
  .menux,
  .menutoggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
  }
  .menux {
    position: absolute;
    right: 5px;
    top: 25px;
  }
  .brand {
    padding-left: 12px;
  }
  .labicon {
    display: none;
  }
  .topbar {
    height: 56px;
    min-height: 56px;
    padding-inline: 10px 15px;
  }
  .lab {
    gap: 5px;
  }
  .crumbname,
  .crumb {
    display: none;
  }
  .content {
    padding: 22px 15px 30px;
  }
  .heading {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
  }
  .heading h1 {
    font-size: 31px;
  }
  .heading p {
    font-size: 14px;
  }
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .metric {
    min-height: 86px;
    padding: 10px 12px;
  }
  .actions {
    gap: 8px;
  }
  .action {
    padding: 12px 10px;
    gap: 8px;
    align-items: start;
  }
  .action strong {
    font-size: 13px;
  }
  .action small {
    font-size: 11px;
  }
  .actionic .icon {
    width: 18px;
    height: 18px;
  }
  .action > svg {
    display: none;
  }
  .sectionhead {
    margin: 22px 0 10px;
  }
  .lowergrid,
  .labelgrid {
    gap: 13px;
  }
  .panelhead {
    padding: 14px;
  }
  .stockrow,
  .lowergrid .stockrow {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 10px;
    padding: 13px;
  }
  .stockrow .where,
  .lowergrid .stockrow .where {
    grid-column: 1;
    font-size: 11px;
    color: var(--muted);
    margin-left: 43px;
  }
  .stockrow .where small {
    display: block;
  }
  .balance {
    grid-column: 2;
    grid-row: 1 / 3;
  }
  .productcell {
    gap: 8px;
  }
  .where + .balance {
    align-self: center;
  }
  .stockdetail {
    font-size: 11px;
    margin-top: 6px;
    gap: 6px 12px;
  }
  .topscan,
  .button.small {
    min-height: 40px;
  }
  footer {
    margin: 0 15px;
  }
  .fieldgrid {
    gap: 0 10px;
  }
  .formpanel {
    padding: 16px;
  }
  .countrow {
    align-items: start;
  }
  .countrow > div:last-child {
    width: 110px;
    min-width: 99px;
  }
  .line {
    padding: 13px;
  }
  .filterbar {
    padding: 13px;
  }
  .filterbar label {
    flex-basis: 100%;
  }
  .filterbar.inline label {
    flex-basis: auto;
  }
  .tabs {
    gap: 3px;
  }
  .tabs a {
    padding: 7px 9px;
  }
  .tablescroll table,
  .tablescroll tbody,
  .tablescroll tr,
  .tablescroll td {
    display: block;
    width: 100%;
  }
  .tablescroll thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(100%);
  }
  .tablescroll tr {
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
  }
  .tablescroll td {
    border: 0;
    padding: 3px 0;
    white-space: normal;
    display: grid;
    grid-template-columns: 42% 1fr;
    gap: 8px;
    overflow-wrap: anywhere;
  }
  .tablescroll td:before {
    content: attr(data-label);
    font-size: 12px;
    color: var(--muted);
  }
  .right .flag {
    font-size: 10px;
  }
  .decisions article {
    grid-template-columns: minmax(90px, 0.8fr) 1.4fr;
    padding: 12px;
    gap: 10px;
  }
  .account .logout {
    min-width: 42px;
    min-height: 42px;
  }
  .brandtext span {
    font-size: 12px;
  }
  .loginbox {
    padding: 25px;
  }
}
@media print {
  body {
    background: #fff;
  }
  .sidebar,
  .topbar,
  .skip,
  footer,
  .heading,
  .buttons,
  .notice,
  .menutoggle,
  .scrim {
    display: none !important;
  }
  .shell,
  .shellmain,
  .content {
    display: block;
    padding: 0;
    margin: 0;
  }
  .printlabel {
    break-inside: avoid;
    width: 60mm;
    border: 1px dashed #bbb;
    border-radius: 0;
  }
  .printlabel img {
    width: 33mm;
    height: 33mm;
  }
  .printlabel h2 {
    font-size: 13pt;
  }
  .printlabel code {
    font-size: 9pt;
  }
}
