.np-kicker {
  margin: 0;
  color: var(--np-primary-strong);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Navigation context, batch content, and validation */
.np-context-bar { min-height:52px; display:flex; align-items:center; justify-content:space-between; gap:14px; margin-bottom:12px; padding:8px 12px; background:rgba(255,255,255,.86); border:1px solid var(--np-border); border-radius:14px; backdrop-filter:blur(14px); }
.np-breadcrumbs,.np-breadcrumbs a,.np-breadcrumbs>span,.np-breadcrumbs>span>span,.np-smart-shortcuts { min-width:0; display:flex; align-items:center; gap:7px; }
.np-breadcrumbs { overflow:hidden; color:var(--np-text-muted); font-size:.84rem; }
.np-breadcrumbs a { color:var(--np-text-soft); font-weight:680; }
.np-breadcrumbs>i,.np-breadcrumbs>span>i { color:#9aa9bc; font-size:.7rem; }
.np-breadcrumbs strong,#npBreadcrumbPage { overflow:hidden; color:var(--np-text); font-weight:740; text-overflow:ellipsis; white-space:nowrap; }
.np-smart-shortcuts a { min-height:34px; display:inline-flex; align-items:center; gap:7px; padding:0 10px; color:var(--np-text-soft); font-size:.78rem; font-weight:700; white-space:nowrap; background:#fff; border:1px solid var(--np-border); border-radius:10px; }
.np-smart-shortcuts a i { color:var(--np-accent); }

.np-production-content-card { display:grid; gap:16px; margin-bottom:16px; padding:18px; background:linear-gradient(135deg,#fff 0%,#f7f8ff 100%); border:1px solid rgba(99,91,255,.2); border-radius:18px; box-shadow:0 9px 28px rgba(24,37,59,.06); }
.np-production-content-heading { display:flex; align-items:center; justify-content:space-between; gap:14px; }
.np-production-content-heading h3 { margin:4px 0 0; font-size:1.15rem; }
.np-production-content-grid { display:grid; grid-template-columns:minmax(0,1.5fr) minmax(180px,.8fr) minmax(170px,.7fr); gap:12px; }
.np-quantity-stepper { min-height:48px; display:grid; grid-template-columns:46px minmax(0,1fr) 46px; overflow:hidden; background:#fff; border:1px solid var(--np-border-strong); border-radius:11px; }
.np-quantity-stepper button { display:grid; place-items:center; color:var(--np-accent); background:var(--np-accent-soft); border:0; }
.np-quantity-stepper button:first-child { border-right:1px solid var(--np-border); }
.np-quantity-stepper button:last-child { border-left:1px solid var(--np-border); }
.np-field .np-quantity-stepper input { min-height:46px; text-align:center; border:0; border-radius:0; box-shadow:none; }
.np-quantity-stepper:focus-within { border-color:var(--np-accent); box-shadow:0 0 0 3px rgba(99,91,255,.1); }
.np-production-content-lock { margin:0; padding:10px 12px; color:var(--np-text-muted); font-size:.82rem; background:var(--np-surface-2); border-radius:10px; }
.np-production-content-lock i { margin-right:6px; color:var(--np-accent); }

.np-field input.is-invalid,.np-field select.is-invalid,.np-receiving-search input.is-invalid { border-color:var(--np-danger)!important; box-shadow:0 0 0 3px rgba(223,27,65,.1)!important; }
.np-receiving-search:has(input.is-invalid) { border-color:var(--np-danger); box-shadow:0 0 0 3px rgba(223,27,65,.1); }
.np-receiving-search input.is-invalid { border:0!important; box-shadow:none!important; }
.np-field-error { display:flex!important; align-items:flex-start; gap:6px; color:#a31332!important; font-size:.78rem!important; font-weight:680!important; line-height:1.35; }
.np-field-error i { margin-top:1px; color:var(--np-danger); }
.np-production-panel { display:flex; flex-direction:column; }
.np-production-panel>.np-panel-header { order:0; }
.np-production-panel>.np-panel-top-alert { order:1; }
.np-production-panel>.np-workspace-grid { order:2; }
.np-production-panel>.np-workflow { order:3; }
.np-production-panel>.np-recent-batches { order:5; }
.np-production-panel>.np-table-wrap,.np-production-panel>.np-mobile-record-list { order:6; }
.np-production-content-card.np-field-wide { margin-bottom:0; }

@media (max-width:767.98px) {
  .np-context-bar { align-items:stretch; flex-direction:column; margin:-2px 0 12px; padding:10px 12px; }
  .np-breadcrumbs { min-height:28px; }
  .np-breadcrumbs a span { display:none; }
  .np-smart-shortcuts { overflow-x:auto; padding-bottom:1px; }
  .np-smart-shortcuts a { min-height:40px; }
  .np-production-content-card { padding:15px; border-radius:17px; }
  .np-production-content-grid { grid-template-columns:1fr; }
  .np-production-content-grid .np-field input,.np-production-content-grid .np-field select { min-height:52px; font-size:1rem; }
  .np-quantity-stepper { min-height:52px; grid-template-columns:52px minmax(0,1fr) 52px; }
  .np-quantity-stepper button { font-size:1.15rem; }
}

.np-brand {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.np-brand-logo-compact {
  width: 106px;
  height: auto;
  display: block;
}

.np-brand-subtle {
  overflow: hidden;
  max-width: 150px;
  color: var(--np-text-muted);
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.np-header h2,
.np-hero h1,
.np-panel h2 {
  margin: 0;
  letter-spacing: -0.02em;
}

.np-header-title {
  display: none;
}

.np-user-meta small,
.np-module-card small,
.np-status-tile span,
.np-mini-label {
  color: var(--np-text-muted);
}

.np-sidebar-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: var(--np-header-height);
  padding: 0 14px;
}

.np-app.is-sidebar-collapsed .np-sidebar-brand {
  justify-content: center;
  padding: 0;
}

.np-app.is-sidebar-collapsed .np-brand {
  display: none;
}

.np-sidebar-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 22px 10px 8px 14px;
}

.np-sidebar-heading {
  margin: 0;
  color: var(--np-text-muted);
  font-size: 0.72rem;
  font-weight: 650;
}

.np-app.is-sidebar-collapsed .np-sidebar-heading-row,
.np-app.is-sidebar-collapsed .np-sidebar-heading {
  width: 100%;
  height: 1px;
  margin: 12px 0 6px;
  overflow: hidden;
  color: transparent;
  background: var(--np-border);
}

.np-sidebar-heading-action {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  color: var(--np-text-muted);
  background: transparent;
  border: 0;
  border-radius: var(--np-radius-sm);
}

.np-sidebar-heading-action:hover,
.np-sidebar-heading-action:focus-visible {
  color: var(--np-text);
  background: var(--np-surface-3);
  outline: 0;
}

.np-nav {
  display: grid;
  gap: 2px;
  padding: 0 10px;
}

.np-nav-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px;
  align-items: center;
  gap: 2px;
}

.np-nav-item-static {
  grid-template-columns: minmax(0, 1fr);
}

.np-nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 32px;
  padding: 0 8px;
  color: var(--np-text-soft);
  font-size: 0.91rem;
  font-weight: 500;
  border-radius: var(--np-radius-sm);
  outline: 0;
}

.np-app.is-sidebar-collapsed .np-nav {
  padding: 0 8px;
}

.np-app.is-sidebar-collapsed .np-nav-item {
  grid-template-columns: 1fr;
}

.np-app.is-sidebar-collapsed .np-nav-link {
  justify-content: center;
  gap: 0;
  min-height: 38px;
  padding: 0;
}

.np-app.is-sidebar-collapsed .np-nav-link span,
.np-app.is-sidebar-collapsed .np-favorite-button,
.np-app.is-sidebar-collapsed .np-brand-subtle,
.np-app.is-sidebar-collapsed .np-sidebar-system span:not(.np-live-dot) {
  display: none;
}

.np-app.is-sidebar-collapsed .np-nav-link i {
  width: auto;
}

.np-nav-link:focus-visible {
  box-shadow: 0 0 0 3px rgba(99, 91, 255, 0.16);
}

.np-nav-link i {
  width: 18px;
  color: #49627f;
  font-size: 1rem;
  text-align: center;
}

.np-nav-link:hover {
  color: var(--np-text);
  background: #f3f6fa;
}

.np-nav-link.active {
  color: var(--np-accent);
  background: #f7f8ff;
  font-weight: 650;
}

.np-nav-link.active::before {
  position: absolute;
  left: -10px;
  width: 2px;
  height: 18px;
  content: "";
  background: var(--np-accent);
  border-radius: 999px;
}

.np-nav-link.active i {
  color: var(--np-accent);
}

.np-sidebar-footer {
  margin-top: auto;
  padding: 12px 10px 14px;
  display: grid;
  gap: 10px;
}

.np-app.is-sidebar-collapsed .np-sidebar-footer {
  padding: 12px 8px;
}

.np-sidebar-system {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  color: var(--np-text-muted);
  font-size: 0.78rem;
  border-radius: var(--np-radius-sm);
  background: var(--np-surface-2);
}

.np-app.is-sidebar-collapsed .np-sidebar-system {
  justify-content: center;
  padding: 8px 0;
}

.np-favorite-button {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  color: var(--np-text-muted);
  background: transparent;
  border: 0;
  border-radius: var(--np-radius-sm);
}

.np-favorite-button:hover,
.np-favorite-button:focus-visible,
.np-favorite-button.is-favorite {
  color: var(--np-accent);
  background: var(--np-accent-soft);
  outline: 0;
}

.np-nav-item.is-hidden {
  display: none;
}

.np-icon-button,
.np-language-button,
.np-user-button {
  min-width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--np-text-soft);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--np-radius-sm);
}

.np-icon-button:hover,
.np-language-button:hover,
.np-user-button:hover {
  color: var(--np-text);
  background: var(--np-surface-3);
  border-color: var(--np-border);
}

.np-user-button {
  width: auto;
  padding: 0 8px 0 4px;
}

.np-user-avatar {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: #0c1b0a;
  font-size: 0.78rem;
  font-weight: 750;
  background: var(--np-primary);
  border-radius: 999px;
}

.np-user-meta {
  line-height: 1.05;
  text-align: left;
}

.np-user-meta strong {
  max-width: 112px;
  overflow: hidden;
  color: var(--np-text);
  font-size: 0.82rem;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.np-live-dot {
  width: 7px;
  height: 7px;
  display: inline-block;
  background: var(--np-success);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(47, 179, 68, 0.1);
}

.np-global-search,
.np-search {
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--np-text-muted);
  background: var(--np-surface-3);
  border: 1px solid transparent;
  border-radius: var(--np-radius);
}

.np-global-search {
  width: min(360px, 44vw);
  padding: 0 12px;
}

.np-search {
  width: min(620px, 100%);
  min-height: 46px;
  padding: 0 14px;
  background: #ffffff;
  border-color: var(--np-border);
}

.np-global-search input,
.np-search input {
  width: 100%;
  color: var(--np-text);
  background: transparent;
  border: 0;
  outline: 0;
}

.np-global-search:focus-within,
.np-search:focus-within {
  background: #ffffff;
  border-color: #a7c7e7;
  box-shadow: 0 0 0 3px rgba(99, 91, 255, 0.08);
}

.np-global-search input::placeholder,
.np-search input::placeholder {
  color: var(--np-text-muted);
}

.np-hero {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  min-height: 154px;
  padding: 26px 28px;
  border: 1px solid var(--np-border);
  border-radius: var(--np-radius-lg);
  background:
    radial-gradient(circle at 94% 14%, rgba(124, 207, 53, 0.22), transparent 28%),
    radial-gradient(circle at 12% 8%, rgba(99, 91, 255, 0.12), transparent 32%),
    #ffffff;
  box-shadow: 0 1px 2px rgba(24, 37, 59, 0.04);
}

.np-hero h1 {
  max-width: 560px;
  margin-top: 8px;
  color: var(--np-text);
  font-size: clamp(1.7rem, 2.4vw, 2.45rem);
  font-weight: 730;
  line-height: 1.12;
}

.np-hero-copy {
  max-width: 620px;
  margin: 12px 0 0;
  color: var(--np-text-muted);
  font-size: 0.98rem;
  line-height: 1.48;
}

.np-module-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.np-module-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 96px;
  padding: 16px;
  background: #ffffff;
  border: 1px solid var(--np-border);
  border-radius: var(--np-radius);
  box-shadow: 0 1px 2px rgba(24, 37, 59, 0.04);
}

.np-module-card:hover {
  transform: translateY(-1px);
  border-color: var(--np-border-strong);
  box-shadow: 0 12px 30px rgba(24, 37, 59, 0.08);
}

.np-card-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--np-accent);
  background: var(--np-accent-soft);
  border-radius: var(--np-radius);
}

.np-mobile-operations,
.np-mobile-bottom-nav {
  display: none;
}

@media (max-width: 767.98px) {
  .np-header [data-sidebar-toggle] {
    width: 48px;
    min-width: 48px;
    height: 48px;
    color: var(--np-text);
    background: #fff;
    border-color: var(--np-border);
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(24, 37, 59, .08);
  }

  .np-header [data-sidebar-toggle] i {
    font-size: 1.7rem;
    line-height: 1;
  }

  .np-content {
    padding-bottom: calc(94px + env(safe-area-inset-bottom));
  }

  [data-page-panel="home"] > .np-hero,
  [data-page-panel="home"] > .np-module-grid,
  [data-page-panel="home"] > .np-panel {
    display: none;
  }

  .np-mobile-operations {
    display: block;
  }

  .np-mobile-welcome {
    padding: 10px 4px 20px;
  }

  .np-mobile-welcome .np-kicker {
    color: #497f1e;
    font-size: .9rem;
    font-weight: 800;
    letter-spacing: .065em;
  }

  .np-mobile-welcome h1 {
    margin: 6px 0 5px;
    color: var(--np-text);
    font-size: clamp(1.7rem, 8vw, 2.15rem);
    font-weight: 760;
    letter-spacing: -.035em;
  }

  .np-mobile-welcome > p:last-child {
    margin: 0;
    color: var(--np-text-muted);
  }

  .np-mobile-primary-actions {
    display: grid;
    gap: 11px;
  }

  .np-mobile-operation-card {
    width: 100%;
    min-height: 88px;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) 20px;
    align-items: center;
    gap: 14px;
    padding: 14px;
    color: var(--np-text);
    text-align: left;
    background: #fff;
    border: 1px solid var(--np-border);
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(24, 37, 59, .06);
  }

  .np-mobile-operation-card-featured {
    min-height: 104px;
    color: #fff;
    background: linear-gradient(135deg, #635bff 0%, #4d45e8 100%);
    border-color: transparent;
    box-shadow: 0 14px 30px rgba(99, 91, 255, .24);
  }

  .np-mobile-operation-card strong,
  .np-mobile-operation-card small {
    display: block;
  }

  .np-mobile-operation-card strong {
    font-size: 1.05rem;
    font-weight: 730;
  }

  .np-mobile-operation-card small {
    margin-top: 3px;
    color: var(--np-text-muted);
    font-size: .84rem;
    line-height: 1.3;
  }

  .np-mobile-operation-card-featured small,
  .np-mobile-operation-card-featured .np-mobile-operation-chevron {
    color: rgba(255,255,255,.78);
  }

  .np-mobile-operation-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 1.65rem;
    background: var(--np-accent);
    border-radius: 17px;
  }

  .np-mobile-operation-card-featured .np-mobile-operation-icon {
    color: var(--np-accent);
    background: #fff;
  }

  .np-mobile-operation-icon-use { background: #ef8c22; }
  .np-mobile-operation-icon-transfer { background: #168aad; }
  .np-mobile-operation-icon-scan { background: #28965a; }
  .np-mobile-operation-icon-receive { background: #7a52c7; }
  .np-mobile-operation-icon-inventory { background: #3975b7; }
  .np-mobile-operation-icon-orders { background: #94632c; }
  .np-mobile-operation-chevron { color: var(--np-text-muted); }

  .np-mobile-more-section {
    margin-top: 26px;
  }

  .np-mobile-section-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 0 3px 11px;
  }

  .np-mobile-section-heading h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 730;
  }

  .np-mobile-section-heading span {
    color: var(--np-text-muted);
    font-size: .78rem;
  }

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

  .np-mobile-service-grid a,
  .np-mobile-service-grid button {
    min-width: 0;
    min-height: 94px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 9px;
    padding: 10px 4px;
    color: var(--np-text-soft);
    background: #fff;
    border: 1px solid var(--np-border);
    border-radius: 16px;
  }

  .np-mobile-service-grid i { font-size: 1.45rem; color: var(--np-accent); }
  .np-mobile-service-grid span { font-size: .74rem; font-weight: 680; }

  .np-mobile-bottom-nav {
    position: fixed;
    inset: auto 0 0;
    z-index: 1060;
    min-height: 82px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: end;
    padding: 8px 5px calc(9px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.96);
    border-top: 1px solid var(--np-border);
    box-shadow: 0 -8px 26px rgba(24,37,59,.08);
    backdrop-filter: blur(18px);
  }

  .np-mobile-bottom-nav a,
  .np-mobile-bottom-nav button {
    min-width: 0;
    min-height: 58px;
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 5px;
    padding: 2px;
    color: var(--np-text-muted);
    background: transparent;
    border: 0;
  }

  .np-mobile-bottom-nav i { font-size: 1.65rem; }
  .np-mobile-bottom-nav span { font-size: .76rem; font-weight: 720; }
  .np-mobile-bottom-nav .active { color: var(--np-accent); }

  .np-mobile-bottom-nav .np-mobile-scan-button {
    align-self: start;
    color: var(--np-accent);
    transform: translateY(-20px);
  }

  .np-mobile-bottom-nav .np-mobile-scan-button i {
    width: 66px;
    height: 66px;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 1.75rem;
    background: var(--np-accent);
    border: 5px solid #fff;
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(99,91,255,.28);
  }
}

.np-scan-result { display: grid; gap: 14px; }
.np-scan-result-item { display: grid; grid-template-columns: 48px minmax(0,1fr); align-items: center; gap: 12px; padding: 12px; background: var(--np-primary-soft); border: 1px solid rgba(99,185,37,.35); border-radius: 14px; }
.np-scan-result-item strong, .np-scan-result-item small { display: block; }
.np-scan-result-item small { margin-top: 3px; color: var(--np-text-muted); }
.np-scan-result > p { margin: 0; color: var(--np-text-soft); font-weight: 700; }
.np-scan-result-actions { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.np-scan-result-actions button { min-height: 88px; display: grid; place-items: center; align-content: center; gap: 7px; color: var(--np-text); background: #fff; border: 1px solid var(--np-border-strong); border-radius: 14px; }
.np-scan-result-actions button:disabled { opacity: .42; cursor: not-allowed; }
.np-scan-result-actions i { color: var(--np-accent); font-size: 1.55rem; }
.np-scan-result-actions span { font-weight: 740; }
.np-scan-again { width: 100%; min-height: 46px; }
.np-field-help { margin: -2px 0 0; color: var(--np-text-muted); font-size: .78rem; line-height: 1.45; }

/* Operation-first home is shared by phone and desktop. */
[data-page-panel="home"] > .np-hero,
[data-page-panel="home"] > .np-module-grid,
[data-page-panel="home"] > .np-panel {
  display: none;
}

.np-mobile-operations {
  display: block;
}

.np-menu-label-mobile {
  display: none;
}

@media (min-width: 768px) {
  .np-mobile-operations {
    width: min(100%, 960px);
    margin: 20px auto 0;
  }

  .np-mobile-welcome {
    padding: 18px 4px 24px;
  }

  .np-mobile-welcome h1 {
    margin: 7px 0 6px;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 760;
    letter-spacing: -.04em;
  }

  .np-mobile-welcome > p:last-child {
    margin: 0;
    color: var(--np-text-muted);
    font-size: 1rem;
  }

  .np-mobile-primary-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .np-mobile-operation-card {
    width: 100%;
    min-height: 118px;
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr) 22px;
    align-items: center;
    gap: 16px;
    padding: 20px;
    color: var(--np-text);
    text-align: left;
    background: #fff;
    border: 1px solid var(--np-border);
    border-radius: 20px;
    box-shadow: 0 8px 26px rgba(24, 37, 59, .06);
  }

  .np-mobile-operation-card-featured {
    grid-column: 1 / -1;
    min-height: 136px;
    color: #fff;
    background: linear-gradient(135deg, #635bff 0%, #4d45e8 100%);
    border-color: transparent;
    box-shadow: 0 16px 34px rgba(99, 91, 255, .22);
  }

  .np-mobile-operation-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(24, 37, 59, .11);
  }

  .np-mobile-operation-card strong,
  .np-mobile-operation-card small { display: block; }
  .np-mobile-operation-card strong { font-size: 1.08rem; font-weight: 740; }
  .np-mobile-operation-card small { margin-top: 4px; color: var(--np-text-muted); font-size: .86rem; }
  .np-mobile-operation-card-featured small,
  .np-mobile-operation-card-featured .np-mobile-operation-chevron { color: rgba(255, 255, 255, .8); }

  .np-mobile-operation-icon {
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 1.7rem;
    background: var(--np-accent);
    border-radius: 18px;
  }

  .np-mobile-operation-card-featured .np-mobile-operation-icon { color: var(--np-accent); background: #fff; }
  .np-mobile-operation-icon-use { background: #ef8c22; }
  .np-mobile-operation-icon-transfer { background: #168aad; }
  .np-mobile-operation-icon-scan { background: #28965a; }
  .np-mobile-operation-icon-receive { background: #7a52c7; }
  .np-mobile-operation-chevron { color: var(--np-text-muted); }

  .np-mobile-more-section { margin-top: 28px; }
  .np-mobile-section-heading { display: flex; align-items: baseline; justify-content: space-between; padding: 0 3px 12px; }
  .np-mobile-section-heading h2 { margin: 0; font-size: 1.35rem; font-weight: 740; }
  .np-mobile-section-heading span { color: var(--np-text-muted); font-size: .82rem; }
  .np-mobile-service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .np-mobile-service-grid a,
  .np-mobile-service-grid button {
    min-height: 104px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 9px;
    color: var(--np-text-soft);
    background: #fff;
    border: 1px solid var(--np-border);
    border-radius: 18px;
  }
  .np-mobile-service-grid i { color: var(--np-accent); font-size: 1.55rem; }
  .np-mobile-service-grid span { font-size: .82rem; font-weight: 700; }
}

/* Mobile/tablet menu is a task sheet, not a compressed desktop sidebar. */
@media (max-width: 991.98px) {
  .np-sidebar {
    inset: auto 12px 16px;
    width: auto;
    height: auto;
    max-height: calc(100dvh - 32px);
    overflow: auto;
    padding-bottom: 8px;
    background: #f8fafc;
    border: 1px solid rgba(255, 255, 255, .8);
    border-radius: 24px;
    box-shadow: 0 24px 70px rgba(13, 24, 41, .28);
    transform: translateY(calc(100% + 32px));
  }

  .np-sidebar.is-open { transform: translateY(0); }

  .np-sidebar-brand {
    position: sticky;
    top: 0;
    z-index: 2;
    min-height: 76px;
    padding: 0 18px;
    background: rgba(248, 250, 252, .96);
    border-bottom: 1px solid var(--np-border);
    backdrop-filter: blur(16px);
  }

  .np-sidebar-brand [data-sidebar-collapse] { display: none; }
  .np-sidebar-brand [data-sidebar-close] {
    width: 48px;
    min-width: 48px;
    height: 48px;
    display: grid !important;
    place-items: center;
    color: var(--np-text);
    background: #fff;
    border: 1px solid var(--np-border);
    border-radius: 14px;
  }
  .np-sidebar-brand [data-sidebar-close] i { font-size: 1.35rem; }
  .np-brand-logo-compact { width: 108px; }

  .np-sidebar-favorites-heading { display: none; }
  #favoriteNav { padding: 16px 16px 4px; }
  #favoriteNav .np-nav-item:not(.np-nav-item-static) { display: none; }
  #favoriteNav .np-nav-item-static { display: block; }
  #favoriteNav .np-nav-link {
    min-height: 58px;
    padding: 0 16px;
    color: var(--np-text);
    font-size: 1rem;
    background: #fff;
    border: 1px solid var(--np-border);
    border-radius: 16px;
  }
  #favoriteNav .np-nav-link.active::before { display: none; }

  .np-sidebar-modules-heading { margin: 20px 18px 10px; }
  .np-sidebar-modules-heading .np-sidebar-heading { color: var(--np-text); font-size: 1.2rem; font-weight: 760; }
  .np-menu-label-desktop { display: none; }
  .np-menu-label-mobile { display: inline; }

  #moduleNav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 0 16px 12px;
  }

  #moduleNav .np-nav-item,
  #moduleNav .np-nav-item.is-hidden {
    display: block;
  }

  #moduleNav [data-module-key="production"] { order: 1; }
  #moduleNav [data-module-key="receiving"] { order: 2; }
  #moduleNav [data-module-key="transfers"] { order: 3; }
  #moduleNav [data-module-key="inventory"] { order: 4; }
  #moduleNav [data-module-key="orders"] { order: 5; }
  #moduleNav [data-module-key="reports"] { display: none; }

  #moduleNav .np-nav-link {
    min-height: 112px;
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 10px;
    padding: 12px 8px;
    color: var(--np-text-soft);
    font-size: .9rem;
    font-weight: 700;
    text-align: center;
    background: #fff;
    border: 1px solid var(--np-border);
    border-radius: 18px;
    box-shadow: 0 5px 16px rgba(24, 37, 59, .04);
  }

  #moduleNav .np-nav-link i {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    color: var(--np-accent);
    font-size: 1.5rem;
    background: var(--np-accent-soft);
    border-radius: 16px;
  }

  #moduleNav .np-nav-link.active { color: var(--np-accent); background: #fff; border-color: rgba(99, 91, 255, .4); }
  #moduleNav .np-nav-link.active::before { display: none; }
  #moduleNav .np-favorite-button { display: none; }

  .np-sidebar-footer {
    display: none;
  }
}

@media (max-width: 767.98px) {
  .np-sidebar {
    inset: auto 8px calc(82px + env(safe-area-inset-bottom));
    max-height: calc(100dvh - 102px - env(safe-area-inset-bottom));
  }
}

/* Unified simple workspace: cards first on every screen size. */
.np-inventory-panel > .np-table-wrap,
.np-production-panel > .np-table-wrap,
.np-transfer-panel > .np-table-wrap,
.np-receiving-panel > .np-table-wrap,
.np-orders-panel > .np-table-wrap {
  display: none;
}

.np-inventory-panel > .np-mobile-record-list,
.np-production-panel > .np-mobile-record-list,
.np-transfer-panel > .np-mobile-record-list,
.np-receiving-panel > .np-mobile-record-list,
.np-orders-panel > .np-mobile-record-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
}

.np-mobile-record-list > .np-mobile-record-card + .np-mobile-record-card {
  margin-top: 0;
}

.np-mobile-record-card {
  align-content: start;
  border-radius: 16px;
  box-shadow: 0 7px 22px rgba(24, 37, 59, .05);
}

.np-inventory-panel #inventoryColumnsButton {
  display: none;
}

.np-inventory-filters summary,
.np-transfer-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--np-text-soft);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.np-inventory-filters summary::-webkit-details-marker,
.np-transfer-details summary::-webkit-details-marker { display: none; }
.np-inventory-filters summary span,
.np-transfer-details summary span { display: inline-flex; align-items: center; gap: 8px; }
.np-inventory-filters[open] summary,
.np-transfer-details[open] summary { margin-bottom: 10px; }
.np-inventory-filters[open] summary > i,
.np-transfer-details[open] summary > i { transform: rotate(180deg); }

.np-inventory-filters {
  min-width: 230px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--np-border);
  border-radius: 12px;
}

.np-inventory-filters .np-filter-row {
  justify-content: flex-start;
}

.np-task-panel,
.np-inventory-panel,
.np-receiving-panel {
  width: min(100%, 1180px);
  margin: 0 auto;
}

@media (min-width: 1200px) {
  .np-inventory-panel > .np-mobile-record-list,
  .np-orders-panel > .np-mobile-record-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .np-inventory-panel > .np-mobile-record-list,
  .np-production-panel > .np-mobile-record-list,
  .np-transfer-panel > .np-mobile-record-list,
  .np-receiving-panel > .np-mobile-record-list,
  .np-orders-panel > .np-mobile-record-list {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .np-task-panel,
  .np-inventory-panel {
    padding: 16px 12px 88px;
    background: var(--np-bg);
    border: 0;
    box-shadow: none;
  }

  .np-task-panel > .np-panel-header,
  .np-inventory-panel > .np-panel-header {
    padding: 2px 4px 0;
  }

  .np-task-panel > .np-panel-header h2,
  .np-inventory-panel > .np-panel-header h2 {
    font-size: 1.75rem;
  }

  .np-inventory-panel .np-table-toolbar {
    gap: 10px;
  }

  .np-inventory-filters {
    width: 100%;
    padding: 13px 14px;
    border-radius: 13px;
  }

  .np-inventory-filters summary {
    min-height: 32px;
    font-size: .95rem;
  }

  .np-task-panel .np-form-panel,
  .np-task-panel .np-summary-panel {
    overflow: hidden;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(24, 37, 59, .05);
  }

  .np-task-panel .np-form-section {
    padding: 16px;
  }

  .np-task-panel .np-field > span {
    font-size: .86rem;
  }

  .np-task-panel .np-field input,
  .np-task-panel .np-field select {
    min-height: 50px;
    font-size: 1rem;
    border-radius: 11px;
  }

  .np-task-panel .np-form-actions .btn {
    width: 100%;
    min-height: 52px;
    color: #fff;
    font-size: 1rem;
    font-weight: 720;
    background: var(--np-accent);
    border-color: var(--np-accent);
    border-radius: 12px;
  }

  .np-transfer-panel > .np-panel-header .np-panel-actions,
  .np-production-panel > .np-panel-header .np-panel-actions {
    position: fixed;
    right: 10px;
    bottom: calc(102px + env(safe-area-inset-bottom));
    left: 10px;
    z-index: 1055;
    display: flex;
    gap: 8px;
    padding: 9px;
    background: rgba(255, 255, 255, .96);
    border: 1px solid var(--np-border);
    border-radius: 16px;
    box-shadow: 0 12px 34px rgba(24, 37, 59, .18);
    backdrop-filter: blur(16px);
  }

  .np-transfer-panel > .np-panel-header .np-panel-actions > *,
  .np-production-panel > .np-panel-header .np-panel-actions > * {
    width: auto;
    min-height: 48px;
    flex: 1 1 auto;
    border-radius: 11px;
  }

  .np-transfer-panel {
    padding-bottom: calc(178px + env(safe-area-inset-bottom));
  }

  .np-production-panel {
    padding-bottom: calc(190px + env(safe-area-inset-bottom));
  }

  .np-production-panel > .np-panel-header .np-panel-actions .np-primary-button:disabled {
    display: none;
  }

  .np-production-panel .np-workflow {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
  }

  .np-production-panel .np-workflow-step {
    min-height: 64px;
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 4px;
    padding: 7px 3px;
    text-align: center;
  }

  .np-production-panel .np-workflow-step span {
    grid-row: auto;
    width: 24px;
    height: 24px;
  }

  .np-production-panel .np-workflow-step strong { font-size: .67rem; }
  .np-production-panel .np-workflow-step small { display: none; }

  .np-task-panel .np-summary-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 14px;
  }

  .np-task-panel .np-summary-panel > .np-mini-label,
  .np-task-panel .np-summary-panel > h3,
  .np-task-panel .np-summary-copy,
  .np-task-panel .np-summary-panel > .np-alert,
  .np-task-panel .np-completion-fields {
    grid-column: 1 / -1;
  }

  .np-task-panel .np-summary-copy { display: none; }

  .np-orders-panel .np-order-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  .np-orders-panel .np-status-tile {
    padding: 10px 8px;
  }

  .np-orders-panel .np-status-tile strong {
    font-size: .88rem;
  }
}

.np-module-card strong {
  display: block;
  margin-bottom: 4px;
}

.np-panel {
  padding: 22px 24px;
  border: 1px solid var(--np-border);
  border-radius: var(--np-radius-lg);
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(24, 37, 59, 0.04);
}

.np-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.np-panel-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.np-panel h2 {
  font-size: clamp(1.55rem, 2.2vw, 2rem);
  font-weight: 700;
  line-height: 1.12;
}

.np-primary-button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 13px;
  color: #ffffff;
  font-weight: 650;
  background: var(--np-accent);
  border: 1px solid var(--np-accent);
  border-radius: var(--np-radius-sm);
  box-shadow: 0 6px 12px rgba(99, 91, 255, 0.14);
}

.np-primary-button:hover {
  color: #ffffff;
  background: #5147ee;
  border-color: #5147ee;
}

.np-primary-button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  box-shadow: none;
}

.np-status-grid {
  display: grid;
  gap: 12px;
}

.np-completion-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.np-production-completion {
  display: grid;
  gap: 14px;
  padding: 18px;
  background: linear-gradient(135deg, rgba(89, 196, 49, 0.1), rgba(99, 91, 255, 0.08));
  border: 1px solid rgba(89, 196, 49, 0.35);
  border-radius: 18px;
}

.np-production-completion h3 {
  margin: 4px 0 5px;
  font-size: 1.05rem;
}

.np-production-completion p {
  margin: 0;
  color: var(--np-text-muted);
}

.np-production-yield-preview {
  padding: 10px 12px;
  color: var(--np-text) !important;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.75);
  border-radius: 10px;
}

.np-production-yield-preview.is-error {
  color: var(--bs-danger) !important;
  background: rgba(220, 53, 69, 0.08);
}

.np-status-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.np-status-tile,
.np-metric-card {
  display: grid;
  gap: 8px;
  padding: 15px;
  background: var(--np-surface-2);
  border: 1px solid var(--np-border);
  border-radius: var(--np-radius);
}

.np-metric-card span {
  color: var(--np-text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.np-metric-card strong {
  color: var(--np-text);
  font-size: 1.65rem;
  font-weight: 680;
  line-height: 1;
}

.np-table-toolbar {
  position: relative;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 12px;
  margin-bottom: 12px;
}

.np-filter-row {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.np-filter-field {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.np-filter-field::after {
  position: absolute;
  right: 11px;
  color: var(--np-text-muted);
  font-family: "bootstrap-icons";
  font-size: 0.72rem;
  content: "\f282";
  pointer-events: none;
}

.np-filter-select {
  min-height: 36px;
  min-width: 152px;
  appearance: none;
  color: var(--np-text-soft);
  background: #ffffff;
  border: 1px solid var(--np-border-strong);
  border-radius: var(--np-radius-sm);
  padding: 0 30px 0 11px;
  outline: 0;
}

.np-filter-select:hover,
.np-filter-select:focus {
  color: var(--np-text);
  border-color: #a7b7cb;
  box-shadow: 0 0 0 3px rgba(99, 91, 255, 0.08);
}

.np-toggle {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  color: var(--np-text-soft);
  border: 1px solid var(--np-border-strong);
  border-radius: var(--np-radius-sm);
  background: #ffffff;
  white-space: nowrap;
}

.np-toggle input {
  width: 14px;
  height: 14px;
  accent-color: var(--np-accent);
}

.np-toolbar-meta {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  color: var(--np-text-muted);
  font-size: 0.9rem;
  white-space: nowrap;
}

.np-table-wrap {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: auto;
  border-top: 1px solid var(--np-border);
  -webkit-overflow-scrolling: touch;
}

.np-main,
.np-content,
.np-panel,
.np-panel-header,
.np-table-toolbar,
.np-workspace-grid,
.np-workspace-grid > * {
  min-width: 0;
  max-width: 100%;
}

.np-mobile-record-list {
  display: none;
}

.np-mobile-record-list-spaced {
  margin-top: 18px;
}

.np-mobile-record-card {
  display: grid;
  gap: 12px;
  padding: 15px;
  color: var(--np-text-soft);
  background: #fff;
  border: 1px solid var(--np-border);
  border-radius: var(--np-radius);
  box-shadow: 0 1px 2px rgba(24, 37, 59, .04);
}

.np-mobile-record-card + .np-mobile-record-card {
  margin-top: 10px;
}

.np-mobile-record-head,
.np-mobile-record-actions,
.np-mobile-record-metric {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.np-mobile-record-title {
  min-width: 0;
}

.np-mobile-record-title strong,
.np-mobile-record-title span {
  display: block;
}

.np-mobile-record-title strong {
  color: var(--np-text);
}

.np-mobile-record-title span,
.np-mobile-record-copy,
.np-mobile-record-metric span {
  color: var(--np-text-muted);
  font-size: .82rem;
}

.np-mobile-record-copy {
  margin: 0;
  line-height: 1.45;
}

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

.np-production-mobile-action {
  padding: 12px;
  background: rgba(99, 91, 255, .055);
  border: 1px solid rgba(99, 91, 255, .18);
  border-radius: 12px;
}

.np-production-mobile-action > span:first-child {
  color: var(--np-text);
  font-weight: 800;
}

.np-production-material-details {
  padding-top: 2px;
}

.np-production-material-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--np-text-muted);
  font-size: .82rem;
  font-weight: 750;
  cursor: pointer;
  list-style: none;
}

.np-production-material-details summary::-webkit-details-marker {
  display: none;
}

.np-production-material-details summary span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.np-production-material-details[open] summary {
  margin-bottom: 10px;
}

.np-production-material-details[open] summary > i {
  transform: rotate(180deg);
}

.np-production-material-details .np-mobile-record-metric {
  align-items: flex-start;
  flex-direction: column;
  justify-content: flex-start;
}

.np-production-material-details .np-mobile-record-metric strong {
  color: var(--np-text);
}

.np-mobile-record-metric {
  align-items: flex-start;
  flex-direction: column;
  justify-content: flex-start;
  padding: 10px;
  background: var(--np-surface-2);
  border-radius: var(--np-radius-sm);
}

.np-mobile-record-metric strong {
  color: var(--np-text);
  font-size: .92rem;
}

.np-mobile-record-actions {
  padding-top: 2px;
}

.np-mobile-record-actions .np-primary-button,
.np-mobile-record-actions .btn {
  flex: 1 1 auto;
  min-height: 42px;
}

.np-inventory-measurements {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px;
  padding: 13px 14px;
  color: var(--np-text-soft);
  background: var(--np-surface-2);
  border-radius: var(--np-radius-sm);
}

.np-inventory-measurements strong { color: var(--np-text); font-size: 1rem; }
.np-inventory-measurements i { color: var(--np-text-muted); }
.np-inventory-adjust-card {
  max-height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 24px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scroll-padding-block: 18px;
}
.np-inventory-adjust-card .np-scan-sheet-header {
  position: sticky;
  top: -18px;
  z-index: 2;
  margin: -18px -18px 14px;
  padding: 18px 18px 12px;
  background: rgba(255, 255, 255, .98);
  border-bottom: 1px solid var(--np-border);
}
.np-inventory-adjust-card .np-adjust-submit {
  position: sticky;
  bottom: 0;
  z-index: 2;
  box-shadow: 0 -8px 18px rgba(255, 255, 255, .96);
}
.np-adjust-reasons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.np-adjust-reasons.is-finished-good { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.np-adjust-reasons input { position: absolute; opacity: 0; }
.np-adjust-reasons span { min-height: 88px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 10px 6px; border: 1px solid var(--np-border); border-radius: var(--np-radius); cursor: pointer; text-align: center; }
.np-adjust-reasons i { font-size: 1.35rem; color: var(--np-accent); }
.np-adjust-reasons strong { line-height: 1.1; }
.np-adjust-reasons small { color: var(--np-text-muted); line-height: 1.1; }
.np-adjust-reasons input:checked + span { border-color: var(--np-accent); background: var(--np-accent-soft); box-shadow: 0 0 0 2px rgba(99,91,255,.12); }
.np-production-batch-picker { display: grid; gap: 7px; }
.np-field-label { color: var(--np-text); font-weight: 700; }
.np-field-help { margin: 0; color: var(--np-text-muted); font-size: .86rem; }
.np-batch-choice-row { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 5px; scrollbar-width: thin; scroll-snap-type: x proximity; }
.np-batch-choice { position: relative; flex: 0 0 min(260px, 82vw); scroll-snap-align: start; }
.np-batch-choice input { position: absolute; opacity: 0; }
.np-batch-choice span { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 10px 12px; border: 1px solid var(--np-border); border-radius: var(--np-radius-sm); background: var(--np-surface); cursor: pointer; }
.np-batch-choice strong { color: var(--np-text); }
.np-batch-choice small { color: var(--np-text-muted); }
.np-batch-choice em { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--np-accent); font-style: normal; font-weight: 700; }
.np-batch-choice input:checked + span { border-color: var(--np-accent); background: var(--np-accent-soft); box-shadow: 0 0 0 2px rgba(99,91,255,.12); }
.np-batch-empty { width: 100%; padding: 10px 12px; color: var(--np-text-muted); background: var(--np-surface-2); border-radius: var(--np-radius-sm); }
.np-adjust-quantity-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.np-adjust-submit { width: 100%; justify-content: center; min-height: 50px; }

@media (max-width: 520px) {
  .np-adjust-reasons { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .np-adjust-reasons.is-finished-good { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .np-adjust-reasons span { min-height: 78px; padding: 8px 3px; font-size: .82rem; }
  .np-adjust-reasons i { font-size: 1.25rem; }
  .np-adjust-reasons small { font-size: .73rem; }
  .np-adjust-quantity-row { grid-template-columns: 1fr; }
  #inventoryAdjustmentSheet {
    align-items: end;
    padding: max(8px, env(safe-area-inset-top)) 8px
      max(8px, env(safe-area-inset-bottom));
  }
  .np-inventory-adjust-card {
    width: 100%;
    max-height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 16px);
    padding-bottom: calc(18px + env(safe-area-inset-bottom));
    border-radius: 22px;
  }
}

.np-mobile-empty {
  padding: 22px 14px;
  color: var(--np-text-muted);
  text-align: center;
  border: 1px dashed var(--np-border);
  border-radius: var(--np-radius);
}

.np-table-wrap-spaced {
  margin-top: 18px;
  border: 1px solid var(--np-border);
  border-radius: var(--np-radius);
}

.np-table {
  width: 100%;
  min-width: 820px;
  margin: 0;
  border-collapse: collapse;
}

.np-table th,
.np-table td {
  padding: 10px 10px;
  border-bottom: 1px solid var(--np-border);
}

.np-table th {
  color: var(--np-text);
  font-size: 0.76rem;
  font-weight: 700;
  background: #ffffff;
}

.np-table td {
  color: var(--np-text-soft);
}

.np-table td strong {
  color: var(--np-text);
  font-weight: 650;
}

.np-table tbody tr:hover {
  background: var(--np-surface-2);
}

.np-table tbody tr:last-child td {
  border-bottom: 0;
}

.np-empty-cell {
  color: var(--np-text-muted) !important;
  text-align: center;
}

.np-inventory-panel {
  position: relative;
}

.np-inventory-table {
  min-width: 980px;
}

.np-production-table {
  min-width: 820px;
}

.np-inventory-table tbody tr {
  cursor: pointer;
}

.np-item-cell {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 260px;
}

.np-item-thumb {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #266a11;
  font-size: 0.72rem;
  font-weight: 780;
  background:
    linear-gradient(135deg, rgba(124, 207, 53, 0.18), rgba(99, 91, 255, 0.12)),
    #ffffff;
  border: 1px solid rgba(124, 207, 53, 0.34);
  border-radius: var(--np-radius-sm);
}

.np-item-thumb-lg {
  width: 46px;
  height: 46px;
  font-size: 0.82rem;
}

.np-item-main {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.np-item-main strong,
.np-item-main span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.np-item-main span,
.np-muted-text {
  color: var(--np-text-muted);
  font-size: 0.82rem;
}

.np-stock-cell {
  display: grid;
  gap: 2px;
}

.np-stock-cell strong {
  font-variant-numeric: tabular-nums;
}

.np-stock-cell span {
  color: var(--np-text-muted);
  font-size: 0.78rem;
}

.np-inline-number {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.np-inline-number input {
  width: 88px;
  height: 32px;
  padding: 0 8px;
  color: var(--np-text);
  font-weight: 650;
  text-align: right;
  background: #ffffff;
  border: 1px solid var(--np-border-strong);
  border-radius: var(--np-radius-sm);
  outline: 0;
}

.np-inline-number input:focus {
  border-color: #a7c7e7;
  box-shadow: 0 0 0 3px rgba(99, 91, 255, 0.08);
}

.np-inline-number input.is-danger {
  color: var(--np-danger);
  border-color: rgba(223, 27, 65, 0.55);
  background: rgba(223, 27, 65, 0.045);
}

.np-inline-number input.is-danger:focus {
  border-color: rgba(223, 27, 65, 0.75);
  box-shadow: 0 0 0 3px rgba(223, 27, 65, 0.1);
}

.np-inline-number span {
  min-width: 44px;
  color: var(--np-text-muted);
  font-size: 0.78rem;
  text-align: left;
}

.np-transfer-control {
  margin-bottom: 3px;
}

.np-transfer-hint {
  display: block;
  color: var(--np-text-muted);
  font-size: 0.74rem;
}

.np-production-stock {
  align-items: end;
}

.np-stock-package {
  color: var(--np-text-muted);
  font-size: 0.78rem;
}

.np-stock-package strong {
  color: var(--np-text);
  font-size: 0.9rem;
  font-weight: 760;
}

.np-pack-visual {
  display: inline-grid;
  justify-items: end;
  gap: 4px;
}

.np-pack-whole {
  color: var(--np-text-muted);
  font-size: 0.78rem;
  line-height: 1.1;
}

.np-pack-whole strong {
  color: var(--np-text);
  font-size: 0.9rem;
  font-weight: 760;
  font-variant-numeric: tabular-nums;
}

.np-pack-fraction {
  position: relative;
  width: 92px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  padding: 0 8px;
  color: var(--np-text);
  background: linear-gradient(90deg, rgba(255, 228, 232, 0.82), rgba(255, 241, 243, 0.9));
  border: 1px solid rgba(99, 185, 37, 0.38);
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.62);
}

.np-pack-fraction-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--np-pack-fill);
  background: linear-gradient(90deg, rgba(124, 207, 53, 0.78), rgba(99, 185, 37, 0.9));
  border-right: 1px solid rgba(20, 83, 45, 0.18);
}

.np-pack-fraction-label {
  position: relative;
  z-index: 1;
  color: #334155;
  font-size: 0.64rem;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.64);
}

.np-production-stock small {
  color: var(--np-text-muted);
  font-size: 0.74rem;
  font-style: normal;
}

.np-production-stock.is-danger strong,
.np-production-stock.is-danger span,
.np-production-stock.is-danger small {
  color: var(--np-danger);
}

.np-production-stock.is-danger .np-pack-fraction {
  color: var(--np-danger);
  background: rgba(255, 228, 232, 0.94);
  border-color: rgba(223, 27, 65, 0.34);
}

.np-production-stock.is-danger .np-pack-fraction-fill {
  background: linear-gradient(90deg, rgba(124, 207, 53, 0.64), rgba(99, 185, 37, 0.76));
}

.np-production-stock.is-danger .np-pack-fraction-label {
  color: var(--np-danger);
}

.np-status-icon {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  color: var(--np-text-muted);
  background: var(--np-surface-2);
  border: 1px solid var(--np-border);
  border-radius: 999px;
}

.np-status-icon.is-ready {
  color: #2e8b2f;
  background: rgba(124, 207, 53, 0.12);
  border-color: rgba(124, 207, 53, 0.35);
}

.np-status-icon.is-partial {
  color: #a16207;
  background: #fff7df;
  border-color: rgba(217, 145, 23, .32);
}

.np-status-icon.is-no-need {
  color: #64748b;
  background: rgba(100, 116, 139, 0.1);
  border-color: rgba(100, 116, 139, 0.22);
}

.np-status-icon.is-danger {
  color: var(--np-danger);
  background: rgba(223, 27, 65, 0.07);
  border-color: rgba(223, 27, 65, 0.22);
}

.np-current-batch-actions {
  display: grid;
  gap: 8px;
}

.np-current-batch-actions .btn {
  min-height: 44px;
  justify-content: center;
}

.np-table tbody tr.is-stock-short {
  background: rgba(223, 27, 65, 0.035);
}

.np-action-cluster {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.np-row-action {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  color: var(--np-text-muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--np-radius-sm);
}

.np-row-action:hover,
.np-row-action:focus-visible {
  color: var(--np-text);
  background: var(--np-surface-3);
  border-color: var(--np-border);
  outline: 0;
}

.np-row-action.is-primary {
  color: var(--np-accent);
  background: var(--np-accent-soft);
}

.np-column-popover {
  position: absolute;
  top: 74px;
  right: 24px;
  z-index: 20;
  width: 260px;
  padding: 10px;
  background: #ffffff;
  border: 1px solid var(--np-border);
  border-radius: var(--np-radius);
  box-shadow: var(--np-shadow);
}

.np-column-popover-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 2px 2px 8px;
}

.np-column-list {
  display: grid;
  gap: 4px;
}

.np-column-choice {
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 8px;
  color: var(--np-text-soft);
  border-radius: var(--np-radius-sm);
}

.np-column-choice:hover {
  background: var(--np-surface-2);
}

.np-column-choice input {
  width: 14px;
  height: 14px;
  accent-color: var(--np-accent);
}

.np-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 1050;
  width: min(440px, 100vw);
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-left: 1px solid var(--np-border);
  box-shadow: var(--np-shadow);
  transform: translateX(100%);
  transition: transform 180ms ease;
}

.np-drawer.is-open {
  transform: translateX(0);
}

.np-drawer-backdrop {
  z-index: 1045;
}

.np-drawer-header {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--np-border);
}

.np-drawer-title {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.np-drawer-title h3 {
  max-width: 280px;
  margin: 2px 0 1px;
  overflow: hidden;
  color: var(--np-text);
  font-size: 1.05rem;
  font-weight: 720;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.np-drawer-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin: 0 0 2px;
  padding: 0;
  color: var(--np-accent);
  font: inherit;
  font-size: .78rem;
  font-weight: 700;
  background: transparent;
  border: 0;
}

.np-drawer-body {
  min-height: 0;
  display: grid;
  gap: 14px;
  padding: 16px;
  overflow: auto;
}

.np-drawer-stock-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.np-info-strip {
  padding: 11px 12px;
  color: var(--np-text-soft);
  line-height: 1.45;
  background: var(--np-surface-2);
  border: 1px solid var(--np-border);
  border-radius: var(--np-radius);
}

#transferPreview { white-space: pre-line; }

.np-drawer-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.np-drawer-section {
  display: grid;
  gap: 10px;
  padding-top: 4px;
}

.np-drawer-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.np-drawer-section-title span {
  color: var(--np-text-muted);
  font-size: 0.78rem;
}

.np-location-stock-list {
  display: grid;
  gap: 8px;
}

.np-location-stock-row {
  min-height: 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  background: var(--np-surface-2);
  border: 1px solid var(--np-border);
  border-radius: var(--np-radius);
}

.np-location-stock-name,
.np-location-stock-values {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.np-location-stock-name strong {
  overflow: hidden;
  color: var(--np-text);
  font-size: 0.9rem;
  font-weight: 680;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.np-location-stock-name span,
.np-location-stock-values small {
  color: var(--np-text-muted);
  font-size: 0.78rem;
}

.np-location-stock-values {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.np-location-stock-values span {
  color: var(--np-text-soft);
  font-size: 0.9rem;
}

.np-location-stock-values strong {
  color: var(--np-text);
  font-weight: 720;
}

.np-movement-list {
  display: grid;
  gap: 8px;
}

.np-movement-row {
  min-height: 68px;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--np-surface-2);
  border: 1px solid var(--np-border);
  border-radius: var(--np-radius);
}

.np-movement-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: var(--np-text-muted);
  background: #ffffff;
  border: 1px solid var(--np-border);
  border-radius: 999px;
}

.np-movement-icon.is-in {
  color: #1f6f2a;
  background: #effaf0;
  border-color: #bde7c2;
}

.np-movement-icon.is-out {
  color: #8f1230;
  background: #fff1f4;
  border-color: rgba(223, 27, 65, 0.2);
}

.np-movement-icon.is-transfer {
  color: var(--np-accent);
  background: #f4f2ff;
  border-color: #dad5ff;
}

.np-movement-main,
.np-movement-values {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.np-movement-main strong {
  overflow: hidden;
  color: var(--np-text);
  font-size: 0.84rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.np-movement-main span,
.np-movement-main small,
.np-movement-values span,
.np-movement-values small {
  overflow: hidden;
  color: var(--np-text-muted);
  font-size: 0.76rem;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.np-movement-main .np-movement-balance {
  color: var(--np-text-soft);
  font-weight: 650;
}

.np-movement-values {
  color: var(--np-text);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.np-movement-values strong {
  color: var(--np-text);
  font-size: 0.84rem;
  font-weight: 750;
}

.np-empty-state-compact {
  padding: 14px;
  color: var(--np-text-muted);
  background: var(--np-surface-2);
  border: 1px dashed var(--np-border-strong);
  border-radius: var(--np-radius);
}

.np-badge {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 6px;
  color: #24750f;
  font-size: 0.78rem;
  font-weight: 650;
  background: var(--np-primary-soft);
  border: 1px solid rgba(124, 207, 53, 0.42);
  border-radius: var(--np-radius-sm);
}

.np-workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 18px;
  align-items: start;
}

.np-workflow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}

.np-workflow-step {
  min-height: 72px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 10px;
  align-content: center;
  padding: 12px;
  background: var(--np-surface-2);
  border: 1px solid var(--np-border);
  border-radius: var(--np-radius);
}

.np-workflow-step span {
  grid-row: 1 / span 2;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: var(--np-text-muted);
  font-size: 0.78rem;
  font-weight: 750;
  background: #ffffff;
  border: 1px solid var(--np-border-strong);
  border-radius: 999px;
}

.np-workflow-step strong {
  color: var(--np-text);
  font-size: 0.88rem;
}

.np-workflow-step small {
  overflow: hidden;
  color: var(--np-text-muted);
  font-size: 0.76rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.np-workflow-step.is-active {
  background: var(--np-accent-soft);
  border-color: rgba(99, 91, 255, 0.38);
}

.np-workflow-step.is-active span {
  color: #ffffff;
  background: var(--np-accent);
  border-color: var(--np-accent);
}

.np-workflow-step.is-complete span {
  color: #ffffff;
  background: var(--np-success);
  border-color: var(--np-success);
}

.np-form-panel,
.np-summary-panel {
  border: 1px solid var(--np-border);
  border-radius: var(--np-radius);
  background: #ffffff;
}

.np-form-panel {
  display: grid;
  gap: 0;
}

.np-form-section {
  display: grid;
  gap: 16px;
  padding: 18px;
  border-bottom: 1px solid var(--np-border);
}

.np-form-section-compact {
  gap: 12px;
  padding-top: 14px;
}

.np-form-section:last-child {
  border-bottom: 0;
}

.np-form-section h3,
.np-summary-panel h3 {
  margin: 3px 0 0;
  color: var(--np-text);
  font-size: 1rem;
  font-weight: 700;
}

.np-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.np-field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.np-field-wide {
  grid-column: 1 / -1;
}

.np-field span {
  color: var(--np-text-soft);
  font-size: 0.78rem;
  font-weight: 650;
}

.np-field input,
.np-field select {
  width: 100%;
  min-height: 38px;
  padding: 0 11px;
  color: var(--np-text);
  background: #ffffff;
  border: 1px solid var(--np-border-strong);
  border-radius: var(--np-radius-sm);
  outline: 0;
}

.np-field input[readonly] {
  color: var(--np-text-muted);
  background: var(--np-surface-2);
}

.np-field input:focus,
.np-field select:focus {
  border-color: #a7c7e7;
  box-shadow: 0 0 0 3px rgba(99, 91, 255, 0.1);
}

.np-receiving-preview {
  min-height: 40px;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 10px 12px;
  color: var(--np-text-soft);
  line-height: 1.35;
  background: var(--np-surface-2);
  border: 1px solid var(--np-border);
  border-radius: var(--np-radius-sm);
}

.np-receiving-workspace { grid-template-columns: 1fr; }
.np-receiving-draft {
  position: static;
  grid-template-columns: 1fr;
  align-items: center;
  padding: 10px 12px;
}
.np-receiving-draft .np-alert { grid-column: 1 / -1; }
.np-receiving-form-message { margin: 12px 16px 0; }
.np-receiving-draft-lines { display: flex; flex-wrap: wrap; gap: 8px; overflow-x: auto; }
.np-receiving-draft-lines > span { color: var(--np-text-muted); font-size: .82rem; }
.np-receiving-draft-lines button { display: inline-flex; align-items: center; gap: 6px; padding: 7px 9px; white-space: nowrap; color: var(--np-text-soft); background: var(--np-surface-2); border: 1px solid var(--np-border); border-radius: 9px; }
.np-receiving-draft-lines button strong { color: var(--np-text); font-size: .76rem; }
.np-receiving-draft-lines button span { font-size: .74rem; }
.np-receiving-quantity-control { display: grid; grid-template-columns: minmax(0, 1fr) 48px; gap: 8px; }
.np-receiving-add {
  min-height: 38px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.2rem;
  background: var(--np-accent);
  border: 0;
  border-radius: var(--np-radius-sm);
}

.np-receiving-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.np-scan-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.np-scan-search-row .np-search { min-width: 0; }

.np-receiving-search {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  color: var(--np-text-muted);
  background: #fff;
  border: 1px solid var(--np-border-strong);
  border-radius: 12px;
}

.np-receiving-search:focus-within {
  border-color: var(--np-accent);
  box-shadow: 0 0 0 3px rgba(99, 91, 255, .1);
}

.np-field .np-receiving-search input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 46px;
  padding: 0;
  border: 0;
  box-shadow: none;
}

.np-search-clear {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--np-text-soft);
  background: var(--np-surface-2);
  border: 0;
  border-radius: 10px;
}

.np-receiving-scan {
  min-width: 76px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #fff;
  font-weight: 720;
  background: var(--np-accent);
  border: 0;
  border-radius: 12px;
}

.np-receiving-scan i { font-size: 1.25rem; }

.np-receiving-sku-results {
  max-height: 340px;
  overflow: auto;
  background: #fff;
  border: 1px solid var(--np-border);
  border-radius: 12px;
}

.np-receiving-sku-option {
  width: 100%;
  min-height: 64px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  color: var(--np-text);
  text-align: left;
  background: #fff;
  border: 0;
  border-bottom: 1px solid var(--np-border);
}

.np-receiving-sku-option:last-child { border-bottom: 0; }
.np-receiving-sku-option:hover { background: var(--np-surface-2); }
.np-receiving-sku-option strong,
.np-receiving-sku-option small,
.np-receiving-selected strong,
.np-receiving-selected small { display: block; }
.np-receiving-sku-option strong { font-size: .9rem; }
.np-receiving-sku-option small,
.np-receiving-selected small { margin-top: 3px; color: var(--np-text-muted); font-size: .76rem; }
.np-receiving-sku-option > span:nth-child(2),
.np-receiving-selected > span:nth-child(2) { min-width: 0; }
.np-receiving-sku-option > i { color: var(--np-text-muted); }

.np-receiving-picker-state {
  padding: 18px;
  color: var(--np-text-muted);
  text-align: center;
}

.np-receiving-selected {
  min-height: 70px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--np-primary-soft);
  border: 1px solid rgba(99, 185, 37, .35);
  border-radius: 12px;
}

.np-receiving-selected > button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--np-text-soft);
  background: #fff;
  border: 1px solid var(--np-border);
  border-radius: 10px;
}

.np-receiving-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--np-text-soft);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.np-receiving-details summary::-webkit-details-marker { display: none; }
.np-receiving-details summary span { display: inline-flex; align-items: center; gap: 8px; }
.np-receiving-details[open] summary { margin-bottom: 12px; }
.np-receiving-details[open] summary > i { transform: rotate(180deg); }

.np-scan-sheet {
  position: fixed;
  inset: 0;
  z-index: 1080;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(13, 24, 41, .72);
  backdrop-filter: blur(8px);
}

.np-scan-sheet-card {
  width: min(100%, 520px);
  padding: 18px;
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--np-shadow);
}

.np-scan-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.np-scan-sheet-header h2 { margin: 4px 0 0; font-size: 1.25rem; }
.np-barcode-reader { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: #111827; border-radius: 14px; }
.np-barcode-reader video { width: 100%; height: 100%; object-fit: cover; }
.np-barcode-guide { position: absolute; inset: 28% 8%; border: 3px solid var(--np-primary); border-radius: 10px; box-shadow: 0 0 0 999px rgba(0,0,0,.28); }
.np-scan-sheet-help { margin: 13px 4px 0; color: var(--np-text-muted); line-height: 1.45; text-align: center; }

.np-form-actions {
  display: flex;
  justify-content: flex-end;
}

.np-summary-panel {
  position: sticky;
  top: calc(var(--np-header-height) + 18px);
  display: grid;
  gap: 14px;
  padding: 18px;
}

.np-summary-copy {
  margin: 0;
  color: var(--np-text-muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.np-summary-stat {
  display: grid;
  gap: 5px;
  padding: 14px;
  background: var(--np-surface-2);
  border: 1px solid var(--np-border);
  border-radius: var(--np-radius);
}

.np-summary-stat span {
  color: var(--np-text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.np-summary-stat strong {
  color: var(--np-text);
  font-size: 1.25rem;
  font-weight: 700;
}

.np-recent-batches {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding: 14px;
  background: #ffffff;
  border: 1px solid var(--np-border);
  border-radius: var(--np-radius);
}

.np-recent-batches-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.np-recent-batches-header h3 {
  margin: 2px 0 0;
  color: var(--np-text);
  font-size: 1rem;
  font-weight: 700;
}

.np-recent-batches-header > span {
  color: var(--np-text-muted);
  font-size: 0.82rem;
  font-weight: 650;
  white-space: nowrap;
}

.np-recent-batch-list {
  display: grid;
  gap: 6px;
}

.np-recent-batch-row {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  padding: 4px;
  color: var(--np-text);
  text-align: left;
  background: var(--np-surface-2);
  border: 1px solid var(--np-border);
  border-radius: var(--np-radius-sm);
}

.np-recent-batch-row:not(.is-empty):hover,
.np-recent-batch-row.is-selected {
  background: #ffffff;
  border-color: rgba(99, 91, 255, 0.32);
  box-shadow: 0 0 0 3px rgba(99, 91, 255, 0.08);
}

.np-recent-batch-row.is-empty {
  display: block;
  padding: 10px 12px;
  color: var(--np-text-muted);
  cursor: default;
}

.np-recent-batch-open {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 7px 8px;
  color: inherit;
  text-align: left;
  background: transparent;
  border: 0;
}

.np-recent-batch-cancel {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: var(--np-text-muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--np-radius-sm);
}

.np-recent-batch-cancel:hover {
  color: var(--np-danger);
  background: #fff1f4;
  border-color: rgba(223, 27, 65, 0.18);
}

.np-recent-batch-main {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.np-recent-batch-main strong {
  overflow: hidden;
  color: var(--np-text);
  font-size: 0.9rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.np-recent-batch-main span,
.np-recent-batch-meta {
  color: var(--np-text-muted);
  font-size: 0.8rem;
  line-height: 1.35;
}

.np-recent-batch-side {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.np-batch-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  color: var(--np-text-soft);
  font-size: 0.72rem;
  font-weight: 750;
  text-transform: uppercase;
  background: #ffffff;
  border: 1px solid var(--np-border);
  border-radius: 999px;
}

.np-batch-status.is-draft {
  color: #4f46e5;
  background: #f4f2ff;
  border-color: #dad5ff;
}

.np-batch-status.is-in-progress {
  color: #8a4c00;
  background: #fff7e6;
  border-color: #ffd99a;
}

.np-batch-status.is-posted,
.np-batch-status.is-completed {
  color: #1f6f2a;
  background: #effaf0;
  border-color: #bde7c2;
}

.np-alert {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: start;
  gap: 9px;
  padding: 11px 12px;
  color: var(--np-text-soft);
  font-size: 0.86rem;
  line-height: 1.4;
  background: var(--np-surface-2);
  border: 1px solid var(--np-border);
  border-radius: var(--np-radius-sm);
}

.np-alert::before {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  content: "i";
  color: #315b8c;
  font-size: .78rem;
  font-weight: 850;
  line-height: 1;
  background: #e5effa;
  border-radius: 50%;
}

.np-alert.is-error {
  color: #8f1230;
  background: #fff1f4;
  border-color: rgba(223, 27, 65, 0.24);
}

.np-alert.is-error::before {
  content: "!";
  color: #fff;
  background: var(--np-danger);
}

.np-alert.is-success {
  color: #1f6f2a;
  background: #effaf0;
  border-color: rgba(47, 179, 68, 0.24);
}

.np-alert.is-success::before {
  content: "✓";
  color: #fff;
  background: var(--np-success);
}

.np-alert.is-warning {
  color: #7a4700;
  background: #fff7e6;
  border-color: rgba(245, 158, 11, .3);
}

.np-alert.is-warning::before {
  content: "!";
  color: #fff;
  background: var(--np-warning);
}

.has-np-dialog {
  overflow: hidden;
}

.np-dialog-layer {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(13, 24, 41, .64);
  backdrop-filter: blur(8px);
}

.np-dialog {
  width: min(100%, 500px);
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 16px 18px;
  padding: 24px;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 22px;
  box-shadow: 0 28px 90px rgba(13, 24, 41, .3);
}

.np-dialog-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  color: #7a4700;
  font-size: 1.55rem;
  background: #fff3d6;
  border-radius: 17px;
}

.np-dialog-icon.is-danger { color: #b11535; background: #fff0f3; }
.np-dialog-icon.is-info { color: #315b8c; background: #eaf3fc; }
.np-dialog-icon.is-success { color: #23752e; background: #eaf8ec; }

.np-dialog-content { min-width: 0; }
.np-dialog-content h2 {
  margin: 5px 0 8px;
  color: var(--np-text);
  font-size: 1.35rem;
  font-weight: 770;
  letter-spacing: -.025em;
}

.np-dialog-content > p:not(.np-kicker) {
  margin: 0;
  color: var(--np-text-soft);
  font-size: .98rem;
  line-height: 1.5;
}

.np-dialog-detail {
  margin-top: 13px;
  padding: 11px 12px;
  color: var(--np-text-soft);
  font-size: .86rem;
  line-height: 1.45;
  background: var(--np-surface-2);
  border: 1px solid var(--np-border);
  border-radius: 11px;
}

.np-dialog-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 4px;
}

.np-dialog-actions > button {
  min-height: 46px;
  padding: 0 18px;
  font-weight: 720;
  border-radius: 12px;
}

.np-dialog-confirm {
  color: #fff;
  background: var(--np-accent);
  border: 1px solid var(--np-accent);
}

.np-dialog-confirm.is-danger { background: var(--np-danger); border-color: var(--np-danger); }
.np-dialog-confirm.is-warning { color: #3d2900; background: #fbbf24; border-color: #fbbf24; }
.np-dialog-confirm.is-success { background: var(--np-success); border-color: var(--np-success); }

@media (max-width: 575.98px) {
  .np-dialog-layer {
    align-items: end;
    padding: 10px 10px calc(84px + env(safe-area-inset-bottom));
  }

  .np-dialog {
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 14px;
    padding: 18px;
    border-radius: 22px 22px 16px 16px;
  }

  .np-dialog-icon {
    width: 50px;
    height: 50px;
    font-size: 1.35rem;
    border-radius: 15px;
  }

  .np-dialog-content h2 { font-size: 1.22rem; }
  .np-dialog-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .np-dialog-actions > button { min-width: 0; padding: 0 10px; }
}

.np-panel-top-alert {
  margin: -2px 0 16px;
}

.np-row-action {
  min-width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  color: var(--np-text-muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--np-radius-sm);
}

.np-row-action:hover {
  color: var(--np-danger);
  background: #fff1f4;
  border-color: rgba(223, 27, 65, 0.18);
}

@media (max-width: 1199.98px) {
  .np-module-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .np-table-toolbar {
    grid-template-columns: 1fr;
  }

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

  .np-workflow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .np-summary-panel {
    position: static;
  }

  .np-filter-row {
    justify-content: flex-start;
  }
}

@media (max-width: 767.98px) {
  .np-icon-button,
  .np-language-button,
  .np-user-button {
    min-width: 42px;
    height: 42px;
    font-size: 1.08rem;
  }

  .np-user-button {
    gap: 8px;
  }

  .np-user-button .np-user-meta {
    display: none;
  }

  .np-brand-logo-compact {
    width: 94px;
  }

  .np-global-search {
    display: none;
  }

  .np-hero {
    align-items: flex-start;
    flex-direction: column;
    min-height: auto;
    padding: 20px;
  }

  .np-hero h1 {
    font-size: clamp(1.55rem, 7vw, 1.95rem);
  }

  .np-hero-copy {
    font-size: 0.95rem;
  }

  .np-module-card {
    min-height: 88px;
    padding: 14px;
  }

  .np-module-grid,
  .np-status-grid {
    grid-template-columns: 1fr;
  }

  .np-panel {
    overflow: hidden;
    padding: 18px 16px;
  }

  .np-receiving-panel {
    padding: 16px 12px calc(178px + env(safe-area-inset-bottom));
    background: var(--np-bg);
    border: 0;
    box-shadow: none;
  }

  .np-receiving-panel > .np-panel-header {
    padding: 2px 4px 0;
  }

  .np-receiving-panel > .np-panel-header .np-panel-actions {
    position: fixed;
    right: 10px;
    bottom: calc(102px + env(safe-area-inset-bottom));
    left: 10px;
    z-index: 1055;
    grid-template-columns: minmax(92px, .35fr) minmax(0, 1fr);
    gap: 8px;
    padding: 9px;
    background: rgba(255, 255, 255, .96);
    border: 1px solid var(--np-border);
    border-radius: 16px;
    box-shadow: 0 12px 34px rgba(24, 37, 59, .18);
    backdrop-filter: blur(16px);
  }

  .np-receiving-panel > .np-panel-header .np-panel-actions > * {
    min-height: 48px;
    border-radius: 11px;
  }

  .np-receiving-panel > .np-panel-header h2 {
    font-size: 1.75rem;
  }

  .np-receiving-panel .np-form-panel {
    overflow: hidden;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(24, 37, 59, .05);
  }

  .np-receiving-panel .np-form-section {
    padding: 16px;
  }

  .np-receiving-panel .np-field > span {
    font-size: .86rem;
  }

  .np-receiving-panel .np-field input,
  .np-receiving-panel .np-field select {
    min-height: 50px;
    font-size: 1rem;
    border-radius: 11px;
  }

  .np-receiving-panel .np-form-actions .btn {
    width: 100%;
    min-height: 52px;
    color: #fff;
    font-size: 1rem;
    font-weight: 720;
    background: var(--np-accent);
    border-color: var(--np-accent);
    border-radius: 12px;
  }

  .np-receiving-panel .np-summary-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 14px;
    border-radius: 16px;
  }

  .np-receiving-panel .np-receiving-draft {
    position: sticky;
    top: 8px;
    z-index: 12;
    grid-template-columns: 1fr;
    padding: 10px 12px;
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(14px);
  }
  .np-receiving-draft-lines { grid-column: 1 / -1; }

  .np-receiving-panel .np-summary-panel > .np-mini-label,
  .np-receiving-panel .np-summary-panel > h3,
  .np-receiving-panel .np-summary-copy,
  .np-receiving-panel .np-summary-panel > .np-alert {
    grid-column: 1 / -1;
  }

  .np-receiving-panel .np-summary-copy { display: none; }
  .np-receiving-panel .np-summary-stat { padding: 12px; }
  .np-receiving-sku-results { max-height: 290px; }
  .np-receiving-sku-option { min-height: 72px; }
  .np-scan-sheet { align-items: end; padding: 10px 10px calc(84px + env(safe-area-inset-bottom)); }
  .np-scan-sheet-card { border-radius: 22px 22px 16px 16px; }

  .np-scan-search-row,
  .np-receiving-search-row {
    grid-template-columns: minmax(0, 1fr) 92px;
  }

  .np-panel-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .np-panel-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .np-panel-actions > * {
    width: 100%;
    min-height: 44px;
    min-width: 0;
  }

  .np-panel-actions .np-primary-button,
  .np-panel-actions .btn {
    justify-content: center;
  }

  .np-form-grid {
    grid-template-columns: 1fr;
  }

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

  .np-filter-field,
  .np-filter-select,
  .np-toggle {
    width: 100%;
    min-height: 44px;
  }

  .np-filter-select {
    font-size: 0.95rem;
  }

  .np-toolbar-meta {
    width: 100%;
    min-height: 30px;
  }

  .np-table-wrap { display: none; }
  .np-mobile-record-list { display: block; width: 100%; min-width: 0; }

  .np-table {
    min-width: 760px;
  }

  .np-inventory-table {
    min-width: 720px;
  }

  .np-production-table {
    min-width: 860px;
  }

  .np-table th,
  .np-table td {
    padding: 11px 9px;
  }

  .np-workflow {
    grid-template-columns: 1fr;
  }

  .np-recent-batches-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .np-recent-batch-row {
    grid-template-columns: 1fr;
  }

  .np-recent-batch-open {
    grid-template-columns: 1fr;
  }

  .np-recent-batch-side {
    align-items: flex-start;
  }

  .np-recent-batch-side {
    justify-content: space-between;
    width: 100%;
  }

  .np-column-popover {
    top: 116px;
    right: 18px;
    left: 18px;
    width: auto;
  }

  .np-drawer {
    width: 100vw;
    top: max(10px, env(safe-area-inset-top));
    bottom: max(0px, env(safe-area-inset-bottom));
    height: auto;
    max-height: calc(100dvh - max(10px, env(safe-area-inset-top)) - max(0px, env(safe-area-inset-bottom)));
    overflow: hidden;
    border-radius: 22px 22px 0 0;
  }

  .np-drawer-header { flex: 0 0 auto; }

  .np-drawer-body { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }

  .np-drawer-stock-grid {
    grid-template-columns: 1fr;
  }
}
.np-notification-button { position: relative; }
.np-language-picker { min-width:84px; height:42px; display:inline-flex; align-items:center; justify-content:center; gap:6px; padding:0 8px; color:var(--np-text); background:#fff; border:1px solid var(--np-border); border-radius:12px; cursor:pointer; }
.np-language-picker i { color:var(--np-accent); font-size:1rem; }
.np-language-picker select { width:52px; padding:0; color:inherit; background:transparent; border:0; outline:0; font-weight:800; cursor:pointer; appearance:none; }
@media (max-width:575.98px) { .np-language-picker { min-width:72px; height:46px; padding:0 6px; } .np-language-picker i { display:none; } .np-language-picker select { width:56px; font-size:1rem; } }
.np-notification-badge { position:absolute; top:-3px; right:-3px; min-width:19px; height:19px; padding:0 5px; display:grid; place-items:center; color:#fff; background:#dc3545; border:2px solid #fff; border-radius:999px; font-size:.65rem; font-weight:800; }
.np-notification-popover { position:absolute; z-index:1200; top:72px; right:120px; width:min(390px,calc(100vw - 24px)); max-height:70vh; overflow:auto; padding:14px; background:#fff; border:1px solid var(--np-border); border-radius:18px; box-shadow:0 22px 60px rgba(24,37,59,.2); }
.np-notification-head { display:flex; justify-content:space-between; align-items:center; margin-bottom:10px; }
.np-notification-head button { border:0; background:transparent; color:var(--np-accent); }
.np-notification-item { width:100%; display:flex; gap:12px; align-items:flex-start; padding:12px; text-align:left; background:#fff; border:0; border-top:1px solid var(--np-border); }
.np-notification-item i { margin-top:2px; color:#e0a800; font-size:1.2rem; }
.np-notification-item.is-out i { color:#dc3545; }
.np-notification-item span { display:grid; gap:3px; }
.np-notification-item small { color:var(--np-text-muted); }
.np-notification-empty { margin:0; padding:18px 8px; color:var(--np-success); text-align:center; }
.np-order-delivery { display:grid; gap:4px; margin-bottom:12px; padding:12px 14px; color:var(--np-text); background:var(--np-surface-muted); border:1px solid var(--np-border); border-radius:14px; }
.np-order-delivery strong { display:flex; gap:7px; align-items:center; }
.np-order-delivery span { color:var(--np-text-muted); line-height:1.4; }
.np-orders-panel .np-mobile-record-card.is-expanded { grid-column:1 / -1; }
.np-orders-panel [data-mobile-order-detail] { min-width:0; max-width:100%; overflow:hidden; }
.np-orders-panel [data-mobile-order-detail] .np-order-line { grid-template-columns:minmax(7rem,.7fr) minmax(0,2fr) auto; }
.np-orders-panel [data-mobile-order-detail] .np-order-line > * { min-width:0; overflow-wrap:anywhere; }
.np-orders-panel [data-mobile-order-detail] .np-form-actions { justify-content:flex-end; }
@media (max-width: 767px) {
  .np-notification-popover { position:fixed; top:82px; right:12px; left:12px; width:auto; max-height:calc(100dvh - 180px); }
  .np-orders-panel [data-mobile-order-detail] .np-order-line { grid-template-columns:1fr; gap:.3rem; }
  .np-orders-panel [data-mobile-order-detail] .np-form-actions .np-primary-button { width:100%; }
}
