/* ==================== 业务单号多行显示样式 ==================== */

/* 业务单号单元格容器 */
.task-list-business-no-cell {
    position: relative;
    display: inline-block;
}

/* 业务单号主文本 */
.task-list-business-no-primary {
    font-size: 13px;
    color: #333;
    cursor: pointer;
    user-select: none;
}


/* 数量标签 */
.task-list-business-no-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    background: #fa8c16;
    color: white;
    border-radius: 9px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 6px;
    vertical-align: middle;
    cursor: pointer;
    transition: all 0.2s ease;
}

.task-list-business-no-count:hover {
    background: #ff7a00;
    transform: scale(1.1);
}

/* 业务单号悬浮窗 */
.task-list-business-no-popover {
    position: fixed;
    min-width: 280px;
    max-width: 350px;
    max-height: 400px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 12px;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    pointer-events: none;
}

.task-list-business-no-popover.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.task-list-business-no-popover-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 8px;
}

.task-list-business-no-popover-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.task-list-business-no-popover-count {
    font-size: 12px;
    color: #666;
}

.task-list-business-no-popover-content {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 8px;
}

.task-list-business-no-popover-item {
    display: flex;
    align-items: center;
    padding: 6px 8px;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.task-list-business-no-popover-item:hover {
    background: #f5f5f5;
}

.task-list-business-no-popover-index {
    min-width: 30px;
    font-size: 12px;
    color: #999;
    margin-right: 12px;
}

.task-list-business-no-popover-no {
    flex: 1;
    font-size: 13px;
    color: #333;
    font-family: 'Courier New', monospace;
}

/* 查看全部按钮 */
.task-list-business-no-popover-view-all {
    width: 100%;
    padding: 8px 12px;
    background: #1890ff;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.task-list-business-no-popover-view-all:hover {
    background: #40a9ff;
}

/* 滚动条样式 */
.task-list-business-no-popover-content::-webkit-scrollbar {
    width: 6px;
}

.task-list-business-no-popover-content::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 3px;
}

.task-list-business-no-popover-content::-webkit-scrollbar-thumb {
    background: #d9d9d9;
    border-radius: 3px;
}

.task-list-business-no-popover-content::-webkit-scrollbar-thumb:hover {
    background: #bfbfbf;
}

/* 业务单号弹窗 */
.task-list-business-no-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 20000;
}

.task-list-business-no-modal-overlay.active {
    display: flex;
}

.task-list-business-no-modal-container {
    background: white;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    height: 520px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.task-list-business-no-modal-header {
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e5e7eb;
    background: #f8f9fa;
    flex-shrink: 0;
}

.task-list-business-no-modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.task-list-business-no-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.task-list-business-no-modal-close:hover {
    background: #e5e7eb;
    color: #333;
}

.task-list-business-no-modal-search {
    padding: 16px 20px 12px;
    flex-shrink: 0;
}

.task-list-business-no-modal-search input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.task-list-business-no-modal-search input:focus {
    outline: none;
    border-color: #1890ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.1);
}

/* 表头区域 - 固定 */
.task-list-business-no-modal-table-header {
    display: flex;
    padding: 10px 20px;
    background: #f5f5f5;
    border-bottom: 1px solid #e5e7eb;
    font-weight: 600;
    color: #333;
    font-size: 13px;
}

/* 表头单元格 */
.task-list-business-no-modal-th {
    padding: 0 12px;
}

.task-list-business-no-modal-th-index {
    width: 60px;
    text-align: center;
}

.task-list-business-no-modal-th-no {
    flex: 1;
}

/* 表格内容区域 - 可滚动 */
.task-list-business-no-modal-table-body {
    height: 320px;
    overflow-y: auto;
    padding: 0 20px;
}

/* 表格行 */
.task-list-business-no-modal-row {
    display: flex;
    border-bottom: 1px solid #f0f0f0;
}

.task-list-business-no-modal-row:hover {
    background-color: #f5f5f5;
}

/* 表格单元格 */
.task-list-business-no-modal-td {
    padding: 8px 12px;
    color: #333;
    font-size: 13px;
}

.task-list-business-no-modal-td-index {
    width: 60px;
    text-align: center;
    color: #666;
}

.task-list-business-no-modal-td-no {
    flex: 1;
    font-family: 'Courier New', monospace;
}

/* 分页样式 - 固定在底部 */
.task-list-business-no-modal-pagination {
    display: none;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 12px 20px;
    border-top: 1px solid #e5e7eb;
    background: #f8f9fa;
    flex-shrink: 0;
}

/* 分页按钮组 */
.task-list-business-no-page-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* 统计信息 */
.task-list-business-no-page-stats {
    color: #666;
    font-size: 13px;
    white-space: nowrap;
}

.task-list-business-no-page-btn {
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border: 1px solid #d1d5db;
    background: white;
    color: #374151;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.task-list-business-no-page-btn:hover:not(:disabled):not(.active) {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.task-list-business-no-page-btn.active {
    background: #1890ff;
    border-color: #1890ff;
    color: white;
}

.task-list-business-no-page-btn:disabled,
.task-list-business-no-page-btn.disabled {
    background: #f3f4f6;
    border-color: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
}

.task-list-business-no-page-ellipsis {
    color: #9ca3af;
    padding: 0 4px;
    font-size: 13px;
}

.task-list-business-no-page-info {
    color: #666;
    font-size: 13px;
    white-space: nowrap;
}

/* 统计信息样式 - 已合并到分页区域 */
.task-list-business-no-modal-info {
    display: none;
}

/* ==================== 任务列表页面样式 ==================== */

/* 任务列表页面容器 */
.task-list-page {
    height: calc(100vh - 120px);
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    padding: 24px;
}

/* 主要内容区域 */
.task-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
    overflow: auto;
}

/* 搜索区域样式 */
.task-search-area {
    border-radius: 8px;
    padding: 24px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.task-search-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%; /* 自适应页面宽度 */
}

.task-search-row {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    padding: 0 8px;
    width: 100%; /* 确保行宽度占满 */
}

.task-search-field {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1; /* 使搜索字段自适应宽度 */
}

.task-search-label {
    font-size: 14px;
    font-weight: 500;
    color: #4b5563;
    white-space: nowrap;
    min-width: 80px;
}

.task-search-input,
.task-search-select {
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    transition: all 0.2s ease;
    flex: 1; /* 使输入框和选择框自适应宽度 */
    min-width: 150px; /* 设置最小宽度，但允许自适应增长 */
}

.task-search-input:focus,
.task-search-select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
    outline: none;
}

/* 时间范围选择器样式 */
.task-date-range {
    display: flex;
    gap: 12px;
    align-items: center;
}

.task-date-range input {
    min-width: 150px;
}

.task-date-separator {
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
}

/* 组合搜索框样式 */
.task-combined-search {
    display: flex;
    align-items: center;
    width: 100%;
}

.task-search-type {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: none;
    flex-shrink: 0;
    background-color: #f8f9fa;
}

.task-combined-input {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-left: none;
    flex: 1;
}

.task-combined-input:focus,
.task-search-type:focus {
    z-index: 1;
}

.task-combined-input:focus + .task-search-type,
.task-search-type:focus + .task-combined-input {
    border-color: #3b82f6;
}

/* 多选框样式 */
.task-multi-select-container {
    flex: 1;
    position: relative;
}

.task-multi-select {
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    transition: all 0.2s ease;
    width: 100%;
    min-width: 150px;
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.task-multi-select:hover {
    border-color: #b0b7c1;
}

.task-multi-select.focused {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.task-multi-select-display {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
    min-height: 20px;
}

.task-multi-select-placeholder {
    color: #9ca3af;
    font-size: 14px;
}

.task-multi-select-arrow {
    width: 16px;
    height: 16px;
    color: #6b7280;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.task-multi-select.expanded .task-multi-select-arrow {
    transform: rotate(180deg);
}

.task-multi-select-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 100;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-top: 4px;
    display: none;
    overflow: hidden;
}

.task-multi-select.expanded .task-multi-select-dropdown {
    display: block;
}

.task-multi-select-options {
    max-height: 200px;
    overflow-y: auto;
    padding: 8px 0;
}

.task-multi-select-option {
    display: flex;
    align-items: center;
    padding: 8px 14px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.task-multi-select-option:hover {
    background-color: #f3f4f6;
}

.task-status-checkbox {
    margin-right: 8px;
    width: 16px;
    height: 16px;
    accent-color: #3b82f6;
}

.task-checkbox-label {
    font-size: 14px;
    color: #374151;
}

.task-multi-select-actions {
    display: flex;
    border-top: 1px solid #e5e7eb;
    padding: 8px 14px;
    justify-content: space-between;
}

.task-select-all-btn,
.task-select-clear-btn {
    padding: 4px 8px;
    background: none;
    border: none;
    font-size: 12px;
    color: #3b82f6;
    cursor: pointer;
    transition: color 0.2s ease;
}

.task-select-all-btn:hover,
.task-select-clear-btn:hover {
    color: #2563eb;
    text-decoration: underline;
}

/* 选中标签样式 */
.task-selected-tag {
    display: inline-flex;
    align-items: center;
    background-color: #e5e7eb;
    color: #374151;
    border-radius: 4px;
    font-size: 12px;
    padding: 2px 6px;
    gap: 4px;
}

.task-selected-tag-remove {
    cursor: pointer;
    color: #6b7280;
    font-size: 14px;
    line-height: 1;
    transition: color 0.2s ease;
}

.task-selected-tag-remove:hover {
    color: #374151;
}

.task-btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    line-height: 22px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.38, 0, 0.24, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    outline: none;
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.015);
    position: relative;
    transform: translateY(0);
    gap: 6px;
}

/* 按钮图标样式 */
.btn-icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
    transition: transform 0.2s ease-in-out;
}

/* 按钮悬停时图标旋转 */
.task-btn-primary:hover .btn-icon {
    transform: rotate(90deg);
}

.task-btn-primary {
    background-color: #0052d9;
    color: white;
    border: 1px solid #0052d9;
}

.task-btn-primary:hover {
    background-color: #2673dd;
    border-color: #2673dd;
    box-shadow: 0 4px 8px rgba(0, 82, 217, 0.2);
}

.task-btn-primary:active {
    background-color: #0043b6;
    border-color: #0043b6;
    transform: translateY(1px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.015);
}

.task-btn-primary:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(24, 114, 255, 0.2);
}

.task-btn-secondary {
    background-color: #ffffff;
    color: #4e5969;
    border: 1px solid #c9cdd4;
}

.task-btn-secondary:hover {
    background-color: #f5f7fa;
}

/* 列表区域样式 */
.task-list-area {
    height: calc(100vh - 300px); /* 固定高度，根据实际需求调整 */
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.task-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e5e7eb;
}

.task-list-title {
    font-size: 16px;
    font-weight: 600;
    color: #374151;
}

.task-list-actions {
    display: flex;
    gap: 8px;
}

.task-table-container {
    flex: 1;
    overflow-y: auto;
    min-height: 0; /* 确保flex子元素能正确收缩 */
}

.task-data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.task-data-table th {
    background: #f8f9fa;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: #374151;
    border-bottom: 1px solid #e5e7eb;
    white-space: nowrap;
}

/* 任务进度列宽度控制 */
.task-data-table th:nth-child(5),
.task-data-table td:nth-child(5) {
    width: 312px; /* 再增加20%，从260px到312px */
    min-width: 312px;
    max-width: 312px;
    padding: 12px 8px;
    text-align: center;
}

/* 操作列宽度控制 */
.task-data-table th:nth-child(9),
.task-data-table td:nth-child(9) {
    width: 280px;
    min-width: 180px;
    max-width: 280px;
    padding: 12px 8px;
    text-align: left;  /* 一级菜单操作列改为靠左 */
}

/* 操作单元格靠左对齐 */
.task-data-table td:nth-child(9) {
    display: flex;
    align-items: center;
    justify-content: flex-start;  /* 一级菜单操作列改为靠左 */
    flex-wrap: wrap;
    gap: 2px;
}

.task-data-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f3f4f6;
    color: #4b5563;
}

/* 优先级列居中 */
.task-data-table th:nth-child(6),
.task-data-table td:nth-child(6) {
    text-align: center;
}

.task-data-table tr:hover {
    background-color: #f8fafc;
}

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

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

.task-status.pending {
    background-color: #fff7e6;
    color: #fa8c16;
}

.task-status.processing {
    background-color: #e6f7ff;
    color: #1890ff;
}

.task-status.completed {
    background-color: #e8f5e8;
    color: #52c41a;
}

.task-status.cancelled {
    background-color: #fff2f0;
    color: #ff4d4f;
}

.task-status.exception {
    background-color: #fff2f0;
    color: #ff7875;
    background-color: rgba(255, 120, 117, 0.1);
}

/* 任务类型标签 */
.task-type {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.task-type.goods-in {
    background-color: #e6f7ff;
    color: #1890ff;
}

.task-type.consumables-in {
    background-color: #f0f5ff;
    color: #0052d9;
}

.task-type.sales-out {
    background-color: #f6ffed;
    color: #52c41a;
}

.task-type.stock-move {
    background-color: #fff7e6;
    color: #fa8c16;
}

.task-type.stock-replenish {
    background-color: #fff1f0;
    color: #ff4d4f;
}

.task-type.return-in {
    background-color: #f9f0ff;
    color: #722ed1;
}

.task-type.intercept-in {
    background-color: #fff0f6;
    color: #eb2f96;
}

/* 优先级标签 */
.task-priority {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.task-priority.high {
    background-color: #fff2f0;
    color: #ff4d4f;
}

.task-priority.normal {
    background-color: #e8f5e8;
    color: #52c41a;
}

/* 优先级单元格 */
.task-priority-cell {
    display: flex;
    align-items: center;
    justify-content: center; /* 整体水平居中 */
    gap: 6px;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    position: relative; /* 添加相对定位 */
}

/* 使用伪元素实现编辑图标靠右 */
.task-priority-cell::after {
    content: '';
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    opacity: 0;
    transition: all 0.2s ease;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='14' height='14'%3E%3Cpath d='M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83c.39-.39.39-1.02 0-1.41z' fill='currentColor'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
}

.task-priority-cell:hover::after {
    width: 14px;
    height: 14px;
    opacity: 1;
}

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



/* 操作按钮 */
.task-action-btn {
    padding: 5px 10px;
    border: 1px solid transparent;
    border-radius: 2px;
    background: white;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    margin-right: 3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    height: 26px;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.task-action-btn:last-child {
    margin-right: 0;
}

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

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

/* 查看详情按钮 - 中性色系 */
.task-action-btn.view {
    background: #f0f5ff;
    color: #0958d9;
    border-color: #91caff;
}

.task-action-btn.view:hover {
    background: #91caff;
    border-color: #69b1ff;
    color: #003a8c;
}

/* 修改优先级按钮 - 警告色系 */
.task-action-btn.priority {
    background: #fff7e6;
    color: #d46b08;
    border-color: #ffd591;
}

.task-action-btn.priority:hover {
    background: #ffe58f;
    border-color: #ffa940;
    color: #ad4e00;
}

/* 分配按钮 - 成功色系 */
.task-action-btn.assign {
    background: #e8f8f0;
    color: #389e0d;
    border-color: #95de64;
}

.task-action-btn.assign:hover {
    background: #95de64;
    border-color: #73d13d;
    color: #237804;
}

/* 移交按钮 - 中性色系 */
.task-action-btn.transfer {
    background: #f0f5ff;
    color: #0958d9;
    border-color: #91caff;
}

.task-action-btn.transfer:hover {
    background: #91caff;
    border-color: #69b1ff;
    color: #003a8c;
}

/* 执行按钮 - 成功色系 */
.task-action-btn.start {
    background: #e8f8f0;
    color: #389e0d;
    border-color: #95de64;
}

.task-action-btn.start:hover {
    background: #95de64;
    border-color: #73d13d;
    color: #237804;
}

/* 释放按钮 - 警告色系 */
.task-action-btn.release {
    background: #fff7e6;
    color: #d46b08;
    border-color: #ffd591;
}

.task-action-btn.release:hover {
    background: #ffe58f;
    border-color: #ffa940;
    color: #ad4e00;
}

/* 日志按钮 - 中性色系 */
.task-action-btn.log {
    background: #f0f5ff;
    color: #0958d9;
    border-color: #91caff;
}

.task-action-btn.log:hover {
    background: #91caff;
    border-color: #69b1ff;
    color: #003a8c;
}

/* 展开功能 */
.task-expandable {
    display: flex;
    align-items: center;
    gap: 8px;
}

.task-expand-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.task-expand-btn:hover:not(.disabled) {
    background-color: #f0f0f0;
}

.task-expand-btn.expanded {
    background-color: #e6f7ff;
}

.task-expand-btn.disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.task-expand-icon {
    width: 16px;
    height: 16px;
    fill: #666;
    transition: transform 0.3s ease;
}

.task-expand-btn:hover .task-expand-icon {
    fill: #1890ff;
}

.task-expand-btn.expanded .task-expand-icon {
    fill: #1890ff;
    transform: rotate(90deg);
}

/* 展开行样式 */
.task-expand-row {
    background-color: #fafafa;
    border-left: 3px solid #1890ff;
}

.task-expand-row.expanding {
    animation: expandAnimation 0.3s ease-out;
}

.task-expand-row.collapsing {
    animation: collapseAnimation 0.3s ease-out;
}
/* 移除动画效果，使用简单的显示/隐藏 */
.task-expand-row {
    overflow: hidden;
    transition: max-height 0.2s ease;
}

.task-expand-row.expanded {
    max-height: 1000px;
}

.task-expand-row.collapsed {
    max-height: 0;
}

/* 展开详情内容 */
.task-detail-container {
    padding: 16px;
    background: white;
    margin: 8px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* 移除标题样式 */
.task-detail-title {
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e7eb;
}

.task-detail-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.task-detail-table th {
    background: #f5f5f5;
    padding: 8px 10px;
    text-align: left;
    font-weight: normal;
    color: #666;
    border-bottom: 1px solid #e8e8e8;
    font-size: 12px;
}

.task-detail-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #f0f0f0;
    color: #333;
}

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

/* 详情表格列宽优化 */
.task-detail-table th:nth-child(1),
.task-detail-table td:nth-child(1) { width: 15%; } /* 子任务编号 */
.task-detail-table th:nth-child(2),
.task-detail-table td:nth-child(2) { width: 12%; } /* 子任务类型 */
.task-detail-table th:nth-child(3),
.task-detail-table td:nth-child(3) { width: 10%; } /* 子任务状态 */
.task-detail-table th:nth-child(4),
.task-detail-table td:nth-child(4) { width: 12%; } /* 执行人员 */
.task-detail-table th:nth-child(5),
.task-detail-table td:nth-child(5) { width: 15%; } /* 领取时间 */
.task-detail-table th:nth-child(6),
.task-detail-table td:nth-child(6) { width: 15%; } /* 完成时间 */
.task-detail-table th:nth-child(7),
.task-detail-table td:nth-child(7) { width: 10%; } /* 任务耗时 */
.task-detail-table th:nth-child(8),
.task-detail-table td:nth-child(8) { 
    width: 11%; 
    text-align: left; /* 二级菜单操作列也改为靠左 */
} /* 操作 */

/* 子任务状态标签 - 进一步简化 */
.subtask-status {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 2px;
    font-size: 11px;
    font-weight: normal;
    text-align: center;
    background-color: #f5f5f5;
    color: #666;
    border: 1px solid #e5e5e5;
}

.subtask-status.pending {
    background-color: #fff;
    color: #d97706;
    border-color: #f59e0b;
}

.subtask-status.processing {
    background-color: #fff;
    color: #2563eb;
    border-color: #3b82f6;
}

.subtask-status.completed {
    background-color: #fff;
    color: #059669;
    border-color: #10b981;
}

.subtask-status.cancelled {
    background-color: #fff;
    color: #6b7280;
    border-color: #9ca3af;
}

.subtask-status.exception {
    background-color: #fff;
    color: #dc2626;
    border-color: #ef4444;
}

/* 子任务状态标签 */
.subtask-status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    min-width: 60px;
}

.subtask-status.pending {
    background-color: #fff7e6;
    color: #fa8c16;
}

.subtask-status.processing {
    background-color: #e6f7ff;
    color: #1890ff;
}

.subtask-status.completed {
    background-color: #e8f5e8;
    color: #52c41a;
}

.subtask-status.cancelled {
    background-color: #fff2f0;
    color: #ff4d4f;
}

/* 分页样式 */
.task-pagination {
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    border-top: 1px solid #e5e7eb;
}

.task-pagination-info {
    font-size: 14px;
    color: #4b5563;
}

.task-pagination-controls {
    display: flex;
    gap: 8px;
}

.task-pagination-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background: white;
    color: #374151;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.task-pagination-btn:hover:not(:disabled) {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.task-pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.task-page-size {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #4b5563;
}

.task-page-size-select {
    padding: 4px 8px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background: white;
    font-size: 13px;
}

/* 修改任务优先级弹窗样式 */
.task-priority-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.task-priority-modal-overlay.active {
    display: flex;
}

/* 模态框内容 */
.task-priority-modal-container {
    background: white;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

/* 模态框头部 */
.task-priority-modal-header {
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e5e7eb;
}

.task-priority-modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #1d2129;
    margin: 0;
}

.task-priority-modal-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #6b7280;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.task-priority-modal-close:hover {
    background: #f3f4f6;
    color: #1d2129;
}

/* 模态框主体 */
.task-priority-modal-body {
    padding: 24px;
    flex: 1;
    overflow-y: auto;
}

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

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

.task-priority-form-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    background: #f8f9fa;
    color: #6b7280;
}

.task-priority-current-value {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #f8f9fa;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
}

.priority-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.priority-indicator.high {
    background-color: #ff4d4f;
}

.priority-indicator.normal {
    background-color: #52c41a;
}

.priority-text {
    font-size: 14px;
    font-weight: 500;
}

/* 自定义单选按钮样式 */
.task-priority-options {
    display: flex;
    gap: 16px;
}

.task-priority-option {
    cursor: pointer;
}

.task-priority-radio {
    display: none;
}

.task-priority-radio-custom {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.task-priority-option:hover .task-priority-radio-custom {
    border-color: #3b82f6;
    background-color: #f8fafc;
}

.task-priority-radio:checked + .task-priority-radio-custom {
    border-color: #3b82f6;
    background-color: #eff6ff;
}

.task-priority-radio-circle {
    width: 16px;
    height: 16px;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    position: relative;
    transition: all 0.2s ease;
}

.task-priority-radio:checked + .task-priority-radio-custom .task-priority-radio-circle {
    border-color: #3b82f6;
}

.task-priority-radio:checked + .task-priority-radio-custom .task-priority-radio-circle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #3b82f6;
}

.task-priority-radio-label {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

/* 模态框底部 */
.task-priority-modal-footer {
    padding: 16px 24px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    border-top: 1px solid #e5e7eb;
}

.task-priority-modal-btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.task-priority-btn-cancel {
    background: #ffffff;
    color: #6b7280;
    border: 1px solid #d1d5db;
}

.task-priority-btn-cancel:hover {
    background: #f3f4f6;
}

.task-priority-btn-primary {
    background: #3b82f6;
    color: white;
}

.task-priority-btn-primary:hover {
    background: #2563eb;
}

/* 任务详情弹窗样式 */
.task-detail-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.task-detail-modal-overlay.active {
    display: flex;
}

.task-detail-modal-container {
    background: white;
    border-radius: 8px;
    width: 90%;
    max-width: 900px;
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

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

.task-detail-modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #1d2129;
    margin: 0;
}

.task-detail-modal-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #6b7280;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.task-detail-modal-close:hover {
    background: #f3f4f6;
    color: #1d2129;
}

.task-detail-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.task-detail-tabs {
    display: flex;
    border-bottom: 1px solid #e5e7eb;
    background: #f8f9fa;
}

.task-detail-tab-btn {
    padding: 12px 24px;
    border: none;
    background: none;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.task-detail-tab-btn:hover {
    color: #374151;
    background: rgba(0, 0, 0, 0.05);
}

.task-detail-tab-btn.active {
    color: #3b82f6;
    border-bottom-color: #3b82f6;
    background: white;
}

.task-detail-tab-content {
    display: none;
    padding: 24px;
}

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

.task-detail-section {
    margin-bottom: 24px;
}

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

.task-detail-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #1d2129;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e7eb;
}

.task-detail-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.task-detail-form-group {
    display: flex;
    flex-direction: column;
}

.task-detail-form-group:nth-child(8) {
    grid-column: span 2;
}

.task-detail-form-label {
    font-size: 14px;
    font-weight: 500;
    color: #4b5563;
    margin-bottom: 6px;
}

.task-detail-form-input {
    padding: 10px 14px;
    border: none;
    border-radius: 0;
    font-size: 14px;
    background: none;
    color: #374151;
    border-bottom: 1px solid #e5e7eb;
}

.task-detail-form-input:focus {
    outline: none;
    border-bottom-color: #3b82f6;
}

.task-detail-status-value,
.task-detail-priority-value {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e5e7eb;
}

.task-status-value,
.task-priority-value {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    min-width: 60px;
}

.task-detail-progress {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #e5e7eb;
}

.task-detail-progress-bar {
    flex: 1;
    height: 8px;
    background-color: #f3f4f6;
    border-radius: 4px;
    overflow: hidden;
}

.task-detail-progress-fill {
    height: 100%;
    background-color: #0052d9;
    border-radius: 4px;
}

.task-detail-progress-text {
    font-size: 14px;
    font-weight: 500;
    color: #4b5563;
}

/* 任务详情信息网格布局 */
.task-detail-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.info-item {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-size: 14px;
    font-weight: 500;
    color: #4b5563;
    margin-bottom: 6px;
}

.info-value {
    font-size: 14px;
    color: #374151;
    padding: 8px 0;
    border-bottom: 1px solid #e5e7eb;
}


.task-detail-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.task-detail-table th {
    background: #f8f9fa;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: #374151;
    border-bottom: 2px solid #e5e7eb;
}

.task-detail-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f3f4f6;
    color: #4b5563;
}

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



.task-detail-modal-footer {
    padding: 16px 24px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    border-top: 1px solid #e5e7eb;
}

.task-detail-modal-btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.task-detail-btn-cancel {
    background: #ffffff;
    color: #6b7280;
    border: 1px solid #d1d5db;
}

.task-detail-btn-cancel:hover {
    background: #f3f4f6;
}

.task-detail-btn-primary {
    background: #3b82f6;
    color: white;
}

.task-detail-btn-primary:hover {
    background: #2563eb;
}

/* 分配任务弹窗样式 */
.assign-task-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

/* 输入框聚焦状态 */
#assignEmployeeName:focus {
    border-color: #0052d9;
    box-shadow: 0 0 0 2px rgba(0, 82, 217, 0.1);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .task-search-area {
        padding: 20px;
    }
    
    .task-list-area {
        height: calc(100vh - 400px); /* 移动端调整高度，考虑更多空间占用 */
    }
    
    .task-search-form {
        gap: 20px;
    }
    
    .task-search-row {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        padding: 0;
    }
    
    .task-search-field {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        min-width: 100%;
    }
    

    
    .task-date-range {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
    
    .task-date-range input {
        min-width: 100%;
    }
    
    .task-combined-search {
        flex-direction: column;
        align-items: stretch;
    }
    
    .task-search-type {
        border-radius: 6px;
        border-right: 1px solid #d1d5db;
        margin-bottom: 8px;
    }
    
    .task-combined-input {
        border-radius: 6px;
        border-left: 1px solid #d1d5db;
    }
    
    .task-list-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .task-pagination {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    
    .task-data-table {
        font-size: 12px;
    }
    
    .task-data-table th,
    .task-data-table td {
        padding: 8px 12px;
    }
    
    /* 任务详情弹窗响应式 */
    .task-detail-modal-container {
        width: 95%;
        max-height: 90vh;
    }
    
    .task-detail-form {
        grid-template-columns: 1fr;
    }
    
    .task-detail-form-group:nth-child(8) {
        grid-column: span 1;
    }
    
    .task-detail-tabs {
        overflow-x: auto;
    }
    
    .task-detail-tab-btn {
        padding: 12px 16px;
        white-space: nowrap;
    }
}

/* 节点进度样式 */
.node-progress-container {
    width: 100%;
    min-width: 300px; /* 再次增加最小宽度，与列宽度匹配 */
}

.node-container {
    display: flex;
    align-items: center;
    flex: 1;
}

.node {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #e5e7eb;
    position: relative;
    z-index: 1;
}

.node.active {
    background-color: #0052d9;
}

.node.completed {
    background-color: #00a870;
}

.node-line {
    flex: 1;
    height: 2px;
    background-color: #e5e7eb;
    margin: 0 2px;
}

.node-line.completed {
    background-color: #00a870;
}

.node-labels {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: #4e5969;
    margin-top: 4px;
}

/* 条形进度样式 */
.task-progress {
    display: flex;
    align-items: center;
    gap: 8px;
}

.task-progress-bar {
    flex: 1;
    height: 6px;
    background-color: #f3f4f6;
    border-radius: 3px;
    overflow: hidden;
}

.task-progress-fill {
    height: 100%;
    background-color: #0052d9;
    border-radius: 3px;
}

.task-progress-text {
    font-size: 12px;
    color: #4e5969;
    min-width: 40px;
}

/* ==================== 任务操作日志弹窗样式 ==================== */
.task-log-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.task-log-modal-content {
    background: white;
    border-radius: 8px;
    width: 90%;
    max-width: 900px;
    height: 80vh; /* 固定高度 */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.task-log-header-container {
    padding: 20px;
    background: white;
    border-bottom: 1px solid #e7e7e7;
    flex-shrink: 0;
    position: relative;
}

.task-log-header-container > div {
    display: flex;
    flex-wrap: wrap;
    gap: 15px 25px;
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.6;
}

.task-log-header-container > div > div {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.task-log-header-container strong {
    color: #333;
    white-space: nowrap;
}

/* 确保任务状态和优先级在弹窗中与列表保持一致的样式 */
.task-log-header-container .task-status,
.task-log-header-container .task-priority {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    min-width: 60px;
}

/* 确保任务类型在弹窗中与列表保持一致的样式 */
.task-log-header-container .task-type {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

/* 为进度添加样式 */
.task-log-header-container > div > div:nth-child(4) {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* 进度百分比样式 */
.task-log-header-container > div > div:nth-child(4):not(strong) {
    font-weight: 500;
    color: #1890ff;
}

/* 弹窗标题样式优化 */
.task-log-header-container h3 {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
}

.task-log-header-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: #f3f4f6;
    color: #666666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.2s ease;
    z-index: 10;
}

.task-log-header-close-btn:hover {
    background-color: #e7e7e7;
    color: #333333;
}

.task-log-timeline-container {
    padding: 24px;
    flex: 1;
    overflow-y: auto;
    max-height: calc(80vh - 160px);
    /* 实现隐形滚动条 */
    scrollbar-width: thin;
    scrollbar-color: rgba(155, 155, 155, 0.3) transparent;
}

/* WebKit浏览器的隐形滚动条 */
.task-log-timeline-container::-webkit-scrollbar {
    width: 6px;
}

.task-log-timeline-container::-webkit-scrollbar-track {
    background: transparent;
}

.task-log-timeline-container::-webkit-scrollbar-thumb {
    background-color: rgba(155, 155, 155, 0.3);
    border-radius: 3px;
}

.task-log-timeline-container::-webkit-scrollbar-thumb:hover {
    background-color: rgba(155, 155, 155, 0.5);
}

.task-log-timeline {
    position: relative;
}

.task-log-timeline-item {
    display: flex;
    margin-bottom: 32px;
    position: relative;
}

.task-log-timeline-item:last-child {
    margin-bottom: 0;
}

.task-log-timeline-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: 20px;
    flex-shrink: 0;
    width: 40px;
}

/* 主任务图标 - 重构样式 */
.task-log-timeline-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #0052d9;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 2;
    border: 2px solid white;
}

/* 主任务连接线 - 更明显的样式 */
.task-log-timeline-line {
    width: 3px;
    flex: 1;
    background: linear-gradient(to bottom, #e7e7e7 0%, #f5f5f5 100%);
    margin-top: 8px;
    position: relative;
}

.task-log-timeline-content {
    flex: 1;
    background: #fafbfc;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #f0f0f0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.task-log-timeline-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.task-log-timeline-type {
    font-size: 16px;
    font-weight: 600;
    color: #1d2129;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.task-log-timeline-time {
    font-size: 14px;
    color: #86909c;
    margin-left: auto;
    white-space: nowrap;
}

.task-log-timeline-detail {
    font-size: 14px;
    color: #4e5969;
    margin-bottom: 12px;
    line-height: 1.6;
    background: white;
    padding: 12px;
    border-radius: 6px;
    border-left: 3px solid #0052d9;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.task-log-timeline-operator {
    font-size: 14px;
    color: #86909c;
}

/* 子任务详情展开按钮样式 */
.subtask-detail-expand-btn {
    padding: 6px 16px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    background: transparent;
    color: #0052d9;
    font-size: 12px;
    font-weight: normal;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: 8px;
}

.subtask-detail-expand-btn:hover {
    background-color: rgba(0, 82, 217, 0.1);
    color: #003a9e;
}

/* 子任务时间线容器 */
.subtask-timeline-container {
    margin-top: 12px;
    background: white;
    border-radius: 8px;
    padding: 20px;
    display: none;
}

.subtask-timeline-header {
    font-size: 15px;
    font-weight: 600;
    color: #1d2129;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.subtask-timeline-header::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #0052d9;
}

.subtask-timeline-items {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 16px;
    margin-top: 8px;
    border: 1px solid #e9ecef;
}

/* 子任务时间线项 - 清晰的节点结构 */
.subtask-timeline-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px dashed #dee2e6;
    position: relative;
}

.subtask-timeline-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.subtask-timeline-item > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* 子任务头部信息 - 水平排列 */
.subtask-timeline-header {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.subtask-timeline-header span:first-child {
    font-weight: 500;
    color: #4e5969;
}

/* 子任务操作类型 - 突出显示 */
.subtask-timeline-action {
    font-weight: 500;
    color: #222;
}

/* 子任务时间 - 更清晰的样式 */
.subtask-timeline-time {
    font-size: 13px;
    color: #86909c;
    font-weight: 500;
    margin-left: auto;
}

/* 子任务详情 - 清晰的排版 */
.subtask-timeline-detail {
    font-size: 13px;
    color: #4e5969;
    line-height: 1.5;
    margin-top: 4px;
    padding-left: 10px;
    border-left: 2px solid #dee2e6;
}

/* 日志类型图标样式 */
.task-log-create {
    background: #52c41a;
}

.task-log-priority-change {
    background: #fa8c16;
}

.task-log-assign {
    background: #1890ff;
}

.task-log-transfer {
    background: #722ed1;
}

.task-log-complete {
    background: #52c41a;
}

.task-log-cancel {
    background: #ff4d4f;
}

/* 最后一个时间线项样式 */
.task-log-timeline-item.last-item {
    margin-bottom: 0;
}

.task-log-timeline-item.last-item .subtask-timeline-item {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

/* 响应式优化 */
@media (max-width: 768px) {
    .task-log-modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .task-log-timeline-container {
        padding: 16px;
        max-height: calc(90vh - 160px);
    }
    
    .task-log-timeline-item {
        flex-direction: column;
        margin-bottom: 20px;
    }
    
    .task-log-timeline-indicator {
        margin-right: 0;
        margin-bottom: 12px;
        align-self: flex-start;
    }
    
    .task-log-timeline-content {
        width: 100%;
    }
    
    .task-log-timeline-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 8px;
    }
    
    .subtask-detail-expand-btn {
        margin: 0 4px;
    }
    
    .subtask-timeline-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .subtask-timeline-time {
        min-width: auto;
        margin-right: 0;
        margin-bottom: 6px;
    }
    
    .subtask-timeline-action {
        min-width: auto;
        margin-right: 0;
        margin-bottom: 6px;
    }
    

}