body {
    margin: 0;
    font-family: 'Golos Text', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #1f2933;
    background-color: #f3f3f3;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}
.service-multiselector {
    width: 100%;
    justify-content: center;
    gap: 4px;
    align-items: center;
    display: flex;
    cursor: pointer;
    text-align: center;
    padding: 4px 18px;
    border: 1px solid #666aad;
    margin: 4px 0 10px 0;
    border-radius: 999px;
}
.shipment-product-container {
    display: flex;
}
.cabinet-header {
    background-color: #000676;
    color: #ffffff;
    padding: 0px 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.cabinet-header__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.cabinet-header__nav {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cabinet-logo__img {
    height: auto;
    max-width: 200px;
    object-fit: contain;
}

.cabinet-header__right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cabinet-deposit {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    margin-top: -5px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cabinet-deposit__label {
    font-size: 13px;
    opacity: 0.9;
}

.cabinet-deposit__value {
    font-weight: 600;
    font-size: 15px;
}

.cabinet-user {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-size: 12px;
    line-height: 1.3;
    color: #e5e7eb;
    border-left: 1px solid #b9b9b933;
    padding-left: 20px;
}

.cabinet-user__hello {
    opacity: 0.85;
}

.cabinet-user__name {
    font-weight: 600;
    letter-spacing: 0.04em;
}

.btn--header {
    background: transparent;
    color: #ffffff;
    border: 1px solid #666aad !important;
    box-shadow: none;
    padding: 8px 18px;
    font-size: 13px;
}

.btn--header:hover {
    background: rgba(102, 106, 173, 0.2);
    box-shadow: none;
}

.btn--exit {
    margin-left: 12px;
}

.cabinet-main {
    max-width: 1200px;
    margin: 24px auto 40px;
    padding: 0 16px 40px;
}

.cabinet-section {
    margin-bottom: 32px;
}

.cabinet-section__title {
    /* margin: 0 0 12px; */
    font-size: 20px;
    font-weight: 600;
    color: #111827;
}

.cabinet-section__subtitle {
    margin: 0 0 16px;
    font-size: 13px;
    color: #6b7280;
}

.cabinet-section__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.cabinet-section__header > div {
    flex: 1;
}

.cabinet-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 35px 50px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
    border: 1px solid #e5e7eb;
    margin-bottom: 16px;
}

.cabinet-card__title {
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 600;
    color: #111827;
}

.cabinet-card__title a {
    text-decoration: none;
    color: #111827;
    transition: color 0.2s ease;
}

.cabinet-card__title a:hover {
    color: #e14193;
    text-decoration: none;
}

.cabinet-card__rows {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cabinet-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 4px 16px;
    font-size: 13px;
}

.cabinet-row__label {
    color: #6b7280;
    min-width: 160px;
    flex-shrink: 0;
}

.cabinet-row__value {
    font-weight: 500;
    color: #111827;
}

.cabinet-row__value--muted {
    color: #9ca3af;
    font-weight: 400;
}

.cabinet-row__input {
    flex: 1;
    min-width: 200px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    padding: 6px 10px;
    font-size: 13px;
    font-family: inherit;
    outline: none;
    background-color: #f9fafb;
    color: #111827;
    font-weight: 500;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

/* Выравнивание полей банковских реквизитов при редактировании */
.bank-details-item .cabinet-row {
    align-items: flex-start;
}

.bank-details-item .cabinet-row__input {
    flex: 1;
    max-width: 400px;
    width: 100%;
}

/* Стили для модального окна детального редактирования адреса */
.address-detail-rows {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.address-detail-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.address-detail-label {
    color: #6b7280;
    font-size: 13px;
    font-weight: 400;
}

.address-detail-input {
    width: 100%;
    max-width: 100%;
}

.address-detail-actions {
    display: flex;
    justify-content: flex-end;
}

.cabinet-row__input:focus {
    border-color: #000676;
    box-shadow: 0 0 0 1px rgba(0, 6, 118, 0.4);
    background-color: #ffffff;
}

.cabinet-row__input::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

.cabinet-flex {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.cabinet-flex > .cabinet-card {
    flex: 1;
    margin-bottom: 0;
}

.cabinet-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.cabinet-grid--2cols {
    display: block;
    /*grid;*/
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 20px;
}

.request-2column {
    display: flex;
    gap: 20px;
}

@media (max-width: 900px) {
    .cabinet-grid,
    .cabinet-grid--2cols {
        grid-template-columns: minmax(0, 1fr);
    }

    .cabinet-header__inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .cabinet-header__nav {
        width: 100%;
        justify-content: flex-start;
        margin: 12px 0;
    }
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .request-2column {
        display: block;
    }
}

@media (max-width: 640px) {
    .products-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.product-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 14px 16px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
    border: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-card__title {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #111827;
}

.product-card__meta {
    margin: 0;
    font-size: 12px;
    color: #9ca3af;
}

.product-card__desc {
    margin: 0;
    font-size: 13px;
    color: #4b5563;
}

.product-card__bottom {
    margin-top: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.product-card__price {
    font-weight: 600;
    font-size: 14px;
    color: #111827;
}

/* Таблица товаров (список) */
.products-table {
    margin-top: 8px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
    border: 1px solid #e5e7eb;
    overflow: hidden;
    padding: 35px 50px;
}

.products-table__header,
.products-table__row {
    display: grid;
    grid-template-columns: 2.3fr 1fr 3fr 1.2fr 1.2fr;
    align-items: center;
}

.products-table__header {
    background-color: transparent;
    border-bottom: 1px solid #e5e7eb;
    /* делаем стиль заголовка ближе к строкам таблицы */
    font-size: 13px;
    text-transform: none;
    letter-spacing: 0;
    color: #111827;
    font-weight: 500;
}

.products-table__row:nth-child(odd) {
    background-color: #ffffff;
}

.products-table__row:nth-child(even) {
    background-color: transparent;
}

.products-table__cell {
    padding: 10px 14px;
    font-size: 13px;
}

.products-table__cell--name {
    font-weight: 500;
    color: #111827;
}

.products-table__cell--sku {
    /* используем тот же шрифт, что и в остальных ячейках */
    font-family: inherit;
    font-size: 13px;
    color: #4b5563;
}

.products-table__cell--desc {
    color: #4b5563;
}

.products-table__cell--price {
    font-weight: 600;
    color: #111827;
    white-space: nowrap;
}

.products-table__cell--actions {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.product-value {
    display: inline;
}

.product-input {
    width: 100%;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    padding: 6px 10px;
    font-size: 13px;
    font-family: inherit;
    outline: none;
    background-color: #f9fafb;
    color: #111827;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.product-input:focus {
    border-color: #000676;
    box-shadow: 0 0 0 1px rgba(0, 6, 118, 0.4);
    background-color: #ffffff;
}

.product-input::placeholder {
    color: #9ca3af;
}

.product-price-edit {
    display: flex;
    align-items: center;
    gap: 4px;
}

.product-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

@media (max-width: 900px) {
    .products-table__header {
        display: none;
    }

    .products-table__row {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: 10px 12px;
    }

    .products-table__cell {
        padding: 2px 0;
        border-bottom: none;
    }

    .products-table__cell--actions {
        margin-top: 6px;
        width: 100%;
        text-align: left;
    }
}

.btn {
    border: none;
    cursor: pointer;
    border-radius: 999px;
    padding: 13.2px 18px;
    font-size: 13px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
    transition: background-color 0.15s ease, box-shadow 0.15s ease, transform 0.05s ease;
}

.btn--primary {
    font-size: 15px;
    /*font-weight: 500;*/
    background-color: #e14193;
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(225, 65, 147, 0.35);
}

.btn--primary:hover {
    background-color: #c9357f;
    box-shadow: 0 10px 24px rgba(225, 65, 147, 0.5);
}

.btn--primary:active {
    transform: translateY(1px);
    box-shadow: 0 6px 16px rgba(225, 65, 147, 0.4);
}

.btn--full {
    width: 100%;
}

.request-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
}

.form-field__label {
    color: #4b5563;
}

.form-field__input {
    border-radius: 8px;
    border: 1px solid #d1d5db;
    padding: 7px 10px;
    font-size: 13px;
    font-family: inherit;
    outline: none;
    background-color: #f9fafb;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.form-field__input:focus {
    border-color: #000676;
    box-shadow: 0 0 0 1px rgba(0, 6, 118, 0.4);
    background-color: #ffffff;
}

.form-field__input::placeholder {
    color: #9ca3af;
}

.form-hint {
    margin: 4px 0 0;
    font-size: 11px;
    color: #9ca3af;
}

.request-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 13px;
}

.request-item {
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background-color: #f9fafb;
    transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.request-item:hover {
    background-color: #ffffff;
    border-color: #000676;
    box-shadow: 0 2px 8px rgba(0, 6, 118, 0.1);
}

.request-item__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.request-item__title {
    flex: 1;
    font-weight: 500;
    color: #111827;
}

.request-item__status {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid transparent;
}

.request-item__status--new {
    background-color: #ecfeff;
    color: #0e7490;
    border-color: #22c3d6;
}

.request-item__status--inprogress {
    background-color: #fef3c7;
    color: #92400e;
    border-color: #fbbf24;
}

.request-item__status--done {
    background-color: #dcfce7;
    color: #166534;
    border-color: #4ade80;
}

.request-item__status--cancelled {
    background-color: #fee2e2;
    color: #991b1b;
    border-color: #fca5a5;
}

.request-item__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    color: #6b7280;
}

.bank-details-wrapper {
    margin-bottom: 16px;
}

.bank-details-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 12px;
}

.bank-details-item {
    margin-bottom: 0;
}

.btn--add-bank {
    margin-top: 8px;
}

.bank-details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.bank-details-header .cabinet-card__title {
    margin: 0;
}

/* Тип доставки и группы полей в заявке */
.pickup-type-toggle {
    display: inline-flex;
    gap: 8px;
    padding: 6px;
    background: transparent;
    border-radius: 8px;
}

.pickup-type-option {
    border: none;
    background: transparent;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    color: #111827;
    transition: all 0.15s ease;
    font-size: 14px;
}

.pickup-type-option:hover {
    background: #fce7f3;
    color: #e14193;
}

.pickup-type-option.active {
    background: #e14193;
    color: #ffffff;
}

/* Старые стили для обратной совместимости (можно удалить позже) */
.delivery-type-toggle {
    display: inline-flex;
    gap: 12px;
    padding: 4px 0;
}

.delivery-type-option {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    cursor: pointer;
}

.delivery-type-option input[type="radio"] {
    cursor: pointer;
}

.delivery-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.delivery-group--hidden {
    display: none;
}

.btn--small {
    padding: 6px 14px;
    font-size: 12px;
}

.btn--edit {
    background-color: transparent;
    color: #111827;
    border: 1px solid #666aad;
    box-shadow: none;
    display: inline-flex;
}

.btn--edit:hover {
    background-color: rgba(102, 106, 173, 0.1);
    box-shadow: none;
}

.btn--delete-el {
    background-color: transparent;
    color: #111827;
    border: 1px solid #d84c4c;
    box-shadow: none;
    display: inline-flex;
}

.btn--cancel, .btn--add {
    background-color: transparent;
    color: #6b7280;
    border: 1px solid #666aad;
    box-shadow: none;
}


.btn--cancel:hover, .btn--add:hover {
    background-color: rgba(102, 106, 173, 0.1);
    color: #111827;
    box-shadow: none;
}

.btn-container {
    width: 300px;
    /*text-align: right;*/
    margin-bottom: 10px;

}

.bank-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
}

.choose-modal {
    background: #e14193;
    text-align: center;
    width: 300px;
    display: none;
    position: absolute;
    z-index: 10;
    border-end-end-radius: 20px;
    border-end-start-radius: 20px;
    /*width: 1168px;*/
}

.choose-modal button {
    background: unset;
    color: #fff;
    width: 100%;
    border-radius: 0px;
}

.choose-modal button:hover {
    background: #c9357f;
}

.btn-item-last {
    border-radius: 0px 0px 20px 20px !important;
}
.btn-item, .btn-item-last {
    transition: all ease-in-out .2s;
    font-size: 15px !important;
}
.btn--addnew {
    border-radius: 20px;
    width: 100%;
}

.btn-container:hover .btn--addnew {

    /*border-start-end-radius: 20px;*/
    /*border-start-start-radius: 20px;*/
    border-end-end-radius: unset;
    border-end-start-radius: unset;
}

.btn-container:hover .choose-modal {
    display: grid;
}

.choose-modal {
    display: none;
    -webkit-box-shadow: 0px 16px 19px -9px rgba(0, 0, 0, 0.37);
    -moz-box-shadow: 0px 16px 19px -9px rgba(0, 0, 0, 0.37);
    box-shadow: 0px 16px 19px -9px rgba(0, 0, 0, 0.37);
}

.btn--delete {
    background-color: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
    box-shadow: none;
    padding: 6px 12px;
    font-size: 18px;
    line-height: 1;
    min-width: 32px;
}

.btn--delete:hover {
    background-color: #fecaca;
    color: #b91c1c;
    box-shadow: none;
}

.products-table__cell--actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Модальное окно */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    /*backdrop-filter: blur(2px);*/
}

.modal__content {
    position: relative;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1001;
}

.modal__content--large {
    max-width: 600px;
}

.modal__content--extra-large {
    max-width: 1100px;
    width: 90%;
}

.modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
}

.modal__title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #111827;
}

.modal__close {
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.modal__close:hover {
    background-color: #f3f4f6;
    color: #111827;
}

.modal__form {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.modal__actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 24px 24px;
}

.modal__actions > div[style*="display: flex"] {
    display: flex !important;
    flex-direction: row !important;
    gap: 12px;
    align-items: center;
}

.modal__actions .btn {
    width: 100%;
}

.modal__actions > div[style*="display: flex"] .btn {
    width: auto;
    flex: 0 0 auto;
}

.modal__actions .btn:not(.btn--full) {
    width: auto;
    align-self: flex-start;
}

/* Стили для таблицы добавления товаров к заявке */
.add-products-table-wrapper {
    max-height: 500px;
    overflow-y: auto;
    overflow-x: auto;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    width: 100%;
}

.add-products-table {
    width: 100%;
    min-width: 100%;
    border-collapse: collapse;
}

.add-products-table__header {
    display: grid;
    gap: 18px;
    background-color: #f9fafb;
    border-bottom: 2px solid #e5e7eb;
    font-weight: 600;
    font-size: 14px;
    color: #374151;
    position: sticky;
    top: 0;
    z-index: 1;
    align-items: center;
}

.add-products-table__header[data-type="cargo"] {
    grid-template-columns: 40px minmax(200px, 1fr) 100px 100px 100px 100px 100px;
    min-width: 100%;
    padding: 16px;
}

.add-products-table__header[data-type="wholesale"] {
    grid-template-columns: 40px minmax(200px, 1fr) 130px 130px 130px 120px;
    min-width: 100%;
}

/* Стили для таблицы просмотра (без чекбокса) */
.add-products-table__header--view[data-type="cargo"] {
    grid-template-columns: minmax(200px, 1fr) 130px 130px 120px;
}

.add-products-table__header--view[data-type="wholesale"] {
    grid-template-columns: minmax(200px, 1fr) 130px 130px 130px 120px;
}

.add-products-table__row {
    display: grid;
    gap: 16px;
    border-bottom: 1px solid #e5e7eb;
    align-items: center;
    transition: background-color 0.2s ease;
}


.add-products-table__row[data-type="cargo"] {
    grid-template-columns: 40px minmax(200px, 1fr) 100px 100px 100px 100px 100px;
    min-width: 100%;
    padding: 16px;
}

#addShipmentProductsToDealModalBody {
    width: 100%;
    overflow-x: auto;
}

.add-products-table {

    width: 100%;
    max-width: 100%;
}

.product-item.disabled {
    color: #999;
    pointer-events: none;

}

.close-product-list {
    border: none;
    background: unset;
    width: unset !important;
    margin: unset !important;
    border-radius: 8px;
    padding: 4px;

}

.close-product-list:hover {
    background: #e14193;
}

.product-item.disabled:hover {
    cursor: not-allowed;
    color: #999;
    background: unset;
}
.add-products-table__header[data-type="shipment"]{
    height: 100px;
}

.add-products-table__header[data-type="shipment"],
.add-products-table__row[data-type="shipment"] {

    display: flex;
    min-width: max-content;
}

.add-products-table__header[data-type="shipment"] .shipment-cell,
.add-products-table__row[data-type="shipment"] .shipment-cell {
    width: 190px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;

}

.shipment-list-city, .city-header {
    border-right: 1px solid #e5e7eb;
    padding: 16px;
}

.city-header {
    background: #f9fafb !important;
}

.add-products-table__row[data-type="shipment"] .shipment-cell:first-child,
.add-products-table__header[data-type="shipment"] .shipment-cell:first-child {
    position: sticky;
    left: 0;
    background: white;
    z-index: 1;
}

.add-products-table__row:hover[data-type="shipment"] .shipment-cell:first-child,
.add-products-table__row:hover[data-type="shipment"] .shipment-cell:first-child {

    background: #f9fafb;
}

.add-products-table__row[data-type="wholesale"] {
    grid-template-columns:  40px minmax(200px, 1fr) 130px 130px 130px 120px;
    min-width: 100%;
}

/* Стили для строк таблицы просмотра (без чекбокса) */
.add-products-table__row--view[data-type="cargo"] {
    grid-template-columns: minmax(200px, 1fr) 130px 130px 120px;
}

.add-products-table__row--view[data-type="wholesale"] {
    grid-template-columns: minmax(200px, 1fr) 130px 130px 130px 120px;
}

.add-products-table__col-field {
    font-size: 14px;
    color: #374151;
}

.add-products-table__row:hover {
    background-color: #f9fafb;
}

.add-products-table__row:last-child {
    border-bottom: none;
}

.add-products-table__col-checkbox {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.add-products-table__col-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #e14193;
    margin: 0;
}

.add-products-table__col-name {
    display: flex;
    flex-direction: column;
    gap: 4px;

}

.add-products-table__product-name {
    font-weight: 500;
    font-size: 14px;
    color: #111827;
    line-height: 1.4;
}

.add-products-table__product-sku {
    font-size: 12px;
    color: #6b7280;
}

.add-products-table__col-price {
    display: flex;
    align-items: center;
    font-weight: 500;
    font-size: 14px;
    color: #111827;
}

.add-products-table__col-quantity {
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-products-table__col-quantity {
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-products-table__col-quantity input[type="number"] {
    width: 100%;
    max-width: 100px;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background-color: transparent;
    color: #374151;
}

.add-products-table__col-quantity input[type="number"]:focus {
    outline: none;
    border-color: #e14193;
    box-shadow: 0 0 0 3px rgba(225, 65, 147, 0.1);
}

.add-products-table__col-quantity input[type="number"][readonly] {
    background-color: transparent;
    border: none;
    cursor: default;
    padding: 8px 0;
    text-align: center;
    font-weight: 500;
}

/* Стили для поиска товаров в модальном окне */
.add-products-search-wrapper {
    margin-bottom: 16px;
}

.add-products-search {
    position: relative;
    display: flex;
    align-items: center;
}

.add-products-search__icon {
    position: absolute;
    left: 12px;
    color: #9ca3af;
    pointer-events: none;
    z-index: 1;
}

.add-products-search__input {
    width: 100%;
    padding: 10px 12px 10px 40px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    color: #111827;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.add-products-search__input:focus {
    border-color: #e14193;
    box-shadow: 0 0 0 3px rgba(225, 65, 147, 0.1);
}

.add-products-search__input::placeholder {
    color: #9ca3af;
}

/* Стили для пагинации товаров */
.products-pagination {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.products-pagination__info {
    font-size: 14px;
    color: #6b7280;
}

.products-pagination__controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.products-pagination__pages {
    display: flex;
    align-items: center;
    gap: 4px;
}

.products-pagination__page {
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    border: 1px solid #e5e7eb;
    background-color: #ffffff;
    border-radius: 6px;
    font-size: 14px;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.products-pagination__page:hover:not(.products-pagination__page--active):not(:disabled) {
    border-color: #e14193;
    color: #e14193;
    background-color: #fdf2f8;
}

.products-pagination__page--active {
    background-color: #e14193;
    border-color: #e14193;
    color: #ffffff;
    cursor: default;
}

.products-pagination__page:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.products-pagination__ellipsis {
    padding: 0 4px;
    color: #9ca3af;
    font-size: 14px;
}

@media (max-width: 768px) {
    .add-products-table__header[data-type="cargo"],
    .add-products-table__row[data-type="cargo"] {
        grid-template-columns: 40px 1fr 90px 90px 80px;
        gap: 8px;
        padding: 12px;
        font-size: 12px;
    }

    .add-products-table__header[data-type="wholesale"],
    .add-products-table__row[data-type="wholesale"] {
        grid-template-columns: 40px 1fr 90px 90px 90px 80px;
        gap: 8px;
        padding: 12px;
        font-size: 12px;
    }

    .add-products-table__header--view[data-type="cargo"],
    .add-products-table__row--view[data-type="cargo"] {
        grid-template-columns: 1fr 90px 90px 80px;
    }

    .add-products-table__header--view[data-type="wholesale"],
    .add-products-table__row--view[data-type="wholesale"] {
        grid-template-columns: 1fr 90px 90px 90px 80px;
    }

    .add-products-table__col-quantity input[type="number"] {
        max-width: 80px;
        padding: 6px 8px;
    }

    .add-products-table__col-quantity input[type="number"][readonly] {
        padding: 6px 0;
    }
}

.modal__body {
    padding: 24px;
}

.request-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.request-detail-value {
    padding: 10px 12px;
    background-color: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    color: #111827;
    font-size: 14px;
    min-height: 20px;
}

.request-detail-value--price {
    font-weight: 600;
    font-size: 18px;
    color: #000676;
}

/* Список платежей */
.payments-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.payment-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    transition: box-shadow 0.15s ease;
}

.payment-item:hover {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.payment-item__info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.payment-item__date {
    font-size: 13px;
    color: #6b7280;
}

.payment-item__system {
    font-size: 14px;
    font-weight: 500;
    color: #111827;
}

.payment-item__amount {
    font-size: 16px;
    font-weight: 600;
    color: #4caf50;
}

.loading {
    padding: 20px;
    text-align: center;
    color: #6b7280;
}

.error {
    padding: 20px;
    text-align: center;
    color: #dc2626;
    background-color: #fef2f2;
    border-radius: 8px;
    border: 1px solid #fecaca;
}

@media (max-width: 640px) {
    .cabinet-section__header {
        flex-direction: column;
        align-items: stretch;
    }

    .products-table__cell--actions {
        flex-direction: column;
        align-items: stretch;
    }

    .products-table__cell--actions .btn {
        width: 100%;
    }
}

@media (max-width: 900px) {
    .cabinet-flex {
        flex-direction: column;
    }
}

/* Спиннер для кнопок */
.button-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: button-spin 0.6s linear infinite;
    vertical-align: middle;
}

.button-spinner--dark {
    border: 2px solid rgba(107, 114, 128, 0.3);
    border-top-color: #6b7280;
}

@keyframes button-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Галочка для кнопок */
.button-checkmark {
    display: inline-block;
    font-size: 16px;
    font-weight: bold;
    color: #10b981;
    vertical-align: middle;
    margin-right: 4px;
}

.btn--success {
    background-color: #10b981 !important;
    border-color: #10b981 !important;
}

/* Уведомления вместо alert */
.action-notification {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    margin-right: 12px;
    margin-top: 10px;
    animation: notification-slide-in 0.3s ease-out;
    max-width: 300px;
    word-wrap: break-word;
}

.action-notification--success {
    background-color: #d1fae5;
    color: #065f46;
    border: none;
}

.action-notification--error {
    background-color: #fee2e2;
    color: #991b1b;
    border: none;
}

.action-notification--hide {
    animation: notification-slide-out 0.3s ease-in forwards;
}

#addProductToShipmentListModal {
    display: none;
}

.add-product-to-table, .product-header {
    justify-content: center;
    display: block !important;
    flex-wrap: wrap;
}

.product-header-container {
    align-items: center;
    flex-wrap: wrap;
    display: flex;
    justify-content: space-between !important;
    gap: 8px;
}

.product-header-container button {
    border: none;
    background: none;
    cursor: pointer;
    padding: unset;

}

.product-header div {
    text-align: center;
}

.add-product-to-table button {
    width: 100%;
    margin: 0 auto;
    border: none;
    background: none;
    cursor: pointer;
}

.add-product-to-table {
    position: relative;
}

.shipment-product-list {
    display: flex;
    top: 100%;
    right: 0;
    border: 1px solid #dadada;
    border-radius: 8px;
    padding: 10px;
    position: absolute;
    background: white;
    -webkit-box-shadow: 0px 4px 13px 1px rgba(0, 0, 0, 0.17);
    -moz-box-shadow: 0px 4px 13px 1px rgba(0, 0, 0, 0.17);
    box-shadow: 0px 4px 13px 1px rgba(0, 0, 0, 0.17);
    z-index: 1002;
    min-width: 200px;
}
#dealProductsModal {
    z-index: 1100 !important;
}
.shipment-product-list .product-item {
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all ease-in-out .2s;
}

.shipment-product-list .product-item:hover {
    background: #e14193;
    color: white;
}

@keyframes notification-slide-in {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes notification-slide-out {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(-20px);
    }
}

