﻿/*Статусы компании в шапке для карточки компании и создания из шаблона*/
.company-form-status-header .status-header {
    overflow: visible;
}

.company-form-status-header {
    z-index: 400;
}

.content__header.status-header {
    overflow: visible;
}

.company-form-status-header .ant-page-header-heading,
.modal-company-header {
    width: 100%;
    max-width: 100%;
    display: flex;
    align-items: start;
    gap: 8px;
    overflow: visible;
    background-color: #fff;
    flex: 0 0 auto;
    margin: 0 0 12px 0;
    padding: 0 0 0 12px;
}

.ant-modal-content .charity-menu-dropdown {
    transform: translate(25px, -44px) !important;
}

.phone-actions-trigger {
    display: inline-flex;
    position: relative;
}

.charity-menu-dropdown.phone-actions-dropdown,
.charity-menu-dropdown.row-actions-dropdown {
    transform: none !important;
    z-index: 900 !important;
}

.contact-phone-actions-dropdown.dropdown-container-element {
    width: min(250px, calc(100vw - 16px));
}

.company-form-status-header .ant-page-header-heading-left,
.modal-company-header-left {
    min-width: 0;
    flex: 1000 1 auto;
    overflow: visible;
}

.company-form-status-header .ant-page-header-heading-title,
.modal-company-header-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 20px;
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    line-height: 24px;
}

.company-form-monthly-donor-indicator {
    background-color: var(--charity-monthly-donor);
    border-radius: 100px;
    display: inline-block;
    height: 10px;
    margin-right: 8px;
    vertical-align: middle;
    width: 10px;
}

.company-form-monthly-donor-title {
    color: var(--charity-monthly-donor);
}

.company-form-status-header .ant-page-header-heading-tags,
.modal-company-header .modal-company-header-statuses {
    min-width: 0;
    flex-shrink: 100000;
    display: flex;
    align-items: center;
    overflow: visible;
    width: 100%;
}

.company-form-status-header .ant-page-header-heading-extra,
.modal-company-header-right {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 4px;
}

.company-form-status-header .status-list-wrapper,
.modal-company-header .status-list-wrapper {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    max-width: 100%;
    overflow: visible;
}

.company-form-status-header .status-list-items,
.modal-company-header .status-list-items {
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
    overflow: hidden;
    flex-shrink: 1000000;
    min-width: 0;
}

.company-form-status-header .company-status-tag,
.modal-company-header .company-status-tag {
    flex-shrink: 0;
    white-space: nowrap;
}

.company-form-status-header .status-item-add-button,
.modal-company-header .status-item-add-button {
    flex-shrink: 0;
    white-space: nowrap;
}

.modal-company-form {
    top: 0;
    width: 100vw !important;
    max-width: 100vw;
    margin: 0;
    padding-bottom: 0;
    overflow: hidden;
}

    .modal-company-form > .ant-modal-content {
        height: 100vh;
        overflow: hidden;
    }

        .modal-company-form > .ant-modal-content > .ant-modal-header {
            display: none;
        }

        .modal-company-form > .ant-modal-content > .ant-modal-body {
            display: flex;
            flex-direction: column;
            min-height: 0;
            overflow: hidden;
            padding: 0 !important;
            background-color: #EDF1F7;
        }

    .modal-company-form .ant-modal-body > .ant-spin-nested-loading,
    .modal-company-form .ant-modal-body > .ant-spin-nested-loading > div,
    .modal-company-form .ant-modal-body > .ant-spin-nested-loading > div > .ant-spin-container {
        flex: 1 1 auto;
        height: 100%;
        min-height: 0;
    }

    .modal-company-form .company-form {
        flex: 1 1 auto;
        height: 100% !important;
        min-height: 0;
        padding: 0 12px 8px;
    }

/*Кнопки для нового дизайна*/
button.charity-new-icon-button {
    color: black !important;
    border-color: #d9d9d9 !important;
    padding: 0px 0px;
    height: 24px;
    width: 24px;
    border-color: #d9d9d9;
}


button.charity-new-button {
    color: black !important;
    border-color: #d9d9d9 !important;
    padding: 0px 7px;
    height: 24px;
    border-color: #d9d9d9;
}

/*Cтили формы компании*/

.company-form .ant-divider-horizontal,
.contact-person-card-modal .ant-divider-horizontal {
    margin: 4px 0px;
}

.company-form .ant-card {
    background: #F5F5F5;
}

.company-form .ant-card-small > .ant-card-body {
    padding: 7px;
}

.company-form .ant-collapse-content > .ant-collapse-content-box {
    padding: 8px 8px;
}

.company-form .ant-card-head-title {
    font-size: 16px;
}

.company-collapse.ant-collapse .ant-collapse-header {
    background-color: #F5F5F5;
    font-weight: 500;
    padding: 7px 9px;
    font-size: 16px;
}

    .company-collapse.ant-collapse .ant-collapse-header .ant-collapse-arrow.anticon {
        font-size: 14px;
        vertical-align: -2px;
    }

.company-form-popover .charity-select-input-placeholder {
    width: 156px;
}

/*Бейдж поступления */

.company-form-last-purpose-label {
    background-color: #FAFAFA;
    padding: 0 7px;
    border: 1px solid transparent;
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.015);
    transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
    border-radius: 2px;
    font-size: 12px;
    line-height: 20px;
    border-color: #d9d9d9 !important;
    display: inline-block;
    cursor: default;
}

    .company-form-last-purpose-label .ti.ti-currency-rubel {
        line-height: 20px;
    }

.company-form-last-purpose-label-text {
    color: var(--charity-primary);
}

/*Cтили формы контакта */

.contact-person-card-label {
    color: var(--charity-secondary45);
    width: 150px;
    font-weight: bold;
    flex-shrink: 0;
}

.receiving-methods-with-title-button {
    width: 28px;
    height: 24px;
    padding: 0;
}

.receiving-methods-combined-button {
    height: 24px;
    padding: 0 8px;
}

    .receiving-methods-combined-button span.anticon {
        padding-right: 3px;
    }

.receiving-methods-with-title-label {
    min-width: 88px;
    font-weight: bold;
}

.company-form-item-content {
    min-width: 323px;
    flex: 1;
}

.company-form-item-label-text {
    font-weight: bold;
    font-size: 14px;
    text-wrap: nowrap;
}

.company-form-item-label {
    display: flex;
    min-width: auto;
    flex: 1;
}

.company-form-item .ant-row-middle {
    align-items: start;
}

@media (max-width: 1920px) {
    .company-form-item-label {
        min-width: 200px;
    }

    .company-form-item-content {
        min-width: 100%;
    }
}
