/**
 * css/print.css — Print Styles
 * ==============================
 * Εκτυπώνεται ΜΟΝΟ το εβδομαδιαίο grid + τίτλος.
 * Κρύβει: sidebar, header buttons, right panel, nav, modals, FAB.
 * Landscape orientation για το calendar grid.
 */

@media print {
  /* ── Landscape orientation ── */
  @page {
    size: A4 landscape;
    margin: 10mm;
  }

  /* ── Κρύψιμο UI elements που δεν εκτυπώνονται ── */
  .sidebar,
  .app-header .header-actions,
  .app-header .week-nav,
  #right-panel,
  .bottom-nav,
  .fab,
  .mobile-drawer,
  .modal-overlay,
  .inline-edit-panel,
  .toast-container,
  .pwa-install-banner,
  .sidebar-toggle,
  .sidebar-overlay,
  .no-print {
    display: none !important;
  }

  /* ── Reset layout για εκτύπωση ── */
  body {
    background: white !important;
    color: black !important;
    font-size: 10pt;
  }

  #app-root       { display: block; }
  .main-wrapper   { margin-left: 0 !important; }
  .content-wrapper { display: block; }
  .app-header     { position: static; height: auto; padding: 0 0 8px; border-bottom: 1px solid #ccc; background: white !important; }
  .header-title-area { display: block; }
  .header-main-title  { font-size: 14pt; color: black !important; }
  .header-week-label  { display: flex !important; color: #555 !important; font-size: 9pt; }

  #main-content   { padding-bottom: 0; overflow: visible; }

  /* ── Calendar grid για εκτύπωση ── */
  .calendar-grid {
    margin: 0;
    border: 1px solid #000;
    min-width: unset;
    width: 100%;
    box-sizing: border-box;
  }

  .cal-header-row { background: #e0e0e0 !important; border-bottom: 1px solid #000 !important; }
  .cal-day-header { border-left: 1px solid #000 !important; padding: 4px; }
  .cal-day-name   { color: #000 !important; font-weight: bold; }
  .cal-day-date   { color: #333 !important; }
  .cal-day-header.today { background: #d0d0d0 !important; }
  .cal-day-header.today .cal-day-name,
  .cal-day-header.today .cal-day-date { color: #000 !important; }

  .cal-day-column { border-left: 1px solid #000 !important; }
  .cal-time-label { color: #000 !important; font-weight: bold; font-size: 7pt; height: 38px !important; border-bottom: 1px solid #000 !important; }
  .cal-time-column { background: #f0f0f0 !important; border-right: 1px solid #000 !important; }
  .calendar-cell  { border-bottom: 1px solid #ccc !important; height: 19px !important; }

  /* Activity cards — κρατάει χρώματα για ευκρίνεια */
  .activity-card {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    box-shadow: none !important;
    transform: none !important;
    color: #000 !important;
    border-top: 1px solid #999 !important;
    border-right: 1px solid #999 !important;
    border-bottom: 1px solid #999 !important;
    background-color: white !important; /* Force solid background to hide grid lines behind */
    z-index: 10 !important;
  }
  .act-card-drag-handle { display: none; }
  .act-card-title { font-size: 8pt; font-weight: 800 !important; color: #000 !important; }
  .act-card-time  { font-size: 7pt; font-weight: 700 !important; color: #333 !important; }

  /* ── Print-only header ── */
  .print-only { display: block !important; }
  .print-header-inner {
    padding-bottom: 8px;
    border-bottom: 2px solid #333;
    margin-bottom: 8px;
  }
  .print-header-inner h1 { font-size: 14pt; font-weight: 700; color: black; }
  .print-header-inner p  { font-size: 9pt; color: #555; margin-top: 3px; }
  .print-date { color: #999 !important; font-size: 8pt !important; }
}
