/* BizCore V271.5.11 — Desktop register styling parity with the approved
   Sales Orders V271.5.10 trial. Visual only, no scripts or records touched.
   Scope: primary list/register tables only, not their entry/detail modals.
   Status badges, alerts, filters, sorting and pagination retain their styles. */
@media (min-width: 761px) {
  :is(
    html body #page-rfq .rfq-register table,
    html body #page-costing .pricing-register-table,
    html body #page-quotations #quotes-table,
    html body #page-jobs .jb-reg-table,
    html body #page-deliverynotes #dn-register-table,
    html body #page-customerinvoices #invreg-table,
    html body #page-receipts #rctreg-table,
    html body #page-purchaseinvoices #pireg-table,
    html body #page-supplierpayments #spreg-table,
    html body #page-stock #streg-table
  ) {
    border-collapse: separate !important;
    border-spacing: 0 !important;
  }
  :is(
    html body #page-rfq .rfq-register table,
    html body #page-costing .pricing-register-table,
    html body #page-quotations #quotes-table,
    html body #page-jobs .jb-reg-table,
    html body #page-deliverynotes #dn-register-table,
    html body #page-customerinvoices #invreg-table,
    html body #page-receipts #rctreg-table,
    html body #page-purchaseinvoices #pireg-table,
    html body #page-supplierpayments #spreg-table,
    html body #page-stock #streg-table
  ) thead th,
  :is(
    html body #page-rfq .rfq-register table,
    html body #page-costing .pricing-register-table,
    html body #page-quotations #quotes-table,
    html body #page-jobs .jb-reg-table,
    html body #page-deliverynotes #dn-register-table,
    html body #page-customerinvoices #invreg-table,
    html body #page-receipts #rctreg-table,
    html body #page-purchaseinvoices #pireg-table,
    html body #page-supplierpayments #spreg-table,
    html body #page-stock #streg-table
  ) tbody td {
    border-left: 0 !important;
    border-right: 0 !important;
    box-shadow: none !important;
  }
  :is(
    html body #page-rfq .rfq-register table,
    html body #page-costing .pricing-register-table,
    html body #page-quotations #quotes-table,
    html body #page-jobs .jb-reg-table,
    html body #page-deliverynotes #dn-register-table,
    html body #page-customerinvoices #invreg-table,
    html body #page-receipts #rctreg-table,
    html body #page-purchaseinvoices #pireg-table,
    html body #page-supplierpayments #spreg-table,
    html body #page-stock #streg-table
  ) tbody td {
    border-top: 0 !important;
    border-bottom: 1px solid #edf1f5 !important;
  }
  :is(
    html body #page-rfq .rfq-register table tbody td:first-child,
    html body #page-costing .pricing-register-table tbody td:first-child,
    html body #page-quotations #quotes-table tbody td:first-child,
    html body #page-jobs .jb-reg-table tbody td:first-child,
    html body #page-deliverynotes #dn-register-table tbody td:first-child,
    html body #page-customerinvoices #invreg-table tbody td:first-child,
    html body #page-receipts #rctreg-table tbody td:first-child,
    html body #page-purchaseinvoices #pireg-table tbody td:first-child,
    html body #page-supplierpayments #spreg-table tbody td:first-child,
    html body #page-stock #streg-table tbody td:first-child
  ),
  :is(
    html body #page-rfq .rfq-register table tbody td:first-child :is(span,a,strong,b),
    html body #page-costing .pricing-register-table tbody td:first-child :is(span,a,strong,b),
    html body #page-quotations #quotes-table tbody td:first-child :is(span,a,strong,b),
    html body #page-jobs .jb-reg-table tbody td:first-child :is(span,a,strong,b),
    html body #page-deliverynotes #dn-register-table tbody td:first-child :is(span,a,strong,b),
    html body #page-customerinvoices #invreg-table tbody td:first-child :is(span,a,strong,b),
    html body #page-receipts #rctreg-table tbody td:first-child :is(span,a,strong,b),
    html body #page-purchaseinvoices #pireg-table tbody td:first-child :is(span,a,strong,b),
    html body #page-supplierpayments #spreg-table tbody td:first-child :is(span,a,strong,b),
    html body #page-stock #streg-table tbody td:first-child :is(span,a,strong,b)
  ) {
    font-weight: 400 !important;
  }
}


/* V271.5.12 — Pricing register typography correction (desktop only).
   Matches the agreed 13px regular body / 12px medium header standard.
   No layout, status, data, or interaction changes. */
@media (min-width: 761px) {
  html body #page-costing .pricing-register-table thead th {
    font-size: 12px !important;
    font-weight: 500 !important;
  }
  html body #page-costing .pricing-register-table tbody td {
    font-size: 13px !important;
    font-weight: 400 !important;
  }
  html body #page-costing .pricing-register-table tbody :is(
    .pricing-doc-no,
    .pricing-doc-customer,
    .pricing-doc-profit,
    .pricing-doc-margin,
    .pricing-doc-link
  ) {
    font-size: 13px !important;
    font-weight: 400 !important;
  }
  html body #page-costing .pricing-register-table tbody .pricing-doc-link {
    font-family: inherit !important;
    line-height: inherit;
  }
}


/* V271.5.13 — Pricing desktop register matches the existing Quotation register.
   The Quotation row renderer uses 14px/400/#111827 for ordinary row text.
   Scope intentionally excludes Pricing entry modal, all other registers,
   monitor cards, filters, and all functional behavior. */
@media (min-width: 761px) {
  html body #page-costing .pricing-register-table thead th {
    font-family: inherit !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #536273 !important;
    letter-spacing: .01em !important;
    line-height: 1.2 !important;
  }
  html body #page-costing .pricing-register-table tbody td,
  html body #page-costing .pricing-register-table tbody :is(
    .pricing-doc-no,
    .pricing-doc-customer,
    .pricing-doc-muted,
    .pricing-doc-profit,
    .pricing-doc-margin,
    .pricing-doc-link
  ) {
    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    color: #111827 !important;
    line-height: 1.35 !important;
  }
  /* Ensure hover does not make quotation references theme-colored. */
  html body #page-costing .pricing-register-table tbody .pricing-doc-link:hover {
    color: #111827 !important;
    text-decoration: underline;
  }
  /* Keep business-critical negative numbers visually distinguishable. */
  html body #page-costing .pricing-register-table tbody :is(
    .pricing-doc-profit.is-negative,
    .pricing-doc-margin.is-negative
  ) {
    color: var(--red, #b42318) !important;
  }
}
