:root {
  --green: #7bd21d;
  --green-dark: #4f9f0e;
  --ink: #151716;
  --muted: #72766f;
  --line: #dfe5dc;
  --soft: #f5f8f2;
  --paper: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Aptos, "Segoe UI", Calibri, Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top right, rgba(123, 210, 29, 0.18), transparent 34rem),
    linear-gradient(135deg, #f8faf5, #eef4eb);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: url("/assets/warehouse-world-watermark-ring.png") center 58% / min(50vw, 640px) auto no-repeat;
  opacity: 0.075;
  pointer-events: none;
}

body.help-open {
  overflow: hidden;
}

.app-intro {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at 24% 18%, rgba(123, 210, 29, 0.24), transparent 30rem),
    radial-gradient(circle at 78% 82%, rgba(35, 199, 170, 0.18), transparent 28rem),
    linear-gradient(135deg, #f9fcf7, #edf5e9 58%, #e2f6d6);
  transition:
    opacity 0.65s ease,
    visibility 0.65s ease,
    transform 0.65s ease;
}

.app-intro::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/assets/warehouse-world-watermark-ring.png") center / min(76vw, 820px) auto no-repeat;
  opacity: 0.05;
  animation: introWatermark 30s ease-in-out both;
}

.intro-orbit {
  position: absolute;
  width: min(72vw, 760px);
  aspect-ratio: 1;
  border-radius: 999px;
  border: 1px solid rgba(123, 210, 29, 0.25);
  box-shadow:
    inset 0 0 80px rgba(123, 210, 29, 0.1),
    0 0 90px rgba(35, 199, 170, 0.12);
  animation: introOrbit 30s ease-in-out both;
}

.intro-card {
  position: relative;
  z-index: 1;
  width: min(92vw, 620px);
  padding: clamp(28px, 5vw, 52px);
  text-align: center;
  border: 1px solid rgba(123, 210, 29, 0.36);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(244, 255, 235, 0.7)),
    rgba(255, 255, 255, 0.72);
  box-shadow:
    0 30px 80px rgba(53, 96, 24, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
  animation: introCardIn 30s ease both;
}

.intro-card img {
  width: min(68vw, 330px);
  max-height: 132px;
  object-fit: contain;
  margin-bottom: 18px;
  filter: drop-shadow(0 12px 20px rgba(79, 159, 14, 0.16));
  animation: introLogoFloat 2.8s ease-in-out infinite;
}

.intro-card p {
  margin: 0;
  color: var(--green-dark);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.intro-card h1 {
  margin: 8px 0 18px;
  font-size: clamp(2rem, 5.8vw, 4rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.intro-modules {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 560px;
  margin: 0 auto 24px;
}

.intro-modules span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  color: #173207;
  font-size: 0.82rem;
  font-weight: 900;
  border: 1px solid rgba(123, 210, 29, 0.42);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 20px rgba(79, 159, 14, 0.1);
  animation:
    introChip 6s ease both,
    introModulePulse 4.8s ease-in-out infinite;
}

.intro-modules span:nth-child(2) {
  animation-delay: 0.15s;
}

.intro-modules span:nth-child(3) {
  animation-delay: 0.3s;
}

.intro-modules span:nth-child(4) {
  animation-delay: 0.45s;
}

.intro-modules span:nth-child(5) {
  animation-delay: 0.6s;
}

.intro-modules span:nth-child(6) {
  animation-delay: 0.75s;
}

.intro-progress {
  height: 8px;
  width: min(320px, 82%);
  margin: 0 auto;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(123, 210, 29, 0.15);
  box-shadow: inset 0 0 0 1px rgba(79, 159, 14, 0.12);
}

.intro-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #4f9f0e, #7bd21d, #23c7aa);
  animation: introProgress 29.4s ease-in-out forwards;
}

.intro-loading {
  margin-top: 12px;
  color: rgba(21, 23, 22, 0.58);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.intro-powered {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 72px;
  margin-top: 14px;
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  animation: introPoweredReveal 30s ease-in-out forwards;
}

.intro-powered span {
  color: #526070;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.intro-powered img {
  object-fit: contain;
  margin-bottom: 0;
  border-radius: 12px;
  animation: introPoweredBlink 1.45s ease-in-out infinite;
  animation-delay: 24s;
}

.intro-powered .intro-zylon-logo {
  width: min(42vw, 188px);
  max-height: 48px;
  padding: 3px 6px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(247, 250, 252, 0.46)),
    rgba(255, 255, 255, 0.5);
  box-shadow:
    0 10px 24px rgba(10, 34, 55, 0.1),
    0 0 0 1px rgba(35, 199, 170, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

.intro-powered .intro-zylon-qr {
  width: 46px;
  height: 46px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow:
    0 10px 22px rgba(10, 34, 55, 0.12),
    0 0 0 1px rgba(35, 199, 170, 0.16);
}

.mobile-intro {
  display: none;
}

body.mobile-stock-mode .app-intro {
  background:
    linear-gradient(150deg, rgba(248, 252, 245, 0.98), rgba(233, 248, 224, 0.96) 52%, rgba(230, 250, 246, 0.98)),
    #f8fcf5;
  padding: 0;
  overflow: hidden;
}

body.mobile-intro-active::before,
body.mobile-intro-active .app-intro::before {
  display: none;
}

body.mobile-stock-mode .intro-card,
body.mobile-stock-mode .intro-orbit {
  display: none;
}

body.mobile-stock-mode .mobile-intro {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 16px;
}

.mobile-intro-phone {
  position: relative;
  width: min(88vw, calc((100vh - 32px) * 0.48), 360px);
  height: min(calc(100vh - 32px), 760px);
  padding: 13px;
  border-radius: 42px;
  background: linear-gradient(145deg, #151a18, #2b312f 44%, #0f1312), #171b19;
  box-shadow:
    0 34px 70px rgba(36, 68, 24, 0.28),
    0 12px 32px rgba(10, 22, 18, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  animation: mobileIntroPhone 20s cubic-bezier(0.18, 0.84, 0.24, 1) forwards;
}

.mobile-intro-speaker {
  position: absolute;
  top: 16px;
  left: 50%;
  z-index: 3;
  width: 92px;
  height: 24px;
  transform: translateX(-50%);
  border-radius: 0 0 18px 18px;
  background: #111513;
}

.mobile-intro-screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(244, 253, 239, 0.9) 48%, rgba(229, 249, 242, 0.92)), #f7fcf4;
  box-shadow: inset 0 0 0 1px rgba(123, 210, 29, 0.28);
}

.mobile-intro-screen::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(123, 210, 29, 0.24);
  border-radius: 26px;
  transform: scale(0.92);
  animation: mobileIntroPulse 3.4s ease-in-out infinite;
}

.mobile-intro-scan {
  position: absolute;
  left: 18px;
  right: 18px;
  top: 92px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #4f9f0e 22%, #23c7aa 76%, transparent);
  box-shadow: 0 0 22px rgba(35, 199, 170, 0.44);
  animation: mobileIntroScan 4.2s ease-in-out infinite;
}

.mobile-intro-logo {
  position: absolute;
  top: clamp(38px, 7vh, 52px);
  left: 50%;
  width: 218px;
  max-width: 76%;
  transform: translateX(-50%);
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(79, 159, 14, 0.18));
  animation: mobileIntroLogo 20s ease forwards;
}

.mobile-intro-title {
  position: absolute;
  top: clamp(150px, 24vh, 188px);
  left: 26px;
  right: 26px;
  text-align: center;
}

.mobile-intro-title span {
  display: block;
  color: #3d8810;
  font-size: 0.7rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mobile-intro-title strong {
  display: block;
  margin-top: 6px;
  color: #151716;
  font-size: clamp(1.9rem, 7.2vw, 2.75rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.mobile-intro-cards {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: clamp(112px, 17vh, 132px);
  display: grid;
  gap: 10px;
}

.mobile-intro-cards i {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  align-content: center;
  column-gap: 10px;
  height: 50px;
  padding: 0 12px 0 9px;
  overflow: hidden;
  border: 1px solid rgba(123, 210, 29, 0.34);
  border-radius: 14px;
  background:
    radial-gradient(circle at 12% 50%, rgba(123, 210, 29, 0.22), transparent 46%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.98), rgba(237, 253, 232, 0.88)),
    #fff;
  box-shadow:
    0 14px 26px rgba(38, 76, 19, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  font-style: normal;
  animation: mobileIntroCard 20s ease-in-out infinite;
}

.mobile-intro-cards i::before {
  content: "";
  grid-row: 1 / span 2;
  grid-column: 1;
  width: 26px;
  height: 26px;
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), transparent 42%),
    linear-gradient(135deg, #7bd21d, #23c7aa);
  box-shadow:
    0 9px 18px rgba(35, 199, 170, 0.22),
    inset 0 0 0 1px rgba(255, 255, 255, 0.48);
}

.mobile-intro-cards i:nth-child(2)::before {
  border-radius: 999px;
  background:
    radial-gradient(circle at center, #ffffff 0 22%, transparent 24%),
    linear-gradient(135deg, #23c7aa, #5ee5ff);
}

.mobile-intro-cards i:nth-child(3)::before {
  background:
    linear-gradient(90deg, transparent 30%, rgba(255, 255, 255, 0.9) 31% 36%, transparent 37% 63%, rgba(255, 255, 255, 0.9) 64% 69%, transparent 70%),
    linear-gradient(135deg, #4f9f0e, #7bd21d);
}

.mobile-intro-cards i span,
.mobile-intro-cards i strong {
  grid-column: 2;
  min-width: 0;
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
}

.mobile-intro-cards i span {
  color: #4f9f0e;
  font-size: 0.52rem;
  font-weight: 950;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.mobile-intro-cards i strong {
  display: block;
  margin-top: 1px;
  color: #151716;
  font-size: 0.7rem;
  font-weight: 950;
  line-height: 0.95;
}

.mobile-intro-cards i:nth-child(2) {
  animation-delay: 0.35s;
}

.mobile-intro-cards i:nth-child(3) {
  animation-delay: 0.7s;
}

.mobile-intro-progress {
  position: absolute;
  left: 34px;
  right: 34px;
  bottom: 86px;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(123, 210, 29, 0.15);
}

.mobile-intro-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #4f9f0e, #7bd21d, #23c7aa);
  animation: mobileIntroProgress 20s linear forwards;
}

.mobile-intro-zylon {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  opacity: 0;
  transform: translateY(12px) scale(0.96);
  animation: mobileIntroZylon 20s ease forwards;
}

.mobile-intro-zylon span {
  color: #526070;
  font-size: 0.66rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mobile-intro-zylon img {
  width: min(44vw, 142px);
  max-height: 38px;
  object-fit: contain;
  padding: 2px 6px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 8px 18px rgba(20, 52, 68, 0.12);
}

@media (max-height: 720px) {
  body.mobile-stock-mode .mobile-intro {
    padding: 10px;
  }

  .mobile-intro-phone {
    width: min(90vw, calc((100vh - 20px) * 0.48), 340px);
    height: calc(100vh - 20px);
    padding: 10px;
    border-radius: 34px;
  }

  .mobile-intro-screen {
    border-radius: 26px;
  }

  .mobile-intro-logo {
    width: 190px;
  }

  .mobile-intro-title strong {
    font-size: clamp(1.72rem, 6.6vw, 2.28rem);
  }

  .mobile-intro-cards i {
    grid-template-columns: 30px minmax(0, 1fr);
    column-gap: 8px;
    height: 42px;
    padding: 0 8px 0 7px;
  }

  .mobile-intro-cards i::before {
    width: 22px;
    height: 22px;
    border-radius: 8px;
  }

  .mobile-intro-cards i span {
    font-size: 0.46rem;
  }

  .mobile-intro-cards i strong {
    font-size: 0.64rem;
  }
}

.app-intro.intro-hide {
  opacity: 0;
  visibility: hidden;
  transform: scale(1.015);
  pointer-events: none;
}

@keyframes introCardIn {
  0% {
    opacity: 0;
    transform: translateY(24px) scale(0.96);
  }
  16%,
  88% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 1;
    transform: translateY(-4px) scale(1);
  }
}

@keyframes introLogoFloat {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-6px) scale(1.02);
  }
}

@keyframes introChip {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  20%,
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes introModulePulse {
  0%,
  100% {
    box-shadow: 0 8px 20px rgba(79, 159, 14, 0.1);
    background: rgba(255, 255, 255, 0.72);
  }
  50% {
    box-shadow:
      0 12px 26px rgba(79, 159, 14, 0.16),
      0 0 0 3px rgba(123, 210, 29, 0.08);
    background: rgba(246, 255, 239, 0.9);
  }
}

@keyframes introProgress {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes introPoweredReveal {
  0%,
  79% {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  82%,
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes introPoweredBlink {
  0%,
  100% {
    transform: scale(1);
    filter: drop-shadow(0 8px 14px rgba(13, 47, 82, 0.14));
  }
  50% {
    transform: scale(1.025);
    filter: drop-shadow(0 12px 24px rgba(6, 90, 150, 0.28));
  }
}

@keyframes introOrbit {
  0% {
    opacity: 0;
    transform: rotate(0deg) scale(0.82);
  }
  20%,
  100% {
    opacity: 1;
    transform: rotate(16deg) scale(1);
  }
}

@keyframes introWatermark {
  0% {
    transform: scale(0.9);
    opacity: 0;
  }
  24%,
  100% {
    transform: scale(1);
    opacity: 0.055;
  }
}

@keyframes mobileIntroPhone {
  0% {
    opacity: 0;
    transform: translateY(34px) rotateX(12deg) scale(0.92);
  }
  12%,
  86% {
    opacity: 1;
    transform: translateY(0) rotateX(0) scale(1);
  }
  100% {
    opacity: 0.98;
    transform: translateY(-8px) scale(1.015);
  }
}

@keyframes mobileIntroPulse {
  0%,
  100% {
    opacity: 0.28;
    transform: scale(0.92);
  }
  50% {
    opacity: 0.76;
    transform: scale(1);
  }
}

@keyframes mobileIntroScan {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0;
  }
  14%,
  82% {
    opacity: 1;
  }
  50% {
    transform: translateY(360px);
    opacity: 0.86;
  }
}

@keyframes mobileIntroLogo {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(-10px) scale(0.92);
  }
  12%,
  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

@keyframes mobileIntroCard {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes mobileIntroProgress {
  0% {
    width: 0;
  }
  84% {
    width: 88%;
  }
  100% {
    width: 100%;
  }
}

@keyframes mobileIntroZylon {
  0%,
  82% {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
  }
  86%,
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  border-radius: 8px;
  padding: 0.8rem 1.05rem;
  color: #fff;
  background: var(--green-dark);
  cursor: pointer;
  font-weight: 700;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 8px;
  padding: 0.8rem 1.05rem;
  color: #fff;
  background: var(--green-dark);
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
}

button.ghost {
  color: var(--ink);
  background: #edf5e8;
}

button.cloud-action,
.button-link.cloud-action {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-width: 122px;
  color: #102009;
  border: 1px solid rgba(123, 210, 29, 0.58);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(230, 255, 211, 0.8)),
    linear-gradient(135deg, #7bd21d, #e6ff63);
  box-shadow:
    0 10px 24px rgba(79, 159, 14, 0.16),
    inset 0 0 0 1px rgba(255, 255, 255, 0.45);
  transform: translateY(0);
  animation: cloudPulse 2.2s ease-in-out infinite;
}

button.cloud-action::before,
.button-link.cloud-action::before {
  content: "";
  position: absolute;
  inset: -45% auto -45% -70%;
  z-index: -1;
  width: 60%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.82), transparent);
  transform: skewX(-18deg);
  animation: cloudShine 2.8s ease-in-out infinite;
}

button.cloud-action:hover,
.button-link.cloud-action:hover {
  transform: translateY(-2px);
  box-shadow:
    0 16px 34px rgba(79, 159, 14, 0.22),
    inset 0 0 0 1px rgba(255, 255, 255, 0.58);
}

button.load-cloud {
  color: #0e2421;
  border-color: rgba(35, 199, 170, 0.5);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(218, 255, 246, 0.86)),
    linear-gradient(135deg, #23c7aa, #7bd21d);
}

#loadCloudBtn {
  flex-direction: column;
  gap: 2px;
  min-width: 154px;
  line-height: 1.05;
}

button.load-cloud small {
  display: block;
  color: #37645f;
  font-size: 0.56rem;
  font-weight: 900;
  letter-spacing: 0.015em;
  text-transform: none;
  white-space: nowrap;
  opacity: 0.9;
}

.sign-out-action {
  min-width: 112px;
  color: #7f1d1d !important;
  border: 1px solid rgba(248, 113, 113, 0.42);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 232, 232, 0.88)),
    #fff5f5 !important;
  box-shadow:
    0 10px 22px rgba(185, 28, 28, 0.1),
    inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.sign-out-action:hover,
.sign-out-action:focus-visible {
  color: #991b1b !important;
  border-color: rgba(239, 68, 68, 0.6);
  transform: translateY(-1px);
}

.mobile-stock-signout {
  width: 100%;
  min-height: 44px;
}

.mobile-stock-link {
  gap: 9px;
  min-width: 170px;
  min-height: 54px;
  color: #082d36;
  border-color: rgba(0, 167, 216, 0.5);
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.92), transparent 40%),
    linear-gradient(135deg, rgba(225, 251, 255, 0.96), rgba(218, 255, 232, 0.92)),
    linear-gradient(135deg, #00a7d8, #7bd21d);
  box-shadow:
    0 12px 28px rgba(0, 167, 216, 0.16),
    0 0 0 4px rgba(0, 167, 216, 0.06),
    inset 0 0 0 1px rgba(255, 255, 255, 0.62);
}

.phone-icon {
  position: relative;
  width: 17px;
  height: 25px;
  border: 2px solid #007ea4;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 -3px 0 rgba(0, 167, 216, 0.12);
}

.phone-icon::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: 5px;
  height: 2px;
  border-radius: 999px;
  background: #007ea4;
  transform: translateX(-50%);
}

.mobile-stock-step {
  width: 25px;
  height: 25px;
  font-size: 0.62rem;
}

.top-price-print {
  min-height: 48px;
  color: #fff;
  background:
    linear-gradient(135deg, #4f9f0e, #39a80f),
    #4f9f0e;
  box-shadow:
    0 12px 28px rgba(79, 159, 14, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.tutorial-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid rgba(123, 210, 29, 0.42);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(246, 255, 239, 0.96), rgba(232, 250, 255, 0.82));
  color: #244418;
  font-size: 0.84rem;
  font-weight: 900;
  cursor: pointer;
}

.tutorial-toggle input {
  width: 18px;
  height: 18px;
  accent-color: #4f9f0e;
}

.tutorial-pop {
  position: relative;
  overflow: visible;
}

body.tutorial-disabled .tutorial-pop::before,
body.tutorial-disabled .tutorial-pop::after {
  display: none !important;
}

.tutorial-pop::before,
.tutorial-pop::after {
  display: none;
}

.tutorial-float {
  position: fixed;
  z-index: 4200;
  min-height: 58px;
  padding: 13px 15px;
  border: 1px solid rgba(0, 167, 216, 0.32);
  border-left: 4px solid #00a7d8;
  border-radius: 13px;
  background:
    radial-gradient(circle at 18% 14%, rgba(255, 255, 255, 0.98), transparent 48%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(235, 249, 255, 0.96));
  color: #183120;
  box-shadow:
    0 16px 42px rgba(21, 63, 14, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  font-size: 0.78rem;
  line-height: 1.45;
  font-weight: 500;
  text-align: left;
  pointer-events: none;
  opacity: 0;
  transform: translateY(8px) scale(0.98);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.tutorial-float strong,
.tutorial-float span {
  display: block;
}

.tutorial-float strong {
  margin-bottom: 5px;
  color: #062a3a;
  font-weight: 900;
}

.tutorial-float span {
  color: #40524a;
  font-weight: 500;
}

.tutorial-float.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.tutorial-float[hidden] {
  display: none;
}

.mobile-save-work {
  display: none;
}

.mobile-refresh-work {
  display: none;
}

.auth-panel {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(320px, 1.15fr);
  gap: 14px;
  margin-bottom: 18px;
}

.auth-login,
.auth-admin {
  display: grid;
  gap: 10px;
}

.auth-panel input,
.auth-panel select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
  color: var(--ink);
  font-weight: 750;
}

.auth-user-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.auth-user-grid button {
  white-space: nowrap;
}

.auth-session {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #f4faef;
  color: var(--muted);
  font-weight: 750;
}

.repair-cloud-btn {
  display: none;
  border-color: rgba(0, 132, 216, 0.26);
  background: linear-gradient(135deg, #eefaff, #eaffd6);
  color: #075985;
}

body.main-admin .repair-cloud-btn {
  display: inline-flex;
}

body:not(.is-authenticated) .top-nav-row,
body:not(.is-authenticated) #historySection,
body:not(.is-authenticated) #priceSection,
body:not(.is-authenticated) #skuSection,
body:not(.is-authenticated) #stockSection,
body:not(.is-authenticated) #mobileStockSection,
body:not(.is-authenticated) #unloadSection {
  display: none;
}

body.is-authenticated #authSection .auth-login {
  display: none;
}

body.mobile-stock-mode.is-authenticated #authSection,
body.is-authenticated.role-mobile #authSection,
body.is-authenticated.role-mobileAdmin #authSection {
  display: none !important;
}

body.is-authenticated:not(.main-admin) .multiplier-setting {
  display: none;
}

body.role-operator [data-scroll-target="priceSection"],
body.role-operator #priceSection {
  display: none;
}

body.role-mobile #historySection,
body.role-mobile #priceSection,
body.role-mobile #skuSection,
body.role-mobile #unloadSection,
body.role-mobile #printBtn {
  display: none;
}

body.role-mobile .top-history-actions,
body.role-mobile [data-scroll-target="historySection"],
body.role-mobile [data-scroll-target="unloadSection"],
body.role-mobile [data-scroll-target="priceSection"],
body.role-mobile [data-scroll-target="skuSection"] {
  display: none !important;
}

body.role-mobile #mobileStockSection {
  display: grid;
}

body.role-mobileAdmin #historySection,
body.role-mobileAdmin #priceSection,
body.role-mobileAdmin #skuSection,
body.role-mobileAdmin #unloadSection,
body.role-mobileAdmin #printBtn {
  display: none;
}

body.role-mobileAdmin .top-history-actions,
body.role-mobileAdmin [data-scroll-target="historySection"],
body.role-mobileAdmin [data-scroll-target="unloadSection"],
body.role-mobileAdmin [data-scroll-target="priceSection"],
body.role-mobileAdmin [data-scroll-target="skuSection"] {
  display: none !important;
}

body.role-mobileAdmin #mobileStockSection {
  display: grid;
}

body:not(.is-authenticated).mobile-stock-mode #mobileStockSection,
body:not(.is-authenticated).mobile-stock-mode #historySection,
body:not(.is-authenticated).mobile-stock-mode #adminUserPanel,
body:not(.is-authenticated) .mobile-stock-output,
body:not(.is-authenticated) .mobile-admin-dashboard {
  display: none !important;
}

.zylon-corner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: min(100% - 24px, 920px);
  margin: 18px auto 14px;
  padding: 8px 12px;
  border: 1px solid rgba(35, 199, 170, 0.38);
  border-radius: 999px;
  color: #eaf7ff;
  background:
    linear-gradient(135deg, rgba(11, 39, 71, 0.96), rgba(21, 96, 157, 0.94)),
    #123f70;
  box-shadow: 0 10px 28px rgba(8, 39, 70, 0.16);
}

.zylon-corner img:not(.zylon-qr) {
  width: 86px;
  height: 30px;
  object-fit: contain;
  padding: 3px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.95);
}

.zylon-corner .zylon-qr {
  width: 42px;
  height: 42px;
  object-fit: contain;
  padding: 4px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.zylon-corner strong {
  color: #fff;
  font-size: 0.82rem;
}

.zylon-corner span {
  color: #c9e6ff;
  font-size: 0.74rem;
  line-height: 1.35;
}

.connection-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 126px;
  min-height: 48px;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(123, 210, 29, 0.65);
  border-radius: 8px;
  color: #14310a;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(230, 255, 211, 0.82)),
    linear-gradient(135deg, #7bd21d, #e5ff77);
  box-shadow:
    0 10px 24px rgba(79, 159, 14, 0.16),
    inset 0 0 0 1px rgba(255, 255, 255, 0.45);
  font-weight: 900;
  animation: statusOnlinePulse 1.7s ease-in-out infinite;
}

.connection-copy {
  display: grid;
  gap: 3px;
  line-height: 1;
  text-align: left;
}

.connection-status.offline {
  color: #4a0909;
  border-color: rgba(226, 46, 46, 0.7);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 225, 225, 0.9)),
    linear-gradient(135deg, #ff4d4d, #ffb0a8);
  box-shadow:
    0 10px 24px rgba(210, 29, 29, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.45);
  animation: statusOfflinePulse 1.15s ease-in-out infinite;
}

.connection-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #4f9f0e;
  box-shadow: 0 0 0 4px rgba(123, 210, 29, 0.22);
}

.connection-status.offline .connection-dot {
  background: #e22e2e;
  box-shadow: 0 0 0 4px rgba(226, 46, 46, 0.2);
}

.connection-text {
  line-height: 1;
}

#connectionSpeed {
  color: rgba(20, 49, 10, 0.62);
  font-size: 0.62rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.connection-status.offline #connectionSpeed {
  color: rgba(74, 9, 9, 0.68);
}

@keyframes cloudPulse {
  0%,
  100% {
    box-shadow:
      0 10px 24px rgba(79, 159, 14, 0.16),
      0 0 0 0 rgba(123, 210, 29, 0.34),
      inset 0 0 0 1px rgba(255, 255, 255, 0.45);
  }
  50% {
    box-shadow:
      0 14px 30px rgba(79, 159, 14, 0.23),
      0 0 0 7px rgba(123, 210, 29, 0),
      inset 0 0 0 1px rgba(255, 255, 255, 0.55);
  }
}

@keyframes statusOnlinePulse {
  0%,
  100% {
    transform: translateY(0);
    box-shadow:
      0 10px 24px rgba(79, 159, 14, 0.16),
      0 0 0 0 rgba(123, 210, 29, 0.32),
      inset 0 0 0 1px rgba(255, 255, 255, 0.45);
  }
  50% {
    transform: translateY(-1px);
    box-shadow:
      0 14px 30px rgba(79, 159, 14, 0.22),
      0 0 0 7px rgba(123, 210, 29, 0),
      inset 0 0 0 1px rgba(255, 255, 255, 0.55);
  }
}

@keyframes statusOfflinePulse {
  0%,
  100% {
    box-shadow:
      0 10px 24px rgba(210, 29, 29, 0.18),
      0 0 0 0 rgba(226, 46, 46, 0.34),
      inset 0 0 0 1px rgba(255, 255, 255, 0.45);
  }
  50% {
    box-shadow:
      0 14px 30px rgba(210, 29, 29, 0.28),
      0 0 0 8px rgba(226, 46, 46, 0),
      inset 0 0 0 1px rgba(255, 255, 255, 0.55);
  }
}

@keyframes cloudShine {
  0%,
  38% {
    left: -75%;
  }
  72%,
  100% {
    left: 125%;
  }
}

@media (prefers-reduced-motion: reduce) {
  button.cloud-action,
  button.cloud-action::before,
  .step-badge,
  .nav-step-badge,
  .help-icon-btn {
    animation: none;
  }
}

.shell {
  width: min(1640px, 98vw);
  margin: 0 auto;
  padding: 24px 0 36px;
}

.top-freeze {
  position: sticky;
  top: 0;
  z-index: 55;
  margin: -24px 0 16px;
  padding: 24px 0 0;
  background:
    radial-gradient(circle at top right, rgba(123, 210, 29, 0.18), transparent 34rem),
    linear-gradient(135deg, rgba(248, 250, 245, 0.97), rgba(238, 244, 235, 0.97));
  backdrop-filter: blur(14px);
}

.top-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 16px;
  padding: 8px;
  border: 1px solid rgba(223, 229, 220, 0.78);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 34px rgba(44, 65, 35, 0.08);
}

.section-tabs {
  display: flex;
  flex: 1 1 auto;
  gap: 8px;
  min-width: 0;
  overflow-x: auto;
}

.section-tabs button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  color: #18300d;
  border: 1px solid rgba(123, 210, 29, 0.45);
  background: linear-gradient(135deg, #f8fff2, #e8ffd7);
  white-space: nowrap;
}

.section-tabs button.is-step-locked {
  cursor: not-allowed;
  opacity: 0.56;
  filter: grayscale(0.35);
  background: linear-gradient(135deg, #f7f9f5, #eef4ea);
}

.step-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.step-badge,
.nav-step-badge {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  border: 2px solid #15a5e8;
  border-radius: 999px;
  color: #055a86;
  background:
    radial-gradient(circle at 35% 28%, #ffffff, #dff6ff 54%, #bdeeff),
    #e6f8ff;
  font-weight: 950;
  line-height: 1;
  box-shadow:
    0 0 0 0 rgba(21, 165, 232, 0.34),
    0 10px 20px rgba(21, 165, 232, 0.14);
  animation: stepBluePulse 1.45s ease-in-out infinite;
}

.step-badge {
  width: 44px;
  height: 44px;
  font-size: 0.78rem;
}

.nav-step-badge {
  position: static;
  width: 24px;
  height: 24px;
  font-size: 0.62rem;
  border-width: 1.5px;
  transform: none;
}

@keyframes stepBluePulse {
  0%,
  100% {
    box-shadow:
      0 0 0 0 rgba(21, 165, 232, 0.36),
      0 10px 20px rgba(21, 165, 232, 0.14);
    transform: scale(1);
  }
  50% {
    box-shadow:
      0 0 0 7px rgba(21, 165, 232, 0),
      0 14px 28px rgba(21, 165, 232, 0.23);
    transform: scale(1.04);
  }
}

@keyframes helpPinkPulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow:
      0 8px 18px rgba(244, 139, 150, 0.22),
      0 0 0 0 rgba(244, 139, 150, 0.26);
  }
  50% {
    transform: scale(1.06);
    box-shadow:
      0 10px 22px rgba(244, 139, 150, 0.28),
      0 0 0 6px rgba(244, 139, 150, 0);
  }
}

.top-history-actions {
  flex: 0 1 760px;
  justify-content: flex-end;
  align-items: center;
  margin-left: auto;
}

.top-history-actions input {
  min-width: 230px;
}

.top-history-actions .top-price-print {
  flex: 0 0 auto;
}

.top-history-actions .reset-work {
  border-color: rgba(0, 132, 216, 0.35);
  background: linear-gradient(135deg, rgba(239, 250, 255, 0.98), rgba(242, 255, 235, 0.96));
  color: #095f94;
  box-shadow: 0 10px 24px rgba(0, 132, 216, 0.1);
}

.top-history-actions .reset-work:hover,
.top-history-actions .reset-work:focus-visible {
  border-color: rgba(0, 132, 216, 0.65);
  box-shadow: 0 12px 26px rgba(0, 132, 216, 0.18);
}

.top-history-actions .test-cloud {
  border-color: rgba(0, 132, 216, 0.35);
  background: linear-gradient(135deg, rgba(239, 250, 255, 0.98), rgba(236, 249, 255, 0.96));
  color: #075f94;
  box-shadow: 0 10px 24px rgba(0, 132, 216, 0.1);
}

.top-history-actions .test-cloud:hover,
.top-history-actions .test-cloud:focus-visible {
  border-color: rgba(0, 132, 216, 0.65);
  box-shadow: 0 12px 26px rgba(0, 132, 216, 0.18);
}

.arrived-date-control {
  display: grid;
  gap: 3px;
  min-width: 178px;
  padding: 0.45rem 0.62rem;
  border: 1px solid rgba(0, 132, 216, 0.28);
  border-left: 4px solid #0b8bd8;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(240, 250, 255, 0.96), rgba(249, 255, 244, 0.92));
  box-shadow: 0 8px 20px rgba(0, 132, 216, 0.08);
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.arrived-date-control input {
  min-width: 0;
  height: 28px;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 900;
}

#historySection,
#priceSection,
#skuSection,
#stockSection,
#mobileStockSection,
#unloadSection {
  scroll-margin-top: 236px;
}

.hero,
.workspace,
.toolbar,
.invoice-head {
  display: flex;
  gap: 18px;
}

.hero {
  position: static;
  align-items: center;
  justify-content: space-between;
  padding: 18px 4px 22px;
  border-bottom: 1px solid rgba(223, 229, 220, 0.74);
  background: transparent;
}

.brand {
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand img {
  width: 260px;
  height: 118px;
  object-fit: contain;
  object-position: left center;
  mix-blend-mode: multiply;
}

.brand p,
.eyebrow {
  margin: 0 0 5px;
  color: var(--green-dark);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.74rem;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(1.6rem, 2.6vw, 2.7rem);
}

h2 {
  margin-bottom: 14px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.workspace {
  align-items: flex-start;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 60px rgba(44, 65, 35, 0.08);
}

.controls {
  position: relative;
  align-self: flex-start;
  width: 340px;
  padding: 18px;
}

.control-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.control-title-row h2 {
  margin: 0 0 12px;
}

.help-icon-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #ff9ba3, #f48b96);
  font-weight: 950;
  font-size: 0.92rem;
  box-shadow:
    0 8px 18px rgba(244, 139, 150, 0.25),
    0 0 0 0 rgba(244, 139, 150, 0.28);
  animation: helpPinkPulse 2s ease-in-out infinite;
}

.help-icon-btn:hover {
  transform: translateY(-1px);
  box-shadow:
    0 12px 24px rgba(244, 139, 150, 0.32),
    0 0 0 7px rgba(244, 139, 150, 0);
}

.output {
  flex: 1;
  min-width: 0;
  padding: 18px;
}

.drop {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px dashed #adcaa0;
  border-radius: 8px;
  background: var(--soft);
  font-weight: 750;
}

.drop input {
  width: 100%;
  color: var(--muted);
}

.sample-file-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: -2px 0 12px;
  padding: 10px;
  border: 1px solid rgba(123, 210, 29, 0.35);
  border-radius: 8px;
  color: #1a2b13;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(241, 255, 232, 0.88)),
    #f7fff2;
  text-align: left;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65);
}

.sample-file-card:hover {
  border-color: rgba(79, 159, 14, 0.55);
  transform: translateY(-1px);
}

.sample-file-icon {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 42px;
  border-radius: 8px 12px 8px 8px;
  color: #fff;
  background:
    linear-gradient(135deg, transparent 0 76%, rgba(255, 255, 255, 0.45) 77%),
    linear-gradient(135deg, #16a765, #25c67a);
  font-size: 1.35rem;
  font-weight: 950;
  box-shadow: 0 8px 18px rgba(22, 167, 101, 0.2);
}

.sample-file-card strong,
.sample-file-card small {
  display: block;
}

.sample-file-card small {
  margin-top: 2px;
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.grid label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.grid input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fff;
  color: var(--ink);
}

.status {
  margin-top: 16px;
  padding: 12px;
  border-left: 4px solid var(--green);
  border-radius: 8px;
  color: #4a5046;
  background: #f2f8ed;
  line-height: 1.45;
  transition:
    color 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.status-loading {
  color: #075985;
  border-color: rgba(56, 189, 248, 0.72);
  background:
    linear-gradient(120deg, rgba(239, 246, 255, 0.96), rgba(207, 250, 254, 0.76), rgba(239, 246, 255, 0.96));
  background-size: 220% 100%;
  box-shadow:
    0 12px 30px rgba(14, 165, 233, 0.14),
    inset 4px 0 0 rgba(14, 165, 233, 0.72);
  animation: historyStatusWave 1.25s ease-in-out infinite;
}

.status-progress {
  display: grid;
  gap: 8px;
  width: 100%;
}

.status-progress-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #075985;
}

.status-progress-top strong,
.status-progress-top span {
  font-weight: 900;
}

.status-progress-track {
  height: 10px;
  overflow: hidden;
  border: 1px solid rgba(14, 165, 233, 0.24);
  border-radius: 999px;
  background: rgba(224, 242, 254, 0.76);
  box-shadow: inset 0 1px 3px rgba(14, 165, 233, 0.16);
}

.status-progress-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0ea5e9, #7bd21d);
  box-shadow: 0 0 16px rgba(14, 165, 233, 0.38);
  transition: width 0.24s ease;
}

.status-progress small {
  color: #4f5d4d;
  font-size: 0.86rem;
  font-weight: 800;
}

.status-success {
  color: #246c0a;
  border-color: rgba(123, 210, 29, 0.72);
  background:
    linear-gradient(135deg, rgba(244, 255, 236, 0.98), rgba(220, 252, 196, 0.72)),
    #f4ffed;
  box-shadow:
    0 12px 28px rgba(79, 159, 14, 0.14),
    inset 4px 0 0 rgba(79, 159, 14, 0.8);
  animation: historyStatusPop 0.55s ease both;
}

.status-error {
  color: #9f1239;
  border-color: rgba(244, 63, 94, 0.72);
  background: linear-gradient(135deg, rgba(255, 241, 242, 0.96), rgba(255, 228, 230, 0.76));
  box-shadow:
    0 12px 28px rgba(244, 63, 94, 0.14),
    inset 4px 0 0 rgba(244, 63, 94, 0.8);
}

.status-info {
  border-color: rgba(123, 210, 29, 0.58);
  background: #f2f8ed;
}

.help-top-button {
  min-width: 92px;
  color: #083046;
  border-color: rgba(0, 164, 232, 0.38);
  background:
    linear-gradient(135deg, rgba(235, 251, 255, 0.96), rgba(231, 255, 211, 0.88)),
    rgba(255, 255, 255, 0.9);
}

.help-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(18, 28, 14, 0.38);
  backdrop-filter: blur(10px);
}

.help-modal[hidden] {
  display: none;
}

.help-dialog {
  position: relative;
  width: min(980px, 96vw);
  max-height: min(840px, 92vh);
  overflow: auto;
  padding: 26px;
  border: 1px solid rgba(123, 210, 29, 0.45);
  border-radius: 18px;
  background:
    radial-gradient(circle at 82% 12%, rgba(0, 164, 232, 0.12), transparent 20rem),
    radial-gradient(circle at top left, rgba(123, 210, 29, 0.16), transparent 22rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(247, 255, 241, 0.96));
  box-shadow: 0 30px 90px rgba(15, 35, 8, 0.24);
}

.help-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 999px;
  color: #213018;
  background: rgba(237, 245, 232, 0.9);
}

.help-dialog h2 {
  margin: 2px 0 6px;
  font-size: clamp(1.55rem, 3vw, 2.1rem);
}

.help-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  margin-right: 38px;
}

.help-print-btn {
  min-height: 44px;
  padding: 0 18px;
  color: #fff;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #1191d0, #53c51d);
  box-shadow: 0 14px 30px rgba(17, 145, 208, 0.18);
}

.help-lead {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.5;
}

.help-infographic {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid rgba(0, 164, 232, 0.18);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(239, 251, 255, 0.92), rgba(246, 255, 237, 0.82)),
    rgba(255, 255, 255, 0.78);
}

.help-flow-start,
.help-finish {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  border-radius: 14px;
  color: #14320a;
  background: rgba(255, 255, 255, 0.8);
  box-shadow:
    inset 0 0 0 1px rgba(123, 210, 29, 0.22),
    0 12px 28px rgba(42, 84, 16, 0.08);
}

.help-flow-start span,
.help-finish span {
  color: #607064;
  font-weight: 700;
}

.help-flow-start strong,
.help-finish strong {
  font-size: 1.05rem;
}

.help-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.help-flow li {
  position: relative;
  min-height: 154px;
  padding: 14px 14px 14px 56px;
  overflow: hidden;
  border: 1px solid rgba(223, 229, 220, 0.9);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 32px rgba(38, 75, 18, 0.08);
}

.help-flow li::after {
  content: "";
  position: absolute;
  right: -18px;
  bottom: -18px;
  width: 80px;
  aspect-ratio: 1;
  border-radius: 999px;
  background: rgba(123, 210, 29, 0.12);
}

.help-step-no {
  position: absolute;
  top: 14px;
  left: 14px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #ff8d92, #f6b0b0);
  font-weight: 950;
  box-shadow: 0 10px 20px rgba(255, 141, 146, 0.22);
}

.help-flow strong {
  display: block;
  margin-bottom: 7px;
  color: #122016;
  font-size: 0.98rem;
}

.help-flow p,
.help-flow small {
  position: relative;
  z-index: 1;
}

.help-flow p {
  margin: 0 0 8px;
  color: #40524a;
  line-height: 1.38;
}

.help-flow small {
  color: #637365;
  font-weight: 700;
  line-height: 1.35;
}

.help-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.help-file-preview {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  min-height: 260px;
  padding: 18px;
  border: 1px dashed rgba(123, 210, 29, 0.5);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  text-align: center;
}

.help-file-sheet {
  position: relative;
  width: 92px;
  height: 112px;
  border: 2px solid #1c2a18;
  border-radius: 4px;
  background:
    linear-gradient(135deg, transparent 0 78%, #e9efea 79%),
    linear-gradient(90deg, transparent 0 56%, rgba(22, 167, 101, 0.12) 57%),
    #fff;
  box-shadow: 0 16px 28px rgba(22, 167, 101, 0.13);
}

.help-file-sheet span {
  position: absolute;
  left: 12px;
  top: 32px;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, #10a45e, #25c67a);
  font-size: 2rem;
  font-weight: 950;
}

.help-file-sheet i {
  position: absolute;
  right: 13px;
  bottom: 18px;
  width: 18px;
  height: 44px;
  border-radius: 4px;
  background: rgba(22, 167, 101, 0.13);
  box-shadow: -22px -8px 0 rgba(22, 167, 101, 0.08);
}

.help-file-preview small {
  color: var(--muted);
}

.help-steps {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.help-steps li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(223, 229, 220, 0.92);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
}

.help-steps li span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #ff8d92, #f6b0b0);
  font-weight: 950;
}

.help-steps p {
  margin: 0;
  color: #4a5046;
  line-height: 1.45;
}

.help-note {
  margin-top: 16px;
  padding: 12px 14px;
  border-left: 4px solid var(--green);
  border-radius: 10px;
  color: #43513c;
  background: rgba(242, 248, 237, 0.95);
  line-height: 1.45;
}

.action-progress {
  display: grid;
  gap: 7px;
  width: 100%;
  padding: 10px;
  border: 1px solid rgba(123, 210, 29, 0.4);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(239, 255, 228, 0.9));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.action-progress[hidden] {
  display: none;
}

.action-progress > div {
  position: relative;
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7efdf;
  box-shadow: inset 0 0 0 1px rgba(79, 159, 14, 0.14);
}

.action-progress > div span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #4f9f0e, #7bd21d, #d8ff58);
  box-shadow: 0 0 14px rgba(123, 210, 29, 0.45);
  transition: width 0.22s ease;
}

.action-progress p {
  margin: 0;
  color: #37542a;
  font-size: 0.82rem;
  font-weight: 800;
}

.action-progress.compact {
  flex-basis: 100%;
  max-width: 430px;
  margin-left: auto;
}

.history-panel {
  position: static;
  margin: 0 0 18px;
  padding: 18px;
  backdrop-filter: blur(12px);
}

.history-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
}

.history-head h2 {
  margin-bottom: 6px;
}

.history-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.history-actions input {
  min-width: 220px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.78rem 0.9rem;
  background: #fff;
  color: var(--ink);
  font-weight: 750;
}

.history-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 12px;
  margin-top: 16px;
  max-height: 150px;
  overflow-y: auto;
  padding-right: 4px;
  overscroll-behavior: contain;
}

.history-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 11px 12px;
  border: 1px solid #dce7d8;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(247, 255, 241, 0.9)),
    #fff;
  box-shadow: 0 12px 28px rgba(44, 65, 35, 0.06);
}

.history-step-status {
  position: absolute;
  top: 10px;
  right: 78px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 999px;
  border: 1px solid rgba(21, 165, 232, 0.35);
  background: linear-gradient(135deg, rgba(238, 248, 255, 0.96), rgba(245, 255, 239, 0.92));
  color: #055a86;
  font-size: 0.66rem;
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: 0 8px 20px rgba(21, 165, 232, 0.12);
}

.history-step-status strong {
  color: #0476b4;
  font-size: 0.86rem;
}

.history-step-status.complete {
  border-color: rgba(123, 210, 29, 0.55);
  color: #2f7606;
}

.history-step-status.complete strong {
  color: #2f8f00;
}

.history-card-main {
  min-width: 0;
  padding-right: 170px;
}

.history-card-main strong,
.history-card-main small {
  display: block;
}

.history-card-main small {
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-pill {
  display: inline-block;
  margin-bottom: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #2f7606;
  background: rgba(123, 210, 29, 0.16);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.history-counts {
  display: flex;
  gap: 4px;
}

.history-counts span {
  display: grid;
  min-width: 42px;
  padding: 5px 6px;
  border-left: 2px solid var(--green);
  border-radius: 7px;
  background: #f8fbf5;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.history-counts b {
  color: var(--ink);
  font-size: 1rem;
}

.history-open-btn {
  grid-column: 2;
  grid-row: 1 / span 2;
  color: var(--green-dark);
  background: #edf8e8;
}

.history-delete-btn {
  position: absolute;
  top: 8px;
  right: 10px;
  z-index: 2;
  padding: 5px 8px;
  border: 1px solid rgba(225, 54, 77, 0.35);
  border-radius: 8px;
  background: #fff4f5;
  color: #b91d32;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
}

.history-delete-btn:hover {
  border-color: rgba(225, 54, 77, 0.65);
  background: #ffe7ea;
}

.history-empty {
  padding: 18px;
  border: 1px dashed #bfd4b7;
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.6);
  text-align: center;
}

.toolbar {
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.toolbar h2 {
  margin-bottom: 4px;
}

.live-status {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin: 2px 0 0;
  padding: 6px 12px 6px 14px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.4;
  border: 1px solid transparent;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  transition:
    color 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.live-status-loading {
  color: #075985;
  border-color: rgba(56, 189, 248, 0.34);
  background:
    linear-gradient(120deg, rgba(239, 246, 255, 0.94), rgba(207, 250, 254, 0.72), rgba(239, 246, 255, 0.94));
  background-size: 220% 100%;
  box-shadow:
    0 10px 24px rgba(14, 165, 233, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.72);
  animation: historyStatusWave 1.25s ease-in-out infinite;
}

.live-status-success {
  color: #246c0a;
  border-color: rgba(123, 210, 29, 0.36);
  background:
    linear-gradient(135deg, rgba(244, 255, 236, 0.98), rgba(220, 252, 196, 0.72)),
    #f4ffed;
  box-shadow:
    0 12px 28px rgba(79, 159, 14, 0.13),
    inset 4px 0 0 rgba(79, 159, 14, 0.75);
  animation: historyStatusPop 0.55s ease both;
}

.live-status-error {
  color: #9f1239;
  border-color: rgba(244, 63, 94, 0.32);
  background: linear-gradient(135deg, rgba(255, 241, 242, 0.96), rgba(255, 228, 230, 0.7));
  box-shadow:
    0 12px 28px rgba(244, 63, 94, 0.12),
    inset 4px 0 0 rgba(244, 63, 94, 0.7);
}

@keyframes historyStatusWave {
  0%,
  100% {
    background-position: 0% 50%;
    transform: translateY(0);
  }
  50% {
    background-position: 100% 50%;
    transform: translateY(-1px);
  }
}

@keyframes historyStatusPop {
  0% {
    opacity: 0.75;
    transform: translateY(3px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.totals {
  display: grid;
  justify-items: end;
  gap: 4px;
}

.totals span {
  color: var(--muted);
  font-size: 0.88rem;
}

.totals strong {
  font-size: 1.45rem;
}

.invoice {
  position: relative;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.invoice::before {
  content: "";
  position: absolute;
  inset: 80px 0 0;
  background: url("/assets/warehouse-world-watermark-ring.png") center 44% / 500px auto no-repeat;
  opacity: 0.05;
  pointer-events: none;
}

.invoice > * {
  position: relative;
}

.invoice-head {
  align-items: center;
  padding: 22px 26px;
  border-bottom: 4px solid var(--green);
}

.invoice-head img {
  width: 245px;
  height: 112px;
  object-fit: contain;
  object-position: left center;
}

.invoice-head h2 {
  margin-bottom: 6px;
  font-family: "Aptos Display", Aptos, "Segoe UI", Arial, sans-serif;
  font-size: 1.7rem;
  font-weight: 900;
}

.invoice-head p {
  margin-bottom: 0;
  color: var(--muted);
}

.meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--line);
  background: #fbfcfa;
}

.meta div {
  display: grid;
  gap: 3px;
}

.meta span {
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.invoice > table {
  min-width: 1240px;
  table-layout: fixed;
  font-size: 0.8rem;
}

th,
td {
  padding: 8px 6px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

th {
  color: #485044;
  background: #f2f7ee;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

td.num,
th.num {
  text-align: right;
  white-space: nowrap;
}

.mark-code {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18px;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  min-width: 0;
  font-size: 0.76rem;
  font-weight: 650;
  letter-spacing: 0;
}

.mark-code strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 650;
}

.price-check-wrap {
  display: inline-grid;
  place-items: center;
  cursor: pointer;
}

.price-check-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.price-check-wrap span {
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border: 1.6px solid #ff4b4b;
  border-radius: 5px;
  color: #fff;
  background: #fff;
  box-shadow: 0 3px 8px rgba(255, 75, 75, 0.1);
}

.price-check-wrap span::before {
  content: "";
  width: 9px;
  height: 5px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg) scale(0.25);
  opacity: 0;
  transition: 0.15s ease;
}

.price-check-input:checked + span {
  border-color: #4f9f0e;
  background: linear-gradient(135deg, #7bd21d, #4f9f0e);
}

.price-check-input:checked + span::before {
  opacity: 1;
  transform: rotate(-45deg) scale(1);
}

.desc strong {
  display: block;
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.desc span {
  color: var(--muted);
  font-size: 0.7rem;
}

.picture-col {
  width: 100px;
  text-align: center;
}

.item-photo {
  display: block;
  width: 84px;
  height: 70px;
  object-fit: contain;
  margin: 0 auto;
  border: 1px solid #d9dfd5;
  border-radius: 6px;
  background: #fff;
}

.powered-by {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 10px 4px 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.powered-by img {
  width: 92px;
  height: 30px;
  object-fit: contain;
}

.powered-by .zylon-qr {
  width: 36px;
  height: 36px;
  padding: 3px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 6px 14px rgba(9, 40, 72, 0.12);
}

.print-page-footer {
  display: none;
}

.print-pages {
  display: none;
}

.remarks-col {
  width: 130px;
  vertical-align: middle;
}

.remarks-box {
  display: block;
  min-height: 34px;
  border: 1px solid #d4d9d1;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.72);
}

.duty-editor {
  display: grid;
  gap: 3px;
  justify-items: end;
}

.duty-editor span,
.duty-col small {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 750;
}

.price-row-input {
  width: 100%;
  min-width: 0;
  border: 1px solid #cfd9c9;
  border-radius: 6px;
  padding: 4px 5px;
  text-align: right;
  font-size: 0.76rem;
  font-weight: 650;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  appearance: textfield;
  -moz-appearance: textfield;
}

.unit-input-wrap {
  display: grid;
  grid-template-columns: minmax(68px, 1fr) auto;
  align-items: center;
  gap: 0;
  min-width: 104px;
  border: 1px solid #cfd9c9;
  border-radius: 6px;
  background: #fff;
  overflow: hidden;
}

.unit-input-wrap .price-row-input {
  min-width: 0;
  border: 0;
  border-radius: 0;
  padding-left: 6px;
  padding-right: 6px;
  background: transparent;
  text-align: right;
}

.unit-input-wrap span {
  display: grid;
  place-items: center;
  min-width: 24px;
  align-self: stretch;
  padding: 0 4px;
  border-left: 1px solid #e0e8dc;
  color: var(--muted);
  background: #f7faf5;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.price-row-input::-webkit-outer-spin-button,
.price-row-input::-webkit-inner-spin-button {
  margin: 0;
  appearance: none;
}

.hs-input {
  min-width: 0;
  text-align: center;
}

.qty-input {
  min-width: 0;
  font-weight: 700;
}

.nett-input {
  min-width: 0;
}

.usd-input {
  min-width: 0;
}

.duty-rate-input {
  width: 100%;
  min-width: 108px;
}

.invoice > table td:nth-child(2),
.invoice > table .hs-input,
.invoice > table .nett-input,
.invoice > table .qty-input,
.invoice > table .usd-input,
.invoice > table .duty-rate-input,
.invoice > table .price-col strong {
  font-size: 0.76rem;
  font-weight: 650;
  letter-spacing: 0;
}

.invoice > table .price-col strong {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}

.invoice > table th:nth-child(1),
.invoice > table td:nth-child(1) {
  width: 100px;
}

.invoice > table th:nth-child(2),
.invoice > table td:nth-child(2) {
  width: 42px;
}

.invoice > table th:nth-child(3),
.invoice > table td:nth-child(3) {
  width: 104px;
}

.invoice > table th:nth-child(4),
.invoice > table td:nth-child(4) {
  width: 168px;
}

.invoice > table th:nth-child(5),
.invoice > table td:nth-child(5) {
  width: 112px;
}

.invoice > table th:nth-child(6),
.invoice > table td:nth-child(6) {
  width: 128px;
}

.invoice > table th:nth-child(7),
.invoice > table td:nth-child(7) {
  width: 128px;
}

.invoice > table th:nth-child(8),
.invoice > table td:nth-child(8) {
  width: 92px;
}

.invoice > table th:nth-child(9),
.invoice > table td:nth-child(9) {
  width: 152px;
}

.invoice > table th:nth-child(10),
.invoice > table td:nth-child(10) {
  width: 92px;
}

.invoice > table th:nth-child(11),
.invoice > table td:nth-child(11) {
  width: 78px;
}

.invoice > table th:nth-child(12),
.invoice > table td:nth-child(12) {
  width: 120px;
}

.control-note {
  margin: -4px 0 12px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.4;
}

.sku-controls {
  display: grid;
  gap: 10px;
  min-width: 0;
  overflow-x: hidden;
}

.sku-controls h2 {
  margin-bottom: 0;
}

.sku-controls > button,
.sku-controls > label,
.sku-controls > div {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.sku-controls input[type="file"] {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

@media (min-width: 901px) {
  .sku-area > .sku-controls {
    position: sticky;
    top: 168px;
    max-height: calc(100vh - 188px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}

.sku-master-export-btn {
  border-color: #48a7ff;
  background: linear-gradient(135deg, #eef8ff, #f4fff0);
  box-shadow: 0 10px 22px rgba(0, 126, 255, 0.12);
}

.sku-code-import {
  display: grid;
  gap: 7px;
  padding: 10px;
  border: 1px dashed rgba(21, 165, 232, 0.42);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(238, 248, 255, 0.92), rgba(240, 255, 232, 0.88));
  color: #14320c;
  font-weight: 900;
}

.sku-code-import span {
  color: #055a86;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sku-report {
  position: relative;
  overflow: auto;
  max-height: calc(100vh - 340px);
  min-height: 360px;
  scrollbar-gutter: stable both-edges;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

#skuSection .sku-output {
  min-height: 0;
}

@media (max-height: 760px) {
  .sku-report {
    max-height: calc(100vh - 260px);
    min-height: 300px;
  }
}

.sku-head {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 20px 24px;
  border-bottom: 4px solid var(--green);
}

.sku-head img {
  width: 230px;
  height: 104px;
  object-fit: contain;
  object-position: left center;
}

.sku-head h2 {
  margin-bottom: 6px;
  font-family: "Aptos Display", Aptos, "Segoe UI", Arial, sans-serif;
  font-size: 1.65rem;
  font-weight: 900;
}

.sku-head p {
  margin-bottom: 0;
  color: var(--muted);
}

.sku-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--line);
  background: #fbfcfa;
}

.sku-meta div {
  display: grid;
  gap: 3px;
}

.sku-meta span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sku-table th,
.sku-table td {
  vertical-align: middle;
}

.sku-table {
  width: 100%;
  min-width: 1280px;
  table-layout: fixed;
}

.sku-table th:nth-child(1),
.sku-table td:nth-child(1) {
  width: 130px;
}

.sku-table th:nth-child(2),
.sku-table td:nth-child(2) {
  width: 210px;
}

.sku-table th:nth-child(3),
.sku-table td:nth-child(3) {
  width: 214px;
}

.sku-table th:nth-child(4),
.sku-table td:nth-child(4) {
  width: 166px;
}

.sku-table th:nth-child(5),
.sku-table td:nth-child(5) {
  width: 140px;
}

.sku-table th:nth-child(6),
.sku-table td:nth-child(6),
.sku-table th:nth-child(7),
.sku-table td:nth-child(7) {
  width: 170px;
  text-align: center;
}

.sku-image-col {
  width: 132px;
  text-align: center;
}

.sku-photo {
  display: block;
  width: 112px;
  height: 96px;
  object-fit: contain;
  margin: 0 auto;
  border: 1px solid #d9dfd5;
  border-radius: 6px;
  background: #fff;
}

.sku-input {
  width: 100%;
  border: 1px solid #cbd8c5;
  border-radius: 7px;
  padding: 9px 10px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
}

.sku-code-input {
  min-width: 172px;
  font-size: 1.06rem;
  font-weight: 950;
  text-align: center;
}

.sku-edit-desc {
  min-width: 210px;
}

.sku-desc-input {
  width: 100%;
  min-width: 190px;
  border-color: rgba(123, 210, 29, 0.45);
  padding: 8px 9px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 255, 242, 0.86)),
    #fff;
  font-size: 0.98rem;
  font-weight: 950;
  text-transform: uppercase;
}

.sku-variant-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 7px;
}

.sku-variant-toggle label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #167000;
  font-size: 0.74rem;
  font-weight: 950;
  text-transform: uppercase;
}

.sku-variant-toggle input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--green);
}

.variant-count-box {
  padding: 4px 7px;
  border: 1px solid rgba(123, 210, 29, 0.36);
  border-radius: 999px;
  background: rgba(248, 255, 242, 0.95);
}

.variant-count-box input {
  width: 48px;
  border: 0;
  background: transparent;
  color: #0066a8;
  font-weight: 950;
  text-align: center;
}

.variant-editor-grid {
  display: grid;
  gap: 5px;
  margin: 0 8px 10px 0;
  padding: 7px;
  border: 1px solid rgba(10, 169, 225, 0.25);
  border-radius: 9px;
  background: linear-gradient(135deg, rgba(235, 250, 255, 0.96), rgba(248, 255, 242, 0.92));
}

.variant-editor-header,
.variant-editor-row {
  display: grid;
  grid-template-columns: 28px minmax(160px, 1.05fr) minmax(190px, 1.4fr) 110px 84px 78px 78px;
  gap: 5px;
  align-items: center;
}

.variant-editor-header {
  color: #58715a;
  font-size: 0.68rem;
  font-weight: 950;
  text-transform: uppercase;
}

.variant-editor-row b {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--green);
  color: #073700;
  font-size: 0.72rem;
}

.sku-variant-input {
  min-width: 0;
  border: 1px solid rgba(123, 210, 29, 0.42);
  border-radius: 6px;
  padding: 6px 7px;
  background: #fff;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 850;
}

.sku-variant-input.price,
.sku-variant-input.qty {
  text-align: right;
}

.sku-table tr.has-variants > td {
  background: rgba(243, 253, 255, 0.45);
  border-bottom-color: rgba(10, 169, 225, 0.12);
}

.sku-table .variant-detail-row td {
  padding-top: 0;
  background: rgba(243, 253, 255, 0.45);
  border-top: 0;
}

.variant-parent-muted {
  display: inline-grid;
  place-items: center;
  min-height: 38px;
  width: 100%;
  border: 1px dashed rgba(123, 210, 29, 0.34);
  border-radius: 8px;
  color: #73806c;
  background: rgba(255, 255, 255, 0.55);
  font-size: 0.72rem;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.sku-price-input,
.qty-plan-input {
  text-align: right;
}

.qty-plan-input {
  appearance: textfield;
  -moz-appearance: textfield;
}

.sku-price-input {
  font-size: 1.18rem;
  font-weight: 950;
  min-width: 140px;
  text-align: center;
}

.sku-variant-assistant {
  margin: 0 0 14px;
  padding: 14px;
  border: 1px solid rgba(10, 169, 225, 0.28);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(232, 249, 255, 0.96), rgba(249, 255, 242, 0.94)),
    #fff;
  box-shadow: 0 14px 34px rgba(0, 120, 180, 0.08);
}

.variant-assistant-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.variant-assistant-head span {
  display: block;
  color: var(--green-dark);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.variant-assistant-head strong {
  display: block;
  font-size: 1.18rem;
}

.variant-assistant-head p {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-align: right;
}

.variant-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 10px;
}

.variant-group-card {
  padding: 10px;
  border: 1px solid rgba(123, 210, 29, 0.36);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.82);
}

.variant-group-title {
  display: grid;
  grid-template-columns: 1fr 104px;
  gap: 8px;
  align-items: center;
}

.variant-group-title strong {
  display: block;
  font-size: 0.92rem;
  line-height: 1.1;
  text-transform: uppercase;
}

.variant-group-title span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
}

.variant-price-input {
  width: 100%;
  border: 1px solid rgba(10, 169, 225, 0.38);
  border-radius: 8px;
  padding: 8px;
  color: #0066a8;
  font-size: 1.02rem;
  font-weight: 950;
  text-align: center;
}

.variant-row-strip {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 10px 0 8px;
}

.variant-mini-row {
  display: grid;
  grid-template-columns: 44px;
  gap: 3px;
  flex: 0 0 72px;
  justify-items: center;
  border: 1px solid rgba(123, 210, 29, 0.34);
  border-radius: 8px;
  padding: 6px;
  background: #fff;
  cursor: pointer;
}

.variant-mini-row img,
.variant-mini-row > span {
  width: 44px;
  height: 38px;
  border-radius: 6px;
  object-fit: contain;
  background: rgba(238, 248, 255, 0.95);
}

.variant-mini-row > span {
  display: grid;
  place-items: center;
  color: #0066a8;
  font-size: 0.72rem;
  font-weight: 950;
}

.variant-mini-row em,
.variant-mini-row b {
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.68rem;
  font-style: normal;
  text-align: center;
}

.variant-mini-row b {
  color: #0070b8;
}

.variant-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.variant-action {
  border: 1px solid rgba(10, 169, 225, 0.32);
  border-radius: 999px;
  padding: 7px 10px;
  background: #fff;
  color: #005b9c;
  font-weight: 900;
  cursor: pointer;
}

.variant-apply {
  background: linear-gradient(135deg, var(--green), #18bfb1);
  color: #062316;
}

.variant-actions small {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
}

.branch-plan {
  display: grid;
  grid-template-columns: 62px minmax(78px, 1fr);
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  max-width: 152px;
  margin: 0 auto;
  padding: 2px;
  border: 1px solid rgba(123, 210, 29, 0.55);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(123, 210, 29, 0.12), rgba(255, 255, 255, 0.96));
}

.branch-plan label {
  display: grid;
  grid-template-columns: 1fr;
  place-items: center;
  align-content: center;
  gap: 1px;
  min-height: 34px;
  width: 62px;
  border: 0;
  border-right: 1px solid rgba(47, 143, 0, 0.24);
  border-radius: 8px 0 0 8px;
  background: #eefde5;
}

.branch-ctn-input {
  width: 100%;
  border: 0;
  padding: 2px 4px 0;
  background: transparent;
  color: #2f8f00;
  text-align: center;
  font-size: 1.08rem;
  font-weight: 950;
}

.branch-plan label span {
  color: var(--green-dark);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.branch-plan .qty-plan-input {
  min-height: 34px;
  min-width: 78px;
  padding-left: 6px;
  padding-right: 6px;
  text-align: center;
  font-size: 1.08rem;
  font-weight: 950;
  border-color: transparent;
  background: transparent;
}

.branch-plan .qty-plan-input::-webkit-outer-spin-button,
.branch-plan .qty-plan-input::-webkit-inner-spin-button {
  margin: 0;
  appearance: none;
}

.sku-desc strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 900;
  line-height: 1.14;
}

.sku-desc span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
  line-height: 1.1;
}

.total-plan {
  display: grid;
  grid-template-columns: 56px minmax(58px, 1fr);
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  max-width: 132px;
  margin: 0 auto;
}

.total-ctn-badge {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 1px;
  min-height: 40px;
  width: 56px;
  border: 2px solid #20b8c7;
  border-radius: 9px;
  background: linear-gradient(135deg, rgba(32, 184, 199, 0.16), rgba(255, 255, 255, 0.95));
}

.total-ctn-badge strong {
  color: #087e8b;
  font-size: 1.05rem;
  font-weight: 950;
  line-height: 1.05;
}

.total-ctn-badge em,
.total-units em {
  color: #087e8b;
  font-style: normal;
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.total-units {
  display: grid;
  justify-items: end;
  gap: 3px;
}

.sku-total-input {
  width: 58px;
  min-width: 58px;
  border-color: rgba(123, 210, 29, 0.55);
  border-radius: 7px;
  padding: 4px 6px;
  background: rgba(255, 255, 255, 0.96);
  font-size: 0.95rem;
  font-weight: 950;
  line-height: 1;
  text-align: right;
}

.sku-unit-select {
  width: auto;
  min-width: 48px;
  border-color: rgba(123, 210, 29, 0.55);
  border-radius: 6px;
  padding: 3px 5px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.92);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
}

.summary {
  display: flex;
  justify-content: flex-end;
  padding: 18px 22px 24px;
}

.summary table {
  width: 380px;
  font-size: 0.95rem;
}

.summary tr:last-child td {
  border-bottom: 0;
  font-size: 1.15rem;
  font-weight: 850;
}

.hs-summary {
  margin: 0 22px 24px;
  padding: 16px;
  border: 1px solid #d8e6d2;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(123, 210, 29, 0.1), rgba(255, 255, 255, 0.96));
}

.hs-summary > div:first-child {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.hs-summary > div:first-child span {
  color: var(--green-dark);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hs-summary > div:first-child strong {
  font-size: 1rem;
}

.report-total-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.report-total-grid article {
  display: grid;
  gap: 4px;
  padding: 11px 12px;
  border: 1px solid #cfe3c8;
  border-left: 4px solid var(--green);
  border-radius: 8px;
  background: #fff;
}

.report-total-grid article span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.report-total-grid article strong {
  font-size: 1rem;
  font-weight: 950;
}

.hs-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}

.hs-summary-grid article {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border: 1px solid #dfe8db;
  border-radius: 8px;
  background: #fff;
}

.hs-summary-grid article strong {
  font-size: 0.95rem;
  font-weight: 950;
}

.hs-summary-grid article span,
.hs-summary-grid article em {
  color: var(--muted);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 800;
}

.empty {
  padding: 52px 22px;
  color: var(--muted);
  text-align: center;
}

.unload-area {
  margin-top: 24px;
}

.stock-area {
  margin-top: 24px;
}

.stock-controls > label:not(.drop) {
  display: grid;
  gap: 7px;
  margin: 10px 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.stock-controls > label:not(.drop) input,
.stock-controls > label:not(.drop) select {
  width: 100%;
  border: 1px solid #cfe4c6;
  border-radius: 8px;
  padding: 12px;
  color: var(--ink);
  background: #fff;
  font-weight: 850;
}

.reorder-scope-control {
  padding: 10px;
  border: 1px solid rgba(11, 156, 232, 0.22);
  border-radius: 8px;
  background: linear-gradient(135deg, #f7fcff, #f1ffeb);
}

.slow-scope-control {
  border-color: rgba(11, 114, 185, 0.24);
  background: linear-gradient(135deg, #f4fbff, #eff8ff);
}

.stock-report {
  overflow-x: hidden;
}

.stock-head {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr) minmax(180px, 240px);
  align-items: center;
  gap: 24px;
  padding: 28px 36px;
  border-bottom: 4px solid var(--green);
}

.stock-head img {
  width: 230px;
  height: 96px;
  object-fit: contain;
}

.stock-head h2 {
  margin: 0 0 8px;
  font-size: 1.8rem;
}

.stock-head p {
  margin: 0;
  color: var(--muted);
}

.stock-age-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.stock-age-row span,
.stock-age-row strong {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
}

.stock-age-row span {
  color: #27510f;
  background: #edfbe7;
}

.stock-age-row strong {
  color: #063c69;
  background: #e7f5ff;
}

.stock-reorder-summary {
  justify-self: end;
  display: grid;
  min-width: 170px;
  padding: 14px 16px;
  border: 1px solid #bfe6ae;
  border-radius: 10px;
  color: #27510f;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(233, 255, 224, 0.86));
  box-shadow: 0 12px 28px rgba(79, 159, 14, 0.12);
}

.stock-reorder-summary.has-reorder {
  border-color: #ff5a5a;
  color: #a31313;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 235, 235, 0.9));
}

.stock-reorder-summary span,
.stock-reorder-summary em {
  color: inherit;
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.stock-reorder-summary strong {
  font-size: 2.1rem;
  line-height: 1;
  font-weight: 950;
}

.stock-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 14px 18px;
  background: #fbfcfa;
  border-bottom: 1px solid var(--line);
}

.stock-cards article {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 12px;
  border-left: 4px solid var(--green);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.stock-cards span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.stock-cards strong {
  font-size: 1.15rem;
  font-weight: 950;
}

.stock-metric-card b {
  align-self: center;
  color: #0b72b9;
  font-size: 1.15rem;
  font-weight: 950;
}

.stock-metric-card i {
  grid-column: 1 / -1;
  position: relative;
  height: 7px;
  border-radius: 999px;
  background: #eaf1e7;
  overflow: hidden;
}

.stock-metric-card i::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--pct);
  border-radius: inherit;
  background: linear-gradient(90deg, #0b9ce8, #35c4ff);
}

.stock-metric-card.green i::before {
  background: linear-gradient(90deg, #4f9f0e, #7bd21d);
}

.stock-metric-card.blue {
  border-left-color: #0b9ce8;
}

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

.stock-table th:nth-child(1),
.stock-table td:nth-child(1) {
  width: 92px;
}

.stock-table th:nth-child(2),
.stock-table td:nth-child(2) {
  width: 138px;
}

.stock-table th:nth-child(3),
.stock-table td:nth-child(3) {
  width: 230px;
}

.stock-table th:nth-child(4),
.stock-table td:nth-child(4) {
  width: 100px;
}

.stock-table th:nth-child(5),
.stock-table td:nth-child(5),
.stock-table th:nth-child(6),
.stock-table td:nth-child(6),
.stock-table th:nth-child(7),
.stock-table td:nth-child(7) {
  width: 168px;
  text-align: center;
}

.stock-barcode strong,
.stock-price,
.stock-arrived,
.stock-store,
.stock-floor {
  font-size: 1rem;
  font-weight: 950;
}

.stock-table .sku-photo {
  width: 74px;
  height: 74px;
}

.stock-table th,
.stock-table td {
  padding-left: 8px;
  padding-right: 8px;
}

.stock-triplet {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  align-items: stretch;
}

.stock-triplet span {
  display: grid;
  gap: 2px;
  place-items: center;
  min-height: 42px;
  border: 1px solid #cfe4c6;
  border-radius: 7px;
  background: #fbfff8;
}

.stock-triplet em {
  color: var(--muted);
  font-size: 0.54rem;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.stock-triplet strong {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 950;
}

.stock-triplet .sold {
  border-color: #ffd59d;
  background: #fff8ed;
}

.stock-triplet .balance {
  border-color: #7bd21d;
  background: linear-gradient(135deg, rgba(123, 210, 29, 0.16), #fff);
}

.stock-reorder-row {
  position: relative;
  outline: 2px solid #ff4747;
  outline-offset: -3px;
  background: linear-gradient(90deg, rgba(255, 240, 240, 0.72), #fff 22%, #fff);
}

.stock-reorder-row td:first-child {
  border-left: 4px solid #ff4747;
}

.reorder-alert-pill {
  display: inline-flex;
  width: fit-content;
  margin-top: 7px;
  padding: 5px 8px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #e11d48, #ff6b6b);
  box-shadow: 0 8px 18px rgba(225, 29, 72, 0.22);
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  animation: reorderBlink 1.2s ease-in-out infinite;
}

.reorder-report {
  margin: 18px;
  overflow: hidden;
  border: 1px solid rgba(21, 156, 232, 0.28);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(239, 249, 255, 0.86)),
    #fff;
  box-shadow: 0 16px 36px rgba(11, 114, 185, 0.09);
}

.reorder-report-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 2px solid #0b9ce8;
  background: linear-gradient(135deg, #f7fcff, #efffed);
}

.reorder-report-head h3 {
  margin: 0 0 4px;
  font-size: 1.25rem;
}

.reorder-report-head span {
  color: var(--muted);
  font-weight: 800;
}

.reorder-report-head > strong {
  display: inline-grid;
  min-width: 96px;
  min-height: 58px;
  place-items: center;
  border: 2px solid #ff4747;
  border-radius: 12px;
  color: #b31313;
  background: #fff3f3;
  font-size: 1.35rem;
  box-shadow: 0 10px 22px rgba(255, 71, 71, 0.14);
}

.slow-report {
  border-color: rgba(11, 114, 185, 0.32);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(237, 247, 255, 0.9)),
    #fff;
}

.slow-report-head {
  border-bottom-color: #0b9ce8;
  background: linear-gradient(135deg, #f7fcff, #eef8ff);
}

.slow-report-head > strong {
  border-color: #0b9ce8;
  color: #063c69;
  background: #e7f5ff;
  box-shadow: 0 10px 22px rgba(11, 156, 232, 0.16);
}

.slow-percent strong {
  display: block;
  color: #063c69;
  font-size: 0.86rem;
  font-weight: 950;
}

.slow-balance strong,
.slow-last-ctn {
  display: block;
  color: var(--ink);
  font-size: 1.12rem;
  font-weight: 950;
}

.slow-balance span {
  display: block;
  margin-top: 2px;
  color: #0b72b9;
  font-size: 0.66rem;
  font-weight: 900;
  text-transform: uppercase;
}

.slow-table th,
.slow-table td {
  padding: 8px;
  font-size: 0.86rem;
}

.slow-table .sku-photo {
  width: 86px;
  height: 72px;
}

.slow-table .reorder-item-no strong,
.slow-table td:nth-child(3) strong {
  font-size: 1.12rem;
}

.reorder-table {
  width: 100%;
  table-layout: fixed;
}

.reorder-table th,
.reorder-table td {
  padding: 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.reorder-table th {
  color: #40513b;
  background: #f3f8ef;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.reorder-table td:first-child strong,
.reorder-table td:nth-child(3) strong {
  display: block;
  font-weight: 950;
}

.reorder-table .reorder-item-no strong {
  font-size: 1.02rem;
  letter-spacing: 0.01em;
}

.reorder-table td:first-child span,
.reorder-table td:nth-child(3) span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.reorder-table .reorder-item-no span {
  font-size: 0.72rem;
  font-weight: 750;
}

.reorder-table th:nth-child(1),
.reorder-table td:nth-child(1) {
  width: 110px;
}

.reorder-table th:nth-child(2),
.reorder-table td:nth-child(2) {
  width: 126px;
}

.reorder-table th:nth-child(3),
.reorder-table td:nth-child(3) {
  padding-left: 12px;
}

.reorder-table th:nth-child(4),
.reorder-table td:nth-child(4) {
  width: 76px;
  text-align: center;
}

.reorder-table th:nth-child(5),
.reorder-table td:nth-child(5),
.reorder-table th:nth-child(6),
.reorder-table td:nth-child(6) {
  width: 108px;
  text-align: center;
  font-weight: 950;
}

.reorder-table th:nth-child(7),
.reorder-table td:nth-child(7) {
  width: 118px;
}

.reorder-table .sku-photo {
  width: 112px;
  height: 96px;
}

.reorder-balance-total strong {
  display: block;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 950;
}

.reorder-balance-total span {
  display: block;
  margin-top: 2px;
  color: #0b72b9;
  font-size: 0.66rem;
  font-weight: 900;
  text-transform: uppercase;
}

.reorder-request-input {
  width: 94px;
  max-width: 100%;
  min-height: 36px;
  border: 1px solid rgba(21, 156, 232, 0.38);
  border-radius: 8px;
  padding: 7px 8px;
  color: #063c69;
  background: #fff;
  font-weight: 950;
  text-align: center;
}

.reorder-age-cell strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  color: #087ac0;
  font-size: 1.02rem;
  font-weight: 950;
}

.reorder-age-cell span {
  display: inline-flex;
  margin-left: 3px;
  padding: 2px 6px;
  border-radius: 999px;
  color: #087ac0;
  background: #e8f5ff;
  font-size: 0.66rem;
  font-weight: 900;
  text-transform: uppercase;
}

@keyframes reorderBlink {
  0%, 100% {
    filter: saturate(1);
    transform: scale(1);
  }
  50% {
    filter: saturate(1.35) brightness(1.08);
    transform: scale(1.03);
  }
}

.mobile-stock-area {
  margin-top: 24px;
}

@media (max-width: 900px) {
  .stock-head {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 22px 18px;
  }

  .stock-head img {
    width: min(220px, 72vw);
  }

  .stock-reorder-summary {
    justify-self: stretch;
  }

  .stock-cards {
    grid-template-columns: 1fr;
  }
}

body:not(.mobile-stock-mode) #mobileStockSection {
  display: none !important;
}

body.role-mobile:not(.mobile-stock-mode) #mobileStockSection,
body.role-mobileAdmin:not(.mobile-stock-mode) #mobileStockSection {
  display: grid !important;
  margin-top: 18px;
}

@media (max-width: 900px) {
  .app-intro {
    padding: 16px;
  }

  .intro-card {
    width: min(94vw, 420px);
    padding: 26px 20px;
    border-radius: 16px;
  }

  .intro-card img {
    width: min(74vw, 260px);
    max-height: 112px;
  }

  .intro-powered {
    gap: 7px;
    min-height: 58px;
  }

  .intro-powered .intro-zylon-logo {
    width: min(38vw, 132px);
    max-height: 34px;
    padding: 2px 4px;
  }

  .intro-powered .intro-zylon-qr {
    width: 34px;
    height: 34px;
    padding: 3px;
  }

  .intro-card h1 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .intro-modules {
    gap: 6px;
  }

  .intro-modules span {
    min-height: 30px;
    padding: 0 10px;
    font-size: 0.75rem;
  }
}

body.mobile-stock-mode .section-tabs,
body.mobile-stock-mode .top-history-actions,
body.mobile-stock-mode #historySection,
body.mobile-stock-mode #priceSection,
body.mobile-stock-mode #skuSection,
body.mobile-stock-mode #stockSection,
body.mobile-stock-mode #unloadSection {
  display: none !important;
}

body.mobile-stock-mode .shell {
  max-width: 1100px;
  padding-bottom: 92px;
}

body.mobile-stock-mode .top-freeze {
  margin: -24px 0 10px;
  padding: 24px 0 0;
}

body.mobile-stock-mode .hero {
  position: static;
  align-items: center;
  padding: 10px 4px 12px;
}

body.mobile-stock-mode #mobileStockSection {
  display: grid;
  margin-top: 18px;
}

body.mobile-stock-mode .mobile-stock-output {
  min-width: 0;
}

body.mobile-stock-mode #printBtn {
  display: none !important;
}

body.mobile-stock-mode .actions {
  position: static;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  width: min(100%, 560px);
  margin-left: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

body.mobile-stock-mode .actions button,
body.mobile-stock-mode .actions .button-link {
  min-width: 0;
  min-height: 42px;
  padding: 0.58rem 0.55rem;
  border-radius: 12px;
  font-size: 0.85rem;
  white-space: nowrap;
}

body.mobile-stock-mode .actions .mobile-save-work {
  display: inline-flex;
}

body.mobile-stock-mode .actions .mobile-refresh-work {
  display: inline-flex;
  border-color: rgba(0, 178, 216, 0.36);
  background: linear-gradient(135deg, #efffff, #d6fff0);
  color: #073436;
}

body.mobile-stock-mode .actions .mobile-stock-link {
  display: none !important;
}

body.mobile-stock-mode .connection-status {
  min-width: 42px;
  min-height: 42px;
  padding: 0;
  border-radius: 999px;
}

body.mobile-stock-mode .connection-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

body.mobile-stock-mode .connection-copy {
  display: contents;
}

body.mobile-stock-mode #connectionSpeed {
  display: none;
}

body.mobile-stock-mode .connection-dot {
  width: 16px;
  height: 16px;
}

.mobile-stock-controls {
  display: grid;
  gap: 10px;
}

.mobile-container-picker {
  display: grid;
  gap: 6px;
  border: 1px solid rgba(123, 210, 29, 0.35);
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.72);
}

.mobile-container-picker span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mobile-container-picker select {
  width: 100%;
  border: 1px solid rgba(78, 159, 14, 0.45);
  border-radius: 10px;
  padding: 12px;
  background: #fff;
  color: var(--ink);
  font-weight: 900;
}

.mobile-refresh-data {
  width: 100%;
  border-color: rgba(0, 170, 210, 0.42);
  background: linear-gradient(135deg, rgba(236, 255, 226, 0.95), rgba(213, 255, 241, 0.92));
  color: #0b2a20;
  box-shadow: 0 10px 22px rgba(66, 177, 0, 0.12);
}

.mobile-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  gap: 8px;
  align-items: center;
}

.mobile-stock-controls input[type="search"] {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
}

.mobile-stock-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 10px;
  align-items: stretch;
  padding: 14px 0 4px;
}

.mobile-admin-dashboard {
  margin: 14px 0 18px;
  padding: 16px;
  border: 1px solid rgba(35, 199, 170, 0.32);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(235, 252, 244, 0.88)),
    #fff;
  box-shadow: 0 14px 34px rgba(13, 80, 45, 0.1);
}

.mobile-admin-dashboard[hidden],
body.role-mobile .mobile-admin-dashboard {
  display: none !important;
}

.mobile-admin-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.mobile-admin-heading h3 {
  margin: 2px 0 4px;
  font-size: clamp(1.25rem, 2.6vw, 1.75rem);
}

.mobile-admin-heading span {
  color: var(--muted);
  font-weight: 700;
}

.mobile-admin-heading > strong {
  flex: 0 0 auto;
  padding: 10px 14px;
  border: 1px solid rgba(0, 147, 221, 0.38);
  border-radius: 999px;
  color: #066da8;
  background: linear-gradient(135deg, rgba(224, 247, 255, 0.94), rgba(255, 255, 255, 0.96));
  box-shadow: 0 10px 22px rgba(0, 147, 221, 0.11);
}

.mobile-admin-kpis,
.mobile-admin-panels {
  display: grid;
  gap: 10px;
}

.mobile-admin-kpis {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 12px;
}

.mobile-admin-kpis article,
.mobile-admin-panels article {
  min-width: 0;
  border: 1px solid rgba(122, 194, 93, 0.28);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.86);
}

.mobile-admin-kpis article {
  padding: 12px;
  box-shadow: 0 10px 22px rgba(28, 92, 36, 0.07);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.mobile-admin-kpis article:hover,
.mobile-admin-kpis article.active,
.mobile-admin-donut.active {
  transform: translateY(-2px);
  border-color: rgba(0, 147, 221, 0.56);
  box-shadow: 0 16px 34px rgba(0, 147, 221, 0.15);
  outline: 2px solid rgba(0, 147, 221, 0.12);
}

.mobile-admin-kpis span,
.mobile-admin-panels h4,
.mobile-admin-item span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mobile-admin-kpis strong {
  display: block;
  margin-top: 4px;
  font-size: 1.45rem;
  line-height: 1.1;
}

.mobile-admin-kpis em {
  display: block;
  margin-top: 2px;
  color: #0676b8;
  font-style: normal;
  font-weight: 950;
}

.mobile-admin-kpis i {
  display: block;
  height: 6px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(141, 180, 127, 0.18);
}

.mobile-admin-kpis b {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #52c716, #9be62e);
  transition: width 0.3s ease;
}

.mobile-admin-kpis .sold {
  border-color: rgba(0, 147, 221, 0.34);
  background: linear-gradient(135deg, rgba(232, 249, 255, 0.95), rgba(255, 255, 255, 0.9));
}

.mobile-admin-kpis .sold b {
  background: linear-gradient(90deg, #0093dd, #38c9f5);
}

.mobile-admin-kpis .slow {
  border-color: rgba(239, 166, 22, 0.42);
  background: linear-gradient(135deg, rgba(255, 249, 231, 0.96), rgba(255, 255, 255, 0.9));
}

.mobile-admin-kpis .slow b {
  background: linear-gradient(90deg, #f59e0b, #facc15);
}

.mobile-admin-kpis .reorder {
  border-color: rgba(239, 68, 68, 0.34);
  background: linear-gradient(135deg, rgba(255, 240, 240, 0.96), rgba(255, 255, 255, 0.9));
}

.mobile-admin-kpis .reorder b {
  background: linear-gradient(90deg, #ef4444, #fb7185);
}

.mobile-admin-hero-grid {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
  margin: 12px 0;
}

.mobile-admin-donut {
  --admin-balance: 0%;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  min-height: 190px;
  border: 1px solid rgba(0, 147, 221, 0.28);
  border-radius: 22px;
  background:
    radial-gradient(circle at center, #fff 0 51%, transparent 52%),
    conic-gradient(#52c716 var(--admin-balance), #d9edf9 0),
    linear-gradient(135deg, rgba(231, 250, 255, 0.96), rgba(244, 255, 238, 0.9));
  color: #075f94;
  font: inherit;
  font-weight: 950;
  cursor: pointer;
  box-shadow: 0 18px 38px rgba(0, 147, 221, 0.12);
}

.mobile-admin-donut span {
  font-size: 2.2rem;
  line-height: 1;
}

.mobile-admin-donut small {
  color: #537064;
  font-size: 0.72rem;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.mobile-admin-container-chart {
  display: grid;
  gap: 8px;
  align-content: start;
  max-height: 470px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 12px;
  border: 1px solid rgba(122, 194, 93, 0.24);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(239, 255, 232, 0.68)),
    #fff;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 147, 221, 0.36) rgba(0, 147, 221, 0.08);
}

.mobile-admin-container-chart::-webkit-scrollbar {
  width: 8px;
}

.mobile-admin-container-chart::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: linear-gradient(180deg, #52c716, #0093dd);
}

.mobile-admin-container-chart::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(0, 147, 221, 0.08);
}

.mobile-admin-container-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px;
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(0, 147, 221, 0.18);
  border-radius: 12px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.mobile-admin-container-bar:hover,
.mobile-admin-container-bar.active {
  transform: translateX(2px);
  box-shadow: 0 10px 24px rgba(0, 147, 221, 0.13);
}

.mobile-admin-container-bar span,
.mobile-admin-container-bar i {
  min-width: 0;
}

.mobile-admin-container-bar strong,
.mobile-admin-container-bar em {
  display: block;
}

.mobile-admin-container-bar strong {
  font-size: 0.92rem;
  font-weight: 950;
}

.mobile-admin-container-bar em {
  color: var(--muted);
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 800;
}

.mobile-admin-container-bar b {
  color: #0676b8;
  font-size: 1rem;
  font-weight: 950;
  text-align: right;
}

.mobile-admin-container-bar i {
  grid-column: 1 / -1;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(0, 147, 221, 0.11);
}

.mobile-admin-container-bar u {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0093dd, #52c716);
}

.mobile-admin-panels {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mobile-admin-panels article {
  padding: 12px;
}

.mobile-admin-panels h4 {
  margin: 0 0 10px;
  color: #194414;
}

.mobile-admin-list {
  display: grid;
  gap: 8px;
}

.mobile-admin-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  padding: 8px;
  border: 1px solid rgba(78, 159, 14, 0.18);
  border-radius: 10px;
  background: rgba(247, 255, 244, 0.7);
}

.mobile-admin-thumb {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(123, 210, 29, 0.28);
  border-radius: 8px;
  object-fit: cover;
  background: #fff;
}

.mobile-admin-thumb.placeholder {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 950;
}

.mobile-admin-item strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.88rem;
}

.mobile-admin-item em {
  color: #0676b8;
  font-style: normal;
  font-weight: 950;
  white-space: nowrap;
}

.mobile-admin-empty {
  padding: 12px;
  border-radius: 10px;
  color: var(--muted);
  background: rgba(239, 246, 238, 0.82);
  font-weight: 800;
}

.mobile-admin-detail-card {
  margin-top: 12px;
  border: 1px solid rgba(0, 147, 221, 0.25);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 30px rgba(0, 147, 221, 0.08);
}

.mobile-admin-detail-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(122, 194, 93, 0.18);
  background: linear-gradient(135deg, rgba(230, 248, 255, 0.94), rgba(240, 255, 232, 0.88));
}

.mobile-admin-detail-head h4 {
  margin: 0;
  font-size: 1rem;
}

.mobile-admin-detail-head span {
  color: #0676b8;
  font-weight: 950;
}

.mobile-admin-detail-list {
  display: grid;
}

.mobile-admin-detail-row {
  display: grid;
  grid-template-columns: 58px minmax(190px, 1.5fr) repeat(5, minmax(76px, 0.55fr));
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(122, 194, 93, 0.16);
  animation: adminRowIn 0.24s ease both;
}

.mobile-admin-detail-row.needs-reorder {
  background: linear-gradient(90deg, rgba(255, 241, 241, 0.95), rgba(255, 255, 255, 0.82));
  box-shadow: inset 4px 0 0 rgba(239, 68, 68, 0.8);
}

.mobile-admin-detail-row img,
.mobile-admin-detail-img {
  width: 58px;
  height: 58px;
  border: 1px solid rgba(122, 194, 93, 0.28);
  border-radius: 10px;
  object-fit: cover;
  background: #fff;
}

.mobile-admin-detail-img {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 950;
}

.mobile-admin-detail-img img {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: inherit;
  object-fit: cover;
}

.mobile-admin-detail-main strong,
.mobile-admin-detail-main span,
.mobile-admin-detail-row small,
.mobile-admin-detail-row b {
  display: block;
}

.mobile-admin-detail-main strong {
  font-weight: 950;
}

.mobile-admin-detail-main span,
.mobile-admin-detail-row small {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 850;
}

.mobile-admin-detail-row b {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 950;
}

.mobile-admin-detail-row b.blue {
  color: #0676b8;
}

.mobile-admin-branch-row {
  grid-column: 2 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: -2px;
}

.mobile-admin-branch-chip {
  display: inline-grid;
  grid-template-columns: auto auto;
  gap: 2px 8px;
  align-items: center;
  min-width: 190px;
  padding: 6px 9px;
  border: 1px solid rgba(0, 147, 221, 0.18);
  border-left: 4px solid #52c716;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(244, 255, 240, 0.95), rgba(232, 249, 255, 0.82));
}

.mobile-admin-branch-chip em {
  color: #3a8d0d;
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mobile-admin-branch-chip strong {
  color: #0676b8;
  font-size: 0.95rem;
  font-weight: 950;
  text-align: right;
}

.mobile-admin-branch-chip small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 850;
}

body.mobile-stock-mode.role-mobileAdmin .mobile-stock-controls,
body.mobile-stock-mode.role-mobileAdmin .mobile-stock-dashboard {
  display: none !important;
}

body.mobile-stock-mode.role-mobileAdmin .mobile-stock-area {
  display: block;
}

body.mobile-stock-mode.role-mobileAdmin .mobile-stock-output {
  max-width: 1360px;
  margin: 0 auto;
}

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

@media (max-width: 980px) {
  .mobile-admin-hero-grid {
    grid-template-columns: 1fr;
  }

  .mobile-admin-container-chart {
    max-height: 430px;
  }

  .mobile-admin-donut {
    min-height: 150px;
  }

  .mobile-admin-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mobile-admin-panels {
    grid-template-columns: 1fr;
  }

  .mobile-admin-detail-row {
    grid-template-columns: 58px minmax(0, 1fr) repeat(2, minmax(70px, 0.5fr));
  }
}

@media (max-width: 640px) {
  .mobile-admin-dashboard {
    padding: 12px;
  }

  .mobile-admin-heading {
    display: grid;
  }

  .mobile-admin-heading > strong {
    justify-self: start;
  }

  .mobile-admin-kpis {
    grid-template-columns: 1fr;
  }

  .mobile-admin-container-chart {
    max-height: 390px;
  }

  .mobile-admin-detail-row {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .mobile-admin-detail-row > div:not(.mobile-admin-detail-main) {
    display: inline-grid;
    grid-template-columns: 48px 1fr;
    gap: 8px;
    align-items: center;
    grid-column: 2;
  }
}

/* Simple themed help view */
.help-center-dialog {
  width: min(820px, 96vw);
  background:
    radial-gradient(circle at 88% 0, rgba(123, 210, 29, 0.14), transparent 18rem),
    #fbfff8;
}

.help-center-hero {
  border-bottom-color: #52c716;
  background:
    radial-gradient(circle at 82% 12%, rgba(123, 210, 29, 0.28), transparent 16rem),
    linear-gradient(135deg, #0a4f25, #178a38 58%, #0b96c8);
}

.help-center-actions {
  grid-template-columns: 1fr auto auto;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(237, 255, 230, 0.82));
  border-bottom-color: rgba(82, 199, 22, 0.24);
}

.help-search,
.help-chip-row,
.help-card-grid,
.help-booklet-preview,
.help-final-note,
#helpViewBookletBtn {
  display: none !important;
}

.help-center-actions::before {
  content: "Quick help: follow History > Unloading > Price Idea > SKU & Branch > Stock View > Mobile Stock. Use each section's green action button, then save current work before moving to the next step.";
  display: block;
  min-height: 46px;
  padding: 13px 15px 13px 18px;
  border-left: 5px solid #52c716;
  border-radius: 12px;
  color: #1d3516;
  background: rgba(239, 255, 232, 0.96);
  font-weight: 850;
  line-height: 1.45;
  box-shadow: 0 10px 24px rgba(82, 199, 22, 0.12);
}

.help-primary-btn {
  background: linear-gradient(135deg, #3d9b08, #52c716);
}

.help-soft-btn {
  color: #075f94;
  border-color: rgba(0, 147, 221, 0.32);
  background: linear-gradient(135deg, #fff, rgba(224, 247, 255, 0.84));
}

.quick-help-modal .help-center-dialog {
  width: min(760px, calc(100vw - 24px));
  max-height: calc(100vh - 28px);
  padding: 24px;
  overflow: auto;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(76, 212, 24, 0.55);
  border-radius: 12px;
}

.quick-help-modal .help-center-hero,
.quick-help-modal .help-center-actions,
.quick-help-modal .help-chip-row,
.quick-help-modal .help-card-grid,
.quick-help-modal .help-booklet-preview,
.quick-help-modal .help-final-note {
  display: none !important;
}

.quick-help-modal .quick-manual-content {
  display: block;
}

.mobile-stock-filter-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px;
  gap: 8px;
  min-width: 0;
}

.mobile-stock-filter-card,
.mobile-stock-clear,
.mobile-filter-print {
  border-radius: 14px;
  font: inherit;
  cursor: pointer;
}

.mobile-stock-filter-card {
  min-width: 0;
  border: 1px solid rgba(21, 126, 199, 0.28);
  padding: 11px 12px;
  text-align: left;
  background: #fff;
  box-shadow: 0 12px 26px rgba(19, 73, 114, 0.08);
}

.mobile-stock-filter-card span {
  display: block;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 950;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.mobile-stock-filter-card strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 1.55rem;
  line-height: 1;
}

.mobile-stock-filter-card.total {
  border-color: rgba(20, 174, 224, 0.7);
  background: linear-gradient(135deg, rgba(229, 250, 255, 0.98), rgba(255, 255, 255, 0.88));
}

.mobile-stock-filter-card.slow {
  border-color: rgba(230, 174, 36, 0.7);
  background: linear-gradient(135deg, rgba(255, 248, 224, 0.98), rgba(255, 255, 255, 0.88));
}

.mobile-stock-filter-card.reorder {
  border-color: rgba(255, 86, 86, 0.78);
  background: linear-gradient(135deg, rgba(255, 238, 238, 0.98), rgba(255, 255, 255, 0.88));
}

.mobile-stock-filter-card.active {
  outline: 2px solid rgba(78, 159, 14, 0.3);
  box-shadow: 0 14px 28px rgba(78, 159, 14, 0.16);
  transform: translateY(-1px);
}

.mobile-filter-print {
  display: grid;
  place-items: center;
  width: 46px;
  border: 1px solid rgba(238, 151, 30, 0.82);
  background: linear-gradient(135deg, #fff6e8, #ffe0ad);
  color: #9d4f00;
  font-size: 1rem;
  font-weight: 950;
  box-shadow: 0 12px 22px rgba(238, 151, 30, 0.2);
  animation: mobileOrangeBlink 1.25s ease-in-out infinite;
}

.mobile-stock-clear {
  border: 1px solid rgba(123, 210, 29, 0.42);
  padding: 10px 12px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(231, 255, 218, 0.78));
  color: var(--ink);
  font-weight: 950;
}

@keyframes mobileOrangeBlink {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(238, 151, 30, 0.32), 0 12px 22px rgba(238, 151, 30, 0.18);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(238, 151, 30, 0), 0 12px 28px rgba(238, 151, 30, 0.34);
  }
}

.barcode-scan-btn {
  position: relative;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(78, 159, 14, 0.55);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(234, 255, 222, 0.98), rgba(214, 255, 239, 0.88)),
    #fff;
  box-shadow: 0 10px 22px rgba(78, 159, 14, 0.14);
  cursor: pointer;
}

.barcode-scan-btn span::before {
  content: "";
  position: absolute;
  top: 13px;
  left: 12px;
  width: 22px;
  height: 17px;
  border: 2px solid #3d9b08;
  border-radius: 6px;
  background: #fff;
}

.barcode-scan-btn span::after {
  content: "";
  position: absolute;
  top: 18px;
  left: 18px;
  width: 10px;
  height: 7px;
  border: 2px solid #3d9b08;
  border-radius: 50%;
  background: rgba(123, 210, 29, 0.14);
}

.barcode-scan-btn::after {
  content: "";
  position: absolute;
  top: 10px;
  left: 17px;
  width: 13px;
  height: 5px;
  border-radius: 2px;
  background: #3d9b08;
}

.barcode-scan-btn.scanning {
  border-color: #15b8cf;
  animation: scanPulse 1s ease-in-out infinite;
}

.barcode-scan-btn.unsupported {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

@keyframes scanPulse {
  0% { box-shadow: 0 0 0 0 rgba(21, 184, 207, 0.28); }
  70% { box-shadow: 0 0 0 12px rgba(21, 184, 207, 0); }
  100% { box-shadow: 0 0 0 0 rgba(21, 184, 207, 0); }
}

.barcode-scanner {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(78, 159, 14, 0.42);
  border-radius: 14px;
  background: #07110b;
  box-shadow: 0 16px 34px rgba(11, 31, 17, 0.18);
}

.barcode-scanner video {
  display: block;
  width: 100%;
  min-height: 260px;
  max-height: 420px;
  object-fit: cover;
}

.barcode-scan-frame {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(88%, 420px);
  height: 72px;
  border: 2px solid rgba(123, 210, 29, 0.95);
  border-radius: 14px;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 999px rgba(0, 0, 0, 0.34);
}

.barcode-scan-frame::after {
  content: "";
  position: absolute;
  right: 10px;
  left: 10px;
  top: 50%;
  height: 2px;
  border-radius: 2px;
  background: #15b8cf;
  animation: scanLine 1.4s ease-in-out infinite;
}

@keyframes scanLine {
  0%, 100% { transform: translateY(-28px); }
  50% { transform: translateY(28px); }
}

.barcode-scanner-actions {
  position: absolute;
  right: 10px;
  bottom: 10px;
  left: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
}

.barcode-scanner-actions span {
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
}

.barcode-scanner-actions button {
  width: auto;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 10px;
}

.camera-drop,
.image-library-drop {
  position: relative;
  display: grid;
  gap: 5px;
  padding: 14px;
  border-style: solid;
  border-color: rgba(123, 210, 29, 0.42);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(234, 255, 222, 0.76)),
    #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.66);
}

.camera-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.camera-title i {
  position: relative;
  display: inline-block;
  width: 31px;
  height: 24px;
  border: 2px solid #4f9f0e;
  border-radius: 8px;
  background: rgba(123, 210, 29, 0.12);
}

.camera-title i::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 9px;
  width: 9px;
  height: 9px;
  border: 2px solid #4f9f0e;
  border-radius: 50%;
  background: #fff;
}

.camera-title i::after {
  content: "";
  position: absolute;
  top: -6px;
  left: 7px;
  width: 12px;
  height: 5px;
  border-radius: 5px 5px 0 0;
  background: #4f9f0e;
}

.image-library-drop small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.camera-drop input,
.image-library-drop input {
  width: 100%;
  max-width: 100%;
  margin-top: 6px;
  color: #102009;
  font-weight: 800;
}

.camera-drop input::file-selector-button,
.image-library-drop input::file-selector-button {
  margin-right: 10px;
  border: 0;
  border-radius: 999px;
  padding: 9px 13px;
  color: #fff;
  background: linear-gradient(135deg, #4f9f0e, #7bd21d);
  font-weight: 900;
}

.mobile-stock-report {
  padding: 18px;
}

.mobile-stock-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.mobile-stock-load-more {
  grid-column: 1 / -1;
  justify-self: center;
  min-width: min(280px, 100%);
  border: 1px solid rgba(123, 210, 29, 0.72);
  border-radius: 14px;
  padding: 13px 24px;
  background: linear-gradient(135deg, rgba(244, 255, 236, 0.98), rgba(208, 253, 242, 0.96));
  color: #245c0a;
  font-weight: 1000;
  box-shadow: 0 14px 30px rgba(79, 159, 14, 0.16);
  cursor: pointer;
}

.mobile-stock-load-more:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(79, 159, 14, 0.22);
}

.mobile-stock-card {
  overflow: hidden;
  border: 1px solid #dce8d7;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 34px rgba(29, 55, 20, 0.09);
}

.mobile-stock-card.reorder {
  border-color: #f3b64b;
  box-shadow:
    0 14px 34px rgba(106, 76, 16, 0.12),
    inset 0 0 0 1px rgba(243, 182, 75, 0.25);
}

.scroll-top-btn {
  position: fixed;
  right: 18px;
  bottom: 22px;
  z-index: 3200;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(123, 210, 29, 0.72);
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.45) 42%, transparent 70%),
    linear-gradient(135deg, rgba(244, 255, 236, 0.96), rgba(207, 250, 254, 0.96));
  color: #245c0a;
  font-size: 0.72rem;
  font-weight: 1000;
  letter-spacing: 0.02em;
  box-shadow:
    0 14px 34px rgba(79, 159, 14, 0.23),
    0 0 0 6px rgba(123, 210, 29, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px) scale(0.92);
  transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.scroll-top-btn.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.scroll-top-btn:hover {
  box-shadow:
    0 18px 42px rgba(79, 159, 14, 0.3),
    0 0 0 8px rgba(123, 210, 29, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.mobile-stock-photo {
  display: grid;
  place-items: center;
  height: 260px;
  padding: 12px 12px 70px;
  box-sizing: border-box;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.12) 34%, transparent 58%),
    linear-gradient(135deg, #f8fbf6, #eef5ea);
}

.mobile-stock-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.mobile-stock-photo.placeholder {
  color: var(--muted);
  font-weight: 800;
}

.mobile-stock-photo.placeholder.loading {
  color: #244418;
}

.image-loading-card {
  display: grid;
  place-items: center;
  gap: 6px;
  width: min(210px, 88%);
  min-height: 130px;
  padding: 16px;
  border: 1px solid rgba(123, 210, 29, 0.38);
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 16%, rgba(255, 255, 255, 0.96), rgba(236, 255, 226, 0.64) 56%, rgba(232, 250, 255, 0.5)),
    rgba(255, 255, 255, 0.86);
  box-shadow:
    0 14px 32px rgba(58, 145, 12, 0.13),
    0 0 26px rgba(0, 167, 216, 0.12),
    inset 0 0 24px rgba(255, 255, 255, 0.88);
  color: #26421b;
  text-align: center;
}

.image-loading-card strong {
  font-size: 0.88rem;
  line-height: 1.1;
}

.image-loading-card small {
  color: var(--muted);
  font-weight: 800;
}

.image-loading-card.compact {
  width: 76px;
  min-height: 58px;
  padding: 6px;
  border-radius: 10px;
  gap: 2px;
}

.image-loading-card.compact strong {
  font-size: 0.58rem;
}

.image-loading-card.compact small {
  display: none;
}

.image-loading-camera {
  position: relative;
  width: 42px;
  height: 32px;
  border: 3px solid #43a60e;
  border-radius: 10px;
  background: linear-gradient(135deg, #f7fff0, #e4f8ff);
  box-shadow: 0 5px 12px rgba(48, 128, 12, 0.18);
}

.image-loading-camera::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 8px;
  width: 16px;
  height: 8px;
  border-radius: 6px 6px 0 0;
  background: #43a60e;
}

.image-loading-camera::after {
  content: "";
  position: absolute;
  inset: 7px 12px;
  border: 3px solid #00a7d8;
  border-radius: 50%;
  background: #fff;
}

.image-loading-card.compact .image-loading-camera {
  transform: scale(0.62);
  margin-bottom: -4px;
}

.mobile-stock-body {
  position: relative;
  display: grid;
  gap: 12px;
  margin-top: -68px;
  padding: 0 14px 14px;
}

.mobile-stock-title {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  min-height: 62px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(246, 249, 243, 0.56));
  box-shadow:
    0 16px 32px rgba(28, 55, 18, 0.16),
    0 0 22px rgba(123, 210, 29, 0.15),
    0 0 0 1px rgba(88, 154, 26, 0.16) inset;
  backdrop-filter: blur(14px) saturate(1.25);
}

.mobile-stock-title::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(105deg, rgba(255, 255, 255, 0.48), transparent 36%, rgba(255, 255, 255, 0.24) 68%, transparent);
  opacity: 0.72;
}

.mobile-stock-title h3 {
  position: relative;
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.15;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.mobile-stock-title span {
  position: relative;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.75);
}

.mobile-stock-title .mobile-item-no {
  display: inline-block;
  margin-top: 4px;
  color: #26301f;
  font-size: 0.95rem;
  font-weight: 950;
  letter-spacing: 0.01em;
}

.duplicate-sku-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-top: 6px;
  border: 1px solid rgba(28, 132, 219, 0.28);
  border-radius: 999px;
  padding: 4px 8px;
  color: #0a65ad;
  background: linear-gradient(135deg, rgba(236, 248, 255, 0.94), rgba(230, 255, 246, 0.82));
  box-shadow: 0 6px 16px rgba(28, 132, 219, 0.12);
  font-size: 0.66rem;
  font-style: normal;
  font-weight: 950;
  text-transform: uppercase;
}

.stock-badge {
  position: relative;
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 6px 9px;
  color: #2f6e00;
  background: rgba(123, 210, 29, 0.18);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.stock-badge.reorder {
  color: #7a4800;
  background: #fff0ce;
}

.mobile-stock-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.mobile-stock-meta div,
.mobile-branch-card {
  border-left: 3px solid var(--green);
  border-radius: 8px;
  background: #fbfff8;
  padding: 9px 10px;
}

.mobile-stock-meta .mobile-price-card {
  border-left-color: #0ea5e9;
  background: linear-gradient(135deg, #eff9ff, #f8fcff);
}

.mobile-stock-meta .mobile-age-card {
  border-left-color: #0b86d8;
  background:
    linear-gradient(145deg, rgba(239, 249, 255, 0.98), rgba(218, 241, 255, 0.82)),
    #f4fbff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(7, 94, 168, 0.08),
    0 8px 18px rgba(14, 116, 199, 0.1);
}

.mobile-stock-meta span,
.mobile-branch-card span {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.mobile-stock-meta strong,
.mobile-branch-card strong {
  display: block;
  margin-top: 3px;
  font-size: 0.98rem;
  font-weight: 950;
}

.mobile-price-card strong {
  color: #075ea8;
  font-size: 1.06rem;
}

.mobile-age-card strong {
  color: #075ea8;
  font-size: 1.08rem;
  font-weight: 950;
  letter-spacing: 0.01em;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9),
    0 7px 16px rgba(7, 94, 168, 0.16);
}

.mobile-branch-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.mobile-branch-card em {
  display: inline-block;
  margin-right: 8px;
  color: #6d7469;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 800;
}

.mobile-branch-card em.branch-stock {
  color: #27810a;
  font-weight: 950;
}

.mobile-branch-card em.branch-sale {
  color: #c26800;
  font-weight: 950;
}

.mobile-reorder-note {
  border-radius: 8px;
  padding: 10px;
  color: #6a3f00;
  background: #fff7e6;
  font-size: 0.86rem;
  font-weight: 800;
}

@media (max-width: 720px) {
  .help-dialog {
    padding: 18px;
  }

  .help-title-row {
    grid-template-columns: 1fr;
    margin-right: 34px;
  }

  .help-print-btn {
    width: max-content;
  }

  .help-flow {
    grid-template-columns: 1fr;
  }

  .help-flow li {
    min-height: auto;
  }

  .help-layout {
    grid-template-columns: 1fr;
  }

  .help-file-preview {
    min-height: 190px;
  }

  .help-steps li {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .mobile-stock-report {
    padding: 12px;
  }

  .mobile-stock-dashboard {
    grid-template-columns: 1fr;
  }

  .mobile-stock-filter-wrap {
    grid-template-columns: minmax(0, 1fr) 48px;
  }

  .mobile-stock-filter-card strong {
    font-size: 1.4rem;
  }

  .mobile-stock-grid {
    grid-template-columns: 1fr;
  }

  .mobile-stock-photo {
    height: 260px;
  }

  .scroll-top-btn {
    right: 12px;
    bottom: 78px;
    bottom: calc(78px + env(safe-area-inset-bottom));
    width: 42px;
    height: 42px;
    font-size: 0.64rem;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }

  body.mobile-stock-mode .scroll-top-btn,
  body.role-mobile .scroll-top-btn {
    right: 12px;
    bottom: 84px;
    bottom: calc(84px + env(safe-area-inset-bottom));
    z-index: 2600;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }

  .tutorial-pop::before {
    left: 22px;
    top: calc(100% + 1px);
    border-right-color: transparent;
    border-bottom-color: rgba(255, 255, 255, 0.96);
    transform: translateY(-2px);
  }

  .tutorial-pop::after {
    left: 0;
    right: auto;
    top: calc(100% + 16px);
    width: min(280px, calc(100vw - 54px));
    transform: translateY(-4px);
  }

  .tutorial-pop:hover::before,
  .tutorial-pop:hover::after,
  .tutorial-pop:focus-within::before,
  .tutorial-pop:focus-within::after,
  .tutorial-pop:focus-visible::before,
  .tutorial-pop:focus-visible::after {
    transform: translateY(0);
  }

  .mobile-stock-meta,
  .mobile-branch-grid {
    grid-template-columns: 1fr;
  }
}

@media print {
  .scroll-top-btn {
    display: none !important;
  }

  body.print-mobile-stock .top-freeze,
  body.print-mobile-stock .section-tabs,
  body.print-mobile-stock #historySection,
  body.print-mobile-stock #priceSection,
  body.print-mobile-stock #skuSection,
  body.print-mobile-stock #stockSection,
  body.print-mobile-stock #unloadSection,
  body.print-mobile-stock .mobile-stock-controls,
  body.print-mobile-stock .mobile-stock-dashboard,
  body.print-mobile-stock .zylon-footer {
    display: none !important;
  }

  body.print-mobile-stock #mobileStockSection {
    display: block !important;
  }

  body.print-mobile-stock .mobile-stock-area {
    display: block;
  }

  body.print-mobile-stock .mobile-stock-output {
    border: 0;
    box-shadow: none;
    padding: 0;
  }

  body.print-mobile-stock .mobile-stock-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  body.print-mobile-stock .mobile-stock-load-more {
    display: none;
  }

  body.print-mobile-stock .mobile-stock-card {
    break-inside: avoid;
    box-shadow: none;
  }
}

.unload-controls button:not(.help-icon-btn):not(.sample-file-card) {
  width: 100%;
  margin-top: 4px;
}

.unload-sheet {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.unload-head {
  display: grid;
  grid-template-columns: 230px 1fr 230px;
  align-items: center;
  gap: 22px;
  padding: 22px 26px;
  border-bottom: 4px solid var(--green);
}

.unload-head img {
  width: 230px;
  height: 96px;
  object-fit: contain;
  object-position: left center;
}

.unload-head h2 {
  margin: 0;
  font-family: "Aptos Display", Aptos, "Segoe UI", Arial, sans-serif;
  font-size: 2rem;
  font-weight: 750;
  text-align: center;
}

.unload-title-wrap {
  text-align: center;
}

.unload-info-cards {
  display: grid;
  gap: 8px;
  width: 190px;
  justify-self: end;
}

.unload-info-card {
  border-left: 3px solid var(--green);
  border-radius: 7px;
  background: rgba(247, 250, 245, 0.9);
  padding: 8px 10px;
}

.unload-info-card span {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.unload-info-card strong {
  display: block;
  margin-top: 2px;
  font-size: 0.95rem;
  font-weight: 800;
}

.unload-table th,
.unload-table td {
  vertical-align: middle;
}

.unload-table th {
  text-align: center;
  font-weight: 700;
}

.unload-table .branch-col {
  width: 190px;
}

.mark-space {
  height: 46px;
  background: rgba(247, 250, 245, 0.55);
}

.ctns-cell {
  white-space: nowrap;
  text-align: center;
}

.ctns-number {
  font-weight: 900;
  font-size: 1.18em;
}

.ctns-unit {
  font-weight: 500;
}

.mark-number-cell {
  text-align: center;
  white-space: nowrap;
  font-weight: 500;
}

.mark-prefix,
.mark-suffix {
  font-size: 1.18em;
  font-weight: 700;
}

.mark-middle {
  font-weight: 500;
}

.mark-dash {
  font-weight: 500;
}

.unload-print-pages {
  display: none;
}

.unload-summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 4px 0;
}

.unload-summary-card {
  min-width: 132px;
  border-left: 4px solid var(--green);
  border-radius: 7px;
  background: #f7faf5;
  padding: 8px 12px;
  box-shadow: inset 0 0 0 1px #e0e8dc;
}

.unload-summary-card span {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.unload-summary-card strong {
  display: block;
  margin-top: 2px;
  font-size: 1.08rem;
  font-weight: 900;
}

@media (max-width: 920px) {
  .top-freeze {
    position: static;
    margin: 0 0 12px;
    padding-top: 0;
    background: transparent;
    backdrop-filter: none;
  }

  .top-nav-row {
    flex-direction: column;
    align-items: stretch;
    padding: 8px;
  }

  .top-history-actions {
    width: 100%;
    margin-left: 0;
  }

  .hero,
  .workspace,
  .toolbar {
    flex-direction: column;
  }

  .history-head,
  .history-card {
    grid-template-columns: 1fr;
  }

  .history-card-main {
    padding-right: 0;
  }

  .history-step-status {
    position: static;
    justify-self: start;
  }

  .history-delete-btn {
    position: static;
    justify-self: start;
  }

  .history-actions,
  .history-actions input,
  .history-open-btn,
  .history-delete-btn {
    width: 100%;
  }

  .top-history-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .top-history-actions input,
  .top-history-actions button {
    min-height: 46px;
    height: auto;
    align-self: stretch;
    padding: 0.76rem 0.9rem;
  }

  .top-history-actions .arrived-date-control {
    width: 100%;
    min-width: 0;
  }

  .top-history-actions .arrived-date-control input {
    min-height: 0;
    height: 30px;
    padding: 0;
  }

  .top-history-actions .action-progress {
    width: 100%;
  }

  .history-counts {
    flex-wrap: wrap;
  }

  .hero {
    position: static;
    align-items: stretch;
    gap: 12px;
    backdrop-filter: none;
  }

  .section-tabs {
    backdrop-filter: none;
  }

  .history-panel {
    position: static;
    padding: 12px;
    backdrop-filter: none;
  }

  .controls {
    position: static;
  }

  .history-list {
    max-height: none;
    overflow: visible;
  }

  .brand {
    align-items: flex-start;
    gap: 10px;
  }

  .brand img {
    width: min(210px, 58vw);
    height: 86px;
  }

  .brand h1 {
    font-size: 1.55rem;
    line-height: 1.08;
  }

  .controls {
    position: static;
    width: 100%;
  }

  .actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    justify-content: stretch;
  }

  .actions button:first-child {
    grid-column: 1 / -1;
  }

  .actions button {
    width: 100%;
    min-height: 46px;
  }

  .totals {
    justify-content: flex-start;
    justify-items: start;
  }

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

  .sku-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .sku-head img {
    width: min(220px, 68vw);
    height: 88px;
  }

  .sku-meta {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 920px) {
  .auth-panel {
    grid-template-columns: 1fr;
  }

  .auth-user-grid {
    grid-template-columns: 1fr;
  }

  .zylon-corner {
    width: auto;
    margin: 10px 8px 92px;
    border-radius: 14px;
    flex-wrap: wrap;
  }

  body.mobile-stock-mode .shell {
    width: min(100%, 720px);
    padding: 0 8px 86px;
  }

  body.mobile-stock-mode .top-freeze {
    position: static;
    z-index: auto;
    margin: 0 -8px 10px;
    padding: 0 10px;
    border-bottom: 1px solid rgba(123, 210, 29, 0.34);
    background:
      radial-gradient(circle at top right, rgba(123, 210, 29, 0.22), transparent 18rem),
      linear-gradient(135deg, rgba(248, 250, 245, 0.96), rgba(239, 249, 233, 0.96));
    backdrop-filter: blur(12px);
  }

  body.mobile-stock-mode .hero {
    position: static;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 12px 10px 12px;
    border-bottom: 0;
    background: transparent;
    backdrop-filter: none;
  }

  body.mobile-stock-mode .brand {
    display: grid;
    grid-template-columns: minmax(112px, 36vw) 1fr;
    align-items: center;
    gap: 10px;
  }

  body.mobile-stock-mode .brand img {
    width: 100%;
    height: 86px;
  }

  body.mobile-stock-mode .brand p {
    margin-bottom: 2px;
    font-size: 0.66rem;
  }

  body.mobile-stock-mode .brand h1 {
    font-size: clamp(1.55rem, 8.2vw, 2.45rem);
    line-height: 0.98;
  }

  body.mobile-stock-mode .actions {
    position: fixed;
    right: 10px;
    left: 10px;
    z-index: 80;
    display: grid;
    grid-template-columns: 44px repeat(3, minmax(0, 1fr));
    gap: 8px;
    width: auto;
    margin-left: 0;
    padding: 8px;
    border: 1px solid rgba(123, 210, 29, 0.38);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 14px 38px rgba(35, 55, 23, 0.18);
    backdrop-filter: blur(14px);
    bottom: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom));
  }

  body.mobile-stock-mode .actions button,
  body.mobile-stock-mode .actions .button-link {
    padding: 0.5rem 0.42rem;
    font-size: 0.72rem;
  }

  body.mobile-stock-mode .mobile-stock-area {
    margin-top: 10px;
  }

  body.mobile-stock-mode .mobile-stock-controls {
    order: 1;
    padding: 10px;
  }

  body.mobile-stock-mode .mobile-stock-output {
    order: 2;
  }

  body.mobile-stock-mode .mobile-stock-output .toolbar {
    gap: 4px;
    padding: 2px 0;
  }

  body.mobile-stock-mode .mobile-stock-output .toolbar h2 {
    font-size: 1.36rem;
    line-height: 1.05;
  }

  body.mobile-stock-mode .mobile-stock-controls h2,
  body.mobile-stock-mode .mobile-stock-controls .control-note {
    display: none;
  }

  body.mobile-stock-mode .camera-drop,
  body.mobile-stock-mode .image-library-drop {
    padding: 12px;
  }
}

@media print {
  body.print-help {
    background: #fff !important;
  }

  body.print-help::before,
  body.print-help .app-intro,
  body.print-help .top-freeze,
  body.print-help #authSection,
  body.print-help #historySection,
  body.print-help #unloadSection,
  body.print-help #priceSection,
  body.print-help #skuSection,
  body.print-help #stockSection,
  body.print-help #mobileStockSection,
  body.print-help .zylon-corner,
  body.print-help .scroll-top-btn {
    display: none !important;
  }

  body.print-help .shell {
    width: auto !important;
    max-width: none !important;
    padding: 0 !important;
  }

  body.print-help .help-modal {
    position: static !important;
    display: block !important;
    padding: 0 !important;
    background: #fff !important;
    backdrop-filter: none !important;
  }

  body.print-help .help-dialog {
    width: auto !important;
    max-height: none !important;
    overflow: visible !important;
    padding: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    background: #fff !important;
  }

  body.print-help .help-close,
  body.print-help .help-print-btn {
    display: none !important;
  }

  body.print-help .help-title-row {
    margin-right: 0;
  }

  body.print-help .help-infographic {
    break-inside: avoid;
  }

  body.print-help .help-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-intro {
    display: none !important;
  }

  @page {
    size: auto;
    margin: 8mm;
  }

  body {
    background: #fff;
    width: auto;
    margin: 0;
  }

  body.print-price .unload-area,
  body.print-price .sku-area,
  body.print-price .stock-area,
  body.print-sku .workspace:not(.sku-area),
  body.print-stock .workspace:not(.stock-area),
  body.print-reorder .workspace:not(.stock-area),
  body.print-slow .workspace:not(.stock-area),
  body.print-unloading .workspace:not(.unload-area) {
    display: none !important;
  }

  body[data-print-mode="print-price"] .shell > :not(#priceSection),
  body[data-print-mode="print-sku"] .shell > :not(#skuSection),
  body[data-print-mode="print-stock"] .shell > :not(#stockSection),
  body[data-print-mode="print-reorder"] .shell > :not(#stockSection),
  body[data-print-mode="print-slow"] .shell > :not(#stockSection),
  body[data-print-mode="print-unloading"] .shell > :not(#unloadSection) {
    display: none !important;
  }

  body.print-price #skuSection,
  body.print-price #stockSection,
  body.print-price #unloadSection,
  body.print-sku #priceSection,
  body.print-sku #stockSection,
  body.print-sku #unloadSection,
  body.print-stock #priceSection,
  body.print-stock #skuSection,
  body.print-stock #unloadSection,
  body.print-reorder #priceSection,
  body.print-reorder #skuSection,
  body.print-reorder #unloadSection,
  body.print-slow #priceSection,
  body.print-slow #skuSection,
  body.print-slow #unloadSection,
  body.print-unloading #priceSection,
  body.print-unloading #skuSection,
  body.print-unloading #stockSection,
  body.print-price .section-tabs,
  body.print-sku .section-tabs,
  body.print-stock .section-tabs,
  body.print-reorder .section-tabs,
  body.print-slow .section-tabs,
  body.print-unloading .section-tabs {
    display: none !important;
  }

  body::before {
    display: none;
  }

  .hero,
  .history-panel,
  .controls,
  .toolbar {
    display: none;
  }

  .output > .powered-by {
    display: none !important;
  }

  .shell {
    width: 100%;
    padding: 0;
  }

  .workspace,
  .output,
  .invoice,
  .unload-output,
  .unload-sheet {
    display: block;
    padding: 0;
    border: 0;
    box-shadow: none;
  }

  .invoice {
    overflow: visible;
    border: 0;
    border-radius: 0;
  }

  .invoice::before {
    display: none;
  }

  .invoice > :not(.print-pages) {
    display: none !important;
  }

  .print-pages {
    display: block;
    width: 194mm;
    max-width: 194mm;
    overflow: hidden;
  }

  body.print-unloading .print-pages,
  body.print-sku .print-pages,
  body.print-stock .print-pages,
  body.print-unloading .invoice,
  body.print-sku .invoice,
  body.print-stock .invoice,
  body.print-unloading .powered-by,
  body.print-sku .powered-by,
  body.print-stock .powered-by,
  body.print-unloading .print-page-footer {
    display: none !important;
  }

  body.print-stock .stock-report {
    width: 194mm;
    max-width: 194mm;
    overflow: visible;
    border: 0;
    border-radius: 0;
  }

  body.print-reorder .stock-report,
  body.print-slow .stock-report {
    width: 194mm;
    max-width: 194mm;
    overflow: visible;
    border: 0;
    border-radius: 0;
  }

  body.print-reorder .stock-head,
  body.print-reorder .stock-cards,
  body.print-reorder .stock-table,
  body.print-slow .stock-head,
  body.print-slow .stock-cards,
  body.print-slow .stock-table,
  body.print-reorder .slow-report,
  body.print-stock .slow-report,
  body.print-slow .reorder-report:not(.slow-report) {
    display: none !important;
  }

  body.print-stock .stock-head {
    display: grid;
    grid-template-columns: 45mm 1fr 36mm;
    gap: 5mm;
    align-items: center;
    padding: 0 0 4mm;
    border-bottom: 2.5pt solid #7bd21d;
  }

  body.print-stock .stock-head img {
    width: 43mm;
    height: 21mm;
  }

  body.print-stock .stock-head h2 {
    font-size: 18pt;
  }

  body.print-stock .stock-head p {
    font-size: 8pt;
  }

  body.print-stock .stock-age-row {
    gap: 1.5mm;
    margin-top: 1.5mm;
  }

  body.print-stock .stock-age-row span,
  body.print-stock .stock-age-row strong {
    min-height: 0;
    padding: 1mm 1.8mm;
    font-size: 6pt;
  }

  body.print-stock .stock-reorder-summary {
    min-width: 0;
    padding: 2mm;
    border-radius: 4px;
    box-shadow: none;
  }

  body.print-stock .stock-reorder-summary span,
  body.print-stock .stock-reorder-summary em {
    font-size: 5pt;
  }

  body.print-stock .stock-reorder-summary strong {
    font-size: 17pt;
  }

  body.print-stock .stock-cards {
    gap: 2mm;
    padding: 3mm 0 2.5mm;
  }

  body.print-stock .stock-cards article {
    border-radius: 4px;
    padding: 1.5mm 2mm;
  }

  body.print-stock .stock-cards span {
    font-size: 5.8pt;
  }

  body.print-stock .stock-cards strong {
    font-size: 8pt;
  }

  body.print-stock .stock-metric-card b {
    font-size: 8pt;
  }

  body.print-stock .stock-metric-card i {
    height: 1.4mm;
  }

  body.print-stock .stock-table {
    width: 100%;
    min-width: 0;
    max-width: 194mm;
    table-layout: fixed;
  }

  body.print-stock .stock-table th,
  body.print-stock .stock-table td {
    padding: 1.35mm 0.6mm;
    font-size: 6.8pt;
    line-height: 1.12;
  }

  body.print-stock .stock-table th {
    background: #f3f8ef !important;
    border-bottom: 1.2pt solid #7bd21d;
    font-size: 6pt;
  }

  body.print-stock .stock-table th:nth-child(1),
  body.print-stock .stock-table td:nth-child(1) {
    width: 19mm;
  }

  body.print-stock .stock-table th:nth-child(2),
  body.print-stock .stock-table td:nth-child(2) {
    width: 25mm;
  }

  body.print-stock .stock-table th:nth-child(3),
  body.print-stock .stock-table td:nth-child(3) {
    width: 40mm;
  }

  body.print-stock .stock-table th:nth-child(4),
  body.print-stock .stock-table td:nth-child(4) {
    width: 18mm;
  }

  body.print-stock .stock-table th:nth-child(5),
  body.print-stock .stock-table td:nth-child(5) {
    width: 18mm;
  }

  body.print-stock .stock-table th:nth-child(6),
  body.print-stock .stock-table td:nth-child(6),
  body.print-stock .stock-table th:nth-child(7),
  body.print-stock .stock-table td:nth-child(7) {
    width: 37mm;
  }

  body.print-stock .stock-table .sku-photo {
    width: 16mm;
    height: 16mm;
  }

  body.print-stock .stock-triplet {
    gap: 0.5mm;
  }

  body.print-stock .stock-triplet span {
    min-height: 7.5mm;
    border-radius: 3px;
  }

  body.print-stock .stock-triplet em {
    font-size: 4pt;
  }

  body.print-stock .stock-triplet strong {
    font-size: 6.6pt;
  }

  body.print-stock .stock-reorder-row {
    outline: 1pt solid #ff4747;
    outline-offset: -1pt;
  }

  body.print-stock .stock-reorder-row td:first-child {
    border-left: 2pt solid #ff4747;
  }

  body.print-stock .reorder-alert-pill {
    margin-top: 1mm;
    padding: 0.8mm 1.2mm;
    font-size: 4.8pt;
    box-shadow: none;
    animation: none;
  }

  body.print-stock .reorder-report {
    margin: 4mm 0 0;
    border-radius: 4px;
    box-shadow: none;
    break-inside: avoid;
  }

  body.print-reorder .reorder-report,
  body.print-slow .slow-report {
    margin: 0;
    border-radius: 4px;
    box-shadow: none;
  }

  body.print-stock .reorder-report-head,
  body.print-reorder .reorder-report-head,
  body.print-slow .reorder-report-head {
    padding: 2.2mm 2.8mm;
    border-bottom-width: 1.2pt;
  }

  body.print-stock .reorder-report-head h3,
  body.print-reorder .reorder-report-head h3,
  body.print-slow .reorder-report-head h3 {
    font-size: 11pt;
  }

  body.print-stock .reorder-report-head span,
  body.print-reorder .reorder-report-head span,
  body.print-slow .reorder-report-head span,
  body.print-stock .reorder-table td:first-child span,
  body.print-reorder .reorder-table td:first-child span,
  body.print-slow .reorder-table td:first-child span,
  body.print-stock .reorder-table td:nth-child(3) span,
  body.print-reorder .reorder-table td:nth-child(3) span,
  body.print-slow .reorder-table td:nth-child(3) span {
    font-size: 6pt;
  }

  body.print-stock .reorder-report-head > strong,
  body.print-reorder .reorder-report-head > strong,
  body.print-slow .reorder-report-head > strong {
    min-width: 22mm;
    min-height: 11mm;
    border-radius: 4px;
    font-size: 10pt;
    box-shadow: none;
  }

  body.print-stock .reorder-table th,
  body.print-reorder .reorder-table th,
  body.print-slow .reorder-table th,
  body.print-stock .reorder-table td,
  body.print-reorder .reorder-table td,
  body.print-slow .reorder-table td {
    padding: 1mm 0.85mm;
    font-size: 7.1pt;
  }

  body.print-stock .reorder-table th,
  body.print-reorder .reorder-table th,
  body.print-slow .reorder-table th {
    font-size: 5.6pt;
  }

  body.print-stock .reorder-table th:nth-child(1),
  body.print-reorder .reorder-table th:nth-child(1),
  body.print-slow .reorder-table th:nth-child(1),
  body.print-stock .reorder-table td:nth-child(1),
  body.print-reorder .reorder-table td:nth-child(1),
  body.print-slow .reorder-table td:nth-child(1) {
    width: 21mm;
  }

  body.print-stock .reorder-table th:nth-child(2),
  body.print-reorder .reorder-table th:nth-child(2),
  body.print-slow .reorder-table th:nth-child(2),
  body.print-stock .reorder-table td:nth-child(2),
  body.print-reorder .reorder-table td:nth-child(2),
  body.print-slow .reorder-table td:nth-child(2) {
    width: 23mm;
  }

  body.print-stock .reorder-table th:nth-child(3),
  body.print-reorder .reorder-table th:nth-child(3),
  body.print-slow .reorder-table th:nth-child(3),
  body.print-stock .reorder-table td:nth-child(3),
  body.print-reorder .reorder-table td:nth-child(3),
  body.print-slow .reorder-table td:nth-child(3) {
    padding-left: 2mm;
  }

  body.print-stock .reorder-table th:nth-child(4),
  body.print-reorder .reorder-table th:nth-child(4),
  body.print-slow .reorder-table th:nth-child(4),
  body.print-stock .reorder-table td:nth-child(4),
  body.print-reorder .reorder-table td:nth-child(4),
  body.print-slow .reorder-table td:nth-child(4) {
    width: 13mm;
    text-align: center;
  }

  body.print-stock .reorder-table th:nth-child(5),
  body.print-reorder .reorder-table th:nth-child(5),
  body.print-slow .reorder-table th:nth-child(5),
  body.print-stock .reorder-table td:nth-child(5),
  body.print-reorder .reorder-table td:nth-child(5),
  body.print-slow .reorder-table td:nth-child(5),
  body.print-stock .reorder-table th:nth-child(6),
  body.print-reorder .reorder-table th:nth-child(6),
  body.print-slow .reorder-table th:nth-child(6),
  body.print-stock .reorder-table td:nth-child(6),
  body.print-reorder .reorder-table td:nth-child(6),
  body.print-slow .reorder-table td:nth-child(6) {
    width: 16mm;
  }

  body.print-stock .reorder-table th:nth-child(7),
  body.print-reorder .reorder-table th:nth-child(7),
  body.print-slow .reorder-table th:nth-child(7),
  body.print-stock .reorder-table td:nth-child(7),
  body.print-reorder .reorder-table td:nth-child(7),
  body.print-slow .reorder-table td:nth-child(7) {
    width: 20mm;
  }

  body.print-stock .reorder-table .sku-photo,
  body.print-reorder .reorder-table .sku-photo,
  body.print-slow .reorder-table .sku-photo {
    width: 21mm;
    height: 16mm;
  }

  body.print-slow .slow-percent strong {
    font-size: 7pt;
  }

  body.print-slow .slow-balance strong,
  body.print-slow .slow-last-ctn {
    font-size: 9pt;
    font-weight: 950;
  }

  body.print-slow .slow-balance span {
    margin-top: 0.2mm;
    font-size: 5pt;
  }

  body.print-stock .reorder-request-input,
  body.print-reorder .reorder-request-input {
    width: 18mm;
    min-height: 8mm;
    border-radius: 3px;
    padding: 1mm;
    font-size: 8pt;
  }

  body.print-reorder .reorder-balance-total strong,
  body.print-stock .reorder-balance-total strong {
    font-size: 8.5pt;
  }

  body.print-reorder .reorder-balance-total span,
  body.print-stock .reorder-balance-total span {
    margin-top: 0.2mm;
    font-size: 4.8pt;
  }

  body.print-stock .reorder-age-cell strong,
  body.print-reorder .reorder-age-cell strong,
  body.print-slow .reorder-age-cell strong {
    min-width: auto;
    font-size: 8pt;
  }

  body.print-stock .reorder-age-cell span,
  body.print-reorder .reorder-age-cell span,
  body.print-slow .reorder-age-cell span {
    margin-left: 0.6mm;
    padding: 0.4mm 1mm;
    font-size: 4.8pt;
  }

  body.print-sku .sku-report {
    width: 194mm;
    max-width: 194mm;
    overflow: visible;
    border: 0;
    border-radius: 0;
  }

  body.print-sku .sku-head {
    display: grid;
    grid-template-columns: 54mm 1fr;
    align-items: center;
    gap: 5mm;
    padding: 0 0 4mm;
    border-bottom: 2.5pt solid #7bd21d;
  }

  body.print-sku .sku-head img {
    width: 52mm;
    height: 22mm;
  }

  body.print-sku .sku-head h2 {
    font-size: 18pt;
  }

  body.print-sku .sku-head p {
    font-size: 8pt;
  }

  body.print-sku .sku-meta {
    grid-template-columns: repeat(3, 1fr);
    gap: 2mm;
    padding: 3mm 0 2.5mm;
    border-bottom: 0;
    background: transparent;
  }

  body.print-sku .sku-meta div {
    border-left: 1.4pt solid #7bd21d;
    border-radius: 4px;
    padding: 1.4mm 1.8mm;
    background: #f7faf5 !important;
  }

  body.print-sku .sku-meta span {
    font-size: 5.8pt;
  }

  body.print-sku .sku-meta strong {
    font-size: 8pt;
  }

  body.print-sku .sku-table {
    width: 100%;
    min-width: 0;
    max-width: 194mm;
    table-layout: fixed;
  }

  body.print-sku .sku-table th,
  body.print-sku .sku-table td {
    padding: 1.35mm 0.6mm;
    font-size: 7pt;
    line-height: 1.15;
    vertical-align: middle;
  }

  body.print-sku .sku-table th {
    border-bottom: 1.2pt solid #7bd21d;
    background: #f3f8ef !important;
    font-size: 6.5pt;
  }

  body.print-sku .sku-photo {
    width: 17mm;
    height: 17mm;
    border-radius: 3px;
  }

  body.print-sku .sku-table th:nth-child(1),
  body.print-sku .sku-table td:nth-child(1) {
    width: 18mm;
  }

  body.print-sku .sku-table th:nth-child(2),
  body.print-sku .sku-table td:nth-child(2) {
    width: 27mm;
  }

  body.print-sku .sku-table th:nth-child(3),
  body.print-sku .sku-table td:nth-child(3) {
    width: 32mm;
  }

  body.print-sku .sku-table th:nth-child(4),
  body.print-sku .sku-table td:nth-child(4) {
    width: 19mm;
  }

  body.print-sku .sku-table th:nth-child(5),
  body.print-sku .sku-table td:nth-child(5) {
    width: 22mm;
  }

  body.print-sku .sku-table th:nth-child(6),
  body.print-sku .sku-table td:nth-child(6),
  body.print-sku .sku-table th:nth-child(7),
  body.print-sku .sku-table td:nth-child(7) {
    width: 31mm;
    text-align: center;
  }

  body.print-sku .sku-input {
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent !important;
    font-size: 8.4pt;
  }

  body.print-sku .sku-code-input {
    font-size: 8.9pt;
    font-weight: 950;
    min-width: 0;
    text-align: center;
  }

  body.print-sku .sku-price-input {
    font-size: 9.8pt;
    font-weight: 950;
    min-width: 0;
    text-align: center;
  }

  body.print-sku .sku-desc strong,
  body.print-sku .sku-desc-input {
    font-size: 7.7pt;
    line-height: 1.05;
    font-weight: 950;
    text-align: left;
    text-transform: uppercase;
  }

  body.print-sku .sku-desc span {
    font-size: 6.1pt;
    line-height: 1.05;
  }

  body.print-sku .total-plan {
    grid-template-columns: 8mm 1fr;
    gap: 0.35mm;
    max-width: 18.5mm;
    margin: 0 auto;
  }

  body.print-sku .total-ctn-badge {
    min-height: 7.4mm;
    border: 1.2pt solid #20b8c7;
    border-radius: 3px;
    background: #effdff !important;
    place-items: center;
    align-content: center;
  }

  body.print-sku .total-ctn-badge strong {
    color: #087e8b;
    font-size: 8pt;
    font-weight: 950;
  }

  body.print-sku .total-ctn-badge em {
    color: #087e8b;
    font-size: 4.4pt;
    font-weight: 500;
  }

  body.print-sku .sku-total-input {
    width: 8.5mm;
    min-width: 0;
    font-size: 8pt;
    font-weight: 900;
    text-align: right;
  }

  body.print-sku .total-units em,
  body.print-sku .sku-unit-select {
    min-width: 0;
    width: auto;
    color: #687066;
    font-size: 4.8pt;
    font-weight: 400;
    letter-spacing: 0.04em;
    text-align: center;
  }

  body.print-sku .branch-plan {
    grid-template-columns: 8.8mm minmax(11mm, 1fr);
    gap: 0.35mm;
    max-width: 22mm;
    margin: 0 auto;
    padding: 0.35mm;
    border: 0.8pt solid rgba(123, 210, 29, 0.65);
    border-radius: 3.5px;
    background: #fbfff8 !important;
  }

  body.print-sku .branch-plan label {
    display: grid;
    place-items: center;
    align-content: center;
    min-height: 7.4mm;
    border: 0;
    border-right: 0.8pt solid rgba(47, 143, 0, 0.25);
    border-radius: 2.5px 0 0 2.5px;
    background: #effde7 !important;
  }

  body.print-sku .branch-ctn-input {
    color: #2f8f00;
    font-size: 8pt;
    font-weight: 950;
  }

  body.print-sku .branch-plan label span {
    font-size: 4.5pt;
    font-weight: 500;
  }

  body.print-sku .branch-plan .qty-plan-input {
    min-height: 7.4mm;
    min-width: 11mm;
    text-align: center;
    font-size: 8.2pt;
    font-weight: 950;
  }

  body.print-unloading .unload-sheet {
    overflow: visible;
    border: 0;
    border-radius: 0;
  }

  body.print-unloading .unload-sheet > .unload-head,
  body.print-unloading .unload-sheet > .unload-table,
  body.print-unloading .unload-sheet > .unload-summary {
    display: none !important;
  }

  body.print-unloading .unload-print-pages {
    display: block;
    width: 194mm;
    max-width: 194mm;
    overflow: hidden;
  }

  body.print-unloading .unload-print-page {
    position: relative;
    width: 194mm;
    max-width: 194mm;
    height: auto;
    min-height: 0;
    padding-bottom: 5mm;
    page-break-after: always;
    page-break-inside: avoid;
    overflow: visible;
  }

  body.print-unloading .unload-print-page:last-child {
    page-break-after: auto;
  }

  body.print-unloading .unload-head {
    display: grid;
    grid-template-columns: 52mm 1fr 52mm;
    align-items: center;
    gap: 4mm;
    padding: 0 0 4mm;
    border-bottom: 2.5pt solid #7bd21d;
  }

  body.print-unloading .unload-head img {
    width: 50mm;
    height: 21mm;
  }

  body.print-unloading .unload-head h2 {
    font-size: 18.5pt;
    font-weight: 750;
    text-align: center;
  }

  body.print-unloading .unload-info-cards {
    gap: 1.5mm;
    width: 39mm;
    justify-self: end;
  }

  body.print-unloading .unload-info-card {
    border-left: 1.4pt solid #7bd21d;
    border-radius: 4px;
    padding: 1.6mm 2mm;
  }

  body.print-unloading .unload-info-card span {
    font-size: 5.8pt;
  }

  body.print-unloading .unload-info-card strong {
    font-size: 8.4pt;
  }

  body.print-unloading .unload-table th,
  body.print-unloading .unload-table td {
    border: 0.45pt solid #bfc5bd;
    padding: 1.9mm 1.6mm;
    font-size: 8.2pt;
    line-height: 1.18;
  }

  body.print-unloading .unload-table th {
    background: #f3f8ef !important;
    border-bottom: 1.2pt solid #7bd21d;
    text-transform: uppercase;
    text-align: center;
    font-size: 7.4pt;
    font-weight: 700;
  }

  body.print-unloading .unload-table .branch-col,
  body.print-unloading .mark-space {
    width: 37mm;
  }

  body.print-unloading .mark-space {
    height: 10.2mm;
    background: #fff;
  }

  body.print-unloading .unload-table th:nth-child(4),
  body.print-unloading .unload-table td:nth-child(4) {
    width: 16mm;
  }

  body.print-unloading .unload-table th:nth-child(5),
  body.print-unloading .unload-table td:nth-child(5) {
    width: 54mm;
  }

  body.print-unloading .unload-table th:nth-child(3),
  body.print-unloading .unload-table td:nth-child(3) {
    width: 25mm;
    text-align: center;
  }

  body.print-unloading .unload-table th:nth-child(4),
  body.print-unloading .unload-table td:nth-child(4) {
    text-align: center;
  }

  body.print-unloading .unload-page-number {
    position: static;
    margin-top: 3mm;
    border-top: 0.35pt solid #d2d8cf;
    padding-top: 1.5mm;
    color: #8a9186;
    font-size: 6.8pt;
    font-weight: 750;
    text-align: right;
  }

  body.print-unloading .unload-powered-by {
    position: static;
    justify-content: flex-end;
    margin-top: 2mm;
    display: flex !important;
    align-items: center;
    gap: 2mm;
    color: #7c8378;
    font-size: 6.8pt;
    font-weight: 700;
  }

  body.print-unloading .unload-powered-by img {
    width: 28mm;
    height: 10mm;
    object-fit: contain;
  }

  body.print-unloading .unload-powered-by .zylon-qr {
    width: 10mm;
    height: 10mm;
    padding: 0.8mm;
    border-radius: 2mm;
    background: #fff;
    object-fit: contain;
  }

  body.print-unloading .unload-summary {
    position: static;
    margin-top: 2mm;
    display: flex;
    justify-content: flex-start;
    gap: 2mm;
    padding: 0;
  }

  body.print-unloading .unload-summary-card {
    min-width: 26mm;
    border-left: 1.4pt solid #7bd21d;
    border-radius: 4px;
    padding: 1.5mm 2mm;
    box-shadow: inset 0 0 0 0.35pt #dbe5d7;
  }

  body.print-unloading .unload-summary-card span {
    font-size: 5.8pt;
  }

  body.print-unloading .unload-summary-card strong {
    margin-top: 0.4mm;
    font-size: 9pt;
  }

  .print-page {
    position: relative;
    width: 194mm;
    max-width: 194mm;
    height: auto;
    min-height: 0;
    padding-bottom: 5mm;
    page-break-after: always;
    page-break-inside: avoid;
    overflow: visible;
  }

  .print-page:last-child {
    page-break-after: auto;
  }

  .print-page::before {
    content: "";
    position: absolute;
    inset: 20mm 0 10mm;
    z-index: -1;
    background: url("/assets/warehouse-world-watermark-ring.png") center 42% / 88mm auto no-repeat;
    opacity: 0.045;
  }

  .print-page-head {
    display: grid;
    grid-template-columns: 58mm 1fr 34mm;
    align-items: center;
    gap: 5mm;
    padding: 0 0 4.2mm;
    border-bottom: 2.5pt solid #7bd21d;
  }

  .print-page-head img {
    width: 57mm;
    height: 26mm;
    object-fit: contain;
    object-position: left center;
  }

  .print-page-head h2 {
    margin: 0;
    color: #111;
    font-family: "Aptos Display", Aptos, "Segoe UI", Arial, sans-serif;
    font-size: 23pt;
    font-weight: 900;
    letter-spacing: 0.01em;
  }

  .print-info-cards {
    display: grid;
    gap: 2.4mm;
    justify-self: end;
    width: 32mm;
  }

  .print-info-card {
    border-left: 1.7pt solid #7bd21d;
    border-radius: 5px;
    background: #fbfdf9 !important;
    padding: 1.8mm 2.2mm;
  }

  .print-info-card span {
    display: block;
    color: #333;
    font-size: 5.8pt;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .print-info-card strong {
    display: block;
    margin-top: 0.7mm;
    color: #111;
    font-size: 8pt;
    font-weight: 900;
  }

  th,
  td {
    border: 0;
    border-bottom: 0.45pt solid #bfc5bd;
    padding: 1.7mm 1.6mm;
    font-size: 8.4pt;
    line-height: 1.2;
    vertical-align: middle;
  }

  table {
    width: 100%;
    max-width: 100%;
    table-layout: fixed;
    page-break-inside: auto;
    border-collapse: collapse;
  }

  tr {
    page-break-inside: avoid;
  }

  thead {
    display: table-header-group;
  }

  th {
    border-bottom: 1.2pt solid #7bd21d;
    color: #20251f;
    background: #f3f8ef !important;
    font-size: 7.2pt;
    padding-top: 2.2mm;
    padding-bottom: 2.2mm;
  }

  .invoice-head {
    display: grid;
    grid-template-columns: 61mm 1fr;
    align-items: center;
    padding: 0 0 6mm;
    border-bottom-width: 2.5pt;
    gap: 6mm;
  }

  .invoice-head img {
    width: 57mm;
    height: 26mm;
  }

  .invoice-head h2 {
    margin-bottom: 0;
    color: #111;
    font-family: "Aptos Display", Aptos, "Segoe UI", Arial, sans-serif;
    font-size: 23pt;
    font-weight: 900;
    letter-spacing: 0.01em;
  }

  .invoice-head p,
  .formula-note,
  .optional-col,
  .hs-col,
  .nett-col,
  .duty-col,
  .summary {
    display: none !important;
  }

  .hs-summary {
    margin: 2.4mm 0 2mm;
    padding: 2mm;
    border: 0.8pt solid #d6e5cf;
    border-radius: 4px;
    background: #fbfff8 !important;
  }

  .hs-summary > div:first-child {
    margin-bottom: 1.5mm;
  }

  .hs-summary > div:first-child span {
    font-size: 7.2pt;
    letter-spacing: 0.06em;
  }

  .hs-summary > div:first-child strong {
    font-size: 8.4pt;
  }

  .report-total-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1mm;
    margin-bottom: 1.6mm;
  }

  .report-total-grid article {
    gap: 0.4mm;
    padding: 1.4mm 1.6mm;
    border: 0.8pt solid #d6e5cf;
    border-left: 2pt solid #7bd21d;
    border-radius: 3px;
    background: #fff !important;
  }

  .report-total-grid article span {
    font-size: 6pt;
  }

  .report-total-grid article strong {
    font-size: 8.8pt;
  }

  .hs-summary-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1mm;
  }

  .hs-summary-grid article {
    grid-template-columns: 1fr;
    gap: 0.5mm;
    padding: 1.35mm 1.45mm;
    border-radius: 3px;
    break-inside: avoid;
  }

  .hs-summary-grid article strong {
    font-size: 8.8pt;
  }

  .hs-summary-grid article span,
  .hs-summary-grid article em {
    font-size: 6.6pt;
  }

  .price-row-input {
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent !important;
    color: #111;
    font: inherit;
    text-align: inherit;
  }

  .unit-input-wrap {
    display: block;
    min-width: 0;
    border: 0;
    border-radius: 0;
    background: transparent !important;
  }

  .unit-input-wrap span {
    display: block;
    min-width: 0;
    margin-top: 0.8mm;
    padding: 0;
    border: 0;
    color: #5c6359;
    background: transparent !important;
    font-size: 6.4pt;
    font-weight: 800;
    letter-spacing: 0.06em;
  }

  .meta {
    grid-template-columns: 1.35fr 0.65fr 0.7fr;
    gap: 2mm;
    padding: 4mm 0 2.4mm;
    border-bottom: 0;
    background: transparent;
  }

  .meta div:nth-child(3) {
    display: none;
  }

  .meta div {
    border: 0;
    border-left: 1.5pt solid #7bd21d;
    border-radius: 5px;
    padding: 1.8mm 2mm;
    background: #f7faf5;
  }

  .meta span {
    font-size: 6.8pt;
  }

  .desc strong {
    font-size: 8.4pt;
    line-height: 1.22;
  }

  .mark-code {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: 0;
    white-space: nowrap;
    font-size: 8.4pt;
    font-weight: 900;
    color: #111;
  }

  .price-check-wrap {
    display: none !important;
  }

  .mark-code strong {
    overflow: visible;
    text-overflow: clip;
  }

  .mark-code,
  .desc,
  .qty-col,
  .price-col {
    box-shadow: inset 1.4pt 0 0 #7bd21d;
    padding-left: 1.5mm;
  }

  .qty-col {
    text-align: center;
    width: 16mm;
  }

  .qty-col strong,
  .qty-col .qty-input {
    display: inline-block;
    font-size: 10.8pt;
    font-weight: 950;
    line-height: 1;
    text-align: right;
  }

  .price-col strong {
    font-size: 10.8pt;
    font-weight: 950;
    line-height: 1;
  }

  .price-col {
    width: 24mm;
  }

  th:nth-child(1),
  td:nth-child(1) {
    width: 24mm;
  }

  th:nth-child(2),
  td:nth-child(2) {
    width: 8mm;
  }

  th:nth-child(3),
  td:nth-child(3) {
    width: 21mm;
  }

  th:nth-child(4),
  td:nth-child(4) {
    width: 58mm;
  }

  th:nth-child(6),
  td:nth-child(6) {
    width: 15mm;
  }

  th:nth-child(11),
  td:nth-child(11) {
    width: 22mm;
  }

  .item-photo {
    width: 20mm;
    height: 16.5mm;
    object-fit: contain;
    border: 0;
    border-radius: 3px;
    box-shadow: 0 0 0 0.4pt #d2d8cf;
  }

  .remarks-col {
    width: 28mm;
    text-align: center;
  }

  .remarks-box {
    width: 100%;
    min-height: 8mm;
    border: 0.55pt solid #bfc5bd;
    border-radius: 2px;
    background: transparent;
  }

  tbody tr:nth-child(even) {
    background: rgba(247, 250, 245, 0.55);
  }

  .empty {
    display: none;
  }

  .powered-by {
    position: static;
    justify-content: flex-end;
    margin-top: 6mm;
    display: flex;
    gap: 2mm;
    padding: 0;
    color: #7c8378;
    font-size: 6.8pt;
  }

  .print-powered-by {
    display: flex !important;
  }

  .powered-by img {
    width: 28mm;
    height: 10mm;
  }

  .print-page-footer {
    display: none;
  }

  .page-number {
    position: static;
    margin-top: 3mm;
    border-top: 0.35pt solid #d2d8cf;
    padding-top: 1.5mm;
    color: #8a9186;
    font-size: 6.8pt;
    font-weight: 750;
    text-align: right;
  }
}

/* A-Z Help Center */
.quick-help-modal .help-center-dialog {
  width: min(760px, calc(100vw - 24px));
  max-height: calc(100vh - 28px);
  padding: 24px;
  overflow: auto;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(76, 212, 24, 0.55);
  border-radius: 12px;
}

.quick-help-modal .help-center-hero,
.quick-help-modal .help-center-actions,
.quick-help-modal .help-chip-row,
.quick-help-modal .help-card-grid,
.quick-help-modal .help-booklet-preview,
.quick-help-modal .help-final-note {
  display: none !important;
}

.quick-manual-content {
  display: block;
}

.help-center-dialog {
  width: min(1220px, 96vw);
  padding: 0;
  overflow: auto;
  background: #f7fbff;
}

.help-center-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 22px 72px 22px 24px;
  color: #fff;
  border-radius: 18px 18px 0 0;
  border-bottom: 5px solid #ffe600;
  background:
    radial-gradient(circle at 82% 16%, rgba(123, 210, 29, 0.28), transparent 20rem),
    linear-gradient(135deg, #073a78, #0b56a6 58%, #1077c9);
}

.help-center-brand {
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.help-center-brand img {
  width: 124px;
  max-height: 86px;
  object-fit: contain;
  padding: 8px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.95);
}

.help-center-brand h2 {
  margin: 2px 0 6px;
  color: #fff;
  font-size: clamp(1.8rem, 3.2vw, 2.8rem);
}

.help-center-brand span,
.help-powered-card span {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
}

.help-powered-card {
  display: grid;
  grid-template-columns: 120px 62px;
  gap: 8px 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(255, 230, 0, 0.34);
  border-radius: 14px;
  background: rgba(4, 31, 72, 0.42);
}

.help-powered-card span {
  grid-column: 1 / -1;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.help-powered-card img:not(.help-qr) {
  width: 120px;
  max-height: 44px;
  object-fit: contain;
  padding: 5px;
  border-radius: 8px;
  background: #fff;
}

.help-qr {
  width: 62px;
  height: 62px;
  object-fit: contain;
  padding: 4px;
  border-radius: 8px;
  background: #fff;
}

.help-center-actions {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto auto;
  gap: 10px;
  align-items: center;
  padding: 16px 24px;
  background: #fff;
  border-bottom: 1px solid #d9e6f5;
}

.help-search {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid #c9d9ee;
  border-radius: 12px;
  background: #f8fbff;
}

.help-search span {
  color: #0b56a6;
  font-weight: 950;
}

.help-search input {
  border: 0;
  outline: 0;
  background: transparent;
  font-weight: 800;
}

.help-primary-btn,
.help-soft-btn {
  min-height: 46px;
  padding: 0 18px;
  border-radius: 12px;
  font-weight: 950;
}

.help-primary-btn {
  color: #fff;
  border: 0;
  background: linear-gradient(135deg, #074c9a, #0a78c6);
  box-shadow: 0 14px 30px rgba(7, 76, 154, 0.18);
}

.help-soft-btn {
  color: #073a78;
  border: 1px solid #bdd2ee;
  background: #fff;
}

.help-chip-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 14px 24px;
  background: #f2f7ff;
}

.help-chip-row button {
  min-height: 34px;
  padding: 0 15px;
  color: #0b3767;
  border: 1px solid #c9d9ee;
  border-radius: 999px;
  background: #fff;
  font-size: 0.82rem;
  font-weight: 900;
}

.help-chip-row button.active {
  color: #fff;
  border-color: #0b56a6;
  background: #0b56a6;
}

.help-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 24px;
}

.help-guide-card {
  position: relative;
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) minmax(170px, 0.7fr);
  gap: 14px;
  align-items: start;
  min-height: 250px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid #d3e2f3;
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0, rgba(123, 210, 29, 0.11), transparent 14rem),
    #fff;
  box-shadow: 0 18px 40px rgba(28, 64, 115, 0.08);
}

.help-card-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  color: #fff;
  background: #0b56a6;
  font-weight: 950;
  box-shadow: 0 14px 28px rgba(11, 86, 166, 0.2);
}

.help-card-icon.green { background: #4aa80d; }
.help-card-icon.blue { background: #0b7fd3; }
.help-card-icon.yellow { color: #0b3767; background: #ffe600; }
.help-card-icon.cyan { background: #12a8d8; }
.help-card-icon.phone { background: #53c51d; }
.help-card-icon.red { background: #e53935; }

.help-guide-card small {
  color: #0b56a6;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.help-guide-card h3 {
  margin: 8px 0 10px;
  color: #09213d;
  font-size: 1.22rem;
}

.help-guide-card ol {
  margin: 0;
  padding-left: 18px;
  color: #455b76;
  line-height: 1.55;
}

.help-mini-screen {
  align-self: stretch;
  display: grid;
  align-content: center;
  gap: 8px;
  min-height: 170px;
  padding: 16px;
  border-radius: 16px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(5, 43, 91, 0.92), rgba(11, 86, 166, 0.85)),
    radial-gradient(circle at top right, rgba(255, 230, 0, 0.24), transparent 8rem);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.help-mini-screen b {
  font-size: 1.05rem;
}

.help-booklet-preview {
  display: grid;
  gap: 18px;
  padding: 24px;
  background: #eef6ff;
}

.booklet-page {
  min-height: 720px;
  padding: 34px;
  border: 1px solid #cde0f4;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(18, 53, 88, 0.08);
}

.help-cover-page {
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  color: #09213d;
  background:
    radial-gradient(circle at top right, rgba(123, 210, 29, 0.18), transparent 20rem),
    linear-gradient(160deg, #fff, #eef7ff);
}

.help-cover-page img {
  width: min(420px, 76%);
  max-height: 160px;
  object-fit: contain;
}

.booklet-cover-mark {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  margin-bottom: 18px;
  color: #fff;
  border-radius: 20px;
  background: #0b56a6;
  font-size: 1.45rem;
  font-weight: 950;
}

.help-cover-page h1 {
  max-width: 780px;
  margin: 12px 0 8px;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 1.05;
}

.help-cover-page h2 {
  color: #4aa80d;
}

.booklet-cover-modules {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 24px 0;
}

.booklet-cover-modules span {
  padding: 8px 14px;
  border-radius: 999px;
  background: #eaf8dd;
  color: #245704;
  font-weight: 900;
}

.booklet-flow {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.booklet-flow div,
.booklet-button-grid div {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid #dbe8f6;
  border-radius: 14px;
  background: #f8fbff;
}

.booklet-flow b {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  color: #fff;
  background: #0b7fd3;
}

.booklet-flow strong,
.booklet-button-grid strong {
  color: #09213d;
}

.booklet-flow span,
.booklet-button-grid span {
  color: #536477;
}

.booklet-tip {
  margin-top: 18px;
  padding: 14px;
  border-left: 5px solid #7bd21d;
  border-radius: 12px;
  background: #f1faeb;
  font-weight: 800;
}

.booklet-button-grid {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.booklet-button-grid div {
  grid-template-columns: minmax(160px, 0.42fr) minmax(0, 1fr);
}

.guided-tutorial-card {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 140;
  width: min(520px, calc(100vw - 28px));
  padding: 20px;
  border: 2px solid #ffe600;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(7, 50, 98, 0.22);
  transform: translateX(-50%);
}

.guided-progress {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2edf8;
}

.guided-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0b56a6, #7bd21d);
  transition: width 0.25s ease;
}

.guided-step-pill {
  display: inline-grid;
  place-items: center;
  min-height: 34px;
  margin-top: 16px;
  padding: 0 14px;
  border-radius: 999px;
  color: #fff;
  background: #0b56a6;
  font-weight: 950;
}

.guided-tutorial-card h3 {
  margin: 12px 0 6px;
  color: #09213d;
}

.guided-tutorial-card p {
  color: #4a5e72;
  line-height: 1.5;
}

.guided-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.guided-focus-target {
  outline: 4px solid rgba(255, 230, 0, 0.9) !important;
  outline-offset: 8px;
  box-shadow: 0 0 0 9999px rgba(3, 28, 55, 0.16) !important;
}

@media (max-width: 820px) {
  #loadLatestMeta {
    display: none;
  }

  .help-center-hero,
  .help-center-actions,
  .help-center-brand,
  .help-guide-card {
    grid-template-columns: 1fr;
  }
  .help-powered-card {
    width: fit-content;
  }
  .help-card-grid {
    grid-template-columns: 1fr;
    padding: 14px;
  }
  .booklet-page {
    min-height: auto;
    padding: 22px;
  }
}

@media print {
  body.print-help .help-modal {
    position: static !important;
    display: block !important;
  }
  body.print-help .help-center-actions,
  body.print-help .help-chip-row,
  body.print-help .help-card-grid,
  body.print-help .help-final-note,
  body.print-help .guided-tutorial-card {
    display: none !important;
  }
  body.print-help .help-center-hero {
    display: none !important;
  }
  body.print-help .help-booklet-preview {
    display: block !important;
    padding: 0 !important;
    background: #fff !important;
  }
  body.print-help .booklet-page {
    min-height: 277mm;
    padding: 10mm;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    break-after: page;
  }
  body.print-help .booklet-page:last-child {
    break-after: auto;
  }
}

/* Final help simplifier: keep the modal light and theme-matched. */
.help-center-dialog {
  width: min(820px, 96vw);
  background:
    radial-gradient(circle at 88% 0, rgba(123, 210, 29, 0.14), transparent 18rem),
    #fbfff8;
}

.help-center-hero {
  border-bottom-color: #52c716;
  background:
    radial-gradient(circle at 82% 12%, rgba(123, 210, 29, 0.28), transparent 16rem),
    linear-gradient(135deg, #0a4f25, #178a38 58%, #0b96c8);
}

.help-center-actions {
  grid-template-columns: 1fr auto auto;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(237, 255, 230, 0.82));
  border-bottom-color: rgba(82, 199, 22, 0.24);
}

.help-search,
.help-chip-row,
.help-card-grid,
.help-booklet-preview,
.help-final-note,
#helpViewBookletBtn {
  display: none !important;
}

.help-center-actions::before {
  content: "Quick help: 1. Open History or start a new container. 2. Build Unloading if packing list is available. 3. Upload invoice and build Price Idea. 4. Build SKU & Branch, import ERP SKU if needed, then save. 5. Build Stock View and open Mobile Stock.";
  display: block;
  min-height: 46px;
  padding: 13px 15px 13px 18px;
  border-left: 5px solid #52c716;
  border-radius: 12px;
  color: #1d3516;
  background: rgba(239, 255, 232, 0.96);
  font-weight: 850;
  line-height: 1.45;
  box-shadow: 0 10px 24px rgba(82, 199, 22, 0.12);
}

.help-primary-btn {
  background: linear-gradient(135deg, #3d9b08, #52c716);
}

.help-soft-btn {
  color: #075f94;
  border-color: rgba(0, 147, 221, 0.32);
  background: linear-gradient(135deg, #fff, rgba(224, 247, 255, 0.84));
}
