/* Kézi eszköz (handheld): the operator's face of the app on any screen, one step per screen, big
   touch targets, scan field on top. .app--handheld is set by core/app.js: no sidebar, the slim bar
   on top with back, the step's name, home and the user. */
.app--handheld .sidebar, .app--handheld .scrim { display: none; }
.app--handheld .topbar { position: sticky; top: 0; z-index: 20; display: flex; }
.app--handheld .topbar .topbar__back, .app--handheld .topbar .topbar__home { display: inline-flex; }
.app--handheld[data-home="true"] .topbar .topbar__back, .app--handheld[data-home="true"] .topbar .topbar__home { display: none; }
.app--handheld .content { padding-top: 0.75rem; background: var(--side); }
.app--handheld .content > section { width: 100%; max-width: 34rem; margin-inline: auto; }
.app--handheld .content > section > :first-child { margin-top: 0; }
.app--handheld .btn, .app--handheld .input, .app--handheld .select { min-height: 2.75rem; }
.app--handheld .btn { font-size: 0.875rem; }
.app--handheld .input, .app--handheld .select, .app--handheld .textarea, .app--handheld .scan input { font-size: 16px; }
.app--handheld .scan input { min-height: 2.75rem; }
.app--handheld .scan .scan__btn { display: inline-flex; flex: none; align-items: center; justify-content: center; min-width: 2.75rem; min-height: 2.75rem; }

.hh { display: grid; gap: 0.75rem; }
.hh-me { display: flex; align-items: center; gap: 0.5rem; }
.hh-me .icon { width: 2rem; height: 2rem; }
.hh-me b { display: block; }
.hh-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
.hh-tile { position: relative; display: grid; align-content: center; justify-items: start; gap: 0.25rem; min-height: 5rem; padding: 0.75rem;
  color: var(--text); background: #fff; border: 1px solid var(--line); border-radius: 4px; text-decoration: none; }
.hh-tile:hover { background: var(--hover); text-decoration: none; }
.hh-tile .icon { width: 1.5rem; height: 1.5rem; color: var(--accent); }
.hh-tile b { font-size: 1rem; }
.hh-tile__count { position: absolute; top: 0.5rem; right: 0.5rem; min-width: 1.5rem; padding: 0 0.375rem; text-align: center; color: #fff;
  background: var(--accent); border-radius: var(--radius); font-size: 0.8125rem; line-height: 1.5rem; }

/* a step: what to do, the scan field, the result, the buttons at the bottom */
.hh-step { display: grid; gap: 0.75rem; }
.hh-step__head { display: grid; gap: 0.125rem; }
.hh-step__code { color: var(--text-2); font-size: 0.8125rem; }
.hh-step__head h1 { font-size: 1.25rem; }
.hh-card { display: grid; gap: 0.5rem; padding: 0.75rem; background: #fff; border: 1px solid var(--line); border-radius: 4px; }
.hh-card--target { border-color: var(--accent); box-shadow: inset 0.25rem 0 0 var(--accent); }
.hh-big { font-size: 1.5rem; font-weight: bold; letter-spacing: 0.02em; }
.hh-row { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; min-width: 0; }
.hh-row > * { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hh-photo { flex: none; width: 4rem; height: 4rem; object-fit: cover; background: var(--side); border: 1px solid var(--line); border-radius: 0.25rem; }
.hh-list { display: grid; gap: 0.375rem; }
.hh-item { display: flex; align-items: center; gap: 0.625rem; min-height: 3.25rem; padding: 0.5rem 0.625rem; text-align: left; font: inherit; color: inherit;
  background: #fff; border: 1px solid var(--line); border-radius: 4px; cursor: pointer; }
.hh-item:hover { background: var(--hover); }
.hh-item > span { display: grid; min-width: 0; }
.hh-item b, .hh-item small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hh-item small { color: var(--text-2); }
.hh-choice { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; }
.hh-choice--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hh-choice--many { grid-template-columns: repeat(auto-fill, minmax(5.5rem, 1fr)); }
.hh-choice--many .btn { min-height: 3rem; }
.hh-choice .btn { min-height: 3.5rem; font-size: 1rem; white-space: normal; }
.hh-choice .btn[aria-pressed="true"] { color: #fff; background: var(--accent); border-color: var(--accent); }
.hh-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr)); gap: 0.5rem; }
.hh-actions .btn { min-height: 3rem; white-space: normal; text-align: center; justify-content: center; }
.hh-msg { padding: 0.625rem 0.75rem; border-radius: 4px; font-weight: bold; }
.hh-msg[data-tone="error"] { color: var(--danger); background: var(--danger-bg); }
.hh-msg[data-tone="ok"] { color: var(--ok); background: var(--ok-bg); }
.hh-msg[data-tone="warn"] { color: var(--warn); background: var(--warn-bg); }

.hh-wide { width: 100%; justify-content: center; min-height: 3rem; }
.hh-sub { margin-top: 0.5rem; font-size: 1rem; }
a.hh-item { text-decoration: none; }
a.hh-item:hover { text-decoration: none; }
.hh-item > .icon { flex: none; width: 1.5rem; height: 1.5rem; color: var(--accent); }
.hh-item--static { cursor: default; }
.hh-item--static:hover { background: #fff; }
.hh-item--static > span { flex: 1; }
/* signature pad: drawn with a finger; touch-action none so the page does not scroll meanwhile */
.hh-sign { display: block; width: 100%; height: 10rem; background: #fff; border: 1px solid var(--line); border-radius: 4px; touch-action: none; }
.hh-prod { display: flex; align-items: center; gap: 0.75rem; min-width: 0; }
.hh-prod > span { display: grid; min-width: 0; }
.hh-item > .chip { display: inline-flex; flex: none; margin-left: auto; }
