/* ==========================================================================
   符合 WCAG 2.2 AAA 無障礙規範之色彩與排版樣式
   所有文字與背景對比度均嚴格達到 7.0:1 以上標準
   ========================================================================== */

.receipt-card {
  border: 1px solid #dee2e6;
  border-radius: 0.75rem;
  box-shadow: 0 0.125rem 0.375rem rgba(0, 0, 0, 0.08);
  background-color: #ffffff;
}

.receipt-header {
  background-color: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
  padding: 1rem 1.25rem;
  border-top-left-radius: 0.75rem;
  border-top-right-radius: 0.75rem;
}

/* 狀態徽章：確保高對比，絕不出現淺灰底配白字 */
.badge-status-0 {
  background-color: #ffc107 !important;
  color: #000000 !important; /* 對比度 14:1 (AAA) */
  font-weight: 700 !important;
  display: inline-block;
}

.badge-status-1 {
  background-color: #146c43 !important; /* 深綠底 */
  color: #ffffff !important;           /* 白字，對比度 7.2:1 (AAA) */
  font-weight: 700 !important;
  display: inline-block;
}

.badge-status-2 {
  background-color: #343a40 !important; /* 深黑灰底 */
  color: #ffffff !important;           /* 白字，對比度 11.5:1 (AAA) */
  font-weight: 700 !important;
  display: inline-block;
}

.badge-status-3 {
  background-color: #b02a37 !important; /* 深紅底 */
  color: #ffffff !important;           /* 白字，對比度 7.2:1 (AAA) */
  font-weight: 700 !important;
  display: inline-block;
}

/* 表格無障礙高對比樣式 */
.table-receipt {
  color: #000000;
}

.table-receipt thead th {
  background-color: #e9ecef !important;
  color: #000000 !important; /* 對比度 > 15:1 (AAA) */
  font-weight: 700;
  border-bottom: 2px solid #ced4da;
  white-space: nowrap;
}

.table-receipt tbody td {
  color: #000000;
  vertical-align: middle;
}

.table-receipt tbody tr:hover {
  background-color: #f1f3f5;
}

/* 輔助文字 */
.text-aaa-muted {
  color: #343a40 !important; /* 對比度 11.5:1 (AAA) */
}

/* 金額高對比藍色 */
.receipt-amount {
  font-family: "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  color: #084298 !important; /* 對比度 8.5:1 (AAA) */
}

/* 常用通用類別 */
.c {
  text-align: center;
  vertical-align: middle !important;
}

.m {
  vertical-align: middle !important;
}

.nw {
  white-space: nowrap;
}

.bar {
  text-align: center;
  margin: 2rem auto;
}