/* Shared business layout. Scoped to existing CRM/ERP pages; no permission overrides. */
:is(#crmCustomersSection,#salesOrdersSection,#erpFulfillmentSection,#warehouseSection,#supplyChainSection).work-list-page {
  padding: 20px 24px 36px;
  min-width: 0;
  --work-list-muted: #52657a;
}
.work-list-page .hero-strip {
  padding: 16px 20px;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  box-shadow: none;
  margin-bottom: 16px;
}
.work-list-page .hero-strip h2 { margin: 4px 0 6px; font-size: 20px; line-height: 1.4; }
.work-list-page .hero-strip span { color: #176e70; letter-spacing: 0; }
.work-list-page .hero-strip p { color: var(--work-list-muted); font-size: 13px; line-height: 1.65; }
.work-list-page .hero-actions { flex-wrap: wrap; flex-shrink: 0; gap: 8px; }
.work-list-page .hero-strip .button.ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.work-list-page .button { min-height: 36px; padding: 8px 12px; border-radius: 7px; }
.work-list-page .button:focus-visible,
.work-list-page .row-action:focus-visible,
#crmCustomerDrawer button:focus-visible { outline: 3px solid #69b8b6; outline-offset: 2px; }
.work-list-page .panel { min-width: 0; border-radius: 10px; }
.work-list-page .toolbar { gap: 8px; padding: 12px 16px; flex-wrap: wrap; }
.work-list-page .toolbar .search { height: 38px; min-width: 180px; border-radius: 7px; }
.work-list-page .search input { min-width: 0; }
.work-list-page .table-wrap { max-width: 100%; max-height: 66vh; overflow: auto; }
.work-list-page th { position: sticky; top: 0; z-index: 2; padding: 11px 12px; color: #4a5e73; background: #f1f5f8; font-size: 12px; white-space: nowrap; }
.work-list-page td { height: 46px; padding: 10px 12px; font-size: 13px; line-height: 1.5; }
.work-list-page tbody tr:hover { background: #f6fbfa; }
.work-list-page .pagination { min-height: 52px; gap: 12px; padding: 10px 16px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.work-list-page .metrics { gap: 10px; }
.work-list-page .metrics article { padding: 12px 16px; border-radius: 8px; }
.work-list-page .metrics strong { font-size: 22px; font-variant-numeric: tabular-nums; }
.work-list-page .panel-heading { padding: 14px 16px; gap: 10px; }
.work-list-page .panel-heading h3 { font-size: 16px; margin: 3px 0; }
.work-list-page .variant-quantity { text-align: right; font-variant-numeric: tabular-nums; }
#crmCustomersSection .crm-layout { display: block; }
#crmCustomersSection .crm-scope-bar { padding: 12px 16px; gap: 12px; }
#crmCustomersSection .crm-scope-tabs { gap: 6px; flex-wrap: wrap; }
#crmCustomersSection .crm-scope-tabs button { min-height: 36px; padding: 8px 12px; border-radius: 7px; }
#crmCustomersSection .crm-scope-bar > small { color: #52657a; }
#crmCustomersSection .crm-customer-table { min-width: 820px; }
#crmCustomersSection .crm-customer-table th:first-child,
#crmCustomersSection .crm-customer-table td:first-child { position: sticky; left: 0; background: #fff; z-index: 1; }
#crmCustomersSection .crm-customer-table th:last-child,
#crmCustomersSection .crm-customer-table td:last-child { position: sticky; right: 0; background: #fff; z-index: 1; white-space: nowrap; }
#crmCustomersSection .crm-customer-table th:first-child,
#crmCustomersSection .crm-customer-table th:last-child { background: #f1f5f8; z-index: 3; }
#crmCustomersSection .crm-name-cell { min-width: 170px; max-width: 260px; }
#crmCustomersSection .crm-name-cell b { color: #126f8b; }
#crmCustomersSection .crm-name-cell :is(b,span),
#crmCustomersSection .crm-owner-cell :is(b,small) { overflow-wrap: anywhere; }
#crmCustomersSection .crm-auxiliary { margin-top: 12px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
#crmCustomersSection .crm-auxiliary > summary { padding: 13px 16px; cursor: pointer; font-size: 13px; font-weight: 700; color: #40566b; }
#crmCustomersSection .crm-auxiliary > summary:focus-visible { outline: 3px solid #69b8b6; outline-offset: -3px; }
#crmCustomersSection .crm-auxiliary > .crm-auxiliary-content { padding: 0 16px 16px; }
#crmCustomersSection .crm-auxiliary .crm-metrics { margin: 0; }
#crmCustomersSection .crm-review-panel { width: 100%; margin-top: 12px; }
#crmCustomerDrawer { width: min(1120px, 80vw); max-width: 100vw; }
#crmCustomerDrawer > header { padding: 16px 20px; gap: 16px; flex-shrink: 0; }
#crmCustomerDrawer > header > div { min-width: 0; }
#crmCustomerDrawer > header h2 { font-size: 20px; overflow-wrap: anywhere; }
#crmCustomerDrawer > header .icon-button { flex-shrink: 0; }
#crmCustomerDrawer .crm-drawer-summary { padding: 10px 20px; font-size: 12px; gap: 8px 16px; flex-shrink: 0; }
#crmCustomerDrawer .crm-drawer-body { display: block; padding: 0 20px 24px; min-height: 0; overflow: auto; overscroll-behavior: contain; }
#crmCustomerDrawer .crm-customer-modules { display: flex; gap: 4px; overflow-x: auto; margin: 0 0 16px; padding: 10px 0 0; position: sticky; top: 0; z-index: 4; background: #fff; border-bottom: 1px solid var(--line); }
#crmCustomerDrawer .crm-customer-modules button { display: block; flex: 0 0 auto; min-height: 42px; padding: 10px 12px; border: 0; border-bottom: 3px solid transparent; border-radius: 0; background: #fff; color: #52657a; font-size: 13px; white-space: nowrap; }
#crmCustomerDrawer .crm-customer-modules button[aria-selected="true"] { color: #08776e; border-bottom-color: #08776e; font-weight: 700; }
#crmCustomerDrawer .crm-detail-page { display: grid; gap: 16px; min-width: 0; }
#crmCustomerDrawer .crm-detail-page[hidden] { display: none; }
#crmCustomerDrawer .crm-detail-page:focus-visible { outline: 2px solid #69b8b6; outline-offset: -2px; }
#crmCustomerDrawer .crm-detail-heading h3 { font-size: 16px; line-height: 1.5; }
#crmCustomerDrawer .crm-detail-grid { gap: 12px 16px; }
#crmCustomerDrawer .crm-detail-grid > div { min-width: 0; overflow-wrap: anywhere; }
#crmCustomerDrawer .crm-detail-section { min-width: 0; }
#crmCustomerDrawer .table-wrap { max-width: 100%; overflow-x: auto; }
@media(max-width: 1100px) {
  .work-list-page .hero-strip { flex-wrap: wrap; }
  .work-list-page .hero-actions { flex-shrink: 1; }
  #crmCustomerDrawer { width: 94vw; }
}
@media(max-width: 700px) {
  :is(#crmCustomersSection,#salesOrdersSection,#erpFulfillmentSection,#warehouseSection,#supplyChainSection).work-list-page { padding: 14px 12px 28px; }
  .work-list-page .hero-strip { padding: 14px; }
  .work-list-page .hero-actions { margin-top: 12px; }
  .work-list-page .toolbar .search { max-width: 100%; flex-basis: 100%; min-width: 0; }
  .work-list-page .panel-heading { flex-wrap: wrap; }
  .work-list-page .panel-heading small { max-width: 100%; overflow-wrap: anywhere; }
  #crmCustomersSection .crm-scope-bar { display: block; }
  #crmCustomersSection .crm-scope-bar > small { display: block; text-align: left; margin-top: 8px; }
  #crmCustomersSection .crm-auxiliary > .crm-auxiliary-content { padding: 0 12px 12px; }
  #crmCustomerDrawer { width: 100vw; }
  #crmCustomerDrawer > header { padding: 12px 14px; }
  #crmCustomerDrawer .crm-drawer-summary { padding: 10px 14px; }
  #crmCustomerDrawer .crm-drawer-body { padding: 0 12px 20px; }
  #crmCustomerDrawer .crm-detail-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  #crmCustomerDrawer .crm-work-actions { flex-wrap: wrap; }
}
