/**
 * 笑脸任务 UI
 * - 表单分区 / 双列字段 / 提示层级
 * - 四象限看板、我的计划、工作台
 * 强调色跟随主题变量，禁止写死品牌绿
 */

/* 需求池 / 任务 / 迭代计划顶部状态 Tab 数量（对齐 nova 角标 data-count） */
.panel-intro > .panel-heading .nav-tabs.task-status-tabs > li > a .badge.tab-status-count:not([data-count="0"]) {
  display: inline-flex !important;
}
.task-req-split-tag {
  font-weight: 600;
  font-size: 11px;
}

/* ========== 表单页 ========== */
.task-form-page {
  padding: 14px 16px 88px;
  background: #f3f5f7;
  min-height: 100%;
}

/* 弹窗内底栏已抽到 Layer 外，去掉 88px 占位，避免底部空白条 */
body.is-dialog .task-form-page {
  padding-bottom: 16px;
  min-height: 0;
}
/* nova 皮肤 .content-wrapper 底边距在弹窗 iframe 内会多出一条白边 */
body.is-dialog .content-wrapper {
  padding-bottom: 0 !important;
}
body.is-dialog {
  overflow-x: hidden;
}

.task-form-page .task-form-banner {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--theme-primary-soft, #ecf5ff) 0%, #fff 70%);
  border: 1px solid rgba(64, 158, 255, 0.18);
}

.task-form-page .task-form-banner > i {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  line-height: 28px;
  text-align: center;
  border-radius: 50%;
  background: var(--theme-primary, #409eff);
  color: #fff;
  font-size: 14px;
}

.task-form-page .task-form-banner .bd {
  flex: 1;
  min-width: 0;
}

.task-form-page .task-form-banner .bd strong {
  display: block;
  font-size: 13px;
  color: #303133;
  margin-bottom: 4px;
}

.task-form-page .task-form-banner .bd p {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  color: #606266;
}

.task-form-page .form-section {
  background: #fff;
  border: 1px solid #e6ebef;
  border-radius: 8px;
  margin-bottom: 14px;
  /* 不可用 overflow:hidden，否则会裁切 selectpage / selectpicker 下拉层 */
  overflow: visible;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  position: relative;
  z-index: 1;
}

.task-form-page .form-section-hd {
  padding: 12px 16px;
  border-bottom: 1px solid #eef2f5;
  background: linear-gradient(90deg, var(--theme-primary-soft, #ecf5ff) 0%, #fff 55%);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
  border-radius: 8px 8px 0 0;
}

.task-form-page .form-section-hd h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #303133;
  line-height: 1.4;
}

.task-form-page .form-section-hd h4 i {
  color: var(--theme-primary, #409eff);
  margin-right: 6px;
}

.task-form-page .form-section-hd .sub {
  margin: 0;
  font-size: 12px;
  color: #909399;
  flex: 1 1 200px;
}

.task-form-page .form-section-bd {
  padding: 18px 16px 8px;
}

.task-form-page .form-section-bd:after {
  content: "";
  display: table;
  clear: both;
}

.task-form-page .form-group {
  margin-bottom: 16px;
}

.task-form-page .control-label {
  padding-top: 8px;
  color: #606266;
  font-weight: 500;
  font-size: 13px;
}

.task-form-page .form-control-static {
  padding-top: 8px;
  color: #303133;
}

.task-form-page .help-block {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: #909399;
}

.task-form-page .help-block.is-tip {
  padding: 8px 10px;
  border-radius: 6px;
  background: #fdf6ec;
  border: 1px solid #faecd8;
  color: #b88230;
}

.task-form-page .form-control {
  border-radius: 4px;
  border-color: #dcdfe6;
  box-shadow: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.task-form-page .form-control:focus {
  border-color: var(--theme-primary, #409eff);
  box-shadow: 0 0 0 2px rgba(64, 158, 255, 0.12);
}

.task-form-page .sp_container .sp_input {
  border-radius: 4px;
}

/* selectpage / bootstrap-select 下拉必须压过富文本 note-editor */
.task-form-page .sp_result_area,
.layui-layer-content .sp_result_area {
  z-index: 20000050 !important;
}
/* 未展开时不要占位成空白浮层（动态 init 偶发） */
.layui-layer-content .sp_result_area:empty,
.task-form-page .sp_result_area:empty {
  display: none !important;
}
.task-form-page .bootstrap-select .dropdown-menu,
.layui-layer-content .bootstrap-select .dropdown-menu {
  z-index: 20000050 !important;
}
.task-form-page .note-editor,
.task-form-page .note-toolbar,
.task-form-page .note-editing-area {
  position: relative;
  z-index: 1 !important;
}
/* 打开下拉时，所在分区抬升，避免被下方富文本区块盖住 */
.task-form-page .form-section:has(.sp_container:focus-within),
.task-form-page .form-section:has(.bootstrap-select.open),
.task-form-page .form-section.is-dropdown-open {
  z-index: 30;
}

/* 双列字段：同一行两个相关控件 */
.task-form-page .task-field-grid {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -8px 4px;
}

.task-form-page .task-field-grid > .task-field {
  flex: 1 1 280px;
  padding: 0 8px;
  min-width: 0;
}

/* 三列：项目/类型/优先级、提出/处理 */
.task-form-page .task-field-grid.is-3 > .task-field {
  flex: 1 1 220px;
}
.task-form-page .task-field-grid.is-3 > .task-field.is-wide {
  flex: 1.4 1 280px;
}

.task-form-page .task-field-grid > .task-field.is-full {
  flex: 1 1 100%;
}

/* 周期任务表单 */
.task-recur-form .task-form-banner.is-compact {
  align-items: center;
  margin-bottom: 12px;
  padding: 10px 14px;
}
.task-recur-form .task-form-banner.is-compact > i {
  width: 24px;
  height: 24px;
  line-height: 24px;
  font-size: 12px;
}
.task-recur-form .task-form-banner.is-compact .bd p {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: #606266;
}
.task-recur-rule-bd {
  padding-top: 2px;
}
.task-recur-template-bd {
  padding-top: 2px;
}
.task-recur-template-bd .task-recur-block {
  margin-bottom: 10px;
}
.task-recur-template-bd .task-recur-block:last-child {
  margin-bottom: 0;
}
.task-recur-form .task-recur-block .task-field-grid > .task-field.is-full .form-group {
  margin-bottom: 12px;
}
.task-recur-form .task-recur-block .task-field-grid > .task-field.is-full:last-child .form-group {
  margin-bottom: 0;
}
.task-recur-form .task-priority-row {
  min-height: 32px;
  padding: 2px 0;
}
.task-recur-block {
  padding: 12px 14px 6px;
  margin-bottom: 10px;
  border-radius: 8px;
  background: #f9fafb;
  border: 1px solid #eef2f5;
}
.task-recur-block:last-child {
  margin-bottom: 0;
}
.task-recur-block-hd {
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 600;
  color: #606266;
  letter-spacing: 0.02em;
}
.task-recur-block-hd:before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 12px;
  margin-right: 6px;
  border-radius: 2px;
  background: var(--theme-primary, #409eff);
  vertical-align: -1px;
}
.task-recur-form .task-weekday-pick {
  gap: 8px;
}
.task-recur-form .task-weekday-pick .wd-opt {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 5px 12px;
  border: 1px solid #dcdfe6;
  border-radius: 6px;
  background: #fff;
  font-size: 12px;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.task-recur-form .task-weekday-pick .wd-opt:hover {
  border-color: var(--theme-primary, #409eff);
}
.task-recur-form .task-weekday-pick .wd-opt input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  margin: 0;
}
.task-recur-form .task-weekday-pick .wd-opt:has(input:checked) {
  border-color: var(--theme-primary, #409eff);
  background: var(--theme-primary-soft, #ecf5ff);
  color: var(--theme-primary, #409eff);
  font-weight: 500;
}
.task-recur-form .form-section-bd .help-block.is-tip {
  margin-top: 4px;
  margin-bottom: 0;
  font-size: 11px;
}

.task-form-page .task-priority-row {
  padding-top: 4px;
  min-height: 34px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.task-form-page .task-people-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 8px 14px;
  padding: 8px 12px;
  border-radius: 6px;
  background: #f7f9fb;
  border: 1px solid #eef2f5;
  font-size: 13px;
}
.task-form-page .task-people-meta .meta-label {
  color: #909399;
  font-size: 12px;
}
.task-form-page .task-people-meta strong {
  color: #303133;
  font-weight: 600;
}

/* AI 填表：收成紧凑块，不抢主路径 */
.task-form-page .form-section.is-ai-compact .form-section-hd h4 .hd-optional {
  margin-left: 6px;
  font-size: 11px;
  font-weight: 400;
  color: #909399;
  background: #f4f4f5;
  border-radius: 9px;
  padding: 1px 8px;
}
.task-form-page .task-ai-fill-row {
  padding: 0 4px 8px;
}
.task-form-page .task-ai-fill-row textarea {
  resize: vertical;
  min-height: 56px;
}
.task-form-page .task-ai-fill-actions {
  margin-top: 8px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
}
.task-form-page .task-ai-fill-actions .text-muted {
  font-size: 12px;
}

.task-form-page .task-field-grid .form-group {
  margin-left: 0;
  margin-right: 0;
}

.task-form-page .task-field-grid .control-label {
  float: none;
  width: auto;
  text-align: left;
  display: block;
  padding: 0 0 6px;
  margin: 0;
}

.task-form-page .task-field-grid .task-field-ctl {
  width: 100%;
  float: none;
  padding: 0;
}

.task-form-page .task-inline-range {
  display: flex;
  align-items: center;
  gap: 8px;
}

.task-form-page .task-inline-range .form-control {
  flex: 1;
}

.task-form-page .task-inline-range .sep {
  color: #c0c4cc;
  flex-shrink: 0;
}

/* 必填星号 */
.task-form-page label.is-required:before,
.task-form-page .control-label.is-required:before {
  content: "*";
  color: #f56c6c;
  margin-right: 4px;
}

/* 单选更清晰 */
.task-form-page .radio,
.task-form-page .radio-inline {
  margin-right: 14px;
}

.task-form-page .radio-inline + .radio-inline {
  margin-left: 0;
}

/* 待发提醒列表 */
.task-form-page .task-remind-list {
  margin: 0;
  padding: 8px 0 0;
  list-style: none;
}

.task-form-page .task-remind-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  margin-bottom: 6px;
  border-radius: 6px;
  background: #f5f7fa;
  font-size: 12px;
  color: #606266;
}

.task-form-page .task-remind-list li i {
  color: var(--theme-primary, #409eff);
}
.task-form-page.is-add-mode .form-section-bd .help-block.is-tip {
  margin-top: 4px;
  margin-bottom: 0;
}
.task-form-more-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--theme-primary, #409eff);
  text-decoration: none;
}
.task-form-more-toggle:hover,
.task-form-more-toggle:focus {
  color: var(--theme-primary, #409eff);
  text-decoration: none;
}
.task-form-more-toggle .fa {
  transition: transform 0.2s ease;
}
.task-form-more-toggle:not(.collapsed) .fa {
  transform: rotate(180deg);
}

/* 弹窗底部操作条 */
form.form-horizontal .layer-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  margin: 0 !important;
  padding: 10px 20px !important;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid #ebeef5;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.04);
  text-align: right;
}

form.form-horizontal .layer-footer > .control-label {
  display: none;
}

form.form-horizontal .layer-footer > [class*="col-"] {
  width: 100%;
  float: none;
  padding: 0;
  text-align: right;
}

form.form-horizontal .layer-footer .btn {
  min-width: 88px;
  margin-left: 8px;
}

/* 排期 / 提醒弹窗：层次与快捷操作 */
.task-follow-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.task-follow-item {
  padding: 14px 16px;
  border: 1px solid #ebeef5;
  border-radius: 8px;
  background: #fafbfc;
}
.task-follow-item-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.task-follow-item-hd .control-label {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: #303133;
}
.task-follow-tag {
  flex-shrink: 0;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  color: #909399;
  background: #f0f2f5;
}
.task-follow-tag.is-ok {
  color: var(--theme-primary, #409eff);
  background: var(--theme-primary-soft, #ecf5ff);
}
.task-follow-tag.is-warn {
  color: #e6a23c;
  background: #fdf6ec;
}
.task-follow-item .help-block.is-tip {
  margin: 6px 0 0;
}
.task-follow-quick {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}
.task-follow-quick.is-slot {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px dashed #ebeef5;
}
.task-follow-quick .quick-label {
  font-size: 12px;
  color: #909399;
  margin-right: 4px;
}
.task-follow-quick .btn-xs {
  padding: 3px 10px;
  border-radius: 12px;
}
.task-follow-pending {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #ebeef5;
}
.task-follow-pending > .control-label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #303133;
}
.task-weekday-pick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}
.task-weekday-pick .wd-opt {
  margin: 0;
  font-weight: normal;
  font-size: 13px;
  color: #606266;
  cursor: pointer;
}
.task-weekday-pick .wd-opt input {
  margin-right: 4px;
}

/* 需求评测弹窗 */
.task-review-dlg {
  padding: 8px 4px 0;
}
.task-review-dlg .task-dlg-summary {
  margin: 0 0 14px;
  font-size: 13px;
  color: #606266;
  line-height: 1.5;
}
.task-review-dlg .task-dlg-summary strong {
  color: #303133;
}
.task-review-dlg .control-label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #303133;
}
.task-review-dlg .control-label.is-required:before {
  content: "*";
  color: #f56c6c;
  margin-right: 4px;
}
.task-review-result {
  display: flex;
  gap: 20px;
  padding: 4px 0 8px;
}
.task-review-result .radio-inline {
  margin: 0;
  font-weight: normal;
}
.task-review-dlg .task-review-reason-wrap {
  margin-bottom: 0;
}

/* ========== 四象限看板：迭代栏 + 待入池 + 四象限锁视口 ========== */
/* 吃满 addtabs iframe，去掉外壳 .content 的 15px 顶白 */
html.task-board-embed,
body.task-board-embed {
  height: 100% !important;
  overflow: hidden !important;
}
body.task-board-embed #main,
body.task-board-embed .tab-content.tab-addtabs,
body.task-board-embed #content,
body.task-board-embed #content > .row,
body.task-board-embed #content > .row > [class*="col-"] {
  height: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}
body.task-board-embed .content-header {
  display: none !important;
}
body.task-board-embed .content {
  height: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}
.task-board-page {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 100%;
  min-height: 0;
  padding: 6px 8px;
  box-sizing: border-box;
  overflow: hidden;
  background: linear-gradient(180deg, #eef3fb 0%, #f3f5f7 120px);
}
.task-board-toolbar {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-bottom: 6px;
  padding: 6px 10px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.task-board-toolbar .sp {
  min-width: 160px;
  max-width: 220px;
}
.task-board-main {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  gap: 8px;
  align-items: stretch;
  overflow: hidden;
}
.task-board-right {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
}
.task-iter-rail {
  width: 228px;
  background: linear-gradient(180deg, #f0f7ff 0%, #fff 56px);
  border: 1px solid #d6e4ff;
}
.task-pool-wrap {
  width: 228px;
  background: linear-gradient(180deg, #f4fbf6 0%, #fff 56px);
  border: 1px dashed #95de64;
}
/* 左侧迭代 / 待入池：可收起成窄条 */
.task-board-side {
  flex-shrink: 0;
  height: 100%;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  transition: width 0.15s ease;
}
.task-board-side-hd {
  flex-shrink: 0;
  border-bottom: 1px solid #ebeef5;
  background: #fafafa;
}
.task-board-side-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin: 0;
  padding: 7px 10px;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: #303133;
  white-space: nowrap;
}
.task-board-side-toggle:hover {
  background: #f2f3f5;
}
.task-board-side-toggle .fa {
  margin-right: 6px;
  color: #909399;
  transition: transform 0.15s ease;
}
.task-board-side:not(.is-collapsed) .task-board-side-toggle .fa-angle-right {
  transform: rotate(90deg);
}
.task-board-side-count {
  font-weight: 400;
  color: #909399;
  font-size: 12px;
  margin-left: 6px;
}
.task-board-side-body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.task-board-side.is-collapsed {
  width: 42px !important;
}
.task-board-side.is-collapsed .task-board-side-body {
  display: none;
}
.task-board-side.is-collapsed .task-board-side-toggle {
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 6px;
  padding: 10px 4px;
  height: 100%;
  writing-mode: vertical-rl;
  text-orientation: mixed;
}
.task-board-side.is-collapsed .task-board-side-toggle .fa {
  margin: 0;
  transform: rotate(0deg) !important;
  writing-mode: horizontal-tb;
}
.task-board-side.is-collapsed .task-board-side-count {
  margin: 0;
  writing-mode: horizontal-tb;
}
.task-col-filter {
  flex-shrink: 0;
  padding: 4px 8px 6px;
}
.task-col-filter .sp,
.task-col-filter .sp_container {
  min-width: 0 !important;
  max-width: none !important;
  width: 100% !important;
}
.task-mini-tabs {
  flex-shrink: 0;
  display: flex;
  border-bottom: 1px solid #ebeef5;
}
.task-mini-tabs a {
  flex: 1;
  text-align: center;
  padding: 6px 2px;
  font-size: 12px;
  color: #606266;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  line-height: 1.3;
}
.task-mini-tabs a:hover {
  color: var(--theme-primary, #409eff);
}
.task-mini-tabs a.active {
  color: var(--theme-primary, #409eff);
  font-weight: 600;
  border-bottom-color: var(--theme-primary, #409eff);
}
.task-mini-tabs .badge {
  display: none;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  margin-left: 2px;
  border-radius: 8px;
  background: #ff4d4f;
  color: #fff;
  font-size: 11px;
  line-height: 16px;
  font-weight: 600;
  vertical-align: text-top;
}
.task-mini-tabs .badge:not([data-count="0"]) {
  display: inline-block;
}
.task-iter-list {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 6px;
}
.task-iter-item {
  position: relative;
  padding: 8px 8px 7px 12px;
  border-radius: 6px;
  border: 1px solid #ebeef5;
  background: #fff;
  cursor: pointer;
  margin-bottom: 6px;
}
.task-iter-item:hover {
  background: #f5f7fa;
  border-color: #dcdfe6;
}
.task-iter-item.st-1,
.task-iter-item.st-2,
.task-iter-item.st-3 {
  background: #fff;
  border-color: #ebeef5;
  color: inherit;
}
.task-iter-item.st-1:hover,
.task-iter-item.st-2:hover,
.task-iter-item.st-3:hover {
  background: #f5f7fa;
  border-color: #dcdfe6;
}
.task-iter-item.st-3 .name,
.task-iter-item.st-3 .dates {
  color: #909399;
}
/* 选中：中性底 + 淡蓝描边，状态只靠右上角标签区分 */
.task-iter-item.is-current {
  background: #fff;
  border-color: #1677ff;
  box-shadow: inset 0 0 0 1px #1677ff;
}
.task-iter-item.is-current.st-1,
.task-iter-item.is-current.st-2,
.task-iter-item.is-current.st-3 {
  background: #fff;
  border-color: #1677ff;
  box-shadow: inset 0 0 0 1px #1677ff;
}
.task-iter-item.is-over {
  border: 1px dashed #1677ff;
}
.task-iter-item .name {
  font-size: 12px;
  font-weight: 600;
  color: #303133;
  line-height: 1.4;
  max-height: 2.8em;
  overflow: hidden;
  padding-right: 36px;
}
.task-iter-item .dates {
  font-size: 11px;
  color: #909399;
  margin-top: 2px;
}
.task-iter-item .iter-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 5px;
}
.task-iter-item .iter-stats span {
  font-size: 11px;
  line-height: 16px;
  padding: 0 6px;
  border-radius: 8px;
  background: #f5f7fa;
  color: #606266;
}
.task-iter-item .iter-stats .is-task {
  color: #409eff;
  background: #ecf5ff;
}
.task-iter-item .iter-stats .is-req {
  color: #e6a23c;
  background: #fdf6ec;
}
.task-iter-item .iter-stats .is-done {
  color: #67c23a;
  background: #f0f9eb;
}
.task-iter-item .iter-stats .is-day {
  color: #722ed1;
  background: #f9f0ff;
}
.task-iter-item.st-3 .iter-stats .is-done,
.task-iter-item.st-3 .iter-stats .is-day {
  color: #909399;
  background: #f4f4f5;
}
.task-iter-item .iter-bar {
  margin-top: 6px;
  height: 4px;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 2px;
  overflow: hidden;
}
.task-iter-item .iter-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #67c23a, #409eff);
  border-radius: 2px;
}
.task-iter-item .st-tag {
  position: absolute;
  top: 6px;
  right: 6px;
  display: inline-block;
  margin: 0;
  font-size: 10px;
  line-height: 16px;
  padding: 0 6px;
  border-radius: 8px;
}
.task-iter-item.st-1 .st-tag { background: #fdf6ec; color: #e6a23c; }
.task-iter-item.st-2 .st-tag { background: #f0f9eb; color: #67c23a; }
.task-iter-item.st-3 .st-tag { background: #f4f4f5; color: #909399; }
.task-pool-wrap {
  width: 228px;
}
.task-pool-hd {
  flex-shrink: 0;
  padding: 6px 10px 4px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.task-pool-hd h4 {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
}
.task-pool-hd .sub {
  font-size: 12px;
  color: #909399;
}
.task-pool-closed-hint {
  display: none;
  margin: 0;
  padding: 4px 10px 6px;
  font-size: 12px;
  color: #e6a23c;
}
.task-board-page.is-readonly .task-pool-closed-hint {
  display: block;
}
.task-board-page.is-readonly .task-card .t-ops {
  display: none !important;
}
.task-pool-bd {
  flex: 1 1 auto;
  overflow-x: hidden;
  overflow-y: auto;
  min-height: 0;
  padding: 6px;
}
.task-pool-filter-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.task-pool-filter-row .selectpage,
.task-pool-filter-row .sp_container {
  flex: 1 1 auto;
  min-width: 0;
}
.task-pool-actions {
  display: flex;
  flex-shrink: 0;
  gap: 4px;
}
.task-pool-actions .btn {
  padding: 4px 8px;
  line-height: 1.2;
}
.task-card.is-pool {
  border-style: dashed;
  background: #fff;
}
.task-card.is-left {
  border-style: dashed;
  background: linear-gradient(180deg, #f8f9fb 0%, #fff 40px);
  opacity: 0.92;
}
.task-card.is-left::before {
  opacity: 0.45;
}
.task-card .t-left-tag {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  font-size: 10px;
  line-height: 1;
  font-weight: 700;
  color: #fff;
  background: #f56c6c;
  border-radius: 0 10px 0 6px;
  padding: 3px 7px 4px;
  letter-spacing: 0.02em;
}
.task-card.is-left .t-progress .t-bar i {
  background: #c8cdd6;
}
.task-card.is-pool.st-10,
.task-card.is-pool.st-20 {
  background: #fff;
  border-color: #dcdfe6;
}
.task-board-right .task-quad-grid {
  flex: 1;
  min-width: 0;
  min-height: 0;
}
.task-quad-current {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 8px 12px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #d6e4ff;
  box-shadow: 0 1px 3px rgba(22, 119, 255, 0.08);
}
.task-quad-current .qc-mark {
  font-size: 11px;
  line-height: 18px;
  padding: 0 8px;
  border-radius: 9px;
  color: #fff;
  background: #1677ff;
}
.task-quad-current strong {
  font-size: 14px;
  color: #303133;
}
.task-quad-current .qc-dates {
  font-size: 12px;
  color: #909399;
}
.task-quad-current .btn-close-iter,
.task-quad-current .btn-start-iter {
  flex-shrink: 0;
  padding: 1px 8px;
  line-height: 18px;
  font-size: 12px;
  border-radius: 4px;
}
.task-quad-current .btn-start-iter.disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.task-quad-current .qc-st {
  margin-left: auto;
  font-size: 11px;
  line-height: 18px;
  padding: 0 8px;
  border-radius: 9px;
  background: #f4f4f5;
  color: #909399;
}
.task-quad-current.st-1,
.task-quad-current.st-2,
.task-quad-current.st-3 {
  background: #fff;
  border-color: #d6e4ff;
}
.task-quad-current.st-1 .qc-st { background: #fdf6ec; color: #e6a23c; }
.task-quad-current.st-2 .qc-st { background: #f0f9eb; color: #67c23a; }
.task-quad-current.st-3 .qc-st { background: #f4f4f5; color: #909399; }
.task-quad-current.is-empty {
  background: #f5f7fa;
  border-color: #ebeef5;
  box-shadow: none;
}
.task-quad-current .qc-gain {
  font-size: 12px;
  font-weight: 600;
  color: #67c23a;
  background: #f0f9eb;
  border-radius: 9px;
  line-height: 18px;
  padding: 0 8px;
}
.task-quad-current.is-empty .qc-gain { display: none; }
.task-quad-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  overflow: hidden;
  flex: 1;
}
.task-quad-matrix {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
.task-quad-matrix.task-quad-section {
  gap: 0;
}
.task-quad-matrix.task-quad-section.is-collapsed {
  flex: 0 0 auto;
}
.task-quad-matrix-body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 8px 8px;
}
.task-quad-matrix-body .task-quad-row {
  flex: 1 1 0;
  min-height: 0;
}
.task-quad-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  min-height: 0;
  flex: 1;
  height: 100%;
}
.task-quad-section {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: #fff;
  border: 1px solid #ebeef5;
  border-radius: 8px;
  overflow: hidden;
}
.task-quad-section.is-collapsed {
  flex: 0 0 auto;
}
.task-quad-section-hd {
  flex-shrink: 0;
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid #ebeef5;
  background: #fafafa;
}
.task-quad-section-hd.is-done-hd {
  border-bottom: 0;
  background: transparent;
}
.task-quad-section-toggle,
.task-done-wrap .task-done-toggle {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  margin: 0;
  padding: 7px 12px;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: #303133;
}
.task-quad-section-toggle:hover,
.task-done-wrap .task-done-toggle:hover {
  background: #f2f3f5;
}
.task-quad-section-toggle .fa,
.task-done-wrap .task-done-toggle .fa {
  margin-right: 6px;
  color: #909399;
  transition: transform 0.15s ease;
}
.task-quad-section:not(.is-collapsed) .task-quad-section-toggle .fa-angle-right,
.task-done-wrap.is-open .task-done-toggle .fa-angle-right {
  transform: rotate(90deg);
}
.task-section-count,
.task-done-wrap .task-done-count {
  font-weight: 400;
  color: #909399;
  font-size: 12px;
  margin-left: 8px;
}
.task-section-hint {
  font-weight: 400;
  font-size: 12px;
  white-space: nowrap;
  margin-left: 12px;
}
.task-quad-fs-btn {
  flex: 0 0 40px;
  width: 40px;
  border: 0;
  border-left: 1px solid #ebeef5;
  background: transparent;
  color: #606266;
  cursor: pointer;
  font-size: 14px;
}
.task-quad-fs-btn:hover {
  background: #eef5ff;
  color: #1677ff;
}
.task-quad-matrix.is-fullscreen .task-quad-fs-btn .fa-expand:before,
.task-done-wrap.is-fullscreen .task-quad-fs-btn .fa-expand:before {
  content: "\f066";
}
.task-quad-section-body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 0 8px 8px;
}
.task-quad-section.is-collapsed .task-quad-section-body {
  display: none;
}
.task-quad-section .task-quad {
  min-height: 0;
  height: 100%;
}
/* 四象限一起全屏，便于象限间拖拽 */
.task-quad-matrix.is-fullscreen,
.task-done-wrap.is-fullscreen {
  position: fixed !important;
  left: 12px;
  right: 12px;
  top: 12px;
  bottom: 12px;
  z-index: 19891020;
  flex: none !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  border-radius: 10px;
  background: #f5f7fa;
  padding: 8px;
}
.task-quad-matrix.is-fullscreen {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.task-quad-matrix.is-fullscreen .task-quad-matrix-body {
  display: flex !important;
  flex: 1;
  min-height: 0;
  overflow: auto;
}
.task-done-wrap.is-fullscreen {
  display: flex;
  flex-direction: column;
  background: #fff;
  padding: 0;
}
.task-done-wrap.is-fullscreen .task-done-body {
  display: block !important;
  flex: 1;
  max-height: none !important;
  overflow: auto;
}
.task-done-wrap.is-fullscreen .task-quad-section-hd.is-done-hd {
  border-bottom: 1px solid #d9f7be;
}
body.task-board-fs-lock {
  overflow: hidden;
}
.task-quad {
  background: #fff;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  border: 1px solid #ebeef5;
  border-top: 3px solid #c0c4cc;
}
.task-quad[data-q="1"] {
  border-top-color: #f56c6c;
  background: linear-gradient(180deg, #fff1f0 0%, #fff 42px);
}
.task-quad[data-q="2"] {
  border-top-color: #409eff;
  background: linear-gradient(180deg, #ecf5ff 0%, #fff 42px);
}
.task-quad[data-q="3"] {
  border-top-color: #e6a23c;
  background: linear-gradient(180deg, #fdf6ec 0%, #fff 42px);
}
.task-quad[data-q="4"] {
  border-top-color: #909399;
  background: linear-gradient(180deg, #f4f4f5 0%, #fff 42px);
}
.task-quad-hd {
  flex-shrink: 0;
  padding: 6px 10px 2px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.task-quad-hd h4 {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
}
.task-quad-hd .quad-count {
  display: inline-block;
  min-width: 18px;
  margin-left: 6px;
  padding: 0 6px;
  font-size: 12px;
  font-weight: 600;
  line-height: 18px;
  color: #fff;
  background: var(--theme-primary, #409eff);
  border-radius: 9px;
  vertical-align: text-top;
}
.task-quad[data-q="1"] .quad-count { background: #f56c6c; }
.task-quad[data-q="2"] .quad-count { background: #409eff; }
.task-quad[data-q="3"] .quad-count { background: #e6a23c; }
.task-quad[data-q="4"] .quad-count { background: #909399; }
.task-quad-hd .sub {
  font-size: 11px;
  color: #909399;
}
.task-quad-bd {
  flex: 1 1 auto;
  padding: 4px 6px 6px;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
}
/* 象限内任务：够宽时一行两个，偏窄自动回单列 */
.task-quad .task-quad-bd {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(228px, 1fr));
  gap: 8px;
  align-content: start;
  align-items: stretch;
}
.task-quad .task-quad-bd > .task-card {
  margin-bottom: 0;
  min-width: 0;
  min-height: 108px;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.task-quad .task-quad-bd > .task-empty {
  grid-column: 1 / -1;
}
.task-card {
  position: relative;
  background: #fff;
  border: 1px solid #e4e7ed;
  border-radius: 10px;
  padding: 0;
  margin-bottom: 8px;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
  min-height: 108px;
}
.task-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #909399;
  border-radius: 10px 0 0 10px;
}
/* 左边条：按项目色槽 */
.task-card.proj-0::before { background: #909399; }
.task-card.proj-1::before { background: #1677ff; }
.task-card.proj-2::before { background: #13c2c2; }
.task-card.proj-3::before { background: #52c41a; }
.task-card.proj-4::before { background: #722ed1; }
.task-card.proj-5::before { background: #eb2f96; }
.task-card.proj-6::before { background: #fa8c16; }
.task-card.proj-7::before { background: #2f54eb; }
.task-card.is-overdue {
  background: linear-gradient(180deg, #fff9f9 0%, #fff 48px);
  border-color: #fcd9d9;
}
.task-card.is-done {
  background: linear-gradient(180deg, #f8fff3 0%, #fff 48px);
  border-color: #d3f0c0;
}
.task-card:hover {
  border-color: #c6d8f5;
  box-shadow: 0 6px 18px rgba(64, 158, 255, 0.12);
  transform: translateY(-1px);
}
.task-card .t-body {
  min-width: 0;
  min-height: 0;
  flex: 1 1 auto;
  padding: 7px 8px 4px 10px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.task-card .t-main {
  flex: 0 0 auto;
  min-height: 0;
  overflow: hidden;
}
.task-card .t-bottom {
  flex: 0 0 auto;
  margin-top: auto;
  padding-top: 0;
}
.task-card .t-bottom .t-req {
  margin-bottom: 2px;
}
.task-card .t-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  height: 16px;
  min-height: 16px;
  margin-bottom: 3px;
  min-width: 0;
  flex-shrink: 0;
}
.task-card .t-proj {
  flex: 1 1 0%;
  min-width: 0;
  font-size: 11px;
  font-weight: 700;
  color: #606266;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.task-card.proj-1 .t-proj { color: #1677ff; }
.task-card.proj-2 .t-proj { color: #08979c; }
.task-card.proj-3 .t-proj { color: #389e0d; }
.task-card.proj-4 .t-proj { color: #722ed1; }
.task-card.proj-5 .t-proj { color: #c41d7f; }
.task-card.proj-6 .t-proj { color: #d46b08; }
.task-card.proj-7 .t-proj { color: #2f54eb; }
.task-card .t-proj.is-muted {
  color: #a8abb2;
  font-weight: 600;
}
.task-card .t-top-right {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
  max-width: none;
}
.task-card .t-top-right .t-dept {
  flex: 0 0 auto;
  min-width: 0;
  max-width: none;
  text-align: right;
  margin-bottom: 0;
  overflow: visible;
  text-overflow: clip;
}
.task-card .t-top-right .t-metrics {
  flex: 0 0 auto;
}
.task-card .t-metrics {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
}
.task-card .t-metric {
  font-size: 10px;
  line-height: 1;
  color: #909399;
  white-space: nowrap;
}
.task-card .t-metric.t-pri-m {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-weight: 700;
  color: #606266;
}
.task-card .t-metric.t-pri-m {
  font-weight: 700;
}
/* 四象限内：象限标题已表达紧急程度，卡片顶栏不再重复 */
.task-quad-matrix-body .task-card .t-pri-m,
#q-1 .task-card .t-pri-m,
#q-2 .task-card .t-pri-m,
#q-3 .task-card .t-pri-m,
#q-4 .task-card .t-pri-m {
  display: none !important;
}
/* 已完成、待入池：仍展示四象限标签 */
#q-done .task-card .t-pri-m,
#q-pool .task-card .t-pri-m {
  display: inline-flex;
}
.task-card.pri-1 .t-metric.t-pri-m { color: #f56c6c; }
.task-card.pri-2 .t-metric.t-pri-m { color: #e6a23c; }
.task-card.pri-3 .t-metric.t-pri-m { color: #409eff; }
.task-card .t-pri-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c0c4cc;
  flex-shrink: 0;
}
.task-card.pri-1 .t-pri-dot { background: #f56c6c; }
.task-card.pri-2 .t-pri-dot { background: #e6a23c; }
.task-card.pri-3 .t-pri-dot { background: #409eff; }
.task-card.pri-4 .t-pri-dot { background: #909399; }
.task-card .t-metric.t-est-m {
  font-weight: 700;
  color: #722ed1;
}
.task-card .t-metric.t-over-m {
  font-weight: 700;
  color: #f56c6c;
}
.task-card .t-metric.t-gain-m {
  font-weight: 700;
  color: #67c23a;
}
.task-quad .task-card .t-title {
  font-size: 12px;
  line-height: 16px;
  height: 32px;
  max-height: 32px;
}
.task-card .t-title {
  font-weight: 600;
  font-size: 13px;
  color: #1f2d3d;
  line-height: 16px;
  height: 32px;
  max-height: 32px;
  margin-bottom: 3px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
  flex-shrink: 0;
}
.task-card .t-dept {
  font-size: 10px;
  color: #b1b5bd;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 12px;
}
.task-card .t-dept:empty {
  visibility: hidden;
}
.task-card .t-req {
  font-size: 10px;
  color: #b1b5bd;
  line-height: 14px;
  height: 14px;
  min-height: 14px;
  margin-bottom: 0;
  padding-left: 6px;
  border-left: 2px solid #ebeef5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 0;
}
.task-card .t-req.is-daily {
  color: #d0d3d9;
  border-left-color: #f0f2f5;
}
.task-card .t-progress {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 0;
  height: 20px;
  min-height: 20px;
  padding: 0;
  flex-shrink: 0;
}
.task-card .t-track {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
}
.task-card .t-pct {
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 700;
  color: #909399;
  min-width: 30px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.task-card.has-ops:hover .t-pct {
  color: #606266;
}
.task-card.is-done .t-pct {
  color: #67c23a;
}
.task-card .t-foot {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 14px;
  padding-top: 1px;
  padding-bottom: 0;
  border-top: 0;
}
.task-card .t-user {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}
.task-card .t-avatar {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #eef2f8;
  color: #606266;
  font-size: 9px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}
.task-card .t-owner {
  font-size: 11px;
  font-weight: 600;
  color: #303133;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.task-card .t-code {
  margin-left: auto;
  font-size: 10px;
  color: #c0c4cc;
  white-space: nowrap;
}
.task-card .t-due {
  flex: 0 0 auto;
  font-size: 10px;
  color: #b1b5bd;
  white-space: nowrap;
  transition: opacity 0.15s ease;
}
.task-card .t-due.is-over {
  color: #f56c6c;
  font-weight: 700;
}
.task-card .t-actions {
  flex: 0 0 64px;
  width: 64px;
  height: 20px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.task-card .t-owner-corner {
  font-size: 10px;
  font-weight: 600;
  color: #b1b5bd;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity 0.15s ease, visibility 0.15s ease;
}
.task-card .t-actions .t-owner-corner {
  position: absolute;
  right: 0;
  max-width: 64px;
  text-align: right;
}
.task-card .t-owner-corner.t-owner-solo {
  flex: 0 0 auto;
  margin-left: auto;
  max-width: 72px;
  text-align: right;
}
.task-card.has-ops:hover .t-actions .t-owner-corner {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.task-card .t-actions .t-ops {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease, visibility 0.15s ease;
}
.task-card.has-ops:hover .t-actions .t-ops {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.task-board-page.is-readonly .task-card:hover .t-actions .t-owner-corner {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.task-card .t-ops {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.task-card .t-bar {
  flex: 1 1 auto;
  min-width: 0;
  height: 5px;
  background: #edf0f5;
  border-radius: 999px;
  overflow: hidden;
}
.task-card .t-bar i {
  display: block;
  height: 100%;
  background: #b8c0cc;
  border-radius: 999px;
  transition: width 0.2s ease;
}
.task-card.proj-1 .t-bar i { background: linear-gradient(90deg, #91caff, #1677ff); }
.task-card.proj-2 .t-bar i { background: linear-gradient(90deg, #5cdbd3, #13c2c2); }
.task-card.proj-3 .t-bar i { background: linear-gradient(90deg, #95de64, #52c41a); }
.task-card.proj-4 .t-bar i { background: linear-gradient(90deg, #d3adf7, #722ed1); }
.task-card.proj-5 .t-bar i { background: linear-gradient(90deg, #ffadd2, #eb2f96); }
.task-card.proj-6 .t-bar i { background: linear-gradient(90deg, #ffc069, #fa8c16); }
.task-card.proj-7 .t-bar i { background: linear-gradient(90deg, #adc6ff, #2f54eb); }
.task-card.is-done .t-bar i { background: linear-gradient(90deg, #95de64, #52c41a); }
.task-card .t-ops a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  padding: 0;
  line-height: 1;
  font-size: 11px;
  color: #409eff;
  border: 1px solid #dbeafe;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 5px;
  text-decoration: none;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06);
}
.task-card .t-ops a:hover {
  color: #fff;
  background: var(--theme-primary, #409eff);
  border-color: var(--theme-primary, #409eff);
}
.task-card .t-ops a.btn-estimate {
  color: #722ed1;
  border-color: #efdbff;
}
.task-card .t-ops a.btn-estimate:hover {
  color: #fff;
  background: #722ed1;
  border-color: #722ed1;
}
.task-card .t-ops a.btn-complete {
  color: #67c23a;
  border-color: #d9f0cc;
}
.task-card .t-ops a.btn-complete:hover {
  color: #fff;
  background: #67c23a;
  border-color: #67c23a;
}
/* 已完成：与重要/不重要同一列手风琴，展开时吃满剩余高度 */
.task-done-wrap {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: linear-gradient(90deg, #f6ffed 0%, #fff 40%);
  border-radius: 8px;
  padding: 0;
  border: 1px solid #b7eb8f;
  overflow: hidden;
}
.task-done-wrap.is-open {
  flex: 1 1 0;
}
.task-done-wrap .task-done-body {
  display: none;
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 8px 10px 10px;
  border-top: 1px solid #d9f7be;
}
.task-done-wrap.is-open .task-done-body {
  display: block;
}
.task-done-wrap.is-open .task-quad-section-hd.is-done-hd {
  border-bottom: 1px solid #d9f7be;
}
.task-done-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 8px;
  min-height: 0;
  padding: 0;
  overflow: visible;
  align-items: stretch;
}
.task-done-grid .task-card {
  margin-bottom: 0;
  min-height: 108px;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.task-empty {
  color: #c0c4cc;
  font-size: 12px;
  text-align: center;
  padding: 24px 8px;
}

/* 进度快捷弹窗 */
.task-progress-dlg {
  padding: 14px 18px 6px;
}
.task-progress-dlg .task-progress-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.task-progress-dlg .task-progress-quick .btn {
  flex: 1 1 56px;
  min-width: 56px;
  padding: 8px 0;
  font-weight: 600;
}
.task-progress-dlg .task-progress-quick .btn.is-current {
  border-color: var(--theme-primary, #409eff);
  color: var(--theme-primary, #409eff);
  background: var(--theme-primary-soft, #ecf5ff);
}
.task-progress-dlg .task-progress-manual label {
  display: block;
  font-size: 12px;
  color: #909399;
  margin-bottom: 6px;
  font-weight: 400;
}
.task-progress-dlg .task-progress-hint {
  margin-top: 8px;
  font-size: 12px;
  color: #c0c4cc;
}
.task-estimate-dlg .task-estimate-group {
  margin-bottom: 10px;
}
.task-estimate-dlg .task-estimate-group label {
  display: block;
  font-size: 12px;
  color: #909399;
  margin-bottom: 6px;
  font-weight: 400;
}
.task-estimate-dlg .task-estimate-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.task-estimate-dlg .task-estimate-quick .btn {
  min-width: 52px;
  padding: 6px 8px;
  font-weight: 600;
}
.task-estimate-dlg .task-estimate-quick .btn.is-current {
  border-color: #722ed1;
  color: #722ed1;
  background: #f9f0ff;
}
.task-progress-form-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.task-progress-form-quick .btn {
  padding: 2px 10px;
  font-size: 12px;
}

/* ========== 我的计划月历 ========== */
.task-plan-page {
  padding: 12px 16px 24px;
  background: #f3f5f7;
  min-height: calc(100vh - 120px);
}
.task-plan-banner {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--theme-primary-soft, #ecf5ff) 0%, #fff 70%);
  border: 1px solid rgba(64, 158, 255, 0.18);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.task-plan-banner > i {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  line-height: 24px;
  text-align: center;
  border-radius: 50%;
  background: var(--theme-primary, #409eff);
  color: #fff;
  font-size: 12px;
}
.task-plan-banner .bd {
  flex: 1;
  min-width: 0;
}
.task-plan-banner .bd p {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: #606266;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.task-plan-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 12px 14px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.task-plan-month-label {
  min-width: 110px;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  color: #303133;
}
.task-plan-body {
  display: flex;
  gap: 12px;
  align-items: stretch;
}
.task-plan-unscheduled {
  width: 280px;
  flex-shrink: 0;
  background: #fff;
  border-radius: 8px;
  padding: 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.task-plan-unscheduled h5 {
  margin: 0 0 4px;
  font-weight: 600;
  font-size: 14px;
  color: #303133;
}
.task-plan-unscheduled .hint {
  margin: 0 0 10px;
  font-size: 12px;
  color: #909399;
  line-height: 1.5;
}
.task-plan-pool {
  min-height: 200px;
  max-height: 70vh;
  overflow: auto;
  padding: 8px;
  border-radius: 6px;
  background: #fafafa;
  border: 1px dashed #dcdfe6;
  transition: background 0.15s ease, border-color 0.15s ease, outline 0.15s ease;
}
.task-plan-pool.is-over {
  outline: 2px dashed var(--theme-primary, #409eff);
  background: var(--theme-primary-soft, #ecf5ff);
  border-color: var(--theme-primary, #409eff);
}
.task-plan-pool:empty:before {
  content: "暂无待排期任务";
  display: block;
  padding: 24px 8px;
  text-align: center;
  color: #c0c4cc;
  font-size: 12px;
}
.task-plan-calendar {
  flex: 1;
  background: #fff;
  border-radius: 8px;
  padding: 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  min-width: 0;
}
.task-plan-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 12px;
  color: #909399;
  margin-bottom: 8px;
  font-weight: 500;
}
.task-plan-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  min-height: 480px;
}
.task-plan-cell {
  min-height: 100px;
  border: 1px solid #ebeef5;
  border-radius: 6px;
  padding: 6px;
  background: #fafafa;
  transition: background 0.15s ease, border-color 0.15s ease, outline 0.15s ease;
}
.task-plan-cell.is-empty {
  background: transparent;
  border-color: transparent;
}
.task-plan-cell.is-today {
  border-color: var(--theme-primary, #409eff);
  background: var(--theme-primary-soft, #ecf5ff);
}
.task-plan-cell.is-over {
  outline: 2px dashed var(--theme-primary, #409eff);
  background: #fff;
}
.task-plan-daynum {
  font-size: 12px;
  color: #606266;
  margin-bottom: 4px;
  font-weight: 600;
}
.task-plan-chip {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  padding: 5px 7px;
  margin-bottom: 4px;
  background: #fff;
  border-radius: 4px;
  border-left: 3px solid #909399;
  cursor: grab;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.task-plan-chip-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.task-plan-chip-tag {
  flex-shrink: 0;
  font-size: 10px;
  line-height: 1.2;
  padding: 1px 4px;
  border-radius: 3px;
  color: var(--theme-primary, #409eff);
  background: var(--theme-primary-soft, #ecf5ff);
  white-space: nowrap;
}
.task-plan-chip:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.task-plan-chip:active {
  cursor: grabbing;
}
.task-plan-legend {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 10px 14px;
  background: #fff;
  border-radius: 8px;
}
.task-plan-legend-item {
  font-size: 12px;
  color: #606266;
}
.task-plan-legend-item i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  margin-right: 4px;
  vertical-align: middle;
}

@media (max-width: 992px) {
  .task-plan-body {
    flex-direction: column;
  }
  .task-plan-unscheduled {
    width: 100%;
  }
  .task-plan-pool {
    max-height: 160px;
  }
}

/* ========== 工作台 ========== */
.task-stat-page {
  padding: 12px 16px 24px;
  background: #f3f5f7;
  min-height: calc(100vh - 120px);
}
.task-stat-shortcuts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding: 10px 14px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.task-stat-shortcuts .sc-label {
  font-size: 12px;
  color: #909399;
  margin-right: 4px;
}
.task-stat-shortcuts .btn {
  border-radius: 6px;
  font-weight: 600;
}
.task-stat-shortcuts .btn .fa {
  margin-right: 4px;
  color: #409eff;
}
.task-stat-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding: 12px 14px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.task-stat-card {
  background: #fff;
  border-radius: 8px;
  padding: 18px 16px;
  margin-bottom: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  border: 1px solid #ebeef5;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.task-stat-card:hover {
  border-color: #d9ecff;
  box-shadow: 0 4px 12px rgba(64, 158, 255, 0.08);
}
.task-stat-card .num {
  font-size: 28px;
  font-weight: 600;
  color: #303133;
  line-height: 1.2;
}
.task-stat-card .label {
  font-size: 13px;
  color: #909399;
  margin-top: 6px;
}
.task-stat-card.is-gain .num {
  color: #67c23a;
}
.task-stat-panel {
  background: #fff;
  border-radius: 8px;
  padding: 14px 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  border: 1px solid #ebeef5;
}
.task-stat-panel h4 {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 600;
  color: #303133;
}

/* 拆解草稿：卡片列表 */
.task-draft-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.task-draft-card {
  border: 1px solid #ebeef5;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}
.task-draft-card .card-hd {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #f7f9fb;
  border-bottom: 1px solid #eef2f5;
}
.task-draft-card .card-idx {
  flex-shrink: 0;
  font-size: 12px;
  color: #909399;
  min-width: 28px;
}
.task-draft-card .card-idx em {
  font-style: normal;
  font-weight: 600;
  color: #606266;
}
.task-draft-card .card-hd .row-title {
  flex: 1;
  min-width: 0;
}
.task-draft-card .card-bd {
  padding: 12px 14px 6px;
}
.task-draft-card .card-desc-group {
  margin-bottom: 10px;
}
.task-draft-card .card-desc-group .control-label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  color: #606266;
  font-weight: 500;
}
.task-exist-task-list {
  padding: 0 8px;
}
.task-exist-task-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  padding: 8px 10px;
  border-radius: 6px;
  background: #f7f9fb;
  border: 1px solid #eef2f5;
  font-size: 13px;
  cursor: pointer;
}

/* 安排弹窗：任务草稿表 */
.task-arrange-page .task-arrange-table {
  background: #fff;
  margin-bottom: 0;
}
.task-arrange-page .task-arrange-table th {
  background: #f5f7fa;
  font-size: 12px;
  white-space: nowrap;
}
.task-arrange-page .task-arrange-table td {
  vertical-align: middle;
}
.task-arrange-page .task-arrange-table .form-control {
  height: 30px;
  padding: 4px 8px;
}

/* 列表页工具栏轻量增强（笑脸任务模块） */
.panel-intro .toolbar .btn {
  margin-right: 4px;
}

/* ========== 任务详情弹窗 ========== */
.task-detail-page {
  padding: 16px 18px 24px;
  background: #f5f7fa;
  min-height: 100%;
}
.task-detail-hero {
  position: relative;
  padding: 16px 18px 14px 20px;
  margin-bottom: 12px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #ebeef5;
  overflow: hidden;
}
.task-detail-hero::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: #409eff;
}
.task-detail-hero.pri-1::before { background: #f56c6c; }
.task-detail-hero.pri-2::before { background: #e6a23c; }
.task-detail-hero.pri-3::before { background: #409eff; }
.task-detail-hero.pri-4::before { background: #909399; }
.task-detail-hero .hero-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 6px;
}
.task-detail-hero .hero-code {
  font-size: 12px;
  font-weight: 700;
  color: #909399;
  letter-spacing: 0.04em;
}
.task-detail-hero .hero-iter {
  font-size: 12px;
  color: #409eff;
  background: #ecf5ff;
  border-radius: 10px;
  padding: 1px 8px;
}
.task-detail-hero h2 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  color: #303133;
}
.task-detail-hero .hero-badges,
.task-detail-req .req-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.task-detail-page .pill {
  display: inline-block;
  font-size: 12px;
  line-height: 20px;
  padding: 0 8px;
  border-radius: 10px;
  background: #f4f4f5;
  color: #606266;
}
.task-detail-page .pill.pri { background: #ecf5ff; color: #409eff; }
.task-detail-page .pill.overdue { background: #fef0f0; color: #f56c6c; }
.task-detail-page .pill.st-10 { background: #f4f4f5; color: #909399; }
.task-detail-page .pill.st-20 { background: #ecf5ff; color: #409eff; }
.task-detail-page .pill.st-30 { background: #f0f9eb; color: #67c23a; }
.task-detail-page .pill.st-40 { background: #f0f9eb; color: #67c23a; }
.task-detail-page .pill.st-90 { background: #fef0f0; color: #f56c6c; }
.task-detail-hero .hero-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}
.task-detail-hero .hero-progress .bar {
  flex: 1;
  height: 8px;
  background: #ebeef5;
  border-radius: 4px;
  overflow: hidden;
}
.task-detail-hero .hero-progress .bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #67c23a, #409eff);
  border-radius: 4px;
}
.task-detail-hero .hero-progress em {
  font-style: normal;
  font-weight: 700;
  color: #303133;
  min-width: 40px;
  text-align: right;
}
.task-detail-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}
.task-detail-facts .fact {
  background: #fff;
  border: 1px solid #ebeef5;
  border-radius: 8px;
  padding: 10px 12px;
}
.task-detail-facts .fact label {
  display: block;
  margin: 0 0 4px;
  font-size: 12px;
  color: #909399;
  font-weight: 400;
}
.task-detail-facts .fact strong {
  font-size: 13px;
  color: #303133;
  font-weight: 600;
  word-break: break-all;
}
.task-detail-facts .fact strong.is-over {
  color: #f56c6c;
}
.task-detail-block {
  background: #fff;
  border: 1px solid #ebeef5;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 12px;
}
.task-detail-block h3 {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
  color: #303133;
}
.task-detail-block h3 .fa {
  margin-right: 6px;
  color: #409eff;
}
.task-detail-block.is-req h3 .fa {
  color: #e6a23c;
}
.task-detail-block.is-pri h3 .fa {
  color: #f56c6c;
}
.task-detail-block.is-est h3 .fa {
  color: #722ed1;
}
.task-detail-block.is-follow h3 .fa {
  color: var(--theme-primary, var(--nova-primary, #409eff));
}
.task-detail-block-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.task-detail-block-hd h3 {
  margin: 0;
  flex: 1;
}
.task-detail-block-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.task-detail-follow-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
  margin-bottom: 10px;
}
.task-detail-follow-grid .follow-item label {
  display: block;
  font-size: 12px;
  color: #909399;
  margin-bottom: 4px;
}
.task-detail-follow-grid .follow-item strong {
  font-size: 13px;
  color: #303133;
  font-weight: 600;
  word-break: break-all;
}
.task-detail-follow-grid .follow-item strong.is-over {
  color: #f56c6c;
}
.task-detail-remind-list label {
  display: block;
  font-size: 12px;
  color: #909399;
  margin-bottom: 6px;
}
.task-detail-block .task-remind-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.task-detail-block .task-remind-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  margin-bottom: 6px;
  border-radius: 6px;
  background: #f5f7fa;
  font-size: 12px;
  color: #606266;
}
.task-detail-block .task-remind-list li i {
  color: var(--theme-primary, var(--nova-primary, #409eff));
}
.task-detail-quad-hint {
  margin: -4px 0 10px;
  font-size: 12px;
  color: #909399;
}
.task-est-pick {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.task-est-pick .est-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.task-est-pick .est-row > span {
  width: 52px;
  flex-shrink: 0;
  font-size: 12px;
  color: #909399;
}
.task-est-pick .est-opt {
  min-width: 52px;
  padding: 8px 10px;
  border: 1px solid #ebeef5;
  border-radius: 8px;
  background: #fafafa;
  font-size: 13px;
  font-weight: 600;
  color: #606266;
  cursor: pointer;
}
.task-est-pick .est-opt:hover {
  border-color: #d3adf7;
  background: #fff;
  color: #722ed1;
}
.task-est-pick .est-opt.is-on {
  border-color: #722ed1;
  background: #f9f0ff;
  color: #722ed1;
}
.task-pri-pick {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.task-pri-pick .pri-opt {
  display: block;
  width: 100%;
  padding: 10px 8px;
  border: 1px solid #ebeef5;
  border-radius: 8px;
  background: #fafafa;
  font-size: 13px;
  font-weight: 600;
  color: #606266;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.task-pri-pick .pri-opt:hover {
  border-color: #c0c4cc;
  background: #fff;
}
.task-pri-pick .pri-opt.p-1.is-on {
  color: #f56c6c;
  background: #fef0f0;
  border-color: #f56c6c;
}
.task-pri-pick .pri-opt.p-2.is-on {
  color: #e6a23c;
  background: #fdf6ec;
  border-color: #e6a23c;
}
.task-pri-pick .pri-opt.p-3.is-on {
  color: #409eff;
  background: #ecf5ff;
  border-color: #409eff;
}
.task-pri-pick .pri-opt.p-4.is-on {
  color: #606266;
  background: #f4f4f5;
  border-color: #909399;
}
@media (max-width: 520px) {
  .task-pri-pick {
    grid-template-columns: 1fr 1fr;
  }
}
.task-detail-body {
  font-size: 13px;
  line-height: 1.7;
  color: #606266;
  word-break: break-word;
}
/* 富文本说明（Summernote 输出） */
.task-detail-body.task-rich-content {
  padding: 10px 12px;
  background: #fafbfc;
  border: 1px solid #eef2f5;
  border-radius: 8px;
}
.task-detail-body.task-rich-content p {
  margin: 0 0 10px;
}
.task-detail-body.task-rich-content p:last-child {
  margin-bottom: 0;
}
.task-detail-body.task-rich-content img {
  display: block;
  max-width: 100%;
  height: auto !important;
  margin: 8px 0;
  border-radius: 6px;
  border: 1px solid #ebeef5;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}
.task-detail-body.task-rich-content ul,
.task-detail-body.task-rich-content ol {
  margin: 0 0 10px 1.4em;
  padding: 0;
}
.task-detail-body.task-rich-content table {
  width: 100%;
  max-width: 100%;
  margin: 8px 0;
  border-collapse: collapse;
}
.task-detail-body.task-rich-content table td,
.task-detail-body.task-rich-content table th {
  border: 1px solid #ebeef5;
  padding: 6px 8px;
}
.task-detail-remark {
  margin: 10px 0 0;
  font-size: 12px;
  color: #909399;
}
.task-detail-complete-note {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f0f9eb;
  border: 1px solid #e1f3d8;
}
.task-detail-complete-note label {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #67c23a;
}
.task-detail-complete-note p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: #606266;
  white-space: pre-wrap;
}
.task-complete-dlg {
  padding: 14px 18px 6px;
}
.task-dlg-summary {
  margin: 0 0 14px;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.6;
  color: #606266;
  background: var(--theme-primary-soft, #f0f9ff);
  border-radius: 8px;
}
.task-dlg-summary strong {
  color: #303133;
}
.task-complete-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
}
.task-actual-est-dlg,
.task-estimate-dlg {
  padding: 14px 18px 6px;
}
.task-complete-dlg .form-group {
  margin-bottom: 14px;
}
.task-complete-dlg .control-label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #606266;
}
.task-complete-dlg .hint {
  margin: 6px 0 0;
  font-size: 12px;
  color: #909399;
  line-height: 1.5;
}
.task-complete-dlg textarea {
  resize: vertical;
}
.task-detail-req-empty {
  padding: 16px;
  text-align: center;
  color: #c0c4cc;
  background: #fafafa;
  border-radius: 8px;
}
.task-detail-req .req-top {
  justify-content: space-between;
  margin-bottom: 8px;
}
.task-detail-req .req-code {
  font-weight: 700;
  color: #e6a23c;
  margin-right: 6px;
}
.task-detail-req h4 {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
  color: #303133;
}
.task-detail-req .req-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 12px;
  color: #909399;
  margin-bottom: 10px;
}
.task-detail-req .req-desc {
  padding: 10px 12px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
}
@media (max-width: 768px) {
  .task-detail-facts {
    grid-template-columns: 1fr 1fr;
  }
}

/* 迭代周总结抽屉 */
.task-week-summary-page {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 480px;
  padding: 12px 14px 14px;
  box-sizing: border-box;
  background: #f0f2f5;
}
.task-week-summary-toolbar {
  flex-shrink: 0;
  margin-bottom: 10px;
  padding: 12px 14px;
  background: #fff;
  border-radius: 10px;
  border: 1px solid #e4e7ed;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.task-week-summary-toolbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.task-week-summary-toolbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 auto;
  min-width: 0;
  flex-wrap: wrap;
}
.ws-week-badge,
.ws-iteration-select {
  display: inline-flex;
  align-items: center;
  min-width: 220px;
  max-width: 320px;
  height: 30px;
  padding: 4px 10px;
  font-size: 13px;
  font-weight: 600;
  color: #1677ff;
  background: #e6f4ff;
  border: 1px solid #91caff;
  border-radius: 6px;
  white-space: nowrap;
}
.ws-iteration-select {
  display: inline-block;
  font-weight: 500;
  line-height: 1.4;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #1677ff 50%), linear-gradient(135deg, #1677ff 50%, transparent 50%);
  background-position: calc(100% - 14px) calc(50% - 2px), calc(100% - 9px) calc(50% - 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 26px;
}
.ws-iter-field {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.ws-dept-field {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.ws-dept-label {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: #606266;
  white-space: nowrap;
}
.task-week-summary-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.task-week-summary-toolbar-sub {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.4;
}
.task-week-summary-actions .ws-dept-wrap,
.ws-dept-wrap {
  min-width: 140px;
  max-width: 220px;
}
.ws-dept-wrap .sp_container,
.ws-dept-wrap .form-control {
  width: 100% !important;
}
.task-week-summary-meta strong {
  font-size: 15px;
  color: #303133;
}
.task-week-summary-meta .text-muted {
  display: block;
  font-size: 12px;
  margin-top: 4px;
  font-weight: 400;
}
.task-week-summary-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.task-week-summary-actions .ws-dept-wrap {
  min-width: 160px;
  max-width: 200px;
}
.task-week-summary-prompt {
  flex-shrink: 0;
  margin-bottom: 10px;
  background: #fff;
  border: 1px solid #ebeef5;
  border-radius: 8px;
  overflow: hidden;
}
.task-week-summary-prompt-toggle {
  display: block;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  color: #303133;
  text-decoration: none;
}
.task-week-summary-prompt-toggle .fa {
  margin-right: 6px;
  color: #909399;
  transition: transform 0.15s ease;
}
.task-week-summary-prompt.is-open .task-week-summary-prompt-toggle .fa-angle-right {
  transform: rotate(90deg);
}
.task-week-summary-prompt-body {
  display: none;
  padding: 0 12px 12px;
}
.task-week-summary-prompt.is-open .task-week-summary-prompt-body {
  display: block;
}
.task-week-summary-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid #ebeef5;
  border-radius: 8px;
}
.task-week-summary-loading,
.task-week-summary-empty {
  text-align: center;
  padding: 48px 16px;
  color: #909399;
}
.task-md-render h1,
.task-md-render h2,
.task-md-render h3,
.task-md-render h4 {
  margin: 18px 0 10px;
  font-weight: 700;
  color: #303133;
  line-height: 1.4;
}
.task-md-render h2 {
  font-size: 16px;
  padding-bottom: 6px;
  border-bottom: 1px solid #ebeef5;
}
.task-md-render h2:first-child {
  margin-top: 0;
}
.task-md-render h3 {
  font-size: 14px;
  color: #1677ff;
}
.task-md-render p {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.7;
  color: #606266;
}
.task-md-render .task-md-list {
  margin: 0 0 12px;
  padding-left: 20px;
}
.task-md-render .task-md-list li {
  margin-bottom: 6px;
  font-size: 13px;
  line-height: 1.6;
  color: #303133;
}
.task-md-render .task-md-quote {
  margin: 0 0 12px;
  padding: 8px 12px;
  border-left: 3px solid #e6a23c;
  background: #fdf6ec;
  color: #606266;
  font-size: 12px;
}
.task-md-render code {
  padding: 1px 4px;
  background: #f5f7fa;
  border-radius: 3px;
  font-size: 12px;
}
