/*
#AA8F66
#ED9B40
#FFEEDB
#61C9A8
#BA3B46
*/

html, body {
    height: 100%;
}

body {
    background: #f1f4f6;
    font-family: Arial, Helvetica, sans-serif;
    position: relative;
}

.header {
    background: #fff;
    box-shadow: 0 5px 10px 0 rgba(100,100,100,0.5);
    height: 40px;
    padding: 10px 50px;
    position: relative;
    z-index: 500;
}

#menu_btn_left, #menu_btn_right {
    background: url('../img/icons/menu.svg');
    background-size: contain;
    display: inline-block;
    height: 40px;
    position: absolute;
    right: 0;
    width: 40px;
}

#menu_btn_left {
    left: 0;
    right: auto;
}

h1 {
    display: inline-block;
}

.page {
    position: relative;
}

.menu {
    background: #fdfdfd;
    padding: 10px;
    position: absolute;
    top: 0;
}

#leftmenu {
    box-shadow: 5px 0 10px 0 rgba(100,100,100,0.5);
    left: -100%;
    max-width: 250px;
    width: 90%;
    z-index: 450;
}

#leftmenu a, #rightmenu a {
    color: #666;
    display: block;
    padding: 20px;
    text-decoration: none;
}

#rightmenu {
    box-shadow: 0 0 10px 5px rgba(100,100,100,0.5);
    max-width: 150px;
    right: 100%;
    width: 90%;
    z-index: 400;
}

.left_menu_open #leftmenu {
    left: 0;
}

.right_menu_open #rightmenu {
    right: 0;
}

#content {
    padding: 20px;
}

.breadcrumbs {
    font-size: 0.6em;
    margin-bottom: 20px;
}

.breadcrumbs a {
    color: rgba(100,100,100);
}

.block {
    background: #fff;
    box-shadow: 5px 0 10px 0 rgba(100,100,100,0.5);
    display: inline-block;
    margin-bottom: 20px;
}

.block.fullwidth {
    width: 100%;
}

.blockheader {
    border-bottom: 1px solid #ccc;
    display: flex;
    justify-content: space-between;
    padding: 20px;
}

.blockcontent {
    padding: 20px;
}

.tabs a {
    background: #ccc;
    border: 1px solid rgba(100,100,100,0.5);
    border-bottom: 0;
    border-radius: 10px 10px 0 0;
    color: #000;
    display: inline-block;
    padding: 10px 20px;
    position: relative;
    z-index: 10;
}

.tabs a.active {
    background: #fff;
    color: #000;
}

label {
    display: inline-block;
    padding: 10px 0;
    width: 200px;
}

p, .formrow {
    margin-bottom: 10px;
}

h2, h3 {
    font-weight: bold;
    margin-bottom: 20px;
}

h2 {
    font-size: 1.1em;
}

input, textarea {
    border: 1px solid #666;
    box-sizing: border-box;
    height: 40px;
    padding: 10px;
    vertical-align: top;
}


table {
    width: 100%;
}

th {
    font-weight: bold;
    text-align: left;
}

td, th, .row {
    padding: 10px;
    vertical-align: middle;
}

tr:nth-child(even), .row:nth-child(even) {
    background: #ccc;
}

.actions {
    text-align: right;
}

.btn {
    border-radius: 5px;
    height: auto;
    padding: 5px 20px;
    text-decoration: none;
}

.btnEdit, .btnPdf {
    background: url('../img/icons/edit.svg');
    display: inline-block;
    height: 24px;
    margin-left: 10px;
    overflow: hidden;
    text-indent: 999px;
    width: 24px;
}

.btnPdf {
    background: url('../img/icons/pdf.svg');
}

.green {
    background: #2e9d64;
    color: #fff;
}

.blue {
    background: #16aaff;
    color: #fff;
}

.error, .red {
    background: #d92550;
    color: #fff;
}

.success {
    background: #3ac47d;
    color: #fff;
}

.warning {
    background: #f7b924;
    color: #000;
}

.error, .success, .warning {
    animation: disappear 5s forwards;
    padding: 10px;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

@keyframes disappear {
    80% {
      transform: translateX(-50%);
    }
    100% {
      transform: translate(-50%,-100%);
    }
}

#search_client {
    display: inline-block;
    position: relative;
    vertical-align: top;
}

#search_client_results {
    position: absolute;
}

#search_client_results div {
    background: #f1f4f6;
    border: 1px solid #666;
    margin-left: 10px;
    min-width: 175px;
    padding: 5px;
}

#search_client_results div:hover {
    background: #333;
    color: #fff;
    cursor: pointer;
}

.invoiceproducts {
    min-width: 1024px;
    overflow-x: scroll;
}

.invoiceproducts .row {
    margin-bottom: 5px;
}

.invoiceproducts .product {
    width: 200px;
}

.invoiceproducts .description {
    width: 400px;
}

.invoiceproducts .quantity, .invoiceproducts .unit_price, .invoiceproducts .vat, .invoiceproducts .subtotal {
    display: inline-block;
    text-align: right;
    width: 75px;
}

.invoiceproducts span {
    display: inline-block;
    margin-right: 10px;
    vertical-align: top;
}

.invoiceproducts .totals {
    display: inline-block;
    text-align: right;
    width: 1025px;
}

.invoiceproducts .row input, .invoiceproducts .row textarea {
    width: 100%;
}

input:invalid {
    border: red solid 3px;
}

#addlinediv {
    text-align: right;
}

#addlinediv a, .deleteline a {
    background: #ccc;
    border: 1px solid #666;
    border-radius: 0;
    box-sizing: border-box;
    color: #000;
    display: inline-block;
    font-weight: bold;
    padding: 10px;
    text-align: center;
    width: 100px;
}

#lnkDelete {
    text-align: right;
}

.due {
    font-weight: bold;
}