/* /datashow/cs/asp/assets/return_check.css */

body {
  background: #f6f7fb;
}

.card {
  border: 0;
  border-radius: 16px;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.kv {
  font-size: 12px;
  color: #6c757d;
}

.vtext {
  font-size: 15px;
  font-weight: 500;
}

.field-row {
  display: flex;
  gap: .5rem;
  align-items: center;
}

.edit-only {
  display: none !important;
}

.view-only {
  display: block;
}

.editing .edit-only {
  display: flex !important;
}

.editing .view-only {
  display: none !important;
}

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.card-head > :first-child {
  flex: 1 1 auto;
  min-width: 0;
}

.card-actions {
  display: flex;
  gap: .5rem;
  align-items: flex-start;
  justify-content: flex-end;
  flex-wrap: wrap;
  flex: 0 0 auto;
  max-width: 100%;
  margin-left: auto;
}

.card-actions .btn,
.card-actions .badge {
  flex: 0 0 auto;
  white-space: nowrap;
  align-self: flex-start;
}

.card-actions .badge {
  padding: .28rem .55rem;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .02em;
  box-shadow: none;
  border: 1px solid transparent;
}

.card-actions .badge.text-bg-dark {
  background: #1f2937 !important;
  color: #fff !important;
  border-color: #1f2937;
}

.card-actions .badge.text-bg-primary {
  background: #eff6ff !important;
  color: #1d4ed8 !important;
  border-color: #bfdbfe;
}

.pair-pill {
  display: inline-flex;
  gap: .5rem;
  align-items: center;
  padding: .25rem .5rem;
  border-radius: 999px;
}

.checked-ring {
  outline: 3px solid #198754;
  outline-offset: 2px;
}

.hint-badge {
  border-radius: 999px;
  padding: .25rem .5rem;
  font-size: 12px;
}

.hint-badge-note {
  display: inline-block;
  max-width: 100%;
  white-space: normal;
  border-radius: 14px;
  line-height: 1.45;
}

/* =======================================================
   出貨序號比對區塊
======================================================= */

.serial-box {
  border-radius: 12px;
  padding: .5rem .75rem;
  background: #f8f9fa;
}

/* 標題：出貨序號比對 */
.serial-box .small.text-secondary {
  color: #495057 !important;   /* 深灰 */
  font-weight: 600;
}

/* 比對結果文字 */
.serial-box [data-serial-msg] {
  color: #212529 !important;   /* 接近黑色 */
  font-weight: 700;
}


/* =======================================================
   ASPPRE 黃色提示（領料未用歸還）
======================================================= */

.hint-badge.asppre-badge {
  background-color: #ffc107 !important; /* Bootstrap warning */
  color: #212529 !important;
  border: 1px solid #e0a800;
  font-weight: 800;
}


/* =======================================================
   其他小優化（可留可不留）
======================================================= */

/* MICRON 提示 */
.hint-badge.bg-info-subtle {
  font-weight: 600;
}

/* 序號錯誤提示 */
.hint-badge.bg-danger-subtle {
  font-weight: 700;
}

/* 主要按鈕視覺微調 */
button.btn {
  border-radius: 10px;
}

@media (max-width: 576px) {
  .card-head {
    flex-wrap: wrap;
  }

  .card-actions {
    width: 100%;
    justify-content: flex-start;
  }
}
