/* 全局样式 */
body {
    margin: 0;
    background-color: #f0f2f5;
    font-family: 'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Arial, sans-serif;
}

#app {
    min-height: 100vh;
}

/* v-cloak 指令样式，防止模板语法在Vue加载完成前显示 */
[v-cloak] {
    display: none !important;
}

/* 登录页 */
.login-box {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.login-card {
    width: 400px;
    padding: 20px;
}

.login-title {
    text-align: center;
    margin-bottom: 30px;
    font-weight: 500;
    font-size: 20px;
}

.captcha-row {
    display: flex;
    gap: 10px;
}

/* 主页面 */
.main-container {
    padding: 20px;
}

.stats-row {
    margin-bottom: 20px;
}

.stat-label {
    font-size: 14px;
    color: #909399;
    margin-bottom: 10px;
}

.stat-value {
    font-size: 20px;
    font-weight: bold;
    color: #303133;
}

.filter-card {
    margin-bottom: 20px;
}

.pagination-box {
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
}

/* 合同详情 */
.section-title {
    margin-bottom: 20px;
    /* font-weight: bold;
    margin: 15px 0 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px; */
}

.bill-summary {
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
}

/* 表单 */
.form-section {
    margin-bottom: 20px;
}

/* 表格优化 */
.el-table {
    font-size: 13px;
}

.el-table th {
    background-color: #fafafa;
    color: #606266;
    font-weight: 600;
}

/* 表头单元格 - 防止文本换行 */
.el-table__header .el-table__cell,
.el-table__header-wrapper th .cell {
    padding: 12px 8px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 用户管理表格专用：确保表头一行显示并按列宽排列 */
.user-table {
    min-width: 700px;
}
.user-table .el-table__header-wrapper th .cell {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 按钮组 */
.btn-group {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

/* 响应式 */
@media screen and (max-width: 768px) {
    .stats-row .el-col {
        margin-bottom: 10px;
    }
}