/* ==============================================================================
   Statement Visual Highlighting & Color Coding Stylesheet
   Fundlelo / Salora Capital Account Panel
   ============================================================================== */

/* 1. Summary Matrix Visual Cards */
.statement-summary-grid {
  display: grid !important;
  gap: 8px !important;
}

/* Individual Metric Cards */
.st-card-opening {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px !important;
}

.st-card-disbursed {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.08) 0%, rgba(99, 102, 241, 0.03) 100%) !important;
  border: 1px solid rgba(79, 70, 229, 0.3) !important;
  color: #4338ca !important;
}
.st-card-disbursed span:last-child {
  color: #4338ca !important;
  font-weight: 700 !important;
}

.st-card-interest {
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.08) 0%, rgba(245, 158, 11, 0.03) 100%) !important;
  border: 1px solid rgba(217, 119, 6, 0.3) !important;
}
.st-card-interest span:last-child {
  color: #b45309 !important;
  font-weight: 700 !important;
}

.st-card-fees {
  background: linear-gradient(135deg, rgba(147, 51, 234, 0.08) 0%, rgba(168, 85, 247, 0.03) 100%) !important;
  border: 1px solid rgba(147, 51, 234, 0.25) !important;
}
.st-card-fees span:last-child {
  color: #7e22ce !important;
  font-weight: 700 !important;
}

.st-card-repayments {
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.12) 0%, rgba(16, 185, 129, 0.04) 100%) !important;
  border: 1.5px solid rgba(5, 150, 105, 0.35) !important;
}
.st-card-repayments span:first-child {
  color: #065f46 !important;
  font-weight: 700 !important;
}
.st-card-repayments span:last-child {
  color: #047857 !important;
  font-weight: 800 !important;
}

.st-card-waivers {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.08) 0%, rgba(56, 189, 248, 0.03) 100%) !important;
  border: 1px solid rgba(14, 165, 233, 0.25) !important;
}
.st-card-waivers span:last-child {
  color: #0369a1 !important;
  font-weight: 700 !important;
}

.st-card-outstanding-pending {
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.1) 0%, rgba(244, 63, 94, 0.04) 100%) !important;
  border: 1.5px solid rgba(225, 29, 72, 0.4) !important;
}
.st-card-outstanding-pending span:first-child {
  color: #9f1239 !important;
  font-weight: 700 !important;
}
.st-card-outstanding-pending span:last-child {
  color: #be123c !important;
  font-weight: 800 !important;
  font-size: 15px !important;
}

.st-card-outstanding-closed {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(5, 150, 105, 0.06) 100%) !important;
  border: 1.5px solid rgba(16, 185, 129, 0.5) !important;
}
.st-card-outstanding-closed span:first-child {
  color: #065f46 !important;
  font-weight: 700 !important;
}
.st-card-outstanding-closed span:last-child {
  color: #059669 !important;
  font-weight: 800 !important;
}

/* 2. Transaction Ledger Row Highlights */
.st-row-debit {
  background-color: rgba(254, 242, 242, 0.6) !important;
  transition: background-color 0.15s ease;
}
.st-row-debit:hover {
  background-color: rgba(254, 226, 226, 0.8) !important;
}

.st-row-credit {
  background-color: rgba(236, 253, 245, 0.6) !important;
  transition: background-color 0.15s ease;
}
.st-row-credit:hover {
  background-color: rgba(209, 250, 229, 0.85) !important;
}

/* Debit & Credit Amount Typography */
.st-amount-debit {
  color: #e11d48 !important;
  font-weight: 700 !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
}

.st-amount-credit {
  color: #059669 !important;
  font-weight: 800 !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
}

.st-amount-zero {
  color: #94a3b8 !important;
  opacity: 0.6;
}

/* Direction Badges */
.st-badge-debit {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: #fee2e2;
  color: #991b1b;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

.st-badge-credit {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: #d1fae5;
  color: #065f46;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

/* Payment Mode Chips */
.st-chip-upi {
  display: inline-block;
  background: #ede9fe;
  color: #6d28d9;
  font-size: 10px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid #ddd6fe;
}

.st-chip-bank {
  display: inline-block;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 10px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid #bae6fd;
}

.st-chip-waive {
  display: inline-block;
  background: #ccfbf1;
  color: #0f766e;
  font-size: 10px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid #99f6e4;
}

/* Status Badges in Directory */
.st-status-closed {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(16, 185, 129, 0.15) !important;
  color: #047857 !important;
  border: 1px solid rgba(16, 185, 129, 0.35) !important;
  font-weight: 700 !important;
  font-size: 11px !important;
  padding: 3px 10px !important;
  border-radius: 9999px !important;
}

.st-status-active {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(79, 70, 229, 0.12) !important;
  color: #4338ca !important;
  border: 1px solid rgba(79, 70, 229, 0.3) !important;
  font-weight: 700 !important;
  font-size: 11px !important;
  padding: 3px 10px !important;
  border-radius: 9999px !important;
}

.st-status-overdue {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(225, 29, 72, 0.12) !important;
  color: #be123c !important;
  border: 1px solid rgba(225, 29, 72, 0.35) !important;
  font-weight: 700 !important;
  font-size: 11px !important;
  padding: 3px 10px !important;
  border-radius: 9999px !important;
}

.st-status-partial {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(245, 158, 11, 0.15) !important;
  color: #b45309 !important;
  border: 1px solid rgba(245, 158, 11, 0.35) !important;
  font-weight: 700 !important;
  font-size: 11px !important;
  padding: 3px 10px !important;
  border-radius: 9999px !important;
}

/* Print Specific Optimizations */
@media print {
  .st-row-debit {
    background-color: #fff1f2 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .st-row-credit {
    background-color: #ecfdf5 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .st-amount-debit {
    color: #be123c !important;
  }
  .st-amount-credit {
    color: #047857 !important;
  }
  .st-btn-close-account, .st-modal-overlay {
    display: none !important;
  }
}

/* 5. Account Manager Manual Loan Closure Button & Modal */
.st-btn-close-account {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  background: linear-gradient(135deg, #e11d48 0%, #be123c 100%) !important;
  color: #ffffff !important;
  border: 1px solid #9f1239 !important;
  padding: 6px 14px !important;
  border-radius: 8px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  box-shadow: 0 2px 8px rgba(225, 29, 72, 0.28) !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.st-btn-close-account:hover {
  background: linear-gradient(135deg, #be123c 0%, #9f1239 100%) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.38) !important;
}

.st-badge-already-closed {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  background: rgba(16, 185, 129, 0.15) !important;
  color: #047857 !important;
  border: 1.5px solid rgba(16, 185, 129, 0.5) !important;
  padding: 5px 12px !important;
  border-radius: 8px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}

/* Modal Overlay */
.st-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 16px;
  animation: stFadeIn 0.2s ease-out;
}

@keyframes stFadeIn {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}

.st-modal-card {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 18px;
  width: 100%;
  max-width: 640px;
  max-height: 92vh;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.35);
  overflow: hidden;
  font-family: inherit;
  display: flex;
  flex-direction: column;
}

.st-modal-header {
  padding: 16px 22px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(to right, #f8fafc, #f1f5f9);
}

.st-modal-title {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
}

.st-modal-subtitle {
  font-size: 11px;
  color: #64748b;
  font-weight: 500;
  margin-top: 2px;
}

.st-modal-close-btn {
  background: transparent;
  border: none;
  font-size: 22px;
  line-height: 1;
  color: #64748b;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.15s;
}

.st-modal-close-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.st-modal-body {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
  max-height: calc(92vh - 130px);
}

.st-modal-meta-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 16px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  font-size: 12px;
}

.st-meta-col {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.st-meta-col span {
  color: #64748b;
  font-size: 11px;
  font-weight: 500;
}

.st-meta-col strong {
  color: #0f172a;
  font-family: monospace;
  font-size: 13px;
}

/* Mode Selector Cards */
.st-mode-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.st-mode-card {
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  padding: 10px 14px;
  cursor: pointer;
  transition: all 0.15s ease;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.st-mode-card:hover {
  border-color: #94a3b8;
  background: #f8fafc;
}

.st-mode-card.active-full {
  border-color: #e11d48;
  background: rgba(225, 29, 72, 0.04);
  box-shadow: 0 0 0 1px #e11d48;
}

.st-mode-card.active-partial {
  border-color: #d97706;
  background: rgba(217, 119, 6, 0.04);
  box-shadow: 0 0 0 1px #d97706;
}

.st-mode-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: #0f172a;
}

.st-mode-desc {
  font-size: 11px;
  color: #64748b;
  line-height: 1.35;
}

/* File Dropzone & Image Preview */
.st-proof-dropzone {
  border: 2px dashed #cbd5e1;
  border-radius: 10px;
  padding: 14px 16px;
  text-align: center;
  background: #f8fafc;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.st-proof-dropzone:hover, .st-proof-dropzone.dragover {
  border-color: #e11d48;
  background: rgba(225, 29, 72, 0.03);
}

.st-proof-preview-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
}

.st-proof-preview-thumb {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
}

.st-proof-file-details {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.st-proof-file-name {
  font-size: 12px;
  font-weight: 600;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.st-proof-file-size {
  font-size: 10.5px;
  color: #64748b;
}

.st-proof-remove-btn {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecaca;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.st-proof-remove-btn:hover {
  background: #fca5a5;
  color: #991b1b;
}

/* 2-Column Form Grid */
.st-form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.st-form-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.st-form-label {
  font-size: 11.5px;
  font-weight: 600;
  color: #334155;
  display: flex;
  justify-content: space-between;
}

.st-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.st-input-prefix {
  position: absolute;
  left: 10px;
  color: #64748b;
  font-weight: 700;
  font-size: 13px;
  pointer-events: none;
}

.st-form-input, .st-form-select, .st-form-textarea {
  width: 100%;
  padding: 7px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  font-size: 12.5px;
  color: #0f172a;
  background: #ffffff;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  box-sizing: border-box;
  font-family: inherit;
}

.st-form-input.has-prefix {
  padding-left: 24px;
}

.st-form-input:focus, .st-form-select:focus, .st-form-textarea:focus {
  border-color: #e11d48;
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.12);
}

/* Live Calc Summary Card */
.st-calc-card {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
}

.st-calc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.st-calc-row span {
  color: #64748b;
}

.st-calc-row strong {
  font-family: monospace;
  color: #0f172a;
}

.st-calc-divider {
  height: 1px;
  background: #e2e8f0;
  margin: 2px 0;
}

.st-modal-footer {
  padding: 14px 22px;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.st-salora-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #475569;
  font-weight: 500;
}

.st-btn-modal-cancel {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #475569;
  padding: 7px 14px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.st-btn-modal-cancel:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.st-btn-modal-confirm {
  background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
  border: none;
  color: #ffffff;
  padding: 7px 18px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(225, 29, 72, 0.3);
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.st-btn-modal-confirm:hover:not(:disabled) {
  background: linear-gradient(135deg, #be123c 0%, #9f1239 100%);
  box-shadow: 0 4px 10px rgba(225, 29, 72, 0.4);
}

.st-btn-modal-confirm:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Table Row Action Buttons in Statements Directory */
.btn-table-close-loan {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  background: linear-gradient(135deg, #e11d48 0%, #be123c 100%) !important;
  color: #ffffff !important;
  border: 1px solid #9f1239 !important;
  padding: 4px 9px !important;
  border-radius: 6px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  box-shadow: 0 1px 3px rgba(225, 29, 72, 0.25) !important;
  transition: all 0.15s ease !important;
  white-space: nowrap !important;
}

.btn-table-close-loan:hover {
  background: linear-gradient(135deg, #be123c 0%, #9f1239 100%) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 2px 6px rgba(225, 29, 72, 0.35) !important;
}

.badge-table-closed-loan {
  display: inline-flex !important;
  align-items: center !important;
  gap: 3px !important;
  background: rgba(16, 185, 129, 0.15) !important;
  color: #047857 !important;
  border: 1px solid rgba(16, 185, 129, 0.4) !important;
  padding: 3px 8px !important;
  border-radius: 6px !important;
  font-size: 10.5px !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
}

/* ==============================================================================
   Full-Screen Responsive Layout Upgrade for Fundlelo Account Panel
   Overcomes rigid 1024px max-w-5xl box, utilizing full widescreen monitor space
   ============================================================================== */
header > div.max-w-5xl,
main.max-w-5xl {
  max-width: 96% !important;
  width: 96% !important;
}

@media (min-width: 1400px) {
  header > div.max-w-5xl,
  main.max-w-5xl {
    max-width: 1800px !important;
    width: 100% !important;
    padding-left: 2rem !important;
    padding-right: 2rem !important;
  }
}

/* Grid columns expansion for wide screens */
@media (min-width: 1600px) {
  .grid.grid-cols-1.md\:grid-cols-2.xl\:grid-cols-2 {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

/* ==============================================================================
   Payment Proof Modal, Badges & Verification Elements
   ============================================================================== */
.st-btn-toolbar-proof {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
  color: #ffffff !important;
  border: 1px solid #065f46 !important;
  padding: 6px 14px !important;
  border-radius: 8px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  box-shadow: 0 2px 4px rgba(5, 150, 105, 0.25) !important;
  transition: all 0.15s ease !important;
}
.st-btn-toolbar-proof:hover {
  background: linear-gradient(135deg, #047857 0%, #065f46 100%) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 8px rgba(5, 150, 105, 0.35) !important;
}

.st-proof-link-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  background: rgba(16, 185, 129, 0.12) !important;
  color: #047857 !important;
  border: 1px solid rgba(16, 185, 129, 0.4) !important;
  padding: 2px 8px !important;
  border-radius: 6px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  text-decoration: none !important;
  transition: all 0.15s ease !important;
}
.st-proof-link-badge:hover {
  background: rgba(16, 185, 129, 0.22) !important;
  border-color: #059669 !important;
}

.st-btn-ledger-proof {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  background: #f0fdf4 !important;
  color: #15803d !important;
  border: 1px solid #86efac !important;
  padding: 3px 8px !important;
  border-radius: 5px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  margin-left: 6px !important;
  transition: all 0.15s ease !important;
}
.st-btn-ledger-proof:hover {
  background: #dcfce7 !important;
  border-color: #22c55e !important;
  transform: translateY(-1px) !important;
}

/* ==============================================================================
   Enhanced Payment Proof Modal Design System
   ============================================================================== */
.st-proof-modal-overlay {
  position: fixed !important;
  inset: 0 !important;
  background: rgba(15, 23, 42, 0.8) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  z-index: 999999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 16px !important;
  animation: stModalFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

@keyframes stModalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes stModalZoomIn {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.st-proof-modal-container {
  background: #ffffff !important;
  border-radius: 18px !important;
  max-width: 860px !important;
  width: 100% !important;
  max-height: 92vh !important;
  display: flex !important;
  flex-direction: column !important;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1) !important;
  overflow: hidden !important;
  border: 1px solid #cbd5e1 !important;
  animation: stModalZoomIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  transition: all 0.25s ease !important;
}

.st-proof-container-fullscreen {
  max-width: 96vw !important;
  width: 96vw !important;
  max-height: 96vh !important;
  height: 96vh !important;
}

.st-proof-modal-header {
  padding: 16px 22px !important;
  background: linear-gradient(135deg, #090d16 0%, #1e293b 100%) !important;
  color: #ffffff !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.st-proof-avatar-pill {
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%) !important;
  color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-weight: 800 !important;
  font-size: 13.5px !important;
  letter-spacing: 0.5px !important;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4) !important;
  flex-shrink: 0 !important;
  border: 2px solid rgba(255, 255, 255, 0.2) !important;
}

.st-proof-header-badge-live {
  background: rgba(16, 185, 129, 0.18) !important;
  color: #34d399 !important;
  border: 1px solid rgba(52, 211, 153, 0.35) !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  padding: 2px 8px !important;
  border-radius: 9999px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
}

.st-proof-header-subtitle {
  font-size: 12px !important;
  color: #94a3b8 !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  flex-wrap: wrap !important;
  margin-top: 3px !important;
}

.st-proof-dot-sep {
  color: #475569 !important;
  font-weight: 900 !important;
}

.st-proof-close-btn {
  width: 32px !important;
  height: 32px !important;
  border-radius: 8px !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  background: rgba(255, 255, 255, 0.08) !important;
  color: #94a3b8 !important;
  font-size: 16px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}

.st-proof-close-btn:hover {
  background: rgba(239, 68, 68, 0.2) !important;
  color: #f87171 !important;
  border-color: rgba(239, 68, 68, 0.4) !important;
  transform: rotate(90deg) !important;
}

.st-proof-modal-body {
  padding: 18px 22px !important;
  overflow-y: auto !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
  background: #f8fafc !important;
}

.st-proof-viewer-wrapper {
  display: flex !important;
  flex-direction: column !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  border: 1.5px solid #cbd5e1 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06) !important;
}

.st-proof-viewer-toolbar {
  background: #0f172a !important;
  padding: 8px 12px !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  border-bottom: 1px solid #1e293b !important;
}

.st-proof-tool-btn {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #e2e8f0 !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  padding: 5px 9px !important;
  border-radius: 6px !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  transition: all 0.15s ease !important;
  text-decoration: none !important;
  line-height: 1 !important;
}

.st-proof-tool-btn:hover {
  background: rgba(255, 255, 255, 0.16) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  transform: translateY(-1px) !important;
}

.st-proof-tool-btn.active {
  background: #4f46e5 !important;
  color: #ffffff !important;
  border-color: #6366f1 !important;
}

.st-proof-tool-link {
  background: #4f46e5 !important;
  color: #ffffff !important;
  border-color: #4338ca !important;
}
.st-proof-tool-link:hover {
  background: #4338ca !important;
}

.st-proof-tool-link-green {
  background: #059669 !important;
  color: #ffffff !important;
  border-color: #047857 !important;
}
.st-proof-tool-link-green:hover {
  background: #047857 !important;
}

.st-proof-preview-container {
  background: radial-gradient(circle at center, #111827 0%, #030712 100%) !important;
  padding: 16px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 290px !important;
  max-height: 460px !important;
  overflow: auto !important;
  position: relative !important;
}

.st-proof-container-fullscreen .st-proof-preview-container {
  max-height: 60vh !important;
  min-height: 55vh !important;
}

.st-proof-img-stage {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  position: relative !important;
}

.st-proof-img-display {
  max-width: 95% !important;
  max-height: 380px !important;
  object-fit: contain !important;
  border-radius: 8px !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7) !important;
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
  transform-origin: center center !important;
  user-select: none !important;
}

.st-proof-container-fullscreen .st-proof-img-display {
  max-height: 52vh !important;
}

.st-proof-img-status-bar {
  margin-top: 10px !important;
  display: flex !important;
  gap: 12px !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  flex-wrap: wrap !important;
  padding: 4px 6px 0 6px !important;
}

.st-proof-badge-verified {
  font-size: 11px !important;
  color: #34d399 !important;
  font-weight: 600 !important;
  background: rgba(16, 185, 129, 0.15) !important;
  border: 1px solid rgba(52, 211, 153, 0.3) !important;
  padding: 3px 10px !important;
  border-radius: 6px !important;
}

.st-proof-btn-action-primary {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%) !important;
  color: #ffffff !important;
  padding: 8px 18px !important;
  border-radius: 8px !important;
  text-decoration: none !important;
  font-weight: 600 !important;
  font-size: 12.5px !important;
  box-shadow: 0 2px 6px rgba(79, 70, 229, 0.4) !important;
}

.st-proof-btn-action-emerald {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
  color: #ffffff !important;
  padding: 8px 18px !important;
  border-radius: 8px !important;
  text-decoration: none !important;
  font-weight: 600 !important;
  font-size: 12.5px !important;
  box-shadow: 0 2px 6px rgba(5, 150, 105, 0.4) !important;
}

.st-proof-meta-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

@media (max-width: 768px) {
  .st-proof-meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

.st-proof-meta-item {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  padding: 11px 14px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 3px !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03) !important;
  transition: all 0.15s ease !important;
}

.st-proof-meta-item:hover {
  border-color: #cbd5e1 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05) !important;
}

.st-proof-meta-header {
  display: flex !important;
  align-items: center !important;
  gap: 5px !important;
}

.st-proof-meta-icon {
  font-size: 12px !important;
}

.st-proof-meta-label {
  font-size: 10.5px !important;
  color: #64748b !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  font-weight: 700 !important;
  flex: 1 !important;
}

.st-proof-meta-value {
  font-size: 14.5px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  line-height: 1.2 !important;
}

.st-btn-copy-chip {
  background: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
  color: #334155 !important;
  font-size: 9.5px !important;
  font-weight: 700 !important;
  padding: 1px 6px !important;
  border-radius: 4px !important;
  cursor: pointer !important;
  transition: all 0.1s ease !important;
}

.st-btn-copy-chip:hover {
  background: #e2e8f0 !important;
  color: #0f172a !important;
}

.st-proof-status-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  padding: 2px 8px !important;
  border-radius: 6px !important;
  line-height: 1.2 !important;
}

.st-proof-status-pill.closed {
  background: #ecfdf5 !important;
  color: #047857 !important;
  border: 1px solid #a7f3d0 !important;
}

.st-proof-status-pill.active {
  background: #fffbeb !important;
  color: #b45309 !important;
  border: 1px solid #fde68a !important;
}

.st-proof-remarks-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  padding: 12px 16px !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03) !important;
}

.st-proof-modal-footer {
  padding: 12px 22px !important;
  background: #ffffff !important;
  border-top: 1px solid #e2e8f0 !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
}

.st-proof-badge-count {
  font-size: 11px !important;
  background: #e0e7ff !important;
  color: #3730a3 !important;
  padding: 2px 9px !important;
  border-radius: 9999px !important;
  font-weight: 700 !important;
  border: 1px solid #c7d2fe !important;
}

.st-proof-btn-print {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  background: #f1f5f9 !important;
  color: #334155 !important;
  border: 1px solid #cbd5e1 !important;
  padding: 8px 14px !important;
  border-radius: 8px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}

.st-proof-btn-print:hover {
  background: #e2e8f0 !important;
  color: #0f172a !important;
}

.st-proof-btn-cancel {
  background: #f8fafc !important;
  color: #475569 !important;
  border: 1px solid #cbd5e1 !important;
  padding: 8px 16px !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  font-size: 12px !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}

.st-proof-btn-cancel:hover {
  background: #e2e8f0 !important;
  color: #0f172a !important;
}

.st-spinner-sm {
  width: 14px !important;
  height: 14px !important;
  border: 2px solid rgba(255, 255, 255, 0.2) !important;
  border-top-color: #ffffff !important;
  border-radius: 50% !important;
  animation: stSpin 0.7s linear infinite !important;
  display: inline-block !important;
}

@keyframes stSpin {
  to { transform: rotate(360deg); }
}

/* ==============================================================================
   Dynamic Multi-File Repayment Proofs (customer_repayments/<userID>/)
   ============================================================================== */
.st-proof-multi-container {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  background: #f8fafc !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 12px !important;
  padding: 14px 16px !important;
}

.st-proof-multi-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #1e293b !important;
}

.st-proof-file-tabs {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
}

.st-proof-file-tab {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 6px 12px !important;
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 8px !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  color: #1e293b !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}

.st-proof-file-tab:hover {
  border-color: #6366f1 !important;
  background: #f5f3ff !important;
}

.st-proof-file-tab.active {
  background: #4f46e5 !important;
  color: #ffffff !important;
  border-color: #4338ca !important;
  box-shadow: 0 2px 6px rgba(79, 70, 229, 0.35) !important;
}

.st-proof-file-tab.active .st-proof-tab-size {
  color: #e0e7ff !important;
}

.st-proof-tab-size {
  font-size: 10px !important;
  color: #64748b !important;
  font-weight: 500 !important;
}

.st-proof-active-info-bar {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 8px 12px !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px !important;
  font-size: 11.5px !important;
}

.st-proof-empty-box {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  background: #fffbeb !important;
  border: 1px solid #fef3c7 !important;
  padding: 12px 16px !important;
  border-radius: 10px !important;
  color: #92400e !important;
}

/* Toolbar Buttons for Close Loan, Partial Payment, View Proof */
.st-btn-partial-account {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%) !important;
  color: #ffffff !important;
  border: 1px solid #92400e !important;
  padding: 6px 14px !important;
  border-radius: 8px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  box-shadow: 0 2px 4px rgba(217, 119, 6, 0.25) !important;
  transition: all 0.15s ease !important;
}

.st-btn-partial-account:hover {
  background: linear-gradient(135deg, #b45309 0%, #78350f 100%) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 8px rgba(217, 119, 6, 0.35) !important;
}

.btn-table-partial-loan {
  display: inline-flex !important;
  align-items: center !important;
  gap: 3px !important;
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%) !important;
  color: #ffffff !important;
  border: 1px solid #92400e !important;
  padding: 4px 8px !important;
  border-radius: 6px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  box-shadow: 0 1px 3px rgba(217, 119, 6, 0.25) !important;
  transition: all 0.15s ease !important;
  white-space: nowrap !important;
}

.btn-table-partial-loan:hover {
  background: linear-gradient(135deg, #b45309 0%, #78350f 100%) !important;
  transform: translateY(-1px) !important;
}

.btn-table-proof-loan {
  display: inline-flex !important;
  align-items: center !important;
  gap: 3px !important;
  background: #f0fdf4 !important;
  color: #047857 !important;
  border: 1px solid #86efac !important;
  padding: 4px 8px !important;
  border-radius: 6px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  white-space: nowrap !important;
}

.btn-table-proof-loan:hover {
  background: #dcfce7 !important;
  transform: translateY(-1px) !important;
}


