/* ═══════════════════════════════════════════════════════════════════
   NMBCC Admin Portal — DRISHTI ka design language
   (Gaurav, 29-Aug-2026: "DRISHTI ki theme/UI/style/text/font ki tarah
   kar do — Sonbhadra ki le lo")

   Sonbhadra-Drishti se hu-ba-hu utha kar laaya gaya:
     · navy sidebar  (linear-gradient 185deg #0c1733 → #091025)
     · neela accent  (#2563eb → #1d4ed8) — active nav par gradient + glow
     · tricolour patti topbar ke sar par (3px)
     · Poppins + Noto Sans Devanagari
     · card radius 16px, halka do-parat wala shadow, hover par utha hua
     · table: th uppercase 12px letter-spacing, hover par row
     · input: radius 10px, border 1.5px, focus par 4px neela halo

   🔴 Font SELF-HOSTED hai (`fonts/poppins/*.woff2`) — koi Google/CDN nahi
      (MMG Rule 2). Wahi 5 woff2 jo Sonbhadra par chalti hain.
   🔴 Purana roop (maroon + gold) ka poora ZIP:
      D:\_Vault\NMBCC-UI-backup-20260829\admin-portal-PRE-DRISHTI-THEME.zip
   ═══════════════════════════════════════════════════════════════════ */

@font-face { font-family: 'Algerian'; src: local('Algerian'), url('fonts/alger.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'SitkaText'; src: local('Sitka Text'), url('fonts/sitka.ttf') format('truetype'); font-display: swap; }

@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap; src: local('Poppins'), url('fonts/poppins/poppins-400.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap; src: local('Poppins Medium'), url('fonts/poppins/poppins-500.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: local('Poppins SemiBold'), url('fonts/poppins/poppins-600.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap; src: local('Poppins Bold'), url('fonts/poppins/poppins-700.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 800; font-display: swap; src: local('Poppins ExtraBold'), url('fonts/poppins/poppins-800.woff2') format('woff2'); }

:root {
    /* Sonbhadra ke asli token — naam bhi wahi rakhe taaki milaan aasaan rahe */
    --navy: #0c1733;
    --navy2: #13234d;
    --navy3: #1c356e;
    --accent: #2563eb;
    --accent2: #1d4ed8;
    --accent-light: #eff6ff;
    --accent-glow: rgba(37, 99, 235, .12);

    --bg: #f1f5f9;
    --bg2: #ffffff;
    --bg3: #f8fafc;
    --card: #ffffff;

    --text: #0f172a;
    --text2: #334155;
    --muted: #64748b;

    --line: #e2e8f0;
    --line2: #f1f5f9;

    --ok: #059669;
    --ok-light: #ecfdf5;
    --warn: #c2660f;          /* jaan-boojhkar orange — chetavni ka matlab */
    --warn-light: #fff7ed;
    --danger: #dc2626;
    --danger-light: #fef2f2;
    --gold: #e8b774;

    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 1px 3px rgba(0, 0, 0, .03), 0 4px 16px rgba(0, 0, 0, .025);
    --shadow-lift: 0 10px 26px rgba(15, 23, 42, .14);

    --font: 'Poppins', 'Noto Sans Devanagari', 'Segoe UI', system-ui, -apple-system, Roboto, 'Mangal', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    line-height: 1.7;
    letter-spacing: .01em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

h1, h2, h3 { font-weight: 800; letter-spacing: -.01em; line-height: 1.3; }

.hidden { display: none !important; }
.muted { color: var(--muted); }
.grow { flex: 1; }

/* Tab se chalne walon ke liye saaf ghera */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track, ::-webkit-scrollbar-corner { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

@keyframes firFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ═══ Brand (logo + naam) ═══════════════════════════════════════════ */
.brand { display: flex; align-items: center; gap: 12px; }
.brand h1 {
    font-size: 25px; line-height: 1; font-weight: 800; letter-spacing: 3px;
    background: linear-gradient(180deg, #ffffff, #c9d6ee);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: #fff;
}
.brand p {
    font-size: 9px; font-weight: 600; letter-spacing: 2.4px;
    text-transform: uppercase; color: #9fb2d4; margin-top: 3px;
}
.logo {
    width: 46px; height: 46px; flex: 0 0 46px; border-radius: 50%;
    display: grid; place-items: center;
    background: linear-gradient(135deg, var(--accent), var(--navy3));
    color: #fff; font-weight: 800; font-size: 13px; letter-spacing: .5px;
    box-shadow: 0 3px 10px rgba(29, 78, 216, .35);
}

/* ═══ Login — DRISHTI (Sonbhadra) ka do-hisson wala dhaancha ═════════
   Naap seedhe `Sonbhadra-Drishti/.../auth/Login.tsx` se:
     hero gradient 135deg · glass card radius 28 blur 24 · logo 170 float
     wordmark 48/ls-5 · daaya column 520px · input radius 12 border 2px
   🔴 Sirf pehchaan badli hai (UP Police → NMBCC), naap nahi. */
@keyframes gradientFlow { 0%{background-position:0% 50%} 50%{background-position:100% 50%} 100%{background-position:0% 50%} }
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }

.login { min-height: 100vh; display: flex; background: #fff; }

/* ── Baaya: navy hero ── */
.loginHero {
    flex: 1; display: flex; align-items: center; justify-content: center;
    padding: 60px; position: relative; overflow: hidden;
    background: linear-gradient(135deg, #0b1f3f 0%, #12305f 35%, #0a1830 70%, #0b1f3f 100%);
    background-size: 400% 400%;
    animation: gradientFlow 12s ease infinite;
}
.heroBlur { position: absolute; border-radius: 50%; pointer-events: none; }
.heroBlur.a { top: -20%; right: -10%; width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(37,99,235,.08), transparent 70%); }
.heroBlur.b { bottom: -15%; left: -5%; width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(37,99,235,.06), transparent 70%); }

.heroGlass {
    position: relative; z-index: 2; max-width: 520px; width: 100%;
    padding: 48px 44px; border-radius: 28px; text-align: center;
    border: 1px solid rgba(255,255,255,.15);
    background: rgba(255,255,255,.1);
    backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
}
.heroLogo {
    width: 150px; height: 150px; object-fit: contain; margin: 0 auto 16px;
    display: block; animation: float 4s ease-in-out infinite;
    filter: drop-shadow(0 0 26px rgba(232,183,116,.42)) drop-shadow(0 12px 28px rgba(0,0,0,.55));
}
/* 🔴 Wordmark ALGERIAN me — DRISHTI bhi apne naam par yahi font lagata hai
   (Sonbhadra: `.drishti-alg`). Font khud host ki hai (`fonts/alger.ttf`),
   isliye har PC par dikhegi — sirf `font-family:'Algerian'` likhne par wo
   tabhi dikhti jab dekhne wale ke PC me pehle se ho. */
.heroWord {
    font-family: 'Algerian', 'Georgia', serif;
    font-size: 56px; color: #fff; letter-spacing: 6px; line-height: 1.02;
    margin-bottom: 10px; font-weight: 400;
    background: linear-gradient(180deg, #ffffff 0%, #e8d9b5 55%, #c9a227 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 18px rgba(232,183,116,.28));
}
/* Sanstha ka naam — Sitka (serif) me, taaki wordmark ke saath ek parivaar lage */
.heroOrg {
    font-family: 'SitkaText', Georgia, serif;
    font-size: 16px; font-weight: 600; color: rgba(255,255,255,.92);
    letter-spacing: 2.2px;
}
.heroRule { width: 56px; height: 2px; margin: 16px auto;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.3), transparent); }
.heroTag { font-family: 'SitkaText', Georgia, serif; font-size: 17px;
    font-style: italic; font-weight: 600; color: #e8d9b5;
    letter-spacing: .4px; margin-bottom: 20px; }
.heroBadge {
    display: inline-flex; align-items: center; gap: 8px; padding: 8px 20px;
    border-radius: 50px; background: rgba(255,255,255,.15);
    backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.2);
    font-size: 12px; color: rgba(255,255,255,.9); font-weight: 600;
    letter-spacing: .5px; margin-bottom: 34px;
}
.heroBadge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.heroFeats { display: flex; gap: 14px; }
/* 🔴 Tile pehle KHOKHLE dikhte the (Gaurav, 29-Aug) — parda itna halka tha
   ki navy usme se jhaank raha tha. Ab: gehra bharav + saaf kinaara + apni
   chhaya, taaki hero par ye sach me "rakhe hue" lagein. */
.featCard {
    flex: 1; padding: 16px 10px 14px; border-radius: 16px; text-align: center;
    background: linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.07));
    border: 1px solid rgba(255,255,255,.26);
    box-shadow: 0 6px 18px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.18);
    transition: all .25s;
}
.featCard:hover { transform: translateY(-4px);
    background: linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,.10));
    border-color: rgba(232,183,116,.5); }
.featIcon {
    width: 40px; height: 40px; border-radius: 12px; margin: 0 auto 9px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(160deg, rgba(232,183,116,.30), rgba(201,162,39,.16));
    border: 1px solid rgba(232,183,116,.48);
    color: #f0dfae;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.22);
}
.featT { font-size: 13.5px; font-weight: 700; color: #fff; letter-spacing: .2px; }
.featD { font-size: 11.5px; color: rgba(255,255,255,.7); margin-top: 3px; }

/* ── Daaya: form ── */
.loginPane {
    width: 520px; min-width: 520px; display: flex; flex-direction: column;
    position: relative; overflow: hidden; border-left: 1px solid #eef2f7;
    background: linear-gradient(180deg, #ffffff 0%, #f6f9fc 100%);
}
.tricolour { height: 3px; position: relative; z-index: 2;
    background: linear-gradient(90deg,#FF9933 0 33.3%,#fff 33.3% 66.6%,#138808 66.6%); }
/* Halka sa logo peeche — DRISHTI par bhi yahi hai */
.paneMark { position: absolute; right: -96px; bottom: -80px; width: 380px; height: 380px;
    object-fit: contain; opacity: .045; pointer-events: none; user-select: none; }
.paneBody { flex: 1; display: flex; align-items: center; justify-content: center;
    padding: 40px 52px; position: relative; z-index: 1; }
.paneForm { width: 100%; max-width: 388px; }

/* 🔴 Daaya hissa pehle saada tha (Gaurav, 29-Aug) — logo chhota, jagah
   khali. Ab logo bada, uske neeche sunehri-neeli lakeer, aur "Welcome"
   Sitka me — taaki baayen wale wordmark se milta-julta lage. */
.paneHead { text-align: center; margin-bottom: 30px; }

/* Emblem ek navy chakkar par — sona gehre rang par hi chamakta hai.
   Safed par seedha rakhne se wo dhula-dhula dikhta tha. */
.paneDisc {
    display: inline-flex; align-items: center; justify-content: center;
    width: 118px; height: 118px; border-radius: 50%;
    background: linear-gradient(150deg, #12305f, #0b1f3f);
    /* Patla sunehra ghera — logo ke gold se mel khata hai, aur chakkar
       safed panne par tairta hua nahi lagta. */
    border: 2px solid rgba(201,162,39,.45);
    box-shadow: 0 10px 26px rgba(11,31,63,.28), inset 0 1px 0 rgba(255,255,255,.14);
    margin-bottom: 14px;
}
/* Emblem chakkar ka ~78% ghere — pehle 69% tha aur chakkar khali lagta tha */
.paneDisc img { width: 92px; height: 92px; object-fit: contain; }

/* Naam NAVY me (gold nahi) — safed par yahi sabse saaf padha jaata hai */
.paneWord {
    font-family: 'Algerian', Georgia, serif;
    font-size: 38px; letter-spacing: 5px; line-height: 1;
    color: var(--navy); margin: 0;
}
.paneOrg {
    font-family: 'SitkaText', Georgia, serif;
    font-size: 12.5px; font-weight: 600; color: var(--muted);
    letter-spacing: 1.4px; margin-top: 5px;
}
.paneLogo { display: block; width: 216px; height: auto; margin: 0 auto 2px;
    filter: drop-shadow(0 8px 20px rgba(15,33,71,.20)); }
.paneRule { width: 64px; height: 3px; border-radius: 2px; margin: 14px auto 14px;
    background: linear-gradient(90deg, #c9a227, var(--accent), #0b1f3f); }
.paneHead h2 { font-family: 'SitkaText', Georgia, serif;
    font-size: 22px; font-weight: 700; color: var(--text);
    letter-spacing: .2px; margin: 0; }
.paneHead p { font-size: 11px; color: var(--muted); margin-top: 6px;
    letter-spacing: 2.4px; text-transform: uppercase; font-weight: 700; }

.step { display: flex; flex-direction: column; }
.step label { font-size: 13.5px; font-weight: 700; color: var(--text2);
    margin: 18px 0 8px; letter-spacing: .2px; }
.step input {
    width: 100%; padding: 14px 16px; border-radius: 12px;
    border: 2px solid var(--line); background: #f8f9fc;
    font-size: 15px; font-weight: 500; line-height: 1.5;
}
.step input:focus { border-color: #1e3a5f; background: #fff;
    box-shadow: 0 0 0 4px rgba(30,58,95,.08); }
.step .primary {
    width: 100%; margin-top: 26px; padding: 16px; border-radius: 12px;
    font-size: 15px; font-weight: 700; color: #fff;
    background: linear-gradient(135deg, #1e3a5f 0%, #0f2440 100%);
    border: 1px solid rgba(201,162,39,.35);
    box-shadow: 0 4px 16px rgba(15,36,64,.25);
    letter-spacing: .3px;
}
.step .primary:hover { transform: translateY(-1px); filter: none;
    box-shadow: 0 6px 24px rgba(15,36,64,.35); }
.step .link { margin-top: 12px; }

.hint { font-size: 13.5px; color: var(--muted); line-height: 1.6; }
.manual { font-size: 12px; color: var(--muted); margin-top: 10px; text-align: center; }
.manual code { font-family: ui-monospace, Consolas, monospace; background: var(--bg);
    padding: 3px 8px; border-radius: 6px; color: var(--navy2); font-weight: 600; }
#qr { display: block; margin: 14px auto 4px; border-radius: 12px; border: 1px solid var(--line); }
.loginPane .lang { display: block; margin: 18px auto 0; }

/* Chhoti screen: hero chhupa do, form poori chaudai le le */
@media (max-width: 1000px) {
    .loginHero { display: none; }
    .loginPane { width: 100%; min-width: 0; border-left: none; }
    .paneBody { padding: 28px 20px; }
}


/* ═══ Form ke khaane ════════════════════════════════════════════════ */
input, select, textarea {
    font-family: inherit; font-size: 14px; font-weight: 500;
    width: 100%; padding: 10px 14px;
    border: 1.5px solid var(--line); border-radius: var(--radius-sm);
    background: var(--bg); color: var(--text);
    transition: all .2s; line-height: 1.5;
}
input:focus, select:focus, textarea:focus {
    border-color: var(--accent); background: #fff;
    box-shadow: 0 0 0 4px var(--accent-glow); outline: none;
}
input::placeholder { color: var(--muted); font-weight: 400; }
select { cursor: pointer; }
input[type="time"], input[type="date"] { width: auto; }

/* ═══ Button ════════════════════════════════════════════════════════ */
button {
    font-family: inherit; font-size: 13px; font-weight: 600;
    padding: 9px 18px; border-radius: var(--radius-sm);
    border: 1px solid var(--line); background: #fff; color: var(--navy2);
    cursor: pointer; transition: all .18s;
}
button:hover { background: var(--bg); }
button.primary {
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    color: #fff; border-color: transparent;
    box-shadow: 0 6px 16px rgba(37, 99, 235, .28);
}
button.primary:hover { filter: brightness(1.06); box-shadow: 0 8px 20px rgba(37, 99, 235, .36); }
button.link {
    background: none; border: none; color: var(--accent);
    padding: 6px 4px; font-weight: 600;
}
button.link:hover { background: none; text-decoration: underline; }
button.danger { color: var(--danger); border-color: #fecaca; background: var(--danger-light); }
button.danger:hover { background: #fee2e2; }
button:disabled { opacity: .5; cursor: not-allowed; }
button.lang {
    background: var(--bg); border: 1px solid var(--line);
    color: var(--muted); font-weight: 700; font-size: 12px;
    padding: 5px 12px; border-radius: 9px;
}
.loginCard .lang { display: block; margin: 16px auto 0; }

.error {
    margin-top: 14px; padding: 10px 14px; border-radius: var(--radius-sm);
    background: var(--danger-light); color: var(--danger);
    font-size: 13px; font-weight: 600; border: 1px solid #fecaca;
}

/* ═══ Poora dhaancha ════════════════════════════════════════════════ */
.shell { display: grid; grid-template-columns: 262px 1fr; height: 100vh; overflow: hidden; }

/* ── Navy sidebar ── */
.side {
    background: linear-gradient(185deg, var(--navy), #091025);
    color: #c7d2e6; display: flex; flex-direction: column; height: 100vh;
}
.side .brand {
    flex-direction: column; gap: 8px; text-align: center;
    padding: 20px 14px 16px; border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.side .brand h1 { padding-left: 3px; }

.side nav { padding: 12px 10px; overflow-y: auto; flex: 1; }
.side .nav {
    display: flex; align-items: center; width: 100%; text-align: left;
    padding: 10px 12px; margin-bottom: 2px;
    border: 0; border-radius: var(--radius-sm); background: transparent;
    color: #c7d2e6; font-size: 14px; font-weight: 600;
    transition: .15s;
}
.side .nav:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.side .nav.on {
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    color: #fff; box-shadow: 0 6px 16px rgba(37, 99, 235, .35);
}
.sideFoot {
    padding: 12px 16px; border-top: 1px solid rgba(255, 255, 255, .08);
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.sideFoot .lang { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .14); color: #c7d2e6; }
.sideFoot .lang:hover { background: rgba(255, 255, 255, .16); }
.sideFoot .link { color: #9fb2d4; }
.sideFoot .link:hover { color: #fff; }

/* ── Main ── */
main {
    display: flex; flex-direction: column; min-width: 0;
    height: 100vh; overflow-y: auto; background: var(--bg);
}
header {
    position: sticky; top: 0; z-index: 20;
    background: var(--card); border-bottom: 1px solid var(--line);
    padding: 14px 24px; display: flex; align-items: center; gap: 14px;
    flex-shrink: 0;
}
/* Tricolour patti — DRISHTI ka pehchaan-chinh */
header::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, #FF9933 0 33.3%, #fff 33.3% 66.6%, #138808 66.6% 100%);
}
header h2 {
    flex: 1; font-size: 21px; font-weight: 800;
    letter-spacing: -.3px; color: var(--navy); line-height: 1.15;
}
.who { display: flex; align-items: center; gap: 10px; }
.who strong { font-size: 12.5px; font-weight: 700; color: var(--text); }
.chip {
    padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 700;
    letter-spacing: .3px; background: var(--accent-light); color: var(--accent2);
    border: 1px solid rgba(37, 99, 235, .18);
}

.view { padding: 20px 24px 32px; }
.view > * { animation: firFade .32s ease both; }

.banner {
    margin: 14px 24px 0; padding: 11px 16px; border-radius: var(--radius-sm);
    font-size: 13px; font-weight: 600;
    background: var(--accent-light); color: var(--accent2);
    border: 1px solid rgba(37, 99, 235, .2);
}
.banner.good { background: var(--ok-light); color: var(--ok); border-color: #a7f3d0; }
.banner.bad { background: var(--danger-light); color: var(--danger); border-color: #fecaca; }

.note { font-size: 12.5px; color: var(--muted); margin-top: 10px; line-height: 1.6; }

/* ═══ Dashboard ke card ═════════════════════════════════════════════ */
/* 🔴 Har card EK JAISA (Gaurav, 29-Aug). Pehle grid chaudai to barabar
   karta tha par lambai content se banti thi — jis card ka ank bada/chhota
   hota wo alag dikhta. Ab `min-height` + `align-items:stretch` se sab ek
   naap ke, chahe andar kuch bhi ho. */
.cards {
    display: grid; gap: 14px; margin-bottom: 20px;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    align-items: stretch;
}
.card {
    position: relative; overflow: hidden;
    background: var(--card); border: 1px solid rgba(0, 0, 0, .04);
    border-radius: var(--radius); padding: 16px 18px;
    box-shadow: var(--shadow); transition: .18s ease;
    /* Sab stat-card ek naap ke */
    min-height: 104px;
    display: flex; flex-direction: column; justify-content: center;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
/* Halka navy gola — Sonbhadra ke .acard jaisa.
   🔴 Sonbhadra par card bade hain (80px/opacity .05 wahan halka lagta hai);
      yahan stat-card chhote hain, isliye gola dabaya gaya — warna wo ank ke
      peeche aa kar padhna mushkil kar deta hai. */
.card::after {
    content: ''; position: absolute; right: -26px; top: -26px;
    width: 72px; height: 72px; border-radius: 50%;
    background: var(--navy); opacity: .035; pointer-events: none;
}
.card .k {
    font-size: 11.5px; font-weight: 700; color: var(--muted);
    text-transform: uppercase; letter-spacing: .6px;
}
.card .v { font-size: 26px; font-weight: 800; color: var(--navy); line-height: 1.2; margin-top: 4px; }
.card.alert .v { color: var(--warn); }

/* ═══ Upar ki patti (search / filter) ═══════════════════════════════ */
.bar {
    display: flex; align-items: center; gap: 10px;
    flex-wrap: wrap; margin-bottom: 16px;
}
.bar input, .bar select { width: auto; min-width: 180px; background: #fff; }
.bar label { font-size: 12.5px; font-weight: 600; color: var(--text2); }
.check { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text2); }
.check input { width: auto; }
.total { font-size: 14px; font-weight: 700; color: var(--navy); }

/* ═══ Table ═════════════════════════════════════════════════════════ */
.tableWrap {
    background: var(--card); border: 1px solid rgba(0, 0, 0, .04);
    border-radius: var(--radius); box-shadow: var(--shadow);
    overflow-x: auto;
}
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th {
    background: var(--bg3); text-align: left; padding: 11px 16px;
    font-size: 12px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .5px; color: var(--muted);
    border-bottom: 1px solid var(--line); white-space: nowrap;
}
td {
    padding: 11px 16px; border-bottom: 1px solid var(--line2);
    font-size: 13px; font-weight: 500; color: var(--text); vertical-align: middle;
}
tbody tr { transition: background .15s ease; }
tbody tr:last-child td { border-bottom: none; }
tbody tr.click { cursor: pointer; }
tbody tr.click:hover { background: #fafbff; }
td.num, th.num { text-align: right; }
.empty { padding: 26px 16px; text-align: center; color: var(--muted); font-size: 13px; }

/* ═══ Pill ══════════════════════════════════════════════════════════ */
.pill {
    display: inline-block; padding: 3px 10px; border-radius: 999px;
    font-size: 11.5px; font-weight: 700; letter-spacing: .2px;
}
.pill.ok { background: var(--ok-light); color: var(--ok); }
.pill.warn { background: var(--warn-light); color: var(--warn); }
.pill.bad { background: var(--danger-light); color: var(--danger); }
.pill.dim { background: var(--bg); color: var(--muted); }

.pager { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 13px; color: var(--muted); }

/* ═══ Parda (modal) ═════════════════════════════════════════════════ */
.modal {
    position: fixed; inset: 0; z-index: 100;
    display: grid; place-items: center; padding: 20px;
    background: rgba(12, 23, 51, .55);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.sheet {
    width: 100%; max-width: 640px; max-height: 88vh; overflow-y: auto;
    background: var(--card); border-radius: 20px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .3);
    animation: firFade .28s ease both;
}
.sheetHead {
    position: sticky; top: 0; background: var(--card); z-index: 1;
    display: flex; align-items: center; gap: 12px;
    padding: 18px 22px 14px; border-bottom: 1px solid var(--line);
    border-radius: 20px 20px 0 0;
}
.sheetHead h3 { flex: 1; font-size: 16px; font-weight: 700; color: var(--navy); }
.sheetHead .x {
    width: 32px; height: 32px; padding: 0; border-radius: 9px;
    font-size: 20px; line-height: 1; color: var(--muted);
}
#modalBody { padding: 18px 22px 22px; }
#modalBody label {
    display: block; font-size: 13px; font-weight: 600;
    color: var(--text2); margin: 12px 0 5px;
}
#modalBody .actions { display: flex; gap: 10px; margin-top: 20px; }

/* ═══ Gate ka scanner ═══════════════════════════════════════════════ */
.scanBox {
    background: var(--card); border: 1px solid rgba(0, 0, 0, .04);
    border-radius: var(--radius); box-shadow: var(--shadow);
    padding: 18px 20px; margin-bottom: 18px;
}
.result {
    border-radius: var(--radius); padding: 18px 20px; margin-bottom: 18px;
    font-weight: 600; border: 1px solid var(--line); background: var(--card);
}

/* ═══ Settings ke panne ═════════════════════════════════════════════ */
/* 🔴 `align-items: start` hataya — usi se har card apni-apni lambai leta
   tha aur kataar bhaddi dikhti thi. `stretch` se ek kataar ke sab card
   barabar; button hamesha neeche chipka rehta hai. */
.setGrid {
    display: grid; gap: 16px; align-items: stretch;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}
.setCard {
    background: var(--card); border: 1px solid rgba(0, 0, 0, .04);
    border-radius: var(--radius); box-shadow: var(--shadow);
    padding: 18px 20px 16px;
    display: flex; flex-direction: column;
}
/* Save ka button hamesha card ke NEECHE — warna chhote card me wo beech
   me latka dikhta hai aur bade card se milta nahi. */
.setCard .actions { margin-top: auto; padding-top: 18px; }
.setCard h3 {
    margin: 0 0 12px; font-size: 15px; font-weight: 700; color: var(--navy);
    border-bottom: 1px solid var(--line); padding-bottom: 10px;
}
.setCard label {
    display: block; margin: 12px 0 5px;
    font-size: 13px; font-weight: 600; color: var(--text2);
}
.setCard input, .setCard select { width: 100%; background: var(--bg); }

/* Khulne ka samay: "khulta hai – band hota hai – [hatao]".
   🔴 Grid rakha, flex-wrap NAHI — sankre card me wrap hone par line tut
      kar bikhar jaati thi (29-Aug ke screenshot me pakda). Sar par likha
      "Opens / Closes" har row par dohraya nahi jaata. */
.winList { margin-top: 8px; }
.winHead,
.win {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    gap: 8px; align-items: center;
}
.winHead {
    font-size: 11px; font-weight: 700; color: var(--muted);
    text-transform: uppercase; letter-spacing: .5px; margin-bottom: 4px;
}
.win { margin-bottom: 8px; }
.win input[type="time"] { width: 100%; min-width: 0; padding: 8px 10px; }
.win button { padding: 7px 12px; font-size: 12px; }

/* ═══ Chhoti screen — gate ka tablet bhi isi portal par aata hai ════ */
@media (max-width: 860px) {
    .shell { grid-template-columns: 1fr; }
    .side { height: auto; }
    .side nav { display: flex; flex-wrap: wrap; gap: 6px; }
    .side .nav { width: auto; }
    main { height: auto; }
    .view { padding: 16px; }
    .banner { margin: 12px 16px 0; }
}

/* ══ Asli NMBCC logo (29-Aug — Gaurav ne diya) ═══════════════════════ */
/* 🔴 Ye PNG transparent hai (kaala background yahin, is laptop par hataya
      gaya — kisi bahari service par nahi bheja gaya, Rule 2).
      Isliye navy sidebar aur navy login dono par seedha baith jaata hai. */
.logoImg { display: block; width: 80px; height: auto; }

/* 🔴 Shadow JAGAH ke hisaab se alag hai, ek jaisa nahi:
      · navy sidebar par logo ka gehra navy background me doob jaata hai,
        isliye halka UJALA (safed glow) diya gaya
      · safed login-card par wahi glow dikhta hi nahi; wahan halki gehri
        chhaya chahiye — aur bhaari chhaya card ko maila kar deti hai */
.side .logoImg { filter: drop-shadow(0 0 10px rgba(147, 197, 253, .28)); }
.loginCard .logoImg { filter: drop-shadow(0 3px 10px rgba(12, 23, 51, .16)); }

.logoImg.full { width: 200px; margin: 0 auto 2px; }

/* Login-card par logo apne naam ke saath aata hai, isliye alag se
   "NMBCC" likhna dohraav hota — sirf "Admin Portal" bacha hai. */
.loginCard .brand { flex-direction: column; gap: 6px; }
.loginCard .brand p {
    color: var(--muted); text-align: center;
    letter-spacing: 2.4px; font-size: 10px;
}

/* ══ Login ke naye hisse (29-Aug — Gaurav ke kehne par) ══════════════ */

/* Password dikhane/chhupane ka button */
.pwWrap { position: relative; }
.pwWrap input { padding-right: 48px; }
.pwEye {
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
    width: 36px; height: 36px; padding: 0; border: none; background: none;
    color: var(--muted); display: grid; place-items: center; border-radius: 9px;
}
.pwEye:hover { background: var(--bg); color: var(--navy2); }
.pwEye[aria-pressed="true"] { color: var(--accent); }

/* "Yaad rakho" ki line */
.rememberRow {
    display: flex; align-items: center; gap: 10px;
    margin: 18px 0 0; cursor: pointer; user-select: none;
    font-size: 13.5px; font-weight: 500; color: var(--text2);
}
.rememberRow input {
    width: 18px; height: 18px; margin: 0; padding: 0;
    accent-color: #1e3a5f; cursor: pointer; flex: 0 0 auto;
}

/* Bharose ke nishaan */
.trustRow {
    display: flex; gap: 8px; justify-content: center;
    flex-wrap: wrap; margin-top: 26px;
}
.trust {
    font-size: 11px; font-weight: 600; color: #475569;
    background: #f1f5f9; border: 1px solid #e5eaf1;
    border-radius: 20px; padding: 5px 11px;
}

/* Footer — kaun banata hai, kaunsa version, aur kanooni link */
.loginFoot { margin-top: 20px; text-align: center; }
.loginFoot p { font-size: 12.5px; color: #94a3b8; }
.loginFoot .dim { font-size: 11.5px; color: #cbd5e1; margin-top: 6px; }
.loginFoot .links { margin-top: 8px; font-size: 11px; }
.loginFoot .links a { color: #60a5fa; text-decoration: none; }
.loginFoot .links a:hover { text-decoration: underline; }
.loginFoot .links span { color: #cbd5e1; margin: 0 5px; }
