* {
    margin: 0;
    padding: 0;
}
body {
    font-family: sans-serif;
    color: #202020;
    font-size: 0.9em;
}
header,
footer,
main {
    display: block;
}
.content-wrap {
    max-width: 1200px;
    margin: auto;
}
table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid black;  
}
header table,
footer table {
    border: none;
}
thead tr {
    background: #D2D5DD;
}
header,
footer {
    padding: 10px;
    font-size: 1em;
    margin: auto;
}
header .logo {
    text-align: right;
}
footer {
    height: 60px;
    border-top: 1px solid #aaa;
}
main {
    margin-top: 100px;
    margin-bottom: 100px;
    padding: 10px;
}
main table {
    border: 1px solid black;  
}
main td {
    padding: 5px;
    border: 1px solid black;
}
.invoice-header td {
    width: 50%;
}
input[type="text"]{
    width: 400px;
    outline: none;
}
.invoice-content-header input[type="text"],
input[name="invoice-type"] {
    margin-bottom: 10px;
    padding: 5px;
}
.client-info .half {
    width: 47%;
}
#docform .error {
    font-size: 0.7em;
    font-weight: normal;
    color: #f00;
}
.sbm-btn {
    padding-top: 10px;
    text-align: right;
}
.sbm-btn input[type='submit'] {
    padding: 5px;
    background: orange;
    border: 1px solid #202020;
    cursor: pointer;
}
.sbm-btn input[type='submit']:hover {
    background: #e7990a;
}
#items {
    margin-top: 40px;
}
#items input{
    width: 95%;
}
#items th:first-child,
#items td:first-child {
    width: 100px;
}

#subtotal,
#net {
    margin-top: 20px;
}
#subtotal:after {
    content: '';
    display: table;
    clear: both;
}
#subtotal table {
    float: right;
    width: 200px;
    border-collapse: collapse;
    border: 1px solid black;  
}
#subtotal td {
    width: 50%;
}
#subtotal td input {
    width: 100%;
}

#net table {
    border-collapse: collapse;
    border: 1px solid black;  
}
#net th,
#net td {
    width: 33.3%;
    padding: 3px;
    text-align: right;
}
