/* 项目管理系统 - 主样式文件 */

/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f5f7fa;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
}

/* 登录页面样式 */
.login-container {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%) !important;
    z-index: 9999 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

.login-box {
    background: white;
    padding: 0;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 450px;
    overflow: hidden;
    animation: slideUp 0.8s ease;
    position: relative;
    z-index: 10;
}

.login-header {
    background: white;
    padding: 40px 30px 20px;
    text-align: center;
    position: relative;
}

.login-logo {
    margin-bottom: 20px;
}

.login-logo-img {
    width: 120px;
    height: auto;
    max-height: 40px;
    object-fit: contain;
}

.login-title {
    color: #333;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.login-subtitle {
    color: #666;
    font-size: 14px;
    margin: 0;
    font-weight: 400;
}

.login-content {
    padding: 0 30px 40px;
}

.login-form-group {
    margin-bottom: 24px;
}

.login-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.login-input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e1e5e9;
    background: white;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.login-input:focus {
    outline: none;
    border-color: #4A90E2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.login-input::placeholder {
    color: #999;
}

.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.remember-me {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #666;
}

.remember-me input[type="checkbox"] {
    margin-right: 8px;
    width: 16px;
    height: 16px;
}

.forgot-link {
    color: #4A90E2;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.forgot-link:hover {
    color: #357ABD;
    text-decoration: underline;
}

.login-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 30px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.3);
}

.login-btn:active {
    transform: translateY(0);
}

.login-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.loading-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.login-footer {
    text-align: center;
    color: #999;
    font-size: 12px;
    margin-top: 20px;
}

.login-footer p {
    margin: 0;
}

/* 背景装饰 */
.login-bg-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.bg-circle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.1) 0%, rgba(53, 122, 189, 0.05) 100%);
    animation: float 6s ease-in-out infinite;
}

.bg-circle-1 {
    width: 200px;
    height: 200px;
    top: 10%;
    left: -5%;
    animation-delay: 0s;
}

.bg-circle-2 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: -3%;
    animation-delay: 2s;
}

.bg-circle-3 {
    width: 100px;
    height: 100px;
    top: 30%;
    right: 20%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

/* 主应用样式 */
.app-container {
    display: none;
    min-height: 100vh;
    background: #f5f7fa;
}

.app-container.active {
    display: flex;
}

/* 主内容区域 */
.main-content {
    margin-left: 200px;
    min-height: 100vh;
    padding: 30px;
    width: calc(100% - 200px);
}

.page {
    display: none;
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
    min-height: 500px;
    background: white;
}

.page.active {
    display: block !important;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e1e5e9;
}

.page-title {
    font-size: 28px;
    font-weight: 600;
    color: #333;
}

.page-subtitle {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid #e0e0e0;
    background-color: #f5f5f5;
    color: #666;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

.btn:hover {
    background-color: #e8e8e8;
    border-color: #d0d0d0;
    color: #555;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* 主按钮 */
.btn-primary {
    background-color: #f5f5f5;
    color: #666;
    border-color: #e0e0e0;
}

.btn-primary:hover {
    background-color: #e8e8e8;
    border-color: #d0d0d0;
    color: #555;
}

/* 次要按钮 */
.btn-secondary {
    background-color: #f5f5f5;
    color: #666;
    border-color: #e0e0e0;
}

.btn-secondary:hover {
    background-color: #e8e8e8;
    border-color: #d0d0d0;
    color: #555;
}

/* 危险按钮 */
.btn-danger {
    background-color: #f5f5f5;
    color: #666;
    border-color: #e0e0e0;
}

.btn-danger:hover {
    background-color: #e8e8e8;
    border-color: #d0d0d0;
    color: #555;
}

/* 链接按钮 */
.btn-link {
    background-color: transparent;
    border-color: transparent;
    color: var(--primary-color);
    text-decoration: none;
    padding: 0.375rem 0.75rem;
}

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

.btn-link-danger {
    color: var(--danger-color);
}

/* 操作列样式 */
.actions-column {
    width: 200px;
    text-align: left;
    padding: 8px;
}

/* Webhook状态列样式 */
.data-table td:nth-child(4) {
    white-space: nowrap;
    text-align: center;
}

/* 数据中心状态列样式 */
#data-centerPage .data-table td:nth-child(4) {
    white-space: nowrap;
    text-align: center;
}

/* 操作按钮容器 */
.action-buttons {
    display: flex;
    gap: 6px;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
}

/* 统一的操作按钮样式 */
.action-btn {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 4px;
    border: 1px solid #ddd;
    background-color: #fff;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    min-width: 60px;
    text-align: center;
    line-height: 1.2;
    white-space: nowrap;
}

.action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* 项目看板按钮 - 淡粉色 */
.board-btn {
    background-color: #fde7ef;
    border-color: #f48fb1;
    color: #ad1457;
}

.board-btn:hover {
    background-color: #f8bbd0;
    border-color: #ec407a;
    color: #880e4f;
}

/* 查看按钮 - 蓝色 */
.view-btn {
    background-color: #e3f2fd;
    border-color: #2196f3;
    color: #1976d2;
}

.view-btn:hover {
    background-color: #bbdefb;
    border-color: #1976d2;
}

/* 编辑按钮 - 绿色 */
.edit-btn {
    background-color: #e8f5e8;
    border-color: #4caf50;
    color: #2e7d32;
}

.edit-btn:hover {
    background-color: #c8e6c9;
    border-color: #2e7d32;
}

/* 删除按钮 - 红色 */
.delete-btn {
    background-color: #ffebee;
    border-color: #f44336;
    color: #c62828;
}

.delete-btn:hover {
    background-color: #ffcdd2;
    border-color: #c62828;
}

/* 任务列表项样式 */
.task-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.task-item:last-child {
    border-bottom: none;
}

.task-name {
    flex: 1;
    font-weight: 500;
}

.task-assignee {
    width: 80px;
    text-align: center;
}

.task-duration {
    width: 200px;
    text-align: center;
    font-size: 12px;
    color: #666;
}

.task-bar-wrapper {
    width: 150px;
    padding: 0 10px;
}

.task-progress-bar {
    width: 100%;
    height: 20px;
    background-color: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
}

.task-progress {
    height: 100%;
    background-color: #4caf50;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 11px;
    font-weight: bold;
    transition: width 0.3s ease;
}

/* 审核中心标签页样式 */
.tab-container {
    margin-top: 20px;
}

.tab-nav {
    display: flex;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 20px;
}

.tab-btn {
    padding: 12px 24px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    color: #333;
    background-color: #f5f5f5;
}

.tab-btn.active {
    color: #4A90E2;
    border-bottom-color: #4A90E2;
    font-weight: 500;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* 状态标识样式 */
.status-badge {
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 500;
}

.status-pending {
    color: #f39c12;
}

.status-approved {
    color: #27ae60;
}

.status-rejected {
    color: #e74c3c;
}

.status-active {
    color: #27ae60;
}

.status-completed {
    color: #3498db;
}

.status-paused {
    color: #95a5a6;
}

/* 预算类型标识 */
.budget-type {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.budget-type.initial {
    background-color: #e3f2fd;
    color: #1976d2;
}

.budget-type.adjustment {
    background-color: #fff3e0;
    color: #f57c00;
}

.budget-type.additional {
    background-color: #f3e5f5;
    color: #7b1fa2;
}



.btn-link-danger:hover {
    color: #a71d2a;
    text-decoration: underline;
}

/* 小号按钮 */
.btn-small {
    padding: 5px 12px;
    font-size: 12px;
    border-radius: 6px;
}

/* 卡片样式 */
.card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border: 1px solid #e8eaed;
    margin-bottom: 20px;
}

.card-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

/* 表单样式 */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.form-label.required::after {
    content: " *";
    color: #dc3545;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
}

.form-control:focus {
    outline: none;
    border-color: #4A90E2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.form-select {
    width: 100%;
    padding: 8px 40px 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    transition: all 0.3s ease;
}

/* 隐藏 IE/Edge 的默认箭头 */
select.form-select::-ms-expand {
    display: none;
}

.form-select:focus {
    outline: none;
    border-color: #4A90E2;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}

.form-textarea {
    min-height: 100px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* 表格样式 */
.table-container {
    overflow-x: auto;
    margin-top: 20px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.data-table th,
.data-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

.data-table th {
    background: #f5f5f5;
    font-weight: 600;
    color: #666;
    font-size: 14px;
}

.data-table td {
    font-size: 14px;
}

.data-table tr:hover {
    background: #f8f9fa;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.status-active {
    background: #d4edda;
    color: #155724;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-completed {
    background: #cce5ff;
    color: #004085;
}

/* 通知样式 */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 8px;
    padding: 16px 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    border-left: 4px solid #28a745;
    z-index: 1001;
    display: none;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 16px;
    padding: 32px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideIn 0.3s ease;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

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

.modal-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.close-btn {
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: #666;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.2s;
    line-height: 1;
    min-width: 40px;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    color: #333;
    background: #f0f0f0;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #4A90E2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* 动画定义 */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* 响应式设计 */
@media (max-width: 768px) {
    .main-content {
        margin-left: 0;
        width: 100%;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

/* 项目管理新UI样式 */
.filter-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.progress-bar {
    background-color: #e9ecef;
    border-radius: .25rem;
    height: 20px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.progress {
    background-color: #007bff;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    height: 100%;
    transition: width .6s ease;
}

.progress-overdue {
    background-color: #dc3545;
}

.status-badge.status-paused {
    background-color: #6c757d;
}

/* 项目计划视图样式 */
.gantt-chart-container .card-body {
    position: relative;
    min-height: 200px;
    overflow-x: auto;
    padding-top: 40px; /* 为时间轴留出空间 */
}

.gantt-timeline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 40px;
    display: flex;
    border-bottom: 1px solid #eee;
    background-color: #fafafa;
    z-index: 1;
}

.gantt-timeline-day {
    flex: 1 0 60px; /* 每天的宽度 */
    text-align: center;
    font-size: 12px;
    line-height: 40px;
    color: #666;
    border-right: 1px solid #eee;
}

.task-row {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    padding: 8px 5px;
    border-radius: 4px;
    transition: background-color 0.2s;
    font-size: 14px;
}

.task-row:hover {
    background-color: #f5f5f5;
}

.task-details {
    display: flex;
    width: 100%;
    align-items: center;
}

.task-name {
    width: 25%;
    padding-right: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.task-assignee {
    width: 15%;
    text-align: center;
}

.task-duration {
    width: 20%;
    text-align: center;
}

.task-bar-wrapper {
    width: 40%;
    position: relative;
    height: 25px;
}

.task-bar {
    position: absolute;
    height: 100%;
    background-color: #a9cff6;
    border-radius: 4px;
    border: 1px solid #4A90E2;
    cursor: pointer;
    transition: all 0.2s ease;
}

.task-bar:hover {
    background-color: #4A90E2;
    transform: scaleY(1.1);
}

.task-progress {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background-color: #357ABD;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    color: white;
    font-size: 10px;
    padding-right: 5px;
    overflow: hidden;
}

.task-list-header {
    display: flex;
    font-weight: bold;
    padding: 8px 5px;
    border-bottom: 2px solid #eee;
    margin-bottom: 10px;
    font-size: 14px;
    color: #333;
}

.status-badge.status-overdue {
    background-color: #dc3545;
}

.actions-column {
    width: 220px;
    text-align: right;
}



/* 项目列表操作按钮样式优化 */
.actions-column {
    width: 220px;
    text-align: right;
}

.actions-column .btn {
    margin: 0 2px;
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 6px;
    min-width: 60px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.actions-column .btn-secondary {
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    color: #666;
    font-weight: 500;
}

.actions-column .btn-secondary:hover {
    background: #e8e8e8;
    border-color: #d0d0d0;
    color: #555;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.actions-column .btn-link {
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    color: #666;
    padding: 6px 12px;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.actions-column .btn-link:hover {
    background: #e8e8e8;
    border-color: #d0d0d0;
    color: #555;
    transform: translateY(-1px);
    text-decoration: none;
}

.actions-column .btn-link-danger {
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    color: #666;
    padding: 6px 12px;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.actions-column .btn-link-danger:hover {
    background: #e8e8e8;
    border-color: #d0d0d0;
    color: #555;
    transform: translateY(-1px);
    text-decoration: none;
}

/* 按钮组样式 */
.btn-group {
    display: inline-flex;
    gap: 4px;
}

.btn-group .btn {
    border-radius: 6px;
}

.btn-group .btn:first-child {
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
}

.btn-group .btn:last-child {
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
}

/* 响应式按钮 */
@media (max-width: 768px) {
    .actions-column {
        width: 100%;
        text-align: center;
    }
    
    .actions-column .btn {
        margin: 2px;
        font-size: 11px;
        padding: 4px 8px;
        min-width: 50px;
    }
}

/* 按钮图标样式 */
.btn-icon {
    width: 16px;
    height: 16px;
    margin-right: 4px;
    opacity: 0.8;
}

.btn:hover .btn-icon {
    opacity: 1;
}

/* 报表分析页面样式 */
.report-filters {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
}

.filter-row {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-label {
    font-weight: 600;
    color: #333;
    min-width: 80px;
}

.time-dimension-tabs {
    display: flex;
    gap: 10px;
}

.time-tab {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background: white;
    color: #333;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.time-tab:hover {
    background: #f8f9fa;
    border-color: #4A90E2;
}

.time-tab.active {
    background: #4A90E2;
    color: white;
    border-color: #4A90E2;
}

.time-selector, .quarter-selector, .year-selector, .custom-date-range {
    display: flex;
    align-items: center;
    gap: 10px;
}

.report-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.chart-placeholder {
    padding: 40px 20px;
    text-align: center;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #dee2e6;
}

.chart-info h4 {
    color: #4A90E2;
    margin-bottom: 10px;
    font-size: 18px;
}

.chart-info p {
    color: #6c757d;
    margin-bottom: 20px;
    font-size: 14px;
}

/* 状态标签样式 */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    min-width: 60px;
}

.status-badge.approved {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.status-badge.pending {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
    color: white;
}

.status-badge.rejected {
    background: linear-gradient(135deg, #dc3545 0%, #e83e8c 100%);
    color: white;
}

.status-badge.leave {
    background: linear-gradient(135deg, #1e88e5 0%, #42a5f5 100%);
    color: white;
}

/* 分页样式 */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
    padding: 20px 0;
    border-top: 1px solid #e9ecef;
    background: #fafbfc;
    border-radius: 8px;
    margin-left: -16px;
    margin-right: -16px;
    padding-left: 16px;
    padding-right: 16px;
}

.pagination-info {
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}

.pagination-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #ffffff;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 40px;
    height: 36px;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.pagination-btn:hover:not(:disabled) {
    background: #f3f4f6;
    border-color: #9ca3af;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.pagination-btn:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.pagination-btn:disabled {
    background: #f9fafb;
    color: #9ca3af;
    border-color: #e5e7eb;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.pagination-btn.active {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}

.pagination-btn.active:hover {
    background: #2563eb;
    border-color: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.4);
}

.page-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #ffffff;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 40px;
    height: 36px;
    text-align: center;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.page-number:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.page-number.active {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}

.page-number.active:hover {
    background: #2563eb;
    border-color: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.4);
}

/* 表格增强样式 */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 项目管理：8列平均分布 */
.data-table.equal-cols-8 {
    table-layout: fixed;
}
.data-table.equal-cols-8 thead th,
.data-table.equal-cols-8 tbody td {
    width: calc(100% / 8);
}

/* 项目管理：操作列加宽并保持不换行 */
.data-table.equal-cols-8 thead th.op-col,
.data-table.equal-cols-8 tbody td.op-col {
    width: 320px;
}

.data-table th {
    background: #f5f5f5;
    color: #666;
    padding: 15px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
}

.data-table td {
    padding: 12px;
    border-bottom: 1px solid #f1f3f4;
    font-size: 14px;
}

.data-table tbody tr:hover {
    background: #f8f9fa;
    transition: background 0.3s ease;
}

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

/* 响应式设计 */
@media (max-width: 768px) {
    .report-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .time-dimension-tabs {
        flex-wrap: wrap;
    }
    
    .data-table {
        font-size: 12px;
    }
    
    .data-table th,
    .data-table td {
        padding: 8px 6px;
    }
    
    .pagination-container {
        flex-direction: column;
        gap: 15px;
    }
}

/* 侧边栏菜单样式 */
.sidebar-menu-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 2px 8px;
}

.sidebar-menu-item:hover {
    background-color: #f0f8ff;
    color: #4A90E2;
}

.sidebar-menu-item.active {
    background-color: #4A90E2;
    color: white;
}

.sidebar-menu-icon {
    margin-right: 12px;
    font-size: 16px;
    width: 20px;
    text-align: center;
}

/* 禁用状态的菜单项样式 */
.sidebar-menu-item.disabled-menu {
    color: #999;
    opacity: 0.6;
    cursor: not-allowed;
}

.sidebar-menu-item.disabled-menu:hover {
    background-color: transparent;
    color: #999;
}

.sidebar-menu-item.disabled-menu .sidebar-menu-icon {
    opacity: 0.5;
}

/* 项目列表相关样式 */
.stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
    border-left: 4px solid #4A90E2;
}

.stat-title {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.progress-bar {
    position: relative;
    background: #e0e0e0;
    border-radius: 10px;
    height: 20px;
    overflow: hidden;
}

.progress-fill {
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
    height: 100%;
    border-radius: 10px;
    transition: width 0.3s ease;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    font-weight: bold;
    color: #333;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.status-planning {
    background: #e3f2fd;
    color: #1976d2;
}

.status-active {
    background: #e8f5e8;
    color: #2e7d32;
}

.status-completed {
    background: #f3e5f5;
    color: #7b1fa2;
}

.status-paused {
    background: #fff3e0;
    color: #f57c00;
}

.status-unknown {
    background: #f5f5f5;
    color: #666;
}

.search-input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    width: 200px;
}

.filter-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: white;
    margin-left: 10px;
}

.table-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}


.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.form-input,
textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-input:focus,
textarea:focus {
    outline: none;
    border-color: #4A90E2;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}

/* 页面头部样式 */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.page-header h1 {
    margin: 0;
    color: #333;
    font-size: 24px;
}

.page-actions {
    display: flex;
    gap: 10px;
}

.btn-icon {
    margin-right: 5px;
}

/* 表格头部样式 */
.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.table-header h3 {
    margin: 0;
    color: #333;
    font-size: 18px;
}

/* 响应式设计增强 */
@media (max-width: 768px) {
    .stats-section {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .stat-card {
        padding: 15px;
    }
    
    .table-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-input {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .filter-select {
        margin-left: 0;
    }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .page-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    /* 分页移动端样式 */
    .pagination-container {
        flex-direction: column;
        gap: 16px;
        padding: 16px;
        margin-left: -8px;
        margin-right: -8px;
    }
    
    .pagination-controls {
        justify-content: center;
        flex-wrap: wrap;
        gap: 6px;
    }
    
    .pagination-btn {
        padding: 6px 12px;
        font-size: 13px;
        min-width: 36px;
        height: 32px;
    }
    
    .page-number {
        padding: 6px 10px;
        font-size: 13px;
        min-width: 36px;
        height: 32px;
    }
}

.search-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: center;
    margin-bottom: 24px;
    padding: 24px;
    background: transparent;
    border-radius: 0;
    border: none;
    box-shadow: none;
    width: 100%;
    box-sizing: border-box;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    min-width: 0;
}

.filter-group label {
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    font-size: 14px;
    min-width: 60px;
    flex-shrink: 0;
}

.filter-buttons {
    display: flex;
    gap: 6px;
}

.filter-btn {
    padding: 8px 16px;
    border: 1px solid #e0e0e0;
    background: #f5f5f5;
    color: #666;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 80px;
    text-align: center;
}

.filter-btn:hover {
    background: #e8e8e8;
    border-color: #d0d0d0;
    color: #555;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.filter-btn.active {
    background: #666;
    color: white;
    border-color: #666;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.filter-select {
    padding: 8px 16px;
    border: 1px solid #e0e0e0;
    background: #f5f5f5;
    color: #666;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    min-width: 140px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-select:focus {
    outline: none;
    border-color: #d0d0d0;
    background: white;
    box-shadow: 0 0 0 2px rgba(0,0,0,0.05);
}

.filter-select:hover {
    background: #e8e8e8;
    border-color: #d0d0d0;
}

.search-input {
    padding: 8px 16px;
    border: 1px solid #e0e0e0;
    background: white;
    color: #666;
    border-radius: 8px;
    font-size: 13px;
    min-width: 180px;
    transition: all 0.2s ease;
}

.search-input:focus {
    outline: none;
    border-color: #d0d0d0;
    box-shadow: 0 0 0 2px rgba(0,0,0,0.05);
}

.search-input:hover {
    border-color: #d0d0d0;
}

.search-btn {
    padding: 8px 20px;
    border: 1px solid #e0e0e0;
    background: #f5f5f5;
    color: #666;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 80px;
}

.search-btn:hover {
    background: #e8e8e8;
    border-color: #d0d0d0;
    color: #555;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* 人员管理响应式样式 */
@media (max-width: 768px) {
    .search-filters {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .filter-group {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .filter-buttons {
        justify-content: center;
    }
    
    .search-input {
        width: 100%;
    }
}

/* 移除调试边框 */
.filter-group {
    border: none;
}

