/*
@page {
  margin: 0px 20px;
  background: url('https://app.wenku.cz/images/template_images/invoice/background.jpg') no-repeat 0 0;
  background-image-resize: 6;
  footer: footer;
  font-size: 8px;
}
*/

@page {
  size: portrait;
  margin: 120px 20px 40px;
  background: url('/images/A4-P.jpg') no-repeat 0 0;
  background-image-resize: 6;
  header: header;
  footer: footer;
  margin-header: 5mm;
  margin-footer: 5mm;
  marks: none;
}

@page landscape {
  size: landscape;
  margin: 120px 20px 40px;
  background: url('/images/A4-L.jpg') no-repeat 0 0;
  background-image-resize: 6;
  header: headerdata;
  footer: footer;
  margin-header: 5mm;
  margin-footer: 5mm;
  marks: none;
}

.footer {
  margin: 0px 10px;
  padding: 0px;
  color: #556db6;
  text-align: right;
  font-size: 10px;
}

.fakTyp {
  /* background: url('https://app.wenku.cz/images/template_images/invoice/bublina-siroka.png') no-repeat 0 0; */
  /* background-image-resize: 4; */
  /* background-position: center; */
  color: #556db6;
  text-align: center;
  padding-top: 10px;
  /* width: 350px; */
  /* height: 35px; */
}

.doklad {
  color: #556db6;
  font-size: 22px;
  font-weight: bold;
  vertical-align: top;
}

.dokladTyp {
  color: #556db6;
  font-size: 16px;
  font-weight: normal;
  padding-top: 5px;
  vertical-align: top;
}

.dokladCislo {
  color: #000000;
  font-size: 14px;
  font-weight: bold;
  padding-top: 10px;
  vertical-align: bottom;
}

table,
tr,
td {
  font-size: 12px;
}

td {
  padding-left: 2mm;
  vertical-align: top;
  padding-right: 2mm;
  padding-top: 0.5mm;
  padding-bottom: 0.5mm;
}

div.tableHead {
  font-size: 16px;
  color: #556db6;
  width: 100%;
  padding-left: 20px;
}

table td div {
  padding: 0px;
}

hr.withFooter {
  width: 100%;
  height: 1px;
  text-align: left;
  color: #556db6;
  margin-top: 2pt;
  margin-bottom: 8pt;
}

hr.greenHr {
  width: 99%;
  height: 1px;
  text-align: center;
  color: #556db6;
  margin-top: 8pt;
  margin-bottom: 8pt;
}

hr.whiteHr {
  width: 99%;
  height: 1px;
  text-align: center;
  color: #ffffff;
  margin-top: 8pt;
  margin-bottom: 8pt;
}

.center {
  text-align: center;
}

.right {
  text-align: right;
}

.footerText {
  line-height: 30px;
}

.footerImage {
  width: 30px;
  vertical-align: middle;
}

td.footer {
  opacity: 0.5;
  vertical-align: top;
}

.header {
  /* margin-bottom: 30px; */
}

img.footerImage {
  width: 20px;
  height: 20px;
}

span.footerText {
  color: #999999;
  font-size: 10px;
}

table.footerTable tr,
table.footerTable td {
  margin: 0px;
  padding: 0px;
}

table.footerTable {
  margin-top: 0px;
  padding-top: 0px;
  padding-bottom: 0px;
  margin-bottom: 0px;
}

.footerMessage {
  color: #556db6;
  margin-bottom: 20pt;
  font-size: 14px;
}

.hidden {
  display: none;
}

img.qrcode {
  width: 120px;
  margin-top: -20px;
  margin-bottom: 0px;
  margin-left: 0px;
  margin-right: 0px;
}

table.nospantable {
  margin-left: 0px;
  padding-left: 0px;
}

table.nospantable tr {
  margin-left: 0px;
  padding-left: 0px;
}

table.nospantable tr td {
  margin-left: 0px;
  padding-left: 0px;
}

.fullWidthListItems .ajaxListItem {
  width: 100%;
}

.itemDataEnvelope {
  width: 100%;
}

.itemDataEnvelope .itemData {
  display: inline-block;
  vertical-align: top;
}

.itemDataEnvelope .itemData label {
  display: block;
  font-size: 8px;
  text-transform: uppercase;
  font-weight: 300;
  line-height: 8px;
  padding: 0px 0px 0px 5px;
  margin: 0px;
}

.itemDataEnvelope .itemData .data {
  display: block;
  padding: 0px 5px;
  font-weight: bold;
  min-height: 25px;
}

.itemDataEnvelope .itemData.invoice_item_subject {
  width: 200px;
}

.itemDataEnvelope .itemData.invoice_item_quantity {
  width: 60px;
  text-align: right;
  padding-right: 5px;
}

.itemDataEnvelope .itemData.invoice_item_unit_price {
  width: 80px;
  text-align: right;
  padding-right: 5px;
}

.itemDataEnvelope .itemData.invoice_item_total_price {
  width: 80px;
  text-align: right;
  padding-right: 5px;
}

.itemDataEnvelope .itemData.invoice_item_vat_rate {
  width: 60px;
  text-align: right;
  padding-right: 5px;
}

.itemDataEnvelope .itemData.invoice_item_description {
  width: 100%;
}

.itemDataEnvelope .itemData.invoice_item_internal_note {
  width: 100%;
}

.itemDataEnvelope .itemData.vat_item_name {
  width: 80px;
}

.itemDataEnvelope .itemData.vat_item_base_amount {
  width: 80px;
  text-align: right;
  padding-right: 5px;
}

.itemDataEnvelope .itemData.vat_item_vat_amount {
  width: 80px;
  text-align: right;
  padding-right: 5px;
}

.itemDataEnvelope .itemData.vat_item_total_amount {
  width: 80px;
  text-align: right;
  padding-right: 5px;
}

table.invoiceItemsTable {
  width: 100%;
}

table.invoiceItemsDataTable {
  width: 100%;
  font-size: 8px;
}
table.invoiceItemsDataTable td {
  font-size: 8px;
}

table.invoiceVatTable {
  width: 100%;
}

td.number {
  text-align: right;
}

th {
  text-align: left;
}

th.number {
  text-align: right;
}

.tableEnvelope {
  margin: 0px 20px;
}