/* =========================================================
   Нижняя панель: отдельный список отчетов
   ========================================================= */

.reports-actions-group {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-width: 150px;
}

.reports-actions-toggle {
    width: 100% !important;
    border-color: #111827 !important;
    background: #111827 !important;
    color: #ffffff !important;
    font-weight: 900 !important;
}

.reports-actions-menu {
    display: none;
    position: absolute;
    left: 0;
    bottom: calc(100% + 8px);
    z-index: 2147482000;

    width: 240px;
    padding: 8px;
    border: 1px solid #dbe4ee;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .22);
}

.reports-actions-group.open .reports-actions-menu {
    display: grid;
    gap: 7px;
}

.reports-actions-menu .reports-action-item {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    min-height: 38px !important;
    padding: 8px 10px !important;
    border-radius: 10px !important;
    text-align: center !important;
    white-space: normal !important;
}

.reports-actions-menu .btn-dark,
.reports-actions-menu button {
    box-shadow: none !important;
}

@media (max-width: 950px) {
    .reports-actions-group {
        width: 100%;
    }

    .reports-actions-menu {
        left: 0;
        right: 0;
        width: 100%;
    }
}


/* =========================================================
   Фикс списка "Отчеты": меню поверх нижней панели
   ========================================================= */

.reports-actions-group {
    overflow: visible !important;
}

.reports-actions-menu {
    position: fixed !important;
    bottom: auto;
    left: auto;
    z-index: 2147483646 !important;
    max-height: min(70vh, 420px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

.reports-actions-group.open .reports-actions-menu {
    display: grid !important;
    gap: 7px !important;
}

.actions .reports-actions-toggle,
.admin-actions .reports-actions-toggle,
.manager-section.actions .reports-actions-toggle {
    background: #111827 !important;
    color: #ffffff !important;
    border-color: #111827 !important;
}
