#workshop-psrf{padding:12px;min-width:0}#workshop-psrf .psrf-controls{position:sticky;top:0;z-index:20;background:#fff;padding:7px 0;gap:5px;flex-wrap:wrap}#workshop-psrf #psrf-status{font-size:12px;margin:6px 0;color:#4b647b}#psrf-grid{overflow:auto;max-height:65vh;border:1px solid #d4e0ed}#psrf-grid table{min-width:1820px;width:100%;border-collapse:separate;border-spacing:0;table-layout:fixed;font-size:12px}#psrf-grid th,#psrf-grid td{border-right:1px solid #d4e0ed;border-bottom:1px solid #d4e0ed;padding:5px;vertical-align:top;overflow-wrap:anywhere;white-space:pre-wrap}#psrf-grid th{position:sticky;top:0;z-index:5;background:#eaf3fa;white-space:normal}#psrf-grid th:first-child,#psrf-grid td:first-child{width:46px;position:sticky;left:0;background:#eef4fa;z-index:4}#psrf-grid th:first-child{z-index:7}#psrf-grid th:nth-child(8),#psrf-grid th:last-child{width:210px}#psrf-grid th:nth-child(12){width:75px}#psrf-grid td input,#psrf-grid td select,#psrf-grid td textarea{width:100%;min-width:0;max-width:100%;font-size:12px;padding:5px;min-height:31px}#psrf-grid td textarea{height:70px;resize:vertical}#psrf-grid .psrf-selected td{background:#eaf3ff}#psrf-grid .psrf-editing td{background:#f5f9ff}#workshop-psrf .psrf-derived{display:block;padding:5px;background:#e9edf1;color:#000}#workshop-psrf .sj-filter-menu{position:fixed;z-index:1000;max-width:calc(100vw - 16px);width:300px;max-height:470px;overflow:auto;background:white;padding:12px}#workshop-psrf #sj-filter-values{max-height:160px;overflow:auto}#workshop-psrf #sj-filter-values label{display:flex;gap:6px;align-items:center;font-size:12px}#workshop-psrf .sj-filter-menu>input,#workshop-psrf .sj-filter-menu>select{width:100%;margin:5px 0}#workshop-psrf .psrf-history{background:#e5e7eb;padding:10px;overflow:auto;max-height:45vh}#workshop-psrf .psrf-history table{font-size:12px;min-width:600px}#workshop-psrf .psrf-history td{white-space:pre-wrap;overflow-wrap:anywhere}@media(max-width:700px){#workshop-psrf{padding:8px}#workshop-psrf .psrf-controls button{font-size:11px;padding:6px 8px;min-height:30px}#psrf-grid{max-height:68vh}#psrf-grid td input,#psrf-grid td select,#psrf-grid td textarea{font-size:16px}}

/* Release 190: freeze through PSRF No.; distinguish the update work. */
#psrf-grid th:nth-child(2){width:110px}#psrf-grid th:nth-child(3){width:150px}
#psrf-grid .psrf-frozen{position:sticky;z-index:6;background:#fff;box-shadow:1px 0 #a5bdd3}
#psrf-grid th.psrf-frozen{top:0;z-index:9;background:#eaf3fa}
#psrf-grid .psrf-selected .psrf-frozen{background:#eaf3ff}#psrf-grid .psrf-editing .psrf-frozen{background:#f5f9ff}
#psrf-grid th.psrf-update-field,#psrf-grid td.psrf-update-field{background:#e1f3df}
#psrf-grid [hidden]{display:none!important}
#workshop-psrf[data-mode="new"] #psrf-grid table{min-width:1330px}
#psrf-grid input[type="date"]{min-height:36px;color-scheme:light;cursor:pointer}
#psrf-grid input[type="date"]::-webkit-calendar-picker-indicator{opacity:1;cursor:pointer;min-width:16px}

#workshop-psrf .psrf-controls button[aria-pressed="true"]{background:#235f9a;color:#fff;border-color:#235f9a}

/* Release 192: Date removed; retain No + PSRF No as the frozen identifiers. */
#psrf-grid th:nth-child(2){width:150px}#psrf-grid th:nth-child(3){width:155px}
#psrf-grid th:nth-child(7),#psrf-grid th:last-child{width:210px}#psrf-grid th:nth-child(11){width:75px}
#workshop-psrf .psrf-department{display:flex;gap:18px;align-items:end;flex-wrap:wrap;margin:6px 0 10px}
#workshop-psrf .psrf-department label{display:grid;gap:4px;font-size:12px}
#workshop-psrf .psrf-department output{font-weight:700;min-height:32px;display:flex;align-items:center}
#psrf-grid .psrf-deleting td{background:#ffe3e3;color:#8b1111}

/* Release 193: section selection above grid; compact direct update action. */
#psrf-grid th:first-child,#psrf-grid td:first-child{width:86px}
#psrf-grid [data-psrf-update]{font-size:10px;padding:3px;margin-bottom:4px;display:block}
#psrf-grid th:nth-child(10){width:75px}#psrf-grid th:nth-child(11){width:210px}
#psrf-section{min-width:145px}

/* Local review only: match every editable field to a compact single-row height. */
#psrf-grid td input,#psrf-grid td select,#psrf-grid td textarea,#workshop-psrf .psrf-derived{
 box-sizing:border-box;height:38px;min-height:38px;max-height:38px;margin:0;vertical-align:top;
}
#psrf-grid td textarea{resize:none;overflow:auto}

/* Release198: dimensions follow the supplied datasheet, without Handled Date. */
#workshop-psrf #psrf-grid table{min-width:0!important;table-layout:fixed;font-size:16px}
#psrf-grid th,#psrf-grid td{box-sizing:border-box;padding:8px;line-height:26px}
#psrf-grid thead th{height:104px;line-height:23px}
#psrf-grid tbody td{height:82px}
#psrf-grid th:nth-child(8),#psrf-grid td:nth-child(8),#psrf-grid th:nth-child(9),#psrf-grid td:nth-child(9){background:#e1f3df}
#psrf-grid [data-psrf-update]{font-size:9px;padding:2px;line-height:18px;white-space:nowrap;min-height:25px}
#psrf-grid [data-psrf-select]{display:block;margin-top:5px;padding:2px 7px;min-height:25px;line-height:18px}
#psrf-grid .psrf-editing .psrf-update-field{background:#e1f3df}

/* Release199: smaller, readable working-list text. */
#workshop-psrf #psrf-grid table{font-size:12px}
#psrf-grid th,#psrf-grid td{line-height:20px}
#psrf-grid thead th{line-height:20px}

#workshop-psrf .psrf-pending{margin-left:auto;align-self:center;font-size:14px;font-weight:700;color:#111;white-space:nowrap}

/* Release203: both department totals stay visible independently of list filters. */
#workshop-psrf .psrf-pending{display:grid;gap:4px;text-align:right;white-space:normal;max-width:100%}
#workshop-psrf .psrf-pending strong{font-weight:700;overflow-wrap:anywhere}

#psrf-report-grid{overflow:auto;max-height:68vh;max-width:100%;border:1px solid #d4e0ed}
#psrf-report-grid table{font-size:12px;border-collapse:separate;border-spacing:0}
#psrf-report-grid th,#psrf-report-grid td{padding:6px 8px;border-right:1px solid #d4e0ed;border-bottom:1px solid #d4e0ed;vertical-align:top;white-space:pre-wrap;overflow-wrap:anywhere;min-width:75px}
#psrf-report-grid th{position:sticky;top:0;background:#eaf3fa;z-index:3;white-space:normal}
#psrf-report-grid td:nth-child(13){text-align:right}

/* C3 compact report selectors stay within phone width. */
.psrf-report-selections{display:flex;flex-wrap:wrap;gap:10px;margin:10px 0}
.psrf-report-selections label{display:grid;gap:4px;font-size:13px;flex:1 1 150px;min-width:0}
.psrf-report-selections select{width:100%;min-width:0;max-width:100%}
@media(max-width:600px){.psrf-report-selections{display:grid;grid-template-columns:1fr 1fr}}

/* C2 uses compact reference dimensions; C3 keeps its all-case columns. */
#workshop-psrf.psrf-done-report #psrf-report-grid table{table-layout:fixed;min-width:0;font-size:12px}
.psrf-done-report #psrf-report-grid th,.psrf-done-report #psrf-report-grid td{min-width:0;padding:6px 8px;line-height:20px}
.psrf-done-report #psrf-report-grid thead th{height:72px;box-sizing:border-box}
.psrf-done-report #psrf-report-grid tbody td{height:48px;box-sizing:border-box}
.psrf-done-report #psrf-report-grid td:nth-child(12){text-align:right}
.psrf-done-report #psrf-report-grid td:nth-child(13){text-align:left}
