/* BKT快闪管理系统 - 样式 */

/* ========== 全局基础 ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }

body { 
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    background: #f0f4f8;
    min-height: 100vh;
}

/* ========== 下拉选择框 ========== */
select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding: 8px 36px 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    background-color: #fff;
    cursor: pointer;
    min-height: 42px;
}

select:focus {
    outline: none;
    border-color: #11998e;
}

select:hover {
    border-color: #cbd5e1;
}

/* ========== 输入框 ========== */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="date"],
input[type="search"],
textarea {
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* ========== 按钮统 ========== */
button {
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: #f5f5f5;
    color: #666;
    border: 1px solid #ddd;
    padding: 10px 20px;
    border-radius: 8px;
}

.btn-secondary:hover {
    background: #eee;
}

.btn-export {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-export:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(17, 153, 142, 0.3);
}

.btn-settings {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-settings:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(240, 147, 251, 0.3);
}

.btn-calculate {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-calculate:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(17, 153, 142, 0.3);
}

.btn-calculate:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-detail {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-detail:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(79, 172, 254, 0.3);
}

.btn-danger {
    background: #f44336;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
}

.btn-danger:hover {
    background: #d32f2f;
}

/* ========== 登录页 ========== */
.login-container { 
    min-height: 100vh; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); 
}

.login-box { 
    background: white; 
    padding: 40px; 
    border-radius: 16px; 
    box-shadow: 0 10px 40px rgba(0,0,0,0.2); 
    width: 360px; 
}

.login-logo h1 { font-size: 32px; color: #333; margin-bottom: 8px; }
.login-logo h1 span { color: #667eea; }
.login-logo p { color: #666; margin-bottom: 30px; }

.form-group { margin-bottom: 20px; }
.form-group label { display: block; color: #333; margin-bottom: 8px; font-weight: 500; font-size: 14px; }
.form-group input, .form-group select { 
    width: 100%; 
    padding: 12px 16px; 
    border: 2px solid #e0e0e0; 
    border-radius: 8px; 
    font-size: 14px; 
    transition: border-color 0.3s; 
}

.login-btn { 
    width: 100%; 
    padding: 14px; 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); 
    color: white; 
    border: none; 
    border-radius: 8px; 
    font-size: 16px; 
    cursor: pointer; 
    transition: transform 0.2s; 
}

.login-btn:hover { transform: translateY(-2px); }
.login-footer { text-align: center; color: #999; margin-top: 20px; font-size: 12px; }

/* ========== 导航栏 ========== */
.navbar { 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); 
    padding: 0 32px; 
    height: 64px; 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    box-shadow: 0 4px 20px rgba(102,126,234,0.25); 
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-brand { 
    display: flex;
    align-items: center;
    gap: 12px;
    color: white; 
    font-size: 18px; 
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* LOGO 圆形图片 */
.navbar-brand::before {
    content: '';
    width: 40px;
    height: 40px;
    background-image: url('/images/logo.png');
    background-size: cover;
    background-position: center;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* 响应式：小屏幕下 LOGO 略小 */
@media (max-width: 768px) {
    .navbar-brand::before {
        width: 36px;
        height: 36px;
    }
    .navbar-brand {
        font-size: 16px;
    }
}

.navbar-links { display: flex; gap: 8px; }

.navbar-links a { 
    color: rgba(255,255,255,0.85); 
    text-decoration: none; 
    padding: 10px 18px; 
    border-radius: 8px; 
    transition: all 0.25s ease; 
    font-size: 14px;
    font-weight: 500;
    position: relative;
}

.navbar-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: rgba(255,255,255,0.5);
    transition: all 0.25s ease;
    transform: translateX(-50%);
}

.navbar-links a:hover { 
    color: white; 
    background: rgba(255,255,255,0.15); 
}

.navbar-links a:hover::before {
    width: 60%;
}

.navbar-links a.active { 
    color: white; 
    background: rgba(255,255,255,0.2); 
}

.navbar-links a.active::before {
    width: 60%;
    background: white;
}

.navbar-user { 
    color: white; 
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 16px;
}
.navbar-user span {
    opacity: 0.9;
}
.navbar-user a { 
    color: white; 
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 6px;
    background: rgba(255,255,255,0.1);
    transition: background 0.2s ease;
}
.navbar-user a:hover {
    background: rgba(255,255,255,0.2);
}

/* ========== 主内容 ========== */
.main-content { 
    padding: 28px 32px; 
    max-width: 1400px;
    margin: 0 auto;
}

/* ========== 统计卡片 ========== */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 24px; }

.stat-card { 
    background: white; 
    padding: 20px 24px;
    border-radius: 16px; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.08); 
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: default;
    min-height: 120px;
    display: flex;
    flex-direction: column;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}

.stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
    pointer-events: none;
}

.stat-card .card-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.15;
    font-size: 48px;
}

.stat-card h3 { 
    font-size: 14px; 
    color: #666; 
    margin-bottom: 8px; 
    font-weight: 500; 
}

.stat-card .number { 
    font-size: 28px; 
    font-weight: bold; 
    color: white; 
    transition: transform 0.2s ease;
}

.stat-card:hover .number {
    transform: scale(1.05);
}

.stat-card .card-label {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-top: 4px;
}

/* 实收金额 - 紫色渐变 */
.stat-card.primary { 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); 
}
.stat-card.primary h3, .stat-card.primary .number { color: white; }
.stat-card.primary .card-icon { opacity: 0.25; }
.stat-card.primary .card-icon svg { fill: white; }

/* 销售数量 - 绿色 */
.stat-card.success { 
    background: linear-gradient(135deg, #4caf50 0%, #2e7d32 100%); 
}
.stat-card.success h3, .stat-card.success .number { color: white; }
.stat-card.success .card-icon { opacity: 0.25; }
.stat-card.success .card-icon svg { fill: white; }

/* 销售金额 - 蓝色 */
.stat-card.info { 
    background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%); 
}
.stat-card.info h3, .stat-card.info .number { color: white; }
.stat-card.info .card-icon { opacity: 0.25; }
.stat-card.info .card-icon svg { fill: white; }

/* 退款金额 - 红色 */
.stat-card.warning { 
    background: linear-gradient(135deg, #ff7043 0%, #f4511e 100%); 
}
.stat-card.warning h3, .stat-card.warning .number { color: white; }
.stat-card.warning .card-icon { opacity: 0.25; }
.stat-card.warning .card-icon svg { fill: white; }

/* 已结束/管理员 - 红色 */
.stat-card.danger { 
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%); 
}
.stat-card.danger h3, .stat-card.danger .number { color: white; }
.stat-card.danger .card-icon { opacity: 0.25; }
.stat-card.danger .card-icon svg { fill: white; }

/* 基本工资 - 蓝紫色渐变 */
.stat-card.base { 
    background: linear-gradient(135deg, #5c6bc0 0%, #3949ab 100%); 
}
.stat-card.base h3, .stat-card.base .number { color: white; }
.stat-card.base .card-icon { opacity: 0.25; }
.stat-card.base .card-icon svg { fill: white; }

/* 净利润负数 - 红色渐变（财务页专用） */
.stat-card.danger.stat-card:not(.base) { 
    background: linear-gradient(135deg, #ef5350 0%, #e53935 100%); 
}
.stat-card.danger h3, .stat-card.danger .number { color: white; }
.stat-card.danger .card-icon { opacity: 0.25; }
.stat-card.danger .card-icon svg { fill: white; }

/* ========== 统计逻辑说明卡片 ========== */
.stats-info-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    margin-bottom: 24px;
    padding: 16px 20px;
    border-left: 4px solid #667eea;
}

.stats-info-card .info-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.stats-info-card .info-content {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.stats-info-card .info-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.stats-info-card .info-label {
    font-weight: 600;
    color: #555;
    min-width: 80px;
}

.stats-info-card .info-value {
    color: #666;
}

.stats-info-card .or {
    background: #667eea;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
    margin: 0 4px;
}

/* ========== 表格 ========== */
.table-container { 
    background: white; 
    border-radius: 16px; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.08); 
    padding: 24px; 
    overflow: hidden;
}

.table-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid #f0f0f0; }
.table-header h2 { font-size: 18px; color: #333; font-weight: 600; }

.btn-add { 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); 
    color: white; 
    padding: 10px 20px; 
    border-radius: 8px; 
    border: none; 
    cursor: pointer; 
    font-size: 14px;
    transition: all 0.2s ease;
}

.btn-add:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102,126,234,0.3);
}

table { width: 100%; border-collapse: collapse; }

th, td { padding: 14px 18px; text-align: left; border-bottom: 1px solid #f0f0f0; }

th { 
    background: linear-gradient(180deg, #fafbfc 0%, #f5f6f8 100%); 
    color: #666; 
    font-weight: 600; 
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

tr:hover td {
    background: #f8fafc;
}

tr:last-child td {
    border-bottom: none;
}

td { font-size: 14px; }

.status { padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 500; }
.status-营业中 { background: #e8f5e9; color: #2e7d32; }
.status-结束 { background: #ffebee; color: #c62828; }
.status-待开业 { background: #fff3e0; color: #f57c00; }
.status-pending { background: #fff3e0; color: #f57c00; padding: 4px 8px; border-radius: 4px; }

.btn-link { 
    color: #667eea; 
    border: none; 
    background: none; 
    cursor: pointer; 
    margin-right: 10px; 
    font-size: 14px;
}

.btn-link:hover { text-decoration: underline; }

.btn-search { 
    background: #667eea; 
    color: white; 
    padding: 10px 16px; 
    border-radius: 6px; 
    border: none; 
    cursor: pointer; 
    font-size: 14px;
}

/* ========== 搜索表单 ========== */
.search-form { display: flex; gap: 10px; align-items: center; }
.search-form input { padding: 10px 14px; border: 1px solid #ddd; border-radius: 6px; width: 180px; font-size: 14px; }
.search-form select { padding: 10px 36px 10px 14px; border: 1px solid #ddd; border-radius: 6px; min-width: 140px; }

/* ========== 筛选栏 ========== */
.filter-bar { 
    display: flex; 
    gap: 16px; 
    align-items: center; 
    margin-bottom: 20px; 
    padding: 20px 24px; 
    background: white; 
    border-radius: 16px; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: box-shadow 0.3s ease;
}

.filter-bar:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,0.1);
}

.filter-group { display: flex; align-items: center; gap: 8px; }
.filter-group label { color: #555; font-size: 14px; font-weight: 500; white-space: nowrap; }
.filter-group select { 
    padding: 10px 36px 10px 14px; 
    border: 1px solid #e0e0e0; 
    border-radius: 10px; 
    background-color: white;
    min-width: 160px;
}

/* 日期选择器美化 */
.filter-group input[type="date"] { 
    padding: 10px 14px; 
    border: 1px solid #e0e0e0; 
    border-radius: 8px; 
    width: 150px;
    font-family: inherit;
    font-size: 14px;
    color: #333;
    background-color: #fff;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}

/* Chrome/Edge 日期选择器图标美化 */
.filter-group input[type="date"]::-webkit-calendar-picker-indicator {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="%23667eea"><path d="M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM9 10H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm-8 4H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2z"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 16px;
    cursor: pointer;
    opacity: 0.8;
    padding: 4px;
    border-radius: 4px;
    transition: opacity 0.2s;
}

.filter-group input[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

/* hover 效果 */
.filter-group input[type="date"]:hover {
    border-color: #667eea;
}

/* focus 效果 */
.filter-group input[type="date"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.btn-reset { 
    background: #f5f5f5; 
    color: #666; 
    padding: 10px 16px; 
    border-radius: 8px; 
    border: 1px solid #ddd; 
    cursor: pointer; 
    font-size: 14px;
}

.btn-reset:hover { background: #eee; }

.btn-refresh-status { 
    background: #667eea; 
    color: #fff; 
    padding: 10px 16px; 
    border-radius: 8px; 
    border: none; 
    cursor: pointer; 
    font-size: 14px;
    margin-left: 8px;
}
.btn-refresh-status:hover { background: #5a67d8; }
.btn-refresh-status:disabled { background: #ccc; cursor: not-allowed; }

.clickable { color: #667eea; cursor: pointer; text-decoration: underline; }
.clickable:hover { color: #764ba2; }

/* ========== 分页 ========== */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 24px; }
.pagination .page { 
    padding: 10px 16px; 
    border: 1px solid #e0e0e0; 
    border-radius: 8px; 
    cursor: pointer; 
    background: white; 
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}
.pagination .page:hover { 
    border-color: #667eea; 
    color: #667eea;
    background: #f8f9ff;
}
.pagination .page.active { 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); 
    color: white; 
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(102,126,234,0.25);
}

/* ========== Dashboard ========== */
.dashboard-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; }

.card { 
    background: white; 
    border-radius: 16px; 
    padding: 24px; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.08); 
    transition: box-shadow 0.3s ease;
    margin-bottom: 24px;
}

.card:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.card h3 { 
    margin-bottom: 20px; 
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
    color: #2c3e50; 
    font-size: 16px; 
    font-weight: 600;
}
.ranking-table { width: 100%; }
.ranking-table th, .ranking-table td { padding: 12px 14px; }

/* ========== 状态分布图 ========== */
.status-chart .chart-item { display: flex; align-items: center; margin-bottom: 16px; }
.chart-item .label { width: 70px; color: #555; font-size: 14px; font-weight: 500; }
.chart-item .bar { flex: 1; height: 28px; background: #f0f0f0; border-radius: 6px; margin-right: 12px; overflow: hidden; }
.chart-item .fill { height: 100%; border-radius: 6px; transition: width 0.5s ease; }
.fill.running { background: linear-gradient(90deg, #4caf50 0%, #66bb6a 100%); }
.fill.pending { background: linear-gradient(90deg, #ff9800 0%, #ffb74d 100%); }
.fill.ended { background: linear-gradient(90deg, #f44336 0%, #ef5350 100%); }
.chart-item .count { width: 40px; text-align: right; color: #333; font-weight: 600; font-size: 15px; }

/* ========== 弹窗 ========== */
.modal { 
    display: none; 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0,0,0,0.6); 
    backdrop-filter: blur(4px);
    justify-content: center; 
    align-items: center; 
    z-index: 1000; 
}

.modal-content { 
    background: white; 
    padding: 28px 32px; 
    border-radius: 20px; 
    width: 520px; 
    max-width: 90vw;
    box-shadow: 0 24px 80px rgba(0,0,0,0.35);
    transform: translateY(0);
    animation: modalSlideIn 0.3s ease;
}

.modal-large {
    width: 600px;
    max-width: 95vw;
}

.detail-info {
    background: #f8f9fa;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.detail-info p {
    margin: 8px 0;
    font-size: 14px;
}

.detail-info p strong {
    color: #555;
    margin-right: 8px;
}

.detail-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.detail-table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px;
    text-align: left;
    font-weight: 500;
}

.detail-table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
}

.detail-table tr:last-child td {
    border-bottom: none;
}

.detail-summary {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
    padding: 16px;
    border-radius: 8px;
    text-align: right;
    font-size: 16px;
}

.detail-summary p {
    margin: 0;
}

.detail-summary strong {
    margin-right: 12px;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 表单行 - 并排布局 */
.form-row { display: flex; gap: 16px; }
.form-row .form-group { flex: 1; }

.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.modal-header h3 { color: #333; font-size: 18px; font-weight: 600; }
.modal-header .close { font-size: 24px; cursor: pointer; color: #999; line-height: 1; }

/* 计算工资结果弹窗 */
.calculate-result {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 12px;
    padding: 16px;
}

.result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.5);
}

.result-row:last-child {
    border-bottom: none;
}

.result-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.result-value {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.result-value.highlight {
    color: #11998e;
    font-size: 18px;
}

.result-value.salary {
    color: #f5576c;
    font-size: 18px;
}

.result-value.commission {
    color: #667eea;
    font-size: 16px;
}

.result-value.bonus {
    color: #f093fb;
    font-size: 16px;
}
.modal-header .close:hover { color: #333; }

/* ========== 表单弹窗内的输入 ========== */
.modal-content .form-group input,
.modal-content .form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    background-color: white;
    transition: all 0.2s ease;
}

.modal-content .form-group input:focus,
.modal-content .form-group select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102,126,234,0.1);
}

.modal-content .form-group select {
    padding-right: 40px;
}

.modal-content .form-group label {
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 8px;
}

/* ========== 角色标签 ========== */
.role-admin { 
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%); 
    color: #1565c0; 
    padding: 5px 14px; 
    border-radius: 20px; 
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
}
.role-manager { 
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%); 
    color: #e65100; 
    padding: 5px 14px; 
    border-radius: 20px; 
    font-size: 12px;
    font-weight: 600;
}
.role-leader { 
    background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%); 
    color: #6a1b9a; 
    padding: 5px 14px; 
    border-radius: 20px; 
    font-size: 12px;
    font-weight: 600;
}
.role-clerk { 
    background: linear-gradient(135deg, #f5f5f5 0%, #eeeeee 100%); 
    color: #424242; 
    padding: 5px 14px; 
    border-radius: 20px; 
    font-size: 12px;
    font-weight: 600;
}
.role-operation { 
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%); 
    color: white; 
    padding: 5px 14px; 
    border-radius: 20px; 
    font-size: 12px;
    font-weight: 600;
}

/* ========== 预警类型标签 ========== */
.event-type-sales { background: #fff3e0; color: #f57c00; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 500; }
.event-type-project { background: #e3f2fd; color: #1976d2; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 500; }
.event-type-staff { background: #fce4ec; color: #c2185b; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 500; }
.event-type-refund { background: #f3e5f5; color: #7b1fa2; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 500; }
.event-type-target { background: #e8f5e9; color: #388e3c; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 500; }

/* ========== 严重程度标签 ========== */
.level-critical { background: #ffebee; color: #d32f2f; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 500; }
.level-warning { background: #fff8e1; color: #f9a825; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 500; }
.level-info { background: #e0f7fa; color: #0288d1; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 500; }

/* ========== 预警状态标签 ========== */
.status-pending { background: #fff3e0; color: #f57c00; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 500; cursor: pointer; }
.status-resolved { background: #e8f5e9; color: #388e3c; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 500; }

/* ========== 触发设置样式 ========== */
.trigger-group { margin-bottom: 20px; }
.trigger-group h4 { 
    color: #333; 
    font-size: 14px; 
    margin: 0 0 10px 0; 
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}
.trigger-items { display: flex; flex-direction: column; gap: 8px; }
.trigger-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #f9f9f9;
    border-radius: 8px;
}
.trigger-info { flex: 1; }
.trigger-name { font-weight: 500; color: #333; }
.trigger-desc { font-size: 12px; color: #888; margin-left: 8px; }
.trigger-config { display: flex; gap: 12px; align-items: center; }
.trigger-threshold { font-size: 12px; color: #666; }
.trigger-action { margin-left: 16px; }

/* 开关样式 */
.switch { position: relative; display: inline-block; width: 44px; height: 22px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ccc;
    transition: .3s;
    border-radius: 22px;
}
.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}
input:checked + .slider { background-color: #4caf50; }
input:checked + .slider:before { transform: translateX(22px); }

/* ========== 页面标题 ========== */
.page-header {
    margin-bottom: 28px;
    position: relative;
}
.page-header h1 {
    font-size: 26px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 6px 0;
    position: relative;
    display: inline-block;
}
.page-header h1::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}
.page-header .page-desc {
    font-size: 14px;
    color: #7f8c8d;
    margin: 0;
}
    margin: 0 0 4px 0;
}
.page-header .page-desc {
    font-size: 14px;
    color: #888;
    margin: 0;
}

/* ========== 响应式导航栏 ========== */
.navbar-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 28px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-left: 16px;
}
.navbar-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}
.navbar-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}
.navbar-toggle.active span:nth-child(2) {
    opacity: 0;
}
.navbar-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ========== 移动端侧边栏菜单 ========== */
.navbar-links.mobile-open {
    display: flex !important;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px !important;
    background: #ffffff;
    flex-direction: column;
    padding: 0;
    box-shadow: 4px 0 24px rgba(0,0,0,0.15);
    z-index: 1001;
    order: 0 !important;
    animation: slideInMenu 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
    overflow-x: hidden;
}

/* 顶部品牌区域 */
.navbar-links.mobile-open::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 110px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* LOGO 图片 */
.navbar-links.mobile-open::after {
    content: '';
    position: absolute;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: 58px;
    height: 58px;
    background-image: url('/images/logo.png');
    background-size: cover;
    background-position: center;
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    border: 3px solid rgba(255,255,255,0.9);
}

/* 导航链接容器 */
/* nav-links-container 默认隐藏，只在 mobile-open 状态下显示 */
.navbar-links .nav-links-container {
    display: none;
}
.navbar-links.mobile-open .nav-links-container {
    padding: 120px 12px 12px 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* 导航链接样式 */
.navbar-links.mobile-open a {
    padding: 14px 16px;
    font-size: 15px;
    color: #444;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.25s ease;
    font-weight: 500;
    margin: 0;
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
    position: relative;
    border: 1px solid transparent;
}

/* 导航图标 - 在文字前面 */
.navbar-links.mobile-open a .nav-icon {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.navbar-links.mobile-open a:hover {
    background: linear-gradient(135deg, rgba(102,126,234,0.15) 0%, rgba(118,75,162,0.1) 100%);
    color: #667eea;
    transform: translateX(6px);
    border-color: rgba(102,126,234,0.3);
    box-shadow: 0 2px 8px rgba(102,126,234,0.15);
}

.navbar-links.mobile-open a:hover .nav-icon svg {
    fill: #667eea;
}

.navbar-links.mobile-open a.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(102,126,234,0.3);
    transform: translateX(0);
    border-color: transparent;
}

.navbar-links.mobile-open a.active .nav-icon svg {
    fill: #fff;
}

/* 点击动画 */
.navbar-links.mobile-open a:active {
    transform: scale(0.97) translateX(6px);
}

/* 底部用户区域 */
/* sidebar-footer 默认隐藏，只在 mobile-open 状态下显示 */
.navbar-links .sidebar-footer {
    display: none;
}
.navbar-links.mobile-open .sidebar-footer {
    padding: 12px 16px 16px 16px;
    margin-top: auto;
    border-top: 1px solid #eee;
    background: #f8f9fa;
}

.sidebar-footer-user {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.sidebar-footer-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 13px;
}

.sidebar-footer-name {
    font-size: 13px;
    font-weight: 500;
    color: #444;
}

.sidebar-footer-logout {
    display: block;
    width: 100%;
    padding: 10px 14px;
    background: rgba(102,126,234,0.08);
    color: #667eea;
    border: 1px solid rgba(102,126,234,0.2);
    border-radius: 8px;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.sidebar-footer-logout:hover {
    background: rgba(102,126,234,0.15);
    border-color: rgba(102,126,234,0.4);
}

/* 侧边栏滑入动画 */
@keyframes slideInMenu {
    from { 
        transform: translateX(-100%); 
    }
    to { 
        transform: translateX(0); 
    }
}

/* 移除遮罩层样式 */
.menu-overlay {
    display: none !important;
}

/* 菜单遮罩层 */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
}
.menu-overlay.show {
    display: block;
}

/* 小屏幕响应式 */
@media (max-width: 768px) {
    .navbar {
        flex-wrap: wrap;
    }
    .navbar-toggle {
        display: flex !important;
        z-index: 1100;
        order: 2;
        position: relative;
        pointer-events: auto;
    }
    .navbar-links {
        display: none;
        width: 100%;
        order: 3;
    }
    .navbar-user {
        margin-left: auto;
        order: 1;
    }
    
    /* 统计卡片 */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    /* 筛选栏 */
    .filter-bar {
        flex-direction: column;
        gap: 12px;
    }
    .filter-group {
        width: 100%;
    }
    .filter-group select,
    .filter-group input {
        width: 100%;
    }
    .filter-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    /* 表格 */
    .table-wrapper {
        overflow-x: auto;
    }
    
    /* 弹窗 */
    .modal-content {
        width: 95% !important;
        max-width: 95% !important;
        margin: 10px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr !important;
    }
    .navbar-brand {
        font-size: 14px;
    }
    .navbar-user span {
        display: none;
    }
}

/* ========== 状态标签 ========== */
.status-active { 
    background: #e8f5e9; 
    color: #2e7d32; 
    padding: 4px 12px;
    border-radius: 20px; 
    cursor: pointer; 
    font-size: 12px;
    font-weight: 500;
}

.status-inactive { 
    background: #ffebee; 
    color: #c62828; 
    padding: 4px 12px;
    border-radius: 20px; 
    cursor: pointer; 
    font-size: 12px;
    font-weight: 500;
}

/* 已结束项目行样式 */
.row-ended {
    background: #fff5f5 !important;
}

.row-ended:hover {
    background: #ffebee !important;
}

/* ========== 头部操作 ========== */
.header-actions { display: flex; gap: 10px; align-items: center; }
.header-actions select { padding: 10px 36px 10px 14px; border: 1px solid #ddd; border-radius: 6px; }

/* ========== 表单操作 ========== */
.form-actions { display: flex; gap: 12px; margin-top: 20px; }
.btn-delete { background: #f44336; color: white; padding: 10px 20px; border-radius: 8px; border: none; cursor: pointer; }
.btn-delete:hover { background: #d32f2f; }

/* ========== 响应式 ========== */
@media (max-width: 768px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .dashboard-grid { grid-template-columns: 1fr; }
    .filter-bar { flex-wrap: wrap; }
    .navbar-links { display: none; }
}

/* ========== 触发设置弹窗 ========== */
.trigger-tabs { 
    display: flex; 
    gap: 8px; 
    margin-bottom: 20px; 
    flex-wrap: wrap;
}
.trigger-tab { 
    padding: 8px 16px; 
    border: 1px solid #e0e0e0; 
    border-radius: 20px; 
    background: white; 
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}
.trigger-tab:hover {
    border-color: #667eea;
    color: #667eea;
}
.trigger-tab.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
}

.trigger-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.trigger-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 16px;
    border: 1px solid #e0e0e0;
    transition: all 0.2s ease;
}
.trigger-card:hover {
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102,126,234,0.1);
}

.trigger-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.trigger-card-header .trigger-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}
.trigger-card-desc {
    color: #666;
    font-size: 12px;
    line-height: 1.4;
    margin-bottom: 12px;
}
.trigger-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.trigger-card-footer .trigger-threshold {
    color: #888;
    font-size: 12px;
}

/* 开关样式 */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 24px;
}
.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}
input:checked + .slider { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
input:checked + .slider:before { transform: translateX(20px); }

.trigger-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
}

/* 事件类型标签扩展 */
.event-type-contract { background: #e8eaf6; color: #3949ab; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 500; }
.event-type-cash { background: #fff8e1; color: #f9a825; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 500; }

@media (max-width: 600px) {
    .trigger-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ========== 首页预警模块 ========== */
.alert-card {
    margin-top: 24px;
    border-left: 4px solid #f44336;
}
.alert-card h3 {
    display: flex;
    align-items: center;
    gap: 10px;
}
.alert-title-icon {
    font-size: 20px;
}
.alert-count {
    background: #f44336;
    color: white;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.alert-list {
    max-height: 200px;
    overflow-y: auto;
}

.alert-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 10px;
    border-left: 3px solid transparent;
}
.alert-item.level-critical { border-left-color: #f44336; background: #ffebee; }
.alert-item.level-warning { border-left-color: #ff9800; background: #fff3e0; }
.alert-item.level-info { border-left-color: #2196f3; background: #e3f2fd; }

.alert-item .alert-type {
    font-weight: 600;
    color: #2c3e50;
    white-space: nowrap;
}
.alert-item .alert-store {
    color: #667eea;
    font-size: 12px;
    white-space: nowrap;
}
.alert-item .alert-content {
    flex: 1;
    color: #555;
    font-size: 13px;
}
.alert-item .alert-time {
    color: #999;
    font-size: 12px;
    white-space: nowrap;
}

.alert-footer {
    text-align: right;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

/* ========== 导入按钮 ========== */
.btn-import { 
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%); 
    color: white; 
    padding: 10px 16px; 
    border-radius: 8px; 
    border: none; 
    cursor: pointer; 
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-import:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(17, 153, 142, 0.3);
}

/* ========== 导入弹窗 ========== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-overlay.show {
    display: flex;
}

.modal-overlay .modal {
    display: block;
    background: white;
    padding: 24px;
    border-radius: 16px;
    width: 480px;
    max-width: 90vw;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
    animation: modalSlideIn 0.3s ease;
    position: relative;
}

.modal-overlay .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.modal-overlay .modal-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.modal-overlay .modal-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f5f5f5;
    border: none;
    cursor: pointer;
    font-size: 20px;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay .modal-close:hover {
    background: #eee;
    color: #333;
}

.modal-overlay .modal-body {
    padding: 20px 0;
}

.import-info {
    text-align: center;
    margin-bottom: 20px;
}

.import-info p {
    color: #666;
    margin: 8px 0;
}

.import-tip {
    font-size: 12px;
    color: #999;
}

.file-upload-area {
    border: 2px dashed #e0e0e0;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.file-upload-area:hover {
    border-color: #667eea;
    background: #f8f9ff;
}

.file-upload-area.dragover {
    border-color: #667eea;
    background: #f0f4ff;
}

.file-upload-area input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 10;
}

.upload-placeholder svg {
    fill: #667eea;
    opacity: 0.5;
    margin-bottom: 12px;
}

.upload-placeholder p {
    color: #666;
    font-size: 14px;
}

.file-selected {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.file-selected span {
    color: #333;
    font-weight: 500;
}

.btn-remove {
    background: #f5f5f5;
    color: #666;
    padding: 6px 12px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 12px;
}

.btn-remove:hover {
    background: #eee;
}

.import-progress {
    margin-top: 20px;
}

.import-progress.loading .progress-fill {
    width: 30%;
    animation: progressPulse 1s ease-in-out infinite;
}

@keyframes progressPulse {
    0%, 100% { width: 20%; opacity: 0.7; }
    50% { width: 40%; opacity: 1; }
}

.import-progress .progress-bar {
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.import-progress .progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

.import-progress p {
    text-align: center;
    color: #666;
    margin-top: 12px;
    font-size: 14px;
}

.modal-overlay .modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.modal-overlay .btn-cancel {
    background: #f5f5f5;
    color: #666;
    padding: 10px 20px;
    border-radius: 8px;
    border: 1px solid #ddd;
    cursor: pointer;
    font-size: 14px;
}

.modal-overlay .btn-cancel:hover {
    background: #eee;
}

.modal-overlay .btn-confirm {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.modal-overlay .btn-confirm:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(17, 153, 142, 0.3);
}

..modal-overlay .btn-confirm:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ========== 财务页面专用 ========== */
/* 利润正负数颜色 */
.profit-positive { 
    color: #2e7d32 !important; 
    font-weight: 600; 
}
.profit-negative { 
    color: #c62828 !important; 
    font-weight: 600; 
}

/* 合计行样式 */
.total-row { 
    background: linear-gradient(135deg, #f5f7fa 0%, #e8eef5 100%); 
    font-weight: 600; 
}
.total-row td {
    border-top: 2px solid #667eea;
    color: #333;
}
.total-row td strong {
    color: #667eea;
}

/* 统计卡片主题色扩展（财务页） */
.stat-card.primary:not(.success):not(.warning):not(.info):not(.danger):not(.base) { 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); 
}
.stat-card.primary h3, .stat-card.primary .number, .stat-card.primary .card-label { color: white; }
.stat-card.primary .card-icon { opacity: 0.25; }
.stat-card.primary .card-icon svg { fill: white; }
/* 日期范围选择器 */
.date-range-picker {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8eb 100%);
    border-radius: 12px;
    padding: 4px 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.date-range-picker:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.date-range-picker .date-icon {
    font-size: 16px;
    margin-right: 8px;
    color: #667eea;
}

.date-range-picker .date-input {
    padding: 8px 12px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: white;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 130px;
}

.date-range-picker .date-input:hover {
    border-color: #667eea;
}

.date-range-picker .date-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.date-range-picker .date-separator {
    color: #667eea;
    font-weight: 500;
    margin: 0 8px;
    font-size: 14px;
}

/* 简洁版日期选择器（无装饰） */
.date-picker-inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.date-input-plain {
    width: 48%;
    padding: 14px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    background-color: white;
    transition: all 0.2s ease;
}

.date-input-plain:hover {
    border-color: #999;
}

.date-input-plain:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102,126,234,0.1);
}

.date-separator-plain {
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

/* 筛选区域日期选择器（简洁无装饰） */
.date-picker-filter {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.date-filter-input {
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    background: #fff;
}

.date-filter-input:hover {
    border-color: #999;
}

.date-filter-input:focus {
    outline: none;
    border-color: #667eea;
}

.date-filter-sep {
    color: #666;
    font-size: 14px;
}


/* LayDate 日历美化 */
.laydate-main {
    border-radius: 12px !important;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15) !important;
}

.laydate-main .laydate-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border-radius: 12px 12px 0 0 !important;
}

.laydate-main .laydate-content .laydate-year-list,
.laydate-main .laydate-content .laydate-month-list,
.laydate-main .laydate-content .laydate-time-list {
    font-size: 16px !important;
}

.laydate-main .laydate-content .laydate-day-list td {
    font-size: 15px !important;
    padding: 8px !important;
}

.laydate-main .laydate-content .laydate-day-list td:hover {
    background: #e3f2fd !important;
}

.laydate-main .laydate-content .laydate-day-list td.laydate-selected {
    background: #667eea !important;
    color: white !important;
}

.laydate-main .laydate-footer {
    border-radius: 0 0 12px 12px !important;
}
