.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: 28px 16px;
}

.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 .primary-button {
    background-color: var(--secondary-blue);
}

.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 10px;
    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%;
}

/* templates page */

.templates-page {
    padding: 16px;
}

.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 .sample-name {
    color: var(--secondary-blue);
}

/* 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 */

.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;
}

/* 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 {
    font-weight: 500;
    font-size: 12px;
    margin-bottom: 8px;
}

.create-tender .field-tenders-city_beg,
.create-tender .field-tenders-city_end {
    margin: 0;
    padding: 0;
}

.create-tender .select2-container {
    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,
.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-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 {
    padding: 0 16px;
}

.setting-menu 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 {
    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 20px 30px;
    border-radius: 8px;
}

.subscribe-settings__wrapper .form-check-input {
    box-shadow: none;
    outline: none;
}

.subscribe-settings__wrapper .form-check-input:checked {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.subscribe-settings__wrapper .form-check-input:focus {
    border-color: var(--primary-blue)
}

.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;
}


/* driver */

.driver-page {
    padding: 16px;
}

.driver-page__wrapper {
    border-radius: 8px;
}

.driver-page button {
    padding: 8px 24px;
    height: 40px;
    font-size: 14px;
    background: var(--primary-blue);
    border-radius: 6px;
    color: var(--neutral-white);
    margin-bottom: 3px;
    border: 0;
}

.driver-page button:hover {
    background-color: #a8c4ff;
    color: var(--neutral-white) !important;
}

.driver-page h4 {
    margin-top: 20px;
}

.driver-page .form-check-input {
    width: 17px;
    height: 17px;
    margin-top: 3px;
    background-color: var(--neutral-white);
    border: 1px solid var(--neutral-periwinkle);
    overflow: hidden !important;
    box-shadow: none !important;
    outline: none !important;
}

.driver-page .form-check-input:checked[type=checkbox] {
    background-color: var(--primary-blue);
    border: none;
}

.driver-page .field-driver-tmp_notice {
    margin-top: 10px;
}

.mobile-friendly-cell .info-line {
    padding: 2px 0;
}

.mobile-friendly-cell .info-line:last-child {
    border-bottom: none;
}

.table td {
    font-size: 14px;
    line-height: 140%;
    color: var(--neutral-black);
    --bs-table-accent-bg: none;

    @media (max-width: 768px) {
        display: block;
        width: 100%;
    }
}

.sampleload-info {
    display: none;
}

/* 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;
}

.files-page .primary-button, .files-page .secondary-button {
    min-width: 120px;
    max-width: 120px;
}

.files-page .send-button {
    max-width: 200px;

    @media (max-width: 576px) {
        /*max-width: unset;*/
    }
}