* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: #1f2937;
  background: #f3f4f6;
}

html,
body {
  height: 100%;
  overflow: hidden;
}

body {
  display: flex;
  flex-direction: column;
}

.topbar {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  background: #111827;
  color: #ffffff;
}

.appBrand {
  display: grid;
  gap: 1px;
  line-height: 1;
}

.shedPickPrintView {
  display: none;
}

@media print {
  @page {
    size: A4 portrait;
    margin: 8mm;
  }

  body > *:not(.shedPickPrintView) {
    display: none !important;
  }

  body,
  .shedPickPrintView {
    color: #000000 !important;
    background: #ffffff !important;
  }

  html,
  body {
    display: block;
    height: auto;
    overflow: visible;
  }

  .shedPickPrintView {
    display: block !important;
    width: 100%;
    font-family: Arial, sans-serif;
    font-size: 10pt;
  }

  .shedPickPrintHeader {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: baseline;
    gap: 5mm;
    border-bottom: 1px solid #000000;
    margin-bottom: 2mm;
    padding-bottom: 1.5mm;
  }

  .shedPickPrintHeader h1,
  .shedPickPrintHeader strong,
  .shedPickPrintHeader span {
    margin: 0;
  }

  .shedPickPrintHeader h1 {
    font-size: 16pt;
    line-height: 1;
  }

  .shedPickPrintHeader strong {
    font-size: 13pt;
  }

  .shedPickPrintHeader span {
    font-size: 8.5pt;
    text-align: right;
  }

  .shedPickPrintColumnLabels,
  .shedPickPrintList li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 14mm 13mm;
    align-items: center;
    column-gap: 3mm;
  }

  .shedPickPrintColumnLabels {
    border-bottom: 1px solid #000000;
    padding: 0.5mm 0 1mm;
    font-size: 8.5pt;
    font-weight: 700;
  }

  .shedPickPrintColumnLabels span:nth-child(2) {
    text-align: center;
  }

  .shedPickPrintList {
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .shedPickPrintList li {
    min-height: 13mm;
    border-bottom: 0.4pt solid #a3a3a3;
    padding: 0.8mm 0;
    break-inside: avoid;
  }

  .shedPickPrintProduct {
    line-height: 1.12;
  }

  .shedPickPrintQty {
    font-size: 11pt;
    text-align: center;
  }

  .shedPickPrintCheckbox {
    display: block;
    width: 12mm;
    height: 12mm;
    justify-self: end;
    border: 1.5px solid #000000;
  }

  .shedPickPrintFooter {
    margin-top: 4mm;
    padding-top: 2mm;
    font-size: 10pt;
    break-inside: avoid;
  }
}

.topbar h1,
.appBrand h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.topbar p,
.appBrand p {
  margin: 3px 0 0;
  color: #d1d5db;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.staffPageLabel,
.appPageTitle {
  color: #e5e7eb;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.topbarActions,
.mainNav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbarActions form {
  margin: 0;
}

.iconNav {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.iconNavLink {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  color: #ffffff;
  background: #374151;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
}

.iconNavLink svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.iconNavLink.active,
.iconNavLink:hover {
  background: #2563eb;
}

.userMenu {
  position: relative;
}

.userMenu summary {
  display: flex;
  min-width: 132px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 8px 10px;
  color: #ffffff;
  background: #1f2937;
  cursor: pointer;
  list-style: none;
}

.userMenu summary::-webkit-details-marker {
  display: none;
}

.userMenu summary::after {
  content: 'v';
  color: #cbd5e1;
  font-size: 11px;
}

.userMenu[open] summary::after {
  transform: rotate(180deg);
}

.userMenuName {
  font-size: 13px;
  font-weight: 800;
}

.userMenuRole {
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 700;
  text-transform: capitalize;
}

.userMenuPanel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 80;
  display: grid;
  width: min(320px, calc(100vw - 24px));
  gap: 12px;
  border: 1px solid #dbe3ec;
  border-radius: 14px;
  padding: 14px;
  color: #1f2937;
  background: #ffffff;
  box-shadow: 0 22px 56px rgba(15, 23, 42, 0.22);
}

.userMenuIdentity,
.userMenuSection {
  display: grid;
  gap: 8px;
}

.userMenuIdentity {
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 10px;
}

.userMenuIdentity span,
.userMenuIdentity small,
.userMenuSection span {
  color: #64748b;
  font-size: 12px;
  line-height: 1.35;
}

.userMenuSection {
  border-bottom: 1px solid #eef2f7;
  padding-bottom: 10px;
}

.userMenuSection:last-of-type {
  border-bottom: 0;
}

.userMenuPanel .topbarLink,
.userMenuPanel button {
  width: 100%;
}

.productSyncStatus {
  max-width: 240px;
  color: #d1d5db;
  font-size: 11px;
  line-height: 1.25;
}

.productSyncStatus.error {
  color: #fca5a5;
}

.mainNavButton {
  background: #374151;
}

.mainNavButton.active {
  background: #2563eb;
}

.compactButton {
  padding: 7px 10px;
  font-size: 12px;
}

.appView {
  display: none;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.appView.active {
  display: flex;
  flex-direction: column;
}

.authPage,
.homePage {
  min-height: 100%;
}

.authShell,
.homeShell {
  flex: 1 1 auto;
  display: grid;
  align-content: center;
  justify-items: center;
  min-height: 0;
  padding: 24px;
  overflow: auto;
}

.authCard,
.homeCard,
.homeHero {
  width: min(100%, 520px);
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 20px;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.12);
}

.authBrand h1 {
  color: #111827;
}

.authBrand p {
  color: #475569;
}

.authCard h2,
.homeHero h2 {
  margin: 16px 0 8px;
  font-size: 24px;
}

.authCard p,
.homeHero span,
.homeCard span,
.homeUserForm small {
  color: #64748b;
}

.authError {
  margin: 14px 0;
  border: 1px solid #fecaca;
  border-radius: 10px;
  padding: 10px 12px;
  color: #991b1b;
  background: #fef2f2;
}

.authNotice {
  margin: 14px 0;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  padding: 10px 12px;
  color: #1e3a8a;
  background: #eff6ff;
}

.authForm,
.homeUserForm {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.authForm label,
.homeUserForm label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
}

.authForm input,
.homeUserForm input,
.homeUserForm select {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 10px 12px;
}

.authForm .authCheckbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.authForm .authCheckbox input {
  width: auto;
}

.homeShell {
  align-content: start;
  gap: 18px;
}

.homeHero {
  width: min(100%, 960px);
  text-align: center;
}

.homeCards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  width: min(100%, 900px);
}

.homeCard {
  display: grid;
  min-height: 180px;
  place-items: center;
  gap: 14px;
  color: inherit;
  text-align: center;
  text-decoration: none;
}

.homeCard.appTile:hover {
  border-color: #93c5fd;
  transform: translateY(-2px);
  box-shadow: 0 22px 52px rgba(15, 23, 42, 0.16);
}

.homeCard strong {
  font-size: 21px;
}

.homeCardIcon {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border-radius: 18px;
  color: #2563eb;
  background: #eff6ff;
}

.homeCardIcon svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.adminPage {
  min-height: 100%;
}

.adminShell {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  align-content: start;
  padding: 22px;
  overflow: auto;
}

.adminPanel {
  display: grid;
  gap: 12px;
  align-content: start;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 18px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.1);
}

.adminPanel h2 {
  margin: 0;
  font-size: 19px;
}

.adminPanel h3 {
  margin: 0;
  font-size: 16px;
}

.adminPanelHeader,
.adminUserRow,
.adminUserActions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.adminPanelHeader,
.adminUserRow {
  justify-content: space-between;
}

.adminActions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.adminUsersPanel,
.adminUsersList {
  display: grid;
  gap: 10px;
}

.adminUserRow {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px;
  background: #f8fafc;
}

.adminUserRow div:first-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.adminUserRow span {
  color: #64748b;
  font-size: 12px;
}

.adminUserActions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.adminResetPasswordInput {
  width: 160px;
  min-width: 140px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 7px 9px;
}

.adminStatus {
  margin: 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.4;
}

button,
select,
input {
  font: inherit;
}

button {
  border: 0;
  border-radius: 8px;
  padding: 10px 14px;
  cursor: pointer;
  background: #2563eb;
  color: #ffffff;
}

button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.secondaryButton {
  border: 1px solid #94a3b8;
  background: #ffffff;
  color: #1f2937;
}

.topbarLink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 10px 14px;
  background: #2563eb;
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
}

.lookupBar {
  display: flex;
  flex-wrap: wrap;
  flex: 0 0 auto;
  gap: 8px;
  align-items: center;
  padding: 10px 20px;
  background: #f8fafc;
  border-bottom: 1px solid #e5e7eb;
  font-size: 13px;
}

.lookupPill {
  display: inline-flex;
  align-items: center;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  padding: 5px 10px;
  background: #ffffff;
  color: #1f2937;
  font-weight: 700;
}

.lookupError {
  color: #991b1b;
  font-weight: 700;
}

.controls {
  display: flex;
  flex-wrap: wrap;
  flex: 0 0 auto;
  gap: 16px;
  align-items: end;
  padding: 14px 20px;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}

.controls label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
}

.controls input,
.controls select {
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 9px 10px;
  min-width: 240px;
}

.gridActionsPanel {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-left: auto;
}

.gridStatusMessage {
  min-height: 18px;
  font-size: 13px;
  color: #047857;
}

.gridStatusMessage.error {
  color: #991b1b;
}

.layout {
  flex: 1 1 auto;
  display: block;
  min-height: 0;
  overflow: hidden;
}

.gridPanel {
  height: 100%;
  min-width: 0;
  min-height: 0;
  padding: 16px;
}

.tableWrap {
  overflow: auto;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  height: 100%;
  min-height: 320px;
}

table {
  border-collapse: separate;
  border-spacing: 0;
  width: max-content;
  min-width: 100%;
}

th,
td {
  min-width: 0;
  max-width: 0;
  border-bottom: 1px solid #e5e7eb;
  border-right: 1px solid #e5e7eb;
  padding: 8px 10px;
  text-align: left;
  white-space: nowrap;
  font-size: 13px;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f9fafb;
  font-weight: 700;
}

tr:hover td {
  background: #eff6ff;
  cursor: pointer;
}

tr.selected td {
  background: #dbeafe;
}

.num {
  text-align: right;
}

.mono {
  font-family: Consolas, Monaco, monospace;
}

.detailPanel {
  display: none;
}

.shedListLayout {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  min-height: 0;
  overflow: hidden;
  padding: 12px;
  transition: max-width 240ms ease, grid-template-columns 240ms ease;
}

.shedModeToolbar {
  position: sticky;
  top: 0;
  z-index: 12;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: end;
  grid-column: 1 / -1;
  width: min(760px, 100%);
  justify-self: center;
  border: 1px solid #dbe3ec;
  border-radius: 10px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.1);
}

.shedCategorySelectLabel {
  display: grid;
  min-width: min(220px, 100%);
  gap: 3px;
  color: #475569;
  font-size: 11px;
  font-weight: 700;
}

.shedCategorySelectLabel select {
  width: 100%;
  border: 1px solid #94a3b8;
  border-radius: 8px;
  padding: 10px 12px;
  color: #1f2937;
  font-size: 15px;
  line-height: 1.35;
  background: #ffffff;
}

.shedCategorySelectLabel option {
  font-size: 15px;
  line-height: 1.5;
}

.shedModeToolbar #openShedListButton,
.shedOverlayCloseButton {
  display: none;
}

.shedAddPanel,
.shedMainPanel,
.shedPickCartPanel {
  min-width: 0;
  transition:
    opacity 220ms ease,
    transform 220ms ease,
    box-shadow 220ms ease;
}

.shedAddPanel,
.shedPickCartPanel {
  display: none;
}

.shedMainPanel {
  width: min(760px, 100%);
  max-height: calc(100vh - 164px);
  justify-self: center;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.shedListLayout.createPickMode.hasPickItems {
  position: relative;
  grid-template-columns: minmax(0, 1fr);
  max-width: none;
}

.shedListLayout.createPickMode.hasPickItems .shedPickCartPanel {
  position: fixed;
  top: var(--shed-cart-top, 166px);
  right: 12px;
  z-index: 8;
  display: block;
  width: min(560px, 42vw);
  max-height: calc(100vh - 168px);
  overflow: auto;
  animation: shedPanelIn 220ms ease;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.18);
}

.shedListLayout.createPickMode.hasPickItems .shedPickCartPanel .shedTable {
  table-layout: fixed;
  min-width: 0;
}

.shedListLayout.createPickMode.hasPickItems .shedPickCartPanel .shedTableWrap {
  overflow-x: hidden;
}

.shedListLayout.pickingMode {
  max-width: 1120px;
}

.shedListLayout.pickingMode .shedModeToolbar {
  position: sticky;
  top: 0;
  z-index: 10;
  width: max-content;
  justify-self: start;
  border: 1px solid #dbeafe;
  border-radius: 10px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
}

.shedListLayout.pickingMode .shedModeToolbar #openShedListButton {
  display: inline-flex;
}

.shedListLayout.pickingMode .shedMainPanel,
.shedListLayout.pickingMode .shedAddPanel {
  display: none;
}

.shedListLayout.pickingMode .shedPickCartPanel {
  display: block;
  animation: shedPanelIn 220ms ease;
}

.shedListLayout.pickingMode .shedPickCartPanel .shedTable {
  table-layout: fixed;
  min-width: 0;
}

.shedListLayout.pickingMode .shedPickCartPanel .shedTableWrap {
  overflow-x: hidden;
}

.shedListLayout.overlayOpen .shedModeToolbar {
  position: relative;
  z-index: 51;
}

.shedListLayout.overlayOpen::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 49;
  background: rgba(15, 23, 42, 0.55);
  animation: shedFadeIn 180ms ease;
}

.shedListLayout.addOverlayOpen .shedAddPanel,
.shedListLayout.shedOverlayOpen .shedMainPanel {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 50;
  display: block;
  width: min(760px, calc(100vw - 32px));
  max-height: calc(100vh - 120px);
  overflow: auto;
  transform: translate(-50%, -50%);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.32);
  animation: shedOverlayIn 220ms ease;
}

.shedListLayout.addOverlayOpen .shedAddPanel .shedOverlayCloseButton,
.shedListLayout.shedOverlayOpen .shedMainPanel .shedOverlayCloseButton {
  display: inline-flex;
}

.shedListLayout:not(.pickingMode).addOverlayOpen .shedAddPanel .shedOverlayCloseButton {
  display: inline-flex;
}

@keyframes shedPanelIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shedOverlayIn {
  from {
    opacity: 0;
    transform: translate(-50%, calc(-50% + 12px)) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes shedFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.shedCard {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 12px;
  background: #ffffff;
}

.shedCard h2 {
  margin: 0 0 10px;
  font-size: 18px;
}

.shedForm {
  display: grid;
  grid-template-columns: minmax(260px, 2fr) minmax(120px, 0.5fr) minmax(220px, 1fr) auto;
  gap: 8px;
  align-items: end;
}

.shedForm label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
}

.shedForm input,
.shedTable input {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 9px 10px;
}

.shedCardHeader,
.shedActions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.shedCardHeader .shedActions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

#createPickListButton {
  width: 150px;
  flex: 0 0 150px;
}

.shedRowActions {
  justify-content: space-between;
}

.shedRowActionsRight {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.shedCardHeader {
  flex: 0 0 auto;
  justify-content: space-between;
  margin-bottom: 10px;
}

.shedCardHeader h2 {
  margin: 0;
}

.shedSearchLabel {
  flex: 0 0 auto;
  display: grid;
  gap: 5px;
  margin: 0 0 10px;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
}

.shedSearchLabel input {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 9px 10px;
  color: #1f2937;
  background: #ffffff;
}

.shedTableWrap {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

.shedStockTableWrap {
  max-height: calc(100vh - 274px);
  overflow-x: hidden;
}

.shedTable {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}

.shedStockTable {
  min-width: 0;
}

.shedTable .shedProductColumn {
  width: auto;
}

.shedTable .shedQtyColumn {
  width: 84px;
  text-align: center;
}

.shedTable .shedQtyColumn input {
  text-align: center;
}

.shedTable .shedActionsColumn {
  width: 150px;
}

.shedStockTable .shedRowActions {
  justify-content: flex-end;
}

.shedStockTable .shedRowActionsRight {
  gap: 4px;
}

.shedStockTable .shedRowActions button {
  padding: 7px 10px;
}

.shedTable th,
.shedTable td {
  max-width: none;
}

.shedTable td {
  white-space: normal;
}

.shedTable tr:hover td {
  cursor: default;
}

.shedCategoryHeaderRow th {
  padding: 9px 10px;
  color: #0f172a;
  background: linear-gradient(90deg, #dbeafe, #eef6ff);
  border-top: 2px solid #93c5fd;
  border-bottom: 1px solid #bfdbfe;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
}

.shedCategoryHeaderRow:first-child th {
  border-top: 0;
}

.shedCategoryEmptyRow .shedEmpty {
  padding: 9px 12px;
  font-size: 12px;
  font-style: italic;
}

.shedPickableRow td,
.shedPickableRow .shedProductNameCell {
  cursor: pointer;
}

.shedProductCell {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.shedProductCell > span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shedProductNote {
  flex: 0 1 auto;
  color: #c2410c;
  font-size: 11px;
  font-weight: 700;
}

.shedProductCell .shedEditNotes {
  min-width: 140px;
  color: #c2410c;
  font-size: 12px;
}

.shedRowPulse td {
  animation: shedRowPulse 1400ms ease;
}

@keyframes shedRowPulse {
  0%,
  100% {
    background: inherit;
  }
  25%,
  70% {
    background: #fef3c7;
  }
}

.shedRowOnPickList td {
  background: #dcfce7;
}

.shedRowOnPickList:hover td {
  background: #bbf7d0;
}

.shedPickedRow td {
  color: #6b7280;
  background: #f8fafc;
}

.shedPickedRow td:not(:last-child) {
  text-decoration: line-through;
}

.shedPickToggleRow td {
  cursor: pointer;
}

.shedPickToggleRow:hover td {
  background: #eff6ff;
}

.shedPickedRow.shedPickToggleRow:hover td {
  background: #e5e7eb;
}

.shedEmpty {
  padding: 28px 12px;
  color: #6b7280;
  text-align: center;
}

.dangerButton {
  background: #b91c1c;
}

.shedTable .actionIconButton {
  display: inline-flex;
  width: 40px;
  height: 40px;
  min-width: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid currentColor;
  border-radius: 9px;
  padding: 0;
  background: #ffffff;
}

.shedTable .actionIconButton svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.shedTable .editActionButton {
  color: #15803d;
}

.shedTable .deleteActionButton {
  color: #b91c1c;
}

.shedTable .actionIconButton:hover,
.shedTable .actionIconButton:focus-visible {
  color: #ffffff;
  outline: 2px solid #0f172a;
  outline-offset: 2px;
}

.shedTable .editActionButton:hover,
.shedTable .editActionButton:focus-visible {
  background: #15803d;
}

.shedTable .deleteActionButton:hover,
.shedTable .deleteActionButton:focus-visible {
  background: #b91c1c;
}

.shedPickCartPanel .shedActions {
  flex-wrap: nowrap;
  white-space: nowrap;
}

.mobilePickListButton,
.mobilePickListBackdrop,
.mobilePickListCloseButton,
.mobilePickingAction,
.mobilePickingIndicator,
.mobileShedToast {
  display: none;
}

.shedTable .shedActionsColumn .shedActions {
  flex-wrap: nowrap;
  justify-content: flex-end;
  white-space: nowrap;
}

.appMessageDialog.errorDialog {
  border-color: #dc2626;
}

.appMessageDialog.errorDialog h2 {
  color: #991b1b;
}

.shedPickDialog {
  width: min(420px, calc(100vw - 32px));
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 0;
  color: #1f2937;
  background: #ffffff;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.3);
}

.shedPickDialog::backdrop {
  background: rgba(15, 23, 42, 0.55);
}

.shedPickDialog form {
  display: grid;
  gap: 14px;
  padding: 20px;
}

.shedPickDialog h2,
.shedPickDialog p {
  margin: 0;
}

.shedPickDialog label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
}

.shedPickDialog input {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 9px 10px;
}

.shedPickDialogActions {
  justify-content: flex-end;
}

.detailPanel h2 {
  margin: 0;
  font-size: 18px;
}

.muted {
  color: #6b7280;
}

.detailSection {
  margin-top: 18px;
}

.detailSection h3 {
  margin: 0 0 8px;
  font-size: 14px;
  color: #374151;
}

.detailTable th {
  position: static;
  width: 150px;
  background: #f9fafb;
}

.detailTable td,
.detailTable th {
  white-space: normal;
  vertical-align: top;
}

.previewSection {
  border: 1px solid #dbeafe;
  border-radius: 10px;
  padding: 12px;
  background: #eff6ff;
}

.previewGroup {
  margin-top: 14px;
  padding: 10px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #ffffff;
}

.previewGroup h4 {
  margin: 0 0 10px;
  font-size: 13px;
  color: #1e3a8a;
}

.previewField {
  display: grid;
  gap: 5px;
  margin-bottom: 9px;
  font-size: 12px;
  font-weight: 700;
}

.previewField input,
.previewField select {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  padding: 8px;
  background: #ffffff;
  color: #1f2937;
}

.previewToggle {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 9px;
  font-size: 12px;
  font-weight: 700;
}

.previewToggle input {
  width: 16px;
  height: 16px;
}

@media (max-width: 1100px) {
  .topbar {
    gap: 14px;
  }

  .appPageTitle {
    font-size: 18px;
  }

  .gridActionsPanel {
    width: 100%;
    margin-left: 0;
  }

  .wizardLayout {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    overflow-y: auto;
    padding: 12px;
  }

  .wizardSidebar {
    grid-template-rows: auto;
    gap: 8px;
    padding: 0;
  }

  .wizardNav {
    display: flex;
    overflow-x: auto;
    overflow-y: visible;
    padding: 0 0 4px;
  }

  .wizardNavItem {
    min-width: 170px;
    min-height: 54px;
    border-right: 1px solid #cbd5e1;
    border-radius: 9px;
    padding: 10px 12px;
  }

  .wizardNavItem.active {
    box-shadow: inset 0 -4px 0 #2563eb;
  }

  .wizardNavItem.active::after {
    display: none;
  }

  .wizardDraftPill {
    justify-self: start;
    margin: 0 0 8px;
  }

  .wizardPanel {
    border-radius: 12px;
  }
}

.productHeaderEditable {
  margin-bottom: 20px;
}

.productHeaderEditable .previewField {
  margin-bottom: 8px;
}

.productHeaderEditable input {
  font-size: 15px;
  font-weight: 700;
  padding: 10px 12px;
}

.multiSelectDropdown details {
  position: relative;
}

.multiSelectDropdown summary {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  padding: 8px;
  background: #ffffff;
  color: #1f2937;
  cursor: pointer;
  list-style: none;
}

.multiSelectDropdown summary::-webkit-details-marker {
  display: none;
}

.multiSelectDropdown summary::after {
  content: '▾';
  float: right;
  color: #6b7280;
}

.multiSelectDropdown details[open] summary::after {
  content: '▴';
}

.multiSelectBox {
  display: grid;
  gap: 6px;
  margin-top: 4px;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  padding: 8px;
  background: #ffffff;
}

.multiSelectOption {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 400;
}

.multiSelectOption input {
  width: 16px;
  height: 16px;
}

.multiSelectSearch {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  padding: 8px;
  margin-bottom: 8px;
}

.multiSelectOptions {
  display: grid;
  gap: 6px;
  max-height: 240px;
  overflow-y: auto;
}

.singleSearchSelect details {
  position: relative;
}

.singleSearchSelect summary {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  padding: 8px;
  background: #ffffff;
  color: #1f2937;
  cursor: pointer;
  list-style: none;
}

.singleSearchSelect summary::-webkit-details-marker {
  display: none;
}

.singleSearchSelect summary::after {
  content: '▾';
  float: right;
  color: #6b7280;
}

.singleSearchSelect details[open] summary::after {
  content: '▴';
}

.singleSelectBox {
  display: grid;
  gap: 8px;
  margin-top: 4px;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  padding: 8px;
  background: #ffffff;
}

.singleSelectSearch {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  padding: 8px;
}

.singleSelectOptions {
  display: grid;
  gap: 4px;
  max-height: 240px;
  overflow-y: auto;
}

.singleSelectOption {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 6px;
  padding: 7px 8px;
  background: #ffffff;
  color: #1f2937;
  text-align: left;
  cursor: pointer;
  font-size: 12px;
}

.singleSelectOption:hover,
.singleSelectOption.selected {
  background: #dbeafe;
}

.selectedChips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.selectedChip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  padding: 4px 8px;
  background: #dbeafe;
  color: #1e3a8a;
  font-size: 12px;
  cursor: pointer;
}

.selectedChip strong {
  font-size: 14px;
  line-height: 1;
}

.productEditorActions {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
  padding: 10px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #f9fafb;
}

.productEditorActionButtons {
  display: flex;
  gap: 8px;
}

.productEditorActionButtons button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.dirtyIndicator {
  font-size: 12px;
  font-weight: 700;
  color: #6b7280;
}

.productCountIndicator {
  font-size: 12px;
  font-weight: 700;
  color: #374151;
}

.dirtyIndicator.hasChanges {
  color: #92400e;
}

.localSaveIndicator {
  font-size: 12px;
  font-weight: 700;
  color: #047857;
}

.localSaveIndicator.hasLocalSaves {
  color: #065f46;
}

.saveSummaryPanel {
  display: grid;
  gap: 10px;
  margin: 0 16px 10px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 10px 12px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
  font-size: 13px;
}

.saveSummaryPanel[hidden] {
  display: none;
}

.saveSummaryHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.saveSummaryClose {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 999px;
  padding: 0;
  background: #f3f4f6;
  color: #374151;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}

.saveSummaryClose:hover {
  background: #e5e7eb;
}

.saveSummarySimple {
  margin: 0;
  color: #047857;
  font-weight: 700;
}

.saveSummarySection {
  display: grid;
  gap: 4px;
}

.saveSummarySection h2 {
  margin: 0;
  font-size: 13px;
}

.saveSummarySection ul {
  margin: 0;
  padding-left: 18px;
}

.saveSummarySection li {
  margin: 2px 0;
}

.saveSummarySection.success h2 {
  color: #047857;
}

.saveSummarySection.failed h2 {
  color: #b91c1c;
}

.saveSummarySection.warning h2 {
  color: #92400e;
}

.changedField {
  border: 1px solid #f59e0b;
  border-radius: 8px;
  padding: 6px;
  background: #fffbeb;
}

.gridInput,
.gridSelect {
  width: 180px;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 5px 6px;
  background: transparent;
  color: #111827;
}

.gridInput:focus,
.gridSelect:focus {
  border-color: #2563eb;
  background: #ffffff;
  outline: none;
}

.gridCheckbox {
  width: 16px;
  height: 16px;
}

.changedCell {
  background: #fffbeb !important;
  box-shadow: inset 0 0 0 1px #f59e0b;
}

.localSavedCell {
  background: #ecfdf5 !important;
  box-shadow: inset 0 0 0 1px #10b981;
}

.rowSelect {
  width: 16px;
  height: 16px;
}

.tableWrap table {
  min-width: 2200px;
}

.autocompleteCell {
  position: relative;
}

.autocompleteMenu {
  display: none;
  position: fixed;
  z-index: 50;
  min-width: 220px;
  max-height: 240px;
  overflow-y: auto;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
}

.autocompleteMenu.open {
  display: grid;
}

.autocompleteOption {
  width: 100%;
  border: 0;
  border-radius: 0;
  padding: 8px 10px;
  background: #ffffff;
  color: #111827;
  text-align: left;
}

.autocompleteOption:hover,
.activeAutocompleteOption {
  background: #dbeafe;
}

.wizardPage {
  min-height: 100%;
}

.wizardShell {
  flex: 1 1 auto;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
}

.wizardLayout {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 0;
  min-height: 0;
  padding: 10px 16px 14px;
  overflow: hidden;
}

.wizardSidebar {
  display: grid;
  grid-template-rows: auto auto;
  gap: 4px;
  min-height: 0;
  padding-top: 8px;
  padding-right: 0;
  align-content: start;
}

.wizardNav {
  display: grid;
  align-content: start;
  gap: 4px;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
}

.wizardNav::-webkit-scrollbar {
  display: none;
}

.wizardNavItem {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 64px;
  border: 1px solid #cbd5e1;
  border-right: 0;
  border-radius: 8px 0 0 8px;
  padding: 12px 14px;
  background: #f8fafc;
  color: #1f2937;
  text-align: left;
}

.wizardNavItem strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 16px;
  line-height: 1.2;
}

.wizardNavItem.active {
  position: relative;
  z-index: 2;
  border-color: #2563eb;
  border-right-color: #eaf3ff;
  background: #eaf3ff;
  color: #1e3a8a;
  box-shadow: inset 4px 0 0 #2563eb;
}

.wizardNavItem.active::after {
  content: '';
  position: absolute;
  top: -1px;
  right: -1px;
  bottom: -1px;
  width: 2px;
  background: #eaf3ff;
}

.wizardNavItem.locked,
.wizardNavItem:disabled {
  cursor: not-allowed;
  border-color: #e2e8f0;
  background: #f8fafc;
  color: #94a3b8;
  opacity: 0.72;
}

.wizardPanel {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-width: 0;
  min-height: 0;
  border: 1px solid #cbd5e1;
  border-radius: 0 10px 10px 10px;
  background: #ffffff;
  overflow: hidden;
}

.wizardForm {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  align-content: start;
  gap: 28px;
  min-height: 0;
  padding: 38px 24px 22px;
  overflow-y: auto;
}

.wizardField {
  display: grid;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
}

.wizardRequiredLabel {
  margin-left: 6px;
  color: #92400e;
  font-size: 12px;
  font-style: normal;
}

.wizardField input,
.wizardField select,
.wizardField textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 9px 10px;
  background: #ffffff;
  color: #1f2937;
}

.wizardField textarea {
  min-height: 96px;
  resize: vertical;
}

.wizardInvalidField input,
.wizardInvalidField select,
.wizardInvalidField textarea,
.wizardInvalidSection {
  border-color: #dc2626;
}

.wizardValidationMessage {
  display: block;
  color: #b91c1c;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.wizardInvalidSection {
  outline: 1px solid #dc2626;
  outline-offset: 2px;
}

.wizardCompactForm {
  grid-template-columns: minmax(300px, 900px);
  gap: 28px;
  justify-content: center;
  align-content: start;
}

.wizardDraftPill {
  display: inline-flex;
  align-items: center;
  justify-self: center;
  width: fit-content;
  margin: 10px 12px 0;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  padding: 8px 12px;
  background: #f8fafc;
  color: #4b5563;
  font-size: 13px;
  font-weight: 700;
}

.wizardCompactForm .wizardField {
  max-width: 620px;
  font-size: 14px;
}

.wizardCompactForm .wizardField input,
.wizardCompactForm .wizardField select,
.wizardCompactForm .wizardField textarea {
  border-color: #94a3b8;
  padding: 11px 12px;
  font-size: 15px;
  line-height: 1.35;
}

.wizardLookupInput {
  width: 100%;
  min-height: 44px;
  min-width: 0;
  border: 1px solid #94a3b8;
  border-radius: 8px;
  padding: 11px 12px;
  background: #ffffff;
  color: #1f2937;
  font-size: 15px;
  line-height: 1.35;
}

.wizardLookupInputShell {
  width: 100%;
  max-width: 620px;
}

.wizardMultiLookupShell {
  position: static;
  display: grid;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  border: 1px solid #94a3b8;
  border-radius: 8px;
  padding: 8px;
  overflow: visible;
  background: #ffffff;
}

.wizardMultiLookupShell .gridEditor {
  width: 100%;
  min-height: 40px;
  border: 0;
  border-radius: 6px;
  padding: 8px 10px;
  background: #f8fafc;
  box-shadow: inset 0 -2px 0 #2563eb;
}

.wizardLookupPills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.wizardLookupPills .multiLookupEditorPill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  padding: 2px 6px;
  background: #dbeafe;
  color: #1e3a8a;
  font-size: 12px;
  white-space: nowrap;
}

.wizardLookupPills .highlightedMultiLookupPill {
  border-color: #2563eb;
  background: #bfdbfe;
  box-shadow: inset 0 0 0 1px #2563eb;
}

.wizardLookupPills .multiLookupRemovePill {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 999px;
  padding: 0;
  background: transparent;
  color: #1e3a8a;
  font-size: 14px;
  line-height: 1;
}

.wizardLookupPills .multiLookupRemovePill:hover {
  background: #bfdbfe;
}

.wizardCompactForm .wizardField input,
.wizardCompactForm .wizardField select {
  min-height: 44px;
}

.wizardCompactForm .wizardField textarea {
  min-height: 140px;
}

.wizardFieldHelper {
  display: block;
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}

.wizardDescriptionActions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 620px;
  margin-top: -3px;
}

.wizardGenerateDescriptionButton {
  padding: 8px 12px;
}

.wizardCaseQuantityInput {
  padding-right: 4px;
}

.wizardCaseQuantityInput::-webkit-inner-spin-button,
.wizardCaseQuantityInput::-webkit-outer-spin-button {
  width: 30px;
  min-height: 30px;
  margin: 0;
  cursor: pointer;
  opacity: 1;
  transform: scale(1.25);
  transform-origin: center right;
}

.wizardInlineMessage {
  color: #6b7280;
  font-size: 12px;
  font-weight: 700;
}

.wizardFutureArea {
  display: grid;
  gap: 14px;
  max-width: 620px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 12px;
  background: #f9fafb;
}

.wizardCostRowsArea,
.wizardPriceRowsArea {
  width: 100%;
  max-width: 900px;
}

.wizardMultiLookupField {
  max-width: 620px;
}

.wizardRowsTable {
  display: grid;
  gap: 0;
  min-width: 0;
  overflow-x: auto;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
}

.wizardRowsHeader,
.wizardRowsBody {
  display: grid;
  align-items: center;
  gap: 8px;
  min-width: max-content;
  padding: 8px;
}

.wizardRowsHeader {
  border-bottom: 1px solid #e5e7eb;
  background: #f8fafc;
  color: #374151;
  font-size: 12px;
  font-weight: 700;
}

.wizardRowsBody {
  color: #1f2937;
  font-size: 13px;
  font-weight: 700;
}

.wizardRowsBody input,
.wizardRowsBody select,
.wizardRowsBody .wizardLookupInput,
.wizardSupplierCard input,
.wizardSupplierCard select,
.wizardSupplierCard .wizardLookupInput {
  width: 100%;
  min-height: 40px;
  min-width: 0;
  border: 1px solid #94a3b8;
  border-radius: 8px;
  padding: 8px 10px;
  background: #ffffff;
  color: #1f2937;
  font-size: 14px;
}

.wizardCostRowsGrid {
  grid-template-columns: minmax(150px, 1fr) 110px 110px 82px;
}

.wizardPriceRowsGrid {
  grid-template-columns: minmax(220px, 1fr) 90px 110px 110px 90px 82px;
}

.wizardBarcodeRowsGrid {
  grid-template-columns: 90px minmax(160px, 1fr) 72px;
}

.wizardSupplierCard {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) minmax(170px, 1fr) 82px;
  gap: 14px;
  align-items: end;
}

.wizardIconButton {
  min-height: 40px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 8px 10px;
  background: #f3f4f6;
  color: #6b7280;
  font-size: 12px;
  font-weight: 700;
}

.wizardAddButton {
  justify-self: start;
  min-height: 42px;
  border-radius: 8px;
  padding: 9px 14px;
  background: #047857;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
}

.wizardHiddenArea {
  display: none;
}

.wizardFutureArea h3,
.wizardFutureArea p {
  margin: 0;
}

.wizardFutureArea h3 {
  font-size: 14px;
  color: #374151;
}

.wizardFutureArea p,
.wizardFutureControl {
  color: #6b7280;
  font-size: 13px;
  font-weight: 700;
}

.wizardFutureControl {
  min-height: 44px;
  border: 1px dashed #94a3b8;
  border-radius: 8px;
  padding: 11px 12px;
  background: #ffffff;
}

.wizardFutureCheckbox {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #374151;
  font-size: 14px;
  font-weight: 700;
}

.wizardFutureCheckbox input {
  width: 18px;
  height: 18px;
}

.wizardToggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
}

.wizardToggle input {
  width: 16px;
  height: 16px;
}

.wizardActions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border-top: 1px solid #e5e7eb;
  background: #ffffff;
}

.wizardActions button,
.wizardGenerateDescriptionButton,
.wizardPlaceholderAction {
  min-height: 40px;
  border-radius: 8px;
  padding: 9px 14px;
  font-size: 14px;
  font-weight: 700;
}

.wizardActions #wizardNextButton,
.topbarLink {
  background: #2563eb;
  color: #ffffff;
}

.wizardActions #wizardBackButton,
.wizardGenerateDescriptionButton {
  border: 1px solid #94a3b8;
  background: #ffffff;
  color: #1f2937;
}

.wizardReviewForm {
  grid-template-columns: minmax(280px, 900px);
}

.wizardReviewGroup {
  display: grid;
  gap: 8px;
  max-width: 900px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 12px;
  background: #ffffff;
}

.wizardReviewGroupHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.wizardReviewGroup h3 {
  margin: 0;
  font-size: 14px;
  color: #374151;
}

.wizardReviewGroup h4 {
  margin: 8px 0 0;
  font-size: 13px;
  color: #4b5563;
}

.wizardReviewTable {
  width: 100%;
  min-width: 0;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
}

.wizardReviewTable th,
.wizardReviewTable td {
  max-width: none;
  white-space: normal;
}

.wizardReviewRowsTable {
  table-layout: auto;
}

.wizardReviewEmptyMessage {
  margin: 0;
  color: #4b5563;
}

@media (max-width: 820px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbarActions {
    width: 100%;
    flex-wrap: wrap;
  }

  .iconNav {
    max-width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .iconNavLink {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
  }

  .userMenu {
    margin-left: auto;
  }

  .productEditorPage .lookupBar {
    overflow-x: auto;
    padding: 8px 12px;
  }

  .productEditorPage .controls {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 10px 12px;
  }

  .productEditorPage .controls label,
  .productEditorPage .controls input,
  .productEditorPage .controls select {
    width: 100%;
    min-width: 0;
  }

  .productEditorPage .gridActionsPanel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .productEditorPage .productCountIndicator,
  .productEditorPage .dirtyIndicator,
  .productEditorPage .gridStatusMessage {
    grid-column: 1 / -1;
  }

  .productEditorPage .gridPanel {
    padding: 8px;
  }

  .productEditorPage .tableWrap {
    min-height: 0;
    border-radius: 8px;
  }

  .productEditorPage .tableWrap table {
    min-width: 1500px;
  }

  .adminShell,
  .homeShell {
    padding: 14px;
  }

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

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

  .staffShedPage .shedListLayout {
    flex: 1 1 auto;
    height: 100%;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 0;
    overflow-x: hidden;
    padding: 8px;
  }

  .staffShedPage #shedListView {
    min-height: 0;
  }

  .staffShedPage .shedListLayout.mobileBrowseMode {
    grid-template-rows: auto minmax(0, 1fr);
    align-content: stretch;
    overflow-y: hidden;
  }

  .staffShedPage .shedListLayout.mobileBrowseMode .shedMainPanel {
    display: flex;
    height: 100%;
    min-height: 0;
    flex-direction: column;
  }

  .staffShedPage .shedListLayout.mobileBrowseMode .shedStockTableWrap {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
  }

  .staffShedPage .shedListLayout.mobileBrowseMode .shedPickCartPanel {
    display: none;
  }

  .staffShedPage .shedListLayout,
  .staffShedPage .shedMainPanel,
  .staffShedPage .shedPickCartPanel {
    overflow-anchor: none;
  }

  .staffShedPage .shedModeToolbar {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    grid-column: 1;
    justify-self: stretch;
    overflow: hidden;
  }

  .staffShedPage .shedModeToolbar > * {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .staffShedPage #createPickListButton {
    display: none;
  }

  .staffShedPage .shedListLayout.mobilePickListMode .shedModeToolbar,
  .staffShedPage .shedListLayout.mobilePickListMode .shedMainPanel,
  .staffShedPage .shedListLayout.mobilePickingMode .shedModeToolbar,
  .staffShedPage .shedListLayout.mobilePickingMode .shedMainPanel,
  .staffShedPage .shedListLayout.mobilePickingMode .shedAddPanel {
    display: none;
  }

  .staffShedPage .shedListLayout.overlayOpen .shedModeToolbar {
    display: none;
  }

  .staffShedPage .shedListLayout.mobilePickingMode {
    grid-template-rows: minmax(0, 1fr);
    align-content: stretch;
    max-width: 100%;
    overflow-y: hidden;
    padding: 8px;
  }

  .staffShedPage .shedListLayout.mobilePickListMode .shedPickCartPanel {
    position: fixed;
    inset: auto 8px 8px;
    top: auto;
    right: 8px;
    bottom: 8px;
    left: 8px;
    z-index: 62;
    display: flex;
    width: auto;
    max-height: min(82vh, 720px);
    min-width: 0;
    max-width: calc(100vw - 16px);
    flex-direction: column;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
    animation: mobilePickListIn 220ms ease;
    box-shadow: 0 -16px 40px rgba(15, 23, 42, 0.28);
  }

  .staffShedPage .shedListLayout.mobilePickListMode .shedPickCartPanel .shedTableWrap {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .staffShedPage .shedListLayout.mobilePickingMode .shedPickCartPanel {
    position: static;
    z-index: auto;
    display: flex;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    max-height: none;
    height: 100%;
    min-height: 0;
    flex-direction: column;
    overflow: hidden;
    border-radius: 10px;
    animation: none;
    box-shadow: none;
  }

  .staffShedPage .shedListLayout.mobilePickingMode .shedPickCartPanel .shedTableWrap {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
  }

  .staffShedPage .shedListLayout.mobilePickListMode .shedPickCartHeader,
  .staffShedPage .shedListLayout.mobilePickingMode .shedPickCartHeader {
    align-items: flex-start;
    flex-direction: column;
  }

  .staffShedPage .shedListLayout.mobilePickListMode .shedPickCartHeader .shedActions,
  .staffShedPage .shedListLayout.mobilePickingMode .shedPickCartHeader .shedActions {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    white-space: normal;
  }

  .staffShedPage .mobilePickListButton {
    position: fixed;
    right: 16px;
    bottom: max(16px, env(safe-area-inset-bottom));
    z-index: 64;
    display: inline-flex;
    width: 58px;
    height: 58px;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    padding: 0;
    background: #111827;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.32);
  }

  .staffShedPage .mobilePickListButton svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 2;
  }

  .staffShedPage .mobilePickListButtonLabel {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .staffShedPage .mobilePickListCount {
    position: absolute;
    top: -6px;
    right: -5px;
    min-width: 23px;
    height: 23px;
    border: 2px solid #ffffff;
    border-radius: 999px;
    padding: 1px 5px;
    color: #ffffff;
    background: #dc2626;
    font-size: 11px;
    font-weight: 800;
    line-height: 17px;
    text-align: center;
  }

  .staffShedPage .mobilePickListBackdrop {
    position: fixed;
    inset: 0;
    z-index: 61;
    border: 0;
    border-radius: 0;
    padding: 0;
    background: rgba(15, 23, 42, 0.55);
  }

  .staffShedPage .shedListLayout.mobilePickListMode ~ .mobilePickListBackdrop {
    display: block;
  }

  .staffShedPage .shedListLayout.mobilePickListMode ~ .mobilePickListButton,
  .staffShedPage .shedListLayout.mobilePickingMode ~ .mobilePickListButton {
    display: none;
  }

  .staffShedPage .shedListLayout.mobileBrowseMode ~ .mobilePickListButton {
    display: inline-flex;
  }

  .staffShedPage .shedListLayout.mobilePickListMode .mobilePickListCloseButton {
    display: inline-flex;
  }

  .staffShedPage .shedListLayout.mobilePickListRecovery .mobilePickListCloseButton {
    display: none;
  }

  .staffShedPage .shedListLayout.mobilePickListRecovery .mobileReturnToMainButton {
    display: inline-flex;
  }

  .staffShedPage .shedListLayout.mobilePickingMode .mobilePickingAction,
  .staffShedPage .shedListLayout.mobilePickingMode .mobilePickingIndicator {
    display: inline-flex;
  }

  .staffShedPage .shedListLayout.mobilePickingMode #startPickingButton,
  .staffShedPage .shedListLayout.mobilePickingMode .mobilePickListCloseButton {
    display: none;
  }

  .staffShedPage .mobilePickingIndicator {
    align-items: center;
    border-radius: 999px;
    padding: 6px 9px;
    color: #166534;
    background: #dcfce7;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
  }

  .staffShedPage .mobileShedToast {
    position: fixed;
    left: 50%;
    bottom: calc(max(86px, env(safe-area-inset-bottom) + 86px));
    z-index: 70;
    display: block;
    max-width: calc(100vw - 32px);
    border-radius: 999px;
    padding: 10px 16px;
    color: #ffffff;
    background: #166534;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.24);
    font-size: 13px;
    font-weight: 700;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 12px);
    transition: opacity 160ms ease, transform 160ms ease;
  }

  .staffShedPage .mobileShedToast.visible {
    opacity: 1;
    transform: translate(-50%, 0);
  }

  @keyframes mobilePickListIn {
    from {
      opacity: 0;
      transform: translateY(24px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .staffShedPage .shedModeToolbar {
    align-items: stretch;
  }

  .staffShedPage .shedModeToolbar #openAddToShedButton,
  .staffShedPage .shedCategorySelectLabel {
    flex: 1 1 100%;
  }

  .staffShedPage .shedTable .shedActionsColumn {
    width: 104px;
    text-align: center;
  }

  .staffShedPage .shedTable .actionIconButton {
    width: 40px;
    height: 40px;
    min-width: 40px;
    padding: 0;
  }

  .staffShedPage .shedTable .shedActionsColumn .shedActions,
  .staffShedPage .shedTable .shedRowActions,
  .staffShedPage .shedTable .shedRowActionsRight {
    gap: 4px;
    justify-content: center;
    margin-left: 0;
  }

  .staffShedPage .shedTable .shedQtyColumn {
    width: 58px;
  }

  .staffShedPage .shedTable,
  .staffShedPage .shedTableWrap,
  .staffShedPage .shedMainPanel,
  .staffShedPage .shedPickCartPanel {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
  }

  .staffShedPage .shedListLayout.shedOverlayOpen .shedMainPanel,
  .staffShedPage .shedListLayout.addOverlayOpen .shedAddPanel {
    width: calc(100vw - 16px);
    max-width: calc(100vw - 16px);
    max-height: calc(100dvh - 24px);
  }

  .staffShedPage .shedListLayout.mobilePickingMode.shedOverlayOpen .shedMainPanel {
    display: block;
  }

  .wizardLayout {
    padding: 10px;
  }

  .wizardSidebar {
    padding: 0;
  }

  .wizardNav {
    display: flex;
    overflow-x: auto;
    overflow-y: visible;
    padding: 0 0 2px;
  }

  .wizardNavItem {
    min-width: 150px;
  }

  .wizardNavItem.active::after {
    display: none;
  }

  .wizardDraftPill {
    margin: 8px 0 10px;
  }

  .wizardPanel {
    border-radius: 10px;
    min-height: min(560px, calc(100dvh - 240px));
  }

  .wizardForm {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 20px 14px;
  }

  .wizardActions {
    position: sticky;
    bottom: 0;
    z-index: 3;
    padding: 10px;
  }

  .wizardActions button {
    flex: 1 1 0;
  }
}

@media (max-width: 600px) {
  .staffShedPage {
    overflow-x: hidden;
  }

  .staffShedPage #shedListView {
    flex: 1 1 auto;
    height: 100%;
    min-height: 0;
  }

  .staffShedPage .topbar {
    flex-direction: row;
    align-items: center;
    gap: 5px;
    overflow: hidden;
    padding: 6px 7px;
  }

  .staffShedPage .appBrand {
    gap: 0;
  }

  .staffShedPage .appBrand h1 {
    font-size: 20px;
    letter-spacing: 0.08em;
  }

  .staffShedPage .appBrand p {
    margin-top: 0;
    font-size: 8px;
    letter-spacing: 0.02em;
    white-space: nowrap;
  }

  .staffShedPage .appPageTitle {
    min-width: 0;
    font-size: 15px;
    line-height: 1;
    white-space: nowrap;
  }

  .staffShedPage .topbarActions {
    width: auto;
    min-width: 0;
    margin-left: auto;
    gap: 0;
    flex-wrap: nowrap;
    overflow: hidden;
  }

  .staffShedPage .iconNav {
    gap: 3px;
    overflow: visible;
    padding-bottom: 0;
  }

  .staffShedPage .iconNavLink {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
    border-radius: 10px;
  }

  .staffShedPage .iconNavLink svg {
    width: 21px;
    height: 21px;
  }

  .staffShedPage .userMenu {
    display: none;
  }

  .staffShedPage .shedListLayout {
    gap: 3px;
    height: 100%;
    min-height: 0;
    align-content: stretch;
    padding: 4px;
  }

  .staffShedPage .shedListLayout.mobileBrowseMode {
    grid-template-rows: auto minmax(0, 1fr);
    height: 100%;
  }

  .staffShedPage .shedModeToolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(132px, 0.78fr);
    align-items: stretch;
    gap: 4px;
    border-radius: 9px;
    padding: 4px;
  }

  .staffShedPage .shedModeToolbar > * {
    width: auto;
    max-width: 100%;
  }

  .staffShedPage .shedModeToolbar #openAddToShedButton,
  .staffShedPage .shedCategorySelectLabel {
    flex: initial;
  }

  .staffShedPage .shedModeToolbar #openAddToShedButton {
    min-height: 36px;
    padding: 7px 8px;
    font-size: 12px;
    line-height: 1.1;
  }

  .staffShedPage .shedCategorySelectLabel {
    gap: 2px;
    font-size: 10px;
  }

  .staffShedPage .shedCategorySelectLabel span {
    display: none;
  }

  .staffShedPage .shedCategorySelectLabel select {
    min-height: 36px;
    padding: 7px 8px;
    font-size: 12px;
  }

  .staffShedPage .shedCard {
    border-radius: 9px;
    padding: 5px;
  }

  .staffShedPage .shedListLayout.mobileBrowseMode .shedMainPanel {
    height: 100%;
    min-height: 0;
    padding-top: 4px;
  }

  .staffShedPage .shedListLayout.mobileBrowseMode .shedMainPanel > .shedCardHeader {
    display: none;
  }

  .staffShedPage .shedCardHeader {
    gap: 5px;
    margin-bottom: 5px;
  }

  .staffShedPage .shedCardHeader h2 {
    font-size: 16px;
    line-height: 1.1;
  }

  .staffShedPage .shedSearchLabel {
    grid-column: 1 / -1;
    gap: 2px;
    margin: 0;
    font-size: 10px;
  }

  .staffShedPage .shedSearchLabel span {
    display: none;
  }

  .staffShedPage .shedSearchLabel input {
    min-height: 34px;
    padding: 7px 8px;
    font-size: 13px;
  }

  .staffShedPage .shedListLayout.mobileBrowseMode .shedStockTableWrap {
    flex: 1 1 0;
    height: 100%;
    max-height: none;
    min-height: 0;
  }

  .staffShedPage .shedCategoryHeaderRow th {
    padding: 6px 8px;
    font-size: 11px;
    letter-spacing: 0.04em;
  }

  .staffShedPage .shedTable th,
  .staffShedPage .shedTable td {
    padding: 4px 5px;
    font-size: 12px;
    line-height: 1.18;
  }

  .staffShedPage .shedProductCell {
    align-items: flex-start;
    flex-direction: column;
    gap: 1px;
  }

  .staffShedPage .shedProductCell > span:first-child {
    overflow: visible;
    font-size: 12px;
    line-height: 1.2;
    text-overflow: clip;
  }

  .staffShedPage .shedProductNote {
    font-size: 10px;
    line-height: 1.1;
  }

  .staffShedPage .shedTable .shedQtyColumn {
    width: 50px;
    font-size: 12px;
  }

  .staffShedPage .shedTable .shedActionsColumn {
    width: 86px;
  }

  .staffShedPage .shedTable .actionIconButton {
    width: 36px;
    height: 36px;
    min-width: 36px;
  }

  .staffShedPage .shedTable .actionIconButton svg {
    width: 16px;
    height: 16px;
  }

  .staffShedPage .shedTable .shedActionsColumn .shedActions,
  .staffShedPage .shedTable .shedRowActions,
  .staffShedPage .shedTable .shedRowActionsRight {
    gap: 3px;
  }

  .staffShedPage .mobilePickListButton {
    right: 8px;
    bottom: max(8px, env(safe-area-inset-bottom));
    width: 50px;
    height: 50px;
  }

  .staffShedPage .mobilePickListButton svg {
    width: 23px;
    height: 23px;
  }

  .staffShedPage .mobilePickListCount {
    top: -5px;
    right: -5px;
    min-width: 21px;
    height: 21px;
    font-size: 10px;
    line-height: 15px;
  }
}
