/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* Druckansicht (A4): nur Hauptinfos der Aufgabe, ohne Chrome/Hintergruende */
@media print {
  @page {
    size: A4;
    margin: 1.5cm;
  }

  /* Seiten-Chrome ausblenden */
  header,
  footer,
  .drawer-side,
  .no-print {
    display: none !important;
  }

  /* Weisser Hintergrund, keine aeusseren Abstaende.
     overflow: visible verhindert eine seitenhohe Scrollbar im Druck -
     body/main tragen overflow-x-hidden, was overflow-y zu auto macht. */
  html,
  body,
  main {
    background: #fff !important;
    overflow: visible !important;
  }

  main {
    padding: 0 !important;
    margin: 0 !important;
  }

  /* Karten ohne Rahmen, Schatten und Hintergrund */
  .card {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
  }

  .card-body {
    padding: 0 !important;
  }

  /* Divider dezent statt kraeftig */
  .divider {
    margin: 0.75rem 0 !important;
  }

  .divider::before,
  .divider::after {
    height: 1px !important;
    background: #e5e7eb !important;
  }

  /* Badge-Farben (Status, Prioritaet, Ueberfaellig) im Druck erhalten */
  .badge {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  /* Beschreibung im Druck komplett zeigen, keine inneren Scrollbars
     (z.B. Tabellen-Wrapper mit overflow: auto) */
  .lexxy-content,
  .lexxy-content * {
    overflow: visible !important;
  }
}
