.reports-page, .support-page, .templates-page, .common-settings  .reports-page__wrapper, .support-page__wrapper,
.templates-page__wrapper, .driver-add-page, .load-tender-page,
.wins-page, .mess-page, .subscribe-settings, .driver-page, .files-page {
    min-height: calc(100vh - 307px);
}

.files-page {
    padding: 28px 16px;
    min-height: calc(100vh - 160px);
}

.files-page__wrapper {
    background: var(--neutral-white);
    padding: 16px;
    border-radius: 8px;
    overflow: hidden;
}


/* reports */
.reports-page input[type='date']::-webkit-calendar-picker-indicator {
    opacity: 0;
    cursor: pointer;
}

.reports-page .common-page__main-filters-search .btn-gray {
    min-width: 150px;
}

.reports-page input[type='date'] {
    -moz-appearance: textfield;
    background: url('../image/calend.svg') no-repeat right 12px center var(--neutral-white);
    border: 1px solid var(--neutral-marble);
    border-radius: 8px;
    padding: 8px 12px;
    width: 135px;
    height: 40px;

    @media (max-width: 991px) {
        height: 32px;
    }

    @media (max-width: 480px) {
        flex-grow: 1;
        min-width: 0;
        width: 100%;
    }
}

.reports-page .common-page__main-filters-search, .reports-page form {
    @media (max-width: 576px) {
        width: 100%;
    }
}

.reports-page .common-page__main-filters-search {

    @media (max-width: 767px) {
        flex-wrap: nowrap;
    }

    @media (max-width: 480px) {
        flex-wrap: wrap;
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
    }
}

.reports-page .reports-page__filter-field {
    @media (max-width: 480px) {
        width: 48%;
    }
}

.reports-page .summary {
    font-size: 12px;
    line-height: 110%;
    color: #858ba2;
    padding: 16px 12px;
}

.reports-page__list {
    padding: 20px 0 50px;
}

.reports-page__list tbody,
.reports-page__list td,
.reports-page__list tfoot,
.reports-page__list th,
.reports-page__list thead,
.reports-page__list tr {
    border-color: inherit;
    border-style: solid;
    border-width: 0;
}

.reports-page__list .table > :not(caption) > * > * {
    padding: 10px 16px;
    border-bottom: 1px solid var(--neutral-marble);
}

.reports-page__list .table th {
    white-space: nowrap;
    font-weight: 500;
    font-size: 11px;
    line-height: 164%;
    text-transform: uppercase;
    color: var(--neutral-top-shelf);
    padding: 15px 16px;
}

.reports-page__list .table > tbody > tr:hover > * {
    background: rgba(78, 79, 194, .04);
}

.reports-page__list .table tr:last-child td {
    padding: 16px;
}


/* support */


.support-page {
    padding: 0 32px 0 32px;
}

.support-page__list {
    margin-top: 20px;
    border-radius: 8px;
    background: var(--neutral-white);
}

.support-create {
    padding: 20px;
}

.support-create .row {
    margin: 0;
    padding: 0;
}

.support-create label {
    font-size: 14px;
    line-height: 143%;
    color: #222;
    margin-bottom: 20px;
    padding-left: 0;
}

.support-create textarea {
    border-radius: 8px;
    padding: 20px;
    background-color: var(--neutral-white);
    border: none;
    box-shadow: none !important;
    outline: none !important;

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

.support-create .primary-button {
    background-color: var(--secondary-blue);
}

.support-create .secondary-button {
    background-color: var(--primary-blue);
    color: var(--neutral-white);
}

.support-page__list-head {
    border-bottom: 1px solid var(--neutral-marble);
    font-weight: 500;
    font-size: 11px;
    line-height: 164%;
    text-transform: uppercase;
    color: var(--neutral-top-shelf);
}

.support-page__list-head-t1 {
    padding: 16px 0;
    width: 140px;
    text-align: center;
}

.support-page__list-head-t2 {
    padding: 16px;
}

.support-page__message {
    border-bottom: 1px solid var(--neutral-marble);
    padding: 16px;
    position: relative;
}

.support-page__message_answer-exist {
    background: rgba(78, 79, 194, .04);
}

.support-page__message-date {
    font-size: 14px;
    line-height: 140%;
    width: 140px;

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

.support-page__message-text {
    font-size: 14px;
    line-height: 140%;
    max-width: calc(100% - 270px);

    @media (max-width: 991px) {
        font-size: 12px;
        line-height: 120%;
        max-width: 100%;
        margin-top: 14px;
    }
}

.support-page__message-more {
    background: url('../image/eye.svg') no-repeat center / contain;
    width: 34px;
    height: 34px;
    display: block;
    position: absolute;
    right: 12px;
    top: 9px;

    @media (max-width: 991px) {
        width: 30px;
        height: 30px;
        right: 9px;
        top: 9px;
    }
}

.support-view {
    padding: 16px;
}

.support-view__body {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    height: 500px;
    overflow-y: scroll;
    align-content: flex-start;
}

.support-view__message {
    background: var(--neutral-white);
    margin: 6px 0;
    padding: 8px;
    border-radius: 8px;
}

.support-view__message-author {
    font-size: 12px;
    color: var(--neutral-top-shelf);
}

.support-view__message-text {
    font-size: 14px;
    line-height: 143%;
    color: var(--neutral-black);
    margin-top: 4px;

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

.support-view__message-date {
    font-size: 12px;
    color: var(--neutral-top-shelf);
    margin-top: 4px;
    text-align: right;
}

.support-view__new {
    border-top: 1px solid var(--neutral-marble);
    padding: 24px 0;
}

.support-view__new-wrapper {
    position: relative;
}

.support-view__new-wrapper .row {
    margin: 0 !important;
    padding: 0;
}

.support-view__new label {
    display: none;
}

.support-view__new textarea {
    border: 1px solid var(--neutral-marble) !important;
    border-radius: 8px;
    padding: 10px 20px;
    height: 48px;
    background-color: #f5f6f8 !important;
    box-shadow: none !important;
    outline: none !important;
    resize: none;
    background-image: none !important;
}

.support-view__new .btn {
    background: url('../image/send.svg') no-repeat center / contain;
    width: 20px;
    height: 20px;
    display: block;
    position: absolute;
    right: 15px;
    top: 14px;
    font-size: 0;
    padding: 0;
    border-radius: 0;
}

@media (max-width: 991px) {

    .support-view #id_body {
        max-height: 300px;
    }
}

/* common settings */

.common-settings__wrapper {
    padding: 16px 20px 30px;
    border-radius: 8px;
}

.common-settings__avatar {
    background: var(--gray);
    border-radius: 100%;
    width: 60px;
    height: 60px;
    font-weight: 500;
    font-size: 27px;
    color: var(--neutral-white);
    line-height: 60px;
    text-align: center;
}

.common-settings__form {
    max-width: 950px;
    margin-top: 30px;
}

.common-settings__form .form-text.text-muted {
    padding-left: 5px;
    transform: translateY(-1px);
}

.common-settings__form-pass {
    position: relative;
}

.common-settings__form-pass span {
    content: '';
    background: url('../image/rule.svg') no-repeat center / contain;
    position: absolute;
    right: 14px;
    width: 14px;
    height: 14px;
    top: 44px;
    cursor: help;
}

.common-settings .field-exter-list_tndplay a,
.common-settings #id_is_push a {
    color: var(--neutral-black);
}

.common-settings__wrapper .form-check-input,
.common-settings__wrapper .form-check-input.is-valid {
    border-color: var(--primary-blue);
    box-shadow: none;
    outline: none;
}

.common-settings__wrapper .form-check-input:checked,
.common-settings__wrapper .form-check-input.is-valid:checked {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.common-settings__wrapper .form-check-input:focus,
.common-settings__wrapper .form-check-input:focus.is-valid {
    border-color: var(--primary-blue);
}

.common-settings__wrapper .form-check-label {
    padding-left: 5px;
    color: var(--neutral-black);
    transform: translateY(-1px);
}

.common-settings__wrapper .field-exter-access_token {
    padding: 0;
    flex-grow: 1;
    min-width: 0;
}

#id_is_telegram {
    display: none;
}

#addPushExter {
    display: none;
}

.flex-all-centr {
    display: flex;
    align-items: center;
    justify-content: center;
}

.route-def {
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.route-def .btn.btn-sm {
    padding: 8px 12px;
    margin-bottom: 0;
}

.route-one {
    padding: 10px 0;
    margin: 0 10px;
}

.route-one:not(:last-of-type) {
    border-bottom: 1px solid var(--neutral-periwinkle);
}

.route-one input {
    margin: 0;
}

/* driver add page */

.driver-add-page {
    padding: 16px;
}

.driver-add-page__wrapper {
    border-radius: 8px;
    overflow: hidden;
}

.driver-add-page__field .row {
    margin: 0;
}

.driver-add-page__field-name {
    font-weight: 500;
    font-size: 12px;
    margin-bottom: 8px;
}

.driver-add-page .form-check-label  {
    font-size: 14px;
}

.templates-page__field input {
    flex-grow: 1;
    min-width: 0;
    width: 100%;
}

.sampleload-info {
    display: none;
}

/* На мобильных глобальное правило tenders.css скрывает блок с !important.
   Разрешаем разворачивание карточки шаблона по клику (JS ставит инлайн display:block). */
@media (max-width: 767px) {
    .templates-page-new .sampleload-info[id^="id_exter_index_tender_note"] {
        display: none !important;
    }

    .templates-page-new .sampleload-info[id^="id_exter_index_tender_note"][style*="display: block"] {
        display: block !important;
    }
}

/* templates page */

.templates-page {
    padding: 16px;
}

.templates-page-new {
    padding: 0 32px;
}

.templates-page-new--empty {
    display: flex;
    flex-direction: column;
    padding: 0 32px 32px;
    min-height: calc(100vh - 280px);
    box-sizing: border-box;

    @media (max-width: 767px) {
        padding: 0 24px 24px;
        min-height: calc(100vh - 240px);
    }
}

.templates-page__empty {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.templates-page__empty-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    flex: 1;
    box-sizing: border-box;
    padding: 24px 16px;
}

.templates-page__empty-frame {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: min(100%, 500px);
    height: auto;
    border: 1px dashed var(--light-field-border, #0000001F);
    border-radius: 24px;
    padding: 48px 24px;
    box-sizing: border-box;
    text-align: center;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: border-color 0.15s ease;
    /* dashes: 10, 10 */
    background-image: url("data:image/svg+xml,%3Csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='100%25' height='100%25' fill='none' rx='24' ry='24' stroke='%230000001F' stroke-width='1' stroke-dasharray='10%2C10'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: 100% 100%;
    border-color: transparent;
}

@media (min-width: 768px) {
    .templates-page__empty-frame {
        padding: 100px 150px;
    }
}

.templates-page__empty-frame:hover {
    border-color: transparent;
    background-image: url("data:image/svg+xml,%3Csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='100%25' height='100%25' fill='none' rx='24' ry='24' stroke='%23486EB5' stroke-opacity='0.5' stroke-width='1' stroke-dasharray='10%2C10'/%3E%3C/svg%3E");
    text-decoration: none;
    color: inherit;
}

.templates-page__empty-icon {
    display: block;
    width: 77px;
    height: 61px;
    margin: 0 0 16px;
}

.templates-page__empty-title {
    margin: 0 0 8px;
    font-family: Commissioner, sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 90%;
    letter-spacing: 0;
    vertical-align: middle;
    color: var(--blue-plaza-active);
}

.templates-page__empty-link {
    font-family: Commissioner, sans-serif;
    font-weight: 600;
    font-size: 13px;
    line-height: 100%;
    letter-spacing: 0;
    color: var(--primary-blue);
}

.templates-page__empty-frame:hover .templates-page__empty-link {
    text-decoration: underline;
}

.templates-page__wrapper {
    border-radius: 8px;
    overflow: hidden;
    margin-top: 20px;
}

.templates-page__field .row {
    margin: 0;
}

.templates-page__field-name {
    font-weight: 500;
    font-size: 12px;
    margin-bottom: 8px;
}

.templates-page .primary-button.min {
    min-width: unset;
    width: 80px;
    padding: 6px;
}

.templates-page__field input {
    flex-grow: 1;
    min-width: 0;
    width: 100%;
}

.templates-page__city-select-wrapper {
    position: relative;
}

.templates-page__address-field .invalid-feedback {
    display: block;
}

.templates-page .sample-name {
    color: var(--secondary-blue);
}

.templates-page-new .block-exter-tender_v2 [class*="col-"],
.templates-page-new .block-exter-tender_v2 .row > div {
    min-width: 0;
}

.templates-page-new .templates-page__value {
    display: -webkit-box;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    white-space: normal;
    word-break: break-word;
    text-overflow: ellipsis;
    cursor: default;
}

/* Шаблоны: список (стили как у тендеров v3) */
.templates-page-new:not(.templates-page-new--empty) {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    padding: 0 32px 32px;
    box-sizing: border-box;

    @media (max-width: 767px) {
        padding: 0 24px 160px;
    }
}

.templates-page-new:not(.templates-page-new--empty) .templates-page__toolbar {
    order: -1;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    width: 100%;
    margin: 0 0 32px;
}

.templates-page-new:not(.templates-page-new--empty) .templates-page__search {
    display: block;
    width: auto;
    margin: 0;
    min-width: 0;
}

.templates-page-new:not(.templates-page-new--empty) .templates-page__search .search-wrapper {
    width: 500px;
    max-width: 100%;
    display: block;

    @media (max-width: 1919px) {
        width: 400px;
    }
}

.templates-page-new:not(.templates-page-new--empty) .templates-page__search .search-filter-btn img {
    width: 48px;
    height: 48px;
    display: block;
}

.templates-page-new:not(.templates-page-new--empty) .templates-page__create-bar {
    display: flex;
    justify-content: flex-end;
    flex-shrink: 0;
    margin: 0;
}

.templates-page-new:not(.templates-page-new--empty) .templates-page__create-bar .primary-button {
    min-width: 0;
    max-width: none;
    width: auto;
    height: 48px;
    border: none;
    border-radius: 12px;
    padding: 0 32px;
    background-color: var(--blue-plaza-active);
    color: var(--neutral-white);
    font-family: Commissioner, sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1;
    opacity: 1;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    box-sizing: border-box;
}

.templates-page-new:not(.templates-page-new--empty) .templates-page__create-bar .primary-button:hover,
.templates-page-new:not(.templates-page-new--empty) .templates-page__create-bar .primary-button:active {
    color: var(--neutral-white);
    opacity: 0.9;
}

@media (max-width: 991px) {
    .templates-page-new:not(.templates-page-new--empty) .templates-page__create-bar .primary-button {
        min-width: 0;
        max-width: none;
        height: 48px;
        font-size: 16px;
        line-height: 1;
        padding: 0 32px;
        opacity: 1;
    }
}

.templates-page-new:not(.templates-page-new--empty) .templates-page__wrapper {
    margin-top: 0;
    overflow-x: hidden;
    overflow-y: auto;
    border-radius: 0;
    width: 100%;
    min-height: 220px;
}

.templates-page-new:not(.templates-page-new--empty) .block-exter-tender_v2 {
    margin: 0 0 4px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 24px;
    padding: 32px;
    background-color: var(--neutral-white);
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    cursor: pointer;

    @media (min-width: 1280px) {
        transition: border-color 0.15s ease;

        &:hover {
            border-color: #486EB580;
        }
    }

    @media (max-width: 767px) {
        padding: 24px 16px;
        border-radius: 16px;
    }
}

.templates-page-new:not(.templates-page-new--empty) .block-exter-tender_v2 .tender-dots-btn,
.templates-page-new:not(.templates-page-new--empty) .block-exter-tender_v2 .tender-dots-dropdown {
    cursor: pointer;
}

.templates-page-new:not(.templates-page-new--empty) .block-exter-tender__preview {
    position: relative;
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.templates-page-new:not(.templates-page-new--empty) .block-exter-tender__preview .row {
    margin: 0;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    --bs-gutter-x: 0;
    --bs-gutter-y: 0;
}

.templates-page-new:not(.templates-page-new--empty) .block-exter-tender__preview [class*="col-"] {
    padding: 0;
    margin: 0;
    max-width: none;
    min-width: 0;
}

.templates-page-new:not(.templates-page-new--empty) .block-exter-tender__preview .mt-1,
.templates-page-new:not(.templates-page-new--empty) .block-exter-tender__preview .mt-3,
.templates-page-new:not(.templates-page-new--empty) .block-exter-tender__preview .mt-md-2 {
    margin: 0 !important;
}

.templates-page-new:not(.templates-page-new--empty) .block-exter-tender__preview > .row {
    display: grid;
    grid-template-columns: minmax(0, 250px) minmax(0, 500px) minmax(0, 500px) 40px;
    column-gap: 32px;
    row-gap: 0;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 100%;
    min-width: 0;

    @media (max-width: 1279px) {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 40px;
        align-items: start;
        justify-content: stretch;
        column-gap: 24px;
        row-gap: 16px;
    }
}

.templates-page-new:not(.templates-page-new--empty) .block-exter-tender__preview .col-lg-10 {
    display: contents;
}

.templates-page-new:not(.templates-page-new--empty) .block-exter-tender__preview .col-lg-2 {
    grid-column: 4;
    width: 100%;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: flex-end;

    @media (max-width: 1279px) {
        grid-column: 3;
        grid-row: 1;
        position: static;
        width: 40px;
        z-index: 3;
        align-self: center;
    }
}

.templates-page-new:not(.templates-page-new--empty) .block-exter-tender__preview-arrow,
.templates-page-new:not(.templates-page-new--empty) .bt-exter-index-tender-note {
    display: none !important;
}

.templates-page-new:not(.templates-page-new--empty) .block-exter-tender__preview .col-lg-10 > .row:first-of-type {
    grid-column: 1;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    display: flex;
    align-items: center;

    @media (max-width: 1279px) {
        grid-column: 1 / 3;
        grid-row: 1;
        padding-right: 0;
        box-sizing: border-box;
    }
}

.templates-page-new:not(.templates-page-new--empty) .block-exter-tender__preview .col-lg-10 > .row:first-of-type .sample-name {
    flex: 1 1 0;
    min-width: 0;
    max-width: 100%;
}

.templates-page-new:not(.templates-page-new--empty) .block-exter-tender__preview .col-lg-10 > .row.mt-3 {
    display: contents;
}

.templates-page-new:not(.templates-page-new--empty) .block-exter-tender__preview .row.mt-3 > .col-lg-6 {
    width: 100%;
    min-width: 0;
}

.templates-page-new:not(.templates-page-new--empty) .block-exter-tender__preview .row.mt-3 > .col-lg-6:first-child {
    grid-column: 2;
}

.templates-page-new:not(.templates-page-new--empty) .block-exter-tender__preview .row.mt-3 > .col-lg-6:last-child {
    grid-column: 3;
}

/* <1280: адреса — space-between (слева / справа), без bootstrap width: 50% */
@media (max-width: 1279px) {
    .templates-page-new:not(.templates-page-new--empty) .block-exter-tender__preview .col-lg-10 > .row.mt-3 {
        display: flex !important;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: flex-start;
        column-gap: 24px;
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin: 0;
        box-sizing: border-box;
    }

    .templates-page-new:not(.templates-page-new--empty) .block-exter-tender__preview .row.mt-3 > .col-lg-6,
    .templates-page-new:not(.templates-page-new--empty) .block-exter-tender__preview .row.mt-3 > .col-lg-6:first-child,
    .templates-page-new:not(.templates-page-new--empty) .block-exter-tender__preview .row.mt-3 > .col-lg-6:last-child {
        grid-column: unset;
        grid-row: unset;
        flex: 0 1 auto;
        width: fit-content !important;
        max-width: calc(50% - 12px) !important;
        min-width: 0;
        padding: 0;
        margin: 0;
    }

    .templates-page-new:not(.templates-page-new--empty) .block-exter-tender__preview .row.mt-3 > .col-lg-6:last-child {
        margin-left: auto;
        text-align: left;
    }

    .templates-page-new:not(.templates-page-new--empty) .block-exter-tender__preview .row.mt-3 > .col-lg-6 .row,
    .templates-page-new:not(.templates-page-new--empty) .block-exter-tender__preview .row.mt-3 > .col-lg-6 .row > div {
        width: auto !important;
        max-width: 100%;
    }

    .templates-page-new:not(.templates-page-new--empty) .block-exter-tender__preview .row.mt-3 > .col-lg-6 .templates-page__value {
        width: auto;
        max-width: 100%;
    }
}

.templates-page-new:not(.templates-page-new--empty) .block-exter-tender__preview .sample-name {
    font-family: Commissioner, sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.3;
    color: var(--blue-plaza-active);
    display: block;
    width: 100%;
    max-width: 250px;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    @media (max-width: 1919px) {
        max-width: 380px;
    }

    @media (max-width: 1599px) {
        max-width: 300px;
    }

    @media (max-width: 1439px) {
        max-width: 240px;
    }

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

.templates-page-new:not(.templates-page-new--empty) .block-exter-tender__preview .templates-page__hint {
    display: block;
    margin-bottom: 8px;
    font-family: Commissioner, sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1;
    color: var(--blue-plaza);
}

.templates-page-new:not(.templates-page-new--empty) .block-exter-tender__preview .row.mt-3 > .col-lg-6:first-child .templates-page__hint {
    font-size: 0;
    line-height: 0;
}

.templates-page-new:not(.templates-page-new--empty) .block-exter-tender__preview .row.mt-3 > .col-lg-6:first-child .templates-page__hint::before {
    content: "Грузоотправитель";
    font-size: 14px;
    line-height: 1;
    color: var(--blue-plaza);
}

.templates-page-new:not(.templates-page-new--empty) .block-exter-tender__preview .row.mt-3 > .col-lg-6:last-child .templates-page__hint {
    font-size: 0;
    line-height: 0;
}

.templates-page-new:not(.templates-page-new--empty) .block-exter-tender__preview .row.mt-3 > .col-lg-6:last-child .templates-page__hint::before {
    content: "Грузополучатель";
    font-size: 14px;
    line-height: 1;
    color: var(--blue-plaza);
}

.templates-page-new:not(.templates-page-new--empty) .block-exter-tender__preview .templates-page__value {
    font-family: Commissioner, sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.35;
    color: var(--blue-plaza-active);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    white-space: normal;
    overflow: hidden;
    word-break: break-word;
}

.templates-page-new:not(.templates-page-new--empty) .block-exter-tender__preview .sample-name.templates-page__value {
    display: block;
    width: 100%;
    max-width: 250px;
    min-width: 0;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    white-space: nowrap;
    text-overflow: ellipsis;
    word-break: normal;
    overflow: hidden;
    box-sizing: border-box;

    @media (max-width: 1919px) {
        max-width: 380px;
    }

    @media (max-width: 1599px) {
        max-width: 300px;
    }

    @media (max-width: 1439px) {
        max-width: 240px;
    }

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

.templates-page-new:not(.templates-page-new--empty) .block-exter-tender__preview .block-button-exter {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: auto;
    min-width: 40px;
    height: 40px;
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    gap: 0;
    z-index: 3;
}

.templates-page-new:not(.templates-page-new--empty) .block-exter-tender__preview .block-button-exter:has(.tender-dots-dropdown.is-open) {
    z-index: 50;
}

.templates-page-new:not(.templates-page-new--empty) .block-exter-tender__preview .tender-dots-btn {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.templates-page-new:not(.templates-page-new--empty) .block-exter-tender__preview .tender-dots-btn img {
    width: 40px;
    height: 40px;
    display: block;
}

.templates-page-new:not(.templates-page-new--empty) .common-page__pagination {
    margin-top: 24px;
    padding-top: 0;
}

@media (max-width: 767px) {
    .templates-page-new:not(.templates-page-new--empty) .templates-page__toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        margin-bottom: 16px;
    }

    .templates-page-new:not(.templates-page-new--empty) .templates-page__search {
        width: 100%;
    }

    .templates-page-new:not(.templates-page-new--empty) .templates-page__search .search-wrapper {
        width: 100%;
    }

    .templates-page-new:not(.templates-page-new--empty) .templates-page__search .search-filter-btn {
        width: 40px;
        height: 40px;
    }

    .templates-page-new:not(.templates-page-new--empty) .templates-page__search .search-filter-btn img {
        width: 40px;
        height: 40px;
    }

    .templates-page-new:not(.templates-page-new--empty) .block-exter-tender__preview .col-lg-10 > .row.mt-3,
    .templates-page-new:not(.templates-page-new--empty) .block-exter-tender__preview .row.mt-3 > .col-lg-6 {
        display: none !important;
    }

    .templates-page-new:not(.templates-page-new--empty) .block-exter-tender__preview > .row {
        grid-template-columns: minmax(0, 1fr) 40px;
        column-gap: 8px;
        row-gap: 0;
        align-items: center;
        min-height: 40px;
    }

    .templates-page-new:not(.templates-page-new--empty) .block-exter-tender__preview .col-lg-10 > .row:first-of-type {
        grid-column: 1;
        grid-row: 1;
    }

    .templates-page-new:not(.templates-page-new--empty) .block-exter-tender__preview .col-lg-2 {
        grid-column: 2;
        grid-row: 1;
    }

    .templates-page-new:not(.templates-page-new--empty) .block-exter-tender__preview .sample-name,
    .templates-page-new:not(.templates-page-new--empty) .block-exter-tender__preview .sample-name.templates-page__value {
        max-width: 100%;
        font-size: 16px;
        line-height: 1.3;
    }

    .templates-page-new:not(.templates-page-new--empty) .templates-page__create-bar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 80px;
        z-index: 9;
        order: 0;
        align-self: stretch;
        display: flex;
        align-items: center;
        justify-content: center;
        height: auto;
        margin: 0;
        padding: 24px;
        box-sizing: border-box;
        border-top: none;
        border-bottom: none;
    }

    .templates-page-new:not(.templates-page-new--empty) .templates-page__create-bar .primary-button,
    .templates-page-new:not(.templates-page-new--empty) .templates-page__create-bar .primary-button.js-open-sample-create-modal {
        width: 100%;
        min-width: 0;
        max-width: none;
        height: auto;
        min-height: 0;
        padding: 12px 16px;
        gap: 8px;
        font-size: 16px;
        line-height: 1;
        border-radius: 12px;
        opacity: 1;
        box-sizing: border-box;
    }

    .templates-page-new:not(.templates-page-new--empty) .common-page__pagination {
        display: none;
    }
}

/* load-tender */

.load-tender-page {
    padding: 16px;
}

.load-tender-page__wrapper {
    border-radius: 8px;
    overflow: hidden;
}

.load-tender-page__field.row {

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

.load-tender-page__field .row {
    margin: 0;
}

.load-tender-page__field-name {
    font-weight: 500;
    font-size: 12px;
    margin-bottom: 8px;
}

.load-tender-page .primary-button.min {
    min-width: unset;
    width: 80px;
    padding: 6px;
}

.load-tender-page__field input {
    flex-grow: 1;
    min-width: 0;
    width: 100%;
}

/* wins */

.common-page__main > .wins-page,
.common-page__main > .common-page__tenders-list {
    flex: 1 1 auto;
    min-height: 0;
}

.wins-page {
    padding: 28px 16px;
}

.wins-page .summary {
    font-size: 12px;
    line-height: 110%;
    color: #858ba2;
    padding: 16px 12px;
}

.wins-page__wrapper {
    border-radius: 8px;
    overflow: hidden;
}

.wins-page .time-and-buttons {
    justify-content: flex-start;
}

.wins-page .primary-button, .wins-page .secondary-button {
    height: min-content;
}

.wins-page .secondary-button {
    background-color: var(--teclis-blue-rgba);
}

.wins-page .primary-button {
    background-color: var(--primary-blue);
}

.wins-page .table-responsive thead {
    background-color: var(--neutral-white) !important;
}

.wins-page tbody,
.wins-page td,
.wins-page tfoot,
.wins-page th,
.wins-page thead,
.wins-page tr {
    border-color: inherit;
    border-style: solid;
    border-width: 0;
}

.wins-page .table > :not(caption) > * > * {
    padding: 10px 16px;
    border-bottom: 1px solid var(--neutral-marble);
}

.wins-page .table th {
    white-space: nowrap;
    font-weight: 500;
    font-size: 11px;
    line-height: 164%;
    text-transform: uppercase;
    color: var(--neutral-top-shelf);
    padding: 15px 16px;
}

.wins-page .table td {
    font-size: 14px;
    line-height: 140%;
    color: var(--neutral-black) !important;
    --bs-table-accent-bg: none !important;
}

.wins-page .table > tbody > tr:hover > * {
    background: rgba(78, 79, 194, .04);
}

.wins-page .table tr:last-child td {
    padding: 16px;
}

.wins-page .block-status-exter {
    min-width: 200px;
    max-width: 265px;
    width: 100%;

    @media (max-width: 991px) {
        max-width: 215px;
        min-width: 150px;
    }

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

.wins-page .block-exter-tender__status {
    width: 100%;
    height: min-content;
    padding: 2px 6px;
    border-radius: 8px;
}

.wins-page .block-exter-tender__status_delivered,
.wins-page .block-exter-tender__status_доставлен {
    color: inherit;
    border-radius: 8px;
    padding: 2px 6px;
    font-weight: 700;
    display: block;
    gap: 0;
}

.wins-page .block-exter-tender__status_delivered::before,
.wins-page .block-exter-tender__status_доставлен::before {
    content: none;
}

/* mess */

.mess-page {
    padding: 28px 16px;
}

.mess-page .primary-button {
    background-color: var(--secondary-blue);
    color: var(--neutral-white);
}

.mess-page .secondary-button {
    background-color: var(--primary-blue);
    color: var(--neutral-white);
}

.mess-page__list {
    margin-top: 18px;
    border-radius: 8px;
    background: var(--neutral-white);
}

.mess-page .summary {
    display: none;
}

.mess-page table {
    border: none;
}

.mess-page table * {
    border: none;

    @media (max-width: 991px) {
        border: none;
        display: block;
    }
}

.mess-page th {
    border-bottom: 1px solid var(--neutral-marble);
    font-weight: 500;
    font-size: 11px;
    line-height: 50px;
    text-transform: uppercase;
    color: var(--neutral-top-shelf);
    height: 50px;
    padding: 0;
}

.mess-page th:nth-child(1) {
    width: 180px;
    text-align: center;
}

.mess-page th:nth-child(2) {
    padding: 0 16px;
}

.mess-page th:nth-child(3) {
    width: 121px;
}

.mess-page tr td:nth-child(1) {
    font-size: 14px;
    line-height: 140%;
    padding: 16px;

    @media (max-width: 991px) {
        font-size: 12px;
        line-height: 140%;
        padding: 16px 16px 5px;
        display: block;
        width: 100%;
    }
}

.mess-page tr td:nth-child(2) {
    font-size: 14px;
    line-height: 140%;
    padding: 16px;

    @media (max-width: 991px) {
        font-size: 14px;
        line-height: 140%;
        padding: 10px 16px;
    }
}

.mess-page tr:not(:last-child) {
    border-bottom: 1px solid var(--neutral-marble);

    @media (max-width: 991px) {
        display: block;
        width: 100%;
    }
}

.mess-page td {
    --bs-table-accent-bg: none !important;
}

.mess-page__wrapper thead {

    @media (max-width: 991px) {
        display: none !important;
    }
}

/* new tender */

.create-tender {
    padding: 16px;
}

.create-tender .create-tender-modal__section-title {
    margin-top: 16px;
}

.create-tender .create-tender-modal__section-title:first-of-type {
    margin-top: 0;
}

.create-tender__field {
    padding: 8px 0;
}

.create-tender__field-name, .form-field-name {
    font-weight: 500;
    font-size: 12px;
    margin-bottom: 8px;
    padding-left: 0;
}

.create-tender .field-tenders-city_beg,
.create-tender .field-tenders-city_end {
    margin: 0;
    padding: 0;
}

.create-tender__dates-couple .row {
    margin: 0 !important;
}

.create-tender__dates-couple div, .create-tender__dates-couple input {
    flex-grow: 1;
    min-width: 0;
    width: 100%;
}

.create-tender__dates-couple span {
    margin-top: 7px;
    padding: 0 4px;
    width: 15px;
    text-align: center;
}

.create-tender #field_cargo_name label {
    font-weight: 500;
    font-size: 12px;
    margin-bottom: 8px;
    padding: 0;
}

.create-tender #field_cargo_name .row {
    margin: 0;
}

.create-tender #field_weight label,
.create-tender #field_sizem3 label {
    font-weight: 500;
    font-size: 12px;
    margin-bottom: 8px;
    padding: 0;
}

.create-tender #field_body_car .row,
.create-tender #field_load_metod .row,
.create-tender .field-tenders-open_price,
.create-tender .field-tenders-estimated_cargo_value,
.field-tenders-description,
.create-tender #field__sample_exter .row,
.create-tender #field_count_day .row {
    margin: 0 !important;
}

.create-tender #field_body_car label,
.create-tender #field_load_metod label,
.create-tender .field-tenders-open_price label,
.create-tender .field-tenders-estimated_cargo_value label,
.create-tender .field-tenders-description label,
.create-tender .field-tenders-_sample_exter label,
.create-tender #field_count_day label {
    font-weight: 500;
    font-size: 12px;
    margin-bottom: 8px;
    padding: 0;
}

.create-tender textarea {
    font-size: 14px;
    width: 100%;
}

/* check driver */

.check-driver {
    padding: 16px;
}

.check-driver__form {
    margin-bottom: 30px;
}

/* setting menu */

.setting-menu .nav, .setting-menu-admin .nav {
    padding: 0 16px;
}

.setting-menu a.nav-link, .setting-menu-admin a.nav-link {
    font-weight: 500;
    font-size: 14px;
    line-height: 160%;
    color: var(--neutral-top-shelf);
    border: none !important;
    border-bottom: 2px solid transparent;
    text-decoration: none;
    padding: 10px 0;
    margin-right: 16px;
}

.setting-menu .nav-tabs .nav-link.active, .setting-menu-admin .nav-tabs .nav-link.active {
    font-weight: 500;
    font-size: 14px;
    line-height: 160%;
    color: var(--primary-blue) !important;
    border-bottom: 2px solid var(--primary-blue) !important;
    padding-left: 12px;
    padding-right: 12px;
    background-color: var(--teclis-blue-rgba);
}

/* subscribe settings */

.subscribe-settings {
    padding: 16px;
}

.subscribe-settings .primary-button {
    background-color: var(--secondary-blue);
}

.subscribe-settings .addroute-button {
    background-color: var(--primary-blue);
    color: var(--neutral-white);
}

.subscribe-settings__wrapper {
    padding: 16px 0 30px;
    border-radius: 8px;
}

.subscribe-settings-checkboxes {
    padding-left: 30px;
}

.subscribe-settings__reminder {
    display: flex;
    justify-content: center;
    flex-direction: column;
    background-color: #eff2f9;
    border-radius: 8px;
    padding: 10px;
    margin: 16px 0 0 0;
}

#id-push-denied {
    background-color: #D3D3D3;
    display: none;
    margin: 10px;
    padding: 8px;
    border-radius: 4px;
}

/* files */

.files-page {
    padding: 28px 16px;
    min-height: calc(100vh - 107px);
}

.files-page__wrapper {
    background: var(--neutral-white);
    padding: 16px;
    border-radius: 8px;
    overflow: hidden;
}

/* Notification settings button states */
.primary-button.btn-loading {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}

.primary-button.btn-success {
    background-color: #28a745 !important;
    color: white !important;
}

.primary-button.btn-danger {
    background-color: #dc3545 !important;
    color: white !important;
}

.create-tender-modal__content {
    border-radius: 32px;
    padding: 32px;
    background-color: var(--white-smoke-light);
}

.create-tender-modal__header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 56px;
    font-family: Commissioner;
    font-weight: 600;
    font-size: 24px;
    line-height: 90%;
    color: var(--blue-plaza-active);
}

.create-tender-modal__edit-limit-error {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: -32px 0 28px;
    padding: 16px 18px;
    border-radius: 14px;
    border: 1px solid color-mix(in srgb, var(--red) 40%, transparent);
    background-color: color-mix(in srgb, var(--red) 14%, #fff);
    box-shadow: 0 4px 14px color-mix(in srgb, var(--red) 18%, transparent);
    font-family: Commissioner;
    font-weight: 600;
    font-size: 15px;
    line-height: 145%;
    color: var(--red);
}

.create-tender-modal__edit-limit-error::before {
    content: "!";
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: var(--red);
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    line-height: 1;
}

.create-tender-modal__edit-limit-error--info {
    border-color: color-mix(in srgb, var(--blue-plaza-active) 35%, transparent);
    background-color: color-mix(in srgb, var(--blue-plaza-active) 10%, #fff);
    box-shadow: 0 4px 14px color-mix(in srgb, var(--blue-plaza-active) 12%, transparent);
    color: var(--blue-plaza-active);
}

.create-tender-modal__edit-limit-error--info::before {
    content: "i";
    background-color: var(--blue-plaza-active);
}

.create-tender-modal__edit-limit-error-message {
    flex: 1;
    min-width: 0;
    padding-top: 3px;
}

.create-tender-modal__section-title {
    font-family: Commissioner;
    font-weight: 500;
    font-size: 20px;
    line-height: 90%;
    color: var(--blue-plaza-active);
    padding-bottom: 24px;
    margin-bottom: 0 !important;
}

.create-tender-modal__field-label {
    font-family: Commissioner;
    font-weight: 400;
    font-size: 16px;
    line-height: 90%;
    color: var(--blue-plaza);
}

.create-tender-modal__section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding-bottom: 32px;
}

.create-tender-modal__form-select {
    width: 100%;
    flex: 1;
    height: 44px;
    justify-content: space-between;
    border-radius: 12px;
    padding-top: 12px;
    padding-right: 8px;
    padding-bottom: 12px;
    padding-left: 16px;
    border-width: 1px;

}

.create-tender-modal__column {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    min-width: 0;
}

.create-tender-modal__column--checkbox {
    justify-content: flex-end;
}

.custom-checkbox-checked-label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 4px;
    margin: 0;
    cursor: pointer;
    user-select: none;
    min-height: 44px;
}

.custom-checkbox-checked {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
}

.custom-checkbox-checked-box {
    display: block;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border: 1px solid var(--blue-plaza);
    border-radius: 7px;
    background: var(--neutral-white);
    box-sizing: border-box;
    transition: background-color 0.15s, border-color 0.15s;
}

.custom-checkbox-checked:checked + .custom-checkbox-checked-box {
    background-color: rgba(75, 179, 75, 1);
    border-color: rgba(75, 179, 75, 1);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 9' fill='none'%3E%3Cpath d='M1.25 4.75L4.1 7.6L8.75 2.1' stroke='white' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 10px 9px;
}

.custom-checkbox-checked:focus-visible + .custom-checkbox-checked-box {
    box-shadow: 0 0 0 3px rgba(47, 99, 183, 0.18);
}

.custom-checkbox-checked-text {
    font-family: Commissioner;
    font-weight: 400;
    font-size: 16px;
    line-height: 90%;
    color: var(--blue-plaza-active);
}

.custom-checkbox-checked:disabled + .custom-checkbox-checked-box {
    opacity: 0.5;
}

.custom-checkbox-checked:disabled ~ .custom-checkbox-checked-text {
    opacity: 0.5;
}

.create-tender-modal__column--checkbox:has(.custom-checkbox-checked:disabled) {
    cursor: not-allowed;
}

#createTenderSampleField .custom-select--truncate,
#createTenderSampleField .custom-select--truncate .custom-select__trigger {
    min-width: 0;
    max-width: 100%;
}

#createTenderSampleField .custom-select--truncate .custom-select__trigger {
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-right: 56px;
}

#createTenderSampleField .custom-select--truncate .custom-select__trigger-text {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
}

#createTenderSampleField .custom-select--truncate .custom-option {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.create-tender-modal__row {
    align-items: center;
    display: flex;
    flex-direction: row;
    gap: 8px;
}

#addWaypointModal .modal-content {
    background-color: var(--white-smoke-light);
}

.create-tender-modal__city-select-wrapper {
    position: relative;
}

.dadata-clear-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--text-tertiary, #8a8f98);
    cursor: pointer;
    z-index: 2;
}

.dadata-clear-btn:hover {
    color: var(--blue-plaza-active, #1a73e8);
}

.create-tender-modal__dash {
    display: block;
    flex-shrink: 0;
    width: 10px;
    height: 2px;
    background-color: var(--blue-plaza-border);
    align-self: center;
}

.create-tender-modal__red-star {
    font-family: Commissioner;
    font-weight: 400;
    font-style: Regular;
    font-size: 16px;
    line-height: 90%;
    letter-spacing: 0%;
    color: var(--red);
}

.btn-add-point {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    padding: 0;
    font-family: Commissioner;
    font-weight: 600;
    font-size: 13px;
    line-height: 100%;
    letter-spacing: 0%;
    color: var(--primary-blue);
    cursor: pointer;
}

.btn-add-point:hover {
    color: var(--primary-blue);
}

.waypoint-remove-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    background: none;
    border: none;
    cursor: pointer;
}

.btn-cancel-waypoint {
    height: 48px;
    border-radius: 12px;
    border: none;
    background: var(--neutral-white);
    font-family: Commissioner;
    font-weight: 400;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: 0%;
    color: var(--blue-plaza-active);
    cursor: pointer;
    gap: 8px;
    border-radius: 12px;
    padding-top: 12px;
    padding-right: 32px;
    padding-bottom: 12px;
    padding-left: 32px;

    @media (max-width: 554px) {
        display: none;
    }
}

.btn-save-waypoint {
    height: 48px;
    border: none;
    border-radius: 12px;
    background: var(--blue-plaza-active);
    font-family: Commissioner;
    font-weight: 400;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: 0%;
    color: var(--neutral-white);
    cursor: pointer;
    gap: 8px;
    border-radius: 12px;
    padding-top: 12px;
    padding-right: 32px;
    padding-bottom: 12px;
    padding-left: 32px;
    @media (max-width: 554px) {
        height: 40px;
    }
}

.btn-close-custom {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
}

.waypoint-modal__footer {
    display: flex;
    justify-content: space-between;
    margin-top: 56px;
    align-items: center;
}

.waypoint-item {
    margin-bottom: 24px;
}

.create-tender-modal__footer {
    border-radius: 32px;
    display: flex;
    background-color: var(--white-smoke-light);
    justify-content: space-between;
    align-items: center;
    padding: 0 32px 32px 32px;
    gap: 8px;
}

.create-tender-modal__footer-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.create-tender-modal__fill-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px;
    border-radius: 12px;
    padding: 12px 32px;
    color: var(--blue-plaza-active);
    background: var(--gray94);
    border: none;
    white-space: nowrap;
}

.create-tender-modal__create-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    width: 126px;
    height: 48px;
    border-radius: 12px;
    padding: 12px 16px;
    color: var(--neutral-white);
    background: var(--blue-plaza-active);
    text-align: center;
}

.create-tender-modal__cancel-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 122px;
    height: 48px;
    border-radius: 12px;
    padding: 12px 16px;
    color: var(--blue-plaza-active);
    background: var(--gray94);
    border: none;
    text-align: center;
}
.create-tender-modal__main-section {
  height: 650px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--blue-plaza-active) transparent;
}

.create-tender-modal__main-section::-webkit-scrollbar-track {
  background: transparent;
}

.create-tender-modal__main-section::-webkit-scrollbar-thumb {
  background-color: var(--blue-plaza-active);
  border-radius: 24px;
}

.modal-scroll {
    padding-right: 8px;
}
#createTenderModal .modal-dialog,
.sample-template-modal .modal-dialog {
    border-radius: 32px;
}
#createTenderModal .modal-content,
.sample-template-modal .modal-content {
    border-radius: 32px;
    background-color: var(--neutral-white);
}

#createTenderModal .create-tender-modal__content,
#createTenderModal .create-tender-modal__footer,
.sample-template-modal .create-tender-modal__content,
.sample-template-modal .create-tender-modal__footer {
    background-color: var(--neutral-white);
}

#createTenderModal .create-tender-modal__main-section,
.sample-template-modal .create-tender-modal__main-section {
    height: calc(100dvh - 280px);
}

#addWaypointModalTitle {
    font-family: Commissioner;
    font-weight: 600;
    font-size: 24px;
    line-height: 90%;
    letter-spacing: 0%;
    vertical-align: middle;
}

#createTenderModalTitle,
#sampleTemplateModalTitle, #sampleViewModalTitle {
    font-family: Commissioner, sans-serif;
    font-weight: 600;
    font-style: normal;
    font-size: 24px;
    line-height: 90%;
    letter-spacing: 0%;
    vertical-align: middle;
}

.sample-template-modal .sample-template-contacts {
    width: 100%;
}

.sample-template-modal .sample-template-contacts__row {
    gap: 24px;
}

.sample-template-modal .sample-template-contacts > .sample-template-contacts__row + .sample-template-contacts__row {
    margin-top: 24px;
}

.sample-template-modal .sample-template-contacts .waypoint-remove-btn {
    display: flex;
    width: 48px;
    height: 48px;
    padding: 0;
}

.sample-template-modal .sample-template-contacts .sample-template-phone-wrap.flex-grow-1 {
    min-width: 0;
}

.sample-template-modal .sample-template-add {
    position: relative;
    align-items: flex-start;
}

.sample-template-modal .sample-template-add-dropdown {
    top: calc(100% + 4px);
    bottom: auto;
    left: 0;
    right: auto;
    min-width: 240px;
    /* В закрытом состоянии высота схлопывается в 0, поэтому рамку показываем только открытой. */
    border: 0.5px solid transparent;
}

.sample-template-modal .sample-template-add-dropdown.is-open {
    border-color: var(--light-field-border);
}

.sample-template-modal .sample-template-party-extra {
    gap: 16px;
}

.sample-template-modal .sample-template-party-extra__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.sample-template-modal .sample-template-party-extra__title {
    font-family: Commissioner, sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 90%;
    color: var(--blue-plaza-active);
}

.sample-template-modal .sample-template-party-remove {
    display: flex;
    width: 48px;
    height: 48px;
    padding: 0;
    flex-shrink: 0;
}

.sample-template-modal .sample-template-party-remove img {
    width: 48px;
    height: 48px;
}

.sample-template-modal .sample-template-party-extra__grid {
    padding-bottom: 0;
}

.sample-template-modal .field-tenderload-shipper_inn .light-field-input-wrap::after,
.sample-template-modal .field-tenderload-consignee_inn .light-field-input-wrap::after {
    background-image: url('../image/59_48x48.svg');
}

.sample-template-modal .field-tenderload-shipper_name .light-field-input-wrap::after,
.sample-template-modal .field-tenderload-consignee_name .light-field-input-wrap::after {
    background-image: url('../image/city48x48.svg');
}

.sample-template-modal .sample-template-phone-wrap::after {
    background-image: url('../image/phone48x48.svg');
}

.sample-template-modal .field-tenderload-shipper_adres .light-field--select,
.sample-template-modal .field-tenderload-consignee_adres .light-field--select {
    --field-select-arrow: url('../image/location48x48.svg');
}

.sample-template-modal .create-tender-modal__column .field-tenderload-shipper_adres,
.sample-template-modal .create-tender-modal__column .field-tenderload-consignee_adres,
.sample-template-modal .templates-page__address-field {
    margin-bottom: 0;
}

.sample-template-modal .create-tender-modal__content {
    padding-bottom: 0;
}

.sample-template-modal .create-tender-modal__footer {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    height: auto;
    margin: 0 -32px;
    padding: 0;
    border-top: none;
    border-radius: 0 0 32px 32px;
    background-color: var(--neutral-white);
}

.sample-template-modal .create-tender-modal__footer-spacer {
    flex-shrink: 0;
    height: 32px;
}

.sample-template-modal .create-tender-modal__footer-divider {
    flex-shrink: 0;
    width: auto;
    margin: 0 32px;
    height: 0;
    border-top: 0.5px solid #0000001F;
}

.sample-template-modal .create-tender-modal__footer-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    box-sizing: border-box;
    padding: 32px;
}

.sample-template-modal .create-tender-modal__cancel-btn,
.sample-template-modal .create-tender-modal__create-btn {
    height: 48px;
    border-radius: 12px;
    gap: 8px;
    padding: 12px 32px;
    width: auto;
    min-width: 0;
}

.sample-template-modal .sample-template-contacts .load-tender-page__field,
.sample-template-modal .sample-template-contacts .templates-page__field {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 24px;
}

.sample-template-modal .sample-template-contacts .load-tender-page__field > div,
.sample-template-modal .sample-template-contacts .templates-page__field > div {
    width: 100%;
    max-width: none;
    padding: 0;
}

.sample-template-modal .sample-template-contacts .input_load_exter {
    height: 48px !important;
    width: 100%;
    padding: 12px 48px 12px 16px !important;
    border: 0.5px solid var(--light-field-border) !important;
    border-radius: 12px !important;
    background: var(--light-field-background);
    font-family: Commissioner, sans-serif;
    font-size: 16px !important;
    color: var(--blue-plaza-active);
    box-sizing: border-box;
}

.sample-template-modal .sample-template-contacts .light-field-group--error .input_load_exter,
.sample-template-modal .sample-template-contacts .light-field-group--error .light-field--input {
    border: 0.5px solid var(--light-stroke-negative) !important;
    background: var(--light-background-tint);
    color: var(--light-text-secondary);
}

@media (max-width: 1279px) {
    .sample-template-modal.modal {
        --bs-modal-margin: 0;
        padding: 0 !important;
    }

    .sample-template-modal .modal-dialog {
        position: fixed;
        inset: auto 0 0 0;
        width: 100%;
        max-width: 100%;
        height: auto;
        min-height: 0;
        margin: 0;
        padding: 0;
        max-height: 90dvh;
        border-radius: 0;
        display: flex;
        flex-direction: column;
    }

    .sample-template-modal .modal-content {
        display: flex;
        flex-direction: column;
        height: auto;
        max-height: 90dvh;
        min-height: 0;
        border-radius: 24px 24px 0 0;
        border: none;
        overflow: hidden;
        background-color: var(--neutral-white);
    }

    .sample-template-modal .create-tender-modal__content {
        flex: 1;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        border-radius: 24px 24px 0 0;
        padding: 32px 32px 0;
        min-height: 0;
        background-color: var(--neutral-white);
    }

    .sample-template-modal .sample-template-form {
        flex: 1;
        display: flex;
        flex-direction: column;
        min-height: 0;
        overflow: hidden;
    }

    .sample-template-modal .create-tender-modal__header {
        position: relative;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 16px;
        margin: 0 0 56px;
        padding: 0;
        flex-shrink: 0;
    }

    .sample-template-modal .create-tender-modal__header .btn-close-custom {
        position: static;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 48px;
        height: 48px;
        padding: 0;
    }

    .sample-template-modal .create-tender-modal__header .btn-close-custom img {
        width: 48px;
        height: 48px;
    }

    #sampleTemplateModalTitle, #sampleViewModalTitle {
        font-family: Commissioner, sans-serif;
        font-weight: 600;
        font-style: normal;
        font-size: 24px;
        line-height: 90%;
        letter-spacing: 0%;
        vertical-align: middle;
        text-align: left;
        margin: 0;
    }

    .sample-template-modal .create-tender-modal__main-section {
        flex: 1;
        height: auto;
        min-height: 0;
        overflow-y: auto;
    }

    .sample-template-modal .create-tender-modal__section,
    .sample-template-modal .sample-template-contacts__row,
    .sample-template-modal .sample-template-contacts .load-tender-page__field,
    .sample-template-modal .sample-template-contacts .templates-page__field {
        grid-template-columns: 1fr 1fr;
    }

    .sample-template-modal .create-tender-modal__footer {
        flex-shrink: 0;
        position: relative;
        margin: 0 -32px;
        border-radius: 0;
        background-color: var(--neutral-white);
    }

    .sample-template-modal .create-tender-modal__footer-bar {
        justify-content: flex-end;
        align-items: center;
        padding: 16px 32px 32px;
    }

    .sample-template-modal .create-tender-modal__footer-actions {
        display: contents;
    }

    .sample-template-modal .create-tender-modal__cancel-btn,
    .sample-template-modal .create-tender-modal__create-btn {
        grid-column: unset;
        grid-row: unset;
        flex: none;
        width: auto;
        min-width: 0;
        height: 48px;
        border-radius: 12px;
        gap: 8px;
        padding: 12px 32px;
        font-size: 16px;
        line-height: 100%;
    }
}

@media (max-width: 767px) {
    .sample-template-modal .create-tender-modal__content {
        padding: 24px 24px 0;
    }

    .sample-template-modal .create-tender-modal__header {
        margin-bottom: 24px;
    }

    .sample-template-modal .create-tender-modal__header .btn-close-custom {
        width: 40px;
        height: 40px;
    }

    .sample-template-modal .create-tender-modal__header .btn-close-custom img {
        width: 40px;
        height: 40px;
    }

    #sampleTemplateModalTitle, #sampleViewModalTitle {
        font-size: 16px;
        line-height: 90%;
        vertical-align: middle;
    }

    .sample-template-modal .create-tender-modal__section,
    .sample-template-modal .sample-template-contacts__row,
    .sample-template-modal .sample-template-contacts .load-tender-page__field,
    .sample-template-modal .sample-template-contacts .templates-page__field {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .sample-template-modal .create-tender-modal__section-title {
        font-size: 16px;
        padding-bottom: 16px;
    }

    .sample-template-modal .create-tender-modal__field-label {
        font-size: 14px;
    }

    .sample-template-modal .light-field,
    .sample-template-modal .light-field--input,
    .sample-template-modal .light-field--select,
    .sample-template-modal .sample-template-contacts .input_load_exter {
        height: 40px !important;
        padding: 10px 40px 10px 16px !important;
        font-size: 14px !important;
    }

    .sample-template-modal .light-field-input-wrap::after {
        width: 40px;
        height: 40px;
        background-size: 40px 40px;
    }

    .sample-template-modal .field-tenderload-shipper_adres .light-field--select,
    .sample-template-modal .field-tenderload-consignee_adres .light-field--select {
        --field-select-arrow-size: 40px 40px;
        padding-right: 40px !important;
    }

    .sample-template-modal .sample-template-contacts .waypoint-remove-btn {
        width: 40px;
        height: 40px;
    }

    .sample-template-modal .sample-template-contacts .waypoint-remove-btn img {
        width: 40px;
        height: 40px;
    }

    .sample-template-modal .sample-template-party-remove,
    .sample-template-modal .sample-template-party-remove img {
        width: 40px;
        height: 40px;
    }

    .sample-template-modal .sample-template-party-extra__title {
        font-size: 14px;
    }

    .sample-template-modal .create-tender-modal__footer {
        margin: 0 -24px;
    }

    .sample-template-modal .create-tender-modal__footer-spacer {
        height: 24px;
    }

    .sample-template-modal .create-tender-modal__footer-divider {
        margin: 0 24px;
    }

    .sample-template-modal .create-tender-modal__footer-bar {
        flex-direction: column;
        justify-content: center;
        align-items: stretch;
        gap: 8px;
        padding: 16px 24px calc(24px + env(safe-area-inset-bottom, 0px));
    }

    .sample-template-modal .create-tender-modal__footer-actions {
        display: contents;
    }

    .sample-template-modal .create-tender-modal__cancel-btn,
    .sample-template-modal .create-tender-modal__create-btn {
        flex: none;
        width: 100%;
        height: 40px;
        min-height: 40px;
        padding: 12px 16px;
        font-size: 14px;
        line-height: 90%;
        box-sizing: border-box;
    }
}

#addWaypointModal .modal-content {
    border-radius: 32px;
}
#addWaypointModal .modal-dialog {
    top: 20%;
}
#tenderFillModal .modal-dialog {
    top: 20%;
}
#tenderFillModal {
    z-index: 1060;
}
#tenderFillModal .modal-content {
    border-radius: 24px;
    border: none;
}

#tenderFillModal.tender-fill-modal--nested .modal-footer {
    gap: 8px;
    padding: 0 24px 24px;
    border-top: none;
}

#tenderFillModal.tender-fill-modal--nested .modal-footer .secondary-button,
#tenderFillModal.tender-fill-modal--nested .modal-footer .primary-button {
    flex: 1;
    min-width: unset;
    max-width: none;
    width: auto;
    height: 48px;
    border-radius: 12px;
    padding: 12px 32px;
    font-family: Commissioner, sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 100%;
    border: none;
}

#tenderFillModal.tender-fill-modal--nested .modal-footer .secondary-button {
    color: var(--blue-plaza-active);
    background: var(--gray94);
}

#tenderFillModal.tender-fill-modal--nested .modal-footer .secondary-button:hover,
#tenderFillModal.tender-fill-modal--nested .modal-footer .secondary-button:active {
    color: var(--blue-plaza-active);
    background: var(--gray94);
    opacity: 1;
}

#tenderFillModal.tender-fill-modal--nested .modal-footer .primary-button,
#tenderFillModal.tender-fill-modal--nested .modal-footer .fill-submit {
    color: var(--neutral-white);
    background: var(--blue-plaza-active);
}

#tenderFillModal.tender-fill-modal--nested .modal-footer .primary-button:hover,
#tenderFillModal.tender-fill-modal--nested .modal-footer .primary-button:active,
#tenderFillModal.tender-fill-modal--nested .modal-footer .fill-submit:hover,
#tenderFillModal.tender-fill-modal--nested .modal-footer .fill-submit:active {
    color: var(--neutral-white);
    background: var(--blue-plaza-active);
    opacity: 1;
}

#tenderFillModal.tender-fill-modal--nested .modal-footer .primary-button:disabled,
#tenderFillModal.tender-fill-modal--nested .modal-footer .fill-submit:disabled {
    color: var(--neutral-white);
    background: var(--blue-plaza-active);
    opacity: 0.65;
}

.waypoint-block {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.delete-waypoint-button {
    display: none;
}

.row-align-items-center {
    display: flex;
    flex-direction: row;
    align-items: center;
}
/* ─── Скролл в списке промежуточных точек ─── */
#waypoints-list {
    max-height: 40dvh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--blue-plaza-active) transparent;
    scrollbar-gutter: stable;
}

#waypoints-list::-webkit-scrollbar {
    width: 4px;
}

#waypoints-list::-webkit-scrollbar-track {
    background: transparent;
}

#waypoints-list::-webkit-scrollbar-thumb {
    background-color: var(--blue-plaza-active);
    border-radius: 24px;
}

.date-block {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: flex-end;
}

.date-block .create-tender-modal__dash {
    align-self: flex-end;
    margin-bottom: calc((48px - 2px) / 2);
}

@media (max-width: 768px) {
    .date-block .create-tender-modal__dash {
        margin-bottom: calc((44px - 2px) / 2);
    }
}

.add-more-waypoint {
    font-family: Commissioner;
    font-weight: 600;
    font-size: 13px;
    line-height: 100%;
    letter-spacing: 0%;
    color: var(--primary-blue);
}
@media (max-width: 991px) {

    #addWaypointModal .modal-dialog {
        max-width: 100%;
        padding: 0 32px;
    }

    #createTenderModal .modal-dialog {
        margin: 0;
        max-width: 100%;
        width: 100%;
        height: 100%;
        min-height: 100%;
        border-radius: 0;
    }

    #createTenderModal .modal-content {
        display: flex;
        flex-direction: column;
        height: 100%;
        min-height: 100vh;
        border-radius: 0;
        border: none;
    }

    #createTenderModal .create-tender-modal__content {
        flex: 1;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        border-radius: 0;
        padding: 32px;
    }

    #createTenderModal .create-tender-modal__main-section {
        flex: 1;
        height: auto;
        overflow-y: auto;
    }

    #createTenderModal .create-tender-modal__footer {
        flex-shrink: 0;
        position: sticky;
        bottom: 0;
        border-radius: 0;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        padding: 32px;
        background-color: var(--neutral-white);
    }

    #createTenderModal .create-tender-modal__cancel-btn {
        grid-column: 1;
        grid-row: 1;
        width: 100%;
        flex: none;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 12px;
        padding: 12px 16px;
        font-family: Commissioner;
        font-weight: 400;
        font-size: 16px;
        line-height: 100%;
        letter-spacing: 0%;
        text-align: center;
    }

    #createTenderModal .create-tender-modal__footer-actions {
        display: contents;
    }

    #createTenderModal .create-tender-modal__fill-btn {
        grid-column: 2;
        grid-row: 1;
        width: 100%;
        flex: none;
        padding: 12px 16px;
        font-family: Commissioner;
        font-weight: 400;
        font-size: 16px;
        line-height: 100%;
        letter-spacing: 0%;
        white-space: nowrap;
    }

    #createTenderModal .create-tender-modal__fill-btn svg {
        display: none;
    }

    #createTenderModal .create-tender-modal__create-btn {
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100%;
        flex: none;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 12px;
        padding: 12px 16px;
        font-family: Commissioner;
        font-weight: 400;
        font-size: 16px;
        line-height: 100%;
        letter-spacing: 0%;
        text-align: center;
    }

    #createTenderModal .light-field--date {
        min-width: 154px;
    }
}

@media (max-width: 554px) {
    .date-block {
        max-width: 150px;
    }
    .waypoint-remove-btn {
        display: none;
    }

    .delete-waypoint-button {
        background: none;
        border: none;
        padding: 0;
        cursor: pointer;
        font-family: Commissioner;
        font-weight: 600;
        font-style: SemiBold;
        font-size: 13px;
        line-height: 100%;
        color: var(--primary-blue);
        text-decoration: underline dashed;
        text-underline-offset: 2px;
        display: flex;
        justify-content: flex-end;
    }
    .create-tender-modal__field-label{
        flex: 1;
        display: flex;
        justify-content: flex-start;
        width: 100%;
    }
    #addWaypointModal .modal-dialog {
        top: auto;
        padding: 0;
        margin: 0 auto;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-height: 90dvh;
        display: flex;
        flex-direction: column;
    }

    .waypoint-block {
        flex-direction: column;
    }

    #addWaypointModal .modal-content {
        padding: 0;
        position: relative;
        display: flex;
        flex-direction: column;
        max-height: 85dvh;
        overflow: hidden;
        border-radius: 24px 24px 0 0;
    }

    #addWaypointModal .create-tender-modal__content {
        padding: 24px 24px 0 24px;
        display: flex;
        flex-direction: column;
        flex: 1;
        overflow: hidden;
    }

    #waypoints-list {
        max-height: 70dvh;
        flex: 1;
        overflow-y: auto;
        max-height: none;
    }

    #addWaypointModal .waypoint-modal__footer {
        flex-shrink: 0;
        position: static;
        padding: 0 0 24px 0;
        margin: 0;
        width: auto;
        left: auto;
        bottom: auto;
    }

    #addWaypointModal .create-tender-modal__header {
        justify-content: space-between;
    }
    #addWaypointModalTitle {
        font-family: Commissioner;
        font-weight: 600;
        font-size: 16px;
        line-height: 110.00000000000001%;
        letter-spacing: 0%;
    }

    .create-tender-modal__header {
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .btn-close-custom {
        position: absolute;
        right: 0;
    }
    #createTenderModalTitle {
        font-family: Commissioner;
        font-weight: 600;
        font-size: 16px;
        line-height: 110.00000000000001%;
        letter-spacing: 0%;
        text-align: center;
    }

    #createTenderModal .create-tender-modal__content {
        padding: 56px 24px 24px 24px;
    }
    .create-tender-modal__section {
        grid-template-columns: 1fr;
    }

    .sample-template-modal .create-tender-modal__header {
        justify-content: space-between;
    }

    .sample-template-modal .create-tender-modal__header .btn-close-custom {
        position: static;
    }

    #createTenderModal .create-tender-modal__footer {
        padding: 24px;
    }

    #createTenderModal .light-field--date {
        min-width: 122px;
    }

        #createTenderModal .create-tender-modal__cancel-btn {
        height: 40px;
    }

    #createTenderModal .create-tender-modal__fill-btn {
        height: 40px;
        white-space: normal;
        padding: 10px;
    }

    #createTenderModal .create-tender-modal__create-btn {
        height: 40px;
    }

    #tenderFillModal.tender-fill-modal--nested .modal-footer .secondary-button,
    #tenderFillModal.tender-fill-modal--nested .modal-footer .primary-button {
        height: 40px;
        font-size: 16px;
        padding: 12px 16px;
    }

    #tenderFillModal.tender-fill-modal--nested .modal-dialog {
        top: auto;
        padding: 0;
        margin: 0 auto;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        max-height: 90dvh;
        display: flex;
        flex-direction: column;
    }

    #tenderFillModal.tender-fill-modal--nested .modal-content {
        padding: 0;
        position: relative;
        display: flex;
        flex-direction: column;
        max-height: 85dvh;
        overflow: hidden;
        border-radius: 24px 24px 0 0;
        background-color: var(--white-smoke-light);
        border: none;
    }

    #tenderFillModal.tender-fill-modal--nested .modal-header {
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 24px 24px 0;
        border-bottom: none;
        background-color: var(--white-smoke-light);
    }

    #tenderFillModal.tender-fill-modal--nested .modal-title {
        flex: 1;
        margin: 0;
        font-family: Commissioner, sans-serif;
        font-weight: 600;
        font-size: 16px;
        line-height: 110%;
        letter-spacing: 0;
        text-align: center;
        color: var(--blue-plaza-active);
    }

    #tenderFillModal.tender-fill-modal--nested .modal-header .btn-close {
        flex-shrink: 0;
        margin: 0;
        padding: 0;
        opacity: 1;
    }

    #tenderFillModal.tender-fill-modal--nested .modal-body {
        flex: 1;
        min-height: 0;
        overflow-y: auto;
        padding: 16px 24px 0;
        background-color: var(--white-smoke-light);
    }

    #tenderFillModal.tender-fill-modal--nested .fill-textarea {
        min-height: 140px;
        background: var(--neutral-white);
        border-color: var(--blue-plaza-border);
        border-radius: 12px;
    }

    #tenderFillModal.tender-fill-modal--nested .modal-footer {
        flex-shrink: 0;
        position: static;
        padding: 16px 24px 24px;
        margin: 0;
        background-color: var(--white-smoke-light);
    }
}


.city-dropdown.city-dropdown--fixed,
.custom-dropdown.dropdown--viewport-fixed {
    position: fixed;
    z-index: 99999;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--blue-plaza-active) transparent;
}

.city-dropdown.city-dropdown--fixed::-webkit-scrollbar,
.custom-dropdown.dropdown--viewport-fixed::-webkit-scrollbar {
    display: block;
    width: 6px;
}

.city-dropdown.city-dropdown--fixed::-webkit-scrollbar-thumb,
.custom-dropdown.dropdown--viewport-fixed::-webkit-scrollbar-thumb {
    background-color: var(--blue-plaza-active);
    border-radius: 24px;
}


.create-tender-modal__error-msg {
    display: block;
    color: var(--red) !important;
    font-size: 12px;
    margin-top: 6px;
}

.sample-template-modal .invalid-feedback:empty {
    display: none;
}

.sample-template-modal .light-field-group--error .select2-container--default .select2-selection--single {
    border: 0.5px solid var(--light-stroke-negative) !important;
    background: var(--light-background-tint);
}

#sampleViewModal .light-field--input[readonly] {
    cursor: default;
    color: var(--blue-plaza-active);
    background: var(--light-field-background);
}

#sampleViewModal .light-field--input[readonly]:hover,
#sampleViewModal .light-field--input[readonly]:focus {
    border: 0.5px solid var(--light-field-border) !important;
    color: var(--blue-plaza-active);
}

#sampleViewModalTitle {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}