/* IGR Check: on top of app.css (shared with Stock Follow Up) */
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row .input { flex: 1; min-width: 160px; }
.tabs { position: sticky; top: calc(env(safe-area-inset-top) + 52px); z-index: 11; background: var(--bg); }
.filters { top: calc(env(safe-area-inset-top) + 96px); }
.filter-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0 8px; }
.filters > .input { padding: 8px 10px; font-size: 14px; margin-bottom: 4px; }
.days-in { width: 72px !important; flex: none; padding: 5px 8px !important; font-size: 13px !important; border-radius: 999px !important; text-align: center; }
.bad-t { color: var(--bad); }
.tile.bad-tile b { color: var(--bad); }

.ck-name { font-size: 17px; font-weight: 700; }
.verdict { margin-top: 10px; border-radius: 12px; padding: 12px; font-size: 18px; font-weight: 800; text-align: center; }
.verdict.good { background: var(--good-soft); color: var(--good); }
.verdict.bad { background: var(--bad-soft); color: var(--bad); }

/* one IGR line: photo, item, quantity */
.igr-line { display: flex; gap: 10px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.igr-line .what { flex: 1; min-width: 0; }
.igr-line .ar { font-weight: 600; }
.igr-line .en { font-size: 12px; color: var(--muted); direction: ltr; text-align: start; unicode-bidi: plaintext; }
.igr-line .meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.igr-line .tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.igr-line .q { text-align: center; min-width: 44px; }
.igr-line .q b { font-size: 20px; }
.ph { flex: none; width: 72px; height: 72px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); padding: 0; position: relative; }
.ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph.none { display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--muted); text-align: center; }
.ph .ph-fail { display: none; }
.ph.broken img { display: none; }
.ph.broken .ph-fail { display: flex; position: absolute; inset: 0; align-items: center; justify-content: center; font-size: 11px; text-align: center; padding: 4px; color: var(--brand); }
.pdot.p-check { background: var(--p-check); } .pdot.p-shelf { background: var(--p-shelf); } .pdot.p-off { background: var(--p-off); }
.pdot.p-back { background: var(--p-back); } .pdot.p-other { background: var(--p-other); }

/* full photo */
.photo-bg { position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, .85); display: flex; align-items: center; justify-content: center; padding: 16px; }
.photo-box { width: 100%; max-width: 700px; display: flex; flex-direction: column; gap: 10px; }
.photo-box img { width: 100%; max-height: 75vh; object-fit: contain; border-radius: 12px; background: #000; }
.photo-box .ph-msg { display: none; color: #fff; text-align: center; }
.photo-box.broken img { display: none; }
.photo-box.broken .ph-msg { display: block; }
.photo-box .row { justify-content: center; }

details.visit > summary { cursor: pointer; list-style: none; }
details.visit > summary::-webkit-details-marker { display: none; }
details.visit > summary::before { content: '▸'; color: var(--muted); }
details.visit[open] > summary::before { content: '▾'; }
#tabs button { flex: 1; padding: 10px 4px; font-size: 14px; }
