/* แถบอายุคำขอ (ทีม UX 23 ต.ค.): บางๆ ใต้บรรทัดหมดเวลาในการ์ด · ความยาวและสี ตั้งค่า inline จาก updateAgingBar() ใน approval.js */
.age-bar {
  height: 4px;
  border-radius: 999px;
  background: rgba(128, 128, 128, .18);
  overflow: hidden;
  margin: 6px 0 8px;
}
.age-bar[hidden] { display: none; }
.age-bar > i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  transition: width .6s ease, background-color .6s ease;
}
@media (prefers-reduced-motion: reduce) {
  .age-bar > i { transition: none; }
}

/* ป้ายความมั่นใจของ AI (ทีม UX 23 ต.ค.): เขียว/เหลือง/แดงตามเปอร์เซ็นต์ · สร้างโดย renderConfidenceBadge() ใน approval.js */
.confidence-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid currentColor;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.confidence-badge.tone-high { color: color-mix(in srgb, var(--color-secondary, #16a34a) 80%, #000); background: rgba(34, 197, 94, .12); }
.confidence-badge.tone-mid { color: #a16207; background: rgba(234, 179, 8, .14); }
.confidence-badge.tone-low { color: #b91c1c; background: rgba(239, 68, 68, .12); }

/* ปุ่ม Approve (Auto) และแถบยืนยัน (ทีม UX 24 ต.ค.): สีเขียวอ่อนสื่อว่า AI มั่นใจสูง · สร้างโดย renderAutoApprove() / renderAutoConfirm() ใน approval.js */
.auto-approve-btn {
  color: color-mix(in srgb, var(--color-secondary, #16a34a) 80%, #000);
  background: rgba(34, 197, 94, .12);
  border: 1px solid currentColor;
  font-variant-numeric: tabular-nums;
}
.auto-confirm {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(34, 197, 94, .08);
  font-size: 13px;
}
.auto-confirm[hidden] { display: none; }
.auto-confirm > span { flex: 1 1 220px; }
