/* Z-INDEX

Topbar (nav): 1000
Sidebar (v-sidebar-menu): 999

*/

@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500&display=swap");

body {
    color: var(--text);
    background-color: var(--body-bg);
    font-family: "Montserrat", sans-serif;
}

body:has(.confirmDialogueModal) {
    overflow: hidden;
}

#app {
    height: 100%;
    overflow-x: 100%;
}

main {
    /* -webkit-transition: 0.3s padding ease;
    transition: 0.3s padding ease; */
    padding: 2.5em 2.6rem;
    /* padding-left: 4.5rem; */
    padding-left: 17rem;
}

nav {
    background-color: var(--menu-bg);
    color: var(--menu-text);
    z-index: 1000;
}

.navbar-dark .navbar-nav .nav-link {
    color: var(--menu-text);
}

.container.full {
    max-width: none;
}

.loginPage {
    background-color: black;
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    padding-top: 10%;
}

.loginContainer {
    max-width: 740px;
    width: 100%;
    padding: 0 15px;
}

.form-control,
.card-header {
    background-color: var(--input-bg) !important;
}

.form-control:focus {
    border-color: #ced4da;
    box-shadow: none;
}

.card-body {
    padding: 1.25rem;
}

.inputStyle {
    border-radius: 4px;
    font-size: inherit;
    border: 1px solid var(--light-grey);
    outline: none;
    width: 100%;
    padding: 3px 5px;
    max-width: 100%;
}

.u-select {
    padding: 10px;
    width: 100%;
    border: 1px solid var(--light-grey) !important;
    border-radius: 5px;
    background-color: transparent;
}

.tableInput {
    border-radius: 4px;
    font-size: inherit;
    border: none;
    outline: none;
    width: 100%;
    padding: 3px 5px;
    margin: 6px 0;
    max-width: 100%;
}

.noWrap {
    white-space: nowrap;
}

.flexCenter {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.h-fit-content {
    height: fit-content !important;
}

.w-fit-content {
    width: fit-content !important;
}

.white-bg-wrapper {
    background: #fff;
    border-radius: 5px;
    padding: 2.3rem 2rem;
}

.min-height-wrapper {
    min-height: 89.3vh;
}

.titleMain {
    font-weight: 500;
    font-size: 2rem;
}

/* BUTTONS */

.buttonNoStyle {
    outline: none;
    background: transparent;
    border: none;
}

.buttonNoStyle:focus {
    outline: none;
    background: transparent;
    border: none;
    box-shadow: none;
}

.btn:focus {
    box-shadow: none;
}

.btn-main {
    color: #fff;
    background-color: var(--main);
    border: 1px solid var(--main);
}

.btn-main:hover {
    color: #fff;
}

.btn-link {
    font-weight: 400;
    color: var(--main);
    text-decoration: underline;
}

.btn-link:hover {
    color: var(--main);
}

.linkBtn {
    color: var(--main);
    text-transform: unset;
    font-size: 0.9rem;
}

.linkBtn:hover {
    text-decoration: underline;
}

.btn-save {
    color: white;
    background-color: black;
    border: 1px solid black;
    padding: 0.5rem 0.75rem;
    width: 222px;
    height: 39px;
    border-radius: 5px;
}

.btn-save:hover {
    filter: brightness(120%);
}

.btn-white {
    background-color: white;
    color: black;
}

.remove-image {
    color: var(--main);
    cursor: pointer;
    font-size: smaller;
}
.remove-image:hover {
    opacity: 0.5;
}

/* Hide arrows in number input */

.hideArrows input::-webkit-outer-spin-button,
.hideArrows input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.hideArrows input[type="number"] {
    -moz-appearance: textfield;
}

.inputReset {
    width: unset;
    background: none;
    border: none;
    outline: none;
}

/* SIDEBAR */

.sidebar-logo {
    padding: 1rem 1.5rem;
}

.sidebar-logo img {
    object-fit: contain;
    max-height: 30px;
    max-width: 100%;
    margin: 0 auto;
}

.customSidebarStyle .divider {
    border-bottom: 1px solid #717171;
    margin: 0 1.5em 0.5em;
}

.sidebar-button {
    padding: 20px 14px;
    display: flex;
    align-items: center;
    color: #fff;
}

.sidebar-footer {
    padding: 20px 14px;
    display: flex;
    align-items: center;
    color: #fff;
}

.user-logo {
    border-radius: 50%;
    background: var(--main);
    text-transform: uppercase;
    width: 34px;
    height: 34px;
    font-size: 21px;
    font-weight: 500;
    margin-right: 16px;
}

.v-sidebar-menu .vsm--toggle-btn {
    display: none !important;
}

/* Sidebar icons */

.books-white {
    background-image: url("../img/books_white.svg");
    background-position: 50% 50%;
    background-repeat: no-repeat;
}

.calc-white {
    background-image: url("../img/calc_white.svg");
    background-position: 50% 50%;
    background-repeat: no-repeat;
}

.hand-white {
    background-image: url("../img/hand_white.svg");
    background-position: 50% 50%;
    background-repeat: no-repeat;
}

.home-white {
    background-image: url("../img/home_white.svg");
    background-position: 50% 50%;
    background-repeat: no-repeat;
}

.settings-gray {
    background-image: url("../img/settings_gray.svg");
    background-position: 50% 50%;
    background-repeat: no-repeat;
    background-size: contain;
}

.customer-gray {
    background-image: url("../img/customer_gray.svg");
    background-position: 50% 50%;
    background-repeat: no-repeat;
}

/* Background of whole sidebar */

.v-sidebar-menu,
.v-sidebar-menu .vsm--toggle-btn {
    background-color: var(--menu-bg) !important;
}

.v-sidebar-menu .vsm--toggle-btn {
    color: var(--menu-text) !important;
}

.vsm--link_exact-active > .vsm--title {
    color: var(--menu-active-text) !important;
}

/* Active submenu color */

.customSidebarStyle.v-sidebar-menu.vsm_expanded
.vsm--item_open
.vsm--link_level-1,
.v-sidebar-menu .vsm--link_level-1.vsm--link_exact-active,
.v-sidebar-menu .vsm--link_level-1.vsm--link_active {
    /* background-color: var(--main) !important; */
    background-color: #222 !important;
    box-shadow: none !important;
    border-radius: 5px;
    color: var(--menu-active-text) !important;
}

.v-sidebar-menu .vsm--scroll-wrapper > .vsm--list > .vsm--item {
    margin: 5px 0;
}

.v-sidebar-menu .vsm--link {
    padding: 5px 10px !important;
}

.v-sidebar-menu .vsm--link_level-1:hover {
    box-shadow: none !important;
    border-radius: 5px;
}

.v-sidebar-menu .vsm--dropdown .vsm--list {
    background-color: transparent !important;
}

.customSidebarStyle .vsm--dropdown {
    /* padding: 0 15px; */
    padding: 0;
    padding-left: 30px;
}

.customSidebarStyle .vsm--list {
    padding: 0 15px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.customSidebarStyle .vsm--list > .vsm--item:last-child {
    margin-top: auto;
}

.customSidebarStyle .vsm--link:hover {
    border-radius: 5px;
}

/* font size */

.v-sidebar-menu .vsm--title {
    font-size: 15px !important;
}

.v-sidebar-menu .vsm--dropdown .vsm--title {
    font-size: 14px !important;
}

.v-sidebar-menu .vsm--dropdown .vsm--item > a {
    padding: 1px 10px !important;
}

/* font weight */

.v-sidebar-menu .vsm--link_exact-active,
.v-sidebar-menu .vsm--link_active {
    font-weight: 500 !important;
}

/* Text color */

.v-sidebar-menu .vsm--link {
    color: var(--menu-text) !important;
}

/* Sidebar icon background */

.v-sidebar-menu .vsm--link_level-1 .vsm--icon,
.v-sidebar-menu .vsm--item_open .vsm--link_level-1 .vsm--icon {
    background-color: unset !important;
    width: 23px !important;
}

.v-sidebar-menu .vsm--header {
    height: 65px !important;
    display: flex;
    align-items: center;
}

.v-sidebar-menu .vsm--title {
    white-space: break-spaces;
}

.v-sidebar-menu .fade-animation-leave-active,
.v-sidebar-menu .fade-animation-enter-active {
    white-space: nowrap;
}

.vsm--scroll-wrapper::-webkit-scrollbar {
    width: 0.3rem;
}

.vsm--scroll-wrapper::-webkit-scrollbar-thumb {
    background-color: var(--main);
}

.flex-center-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.flex-center-start {
    display: flex;
    justify-content: start;
    align-items: center;
}

.flex-center-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.flex-end-end {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
}

.align-center {
    display: flex;
    align-items: center;
}

.ellipsis-icon {
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0 10px;
    display: block !important;
    position: relative;
}

.text-gray {
    color: var(--text-grey);
}

.text-light-gray {
    color: var(--light-grey);
}

.v-input {
    width: 100%;
    padding: 0.5rem 0.5rem;
    border: 1px solid var(--light-grey) !important;
    border-radius: 6px;
    color: var(--text);
}

textarea.v-input {
    resize: none;
}

.v-input::placeholder {
    color: var(--light-grey);
}

select {
    /* color: gray !important; */
}

.spacer {
    max-width: 100px;
    width: 100%;
}

.text-underline {
    text-decoration: underline;
}

/* Sidebar */
.input-label {
    display: block;
    padding-bottom: 0.3rem;
    font-weight: 600;
}

.v-checkbox:checked {
    color: red;
}

.v-radio {
    border-radius: 5px;
}

.reorder {}

/* Table Gray */

.table-gray {
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    background-color: var(--body-bg);
}

.table-gray::placeholder {
    color: var(--body-bg);
}

.table-gray input,
select {
    width: 100%;
    padding: 0.3rem 1rem;
    border: none;
    border-radius: 5px;
    background-color: #fff;
}

.table-gray input::placeholder {
    color: var(--light-grey);
    font-size: 0.8rem;
}

.data_info-label {
    position: absolute;
    right: 0;
    left: 80%;
    top: 25%;
    font-size: 0.8rem;
    color: var(--light-grey);
}

.data_info-label2 {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translate(0, -50%);
    font-size: 0.7rem;
    /* color: var(--light-grey); */
    color: #a9a9a9; /* TODO-MAKS testiram za boljšo vidljivost */
}

.topRightIcon {
    position: absolute;
    top: 4px;
    right: 6px;
    opacity: 0.4;
}

/* OBJECT TEMPLATE */

.calculations_table-dropdown {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    background-color: black;
    color: white;
    border-radius: 5px;
    padding: 0.5rem 1rem;
}

.upload-button {
    color: white;
    text-decoration: underline;
    font-size: 0.8rem;
    cursor: pointer;
}

.calculations_table-caption {
    font-weight: bold;
    padding: 1rem 0 0.5rem 0;
}

.calculations_table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1.5rem;
}

.divider {
    border-top: 1px solid black;
    padding-bottom: 0.5rem;
}

.disabled {
    pointer-events: none;
    opacity: 0.4;
}

.calculations_table-section {
    padding-top: 1rem;
    border-bottom: 1px solid var(--lighter-grey);
}

.calculations_table-section input, .calcTableInput {
    width: 100px;
    padding: 0.3rem 1rem;
    border-radius: 5px;
    border: 1px solid var(--lighter-grey);
}

.calcTableInputWrapper {
    position: relative;
    width: min-content;
}

/* Hide number input arrows */
/* Chrome, Safari, Edge, Opera */
.calculations_table-section input::-webkit-outer-spin-button,
.calculations_table-section input::-webkit-inner-spin-button,
.calcTableInput::-webkit-outer-spin-button,
.calcTableInput::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
/* Firefox */
.calculations_table-section input[type=number],
.calcTableInput[type=number] {
    -moz-appearance: textfield;
}

.calculations_table-section span {
    width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calculations_table-profile {
    padding-bottom: 1.5rem;
}

.fa-icon {
    cursor: pointer;
}

.fa-icon:hover {
    transform: scale(1.1);
}

.calc-input-save {
    cursor: pointer;
    position: absolute;
    width: unset !important;
    right: -18px;
    top: 3px;
}

.spacer-long {
    width: 100px;
}

.spacer-short {
    width: 60px;
}

.font-smaller {
    font-size: smaller
}

/* LIBRARIES */

.itemRowBtn {
    border: none;
    background: none;
    width: 100%;
}

.libraryRow {
    padding: 0.5rem 0;
    border-top: 1px solid var(--lighter-grey) !important;
    height: 80px;
    cursor: pointer;
}

.libraryRow:last-child {
    border-bottom: 1px solid var(--lighter-grey) !important;
}

.libraryRow:hover .item-row-input {
    transform: scale(1.05);
}

.libraryRow:hover .item-row-library {
    transform: scale(1.1);
}

.library-input {
    width: 300px;
}

.libraryBreadcrumbs {
    font-weight: bold;
    min-height: 21px;
}

.map-icon {
    min-width: 45px;
}

.text-gray {
    color: var(--text-grey);
}

.cursor-pointer {
    cursor: pointer;
}

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

.loaderRow {
    min-height: 100px;
    width: 160px;
    position: relative;
}

.btn-loader-wrapper {
    /* min-height: 80px; */
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.65);
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-loader {
    border: 5px solid #f3f3f3;
    border-radius: 50%;
    border-top: 5px solid var(--main);
    width: 30px;
    height: 30px;
    -webkit-animation: spin 2s linear infinite;
    /* Safari */
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Transitions */

.popup-slide-enter-active,
.popup-slide-leave-active {
    transition: all 0.5s cubic-bezier(1, 0.5, 0.8, 1);
}

.popup-slide-enter-to,
.popup-slide-leave {
    max-height: 365px;
    height: fit-content;
    overflow: hidden;
}

.popup-slide-enter,
.popup-slide-leave-to {
    overflow: hidden;
    max-height: 0;
}

.button-save-sidebar {
    position: fixed;
    bottom: 0;
    margin-top: 4rem;
    margin-bottom: 4rem;
    margin-left: 8rem;
}

@media (min-width: 992px) {
    /* .vsm_expanded~main {
        padding-left: 14rem;
    } */
}

/* CUSTOM SCROLLBAR */

/* width */

::-webkit-scrollbar {
    width: 10px;
}

/* Track */

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

/* Handle */

::-webkit-scrollbar-thumb {
    background: #000;
    border-radius: 5px;
    cursor: pointer;
}

/* Handle on hover */

::-webkit-scrollbar-thumb:hover {
    background: #222;
}

/* Tree Select */

.vue-treeselect__control:focus-within {
    border: 2px solid black !important;
    border-radius: 5px !important;
}

.vue-treeselect__control {
    height: 39px !important;
    border: 1px solid var(--light-grey) !important;
}

.vue-treeselect--has-value .vue-treeselect__input {
    line-height: 1 !important;
}

.vue-treeselect__single-value {
    top: 2px !important;
}

.vue-treeselect--open-below:not(.vue-treeselect--append-to-body)
.vue-treeselect__menu-container {
    top: calc(100% + 2px) !important;
}

.flex-1 {
    flex: 1;
}

.grayRoundedContainer {
    background-color: var(--body-bg);
    padding: 1.5rem !important;
    margin-top: 1.5rem !important;
    border-radius: 1rem !important
}

.grayRoundedContainer input.u-input {
    border-color: transparent !important;
    background-color: #fff;
}

.grayRoundedContainer select,
.grayRoundedContainer .vue-treeselect__control {
    border-color: transparent !important;
}

.grayRoundedContainer input {
    border-radius: .25em !important;
    border: 0px;
}

.add-text-editor {
    position: relative;
}

.add-text-editor .ql-editor {
    padding-bottom: 52px !important;
}

.add-text-btn {
    position: absolute;
    bottom: 10px;
    right: 20px;
}

.moveArrow {
    width: unset !important;
    padding: 0 5px;
    margin-right: 5px;
    cursor: pointer;
}

.moveArrow:hover {
    transform: scale(1.1);
}

.item-row-data {
    width: 150px;
    opacity: 0.8;
}

.item-row-data:first-of-type {
    width: 200px;
}

.item-row-data__label {
    font-size: 10px;
}

.item-row-data__data {
    font-weight: 600;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

@media screen and (max-width: 990px) {
    main {
        padding: 1.5rem;
        padding-bottom: 50px;
    }

    .v-sidebar-menu .vsm--toggle-btn {
        display: block !important;
        color: #fff !important;
        height: 40px !important;
        margin-top: auto;
    }

    .vsm_collapsed div {
        display: none;
    }

    .vsm_collapsed.customSidebarStyle  {
        background: none !important;
    }
}

@media screen and (max-width: 660px) {
    .of-hide-on-mobile {
        display: none;
    }

    .btn-save {
        width: 100%;
        min-width: 222px;
    }
}

@media screen and (min-width: 659px) {
    .of-show-on-mobile {
        display: none;
    }
}

@media print {
    .customSidebarStyle, .fa-icon, .ellipsis-icon, button, .do-not-print, .moveArrow, .upload-button, .spacer-long, .spacer-short, .vue-treeselect__control-arrow, .vue-treeselect__x-container {
        display: none !important;
    }

    .calculations_table-section span {
        width: 30px;
    }

    main {
        padding: 0 15px;
    }

    section {
        margin: 4px 0 !important;
    }

    .calculations_table-dropdown {
        background: none;
        color: #000;
        font-size: 18px;
        font-weight: bold;
    }

    .print-min-width {
        min-width: 104px;
    }

    select {
        /* for Firefox */
        -moz-appearance: none;
        /* for Chrome */
        -webkit-appearance: none;
    }

    /* For IE10 */
    select::-ms-expand {
        display: none;
    }

    .data_info-label2 {
        position: initial;
        color: #000;
        transform: none;
    }

    .calculations_table-section input, .fakeInput {
        /* border:none !important; */
        text-align: center !important;
        width: 54px !important;
        padding: 0 !important;
        background: none !important;
    }

    .fakeInput {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .surcharge-sum, .calcTableInputWrapper, .table-gray .w-10, .table-gray .w-15 {
        display: flex;
        align-items: center;
    }

    .calculations_table-profile .d-flex {
        flex-wrap: wrap;
        gap: 5px;
    }

    .table-gray .w-10, .table-gray .w-15 {
        min-width: 100px;
    }

    .table-gray .w-10 input, .table-gray .w-15 input {
        text-align: center;
    }

    .topbar {
        margin: 0 !important;
    }

    hr, .topbar-buttons {
        display: none;
    }

    .calculation-single-wrapper {
        font-size: 0.8rem;
    }

    .py-5 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }

    .titleMain {
        font-size: 1.8rem !important;
    }

    h5 {
        margin: 0 !important;
        margin-top: 2.5rem !important;
    }

    .table-gray, .customer-info {
        background: none !important;
        padding: 0 !important;
    }

    .avoid-page-break {
        page-break-inside: avoid;
    }

}
