/* Dukaan CRM. Sarkari daftar ki file aur rubber stamp se liya hua look. */
:root {
  --paper: #eef2f7;      /* halka neela kagaz */
  --card: #ffffff;
  --ink: #14213d;        /* neeli syahi */
  --ink-2: #4a5674;
  --line: #cbd5e1;
  --go: #0b7a43;         /* main button: hara stamp */
  --go-dark: #075e33;
  --bad: #b91c1c;
  --warn: #c2410c;
  --info: #1d4ed8;
  --radius: 10px;
  --font: "Segoe UI", "Noto Sans", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --mono: "Cascadia Mono", Consolas, "SF Mono", Menlo, monospace;
}
* { box-sizing: border-box; }
html { font-size: 18px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); line-height: 1.45; }
a { color: var(--info); }
h1 { font-size: 1.7rem; margin: .2rem 0 1rem; letter-spacing: -.01em; }
h2 { font-size: 1.25rem; margin: 1.6rem 0 .6rem; }
h3 { font-size: 1.05rem; margin: 0 0 .4rem; }
.muted { color: var(--ink-2); }
.small { font-size: .85rem; }

/* top bar */
.top { background: var(--ink); color: #fff; display: flex; align-items: center; gap: 1rem; padding: .55rem 1rem; flex-wrap: wrap; }
.top .brand { font-weight: 800; font-size: 1.1rem; color: #fff; text-decoration: none; }
.top nav { display: flex; gap: .3rem; flex-wrap: wrap; flex: 1; }
.top nav a { color: #dbe4f3; text-decoration: none; padding: .4rem .7rem; border-radius: 8px; font-weight: 600; }
.top nav a:hover, .top nav a.on { background: rgba(255,255,255,.14); color: #fff; }
.top .who { font-size: .9rem; color: #dbe4f3; }
.top form { margin: 0; }
.top button { background: transparent; border: 1px solid #7f8fb0; color: #fff; border-radius: 8px; padding: .35rem .7rem; font: inherit; font-size: .85rem; cursor: pointer; min-height: 0; }

main { max-width: 1060px; margin: 0 auto; padding: 1rem 1rem 4rem; }

/* cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; margin-bottom: 1rem; }
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

/* buttons */
button, .btn { font: inherit; font-size: 1.05rem; font-weight: 700; min-height: 54px; padding: .6rem 1.2rem; border-radius: var(--radius);
  border: 2px solid var(--ink); background: #fff; color: var(--ink); cursor: pointer; text-decoration: none; display: inline-flex;
  align-items: center; justify-content: center; gap: .4rem; }
button:hover, .btn:hover { background: #f3f6fb; }
.btn-go { background: var(--go); border-color: var(--go); color: #fff; }
.btn-go:hover { background: var(--go-dark); }
.btn-big { font-size: 1.3rem; min-height: 72px; width: 100%; }
.btn-bad { border-color: var(--bad); color: var(--bad); }
.btn-row { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
:focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px; }

/* forms */
label { display: block; font-weight: 600; margin: .6rem 0 .25rem; }
input[type=text], input[type=tel], input[type=number], input[type=password], input[type=date], select, textarea {
  font: inherit; font-size: 1.1rem; width: 100%; padding: .65rem .75rem; border: 2px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { border-color: var(--info); outline: none; }
.check { display: flex; gap: .7rem; align-items: flex-start; background: #fff8e6; border: 2px solid #f0c36d; padding: .8rem; border-radius: 8px; font-weight: 600; }
.check input { width: 26px; height: 26px; flex: none; margin-top: 2px; }

/* the stamp: har status ek rubber stamp */
.stamp { display: inline-block; font-weight: 800; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; padding: .18rem .5rem;
  border: 2px solid currentColor; border-radius: 5px; transform: rotate(-3deg); white-space: nowrap; background: rgba(255,255,255,.7); }
.st-naya { color: #64748b; } .st-docs_poore { color: #0f766e; } .st-assigned { color: #6d28d9; }
.st-ban_raha { color: #b45309; } .st-bhar_diya { color: #1d4ed8; } .st-verified { color: #15803d; }
.st-collected { color: #334155; } .st-reject { color: #b91c1c; }
.stamp.big { font-size: 1.2rem; padding: .35rem .8rem; border-width: 3px; }
.thump { animation: thump .45s cubic-bezier(.2,1.6,.4,1) both; }
@keyframes thump { 0% { transform: rotate(-12deg) scale(1.8); opacity: 0; } 100% { transform: rotate(-3deg) scale(1); opacity: 1; } }

/* flash messages */
.flash { display: flex; gap: .7rem; align-items: center; padding: .8rem 1rem; border-radius: var(--radius); margin-bottom: .8rem; font-weight: 700; font-size: 1.05rem; }
.flash.good { background: #e7f6ee; border: 2px solid var(--go); color: var(--go-dark); }
.flash.bad { background: #fdecec; border: 2px solid var(--bad); color: var(--bad); }
.flash .tick { font-size: 1.4rem; }
.flash.good .tick { animation: thump .45s cubic-bezier(.2,1.6,.4,1) both; display: inline-block; }

/* home numbers */
.nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; margin-bottom: 1rem; }
.num { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem 1rem; }
.num b { display: block; font-size: 2rem; line-height: 1.1; }
.num span { color: var(--ink-2); font-weight: 600; }
@media (max-width: 720px) { .nums { grid-template-columns: repeat(2, 1fr); } }

/* job rows: register ki line */
.rows { list-style: none; margin: 0; padding: 0; }
.rows li { border-top: 1px solid var(--line); }
.rows li:first-child { border-top: 0; }
.rows a.row { display: flex; gap: .8rem; align-items: center; padding: .7rem .2rem; text-decoration: none; color: var(--ink); }
.rows a.row:hover { background: #f5f8fc; }
.rows .main { flex: 1; min-width: 0; }
.rows .main b { display: block; }
.rows .main span { color: var(--ink-2); font-size: .9rem; }
.empty { color: var(--ink-2); padding: .5rem 0; }
.badge { display: inline-block; background: #ede9fe; color: #5b21b6; font-size: .75rem; font-weight: 700; padding: .1rem .45rem; border-radius: 99px; }

/* status line on job page */
.flow { display: flex; flex-wrap: wrap; gap: .25rem; margin: .4rem 0 1rem; padding: 0; list-style: none; }
.flow li { font-size: .82rem; font-weight: 700; padding: .3rem .6rem; border-radius: 99px; background: #e2e8f0; color: #64748b; }
.flow li.done { background: #d1fae5; color: #065f46; }
.flow li.now { background: var(--ink); color: #fff; }

/* document dabbe */
.docs { display: grid; gap: .7rem; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.doc { border: 2px dashed #e0a3a3; background: #fff7f7; border-radius: var(--radius); padding: .7rem; }
.doc.have { border: 2px solid #86c9a4; background: #f1fbf5; }
.doc.opt { border-color: var(--line); background: #fff; }
.doc .dname { font-weight: 700; }
.doc .dstate { font-size: .85rem; font-weight: 700; margin: .2rem 0 .5rem; }
.doc.have .dstate { color: var(--go-dark); }
.doc .dstate.miss { color: var(--bad); }
.doc form { display: flex; flex-direction: column; gap: .4rem; margin: 0; }
.doc input[type=file] { font-size: .85rem; max-width: 100%; }
.doc button { min-height: 42px; font-size: .95rem; padding: .3rem .8rem; }

/* copy sheet */
.fields { width: 100%; border-collapse: collapse; }
.fields td { border-top: 1px solid var(--line); padding: .45rem .3rem; vertical-align: middle; }
.fields td.lab { width: 34%; font-weight: 600; color: var(--ink-2); }
.fields input { font-family: var(--mono); font-size: 1.05rem; padding: .45rem .6rem; }
.fields td.cp { width: 1%; }
.copy { min-height: 44px; padding: .3rem .9rem; font-size: .95rem; }
.copy.ok { background: var(--go); color: #fff; border-color: var(--go); }

.missing { background: #fdecec; border: 2px solid var(--bad); color: var(--bad); padding: .7rem 1rem; border-radius: var(--radius); font-weight: 700; }
.next { border: 3px solid var(--ink); }
.next h2 { margin-top: 0; }

/* login */
.login-wrap { max-width: 640px; margin: 2rem auto; }
.names { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .7rem; }
.names a { display: flex; flex-direction: column; justify-content: center; min-height: 86px; padding: .6rem 1rem; background: #fff;
  border: 2px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.2rem; }
.names a span { font-weight: 600; font-size: .8rem; color: var(--ink-2); }
.names a:hover { border-color: var(--ink); }
.pin { font-size: 2rem; letter-spacing: .5em; text-align: center; font-family: var(--mono); }
.pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin: .8rem 0; }
.pad button { font-size: 1.6rem; min-height: 64px; }

table.rep { width: 100%; border-collapse: collapse; }
table.rep th, table.rep td { text-align: left; padding: .45rem .5rem; border-top: 1px solid var(--line); }
table.rep th { font-size: .85rem; color: var(--ink-2); }
table.rep td.n { text-align: right; font-variant-numeric: tabular-nums; }
.tabs { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1rem; }
.tabs a { text-decoration: none; padding: .45rem .8rem; border-radius: 99px; background: #fff; border: 1px solid var(--line); color: var(--ink); font-weight: 600; }
.tabs a.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.events { list-style: none; padding: 0; margin: 0; font-size: .9rem; }
.events li { padding: .35rem 0; border-top: 1px solid var(--line); }
@media (prefers-reduced-motion: reduce) { .thump, .flash.good .tick { animation: none; } }
@media (max-width: 560px) { html { font-size: 16px; } .fields td.lab { width: 40%; } }

/* ---- polish pass (21 Nov): simple, par thoda sundar ---- */
body { background: var(--paper) radial-gradient(circle at 1px 1px, rgba(20,33,61,.05) 1px, transparent 0) 0 0/22px 22px; }
main { overflow-x: clip; }
.top { box-shadow: 0 2px 0 #0b1530; }
.top .brand { display: flex; align-items: center; gap: .5rem; }
.top .brand i { font-style: normal; width: 30px; height: 30px; border-radius: 7px; background: #fff; color: var(--ink); display: grid; place-items: center; font-weight: 900; }
.who { display: flex; align-items: center; gap: .45rem; }
.chip { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: .12rem .45rem; border-radius: 99px; background: rgba(255,255,255,.16); color: #fff; }
.card { box-shadow: 0 1px 2px rgba(20,33,61,.06), 0 6px 18px -12px rgba(20,33,61,.25); }
.card > h2:first-child, .sec-h { display: flex; align-items: center; gap: .5rem; margin-top: 0; }
.count { font-size: .8rem; font-weight: 800; min-width: 1.8em; text-align: center; padding: .1rem .45rem; border-radius: 99px; background: #e2e8f0; color: var(--ink-2); }
.count.hot { background: var(--ink); color: #fff; }
.eyebrow { font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--go); margin: 0 0 .2rem; }
.next { border: 0; border-left: 8px solid var(--go); }

/* hero: customer aaya? */
.hero { background: var(--ink); color: #fff; border-radius: 14px; padding: 1.2rem 1.3rem; margin-bottom: 1rem; }
.hero h1 { margin: 0 0 .7rem; font-size: 1.6rem; }
.hero form { display: flex; gap: .6rem; flex-wrap: wrap; }
.hero input { flex: 1; min-width: 220px; font-size: 1.4rem; min-height: 60px; border: 0; letter-spacing: .04em; }
.hero button { min-height: 60px; font-size: 1.15rem; border: 0; }

/* numbers with a coloured top line */
.num { border-top: 5px solid var(--c, var(--ink)); }
.num:nth-child(1) { --c: #0f766e; } .num:nth-child(2) { --c: #b45309; } .num:nth-child(3) { --c: var(--go); } .num:nth-child(4) { --c: #1d4ed8; }

/* job line: status ke rang ki patti */
.rows a.row { border-left: 5px solid var(--sc, #cbd5e1); padding-left: .7rem; border-radius: 4px; }
.s-naya { --sc: #94a3b8; } .s-docs_poore { --sc: #14b8a6; } .s-assigned { --sc: #8b5cf6; } .s-ban_raha { --sc: #f59e0b; }
.s-bhar_diya { --sc: #3b82f6; } .s-verified { --sc: #22c55e; } .s-collected { --sc: #475569; } .s-reject { --sc: #ef4444; }
.rows a.row .go { color: var(--ink-2); font-size: 1.3rem; }

/* pool card */
.pool-item { display: flex; gap: 1rem; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: .7rem .8rem; margin: .5rem 0;
  border: 2px dashed #94a3b8; border-radius: var(--radius); background: #fbfcfe; }
.pool-item .main b { display: block; font-size: 1.05rem; }

/* login tiles */
.names a { flex-direction: row; align-items: center; justify-content: flex-start; gap: .8rem; }
.names a .av { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 900; font-size: 1.3rem; flex: none; background: var(--rc); }
.names a span.role { display: block; }
.r-papa { --rc: #14213d; } .r-helper { --rc: #0f766e; } .r-admin { --rc: #6d28d9; } .r-agent { --rc: #b45309; }
.login-wrap h1 { font-size: 2rem; }

/* documents: bada nishaan */
.doc .dname::before { content: "✕ "; color: var(--bad); font-weight: 900; }
.doc.have .dname::before { content: "✓ "; color: var(--go); }
.doc.opt:not(.have) .dname::before { content: "○ "; color: #94a3b8; }
@keyframes thump { 0% { transform: rotate(-12deg) scale(1.35); opacity: 0; } 100% { transform: rotate(-3deg) scale(1); opacity: 1; } }
.grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.rows a.row { flex-wrap: wrap; }
.rows .main { min-width: 200px; }
.login-wrap { max-width: 780px; }
.names { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
/* feedback button: har screen par neeche daayein */
.fb { position: fixed; right: 16px; bottom: 16px; z-index: 50; max-width: min(380px, calc(100vw - 32px)); }
.fb summary { list-style: none; cursor: pointer; background: #f59e0b; color: #1f1300; font-weight: 800; padding: .7rem 1rem; border-radius: 99px;
  box-shadow: 0 6px 18px -6px rgba(0,0,0,.35); text-align: center; }
.fb summary::-webkit-details-marker { display: none; }
.fb[open] summary { border-radius: 12px 12px 0 0; }
.fb form { background: #fff; border: 2px solid #f59e0b; border-top: 0; border-radius: 0 0 12px 12px; padding: .8rem; display: flex; flex-direction: column; gap: .5rem; }
.fb-kinds { display: flex; flex-wrap: wrap; gap: .3rem .8rem; }
.fb-kinds label { display: inline-flex; gap: .3rem; align-items: center; margin: 0; font-weight: 600; font-size: .9rem; }
main { padding-bottom: 6rem; }
