/* paper-entry.css — the quick-entry form for paper sheets (paper-entry.js), on the tablet and on the dashboard.
   Dense on purpose: the whole sheet on one scrolling screen, every tap target still finger-sized. */
.pe-form { display: flex; flex-direction: column; }
.pe-fixed { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; font-size: 13px; color: var(--muted); padding: 8px 12px; background: var(--neutral-soft); border-radius: 8px; margin-bottom: 6px; }
.pe-fixed b { color: var(--text); margin-right: 3px; }
.pe-fixed-lbl { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.pe-q { padding: 12px 0 14px; border-bottom: 1px solid var(--line); scroll-margin-top: 140px; }
.pe-q.off { opacity: .55; padding: 8px 0; }
.pe-q.flagged { background: var(--warn-soft); margin: 0 -12px; padding-left: 12px; padding-right: 12px; border-radius: 8px; }
.pe-qh { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.pe-id { flex: none; font-family: var(--font-display); font-weight: 800; font-size: 12px; color: var(--accent-ink); background: var(--accent); border-radius: 5px; padding: 2px 7px; min-width: 38px; text-align: center; }
.pe-text { flex: 1; font-size: 15px; font-weight: 600; line-height: 1.3; }
.pe-hint { flex: none; font-size: 12px; color: var(--muted); white-space: nowrap; }
.pe-skip { font-size: 13px; color: var(--muted); font-style: italic; padding-left: 48px; }
.pe-flag { font-size: 13px; color: var(--warn); font-weight: 600; padding-left: 48px; margin: -4px 0 8px; }
.pe-opts { display: flex; flex-wrap: wrap; gap: 8px; padding-left: 48px; }
.pe-o { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 12px; font: inherit; font-size: 15px; font-weight: 500; text-align: left; color: var(--text); background: var(--surface); border: 1.5px solid var(--line); border-radius: 9px; cursor: pointer; }
.pe-box { flex: none; width: 18px; height: 18px; border: 2px solid #B9B1A7; border-radius: 50%; }
.pe-opts.multi .pe-box, .pe-num .pe-box { border-radius: 5px; }
.pe-o.on { border-color: var(--accent); background: var(--accent-soft); font-weight: 600; }
.pe-o.on .pe-box { background: var(--accent); border-color: var(--accent); box-shadow: inset 0 0 0 3px var(--accent-soft); }
.pe-other { flex-basis: 100%; margin: 0; font-size: 15px; padding: 8px 10px; }
.pe-grid-wrap { overflow-x: auto; padding-left: 48px; }
.pe-grid { border-collapse: collapse; font-size: 14px; }
.pe-grid th { font-size: 11px; font-weight: 600; color: var(--muted); padding: 0 2px 4px; text-align: center; vertical-align: bottom; max-width: 90px; line-height: 1.15; }
.pe-grid td { padding: 3px 2px; border-top: 1px solid var(--line); text-align: center; }
.pe-grid td.pe-row { text-align: left; padding-right: 12px; min-width: 160px; max-width: 320px; line-height: 1.25; }
.pe-cell { width: 44px; height: 40px; font: inherit; font-size: 15px; font-weight: 600; color: var(--muted); background: var(--surface); border: 1.5px solid var(--line); border-radius: 8px; cursor: pointer; padding: 0; }
.pe-grid:not(.num) .pe-cell { width: 52px; }
.pe-cell.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.pe-scale { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding-left: 48px; }
.pe-n { width: 48px; height: 44px; font: inherit; font-size: 17px; font-weight: 600; background: var(--surface); color: var(--text); border: 1.5px solid var(--line); border-radius: 8px; cursor: pointer; padding: 0; }
.pe-n.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.pe-end { font-size: 12px; color: var(--muted); }
.pe-num { display: flex; align-items: center; gap: 10px; padding-left: 48px; }
.pe-num input { width: 140px; font-size: 18px; padding: 8px 10px; }
.pe-text-in { margin-left: 48px; width: calc(100% - 48px); font-size: 15px; padding: 8px 10px; }
textarea.pe-text-in { min-height: 70px; }
.pe-form.ro .pe-o, .pe-form.ro .pe-cell, .pe-form.ro .pe-n { cursor: default; }
.pe-out { font-weight: 700; padding: 2px 9px; border-radius: 999px; font-size: 13px; }
.pe-out.ok { background: var(--ok-soft); color: var(--ok-ink); }
.pe-out.so { background: var(--warn-soft); color: var(--warn); }
@media (max-width: 560px) {
  .pe-opts, .pe-scale, .pe-num, .pe-grid-wrap, .pe-skip, .pe-flag { padding-left: 0; }
  .pe-text-in { margin-left: 0; width: 100%; }
}
