:root {
  color-scheme: light;
  --ink: #071f44;
  --ink-strong: #00172f;
  --muted: #5d6c83;
  --quiet: #9aa6b7;
  --line: #d6dce5;
  --line-soft: #e8ecf2;
  --rail: #e9edf3;
  --rail-active: #dce2eb;
  --surface: #ffffff;
  --surface-control: #f6f8fb;
  --canvas: #ffffff;
  --primary: #39299b;
  --primary-hover: #2f2187;
  --success: #1f7a52;
  --success-soft: #eaf7f0;
  --warn: #a15b12;
  --warn-soft: #fbefe3;
  --danger: #b42331;
  --danger-soft: #fff0f1;
  --shadow-shell: 0 1px 5px rgba(7, 31, 68, 0.12);
  --radius: 7px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--canvas);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--canvas);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  letter-spacing: 0;
}

button,
input {
  font: inherit;
  letter-spacing: 0;
}

button {
  cursor: pointer;
}

h1,
h2,
p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.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;
}

.app-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  background: var(--canvas);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  border-right: 1px solid var(--line);
  background: var(--rail);
  color: var(--ink);
}

.sidebar-brand {
  height: 96px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  color: var(--ink-strong);
  font-size: 20px;
  font-weight: 760;
}

.sidebar-logo {
  width: 34px;
  height: 34px;
  padding: 4px;
  border: 1px solid var(--line);
  background: #ffffff;
  object-fit: contain;
}

.side-nav {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 36px 16px 18px;
}

.side-link {
  min-height: 55px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 14px;
  border-radius: 6px;
  color: #173965;
  font-size: 18px;
  font-weight: 590;
}

.side-link:hover {
  background: rgba(255, 255, 255, 0.55);
}

.side-link.is-active {
  position: relative;
  background: var(--rail-active);
  color: #12396c;
}

.side-link.is-active::before {
  content: "";
  position: absolute;
  left: 0;
  width: 4px;
  height: 30px;
  border-radius: 999px;
  background: #2a4b7c;
}

.nav-icon {
  width: 21px;
  display: inline-grid;
  place-items: center;
  color: #31527e;
  font-size: 20px;
  line-height: 1;
}

.sidebar-version {
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  border-top: 1px solid var(--line);
  color: #8491a5;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 11px;
  letter-spacing: 2px;
}

.main-area {
  min-width: 0;
}

.topbar {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 25px 0 44px;
  border-bottom: 1px solid var(--line-soft);
  background: #ffffff;
  box-shadow: var(--shadow-shell);
}

.module-tabs {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  overflow-x: auto;
  scrollbar-width: none;
}

.module-tabs::-webkit-scrollbar {
  display: none;
}

.module-tabs a {
  height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 7px;
  color: #8e99aa;
  font-size: 15px;
  font-weight: 680;
  text-transform: uppercase;
  white-space: nowrap;
}

.module-tabs a:not(.is-active):nth-child(-n + 4),
.module-tabs a:nth-child(6) {
  color: #0d3163;
}

.module-tabs a.is-active {
  background: #e8ebf0;
  color: #12396c;
}

.topbar-actions {
  flex: 0 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 17px;
  color: #0d3163;
  white-space: nowrap;
}

.topbar-link,
.user-menu,
.icon-button {
  border: 0;
  background: transparent;
  color: inherit;
}

.topbar-link {
  font-size: 16px;
  font-weight: 690;
}

.icon-button {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-size: 20px;
}

.icon-button:hover,
.topbar-link:hover,
.user-menu:hover {
  color: var(--primary);
}

.avatar {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #dfe3ea;
  color: #20344f;
  font-size: 14px;
  font-weight: 720;
}

.user-menu {
  max-width: 150px;
  overflow: hidden;
  padding: 0;
  font-size: 16px;
  font-weight: 730;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-shell {
  padding: 30px 25px 76px;
}

.page-header {
  min-height: 76px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 0 0 18px;
  border-bottom: 1px solid var(--line);
}

.page-header h1 {
  color: #000000;
  font-size: 30px;
  line-height: 1.05;
  font-weight: 850;
  text-transform: uppercase;
}

.page-header p {
  margin-top: 8px;
  color: #173965;
  font-size: 17px;
  line-height: 1.35;
}

.page-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 20px;
  border-left: 1px solid var(--line);
}

.lookup-panel {
  padding: 36px 0 10px;
  background: #ffffff;
}

.filters-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

input {
  height: 50px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-control);
  color: var(--ink);
  font-size: 17px;
}

.lookup-form {
  width: min(100%, 560px);
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto;
  gap: 10px;
}

.input-wrap {
  position: relative;
  min-width: 0;
}

.search-icon {
  position: absolute;
  top: 50%;
  left: 16px;
  width: 15px;
  height: 15px;
  transform: translateY(-50%);
  border: 2px solid #31527e;
  border-radius: 50%;
  pointer-events: none;
}

.search-icon::after {
  content: "";
  position: absolute;
  right: -6px;
  bottom: -5px;
  width: 7px;
  height: 2px;
  border-radius: 999px;
  background: #31527e;
  transform: rotate(45deg);
}

input {
  width: 100%;
  min-width: 0;
  padding: 0 16px 0 45px;
  outline: none;
}

input::placeholder {
  color: #344f73;
}

input:focus,
.button:focus-visible,
.size-button:focus-visible,
.tray-item:focus-visible,
.suggestions button:focus-visible,
.slot-remove:focus-visible,
.view-toggle button:focus-visible {
  border-color: #2c4f83;
  box-shadow: 0 0 0 3px rgba(44, 79, 131, 0.13);
  outline: none;
}

datalist {
  display: none;
}

.button {
  min-width: 0;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 760;
  white-space: nowrap;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
}

.button-primary {
  border-color: var(--primary);
  background: var(--primary);
  color: #ffffff;
}

.button-primary:hover {
  border-color: var(--primary-hover);
  background: var(--primary-hover);
}

.button-primary:disabled,
.button-dark:disabled {
  cursor: wait;
  opacity: 0.68;
}

.button-secondary {
  border-color: var(--line);
  background: var(--surface-control);
  color: #000000;
}

.button-secondary:hover {
  border-color: #bfc8d5;
  background: #eef2f7;
}

.button-dark {
  border-color: var(--primary);
  background: var(--primary);
  color: #ffffff;
}

.button-dark:hover {
  border-color: var(--primary-hover);
  background: var(--primary-hover);
}

.print-symbol {
  position: relative;
  width: 15px;
  height: 11px;
  border: 2px solid currentColor;
  border-radius: 2px;
}

.print-symbol::before {
  content: "";
  position: absolute;
  left: 1px;
  bottom: 7px;
  width: 9px;
  height: 6px;
  border: 2px solid currentColor;
  border-bottom: 0;
}

.print-symbol::after {
  content: "";
  position: absolute;
  left: 2px;
  top: 5px;
  width: 7px;
  height: 5px;
  border-top: 2px solid currentColor;
  background: currentColor;
}

.view-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 12px;
}

.view-row .button {
  height: 44px;
}

.view-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.view-toggle button {
  height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #173965;
  font-size: 14px;
  font-weight: 680;
}

.view-toggle button.is-active {
  background: #e8ebf0;
}

.status {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 10px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-left: 4px solid #bfc8d5;
  background: #ffffff;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.status::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #9aa6b7;
}

.status[data-tone='success'] {
  border-left-color: var(--success);
  background: var(--success-soft);
  color: var(--success);
}

.status[data-tone='success']::before {
  background: var(--success);
}

.status[data-tone='warn'] {
  border-left-color: var(--warn);
  background: var(--warn-soft);
  color: var(--warn);
}

.status[data-tone='warn']::before {
  background: var(--warn);
}

.status[data-tone='error'] {
  border-left-color: var(--danger);
  background: var(--danger-soft);
  color: var(--danger);
}

.status[data-tone='error']::before {
  background: var(--danger);
}

.suggestions {
  min-height: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.suggestions:empty {
  display: none;
}

.suggestions-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.suggestions button {
  height: 31px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: #12396c;
  font-size: 13px;
  font-weight: 720;
}

.suggestions button:hover {
  background: #edf1f7;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(310px, 0.34fr) minmax(620px, 1fr);
  gap: 0;
  margin-top: 28px;
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.tray-panel,
.sheet-panel {
  min-width: 0;
  background: #ffffff;
}

.tray-panel {
  border-right: 1px solid var(--line);
}

.panel-header,
.sheet-toolbar {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
}

.panel-header h2,
.sheet-toolbar h2 {
  color: #173965;
  font-size: 17px;
  font-weight: 780;
}

.panel-header span:not(.count-badge),
.sheet-meta {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 590;
}

.count-badge {
  min-width: 30px;
  height: 25px;
  display: grid;
  place-items: center;
  padding: 0 8px;
  border-radius: 999px;
  background: #dde3ec;
  color: #173965;
  font-size: 13px;
  font-weight: 780;
}

.label-tray {
  min-height: 616px;
  max-height: calc(100vh - 366px);
  overflow: auto;
  background: #ffffff;
  scrollbar-color: #8d96a3 transparent;
}

.label-tray:empty::before {
  content: "No labels generated";
  height: 210px;
  display: grid;
  place-items: center;
  color: var(--quiet);
  font-size: 13px;
  font-weight: 680;
}

.tray-item {
  width: 100%;
  min-height: 84px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px;
  gap: 10px;
  align-items: center;
  padding: 16px 16px 16px 20px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
  color: #000000;
  text-align: left;
  cursor: grab;
}

.tray-item:hover {
  background: #f8fafc;
}

.tray-item:active {
  cursor: grabbing;
}

.tray-copy {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 12px;
  align-items: baseline;
}

.tray-location {
  color: #000000;
  font-size: 16px;
  font-weight: 800;
}

.tray-part {
  min-width: 0;
  overflow: hidden;
  color: #173965;
  font-size: 15px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tray-description {
  min-width: 0;
  grid-column: 1 / -1;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tray-add {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #d9dee6;
  color: #00172f;
  font-size: 17px;
  font-weight: 500;
}

.tray-item:hover .tray-add {
  background: var(--primary);
  color: #ffffff;
}

.sheet-actions,
.size-controls {
  display: flex;
  align-items: center;
  gap: 7px;
}

.size-button {
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  color: #173965;
  font-size: 13px;
  font-weight: 730;
}

.size-button:hover,
.size-button[aria-pressed='true'] {
  border-color: #173965;
  background: #173965;
  color: #ffffff;
}

.sheet-stage {
  min-height: 616px;
  display: flex;
  justify-content: center;
  overflow: auto;
  padding: 28px;
  background: #f5f7fa;
}

.letter-page {
  width: min(8.5in, 100%);
  min-height: auto;
  aspect-ratio: 8.5 / 11;
  flex: 0 0 auto;
  padding: 2.94%;
  border: 1px solid #cbd2dc;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(7, 31, 68, 0.11);
}

.letter-page.is-landscape {
  width: min(11in, 100%);
  aspect-ratio: 11 / 8.5;
  padding: 2.27%;
}

.sheet-grid {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(4, minmax(0, 1fr));
  gap: 0.8%;
}

.sheet-grid.is-mega {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 1.3%;
}

.sheet-grid.is-giant {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  gap: 0;
}

.sheet-slot {
  position: relative;
  min-width: 0;
  min-height: 0;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  border: 1px dashed #cbd2dc;
  background: #fbfcfe;
  transition: border-color 100ms ease, background-color 100ms ease;
}

.sheet-slot.is-over {
  border-color: var(--primary);
  background: #f0eefc;
}

.slot-empty {
  margin: auto;
  color: #a4aab2;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 10px;
  font-weight: 650;
}

.slot-remove {
  position: absolute;
  z-index: 2;
  top: 6px;
  right: 6px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(7, 31, 68, 0.2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  font-size: 17px;
  line-height: 1;
}

.slot-remove:hover {
  border-color: var(--danger);
  background: var(--danger);
  color: #ffffff;
}

.label {
  width: 4in;
  min-height: 2in;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 0.09in;
  padding: 0.12in 0.16in;
  border: 1px solid #111111;
  background: #ffffff;
  color: #000000;
}

.sheet-label {
  width: 100%;
  min-height: 0;
  height: 100%;
  cursor: move;
}

.mega-label {
  gap: 0.16in;
  padding: 0.18in 0.24in;
}

.giant-label {
  gap: 0.26in;
  padding: 0.28in 0.34in;
}

.label-top {
  display: grid;
  grid-template-columns: 0.95in 1fr;
  gap: 0.12in;
  align-items: center;
  border-bottom: 1px solid #000000;
  padding-bottom: 0.08in;
}

.location-code {
  font-size: 21px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.mega-label .label-top {
  grid-template-columns: 1.5in 1fr;
  gap: 0.18in;
  padding-bottom: 0.11in;
}

.giant-label .label-top {
  grid-template-columns: 2.25in 1fr;
  gap: 0.28in;
  border-bottom-width: 2px;
  padding-bottom: 0.16in;
}

.giant-label .location-code {
  font-size: 56px;
}

.giant-label .barcode {
  height: 0.95in;
}

.giant-label .label-description {
  font-size: 44px;
  line-height: 1.08;
}

.giant-label .label-bottom {
  gap: 0.28in;
  border-top-width: 2px;
  padding-top: 0.16in;
}

.giant-label .part-block span {
  margin-bottom: 6px;
  font-size: 14px;
}

.giant-label .part-block strong {
  font-size: 34px;
}

.mega-label .location-code {
  font-size: 42px;
}

.mega-label .barcode {
  height: 0.72in;
}

.mega-label .label-description {
  font-size: 31px;
  line-height: 1.12;
}

.mega-label .label-bottom {
  gap: 0.18in;
  padding-top: 0.11in;
}

.mega-label .part-block span {
  margin-bottom: 4px;
  font-size: 11px;
}

.mega-label .part-block strong {
  font-size: 25px;
}

.barcode {
  width: 100%;
  height: 0.46in;
  display: block;
  object-fit: contain;
}

.label-description {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-wrap: anywhere;
  text-align: center;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.18;
  text-transform: uppercase;
}

.label-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.1in;
  border-top: 1px solid #000000;
  padding-top: 0.08in;
}

.part-block {
  min-width: 0;
}

.part-block span {
  display: block;
  margin-bottom: 2px;
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
}

.part-block strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 15px;
  line-height: 1.05;
}

.align-right {
  text-align: right;
}

@media screen and (max-width: 1180px) {
  .app-layout {
    grid-template-columns: 260px minmax(0, 1fr);
  }

  .side-link {
    font-size: 16px;
  }

  .topbar {
    padding-left: 24px;
  }

  .topbar-actions {
    gap: 10px;
  }

  .workspace {
    grid-template-columns: 1fr;
  }

  .tray-panel {
    border-right: 0;
  }

  .label-tray {
    min-height: 0;
    max-height: 260px;
  }

  .label-tray:empty::before {
    height: 120px;
  }

  .sheet-stage {
    min-height: 0;
  }
}

@media screen and (min-width: 1181px) and (max-width: 1400px) {
  .module-tabs a:nth-child(2),
  .module-tabs a:nth-child(7),
  .module-tabs a:nth-child(8),
  .topbar-actions .topbar-link,
  .topbar-actions .icon-button {
    display: none;
  }

  .workspace {
    grid-template-columns: 305px minmax(0, 1fr);
  }

  .sheet-stage {
    padding: 18px;
  }
}

@media screen and (max-width: 820px) {
  .app-layout {
    display: block;
  }

  .sidebar {
    position: static;
    height: auto;
    display: block;
  }

  .sidebar-brand {
    height: 64px;
  }

  .side-nav {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 0 12px 12px;
  }

  .side-link {
    min-height: 42px;
    flex: 0 0 auto;
    padding: 0 12px;
    font-size: 14px;
  }

  .side-link.is-active::before,
  .sidebar-version,
  .topbar-actions .topbar-link,
  .topbar-actions .icon-button {
    display: none;
  }

  .topbar {
    height: 60px;
    padding: 0 12px;
  }

  .module-tabs {
    gap: 4px;
  }

  .module-tabs a {
    height: 32px;
    padding: 0 9px;
    font-size: 12px;
  }

  .app-shell {
    padding: 20px 12px 32px;
  }

  .page-header {
    display: grid;
  }

  .page-header h1 {
    font-size: 24px;
  }

  .page-header p {
    font-size: 14px;
  }

  .page-actions {
    width: 100%;
    padding-left: 0;
    border-left: 0;
  }

  .page-actions .button {
    flex: 1;
  }

  .filters-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .lookup-form {
    min-width: 0;
    width: 100%;
    grid-template-columns: 1fr;
  }

  .view-row {
    align-items: stretch;
    flex-direction: column;
  }

  .view-toggle {
    width: 100%;
  }

  .view-toggle button {
    flex: 1;
  }

  .status {
    min-height: 44px;
    align-items: flex-start;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .status::before {
    margin-top: 6px;
  }

  .sheet-toolbar {
    align-items: stretch;
    flex-direction: column;
    padding: 12px;
  }

  .sheet-actions,
  .size-controls {
    width: 100%;
  }

  .size-button {
    flex: 1;
  }

  .sheet-stage {
    padding: 12px;
  }

  .letter-page {
    width: 100%;
  }

  .slot-remove {
    top: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    font-size: 14px;
  }

  .sheet-label {
    gap: 6px;
    padding: 7px 8px;
  }

  .sheet-label .label-top {
    grid-template-columns: 48px 1fr;
    gap: 7px;
    padding-bottom: 5px;
  }

  .sheet-label .location-code {
    font-size: 14px;
  }

  .sheet-label .barcode {
    height: 18px;
  }

  .sheet-label .label-description {
    font-size: 10px;
    line-height: 1.12;
  }

  .sheet-label .label-bottom {
    gap: 7px;
    padding-top: 5px;
  }

  .sheet-label .part-block span {
    margin-bottom: 1px;
    font-size: 5px;
  }

  .sheet-label .part-block strong {
    font-size: 9px;
    line-height: 1;
  }

  .sheet-grid.is-giant .sheet-label {
    gap: 10px;
    padding: 12px 14px;
  }

  .sheet-grid.is-giant .label-top {
    grid-template-columns: 70px 1fr;
    gap: 10px;
    padding-bottom: 7px;
  }

  .sheet-grid.is-giant .location-code {
    font-size: 22px;
  }

  .sheet-grid.is-giant .barcode {
    height: 28px;
  }

  .sheet-grid.is-giant .label-description {
    font-size: 17px;
    line-height: 1.08;
  }

  .sheet-grid.is-giant .label-bottom {
    gap: 10px;
    padding-top: 7px;
  }

  .sheet-grid.is-giant .part-block span {
    margin-bottom: 2px;
    font-size: 7px;
  }

  .sheet-grid.is-giant .part-block strong {
    font-size: 13px;
  }

  .sheet-grid.is-mega .sheet-label {
    gap: 8px;
    padding: 9px 10px;
  }

  .sheet-grid.is-mega .label-top {
    grid-template-columns: 58px 1fr;
    gap: 8px;
    padding-bottom: 6px;
  }

  .sheet-grid.is-mega .location-code {
    font-size: 18px;
  }

  .sheet-grid.is-mega .barcode {
    height: 22px;
  }

  .sheet-grid.is-mega .label-description {
    font-size: 13px;
  }

  .sheet-grid.is-mega .label-bottom {
    gap: 8px;
    padding-top: 6px;
  }

  .sheet-grid.is-mega .part-block span {
    font-size: 6px;
  }

  .sheet-grid.is-mega .part-block strong {
    font-size: 10px;
  }
}

@media print {
  @page {
    size: letter portrait;
    margin: 0;
  }

  @page giant-label {
    size: letter landscape;
    margin: 0;
  }

  body {
    background: #ffffff;
  }

  .sidebar,
  .topbar,
  .page-header,
  .lookup-panel,
  .status,
  .suggestions,
  .tray-panel,
  .sheet-toolbar {
    display: none;
  }

  .app-layout,
  .main-area,
  .app-shell,
  .workspace,
  .sheet-panel,
  .sheet-stage {
    display: block;
    margin: 0;
    padding: 0;
    border: 0;
    background: #ffffff;
  }

  .letter-page {
    width: 8.5in;
    height: 11in;
    min-height: 11in;
    margin: 0;
    padding: 0.25in;
    border: 0;
    box-shadow: none;
  }

  .letter-page.is-landscape {
    page: giant-label;
    width: 11in;
    height: 8.5in;
    min-height: 8.5in;
    padding: 0.25in;
  }

  .sheet-grid {
    height: 10.5in;
  }

  .sheet-grid.is-giant {
    height: 8in;
  }

  .sheet-slot {
    border: 0;
    background: #ffffff;
  }

  .slot-empty,
  .slot-remove {
    display: none;
  }

  .label {
    border: 1px solid #000000;
  }

  .sheet-grid.is-giant .label {
    gap: 0.3in;
    padding: 0.28in 0.36in;
    border-width: 2px;
  }

  .sheet-grid.is-giant .label-top {
    grid-template-columns: 2.7in 1fr;
    gap: 0.32in;
    border-bottom-width: 2px;
    padding-bottom: 0.16in;
  }

  .sheet-grid.is-giant .location-code {
    font-size: 52pt;
    line-height: 0.95;
  }

  .sheet-grid.is-giant .barcode {
    height: 0.8in;
  }

  .sheet-grid.is-giant .label-description {
    font-size: 43pt;
    line-height: 1.05;
  }

  .sheet-grid.is-giant .label-bottom {
    gap: 0.32in;
    border-top-width: 2px;
    padding-top: 0.16in;
  }

  .sheet-grid.is-giant .part-block span {
    margin-bottom: 0.05in;
    font-size: 13pt;
  }

  .sheet-grid.is-giant .part-block strong {
    font-size: 34pt;
  }

  .sheet-grid.is-mega {
    gap: 0.1in;
  }

  .sheet-grid.is-mega .label {
    gap: 0.2in;
    padding: 0.16in 0.18in;
    border-width: 2px;
  }

  .sheet-grid.is-mega .label-top {
    grid-template-columns: 1.9in 1fr;
    gap: 0.22in;
    border-bottom-width: 2px;
    padding-bottom: 0.08in;
  }

  .sheet-grid.is-mega .location-code {
    font-size: 30pt;
    line-height: 0.95;
  }

  .sheet-grid.is-mega .barcode {
    height: 0.42in;
  }

  .sheet-grid.is-mega .label-description {
    font-size: 24pt;
    line-height: 1.08;
  }

  .sheet-grid.is-mega .label-bottom {
    gap: 0.22in;
    border-top-width: 2px;
    padding-top: 0.08in;
  }

  .sheet-grid.is-mega .part-block span {
    margin-bottom: 0.03in;
    font-size: 8pt;
  }

  .sheet-grid.is-mega .part-block strong {
    font-size: 18pt;
  }
}
