body {
  //min-height: 100vh;
  //min-height: -webkit-fill-available;

  //min-width: 100vw;
  //min-width: -webkit-fill-available;
}

.search-highlight {
    color: gold;
}

.loader-container {
    position: absolute;
    top: 0;
    left: 5px;
    z-index: 1000;

    &.right {
        left: auto;
        right: 5px;
    }
}

.header-container {
    z-index: 1030;
}

.sales-new-content-main, .sales-view-content-main, .sales-return-view-content-main, .return-view-content-main, .c-nomenclature-selection {
    .items-container {
        .items-table {
            --bs-table-active-bg: rgba(var(--bs-emphasis-color-rgb), 0.05);

            .item-price, .item-quantity, .item-sum, .item-discount, .item-sum-discount, .items-all-sum, .items-all-discount, .item-stock {
                text-align: center;

                &::-webkit-outer-spin-button, &::-webkit-inner-spin-button {
                    display: none;
                }
            }

            .item-discount, .items-all-discount, .items-all-discount-percent, .item-discount-value, .item-quantity, .item-stock {
                max-width: 4rem;
                margin: 0 auto;
                float: none;
                text-align: center;
            }

            .item-price, .items-all-sum, .item-sum-discount {
                max-width: 6rem;
                margin: 0 auto;
                float: none;
            }

            .item-discount, .items-all-discount, .item-price {
                margin-right: 0;
            }

            .item-supplier-price-check-trigger {
                margin: 0 auto;
                margin-left: 0;
            }
        }

        .button-math-round {
            display: none;
        }
    }
}

.nomenclature-content-main {
    .sticky-top {
        top: 73px;
    }
    .result-container {

    }
}

.nomenclature-search-result {
    .card {
        .card-body {
            padding: 0;

            .list-group {
                .list-group-item {
                    &.dont-buy {
                        background-color: rgba(255, 0, 0, 0.03);
                        .row {
                            .col:first-child:before {
                                content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='red' class='bi bi-exclamation-octagon' viewBox='0 0 16 16'%3E%3Cpath d='M4.54.146A.5.5 0 0 1 4.893 0h6.214a.5.5 0 0 1 .353.146l4.394 4.394a.5.5 0 0 1 .146.353v6.214a.5.5 0 0 1-.146.353l-4.394 4.394a.5.5 0 0 1-.353.146H4.893a.5.5 0 0 1-.353-.146L.146 11.46A.5.5 0 0 1 0 11.107V4.893a.5.5 0 0 1 .146-.353zM5.1 1 1 5.1v5.8L5.1 15h5.8l4.1-4.1V5.1L10.9 1z'/%3E%3Cpath d='M7.002 11a1 1 0 1 1 2 0 1 1 0 0 1-2 0M7.1 4.995a.905.905 0 1 1 1.8 0l-.35 3.507a.552.552 0 0 1-1.1 0z'/%3E%3C/svg%3E")
                            }
                        }
                    }
                }
            }
        }
        .show-more {
            cursor: pointer;
        }
    }

    &.search-result {

    }

    &.barcode-result {
        .card {
            .card-header {
                .btn-close {

                }
            }

            .card-body {
                .list-group {
                    .list-group-item {
                        &.is-barcode-search {
                            background-color: #ffd70012;
                        }
                    }
                }
            }
        }
    }
}

.nomenclature-edit-content {
    .articles-edit-container {
        .accordion-item {
            .h2 {
                &.collapse_new {
                    text-align: center;
                }
            }
        }
    }

    textarea {
        field-sizing: content;
        min-height: 4rem;
    }
}


.dropdown-catalog {
    .dropdown-menu {
        max-height: 300px;
        overflow: auto;

        li {

        }
    }
}
.c-list-container {
    .sticky-top {
        top: 73px;
    }
    .table-active {
        --bs-table-bg-state: rgba(255, 225, 53, 0.14);
    }
}

.sources-supply-new-content-main {
    .sources-supply-pay-cash-container {
        display: none;
    }
}

.sales-view-content-main {
    .btn-receipt-kkm-return {
        display: none;
    }
}

#sidebar-btn {
    display: none;
}

#left-panel-sidebar-modal {
    .modal-dialog {
        height: calc(100% - 2rem);
        margin-right: 1rem;
        margin-top: 1rem;
        margin-bottom: 1rem;

        .modal-content {
            height: 100%;
        }
    }
}


.supplier-logo {
    display: inline-block;
    width: 88px;
    height: 23px;
    object-fit: contain;
    border-radius: 6px;
    vertical-align: middle;
    background: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .12);
}

.supplier-logo-table {
    width: 96px;
    height: 24px;
}

.supplier-logo-compact,
.supplier-logo-inline {
    width: 92px;
    height: 24px;
}

.supplier-logo-status {
    width: 76px;
    height: 19px;
}

.supplier-logo-history {
    width: 76px;
    height: 19px;
}

.supplier-logo-widget {
    display: block;
    width: 92px;
    height: 24px;
}

.supplier-logo-badge {
    padding: .1rem .5rem;
    line-height: 1;
}

.supplier-logo-fallback {
    font-weight: 600;
    white-space: nowrap;
}
