:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  background: #eef2f5;
  color: #1f2933;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  -webkit-text-size-adjust: 100%;
  background:
    linear-gradient(180deg, #f8fafb 0%, #eef2f5 42%, #e8edf1 100%);
}

.home {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 32px;
}

.panel {
  width: min(100%, 760px);
  padding: 34px;
  background: #ffffff;
  border: 1px solid #d7dee6;
  border-radius: 8px;
  box-shadow: 0 18px 50px rgb(31 41 51 / 9%);
}

/* 手機螢幕：保留卡片感（邊框 + 陰影 + 圓角），但灰底一點點露出層次 */
@media (max-width: 680px) {
  .home {
    padding: 6px;
  }
  .panel {
    padding: 16px;
    border-radius: 8px;
  }
}

.brand {
  display: grid;
  gap: 2px;
  margin-bottom: 22px;
}

.brand p {
  margin: 0;
  color: #687789;
  font-size: 13px;
  font-weight: 700;
}

h1 {
  margin: 0;
  font-size: clamp(38px, 9vw, 64px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
}

.line-login-panel {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin: -8px 0 18px;
  font-size: 13px;
  font-weight: 800;
}

.line-login-button,
.line-login-link {
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid #c8d1da;
  border-radius: 8px;
  color: #1f2933;
  text-decoration: none;
  background: #ffffff;
}

.line-login-button {
  border-color: #06c755;
  color: #ffffff;
  background: #06c755;
}

/* admin only：首頁右上「⚙ 後台」連結，跟主品牌色一致提示權限 */
.admin-link {
  border-color: #176b68;
  color: #176b68;
  font-weight: 800;
}
.admin-link:hover {
  background: #176b68;
  color: #ffffff;
}

.line-login-profile {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: #455566;
  /* 推到面板最左，按鈕（後台 / 登出）擠右邊 — 避免 LINE 長名字把按鈕推出畫面 */
  margin-right: auto;
}

.line-login-profile img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.line-login-profile span {
  max-width: 230px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.line-login-profile small {
  max-width: 170px;
  overflow: hidden;
  color: #687789;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.line-login-profile strong {
  color: #176b68;
}

.login-required-banner {
  margin: -8px 0 18px;
  padding: 10px 12px;
  border: 1px solid #e0c8c8;
  border-radius: 8px;
  color: #8a1c1c;
  background: #fff7f7;
  font-size: 14px;
  font-weight: 800;
}

.recorder {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}

.pending-panel,
.update-mode-banner {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid #e0c8c8;
  border-radius: 14px;
  background: #fff7f7;
  overflow: hidden;
}

/* display: grid 會蓋掉 hidden 屬性預設的 display: none，要明確指定才會藏 */
.update-mode-banner[hidden],
.pending-panel[hidden] {
  display: none;
}

.pending-top,
.update-mode-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pending-area-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pending-top span,
.update-mode-banner span {
  color: #7f1d1d;
  font-size: 13px;
  font-weight: 800;
}

.pending-list {
  display: grid;
  gap: 6px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 2px;
  -webkit-overflow-scrolling: touch;
}

/* 所有卡片寬度相同（由 JS 算出 --pending-row-width 設定，依最長內容決定）。
 * 內容寬度超過 panel 時，整列一起向左/右滑動，視覺整齊。*/
.pending-item {
  display: grid;
  grid-template-columns: 60px 58px minmax(0, 1fr);
  gap: 6px;
  align-items: center;
  width: var(--pending-row-width, 100%);
  min-width: 100%;
  min-height: 32px;
  padding: 6px 8px;
  border: 1px solid #efd1d1;
  border-radius: 11px;
  background: #ffffff;
  color: #7f1d1d;
  font-size: 12px !important;
  font-weight: 700;
  text-align: left;
  overflow: hidden;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.pending-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgb(31 41 51 / 8%);
}

.pending-item span {
  white-space: nowrap;
  font-size: inherit;
}

.pending-item span:last-child {
  overflow: visible;
  text-overflow: clip;
}

.pending-empty {
  color: #8a6f6f;
  font-size: 13px;
  font-weight: 700;
}

.tiny-button {
  min-height: 28px;
  padding: 4px 8px;
  border: 1px solid #d7b7b7;
  background: #ffffff;
  color: #7f1d1d;
  font-size: 12px;
  font-weight: 800;
}

.tiny-button[data-active="true"] {
  border-color: #7f1d1d;
  background: #7f1d1d;
  color: #ffffff;
}

.submit-button[data-mode="update"] {
  background: #8a3b12;
}

.store-buttons {
  display: grid;
  grid-template-columns: repeat(11, minmax(0, 1fr));
  gap: 6px;
}

.store-buttons button {
  min-height: 34px;
  border-radius: 10px;
  border: 1px solid #c8d1da;
  background: #ffffff;
  color: #17202a;
  font-size: 13px;
}

.store-buttons button[data-active="true"] {
  border-color: #176b68;
  background: #176b68;
  color: #ffffff;
}

.store-buttons button:hover:not([data-active="true"]):not(:disabled) {
  transform: translateY(-1px);
  border-color: #176b68;
  color: #176b68;
  box-shadow: 0 8px 20px rgb(31 41 51 / 8%);
}

button {
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

button:disabled.record-button {
  background: #7b8794;
}

.record-button {
  background: linear-gradient(180deg, #1f807c, #176b68);
  color: #ffffff;
  box-shadow: 0 10px 22px rgb(23 107 104 / 22%);
  transition: background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.record-button:hover:not(:disabled) {
  background: linear-gradient(180deg, #23918c, #14605d);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgb(23 107 104 / 28%);
}

.record-button[data-recording="true"] {
  background: #ff9500 !important;
  box-shadow: 0 10px 20px rgb(255 149 0 / 28%);
}

.record-button:active:not(:disabled) {
  transform: translateY(1px);
}

.secondary-button {
  min-height: 40px;
  border: 1px solid #c8d1da;
  background: #ffffff;
  color: #17202a;
  font-size: 14px;
}

.secondary-button:hover:not(:disabled) {
  border-color: #176b68;
  color: #176b68;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgb(31 41 51 / 8%);
}

.submit-button {
  width: 100%;
  margin-top: 14px;
  background: linear-gradient(180deg, #1f807c, #145d5a);
  color: #ffffff;
  box-shadow: 0 10px 22px rgb(23 107 104 / 20%);
}

.submit-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgb(23 107 104 / 26%);
}

.status {
  min-height: 30px;
  margin: 0;
  padding: 5px 10px;
  border: 1px solid #d8e0e7;
  border-radius: 6px;
  background: #f7f9fb;
  color: #526170;
  font-size: 13px;
  line-height: 1.5;
}

.stores {
  min-height: 22px;
  margin: 0;
  color: #1b4f72;
  font-weight: 800;
  line-height: 1.55;
}

.status[data-tone="success"] {
  border-color: #b8d8cc;
  background: #eef8f3;
  color: #176b45;
}

.status[data-tone="warning"] {
  border-color: #efc4bc;
  background: #fff4f1;
  color: #a2362b;
}

.download-link {
  color: #1b4f72;
  font-weight: 800;
  white-space: nowrap;
}

.pdf-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.pdf-share-button {
  min-height: 32px;
  padding: 5px 10px;
  border: 1px solid #7db8b4;
  border-radius: 6px;
  background: #eef8f7;
  color: #176b68;
  font-size: 13px;
  font-weight: 800;
}

.transcript,
.wide-field {
  display: grid;
  gap: 10px;
}

.compact-field {
  gap: 6px;
}

.transcript span,
.confirm-form span {
  color: #34495e;
  font-weight: 800;
}

textarea,
input,
select {
  width: 100%;
  border: 1px solid #d6dde4;
  border-radius: 12px;
  padding: 14px 16px;
  color: inherit;
  font: inherit;
  font-size: 16px;
  line-height: 1.5;
  min-height: 48px;
  background: #ffffff;
  box-sizing: border-box;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

/* select 瀏覽器原生箭頭區會多算 height → 強制 appearance:none + 自訂箭頭，
   高度跟 input 完全一致 */
select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%23687789' stroke-width='2' fill='none' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

textarea {
  resize: vertical;
}

.recording-indicator {
  margin-left: 8px;
  color: #ff9500;
  font-size: 12px;
  font-weight: 700;
}

#transcriptText,
#processRecordInput {
  min-height: 74px;
  overflow-y: hidden;
}

@media (max-width: 560px) {
  #transcriptText,
  #processRecordInput {
    min-height: 68px;
  }
}

textarea:focus,
input:focus,
select:focus {
  border-color: #176b68;
  outline: 3px solid rgb(23 107 104 / 16%);
}

textarea[data-invalid="true"],
input[data-invalid="true"],
select[data-invalid="true"],
canvas[data-invalid="true"],
.update-mode-banner[data-invalid="true"],
.status[data-invalid="true"] {
  border-color: #b03a2e;
  outline: 3px solid rgb(176 58 46 / 22%);
}

.confirm-form {
  display: grid;
  gap: 18px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #d9e0e8;
}

.check-field {
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
}

.check-field input {
  width: 18px;
  height: 18px;
  padding: 0;
}

.check-field[data-warning="true"] {
  color: #b03a2e;
}

.check-field[data-warning="true"] span {
  color: #b03a2e;
}

.check-field[data-warning="true"] input {
  outline: 3px solid rgb(176 58 46 / 24%);
}

.signature-top-row {
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr);
  gap: 12px;
  align-items: center;
}

.supervisor-name-field {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.supervisor-name-field span {
  color: #34495e;
  font-weight: 800;
}

.supervisor-name-field input {
  min-height: 42px;
  padding: 8px 12px;
}

.signature-field {
  display: grid;
  gap: 10px;
}

.signature-field canvas {
  width: 100%;
  height: 180px;
  border: 1px solid #c8d1da;
  border-radius: 8px;
  background: #ffffff;
  touch-action: none;
}

.signature-field canvas:focus {
  border-color: #176b68;
  outline: 3px solid rgb(23 107 104 / 16%);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-grid label {
  display: grid;
  gap: 8px;
}

/* 處理夥伴 dropdown 多選 — 收合風格跟 select 一樣只佔一格，點開展開 checklist */
.handlers-dropdown {
  position: relative;
  width: 100%;
}
.handlers-trigger {
  width: 100%;
  min-height: 48px;
  padding: 14px 16px;
  border: 1px solid #c8d1da;
  border-radius: 8px;
  background: #fff;
  color: inherit;
  font: inherit;
  font-weight: 400;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.handlers-trigger[aria-expanded="true"] {
  border-color: #176b68;
}
.handlers-summary {
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.handlers-summary[data-empty="true"] {
  color: #7b8794;
}
.handlers-caret {
  color: #7b8794;
  font-size: 12px;
  transition: transform 120ms ease;
}
.handlers-trigger[aria-expanded="true"] .handlers-caret {
  transform: rotate(180deg);
}
.handlers-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 50;
  background: #fff;
  border: 1px solid #c8d1da;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(31, 41, 51, 0.12);
  padding: 4px;
  max-height: 280px;
  overflow-y: auto;
}
.handlers-menu[hidden] { display: none; }
.handler-row {
  display: flex !important;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  cursor: pointer;
  border-radius: 6px;
  font-size: 14px;
  color: #34495e;
}
.handler-row:hover { background: #f7f9fb; }
.handler-row input[type="checkbox"] {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #176b68;
}
.handler-row:has(input:checked) {
  color: #176b68;
  font-weight: 800;
}

.sales-items,
.suggestion-list {
  margin: 0;
  color: #1b4f72;
  font-weight: 800;
  line-height: 1.55;
}

.suggestion-list {
  display: grid;
  gap: 8px;
}

.ai-suggestion-box {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid #b8d8cc;
  border-radius: 12px;
  background: #eef8f3;
  color: #176b68;
  font-size: 13px;
  line-height: 1.55;
}

.ai-suggestion-box[hidden] {
  display: none;
}

.ai-suggestion-title {
  color: #176b68;
  font-weight: 800;
}

.ai-suggestion-text {
  white-space: pre-line;
  color: #34495e;
  font-weight: 700;
}

.ai-suggestion-button {
  justify-self: start;
  min-height: 34px;
  padding: 6px 10px;
  border-color: #7db8b4;
  color: #176b68;
  font-size: 13px;
}

/* 機台總表 vs 系統推薦衝突警示 — 提醒「總表記 X 但系統第一名推 Y 是統計推測」 */
.conflict-banner {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  margin: 4px 0;
  border: 2px solid #c0392b;
  border-radius: 8px;
  background: #fff4f1;
  color: #a2362b;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}
.conflict-banner[hidden] { display: none; }
.conflict-warning {
  padding: 4px 0;
}

.existing-items {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid #d8e0e7;
  border-radius: 8px;
  background: #f7f9fb;
  color: #34495e;
  font-size: 13px;
  line-height: 1.55;
}

.existing-items[hidden] {
  display: none;
}

.existing-items-heading,
.existing-items-group strong {
  color: #1b4f72;
  font-weight: 800;
}

.existing-items-group {
  display: grid;
  gap: 4px;
}

.existing-item {
  overflow-wrap: anywhere;
}

.suggestion-heading {
  color: #1b4f72;
}

.suggestion-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #34495e;
  font-weight: 800;
  line-height: 1.5;
}

.suggestion-item[data-exists="true"] {
  color: #7b8794;
}

.existing-badge {
  padding: 2px 6px;
  border: 1px solid #d8e0e7;
  border-radius: 999px;
  color: #7b8794;
  font-size: 12px;
  font-weight: 800;
}

/* parser 抽到的料件但機型不符 — 黃底 ⚠ 標示提醒工程師確認 */
.suggestion-item-mismatch {
  background: #fff8e1;
  border-left: 3px solid #f59e0b;
  padding-left: 6px;
}
.mismatch-warning {
  padding: 2px 8px;
  border-radius: 4px;
  background: #fef3c7;
  color: #b45309;
  font-size: 12px;
  font-weight: 700;
  cursor: help;
}

.suggestion-item input[type="checkbox"] {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  padding: 0;
}

.suggestion-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.bingo-date-input {
  width: 92px;
  min-height: 34px;
  padding: 6px 8px;
  font-size: 13px;
}

/* 維修品 row 改成「料件名橫排 + SN 換行到下面」，SN 框可以做寬讓 SN 完整顯示。
   數量這類短 inline 元素仍保持在右邊（但維修品本身不顯示數量）。
   注意：base .suggestion-item 是 inline-flex（row 寬=內容寬），料件名短時 SN 框
   的 flex:1 0 100% 不會換行。改用 display:flex + width:100% 強制 row 撐滿父容器，
   SN 框才一定換到料件名下方（手機螢幕窄特別重要）。 */
.suggestion-item-repair {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
}

/* SN 框：獨佔一行（料件下方），撐滿父寬讓 SN 字串完整呈現。
   之前 max-width: 260px 在桌面寬螢幕讓 SN 不撐 100% 寬，flex-wrap 沒換行 → SN 卡右邊。
   拿掉 max-width 強制全寬，flex:1 0 100% 才會真的換行到料件下方。 */
.repair-sn-input {
  flex: 1 0 100%;
  width: 100%;
  margin-top: 4px;
  margin-left: 26px;  /* 對齊 label 內文（checkbox 寬度 + 間距） */
  padding: 6px 10px;
  font-size: 14px;
  font-weight: 700;
  border: 1px solid #b0bec5;
  border-radius: 4px;
  text-align: left;
}
.repair-sn-input::placeholder {
  color: #97a3b5;
  font-weight: 400;
}

.suggestion-quantity-wrap {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #34495e;
  font-weight: 800;
}

.suggestion-quantity {
  /* 領料/銷售數量最多 3 位數（撲克牌可能到 999），48px 已夠寬，太寬反而擠 */
  width: 48px;
  padding: 2px 6px;
  font-size: 14px;
  font-weight: 700;
  border: 1px solid #b0bec5;
  border-radius: 4px;
  text-align: center;
}

.summary-box {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding: 12px;
  border: 1px solid #d8e0e7;
  border-radius: 8px;
  background: #f9fbfc;
  color: #34495e;
  font-size: 13px;
  line-height: 1.5;
}

.summary-box[hidden] {
  display: none;
}

.summary-title {
  color: #1f2933;
  font-size: 14px;
  font-weight: 800;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 12px;
}

.summary-line {
  min-width: 0;
}

.summary-line strong {
  color: #526170;
}

.summary-items {
  display: grid;
  gap: 4px;
}

.summary-empty {
  color: #7b8794;
}

/* 送修品摘要的「更換原因」獨佔一行，強調顯示讓使用者送出前能確認 Ragic 會收到的 reason */
.summary-repair-reason {
  color: #176b68;
  font-weight: 700;
  padding-left: 6px;
  border-left: 3px solid #b8d8cc;
}

.result-summary {
  border-color: #b8d8cc;
  background: #eef8f3;
}

@media (max-width: 560px) {
  .home {
    padding: 8px;
  }

  .panel {
    padding: 24px 12px;
  }

  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  /* 機台型號名稱通常較長，獨佔整行較順 */
  .form-grid label:has(#machineModelInput) {
    grid-column: 1 / -1;
  }
  /* select font-size 縮小避免 mobile 兩欄擠 */
  .form-grid select,
  .form-grid input {
    font-size: 14px;
    padding: 12px 12px;
  }
  .form-grid select {
    padding-right: 30px;
  }

  .signature-top-row,
  .supervisor-name-field {
    grid-template-columns: 1fr;
  }

  .store-buttons {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
  }

  .store-buttons button {
    min-height: 30px;
    font-size: 12px;
  }

  .summary-grid {
    grid-template-columns: 1fr;
  }
}

/* 推薦料件 row 的「📋 過去案例」按鈕 */
.history-btn {
  background: transparent;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 2px 6px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  margin-left: 4px;
  flex-shrink: 0;
  transition: background 0.15s, border-color 0.15s;
}
.history-btn:hover {
  background: #f3f4f6;
  border-color: #176b68;
}

/* 過去案例 popup */
.history-popup-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: history-fade-in 0.15s ease-out;
}
@keyframes history-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.history-popup {
  background: #fff;
  border-radius: 12px;
  max-width: 720px;
  width: 100%;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}
.history-popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: #176b68;
  color: #fff;
}
.history-popup-title {
  font-weight: 600;
  font-size: 15px;
  flex: 1;
  word-break: break-all;
}
.history-popup-close {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  padding: 0 6px;
  line-height: 1;
}
.history-popup-close:hover {
  opacity: 0.7;
}
.history-popup-body {
  padding: 16px 18px;
  overflow-y: auto;
  font-size: 13px;
}
.history-popup-summary {
  margin-bottom: 12px;
  color: #6b7280;
  font-size: 12px;
}
.history-case {
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  margin-bottom: 8px;
  background: #fafbfc;
}
.history-case-samemodel {
  border-color: #176b68;
  background: #f0f9f9;
}
.history-case-samemodel::before {
  content: "✓ 同機型";
  display: inline-block;
  background: #176b68;
  color: #fff;
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 4px;
  margin-right: 6px;
}
.history-case-meta {
  font-size: 12px;
  color: #4b5563;
  margin-bottom: 4px;
}
.history-case-pd {
  color: #1f2937;
  margin-bottom: 2px;
}
.history-case-pr {
  color: #6b7280;
  font-size: 12px;
}
