/* static/balance.css - Specific to Balance Sheet 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: 0.7;
}

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

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

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

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

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 0.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.separator {
    border-bottom: none;
}

.separator td {
    padding: 0.5rem 0;
}

.subtotal {
    font-weight: bold;
    background-color: #f9f9f9;
}

.total-header {
    font-weight: bold;
    padding-left: 1rem;
    color: #4a4a4a;
}

.header-info {
    display: flex;
    justify-content: space-between;
}

.print-date, .accounting-method {
    margin-bottom: 1rem;
}

.main-header {
    text-align: left;
    padding-left: 15px;
    background-color: #f5f5f5;
    font-weight: bold;
}

.item-row td:first-child {
    padding-left: 30px;
}

.sub-header {
    text-align: left;
    padding-left: 25px;
    font-weight: bold;
}

.grand-total {
    font-weight: bold;
    border-top: 2px solid #333;
    border-bottom: 2px solid #333;
}

/* Balance Sheet-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;
  }

  /* Add current date when printing */
  .header-info::after {
    content: "Printed: " attr(data-print-date);
    font-size: 10pt;
    color: #666;
  }

  /* Ensure table formatting */
  .main-header {
    background-color: #f5f5f5 !important;
    font-weight: bold;
    font-size: 14pt;
  }

  .subtotal {
    font-weight: bold;
    background-color: #f9f9f9 !important;
  }

  /* Keep important rows together */
  .subtotal, .main-header, .sub-header, .grand-total {
    page-break-inside: avoid;
  }
}