/* Общее */
/* Общее */
/* Общее */
/* Общее */
/* Общее */
/* Общее */









.crm_deals__item h1,
.crm_deals__item h2,
.crm_deals__item h3,
.crm_deals__item h4 {
    margin: 10px 0;
}

.crm_deals__item p {
    margin: 0;
    font-size: 16px;
}

.crm_deals__item ol,
.crm_deals__item ul {
    margin: 0;
}

.crm_deals__item label>span {
    max-width: unset;
}

#deals .ql-toolbar.ql-snow {
    width: 100%;
    background-color: #f5f5f5;
}

#deals .ql-container {
    width: 100%;
    margin-top: -10px;
}





/* Сделки, как сущность */
/* Сделки, как сущность */
/* Сделки, как сущность */
/* Сделки, как сущность */
/* Сделки, как сущность */






.crm_deals__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.crm_deals__actions select,
.crm_deals__actions input[type="date"] {
    height: 42px;
    padding: 0 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Exo 2', sans-serif;
    color: #333;
    background: #fff;
    cursor: pointer;
}

.crm_deals__actions select:focus,
.crm_deals__actions input[type="date"]:focus {
    outline: none;
    border-color: #c9011e;
}

/* Пагинация */

.crm_deals__pagination {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 16px 0;
}

.crm_deals__pagination__page {
    font-size: 14px;
    color: #888;
}

@media (max-width: 600px) {
    .crm_deals__actions {
        gap: 8px;
    }

    .crm_deals__actions select,
    .crm_deals__actions input[type="date"] {
        width: 100%;
    }
}

.crm_deals__pagination__input {
    width: 60px;
    height: 42px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Exo 2', sans-serif;
    color: #333;
    -moz-appearance: textfield;
}

.crm_deals__pagination__input::-webkit-outer-spin-button,
.crm_deals__pagination__input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.crm_deals__pagination__input:focus {
    outline: none;
    border-color: #c9011e;
}

.crm_deals__pagination__firs__disabled {
    opacity: 0.4;
    pointer-events: none;
}

.crm_deals__pagination__pre__disabled,
.crm_deals__pagination__nex__disabled {
    opacity: 0.4;
    pointer-events: none;
}






/* Карточка сделки */
/* Карточка сделки */
/* Карточка сделки */
/* Карточка сделки */
/* Карточка сделки */
/* Карточка сделки */







.crm_deals__item {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 16px;
}

.crm_deals__item__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: #f9f9f9;
    cursor: pointer;
}

.crm_deals__item__title {
    font-weight: 600;
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    width: 70%;
    position: relative;
    display: flex;
}

.crm_deals__item__title::after {
    content: "";
    background: linear-gradient(to right, transparent 70%, #f9f9f9 100%);
    display: flex;
    width: 100%;
    height: 20px;
    position: absolute;
}

.crm_deals__item__title__details {
    display: flex;
    color: #737373;
    margin-left: 10px;
    font-weight: normal;
}

.crm_deals__item__status {
    font-size: 13px;
    color: #888;
    margin-left: auto;
}

.crm_deals__item__toggle {
    font-size: 14px;
    color: #888;
    transition: transform 0.2s;
}

.crm_deals__item__toggl__open {
    transform: rotate(180deg);
}

.crm_deals__item__body.hide {
    display: none;
}

/* Вкладки этапов */

.crm_deals__item__tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    overflow-x: auto;
}

.crm_deals__tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
    padding: 5px;
    border-radius: 6px;
    border: 2px solid #eee;
    background: transparent;
    font-size: 12px;
    cursor: pointer;
    color: #888;
    flex: 0 0 auto;
    width: 84px;
    height: 96px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.crm_deals__tab__current {
    border-color: #c9011e;
    color: #c9011e;
}

.crm_deals__tab__past {
    border-color: #aaa;
    color: #888;
}

.crm_deals__tab__future {
    border-color: #eee;
    color: #ccc;
    cursor: not-allowed;
}

.crm_deals__tab__open {
    background: #f5f5f5;
    border-style: solid;
}

.crm_deals__tab__icon {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.crm_deals__tab__icon svg {
    color: #999;
}

.crm_deals__tab__name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: center;
    word-break: break-word;
    line-height: 1;
}

/* Контент этапа */

.crm_deals__item__content {
    padding: 16px;
}

.crm_deals__stage_content {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.crm_deals__progress {
    flex-basis: 100%;
    width: 100%;
    margin-bottom: 4px;
}

.crm_deals__progress__bar {
    height: 20px;
    border-radius: 10px;
    background: #eee;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.crm_deals__progress__bar::before {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: var(--crm_progress_percent, 0%);
    background: #9CCC65;
    border-radius: 10px;
    transition: width 0.3s ease;
}

.crm_deals__progress__label {
    position: relative;
    z-index: 1;
    font-size: 12px;
    color: #000000;
    white-space: nowrap;
}

.crm_deals__stage_content.hide {
    display: none;
}

.crm_deals__elements {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
}






/* Элемент (обёртка) */
/* Элемент (обёртка) */
/* Элемент (обёртка) */
/* Элемент (обёртка) */








.crm_deals__element {
    flex: 1;
    box-sizing: border-box;
}

.crm_deals__element__header {
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.crm_deals__element__header__label {
    font-weight: bold;
}

.crm_deals__element__header__label__required {
    color: #c9011e;
}

.crm_deals__element__header__description {
    font-size: 14px;
}

.crm_deals__element__items {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.crm_deals__element__footer {}







/* Логическая единица элемента */
/* Логическая единица элемента */
/* Логическая единица элемента */
/* Логическая единица элемента */
/* Логическая единица элемента */
/* Логическая единица элемента */







.crm_deals__element__items__item {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    width: 100%;
    margin-bottom: 0;
}

.crm_deals__element__items__item__header {
    text-align: center;
}

.crm_deals__element__items__item__header:empty {
    display: none;
}

.crm_deals__element__items__item__header__label {
    font-size: 13px;
    color: #888;
    text-align: left;
    margin-bottom: 10px;
}

.crm_deals__element__items__item__header__description {
    font-size: 12px;
    color: #aaa;
    line-height: 1.4;
    margin-bottom: 10px
}

.crm_deals__element__items__item__body {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    gap: 10px 30px;
}

/* Поля ввода — по тегу, не по классу */

.crm_deals__element__items__item__body input[type="text"],
.crm_deals__element__items__item__body input[type="number"],
.crm_deals__element__items__item__body input[type="date"],
.crm_deals__element__items__item__body textarea,
.crm_deals__element__items__item__body select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    height: 35px;
}

.crm_deals__element__items__item__body input[type="text"]:disabled,
.crm_deals__element__items__item__body input[type="number"]:disabled,
.crm_deals__element__items__item__body input[type="date"]:disabled,
.crm_deals__element__items__item__body textarea:disabled,
.crm_deals__element__items__item__body select:disabled {
    background: #f5f5f5;
    color: #999;
    cursor: not-allowed;
}

.crm_deals__element__items__item__body input[readonly] {
    background-color: #ebebeb;
    cursor: not-allowed;
}

.crm_deals__element__items__item__body input:disabled {
    cursor: not-allowed;
}



[data-element_type="number"] .crm_deals__element__items__item__body:has(div) {
    display: flex;
    align-items: stretch;
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    flex-direction: row;
    gap: 0;
}

[data-element_type="number"] .crm_deals__element__items__item__body div {
    display: flex;
    align-items: center;
    padding: 0 8px;
    background: #eee;
    font-size: 12px;
    color: #989898;
}

[data-element_type="number"] .crm_deals__element__items__item__body:has(div:first-child):has(div:last-child) input {
    flex: 1;
    border-radius: 0px;
}

/* префикс есть, суффикса нет */
[data-element_type="number"] .crm_deals__element__items__item__body:has(div:first-child) input {
    flex: 1;
    border-radius: 0 6px 6px 0;
}

/* суффикс есть, префикса нет */
[data-element_type="number"] .crm_deals__element__items__item__body:has(div:last-child) input {
    flex: 1;
    border-radius: 6px 0 0 6px;
}

[data-element_type="checkbox"] .crm_deals__element__items__item__body,
[data-element_type="radio"] .crm_deals__element__items__item__body {
    margin-top: 5px;
}






/* Настрока специфичных элементов (обёртка) */
/* Настрока специфичных элементов (обёртка) */
/* Настрока специфичных элементов (обёртка) */
/* Настрока специфичных элементов (обёртка) */
/* Настрока специфичных элементов (обёртка) */






/* Разделитель */

[data-element_type="divider"] {
    flex: 1 1 100%;
    width: 100%;
}

/* Чекбоксы */

[data-element_type="checkbox"] .crm_deals__element__items__item__body {
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: center;
    cursor: pointer;
}

/* Радиокнопки */

[data-element_type="radio"] .crm_deals__element__items__item__body {
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: center;
    cursor: pointer;
}

/* HTML-блок */

[data-element_type="html"] .crm_deals__element__items__item__body {
    font-size: 14px;
    color: #333;
    line-height: 1.5;
}

/* QR-code */

[data-element_type="qrcode"] {}

[data-element_type="qrcode"] .crm_deals__element__items__item__body {
    align-items: center;
    text-align: center;
}


[data-element_type="qrcode"] .crm_deals__element__items__item__body__qrcode__sum {
    font-weight: bold;
}

/* Уведомления */

[data-element_type="notify"] {
    text-align: center;
}

[data-element_type="notify"] .crm_deals__element__items__item__body {
    flex-direction: column;
}

[data-element_type="notify"] .crm_deals__element__items__item__body button {
    margin-top: 10px;
}

/* Кнопка, как элемент (не как кнопка в элементе) */

[data-element_type="button"] {}


/* Файл */

[data-element_type="file"] input {
    height: 35px;
}

[data-element_type="file"] .crm_deals__element__items__item__body>div {
    display: flex;
    padding: 8px 12px;
    border: 1px solid #5bb5c1;
    border-radius: 6px;
    font-size: 14px;
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    position: relative;
}

[data-element_type="file"] .crm_deals__element__items__item__body:has([data-action="value_status_change"])>div {
    background: var(--value_color);
}

[data-element_type="file"] .crm_deals__element__items__item__body .crm_deals__element__items__item__body__value_status_color {
    height: 17px;
    padding: 0 0 2px 0;
    font-size: 12px;
    text-align: center;
    flex: 1 1;
    margin: 0 15px;
    border-radius: 5px;
    display: inline;
    line-height: 1;
    align-content: center;
}

[data-element_type="file"] .crm_deals__element__items__item button[data-action="file_remove"] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    line-height: 1;
    border-radius: 50%;
    background: #eee;
    color: #888;
    font-size: 10px;
    cursor: pointer;
    border: none;
    position: absolute;
    top: 9px;
    right: 5px;
}

[data-element_type="file"] .crm_deals__element__items__item button[data-action="file_add"] {
    display: flex;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    width: 100%;
    cursor: pointer;
    color: #c9011e;
    background: none;
    text-align: center;
    justify-content: center;
}

[data-element_type="file"] .crm_deals__element__items__item button[data-action="file_add"]:hover {
    text-decoration: underline;
}

[data-element_type="file"] .crm_deals__element__items__item__body a {
    color: #333;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 210px;
}

[data-element_type="file"] .crm_deals__element__items__item__body:has([data-action="value_status_change"]) a {
    max-width: 160px;
}

[data-element_type="file"] .crm_deals__element__items__item__body a:hover {
    text-decoration: underline;
}

[data-element_type="file"] .crm_deals__element__items__item__body [data-action="value_status_change"] {
    height: 17px;
    padding: 0;
    font-size: 12px;
    text-align: center;
    flex: 1 1;
    margin: 0 15px;
    cursor: pointer;
}

[data-element_type="file"] .crm_deals__element__items__item__body input[type="file"] {
    display: flex;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    width: 100%;
    cursor: pointer;
    color: #c9011e;
    background: none;
    text-align: center;
    justify-content: center;
}

[data-element_type="file"] .crm_deals__element__items__item__body input[type="file"]::file-selector-button {
    font-size: 0;
    width: 0;
    padding: 0;
    margin: 0;
    border: none;
    text-align: center;
}

/* Изображение */

[data-element_type="image"] input {
    height: 35px;
}


[data-element_type="image"] .crm_deals__element__items__item__body>div {
    display: flex;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    position: relative;
}

[data-element_type="image"] .crm_deals__element__items__item__body img {
    width: 17px;
    height: 17px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #ddd;
    display: block;
    cursor: pointer;
    margin-right: 5px;
}

[data-element_type="image"] .crm_deals__element__items__item button[data-action="image_remove"] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    line-height: 1;
    border-radius: 50%;
    background: #eee;
    color: #888;
    font-size: 10px;
    cursor: pointer;
    border: none;
    position: absolute;
    top: 9px;
    right: 5px;
}

[data-element_type="image"] .crm_deals__element__items__item button[data-action="image_add"] {
    display: flex;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    width: 100%;
    cursor: pointer;
    color: #c9011e;
    background: none;
    text-align: center;
    justify-content: center;
}

[data-element_type="image"] .crm_deals__element__items__item button[data-action="image_add"]:hover {
    text-decoration: underline;
}

[data-element_type="image"] .crm_deals__element__items__item__body a {
    color: #333;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 210px;
    display: flex;
}

[data-element_type="image"] .crm_deals__element__items__item__body a:hover {
    text-decoration: underline;
}

[data-element_type="image"] .crm_deals__element__items__item__body input[type="file"] {
    display: flex;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    width: 100%;
    cursor: pointer;
    color: #c9011e;
    background: none;
    text-align: center;
    justify-content: center;
}

[data-element_type="image"] .crm_deals__element__items__item__body input[type="file"]::file-selector-button {
    font-size: 0;
    width: 0;
    padding: 0;
    margin: 0;
    border: none;
    text-align: center;
}

/* Выбор авто */


[data-element_type="car_select"] {
    text-align: center;
    min-height: 400px;
}

[data-element_type="car_select"] .crm_deals__element__items__item__body {
    align-items: center;
    /* text-align: center; */
}

[data-element_type="car_select"] .crm_deals__element__items__item__body:has([data-action="car_select_lookup"]) {
    flex-direction: row;
    gap: 5px;
}

[data-element_type="car_select"] .crm_deals__element__items__item__body .car__cards_view {
    max-width: 400px;
    min-width: 200px;
    flex: 1 1 100%;
}

/* Дропдаун выбора из списка */

[data-element_type="car_select"] .crm_deals__element__items__item__body__car_select {
    position: relative;
    width: 100%;
}

[data-element_type="car_select"] .crm_deals__element__items__item__body__car_select__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    background: #fff;
    user-select: none;
    transition: border-color 0.2s;
}

[data-element_type="car_select"] .crm_deals__element__items__item__body__car_select__trigger:hover {
    border-color: #c9011e;
}

[data-element_type="car_select"] .crm_deals__element__items__item__body__car_select__dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 100;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.10);
    max-height: 320px;
    overflow-y: auto;
}

[data-element_type="car_select"] .crm_deals__element__items__item__body__car_select__dropdown.hide {
    display: none;
}

[data-element_type="car_select"] .crm_deals__element__items__item__body__car_select__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    cursor: pointer;
    transition: background 0.15s;
    border-bottom: 1px solid #f0f0f0;
}

[data-element_type="car_select"] .crm_deals__element__items__item__body__car_select__item:last-child {
    border-bottom: none;
}

[data-element_type="car_select"] .crm_deals__element__items__item__body__car_select__item:hover {
    background: #fdf0f0;
}

[data-element_type="car_select"] .crm_deals__element__items__item__body__car_select__item__selected {
    background: #fdf0f0;
    border-left: 3px solid #c9011e;
}

[data-element_type="car_select"] .crm_deals__element__items__item__body__car_select__item__thumb {
    width: 60px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    flex: 0 0 auto;
}

[data-element_type="car_select"] .crm_deals__element__items__item__body__car_select__item__info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    align-items: flex-start;
}

[data-element_type="car_select"] .crm_deals__element__items__item__body__car_select__item__title {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

[data-element_type="car_select"] .crm_deals__element__items__item__body__car_select__item__meta {
    font-size: 12px;
    color: #888;
}

[data-element_type="car_select"] .crm_deals__element__items__item__body__car_select__item__source {
    font-size: 11px;
    color: #c9011e;
}

/* Поиск по ссылке/ID — инпут и кнопка по тегу внутри своей логической единицы */

[data-element_type="car_select"] .crm_deals__element__items__item__body input[type="text"] {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

[data-element_type="car_select"] .crm_deals__element__items__item__body input[type="text"]:focus {
    outline: none;
    border-color: #c9011e;
}

[data-element_type="car_select"] .crm_deals__element__items__item__body button[data-action="car_select_lookup"] {
    padding: 8px 14px;
    background: #c9011e;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: opacity 0.2s;
    white-space: nowrap;
}

[data-element_type="car_select"] .crm_deals__element__items__item__body button[data-action="car_select_lookup"]:hover {
    opacity: 0.85;
}

/* DocGenerator */

[data-element_type="doc_generator"] .crm_deals__element__items__item__body a {
    text-align: center;
}

[data-element_type="doc_generator"] input[data-is_editable="0"] {
    pointer-events: none;
    cursor: not-allowed;
}

/* Podpislon */

[data-element_type="podpislon"] .crm_deals__element__items__item__body {
    align-items: center;
}


/* SberAccreditive */

[data-element_type="sber_accreditive"] .crm_deals__element__items__item__body {
    align-items: center;
}

[data-element_type="sber_accreditive"] .crm_deals__element__items__item__body .er__notify {
    text-align: center;
}



/*

Кнопка-элемент: только позиционирование,
цвет/стиль через er_button__base в common.css

*/


@media (max-width: 600px) {
    .crm_deals__item__header {
        align-items: flex-start;
        gap: 6px;
    }

    .crm_deals__element {
        flex-basis: 100%;
        min-width: 100%;
    }
}






/* Подпислон */
/* Подпислон */
/* Подпислон */
/* Подпислон */
/* Подпислон */
/* Подпислон */





.crm_deals__podpislon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.crm_deals__podpislon__status {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #888;
    text-align: center;
}

.crm_deals__podpislon__sign_link,
.crm_deals__podpislon__doc_link {
    color: #c9011e;
    font-size: 13px;
    text-decoration: none;
}

.crm_deals__podpislon__sign_link:hover,
.crm_deals__podpislon__doc_link:hover {
    text-decoration: underline;
}

.crm_deals__podpislon__sign_link.hide,
.crm_deals__podpislon__doc_link.hide {
    display: none;
}

.crm_deals__podpislon__btn {
    padding: 8px 16px;
    background: #000;
    color: #fff;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.crm_deals__podpislon__btn:hover {
    opacity: 0.8;
}

.crm_deals__podpislon__btn.hide {
    display: none;
}

.crm_deals__podpislon__signed_label,
.crm_deals__podpislon__unsigned_label {
    font-size: 30px;
}









/* Элемент Window*/
/* Элемент Window*/
/* Элемент Window*/
/* Элемент Window*/
/* Элемент Window*/




.crm_deals__window__buttons {
    display: flex;
    justify-content: space-evenly;
    gap: 30px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.crm_deals__window__buttons>* {
    flex: 1;
}




/* Элемент Notify */
/* Элемент Notify */
/* Элемент Notify */
/* Элемент Notify */
/* Элемент Notify */





.crm_deals__fiel__notify {
    flex-basis: 100%;
    min-width: 100%;
}

.crm_deals__notify {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    text-align: center;
}

.crm_deals__notify>* {}

.crm_deals__notify__content {
    word-break: break-word;
}

.crm_deals__notify__content p:first-child {
    margin-top: 0;
}

.crm_deals__notify__content p:last-child {
    margin-bottom: 0;
}

.crm_deals__notify .js__crm_deals__notify__send {}

@media (max-width: 600px) {
    .crm_deals__notify {
        padding: 12px 14px;
    }
}





/* Генератор документов */
/* Генератор документов */
/* Генератор документов */
/* Генератор документов */
/* Генератор документов */
/* Генератор документов */




.crm_deals__doc_generator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.crm_deals__doc_generator__link {
    color: #c9011e;
    font-size: 13px;
    text-decoration: none;
}

.crm_deals__doc_generator__link:hover {
    text-decoration: underline;
}

.crm_deals__doc_generator__link.hide {
    display: none;
}

.crm_deals__doc_generator__fields {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 360px;
}

.crm_deals__doc_generator__field {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px;
    width: 100%;
    margin-bottom: 0 !important;
}

.crm_deals__doc_generator__field__label {
    font-size: 13px;
    color: #888;
    text-align: left;
}

.crm_deals__doc_generator__btn {
    padding: 8px 16px;
    background: #000;
    color: #fff;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.crm_deals__doc_generator__btn:hover {
    opacity: 0.8;
}

.crm_deals__doc_generator__btn.hide {
    display: none;
}

.crm_deals__doc_generator__delete {
    padding: 6px 14px;
    background: transparent;
    color: #c9011e;
    border: 1px solid #c9011e;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.crm_deals__doc_generator__delete:hover {
    opacity: 0.7;
}

.crm_deals__doc_generator__delete.hide {
    display: none;
}