/* DFI Investor Victims Plugin Styles */
.dfi-wrap * { box-sizing: border-box; }

.dfi-wrap {
  max-width: 1280px;
  margin: 18px auto;
  padding: 14px;
  font-family: Arial, Helvetica, sans-serif;
  color: #1e293b;
}

.dfi-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  padding: 22px;
  margin-bottom: 18px;
}

.dfi-title-main {
  text-align: center;
  font-size: 32px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 6px;
  line-height: 1.3;
}

.dfi-subtitle {
  text-align: center;
  font-size: 17px;
  color: #475569;
  font-weight: 600;
  margin-bottom: 18px;
}

.dfi-vertical-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.dfi-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dfi-field-group label {
  font-size: 20px;
  font-weight: 700;
  color: #1e293b;
}

.dfi-field-group input[type="text"],
.dfi-field-group input[type="number"],
.dfi-field-group input[type="password"] {
  width: 100%;
  padding: 15px 17px;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  font-size: 20px;
  font-weight: 600;
  outline: none;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.dfi-field-group input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37,99,235,0.12);
}

.dfi-amount-input {
  font-size: 24px !important;
  font-weight: 700 !important;
  text-align: right !important;
  min-height: 60px;
  letter-spacing: 0.4px;
}

.dfi-readonly {
  background: #f8fafc !important;
  cursor: default;
}

/* Duplicate field highlight */
.dfi-dup-field {
  border-color: #dc2626 !important;
  background: #fff1f2 !important;
  box-shadow: 0 0 0 4px rgba(220,38,38,0.15) !important;
  animation: dfi-shake 0.35s ease;
}

@keyframes dfi-shake {
  0%,100% { transform: translateX(0); }
  20%      { transform: translateX(-6px); }
  40%      { transform: translateX(6px); }
  60%      { transform: translateX(-4px); }
  80%      { transform: translateX(4px); }
}

.dfi-summary-box {
  background: #eef6ff;
  border: 1px solid #bfdbfe;
  border-radius: 14px;
  padding: 14px 16px;
  margin-top: 10px;
}

.dfi-summary-box p {
  margin: 6px 0;
  font-size: 15px;
  font-weight: 700;
}

.dfi-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.dfi-btn {
  border: none;
  border-radius: 12px;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.dfi-btn:hover { transform: translateY(-1px); opacity: 0.92; }

.dfi-btn-primary { background: #2563eb; color: #fff; }
.dfi-btn-success { background: #16a34a; color: #fff; }
.dfi-btn-warning { background: #d97706; color: #fff; }
.dfi-btn-danger  { background: #dc2626; color: #fff; }
.dfi-btn-dark    { background: #0f172a; color: #fff; }
.dfi-btn-light   { background: #e2e8f0; color: #0f172a; }
.dfi-btn-info    { background: #0ea5e9; color: #fff; }

.dfi-small-note {
  font-size: 14px;
  color: #475569;
  font-weight: 600;
  margin-top: 12px;
}

.dfi-section-title {
  font-size: 21px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 12px;
}

.dfi-lock-box {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.dfi-lock-box input {
  padding: 11px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  outline: none;
  max-width: 240px;
}

.dfi-badge {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  background: #e2e8f0;
  color: #0f172a;
}

.dfi-search-box {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
  margin-bottom: 10px;
}

.dfi-search-box input {
  padding: 10px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  outline: none;
}

/* ── BULK TOOLBAR ── */
.dfi-bulk-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  margin-bottom: 10px;
  opacity: 0.4;
  pointer-events: none;
  transition: opacity 0.2s;
}

.dfi-bulk-toolbar.dfi-bulk-active {
  opacity: 1;
  pointer-events: all;
  background: #eff6ff;
  border-color: #93c5fd;
}

.dfi-bulk-count {
  font-size: 13px;
  font-weight: 800;
  color: #1e40af;
  margin-right: 4px;
}

/* ── TABLE ── */
.dfi-table-wrap {
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid #dbe2ea;
  background: #fff;
  margin-top: 8px;
}

.dfi-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1100px;
  background: #fff;
}

.dfi-table th,
.dfi-table td {
  border: 1px solid #dbe2ea;
  padding: 9px 8px;
  text-align: center;
  font-size: 13px;
  vertical-align: middle;
  line-height: 1.4;
}

.dfi-table th {
  background: #0f172a;
  color: #fff;
  font-weight: 800;
  font-size: 12px;
  white-space: nowrap;
}

.dfi-table tr:nth-child(even) td { background: #f8fafc; }
.dfi-table tr.dfi-selected-row td { background: #dbeafe !important; }

.dfi-table td.dfi-left  { text-align: left; }
.dfi-table td.dfi-right { text-align: right; }

.dfi-status-approved { color: #15803d; font-weight: 800; }
.dfi-status-pending  { color: #b45309; font-weight: 800; }

/* checkbox column */
.dfi-table input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: #2563eb;
}

/* row action buttons */
.dfi-table .dfi-btn {
  padding: 5px 10px;
  font-size: 12px;
  border-radius: 8px;
  margin: 2px 1px;
}

/* ── PUBLIC PANEL ── */
.dfi-public-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.dfi-public-note {
  font-size: 13px;
  color: #64748b;
  font-weight: 700;
  margin-bottom: 6px;
}

/* ── MODAL ── */
.dfi-modal {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 9999;
}

.dfi-modal.dfi-modal-show { display: flex; }

.dfi-modal-content {
  width: min(1100px, 100%);
  max-height: 90vh;
  overflow: auto;
  background: #fff;
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.22);
}

.dfi-modal-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.dfi-modal-top h3 { margin: 0; font-size: 21px; color: #0f172a; }

/* ── PRINT HEADER ── */
.dfi-print-header { display: none; }

/* ── UTILITY ── */
.dfi-hidden     { display: none !important; }
.dfi-no-print   {}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .dfi-search-box { grid-template-columns: 1fr; }
  .dfi-title-main { font-size: 24px; }
  .dfi-field-group label { font-size: 17px; }
  .dfi-field-group input { font-size: 17px; }
  .dfi-amount-input { font-size: 20px !important; }
  .dfi-public-panel-header { flex-direction: column; align-items: flex-start; }
}

/* ── PRINT ── */
@media print {
  body, .dfi-wrap { background: #fff !important; }
  .dfi-no-print, .dfi-modal { display: none !important; }
  .dfi-print-header { display: block; text-align: center; margin-bottom: 15px; }
  .dfi-card { box-shadow: none !important; border: 1px solid #ccc !important; }
  .dfi-table th { background: #e5e7eb !important; color: #000 !important; }
}
