@font-face { font-family: iconfont; src: url("/static/fonts/iconfont.46bbeda.woff2") format("woff2"); font-display: block; }
.task-shell .iconfont { font-family: iconfont !important; font-style: normal; font-weight: 400; line-height: 1; -webkit-font-smoothing: antialiased; }
.task-shell .icon-list::before { content: "\E629"; }
.task-shell .icon-sync::before { content: "\E647"; }
.task-shell .icon-cloud-download::before { content: "\E654"; }
.task-shell .icon-select-all::before { content: "\E653"; }
.task-shell .icon-subscribe-add::before { content: "\E640"; }
.task-shell .icon-delete::before { content: "\E62E"; }

.app-shell.task-shell { position: relative; height: calc(100vh - 3px); grid-template-rows: 68px 0 minmax(0, 1fr); background: var(--ui-primary-pale, #fff7f8); }
.app-shell.task-shell .topbar { height: 60px; align-self: start; }
.app-shell.task-shell .brand img { width: 148px; }
.app-shell.task-shell .primary-nav button { min-width: 68px; padding: 0 14px; font-size: 15px; }
.app-shell.task-shell .nav-home { min-width: 60px !important; font-size: 21px !important; }
.app-shell.task-shell .top-actions { gap: 10px; padding: 0 16px; }
.app-shell.task-shell .top-action { width: 32px; height: 32px; padding: 0; font-size: 17px; }
.app-shell.task-shell .avatar { width: 40px; height: 40px; font-size: 18px; }
.app-shell.task-shell .tab-strip { position: absolute; z-index: 50; top: 68px; right: 25px; left: 211px; width: auto; height: 44px; margin: 0; padding: 2px; border: 0; border-radius: 3px 3px 0 0; background: #fff; box-shadow: none; overflow: visible; }
.app-shell.task-shell .tab-scroll { height: 40px; background: #e5e5e5; }
.app-shell.task-shell .route-tab { width: 120px; min-width: 120px; max-width: 120px; height: 40px; padding: 0 8px; gap: 6px; border: 0; border-radius: 0; background: transparent; color: #555; font-size: 12px; font-weight: 400; }
.app-shell.task-shell .route-tab:hover { color: #555; background: #f7f7f7; }
.app-shell.task-shell .route-tab.active { border: 0; border-radius: 0; background: #fff; color: #555; font-weight: 400; }
.app-shell.task-shell .tab-grid,
.app-shell.task-shell .tab-menu-wrap { width: 40px; height: 40px; flex: 0 0 40px; }
.app-shell.task-shell .tab-grid { border: 0; background: #e5e5e5; color: var(--ui-ink, #343034); font-size: 16px; }
.app-shell.task-shell .workspace-wrap { grid-row: 3; min-height: 0; padding: 0 25px 16px; }
.app-shell.task-shell .workspace { height: 100%; overflow: visible; border: 0; border-radius: 0; background: transparent; box-shadow: none; }

.task-page { position: relative; height: 100%; min-height: 0; display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 16px; }
.task-sidebar { width: 170px; min-width: 170px; height: 100%; padding: 8px; overflow: auto; border-radius: 8px; background: #fff; }
.task-tree-branch { width: 154px; }
.task-sidebar button { width: 154px; height: 32px; padding: 0 12px; border: 0; border-radius: 3px; background: transparent; color: #303133; font-size: 12px; text-align: left; }
.task-sidebar button:hover,
.task-sidebar button.active { background: var(--ui-primary-pale, #fff7f8); color: var(--ui-accent-ink, #a21c27); }
.task-tree-root { display: flex; align-items: center; gap: 7px; font-weight: 500; }
.task-tree-arrow { width: 11px; color: #909399; font-size: 16px; font-style: normal; text-align: center; }
.task-tree-children button { padding-left: 38px; }

.task-main { min-width: 0; height: 100%; min-height: 0; overflow: hidden; border-radius: 8px; background: #fff; }
.task-main-inner { position: relative; height: 100%; min-height: 0; padding-top: 44px; display: flex; flex-direction: column; }
.task-toolbar { position: relative; z-index: 30; height: 43px; min-height: 43px; padding: 0 20px .5px; display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; background: #fff; }
.task-toolbar-left,
.task-toolbar-right { display: flex; align-items: center; min-width: 0; }
.task-toolbar-left { gap: 10px; }
.task-toolbar-right { position: relative; gap: 8px; margin-left: auto; }
.task-search { width: 208px; height: 26px; display: flex; align-items: center; }
.task-search input { width: 185px; min-width: 0; height: 26px; padding: 0 8px; border: 1px solid #dcdfe6; border-radius: 3px 0 0 3px; outline: 0; color: #606266; font-size: 12px; }
.task-search button { width: 38px; height: 26px; margin-left: -15px; border: 0; border-radius: 3px; background: var(--ui-primary, #b8202b); color: #fff; }
.task-icon-button { width: 38px; height: 26px; padding: 0; border: 0; background: #fff; color: #606266; }
.task-icon-button:hover { color: var(--ui-accent-ink, #a21c27); }
.task-reset-button { width: 16px; }
.task-toolbar-right > select { width: 90px; height: 26px; padding: 0 7px; border: 1px solid #dcdfe6; border-radius: 3px; background: #fff; color: #606266; font-size: 12px; outline: 0; }
.task-action-button { width: 91px; height: 26px; padding: 0 8px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; border: 1px solid var(--ui-primary, #b8202b); border-radius: 3px; background: var(--ui-primary, #b8202b); color: #fff; font-size: 12px; }
.task-action-button i { font-size: 13px; }
.task-tool-wrap { position: relative; display: inline-flex; }
.task-export-button,
.task-columns-button { width: 26px; }
.task-export-button i,
.task-columns-button i { font-size: 26px; }

.task-export-menu,
.task-columns-popover,
.task-period-popover { position: absolute; z-index: 100; border: 1px solid #ebeef5; border-radius: 4px; background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,.12); }
.task-export-menu { top: 31px; right: 0; width: 126px; padding: 5px 0; }
.task-export-menu button { width: 100%; height: 30px; padding: 0 14px; border: 0; background: #fff; color: #606266; text-align: left; font-size: 12px; }
.task-export-menu button:hover { background: #f5f7fa; color: var(--ui-accent-ink, #a21c27); }
.task-columns-popover { top: 31px; right: 0; width: 188px; padding-top: 8px; }
.task-columns-options { max-height: 390px; overflow: auto; }
.task-columns-options label { min-height: 30px; padding: 0 14px; display: flex; align-items: center; gap: 8px; color: #606266; font-size: 12px; }
.task-columns-options label.fixed { color: #909399; }
.task-columns-options input { margin: 0; accent-color: var(--ui-primary, #b8202b); }
.task-columns-popover footer { padding: 8px 12px; border-top: 1px solid #ebeef5; text-align: right; }
.task-columns-popover footer button { height: 24px; padding: 0 12px; border: 1px solid var(--ui-primary, #b8202b); border-radius: 3px; background: var(--ui-primary, #b8202b); color: #fff; font-size: 12px; }
.task-period-popover { top: 74px; right: 145px; width: 274px; height: 72px; }
.task-period-row { height: 37px; padding: 2px 12px; display: flex; align-items: center; gap: 7px; color: #606266; }
.task-period-row input { width: 100px; height: 32px; padding: 0 7px; border: 1px solid transparent; border-radius: 4px; outline: 0; font-size: 12px; }
.task-period-row input:focus { border-color: var(--ui-primary, #b8202b); }
.task-period-popover footer { height: 34px; padding: 5px 12px; display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.task-period-popover footer button { height: 24px; padding: 0; border: 0; background: transparent; color: var(--ui-ink, #343034); font-size: 12px; }
.task-period-popover footer button:last-child { width: 50px; border: 1px solid var(--ui-primary, #b8202b); border-radius: 3px; background: var(--ui-primary, #b8202b); color: #fff; }
.task-popover-arrow { position: absolute; top: -6px; right: 42px; width: 11px; height: 11px; transform: rotate(45deg); border-top: 1px solid #ebeef5; border-left: 1px solid #ebeef5; background: #fff; }

.task-advanced { flex: 0 0 96px; height: 96px; margin: 12px 20px 0; padding-left: 5px; display: flex; align-content: flex-start; flex-wrap: wrap; background: #fff; }
.task-filter-field { width: 32%; height: 32px; flex: 0 0 32%; margin: 0 10px 16px 0; display: flex; align-items: center; }
.task-filter-field:nth-child(3n) { margin-right: 0; }
.task-filter-field > span { width: 80px; flex: 0 0 80px; padding-right: 16px; color: #606266; font-size: 12px; text-align: justify; text-align-last: justify; white-space: nowrap; }
.task-filter-field > input,
.task-filter-field > select { width: calc(100% - 96px); height: 32px; padding: 0 8px; border: 1px solid #dcdfe6; border-radius: 3px; background: #fff; color: #606266; font-size: 12px; outline: 0; }
.task-filter-field input:focus,
.task-filter-field select:focus { border-color: var(--ui-primary, #b8202b); }
.task-date-range { width: calc(100% - 96px); min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) 16px minmax(0, 1fr); align-items: center; gap: 4px; }
.task-date-range input { width: 100%; min-width: 0; height: 32px; padding: 0 6px; border: 1px solid #dcdfe6; border-radius: 3px; color: #606266; font-size: 12px; }
.task-date-range b { color: #909399; font-size: 12px; font-weight: 400; text-align: center; }

.task-table-frame { position: relative; flex: 1 1 auto; min-height: 0; margin: 16px 20px 0; overflow: auto; border: 1px solid #ebeef5; }
.task-table { width: 100%; border-collapse: collapse; table-layout: fixed; color: #111; }
.task-table th { position: relative; height: 41px; padding: 0 10px; border-right: 1px solid #fff; border-bottom: 1px solid #ebeef5; background: var(--ui-primary-soft, #fbeaec); color: var(--ui-ink, #343034); font-size: 12px; font-weight: 600; text-align: left; white-space: nowrap; }
.task-table td { height: 40px; padding: 0 10px; border-right: 1px solid #ebeef5; border-bottom: 1px solid #ebeef5; overflow: hidden; color: #111; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.task-table tr:hover td { background: #f8fbfe; }
.task-table .task-index { width: 40px; min-width: 40px; max-width: 40px; text-align: center; }
.task-table th.task-index,
.task-table th.task-operation { padding-right: 0; padding-left: 0; }
.task-table .task-completed { width: 80px; min-width: 80px; max-width: 80px; }
.task-table .task-sticky { position: sticky; z-index: 8; background: var(--ui-primary-soft, #fbeaec); }
.task-table td.task-sticky { background: #fff; }
.task-table .task-operation { position: sticky; right: 0; z-index: 10; width: 40px; min-width: 40px; max-width: 40px; overflow: visible; background: #fff; text-align: center; }
.task-table th.task-operation { background: var(--ui-primary-soft, #fbeaec); }
.task-link { max-width: 100%; padding: 0; overflow: hidden; border: 0; background: transparent; color: var(--ui-accent-ink, #a21c27); text-overflow: ellipsis; white-space: nowrap; }
.task-completion { color: #f39c12; }
.task-completion.done { color: #2d9d78; }
.task-operation > button { padding: 4px; border: 0; background: transparent; color: var(--ui-muted, #716a70); }
.task-row-menu { position: fixed; z-index: 1000; width: 94px; padding: 5px 0; border: 1px solid #ebeef5; border-radius: 4px; background: #fff; box-shadow: 0 3px 14px rgba(56, 36, 42, .15); }
.task-row-menu button { display: block; width: 100%; height: 28px; padding: 0 12px; border: 0; background: #fff; color: #606266; font-size: 12px; text-align: left; }
.task-table[data-oa-resizable="true"] td.task-operation { padding: 0; text-overflow: clip !important; }
.task-table td.task-operation:has(.task-row-menu) { z-index: 20; }
.task-row-menu button:hover { background: #f5f7fa; color: var(--ui-accent-ink, #a21c27); }
.task-row-menu button.danger { color: #d95d5d; }
.task-empty { position: absolute; inset: 41px 0 0; display: grid; place-content: center; gap: 9px; color: #909399; text-align: center; background: #fff; font-size: 12px; }
.task-empty-mark { width: 38px; height: 28px; margin: auto; border: 2px solid var(--ui-primary-line, #efd0d5); border-radius: 3px; position: relative; }
.task-empty-mark::after { content: ""; position: absolute; left: 7px; right: 7px; bottom: 6px; height: 2px; background: var(--ui-primary-soft, #fbeaec); box-shadow: 0 -6px var(--ui-primary-soft, #fbeaec); }
.task-loading { width: 22px; height: 22px; margin: auto; border: 2px solid var(--ui-primary-line, #efd0d5); border-top-color: var(--ui-primary, #b8202b); border-radius: 50%; animation: task-spin .7s linear infinite; }
@keyframes task-spin { to { transform: rotate(360deg); } }
.task-bottom { flex: 0 0 auto; margin: 0 20px; }
.task-pagination { height: 51px; display: flex; align-items: center; justify-content: center; gap: 9px; color: #606266; font-size: 12px; }
.task-pagination button { width: 28px; height: 28px; border: 0; background: #f4f6fa; color: #606266; }
.task-pagination button.active { background: var(--ui-primary, #b8202b); color: #fff; }
.task-pagination button:disabled { color: var(--ui-muted, #716a70); }
.task-pagination input { width: 40px; height: 26px; border: 1px solid #dcdfe6; border-radius: 3px; text-align: center; }
.task-error { margin: 10px 20px 0; padding: 8px 12px; display: flex; align-items: center; justify-content: space-between; background: #fff2f0; color: #c54545; font-size: 12px; }
.task-error button { border: 0; background: transparent; color: var(--ui-accent-ink, #a21c27); }

.task-modal-backdrop { position: fixed; z-index: 600; inset: 0; display: grid; place-items: center; padding: 20px 4.5vw; background: rgba(45, 41, 45, .38); }
.task-dialog { width: 100%; max-width: 1382px; max-height: calc(100vh - 40px); display: flex; flex-direction: column; border-radius: 4px; background: #fff; box-shadow: 0 12px 40px rgba(56, 36, 42, .24); }
.task-dialog > header { height: 33px; min-height: 33px; padding: 0 14px 0 20px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #ebeef5; }
.task-dialog > header h2 { margin: 0; color: #303133; font-size: 14px; font-weight: 500; }
.task-dialog > header button { width: 28px; height: 28px; border: 0; background: transparent; color: #909399; font-size: 20px; }
.task-dialog-body { min-height: 0; padding: 30px 40px; overflow: auto; }
.task-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 16.65%; row-gap: 16px; }
.task-form-field { min-width: 0; min-height: 36px; display: grid; grid-template-columns: 110px minmax(0, 1fr); align-items: start; }
.task-form-field.full { grid-column: 1 / -1; }
.task-form-field > span { height: 36px; padding: 10px 16px 0 0; color: #606266; font-size: 12px; text-align: right; }
.task-form-field > span b { margin-left: 3px; color: #f56c6c; font-weight: 400; }
.task-form-field > input,
.task-form-field > select,
.task-form-field > textarea { width: 100%; height: 36px; padding: 0 10px; border: 1px solid #dcdfe6; border-radius: 3px; background: #fff; color: #606266; font-size: 12px; outline: 0; }
.task-form-field > textarea { height: 40px; padding-top: 9px; resize: vertical; }
.task-form-field > input:focus,
.task-form-field > select:focus,
.task-form-field > textarea:focus { border-color: var(--ui-primary, #b8202b); }
.task-checkbox { height: 36px; display: flex; align-items: center; gap: 6px; color: #606266; font-size: 12px; }
.task-checkbox input { margin: 0; accent-color: var(--ui-primary, #b8202b); }
.task-owner-control { min-height: 36px; display: flex; align-items: center; gap: 8px; }
.task-owner-tags { min-height: 32px; display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.task-owner-tag,
.task-file-chip { min-height: 25px; padding: 2px 5px 2px 8px; display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--ui-primary-line, #efd0d5); border-radius: 3px; background: var(--ui-primary-pale, #fff7f8); color: var(--ui-muted, #716a70); font-size: 12px; }
.task-owner-tag button,
.task-file-chip button { width: 18px; height: 18px; padding: 0; border: 0; background: transparent; color: var(--ui-muted, #716a70); }
.task-owner-control select { min-width: 150px; height: 36px; padding: 0 8px; border: 1px solid #dcdfe6; border-radius: 3px; color: #606266; font-size: 12px; }
.task-note-list { min-width: 0; }
.task-add-note { height: 32px; margin-bottom: 8px; padding: 0 10px; border: 1px solid var(--ui-primary, #b8202b); border-radius: 3px; background: #fff; color: var(--ui-accent-ink, #a21c27); font-size: 12px; }
.task-note-row { width: 100%; margin-bottom: 8px; display: grid; grid-template-columns: minmax(0, 1fr) 32px; gap: 8px; }
.task-note-row input { height: 36px; padding: 0 10px; border: 1px solid #dcdfe6; border-radius: 3px; font-size: 12px; }
.task-note-row button { border: 0; background: transparent; color: #d95d5d; }
.task-upload { min-height: 36px; display: flex; align-items: flex-start; gap: 12px; }
.task-upload > label { height: 32px; padding: 0 12px; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--ui-primary, #b8202b); border-radius: 3px; color: var(--ui-accent-ink, #a21c27); font-size: 12px; cursor: pointer; }
.task-upload input { display: none; }
.task-upload > div { display: flex; flex-wrap: wrap; gap: 6px; }
.task-form-error { grid-column: 1 / -1; margin-left: 110px; color: #e25454; font-size: 12px; }
.task-dialog > footer { height: 73px; min-height: 73px; padding: 0 40px; display: flex; align-items: center; justify-content: flex-end; gap: 12px; border-top: 1px solid #ebeef5; }
.task-dialog > footer button { min-width: 70px; height: 32px; padding: 0 16px; border: 1px solid #dcdfe6; border-radius: 3px; background: #fff; color: #606266; font-size: 12px; }
.task-dialog > footer button.primary { border-color: var(--ui-primary, #b8202b); background: var(--ui-primary, #b8202b); color: #fff; }
.task-detail-dialog { max-width: 850px; }
.task-detail-grid { padding: 28px 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 30px; }
.task-detail-grid > div { display: grid; grid-template-columns: 100px 1fr; color: #606266; font-size: 12px; }
.task-detail-grid > div.full { grid-column: 1 / -1; }
.task-detail-grid strong { font-weight: 400; color: #303133; }

@media (max-width: 1180px) {
  .task-toolbar { align-items: flex-start; flex-wrap: wrap; height: 86px; min-height: 86px; padding-top: 9px; }
  .task-toolbar-left,
  .task-toolbar-right { width: 100%; }
  .task-toolbar-right { margin-left: 0; }
  .task-period-popover { top: 118px; right: 155px; }
  .task-filter-field { width: calc(50% - 10px); flex-basis: calc(50% - 10px); }
  .task-filter-field:nth-child(3n) { margin-right: 10px; }
  .task-advanced { flex-basis: 144px; height: 144px; }
}

@media (max-width: 820px) {
  .app-shell.task-shell { height: auto; grid-template-rows: 60px 46px minmax(calc(100dvh - 106px), auto); }
  .app-shell.task-shell .tab-strip { position: static; width: 100%; height: 46px; padding: 0; border-radius: 0; }
  .app-shell.task-shell .tab-scroll { height: 46px; }
  .app-shell.task-shell .route-tab { width: 130px; min-width: 130px; height: 44px; }
  .app-shell.task-shell .workspace-wrap { padding: 0; }
  .app-shell.task-shell .workspace { min-height: calc(100dvh - 106px); }
  .task-page { display: block; }
  .task-sidebar { width: 100%; height: auto; min-width: 0; padding: 0; display: flex; overflow-x: auto; border-radius: 0; }
  .task-tree-branch { min-width: 235px; display: flex; }
  .task-sidebar button { width: auto; min-width: 105px; height: 44px; }
  .task-tree-children { display: flex; }
  .task-main { height: calc(100dvh - 150px); border-radius: 0; }
  .task-main-inner { padding-top: 0; }
  .task-toolbar { height: auto; min-height: 88px; padding: 9px 10px; }
  .task-period-popover { top: 126px; right: 10px; }
  .task-columns-popover { top: 31px; right: 0; }
  .task-advanced { height: auto; flex-basis: auto; margin: 10px; padding: 0; }
  .task-filter-field { width: 100%; flex-basis: 100%; margin-right: 0; }
  .task-table-frame { margin: 10px 10px 0; }
  .task-bottom { margin: 0 10px; }
  .task-modal-backdrop { padding: 10px; }
  .task-dialog-body { padding: 20px 14px; }
  .task-form { grid-template-columns: 1fr; column-gap: 0; }
  .task-form-field.full { grid-column: auto; }
  .task-form-field { grid-template-columns: 92px minmax(0, 1fr); }
  .task-form-error { margin-left: 92px; }
}
