/* Print Styles for Zeturi Platform */

@media print {
  /* Hide elements that shouldn't print */
  .no-print,
  .modern-btn,
  button,
  .help-widget,
  nav,
  header,
  .notification-bell,
  .theme-toggle,
  .search-filter,
  [role="navigation"],
  [aria-label*="Export"],
  [aria-label*="Download"] {
    display: none !important;
  }
  
  /* Reset page margins */
  @page {
    margin: 1cm;
    size: A4;
  }
  
  /* Ensure page breaks */
  .print-break {
    page-break-after: always;
  }
  
  .print-break-avoid {
    page-break-inside: avoid;
  }
  
  /* Reset colors for printing */
  body {
    background: white !important;
    color: black !important;
    font-size: 12pt !important;
  }
  
  /* Modern cards should have borders when printed */
  .modern-card {
    border: 1px solid #ddd !important;
    box-shadow: none !important;
    margin-bottom: 20px !important;
    page-break-inside: avoid;
  }
  
  /* Headers should be bold and visible */
  .modern-card-title,
  .page-title,
  h1, h2, h3, h4, h5, h6 {
    color: black !important;
    font-weight: bold !important;
    page-break-after: avoid;
  }
  
  /* Tables should have borders */
  table {
    border-collapse: collapse !important;
    width: 100% !important;
  }
  
  table th,
  table td {
    border: 1px solid #ddd !important;
    padding: 8px !important;
    text-align: left !important;
  }
  
  table th {
    background-color: #f5f5f5 !important;
    font-weight: bold !important;
  }
  
  /* Links should be underlined and show URL */
  a {
    color: black !important;
    text-decoration: underline !important;
  }
  
  a[href]:after {
    content: " (" attr(href) ")";
    font-size: 0.9em;
    color: #666;
  }
  
  /* But not for internal links */
  a[href^="#"]:after,
  a[href^="/"]:after {
    content: "";
  }
  
  /* Make sure text is readable */
  /* Make sure secondary text is readable */
  [class*="text-secondary"],
  [class*="text-muted"] {
    color: #333 !important;
  }
  
  /* Stats and numbers should be prominent */
  .text-2xl,
  .text-3xl,
  .text-4xl {
    font-weight: bold !important;
    color: black !important;
  }
  
  /* Remove backgrounds that waste ink */
  [class*="bg-"] {
    background-color: transparent !important;
  }
  
  /* But keep important backgrounds */
  .badge {
    border: 1px solid #333 !important;
    background-color: #f5f5f5 !important;
  }
  
  /* Activity feed should be compact */
  .activity-feed-item {
    padding: 4px 0 !important;
    border-bottom: 1px solid #ddd !important;
  }
  
  /* Quick stats should be in a grid */
  .quick-stats {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  
  /* Member list should be compact */
  .members-list-item {
    padding: 8px !important;
    border-bottom: 1px solid #ddd !important;
  }
  
  /* Footer for printed pages */
  .print-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 10pt;
    color: #666;
    padding: 10px;
    border-top: 1px solid #ddd;
  }
  
  /* Page numbers */
  .page-number:after {
    content: counter(page);
  }
  
  /* Scheme header info should be prominent */
  .scheme-header {
    border-bottom: 2px solid black !important;
    margin-bottom: 20px !important;
    padding-bottom: 10px !important;
  }
  
  /* Transaction tables */
  .transaction-table {
    font-size: 10pt !important;
  }
  
  .transaction-table td {
    padding: 4px 8px !important;
  }
  
  /* Ensure icons don't print */
  svg,
  .icon,
  [class*="lucide"] {
    display: none !important;
  }
  
  /* But keep important status indicators */
  .status-indicator {
    display: inline-block !important;
    width: 8px !important;
    height: 8px !important;
    border-radius: 50% !important;
    border: 1px solid black !important;
    margin-right: 4px !important;
  }
  
  /* Main content should take full width */
  main,
  .page-container {
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  
  /* Grid layouts should be print-friendly */
  .grid-2,
  .grid-3 {
    display: block !important;
  }
  
  .grid-2 > *,
  .grid-3 > * {
    width: 100% !important;
    margin-bottom: 20px !important;
  }
  
  /* Statement specific styles */
  .statement-header {
    text-align: center !important;
    margin-bottom: 30px !important;
  }
  
  .statement-table {
    width: 100% !important;
    margin-top: 20px !important;
  }
  
  .statement-summary {
    margin-top: 30px !important;
    padding-top: 20px !important;
    border-top: 2px solid black !important;
    font-weight: bold !important;
  }
  
  /* Hide tooltips and popovers */
  [role="tooltip"],
  [data-tooltip],
  .tooltip,
  .popover {
    display: none !important;
  }
  
  /* Ensure content fits on page */
  * {
    overflow: visible !important;
  }
  
  /* Add print date */
  .print-date:after {
    content: "Printed: " attr(data-date);
    font-size: 10pt;
    color: #666;
  }
}
