.review-filters{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.review-alert{color:var(--danger,#b42318);font-size:.9rem;white-space:pre-wrap}.review-alert:empty{display:none}.review-table small{display:block;font-size:.8rem;color:var(--muted,#667085)}.review-table td{vertical-align:top}.review-table td:last-child{min-width:145px}.review-current{font-size:.9rem;font-weight:600}.contract-actions #contract-review-comment{width:100%;min-height:72px;resize:vertical}.review-table .mini-action{display:block;margin-bottom:6px}@media(max-width:680px){.review-table{min-width:0}.review-filters button{flex:1 1 43%;padding:9px 8px}}

/* Queue cards keep status and actions visible at phone width. */
@media (max-width:600px) {
  #page-document-review,#document-review-root { min-width:0; max-width:100%; }
  #document-review-root .review-queue-wrap { min-width:0; max-width:100%; width:100%; }
  #document-review-root .review-table { display:block; width:100%; min-width:0; max-width:100%; }
  #document-review-root .review-table thead { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; }
  #document-review-root .review-table tbody { display:grid; gap:10px; width:100%; }
  #document-review-root .review-table tr { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px 12px; padding:12px; border:1px solid var(--border); border-radius:9px; background:var(--surface,#fff); min-width:0; }
  #document-review-root .review-table td { display:block; height:auto; min-width:0; padding:0; border:0; font-size:12px; line-height:1.35; overflow-wrap:anywhere; white-space:normal; }
  #document-review-root .review-table td::before { content:attr(data-label); display:block; margin-bottom:3px; font-size:10px; color:var(--muted); }
  #document-review-root .review-table td:nth-child(1),#document-review-root .review-table td:nth-child(2) { grid-column:1 / -1; }
  #document-review-root .review-table td:last-child { min-width:0; }
  #document-review-root .review-table .review-row-actions { grid-column:1 / -1; display:flex; flex-wrap:wrap; gap:8px; padding-top:4px; }
  #document-review-root .review-table .review-row-actions::before { display:none; }
  #document-review-root .review-row-actions .mini-action { flex:1 1 130px; min-width:0; max-width:100%; min-height:44px; margin:0; padding:8px; white-space:normal; text-align:center; }
  #document-review-root .review-filters button { min-width:0; min-height:44px; white-space:normal; overflow-wrap:anywhere; }
  #document-review-root .page-heading { flex-wrap:wrap; gap:8px; }
  #document-review-root .page-heading > div { min-width:0; }
  #document-review-root .page-heading h1 { overflow-wrap:anywhere; }
}

/* Assigned technical evidence stays within the review panel on narrow screens. */
#document-review-root [data-execution-review],
#document-review-root .review-technical-evidence { min-width:0; max-width:100%; }
#document-review-root .review-technical-table-wrap { width:100%; min-width:0; max-width:100%; overflow-x:auto; }
#document-review-root .review-technical-table { width:100%; min-width:0; table-layout:fixed; }
#document-review-root .review-technical-table th,
#document-review-root .review-technical-table td { white-space:normal; overflow-wrap:anywhere; word-break:normal; }
#document-review-root .review-technical-table th:first-child { width:30%; }
#document-review-root .review-technical-evidence li { min-width:0; overflow-wrap:anywhere; }
#document-review-root .review-technical-evidence .mini-action { max-width:100%; white-space:normal; overflow-wrap:anywhere; }
#document-review-root .review-technical-evidence details small { display:block; overflow-wrap:anywhere; }
@media(max-width:600px) {
 #document-review-root .review-technical-table th,
 #document-review-root .review-technical-table td { padding:6px 4px; font-size:11px; line-height:1.35; }
 #document-review-root .review-technical-evidence { padding:12px; }
}
