/* ===== Farben – hier zentral ändern ===== */
:root {
  --color-bg: #FAFAFA;           /* Hintergrund */
  --color-card: #FFFFFF;         /* Karten */
  --color-border: #ECECEC;       /* Kartenrand */
  --color-text: #18181B;         /* Text */
  --color-muted: #71717A;        /* Nebentext */
  --color-accent: #5B5BD6;       /* Akzent (Indigo) */
  --color-accent-hover: #4C4CC4; /* Akzent beim Drüberfahren */
  --color-accent-soft: #EEEEFC;  /* heller Akzent */
  --color-ok: #15803D;           /* Rezept gültig (grün) */
  --color-ok-soft: #DCFCE7;
  --color-warn: #DC2626;         /* Rezept läuft ab / abgelaufen (rot) */
  --color-warn-soft: #FEE2E2;
  --color-soon: #B45309;         /* Rezept läuft in den nächsten 14 Tagen ab (orange) */
  --color-soon-soft: #FEF3C7;
  --color-badge: #DC2626;        /* Zähler ungelesener Chat-Nachrichten (rot) */
}

html { -webkit-tap-highlight-color: transparent; background: var(--color-bg); color-scheme: light; }
body { padding-bottom: env(safe-area-inset-bottom); }

input[type='search']::-webkit-search-cancel-button { cursor: pointer; }

/* Lucide ersetzt <i> durch <svg> – Größe/Farbe bleiben über die Klassen erhalten */
svg.lucide { flex-shrink: 0; }

/* PDF-Export: ohne Schatten/Rahmen rendern */
.report-sheet.pdf-export { box-shadow: none; border-radius: 0; --tw-ring-shadow: 0 0 #0000; padding: 0; }

@media print {
  @page { size: A4; margin: 18mm 16mm; }
  body { background: #fff; }
  .no-print, header.sticky { display: none !important; }
  body.sheet-open #app { display: none !important; }
  .sheet { position: static !important; overflow: visible !important; }
  .sheet > div { padding: 0 !important; max-width: none !important; }
  main { max-width: none !important; padding: 0 !important; }
  .report-sheet { box-shadow: none !important; border-radius: 0 !important; padding: 0 !important; margin: 0 !important; --tw-ring-shadow: 0 0 #0000 !important; }
  #editor { outline: none !important; box-shadow: none !important; }
}

/* Fax-PDF: reines Schwarz-Weiß mit kräftigem Kontrast, damit der Bericht nach dem Faxen gut lesbar bleibt */
.report-sheet.fax-export, .report-sheet.fax-export * { color: #000 !important; background: #fff !important; border-color: #000 !important; }
.report-sheet.fax-export { font-size: 16px; line-height: 1.55; }
