:root{--bg:#eef9fc;--card:#fff;--line:#d7e8ff;--soft:#f7fbff;--text:#0f1f33;--muted:#63738a;--blue:#2463eb;--red:#dc2626;--green:#16a34a;--orange:#ea580c;--purple:#7c3aed;--shadow:0 20px 54px rgba(37,99,235,.12)}
*{box-sizing:border-box}
html,body{margin:0;padding:0;scroll-behavior:smooth}
body{min-width:1180px;color:var(--text);background:radial-gradient(circle at 8% 6%,rgba(96,165,250,.18),transparent 28%),radial-gradient(circle at 90% 10%,rgba(6,182,212,.12),transparent 26%),linear-gradient(180deg,#eef9fc 0%,#f8fbff 48%,#fff 100%);font-family:"PingFang SC","Microsoft YaHei",-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
a{text-decoration:none;color:inherit}button,input,select{font-family:inherit}
#priceCenter,#todayTab,#historyTab,#lowestTab,#intelDesk{scroll-margin-top:118px}
.wx-shell{max-width:1300px;margin:0 auto;padding:12px 14px}
.wx-topbar{display:flex;align-items:center;justify-content:space-between;gap:14px;background:rgba(255,255,255,.95);border:1px solid rgba(191,219,254,.9);border-radius:22px;padding:11px 14px;box-shadow:0 16px 40px rgba(37,99,235,.10);position:sticky;top:8px;z-index:30;backdrop-filter:blur(18px)}
.wx-brand{display:flex;align-items:center;gap:10px}.wx-logo{width:42px;height:42px;border-radius:14px;background:linear-gradient(135deg,var(--blue),#60a5fa);color:#fff;display:grid;place-items:center;font-weight:950;box-shadow:0 12px 28px rgba(36,99,235,.24)}.wx-brand b{display:block;font-size:19px;letter-spacing:-.02em}.wx-brand small{display:block;color:var(--muted);font-weight:760;margin-top:2px}
.wx-nav{display:flex;gap:8px;flex-wrap:wrap}.wx-nav a,.wx-btn,.wx-small-btn,.wx-chip,.wx-tabs button{border:1px solid #bfdbfe;background:#fff;color:var(--blue);border-radius:999px;font-weight:950;cursor:pointer;white-space:nowrap;transition:.16s ease}.wx-nav a{padding:8px 12px}.wx-btn{min-height:38px;padding:0 14px}.wx-btn.primary,.wx-small-btn.primary,.wx-chip.active,.wx-tabs button.active{color:#fff;background:linear-gradient(135deg,var(--blue),#1d4ed8);border-color:var(--blue);box-shadow:0 10px 22px rgba(37,99,235,.20)}.wx-btn.ghost{background:#f8fbff}
.wx-hero{display:grid;grid-template-columns:1.45fr .55fr;gap:12px;margin-top:12px}.wx-hero-main,.wx-hero-kpis,.wx-price,.wx-side-card{background:rgba(255,255,255,.92);border:1px solid rgba(191,219,254,.92);border-radius:22px;box-shadow:var(--shadow);backdrop-filter:blur(14px)}
.wx-hero-main{padding:20px 24px}.wx-live-line{display:flex;align-items:center;gap:9px;color:var(--blue);font-size:12px;font-weight:950;letter-spacing:.08em}.wx-live-line span{width:9px;height:9px;background:#22c55e;border-radius:999px;box-shadow:0 0 0 6px rgba(34,197,94,.12)}.wx-live-line em{font-style:normal;color:var(--muted);letter-spacing:0;margin-left:auto}.wx-hero h1{font-size:32px;line-height:1.12;letter-spacing:-.04em;margin:11px 0 7px;font-weight:950}.wx-hero p{font-size:14px;line-height:1.6;color:var(--muted);font-weight:820;margin:0}.wx-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:12px}
.wx-hero-kpis{padding:11px;display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.wx-hero-kpis div{border:1px solid var(--line);background:#fff;border-radius:15px;padding:11px;min-height:78px}.wx-hero-kpis span{display:block;color:var(--muted);font-weight:850;font-size:12px}.wx-hero-kpis b{display:block;color:var(--blue);font-size:25px;margin-top:3px;letter-spacing:-.03em;font-weight:950}.wx-hero-kpis small{display:block;color:#94a3b8;font-weight:820;margin-top:3px}
.wx-main{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:12px;margin-top:10px;align-items:start}.wx-price{padding:13px}
.wx-price-member-note,.wx-price-update-bar{border:1px solid #dbeafe;background:#fff;border-radius:18px;padding:10px 13px;display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:9px}.wx-price-member-note b{color:var(--blue)}.wx-price-member-note span{color:#64748b;font-weight:900}.wx-price-member-note a{color:var(--blue);font-weight:950;white-space:nowrap}
.wx-update-left{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-weight:950;color:#334155}.wx-update-dot{width:13px;height:13px;border-radius:999px;background:#22c55e;box-shadow:0 0 0 7px rgba(34,197,94,.12)}.wx-update-left strong{font-size:17px}.wx-update-left em{display:inline-flex;align-items:center;min-height:30px;padding:0 12px;border:1px solid #bfdbfe;border-radius:999px;color:var(--blue);background:#eff6ff;font-style:normal;font-weight:950}.wx-update-right{color:#64748b;font-weight:900;white-space:nowrap}
.wx-query-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 0}.wx-query-title{display:flex;align-items:center;gap:11px}.wx-query-mark{width:8px;height:44px;border-radius:999px;background:linear-gradient(180deg,#2563eb,#60a5fa);box-shadow:0 10px 22px rgba(37,99,235,.22)}.wx-query-head h2{font-size:26px;margin:0;letter-spacing:-.02em;font-weight:950}.wx-query-head p{color:var(--muted);font-weight:850;margin:4px 0 0;font-size:13px}.wx-status{border:1px solid #bbf7d0;background:#f0fdf4;color:#16a34a;border-radius:999px;padding:8px 12px;font-weight:950;white-space:nowrap}
.wx-price-metrics{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-top:2px;padding:8px 10px;border:1px solid var(--line);background:#f8fbff;border-radius:14px;color:var(--muted);font-weight:900}.wx-price-metrics span{display:inline-flex;align-items:center;gap:5px;border:1px solid #e2e8f0;background:#fff;border-radius:999px;padding:5px 10px}.wx-price-metrics b{color:var(--blue);font-size:16px}.wx-price-metrics .up b{color:var(--red)}.wx-price-metrics .down b{color:var(--green)}.wx-price-metrics .flat b{color:var(--muted)}.wx-price-metrics .member b{color:var(--purple)}
.wx-control-panel{margin-top:8px;border:1px solid var(--line);background:rgba(255,255,255,.96);border-radius:16px;padding:9px}.wx-search{display:grid;grid-template-columns:minmax(220px,1fr) auto auto auto auto;gap:7px}.wx-search input,.wx-history-query-grid input,.wx-history-query-grid select{height:38px;border:1px solid #bfdbfe;border-radius:999px;background:#fff;color:var(--text);padding:0 14px;outline:none;font-size:14px;font-weight:850}.wx-filter-line{display:flex;align-items:flex-start;gap:7px;margin-top:7px;padding-top:7px;border-top:1px solid #eef4ff}.wx-filter-line>span{display:inline-flex;align-items:center;justify-content:center;min-width:46px;min-height:28px;padding:0 9px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:999px;color:#475569;font-weight:950}.wx-chip-row{display:flex;gap:6px;flex-wrap:wrap}.wx-chip{min-height:28px;padding:0 10px;font-size:12px}.wx-count{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:18px;margin-left:5px;padding:0 6px;border-radius:999px;background:#eff6ff;color:var(--blue);font-size:11px}.wx-chip.active .wx-count{background:rgba(255,255,255,.18);color:#fff}
.wx-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px;border:1px solid var(--line);background:#f8fbff;border-radius:16px;padding:8px}.wx-tabs button{min-height:34px;padding:0 14px}.wx-tab-panel{display:none}.wx-tab-panel.active{display:block}
.wx-table-toolbar{margin-top:8px;padding:8px 10px;border:1px solid var(--line);background:#f8fbff;border-radius:13px;color:var(--muted);font-weight:850;display:flex;align-items:center;justify-content:space-between;gap:10px}.wx-table-toolbar>div:last-child{display:flex;gap:6px;flex-wrap:wrap}.wx-table-wrap{margin-top:8px;border:1px solid var(--line);border-radius:16px;overflow:auto;background:#fff}.wx-table{width:100%;border-collapse:collapse;min-width:880px;table-layout:fixed}.wx-table th,.wx-table td{padding:8px 9px;border-bottom:1px solid #edf4ff;text-align:left}.wx-table th{position:sticky;top:0;background:#f8fbff;color:#475569;font-size:12px;font-weight:950;z-index:2}.wx-table td{font-size:13px;font-weight:850;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.wx-table th:nth-child(1),.wx-table td:nth-child(1){width:170px}.wx-table th:nth-child(2),.wx-table td:nth-child(2){width:120px}.wx-table th:nth-child(3),.wx-table td:nth-child(3){width:86px}.wx-table th:nth-child(4),.wx-table td:nth-child(4){width:92px}.wx-table th:nth-child(5),.wx-table td:nth-child(5){width:62px}.wx-table th:nth-child(6),.wx-table td:nth-child(6){width:96px}.wx-table th:nth-child(7),.wx-table td:nth-child(7){width:70px}.wx-row{cursor:pointer}.wx-row:hover td{background:#f8fbff}.wx-price-num{display:inline-flex;align-items:center;justify-content:center;min-width:70px;height:28px;padding:0 10px;border:1px solid #bfdbfe;background:#eff6ff;color:var(--blue);border-radius:999px;font-weight:950}.wx-price-locked{display:inline-flex;align-items:center;justify-content:center;min-width:84px;height:28px;padding:0 10px;border:1px solid #ddd6fe;background:#f5f3ff;color:#7c3aed;border-radius:999px;font-weight:950}.wx-up{color:var(--red)!important;font-weight:950}.wx-down{color:var(--green)!important;font-weight:950}.wx-flat{color:var(--muted)!important;font-weight:950}.wx-company{font-weight:950;color:#0f1f33}.wx-date{white-space:nowrap}.wx-op{border:1px solid #bfdbfe;background:#fff;color:var(--blue);border-radius:999px;padding:4px 8px;font-weight:950;cursor:pointer;font-size:12px}.wx-empty{text-align:center!important;padding:30px!important;color:var(--muted)!important;font-weight:950!important}.wx-pager{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-top:8px;color:var(--muted);font-weight:900}.wx-pager-actions{display:flex;gap:6px;flex-wrap:wrap}.wx-small-btn{min-height:30px;padding:0 11px}
.wx-history-query-panel{margin-top:10px}.wx-history-query-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:12px}.wx-history-query-head h3{margin:4px 0;font-size:22px;color:#0f1f33}.wx-history-query-head p{margin:0;color:#64748b;font-weight:820;line-height:1.55}.wx-history-query-grid{display:grid;grid-template-columns:1fr 1fr 1fr 120px auto;gap:9px;margin-bottom:10px}.wx-history-query-summary{border:1px solid #dbeafe;background:#f8fbff;color:#64748b;border-radius:14px;padding:10px 12px;font-weight:850;line-height:1.6;margin-bottom:10px}.wx-history-query-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:9px;margin-bottom:10px}.wx-history-query-metrics div{border:1px solid #dbeafe;background:#fff;border-radius:15px;padding:11px}.wx-history-query-metrics span{display:block;color:#64748b;font-size:12px;font-weight:900}.wx-history-query-metrics b{display:block;margin-top:5px;font-size:20px;color:#2463eb}.wx-history-query-body{display:grid;grid-template-columns:1.08fr .92fr;gap:10px}.wx-history-query-card,.wx-lowest-card{border:1px solid #dbeafe;background:#fff;border-radius:16px;padding:12px;min-height:220px}.wx-history-query-full{margin-top:10px;min-height:0}.wx-history-query-card-head{display:flex;justify-content:space-between;gap:10px;margin-bottom:10px}.wx-history-query-card-head b{color:#0f1f33;font-size:15px}.wx-history-query-card-head span{color:#64748b;font-size:12px;font-weight:850}.wx-history-empty{color:#64748b;font-weight:900;text-align:center;padding:28px 10px}.wx-history-query-chart{min-height:220px;display:grid;place-items:center}.wx-history-query-chart svg{width:100%;height:220px;overflow:visible}.wx-history-query-chart .area{fill:rgba(37,99,235,.08)}.wx-history-query-chart .line{fill:none;stroke:#2463eb;stroke-width:3}.wx-history-query-chart .dot{fill:#2463eb}.wx-history-query-chart .label{fill:#64748b;font-size:11px}
.wx-history-query-company,.wx-lowest-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:8px;align-items:center;border:1px solid #edf4ff;background:#f8fbff;border-radius:13px;padding:8px 10px;font-size:13px;font-weight:850;margin-bottom:8px}.wx-history-query-company.lowest,.wx-lowest-row.lowest{border-color:#fecaca;background:#fff7f7}.wx-history-query-company b,.wx-lowest-row b{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.wx-history-query-company span,.wx-lowest-row span{color:#64748b;font-size:12px;font-weight:850}.wx-history-query-company em,.wx-lowest-row em{color:#2463eb;font-style:normal;font-weight:950}.wx-history-query-day{display:grid;grid-template-columns:auto 1fr auto auto;gap:10px;align-items:center;border:1px solid #edf4ff;background:#f8fbff;border-radius:13px;padding:8px 10px;font-size:12px;font-weight:850;margin-bottom:8px}.wx-history-query-day time{color:#64748b;white-space:nowrap}.wx-history-query-day b{color:#0f1f33}.wx-history-query-day em{color:#2563eb;font-style:normal;font-weight:950}.wx-history-query-day small{color:#94a3b8;font-weight:850}
.wx-lowest-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-top:10px;margin-bottom:10px}.wx-lowest-head h3{margin:4px 0;font-size:22px}.wx-lowest-head p{margin:0;color:#64748b;font-weight:820}.wx-lowest-tip{border:1px solid #fed7aa;background:#fff7ed;color:#9a3412;border-radius:999px;padding:8px 12px;font-weight:950;white-space:nowrap}.wx-lowest-list{display:grid;gap:10px}.wx-lowest-card{min-height:0}.wx-lowest-card h4{margin:0 0 8px;font-size:16px}.wx-lowest-meta{color:#64748b;font-weight:850;font-size:12px;margin-bottom:8px}
.wx-side{display:grid;gap:12px}.wx-side-card{padding:13px}.wx-side-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:9px}.wx-side-head h3{margin:0;font-size:18px}.wx-side-head p{margin:4px 0 0;color:var(--muted);font-size:12px;font-weight:850}.wx-side-head span{display:inline-flex;border:1px solid #bfdbfe;background:#eff6ff;color:var(--blue);border-radius:999px;padding:5px 9px;font-weight:950;font-size:12px}.wx-board-list,.wx-stream-list{display:grid;gap:8px}.wx-board-item,.wx-news-item{border:1px solid var(--line);background:#f8fbff;border-radius:14px;padding:10px}.wx-board-item b,.wx-news-item b{display:block;line-height:1.42}.wx-board-item span,.wx-news-item p{display:block;margin-top:5px;color:var(--muted);line-height:1.5;font-size:12px;font-weight:760}.wx-ai-box{border:1px solid var(--line);background:linear-gradient(135deg,#f8fbff,#fff);border-radius:16px;padding:12px}.wx-ai-box b{font-size:17px}.wx-ai-box p{color:var(--muted);line-height:1.65;font-weight:780}.wx-footer{text-align:center;color:var(--muted);font-size:13px;margin:18px 0 8px}
@media(max-width:1180px){body{min-width:0}.wx-main,.wx-hero{grid-template-columns:1fr}.wx-daily,.wx-history-query-grid,.wx-history-query-body{grid-template-columns:1fr}.wx-search{grid-template-columns:1fr}} 

/* ===== WXSSC V34.1 Query Cards ===== */

.wx-query-cards{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:9px;
  margin-top:10px;
}

.wx-query-card{
  text-align:left;
  border:1px solid #dbeafe;
  background:linear-gradient(180deg,#fff 0%,#f8fbff 100%);
  border-radius:16px;
  padding:12px;
  cursor:pointer;
  transition:.16s ease;
}

.wx-query-card:hover{
  transform:translateY(-1px);
  box-shadow:0 12px 24px rgba(37,99,235,.10);
  border-color:#93c5fd;
}

.wx-query-card.active{
  border-color:#2563eb;
  background:linear-gradient(135deg,#eff6ff 0%,#fff 100%);
  box-shadow:0 12px 26px rgba(37,99,235,.12);
}

.wx-query-card span{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:30px;
  height:24px;
  border-radius:999px;
  background:#eff6ff;
  color:#2563eb;
  font-size:12px;
  font-weight:950;
  margin-bottom:8px;
}

.wx-query-card.active span{
  background:#2563eb;
  color:#fff;
}

.wx-query-card b{
  display:block;
  color:#0f1f33;
  font-size:17px;
  font-weight:950;
  letter-spacing:-.02em;
}

.wx-query-card small{
  display:block;
  margin-top:5px;
  color:#64748b;
  line-height:1.45;
  font-size:12px;
  font-weight:820;
}

.wx-tabs{
  margin-top:9px !important;
}

.wx-history-query-summary b{
  color:#2563eb;
}

.wx-lowest-card{
  box-shadow:0 8px 22px rgba(37,99,235,.06);
}

.wx-lowest-card h4{
  color:#0f1f33;
  font-weight:950;
  letter-spacing:-.01em;
}

.wx-lowest-meta b{
  color:#2563eb;
}

.wx-price-member-note{
  font-size:15px;
}

.wx-price-member-note b{
  font-size:16px;
}

.wx-table td:nth-child(1){
  font-weight:950;
}

.wx-table td:nth-child(2){
  font-weight:950;
}

.wx-table td:nth-child(4){
  font-size:14px;
}

@media(max-width:900px){
  .wx-query-cards{
    grid-template-columns:1fr;
  }
}

/* ===== WXSSC V34.2 Supplier Price Center ===== */

.wx-supplier-schedule{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:8px;
  margin-bottom:9px;
}

.wx-supplier-schedule div{
  border:1px solid #dbeafe;
  background:linear-gradient(180deg,#ffffff 0%,#f8fbff 100%);
  border-radius:15px;
  padding:10px 12px;
}

.wx-supplier-schedule b{
  display:block;
  color:#0f1f33;
  font-size:16px;
  font-weight:950;
  letter-spacing:-.01em;
}

.wx-supplier-schedule span{
  display:block;
  margin-top:4px;
  color:#64748b;
  font-size:12px;
  font-weight:850;
}

.wx-price-member-note{
  background:linear-gradient(135deg,#ffffff 0%,#f8fbff 100%) !important;
}

.wx-price-member-note b{
  font-size:17px;
}

.wx-update-left em:nth-of-type(1),
.wx-update-left em:nth-of-type(2){
  background:#eff6ff;
  color:#2563eb;
}

.wx-update-right{
  color:#334155 !important;
  font-weight:950 !important;
}

.wx-price-metrics .supplier{
  border-color:#bfdbfe;
  color:#2563eb;
}

.wx-price-metrics .supplier b{
  color:#2563eb;
}

.wx-query-card b{
  font-size:18px;
}

.wx-table th:nth-child(2),
.wx-table td:nth-child(2){
  font-weight:950;
}

.wx-table td:nth-child(1){
  font-weight:950;
}

.wx-price-locked{
  min-width:88px;
}

.wx-side-card .wx-board-item:first-child{
  background:linear-gradient(135deg,#fff 0%,#eff6ff 100%);
}

@media(max-width:900px){
  .wx-supplier-schedule{
    grid-template-columns:repeat(2,1fr);
  }
}

@media(max-width:600px){
  .wx-supplier-schedule{
    grid-template-columns:1fr;
  }
}

/* ===== WXSSC V34.3 Supplier Detail Link ===== */

.wx-supplier-detail-panel{
  margin-top:10px;
  border:1px solid #dbeafe;
  background:linear-gradient(180deg,#ffffff 0%,#f8fbff 100%);
  border-radius:18px;
  padding:14px;
}

.wx-supplier-detail-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  margin-bottom:12px;
}

.wx-supplier-detail-head h3{
  margin:4px 0;
  color:#0f1f33;
  font-size:22px;
  font-weight:950;
}

.wx-supplier-detail-head p{
  margin:0;
  color:#64748b;
  font-weight:820;
  line-height:1.55;
}

.wx-supplier-detail-status{
  border:1px solid #ddd6fe;
  background:#f5f3ff;
  color:#7c3aed;
  border-radius:999px;
  padding:8px 12px;
  font-weight:950;
  white-space:nowrap;
}

.wx-supplier-detail-body{
  display:grid;
  grid-template-columns:1fr 1.15fr 180px;
  gap:10px;
  align-items:stretch;
}

.wx-supplier-main,
.wx-supplier-fields,
.wx-supplier-qr-card{
  border:1px solid #dbeafe;
  background:#fff;
  border-radius:16px;
  padding:12px;
}

.wx-supplier-main b{
  display:block;
  color:#0f1f33;
  font-size:20px;
  font-weight:950;
  letter-spacing:-.02em;
}

.wx-supplier-main span{
  display:block;
  margin-top:5px;
  color:#64748b;
  font-weight:820;
  line-height:1.55;
}

.wx-supplier-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:12px;
}

.wx-supplier-actions a,
.wx-supplier-actions button{
  min-height:34px;
  border:1px solid #bfdbfe;
  background:#eff6ff;
  color:#2563eb;
  border-radius:999px;
  padding:0 12px;
  font-weight:950;
  cursor:pointer;
}

.wx-supplier-fields{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:8px;
}

.wx-supplier-fields div{
  border:1px solid #edf4ff;
  background:#f8fbff;
  border-radius:13px;
  padding:10px;
}

.wx-supplier-fields span{
  display:block;
  color:#64748b;
  font-size:12px;
  font-weight:900;
}

.wx-supplier-fields b{
  display:block;
  margin-top:5px;
  color:#0f1f33;
  font-size:15px;
  font-weight:950;
  word-break:break-all;
}

.wx-supplier-qr-card{
  display:grid;
  gap:8px;
  align-content:start;
}

.wx-supplier-qr-card img{
  width:100%;
  aspect-ratio:1 / 1;
  object-fit:cover;
  border:1px solid #dbeafe;
  border-radius:14px;
  background:#fff;
}

.wx-supplier-qr-placeholder{
  width:100%;
  aspect-ratio:1 / 1;
  display:grid;
  place-items:center;
  border:1px dashed #bfdbfe;
  border-radius:14px;
  background:#f8fbff;
  color:#64748b;
  font-weight:950;
  text-align:center;
  padding:10px;
}

.wx-supplier-qr-card p{
  margin:0;
  color:#64748b;
  font-size:12px;
  line-height:1.55;
  font-weight:820;
}

.wx-history-query-company,
.wx-lowest-row,
.wx-history-company-row{
  cursor:pointer;
}

.wx-history-query-company:hover,
.wx-lowest-row:hover,
.wx-history-company-row:hover{
  border-color:#93c5fd;
  box-shadow:0 8px 18px rgba(37,99,235,.08);
}

@media(max-width:1100px){
  .wx-supplier-detail-body{
    grid-template-columns:1fr;
  }

  .wx-supplier-qr-card{
    max-width:220px;
  }
}

@media(max-width:760px){
  .wx-supplier-detail-head{
    flex-direction:column;
  }

  .wx-supplier-fields{
    grid-template-columns:1fr;
  }
}

/* ===== WXSSC V34.4 History Empty + Supplier Link ===== */

.wx-history-helper{
  margin-top:10px;
  border:1px solid #fed7aa;
  background:#fff7ed;
  color:#9a3412;
  border-radius:14px;
  padding:10px 12px;
  font-size:13px;
  font-weight:850;
  line-height:1.6;
}

.wx-history-helper-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:8px;
}

.wx-history-helper-actions button{
  min-height:32px;
  border:1px solid #fdba74;
  background:#fff;
  color:#ea580c;
  border-radius:999px;
  padding:0 12px;
  font-weight:950;
  cursor:pointer;
}

.wx-history-current-card{
  margin-top:10px;
  border:1px solid #dbeafe;
  background:#fff;
  border-radius:16px;
  padding:12px;
}

.wx-history-current-card h4{
  margin:0 0 8px;
  font-size:16px;
  color:#0f1f33;
}

.wx-history-current-list{
  display:grid;
  gap:8px;
}

.wx-history-current-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto auto auto;
  gap:8px;
  align-items:center;
  border:1px solid #edf4ff;
  background:#f8fbff;
  border-radius:13px;
  padding:8px 10px;
  font-weight:850;
  cursor:pointer;
}

.wx-history-current-row.lowest{
  border-color:#fecaca;
  background:#fff7f7;
}

.wx-history-current-row b{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.wx-history-current-row span{
  color:#64748b;
  font-size:12px;
}

.wx-history-current-row em{
  color:#2563eb;
  font-style:normal;
  font-weight:950;
}

.wx-supplier-detail-panel{
  margin-top:10px;
  border:1px solid #dbeafe;
  background:linear-gradient(180deg,#ffffff 0%,#f8fbff 100%);
  border-radius:18px;
  padding:14px;
}

.wx-supplier-detail-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  margin-bottom:12px;
}

.wx-supplier-detail-head h3{
  margin:4px 0;
  color:#0f1f33;
  font-size:22px;
  font-weight:950;
}

.wx-supplier-detail-head p{
  margin:0;
  color:#64748b;
  font-weight:820;
  line-height:1.55;
}

.wx-supplier-detail-status{
  border:1px solid #ddd6fe;
  background:#f5f3ff;
  color:#7c3aed;
  border-radius:999px;
  padding:8px 12px;
  font-weight:950;
  white-space:nowrap;
}

.wx-supplier-detail-body{
  display:grid;
  grid-template-columns:1fr 1.15fr 180px;
  gap:10px;
  align-items:stretch;
}

.wx-supplier-main,
.wx-supplier-fields,
.wx-supplier-qr-card{
  border:1px solid #dbeafe;
  background:#fff;
  border-radius:16px;
  padding:12px;
}

.wx-supplier-main b{
  display:block;
  color:#0f1f33;
  font-size:20px;
  font-weight:950;
  letter-spacing:-.02em;
}

.wx-supplier-main span{
  display:block;
  margin-top:5px;
  color:#64748b;
  font-weight:820;
  line-height:1.55;
}

.wx-supplier-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:12px;
}

.wx-supplier-actions a,
.wx-supplier-actions button{
  min-height:34px;
  border:1px solid #bfdbfe;
  background:#eff6ff;
  color:#2563eb;
  border-radius:999px;
  padding:0 12px;
  font-weight:950;
  cursor:pointer;
}

.wx-supplier-fields{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:8px;
}

.wx-supplier-fields div{
  border:1px solid #edf4ff;
  background:#f8fbff;
  border-radius:13px;
  padding:10px;
}

.wx-supplier-fields span{
  display:block;
  color:#64748b;
  font-size:12px;
  font-weight:900;
}

.wx-supplier-fields b{
  display:block;
  margin-top:5px;
  color:#0f1f33;
  font-size:15px;
  font-weight:950;
  word-break:break-all;
}

.wx-supplier-qr-card{
  display:grid;
  gap:8px;
  align-content:start;
}

.wx-supplier-qr-card img{
  width:100%;
  aspect-ratio:1 / 1;
  object-fit:cover;
  border:1px solid #dbeafe;
  border-radius:14px;
  background:#fff;
}

.wx-supplier-qr-placeholder{
  width:100%;
  aspect-ratio:1 / 1;
  display:grid;
  place-items:center;
  border:1px dashed #bfdbfe;
  border-radius:14px;
  background:#f8fbff;
  color:#64748b;
  font-weight:950;
  text-align:center;
  padding:10px;
}

.wx-supplier-qr-card p{
  margin:0;
  color:#64748b;
  font-size:12px;
  line-height:1.55;
  font-weight:820;
}

.wx-history-query-company,
.wx-lowest-row,
.wx-history-current-row{
  cursor:pointer;
}

.wx-history-query-company:hover,
.wx-lowest-row:hover,
.wx-history-current-row:hover{
  border-color:#93c5fd;
  box-shadow:0 8px 18px rgba(37,99,235,.08);
}

@media(max-width:1100px){
  .wx-supplier-detail-body{
    grid-template-columns:1fr;
  }

  .wx-supplier-qr-card{
    max-width:220px;
  }
}

@media(max-width:760px){
  .wx-supplier-detail-head{
    flex-direction:column;
  }

  .wx-supplier-fields,
  .wx-history-current-row{
    grid-template-columns:1fr;
  }
}

/* ===== WXSSC V34.5 Tab Controller Rebuild ===== */

.wx-tabs button,
.wx-query-card,
#btnLowestOpen,
#lowestTab{
  pointer-events:auto !important;
  cursor:pointer !important;
}

.wx-tab-panel{
  display:none;
}

.wx-tab-panel.active{
  display:block;
}

.wx-query-card.active{
  border-color:#2563eb !important;
  background:linear-gradient(135deg,#eff6ff 0%,#ffffff 100%) !important;
  box-shadow:0 12px 26px rgba(37,99,235,.12);
}

.wx-lowest-list{
  min-height:120px;
}

.wx-lowest-card{
  cursor:default;
}

.wx-lowest-row{
  cursor:pointer;
}

/* ===== WXSSC V34.6 Query Logic Rebuild ===== */

.wx-tabs{
  display:none !important;
}

.wx-query-card{
  pointer-events:auto !important;
  cursor:pointer !important;
}

.wx-query-card.active{
  border-color:#2563eb !important;
  background:linear-gradient(135deg,#eff6ff 0%,#ffffff 100%) !important;
  box-shadow:0 12px 26px rgba(37,99,235,.12);
}

.wx-query-card.active span{
  background:#2563eb !important;
  color:#fff !important;
}

.wx-tab-panel{
  display:none;
}

.wx-tab-panel.active{
  display:block;
}

#btnLowestOpen,
#btnHistoryOpen,
[data-jump-tab="lowest"],
[data-jump-tab="history"],
[data-jump-tab="today"]{
  pointer-events:auto !important;
  cursor:pointer !important;
}

.wx-lowest-list{
  min-height:160px;
}

.wx-lowest-row{
  cursor:pointer;
}

.wx-history-query-panel{
  margin-top:0;
}

/* ===== WXSSC V34.7 Query State Sync ===== */

.wx-tabs{
  display:none !important;
}

.wx-query-context{
  margin-top:9px;
  border:1px solid #dbeafe;
  background:linear-gradient(180deg,#ffffff 0%,#f8fbff 100%);
  color:#64748b;
  border-radius:14px;
  padding:9px 12px;
  font-size:13px;
  font-weight:900;
  line-height:1.55;
}

.wx-query-context b{
  color:#2563eb;
}

.wx-query-card{
  pointer-events:auto !important;
  cursor:pointer !important;
}

.wx-query-card.active{
  border-color:#2563eb !important;
  background:linear-gradient(135deg,#eff6ff 0%,#ffffff 100%) !important;
  box-shadow:0 12px 26px rgba(37,99,235,.12);
}

.wx-query-card.active span{
  background:#2563eb !important;
  color:#fff !important;
}

.wx-tab-panel{
  display:none;
}

.wx-tab-panel.active{
  display:block;
}

.wx-history-query-summary b{
  color:#2563eb;
}

.wx-history-query-summary .wx-sync-warning{
  color:#9a3412;
  font-weight:950;
}

#btnHistoryOpen,
#btnLowestOpen,
[data-jump-tab="history"],
[data-jump-tab="lowest"],
[data-jump-tab="today"]{
  pointer-events:auto !important;
  cursor:pointer !important;
}

.wx-lowest-list{
  min-height:160px;
}

/* ===== WXSSC V34.9 Query Mode Sync ===== */

.wx-tabs{
  display:none !important;
}

.wx-query-context{
  margin-top:9px;
  border:1px solid #dbeafe;
  background:linear-gradient(180deg,#ffffff 0%,#f8fbff 100%);
  color:#64748b;
  border-radius:14px;
  padding:9px 12px;
  font-size:13px;
  font-weight:900;
  line-height:1.55;
}

.wx-query-context b{
  color:#2563eb;
}

.wx-search .wx-btn{
  background:#fff !important;
  color:#2563eb !important;
  box-shadow:none !important;
}

.wx-search .wx-btn.is-active,
.wx-search .wx-btn.primary{
  color:#fff !important;
  background:linear-gradient(135deg,#2563eb,#1d4ed8) !important;
  border-color:#2563eb !important;
  box-shadow:0 10px 22px rgba(37,99,235,.20) !important;
}

.wx-query-card{
  pointer-events:auto !important;
  cursor:pointer !important;
}

.wx-query-card.active{
  border-color:#2563eb !important;
  background:linear-gradient(135deg,#eff6ff 0%,#ffffff 100%) !important;
  box-shadow:0 12px 26px rgba(37,99,235,.12);
}

.wx-query-card.active span{
  background:#2563eb !important;
  color:#fff !important;
}

.wx-tab-panel{
  display:none;
}

.wx-tab-panel.active{
  display:block;
}

#btnHistoryOpen,
#btnLowestOpen,
#btnSearch,
[data-jump-tab="history"],
[data-jump-tab="lowest"],
[data-jump-tab="today"]{
  pointer-events:auto !important;
  cursor:pointer !important;
}

/* ===== WXSSC V35.0 Supplier Quote Drawer ===== */

.wx-history-query-chart,
.wx-history-chart,
.wx-inline-chart{
  display:none !important;
}

.wx-history-query-body{
  grid-template-columns:1fr !important;
}

.wx-history-query-card:has(.wx-history-query-chart),
.wx-history-panel-card:has(.wx-history-chart){
  display:none !important;
}

.wx-drawer-mask{
  position:fixed;
  inset:0;
  background:rgba(15,31,51,.28);
  backdrop-filter:blur(4px);
  z-index:998;
  opacity:0;
  pointer-events:none;
  transition:.18s ease;
}

.wx-drawer-mask.open{
  opacity:1;
  pointer-events:auto;
}

.wx-supplier-drawer{
  position:fixed;
  top:18px;
  right:18px;
  bottom:18px;
  width:min(760px,calc(100vw - 36px));
  background:#fff;
  border:1px solid #bfdbfe;
  border-radius:24px;
  box-shadow:0 30px 90px rgba(15,31,51,.24);
  z-index:999;
  transform:translateX(calc(100% + 40px));
  transition:.2s ease;
  padding:18px;
  overflow:auto;
}

.wx-supplier-drawer.open{
  transform:translateX(0);
}

.wx-drawer-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  border-bottom:1px solid #edf4ff;
  padding-bottom:14px;
  margin-bottom:14px;
}

.wx-drawer-head h3{
  margin:4px 0;
  font-size:24px;
  color:#0f1f33;
  font-weight:950;
  letter-spacing:-.02em;
}

.wx-drawer-head p{
  margin:0;
  color:#64748b;
  font-weight:820;
  line-height:1.55;
}

.wx-drawer-head button{
  border:1px solid #bfdbfe;
  background:#eff6ff;
  color:#2563eb;
  border-radius:999px;
  min-height:34px;
  padding:0 14px;
  font-weight:950;
  cursor:pointer;
}

.wx-drawer-section{
  margin-bottom:12px;
}

.wx-drawer-kpis{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:9px;
}

.wx-drawer-kpis div,
.wx-drawer-card{
  border:1px solid #dbeafe;
  background:linear-gradient(180deg,#fff 0%,#f8fbff 100%);
  border-radius:16px;
  padding:12px;
}

.wx-drawer-kpis span{
  display:block;
  color:#64748b;
  font-size:12px;
  font-weight:900;
}

.wx-drawer-kpis b{
  display:block;
  margin-top:6px;
  color:#2563eb;
  font-size:18px;
  font-weight:950;
}

.wx-drawer-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin-bottom:10px;
}

.wx-drawer-card-head{
  display:flex;
  justify-content:space-between;
  gap:10px;
  margin-bottom:10px;
}

.wx-drawer-card-head b{
  color:#0f1f33;
  font-size:16px;
  font-weight:950;
}

.wx-drawer-card-head span{
  color:#64748b;
  font-size:12px;
  font-weight:850;
}

.wx-supplier-contact{
  display:grid;
  grid-template-columns:1fr 118px;
  gap:10px;
  align-items:start;
}

.wx-supplier-main-info{
  border:1px solid #edf4ff;
  background:#fff;
  border-radius:14px;
  padding:11px;
}

.wx-supplier-main-info b{
  display:block;
  font-size:20px;
  color:#0f1f33;
  font-weight:950;
}

.wx-supplier-main-info span{
  display:block;
  margin-top:6px;
  color:#64748b;
  font-weight:850;
}

.wx-supplier-main-info a{
  display:inline-flex;
  align-items:center;
  margin-top:10px;
  min-height:32px;
  border:1px solid #bfdbfe;
  background:#eff6ff;
  color:#2563eb;
  border-radius:999px;
  padding:0 12px;
  font-weight:950;
}

.wx-supplier-qr div,
.wx-supplier-qr img{
  width:118px;
  height:118px;
  border-radius:14px;
  border:1px dashed #bfdbfe;
  background:#f8fbff;
  display:grid;
  place-items:center;
  color:#64748b;
  font-size:12px;
  font-weight:950;
  text-align:center;
  object-fit:cover;
}

.wx-supplier-fields.drawer{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:8px;
  margin-top:10px;
}

.wx-supplier-fields.drawer div{
  border:1px solid #edf4ff;
  background:#fff;
  border-radius:13px;
  padding:10px;
}

.wx-supplier-fields.drawer span{
  display:block;
  color:#64748b;
  font-size:12px;
  font-weight:900;
}

.wx-supplier-fields.drawer b{
  display:block;
  margin-top:5px;
  color:#0f1f33;
  font-size:14px;
  font-weight:950;
  word-break:break-all;
}

.wx-drawer-list{
  display:grid;
  gap:8px;
  max-height:310px;
  overflow:auto;
}

.wx-drawer-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto auto;
  gap:8px;
  align-items:center;
  border:1px solid #edf4ff;
  background:#fff;
  border-radius:13px;
  padding:8px 10px;
  font-size:13px;
  font-weight:850;
}

.wx-drawer-row.lowest{
  border-color:#fecaca;
  background:#fff7f7;
}

.wx-drawer-row b{
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
}

.wx-drawer-row span{
  color:#64748b;
  font-size:12px;
}

.wx-drawer-row em{
  color:#2563eb;
  font-style:normal;
  font-weight:950;
}

.wx-drawer-history{
  display:grid;
  gap:8px;
  max-height:280px;
  overflow:auto;
}

.wx-drawer-history-row{
  display:grid;
  grid-template-columns:auto 1fr auto auto;
  gap:10px;
  align-items:center;
  border:1px solid #edf4ff;
  background:#fff;
  border-radius:13px;
  padding:9px 10px;
  font-size:13px;
  font-weight:850;
}

.wx-drawer-history-row time{
  color:#64748b;
  white-space:nowrap;
}

.wx-drawer-history-row b{
  color:#0f1f33;
}

.wx-drawer-history-row em{
  color:#2563eb;
  font-style:normal;
  font-weight:950;
}

.wx-drawer-history-row small{
  color:#94a3b8;
}

.wx-row,
.wx-company{
  cursor:pointer;
}

@media(max-width:900px){
  .wx-drawer-grid,
  .wx-drawer-kpis,
  .wx-supplier-fields.drawer{
    grid-template-columns:1fr;
  }

  .wx-supplier-contact{
    grid-template-columns:1fr;
  }

  .wx-supplier-qr div,
  .wx-supplier-qr img{
    width:140px;
    height:140px;
  }
}

/* ===== WXSSC V35.2 Page20 Toolbar Slim ===== */

#btnOnlyHot,
#btnClearSort{
  display:none !important;
}

.wx-toolbar-spacer:empty{
  display:none;
}

.wx-table-toolbar{
  justify-content:flex-start !important;
}

.wx-table-toolbar > div:last-child:empty{
  display:none !important;
}

.wx-pager-actions [data-size="20"].active{
  color:#fff !important;
  background:linear-gradient(135deg,#2563eb,#1d4ed8) !important;
  border-color:#2563eb !important;
  box-shadow:0 10px 22px rgba(37,99,235,.20) !important;
}

/* ===== WXSSC V35.3 Query Cards Click Rebuild ===== */

.wx-tabs{
  display:none !important;
}

.wx-query-card,
[data-jump-tab="today"],
[data-jump-tab="history"],
[data-jump-tab="lowest"],
#btnSearch,
#btnHistoryOpen,
#btnLowestOpen{
  pointer-events:auto !important;
  cursor:pointer !important;
  position:relative;
  z-index:5;
}

.wx-query-card.active{
  border-color:#2563eb !important;
  background:linear-gradient(135deg,#eff6ff 0%,#ffffff 100%) !important;
  box-shadow:0 12px 26px rgba(37,99,235,.12);
}

.wx-query-card.active span{
  background:#2563eb !important;
  color:#fff !important;
}

.wx-search .wx-btn{
  background:#fff !important;
  color:#2563eb !important;
  box-shadow:none !important;
}

.wx-search .wx-btn.is-active,
.wx-search .wx-btn.primary{
  color:#fff !important;
  background:linear-gradient(135deg,#2563eb,#1d4ed8) !important;
  border-color:#2563eb !important;
  box-shadow:0 10px 22px rgba(37,99,235,.20) !important;
}

.wx-tab-panel{
  display:none;
}

.wx-tab-panel.active{
  display:block;
}

#btnOnlyHot,
#btnClearSort{
  display:none !important;
}

.wx-query-context{
  margin-top:9px;
  border:1px solid #dbeafe;
  background:linear-gradient(180deg,#ffffff 0%,#f8fbff 100%);
  color:#64748b;
  border-radius:14px;
  padding:9px 12px;
  font-size:13px;
  font-weight:900;
  line-height:1.55;
}

.wx-query-context b{
  color:#2563eb;
}

/* ===== WXSSC V35.4 History Query Controller ===== */

.wx-tabs{
  display:none !important;
}

.wx-query-card,
[data-jump-tab="today"],
[data-jump-tab="history"],
[data-jump-tab="lowest"],
#btnSearch,
#btnHistoryOpen,
#btnLowestOpen,
#btnRunHistoryQuery{
  pointer-events:auto !important;
  cursor:pointer !important;
  position:relative;
  z-index:5;
}

.wx-query-card.active{
  border-color:#2563eb !important;
  background:linear-gradient(135deg,#eff6ff 0%,#ffffff 100%) !important;
  box-shadow:0 12px 26px rgba(37,99,235,.12);
}

.wx-query-card.active span{
  background:#2563eb !important;
  color:#fff !important;
}

.wx-search .wx-btn{
  background:#fff !important;
  color:#2563eb !important;
  box-shadow:none !important;
}

.wx-search .wx-btn.is-active,
.wx-search .wx-btn.primary{
  color:#fff !important;
  background:linear-gradient(135deg,#2563eb,#1d4ed8) !important;
  border-color:#2563eb !important;
  box-shadow:0 10px 22px rgba(37,99,235,.20) !important;
}

.wx-tab-panel{
  display:none;
}

.wx-tab-panel.active{
  display:block;
}

.wx-history-query-chart,
.wx-history-chart,
.wx-inline-chart{
  display:none !important;
}

.wx-history-query-body{
  grid-template-columns:1fr !important;
}

.wx-query-context{
  margin-top:9px;
  border:1px solid #dbeafe;
  background:linear-gradient(180deg,#ffffff 0%,#f8fbff 100%);
  color:#64748b;
  border-radius:14px;
  padding:9px 12px;
  font-size:13px;
  font-weight:900;
  line-height:1.55;
}

.wx-query-context b{
  color:#2563eb;
}

#btnOnlyHot,
#btnClearSort{
  display:none !important;
}

/* ===== WXSSC V35.5 Row Drawer + History Fix ===== */

.wx-tabs{
  display:none !important;
}

.wx-query-card,
[data-jump-tab="today"],
[data-jump-tab="history"],
[data-jump-tab="lowest"],
#btnSearch,
#btnHistoryOpen,
#btnLowestOpen,
#btnRunHistoryQuery{
  pointer-events:auto !important;
  cursor:pointer !important;
  position:relative;
  z-index:5;
}

.wx-query-card.active{
  border-color:#2563eb !important;
  background:linear-gradient(135deg,#eff6ff 0%,#ffffff 100%) !important;
  box-shadow:0 12px 26px rgba(37,99,235,.12);
}

.wx-query-card.active span{
  background:#2563eb !important;
  color:#fff !important;
}

.wx-search .wx-btn{
  background:#fff !important;
  color:#2563eb !important;
  box-shadow:none !important;
}

.wx-search .wx-btn.is-active,
.wx-search .wx-btn.primary{
  color:#fff !important;
  background:linear-gradient(135deg,#2563eb,#1d4ed8) !important;
  border-color:#2563eb !important;
  box-shadow:0 10px 22px rgba(37,99,235,.20) !important;
}

.wx-tab-panel{
  display:none;
}

.wx-tab-panel.active{
  display:block;
}

.wx-history-query-chart,
.wx-history-chart,
.wx-inline-chart{
  display:none !important;
}

.wx-history-query-body{
  grid-template-columns:1fr !important;
}

.wx-query-context{
  margin-top:9px;
  border:1px solid #dbeafe;
  background:linear-gradient(180deg,#ffffff 0%,#f8fbff 100%);
  color:#64748b;
  border-radius:14px;
  padding:9px 12px;
  font-size:13px;
  font-weight:900;
  line-height:1.55;
}

.wx-query-context b{
  color:#2563eb;
}

#btnOnlyHot,
#btnClearSort{
  display:none !important;
}

.wx-drawer-mask{
  position:fixed;
  inset:0;
  background:rgba(15,31,51,.28);
  backdrop-filter:blur(4px);
  z-index:998;
  opacity:0;
  pointer-events:none;
  transition:.18s ease;
}

.wx-drawer-mask.open{
  opacity:1;
  pointer-events:auto;
}

.wx-supplier-drawer{
  position:fixed;
  top:18px;
  right:18px;
  bottom:18px;
  width:min(760px,calc(100vw - 36px));
  background:#fff;
  border:1px solid #bfdbfe;
  border-radius:24px;
  box-shadow:0 30px 90px rgba(15,31,51,.24);
  z-index:999;
  transform:translateX(calc(100% + 40px));
  transition:.2s ease;
  padding:18px;
  overflow:auto;
}

.wx-supplier-drawer.open{
  transform:translateX(0);
}

.wx-drawer-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  border-bottom:1px solid #edf4ff;
  padding-bottom:14px;
  margin-bottom:14px;
}

.wx-drawer-head h3{
  margin:4px 0;
  font-size:24px;
  color:#0f1f33;
  font-weight:950;
}

.wx-drawer-head p{
  margin:0;
  color:#64748b;
  font-weight:820;
  line-height:1.55;
}

.wx-drawer-head button{
  border:1px solid #bfdbfe;
  background:#eff6ff;
  color:#2563eb;
  border-radius:999px;
  min-height:34px;
  padding:0 14px;
  font-weight:950;
  cursor:pointer;
}

.wx-drawer-section{
  margin-bottom:12px;
}

.wx-drawer-kpis{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:9px;
}

.wx-drawer-kpis div,
.wx-drawer-card{
  border:1px solid #dbeafe;
  background:linear-gradient(180deg,#fff 0%,#f8fbff 100%);
  border-radius:16px;
  padding:12px;
}

.wx-drawer-kpis span{
  display:block;
  color:#64748b;
  font-size:12px;
  font-weight:900;
}

.wx-drawer-kpis b{
  display:block;
  margin-top:6px;
  color:#2563eb;
  font-size:18px;
  font-weight:950;
}

.wx-drawer-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin-bottom:10px;
}

.wx-drawer-card-head{
  display:flex;
  justify-content:space-between;
  gap:10px;
  margin-bottom:10px;
}

.wx-drawer-card-head b{
  color:#0f1f33;
  font-size:16px;
  font-weight:950;
}

.wx-drawer-card-head span{
  color:#64748b;
  font-size:12px;
  font-weight:850;
}

.wx-supplier-contact{
  display:grid;
  grid-template-columns:1fr 118px;
  gap:10px;
  align-items:start;
}

.wx-supplier-main-info{
  border:1px solid #edf4ff;
  background:#fff;
  border-radius:14px;
  padding:11px;
}

.wx-supplier-main-info b{
  display:block;
  font-size:20px;
  color:#0f1f33;
  font-weight:950;
}

.wx-supplier-main-info span{
  display:block;
  margin-top:6px;
  color:#64748b;
  font-weight:850;
}

.wx-supplier-main-info a{
  display:inline-flex;
  align-items:center;
  margin-top:10px;
  min-height:32px;
  border:1px solid #bfdbfe;
  background:#eff6ff;
  color:#2563eb;
  border-radius:999px;
  padding:0 12px;
  font-weight:950;
}

.wx-supplier-qr div,
.wx-supplier-qr img{
  width:118px;
  height:118px;
  border-radius:14px;
  border:1px dashed #bfdbfe;
  background:#f8fbff;
  display:grid;
  place-items:center;
  color:#64748b;
  font-size:12px;
  font-weight:950;
  text-align:center;
  object-fit:cover;
}

.wx-supplier-fields.drawer{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:8px;
  margin-top:10px;
}

.wx-supplier-fields.drawer div{
  border:1px solid #edf4ff;
  background:#fff;
  border-radius:13px;
  padding:10px;
}

.wx-supplier-fields.drawer span{
  display:block;
  color:#64748b;
  font-size:12px;
  font-weight:900;
}

.wx-supplier-fields.drawer b{
  display:block;
  margin-top:5px;
  color:#0f1f33;
  font-size:14px;
  font-weight:950;
  word-break:break-all;
}

.wx-drawer-list,
.wx-drawer-history{
  display:grid;
  gap:8px;
  max-height:280px;
  overflow:auto;
}

.wx-drawer-row,
.wx-drawer-history-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto auto;
  gap:8px;
  align-items:center;
  border:1px solid #edf4ff;
  background:#fff;
  border-radius:13px;
  padding:9px 10px;
  font-size:13px;
  font-weight:850;
}

.wx-drawer-row.lowest{
  border-color:#fecaca;
  background:#fff7f7;
}

.wx-drawer-row b{
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
}

.wx-drawer-row span,
.wx-drawer-history-row time,
.wx-drawer-history-row small{
  color:#64748b;
  font-size:12px;
}

.wx-drawer-row em,
.wx-drawer-history-row em{
  color:#2563eb;
  font-style:normal;
  font-weight:950;
}

.wx-row,
.wx-company{
  cursor:pointer;
}

@media(max-width:900px){
  .wx-drawer-grid,
  .wx-drawer-kpis,
  .wx-supplier-fields.drawer{
    grid-template-columns:1fr;
  }

  .wx-supplier-contact{
    grid-template-columns:1fr;
  }
}

/* ===== WXSSC V35.6 History Smart Query ===== */

.wx-history-query-day small{
  white-space:nowrap;
}

.wx-history-query-summary b,
#historyQuerySummary b{
  color:#2563eb;
}

#historyProductInput,
#historyCompanyInput,
#historySpecInput{
  background:#fff !important;
}

.wx-history-query-company{
  cursor:pointer;
}

.wx-history-query-company:hover{
  border-color:#93c5fd;
  box-shadow:0 8px 18px rgba(37,99,235,.08);
}

/* ===== WXSSC V35.7 History Query Fallback ===== */

#btnRunHistoryQuery{
  pointer-events:auto !important;
  cursor:pointer !important;
}

.wx-history-query-summary b,
#historyQuerySummary b{
  color:#2563eb;
}

.wx-history-query-day small{
  white-space:nowrap;
}

.wx-history-query-company{
  cursor:pointer;
}

.wx-history-query-company:hover{
  border-color:#93c5fd;
  box-shadow:0 8px 18px rgba(37,99,235,.08);
}
