/*
 * <--------------------------- Quick invoice form ---------------------------> 
 */

.b-invoice_form {
margin: 0 2%;
}
.b-invoice_form_logo img{
width: 150px;
height: auto;
}
.b-invoice_form_header {
float: left;
width: 100%;
margin: 10px 0;
}
.b-invoice_form_title {
margin: 0 auto;
text-align: center;
}
.b-invoice_form_title h1 {
color: black;
font-family: Verdana;
font-weight: bold;
margin: 0px;
}
/*
 * Invoice form fields groups
 */
.b-invoice_form .b-invoice_form_group {
width: 50%;
}
.b-invoice_form_group .form-group {
margin: 0 0 5px;
}
.b-invoice_form_group_wrap {
border: 2px solid #ccc;
padding: 10px 0;
margin: 20px 0;
}
.b-invoice_form_group label, .b-invoice_instructions label {
font-size: 13px;
font-weight: bold;
height: 25px;
line-height: 23px;
margin: 0 2% 0 0;
min-width: 20%;
text-align: right;
vertical-align: middle;
display: inline-block;
zoom:1;
*display: inline;
}
.b-invoice_form_group label .required   {
color: red;
}
.b-invoice_form_group .form-group div {
width: 60%;
vertical-align: middle;
display: inline-block;
zoom:1;
*display: inline;
}
.b-invoice_form input, .b-invoice_form .form-control {
height: 25px;
line-height: 16px;
font-size: 13px;
padding: 0 2%;
}
.b-invoice_form select option {
padding: 2px 2%;
}
.b-invoice_form .form-control {

}
.b-invoice_instructions {
padding: 0 2%;
}
.b-invoice_instructions label {
min-width: 0;
width: 10%;
}
.b-invoice_instructions_work label {
min-width: 0;
width: 20%;
}
.b-invoice_instructions .form-group {
margin: 0px;
}
.b-invoice_instructions .form-group div {
width: 88%;
display: inline-block;
vertical-align: middle;
}
.b-invoice_instructions_work .form-group div{
width: 100%;
}
.b-invoice_form .b-invoice_instructions textarea {
min-height: 40px;
padding: 5px 1%;
}
.b-invoice_btns {
text-align: center;
}
.b-invoice_three_columns .b-invoice_form_group {
width: 32%;
text-align: center;
}

.b-invoice_three_columns .l-hint {
font-size: 12px;
text-align: right;
}

/*
 * Invoice table
 */
.b-invoice_form table {
width: 100%;
}
.b-invoice_form table td, .b-invoice_form table th  {
border: 1px solid #ccc;
vertical-align: middle;
}
.b-invoice_table thead {
background: #ccc;
}
.b-invoice_table tbody tr:nth-child(even) {
background: #f0f0f0;
}
.b-invoice_table th {
text-align: center;
font-weight: bold;
}

.b-invoice_table th.invoice_tbl_description {
width: 25%;
min-width: 300px;
text-align: left;
}
.b-invoice_table th.invoice_tbl_total {
min-width: 100px;
}
.b-invoice_table td.invoice_tbl_total {
text-align: right;
font-weight: bold;
vertical-align: middle;
}
.b-invoice_table td.invoice_tbl_total span {
font-weight: bold;
}
.b-invoice_table input{
text-align: right;
}
.b-invoice_table td:first-child input{
text-align: left;
}

.b-table_btns {
min-width: 100px;
text-align: center;
}
.b-table_btns a {
text-decoration: none;
font-size: 30px;
line-height: 30px;
padding: 0 5px;
display: inline-block;
font-weight: bold;
zoom:1;
*display: inline;
}
.b-invoice_table > tbody > tr > td.b-table_btns {
padding: 0px;
vertical-align: middle;
}
.b-table_btns a.table_btn_clone {
color: green;
}
.b-table_btns a.table_btn_remove {
color: red;
}
.b-table_btns a:hover {
color: #000;
}
/*
 * Unit table
 */
.b-unit_table th.invoice_tbl_description {
width: 40%;
}

.b-invoice_form .b-unit_table .unit_price_row  input {
display: inline-block;
width: 83%;
}
.b-invoice_form .unit_sales .l-inline_block {
vertical-align: middle;
}
.b-invoice_form td.unit_sales input {
font-size: 13px;
height: 19px;
line-height: 16px;
padding: 0 5px;
text-align: center;
}
.b-invoice_form .unit_sales .l-no_label {
width: 80px;
}
.b-invoice_form .unit_sales .l-no_label .form-group {
display: inline-block;
margin: 0;
vertical-align: middle;
width: 50%;
}

.b-work_table input{
text-align:left;
}
.b-work_table tr td:nth-child(8) input{
text-align:right;
}
/* NEW INVoiCE */
.block.block_with_new_invoice {
    padding-bottom: 0;
}
.block.block_with_new_invoice .block-content{
    margin: -20px;
}
.block.block_with_new_invoice .panel,
.block.block_with_new_invoice .panel table.b-new_invoice {
    border-radius: 0;
    margin-bottom: 0;
}
.block.block_with_new_invoice .panel table.b-new_invoice thead{
    background: none;
    border-radius: 0;
}
.block.block_with_new_invoice .panel table.b-new_invoice thead th,
.block.block_with_new_invoice .panel table.b-new_invoice tfoot th,
.block.block_with_new_invoice .panel table.b-new_invoice tbody tr td{
    padding: 5px;
    text-align: center;
}
.block.block_with_new_invoice .panel table.b-new_invoice td input.form-control{
    text-align: left;
}
.block.block_with_new_invoice .panel table.b-new_invoice td input.j-number_float,
.block.block_with_new_invoice .panel table.b-new_invoice td input.j-number_int{
    text-align: right;
}
.block.block_with_new_invoice .panel table.b-new_invoice tbody tr td:first-child{
    width: 60px;
}
.block.block_with_new_invoice .panel table.b-new_invoice tbody tr td:nth-child(2){

}
.block.block_with_new_invoice .panel table.b-new_invoice tbody tr td:nth-child(3){
    width: 60px;
}
.block.block_with_new_invoice .panel table.b-new_invoice tbody tr td:nth-child(4){
    width: 50px;
}
.block.block_with_new_invoice .panel table.b-new_invoice tbody tr td:nth-child(5){
    width: 90px;
}
.block.block_with_new_invoice .panel table.b-new_invoice tbody tr td:nth-child(5) input{
    width: 65px;
    float: left;
    margin: 0 auto;
}
.block.block_with_new_invoice .panel table.b-new_invoice tbody tr td:nth-child(6){
    width: 130px;
    font-weight: bold;
}
.block.block_with_new_invoice .panel table.b-new_invoice tfoot tr th span,
.block.block_with_new_invoice .panel table.b-new_invoice tbody tr td:nth-child(6) span{
    margin-top: 4px;
    text-align: center;
    display: block;
}
.block.block_with_new_invoice .panel table.b-new_invoice tfoot tr th:nth-child(3) span{
    text-align: right;
}
.block.block_with_new_invoice .panel table.b-new_invoice tfoot tr th:nth-child(4) {
    text-align: right;
}
.block.block_with_new_invoice .panel table.b-new_invoice tbody tr td:nth-child(6) span{
    text-align: right;
    margin-right: 15px;
}
.block.block_with_new_invoice .panel table.b-new_invoice tbody tr td:nth-child(7){
    width: 110px;
    min-width: 110px;
}
.block.block_with_new_invoice .panel table.b-new_invoice span.curr_sign{
    float:left;
    margin-right: 5px;
    margin-top: 4px;
}
.block.block_with_new_invoice .panel table.b-new_invoice span.curr_sign.discount_type{
    float:left;
    margin-right: 5px;
    margin-top: 0;
}
.block.block_with_new_invoice .panel table.b-new_invoice tbody tr td:nth-child(6) span.curr_sign.discount_type{

}
.block.block_with_new_invoice .panel table.b-new_invoice tbody tr td:nth-child(6) span.curr_sign{
    margin-left: 5px;
}
.block.block_with_new_invoice .panel table.b-new_invoice thead th .col-sm-6.col-lg-6.form-control{
    float:left;
    width: 50%;
    text-align: left;
    font-weight: normal;
    padding:2px;
}
.block.block_with_new_invoice .panel table.b-new_invoice tfoot tr th input {
    width: 75px;
    display: inline-block;
}
.b-invoice_form table.b-new_invoice.b-new_invoice_total {
    width: 360px;
    float: right;
    font-weight: bold;
}
.b-invoice_form table.b-new_invoice.b-new_invoice_total tbody tr td:first-child{
}
.b-invoice_form table.b-new_invoice.b-new_invoice_total tbody tr td:nth-child(2){
    width: 10px;
    padding: 5px 0;
}
.b-invoice_form table.b-new_invoice.b-new_invoice_total tbody tr td:nth-child(3){
    width: 90px;
}
#j-item_counts table:first-child:last-child tfoot tr th.b-table_btns a.j-remove_item,
.b-invoice_form table tbody tr:nth-child(2):last-child a.j-remove_line{
    display: none;
}
.b-table_btns a.table_btn_clone.j-clone_line:before {
    font-size: 20px;
    top: -10px;
    position: relative;
}
.b-table_btns a.table_btn_clone.j-clone_line {
    color: #3498db;
}
.b-table_btns a.table_btn_clone.j-clone_line:hover {
    color: #000;
}
.b-invoice_form table.b-new_invoice_total #new_order_tax_percent {
    width: 60px;
    display: inline-block;
}
.b-invoice_form table.b-new_invoice_total .unit_sales .l-no_label {
    width: 90px;
}
.block.block_with_new_invoice .panel table.b-new_invoice.b-new_invoice_total tbody tr td:first-child{
    width: 130px;
    text-align: right;
    vertical-align: middle;
}
.block.block_with_new_invoice .panel table.b-new_invoice.b-new_invoice_total tbody tr td:nth-child(2){
    width: 120px;
    vertical-align: middle;
    text-align: right;
    padding: 5px;
}
.block.block_with_new_invoice .panel table.b-new_invoice.b-new_invoice_total tbody tr td:nth-child(2) span{
    margin-right: 15px;
}
.block.block_with_new_invoice .panel table.b-new_invoice.b-new_invoice_total tbody tr td:nth-child(2) input{
    display: inline-block;
    width: 75px;
}
.block.block_with_new_invoice .panel table.b-new_invoice.b-new_invoice_total tbody tr td:last-child {
    width: 80px;
}
.block.block_with_new_invoice .panel table.b-new_invoice.b-new_invoice_total tbody tr .curr_sign {
    margin-top: 0;
    margin-right: 5px;
    margin-left: 5px;
}
.block.block_with_new_invoice .panel table.b-new_invoice.b-new_invoice_total tbody tr .curr_sign.discount_type {
    margin-top: 0;
    margin-right: 5px;
    margin-left: 0;
}
.block.block_with_new_invoice .panel table.b-new_invoice.b-new_invoice_total tbody tr:nth-child(2) .curr_sign,
.block.block_with_new_invoice .panel table.b-new_invoice.b-new_invoice_total tbody tr:nth-child(3) .curr_sign {
    margin-top: 5px;
    float: left;
    margin-right: 5px;
}
.block.block_with_new_invoice .panel table.b-new_invoice.b-new_invoice_total tbody tr:nth-child(2) .curr_sign.discount_type,
.block.block_with_new_invoice .panel table.b-new_invoice.b-new_invoice_total tbody tr:nth-child(3) .curr_sign.discount_type {
    margin-top: 0;
    float: left;
    margin-right: 5px;
}
.block.block_with_new_invoice .panel table.b-new_invoice.b-new_invoice_total tbody tr:nth-child(odd) {
    background: #f0f0f0;
}
/*
 * <--------------------------- END INVOISE FORM --------------------------->
 */
 
/*
 * layouts
 */
.l-left {
float: left;
}
.l-right {
float: right;
}
.l-button {
background: #0190c2;
color: #fff;
text-transform: uppercase;
font-size: 14px;
border: none;
text-decoration: none;
display: inline-block;
margin: 0px;
padding: 7px 20px;
line-height: 18px;
zoom:1;
*display: inline;
}
.l-button:hover {
background: #767676;
}
.l-page_title {
font-size: 48px;
line-height: 52px;
margin: 0 0 25px;
padding: 0 0 20px;
border-bottom: 1px solid #767676;
font-family: BruskovayaCTTNarrow;
}
a.l-page_title {
display: block;
text-decoration: none;
}
a.l-page_title:hover {
color: #00A1D9;
}
.l-inline_block {
vertical-align: top;
display: inline-block;
zoom:1;
*display: inline;
}
.l-align_center {
text-align: center;
}
.l-align_left {
text-align: left;
}
.l-align_right {
text-align: right;
}
.l-no_label label{
display: none;
}

/*NAMES*/
.b-names input{
    text-align: left;
}


/*CANVAS*/
#bacground-canvas-img, #uploaded-img {
    display: none;
}

.popover_links{
    margin-top: -9px;
}
.popover_links a{
    font-size: 14px;
    line-height: 25px;
}

/*work order*/
.b-file_manager_item.for_work_order.d-file_manager_item {
    width: 25%;
    padding: 10px;
}
.d-file_manager_items.b-file_manager_items.ui-sortable {
    width:100%;
}
.b-file_manager_item.for_work_order.d-file_manager_item section.b-file_manager_file,
.b-file_manager_item.for_work_order.d-file_manager_item section.b-file_manager_file a{
    width: 100%;
    height: 300px;
}
.b-file_manager_item.for_work_order.d-file_manager_item section.b-file_manager_file a img{
    max-width:100%;
}