:root {
  --bg: #f4f5f6;
  --surface: #ffffff;
  --surface-2: #f5f6f8;
  --border: #e6e8eb;
  --border-strong: #d6d9de;
  --ink: #1b2733;
  --ink-2: #3a4553;
  --muted: #6b7682;

  --nav-bg: #ffffff;
  --nav-bg-2: #e7f4ec;          /* pale green — active nav pill */
  --nav-ink: #45505e;
  --nav-active: #157a3d;        /* green — active nav text */
  --accent: #1a8f4c;            /* Visma green */
  --accent-2: #15793f;          /* darker green — hover */

  --ok-bg: #e4f6e9;   --ok-ink: #2e8b4f;
  --warn-bg: #fff4d1; --warn-ink: #9a7418;
  --orange-bg: #fdecd8; --orange-ink: #b5651d;
  --purple-bg: #eee6fb; --purple-ink: #6b34c9;
  --err-bg: #fdecec;  --err-ink: #d33434;
  --gray-bg: #eef1f4; --gray-ink: #65707c;
  --blue-bg: #e4edfb; --blue-ink: #1a56c4;

  --row-sel-bg: #eaf1fb;        /* blue — selected grid row */
  --row-sel-bar: #1a8f4c;       /* green/teal — selected row left accent */

  --sidebar-w: 248px;

  --radius: 6px;
  --radius-card: 8px;
  --shadow: none;                               /* flat panels — NXT uses borders, not drop shadows */
  --shadow-lg: 0 10px 28px rgba(16, 24, 40, 0.12);
  --focus: 0 0 0 3px rgba(26, 143, 76, 0.18);   /* green focus ring */
}

html { font-size: 15px; }
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Inter", "Segoe UI", Roboto, -apple-system, BlinkMacSystemFont, system-ui, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Sidebar — flush full-height panel, like Business NXT */
.sidebar {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: var(--sidebar-w);
  background: var(--nav-bg);
  border-right: 1px solid var(--border-strong);
  display: flex;
  flex-direction: column;
  z-index: 20;
  overflow: hidden;
}
.sidebar-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 16px 16px 14px;
  border-bottom: 1px solid var(--border);
}
.sidebar-brand .logo-img { height: 28px; display: block; border-radius: 5px; }
.sidebar-brand-text { line-height: 1.3; }
.sidebar-brand-text b { display: block; color: var(--ink); font-size: 1rem; font-weight: 700; }
.sidebar-brand-text span { display: block; margin-top: 2px; font-size: 0.72rem; color: var(--muted); }

/* Company box under the brand — mirrors NXT's company selector */
.sidebar-company {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 12px 14px 4px;
  padding: 9px 11px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: default;
}
.sidebar-company svg { width: 16px; height: 16px; color: var(--muted); flex: none; }
.sidebar-company span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.sidebar-nav { display: flex; flex-direction: column; padding: 8px 0; gap: 2px; overflow-y: auto; }
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--nav-ink);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  margin: 0 12px;
  padding: 9px 11px;
  border-radius: var(--radius);
  transition: background 0.12s ease, color 0.12s ease;
}
.sidebar-nav a:hover { color: var(--ink); background: var(--surface-2); }
.sidebar-nav a.active { color: var(--nav-active); background: var(--nav-bg-2); font-weight: 600; }
.nav-ico { width: 19px; height: 19px; flex: none; }

.sidebar-user {
  margin-top: auto;
  padding: 12px 14px 14px;
  border-top: 1px solid var(--border);
}
.sidebar-user-card { display: flex; align-items: center; gap: 10px; padding: 4px 4px 10px; }
.sidebar-user-card .avatar {
  width: 34px; height: 34px; border-radius: 999px; flex: none;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 0.78rem;
  background: linear-gradient(135deg, var(--accent) 0%, #34b36a 100%);
}
.sidebar-user-card .su-meta { line-height: 1.25; min-width: 0; }
.sidebar-user-card .su-meta b { display: block; font-size: 0.84rem; color: var(--ink); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user-card .su-meta span { display: block; font-size: 0.74rem; color: var(--muted); }
.sidebar-user-name { color: var(--ink); font-size: 0.85rem; font-weight: 600; margin-bottom: 10px; }
.sidebar-logout {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 9px 11px;
  background: transparent;
  border: none;
  border-radius: var(--radius);
  color: var(--err-ink);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.12s ease;
}
.sidebar-logout:hover { background: var(--err-bg); }
.btn-block { display: flex; width: 100%; }

.logo-img { height: 30px; display: block; }

.lang-switch { display: flex; gap: 6px; margin-bottom: 10px; }
.lang-btn {
  flex: 1; padding: 5px 0; font-size: 0.72rem; font-weight: 700;
  background: transparent; color: var(--nav-ink);
  border: 1px solid var(--border-strong); border-radius: 6px; cursor: pointer;
}
.lang-btn.active { background: var(--nav-bg-2); color: var(--nav-active); border-color: var(--accent); }

.content {
  margin-left: var(--sidebar-w);
  padding: 20px 24px 44px;
  max-width: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); box-shadow: var(--shadow); overflow: hidden; }
.card-title {
  padding: 13px 18px;
  font-weight: 700;
  color: var(--ink);
  font-size: 0.98rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
}
.card-title .count, .card-title .muted { color: var(--muted); font-weight: 500; font-size: 0.85rem; }
.card-body { padding: 16px 18px; }
.muted { color: var(--muted); font-size: 0.82rem; font-weight: 400; }
.sub { color: var(--muted); font-size: 0.85rem; }
h3 { font-size: 0.95rem; color: var(--ink); }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  padding: 15px 17px;
}
.stat-label { font-size: 0.74rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; }
.stat-value { font-size: 1.9rem; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; margin-top: 4px; line-height: 1.1; }
.stat-sub { font-size: 0.75rem; color: var(--muted); margin-top: 3px; }

.form-row { display: flex; gap: 16px; flex-wrap: wrap; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field.grow { flex: 1; min-width: 240px; }
.field label, .field-label { font-size: 0.8rem; font-weight: 600; color: var(--ink-2); display: block; }
.field input, .rc-input, .note-box input, select.select {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 9px 11px;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--surface);
}
.field input { width: 170px; }
.field.grow input { width: 100%; font-size: 1.05rem; }
.field input:focus, .rc-input:focus, .note-box input:focus, select.select:focus { outline: none; border-color: var(--accent); box-shadow: var(--focus); }
#scan-input:not(:focus) { border-color: var(--err-ink); background: #fdf4f4; }
.rc-input { width: 240px; max-width: 60vw; font-size: 1rem; }
#rc-qty { width: 110px; font-size: 1.15rem; text-align: center; }
.note-box { display: flex; gap: 8px; }
.note-box input { width: 280px; max-width: 55vw; font-size: 0.9rem; }
select.select { padding: 8px 10px; font-size: 0.9rem; }

.kv-table { width: 100%; border-collapse: collapse; }
.kv-table th {
  width: 200px;
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: 0.82rem;
  font-weight: 600;
  text-align: left;
  vertical-align: middle;
  padding: 9px 13px;
  border-bottom: 1px solid var(--surface);
}
.kv-table td { padding: 11px 13px; border-bottom: 1px solid var(--border); font-size: 0.95rem; vertical-align: middle; }
.kv-table tr:last-child td { border-bottom: none; }
.kv-strong { font-size: 1.15rem; font-weight: 700; color: var(--ink); }
.kv-table td .sub { color: var(--muted); font-size: 0.85rem; }

.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--gray-bg);
  color: var(--gray-ink);
  white-space: nowrap;
}
.badge.lg { font-size: 0.9rem; padding: 4px 13px; }
.badge-green { background: var(--ok-bg); color: var(--ok-ink); }
.badge-yellow { background: var(--warn-bg); color: var(--warn-ink); }
.badge-orange { background: var(--orange-bg); color: var(--orange-ink); }
.badge-purple { background: var(--purple-bg); color: var(--purple-ink); }
.badge-red { background: var(--err-bg); color: var(--err-ink); }
.badge-gray { background: var(--gray-bg); color: var(--gray-ink); }
.badge-blue { background: var(--blue-bg); color: var(--blue-ink); }

/* Page header — flat title bar (NXT shows the title on the page, not a card) */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-strong);
  border-radius: 0;
  box-shadow: none;
  padding: 2px 2px 13px;
}
.page-header-title { font-size: 1.2rem; font-weight: 700; color: var(--ink); }
.page-header-sub { display: block; margin-top: 2px; font-size: 0.82rem; font-weight: 400; color: var(--muted); }
.page-header-right { display: flex; align-items: center; gap: 14px; }

.search-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 8px 13px;
  min-width: 260px;
}
.search-pill svg { width: 18px; height: 18px; flex: none; color: var(--muted); }
.search-pill input { border: none; background: transparent; outline: none; font-size: 0.9rem; color: var(--ink); width: 100%; }
.search-pill input::placeholder { color: var(--muted); }

.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink-2);
  cursor: pointer;
}
.icon-btn:hover { background: var(--surface-2); }
.icon-btn.off { opacity: 0.45; }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn .dot { position: absolute; top: 7px; right: 7px; width: 8px; height: 8px; border-radius: 999px; background: var(--err-ink); }

/* Notification bell dropdown */
.notif { position: relative; display: inline-flex; }
.notif-panel {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 200;
  width: 320px; max-height: 60vh; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: var(--radius-card); box-shadow: var(--shadow-lg);
}
.notif-head { padding: 12px 14px; font-weight: 700; border-bottom: 1px solid var(--border); }
.notif-empty { padding: 18px 14px; color: var(--muted); font-size: 0.9rem; }
.notif-list { list-style: none; margin: 0; padding: 0; }
.notif-item { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border-bottom: 1px solid var(--border); border-left: 3px solid transparent; }
.notif-item:last-child { border-bottom: none; }
.notif-item.k-ready { border-left-color: var(--ok-ink, #2a9d54); }
.notif-item.k-short { border-left-color: var(--err-ink, #b3261e); }
.notif-item-title { font-size: 0.9rem; font-weight: 600; color: var(--ink); }
.notif-item-sub { font-size: 0.8rem; color: var(--muted); }

.user-chip { display: flex; align-items: center; gap: 11px; }
.user-chip .avatar {
  width: 38px; height: 38px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 0.82rem;
  background: linear-gradient(135deg, var(--accent) 0%, #34b36a 100%);
}
.user-chip .avatar svg { width: 20px; height: 20px; }
.user-chip .user-meta { line-height: 1.25; }
.user-chip .user-meta b { display: block; font-size: 0.9rem; color: var(--ink); font-weight: 600; }
.user-chip .user-meta span { display: block; font-size: 0.78rem; color: var(--muted); }

.filter-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: var(--radius); padding: 8px 14px;
  font-size: 0.88rem; font-weight: 500; color: var(--ink); cursor: pointer;
}
.filter-btn:hover { background: var(--surface-2); }
.filter-btn svg { width: 18px; height: 18px; color: var(--ink-2); }

.cell-link { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 600; text-decoration: none; }
.cell-link:hover { text-decoration: underline; }
.cell-link svg { width: 18px; height: 18px; flex: none; }

.pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; }
.pagination .page-info { font-size: 0.82rem; color: var(--muted); }
.pagination .pager { display: flex; align-items: center; gap: 8px; }
.page-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 30px; height: 30px; padding: 0 8px;
  border: 1px solid var(--border-strong); border-radius: var(--radius);
  background: var(--surface); color: var(--ink-2); font-size: 0.85rem; font-weight: 600; cursor: pointer;
}
.page-btn:hover:not(:disabled) { background: var(--surface-2); }
.page-btn:disabled { opacity: 0.4; cursor: default; }
.page-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.page-btn svg { width: 18px; height: 18px; }

.btn {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 9px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { background: var(--accent-2); }
.btn:active { opacity: 0.92; }
.btn.done { background: #aeb7c2; cursor: default; }
.btn-secondary { background: var(--surface); color: var(--accent); border: 1px solid var(--border-strong); }
.btn-secondary:hover { background: var(--surface-2); }
.btn-danger { background: var(--err-ink); }
.btn-danger:hover { background: #c22e2e; }
.btn-sm { padding: 6px 12px; font-size: 0.78rem; }

.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inv-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }

.qty-box { display: flex; gap: 8px; align-items: center; }
.qty-label { font-size: 0.85rem; font-weight: 600; color: var(--ink-2); }
.qty-btn { width: 52px; height: 46px; font-size: 1.4rem; padding: 0; }
.qty-input {
  width: 90px; height: 46px; text-align: center; font-size: 1.3rem;
  border: 1px solid var(--border-strong); border-radius: var(--radius); color: var(--ink);
}
.qty-input:focus { outline: none; border-color: var(--accent); box-shadow: var(--focus); }
.qty-hint { font-size: 0.95rem; }

/* Data grid — dense, gridded header, blue row selection (Business NXT look) */
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.data-table th {
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  text-align: left;
  padding: 8px 12px;
  white-space: nowrap;
  border-bottom: 1px solid var(--border-strong);
  border-right: 1px solid var(--border);
}
.data-table th:last-child { border-right: none; }
.data-table td { padding: 7px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.data-table tr:last-child td { border-bottom: none; }
.data-table td small { color: var(--muted); }
.data-table .num { font-variant-numeric: tabular-nums; }
.data-table tr.batch-done td { color: var(--muted); }
.data-table tbody tr:hover td { background: var(--surface-2); }
.line-row { cursor: pointer; }
.line-row.row-active td { background: var(--row-sel-bg); }
.line-row.row-active td:first-child { box-shadow: inset 3px 0 0 var(--row-sel-bar); }
.data-table tbody tr.row-active:hover td { background: var(--row-sel-bg); }

.data-table.table-grid th, .data-table.table-grid td { border: 1px solid var(--border); }
.data-table.table-grid th { background: var(--surface-2); color: var(--ink-2); letter-spacing: 0; font-size: 0.76rem; }
.data-table.table-grid tr:last-child td { border-bottom: 1px solid var(--border); }

.aisle-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.aisle-btn { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 92px; padding: 12px 14px; }
.aisle-code { font-size: 1.5rem; font-weight: 700; line-height: 1; }
.aisle-count { font-size: 0.72rem; opacity: 0.85; }
.aisle-actions { display: flex; gap: 8px; margin-bottom: 12px; }

.reveal-box {
  display: flex; gap: 16px; flex-wrap: wrap; margin-top: 8px;
  padding: 10px 14px; border-radius: var(--radius); font-size: 0.95rem;
  background: var(--gray-bg); color: var(--ink);
}
.reveal-num { font-variant-numeric: tabular-nums; font-weight: 600; }
.reveal-ok { background: var(--ok-bg); color: var(--ok-ink); }
.reveal-over { background: var(--warn-bg); color: var(--warn-ink); }
.reveal-under { background: var(--err-bg); color: var(--err-ink); }
.diff-pill { display: inline-block; padding: 1px 9px; border-radius: 999px; font-weight: 700; font-variant-numeric: tabular-nums; }

.check-row { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 4px; }
.check { display: inline-flex; align-items: center; gap: 6px; font-size: 0.92rem; }
.check input { width: 16px; height: 16px; accent-color: var(--accent); }

.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.login-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); box-shadow: var(--shadow-lg); padding: 32px 30px; width: 100%; max-width: 360px; }
.login-title { font-size: 1.35rem; color: var(--ink); margin-bottom: 4px; }
.login-error { color: var(--err-ink); font-size: 0.9rem; margin-top: 12px; min-height: 1.1em; }

.sessionbar { flex: none; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); box-shadow: var(--shadow); padding: 12px 16px; max-height: 42vh; overflow: auto; }
.scanbar { flex: none; display: flex; gap: 14px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); box-shadow: var(--shadow); padding: 12px 16px; }
.resultbar { flex: none; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); box-shadow: var(--shadow); max-height: 44vh; overflow: auto; }
.resultbar .kv-table th { width: 170px; }
.listcard { flex: 1 1 auto; min-height: 120px; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); box-shadow: var(--shadow); overflow: hidden; }
.listcard-head {
  flex: none; display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 12px 16px; font-weight: 700; color: var(--ink); border-bottom: 1px solid var(--border);
}
.listcard-body { flex: 1; min-height: 0; overflow: auto; }
.listcard-body > .sub { display: block; padding: 12px 14px; }
.listcard-body .data-table th { position: sticky; top: 0; z-index: 1; background: var(--surface-2); }
.listcard-body .data-table td:first-child, .listcard-body .data-table th:first-child { padding-left: 16px; }

.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.35);
}
.loading-box {
  background: var(--surface, #fff);
  color: var(--accent-2, var(--ink, #0f172a));
  padding: 24px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  min-width: 190px;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-lg);
}
.loading-label { color: var(--ink, #0f172a); font-size: 0.95rem; font-weight: 600; }
.overlay-fade-enter-active, .overlay-fade-leave-active { transition: opacity 0.15s ease; }
.overlay-fade-enter-from, .overlay-fade-leave-to { opacity: 0; }

.spinner {
  display: inline-block;
  border-style: solid;
  border-color: currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spinner-rotate 0.6s linear infinite;
  vertical-align: -0.15em;
}
@keyframes spinner-rotate { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 1.2s; } }

.loc-error { color: var(--err-ink, #b3261e); }

.menu-heading { font-size: 1rem; font-weight: 700; color: var(--ink); margin-bottom: 14px; }
.menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.menu-box {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 17px;
  text-decoration: none;
  transition: background 0.12s ease, border-color 0.12s ease;
}
.menu-box:hover { border-color: var(--accent); background: var(--surface-2); }
.menu-box-icon {
  flex: none;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent) 0%, #34b36a 100%);
}
.menu-box-icon svg { width: 22px; height: 22px; }
.menu-box-body { flex: 1; min-width: 0; }
.menu-box-title { font-size: 1rem; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.menu-box-desc { color: var(--muted); font-size: 0.83rem; line-height: 1.5; }
.menu-box-arrow { flex: none; width: 20px; height: 20px; color: var(--muted); margin-top: 2px; transition: color 0.12s ease; }
.menu-box:hover .menu-box-arrow { color: var(--accent); }

.mini-input { width: 70px; border: 1px solid var(--border-strong); border-radius: var(--radius); padding: 5px 7px; font-size: 0.9rem; color: var(--ink); }
.mini-input:focus { outline: none; border-color: var(--accent); }
.err { color: var(--err-ink); }

.pick-list { display: flex; flex-direction: column; gap: 10px; }
.pick-item {
  display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap;
  border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; text-decoration: none; color: var(--ink);
  background: var(--surface);
}
.pick-item:hover { border-color: var(--accent); }
.pick-item-main b { display: block; font-size: 1.05rem; }
.pick-item-meta { display: flex; align-items: center; gap: 14px; }
.pick-date { font-weight: 600; font-size: 0.9rem; }
.pick-error { color: var(--err-ink, #b3261e); margin-bottom: 8px; }

/* Active order — the only selectable row */
.pick-item--current { border-left: 4px solid var(--accent); }
.pick-now { font-weight: 700; font-size: 0.85rem; color: var(--accent); text-transform: uppercase; letter-spacing: 0.03em; }

/* Locked rows — shown for context, not clickable until the active one is done */
.pick-item--locked { opacity: 0.6; background: var(--surface-2); cursor: default; }
.pick-item--locked:hover { border-color: var(--border); }
.pick-lock { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 0.85rem; font-weight: 600; }
.pick-lock svg { width: 15px; height: 15px; }

/* Pick overview — voice announcement toggle */
.ov-toolbar { display: flex; justify-content: flex-end; margin-bottom: 12px; }
.voice-toggle { display: inline-flex; align-items: center; gap: 7px; }
.voice-toggle svg { width: 16px; height: 16px; }
.voice-toggle.off { color: var(--muted); border-color: var(--border-strong); background: var(--surface-2); }

.pick-toast {
  position: fixed; top: 18px; right: 18px; z-index: 300; cursor: pointer;
  background: var(--ink); color: #fff; padding: 14px 18px; min-width: 260px; max-width: 360px;
  border-radius: var(--radius); box-shadow: var(--shadow-lg); border-left: 4px solid #2a9d54;
}
.pick-toast-title { font-weight: 700; margin-bottom: 2px; }
.pick-toast-body { font-size: 0.9rem; opacity: 0.9; }
.pick-toast-actions { display: flex; gap: 8px; margin-top: 10px; }
.btn-ghost { background: transparent; border: 1px solid rgba(255, 255, 255, 0.4); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }
.toast-enter-active, .toast-leave-active { transition: opacity 0.2s ease, transform 0.2s ease; }
.toast-enter-from, .toast-leave-to { opacity: 0; transform: translateY(-8px); }

.pick-notes { flex: none; display: flex; gap: 12px; align-items: flex-start; background: var(--warn-bg); border: 1px solid var(--warn-ink); border-left-width: 4px; border-radius: var(--radius-card); padding: 12px 16px; }
.pick-notes-ico { width: 22px; height: 22px; flex: none; color: var(--warn-ink); margin-top: 1px; }
.pick-notes-title { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--warn-ink); }
.pick-notes-text { font-size: 1.05rem; font-weight: 600; color: var(--ink); line-height: 1.4; margin-top: 3px; overflow-wrap: anywhere; }

.pick-progress { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.pick-progress-bar { flex: 1; height: 8px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.pick-progress-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent), #34b36a); transition: width 0.35s ease; min-width: 8px; }
.pick-progress-pct { font-size: 0.85rem; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; min-width: 38px; text-align: right; }

.resultbar-pick { flex: 1 1 auto; max-height: none; display: flex; align-items: center; justify-content: center; padding: 24px; }

.pick-one { width: 100%; max-width: 560px; margin: 0 auto; text-align: center; }
.pick-one-step { font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.pick-one-name { font-size: 2.6rem; font-weight: 800; line-height: 1.08; margin: 6px 0 6px; color: var(--ink); overflow-wrap: anywhere; }
.pick-one-meta { font-size: 0.95rem; color: var(--muted); }
.pick-one-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 24px 0; }
.fact {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 16px 18px;
  text-align: left;
}
.fact-location { background: var(--nav-bg-2); border-color: #bfe3cc; }
.fact-label { display: flex; align-items: center; gap: 7px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.fact-label svg { width: 16px; height: 16px; }
.fact-location .fact-label { color: var(--accent); }
.fact-value { font-weight: 800; margin-top: 8px; line-height: 1; }
.fact-loc { font-size: 2.3rem; letter-spacing: 0.01em; color: var(--ink); }
.fact-qty { font-size: 2.3rem; font-variant-numeric: tabular-nums; color: var(--accent); }
.fact-unit { font-size: 1rem; color: var(--muted); font-weight: 600; margin-left: 6px; }

.pick-one-confirm { margin: 8px 0; }
.scan-input-lg {
  font-size: 1.35rem; padding: 14px 18px; width: 100%; max-width: 440px; text-align: center;
  border: 2px solid var(--border-strong); border-radius: var(--radius-card); color: var(--ink); background: var(--surface);
}
.scan-input-lg:focus { outline: none; border-color: var(--accent); box-shadow: var(--focus); }
.qty-row { display: flex; gap: 12px; align-items: center; justify-content: center; margin-top: 16px; }
.qty-lbl { font-weight: 700; color: var(--muted); }
.qty-input-lg {
  font-size: 2rem; font-weight: 800; width: 150px; text-align: center; padding: 10px; font-variant-numeric: tabular-nums;
  border: 2px solid var(--border-strong); border-radius: var(--radius-card); color: var(--ink); background: var(--surface);
}
.qty-input-lg:focus { outline: none; border-color: var(--accent); box-shadow: var(--focus); }
.pick-one-actions { display: flex; gap: 12px; align-items: center; justify-content: center; flex-wrap: wrap; margin-top: 24px; }
.btn-lg { font-size: 1.3rem; padding: 15px 36px; border-radius: var(--radius-card); box-shadow: var(--shadow); }
.pick-warn { color: var(--err-ink, #b3261e); }
.btn-link { background: none; border: none; color: var(--accent, #24496f); cursor: pointer; font-size: 0.82rem; text-decoration: underline; padding: 0; margin-left: 6px; }

.board-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: start; }
@media (max-width: 1100px) { .board-cols { grid-template-columns: 1fr; } }

.pb-head-meta { display: flex; align-items: center; gap: 14px; }
.pb-clock { font-size: 1.15rem; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.pb-live { display: inline-flex; align-items: center; gap: 6px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ok-ink); }
.pb-live.off { color: var(--warn-ink); }
.pb-live .dot { width: 8px; height: 8px; border-radius: 999px; background: var(--ok-ink); }
.pb-live.off .dot { background: var(--warn-ink); }

.pb-progress-cell { display: flex; align-items: center; gap: 8px; min-width: 120px; }
progress.pb-progress { appearance: none; -webkit-appearance: none; width: 90px; height: 8px; border: none; border-radius: 999px; background: var(--surface-2); }
progress.pb-progress::-webkit-progress-bar { background: var(--surface-2); border-radius: 999px; }
progress.pb-progress::-webkit-progress-value { background: var(--accent); border-radius: 999px; }
progress.pb-progress::-moz-progress-bar { background: var(--accent); border-radius: 999px; }
.pb-progress-pct { font-size: 0.8rem; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }

.pb-attention { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pb-empty { color: var(--muted); text-align: center; padding: 20px; font-size: 0.9rem; }

.modal-backdrop { position: fixed; inset: 0; background: rgba(31, 41, 55, 0.4); display: flex; align-items: center; justify-content: center; padding: 24px; z-index: 100; }
.modal { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); width: 100%; max-width: 900px; max-height: 86vh; display: flex; flex-direction: column; box-shadow: var(--shadow-lg); overflow: hidden; }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--border); }
.modal-title { font-size: 1.2rem; font-weight: 700; color: var(--ink); }
.modal-sub { color: var(--muted); font-size: 0.9rem; margin-top: 2px; }
.modal-close { border: none; background: var(--surface-2); color: var(--ink-2); width: 34px; height: 34px; border-radius: var(--radius); font-size: 1rem; cursor: pointer; }
.modal-close:hover { background: var(--border-strong); }
.modal-meta { display: flex; gap: 12px; align-items: center; padding: 14px 22px 0; color: var(--ink-2); font-size: 0.9rem; }
.modal-body { overflow: auto; padding: 16px 22px 20px; }
.modal-body .data-table th { position: sticky; top: 0; background: var(--surface-2); }
.data-table tr.row-short td { background: var(--err-bg); }

@media (max-width: 820px) {
  .sidebar { position: static; inset: auto; width: auto; flex-direction: row; align-items: center; flex-wrap: wrap; border: none; border-bottom: 1px solid var(--border-strong); border-radius: 0; box-shadow: none; }
  .sidebar-brand { flex-direction: row; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: none; }
  .sidebar-company { display: none; }
  .sidebar-nav { flex-direction: row; overflow-x: auto; padding: 6px; gap: 4px; }
  .sidebar-nav a { margin: 0; padding: 9px 14px; }
  .sidebar-user { margin: 0 0 0 auto; border-top: none; padding: 8px 14px; display: flex; align-items: center; gap: 10px; }
  .sidebar-user-card { padding: 0; }
  .sidebar-user-name { margin-bottom: 0; }
  .sidebar-logout { width: auto; }
  .content { margin-left: 0; padding: 16px; }
  .page-header { flex-direction: column; align-items: flex-start; gap: 12px; }
}
@media (max-width: 700px) {
  .kv-table th { width: 130px; }
  .kv-strong { font-size: 1.05rem; }
  .field input { width: 140px; }
}
