header{flex-wrap:wrap}
.attention-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:10px;margin:20px 0}
.attention-summary button{display:flex;flex-direction:column;align-items:start;gap:8px;background:#fff;text-align:start}
.attention-summary strong{font-size:26px;color:#21776e}
.attention-summary span{font-size:13px;line-height:1.6}
td{vertical-align:top;max-width:330px;line-height:1.7}
td small{display:block;color:#5f716b}
.attention-flags{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:6px}
.attention-flag{font-size:12px;background:#fff0d7;border-radius:5px;padding:3px 7px}
.attention-flag.pending_review,.attention-flag.followup_due{background:#fbe7e3;color:#8f3328}
.attention-links{display:flex;flex-wrap:wrap;gap:8px}
.attention-links a,.attention-links button{font-size:12px;min-height:40px;padding:7px 10px}
details{margin-top:8px}summary{cursor:pointer;color:#226b62}
.evidence-item{border-inline-start:3px solid #a8cfc5;padding-inline-start:9px;margin:10px 0;font-size:13px}
.evidence-item a{margin-inline-end:10px}
.data-note{color:#60736e;font-size:12px}
.pager{justify-content:center}
dialog{width:min(650px,calc(100% - 24px));max-height:90vh;overflow:auto;border:1px solid #acc8c1;border-radius:8px;padding:24px;color:#263c3a}
dialog::backdrop{background:#163d3a65}
dialog label{margin:12px 0}dialog textarea{width:100%}
.history-item{padding:12px 0;border-top:1px solid #dbe6e2;font-size:13px;line-height:1.7}
.history-item p{margin:4px 0;white-space:pre-wrap;overflow-wrap:anywhere}
#dialogStatus{color:#9c342c;min-height:20px}
@media(max-width:600px){
  .attention-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.attention-summary button{padding:12px}dialog{padding:16px}
  .table-scroll table,.table-scroll tbody,.table-scroll tr,.table-scroll td{display:block;width:100%;max-width:none}
  .table-scroll thead{display:none}
  .table-scroll table{background:transparent}
  .table-scroll tr{padding:12px;margin-bottom:12px;background:#fff;border:1px solid #cfdfd9;border-radius:6px}
  .table-scroll td{border:0;padding:10px 4px;min-width:0}
  .table-scroll td::before{content:attr(data-label);display:block;font-size:12px;font-weight:bold;color:#60736e;margin-bottom:5px}
  .table-scroll td:first-child::before{display:none}
  .pager{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;gap:10px}
  .pager button{width:44px;height:44px;padding:0}.pager span{text-align:center}
}
