/* Set-up tolerance check: check cards, photo, signature pad and the printed sheet (shared styles: tools.css + tool-page.css) */
.st-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.st-row { display: grid; gap: 8px; padding: 10px; border: 1.5px solid var(--concrete-2); border-left-width: 6px; border-radius: 12px; background: var(--white); }
.st-row.st-pass { border-left-color: #16a34a; } .st-row.st-fail { border-left-color: var(--red); background: #fffafa; } .st-row.st-check { border-left-color: var(--orange); }
.st-top { display: grid; grid-template-columns: 30px minmax(0, 1fr) 44px; gap: 8px; align-items: center; }
.st-n { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--asphalt); color: var(--yellow); font-size: .85rem; }
.st-x { width: 44px; height: 44px; border-radius: 10px; border: 1.5px solid var(--concrete-2); background: var(--white); color: var(--red); font-size: 1.3rem; line-height: 1; cursor: pointer; }
.st-nums { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-items: end; }
.tool-in .st-mode { display: grid; gap: 4px; font-size: .84rem; }
.st-photo { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.st-photo img { width: 88px; height: 66px; object-fit: cover; border-radius: 8px; border: 1px solid var(--concrete-2); }
.st-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 14px; border-radius: 10px; border: 1.5px solid var(--asphalt); background: var(--asphalt); color: var(--yellow); font: inherit; font-weight: 800; font-size: .88rem; cursor: pointer; }
.st-btn.ghost { background: var(--white); color: var(--asphalt); }
.tool-in label.st-file { display: inline-flex; font-size: .88rem; color: var(--asphalt); position: relative; overflow: hidden; }
.st-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 0; }
.st-add { display: flex; flex-wrap: wrap; gap: 8px; }
.st-empty { padding: 12px; border: 1.5px dashed var(--concrete-2); border-radius: 12px; color: var(--steel); font-size: .88rem; }
.st-sign { position: relative; border: 1.5px dashed var(--concrete-2); border-radius: 12px; background: var(--white); height: 150px; }
.st-sign canvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: crosshair; border-radius: 12px; }
.st-sign-hint { position: absolute; inset: 0; display: grid; place-items: center; color: var(--steel); font-weight: 700; pointer-events: none; }
.st-type { display: block; font-size: .72rem; color: #aab0ba; font-weight: 600; }
/* the result table: let the item column wrap */
.tool-out .out-table td:first-child { min-width: 140px; }
/* printed audit sheet */
.st-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.st-fig { margin: 0; break-inside: avoid; }
.st-fig img { width: 100%; height: auto; border-radius: 6px; }
.st-fig figcaption { font-size: .78rem; }
.st-signed { display: grid; grid-template-columns: 2fr 1.4fr 1fr; gap: 16px; margin-top: 18px; break-inside: avoid; }
.st-signed > div { border-top: 1px solid #999; padding-top: 4px; display: grid; align-content: end; min-height: 60px; }
.st-signed img { max-height: 70px; max-width: 100%; }
.st-signed small { color: #666; font-size: .75rem; }
#tw-print .st-photos { grid-template-columns: repeat(3, 1fr); }
#tw-print .st-type { color: #555 !important; }
#tool-out .out-table td:not(:first-child) { white-space: nowrap; }
