body { margin: 0; padding: 0; background-color: #FAFAFA; font: 8pt "Times New Roman"; } * { box-sizing: border-box; -moz-box-sizing: border-box; } .page { width: 21cm; min-height: 29.7cm; padding: 1cm 1cm 1cm 1cm; margin: 1cm auto; border: 1px #D3D3D3 solid; border-radius: 5px; background: white; box-shadow: 0 0 5px rgba(0, 0, 0, 0.1); } .subpage { padding: 1cm; border: 5px red solid; height: 256mm; outline: 2cm #FFEAEA solid; } @page { size: A4; margin: 0; } @media print { .page { margin: 0; border: none; border-radius: initial; width: initial; min-height: initial; box-shadow: initial; background: initial; page-break-after: always; } } p{ text-align: justify; margin: 0px; /* padding-top: 1px; */ } ul{ margin: 0px; padding-left: 15px; } li { /* display: table-cell; */ list-style-type: "– "; } .poyasnenie{ vertical-align: text-top; font: 6pt "Times New Roman"; } .tb{ font-weight: bold; } .tc{ text-align: center; } .sp{ padding-left: 7px; } .num-table{ border-collapse: collapse; margin: auto; } .num-cell{ width: 18px; height: 18px; text-align: center; padding: 0px; } .inner{ border: 0.5px solid black; } /* таблица для "вписаных данных" */ .full-str{ width: 100%; } .title { width: auto; white-space: nowrap; } .vpisat{ border-bottom: 0.5px solid black; padding: 0px 4px; } .podpis{ border-bottom: 1pt solid black; /* border-bottom: thin solid black; */ width: 70px; height: 20px; } .full-str td:last-child{ width: 100%; } th{ text-align: left; width: 30%; } /* .tl{ width: 100%; } */ .footer{ width: 95%; margin: auto; } .footer td:first-child{ width: 85%; } .footer td:last-child{ width: 15%; text-align: right; }