.ap-main{width:min(1660px,calc(100% - 40px))}
.ap-metrics{grid-template-columns:repeat(5,minmax(0,1fr))}
.ap-queue-head{align-items:flex-start;flex-direction:column}
.ap-filters{display:flex;flex-wrap:wrap;width:100%;gap:9px}
.ap-filters label{flex:1 1 165px;min-width:0}
.ap-filters label:first-child{flex:2 1 290px}
.ap-filters input,.ap-filters select{width:100%;min-width:0}
.ap-filters input{width:100%}
.ap-clear-filters{flex:0 0 140px;min-height:42px;padding:8px 13px;border:1px solid #cbb3bb;border-radius:9px;background:#fff;color:var(--brand);font-weight:750;cursor:pointer;white-space:nowrap}
.ap-clear-filters:hover,.ap-clear-filters:focus-visible{background:#fff6f8;border-color:var(--brand)}
table{min-width:1100px;table-layout:fixed}
th,td{padding-left:10px;padding-right:10px}
th:nth-child(1){width:19%}th:nth-child(2){width:14%}th:nth-child(3){width:9%}th:nth-child(4){width:10%}th:nth-child(5){width:8%}th:nth-child(6){width:8%}th:nth-child(7){width:10%}th:nth-child(8){width:14%}th:nth-child(9){width:8%}
.ap-manuscript-cell{min-width:0}
.ap-journal-cell{min-width:0;max-width:none}
.ap-journal-cell strong{display:block;line-height:1.4}
.ap-journal-cell small{margin-top:6px}
.ap-assignee-cell{min-width:0}
.ap-assignee-cell select{width:100%;min-height:34px;padding:6px 28px 6px 8px;border:1px solid var(--line);border-radius:7px;background:#fff;color:var(--ink)}
.ap-assignee-cell small{margin-top:5px}
.ap-query-cell{min-width:0}
.ap-query-cell strong{display:block;font-size:13px}
.ap-query-cell small{margin-top:6px}
.ap-quality-cell{min-width:0;max-width:none}
.ap-quality{display:inline-flex;border-radius:999px;padding:5px 9px;background:#eef1f5;color:#526075;font-size:11px;font-weight:800}
.ap-quality[data-quality-value=complete]{background:#ddf6ed;color:#08634f}
.ap-quality[data-quality-value=failed]{background:#ffe3e3;color:#8e2020}
.ap-quality[data-quality-value=running],.ap-quality[data-quality-value=queued]{background:#e4f1ff;color:#155993}
.ap-quality[data-quality-value=stale]{background:#fff4d6;color:#7e5600}
.ap-quality-cell [data-failure]{display:-webkit-box;margin-top:7px;color:#992c2c;line-height:1.35;overflow:hidden;-webkit-line-clamp:3;-webkit-box-orient:vertical}
.ap-state[data-stage-value=preparation]{background:#eef1f5;color:#526075}
.ap-state[data-stage-value=typesetting]{background:#e4f1ff;color:#155993}
.ap-state[data-stage-value=internal-qa]{background:#fff4d6;color:#7e5600}
.ap-state[data-stage-value=awaiting-author]{background:#f0e8ff;color:#68439a}
.ap-state[data-stage-value=production-verification]{background:#e9f5f3;color:#096c63}
.ap-state[data-stage-value=final-approved]{background:#ddf6ed;color:#08634f}
.ap-actions{min-width:0;text-align:left}
.ap-actions a,.ap-actions button{margin-left:0;margin-right:0;white-space:normal}
td [data-next-action]{max-width:225px}
@media(max-width:1380px){
  .ap-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:900px){
  .ap-main{width:min(100% - 24px,1660px)}
  .ap-filters label{flex-basis:200px}
  .ap-filters label:first-child{flex-basis:100%}
  .ap-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:560px){
  .ap-filters label,.ap-filters label:first-child{flex-basis:100%}
  .ap-clear-filters{width:100%}
}
