/* static/trial_balance.css - Specific to Trial Balance reports */

@import url('https://fonts.googleapis.com/css2?family=Paytone+One&family=Poltawski+Nowy&family=Rufina:wght@700&display=swap');

body {
    font-family: 'Poltawski Nowy', serif;
    line-height: 1.2;
}

.report-container {
    max-width: 900px;
    margin: auto;
    padding: 30px;
}

.text-center {
    text-align: center;
}

.text-end {
    text-align: right;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.trial-balance-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
}

.trial-balance-table th,
.trial-balance-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e0e0e0;
    vertical-align: middle;
}

.trial-balance-table thead th {
    background-color: #f8f9fa;
    font-weight: bold;
    border-bottom: 2px solid #324E5D;
    color: #324E5D;
}

.account-row:nth-child(even) {
    background-color: #fafafa;
}

.account-row:hover {
    background-color: #f0f8ff;
}

.total-row {
    border-top: 2px solid #324E5D;
    background-color: #f8f9fa;
    font-weight: bold;
}

.total-header {
    font-weight: bold;
    color: #324E5D;
    text-align: left;
    padding-left: 1rem;
}

.total-amount {
    font-weight: bold;
    color: #324E5D;
    font-size: 1.1em;
}

.balance-status {
    text-align: center;
    margin: 2rem 0;
    padding: 1rem;
    border-radius: 8px;
}

.balance-status .text-success {
    color: #28a745;
    font-weight: bold;
    background-color: #d4edda;
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid #c3e6cb;
}

.balance-status .text-warning {
    color: #856404;
    font-weight: bold;
    background-color: #fff3cd;
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid #ffeaa7;
}

.balance-status i {
    margin-right: 0.5rem;
    font-size: 1.2em;
}

.header-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.accounting-method {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

.document-footer {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #dee2e6;
    text-align: center;
}

.document-footer .text-muted {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Trial Balance-specific print styles */
@media print {
  body {
    font-family: 'Poltawski Nowy', serif;
    font-size: 12pt;
    line-height: 1.2;
    color: #000;
  }

  .report-container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
  }

  /* Hide elements that are typically not needed in print */
  .print-date {
    display: none;
  }

  /* Ensure table formatting */
  .trial-balance-table {
    page-break-inside: avoid;
  }

  .trial-balance-table th {
    background-color: #f8f9fa !important;
    font-weight: bold;
  }

  .total-row {
    background-color: #f8f9fa !important;
    border-top: 2px solid #324E5D !important;
  }

  .balance-status .text-success {
    background-color: #d4edda !important;
    color: #28a745 !important;
  }

  .balance-status .text-warning {
    background-color: #fff3cd !important;
    color: #856404 !important;
  }

  /* Keep important elements together */
  .balance-status, .document-footer, .total-row {
    page-break-inside: avoid;
  }
}