/* accessories-module-split-v1 */
/* ======================= 辅料跟进 tab (accessory-v1) ======================= */
.acc-page { padding: 20px 28px; max-width: 1280px; margin: 0 auto; }
.acc-top-row { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.acc-page-title { font-size: 20px; font-weight: 700; color: var(--ink); margin: 0; display: flex; align-items: center; gap: 8px; }
.acc-role-hint { font-size: 11px; color: var(--ink-mute); font-weight: 500; background: var(--bg-soft); padding: 3px 8px; border-radius: 10px; }

.acc-sub-tabs { display: inline-flex; background: #fff; border: 1px solid var(--line-soft); border-radius: 10px; padding: 3px; gap: 2px; }
.acc-sub-tab { padding: 6px 14px; border-radius: 7px; font-size: 12.5px; color: var(--ink-mute); cursor: pointer; font-weight: 500; display: flex; align-items: center; gap: 6px; background: transparent; border: none; }
.acc-sub-tab .acc-st-count { background: var(--bg-soft); color: var(--ink-mute); font-size: 10.5px; padding: 1px 6px; border-radius: 8px; font-weight: 600; }
.acc-sub-tab.active { background: var(--apple-blue); color: #fff; font-weight: 600; }
.acc-sub-tab.active .acc-st-count { background: rgba(255,255,255,0.22); color: #fff; }

.acc-action-bar { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.acc-filter-chip { background: #fff; border: 1px solid var(--line-soft); border-radius: 7px; padding: 5px 11px; font-size: 12px; color: var(--ink-mute); cursor: pointer; }
.acc-filter-chip:hover { background: var(--bg-soft); }

.acc-summary-strip { display: grid; grid-template-columns: 1fr 1fr 1fr; background: #fff; border: 1px solid var(--line-soft); border-radius: 12px; margin-bottom: 18px; overflow: hidden; }
.acc-summary-cell { padding: 12px 18px; border-right: 1px solid var(--line-soft); display: flex; align-items: center; gap: 12px; cursor: pointer; transition: background 0.15s; }
.acc-summary-cell:hover { background: var(--bg-soft); }
.acc-summary-cell:last-child { border-right: none; }
.acc-summary-cell .acc-sc-ico { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 9px; font-size: 16px; flex-shrink: 0; }
.acc-summary-cell.pending .acc-sc-ico { background: #FFF4E5; }
.acc-summary-cell.ordered .acc-sc-ico { background: #FFFBEC; }
.acc-summary-cell.received .acc-sc-ico { background: #E6F4EA; }
.acc-summary-cell .acc-sc-num { font-size: 22px; font-weight: 700; line-height: 1; }
.acc-summary-cell.pending .acc-sc-num { color: #8B4500; }
.acc-summary-cell.ordered .acc-sc-num { color: #7A6300; }
.acc-summary-cell.received .acc-sc-num { color: #137333; }
.acc-summary-cell .acc-sc-lbl { font-size: 11.5px; color: var(--ink-mute); margin-top: 2px; }
.acc-summary-cell.active { background: rgba(0, 122, 255, 0.07); }

/* peter-accessory-summary-unified-v2: 恢复一条白色摘要栏，状态颜色只留在图标和数字。 */
body.peter-topbar-trial.accessory-tab-active .acc-summary-strip {
  gap: 0;
  background: #FFFFFF;
  border: 1px solid #E5E5EA;
  border-radius: 12px;
  overflow: hidden;
}
body.peter-topbar-trial.accessory-tab-active .acc-summary-cell {
  min-height: 72px;
  padding: 12px 18px;
  background: #FFFFFF;
  border: 0;
  border-right: 1px solid #F0F0F3;
  border-radius: 0;
}
body.peter-topbar-trial.accessory-tab-active .acc-summary-cell:last-child {
  border-right: 0;
}
body.peter-topbar-trial.accessory-tab-active .acc-summary-cell:hover {
  background: #F9F9FB;
  filter: none;
}
body.peter-topbar-trial.accessory-tab-active .acc-summary-cell.active {
  background: #F5F5F7;
  box-shadow: none;
}

/* peter-accessory-toolbar-distill-v2: 去掉卡片套卡片，筛选保持单行，搜索可收缩。 */
@media (min-width: 901px) {
  body.peter-topbar-trial.accessory-tab-active .acc-workbench-head {
    padding: 18px 22px 16px;
    background: #FBFBFD;
    border-bottom: 1px solid #E8E8ED;
  }
  body.peter-topbar-trial.accessory-tab-active .acc-workbench-head .acc-top-row:first-child {
    margin-bottom: 12px;
    padding: 0 4px;
  }
  body.peter-topbar-trial.accessory-tab-active .acc-workbench-head .acc-top-row:nth-child(2) {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    margin-bottom: 12px;
    padding: 6px;
    gap: 12px;
    background: #EBEBEF;
    border: 0;
    border-radius: 12px;
    box-shadow: none;
  }
  body.peter-topbar-trial.accessory-tab-active .acc-sub-tabs {
    min-height: 42px;
    box-sizing: border-box;
    padding: 4px;
    background: transparent;
    border-color: transparent;
    border-radius: 9px;
  }
  body.peter-topbar-trial.accessory-tab-active .acc-sub-tab {
    min-height: 32px;
    padding: 0 14px;
    border-radius: 8px;
  }
  body.peter-topbar-trial.accessory-tab-active .acc-action-bar {
    display: grid;
    grid-template-columns: 132px 132px 160px minmax(240px, 360px);
    align-items: center;
    gap: 8px;
    width: 100%;
    min-width: 0;
    justify-content: flex-end;
  }
  body.peter-topbar-trial.accessory-tab-active #accSearchInput {
    width: 100% !important;
    max-width: none !important;
    min-width: 0;
  }
  body.peter-topbar-trial.accessory-tab-active :is(.acc-filter-select, .acc-ef-date-wrap) {
    height: 42px;
    min-height: 42px;
    box-sizing: border-box;
    border-color: #D9DCE3;
    border-radius: 12px;
  }
  body.peter-topbar-trial.accessory-tab-active .acc-summary-strip {
    margin-bottom: 0;
  }
}
@media (min-width: 901px) and (max-width: 1680px) {
  body.peter-topbar-trial.accessory-tab-active .acc-workbench-head .acc-top-row:nth-child(2) {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }
  body.peter-topbar-trial.accessory-tab-active .acc-action-bar {
    grid-template-columns: 120px 120px 150px minmax(220px, 1fr);
  }
}

.acc-group { background: #fff; border: 1px solid var(--line-soft); border-radius: 12px; margin-bottom: 18px; overflow: hidden; }
.acc-group-head { padding: 12px 18px; background: var(--bg-soft); border-bottom: 1px solid var(--line-soft); display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; cursor: pointer; }
.acc-group-head .acc-chev { transition: transform 0.2s; color: var(--ink-mute); font-size: 10px; }
.acc-group.collapsed .acc-group-head .acc-chev { transform: rotate(-90deg); }
.acc-group.collapsed .acc-list { display: none; }
.acc-group-head .acc-gh-dot { width: 9px; height: 9px; border-radius: 50%; }
.acc-group-head .acc-gh-count { color: var(--ink-mute); font-weight: 500; font-size: 12px; }
.acc-group-head .acc-gh-actions { margin-left: auto; display: flex; gap: 6px; }

.acc-btn-mini { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 5px 11px; font-size: 12px; color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.acc-btn-mini:hover { border-color: var(--apple-blue); color: var(--apple-blue); }
.acc-btn-mini.primary { background: var(--apple-blue); color: #fff; border-color: var(--apple-blue); }
.acc-btn-mini.primary:hover { background: #0051D5; color: #fff; }

.acc-list { display: flex; flex-direction: column; }
.acc-row { display: grid; grid-template-columns: 28px 56px 1fr auto auto auto; gap: 12px; align-items: center; padding: 11px 18px; border-bottom: 1px solid var(--line-soft); cursor: pointer; }
.acc-row:last-child { border-bottom: none; }
.acc-row:hover { background: rgba(0, 122, 255, 0.025); }
.acc-row.selected { background: rgba(0, 122, 255, 0.06); }
.acc-row .acc-cb { width: 16px; height: 16px; accent-color: var(--apple-blue); cursor: pointer; }
.acc-row .acc-thumb { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; background: #ddd; border: 1px solid var(--line-soft); }
.acc-row .acc-thumb.placeholder { display: flex; align-items: center; justify-content: center; font-size: 9px; color: var(--ink-soft); background: var(--bg-soft); }
.acc-row .acc-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.acc-row .acc-style { font-weight: 600; font-size: 13.5px; color: var(--ink); }
.acc-row .acc-style .acc-po-no { color: var(--ink-soft); font-weight: 500; margin-left: 6px; font-size: 12px; }
.acc-row .acc-sub-info { font-size: 11.5px; color: var(--ink-mute); display: flex; align-items: center; gap: 10px; }
.acc-row .acc-color-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 4px; vertical-align: middle; border: 1px solid rgba(0,0,0,0.1); }
.acc-row .acc-ex { font-size: 11.5px; color: var(--ink-mute); text-align: right; min-width: 78px; line-height: 1.3; }
.acc-row .acc-ex.urgent { color: var(--danger); font-weight: 600; }

.acc-chips { display: flex; gap: 6px; align-items: center; }
.acc-chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 6px; font-size: 11.5px; font-weight: 600; cursor: pointer; border: 1px solid transparent; user-select: none; }
.acc-chip:hover { filter: brightness(0.96); }
.acc-chip.pending { background: #FFF4E5; color: #8B4500; border-color: rgba(139, 69, 0, 0.22); animation: acc-pulse 2.4s ease-in-out infinite; }
.acc-chip.ordered { background: #FFFBEC; color: #7A6300; border-color: rgba(122, 99, 0, 0.18); }
.acc-chip.received { background: #E6F4EA; color: #137333; border-color: rgba(19, 115, 51, 0.20); }
.acc-chip .acc-chip-date { color: rgba(0,0,0,0.45); font-weight: 500; font-size: 10.5px; margin-left: 2px; }
@keyframes acc-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 149, 0, 0.35); }
  50%      { box-shadow: 0 0 0 4px rgba(255, 149, 0, 0); }
}

.acc-quick { display: inline-flex; align-items: center; gap: 5px; }
.acc-quick .acc-qb { background: var(--apple-blue); color: #fff; border: none; border-radius: 6px; padding: 5px 10px; font-size: 11.5px; cursor: pointer; font-weight: 600; }
.acc-quick .acc-qb:hover { background: #0051D5; }
.acc-quick .acc-qb.green { background: #2f9a4a; }
.acc-quick .acc-qb.green:hover { background: #258a3e; }

.acc-bulk-bar { background: #1d1d1f; color: #fff; border-radius: 10px; padding: 12px 18px; display: flex; align-items: center; gap: 12px; margin-bottom: 14px; box-shadow: 0 8px 24px rgba(0,0,0,0.18); position: sticky; top: 12px; z-index: 5; }
.acc-bulk-bar .acc-bb-pill { background: #fff; color: #1d1d1f; font-weight: 700; padding: 4px 11px; border-radius: 14px; font-size: 12.5px; }
.acc-bulk-bar .acc-bb-hint { color: rgba(255,255,255,0.7); font-size: 12px; }
.acc-bulk-bar .acc-bb-actions { margin-left: auto; display: flex; gap: 8px; }
.acc-bulk-bar .acc-bb-btn { background: rgba(255,255,255,0.10); color: #fff; border: 1px solid rgba(255,255,255,0.20); border-radius: 7px; padding: 6px 14px; font-size: 12.5px; cursor: pointer; font-weight: 500; }
.acc-bulk-bar .acc-bb-btn:hover { background: rgba(255,255,255,0.20); }
.acc-bulk-bar .acc-bb-btn.primary { background: var(--apple-blue); border-color: var(--apple-blue); }
.acc-bulk-bar .acc-bb-close { background: transparent; border: none; color: rgba(255,255,255,0.5); cursor: pointer; font-size: 18px; }

.acc-empty { background: #fff; border: 1px solid var(--line-soft); border-radius: 12px; padding: 40px 20px; text-align: center; color: var(--ink-mute); }
.acc-empty h3 { color: var(--ink); margin: 0 0 6px; font-size: 16px; }
.acc-empty p { margin: 0; font-size: 13px; }

/* 辅料 tab 顶部筛选器 chips + search */
.acc-filter-select {
  background: #fff; border: 1px solid var(--line-soft);
  border-radius: 7px; padding: 5px 11px;
  font-size: 12px; color: var(--ink);
  cursor: pointer; font-family: inherit;
}
.acc-filter-select:hover { border-color: var(--line); }
.acc-filter-select.active {
  background: rgba(0, 122, 255, 0.08);
  border-color: var(--apple-blue);
  color: var(--apple-blue);
  font-weight: 600;
}
.acc-search-input {
  background: #fff; border: 1px solid var(--line-soft);
  border-radius: 7px; padding: 5px 11px;
  font-size: 12px; width: 180px; font-family: inherit;
}
.acc-search-input:focus { outline: none; border-color: var(--apple-blue); }
.acc-filter-clear {
  background: transparent; border: 1px solid var(--line-soft);
  border-radius: 7px; padding: 4px 10px;
  font-size: 11.5px; color: var(--ink-mute);
  cursor: pointer;
}
.acc-filter-clear:hover { color: var(--apple-blue); border-color: var(--apple-blue); }
.acc-ef-date-wrap {
  display: inline-flex; align-items: center; gap: 4px;
  background: #fff; border: 1px solid var(--line-soft);
  border-radius: 7px; padding: 0 6px 0 10px;
}
.acc-ef-date-wrap.active { background: rgba(0, 122, 255, 0.08); border-color: var(--apple-blue); }
.acc-ef-date-wrap input[type="date"] {
  border: none; background: transparent;
  font-size: 12px; padding: 5px 0; outline: none;
  font-family: inherit;
}
.acc-ef-date-wrap .acc-ef-clear {
  background: transparent; border: none; cursor: pointer;
  color: var(--ink-soft); font-size: 14px;
  padding: 2px 4px;
}
.acc-ef-date-wrap .acc-ef-clear:hover { color: var(--danger); }

/* peter-accessory-workspace-parity-v1:
 * Peter 辅料页直接接入版师 / 采购 / 版房 / 工厂共享工作区几何。
 * 普通账号继续使用上方原 acc-* DOM 与样式。 */
html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-workspace.erp-workspace-shell {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main
  .acc-peter-workspace > .acc-peter-content.erp-workspace-section-content {
  box-sizing: border-box;
  height: 100%;
  min-height: 0;
  padding: 16px 16px 0 !important;
  grid-template-rows: max-content minmax(0, 1fr);
  align-content: stretch;
  gap: 16px;
  overflow: hidden;
}

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-controls {
  flex: 0 0 auto;
}

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main
  .acc-peter-controls-main.erp-workspace-controls-main {
  justify-content: space-between;
}

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-control-group {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-control-label {
  color: var(--gc-wb-text-muted, #6e6e73);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main
  .acc-peter-type-tabs.pattern-segmented {
  box-sizing: border-box;
  height: 36px;
  min-height: 36px;
  padding: 3px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  border: 1px solid rgba(60, 60, 67, 0.08);
  border-radius: 10px;
  background: rgba(118, 118, 128, 0.12);
}

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main
  .acc-peter-type-tab.pattern-segment {
  box-sizing: border-box;
  min-width: 86px;
  height: 30px;
  min-height: 30px;
  padding: 0 12px;
  border: 0;
  border-radius: 7px;
  color: var(--gc-wb-text-secondary, #424248);
  background: transparent;
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-type-tab strong {
  margin-left: 5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-type-tab:hover {
  color: var(--gc-wb-text, #1d1d1f);
  background: rgba(255, 255, 255, 0.54);
}

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-type-tab.active {
  color: #fff;
  background: var(--gc-wb-primary, #007aff);
  box-shadow: 0 1px 3px rgba(0, 80, 180, 0.18);
}

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-filter-controls {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main
  :is(.acc-peter-filter-select, .acc-peter-date-filter) {
  box-sizing: border-box;
  height: 36px;
  min-height: 36px;
  border: 1px solid var(--gc-wb-line, rgba(60, 60, 67, 0.14));
  border-radius: 9px;
  color: var(--gc-wb-text, #1d1d1f);
  background: var(--gc-wb-surface, #fff);
  font: inherit;
  font-size: 12px;
}

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-filter-select {
  min-width: 112px;
  padding: 0 30px 0 10px;
  cursor: pointer;
}

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-date-filter {
  padding: 0 8px 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gc-wb-text-muted, #6e6e73);
  white-space: nowrap;
}

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-date-filter input {
  min-width: 112px;
  height: 32px;
  padding: 0;
  border: 0;
  outline: 0;
  color: var(--gc-wb-text, #1d1d1f);
  background: transparent;
  font: inherit;
  font-size: 12px;
}

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main
  :is(.acc-peter-filter-select.active, .acc-peter-date-filter.active) {
  border-color: rgba(0, 122, 255, 0.55);
  background: rgba(0, 122, 255, 0.06);
}

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-clear-filter {
  height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  color: var(--gc-wb-text-muted, #6e6e73);
  background: transparent;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-clear-filter:hover {
  color: var(--gc-wb-primary, #007aff);
  background: rgba(0, 122, 255, 0.06);
}

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main
  .acc-peter-search-row.erp-workspace-search-row {
  gap: 12px;
}

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main
  .acc-peter-searchbar.pattern-workspace-searchbar {
  --pq2-toolbar-control-height: 36px;
  flex: 0 1 430px !important;
  width: min(430px, 100%) !important;
  max-width: 430px;
}

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-result-count {
  color: var(--gc-wb-text-muted, #6e6e73);
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-search-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-scroll {
  min-width: 0;
  min-height: 0;
  padding: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-group {
  flex: 0 0 auto;
  min-width: 0;
}

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main
  .acc-peter-stage-head.erp-workspace-stage-head {
  position: relative;
  min-height: 30px;
  margin: 0 0 6px;
  padding: 0 2px 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0;
  color: var(--gc-wb-text, #1d1d1f);
  background: transparent;
  cursor: pointer;
}

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main
  .acc-peter-stage-head.erp-workspace-stage-head::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 3px;
  height: 22px;
  border-radius: 2px;
  background: var(--gc-wb-primary, #007aff);
}

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-stage-line {
  display: none;
}

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-stage-head > strong {
  font-size: 13.5px;
  font-weight: 700;
}

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-stage-count {
  color: var(--gc-wb-text-muted, #6e6e73);
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
}

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-collapse-btn {
  width: 24px;
  height: 24px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 6px;
  color: var(--gc-wb-text-muted, #6e6e73);
  background: transparent;
  cursor: pointer;
}

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-collapse-btn svg {
  transition: transform 150ms ease;
}

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-group.is-collapsed .acc-peter-collapse-btn svg {
  transform: rotate(-90deg);
}

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-stage-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-group-btn {
  box-sizing: border-box;
  height: 30px;
  padding: 0 10px;
  border: 1px solid var(--gc-wb-line-strong, rgba(60, 60, 67, 0.24));
  border-radius: 8px;
  color: var(--gc-wb-text, #1d1d1f);
  background: var(--gc-wb-surface, #fff);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-group-btn:hover {
  border-color: rgba(0, 122, 255, 0.45);
  color: var(--gc-wb-primary, #007aff);
}

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-group-btn.primary {
  border-color: var(--gc-wb-primary, #007aff);
  color: #fff;
  background: var(--gc-wb-primary, #007aff);
}

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-group-btn.primary:hover {
  color: #fff;
  background: var(--gc-wb-primary-hover, #0051d5);
}

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-ledger-scroll {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
}

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-group.is-collapsed .acc-peter-ledger-scroll {
  display: none;
}

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-ledger-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  table-layout: fixed;
  color: var(--gc-wb-text, #1d1d1f);
  background: var(--gc-wb-surface, #fff);
}

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-ledger-table.is-single {
  min-width: 860px;
}

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-ledger-table th {
  box-sizing: border-box;
  height: 40px;
  padding: 0 14px;
  border-top: 1px solid var(--gc-wb-line, rgba(60, 60, 67, 0.14));
  border-bottom: 1px solid var(--gc-wb-line, rgba(60, 60, 67, 0.14));
  color: var(--gc-wb-text-muted, #6e6e73);
  background: var(--gc-wb-surface-muted, #f9f9fb);
  font-size: 11.5px;
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
}

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-ledger-table.is-all th:nth-child(1) { width: 28%; }
html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-ledger-table.is-all th:nth-child(2) { width: 12%; }
html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-ledger-table.is-all th:nth-child(3) { width: 14%; }
html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-ledger-table.is-all th:nth-child(4) { width: 11%; }
html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-ledger-table.is-all th:nth-child(5),
html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-ledger-table.is-all th:nth-child(6) { width: 10%; }
html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-ledger-table.is-all th:nth-child(7) { width: 15%; }

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-ledger-table.is-single th:nth-child(1) { width: 31%; }
html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-ledger-table.is-single th:nth-child(2) { width: 14%; }
html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-ledger-table.is-single th:nth-child(3) { width: 17%; }
html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-ledger-table.is-single th:nth-child(4) { width: 12%; }
html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-ledger-table.is-single th:nth-child(5) { width: 12%; }
html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-ledger-table.is-single th:nth-child(6) { width: 14%; }

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-row {
  height: 82px;
  border-bottom: 1px solid var(--gc-wb-line, rgba(60, 60, 67, 0.14));
  background: var(--gc-wb-surface, #fff);
  cursor: pointer;
}

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-row:hover {
  background: var(--bg-hover, #f7f7f9);
}

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-row.is-selected {
  background: rgba(0, 122, 255, 0.06);
  box-shadow: inset 3px 0 var(--gc-wb-primary, #007aff);
}

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-row td {
  box-sizing: border-box;
  padding: 8px 14px;
  vertical-align: middle;
  font-size: 12.5px;
}

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-row td > strong {
  display: block;
  overflow: hidden;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-style-wrap {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-checkbox {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  accent-color: var(--gc-wb-primary, #007aff);
  cursor: pointer;
}

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-thumb {
  box-sizing: border-box;
  flex: 0 0 48px;
  width: 48px;
  height: 62px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gc-wb-line, rgba(60, 60, 67, 0.14));
  border-radius: 8px;
  object-fit: cover;
  color: var(--gc-wb-text-muted, #6e6e73);
  background: var(--gc-wb-surface-muted, #f9f9fb);
  font-size: 8px;
}

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-cell-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-cell-copy strong {
  overflow: hidden;
  color: var(--gc-wb-text, #1d1d1f);
  font-size: 13px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main
  :is(.acc-peter-cell-copy span, .acc-peter-cell-meta) {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: var(--gc-wb-text-muted, #6e6e73);
  font-size: 11.5px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-cell-copy span {
  margin-top: 0;
}

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-color-line {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-color-line strong {
  overflow: hidden;
  font-size: 12.5px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-color-dot {
  box-sizing: border-box;
  flex: 0 0 10px;
  width: 10px;
  height: 10px;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 50%;
}

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main button.acc-peter-color-dot {
  cursor: pointer;
}

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-ex {
  font-variant-numeric: tabular-nums;
}

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-ex.is-urgent > strong,
html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-ex.is-urgent .acc-peter-cell-meta {
  color: var(--gc-wb-danger, #d70015);
}

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-status {
  box-sizing: border-box;
  min-width: 72px;
  min-height: 34px;
  padding: 5px 9px;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  border: 1px solid transparent;
  border-radius: 8px;
  font: inherit;
  line-height: 1;
  cursor: pointer;
}

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-status strong {
  font-size: 11.5px;
  font-weight: 700;
}

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-status span {
  font-size: 10px;
  opacity: 0.72;
}

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-status.pending {
  border-color: rgba(178, 84, 0, 0.22);
  color: #8b4500;
  background: #fff4e5;
}

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-status.ordered {
  border-color: rgba(122, 99, 0, 0.2);
  color: #756000;
  background: #fffbec;
}

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-status.received {
  border-color: rgba(19, 115, 51, 0.2);
  color: #137333;
  background: #e6f4ea;
}

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-row-action {
  box-sizing: border-box;
  min-width: 92px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--gc-wb-primary, #007aff);
  border-radius: 9px;
  color: #fff;
  background: var(--gc-wb-primary, #007aff);
  font: inherit;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-row-action:hover {
  background: var(--gc-wb-primary-hover, #0051d5);
}

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-row-action.is-success {
  border-color: var(--gc-wb-success, #248a3d);
  background: var(--gc-wb-success, #248a3d);
}

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-group-empty {
  height: 64px;
  color: var(--gc-wb-text-muted, #6e6e73);
  text-align: center;
}

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-bulk {
  box-sizing: border-box;
  min-height: 52px;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  position: sticky;
  top: 0;
  z-index: 5;
  border-radius: 10px;
  color: #fff;
  background: #1d1d1f;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
}

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-bulk > strong {
  padding: 5px 9px;
  border-radius: 7px;
  color: #1d1d1f;
  background: #fff;
  font-size: 12px;
}

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-bulk > span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 11.5px;
}

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-bulk-actions {
  margin-left: auto;
  display: flex;
  gap: 7px;
}

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-bulk-btn {
  height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  font: inherit;
  font-size: 11.5px;
  cursor: pointer;
}

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-bulk-btn.primary {
  border-color: var(--gc-wb-primary, #007aff);
  background: var(--gc-wb-primary, #007aff);
}

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-bulk-btn.quiet {
  border-color: transparent;
  color: rgba(255, 255, 255, 0.68);
  background: transparent;
}

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-empty {
  min-height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--gc-wb-text-muted, #6e6e73);
  font-size: 12px;
}

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-empty strong {
  color: var(--gc-wb-text, #1d1d1f);
  font-size: 14px;
}

@media (max-width: 1200px) {
  html body.peter-accessory-workspace-pilot.accessory-tab-active main#main
    .acc-peter-controls-main.erp-workspace-controls-main {
    align-items: flex-start;
  }

  html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-control-group:last-child {
    width: 100%;
  }

  html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-filter-controls {
    flex: 1 1 auto;
    justify-content: flex-start;
  }
}

@media (max-width: 900px) {
  html body.peter-accessory-workspace-pilot.accessory-tab-active main#main
    .acc-peter-workspace > .acc-peter-content.erp-workspace-section-content {
    padding: 14px 14px 0 !important;
  }

  html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-control-group {
    width: 100%;
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-type-tabs {
    width: 100%;
    height: 44px;
    min-height: 44px;
    overflow-x: auto;
  }

  html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-type-tab.pattern-segment {
    flex: 1 0 auto;
    height: 38px;
    min-height: 38px;
  }

  html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-filter-controls {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  html body.peter-accessory-workspace-pilot.accessory-tab-active main#main
    :is(.acc-peter-filter-select, .acc-peter-date-filter) {
    width: 100%;
    height: 44px;
    min-height: 44px;
  }

  html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-date-filter input {
    width: 100%;
  }

  html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-search-row {
    flex-wrap: wrap;
  }

  html body.peter-accessory-workspace-pilot.accessory-tab-active main#main
    .acc-peter-searchbar.pattern-workspace-searchbar {
    --pq2-toolbar-control-height: 44px;
    flex-basis: 100% !important;
    width: 100% !important;
    max-width: none;
  }

  html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-stage-head {
    flex-wrap: wrap;
  }

  html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-stage-actions {
    flex: 1 0 100%;
    margin-left: 32px;
  }

  html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-bulk {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-bulk-actions {
    flex: 1 0 100%;
    margin-left: 0;
    overflow-x: auto;
  }
}

@media (max-width: 720px) {
  html body.peter-accessory-workspace-pilot.accessory-tab-active main#main
    .acc-peter-workspace > .acc-peter-content.erp-workspace-section-content {
    padding: 12px 12px 0 !important;
    gap: 14px;
  }

  html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-filter-controls {
    grid-template-columns: minmax(0, 1fr);
  }

  html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-result-count {
    width: 100%;
  }

  html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-stage-actions {
    overflow-x: auto;
  }

  html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-group-btn {
    flex: 0 0 auto;
    min-height: 36px;
  }
}
/* peter-accessory-workspace-parity-v1:end */

/* peter-accessory-formal-parity-correction-v2:
 * 正式 80% 实机对照版师 / 采购 / 版房 / 工厂后的最小修正。
 * 去掉旧 Peter 辅料整页 inset panel；筛选、状态和操作降低为共享工作台的轻量层级。
 * 仅改变 Peter 辅料灰度分支的视觉，不改变筛选值、状态切换或批量动作。 */
@media (min-width: 901px) {
  html body.gc-admin-shell-pilot.peter-topbar-trial.peter-accessory-workspace-pilot.accessory-tab-active main#main {
    flex: 1 1 auto;
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 12px 28px 28px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: hidden !important;
    isolation: auto;
  }

  html body.gc-admin-shell-pilot.peter-topbar-trial.peter-accessory-workspace-pilot.accessory-tab-active main#main
    .acc-peter-workspace.erp-workspace-shell > .acc-peter-content.erp-workspace-section-content {
    padding: 0 !important;
  }
}

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-filter-controls {
  box-sizing: border-box;
  height: 36px;
  min-height: 36px;
  padding: 3px;
  gap: 2px;
  border: 1px solid rgba(60, 60, 67, 0.08);
  border-radius: 10px;
  background: rgba(118, 118, 128, 0.12);
}

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main
  :is(.acc-peter-filter-select, .acc-peter-date-filter) {
  height: 30px;
  min-height: 30px;
  border: 0;
  border-radius: 7px;
  background: transparent;
}

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main
  :is(.acc-peter-filter-select, .acc-peter-date-filter):hover {
  background: rgba(255, 255, 255, 0.58);
}

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main
  :is(.acc-peter-filter-select, .acc-peter-date-filter).active {
  color: var(--gc-wb-primary, #007aff);
  background: var(--gc-wb-surface, #fff);
  box-shadow: 0 1px 3px rgba(0, 80, 180, 0.12);
}

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-status {
  position: relative;
  min-width: 62px;
  min-height: 28px;
  padding: 4px 7px 4px 18px;
  gap: 1px;
  border: 0;
  border-radius: 6px;
  background: transparent;
}

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-status::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-status.pending {
  color: #9a4f00;
  background: rgba(255, 244, 229, 0.72);
}

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-status.ordered {
  color: #756000;
  background: rgba(255, 251, 236, 0.72);
}

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-status.received {
  color: #248a3d;
  background: rgba(237, 248, 239, 0.78);
}

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-row-action,
html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-row-action.is-success {
  min-width: 92px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(60, 60, 67, 0.18);
  border-radius: 8px;
  color: var(--gc-wb-text, #1d1d1f);
  background: var(--gc-wb-surface, #fff);
  box-shadow: none;
}

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-row-action:hover,
html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-row-action.is-success:hover {
  border-color: rgba(60, 60, 67, 0.22);
  color: var(--gc-wb-text, #1d1d1f);
  background: var(--gc-wb-surface-muted, #f5f5f7);
}

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-group-btn.primary {
  border-color: rgba(60, 60, 67, 0.18);
  color: var(--gc-wb-text, #1d1d1f);
  background: var(--gc-wb-surface, #fff);
  box-shadow: none;
}

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-group-btn.primary:hover {
  border-color: rgba(60, 60, 67, 0.22);
  background: var(--gc-wb-surface-muted, #f5f5f7);
}

@media (max-width: 900px) {
  html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-filter-controls {
    height: auto;
  }

  html body.peter-accessory-workspace-pilot.accessory-tab-active main#main
    :is(.acc-peter-filter-select, .acc-peter-date-filter) {
    height: 38px;
    min-height: 38px;
    background: var(--gc-wb-surface, #fff);
  }
}
/* peter-accessory-formal-parity-correction-v2:end */

/* peter-accessory-ledger-color-polish-v4:
 * 版房表格边界 + Apple 语义状态色。只修 Peter 辅料灰度页的视觉层，
 * 不改变状态值、日期、点击动作、分组口径或普通账号旧界面。 */
html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-ledger-scroll {
  box-sizing: border-box;
  border: 1px solid var(--gc-wb-line, rgba(60, 60, 67, 0.14));
  border-radius: 12px;
  background: var(--gc-wb-surface, #fff);
}

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-ledger-table th {
  border-top: 0;
}

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-ledger-table tbody tr:last-child {
  border-bottom: 0;
}

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-row:hover {
  background: rgba(120, 120, 128, 0.055);
}

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-row.is-selected {
  background: rgba(0, 122, 255, 0.055);
}

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-status {
  min-width: 60px;
  min-height: 30px;
  padding: 5px 8px 5px 19px;
  border-radius: 8px;
  transition: background-color 120ms ease-out;
}

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-status::before {
  left: 8px;
  top: 10px;
}

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-status strong {
  font-weight: 650;
}

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-status span {
  color: currentColor;
  font-weight: 500;
  opacity: 0.62;
}

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-status.pending {
  color: #9a4f00;
  background: rgba(255, 149, 0, 0.09);
}

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-status.ordered {
  color: #0066cc;
  background: rgba(0, 122, 255, 0.085);
}

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-status.received {
  color: #1f7a37;
  background: rgba(52, 199, 89, 0.09);
}

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-status:hover {
  background-color: rgba(120, 120, 128, 0.12);
}

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-status:focus-visible {
  outline: 3px solid rgba(0, 122, 255, 0.28);
  outline-offset: 2px;
}
/* peter-accessory-ledger-color-polish-v4:end */

/* peter-accessory-direct-status-v5:
 * Peter 辅料灰度页改为一次打开、直接选择状态；同时优化筛选菜单、选择列和窄屏表格。
 * 仅作用于 peter-accessory-workspace-pilot，不改变普通账号的 DOM 和视觉。 */
html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-filter-custom {
  position: relative;
  min-width: 132px;
  height: 30px;
  border-radius: 7px;
}

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-filter-trigger {
  box-sizing: border-box;
  width: 100%;
  height: 30px;
  padding: 0 9px 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 0;
  border-radius: 7px;
  color: var(--gc-wb-text, #1d1d1f);
  background: transparent;
  font: inherit;
  font-size: 12px;
  text-align: left;
  cursor: pointer;
}

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-filter-trigger span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-filter-trigger svg {
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  color: var(--gc-wb-text-muted, #6e6e73);
  transition: transform 120ms ease-out;
}

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main
  .acc-peter-filter-custom:is(:hover, .is-open) .acc-peter-filter-trigger {
  background: rgba(255, 255, 255, 0.62);
}

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main
  .acc-peter-filter-custom.active .acc-peter-filter-trigger {
  color: var(--gc-wb-primary, #007aff);
  background: var(--gc-wb-surface, #fff);
  box-shadow: 0 1px 3px rgba(0, 80, 180, 0.12);
}

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main
  .acc-peter-filter-custom.is-open .acc-peter-filter-trigger {
  outline: 3px solid rgba(0, 122, 255, 0.22);
  outline-offset: 1px;
}

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main
  .acc-peter-filter-custom.is-open .acc-peter-filter-trigger svg {
  transform: rotate(180deg);
}

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-filter-menu {
  box-sizing: border-box;
  position: absolute;
  z-index: 80;
  top: calc(100% + 7px);
  left: -3px;
  min-width: calc(100% + 6px);
  max-height: 268px;
  padding: 5px;
  overflow-y: auto;
  border: 1px solid rgba(60, 60, 67, 0.16);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14), 0 2px 8px rgba(0, 0, 0, 0.06);
  backdrop-filter: saturate(180%) blur(18px);
}

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main
  :is(.acc-peter-filter-menu, .acc-peter-action-menu)[hidden] {
  display: none !important;
}

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-filter-option {
  box-sizing: border-box;
  width: 100%;
  min-height: 34px;
  padding: 0 10px 0 7px;
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  border: 0;
  border-radius: 7px;
  color: var(--gc-wb-text, #1d1d1f);
  background: transparent;
  font: inherit;
  font-size: 12px;
  text-align: left;
  cursor: pointer;
}

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-filter-option:hover,
html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-filter-option:focus-visible {
  outline: 0;
  background: var(--gc-wb-surface-muted, #f5f5f7);
}

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-filter-option.is-selected {
  color: #005ecb;
  background: rgba(0, 122, 255, 0.09);
}

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-filter-check {
  width: 15px;
  height: 15px;
  opacity: 0;
}

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main
  .acc-peter-filter-option.is-selected .acc-peter-filter-check {
  opacity: 1;
}

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-action-menu {
  box-sizing: border-box;
  position: fixed;
  z-index: 400;
  min-width: 158px;
  padding: 5px;
  border: 1px solid rgba(60, 60, 67, 0.16);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.16), 0 2px 8px rgba(0, 0, 0, 0.06);
  backdrop-filter: saturate(180%) blur(18px);
}

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-action-option {
  box-sizing: border-box;
  width: 100%;
  min-height: 36px;
  padding: 0 11px 0 7px;
  display: grid;
  grid-template-columns: 17px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 7px;
  color: var(--gc-wb-text, #1d1d1f);
  background: transparent;
  font: inherit;
  font-size: 12.5px;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
}

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main
  .acc-peter-action-option:is(:hover, :focus-visible) {
  outline: 0;
  background: var(--gc-wb-surface-muted, #f5f5f7);
}

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-action-option.is-pending {
  color: #9a4f00;
}

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-action-option.is-ordered {
  color: #0066cc;
}

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-action-option.is-received {
  color: #1f7a37;
}

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-action-check {
  width: 16px;
  height: 16px;
  opacity: 0;
}

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main
  .acc-peter-action-option.is-selected .acc-peter-action-check {
  opacity: 1;
}

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-status {
  min-width: 70px;
  min-height: 30px;
  padding: 4px 20px 4px 8px;
  border-radius: 7px;
  background: transparent;
}

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-status::before {
  display: none;
}

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-status.pending,
html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-status.ordered,
html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-status.received {
  background: transparent;
}

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-status:hover,
html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-status[aria-expanded="true"] {
  background: rgba(120, 120, 128, 0.09);
}

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-status-chevron {
  position: absolute;
  top: 50%;
  right: 5px;
  width: 14px;
  height: 14px;
  opacity: 0.5;
  transform: translateY(-50%);
  transition: transform 120ms ease-out;
}

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main
  .acc-peter-status[aria-expanded="true"] .acc-peter-status-chevron {
  transform: translateY(-50%) rotate(180deg);
}

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-row-action,
html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-row-action.is-success {
  min-width: 98px;
  padding: 0 9px 0 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-row-action svg {
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  color: var(--gc-wb-text-muted, #6e6e73);
  transition: transform 120ms ease-out;
}

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main
  .acc-peter-row-action[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-style-cell {
  padding-left: 14px;
}

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-style-wrap {
  gap: 8px;
}

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-ledger-table.is-all th:nth-child(1) { width: 28%; }
html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-ledger-table.is-all th:nth-child(2) { width: 12%; }
html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-ledger-table.is-all th:nth-child(3) { width: 14%; }
html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-ledger-table.is-all th:nth-child(4) { width: 11%; }
html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-ledger-table.is-all th:nth-child(5),
html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-ledger-table.is-all th:nth-child(6) { width: 10%; }
html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-ledger-table.is-all th:nth-child(7) { width: 15%; }

html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-ledger-table.is-single th:nth-child(1) { width: 31%; }
html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-ledger-table.is-single th:nth-child(2) { width: 14%; }
html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-ledger-table.is-single th:nth-child(3) { width: 17%; }
html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-ledger-table.is-single th:nth-child(4) { width: 12%; }
html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-ledger-table.is-single th:nth-child(5) { width: 12%; }
html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-ledger-table.is-single th:nth-child(6) { width: 14%; }

@media (max-width: 1200px) {
  html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-thumb {
    flex-basis: 44px;
    width: 44px;
    height: 58px;
  }

  html body.peter-accessory-workspace-pilot.accessory-tab-active main#main
    .acc-peter-ledger-table th:nth-child(1),
  html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-style-cell {
    position: sticky;
    left: 0;
    z-index: 3;
    background: var(--gc-wb-surface, #fff);
    box-shadow: 1px 0 rgba(60, 60, 67, 0.12);
  }

  html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-ledger-table th:nth-child(1) {
    z-index: 5;
    background: var(--gc-wb-table-head-surface, var(--gc-surface-subtle, #f1f1f4));
  }

  html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-row:hover .acc-peter-style-cell {
    background: #f7f7f9;
  }
}

@media (max-width: 900px) {
  html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-filter-custom {
    width: 100%;
    height: 38px;
  }

  html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-filter-trigger {
    height: 38px;
  }

  html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-filter-menu {
    min-width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html body.peter-accessory-workspace-pilot.accessory-tab-active main#main
    :is(.acc-peter-filter-trigger svg, .acc-peter-status-chevron, .acc-peter-row-action svg) {
    transition: none;
  }
}
/* peter-accessory-direct-status-v5:end */

/* peter-accessory-geometry-cleanup-v6:
 * 去掉 Peter 搜索聚焦时的双层蓝色光环。 */
html body.peter-accessory-workspace-pilot.accessory-tab-active main#main
  .acc-peter-searchbar.pattern-workspace-searchbar .prod-qc-search-field:focus-within {
  border-color: #007aff !important;
  box-shadow: none !important;
}

/* peter-accessory-geometry-cleanup-v6:end */

/* peter-accessory-header-selection-cleanup-v7:
 * Peter 辅料去掉行复选框列，表头直接复用共享工作台表头表面令牌。 */
html body.peter-accessory-workspace-pilot.accessory-tab-active main#main .acc-peter-ledger-table th {
  background: var(--gc-wb-table-head-surface, var(--gc-surface-subtle, #f1f1f4));
}
/* peter-accessory-header-selection-cleanup-v7:end */
