/* ============================================================
   SAFENTRA — PTW SIM 08 · SITE VERIFICATION + GAS TESTING
   field-first tablet workspace: big touch targets, sticky
   action footer, tri-state checklist, gas reading cards.
   ============================================================ */

/* ---------- field verification shell ---------- */
.fv-shell { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 14px; align-items: start; }
.fv-side { position: sticky; top: 58px; }
.fv-item { border: 1px solid var(--color-border); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; background: var(--color-surface-1); }
.fv-item .q { font-size: 13px; font-weight: 600; display: flex; align-items: baseline; gap: 8px; }
.fv-item .q .ix { color: var(--color-text-4); font-weight: 400; font-size: 11px; }
.fv-vote { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.fv-vote button { flex: 1 1 0; min-width: 74px; min-height: 44px; font-size: 12px; border-radius: 8px; border: 1.5px solid var(--color-border); background: var(--color-surface-2); cursor: pointer; font-weight: 600; color: var(--color-text-2); }
.fv-vote button.on-yes { background: #0E9C8E; border-color: #0E9C8E; color: #fff; }
.fv-vote button.on-no { background: #E5484D; border-color: #E5484D; color: #fff; }
.fv-vote button.on-na { background: #64748B; border-color: #64748B; color: #fff; }
.fv-item.no { border-color: #E5484D88; box-shadow: inset 0 0 0 1px #E5484D44; }
.fv-item .ca { margin-top: 8px; display: grid; gap: 6px; }
.fv-progress { height: 10px; border-radius: 6px; background: var(--color-surface-3); overflow: hidden; }
.fv-progress i { display: block; height: 100%; background: #0F62FE; }
.fv-photo { border: 1.5px dashed var(--color-border); border-radius: 8px; padding: 10px; text-align: center; font-size: 11px; color: var(--color-text-4); display: grid; place-items: center; gap: 6px; min-height: 64px; background: var(--color-surface-2); }

/* sticky action footer (tablet field experience) */
.fv-foot { position: sticky; bottom: 0; z-index: 5; background: var(--color-surface-1); border-top: 1px solid var(--color-border); padding: 10px 12px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; border-radius: 0 0 10px 10px; }

/* WORK RELEASE BLOCKED banner */
.wrb { border: 2px solid #E5484D; background: #E5484D; color: #fff; border-radius: 10px; padding: 14px 16px; }
.wrb h3 { color: #fff; display: flex; gap: 8px; align-items: center; font-size: 15px; margin: 0; }
.wrb ul { margin: 8px 0 0; padding-left: 18px; font-size: 12px; }
.wrb.pass { border-color: #0E9C8E; background: #0E9C8E; }

/* ---------- environment condition capture grid ---------- */
.env-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }

/* ---------- gas test workspace ---------- */
.gt-read { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 10px; }
.gt-card { border: 1px solid var(--color-border); border-radius: 10px; padding: 10px 12px; background: var(--color-surface-1); position: relative; }
.gt-card .gn { font-size: 11px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.gt-card .gv { font-size: 26px; font-weight: 700; letter-spacing: -0.5px; margin: 4px 0 0; font-variant-numeric: tabular-nums; }
.gt-card .gu { font-size: 11px; color: var(--color-text-4); }
.gt-card .gr { font-size: 10px; color: var(--color-text-4); margin-top: 4px; }
.gt-card .gi { position: absolute; top: 10px; right: 10px; width: 10px; height: 10px; border-radius: 50%; }
.gt-card.ok .gi { background: #0E9C8E; } .gt-card.warn .gi { background: #E8930C; } .gt-card.bad .gi { background: #E5484D; animation: gtPulse 1.2s infinite; }
.gt-card input.ctl { font-size: 22px; font-weight: 700; text-align: center; padding: 6px; }
@keyframes gtPulse { 50% { opacity: .35; } }
.gt-trend { display: flex; align-items: flex-end; gap: 3px; height: 64px; padding: 6px 8px; border: 1px solid var(--color-border); border-radius: 8px; background: var(--color-surface-2); }
.gt-trend i { flex: 1; min-width: 5px; border-radius: 2px 2px 0 0; background: #0F62FE; }
.gt-trend i.warn { background: #E8930C; } .gt-trend i.bad { background: #E5484D; }
.gt-limit { position: relative; }
.gt-limit .lim { position: absolute; left: 0; right: 0; border-top: 1px dashed #E5484D; }

/* ---------- specialized checklist ---------- */
.spx-group { border: 1px solid var(--color-border); border-radius: 10px; overflow: hidden; }
.spx-h { padding: 10px 12px; font-weight: 700; font-size: 12px; display: flex; gap: 8px; align-items: center; background: var(--color-surface-2); border-bottom: 1px solid var(--color-border-soft); }
.spx-i { display: flex; align-items: center; gap: 10px; padding: 7px 12px; border-bottom: 1px solid var(--color-border-soft); font-size: 12px; }
.spx-i:last-child { border-bottom: 0; }
.spx-i .chk { width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid var(--color-border); display: grid; place-items: center; cursor: pointer; flex: none; background: var(--color-surface-1); }
.spx-i .chk.on { background: #0E9C8E; border-color: #0E9C8E; color: #fff; }
.spx-i .chk.fail { background: #E5484D; border-color: #E5484D; color: #fff; }
.spx-i .obs { margin-left: auto; font-size: 10px; color: var(--color-text-4); }

/* ---------- verification status chips ---------- */
.vst { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 10px; letter-spacing: .02em; }
.vst.pend { background: #0F62FE14; color: #0F62FE; }
.vst.ok { background: #0E9C8E14; color: #0B7C71; }
.vst.cond { background: #E8930C16; color: #B45309; }
.vst.bad { background: #E5484D14; color: #C62F35; }
.vst.gray { background: #64748B14; color: #55647A; }

@media (max-width: 1180px) {
  .fv-shell { grid-template-columns: minmax(0, 1fr) 280px; }
}
@media (max-width: 900px) {
  .fv-shell { grid-template-columns: 1fr; }
  .fv-side { position: static; }
}
@media (max-width: 780px) {
  .fv-vote button { min-height: 52px; font-size: 13px; }
  .gt-read { grid-template-columns: repeat(2, 1fr); }
  .fv-foot { position: sticky; }
}
