/**
 * 所有 ep-app 页面统一内容区布局（与首页一致）
 * 全宽内容 + 模块上下间距 28px
 */

body.ep-app .content {
    padding: 20px 16px 32px !important;
}

/* 页面根容器：铺满内容区，取消居中缩进 */
body.ep-app .content .ep-page-stack,
body.ep-app .content .home-dashboard,
body.ep-app .content .mr-container,
body.ep-app .content .ms-container,
body.ep-app .content .ap-container,
body.ep-app .content .profile-container,
body.ep-app .content #ep-content-slot > .container,
body.ep-app .content .forgot-wrap {
    width: 100%;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
}

/* 模块上下间距 */
body.ep-app .content .ep-page-stack > * {
    margin-bottom: 28px !important;
}

body.ep-app .content .ep-page-stack > *:last-child {
    margin-bottom: 0 !important;
}

/* 避免 layout / 页面 CSS 默认 margin 与模块间距叠加 */
body.ep-app .content .ep-page-stack .box-card,
body.ep-app .content .ep-page-stack .welcome-card,
body.ep-app .content .ep-page-stack .stat-grid,
body.ep-app .content .ep-page-stack .page-header,
body.ep-app .content .ep-page-stack .tab-container,
body.ep-app .content .ep-page-stack .ap-header,
body.ep-app .content .ep-page-stack .ap-toolbar,
body.ep-app .content .ep-page-stack .ap-list-panel,
body.ep-app .content .ep-page-stack .search-section,
body.ep-app .content .ep-page-stack .filter-card,
body.ep-app .content .ep-page-stack .mr-header,
body.ep-app .content .ep-page-stack .mr-stats,
body.ep-app .content .ep-page-stack .mr-toolbar,
body.ep-app .content .ep-page-stack .mr-list-section,
body.ep-app .content .ep-page-stack .ms-header,
body.ep-app .content .ep-page-stack .ms-overview,
body.ep-app .content .ep-page-stack .report-header,
body.ep-app .content .ep-page-stack .report-content,
body.ep-app .content .ep-page-stack .report-form-container,
body.ep-app .content .ep-page-stack .header,
body.ep-app .content .ep-page-stack .gm-panel,
body.ep-app .content .ep-page-stack .gm-reports-section,
body.ep-app .content .ep-page-stack .page-header,
body.ep-app .content .ep-page-stack .admin-single-panel,
body.ep-app .content .ep-page-stack .arm-panel,
body.ep-app .content .ep-page-stack .ep-panel {
    margin-bottom: 0 !important;
}

/* 单模块页：整页只有一个面板，不再堆叠间距 */
body.ep-app .content .ep-page-stack.ep-page-stack--single > * {
    margin-bottom: 0 !important;
}

@media (max-width: 768px) {
    body.ep-app .content {
        padding: 16px 12px 24px !important;
    }

    body.ep-app .content .ep-page-stack > * {
        margin-bottom: 20px !important;
    }

    body.ep-app .content .ep-page-stack > *:last-child {
        margin-bottom: 0 !important;
    }
}
