:root {
  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #17243a;
  background: #f4f6fa;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
a {
  color: inherit;
  text-decoration: none;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 2rem;
  letter-spacing: -0.04em;
}
h2 {
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}
h3 {
  font-size: 1rem;
}
.muted,
small {
  color: #647187;
}
.error {
  color: #b33040;
}
.success {
  color: #17704e;
}
.logo {
  position: relative;
  display: grid;
  place-items: center;
  background: #213553;
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 0;
  font-weight: 800;
  font-size: 1.3rem;
}
.logo img {
  width: 100%;
  height: 100%;
  border-radius: 0;
  display: block;
  object-fit: cover;
}
.logo span {
  color: #5dd2b0;
}
.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
  background: radial-gradient(circle at 70% 0, #dfeeea, #f4f6fa 48%);
}
.login-card {
  background: white;
  padding: 38px;
  border-radius: 0;
  width: min(410px, 100%);
  box-shadow: 0 18px 55px #1e304018;
}
.login-card h1 {
  margin: 20px 0 0;
}
.login-card p {
  color: #647187;
}
.login-card label {
  display: block;
  margin: 22px 0;
  font-weight: 650;
  font-size: 0.9rem;
}
input,
select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #cdd6e1;
  border-radius: 0;
  background: #fff;
  color: #17243a;
  outline: none;
  font-size: 16px;
}
input:focus,
select:focus {
  border-color: #2e9b81;
  box-shadow: 0 0 0 3px #2e9b8125;
}
label input {
  margin-top: 7px;
}
.primary,
.secondary,
.quiet,
.danger {
  border: 0;
  border-radius: 0;
  padding: 11px 16px;
  font-weight: 700;
  min-height: 43px;
}
.primary {
  background: #19755f;
  color: white;
}
.primary:hover {
  background: #11634f;
}
.secondary {
  background: #e7edf2;
  color: #263b53;
}
.quiet {
  background: transparent;
  color: #3b596d;
}
.danger {
  background: #fbe5e6;
  color: #a31d32;
}
.full {
  width: 100%;
}
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 236px;
  background: #17243a;
  color: #cbd5e2;
  display: flex;
  flex-direction: column;
  padding: 26px 14px;
  z-index: 2;
}
.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 0 12px 28px;
  color: white;
}
.brand small {
  display: block;
  color: #90a3b8;
  font-size: 0.7rem;
}
.sidebar nav {
  display: grid;
  gap: 4px;
}
.navlink {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 0;
  color: #cbd5e2;
  font-weight: 600;
  font-size: 0.9rem;
}
.navlink.active,
.navlink:hover {
  background: #2c405b;
  color: white;
}
.navlink .glyph {
  width: 21px;
  text-align: center;
  color: #74c9ae;
}
.navlink .count {
  margin-left: auto;
  background: #d2873f;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1.45;
  border-radius: 0;
  padding: 1px 7px;
}
.aside-bottom {
  margin-top: auto;
  padding: 15px 12px 0;
  border-top: 1px solid #3a4b62;
}
.aside-bottom .quiet {
  color: #aec3d6;
  padding: 8px 0;
}
#logout {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
#logout .glyph {
  color: #aec3d6;
}
.shell {
  margin-left: 236px;
  min-height: 100vh;
}
header {
  height: 74px;
  background: #fff;
  border-bottom: 1px solid #e5eaf0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px;
}
.header-right {
  display: flex;
  gap: 24px;
  color: #66768a;
  font-size: 0.88rem;
}
.online {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 3px solid #17243a;
  background: currentColor;
  font-size: 0;
  animation: onlinePulse 1.5s ease-in-out infinite;
}
.mobile-brand .online {
  top: -3px;
  right: -4px;
  width: 11px;
  height: 11px;
  border-width: 2px;
  border-color: #fff;
  color: #19755f;
}
.online.offline {
  color: #e05563;
}
@keyframes onlinePulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.3;
    transform: scale(0.7);
  }
}
@media (prefers-reduced-motion: reduce) {
  .online {
    animation: none;
  }
}
.head-tools {
  display: none;
}
.head-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #eef2f6;
  color: #263b53;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.head-btn svg {
  width: 18px;
  height: 18px;
}
.ic {
  width: 1.05em;
  height: 1.05em;
  vertical-align: -0.16em;
  flex: none;
}
.ic-lead {
  margin-right: 0.4em;
}
.ic-trail {
  margin-left: 0.4em;
}
.ico {
  display: inline-flex;
  margin-right: 0.45em;
  vertical-align: -0.18em;
}
.navlink .glyph .ic {
  width: 18px;
  height: 18px;
  vertical-align: middle;
}
#logout .glyph .ic {
  width: 17px;
  height: 17px;
  vertical-align: middle;
}
.mobile-brand {
  position: relative;
  display: none;
}
.mobile-brand img {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  display: block;
}
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 34px 36px 90px;
}
.page-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}
.page-head p {
  color: #647187;
  margin-bottom: 0;
}
.page-head h1 {
  margin-bottom: 4px;
}
.page-head .head-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: auto;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 25px;
}
.stat,
.card {
  background: white;
  border: 1px solid #e3e8ee;
  border-radius: 0;
  box-shadow: 0 3px 12px #26394c08;
}
.stat {
  padding: 19px;
}
.stat strong {
  display: block;
  font-size: 2rem;
  letter-spacing: -0.05em;
  margin-top: 6px;
}
.stat .label {
  font-size: 0.83rem;
  color: #65748a;
  font-weight: 650;
}
.stat.warn {
  border-left: 4px solid #d2873f;
}
.card {
  padding: 24px;
  margin-bottom: 20px;
}
.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.card-head h2 {
  margin: 0;
}
.banner {
  background: #fff4e7;
  border: 1px solid #f4d8af;
  padding: 20px;
  border-radius: 0;
  margin-bottom: 20px;
}
.banner strong {
  font-size: 1.1rem;
}
.banner p {
  margin: 6px 0 14px;
  color: #695647;
}
.table-wrap {
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
}
th {
  color: #6b7a90;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}
td,
th {
  padding: 13px 11px;
  border-bottom: 1px solid #e9edf2;
}
tbody tr:last-child td {
  border-bottom: 0;
}
tbody tr.clickable:hover {
  background: #f3f8f7;
  cursor: pointer;
}
.pager {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 2px 2px;
  border-top: 1px solid #e9edf2;
}
.pager label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #6b7a90;
}
.pager select {
  width: auto;
}
.pager-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}
.pager-nav span {
  color: #6b7a90;
  font-size: 0.9rem;
}
.pager button:disabled {
  opacity: 0.45;
  cursor: default;
}
tr.print-expand > td {
  background: #f6f9fb;
  padding: 0 11px 14px;
}
tr.print-expand .table-wrap {
  border: 1px solid #e2e8ed;
  border-radius: 10px;
  background: #fff;
}
.sub-table {
  font-size: 0.92rem;
}
.sub-table th {
  font-size: 0.68rem;
}
.sub-table td,
.sub-table th {
  padding: 9px 11px;
}
.snap-bin {
  border-right: 1px solid #e9edf2;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 0;
  padding: 6px 10px;
  font-weight: 700;
  font-size: 0.76rem;
  white-space: nowrap;
}
.badge.WAITING_FOR_LOCATION {
  background: #fff1df;
  color: #a35e18;
}
.badge.PENDING_SAP {
  background: #fff7cf;
  color: #7d650d;
}
.badge.COMPLETED {
  background: #e5f5eb;
  color: #177049;
}
.badge.CANCELLED {
  background: #fce8e9;
  color: #9c2434;
}
.field-row {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr auto;
  gap: 12px;
  align-items: end;
}
.field-row label,
.form-grid label {
  font-size: 0.84rem;
  font-weight: 700;
  color: #4d5b6c;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  align-items: end;
  margin-bottom: 18px;
}
.field-row input {
  margin-top: 7px;
}
.input-action {
  display: flex;
  gap: 6px;
  align-items: center;
}
.input-action input {
  flex: 1;
  min-width: 0;
}
.input-action button {
  height: 44px;
}
.items-list {
  margin: 20px 0;
}
.list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-bottom: 1px solid #e9edf2;
}
.list-item b {
  flex: 1;
}
.list-item span {
  font-weight: 700;
}
.list-item button {
  min-width: 38px;
}
.footer-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}
.copy {
  background: #eaf3f0;
  border: 1px solid #c7e0d7;
  border-radius: 0;
  color: #115d4a;
  padding: 8px 12px;
  font-weight: 750;
  white-space: nowrap;
}
.copy:hover {
  background: #d6ece3;
}
.meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin: 18px 0;
}
.meta div {
  border-top: 1px solid #e7ebf0;
  padding-top: 10px;
}
.meta small {
  display: block;
  font-size: 0.72rem;
  margin-bottom: 5px;
}
.meta b {
  font-size: 0.9rem;
}
.searchbar {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}
.searchbar input {
  flex: 1;
}
.stack {
  display: grid;
  gap: 12px;
}
.pallet-tile {
  padding: 16px;
  border: 1px solid #e2e8ed;
  border-radius: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}
.pallet-tile:hover {
  border-color: #88cdbb;
  cursor: pointer;
}
.pill {
  font-size: 0.77rem;
  color: #65748a;
}
.type-chip {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  background: #e8eefb;
  color: #33507d;
  font-size: 0.72rem;
  font-weight: 600;
}
.print-transfer .pp-bin strong {
  font-size: 1.05em;
}
.empty {
  text-align: center;
  padding: 45px 15px;
  color: #718096;
}
.empty strong {
  display: block;
  color: #28384b;
  margin-bottom: 5px;
}
#toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #17243a;
  color: white;
  padding: 13px 18px;
  border-radius: 0;
  z-index: 10;
  box-shadow: 0 10px 28px #1a304830;
  opacity: 0;
  transform: translateY(15px);
  transition: 0.2s;
  pointer-events: none;
}
#toast.show {
  opacity: 1;
  transform: translateY(0);
}
dialog {
  border: 0;
  border-radius: 0;
  padding: 24px;
  width: min(430px, calc(100% - 28px));
  box-shadow: 0 25px 80px #18243a45;
}
dialog::backdrop {
  background: #17243a88;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}
.check {
  accent-color: #19755f;
  width: 18px;
  height: 18px;
  margin: 0;
  flex: 0 0 auto;
}
label:has(.check) {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
label:has(.check) .check {
  margin-top: 2px;
}
.mobile-nav {
  display: none;
}
.scan-video {
  width: 100%;
  border-radius: 0;
  max-height: 280px;
  background: #111;
  margin-top: 14px;
}
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.admin-grid .card {
  margin: 0;
}
kbd {
  background: #edf1f5;
  padding: 2px 6px;
  border-radius: 0;
}
button.icon {
  padding: 8px 10px;
}
.pin {
  padding: 4px 8px;
  min-height: 0;
  margin-left: 6px;
  line-height: 1;
  font-size: 1rem;
  border-radius: 0;
  vertical-align: middle;
}
@media (max-width: 1280px) and (min-width: 701px) {
  .sidebar {
    width: 68px;
    padding: 26px 10px;
  }
  .brand {
    justify-content: center;
    padding: 0 0 24px;
  }
  .brand > div:last-child {
    display: none;
  }
  .navlink {
    justify-content: center;
    padding: 11px 0;
    font-size: 0;
    gap: 0;
    position: relative;
  }
  .navlink .glyph {
    font-size: 1.05rem;
    width: auto;
  }
  .navlink .glyph .ic {
    width: 20px;
    height: 20px;
  }
  .aside-bottom .lang-opt span {
    display: none;
  }
  .navlink .count {
    position: absolute;
    top: 2px;
    right: 2px;
    margin: 0;
    padding: 0 5px;
    font-size: 0.6rem;
  }
  .shell {
    margin-left: 68px;
  }
  .aside-bottom {
    padding: 15px 0 0;
    text-align: center;
  }
  #user-name {
    display: none;
  }
  #logout {
    padding: 8px 0;
    width: 100%;
    justify-content: center;
  }
  #logout .lbl {
    display: none;
  }
  #logout .glyph .ic {
    width: 20px;
    height: 20px;
  }
}
@media (max-width: 900px) {
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  main {
    padding: 24px 20px 90px;
  }
  header {
    padding: 0 20px;
  }
  .form-grid,
  .meta {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 700px) {
  .sidebar {
    display: none;
  }
  .shell {
    margin: 0;
  }
  header {
    height: 58px;
    padding: 0 18px;
  }
  .mobile-brand {
    display: block;
  }
  .header-right #date {
    display: none;
  }
  .header-right {
    gap: 8px;
  }
  .head-tools {
    display: inline-flex;
    align-items: center;
    gap: 3px;
  }
  .head-btn {
    width: 30px;
    height: 30px;
  }
  .head-btn svg {
    width: 16px;
    height: 16px;
  }
  .head-tools .lang-opt {
    padding: 5px 7px;
    gap: 4px;
    font-size: 0.7rem;
  }
  .head-tools .lang-opt img {
    width: 16px;
    height: 11px;
  }
  main {
    padding: 22px 16px 95px;
  }
  .page-head {
    align-items: center;
    flex-wrap: wrap;
    row-gap: 10px;
  }
  .page-head > div:first-child {
    flex: 1 1 100%;
  }
  .page-head .head-actions {
    flex: 1 1 100%;
  }
  .page-head .head-actions button {
    flex: 1 1 auto;
    white-space: nowrap;
  }
  .page-head h1 {
    font-size: 1.65rem;
  }
  .page-head .primary {
    font-size: 0.82rem;
  }
  .stat-grid {
    gap: 9px;
  }
  .stat {
    padding: 13px;
  }
  .stat strong {
    font-size: 1.55rem;
  }
  .card {
    padding: 17px;
  }
  .field-row {
    grid-template-columns: 1fr 1fr;
    align-items: end;
  }
  .field-row > label:first-child {
    grid-column: 1/-1;
  }
  .field-row > button {
    grid-column: auto;
    width: 100%;
  }
  .field-row input {
    width: 100%;
  }
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }
  .meta {
    grid-template-columns: 1fr 1fr;
  }
  .mobile-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #dfe6ed;
    z-index: 3;
    padding: 5px 6px max(5px, env(safe-area-inset-bottom));
    justify-content: space-around;
  }
  .mobile-nav .navlink {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    font-size: 0.62rem;
    padding: 5px 4px;
    color: #647187;
    text-align: center;
    position: relative;
    white-space: nowrap;
    min-width: 0;
  }
  .mobile-nav .navlink.active {
    background: #e6f3ee;
    color: #11634f;
  }
  .mobile-nav .glyph {
    font-size: 1.05rem;
  }
  .mobile-nav .count {
    position: absolute;
    top: 0;
    right: 2px;
    margin: 0;
    padding: 0 4px;
    font-size: 0.54rem;
  }
  .pallet-tile {
    align-items: flex-start;
  }
  .footer-actions {
    flex-wrap: wrap;
  }
  .footer-actions button {
    flex: 1;
  }
  .searchbar {
    flex-wrap: wrap;
  }
  .searchbar input {
    flex-basis: 100%;
  }
  .admin-grid {
    grid-template-columns: 1fr;
  }
  #toast {
    bottom: 82px;
    left: 16px;
    right: 16px;
  }
}
[hidden] {
  display: none !important;
}
body.printing .sidebar,
body.printing header,
body.printing .mobile-nav,
body.printing #toast {
  display: none !important;
}
body.printing .shell {
  margin-left: 0;
}
.print-sheet {
  max-width: 900px;
}
.print-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  max-width: 900px;
  margin: 14px 0 0;
  color: #647187;
  font-size: 0.8rem;
  font-weight: 600;
}
.print-pallet {
  background: #fff;
  border: 1px solid #cdd6e1;
  border-radius: 0;
  padding: 10px 12px;
  margin-bottom: 10px;
}
.pp-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  border-bottom: 1.5px solid #17243a;
  padding-bottom: 6px;
  margin-bottom: 8px;
}
.pp-bin small {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.6rem;
  color: #647187;
}
.pp-bin strong {
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.pp-meta {
  color: #647187;
  font-weight: 600;
  font-size: 0.8rem;
}
@page {
  size: A4;
  margin: 0;
}
@media print {
  .no-print,
  .sidebar,
  header,
  .mobile-nav,
  #toast {
    display: none !important;
  }
  body {
    background: #fff;
  }
  .shell {
    margin: 0 !important;
  }
  main {
    max-width: none;
    padding: 0;
  }
  .print-sheet {
    max-width: none;
    padding: 8mm 8mm 11mm;
  }
  .print-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    max-width: none;
    padding: 1.2mm 8mm;
    border-top: 0.5pt solid #999;
    background: #fff;
    color: #000;
    font-size: 7.5pt;
  }
  .print-pallet {
    border: 0.5pt solid #000;
    border-radius: 0;
    page-break-inside: avoid;
    break-inside: avoid;
    margin-bottom: 2.5mm;
    padding: 2.5mm 3mm;
  }
  .pp-head {
    border-bottom: 1pt solid #000;
    padding-bottom: 1.5mm;
    margin-bottom: 1.5mm;
  }
  .pp-bin small {
    font-size: 5pt;
  }
  .pp-bin strong {
    font-size: 11pt;
  }
  .pp-meta {
    font-size: 7pt;
  }
  .pp-table td,
  .pp-table th {
    border-bottom: 0.5pt solid #999;
    font-size: 8pt;
    padding: 1.2mm 2mm;
  }
}
.lang-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  font-weight: 650;
  font-size: 0.9rem;
  color: #647187;
}
.lang-toggle {
  display: inline-flex;
  margin-left: auto;
}
.lang-opt {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 9px;
  border: 1px solid #cdd6e1;
  background: #fff;
  color: #4a5a70;
  font-weight: 700;
  font-size: 0.76rem;
  cursor: pointer;
}
.lang-opt + .lang-opt {
  border-left: 0;
}
.lang-opt img {
  width: 20px;
  height: 14px;
  display: block;
}
.lang-opt.on {
  background: #e8f5f1;
  border-color: #2e9b81;
  color: #17243a;
}
.aside-bottom .lang-toggle {
  margin: 0 0 10px;
  justify-content: center;
}
.aside-bottom .lang-opt {
  background: #213553;
  border-color: #3a4b62;
  color: #aec3d6;
}
.aside-bottom .lang-opt.on {
  background: #2c405b;
  border-color: #74c9ae;
  color: #fff;
}
