:root {
    --toast-shadow: 0 2px 8px rgba(0,0,0,0.2), 0 6px 20px rgba(0,0,0,0.15);
}

/* Context Menu */
.context-menu {
    position: fixed;
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    z-index: 10000;
    min-width: 200px;
}
.context-menu ul {
    list-style: none;
    margin: 0;
    padding: 5px 0;
}
.context-menu li {
    padding: 8px 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #333;
}
.context-menu li:hover {
    background: #f5f5f5;
}
.context-menu li.context-menu-danger {
    color: #c00;
}
.context-menu li.context-menu-danger:hover {
    background: #fee;
}
.context-menu li.context-menu-disabled {
    color: #999;
    cursor: default;
}
.context-menu li.context-menu-disabled:hover {
    background: transparent;
}
.context-menu-item {
    padding: 8px 15px;
    cursor: pointer;
    font-size: 13px;
    color: #333;
}
.context-menu-item:hover {
    background: #f5f5f5;
}
/* Подсказка на странице — как .platform-docs__info-box--note в документации */
.page-hint {
    box-sizing: border-box;
    max-width: 100%;
    margin: 0 0 1rem;
    padding: 0.85rem 1rem;
    border: none;
    border-radius: 8px;
    background: #e9eff6;
}
.page-hint-inner {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    column-gap: 0.75rem;
    row-gap: 0.4rem;
    align-items: center;
}
.page-hint-icon {
    grid-row: 1;
    grid-column: 1;
    width: 24px;
    height: 24px;
}
.page-hint-title {
    grid-row: 1;
    grid-column: 2;
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
    color: #6b83c7;
}
.page-hint-body {
    grid-row: 2;
    grid-column: 2;
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
    color: #1f2937;
}
.page-hint-body strong {
    font-weight: 600;
    color: #000;
}
.page-hint--warning {
    background: #fff7e5;
}
.page-hint--warning .page-hint-title {
    color: #c4870a;
}
/* Toast уведомления */
.toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    pointer-events: none;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
.toast-wrapper {
    pointer-events: auto;
    align-self: center;
}
.toast {
    padding: 12px 24px;
    background: #555;
    color: #fff;
    font-size: 14px;
    border-radius: 4px;
    box-shadow: var(--toast-shadow);
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: auto;
}
.toast-visible {
    opacity: 1;
    transform: translateY(0);
}
.toast-hiding {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s, transform 0.3s;
}
.toast-success {
    background: #555;
}
.toast-error {
    background: #666;
    border-left: 3px solid #c00;
}
.toast-info {
    background: #555;
}
/* Clipboard fallback */
.clipboard-fallback {
    position: fixed;
    left: -9999px;
    top: 0;
}

/* Privacy checkboxes */
.privacy-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}
.privacy-checkboxes .form_group.checkbox {
    margin: 0;
}
.privacy-checkboxes .form_group.checkbox > label {
    cursor: pointer;
}
.privacy-checkboxes .form_group.checkbox > label > span {
    font-size: 14px;
    color: var(--text-light);
}
#phoneVisibilityWrapper.disabled {
    opacity: 0.5;
}
#phoneVisibilityWrapper select:disabled {
    cursor: not-allowed;
}
.schedule-errors{
    display: none;
    margin: -2px 0 0 0;
    padding: 0.75rem 20px;
    background: #fee2e2;
    border-top: 1px dashed #fecaca;
    border-bottom: 1px dashed #fecaca;
    color: #991b1b;
    font-size: 0.85rem;
}

/* Мини-табы расписаний в объекте: стили как у form-tab-btn/form-tab-content,
   но с отдельными классами, чтобы не ломать глобальные табы */
.schedule-tabs--full{
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin: 20px 0 40px;
    padding-bottom: 0;
    border-bottom: 2px solid var(--border-color, #e5e7eb);
}
.schedule-tabs {
    display: inline-flex;
    gap: 0.5rem;
    padding-bottom: 0;
}
.schedule-tab-btn {
    background: none;
    height: 50px;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    font-size: 12px;
    padding: 0 15px;
    line-height: 50px;
    vertical-align: middle;
    cursor: pointer;
    color: rgba(130, 140, 150, 1);
    border: none;
    font-weight: 600;
    position: relative;
    transition: color 0.2s;
    margin-bottom: -2px;
    text-decoration: none;
}
.schedule-tab-btn.active {
    font-weight: 600;
    color: #000;
    border-bottom: 2px solid var(--text);
}
.schedule-tab-btn:not(.active):hover {
    color: #222;
}
.schedule-tab-content {
    display: none;
    flex-direction: column;
    gap: 1.5rem;
    margin: 25px 0 0 0;
}
.schedule-tab-content--current.schedule-tab-content {
    display: flex;
}
.add-schedule {
    margin: 0;
    flex-shrink: 0;
}
.schedule-delete-btn,
.schedule-edit-btn {
    background: transparent;
    border: none;
    opacity: 0.3;
    cursor: pointer;
    margin: 0 7px;
}
.schedule-delete-btn:hover{
    opacity: 1;
}
.schedule-edit-btn:hover{
    opacity: 1;
}

/* Кнопка «В архив» в блоке табов организаций — текстовая, серые тона */
.account-primary-btn--muted {
    background: transparent;
    color: #6b7280;
    border: 1px solid #d1d5db;
}
.account-primary-btn--muted:hover:not(:disabled) {
    background: #f3f4f6;
    color: #4b5563;
    border-color: #9ca3af;
}
.org-bulk-delete-btn {
    outline: none;
}
.org-bulk-delete-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    color: #9ca3af;
    border-color: #e5e7eb;
}
.org-bulk-restore-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.account-table .form_group.checkbox{
    margin: 0 10px !important;
}

/* Кликабельный период расписания */
.schedule-period-link {
    background: none;
    border: none;
    padding: 0;
    color: var(--primary, #2563eb);
    cursor: pointer;
    font-size: inherit;
    font-family: inherit;
    text-align: left;
    text-decoration: none;
}
.schedule-period-link:hover {
    color: #fc5808;
}
/* Фиксированная ширина для колонки периода */
.schedule-period-cell {
    width: 180px;
    min-width: 180px;
    max-width: 180px;
}
/* Перенос текста для колонки комментария */
.schedule-comment-cell {
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 0;
}
/* Отступы для внутренних таблиц расписаний */
.object-availability .account-table {
    margin: 0;
}
.object-availability .account-table th,
.object-availability .account-table td {
    padding: 10px 0;
}
/* Выделение строк в таблице */
.account-table tbody > tr:nth-child(odd) {
    background-color: #F5F5F5;
}
.account-table tbody > tr:hover {
    background-color: #F3F3F3;
}
.account-table tr.row-selected {
    background-color: #E0E0E0 !important;
}
/* Строка конструкции, которую только что просматривали (возврат со страницы структуры) */
.account-table tr.objects-row-recently-viewed {
    background-color: #E8E8E8 !important;
}
.account-table tr.objects-row-recently-viewed:hover {
    background-color: #E0E0E0 !important;
}

/* -------------------------------------------------------------------------
   Общая панель фильтров списков ЛК (/account/objects, /account/bookings, …)
   ------------------------------------------------------------------------- */
.account-list-filters-panel {
    margin: 0.65rem 0 1rem;
    background: #F0F0F0;
    overflow: hidden;
}
.account-list-filters-panel__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    padding: 0.65rem 0.85rem;
    background: #fff;
    border: 1px solid #e4e4e4;
    border-bottom: none;
}
.account-list-filters-panel__head--with-search {
    align-items: center;
}
.account-list-filters-panel__search {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    width: 100%;
    max-width: none;
}
.account-list-filters-panel__search-icon {
    position: absolute;
    left: 0.65rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #667085;
    pointer-events: none;
    z-index: 1;
}
.account-list-filters-panel__search .table-search-input,
.account-list-filters-panel__search-input {
    width: 100%;
    max-width: 100%;
    height: 35px;
    padding: 0.4rem 2.25rem 0.4rem 2.35rem;
    font-size: 0.875rem;
    border: none;
    outline: none;
    box-shadow: none;
    background: #fff;
    color: #101828;
    box-sizing: border-box;
    transition: background-color 0.2s;
}
.account-list-filters-panel__search-input::placeholder {
    color: #98a2b3;
}
.account-list-filters-panel__search .table-search-input:hover,
.account-list-filters-panel__search-input:hover,
.account-list-filters-panel__search .table-search-input:focus,
.account-list-filters-panel__search-input:focus {
    border: none;
    outline: none;
    box-shadow: none;
    background: #f5f5f5;
}
.account-list-filters-panel__search .table-search-clear {
    right: 0.4rem;
    color: #98a2b3;
}
.account-list-filters-panel__search .table-search-clear:hover {
    color: #667085;
}
.account-list-filters-panel__title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #101828;
}
.account-list-filters-panel__hint {
    font-size: 0.75rem;
    color: #667085;
    max-width: 100%;
}
.account-list-filters-panel__body {
    padding: 0.75rem 0.85rem 0.85rem;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.75rem 1rem;
}
.account-list-filters-panel__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}
.account-list-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1rem;
    align-items: flex-end;
    flex: 1 1 220px;
}
.account-list-filters__field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 132px;
}
.account-list-filters__label {
    font-size: 0.75rem;
    font-weight: 500;
    color: #475467;
}
.account-list-filters__control {
    min-width: 0;
    height: 35px;
    width: 100%;
    max-width: 200px;
    border-color: #FFF;
    background: #fff;
}
.account-list-filters__control:focus {
    border-color: #98a2b3;
    outline: none;
}

@media (max-width: 640px) {
    .account-list-filters-panel__body {
        flex-direction: column;
        align-items: stretch;
    }
    .account-list-filters-panel__body > .bookings-filters {
        flex: 1 1 auto;
        min-width: 0;
        flex-direction: column;
        align-items: stretch;
    }
    .account-list-filters-panel__actions {
        justify-content: stretch;
    }
    .account-list-filters-panel__actions .account-primary-btn {
        width: 100%;
        min-width: 0;
    }
    .bookings-filters .account-list-filters-panel__actions {
        justify-content: stretch;
        width: 100%;
    }
    .bookings-filters .account-list-filters-panel__actions .account-primary-btn,
    .bookings-filters .account-list-filters-panel__actions .account-primary-btn--ghost {
        width: 100%;
        min-width: 0;
    }
    .account-list-filters__control {
        max-width: none;
    }
}

/* Фильтры списка броней (/account/bookings/…) */
.bookings-filters {
    margin: 0;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.75rem 1rem;
}
.bookings-filters .account-list-filters {
    flex: 1 1 220px;
}
.account-list-filters-panel .bookings-filter-date-wrap .bookings-filter-date-input {
    border: 1px solid #d0d5dd;
    background: #fff;
}
.account-list-filters-panel .bookings-filter-date-wrap .bookings-filter-date-input:focus {
    border-color: #98a2b3;
    outline: none;
    box-shadow: 0 0 0 3px rgba(152, 162, 179, 0.2);
}
.account-list-filters-panel .bookings-filters select.form_control,
.account-list-filters-panel .bookings-filters select.account-list-filters__control {
    min-height: 2.25rem;
    height: auto;
    min-width: 0;
    width: 100%;
    max-width: 200px;
    padding: 0.5rem 1.75rem 0.5rem 0.75rem;
    border: 1px solid #d0d5dd;
    border-radius: 0;
    font-size: 0.875rem;
    font-family: inherit;
    background-color: #fff;
    color: var(--text, #111);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 9L1 4h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.65rem center;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.account-list-filters-panel .bookings-filters select.form_control:focus,
.account-list-filters-panel .bookings-filters select.account-list-filters__control:focus {
    border-color: #98a2b3;
    outline: none;
    box-shadow: 0 0 0 3px rgba(152, 162, 179, 0.2);
}
.account-list-filters-panel .bookings-structure-open,
.account-list-filters-panel .bookings-advertiser-open,
.account-list-filters-panel .bookings-client-open {
    min-width: 140px;
    max-width: 200px;
    width: 100%;
    justify-content: center;
    border-radius: 8px;
    border-color: #d0d5dd;
    box-sizing: border-box;
}
#filter-client-open{
    background: #FFF;
}
#filter-client-open:hover{
    color: #000;
}
.bookings-filter-date-wrap {
    position: relative;
    display: block;
    min-width: 140px;
    max-width: 200px;
    width: 100%;
}
.bookings-filter-date-wrap .bookings-filter-date-input {
    width: 100%;
    padding: 0.5rem 1.75rem 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-family: inherit;
    min-height: 2.25rem;
    box-sizing: border-box;
}
.bookings-filter-date-clear {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 0;
    background: transparent;
    color: #9ca3af;
    font-size: 14px;
    line-height: 1;
    padding: 0;
    cursor: pointer;
    display: none;
    z-index: 3;
}
.bookings-filter-date-wrap.has-value .bookings-filter-date-clear,
.bookings-filter-date-wrap:focus-within .bookings-filter-date-clear {
    display: block;
}
.bookings-filter-date-clear:hover {
    color: #374151;
}
.account-list-filters-panel .account-list-filters-panel__actions .account-primary-btn,
.account-list-filters-panel .account-list-filters-panel__actions .account-primary-btn--ghost {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Выпадающее меню для таба "Еще" */
.form-tab-dropdown {
    position: relative;
    display: inline-block;
}
.form-tab-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-white, #fff);
    border: 1px solid var(--border, #e0e0e0);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    min-width: 180px;
    z-index: 1000;
    margin-top: 2px;
}
.form-tab-dropdown-menu.show {
    display: block;
}
.form-tab-dropdown-item {
    display: block;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 0.75rem 1rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    font-size: 12px;
    color: var(--text-light, #666);
    transition: background-color 0.2s, color 0.2s;
}
.form-tab-dropdown-item:hover {
    background-color: var(--bg-light, #f5f5f5);
    color: var(--text, #333);
}
.contact-wrapper{
    border: #ccc dashed 1px;
    position: relative;
}
.contact-phone-item{
    display: flex;
    gap: 0.5rem;
    right: 0;
    margin-bottom: 0.5rem;
    align-items: center;
}
.approval-checklist-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
    align-items: center;
    position: relative;
}
.approval-checklist-item input {
    flex: 1;
    padding: 0.65rem 40px 0.65rem 0.75rem;
}
#admin-approval-block {
    display: none;
}
.remove-checklist-item {
    width: 30px;
    height: 30px;
    position: absolute;
    right: 5px;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
    transition: opacity 0.2s;
}
.remove-checklist-item:hover {
    opacity: 1;
    background: #F5F5F5;
}
#add-checklist-item {
    margin-top: 0.5rem;
    padding: 0.5rem 1rem;
    background: #e0e7ff;
    color: #3730a3;
    /*border: 1px solid #c7d2fe;*/
    border: none;
    /*border-radius: 0.5rem;*/
    cursor: pointer;
}
#admin-approval-block .form-row {
    /*margin-top: 1.5rem;*/
}

#approval_file,
#approval_url {
    margin-top: 0.5rem;
}

.approval-file-info,
.approval-url-info {
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.5rem;
    background-color: #f5f5f5;
    border-radius: 4px;
}

.approval-file-info-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    min-width: 0;
}

.approval-file-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.approval-file-icon--pdf {
    color: #d32f2f;
}

.approval-file-icon--word {
    color: #2b579a;
}

.approval-file-icon--image {
    color: #4caf50;
}

.approval-file-icon--excel {
    color: #217346;
}

.approval-file-icon--archive {
    color: #ff9800;
}

.approval-file-icon--permit {
    color: #4caf50;
}

.approval-file-icon--technical {
    color: #2196f3;
}

.approval-file-icon--ownership {
    color: #9c27b0;
}

.approval-file-icon--safety {
    color: #f44336;
}

.approval-file-icon--operation {
    color: #ff9800;
}

.approval-file-icon--approval {
    color: #4caf50;
}

.approval-file-icon--default {
    color: #666;
}

.approval-file-link,
.approval-url-link {
    color: #1976d2;
    text-decoration: none;
    font-size: 0.875rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}

.approval-file-link:hover,
.approval-url-link:hover {
    text-decoration: underline;
}

.approval-file-delete-btn {
    flex-shrink: 0;
    margin: 0;
    padding: 0.25rem;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.approval-file-delete-btn:hover {
    opacity: 1;
}

.approval-description {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #666;
}

/* === СТИЛИ ДЛЯ РАЗДЕЛА СЧЕТОВ === */

.accounts-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.accounts-empty {
    padding: 2rem;
    text-align: center;
    color: #666;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
}

.account-item {
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: .5rem;
}

.account-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
}

.account-item-info {
    flex: 1;
}

.account-item-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.account-master-badge {
    background: #fc5808;
    color: white;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.account-item-details {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.875rem;
    color: #666;
}

.account-bank {
    font-weight: 500;
}

.account-number {
    font-family: monospace;
    letter-spacing: 0.05em;
}

.account-currency {
    color: #999;
}

.account-item-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.account-action-btn {
    padding: 0.5rem 1rem;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    cursor: pointer;
    font-size: 0.875rem;
    color: #333;
    transition: background-color 0.2s, border-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.account-action-btn:hover {
    background: #e9e9e9;
    border-color: #ccc;
}

.account-action-btn.account-set-master-btn {
    background: #fff;
    color: #fc5808;
    border-color: #fc5808;
}

.account-action-btn.account-set-master-btn:hover {
    background: #fc5808;
    color: white;
}

.account-action-btn.account-delete-btn {
    padding: 0.5rem;
    width: 36px;
    height: 36px;
}

.form-actions--section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e0e0e0;
}

/* Модальное окно для счетов */
.account-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.account-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.account-modal-content {
    position: relative;
    background: #fff;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 10001;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.account-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.account-modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.account-modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 1;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s, color 0.2s;
}

.account-modal-close:hover {
    background: #f5f5f5;
    color: #000;
}

.account-modal-form {
    padding: 1.5rem;
}

.account-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding-top: 1.5rem;
    margin-top: 1.5rem;
    border-top: 1px solid #e0e0e0;
}

/* === СТИЛИ ДЛЯ РАЗДЕЛА РОЛЕЙ === */

.roles-current-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.role-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
}

.role-badge--active {
    background: #e8f5e9;
    border-color: #4caf50;
}

.role-badge-name {
    font-weight: 600;
    color: #333;
}

.role-badge-status {
    font-size: 0.75rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.roles-empty,
.role-requests-empty {
    padding: 2rem;
    text-align: center;
    color: #666;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
}

.role-requests-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.role-request-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    padding: 1.5rem;
}

.role-request-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
}

.role-request-info {
    flex: 1;
}

.role-request-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.role-request-status {
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.role-request-status--pending {
    background: #fff3cd;
    color: #856404;
}

.role-request-status--approved {
    background: #d4edda;
    color: #155724;
}

.role-request-status--rejected {
    background: #f8d7da;
    color: #721c24;
}

.role-request-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.875rem;
    color: #666;
    margin-top: 0.5rem;
}

.role-request-rejection {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: #fff3cd;
    border-left: 3px solid #ffc107;
    font-size: 0.875rem;
    color: #856404;
}

.role-request-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

/* Загрузка документов */
.upload-dropzone-file {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    margin-top: 0.5rem;
    gap: 1rem;
}

.upload-dropzone-file-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    min-width: 0;
}

.upload-dropzone-file-name {
    font-size: 0.875rem;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.upload-dropzone-file-size {
    font-size: 0.75rem;
    color: #666;
    white-space: nowrap;
}

.upload-dropzone-file-remove {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: opacity 0.2s;
}

.upload-dropzone-file-remove:hover {
    opacity: 0.7;
}

.upload-dropzone-link {
    color: #fc5808;
    cursor: pointer;
    text-decoration: underline;
}

/* Адаптивность */
@media (max-width: 768px) {
    .account-item-header {
        flex-direction: column;
    }

    .account-item-actions {
        width: 100%;
        flex-wrap: wrap;
    }

    .account-action-btn {
        flex: 1;
        min-width: 120px;
    }

    .account-modal-content {
        max-width: 100%;
    }

    .role-request-header {
        flex-direction: column;
    }

    .role-request-actions {
        width: 100%;
        flex-wrap: wrap;
    }
}

/* === СТИЛИ ДЛЯ МЕНЮ ПОЛЬЗОВАТЕЛЯ В ШАПКЕ === */

.header-user-icon {
    display: block;
    flex: 0 0 auto;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    line-height: 0;
    background-color: currentColor;
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
}

.header-user-icon--user-20 {
    width: 20px;
    height: 20px;
    mask-image: url('/img/svg/header-user-20.svg');
    -webkit-mask-image: url('/img/svg/header-user-20.svg');
}

.header-user-icon--user-32 {
    width: 32px;
    height: 32px;
    mask-image: url('/img/svg/header-user-32.svg');
    -webkit-mask-image: url('/img/svg/header-user-32.svg');
}

.header-user-icon--dashboard {
    width: 18px;
    height: 18px;
    mask-image: url('/img/svg/header-dashboard.svg');
    -webkit-mask-image: url('/img/svg/header-dashboard.svg');
}

.header-user-icon--bookings {
    width: 18px;
    height: 18px;
    mask-image: url('/img/svg/sidebar-calendar.svg');
    -webkit-mask-image: url('/img/svg/sidebar-calendar.svg');
}

.header-user-icon--notifications {
    width: 18px;
    height: 18px;
    mask-image: url('/img/svg/header-notifications.svg');
    -webkit-mask-image: url('/img/svg/header-notifications.svg');
}

.header-user-icon--favorites {
    width: 18px;
    height: 18px;
    mask-image: url('/img/svg/header-favorites.svg');
    -webkit-mask-image: url('/img/svg/header-favorites.svg');
}

.header-user-icon--cart {
    width: 18px;
    height: 18px;
    mask-image: url('/img/svg/header-cart.svg');
    -webkit-mask-image: url('/img/svg/header-cart.svg');
}

.header-user-icon--logout {
    width: 18px;
    height: 18px;
    mask-image: url('/img/svg/header-logout.svg');
    -webkit-mask-image: url('/img/svg/header-logout.svg');
}

.header-user-menu-wrapper {
    position: relative;
}

.header-user-btn {
    width: 42px;
    height: 42px;
    position: relative;
    background: #F9F9F9;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    transition: color 0.2s;
    border-radius: 50%;
    margin: 0 20px 0 0;
}

.header-user-btn:hover {
    color: var(--primary);
    background: #F0F0F0;
}

.header-user-btn-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.header-user-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 35px;
    margin-top: 0.5rem;
    background: white;
    border: 1px solid var(--border, #e0e0e0);
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    width: 300px;
    max-height: 600px;
    z-index: 3000;
    overflow: hidden;
}

.header-user-menu.show {
    display: flex;
    flex-direction: column;
}

.header-user-menu-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border-bottom: 1px solid var(--border, #e0e0e0);
}

.header-user-menu-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary, #1976d2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.header-user-menu-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.header-user-menu-org-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text, #333);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

/* Загрузка изображения аккаунта */
.form-row--with-avatar {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.form-row--with-avatar .form-row-fields {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border: 1px solid var(--border, #e0e0e0);
    padding: 1rem;
    margin: 0;
}

.form-row--with-avatar .form-row-fields legend {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text, #333);
    padding: 0 0.5rem;
    margin-bottom: 0.5rem;
}

.form-row--with-avatar .form-row-fields label {
    width: 100%;
}

/* Общие стили для fieldset и legend */
fieldset.form-row-fields {
    border: 1px solid var(--border, #e0e0e0);
    padding: 1rem;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

fieldset.form-row-fields legend {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text, #333);
    padding: 0 0.5rem;
    margin-bottom: 0.5rem;
}
.add-account-link {
    color: var(--primary, #007bff);
    font-size: 14px;
    text-transform: initial;
    text-decoration: underline;
    margin: 0;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: inline;
    width: auto;
}
.add-account-link:hover{
    color: #fc5808;
}
.account-avatar-upload {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
    flex-shrink: 0;
    position: relative;
}
.account-avatar-upload--compact {
    gap: 0.5rem;
}
.account-avatar-preview--compact {
    width: 80px;
    height: 80px;
}
.account-avatar-preview {
    position: relative;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    overflow: hidden;
    /*border: 2px solid var(--border, #e0e0e0);*/
    background: var(--bg-light, #f5f5f5);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.2s;
    margin: 27px 0 0 0;
}
.account-avatar-upload:before {
    content: '';
    display: block;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    position: absolute;
    left: -8px;
    top: 19px;
    border: 3px solid var(--border, #e0e0e0);
    /*border: 3px solid #000;*/
    /*border: 3px solid red;*/
}
.account-avatar-preview:hover {
    background: #e0e0e0;
    /*border-color: var(--primary, #1976d2);*/
}
.account-avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.account-avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light, #999);
}
.account-avatar-remove {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}
.account-avatar-remove:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* Кнопки действий под аватаркой */
.account-avatar-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 0.5rem;
}

.account-avatar-btn {
    width: 32px;
    height: 32px;
    border: 1px solid var(--border, #e0e0e0);
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s, border-color 0.2s;
    padding: 0;
}

.account-avatar-btn:hover {
    background: #f5f5f5;
    border-color: #ccc;
}

.account-avatar-btn img {
    opacity: 0.6;
    transition: opacity 0.2s;
}

.account-avatar-btn:hover img {
    opacity: 1;
}

.account-avatar-btn--delete:hover {
    background: #ffebee;
    border-color: #ef5350;
}

.account-avatar-btn--delete:hover img {
    filter: brightness(0) saturate(100%) invert(27%) sepia(51%) saturate(2878%) hue-rotate(346deg) brightness(97%) contrast(97%);
}

/* Модальное окно для обрезки аватара */
.avatar-crop-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.avatar-crop-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.avatar-crop-modal-content {
    position: relative;
    background: #fff;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow: hidden;
    z-index: 10001;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

.avatar-crop-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.avatar-crop-modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.avatar-crop-modal-close {
    background: none;
    border: none;
    font-size: 1.75rem;
    line-height: 1;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s, color 0.2s;
}

.avatar-crop-modal-close:hover {
    background: #f5f5f5;
    color: #000;
}

.avatar-crop-modal-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow: hidden;
}

.avatar-crop-container {
    position: relative;
    width: 100%;
    height: 400px;
    background: #f5f5f5;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-crop-container img {
    max-width: 100%;
    max-height: 100%;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}

/* Рамка выделения */
.avatar-crop-selection {
    position: absolute;
    border: 2px solid #fff;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.5);
    cursor: move;
    box-sizing: border-box;
}

.avatar-crop-selection-border {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1px dashed rgba(0, 0, 0, 0.3);
}

/* Маркеры для изменения размера */
.avatar-crop-handle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #fff;
    border: 1px solid #333;
    box-sizing: border-box;
}

.avatar-crop-handle-nw {
    top: -5px;
    left: -5px;
    cursor: nw-resize;
}

.avatar-crop-handle-n {
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    cursor: n-resize;
}

.avatar-crop-handle-ne {
    top: -5px;
    right: -5px;
    cursor: ne-resize;
}

.avatar-crop-handle-e {
    top: 50%;
    right: -5px;
    transform: translateY(-50%);
    cursor: e-resize;
}

.avatar-crop-handle-se {
    bottom: -5px;
    right: -5px;
    cursor: se-resize;
}

.avatar-crop-handle-s {
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    cursor: s-resize;
}

.avatar-crop-handle-sw {
    bottom: -5px;
    left: -5px;
    cursor: sw-resize;
}

.avatar-crop-handle-w {
    top: 50%;
    left: -5px;
    transform: translateY(-50%);
    cursor: w-resize;
}

.avatar-crop-modal-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid #e0e0e0;
}

/* Лейаут профиля: форма слева, сайдбар справа */
.profile-layout {
    display: flex;
    gap: 2rem;
}

.profile-form {
    flex: 1;
    min-width: 0;
}

.profile-sidebar {
    width: 250px;
    flex-shrink: 0;
}

.profile-avatar-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
    border: 1px solid var(--border, #e0e0e0);
    margin-bottom: 1rem;
}
.profile-avatar-block .account-avatar-upload {
    margin: 0;
}
.profile-avatar-block .account-avatar-preview {
    width: 150px;
    height: 150px;
    margin: 0;
}
.profile-avatar-block .account-avatar-upload:before {
    width: 160px;
    height: 160px;
    left: -8px;
    top: -8px;
}
.profile-stats {
    border: 1px solid var(--border, #e0e0e0);
    padding: 1rem;
}
.profile-stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px dashed var(--border, #e0e0e0);
}

.profile-stat-item:last-child {
    border-bottom: none;
}

.profile-stat-label {
    font-size: 0.875rem;
    color: var(--text-light, #666);
}

.profile-stat-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text, #333);
}

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

    .profile-sidebar {
        width: 100%;
    }

    .profile-avatar-block {
        flex-direction: row;
        gap: 1.5rem;
        align-items: flex-start;
    }

    .profile-stats {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .profile-stat-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
        border-bottom: none;
        padding: 0.5rem;
    }
}
.add-account-wrapper{
    margin: -10px 0 0 0;
}
.header-user-menu-close:hover {
    background: #f5f5f5;
    color: #000;
}
.header-user-menu-body {
    max-height: 500px;
    overflow-y: auto;
    padding: 1rem;
}
.header-user-menu-item {
    display: grid;
    grid-template-columns: 18px 1fr auto;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    padding: 10px 15px;
    color: var(--text);
    text-decoration: none;
    border-radius: 6px;
    transition: background-color 0.2s;
    position: relative;
}
.header-user-menu-item:hover {
    background-color: #F0F0F0;
    color: #000;
}
.header-user-menu-item .header-user-icon {
    color: #777;
}
.header-user-menu-item:hover .header-user-icon {
    color: #000;
}
.header-user-menu-item:hover .header-user-menu-badge {
    border-color: #222;
    color: #000;
}

.header-user-menu-item span:not(.header-user-menu-badge) {
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Стиль для кнопки выхода */
.header-user-menu-item[href*="logout"] {
    color: #d32f2f;
}
.header-user-menu-item[href*="logout"]:hover {
    background-color: #ffebee;
}
.header-user-menu-item[href*="logout"] .header-user-icon {
    color: #d32f2f;
}
.header-user-menu-divider {
    border-top: #DDD dashed 1px;
    margin: 0.5rem 0;
}
.header-user-menu-notifications {
    position: relative;
}
.header-user-menu-badge {
    flex-shrink: 0;
    width: 25px;
    min-width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #999;
    color: var(--text, #333);
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 1;
}
.header-user-menu-cart {
    position: relative;
}

.header-user-menu-cart-dropdown {
    display: none;
    position: absolute;
    left: calc(100% + 0.5rem);
    top: 0;
    background: white;
    border: 1px solid var(--border, #e0e0e0);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    width: 380px;
    max-height: 500px;
    z-index: 2101;
    overflow: hidden;
}

.header-user-menu-cart-wrapper:hover .header-user-menu-cart-dropdown {
    display: flex;
    flex-direction: column;
}

/* Дополнительная область для плавного перехода мыши */
.header-user-menu-cart-wrapper:hover::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 0;
    width: 0.5rem;
    height: 100%;
    z-index: 2100;
}

.header-user-menu-cart-header {
    padding: 1rem;
    border-bottom: 1px solid var(--border, #e0e0e0);
    font-weight: 600;
}

.header-user-menu-cart-body {
    max-height: 350px;
    overflow-y: auto;
    padding: 0.5rem;
}

.header-user-menu-cart-empty {
    padding: 2rem;
    text-align: center;
    color: #666;
    font-size: 0.875rem;
}

.header-user-menu-cart-footer {
    padding: 1rem;
    border-top: 1px solid var(--border, #e0e0e0);
}

.header-user-menu-cart-footer .account-primary-btn {
    width: 100%;
    justify-content: center;
}

/* Стили для элементов корзины в меню пользователя (переиспользуем из header-cart) */
.header-user-menu-cart-body .header-cart-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;
}
.header-user-menu-cart-body .header-cart-item:last-child {
    border-bottom: none;
}
.header-user-menu-cart-body .header-cart-item:hover {
    background-color: #f9f9f9;
}
.header-user-menu-cart-body .header-cart-item-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}
.header-user-menu-cart-body .header-cart-item-info {
    flex: 1;
    min-width: 0;
}
.header-user-menu-cart-body .header-cart-item-name {
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.header-user-menu-cart-body .header-cart-item-code {
    font-size: 0.75rem;
    color: #666;
    margin-bottom: 0.25rem;
}
.header-user-menu-cart-body .header-cart-item-price {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary, #1976d2);
}
.header-user-menu-cart-body .header-cart-item-remove {
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s;
    padding: 0.25rem;
    align-self: flex-start;
}
.header-user-menu-cart-body .header-cart-item-remove:hover {
    opacity: 1;
}
.cart-booking-header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

/* === СТИЛИ ДЛЯ БЛОКА СОСТОЯНИЯ КОНСТРУКЦИИ === */
.object-status-body {
    padding: 1.25rem 0;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.object-status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}
.object-status-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text, #333);
}
.object-status-percent {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text, #333);
}
.object-status-progress {
    margin-top: 0.25rem;
}
.object-status-progress-bar {
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: #ECECEC;
    overflow: hidden;
}
.object-status-progress-fill {
    height: 100%;
    width: 0;
    border-radius: inherit;
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.object-status-progress-fill.animate {
    animation: progressFill 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes progressFill {
    from {
        width: 0%;
    }
}

.object-status-progress-fill.level-low {
    background: #d65555;
}
.object-status-progress-fill.level-medium {
    background: #e99374;
}
.object-status-progress-fill.level-high {
    background: #5e9c1c;
}
.object-status-summary-text {
    font-size: 0.8rem;
    color: #64748b;
}
.object-status-required-list {
    list-style: none;
    padding-left: 0;
    margin: 0.25rem 0 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.object-status-required-item {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    list-style: none !important;
    padding-left: 1.25rem;
}
.object-status-required-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 46%;
    transform: translateY(-50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: #888;
}
.object-status-required-item.completed::before {
    background-color: #5e9c1c;
}
.object-status-required-item.pending::before {
    background-color: #b91c1c;
}
.object-status-required-item.completed .object-status-required-label {
    color: #5e9c1c;
    text-decoration: line-through;
}
.object-status-required-item.pending .object-status-required-label {
    color: #b91c1c;
}
.object-status-required-link {
    font-size: 0.8rem;
    color: #2563eb;
    opacity: 0.7;
    text-decoration: none;
}
.object-status-required-link:hover {
    color: #1d4ed8;
    opacity: 1;
}

/* === СТИЛИ ДЛЯ СПИСКА ПРЕДЛОЖЕНИЙ ИНН === */
.inn-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--border, #e0e0e0);
    border-top: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
}
.inn-suggestion-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-bottom: 1px dashed var(--border, #f0f0f0);
    transition: background-color 0.2s;
}
.inn-suggestion-item:last-child {
    border-bottom: none;
}
.inn-suggestion-item:hover {
    background-color: #f5f5f5;
}
.inn-suggestion-item strong {
    display: block;
    color: #222;
    font-size: 13px;
    margin-bottom: 0.25rem;
}
.inn-suggestion-item small {
    color: var(--text-light, #777);
    font-size: 11px;
    text-transform: uppercase;
}
.inn-loading-suggestion {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: default;
}
.inn-suggestion-item--muted {
    cursor: default;
    background: #fafafa;
}
.inn-suggestion-item--muted:hover {
    background: #fafafa;
}
.inn-loading-suggestion:hover {
    background-color: transparent;
}
.inn-loading-spinner {
    width: 12px;
    height: 12px;
    border: 2px solid #d1d5db;
    border-top-color: #6b7280;
    border-radius: 50%;
    animation: inn-loading-spin 0.8s linear infinite;
    flex-shrink: 0;
}
@keyframes inn-loading-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}
.bik-loading-suggestion {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: default;
}
.bik-loading-suggestion:hover {
    background-color: transparent;
}
.bik-loading-spinner {
    width: 12px;
    height: 12px;
    border: 2px solid #d1d5db;
    border-top-color: #6b7280;
    border-radius: 50%;
    animation: bik-loading-spin 0.8s linear infinite;
    flex-shrink: 0;
}
@keyframes bik-loading-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Подсказки адресов (Yandex Geosuggest) */
.address-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--border, #e0e0e0);
    border-top: none;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-height: 280px;
    overflow-y: auto;
    z-index: 1000;
    margin-top: -1px;
}
.address-suggest {
    position: relative;
    width: 100%;
}
.address-suggest input,
.address-suggest .org-field {
    width: 100%;
    box-sizing: border-box;
}
.address-suggestion-item {
    padding: 0.6rem 1rem;
    cursor: pointer;
    border-bottom: 1px dashed var(--border, #e5e7eb);
    font-size: 14px;
    transition: background-color 0.2s;
}
.address-suggestion-item strong {
    display: block;
    color: #222;
    font-size: 13px;
    margin-bottom: 0.2rem;
}
.address-suggestion-item small {
    display: block;
    color: var(--text-light, #777);
    font-size: 12px;
    line-height: 1.35;
    text-transform: none;
}
.address-suggestion-item:last-child {
    border-bottom: none;
}
.address-suggestion-item:hover {
    background-color: #f5f5f5;
}
.address-loading-suggestion {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: default;
}
.address-loading-suggestion:hover {
    background-color: transparent;
}
.address-loading-spinner {
    width: 12px;
    height: 12px;
    border: 2px solid #d1d5db;
    border-top-color: #6b7280;
    border-radius: 50%;
    animation: address-loading-spin 0.8s linear infinite;
    flex-shrink: 0;
}
@keyframes address-loading-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

label {
    position: relative;
}

/* === СТИЛИ ДЛЯ НАСТРОЙКИ ЭДО === */

.detect-operator-btn {
    background: transparent;
    border: 1px dashed #999;
    color: #666;
    padding: 8px 16px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 0.875rem;
}
.detect-operator-btn:hover {
    border: 1px dashed #111;
    color: #000;
}
.detect-operator-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.detect-operator-status {
    margin-left: 10px;
    font-size: 0.875rem;
}

.edo-detect-block {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 1rem;
    border: 1px dashed #e2e8f0;
}
.edo-detect-text {
    font-size: 0.875rem;
    color: #64748b;
}

.edo-form-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.4rem;
}

/* ЭДО модалки со скроллом на оверлее */
#edoModal,
#deleteEdoModal {
    overflow-y: auto;
    align-items: flex-start;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}
#edoModal > .schedule-modal-overlay,
#deleteEdoModal > .schedule-modal-overlay {
    display: none;
}
#edoModal > .schedule-modal-content,
#deleteEdoModal > .schedule-modal-content {
    max-height: none;
    overflow: visible;
    margin: 2rem auto;
}

.detect-operator-status--loading {
    color: #666;
}
.detect-operator-status--success {
    color: #28a745;
}
.detect-operator-status--error {
    color: #dc3545;
}
.detect-operator-status--warning {
    color: #ffc107;
}

/* Заголовок секции с кнопкой */
.form-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}
.form-section-header .form-section-title {
    margin-bottom: 0;
}

/* Кнопка добавления ЭДО */
.btn-add-edo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--primary, #2563eb);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-add-edo:hover {
    background: var(--primary-dark, #1d4ed8);
}

/* Пустое состояние */
.edo-empty-state {
    text-align: center;
    padding: 3rem 2rem;
}
.edo-empty-state p {
    margin: 0 0 0.5rem 0;
    color: #4b5563;
}
.edo-empty-state .form-hint {
    margin: 0;
}

/* Блок «Примечание» на ЭДО: разметка .platform-docs__info-box--note + handbook.css; усиление выделения в тексте */
.account-content .platform-docs__info-box--note p strong {
    font-weight: 600;
    color: #000;
}

/* Список профилей ЭДО */
.edo-profiles-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
/* Карточка профиля ЭДО */
.edo-profile-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.edo-profile-card:hover {
    color: #000;
}
.edo-profile-card--primary {
    border-color: var(--primary, #2563eb);
    background: linear-gradient(135deg, #eff6ff 0%, #fff 100%);
}
.edo-profile-card--inactive {
    opacity: 0.6;
    background: #f8fafc;
}

.edo-profile-info {
    flex: 1;
}

.edo-profile-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

/* Бейджи провайдеров */
.edo-provider-badge {
    display: inline-block;
    padding: 0.25rem 0;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}
.edo-primary-badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    background: var(--primary, #2563eb);
    color: #fff;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
}
.edo-inactive-badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    background: #94a3b8;
    color: #fff;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
}
#edoOrgList .edo-primary-badge{
    display: block;
    margin-top: 0.5rem;
    padding: 0.2rem 0.5rem;
    font-size: 0.75rem;
    background: #e0e0e0;
    border-radius: 4px;
    text-transform: capitalize;
    color: #4b5563;
    width: 90px;
    text-align: center;
}
.edo-profile-details {
    font-size: 0.875rem;
    color: #64748b;
}
.edo-profile-name {
    font-weight: 500;
    color: #1e293b;
    margin-bottom: 0.25rem;
}
.edo-profile-inn {
    margin-bottom: 0.125rem;
}
.edo-profile-edoid {
    font-size: 0.8rem;
    color: #94a3b8;
}

/* Действия с профилем */
.edo-profile-actions {
    display: flex;
    gap: 0.5rem;
}

.edo-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: #fff;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
}
.edo-action-btn:hover {
    border-color: #cbd5e1;
    color: #1e293b;
}
.edo-action-btn--primary:hover {
    border-color: #fbbf24;
    background: #fef3c7;
    color: #d97706;
}
.edo-action-btn--edit:hover {
    border-color: var(--primary, #2563eb);
    background: #eff6ff;
    color: var(--primary, #2563eb);
}
.edo-action-btn--delete:hover {
    border-color: #f87171;
    background: #fef2f2;
    color: #dc2626;
}

/* Информационный блок */
.edo-info-block {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
@media (max-width: 768px) {
    .edo-info-block {
        grid-template-columns: 1fr;
    }
}

.edo-info-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: #F7F7F7;
    border-radius: 4px;
}

.edo-info-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--primary, #2563eb);
    color: #fff;
    border-radius: 50%;
    font-weight: 600;
    font-size: 0.875rem;
}

.edo-info-text strong {
    display: block;
    margin-bottom: 0.25rem;
    color: #1e293b;
    font-size: 0.875rem;
}
.edo-info-text p {
    margin: 0;
    color: #64748b;
    font-size: 0.8rem;
    line-height: 1.4;
}

/* Сетка провайдеров в модалке */
.edo-providers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
}

.edo-provider-option {
    cursor: pointer;
    position: relative;
}
.edo-provider-option input {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
    margin: 0;
    padding: 0;
    pointer-events: none;
}
.edo-provider-option-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.2s;
    min-height: 60px;
}
.edo-provider-option input:checked + .edo-provider-option-content {
    border-color: var(--primary, #2563eb);
    background: #eff6ff;
}
.edo-provider-option:hover .edo-provider-option-content {
    border-color: #cbd5e1;
}
.edo-provider-option-name {
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
    color: #64748b;
}

/* Активный провайдер */
.edo-provider-option input:checked + .edo-provider-option-content .edo-provider-option-name {
    color: var(--primary, #2563eb);
}

/* Модальные окна */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.modal-content {
    background: #fff;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}
.modal-content--small {
    max-width: 400px;
}
.modal-content--medium {
    max-width: 560px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}
.modal-title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
}
.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #94a3b8;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}
.modal-close:hover {
    color: #1e293b;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
    border-radius: 0 0 12px 12px;
}

/* Кнопки */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.25rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}
.btn--primary {
    background: var(--primary, #2563eb);
    color: #fff;
}
.btn--primary:hover {
    background: var(--primary-dark, #1d4ed8);
}
.btn--secondary {
    background: #fff;
    color: #64748b;
    border: 1px solid #e2e8f0;
}
.btn--secondary:hover {
    background: #f8fafc;
    color: #1e293b;
}
.btn--danger {
    background: #dc2626;
    color: #fff;
}
.btn--danger:hover {
    background: #b91c1c;
}

/* Форма в модалке */
.form-group {
    margin-bottom: 1.25rem;
}
.form-group:last-child {
    margin-bottom: 0;
}
.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #1e293b;
}
.form-label .required {
    color: #dc2626;
}
.form-input {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.875rem;
    transition: border-color 0.2s;
}
.form-input:focus {
    outline: none;
    border-color: var(--primary, #2563eb);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.form-input::placeholder {
    color: #94a3b8;
}

/* Подсветка обязательных полей при переходе по #required */
.required-field-highlight {
    outline: none;
    box-shadow: inset 0 0 0 1px rgba(249, 115, 22, 0.75);
    border-radius: 4px;
}

.select2-container.required-field-highlight .select2-selection,
.choices.required-field-highlight,
.ts-wrapper.required-field-highlight {
    outline: none !important;
    box-shadow: inset 0 0 0 1px rgba(249, 115, 22, 0.75) !important;
}

.side-label.required-field-highlight {
    box-shadow: inset 0 0 0 1px rgba(249, 115, 22, 0.65);
}

.form-row--two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
@media (max-width: 480px) {
    .form-row--two {
        grid-template-columns: 1fr;
    }
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    cursor: pointer;
}
.form-checkbox input {
    margin-top: 0.125rem;
}
.form-checkbox-text {
    font-size: 0.875rem;
    color: #1e293b;
}

.form-tab-btn--hidden {
    display: none;
}

/* Подсказки на странице ролей — свои классы, JS (category-reference-panel) на этот блок не срабатывает */
.roles-reference-panel {
    padding: 1.25rem 1.25rem 1.25rem 1.5rem;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    flex: 0 0 520px;
    max-width: 520px;
    min-width: 0;
    box-sizing: border-box;
    height: auto;
    overflow: visible;
}
.roles-reference-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
    padding: 0 0 10px 0;
}
.roles-reference-header h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
}
.roles-reference-close {
    background: transparent;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    border: 1px solid var(--border);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: var(--text-light);
}
.roles-reference-close:hover {
    background: var(--bg-light);
    color: var(--text);
}
.roles-reference-body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    overflow-y: auto;
    flex: 1 1 auto;
    overflow-x: hidden;
    padding: 0 10px 0 0;
}
.roles-reference-hint {
    width: 100%;
    display: block;
}
.roles-reference-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #111;
}
.roles-reference-item {
    padding: 10px;
    border-bottom: 1px dashed var(--border);
}
.roles-reference-item:last-child {
    border-bottom: none;
}
.roles-reference-description {
    font-size: 0.8rem;
    color: var(--text-light);
    margin: 5px 0;
}
.roles-reference-description strong {
    color: #111;
    font-size: 12px;
}

/* Toast уведомления */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
}
.notification-toast {
    background: #fff;
    box-shadow: var(--toast-shadow);
    padding: 16px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    animation: toastSlideIn 0.3s ease;
    cursor: pointer;
    border-left: 4px solid #afd2ff;
}
.notification-toast__icon {
    width: 40px;
    height: 40px;
    border-radius: 0.5rem;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    --notification-icon-tone: #7dadf0;
}
.notification-toast__icon .notification-icon-graphic {
    width: 24px;
    height: 24px;
    display: block;
    flex-shrink: 0;
    background-color: var(--notification-icon-tone, #7dadf0);
    -webkit-mask-image: var(--notification-icon-url);
    mask-image: var(--notification-icon-url);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}
.notification-toast__content {
    flex: 1;
    min-width: 0;
}
.notification-toast__title {
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 4px;
}
.notification-toast__message {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}
.notification-toast__close {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 0;
    font-size: 18px;
    line-height: 1;
}
.notification-toast__close:hover {
    color: #333;
}

@keyframes toastSlideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes toastSlideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Ошибка валидации инпута */
.input-error {
    border-color: #dc3545 !important;
}
.input-error:focus {
    border-color: #dc3545 !important;
}

/* ─── EDO Wizard 3-step modal ─────────────────────────────────────────── */

/* Progress bar */
.edo-wizard-progress {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem 0;
    gap: 0;
}
.edo-wizard-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .25rem;
    min-width: 70px;
}
.edo-wizard-step-num {
    width: 28px; height: 28px;
    border-radius: 50%;
    border: 2px solid #d1d5db;
    display: flex; align-items: center; justify-content: center;
    font-size: .8rem; font-weight: 600;
    color: #9ca3af;
    background: #fff;
    transition: border-color .2s, background .2s, color .2s;
}
.edo-wizard-step.active .edo-wizard-step-num {
    border-color: #2563eb;
    background: #2563eb;
    color: #fff;
}
.edo-wizard-step.done .edo-wizard-step-num {
    border-color: #16a34a;
    background: #16a34a;
    color: #fff;
}
.edo-wizard-step-label {
    font-size: .7rem;
    color: #9ca3af;
    white-space: nowrap;
}
.edo-wizard-step.active .edo-wizard-step-label,
.edo-wizard-step.done .edo-wizard-step-label {
    color: #374151;
    font-weight: 500;
}
.edo-wizard-step-line {
    flex: 1;
    height: 2px;
    background: #e5e7eb;
    margin-bottom: 1.25rem;
}

/* Org selection list */
.edo-org-list {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    max-height: 240px;
    overflow-y: auto;
    padding-bottom: 10px;
}
.edo-org-option {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    padding: .75rem;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}
.edo-org-option:hover { border-color: #93c5fd; background: #f0f7ff; }
.edo-org-option input[type="radio"] {
    margin-top: .15rem;
    flex-shrink: 0;
    display: none;
}
.edo-org-option input[type="radio"]:checked + .edo-org-option-content { /* handled by border */ }
.edo-org-option:has(input:checked) {
    border-color: #000;
    background: #f5f5f5;
}
.edo-org-option:hover {
    border-color: #ccc;
    background: #f9f9f9;
}
.edo-org-option-content { display: flex; flex-direction: column; gap: .15rem; }
.edo-org-option-name {
    font-weight: 600;
    font-size: .92rem;
    color: #4b5563;
}
.edo-org-option-meta { font-size: .78rem; color: #6b7280; }

.booking-panel-title {
    font-weight: 600;
    font-size: 14px;
    margin: 0 0 1rem 0;
    color: #4b5563;
}

.edo-no-orgs-notice {
    padding: .75rem;
    background: #fef3c7;
    border-radius: 6px;
    color: #92400e;
    font-size: .875rem;
}

/* Org popup modal — поверх EDO-wizard, скролл на затемнённом фоне */
#edoOrgPopupModal {
    z-index: 10000;
    /* overflow-y: auto задан inline; align-items: flex-start — карточка не центрируется по вертикали */
    padding: 2rem 1rem;
}
#edoOrgPopupModal > .schedule-modal-overlay {
    /* Оверлей остаётся фиксированным — не скроллится вместе с контентом */
    position: fixed;
}
#edoOrgPopupModal > .schedule-modal-content {
    position: relative;
    z-index: 10001;
    /* max-height и overflow убраны — карточка растёт до своей высоты */
    max-height: none !important;
    overflow-y: visible !important;
}
