/* 其他任务页面样式 */
.othertask-card {
    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;
}

.othertask-search-form {
    background: #ffffff;
    border: 1px solid #e5e6eb;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.othertask-search-row {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.othertask-search-field {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 200px;
}

.othertask-search-label {
    font-size: 13px;
    font-weight: 500;
    color: #1d2129;
    min-width: 70px;
    white-space: nowrap;
}

.othertask-search-input {
    width: 100%;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 13px;
    outline: none;
    vertical-align: middle;
    box-sizing: border-box;
}

.othertask-search-select {
    width: 100%;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 13px;
    outline: none;
    vertical-align: middle;
    box-sizing: border-box;
    background-color: #fff;
}

.othertask-search-input:focus,
.othertask-search-select:focus {
    outline: none;
    border-color: #0052d9;
    box-shadow: 0 0 0 2px rgba(0, 82, 217, 0.1);
}

.othertask-search-input:hover,
.othertask-search-select:hover {
    border-color: #c9cdd4;
}

.othertask-list {
    height: calc(100vh - 260px);
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.othertask-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e5e7eb;
}

.othertask-title {
    font-size: 16px;
    font-weight: 500;
    color: #303133;
}

.othertask-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.othertask-btn {
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #f5f5f5;
    color: #4e5969;
    border: 1px solid #d9d9d9;
}

.othertask-icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.othertask-btn:hover {
    background-color: #e6e6e6;
}

/* 主要按钮样式 */
.othertask-btn.othertask-btn-primary {
    background-color: #0052d9;
    color: #ffffff;
    border-color: #0052d9;
}

.othertask-btn.othertask-btn-primary:hover {
    background-color: #003bb3;
    border-color: #003bb3;
}

.othertask-table-container {
    flex: 1;
    overflow-y: auto;
    overflow-x: auto;
    min-height: 0;
}

.othertask-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;
    min-width: 900px;
}

.othertask-table th,
.othertask-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #ebeef5;
    text-align: left;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 300px;
}

.othertask-table th {
    background-color: #f5f7fa;
    font-weight: 500;
    color: #303133;
    position: sticky;
    top: 0;
    z-index: 1;
    border-bottom: 1px solid #ebeef5;
}

.othertask-table tbody tr {
    cursor: pointer;
}

.othertask-table tbody tr:hover {
    background-color: #f5f7fa;
}

/* 操作列样式 */
.othertask-table th:last-child,
.othertask-table td:last-child {
    width: 180px;
    text-align: center;
    white-space: nowrap;
}

/* 任务状态居中 */
.othertask-table th:nth-child(3),
.othertask-table td:nth-child(3) {
    text-align: center;
}

/* 任务说明左对齐 */
.othertask-table th:nth-child(4),
.othertask-table td:nth-child(4) {
    max-width: 250px;
    text-align: left;
}

/* 操作按钮样式 - 与预包任务页面一致 */
.othertask-action-btn {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid #1890ff;
    background-color: #fff;
    color: #1890ff;
    margin: 0 2px;
}

.othertask-action-btn:hover {
    background-color: #1890ff;
    color: white;
}

.othertask-action-btn.othertask-action-danger {
    border-color: #f56c6c;
    color: #f56c6c;
}

.othertask-action-btn.othertask-action-danger:hover {
    background-color: #f56c6c;
    color: white;
}

.othertask-action-btn.othertask-action-secondary {
    border-color: #909399;
    color: #909399;
}

.othertask-action-btn.othertask-action-secondary:hover {
    background-color: #909399;
    color: white;
}

/* 状态标签样式 */
.othertask-status-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 2px;
    font-size: 12px;
    font-weight: 500;
}

/* 待处理 - 蓝色 */
.othertask-status-pending {
    background-color: #ecf5ff;
    color: #409eff;
    border: 1px solid #d9ecff;
}

/* 执行中 - 橙色 */
.othertask-status-processing {
    background-color: #fdf6ec;
    color: #e6a23c;
    border: 1px solid #f5dab1;
}

/* 已完成 - 灰色 */
.othertask-status-completed {
    background-color: #f0f2f5;
    color: #909399;
    border: 1px solid #dcdfe6;
}

/* 已取消 - 红色 */
.othertask-status-cancelled {
    background-color: #fef0f0;
    color: #f56c6c;
    border: 1px solid #fde2e2;
}

.othertask-pagination {
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    border-top: 1px solid #e5e7eb;
}

.othertask-pagination-info {
    font-size: 14px;
    color: #4b5563;
}

.othertask-pagination-controls {
    display: flex;
    gap: 8px;
}

.othertask-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;
}

.othertask-pagination-btn:hover:not(:disabled) {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.othertask-pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.othertask-page-size {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #4b5563;
}

.othertask-page-size-select {
    padding: 4px 8px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background: white;
    font-size: 13px;
}

.othertask-no-data {
    text-align: center;
    color: #86909c;
    padding: 20px;
}

/* ==================== 详情弹窗样式 ==================== */
.othertask-detail-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100000;
    animation: othertaskDetailFadeIn 0.3s ease;
}

@keyframes othertaskDetailFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.othertask-detail-modal {
    background-color: #fff;
    border-radius: 8px;
    width: 95%;
    max-width: 800px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    animation: othertaskDetailSlideDown 0.3s ease;
}

@keyframes othertaskDetailSlideDown {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.othertask-detail-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e5e6eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    background-color: #fff;
}

.othertask-detail-title {
    font-size: 18px;
    font-weight: 600;
    color: #1d2129;
    margin: 0;
}

.othertask-detail-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #86909c;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.othertask-detail-close:hover {
    background-color: #f2f3f5;
    color: #1d2129;
}

.othertask-detail-content {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.othertask-detail-section {
    margin-bottom: 24px;
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #e5e6eb;
}

.othertask-detail-section:last-child {
    margin-bottom: 0;
}

.othertask-detail-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #1d2129;
    margin: 0 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #0052d9;
    display: flex;
    align-items: center;
}

.othertask-detail-section-title::before {
    content: "";
    width: 4px;
    height: 18px;
    background-color: #0052d9;
    margin-right: 10px;
    border-radius: 2px;
}

.othertask-detail-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    background-color: #fff;
    padding: 16px;
    border-radius: 6px;
}

.othertask-detail-info-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.othertask-detail-info-item-full {
    grid-column: 1 / -1;
}

.othertask-detail-label {
    font-size: 13px;
    color: #86909c;
    font-weight: 500;
}

.othertask-detail-value {
    font-size: 14px;
    color: #1d2129;
    font-weight: 500;
}

/* ==================== 通用模态框样式 ==================== */
.othertask-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.othertask-modal.othertask-modal-show {
    opacity: 1;
}

.othertask-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
}

.othertask-modal-content {
    position: relative;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 400px;
    max-width: 600px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.othertask-modal.othertask-modal-show .othertask-modal-content {
    transform: scale(1);
}

.othertask-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
}

.othertask-modal-title {
    font-size: 16px;
    font-weight: 500;
    color: #1d2129;
}

.othertask-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.othertask-modal-close:hover {
    background-color: #f5f5f5;
    color: #333;
}

.othertask-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.othertask-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 20px;
    border-top: 1px solid #e5e7eb;
}

.othertask-modal-btn {
    padding: 8px 20px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid #d9d9d9;
    background-color: white;
    color: #666;
}

.othertask-modal-btn:hover {
    border-color: #1890ff;
    color: #1890ff;
}

.othertask-modal-confirm {
    background-color: #1890ff;
    border-color: #1890ff;
    color: white;
}

.othertask-modal-confirm:hover {
    background-color: #40a9ff;
    border-color: #40a9ff;
    color: white;
}

/* ==================== 取消确认样式 ==================== */
.othertask-cancel-confirm {
    text-align: center;
    padding: 20px;
}

.othertask-cancel-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.othertask-cancel-message {
    font-size: 16px;
    color: #333;
    margin-bottom: 12px;
}

.othertask-cancel-message strong {
    color: #1890ff;
}

.othertask-cancel-tip {
    font-size: 13px;
    color: #999;
    margin-bottom: 20px;
}

.othertask-cancel-reason {
    text-align: left;
    margin-top: 16px;
}

.othertask-cancel-reason-label {
    display: block;
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
    font-weight: 500;
}

.othertask-cancel-reason-label::before {
    content: '*';
    color: #ff4d4f;
    margin-right: 4px;
}

.othertask-cancel-reason-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
    resize: vertical;
    box-sizing: border-box;
    font-family: inherit;
}

.othertask-cancel-reason-input:focus {
    outline: none;
    border-color: #40a9ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

.othertask-cancel-reason-input::placeholder {
    color: #bfbfbf;
}

/* ==================== 删除确认样式 ==================== */
.othertask-delete-confirm {
    text-align: center;
    padding: 20px;
}

.othertask-delete-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.othertask-delete-message {
    font-size: 16px;
    color: #333;
    margin-bottom: 12px;
}

.othertask-delete-message strong {
    color: #f56c6c;
}

.othertask-delete-tip {
    font-size: 13px;
    color: #999;
}

/* ==================== 日志样式 ==================== */
.othertask-logs-container {
    max-height: 450px;
    overflow-y: auto;
    padding: 10px 0;
}

.othertask-log-empty {
    text-align: center;
    padding: 50px 20px;
    color: #999;
    font-size: 14px;
}

.othertask-timeline {
    position: relative;
    padding-left: 28px;
}

.othertask-timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background-color: #e5e7eb;
}

.othertask-log-item {
    position: relative;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
}

.othertask-log-item:last-child {
    border-bottom: none;
}

.othertask-log-dot {
    position: absolute;
    left: -24px;
    top: 20px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #fff;
    border: 2px solid #d9d9d9;
    z-index: 1;
}

.othertask-log-item.othertask-log-create .othertask-log-dot {
    border-color: #52c41a;
    background-color: #f6ffed;
}

.othertask-log-item.othertask-log-status .othertask-log-dot {
    border-color: #1890ff;
    background-color: #e6f7ff;
}

.othertask-log-item.othertask-log-complete .othertask-log-dot {
    border-color: #722ed1;
    background-color: #f9f0ff;
}

.othertask-log-item.othertask-log-cancel .othertask-log-dot {
    border-color: #ff4d4f;
    background-color: #fff1f0;
}

.othertask-log-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.othertask-log-node {
    font-size: 14px;
    font-weight: 600;
    color: #262626;
}

.othertask-log-time {
    font-size: 13px;
    color: #8c8c8c;
    font-family: monospace;
}

.othertask-log-operator {
    display: inline-block;
    font-size: 12px;
    color: #595959;
    background-color: #f5f5f5;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.othertask-log-remark {
    font-size: 13px;
    color: #434343;
    line-height: 1.6;
    padding: 10px 12px;
    background-color: #fafafa;
    border-radius: 6px;
    border-left: 3px solid #d9d9d9;
}

.othertask-log-item.othertask-log-create .othertask-log-remark {
    border-left-color: #52c41a;
}

.othertask-log-item.othertask-log-status .othertask-log-remark {
    border-left-color: #1890ff;
}

.othertask-log-item.othertask-log-complete .othertask-log-remark {
    border-left-color: #722ed1;
}

.othertask-log-item.othertask-log-cancel .othertask-log-remark {
    border-left-color: #ff4d4f;
}

/* ==================== Toast样式 ==================== */
.othertask-toast {
    position: fixed;
    top: 50px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 14px;
    z-index: 3000;
    opacity: 0;
    transition: all 0.3s ease;
}

.othertask-toast.othertask-toast-show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

@media (max-width: 768px) {
    .othertask-card {
        padding: 16px;
    }

    .othertask-table {
        font-size: 12px;
    }

    .othertask-table th,
    .othertask-table td {
        padding: 8px;
    }

    .othertask-search-field {
        min-width: 100%;
    }

    .othertask-detail-modal {
        width: 98%;
        max-height: 95vh;
    }

    .othertask-detail-content {
        padding: 16px;
    }

    .othertask-detail-section {
        padding: 16px;
    }

    .othertask-detail-info {
        grid-template-columns: 1fr;
    }
}

/* ==================== 类型管理弹窗样式 ==================== */

/* 遮罩层 */
.othertask-type-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.othertask-type-overlay.othertask-type-show {
    opacity: 1;
}

/* 弹窗 */
.othertask-type-modal {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    width: 900px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    transform: scale(0.95);
    transition: transform 0.2s ease;
}

.othertask-type-show .othertask-type-modal {
    transform: scale(1);
}

/* 增加类型弹窗 - 较小尺寸 */
.othertask-addtype-modal {
    width: 500px;
    max-height: 60vh;
}

/* 弹窗头部 */
.othertask-type-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e8e8e8;
    flex-shrink: 0;
}

.othertask-type-title {
    font-size: 16px;
    font-weight: 600;
    color: #1d2129;
    margin: 0;
}

.othertask-type-close {
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    cursor: pointer;
    color: #86909c;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.othertask-type-close:hover {
    background-color: #f5f5f5;
    color: #1d2129;
}

.othertask-type-close svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* 弹窗内容区 */
.othertask-type-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

/* 搜索区域 */
.othertask-type-search {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    gap: 16px;
}

.othertask-type-search-field {
    display: flex;
    gap: 8px;
    flex: 1;
}

.othertask-type-search-input {
    flex: 1;
    max-width: 300px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    outline: none;
    transition: all 0.2s ease;
}

.othertask-type-search-input:focus {
    border-color: #1890ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.1);
}

.othertask-type-search-input::placeholder {
    color: #bfbfbf;
}

.othertask-type-search-btn {
    height: 36px;
    padding: 0 16px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    background: white;
    color: #1890ff;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.othertask-type-search-btn:hover {
    border-color: #1890ff;
    color: #1890ff;
}

.othertask-type-search-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* 增加类型按钮 */
.othertask-type-add-btn {
    height: 36px;
    padding: 0 16px;
    border: none;
    border-radius: 4px;
    background: #1890ff;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.othertask-type-add-btn:hover {
    background-color: #40a9ff;
}

.othertask-type-add-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* 表格外层 - 固定高度 */
.othertask-type-table-wrapper {
    height: 400px;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
}

/* 表格容器 */
.othertask-type-table-container {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

/* 表格样式 */
.othertask-type-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.othertask-type-table th,
.othertask-type-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #e8e8e8;
}

.othertask-type-table th {
    background-color: #f5f7fa;
    font-weight: 500;
    color: #303133;
    border-bottom: 1px solid #e8e8e8;
}

.othertask-type-table tbody tr:last-child td {
    border-bottom: none;
}

.othertask-type-table tbody tr:hover {
    background-color: #f5f7fa;
}

.othertask-type-table td {
    color: #4e5969;
}

/* 删除按钮样式 */
.othertask-type-delete-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border: 1px solid #f56c6c;
    border-radius: 4px;
    background-color: #fff;
    color: #f56c6c;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.othertask-type-delete-btn svg {
    width: 14px;
    height: 14px;
}

.othertask-type-delete-btn:hover {
    background-color: #fef0f0;
    border-color: #f89898;
}

.othertask-type-delete-btn:active {
    background-color: #fde2e2;
}

/* 分页样式 */
.othertask-type-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 8px;
}

.othertask-type-pagination-info {
    font-size: 13px;
    color: #4b5563;
}

.othertask-type-pagination-controls {
    display: flex;
    gap: 8px;
    align-items: center;
}

.othertask-type-pagination-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background: white;
    color: #374151;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s ease;
}

.othertask-type-pagination-btn:hover:not(:disabled) {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.othertask-type-pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.othertask-type-page-size {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #4b5563;
}

.othertask-type-page-size-select {
    padding: 4px 8px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background: white;
    font-size: 13px;
}

/* 弹窗底部 */
.othertask-type-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 20px;
    border-top: 1px solid #e8e8e8;
    flex-shrink: 0;
}

.othertask-type-btn {
    padding: 8px 20px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.othertask-type-btn-cancel {
    background-color: #ffffff;
    border-color: #d9d9d9;
    color: #595959;
}

.othertask-type-btn-cancel:hover {
    border-color: #1890ff;
    color: #1890ff;
}

.othertask-type-btn-confirm {
    background-color: #1890ff;
    border-color: #1890ff;
    color: #ffffff;
}

.othertask-type-btn-confirm:hover {
    background-color: #40a9ff;
    border-color: #40a9ff;
}

/* 增加类型表单样式 */
.othertask-addtype-form {
    padding: 10px 0;
}

.othertask-addtype-form-item {
    margin-bottom: 20px;
}

.othertask-addtype-form-item:last-child {
    margin-bottom: 0;
}

.othertask-addtype-form-label {
    display: block;
    font-size: 14px;
    color: #1d2129;
    margin-bottom: 8px;
    font-weight: 500;
}

.othertask-addtype-required {
    color: #ff4d4f;
    margin-right: 4px;
}

.othertask-addtype-form-input {
    width: 100%;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    outline: none;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.othertask-addtype-form-input:focus {
    border-color: #1890ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.1);
}

.othertask-addtype-form-input::placeholder {
    color: #bfbfbf;
}

.othertask-addtype-form-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    outline: none;
    resize: vertical;
    font-family: inherit;
    transition: all 0.2s ease;
}

.othertask-addtype-form-textarea:focus {
    border-color: #1890ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.1);
}

.othertask-addtype-form-textarea::placeholder {
    color: #bfbfbf;
}

/* ==================== 创建任务弹窗样式 ==================== */

/* 遮罩层 */
.othertask-create-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.othertask-create-overlay.othertask-create-show {
    opacity: 1;
}

/* 弹窗 */
.othertask-create-modal {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    width: 700px;
    max-width: 95vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    transform: scale(0.9);
    transition: transform 0.2s ease;
}

.othertask-create-show .othertask-create-modal {
    transform: scale(1);
}

/* 弹窗头部 */
.othertask-create-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
}

.othertask-create-title {
    font-size: 16px;
    font-weight: 600;
    color: #1d2129;
    margin: 0;
}

.othertask-create-close {
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8c8c8c;
    transition: all 0.2s ease;
}

.othertask-create-close:hover {
    background-color: #f5f5f5;
    color: #1d2129;
}

.othertask-create-close svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* 弹窗内容区 */
.othertask-create-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

/* 表单容器 */
.othertask-create-form {
    max-height: 70vh;
    overflow-y: auto;
    padding: 0 4px;
}

/* 分区块 */
.othertask-create-section {
    margin-bottom: 24px;
    background: #fafafa;
    border-radius: 8px;
    padding: 16px;
    border: 1px solid #e8e8e8;
}

.othertask-create-section:last-child {
    margin-bottom: 0;
}

.othertask-create-section-title {
    font-size: 15px;
    font-weight: 600;
    color: #1d2129;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.othertask-create-section-title .section-icon {
    font-size: 18px;
}

.othertask-create-section-title .required {
    color: #f56c6c;
    margin-left: 4px;
}

/* 表单网格布局 */
.othertask-create-form-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 16px 24px;
}

.othertask-create-form-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.othertask-create-label {
    font-size: 13px;
    color: #4e5969;
    font-weight: 500;
}

.othertask-create-label .required {
    color: #f56c6c;
    margin-right: 2px;
}

.othertask-create-input {
    height: 36px;
    padding: 0 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
    width: 100%;
}

.othertask-create-input:focus {
    border-color: #1890ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.1);
}

.othertask-create-input:hover {
    border-color: #40a9ff;
}

/* 任务类型自定义下拉 */
.othertask-create-type-select-wrapper {
    position: relative;
    width: 100%;
}

.othertask-create-type-select {
    width: 100%;
    min-height: 40px;
    padding: 8px 36px 8px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-sizing: border-box;
    background-color: #fff;
    position: relative;
}

.othertask-create-type-select:hover {
    border-color: #1890ff;
}

.othertask-create-type-select:focus-within {
    border-color: #1890ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.1);
}

.othertask-create-type-display {
    flex: 1;
    overflow: hidden;
}

.othertask-create-type-placeholder {
    color: #bfbfbf;
}

.othertask-create-type-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: #8c8c8c;
    transition: transform 0.2s ease;
}

.othertask-create-type-dropdown.show + .othertask-create-type-select .othertask-create-type-icon,
.othertask-create-type-select-wrapper:has(.othertask-create-type-dropdown.show) .othertask-create-type-icon {
    transform: translateY(-50%) rotate(180deg);
}

/* 下拉面板 */
.othertask-create-type-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    max-height: 280px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: all 0.2s ease;
}

.othertask-create-type-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* 选项 */
.othertask-create-type-option {
    padding: 10px 12px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s ease;
}

.othertask-create-type-option:last-child {
    border-bottom: none;
}

.othertask-create-type-option:hover {
    background-color: #e6f7ff;
}

.othertask-create-type-option.selected {
    background-color: #e6f7ff;
}

.othertask-create-type-main {
    font-size: 14px;
    font-weight: 500;
    color: #1d2129;
    margin-bottom: 2px;
}

.othertask-create-type-sub {
    font-size: 12px;
    color: #86909c;
}

/* 备注区域 */
.othertask-create-remark-wrapper {
    margin-top: 0;
}

.othertask-create-remark {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.5;
    color: #1d2129;
    outline: none;
    resize: vertical;
    font-family: inherit;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.othertask-create-remark:focus {
    border-color: #1890ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.1);
}

.othertask-create-remark:hover {
    border-color: #40a9ff;
}

.othertask-create-remark::placeholder {
    color: #bfbfbf;
}

/* 弹窗底部 */
.othertask-create-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 20px;
    border-top: 1px solid #f0f0f0;
    flex-shrink: 0;
}

.othertask-create-btn {
    height: 32px;
    padding: 0 20px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.othertask-create-btn-cancel {
    background: #fff;
    border-color: #d9d9d9;
    color: #4e5969;
}

.othertask-create-btn-cancel:hover {
    background: #f5f5f5;
    border-color: #40a9ff;
    color: #40a9ff;
}

.othertask-create-btn-confirm {
    background: #1890ff;
    border-color: #1890ff;
    color: #fff;
}

.othertask-create-btn-confirm:hover {
    background: #40a9ff;
    border-color: #40a9ff;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .othertask-type-modal {
        width: calc(100vw - 32px);
        max-height: 85vh;
    }

    .othertask-addtype-modal {
        width: calc(100vw - 32px);
    }

    .othertask-type-search {
        flex-direction: column;
        align-items: stretch;
    }

    .othertask-type-search-field {
        flex-direction: column;
    }

    .othertask-type-search-input {
        max-width: none;
    }

    .othertask-type-add-btn {
        width: 100%;
        justify-content: center;
    }

    .othertask-type-pagination {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }
}
