/* File reader only. Tax assessment and rule review remain in their own screens. */
#dialog:has(.pc-reader){width:min(900px,calc(100% - 32px));max-height:92vh}
#dialog:has(.pc-reader) .dialog-heading h2{font-size:19px;overflow-wrap:anywhere}
.pc-reader{font-size:14px;line-height:1.8;overflow-wrap:anywhere}
.pc-reader-tools{display:flex;gap:20px;align-items:flex-end;justify-content:space-between;margin:6px 0 20px}
.pc-reader-tools label{display:flex;flex-direction:column;gap:6px;font-size:12px;color:#65765c;min-width:0;flex:1;max-width:560px}
.pc-reader-tools select{width:100%;min-width:0;padding:9px 12px;border:1px solid #d5dfce;border-radius:7px;background:#fff;color:#334e3c;text-overflow:ellipsis}
.pc-reader-tools>.btn{flex-shrink:0}
.pc-reader-warning{font-size:12px;color:#855124;background:#fcf6eb;border-radius:6px;padding:8px 12px;margin:0 0 16px}
.pc-reader-page{padding:20px 0;border-top:1px solid #e2e9dc}
#dialog .pc-reader-page-number{font-size:12px;color:#7a856f;margin:0 0 12px}
.pc-reader-text{white-space:pre-wrap;font:14px/1.95 system-ui,sans-serif;color:#314936;tab-size:4}
.pc-reader-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;border-top:1px solid #e2e9dc;padding-top:12px}
#dialog .pc-reader-footer p{font-size:12px;color:#687761;margin:0;flex:1}
.pc-reader [hidden]{display:none!important}
.pc-reader select:focus-visible,.pc-reader a:focus-visible,.pc-reader button:focus-visible{outline:2px solid #4a7755;outline-offset:3px}
@media(max-width:760px){
  #dialog:has(.pc-reader){width:calc(100% - 16px);max-height:94vh}
  #dialog:has(.pc-reader) .dialog-heading h2{font-size:17px}
  .pc-reader-tools{align-items:flex-start;flex-direction:column;gap:10px;margin-bottom:16px}
  .pc-reader-tools label{width:100%}
  .pc-reader-text{font-size:13px;line-height:1.9}
  .pc-reader-page{padding:16px 0}
}
