/* ==========================================================================
   Branch Petty Cash Control - Reports & Printable Voucher Templates
   ========================================================================== */

/* Report Cards & Analytics Layout */
.report-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.report-summary-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.report-summary-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-50);
  color: var(--primary-600);
  font-size: 1.25rem;
}

/* Branch Cash Health Progress Bar */
.branch-health-cell {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 140px;
}

.branch-health-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 600;
}

/* ==========================================================================
   PRINTABLE VOUCHER & REIMBURSEMENT SLIP STYLES
   ========================================================================== */

.printable-document {
  background: #ffffff;
  color: #111827;
  padding: 2.5rem;
  max-width: 800px;
  margin: 0 auto;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
  font-family: 'Prompt', sans-serif;
}

.doc-header {
  border-bottom: 2px solid #1e3a8a;
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.doc-company-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: #1e3a8a;
  letter-spacing: -0.02em;
}

.doc-title-main {
  font-size: 1.15rem;
  font-weight: 700;
  color: #111827;
  margin-top: 0.25rem;
}

.doc-meta {
  text-align: right;
  font-size: 0.85rem;
}

.doc-meta-item {
  margin-bottom: 0.2rem;
}

.doc-meta-label {
  color: #6b7280;
}

.doc-meta-val {
  font-weight: 700;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: #111827;
}

.doc-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  background-color: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
}

.doc-info-row {
  display: flex;
  margin-bottom: 0.35rem;
}

.doc-info-row:last-child {
  margin-bottom: 0;
}

.doc-info-label {
  width: 130px;
  color: #4b5563;
  font-weight: 500;
  flex-shrink: 0;
}

.doc-info-value {
  font-weight: 600;
  color: #111827;
}

/* Voucher items table */
.doc-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.75rem;
  font-size: 0.875rem;
}

.doc-table th {
  background-color: #f3f4f6;
  color: #374151;
  font-weight: 700;
  padding: 0.65rem 0.85rem;
  border: 1px solid #d1d5db;
  text-align: left;
}

.doc-table td {
  padding: 0.65rem 0.85rem;
  border: 1px solid #e5e7eb;
  color: #1f2937;
}

.doc-table tfoot td {
  font-weight: 700;
  background-color: #f9fafb;
  border-top: 2px solid #9ca3af;
}

.doc-amount-words {
  background-color: #f9fafb;
  border: 1px dashed #cbd5e1;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-size: 0.85rem;
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
}

/* Signatures block */
.doc-signatures {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
  padding-top: 1rem;
}

.signature-box {
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 1rem 0.75rem;
  text-align: center;
  background-color: #fafafa;
}

.signature-space {
  height: 50px;
  border-bottom: 1px dotted #9ca3af;
  margin-bottom: 0.5rem;
}

.signature-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: #1f2937;
}

.signature-title {
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 0.15rem;
}

.signature-date {
  font-size: 0.72rem;
  color: #9ca3af;
  margin-top: 0.25rem;
}

/* Print Media Query */
@media print {
  body * {
    visibility: hidden;
  }
  
  .modal-backdrop.show,
  #printContainer,
  #printContainer * {
    visibility: visible;
  }

  #printContainer {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    border: none;
    box-shadow: none;
  }

  .no-print {
    display: none !important;
  }
}
