/* Карточка объекта: кнопки действий отдельной строкой под хлебными крошками */
@media (min-width: 1024px) {
    /* Шапка растёт вниз, а не держит фиксированную высоту */
    #header-inner {
        height: auto !important;
    }
    .container.flex.items-center.h-16 {
        height: auto !important;
        align-items: flex-start !important;
    }

    /* Родитель — колонка: крошки сверху, кнопки снизу */
    #header-inner > .flex.flex-col.w-full {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    /* Отступ между крошками и кнопками */
    #header-inner .flex.flex-row.grow.font-semibold {
        margin-bottom: 1.25rem !important;
    }

    /* Блок кнопок — во всю ширину, слева, не прижат вправо */
    #header-inner .flex.flex-row.gap-4.items-center.ml-auto {
        margin-left: 0 !important;
        width: 100% !important;
    }
    #header-inner .flex.flex-row.items-center.ml-auto {
        margin-left: 0 !important;
        width: 100% !important;
    }

    /* Сам ряд кнопок переносится */
    #header-inner ul.lg\:flex-row {
        flex-wrap: wrap !important;
        margin-left: 0 !important;
        padding-left: 0 !important;
        max-width: 100% !important;
    }
    #header-inner ul.lg\:flex-row > li {
        margin-left: 0 !important;
        margin-top: -1px !important;
    }
}

/* Крошки и кнопки — строго друг под другом, без наложения */
@media (min-width: 1024px) {
    #header-inner {
        display: block !important;
    }
    #header-inner > div {
        display: block !important;
        width: 100% !important;
    }
    #header-inner .flex.flex-row.grow.font-semibold {
        display: flex !important;
        width: 100% !important;
        margin-right: 0 !important;
    }
    #header-inner .flex.flex-row.gap-4.items-center {
        display: block !important;
        clear: both !important;
    }
}

/* Кнопка "Добавить" не налезает на ряд действий */
@media (min-width: 1024px) {
    #header-inner a.addlink {
        margin-top: 1.25rem !important;
    }
}
