/* Readability for the six management workspaces. No page scaling. */
@media screen {
:is(#ppclManagerView,#poolsView,#psaView){font-size:18px;line-height:1.45}
:is(#ppclManagerView,#poolsView,#psaView) :is(label,input,select,textarea,button,td,p){font-size:17px!important;line-height:1.4}
:is(#ppclManagerView,#poolsView,#psaView) :is(small,th,.eyebrow,.subtle){font-size:14px!important;line-height:1.4}
:is(#ppclManagerView,#poolsView,#psaView) :is(h3,.panel-head strong){font-size:22px!important}
:is(#ppclManagerView,#poolsView) :is(.ppcl-tree-title,.pool-tree-title){padding:16px!important}
:is(#ppclManagerView,#poolsView) :is(.ppcl-tree-title,.pool-tree-title)>strong{font-size:19px!important;white-space:normal;overflow-wrap:anywhere}
:is(#ppclManagerView,#poolsView) :is(.ppcl-tree-title,.pool-tree-title)>span{font-size:14px!important}
:is(#ppclManagerView,#poolsView) :is(.ppcl-tree-caption,.pool-tree-caption){font-size:13px!important;padding:12px}
:is(#ppclManagerView,#poolsView) :is(.ppcl-tree-group-button,.pool-tree-group-button){padding:12px 8px!important;grid-template-columns:24px minmax(0,1fr) auto 16px!important}
:is(#ppclManagerView,#poolsView) :is(.ppcl-tree-group-button,.pool-tree-group-button) strong{font-size:15px!important;letter-spacing:0;overflow-wrap:anywhere}
:is(#ppclManagerView,#poolsView) :is(.ppcl-section-tag,.pool-section-tag){font-size:16px!important;white-space:normal!important;min-height:42px;padding:10px!important}
:is(#ppclManagerView,#poolsView) .ppcl-tree-tools{display:grid;grid-template-columns:1fr 1fr;gap:8px}
:is(#ppclManagerView,#poolsView) .ppcl-tree-tool{font-size:15px!important;min-height:42px;white-space:normal!important;width:auto!important;padding:8px!important}
#psaView .psa-main-tabs{flex-wrap:wrap;gap:4px}
#psaView .psa-general-grid label{font-size:17px!important}
#psaView .psa-general-grid input{min-height:46px;font-size:17px!important}
#psaView .psa-general-grid small{font-size:14px!important}
#psaView .psa-general-panel h3{font-size:21px!important}
/* Shared analysis detail, audit and invoice dialogs. */
#modalBackdrop .modal:not(:has(#analysisEntryForm)){width:min(1100px,calc(100vw - 40px));max-height:94dvh}
#editModalBackdrop .edit-modal:has(#invoiceForm){width:min(1200px,calc(100vw - 40px));max-height:94dvh}
#editModalBackdrop .audit-editor-modal{width:min(1480px,calc(100vw - 40px));max-height:94dvh}
:is(#modalBackdrop,#editModalBackdrop) :is(.modal-head h3){font-size:25px!important}
:is(#modalBackdrop,#editModalBackdrop) :is(.modal-head p){font-size:15px!important}
:is(#modalBackdrop .modal:not(:has(#analysisEntryForm)),.audit-editor-modal,.edit-modal:has(#invoiceForm)){font-size:17px;line-height:1.45}
:is(#modalBackdrop .modal:not(:has(#analysisEntryForm)),.audit-editor-modal,.edit-modal:has(#invoiceForm)) :is(p,label,input,select,textarea,button,td,strong,b){font-size:17px!important;line-height:1.4}
:is(#modalBackdrop .modal:not(:has(#analysisEntryForm)),.audit-editor-modal,.edit-modal:has(#invoiceForm)) :is(small,th,.eyebrow,.detail-item span,.field>span,.check-field span,.audit-readonly span){font-size:15px!important;line-height:1.4}
#modalBackdrop .detail-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
#modalBackdrop table{width:100%;min-width:0!important;table-layout:auto}
#modalBackdrop :is(th,td){white-space:normal;overflow-wrap:anywhere;padding:12px}
#invoiceForm{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
#invoiceForm .span-2{grid-column:span 2}
#invoiceForm :is(.form-actions,.invoice-preview){grid-column:1/-1}
#invoiceForm input:not([type=checkbox]),#invoiceForm select{min-height:44px;width:100%}
#invoiceForm textarea{min-height:100px}
#invoiceForm .form-actions{flex-wrap:wrap}
.audit-editor-modal .audit-photo-entry{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.audit-editor-modal .audit-photo-type-field{grid-column:1/-1}
.audit-editor-modal .audit-photo-comment{grid-column:1/-1}
.audit-editor-modal .audit-photo-comment textarea{width:100%;min-height:100px;box-sizing:border-box}
.audit-editor-modal .audit-editor-footer{flex-wrap:wrap;gap:12px}
.audit-editor-modal .form-actions{flex-wrap:wrap;max-width:100%}
.audit-editor-modal :is(.audit-control-name small,.audit-sample-empty,.audit-photo-capture small){font-size:14px!important}
.audit-editor-modal .audit-control-name strong{font-size:17px!important}
@media(min-width:821px){
#ppclManagerView .ppcl-detail-workspace,#poolsView .pool-ppcl-workspace{grid-template-columns:300px minmax(0,1fr)!important;gap:18px!important}
}
@media(max-width:1000px){
#invoiceForm{grid-template-columns:repeat(2,minmax(0,1fr))}
#modalBackdrop .detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.audit-editor-modal .audit-editor-top{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:600px){
#modalBackdrop .modal,#editModalBackdrop .edit-modal{width:calc(100vw - 16px)!important;max-height:96dvh}
#invoiceForm,#modalBackdrop .detail-grid,.audit-editor-modal .audit-photo-entry,.audit-editor-modal .audit-editor-top{grid-template-columns:1fr}
#invoiceForm .span-2{grid-column:1/-1}
:is(#modalBackdrop,#editModalBackdrop) :is(.modal-body,.edit-modal-body){padding:16px}
}
}
@media screen {
:is(#ppclManagerView,#poolsView) :is(.detail-item strong,.ppcl-inline-editor-head strong){font-size:18px!important}
:is(#ppclManagerView,#poolsView) :is(.detail-item span,.ppcl-inline-editor-head small){font-size:15px!important}
:is(.audit-editor-modal,.edit-modal:has(#invoiceForm)) :is(label>span,.audit-controls-summary span,.audit-editor-footer span,.audit-photo-type-field>span){font-size:15px!important}
.audit-editor-modal :is(h3,h4){font-size:21px!important}
}
@media screen {#invoiceForm .invoice-preview span{font-size:15px!important}#invoiceForm .field:has([name=subject]){grid-column:span 3}@media(max-width:1000px){#invoiceForm .field:has([name=subject]){grid-column:1/-1}}}
