/* ২৭ নভে.: প্যানেলের সব পাতার প্রিন্ট এক জায়গা থেকে (Zoho/QuickBooks-এর রিপোর্ট প্রিন্টের মতো).
   - মোবাইলের নিয়ম এখন শুধু পর্দায় (@media screen and (max-width…)) — তাই ফোন থেকে প্রিন্টেও পিসির সাজ.
   - মেনু, ওপরের বার, নিচের মোবাইল মেনু, footer, নোটিশ, বোতাম, ফিল্টার লুকানো; ওপরে partials/print-head.
   - রং কাগজেও থাকে (হালকা), ঝাপসা লেখা গাঢ়. */
.print-head { display: none; }

@media print {
  :root, html[data-theme] {
    --ink: #111827; --ink-2: #1f2937; --ink-3: #374151; --muted: #374151;
    --line: #cbd2dc; --line-2: #e3e7ee; --paper: #ffffff; --surface: #ffffff;
    color-scheme: light;
  }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; box-shadow: none !important; text-shadow: none !important; }
  html, body { background: #fff !important; color: var(--ink); font-size: 12px; }

  /* প্যানেলের চারপাশের সব */
  .side, .topbar, .tabbar, .msheet, .site-foot, .crumbs, .pwa-bar, [class*="pwa-"], .ais-fab, .ais-box,
  .toasts, .ticker, .announce, .seat-alert, .year-close-alert, .head-actions, .acc-tabs, .no-print,
  .pagination, .pager, .period-bar, .acc-filter, .sticky-actions, .skip-link,
  .content .btn, .content button[type="submit"], .content details.team-edit, .content .rs-invite, .content dialog, details.term { display: none !important; }
  .empty > svg { width: 44px !important; height: 44px !important; display: block; margin: 0 auto 8px; }

  .shell { display: block !important; background: #fff !important; }
  .main { display: block !important; }
  .content { max-width: none !important; margin: 0 !important; padding: 0 !important; }

  /* কাগজের মাথা */
  .print-head { display: flex !important; justify-content: space-between; align-items: flex-end; gap: 16px;
    margin: 0 0 14px; padding: 0 0 8px; border-bottom: 2.5px solid #1f42d6; }
  .print-head .ph-biz { display: flex; align-items: center; gap: 10px; min-width: 0; }
  .print-head .ph-biz img { width: 40px; height: 40px; object-fit: contain; border-radius: 6px; }
  .print-head .ph-biz b { display: block; font-size: 15px; color: #0c1b6b; }
  .print-head .ph-biz span { display: block; font-size: 10.5px; color: #374151; }
  .print-head .ph-path { color: #1f42d6 !important; font-weight: 600; }
  .print-head .ph-by { text-align: right; font-size: 10px; color: #374151; line-height: 1.5; white-space: nowrap; }
  .print-head .ph-by span { display: block; }
  .print-head .ph-by b { color: #111827; }

  /* পাতার শিরোনাম */
  .page-head { margin: 0 0 10px !important; }
  .page-head h1 { font-size: 18px !important; color: #0c1b6b; }
  .page-head p, .page-head .muted { font-size: 10.5px !important; color: #374151 !important; }

  /* কার্ড/প্যানেল: হালকা রঙে, পাতা ভাঙার মাঝে কাটে না */
  .panel, .card, .status-card, .stat, .bs-cards, .cf-flow { break-inside: avoid; border-color: #cbd2dc !important; }
  .panel { border-radius: 10px; }
  .status-cards { gap: 8px !important; }
  .status-card { border: 1px solid #cbd2dc !important; border-top: 3px solid #1f42d6 !important; }
  .status-card.tone-green { border-top-color: #15803d !important; background: #f0fdf4 !important; }
  .status-card.tone-blue { border-top-color: #1d4ed8 !important; background: #eff6ff !important; }
  .status-card.tone-orange, .status-card.tone-amber { border-top-color: #b45309 !important; background: #fffbeb !important; }
  .status-card.tone-red { border-top-color: #b91c1c !important; background: #fef2f2 !important; }

  /* টেবিল: পুরো চওড়ায়, প্রতি পাতায় কলামের নাম, সারি মাঝে কাটে না */
  .table-scroll, .cf-scroll, .ag-wrap, .sr-wrap, [class*="-scroll"] { overflow: visible !important; }
  .cf-side { container-type: normal !important; }
  table { width: 100% !important; border-collapse: collapse; }
  thead { display: table-header-group !important; }
  tfoot { display: table-row-group; }
  tr { break-inside: avoid; }
  .table th { background: #eef2ff !important; color: #0c1b6b !important; font-size: 10.5px; }
  .table td, .table th { padding: 5px 7px !important; border-bottom: 1px solid #e3e7ee !important; }
  .table tbody tr:nth-child(even) td { background: #f8fafc !important; }
  .table tfoot td { background: #eef2ff !important; font-weight: 700; }

  a { color: inherit !important; text-decoration: none !important; }
  .muted, .cell-sub, .hint, small { color: #4b5563 !important; }
  .chip { border: 1px solid currentColor; }
}
