/* Swayam UI v2 – dashboard skin. Load AFTER style.css */
:root{--navy:#0f2a52;--blue:#1456c8;--ink:#0d2140;--muted:#475b78;--line:#d9e3ef;--bg:#f2f6fb;--green:#3f7a1c;--amber:#8a5a00;--red:#a62b2b;--shadow:0 8px 26px rgba(15,42,82,.08)}
body.workspace{font-family:Inter,'Segoe UI',Arial,sans-serif;font-size:16px;line-height:1.5;color:var(--ink);background:var(--bg)}
body.workspace .app-shell{grid-template-columns:276px minmax(0,1fr)}
body.workspace .side{background:linear-gradient(180deg,#0f2a52,#0a1d3b);color:#dbe7fa;padding:20px 16px;gap:16px;border:0}
body.workspace .side-brand{background:#fff;border-radius:20px;padding:14px 16px;display:grid;place-items:center;gap:4px}
body.workspace .side-brand .brand img{width:100%;max-width:224px;height:auto;object-fit:contain}
body.workspace .brand-caption{font-size:11px;letter-spacing:.14em;font-weight:800;color:#1456c8}
body.workspace .side-role{font-size:13px;letter-spacing:.1em;text-transform:uppercase;font-weight:800;color:#9fc0f5;padding:0 8px}
body.workspace .side-nav{display:flex;flex-direction:column;gap:6px}
body.workspace .nav-link{display:flex;align-items:center;gap:12px;width:100%;padding:13px 14px;border-radius:13px;border:0;background:none;color:#dbe7fa;font-size:16px;font-weight:500;text-align:left}
body.workspace .nav-link>span{width:34px;height:34px;border-radius:10px;background:rgba(255,255,255,.08);display:grid;place-items:center;font-size:18px;flex:none}
body.workspace .nav-link:hover{background:#1b3b6e}
body.workspace .nav-link.on{background:var(--blue);color:#fff;font-weight:700;box-shadow:0 8px 18px rgba(20,86,200,.4)}
body.workspace .nav-link.on>span{background:rgba(255,255,255,.2)}
body.workspace .logout-btn{border:1px solid #3a5c96;background:none;color:#dbe7fa;border-radius:12px;padding:11px;font-weight:700;width:100%;display:flex;gap:8px;justify-content:center}
body.workspace .side-footer{color:#9fc0f5;font-size:13px;display:flex;gap:8px;align-items:center;margin-top:10px}
body.workspace .topbar{background:#fff;border-bottom:1px solid var(--line);padding:14px 28px;display:flex;align-items:center;justify-content:space-between;gap:16px}
body.workspace .crumb{font-size:13px;font-weight:700;letter-spacing:.08em;color:var(--muted)}
body.workspace .topbar h1{margin:0;font-size:26px;font-weight:800;letter-spacing:-.02em}
body.workspace .search-decoration{display:flex;gap:8px;border:1px solid var(--line);background:var(--bg);border-radius:12px;padding:10px 16px;color:var(--muted);font-size:15px}
body.workspace .secure-badge{font-size:14px;font-weight:700;color:var(--green)}
body.workspace .avatar{width:42px;height:42px;border-radius:50%;background:linear-gradient(135deg,#1456c8,#12a39a);color:#fff;font-weight:800;display:grid;place-items:center}
body.workspace .profile-copy b{font-size:15px}body.workspace .profile-copy small{font-size:13px;color:var(--muted);text-transform:capitalize}
body.workspace .page-content{padding:24px 28px 12px;display:grid;gap:20px;align-content:start}
/* hero banner: text left, photo right, no text over image */
body.workspace .dash-hero{display:grid;grid-template-columns:1fr 340px;min-height:210px;padding:0;background:#fff;color:var(--ink);border:1px solid var(--line);border-radius:22px;overflow:hidden;box-shadow:var(--shadow)}
body.workspace .dash-hero-copy{padding:30px 34px}
body.workspace .dash-hero .eyebrow{color:var(--blue);font-size:13px;letter-spacing:.1em;font-weight:800;margin:0 0 6px}
body.workspace .dash-hero h2{margin:0 0 8px;font-size:30px;line-height:1.15;letter-spacing:-.02em;color:var(--ink)}
body.workspace .dash-hero p{margin:0;color:var(--muted);font-size:17px;max-width:560px}
body.workspace .hero-mark{font-size:0;background:url(img/campaigns/18-housewife-cashback.jpg) center/cover;min-height:210px;border-left:1px solid var(--line)}
body[data-role=merchant] .hero-mark{background-image:url(img/campaigns/05-cafe-checkout.jpg)}
body[data-role=admin] .hero-mark{background-image:url(img/campaigns/15-restaurant.jpg)}
body[data-role=user] .hero-mark{background-image:url(img/campaigns/18-housewife-cashback.jpg)}
/* KPI cards */
body.workspace .stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
body.workspace .stat{display:flex;gap:14px;align-items:flex-start;background:#fff;border:1px solid var(--line);border-radius:20px;padding:18px 20px;box-shadow:var(--shadow);border-top:4px solid var(--blue)}
body.workspace .stat.green{border-top-color:#4a8a1c}body.workspace .stat.amber{border-top-color:#f0a50f}body.workspace .stat.red{border-top-color:#d93a3a}
body.workspace .stat-icon{width:50px;height:50px;border-radius:15px;background:#e6efff;color:var(--blue);display:grid;place-items:center;font-size:24px;flex:none}
body.workspace .stat.green .stat-icon{background:#e8f4dc;color:var(--green)}body.workspace .stat.amber .stat-icon{background:#fff1cf;color:var(--amber)}body.workspace .stat.red .stat-icon{background:#fde6e6;color:var(--red)}
body.workspace .stat b{display:block;font-size:30px;line-height:1.15;letter-spacing:-.02em}
body.workspace .stat small{display:block;color:var(--muted);font-size:15px;font-weight:600}
/* panels, tables, pills, buttons */
body.workspace .panel{background:#fff;border:1px solid var(--line);border-radius:20px;padding:22px 24px;box-shadow:var(--shadow)}
body.workspace .panel h3{margin:0 0 10px;font-size:19px}
body.workspace table{font-size:15px}body.workspace th{font-size:13px;letter-spacing:.05em;text-transform:uppercase;color:var(--muted);padding:10px}body.workspace td{padding:14px 10px;font-size:15px}
body.workspace tbody tr:hover{background:#f6f9fe}
body.workspace .pill{display:inline-flex;align-items:center;gap:6px;border-radius:99px;padding:4px 12px;font-size:13px;font-weight:700;background:#e6efff;color:#12408f}
body.workspace .pill:before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor}
body.workspace .pill.ok{background:#e8f4dc;color:#2f6414}body.workspace .pill.wait{background:#fff1cf;color:#7a4e00}body.workspace .pill.bad{background:#fde6e6;color:#9a2020}body.workspace .pill.muted{background:#eef1f5;color:#4a5d78}
body.workspace .btn{border-radius:12px;padding:11px 20px;font-weight:700;font-size:15px;background:var(--blue);border:2px solid var(--blue);color:#fff}
body.workspace .btn.o{background:#fff;color:var(--blue)}body.workspace .btn.sm{padding:7px 14px;font-size:14px}
body.workspace .btn.success{background:#3f7a1c;border-color:#3f7a1c}body.workspace .btn.red{background:#fff;color:#a62b2b;border-color:#a62b2b}
body.workspace .field span{font-size:14px;font-weight:700;color:var(--muted)}
body.workspace .field input,body.workspace .field select,body.workspace .field textarea,body.workspace select{font-size:16px;padding:12px 14px;border:1.5px solid var(--line);border-radius:12px;background:#fff;color:var(--ink)}
body.workspace input:focus,body.workspace select:focus,body.workspace textarea:focus{outline:3px solid #bcd6ff;border-color:var(--blue)}
/* merchant cards */
body.workspace .merchant-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(290px,1fr));gap:20px}
body.workspace .merchant-card{background:#fff;border:1px solid var(--line);border-radius:22px;overflow:hidden;box-shadow:var(--shadow);transition:.2s}
body.workspace .merchant-card:hover{transform:translateY(-4px);box-shadow:0 18px 38px rgba(15,42,82,.16)}
body.workspace .merchant-card>img{width:100%;height:180px;object-fit:cover}
body.workspace .merchant-card-body{padding:16px 18px}body.workspace .merchant-card h3{margin:0;font-size:19px}body.workspace .merchant-card small{color:var(--muted);font-size:14px}
body.workspace .rating{background:#fff1cf;color:#7a4e00;font-weight:800;font-size:13px;border-radius:99px;padding:3px 10px;height:fit-content}
body.workspace .offer-pair{display:flex;gap:10px;margin-top:12px;flex-wrap:wrap}body.workspace .offer-chip{border-radius:14px;padding:8px 12px;flex:1;min-width:120px}
body.workspace .offer-chip.green{background:#e8f4dc;color:#2f6414}body.workspace .offer-chip.blue{background:#e6efff;color:#12408f}body.workspace .offer-chip b{display:block;font-size:17px}
body.workspace .empty{border:2px dashed var(--line);border-radius:18px;padding:34px;text-align:center;color:var(--muted)}
body.workspace .dashboard-footer{padding:16px 28px 28px;color:var(--muted);font-size:14px;display:flex;gap:14px;align-items:center}body.workspace .dashboard-footer img{height:22px;width:auto;display:inline-block;margin-right:12px}
@media(max-width:1180px){body.workspace .stats{grid-template-columns:repeat(2,1fr)}body.workspace .dash-hero{grid-template-columns:1fr 240px}}
@media(max-width:780px){body.workspace .app-shell{grid-template-columns:1fr}body.workspace .search-decoration,body.workspace .secure-badge{display:none}body.workspace .page-content{padding:16px}body.workspace .topbar{padding:12px 16px}}
@media(max-width:600px){body.workspace .stats{grid-template-columns:1fr}body.workspace .dash-hero{grid-template-columns:1fr}body.workspace .hero-mark{order:-1;min-height:150px}body.workspace .dash-hero-copy{padding:22px}body.workspace .dash-hero h2{font-size:24px}}
/* Colourful miniature KPI icons */
body.workspace .stat-icon{width:52px;height:52px;border-radius:16px;color:#fff;background:linear-gradient(135deg,#1456c8,#4c8bff);box-shadow:0 8px 16px -6px rgba(20,86,200,.55)}
body.workspace .stat .stat-icon svg{width:26px;height:26px}
body.workspace .stat .stat-icon[data-k=users]{background:linear-gradient(135deg,#1456c8,#4c8bff)}
body.workspace .stat .stat-icon[data-k=store]{background:linear-gradient(135deg,#0e9188,#4fd1b8);box-shadow:0 8px 16px -6px rgba(18,163,154,.6)}
body.workspace .stat .stat-icon[data-k=file]{background:linear-gradient(135deg,#6c4ad8,#a08bff);box-shadow:0 8px 16px -6px rgba(108,74,216,.55)}
body.workspace .stat .stat-icon[data-k=pct]{background:linear-gradient(135deg,#f26a0c,#ffb81f);box-shadow:0 8px 16px -6px rgba(242,106,12,.55)}
body.workspace .stat .stat-icon[data-k=check]{background:linear-gradient(135deg,#2f9a14,#7bcf4a);box-shadow:0 8px 16px -6px rgba(63,154,28,.55)}
body.workspace .stat .stat-icon[data-k=clock]{background:linear-gradient(135deg,#e39500,#ffd04a);box-shadow:0 8px 16px -6px rgba(227,149,0,.55)}
body.workspace .stat .stat-icon[data-k=wallet]{background:linear-gradient(135deg,#0a8a66,#3ed6a4);box-shadow:0 8px 16px -6px rgba(10,138,102,.55)}
body.workspace .stat .stat-icon[data-k=undo]{background:linear-gradient(135deg,#d03030,#ff8a7a);box-shadow:0 8px 16px -6px rgba(208,48,48,.55)}
body.workspace .stat .stat-icon[data-k=rupee]{background:linear-gradient(135deg,#1a9a4e,#5fdc8a);box-shadow:0 8px 16px -6px rgba(26,154,78,.55)}
body.workspace .stat .stat-icon[data-k=flag]{background:linear-gradient(135deg,#d62f5a,#ff7a9a);box-shadow:0 8px 16px -6px rgba(214,47,90,.55)}
/* Header image: always a photo, soft edge towards the text */
body.workspace .hero-mark{display:block;background-size:cover;background-position:center;border-left:0;position:relative}
body.workspace .hero-mark:before{content:"";position:absolute;inset:0 auto 0 0;width:56px;background:linear-gradient(90deg,#fff,rgba(255,255,255,0))}
/* ===== Patch 3: lighter sidebar + working header photo ===== */
body.workspace .side{background:linear-gradient(180deg,#2f6fd0 0%,#2259b3 100%);color:#fff}
body.workspace .side-role{color:#d6e6ff}
body.workspace .nav-link{color:#f2f7ff}
body.workspace .nav-link>span{background:rgba(255,255,255,.18);color:#fff}
body.workspace .nav-link:hover{background:rgba(255,255,255,.16)}
body.workspace .nav-link.on{background:#fff;color:#14459a;box-shadow:0 10px 22px rgba(10,35,90,.28)}
body.workspace .nav-link.on>span{background:#e6efff;color:#1456c8}
body.workspace .logout-btn{border:1.5px solid rgba(255,255,255,.65);color:#fff;background:rgba(255,255,255,.08)}
body.workspace .logout-btn:hover{background:rgba(255,255,255,.2)}
body.workspace .side-footer{color:#e3efff}
body.workspace .brand-caption{color:#1456c8}
/* header banner: reset the old absolute 46px icon + 18% opacity so the photo shows in full */
body.workspace .dash-hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,38%);align-items:stretch;background:#fff;background-image:none;padding:0;min-height:220px}
body.workspace .dash-hero .hero-mark{position:relative;top:auto;right:auto;transform:none;width:auto;height:auto;min-height:220px;border-radius:0;opacity:1;border:0;display:block;font-size:0;z-index:0;background-color:#dfe9f6;background-size:cover;background-position:center}
body.workspace .dash-hero .hero-mark:before{content:"";position:absolute;inset:0 auto 0 0;width:70px;background:linear-gradient(90deg,#fff,rgba(255,255,255,0))}
body.workspace .dash-hero-copy{max-width:none;align-self:center;color:var(--ink)}
@media(max-width:700px){body.workspace .dash-hero{grid-template-columns:1fr}body.workspace .dash-hero .hero-mark{order:-1;min-height:160px}body.workspace .dash-hero .hero-mark:before{display:none}}
