.guru-balance-wrapper {
  max-width: 480px;
  margin: 20px auto;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.guru-balance-card {
  background: #ffffff;
  border: 1px solid #e0e5e0;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}
.guru-balance-card.is-success {
  border-top: 4px solid #395d4b;
}
.guru-balance-card.is-insufficient {
  border-top: 4px solid #d9534f;
}
.guru-balance-header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid #f0f2f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.guru-balance-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #2c322b;
}
.guru-balance-badge {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
}
.is-success .guru-balance-badge {
  background: #e8f3ee;
  color: #2e5240;
}
.is-insufficient .guru-balance-badge {
  background: #fdf2f2;
  color: #d9534f;
}
.guru-balance-body {
  padding: 20px 24px;
}
.guru-balance-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 14px;
  color: #555e54;
}
.guru-balance-row.total-row {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed #e0e5e0;
  font-size: 16px;
  font-weight: 700;
  color: #2c322b;
}
.guru-balance-row .amount {
  font-weight: 600;
  font-family: "SF Mono", Consolas, Monaco, monospace;
}
.is-success .total-row .amount {
  color: #2e5240;
}
.is-insufficient .total-row .amount {
  color: #d9534f;
}
.guru-balance-notice {
  margin-top: 12px;
  font-size: 13px;
  color: #8c8f89;
  line-height: 1.5;
}
.guru-balance-actions {
  padding: 16px 24px 20px;
  background: #fafbf9;
  border-top: 1px solid #f0f2f0;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}
.guru-btn {
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}
.guru-btn-cancel {
  background: #ffffff;
  border: 1px solid #d0d5d0;
  color: #555e54;
}
.guru-btn-cancel:hover {
  background: #f5f7f5;
  color: #2c322b;
}
.guru-btn-confirm {
  background: #395d4b;
  color: #ffffff;
}
.guru-btn-confirm:hover {
  background: #2e4d3e;
}
.guru-btn:disabled {
  background: #e0e5e0;
  color: #9ea39e;
  cursor: not-allowed;
}
/* 1. Main Page Container as a Modern Card */
#payment-history-page {
  background-color: var(--card-bg, #f9f8f3);
  border: 1px solid var(--card-border, #e2ded4);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
  margin-bottom: 30px;
}
#payment-history-page,
.eb-tab-group {
  /* 3. Table Reset & Modern Layout */
  /* 4. Table Header Styling */
  /* 5. Table Body & Row Styling */
}
#payment-history-page .title,
.eb-tab-group .title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary, #2c322b);
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--card-border, #e2ded4);
}
#payment-history-page table,
.eb-tab-group table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: none;
  margin-bottom: 0;
}
#payment-history-page thead th,
.eb-tab-group thead th {
  background-color: #ede9df;
  color: var(--text-primary, #2c322b);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 14px 16px;
  border: none;
}
#payment-history-page thead th:first-child,
.eb-tab-group thead th:first-child {
  border-top-left-radius: 10px;
}
#payment-history-page thead th:last-child,
.eb-tab-group thead th:last-child {
  border-top-right-radius: 10px;
}
#payment-history-page tbody,
.eb-tab-group tbody {
  /* Table Cell Base Styling */
}
#payment-history-page tbody tr,
.eb-tab-group tbody tr {
  transition: background-color 0.2s ease;
  /* Row Hover State */
  /* Remove bottom border on the last row */
}
#payment-history-page tbody tr:hover td,
.eb-tab-group tbody tr:hover td {
  background-color: rgba(57, 93, 75, 0.04);
}
#payment-history-page tbody tr:last-child td,
.eb-tab-group tbody tr:last-child td {
  border-bottom: none;
}
#payment-history-page tbody td,
.eb-tab-group tbody td {
  padding: 16px;
  vertical-align: middle;
  border-top: none;
  border-bottom: 1px solid var(--card-border, #e2ded4);
  color: var(--text-primary, #2c322b);
  font-size: 14px;
  background: transparent;
  border-left: 0;
  border-right: 0;
  /* 6. Highlighting Specific Columns */
  /* Amount Column (Green Bold Text) */
  /* Transaction ID (Monospace Badge) */
}
#payment-history-page tbody td.text-right,
.eb-tab-group tbody td.text-right,
#payment-history-page tbody td[align="right"],
.eb-tab-group tbody td[align="right"] {
  font-weight: 700;
  font-size: 15px;
  color: var(--green-primary, #395d4b);
}
#payment-history-page tbody td.text-right::before,
.eb-tab-group tbody td.text-right::before,
#payment-history-page tbody td[align="right"]::before,
.eb-tab-group tbody td[align="right"]::before {
  content: "NT$ ";
  font-size: 12px;
  font-weight: 600;
  color: #6b7268;
}
#payment-history-page tbody td:last-child,
.eb-tab-group tbody td:last-child {
  font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 12px;
  color: #555;
  letter-spacing: 0.5px;
}
