﻿@import url(https://fonts.googleapis.com/css?family=EB+Garamond);
/*#region general */

body {
    /*line-height: 200%;
    font-family: Tahoma;*/
}

td {
    padding: 5px;
    vertical-align: top;
}

input[type=text],
textarea {
    width: 100%;
    min-width: 300px;
}

    input[type=text].form-control {
        width: 0px !important;
        display: inline-block !important;
    }

select.form-control {
    max-width: 350px;
    min-width: 60px;
    display: inline-block;
}

a:hover, a:focus {
    text-decoration: none;
}

.body-noscroll {
    overflow: hidden;
    position: fixed;
}

table a:not(.btn) {
    text-decoration: none;
}

input[type=checkbox] {
    min-width: 20px;
    min-height: 20px;
    vertical-align: middle;
    margin: 0px 5px;
}

#PageAlert {
    position: fixed;
    width: calc(100% - 310px);
    z-index: 1000;
    display: none;
    top: 60px;
}

.mark, mark {
    background-color: #F0AD4E;
}

/*#endregion */

/*#region login */

.login-side-container {
    background: #f8f8f8;
    height: 100vh;
    border-right: 2px solid #8080808f;
}

.LoginContentHolder {
    background-image: url('https://picsum.photos/1024/768?grayscale');
    background-repeat: no-repeat;
    background-size: cover;
    height: 100vh;
}

.login-side-content {
    display: flex;
    justify-content: center;
    height: 100%;
    align-items: center;
    flex-direction: column;
}

.login-button-holder,
.login-logo-holder {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

/*#endregion */
/*#region admin */
.MasterTopLine {
    padding-bottom: 4px;
    background: #E51C23;
    color: #fff;
}

.LoginContentHolder {
    text-align: center;
}

    .LoginContentHolder input[type=text].form-control,
    .LoginContentHolder input[type=password].form-control {
        width: 100% !important;
        max-width: 300px !important;
        display: inline-block;
    }

.LoginBoxHolder {
    margin-top: 10px;
    margin-bottom: 10px;
    font-weight: bold;
}

.LoginButton {
    /*margin:20px;*/
}

.TopLineLogo {
    float: left;
    max-height: 45px;
    margin-right: 10px;
    margin-left: 10px;
    filter: brightness(100);
    -webkit-filter: brightness(100);
}

.MasterPagesFrame {
    /*float: right;
    margin-right: 15px;
    width: calc(100% - 200px);*/
    padding-top: 15px !important;
    padding-bottom: 15px !important;
    float: left;
    width: calc(100% - 250px);
}

.TableTitle {
    /*text-align: center;*/
    padding-bottom: 9px;
    margin: 0px;
    border-bottom: 1px solid #eee;
    padding-top: 0px;
    font-size: 28px;
    margin-bottom: 9px;
}

.TableSubTitle {
    color: #999999;
    font-size: 12px;
    padding: 0;
    margin: 0;
}

.MasterSideMenu {
    /*width: 240px;*/
    /*width: 170px;*/
    /*margin-right: 10px;*/
    position: fixed;
    overflow-y: auto;
    /*padding: 5px;*/
    max-height: calc(100% - 100px);
    z-index: 100;
    background: #F8F8F8;
}

.admin-master-container {
    /*margin-top: 80px;*/
    margin-top: 55px;
    padding: 0;
}

.admin-master-menu-settings input {
    min-width: initial;
}

.MenuChildClass {
}

.MenuIcon {
    font-size: 20px;
    vertical-align: middle;
    margin-right: 10px;
}

.admin-master-menu-children-holder {
    max-height: 0px;
    overflow: hidden;
    -moz-transition: all 500ms;
    -o-transition: all 500ms;
    -webkit-transition: all 500ms;
    transition: all 500ms;
    width: 100%;
}

.open .admin-master-menu-children-holder {
    max-height: 5000px;
    margin: 5px 0px;
}

.admin-mobile-menu-btn {
    display: none !important;
    position: relative;
    z-index: 1000;
}

/*#endregion */

/*#region iframe master */

.iframe-body {
    padding: 20px;
    padding-top: 80px;
}

/*#endregion */

/*#region form style */

/*#region general */

.form-popup-close {
    position: absolute;
    top: 2px;
    right: 20px;
    color: #000;
    font-size: 40px;
    padding: 5px 20px;
}

    .form-popup-close:hover,
    .form-popup-close:active {
        color: #000;
    }

.FormButtonsHolder {
    float: left;
    /*width: 100%;*/
    padding: 5px;
    position: fixed;
    top: 0px;
    /* border-bottom: 1px dashed gray; */
    background-color: #fff;
    z-index: 50;
    border-radius: 2px;
    box-shadow: 0px 1px 2px 1px rgba(0, 0, 0, 0.5);
}

.DeleteImg {
    float: right;
    width: 24px;
    height: 24px;
    position: absolute;
    z-index: 10;
    top: 5px;
    right: 5px;
    cursor: pointer;
}

.img-holder {
    border: 1px solid #D3D3D3;
}

    .img-holder img {
        position: relative !important;
    }

.FormComment {
    font-size: 12px;
    color: gray;
}

.second-form {
    padding-top: 0px !important;
}

.modal-iframe-form {
    width: 100%;
    height: 440px;
    border: none;
}

.form-file-delete {
    color: red;
    cursor: pointer;
    font-size: 24px;
    font-weight: bold;
    margin: 11px;
    vertical-align: middle;
}

.download-pdf-btn {
    float: right;
}

    .download-pdf-btn span {
        font-family: Arial;
    }

.fv-hidden-td {
    padding: 0px !important;
}

.floatNone {
    float: none !important;
}

.floatRight {
    float: right !important;
}

.floatLeft {
    float: left !important;
}

/*#endregion */

/*#region admin allowed */

.AdminAllowedCheckBox {
    display: block;
}

    .AdminAllowedCheckBox:after {
        content: ' ';
        display: block;
        clear: both;
    }

    .AdminAllowedCheckBox.ChildCheckBox {
        margin-left: 30px;
    }

/*#endregion */

/*#region admin order */

.ClientSearchTBoxHolder {
    position: relative;
    display: inline-block;
}

    .ClientSearchTBoxHolder > input {
        width: 350px;
    }

.ClientSearchTBoxResults {
    position: absolute;
    left: 0;
    top: 100%;
    width: calc(200% - 2px);
    overflow: hidden;
    max-height: 0px;
    -moz-transition: all 300ms;
    -o-transition: all 300ms;
    -webkit-transition: all 300ms;
    transition: all 300ms;
    background-color: #fff;
}

    .ClientSearchTBoxResults img {
        max-width: 50px;
    }

    .ClientSearchTBoxResults.open {
        max-height: 1000px;
        border: 1px solid #ECECEC;
        box-shadow: 0px 0px 1px #000;
    }

    .ClientSearchTBoxResults.loading:before {
        content: ' ';
        display: inline-block;
        width: 100%;
        height: 60px;
        background: #fff url('../images/GeneralImages/loader.gif') center center no-repeat;
    }

    .ClientSearchTBoxResults table {
        width: 100%;
        border-spacing: 1px;
        border-collapse: separate;
        margin-bottom: 0px;
    }

        .ClientSearchTBoxResults table tr:nth-child(odd) {
            background: #f9f9f9;
        }

        .ClientSearchTBoxResults table tr:hover td {
            cursor: pointer;
            background: #f5f5f5;
        }

        .ClientSearchTBoxResults table td {
            padding: 5px;
        }

.AddArticlesBtn {
    display: inline-block;
    cursor: pointer;
}

.article-popup-body {
    /*height: 510px;*/
    overflow: scroll;
    overflow-x: hidden;
}
.article-fast-creation-btn {
    outline: none !important;
}
.article-fast-creation-btn.active {
    box-shadow: 0 2px 3px 0px rgba(0, 0, 0, 0.7) inset;
}

.article-fast-creation {
    position: absolute;
    background: rgb(236, 236, 236);
    width: 100%;
    top: 0;
    left: 0;
    padding: 0 10px;
    max-height: 0px;
    box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.7);
    transition: all 500ms;
    overflow: hidden;
}

    .article-fast-creation.open {
        max-height: 2000px;
        overflow: auto;
        padding: 10px;
        z-index: 2000;
    }

    .article-fast-creation iframe, .articles-table iframe {
        width: 100%;
        height: 540px;
        border: none;
        background-color: transparent;
    }

.article-fast-creation-iframe .FormButtonsHolder {
    position: relative;
    box-shadow: none;
    background: transparent;
    float: none;
}

.article-fast-creation-iframe .back-button,
.article-fast-creation-iframe .reset-button {
    display: none;
}

.article-holder {
    cursor: pointer;
    margin: 2px;
    float: left;
    width: calc(33% - 4px);
    min-height: 170px;
    text-align: center;
}

    .article-holder.selected {
        -moz-animation: select-flash 500ms linear;
        -o-animation: select-flash 500ms linear;
        -webkit-animation: select-flash 500ms linear;
        animation: select-flash 500ms linear;
    }

    .article-holder:hover {
        background: #f5f5f5;
    }

    .article-holder:before {
        content: attr(data-count);
        display: block;
        width: 30px;
        line-height: 30px;
        position: absolute;
        background: rgb(92, 184, 92);
        border-radius: 100%;
        color: #fff;
    }

.article-img {
    max-width: 100%;
    max-height: 100px;
}

.article-desc,
.article-number {
    display: block;
    clear: both;
}

.article-search-input {
    width: calc(100% - 40px);
}

.article-selected-table {
    /*font-size: 0.9vw;*/
}

    .article-selected-table .form-control {
        /*font-size: 0.9vw;*/
    }

    .article-selected-table td {
        vertical-align: middle !important;
    }

        .article-selected-table td.close {
            color: red;
        }

        .article-selected-table td > input[type="number"] {
            min-width: 80px;
        }

        .article-selected-table td > input[type="text"] {
            width: auto !important;
            min-width: initial;
            max-width: 100px;
        }

        .article-selected-table td > input[data-datepicker="true"] {
            min-width: 100px;
        }

    .article-selected-table img {
        max-width: 100px;
        max-height: 20px;
    }

.tt-menu {
    background: #fff;
    box-shadow: 0px 1px 2px rgba(0,0,0,0.5);
    padding: 2px;
    font-size: 12px;
}

.tt-input {
    min-width: 160px;
}

.edit-order-sticker {
    cursor: pointer;
    font-size: 20px !important;
}

.form-date-label {
    font-size: 11px;
    color: #158CBA;
    position: absolute;
    transform: translateY(-3px);
}

.edit-order-remove {
    float: none;
}

td[data-colname=Name] {
    min-width: 170px;
}

.ui-datepicker {
    z-index: 10000 !important;
}

.article-TemperatureDegrees-col {
    color: white;
    background: #ff4136;
    text-align: right;
}

    .article-TemperatureDegrees-col:after {
        content: '\2103';
        margin-left: 2px;
    }

.advance-search-margin {
    margin-bottom: 10px;
}

/*#endregion */

/*#region admin article */

.ArticleEditIframe {
    width: 680px;
    height: 250px;
    border: none;
    -moz-transition: all 300ms;
    -o-transition: all 300ms;
    -webkit-transition: all 300ms;
    transition: all 300ms;
}

.iframeHolder {
    /*float: left;*/
    display: block;
    clear: both;
    margin-top: 10px;
    position: relative;
    overflow: hidden;
}

    .iframeHolder:not(.open):before {
        content: ' ';
        position: absolute;
        top: 0;
        left: 0;
        display: inline-block;
        z-index: 1000;
        width: 100%;
        height: 100%;
        background: #fff url('../images/GeneralImages/loader.gif') center center no-repeat;
        -moz-transition: all 600ms;
        -o-transition: all 600ms;
        -webkit-transition: all 600ms;
        transition: all 600ms;
    }

/*.iframeHolder.open {
        max-height: 2000px;
    }*/

.blockDD {
    display: block;
    float: left;
    margin-right: 5px;
}

.FormTextAfterLoader {
    vertical-align: middle;
    display: none;
}

/*#endregion */

/*#endregion */

/*#region gridview style */

.admin-gridview-table > thead > tr > th, .admin-gridview-table > tbody > tr > th,
.admin-gridview-table > tfoot > tr > th, .admin-gridview-table > thead > tr > td,
.admin-gridview-table > tbody > tr > td, .admin-gridview-table > tfoot > tr > td {
    vertical-align: middle;
    border: inherit;
}

/*.admin-gridview-table > tfoot > tr > th, .admin-gridview-table > thead > tr > td,
.admin-gridview-table > tbody > tr > td, .admin-gridview-table > tfoot > tr > td {
    border:inherit;
}

.admin-gridview-table > thead > tr > th, .admin-gridview-table > tbody > tr > th {
    border-top:inherit;
    border-right:inherit;
    border-left:inherit;
}*/

.admin-gridview-table > tbody > tr > th,
.admin-gridview-table > thead > tr > th {
    vertical-align: bottom;
    background: #fff;
    border: 1px solid transparent;
    border-bottom: 3px solid #dddddd;
}

.admin-gridview-table > tbody > tr:hover > th {
    background: #fff;
}

tr.clicked {
    background-color: #f5f5f5;
}

.admin-gridview-table,
.admin-gridview-footer {
    width: 100% !important;
    margin-bottom: 0px;
    border: inherit;
}

    .admin-gridview-table img {
        max-height: 40px;
    }

.admin-gridview-footer {
    border: none !important;
    clear: both;
}

.admin-gridview-btn-insert,
.admin-gridview-btn-refresh {
    float: right;
    font-size: 20px;
    margin-top: 10px;
    margin-bottom: 10px;
}

.admin-gridview-btn-insert {
    float: left;
}

.admin-gridview-btn-edit,
.admin-gridview-btn-delete {
    display: inline-block;
    font-size: 20px;
}

.admin-gridview-btn-delete {
    color: #e51c23;
}

    .admin-gridview-btn-delete:hover,
    .admin-gridview-btn-delete:active {
        color: #cb171e;
    }

.admin-gridview-btn-edit {
    color: #4caf50;
}

    .admin-gridview-btn-edit:hover,
    .admin-gridview-btn-edit:active {
        color: #439a46;
    }

.table.dataTable thead .sorting,
.table.dataTable thead .sorting_desc,
.table.dataTable thead .sorting_asc {
    background: none !important;
}

/*#region order */

.create-new-po:before,
.create-new-invoice:before,
.create-new-pl:before {
    display: inline-block;
    font-family: FontAwesome;
    font-size: 1em;
}

.create-new-po:before {
    content: '\f07a';
}

.create-new-invoice:before {
    content: '\f15c';
}

.create-new-pl:before {
    content: '\f21a';
}

/*#endregion */

/*#region addGBRows */

.row-editable,
.cell-relative {
    position:relative;
}

.row-edit-holder {
    position: absolute;
    top:50%;
    right: 0;
    bottom: 0;
    width: 50px;
    height: 30px;
    /*border: 1px solid green;*/
    display: none;
    border-radius:0% 100% 100% 0%;    
    -moz-transform: translate(100%, -50%);
    -ms-transform: translate(100%, -50%);
    -o-transform: translate(100%, -50%);
    -webkit-transform: translate(100%, -50%);
    transform: translate(100%, -50%);
    cursor:pointer;
}

.row-editable:hover .row-edit-holder {
    display: block;
}

.row-edit-add,
.row-edit-remove {
    font-family:FontAwesome;
    font-size: 20px;
    display: inline-block;
    margin: 2px;
}

.row-edit-remove {
    display:none;
}

.row-newline .row-edit-remove {
    display:inline-block;
}

.row-edit-add:before {
    content:'\f055';
    display:block;
    color:#5cb85c;
}

.row-edit-remove:before {
    content:'\f056';
    display:block;
    color:#d9534f;
}

input.row-editable-input {
    width:100%;
}

select.row-amout-dd {
    max-width: 60px;    
}

.input-ajax-saved {
    -moz-animation: select-flash 500ms linear;
    -o-animation: select-flash 500ms linear;
    -webkit-animation: select-flash 500ms linear;
    animation: select-flash 500ms linear;    
}

/*#endregion */

/*#endregion */

/*#region Order */

.Order_col_7, .Order_col_8, .Order_col_9 {
    white-space: nowrap;
}

.order-details-extra-article-info {
    font-size: 10px;
    color: red;
}

    .order-details-extra-article-info .title {
        font-weight: bold;
    }

    .order-details-extra-article-info .title:after {
        content: ": ";
        display: inline;
    }

/*#endregion */

/*#region PO */
.PO-main-table {
    max-width: 100%;
    margin: auto;
    font-family: 'EB Garamond', Tahoma;
    color: #000;
}

.PO-header {
    text-align: center;
}

.PO-title {
    text-align: left;
    font-size: 40px;
    font-weight: bold;
}

.PO-top-logo-holder {
    width: 100%;
    text-align: center;
}

    .PO-top-logo-holder img {
        max-height: 150px;
    }

.supplierID.tt-input {
    min-width: 300px;
}

.tt-dataset-supplierID .tt-suggestion {
    white-space: nowrap;
    cursor: pointer;
    line-height: 30px;
}

table.group_table_POleft {
    float: left;
    clear: left;
    width: 45%;
}

table.group_table_POright {
    float: right;
    clear: right;
    width: 45%;
}

    table.group_table_POleft td:nth-child(2),
    table.group_table_POright td:nth-child(2) {
        float: right;
    }

.PO-page-holder {
    margin: auto;
    width: 100%;
    max-width: 1000px;
}

/*#endregion */

/*#region Invoice */

.col-total-input.form-control {
    max-width: 100px;
    display: inline-block;
}

.col-transporttext.form-control,
.col-shippingtermstext.form-control {
    max-width: 250px;
    display: inline-block;
}

.col-commissionpercentage.form-control {
    max-width: 100px;
    display: inline-block;
}

.invoice-form-tbl select {
    width: 300px;
}

.group_table_Invbottom {
    clear: both;
    width: 100%;
}

    .group_table_Invbottom div.cke {
        width: auto !important;
    }

.total-invoice-price {
    font-size: 11px;
    width: 100%;
}

/*#endregion */
/*#region PL */
.PLmaincontent {
    padding-top: 30px;
    width: 100%;
    clear: both;
    display: block;
}

.PLUpdateTablesBtn {
    display: none;
}

.packinglistFormClientDetails {
    float: right;
    margin-top: -120px;
}

.group_table_PLBottom {
    clear: both;
    width: 100%;
}

.PLDeclareCK div {
    width: 100% !important;
}

.PLDeclareCKTitle {
    width: 140px;
}

/*#endregion */

/*#region responsive */

@media (min-width: 768px) {
    .modal-dialog {
        width: 1024px;
    }
}

@media (max-width: 768px) {
    .admin-mobile-menu-btn {
        display: inline-block !important;
    }

    .MasterSideMenu {
        position: absolute;
        -moz-transform: translateX(-120%);
        -ms-transform: translateX(-120%);
        -o-transform: translateX(-120%);
        -webkit-transform: translateX(-120%);
        transform: translateX(-120%);
        z-index: 1000;
        height: 100%;
        background-color: #fff;
        margin-top: 5px;
        -moz-transition: all 300ms;
        -o-transition: all 300ms;
        -webkit-transition: all 300ms;
        transition: all 300ms;
    }

        .MasterSideMenu.show {
            -moz-transform: translateX(0%);
            -ms-transform: translateX(0%);
            -o-transform: translateX(0%);
            -webkit-transform: translateX(0%);
            transform: translateX(0%);
        }

    .MasterPagesFrame {
        width: 100%;
        margin: 0px !important;
    }

    table.group_table_POright {
        float: left;
    }
}

@media only print {
    .MasterSideMenu, .FormButtonsHolder, .admin-mobile-menu-btn {
        display: none !important;
    }

    .form-control {
        max-width: 200px !important;
        min-width: 200px !important;
        border: none;
        background: none;
        box-shadow: none;
    }
}

/*#endregion */

/*#region animations */

@keyframes select-flash {
    0% {
        background-color: #fff;
    }

    50% {
        background-color: rgba(92,184,92,0.20);
    }

    100% {
        background-color: #fff;
    }
}

@-moz-keyframes select-flash {
    0% {
        background-color: #fff;
    }

    50% {
        background-color: rgba(92,184,92,0.20);
    }

    100% {
        background-color: #fff;
    }
}

@-webkit-keyframes select-flash {
    0% {
        background-color: #fff;
    }

    50% {
        background-color: rgba(92,184,92,0.20);
    }

    100% {
        background-color: #fff;
    }
}

/*#endregion */