/* TGK Transfers: plain, high contrast, large touch targets for the shop iPad. Colors from the main site (css/tgk-v2.css):
   ink #0B0F13, orange #FF6700 with dark text on it, orange text on light #B84700, warm light background #F6F3EC. */
:root {
  --bg: #F6F3EC; --card: #ffffff; --ink: #11161C; --muted: #4A525C; --line: #DDD7CB; --bar: #0B0F13;
  --accent: #FF6700; --accent-hover: #e35c00; --accent-ink: #11161C; --accent-text: #B84700;
  --ok: #17653a; --ok-bg: #e5f4ea; --warn: #7a5300; --warn-bg: #fff4d6; --bad: #a11b1b; --bad-bg: #fde8e8; --focus: #B84700;
  font-size: 17px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif; line-height: 1.45; }
body { padding-bottom: env(safe-area-inset-bottom); -webkit-text-size-adjust: 100%; }
[hidden] { display: none !important; }
.practice-banner { background: #FF6700; color: #11161C; font-weight: 800; text-align: center; padding: 10px 14px; font-size: .95rem; letter-spacing: .02em; }
body.practice { box-shadow: inset 0 0 0 6px #FF6700; min-height: 100vh; }
a { color: var(--accent-text); }
h1 { font-size: 1.5rem; margin: 0 0 .6rem; }
h2 { font-size: 1.15rem; margin: 1.4rem 0 .5rem; }
h3 { font-size: 1rem; margin: 1rem 0 .4rem; }
p { margin: .4rem 0 .8rem; }
.pad { padding: 20px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.bar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top)); background: var(--bar); color: #fff; border-bottom: 3px solid var(--accent); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; font-size: .85rem; color: var(--accent); }
.brand img { display: block; height: 32px; width: auto; }
.bar nav { display: flex; gap: 6px; flex-wrap: wrap; flex: 1; }
.bar nav a, .bar nav button { color: #fff; background: transparent; border: 1px solid rgba(255,255,255,.25); border-radius: 8px; padding: 7px 12px; font: inherit; font-size: .9rem; text-decoration: none; cursor: pointer; }
.bar nav a.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.who { font-size: .85rem; opacity: .85; }
main { max-width: 1040px; margin: 0 auto; padding: 18px 16px 60px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px 18px; margin: 0 0 16px; }
.card.narrow { max-width: 460px; margin: 40px auto; }
.grid { display: grid; gap: 12px 16px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .grid.two { grid-template-columns: 1fr 1fr; } .grid.three { grid-template-columns: 1fr 1fr 1fr; } .grid.four { grid-template-columns: repeat(4, 1fr); } }
label { display: block; font-size: .85rem; color: var(--muted); margin-bottom: 4px; }
label.inline { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-size: 1rem; margin: 4px 14px 4px 0; min-height: 44px; }
input[type=text], input[type=password], input[type=date], input[type=search], input[type=number], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1px solid #b9bcc0; border-radius: 8px; padding: 10px 12px; min-height: 46px; }
textarea { min-height: 80px; }
input:focus, select:focus, textarea:focus, button:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
input[type=checkbox], input[type=radio] { width: 24px; height: 24px; accent-color: var(--accent); margin: 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 18px; border-radius: 10px; border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink); font: inherit; font-weight: 650; cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn.ghost { background: #fff; color: var(--accent-text); }
.btn.ghost:hover, .btn.plain:hover { background: #fff7f0; }
.btn.plain { background: #fff; color: var(--ink); border-color: #b9bcc0; }
.btn.big { min-height: 58px; font-size: 1.1rem; padding: 14px 26px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; align-items: center; }
.msg { border-radius: 10px; padding: 12px 14px; margin: 12px 0; }
.msg.ok { background: var(--ok-bg); color: var(--ok); }
.msg.warn { background: var(--warn-bg); color: var(--warn); }
.msg.bad { background: var(--bad-bg); color: var(--bad); }
.msg ul { margin: 6px 0 0 18px; padding: 0; }
.badge { display: inline-block; font-size: .78rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: #e7e8ea; color: #333; white-space: nowrap; }
.badge.approved, .badge.transferred { background: var(--ok-bg); color: var(--ok); }
.badge.pending, .badge.signed, .badge.certified, .badge.draft { background: var(--warn-bg); color: var(--warn); }
.badge.stop, .badge.not_transferred { background: var(--bad-bg); color: var(--bad); }
.badge.flag { background: #e8ecff; color: #2a3b9c; }
table.list { width: 100%; border-collapse: collapse; background: #fff; }
table.list th, table.list td { text-align: left; padding: 10px 10px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: .92rem; }
table.list th { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
table.list tr.click { cursor: pointer; }
table.list tr.click:hover { background: #fafaf7; }
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
dl.kv { display: grid; grid-template-columns: minmax(180px, 38%) 1fr; gap: 0; margin: 0; border-top: 1px solid var(--line); }
dl.kv dt, dl.kv dd { margin: 0; padding: 8px 10px; border-bottom: 1px solid var(--line); }
dl.kv dt { color: var(--muted); font-size: .88rem; }
dl.kv dd { word-break: break-word; }
@media (max-width: 600px) { dl.kv { grid-template-columns: 1fr; } dl.kv dt { border-bottom: none; padding-bottom: 0; } }
.empty { color: #9aa0a6; font-style: italic; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin-bottom: 14px; }
.toolbar > div { flex: 1 1 180px; }
.stats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin-bottom: 16px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.stat b { display: block; font-size: 1.5rem; }
/* The buyer's screens */
.kiosk main { max-width: 860px; }
.formtext { font-size: .95rem; }
.warning { font-size: .9rem; background: #fff; border: 2px solid var(--ink); border-radius: 10px; padding: 12px 14px; }
.q { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin: 0 0 14px; }
.q > .qt { font-weight: 650; margin-bottom: 10px; }
.yn { display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.yn:last-child { border-bottom: none; }
.yn .qtext { font-size: .98rem; }
.yn .qwarn { font-size: .85rem; color: var(--muted); margin-top: 4px; }
.seg { display: inline-flex; border: 1px solid #b9bcc0; border-radius: 10px; overflow: hidden; }
.seg button { min-width: 72px; min-height: 48px; border: none; background: #fff; font: inherit; font-weight: 650; cursor: pointer; }
.seg button + button { border-left: 1px solid #b9bcc0; }
.seg button.on { background: var(--ink); color: #fff; }
.seg button[disabled] { opacity: .35; }
.cert { background: #fff; border: 2px solid var(--accent); border-radius: 12px; padding: 16px; font-size: .95rem; }
.sigwrap { background: #fff; border: 2px dashed #8b8f95; border-radius: 12px; position: relative; touch-action: none; }
.sigwrap canvas { display: block; width: 100%; height: 220px; touch-action: none; border-radius: 12px; }
.sigwrap.small canvas { height: 150px; }
.sigline { position: absolute; left: 24px; right: 24px; bottom: 44px; border-bottom: 1px solid #b9bcc0; pointer-events: none; }
.sigx { position: absolute; left: 24px; bottom: 50px; color: #9aa0a6; pointer-events: none; font-size: 1.3rem; }
img.sig { max-height: 80px; max-width: 100%; background: #fff; border: 1px solid var(--line); border-radius: 6px; }
.pages img { width: 100%; display: block; margin: 0 0 12px; border: 1px solid var(--line); background: #fff; }
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 50; overflow-y: auto; padding: 24px 12px; }
.modal-box { position: relative; max-width: 900px; margin: 0 auto; background: var(--bg); border-radius: 14px; padding: 22px 18px; }
.modal-x { position: absolute; top: 8px; right: 10px; width: 48px; height: 48px; border: none; background: transparent; font-size: 2rem; cursor: pointer; color: var(--ink); }
.sectionhead { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.linepick { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.linepick.busy { opacity: .5; }
.stack > * + * { margin-top: 10px; }
.right { text-align: right; }
@media print { .bar, .actions, .noprint { display: none !important; } body { background: #fff; } .card { border: none; } }
