[data-testid="panel-customer-behavior-checker"] > div {
  display: grid !important;
  grid-template-columns: 190px minmax(240px, 1fr) 190px minmax(280px, 1.2fr) !important;
  gap: 16px !important;
  padding: 18px !important;
  align-items: end !important;
}
#behavior-check-by,
#behavior-number {
  display: block !important;
  width: 100% !important;
  height: 44px !important;
  margin-top: 8px !important;
  padding: 0 12px !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 7px !important;
  background: #fff !important;
  color: #0f172a !important;
  font-size: 14px !important;
}
#behavior-check-button {
  display: block !important;
  width: 100% !important;
  height: 44px !important;
  padding: 0 16px !important;
  border: 0 !important;
  border-radius: 7px !important;
  background: #075cab !important;
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  cursor: pointer !important;
}
#behavior-check-button:hover { background: #064b8c !important; }

.bh-score-layout {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
}
.bh-score-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 315px;
  padding: 18px;
  border: 1px solid #dbe4ef;
  border-radius: 12px;
  background: #fff;
  text-align: center;
}
.bh-gauge {
  position: relative;
  width: 260px;
  height: 150px;
  overflow: hidden;
}
.bh-gauge-band {
  position: absolute;
  top: 8px;
  left: 10px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: conic-gradient(from 270deg, #dc2626 0deg, #f97316 42deg, #facc15 82deg, #84cc16 128deg, #16a34a 180deg, transparent 180deg);
}
.bh-gauge-inner {
  position: absolute;
  top: 38px;
  left: 40px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: #fff;
}
.bh-gauge-needle {
  position: absolute;
  left: 50%;
  bottom: 17px;
  width: 4px;
  height: 88px;
  border-radius: 4px;
  background: #111827;
  transform-origin: 50% 100%;
  transition: transform .55s ease;
}
.bh-gauge-hub {
  position: absolute;
  left: 50%;
  bottom: 9px;
  width: 20px;
  height: 20px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: #111827;
}
.bh-gauge-value {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  line-height: 1;
  text-align: center;
}
.bh-gauge-value strong { display: block; font-size: 42px; color: #111827; }
.bh-gauge-value small { display: block; margin-top: 4px; color: #64748b; font-size: 10px; }
.bh-gauge-min,.bh-gauge-mid,.bh-gauge-max { position: absolute; bottom: 2px; font-size: 10px; font-weight: 700; }
.bh-gauge-min { left: 5px; }
.bh-gauge-mid { left: 50%; transform: translateX(-50%); }
.bh-gauge-max { right: 1px; }
.bh-band { margin-top: 8px; color: #15803d; font-size: 22px; font-weight: 900; }
.bh-risk { margin-top: 3px; color: #475569; font-size: 12px; }
.bh-approval-guide { margin-top: 10px; padding: 8px 10px; border: 1px solid #dbe4ef; border-radius: 7px; color: #475569; font-size: 11px; }
.bh-score-right { display: flex; flex-direction: column; gap: 12px; }
.bh-metrics { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); border: 1px solid #dbe4ef; border-radius: 8px; overflow: hidden; }
.bh-metric { min-height: 74px; padding: 12px 8px; border-right: 1px solid #dbe4ef; text-align: center; }
.bh-metric:last-child { border-right: 0; }
.bh-metric span { display: block; color: #475569; font-size: 10px; }
.bh-metric strong { display: block; margin-top: 8px; color: #0f172a; font-size: 16px; }
.bh-drivers { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.bh-driver { padding: 12px; border: 1px solid #dbe4ef; border-radius: 8px; background: #f8fafc; }
.bh-driver-head { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; }
.bh-driver-track { height: 8px; margin-top: 8px; overflow: hidden; border-radius: 99px; background: #e2e8f0; }
.bh-driver-fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg,#dc2626,#facc15,#16a34a); }
.bh-driver small { display: block; margin-top: 6px; color: #64748b; font-size: 10px; }
.bh-view-report { align-self: center; min-width: 310px; padding: 11px 18px; border: 0; border-radius: 7px; background: #06398f; color: #fff; font-weight: 800; cursor: pointer; }
.bh-detailed-report { padding: 18px; }
.bh-report-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px 20px; }
.bh-report-row { display: grid; grid-template-columns: 210px minmax(0,1fr); gap: 10px; padding: 9px 11px; border-bottom: 1px solid #e2e8f0; font-size: 12px; }
.bh-report-row span { color: #475569; }
.bh-report-actions { display: flex; justify-content: center; gap: 12px; margin-top: 18px; }
.bh-report-actions button { min-width: 145px; padding: 10px 14px; border: 1px solid #cbd5e1; border-radius: 7px; background: #fff; color: #0f172a; font-weight: 700; cursor: pointer; }
.bh-report-actions button:hover { background: #f1f5f9; }

@media (max-width: 1100px) {
  [data-testid="panel-customer-behavior-checker"] > div { grid-template-columns: 1fr 1fr !important; }
  .bh-score-layout { grid-template-columns: 1fr; }
  .bh-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 640px) {
  [data-testid="panel-customer-behavior-checker"] > div,
  .bh-drivers,.bh-report-list { grid-template-columns: 1fr !important; }
  .bh-report-row { grid-template-columns: 1fr; }
  .bh-view-report { min-width: 0; width: 100%; }
}
@media print {
  aside,header,nav,#kamel-tools,.bh-view-report { display: none !important; }
  .bh-score-layout { grid-template-columns: 300px 1fr; }
}
