.order-filters .select-input, .order-form .select-input, .quick-update__form .select-input,
.order-table select.sheet-input {
  appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23766a6c' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
}
.order-table select.sheet-input:not(:disabled):not([aria-invalid="true"]):hover { background-color: var(--accent-wash); }
.order-table select.sheet-input:not(:disabled):not([aria-invalid="true"]):active { background-color: var(--accent-wash-hover); }
.order-table select.sheet-input:not(:disabled):focus-visible { background-color: var(--surface); box-shadow: inset 0 0 0 2px var(--focus-ring); outline: 0; }
.order-table select.sheet-input[aria-invalid="true"]:focus-visible { background-color: var(--red-wash); box-shadow: inset 0 0 0 2px var(--red); }
.order-table select.sheet-input:disabled { background-image: none; }
.sheet-row-actions { display: flex; align-items: center; justify-content: center; }
.order-filters__actions:empty { display: none; }
.order-table .sheet-cell--identity { padding: 0; }
.client-publication-status { display: inline-block; font-size: 11px; line-height: 1.4; white-space: nowrap; color: var(--muted); }
.client-publication-status[data-state="changed"], .client-publication-status[data-state="unpublished"] { color: var(--amber); }
.client-publication-status[data-state="changed"]::before, .client-publication-status[data-state="unpublished"]::before { content: ""; display: inline-block; width: 5px; height: 5px; margin: 0 5px 2px 0; background: currentColor; border-radius: 50%; }
.sheet-input--fabricator-id { min-width: 210px; }
.hero-actions > a:not(.button) { font-size: 13px; }
.fabricators-page { max-width: 1120px; }
.fabricator-card { margin: 18px 0; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-panel); background: var(--surface); }
.fabricator-form .form-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fabricator-form > .button { margin-top: 16px; }
.fabricator-card > form + form { margin-top: 14px; }
.fabricators-archived { margin-top: 26px; }
.fabricators-archived li { margin: 10px 0; }
.publication-changes { margin-top: 18px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-panel); }
.publication-changes-table { width: 100%; table-layout: fixed; border-collapse: collapse; background: var(--surface); font-size: 14px; }
.publication-changes-table th, .publication-changes-table td { padding: 15px 18px; text-align: left; vertical-align: top; overflow-wrap: anywhere; border-bottom: 1px solid var(--line); }
.publication-changes-table th:first-child { width: 22%; }
.publication-changes-table thead th { background: var(--table-header); font-size: 12px; }
.publication-changes-table tbody th { font-size: 13px; font-weight: 500; }
.publication-changes-table tbody td { line-height: 1.55; }
.publication-changes-table tr:last-child > * { border-bottom: 0; }
.publication-changes-table td:nth-child(2) { color: var(--muted); }
.publication-changes-table td:nth-child(3) { background: var(--accent-wash); }
.publication-changes-table img { display: block; width: 100%; max-width: 240px; max-height: 220px; object-fit: contain; margin: 8px 0; }
.publication-change-photos { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.publication-changes-table .publication-change-photo { width: min(100%, 180px); height: 150px; margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-panel); }
.publication-review-page > .form-actions { align-items: center; margin-bottom: 38px; }
.publication-preview { margin-top: 38px; }
.publication-preview__page { margin-top: 20px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-panel); }
.publication-preview__page .client-status { padding: 28px 36px; }
.publication-preview__page .client-status__hero h1 { font-size: clamp(36px, 4vw, 64px); }
.publication-preview__page .client-product-photo__image { height: 380px; }
.work-order-history { list-style: none; padding: 0; margin: 14px 0; }
.work-order-history > li { padding: 16px 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.work-order-history .button { margin-top: 10px; }
.work-order-email-body { margin: 22px 0; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-panel); overflow-wrap: anywhere; }
.work-order-edit-message { margin-top: 24px; }
.work-order-edit-message[open] summary { margin-bottom: 14px; }
@media (max-width: 700px) {
  .fabricator-form .form-grid { grid-template-columns: 1fr; }
  .fabricator-card { padding: 16px; }
  .publication-changes-table { min-width: 550px; }
  .publication-preview__page .client-status { padding: 24px; }
  .publication-preview__page .client-product-photo__image { height: 320px; }
}

/* The pilot uses a quiet paper palette and one type family across the workspace. */
.maker-page > .page-heading h1, .setup-heading h1, .order-hero h1 { font-weight: 500; letter-spacing: -.035em; }
.production-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 24px; margin-bottom: 18px; }
.production-tools > .order-filters { flex: 1 1 500px; padding: 0; }
.order-sheet[data-density="compact"] .sheet-input { height: 38px; min-height: 38px; padding-block: 7px; }
.order-sheet[data-density="compact"] td { padding-block: 0; }
.client-status h1 { letter-spacing: -.035em; }
.published-link { max-width: 760px; }
.production-subnav { display: flex; gap: 24px; margin: 18px 0 22px; border-bottom: 1px solid var(--line); }
.production-subnav a { display: inline-flex; gap: 8px; align-items: center; padding: 12px 0; border-bottom: 2px solid transparent; color: var(--muted); text-decoration: none; font-size: 14px; }
.production-subnav a[aria-current] { border-bottom-color: var(--accent); color: var(--accent); font-weight: 600; }
.production-subnav a:not([aria-disabled="true"]):hover { color: var(--accent-hover); border-bottom-color: var(--accent-line); }
.production-subnav a:not([aria-disabled="true"]):active { color: var(--accent-active); border-bottom-color: var(--accent); }
.production-subnav a:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.grid-filter summary { cursor: pointer; padding-block: 12px; font-size: 13px; }
.grid-filter__fields { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin: 12px 0; }
.grid-filter__fields .field { flex: 1; min-width: 120px; }
.order-table .sheet-cell--actions, .order-table .sheet-actions-heading { min-width: 80px; width: 80px; }
.sheet-open-order { display: inline-grid; place-items: center; width: 40px; min-height: 44px; padding: 8px; text-decoration: none; color: var(--accent); font-size: 17px; }
.sheet-open-order:not([aria-disabled="true"]):hover { color: var(--accent-hover); background: var(--accent-wash); }
.sheet-open-order:not([aria-disabled="true"]):active { color: var(--accent-active); background: var(--accent-wash-hover); }
.sheet-open-order:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: -2px; }
.order-row--late .sheet-input[type=date] { color: var(--red); background: var(--red-wash); }
.order-row--at_risk .sheet-input[type=date] { color: var(--amber); background: var(--amber-wash); }
.order-sheet[data-density="compact"] .sheet-input { min-height: 38px; height: 38px; padding-block: 7px; }
.order-sheet[data-density="compact"] .order-table td { height: 44px; }
@media (max-width: 760px) { .production-subnav { margin-block: 12px; } }
.publication-diff { margin: 24px 0; border-block: 1px solid var(--line); padding: 16px 0; }
.publication-diff > summary { cursor: pointer; font-size: 14px; }
.sheet-risk-label--late { color: var(--red); }
.sheet-risk-label--at_risk { color: var(--amber); }
.order-row--late .sheet-risk-label { color: var(--red); }
.order-row--at_risk .sheet-risk-label { color: var(--amber); }
.order-table th, .order-table .sheet-input--order-number { font-family: var(--sans); }
@media (max-width: 700px) {
  .order-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .order-filters .filter-field { width: auto; min-width: 0; }
  .order-filters .filter-field--search, .order-filters .grid-filter, .order-filters__actions { grid-column: 1 / -1; }
  .order-filters .select-input { font-size: 14px; padding-right: 26px; background-position: right 8px center; }
}

/* Column editing stays anchored to the production sheet. */
.column-popover { position: fixed; inset: auto; margin: 0; width: 310px; max-width: calc(100vw - 24px); max-height: calc(100dvh - 24px); overflow-y: auto; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-menu); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-menu); white-space: normal; font: 14px/1.5 var(--sans); }
.column-popover__form { display: grid; gap: 14px; }
.column-popover h2 { font-size: 18px; font-weight: 500; }
.column-popover .form-field { min-width: 0; }
.column-popover .form-field label { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 500; }
.column-popover .field-hint { font-size: 12px; color: var(--muted); line-height: 1.5; }
.column-popover__type { font-size: 12px; color: var(--muted); }
.column-popover__visibility { display: flex; gap: 8px; align-items: center; font-size: 13px; }
.column-popover__visibility input { width: 16px; height: 16px; accent-color: var(--accent); }
.column-popover__remove { min-height: 40px; margin-inline: -12px; padding: 8px 12px; border: 0; background: transparent; color: var(--red); font-size: 13px; text-decoration: underline; }
.column-popover__remove:not(:disabled):hover { background: var(--red-wash); }
.column-popover__remove:not(:disabled):active { box-shadow: inset 0 0 0 1px var(--red-line); }
.column-popover__remove:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.column-popover__remove:disabled { color: var(--muted); cursor: not-allowed; text-decoration: none; }
.column-popover__restore { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; }
.column-popover__restore summary { min-height: 40px; margin-inline: -12px; padding: 8px 12px; cursor: pointer; }
.column-popover__restore summary:hover { color: var(--accent-hover); }
.column-popover__restore summary:active { color: var(--accent-active); }
.column-popover__restore summary:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.column-popover__restore summary span { color: var(--muted); margin-left: 5px; }
.column-popover__restore ul { list-style: none; margin: 12px 0 0; padding: 0; }
.column-popover__restore li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); }
.column-popover__restore .text-link { min-height: 36px; padding: 8px 12px; border: 0; background: transparent; font-size: 12px; }
.column-popover__restore .text-link:not(:disabled):hover { color: var(--accent-hover); background: var(--accent-wash); }
.column-popover__restore .text-link:not(:disabled):active { color: var(--accent-active); background: var(--accent-wash-hover); }
.column-popover__restore .text-link:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.column-popover__restore .text-link:disabled { color: var(--muted); cursor: not-allowed; }
.order-filters { position: relative; flex-wrap: wrap; gap: 12px; }
.order-filters > .filter-field--search { min-width: 200px; }
.grid-sort, .grid-filter { flex: 0 0 auto; }
.grid-sort > summary, .grid-filter > summary { min-height: 43px; padding: 11px 12px; border: 1px solid var(--line); border-radius: var(--radius-control); cursor: pointer; font-size: 13px; }
.grid-sort > summary:hover, .grid-filter > summary:hover { border-color: var(--accent-line); background: var(--accent-wash); color: var(--accent-hover); }
.grid-sort > summary:active, .grid-filter > summary:active { background: var(--accent-wash-hover); color: var(--accent-active); }
.grid-sort > summary:focus-visible, .grid-filter > summary:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.grid-sort[open] > summary, .grid-filter[open] > summary { border-color: var(--accent-line); color: var(--accent); }
.grid-sort__fields, .grid-filter__fields { position: absolute; top: calc(100% - 8px); right: 12px; z-index: 6; display: flex; flex-wrap: wrap; align-items: end; gap: 12px; width: 350px; max-width: calc(100% - 24px); margin: 0; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-menu); box-shadow: var(--shadow-menu); }
.grid-filter__fields { width: 600px; }
.grid-sort__fields .field, .grid-filter__fields .field { flex: 1; min-width: 120px; }
.grid-sort__fields label, .grid-filter__fields label { display: block; margin-bottom: 6px; font-size: 12px; color: var(--muted); }
@media (max-width: 700px) {
  .order-filters { grid-template-columns: minmax(0, 1fr) auto auto; align-items: end; gap: 10px; }
  .order-filters .filter-field--search { grid-column: 1 / -1; min-width: 0; }
  .order-filters .filter-field > .field-label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); border: 0; }
  .order-filters .grid-filter { grid-column: auto; }
  .grid-sort > summary, .grid-filter > summary { padding-inline: 10px; white-space: nowrap; }
  .column-add > .button { padding-inline: 12px; }
  .column-popover { padding: 18px; }
  .column-popover input, .column-popover select { font-size: 16px; }
}
