/* Digisteri Varastohallinta: admin views (varasto.html) and the counting view (/<slug>/inv). */
:root {
  --v-page: #f4f2ec; --v-surface: #ffffff; --v-ink: #14161c; --v-muted: #5d6270; --v-line: #dcdcd4; --v-line-strong: #c3c3b9;
  --v-accent: #1b33ff; --v-accent-ink: #ffffff; --v-accent-soft: #e8ebff; --v-ok: #05603a; --v-ok-soft: #e3f4ea; --v-warn: #8a4b00; --v-warn-soft: #fff1dc;
  --v-err: #b42318; --v-err-soft: #fdecea; --v-focus: #f59e0b; --v-radius: 10px; --v-shadow: 0 1px 2px rgba(20, 20, 15, .06);
}
* { box-sizing: border-box; }
.v-body [hidden] { display: none !important; }
html, body.v-body { margin: 0; background: var(--v-page); color: var(--v-ink); font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; line-height: 1.45; -webkit-text-size-adjust: 100%; }
.v-body :focus-visible { outline: 3px solid var(--v-focus); outline-offset: 2px; }
.v-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.v-muted { color: var(--v-muted); }
.v-small { font-size: .875rem; }
.v-eyebrow { margin: 0; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--v-muted); }
h1, h2, h3 { line-height: 1.2; }
.v-body h1 { font-size: 1.45rem; margin: 2px 0 4px; }
.v-body h2 { font-size: 1.15rem; margin: 0 0 6px; }
.v-body h3 { font-size: 1rem; margin: 0 0 6px; }
.v-card { background: var(--v-surface); border: 1px solid var(--v-line); border-radius: var(--v-radius); padding: 16px; box-shadow: var(--v-shadow); min-width: 0; }
.v-stack { display: flex; flex-direction: column; gap: 10px; }
.v-stack > label, .v-field > label { font-weight: 600; font-size: .92rem; margin-bottom: -4px; }
.v-row { display: flex; gap: 8px; align-items: stretch; flex-wrap: wrap; }
.v-row > input, .v-row > select { flex: 1 1 140px; min-width: 0; }
.v-row-split > * { flex: 1 1 0; }
.v-body input:not([type=checkbox]):not([type=radio]), .v-body select, .v-body textarea {
  font: inherit; font-size: 16px; min-height: 44px; padding: 8px 10px; border: 1px solid var(--v-line-strong); border-radius: 8px; background: #fff; color: var(--v-ink); width: 100%; min-width: 0;
}
.v-body textarea { min-height: 80px; resize: vertical; }
.v-body input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--v-accent); }
.v-check { display: flex; gap: 10px; align-items: center; min-height: 44px; font-weight: 500; }
.v-btn { font: inherit; font-size: 15px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 8px 14px; border-radius: 8px;
  border: 1px solid var(--v-line-strong); background: var(--v-surface); color: var(--v-ink); cursor: pointer; text-decoration: none; text-align: center; }
.v-btn:hover { border-color: var(--v-ink); }
.v-btn:disabled { opacity: .55; cursor: not-allowed; }
.v-btn-primary { background: var(--v-accent); border-color: var(--v-accent); color: var(--v-accent-ink); font-weight: 600; }
.v-btn-primary:hover { border-color: var(--v-ink); }
.v-btn-danger { color: var(--v-err); border-color: #e6b4ae; }
.v-btn-big { min-height: 56px; font-size: 17px; width: 100%; }
.v-btn-small { min-height: 36px; padding: 4px 10px; font-size: 14px; }
.v-linkbtn { font: inherit; background: none; border: 0; color: var(--v-accent); text-decoration: underline; cursor: pointer; padding: 10px 0; min-height: 44px; text-align: left; }
.v-error:empty, .v-ok:empty { display: none; }
.v-error { color: var(--v-err); background: var(--v-err-soft); border-radius: 8px; padding: 10px 12px; margin: 0; }
.v-ok { color: var(--v-ok); background: var(--v-ok-soft); border-radius: 8px; padding: 10px 12px; margin: 0; }
.v-warnbox { color: var(--v-warn); background: var(--v-warn-soft); border-radius: 8px; padding: 10px 12px; margin: 0; }
.v-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.v-pick { width: 100%; text-align: left; font: inherit; display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; min-height: 56px; border: 1px solid var(--v-line); border-radius: 8px; background: #fff; cursor: pointer; color: var(--v-ink); }
.v-pick:hover { border-color: var(--v-ink); }
.v-seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border: 1px solid var(--v-line-strong); border-radius: 10px; padding: 3px; gap: 3px; background: var(--v-page); }
.v-seg button { font: inherit; font-weight: 600; min-height: 44px; border: 0; border-radius: 8px; background: transparent; color: var(--v-ink); cursor: pointer; padding: 6px 8px; }
.v-seg button.on { background: var(--v-surface); box-shadow: 0 1px 3px rgba(0, 0, 0, .15); color: var(--v-accent); }
.v-badge { display: inline-flex; align-items: center; gap: 4px; font-size: .78rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--v-page); color: var(--v-muted); white-space: nowrap; }
.v-badge.warn { background: var(--v-warn-soft); color: var(--v-warn); }
.v-badge.err { background: var(--v-err-soft); color: var(--v-err); }
.v-row-short > td { background: var(--v-err-soft); }
.v-badge.ok { background: var(--v-ok-soft); color: var(--v-ok); }
.v-badge.accent { background: var(--v-accent-soft); color: var(--v-accent); }

/* ---------- counting view ---------- */
.inv { max-width: 520px; margin: 0 auto; padding: 16px 16px calc(32px + env(safe-area-inset-bottom)); }
.v-inv-head { margin-bottom: 4px; }
.v-inv-head h1 { font-size: 1.3rem; }
.v-product { border: 1px solid var(--v-line); border-radius: 10px; padding: 12px; background: var(--v-page); }
.v-product h2 { font-size: 1.25rem; }
.v-product p { margin: 0; }
.v-stockline { font-size: 1.05rem; margin: 4px 0 0; }
.v-unit { display: inline-flex; align-items: center; padding: 0 12px; font-weight: 600; border: 1px solid var(--v-line); border-radius: 8px; background: var(--v-page); }
#v-qty { font-size: 22px; font-weight: 600; flex: 2 1 140px; }
.v-preview { margin: 0; font-size: .95rem; color: var(--v-muted); min-height: 1.4em; }
.v-more summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; color: var(--v-muted); }
.v-more[open] { display: flex; flex-direction: column; gap: 6px; }
.v-video-wrap { position: relative; border-radius: 12px; overflow: hidden; background: #000; aspect-ratio: 3 / 4; max-height: 60vh; }
.v-video { width: 100%; height: 100%; object-fit: cover; display: block; }
.v-video-frame { position: absolute; inset: 18% 12%; border: 3px solid rgba(255, 255, 255, .85); border-radius: 14px; box-shadow: 0 0 0 9999px rgba(0, 0, 0, .25); }
.v-done { text-align: center; align-items: stretch; }
.v-done-mark { width: 64px; height: 64px; margin: 4px auto; border-radius: 50%; background: var(--v-ok-soft); color: var(--v-ok); display: grid; place-items: center; font-size: 34px; font-weight: 700; }

/* ---------- admin ---------- */
.v-app { max-width: 1280px; margin: 0 auto; padding: 16px 16px 64px; }
.v-app:focus, .v-app:focus-visible { outline: none; }
.v-alerts li { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 8px; align-items: center; }
.v-alerts li .v-muted { grid-column: 2 / 3; font-size: .88rem; }
.v-crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .9rem; color: var(--v-muted); margin: 0 0 8px; }
.v-crumbs a { color: var(--v-muted); }
.v-pagehead { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: flex-end; margin: 0 0 12px; }
.v-pagehead > div { min-width: 0; }
.v-tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: thin; border-bottom: 1px solid var(--v-line); margin: 0 0 16px; -webkit-overflow-scrolling: touch; }
.v-tabs a { flex: 0 0 auto; padding: 10px 12px; min-height: 44px; display: inline-flex; align-items: center; color: var(--v-muted); text-decoration: none; font-weight: 600; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.v-tabs a[aria-current=page] { color: var(--v-ink); border-bottom-color: var(--v-accent); }
.v-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.v-grid-2 { display: grid; gap: 16px; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
@media (max-width: 900px) { .v-grid-2 { grid-template-columns: minmax(0, 1fr); } }
.v-kpis { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); margin: 0 0 16px; }
.v-kpi { background: var(--v-surface); border: 1px solid var(--v-line); border-radius: var(--v-radius); padding: 12px 14px; }
.v-kpi b { display: block; font-size: 1.6rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.v-kpi span { color: var(--v-muted); font-size: .85rem; }
.v-kpi.warn b { color: var(--v-warn); }
.v-kpi.err b { color: var(--v-err); }
.v-invcard { display: flex; flex-direction: column; gap: 8px; }
.v-invcard p { margin: 0; }
.v-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 12px; }
.v-toolbar > input[type=search] { flex: 1 1 220px; width: auto; }
.v-toolbar > select { flex: 0 1 200px; width: auto; }
.v-inline-date { display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; font-weight: 600; }
.v-body .v-inline-date input[type=date] { width: auto; }
.v-tablewrap { overflow-x: auto; border: 1px solid var(--v-line); border-radius: var(--v-radius); background: var(--v-surface); }
.v-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.v-table th, .v-table td { padding: 8px 10px; border-bottom: 1px solid var(--v-line); text-align: left; vertical-align: middle; }
.v-table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--v-muted); background: #fafaf7; position: sticky; top: 0; white-space: nowrap; }
.v-table td.num, .v-table th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.v-table tr:last-child td { border-bottom: 0; }
.v-table tbody tr.click { cursor: pointer; }
.v-table tbody tr.click:hover { background: #f7f8ff; }
.v-table a { color: var(--v-ink); font-weight: 600; }
.v-table input, .v-table select { min-height: 36px !important; padding: 4px 8px !important; font-size: 15px !important; }
/* Sortable headers (varasto-app.js Sort): the whole header is the button; the menu replaces them on phone cards. */
.v-table th[data-label] { padding: 0; }
.v-sortbtn { all: unset; box-sizing: border-box; display: flex; gap: 4px; align-items: center; width: 100%; min-height: 36px; padding: 8px 10px; cursor: pointer; font: inherit; color: inherit; text-transform: inherit; letter-spacing: inherit; }
.v-table th.num .v-sortbtn { justify-content: flex-end; }
.v-sortbtn:hover { color: var(--v-ink); }
.v-sortbtn:focus-visible { outline: 3px solid var(--v-focus); outline-offset: -3px; }
.v-sortmark { font-size: .75rem; opacity: .45; }
.v-sortmark::after { content: attr(data-mark); }
.v-table th[aria-sort] { color: var(--v-ink); }
.v-table th[aria-sort] .v-sortmark { opacity: 1; color: var(--v-accent); }
.v-sortbar { display: none; }
@media (max-width: 640px) {
  .v-sortbar { display: flex; gap: 8px; align-items: center; margin: 0 0 8px; font-weight: 600; font-size: .92rem; }
  .v-sortbar select { flex: 1 1 auto; }
}
@media print { .v-sortbar, .v-sortmark { display: none !important; } }
/* Phones: product rows become compact cards instead of a scaled desktop table. */
@media (max-width: 640px) {
  .v-table.v-cards thead { display: none; }
  .v-table.v-cards, .v-table.v-cards tbody, .v-table.v-cards tr, .v-table.v-cards td { display: block; width: 100%; }
  .v-table.v-cards tr { padding: 10px 12px; border-bottom: 1px solid var(--v-line); }
  .v-table.v-cards td { border: 0; padding: 2px 0; text-align: left !important; }
  .v-table.v-cards td[data-label]::before { content: attr(data-label) ': '; color: var(--v-muted); font-size: .85rem; }
  .v-table.v-cards td.v-hide-sm { display: none; }
}
.v-dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 0; }
.v-dl dt { color: var(--v-muted); }
.v-dl dd { margin: 0; font-variant-numeric: tabular-nums; min-width: 0; overflow-wrap: anywhere; }
.v-form { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.v-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.v-field.wide { grid-column: 1 / -1; }
.v-field small { color: var(--v-muted); }
.v-section { margin: 0 0 16px; }
.v-section > h2 { margin-bottom: 10px; }
.v-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
/* Floating action bar: sticks to the bottom centre of the screen while its section is in view, rests at the section end otherwise. */
.v-floatbar { position: sticky; bottom: 16px; z-index: 5; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; width: fit-content; max-width: 100%; box-sizing: border-box; margin: 12px auto 0; padding: 8px 10px; background: var(--v-surface); border: 1px solid var(--v-line-strong); border-radius: 999px; box-shadow: 0 6px 24px rgba(20, 20, 15, .18); }
.v-floatbar .v-error { flex-basis: 100%; text-align: center; }
@media (max-width: 640px) { .v-floatbar { border-radius: 14px; bottom: 10px; } }
@media print { .v-floatbar { display: none !important; } }
.v-empty { text-align: center; padding: 28px 16px; color: var(--v-muted); }
.v-qr { display: inline-block; background: #fff; padding: 8px; border: 1px solid var(--v-line); border-radius: 8px; }
.v-qr svg { display: block; width: 160px; height: 160px; }
.v-why { font-size: .9rem; background: var(--v-page); border-radius: 8px; padding: 10px 12px; }
.v-why ul { margin: 6px 0 0; padding-left: 18px; }
.v-colpick { display: grid; gap: 4px; }
.v-colpick li { display: flex; gap: 8px; align-items: center; padding: 4px 6px; border: 1px solid var(--v-line); border-radius: 8px; background: #fff; }
.v-colpick li.off { opacity: .6; background: transparent; }
.v-colpick li label { flex: 1; display: flex; gap: 8px; align-items: center; min-height: 36px; cursor: pointer; }
.v-colpick li button { min-height: 36px; min-width: 36px; padding: 0; }
.v-dialog { border: 1px solid var(--v-line); border-radius: 12px; padding: 0; max-width: min(640px, calc(100vw - 32px)); width: 100%; }
.v-dialog::backdrop { background: rgba(10, 12, 20, .45); }
.v-dialog form, .v-dialog > div { padding: 16px; }
.v-spinner { color: var(--v-muted); padding: 24px 0; }
.v-range { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.v-range input[type=range] { flex: 1 1 220px; accent-color: var(--v-accent); min-height: 44px; }
.v-range output { font-weight: 700; min-width: 7ch; }
.v-labels { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.v-label { border: 1px dashed var(--v-line-strong); border-radius: 8px; padding: 8px; text-align: center; background: #fff; break-inside: avoid; }
.v-label svg { width: 120px; height: 120px; }
.v-label strong { display: block; font-size: .85rem; overflow-wrap: anywhere; }
.v-label span { font-size: .75rem; color: var(--v-muted); }
/* Multi-select column (products → shelf labels) */
.v-table th.v-pickcell, .v-table td.v-pickcell { width: 44px; padding: 0; text-align: center; }
.v-pickhit { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; cursor: pointer; }
@media (max-width: 640px) { .v-table.v-cards td.v-pickcell { position: absolute; right: 6px; top: 6px; width: auto; border: 0; } .v-table.v-cards tr { position: relative; } .v-table.v-cards thead th.v-pickcell { display: none; } }
.v-fieldset { border: 1px solid var(--v-line); border-radius: 8px; padding: 4px 12px 8px; margin: 0; min-width: 0; }
.v-fieldset legend { font-weight: 600; font-size: .92rem; padding: 0 4px; }
.v-picklist { max-height: 420px; overflow: auto; border: 1px solid var(--v-line); border-radius: 8px; padding: 4px 10px; gap: 0; }
.v-picklist .v-check { min-height: 40px; }
/* Shelf label sheets: real millimetres, the same element is previewed and printed. */
.v-lab-wrap { overflow: auto; background: #e6e4dc; border-radius: var(--v-radius); padding: 12px; max-width: 100%; }
.v-sheet { background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .25); margin: 0 auto 12px; box-sizing: border-box; display: grid; color: #000; }
.v-sheet.v-roll { display: block; }
.v-sheet.v-poster { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 8mm; padding: 20mm; }
.v-sheet.v-poster h2 { font-size: 24pt; margin: 0; }
.v-lab { box-sizing: border-box; overflow: hidden; display: flex; align-items: center; gap: 2mm; font-family: system-ui, Arial, sans-serif; color: #000; background: #fff; }
.v-lab.center { flex-direction: column; justify-content: center; text-align: center; }
.v-lab-qr { flex: 0 0 auto; display: block; }
.v-lab-hout { min-width: 4.5em; font-weight: 700; font-variant-numeric: tabular-nums; }
.v-lab-qr svg { width: 100%; height: 100%; display: block; }
.v-lab-t { min-width: 0; flex: 1 1 auto; display: flex; flex-direction: column; gap: 1mm; }
.v-lab-n { font-weight: 700; line-height: 1.15; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.v-lab-c { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-weight: 700; overflow-wrap: anywhere; line-height: 1.1; }
.v-sheet.guides .v-lab { outline: .2mm dashed #b9b9b9; outline-offset: -.1mm; }
.v-sheet.guides .v-lab-empty { background: repeating-linear-gradient(45deg, #fff, #fff 2mm, #f1f1f1 2mm, #f1f1f1 4mm); }
@media print {
  body.v-labels-print .v-app > :not(.v-lab-wrap) { display: none !important; }
  body.v-labels-print .v-app { margin: 0; padding: 0; max-width: none; }
  body.v-labels-print .v-lab-wrap { padding: 0; background: none; overflow: visible; border-radius: 0; }
  body.v-labels-print .v-sheet { box-shadow: none; margin: 0; break-after: page; page-break-after: always; }
  body.v-labels-print .v-sheet:last-child { break-after: auto; page-break-after: auto; }
  body.v-labels-print .v-sheet.guides .v-lab { outline: 0; }
  body.v-labels-print .v-lab-empty { background: none !important; }
  .v-lab, .v-sheet { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
@media print {
  .tool-site-header, .v-tabs, .v-crumbs, .v-noprint, .v-pagehead .v-actions { display: none !important; }
  .v-app { padding: 0; max-width: none; }
  .v-card { border: 0; box-shadow: none; padding: 0; }
  .v-label { border: 1px solid #999; }
  body.v-body { background: #fff; }
}

/* sites and planned consumption */
.v-dialog.v-dialog-wide { max-width: min(760px, calc(100vw - 32px)); }
.v-site > summary { cursor: pointer; list-style-position: outside; overflow-wrap: anywhere; }
.v-line { align-items: center; flex-wrap: wrap; }
.v-line select { flex: 1 1 240px; min-width: 0; max-width: 100%; }
@media (min-width: 641px) { .v-sites-an td:first-child { min-width: 220px; } }
/* Simple counting page (/<slug>/inv): one big scan button, one search field, packs in "Varastossa yhteensä". */
.vi-body .inv { padding-top: 20px; }
.vi-card { display: flex; flex-direction: column; gap: 14px; background: var(--v-surface); border: 1px solid var(--v-line); border-radius: 16px; padding: 20px 16px; box-shadow: var(--v-shadow); }
.vi-head h1 { font-size: 1.5rem; margin: 2px 0 0; overflow-wrap: anywhere; }
.vi-head .v-muted { margin: 4px 0 0; }
.vi-head h1.vi-product { font-size: 1.35rem; }
.vi-scan { min-height: 120px; font-size: 1.25rem; flex-direction: column; gap: 10px; border-radius: 14px; }
.vi-scan-icon { display: block; line-height: 0; }
.vi-or { margin: -2px 0; text-align: center; color: var(--v-muted); display: flex; align-items: center; gap: 12px; }
.vi-or::before, .vi-or::after { content: ''; flex: 1; border-top: 1px solid var(--v-line); }
.vi-find { display: flex; flex-direction: column; gap: 8px; }
.vi-find label { font-weight: 600; }
.vi-find .v-row { flex-wrap: nowrap; }
.vi-find .v-row > input { flex: 1 1 auto; }
.vi-card p { margin: 0; }
.vi-card.v-done { gap: 12px; }
.vi-count { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.vi-count legend { font-weight: 700; font-size: 1.1rem; padding: 0; margin-bottom: 10px; }
.vi-howto { margin: -4px 0 4px; color: var(--v-muted); line-height: 1.45; }
.vi-unit { display: grid; grid-template-columns: minmax(0, 1fr) 120px; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--v-line); border-radius: 12px; background: var(--v-page); }
.vi-unit label { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.vi-unit label b { font-size: 1.1rem; }
.vi-unit label small { color: var(--v-muted); font-size: .85rem; }
.vi-body input.vi-qty { font-size: 1.5rem; min-height: 56px; text-align: center; font-variant-numeric: tabular-nums; font-weight: 600; }
.vi-total { margin: 0; font-size: 1.05rem; min-height: 1.5em; }
.vi-total strong { font-size: 1.15rem; }
.vi-card .v-done-mark { margin-top: 0; }
/* Inventory front page /<slug>/ and the consumption change report (varasto-report.js) */
.vh-help { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--v-page); border-left: 4px solid var(--v-accent, #2f6f4f); white-space: pre-line; overflow-wrap: anywhere; }
.vh-choices { display: flex; flex-direction: column; gap: 12px; }
.vh-choice { flex-direction: column; align-items: flex-start; text-align: left; gap: 4px; min-height: 76px; padding: 12px 16px; border-radius: 14px; text-decoration: none; }
.vh-choice-t { font-size: 1.15rem; font-weight: 700; }
.vh-choice-s { font-size: .9rem; font-weight: 400; opacity: .85; }
.vh-h2 { font-size: 1.1rem; margin: 6px 0 0; }
.vh-lines { display: flex; flex-direction: column; gap: 10px; }
.vh-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--v-line); border-radius: 12px; background: var(--v-page); }
.vh-line label { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.vh-line label b { font-size: 1.05rem; overflow-wrap: anywhere; }
.vh-line label small { color: var(--v-muted); font-size: .85rem; }
.vh-qty { display: flex; gap: 8px; align-items: stretch; min-width: 0; }
.vh-qty input.vi-qty { width: 110px; flex: 0 0 110px; }
.vh-line.removed { background: var(--v-err-soft); border-color: #e6b4ae; }
.vh-line.removed label b { text-decoration: line-through; }
.vh-line.added { background: var(--v-ok-soft); border-color: #a9d9bd; }
.vh-add { border-top: 1px solid var(--v-line); padding-top: 12px; }
.vh-suggest { border-top: 1px dashed var(--v-line); padding-top: 12px; margin-top: 4px; }
.vh-add label { font-weight: 600; }
.vh-changes { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 6px; text-align: left; }
.vh-changes li.removed { color: var(--v-err); }
.vh-changes li.added { color: var(--v-ok); }
.vi-card .v-check { font-weight: 600; }
@media (max-width: 400px) { .vh-qty input.vi-qty { width: 90px; flex-basis: 90px; } }
/* Staff guide (#/v/<id>/ohje): one A4 page from the inventory's settings; preview on screen, the sheet alone when printed. */
.v-guide-wrap { overflow-x: auto; padding: 16px 0; }
.v-guide { box-sizing: border-box; width: 210mm; height: 297mm; margin: 0 auto; padding: 13mm 13mm 10mm; background: #fff; color: #14161c; box-shadow: 0 2px 12px rgba(20, 20, 15, .18);
  display: flex; flex-direction: column; gap: 6mm; font-size: 10.5pt; line-height: 1.38; overflow: hidden; }
.v-guide h1, .v-guide h2, .v-guide p, .v-guide ul, .v-guide ol { margin: 0; }
.v-guide-head { display: flex; gap: 8mm; align-items: center; border-bottom: .8mm solid #1b33ff; padding-bottom: 5mm; }
.v-guide-title { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2mm; }
.v-guide-eyebrow { font-size: .8em; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #5d6270; }
.v-guide h1 { font-size: 2.4em; line-height: 1.1; overflow-wrap: anywhere; }
.v-guide h1.long { font-size: 1.8em; }
.v-guide-lead { font-size: 1.1em; color: #33363f; }
.v-guide-qrbox { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 1.5mm; }
.v-guide-qr { display: block; width: 34mm; height: 34mm; }
.v-guide-qr svg { display: block; width: 100%; height: 100%; }
.v-guide-url { font-size: .8em; font-weight: 700; max-width: 44mm; text-align: center; overflow-wrap: anywhere; }
.v-guide-grid { flex: 0 0 auto; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; gap: 5mm; align-content: start; }
.v-guide-box { border: .35mm solid #c3c3b9; border-radius: 3mm; padding: 4mm 4.5mm; display: flex; flex-direction: column; gap: 2.5mm; break-inside: avoid; }
.v-guide h2 { font-size: 1.25em; line-height: 1.2; display: flex; align-items: center; gap: 2.5mm; }
.v-guide-no { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 7mm; height: 7mm; border-radius: 50%; background: #1b33ff; color: #fff; font-size: 1em; }
.v-guide ul, .v-guide ol { padding-left: 5mm; display: flex; flex-direction: column; gap: 1.5mm; }
.v-guide-note { background: #e8ebff; border-radius: 2mm; padding: 2mm 3mm; font-size: .94em; margin-top: auto !important; }
.v-guide-foot { margin-top: auto; border-top: .35mm solid #dcdcd4; padding-top: 3mm; display: flex; flex-direction: column; gap: 1mm; }
.v-guide-contact { font-size: 1.1em; }
.v-guide-small { font-size: .75em; color: #5d6270; }
@media print {
  body.v-guide-print .v-app > :not(.v-guide-wrap), body.v-guide-print .tool-site-header { display: none !important; }
  body.v-guide-print .v-app { margin: 0; padding: 0; max-width: none; }
  body.v-guide-print .v-guide-wrap { padding: 0; overflow: visible; }
  body.v-guide-print .v-guide { box-shadow: none; margin: 0; }
  .v-guide, .v-guide * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
