/* Same Jade Operate grammar; scoped extension, no replacement identity. */
@layer system {
  /* The WeCom mirror must not offer the separate legacy ERP expense form. */
  body.erp-operate-ui #financeView#financeView[data-wecom-oa-focus="true"] .finance-toolbar { display: none !important; }
  #wecomOaSection { margin-top: 18px; scroll-margin-top: 80px; }
  #wecomOaSection .oa-intro { padding: 0 16px 12px; color: var(--erp-text-secondary); line-height: 1.6; }
  #wecomOaSection .oa-intro p { margin: 4px 0; }
  #wecomOaSection .oa-paging { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 12px 16px; }
  #wecomOaSection .oa-page-label { margin-right: auto; }
  #wecomOaSection .oa-table { min-width: 800px; table-layout: auto; }
  #wecomOaSection .oa-money { text-align: right; font-variant-numeric: tabular-nums; }
  #wecomOaSection .oa-detail { padding: 16px; border-top: 1px solid var(--erp-line); color: var(--erp-text); }
  #wecomOaSection .oa-detail-title { margin: 0; font-size: 16px; }
  #wecomOaSection .oa-detail-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
  #wecomOaSection .oa-facts { display: flex; flex-wrap: wrap; gap: 16px 28px; margin: 16px 0; }
  #wecomOaSection .oa-facts dt { color: var(--erp-text-secondary); }
  #wecomOaSection .oa-facts dd { margin: 4px 0 0; font-weight: 600; overflow-wrap: anywhere; }
  #wecomOaSection .oa-prose { white-space: pre-wrap; overflow-wrap: anywhere; max-width: 72ch; }
  #wecomOaSection .oa-detail h4 { margin: 22px 0 10px; }
  #wecomOaSection .oa-lines { list-style: none; margin: 0; padding: 0; }
  #wecomOaSection .oa-lines li { padding: 10px 0; border-bottom: 1px solid var(--erp-line); }
  #wecomOaSection .oa-lines li > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
  #wecomOaSection .oa-lines p, #wecomOaSection .oa-trace p { white-space: pre-wrap; overflow-wrap: anywhere; margin: 5px 0; }
  #wecomOaSection .oa-trace { padding-left: 22px; }
  #wecomOaSection .oa-trace li { margin: 12px 0; }
  #wecomOaSection button { min-height: 38px; }
  #wecomOaSection .oa-pilot { padding: 16px; border-block: 1px solid var(--erp-line); color: var(--erp-text); }
  #wecomOaSection .oa-pilot h3 { margin: 0 0 12px; font-size: 18px; }
  #wecomOaSection .oa-pilot h4 { margin: 0 0 6px; font-size: 16px; }
  #wecomOaSection .oa-pilot p { margin: 6px 0; max-width: 72ch; overflow-wrap: anywhere; line-height: 1.6; }
  #wecomOaSection .oa-pilot-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; padding: 20px 0; border-bottom: 1px solid var(--erp-line); }
  #wecomOaSection .oa-pilot-row > div { flex: 1 1 300px; min-width: 0; }
  #wecomOaSection .oa-pilot-consent { display: flex; align-items: flex-start; gap: 10px; line-height: 1.6; padding: 12px 0; cursor: pointer; }
  #wecomOaSection .oa-pilot-confirm { inline-size: 20px; block-size: 20px; flex-shrink: 0; margin-block-start: 3px; accent-color: var(--erp-primary, #286952); }
  #wecomOaSection .oa-pilot-note { padding-top: 12px; font-weight: 600; }
  #wecomOaSection .oa-pilot :focus-visible { outline: 2px solid var(--erp-primary, #286952); outline-offset: 3px; }
  #wecomOaSection .oa-pilot button { min-height: 44px; white-space: normal; }
}
@layer responsive {
  @media (max-width: 700px) {
    #wecomOaSection .oa-pilot { padding: 12px; font-size: 16px; }
    #wecomOaSection .oa-pilot-row button { width: 100%; }
    #wecomOaSection .oa-table { min-width: 0 !important; width: 100% !important; }
    #wecomOaSection .oa-table thead { display: none !important; }
    #wecomOaSection .oa-table tr { display: block !important; padding: 12px; border-bottom: 1px solid var(--erp-line); }
    #wecomOaSection .oa-table td { display: flex !important; justify-content: space-between; align-items: baseline; gap: 14px; padding: 5px 0 !important; border: 0 !important; white-space: normal !important; overflow-wrap: anywhere; }
    #wecomOaSection .oa-table td[data-label]::before { content: attr(data-label); color: var(--erp-text-secondary); flex: 0 0 5em; }
    #wecomOaSection .oa-table td.empty { display: block !important; }
    #wecomOaSection .oa-paging { padding: 12px; }
    #wecomOaSection .oa-page-label { flex-basis: 100%; }
  }
}
