/* Guruved App: नीम का हरा, हल्दी का पीला, कुमकुम का लाल */
@font-face { font-family: 'Mukta'; font-weight: 400; font-display: swap; src: url(/fonts/mukta-devanagari-400-normal.woff2) format('woff2'); unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FF; }
@font-face { font-family: 'Mukta'; font-weight: 600; font-display: swap; src: url(/fonts/mukta-devanagari-600-normal.woff2) format('woff2'); unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FF; }
@font-face { font-family: 'Mukta'; font-weight: 700; font-display: swap; src: url(/fonts/mukta-devanagari-700-normal.woff2) format('woff2'); unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FF; }
@font-face { font-family: 'Mukta'; font-weight: 400; font-display: swap; src: url(/fonts/mukta-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Mukta'; font-weight: 600; font-display: swap; src: url(/fonts/mukta-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Mukta'; font-weight: 700; font-display: swap; src: url(/fonts/mukta-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --neem: #1F4D3A;
  --neem-2: #2B6650;
  --neem-soft: #E3EDE6;
  --leaf: #F1F5EF;
  --paper: #FFFFFF;
  --ink: #18221D;
  --ink-2: #4E5D55;
  --ink-3: #7A8880;
  --line: #D6DFD5;
  --haldi: #E9A21A;
  --haldi-deep: #8A5A00;
  --haldi-soft: #FCF1D8;
  --kumkum: #B0281F;
  --kumkum-soft: #F9E3E0;
  --nila: #2C5A86;
  --nila-soft: #E2EBF4;
  --r-s: 8px;
  --r-m: 12px;
  --r-l: 18px;
  --nav-h: 64px;
  --top-h: 56px;
  font-size: 16px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Mukta', 'Noto Sans Devanagari', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background: var(--leaf);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--neem); }
h1, h2, h3 { line-height: 1.2; margin: 0; }
h1 { font-size: 1.6rem; font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: 1.15rem; font-weight: 700; }
small { font-size: 0.8rem; color: var(--ink-3); font-weight: 400; }
.ic { width: 20px; height: 20px; flex: none; }
:focus-visible { outline: 3px solid var(--haldi); outline-offset: 2px; }
[hidden] { display: none !important; }

/* ---------- App का ढाँचा ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  height: var(--top-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px; padding-top: env(safe-area-inset-top);
  background: var(--neem); color: #fff;
}
.brand { display: flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-weight: 700; font-size: 1.15rem; }
.brand-mark { width: 24px; height: 24px; color: var(--haldi); }
.who { display: flex; align-items: center; gap: 10px; }
.team-chip { font-size: 0.85rem; padding: 2px 10px; border-radius: 99px; background: rgba(255,255,255,.14); }
.me { display: flex; align-items: center; gap: 6px; color: #fff; text-decoration: none; font-weight: 600; }

.main { padding: 16px 16px calc(var(--nav-h) + 40px); max-width: 1120px; margin: 0 auto; }
.bare .main { padding-bottom: 40px; }

.sidenav { display: none; }
.bottomnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  height: calc(var(--nav-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  display: flex; background: var(--paper); border-top: 1px solid var(--line);
}
.bottomnav a {
  flex: 1; position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: var(--ink-3); text-decoration: none; font-size: 0.78rem; font-weight: 600;
}
.bottomnav a.on { color: var(--neem); }
.bottomnav a.on::before { content: ''; position: absolute; top: 0; left: 28%; right: 28%; height: 3px; border-radius: 0 0 3px 3px; background: var(--neem); }
.bottomnav .ic { width: 22px; height: 22px; }
.badge {
  display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 99px; background: var(--haldi); color: var(--ink); font-size: 0.75rem; font-weight: 700; font-style: normal;
}
.bottomnav .badge { position: absolute; top: 6px; left: 54%; }

/* + Order: हर screen पर, नीचे की पट्टी के बीच में, हल्दी के रंग में */
.bottomnav .nav-order { color: var(--haldi-deep); }
.bottomnav .nav-order .ic {
  width: 28px; height: 28px; padding: 13px; box-sizing: content-box; margin-top: -30px;
  border-radius: 50%; background: var(--haldi); color: var(--ink); stroke-width: 2.6;
  box-shadow: 0 0 0 5px var(--paper), 0 8px 18px rgba(138, 90, 0, .35);
}
.bottomnav .nav-order span { font-weight: 700; }
.bottomnav .nav-order.on::before { display: none; }
.bottomnav .nav-order:active .ic { transform: translateY(1px); }
.side-order {
  margin-bottom: 10px; justify-content: center;
  background: var(--haldi) !important; color: var(--ink) !important; font-weight: 700 !important;
  box-shadow: 0 4px 12px rgba(138, 90, 0, .25);
}
.side-order .ic { stroke-width: 2.6; }

@media (min-width: 960px) {
  .shell { display: grid; grid-template-columns: 236px 1fr; grid-template-rows: var(--top-h) 1fr; }
  .topbar { grid-column: 1 / -1; }
  .sidenav {
    display: flex; flex-direction: column; gap: 2px;
    position: sticky; top: var(--top-h); align-self: start; height: calc(100vh - var(--top-h));
    padding: 16px 12px; background: var(--paper); border-right: 1px solid var(--line); overflow-y: auto;
  }
  .sidenav a, .sidenav button {
    display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-s);
    color: var(--ink-2); text-decoration: none; font: inherit; font-weight: 600; background: none; border: 0; cursor: pointer; text-align: left;
  }
  .sidenav a:hover { background: var(--leaf); color: var(--ink); }
  .sidenav a.on { background: var(--neem-soft); color: var(--neem); }
  .sidenav .badge { margin-left: auto; }
  .sidenav .install-btn { margin-top: auto; color: var(--neem); }
  .bottomnav { display: none; }
  .main { padding: 28px 32px 80px; width: 100%; }
}

/* ---------- सामान्य हिस्से ---------- */
.page-head { margin: 4px 0 16px; }
.page-head .sub { margin: 4px 0 0; color: var(--ink-2); }
.row-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.back { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 6px; color: var(--ink-2); text-decoration: none; font-weight: 600; }
.back .ic { width: 18px; height: 18px; }

.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-m); margin-bottom: 14px; overflow: hidden; }
.panel.pad, .panel .pad { padding: 16px; }
.pad-x { padding-left: 16px; padding-right: 16px; }
.panel h2 { margin-bottom: 10px; }
.panel-title { padding: 14px 16px 0; }
fieldset.panel { margin: 0 0 14px; min-width: 0; }
fieldset.panel legend { float: left; width: 100%; padding: 0 0 12px; font-weight: 700; font-size: 1.05rem; }
fieldset.panel legend + * { clear: both; }

.flashes { margin-bottom: 12px; }
.flash { margin: 0 0 8px; padding: 10px 14px; border-radius: var(--r-s); font-weight: 600; border-left: 4px solid; }
.flash.ok { background: var(--neem-soft); border-color: var(--neem); color: var(--neem); }
.flash.info { background: var(--nila-soft); border-color: var(--nila); color: var(--nila); }
.flash.error { background: var(--kumkum-soft); border-color: var(--kumkum); color: var(--kumkum); }

.notice { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; padding: 12px 14px; border-radius: var(--r-s); background: var(--haldi-soft); color: var(--haldi-deep); font-weight: 600; text-decoration: none; }
.notice.soft { background: var(--paper); border: 1px solid var(--line); color: var(--ink-2); }
.panel .notice { margin: 0 16px 16px; }

.empty { margin: 0; padding: 22px 16px; color: var(--ink-2); }
.hint { margin: 6px 0 0; font-size: 0.9rem; color: var(--ink-3); }
.list-count { margin: 0; padding: 12px 16px; color: var(--ink-2); font-size: 0.92rem; border-bottom: 1px solid var(--line); }
.more { display: block; padding: 12px 16px; font-weight: 600; text-decoration: none; border-top: 1px solid var(--line); }
.hot-text { color: var(--haldi-deep); font-weight: 700; }
.stop-text { color: var(--kumkum); font-weight: 700; }
.dim { opacity: .6; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 8px 16px; border-radius: var(--r-s);
  border: 1px solid var(--line); background: var(--paper); color: var(--ink);
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; text-align: center;
}
.btn:hover { border-color: var(--ink-3); }
.btn.primary { background: var(--neem); border-color: var(--neem); color: #fff; }
.btn.primary:hover { background: var(--neem-2); }
.btn.call { background: var(--neem-soft); border-color: var(--neem-soft); color: var(--neem); }
.btn.danger { background: var(--kumkum); border-color: var(--kumkum); color: #fff; }
.btn.ghost { background: transparent; }
.btn.small { min-height: 38px; padding: 6px 12px; font-size: 0.92rem; }
.btn.big { min-height: 54px; font-size: 1.08rem; width: 100%; }
.btn .ic { width: 18px; height: 18px; }

/* ---------- Forms ---------- */
.stack { display: grid; gap: 14px; }
.field { display: grid; gap: 4px; margin: 0; border: 0; padding: 0; min-width: 0; }
.field > span, .field > legend { font-size: 0.92rem; font-weight: 600; color: var(--ink-2); padding: 0; }
.field input, .field select, .field textarea, .inline-filter select, .inline-filter input, .vship select, .vship input {
  width: 100%; min-height: 46px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: var(--r-s); background: #FBFCFA; color: var(--ink);
  font: inherit; font-size: 1rem;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--neem); box-shadow: 0 0 0 3px var(--neem-soft); background: #fff; }
.field.bad input, .field.bad select, .field.bad textarea { border-color: var(--kumkum); background: #FFF8F7; }
.field em, .field-error { font-style: normal; font-size: 0.88rem; color: var(--kumkum); font-weight: 600; margin: 0; }
.row2, .row3 { display: grid; gap: 14px; }
@media (min-width: 640px) { .row2 { grid-template-columns: 1fr 1fr; } .row3 { grid-template-columns: 1fr 1.3fr 1.3fr; } }
.order-form fieldset.panel > :not(legend) + :not(legend) { margin-top: 14px; }
.order-form fieldset.panel > legend + * { margin-top: 0; }
.order-form fieldset.panel > .items { margin-bottom: 0; }

.choice { display: flex; flex-wrap: wrap; gap: 8px; }
.choice label { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; }
.choice span {
  display: inline-flex; align-items: center; min-height: 46px; padding: 8px 18px;
  border: 1px solid var(--line); border-radius: var(--r-s); background: #FBFCFA; font-weight: 600; cursor: pointer;
}
.choice input:checked + span { background: var(--neem); border-color: var(--neem); color: #fff; }
.choice input:focus-visible + span { outline: 3px solid var(--haldi); outline-offset: 2px; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink-2); }
.check input { width: 20px; height: 20px; accent-color: var(--neem); }

.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin-bottom: 14px; }
.filters .field { flex: 1 1 140px; }
.filters .field.grow { flex: 2 1 220px; }
.filters .field input, .filters .field select { min-height: 42px; padding: 8px 10px; }
.inline-filter select, .inline-filter input { min-height: 40px; width: auto; }
.inline-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.inline-form .field { flex: 1 1 120px; }
.inline-form .field.grow { flex: 3 1 220px; }
.grid-form { display: grid; gap: 12px; align-items: end; }
@media (min-width: 720px) { .grid-form { grid-template-columns: repeat(2, 1fr); } .grid-form .span { grid-column: 1 / -1; } }
.pick { position: relative; }
.pick summary { min-height: 42px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r-s); background: #FBFCFA; cursor: pointer; font-weight: 600; list-style: none; }
.pick-list { position: absolute; z-index: 5; top: calc(100% + 4px); left: 0; min-width: 240px; max-height: 320px; overflow: auto; padding: 8px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-s); box-shadow: 0 10px 30px rgba(24, 34, 29, .15); }
.pick-list label { display: flex; gap: 8px; align-items: center; padding: 6px 4px; font-weight: 600; }

/* ---------- Login / Signup ---------- */
.auth { max-width: 420px; margin: 0 auto; padding-top: 24px; }
.auth-head { margin-bottom: 22px; }
.auth-mark { width: 44px; height: 44px; color: var(--neem); margin-bottom: 10px; }
.auth-head h1 { font-size: 2.1rem; color: var(--neem); }
.auth-head p { margin: 6px 0 0; color: var(--ink-2); }
.auth-alt { margin: 18px 0 4px; font-weight: 600; }
.auth-note { margin: 0; color: var(--ink-3); font-size: 0.9rem; }
.message { max-width: 480px; margin: 40px auto; }
.message h1 { margin-bottom: 10px; }
.message p { color: var(--ink-2); margin: 0 0 20px; }
.bare-brand { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; font-weight: 700; color: var(--neem); font-size: 1.2rem; }

/* ---------- Attendance: Present button और मुहर ---------- */
.present { display: grid; justify-items: center; padding: 10px 0 18px; }
.present form { display: contents; }
.present-btn {
  width: 188px; height: 188px; border-radius: 50%;
  display: grid; place-content: center; gap: 4px;
  border: 0; cursor: pointer; font: inherit; color: #fff;
  background: radial-gradient(circle at 50% 38%, var(--neem-2), var(--neem) 70%);
  box-shadow: 0 0 0 10px var(--neem-soft), 0 14px 30px rgba(31, 77, 58, .35);
}
.present-btn:active { transform: scale(.97); }
.present-label { font-size: 2rem; font-weight: 700; line-height: 1; }
.present-sub { font-size: 0.82rem; opacity: .85; max-width: 130px; line-height: 1.3; }
.stamp {
  width: 188px; height: 188px; border-radius: 50%;
  display: grid; place-content: center; justify-items: center; gap: 2px;
  border: 4px double var(--haldi-deep); color: var(--haldi-deep);
  background: var(--haldi-soft);
  transform: rotate(-7deg);
}
.stamp-top { font-size: 1.15rem; font-weight: 700; letter-spacing: .02em; }
.stamp-time { font-size: 2.1rem; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.stamp-date { font-size: 0.85rem; font-weight: 600; }
@media (prefers-reduced-motion: no-preference) {
  .stamp { animation: stamp-in .45s cubic-bezier(.2, 1.4, .4, 1) both; }
  @keyframes stamp-in { from { transform: rotate(-7deg) scale(1.5); opacity: 0; } to { transform: rotate(-7deg) scale(1); opacity: 1; } }
}
.present-note { margin: 16px 0 0; color: var(--ink-2); font-weight: 600; }

.tally { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); margin-top: 12px; }
.tally > * { padding: 12px 8px; text-align: center; text-decoration: none; color: inherit; border-right: 1px solid var(--line); }
.tally > *:last-child { border-right: 0; }
.tally b { display: block; font-size: 1.5rem; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.2; }
.tally span { font-size: 0.8rem; color: var(--ink-2); line-height: 1.25; display: block; }
.tally .hot b { color: var(--haldi-deep); }
.tally .hot { background: var(--haldi-soft); }
.tally .stop b { color: var(--kumkum); }
.tally .stop { background: var(--kumkum-soft); }

.month-nav { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.att-list, .att-team { list-style: none; margin: 0; padding: 0; }
.att-list li, .att-team li { display: flex; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.att-list li:last-child, .att-team li:last-child { border-bottom: 0; }
.att-list b, .att-team b { font-variant-numeric: tabular-nums; }
.att-team li.no b { color: var(--kumkum); font-weight: 600; }
.att-team li.yes b { color: var(--neem); }

/* ---------- Orders की list ---------- */
.olist { display: flex; flex-direction: column; }
.orow {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 12px 16px 12px 13px; border-left: 4px solid var(--line); border-bottom: 1px solid var(--line);
  color: inherit; text-decoration: none;
}
.orow:last-child { border-bottom: 0; }
.orow:hover { background: #FAFCF9; }
.orow-main, .orow-side { display: flex; flex-direction: column; min-width: 0; }
.orow-side { align-items: flex-end; text-align: right; flex: none; }
.orow-no { font-size: 0.82rem; color: var(--ink-3); font-weight: 600; font-variant-numeric: tabular-nums; }
.orow-name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.orow-meta { font-size: 0.85rem; color: var(--ink-2); }
.orow-amt { font-weight: 700; font-variant-numeric: tabular-nums; }
.tone-wait { border-left-color: var(--haldi); }
.tone-ok { border-left-color: var(--neem-2); }
.tone-move { border-left-color: var(--nila); }
.tone-done { border-left-color: var(--neem); }
.tone-stop { border-left-color: var(--kumkum); }
.status { display: inline-block; margin-top: 4px; padding: 1px 8px; border-radius: 6px; font-size: 0.8rem; font-weight: 700; white-space: nowrap; }
.s-wait { background: var(--haldi-soft); color: var(--haldi-deep); }
.s-ok { background: var(--neem-soft); color: var(--neem); }
.s-move { background: var(--nila-soft); color: var(--nila); }
.s-done { background: var(--neem); color: #fff; }
.s-stop { background: var(--kumkum-soft); color: var(--kumkum); }

/* ---------- Order का page ---------- */
.status-banner { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; padding: 12px 16px; margin-bottom: 14px; border-radius: var(--r-m); border-left: 6px solid; background: var(--paper); }
.status-banner b { font-size: 1.1rem; }
.status-banner span { color: var(--ink-2); }
.status-banner.tone-wait { background: var(--haldi-soft); }
.status-banner.tone-stop { background: var(--kumkum-soft); }
.status-banner.tone-move { background: var(--nila-soft); }
.status-banner.tone-ok, .status-banner.tone-done { background: var(--neem-soft); }
.warn-box { background: var(--haldi-soft); border-color: #F0D79E; }
.warn-box h2 { display: flex; align-items: center; gap: 8px; color: var(--haldi-deep); font-size: 1rem; }
.mini-list { margin: 0; padding-left: 18px; }
.mini-list li { margin: 4px 0; }
.actions-panel { display: grid; gap: 10px; }
.actions-panel h2 { margin: 0; }
.action-grid { display: grid; gap: 10px; }
.action-grid .btn { width: 100%; }
.later summary { list-style: none; width: 100%; }
.later summary::-webkit-details-marker { display: none; }
.later[open] summary { margin-bottom: 10px; }
.facts { margin: 0; display: grid; gap: 10px; }
.facts div { display: grid; grid-template-columns: 96px 1fr; gap: 10px; }
.facts dt { color: var(--ink-3); font-weight: 600; }
.facts dd { margin: 0; }
.items-table { width: 100%; border-collapse: collapse; }
.items-table td { padding: 8px 0; border-bottom: 1px solid var(--line); }
.items-table .sum td { font-weight: 700; border-bottom: 0; font-size: 1.05rem; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 16px; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 14px 12px; }
.timeline li::before { content: ''; position: absolute; left: -23px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink-3); }
.timeline li.ev-verified::before, .timeline li.ev-picked_up::before { background: var(--neem); border-color: var(--neem); }
.timeline li.ev-cancelled::before { background: var(--kumkum); border-color: var(--kumkum); }
.timeline li.ev-call_not_picked::before, .timeline li.ev-call_later::before { border-color: var(--haldi); }
.timeline b { display: block; }
.timeline span { font-size: 0.85rem; color: var(--ink-3); }
.timeline p { margin: 2px 0 0; color: var(--ink-2); }
.cancel-box summary { font-weight: 700; color: var(--kumkum); cursor: pointer; }
.cancel-box[open] summary { margin-bottom: 12px; }
.logout { margin-top: 8px; }

/* Order form में products */
.items { display: grid; gap: 10px; margin-bottom: 10px; }
.item { display: grid; grid-template-columns: 1fr 72px 96px 40px; gap: 8px; align-items: end; padding-bottom: 10px; border-bottom: 1px dashed var(--line); }
.item-product { grid-column: 1 / -1; }
@media (min-width: 640px) { .item { grid-template-columns: 1fr 80px 110px 40px; } .item-product { grid-column: auto; } }
.item-remove { height: 46px; border: 0; background: none; color: var(--ink-3); cursor: pointer; border-radius: var(--r-s); }
.item-remove:hover { background: var(--kumkum-soft); color: var(--kumkum); }
@media (max-width: 639px) { .item { grid-template-columns: 1fr 1fr 40px; } }
.total { margin: 14px 0 0; font-size: 1.1rem; display: flex; justify-content: space-between; align-items: baseline; padding-top: 10px; border-top: 2px solid var(--ink); }
.total b { font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.dupe { margin-top: 12px; padding: 12px 14px; border-radius: var(--r-s); background: var(--haldi-soft); color: var(--haldi-deep); font-size: 0.92rem; }
.dupe b { display: block; margin-bottom: 4px; }
.dupe ul { margin: 0; padding-left: 18px; }
.form-actions { position: sticky; bottom: calc(var(--nav-h) + 30px + env(safe-area-inset-bottom)); z-index: 5; }
@media (min-width: 960px) { .form-actions { bottom: 16px; max-width: 360px; } }

/* ---------- Verification list ---------- */
.tabs { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 14px; padding-bottom: 2px; scrollbar-width: none; }
.tabs a { flex: none; display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--paper); color: var(--ink-2); text-decoration: none; font-weight: 600; }
.tabs a b { font-variant-numeric: tabular-nums; color: var(--ink-3); }
.tabs a.on { background: var(--neem); border-color: var(--neem); color: #fff; }
.tabs a.on b { color: var(--haldi); }
.vlist { display: grid; gap: 12px; }
@media (min-width: 900px) { .vlist { grid-template-columns: 1fr 1fr; } }
.vcard { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-m); padding: 14px 16px; display: grid; gap: 4px; }
.vcard.stale { border-color: #EBC9C5; }
.vcard header { display: flex; justify-content: space-between; align-items: baseline; }
.vno { font-weight: 700; text-decoration: none; font-variant-numeric: tabular-nums; }
.vamt { font-weight: 700; font-variant-numeric: tabular-nums; }
.vname { margin: 0; font-weight: 700; font-size: 1.05rem; }
.vitems, .vmeta { margin: 0; color: var(--ink-2); font-size: 0.9rem; }
.tag { margin: 4px 0 0; display: inline-flex; align-items: center; gap: 6px; font-size: 0.85rem; font-weight: 600; padding: 4px 10px; border-radius: 6px; justify-self: start; }
.tag .ic { width: 16px; height: 16px; }
.tag.warn { background: var(--haldi-soft); color: var(--haldi-deep); }
.tag.stop { background: var(--kumkum-soft); color: var(--kumkum); }
.vactions { display: grid; grid-template-columns: repeat(4, auto); gap: 8px; margin-top: 10px; justify-content: start; }
.vactions form { display: contents; }
@media (max-width: 480px) { .vactions { grid-template-columns: 1fr 1fr; } .vactions .btn { width: 100%; } }
.vship { display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 8px; margin-top: 10px; }
@media (max-width: 480px) { .vship { grid-template-columns: 1fr 1fr; } .vship button { grid-column: 1 / -1; } }

/* ---------- Tables (Admin) ---------- */
.table-wrap { overflow-x: auto; }
.grid { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.grid th { text-align: left; font-weight: 600; color: var(--ink-3); font-size: 0.85rem; padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; background: #FAFCF9; }
.grid td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.grid th.num { text-align: right; }
.grid tbody tr:hover { background: #FAFCF9; }
.grid tfoot td { font-weight: 700; border-bottom: 0; background: var(--neem-soft); }
.grid a { text-decoration: none; font-weight: 600; }
.ustatus { font-size: 0.82rem; font-weight: 700; padding: 1px 8px; border-radius: 6px; white-space: nowrap; }
.u-active { background: var(--neem-soft); color: var(--neem); }
.u-pending { background: var(--haldi-soft); color: var(--haldi-deep); }
.u-rejected, .u-inactive { background: var(--kumkum-soft); color: var(--kumkum); }

.approve-list { list-style: none; margin: 0; padding: 0; }
.approve-list li { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.approve-list li:last-child { border-bottom: 0; }
.approve-list li > div:first-child { display: grid; }
.approve-list span { color: var(--ink-2); font-size: 0.9rem; }
.approve-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.approve-actions form { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.product-list { list-style: none; margin: 0; padding: 0; }
.product-list li { padding: 12px 16px; border-bottom: 1px solid var(--line); }
.product-list li:last-child { border-bottom: 0; }

.quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.quick a, .menu-list a { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-m); text-decoration: none; color: var(--ink); font-weight: 600; }
.menu-list { display: flex; flex-direction: column; }
.menu-list a { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
.menu-list a:last-child { border-bottom: 0; }
.menu-list .ic { color: var(--neem); }
.install-help p { margin: 6px 0; }

/* ---------- दूसरा हिस्सा: नया order form, भेजना, punch out ---------- */
.pin-hint { color: var(--neem); font-weight: 600; font-size: 0.88rem; min-height: 1.2em; }
.pin-hint.miss { color: var(--haldi-deep); }
.big-choice { display: grid; grid-template-columns: 1fr 1fr; }
.big-choice span { flex-direction: column; align-items: flex-start; justify-content: center; width: 100%; min-height: 64px; line-height: 1.2; }
.big-choice span small { color: inherit; opacity: .75; }
.big-choice b { font-size: 1.1rem; }
.choice.bad span { border-color: var(--kumkum); }
.amount-field input { font-size: 1.25rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.order-form fieldset.field > legend { float: none; padding: 0 0 4px; font-size: 0.92rem; font-weight: 600; color: var(--ink-2); }
.choice-dialog { border: 0; border-radius: var(--r-l); padding: 22px 20px 16px; width: min(420px, calc(100vw - 32px)); box-shadow: 0 24px 60px rgba(24, 34, 29, .35); }
.choice-dialog::backdrop { background: rgba(24, 34, 29, .45); }
.choice-dialog h2 { margin-bottom: 6px; }
.choice-dialog > p { margin: 0 0 16px; color: var(--ink-2); }
.choice-dialog .btn.big + .hint { margin: 6px 0 16px; }
.choice-dialog [data-close] { width: 100%; }
.stuck-box { border-color: #EBC9C5; background: #FFFBFA; }
.stuck-box h2 { display: flex; align-items: center; gap: 8px; color: var(--kumkum); }
.stuck-why { margin: 0; padding: 10px 12px; border-radius: var(--r-s); background: var(--kumkum-soft); color: var(--kumkum); font-weight: 600; }
.actions-panel form .hint { display: block; margin-top: 6px; }
.punch { display: grid; justify-items: center; gap: 14px; }
.punch-out summary { list-style: none; }
.punch-out summary::-webkit-details-marker { display: none; }
.punch-out[open] summary { display: none; }
.punch-out form { display: grid; gap: 8px; justify-items: center; }
.stamp-out { font-size: 1rem; font-weight: 700; }
.stamp.done { border-color: var(--neem); color: var(--neem); background: var(--neem-soft); }
.hours { font-weight: 700; color: var(--neem); }
.settings-code { width: 100%; min-height: 220px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.8rem; padding: 10px; border: 1px solid var(--line); border-radius: var(--r-s); background: #FBFCFA; }
.ok-text { color: var(--neem); font-weight: 700; }
.conn { margin: 8px 0 0; padding: 10px 12px; border-radius: var(--r-s); font-weight: 600; }
.conn.ok { background: var(--neem-soft); color: var(--neem); }
.conn.bad { background: var(--kumkum-soft); color: var(--kumkum); }
.sr-box { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); }
.sr-box h3 { font-size: 1rem; display: flex; gap: 10px; align-items: baseline; }
.sr-box h3 span { font-size: 0.85rem; }
.sr-test { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.steps { margin: 6px 0 0; padding-left: 20px; }
.steps li { margin: 6px 0; }
