/* Global */

.hide {
    display: none !important;
}

.btn-link {
    border: 0;
    padding: 0;
    font-weight: normal;
    text-decoration: underline;
}

.table td .row-actions input[type=submit] {
    margin-right:6px;
    text-indent: -9000px;
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    width:16px;
    height:16px;
    display: inline-block;
    border:0;
}

.table td .row-actions input[type=submit]:hover{
    opacity: .7;
}

/* Fix sidebar */

.sidebar #leftside-navigation ul li.active:not(.parent) a {
    background: #CAD2C5;
}

/* procurements details page files and picture section */

.uploaded-photos .uploaded-photo {
    flex: none;
}

.uploaded-photo .btn {
    font-size: 14px;
    padding: 8px 10px;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    opacity: 0;
}

.uploaded-videos {
    display: flex;
    flex-wrap: wrap;
}

.uploaded-videos .uploaded-photo {
    width: 100%;
    max-width: 30%;
    margin-right: 10px;
    list-style-type: none;
}

.uploaded-videos .uploaded-photo video {
    width: 100%;
}

.uploaded-photo img {
    cursor: zoom-in;
}

.uploaded-videos .uploaded-photo a,
.uploaded-photos .uploaded-photo a {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.uploaded-photo:hover .btn {
    opacity: 1;
}

.uploaded-photo-comment {
    cursor: pointer;
    padding: 8px 10px;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    opacity: 0;
    text-align: left;
    background: rgba(0, 0, 0, .7);
    color: #fff;
    font-size: 12px;
    line-height: 16px;
    -moz-transition: all 0.1s ease-in-out;
    -o-transition: all 0.1s ease-in-out;
    -webkit-transition: all 0.1s ease-in-out;
    -ms-transition: all 0.1s ease-in-out;
    transition: all 0.1s ease-in-out;
}

.uploaded-photo.hascomment:hover .uploaded-photo-comment {
    opacity: 1;
}

.files-list .trigger-comment-modal {
    cursor: pointer;
}

.image-box .file-icon {
    width: 120px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.has-advanced-upload {
    padding: 50px 125px 50px 86px;
    background-image: url('../img/icon-photos-desktop.svg'), url('../img/icon-photos-upload.svg');
    background-color: white;
    background-repeat: no-repeat;
    background-size: 42px auto, 69px auto;
    background-position: 24px center, calc(100% - 24px) center;
    border: 1px dashed #aaa;
    border-radius: 6px;
    text-align: left;
    -webkit-transition: background-color .15s linear;
    transition: background-color .15s linear;
    cursor: pointer;
}

.has-advanced-upload:hover {
    color: #007aff;
}

.has-advanced-upload:hover label {
    color: #007aff;
}

.video-in-process {
    padding: 50px 125px 50px 86px;
    background: #fff url(../img/icon-photos-desktop.svg) no-repeat 24px;
    border: 1px dashed #aaa;
    border-radius: 6px;
    text-align: left;
    -webkit-transition: background-color .15s linear;
    transition: background-color .15s linear;
}

.fade.in {
    opacity: 1;
}

.progress-bar {
    background-color: #1f8600;
}

.progress-extended {
    display: none;
}

.desktop-view .btn {
    display: none;
    margin: 40px 0 !important;
}

.files audio,
.files video {
    max-width: 120px;
}

.files td {
    padding: 10px;
    position: relative;
}

/* Discussion */

.vestlus .small {
    margin-left: 0;
}

.hange-question-answer img:not(.smaller) {
    width: 100%;
}

.hange-question-answer.text-right .uploaded-photos {
    flex-flow: row-reverse;
}

.hange-question-answer.text-right .uploaded-photos .uploaded-photo {
    margin: 10px 0 10px 10px;
}

/* Settings */

.nowrap {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

/* Customer view */

.inputfile {
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    z-index: -1;
}

.inputfile + label {
    font-size: 14px;
    font-weight: 400;
}

.modal-wrap.active {
    z-index: 999;
}

/* Loader */

.loader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    opacity: 0;
    background: rgba(0, 0, 0, 1);
    overflow: auto;
    transition: .2s;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.loader.active {
    opacity: 1;
    z-index: 9999;
    background: rgba(0, 0, 0, .7);
    transition: opacity .4s;
}

/* Messages and letters */

.email-body table {
    width: 100%;
}

.table .thead th {
    border: 0;
    background: #f3f2ed;
}

tr.highlightRow {
    font-weight: bold;
    background: #f3f2ed;
}

.add-field-to-chart {
    vertical-align: super;
    font-size: smaller;
}

@media only screen and (max-width: 640px) {
    .desktop-view .has-advanced-upload p,
    .desktop-view .box__dragndrop {
        display: none;
    }

    .desktop-view .btn {
        display: block;
    }

    .desktop-view .has-advanced-upload {
        border: 0;
        padding: 0;
        background: none;
    }

    .desktop-view .box__file + label {
        border: 0;
        width: 100%;
        max-width: 100%;
    }
}

.form-btn {
    border: 0;
    padding: 0;
    color: #007AFF;
    background: none;
    line-height: 20px;
    border-bottom: 1px solid #ccc;
}

.form-btn:hover {
    color: #3C5168;
}

.a-btn {
    padding: 8px 15px 8px;
}

/* Blog Page */
.slug-prepend {
    background: no-repeat;
    border: 0;
    padding-right: 0;
}

.avg-price-block:not(.active) {
    display: none;
}

.note-editor .note-toolbar .btn {
    color: #444444;
}

.link-dialog.show .modal-dialog {
    box-shadow: none;
    max-width: inherit;
}

.page-header-right .btn-link {
    border: 0;
    background: none;
}

.focus .white_box {
    background: rgba(40, 167, 69, 0.3);
}

.note-editor .note-toolbar,
.blog-form textarea {
    background: white;
}

.note-editor .note-toolbar .btn {
    border: 0;
}

.note-editable ul {
    margin: inherit;
    padding: revert;
}

.blog-table tr th {
    position: relative;
}

.blog-table tr th a {
    color: #212529;
}

.blog-table tr th:not(.no-sort)::before,
.blog-table tr th:not(.no-sort)::after {
    position: absolute;
    bottom: 0.9em;
    display: block;
    opacity: 0.3;
}

.blog-table tr th:not(.no-sort)::after {
    content: "\2193";
    right: 0.5em;

}

.blog-table tr th:not(.no-sort)::before {
    right: 1em;
    content: "\2191";
}

.blog-table tr th.sorting_asc::before,
.blog-table tr th.sorting_desc::after {
    opacity: 1;
}

.hidden-vestlus-info {
    display: none;
}

tr.chat-started > td:nth-child(-n+6),
tr.agreement > td:nth-child(-n+8) {
    --bs-table-bg: #d1e7dd;
    --bs-table-striped-bg: #c7dbd2;
    --bs-table-striped-color: #000;
    --bs-table-active-bg: #bcd0c7;
    --bs-table-active-color: #000;
    --bs-table-hover-bg: #c1d6cc;
    --bs-table-hover-color: #000;
    color: #000;
    border-color: #bcd0c7;
}

tr.chat-open > td:nth-child(-n+7) {
    --bs-table-bg: #fff3cd;
    --bs-table-striped-bg: #f2e7c3;
    --bs-table-striped-color: #000;
    --bs-table-active-bg: #e6dbb9;
    --bs-table-active-color: #000;
    --bs-table-hover-bg: #ece1be;
    --bs-table-hover-color: #000;
    color: #000;
    border-color: #e6dbb9;
}

tr.no-agreement > td:nth-child(-n+8) {
    --bs-table-bg: #f8d7da;
    --bs-table-striped-bg: #eccccf;
    --bs-table-striped-color: #000;
    --bs-table-active-bg: #dfc2c4;
    --bs-table-active-color: #000;
    --bs-table-hover-bg: #e5c7ca;
    --bs-table-hover-color: #000;
    color: #000;
    border-color: #dfc2c4;
}

.partners-logo-page-content .upload {
    margin-bottom: 20px;
}

.partners-logo-page-content table,
.partners-logo-page-content .upload {
    max-width: 800px;
}

.partners-logo-page-content table th:first-child, 
.partners-logo-page-content table td:first-child,
.partners-logo-page-content table th:last-child, 
.partners-logo-page-content table td:last-child {
    width: 100px;
}