
#invoice{
    padding: 0px;
}

.invoice {
    position: relative;
    background-color: #FFF;
    padding: 0px 30px 0px 30px
}

.invoice header {
    margin-bottom: 15px;

}

.invoice .company-details {
    text-align: right;
    margin-bottom: 5px;
    border-bottom: 1px solid #3989c6;
    padding: 8px 0;
    background-color: #3989c6
}

.invoice .company-details .name {
    font-size: 1.8em;
    margin-top: 10px;
    padding-left: 15px;
    margin-bottom: 10px
}

.invoice .contacts {
    margin-bottom: 20px
}

.invoice .container {
    margin-bottom: 20px;
    width: 100% 
}

.invoice .invoice-to {
    text-align: left;
    padding-left: 15px
}

.invoice .invoice-to .to {
    font-size: 1.8em;
    margin-top: 3px;
    margin-hidden-printbottom: 0
}

.invoice .invoice-details {
    text-align: right;
    padding-right: 15px
}

.invoice .invoice-details .invoice-id {
    font-size: 2.2em;
    margin-top: 8px;
    color: #3989c6;
}
.invoice .invoice-details .date{
    margin-top: 0;
    margin-hidden-printbottom: 0
}


.invoice main {
    padding-bottom: 10px
}

.invoice main .thanks {
    margin-top: -100px;
    font-size: 2em;
    margin-bottom: 40px
}

.invoice footer .notices {
    padding-left: 6px;
    border-left: 6px solid #3989c6
}

.invoice footer .notices .notice {
    font-size: .8em
}

.invoice table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    margin-bottom: 20px;
    border:1;
}

.invoice table td,.invoice table th {
    padding: 2px;
    background: #eee;
}

.invoice table th {
    white-space: nowrap;
    font-size: 10px
}

.invoice table td h3 {
    margin: 0;
    font-weight: 400;
    color: #3989c6;
    font-size: 1.2em
}

.invoice table .qty,.invoice table .total {
    text-align: right;
    font-size: 1.2em
}

.invoice table .no {
    color: #fff;
    font-size: 1em;
    background: #3989c6
}

.invoice table .name {
    background: #ddd;
    width:15.0%;
    text-align: left
}

.invoice table .units {
    background: #ddd;
    width:25%;
    text-align: left
}
.invoice table .control {
    background: #ddd;
    width:15%;
    text-align: left
}
.invoice table .dates {
    background: #ddd;
    width:5%;
    text-align: left
}

.invoice table .total {
    background: #3989c6;
    width:10%;
    color: #fff
}

.invoice table tbody tr:last-child td {
    border: none
}

.invoice .topleft {
  position: absolute;
  top: 15px;
  left: 16px;
  font-size: 18px;
}

.invoice table tfoot td {
    background: 0 0;
    border-bottom: none;
    white-space: nowrap;
    padding: 15px 5px;
    font-size: 1.2em;
    border-top: 1px solid #aaa
}

.invoice table tfoot tr:first-child td {
    border-top: none
}

.invoice table tfoot tr:last-child td {
    color: #3989c6;
    font-size: 1.4em;
    border-top: 1px solid #3989c6
}

.invoice table tfoot tr td:first-child {
    border: none
}

.invoice footer {
    width: 100%;
    border-bottom: 1px solid #aaa;
    padding: 10px 0;
    margin-bottom: 20px
}

@media print {
    body{
        height: auto;
        margin-top: -850px;
        -webkit-print-color-adjust: exact
    }
    .invoice {
        font-size: 11px!important;
        overflow: hidden!important;
        -webkit-print-color-adjust: exact
    }
    .invoice footer {
        position: absolute;
        bottom: 10px;
        page-break-after: always
    }
    .invoice>div:last-child {
        page-break-before: always
    } 
    .invoice>table tfoot tr:last-child td {
        page-break-before: always
    } 
   @page 
    {
        size: auto;   /* auto is the initial value */
        margin: -100px 10px 10px 10px;  /* this affects the margin in the printer settings */
    }
    .navigation,.footer,.header,.nav,.navbar
    {
        display:none;
    }
    #content,#page {
        width: 100%; 
        margin: 0; 
        float: none;
    }
    tfoot { display: table-row-group }
}

