#index2-page.index2-order-page.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0;
}

#index2-page.index2-order-page {
    color: #183128;
}

#index2-page .index2-order-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.92fr);
    gap: 18px;
    align-items: start;
}

#index2-page .index2-order-main,
#index2-page .index2-order-side {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

#index2-page .index2-order-side {
    position: sticky;
    top: 84px;
}

#index2-page .index2-panel {
    padding: 22px;
    border: 1px solid #dbe7e0;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(23, 49, 39, 0.07);
}

#index2-page .index2-panel-head {
    margin-bottom: 16px;
}

#index2-page .index2-step {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 7px;
    background: #edf5f0;
    color: #2c5b4a;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

#index2-page .index2-panel-title {
    margin: 12px 0 6px;
    font-size: 24px;
    line-height: 1.15;
    font-weight: 700;
    color: #17352b;
}

#index2-page .index2-route-title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

#index2-page .index2-route-warning-icon {
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #d93025;
    box-shadow: 0 0 0 5px rgba(217, 48, 37, 0.14), 0 8px 18px rgba(158, 25, 19, 0.25);
    color: #ffffff;
    font-size: 17px;
    line-height: 1;
}

#index2-page .index2-route-warning-icon:not([hidden]) {
    display: inline-flex;
}

#index2-page .index2-route-warning {
    margin: 0 0 14px;
    border: 1px solid #e08b84;
    border-radius: 10px;
    background: #fff1f0;
    color: #9b2118;
    font-size: 14px;
    font-weight: 700;
}

#index2-page .index2-panel-note {
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
    color: #5a6c65;
}

#index2-page .index2-route-tools {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 12px;
}

#index2-page .index2-map-toggle,
#index2-page #map-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 16px;
    border: 1px solid #d1ded7;
    border-radius: 8px;
    background: #f7faf8;
    color: #234d40;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

#index2-page .index2-map-toggle[hidden],
#index2-page #map-toggle[hidden] {
    display: none !important;
}

#index2-page .index2-map-toggle:hover,
#index2-page .index2-map-toggle:focus,
#index2-page #map-toggle:hover,
#index2-page #map-toggle:focus {
    border-color: #a8c0b5;
    background: #eef6f1;
    color: #214f41;
    text-decoration: none;
    transform: translateY(-1px);
    outline: none;
}

#index2-page #map-wrap {
    margin-bottom: 14px;
    border: 1px solid #dce7e2;
    border-radius: 12px;
    background: #f4f8f6;
}

#index2-page #map {
    min-height: 340px;
    border: none;
    border-radius: 12px;
}

#index2-page .route-form-container,
#index2-page .left-column,
#index2-page .route-form {
    width: 100%;
}

#index2-page #addresses-container {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

#index2-page .address-item {
    margin-bottom: 0;
}

#index2-page .index2-panel--route .input-group {
    border: 3px solid #5f7d70;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.92);
    overflow: hidden;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

#index2-page .index2-panel--route .input-group:hover {
    border-color: #3f6655;
}

#index2-page .index2-panel--route .address-item.route-address-invalid .input-group {
    border-color: #c94c4c;
    box-shadow: 0 0 0 4px rgba(201, 76, 76, 0.16);
}

#index2-page .input-group .form-control {
    height: 44px;
    padding: 8px 14px;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    font-size: 15px;
    line-height: 1.2;
}

#index2-page .index2-panel--route .input-group:focus-within {
    border-color: #235c4a;
    background: #ffffff;
    box-shadow: 0 0 0 5px rgba(35, 92, 74, 0.14);
}

#index2-page .input-group .form-control:focus {
    box-shadow: none;
}

#index2-page .input-group-addon {
    background: transparent;
}

#index2-page .handle {
    min-width: 42px;
    padding: 6px 0;
    border-right: 3px solid #9fb7ab;
}

#index2-page .arrow-up {
    border-bottom-color: #688178;
}

#index2-page .arrow-down {
    border-top-color: #688178;
}

#index2-page .input-group-addon.remove-address {
    width: 42px;
    padding: 4px 0 8px;
    border-left: 3px solid #9fb7ab;
    color: #8ea19a;
}

#index2-page .input-group-addon.remove-address:hover {
    color: #51665e;
    transform: none;
}

#index2-page .address-preview {
    margin: 3px 48px 0;
    color: #798b84;
    font-size: 12px;
    line-height: 1.15;
}

#index2-page .add-address-row {
    margin-top: 14px;
}

#index2-page .add-address-button {
    min-height: 40px;
    padding: 0 14px;
    border: 2px dashed #7f9f91;
    border-radius: 8px;
    background: #f7faf8;
    color: #235c4a;
    font-size: 14px;
    font-weight: 600;
}

#index2-page .add-address-button:hover {
    color: #214f41;
    border-color: #3f6655;
    background: #eef6f1;
    transform: none;
}

#index2-page .form-group {
    margin-bottom: 16px;
}

#index2-page #template-mode-block > div + div {
    margin-top: 12px;
}

#index2-page label.control-label {
    margin-bottom: 8px;
    color: #243a31;
    font-size: 13px;
    font-weight: 700;
}

#index2-page .form-control {
    height: 46px;
    border: 2px solid #819d90;
    border-radius: 8px;
    background: #fcfdfc;
    box-shadow: none;
    color: #183128;
    font-size: 15px;
    line-height: 1.35;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

#index2-page .form-control:focus {
    border-color: #235c4a;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(35, 92, 74, 0.14);
}

#index2-page textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

#index2-page .index2-add-company-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 8px;
    border-color: #8fa79c;
    border-radius: 8px;
    color: #235c4a;
    font-weight: 700;
}

#index2-page .index2-add-company-btn:hover,
#index2-page .index2-add-company-btn:focus {
    border-color: #235c4a;
    background: #eef8f2;
    color: #17352b;
    outline: none;
}

#index2-page .index2-dimension-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

#index2-page .index2-length-stack .form-group:last-child {
    margin-bottom: 0;
}

#index2-page #longlength-block {
    margin-top: -4px;
}

#index2-page .index2-longlength-switch-row {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 28px;
    color: #2f4d42;
    font-size: 13px;
    font-weight: 600;
}

#index2-page .index2-longlength-switch {
    vertical-align: middle;
}

#index2-page .index2-longlength-help {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #e5f0ea;
    color: #235c4a;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    cursor: help;
}

#index2-page .index2-longlength-help:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(35, 92, 74, 0.18);
}

#index2-page .index2-longlength-tooltip {
    position: absolute;
    left: 0;
    top: calc(100% + 6px);
    z-index: 20;
    width: min(290px, calc(100vw - 40px));
    padding: 10px 12px;
    border: 1px solid #d3e2d9;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 14px 32px rgba(35, 92, 74, 0.18);
    color: #3b5148;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.35;
}

#index2-page .index2-longlength-tooltip[hidden] {
    display: none;
}

#index2-page .index2-binary-options,
#index2-page .index2-mode-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

#index2-page .index2-mode-options .radio-inline,
#index2-page .index2-binary-options .radio-inline {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    margin: 0;
    padding: 0 14px 0 36px;
    border: 2px solid #819d90;
    border-radius: 8px;
    background: #fbfcfb;
    white-space: nowrap;
}

#index2-page .index2-mode-options .radio-inline:hover,
#index2-page .index2-binary-options .radio-inline:hover {
    border-color: #3f6655;
    background: #f4faf6;
}

#index2-page .index2-mode-options .radio-inline:has(input:checked),
#index2-page .index2-binary-options .radio-inline:has(input:checked) {
    border-color: #235c4a;
    background: linear-gradient(180deg, #eef8f2, #e5f0ea);
    box-shadow: 0 0 0 3px rgba(35, 92, 74, 0.15);
    color: #17352b;
    font-weight: 700;
}

#index2-page .index2-mode-options .radio-inline input,
#index2-page .index2-binary-options .radio-inline input {
    margin-left: -20px;
}

#index2-page .index2-cargo-hint {
    margin: 0 0 16px;
    padding: 14px 16px;
    border-radius: 10px;
    background: linear-gradient(180deg, #f7fbf8, #f1f7f3);
    border-color: #dce8e1;
    color: #5b6d65;
    font-size: 13px;
}

#index2-page .index2-cargo-hint strong {
    color: #2a4c40;
}

#index2-page .index2-cargo-hint-body {
    max-height: 78px;
}

#index2-page .index2-cargo-hint ul {
    margin: 6px 0 0 18px;
}

#index2-page .index2-cargo-hint-toggle {
    margin-top: 8px;
    color: #235c4a;
    border-bottom-color: rgba(35, 92, 74, 0.38);
    font-weight: 600;
}

#index2-page .index2-cargo-hint-toggle:hover,
#index2-page .index2-cargo-hint-toggle:focus {
    color: #214f41;
    border-bottom-color: rgba(33, 79, 65, 0.68);
}

#index2-page .index2-loading-types-list {
    border: 2px solid #819d90;
    border-radius: 10px;
    background: #fafcfb;
}

#index2-page .index2-loading-type-row {
    gap: 14px;
    padding: 10px 12px;
}

#index2-page .index2-loading-type-row + .index2-loading-type-row {
    border-top: 2px solid #d1ddd7;
}

#index2-page .index2-loading-type-image-btn {
    width: 40px;
    height: 40px;
    border: 2px solid #8fa79c;
    border-radius: 8px;
}

#index2-page .index2-loading-type-switch input:checked + .index2-loading-type-slider {
    background: #235c4a;
}

#index2-page #index2-body-type-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
}

#index2-page #index2-body-type-arrow {
    color: #5e7369;
}

#index2-page #order-body-typies,
#index2-page #order-type-payment,
#index2-page #order-loading-typies-fallback {
    display: grid;
    gap: 10px;
}

#index2-page #order-body-typies {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

#index2-page #order-body-typies .checkbox,
#index2-page #order-type-payment .radio,
#index2-page #order-loading-typies-fallback .checkbox {
    margin: 0;
}

#index2-page #order-body-typies .checkbox label,
#index2-page #order-type-payment .radio label,
#index2-page #order-loading-typies-fallback .checkbox label {
    display: flex;
    align-items: center;
    min-height: 44px;
    margin: 0;
    padding: 10px 12px;
    border: 2px solid #819d90;
    border-radius: 8px;
    background: #fbfcfb;
    color: #243931;
    font-weight: 500;
    line-height: 1.35;
}

#index2-page #order-body-typies .checkbox label:hover,
#index2-page #order-type-payment .radio label:hover,
#index2-page #order-loading-typies-fallback .checkbox label:hover {
    background: #f4faf6;
    border-color: #3f6655;
}

#index2-page #order-body-typies .checkbox label:has(input:checked),
#index2-page #order-type-payment .radio label:has(input:checked),
#index2-page #order-loading-typies-fallback .checkbox label:has(input:checked) {
    border-color: #235c4a;
    background: linear-gradient(180deg, #eef8f2, #e5f0ea);
    box-shadow: 0 0 0 3px rgba(35, 92, 74, 0.15);
    color: #17352b;
    font-weight: 700;
}

#index2-page #order-body-typies input,
#index2-page #order-type-payment input,
#index2-page #order-loading-typies-fallback input {
    margin-top: 0;
}

#index2-page #refresh-rates {
    width: 100%;
    min-height: 48px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #235c4a, #2f7560);
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    transition: transform 0.16s ease, box-shadow 0.16s ease, opacity 0.16s ease;
}

#index2-page #refresh-rates:hover:not(:disabled),
#index2-page #refresh-rates:focus:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(35, 92, 74, 0.2);
    outline: none;
}

#index2-page #refresh-rates:disabled {
    background: #d7e1db;
    color: #788e84;
    box-shadow: none;
    opacity: 1;
    cursor: not-allowed;
}

#index2-page #refresh-rates.index2-btn-loading:disabled {
    cursor: progress;
}

#index2-page #rates-errors {
    margin-bottom: 12px;
    border-radius: 8px;
}

#index2-page #rates-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 0;
}

#index2-page .index2-rate-row {
    gap: 12px;
    margin: 0;
    padding: 14px 14px 12px;
    border: 2px solid #819d90;
    border-radius: 10px;
    background: linear-gradient(180deg, #fbfcfb, #f5faf7);
    align-items: flex-start;
}

#index2-page .index2-rate-row:has(input[type="checkbox"]:checked) {
    border-color: #235c4a;
    background: linear-gradient(180deg, #eef8f2, #e5f0ea);
    box-shadow: 0 0 0 3px rgba(35, 92, 74, 0.15);
}

#index2-page .index2-rate-row > input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    margin-right: 0;
    accent-color: #235c4a;
}

#index2-page .index2-rate-label {
    gap: 6px;
    padding-left: 0;
}

#index2-page .index2-rate-main {
    gap: 6px;
}

#index2-page .index2-rate-rating {
    margin-top: 1px;
    color: #66786f;
}

#index2-page .index2-rate-rating .caption,
#index2-page .index2-rate-rating .index2-rate-availability-fallback {
    font-size: 11px;
}

#index2-page .index2-rate-count-wrap {
    align-self: center;
    margin-left: auto;
}

#index2-page .index2-rate-count-link {
    color: #235c4a;
}

#index2-page .index2-rates-show-all-wrap {
    margin-top: 8px;
}

#index2-page .index2-submit-checklist {
    margin-bottom: 14px;
    padding: 14px 16px;
    border: 1px solid #ebd69f;
    border-radius: 10px;
    background: linear-gradient(180deg, #fffaf0, #fff5df);
    color: #75623c;
}

#index2-page .index2-submit-checklist ul {
    margin-bottom: 0;
}

#index2-page .index2-submit-actions {
    margin-top: auto;
}

#index2-page #submit-button {
    width: 100%;
    min-height: 54px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #2a7b60, #235c4a);
    box-shadow: 0 16px 30px rgba(35, 92, 74, 0.2);
    color: #ffffff;
    font-size: 17px;
    font-weight: 700;
    transition: transform 0.16s ease, box-shadow 0.16s ease, opacity 0.16s ease;
}

#index2-page #submit-button:hover:not(:disabled),
#index2-page #submit-button:focus:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 18px 34px rgba(35, 92, 74, 0.24);
    outline: none;
}

#index2-page #submit-button:disabled {
    background: #d7e1db;
    color: #788e84;
    box-shadow: none;
    opacity: 1;
}

#index2-page .index2-panel--internal {
    margin-top: 18px;
}

#index2-page #dispatcher-block .row {
    margin: 0;
    display: grid;
    grid-template-columns: minmax(240px, 0.6fr) minmax(0, 1fr);
    gap: 18px;
}

#index2-page #dispatcher-block .row > [class*='col-'] {
    padding: 0;
    width: auto;
}

#index2-page .index2-client-search-wrap .form-control {
    padding-right: 36px;
}

#index2-page .index2-client-clear {
    width: 26px;
    height: 26px;
    border-radius: 50%;
}

#index2-page .ui-sortable-placeholder {
    border: 1px dashed #afc5ba;
    border-radius: 10px;
    background: #f5faf7;
}

#index2-page .ymaps-2-1-79-suggest {
    border: 2px solid #819d90;
    border-radius: 8px;
    box-shadow: 0 16px 36px rgba(18, 31, 25, 0.14);
}

#index2-page .ymaps-2-1-79-suggest-item {
    padding: 10px 14px;
    border-bottom-color: #edf3f0;
}

@media (max-width: 1199px) {
    #index2-page .index2-order-layout {
        grid-template-columns: minmax(0, 1fr) minmax(300px, 0.92fr);
    }

}

@media (max-width: 991px) {
    #index2-page .index2-order-layout {
        grid-template-columns: 1fr;
    }

    #index2-page .index2-order-side {
        position: static;
    }

    #index2-page #dispatcher-block .row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    #index2-page.index2-order-page.container {
        padding: 0;
    }

    #index2-page .index2-panel {
        padding: 18px 16px;
        border-radius: 12px;
    }

    #index2-page .index2-panel-title {
        font-size: 21px;
    }

    #index2-page .index2-route-tools {
        justify-content: stretch;
    }

    #index2-page .index2-map-toggle,
    #index2-page #map-toggle {
        width: 100%;
    }

    #index2-page .index2-dimension-grid,
    #index2-page #order-body-typies {
        grid-template-columns: 1fr;
    }

    #index2-page .index2-mode-options .radio-inline,
    #index2-page .index2-binary-options .radio-inline {
        width: 100%;
    }

    #index2-page #map {
        min-height: 280px;
    }
}

@media (max-width: 480px) {
    #index2-page .index2-panel-title {
        font-size: 19px;
    }

    #index2-page .index2-loading-type-row {
        gap: 10px;
        padding: 9px 10px;
    }
}
