/* ============================================================
   Tiskalnica Portal — Job ticket v2 (station-first task page)
   Builds on job-ticket.css; adds operator cards + DTF station
   print ticket. Same visual language: white cards, 1px borders,
   soft radii, coral accent used sparingly.
   ============================================================ */

.jt2-wrap { max-width: 1180px; margin: 0 auto; }

/* ---------- generic card ---------- */
.jt2-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); box-shadow: var(--shadow-sm);
  padding: 16px 18px; margin-bottom: 14px;
}
.jt2-card-title {
  display: flex; align-items: center; gap: 7px; white-space: nowrap;
  font-size: 11.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-3); padding-bottom: 9px; border-bottom: 1px solid var(--border); margin-bottom: 12px;
}
.jt2-id {
  font-family: 'JetBrains Mono', monospace; font-size: 12px; font-weight: 700;
  color: var(--ink-3); background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 6px; padding: 2px 8px; align-self: center;
}
button.jt2-id.link { cursor: pointer; }
button.jt2-id.link:hover { border-color: var(--accent-soft-2); color: var(--accent-700); background: var(--accent-soft); }
.mono-sku { font-family: 'JetBrains Mono', monospace; font-size: 11.5px; color: var(--ink-4); }

/* ---------- view toggle ---------- */
.jt2-viewtoggle {
  display: flex; gap: 2px; background: var(--surface-2);
  border: 1px solid var(--border); border-radius: var(--r-sm); padding: 3px;
}
.jt2-viewtoggle button {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  border: none; background: none; font-family: inherit; cursor: pointer;
  font-size: 12.5px; font-weight: 700; color: var(--ink-3);
  padding: 5px 12px; border-radius: 5px;
}
.jt2-viewtoggle button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); border: 1px solid var(--border); padding: 4px 11px; }

/* ---------- header ---------- */
.jt2-head { padding: 20px 22px 0; overflow: hidden; }
.jt2-head-top { display: flex; align-items: flex-start; gap: 20px; }
.jt2-eyebrow {
  font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent-700); margin-bottom: 5px;
}
.jt2-title { font-size: 23px; font-weight: 800; line-height: 1.2; margin: 0; letter-spacing: -0.01em; }
.jt2-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; align-items: center; }
.jt2-head-meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 13px 0; }
.jt2-head-meta .who { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; }
.jt2-head-meta .dim { color: var(--ink-4); font-weight: 600; }

.jt2-next {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: var(--accent-soft); border-top: 1px solid var(--accent-soft-2);
  margin: 0 -22px; padding: 11px 22px;
}
.jt2-next .lbl {
  flex: 0 0 auto; white-space: nowrap; font-size: 10.5px; font-weight: 800; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent-700);
  border: 1.5px solid var(--accent-soft-2); border-radius: 5px; padding: 3px 8px; background: var(--surface);
}
.jt2-next .txt { flex: 1 1 260px; min-width: 0; font-size: 13.5px; font-weight: 700; color: var(--ink); }
.jt2-next-acts { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- layout grid ---------- */
.jt2-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 0 14px; align-items: start; }
.jt2-col-main, .jt2-col-side { min-width: 0; }

/* ---------- readiness card ---------- */
.jt2-ready { border-left: 4px solid var(--good); }
.jt2-ready.part { border-left-color: var(--warn); }
.jt2-ready.bad { border-left-color: var(--critical); }
.jt2-ready-head { display: flex; align-items: flex-start; gap: 11px; }
.jt2-ready-ic {
  width: 30px; height: 30px; flex: 0 0 auto; border-radius: 50%;
  display: grid; place-items: center; color: #fff; background: var(--good);
}
.jt2-ready.part .jt2-ready-ic { background: var(--warn); }
.jt2-ready.bad .jt2-ready-ic { background: var(--critical); }
.jt2-ready-title { font-size: 16.5px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.25; padding-top: 3px; }
.jt2-ready.bad .jt2-ready-title { color: #8c2a25; }
.jt2-ready.part .jt2-ready-title { color: #7a5210; }
.jt2-ready-sub { font-size: 12.5px; color: var(--ink-3); margin-top: 4px; line-height: 1.5; }
.jt2-ready-sub b { color: var(--ink-2); }
.jt2-gates { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; margin-top: 14px; }
.jt2-gate { display: flex; align-items: flex-start; gap: 9px; font-size: 12.5px; min-width: 0; }
.jt2-gate-box {
  width: 16px; height: 16px; flex: 0 0 auto; border-radius: 50%; margin-top: 1px;
  display: inline-flex; align-items: center; justify-content: center; color: #fff;
  background: var(--good);
}
.jt2-gate.bad .jt2-gate-box { background: var(--critical); }
.jt2-gate.part .jt2-gate-box { background: var(--warn); }
.jt2-gate-txt { display: block; min-width: 0; flex: 1; }
.jt2-gate-label { display: block; font-weight: 700; color: var(--ink); line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jt2-gate.bad .jt2-gate-label { color: var(--critical); }
.jt2-gate.part .jt2-gate-label { color: #9c6a0f; }
.jt2-gate-detail { display: block; color: var(--ink-4); font-size: 11.5px; margin-top: 1px; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- DTF spec card ---------- */
.jt2-blank {
  display: flex; gap: 18px; align-items: stretch; flex-wrap: wrap;
  padding: 12px 14px; background: var(--surface-2); border: 1px solid var(--border-2);
  border-radius: var(--r); margin-bottom: 12px;
}
.jt2-blank-main { flex: 1 1 220px; min-width: 0; }
.jt2-blank-name { font-size: 15px; font-weight: 800; }
.jt2-blank-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 5px; font-size: 12px; color: var(--ink-3); line-height: 1.5; }
.jt2-blank-meta > span { white-space: nowrap; }
.jt2-blank-meta b { color: var(--ink-2); font-weight: 700; }
.jt2-blank-place { display: flex; gap: 20px; align-items: center; flex: 0 0 auto; flex-wrap: wrap; }
.jt2-blank-place .kv .k { display: block; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10.5px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-4); }
.jt2-blank-place .kv .v { display: block; font-size: 14.5px; font-weight: 800; margin-top: 2px; white-space: nowrap; }

.jt2-spec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.jt2-spec {
  border: 1px solid var(--border-2); border-radius: var(--r-sm);
  padding: 8px 10px; min-width: 0;
}
.jt2-spec .k { font-size: 10px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-4); }
.jt2-spec .v { font-size: 12.5px; font-weight: 700; color: var(--ink-2); margin-top: 3px; line-height: 1.35; display: flex; align-items: center; gap: 5px; }
.jt2-spec.big { background: var(--surface-2); border-color: var(--border); }
.jt2-spec.big .v { font-size: 14px; color: var(--ink); }
.jt2-spec.warn { border-color: #ecd9ae; background: var(--warn-soft); }
.jt2-spec.warn .v { color: #9c6a0f; }

/* ---------- quantity & sizes ---------- */
.jt2-sum { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 8px; margin-bottom: 13px; }
.jt2-sum-item {
  border: 1px solid var(--border-2); border-radius: var(--r-sm); padding: 9px 12px;
  display: flex; flex-direction: column; gap: 3px;
}
.jt2-sum-item.main { background: var(--surface-2); border-color: var(--border); }
.jt2-sum-item .n { font-size: 20px; font-weight: 800; font-family: 'JetBrains Mono', monospace; line-height: 1.1; }
.jt2-sum-item .n .of { font-size: 13px; color: var(--ink-4); font-weight: 600; }
.jt2-sum-item .l { font-size: 10.5px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-4); }
.jt2-sum-item.bad .n { color: var(--critical); }
.jt2-sum-item.warn .n { color: var(--warn); }

.jt2-sizes { width: 100%; border-collapse: collapse; font-size: 13px; }
.jt2-sizes th {
  text-align: right; font-size: 10.5px; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--ink-4); padding: 5px 10px 7px; border-bottom: 1.5px solid var(--border); white-space: nowrap;
}
.jt2-sizes th:first-child { text-align: left; }
.jt2-sizes td {
  padding: 7px 10px; border-bottom: 1px solid var(--border-2); text-align: right;
  font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--ink-2);
}
.jt2-sizes td.sz { text-align: left; font-family: inherit; font-weight: 800; color: var(--ink); }
.jt2-sizes td.req { font-weight: 700; color: var(--ink); }
.jt2-sizes td.full { color: var(--good); font-weight: 700; }
.jt2-sizes td.rej { color: var(--critical); font-weight: 700; }
.jt2-sizes td.zero { color: var(--ink-4); }
.jt2-sizes td.rem { font-weight: 700; }
.jt2-sizes tr.total td { border-top: 2px solid var(--border); border-bottom: none; font-weight: 800; color: var(--ink); background: var(--surface-2); }

.jt2-log { margin-top: 12px; border: 1px dashed var(--border); border-radius: var(--r); padding: 10px 12px; }
.jt2-log-tabs { display: flex; gap: 6px; margin-bottom: 9px; }
.jt2-log-tabs button {
  border: 1px solid var(--border); background: var(--surface); border-radius: 999px;
  font-family: inherit; font-size: 12px; font-weight: 700; color: var(--ink-3);
  padding: 4px 12px; cursor: pointer;
}
.jt2-log-tabs button.on { background: var(--accent-soft); border-color: var(--accent-soft-2); color: var(--accent-700); }
.jt2-log-tabs button.on.bad { background: var(--critical-soft); border-color: #f0c4c1; color: var(--critical); }
.jt2-log-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.jt2-log-row select, .jt2-log-row input {
  font-family: inherit; font-size: 13px; color: var(--ink);
  border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--surface);
  padding: 7px 10px; min-height: 36px;
}
.jt2-log-row select.wide { flex: 1 1 150px; min-width: 0; }
.jt2-log-row input { width: 76px; font-family: 'JetBrains Mono', monospace; }
.jt2-rejlog { margin-top: 10px; display: flex; flex-direction: column; gap: 4px; }
.jt2-rej-row {
  display: flex; align-items: center; gap: 8px; font-size: 12.5px;
  background: var(--critical-soft); color: #8c2a25; border: 1px solid #f0c4c1;
  border-radius: var(--r-sm); padding: 6px 10px;
}
.jt2-rej-row .t { margin-left: auto; font-size: 11px; font-weight: 700; color: var(--critical); }

/* ---------- print jobs by artwork ---------- */
.jt2-title-note { margin-left: auto; font-size: 11px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--ink-4); white-space: nowrap; }
.jt2-job { border: 1px solid var(--border); border-radius: var(--r); padding: 13px 14px; margin-top: 12px; }
.jt2-job-head { display: flex; gap: 13px; align-items: flex-start; }
.jt2-job-info { flex: 1; min-width: 0; }
.jt2-job-ix {
  display: inline-grid; place-items: center; width: 19px; height: 19px; flex: 0 0 auto;
  border-radius: 50%; background: var(--ink); color: #fff;
  font-size: 10.5px; font-weight: 800; font-family: 'JetBrains Mono', monospace;
}
.jt2-art-filemeta { color: var(--ink-4); font-family: inherit; font-size: 11px; }
.jt2-places { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.jt2-place-chip {
  display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
  font-size: 11.5px; font-weight: 600; color: var(--ink-2);
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px;
  padding: 3px 10px;
}
.jt2-place-chip b { font-weight: 800; color: var(--ink); }
.jt2-job-qty { flex: 0 0 132px; text-align: right; display: flex; flex-direction: column; gap: 3px; align-items: flex-end; }
.jt2-job-qty .n { font-size: 19px; font-weight: 800; font-family: 'JetBrains Mono', monospace; line-height: 1.1; }
.jt2-job-qty .n .u { font-size: 12px; color: var(--ink-4); font-weight: 600; font-family: inherit; }
.jt2-job-qty .s { font-size: 10.5px; color: var(--ink-4); font-weight: 600; white-space: nowrap; }
.jt2-job-qty .progress { width: 100%; }
.jt2-job .jt2-sizes { margin-top: 11px; }
.jt2-job .jt2-art-warns { margin-top: 10px; }
.jt2-art-thumb.sm { width: 64px; height: 76px; }
.jt2-art-thumb.sm svg { width: 18px; height: 18px; }

/* ---------- artwork thumb / warnings ---------- */
.jt2-art-thumb {
  width: 92px; height: 110px; flex: 0 0 auto; border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background:
    linear-gradient(45deg, #f0f2f6 25%, transparent 25%, transparent 75%, #f0f2f6 75%),
    linear-gradient(45deg, #f0f2f6 25%, #fafbfc 25%, #fafbfc 75%, #f0f2f6 75%);
  background-size: 14px 14px; background-position: 0 0, 7px 7px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  color: var(--ink-4); font-size: 10.5px; font-weight: 700;
}
.jt2-art-thumb.warn { border-color: #ecd9ae; color: var(--warn); }
.jt2-art-body { min-width: 0; flex: 1; }
.jt2-art-name { font-size: 14.5px; font-weight: 800; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.jt2-art-file {
  font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--ink-2);
  display: flex; align-items: center; gap: 6px; margin-top: 6px; word-break: break-all;
}
.jt2-art-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 6px; font-size: 12px; color: var(--ink-3); }
.jt2-art-meta b { color: var(--ink-2); }
.jt2-art-warns { margin-top: 10px; display: flex; flex-direction: column; gap: 4px; }
.jt2-art-warns .w {
  display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600;
  background: var(--warn-soft); color: #7a5210; border: 1px solid #ecd9ae;
  border-radius: var(--r-sm); padding: 6px 10px;
}

/* ---------- checklist ---------- */
.jt2-chk-group { margin-bottom: 12px; }
.jt2-chk-group:last-child { margin-bottom: 0; }
.jt2-chk-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 5px;
}
.jt2-chk-head > span:first-child { white-space: nowrap; }
.jt2-chk-head .cnt { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; color: var(--warn); letter-spacing: 0; text-transform: none; text-align: right; }
.jt2-chk-head .cnt.ok { color: var(--good); }
.jt2-chk {
  display: flex; align-items: flex-start; gap: 9px; padding: 6px 7px;
  border-radius: var(--r-sm); cursor: pointer; font-size: 13px; font-weight: 600;
}
.jt2-chk:hover { background: var(--surface-2); }
.jt2-chk.off { cursor: default; }
.jt2-chk .box {
  width: 17px; height: 17px; flex: 0 0 auto; border-radius: 4px; margin-top: 1px;
  border: 1.6px solid var(--ink-4); display: inline-flex; align-items: center; justify-content: center; color: #fff;
}
.jt2-chk.done .box { background: var(--good); border-color: var(--good); }
.jt2-chk.done .lbl { color: var(--ink-4); text-decoration: line-through; }
.jt2-chk .lbl { flex: 1; min-width: 0; line-height: 1.45; }
.jt2-chk .mand {
  flex: 0 0 auto; margin-left: 6px; align-self: center;
  font-size: 9.5px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent-700); background: var(--accent-soft); border-radius: 4px; padding: 1px 5px;
  text-decoration: none;
}

/* ---------- DTF run ---------- */
.jt2-run { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.jt2-run-id { font-family: 'JetBrains Mono', monospace; font-size: 16px; font-weight: 800; display: flex; align-items: center; gap: 9px; }
.jt2-run-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 12.5px; color: var(--ink-3); }
.jt2-run-meta b { color: var(--ink-2); }
.jt2-run-tasks { font-size: 12px; color: var(--ink-4); line-height: 1.5; }
.jt2-run-none { font-size: 13px; font-weight: 600; color: var(--ink-3); line-height: 1.5; }
.jt2-run-suggest {
  display: flex; align-items: center; gap: 8px; font-size: 12.5px;
  background: var(--info-soft); color: #28508f; border: 1px solid #cdddf6;
  border-radius: var(--r-sm); padding: 7px 10px;
}

/* ---------- stock ---------- */
.jt2-stock-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 11px; }
.jt2-stock-cell { border: 1px solid var(--border-2); border-radius: var(--r-sm); padding: 8px 10px; text-align: center; }
.jt2-stock-cell .n { font-size: 17px; font-weight: 800; font-family: 'JetBrains Mono', monospace; }
.jt2-stock-cell .l { font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-4); margin-top: 2px; }
.jt2-stock-cell.bad { border-color: #f0c4c1; background: var(--critical-soft); }
.jt2-stock-cell.bad .n { color: var(--critical); }
.jt2-stock-note { display: flex; align-items: flex-start; gap: 8px; font-size: 12.5px; line-height: 1.5; border-radius: var(--r-sm); padding: 8px 11px; }
.jt2-stock-note svg { flex: 0 0 auto; margin-top: 2px; }
.jt2-stock-note.ok { background: var(--good-soft); color: #1f6b48; }
.jt2-stock-note.warn { background: var(--warn-soft); color: #7a5210; }
.jt2-stock-note.bad { background: var(--critical-soft); color: #8c2a25; }

/* ---------- sequence stepper ---------- */
.jt2-seq { display: flex; flex-direction: column; }
.jt2-seq-row { display: flex; gap: 11px; min-width: 0; }
.jt2-seq-row.link { cursor: pointer; }
.jt2-seq-row.link:hover .body { background: var(--surface-2); }
.jt2-seq-row .rail { display: flex; flex-direction: column; align-items: center; flex: 0 0 auto; }
.jt2-seq-row .node {
  width: 22px; height: 22px; border-radius: 50%; flex: 0 0 auto;
  display: grid; place-items: center;
  font-size: 10.5px; font-weight: 800; font-family: 'JetBrains Mono', monospace;
  background: var(--surface-2); border: 1.6px solid var(--border); color: var(--ink-4);
}
.jt2-seq-row .node.done { background: var(--good); border-color: var(--good); color: #fff; }
.jt2-seq-row .node.cur { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 0 0 4px var(--accent-soft); }
.jt2-seq-row .node.blocked { background: var(--critical-soft); border-color: var(--critical); color: var(--critical); }
.jt2-seq-row .line { flex: 1; width: 2px; background: var(--border); min-height: 14px; margin: 3px 0; }
.jt2-seq-row .body { flex: 1; min-width: 0; padding: 1px 8px 14px; border-radius: var(--r-sm); }
.jt2-seq-row .top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.jt2-seq-row .ttl { font-size: 13px; font-weight: 700; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jt2-seq-row.fin .ttl { color: var(--ink-4); }
.jt2-seq-row.cur .ttl { font-weight: 800; }
.jt2-seq-row .you {
  flex: 0 0 auto; font-size: 9px; font-weight: 800; letter-spacing: 0.08em; white-space: nowrap;
  background: var(--accent); color: #fff; border-radius: 4px; padding: 2px 6px;
}
.jt2-seq-row .sub { display: flex; flex-wrap: wrap; gap: 3px 12px; margin-top: 3px; font-size: 11.5px; color: var(--ink-4); line-height: 1.4; }
.jt2-seq-row .sub > span { white-space: nowrap; }
.jt2-seq-row .sub .id { font-family: 'JetBrains Mono', monospace; }
.jt2-seq-row .sub .dep { color: var(--ink-3); }

/* ---------- QR ---------- */
.jt2-qr-card { display: flex; justify-content: center; }
.jt2-qr { display: flex; align-items: center; gap: 14px; }
.jt2-qr .qr-img { display: inline-block; flex: 0 0 auto; }
.jt2-qr .qr-img svg { width: 100%; height: 100%; }
.jt2-qr .qr-img.ph {
  display: grid; place-items: center; border: 1.5px dashed var(--border);
  border-radius: var(--r-sm); color: var(--ink-4); font-weight: 800;
}
.jt2-qr .qr-cap { font-size: 12px; color: var(--ink-3); line-height: 1.5; }
.jt2-qr .qr-cap b { font-family: 'JetBrains Mono', monospace; }

/* ---------- admin context ---------- */
.jt2-admin { margin-top: 4px; }
.jt2-admin-note {
  display: flex; align-items: center; gap: 7px;
  font-size: 11.5px; font-weight: 700; color: var(--ink-4);
  padding: 4px 2px 10px;
}

/* ---------- queue readiness chips (board cards) ---------- */
.tk-dtf-chips { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.tk-dtf-chip {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.02em;
  border-radius: 5px; padding: 2px 6px; white-space: nowrap;
}
.tk-dtf-chip.ok { background: var(--good-soft); color: var(--good); }
.tk-dtf-chip.warn { background: var(--warn-soft); color: var(--warn); }
.tk-dtf-chip.bad { background: var(--critical-soft); color: var(--critical); }
.tk-dtf-chip.run { background: var(--info-soft); color: var(--info); font-family: 'JetBrains Mono', monospace; }

/* ---------- responsive ---------- */
@media (max-width: 1060px) {
  .jt2-grid { grid-template-columns: 1fr; }
  .jt2-gates { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .jt2-sum { grid-template-columns: 1fr 1fr; }
  .jt2-stock-grid { grid-template-columns: repeat(2, 1fr); }
  .jt2-blank-place { gap: 14px; }
}

/* ============================================================
   Station print ticket — hidden on screen, replaces the page
   in print for tasks that have a DTF extension.
   ============================================================ */
.jt2-ticket { display: none; }

@media print {
  .jt2-wrap.has-ticket .jt2-screen { display: none !important; }
  .jt2-wrap.has-ticket .jt2-ticket { display: block; }

  /* tasks without DTF ext print the screen as a clean sheet */
  body.jt-print-scope .jt2-card { box-shadow: none; break-inside: avoid; }
  body.jt-print-scope .jt2-grid { display: block; }
  body.jt-print-scope .jt2-viewtoggle { display: none; }

  .jt2-ticket { color: #111; font-size: 13px; }
  .jt2-tk-head {
    display: flex; justify-content: space-between; align-items: flex-start; gap: 20px;
    border-bottom: 3px solid #111; padding-bottom: 14px;
  }
  .jt2-tk-big { font-size: 44px; font-weight: 800; letter-spacing: 0.02em; line-height: 1; }
  .jt2-tk-ids { display: flex; gap: 18px; margin-top: 12px; font-family: 'JetBrains Mono', monospace; font-size: 14px; }
  .jt2-tk-ids b { font-family: inherit; font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; display: block; color: #666; }
  .jt2-tk-ids .rush {
    border: 2.5px solid #111; padding: 4px 10px; font-weight: 800; letter-spacing: 0.12em;
    border-radius: 4px; align-self: center;
  }
  .jt2-ticket .jt2-qr .qr-cap { display: none; }

  .jt2-tk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; padding: 16px 0; }
  .jt2-tk-grid .k { display: block; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #666; }
  .jt2-tk-grid .v { display: block; font-size: 16px; font-weight: 800; margin-top: 2px; }
  .jt2-tk-grid .k2 { display: block; font-size: 11.5px; color: #444; margin-top: 1px; font-family: 'JetBrains Mono', monospace; }

  .jt2-tk-sizes { width: 100%; border-collapse: collapse; margin-top: 4px; }
  .jt2-tk-sizes th {
    text-align: left; font-size: 10px; text-transform: uppercase; letter-spacing: 0.07em;
    border-bottom: 2px solid #111; padding: 4px 8px 6px;
  }
  .jt2-tk-sizes td { border-bottom: 1px solid #bbb; padding: 8px; font-family: 'JetBrains Mono', monospace; font-size: 14px; }
  .jt2-tk-sizes td.sz { font-family: inherit; font-weight: 800; }
  .jt2-tk-sizes td.write { background: #fff; border: 1px solid #999; min-width: 90px; }
  .jt2-tk-sizes tr.art td {
    font-family: inherit; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em;
    background: #f0f0f0; border-bottom: 1.5px solid #111; padding: 6px 8px;
  }
  .jt2-tk-sizes tr.subtotal td { font-weight: 800; border-bottom: 1.5px solid #777; }
  .jt2-tk-sizes tr.subtotal td.sz { font-size: 12px; }
  .jt2-tk-sizes tr.total td { border-top: 2px solid #111; font-weight: 800; }

  .jt2-tk-sign { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; margin-top: 34px; }
  .jt2-tk-sign .cell { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: #555; }
  .jt2-tk-sign .line { border-bottom: 1.5px solid #111; height: 40px; margin-bottom: 6px; }
  .jt2-tk-foot { margin-top: 22px; font-size: 10.5px; color: #777; text-align: right; }
}
