/* Shared placement keeps the next action near the business heading. */
.content > .page-header {
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 12px;
}
.page-header > div { min-width: 0; max-width: 100%; }
.page-header h1 { overflow-wrap: anywhere; }
.detail-layout, .cut-job-list { grid-template-columns: minmax(0, 1fr); }
.detail-layout > *, .cut-job-row { min-width: 0; }
.detail-section dl > div { grid-template-columns: 150px minmax(0, 1fr); }
.detail-section dd { min-width: 0; overflow-wrap: anywhere; }
.detail-section .inline-form { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.detail-section .inline-form select, .detail-section .inline-form input { max-width: 100%; min-width: 0; }
.page-header .header-actions,
.page-header .work-quick-actions {
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-left: 0;
}
.content .action-bar,
.content .form-actions { justify-content: flex-start; flex-wrap: wrap; }
.secondary-navigation { margin-top: 12px; }
.secondary-navigation .system-nav { display: block; }
.sidebar nav .manual-nav { margin-top: 12px; border-top: 1px solid #30414a; border-radius: 0; }
.workspace-subnav { flex: 1 1 auto; min-width: 0; overflow-y: hidden; }
.workspace-subnav a.active::after { bottom: 0; }
.technical-details { margin-top: 8px; font-size: 12px; color: var(--muted); white-space: normal; }
.technical-details > summary { cursor: pointer; width: fit-content; padding: 3px 0; }
.technical-details[open] > summary { margin-bottom: 5px; }
.technical-details small { overflow-wrap: anywhere; }
.technical-details a { color: var(--green); }
.secondary-actions { margin: 0; }
.secondary-actions > summary { padding: 8px 0; }
.secondary-actions[open] { flex-basis: 100%; }
.optional-disclosure > summary { padding: 16px 18px; cursor: pointer; font-weight: 700; }
.business-header .status { margin-right: 8px; }
.work-list table { min-width: 1040px; table-layout: auto; }
.work-list th:nth-child(2) { width: 285px; }
.work-list td { vertical-align: top; }
.work-list .work-customer-cell { min-width: 245px; max-width: 340px; white-space: normal; overflow-wrap: anywhere; }
.work-customer-cell > .table-link { font-size: 15px; }
.work-customer-cell .work-actions { margin-top: 10px; gap: 6px; }
.work-actions .small-button { min-height: 34px; font-size: 12px; white-space: normal; }
.work-list .quantity-summary { display: grid; grid-template-columns: repeat(2, max-content); gap: 5px 12px; }
.shared-shipment { margin-top: 8px; padding: 8px 10px; background: #e2eff3; border-left: 3px solid #468293; border-radius: 3px; font-size: 12px; }
.shared-shipment > summary { cursor: pointer; color: #235567; font-weight: 700; }
.shared-shipment > summary small { color: #426779; font-size: 11px; font-weight: 400; margin-top: 4px; }
.shared-shipment ul { list-style: none; padding: 0; margin: 8px 0; }
.shared-shipment li { display: flex; flex-wrap: wrap; gap: 6px; justify-content: space-between; padding: 4px 0; }
.shared-shipment li a { text-decoration: underline; text-underline-offset: 3px; }
.business-table td { vertical-align: top; }
.business-table .spec-cell { min-width: 160px; white-space: normal; }
.business-table .row-actions { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.cut-job-row .job-title { align-items: start; }
.cut-job-row .job-title > div { min-width: 0; overflow-wrap: anywhere; }
.cut-job-row .table-wrap table { min-width: 560px; }
@media (max-width: 760px) {
  .detail-section dl > div { grid-template-columns: 110px minmax(0, 1fr); }
  .cut-job-row .job-title { grid-template-columns: 24px minmax(0, 1fr) auto; }
  .work-list table { min-width: 0; }
  .work-list .work-customer-cell { min-width: 0; max-width: none; }
  .work-list .quantity-summary { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .page-header .header-actions { display: flex; width: 100%; }
  .content .action-bar > *, .content .form-actions > * { max-width: 100%; }
  .secondary-navigation { width: 100%; }
}
