/* ============================================================
   Fast-WMS v430  "OBSIDIAN CRIMSON"  — Dawlance executive skin
   Brand: Dawlance red #e5232d + navy. Sirf look; logic/data ko haath nahi.
   Sab se aakhir me load hoti hai. Rollback: index.html se is file ki <link> hata do.
   Performance: koi blur / glow-animation / infinite animation nahi — sab static gradients.
   ============================================================ */
:root{
  --vp-red:#e5232d;--vp-red-2:#ff4b55;--vp-navy:#071a3d;--vp-ink:#0b1730;
  --vp-bg:#edf1f8;--vp-card:#fff;--vp-line:#dde5f1;--vp-mute:#64748b;
  --vp-r:18px;--vp-sh:0 1px 2px rgba(10,26,61,.05),0 10px 28px -14px rgba(10,26,61,.22);
  --vp-sh-hi:0 2px 4px rgba(10,26,61,.08),0 18px 36px -16px rgba(10,26,61,.34);
}
body.dark-mode{--vp-bg:#0a1122;--vp-card:#121b30;--vp-line:#22304d;--vp-mute:#93a4c3;--vp-ink:#e8eefb;
  --vp-sh:0 1px 2px rgba(0,0,0,.4),0 10px 28px -14px rgba(0,0,0,.6)}

/* ---------- signature: top brand line + calm page background ---------- */
html body::before{content:"";position:fixed;left:0;right:0;top:0;height:3px;z-index:2147483000;pointer-events:none;
  background:linear-gradient(90deg,var(--vp-red) 0%,var(--vp-red) 38%,#1f4fd8 100%)}
html body{background:var(--vp-bg)!important}
html body .main{background:radial-gradient(1100px 380px at 8% -60px,rgba(31,79,216,.08),transparent 70%),var(--vp-bg)!important}

/* ================= SIDEBAR : obsidian ================= */
html body .sidebar{
  background:linear-gradient(180deg,#081a3b 0%,#050f24 100%)!important;
  border-right:0!important;box-shadow:inset -1px 0 0 rgba(255,255,255,.06)!important;
}
html body .sidebar .logo{
  margin:12px 10px 8px!important;padding:10px 12px 10px 16px!important;border-radius:14px!important;
  background:linear-gradient(135deg,rgba(255,255,255,.08),rgba(255,255,255,.02))!important;
  border:1px solid rgba(255,255,255,.09)!important;box-shadow:none!important;
  font-weight:800!important;letter-spacing:.01em;color:#fff!important;position:relative;overflow:visible!important;height:auto!important;min-height:62px!important}
html body .sidebar .logo::after{content:""!important;position:absolute!important;left:0!important;right:auto!important;top:0!important;bottom:0!important;width:4px!important;
  background:linear-gradient(180deg,var(--vp-red),#1f4fd8)}
html body .sidebar .wp-search{margin:6px 10px 8px!important;border-radius:12px!important;
  background:rgba(255,255,255,.06)!important;border:1px solid rgba(255,255,255,.08)!important;box-shadow:none!important}
html body .sidebar .nav-section-title{
  margin:14px 8px 4px!important;padding:6px 10px!important;border-radius:8px!important;
  font-size:.64rem!important;font-weight:800!important;letter-spacing:.14em!important;color:#6f86b3!important;background:transparent!important}
html body .sidebar .nav-section-title:hover{color:#fff!important;background:rgba(255,255,255,.05)!important}
html body .sidebar .nav-btn{
  min-height:40px!important;margin:2px 8px!important;padding:4px 30px 4px 8px!important;border-radius:12px!important;
  color:#b7c6e4!important;background:transparent!important;box-shadow:none!important;
  font-size:.865rem!important;font-weight:550!important;position:relative}
html body .sidebar .nav-btn i{
  width:30px!important;height:30px!important;border-radius:10px!important;
  background:rgba(255,255,255,.07)!important;color:color-mix(in srgb,var(--ic,#8fb4ff) 85%,#fff)!important;box-shadow:none!important}
html body .sidebar .nav-btn:hover{background:rgba(255,255,255,.07)!important;color:#fff!important}
html body .sidebar .nav-btn:hover i{background:rgba(255,255,255,.13)!important}
html body .sidebar .nav-btn.active{
  background:linear-gradient(90deg,rgba(229,35,45,.22),rgba(229,35,45,.05) 70%,transparent)!important;
  color:#fff!important;font-weight:700!important;box-shadow:none!important;border:0!important;outline:0!important}
html body .sidebar .nav-btn.active::before{
  content:""!important;position:absolute!important;left:-8px!important;top:8px!important;bottom:8px!important;width:4px!important;
  border-radius:0 4px 4px 0!important;background:linear-gradient(180deg,var(--vp-red-2),var(--vp-red))!important}
html body .sidebar .nav-btn.active i{background:var(--vp-red)!important;color:#fff!important}
html body .sidebar::after{content:"";display:block;flex:none;height:96px}   /* aakhri items user card ke peeche na chhupein */
/* neeche ka user card */
html body .sidebar .wp-u-card{border-radius:16px!important;background:rgba(255,255,255,.07)!important;
  border:1px solid rgba(255,255,255,.1)!important;box-shadow:0 -14px 18px -6px #050f24!important}

/* ================= TOPBAR ================= */
html body .topbar{background:var(--vp-card)!important;border:1px solid var(--vp-line)!important;border-radius:16px!important;
  box-shadow:var(--vp-sh)!important;padding:8px 12px!important}
html body .topbar .welcome{font-weight:700;letter-spacing:-.01em}
html body .topbar-right button{width:36px;height:36px;border-radius:11px!important;transition:background-color .12s,transform .08s}
html body .topbar-right button:hover{transform:translateY(-1px)}
html body .topbar-right .logout-btn{background:var(--vp-red)!important;color:#fff!important;border-color:var(--vp-red)!important}

/* ================= COMMAND CENTER ================= */
html body .cc-shell{gap:16px}
/* cc-* rules: .cc-shell prefix se specificity purani layers (v250/v253) se upar */
html body .cc-shell .cc-hero{
  position:relative;overflow:hidden;border-radius:22px!important;padding:26px 28px!important;color:#fff!important;border:0!important;
  background:
    radial-gradient(circle at 1px 1px,rgba(255,255,255,.09) 1px,transparent 1.5px) 0 0/18px 18px,
    linear-gradient(120deg,#06142f 0%,#0a2a63 62%,#143e8f 100%)!important;
  box-shadow:0 18px 40px -22px rgba(6,20,47,.7)!important}
html body .cc-shell .cc-hero::before{content:""!important;position:absolute!important;left:auto!important;bottom:auto!important;right:-40px!important;top:-60px!important;width:260px;height:320px;
  background:linear-gradient(160deg,var(--vp-red),#a8121a)!important;transform:skewX(-18deg)!important;opacity:.92!important;border-radius:0!important;animation:none!important;width:260px!important;height:320px!important}
html body .cc-shell .cc-hero::after{content:""!important;position:absolute!important;left:auto!important;bottom:auto!important;right:150px!important;top:-60px!important;width:22px;height:320px;
  background:rgba(255,255,255,.22)!important;transform:skewX(-18deg)!important;animation:none!important;width:22px!important;height:320px!important}
html body .cc-shell .cc-hero>*{position:relative;z-index:1}
html body .cc-shell .cc-hero h1{font-size:clamp(1.5rem,2.4vw,2.2rem)!important;font-weight:800!important;letter-spacing:-.02em;margin:.35rem 0 .2rem!important}
html body .cc-shell .cc-hero p{opacity:.8}
html body .cc-shell .cc-eyebrow{letter-spacing:.14em;font-weight:800}
html body .cc-shell .cc-health span{border-radius:999px!important;border:1px solid var(--vp-line)!important;background:var(--vp-card)!important;
  box-shadow:none!important;font-weight:600}

/* KPI cards */
html body .cc-shell .cc-kpis{gap:14px!important}
html body .cc-shell .cc-kpi{
  --k:#2a6df4;position:relative;overflow:hidden;border-radius:var(--vp-r)!important;background:var(--vp-card)!important;
  border:1px solid var(--vp-line)!important;background-image:none!important;box-shadow:inset 5px 0 0 var(--k),var(--vp-sh)!important;
  padding:18px 18px 18px 24px!important;transition:transform .14s ease,box-shadow .14s ease;cursor:pointer}
html body .cc-shell .cc-kpi::before,html body .cc-shell .cc-kpi::after{display:none!important;content:none!important}
html body .cc-shell .cc-kpi.c-blue{--k:#2a6df4}html body .cc-shell .cc-kpi.c-cyan{--k:#06b6d4}html body .cc-shell .cc-kpi.c-indigo{--k:#6366f1}
html body .cc-shell .cc-kpi.c-slate{--k:#64748b}html body .cc-shell .cc-kpi.c-green{--k:#10b981}html body .cc-shell .cc-kpi.c-red{--k:var(--vp-red)}
html body .cc-shell .cc-kpi.c-amber,html body .cc-shell .cc-kpi.c-orange{--k:#f59e0b}
html body .cc-shell .cc-kpi:hover{transform:translateY(-3px);box-shadow:inset 5px 0 0 var(--k),var(--vp-sh-hi)!important}
html body .cc-shell .cc-kpi .cc-icon{border-radius:14px!important;background:color-mix(in srgb,var(--k) 14%,transparent)!important;
  color:var(--k)!important;box-shadow:none!important}
html body .cc-shell .cc-kpi small{font-size:.66rem;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:var(--vp-mute)}
html body .cc-shell .cc-kpi strong{display:block;font-size:2rem;line-height:1.1;font-weight:800;letter-spacing:-.03em;font-variant-numeric:tabular-nums;color:var(--vp-ink)}
html body .cc-shell .cc-kpi em{font-style:normal;font-size:.76rem;font-weight:600}

/* panels + lanes */
html body .cc-shell .cc-panel{border-radius:var(--vp-r)!important;background:var(--vp-card)!important;border:1px solid var(--vp-line)!important;box-shadow:var(--vp-sh)!important}
html body .cc-shell .cc-panel-head small{font-weight:800;letter-spacing:.12em;color:var(--vp-red)}
html body .cc-shell .cc-panel-head h3{font-weight:800;letter-spacing:-.01em}
html body .cc-shell .cc-lanes button{border-radius:14px!important;border:1px solid var(--vp-line)!important;background:color-mix(in srgb,var(--vp-card) 94%,#1f4fd8)!important;
  transition:border-color .12s,transform .1s,box-shadow .12s}
html body .cc-shell .cc-lanes button:hover{border-color:var(--vp-red)!important;transform:translateY(-1px);box-shadow:0 8px 18px -12px rgba(229,35,45,.5)}

/* ================= GLOBAL: cards, tables, buttons (har tab) ================= */
html body .btn-save,html body .btn-primary,html body .btn-add{background:linear-gradient(135deg,#0a3a9a,#1f4fd8)!important;border:0!important;color:#fff!important;
  box-shadow:0 6px 14px -8px rgba(10,58,154,.7)!important}
html body .btn-delete,html body .btn-delete-multi{background:linear-gradient(135deg,#b3121a,var(--vp-red))!important;border:0!important;color:#fff!important}
html body .kpi-card,html body .stat-card{border-radius:var(--vp-r)}
html body .main table thead th{background:#0b2150!important;color:#e8eefb!important;border-color:#0b2150!important}
html body .main table thead th:first-child{border-top-left-radius:12px}
html body .main table thead th:last-child{border-top-right-radius:12px}
html body.dark-mode .main table thead th{background:#16264a!important}
html body .modal-content{border-radius:20px!important;border:1px solid var(--vp-line);border-top:4px solid var(--vp-red)}

/* ================= PHONE ================= */
@media (max-width:900px){
  html body .cc-shell .cc-hero{padding:20px!important}
  html body .cc-shell .cc-hero::before{width:150px;right:-50px;opacity:.55}
  html body .cc-shell .cc-hero::after{display:none!important}
  html body .cc-shell .cc-kpi strong{font-size:1.6rem}
}

html body .cc-shell .cc-kpi .cc-icon i{color:var(--k)!important}
html body .sidebar .logo::before{display:none!important}

@media (max-width:900px){
  html body .topbar{flex-wrap:wrap!important;gap:8px!important}
  html body .topbar-left{flex-wrap:wrap;min-width:0}
  html body .topbar-right{flex-wrap:wrap!important;justify-content:flex-end;gap:6px!important;margin-left:auto}
}
