.clearfix:after {
  content: "";
  display: table;
  clear: both;
}

a {
  color: #5D6975;
  text-decoration: underline;
}

body {
  position: relative;
  width: 21cm;
  height: 29.7cm;
  margin: 0 auto;
  color: #001028;
  background: #FFFFFF;
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-family: Arial;
}

header {
  padding: 10px 0;
  margin-bottom: 15px;
  overflow: hidden;
}

#logo {
  text-align: center;
  margin-bottom: 20px;
}

#logo img {
  margin-top: 38px;
}

h1 {
  color: #5D6975;
  font-size: 2.4em;
  line-height: 1.4em;
  font-weight: normal;
  text-align: center;
}

.textbg {
  float: right;
  width: 220px;
  background: #505050;
}

.textbg h1 {
  margin: 0;
  font-size: 24px;
  font-weight: bold;
  color: #ffffff;
}

#project {
  float: left;
  width: 240px;
}

#project h2 {
  margin: 0px;
  padding-bottom: 5px;
  color: #505050;
}

#company p {
  margin: 0;
  line-height: 18px;
}

#project p {
  margin: 0px;
  line-height: 18px;
  color: #505050;
}

#project p a {
  text-decoration: none;
}

#project2 {
  float: left;
  margin-left: 30px;
}

#project2 h2 {
  margin: 0px;
  padding-bottom: 5px;
  color: #505050;
}

#project2 p {
  margin: 0px;
  line-height: 18px;
  color: #505050;
}

#project span {
  color: #5D6975;
  text-align: right;
  width: 52px;
  margin-right: 10px;
  display: inline-block;
  font-size: 0.8em;
}

#company {
  float: right;
  width: 180px;
}

#project div, #company div {
  white-space: nowrap;
}

.tablebg {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  margin-bottom: 20px;
}

table.tablebg tr:nth-child(2n-1) td {
  background: #F5F5F5;
}

.tablebg2 {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  margin-bottom: 20px;
}

.grand_total table.tablebg2 tr:nth-child(1) td {
  background: #505050;
  color: #fff;
  padding-right: 7px;
  height: 30px;
}

table th {
  padding: 15px 20px;
  color: #ffffff;
  font-size: 18px;
  white-space: nowrap;
  font-weight: normal;
}

table .service, table .desc {
  text-align: left;
  font-size: 20px;
}

table.tablebg tbody td {
  padding: 10px 20px 10px 20px;
  text-align: left;
}

.main_titlebg strong {
  font-size: 15px;
  overflow: hidden;
  width: 100%;
  line-height: 30px;
  color: #505050;
}

table td.service, table td.desc {
  vertical-align: baseline;
}

table td.unit, table td.qty, table td.total {
  text-align: center;
}

table td.grand {
  border-top: 1px solid #5D6975;
}

#notices .notice {
  color: #5D6975;
  font-size: 1.2em;
}

footer {
  color: #5D6975;
  width: 100%;
  position: absolute;
  bottom: 0;
  padding: 8px 0;
  text-align: center;
  background: #000;
  padding: 15px 0 10px 0;
  text-transform: uppercase;
  letter-spacing: 5px;
}

.top-header {
  overflow: hidden;
}

.logo_bg {
  float: left;
  width: 80px;
}

#notices {
  float: right;
  width: 370px;
}

.bottomtex {
  width: 100%;
  overflow: hidden;
}

.left_text {
  float: left;
  width: 100%;
  margin-top: 40px;
}

.left_text h1 {
  font-size: 18px;
  font-style: italic;
  text-align: left;
  margin: 0;
}

.left_text p {
  margin: 0px;
  line-height: 18px;
  font-style: italic;
  font-size: 13px;
  color: #505050;
}

.right_text {
  float: right;
  width: 50%;
  text-align: center;
  margin-top: 40px;
}

.right_text p {
  border-top: 1px solid #ddd;
  width: 50%;
  float: right;
  margin: 40px 80px 0 0px;
  font-size: 14px;
  font-weight: bold;
  padding: 5px 0 0px 0;
  color: #505050;
}

tr.total_bg td {
  background: #505050 !important;
  color: #fff;
}

span.main_titlebg strong {
  font-size: 15px;
  overflow: hidden;
  width: 100%;
  line-height: 30px;
  color: #505050;
}

.grand_total {
  width: 290px;
  float: right;
  margin-right: 10px;
}

.sub_total {
  width: 290px;
  float: right;
  margin-right: 10px;
}

.tablebg3 {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  margin-bottom: 20px;
}

.sub_total table.tablebg3 {
  padding-right: 5px;
  height: 30px;
}

.companyName {
  font-size: 16px;
  margin-left: -.5%;
  margin-top: 3%;
  padding: 0%;
}

.inv-text-left {
  text-align: left;
}

.inv-text-right {
  text-align: left;
}

.p0 {
  padding: 0;
}

.pb10 {
  padding: 0 0 0 10px;
}

.company-td {
  color: #505050;
  font-size: 12px;
}

.inv-primary-color-bg {
  background-color: #505050;
}

.inv-primary-color {
  color: #505050;
}

.inv-secondary-color-bg {
  background-color: #333;
}

.inv-secondary-color {
  color: #333;
}

.f20 {
  font-size: 20px;
}

.f18 {
  font-size: 18px;
}

.wd-400 {
  width: 400px;
}

.cal-title {
  text-align: right;
  background: none;
  padding-left: 65px;
  font-weight: bold;
  color: #505050;
  padding-right: 7px;
  padding-bottom: 5px;
}

.cal-value {
  text-align: right;
  background: none;
  color: #505050;
  padding-bottom: 5px;
  padding-right: 7px;
}

.grand-total {
  text-align: right;
  padding-left: 65px;
  font-weight: bold;
}

.final-cal-title {
  text-align: right;
  font-weight: bold;
  padding-left: 65px;
  color: #505050;
  margin-top: 10px;
  padding-top: 10px;
}

.final-cal-value {
  text-align: right;
  padding-right: 7px;
  padding-top: 10px;
}