/* Aspectul documentului: folosit la previzualizare și la pagina de tipar (PDF). */
.document { font-family: "Times New Roman", Times, serif; font-size: 11.5pt; line-height: 1.4; color: #000; }
.document h1 { font-size: 14pt; text-align: center; margin: 0 0 .2em; font-weight: bold; letter-spacing: 0; }
.document .subtitlu { text-align: center; font-weight: bold; margin: 0 0 1.2em; }
.document h2 { font-size: 11.5pt; font-weight: bold; margin: 1.1em 0 .4em; break-after: avoid; }
.document p { margin: 0 0 .5em; text-align: justify; hyphens: auto; }
.document p.li { padding-left: 1.6em; text-indent: -.9em; }
.document table.t { width: 100%; border-collapse: collapse; margin: .5em 0 .8em; font-size: 10pt; }
.document table.t th, .document table.t td { border: 1px solid #000; padding: 3px 5px; vertical-align: top; text-align: left; }
.document table.t th { background: #ededed; text-align: center; }
.document table.t .nr { text-align: right; white-space: nowrap; }
.document table.semnaturi { width: 100%; margin-top: 2em; break-inside: avoid; }
.document table.semnaturi td { width: 50%; text-align: center; vertical-align: top; padding: 0 1em; }
.document table.semnaturi .rol { font-weight: bold; }
.document .loc-semnatura { height: 4.5em; border-bottom: 1px solid #000; width: 70%; margin: 0 auto; }
.document .pagina-noua { break-before: page; }

body.tipar { margin: 0; background: #e9e7e2; }
body.tipar .bara-tipar { position: sticky; top: 0; display: flex; gap: 1rem; align-items: center; padding: .7rem 1rem; background: #0d3a41; color: #fff; font: 14px "Segoe UI", system-ui, sans-serif; }
body.tipar .bara-tipar button { font: inherit; font-weight: 600; padding: .5rem 1rem; border: 0; border-radius: 6px; background: #f0b429; color: #1c1f24; cursor: pointer; }
body.tipar .foaie-tipar { width: 210mm; margin: 1rem auto; border-collapse: collapse; background: #fff; box-shadow: 0 1px 6px rgba(0,0,0,.2); }
body.tipar .foaie-tipar td { padding: 0; }
body.tipar .foaie-tipar .document { padding: 0 20mm; }
body.tipar .margine-sus { height: 18mm; }
body.tipar .margine-jos { height: 20mm; display: flex; align-items: center; justify-content: center; font: 8pt "Times New Roman", serif; color: #444; }

/* Marginea paginii e zero: antetul și subsolul browserului (data, titlul și adresa site-ului) nu mai au loc pe foaie.
   Marginile de sus și de jos se fac din rândurile de tabel de mai sus, repetate pe fiecare pagină. */
@page { size: A4; margin: 0; }
@media print {
  html, body.tipar { background: #fff; margin: 0; }
  body.tipar .bara-tipar { display: none; }
  body.tipar .foaie-tipar { width: 100%; margin: 0; box-shadow: none; }
  body.tipar .foaie-tipar thead { display: table-header-group; }
  body.tipar .foaie-tipar tfoot { display: table-footer-group; }
}
