/*
 * 简洁工作视图
 * 仅改变信息层级与外观；业务数据、权限和本地存储逻辑仍由 app.js 管理。
 * 本文件最后加载，用来稳定覆盖历史主题中的高密度样式。
 */

body.blacklake-global-theme.ui-simple {
  --simple-blue: #2d8cf0;
  --simple-blue-soft: #eaf3ff;
  --simple-green: #00b578;
  --simple-text: #1f2329;
  --simple-muted: #7b8490;
  --simple-line: #e5e8ed;
  --simple-panel: #ffffff;
  background: #f5f6f8 !important;
}

/* 保留完整业务分组，只收起“我挂起的”等低频流程入口。 */
body.blacklake-global-theme.ui-simple .sidebar .workflow-secondary {
  display: none !important;
}

body.blacklake-global-theme.ui-simple .sidebar .quote-primary-entry {
  display: grid !important;
}

body.blacklake-global-theme.ui-simple .app-shell {
  grid-template-columns: 204px minmax(0, 1fr) !important;
}

body.blacklake-global-theme.ui-simple .sidebar {
  width: 204px !important;
  box-shadow: none !important;
}

body.blacklake-global-theme.ui-simple .sidebar .brand {
  min-height: 60px !important;
  padding: 10px 14px !important;
}

body.blacklake-global-theme.ui-simple .sidebar .brand-mark {
  width: 34px !important;
  height: 34px !important;
}

body.blacklake-global-theme.ui-simple .sidebar .nav {
  height: calc(100vh - 108px) !important;
  padding-top: 6px !important;
}

body.blacklake-global-theme.ui-simple .sidebar .side-search {
  min-height: 34px !important;
  margin: 8px 12px 10px !important;
}

body.blacklake-global-theme.ui-simple .sidebar :is(.nav-link, .nav-group-toggle) {
  min-height: 38px !important;
  padding-inline: 13px !important;
  font-size: 13px !important;
}

body.blacklake-global-theme.ui-simple .sidebar .nav-submenu .nav-link {
  min-height: 35px !important;
  padding-left: 44px !important;
}

body.blacklake-global-theme.ui-simple .sidebar .quote-primary-entry {
  margin: 2px 8px 8px !important;
  border: 1px solid #d9eaff !important;
  border-left: 3px solid var(--simple-blue) !important;
  border-radius: 6px !important;
  background: #f7fbff !important;
  color: #176fc1 !important;
}

body.blacklake-global-theme.ui-simple .sidebar .quote-primary-entry .nav-badge {
  display: none !important;
}

/* 顶栏只保留当前模块、账号与“更多操作”；新增入口统一放在页面工具栏。 */
body.blacklake-global-theme.ui-simple .topbar {
  min-height: 58px !important;
  height: 58px !important;
  padding: 0 14px !important;
  box-shadow: none !important;
}

body.blacklake-global-theme.ui-simple .topbar-reference-tools,
body.blacklake-global-theme.ui-simple .wecom-super-search,
body.blacklake-global-theme.ui-simple .topbar-create {
  display: none !important;
}

body.blacklake-global-theme.ui-simple .topbar-module-icon {
  width: 32px !important;
  height: 32px !important;
}

body.blacklake-global-theme.ui-simple .topbar-title h1 {
  font-size: 16px !important;
}

body.blacklake-global-theme.ui-simple .topbar-title .page-subtitle {
  display: none !important;
}

body.blacklake-global-theme.ui-simple .topbar-more-menu .ui-mode-toggle {
  display: flex !important;
}

/* 两层数据工具栏合并为“搜索 + 新增”一行。 */
body.blacklake-global-theme.ui-simple .wecom-data-controls {
  top: 58px !important;
  margin: 8px 10px 0 !important;
  border: 1px solid var(--simple-line) !important;
  border-radius: 8px !important;
  background: #fff !important;
}

body.blacklake-global-theme.ui-simple .wecom-view-tabs,
body.blacklake-global-theme.ui-simple .wecom-table-icons,
body.blacklake-global-theme.ui-simple .wecom-table-toolbar > .ghost-button:not(.visually-hidden-control) {
  display: none !important;
}

body.blacklake-global-theme.ui-simple .wecom-table-toolbar {
  min-height: 48px !important;
  height: auto !important;
  padding: 6px 10px !important;
  border: 0 !important;
  gap: 10px !important;
}

body.blacklake-global-theme.ui-simple .wecom-field-search {
  width: min(620px, calc(100% - 132px)) !important;
  min-width: 260px !important;
  height: 36px !important;
  margin: 0 !important;
  border: 1px solid #d7dce3 !important;
  border-radius: 6px !important;
  background: #fff !important;
}

body.blacklake-global-theme.ui-simple #wecomContextNewBtn {
  min-width: 104px !important;
  height: 36px !important;
  margin-left: auto !important;
  border-radius: 6px !important;
  box-shadow: none !important;
}

body.blacklake-global-theme.ui-simple .global-search-results:empty {
  display: none !important;
}

/* 页面只保留一套标题和操作入口。 */
body.blacklake-global-theme.ui-simple #ordersView .order-section-bar,
body.blacklake-global-theme.ui-simple #purchaseView > .section-bar,
body.blacklake-global-theme.ui-simple #workOrdersView .blacklake-breadcrumb,
body.blacklake-global-theme.ui-simple #workOrdersView .blacklake-status-strip,
body.blacklake-global-theme.ui-simple #workOrdersView .blacklake-toolbar-actions,
body.blacklake-global-theme.ui-simple #ordersView .clean-list-tools {
  display: none !important;
}

body.blacklake-global-theme.ui-simple .view.active {
  padding: 10px !important;
}

body.blacklake-global-theme.ui-simple :is(.panel, .section-bar, .blacklake-filterbar, .blacklake-toolbar) {
  border-color: var(--simple-line) !important;
  border-radius: 8px !important;
  box-shadow: none !important;
}

body.blacklake-global-theme.ui-simple #ordersView .orders-list-panel {
  margin: 0 !important;
}

body.blacklake-global-theme.ui-simple #ordersView .orders-list-header {
  min-height: 50px !important;
  padding: 10px 14px !important;
}

body.blacklake-global-theme.ui-simple #ordersView .orders-workbench,
body.blacklake-global-theme.ui-simple #ordersView .orders-workbench-body {
  margin-top: 10px !important;
}

/* 工单页：一行状态标签 + 一行核心筛选，不再重复显示状态统计。 */
body.blacklake-global-theme.ui-simple #workOrdersView .blacklake-page-title {
  min-height: 54px !important;
  padding: 8px 12px !important;
}

body.blacklake-global-theme.ui-simple #workOrdersView .blacklake-page-title p {
  display: none !important;
}

body.blacklake-global-theme.ui-simple #workOrdersView .blacklake-tabbar {
  min-height: 44px !important;
  padding-inline: 8px !important;
}

body.blacklake-global-theme.ui-simple #workOrdersView .blacklake-tabbar button {
  min-height: 44px !important;
  padding: 0 14px !important;
}

body.blacklake-global-theme.ui-simple #workOrdersView .blacklake-filterbar {
  grid-template-columns: minmax(260px, 1.8fr) minmax(150px, .8fr) auto !important;
  padding: 10px 12px !important;
  gap: 10px !important;
}

body.blacklake-global-theme.ui-simple #workOrdersView .blacklake-filterbar > label:nth-of-type(n + 3) {
  display: none !important;
}

body.blacklake-global-theme.ui-simple #workOrdersView .blacklake-toolbar {
  min-height: 44px !important;
  padding: 8px 12px !important;
}

/* 销售订单列表严格九列，主数据成组呈现。 */
body.blacklake-global-theme.ui-simple #ordersView .simple-orders-table {
  width: 100% !important;
  min-width: 970px !important;
  max-width: none !important;
  table-layout: fixed !important;
}

body.blacklake-global-theme.ui-simple #ordersView .simple-orders-table :is(th, td) {
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  padding: 10px 8px !important;
  border-color: #e8ebef !important;
  background-clip: padding-box !important;
  vertical-align: middle !important;
  white-space: normal !important;
  word-break: break-word !important;
  text-align: left !important;
}

/* 仓库：只保留库存、入库、出库、转仓、盘点五个日常动作。 */
body.blacklake-global-theme.ui-simple #inventoryView .inventory-board-nav {
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  min-height: 50px !important;
  padding: 6px 8px !important;
  margin-bottom: 10px !important;
  overflow-x: auto !important;
  border: 1px solid var(--simple-line) !important;
  border-radius: 8px !important;
  background: #fff !important;
}

body.blacklake-global-theme.ui-simple #inventoryView .inventory-board-chip {
  min-width: 76px !important;
  min-height: 36px !important;
  padding: 0 16px !important;
  border: 0 !important;
  border-radius: 6px !important;
  background: transparent !important;
  color: #50565f !important;
  font-weight: 600 !important;
}

body.blacklake-global-theme.ui-simple #inventoryView .inventory-board-chip.active {
  background: #00c58e !important;
  color: #fff !important;
}

body.blacklake-global-theme.ui-simple #inventoryView .inventory-live-panel,
body.blacklake-global-theme.ui-simple #inventoryView .inventory-document-panel,
body.blacklake-global-theme.ui-simple #inventoryView .warehouse-management-panel,
body.blacklake-global-theme.ui-simple #inventoryView .finished-inbound-queue-panel {
  margin: 0 !important;
}

body.blacklake-global-theme.ui-simple #inventoryView .panel-header {
  min-height: 58px !important;
  padding: 10px 14px !important;
}

body.blacklake-global-theme.ui-simple #inventoryView .panel-header h2 {
  font-size: 17px !important;
}

body.blacklake-global-theme.ui-simple #inventoryView .panel-header span {
  color: #8b929b !important;
  font-size: 12px !important;
}

body.blacklake-global-theme.ui-simple #inventoryView .finance-alert-table {
  min-width: 980px !important;
  table-layout: auto !important;
}

body.blacklake-global-theme.ui-simple #inventoryView .finance-alert-table :is(th, td) {
  min-width: 104px !important;
  padding: 10px 12px !important;
  white-space: normal !important;
  line-height: 1.45 !important;
}

body.blacklake-global-theme.ui-simple #inventoryView .finance-alert-table th:first-child,
body.blacklake-global-theme.ui-simple #inventoryView .finance-alert-table td:first-child {
  min-width: 150px !important;
}

body.blacklake-global-theme.ui-simple #inventoryView .inventory-stock-toolbar {
  display: grid !important;
  grid-template-columns: minmax(180px, 230px) minmax(320px, 1fr) auto !important;
  gap: 10px !important;
  align-items: end !important;
  padding: 12px 14px !important;
  border-top: 1px solid var(--simple-line) !important;
  border-bottom: 1px solid var(--simple-line) !important;
  background: #fff !important;
}

body.blacklake-global-theme.ui-simple #inventoryView .inventory-stock-filter-field,
body.blacklake-global-theme.ui-simple #inventoryView .inventory-stock-search-field {
  min-width: 0 !important;
}

body.blacklake-global-theme.ui-simple #inventoryView .inventory-stock-filter-field {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) !important;
  gap: 8px !important;
  align-items: center !important;
  margin: 0 !important;
}

body.blacklake-global-theme.ui-simple #inventoryView .inventory-stock-filter-field > span {
  color: #737b86 !important;
  font-size: 12px !important;
  font-weight: 650 !important;
}

body.blacklake-global-theme.ui-simple #inventoryView .inventory-stock-filter-field select,
body.blacklake-global-theme.ui-simple #inventoryView .inventory-stock-search-field input {
  width: 100% !important;
  min-height: 38px !important;
  margin: 0 !important;
  border: 1px solid #dfe4ea !important;
  border-radius: 6px !important;
  background: #fff !important;
  color: #28323d !important;
  font-size: 13px !important;
}

body.blacklake-global-theme.ui-simple #inventoryView .inventory-stock-search-field {
  position: relative !important;
  display: block !important;
  margin: 0 !important;
}

body.blacklake-global-theme.ui-simple #inventoryView .inventory-stock-search-field input {
  padding-left: 38px !important;
}

body.blacklake-global-theme.ui-simple #inventoryView .inventory-search-icon {
  position: absolute !important;
  top: 50% !important;
  left: 13px !important;
  z-index: 1 !important;
  transform: translateY(-50%) !important;
  color: #8b929b !important;
  font-size: 18px !important;
  line-height: 1 !important;
  pointer-events: none !important;
}

body.blacklake-global-theme.ui-simple #inventoryView .inventory-stock-layout {
  display: grid !important;
  grid-template-columns: 208px minmax(0, 1fr) !important;
  min-height: 420px !important;
  background: #fff !important;
}

body.blacklake-global-theme.ui-simple #inventoryView .inventory-category-rail {
  padding: 12px !important;
  border-right: 1px solid var(--simple-line) !important;
  background: #fafbfc !important;
}

body.blacklake-global-theme.ui-simple #inventoryView .inventory-category-heading {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  min-height: 34px !important;
  padding: 0 8px 8px !important;
  border-bottom: 1px solid var(--simple-line) !important;
}

body.blacklake-global-theme.ui-simple #inventoryView .inventory-category-heading strong {
  color: #242a31 !important;
  font-size: 14px !important;
}

body.blacklake-global-theme.ui-simple #inventoryView .inventory-category-heading small {
  color: #9aa1aa !important;
  font-size: 11px !important;
}

body.blacklake-global-theme.ui-simple #inventoryView .inventory-category-list {
  display: grid !important;
  gap: 4px !important;
  padding-top: 8px !important;
}

body.blacklake-global-theme.ui-simple #inventoryView .inventory-warehouse-row {
  display: block !important;
  min-width: 0 !important;
  min-height: 42px !important;
  border: 1px solid transparent !important;
  border-radius: 6px !important;
  background: transparent !important;
  transition: background-color 140ms ease, border-color 140ms ease !important;
}

body.blacklake-global-theme.ui-simple #inventoryView .inventory-warehouse-row.has-edit {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 2px !important;
  padding: 2px !important;
}

body.blacklake-global-theme.ui-simple #inventoryView .inventory-warehouse-row:hover {
  background: #f0f5f3 !important;
}

body.blacklake-global-theme.ui-simple #inventoryView .inventory-warehouse-row.is-active {
  border-color: #c9e5dc !important;
  background: #e4f7f1 !important;
}

body.blacklake-global-theme.ui-simple #inventoryView .inventory-warehouse-row:focus-within {
  border-color: #79c9b2 !important;
}

body.blacklake-global-theme.ui-simple #inventoryView .inventory-warehouse-row .inventory-category-button {
  min-width: 0 !important;
  min-height: 36px !important;
  padding: 7px 8px !important;
}

body.blacklake-global-theme.ui-simple #inventoryView .inventory-warehouse-row .inventory-category-button > span {
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body.blacklake-global-theme.ui-simple #inventoryView .inventory-warehouse-row.is-disabled .inventory-category-button {
  color: #7f8893 !important;
}

body.blacklake-global-theme.ui-simple #inventoryView .inventory-warehouse-edit-button {
  display: grid !important;
  place-items: center !important;
  width: 30px !important;
  min-width: 30px !important;
  min-height: 30px !important;
  padding: 0 !important;
  border: 1px solid transparent !important;
  border-radius: 5px !important;
  background: transparent !important;
  color: #7b8490 !important;
  cursor: pointer !important;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease !important;
}

body.blacklake-global-theme.ui-simple #inventoryView .inventory-warehouse-edit-button svg {
  width: 15px !important;
  height: 15px !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 1.7 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

body.blacklake-global-theme.ui-simple #inventoryView .inventory-warehouse-edit-button:hover {
  border-color: #c9e5dc !important;
  background: #fff !important;
  color: #007c5d !important;
}

body.blacklake-global-theme.ui-simple #inventoryView .inventory-warehouse-edit-button:focus-visible {
  outline: 2px solid #00a878 !important;
  outline-offset: 1px !important;
}

body.blacklake-global-theme.ui-simple #inventoryView .inventory-category-group-label {
  padding: 9px 9px 4px !important;
  color: #9aa1aa !important;
  font-size: 11px !important;
  font-weight: 650 !important;
  letter-spacing: .03em !important;
}

body.blacklake-global-theme.ui-simple #inventoryView .inventory-category-button {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  width: 100% !important;
  min-height: 34px !important;
  padding: 7px 9px !important;
  border: 0 !important;
  border-radius: 5px !important;
  background: transparent !important;
  color: #4f5864 !important;
  text-align: left !important;
  cursor: pointer !important;
}

body.blacklake-global-theme.ui-simple #inventoryView .inventory-category-button:hover {
  background: #eef4f2 !important;
  color: #008b68 !important;
}

body.blacklake-global-theme.ui-simple #inventoryView .inventory-category-button.active {
  background: #e4f7f1 !important;
  color: #008b68 !important;
  font-weight: 700 !important;
}

body.blacklake-global-theme.ui-simple #inventoryView .inventory-warehouse-row .inventory-category-button:hover,
body.blacklake-global-theme.ui-simple #inventoryView .inventory-warehouse-row .inventory-category-button.active {
  background: transparent !important;
}

body.blacklake-global-theme.ui-simple #inventoryView .inventory-warehouse-row.is-active .inventory-warehouse-edit-button {
  color: #377665 !important;
}

body.blacklake-global-theme.ui-simple #inventoryView .inventory-category-button small {
  min-width: 24px !important;
  padding: 2px 5px !important;
  border-radius: 9px !important;
  background: #edf0f3 !important;
  color: #818a95 !important;
  font-size: 10px !important;
  text-align: center !important;
}

body.blacklake-global-theme.ui-simple #inventoryView .inventory-category-button.active small {
  background: #ccefe4 !important;
  color: #007c5d !important;
}

body.blacklake-global-theme.ui-simple #inventoryView .inventory-stock-results {
  min-width: 0 !important;
}

body.blacklake-global-theme.ui-simple #inventoryView .inventory-stock-results .table-wrap {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  overflow-y: visible !important;
}

body.blacklake-global-theme.ui-simple #inventoryView .inventory-stock-result-bar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  min-height: 42px !important;
  padding: 8px 12px !important;
  border-bottom: 1px solid var(--simple-line) !important;
  background: #fff !important;
}

body.blacklake-global-theme.ui-simple #baseInfoView[data-active-base-section="productCatalog"] .product-catalog-actions {
  flex-wrap: wrap !important;
  min-width: 0 !important;
  gap: 4px !important;
}

body.blacklake-global-theme.ui-simple #baseInfoView[data-active-base-section="productCatalog"] .table-wrap table {
  width: 100% !important;
  min-width: 100% !important;
  table-layout: fixed !important;
}

body.blacklake-global-theme.ui-simple #baseInfoView[data-active-base-section="productCatalog"] .table-wrap :is(th, td) {
  min-width: 0 !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}

body.blacklake-global-theme.ui-simple #baseInfoView[data-active-base-section="productCatalog"] .table-wrap :is(th, td):nth-child(1) { width: 22% !important; }
body.blacklake-global-theme.ui-simple #baseInfoView[data-active-base-section="productCatalog"] .table-wrap :is(th, td):nth-child(2) { width: 14% !important; }
body.blacklake-global-theme.ui-simple #baseInfoView[data-active-base-section="productCatalog"] .table-wrap :is(th, td):nth-child(3) { width: 34% !important; }
body.blacklake-global-theme.ui-simple #baseInfoView[data-active-base-section="productCatalog"] .table-wrap :is(th, td):nth-child(4) { width: 16% !important; }
body.blacklake-global-theme.ui-simple #baseInfoView[data-active-base-section="productCatalog"] .table-wrap :is(th, td):nth-child(5) { width: 14% !important; }

body.blacklake-global-theme.ui-simple #baseInfoView[data-active-base-section="productCatalog"] .product-catalog-actions .small-button {
  flex: 1 1 48px !important;
  min-width: 48px !important;
  padding-inline: 8px !important;
}

body.blacklake-global-theme.ui-simple #inventoryView .inventory-stock-result-bar strong {
  color: #2b333c !important;
  font-size: 13px !important;
}

body.blacklake-global-theme.ui-simple #inventoryView .inventory-stock-result-bar span {
  color: #8b929b !important;
  font-size: 11px !important;
}

body.blacklake-global-theme.ui-simple #inventoryView .inventory-location-table {
  min-width: 1320px !important;
}

body.blacklake-global-theme.ui-simple #inventoryView .inventory-location-table :is(th, td):nth-child(4) {
  min-width: 220px !important;
}

body.blacklake-global-theme.ui-simple #inventoryView .inventory-location-table :is(th, td):last-child {
  min-width: 128px !important;
  position: sticky !important;
  right: 0 !important;
  z-index: 2 !important;
  box-shadow: -1px 0 0 var(--simple-line) !important;
}

body.blacklake-global-theme.ui-simple #inventoryView .inventory-location-table th:last-child,
body.blacklake-global-theme.ui-simple #inventoryView .semi-finished-warehouse-ledger-table th:last-child {
  background: #f3f5f2 !important;
}

body.blacklake-global-theme.ui-simple #inventoryView .inventory-location-table td:last-child,
body.blacklake-global-theme.ui-simple #inventoryView .semi-finished-warehouse-ledger-table td:last-child {
  background: #fff !important;
}

body.blacklake-global-theme.ui-simple #inventoryView .semi-finished-warehouse-ledger-panel {
  margin-top: 12px !important;
}

body.blacklake-global-theme.ui-simple #inventoryView .semi-finished-warehouse-ledger-panel > .panel-header {
  align-items: center !important;
}

body.blacklake-global-theme.ui-simple #inventoryView .semi-finished-warehouse-ledger-table {
  min-width: 1120px !important;
}

body.blacklake-global-theme.ui-simple #inventoryView .semi-finished-warehouse-ledger-table :is(th, td):nth-child(6) {
  min-width: 180px !important;
}

body.blacklake-global-theme.ui-simple #inventoryView .semi-finished-warehouse-ledger-table :is(th, td):last-child {
  min-width: 118px !important;
  position: sticky !important;
  right: 0 !important;
  z-index: 2 !important;
  box-shadow: -1px 0 0 var(--simple-line) !important;
}

body.blacklake-global-theme.ui-simple #inventoryView .inventory-location-trace strong,
body.blacklake-global-theme.ui-simple #inventoryView .inventory-location-trace small {
  display: block !important;
}

body.blacklake-global-theme.ui-simple #inventoryView .inventory-location-trace > div {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 5px !important;
  margin-top: 3px !important;
}

body.blacklake-global-theme.ui-simple #inventoryView .inventory-order-link {
  padding: 0 !important;
  font-size: 11px !important;
}

body.blacklake-global-theme.ui-simple #inventoryView .inventory-category-tag {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 24px !important;
  padding: 3px 8px !important;
  border-radius: 4px !important;
  background: #eef7f4 !important;
  color: #18785f !important;
  font-size: 11px !important;
  font-weight: 650 !important;
}

body.blacklake-global-theme.ui-simple .simple-flow-dialog-card {
  width: min(920px, calc(100vw - 32px)) !important;
  max-height: calc(100vh - 36px) !important;
  overflow: auto !important;
  padding: 0 !important;
}

body.blacklake-global-theme.ui-simple .simple-flow-dialog-card .dialog-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 2 !important;
  margin: 0 !important;
  padding: 18px 22px !important;
  border-bottom: 1px solid var(--simple-line) !important;
  background: #fff !important;
}

body.blacklake-global-theme.ui-simple .simple-flow-dialog-card > :not(.dialog-header) {
  margin-left: 22px !important;
  margin-right: 22px !important;
}

body.blacklake-global-theme.ui-simple .simple-flow-banner {
  display: flex !important;
  gap: 12px !important;
  align-items: center !important;
  margin-top: 16px !important;
  margin-bottom: 16px !important;
  padding: 12px 14px !important;
  border: 1px solid #d9eee7 !important;
  border-radius: 7px !important;
  background: #f4fbf8 !important;
  color: #53615c !important;
}

body.blacklake-global-theme.ui-simple .simple-flow-banner strong {
  flex: 0 0 auto !important;
  color: #008b68 !important;
}

body.blacklake-global-theme.ui-simple .simple-flow-dialog-card .dialog-actions {
  position: sticky !important;
  bottom: 0 !important;
  z-index: 2 !important;
  margin: 18px 0 0 !important;
  padding: 14px 22px !important;
  border-top: 1px solid var(--simple-line) !important;
  background: #fff !important;
}

body.blacklake-global-theme.ui-simple .inline-field-action {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 8px !important;
}

@media (max-width: 760px) {
  body.blacklake-global-theme.ui-simple .simple-flow-banner {
    align-items: flex-start !important;
    flex-direction: column !important;
  }

  body.blacklake-global-theme.ui-simple #inventoryView .inventory-board-chip {
    min-width: 68px !important;
    padding-inline: 12px !important;
  }

  body.blacklake-global-theme.ui-simple #inventoryView .inventory-stock-toolbar {
    grid-template-columns: 1fr auto !important;
  }

  body.blacklake-global-theme.ui-simple #inventoryView .inventory-stock-search-field {
    grid-column: 1 / -1 !important;
    grid-row: 1 !important;
  }

  body.blacklake-global-theme.ui-simple #inventoryView .inventory-stock-layout {
    grid-template-columns: 1fr !important;
  }

  body.blacklake-global-theme.ui-simple #inventoryView .inventory-category-rail {
    border-right: 0 !important;
    border-bottom: 1px solid var(--simple-line) !important;
  }

  body.blacklake-global-theme.ui-simple #inventoryView .inventory-category-list {
    display: flex !important;
    gap: 6px !important;
    overflow-x: auto !important;
    padding-bottom: 3px !important;
  }

  body.blacklake-global-theme.ui-simple #inventoryView .inventory-category-group-label {
    display: none !important;
  }

  body.blacklake-global-theme.ui-simple #inventoryView .inventory-category-button {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 86px !important;
  }

  body.blacklake-global-theme.ui-simple #inventoryView .inventory-warehouse-row {
    flex: 0 0 176px !important;
  }

  body.blacklake-global-theme.ui-simple #inventoryView .inventory-warehouse-row .inventory-category-button {
    width: 100% !important;
    min-width: 0 !important;
  }

  body.blacklake-global-theme.ui-simple #inventoryView .inventory-warehouse-edit-button {
    width: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
  }
}

@media (pointer: coarse) {
  body.blacklake-global-theme.ui-simple #inventoryView .inventory-warehouse-edit-button {
    width: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
  }
}

body.blacklake-global-theme.ui-simple #ordersView .simple-orders-table th {
  height: 44px !important;
  background: #f7f8fa !important;
  color: #59616d !important;
  font-size: 12px !important;
  font-weight: 650 !important;
}

body.blacklake-global-theme.ui-simple #ordersView .simple-orders-table :is(th, td):nth-child(1) { width: 44px !important; text-align: center !important; }
body.blacklake-global-theme.ui-simple #ordersView .simple-orders-table :is(th, td):nth-child(2) { width: 76px !important; }
body.blacklake-global-theme.ui-simple #ordersView .simple-orders-table :is(th, td):nth-child(3) { width: 170px !important; }
body.blacklake-global-theme.ui-simple #ordersView .simple-orders-table :is(th, td):nth-child(4) { width: 96px !important; }
body.blacklake-global-theme.ui-simple #ordersView .simple-orders-table :is(th, td):nth-child(5) { width: 72px !important; text-align: right !important; }
body.blacklake-global-theme.ui-simple #ordersView .simple-orders-table :is(th, td):nth-child(6) { width: 144px !important; }
body.blacklake-global-theme.ui-simple #ordersView .simple-orders-table :is(th, td):nth-child(7) { width: 84px !important; }
body.blacklake-global-theme.ui-simple #ordersView .simple-orders-table :is(th, td):nth-child(8) { width: 104px !important; text-align: right !important; }
body.blacklake-global-theme.ui-simple #ordersView .simple-orders-table :is(th, td):nth-child(9) { width: 180px !important; }

body.blacklake-global-theme.ui-simple #ordersView .simple-orders-table td strong,
body.blacklake-global-theme.ui-simple #ordersView .simple-orders-table td small {
  display: block !important;
}

body.blacklake-global-theme.ui-simple #ordersView .simple-orders-table td small {
  margin-top: 4px !important;
  color: var(--simple-muted) !important;
  line-height: 1.35 !important;
}

/* 工单列表严格九列，工序只显示名称和顺序，不再用百分比圆环。 */
body.blacklake-global-theme.ui-simple #workOrdersView .blacklake-workorder-table {
  width: 100% !important;
  min-width: 950px !important;
  max-width: none !important;
  table-layout: fixed !important;
}

body.blacklake-global-theme.ui-simple #workOrdersView .blacklake-workorder-table :is(th, td) {
  position: static !important;
  left: auto !important;
  right: auto !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  padding: 10px 8px !important;
  border-color: #e8ebef !important;
  white-space: normal !important;
  word-break: break-word !important;
  text-align: left !important;
  vertical-align: middle !important;
}

body.blacklake-global-theme.ui-simple #workOrdersView .blacklake-workorder-table th {
  height: 44px !important;
  background: #f7f8fa !important;
  color: #59616d !important;
  font-size: 12px !important;
}

body.blacklake-global-theme.ui-simple #workOrdersView .blacklake-workorder-table :is(th, td):nth-child(1) { width: 44px !important; text-align: center !important; }
body.blacklake-global-theme.ui-simple #workOrdersView .blacklake-workorder-table :is(th, td):nth-child(2) { width: 112px !important; }
body.blacklake-global-theme.ui-simple #workOrdersView .blacklake-workorder-table :is(th, td):nth-child(3) { width: 72px !important; }
body.blacklake-global-theme.ui-simple #workOrdersView .blacklake-workorder-table :is(th, td):nth-child(4) { width: 132px !important; }
body.blacklake-global-theme.ui-simple #workOrdersView .blacklake-workorder-table :is(th, td):nth-child(5) { width: 76px !important; text-align: right !important; }
body.blacklake-global-theme.ui-simple #workOrdersView .blacklake-workorder-table :is(th, td):nth-child(6) { width: 88px !important; }
body.blacklake-global-theme.ui-simple #workOrdersView .blacklake-workorder-table :is(th, td):nth-child(7) { width: 132px !important; }
body.blacklake-global-theme.ui-simple #workOrdersView .blacklake-workorder-table :is(th, td):nth-child(8) { width: 114px !important; }
body.blacklake-global-theme.ui-simple #workOrdersView .blacklake-workorder-table :is(th, td):nth-child(9) { width: 160px !important; }

body.blacklake-global-theme.ui-simple #workOrdersView .blacklake-workorder-table td small {
  display: block !important;
  margin-top: 4px !important;
  color: var(--simple-muted) !important;
  line-height: 1.35 !important;
}

/* 采购继续使用六个业务组，不再把每个字段拆成独立列。 */
body.blacklake-global-theme.ui-simple #purchaseView #purchaseCards {
  display: block !important;
  margin: 0 !important;
}

body.blacklake-global-theme.ui-simple #purchaseView .role-focused-table {
  border: 1px solid var(--simple-line) !important;
  border-radius: 8px !important;
  background: #fff !important;
}

body.blacklake-global-theme.ui-simple #purchaseView .role-focused-table table {
  min-width: 970px !important;
  table-layout: fixed !important;
}

body.blacklake-global-theme.ui-simple #purchaseView .role-focused-table :is(th, td) {
  padding: 12px !important;
  vertical-align: middle !important;
}

body.blacklake-global-theme.ui-simple #purchaseView .role-focused-table :is(th, td):nth-child(1) { width: 145px !important; }
body.blacklake-global-theme.ui-simple #purchaseView .role-focused-table :is(th, td):nth-child(2) { width: 155px !important; }
body.blacklake-global-theme.ui-simple #purchaseView .role-focused-table :is(th, td):nth-child(3) { width: 215px !important; }
body.blacklake-global-theme.ui-simple #purchaseView .role-focused-table :is(th, td):nth-child(4) { width: 95px !important; }
body.blacklake-global-theme.ui-simple #purchaseView .role-focused-table :is(th, td):nth-child(5) { width: 115px !important; }
body.blacklake-global-theme.ui-simple #purchaseView .role-focused-table :is(th, td):nth-child(6) { width: 245px !important; }

/* 表格只露出一个主动作，其余进入“更多”。 */
body.blacklake-global-theme.ui-simple .simple-row-actions {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: nowrap !important;
}

body.blacklake-global-theme.ui-simple :is(#ordersView, #workOrdersView, #purchaseView) .simple-row-actions {
  width: 100% !important;
  min-width: 0 !important;
  grid-template-columns: none !important;
}

body.blacklake-global-theme.ui-simple .simple-row-actions > :is(button, .small-button, .clean-order-action-button) {
  min-height: 32px !important;
  width: auto !important;
  min-width: 0 !important;
  flex: 0 0 auto !important;
  padding: 0 8px !important;
  border-radius: 5px !important;
  font-size: 12px !important;
  justify-content: center !important;
  white-space: nowrap !important;
}

body.blacklake-global-theme.ui-simple .simple-row-actions > .row-more-actions {
  flex: 0 0 auto !important;
}

body.blacklake-global-theme.ui-simple .row-more-actions,
body.blacklake-global-theme.ui-simple .detail-more-actions {
  position: relative !important;
}

body.blacklake-global-theme.ui-simple .row-more-actions > summary,
body.blacklake-global-theme.ui-simple .detail-more-actions > summary {
  min-height: 32px !important;
  padding: 0 7px !important;
  border: 1px solid #d7dce3 !important;
  border-radius: 5px !important;
  background: #fff !important;
  color: #4e5969 !important;
  cursor: pointer !important;
  font-size: 12px !important;
  list-style: none !important;
  display: inline-flex !important;
  align-items: center !important;
  white-space: nowrap !important;
}

body.blacklake-global-theme.ui-simple .row-more-actions > summary::-webkit-details-marker,
body.blacklake-global-theme.ui-simple .detail-more-actions > summary::-webkit-details-marker {
  display: none !important;
}

body.blacklake-global-theme.ui-simple .row-more-actions > div {
  position: absolute !important;
  z-index: 80 !important;
  top: calc(100% + 5px) !important;
  right: 0 !important;
  min-width: 112px !important;
  padding: 5px !important;
  border: 1px solid var(--simple-line) !important;
  border-radius: 7px !important;
  background: #fff !important;
  box-shadow: 0 8px 24px rgba(31, 35, 41, .12) !important;
}

body.blacklake-global-theme.ui-simple .row-more-actions > div > button {
  display: block !important;
  width: 100% !important;
  min-height: 34px !important;
  padding: 0 10px !important;
  border: 0 !important;
  border-radius: 5px !important;
  background: transparent !important;
  text-align: left !important;
  cursor: pointer !important;
}

body.blacklake-global-theme.ui-simple .row-more-actions > div > button:hover {
  background: #f5f7fa !important;
}

/* 详情首屏只显示高频动作；跨岗位信息仍可通过相应模块查看。 */
body.blacklake-global-theme.ui-simple .order-detail-actions {
  min-height: 54px !important;
  padding: 8px 12px !important;
  gap: 8px !important;
}

body.blacklake-global-theme.ui-simple .order-detail-actions :is(button, summary) {
  min-height: 36px !important;
  padding: 0 13px !important;
  border-radius: 6px !important;
}

body.blacklake-global-theme.ui-simple .role-cross-module {
  display: none !important;
}

body.blacklake-global-theme.ui-simple .detail-more-actions > div {
  min-width: 190px !important;
  padding: 6px !important;
  border-radius: 8px !important;
  box-shadow: 0 10px 28px rgba(31, 35, 41, .14) !important;
}

body.blacklake-global-theme.ui-simple .detail-tabs {
  padding: 8px 12px !important;
  gap: 8px !important;
}

body.blacklake-global-theme.ui-simple .detail-tabs button {
  min-height: 34px !important;
  padding: 0 13px !important;
  border-radius: 17px !important;
}

/* 详情页统一回到企业微信式浅色卡片，避免黑色大面板造成压迫感。 */
body.blacklake-global-theme.ui-simple .order-detail-dialog {
  border: 1px solid #dfe3e8 !important;
  border-radius: 10px !important;
  background: #fff !important;
  color: var(--simple-text) !important;
  box-shadow: 0 18px 48px rgba(31, 35, 41, .16) !important;
}

body.blacklake-global-theme.ui-simple .order-detail-frame {
  border: 1px solid var(--simple-line) !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: var(--simple-text) !important;
  box-shadow: none !important;
}

body.blacklake-global-theme.ui-simple .order-detail-content {
  overflow-x: hidden !important;
  background: #f6f7f9 !important;
  color: var(--simple-text) !important;
}

body.blacklake-global-theme.ui-simple .order-detail-content :is(
  .order-detail-hero-main,
  .order-detail-hero-grid article,
  .work-order-stage-card,
  .detail-summary-grid article,
  .detail-panel,
  .field-grid > div,
  .detail-note-box
) {
  border-color: #e1e5ea !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: var(--simple-text) !important;
  box-shadow: none !important;
}

body.blacklake-global-theme.ui-simple .order-detail-content :is(h2, h3, h4, strong) {
  color: var(--simple-text) !important;
}

body.blacklake-global-theme.ui-simple .order-detail-content :is(p, span, small) {
  color: var(--simple-muted) !important;
}

body.blacklake-global-theme.ui-simple .order-detail-content .detail-panel-header {
  border-bottom-color: #e8ebef !important;
}

body.blacklake-global-theme.ui-simple .order-detail-content .detail-summary-grid,
body.blacklake-global-theme.ui-simple .order-detail-content .detail-summary-grid.compact {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)) !important;
}

body.blacklake-global-theme.ui-simple .order-detail-content .detail-field-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important;
}

body.blacklake-global-theme.ui-simple .order-detail-content .detail-note-box strong {
  color: var(--simple-text) !important;
}

body.blacklake-global-theme.ui-simple .order-detail-content table :is(th, td) {
  border-color: #e7eaee !important;
  background: #fff !important;
  color: #38414b !important;
}

body.blacklake-global-theme.ui-simple .order-detail-content table th {
  background: #f3f5f7 !important;
  color: #626b76 !important;
}

/*
 * 单任务工作视图：把高频模块直接放到一级导航，每页首屏只保留
 * “查找 / 状态 / 列表”。切换到完整视图时这些规则自动失效。
 */
body.blacklake-global-theme.ui-simple.ui-focused .app-shell {
  grid-template-columns: 176px minmax(0, 1fr) !important;
}

body.blacklake-global-theme.ui-simple.ui-focused .sidebar {
  width: 176px !important;
}

body.blacklake-global-theme.ui-simple.ui-focused .sidebar .brand {
  min-height: 52px !important;
  padding: 8px 10px !important;
}

body.blacklake-global-theme.ui-simple.ui-focused .sidebar .brand-mark {
  width: 30px !important;
  height: 30px !important;
  border-radius: 7px !important;
  font-size: 15px !important;
}

body.blacklake-global-theme.ui-simple.ui-focused .sidebar .brand strong {
  font-size: 14px !important;
}

body.blacklake-global-theme.ui-simple.ui-focused .sidebar .brand small,
body.blacklake-global-theme.ui-simple.ui-focused .sidebar .quick-menu,
body.blacklake-global-theme.ui-simple.ui-focused .sidebar .side-search,
body.blacklake-global-theme.ui-simple.ui-focused .sidebar .side-search-results,
body.blacklake-global-theme.ui-simple.ui-focused .sidebar-company {
  display: none !important;
}

body.blacklake-global-theme.ui-simple.ui-focused .sidebar .nav {
  height: calc(100vh - 52px) !important;
  padding: 8px 7px !important;
}

body.blacklake-global-theme.ui-simple.ui-focused .sidebar .workflow-entry,
body.blacklake-global-theme.ui-simple.ui-focused .sidebar .quote-primary-entry,
body.blacklake-global-theme.ui-simple.ui-focused .sidebar .simple-primary-nav {
  min-height: 40px !important;
  margin: 2px 0 !important;
  border: 0 !important;
  border-radius: 7px !important;
  background: transparent !important;
  color: #3b4450 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
}

body.blacklake-global-theme.ui-simple.ui-focused .sidebar .quote-primary-entry {
  display: grid !important;
  border-left: 0 !important;
}

body.blacklake-global-theme.ui-simple.ui-focused .sidebar .nav-group:not(.nav-secondary) {
  display: block !important;
  margin: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

body.blacklake-global-theme.ui-simple.ui-focused .sidebar .nav-group:not(.nav-secondary) > .nav-group-toggle,
body.blacklake-global-theme.ui-simple.ui-focused .sidebar .nav-group:not(.nav-secondary) > .nav-submenu > .nav-link:not(.simple-primary-nav) {
  display: none !important;
}

body.blacklake-global-theme.ui-simple.ui-focused .sidebar .nav-group:not(.nav-secondary) > .nav-submenu {
  display: block !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
}

body.blacklake-global-theme.ui-simple.ui-focused .sidebar .simple-primary-nav {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  width: 100% !important;
  padding: 0 10px !important;
}

body.blacklake-global-theme.ui-simple.ui-focused .sidebar .simple-primary-nav::before {
  content: attr(data-simple-icon);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  border-radius: 6px;
  background: #eef4fb;
  color: #367fc8;
  font-size: 12px;
  font-weight: 700;
}

body.blacklake-global-theme.ui-simple.ui-focused .sidebar :is(.workflow-entry, .quote-primary-entry, .simple-primary-nav):hover {
  background: #f3f6f9 !important;
}

body.blacklake-global-theme.ui-simple.ui-focused .sidebar :is(.workflow-entry, .quote-primary-entry, .simple-primary-nav).active {
  background: #eaf3ff !important;
  color: #176fc1 !important;
}

body.blacklake-global-theme.ui-simple.ui-focused .topbar {
  min-height: 52px !important;
  height: 52px !important;
  padding: 0 12px !important;
}

body.blacklake-global-theme.ui-simple.ui-focused .topbar-module-icon {
  display: none !important;
}

body.blacklake-global-theme.ui-simple.ui-focused .topbar-title h1 {
  font-size: 15px !important;
}

body.blacklake-global-theme.ui-simple.ui-focused .wecom-data-controls {
  display: none !important;
}

body.blacklake-global-theme.ui-simple.ui-focused .wecom-table-toolbar {
  min-height: 44px !important;
  padding: 4px 8px !important;
}

body.blacklake-global-theme.ui-simple.ui-focused .wecom-field-search,
body.blacklake-global-theme.ui-simple.ui-focused #wecomContextNewBtn {
  height: 34px !important;
}

body.blacklake-global-theme.ui-simple.ui-focused[data-active-view="workOrders"] #wecomContextNewBtn,
body.blacklake-global-theme.ui-simple.ui-focused[data-active-view="inventory"] #wecomContextNewBtn,
body.blacklake-global-theme.ui-simple.ui-focused[data-active-view="shipping"] #wecomContextNewBtn,
body.blacklake-global-theme.ui-simple.ui-focused[data-active-view="production"] #wecomContextNewBtn,
body.blacklake-global-theme.ui-simple.ui-focused[data-active-view="dashboard"] #wecomContextNewBtn {
  display: none !important;
}

body.blacklake-global-theme.ui-simple.ui-focused[data-active-view="workOrders"] .wecom-field-search,
body.blacklake-global-theme.ui-simple.ui-focused[data-active-view="inventory"] .wecom-field-search,
body.blacklake-global-theme.ui-simple.ui-focused[data-active-view="shipping"] .wecom-field-search,
body.blacklake-global-theme.ui-simple.ui-focused[data-active-view="production"] .wecom-field-search,
body.blacklake-global-theme.ui-simple.ui-focused[data-active-view="dashboard"] .wecom-field-search {
  width: 100% !important;
}

body.blacklake-global-theme.ui-simple.ui-focused .view.active {
  padding: 8px !important;
}

/* 销售订单使用本页真实筛选，不再显示只面向客户/财务的全局搜索。 */
body.blacklake-global-theme.ui-simple.ui-focused #ordersView .order-section-bar {
  display: grid !important;
  min-height: 44px !important;
  grid-template-columns: minmax(320px, 1fr) auto !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 0 0 7px !important;
  padding: 5px 7px !important;
}

body.blacklake-global-theme.ui-simple.ui-focused #ordersView .order-section-bar > div:first-child {
  display: none !important;
}

body.blacklake-global-theme.ui-simple.ui-focused #ordersView .order-section-bar .filters {
  display: grid !important;
  grid-template-columns: minmax(200px, 1fr) 130px !important;
  gap: 7px !important;
  width: 100% !important;
  margin: 0 !important;
}

body.blacklake-global-theme.ui-simple.ui-focused #ordersView .order-section-bar :is(input, select, button) {
  min-height: 34px !important;
  height: 34px !important;
  border-radius: 6px !important;
  font-size: 13px !important;
}

body.blacklake-global-theme.ui-simple.ui-focused #ordersView .orders-list-header {
  min-height: 34px !important;
  padding: 6px 10px !important;
}

body.blacklake-global-theme.ui-simple.ui-focused #ordersView .orders-list-header h2 {
  display: none !important;
}

body.blacklake-global-theme.ui-simple.ui-focused #ordersView .orders-list-header span {
  font-size: 12px !important;
}

/* 采购页仅保留模块名、一个新增入口和采购列表。 */
body.blacklake-global-theme.ui-simple.ui-focused #purchaseView > .section-bar {
  display: flex !important;
  min-height: 44px !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin: 0 0 7px !important;
  padding: 5px 8px !important;
}

body.blacklake-global-theme.ui-simple.ui-focused #purchaseView > .section-bar h2 {
  font-size: 14px !important;
}

body.blacklake-global-theme.ui-simple.ui-focused #purchaseView > .section-bar p {
  display: none !important;
}

body.blacklake-global-theme.ui-simple.ui-focused #purchaseView #newPurchaseBtn {
  min-height: 34px !important;
  height: 34px !important;
  padding: 0 12px !important;
  border-radius: 6px !important;
  font-size: 13px !important;
}

/* 工单默认从销售订单生成：列表页不再提供重复的手工创建入口。 */
body.blacklake-global-theme.ui-simple.ui-focused #workOrdersView .blacklake-page-title,
body.blacklake-global-theme.ui-simple.ui-focused #blacklakeCreateWorkOrderBtn {
  display: none !important;
}

body.blacklake-global-theme.ui-simple.ui-focused #workOrdersView .blacklake-tabbar {
  min-height: 38px !important;
  margin: 0 0 6px !important;
  padding: 0 6px !important;
  border: 1px solid var(--simple-line) !important;
  border-radius: 8px !important;
  background: #fff !important;
}

body.blacklake-global-theme.ui-simple.ui-focused #workOrdersView .blacklake-tabbar button {
  min-height: 38px !important;
  padding: 0 11px !important;
  font-size: 12px !important;
}

body.blacklake-global-theme.ui-simple.ui-focused #workOrdersView .blacklake-filterbar:not(.external-processing-filterbar) {
  min-height: 44px !important;
  grid-template-columns: minmax(240px, 1fr) 150px !important;
  padding: 5px 7px !important;
  gap: 7px !important;
}

body.blacklake-global-theme.ui-simple.ui-focused #workOrdersView .blacklake-filterbar:not(.external-processing-filterbar) label > span,
body.blacklake-global-theme.ui-simple.ui-focused #workOrdersView .blacklake-filterbar:not(.external-processing-filterbar) .blacklake-filter-actions,
body.blacklake-global-theme.ui-simple.ui-focused #blacklakeWorkOrderResetBtn,
body.blacklake-global-theme.ui-simple.ui-focused #blacklakeWorkOrderQueryBtn,
body.blacklake-global-theme.ui-simple.ui-focused #workOrdersView > .blacklake-toolbar {
  display: none !important;
}

body.blacklake-global-theme.ui-simple.ui-focused #workOrdersView .blacklake-filterbar :is(input, select, button) {
  min-height: 34px !important;
  height: 34px !important;
  font-size: 13px !important;
}

body.blacklake-global-theme.ui-simple.ui-focused #workOrdersView .blacklake-toolbar {
  min-height: 38px !important;
  padding: 6px 9px !important;
}

body.blacklake-global-theme.ui-simple.ui-focused #workOrdersView .blacklake-workorder-table :is(th, td) {
  padding: 8px 7px !important;
}

/* 库存页由板块标签承担导航，不再重复显示说明横幅。 */
body.blacklake-global-theme.ui-simple.ui-focused #inventoryView > .section-bar {
  display: none !important;
}

body.blacklake-global-theme.ui-simple.ui-focused #inventoryView .inventory-board-nav {
  min-height: 40px !important;
  margin: 0 0 7px !important;
  padding: 4px 6px !important;
  gap: 4px !important;
  border: 1px solid var(--simple-line) !important;
  border-radius: 8px !important;
  background: #fff !important;
}

body.blacklake-global-theme.ui-simple.ui-focused #inventoryView .inventory-board-chip {
  min-height: 32px !important;
  padding: 0 11px !important;
  border-radius: 6px !important;
  font-size: 12px !important;
}

body.blacklake-global-theme.ui-simple.ui-focused #inventoryView .panel-header {
  min-height: 46px !important;
  padding: 9px 11px !important;
}

body.blacklake-global-theme.ui-simple.ui-focused #inventoryView .panel-header span {
  display: none !important;
}

body.blacklake-global-theme.ui-simple.ui-focused #inventoryView :is(.inventory-grid, .warehouse-grid) {
  gap: 9px !important;
}

body.blacklake-global-theme.ui-simple.ui-focused #inventoryView .inventory-card .progress {
  display: none !important;
}

@media (max-width: 1040px) {
  body.blacklake-global-theme.ui-simple .order-detail-content .detail-dual-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 1100px) {
  body.blacklake-global-theme.ui-simple .app-shell {
    grid-template-columns: 184px minmax(0, 1fr) !important;
  }

  body.blacklake-global-theme.ui-simple .sidebar {
    width: 184px !important;
  }

  body.blacklake-global-theme.ui-simple .user-badge {
    display: none !important;
  }
}

@media (max-width: 760px) {
  body.blacklake-global-theme.ui-simple .app-shell {
    grid-template-columns: 1fr !important;
  }

  body.blacklake-global-theme.ui-simple .sidebar {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
  }

  body.blacklake-global-theme.ui-simple .sidebar .nav {
    height: auto !important;
    max-height: 42vh !important;
  }

  body.blacklake-global-theme.ui-simple .topbar,
  body.blacklake-global-theme.ui-simple .wecom-data-controls {
    position: relative !important;
    top: 0 !important;
  }

  body.blacklake-global-theme.ui-simple .wecom-field-search {
    width: 100% !important;
    min-width: 0 !important;
  }

  body.blacklake-global-theme.ui-simple #workOrdersView .blacklake-filterbar {
    grid-template-columns: 1fr !important;
  }

}
