/* New versta UI css */

.vrst-v3-keyValue-title {
    font-size: 14px;
    line-height: 1 !important;
    color: var(--vrst-v3-color-gray600) !important;
}

.vrst-v3-font-face {
    font-family: "Inter", sans-serif !important;
}

:root {
    --vrst-v3-color-gray600: #475467;
}

.order-list-filter-button {
    background-color: transparent !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 18px !important;
    text-align: left !important;
    text-underline-position: from-font !important;
}

.status-warning {
    background-color: #ffe69c !important;
    color: #bd8e00 !important;
}
.status-danger {
    background-color: #ffe9eb !important;
    color: #dc3545 !important;
}
.status-success {
    background-color: #dcf4e9 !important;
    color: #12b76a !important;
}
.status-info {
    background-color: #e7f1ff !important;
    color: #0d6efd !important;
}
.status-gray {
    background-color: #f0f0f0 !important;
    color: #6c757d !important;
}

.order-list-status {
    border-radius: 6px !important;
    display: inline-block !important;
    padding: 2px 8px !important;
    width: fit-content !important;
}

.editable-cell {
    border-bottom: 1px dashed #98a2b3;
}

.input-icon-position {
    position: absolute;
    right: 10px;
}

.input-icon-error {
    color: #dc3545;
}

.input-icon-loading {
    color: #182331;
}

/* Стиль для обычного состояния editableCell*/
.input-default {
    background-color: #e7f1ff !important;
    color: black !important;
    padding-right: 0.75rem !important;
    border-color: #86b7fe !important;
    box-shadow: none !important;
}

/* Стиль для состояния загрузки или ошибки в editableCell*/
.input-loading-error {
    background-color: #f2f4f7 !important;
    color: black !important;
    padding-right: calc(1.5em + 0.75rem) !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

.orderview-title {
    font-size: 14px;
    line-height: 1.3 !important;
    color: var(--vrst-v3-color-gray600);
}

.orderview-value {
    font-size: 14px;
    line-height: 1.3 !important;
}

.order-event {
    font-size: 14px;
    line-height: 1.3 !important;
}

.fw-500 {
    font-weight: 500 !important;
}

.collapse-extend-text {
    color: #0d6efd;
    text-decoration: underline dotted;
}

.horizontal-tab {
    > .nav-item > button {
        font-size: 14px !important;
        color: #667085;
        padding: 0.5rem;
        border: 0;

        > .tab-title-text {
            color: #667085;
        }

        > .tab-title-span {
            color: #667085;
            border-radius: 40%;
            background-color: #f2f4f7;
            padding: 0.125rem 0.5rem 0.125rem 0.5rem;
        }
    }

    > .nav-item > button.active {
        border-bottom: 0.125rem solid #101828 !important;
        color: #101828;
        font-weight: 500 !important;

        > .tab-title-text {
            color: #101828 !important;
        }

        > .tab-title-span {
            font-weight: 400 !important;
        }
    }
}

.switch-button-container {
    background-color: #f2f4f7;

    > .btn-selected {
        background-color: white;
    }

    > .btn-selected:hover {
        background-color: white !important;
        border-color: white !important;
    }

    > .btn-muted {
        color: #6c757d !important;
    }
}

.width-100p {
    width: 100% !important;
}

.event-important-icon {
    color: #dc3545;
}
.event-comment-icon {
    color: #475467;
}
.event-done-icon {
    color: #12b76a;
}

.event-circle-check-icon {
    > .event-circle-check-icon-circle {
        color: #d1fadf;
    }

    > .event-circle-check-icon-check {
        color: #12b76a;
    }
}

.event-circle-icon {
    color: #d0d5dd;
}

.collapse-extend-text {
    color: #0d6efd;
    text-decoration: underline dotted;
    cursor: pointer;
}

.collapse-text-button {
    color: #475467;
    text-decoration: underline dotted;
    font-size: 14px;
    cursor: pointer;
    user-select: none;
}

.clickable-text-button {
    color: #0d6efd;
    text-decoration: underline dotted;
    cursor: pointer;
    font-weight: 400;
    font-size: 14px;
    line-height: 130%;
}

.tracking-table {
    .tracking-table-header {
        font-size: 14px;
        line-height: 130%;

        > tr {
            > th {
                color: #667085 !important;
                background-color: #f2f4f7 !important;
                font-weight: 400;
                padding: 6px 4px 6px 0;
                text-align: left;
                text-wrap-mode: nowrap;
            }

            > th:is(:first-child) {
                padding-left: 16px;
            }

            > th:not(:last-child) {
                padding-right: 16px;
            }

            > th:is(:last-child) {
                text-align: end;
            }
        }
    }

    .tracking-table-body {
        font-size: 14px;
        font-weight: 400;
        font-style: normal;
        color: #212529;
        line-height: 130%;
        text-overflow: ellipsis;
        > tr {
            border-bottom: 1px solid #f2f4f7;

            > td {
                padding: 6px 16px 6px 0px;
                text-align: left;
                vertical-align: baseline !important;
                text-overflow: ellipsis;
            }

            > td:is(:first-child) {
                padding-left: 14px;
            }

            > td:is(:last-child) {
                text-align: end;
                padding-right: 0px;
            }
        }
    }
}

.unauthorized-event-mobile-header {
    margin-left: calc(var(--bs-gutter-x) * -0.5);
    margin-right: calc(var(--bs-gutter-x) * -0.5);
}

.unauthorized-event-mobile-header:not(:first-child) {
    border-top: 1px solid #ced4da;
}

.event-group-header:not(:first-child) {
    border-top: 1px solid #ced4da;
    padding-top: 0.5rem;
}

.sub-order-bg-color {
    background-color: #f9fafb !important;
}

.border-top-gray-100 {
    border-top: 1px solid #f2f4f7 !important;
}

.border-bottom-gray-100 {
    border-bottom: 1px solid #f2f4f7 !important;
}

.color-gray-600 {
    color: #475467 !important;
}

.color-gray-800 {
    color: #1d2939;
}

.color-gray-900 {
    color: #101828 !important;
}

.tracking-add-comment {
    background-color: #f8f9fa !important;
    color: var(--bs-btn-color) !important;
    border: 0 !important;

    :hover {
        color: var(--bs-btn-color) !important;
    }
}

.py-10 {
    padding: 10px 0 10px 0 !important;
}

.width-24p {
    min-width: 24px !important;
    max-width: 24px !important;
}

.no-caret-dropdown {
    .dropdown-toggle::after {
        display: none !important;
    }
}

.modal-centered {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 50% !important;
    max-height: 75% !important;
    margin: 0 0 0 0 !important;
}

.product-catalog-modal {
    height: 100%;
    display: flex;
    flex-direction: column;

    > .modal-content {
        height: 100%;
        display: flex;

        > .modal-body {
            display: flex;
            flex: 1;
            flex-direction: column;
            min-height: 0;

            > .product-catalog-list {
                display: flex;
                overflow-y: auto;

                > table {
                    > thead {
                        position: sticky;
                        top: 0;
                        border-collapse: separate;
                    }
                }
            }
        }
    }
}

.events-data-modal {
    .modal-header {
        border: 0;
        padding: 20px 24px 8px 24px;
    }

    .modal-body {
        padding: 0px 24px 20px 24px;
    }

    .events-data-table {
        font-size: 14px;
        line-height: 130%;
        font-weight: 400;

        .events-data-table-row {
            border: 1px solid #f2f4f7 !important;

            .events-data-table-key {
                border-right: 1px solid #f2f4f7 !important;
                font-size: 14px;
                font-weight: 400;
                padding: 6px 16px 6px 16px;
            }

            .events-data-table-value {
                padding: 6px 16px 6px 16px;
                font-size: 14px;
                font-weight: 400;
                background-color: #fcfcfd;
            }
        }

        .events-data-table-row:is(:first-child) {
            border-top-left-radius: 8px;
            border-top-right-radius: 8px;
        }

        .events-data-table-row:is(:last-child) {
            border-bottom-left-radius: 8px;
            border-bottom-right-radius: 8px;
        }
    }
}

.white-space-preline {
    white-space: pre-line;
}
