﻿.logo-image {
    background-image: url(../images/logo.png) !important;
    background-size: 90%;
    background-repeat: no-repeat;
}

.fixbottom {
    position: fixed; bottom: 0px; width:100%;
}

/* * * General * * */
.stepper {
    margin: 0.5rem 0;
    width: 152px;
}
.stepper a, .stepper input {
    width: 50px;
    height: 50px;
    line-height: 50px;
    font-size: 18px !important;
    font-weight: 700;
}

.page-content {
    transform: none !important;
}

.rounded-12px {
    border-radius: 12px !important;
}

.mr-50 {
    margin-right: 0.5rem !important;
}
.ml-50 {
    left: 0.5rem !important;
}
.mr-25 {
    margin-right: 0.25rem !important;
}

.ml-25 {
    left: 0.25rem !important;
}


/* * * CARDS (General) * * */
h1:empty {
    display: none;
}

/* * * LISTS (General) * * */
.list-custom-small > .item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: space-between;
    padding: 0.1rem 0;
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem;
    border-bottom: solid 1px rgba(0, 0, 0, 0.05);
}
.list-custom-small > .item > .name {
    line-height: 18px;
    font-weight: 600;
    color: #1f1f1f;
}

/* * * Left & right menu * * */
.menu-box-right .list-group > a,
.menu-box-left .list-group > a {
    padding: 0.5rem 0;
}
.menu-box-right .list-group > button,
.menu-box-left .list-group > button {
    margin: 0.5rem 0;
    line-height: 30px;
}
.menu-box-right .card-top,
.menu-box-left .card-top {
    left: auto;
}
.menu-box-right .card-top .close-menu,
.menu-box-left .card-top .close-menu {
    color: #1f1f1f;
}
.menu-box-right .list-menu.login,
.menu-box-left .list-menu.login {
    position: fixed;
    width: calc(100% - 20px);
    bottom: 30px;
}
/* gradient & shadow */
.menu-box-right .bg-gradient,
.menu-box-left .bg-gradient {
    background: linear-gradient(to bottom,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.05) 20%,
        rgba(0, 0, 0, 0.1) 30%,
        rgba(0, 0, 0, 0.2) 70%,
        rgba(0, 0, 0, 0.3) 100%
    ) !important
}
.menu-box-right .card-bottom,
.menu-box-left .card-bottom {
    text-shadow: -1px 2px 2px rgba(140, 140, 140, 1);
}

/* * * HEADER * * */
.header {
    display: flex;
    gap: 0.25rem;
    justify-content: space-between;
    align-items: center;
}
.header .header-icon {
    position: relative;
    flex-shrink: 0;
}
.header .header-title {
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.page-title-fixed {
    top: 0;
    z-index: 9;
    gap: 0;
}
.page-title .dropdown-wrapper {
    margin-right: unset;
}
.page-title-fixed > h1 {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    /*font-size: 26px;*/
    margin-right: 0.5rem;
}
.page-title-fixed > .main-menu-btn {
    margin-left: 15px;
}
.page-title.page-title-fixed > h2 {
    margin: 0 auto;
    text-align: center;
    text-overflow: ellipsis;
    overflow: hidden;
    -webkit-line-clamp: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
}
.header > .client-name {
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

/* * * Header dropdown menu * * */
.dropdown-menu > .list-group {
    min-width: 200px;
}
.dropdown-menu > .list-group > a {
    /*padding-bottom: 0.5rem;*/
    line-height: 45px;
}

/* * * CLIENTS * * */
.list-custom-large > a {
    display: grid;
    grid-template-columns: 32px minmax(0, auto) minmax(64px, min-content);
    column-gap: 15px;
    align-items: center;
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem;
}
.list-custom-large > a > i {
    grid-row: 1 / 3;
    grid-column: 1 / 2;
}
.list-custom-large > a > .name {
    grid-row: 1 / 2;
    grid-column: 2 / 3;
    line-height: 18px;
    align-self: end;
}
.list-custom-large > a > .address {
    grid-row: 2 / 3;
    grid-column: 2 / 3;
    line-height: 12px;
    align-self: start;
}
.list-custom-large > a > .action {
    grid-row: 1 / 3;
    grid-column: 3 / 4;
    display: flex;
    align-items: center;
}
.list-custom-large > a > .action > i {
    font-size: 1rem;
    color: var(--bs-success);
}
/* * * DOCUMENTS * * */
.list-custom-large.documents > a {
    display: flex;
}
.list-custom-large.documents > a > i {
    flex-shrink: 0;
}
.list-custom-large.documents > a > .body {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    row-gap: 0.1rem;
    column-gap: 0.5rem;
}
.list-custom-large.documents > a > .body > * {
    white-space: nowrap;
}
.list-custom-large.documents > a > .body > .description {
    line-height: 12px;
    margin-bottom: 0.2rem;
}
.list-custom-large.documents > a .status {
    font-size: 11px;
    padding: 0 6px;
    border-radius: 4px;
    margin-right: auto;
}

/* * * ORDER - PORUDŽBENICA * * */
#ntfRemoveFromBasket > h2 {
    font-size: 18px;
    padding: 0 0.25rem;
}
.order-item .order-item-img img {
    height: 100%;
    object-fit: contain;
    padding: 4px;
}

.divider:last-child {
    display: none;
}

.fac label,
.fac > span::after {
    font-size: 18px;
    line-height: 36px;
}
.fac > span::after {
    font-size: 20px;
}
.fac-radio > input[type=radio] + label:before {
    font-size: 14px;
    padding-left: 4px;
}

.fac.selected label,
.fac.selected > span {
    color: var(--bs-success);
}

.fac.selected-red label,
.fac.selected-red > span {
    color: var(--bs-red);
}

.fac.selected-blue label,
.fac.selected-blue > span {
    color: var(--bs-primary);
}

.order-shipping-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.order-shipping-methods > * {
    flex-shrink: 0;
    flex-basis: 150px;
}
.order-shipping-methods .povrat {
    border-top: 2px solid rgba(13, 110, 253, 0.2);
    border-bottom: 2px solid rgba(13, 110, 253, 0.2);
    margin: 0.5rem 0;
    padding: 0.2rem 0;
}

/* * * SALES ITEMS - LISTA PROIZVODA * * */
.sales-item .item-image img {
    height: 100%;
    object-fit: contain;
}
.sales-item .cta {
    height: 50px;
    width: 50px;
    line-height: 38px;
    padding: 0;
    font-size: 16px;
    padding-top: 4px;
}

@media (max-width: 380px) {
    .sales-item .stepper {
        width: 137px;
    }

    .sales-item .stepper a,
    .sales-item .stepper input {
        width: 45px;
        height: 45px;
        line-height: 45px;
    }

    .sales-item .item-image img {
        width: 88px;
    }

    .sales-item .sales-item-body {
        margin-left: 0.5rem !important;
    }

    .sales-item .cta {
        height: 46px;
        width: 46px;
        line-height: 38px;
        padding-top: 2px;
    }
}

@media (max-width: 340px) {
    .sales-item .stepper {
        width: 131px;
    }
    .sales-item .stepper a,
    .sales-item .stepper input {
        width: 43px;
        height: 43px;
        line-height: 43px;
    }
    .sales-item .item-image img {
        width: 80px;
    }
    .sales-item .cta {
        height: 44px;
        width: 44px;
        line-height: 36px;
    }
}



/* FIKSNI MENI (footer-bar) */
#footer-bar .basket .basket-indicator {
    position: absolute;
    top: 4px;
    left: 50%;
    background-color: #da4453;
    color: #fff;
    /*padding: 6px;*/
    height: 20px;
    width: 20px;
    line-height: 20px;
    border-radius: 50%;
}



/* na prvom card-style u html-u sam dodala dodatnu klasu print */
@media print {
    html,
    body {
        margin: 0;
        padding: 0;
        position: relative;
        width: 100%;
    }

    #page {
        margin: 0;
    }

    .content {
        margin: 20px 0;
    }

    .page-title {
        opacity: -1 !important;
    }

    .page-content {
        width: 100%;
        position: absolute;
        top: 0;
        z-index: 999999999999;
    }

    .ps-3 {
        padding-left: 0 !important;
    }

    .card-style {
        margin: 0;
        box-shadow: unset;
        border-radius: unset;
    }

        .card-style .content > h1 {
            font-size: 12px;
            line-height: 15px;
            margin-bottom: 1px;
            border-bottom: 1px dashed #000;
        }

        .card-style.print .d-flex {
            border-bottom: 1px dashed #000;
            margin-bottom: 10px !important;
            padding-bottom: 10px;
        }

        .card-style .d-flex h1 {
            font-size: 12px;
            line-height: 15px;
            margin-bottom: 0;
        }

    .color-highlight {
        color: #000 !important;
    }

    .card-style.print .d-flex:first-of-type {
        border-top: 1px dashed #000;
        padding-top: 10px;
    }

    .card-style.print .d-flex:last-of-type {
        border-bottom: unset;
    }

    .card-style.print .d-flex div:first-of-type {
        display: none;
    }

    .card-style.print .d-flex div:last-of-type p {
        font-size: 10px;
        line-height: 15px;
        margin-bottom: 2px !important;
    }

    .card-style.print .d-flex div:last-of-type h5 {
        font-size: 12px;
        line-height: 18px;
        margin-bottom: 0;
    }

    .card-style .d-flex .float-end {
        float: unset !important;
        display: block;
    }

    .card-style .d-flex h4 {
        font-size: 12px !important;
        line-height: 18px;
    }

    .card-style .d-flex h6 {
        font-size: 12px !important;
        line-height: 18px;
    }

    .divider {
        background-color: #000 !important;
    }

    #footer-bar {
        display: none;
    }

    .card .card-style .hideprintdiv,
    .hideprintdiv,
    .menu .menu-box-bottom .rounded-m .hideprintdiv
    {
        display: none !important;
    }
}


.e-listview.e-list-template .e-list-wrapper.e-list-multi-line {
    padding: 0 !important;
}

.list-group .e-listview {
    border: none;
}
.list-group .e-listview .e-list-item:last-child {
    border-bottom: none;
}
.list-group .e-listview .e-list-item-header:not(.document-add) > div {
    padding: 16px 0 !important;
}

.fixbottom > button {
    width: calc(100% - 30px);
    margin-left: 15px;
    margin-bottom: 15px;
}

.e-listview.e-list-template .e-list-wrapper.e-list-avatar .e-avatar {
    position: relative !important;
}

.document-client-item {
    display: flex;
    align-items: center;
}
.document-client-item .document-client {
    display: flex;
    gap: 6px;
}
.document-client-item .document-client .e-avatar {
    flex-shrink: 0;
    margin: auto 0 !important;
}

.document-client-item .document-client .body {
    padding-right: 26px;
}

.delivery-document-details {
    display: flex;
    align-items: center;
}
.delivery-document-details .body {
    width: 100%;
}
.delivery-document-details .body .e-list-content {
    padding-right: 10px !important;
    white-space: normal !important;
}

.e-checkbox-wrapper .e-check::before,
.e-css.e-checkbox-wrapper .e-check::before {
    font-size: 12px;
    top: 2px;
    position: relative;
}

.e-listview .e-checkbox .e-checkbox-right {
    margin: 8px 0 0 8px;
}


/* * * INVOICE * * */
.invoice-header > .content {
    text-align: center;
}
.invoice-content .invoice-item {
    display: flex;
}
.invoice-content .invoice-item:not(:last-of-type) {
    padding-bottom: 1rem;
    border-bottom: solid 1px rgba(0, 0, 0, 0.05);
    margin-bottom: 1rem;
}
