/* ============ VCS & RTC 2.0 UI ============ */
:root{
  --bg:#f3f5fb;--panel:#ffffff;--ink:#0f172a;--muted:#64748b;--line:#e2e8f4;
  --brand:#4f46e5;--brand-dark:#3730a3;--ok:#059669;--warn:#d97706;--bad:#e11d48;--info:#2563eb;
  --amber:#d97706;--radius:16px;--shadow:0 1px 2px rgba(15,23,42,.05),0 8px 24px rgba(15,23,42,.04);
  --shadow-lg:0 20px 50px rgba(15,23,42,.12);
  --sidebar:#0b1220;--sidebar-ink:#94a3b8;
  --glass:rgba(255,255,255,.78);--ring:rgba(79,70,229,.28);
  --grad:linear-gradient(135deg,#4f46e5,#7c3aed 55%,#06b6d4);
}
html[data-theme=dark]{
  --bg:#080d18;--panel:#10182a;--ink:#e8eefc;--muted:#8b9bb8;--line:#1e2a44;
  --brand:#818cf8;--brand-dark:#6366f1;--ok:#34d399;--warn:#fbbf24;--bad:#fb7185;--info:#60a5fa;
  --amber:#fbbf24;--shadow:0 1px 2px rgba(0,0,0,.35),0 10px 28px rgba(0,0,0,.28);
  --shadow-lg:0 24px 60px rgba(0,0,0,.45);
  --sidebar:#050814;--sidebar-ink:#9aa8c7;
  --glass:rgba(16,24,42,.82);--ring:rgba(129,140,248,.35);
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
html{color-scheme:light}
html[data-theme=dark]{color-scheme:dark}
body{font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;background:
  radial-gradient(1200px 500px at 10% -10%,rgba(79,70,229,.08),transparent 50%),
  radial-gradient(900px 400px at 100% 0%,rgba(6,182,212,.07),transparent 46%),
  var(--bg);color:var(--ink);font-size:14.5px;line-height:1.55;-webkit-font-smoothing:antialiased;transition:background .25s,color .25s}
html[data-theme=dark] body{background:
  radial-gradient(1000px 420px at 0% 0%,rgba(79,70,229,.18),transparent 50%),
  radial-gradient(800px 380px at 100% 0%,rgba(6,182,212,.1),transparent 46%),
  var(--bg)}
a{color:var(--brand);text-decoration:none}
a:hover{text-decoration:underline}
h1{font-size:1.5rem;margin:0}h2{font-size:1.2rem}h3{font-size:1rem;margin:0 0 12px}
code{background:#eef2fb;padding:1px 6px;border-radius:5px;font-size:.85em}
.muted{color:var(--muted)}.small{font-size:.85em}.tiny{font-size:.78em}
.ta-r{text-align:right}.ta-c{text-align:center}.mt{margin-top:18px}.mt-sm{margin-top:8px}
.text-red{color:var(--bad)}.text-green{color:var(--ok)}.text-amber{color:var(--amber)}
.req{color:var(--bad)}

/* ---------- layout ---------- */
.app{display:flex;min-height:100vh}
.sidebar{width:248px;background:var(--sidebar);color:var(--sidebar-ink);position:fixed;inset:0 auto 0 0;overflow-y:auto;z-index:40;transition:transform .22s}
.brand{display:flex;align-items:center;gap:10px;padding:18px 16px;border-bottom:1px solid rgba(255,255,255,.08)}
.brand-logo{width:38px;height:38px;border-radius:11px;background:linear-gradient(135deg,var(--brand),#7a3cff);color:#fff;display:grid;place-items:center;font-weight:800;font-size:18px}
.brand-name{color:#fff;font-weight:700;font-size:15px}
.brand-sub{font-size:11px;opacity:.7}
.sidebar-close{display:none;margin-left:auto;background:none;border:0;color:#fff;font-size:22px;cursor:pointer}
.side-company{padding:12px 16px;background:rgba(255,255,255,.05);border-bottom:1px solid rgba(255,255,255,.07)}
.side-company-code{font-size:10.5px;letter-spacing:.12em;opacity:.65}
.side-company-name{color:#fff;font-weight:600;font-size:13.5px}
.nav{padding:10px 8px 40px;display:flex;flex-direction:column;gap:2px}
.nav-item{display:flex;align-items:center;gap:10px;padding:9px 12px;border-radius:9px;color:var(--sidebar-ink);font-size:13.5px}
.nav-item:hover{background:rgba(255,255,255,.07);color:#fff;text-decoration:none}
.nav-item.active{background:var(--brand);color:#fff;font-weight:600}
.nav-pill{margin-left:auto;background:#ff8a3d;color:#fff;border-radius:20px;padding:1px 7px;font-size:11px;font-weight:700}
.ico{width:16px;height:16px;border-radius:4px;opacity:.55;flex:0 0 16px;
  -webkit-mask-size:contain;mask-size:contain}
.nav-item.active .ico{opacity:1}
.main{flex:1;margin-left:248px;display:flex;flex-direction:column;min-width:0}
.topbar{position:sticky;top:0;z-index:30;display:flex;align-items:center;gap:12px;padding:10px 20px;background:rgba(255,255,255,.92);backdrop-filter:blur(8px);border-bottom:1px solid var(--line)}
.search-wrap{position:relative;flex:1;max-width:520px}
.search{width:100%;padding:9px 14px;border:1px solid var(--line);border-radius:10px;background:#f7f9fd;font-size:14px}
.search:focus{outline:2px solid rgba(47,107,255,.25);background:#fff}
.search-results{position:absolute;top:calc(100% + 6px);left:0;right:0;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow-lg);max-height:380px;overflow:auto;z-index:50}
.search-results a{display:block;padding:9px 14px;color:var(--ink);border-bottom:1px solid var(--line)}
.search-results a:hover{background:#f3f6ff;text-decoration:none}
.search-results .grp{font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);padding:8px 14px 2px}
.topbar-right{margin-left:auto;display:flex;align-items:center;gap:8px}
.icon-btn{position:relative;width:38px;height:38px;border-radius:10px;border:1px solid var(--line);background:#fff;cursor:pointer;display:grid;place-items:center}
.icon-btn:hover{background:#f3f6ff}
.dot{position:absolute;top:-4px;right:-4px;background:var(--bad);color:#fff;border-radius:20px;font-size:10px;padding:1px 5px;font-weight:700}
.user-btn{display:flex;align-items:center;gap:9px;background:#fff;border:1px solid var(--line);border-radius:10px;padding:5px 10px;cursor:pointer;font-size:13px;text-align:left}
.user-btn small{display:block;color:var(--muted);font-size:11px}
.avatar{width:28px;height:28px;border-radius:50%;background:linear-gradient(135deg,var(--brand),#7a3cff);color:#fff;display:grid;place-items:center;font-size:11.5px;font-weight:700}
.company-switch select{padding:8px 10px;border:1px solid var(--line);border-radius:10px;background:#fff;font-size:13px;max-width:190px}
.dropdown{position:relative}
.dropdown-menu{display:none;position:absolute;right:0;top:calc(100% + 8px);min-width:190px;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow-lg);overflow:hidden;z-index:60}
.dropdown-menu.wide{width:250px}
.dropdown-menu.open{display:block}
.dropdown-menu a{display:block;padding:10px 14px;color:var(--ink);font-size:13.5px}
.dropdown-menu a:hover{background:#f3f6ff;text-decoration:none}
.dropdown-menu a.danger{color:var(--bad)}
.dropdown-head{display:flex;justify-content:space-between;padding:10px 14px;border-bottom:1px solid var(--line);font-weight:600;font-size:13px}
.notif-list{max-height:330px;overflow:auto}
.notif-list .n{display:block;padding:10px 14px;border-bottom:1px solid var(--line)}
.notif-list .n b{display:block;font-size:13px}
.notif-list .n span{color:var(--muted);font-size:12px}
.notif-list .n.unread{background:#f4f8ff}
.content{padding:22px;flex:1;max-width:1600px;width:100%}
.foot{display:flex;justify-content:space-between;color:var(--muted);font-size:12px;padding:26px 2px 6px}
.backdrop{display:none;position:fixed;inset:0;background:rgba(10,16,32,.45);z-index:35}
.backdrop.show{display:block}
.only-mobile{display:none}

/* ---------- headers / cards ---------- */
.page-head{display:flex;flex-wrap:wrap;gap:12px;justify-content:space-between;align-items:flex-end;margin-bottom:18px}
.page-head p{margin:4px 0 0}
.head-actions{display:flex;gap:8px;flex-wrap:wrap}
.section-title{margin:26px 0 12px;font-size:1.05rem}
.card{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);padding:18px;box-shadow:var(--shadow)}
.card.narrow{max-width:620px}
.card-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:12px;flex-wrap:wrap}
.card-head h3{margin:0}
.grid{display:grid;grid-template-columns:repeat(12,1fr);gap:16px}
.grid>.col-2{grid-column:span 2}.grid>.col-3{grid-column:span 3}.grid>.col-4{grid-column:span 4}
.grid>.col-5{grid-column:span 5}.grid>.col-6{grid-column:span 6}.grid>.col-7{grid-column:span 7}
.grid>.col-8{grid-column:span 8}.grid>.col-12{grid-column:span 12}

/* ---------- kpis ---------- */
.kpis{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:12px}
.kpi{background:#fff;border:1px solid var(--line);border-left:4px solid var(--brand);border-radius:12px;padding:13px 15px;display:flex;flex-direction:column;gap:4px;box-shadow:var(--shadow);color:var(--ink)}
a.kpi:hover{text-decoration:none;transform:translateY(-1px);box-shadow:var(--shadow-lg)}
.kpi-label{font-size:11.5px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted)}
.kpi-value{font-size:1.25rem;font-weight:700}
.kpi.green{border-left-color:var(--ok)}.kpi.red{border-left-color:var(--bad)}.kpi.amber,.kpi.orange{border-left-color:var(--amber)}
.kpi.violet{border-left-color:#7a3cff}.kpi.teal{border-left-color:#0f9b9b}.kpi.indigo{border-left-color:#4a45d1}.kpi.slate{border-left-color:#64748b}
.small-kpis{margin-bottom:14px}

/* ---------- tables ---------- */
.table-wrap{overflow-x:auto;border-radius:10px}
.table{width:100%;border-collapse:collapse;font-size:13.5px}
.table th{text-align:left;padding:10px 12px;background:#f5f7fd;color:var(--muted);font-weight:600;font-size:11.5px;text-transform:uppercase;letter-spacing:.05em;white-space:nowrap;border-bottom:1px solid var(--line)}
.table td{padding:10px 12px;border-bottom:1px solid var(--line);vertical-align:middle}
.table tbody tr:hover{background:#fafbff}
.table small{display:block;color:var(--muted);font-size:11.5px}
.table input,.table select{padding:6px 8px;font-size:13px}
.w-check{width:34px}.w-110{width:110px}.w-120{width:120px}.w-140{width:140px}
.actions{white-space:nowrap}
.cell-prod{display:flex;align-items:center;gap:9px}
.thumb{width:100px;height:100px;border-radius:8px;object-fit:cover;background:#eef2fb;display:grid;place-items:center;font-size:11px;font-weight:700;color:var(--muted)}
.bulk-bar{display:flex;gap:8px;align-items:center;padding:12px 2px 2px;flex-wrap:wrap}
.pager{display:flex;justify-content:space-between;align-items:center;padding-top:14px;flex-wrap:wrap;gap:10px}
.pager-info{color:var(--muted);font-size:13px}
.pager-links{display:flex;gap:4px}
.pg{padding:6px 11px;border:1px solid var(--line);border-radius:8px;color:var(--ink);font-size:13px}
.pg.active{background:var(--brand);color:#fff;border-color:var(--brand)}
.pg.disabled{opacity:.45;pointer-events:none}

/* ---------- buttons / badges ---------- */
.btn{display:inline-flex;align-items:center;gap:6px;padding:8px 14px;border:1px solid var(--line);background:#fff;border-radius:9px;font-size:13.5px;cursor:pointer;color:var(--ink);font-family:inherit}
.btn:hover{background:#f2f5ff;text-decoration:none}
.btn-primary,.btn.primary{background:var(--brand);border-color:var(--brand);color:#fff}
.btn-primary:hover,.btn.primary:hover{background:var(--brand-dark)}
.btn.danger{background:var(--bad);border-color:var(--bad);color:#fff}
.btn-sm{padding:6px 11px;font-size:12.5px}
.btn-xs{padding:4px 9px;font-size:12px;border-radius:7px}
.btn-block{width:100%;justify-content:center}
.btn:disabled{opacity:.5;cursor:not-allowed}
.inline{display:inline}
.badge{display:inline-block;padding:2.5px 9px;border-radius:20px;font-size:11.5px;font-weight:600;background:#eef2fb;color:var(--muted);white-space:nowrap}
.badge.ok{background:#e4f6ee;color:var(--ok)}
.badge.warn{background:#fdf2dd;color:var(--warn)}
.badge.bad{background:#fdeaed;color:var(--bad)}
.badge.info{background:#e9effd;color:var(--info)}
.badge.muted{background:#eef1f6;color:var(--muted)}
.chips{display:flex;flex-wrap:wrap;gap:6px}
.chip{background:#eef2fb;border-radius:7px;padding:3px 9px;font-size:12px;color:var(--muted)}

/* ---------- forms ---------- */
.form .field{margin-bottom:14px;display:flex;flex-direction:column;gap:5px}
label{font-size:12.5px;font-weight:600;color:#39445f}
input,select,textarea{font-family:inherit;font-size:14px;padding:9px 11px;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--ink);width:100%}
input:focus,select:focus,textarea:focus{outline:2px solid rgba(47,107,255,.22);border-color:var(--brand)}
input[type=checkbox]{width:auto}
.check{display:inline-flex;align-items:center;gap:7px;font-weight:500;font-size:13.5px;cursor:pointer}
.checks{display:flex;flex-direction:column;gap:4px;max-height:130px;overflow:auto;border:1px solid var(--line);border-radius:9px;padding:8px}
.filters{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:14px;align-items:center}
.filters input,.filters select{width:auto;min-width:130px;padding:7px 10px;font-size:13px}
.form-actions{display:flex;gap:8px;margin-top:8px;flex-wrap:wrap}
.inline-form{display:flex;gap:8px;align-items:center}
.inline-form input{max-width:320px}
.pw{position:relative}
.pw-toggle{position:absolute;right:8px;top:7px;border:0;background:none;color:var(--brand);font-size:12px;cursor:pointer}
.row-between{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px;font-size:13px}
.preview{width:100%;max-height:200px;object-fit:contain;border:1px solid var(--line);border-radius:10px;background:#fafbff;margin-bottom:10px}
.totals{margin-top:14px;display:flex;flex-direction:column;gap:5px;align-items:flex-end;font-size:14px}
.totals div{display:flex;gap:26px;justify-content:space-between;min-width:290px}
.totals .grand{border-top:1px solid var(--line);padding-top:7px;font-size:16px;font-weight:700}
.kv{display:flex;justify-content:space-between;gap:12px;padding:7px 0;border-bottom:1px dashed var(--line);font-size:13.5px}
.kv span{color:var(--muted)}
.kv-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:0 22px}
.ol{padding-left:20px;color:var(--muted);font-size:13.5px;line-height:1.9}

/* ---------- alerts / toast / empty ---------- */
.flash-stack{display:flex;flex-direction:column;gap:8px;margin-bottom:16px}
.alert{display:flex;justify-content:space-between;gap:10px;padding:11px 15px;border-radius:11px;font-size:13.5px;border:1px solid}
.alert button{background:none;border:0;font-size:18px;cursor:pointer;color:inherit;opacity:.6}
.alert-success{background:#e7f7f0;border-color:#b6e5d1;color:#0d6b4d}
.alert-error{background:#fdecef;border-color:#f6c6cf;color:#a11d31}
.alert-warning{background:#fdf5e3;border-color:#f2dfae;color:#8a5e08}
.alert-info{background:#eaf0fe;border-color:#c5d6fb;color:#22429c}
.toasts{position:fixed;right:18px;bottom:18px;display:flex;flex-direction:column;gap:9px;z-index:200}
.toast{background:#16203a;color:#fff;padding:11px 16px;border-radius:11px;box-shadow:var(--shadow-lg);font-size:13.5px;animation:slideIn .25s}
.toast.ok{background:#0d6b4d}.toast.bad{background:#a11d31}
@keyframes slideIn{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
.empty{text-align:center;padding:34px 12px;color:var(--muted)}
.empty-ico{font-size:30px;opacity:.4;margin-bottom:6px}
.empty.small{padding:16px}
.error-page{max-width:560px;margin:60px auto;text-align:center;background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:40px 28px;box-shadow:var(--shadow)}
.error-code{font-size:62px;font-weight:800;color:var(--brand);line-height:1}
.error-detail{text-align:left;background:#f6f8fd;padding:10px;border-radius:9px;font-size:12px;overflow:auto}
.logbox{background:#0f1729;color:#c9d6f2;padding:14px;border-radius:11px;max-height:520px;overflow:auto;font-size:12px;white-space:pre-wrap}

/* ---------- timeline / lists ---------- */
.timeline{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:11px}
.timeline li{border-left:2px solid var(--line);padding:0 0 4px 13px;position:relative;font-size:13.5px}
.timeline li:before{content:'';position:absolute;left:-5px;top:5px;width:8px;height:8px;border-radius:50%;background:var(--brand)}
.timeline small{display:block;color:var(--muted);font-size:11.5px}
.timeline p{margin:3px 0 0}
.notif-page {
  list-style: none;
  margin: 0;
  padding: 0;
}

.notif-page li {
  padding: 12px 6px;
  border-bottom: 1px solid var(--line);
}

/* First row */
.notif-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Divider between rows */
.notif-divider {
  border-top: 1px solid var(--line);
  margin: 12px 0;
}

/* Second row */
.notif-content b {
  display: block;
}

.notif-content p {
  margin: 4px 0;
  color: var(--muted);
  font-size: 13px;
}

.notif-content small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
}

.report-links{display:flex;flex-direction:column}
.report-link{display:flex;justify-content:space-between;padding:9px 4px;border-bottom:1px solid var(--line);color:var(--ink);font-size:13.5px}
.report-link:hover{background:#f4f7ff;text-decoration:none}
.chev{color:var(--muted)}

/* ---------- companies / products / leads ---------- */
.company-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:16px}
.company-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:16px;box-shadow:var(--shadow)}
.company-top{display:flex;align-items:center;gap:11px;margin-bottom:12px}
.company-logo{width:44px;height:44px;border-radius:12px;background:linear-gradient(135deg,var(--brand),#7a3cff);color:#fff;display:grid;place-items:center;font-weight:800;overflow:hidden}
.company-logo img{width:100%;height:100%;object-fit:cover}
.company-top h3{margin:0;font-size:15px}
.company-top .badge{margin-left:auto}
.company-stats{display:grid;grid-template-columns:1fr 1fr 1fr;gap:9px;font-size:12.5px}
.company-stats div{display:flex;flex-direction:column;background:#f7f9fe;border-radius:9px;padding:7px 9px}
.company-stats span{color:var(--muted);font-size:11px}
.company-actions{display:flex;gap:8px;margin-top:13px}
.prod-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:14px}
.prod-card{border:1px solid var(--line);border-radius:12px;overflow:hidden;background:#fff;display:flex;flex-direction:column}
.prod-img{height:100%;background:#f2f5fc;display:grid;place-items:center;font-size:22px;font-weight:700;color:#9aa6c2}
.prod-img img{width:100%;height:100%;object-fit:cover}
.prod-body{padding:11px 12px;display:flex;flex-direction:column;gap:6px;flex:1}
.prod-body h4{margin:0;font-size:13.5px;line-height:1.35}
.prod-sku{font-size:11.5px;color:var(--muted)}
.prod-price{font-size:16px;font-weight:700}
.prod-price small{font-weight:400;font-size:11px;color:var(--muted);margin-left:5px}
.prod-avail{align-self:flex-start}
.prod-add{display:flex;gap:6px;margin-top:auto}
.prod-add input{width:66px}
.lead-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:13px}
.lead-card{border:1px solid var(--line);border-radius:12px;padding:13px;background:#fff;display:flex;flex-direction:column;gap:6px}
.lead-top{display:flex;align-items:center;gap:8px}
.lead-name{font-weight:700;font-size:14px}
.lead-top .badge{margin-left:auto}
.lead-meta{color:var(--muted);font-size:12.5px}
.lead-phone{font-size:15px;font-weight:600;letter-spacing:.02em}
.lead-sub{display:flex;justify-content:space-between;font-size:11.5px;color:var(--muted)}
.stars{color:#e8a300;letter-spacing:1px}
.lead-actions{display:flex;gap:6px;flex-wrap:wrap;margin-top:4px}
.star-pick{display:flex;gap:4px}
.star-pick button{background:none;border:0;font-size:24px;color:#d7dceb;cursor:pointer;line-height:1}
.star-pick button.on{color:#e8a300}

/* ---------- tabs / modal / picker ---------- */
.tabs{display:flex;gap:6px;overflow-x:auto;margin-bottom:14px;padding-bottom:3px}
.tab{padding:8px 14px;border:1px solid var(--line);border-radius:20px;background:#fff;color:var(--ink);font-size:13px;white-space:nowrap}
.tab:hover{text-decoration:none;background:#f2f5ff}
.tab.active{background:var(--brand);color:#fff;border-color:var(--brand)}
.tab-count{background:rgba(0,0,0,.09);border-radius:20px;padding:0 6px;font-size:11px;margin-left:4px}
.tab.active .tab-count{background:rgba(255,255,255,.25)}
.related-modal{position:fixed;inset:0;z-index:10000;background:rgba(12,20,38,.62);display:flex;align-items:center;justify-content:center;padding:18px}
.related-modal[hidden]{display:none}
.related-modal-card{position:relative;width:min(920px,100%);max-height:85vh;overflow:hidden;background:var(--panel,#fff);color:var(--ink);border:1px solid var(--line);border-radius:16px;padding:18px;box-shadow:0 20px 70px rgba(0,0,0,.28)}
.related-track{display:flex;gap:12px;overflow:auto;scroll-snap-type:x mandatory;padding:12px 2px}
.related-slide{flex:0 0 210px;display:flex;flex-direction:column;gap:7px;padding:12px;border:1px solid var(--line);border-radius:12px;background:var(--panel,#fff);scroll-snap-align:start}
.related-slide img{width:100%;height:110px;object-fit:contain;border-radius:8px}
.related-slide small{color:var(--muted)}
.related-slide form{margin-top:auto}
.audit-detail{min-width:260px;max-width:520px;padding:10px 0;font-size:12px}
.audit-detail pre{white-space:pre-wrap;overflow-wrap:anywhere;background:var(--surface,#f4f6fb);padding:8px;border-radius:8px;margin:4px 0}
/* The HTML hidden attribute must always win. Without this rule, any element
   with an author display value (e.g. .modal{display:grid}) becomes visible
   even though it is marked hidden — which made the lead modal pop open on
   page load. */
[hidden]{display:none!important}

/* review popovers (payment / registration) */
.review-pop{position:relative;display:inline-block}
.review-pop summary{list-style:none;cursor:pointer;user-select:none}
.review-pop summary::-webkit-details-marker{display:none}
.review-pop[open] summary{margin-bottom:6px}
.review-pop .review-form{position:absolute;right:0;top:calc(100% + 6px);z-index:70;width:300px;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow-lg);padding:14px;display:flex;flex-direction:column;gap:8px}
.review-pop .review-form input,.review-pop .review-form textarea{font-size:13px}
.review-pop summary.btn{pointer-events:none}
.review-pop summary.btn:before{content:''}
.review-pop>summary{cursor:pointer;pointer-events:auto}

/* daily reminder banner */
.reminder-banner{display:flex;align-items:center;gap:14px;background:linear-gradient(90deg,#fff7eb,#ffefd0);border:1px solid #f2c47d;border-left:5px solid #d98a3d;border-radius:12px;padding:12px 16px;margin:0 0 14px;box-shadow:0 1px 3px rgba(23,39,62,.04)}
.reminder-bell{font-size:22px}
.reminder-banner b{display:block;font-size:13px}
.reminder-banner small{display:block;color:#9a6426;font-size:11.5px}
.reminder-banner .btn{margin-left:auto;background:#fff}
.modal{position:fixed;inset:0;background:rgba(10,16,32,.5);display:grid;place-items:center;z-index:120;padding:16px}
.modal[hidden]{display:none!important}

/* Data tables must never collapse to nothing: some hosts inject wrappers or
   the mobile block-rule can leak, hiding rows on desktop. */
.table{display:table;width:100%}
.table thead{display:table-header-group}
.table tbody{display:table-row-group}
.table tfoot{display:table-footer-group}
.table tr{display:table-row}
.table th,.table td{display:table-cell}
.table-wrap{display:block;overflow-x:auto}
#pendingTable{display:block}
@media(min-width:701px){
  .table td:before{content:none!important}
}
.modal-box{background:#fff;border-radius:var(--radius);max-width:520px;width:100%;max-height:92vh;overflow:auto;box-shadow:var(--shadow-lg);padding:20px}
.modal-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}
.modal-head button{background:none;border:0;font-size:22px;cursor:pointer;color:var(--muted)}
.picker{position:relative;min-width:290px}
.picker input{width:100%}
.picker-results{position:absolute;top:calc(100% + 4px);left:0;right:0;background:#fff;border:1px solid var(--line);border-radius:10px;box-shadow:var(--shadow-lg);max-height:280px;overflow:auto;z-index:40}
.picker-results div{padding:8px 12px;cursor:pointer;font-size:13.5px;border-bottom:1px solid var(--line)}
.picker-results div:hover{background:#f2f6ff}

/* ---------- charts ---------- */
.chart{display:flex;align-items:flex-end;gap:7px;height:210px;padding-top:10px}
.chart .bar{flex:1;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:5px;height:100%}
.chart .bar i{display:block;width:100%;background:linear-gradient(180deg,#5b8bff,var(--brand));border-radius:6px 6px 0 0;min-height:3px}
.chart .bar span{font-size:10.5px;color:var(--muted)}
.chart.h{flex-direction:column;align-items:stretch;height:auto;gap:9px}
.chart.h .row{display:grid;grid-template-columns:130px 1fr 74px;align-items:center;gap:9px;font-size:12.5px}
.chart.h .track{background:#eef2fb;border-radius:6px;height:11px;overflow:hidden}
.chart.h .fill{height:100%;background:linear-gradient(90deg,#5b8bff,var(--brand));border-radius:6px}

/* ---------- auth ---------- */
.auth-body{background:linear-gradient(135deg,#0d1730,#1f3a7a 55%,#3a2f86)}
.auth-wrap{min-height:100vh;display:grid;grid-template-columns:1.1fr .9fr;max-width:1100px;margin:0 auto;align-items:center;gap:30px;padding:30px 20px}
.auth-hero{color:#fff}
.auth-logo{width:52px;height:52px;border-radius:15px;background:rgba(255,255,255,.14);display:grid;place-items:center;font-size:24px;font-weight:800;margin-bottom:16px}
.auth-hero h1{font-size:2.1rem;margin-bottom:10px}
.auth-hero p{opacity:.82;line-height:1.7;max-width:460px}
.auth-points{list-style:none;padding:0;margin:20px 0 0;display:flex;flex-direction:column;gap:9px}
.auth-points li{padding-left:24px;position:relative;opacity:.9;font-size:14px}
.auth-points li:before{content:'✓';position:absolute;left:0;color:#7ef0c0;font-weight:700}
.auth-panel{background:#fff;border-radius:18px;padding:30px;box-shadow:var(--shadow-lg)}
.auth-title{margin:0 0 4px;font-size:1.4rem}
.auth-sub{color:var(--muted);margin:0 0 20px;font-size:13.5px}
.auth-foot{text-align:center;color:var(--muted);font-size:11.5px;margin:22px 0 0}

/* ---------- print ---------- */
.print-body{background:#eef1f7}
.print-wrap{max-width:900px;margin:22px auto;background:#fff;padding:28px;border-radius:12px}
.inv-head{display:flex;justify-content:space-between;gap:20px;border-bottom:2px solid var(--ink);padding-bottom:14px;margin-bottom:14px}
.inv-head h2{margin:0 0 5px}.inv-head p{margin:0;font-size:12.5px;color:#444}
.inv-party{display:flex;justify-content:space-between;margin-bottom:14px;font-size:13px}
.inv-table th{background:#f2f4fa}
.inv-totals{margin-top:14px;display:flex;flex-direction:column;align-items:flex-end;gap:4px;font-size:13.5px}
.inv-totals div{display:flex;justify-content:space-between;min-width:280px}
.inv-totals .grand{border-top:1px solid #333;padding-top:6px;font-weight:700;font-size:15px}
.inv-foot{margin-top:22px;color:var(--muted);font-size:11.5px;text-align:center}
.barcode-page{max-width:900px;margin:0 auto}
.labels{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.label{border:1px dashed #bbb;border-radius:8px;padding:8px;text-align:center;background:#fff}
.label-name{font-size:11px;font-weight:600;margin-bottom:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.label-bar svg{max-width:100%;height:auto}
.label-price{font-size:12px;font-weight:700}
@media print{.no-print,.topbar,.sidebar,.foot{display:none!important}.print-wrap{margin:0;border-radius:0;box-shadow:none}
  body{background:#fff}.main{margin:0}}

/* ---------- responsive ---------- */
@media(max-width:1200px){.grid>.col-8{grid-column:span 12}.grid>.col-4{grid-column:span 6}.grid>.col-7,.grid>.col-5{grid-column:span 12}}
@media(max-width:980px){
  .sidebar{transform:translateX(-100%)}
  .sidebar.open{transform:none}
  .sidebar-close{display:block}
  .main{margin-left:0}
  .only-mobile{display:grid}
  .only-desktop{display:none}
  .grid>[class^=col-]{grid-column:span 12}
  .auth-wrap{grid-template-columns:1fr}
  .auth-hero{display:none}
  .company-stats{grid-template-columns:1fr 1fr}
}
/* ---------- mobile tables: keep tabular layout ---------- */
@media(max-width:700px){
  .table-wrap{
    width:100%;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
  }

  .table{
    display:table;
    width:max-content;
    min-width:900px;
    border-collapse:collapse;
  }

  .table thead{
    display:table-header-group;
  }

  .table tbody{
    display:table-row-group;
  }

  .table tr{
    display:table-row;
    border:0;
    margin:0;
    padding:0;
    background:transparent;
  }

  .table td,
  .table th{
    display:table-cell;
    white-space:nowrap;
    padding:10px 12px;
    border-bottom:1px solid var(--line);
  }

  .table td{
    text-align:left;
  }

  .table td:before{
    content:none;
  }

  .table tbody tr:hover{
    background:#fafbff;
  }

  html[data-theme=dark] .table tbody tr:hover{
    background:#152038;
  }
}


/* ---------- hub / company picker + pay ---------- */
.hub-company{margin:0 0 14px}
.hub-company-form{display:flex;align-items:center;gap:8px;background:var(--panel);border:1px solid var(--line);border-radius:11px;padding:9px 12px}
.hub-company-label{font-size:9px;font-weight:800;letter-spacing:.12em;color:var(--muted)}
.hub-company-form select{border-color:var(--line);background:#f4f8ff;font-weight:700;color:#2d5cc1;max-width:280px;padding:6px 10px}
.hub-company-form .btn{margin-left:auto}
.pay-summary{background:var(--panel);border:1px solid var(--line);border-radius:13px;padding:16px 18px}
.pay-summary div{display:flex;justify-content:space-between;gap:12px;padding:7px 0;border-bottom:1px dashed var(--line);font-size:13.5px}
.pay-summary div:last-child{border:0}
.pay-summary span{color:var(--muted)}
.pay-amount{font-size:1.35rem;font-weight:750;letter-spacing:-.03em}
.pay-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:14px}
.pay-method{border:1px solid var(--line);border-radius:11px;padding:13px 14px;background:#fafbfe}
.pay-method h4{margin:0 0 9px;font-size:12.5px}
.pay-method-wide{grid-column:1/-1}
.upi-id{font-family:ui-monospace,Consolas,monospace;letter-spacing:.02em}
@media(max-width:700px){.hub-company-form{flex-wrap:wrap}.hub-company-form select{max-width:100%;flex:1}}

/* ========== VCS & RTC 2.0 extras ========== */
.topbar{background:var(--glass)!important;backdrop-filter:saturate(1.4) blur(16px);border-bottom:1px solid var(--line)}
.card{backdrop-filter:blur(8px);transition:transform .18s ease,box-shadow .18s ease,border-color .18s}
.card:hover{box-shadow:var(--shadow-lg)}
.kpi{position:relative;overflow:hidden;transition:transform .16s ease}
.kpi:hover{transform:translateY(-2px)}
.kpi:after{content:'';position:absolute;inset:auto -20% -40% auto;width:90px;height:90px;border-radius:50%;background:var(--brand);opacity:.06}
.btn{transition:transform .12s ease,box-shadow .12s ease,background .12s}
.btn:hover{transform:translateY(-1px)}
.btn-primary,.btn.primary{background:var(--grad);border:0;box-shadow:0 8px 18px rgba(79,70,229,.28)}
.search{border-radius:999px!important;padding-left:38px!important;background:var(--panel)!important}
.search-wrap:before{content:'';position:absolute;right:12px;top:50%;transform:translateY(-50%);font-size:10.5px;color:var(--muted);border:1px solid var(--line);border-radius:6px;padding:1px 6px;pointer-events:none}
.icon-btn,.user-btn,.company-switch select{border-radius:12px!important}
.nav-item{transition:background .15s,transform .12s}
.nav-item.active{background:var(--grad)!important}
.brand-logo{background:var(--grad)!important;box-shadow:0 8px 20px rgba(79,70,229,.35)}
.ver-pill{margin-left:8px;font-size:10px;font-weight:800;letter-spacing:.08em;background:rgba(255,255,255,.1);color:#c7d2fe;border-radius:999px;padding:2px 7px}
.kbd{font-family:ui-monospace,monospace;font-size:10.5px;border:1px solid var(--line);border-bottom-width:2px;border-radius:6px;padding:1px 5px;color:var(--muted);background:var(--panel)}



html[data-density=compact] .content{padding:14px}
html[data-density=compact] .card{padding:12px}
html[data-density=compact] .table td,html[data-density=compact] .table th{padding:7px 10px}
html[data-density=compact] .kpi{padding:10px 12px}

.cmdk{position:fixed;inset:0;background:rgba(8,13,24,.55);z-index:200;display:none;place-items:start center;padding:12vh 16px 16px;backdrop-filter:blur(8px)}
.cmdk.open{display:grid}
.cmdk-box{width:min(680px,100%);background:var(--panel);border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow-lg);overflow:hidden}
.cmdk-box input{width:100%;border:0;border-bottom:1px solid var(--line);padding:16px 18px;font-size:16px;background:transparent;color:var(--ink);outline:none}
.cmdk-list{max-height:380px;overflow:auto}
.cmdk-list a,.cmdk-list .cmdk-empty{display:flex;justify-content:space-between;gap:12px;padding:11px 18px;color:var(--ink);border-bottom:1px solid var(--line)}
.cmdk-list a:hover,.cmdk-list a.on{background:rgba(79,70,229,.08);text-decoration:none}
.cmdk-list small{color:var(--muted)}

.clock{font-variant-numeric:tabular-nums;font-size:12.5px;color:var(--muted);padding:0 8px}
.theme-fab{width:38px;height:38px}

html[data-theme=dark] .table th{background:#0d1526}
html[data-theme=dark] .table tbody tr:hover{background:#152038}
html[data-theme=dark] code{background:#1a2540;color:#c7d2fe}
html[data-theme=dark] .alert-success{background:#052e22;border-color:#065f46;color:#6ee7b7}
html[data-theme=dark] .alert-error{background:#4c0519;border-color:#9f1239;color:#fda4af}
html[data-theme=dark] .alert-warning{background:#451a03;border-color:#b45309;color:#fcd34d}
html[data-theme=dark] .alert-info{background:#172554;border-color:#1d4ed8;color:#93c5fd}
html[data-theme=dark] .prod-card,.lead-card,.company-card{background:var(--panel)}
html[data-theme=dark] .search-results{background:var(--panel)}
html[data-theme=dark] .dropdown-menu{background:var(--panel)}
html[data-theme=dark] input,html[data-theme=dark] select,html[data-theme=dark] textarea{background:#0d1526;color:var(--ink);border-color:var(--line)}
html[data-theme=dark] .auth-panel{background:var(--panel)}
html[data-theme=dark] .table tr{background:var(--panel)}

.progress{position:fixed;top:0;left:0;height:2px;width:0;background:var(--grad);z-index:300;transition:width .35s ease}

.quick-row{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 16px}
.quick-row a{font-size:12.5px}

/* ERP assistant: shared tokens, no dashboard layout changes. */
.assistant-launch{position:fixed;right:22px;bottom:22px;z-index:1100;width:58px;height:58px;border:0;border-radius:50%;background:var(--brand,#4f46e5);color:#fff;display:grid;place-items:center;box-shadow:0 8px 25px #0003;cursor:pointer}.assistant-panel{position:fixed;right:22px;bottom:92px;z-index:1101;width:min(440px,calc(100vw - 24px));height:min(680px,calc(100vh - 110px));height:min(680px,calc(100dvh - 110px));border:1px solid var(--line,#ddd);border-radius:18px;background:var(--panel,#fff);color:var(--ink,#172033);box-shadow:0 16px 60px #0003;display:flex;flex-direction:column;overflow:hidden;font:inherit}.assistant-panel[hidden]{display:none}.assistant-head{display:flex;gap:7px;align-items:center;padding:14px;background:var(--brand,#4f46e5);color:#fff}.assistant-head div{flex:1}.assistant-head small{display:block;font-size:10px;opacity:.85;margin-top:4px}.assistant-head button{border:0;background:#ffffff22;color:#fff;border-radius:7px;padding:5px 8px;cursor:pointer}.assistant-messages{padding:14px;overflow:auto;flex:1;min-height:80px}.assistant-message{margin:0 0 12px;padding:11px 13px;border-radius:12px;background:var(--bg,#f5f7fd);overflow-wrap:anywhere;font-size:13px}.assistant-message.user{margin-left:35px;background:var(--brand,#4f46e5);color:#fff}.assistant-message p{white-space:pre-wrap;margin:0 0 7px}.assistant-message table{font-size:11px}.assistant-message a{display:inline-block;margin:4px 5px 4px 0}.assistant-message audio{width:100%;height:34px}.assistant-status{padding:3px 14px;color:var(--muted,#687086);font-size:12px;min-height:22px}.assistant-status.error{color:#dc2626}.assistant-suggestions{display:flex;gap:5px;padding:0 12px 5px;overflow:auto;flex-shrink:0}.assistant-suggestions button{white-space:nowrap;border:1px solid var(--line,#ddd);border-radius:20px;background:var(--bg,#f5f7fd);color:inherit;padding:6px 10px;font-size:11px;cursor:pointer}.assistant-settings{padding:6px 14px;border-top:1px solid var(--line,#ddd);font-size:11px;max-height:170px;overflow:auto}.assistant-settings label{display:block;margin:7px 0}.assistant-settings select{width:auto}.assistant-settings p{color:var(--muted,#687086)}.assistant-form{padding:10px 14px;border-top:1px solid var(--line,#ddd)}.assistant-form textarea{width:100%;resize:none;min-height:50px;max-height:100px}.assistant-controls{display:flex;gap:6px;margin-top:7px}.assistant-controls button:last-child{margin-left:auto}.assistant-launch:focus-visible,.assistant-panel button:focus-visible{outline:3px solid #a5b4fc;outline-offset:3px}.assistant-recording{background:#dc2626!important;color:#fff!important}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(max-width:540px){.assistant-panel{right:12px;bottom:82px;height:calc(100vh - 100px);height:calc(100dvh - 100px);border-radius:14px}.assistant-launch{right:16px;bottom:16px;width:54px;height:54px}.assistant-settings{max-height:130px}}

.assistant-suggestions[hidden]{display:none}

.assistant-delete-warning{font-size:11px;color:var(--muted,#687086);margin:5px 14px}.assistant-cart{border-top:1px solid var(--line,#ddd);padding:8px 0;margin-top:5px}.assistant-cart label{display:block}.assistant-cart input{max-width:95px;margin:5px 8px}

/* Chat product catalogue and module navigation. */
.assistant-launch{width:auto;min-width:58px;padding:0 17px;display:flex;gap:9px;border-radius:30px;font:inherit;font-weight:600}.assistant-launch span{font-size:13px;white-space:nowrap}.assistant-product-slider{display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;padding:5px 1px 12px}.assistant-product-slider .assistant-product-card{flex:0 0 230px;width:230px;scroll-snap-align:start;border:1px solid #dbe3f3;border-radius:12px;box-shadow:0 4px 14px #0000000a;overflow:hidden;background:var(--panel,#fff);display:flex;flex-direction:column}.assistant-product-card .prod-img{height:100%;display:grid;place-items:center;background:var(--bg,#f4f6fa);flex-shrink:0}.assistant-product-card .prod-img img{width:100%;height:100%;object-fit:contain}.assistant-product-card .prod-body{padding:12px;display:flex;flex-direction:column;gap:7px;flex:1}.assistant-product-card h4{font-size:14px;margin:0}.assistant-product-card .prod-sku{font-size:11px;color:var(--muted,#6b7690)}.assistant-product-card .prod-price{font-size:16px;font-weight:700}.assistant-product-card .prod-price small{font-size:10px;font-weight:400}.assistant-product-badges,.assistant-slider-head{display:flex;align-items:center;justify-content:space-between;gap:6px}.assistant-slider-head strong{flex:1;font-size:12px}.assistant-product-add{margin-top:auto;display:flex;flex-wrap:wrap;gap:7px}.assistant-product-card .qty-control{display:flex;align-items:center;border:1px solid #cfd8e8;border-radius:7px;overflow:hidden;width:100px;height:34px}.assistant-product-card .qty-btn{width:27px;height:34px;border:0;background:#eef3fa;color:#16203a;cursor:pointer;font-size:17px;margin:0}.assistant-product-card .qty-input{width:46px!important;padding:0!important;height:34px;text-align:center;border:0;border-radius:0;font-size:12px}.assistant-product-info{font-size:11px;border-top:1px solid var(--line,#ddd);padding-top:7px}.assistant-product-info summary{cursor:pointer;font-weight:600}.assistant-product-info-body{max-height:230px;overflow:auto;margin-top:6px;white-space:pre-wrap}.assistant-product-info-body strong{display:block;margin-top:8px}.assistant-product-info-body p{font-size:11px}.assistant-product-section{margin-top:10px}.assistant-portal-links{display:flex;gap:6px;overflow:auto;padding:4px 12px;flex-shrink:0}.assistant-portal-links:empty{display:none}.assistant-portal-links a{white-space:nowrap;font-size:11px;padding:5px 8px;border:1px solid var(--line,#ddd);border-radius:7px}.assistant-workflows{display:grid;grid-template-columns:1fr;gap:6px}.assistant-workflows a{white-space:normal}@media(max-width:540px){.assistant-launch{width:auto;padding:0 13px}.assistant-product-slider .assistant-product-card{flex-basis:215px;width:215px}.assistant-head strong{font-size:13px}}

/* Conversational reply formatting, rendered safely as DOM nodes. */
.assistant-message.assistant{background:transparent;padding:8px 2px}.assistant-reply{line-height:1.65;font-size:13px}.assistant-reply p{margin:0 0 12px;white-space:pre-wrap}.assistant-reply-heading{font-size:14px;line-height:1.4;margin:16px 0 8px;color:var(--ink,#172033)}.assistant-reply-heading:first-child{margin-top:0}.assistant-reply ul,.assistant-reply ol{padding-left:22px;margin:7px 0 14px}.assistant-reply li{margin:6px 0}.assistant-reply a{display:inline;margin:0;color:var(--brand,#4f46e5);text-decoration:underline}.assistant-reply code{font-size:12px;background:var(--bg,#f4f6fa);padding:2px 4px;border-radius:4px}.assistant-reply pre{overflow:auto;background:var(--bg,#f4f6fa);padding:12px;border-radius:8px;white-space:pre}.assistant-reply pre code{padding:0;background:none}.assistant-reply table{margin:8px 0}


/* Green promotional cards and a separate inventory chat. */
.offer-session{margin-bottom:24px}.offer-session>h2{font-size:18px}.offer-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.offer-card{background:var(--panel,#fff);border:1px solid #bbdfc7;border-radius:18px;padding:24px;box-shadow:0 5px 20px #16653409}.offer-card h2{font-size:24px;margin:13px 0 8px}.offer-active{display:inline-block;background:#dcfce7;color:#166534;border-radius:20px;font-size:12px;font-weight:700;padding:6px 12px}.offer-description{color:var(--muted,#667085)}.offer-image{display:block;width:100%;height:180px;object-fit:contain;border-radius:12px;margin:14px 0}.offer-discount{font-size:clamp(36px,5vw,56px);line-height:1.15;font-weight:800;color:#15803d;margin:20px 0}.offer-example{background:#f0fdf4;color:#173b27;border:1px solid #c7ead1;border-radius:13px;padding:18px;margin:20px 0}.offer-example h3{font-size:14px;margin:0 0 16px}.offer-example>div{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:10px 0}.offer-example strong{font-size:21px;white-space:nowrap}.offer-saving,.offer-saving strong{color:#15803d}.offer-total{border-top:1px solid #bbdfc7;margin-top:7px;padding-top:17px!important}.offer-total strong{font-size:28px}.offer-example small,.offer-card>small{display:block;font-size:11px;line-height:1.6;color:var(--muted,#5f7165)}.offer-pending{padding:12px;border-radius:8px;background:var(--bg,#f5f7fb)}.offer-expiry{font-size:clamp(25px,4vw,36px);font-weight:800;line-height:1.25;color:#dc2626;margin:18px 0}#offerAccountPicker{margin-top:12px}#offerAccountPicker[hidden]{display:none}.inventory-chat-panel{width:min(520px,calc(100vw - 24px))}.inventory-chat-log>div{padding:12px 0;border-bottom:1px solid var(--line,#e5e7eb)}.inventory-chat-user{margin:8px 0 8px 35px;padding:10px 12px;background:var(--brand,#4f46e5);color:white;border-radius:12px;white-space:pre-wrap}.inventory-chat-log p{white-space:pre-wrap;line-height:1.65;font-size:13px}.inventory-chat-panel .assistant-controls small{font-size:10px;color:var(--muted,#667085)}[data-theme=dark] .offer-discount{color:#86efac}[data-theme=dark] .offer-example{background:#153021;color:#ecfdf5;border-color:#285139}[data-theme=dark] .offer-saving,[data-theme=dark] .offer-saving strong{color:#86efac}[data-theme=dark] .offer-expiry{color:#f87171}@media(max-width:760px){.offer-grid{grid-template-columns:1fr}.offer-card{padding:18px}.offer-example strong{font-size:18px}.offer-total strong{font-size:24px}}
/* Campaign banners and authorized dashboard product updates. */
.offer-slider-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.offer-slider-controls{display:flex;align-items:center;gap:9px;font-size:12px}.offer-slider-controls button,.product-flip-head button{border:1px solid var(--line,#dbe3f3);border-radius:7px;padding:5px 10px;background:var(--panel,#fff);color:var(--ink,#172033);cursor:pointer}.offer-banner-slider .offer-grid{display:block}.offer-banner-slider [data-slider-slide][hidden],.product-flip [data-slider-slide][hidden]{display:none!important}.offer-banner-slider .offer-card{position:relative;isolation:isolate;overflow:hidden;display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:8px 28px;border:0;border-radius:16px;padding:24px 30px;background:linear-gradient(118deg,#fff200 0%,#fff200 44%,#ff0064 44%,#ff0064 48%,#fff 48%);color:#151515;box-shadow:0 8px 22px #0002}.offer-banner-title{grid-column:1;grid-row:span 3;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;padding-right:20px}.offer-banner-slider .offer-active{background:#112619;color:#abffc1}.offer-ribbon{display:inline-block;transform:rotate(-3deg);background:#ff0064;color:#fff;font-size:clamp(15px,2.5vw,24px);font-weight:900;letter-spacing:1px;padding:7px 16px;margin:12px 0 4px;box-shadow:3px 3px 0 #151515}.offer-banner-slider .offer-card h2{background:#151515;color:#fff200;font-size:clamp(22px,3.6vw,38px);line-height:1.15;transform:rotate(-2deg);padding:12px 16px;overflow-wrap:anywhere}.offer-banner-slider .offer-discount{grid-column:2;grid-row:1;font-size:clamp(35px,5.5vw,68px);color:#101010;margin:0;font-weight:900}.offer-banner-slider .offer-description{grid-column:1;grid-row:auto;color:#202020;max-width:95%;overflow-wrap:anywhere}.offer-banner-slider .offer-image{grid-column:1;height:130px;margin:4px 0;background:#ffffffb3}.offer-banner-slider .offer-card>p:not(.offer-description),.offer-banner-slider .offer-expiry,.offer-banner-slider .offer-card>small,.offer-banner-slider .offer-example{grid-column:2;margin:4px 0}.offer-banner-slider .offer-example{background:#fff;border-color:#e1e5e9;padding:10px;color:#15211b;font-size:12px}.offer-example summary{font-size:12px;cursor:pointer;font-weight:700}.offer-banner-slider .offer-example>div{display:flex;justify-content:space-between;gap:8px;padding:7px 0}.offer-banner-slider .offer-expiry{color:#dc2626;font-size:clamp(21px,3vw,32px);font-variant-numeric:tabular-nums}.offer-banner-slider .offer-pending{font-size:12px;background:#fff5cd}.dashboard-product-highlights{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;width:min(680px,100%);margin:12px 0 20px auto}.product-flip{background:var(--panel,#fff);border:1px solid var(--line,#dbe3f3);border-radius:12px;padding:12px;min-width:0;perspective:800px}.product-flip-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:9px;font-size:13px}.product-flip-head button{font-size:10px;padding:3px 7px}.product-flip-item{display:flex;gap:10px;align-items:center;min-height:76px;color:inherit;text-decoration:none;transform-origin:center}.product-flip-item img{width:66px;height:66px;object-fit:contain;border-radius:8px;background:#fff}.product-flip-item>span{min-width:0;display:grid;gap:4px}.product-flip-item strong{font-size:13px;overflow-wrap:anywhere}.product-flip-item small{font-size:10px;color:var(--muted,#687086)}.product-flip-item b{font-size:13px}.slider-enter{animation:erp-flip-in .3s ease both}@keyframes erp-flip-in{from{transform:rotateX(-16deg);opacity:.35}to{transform:rotateX(0);opacity:1}}.lead-history-entry{border-bottom:1px solid var(--line,#dbe3f3);padding:10px 0;font-size:12px}.lead-history-entry p{white-space:pre-wrap;overflow-wrap:anywhere;margin:5px 0}#leadActivityHistory{max-height:220px;overflow:auto}.modal-box{max-height:90dvh;overflow-y:auto}@media(prefers-reduced-motion:reduce){.slider-enter{animation:none}}@media(max-width:640px){.dashboard-product-highlights{grid-template-columns:1fr}.offer-banner-slider .offer-card{display:flex;flex-direction:column;background:linear-gradient(150deg,#fff200 0%,#fff200 35%,#fff 35%);padding:20px}.offer-banner-title{padding:0}.offer-banner-slider .offer-image{height:110px}.offer-banner-slider .offer-description{margin:5px 0}.offer-slider-heading{align-items:flex-start}.offer-slider-controls{gap:4px}.offer-slider-controls button{padding:5px 7px}}

@media(min-width:641px){.offer-banner-slider .offer-minimum{grid-row:2}.offer-banner-slider .offer-period{grid-row:3}.offer-banner-slider .offer-example{grid-row:4}.offer-banner-slider .offer-expiry{grid-row:5}.offer-banner-slider .offer-card>small{grid-row:6}.offer-banner-slider .offer-actions,.offer-banner-slider .offer-pending{grid-row:7}.offer-banner-slider .offer-description{grid-row:4}.offer-banner-slider .offer-image{grid-row:5 / span 3}}
.product-auto-tags{display:flex;flex-wrap:wrap;gap:5px;margin:6px 0}.product-auto-tag{display:inline-flex;align-items:center;max-width:100%;font-size:10px;font-weight:700;line-height:1.5;border-radius:5px;padding:3px 7px;border:1px solid transparent;overflow-wrap:anywhere;background:#eef2ff;color:#3730a3}.product-auto-tag.tag-new{background:#dcfce7;color:#166534;border-color:#bbf7d0}.product-auto-tag.tag-restocked{background:#dbeafe;color:#1e40af;border-color:#bfdbfe}.product-auto-tag.tag-top-selling{background:#ffedd5;color:#9a3412;border-color:#fed7aa}.product-auto-tag.tag-top-product{background:#fef3c7;color:#92400e;border-color:#fde68a}.product-auto-tag.tag-trending{background:#fce7f3;color:#9d174d;border-color:#fbcfe8}.product-auto-tag.tag-frequent{background:#ede9fe;color:#5b21b6;border-color:#ddd6fe}.product-auto-tag.tag-documents{background:#e2e8f0;color:#334155;border-color:#cbd5e1}.product-flip-item .product-auto-tags{margin:2px 0}.product-flip-item .product-auto-tag{font-size:9px;padding:2px 5px}
.category-quick-filters{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 14px}.category-chip{display:inline-flex;align-items:center;padding:8px 14px;border-radius:20px;border:1px solid var(--line,#dbe3f3);background:var(--panel,#fff);color:var(--ink,#172033);text-decoration:none;font-size:12px;font-weight:600}.category-chip:hover,.category-chip.active{background:var(--brand,#4f46e5);border-color:var(--brand,#4f46e5);color:#fff}
.catalogue-inline-offers{grid-column:1 / -1;min-width:0;margin:10px 0}.offer-assigned-products{grid-column:1 / -1;grid-row:8;background:var(--panel,#fff);color:var(--ink,#172033);border:1px solid var(--line,#dbe3f3);border-radius:12px;padding:16px;margin-top:15px;min-width:0}.offer-product-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:14px}.offer-assigned-product{display:grid;grid-template-columns:110px minmax(0,1fr) minmax(130px,180px);gap:16px;align-items:center}.offer-assigned-product>img{width:110px;height:110px;object-fit:contain;border-radius:8px;background:white}.offer-assigned-product:not(:has(>img)){grid-template-columns:minmax(0,1fr) minmax(130px,180px)}.offer-assigned-product>div{display:grid;gap:6px}.offer-assigned-product small,.offer-assigned-products>small{font-size:11px;color:var(--muted,#687086);display:block;line-height:1.5}.offer-assigned-products>small{margin-top:12px}.offer-assigned-product form{display:grid;gap:8px}.offer-assigned-product form label{font-size:11px}.offer-assigned-product input[type=number]{width:100%;margin-top:5px}.offer-assigned-product p{margin:0;font-size:12px}.offer-assigned-products [data-slider-slide][hidden]{display:none!important}@media(max-width:640px){.offer-assigned-product,.offer-assigned-product:not(:has(>img)){grid-template-columns:1fr}.offer-assigned-product>img{height:100px;width:100px}.offer-product-heading{flex-wrap:wrap}.offer-assigned-products{padding:12px}}
.product-price-breakdown{display:grid;gap:5px;margin:6px 0 10px;font-size:11px}.product-price-breakdown>div{display:flex;align-items:center;justify-content:space-between;gap:10px}.product-price-breakdown del{color:var(--muted,#687086);text-decoration-thickness:1.5px}.product-price-saving{color:#15803d}.product-price-final{border-top:1px solid var(--line,#dbe3f3);padding-top:6px;font-size:12px}.product-price-breakdown small{display:block;font-size:9px;line-height:1.5;color:var(--muted,#687086)}
.product-auto-tag.tag-special-offer{background:#ffe4e6;color:#be123c;border-color:#fda4af}
.mrp-company-tool{margin-bottom:18px;padding:18px}.mrp-company-tool>summary{cursor:pointer;font-weight:700;font-size:15px}.mrp-company-tool form{margin:14px 0}.mrp-zero-warning{font-weight:700;color:#b91c1c}.lead-list-table{min-width:1120px}.lead-list-table th{white-space:nowrap}.lead-list-table td{vertical-align:top;max-width:250px;word-wrap: break-word;white-space: normal;overflow-wrap:anywhere}.lead-list-table td small{display:block;margin-top:5px;font-size:11px;color:var(--muted,#687086)}.lead-list-table td:first-child{min-width:100%}.lead-latest-activity{min-width:220px;white-space:pre-wrap;font-size:12px;line-height:1.6}.lead-latest-activity button{display:block;margin-top:8px}.lead-list-actions{display:flex;flex-wrap:wrap;gap:6px;min-width:180px}.lead-list-table time{display:block;font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap;color:#166534}.lead-list-table time.lead-overdue{color:#dc2626}
.lead-list-table td.lead-select-cell{min-width:36px;width:36px}.lead-list-table td.lead-name-cell{min-width:100%}
/* Lead presentation: temperatures, deadline warnings and count tabs. */ .lead-tabs{display:flex;gap:8px;overflow-x:auto;padding:8px 0 16px;align-items:center}.lead-tabs a{white-space:nowrap;--tab-bg:#eef2ff;--tab-ink:#3730a3;--tab-color:#4f46e5;background:var(--tab-bg);color:var(--tab-ink);border:none;text-decoration:none}.lead-tabs [data-lead-tab=new]{--tab-bg:#e0f2fe;--tab-ink:#075985;--tab-color:#0369a1}.lead-tabs [data-lead-tab=contacted]{--tab-bg:#ccfbf1;--tab-ink:#115e59;--tab-color:#0f766e}.lead-tabs [data-lead-tab=hot]{--tab-bg:#fee2e2;--tab-ink:#991b1b;--tab-color:#b91c1c}.lead-tabs [data-lead-tab=warm]{--tab-bg:#ffedd5;--tab-ink:#9a3412;--tab-color:#c2410c}.lead-tabs [data-lead-tab=cold]{--tab-bg:#dbeafe;--tab-ink:#1e40af;--tab-color:#1d4ed8}.lead-tabs [data-lead-tab=converted]{--tab-bg:#dcfce7;--tab-ink:#166534;--tab-color:#15803d}.lead-tabs [data-lead-tab=junk]{--tab-bg:#f1f5f9;--tab-ink:#334155;--tab-color:#475569}.lead-tabs [data-lead-tab=expired]{--tab-bg:#fce7f3;--tab-ink:#9d174d;--tab-color:#be185d}.lead-tabs a:hover,.lead-tabs a.active{background:var(--tab-color);color:#fff;border:none;text-decoration:none}.lead-tabs a.active{box-shadow:none;font-weight:800}.lead-tabs a:focus-visible{outline:3px solid var(--tab-color);outline-offset:3px}.lead-tabs b{margin-left:5px;border-radius:12px;padding:1px 6px;background:rgba(255,255,255,.3);font-variant-numeric:tabular-nums}.lead-temperature{display:inline-block;border-radius:20px;padding:3px 9px;font-size:12px;font-weight:700}.lead-temperature.tag-cool{background:#dbeafe;color:#1e40af}.lead-temperature.tag-warm{background:#ffedd5;color:#9a3412}.lead-temperature.tag-hot{background:#fee2e2;color:#991b1b}.lead-expiry{display:block;font-weight:800;color:#b91c1c;font-variant-numeric:tabular-nums;min-width:160px}.lead-transfer-tag{display:block;color:#166534;font-size:12px}.lead-list-table{min-width:1250px}
.support-image{display:block;max-width:min(100%,420px);max-height:320px;object-fit:contain;border-radius:10px;margin-top:12px}.support-message p{overflow-wrap:anywhere}.support-thread{max-width:100%}
.sheet-sync-switch{display:inline-flex;align-items:center;gap:9px;position:relative;cursor:pointer;margin:8px 0}.sheet-sync-switch input[type=checkbox]{position:absolute;left:0;width:42px;height:24px;opacity:0;z-index:1;cursor:pointer}.sheet-switch-track{display:inline-block;width:42px;height:24px;background:#64748b;border-radius:20px;flex-shrink:0;transition:background .15s}.sheet-switch-track:after{content:"";display:block;width:18px;height:18px;margin:3px;border-radius:50%;background:#fff;transition:transform .15s}.sheet-sync-switch input:checked+.sheet-switch-track{background:#15803d}.sheet-sync-switch input:checked+.sheet-switch-track:after{transform:translateX(18px)}.sheet-sync-switch input:focus-visible+.sheet-switch-track{outline:3px solid #6366f1;outline-offset:3px}.sheet-sync-switch small{display:block;color:#64748b}
.lead-contact-fields{border:1px solid var(--line,#dbe3f3);border-radius:10px;padding:12px;margin:10px 0}.lead-contact-fields legend{font-weight:700;padding:0 6px}#leadModal .modal-box{max-width:680px}.lead-contact-fields input[readonly]{background:var(--panel,#f8fafc)}
.lead-overdue-tag{background:#dc2626!important;color:#fff!important;margin-top:4px;font-weight:800}
.sheet-actions{display:flex;align-items:center;gap:6px;white-space:nowrap}.sheet-actions form{margin:0}.sheet-actions button{white-space:nowrap}[data-sheet-source]{min-width:175px}[data-sheet-source] small{display:block;margin-top:5px;color:var(--muted,#64748b)}[data-sheet-source] p{max-width:280px;overflow-wrap:anywhere;margin:7px 0}

[data-lead-tab=not_connected]{--tab-bg:#ede9fe;--tab-color:#6d28d9}[data-lead-expires]{color:#dc2626;font-weight:700}.lead-expired-tag{display:inline-block;background:#fee2e2;color:#b91c1c!important;padding:4px 9px;border-radius:7px}.lead-clock-colon{animation:lead-clock-blink 1s steps(2,start) infinite}@keyframes lead-clock-blink{to{opacity:0}}@media(prefers-reduced-motion:reduce){.lead-clock-colon{animation:none}}

/* Shared lead rows: temperature colors for active work; final status takes priority. */
.lead-list-table tbody tr[data-lead-status]{--lead-row-bg:#f0fdfa;--lead-row-hover:#ccfbf1}
.lead-list-table tbody tr[data-lead-status="NEW"],
.lead-list-table tbody tr[data-lead-status="ASSIGNED"]{--lead-row-bg:#f0f9ff;--lead-row-hover:#e0f2fe}
.lead-list-table tbody tr[data-lead-status="NOT_CONNECTED"]{--lead-row-bg:#f5f3ff;--lead-row-hover:#ede9fe}
.lead-list-table tbody tr[data-lead-temperature="COOL"],
.lead-list-table tbody tr[data-lead-temperature="COLD"]{--lead-row-bg:#eff6ff;--lead-row-hover:#dbeafe}
.lead-list-table tbody tr[data-lead-temperature="WARM"]{--lead-row-bg:#ffedd5;--lead-row-hover:#fed7aa}
.lead-list-table tbody tr[data-lead-temperature="HOT"]{--lead-row-bg:#fff1f2;--lead-row-hover:#ffe4e6}
.lead-list-table tbody tr[data-lead-status="CONVERTED"],
.lead-list-table tbody tr[data-lead-status="SUCCESS"]{--lead-row-bg:#f0fdf4;--lead-row-hover:#dcfce7}
.lead-list-table tbody tr[data-lead-status="NOT_INTERESTED"],
.lead-list-table tbody tr[data-lead-status="LOST"]{--lead-row-bg:#f1f5f9;--lead-row-hover:#e2e8f0}
.lead-list-table tbody tr[data-lead-status],
.lead-list-table tbody tr[data-lead-status]>td{background:var(--lead-row-bg)}
.lead-list-table tbody tr[data-lead-status]:hover,
.lead-list-table tbody tr[data-lead-status]:hover>td{background:var(--lead-row-hover)}
html[data-theme=dark] .lead-list-table tbody tr[data-lead-status]{--lead-row-bg:#102b2b;--lead-row-hover:#163b3b}
html[data-theme=dark] .lead-list-table tbody tr[data-lead-status="NEW"],
html[data-theme=dark] .lead-list-table tbody tr[data-lead-status="ASSIGNED"],
html[data-theme=dark] .lead-list-table tbody tr[data-lead-temperature="COOL"],
html[data-theme=dark] .lead-list-table tbody tr[data-lead-temperature="COLD"]{--lead-row-bg:#142640;--lead-row-hover:#1c3555}
html[data-theme=dark] .lead-list-table tbody tr[data-lead-status="NOT_CONNECTED"]{--lead-row-bg:#28203f;--lead-row-hover:#382b56}
html[data-theme=dark] .lead-list-table tbody tr[data-lead-temperature="WARM"]{--lead-row-bg:#38291b;--lead-row-hover:#4b3522}
html[data-theme=dark] .lead-list-table tbody tr[data-lead-temperature="HOT"]{--lead-row-bg:#3c2028;--lead-row-hover:#502b35}
html[data-theme=dark] .lead-list-table tbody tr[data-lead-status="CONVERTED"],
html[data-theme=dark] .lead-list-table tbody tr[data-lead-status="SUCCESS"]{--lead-row-bg:#153326;--lead-row-hover:#1c4633}
html[data-theme=dark] .lead-list-table tbody tr[data-lead-status="NOT_INTERESTED"],
html[data-theme=dark] .lead-list-table tbody tr[data-lead-status="LOST"]{--lead-row-bg:#26313f;--lead-row-hover:#344154}
.spare-banner-gallery{display:flex;gap:12px;overflow-x:auto;margin:15px 0}.spare-banner-gallery img{max-height:360px;max-width:min(700px,85vw);object-fit:contain;border-radius:10px}.step-toolbar{display:flex;gap:8px;flex-wrap:wrap}.step-viewer:fullscreen{background:#fff;overflow:auto;padding:15px}.step-viewer [data-step-meshes]{display:flex;flex-wrap:wrap;gap:12px;max-height:160px;overflow:auto}.spare-parts-table small{display:block}.spare-parts-table img{max-height:90px;object-fit:contain}

/* Shared responsive refinements for staff and customer portals. */
.grid>*{min-width:0}.main,.content,.card,.form,.prod-body{min-width:0}.content{max-width:100%;overflow-wrap:break-word}.table-wrap{max-width:100%;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}.table-wrap input[type=text],.table-wrap input:not([type]){max-width:100%}
.product-details-link{display:flex!important;justify-content:center;align-items:center;text-align:center;width:100%;background:#e0f2fe!important;color:#075985!important;border-color:#bae6fd!important;min-height:38px}.product-details-link:hover{background:#bae6fd!important;text-decoration:none}.product-detail-overview{display:grid;grid-template-columns:minmax(180px,280px) minmax(0,1fr);gap:22px;align-items:start}
.part-parent-assignment{border:1px solid var(--line);border-radius:10px;padding:12px;margin:12px 0}.part-parent-assignment legend{font-weight:700;padding:0 6px}.part-parent-assignment .table-wrap{max-height:380px;overflow:auto}.part-parent-assignment td:nth-child(2){min-width:200px}.part-parent-assignment input[type=search]{width:100%;margin-bottom:10px}
.product-tabs{max-width:100%;overflow-x:auto;scrollbar-width:thin}.product-tabs .tab{flex-shrink:0}.step-toolbar{gap:8px}.step-toolbar .btn{min-height:40px}[data-followup-range]:not([hidden]){display:flex;gap:8px;flex-wrap:wrap}
html[data-theme=dark] .product-details-link{background:#15334b!important;color:#bae6fd!important;border-color:#31556f!important}
@media(max-width:1024px){.filters>label{flex:1 1 170px;min-width:0}.filters>label select,.filters>label input{width:100%;max-width:100%}.page-head{gap:12px;flex-wrap:wrap}.head-actions{display:flex;flex-wrap:wrap;gap:8px}.dropdown-menu.wide{max-width:min(380px,calc(100vw - 24px))}}
@media(max-width:700px){.content{padding:12px}.grid{gap:12px}.grid>[class*=col-]{grid-column:1/-1}.product-detail-overview{grid-template-columns:minmax(0,1fr);gap:15px}.product-detail-overview>.prod-img{min-height:160px!important}.filters{align-items:stretch}.filters>input,.filters>select,.filters>label{flex:1 1 100%;max-width:100%;width:100%;min-width:0}.filters input,.filters select{max-width:100%;min-width:0}.form-actions{display:flex;flex-wrap:wrap;gap:8px}.form-actions>.btn{flex:1 1 140px;justify-content:center}.modal{padding:8px}.modal-box{width:100%;max-height:calc(100dvh - 16px);padding:14px}.product-tabs{display:flex;flex-wrap:nowrap;gap:6px}.spare-parts-table{min-width:650px}.spare-banner-gallery img{max-width:85vw;max-height:260px}[data-step-canvas]{height:340px!important}.step-toolbar>.btn{flex:1 1 130px}.topbar{gap:6px;padding:8px 10px}.topbar-right{gap:5px}.btn,.icon-btn{touch-action:manipulation}.product-detail-overview input[type=number],.part-parent-assignment input,.part-parent-assignment select{font-size:16px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important;animation-iteration-count:1!important}}
.product-load-more{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:12px;padding:18px 8px}.product-load-more [role=status]{font-size:13px;color:var(--muted)}.media-unavailable{object-fit:contain;background:#eef2f7;color:#64748b}video{max-width:100%;height:auto}
.spare-part-number{display:inline-flex;align-items:center;justify-content:center;min-width:48px;min-height:44px;padding:6px 12px;border:1px solid #93c5fd;border-radius:10px;background:#eff6ff;color:#1d4ed8;font:800 20px/1.2 ui-monospace,SFMono-Regular,Consolas,monospace;font-variant-numeric:tabular-nums;letter-spacing:.06em;box-shadow:0 2px 5px #1d4ed80a}.spare-part-number-input{font-family:ui-monospace,SFMono-Regular,Consolas,monospace!important;font-weight:700;text-align:center;font-variant-numeric:tabular-nums;letter-spacing:.04em;border-color:#93c5fd!important;background:#eff6ff!important;color:#1d4ed8!important}.spare-part-number-input:disabled{opacity:.45}html[data-theme=dark] .spare-part-number,html[data-theme=dark] .spare-part-number-input{background:#172e4d!important;color:#bfdbfe!important;border-color:#3b5f88!important}@media(max-width:640px){.spare-part-number{min-width:40px;min-height:38px;font-size:18px}}
/* Short numbered parts use colored circles; long part codes remain fully readable. */
.spare-part-number{--part-fill:#eff6ff;--part-ink:#1d4ed8;--part-line:#93c5fd;width:48px;height:48px;min-width:48px;min-height:48px;padding:0;border-radius:50%;background:var(--part-fill);color:var(--part-ink);border-color:var(--part-line);letter-spacing:0;font-size:20px;box-shadow:0 3px 9px #17203312}.spare-part-number[data-part-tone="1"]{--part-fill:#dbeafe;--part-ink:#1d4ed8;--part-line:#93c5fd}.spare-part-number[data-part-tone="2"]{--part-fill:#dcfce7;--part-ink:#166534;--part-line:#86efac}.spare-part-number[data-part-tone="3"]{--part-fill:#ede9fe;--part-ink:#6d28d9;--part-line:#c4b5fd}.spare-part-number[data-part-tone="4"]{--part-fill:#fef3c7;--part-ink:#92400e;--part-line:#fcd34d}.spare-part-number[data-part-tone="0"]{--part-fill:#ffe4e6;--part-ink:#be123c;--part-line:#fda4af}.spare-part-number[data-part-long]{width:auto;max-width:180px;height:auto;min-height:48px;padding:6px 10px;border-radius:12px;font-size:14px;overflow-wrap:anywhere}html[data-theme=dark] .spare-part-number{background:var(--part-ink)!important;color:var(--part-fill)!important;border-color:var(--part-line)!important}@media(max-width:640px){.spare-part-number{width:40px;height:40px;min-width:40px;min-height:40px;font-size:18px}.spare-part-number[data-part-long]{width:auto;height:auto;min-height:40px;font-size:13px}}
.spare-qty-control{display:inline-flex;align-items:center;justify-content:center;border:1px solid #bfdbfe;border-radius:9px;background:var(--panel,#fff);overflow:hidden;min-height:40px}.spare-qty-control button{border:0;border-radius:0;background:#e0f2fe;color:#075985;width:34px;height:40px;font-size:22px;font-weight:700;cursor:pointer}.spare-qty-control .spare-qty-input{width:55px!important;min-width:0!important;border:0;border-left:1px solid #bfdbfe;border-right:1px solid #bfdbfe;border-radius:0;padding:4px!important;text-align:center;font-size:16px;font-weight:700;background:transparent}.spare-qty-input::-webkit-inner-spin-button,.spare-qty-input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.spare-qty-input{-moz-appearance:textfield;appearance:textfield}.spare-qty-control button:disabled{opacity:.4;cursor:not-allowed}html[data-theme=dark] .spare-qty-control button{background:#173a53;color:#bae6fd}
.product-search-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;white-space:nowrap}.product-search-button svg{flex-shrink:0}

.product-search-field{position:relative;flex:1;min-width:210px;max-width:640px}.product-search-field input{width:100%;padding-right:100px!important}.product-search-field .product-search-button{position:absolute;right:5px;top:50%;transform:translateY(-50%);border:0;box-shadow:none;padding:6px 9px;min-height:30px;background:var(--brand);color:#fff;border-radius:7px}
.catalogue-link-row{display:grid;grid-template-columns:1fr 150px 2fr auto;gap:10px;align-items:center;margin:12px 0}.catalogue-link-row input{min-width:0}
.chart{gap:12px;padding:28px 12px 8px;border-radius:12px;background:repeating-linear-gradient(to top,transparent 0,transparent calc(25% - 1px),var(--line) 25%);overflow-x:auto;min-height:240px}.chart .bar{min-width:32px;position:relative}.chart .bar i{max-height:78%;background:linear-gradient(180deg,#60a5fa,#4f46e5);box-shadow:0 4px 10px #4f46e522;border-radius:8px 8px 2px 2px}.chart .bar:nth-child(3n+2) i{background:linear-gradient(180deg,#5eead4,#0d9488)}.chart .bar:nth-child(3n) i{background:linear-gradient(180deg,#c4b5fd,#7c3aed)}.chart-value{font-size:11px;color:var(--text);font-variant-numeric:tabular-nums}.chart .bar:hover i,.chart .bar:focus i{filter:brightness(1.15)}.chart .bar span{text-align:center;overflow-wrap:anywhere}.chart.h{background:transparent;padding:14px 4px;min-height:0}.chart.h .row{grid-template-columns:minmax(80px,140px) minmax(60px,1fr) 70px;padding:8px 0;border-bottom:1px solid var(--line)}.chart.h .track{height:13px;background:var(--line)}.chart.h .fill{display:block;background:linear-gradient(90deg,#38bdf8,#6366f1)}.chart.h .row:nth-child(even) .fill{background:linear-gradient(90deg,#2dd4bf,#0d9488)}
@media(max-width:650px){.catalogue-link-row{grid-template-columns:1fr}.chart{gap:8px}.chart.h .row{grid-template-columns:90px minmax(50px,1fr) 55px;font-size:11px}}
