/**
 * 薪资管理页面样式
 */

/* 薪资管理容器 */
.salaries-container {
    padding: 20px;
    background-color: #f5f5f5;
    min-height: 100vh;
}

/* 页面标题 */
.content-header {
    margin-bottom: 20px;
}

.content-header h2 {
    color: #333;
    font-size: 24px;
    font-weight: 600;
    margin: 0;
}

/* 统计卡片容器 */
.salary-stats-cards {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

/* 统计卡片 */
.salary-stats-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 24px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-width: 180px;
    flex: 1;
    position: relative;
    overflow: hidden;
}

.salary-stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.salary-stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.salary-stats-card:hover::before {
    opacity: 1;
}

.salary-stats-card.active {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(79, 172, 254, 0.4);
}

/* 不同类型卡片的颜色 */
.salary-stats-card:nth-child(1) {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.salary-stats-card:nth-child(2) {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.salary-stats-card:nth-child(3) {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.salary-stats-card:nth-child(4) {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

/* 总金额卡片特殊样式 */
.salary-stats-card.total-amount {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    border: 2px solid #fff;
    box-shadow: 0 6px 20px rgba(250, 112, 154, 0.3);
}

.salary-stats-card.total-amount:hover {
    box-shadow: 0 10px 30px rgba(250, 112, 154, 0.4);
}

/* 卡片数字 */
.salary-stats-card-number {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    line-height: 1;
}

/* 卡片文字 */
.salary-stats-card-text {
    font-size: 14px;
    font-weight: 500;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 搜索容器 */
.search-container {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.search-form {
    margin: 0;
}

/* 批量操作区域 */
.batch-actions {
    margin-bottom: 20px;
}

/* 表格样式增强 */
.el-table {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

/* 用户信息样式 */
.user-info {
    text-align: left;
}

.user-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.user-phone {
    font-size: 12px;
    color: #666;
}

/* 订单信息样式 */
.order-info {
    text-align: left;
}

.order-id {
    font-weight: 600;
    color: #409eff;
    margin-bottom: 4px;
}

.job-title {
    font-size: 12px;
    color: #666;
}

/* 金额样式 */
.salary-amount {
    color: #67c23a;
    font-weight: 600;
}

.bonus-amount {
    color: #e6a23c;
    font-weight: 600;
}

.deduction-amount {
    color: #f56c6c;
    font-weight: 600;
}

.total-amount {
    color: #409eff;
    font-weight: 700;
    font-size: 16px;
}

.total-amount-large {
    color: #409eff;
    font-weight: 700;
    font-size: 18px;
}

/* 操作按钮 */
.operation-buttons {
    display: flex;
    gap: 5px;
    justify-content: center;
    flex-wrap: wrap;
}

/* 分页容器 */
.pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 详情对话框样式 */
.salary-detail {
    padding: 10px 0;
}

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

.detail-card:last-child {
    margin-bottom: 0;
}

.card-header {
    font-weight: 600;
    color: #333;
}

/* 文本样式 */
.text-muted {
    color: #999;
    font-style: italic;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .salary-stats-cards {
        gap: 15px;
    }
    
    .salary-stats-card {
        min-width: 150px;
        padding: 20px;
    }
    
    .salary-stats-card-number {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .salaries-container {
        padding: 15px;
    }
    
    .salary-stats-cards {
        flex-direction: column;
        gap: 10px;
    }
    
    .salary-stats-card {
        min-width: auto;
        padding: 16px;
    }
    
    .salary-stats-card-number {
        font-size: 24px;
    }
    
    .salary-stats-card-text {
        font-size: 12px;
    }
    
    .search-container {
        padding: 15px;
    }
    
    .operation-buttons {
        flex-direction: column;
        gap: 3px;
    }
}

@media (max-width: 480px) {
    .content-header h2 {
        font-size: 20px;
    }
    
    .salary-stats-card {
        padding: 12px;
    }
    
    .salary-stats-card-number {
        font-size: 20px;
    }
}