* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body, #app {
    height: 100%;
    font-family: 'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Arial, sans-serif;
}

.el-container {
    height: 100%;
}

.container_body{
    height: calc(100% - 60px) !important;
}

/* 头部 */
.el-header {
    background-color: #409EFF;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.header-left h2 {
    font-size: 20px;
    font-weight: 500;
}

.header-right .el-dropdown-link {
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
}

/* 侧边栏 */
.el-aside {
    background-color: #f5f7fa;
    border-right: 1px solid #e6e6e6;
}

.el-menu {
    border-right: none;
}

/* 主内容 */
.el-main {
    background-color: #f0f2f5;
    padding: 20px;
}

/* 路由加载中 */
.route-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #909399;
    font-size: 14px;
}

.route-loading i {
    font-size: 32px;
    margin-bottom: 10px;
}

/* 无权限提示页（403）已下线：未注册路径由 app.js 的通配路由重定向到用户首个有权页面 */

/* 卡片样式 */
.dashboard-card {
    margin-bottom: 20px;
}

.stat-card {
    text-align: center;
    padding: 20px;
}

.stat-card .stat-icon {
    font-size: 48px;
    color: #409EFF;
    margin-bottom: 10px;
}

.stat-card .stat-value {
    font-size: 32px;
    font-weight: bold;
    color: #303133;
}

.stat-card .stat-label {
    font-size: 14px;
    color: #909399;
    margin-top: 5px;
}

.app-breadcrumb {
    margin-bottom: 15px;
}

.tags-view {
    background: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    margin-bottom: 12px;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    white-space: nowrap;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.tags-view .el-tag {
    cursor: pointer;
}

.route-view{
    height: calc(100% - 60px);
}

.el-card {
    border-radius: 8px;
}

.el-button {
    border-radius: 6px;
}

.detail-drawer .el-drawer__body {
    padding: 0;
    overflow: hidden;
    flex: 1;
}

.data-permission-drawer .el-drawer__body {
    overflow: hidden;
}

.el-drawer__body {
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.el-drawer__body .drawer-footer {
    flex-shrink: 0;
    padding: 12px 0 0;
    text-align: right;
    border-top: 1px solid #ebeef5;
    margin-top: auto;
}

.el-table th.el-table__cell {
    background-color: #f5f7fa;
    color: #606266;
}

/* 响应式布局 */
html {
    min-width: 1280px;
    overflow-x: auto;
}

body {
    min-width: 1280px;
}

.el-main {
    min-width: 1080px;
}

/* 查询表单单行条件：小屏时改为两列 */
@media screen and (max-width: 1440px) {
    .el-form .el-col {
        width: 25% !important;
    }
}

@media screen and (max-width: 1280px) {
    .el-form .el-col {
        width: 33.3333% !important;
    }
}

/* 表格横向滚动，防止列被压缩 */
.el-table {
    width: 100% !important;
}

.el-table .cell {
    white-space: nowrap;
}

/* 分页保持不换行 */
.el-pagination {
    white-space: nowrap;
}

/* 抽屉适配 */
@media screen and (max-width: 768px) {
    .el-drawer {
        width: 100% !important;
    }
}
