/* Sujata PV: mobile-first, large touch targets, readable in a warehouse. */
:root {
  --ink: #1d2430; --muted: #5f6b7a; --line: #dfe3e8; --bg: #f5f6f8; --card: #fff;
  --brand: #0b5cad; --brand-ink: #fff; --warn: #b45309; --ok: #15803d; --bad: #b91c1c;
  --radius: 10px;
}
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.5 system-ui, -apple-system, "Segoe UI", "Noto Sans Devanagari", sans-serif; color: var(--ink); background: var(--bg); }
a { color: var(--brand); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.test-banner { background: var(--warn); color: #fff; text-align: center; font-weight: 700; padding: 6px 12px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; background: var(--card); border-bottom: 1px solid var(--line); }
.brand { font-weight: 700; text-decoration: none; color: var(--ink); }
.brand span { font-weight: 400; color: var(--muted); margin-left: 6px; }
.topbar-right { display: flex; align-items: center; gap: 10px; }
.topbar-right form { margin: 0; }
select, input[type=text], input[type=email] { max-width: 100%; font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; min-height: 44px; }
.page { max-width: 960px; margin: 0 auto; padding: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; overflow-x: auto; }
.card.narrow { max-width: 440px; margin: 32px auto; }
h1 { font-size: 1.4rem; margin: 0 0 8px; } h2 { font-size: 1.15rem; } h3 { font-size: 1rem; margin-top: 20px; }
.eyebrow { color: var(--muted); font-size: .85rem; margin: 0 0 4px; }
.muted { color: var(--muted); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn-block { width: 100%; }
.btn-small { min-height: 36px; padding: 6px 12px; font-size: .9rem; }
button.link { background: none; border: 0; color: var(--brand); font: inherit; cursor: pointer; padding: 8px 4px; min-height: 44px; }
.msg { padding: 12px 14px; border-radius: 8px; margin-bottom: 12px; border: 1px solid var(--line); background: #fff; }
.msg-success { border-color: var(--ok); } .msg-error { border-color: var(--bad); } .msg-info { border-color: var(--brand); }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.row label { display: flex; flex-direction: column; gap: 4px; font-size: .9rem; color: var(--muted); flex: 1 1 220px; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table form { margin: 0; }
.links { padding-left: 18px; } .links li { margin: 6px 0; }
@media (max-width: 560px) {
  .brand span { display: none; }
  .table thead { display: none; }
  .table tr { display: block; border-bottom: 1px solid var(--line); padding: 8px 0; }
  .table td { display: block; border: 0; padding: 2px 0; }
}
/* Step 1: set-up screens */
input[type=number], input[type=date], input[type=time], input[type=file], textarea { max-width: 100%; font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; min-height: 44px; }
textarea { width: 100%; }
.subnav { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; margin-bottom: 12px; font-size: .95rem; }
.subnav a { padding: 6px 0; }
.subnav-plant { font-weight: 700; color: var(--ink); text-decoration: none; margin-right: 6px; }
.fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px 16px; margin-bottom: 14px; }
.field { display: flex; flex-direction: column; gap: 4px; }
.field > label { font-size: .9rem; color: var(--muted); }
.field.check > label { color: var(--ink); font-size: 1rem; display: flex; gap: 8px; align-items: center; min-height: 44px; }
.field input[type=checkbox], .inline input[type=checkbox] { width: 22px; height: 22px; }
.field ul { list-style: none; padding: 0; margin: 0; display: flex; gap: 16px; }
.field ul label { display: flex; gap: 6px; align-items: center; min-height: 44px; }
.err { color: var(--bad); font-size: .9rem; }
.has-error input, .has-error select { border-color: var(--bad); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.actions form { margin: 0; }
.head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
.pill { display: inline-block; font-size: .8rem; padding: 1px 8px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); color: var(--muted); }
.pill-warn { color: var(--warn); border-color: var(--warn); background: #fff7ed; }
tr.inactive td { color: var(--muted); }
.right { text-align: right; }
.inline { display: inline-flex; gap: 6px; align-items: center; margin-right: 12px; min-height: 44px; }
.inline-form { display: flex; gap: 6px; align-items: center; }
.inline-form input { width: 7em; min-height: 36px; padding: 6px 8px; }
.checks { display: flex; flex-wrap: wrap; gap: 0 4px; align-items: center; }
.star { background: none; border: 0; font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--muted); min-width: 44px; min-height: 44px; }
.star.on { color: #d97706; }
.item-picture { max-width: 240px; max-height: 240px; border: 1px solid var(--line); border-radius: 8px; display: block; margin-bottom: 8px; }
.counts { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0; }
.counts div { border: 1px solid var(--line); border-radius: 8px; padding: 8px 14px; min-width: 110px; color: var(--muted); font-size: .9rem; }
.counts span { display: block; font-size: 1.5rem; font-weight: 700; color: var(--ink); }
.counts .bad span { color: var(--bad); }
.progress { display: flex; gap: 10px; align-items: center; margin-top: 12px; }
.progress progress { width: 240px; height: 14px; }
.pager { display: flex; gap: 10px; align-items: center; margin-top: 12px; }
code { background: var(--bg); padding: 2px 6px; border-radius: 4px; word-break: break-word; }
.fixed { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 8px 0; }
.fixed dt { color: var(--muted); }
.fixed dd { margin: 0; font-weight: 600; }
