/* ===== Reset ===== */
body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background-color: #f5f7fa;
    color: #303133;
}

/* ===== Top Bar ===== */
.top-bar {
    height: 52px;
    background: #fff;
    border-bottom: 1px solid #e4e7ed;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 100;
}
.brand {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
    letter-spacing: 1px;
}

/* ===== Main Area ===== */
.main-area {
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px 24px;
}

/* ===== Top Section: Form + Stats (horizontal row) ===== */
.top-section {
    display: flex;
    align-items: stretch;
    gap: 20px;
    margin-bottom: 20px;
}

.form-panel {
    flex: 0 0 auto;
    background: #fff;
    border-radius: 6px;
    border: 1px solid #e4e7ed;
    padding: 18px 22px;
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
.form-panel .el-form-item { margin-bottom: 0; }

.stats-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}

.stat-card {
    background: #fff;
    border: 1px solid #e4e7ed;
    border-radius: 6px;
    padding: 14px 8px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
    transition: box-shadow .2s;
}
.stat-card:hover { box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.stat-card.clickable { cursor: pointer; }

.sc-num { display: block; font-size: 26px; font-weight: 700; line-height: 1.2; }
.sc-label { display: block; font-size: 12px; color: #909399; margin-top: 4px; }

.sc-num.blue   { color: #409EFF; }
.sc-num.orange { color: #E6A23C; }
.sc-num.green  { color: #67C23A; }
.sc-num.purple { color: #9b59b6; }
.sc-num.cyan   { color: #17a2b8; }
.sc-num.gray   { color: #909399; }

/* ===== Table Section ===== */
.table-section {
    background: #fff;
    border-radius: 6px;
    border: 1px solid #e4e7ed;
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
    overflow: hidden;
}

.sec-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid #ebeef5;
}
.sec-head h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #303133;
}

/* Ensure el-table fills width */
.table-section .el-table { width: 100% !important; }

/* Dialog */
.el-tabs--border-card { box-shadow: none !important; }
