/* Actions按钮样式 */
.action-buttons-group {
    display: inline-flex;
    gap: 10px;
    margin-left: 10px;
    flex-wrap: wrap;
}

.action-button {
    padding: 6px 12px;
    font-size: 14px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.action-button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.action-button.btn-danger {
    background-color: #dc3545;
    color: #fff;
}

.action-button.btn-danger:hover {
    background-color: #c82333;
}

.action-button.btn-primary {
    background-color: #007bff;
    color: #fff;
}

.action-button.btn-primary:hover {
    background-color: #0056b3;
}

/* 隐藏原始的下拉框和标签 */
.actions label[for="id_action"],
.actions select[name="action"] {
    display: none !important;
}

/* 隐藏执行按钮（Go按钮） */
.actions button[name="index"],
.actions input[type="submit"][name="index"],
.actions .button[type="submit"] {
    display: none !important;
}

/* 调整actions区域的布局 */
.actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

/* 隐藏仪表盘的最近动作区域 */
/* 注意：CSS 无法直接检查文本内容，所以主要通过 JavaScript 来处理 */
/* 这里提供一些通用的隐藏规则 */

/* 隐藏最近动作模块（通过类名或ID） */
.dashboard .module.recent-actions,
.dashboard #recent-actions-module,
.dashboard .module[id*="recent"],
.dashboard .module[class*="recent"] {
    display: none !important;
}

