/* Generic invoice styles for FreeAgent themes */
/* Settings and tools
-------------------------------------------------------------------------- */
/* General invoice styles (not theme-specific)
----------------------------------------------- */
/* Wrap long invoice item description content (e.g. URLs) */
#invoice-amount {
  max-width: 100%;
  width: 100%;
}

#invoice-amount td.description_td,
#invoice #comments {
  overflow-wrap: break-word;
  width: 100%;
  word-break: break-word;
  word-wrap: break-word;
}

h1#company-name {
  display: none;
}

/* Global text styles for invoice */
[id=invoice] h1,
[id=invoice] h2,
[id=invoice] h3,
[id=invoice] h4,
[id=invoice] h5,
[id=invoice] h6 {
  font-weight: bold;
}

[id=invoice] strong {
  font-weight: bold;
}

/*
Bauhaus Theme
Created by Roan Lavery
18/02/08 */
#invoice.pagestyle,
.draft #invoice.pagestyle {
  padding-top: 0;
}

/*=========================== TYPOGRAPHY =========================*/
#invoice p,
#invoice h2,
#invoice h3 {
  margin: 0;
}

#invoice.pagestyle {
  border-top: 1mm solid #000 !important;
  color: #000;
  font-family: Helvetica, Arial, sans-serif;
  line-height: 1.3;
}

#invoice h1 {
  color: #000;
  margin: 0;
  text-transform: uppercase;
}

#invoice h2,
#invoice h3 {
  color: #000;
  font-family: Helvetica, Arial, sans-serif;
  line-height: 1.2;
  margin-top: 10px;
  text-transform: none;
  white-space: normal;
}

#invoice h2 {
  font-size: 11pt;
}

#company-address,
#client-details,
#payment-details,
#invoice-other,
#invoice-amount td,
th,
#invoice-info {
  font-size: 10pt;
}

#invoice #invoice-info h3 {
  font-size: 11pt;
  margin: 3px 0 0 0;
}

#invoice #invoice-info h2 {
  font-size: 14pt;
  margin-bottom: 0;
  text-transform: uppercase;
}

#invoice #invoice-terms h2 {
  margin-bottom: 3px;
}

#invoice #invoice-terms h3 {
  color: #666;
  font-size: 9pt;
  font-style: italic;
  font-weight: normal;
  margin-bottom: 5px;
  margin-top: 0;
}

#invoice #payment-due {
  color: #5e6e78;
  font-size: 10pt;
  font-weight: bold;
  line-height: 1.3;
}

#invoice-info #payment-total {
  display: none;
}

#invoice-other h2,
#payment-details h2 {
  margin-bottom: 1em;
}

#payment-link {
  display: inline-block;
  max-width: 250px;
  vertical-align: top;
  margin-bottom: 2em;
}

/* Ensure payment text is clearly a link, not using global FreeAgent link style */
#payment-link a {
  font-weight: bold;
  text-decoration: underline;
}

#comments {
  color: #5e6e78;
  font-size: 10pt;
  font-weight: bold;
  line-height: 1.2;
  margin-top: 15px;
}

/*=========================== LAYOUT =========================*/
#invoice-header #company-address {
  clear: right;
  float: right;
  width: 250px;
}

#invoice-header h1 {
  color: #000;
  float: left;
  margin: 5px 0 0 0;
  width: 350px;
}

#invoice-header {
  padding-top: 1cm;
}

#invoice-header .logo {
  float: left;
}

#invoice-blank-header {
  margin-top: 2.6cm;
}

#client-details {
  border-top: 1px solid #d8dde0;
  float: left;
  margin-bottom: 20px;
  margin-top: 20px;
  padding-top: 10px;
  width: 330px;
}

#invoice-info {
  border-top: 1px solid #d8dde0;
  clear: both;
  float: right;
  margin-bottom: 20px;
  margin-top: 20px;
  width: 250px;
}

#invoice-info th {
  text-align: right;
}

#payment-terms {
  display: none;
}

#invoice-amount {
  clear: both;
  margin: 2em 0 2em 0;
}

#payment-details {
  border-top: 1px solid #d8dde0;
  float: left;
  width: 330px;
}

#invoice-other {
  border-top: 1px solid #d8dde0;
  clear: both;
  float: right;
  width: 270px;
}

#comments {
  clear: both;
  padding-top: 1cm;
}

/*=========================== INVOICE AMOUNT TABLE =========================*/
#invoice table {
  border-collapse: collapse;
  clear: both;
  width: 100%;
}

#invoice table th {
  padding: 6px 5px;
  text-align: left;
}

#invoice #header_row th {
  background: #000;
  color: #fff !important;
}

#invoice-amount td.action {
  border-bottom: 0;
}

.odd td {
  background: #F4F4F4;
}

.even td {
  background: #fff;
}

#invoice-amount .discount_tier td {
  font-size: 1em;
  font-weight: bold;
  padding-top: 20px;
}

#invoice-amount #total_tr td {
  border-bottom: 0;
}

#invoice-amount #vat_tr td {
  border-bottom: 1px solid #000;
}

#invoice-amount td {
  border-bottom: 1px solid #d8dde0;
  margin: 0;
  white-space: nowrap;
}

#invoice-amount td {
  margin: 0;
  padding: 6px 5px;
  vertical-align: top;
}

#invoice-amount .item_r {
  text-align: right;
}

#invoice-amount .item_l {
  text-align: left;
  white-space: normal;
}

#invoice-amount .total {
  font-size: 12pt;
  font-weight: bold;
  line-height: 1.3;
  text-align: right;
}

#invoice-amount .details_th {
  width: 44%;
}

#invoice-amount .details_notax_th {
  width: 52%;
}

#invoice-amount .quantity_th {
  width: 13%;
}

#invoice-amount .subtotal_th {
  text-align: right;
  width: 18%;
}

#invoice-amount .unitprice_th {
  text-align: right;
  width: 17%;
}

#invoice-amount .salestax_th {
  text-align: right;
  width: 8%;
}

/* Invoice UK VAT Summary Table */
#invoice #invoice-uk-vat-summary {
  background: #fff;
  border: 0;
  border-collapse: collapse;
  clear: both;
  margin: 25px 0 0 0;
  width: 100%;
}

#invoice tr#invoice-uk-vat-header th {
  border-top: 1px solid #ccc;
  padding: 7px 0;
}

#invoice-uk-vat-summary td,
#invoice #invoice-uk-vat-summary th {
  font-size: 9pt;
  padding: 2px 0;
  text-align: left;
}

#vat-total td,
#vat-total th {
  border-top: 1px solid #ccc;
}
