/* Swayam Shop workspace: styles from the approved mockup (loaded last, overrides the older layers). */
body.workspace{--ink:#0b1630;--ink2:#3b4a66;--mute:#6b7896;--line:#e6ebf3;--line2:#f0f3f8;--bg:#f5f7fb;--card:#fff;
--brand:#2563eb;--brand6:#1d4fd0;--brand5:#eef4ff;--brand1:#dbe7ff;--green:#0d8a55;--green5:#e8f7ef;--red:#c2392f;--red5:#fdecea;--amber:#b7791f;--amber5:#fff6e0;
font:14px/1.45 Inter,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;color:var(--ink);background:var(--bg)}
body.workspace .app-shell{display:grid !important;grid-template-columns:248px minmax(0,1fr) !important;min-height:100vh;background:var(--bg)}

/* sidebar: light card, rounded menu items */
body.workspace .side{background:var(--card) !important;color:var(--ink2) !important;border:0 !important;border-right:1px solid var(--line) !important;box-shadow:none !important;padding:16px 12px !important;height:100vh;position:sticky;top:0;display:flex;flex-direction:column;overflow:auto;gap:0}
body.workspace .side-brand{padding:4px 8px 14px;border-bottom:1px solid var(--line);margin-bottom:10px}
body.workspace .side-brand .brand{display:block}
body.workspace .side-brand img{display:block;width:100%;max-width:200px;height:auto}
body.workspace .side-role,body.workspace .brand-caption,body.workspace .side-footer{display:none !important}
body.workspace .side-nav{display:block;flex:1 1 auto}
body.workspace .grp{font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:var(--mute);font-weight:700;padding:12px 8px 6px}
body.workspace .nav-link{display:flex !important;align-items:center;gap:10px;width:100%;padding:7px 8px !important;margin:0 0 2px !important;border:0 !important;border-radius:10px !important;background:transparent !important;color:var(--ink2) !important;font:inherit;font-size:14px;font-weight:600;text-align:left;cursor:pointer;box-shadow:none !important;transform:none !important}
body.workspace .nav-link:hover{background:var(--bg) !important}
body.workspace .nav-link.on{background:var(--brand5) !important;color:var(--brand6) !important}
body.workspace .ic{width:30px;height:30px;flex:0 0 30px;border-radius:9px;background:var(--brand5);color:var(--brand);display:grid;place-items:center}
body.workspace .ic svg{width:17px;height:17px;display:block}
body.workspace .ic.g{background:var(--green5);color:var(--green)}
body.workspace .ic.r{background:var(--red5);color:var(--red)}
body.workspace .ic.a{background:var(--amber5);color:var(--amber)}
body.workspace .nav-link.on .ic{background:var(--brand);color:#fff}
body.workspace .side-bottom{margin-top:auto;padding-top:10px}
body.workspace .logout-btn{display:flex !important;align-items:center;gap:10px;width:100%;padding:7px 8px !important;border-radius:16px !important;border:1px solid rgba(194,57,47,.18) !important;background:rgba(255,255,255,.55) !important;color:var(--ink2) !important;font:inherit;font-size:14px;font-weight:600;text-align:left;cursor:pointer;-webkit-backdrop-filter:blur(14px) saturate(150%);backdrop-filter:blur(14px) saturate(150%);box-shadow:inset 0 1px 0 rgba(255,255,255,.9),0 6px 16px -10px rgba(194,57,47,.45) !important;transition:background .15s ease}
body.workspace .logout-btn:hover{background:rgba(253,236,234,.8) !important}
body.workspace .logout-btn:focus-visible{outline:3px solid rgba(194,57,47,.3);outline-offset:2px}
body.workspace .logout-btn .ic.r{background:var(--red5);color:var(--red)}
body.workspace .logout-btn span:last-child{color:var(--ink2)}

/* topbar and main */
body.workspace .main-area{min-width:0;padding:0 !important}
body.workspace .topbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:20px 22px 14px !important;background:transparent !important;border:0 !important;box-shadow:none !important;position:static !important;height:auto !important}
body.workspace .topbar-left{display:flex;align-items:center;gap:12px}
body.workspace .crumb{display:block;font-size:11px;color:var(--mute);letter-spacing:.06em;font-weight:700}
body.workspace .topbar h1{font-size:22px;margin:2px 0 0;color:var(--ink);font-weight:800}
body.workspace .topbar-actions{display:flex;align-items:center;gap:10px}
body.workspace .search-decoration{border:1px solid var(--line);background:var(--card);border-radius:10px;padding:8px 12px;min-width:260px;color:var(--mute);font-size:14px !important;line-height:1.45;font-weight:400;box-shadow:none}
body.workspace .secure-badge{display:none !important}
body.workspace .profile-trigger{display:flex;align-items:center;gap:8px;border:1px solid var(--line);background:var(--card);border-radius:10px;padding:5px 10px 5px 5px;cursor:pointer;font:inherit;color:var(--ink)}
body.workspace .page-content{padding:0 22px 40px !important;max-width:none !important;margin:0 !important}
body.workspace .notice-center{margin:0 22px 12px}

/* hero (mockup card with icon tile) */
body.workspace .dash-hero{display:flex !important;align-items:center;gap:14px;background:var(--card) !important;border:1px solid var(--line) !important;border-radius:14px !important;padding:16px 18px !important;margin:0 0 14px !important;box-shadow:none !important;min-height:0 !important;color:var(--ink) !important;background-image:none !important}
body.workspace .dash-hero .eyebrow,body.workspace .hero-mark{display:none !important}
body.workspace .hero-ic{width:44px;height:44px;flex:0 0 44px;border-radius:12px;background:var(--brand5);color:var(--brand);display:grid;place-items:center}
body.workspace .hero-ic svg{width:22px;height:22px;display:block}
body.workspace .dash-hero-copy h2{margin:0;font-size:17px;color:var(--ink);font-weight:800}
body.workspace .dash-hero-copy p{margin:3px 0 0;color:var(--mute);font-size:13px}

/* KPI cards (mockup .kpi) */
body.workspace .stats{display:grid !important;grid-template-columns:repeat(4,minmax(0,1fr)) !important;gap:12px;margin:0 0 14px}
body.workspace .stat{--c:var(--brand);--s:var(--brand5);position:relative;overflow:hidden;display:flex !important;flex-direction:column;align-items:stretch !important;gap:6px;background:var(--card) !important;border:1px solid var(--line) !important;border-radius:14px !important;padding:14px 14px 12px !important;min-height:0 !important;text-align:left;font:inherit;color:var(--ink);box-shadow:none !important;min-width:0;cursor:default;width:100%}
body.workspace button.stat{cursor:pointer}
body.workspace .stat::before{content:"";position:absolute;left:0;top:0;right:0;height:4px;background:var(--c)}
body.workspace .stat.green{--c:var(--green);--s:var(--green5)}
body.workspace .stat.amber{--c:var(--amber);--s:var(--amber5)}
body.workspace .stat.red{--c:var(--red);--s:var(--red5)}
body.workspace .stat-row{display:flex;align-items:center;justify-content:space-between;gap:8px}
body.workspace .stat-lbl{color:var(--c);font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.04em}
body.workspace .stat-ic{width:30px;height:30px;border-radius:9px;background:var(--s);color:var(--c);display:grid;place-items:center;flex:0 0 30px}
body.workspace .stat-ic svg{width:16px;height:16px;display:block}
body.workspace .stat-val{font-size:24px;font-weight:800;line-height:1.1;color:var(--ink);overflow-wrap:anywhere}
body.workspace .stat-note{color:var(--mute);font-size:12px;font-style:normal;min-height:1em}
body.workspace .stat .kpi-cta,body.workspace .stat .stat-cta{display:none}

/* cards (mockup .card) */
body.workspace .panel{background:var(--card) !important;border:1px solid var(--line) !important;border-radius:14px !important;padding:16px !important;margin:0 0 14px !important;box-shadow:none !important;min-width:0}
body.workspace .panel-head{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin:0 0 12px !important}
body.workspace .panel-head h3{font-size:15px;margin:0;color:var(--ink);font-weight:700}
body.workspace .tw{overflow:auto;border:0 !important;border-radius:0 !important}
body.workspace table{width:100%;border-collapse:collapse;font-size:13px;background:transparent}
body.workspace th,body.workspace td{text-align:left;padding:10px;border-bottom:1px solid var(--line2);vertical-align:middle;color:var(--ink)}
body.workspace th{color:var(--mute);font-weight:600;background:var(--bg);white-space:nowrap}
body.workspace tr:last-child td{border-bottom:0}

/* pills */
body.workspace .pill{display:inline-block;font-size:12px;font-weight:700;padding:3px 9px;border-radius:999px;background:var(--bg);color:var(--mute);white-space:nowrap;border:0}
body.workspace .pill.ok{background:var(--green5);color:var(--green)}
body.workspace .pill.wait{background:var(--amber5);color:var(--amber)}
body.workspace .pill.bad{background:var(--red5);color:var(--red)}

/* buttons */
body.workspace .btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;background:var(--brand);color:#fff;border:0;border-radius:9px;padding:7px 12px;font:inherit;font-weight:600;cursor:pointer;box-shadow:none}
body.workspace .btn:hover{background:var(--brand6)}
body.workspace .btn.ghost{background:var(--card);color:var(--ink);border:1px solid var(--line)}
body.workspace .btn.ghost:hover{background:var(--bg)}
body.workspace .btn.red,body.workspace .btn.danger{background:var(--red)}

/* info windows (mockup modal) */
body.workspace .dialog-backdrop{background:rgba(11,22,48,.35) !important}
body.workspace .dialog{background:var(--card) !important;border:0 !important;border-radius:18px !important;padding:16px 18px !important;width:min(560px,100%) !important;max-height:90vh;overflow:auto;box-shadow:0 24px 60px rgba(11,22,48,.2) !important;color:var(--ink)}
body.workspace .dialog>.btn{margin-top:12px}

/* layout helpers */
body.workspace .split{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:14px}
body.workspace .split>*{min-width:0}
body.workspace .dashboard-footer{margin:0 22px 24px;color:var(--mute);font-size:12px}

@media (max-width:1100px){body.workspace .stats{grid-template-columns:repeat(2,minmax(0,1fr)) !important}body.workspace .split{grid-template-columns:1fr}}
@media (max-width:820px){
 body.workspace .app-shell{grid-template-columns:1fr !important}
 body.workspace .side{position:fixed;left:0;top:0;bottom:0;width:260px;height:100vh;transform:translateX(-105%);transition:transform .2s ease;z-index:40}
 body.workspace .side.mobile-open{transform:none}
 body.workspace .search-decoration{min-width:0;width:100%}
}
@media (max-width:560px){body.workspace .stats{grid-template-columns:1fr 1fr !important}body.workspace .stat-val{font-size:20px}}

/* quick action cards on Overview: same card and icon tile as the mockup */
body.workspace .quick-grid{display:grid !important;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0 0 14px}
body.workspace .quick{display:flex !important;align-items:center;gap:12px;width:100%;background:var(--card) !important;border:1px solid var(--line) !important;border-radius:14px !important;padding:14px !important;color:var(--ink) !important;font:inherit;font-weight:700;text-align:left;cursor:pointer;box-shadow:none !important}
body.workspace .quick:hover{border-color:var(--brand1) !important;background:var(--brand5) !important}
body.workspace .quick .qic{width:36px;height:36px;flex:0 0 36px;border-radius:10px;background:var(--brand5);color:var(--brand);display:grid;place-items:center;font-size:0}
body.workspace .quick .qic svg{width:18px;height:18px;display:block}
@media (max-width:1100px){body.workspace .quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* fixes: full logo, quick actions that wrap instead of cutting off */
body.workspace .side-brand{overflow:visible !important;height:auto !important;min-height:0 !important}
body.workspace .side-brand .brand{width:100% !important;height:auto !important;display:block !important;padding:0 !important;margin:0 !important;overflow:visible !important}
body.workspace .side-brand img{width:100% !important;max-width:200px !important;height:auto !important;max-height:none !important;object-fit:contain !important;display:block !important}
body.workspace .quick-grid{grid-template-columns:repeat(auto-fit,minmax(176px,1fr)) !important}
body.workspace .quick{min-width:0;min-height:72px;white-space:normal;line-height:1.3;overflow:visible !important}
body.workspace .quick span:not(.qic){min-width:0;overflow-wrap:anywhere}
body.workspace .quick .qic{flex:0 0 36px}

/* sidebar icons: larger, clearer tiles */
body.workspace .ic{width:34px !important;height:34px !important;flex:0 0 34px !important;border-radius:10px !important}
body.workspace .ic svg{width:20px !important;height:20px !important;stroke-width:2 !important}
body.workspace .nav-link{gap:12px !important;padding:6px 8px !important}
body.workspace .logout-btn .ic{width:34px !important;height:34px !important;flex:0 0 34px !important}
/* action buttons: always readable */
body.workspace .btn.red,body.workspace .mer .btn.red,body.workspace button.btn.red{background:#c2392f !important;border:1px solid #c2392f !important;color:#fff !important;font-weight:700 !important}
body.workspace .btn.red:hover{background:#a8302a !important}
body.workspace .btn.o,body.workspace .mer .btn.o,body.workspace .mer a.btn.o{background:#fff !important;color:#1d4fd0 !important;border:1px solid #c9d6ee !important}
body.workspace .btn.sm{font-size:13px !important;padding:7px 12px !important;min-height:0 !important;line-height:1.2 !important;letter-spacing:0 !important}
