.pc{position:relative}.pc-tools{display:flex;align-items:end;gap:8px;flex-wrap:wrap}.pc-tools label{font-size:8pt;max-width:190px}.pc-grid{overflow:auto;max-height:65vh;margin-top:10px}.pc table{width:100%;border-collapse:collapse}.pc th,.pc td{font-size:8pt;padding:5px;border:1px solid #cdddeb;text-align:left;vertical-align:top;overflow-wrap:anywhere}.pc th{position:sticky;top:0;background:#e8f2f9;z-index:2}.pc th button{padding:3px;font-size:8pt}.pc td small{display:block;font-size:8pt}.pc input:not([type=radio]),.pc select{font-size:8pt;min-height:30px;padding:4px}.pc-filter{position:absolute;right:15px;top:90px;background:#fff;border:1px solid #98b6d0;box-shadow:0 4px 16px #0003;padding:12px;z-index:20;max-width:340px}.pc-filter label{display:block;margin:7px 0}.pc-filter select{width:100%}
.pc-inline-editor>td{padding:10px;background:#f1f7fc}.pc-inline-editor .pc-tools select{width:260px;max-width:60%}.pc-inline-editor .pc-tools input[type=number]{width:90px}.pc-inline-editor h3{font-size:10pt;margin:8px 0}.pc td [data-row-edit]{display:block;font-size:8pt;padding:4px;margin-top:4px}

.pc-layout{display:grid;grid-template-columns:minmax(280px,.85fr) minmax(460px,1.6fr);gap:12px;margin-top:10px;align-items:start}.pc-records,.pc-side-editor{min-width:0;border:1px solid #cdddeb;border-radius:6px;overflow:hidden;background:#fff}.pc-layout h2{font-size:11pt;margin:0;padding:10px;background:#e8f2f9}.pc-side-editor>p{padding:10px}.pc-side-editor .pc-inline-editor{padding:10px;background:#f4f8fc}.pc-side-editor .pc-grid{max-height:none}.pc-editor-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;background:#e8f2f9}.pc-editor-heading small{font-size:8pt}.pc .pc-tools label{display:flex;flex-direction:column;gap:4px}.pc-defect-row{display:grid;grid-template-columns:minmax(140px,1fr) 70px 30px;gap:6px;align-items:end;margin:6px 0}.pc-defect-row label{display:flex;flex-direction:column;font-size:8pt;gap:4px}.pc-defect-row button{padding:5px}.pc-side-editor input,.pc-side-editor select{max-width:100%;min-width:0;box-sizing:border-box}.pc-side-editor table{table-layout:fixed}.pc-side-editor th:first-child{width:33%}.pc-side-editor td button{font-size:7pt;padding:3px}.pc-records th:first-child{width:65px}.pc-records th:nth-child(2){width:70px}.pc-records th:nth-child(3){width:85px}.pc-records td small{color:#526d87;margin-top:4px}.pc-records .pc-grid{margin-top:0}.pc-side-editor label input{width:100%}.pc-inline-editor h3{margin-top:14px}.pc-side-editor [data-editor-save]{margin-top:12px}@media(max-width:1000px){.pc-layout{grid-template-columns:1fr}.pc-side-editor table{min-width:530px}}

.pc-records th:nth-child(2){width:90px}

.pc-records table{min-width:900px}.pc-records td{white-space:nowrap}.pc-records th{white-space:normal}
.pc>.pc-records{margin-top:10px;width:100%;box-sizing:border-box}.pc-records table{min-width:1100px}.pc-records .pc-inline-editor td{white-space:normal;vertical-align:top;padding:5px;background:#f1f7fc}.pc-records input:not([type=radio]),.pc-records select{width:100%;min-width:65px;box-sizing:border-box}.pc-records .pc-inline-editor td:nth-child(5){min-width:160px}.pc-records .pc-defect-row{grid-template-columns:minmax(140px,1fr) 55px 25px;min-width:230px;margin:0 0 4px;gap:3px}.pc-records .pc-defect-row input{min-width:0}.pc-records td label{display:block;font-size:8pt}.pc-records td button{font-size:8pt;padding:4px}.pc-records .pc-inline-editor label{margin-top:5px}.pc-records .pc-inline-editor #pcm-message{max-width:150px;color:#d00000}
/* Keep every editable rejection quantity visible beside its type. */
.pc-records> .pc-grid>table{table-layout:auto}.pc-records> .pc-grid>table>thead>tr>th:nth-child(6),.pc-records .pc-rejection-cell{min-width:270px;width:270px}
.pc .pc-rejection-details{table-layout:fixed;min-width:260px;width:100%;margin:0}.pc .pc-rejection-details th:first-child{width:auto}.pc .pc-rejection-details th:nth-child(2){width:65px}.pc .pc-rejection-details th:nth-child(3){width:30px}.pc .pc-rejection-details td,.pc .pc-rejection-details th{padding:3px;vertical-align:top;white-space:normal}.pc .pc-rejection-details input,.pc .pc-rejection-details select{min-width:0!important;width:100%;max-width:100%}.pc .pc-rejection-details td button{padding:4px}
/* All record values and edit controls start at the top of their row. */
.pc .pc-records table :is(th,td){vertical-align:top!important}
/* EDIT shows the registered rejection code, description and quantity together. */
.pc-records> .pc-grid>table>thead>tr>th:nth-child(6),.pc-records .pc-rejection-cell{min-width:400px;width:400px}
.pc .pc-rejection-details{min-width:390px}.pc .pc-rejection-details th:first-child{width:95px}.pc .pc-rejection-details th:nth-child(2){width:auto}.pc .pc-rejection-details th:nth-child(3){width:65px}.pc .pc-rejection-details th:nth-child(4){width:30px}.pc .pc-rejection-details [data-defect-desc]{overflow-wrap:anywhere;white-space:normal}
.pc .pc-pending{color:#c81e2b}.pc #pcm-balance{margin-top:6px;min-width:170px}.pc #pcm-balance small{white-space:nowrap;color:#25415c}.pc #pcm-balance small.pc-pending{color:#c81e2b}
/* Fixed reference-sized F5 columns: keep the remaining fields on horizontal scroll. */
.pc-records>.pc-grid>table{table-layout:fixed;width:1569px;min-width:1569px}
.pc-records>.pc-grid>table>thead>tr>th{box-sizing:border-box}
.pc-records>.pc-grid>table>thead>tr>th:nth-child(1){width:65px}
.pc-records>.pc-grid>table>thead>tr>th:nth-child(2){width:102px}
.pc-records>.pc-grid>table>thead>tr>th:nth-child(3){width:92px}
.pc-records>.pc-grid>table>thead>tr>th:nth-child(4){width:124px}
.pc-records>.pc-grid>table>thead>tr>th:nth-child(5){width:196px}
.pc-records>.pc-grid>table>thead>tr>th:nth-child(6){width:390px;min-width:0}
.pc-records>.pc-grid>table>thead>tr>th:nth-child(7){width:110px}
.pc-records>.pc-grid>table>thead>tr>th:nth-child(8){width:100px}
.pc-records>.pc-grid>table>thead>tr>th:nth-child(9){width:190px}
.pc-records>.pc-grid>table>thead>tr>th:nth-child(10),.pc-records>.pc-grid>table>thead>tr>th:nth-child(11){width:100px}
.pc-records>.pc-grid>table>tbody>tr>td{padding:3px;box-sizing:border-box}
.pc-records>.pc-grid>table>tbody>tr:not(.pc-inline-editor):not(.pc-edit-extra)>td{height:59px}
.pc-records .pc-inline-editor .pc-rejection-cell{min-width:0;width:auto}
.pc .pc-rejection-details{min-width:0;width:100%;table-layout:fixed}
.pc .pc-rejection-details th:first-child{width:80px}
.pc .pc-rejection-details th:nth-child(2){width:auto}
.pc .pc-rejection-details th:nth-child(3){width:62px}
.pc .pc-rejection-details th:nth-child(4){width:22px}
.pc .pc-rejection-details :is(input,select){height:24px;min-height:24px;padding:2px;font-size:8pt}
.pc .pc-rejection-details :is(td,th){padding:1px 2px}
.pc .pc-rejection-details td button{padding:2px;min-height:22px}
.pc #pcm-balance small{line-height:18px;margin-top:0}

/* Compact transaction rows; all employees stay together in each identity cell. */
.pc-records>.pc-grid>table{width:1475px;min-width:1475px}
.pc-records>.pc-grid>table>thead>tr>th:nth-child(2){width:85px}
.pc-records>.pc-grid>table>thead>tr>th:nth-child(4){width:125px}
.pc-records>.pc-grid>table>thead>tr>th:nth-child(5){width:75px}
.pc-records>.pc-grid>table>thead>tr>th:nth-child(6){width:175px;min-width:0}
.pc-records>.pc-grid>table>thead>tr>th:nth-child(7){width:180px}
.pc-records>.pc-grid>table>thead>tr>th:nth-child(8){width:360px}
.pc-records>.pc-grid>table>thead>tr>th:nth-child(9){width:110px}
.pc-records>.pc-grid>table>tbody>tr:not(.pc-inline-editor):not(.pc-edit-extra)>td{height:auto;padding:3px;line-height:16px}
.pc .pc-worker-value{display:block;white-space:nowrap;line-height:16px}
.pc-records td .pc-station{margin-top:1px;color:#25415c}
.pc-records .pc-inline-editor td:nth-child(5){min-width:0}

/* F5 main-table headings: two compact lines, fixed while records scroll. */
.pc-records>.pc-grid>table>thead{position:sticky;top:0;z-index:3}
.pc-records>.pc-grid>table>thead>tr>th{position:sticky;top:0;height:34px;padding:3px 24px 3px 4px;line-height:14px;white-space:normal!important;text-overflow:clip;overflow:visible}
.pc-records>.pc-grid>table>thead>tr>th:first-child{padding-right:4px}
.pc-records .pc-header-text{display:block;white-space:normal;line-height:14px;overflow:visible;text-overflow:clip}
.pc-records>.pc-grid>table>thead>tr>th>[data-filter]{position:absolute;right:3px;top:4px;width:18px;height:20px;min-height:0;margin:0;padding:0;line-height:18px}

/* Merge only EmpID/EmpName; keep the other F5 columns in their existing order. */
.pc-records>.pc-grid>table>thead>tr>th:nth-child(5){width:250px}
.pc-records>.pc-grid>table>thead>tr>th:nth-child(6){width:180px;min-width:0}
.pc-records>.pc-grid>table>thead>tr>th:nth-child(7){width:360px}
.pc-records>.pc-grid>table>thead>tr>th:nth-child(8){width:110px}
.pc-records>.pc-grid>table>thead>tr>th:nth-child(9),.pc-records>.pc-grid>table>thead>tr>th:nth-child(10){width:100px}

/* Compact F5 physical columns, with both filters retained for paired fields. */
.pc-records>.pc-grid>table.pc-compact-table{width:1071px;min-width:1071px}
.pc-records>.pc-grid>table.pc-compact-table>thead>tr>th{min-width:0;width:auto;padding:3px 4px!important}
.pc-compact-table .pc-header-line{display:flex;align-items:center;justify-content:space-between;gap:3px;min-height:14px;line-height:14px}
.pc-compact-table .pc-header-line>button{flex:none;width:16px;height:14px;min-height:0;padding:0;line-height:12px;font-size:9px}
.pc-records .pc-stacked-values{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 5px;align-items:center;line-height:15px}
.pc-records .pc-stacked-values>b{text-align:right}
.pc-records .pc-worker-pair>span{display:block;line-height:16px;white-space:nowrap}
.pc-records .pc-employee-cell>.pc-worker-value{min-height:0;line-height:16px;margin:0;padding:0}
.pc-records .pc-inline-editor .pc-time-cell label{display:grid;grid-template-columns:1fr;gap:2px}
.pc-records .pc-compact-table:not(.pc-editing-record) .pc-quantity-cell{width:auto;min-width:0}
.pc-records>.pc-grid>table.pc-editing-record{width:1281px!important;min-width:1281px}
.pc-records .pc-editing-record>colgroup>col:nth-child(6),.pc-records .pc-editing-record>thead>tr>th:nth-child(6){width:360px!important}
.pc-records .pc-editing-record .pc-rejection-details{width:100%;min-width:0}

.pc-records .pc-compact-table .pc-process-cell{white-space:normal;overflow-wrap:anywhere}

/* One saved time line per worker; missing end time stays blank. */
.pc-records .pc-worker-pair{line-height:16px;white-space:nowrap;margin:0;padding:0}
