.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;
    border-style: solid;
    border-width: thin;
}

header {
    padding: 10px 0;
    margin-bottom: 30px;
}

#logo {
}

#logo img {
    width: 138px;
    position: relative;
}

.invoice_head {
    border-style: solid;
    color: #5D6975;
    font-size: 2.4em;
    line-height: 1.4em;
    font-weight: normal;
    text-align: center;
    margin: 0 0 12px 0;
    background: url(dimension.png);
    border-bottom-style: solid;
    border-width: thin;
}

#project {
    width: 495px;
    border-style: solid;
    border-top: thin;
    border-left: thin;
    border-width: thin;
    margin-top: -4px;
    border-bottom: thin;
    border-right: thin;
}

#project1 {
    float: left;
    width: 421px;
    border-style: solid;
    border-top: thin;
    border-left: thin;
    border-width: thin;
}

#project2 {
    float: left;
    width: 421px;
    border-style: solid;
    border-top: thin;
    border-left: thin;
    border-width: thin;
    border-right: thin;
}

#project span {
    color: #5D6975;
    text-align: right;
    width: 52px;
    margin-right: 10px;
    display: inline-block;
    font-size: 0.8em;
}

#company {
    float: right;
    text-align: left;
    /* border-style: solid; */
    border-top: thin;
    width: 381px;
    border-right: thin;
    border-width: thin;
    margin-top: -101px;
    border-bottom: thin;
}

#company1 {
    float: left;
    text-align: left;
    border-style: solid;
    border-top: thin;
    width: 371px;
    border-left: thin;
    border-right: thin;
    border-width: thin;
}

#project div,
#company div {
    white-space: nowrap;
}

table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    margin-bottom: 20px;
    margin-top: -40px;
    border-top: thin;
    border-left: thin;
    border-right: thin;
    border-style: solid;
    border-width: thin;
}

table tr,
td {
    background: #FFFFFF;
    border-style: solid;
    border-width: thin;
}

table th,
table td {
    text-align: center;
}

table th {
    padding: 5px 20px;
    color: #5D6975;
    border-bottom: 1px thin;
    white-space: nowrap;
    font-weight: normal;
    font-size: small;
    font-weight: bold;
}

table .service,
table .desc {
    text-align: left;
}

table td {
    padding: 10px;
    text-align: right;
}

table td.service,
table td.desc {
    vertical-align: top;
}

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

table td.grand {}

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

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