/* =====================================================================
   EMS SHOP PANEL — Agent Bento Grid UI
   Design language: VengeanceUI "Agent Bento Grid" (shadcn/Tailwind DNA)
   · neutral surfaces (white / neutral-900 cards, neutral-50/950 insets)
   · 20px bento cards with hairline ring shadows, 14px inner areas
   · dotted-grid + 45° hatch textures
   · monospace tabular numerals, tiny uppercase tracking labels
   · 3D gradient icon chips with layered inset highlights
   · emerald primary accent (owner console = violet, admin = sky)
     + 10 semantic tones
   · professional light & dark treatments

   This stylesheet is the ONLY theme for the EMS Shop Panel.
   It is fully scoped to body.shp-on (set while a shop session is
   rendered) so the public site, Owner Console and Administrator Panel
   keep their existing appearance untouched.
   Load order: shop.css must come after assets/css/app.css.
   ===================================================================== */
/* ---------------------------------------------------------------------
   1 · Design tokens
--------------------------------------------------------------------- */
body.shp-on{
  --shp-font:ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  --shp-mono:ui-monospace,"SF Mono",SFMono-Regular,Menlo,Consolas,"Liberation Mono",monospace;
  --shp-bg:#f4f4f5;
  --shp-card:#ffffff;
  --shp-inset:#fafafa;
  --shp-inset2:#f4f4f5;
  --shp-side:#fafafa;
  --shp-text:#18181b;
  --shp-text2:#3f3f46;
  --shp-muted:#71717a;
  --shp-muted2:#a1a1aa;
  --shp-line:rgba(24,24,27,.09);
  --shp-line-strong:rgba(24,24,27,.18);
  --shp-ring:0 0 0 1px rgba(24,24,27,.08),0 2px 4px rgba(24,24,27,.04);
  --shp-ring-lift:0 0 0 1px rgba(24,24,27,.10),0 4px 10px rgba(24,24,27,.07);
  --shp-overlay:rgba(24,24,27,.52);
  --shp-dots:rgba(24,24,27,.12);
  --shp-hatch:rgba(24,24,27,.14);
  --shp-focus:rgba(16,185,129,.22);
  --shp-primary:#10b981;
}
body.shp-on[data-shp-theme="dark"]{
  --shp-bg:#0a0a0a;
  --shp-card:#171717;
  --shp-inset:#101010;
  --shp-inset2:#1c1c1c;
  --shp-side:#0d0d0d;
  --shp-text:#fafafa;
  --shp-text2:#e4e4e7;
  --shp-muted:#a1a1aa;
  --shp-muted2:#6b6b6b;
  --shp-line:rgba(255,255,255,.08);
  --shp-line-strong:rgba(255,255,255,.18);
  --shp-ring:inset 0 1px 0 0 rgba(255,255,255,.05),0 0 0 1px rgba(255,255,255,.06),0 2px 4px rgba(0,0,0,.35);
  --shp-ring-lift:inset 0 1px 0 0 rgba(255,255,255,.07),0 0 0 1px rgba(255,255,255,.09),0 6px 14px rgba(0,0,0,.45);
  --shp-overlay:rgba(0,0,0,.66);
  --shp-dots:rgba(255,255,255,.09);
  --shp-hatch:rgba(255,255,255,.12);
  --shp-focus:rgba(52,211,153,.26);
  --shp-primary:#10b981;
}

/* ---------------------------------------------------------------------
   2 · Accent tones (400 / 500-600 / 700 steps + solid reference)
--------------------------------------------------------------------- */
.shp-t-violet{--shp-c1:#a78bfa;--shp-c2:#8b5cf6;--shp-cb:#6d28d9}
.shp-t-cyan{--shp-c1:#22d3ee;--shp-c2:#06b6d4;--shp-cb:#0e7490}
.shp-t-sky{--shp-c1:#38bdf8;--shp-c2:#0ea5e9;--shp-cb:#0369a1}
.shp-t-emerald{--shp-c1:#34d399;--shp-c2:#10b981;--shp-cb:#047857}
.shp-t-amber{--shp-c1:#fbbf24;--shp-c2:#f59e0b;--shp-cb:#b45309}
.shp-t-rose{--shp-c1:#fb7185;--shp-c2:#f43f5e;--shp-cb:#be123c}
.shp-t-fuchsia{--shp-c1:#e879f9;--shp-c2:#d946ef;--shp-cb:#a21caf}
.shp-t-blue{--shp-c1:#60a5fa;--shp-c2:#3b82f6;--shp-cb:#1d4ed8}
.shp-t-lime{--shp-c1:#a3e635;--shp-c2:#84cc16;--shp-cb:#4d7c0f}
.shp-t-zinc{--shp-c1:#a1a1aa;--shp-c2:#71717a;--shp-cb:#3f3f46}
body.shp-on .shp-t-violet{--shp-tone:#7c3aed}
body.shp-on .shp-t-cyan{--shp-tone:#0891b2}
body.shp-on .shp-t-sky{--shp-tone:#0284c7}
body.shp-on .shp-t-emerald{--shp-tone:#059669}
body.shp-on .shp-t-amber{--shp-tone:#d97706}
body.shp-on .shp-t-rose{--shp-tone:#e11d48}
body.shp-on .shp-t-fuchsia{--shp-tone:#c026d3}
body.shp-on .shp-t-blue{--shp-tone:#2563eb}
body.shp-on .shp-t-lime{--shp-tone:#65a30d}
body.shp-on .shp-t-zinc{--shp-tone:#71717a}
body.shp-on[data-shp-theme="dark"] .shp-t-violet{--shp-tone:#a78bfa}
body.shp-on[data-shp-theme="dark"] .shp-t-cyan{--shp-tone:#22d3ee}
body.shp-on[data-shp-theme="dark"] .shp-t-sky{--shp-tone:#38bdf8}
body.shp-on[data-shp-theme="dark"] .shp-t-emerald{--shp-tone:#34d399}
body.shp-on[data-shp-theme="dark"] .shp-t-amber{--shp-tone:#fbbf24}
body.shp-on[data-shp-theme="dark"] .shp-t-rose{--shp-tone:#fb7185}
body.shp-on[data-shp-theme="dark"] .shp-t-fuchsia{--shp-tone:#e879f9}
body.shp-on[data-shp-theme="dark"] .shp-t-blue{--shp-tone:#60a5fa}
body.shp-on[data-shp-theme="dark"] .shp-t-lime{--shp-tone:#a3e635}
body.shp-on[data-shp-theme="dark"] .shp-t-zinc{--shp-tone:#a1a1aa}

/* ---------------------------------------------------------------------
   3 · Base + shell
--------------------------------------------------------------------- */
body.shp-on{background:var(--shp-bg)!important;color:var(--shp-text)!important;font-family:var(--shp-font)!important;font-size:13px}
html:has(body.shp-on){background:var(--shp-bg)!important}
body.shp-on .shp,body.shp-on .shp-modalbox{font-family:var(--shp-font);color:var(--shp-text);font-size:13px;line-height:1.45}
body.shp-on .shp h1,body.shp-on .shp h2,body.shp-on .shp h3,body.shp-on .shp h4,body.shp-on .shp-modalbox h1,body.shp-on .shp-modalbox h2,body.shp-on .shp-modalbox h3,body.shp-on .shp-modalbox h4{font-family:var(--shp-font)!important;color:var(--shp-text)!important;letter-spacing:-.01em!important}
.shp{display:grid;grid-template-columns:264px minmax(0,1fr);min-height:100vh;background:var(--shp-bg)}
.shp-side{position:sticky;top:0;height:100vh;display:flex;flex-direction:column;gap:10px;background:var(--shp-side);border-right:1px solid var(--shp-line);padding:16px 12px 12px;overflow:hidden}
.shp-brand{display:flex;align-items:center;gap:10px;padding:2px 4px 8px;border-bottom:1px solid var(--shp-line)}
.shp-mark{width:34px;height:34px;border-radius:11px;display:grid;place-items:center;color:#fff;flex:0 0 auto;background:linear-gradient(180deg,var(--shp-c1),var(--shp-c2));border:1px solid var(--shp-cb);box-shadow:inset 0 .5px 0 rgba(255,255,255,.55),inset 0 2px 5px rgba(255,255,255,.28),inset 0 -.5px 0 rgba(0,0,0,.28),0 1px 2px rgba(0,0,0,.14)}
.shp-mark .lucide{width:17px;height:17px}
.shp-brandtext{min-width:0}
.shp-brandtext b{display:block;font-size:13.5px;font-weight:750;letter-spacing:-.012em;color:var(--shp-text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.shp-brandtext small{display:block;font-family:var(--shp-mono);font-size:8px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--shp-muted);margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.shp-nav{display:flex;flex-direction:column;gap:14px;overflow-y:auto;overflow-x:hidden;flex:1;min-height:0;padding:2px 0;scrollbar-width:thin}
.shp-navgroup{display:flex;flex-direction:column;gap:2px}
.shp-navgroup>p{font-family:var(--shp-mono);font-size:8.5px;font-weight:700;letter-spacing:.18em;text-transform:uppercase;color:var(--shp-muted2);padding:0 10px 5px}
.shp-nav button{display:flex;align-items:center;gap:10px;width:100%;padding:6px 10px;border-radius:10px;background:transparent!important;color:var(--shp-text2)!important;font-family:var(--shp-font);font-size:12.5px;font-weight:550;letter-spacing:-.003em;border:1px solid transparent;box-shadow:none!important;text-align:left;cursor:pointer;transition:background .14s,color .14s,border-color .14s}
.shp-nav button:hover{background:color-mix(in srgb,var(--shp-text) 5%,transparent)!important;color:var(--shp-text)!important}
.shp-nav button.on{background:color-mix(in srgb,var(--shp-primary) 10%,transparent)!important;color:var(--shp-text)!important;border-color:color-mix(in srgb,var(--shp-primary) 26%,transparent)}
.shp-navlabel{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.shp-navicon{width:25px;height:25px;border-radius:8px;display:grid;place-items:center;color:var(--shp-muted);flex:0 0 auto;transition:.14s}
.shp-navicon .lucide{width:15px;height:15px}
.shp-nav button:hover .shp-navicon{color:var(--shp-text)}
.shp-nav button.on .shp-navicon{color:#fff;background:linear-gradient(180deg,var(--shp-c1),var(--shp-c2));border:1px solid var(--shp-cb);box-shadow:inset 0 .5px 0 rgba(255,255,255,.5),inset 0 2px 4px rgba(255,255,255,.25),inset 0 -.5px 0 rgba(0,0,0,.25),0 1px 2px rgba(0,0,0,.12)}
.shp-navbadge{margin-left:auto;flex:0 0 auto;background:#e11d48;color:#fff;font-family:var(--shp-mono);font-size:9px;font-weight:700;min-width:17px;height:17px;border-radius:6px;display:grid;place-items:center;padding:0 4px;box-shadow:inset 0 .5px 0 rgba(255,255,255,.35)}
.shp-sidefoot{flex:0 0 auto;border-top:1px solid var(--shp-line);padding-top:8px}
.shp-sidefoot .shp-btn{width:100%;justify-content:flex-start}
.shp-main{display:flex;flex-direction:column;min-width:0}
.shp-top{position:sticky;top:0;z-index:40;display:flex;align-items:center;justify-content:space-between;gap:12px;height:56px;padding:0 22px;background:color-mix(in srgb,var(--shp-bg) 86%,transparent);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);border-bottom:1px solid var(--shp-line)}
.shp-toppage{min-width:0}
.shp-toppage span{display:block;font-family:var(--shp-mono);font-size:8px;font-weight:700;letter-spacing:.18em;text-transform:uppercase;color:var(--shp-muted2)}
.shp-toppage b{display:block;font-size:13.5px;font-weight:700;letter-spacing:-.012em;color:var(--shp-text);margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.shp-topactions{display:flex;align-items:center;gap:10px;flex:0 0 auto}
.shp-iconbtn{width:32px;height:32px;border-radius:10px;display:grid;place-items:center;background:transparent!important;color:var(--shp-text2)!important;border:1px solid var(--shp-line)!important;box-shadow:none!important;cursor:pointer;transition:.14s;padding:0}
.shp-iconbtn:hover{background:var(--shp-inset2)!important;color:var(--shp-text)!important}
.shp-iconbtn .lucide{width:15px;height:15px}
.shp-page{flex:1;padding:22px 22px 34px;display:flex;flex-direction:column;gap:14px;min-width:0}

/* ---------------------------------------------------------------------
   4 · Page head + grids + cards
--------------------------------------------------------------------- */
.shp-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;flex-wrap:wrap}
.shp-panel-head h3{display:flex;align-items:center;gap:7px}
.shp-panel-head h3 .lucide{width:13px;height:13px;color:var(--shp-muted)}
.shp-kicker{font-family:var(--shp-mono);font-size:8.5px;font-weight:700;letter-spacing:.18em;text-transform:uppercase;color:var(--shp-muted)}
.shp-head h1{font-size:17px!important;font-weight:750!important;margin-top:4px!important}
.shp-sub{font-size:12px;color:var(--shp-muted);line-height:1.55;margin-top:5px!important;max-width:640px}
.shp-head-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:12px}
.shp-head .shp-head-actions{margin-bottom:0;margin-top:2px}
.shp-head-actions:empty{display:none}

.shp-grid{display:grid;gap:12px}
.shp-kpis{grid-template-columns:repeat(4,minmax(0,1fr))}
.shp-dash2{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
/* Fixed height for Today's financial chart and Recent activity panels: no height increase */
.shp-dash2 > .shp-panel,
.shp-panel-fchart,
.shp-panel-activity{
  height:310px;
  max-height:310px;
  overflow:hidden;
  display:flex;
  flex-direction:column;
}
.shp-dash2 > .shp-panel .shp-panel-head{flex:0 0 auto}
.shp-panel-fchart .shp-ftotal{flex:0 0 auto}
.shp-panel-fchart .shp-fchart{flex:1 1 0%;min-height:0}
.shp-panel-activity .shp-tw{
  flex:1 1 0%;
  min-height:0;
  max-height:100%;
  overflow-y:auto;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
}
.shp-panel-activity .shp-desc{
  flex:1;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
}

.shp-card{position:relative;background:var(--shp-card);border-radius:20px;padding:15px;box-shadow:var(--shp-ring);display:flex;flex-direction:column;gap:8px;min-width:0}
.shp-card h3{font-size:13px!important;font-weight:650!important;letter-spacing:-.008em!important}
.shp-desc{font-size:11px;color:var(--shp-muted);line-height:1.55}
.shp-kpi{gap:9px}
.shp-kpi-top{display:flex;align-items:center;gap:9px;min-width:0}
.shp-kpi-top .shp-kicker{letter-spacing:.14em}
.shp-kpi-val{font-family:var(--shp-mono);font-size:23px;font-weight:700;letter-spacing:-.02em;line-height:1.05;font-variant-numeric:tabular-nums;color:var(--shp-text)}
.shp-kpi-val small{font-size:12px;font-weight:600;color:var(--shp-muted);letter-spacing:0}
.shp-kpi-foot{font-family:var(--shp-mono);font-size:8.5px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--shp-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* 3D icon chip */
.shp-chipic{width:26px;height:26px;border-radius:8px;display:inline-grid;place-items:center;color:#fff!important;flex:0 0 auto;background:linear-gradient(180deg,var(--shp-c1),var(--shp-c2))!important;border:1px solid var(--shp-cb);box-shadow:inset 0 .5px 0 rgba(255,255,255,.55),inset 0 2px 5px rgba(255,255,255,.28),inset 0 -.5px 0 rgba(0,0,0,.28),0 1px 2px rgba(0,0,0,.10),0 2px 4px rgba(0,0,0,.06)}
.shp-chipic .lucide{width:14px;height:14px;display:block}
.shp .lucide{display:inline-block;vertical-align:-2px;flex:0 0 auto}

/* Usage meter */
.shp-meter{height:6px;border-radius:999px;background:var(--shp-inset2);border:1px solid var(--shp-line);overflow:hidden;flex:1;min-width:50px}
.shp-meter i{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#34d399,#10b981);box-shadow:inset 0 .5px 0 rgba(255,255,255,.4)}

/* Hatched empty state */
.shp-empty{flex:1;min-height:130px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:20px;text-align:center}
.shp-empty i{width:52px;height:32px;border-radius:9px;border:1px dashed var(--shp-line-strong);background-image:repeating-linear-gradient(45deg,transparent,transparent 5px,var(--shp-hatch) 5px,var(--shp-hatch) 6px)}
.shp-empty p{font-size:11px;color:var(--shp-muted);max-width:300px;line-height:1.5}

/* ---------------------------------------------------------------------
   5 · Panels (tables / forms)
--------------------------------------------------------------------- */
.shp-panel{background:var(--shp-card);border-radius:20px;padding:16px;box-shadow:var(--shp-ring);display:flex;flex-direction:column;gap:12px;min-width:0}
.shp-panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:wrap}
.shp-panel-head h3{font-size:13px!important;font-weight:650!important}
.shp-narrow{max-width:560px}

/* Tables */
.shp-tw{overflow:auto;border-radius:14px;border:1px solid var(--shp-line);background:var(--shp-inset);max-width:100%}
body.shp-on .shp table,body.shp-on .shp-modalbox table{border-collapse:collapse;width:100%;background:transparent!important}
body.shp-on .shp th,body.shp-on .shp-modalbox th{font-family:var(--shp-mono)!important;font-size:8.5px!important;font-weight:700!important;letter-spacing:.13em!important;text-transform:uppercase!important;color:var(--shp-muted)!important;text-align:left;padding:9px 12px!important;border:0!important;border-bottom:1px solid var(--shp-line)!important;background:var(--shp-inset)!important;white-space:nowrap!important;position:sticky;top:0;z-index:1}
body.shp-on .shp td,body.shp-on .shp-modalbox td{font-size:12px!important;color:var(--shp-text2)!important;padding:10px 12px!important;border:0!important;border-bottom:1px solid var(--shp-line)!important;white-space:nowrap!important;vertical-align:top;background:transparent!important}
body.shp-on .shp tbody tr:last-child td,body.shp-on .shp-modalbox tbody tr:last-child td{border-bottom:0!important}
body.shp-on .shp tbody tr,body.shp-on .shp-modalbox tbody tr{transition:background .12s}
/* !important is required: legacy app.css ships global
   `tbody tr:hover,tbody tr:hover td{background:#f3f6fa!important}` which
   paints a light row/td in dark mode and makes the text invisible. */
body.shp-on .shp tbody tr:hover,body.shp-on .shp-modalbox tbody tr:hover{background:color-mix(in srgb,var(--shp-text) 7%,transparent)!important}
body.shp-on .shp tbody tr:hover td,body.shp-on .shp-modalbox tbody tr:hover td{color:var(--shp-text)!important;background:transparent!important}
body.shp-on .shp tbody tr:active,body.shp-on .shp-modalbox tbody tr:active{background:color-mix(in srgb,var(--shp-text) 11%,transparent)!important}
body.shp-on .shp td.shp-wrap,body.shp-on .shp-modalbox td.shp-wrap{white-space:normal!important;min-width:180px;max-width:340px;line-height:1.5}
.shp-num{font-family:var(--shp-mono);font-variant-numeric:tabular-nums;font-weight:550;color:var(--shp-text)}
body.shp-on .shp code,body.shp-on .shp-modalbox code{font-family:var(--shp-mono)!important;font-size:10.5px!important;font-weight:600!important;background:var(--shp-inset2)!important;border:1px solid var(--shp-line)!important;border-radius:6px!important;padding:2px 6px!important;color:var(--shp-text)!important;white-space:nowrap!important}

/* ---------------------------------------------------------------------
   6 · Badges + buttons
--------------------------------------------------------------------- */
.shp-badge{display:inline-flex;align-items:center;gap:5px;font-family:var(--shp-mono);font-size:8.5px;font-weight:700;letter-spacing:.11em;text-transform:uppercase;padding:3px 8px;border-radius:7px;background:color-mix(in srgb,var(--shp-tone) 14%,transparent);color:var(--shp-tone);border:1px solid color-mix(in srgb,var(--shp-tone) 32%,transparent);white-space:nowrap}

body.shp-on .shp-btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;font-family:var(--shp-font);font-size:12px;font-weight:620;letter-spacing:-.003em;padding:8px 14px;border-radius:10px;border:1px solid transparent;cursor:pointer;transition:filter .14s,background .14s,color .14s,border-color .14s;min-height:0;line-height:1.2;white-space:nowrap;text-decoration:none}
body.shp-on .shp-btn:active{transform:translateY(.5px)}
body.shp-on .shp-btn .lucide{width:14px;height:14px}
body.shp-on .shp-btn-primary{background:linear-gradient(180deg,#34d399,#10b981)!important;color:#fff!important;border-color:#047857;box-shadow:inset 0 .5px 0 rgba(255,255,255,.5),inset 0 2px 5px rgba(255,255,255,.25),inset 0 -.5px 0 rgba(0,0,0,.25),0 1px 2px rgba(0,0,0,.12)}
body.shp-on .shp-btn-primary:hover{background:linear-gradient(180deg,#6ee7b7,#059669)!important}
body.shp-on .shp-btn-danger{background:linear-gradient(180deg,#fb7185,#e11d48)!important;color:#fff!important;border-color:#be123c;box-shadow:inset 0 .5px 0 rgba(255,255,255,.45),inset 0 2px 5px rgba(255,255,255,.22),inset 0 -.5px 0 rgba(0,0,0,.25),0 1px 2px rgba(0,0,0,.12)}
body.shp-on .shp-btn-danger:hover{background:linear-gradient(180deg,#ff8299,#f43f5e)!important}
body.shp-on .shp-btn-soft{background:var(--shp-inset2)!important;color:var(--shp-text)!important;border-color:var(--shp-line-strong)!important;box-shadow:none!important}
body.shp-on .shp-btn-soft:hover{background:color-mix(in srgb,var(--shp-text) 8%,var(--shp-inset2))!important}
body.shp-on .shp-btn-ghost{background:transparent!important;color:var(--shp-text2)!important;border-color:transparent!important;box-shadow:none!important}
body.shp-on .shp-btn-ghost:hover{background:var(--shp-inset2)!important;color:var(--shp-text)!important}
body.shp-on .shp-btn-sm{padding:5px 10px;font-size:11.5px;border-radius:9px}
body.shp-on .shp-btn:disabled{cursor:not-allowed!important;opacity:.55;filter:saturate(.6)}

/* ---------------------------------------------------------------------
   7 · Forms
--------------------------------------------------------------------- */
body.shp-on .shp-form{display:grid;gap:14px}
body.shp-on .shp-form label,body.shp-on .shp-modalbox label{display:grid;gap:6px;font-size:11px;font-weight:650;letter-spacing:.01em;color:var(--shp-text2);text-align:left}
body.shp-on .shp-form label>.shp-sub,body.shp-on .shp-modalbox label>.shp-sub{font-weight:500;margin-top:-2px}
body.shp-on .shp input,body.shp-on .shp textarea,body.shp-on .shp select,
body.shp-on .shp-modalbox input,body.shp-on .shp-modalbox textarea,body.shp-on .shp-modalbox select{
  width:100%;border:1px solid var(--shp-line-strong)!important;border-radius:10px!important;padding:9px 11px!important;font-size:12.5px!important;font-family:var(--shp-font)!important;background:var(--shp-card)!important;color:var(--shp-text)!important;outline:none!important;transition:border-color .14s,box-shadow .14s;line-height:1.4;box-shadow:none}
body.shp-on .shp input:focus,body.shp-on .shp textarea:focus,body.shp-on .shp select:focus,
body.shp-on .shp-modalbox input:focus,body.shp-on .shp-modalbox textarea:focus,body.shp-on .shp-modalbox select:focus{border-color:#10b981!important;box-shadow:0 0 0 3px var(--shp-focus)!important;outline:none!important}
body.shp-on .shp input::placeholder,body.shp-on .shp-modalbox input::placeholder{color:var(--shp-muted2)}
body.shp-on .shp input[readonly],body.shp-on .shp-modalbox input[readonly]{color:var(--shp-muted)}
body.shp-on .shp textarea{resize:vertical;min-height:64px}
body.shp-on .shp select,body.shp-on .shp-modalbox select{appearance:none;-webkit-appearance:none;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%2371717a' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")!important;background-repeat:no-repeat!important;background-position:right 11px center!important;padding-right:30px!important;cursor:pointer}
body.shp-on .shp select option,body.shp-on .shp-modalbox select option{background:var(--shp-card);color:var(--shp-text)}
body.shp-on .shp-grid2,body.shp-on .shp-modalbox .shp-grid2{display:grid;grid-template-columns:1fr 1fr;gap:12px}
body.shp-on .shp-form-actions{display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap}
.shp-search{max-width:360px}
.shp-note{border:1px dashed var(--shp-line-strong);background:var(--shp-inset);border-radius:12px;padding:10px 12px;font-family:var(--shp-mono);font-size:10px;letter-spacing:.04em;color:var(--shp-muted);text-transform:uppercase;font-weight:600}
.shp-hr{border:0!important;border-top:1px solid var(--shp-line)!important;margin:2px 0;width:100%}

/* ---------------------------------------------------------------------
   12 · Modals + states
--------------------------------------------------------------------- */
.shp-modal{position:fixed;inset:0;z-index:130;display:grid;place-items:center;padding:max(18px,env(safe-area-inset-top)) max(18px,env(safe-area-inset-right)) max(18px,env(safe-area-inset-bottom)) max(18px,env(safe-area-inset-left));background:var(--shp-overlay);backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px)}
.shp-modalbox{width:min(600px,100%);max-height:88vh;overflow:auto;background:var(--shp-card);border-radius:20px;box-shadow:var(--shp-ring),0 24px 64px rgba(0,0,0,.28);font-family:var(--shp-font)}
.shp-modalbox.shp-modal-wide{width:min(680px,100%)}
.shp-modalhead{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:15px 18px;border-bottom:1px solid var(--shp-line);background:var(--shp-card)}
.shp-modalhead h2{font-size:14px!important;font-weight:700!important;letter-spacing:-.01em!important}
body.shp-on .shp-x{width:28px;height:28px;border-radius:9px;display:grid;place-items:center;background:transparent!important;color:var(--shp-muted)!important;font-size:17px;line-height:1;border:1px solid transparent;cursor:pointer;padding:0;box-shadow:none!important;transition:.13s}
body.shp-on .shp-x:hover{background:var(--shp-inset2)!important;color:var(--shp-text)!important;border-color:var(--shp-line)}
.shp-modalbody{padding:18px;display:grid;gap:14px}

/* Loading state */

/* Scrollbars + selection */
body.shp-on ::-webkit-scrollbar{width:8px;height:8px}
body.shp-on ::-webkit-scrollbar-track{background:transparent}
body.shp-on ::-webkit-scrollbar-thumb{background:var(--shp-line-strong);border-radius:8px}
body.shp-on ::-webkit-scrollbar-thumb:hover{background:var(--shp-muted2)}
body.shp-on .shp ::selection,body.shp-on .shp-modalbox ::selection{background:rgba(16,185,129,.28)}

/* ---------------------------------------------------------------------

/* ---------------------------------------------------------------------
   8 · Shop toolbar · search · filter chips · status pills
--------------------------------------------------------------------- */
.shp-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.shp-search{max-width:420px;width:100%}
.shp-chips{display:flex;gap:6px;flex-wrap:wrap}
.shp-chip{font-family:var(--shp-mono);font-size:8.5px;font-weight:700;letter-spacing:.11em;text-transform:uppercase;min-height:0;padding:7px 11px;border-radius:8px;border:1px solid var(--shp-line-strong);background:var(--shp-inset2);color:var(--shp-text2);box-shadow:none;cursor:pointer;transition:.13s;white-space:nowrap;flex:0 0 auto;line-height:1.5}
.shp-chip:active{transform:none;box-shadow:none}
.shp-chip:hover{color:var(--shp-text);border-color:var(--shp-muted2);background:var(--shp-inset2);transform:none;box-shadow:none}
.shp-chip.on{background:color-mix(in srgb,var(--shp-primary) 12%,transparent);border-color:color-mix(in srgb,var(--shp-primary) 34%,transparent);color:var(--shp-primary)}
body.shp-on[data-shp-theme="dark"] .shp-chip.on{color:#34d399}
.shp-low{font-family:var(--shp-mono);font-size:8px;font-weight:800;letter-spacing:.08em;padding:2px 5px;border-radius:5px;background:color-mix(in srgb,#f43f5e 14%,transparent);color:#e11d48;border:1px solid color-mix(in srgb,#f43f5e 30%,transparent)}
body.shp-on[data-shp-theme="dark"] .shp-low{color:#fb7185}
body.shp-on .muted{color:var(--shp-muted)!important}
body.shp-on .shp .shp-wrap,body.shp-on .shp-modalbox .shp-wrap{white-space:normal!important}
.shp-pagegap{display:flex;flex-direction:column;gap:14px;min-width:0}

/* ---------------------------------------------------------------------
   9 · Dashboard (financial chart · activity · sales trend)
--------------------------------------------------------------------- */
.shp-fchart{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:4px 2px 2px}
.shp-fbar{display:flex;flex-direction:column;gap:7px;min-width:0}
.shp-fbar-track{position:relative;height:118px;border-radius:12px;border:1px solid var(--shp-line);background:var(--shp-inset);background-image:radial-gradient(var(--shp-dots) .75px,transparent .75px);background-size:16px 16px;overflow:hidden;display:flex;align-items:flex-end;justify-content:center}
.shp-fbar-track i{display:block;width:min(46px,72%);border-radius:11px 11px 0 0;background:linear-gradient(180deg,var(--shp-c1),var(--shp-c2));border:1px solid var(--shp-cb);border-bottom:0;box-shadow:inset 0 .5px 0 rgba(255,255,255,.45)}
.shp-fbar b{font-family:var(--shp-mono);font-size:10.5px;font-weight:700;font-variant-numeric:tabular-nums;color:var(--shp-text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center}
.shp-fbar small{font-family:var(--shp-mono);font-size:8px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--shp-muted)}
.shp-ftotal{display:flex;align-items:center;justify-content:space-between;gap:10px;border:1px dashed var(--shp-line-strong);background:var(--shp-inset);border-radius:12px;padding:9px 12px;margin-bottom:4px}
.shp-ftotal span{font-family:var(--shp-mono);font-size:8.5px;font-weight:700;letter-spacing:.13em;text-transform:uppercase;color:var(--shp-muted)}
.shp-ftotal b{font-family:var(--shp-mono);font-size:15px;font-weight:700;font-variant-numeric:tabular-nums;color:var(--shp-text)}
.shp-tag{display:inline-flex;align-items:center;font-family:var(--shp-mono);font-size:8.5px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;padding:2px 7px;border-radius:6px;background:color-mix(in srgb,var(--shp-tone) 14%,transparent);color:var(--shp-tone);border:1px solid color-mix(in srgb,var(--shp-tone) 30%,transparent)}
/* sales trend svg */
.shp-trend svg{width:100%;height:auto;display:block}
.shp-tgrid{stroke:var(--shp-line);stroke-width:1}
.shp-tylab,.shp-txlab{fill:var(--shp-muted);font-family:var(--shp-mono);font-size:9px}
.shp-tdot{fill:var(--shp-primary);stroke:var(--shp-card);stroke-width:1.4}
.shp-tline{fill:none;stroke:#10b981;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.shp-tarea{fill:rgba(16,185,129,.10)}
.shp-tline-prev{fill:none;stroke:var(--shp-muted2);stroke-width:1.6;stroke-dasharray:4 4;stroke-linecap:round}
.shp-tarea-prev{fill:rgba(113,113,122,.06)}
.shp-tdot-prev{fill:var(--shp-muted2);stroke:var(--shp-card);stroke-width:1.2}
.shp-trend-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;flex-wrap:wrap}
.shp-trend-head h2{font-size:13px!important;font-weight:650!important}
.shp-trend-head small{display:block;font-family:var(--shp-mono);font-size:9px;color:var(--shp-muted);margin-top:3px}
.shp-growth{font-family:var(--shp-mono);font-size:9.5px;font-weight:700;padding:4px 8px;border-radius:7px;white-space:nowrap}
.shp-growth.up{background:color-mix(in srgb,#10b981 13%,transparent);color:#059669;border:1px solid color-mix(in srgb,#10b981 30%,transparent)}
.shp-growth.down{background:color-mix(in srgb,#f43f5e 13%,transparent);color:#e11d48;border:1px solid color-mix(in srgb,#f43f5e 30%,transparent)}
body.shp-on[data-shp-theme="dark"] .shp-growth.up{color:#34d399}
body.shp-on[data-shp-theme="dark"] .shp-growth.down{color:#fb7185}
.shp-trend-legend{display:flex;gap:14px;font-family:var(--shp-mono);font-size:8.5px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--shp-muted)}
.shp-trend-legend i{display:inline-block;width:8px;height:8px;border-radius:3px;margin-right:5px;vertical-align:-1px}
.shp-trend-legend .l1{background:#10b981}
.shp-trend-legend .l2{background:var(--shp-muted2)}

/* ---------------------------------------------------------------------
   10 · Invoice builder modal
--------------------------------------------------------------------- */
.shp-modalbox.shp-modal-xl{width:min(860px,100%)}
.shp-iv-sec{border:1px solid var(--shp-line);border-radius:14px;padding:12px 13px;display:grid;gap:10px;background:var(--shp-inset)}
.shp-iv-sec>h3{font-family:var(--shp-mono)!important;font-size:8.5px!important;font-weight:700!important;letter-spacing:.15em!important;text-transform:uppercase!important;color:var(--shp-muted)!important}
.shp-iv-sec>h3 .muted{font-weight:500;letter-spacing:.06em;text-transform:none}
.shp-party{display:grid;gap:10px}
.shp-party-ro{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.shp-party-clear{justify-self:start}
.shp-lines{border:1px solid var(--shp-line);border-radius:12px;background:var(--shp-card);padding:10px;overflow:auto;max-height:220px;display:grid;gap:8px}
.shp-lines-empty{font-family:var(--shp-mono);font-size:9.5px;letter-spacing:.1em;text-transform:uppercase;color:var(--shp-muted2);padding:8px 4px}
.shp-sumgrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.shp-iv-linerow{display:grid;grid-template-columns:minmax(0,1.7fr) 84px 110px auto;gap:10px;align-items:end}
.shp-iv-linerow>div{display:grid;align-items:end}
.shp-iv-addrow{display:flex;justify-content:flex-end;margin-bottom:10px}
/* item picker modal (add-item product table) */
.shp-picker{display:grid;gap:12px}
.shp-picker .shp-tw{max-height:300px;overflow:auto;border:1px solid var(--shp-line);border-radius:12px}
.shp-picker-sel{display:grid;grid-template-columns:minmax(0,2.4fr) 84px 70px 106px 90px 100px 116px auto;gap:10px;align-items:end;border-top:1px solid var(--shp-line);padding-top:12px}
.shp-picker-add .shp-btn{min-height:38px;white-space:nowrap;width:100%}
.shp-picker-cats{flex-wrap:wrap;row-gap:6px}
/* inventory modal — category dropdown + create-new button */
.shp-cat-row{display:flex;gap:8px;align-items:stretch}
.shp-cat-row select{flex:1;min-width:0}
.shp-cat-plus{width:42px;min-width:42px;min-height:38px;font-size:19px;font-weight:600;line-height:1;display:grid;place-items:center;padding:0}
.shp-cat-chips{flex-wrap:wrap;row-gap:6px;margin-bottom:2px}
body.shp-on .shp-iv-add .shp-btn{min-height:38px;white-space:nowrap}
body.shp-on .shp-sumgrid input[readonly]{font-family:var(--shp-mono)!important;font-variant-numeric:tabular-nums;font-weight:650;color:var(--shp-text)!important;background:var(--shp-inset2)!important}
.shp-iv-actions{display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap}
/* vaultium attachments (invoice + expense) */
.shp-attach{display:grid;gap:8px}
.shp-attachpick{display:flex;align-items:center;gap:8px;border:1px dashed var(--shp-line-strong);border-radius:11px;padding:9px 12px;font-family:var(--shp-mono);font-size:9.5px!important;font-weight:600;letter-spacing:.06em;color:var(--shp-muted);cursor:pointer;transition:.13s}
.shp-attachpick:hover{border-color:var(--shp-primary);color:var(--shp-primary)}
.shp-attachpick input{position:absolute;width:1px;height:1px;opacity:0}
.shp-attachchips{display:flex;flex-wrap:wrap;gap:6px}
.shp-attachchip{display:inline-flex;align-items:center;gap:7px;font-family:var(--shp-mono);font-size:9.5px;font-weight:600;background:var(--shp-inset2);border:1px solid var(--shp-line-strong);border-radius:8px;padding:4px 6px 4px 9px;color:var(--shp-text2)}
.shp-attachchip small{color:var(--shp-muted)}
.shp-attachchip button{width:17px;height:17px;border-radius:6px;border:1px solid var(--shp-line-strong);background:transparent;color:var(--shp-muted);cursor:pointer;font-size:11px;line-height:1;padding:0}
.shp-attachchip button:hover{color:#e11d48;border-color:color-mix(in srgb,#f43f5e 40%,transparent)}

/* ---------------------------------------------------------------------
   11 · Invoice view (document modal) — chrome only; the document inside
        (.invoiceprint family) is shared with the public verification
        page and the print window, and keeps its own styles in app.css.
--------------------------------------------------------------------- */
.shp-ivmodal .shp-modalbox{width:min(920px,100%);max-height:92vh;overflow:hidden;display:flex;flex-direction:column}
.shp-ivmodal .shp-modalhead{flex:0 0 auto}
.shp-ivmodal .shp-modalbody{display:block;padding:0;overflow-y:auto;overflow-x:hidden;min-height:0}
.shp-ivmodal .invoiceprint{width:100%;max-height:none;overflow:visible;border:0;box-shadow:none}
body.shp-on .shp-ivmodal .printActions{position:sticky;bottom:0;background:#fff;padding:12px 0 2px}
body.shp-on[data-shp-theme="dark"] .shp-ivmodal .printActions{background:var(--shp-card, #18181b)!important;border-top:1px solid var(--shp-line, rgba(255,255,255,.08))}
body.shp-on .shp-ivmodal .printActions{display:flex;gap:8px}
body.shp-on .shp-ivmodal .printActions button{font-family:var(--shp-font);font-size:12px;font-weight:620;padding:8px 14px;border-radius:10px;border:1px solid transparent;cursor:pointer;background:linear-gradient(180deg,#34d399,#10b981);color:#fff;border-color:#047857}
body.shp-on .shp-ivmodal .printActions button.secondary{background:var(--shp-inset2);color:var(--shp-text);border-color:var(--shp-line-strong)}

/* ---------------------------------------------------------------------
   12 · Due recover workspace
--------------------------------------------------------------------- */
.shp-due{display:grid;grid-template-columns:minmax(0,.72fr) minmax(0,1fr);gap:12px;align-items:start}
.shp-due-left{display:grid;gap:10px;min-width:0}
.shp-due-tabs{display:flex;gap:6px}
.shp-due-right{display:grid;gap:10px;position:sticky;top:0}
.shp-due-sum{display:grid;gap:8px;border:1px solid var(--shp-line);border-radius:14px;background:var(--shp-inset);padding:12px}
.shp-due-sum p{font-size:11.5px;color:var(--shp-text2);display:flex;justify-content:space-between;gap:10px}
.shp-due-sum p b{font-family:var(--shp-mono);font-variant-numeric:tabular-nums;color:var(--shp-text)}
.shp-due-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.shp-due-rows{display:grid;gap:12px}
body.shp-on .shp-tw tr.pick{cursor:pointer}
body.shp-on .shp-tw tr.pick.on,body.shp-on .shp-tw tr.pick.on:hover{background:color-mix(in srgb,var(--shp-primary) 8%,transparent)!important}
body.shp-on .shp-tw tr.pick.on td{border-bottom-color:color-mix(in srgb,var(--shp-primary) 26%,transparent)!important}
.shp-due-actions{display:flex;gap:8px;flex-wrap:wrap}

/* ---------------------------------------------------------------------
   13 · Staff permissions editor
--------------------------------------------------------------------- */
.shp-perm{border:1px solid var(--shp-line);border-radius:14px;overflow:hidden;background:var(--shp-inset)}
.shp-perm-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding:12px 13px;border-bottom:1px solid var(--shp-line);background:var(--shp-card)}
.shp-perm-head h3{font-size:12.5px!important;font-weight:650!important}
.shp-perm-head p{font-size:10.5px;color:var(--shp-muted);margin-top:3px;line-height:1.5}
.shp-perm-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:8px 13px;border-bottom:1px solid var(--shp-line)}
.shp-perm-row:last-child{border-bottom:0}
.shp-perm-row>strong{flex:0 0 150px;font-size:11.5px;font-weight:650;color:var(--shp-text)}
.shp-perm-all{flex:0 0 auto}
.shp-perm-acts{display:flex;gap:5px;flex-wrap:wrap;flex:1;justify-content:flex-end}
.shp-perm-pill{position:relative;display:inline-flex}
.shp-perm-pill input{position:absolute;opacity:0;inset:0;cursor:pointer}
.shp-perm-pill span{font-family:var(--shp-mono);font-size:8.5px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;padding:4px 9px;border-radius:7px;border:1px solid var(--shp-line-strong);background:var(--shp-card);color:var(--shp-muted);cursor:pointer;transition:.12s;user-select:none}
.shp-perm-pill:hover span{color:var(--shp-text)}
.shp-perm-pill input:checked+span{background:color-mix(in srgb,var(--shp-primary) 13%,transparent);border-color:color-mix(in srgb,var(--shp-primary) 36%,transparent);color:var(--shp-primary)}
body.shp-on[data-shp-theme="dark"] .shp-perm-pill input:checked+span{color:#34d399}

/* ---------------------------------------------------------------------
   14 · Attendance
--------------------------------------------------------------------- */
.shp-att{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;align-items:start}
.shp-att-list{display:grid;gap:6px;max-height:330px;overflow:auto;padding-right:2px}
.shp-att-item{display:flex;align-items:center;gap:10px;border:1px solid var(--shp-line);border-radius:12px;padding:8px 11px;background:var(--shp-card);cursor:pointer;transition:.12s}
.shp-att-item:hover{border-color:var(--shp-line-strong)}
.shp-att-item.on{border-color:color-mix(in srgb,var(--shp-primary) 40%,transparent);background:color-mix(in srgb,var(--shp-primary) 6%,var(--shp-card))}
.shp-att-check{width:16px;height:16px;accent-color:#10b981;flex:0 0 auto}
.shp-att-item b{display:block;font-size:12px;font-weight:650;color:var(--shp-text)}
.shp-att-item small{display:block;font-family:var(--shp-mono);font-size:8.5px;color:var(--shp-muted);margin-top:2px}
.shp-att-bulk{display:flex;align-items:center;gap:7px;font-size:11px;font-weight:600;color:var(--shp-text2);padding:2px 2px 6px}
.shp-att-bulk input{width:14px;height:14px;accent-color:#10b981}
.shp-att-date{display:inline-flex;align-items:center;gap:6px;font-family:var(--shp-mono);font-size:9px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--shp-muted);background:var(--shp-inset2);border:1px solid var(--shp-line);border-radius:8px;padding:5px 9px;white-space:nowrap}
.shp-att-date .lucide{width:11px;height:11px}
.shp-att-slide{display:inline-flex;align-items:center;gap:9px;cursor:pointer;user-select:none}
.shp-att-slide input{position:absolute;opacity:0}
.shp-att-track{width:38px;height:20px;border-radius:999px;background:var(--shp-inset2);border:1px solid var(--shp-line-strong);position:relative;transition:.15s;flex:0 0 auto}
.shp-att-track i{position:absolute;top:2px;left:2px;width:14px;height:14px;border-radius:50%;background:var(--shp-muted);transition:.15s}
.shp-att-slide input:checked+.shp-att-track{background:color-mix(in srgb,#10b981 22%,transparent);border-color:#047857}
.shp-att-slide input:checked+.shp-att-track i{left:20px;background:linear-gradient(180deg,#34d399,#059669)}
.shp-att-lbls{display:flex;gap:6px;font-family:var(--shp-mono);font-size:8.5px;font-weight:700;letter-spacing:.1em;text-transform:uppercase}
.shp-att-lbls b{color:var(--shp-muted2)}
.shp-att-lbls b.on{color:var(--shp-primary)}
body.shp-on[data-shp-theme="dark"] .shp-att-lbls b.on{color:#34d399}

/* ---------------------------------------------------------------------
   15 · Salary workspace
--------------------------------------------------------------------- */
.shp-sal{display:grid;grid-template-columns:280px minmax(0,1fr);gap:12px;align-items:start}
.shp-sal-side{display:grid;gap:10px;position:sticky;top:66px}
.shp-sal-side h3{font-size:12.5px!important;font-weight:650!important;display:flex;align-items:center;gap:7px}
.shp-sal-count{font-family:var(--shp-mono);font-size:9px;font-weight:700;background:var(--shp-inset2);border:1px solid var(--shp-line);border-radius:7px;padding:2px 7px;color:var(--shp-muted)}
.shp-sal-list{display:grid;gap:5px;max-height:420px;overflow:auto;padding-right:2px}
.shp-sal-item{display:flex;align-items:center;gap:10px;border:1px solid transparent;border-radius:12px;padding:7px 9px;background:transparent;cursor:pointer;text-align:left;transition:.12s}
.shp-sal-item:hover{background:var(--shp-inset2)}
.shp-sal-item.on{background:var(--shp-card);border-color:var(--shp-line);box-shadow:var(--shp-ring)}
.shp-sal-ava{width:30px;height:30px;border-radius:10px;display:grid;place-items:center;font-family:var(--shp-mono);font-size:10.5px;font-weight:700;color:#fff;background:linear-gradient(180deg,#34d399,#10b981);border:1px solid #047857;flex:0 0 auto}
.shp-sal-item .n{flex:1;min-width:0}
.shp-sal-item .n b{display:block;font-size:12px;font-weight:650;color:var(--shp-text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.shp-sal-item .n small{display:block;font-size:9.5px;color:var(--shp-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:1px}
.shp-sal-dot{width:7px;height:7px;border-radius:50%;background:var(--shp-muted2);flex:0 0 auto}
.shp-sal-dot.on{background:#10b981;box-shadow:0 0 0 3px rgba(16,185,129,.15)}
.shp-sal-main{display:flex;flex-direction:column;gap:12px;min-width:0}
.shp-sal-prof{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:wrap}
.shp-sal-prof .who{display:flex;gap:12px;align-items:center;min-width:0}
.shp-sal-ava.big{width:44px;height:44px;border-radius:14px;font-size:14px}
.shp-sal-prof h3{font-size:14px!important;font-weight:700!important}
.shp-sal-meta{display:flex;gap:12px;flex-wrap:wrap;font-family:var(--shp-mono);font-size:9px!important;font-weight:600;letter-spacing:.05em;color:var(--shp-muted);margin-top:5px}
.shp-sal-meta .lucide{width:11px;height:11px;vertical-align:-1px;margin-right:3px}
.shp-sal-stats{display:flex;gap:8px;flex-wrap:wrap}
.shp-sal-stat{display:inline-flex;align-items:center;gap:6px;font-family:var(--shp-mono);font-size:9.5px;font-weight:600;border:1px solid var(--shp-line);background:var(--shp-inset);border-radius:9px;padding:5px 9px;color:var(--shp-muted)}
.shp-sal-stat b{color:var(--shp-text);font-variant-numeric:tabular-nums}
.shp-sal-stat .lucide{width:11px;height:11px;color:var(--shp-muted)}
.shp-sal-att label .lucide{width:13px;height:13px;color:var(--shp-muted)}
.shp-sal-form label>.lucide{width:13px;height:13px;margin-right:5px;vertical-align:-2px;color:var(--shp-muted)}
.shp-sal-form{display:grid;gap:12px}
.shp-sal-fgrid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.shp-sal-full{grid-column:1/-1}
.shp-sal-att{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;border:1px solid var(--shp-line);border-radius:12px;background:var(--shp-inset);padding:9px 12px}
.shp-sal-att label{display:inline-flex;align-items:center;gap:7px;font-size:11.5px;font-weight:600;color:var(--shp-text2);cursor:pointer}
.shp-sal-att input{width:15px;height:15px;accent-color:#10b981}
.shp-sal-att .info{font-family:var(--shp-mono);font-size:9px;font-weight:600;color:var(--shp-muted);letter-spacing:.04em}
.shp-sal-adj{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.shp-sal-adj>div{display:grid;gap:5px;border:1px solid var(--shp-line);border-radius:11px;padding:8px 10px;background:var(--shp-card)}
.shp-sal-adj>div>span{font-family:var(--shp-mono);font-size:13px;font-weight:700;justify-self:start}
.shp-sal-adj>div>span.plus{color:#059669}
body.shp-on[data-shp-theme="dark"] .shp-sal-adj>div>span.plus{color:#34d399}
.shp-sal-adj>div>span.minus{color:#e11d48}
body.shp-on[data-shp-theme="dark"] .shp-sal-adj>div>span.minus{color:#fb7185}
.shp-sal-adj>div>label{font-family:var(--shp-mono);font-size:8px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--shp-muted)}
.shp-sal-toggles{display:flex;gap:10px;flex-wrap:wrap}
.shp-sal-toggles label{display:inline-flex;align-items:center;gap:7px;font-size:11.5px;font-weight:600;color:var(--shp-text2);cursor:pointer}
.shp-sal-toggles input{width:15px;height:15px;accent-color:#10b981}
.shp-sal-pv{font-family:var(--shp-mono);font-size:9.5px;font-weight:700;color:var(--shp-primary)}
.shp-sal-sum{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.shp-sal-sum>div{border:1px solid var(--shp-line);border-radius:12px;padding:9px 11px;background:var(--shp-inset);display:grid;gap:3px}
.shp-sal-sum .sl{font-family:var(--shp-mono);font-size:8px;font-weight:700;letter-spacing:.13em;text-transform:uppercase;color:var(--shp-muted)}
.shp-sal-sum .sv{font-family:var(--shp-mono);font-size:15px;font-weight:700;font-variant-numeric:tabular-nums;color:var(--shp-text)}
.shp-sal-sum .sv small{font-size:10px;color:var(--shp-muted)}
.shp-sal-actions{display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap}
.shp-sal-hint{font-family:var(--shp-mono);font-size:8.5px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--shp-muted)}

/* ---------------------------------------------------------------------
   16 · Report + Business AI Health
--------------------------------------------------------------------- */
.shp-rkpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.shp-rkpi{background:var(--shp-card);border-radius:18px;border:1px solid var(--shp-line);padding:13px 14px;display:grid;gap:6px;box-shadow:var(--shp-ring)}
.shp-rkpi small{font-family:var(--shp-mono);font-size:8px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--shp-muted)}
.shp-rkpi strong{font-family:var(--shp-mono);font-size:19px;font-weight:700;font-variant-numeric:tabular-nums;letter-spacing:-.02em;color:var(--shp-text)}
.shp-rkpi p{display:flex;gap:12px;font-family:var(--shp-mono);font-size:9px;font-weight:600;color:var(--shp-muted);flex-wrap:wrap}
.shp-rkpi p b{color:var(--shp-text2)}
.shp-rkpi.profit{border-color:color-mix(in srgb,#10b981 34%,transparent);background:linear-gradient(180deg,color-mix(in srgb,#10b981 7%,var(--shp-card)),var(--shp-card))}
.shp-rkpi.profit.negative{border-color:color-mix(in srgb,#f43f5e 40%,transparent)}
.shp-rkpi.profit small{color:#059669}
body.shp-on[data-shp-theme="dark"] .shp-rkpi.profit small{color:#34d399}
.shp-rkpi.profit.negative small{color:#e11d48}
.shp-rgrid{display:grid;grid-template-columns:1fr 1fr;gap:12px;align-items:start}
.shp-rfilter{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;flex-wrap:wrap}
.shp-rfilter .lbl{font-family:var(--shp-mono);font-size:8.5px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--shp-muted);display:block}
.shp-rfilter b{font-family:var(--shp-mono);font-size:12.5px;font-weight:700;font-variant-numeric:tabular-nums;color:var(--shp-text)}
.shp-rdates{display:flex;align-items:flex-end;gap:8px;flex-wrap:wrap}
.shp-rdates label{display:grid;gap:5px;font-family:var(--shp-mono);font-size:8px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--shp-muted)}
.shp-rdates input{width:150px}
.shp-rdot{display:inline-block;width:8px;height:8px;border-radius:3px;margin-right:7px;vertical-align:0}
.shp-rdot.sales{background:#10b981}.shp-rdot.purchase{background:#f59e0b}.shp-rdot.expense{background:#f43f5e}
.shp-rbar{display:grid;grid-template-columns:86px minmax(0,1fr) auto;align-items:center;gap:10px}
.shp-rbar>span{font-family:var(--shp-mono);font-size:9px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--shp-muted)}
.shp-rbar>div{height:10px;border-radius:999px;background:var(--shp-inset2);border:1px solid var(--shp-line);overflow:hidden}
.shp-rbar>div i{display:block;height:100%;border-radius:999px}
.shp-rbar>b{font-family:var(--shp-mono);font-size:10.5px;font-weight:700;font-variant-numeric:tabular-nums;color:var(--shp-text)}
.shp-rbar i.sales{background:linear-gradient(90deg,#34d399,#059669)}
.shp-rbar i.purchase{background:linear-gradient(90deg,#fbbf24,#d97706)}
.shp-rbar i.expense{background:linear-gradient(90deg,#fb7185,#e11d48)}
.shp-rprofit{font-family:var(--shp-mono);font-size:26px;font-weight:700;font-variant-numeric:tabular-nums;letter-spacing:-.02em;color:var(--shp-text)}
.shp-rprofit.negative{color:#e11d48}
body.shp-on[data-shp-theme="dark"] .shp-rprofit.negative{color:#fb7185}
.shp-rformula{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-family:var(--shp-mono);font-size:9.5px;font-weight:600;color:var(--shp-muted)}
.shp-rformula b{color:var(--shp-text);font-variant-numeric:tabular-nums}
.shp-rcash{display:grid;gap:8px}
.shp-rcash p{display:flex;justify-content:space-between;gap:10px;font-size:11.5px;color:var(--shp-text2)}
.shp-rcash p b{font-family:var(--shp-mono);font-variant-numeric:tabular-nums;color:var(--shp-text)}
.shp-rcash p.total{border-top:1px solid var(--shp-line);padding-top:8px}
/* health */
.shp-health-usage{font-family:var(--shp-mono);font-size:9px;font-weight:600;letter-spacing:.05em;color:var(--shp-muted);border:1px solid var(--shp-line);border-radius:9px;padding:5px 10px;background:var(--shp-inset)}
.shp-health-score{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.shp-score{position:relative;width:88px;height:88px;flex:0 0 auto;border-radius:50%;display:grid;place-items:center;background:conic-gradient(#10b981 calc(var(--pct,0)*1%),var(--shp-inset2) 0)}
.shp-score i{position:absolute;inset:7px;border-radius:50%;background:var(--shp-card);border:1px solid var(--shp-line)}
.shp-score b{position:relative;font-family:var(--shp-mono);font-size:22px;font-weight:700;color:var(--shp-text)}
.shp-score small{position:relative;font-family:var(--shp-mono);font-size:8px;color:var(--shp-muted);margin-top:1px}
.shp-hm{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.shp-hm article{border:1px solid var(--shp-line);border-radius:14px;background:var(--shp-inset);padding:11px 12px;display:grid;gap:3px}
.shp-hm small{font-family:var(--shp-mono);font-size:8px;font-weight:700;letter-spacing:.13em;text-transform:uppercase;color:var(--shp-muted)}
.shp-hm b{font-family:var(--shp-mono);font-size:15px;font-weight:700;font-variant-numeric:tabular-nums;color:var(--shp-text)}
.shp-hm span{font-size:10px;color:var(--shp-muted)}
.shp-hfind{list-style:none;margin:0;padding:0;display:grid;gap:7px}
.shp-hfind li{font-size:11.5px;color:var(--shp-text2);line-height:1.55;padding-left:16px;position:relative}
.shp-hfind li:before{content:'';position:absolute;left:0;top:5px;width:7px;height:7px;border-radius:3px;background:color-mix(in srgb,#f59e0b 60%,transparent)}
.shp-hlead{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.shp-hlead h3{font-size:11px!important;font-weight:700!important}
.shp-hlead ol{list-style:none;margin:6px 0 0;padding:0;display:grid;gap:5px}
.shp-hlead li{display:flex;justify-content:space-between;gap:8px;font-size:11px;color:var(--shp-muted)}
.shp-hlead li b{font-family:var(--shp-mono);font-variant-numeric:tabular-nums;color:var(--shp-text2)}
.shp-hinsight{font-size:12px;line-height:1.65;color:var(--shp-text2);white-space:pre-wrap}

/* ---------------------------------------------------------------------
   17 · Settings (tabs · key/value · activity log)
--------------------------------------------------------------------- */
.shp-kv{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.shp-kv>div{border:1px solid var(--shp-line);border-radius:14px;background:var(--shp-inset);padding:10px 12px;display:grid;gap:4px;min-width:0}
.shp-kv span{font-family:var(--shp-mono);font-size:8px;font-weight:700;letter-spacing:.13em;text-transform:uppercase;color:var(--shp-muted)}
.shp-kv b{font-size:12.5px;font-weight:650;color:var(--shp-text);word-break:break-word}

/* ---------------------------------------------------------------------
   18 · ConnectX
--------------------------------------------------------------------- */
.shp-cx{display:grid;grid-template-columns:230px minmax(0,1fr);gap:12px;align-items:start}
.shp-cx-side{display:grid;gap:8px;position:sticky;top:66px}
/* reset the legacy public-site .brand block (navy fill, 48px padding) */
.shp-cx-side .brand{display:flex;align-items:center;gap:9px;padding:2px 4px 8px;border-bottom:1px solid var(--shp-line);background:transparent!important;color:inherit!important;border-radius:0;box-shadow:none!important}
.shp-cx-side .brand b{display:block;font-size:13px;font-weight:750;color:var(--shp-text)}
.shp-cx-side .brand small{display:block;font-family:var(--shp-mono);font-size:8px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--shp-muted)}
.shp-cx-side .brand .shp-chip-ic{width:30px;height:30px;border-radius:10px;display:grid;place-items:center;color:#fff;background:linear-gradient(180deg,var(--shp-c1),var(--shp-c2));border:1px solid var(--shp-cb);box-shadow:inset 0 .5px 0 rgba(255,255,255,.55),inset 0 2px 5px rgba(255,255,255,.28),inset 0 -.5px 0 rgba(0,0,0,.28)}
.shp-cx-side .brand .shp-chip-ic .lucide{width:15px;height:15px}
.shp-cx-side button.tab{display:flex;flex-direction:column;align-items:flex-start;gap:2px;width:100%;min-height:0;text-align:left;border:1px solid var(--shp-line);border-radius:12px;padding:9px 12px;background:var(--shp-card)!important;color:var(--shp-text2);font-family:var(--shp-font);font-size:12px;font-weight:620;cursor:pointer;transition:.13s;box-shadow:none!important;transform:none}
.shp-cx-side button.tab small{font-family:var(--shp-mono);font-size:8px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--shp-muted)}
.shp-cx-side button.tab:hover{border-color:var(--shp-line-strong)}
.shp-cx-side button.tab.on{border-color:color-mix(in srgb,var(--shp-tone) 38%,transparent);background:color-mix(in srgb,var(--shp-tone) 7%,var(--shp-card));color:var(--shp-text)}
.shp-cx-contact{border:1px dashed var(--shp-line-strong);border-radius:11px;background:var(--shp-inset);padding:9px 12px;font-family:var(--shp-mono);font-size:9.5px;line-height:1.7;color:var(--shp-muted);display:grid;gap:2px;min-height:40px;align-content:center}
.shp-cx-contact b{color:var(--shp-text);font-size:10.5px}
.shp-cx-contact span{display:block}
.shp-cx-torow{display:flex;align-items:flex-end;gap:8px}
.shp-cx-torow label{flex:1}
.shp-cx-ccrow{display:flex;gap:6px}
.shp-cx-email{border:1px solid var(--shp-line);border-radius:14px;background:var(--shp-card);overflow:hidden;display:grid;grid-template-rows:auto 1fr}
.shp-cx-email-head{padding:13px 15px;border-bottom:1px solid var(--shp-line);display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;align-items:center}
.shp-cx-email-head h2{font-size:13px!important;font-weight:700!important}
.shp-cx-email-meta{display:flex;gap:10px;flex-wrap:wrap;font-family:var(--shp-mono);font-size:9px;color:var(--shp-muted);padding:9px 15px;border-bottom:1px solid var(--shp-line);background:var(--shp-inset)}
.shp-cx-email-meta b{color:var(--shp-text2)}
.shp-cx-frame{width:100%;min-height:340px;border:0;background:#fff}
body.shp-on[data-shp-theme="dark"] .shp-cx-frame{background:#fff}

/* ---------------------------------------------------------------------
   19 · Zudo AI chat
--------------------------------------------------------------------- */
.shp-zd{display:grid;grid-template-columns:212px minmax(0,1fr);gap:12px;height:calc(100vh - 150px);min-height:480px}
/* fixed chat rail: brand + New chat stay put, only the conversation list scrolls */
.shp-zd-side{display:flex;flex-direction:column;gap:8px;min-height:0;position:sticky;top:66px;align-self:start;height:calc(100vh - 150px)}
/* reset the legacy public-site .brand block (navy fill, 48px padding) */
.shp-zd-side .brand{display:flex;align-items:center;gap:9px;padding:2px 4px 8px;border-bottom:1px solid var(--shp-line);background:transparent!important;color:inherit!important;border-radius:0;box-shadow:none!important;flex:0 0 auto}
.shp-zd-side .brand b{display:block;font-size:13px;font-weight:750;color:var(--shp-text)}
.shp-zd-side .brand small{display:block;font-family:var(--shp-mono);font-size:8px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--shp-muted)}
.shp-zd-ava{width:30px;height:30px;border-radius:10px;display:grid;place-items:center;color:#fff;background:linear-gradient(180deg,var(--shp-c1),var(--shp-c2));border:1px solid var(--shp-cb);box-shadow:inset 0 .5px 0 rgba(255,255,255,.55),inset 0 2px 5px rgba(255,255,255,.28),inset 0 -.5px 0 rgba(0,0,0,.28);flex:0 0 auto}
.shp-zd-ava .lucide{width:15px;height:15px}
/* minmax(0,1fr) column + min-width:0 rows keep long titles inside the rail
   so the trash button is never pushed out and clipped */
.shp-zd-convs{flex:1;overflow-y:auto;overflow-x:hidden;display:grid;grid-template-columns:minmax(0,1fr);gap:5px;align-content:start;min-height:0;min-width:0;padding-right:2px;scrollbar-width:thin}
.shp-zd-conv{display:flex;align-items:center;gap:6px;border-radius:11px;border:1px solid transparent;transition:.12s;min-width:0;max-width:100%}
.shp-zd-conv:hover{background:var(--shp-inset2)}
.shp-zd-conv.on{background:var(--shp-card);border-color:var(--shp-line);box-shadow:var(--shp-ring)}
.shp-zd-conv>button.t{flex:1 1 auto;min-width:0;text-align:left;border:0;background:transparent!important;color:var(--shp-text2);font-family:var(--shp-font);font-size:11.5px;font-weight:560;padding:8px 4px 8px 11px;min-height:0;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;box-shadow:none!important;transform:none}
.shp-zd-conv.on>button.t{color:var(--shp-text);font-weight:640}
.shp-zd-conv>button.m{flex:0 0 auto;width:26px;height:26px;min-height:0;border-radius:8px;border:1px solid var(--shp-line);background:var(--shp-inset)!important;color:var(--shp-text2)!important;cursor:pointer;display:grid;place-items:center;padding:0;margin-right:5px;transition:.12s;box-shadow:none!important;transform:none}
.shp-zd-side>#zudoNew{flex:0 0 auto}
.shp-zd-conv>button.m .lucide{width:14px;height:14px;display:block}
.shp-zd-conv>button.m:hover{background:color-mix(in srgb,#f43f5e 10%,transparent);color:#e11d48;border-color:color-mix(in srgb,#f43f5e 26%,transparent)}
.shp-zd-menu{position:relative;flex:0 0 auto}
.shp-zd-menu .pop{position:absolute;right:34px;top:2px;z-index:5;background:var(--shp-card);border:1px solid var(--shp-line);border-radius:10px;box-shadow:var(--shp-ring),0 8px 20px rgba(0,0,0,.14);overflow:hidden;min-width:130px}
.shp-zd-menu .pop button{display:block;width:100%;text-align:left;border:0;background:transparent;color:#e11d48;font-family:var(--shp-font);font-size:11px;font-weight:620;padding:8px 11px;cursor:pointer}
.shp-zd-menu .pop button:hover{background:color-mix(in srgb,#f43f5e 9%,transparent)}
.shp-zd-main{display:flex;flex-direction:column;min-width:0;min-height:0;gap:10px}
.shp-zd-head{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.shp-zd-head h2{font-size:14px!important;font-weight:700!important}
.shp-zd-head .sub{display:block;font-family:var(--shp-mono);font-size:8.5px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--shp-muted);margin-top:3px}
.shp-zd-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.shp-zd-usage{font-family:var(--shp-mono);font-size:9px;font-weight:600;color:var(--shp-muted);border:1px solid var(--shp-line);border-radius:9px;padding:5px 9px;background:var(--shp-inset)}
.shp-zd-usage.limitReached{color:#e11d48;border-color:color-mix(in srgb,#f43f5e 34%,transparent)}
body.shp-on[data-shp-theme="dark"] .shp-zd-usage.limitReached{color:#fb7185}
.shp-zd-msgs{flex:1;min-height:0;overflow:auto;display:flex;flex-direction:column;gap:12px;padding:4px 2px;scrollbar-width:thin}
.shp-zd-welcome{margin:auto;display:flex;flex-direction:column;align-items:center;gap:12px;text-align:center;padding:26px 16px;max-width:430px}
.shp-zd-welcome b{font-size:15px;font-weight:700;color:var(--shp-text)}
.shp-zd-welcome p{font-size:11.5px;color:var(--shp-muted);line-height:1.6}
.shp-zd-welcome .shp-chips{justify-content:center}
.shp-zd-msg{display:flex;flex-direction:column;gap:5px;max-width:78%}
.shp-zd-msg.me{align-self:flex-end;align-items:flex-end}
.shp-zd-msg span{font-family:var(--shp-mono);font-size:8px;font-weight:700;letter-spacing:.13em;text-transform:uppercase;color:var(--shp-muted2)}
.shp-zd-msg>div{border-radius:14px;padding:10px 13px;font-size:12.5px;line-height:1.6;color:var(--shp-text2);background:var(--shp-inset);border:1px solid var(--shp-line);overflow-wrap:anywhere}
.shp-zd-msg.me>div{background:linear-gradient(180deg,#34d399,#10b981);border-color:#047857;color:#fff}
.shp-zd-msg .aimd{margin:4px 0 0;padding-left:16px;display:grid;gap:4px}
.shp-zd-msg .aimd li{font-size:12px;line-height:1.55}
.shp-zd-composer{display:flex;gap:8px;align-items:flex-end}
.shp-zd-composer textarea{flex:1;min-height:44px;max-height:140px;resize:none}
.shp-zd-thinking{display:flex;align-items:center;gap:9px}

/* ---------------------------------------------------------------------
   20 · Vaultium
--------------------------------------------------------------------- */
.shp-vault-bar{height:10px;border-radius:999px;border:1px solid var(--shp-line);background:var(--shp-inset2);overflow:hidden}
.shp-vault-bar i{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#e879f9,#d946ef);box-shadow:inset 0 .5px 0 rgba(255,255,255,.4)}
.shp-vp{display:grid;place-items:center;background:var(--shp-inset);border:1px solid var(--shp-line);border-radius:14px;padding:12px;min-height:220px}
.shp-vp img{max-width:100%;max-height:60vh;border-radius:10px;box-shadow:var(--shp-ring)}

/* ---------------------------------------------------------------------
   24 · UI FIX PACK — compact checkboxes · due modal · salary bento
        · compact icon buttons · file viewer · vaultium list
--------------------------------------------------------------------- */

/* The generic input rule (width:100% !important) used to inflate every
   checkbox to the full panel width, which hid staff names and made the
   attendance rows ~90px tall. Bento checkboxes are fixed-size tiles. */
body.shp-on .shp input[type=checkbox],
body.shp-on .shp-modalbox input[type=checkbox]{
  -webkit-appearance:none;appearance:none;
  width:16px!important;height:16px!important;min-width:16px;flex:0 0 auto;
  margin:0;padding:0!important;border:1px solid var(--shp-line-strong)!important;
  border-radius:5px!important;background:var(--shp-inset2)!important;
  box-shadow:none!important;cursor:pointer;display:inline-grid;place-content:center;
  transition:background .13s,border-color .13s;
}
body.shp-on .shp input[type=checkbox]:checked,
body.shp-on .shp-modalbox input[type=checkbox]:checked{
  background:#10b981!important;border-color:#047857!important;
  background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")!important;
  background-size:11px;background-repeat:no-repeat;background-position:center;
}
body.shp-on .shp input[type=checkbox]:indeterminate{
  background:#10b981!important;border-color:#047857!important;
  background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' stroke='%23fff' stroke-width='4' stroke-linecap='round'%3E%3Cpath d='M5 12h14'/%3E%3C/svg%3E")!important;
  background-size:10px;background-repeat:no-repeat;background-position:center;
}
/* full-area invisible hit-zones (permission pills, attendance switch)
   must keep covering their track instead of becoming tiles */
body.shp-on .shp-perm-pill input,
body.shp-on .shp-modalbox .shp-perm-pill input,
body.shp-on .shp-att-slide input,
body.shp-on .shp-modalbox .shp-att-slide input{
  position:absolute;inset:0;width:100%!important;height:100%!important;min-width:0;
  opacity:0;border:0!important;background:transparent!important;box-shadow:none!important;border-radius:0!important;
}
.shp-att-slide{position:relative}

/* attendance staff rows — compact single-line items */
.shp-att-list{max-height:300px;gap:5px}
.shp-att-item{padding:7px 10px;gap:10px;border-radius:11px}
.shp-att-item .n{min-width:0}
.shp-att-item b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.shp-att-bulk{padding:0 2px 4px;font-size:11.5px}

/* compact square icon button used in tables (view / download / delete) */
.shp-rowacts{display:inline-flex;gap:6px;align-items:center}
.shp-icobtn{
  width:30px;height:30px;flex:0 0 auto;border-radius:9px;display:inline-grid;place-items:center;
  padding:0;border:1px solid var(--shp-line);background:var(--shp-inset2);color:var(--shp-text2);
  cursor:pointer;transition:.13s;box-shadow:none;
}
.shp-icobtn:hover{border-color:var(--shp-line-strong);color:var(--shp-text);background:var(--shp-card);transform:translateY(-1px)}
.shp-icobtn.shp-danger{color:#e11d48;border-color:color-mix(in srgb,#f43f5e 26%,transparent);background:color-mix(in srgb,#f43f5e 8%,transparent)}
.shp-icobtn.shp-danger:hover{background:linear-gradient(180deg,#fb7185,#e11d48);color:#fff;border-color:#be123c}
.shp-icobtn.dl:hover{color:#059669;border-color:color-mix(in srgb,#10b981 40%,transparent);background:color-mix(in srgb,#10b981 10%,transparent)}
body.shp-on[data-shp-theme="dark"] .shp-icobtn.shp-danger{color:#fb7185}
body.shp-on[data-shp-theme="dark"] .shp-icobtn.shp-danger:hover{color:#fff}
body.shp-on[data-shp-theme="dark"] .shp-icobtn.dl:hover{color:#34d399}
.shp-icobtn .lucide{width:14px;height:14px;display:block}

/* due recovery modal — stop the two panels overlapping */
.shp-due{grid-template-columns:minmax(0,.86fr) minmax(0,1.14fr);gap:14px}
.shp-due>*{min-width:0}
.shp-due-left>*{min-width:0}
#modalRecoverForm{min-width:0;position:sticky;top:0;align-self:start}
.shp-due-left .shp-tw{max-height:calc(88vh - 250px)}
.shp-due-left .shp-toolbar .shp-search{flex:1;min-width:0;width:auto}

/* salary workspace — bento rail + cards */
.shp-sal{grid-template-columns:284px minmax(0,1fr);gap:14px}
.shp-sal-side{
  display:flex;flex-direction:column;gap:10px;position:sticky;top:78px;
  max-height:calc(100vh - 100px);padding:13px;border-radius:20px;
  background:var(--shp-card);border:1px solid var(--shp-line);box-shadow:var(--shp-ring);overflow:hidden;
}
.shp-sal-side .shp-panel-head{padding:0 2px}
.shp-sal-side .shp-panel-head h3{font-size:12.5px!important}
.shp-sal-side .shp-search{max-width:none}
.shp-sal-list{flex:1;min-height:0;max-height:none;gap:4px;padding-right:2px}
.shp-sal-item{border-radius:11px;padding:7px 9px;gap:9px;border:1px solid transparent}
.shp-sal-item:hover{background:var(--shp-inset2)}
.shp-sal-item.on{background:var(--shp-inset);border-color:var(--shp-line);box-shadow:var(--shp-ring)}
.shp-sal-item .n b{font-size:12px}
.shp-sal-item .n small{font-size:9px}
.shp-sal-prof{
  align-items:center;gap:14px;padding:15px 17px;border-radius:20px;
  background:var(--shp-card);border:1px solid var(--shp-line);box-shadow:var(--shp-ring);
}
.shp-sal-prof h3{font-size:15px!important}
.shp-sal-meta{gap:7px;margin-top:7px}
.shp-sal-meta span{
  display:inline-flex;align-items:center;gap:5px;border:1px solid var(--shp-line);
  background:var(--shp-inset);border-radius:8px;padding:4px 9px;
}
.shp-sal-main{gap:14px}
.shp-sal-main .shp-kpi:hover{transform:translateY(-2px);border-color:var(--shp-line-strong);box-shadow:var(--shp-ring),0 10px 22px -12px color-mix(in srgb,var(--shp-text) 25%,transparent)}
.shp-sal-adj>div{background:var(--shp-inset);border-radius:12px;padding:9px 10px;gap:6px}
.shp-sal-adj>div input{background:var(--shp-card)!important}
.shp-sal-att{border-radius:13px;padding:10px 12px;gap:9px}
.shp-sal-toggles label{
  display:inline-flex;align-items:center;gap:8px;border:1px solid var(--shp-line);
  background:var(--shp-inset);border-radius:10px;padding:8px 11px;font-size:11.5px;cursor:pointer;
}
.shp-sal-sum>div{background:var(--shp-inset);border-radius:12px;padding:10px 11px;gap:4px}
.shp-sal-form{gap:13px}

/* vaultium file list */
.shp-filecell{display:flex;align-items:center;gap:9px;min-width:0}
.shp-filecell .shp-chipic{flex:0 0 auto}
.shp-filemeta{min-width:0;display:flex;flex-direction:column;gap:1px}
.shp-fname{font-size:12px;font-weight:620;color:var(--shp-text);line-height:1.4;white-space:normal;word-break:break-word}
.shp-filemeta small{font-family:var(--shp-mono);font-size:8px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--shp-muted2)}
.shp-vbar{margin-bottom:2px}

/* inline file viewer modal (images · pdf · text · docx · xlsx) */
.fv-body{
  min-height:240px;max-height:calc(88vh - 196px);overflow:auto;border:1px solid var(--shp-line);
  border-radius:14px;background:var(--shp-inset);display:flex;flex-direction:column;
}
.fv-body.is-loading{align-items:center;justify-content:center;gap:12px}
.fv-imgbox{
  display:grid;place-items:center;min-height:240px;padding:18px;flex:1;
  background:repeating-conic-gradient(color-mix(in srgb,var(--shp-text) 7%,transparent) 0% 25%,var(--shp-card) 0% 50%) 50%/22px 22px;
}
.fv-imgbox img{max-width:100%;max-height:calc(88vh - 280px);display:block;border-radius:10px;box-shadow:0 12px 30px rgba(0,0,0,.25)}
.fv-pdf{width:100%;flex:1;min-height:380px;height:calc(88vh - 230px);border:0;background:#fff}
.fv-pre{
  margin:0;padding:16px;min-height:240px;font-family:var(--shp-mono);font-size:11.5px;line-height:1.7;
  white-space:pre-wrap;word-break:break-word;color:var(--shp-text);background:var(--shp-card);
}
.fv-doc{padding:24px 26px;min-height:240px;background:#fff;color:#18181b;font-size:12.5px;line-height:1.65;border-radius:13px}
.fv-doc h1,.fv-doc h2,.fv-doc h3{color:#18181b!important;font-family:var(--shp-font)!important;margin:14px 0 7px}
.fv-doc img{max-width:100%}
.fv-doc table{border-collapse:collapse;width:100%}
.fv-doc td,.fv-doc th{border:1px solid #e4e4e7!important;padding:5px 9px!important}
.fv-sheet{padding:14px;min-height:240px;background:#fff;border-radius:13px;overflow:auto}
.fv-sheet>b{display:block;font-size:12px;color:#52525b;margin-bottom:9px;font-family:var(--shp-mono);letter-spacing:.04em}
.fv-sheet table{border-collapse:collapse;font-size:11.5px}
.fv-sheet td,.fv-sheet th{border:1px solid #e4e4e7!important;padding:5px 10px!important;white-space:nowrap;color:#18181b!important;background:transparent!important;font-family:var(--shp-font)!important;font-size:11.5px!important;letter-spacing:0!important;text-transform:none!important;font-weight:400!important}
.fv-fallback{display:grid;place-items:center;align-content:center;gap:9px;padding:54px 22px;text-align:center;flex:1}
.fv-fallback .fv-ico{
  width:60px;height:60px;border-radius:16px;display:grid;place-items:center;
  border:1px dashed var(--shp-line-strong);background:var(--shp-card);color:var(--shp-muted);
}
.fv-fallback .fv-ico .lucide{width:26px;height:26px}
.fv-fallback p{margin:0;font-size:12px;line-height:1.65;color:var(--shp-text2)}
.fv-fallback p b{color:var(--shp-text);word-break:break-all}
.fv-actions{display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap}
.shp-modalhead h2{overflow-wrap:anywhere}

/* entrance animation */
@media(prefers-reduced-motion:no-preference){
  .shp-sal-side{animation:shpRise .5s cubic-bezier(.22,1,.36,1) backwards}
  .shp-sal-main>*{animation:shpRise .5s cubic-bezier(.22,1,.36,1) backwards}
  .shp-sal-main>*:nth-child(2){animation-delay:.05s}
  .shp-sal-main>*:nth-child(3){animation-delay:.1s}
  .shp-sal-main>*:nth-child(4){animation-delay:.15s}
  .shp-sal-main>*:nth-child(5){animation-delay:.2s}
  .shp-sal-item{animation:shpFade .35s ease-out backwards}
  .shp-sal-item:nth-child(2){animation-delay:.04s}
  .shp-sal-item:nth-child(3){animation-delay:.08s}
  .shp-sal-item:nth-child(4){animation-delay:.12s}
  .shp-sal-item:nth-child(5){animation-delay:.16s}
  .shp-att-item{animation:shpFade .3s ease-out backwards}
  .shp-att-item:nth-child(2){animation-delay:.03s}
  .shp-att-item:nth-child(3){animation-delay:.06s}
  .shp-att-item:nth-child(4){animation-delay:.09s}
  .shp-att-item:nth-child(5){animation-delay:.12s}
  .shp-att-item:nth-child(6){animation-delay:.15s}
  .fv-body{animation:shpFade .25s ease-out backwards}
}
@media(max-width:1120px){
  #modalRecoverForm{position:static}
  .shp-due-left .shp-tw{max-height:340px}
}
@media(max-width:960px){
  .shp-sal-side{position:static;max-height:none}
  .shp-sal-list{max-height:260px}
}


/* ---------------------------------------------------------------------
   22 · Print (report summary)
--------------------------------------------------------------------- */
@media print{
  html body .shp-side,html body .shp-top,html body .shp-rtabs,html body .shp-rfilter,html body #reportPrint,html body .shp-chips{display:none!important}
  html body .shp,html body .shp-main,html body .shp-page{display:block!important;margin:0!important;padding:0!important;background:#fff!important}
  html body .shp-pagegap{gap:10px}
  html body .shp-card,html body .shp-panel,html body .shp-rkpi{box-shadow:none!important;border:1px solid #bbb!important;break-inside:avoid;background:#fff!important}
  html body .shp-rkpi strong,html body .shp-rprofit{color:#111!important}
  html body .shp-kicker,html body .shp-sub,html body .shp-desc{color:#555!important}
}

/* ---------------------------------------------------------------------
   23 · Comprehensive Responsive (Mobile & Tablet Layouts)
--------------------------------------------------------------------- */

/* ── 1. Small Desktops & Landscape Tablets (<= 1120px) ── */
@media(max-width:1120px){
  .shp-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
  .shp-rkpis{grid-template-columns:repeat(2,minmax(0,1fr))}
  .shp-fchart{grid-template-columns:repeat(2,minmax(0,1fr))}
  .shp-sal{grid-template-columns:240px minmax(0,1fr)}
  .shp-due{grid-template-columns:1fr}
  .shp-due-right{position:static}
}

/* ── 2. Standard Tablets Landscape (<= 1024px) ── */
@media(max-width:1024px){
  .shp-picker-sel{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px}
  .shp-picker-sel>label:first-child{grid-column:1/-1}
  .shp-picker-add{grid-column:1/-1}
  .shp-picker-add .shp-btn{width:100%}
  .shp-sumgrid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  .shp-rep-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}
}

/* ── 3. Tablets Portrait & Mobile Drawer Shell (<= 960px) ── */
@media(max-width:960px){
  .shp{grid-template-columns:1fr}
  /* Left-to-right half-screen navigation drawer */
  .shp .appBurger{display:inline-flex!important}
  .shp-side{
    position:fixed;left:0;top:0;bottom:0;
    height:100dvh;width:min(320px,84vw);min-width:260px;max-width:360px;
    z-index:100;
    transform:translateX(-104%);transition:transform .32s cubic-bezier(.32,.72,0,1);
    border-right:1px solid var(--shp-line);box-shadow:0 0 0 transparent;
    padding-top:max(16px,env(safe-area-inset-top));padding-bottom:max(16px,env(safe-area-inset-bottom));
    will-change:transform;
  }
  body.drawer-open .shp-side{transform:translateX(0);box-shadow:0 24px 60px rgba(0,0,0,.38)}
  .shp-nav{flex-direction:column}
  .shp-navgroup>p{display:block}
  .shp-nav button{width:100%;padding:9px 10px}
  .shp-navicon{width:25px;height:25px}
  .shp-sidefoot{padding-top:10px;border-top:1px solid var(--shp-line)}
  .shp-sidefoot .shp-btn{width:100%}
  .shp-top{padding:0 14px;height:52px}
  .shp-page{padding:16px 14px 80px}

  /* Dashboard: stack 2-column layout to full width on tablets */
  .shp-dash2{grid-template-columns:1fr}
  .shp-dash2 > .shp-panel,
  .shp-panel-fchart,
  .shp-panel-activity{
    height:310px;
    max-height:310px;
  }

  /* Zudo AI: sleek horizontal conversation rail & full-height chat */
  .shp-zd{grid-template-columns:1fr;height:auto;gap:10px}
  .shp-zd-side{
    position:static;height:auto;
    display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;
    gap:8px;background:var(--shp-card);border:1px solid var(--shp-line);border-radius:14px;padding:9px 12px;
  }
  .shp-zd-side .brand{border-bottom:0;padding:0;flex:0 0 auto}
  .shp-zd-side #zudoNew{flex:0 0 auto}
  .shp-zd-convs{
    order:3;flex:1 1 100%;width:100%;
    display:flex!important;flex-direction:row!important;gap:6px!important;
    overflow-x:auto!important;-webkit-overflow-scrolling:touch!important;scrollbar-width:none!important;
    padding:3px 1px 4px!important;min-height:0;
  }
  .shp-zd-convs::-webkit-scrollbar{display:none}
  .shp-zd-conv{flex:0 0 auto!important;max-width:180px!important;min-width:120px!important;border:1px solid var(--shp-line)!important;background:var(--shp-inset)!important}
  .shp-zd-conv.on{border-color:var(--shp-primary)!important;background:var(--shp-card)!important}
  .shp-zd-conv>button.t{font-size:11px;padding:6px 4px 6px 9px}
  .shp-zd-msgs{height:calc(100dvh - 280px);min-height:340px;max-height:64vh}
  .shp-zd-msg{max-width:88%}

  /* ConnectX: horizontal tab strip & responsive sender */
  .shp-cx{grid-template-columns:1fr;gap:12px}
  .shp-cx-side{
    position:static;display:flex;flex-wrap:wrap;align-items:center;
    gap:8px;background:var(--shp-card);border:1px solid var(--shp-line);border-radius:14px;padding:10px 12px;
  }
  .shp-cx-side .brand{border-bottom:0;padding:0;flex:0 0 auto}
  .shp-cx-side button.tab{
    flex:1 1 130px;width:auto;flex-direction:row;align-items:center;justify-content:center;
    gap:7px;padding:8px 12px;text-align:center;
  }
  .shp-cx-torow{display:flex;flex-direction:column;align-items:stretch;gap:8px}
  .shp-cx-ccrow{display:flex;gap:6px;justify-content:flex-end}

  /* Salary page */
  .shp-sal{grid-template-columns:1fr}
  .shp-sal-side{position:static;max-height:none}
  .shp-sal-list{max-height:240px;grid-auto-flow:column;grid-auto-columns:minmax(180px,1fr);overflow-x:auto;display:grid}
  .shp-att{grid-template-columns:1fr}

  /* Reports Bento Grid on Tablet */
  .shp-rep-bento{grid-template-columns:1fr}
}

/* ── 4. Small Tablets & Phablets (<= 768px) ── */
@media(max-width:768px){
  .shp-rep-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
  .shp-rep-barrow{grid-template-columns:76px 1fr auto auto;gap:8px}
  .shp-due-grid{grid-template-columns:1fr}
}

/* ── 5. Standard Mobile Phones (<= 640px) ── */
@media(max-width:640px){
  .shp-top{padding:0 10px;height:50px;gap:8px}
  .shp-topactions{gap:4px}
  .shp-iconbtn{width:30px;height:30px}
  .shp-iconbtn .lucide{width:14px;height:14px}
  .shp-toppage b{font-size:12.5px}
  .shp-toppage span{font-size:7.5px}
  .shp-page{padding:12px 10px 88px;gap:10px}

  /* Panels and cards */
  .shp-card,.shp-panel{padding:12px 13px;border-radius:16px;gap:10px}
  .shp-panel-head{gap:8px}

  /* Dashboards */
  .shp-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .shp-rkpis{grid-template-columns:1fr;gap:8px}
  .shp-fchart{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .shp-rgrid{grid-template-columns:1fr}
  .shp-kv{grid-template-columns:1fr}
  .shp-hm{grid-template-columns:1fr 1fr}
  .shp-hlead{grid-template-columns:1fr}

  /* Modals: bottom-sheet feel on mobile, max width & usable padding */
  .shp-modal{
    padding:max(8px,env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left))!important;
    align-items:flex-end;
  }
  .shp-modalbox{
    width:100%!important;max-height:93vh!important;
    border-radius:18px 18px 14px 14px!important;
  }
  .shp-modalhead{padding:12px 14px!important}
  .shp-modalbody{padding:12px 14px!important;gap:10px!important}

  /* Tables: momentum smooth scrolling */
  .shp-tw,.tablewrap{
    -webkit-overflow-scrolling:touch!important;
    max-width:100%!important;
    width:100%!important;
  }
  body.shp-on .shp td,body.shp-on .shp-modalbox td{padding:8px 9px!important;font-size:11.5px!important}
  body.shp-on .shp th,body.shp-on .shp-modalbox th{padding:8px 9px!important;font-size:8px!important}

  /* Toolbars, chips, search */
  .shp-toolbar{flex-direction:column;align-items:stretch;gap:8px}
  .shp-toolbar .shp-search{width:100%;max-width:100%;min-width:0}
  .shp-chips{display:flex;gap:6px;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none;padding-bottom:2px}
  .shp-chips::-webkit-scrollbar{display:none}

  /* Head actions & buttons */
  .shp-head{flex-direction:column;gap:10px}
  .shp-head-actions{width:100%;display:flex;flex-wrap:wrap;gap:8px;margin-bottom:6px}
  .shp-head-actions .shp-btn{flex:1 1 auto;justify-content:center}
  .shp-ret-head-btns{display:flex!important;width:100%!important;gap:8px}
  .shp-ret-head-btns .shp-btn{flex:1 1 auto;justify-content:center}

  /* Forms & Invoice Builder */
  .shp-grid2{grid-template-columns:1fr!important;gap:8px}
  .shp-party-ro{grid-template-columns:1fr!important;gap:8px}
  .shp-party-clear{width:100%}
  .shp-sumgrid{grid-template-columns:1fr 1fr!important;gap:8px}
  .shp-iv-addrow{justify-content:stretch}
  .shp-iv-addrow .shp-btn{width:100%}
  .shp-iv-actions{display:flex;flex-wrap:wrap;gap:8px;width:100%}
  .shp-iv-actions .shp-btn{flex:1 1 auto;justify-content:center}

  /* Item Picker */
  .shp-picker-cats{display:flex!important;flex-wrap:nowrap!important;overflow-x:auto!important;-webkit-overflow-scrolling:touch!important;scrollbar-width:none!important}
  .shp-picker-sel{grid-template-columns:1fr 1fr!important;gap:8px}
  .shp-picker-sel>label:first-child{grid-column:1/-1}
  .shp-picker-add{grid-column:1/-1}
  .shp-picker-add .shp-btn{width:100%}

  /* Zudo AI */
  .shp-zd-side .brand{width:100%;padding-bottom:6px;border-bottom:1px solid var(--shp-line)}
  .shp-zd-msgs{height:calc(100dvh - 300px);min-height:300px;max-height:60vh}
  .shp-zd-msg{max-width:94%}
  .shp-zd-welcome{padding:16px 8px;gap:10px}
  .shp-chip.zudoPrompt{white-space:normal;text-align:left;max-width:100%;line-height:1.35;padding:7px 11px}
  .shp-zd-composer{gap:6px}
  .shp-zd-composer textarea{min-height:42px;max-height:100px}

  /* ConnectX */
  .shp-cx-side .brand{width:100%;padding-bottom:6px;border-bottom:1px solid var(--shp-line)}
  .shp-cx-side button.tab{flex:1 1 calc(50% - 6px)}
  #cxSend{width:100%;min-height:42px}

  /* Vaultium */
  #vaultSearch{width:100%;max-width:100%}
  .shp-fname{max-width:150px}
  .fv-actions button{flex:1 1 auto}

  /* Sales Return & Exchange Forms */
  .shp-ret-row-head{
    grid-template-columns:28px 1fr!important;
    gap:8px;padding:10px 12px;
  }
  .shp-ret-row-head > div:last-child{
    grid-column:2;
    text-align:left!important;
    display:flex;align-items:center;gap:6px;
    margin-top:2px;
  }
  .shp-ret-row-head > div:last-child br{display:none}
  .shp-ret-row-fields{
    grid-template-columns:1fr!important;
    gap:8px;padding:10px 12px;
  }
  .shp-ret-summary-box{padding:12px;margin:12px 0}
  .shp-exc-calc-box{padding:10px;margin:10px 0}
  .shp-exc-section{padding:10px;margin-bottom:12px}

  /* Reports page */
  .shp-rdates{flex-direction:column;align-items:stretch;width:100%}
  .shp-rdates input{width:100%}
  .shp-rfilter{flex-direction:column;align-items:stretch;gap:10px}

  /* Salary page */
  .shp-sal-fgrid{grid-template-columns:1fr}
  .shp-sal-adj{grid-template-columns:1fr 1fr}
  .shp-sal-sum{grid-template-columns:1fr 1fr}
  .shp-att-item .shp-att-list{max-height:240px}
}

/* ── 6. Compact Mobile Phones (<= 480px) ── */
@media(max-width:480px){
  .shp-kpis{grid-template-columns:1fr}
  .shp-rep-kpis{grid-template-columns:1fr}
  .shp-hm{grid-template-columns:1fr}
  .shp-store-user b{max-width:140px}
  .shp-toppage span{display:none}
  .shp-ret-summary-row{font-size:12px}
  .shp-ret-summary-row.total{font-size:14px}
  .shp-big-amt{font-size:22px!important}
  .shp-sal-sum{grid-template-columns:1fr}
}

/* ── 7. Extra Small Mobile Phones (<= 380px) ── */
@media(max-width:380px){
  .shp-sumgrid{grid-template-columns:1fr!important}
  .shp-picker-sel{grid-template-columns:1fr!important}
  .shp-fchart{grid-template-columns:1fr}
}

/* store chip under the brand (sidebar) */
.shp-store{border:1px solid var(--shp-line);border-radius:12px;background:var(--shp-card);padding:8px 11px;display:grid;gap:3px;flex:0 0 auto}
.shp-store-user{display:flex;align-items:center;gap:8px;margin-top:6px;padding-top:7px;border-top:1px solid var(--shp-line);min-width:0}
.shp-store-user i{width:24px;height:24px;border-radius:8px;display:grid;place-items:center;font-family:var(--shp-mono);font-style:normal;font-size:11px;font-weight:700;color:#fff;background:linear-gradient(180deg,#34d399,#10b981);border:1px solid #047857;flex:0 0 auto}
.shp-store-user b{font-size:12px;font-weight:650;color:var(--shp-text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.shp-store .shp-kicker{font-size:7.5px;letter-spacing:.16em}
.shp-store b{font-size:12px;font-weight:680;color:var(--shp-text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* due-row tint in invoice tables */
body.shp-on .shp-tw tr.shp-rowdue td{border-bottom-color:color-mix(in srgb,#f59e0b 22%,transparent)!important}
body.shp-on .shp-tw tr.shp-rowdue:hover,body.shp-on .shp-tw tr.shp-rowdue:hover td{background:color-mix(in srgb,#f59e0b 9%,transparent)!important}

/* ── salary form field variant (invoice type / month pickers) ── */
body.shp-on .shp-sal-field{display:grid;gap:6px;font-size:11.5px;font-weight:600;color:var(--shp-text2)}
body.shp-on .shp-sal-field select,body.shp-on .shp-sal-field input{font-size:13px;font-weight:500}

/* ── attendance slide row wrapper ── */
body.shp-on .shp-att-slide-row{margin:2px 0 4px}

/* ── read-only / license notice ── */
body.shp-on .shp-modal.shp-notice .shp-modalbox{border-color:var(--shp-amber-6)}

/* ── generic hidden helper (scoped) ── */
body.shp-on .hidden,body.shp-on [hidden]{display:none!important}

/* ── overflow menu danger item ── */
body.shp-on .shp-zd-menu .pop .danger{color:var(--shp-rose-6);font-weight:600}
body.shp-on .shp-zd-menu .pop .danger:hover{background:color-mix(in srgb,var(--shp-rose-5) 14%,transparent)}
body.shp-on .shp-zd-menu .pop .danger:disabled{opacity:.45;cursor:not-allowed}

/* ── zudo message roles ── */
body.shp-on .shp-zd-msg.assistant span{color:var(--shp-emerald-6)}
body.shp-on .shp-zd-msg.assistant > div{background:var(--shp-card);border:1px solid var(--shp-line)}
body.shp-on .shp-zd-msg.thinking > div{min-width:90px}
[data-shp-theme="dark"] .shp-zd-msg.assistant > div{background:color-mix(in srgb,var(--shp-neutral-8) 82%,transparent)}

/* ── Skeleton tokens (shared skeleton system lives in app.css) ── */
body.shp-on{--sk-base:color-mix(in srgb,var(--shp-text) 9%,transparent);--sk-card:var(--shp-card);--sk-inset:var(--shp-inset);--sk-line:var(--shp-line);--sk-ring:var(--shp-ring);--sk-track:color-mix(in srgb,var(--shp-text) 6%,transparent);--sk-sheen:rgba(255,255,255,.6)}
body.shp-on[data-shp-theme="dark"]{--sk-base:color-mix(in srgb,var(--shp-text) 11%,transparent);--sk-sheen:rgba(255,255,255,.07)}

/* ── Dashboard motion — staggered entrances, chart draw-on, KPI count-up
   (the count-up itself is JS in dashboard()). Everything is scoped to the
   dashboard marker classes and disabled under reduced motion. ── */
@media(prefers-reduced-motion:no-preference){
  body.shp-on .shp-anim-kpis .shp-kpi{animation:shpRise .55s cubic-bezier(.22,1,.36,1) backwards;transition:transform .18s ease,box-shadow .18s ease}
  body.shp-on .shp-anim-kpis .shp-kpi:nth-child(2){animation-delay:.06s}
  body.shp-on .shp-anim-kpis .shp-kpi:nth-child(3){animation-delay:.12s}
  body.shp-on .shp-anim-kpis .shp-kpi:nth-child(4){animation-delay:.18s}
  body.shp-on .shp-anim-kpis .shp-kpi:hover{transform:translateY(-2px);border-color:var(--shp-line-strong);box-shadow:var(--shp-ring),0 10px 22px -12px color-mix(in srgb,var(--shp-text) 25%,transparent)}
  body.shp-on .shp-anim-panels>.shp-panel:hover{border-color:var(--shp-line-strong)}
  body.shp-on .shp-fbar{transition:transform .16s ease}
  body.shp-on .shp-fbar:hover{transform:translateY(-1px)}
  body.shp-on .shp-fbar:hover .shp-fbar-track i{filter:brightness(1.07)}
  body.shp-on .shp-live i{animation:shpBlink 1.8s ease-in-out infinite}
  body.shp-on .shp-anim-panels>.shp-panel{animation:shpRise .55s cubic-bezier(.22,1,.36,1) .22s backwards}
  body.shp-on .shp-rise{animation:shpRise .55s cubic-bezier(.22,1,.36,1) .34s backwards}
  body.shp-on .shp-fbar-track i{transform-origin:center bottom;animation:shpGrow .8s cubic-bezier(.22,1,.36,1) .35s backwards}
  body.shp-on .shp-fchart .shp-fbar:nth-child(2) .shp-fbar-track i{animation-delay:.43s}
  body.shp-on .shp-fchart .shp-fbar:nth-child(3) .shp-fbar-track i{animation-delay:.51s}
  body.shp-on .shp-fchart .shp-fbar:nth-child(4) .shp-fbar-track i{animation-delay:.59s}
  body.shp-on .shp-fbar b,body.shp-on .shp-fbar small{animation:shpFade .5s ease-out .55s backwards}
  body.shp-on .shp-anim-rows tbody tr{animation:shpFade .45s ease-out .25s backwards}
  body.shp-on .shp-anim-rows tbody tr:nth-child(2){animation-delay:.3s}
  body.shp-on .shp-anim-rows tbody tr:nth-child(3){animation-delay:.35s}
  body.shp-on .shp-anim-rows tbody tr:nth-child(4){animation-delay:.4s}
  body.shp-on .shp-anim-rows tbody tr:nth-child(5){animation-delay:.45s}
  body.shp-on .shp-anim-rows tbody tr:nth-child(6){animation-delay:.5s}
  body.shp-on .shp-anim-rows tbody tr:nth-child(7){animation-delay:.55s}
  body.shp-on .shp-anim-rows tbody tr:nth-child(8){animation-delay:.6s}
  body.shp-on .shp-trend .shp-tline{stroke-dasharray:1;stroke-dashoffset:1;animation:shpDraw 1.1s ease-out .45s forwards}
  body.shp-on .shp-trend .shp-tline-prev{animation:shpFade .7s ease-out .9s backwards}
  body.shp-on .shp-trend .shp-tarea,body.shp-on .shp-trend .shp-tarea-prev{animation:shpFade .9s ease-out .95s backwards}
  body.shp-on .shp-trend .shp-tdot,body.shp-on .shp-trend .shp-tdot-prev{transform-box:fill-box;transform-origin:center;animation:shpPop .4s cubic-bezier(.34,1.56,.64,1) 1.05s backwards}
}
@keyframes shpRise{from{opacity:0;transform:translateY(10px)}}
@keyframes shpGrow{from{transform:scaleY(0)}}
@keyframes shpFade{from{opacity:0}}
@keyframes shpDraw{to{stroke-dashoffset:0}}
@keyframes shpPop{from{opacity:0;transform:scale(0)}}
.shp-live{display:inline-flex;align-items:center;gap:5px}
.shp-live i{width:5px;height:5px;border-radius:50%;background:currentColor;flex:0 0 auto}
@keyframes shpBlink{0%,100%{opacity:1}50%{opacity:.25}}

/* ───────────────────── Row attachment folder buttons + attachments modal ───────────────────── */
.shp-rowacts-table{flex-wrap:nowrap}
.shp-foldbtn{position:relative;width:28px;height:28px;border-radius:8px;border:1px dashed var(--shp-line-strong);background:transparent;color:var(--shp-muted);display:inline-grid;place-items:center;cursor:pointer;padding:0;transition:border-color .13s,color .13s,background .13s,transform .13s}
.shp-foldbtn:hover{color:var(--shp-primary);border-color:var(--shp-primary);transform:translateY(-1px)}
.shp-foldbtn .lucide{width:14px;height:14px;display:block}
.shp-foldbtn.has{border-style:solid;color:var(--shp-primary);background:color-mix(in srgb,var(--shp-primary) 10%,transparent);border-color:color-mix(in srgb,var(--shp-primary) 32%,transparent)}
.shp-foldbtn.has:hover{background:var(--shp-primary);color:#fff}
.shp-foldn{position:absolute;top:-6px;right:-6px;min-width:15px;height:15px;padding:0 4px;border-radius:999px;background:var(--shp-primary);color:#fff;font-size:9px;font-weight:800;font-family:var(--shp-mono);display:grid;place-items:center;line-height:1;border:1.5px solid var(--shp-card)}
.shp-modalbox.shp-modal-lg{width:min(660px,100%)}
.shp-attbody{display:grid;gap:12px}
.shp-attlist{display:grid;gap:8px;max-height:46vh;overflow:auto}
.shp-attrow{display:flex;align-items:center;gap:10px;padding:9px 11px;border:1px solid var(--shp-line);border-radius:12px;background:var(--shp-inset)}
.shp-attrow .shp-filemeta{flex:1;min-width:0}
.shp-attrow .shp-fname{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.shp-attempty{display:grid;gap:6px;justify-items:center;text-align:center;padding:26px 16px;border:1px dashed var(--shp-line-strong);border-radius:14px;color:var(--shp-muted)}
.shp-attempty .lucide{width:26px;height:26px;opacity:.6}
.shp-attempty b{color:var(--shp-text);font-size:12.5px}
.shp-attempty small{max-width:320px}
.shp-attnote{margin:0;font-size:11px;color:var(--shp-muted);text-align:center}
.shp-attachpick{position:relative}
.shp-attachpickic{display:inline-grid;place-items:center}
.shp-attachpickic .lucide{width:14px;height:14px;display:block}
.shp-attachpick.is-busy{opacity:.55;pointer-events:none}
.shp-attloading{padding:20px;text-align:center;color:var(--shp-muted);font-size:12px}

/* ───────────────────── Detailed sales / purchase / expense reports (bento) ───────────────────── */
.shp-rep-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.shp-rep-kpi{position:relative;background:var(--shp-card);border:1px solid var(--shp-line);border-radius:16px;padding:13px 14px;display:grid;gap:3px;overflow:hidden}
.shp-rep-kpi small{font-size:9px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:var(--shp-muted);font-family:var(--shp-mono)}
.shp-rep-kpi strong{font-size:17px;font-weight:800;color:var(--shp-text);letter-spacing:-.02em}
.shp-rep-kpi p{margin:0;font-size:10px;color:var(--shp-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.shp-rep-kpi.emerald strong{color:#059669}
.shp-rep-kpi.rose strong{color:#e11d48}
.shp-rep-kpiic{position:absolute;top:11px;right:12px;width:28px;height:28px;border-radius:9px;display:grid;place-items:center;color:var(--shp-primary);background:color-mix(in srgb,var(--shp-primary) 11%,transparent);border:1px solid color-mix(in srgb,var(--shp-primary) 22%,transparent)}
.shp-rep-kpiic .lucide{width:15px;height:15px;display:block}
.shp-rep-kpi.has-files{}
.shp-rep-bento{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.shp-rep-bento .shp-rep-panel{margin:0}
.shp-rep-panel .shp-panel-head{margin-bottom:10px}
.shp-rep-break{display:grid;gap:9px}
.shp-rep-barrow{display:grid;grid-template-columns:86px 1fr auto auto;gap:10px;align-items:center;font-size:11px}
.shp-rep-barrow > span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--shp-text2);font-weight:600}
.shp-rep-barrow > em{font-style:normal;font-family:var(--shp-mono);font-size:9px;color:var(--shp-muted);min-width:26px;text-align:right}
.shp-rep-barrow > b{font-family:var(--shp-mono);font-size:10.5px;font-weight:700;text-align:right;white-space:nowrap}
.shp-rep-barrow div{height:9px;border-radius:999px;background:var(--shp-inset2);overflow:hidden}
.shp-rep-barrow i{display:block;height:100%;border-radius:999px}
.shp-rep-barrow i.emerald{background:linear-gradient(90deg,#34d399,#059669)}
.shp-rep-barrow i.amber{background:linear-gradient(90deg,#fbbf24,#d97706)}
.shp-rep-barrow i.rose{background:linear-gradient(90deg,#fb7185,#e11d48)}
.shp-rep-tw{overflow:auto;border:1px solid var(--shp-line);border-radius:12px}
.shp-rep-tw table{min-width:100%}
.shp-rep-tw th{font-size:8.5px}
.shp-rep-tw td{font-size:11px;padding:8px 10px}
.shp-rep-trend{overflow-x:auto;padding-bottom:4px}
.shp-rep-bars{display:flex;align-items:flex-end;gap:6px;min-height:130px;height:130px}
.shp-rep-bar{flex:1;min-width:34px;display:grid;grid-template-rows:1fr auto;gap:6px;height:100%}
.shp-rep-bar span{display:flex;align-items:flex-end;justify-content:center;background:var(--shp-inset2);border-radius:8px 8px 4px 4px;overflow:hidden}
.shp-rep-bar i{display:block;width:100%;border-radius:8px 8px 2px 2px;min-height:3px}
.shp-rep-bar i.emerald{background:linear-gradient(180deg,#34d399,#059669)}
.shp-rep-bar i.amber{background:linear-gradient(180deg,#fbbf24,#d97706)}
.shp-rep-bar i.rose{background:linear-gradient(180deg,#fb7185,#e11d48)}
.shp-rep-bar small{font-size:8px;text-align:center;color:var(--shp-muted);font-family:var(--shp-mono);white-space:nowrap;overflow:hidden}
.shp-rep-status{display:inline-flex;align-items:center;padding:3px 9px;border-radius:999px;font-size:9px;font-weight:800;letter-spacing:.05em;text-transform:uppercase;font-family:var(--shp-mono)}
.shp-rep-status.paid{color:#047857;background:color-mix(in srgb,#10b981 14%,transparent);border:1px solid color-mix(in srgb,#10b981 30%,transparent)}
.shp-rep-status.partial{color:#b45309;background:color-mix(in srgb,#f59e0b 15%,transparent);border:1px solid color-mix(in srgb,#f59e0b 32%,transparent)}
.shp-rep-status.unpaid{color:#be123c;background:color-mix(in srgb,#f43f5e 12%,transparent);border:1px solid color-mix(in srgb,#f43f5e 28%,transparent)}
.shp-rep-party{font-weight:600;color:var(--shp-text)}
.shp-rep-note{display:inline-block;max-width:190px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--shp-muted)}
.shp-rep-due{color:#e11d48;font-weight:700}
body.shp-on[data-shp-theme="dark"] .shp-rep-status.paid{color:#34d399}
body.shp-on[data-shp-theme="dark"] .shp-rep-status.partial{color:#fbbf24}
body.shp-on[data-shp-theme="dark"] .shp-rep-status.unpaid{color:#fb7185}
@media(max-width:1100px){.shp-rep-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){
 .shp-rep-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
 .shp-rep-bento{grid-template-columns:1fr}
 .shp-rep-barrow{grid-template-columns:76px 1fr auto auto;gap:8px}
}
@media print{
 .shp-rfilter,.shp-rtabs,.shp-form-actions,.shp-toolbar{display:none!important}
}

/* Business AI Health v2 */
.shp-hm2{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}
.shp-hm article.shp-warn{border-color:color-mix(in srgb,#f59e0b 55%,var(--shp-line));background:color-mix(in srgb,#f59e0b 9%,var(--shp-inset))}
.shp-hm article.shp-bad{border-color:color-mix(in srgb,#ef4444 55%,var(--shp-line));background:color-mix(in srgb,#ef4444 8%,var(--shp-inset))}
.shp-hm article.shp-warn b,.shp-hm article.shp-bad b{color:inherit}
.shp-htrends{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px}
.shp-htrends span{font-size:10.5px;color:var(--shp-text2);background:var(--shp-inset);border:1px solid var(--shp-line);border-radius:999px;padding:4px 10px;display:inline-flex;gap:6px;align-items:center}
.shp-delta{font-family:var(--shp-mono);font-size:9.5px;font-weight:700}
.shp-delta.shp-up{color:#059669}
.shp-delta.shp-dn{color:#dc2626}
.shp-htable{width:100%;border-collapse:collapse;font-size:11.5px}
.shp-htable th{font-size:8.5px;letter-spacing:.12em;text-transform:uppercase;color:var(--shp-muted);font-weight:700;text-align:right;padding:6px 8px;border-bottom:1px solid var(--shp-line)}
.shp-htable th:first-child,.shp-htable td:first-child{text-align:left}
.shp-htable td{padding:7px 8px;border-bottom:1px solid color-mix(in srgb,var(--shp-line) 60%,transparent);text-align:right;font-variant-numeric:tabular-nums;color:var(--shp-text2)}
.shp-htable td.shp-up{color:#059669;font-weight:700}
.shp-htable td.shp-dn{color:#dc2626;font-weight:700}
.shp-hlow{display:flex;flex-wrap:wrap;gap:8px}
.shp-lowchip{font-size:11px;border:1px solid color-mix(in srgb,#f59e0b 50%,var(--shp-line));background:color-mix(in srgb,#f59e0b 8%,var(--shp-inset));border-radius:999px;padding:5px 11px;color:var(--shp-text2)}
.shp-lowchip b{font-family:var(--shp-mono);color:#b45309;margin-left:4px}
.shp-lowchip.out{border-color:color-mix(in srgb,#ef4444 55%,var(--shp-line));background:color-mix(in srgb,#ef4444 8%,var(--shp-inset))}
.shp-lowchip.out b{color:#dc2626}
.shp-hreport{font-size:12.5px;line-height:1.7;color:var(--shp-text2);max-width:820px}
.shp-hreport .aimd{margin:8px 0 12px;padding:0 0 0 4px;list-style:none;display:grid;gap:7px}
.shp-hreport .aimd li{position:relative;padding-left:18px}
.shp-hreport ul.aimd li:before{content:'';position:absolute;left:2px;top:9px;width:6px;height:6px;border-radius:50%;background:var(--shp-primary,#7c3aed)}
.shp-hreport ol.aimdo{counter-reset:step}
.shp-hreport ol.aimdo li{counter-increment:step;padding-left:26px}
.shp-hreport ol.aimdo li:before{content:counter(step);position:absolute;left:0;top:1px;width:17px;height:17px;border-radius:50%;background:color-mix(in srgb,var(--shp-primary,#7c3aed) 16%,transparent);color:var(--shp-primary,#7c3aed);font-family:var(--shp-mono);font-size:9.5px;font-weight:800;display:grid;place-items:center}
.shp-hreport .aimd-h1{display:block;font-size:14.5px;font-weight:800;color:var(--shp-text);margin:16px 0 6px;padding-bottom:5px;border-bottom:1px solid var(--shp-line)}
.shp-hreport .aimd-h1:first-child{margin-top:2px}
.shp-hreport .aimd-h2,.shp-hreport .aimd-h3{display:block;font-size:12.5px;font-weight:800;color:var(--shp-text);margin:12px 0 4px}
.shp-hreport b{color:var(--shp-text)}

/* Sales Return & Refund */
.shp-ret-item-card{border:1px solid var(--shp-line);border-radius:10px;margin-bottom:12px;background:var(--shp-card);transition:border-color .15s,box-shadow .15s;overflow:hidden}
.shp-ret-item-card.selected{border-color:var(--shp-primary);box-shadow:0 0 0 1px var(--shp-primary)}
.shp-ret-item-card.disabled{opacity:.6;background:var(--shp-inset)}
.shp-ret-row-head{display:grid;grid-template-columns:36px 1fr auto;gap:12px;align-items:center;padding:12px 14px}
.shp-ret-row-head .shp-ret-check{display:flex;align-items:center;justify-content:center}
.shp-ret-row-head .shp-ret-check input{width:18px;height:18px;cursor:pointer}
.shp-ret-row-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:10px;padding:12px 14px;background:var(--shp-inset);border-top:1px solid var(--shp-line)}
.shp-ret-row-fields label{display:flex;flex-direction:column;gap:4px;font-size:11px;font-weight:600;color:var(--shp-text2)}
.shp-ret-row-fields input,.shp-ret-row-fields select{font-size:12.5px;padding:6px 9px;border:1px solid var(--shp-line);border-radius:6px;background:var(--shp-card);color:var(--shp-text)}
.shp-ret-summary-box{background:var(--shp-card);border:1px solid var(--shp-line);border-radius:10px;padding:16px;margin:16px 0}
.shp-ret-summary-row{display:flex;justify-content:space-between;align-items:center;padding:5px 0;font-size:13px;color:var(--shp-text2)}
.shp-ret-summary-row.total{border-top:1px solid var(--shp-line);margin-top:10px;padding-top:10px;font-size:16px;font-weight:700;color:var(--shp-text)}
.shp-ret-confirm-item{border-left:3px solid var(--shp-primary);padding:8px 12px;margin:8px 0;background:var(--shp-inset);border-radius:0 6px 6px 0}
.shp-exc-confirm-item{border-left:3px solid #8b5cf6;padding:8px 12px;margin:8px 0;background:var(--shp-inset);border-radius:0 6px 6px 0}
.shp-post-ret-box{text-align:center;padding:20px 10px}
.shp-post-ret-box .shp-big-amt{font-size:28px;font-weight:800;color:var(--shp-primary);margin:12px 0 20px}
.shp-post-ret-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin-top:16px}
.shp-exc-section{border:1px solid var(--shp-line);border-radius:10px;padding:14px;margin-bottom:16px;background:var(--shp-card)}
.shp-exc-section h4{font-size:13.5px;font-weight:700;margin:0 0 10px;display:flex;align-items:center;justify-content:space-between}
.shp-exc-calc-box{background:var(--shp-inset);border:1px solid var(--shp-line);border-radius:8px;padding:14px;margin:14px 0}
.shp-exc-calc-row{display:flex;justify-content:space-between;align-items:center;padding:4px 0;font-size:13px;color:var(--shp-text2)}
.shp-exc-calc-row.diff{border-top:1px dashed var(--shp-line);margin-top:8px;padding-top:8px;font-size:15px;font-weight:700}

/* ---------------------------------------------------------------------
   24 · Return & Exchange Mobile & Tablet Responsiveness
--------------------------------------------------------------------- */
@media(max-width: 768px) {
  .shp-exc-calc-box { padding: 12px; }
  .shp-exc-section { padding: 12px; }
}

@media(max-width: 640px) {
  .shp-ret-item-card { border-radius: 8px; margin-bottom: 10px; }
  .shp-ret-row-head {
    grid-template-columns: 28px 1fr !important;
    gap: 8px;
    padding: 10px 12px;
  }
  .shp-ret-row-head > div:last-child {
    grid-column: 2;
    text-align: left !important;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
  }
  .shp-ret-row-head > div:last-child br { display: none; }
  .shp-ret-row-fields {
    grid-template-columns: 1fr !important;
    gap: 8px;
    padding: 10px 12px;
  }
  .shp-ret-summary-box { padding: 12px 14px; margin: 12px 0; }
  .shp-ret-summary-row { font-size: 12px; }
  .shp-ret-summary-row.total { font-size: 14px; }
  .shp-exc-section { padding: 10px 12px; margin-bottom: 12px; }
  .shp-exc-section h4 { font-size: 12.5px; flex-direction: column; align-items: flex-start; gap: 6px; }
  .shp-exc-calc-box { padding: 10px 12px; margin: 10px 0; }
  .shp-exc-calc-row { font-size: 12px; }
  .shp-exc-calc-row.diff { font-size: 13.5px; flex-direction: column; align-items: flex-start; gap: 4px; }
  .shp-post-ret-box { padding: 14px 6px; }
  .shp-post-ret-box .shp-big-amt { font-size: 22px !important; margin: 8px 0 14px; }
  .shp-post-ret-actions { width: 100%; display: flex; flex-direction: column; gap: 8px; }
  .shp-post-ret-actions .shp-btn { width: 100%; justify-content: center; }
  .shp-exc-step2-actions, .shp-detail-actions {
    flex-direction: column-reverse;
    gap: 8px;
    align-items: stretch !important;
    width: 100%;
  }
  .shp-exc-step2-actions .shp-btn, .shp-detail-actions .shp-btn {
    width: 100%;
    justify-content: center;
  }
  body.shp-on .shp-form-actions {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  body.shp-on .shp-form-actions .shp-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ── Full Audit Log Styles ── */
.shp-audit-when{display:flex;flex-direction:column;gap:2px}
.shp-audit-when b{font-family:var(--shp-mono);font-size:11.5px;color:var(--shp-text)}
.shp-audit-when small{font-size:10.5px;color:var(--shp-muted);font-family:var(--shp-mono)}
.shp-audit-who{display:flex;flex-direction:column;gap:3px;min-width:140px}
.shp-audit-who b{font-size:12px;color:var(--shp-text)}
.shp-audit-who code{font-size:10.5px;align-self:flex-start}
.shp-audit-where{display:flex;align-items:center;gap:7px;min-width:120px}
.shp-audit-where b{font-size:12px;color:var(--shp-text)}
.shp-audit-what{display:flex;flex-direction:column;gap:2px;max-width:480px;line-height:1.4}
.shp-audit-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.shp-audit-kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:10px;margin-bottom:12px}
.shp-audit-kpi{background:var(--shp-inset);border:1px solid var(--shp-line);border-radius:12px;padding:10px 12px;display:flex;flex-direction:column;gap:2px}
.shp-audit-kpi small{font-family:var(--shp-mono);font-size:8.5px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--shp-muted)}
.shp-audit-kpi strong{font-family:var(--shp-mono);font-size:16px;font-weight:750;color:var(--shp-text)}

/* ── ConnectX SMS Portal Styles ── */
.shp-cx-portal-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px;border-bottom:1px solid var(--shp-line);padding-bottom:12px;flex-wrap:wrap}
.shp-cx-portal-tabs{display:inline-flex;gap:6px;background:var(--shp-inset);padding:4px;border-radius:12px;border:1px solid var(--shp-line)}
.shp-cx-portal-tab{display:inline-flex;align-items:center;gap:8px;padding:8px 16px;border-radius:9px;border:0;background:transparent;color:var(--shp-muted);font-family:var(--shp-font);font-size:13px;font-weight:600;cursor:pointer;transition:.15s}
.shp-cx-portal-tab:hover{color:var(--shp-text)}
.shp-cx-portal-tab.on{background:var(--shp-card);color:var(--shp-text);box-shadow:0 1px 3px rgba(0,0,0,.08)}
.shp-cx-portal-tab .lucide{width:16px;height:16px}
.shp-sms-counter{display:flex;justify-content:space-between;align-items:center;padding:7px 12px;font-family:var(--shp-mono);font-size:11px;color:var(--shp-muted);background:var(--shp-inset);border:1px solid var(--shp-line);border-radius:9px;margin-top:6px}
.shp-sms-counter b{color:var(--shp-text)}
.shp-sms-counter .parts{padding:2px 8px;border-radius:6px;background:var(--shp-card);border:1px solid var(--shp-line);color:var(--shp-text)}
.shp-sms-queued-banner{display:flex;align-items:center;gap:12px;padding:12px 16px;border-radius:12px;background:color-mix(in srgb,var(--shp-tone) 10%,var(--shp-card));border:1px solid color-mix(in srgb,var(--shp-tone) 32%,transparent);margin-bottom:14px}
.shp-sms-queued-banner .badge{background:var(--shp-tone);color:#fff;font-family:var(--shp-mono);font-size:10px;font-weight:700;padding:3px 8px;border-radius:6px;text-transform:uppercase}
.shp-sms-queued-banner b{color:var(--shp-text);font-size:13px}
.shp-sms-queued-banner p{margin:2px 0 0;font-size:11.5px;color:var(--shp-muted)}


