.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__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__city-search-select {
    padding-right: 40px !important;
    background-image: url('../image/lens16x16.svg');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px 16px;
}

.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: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: default;
}

/* 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__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-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: 16px;
    width: 100%;
    min-width: 0;
}

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

.create-tender-modal__checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    cursor: pointer;
    user-select: none;
    min-height: 44px;
}

.create-tender-modal__checkbox {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
}

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

.create-tender-modal__checkbox:checked + .create-tender-modal__checkbox-box {
    background: var(--secondary-green);
    border-color: var(--secondary-green);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='10' viewBox='0 0 12 10' fill='none'%3E%3Cpath d='M1 5L4.5 8.5L11 1.5' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

.create-tender-modal__checkbox:focus-visible + .create-tender-modal__checkbox-box {
    box-shadow: 0 0 0 3px rgba(47, 99, 183, 0.18);
}

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

.create-tender-modal__checkbox:disabled + .create-tender-modal__checkbox-box {
    opacity: 0.5;
}

.create-tender-modal__checkbox:disabled ~ .create-tender-modal__checkbox-text {
    opacity: 0.5;
}

.create-tender-modal__column--checkbox:has(.create-tender-modal__checkbox: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;
}
.create-tender-modal__city-search-select {
    height: 48px !important;
    padding: 12px 40px 12px 16px !important;
    width: 100%;
    border: 1px solid var(--blue-plaza-border) !important;
    border-radius: 12px !important;
    background: var(--white-smoke-light) url('../image/lens16x16.svg') no-repeat right 12px center / 16px 16px;
    font-family: Commissioner;
    font-weight: 400;
    font-style: Regular;
    font-size: 16px !important;
    line-height: 100%;
    letter-spacing: 0%;
    cursor: pointer;
    box-sizing: border-box;
    outline: none;
    box-shadow: none !important;
    transition: background 0.15s;
    appearance: none !important;
    -webkit-appearance: none;
    align-items: center;
        @media (max-width: 768px) {
            height: 44px !important;
        }
}

.create-tender-modal__city-search-select:focus,
.create-tender-modal__city-search-select:hover {
    background: var(--neutral-white) url('../image/lens16x16.svg') no-repeat right 12px center / 16px 16px;
}

.create-tender-modal__city-search-select::placeholder {
    color: var(--blue-plaza-active) !important;
    font-family: Commissioner;
    font-weight: 400;
    font-size: 16px;
}

.create-tender-modal__city-search-select:focus::placeholder {
    color: var(--blue-plaza) !important;
}

.create-tender-modal__city-search-input {
    height: 48px !important;
    padding: 12px 40px 12px 16px !important;
    width: 100%;
    border: 1px solid var(--blue-plaza-border) !important;
    border-radius: 12px !important;
    background: var(--white-smoke-light) url('../image/pen3_16x16.svg') no-repeat right 12px center / 16px 16px;
    font-family: Commissioner;
    font-weight: 400;
    font-style: Regular;
    font-size: 16px !important;
    line-height: 100%;
    letter-spacing: 0%;
    cursor: pointer;
    box-sizing: border-box;
    outline: none;
    box-shadow: none !important;
    transition: background 0.15s;
    appearance: none !important;
    -webkit-appearance: none;
    align-items: center;
        @media (max-width: 768px) {
            height: 44px !important;
        }
}

.create-tender-modal__city-search-input:focus,
.create-tender-modal__city-search-input:hover {
    background: var(--neutral-white) url('../image/pen3_16x16.svg') no-repeat right 12px center / 16px 16px;
}

.create-tender-modal__city-search-input::placeholder {
    color: var(--blue-plaza-active) !important;
    font-family: Commissioner;
    font-weight: 400;
    font-size: 16px;
}

.create-tender-modal__city-search-input:focus::placeholder {
    color: var(--blue-plaza) !important;
}

.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__custom-date {
    height: 48px !important;
    width: 100%;
    padding: 12px 12px 12px 16px !important;
    border: 1px solid var(--blue-plaza-border) !important;
    border-radius: 12px !important;
    font-family: Commissioner;
    font-weight: 400;
    font-size: 16px !important;
    line-height: 100%;
    letter-spacing: 0%;
    background: var(--white-smoke-light) !important;
    appearance: none !important;
    -webkit-appearance: none;
        @media (max-width: 768px) {
            height: 44px !important;
        }
}
.create-tender-modal__custom-date:is(:focus, :hover) {
    background: var(--neutral-white) !important;
}

.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 {
    border: 0;
    width: 264px;
    height: 48px;
    border-radius: 12px;
    gap: 8px;
    padding-top: 12px;
    padding-right: 32px;
    padding-bottom: 12px;
    padding-left: 32px;
    color: var(--neutral-white);
    background: var(--blue-plaza-active);
}

.create-tender-modal__cancel-btn {
    width: 264px;
    height: 48px;
    border-radius: 12px;
    gap: 8px;
    padding-top: 12px;
    padding-right: 32px;
    padding-bottom: 12px;
    padding-left: 32px;
    color: var(--blue-plaza-active);
    background: var(--gray94);
    border: none;
}
.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 {
    border-radius: 32px;
}
#createTenderModal .modal-content {
    border-radius: 32px;
}

#createTenderModal .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 {
    font-family: Commissioner;
    font-weight: 600;
    font-size: 24px;
    line-height: 90%;
    letter-spacing: 0%;
    vertical-align: middle;
}

#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;
}

.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(--white-smoke-light);
    }

    #createTenderModal .create-tender-modal__cancel-btn {
        grid-column: 1;
        grid-row: 1;
        width: 100%;
        flex: none;
        border-radius: 12px;
        padding-top: 12px;
        padding-right: 16px;
        padding-bottom: 12px;
        padding-left: 16px;
        font-family: Commissioner;
        font-weight: 400;
        font-size: 16px;
        line-height: 100%;
        letter-spacing: 0%;
    }

    #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;
        border-radius: 12px;
        padding-top: 12px;
        padding-right: 32px;
        padding-bottom: 12px;
        padding-left: 32px;
        font-family: Commissioner;
        font-weight: 400;
        font-size: 16px;
        line-height: 100%;
        letter-spacing: 0%;
    }

    #createTenderModal .create-tender-modal__custom-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;
    }

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

    #createTenderModal .create-tender-modal__custom-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__field--error .custom-select__trigger,
.create-tender-modal__field--error .create-tender-modal__city-search-select,
.create-tender-modal__field--error .create-tender-modal__city-search-input,
.create-tender-modal__field--error .create-tender-modal__custom-date {
    border-color: var(--red) !important;
    outline-color: var(--red) !important;
}
.create-tender-modal__field--error .create-tender-modal__city-select-wrapper {
    border-color: var(--red) !important;
}

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