/* ===== Print Container ===== */
#print-container { display: none; }
body.printing #content,
body.printing #profile-bar,
body.printing #tab-bar { display: none; }

/* ===== Print Styles ===== */
@media print {
  body {
    background: #fff !important;
    color: #000 !important;
    direction: rtl;
  }

  #header {
    background: #fff !important;
    border-bottom: 2px solid #000 !important;
    position: static;
  }
  .header-left { display: none !important; }
  .logo { color: #000 !important; }

  #profile-bar, #tab-bar, #modal-overlay, #toast { display: none !important; }
  #content { display: none !important; }
  /* New overlays (admin drawer + its backdrop) and class-selected overlays stay
     out of the paper output (spec §7.5). This file is EXEMPT from the token/zero-hex
     rule — its light-on-white colors are literal on purpose. */
  #admin-drawer, #admin-backdrop, .modal-overlay, .toast { display: none !important; }

  #print-container {
    display: block !important;
    padding: 20px;
    max-width: 100%;
  }

  .print-section {
    page-break-inside: avoid;
    margin-bottom: 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 12px;
  }
  .print-section h2 {
    color: #333;
    border-bottom: 1px solid #ddd;
    padding-bottom: 6px;
    margin-bottom: 10px;
  }

  .field-row {
    background: #fff !important;
    border-color: #ddd !important;
    color: #000 !important;
  }
  .field-label { color: #666 !important; }
  .field-value { color: #000 !important; }
  .field-actions, .field-drag-handle { display: none !important; }

  .card {
    background: #fff !important;
    border-color: #ddd !important;
    color: #000 !important;
  }
  .card-actions { display: none !important; }
  .badge { border: 1px solid #ccc; }

  .add-btn, .btn, .search-box { display: none !important; }
}

