/* =============================================
   compare.css — Bandingkan Toko
   ============================================= */

/* ---- LAYOUT: 1/3 kiri + 2/3 kanan ---- */
.cmp-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 14px;
  margin-bottom: 14px;
}

/* ---- PANEL KIRI (upload + search) ---- */
.cmp-left-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cup-block {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cup-block-indo { border-left: 3px solid #2563eb; }
.cup-block-alfa { border-left: 3px solid #dc2626; }
.cup-block-bps  { border-left: 3px solid #7c3aed; }

.cup-block-title {
  font-size: 11px;
  font-weight: 700;
  color: #475569;
}

.cup-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  border: 1.5px dashed #cbd5e1;
  border-radius: 7px;
  cursor: pointer;
  background: #f8fafc;
  font-size: 11px;
  color: #64748b;
  transition: all .15s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cup-btn:hover { border-color: #94a3b8; background: #f1f5f9; }
.cup-btn.cup3-loaded { border-style: solid; border-color: #16a34a; background: #f0fdf4; color: #15803d; }
.cup-btn input { display: none; }

.cup-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #cbd5e1;
  flex-shrink: 0;
}
.cup3-loaded .cup-dot { background: #16a34a; }

.cup-btn-sec  { border-color: #e2e8f0; background: #fafafa; font-size: 10px; }
.cup-btn-bps  { border-color: #a78bfa; background: #faf5ff; color: #6d28d9; }
.cup-btn-bps:hover { border-color: #7c3aed; background: #f3e8ff; }

.cup-clear-bps {
  padding: 3px 9px;
  border: 1px solid #fecaca;
  border-radius: 5px;
  background: #fff1f2;
  color: #b91c1c;
  font-size: 10px;
  cursor: pointer;
  align-self: flex-start;
}

.cup-bps-info {
  font-size: 10px;
  color: #7c3aed;
  padding: 3px 6px;
  background: #f3e8ff;
  border-radius: 4px;
}

/* ---- GLOBAL SEARCH ---- */
.cmp-global-search {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  border: 1.5px solid #c4b5fd;
  border-radius: 8px;
  background: #faf5ff;
}
.cmp-global-search input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 12px;
  color: #1e293b;
  outline: none;
  min-width: 0;
}
.cmp-global-search input::placeholder { color: #a78bfa; }
.cmp-global-search button {
  border: none; background: none; cursor: pointer;
  font-size: 12px; color: #94a3b8;
}
.cmp-global-search button:hover { color: #475569; }

.q-active { font-size: 10px; color: #7c3aed; }

/* ---- PANEL KANAN (detail) ---- */
.cmp-right-panel {
  position: sticky;
  top: 16px;
  height: fit-content;
}

.detail-panel-right {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  min-height: 200px;
}

.detail-panel-right .detail-empty {
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.detail-panel-right .detail-body { padding: 12px 14px; }

/* ---- 3 TABLE LAYOUT ---- */
.cmp-3tbl {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}

.store-col {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
}
.store-col-indo { border-top: 3px solid #2563eb; }
.store-col-alfa { border-top: 3px solid #dc2626; }
.store-col-bps  { border-top: 3px solid #7c3aed; }

.store-col-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 11px;
  border-bottom: 1px solid #f1f5f9;
}

.sh-label { font-size: 12px; font-weight: 700; }
.sh-indo  { color: #1e40af; }
.sh-alfa  { color: #991b1b; }
.sh-bps   { color: #6d28d9; }

.sh-sel { font-size: 10px; padding: 2px 7px; border-radius: 20px; font-weight: 500; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sel-indo { background: #dbeafe; color: #1e40af; }
.sel-alfa { background: #fee2e2; color: #991b1b; }

.bps-count-badge { font-size: 10px; background: #f3e8ff; color: #7c3aed; padding: 2px 7px; border-radius: 20px; font-weight: 600; }

.col-cat-filter { padding: 6px 8px; background: #f8fafc; border-bottom: 1px solid #f1f5f9; }
.col-cat-filter select { width: 100%; padding: 4px 7px; border: 1px solid #e2e8f0; border-radius: 6px; font-size: 11px; background: white; color: #1e293b; }

.col-count { font-size: 10px; color: #94a3b8; padding: 4px 10px; background: #fafafa; border-bottom: 1px solid #f8fafc; }

.col-list { max-height: 480px; overflow-y: auto; }

.col-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-bottom: 1px solid #f8fafc;
  cursor: pointer;
  gap: 6px;
  transition: background .1s;
}
.col-row:last-child { border-bottom: none; }
.col-row:hover { background: #f8fafc; }
.sel-indo-bg { background: #eff6ff !important; border-left: 3px solid #2563eb; }
.sel-alfa-bg { background: #fff1f2 !important; border-left: 3px solid #dc2626; }

.cr-name { font-size: 11px; color: #1e293b; font-weight: 500; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cr-price { font-size: 11px; font-weight: 700; color: #1e293b; flex-shrink: 0; }
.cr-up { color: #ef4444; font-size: 10px; }
.cr-dn { color: #22c55e; font-size: 10px; }

/* BPS row */
.bps-row { cursor: default !important; }
.bps-row:hover { background: #faf5ff !important; }
.bps-row-left { flex: 1; overflow: hidden; min-width: 0; }
.bps-row-right { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.bps-pasar { font-size: 9px; color: #94a3b8; margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.bps-harga-now { font-size: 12px; font-weight: 600; color: #6d28d9; white-space: nowrap; }
.bps-arrow { font-size: 9px; font-weight: 700; padding: 1px 4px; border-radius: 3px; white-space: nowrap; }
.bps-up  { background: #fee2e2; color: #b91c1c; }
.bps-dn  { background: #dcfce7; color: #15803d; }
.bps-eq  { background: #f1f5f9; color: #94a3b8; }

.col-empty-msg { text-align: center; padding: 28px; color: #94a3b8; font-size: 11px; }

/* PAGINATION */
.col-pgn {
  display: flex; gap: 3px; padding: 6px 8px;
  border-top: 1px solid #f1f5f9; background: #fafafa;
  flex-wrap: wrap; align-items: center;
}
.col-pgn button {
  padding: 3px 8px; border: 1px solid #e2e8f0;
  border-radius: 4px; background: white; font-size: 10px; cursor: pointer; color: #475569;
}
.col-pgn button:hover { background: #f1f5f9; }
.col-pgn button.act { background: #1e293b; color: white; border-color: #1e293b; }
.col-pgn button.act-bps { background: #7c3aed; color: white; border-color: #7c3aed; }
.col-pgn button:disabled { opacity: .4; cursor: default; }
.col-pgn span, .col-pgn small { font-size: 10px; color: #94a3b8; }

/* ---- DETAIL CARDS ---- */
.sel-card { border: 1px solid #e2e8f0; border-radius: 8px; padding: 9px 11px; margin-bottom: 6px; }
.sel-card.sc-indo { border-left: 4px solid #2563eb; background: #f8fbff; }
.sel-card.sc-alfa { border-left: 4px solid #dc2626; background: #fff8f8; }
.sel-card.sc-empty { opacity: .5; }
.sc-store { font-size: 10px; font-weight: 700; margin-bottom: 3px; }
.sc-store-indo { color: #1e40af; }
.sc-store-alfa { color: #991b1b; }
.sc-name { font-size: 12px; font-weight: 600; color: #1e293b; line-height: 1.4; margin-bottom: 4px; }
.sc-price { font-size: 20px; font-weight: 800; color: #1e293b; }
.sc-chg, .sc-prev { font-size: 11px; margin-top: 2px; }
.sc-prev { color: #94a3b8; }
.chg-up { color: #b91c1c; font-weight: 600; }
.chg-dn { color: #15803d; font-weight: 600; }
.chg-eq { color: #94a3b8; }

.vs-divider { text-align: center; font-size: 11px; font-weight: 700; color: #94a3b8; margin: 6px 0; letter-spacing: 2px; }

/* ---- RESULT BOX ---- */
#d-result { margin: 6px 0; }
.result-box { border-radius: 9px; padding: 10px 12px; }
.result-box.cheaper-indo { background: #eff6ff; border: 1px solid #bfdbfe; }
.result-box.cheaper-alfa { background: #fff1f2; border: 1px solid #fecaca; }
.result-box.equal { background: #f8fafc; border: 1px solid #e2e8f0; text-align: center; }
.rb-winner { font-size: 12px; font-weight: 700; margin-bottom: 3px; }
.rb-val { font-size: 17px; font-weight: 800; color: #1e293b; }
.rb-pct { font-size: 11px; color: #64748b; }
.rb-label { font-size: 11px; color: #64748b; }

/* ---- BPS REF BOX ---- */
.bps-ref-box { margin: 8px 0; padding: 8px 10px; background: #faf5ff; border: 1px solid #e9d5ff; border-radius: 8px; }
.bps-ref-row { display: flex; justify-content: space-between; align-items: flex-start; padding: 4px 0; border-bottom: 1px solid #f3e8ff; }
.bps-ref-row:last-child { border-bottom: none; }
.bps-ref-left { flex: 1; overflow: hidden; margin-right: 8px; }
.bps-ref-name { font-size: 11px; color: #4c1d95; font-weight: 500; }
.bps-ref-pasar { font-size: 10px; color: #94a3b8; }
.bps-ref-price { font-size: 12px; font-weight: 700; color: #6d28d9; flex-shrink: 0; }

/* ---- WEEK SECTION ---- */
.week-section { margin-top: 8px; border-top: 1px solid #f1f5f9; padding-top: 8px; }
.ws-title { font-size: 10px; font-weight: 700; color: #475569; text-transform: uppercase; letter-spacing: .4px; margin-bottom: 6px; }
.wk-row { display: flex; justify-content: space-between; align-items: center; padding: 5px 8px; border-radius: 6px; background: #f8fafc; border: 1px solid #f1f5f9; margin-bottom: 4px; }
.wk-store { font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 3px; }
.wk-store-indo { background: #dbeafe; color: #1e40af; }
.wk-store-alfa { background: #fee2e2; color: #991b1b; }
.wk-right { text-align: right; }
.wk-price { font-size: 12px; font-weight: 600; color: #1e293b; }
.wk-chg { font-size: 11px; }

/* ---- LINKS ---- */
.links-row { display: flex; gap: 6px; padding: 8px 12px; border-top: 1px solid #f1f5f9; }
.links-row a { flex: 1; text-align: center; padding: 6px; border-radius: 6px; font-size: 11px; text-decoration: none; border: 1px solid; font-weight: 600; }
.link-indo { background: #eff6ff; color: #1e40af; border-color: #bfdbfe; }
.link-alfa { background: #fff1f2; color: #991b1b; border-color: #fecaca; }
.link-indo:hover, .link-alfa:hover { opacity: .8; }

.clear-sel-btn { display: block; width: 100%; padding: 7px; text-align: center; font-size: 11px; color: #94a3b8; cursor: pointer; border: none; background: none; border-top: 1px solid #f1f5f9; }
.clear-sel-btn:hover { color: #475569; background: #f8fafc; }

/* ---- HIGHLIGHT ---- */
.hl-q { background: #fef08a; color: #78350f; border-radius: 2px; font-style: normal; }

/* hero compare */
.store-hero-compare {
  background: linear-gradient(135deg, #4c1d95 0%, #6d28d9 50%, #7c3aed 100%);
  box-shadow: 0 8px 32px rgba(109,40,217,0.3);
}

/* responsive */
@media (max-width:1100px) {
  .cmp-layout { grid-template-columns: 1fr; }
  .cmp-3tbl   { grid-template-columns: 1fr 1fr; }
}

/* =============================================
   ROMBAK COMPARE — Upload 3 File Per Toko
   ============================================= */

/* Hero icon */
.cmp-hero-icon {
  width: 52px; height: 52px;
  background: rgba(255,255,255,0.18);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  flex-shrink: 0;
}

.cmp-hero-legend {
  display: flex; gap: 14px; flex-wrap: wrap;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 30px;
  padding: 8px 18px;
}
.chl-item { display: flex; align-items: center; gap: 6px; font-size: 12px; color: rgba(255,255,255,0.9); }
.chl-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }

/* ---- UPLOAD SECTION ---- */
.cmp-upload-section {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.cus-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.cus-hint {
  font-size: 11px;
  font-weight: 400;
  color: #94a3b8;
  margin-left: 4px;
}

/* 3-column grid for cards */
.cus-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

/* Store card */
.cus-card {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow .2s;
}
.cus-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
.cus-card-indo { border-top: 3px solid #2563eb; }
.cus-card-alfa { border-top: 3px solid #dc2626; }
.cus-card-klon { border-top: 3px solid #7c3aed; }

.cus-card-head {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 13px;
  background: #f8fafc;
  border-bottom: 1px solid #f1f5f9;
}
.cus-store-icon { font-size: 16px; }
.cus-store-name { font-size: 12px; font-weight: 700; color: #1e293b; flex: 1; }
.cus-file-count {
  font-size: 10px; font-weight: 600;
  background: #f1f5f9; color: #64748b;
  padding: 2px 8px; border-radius: 20px;
}
.cus-card-indo .cus-file-count { background: #dbeafe; color: #1e40af; }
.cus-card-alfa .cus-file-count { background: #fee2e2; color: #991b1b; }
.cus-card-klon .cus-file-count { background: #f3e8ff; color: #6d28d9; }

/* Slots */
.cus-slots {
  padding: 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cus-slot {
  display: flex;
  align-items: center;
  gap: 7px;
}

.cus-period-badge {
  font-size: 10px; font-weight: 600;
  padding: 3px 8px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 90px;
  text-align: center;
}
.cus-period-weekly   { background: #dbeafe; color: #1e40af; }
.cus-period-biweekly { background: #fef9c3; color: #854d0e; }
.cus-period-monthly  { background: #dcfce7; color: #166534; }

.cus-filebtn {
  display: flex; align-items: center; gap: 6px;
  flex: 1;
  padding: 6px 9px;
  border: 1.5px dashed #cbd5e1;
  border-radius: 8px;
  cursor: pointer;
  background: #f8fafc;
  font-size: 11px;
  color: #64748b;
  transition: all .15s;
  overflow: hidden;
  min-width: 0;
}
.cus-filebtn:hover { border-color: #94a3b8; background: #f1f5f9; }
.cus-filebtn.loaded {
  border-style: solid; border-color: #16a34a;
  background: #f0fdf4; color: #15803d;
}
.cus-filebtn input { display: none; }

.cus-upload-ico {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #475569;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
  flex-shrink: 0;
}
.cus-filebtn.loaded .cus-upload-ico { background: #16a34a; color: white; }

.cus-filename {
  flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 10px;
}

.cus-clear-btn {
  padding: 4px 8px;
  border: 1px solid #fecaca; border-radius: 6px;
  background: #fff1f2; color: #b91c1c;
  font-size: 10px; cursor: pointer; flex-shrink: 0;
}
.cus-clear-btn:hover { background: #fee2e2; }

/* ---- CONTROLS: Period Tabs + Search ---- */
.cus-controls {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}

.cpt-tabs {
  display: flex; gap: 6px;
}
.cpt-btn {
  padding: 7px 14px;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  background: white;
  font-size: 12px; font-weight: 500;
  color: #475569; cursor: pointer;
  transition: all .15s;
}
.cpt-btn:hover { border-color: #7c3aed; color: #7c3aed; background: #faf5ff; }
.cpt-active {
  background: #7c3aed !important;
  border-color: #7c3aed !important;
  color: white !important;
  box-shadow: 0 3px 10px rgba(124,58,237,0.3);
}

.cus-search-wrap {
  flex: 1; min-width: 200px;
  display: flex; align-items: center; gap: 8px;
  padding: 7px 12px;
  border: 1.5px solid #c4b5fd; border-radius: 9px;
  background: #faf5ff;
}
.csw-icon { font-size: 14px; }
.cus-search-wrap input {
  flex: 1; border: none; background: transparent;
  font-size: 12px; color: #1e293b; outline: none; min-width: 0;
}
.cus-search-wrap input::placeholder { color: #a78bfa; }
.csw-clear { border: none; background: none; cursor: pointer; font-size: 12px; color: #94a3b8; }
.csw-clear:hover { color: #475569; }

/* ---- EMPTY HINT ---- */
.cmp-empty-hint {
  text-align: center;
  padding: 48px 24px;
  background: white;
  border: 1.5px dashed #e2e8f0;
  border-radius: 14px;
  margin-bottom: 16px;
}
.ceh-icon { font-size: 44px; margin-bottom: 10px; }
.ceh-title { font-size: 16px; font-weight: 700; color: #1e293b; margin-bottom: 6px; }
.cmp-empty-hint p { font-size: 13px; color: #94a3b8; line-height: 1.7; }

/* ---- STAT BAR ---- */
.cmp-stat-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 10px 14px;
  background: white;
  border: 1px solid #e2e8f0; border-radius: 10px;
  margin-bottom: 14px;
}
.csb-pill {
  padding: 5px 14px; border-radius: 20px;
  font-size: 12px; font-weight: 500;
}
.csb-indo { background: #dbeafe; color: #1e40af; }
.csb-alfa { background: #fee2e2; color: #991b1b; }
.csb-klon { background: #f3e8ff; color: #6d28d9; }
.csb-period-pill {
  margin-left: auto;
  padding: 5px 14px; border-radius: 20px;
  font-size: 11px; font-weight: 600;
  background: #f8fafc; color: #64748b;
  border: 1px solid #e2e8f0;
}

/* ---- WORKSPACE ---- */
.cmp-workspace {
  display: grid;
  grid-template-columns: 3fr 1.1fr;
  gap: 14px;
  align-items: start;
}

.cmp-3tbl {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}

/* ---- HERO STORE BADGE (replace img) ---- */
.hero-store-badge {
  width: 54px; height: 54px;
  border-radius: 14px;
  background: rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  flex-shrink: 0;
}

/* Responsive */
@media (max-width: 1100px) {
  .cus-grid { grid-template-columns: 1fr; }
  .cmp-workspace { grid-template-columns: 1fr; }
  .cmp-3tbl { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .cmp-3tbl { grid-template-columns: 1fr; }
  .cpt-tabs { flex-wrap: wrap; }
}

/* =============================================
   UPLOAD KLONTONG — tombol toggle + expand
   ============================================= */
.cku-toggle-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 16px;
  background: white;
  border: 1.5px dashed #a78bfa;
  border-radius: 10px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: #6d28d9;
  transition: background 0.15s, border-color 0.15s;
  margin-bottom: 0;
}
.cku-toggle-btn:hover {
  background: #faf5ff;
  border-color: #7c3aed;
}
.cku-toggle-btn.has-files {
  border-style: solid;
  background: #faf5ff;
  border-color: #7c3aed;
}
.cku-chevron {
  margin-left: auto;
  font-size: 16px;
  transition: transform 0.2s;
  color: #a78bfa;
}
.cku-chevron.open {
  transform: rotate(180deg);
}
.cku-slots {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  animation: slideDown 0.2s ease both;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Status row — hapus nama teks besar, hanya ikon + sub + badge */
.csr-item { align-items: center; }
.csr-name { display: none; }  /* sembunyikan nama besar */
.csr-info { display: flex; flex-direction: column; gap: 0; }

/* Dark mode */
body.dark .cku-toggle-btn {
  background: #1e293b;
  border-color: #6d28d9;
  color: #a78bfa;
}
body.dark .cku-toggle-btn:hover,
body.dark .cku-toggle-btn.has-files {
  background: #2d1f4e;
}

/* =============================================
   MULTI-SELECT DROPDOWN KATEGORI
   ============================================= */
.multisel-wrap { position: relative; }
.multisel-btn {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 7px 10px; font-size: 12px; cursor: pointer;
  background: #fff; border: 1px solid #e2e8f0; border-radius: 8px;
  color: #374151; font-weight: 500; user-select: none;
  transition: border-color .15s;
}
.multisel-btn:hover { border-color: #7c3aed; }
.multisel-arrow { font-size: 10px; color: #94a3b8; margin-left: 4px; }
.multisel-dropdown {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 200;
  background: #fff; border: 1px solid #e2e8f0; border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.13); max-height: 220px; overflow-y: auto;
  padding: 4px 0;
}
.msi-item {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 12px; font-size: 12px; cursor: pointer;
  color: #374151; transition: background .12s;
}
.msi-item:hover { background: #f5f3ff; }
.msi-check {
  width: 16px; height: 16px; border: 1.5px solid #d1d5db; border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; color: #7c3aed; flex-shrink: 0;
  transition: border-color .12s, background .12s;
}
.msi-checked .msi-check { background: #7c3aed; border-color: #7c3aed; color: #fff; }
.msi-all { font-weight: 600; color: #7c3aed; border-bottom: 1px solid #f1f5f9; margin-bottom: 2px; }

/* =============================================
   KLONTONG SELECTION STATES
   ============================================= */
.sel-klon-bg { background: #f0fdf4 !important; border-left: 3px solid #16a34a; }
.sel-card.sc-klon { border-left: 4px solid #16a34a; background: #f0fdf4; }
.sc-store-klon { color: #16a34a; }
.result-box.cheaper-klon { background: #f0fdf4; border: 1px solid #bbf7d0; }
.klon-sel-badge { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }

/* Detail panel 3-way */
.rb-price { font-size: 18px; font-weight: 800; color: #1e293b; margin: 2px 0 6px; }
.rb-diff-row { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: #475569; padding: 2px 0; border-top: 1px solid rgba(0,0,0,.06); margin-top: 4px; }
.rb-val-sm { font-size: 11px; font-weight: 700; color: #64748b; }
.sc-sub { font-size: 10px; color: #94a3b8; margin-top: 1px; }
