.order-inbox {overflow:hidden}
.order-inbox-tools {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;padding:12px 14px}
.order-filters {display:flex;flex-wrap:wrap;gap:5px}
.order-filters button {border:1px solid transparent;border-radius:8px;background:transparent;padding:7px 9px;font-size:12px;font-weight:650;white-space:nowrap}
.order-filters button:hover {background:#f7f0e9}
.order-filters button[aria-pressed="true"] {border-color:#dac5b3;background:var(--soft);color:var(--green-dark)}
.order-filters span {margin-left:3px;color:var(--muted);font-variant-numeric:tabular-nums;font-size:11px}
.order-search {width:min(100%,245px)}
.order-table {min-width:780px}
.order-table th:nth-last-child(-n+3) {text-align:left}
.order-table td {vertical-align:middle;padding-block:10px}
.order-table td:nth-child(4),.order-table .row-ref {white-space:nowrap}
.order-table td:nth-child(6) {color:var(--muted);width:23%}
.order-table tr[data-order-id] {cursor:pointer}
.order-table tr:focus-within {background:#fcf4ec}
.order-inbox-footer {display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 14px;color:var(--muted);font-size:12px;border-top:1px solid var(--line)}
.queue-pagination {display:flex;align-items:center;gap:8px}
.queue-pagination .btn {min-height:30px;padding:4px 8px}

.order-back {margin-bottom:12px}
.order-screen .order-head {padding:18px 20px}
.order-screen .order-head h1 {font-size:clamp(22px,3vw,30px)}
.order-screen .order-body {grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr)}
.order-screen .work,.order-screen .sources {padding:16px 20px}
.order-screen .sources .pdf-sheet img {max-width:100%;width:auto;max-height:660px;margin:auto;object-fit:contain}
.order-screen .steps {max-width:760px}
.order-screen-enter {animation:order-screen-in .18s ease-out}
@keyframes order-screen-in {
  from {opacity:0;transform:translateX(12px)}
  to {opacity:1;transform:translateX(0)}
}
@media(prefers-reduced-motion:reduce) {.order-screen-enter {animation:none}}
.archive-body {padding:14px 20px;border-top:1px solid var(--line);background:#fcfaf8;border-radius:0 0 var(--radius) var(--radius)}
.archive-service {border:1px solid var(--line);border-radius:10px;padding:10px 12px;background:var(--paper)}
.archive-service + .archive-service {margin-top:8px}
.archive-service summary {cursor:pointer;font-weight:650}
.archive-service summary span {float:right;margin-left:10px;color:var(--muted);font-size:12px}
.archive-service .record-layout {margin-top:10px}
@media(max-width:905px) {
  .order-screen .order-body {grid-template-columns:1fr}
  .order-screen .order-head,.order-screen .work,.order-screen .sources,.archive-body {padding:12px}
  .order-screen .sources {border-left:0;border-top:1px solid var(--line)}
  .order-inbox-tools {padding:9px}
}
