/**
 * B2W CRM — единая схема .modal-footer для всех страниц на Admin.master
 * direction наследуется от body: he-IL (bootstrap-rtl) задаёт body { direction: rtl }
 *   → justify-content: flex-start = кнопки справа (начало строки в RTL).
 * LTR (en и т.д.) → flex-start = кнопки слева.
 * Не выставлять direction на .modal-footer.
 */

body .modal .modal-footer {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-start;
    text-align: start;
    padding: 12px 22px 16px;
}

/* gap вместо отступов Bootstrap .btn + .btn (rtl/ltr) */
body .modal .modal-footer .btn + .btn {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

@media (max-width: 991px) {
    body .modal .modal-footer {
        padding: 10px 14px 12px;
    }
}
