/* ---------------------------------------------------------------------------
 * Print. Only `#print-area` reaches paper — the shell, sidebar, toolbars and
 * action buttons are hidden so a receipt or report prints on its own.
 * ------------------------------------------------------------------------ */

@media print {
  body { background: #fff; color: #000; }

  .sidebar,
  .topbar,
  .toolbar,
  .toast-stack,
  .modal-overlay,
  .no-print,
  .page-header .actions {
    display: none !important;
  }

  .app-shell { display: block; }
  .page { padding: 0; max-width: none; }

  .card,
  .section,
  .table-wrap {
    border: 1px solid #999 !important;
    box-shadow: none !important;
    break-inside: avoid;
  }

  table.data thead th { background: #f0f0f0 !important; color: #000 !important; }
  table.data tbody td { border-bottom: 1px solid #ddd !important; }

  .badge { border: 1px solid #999 !important; background: #fff !important; color: #000 !important; }

  a[href]::after { content: ''; }

  @page { margin: 12mm; }
}

/* Receipt layout — used by the printable return receipt. */
.receipt { display: none; }

@media print {
  body.printing-receipt > .app-shell { display: none !important; }
  body.printing-receipt .receipt {
    display: block;
    direction: rtl;
    font-family: var(--font-ar);
    color: #000;
    padding: 6mm;
  }
  .receipt-header {
    text-align: center;
    border-bottom: 2px dashed #000;
    padding-bottom: 10px;
    margin-bottom: 16px;
  }
  .receipt-title { font-size: 20px; font-weight: 800; }
  .receipt-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 7px;
    font-size: 13px;
  }
  .receipt-table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 12px; }
  .receipt-table th,
  .receipt-table td { border: 1px solid #000; padding: 5px 7px; text-align: start; }
  .receipt-footer {
    text-align: center;
    margin-top: 26px;
    padding-top: 10px;
    border-top: 1px solid #000;
    font-size: 11px;
  }
}
