.ma-vmi-location-details {
    .top-actions {
        .top-actions-buttons {
            display: flex;
            justify-content: space-evenly;
            align-items: center;

            .btn {
                margin-right: 5px;
            }
        }

        position: relative;
        top: -60px;
        margin-bottom: -60px;
        overflow: hidden;
        float: right;
    }

    .location-btn {
        margin: auto;
    }

    .location-details {
        margin-top: 25px;
    }

    .table-select {
        margin-top: 15px;
        max-width: 33%;
    }

    .table-select-header {
        margin: 0px;
    }

    .table-view-select {
        select, select option {
            text-transform: capitalize;
        }
    }

    .location-header {
        margin: 0px;
    }

    .col-select {
        input[type="checkbox"] {
            margin-right: 0;
        }
    }

    .col-name {
        a {
            max-width: 450px;
            overflow: hidden;
            display: block;
            text-overflow: ellipsis;
        }
    }

    .col-part-number {
        max-width: 150px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

.vmi-location-details-no-products {
    h2 {
        text-align: center;
    }
}

.vmi-location-details-product-table {
    .results-count {
        display: inline-block;
        padding: 0.5em .75em;
    }

    .btn-group {
        display: inline-block;
        padding: 0.5em .75em;
        float: right;
    }
}

.search-vmi-products {
    width: 50% !important;

    label.accord-head {
        display: inline-block;
    }
}

.vmi-location-details-orders-table {
    .results-count {
        display: inline-block;
        padding: 0.5em .75em;
    }

    .btn-group {
        display: inline-block;
        padding: 0.5em .75em;
        float: right;
    }
}

.search-vmi-orders {
    width: 50% !important;

    label.accord-head {
        display: inline-block;
    }
}

.vmi-location-details-no-orders {
    h2 {
        text-align: center;
    }
}

.popup-vmi-location {
    .modal-wrap {
        max-width: 480px;
    }

    textarea, .location-name {
        margin-bottom: 0;
    }

    .is-required-field-tooltip {
        margin-bottom: 1rem;
        opacity: 0.8;
    }

    .spacer-element {
        margin-bottom: 0.5rem;
    }

    .max-field-tooltip {
        font-size: 0.9rem;
        opacity: 0.5;
    }

    label {
        font-weight: 600;
    }

    .error {
        margin: 0.7rem 0;
    }

    input, textarea {
        &.ng-invalid.ng-touched {
            border-color: #c60f13;
        }
    }
}

.popup-delete-orders {
    .modal-wrap {
        max-width: 480px;
    }
}

@media all and (max-width: 767px) {
    .ma-vmi-location-details {
        .top-actions {
            .top-actions-buttons {
                display: flex;
                flex-direction: column-reverse;
                float: none;

                button, a.btn {
                    width: 100%;
                    margin-bottom: 7px;
                    margin-right: 0px;
                }
            }

            top: 0px;
            margin: 0px;
            float: none;
        }
    }
}