/* ======================================================
   Ganit Calculator — Print Styles
   Calculator ~ by Ganit Technology | Dhurta Organisation
   ====================================================== */

@media print {
  .ganit-sidebar,
  .ganit-header,
  .history-panel,
  .cmd-palette,
  .splash,
  .header-actions,
  .sidebar-toggle,
  .btn,
  .btn-calc-primary,
  .quick-actions,
  .form-tabs,
  .calc-memory-bar,
  .calc-mode-bar,
  .calc-buttons,
  .calc-sci-buttons,
  .eng-buttons,
  .graph-sidebar,
  #graph-canvas,
  footer.ganit-footer {
    display: none !important;
  }

  .app {
    display: block !important;
    height: auto !important;
  }

  .ganit-main {
    overflow: visible !important;
    height: auto !important;
  }

  #main-content {
    height: auto !important;
    overflow: visible !important;
    padding: 0 !important;
  }

  body {
    background: white !important;
    color: black !important;
    font-size: 11pt;
  }

  .calc-display {
    border: 1px solid #ccc !important;
    background: #f8f8f8 !important;
  }

  .calc-result {
    color: black !important;
  }

  .result-card,
  .result-hero,
  .stat-card {
    border: 1px solid #ccc !important;
    background: #f8f8f8 !important;
    break-inside: avoid;
  }

  .data-table th {
    background: #f0f0f0 !important;
  }

  .data-table td,
  .data-table th {
    color: black !important;
    border-color: #ccc !important;
  }

  .table-wrap {
    max-height: none !important;
    overflow: visible !important;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #666;
  }

  h1, h2, h3 {
    page-break-after: avoid;
  }

  .amort-details[open] summary::after { display: none; }

  .print-header {
    display: block !important;
    text-align: center;
    margin-bottom: 16px;
    font-weight: 700;
    font-size: 1.1rem;
  }

  .print-footer {
    display: block !important;
    text-align: center;
    margin-top: 24px;
    font-size: 0.8rem;
    color: #666;
  }
}
