/* ============================================================
   CSB Heap Design — Patch 5: Check Screen
   ------------------------------------------------------------
   Redesigns #check-screen — the record-by-record review flow.
   Pure visual. No JS changes, no click logic changes.
   ============================================================ */

/* ---------- Black canvas ---------- */
body:has(#check-screen:not(.hidden)) {
  background: #000000 !important;
}

#check-screen {
  background: #000000 !important;
  color: #fafafa !important;
  min-height: 100vh !important;
  min-height: 100dvh !important;
  padding: 0 0 60px !important;
}

/* Mint accent strip */
#check-screen::before {
  content: '' !important;
  display: block !important;
  height: 2px !important;
  background: #3ecf8e !important;
  width: 100% !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 200 !important;
  animation: heap-pulse 3s ease-in-out infinite !important;
}

/* ---------- Header ---------- */
#check-screen .app-header {
  background: #000000 !important;
  border-bottom: 1px solid #1a1a1a !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  padding: 0 !important;
}
#check-screen .app-header-inner {
  padding: 14px 22px !important;
  max-width: none !important;
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
}

/* Back button */
#check-screen .app-header-inner .icon-btn {
  background: transparent !important;
  border: 1px solid #1a1a1a !important;
  color: #fafafa !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 4px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.15s !important;
}
#check-screen .app-header-inner .icon-btn:hover {
  border-color: #3ecf8e !important;
  color: #3ecf8e !important;
}

/* Progress text (e.g. "1 / 45") */
#check-screen #check-progress-text {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  letter-spacing: 1px !important;
  color: #fafafa !important;
}
#check-screen #check-subtitle {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace !important;
  font-size: 10px !important;
  letter-spacing: 1.2px !important;
  text-transform: uppercase !important;
  color: #737373 !important;
}

/* Progress bar in header */
#check-screen .check-progress-bar-wrap {
  background: #1a1a1a !important;
  border-radius: 0 !important;
  height: 2px !important;
  flex: 1 !important;
  overflow: hidden !important;
}
#check-screen .check-progress-fill {
  background: #3ecf8e !important;
  height: 100% !important;
  border-radius: 0 !important;
  transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

/* ---------- Body ---------- */
#check-screen .check-body {
  padding: 20px 22px 100px !important;
  max-width: 620px !important;
  margin: 0 auto !important;
}

/* ---------- Open [Carrier] Portal button ----------
   This is the inline-styled <a> rendered by portalBtn. Target it. */
#check-screen .check-body a[target="_blank"][rel="noopener"] {
  background: transparent !important;
  color: #3ecf8e !important;
  border: 1px solid #3ecf8e !important;
  border-radius: 4px !important;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 1px !important;
  text-transform: uppercase !important;
  padding: 10px 18px !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  transition: all 0.15s !important;
}
#check-screen .check-body a[target="_blank"][rel="noopener"]:hover {
  background: rgba(62, 207, 142, 0.08) !important;
  transform: translateY(-1px) !important;
}

/* ---------- Client record card ---------- */
#check-screen .check-card {
  background: #0a0a0a !important;
  border: 1px solid #1a1a1a !important;
  border-top: 2px solid #ef4444 !important;
  border-radius: 6px !important;
  padding: 22px 22px 18px !important;
  margin-bottom: 18px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
}

/* "Needs Check" badge at top of card */
#check-screen .check-card-status {
  display: inline-block !important;
  background: rgba(239, 68, 68, 0.12) !important;
  color: #ef4444 !important;
  border: none !important;
  padding: 4px 10px !important;
  border-radius: 2px !important;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 1.2px !important;
  text-transform: uppercase !important;
  margin-bottom: 14px !important;
}

/* Field rows: Beneficiary, Carrier, Effective Date */
#check-screen .check-field {
  padding: 10px 0 !important;
  border-bottom: 1px solid #1a1a1a !important;
}
#check-screen .check-field:last-child {
  border-bottom: none !important;
}
#check-screen .check-field-label {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace !important;
  font-size: 10px !important;
  font-weight: 500 !important;
  letter-spacing: 1.5px !important;
  text-transform: uppercase !important;
  color: #999999 !important;
  margin-bottom: 4px !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}
#check-screen .check-field-label::before {
  content: '' !important;
  display: inline-block !important;
  width: 6px !important;
  height: 6px !important;
  background: #3ecf8e !important;
  border-radius: 1px !important;
}
#check-screen .check-field-value {
  font-family: ui-serif, Georgia, serif !important;
  font-size: 17px !important;
  color: #fafafa !important;
  font-weight: 400 !important;
  letter-spacing: -0.2px !important;
}

/* The 2nd check-field's value is the beneficiary name (serif works).
   The 3rd (carrier) has a linked carrier. Style the link inside. */
#check-screen .check-field-value a {
  color: #5b9eff !important;
  text-decoration: none !important;
  font-family: ui-serif, Georgia, serif !important;
}
#check-screen .check-field-value a:hover {
  text-decoration: underline !important;
}

/* Effective date — use mono for dates */
#check-screen .check-field:nth-child(4) .check-field-value,
#check-screen .check-field:last-child .check-field-value {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace !important;
  font-size: 14px !important;
  letter-spacing: 0.5px !important;
}

/* ---------- MBI copy row ---------- */
#check-screen .mbi-copy-row {
  background: #000000 !important;
  border: 1px solid #1a1a1a !important;
  border-radius: 4px !important;
  padding: 14px 16px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  cursor: pointer !important;
  margin: 18px 0 6px !important;
  transition: border-color 0.15s !important;
}
#check-screen .mbi-copy-row:hover {
  border-color: #3ecf8e !important;
}
#check-screen .mbi-value {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace !important;
  font-size: 20px !important;
  font-weight: 500 !important;
  letter-spacing: 2px !important;
  color: #fafafa !important;
}
#check-screen .copy-icon {
  font-size: 0 !important; /* hide the emoji */
  position: relative !important;
  width: 60px !important;
  height: 24px !important;
}
#check-screen .copy-icon::after {
  content: 'COPY' !important;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  letter-spacing: 1.2px !important;
  color: #999999 !important;
  border: 1px solid #1a1a1a !important;
  padding: 4px 10px !important;
  border-radius: 3px !important;
}
#check-screen .mbi-copy-row:hover .copy-icon::after {
  color: #3ecf8e !important;
  border-color: #3ecf8e !important;
}

/* "Tap to copy MBI to clipboard" hint */
#check-screen .copy-hint {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace !important;
  font-size: 10px !important;
  letter-spacing: 1px !important;
  text-transform: uppercase !important;
  color: #525252 !important;
  text-align: center !important;
  margin-bottom: 18px !important;
  padding-top: 4px !important;
}

/* ---------- Instructions block ---------- */
#check-screen .check-instructions {
  background: linear-gradient(90deg, rgba(91, 158, 255, 0.08), transparent 70%) !important;
  border: none !important;
  border-top: 1px solid #1a1a1a !important;
  border-bottom: 1px solid #1a1a1a !important;
  border-radius: 0 !important;
  padding: 14px 16px !important;
  color: #e5e5e5 !important;
  font-family: -apple-system, 'Inter', sans-serif !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
  margin-bottom: 22px !important;
  position: relative !important;
  padding-left: 38px !important;
}
#check-screen .check-instructions::before {
  content: '' !important;
  position: absolute !important;
  left: 16px !important;
  top: 20px !important;
  width: 8px !important;
  height: 8px !important;
  background: #5b9eff !important;
  border-radius: 1px !important;
}
#check-screen .check-instructions strong {
  color: #3ecf8e !important;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace !important;
  font-size: 10px !important;
  letter-spacing: 1px !important;
  text-transform: uppercase !important;
  font-weight: 600 !important;
}

/* ---------- Status buttons (at the bottom) ---------- */
#check-screen .status-buttons {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  margin-top: 8px !important;
}

#check-screen .status-btn {
  background: transparent !important;
  border: 1px solid #1a1a1a !important;
  border-left-width: 2px !important;
  border-radius: 4px !important;
  color: #fafafa !important;
  text-align: left !important;
  padding: 14px 16px !important;
  font-family: -apple-system, 'Inter', sans-serif !important;
  font-size: 14px !important;
  cursor: pointer !important;
  transition: background 0.15s, transform 0.1s, border-color 0.15s !important;
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  width: 100% !important;
  box-shadow: none !important;
}
#check-screen .status-btn:hover {
  background: rgba(255, 255, 255, 0.03) !important;
  transform: translateX(2px) !important;
}
#check-screen .status-btn > div {
  flex: 1 !important;
}
#check-screen .status-btn strong {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace !important;
  font-size: 11px !important;
  letter-spacing: 1.2px !important;
  text-transform: uppercase !important;
  font-weight: 700 !important;
  color: inherit !important;
  display: block !important;
  margin-bottom: 3px !important;
}
#check-screen .status-btn span[style*="font-size:13px"],
#check-screen .status-btn span[style*="font-weight:400"] {
  font-family: -apple-system, 'Inter', sans-serif !important;
  font-size: 12px !important;
  color: #737373 !important;
  font-weight: 400 !important;
  display: block !important;
}

/* Status button accent colors */
#check-screen .status-btn.btn-confirmed {
  border-left-color: #22c55e !important;
}
#check-screen .status-btn.btn-confirmed strong { color: #22c55e !important; }

#check-screen .status-btn[style*="var(--teal-bg)"],
#check-screen .status-btn[onclick*="'future'"] {
  background: transparent !important;
  border-color: #1a1a1a !important;
  border-left-color: #5b9eff !important;
  color: #fafafa !important;
}
#check-screen .status-btn[onclick*="'future'"] strong { color: #5b9eff !important; }

#check-screen .status-btn.btn-pending {
  border-left-color: #f59e0b !important;
}
#check-screen .status-btn.btn-pending strong { color: #f59e0b !important; }

#check-screen .status-btn.btn-denied {
  border-left-color: #ef4444 !important;
}
#check-screen .status-btn.btn-denied strong { color: #ef4444 !important; }

#check-screen .status-btn.btn-chargeback {
  border-left-color: #fb923c !important;
}
#check-screen .status-btn.btn-chargeback strong { color: #fb923c !important; }

#check-screen .status-btn.btn-nocommission {
  border-left-color: #a78bfa !important;
}
#check-screen .status-btn.btn-nocommission strong { color: #a78bfa !important; }

#check-screen .status-btn.btn-skip {
  border-left-color: #525252 !important;
}
#check-screen .status-btn.btn-skip strong { color: #999999 !important; }

/* Hide the emoji icons on status buttons */
#check-screen .status-btn-icon {
  display: none !important;
}

/* ---------- Done screen ---------- */
#check-screen .check-done {
  text-align: center !important;
  padding: 80px 22px !important;
}
#check-screen .check-done-icon {
  display: none !important; /* hide 🎉 emoji */
}
#check-screen .check-done-title {
  font-family: ui-serif, Georgia, serif !important;
  font-size: 32px !important;
  font-weight: 400 !important;
  letter-spacing: -0.6px !important;
  color: #fafafa !important;
  margin-bottom: 10px !important;
}
#check-screen .check-done-text {
  color: #999999 !important;
  font-size: 14px !important;
  margin-bottom: 28px !important;
  font-family: -apple-system, 'Inter', sans-serif !important;
}
#check-screen .check-done .btn-primary {
  background: #3ecf8e !important;
  color: #000000 !important;
  border-radius: 4px !important;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 1.5px !important;
  text-transform: uppercase !important;
}
#check-screen .check-done .btn-primary:hover {
  filter: brightness(1.1) !important;
  box-shadow: 0 4px 16px rgba(62, 207, 142, 0.25) !important;
}
