/***************************************************************************************/
/* TIP: If you want to change the default body margins, you can use the following CSS, */
/* to override the default based on your chosen paper size.                            */
/***************************************************************************************/
/*
  body.page-size-letter {
    margin: 0.6in;
    margin-top: 0.7in;
  }

  body.page-size-half-letter {
    margin: 0.3in;
    margin-top: 0.35in;
  }

  body.page-size-legal {
    margin: 0.6in;
    margin-top: 0.7in;
  }

  body.page-size-a4 {
    margin: 3cm;
  }

  body.page-size-a5 {
    margin: 15mm;
  }
*/
body.page-size-half-letter {
  margin: 0.3in;
  margin-top: 0.85in;
}

/***************/
/*    base     */
/***************/

.invoice {
  font-size: 12px;
}

small {
  font-size: 11px;
}

table {
  width: 100%;
  margin: 0;
  border-collapse: separate;
  border-spacing: 0;
  page-break-inside: auto;
}

table tr {
  page-break-inside: avoid;
  page-break-after: auto;
}

/*****************/
/*    header     */
/*****************/

.header {
  margin-bottom: 20px;
  margin-top: 11px;
  line-height: 1;
  table-layout: fixed;
}

.header td {
  vertical-align: top;
  width: 50%;
}

.header__organization,
.header__logo {
  height: 140px;
}

.header__logo {
  text-align: right;
}

.header__logo img {
  display: inline-block;
  max-width: 100%;
  max-height: 80px;
}

.header__organization__more {
  margin-top: 10px;
  font-size: 9px;
}

.header__info table {
  float: right;
  width: auto;
  min-width: 320px;
}

.header__info th {
  font-weight: bold;
  text-align: left;
  background: #f0f0f0;
}

.header__info th,
.header__info td {
  padding: 5px 15px;
  border: 1px solid #e5e5e5;
  border-top-width: 0;
  border-right-width: 0;
}

.header__info td {
  text-align: right;
  border-right-width: 1px;
}

.header__info tr.first-child th,
.header__info tr.first-child td {
  border-top-width: 1px;
}

/*****************/
/*    items      */
/*****************/

.items {
  margin-top: 20px;
  table-layout: fixed;
}

.items th,
.items td {
  padding: 5px 11px;
  border: 1px solid #e5e5e5;
  text-align: right;
  border-top-width: 0;
  border-right-width: 0;
}

.items .items__item__label {
  text-align: left;
  width: 51%;
}

.items .items__item__supertitle {
  text-align: center;  
}

.items .items__item__quantity {
  text-align: center;
  width: 7%;
}
.items--pricesWithTax {
  font-size: 11px;
}

.items--pricesWithTax .items__item__label {
  width: 15%;
}

.items--pricesWithTax .items__item__price,
.items--pricesWithTax .items__item__untaxed,
.items--pricesWithTax .items__item__tax_rate,
.items--pricesWithTax .items__item__tax,
.items--pricesWithTax .items__item__total {
  padding: 15px;
}

.items--pricesWithTax .items__item__tax_rate {
  width: 30%;
}

.items--pricesWithTax td.items__item__price,
.items--pricesWithTax td.items__item__quantity,
.items--pricesWithTax td.items__item__untaxed,
.items--pricesWithTax td.items__item__tax_rate,
.items--pricesWithTax td.items__item__tax,
.items--pricesWithTax td.items__item__total {
  white-space: nowrap;
}

.items .items__item__label > span {
  word-wrap: break-word;
}

.items .items__item__total {
  border-right-width: 1px;
}

.items th {
  background: #f0f0f0;
  border-top-width: 1px;
}

.items .items__item--sub .items__item__label {
  padding-left: 20px;
}

/*****************/
/*    totals     */
/*****************/

.totals > tr > td {
  padding: 0;
  border: 0;
}

.totals table {
  width: 100%;
  border: 1px solid #e5e5e5;
  border-top-width: 0;
  border-bottom-width: 0;
}

.totals table th,
.totals table td {
  border: 0;
  background: #fff;
  padding: 6px 10px;
  text-align: right;
}

.items--pricesWithTax .totals table th,
.items--pricesWithTax .totals table td {
  padding: 6px;
}

.items--pricesWithTax .totals .totals__tax th {
  padding-left: 18px;
}

.totals table th {
  text-align: right;
  width: 42%;
}

.totals table .last-child th,
.totals table .last-child td {
  border-bottom: 1px solid #e5e5e5;
}

.totals table .totals__total th,
.totals table .totals__total td {
  background: #f0f0f0;
}

.totals table .totals__sub th {
  font-weight: normal;
}

/**********************/
/* tax recapitulation */
/**********************/

.tax-recapitulation {
  font-size: 11px;
  margin: 20px 0;
  table-layout: fixed;
  page-break-inside: avoid;
}

.tax-recapitulation th,
.tax-recapitulation td {
  padding: 6px 10px;
  border: 1px solid #e5e5e5;
  text-align: right;
  border-top-width: 0;
  border-right-width: 0;
}

.tax-recapitulation th.last-child,
.tax-recapitulation td.last-child {
  border-right-width: 1px;
}

.tax-recapitulation th {
  background: #f0f0f0;
  border-top-width: 1px;
}

.tax-recapitulation th.caption {
  background: none;
  border: 0;
  padding: 0 0 5px;
  text-align: left;
  font-weight: bold;
  font-size: 11px;
}

.tax-recapitulation .tax-recapitulation__name {
  text-align: left;
}

/*****************/
/*    footer     */
/*****************/

.stamp {
  text-align: left;
  margin-top: 20px;
}

.stamp img {
  display: inline-block;
}

.notes {
  margin: 20px 0 0;
  font-size: 13px;
  color: #000;
}

.zelle-transfer {
  margin: 20px 0 0;
  font-size: 13px;
  color: #000;
}
