/* Wspólny wygląd dokumentów generowanych w EduBox (Asystent Pedagoga, EduDostosowania i kolejne):
   podgląd jak kartka A4 – biały papier, czarny tekst, tabele z obramowaniem, żółte pola do uzupełnienia. */
.doc-paper { background: #fff; color: #111827; font-family: Calibri, Carlito, 'Segoe UI', Arial, sans-serif; font-size: 15px; line-height: 1.55; border-radius: 6px; box-shadow: 0 20px 50px rgba(0,0,0,0.45); padding: 56px 64px; max-width: 900px; margin: 0 auto; overflow-wrap: anywhere; text-align: left; }
@media (max-width: 640px) { .doc-paper { padding: 28px 18px; font-size: 14px; } }
.doc-paper h1 { font-size: 1.45em; font-weight: 800; text-align: center; margin: 0 0 0.9em; color: #0f172a; }
.doc-paper h2 { font-size: 1.12em; font-weight: 700; color: #1F3864; margin: 1.5em 0 0.5em; padding-bottom: 0.2em; border-bottom: 1px solid #cbd5e1; }
.doc-paper h3 { font-size: 1em; font-weight: 700; margin: 1.1em 0 0.35em; color: #111827; }
.doc-paper p { margin: 0 0 0.6em; }
.doc-paper ul, .doc-paper ol { margin: 0 0 0.7em 1.4em; padding: 0; }
.doc-paper ul { list-style: disc; } .doc-paper ol { list-style: decimal; }
.doc-paper li { margin: 0.15em 0; }
.doc-paper table { width: 100%; border-collapse: collapse; margin: 0.4em 0 1em; font-size: 0.93em; }
.doc-paper th, .doc-paper td { border: 1px solid #94a3b8; padding: 6px 8px; vertical-align: top; text-align: left; color: #111827; }
.doc-paper th { background: #eef2f7; font-weight: 700; }
.doc-paper mark { background: #fff3a3; color: inherit; padding: 0 2px; border-radius: 2px; }
.doc-paper em { color: #475569; }
.doc-paper strong { color: #0f172a; }
.doc-caret::after { content: '▍'; color: #e11d48; animation: docCaretBlink 1s steps(2) infinite; }
@keyframes docCaretBlink { 50% { opacity: 0; } }
/* Tabele: całe wyrazy zamiast „Cz-as”, „Wprowa-dzenie” na telefonie (overflow-wrap:anywhere pozwalał zwęzić
   kolumnę do jednej litery); gdy tabela jest szersza niż ekran, przewija się w obrębie kartki. */
.doc-paper { overflow-x: auto; }
.doc-paper table { overflow-wrap: break-word; word-break: normal; }
/* Linia do pisania (sprawdziany, karty pracy) i podział strony między częściami dokumentu. */
.doc-paper p.linia { border-bottom: 1px dotted #6b7280; height: 1.9em; margin: 0; }
.doc-paper .page-break { border-top: 2px dashed #cbd5e1; margin: 2em 0; height: 0; }
