/* 01-01 only. Scheme01 reference: 1600 CSS px. Does not restyle other pages. */
@layer plan01 {
  body.erp-plan01 .p01-workbench-subnav { display:none; }
  body.erp-plan01[data-active-view=dashboard] .vi-subnav { display:none !important; }
  body.erp-plan01[data-active-view=dashboard] .p01-workbench-subnav { display:flex; align-items:center; gap:5px; min-height:60px; padding:0 28px; border-bottom:1px solid #e0e9f0; background:#fff; overflow-x:auto; }
  body.erp-plan01 .p01-workbench-subnav :is(button,span) { flex:none; display:inline-flex; align-items:center; gap:7px; min-height:38px; padding:7px 20px !important; font:550 14px/1.5 "PingFang SC","Microsoft YaHei",Arial,sans-serif; border:0; border-radius:5px; color:#66768c; background:transparent; white-space:nowrap; }
  body.erp-plan01 .p01-workbench-subnav [aria-current] { background:#008575 !important; color:#fff !important; }
  body.erp-plan01 .p01-workbench-subnav small { font-size:10px; }
  body.erp-plan01[data-active-view=dashboard] #dashboardView.plan01-workbench { display:block !important; padding:22px 28px 17px !important; }
  body.erp-plan01 #dashboardView > .plan01-page-heading { display:block !important; margin:0 0 16px !important; }
  body.erp-plan01 #dashboardView > .plan01-page-heading h2 { line-height:1.28 !important; margin:0 0 4px !important; }
  body.erp-plan01 #dashboardView > .plan01-page-heading p { font-size:14px !important; line-height:1.5 !important; }
  body.erp-plan01 #plan01Workbench { color:#172438; font:400 14px/1.5 "PingFang SC","Microsoft YaHei",Arial,sans-serif; }
  body.erp-plan01 #plan01Workbench :is(button,input,select) { font-family:inherit !important; font-size:13px !important; font-weight:550 !important; line-height:1.5 !important; box-shadow:none !important; }
  body.erp-plan01 #plan01Workbench button { cursor:pointer; }
  body.erp-plan01 #plan01Workbench button:disabled { cursor:not-allowed; opacity:1 !important; color:#586b80 !important; background:#f4f7f9; border-color:#e0e9f0; }
  body.erp-plan01 #plan01Workbench :is(button,input,select):focus-visible { outline:2px solid #008575 !important; outline-offset:2px; }
  body.erp-plan01 #plan01Workbench input { caret-color:#008575; }
  body.erp-plan01 #plan01Workbench ::selection { color:#172438; background:#d0f6eb; }
  body.erp-plan01 #plan01Workbench input[type=checkbox] { display:inline-block !important; appearance:auto !important; width:15px !important; height:15px !important; min-height:15px !important; padding:0 !important; margin:0 !important; accent-color:#008575; vertical-align:middle; }
  body.erp-plan01 #plan01Workbench .p01-task-table :is(th,td):has(input[type=checkbox]) { padding:10px !important; }
  body.erp-plan01 #plan01Workbench .p01-task-stats { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:12px; margin-bottom:18px; }
  body.erp-plan01 #plan01Workbench .p01-task-stats > button { display:flex; align-items:center; gap:12px; min-height:66px !important; padding:12px 18px !important; border:1px solid #e0e9f0; border-radius:5px; background:#f7fbfc; color:#172438; text-align:left; }
  body.erp-plan01 #plan01Workbench .p01-task-stats svg { width:23px; height:23px; flex:none; fill:none; stroke:#008575; stroke-width:1.75; stroke-linecap:round; stroke-linejoin:round; }
  body.erp-plan01 #plan01Workbench .p01-task-stats span { font-size:15px; font-weight:550; white-space:nowrap; }
  body.erp-plan01 #plan01Workbench .p01-task-stats strong { font-size:22px; font-weight:740; margin-left:auto; }
  body.erp-plan01 #plan01Workbench .p01-task-stats [data-task-deadline=overdue] strong { color:#d74840; }
  body.erp-plan01 #plan01Workbench :is(.p01-task-stats,.p01-task-groups) > button[aria-pressed=true] { background:#008575; color:#fff; border-color:#008575; }
  body.erp-plan01 #plan01Workbench .p01-task-stats [aria-pressed=true] svg { stroke:currentColor; }
  body.erp-plan01 #plan01Workbench .p01-task-stats [aria-pressed=true] strong { color:inherit; }
  body.erp-plan01 #plan01Workbench .p01-task-groups { display:flex; gap:6px; flex-wrap:wrap; margin-bottom:14px; }
  body.erp-plan01 #plan01Workbench .p01-task-groups button { border:1px solid #e0e9f0; background:#f8fbfd; color:#172438; border-radius:5px; padding:7px 17px; min-width:97px; min-height:36px; }
  body.erp-plan01 #plan01Workbench .p01-task-filters { display:flex; gap:10px; align-items:center; flex-wrap:wrap; margin-bottom:15px; }
  body.erp-plan01 #plan01Workbench .p01-task-search { display:flex !important; align-items:center; gap:10px; flex:0 1 470px !important; width:470px !important; min-width:0 !important; max-width:100%; height:40px; border:1px solid #ccdae6; border-radius:5px; padding:0 14px !important; margin:0 !important; }
  body.erp-plan01 #plan01Workbench .p01-task-search svg { width:19px; height:19px; fill:none; stroke:#66768c; stroke-width:1.75; flex:none; }
  body.erp-plan01 #plan01TaskSearch { border:0 !important; padding:0 !important; width:100%; min-width:0; min-height:0 !important; background:transparent !important; }
  body.erp-plan01 #plan01TaskSort { flex:0 0 142px !important; width:142px !important; height:40px; }
  body.erp-plan01 #plan01Workbench .p01-task-advanced-toggle { display:inline-flex; align-items:center; gap:8px; padding:0 15px !important; width:auto !important; height:39px; white-space:nowrap; border:1px solid #ccdae6; border-radius:5px; background:#fff; color:#172438; }
  body.erp-plan01 #plan01Workbench .p01-task-advanced-toggle svg { width:19px; height:19px; fill:none; stroke:currentColor; stroke-width:1.75; stroke-linecap:round; stroke-linejoin:round; }
  body.erp-plan01 #plan01Workbench .p01-task-advanced-toggle[aria-expanded=true] { color:#008575; border-color:#008575; }
  body.erp-plan01 #plan01Workbench [hidden] { display:none !important; }
  body.erp-plan01 #plan01Workbench .p01-task-advanced { padding:16px; margin:0 0 15px; background:#f4f8fa; border:1px solid #e0e9f0; border-radius:5px; }
  body.erp-plan01 #plan01Workbench .p01-task-advanced-fields { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
  body.erp-plan01 #plan01Workbench .p01-task-advanced-fields label { display:flex !important; flex-direction:column; gap:7px; min-width:0; margin:0 !important; font-size:13px; }
  body.erp-plan01 #plan01Workbench .p01-task-advanced-fields :is(input,select) { width:100% !important; min-width:0; height:39px; background:#fff; border:1px solid #cad8e5; border-radius:4px; padding:7px 10px; }
  body.erp-plan01 #plan01Workbench .p01-task-advanced-actions { display:flex; justify-content:flex-end; gap:8px; }
  body.erp-plan01 #plan01Workbench .p01-task-advanced-actions button { flex:none !important; width:auto !important; height:39px; padding:0 15px !important; border:1px solid #ccdae6; border-radius:5px; background:#fff; color:#172438; }
  body.erp-plan01 #plan01Workbench #plan01TaskAdvancedApply { background:#008575; color:#fff; border-color:#008575; }
  body.erp-plan01 #plan01Workbench :is(.p01-task-filter-note,.p01-task-filter-summary) { font-size:12px; color:#66768c; margin:12px 0; line-height:1.7; }
  body.erp-plan01 #plan01Workbench .p01-task-filter-error { font-size:13px; color:#c83b36; margin:10px 0; }
  body.erp-plan01 #plan01TaskReset { flex:0 0 auto !important; width:auto !important; white-space:nowrap !important; padding:0 10px !important; min-height:39px; border:0; }
  body.erp-plan01 #plan01Workbench .p01-task-toolbar { display:flex; justify-content:space-between; align-items:center; gap:16px; min-height:35px; margin-bottom:9px; color:#66768c; font-size:12px; }
  body.erp-plan01 #plan01Workbench .p01-task-toolbar > div { display:flex; align-items:center; gap:12px; }
  body.erp-plan01 #plan01Workbench .p01-task-toolbar button { width:auto !important; padding:6px 12px !important; min-height:32px !important; border:1px solid #e0e9f0; border-radius:4px; color:#66768c; background:#f4f7f9; }
  body.erp-plan01 #plan01Workbench .p01-task-toolbar #plan01TaskClearSelection { color:#1879d2; background:#fff; }
  body.erp-plan01 #plan01Workbench .p01-task-table-wrap { width:100%; overflow:auto; border:1px solid #e0e9f0; border-radius:5px; scrollbar-color:#99afca #f4f8fa; }
  body.erp-plan01 #plan01Workbench .p01-task-table { min-width:1050px !important; width:100% !important; table-layout:fixed; border-collapse:collapse; }
  body.erp-plan01 #plan01Workbench .p01-task-table :is(th,td) { display:table-cell !important; font-size:13px !important; line-height:1.45 !important; text-align:left !important; white-space:normal; overflow-wrap:anywhere; border:0 !important; border-right:1px solid #edf2f6 !important; border-bottom:1px solid #e0e9f0 !important; padding:10px 12px !important; color:#172438 !important; font-weight:400 !important; height:60px !important; box-sizing:border-box; }
  body.erp-plan01 #plan01Workbench .p01-task-table th { height:43px !important; padding:12px !important; white-space:nowrap !important; color:#485b73 !important; background:#f0f6f9 !important; font-size:12px !important; font-weight:650 !important; }
  body.erp-plan01 #plan01Workbench .p01-task-table small { display:block; margin-top:3px; font-size:11px; line-height:1.6; color:#66768c; font-weight:450; }
  body.erp-plan01 #plan01Workbench .p01-task-table tr { display:table-row !important; }
  body.erp-plan01 #plan01Workbench .p01-task-table td::before { content:none !important; }
  body.erp-plan01 #plan01Workbench .p01-task-table tr:last-child td { border-bottom:0 !important; }
  body.erp-plan01 #plan01Workbench .p01-task-link { display:block !important; padding:0 !important; margin:3px 0 0 !important; min-height:0 !important; height:auto !important; width:auto !important; border:0 !important; background:none !important; color:#1879d2 !important; font-size:12px !important; font-weight:550; text-align:left !important; overflow-wrap:anywhere; }
  body.erp-plan01 #plan01Workbench .p01-task-link:hover { text-decoration:underline; text-underline-offset:3px; }
  body.erp-plan01 #plan01Workbench .p01-task-chip { display:inline-block; padding:3px 8px; border-radius:4px; font-size:11px; font-weight:550; color:#63758b; background:#edf1f5; }
  body.erp-plan01 #plan01Workbench .p01-task-chip.is-overdue { color:#c83b36; background:#ffebe9; }
  body.erp-plan01 #plan01Workbench .p01-task-chip.is-today { color:#a9600b; background:#fff2dc; }
  body.erp-plan01 #plan01Workbench .p01-task-table .p01-date-overdue { color:#c83b36 !important; }
  body.erp-plan01 #plan01Workbench .p01-task-table .p01-task-empty { height:220px !important; text-align:center !important; color:#66768c !important; background:#fff !important; }
  body.erp-plan01 #plan01Workbench .p01-task-pagination { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; margin:17px 0 26px; font-size:12px; color:#66768c; }
  body.erp-plan01 #plan01Workbench .p01-task-page-actions { display:flex; align-items:center; flex-wrap:wrap; gap:7px; }
  body.erp-plan01 #plan01Workbench .p01-task-page-actions :is(button,select,input) { flex:0 0 auto !important; width:auto !important; min-height:31px !important; height:31px; border:1px solid #ccdae6; border-radius:4px; padding:4px 10px !important; background:#fff; color:#172438; font-size:12px !important; }
  body.erp-plan01 #plan01Workbench .p01-task-page-actions nav { display:flex; align-items:center; gap:7px; }
  body.erp-plan01 #plan01Workbench .p01-task-page-actions [aria-current=page] { color:#008575; border-color:#008575; }
  body.erp-plan01 #plan01Workbench .p01-task-page-actions label { display:flex !important; align-items:center; gap:7px; margin:0 0 0 10px; }
  body.erp-plan01 #plan01Workbench #plan01TaskJump { width:45px !important; text-align:center; }
  body.erp-plan01 #plan01Workbench .p01-task-note { background:#f4f8fa; border:1px solid #e0e9f0; border-radius:5px; padding:14px 16px; margin:0; color:#66768c; font-size:12px; }
  body.erp-plan01 #plan01Workbench .p01-task-boundaries { font-size:12px; color:#66768c; margin:16px 0 0; border:0; padding:0; background:#fff; }
  body.erp-plan01 #plan01Workbench .p01-task-boundaries summary { cursor:pointer; }
  body.erp-plan01 #plan01Workbench .p01-task-boundaries p { max-width:90ch; }
  body.erp-plan01 #plan01Workbench .p01-task-legacy-wrap { max-height:400px; overflow:auto; border:1px solid #e0e9f0; }
  body.erp-plan01 #dashboardView > .plan01-more { margin-top:16px !important; }
  @media(max-width:1100px) {
    body.erp-plan01 #plan01Workbench .p01-task-stats { grid-template-columns:repeat(3,minmax(0,1fr)); }
    body.erp-plan01 #plan01Workbench .p01-task-advanced-fields { grid-template-columns:repeat(2,minmax(0,1fr)); }
  }
  @media(max-width:640px) {
    body.erp-plan01[data-active-view=dashboard] .p01-workbench-subnav { padding:0 14px; }
    body.erp-plan01[data-active-view=dashboard] #dashboardView.plan01-workbench { padding:18px 14px !important; }
    body.erp-plan01 #plan01Workbench .p01-task-stats { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
    body.erp-plan01 #plan01Workbench .p01-task-stats > button { padding:10px; gap:7px; min-height:60px; }
    body.erp-plan01 #plan01Workbench .p01-task-stats span { font-size:14px; }
    body.erp-plan01 #plan01Workbench .p01-task-stats strong { font-size:20px; }
    body.erp-plan01 #plan01Workbench .p01-task-filters { flex-wrap:wrap; }
    body.erp-plan01 #plan01Workbench .p01-task-search { flex-basis:100% !important; width:100% !important; }
    body.erp-plan01 #plan01Workbench .p01-task-toolbar { flex-wrap:wrap; gap:4px; }
    body.erp-plan01 #plan01Workbench .p01-task-groups button { padding:7px 14px; }
    body.erp-plan01 #plan01Workbench .p01-task-advanced-fields { grid-template-columns:1fr; }
  }
}

/* Work orders: preserve the table cells and actions as readable mobile cards. */
@layer plan01 {
 @media(max-width:640px) {
  body.erp-plan01 #workOrdersView .blacklake-workorder-table-wrap {overflow:visible!important;border:0!important;}
  body.erp-plan01 #workOrdersView .blacklake-workorder-table {display:block!important;width:100%!important;min-width:0!important;}
  body.erp-plan01 #workOrdersView[data-plan01-operations] table.blacklake-workorder-table.plan01-operation-table {display:block!important;flex:1 1 0!important;width:calc(100% - 40px)!important;min-width:0!important;}
  body.erp-plan01 #workOrdersView[data-plan01-operations] table.blacklake-workorder-table.plan01-operation-table thead {display:none!important;}
  body.erp-plan01 #workOrdersView[data-plan01-operations] table.blacklake-workorder-table.plan01-operation-table tbody {display:block!important;}
  body.erp-plan01 #workOrdersView[data-plan01-operations] table.blacklake-workorder-table.plan01-operation-table #workOrdersTable td {display:block!important;position:static!important;min-width:0!important;max-width:none!important;width:auto!important;text-align:left!important;}
  body.erp-plan01 #workOrdersView[data-plan01-operations] table.blacklake-workorder-table.plan01-operation-table #workOrdersTable td::before {display:block!important;}
  body.erp-plan01 #workOrdersView[data-plan01-operations] table.blacklake-workorder-table.plan01-operation-table #workOrdersTable td[data-plan01-column] {height:auto!important;min-height:0!important;width:auto!important;max-width:none!important;padding:5px 0!important;background:transparent!important;border:0!important;box-shadow:none!important;}
  body.erp-plan01 #workOrdersView[data-plan01-operations] table.blacklake-workorder-table.plan01-operation-table #workOrdersTable td[data-plan01-column]::before {float:none!important;width:auto!important;position:static!important;display:block!important;font-size:12px!important;color:#66768c!important;}
  body.erp-plan01 #workOrdersView[data-plan01-operations] table.blacklake-workorder-table.plan01-operation-table #workOrdersTable td[data-plan01-column="customer"]::before {content:'客户'!important;}
  body.erp-plan01 #workOrdersView[data-plan01-operations] table.blacklake-workorder-table.plan01-operation-table #workOrdersTable td[data-plan01-column="product"]::before {content:'产品规格'!important;}
  body.erp-plan01 #workOrdersView[data-plan01-operations] table.blacklake-workorder-table.plan01-operation-table #workOrdersTable td[data-plan01-column="quantity"]::before {content:'计划 / 完成'!important;}
  body.erp-plan01 #workOrdersView[data-plan01-operations] table.blacklake-workorder-table.plan01-operation-table #workOrdersTable td[data-plan01-column="process"]::before {content:'当前工序'!important;}
  body.erp-plan01 #workOrdersView[data-plan01-operations] table.blacklake-workorder-table.plan01-operation-table #workOrdersTable td[data-plan01-column="arrival"]::before {content:'下单 / 负责人'!important;}
  body.erp-plan01 #workOrdersView[data-plan01-operations] table.blacklake-workorder-table.plan01-operation-table #workOrdersTable td[data-plan01-column="actions"]::before {content:'操作'!important;}
  body.erp-plan01 #workOrdersView .blacklake-workorder-table thead {display:none!important;}
  body.erp-plan01 #workOrdersTable {display:block!important;}
  body.erp-plan01 #workOrdersTable tr {display:grid!important;grid-template-columns:minmax(0,1fr) auto;gap:4px 12px;width:100%!important;min-width:0!important;box-sizing:border-box;margin:0 0 12px;padding:14px;border:1px solid #dce7ed;border-radius:8px;background:#fff;}
  body.erp-plan01 #workOrdersView[data-plan01-operations] table.blacklake-workorder-table.plan01-operation-table #workOrdersTable tr.vi-mobile-record {grid-template-columns:minmax(0,1fr)!important;gap:0!important;padding:12px!important;margin:0!important;border:1px solid #dce7ed!important;border-radius:8px!important;}
  body.erp-plan01 #workOrdersView[data-plan01-operations] table.blacklake-workorder-table.plan01-operation-table #workOrdersTable tr.vi-mobile-record td[data-plan01-column] {grid-column:1!important;grid-row:auto!important;}
  body.erp-plan01 #workOrdersTable td {display:block!important;grid-column:1 / -1;min-width:0!important;width:auto!important;height:auto!important;white-space:normal!important;overflow-wrap:anywhere!important;padding:5px 0!important;border:0!important;}
  body.erp-plan01 #workOrdersTable td[data-plan01-column="status"] {grid-column:2;grid-row:1;}
  body.erp-plan01 #workOrdersTable td[data-plan01-column="document"] {grid-column:1;grid-row:1;font-size:16px!important;}
  body.erp-plan01 #workOrdersTable td[data-plan01-column]:not([data-plan01-column="status"]):not([data-plan01-column="document"])::before {display:block;float:left;width:5em;color:#66768c;font-size:12px;}
  body.erp-plan01 #workOrdersTable td[data-plan01-column="customer"]::before {content:'客户';}
  body.erp-plan01 #workOrdersTable td[data-plan01-column="product"]::before {content:'产品规格';}
  body.erp-plan01 #workOrdersTable td[data-plan01-column="quantity"]::before {content:'计划 / 完成';}
  body.erp-plan01 #workOrdersTable td[data-plan01-column="process"]::before {content:'当前工序';}
  body.erp-plan01 #workOrdersTable td[data-plan01-column="arrival"]::before {content:'下单 / 负责人';}
  body.erp-plan01 #workOrdersTable td[data-plan01-column="actions"]::before {content:'操作';}
  body.erp-plan01 #workOrdersTable :is(button,summary) {white-space:normal!important;overflow-wrap:anywhere;}
  body.erp-plan01 #workOrdersTable .simple-row-actions {display:flex!important;flex-wrap:wrap!important;gap:8px!important;}
  body.erp-plan01 #workOrdersTable .simple-row-actions button {min-height:40px!important;}
  body.erp-plan01 #workOrdersTable td.empty {grid-column:1 / -1;text-align:center;}
  body.erp-plan01 #workOrdersView .workorder-page-actions {display:flex!important;flex-wrap:wrap!important;gap:8px!important;}
  body.erp-plan01 #workOrderDetailDialog[data-plan01-production] .dialog-header {align-items:flex-start!important;}
  body.erp-plan01 #workOrderDetailDialog[data-plan01-production] .dialog-header h2 {font-size:18px!important;overflow-wrap:anywhere!important;}
  body.erp-plan01 #workOrderDetailDialog[data-plan01-production] .dialog-actions-left {gap:2px!important;}
  body.erp-plan01 #workOrderDetailDialog[data-plan01-production] .order-detail-actions {max-height:25dvh!important;}
  body.erp-plan01 #workOrderDetailDialog[data-plan01-production] .order-detail-actions .action-group {display:flex!important;flex-wrap:wrap!important;gap:6px!important;}
  body.erp-plan01 #workOrderDetailDialog[data-plan01-production] #workOrderDetailContent {min-width:0!important;overflow:auto!important;overflow-wrap:anywhere!important;}
  body.erp-plan01 #workOrderDetailDialog[data-plan01-production] :is(.detail-dual-grid,.plan01-production-overview) {grid-template-columns:minmax(0,1fr)!important;}
  body.erp-plan01 #workOrderDetailDialog[data-plan01-production] :is(.detail-panel,.plan01-production-section) {min-width:0!important;}
 }
}

/* Scheme01 01-02/03. Shared shell/tables retained; no data-colored inference. */
@layer plan01 {
  body.erp-plan01 #plan01PersonalActivity[hidden], body.erp-plan01 #plan01Workbench[hidden] {display:none !important;}
  body.erp-plan01 #plan01PersonalActivity {color:#172438;font:400 14px/1.5 "PingFang SC","Microsoft YaHei",Arial,sans-serif;}
  body.erp-plan01 #plan01PersonalActivity :is(button,input,select) {font:550 13px/1.5 "PingFang SC","Microsoft YaHei",Arial,sans-serif;min-height:38px;box-shadow:none;}
  body.erp-plan01 #plan01PersonalActivity :is(button,input,select):focus-visible {outline:2px solid #008575;outline-offset:2px;}
  body.erp-plan01 #plan01PersonalActivity button {width:auto;padding:7px 14px;border:1px solid #cbdbe7;border-radius:4px;background:#fff;color:#172438;cursor:pointer;}
  body.erp-plan01 #plan01PersonalActivity button:hover:not(:disabled) {background:#edf9f5;}
  body.erp-plan01 #plan01PersonalActivity button:disabled {background:#f4f7f9;color:#596b7d;cursor:not-allowed;opacity:1;}
  body.erp-plan01 #plan01PersonalActivity ::selection {background:#d0f6eb;color:#172438;}
  body.erp-plan01 #plan01PersonalActivity input {caret-color:#008575;}
  body.erp-plan01 #plan01PersonalActivity .p01-activity-periods {display:flex;align-items:center;gap:8px;margin:18px 0 14px;}
  body.erp-plan01 #plan01PersonalActivity .p01-activity-periods [data-period] {min-width:100px;background:#f8fbfd;}
  body.erp-plan01 #plan01PersonalActivity [data-period][aria-pressed=true] {background:#008575;color:#fff;border-color:#008575;}
  body.erp-plan01 #p01ActivityExport {margin-left:auto;}
  body.erp-plan01 #plan01PersonalActivity .p01-activity-filters {display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 14px;}
  body.erp-plan01 #plan01PersonalActivity .p01-activity-filters label {display:flex;align-items:center;gap:8px;margin:0;font-size:13px;}
  body.erp-plan01 #plan01PersonalActivity .p01-activity-filters :is(input,select) {width:auto;min-width:0;border:1px solid #cbdbe7;border-radius:4px;background:#fff;padding:7px 10px;color:#172438;}
  body.erp-plan01 #plan01PersonalActivity .p01-activity-search {flex:1 1 300px;min-width:180px;border:1px solid #cbdbe7;border-radius:4px;padding:0 12px;}
  body.erp-plan01 #plan01PersonalActivity .p01-activity-search svg {width:19px;height:19px;fill:none;stroke:#66768c;stroke-width:1.75;flex:none;}
  body.erp-plan01 #plan01PersonalActivity #p01ActivitySearch {width:100%;border:0;padding:7px 0;background:transparent;}
  body.erp-plan01 #plan01PersonalActivity #p01ActivitySearch::placeholder {color:#66768c;opacity:1;}
  body.erp-plan01 #plan01PersonalActivity #p01ActivityMessage {font-size:12px;color:#596b80;min-height:18px;margin:8px 0 10px;}
  body.erp-plan01 #plan01PersonalActivity .p01-activity-table-wrap {overflow:auto;border:1px solid #e0e9f0;border-radius:5px;scrollbar-color:#99afca #f4f8fa;}
  body.erp-plan01 #plan01PersonalActivity table {width:100%;min-width:970px;table-layout:fixed;border-collapse:collapse;}
  body.erp-plan01 #plan01PersonalActivity tr {display:table-row;}
  body.erp-plan01 #plan01PersonalActivity :is(th,td) {display:table-cell;padding:12px 15px;height:60px;font-size:13px;text-align:left;font-weight:400;border:0;border-right:1px solid #edf2f6;border-bottom:1px solid #e0e9f0;vertical-align:middle;overflow-wrap:anywhere;white-space:normal;font-variant-numeric:tabular-nums;}
  body.erp-plan01 #plan01PersonalActivity td::before {content:none;}
  body.erp-plan01 #plan01PersonalActivity th {height:44px;font-size:12px;font-weight:650;color:#485b73;background:#f0f6f9;}
  body.erp-plan01 #plan01PersonalActivity th:nth-child(1) {width:24%;}
  body.erp-plan01 #plan01PersonalActivity th:nth-child(2) {width:12%;}
  body.erp-plan01 #plan01PersonalActivity th:nth-child(3) {width:17%;}
  body.erp-plan01 #plan01PersonalActivity th:nth-child(4) {width:19%;}
  body.erp-plan01 #plan01PersonalActivity th:nth-child(5) {width:18%;}
  body.erp-plan01 #plan01PersonalActivity th:nth-child(6) {width:10%;}
  body.erp-plan01 #plan01PersonalActivity tr:last-child td {border-bottom:0;}
  body.erp-plan01 #plan01PersonalActivity td small {display:block;margin-top:4px;font-size:12px;color:#146dab;}
  body.erp-plan01 #plan01PersonalActivity .p01-activity-chip {display:inline-block;padding:3px 8px;background:#eff4f7;border-radius:4px;color:#344d64;font-size:12px;}
  body.erp-plan01 #plan01PersonalActivity .p01-activity-empty {height:220px;text-align:center;color:#596b80;}
  body.erp-plan01 #plan01PersonalActivity .p01-activity-pager {display:flex;justify-content:space-between;align-items:center;gap:16px;margin:20px 0;font-size:12px;color:#596b80;}
  body.erp-plan01 #plan01PersonalActivity .p01-activity-pager>div {display:flex;align-items:center;gap:8px;}
  body.erp-plan01 #plan01PersonalActivity .p01-activity-pager select {border:1px solid #cbdbe7;border-radius:4px;padding:6px 10px;background:#fff;}
  body.erp-plan01 #plan01PersonalActivity #p01ActivityPage {min-width:34px;border:1px solid #008575;border-radius:4px;color:#00695d;padding:7px 10px;text-align:center;}
  body.erp-plan01 #plan01PersonalActivity .p01-activity-coverage {border:1px solid #e0e9f0;border-radius:5px;margin:24px 0;padding:12px 16px;color:#596b80;font-size:12px;}
  body.erp-plan01 #plan01PersonalActivity .p01-activity-coverage summary {cursor:pointer;}
  body.erp-plan01 #plan01PersonalActivity .p01-activity-coverage p {max-width:75ch;margin:10px 0 0;}
  body.erp-plan01 #plan01PersonalActivity dialog {width:min(520px,calc(100vw - 32px));padding:24px;border:1px solid #cbdbe7;border-radius:5px;background:#fff;color:#172438;box-shadow:0 14px 42px #17243822;}
  body.erp-plan01 #plan01PersonalActivity dialog::backdrop {background:#17243855;}
  body.erp-plan01 #plan01PersonalActivity dialog dl {display:grid;grid-template-columns:100px 1fr;gap:12px;margin:20px 0;}
  body.erp-plan01 #plan01PersonalActivity dialog dd {margin:0;overflow-wrap:anywhere;}
  body.erp-plan01 #plan01PersonalActivity dialog>p {font-size:12px;color:#596b80;}
  @media(max-width:980px) {
    body.erp-plan01 #plan01PersonalActivity .p01-activity-pager {align-items:flex-start;flex-direction:column;}
    body.erp-plan01 #plan01PersonalActivity .p01-activity-filters label {flex:1 1 auto;}
  }
  @media(max-width:600px) {
    body.erp-plan01 #plan01PersonalActivity .p01-activity-periods {flex-wrap:wrap;}
    body.erp-plan01 #p01ActivityExport {margin-left:0;}
    body.erp-plan01 #plan01PersonalActivity .p01-activity-pager>div {flex-wrap:wrap;}
  }
}

#p01NotificationSettings {color:var(--p01-ink,#172438);}
#p01NotificationSettings[hidden] {display:none!important;}
#p01NotificationSettings .p01-notification-actions {display:flex;justify-content:flex-end;gap:8px;margin-top:-56px;margin-bottom:30px;}
#p01NotificationSettings button {border:1px solid #cad8e5;background:#fff;color:#172438;border-radius:5px;padding:8px 19px;min-height:39px;font:inherit;cursor:pointer;}
#p01NotificationSettings button:hover:not(:disabled) {background:#edf8f5;}
#p01NotificationSettings .p01-notification-save {background:#008575;color:#fff;border-color:#008575;}
#p01NotificationSettings .p01-notification-save:hover:not(:disabled) {background:#007568;}
#p01NotificationSettings button:disabled {opacity:.55;cursor:not-allowed;}
#p01NotificationSettings .p01-notification-panel {border:1px solid #e0e9f0;background:#fff;border-radius:5px;padding:20px;margin-block:16px;}
#p01NotificationSettings h3 {font-size:20px;margin:0 0 18px;font-weight:700;}
#p01NotificationSettings .p01-notification-fields {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px 24px;}
#p01NotificationSettings label {display:flex;min-width:0;flex-direction:column;gap:8px;font-size:14px;font-weight:650;}
#p01NotificationSettings input:not([type=checkbox]),#p01NotificationSettings .p01-notification-switch {box-sizing:border-box;min-height:39px;width:100%;border:1px solid #cad8e5;border-radius:4px;padding:8px 12px;color:#40536a;font:400 14px 'PingFang SC','Microsoft YaHei',Arial,sans-serif;background:#fff;}
#p01NotificationSettings input[readonly] {background:#f4f8fa;}
#p01NotificationSettings .p01-notification-switch {display:flex;align-items:center;gap:8px;}
#p01NotificationSettings input[type=checkbox] {appearance:none;width:38px;height:22px;flex-shrink:0;border:1px solid #879caf;background:#879caf;border-radius:20px;position:relative;margin:0;}
#p01NotificationSettings input[type=checkbox]::before {content:'';display:block;background:#fff;border-radius:50%;width:16px;height:16px;position:absolute;top:2px;left:2px;}
#p01NotificationSettings input[type=checkbox]:checked {background:#008575;border-color:#008575;}
#p01NotificationSettings input[type=checkbox]:checked::before {left:18px;}
#p01NotificationSettings .p01-notification-note {padding:16px;background:#f4f8fa;border:1px solid #e0e9f0;border-radius:4px;color:#40536a;margin-top:24px;}
#p01NotificationSettings .p01-notification-footer {display:flex;justify-content:space-between;align-items:center;gap:16px;border-top:1px solid #e0e9f0;padding-top:20px;}
#p01NotificationSettings .p01-notification-footer>div {display:flex;flex-wrap:wrap;gap:8px;}
#p01NotificationSettings small,#p01NotificationSettings .p01-notification-footer>span {color:#66768c;font-weight:400;font-size:13px;}
#p01NotificationSettings :focus-visible {outline:2px solid #008575;outline-offset:3px;}
#p01NotificationSettings input {caret-color:#008575;}
#p01NotificationSettings ::selection {background:#d0f6eb;color:#172438;}
@media(max-width:980px){#p01NotificationSettings .p01-notification-fields{grid-template-columns:1fr;}#p01NotificationSettings .p01-notification-actions{margin-top:0;}#p01NotificationSettings .p01-notification-footer{align-items:flex-start;flex-direction:column;}}
@media(max-width:600px){#p01NotificationSettings input:not([type=checkbox]){font-size:16px;}#p01NotificationSettings .p01-notification-panel{padding:16px;}}

/* Narrow-screen task cards keep all original table cells and controls available. */
@layer plan01 {
  @media (max-width: 640px) {
    body.erp-plan01[data-active-view=dashboard] .p01-workbench-subnav { min-height:52px; padding:0 12px; }
    body.erp-plan01 .p01-workbench-subnav :is(button,span) { padding:7px 12px !important; }
    body.erp-plan01 #plan01Workbench .p01-task-stats > button { min-width:0; min-height:56px !important; padding:8px 10px !important; gap:7px; }
    body.erp-plan01 #plan01Workbench .p01-task-stats svg { width:19px; height:19px; }
    body.erp-plan01 #plan01Workbench .p01-task-stats span { font-size:13px; white-space:normal; line-height:1.3; }
    body.erp-plan01 #plan01Workbench .p01-task-stats strong { font-size:18px; }
    body.erp-plan01 #plan01Workbench .p01-task-groups { gap:6px; }
    body.erp-plan01 #plan01Workbench .p01-task-groups button { min-width:0; min-height:40px; padding:7px 12px; }
    body.erp-plan01 #plan01Workbench .p01-task-toolbar { align-items:flex-start; flex-direction:column; gap:8px; }
    body.erp-plan01 #plan01Workbench .p01-task-toolbar > div { flex-wrap:wrap; gap:8px; }
    body.erp-plan01 #plan01Workbench .p01-task-table-wrap { overflow:visible; border:0; }
    body.erp-plan01 #plan01Workbench .p01-task-table-wrap > .p01-task-table { display:block; min-width:0 !important; width:100% !important; }
    body.erp-plan01 #plan01Workbench .p01-task-table-wrap colgroup { display:none; }
    body.erp-plan01 #plan01Workbench .p01-task-table-wrap :is(thead,tbody) { display:block; }
    body.erp-plan01 #plan01Workbench .p01-task-table-wrap thead tr { display:flex !important; }
    body.erp-plan01 #plan01Workbench .p01-task-table-wrap thead th { display:none !important; }
    body.erp-plan01 #plan01Workbench .p01-task-table-wrap thead th:first-child { display:flex !important; align-items:center; gap:9px; height:auto !important; padding:8px 4px !important; background:transparent !important; border:0 !important; }
    body.erp-plan01 #plan01Workbench .p01-task-table-wrap thead th:first-child::after { content:'选择本页'; font-weight:500; }
    body.erp-plan01 #plan01Workbench #plan01TaskRows tr { display:grid !important; grid-template-columns:26px minmax(0,1fr) auto; align-items:start; gap:0 8px; margin:0 0 12px; padding:14px; border:1px solid #dce7ed; border-radius:8px; background:#fff; }
    body.erp-plan01 #plan01Workbench #plan01TaskRows td { display:block !important; height:auto !important; min-height:0 !important; min-width:0; white-space:normal !important; overflow-wrap:anywhere !important; padding:4px 0 !important; border:0 !important; }
    body.erp-plan01 #plan01Workbench #plan01TaskRows td:first-child { grid-column:1; grid-row:1; padding:7px 0 !important; }
    body.erp-plan01 #plan01Workbench #plan01TaskRows td:nth-child(2) { grid-column:3; grid-row:1; }
    body.erp-plan01 #plan01Workbench #plan01TaskRows td:nth-child(3) { grid-column:2; grid-row:1; font-size:15px !important; font-weight:650 !important; }
    body.erp-plan01 #plan01Workbench #plan01TaskRows td:nth-child(n+4) { grid-column:2 / 4; display:grid !important; grid-template-columns:4.5em minmax(0,1fr); column-gap:8px; }
    body.erp-plan01 #plan01Workbench #plan01TaskRows td:nth-child(n+4)::before { display:block !important; color:#66768c; font-size:12px; }
    body.erp-plan01 #plan01Workbench #plan01TaskRows td:nth-child(4)::before { content:'关联对象' !important; }
    body.erp-plan01 #plan01Workbench #plan01TaskRows td:nth-child(5)::before { content:'当前节点' !important; }
    body.erp-plan01 #plan01Workbench #plan01TaskRows td:nth-child(6)::before { content:'截止时间' !important; }
    body.erp-plan01 #plan01Workbench #plan01TaskRows td:nth-child(7)::before { content:'负责人' !important; }
    body.erp-plan01 #plan01Workbench #plan01TaskRows td:nth-child(8)::before { content:'操作' !important; }
    body.erp-plan01 #plan01Workbench #plan01TaskRows td small { grid-column:2; }
    body.erp-plan01 #plan01Workbench #plan01TaskRows .p01-task-link { max-width:100%; white-space:normal !important; overflow-wrap:anywhere !important; }
    body.erp-plan01 #plan01Workbench #plan01TaskRows td:nth-child(8) .p01-task-link { min-height:36px !important; display:inline-flex !important; align-items:center; font-size:14px !important; }
    body.erp-plan01 #plan01Workbench #plan01TaskRows td.p01-task-empty { grid-column:1 / -1; min-height:120px !important; display:flex !important; align-items:center; justify-content:center; }
    body.erp-plan01 #plan01Workbench #plan01TaskRows td.p01-task-empty::before { content:none !important; display:none !important; }
    body.erp-plan01 #plan01Workbench .p01-task-page-actions { gap:8px; }
    body.erp-plan01 #plan01Workbench .p01-task-page-actions :is(button,select,input) { min-height:40px !important; height:auto; }
    body.erp-plan01 #plan01Workbench .p01-task-page-actions label { margin-left:0; }
  }
}
