.block-exter-tender_v2, .block-exter-tender_v2_ended {
    margin-bottom: 12px;
    border: none;
    border-radius: 20px;
    position: relative;
    padding: 20px;
    background-color: var(--neutral-white);
    min-height: 90px;

    @media (max-width: 991px) {
        padding: 22px 15px 40px 15px;
    }
}

.block-exter-tender_v2.row, .block-exter-tender_v2_ended.row {
    padding: 0;
}

.opisan {
    display: none;
}

.block-exter-tender__number, .block-exter-tender2__number {
    font-weight: 800;
    font-size: 20px;
    color: var(--neutral-navy);

    @media (max-width: 991px) {
        font-size: 16px;
        margin-right: 8px;
    }
}
.block-exter-tender__value, .block-exter-tender__chain__value, .block-exter-tender2__value {
    font-weight: 800;
    font-size: 20px;
    color: var(--primary-blue);

    @media (max-width: 991px) {
        font-size: 16px;
    }
}

.tektime, .time-to-beg-tender {
    font-weight: 800;
    font-size: 20px;
    font-variant-numeric: tabular-nums;

    @media (max-width: 991px) {
        font-size: 16px;
    }
}

.bid-is-mine {
    border: 0;
    height: 24px;
    border-radius: 4px;
    gap: 10px;
    padding: 0 4px;
    color: var(--neutral-white);
    background-color: var(--primary-blue);
    font-weight: 400;
    font-size: 14px;
}

.lost-bid {
    border: 0;
    height: 24px;
    border-radius: 4px;
    gap: 10px;
    padding: 0 4px;
    color: var(--neutral-white);
    background-color: var(--secondary-red);
    font-weight: 400;
    font-size: 14px;
}

.hint {
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    color: var(--neutral-navy);

    @media (max-width: 991px) {
        font-size: 12px;
    }
}

.hint-small {
    text-wrap: nowrap;
    font-weight: 500;
    font-size: 14px;
    color: var(--neutral-navy);

    @media (max-width: 991px) {
        font-size: 12px;
    }
}

.tender-head {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px;

    @media (max-width: 576px) {
        align-items: baseline;
        margin: 8px 0;
    }
}

textarea {
    width: 100%;
}

.modal-bids {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    align-items: start;
}

#priceOldChain, #priceOld, #priceOldNDS, #priceOldNDSChain, #priceNew, #priceNewNDS, #priceNewChain, #priceNewNDSChain  {
    margin-top: 20px;
}

#old-price, #new-price, #old-priceChain, #new-priceChain {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

#priceNew2, .alert.text-danger {
    display: none;
}

.tender-head-box {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: flex-start;
    flex-wrap: wrap;
    row-gap: 8px;
    column-gap: 26px;

    @media (max-width: 767px) {
        display: block;
        gap: 8px;
    }
}

.tender-type {
    padding: 4px;
    font-size: 14px;
    font-weight: 500;
    margin-left: 4px;
    color: var(--neutral-black);
    background-color: var(--neutral-light-gray);

    @media (max-width: 991px) {
        font-size: 12px;
    }
}

.tender-info {
    @media (max-width: 576px) {
        display: flex;
        flex-direction: row;
        justify-content: flex-start;
        align-items: baseline;
        gap: 4px;
    }
}

.number-and-type {
    display: flex;
    align-items: center;

    @media (max-width: 576px) {
        align-items: baseline;
        justify-content: space-between;
        width: 100%;
    }
}

.tender-load-info {
    display: flex;
    align-items: baseline;
}

.tender-load-info .hint {
    background: url('../image/t_load.svg') no-repeat left center;
    padding-left: 28px;
}

.tender-load-info .load-date {
    margin-left: 8px;
    height: 30px;
    font-weight: 700;
    font-size: 16px;
    line-height: 30px;
    vertical-align: middle;

    @media (max-width: 991px) {
        font-size: 12px;
    }
}

.current-bid, .tender-time, .my-bid, .block-exter-tender__counter {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-end;

    @media (max-width: 576px) {
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
        margin-top: 0;
        align-items: baseline;
    }
}

.my-bid {
    margin-top: 20px;

    @media (max-width: 576px) {
        margin-top: 0;
        justify-content: flex-end;
    }
}

.short-route {
    display: flex;
    flex-wrap: wrap;
    margin: 20px 0;
    font-weight: 900;
    font-size: 20px;
    color: var(--secondary-blue);

    @media (max-width: 991px) {
        font-size: 16px;
        margin: 12px 0;
    }
}

.route-from {
    background: url('../image/t_route.svg') no-repeat left center;
    padding-left: 26px;

}
.route-to {
    background: url('../image/arrow-from.svg') no-repeat left center;
    padding-left: 26px;
    margin-left: 8px;
}

.chain_route {
    margin-top: 12px;

    @media (max-width: 991px) {
        margin-top: 8px;
    }
}

.is-chain, .all-chain-route {
    @media (max-width: 991px) {
        font-size: 12px;
    }

}

.block-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 200px;

    @media (max-width: 767px) {
        max-width: unset;
        width: 100%;
    }
}

.block-exter-tender_v2 .block-button-exter .button-16 {
    border: 1px solid var(--neutral-marble);
    border-radius: 8px;
    padding: 8px 12px;
    width: 34px;
    height: 34px;
    margin-left: 24px;
    background-position: center;
    background-repeat: no-repeat;

    @media (max-width: 567px) {
        margin-left: 12px;
    }
}

.block-exter-tender_v2 .block-button-exter .button-16:first-child {
    margin-left: 0;
}

.button-delete {
    background-image: url('../image/delete16.png');
}

.button-edit {
    background-image: url('../image/edit16.png');
}

.button-copy {
    background-image: url('../image/copy16.png');
}

.button-files {
    background-image: url('../image/file16.png');
}

.button-extend-exter{
    background-image: url('../image/extend16.png');
}

.block-exter-tender__route {
    background: url('../image/t_route.svg') no-repeat left center;
    padding-left: 26px;
    font-weight: 500;
    font-size: 14px;
    margin-top: 10px;
    overflow: hidden;

    @media (max-width: 991px) {
        font-size: 11px;
    }
}

.block-exter-tender__route-from {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 6px;

    @media (max-width: 991px) {
        padding-right: 20px;
    }
}

.block-exter-tender__route-to {
    max-width: 100%
}

.block-exter-tender__route-from div, .block-exter-tender__route-to div {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;

    @media (max-width: 991px)  {
        font-size: 12px;
    }
}


.block-exter-tender__preview, .common-page__chainFrame {
    padding: 0 0 0 40px;

    @media (max-width: 991px) {
        padding: 0;
    }
}

.time-and-buttons {
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: space-between;
    align-items: flex-end;

    @media (max-width: 576px) {
        margin-top: 8px;
        align-items: stretch;
        width: 100%;
        gap: 16px;
    }
}

.block-exter-tender__preview-info .yes-bids {
    font-size: 12px;
    color: var(--neutral-black);
    font-weight: 600;
}

.block-exter-tender__loading {
    font-weight: 500;
    font-size: 14px;
    margin-top: 8px;

    @media (max-width: 991px) {
        font-size: 12px;
    }
}

.block-exter-tender__loading_mt {
    margin-top: 28px;
}

.block-exter-tender__loading span:nth-child(1) {
    color: var(--neutral-top-shelf);
}

.block-exter-tender__loading span:nth-child(2) {
    color: var(--neutral-black);
    margin-left: 4px;
}

.block-exter-tender_v2 .btn-viewfdescruser,
.block-exter-tender_v2_ended .btn-viewfdescruser,
.block-exter-tender_v2 .bt-exter-index-tender-note {
    width: 24px;
    height: calc(100% - 20px);
    border: none;
    background-color: transparent;
    background-image: url('../image/t_arrow_2.svg');
    background-repeat: no-repeat;
    background-position: center bottom;
    position: absolute;
    bottom: 20px;
    left: 20px;
    padding: 0;
    font-size: 0;

    @media (max-width: 991px) {
        height: 24px;
        left: 10px;
        bottom: 10px;
    }
}

.block-exter-tender__price-block {
    width: max-content;
    text-align: right;

    @media (max-width: 991px) {
        text-align: left;
        margin-top: 10px;
    }
}

.block-exter-tender__cur-price {
    font-weight: 500;
    font-size: 12px;
    line-height: 140%;
    color: var(--neutral-top-shelf);
    margin-top: 2px;
}

.bids-and-buttons {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 32px;

    @media (max-width: 991px) {
        gap: 12px;
    }

    @media (max-width: 576px) {
        flex-direction: row;
        justify-content: space-between;
    }
}

.block-status-exter {
    box-sizing: border-box;
    vertical-align: middle;
    text-align: center;
}

.block-status-exter.carrier {
    @media (max-width: 576px)  {
        order: 3;
    }
}

.block-exter-tender__status {
    border-radius: 4px;
    height: 34px;
    min-width: 150px;
    padding: 0 6px;
    font-weight: 700;
    font-size: 14px;
    line-height: 34px;
    opacity: 1;

    @media (max-width: 576px) {
        height: 34px;
        line-height: 34px;
        font-size: 14px;
    }
}

.block-exter-tender__status_draft {
    background: var(--draft-rgba);
}

.block-exter-tender__status_search_ts {
    background: var(--search_ts-rgba);
}

.block-exter-tender__status_bid {
    background: var(--bid-rgba);
}

.block-exter-tender__status_found_ts {
    background: var(--found_ts-rgba);
}

.block-exter-tender__status_coordination {
    background: var(--coordination-rgba);
}

.block-exter-tender__status_agreed {
    background: var(--agreed-rgba);
}

.block-exter-tender__status_completed {
    background: var(--completed-rgba);
}

.block-exter-tender__status_sent {
    background: var(--sent-rgba);
}

.block-exter-tender__status_delivered {
    background: var(--delivered-rgba);
}

.block-exter-tender__status_pay {
    background: var(--pay-rgba);
}

.block-exter-tender__status_paid {
    background: var(--paid-rgba);
}

.block-exter-tender__status_closed {
    background: var(--closed-rgba);
}

.block-exter-tender__status_arhive {
    background: var(--arhive-rgba);
}

.block-exter-tender__status_not_active {
    background: var(--not_active-rgba);
}

.common-page__chainFrame {
    display: none;
    border-top: 1px solid var(--neutral-marble);
    margin-top: 20px;
}

.block-exter-tender__details {
    padding: 20px 12px 11px 42px;
    margin-top: 20px;
    border-top: 1px solid var(--neutral-marble);

    @media (max-width: 991px) {
        padding: 20px 15px 11px 15px;
    }
}

.block-exter-tender__details-title {
    font-weight: 600;
    font-size: 14px;

    @media (max-width: 991px) {
        font-size: 13px;
    }
}

.block-exter-tender__details-sub-title {
    font-weight: 500;
    font-size: 12px;
    color: var(--neutral-top-shelf);
}

.block-exter-tender__details-text {
    font-size: 14px;
    font-weight: 500;

    @media (max-width: 991px) {
        font-size: 12px;
    }
}

.block-exter-tender__details-note {
    background: var(--neutral-ghost-white) url('../image/t_note.svg') no-repeat left 8px center;
    padding: 8px 8px 8px 32px;
    font-weight: 500;
    font-size: 14px;
    border-radius: 8px;
    margin-top: 20px;
    display: inline-block;

    @media (max-width: 991px) {
        font-size: 12px;
    }
}

.block-exter-tender_v2 .arch-detail,
.block-exter-tender_v2_ended .arch-detail, .chain_ful_descr  {
    font-size: 14px;
    padding: 10px 20px 4px 40px;
    margin-top: 20px;
    border-top: 1px solid var(--neutral-marble);

    @media (max-width: 991px) {
        font-size: 12px;
        padding: 10px 0 0 0;
        margin-top: 40px;
    }
}

.common-page__tenders-list .bids, .bids {
    background-color: var(--neutral-ghost-white);
    border-radius: 20px;
    width: min-content;
    position: absolute;
    padding: 20px;
    max-width: 80vw;
    z-index: 1000;
    display: none;
}

.common-page__tenders-list .bids table {
    border-radius: 16px;
    width: 600px;
    border: 0 solid var(--neutral-marble);
    margin-top: 25px;
    line-height: 48px;
    font-weight: 500;
    font-size: 12px;
    text-decoration: none;
    top: 30px;
    min-width: 250px;
    max-width: 100%;
}

.common-page__tenders-list .bids .btn-close {
    right: 8px;
    top: 8px;
    position: absolute;
    cursor: pointer;
}

.block-exter-tender__details-rb {

    @media (max-width: 991px) {
        border-right: 1px solid var(--neutral-marble);
    }

    @media (max-width: 767px) {
        border: none;
    }
}

.block-exter-tender__details-center {
    @media (max-width: 991px) {
        border-right: 1px solid var(--neutral-marble);
    }

    @media (max-width: 767px) {
        border: none;
        margin: 10px 0;
    }
}

.extend_count_dayExter.row {
    margin: 0;
}

#modalExtendExter .primary-button {
    max-width: unset;
}

#modalExtendExter .modal-footer {
    justify-content: center;
    padding: 16px;
}

.comm {
    min-width: 200px;
    max-width: 265px;
    display: inline-block;
    width: 100%;
    text-align: center;
    font-size: 14px;

    @media (max-width: 991px) {
        font-size: 12px;
        min-width: unset;
    }

    @media (max-width: 576px) {
        max-width: unset;
    }
}





















