/* Admin Table Styles - Extracted from inline-styles.css */
/* Contains: admin tables, filters, table containers, transactions, payouts */

/* Admin Transactions page styles */
.admin-transactions {
  max-width: 1600px;
  margin: 0 auto;
}

.admin-section-header {
  margin-bottom: 32px;
}

.admin-section-title {
  margin: 0 0 8px 0;
  font-size: 2rem;
  font-weight: 700;
}

.admin-section-subtitle {
  opacity: 0.7;
  margin: 0;
}

.fyra-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 2px solid #E5E7EB;
  margin-bottom: 24px;
}

.fyra-tab-btn {
  padding: 12px 24px;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
  transition: all 0.2s;
  margin-bottom: -2px;
}

.fyra-tab-content {
  display: none;
}

.fyra-tab-content.is-visible {
  display: block;
}

.fyra-card {
  margin-bottom: 24px;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.filter-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 0.875rem;
}

.filter-input,
.filter-select {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  color: var(--text);
}

.filter-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.table-container {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table thead tr {
  border-bottom: 2px solid #E5E7EB;
}

.admin-table th {
  text-align: left;
  padding: 12px;
  font-weight: 600;
  font-size: 0.875rem;
}

.admin-table th.text-right {
  text-align: right;
}

.admin-table th.text-center {
  text-align: center;
}

.admin-table td {
  padding: 12px;
  font-size: 0.875rem;
}

.admin-table td.text-right {
  text-align: right;
}

.admin-table td.text-center {
  text-align: center;
}

.admin-table td.monospace {
  font-family: monospace;
  color: #6B7280;
}

.admin-table td.nowrap {
  white-space: nowrap;
}

.admin-table td.opacity-70 {
  opacity: 0.7;
}

.at-toggle-checkbox {
  cursor: pointer;
}

.at-amount-cell {
  font-weight: 600;
  color: var(--amber-light);
}

.transaction-row {
  transition: background 0.2s;
}

.transaction-row:not(:last-child) {
  border-bottom: 1px solid #E5E7EB;
}

.transaction-row-border {
  border-bottom: 1px solid #E5E7EB;
}

.transaction-row:hover {
  background: #FFF8E7;
}

.btn-refund:hover {
  opacity: 1 !important;
}

.status-badge {
  padding: 4px 10px;
  border-radius: 12px;
  font-weight: 500;
  font-size: 0.75rem;
}

.status-badge.success {
  background: #D1FAE5;
  color: #10B981;
}

.status-badge.pending {
  background: #FEF3C7;
  color: #F59E0B;
}

.status-badge.canceled {
  background: #F3F4F6;
  color: #6B7280;
}

.action-buttons {
  display: flex;
  gap: 4px;
  justify-content: center;
}

.btn-small {
  padding: 6px 12px;
  font-size: 0.75rem;
}

.btn-refund {
  background: var(--bg);
  border-color: var(--border);
  color: var(--text);
  opacity: 0.8;
}

.btn-refund:hover {
  opacity: 1;
}

/* ===== Admin fundraising (admin/fundraising.ejs) ===== */
.fa-help-top {
  margin-bottom: 8px;
  color: #8086a3;
  font-size: 12px;
}

.fa-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.fa-select-wrap {
  display: flex;
  gap: 8px;
  align-items: end;
  flex: 1;
  min-width: 320px;
}

.fa-select-label {
  flex: 1;
}

.fa-select-actions {
  display: flex;
  gap: 8px;
}

.fa-obs-col {
  flex: 1;
  min-width: 280px;
}

.fa-obs-help {
  margin-bottom: 4px;
  color: #8086a3;
  font-size: 12px;
}

.fa-url-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.fa-url-hidden {
  display: none;
}

.fa-obs-params {
  display: none;
  margin-top: 8px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  align-items: end;
}

.fa-obs-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.fa-obs-toggle-input {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.fa-preview-wrap {
  margin-bottom: 10px;
}

.fa-card-mb {
  margin: 8px 0;
}

.fa-card-title {
  margin: 0 0 8px 0;
}

.fa-prev-root {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: transparent;
}

.fa-prev-title {
  font-weight: 800;
  margin-bottom: 6px;
  text-align: center;
  color: #ffb36a;
}

.fa-prev-bar {
  position: relative;
  height: 22px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  overflow: hidden;
}

.fa-prev-fill {
  position: relative;
  z-index: 1;
  height: 100%;
  width: 50%;
  background: #6d5efc;
  border-radius: inherit;
}

.fa-prev-inside-title {
  display: none;
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 2px;
  transform: translateX(-50%);
  font-size: 12px;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.fa-prev-inside-amount {
  display: none;
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.fa-prev-inside-time {
  display: none;
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 2px;
  transform: translateX(-50%);
  font-size: 12px;
  color: #cfd3ff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.fa-prev-bounds {
  display: none;
  position: relative;
  margin-top: 4px;
  font-size: 11px;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}

.fa-prev-bmin {
  position: absolute;
  left: 6px;
}

.fa-prev-bmax {
  position: absolute;
  right: 6px;
}

.fa-prev-amount {
  margin-top: 6px;
  color: #cfd3ff;
  font-weight: 700;
  text-align: center;
}

.fa-prev-time {
  margin-top: 6px;
  color: #9aa6b2;
  font-size: 12px;
  text-align: center;
}

.fa-tab-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.fa-tab-content {
  margin-top: 12px;
}

.empty-state {
  padding: 48px;
  text-align: center;
  opacity: 0.5;
}

.empty-state-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.empty-state-text {
  margin: 0;
}

.modal-dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 500px;
  padding: 0;
  border: none;
  border-radius: 24px;
  background: var(--card);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  z-index: 10000;
}

.modal-form {
  padding: 32px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid #E5E7EB;
}

.modal-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 2rem;
  color: #6B7280;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}

.modal-field {
  margin-bottom: 20px;
}

.modal-field-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text);
}

.modal-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: 12px;
  font-size: 1rem;
  background: var(--card);
  color: var(--text);
  resize: vertical;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.pagination-container {
  margin-top: 16px;
  text-align: center;
}

.pagination {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
}

.pagination-info {
  opacity: 0.7;
}

.at-bulk-actions {
  margin-top: 16px;
}

.at-payout-section-title {
  margin: 0 0 8px 0;
  font-weight: 600;
}

.at-payout-section-desc {
  opacity: 0.7;
  margin: 0 0 24px 0;
}

.at-filter-grid-payout {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  margin-bottom: 24px;
}

.empty-state {
  padding: 48px;
  text-align: center;
  opacity: 0.5;
}

.empty-state-error {
  padding: 48px;
  text-align: center;
  color: #EF4444;
}

.empty-state-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.empty-state-text {
  margin: 0;
}

.payout-amount-cell {
  font-weight: 600;
  color: var(--amber-light);
}

.payout-user-link {
  color: var(--text);
  text-decoration: none;
}

.payout-user-link:hover {
  text-decoration: underline;
}

.payout-user-id {
  font-size: 0.875rem;
  opacity: 0.7;
}

.payout-user-link {
  color: var(--amber-light);
  text-decoration: none;
}

.payout-user-id {
  opacity: 0.6;
}

.status-badge.processing {
  background: #DBEAFE;
  color: #4D9FFF;
}

.status-badge.failed {
  background: #FEE2E2;
  color: #EF4444;
}

/* Home page styles */

/* Personal page tables */
/* Personal page (personal.ejs) messages section */
.pd-card-mb {
  margin-bottom: 12px;
}

.pd-filter-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.pd-info-text {
  margin-bottom: 8px;
  color: #9aa6b2;
}

.pd-overflow-auto {
  overflow: auto;
}

.pd-table {
  width: 100%;
  border-collapse: collapse;
}

.pd-th {
  text-align: left;
  padding: 8px;
  border-bottom: 1px solid var(--border);
}

.pd-th-right {
  text-align: right;
  padding: 8px;
  border-bottom: 1px solid var(--border);
}

.pd-th-center {
  text-align: center;
  padding: 8px;
  border-bottom: 1px solid var(--border);
}

.pd-td {
  padding: 8px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.pd-td-right {
  padding: 8px;
  border-bottom: 1px solid var(--border);
  text-align: right;
}

.pd-td-center {
  padding: 8px;
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.pd-td-message {
  padding: 8px;
  border-bottom: 1px solid var(--border);
  max-width: 480px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pd-btn-payment {
  padding: 6px 10px;
  font-size: 12px;
  cursor: default;
}

.pd-form-inline {
  display: inline;
  margin: 0;
}

.pd-btn-delete {
  padding: 6px 10px;
  font-size: 12px;
  background: #2a182b;
  border-color: #6f2f74;
  color: #ffb3fd;
}

.pd-empty-row {
  padding: 12px;
  color: #9aa6b2;
}

/* Personal page (notifications section) */

/* KYC and admin table messages */
/* Admin security: KYC queue and modal */
.admin-kyc-message {
  text-align: center;
  padding: 40px;
}

.admin-kyc-message-muted {
  opacity: 0.6;
}

.admin-kyc-message-error {
  color: #EF4444;
}

.kyc-card {
  margin-bottom: 16px;
}

.kyc-card-body {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.kyc-card-main {
  flex: 1;
}

.kyc-card-title {
  margin: 0 0 8px 0;
  font-weight: 600;
}

.kyc-card-subtitle {
  margin: 0;
  opacity: 0.7;
  font-size: 0.875rem;
}

.kyc-card-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.kyc-view-btn {
  padding: 8px 16px;
  font-size: 0.875rem;
}

.kyc-modal-header {
  padding: 32px 32px 24px;
  border-bottom: 2px solid #3a3f4b;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.kyc-modal-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: #e4e6eb;
}

.kyc-modal-close-btn {
  background: none;
  border: none;
  font-size: 2rem;
  color: #9ca3af;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 32px;
  height: 32px;
}

.kyc-modal-body {
  padding: 32px;
  background: #1e2128;
  color: #e4e6eb;
}

.kyc-section {
  margin-bottom: 16px;
}

.kyc-user-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.kyc-field-label {
  font-size: 0.875rem;
  opacity: 0.6;
  margin-bottom: 4px;
  color: #e4e6eb;
}

.kyc-field-value {
  font-weight: 600;
  color: #e4e6eb;
}

.kyc-section-label {
  font-size: 0.875rem;
  opacity: 0.6;
  margin-bottom: 4px;
  color: #e4e6eb;
}

.kyc-section-value {
  font-weight: 600;
  font-size: 1.125rem;
  color: #e4e6eb;
}

.kyc-data-card {
  background: #2a2d37;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 24px;
  border: 1px solid #3a3f4b;
  color: #e4e6eb;
}

.kyc-data-title {
  margin: 0 0 12px 0;
  font-size: 1rem;
  font-weight: 600;
}

.kyc-data-empty {
  opacity: 0.6;
}

.kyc-status-box {
  border-radius: 12px;
  padding: 12px 16px;
  text-align: center;
}

.kyc-status-box-verified {
  background: rgba(16, 185, 129, 0.15);
  border: 2px solid #10B981;
}

.kyc-status-box-rejected {
  background: rgba(239, 68, 68, 0.15);
  border: 2px solid #EF4444;
}

.kyc-status-box-title {
  font-weight: 600;
  margin-bottom: 4px;
}

.kyc-status-box-title-verified {
  color: #10B981;
}

.kyc-status-box-title-rejected {
  color: #EF4444;
}

.kyc-status-box-text {
  font-size: 0.875rem;
}

.kyc-status-box-text-rejected {
  color: #EF4444;
  opacity: 0.9;
}

.kyc-action-buttons {
  display: flex;
  gap: 12px;
}

.kyc-approve-btn {
  flex: 1;
  padding: 12px 24px;
  background: linear-gradient(90deg, #f6a86e, #ff7c48);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

.kyc-approve-btn:hover {
  opacity: 0.9;
}

.kyc-reject-btn {
  flex: 1;
  padding: 12px 24px;
  background: #402727;
  color: #ff6b6b;
  border: 2px solid #ff6b6b;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.kyc-reject-btn:hover {
  background: #542f2f;
}

.kyc-modal-error {
  padding: 40px;
  text-align: center;
  background: #1e2128;
  color: #e4e6eb;
}

/* Generic admin table messages (loading/empty/error) */
.admin-table-message {
  text-align: center;
  padding: 20px;
}

.admin-table-message-muted {
  opacity: 0.6;
}

.admin-table-message-error {
  color: #EF4444;
}

.cell-nowrap {
  white-space: nowrap;
}

.cell-muted {
  font-size: 0.875rem;
  opacity: 0.6;
}

.cell-monospace {
  font-family: monospace;
  font-size: 0.875rem;
}

.cell-ellipsis {
  font-size: 0.875rem;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cell-monospace-small {
  font-family: monospace;
  font-size: 0.75rem;
}

.cell-bold {
  font-weight: 600;
}

.badge-deleted {
  background: rgba(239, 68, 68, 0.2);
  color: #FCA5A5;
  border-color: rgba(239, 68, 68, 0.4);
}

.badge-payout-status-pending {
  background: #F59E0B;
}

.badge-payout-status-processing {
  background: #3B82F6;
}

.badge-payout-status-succeeded {
  background: #10B981;
}

.badge-payout-status-canceled {
  background: #6B7280;
}

.badge-payout-status-failed {
  background: #EF4444;
}

/* Admin table utility classes for admin-security-tabs.js */
.admin-table-nowrap {
  white-space: nowrap;
}

.admin-table-email {
  font-size: 0.875rem;
  opacity: 0.8;
}

.admin-table-useragent {
  font-family: monospace;
  font-size: 0.75rem;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-table-ip {
  font-family: monospace;
  font-size: 0.875rem;
}

.font-monospace {
  font-family: monospace;
}

.admin-table-centered-message {
  text-align: center;
  padding: 20px;
}

.admin-loading-message {
  text-align: center;
  padding: 40px;
  opacity: 0.6;
}

.pagination-text {
  padding: 0 16px;
  opacity: 0.7;
}

.pagination-container {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
}

.as-toggle-row-no-margin {
  margin: 0;
}

.card-error-message {
  color: #EF4444;
  margin-bottom: 16px;
}

.card-error-details {
  opacity: 0.6;
  font-size: 0.875rem;
  color: #e4e6eb;
}

.grid-auto-fit-200 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.text-error {
  color: #EF4444;
}

.badge-active {
  background: #10B981;
}

.badge-inactive {
  background: #6B7280;
}

.badge-outdated {
  background: #F59E0B;
}

.badge-verified {
  background: #10B981;
}

.badge-pending-verification {
  background: #F59E0B;
}

.btn-width-100 {
  width: 100px;
}

.admin-table-centered-message-muted {
  text-align: center;
  padding: 20px;
  opacity: 0.6;
}

.mt-16 {
  margin-top: 16px;
}

/* ===========================================
