@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,600;0,700;0,800;1,300;1,400;1,600;1,700;1,800&display=swap');

/**

bootstrap migration v4.6 > v5.1

better to avoid this classes, use new from bootstrap.css

**/

a{color:#007bff;text-decoration:none;background-color:transparent}a:hover{color:#0056b3;text-decoration:underline}
a:not([href]){color:inherit;text-decoration:none}a:not([href]):hover{color:inherit;text-decoration:none}
.nav-link:focus, .nav-link:hover, .btn:hover {text-decoration: none;}

.form-group {margin-bottom: 1rem;}

.float-left {   /** .float-start */
    float: left !important;
}

.float-right {  /** .float-end */
    float: right !important;
}

/** ml > ms */
.mt-0,.my-0{margin-top:0!important}.mr-0,.mx-0{margin-right:0!important}.mb-0,.my-0{margin-bottom:0!important}.ml-0,.mx-0{margin-left:0!important}.m-1{margin:.25rem!important}.mt-1,.my-1{margin-top:.25rem!important}.mr-1,.mx-1{margin-right:.25rem!important}.mb-1,.my-1{margin-bottom:.25rem!important}.ml-1,.mx-1{margin-left:.25rem!important}.m-2{margin:.5rem!important}.mt-2,.my-2{margin-top:.5rem!important}.mr-2,.mx-2{margin-right:.5rem!important}.mb-2,.my-2{margin-bottom:.5rem!important}.ml-2,.mx-2{margin-left:.5rem!important}.m-3{margin:1rem!important}.mt-3,.my-3{margin-top:1rem!important}.mr-3,.mx-3{margin-right:1rem!important}.mb-3,.my-3{margin-bottom:1rem!important}.ml-3,.mx-3{margin-left:1rem!important}.m-4{margin:1.5rem!important}.mt-4,.my-4{margin-top:1.5rem!important}.mr-4,.mx-4{margin-right:1.5rem!important}.mb-4,.my-4{margin-bottom:1.5rem!important}.ml-4,.mx-4{margin-left:1.5rem!important}.m-5{margin:3rem!important}.mt-5,.my-5{margin-top:3rem!important}.mr-5,.mx-5{margin-right:3rem!important}.mb-5,.my-5{margin-bottom:3rem!important}.ml-5,.mx-5{margin-left:3rem!important}
/** pl > ps */
.pl-0,.px-0{padding-left:0!important}.pt-1,.py-1{padding-top:.25rem!important}.pr-1,.px-1{padding-right:.25rem!important}.pb-1,.py-1{padding-bottom:.25rem!important}.pl-1,.px-1{padding-left:.25rem!important}.p-2{padding:.5rem!important}.pt-2,.py-2{padding-top:.5rem!important}.pr-2,.px-2{padding-right:.5rem!important}.pb-2,.py-2{padding-bottom:.5rem!important}.pl-2,.px-2{padding-left:.5rem!important}.p-3{padding:1rem!important}.pt-3,.py-3{padding-top:1rem!important}.pr-3,.px-3{padding-right:1rem!important}.pb-3,.py-3{padding-bottom:1rem!important}.pl-3,.px-3{padding-left:1rem!important}.p-4{padding:1.5rem!important}.pt-4,.py-4{padding-top:1.5rem!important}.pr-4,.px-4{padding-right:1.5rem!important}.pb-4,.py-4{padding-bottom:1.5rem!important}.pl-4,.px-4{padding-left:1.5rem!important}.p-5{padding:3rem!important}.pt-5,.py-5{padding-top:3rem!important}.pr-5,.px-5{padding-right:3rem!important}.pb-5,.py-5{padding-bottom:3rem!important}.pl-5,.px-5{padding-left:3rem!important}

.font-weight-bold { /** .fw-bold */
    font-weight: 700 !important;
}

.text-right { /* .text-end */
    text-align: right !important;
}

.text-left { /* .text-start */
    text-align: left !important;
}

.custom-select { /** .form-select */
    width: 100%;
}
select.custom-select {
    appearance: none;
    background: #fff url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='4' height='5' viewBox='0 0 4 5'%3e%3cpath fill='%23343a40' d='M2 0L0 2h4zm0 5L0 3h4z'/%3e%3c/svg%3e") no-repeat right .75rem center/8px 10px;
    padding: .375rem 1.75rem .375rem .75rem;
}

/** strange bug with calendar day cell height on new version*/
.form-control-old{display:block;width:100%;height:calc(1.5em + .75rem + 2px);padding:.375rem .75rem;font-size:1rem;font-weight:400;line-height:1.5;color:#495057;background-color:#fff;background-clip:padding-box;border:1px solid #ced4da;border-radius:.25rem;transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out}

hr { /** height 1px yra per stora linija, geriau kaip ir buvo su borderiu*/
    border-top: 1px solid rgba(0, 0, 0, .1);
    height: 0 !important;
}

.table {--bs-table-hover-bg: #F7F7F7 !important;}
.table > :not(:first-child) {border-top: 0px;}
.table > :first-child {
    border-top: 1px solid  rgba(0, 0, 0, .1);
    border-bottom: 1px solid  rgba(0, 0, 0, .1);
}

.table.no-top-border > :first-child {border-top: 0;}

.order-6 {order: 6 !important;}
.order-7 {order: 7 !important;}

.container,
.container-fluid,
.container-xxl,
.container-xl,
.container-lg,
.container-md,
.container-sm {
    padding-right: 15px;
    padding-left: 15px;
}

.row {margin-right: -15px;margin-left: -15px;}
.row > * {padding-right: 15px;padding-left: 15px;}

.close {font-size: 1.5rem;font-weight: 700;line-height: 1;color: #000;text-shadow: 0 1px 0 #fff;}
button.close{padding:0;background-color:transparent;border:0}

.input-group-text{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;padding:.375rem .75rem;margin-bottom:0;font-size:1rem;font-weight:400;line-height:1.5;color:#495057;text-align:center;white-space:nowrap;background-color:#e9ecef;border:1px solid #ced4da;border-radius:.25rem}
.input-group-text input[type=checkbox],.input-group-text input[type=radio]{margin-top:0}
.input-group-sm>.custom-select,.input-group-sm>.form-control:not(textarea){height:calc(1.5em + .5rem + 2px)}
.input-group-sm>.custom-select,.input-group-sm>.form-control,.input-group-sm>.input-group-append>.btn,.input-group-sm>.input-group-append>.input-group-text{padding:.25rem .5rem;font-size:.875rem;line-height:1.5;border-radius:.2rem}

a.badge {color: var(--blue-link);}
a.badge:hover {text-decoration:none;}

.badge-light {
    color: #212529;
    background-color: #f8f9fa;
}

.btn-info {
    color: #fff;
    background-color: #17a2b8;
    border-color: #17a2b8;
}

:root { /* trukstami variablai*/
    --green: #28a745;
    --gray: #6c757d;
    --gray-dark: #343a40;
    --secondary: #6c757d;
    --warning: #ffc107;
    --light: #f8f9fa;
}

/**

end boostrap migration

**/


:root {
    --blue: #2f5c8a;
    --blue-link: #2878C8;
    --green-button: #39BD57;
    --blue-button: #418DD9;
    --gray-button: #EDEDED;
    --gray-button-hover: #F7F7F7;
    --gray-button-text: #6C757D;
    --gray-button-border: #E0E0E0;
    --gray-button-border-left: #E2E2E2;
    --blue-widget: #0076c4;
    --blue-call: #183153;
}

html, body {
    height: 100%;
    background: #fafbfb;
}

body {
    font-size: .865rem;
    font-family: 'Open Sans', sans-serif;
}

.text-white pre {
    color: #fff;
}

.font-size-1,
.font-size-1 *
{
    font-size: 1rem!important;
}

.h2, h2 {
    font-size: 1.5rem;
}

.h3, h3 {
    font-size: 1rem;
}

.h2 {
    margin-bottom: 0;
}

.badge {
    white-space: normal;
}

.badge-primary {
    color: #fff;
    background-color: #009aff;
}

.badge-danger {
    color: #fff;
    background-color: #fb6464;
}

.badge-info {
    color: #fff;
    background-color: #ffc107;
}

.color-grey {
    color: #9e9e9e;
}

.min-w30 {
    min-width: 30px;
}

.color-bright-green {
    color: #32D835;
}

.color-green {
    color: var(--green-button);
}

.font-big {
    font-size: 1.1rem;
    font-weight: bold;
}

.font-large {
    font-size: 1.1rem;
}

.font-small {
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    .h2, h2 {
        font-size: 1rem;
    }

    .sm-text-left {
        text-align: left!important;
    }
}

input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
    display: none;
}

.width-40 {
    width: 40px;
}

a {
    color: var(--blue-link);
}

.bg-dark-blue {
    background-color: var(--blue);
}

.text-dark-blue {
    color: var(--blue);
}

.page-link {
    color: var(--blue);
}

.page-item.active .page-link {
    color: #fff;
    background-color: var(--blue);
    border-color: var(--blue);
}

.navbar-dark.bg-dark-blue .navbar-nav .nav-link {
    color: #fff;
}

@media (max-width: 768px) {
    .navbar.fixed-top {
        position: relative;
    }
}

.input-group input[type="date"] {
    padding: .25rem 0 .25rem .20rem!important;
}

.feather {
    width: 16px;
    height: 16px;
    vertical-align: text-bottom;
}

.col-form-label {
    max-width: 260px!important;
}

.img-thumbnail-mini {
    width: 100px;
    height: 100px;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    border-radius: 50%;
}

.hidden {
    display: none;
}

.email-password-toggle {
    cursor: pointer;
    text-decoration: underline dotted;
}

.hidden-important {
    display: none!important;
}

.form-modern .form-group > label,
label.mini-label
{
    display: inline-block;
    font-size: 12px;
    padding-left: .58rem;
    margin-bottom: .0rem;
}

.form-modern .form-group {
    margin-bottom: 0.6rem;
}

.form-modern .form-control {
    padding: 0 0.58rem;
    font-size: 0.9rem;
    line-height: 2;
    height: calc(2.25rem + 2px);
}

.form-modern input.form-control,
.form-modern .custom-select,
.form-modern .custom-control-select,
.selectr-selected,
.selectr-container.open .selectr-selected,
.inputs-block
{
    border: 1px solid #b9bbbb;
    border-radius: .25rem;
}

.form-modern .form-control.datepickr {
    font-size: 0.8rem;
}

.form-modern .form-control:focus {
    box-shadow: 0 0 0 0.1rem rgba(0, 123, 255, 0.25);
}

.form-control.is-invalid, div.is-invalid {
    border: 1px solid #dc3545;
    border-radius: .25rem;
    transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
    background-image: none;
}

/*
 * Sidebar
 */

.sidebar-links {
    border-bottom: 1px solid #1c446d;
}

.sidebar-links:last-child {
    border-bottom: none;
}

.sidebar .nav-link {
    font-weight: normal;
    font-size: 15px;
    color: #cadcec;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active
{
color: #fff!important;
background: #4373A4;
font-weight: bold;
}

.sidebar .nav-link .feather {
margin-right: 4px;
color: #999;
}

.sidebar .nav-link.active {
color: #007bff;
}

.sidebar .nav-link:hover .feather,
.sidebar .nav-link.active .feather {
color: inherit;
}

.sidebar-heading {
font-size: .79rem;
color: #679bb9;
font-weight: normal;
}

.sidebar-substitutes {
    padding-left: 1rem;
    font-weight: normal;
    color: #cadcec;
}

.sidebar-substitutes-item {
    font-size: .79rem;
    margin-top: 0.2rem;
    margin-bottom: 0.2rem;

}

.sidebar-substitutes-item a{
    color:white;


}

/*
* Content
*/

.main-col {
    background: #fafbfb;
}

.hide {
    display: none!important;
}

/* nu o ka daryt?
.show {
    display: block!important;
}
*/
#modalTransferEvent.show,
#modalAssignFolder.show
{
    display: block!important;
}

.custom-file-label {
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    font-size: 13px;
    padding: 6.9px 17px;
    width: auto;
    height: auto;
    text-align: left;
    margin-bottom: 5px;
    color: #555;
}

.custom-file-label a, .btn-file-item a {
    font-weight: bold;
    font-size: 14px;
    color: #2878C8;
}

.custom-file-input:focus~.custom-file-label {
    border-color: transparent;
    box-shadow: none;
}

.custom-file-label::after {
    display: none;
}

.custom-file-label i {
    font-size: 1rem;
    margin-right: 4px;
}

.custom-file-label.btn-outline-secondary {
    color: #E2E2E2; /*6c757d;*/
    background-color: transparent;
    background-image: none;
    border-color: #6c757d;
    cursor: pointer!important;
}

.custom-file-label.new {
    color: #555;
}

.btn-remove-file {
    outline: none;
    padding: 0 9px;
    line-height: 1;
    font-size: 1rem;
    background: #efefef;
    color: #818283;
}

.custom-file-label.btn-light,
.btn-remove-file.btn-light
{
    color: #212529;
    background-color: #e1e1e1;
    border: none;
}

.custom-file-label.btn-outline-secondary:hover {
    color: #fff;
    background-color: #6c757d;
    border-color: #6c757d;
}

.dpckr-clear.btn-outline-secondary:hover {
    color: #212529;
    background-color: #e1e1e1;
}

.custom-file.button {
    max-width: 121px;
}

.compose-submit {
    min-width: 121px;
}

.compose-collapse-icon {
    color: #ababab;
    margin-left: 8px;
    font-size: 0.8rem;
}

.compose-collapse-blue {
    font-size: 0.8rem;
    padding-left: .58rem;
}

.compose-collapse-link {
    text-decoration: none!important;
}

.bottom-no-sticky {
    margin-top: 15px;
    padding-bottom: 10px;
    padding-top: 10px;
}

.bottom-sticky {
    position: sticky;
    bottom: 0;
    background: #fafbfb;
    margin: 0 -15px;
    padding: 10px 15px;
    z-index: 999;
    max-height: 60px;
}

.bottom-sticky:before {
    content: '';
    width: 100%;
    height: 10px;
    left: 0;
    background: #fafbfb;
    top: 0;
    z-index: -1;
    position: absolute;
    -webkit-box-shadow: 0 1px 20px -4px rgba(0,0,0,0.85);
    -moz-box-shadow: 0 1px 20px -4px rgba(0,0,0,0.85);
    box-shadow: 0 1px 20px -4px rgba(0,0,0,0.85);
}

.bottom-sticky:after {
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    background: #fafbfb;
    left: 0;
    top: 0;
    z-index: -1;
}

.top-sticky {
    position: sticky;
    top: 0;
    background: #fafbfb;
    margin: 0 -15px;
    padding: 10px 15px;
    z-index: 999;
}

.top-sticky:before {
    content: '';
    width: 100%;
    height: 10px;
    left: 0;
    background: #fafbfb;
    bottom: 0;
    z-index: -1;
    position: absolute;
    -webkit-box-shadow: 0 1px 20px -4px rgba(0,0,0,0.85);
    -moz-box-shadow: 0 1px 20px -4px rgba(0,0,0,0.85);
    box-shadow: 0 1px 20px -4px rgba(0,0,0,0.85);
}

.top-sticky:after {
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    background: #fafbfb;
    left: 0;
    bottom: 0;
    z-index: -1;
}

.file-size {
    margin-left: 10px;
    font-size: 14px;
    font-weight: normal;
    color: #989898;
}

.btn-file-item,
.btn-file-item:hover,
.btn-file-item:focus
{
    background: #efefef!important;
    border: none!important;
    cursor: default!important;
    color: #555!important;
    outline: none!important;
}

.existing_file .btn-file-item {
    padding: 8px 17px;
}

.selectr-selected {
    border: 1px solid #ced4da!important;
    outline: none!important;
}

.selectr-tag {
    color: #555!important;
    font-size: 12px;
    border-radius: 3px!important;
    background: var(--gray-button)!important;
}

.selectr-tag-remove::after, .selectr-tag-remove::before {
    background-color: #555!important;
}

.selectr-input {
    outline: none!important;
}

.selectr-option.active {
    color: #fff;
    background-color: var(--blue-button)!important;
}

/*
 * Navbar
 */

.navbar-brand {
    padding-top: .75rem;
    padding-bottom: .75rem;
    font-size: 1rem;
    color: #fff;
}

.navbar-brand:hover {
    color: #fff!important;
}

.navbar .form-control {
    padding: .75rem 1rem;
    border-width: 0;
    border-radius: 0;
}

.form-control-dark {
    color: #cadcec;
    background-color: #1c446d;
    font-size: 13px;
    border: none;
    border-radius: 0;
    height: 3rem;
}

input.form-control-dark::placeholder {
    color: #cadcec!important;
}

.form-control-dark:focus {
    border-color: transparent;
    color: #cadcec;
    background-color: #1c446d;
    box-shadow: none;
}

.form-control-light {
    color: #7E8890;
    background-color: #EDF8FF;
    font-size: 13px;
    border: none;
    border-radius: 0;
    height: 3rem;
}

.bg-dark-blue .form-control.form-control-light:focus {
    color: #c9dbeb;
    background-color: #153558;
    box-shadow: none;
}

.bg-dark-blue .form-control-light {
    color: #c9dbeb;
    background-color: #153558;
}

.bg-dark-blue .form-control-light::placeholder {
    color: #cadcec!important;
}

.bg-dark-blue .autocomplete-wrapper .form-control[readonly] {
    background-color: #153558;
    opacity: 1;
}

.bg-dark-blue .autocomplete-clear {
    color: #cadcec;
    background-color: #153558;
}

/*
 * Utilities
 */

.border-top {
    border-top: 1px solid #e5e5e5;
}

.border-bottom {
    border-bottom: 1px solid #e5e5e5;
}

.nav-link .fas {
    width: 20px;
}

.nav-link .fa-users {
    position: relative;
    left: -2px;
}

.left-top-links {
    border-bottom: 1px solid #153658;
}

.left-top-links a.nav-link {
    color: #fff;
    font-size: 1.3rem;
}

.left-top-links-lg a.nav-link {
    color: #fff;
    font-size: 1.4rem;
}

.left-top-links a.nav-link,
.left-top-links-lg a.nav-link:hover {
    font-weight: normal;
}

#search-phrase {
    padding-right: 2.5rem !important;
}

@media (min-width: 992px) {
    .left-top-links-lg {
        border-bottom: 1px solid #153658;
    }

    .sidebar {
        min-width: 212px;
        max-width: 212px;
        width: 212px;
        position: fixed;
        bottom: 0;
        top: 0;
        z-index: 10;
        overflow: hidden;
    }

    .main-col {
        margin-left: 212px;
    }

    .scrollable {
        position: absolute;
        overflow-y: scroll;
        top: 197px;
        right: 0;
        left: 0;
        bottom: 0;
        scrollbar-width: none; /*firefox*/
    }

    .scrollable::-webkit-scrollbar {
        width:0;
    }
    .scrollable::-webkit-scrollbar * {
        background:transparent;
    }

    .search-block {
        position: relative;
    }

    .search-block-btn {
        color: #cadcec!important;
        position: absolute;
        right: 26px;
        top: 12px;
        font-size: 1rem;
        cursor: pointer;
        padding: 0;
        outline: none!important;
    }

    .autocomplete-block .autocomplete-clear {
        top: 9px;
    }
}

@media (max-width: 992px) {
    .opacity-03 {
        opacity: 0.3;
    }

    .search-block-open {
        display: block!important;
        position: absolute;
        z-index: 1;
        left: 0;
        right: 0;
        color: #fff;
        padding: 0;
        height: 100%;
    }

    .search-block-open .form-control {
        height: 100%;
        font-size: 15px;
    }

    .search-block-close {
        position: absolute;
        right: 0;
        top: 0;
        font-size: 1.5rem;
        padding: 8px 18px;
        cursor: pointer;
    }

    .menu-block-open {
        display: block!important;
        position: absolute;
        z-index: 1000;
        background: var(--blue);
        right: 0;
        border-top: 1px solid #1d446d;
        min-width: 262px;
    }

    .show-on-mobile-menu.active {
        display: inline-block!important;
    }

    .hide-on-mobile-menu.active {
        display: none!important;
    }

    .show-on-tabs-menu.active {
        display: inline-block!important;
    }

    .hide-on-tabs-menu.active {
        display: none!important;
    }

    .active-top-links {
        background: var(--blue);
        position: absolute;
        z-index: 2;
        width: 262px;
        max-width: 262px;
        right: 0;
    }

    .whited {
        position: relative;
    }

    .whited:before {
        content: '';
        width: 100%;
        height: 100%;
        position: absolute;
        left: 0;
        top: 0;
        z-index: 1;
        background: rgba(255, 255, 255, 0.6);
    }

    .left-top-links-lg a.nav-link {
        font-size: 1.5rem;
    }

    .autocomplete-block .autocomplete-clear {
        top: 12px;
        right: 15px;
    }
}

/*
 * Autocomplete
 */

.autocomplete-suggestions {
    text-align: left;
    cursor: default;
    border: 1px solid #ccc;
    border-top: 0;
    background: #fff;
    box-shadow: -1px 1px 3px rgba(0,0,0,.1);
    position: absolute;
    display: none;
    z-index: 9999;
    max-height: 254px;
    overflow: hidden;
    overflow-y: auto;
    box-sizing: border-box;
}

body:not(.modal-open) .autocomplete-suggestions {
    width: auto!important;
}

@media (min-width: 576px) {
    .modal-dialog.modal-dialog-wide {
        max-width: 550px;
    }
}

.autocomplete-suggestion {
    position: relative;
    padding: 0 .6em;
    line-height: 23px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 1.02em;
    color: #333;
}

.autocomplete-suggestion b {
    font-weight: normal;
    color: var(--blue);
}

.autocomplete-suggestion span {
    font-size: 12px;
    display: block;
    color: var(--secondary);
}

.autocomplete-suggestion.selected {
    background: #EEF8FF;
}

.autocomplete-wrapper .form-control:disabled, .autocomplete-wrapper .form-control[readonly] {
    background-color: #EEF8FF;
    opacity: 1;
}

.autocomplete-clear {
    position: absolute;
    cursor: pointer;
    right: 10px;
    top: 4px;
    color: var(--secondary);
    background-color: #EEF8FF;
    font-size: 1.3rem;
}

.is_invoice .client_block .autocomplete-clear {
    display: none;
}

.to-clear {
    position: absolute;
    cursor: pointer;
    right: 10px;
    top: 4px;
    background-color: #fff;
    color: var(--secondary);
    font-size: 1.3rem;
}

.cc-clear {
    position: absolute;
    cursor: pointer;
    right: 10px;
    top: 24px;
    background-color: #fff;
    color: var(--secondary);
    font-size: 1.3rem;
}

.to-clear-modal {
    position: absolute;
    cursor: pointer;
    right: 24px;
    top: 39px;
    background-color: #fff;
    color: var(--secondary);
    font-size: 1.3rem;
}

.readonly-white {
    background-color: #fff!important;
}

.cursor-pointer {
    cursor: pointer!important;
}

.cursor-default {
    cursor: default!important;
}

.btn-secondary-white {
    color: var(--secondary);
}

/*
 * Forms
 */

.form-control__number {
    width: auto;
}

.collapsed-form {
    display: none;
}

.preview-hidden {
    display: none;
}

.form-control-plaintext {
    display: block;
    width: 100%;
    padding-top: .375rem;
    padding-bottom: .375rem;
    padding-left: 0;
    margin-bottom: 0;
    line-height: 1.5;
    color: #212529!important;
    background: transparent!important;
    border: solid transparent;
    border-width: 1px 0;
    outline: none!important;
    resize: none;
}

.form-view label {
    display: inline-block;
    width: 150px;
    margin-right: 10px;
    vertical-align: top;
    color:gray;
    font-size: .865rem;
}

.form-view p {
    display: inline-block;
}

.custom-control-label {
    min-height: 15px;
}

input.custom-select {
    cursor: default;
}

.form-control-h45 {
    max-height: 45px;
}

.form-control-h75 {
    max-height: 75px;
}

.to-validated {
    color: var(--blue);
    font-weight: bold;
}

.to-validated .form-control,
.to-validated .custom-select
{
    border-width: 2px;
}

/*
 * Mail table
 */
.nav-tabs .nav-item.show .nav-link, .nav-tabs .nav-link.active {
    background-color: #fafbfb;
    border-color: #dee2e6 #dee2e6 #fafbfb;
}

.nav-tabs .nav-link {
    color: var(--blue-link)!important;
}

.nav-tabs .nav-link.active {
    color: #495057!important;
    font-weight: bold;
}

.badge-tag {
    color: #000;
    border: 1px solid #dedede;
    font-weight: normal;
    font-size: 12px;
    padding: 5px 7px;
    margin-bottom: 5px;
}

.badge-tag i {
    color: #bbbdbd;
    font-size: 12px;
    cursor: pointer;
}

.badge-tag-bg {
    background-color: #ebf9ed;
    color: #000;
    border: 1px solid #dedede;
    font-weight: normal;
    font-size: 12px;
    padding: 5px 7px;
    margin-bottom: 5px;
}

.badge-tag-bg i {
    color: #bbbdbd;
    font-size: 12px;
    cursor: pointer;
}

.badge-tag-bg-grey {
    background-color: #f1f1f1;
}

.no-top-border th {
    border-top: none;
}

.no-border {
    border: none!important;
}

.body-preview {
    font-weight: normal;
    color: var(--secondary);
    font-size: 0.8rem;
}

.cc-preview {
    font-weight: normal;
    color: var(--secondary);
    font-size: 0.6rem;
}

.table-col-small {
    word-wrap: break-word;
    max-width: 230px;
}

.mail-row {
    cursor: pointer;
}

.mail-row i {
    cursor: default;
}

.mail-row-icon {
    color: #6C757D;
    font-size: 1rem;
}

.mail-row.is_new {
    background-color: white;
}

.mail-row.is_new_0 {
    color: #212529;
}

.mail-row.is_new_1 * {
    color: var(--blue-link);
}
.mail-row:hover {
    background: #F7F7F7;
    -webkit-box-shadow: 0 2px 3px 0 rgba(0,0,0,0.24);
    -moz-box-shadow: 0 2px 3px 0 rgba(0,0,0,0.24);
    box-shadow: 0 2px 3px 0 rgba(0,0,0,0.24);
}

.important-button {
    font-size: 0.8rem;
    background: transparent;
}

i.important-star,
.important-button i
{
    font-size: 1rem;
    color: var(--secondary);
    cursor: default;
}

.important-button i {
    cursor: inherit;
}

i.important-star.fas,
.important-button i.fas
{
    color: var(--warning);
}

.custom-checkbox .custom-control-input:checked~.custom-control-label::before{
    background-color: var(--gray-dark);
}

.custom-control-input:active~.custom-control-label::before{
    background-color: var(--gray);
}

.custom-checkbox .custom-control-input:focus~.custom-control-label::before{
    box-shadow: 0 0 0 1px #fff, 0 0 0 0.2rem rgba(52, 57, 64, 0.15);
}

.nav-tabs .dropdown-menu {
    font-size: inherit;
    padding-top: 0;
}

.nav-item.dropdown:hover .dropdown-menu {
    display: block;
    border-top: none;
    margin-top: 0;
}

.nav-item.dropdown:hover .nav-link {
    color: #495057;
    background-color: #fff;
    border-color: #dee2e6 #dee2e6 #fff;
}

.nav-item.dropdown .dropdown-item {
    position: relative;
    padding-right: 50px;
    padding-left: 16px;
}

.nav-item.dropdown .dropdown-item .text-info {
    display: none;
    position: absolute;
    right: 30px;
}

.nav-item.dropdown .dropdown-item .text-danger {
    display: none;
    position: absolute;
    right: 7px;
}

.dropdown-item.active, .dropdown-item:active {
    background-color: transparent;
}

.nav-item.dropdown .dropdown-item {
    color: var(--blue-link);
    text-decoration: none;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 10px;
    padding-top: 10px;
}

.nav-item.dropdown .dropdown-item .btn-group a.btn {
    color: #6C757D;
}

.nav-item.dropdown .dropdown-item .btn-group a.btn:active {
    color: #6C757D;
    border-color: #E0E0E0;
    background-color: #EDEDED;
    border-left-color: #E2E2E2;
}

.dropdown-item:focus, .dropdown-item:hover {
    background: none;
}

.nav-item.dropdown .dropdown-item.active a,
.nav-item.dropdown .dropdown-item:hover a
{
    text-decoration: underline;
}

span.btn-secondary a {
    color: var(--gray-button-text)!important;
    text-decoration: none!important;
}

span.btn-secondary:hover a {
    color: var(--gray-button-text)!important;
}

.folder-link {
    margin-right: 65px;
}

.folders-edit {
    position: absolute;
    right: 10px;
    top: 5px;
    display: none;
}

.nav-item.dropdown .dropdown-item:hover .folders-edit {
    display: inline-flex;
}

.embed-mail-body {
    max-width: 800px;
}

h6.embed-mail-subtitle {
    font-size: 18px;
    color: #757575;
}

h6.embed-mail-subtitle span {
    font-weight: normal;
    font-size: 14px;
    margin-left: 12px;
}

.multi_autocomplete {
    font-size: 17px;
}

.multi_autocomplete i {
    cursor: pointer;
}

/*Mail page*/

.text-left .badge {
    text-align: left;
}

.not-my-mail .colored-text {
    color: var(--green);
}

.communication-inbox-row {
    background: #e9ecefd9;
}

.communication-inbox-row:hover {
    background: rgba(218, 220, 226, 0.85) !important;
}

.mail-preview-block {
    max-height: 40px;
    max-width: 390px;
    overflow: hidden;
}

.mail-block-mobile {
    margin-left: -1.5rem;
}

.mail-preview-block-mobile {
    font-size: 0.8rem;
    color: #212529;
}

.embed-mail {
    margin: 15px 0;
    max-height: 100%;
}

h2.mail-subject {
    font-weight: bold;
    font-size: 22px;
    font-family: sans-serif;
    margin: 4px 0 0 18px;
}

@media (max-width: 768px) {
    h2.mail-subject {
        font-size: 1rem;
    }
}

.badge-emails {
    border-radius: 2px;
    background: #ededed;
    color: #8c8c8c;
    font-weight: normal;
    font-size: 0.9rem;
}

/*Tables*/
/*.hover-actions {*/
    /*visibility: hidden;*/
/*}*/

/*.hover-actions-row:hover .hover-actions {*/
    /*visibility: visible;*/
/*}*/

/*Invoice*/
.table-invoice th,
.table-invoice td
{
    vertical-align: middle!important;
    font-size: 0.7rem;
    padding: 6px 6px;
}

.table-invoice td .form-control {
    padding: 0 7px;
    font-size: 14px;
    height: 30px;
}

.table-invoice td .custom-select {
    padding: 0 1.75rem 0 .75rem;
    font-size: 14px;
    height: 30px;
    width: auto;
}

.table-invoice tfoot .no-top-border td {
    border-top: none;
}

tr.invoice-deleted,
tr.invoice-deleted .badge
{
    text-decoration: line-through;
}

tr.document-status-1,
tr.document-status-1 .badge
{
    text-decoration: line-through;
}

tr.deleted,
tr.deleted .badge,
b.deleted,
tr.client-status-1,
tr.client-status-1 .badge,
b.client-status-1
{
    text-decoration: line-through;
}

.modal-xl {
    max-width: 1140px;
}

.modal-payment {
    max-width: 540px;
}

.busy-message {
    position: absolute;
    height: 100%;
    left: 0;
    right: 0;
    padding-top: 20%;
    text-align: center;
    z-index: 2;
    background: #ffffffd6;
    font-size: 24px;
    color: var(--blue);
    font-weight: bold;
}

.busy-message span {
    display: block;
}

.table-hover tbody tr:hover {
    background: #F7F7F7;
    -webkit-box-shadow: 0 2px 3px 0 rgba(0,0,0,0.24);
    -moz-box-shadow: 0 2px 3px 0 rgba(0,0,0,0.24);
    box-shadow: 0 2px 3px 0 rgba(0,0,0,0.24);
}

.btn-sm {
    font-weight: normal;
}

.btn-outline-secondary {
    font-weight: normal;
}
.btn-outline-secondary,
.btn-outline-secondary-info,
.btn-outline-secondary-primary,
.btn-outline-secondary-success,
.btn-outline-secondary-warning,
.btn-outline-secondary-danger,
.btn-outline-secondary-dark,
.btn-outline-secondary-sec
{
    color: #A0A0A0;
    background-color: #F2F2F2;
    background-image: none;
    border-color: #6c757d;
}

.btn-group .btn-outline-secondary,
.attachments .btn,
.accordion-body .btn-outline-secondary,
.table .btn-outline-secondary
{
    color: #6C757D;
    border-color: #E0E0E0;
    background-color: #EDEDED;
    border-left-color: #E2E2E2;
}

.btn-group .btn + .btn-secondary,
.attachments .btn + .btn-secondary
{
    border-left: 1px solid #C0C0C0;
}

.btn-outline-secondary:hover {
    /*color: #fff;*/
    background-color: #f7f7f7; /*#E2E2E2; #6c757d;*/
    /*border-color: #6c757d;*/
}

.btn-outline-secondary-info:hover {
    color: #fff;
    background-color: #17a2b8;
    border-color: #17a2b8;
}

.btn-outline-secondary-primary:hover {
    color: #fff;
    background-color: #007bff;
    border-color: #007bff;
}

.btn-outline-secondary-success:hover {
    color: #fff;
    background-color: #28a745;
    border-color: #28a745;
}

.btn-outline-secondary-warning:hover {
    color: #212529;
    background-color: #ffc107;
    border-color: #ffc107;
}

.btn-outline-secondary-danger:hover {
    color: #fff;
    background-color: #dc3545;
    border-color: #dc3545;
}

.btn-outline-secondary-dark:hover {
    color: #fff;
    background-color: #343a40;
    border-color: #343a40;
}

.btn-outline-secondary-sec:hover {
    color: #fff;
    background-color: #6c757d;
    border-color: #6c757d;
}

.pages-total {
    margin: 7px 0 0 7px;
}

.form-control-static {
    padding-top: 7px;
    padding-bottom: 7px;
    margin-bottom: 0;
}

input.datepickr {
    background-color: white !important;
}

input.datepickr:disabled {
    background-color: #e8ecef !important;
}

.dpckr-date {
    width:165px;
}

.calendar .mb-1 {
    margin-bottom: 0.215rem !important;
}

.calendar input[type=date] {
    line-height: 22px;
}

.calendar-cell {
    width: calc(14.285% - 0.215rem);
}

.calendar-cell:nth-child(7n+8) {
    margin-right: 0 !important;
}

.calendar-cell a {
    text-align: center;
}

.calendar-cell a {
    padding: 6px 0;
}

.calendar-cell a.form-control.text-muted {
    padding: 7px 0;
}

.calendar-cell a.form-control.border-0.text-danger {
    padding: 7px 0;
}

.calendar-cell .weekend {
    background-color: #f7f7f7;
}

.calendar-cell .day-off {
    background-color: #FED4D4FF;
}

.calendar-cell .border-info {
    border-color: #6C7AB9 !important;
    border-width: 2px;
}

.flatpickr-day.day-off {
    background-color: #FED4D4FF !important;
}

table.table-fixed {
    width: 100%;
}

table.table-fixed tbody, table.table-fixed thead {
    display: block;
}

table.table-fixed tbody {
    height: 440px;
    overflow-y: auto;
    overflow-x: hidden;
}

table.table-fixed tbody td, table.table-fixed thead th {
    width : 200px;
}
table.table-fixed td {
    /* text-align:center; */
}

table#reminderTable.table-fixed tbody {
    height: 300px;
    overflow-y: auto;
    overflow-x: hidden;
}

/** orders */

td.calendar-cell.round-left {
    border-radius: 8px 0px 0px 8px;
}

td.calendar-cell.round-right {
    border-radius: 0px 8px 8px 0px;
}

td.calendar-cell.round-all {
    border-radius: 8px 8px 8px 8px;
}

td.calendar-cell.rstatus-start, .rstatus-start {
    background-color: #FFD800; /*yellow*/
    color: white;
    cursor: pointer !important;
}

td.calendar-cell.rstatus-reserved, .rstatus-reserved {
    background-color: #0094FF; /*blue*/
    color: white;
    cursor: pointer !important;
}

td.calendar-cell.rstatus-billing, .rstatus-billing {
    background-color: #FF0000;  /*red*/
    color: white;
    cursor: pointer !important;
}

td.calendar-cell.rstatus-billed, .rstatus-billed {
    background-color: #30A000;  /*green*/
    color: white;
    cursor: pointer;
}

td.calendar-cell.rstatus-barter, .rstatus-barter {
    background-color: #808080;  /*gray*/
    color: white;
    cursor: pointer;
}

td.calendar-cell.rstatus-stopped, .rstatus-stopped {
    background-color: orange;
    color: white;
    cursor: pointer;
}

.rsquare-start {
    color: #FFD800; /*yellow*/
}

.rsquare-reserved {
    color: #0094FF; /*blue*/
}

.rsquare-billing {
    color: #FF0000;  /*red*/
}

.rsquare-billed {
    color: #30A000;  /*green*/
}

.rsquare-barter {
    color: #808080;  /*gray*/
}

.rsquare-stopped {
    color: orange;
}

table.calendar {
    font-size: .7rem;
    border-collapse: collapse;
    border-style: hidden;
}

table.calendar td, table.calendar th {
    padding: .2rem;
}

table.calendar td:first-child, table.calendar th:first-child {
    padding: 0px;
}

table.calendar td:first-child div, table.calendar th:first-child div{
    padding: .2rem;
    background-color: white;
}

table.calendar th:first-child, table.calendar td:first-child {
    position: sticky;
    left: -1px;
    border-bottom: 1px solid #dee2e6;
}

th.group-title {
    white-space: nowrap;
}

td.service-title {
    white-space: nowrap;
}

th.month-title {
    text-align: center;
}

td.calendar-cell {
    cursor: pointer;
}

td.calendar-cell:hover {
    font-size: 0.94rem;
    font-weight: bold;
    padding: 0;
}

i.fa.custom, i.fab.custom, i.fal.custom, i.far.custom, i.fas.custom {
    font-size: 1rem;
}

i.fa.light, i.fab.light, i.fal.light, i.far.light, i.fas.light {
    color: #A0A0A0;
}

i.fa.red, i.fab.red, i.fal.red, i.far.red, i.fas.red {
    color: red;
}

i.fa.light-blue, i.fab.light-blue, i.fal.light-blue, i.far.light-blue, i.fas.light-blue {
    color: #4A89D1;
}

.orders-tooltip .tooltip-inner {
    max-width:250px;
    text-align: left;
    font-size: 11px;
    line-height: 1.5;
}

/** end orders */

.tooltip .tooltip-inner {
    background-color: #2D2D2D;
}

tr.nohref {
    cursor: pointer;
}

/** placeholders color */
input.form-control::-webkit-input-placeholder, textarea.form-control::-webkit-input-placeholder {
    color: lightgrey;
}

input.form-control::-moz-placeholder, textarea.form-control::-moz-placeholder {  /* Firefox 19+ */
    color: lightgrey;
}

input.form-control:-ms-input-placeholder, textarea.form-control:-ms-input-placeholder {
    color: lightgrey;
}

input.form-control::placeholder, textarea.form-control::placeholder {
    color: lightgrey;
}

/** dark placeholders color */
input.form-control-dark::-webkit-input-placeholder, textarea.form-control-dark::-webkit-input-placeholder {
    color: #5781AC;
}

input.form-control-dark::-moz-placeholder, textarea.form-control-dark::-moz-placeholder {  /* Firefox 19+ */
    color: #5781AC;
}

input.form-control-dark:-ms-input-placeholder, textarea.form-control-dark:-ms-input-placeholder {
    color: #5781AC;
}

input.form-control-dark::placeholder, textarea.form-control-dark::placeholder {
    color: #5781AC;
}

/** light placeholders color */
input.form-control-light::-webkit-input-placeholder, textarea.form-control-light::-webkit-input-placeholder {
    color: #8F99A0;
}

input.form-control-light::-moz-placeholder, textarea.form-control-light::-moz-placeholder {  /* Firefox 19+ */
    color: #8F99A0;
}

input.form-control-light:-ms-input-placeholder, textarea.form-control-light:-ms-input-placeholder {
    color: #8F99A0;
}

input.form-control-light::placeholder, textarea.form-control-light::placeholder {
    color: #8F99A0;
}


.selectr-placeholder {
    color: grey !important;
    font-style: italic;
}

input::-webkit-input-placeholder { /* Edge */
    font-style: italic;
}

input:-ms-input-placeholder { /* Internet Explorer 10-11 */
    font-style: italic;
}

.modal-body input::placeholder {
    font-style: italic;
}

/** events (copy from bootstrap) */
.table-light-yellow,
.table-light-yellow > th,
.table-light-yellow > td {
    background-color: #FFF6E0;
}

.table-hover .table-light-yellow:hover {
    background-color: #FFECC1;
}

.table-hover .table-light-yellow:hover > td,
.table-hover .table-light-yellow:hover > th {
    background-color: #FFECC1;
}

.table-light-gray,
.table-light-gray > th,
.table-light-gray > td {
    background-color: #FFF6E0;
}

.table-hover .table-light-gray:hover {
    background-color: #E8F0F9;
}

.table-hover .table-light-gray:hover > td,
.table-hover .table-light-gray:hover > th {
    background-color: #E8F0F9;
}

.table-hover th, .table-hover td {
    padding: .45rem;
}

/** accordion */
.accordion .card-header.active i.chevron {
    -webkit-transform: rotate(180deg);
    -moz-transform: rotate(180deg);
    transform: rotate(180deg);
}
.accordion.expandable .card-header.active {
    /*display:none;*/
}

.accordion .card {
    border-bottom-width: 0;
    border-left-width: 0;
    border-right-width: 0;
    border-top-width: 0;
    background-color: #fafbfb;
}

.accordion .card .card-header {
    background-color: #fafbfb;
    border-top: 1px solid rgba(0,0,0,.1);
    border-bottom: 0;
    cursor: pointer;
}

.accordion .card .card-header > h6 > i,
.accordion .card > h6 > i {
    color: #AAA;
    width: 20px;
}

.accordion .card .card-header.active {
    border-top: 1px solid rgba(0,0,0,.1);
}


.accordion .card:first-child .card-header,
.accordion .card:first-child .card-header.active{
    border-top: 0;
}

@media (max-width: 768px) {
    .border-bottom-sm {
        padding-bottom: 0;
    }

    .border-bottom-sm h6 {
        border-bottom: 1px solid rgba(0,0,0,.1);
        padding-bottom: 15px;
    }
}

.accordion .card-body {
    padding: unset;
}

.accordion.client-view .card label, .accordion.client-view label {
    color: #A0A0A0;
}

.client-contacts-info {
    color: #A0A0A0;
}

.form-modern textarea.form-control {
    line-height: 1.5;
    height: auto;
}

.btn-lg {
    font-size: 15px;
    font-weight: normal;
    padding: 6px 12px;
}

.btn-group .btn {
    font-weight: normal;
}

.btn-link {
    font-weight: normal;
    color: var(--blue-link);
    background-color: transparent;
    text-decoration: none!important;
}

.btn-success {
    color: #fff;
    background-color: var(--green-button);
    border-color: var(--green-button);
}

.btn-secondary {
    color: var(--gray-button-text);
    background-color: var(--gray-button);
    border-color: var(--gray-button-border);
    font-weight: normal;
}

.btn-secondary:hover {
    color: var(--gray-button-text) !important;
    background-color: var(--gray-button-hover);
    border-color: var(--gray-button-border);
}

.btn-secondary.return-btn {
    color: #555!important;
    background-color: #E1E1E1!important;
    border-color: #E1E1E1!important;
    font-weight: normal!important;
}

.btn-secondary.return-btn:hover {
    color: #fff!important;
    background-color: #5a6268!important;
    border-color: #545b62!important;
}

.btn-primary {
    color: #fff;
    background-color: var(--blue-button);
    border-color: var(--blue-button);
}

.btn-outline-primary {
    color: var(--blue-button);
    border-color: var(--blue-button);
}

.btn-outline-secondary-alt {
    background-color: #f6f6f6;
}

.btn-outline-primary:hover {
    background-color: var(--blue-button);
    border-color: var(--blue-button);
}

.btn-outline-primary.disabled, .btn-outline-primary:disabled {
    color: var(--blue-button);
}

.visible-md {
    display: none;
}

@media (min-width: 992px) {
    .lg-max-850 {
        max-width: 850px;
    }
    
    .lg-max-950 {
        max-width: 950px;
    }

    .lg-max-1024 {
        max-width: 1024px;
    }

    .lg-max-760 {
        max-width: 760px;
    }
}

@media (max-width: 992px) {
    .hidden-md {
        display: none;
    }

    .visible-md {
        display: block;
    }

    .visible-md-inline {
        display: inline;
    }

    .md-text-overflow {
        width: 90%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .swiper-outer {
        position: relative;
        white-space: nowrap;
        overflow: hidden;
    }

    .swiper {
        width: 100%;
        margin-top: 15px;
        overflow-x: scroll;
        border-top: 1px solid rgba(0,0,0,.1);
        border-bottom: 1px solid rgba(0,0,0,.1);
    }

    /* Hide scrollbar for Chrome, Safari and Opera */
    .swiper::-webkit-scrollbar {
        display: none;
    }

    /* Hide scrollbar for IE, Edge and Firefox */
    .swiper {
        -ms-overflow-style: none;  /* IE and Edge */
        scrollbar-width: none;  /* Firefox */
    }

    .swiperContent {
        width: 500px;
        text-align: left;
    }

    .swiperContent_570 {
        width: 570px;
    }

    .swiperContent_880 {
        width: 880px;
    }

    .swiperContent {
        white-space: nowrap;
        margin: 0;
        padding: 0;
    }

    .nav-tabs.swiperContent {
        border-bottom: none;
        margin-bottom: 1px;
        flex-direction: row;
    }

    .nav-tabs.swiperContent .nav-link {
        border: none;
    }

    .nav-tabs.swiperContent .nav-link.active {
        color: #495057!important;
        font-weight: bold;
        border-bottom: 2px solid var(--blue-link);
    }

    .tabs-menu {
        position: absolute;
        right: 0;
        top: 16px;
    }

    .tabs-menu-btn {
        font-weight: bold;
        font-size: 21px;
        padding: 3px 9px;
        width: 40px;
        background: #fafbfb;
    }

    .tabs-menu-block {
        position: absolute;
        display: none;
    }

    .tabs-menu-block-open {
        display: block!important;
        position: absolute;
        z-index: 1000;
        background: #2C5A88;
        right: 0;
        top: 0;
        padding-top: 7px;
        min-width: 160px;
    }

    .tabs-menu-close-btn {
        position: relative;
        z-index: 1001;
        color: #fff!important;
        font-size: 19px;
        padding: 5px 11px;
        width: 36px;
    }

    .tab-menu-title {
        font-size: 16px;
        color: #fff;
        padding-left: 15px;
        padding-bottom: 6px;
        border-bottom: 1px solid #c3c3c3;
        display: block;
    }
}

div.table-invoice {
    border-top: 1px solid #e5e5e5;
    padding-top: 30px;
    margin-top: 20px;
}

.product-row {
    border-bottom: 1px solid #e5e5e5;
    margin-bottom: 30px;
    padding-bottom: 30px;
}

.product-row label,
.invoice-table-footer label
{
    font-size: 0.7rem;
    font-weight: bold;
    margin-bottom: 2px;
}

.product-row-actions {
    margin-top: 21px;
}

.product-row-actions button {
    font-size: 1rem;
    padding: 6px 11px;
}

.badge-block {
    line-height: 1.3;
    text-align: left;
    white-space: normal;
}

.text-mini {
    font-size: 0.7rem;
}

.dropdown-toggle.no_arrow::after {
    display: none;
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: 4px 11px;
    font-size: 14px;
    clear: both;
    font-weight: 400;
    color: #6c757d;
    text-align: inherit;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
}

@media (min-width: 992px) {
    .col-lg-777-px {
        -ms-flex: 0 0 777px;
        flex: 0 0 777px;
        max-width: 777px;
    }

    .col-lg-992-px {
        max-width: 992px;
    }

    .align-lg-middle {
        vertical-align: middle!important;
    }
}

@media (min-width: 1200px) {
    .col-xl-1200-px {
        max-width: 1400px;
    }
}

.mobile-tooltip-icon {
    position: relative;
}

.mobile-tooltip {
    display: none;
}

.mobile-tooltip-icon:hover span.mobile-tooltip,
.mobile-tooltip-icon:focus span.mobile-tooltip,
.mobile-tooltip-no-icon:hover span.mobile-tooltip,
.mobile-tooltip-no-icon:focus span.mobile-tooltip
{
    display: block;
    position: absolute;
    background: #6c757d;
    color: #fafbfb;
    border: 1px solid #586067;
    font-weight: normal;
    font-size: 12px;
    padding: 5px 7px;
    font-family: 'Open Sans', sans-serif;
    width: auto;
    min-width: 140px;
    text-align: center;
    line-height: 1.3;
    left: 0;
    top: -45px;
    margin-left: -88px;
    border-radius: 3px;
    z-index: 11;
}

.mobile-tooltip-no-icon:hover span.mobile-tooltip,
.mobile-tooltip-no-icon:focus span.mobile-tooltip
{
    top: -25px;
    margin-left: 0;
}

.font-size-16 {
    font-size: 16px;
}

.font-size-14 {
    font-size: 14px;
}

.font-size-12 {
    font-size: 12px;
}

.btn-secondary.focus, .btn-secondary:focus {
    box-shadow: 0 0 0 0.1rem rgba(130,138,145,.5);
}

.input-group-text {
    font-size: 0.8rem;
    padding: .375rem .30rem;
}

.width-20 {
    width: 20px;
}

.width-30 {
    width: 30px;
}

.width-100 {
    width: 100px;
}

.width-115 {
    width: 115px;
}

.width-130 {
    width: 130px;
}

.width-140 {
    width: 140px;
}

.width-160 {
    width: 160px;
}

.width-170 {
    width: 170px;
}

.width-180 {
    width: 180px;
}

.width-200 {
    width: 200px;
}

.width-300 {
    width: 300px;
}

.width-400 {
    width: 400px;
}

.width-500 {
    width: 500px;
}

.custom-select {
    font-size: .865rem;
    height: calc(1.5em + .75rem);
}

.text-color-orange {
    color: orange;
}

.text-color-green {
    color: green;
}

.input-group-sm > .custom-select,
.input-group-sm > .form-control:not(textarea)
{
    height: calc(1.5em + .5rem + 4px);
}

.invoice_sent {
    color: #007bff!important;
}

.table thead th {
    border-bottom: none;
}

@media (min-width: 768px) {
    .collapsed-block-sm {
        display: block!important;
    }

    .ml-md-3 {
        margin-left: 1rem !important;
    }

    .md-mt-0 {
        margin-top: 0px!important;
    }
}

.min-height-200 {
    min-height: 200px !important;
}

.autosuggestion {
    position: relative;
}

.autosuggestion-items {
    position: absolute;
    border: 1px solid #d4d4d4;
    border-bottom: none;
    border-top: none;
    z-index: 1000;
    top: 100%;
    left: 0;
    right: 0;
}
.autosuggestion-items div {
    padding: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    background-color: #fff;
    border-bottom: 1px solid #d4d4d4;
}
.autosuggestion-items div:hover {
    background-color: #e9e9e9;
}
.autosuggestion-active {
    background-color: DodgerBlue !important;
    color: #ffffff;
}

.compose_invoice_body .invoice_signature {
    display: none;
}

.form-group.note-form-group.note-group-select-from-files {
    display: none;
}

@media (max-width: 786px) {
    .btn-sm-sm {
        padding: 0.25rem 0.5rem;
        font-size: .875rem;
        line-height: 1.5;
        border-radius: 0.2rem;
    }
}

.sortable th.sortable-col {
    cursor: pointer;
}

.sortable th.sortable-col:hover::after {
    color: inherit;
    content: ' \025B8';
}

.sortable th.sortable-col::after {
    color: transparent;
    content: ' \025B8';
}

.sortable th.sortable-desc::after {
    color: inherit;
    content: ' \025BE';
}

.sortable th.sortable-asc::after {
    color: inherit;
    content: ' \025B4';
}

.summernote-custom-btn-active-bg {
    background-color: #71b47c !important;
}

.note-toolbar .note-btn.dropdown-toggle::after {
    display: none;
}

.inline-time-block {
    width:240px;
}

.accordion-button {
    background-color: #fafbfb;
    padding-left: 0rem;
}

.accordion-button:not(.collapsed) {
    color: var(--bs-body-color);
    background-color: #fafbfb;
}

.accordion-button:focus {
    box-shadow: none;
}

.accordion-item {
    background-color: #fafbfb;
    border-right:none;
    border-left:none;
}

.accordion-button::after {
    color: #AAA;
}
.accordion .accordion-header button > i {
    color: #AAA;
    width: 20px;
}

.accordion-header .other-buttons {
    z-index:1000; margin-top: 0.6rem; margin-right: 1rem;
}

.dragover:before {
    content: 'Drag and Drop files here';
    font-size: 18px;
    background: rgba(255,255,255,0.8);
    text-align: center;
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px dashed #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    z-index: 1;
}

#dynamic-message-footer {
    padding-left: 50px;
}

.event-name-textarea {
    height: 121px!important;
}

.increaseDateLink {
    border-left: 1px solid #999;
    padding-left: 5px;
    margin-right: 5px;
}

.increaseDateLink:first-child {
    border: none;
}

.lang-select {
    min-width: 50px;
}

.btn-outline-secondary-text {
    cursor: text;
    background: #fff!important;
}

.client-view-block h3 {
    font-size: 14px;
    font-weight: bold;
}

.client_services_status {
    margin-bottom: 10px;
    font-size: 13px;
    display: flex;
    justify-content: start;
    align-items: center;
}

.client_services_status i {
    font-size: 21px;
    margin-right: 5px;
}

.text-mid {
    font-size: 13px;
}

.copy-to-clipboard {
    cursor: pointer;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.5);
    }
}

.icon-animation {
    animation: fadeIn 0.3s ease-in-out;
}

.icon-reverse-animation {
    animation: fadeOut 0.3s ease-in-out;
}

.savitarna-permissions-color-0 {
    color: gray;
}

.savitarna-permissions-color-1, .savitarna-permissions-color-2 {
    color: var(--bs-warning);
}

.telia-widget {
    font-family: sans-serif;
    position: fixed;
    right: 7px;
    bottom: 0;
    width: 80px;
    height: 80px;
    overflow: hidden;
    z-index: 1337;
}

.telia-widget-bubble {
    width: 60px;
    height: 60px;
    background: #FFF;
    border-radius: 30px;
    position: absolute;
    right: 10px;
    bottom: 8px;
    cursor: pointer;
    border: 2px solid #d8d8d8;
    z-index: 1;
}

.telia-widget-bubble-background {
    width: 52px;
    height: 52px;
    background: var(--blue-widget);
    border-radius: 30px;
    position: absolute;
    right: 2px;
    bottom: 2px;
}

.telia-widget-bubble-background i {
    color: #FFF;
    font-size: 24px;
    position: absolute;
    top: 14px;
    left: 15px;
    display: inline-block;
    transform: rotate(-45deg);
}

.telia-widget-bubble .telia-widget-bubble-counter {
    width: 35px;
    height: 21px;
    line-height: 21px;
    font-size: 17px;
    position: absolute;
    left: 25px;
    top: -7px;
    color: #FFF;
    border-radius: 5px;
    text-align: center;
    background: #B2B2B2;
}

.telia-widget.active {
    width: 372px;
    height: 557px;
}

.telia-widget-container {
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: 2;
    background: #FFF;
    border: 1px solid #E4E4E4;
    display: none;
}

.telia-widget.active .telia-widget-bubble {
    display: none;
}

.telia-widget.active .telia-widget-container {
    display: block;
}

.telia-widget-container-header {
    height: 65px;
    width: 100%;
    background: var(--blue-widget);
    padding: 17px 0;
    padding-bottom: 4px;
    text-align: left;
    position: relative;
    z-index: 2;
}

.telia-widget-container-header-title {
    font-size: 17px;
    line-height: 32px;
    color: #FFF;
    display: inline-block;
    position: relative;
    margin-left: 20px;
}

.telia-widget-container-close-button {
    height: 30px;
    float: right;
    color: #FFF;
    line-height: 32px;
    text-align: center;
    cursor: pointer;
}

.telia-widget-container-close-button i {
    height: auto;
    font-size: 30px;
    width: 60px;
}

.telia-widget-list {
    max-height: 492px;
    overflow-y: auto;
}

.telia-widget-list-row {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.telia-widget-list-row-icon {
    font-size: 22px;
}

.red-call {
    color: var(--bs-red);
}

.blue-call {
    color: var(--blue-call);
}

.telia-widget-list-row-text {
    margin-left: 10px;
}

.telia-widget-action {
    margin-left: auto;
}

.telia-widget-list-row-text-phone span {
    margin-right: 5px;
}

.telia-widget-list-row-text-phone a {
    color: inherit;
}

.telia-widget-list-row-text-phone span i {
    font-style: normal;
    font-size: 0.8rem;
}

.telia-widget-list-row-text-client {
    font-weight: bold;
}

.telia-widget-empty {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 492px;
    text-align: center;
    font-size: 18px;
}

.telia-widget-comment-form textarea {
    height: 7rem!important;
}

.telia-widget-list-row-comment {
    font-style: italic;
    font-size: 0.8rem;
}

.telia-widget-separator {
    background-color: #f0f0f0;
    color: #555;
    font-size: 14px;
    text-align: center;
    padding: 8px 0;
    border-bottom: 1px solid #ddd;
}

.call-icon {
    width: 18px;
    height: 18px;
    background-repeat: no-repeat;
    background-size: contain;
    display: inline-block;
}

.call-icon-missed {
    background-image: url("../svg/calls/missed.svg");
}

.call-icon-incoming {
    background-image: url("../svg/calls/incoming.svg");
}

.call-icon-outgoing {
    background-image: url("../svg/calls/outgoing.svg");
}

.call-icon-not-answered {
    background-image: url("../svg/calls/not_answered.svg");
}

.font-italic {
    font-style: italic!important;
}

.call-row-grey {
    background-color: #f1f1f1;
}

.contacts-list-scrollable {
    max-height: 200px;
    overflow: scroll;
}


.plus-minus[data-bs-toggle="collapse"] .fa:before {
    content: "\f068";
}

.plus-minus[data-bs-toggle="collapse"].collapsed .fa:before {
    content: "\2b";
}

.h-min-content {
    height: min-content;
}

.make-call {
    cursor: pointer;
    text-decoration: underline;
}

.note-editable .bcg-signature-hide {
    display: none;
}

.flex-align-vertical {
    display: flex;
    height: 100%;
    align-items: center;
}

.unset-height {
    height: unset !important;
}

.border-warning {
    border-color: var(--bs-warning-rgb);
}

.text-success label {
    color: rgba(var(--bs-success-rgb), var(--bs-text-opacity)) !important;
}

.space-click-checkbox {
    position: relative;
    display: inline-block;
}

.space-click-checkbox .custom-control-label {
    position: absolute;
    top: -10px;
    left: -10px;
    width: 40px;
    height: 40px;
}

.space-click-checkbox .custom-control-input {
    position: relative;
    z-index: 2;
}
.is-important{
    color: #EF3F60;
}
.is-not-important{
    color: #4444449e;
}

/** client email options wrapper */
.tag { display: inline-flex; align-items: center; gap: 5px; background: #eff6ff; border: 1px solid #bfdbfe; color: #1d4ed8; border-radius: 20px; padding: 3px 10px 3px 12px; font-size: 13px; }
.tag-x { cursor: pointer; opacity: .55; font-size: 16px; line-height: 1; transition: opacity .15s; }
.tag-x:hover { opacity: 1; }

.s-panel { border: 1px solid #e2e8f0; border-radius: 8px; overflow: hidden; }
.s-panel-hdr-title { font-size: 11px; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: .5px; }
.s-panel-hdr-right { gap: 6px; }
.s-panel-hdr-left { gap: 10px; }

.s-row { display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-bottom: 1px solid #f1f5f9; transition: background .1s; }
.s-row:last-child { border-bottom: none; }
.s-row:hover { background: #fafafa; }
.s-name { font-weight: 700; font-size: 13px; color: #1e293b; min-width: 50px; cursor: pointer; user-select: none; }
.serial-projects-wrapper { flex: 1; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

.p-panel { flex: 1; background: #f0f9ff; border: 1px solid #bae6fd; border-radius: 6px; padding: 8px 10px; }
.p-panel-title { font-size: 11px; font-weight: 700; color: #0369a1; text-transform: uppercase; letter-spacing: .4px; }
.p-panel-hdr-left { gap: 6px; }
.p-grid { gap: 6px 16px; }
.p-item { font-size: 12px; color: #374151; }
.p-item label { cursor: pointer; }
.p-item input { cursor: pointer; accent-color: #2563eb; margin-right: 4px; }

.compact-row { gap: 8px; }

.btn-white { background: white; border: 1px solid #d1d5db; color: #374151; border-radius: 6px; padding: 3px 10px; cursor: pointer; font-size: 12px; font-weight: 600; transition: border-color .15s; white-space: nowrap; }
.btn-white:hover { background: white; border-color: #6b7280; }

.tag-link {cursor: pointer; color: #1d4ed8 !important; font-size: 13px;}
.tag-gray {color:gray !important;}
.email-options-wrapper {line-height: 2;}
/** end of client email options wrapper */

.client-emails-fieldset { border: 1px solid #ccc; border-radius: 10px; background-color: #e4f2fd; padding: 10px; line-height: 1.8; }

.table-smaller {font-size:85%; border-bottom: #EEEEEE solid 2px;}
.table-smaller-header {background-color: #EEEEEE;}
