/* static/cashflow.css - Specific to Cash Flow 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;
    font-size: 14px;
}

.sub-header {
    text-align: left;
    padding-left: 25px;
    font-weight: bold;
    font-style: italic;
    color: #666;
}

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

.opening_line {
    text-align: left;
    padding-left: 5px;
    font-size: 18px;
    font-weight: bold;
}

/* Cash flow specific styles */
.warning {
    background-color: #fff3cd;
    color: #856404;
    font-weight: bold;
}

.text-success {
    color: #28a745;
    font-weight: bold;
    font-size: 0.9rem;
}

.text-warning {
    color: #ffc107;
    font-weight: bold;
    font-size: 0.9rem;
}

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

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

.document-footer p {
    margin: 0.5rem 0;
}

/* Negative amounts in parentheses styling */
.negative-amount {
    color: #dc3545;
}

/* Cash Flow-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;
  }

  .sub-header {
    font-style: italic;
    color: #666 !important;
  }

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

  /* Ensure warning messages are visible */
  .warning {
    background-color: #fff3cd !important;
    color: #856404 !important;
  }

  .text-success {
    color: #28a745 !important;
  }

  .text-warning {
    color: #ffc107 !important;
  }
}