body {
  background: #f5f7fb;
}

.container-fluid.py-3,
.container-fluid.py-4 {
  max-width: none;
  padding-inline: clamp(14px, 2vw, 28px);
}

.voucher-print-head {
  display: none;
}

.voucher-print-copies,
.voucher-print-signatures {
  display: none;
}

/* ===== 3D Card Style ===== */
.rv-card {
  border: 1px solid rgba(148, 163, 184, .16);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 18px 46px rgba(15, 23, 42, .06);
  transition: all 0.25s ease;
  overflow: hidden;
}

.rv-card:hover {
  transform: translateY(-2px);
  box-shadow:
    0 14px 35px rgba(0, 0, 0, 0.08),
    0 4px 12px rgba(0, 0, 0, 0.05);
}

/* =========================
   3D Cards
========================= */
.card-3d {
  border: 1px solid rgba(148, 163, 184, .16);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 18px 46px rgba(15, 23, 42, .05);
  transition: all .25s ease;
  overflow: hidden;
}

.card-3d:hover {
  transform: translateY(-3px);
  box-shadow:
    0 18px 35px rgba(0,0,0,0.08),
    0 6px 10px rgba(0,0,0,0.06);
}

.rv-header-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #334155, #64748b);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}

.rv-summary-box {
  background: linear-gradient(135deg, #198754, #20c997);
  color: white;
  padding: 18px;
  border-radius: 18px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.rv-summary-box h3 {
  font-weight: bold;
  margin: 0;
}

.table thead th {
  font-weight: 600;
}

.btn-3d {
  border-radius: 14px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  min-height: 42px;
  font-weight: 800;
}

.btn-3d:hover {
  transform: translateY(-1px);
}

.voucher-header-gradient {
  background:
    radial-gradient(circle at top left, rgba(125, 211, 252, .22), transparent 34%),
    linear-gradient(135deg, #1e293b, #334155);
  color: white;
  padding: 24px;
  border-radius: 28px;
  margin-bottom: 25px;
  box-shadow: 0 22px 44px rgba(15, 23, 42, .12);
  gap: 18px;
}

.voucher-header-gradient h4 {
  font-size: 1.8rem;
  font-weight: 900;
}

.status-badge {
  background: rgba(255,255,255,0.18);
  color: #fff;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .24);
  font-weight: 800;
}

.card label,
.card .form-label {
  color: #475569;
  font-size: .84rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.card .form-control,
.card .form-select {
  min-height: 44px;
  border-radius: 14px;
  border-color: #dbe3ef;
}

.card .form-control:focus,
.card .form-select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 .2rem rgba(37, 99, 235, .12);
}


.voucher-summary-bar {
  background: linear-gradient(135deg, #f8fafc, #e0f2fe);
  border-top: 1px solid rgba(148, 163, 184, .16);
  border-radius: 0;
  padding: 18px 30px;
  box-shadow: none;
}

.summary-box h3 {
  font-weight: 700;
  color: #1f3c88;
}


.inp-amount {
  border-radius: 10px;
  font-weight: 600;
}

.receipt-total-row {
  background: linear-gradient(135deg, #f8fafc, #e0f2fe);
  border-top: 1px solid rgba(148, 163, 184, .18);
}

.receipt-total-amount {
  font-size: 18px;
  font-weight: 700;
  color: #1e3c72;
}

.modern-voucher-table,
.account-picker-table-wrap table {
  margin: 0;
  min-width: 980px;
}

.modern-voucher-table th,
.modern-voucher-table td,
.account-picker-table-wrap table th,
.account-picker-table-wrap table td {
  padding: 12px 14px;
  border-color: rgba(148, 163, 184, .18);
  border-inline-start: 1px solid rgba(148, 163, 184, .16);
  border-inline-end: 1px solid rgba(148, 163, 184, .16);
}

.modern-voucher-table thead th,
.account-picker-table-wrap table thead th {
  color: #475569;
  background: #f8fafc;
  font-size: .82rem;
  font-weight: 900;
}

.modern-voucher-table tbody tr:hover,
.account-picker-table-wrap table tbody tr:hover {
  background: #f8fbff;
}

.btn-del {
  border-radius: 12px;
}

.payment-voucher-page .card-3d,
.payment-voucher-page .rv-card,
.payment-voucher-page .account-picker-table-wrap,
.payment-voucher-page .table-responsive {
  overflow: visible !important;
}

.payment-voucher-page .account-picker-results {
  z-index: 3000;
  min-width: min(560px, calc(100vw - 32px));
  max-height: 320px;
}

.payment-voucher-page .account-picker-option {
  min-height: 52px;
}

.voucher-toast-stack {
  position: fixed;
  top: 18px;
  inset-inline-end: 18px;
  z-index: 9999;
  display: grid;
  gap: 10px;
  width: min(380px, calc(100vw - 28px));
  pointer-events: none;
}

.voucher-toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 15px;
  color: #fff;
  border-radius: 16px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, .22);
  font-weight: 800;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity .2s ease, transform .2s ease;
}

.voucher-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.voucher-toast-success {
  background: linear-gradient(135deg, #15803d, #16a34a);
}

.voucher-toast-danger {
  background: linear-gradient(135deg, #b91c1c, #dc2626);
}

@media (max-width: 900px) {
  .voucher-header-gradient {
    align-items: flex-start !important;
    flex-direction: column;
  }

  .voucher-header-gradient .d-flex.gap-2 {
    width: 100%;
    flex-wrap: wrap;
  }

  .voucher-header-gradient .btn {
    flex: 1 1 auto;
  }
}

@media print {
  @page {
    size: A4 portrait;
    margin: 10mm;
  }

  body {
    padding: 0 !important;
    background: #fff !important;
    color: #111827 !important;
  }

  body.voucher-print-multi-lines .app-wrapper {
    display: none !important;
  }

  body.voucher-print-multi-lines .voucher-print-copies {
    display: block !important;
  }

  .voucher-print-copy {
    page-break-after: always;
    break-after: page;
    padding: 9mm;
    border: 1.4px solid #1e293b;
    border-radius: 8px;
    background:
      linear-gradient(#fff, #fff) padding-box,
      linear-gradient(135deg, #0f172a, #2563eb, #38bdf8) border-box;
  }

  .voucher-print-copy:last-child {
    page-break-after: auto;
    break-after: auto;
  }

  .navbar,
  .acc-sidebar,
  .acc-mobile-menu-btn,
  .acc-sidebar-backdrop,
  .voucher-header-gradient,
  #receiptVoucherArchivePanel,
  #paymentVoucherArchivePanel,
  .account-picker-results,
  .account-picker-btn,
  .btn-del {
    display: none !important;
  }

  .app-wrapper,
  .app-content {
    display: block !important;
    padding: 0 !important;
    background: #fff !important;
  }

  .container-fluid.py-3,
  .container-fluid.py-4 {
    max-width: none !important;
    padding: 0 !important;
  }

  .voucher-print-head {
    display: flex !important;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
    padding: 14px 16px;
    border: 0;
    border-radius: 12px;
    color: #fff !important;
    background:
      radial-gradient(circle at top left, rgba(125, 211, 252, .45), transparent 32%),
      linear-gradient(135deg, #0f172a, #1d4ed8) !important;
  }

  .voucher-print-brand {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .voucher-print-brand img {
    width: 62px;
    height: 62px;
    object-fit: contain;
    padding: 5px;
    border-radius: 12px;
    background: #fff;
  }

  .voucher-print-brand h2 {
    margin: 0;
    color: #fff !important;
    font-size: 21px;
    font-weight: 900;
  }

  .voucher-print-brand p {
    margin: 4px 0 0;
    color: #dbeafe !important;
    font-size: 16px;
    font-weight: 900;
  }

  .voucher-print-meta {
    display: grid;
    gap: 5px;
    color: #e0f2fe !important;
    font-size: 12px;
    text-align: end;
  }

  .voucher-print-meta span {
    padding: 4px 8px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
  }

  .voucher-print-meta strong {
    color: #fff !important;
  }

  .card-3d,
  .rv-card {
    border: 1px solid #cbd5e1 !important;
    border-radius: 12px !important;
    box-shadow: none !important;
    margin-bottom: 12px !important;
    break-inside: avoid;
    overflow: hidden !important;
  }

  .card-3d:hover,
  .rv-card:hover {
    transform: none !important;
  }

  .card .form-control,
  .card .form-select {
    border: 0 !important;
    padding-inline: 0 !important;
    min-height: 0 !important;
    background: transparent !important;
    color: #111827 !important;
  }

  .voucher-print-value {
    display: inline-block;
    min-height: 18px;
    color: #0f172a;
    font-weight: 700;
  }

  .modern-voucher-table,
  .account-picker-table-wrap table {
    min-width: 0 !important;
    font-size: 12px;
  }

  .modern-voucher-table th,
  .modern-voucher-table td,
  .account-picker-table-wrap table th,
  .account-picker-table-wrap table td {
    padding: 7px 8px !important;
    border: 1px solid #cbd5e1 !important;
  }

  .modern-voucher-table thead th,
  .account-picker-table-wrap table thead th {
    background: #1e3a8a !important;
    color: #fff !important;
    font-weight: 900;
  }

  .voucher-print-total,
  .receipt-total-row,
  .voucher-summary-bar {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 10px 12px !important;
    background: #eff6ff !important;
    border-top: 1px solid #bfdbfe !important;
    color: #0f172a !important;
    font-weight: 900;
  }

  .voucher-print-total strong,
  .receipt-total-amount,
  .summary-box h3 {
    color: #111827 !important;
    font-size: 17px !important;
  }

  .voucher-print-signatures {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 28px;
    break-inside: avoid;
  }

  .voucher-print-signatures div {
    min-height: 58px;
    padding-top: 8px;
    border-top: 1.5px solid #1e3a8a;
    text-align: center;
  }

  .voucher-print-signatures span {
    display: block;
    color: #334155;
    font-size: 12px;
    font-weight: 800;
  }

  .voucher-print-signatures strong {
    display: block;
    margin-top: 20px;
  }

  body.voucher-print-a5 .voucher-print-copy {
    padding: 4mm;
    border-radius: 5px;
  }

  body.voucher-print-a5 .voucher-print-head {
    gap: 6px;
    padding: 5px 7px;
    margin-bottom: 5px;
    border-radius: 7px;
  }

  body.voucher-print-a5 .voucher-print-brand img {
    width: 32px;
    height: 32px;
    padding: 3px;
    border-radius: 7px;
  }

  body.voucher-print-a5 .voucher-print-brand h2 {
    font-size: 12px;
  }

  body.voucher-print-a5 .voucher-print-brand p {
    margin-top: 1px;
    font-size: 10px;
  }

  body.voucher-print-a5 .voucher-print-meta {
    gap: 2px;
    font-size: 8.5px;
  }

  body.voucher-print-a5 .voucher-print-meta span {
    padding: 2px 5px;
  }

  body.voucher-print-a5 .card-3d,
  body.voucher-print-a5 .rv-card {
    margin-bottom: 4px !important;
    border-radius: 7px !important;
  }

  body.voucher-print-a5 .card-body {
    padding: 6px !important;
  }

  body.voucher-print-a5 .voucher-print-total,
  body.voucher-print-a5 .receipt-total-row,
  body.voucher-print-a5 .voucher-summary-bar {
    padding: 5px 7px !important;
    font-size: 10px !important;
  }

  body.voucher-print-a5 .card .form-control,
  body.voucher-print-a5 .card .form-select,
  body.voucher-print-a5 .voucher-print-value,
  body.voucher-print-a5 .modern-voucher-table,
  body.voucher-print-a5 .account-picker-table-wrap table {
    font-size: 9px !important;
  }

  body.voucher-print-a5 .modern-voucher-table th,
  body.voucher-print-a5 .modern-voucher-table td,
  body.voucher-print-a5 .account-picker-table-wrap table th,
  body.voucher-print-a5 .account-picker-table-wrap table td {
    padding: 2px 4px !important;
  }

  body.voucher-print-a5 .voucher-print-signatures {
    gap: 6px;
    margin-top: 8px;
  }

  body.voucher-print-a5 .voucher-print-signatures div {
    min-height: 28px;
    padding-top: 4px;
  }

  body.voucher-print-a5 .voucher-print-signatures span {
    font-size: 9px;
  }

  body.voucher-print-a5 .voucher-print-signatures strong {
    margin-top: 8px;
  }
}
.audit-trail-card {
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.audit-trail-head {
    display: flex;
    align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #e5edf7;
  background: #f8fafc;
}

.audit-trail-head strong {
  display: block;
  color: #0f172a;
}

.audit-trail-head span,
.audit-trail-empty {
  color: #64748b;
  font-size: 0.85rem;
}

.audit-trail-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  padding: 14px;
}

.audit-trail-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 74px;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
}

.audit-trail-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #e0f2fe;
  color: #0369a1;
  flex: 0 0 auto;
}

.audit-trail-label {
  font-weight: 700;
  color: #0f172a;
}

.audit-trail-user {
  color: #334155;
  font-size: 0.92rem;
}

.audit-trail-date {
  color: #64748b;
  font-size: 0.8rem;
}

/* Compact voucher layout and floating account picker safety */
.payment-voucher-page,
.receipt-voucher-page {
  padding-top: 14px !important;
  padding-bottom: 14px !important;
}

.payment-voucher-page .voucher-header-gradient,
.receipt-voucher-page .voucher-header-gradient {
  padding: 16px 18px !important;
  border-radius: 18px !important;
}

.payment-voucher-page .voucher-header-gradient h4,
.receipt-voucher-page .voucher-header-gradient h4 {
  font-size: 1.35rem !important;
}

.payment-voucher-page .card-3d,
.receipt-voucher-page .card-3d,
.payment-voucher-page .rv-card,
.receipt-voucher-page .rv-card {
  border-radius: 16px !important;
  box-shadow: 0 10px 26px rgba(15, 23, 42, .045) !important;
  overflow: visible !important;
}

.payment-voucher-page .card-3d:hover,
.receipt-voucher-page .card-3d:hover,
.payment-voucher-page .rv-card:hover,
.receipt-voucher-page .rv-card:hover {
  transform: none !important;
}

.payment-voucher-page .card-body,
.receipt-voucher-page .card-body {
  padding: 14px !important;
}

.payment-voucher-page .card-header,
.receipt-voucher-page .card-header {
  min-height: auto !important;
  padding: 10px 14px !important;
}

.payment-voucher-page .form-control,
.payment-voucher-page .form-select,
.receipt-voucher-page .form-control,
.receipt-voucher-page .form-select {
  min-height: 40px !important;
}

.payment-voucher-page .account-picker-table-wrap,
.receipt-voucher-page .account-picker-table-wrap,
.payment-voucher-page .table-responsive,
.receipt-voucher-page .table-responsive {
  overflow: visible !important;
}

.payment-voucher-page .account-picker-table-wrap table th,
.payment-voucher-page .account-picker-table-wrap table td,
.receipt-voucher-page .account-picker-table-wrap table th,
.receipt-voucher-page .account-picker-table-wrap table td {
  padding: 8px 10px !important;
}

.account-picker-results.is-floating {
  z-index: 10050 !important;
}
