@font-face {
  font-family: SourceSansPro;
  src: url(SourceSansPro-Regular.ttf);
}

.clearfix:after {
  content: "";
  display: table;
  clear: both;
}

a {
  color: #0087C3;
  text-decoration: none;
}



#header {
  padding: 10px 0;
  margin-bottom: 20px;
  border-bottom: 1px solid #AAAAAA;
}

#logo {
  float: left;
  margin-top: 8px;
}

#logo img {
  /*height: 70px;*/
  height: 100px !important;
}

#company {
  float: right;
  text-align: right;
}


#details {
  margin-bottom: 50px;
}

#client {
  padding-left: 6px;
  border-left: 6px solid #0087C3;
  float: left;
}

#client .to {
  color: #777777;
}

h2.name {
  font-size: 1.4em;
  font-weight: normal;
  margin: 0;
}

#invoice {
  float: right;
  text-align: right;
}

#invoice h1 {
  color: #0087C3;
  font-size: 2.4em;
  line-height: 1em;
  font-weight: normal;
  margin: 0  0 10px 0;
}

#invoice .date {
  font-size: 1.1em;
  color: #777777;
}

table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  margin-bottom: 20px;
}

table th,
table td {
  padding: 20px;
  background: #EEEEEE;
  text-align: center;
  border-bottom: 1px solid #FFFFFF;
}

table th {
  white-space: nowrap;        
  font-weight: normal;
}

table td {
  text-align: right;
}

table td h3{
  color: #57B223;
  font-size: 1.2em;
  font-weight: normal;
  margin: 0 0 0.2em 0;
}

table .no {
  color: #FFFFFF;
  font-size: 1.6em;
  background: #57B223;
}

table .desc {
  text-align: left;
}

table .unit {
  background: #DDDDDD;
}

table .qty {
}

table .total {
  background: #57B223;
  color: #FFFFFF;
}

table td.unit,
table td.qty,
table td.total {
  font-size: 1.2em;
}

table tbody tr:last-child td {
  border: none;
}

table tfoot td {
  padding: 10px 20px;
  background: #FFFFFF;
  border-bottom: none;
  font-size: 1.2em;
  white-space: nowrap; 
  border-top: 1px solid #AAAAAA; 
}

table tfoot tr:first-child td {
  border-top: none; 
}

table tfoot tr:last-child td {
  
  font-size: 1.4em;
  border-top: 1px solid #57B223; 

}

table tfoot tr td:first-child {
  border: none;
}

#thanks{
  font-size: 2em;
  margin-bottom: 50px;
}

#notices{
  padding-left: 6px;
  border-left: 6px solid #0087C3;  
}

#notices .notice {
  font-size: 1.2em;
}

#footer {
  color: #777777;
  width: 100%;
  height: 30px;
  position: absolute;
  bottom: 0;
  border-top: 1px solid #AAAAAA;
  padding: 8px 0;
  text-align: center;
}

/* Invoice list table – Type column badges */
.invoice-type-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.85em;
  font-weight: 600;
  white-space: nowrap;
}
.invoice-type-freight {
  background: #e3f2fd;
  color: #1565c0;
}
.invoice-type-local {
  background: #e8f5e9;
  color: #2e7d32;
}
.invoice-type-other {
  background: #f5f5f5;
  color: #757575;
}

/* Invoice list block – revamp layout and styling */
.invoice-list-block {
  margin-bottom: 1.5rem;
}
.invoice-list-block .table-responsive {
  overflow-x: auto;
}
.invoice-list-block .invoice-list-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  background: #fff;
}
.invoice-list-block .invoice-list-table th,
.invoice-list-block .invoice-list-table td {
  padding: 0.6rem 0.75rem;
  vertical-align: middle;
  border-bottom: 1px solid #dee2e6;
}
.invoice-list-block .invoice-list-table thead th {
  border-bottom: 2px solid #dee2e6;
  font-weight: 600;
}
.invoice-list-header-row {
  background-color: #138496 !important;
}
.invoice-list-header-row th {
  background-color: #138496 !important;
  border-bottom-color: rgba(255,255,255,0.2);
}
.invoice-list-header-controls-cell {
  /* Keep the first column compact so it
     doesn’t stretch the whole table */
  width: 50px;
  min-width: 50px;
  max-width: 50px;
  vertical-align: middle !important;
  text-align: center;
}
.invoice-list-header-select {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  cursor: pointer;
}
.invoice-list-select-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.2;
}
.invoice-list-header-select .w3-check {
  margin: 0;
}
/* Actions bar above table (Pay Selected, count, total) */
.invoice-list-actions {
  margin-bottom: 0.5rem;
}
.invoice-list-actions-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  padding: 12px 16px;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  background: #f8f9fa;
}
.invoice-list-selected-count {
  font-size: 0.9rem;
  color: #333;
  margin: 0;
}
.invoice-list-total-box {
  flex: 0 0 auto;
  padding: 6px 10px;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  border-left: 3px solid #c62828;
  background: #fff;
}
.invoice-list-total {
  color: #b71c1c;
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.2;
}
.invoice-list-block .invoice-list-table tbody tr:hover {
  background-color: #f8f9fa;
}
.invoice-list-block .invoice-list-table .w3-btn,
.invoice-list-block .invoice-list-table .w3-button {
  border-radius: 4px;
}

