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

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

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

body {
    position: relative;
    width: 25cm;
    height: 35cm;
    margin: 0 auto;
    /*color: #555;*/
    /*background: #fff;*/
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-family: 'Source Sans 3', SourceSansPro, Arial, sans-serif;
}

header {
    padding: 0px 0;
    margin-bottom: 5px;
    border-bottom: 1px solid #aaa;
}

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

#logo img {
    height: 90px;
}

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


#details {
    margin-bottom: 20px;
}

#client {
    padding-left: 6px;
    border-left: 6px solid #0087c3;
    float: left;
    width: 50%;
}

#client .to {
    color: #777;
}

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

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

h1.name {
    font-size: 2.2em;
    font-weight: bold;
    margin: 0;
}

#invoice {
    float: right;
    text-align: left;
    padding-left: 6px;
    border-left: 6px solid #0087c3;
}

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

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

table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    margin-bottom: 20px;
    /*background: #fff;*/
}

table th,
table td {
    padding: 5px;
    /*background: #eee;*/
    text-align: center;
    border: 1px solid #000;
}

table th {
    /*white-space: nowrap;*/
    font-weight: bold;
    background-color: #c8cbce;
}

table td {
    text-align: right;
}

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

table td span {
    /*color: #57b223;*/
    font-size: 1.2em;
    font-weight: normal;
    margin: 0 0 0.2em 0;
}

table .no {
    /*color: #fff;*/
    font-size: 1.6em;
    /*background: #eee;*/
}

div.page {
    page-break-after: always;
    page-break-inside: avoid;
}

table .desc {
    text-align: left;
}

table .unit {
    /*background: #ddd;*/
}

table .qty {
}

table .total {
    /*background: #57b223;*/
    color: #fff;
}

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: #eee;
    border-bottom: none;
    font-size: 1.2em;
    white-space: nowrap;
    border-top: 1px solid #000;
}

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

table tfoot tr:last-child td {
    /*color: #57b223;*/
    font-size: 1.4em;
    border: 1px solid #000;

}

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

#thanks {
    font-size: 1.2em;
    /*margin-bottom: 50px;*/
    text-align: right;
    width: 50%;
    border-top: 1px solid #000;
}

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

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

footer {
    color: #777;
    width: 100%;
    font-size: 10px;
    /*height: 30px;*/
    /*position: absolute;*/
    /*bottom: 0;*/
    /*border-top: 1px solid #aaa;*/
    /*padding: 8px 0;*/
    text-align: right;
}

.signature {
    /*color: #777;*/
    margin-top: 30px;
    width: 100%;
    height: 30px;
    text-align: center;
}

.statistics table td {
    text-align: center;
}

.statistics table th {
    text-align: center;
    font-weight: bold;
}

table {
    page-break-inside: auto
}

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

thead {
    display: table-header-group
}

/*tfoot { display:table-footer-group }*/
.center {
    text-align: center !important;
}
