:root{--navy:#092d50;--blue:#0869ef;--ink:#112a46;--muted:#687e99;--bg:#f2f7fc;--border:#dce7f1;--red:#a0000b}*{box-sizing:border-box}body{margin:0;font:14px/1.45 'Segoe UI',Arial,sans-serif;color:var(--ink);background:var(--bg)}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:3px}button{cursor:pointer;border:1px solid var(--border);border-radius:6px;padding:9px 15px;background:white;color:var(--blue);font-weight:600}button:hover{background:#edf5ff}button.primary{color:white;background:var(--blue);border-color:var(--blue)}button.danger{background:var(--red);color:white}button:disabled{cursor:default;opacity:.45}button.small{padding:5px 10px;font-size:12px}a{color:var(--blue)}h1{font-size:29px;margin:0 0 4px;font-weight:750}h2{font-size:21px;margin:0 0 15px}h3{font-size:16px;margin:0 0 12px}p{margin:0 0 12px}.muted{color:var(--muted)}.blue{color:var(--blue)!important}.red{color:var(--red)!important}.small{font-size:12px}.uom{font-size:10px;color:var(--muted);margin-left:3px}.sidebar{position:fixed;width:225px;inset:0 auto 0 0;background:var(--navy);color:white;display:flex;flex-direction:column;z-index:10}.brand{padding:28px 24px;border-bottom:1px solid #234769}.brand .logo{font-size:47px;font-weight:850;line-height:1}.brand strong{display:block;margin-top:10px;font-size:17px}.brand span{font-size:12px;color:#c3d6e9}.nav{padding:18px 12px;overflow:auto;flex:1}.nav a,.nav summary{display:block;color:#dbe9f6;text-decoration:none;padding:11px 14px;margin:3px 0;border-radius:6px;cursor:pointer}.nav a.active{background:var(--blue);color:white}.nav .sub a{font-size:12px;padding-left:25px}.nav summary{font-weight:650}.identity{padding:18px;border-top:1px solid #234769}.identity small{display:block;color:#adc6df}.main{margin-left:225px}.topbar{height:62px;background:white;border-bottom:1px solid var(--border);padding:12px 26px;display:flex;align-items:center;justify-content:space-between;gap:10px}.test-label{color:#0c62b8;background:#e6f2ff;border-radius:6px;padding:5px 10px;font-size:12px}.content{padding:25px;max-width:1800px;margin:auto}.page-head{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:22px}.card{background:white;border:1px solid var(--border);border-radius:9px;padding:20px;margin-bottom:18px}.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;margin-bottom:20px}.metric{background:white;border:1px solid var(--border);border-radius:8px;padding:18px}.metric .value{font-size:32px;font-weight:750;margin-top:6px}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:18px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 20px}.form-grid .wide{grid-column:1/-1}label.field{display:block;font-size:12px;font-weight:650;color:var(--ink)}label.field input,label.field select,label.field textarea{margin-top:5px}input,select,textarea{border:1px solid #cddce9;border-radius:5px;background:white;padding:9px 10px;color:var(--ink);width:100%;min-width:0}textarea{resize:vertical;min-height:70px}input:disabled,select:disabled,textarea:disabled,input[readonly]{background:#f0f4f8;color:#60738a}input[type=checkbox]{width:auto;vertical-align:middle}input[type=file]{font-size:12px;padding:6px;background:#f4f9ff}input.extra{border-color:#ef888e;color:var(--red);font-weight:700;background:#fff6f6}.toolbar{display:flex;gap:12px;align-items:end;flex-wrap:wrap}.toolbar .field{flex:1;min-width:130px}.toolbar button{flex-shrink:0}.tabs,.chips{display:flex;gap:7px;flex-wrap:wrap;margin:12px 0}.chips button{border-radius:25px;padding:6px 14px}.chips button.active,.tabs button.active{background:var(--blue);color:white;border-color:var(--blue)}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;font-size:12px}th{background:#edf5fc;text-align:left;padding:11px 10px;font-size:11px;border-bottom:1px solid var(--border)}td{padding:12px 10px;border-bottom:1px solid var(--border);vertical-align:top}td input,td select,td textarea{font-size:12px;padding:7px;min-width:80px}td textarea{min-width:155px}tr.clickable{cursor:pointer}tr.clickable:hover{background:#f4f9ff}tr.alert-row{background:#fff0f1}.badge{display:inline-block;font-size:11px;padding:5px 9px;border-radius:5px;font-weight:650;background:#e5f2ff;color:var(--blue)}.badge.pending{background:var(--red);color:white}.badge.green{background:#dff6e7;color:#167442}.notice{padding:12px 15px;background:#edf5fe;border:1px solid #cce1f7;border-radius:6px;margin:12px 0}.notice.danger{background:#fff1f1;border-color:#f1b0b5;color:var(--red)}.blink{animation:pulse 1.5s ease-in-out infinite;font-weight:750}@keyframes pulse{50%{opacity:.55}}@media(prefers-reduced-motion:reduce){.blink{animation:none}}.qc{background:#fff0f0!important;border-color:#e9a1a5!important;color:var(--red)}.qc td,.qc th,td.qc,th.qc{background:#fff0f0}.actions{display:flex;justify-content:flex-end;gap:10px;align-items:center;flex-wrap:wrap;margin-top:18px}.progress{display:flex;align-items:center;gap:7px;min-width:105px}.track{width:78px;height:8px;background:#e5edf5;border-radius:8px;overflow:hidden}.track i{display:block;height:100%;background:var(--blue)}.attendance{display:grid;grid-template-columns:40px 1fr 1.5fr 1fr 1fr;align-items:center;gap:8px;padding:12px 5px;border-bottom:1px solid var(--border)}.file-list{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}.file-list a{display:block;font-size:11px;max-width:150px;overflow:hidden}.file-list img{display:block;width:95px;height:65px;object-fit:cover;border-radius:4px;border:1px solid var(--border)}.login{max-width:480px;margin:8vh auto;padding:35px}.login .logo{font-size:55px;color:var(--navy);font-weight:850}.login label{margin-bottom:15px}.footer-note{font-size:11px;color:var(--muted);margin:15px 0}.stack>*+*{margin-top:12px}dialog{width:min(1050px,96vw);max-height:92vh;border:1px solid var(--border);border-radius:10px;padding:24px;color:var(--ink)}dialog::backdrop{background:#051c37aa}.modal-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}#toast{position:fixed;bottom:25px;right:25px;max-width:500px;background:var(--navy);color:white;padding:12px 20px;border-radius:8px;display:none;z-index:99}#toast.error{background:var(--red)}.nowrap{white-space:nowrap}.link-button{background:none;border:0;padding:0;text-decoration:underline}.duty{background:#eaf5ff;padding:12px;border-radius:6px;display:flex;gap:25px;flex-wrap:wrap}.current{background:#eaf9ee}.print-context{font-weight:750;font-size:17px}.closed-bg{background:#edf7ff}.empty{padding:28px;text-align:center;color:var(--muted)}.side-by-side{display:grid;grid-template-columns:1fr 1fr;gap:20px}.audit-json{white-space:pre-wrap;word-break:break-word;font-size:11px;max-height:400px;overflow:auto}details>summary{cursor:pointer}.wide-table{min-width:1250px}.border-top{border-top:1px solid var(--border);padding-top:15px;margin-top:15px}@media(max-width:1100px){.sidebar{width:180px}.main{margin-left:180px}.brand{padding:20px 15px}.content{padding:18px}.cards{grid-template-columns:repeat(2,1fr)}.grid2,.side-by-side{grid-template-columns:1fr}}@media(max-width:700px){.sidebar{position:relative;width:100%}.brand{display:none}.nav{display:flex;flex-wrap:wrap;padding:5px}.nav a,.nav summary{font-size:12px;padding:7px}.identity{display:none}.main{margin:0}.topbar{padding:10px;font-size:12px}.content{padding:12px}h1{font-size:23px}.form-grid{grid-template-columns:1fr}.cards{gap:8px}.metric{padding:12px}.card{padding:14px}.page-head{align-items:flex-start;flex-wrap:wrap}.attendance{grid-template-columns:25px 45px 1.2fr 1fr 1fr;font-size:11px}.duty{gap:10px}.toolbar .field{min-width:140px}}
/* Compact employee attendance and job table */
.worker-ui .sidebar{display:none}.worker-ui .main{margin-left:0}.worker-ui .content{max-width:1500px;margin:auto}.worker-ui .topbar{background:#092d50;color:white}.employee-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.employee-name{text-align:right;font-size:14px}.employee-name strong{font-size:19px}.employee-choose{max-width:340px;margin-bottom:10px}.compact-duty{padding:9px 12px;margin-bottom:14px;font-size:12px}.employee-card{padding:16px}.employee-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.employee-toolbar h2{margin:0;font-size:19px}.employee-table{min-width:1040px;width:100%;font-size:12px}.employee-table th,.employee-table td{padding:10px 8px}.employee-table td small{display:block;color:var(--muted);margin-top:4px;max-width:205px}.employee-table select{max-width:200px;font-size:12px;padding:7px}.employee-table input[type=number]{width:85px;padding:7px}.employee-table th{white-space:normal}.row-actions{display:flex;gap:5px;margin-top:6px}.incomplete-row{background:#fff0f0}.defect-row>td{background:#f8fbff}.defect-strip{display:grid;grid-template-columns:repeat(5,minmax(95px,1fr)) 2fr;gap:10px}.defect-strip input{width:100%!important}.defect-strip .field{font-size:11px}.employee-foot{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;font-size:12px;margin-top:12px}.legacy-times{display:flex;gap:10px;margin-top:10px}.scan-layout{display:grid;grid-template-columns:1fr 1fr;gap:24px}.scan-layout .field{margin:12px 0}#qr-video{width:100%;max-height:320px;background:#092d50}.qr-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.station-qr{text-align:center;border:1px solid var(--border);padding:15px}.station-qr svg{display:block;max-width:100%;height:160px;margin:10px auto}.station-qr small{display:block}.employee-table [hidden]{display:none}@media(max-width:700px){.employee-toolbar{align-items:flex-start;flex-wrap:wrap}.scan-layout{grid-template-columns:1fr}.defect-strip{grid-template-columns:repeat(3,minmax(95px,1fr))}.qr-grid{grid-template-columns:repeat(2,1fr)}.employee-card{padding:10px}.employee-heading h1{font-size:23px}.worker-ui .test-label{display:none}}@media print{body:has(.qr-grid) #app,body:has(.qr-grid) #toast,body:has(.qr-grid) .modal-head button,body:has(.qr-grid) #printcodes{display:none}body:has(.qr-grid) dialog{position:static;max-height:none;width:100%;border:0}body:has(.qr-grid) .station-qr{break-inside:avoid}}

/* Integrated table setup and independent component lanes */
.setup-layout{display:grid;grid-template-columns:205px minmax(0,1fr);gap:18px}.setup-categories button{display:block;width:100%;margin:5px 0;text-align:left;padding:8px}.setup-layout td input,.setup-layout td select{min-width:125px}.setup-layout td:first-child input{min-width:165px}.flow-lanes{padding:20px 0;overflow:auto}.flow-lane{display:flex;gap:8px;align-items:center;margin-bottom:15px;min-width:800px}.flow-lane>strong{min-width:90px}.node{min-width:145px;max-width:170px;color:#163b58;font-weight:400;text-align:left}.node small,.node b,.node span{display:block}.node small{font-size:9px;word-break:break-word}.node span{font-size:10px}.node-input{background:#dcf7dd}.node-process{background:#fff0b7}.node-add-in{background:#d8f2ff}.node-output{background:#ffdedf}.flow-arrow{color:#6c8299}.job-color-1{background:#edf7ff}.job-color-2{background:#f3f0ff}.job-color-3{background:#fff6e7}.incomplete-row{background:#ffe7e9!important}#routegrid table{min-width:1850px}#routegrid td input,#routegrid td select{min-width:100px}#routegrid td:first-child input,#routegrid td:last-child input{min-width:190px}@media(max-width:900px){.setup-layout{grid-template-columns:1fr}.setup-categories{display:flex;flex-wrap:wrap;gap:5px}.setup-categories button{width:auto}}

.flow-with-settings{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:18px;margin:24px 0}.component-branch{display:flex;gap:12px;align-items:center;margin:16px 0}.component-branch>strong{width:85px}.component-branch .node{max-width:255px;min-width:140px}.component-branch small{font-size:10px}.assembly-line{margin:22px 0;padding:18px;background:#f0f6ff;display:flex;align-items:center;gap:10px;flex-wrap:wrap}.assembly-line>span{font-size:12px;max-width:170px}.node-settings td{padding:6px}.node-settings td input,.node-settings td select{min-width:110px;width:145px}.node-settings{padding:12px;margin:0}@media(max-width:1000px){.flow-with-settings{grid-template-columns:1fr}}

/* Clear native ticks for transaction, column and filter selections. Business disabled states remain enforced. */
input[type=checkbox]:not([data-month]){appearance:auto!important;-webkit-appearance:checkbox!important;width:15px!important;min-width:15px!important;max-width:15px!important;height:15px!important;min-height:15px!important;padding:0!important;vertical-align:middle;accent-color:#225f9c;flex:0 0 15px;cursor:pointer}input[type=checkbox]:disabled{cursor:not-allowed}

#kpi-operation-status{position:fixed;right:12px;bottom:12px;z-index:1200;width:min(365px,calc(100vw - 24px));box-sizing:border-box;padding:12px;background:#f3f8fe;color:#163653;border:1px solid #a6bfd8;border-left:5px solid #327ac0;border-radius:9px;box-shadow:0 4px 16px #1233;font:12px/1.4 "Segoe UI",Arial,sans-serif}
#kpi-operation-status[hidden]{display:none!important}
#kpi-operation-status p{margin:7px 0;font-size:12px}
#kpi-operation-status small{display:block;font-size:10px;color:#4b637a;overflow-wrap:anywhere}
#kpi-operation-status .operation-heading{display:flex;align-items:center;gap:7px}
#kpi-operation-status .operation-heading strong{flex:1}
#kpi-operation-status button{font:11px/1.2 "Segoe UI",Arial,sans-serif;min-height:25px;padding:4px 6px;color:#065dbb;border:1px solid #c3d6e8;border-radius:5px;background:#fff;cursor:pointer}
#kpi-operation-status.operation-completed{border-left-color:#278147;background:#f0faf3}
#kpi-operation-status.operation-review,#kpi-operation-status.operation-delayed,#kpi-operation-status.operation-not_saved{border-left-color:#b97b18;background:#fff8e9}
#kpi-operation-status.operation-collapsed{width:auto;padding:0;border:0;background:transparent;box-shadow:none}
#kpi-operation-status .operation-log{max-height:min(300px,45vh);overflow:auto;padding:0 0 0 18px;margin:10px 0 0;border-top:1px solid #cfdae5}
#kpi-operation-status .operation-log li{padding:9px 0;border-bottom:1px solid #dce5ed}
#kpi-operation-status .operation-log span{display:block;margin:3px 0}
#kpi-operation-status .operation-log button{margin-top:5px}
body:has(#screen):has(#kpi-operation-status:not([hidden]):not(.operation-collapsed)){padding-bottom:190px}
body:has(#screen):has(#kpi-operation-status .operation-log){padding-bottom:480px}
@media print{#kpi-operation-status{display:none!important}body:has(#screen){padding-bottom:0!important}}

/* Reviewed KPI-2 appearance. Parent modules never inherit a selected child's colour. */
:root{--navy:#09294a;--blue:#0865ed;--ink:#101a43;--muted:#7989aa;--bg:#f2f7fc;--red:#d81526}
body{background:linear-gradient(110deg,#edf5fa,#f6f9fc);font-size:15px}.sidebar{width:260px;background:linear-gradient(130deg,#09294a,#04213b)}.main{margin-left:260px}.brand{text-align:center;border:0;padding:26px 12px 19px}.brand .logo{letter-spacing:-5px;font-size:46px}.brand .logo span{font-size:46px;color:#74b6f7}.brand strong{font-size:18px}.brand>span{font-size:12px}.navtitle{font-size:12px;color:#aec6de;margin:17px 26px 0}.nav{padding:10px 12px}.nav .nav-main{display:flex;align-items:center;gap:15px;color:white;font-weight:400}.nav svg{width:25px;height:25px;flex-shrink:0}.nav summary::marker{content:''}.nav .sub a{position:relative;margin:4px 4px 4px 30px;padding:10px 9px 10px 25px;font-size:12px}.nav .sub a::before{content:'';position:absolute;left:8px;top:16px;width:8px;height:8px;border-radius:50%;background:#2689ff}.nav .sub a.active{background:#123c66;font-weight:700;color:white}.nav .sub a.active::before{box-shadow:0 0 0 2px #96c5ff}.identity{display:flex;gap:12px;align-items:center;margin:8px 18px;padding:20px 0;font-size:14px}.avatar{height:47px;width:47px;flex-shrink:0;border-radius:50%;background:#286ce2;display:grid;place-items:center;font-size:20px}.topbar{background:#ffffff90;color:#7990aa;padding:12px 27px}.top-actions{display:flex;align-items:center;gap:8px}.top-actions>input{width:240px;font-size:12px}.content{padding:24px 27px 16px}h1{font-size:35px;letter-spacing:-1px;font-weight:750}h2{font-size:23px;margin:0 0 10px}h3{font-size:17px}.page-head{margin-bottom:20px}.page-head p{font-size:16px}.card{border-radius:6px;padding:19px;margin-bottom:16px;border-color:#e2eaf2}.cards{gap:11px;margin:20px 0 15px}.metric{display:flex;gap:17px;padding:17px;border-radius:6px;min-height:121px;position:relative;overflow:hidden}.metric label{font-size:13px}.metric-icon{width:58px;height:58px;background:#e7f2ff;color:var(--blue);border-radius:50%;display:grid;place-items:center;flex-shrink:0}.metric-icon svg{width:31px;height:31px}.metric-icon.red{background:#fff0f1}.metric-icon.gold{background:#fff4d8;color:#cb8500}.metric .value{font-size:30px;line-height:1.2;margin:6px 0}.metric small,.metric .link-button{font-size:12px}.section-totals{font-size:10px;display:grid;grid-template-columns:repeat(3,auto);gap:4px 10px}.gold{color:#cb8500}.att-heading{display:flex;align-items:center;gap:12px;font-size:21px;margin-bottom:10px}.att-heading svg{width:32px;height:32px;color:var(--blue)}.att-heading .badge{font-weight:400}.att-row{display:flex;justify-content:space-between;align-items:center;border-top:1px solid #e4edf5;padding:12px 8px}.att-row button{text-align:left;text-decoration:none;font-size:15px}.attention .grid2>div+div{border-left:1px solid #e4edf5;padding-left:24px}.badge{border-radius:18px}.badge.pending{background:#ffedef;color:#d81526}.pending{background:#af0813!important;color:white!important}th{background:#eaf4fa}td,th{padding:11px 10px}td{vertical-align:middle}.uom{font-size:9px}.link-button{font-weight:400}.planlayout{display:grid;grid-template-columns:minmax(0,2.3fr) minmax(0,1fr);gap:15px}.planlayout>aside{min-width:0}.steps{display:flex;gap:12px;align-items:center;font-size:11px;color:#8290a8}.step b{display:inline-grid;place-items:center;width:26px;height:26px;border-radius:50%;background:#e2e9f1;margin-right:5px}.step.active{color:var(--blue)}.step.active b{background:var(--blue);color:white}.extra{width:86px}.print-context{font-size:20px;font-weight:750;margin-bottom:17px}.receiving-fields{grid-template-columns:repeat(4,minmax(0,1fr))}.program-footer{font-size:11px;color:#8a9ab4;text-align:right;border-top:1px solid #d1dde8;margin:0 27px 18px;padding:12px 0}.master-grid-layout{min-width:0}.master-grid-layout .table-wrap{max-width:100%}.flow-with-settings{grid-template-columns:minmax(0,2fr) minmax(280px,1fr)}.flow-summary,.flow-lanes{overflow:auto;max-width:100%}.job-color-1{background:#edf6ff}.job-color-2{background:#eefaf3}.job-color-3{background:#fff7e7}.worker-ui .main{margin-left:0}.worker-ui .sidebar{display:none}.worker-ui .top-actions>input{display:none}
@media(max-width:1150px){.cards{grid-template-columns:repeat(2,1fr)}.top-actions>input{display:none}.planlayout{grid-template-columns:minmax(0,2fr) minmax(0,1fr)}.page-head{flex-wrap:wrap}.steps{margin-bottom:10px}}
@media(max-width:850px){.sidebar{width:210px}.main{margin-left:210px}.planlayout,.receiving-fields{grid-template-columns:1fr}.content{padding:18px}.topbar{height:auto}.test-label{display:none}.attention .grid2>div+div{border-left:0;padding-left:0}}
@media(max-width:700px){.sidebar{position:relative;width:100%}.main{margin:0}.nav{display:block}.navtitle{display:none}.sidebar details{display:inline-block;vertical-align:top;max-width:49%}.identity{display:none}.cards{grid-template-columns:repeat(2,minmax(0,1fr))}.metric{padding:12px;gap:8px}.metric-icon{width:35px;height:35px}.metric-icon svg{width:22px}.metric .value{font-size:25px}h1{font-size:26px}.flow-with-settings{grid-template-columns:1fr}.planlayout{grid-template-columns:1fr}.receiving-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}

.quality-edit{border:0;background:none;padding:2px 5px}.component-branch{flex-wrap:wrap}.component-branch>small{flex-basis:100%;text-align:right}.receiving-fields input{font-weight:400}

:root{--navy:#092d50;--blue:#0869ef;--ink:#112a46;--muted:#687e99;--bg:#f2f7fc;--border:#dce7f1;--red:#a0000b}*{box-sizing:border-box}body{margin:0;font:14px/1.45 'Segoe UI',Arial,sans-serif;color:var(--ink);background:var(--bg)}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:3px}button{cursor:pointer;border:1px solid var(--border);border-radius:6px;padding:9px 15px;background:white;color:var(--blue);font-weight:600}button:hover{background:#edf5ff}button.primary{color:white;background:var(--blue);border-color:var(--blue)}button.danger{background:var(--red);color:white}button:disabled{cursor:default;opacity:.45}button.small{padding:5px 10px;font-size:12px}a{color:var(--blue)}h1{font-size:29px;margin:0 0 4px;font-weight:750}h2{font-size:21px;margin:0 0 15px}h3{font-size:16px;margin:0 0 12px}p{margin:0 0 12px}.muted{color:var(--muted)}.blue{color:var(--blue)!important}.red{color:var(--red)!important}.small{font-size:12px}.uom{font-size:10px;color:var(--muted);margin-left:3px}.sidebar{position:fixed;width:225px;inset:0 auto 0 0;background:var(--navy);color:white;display:flex;flex-direction:column;z-index:10}.brand{padding:28px 24px;border-bottom:1px solid #234769}.brand .logo{font-size:47px;font-weight:850;line-height:1}.brand strong{display:block;margin-top:10px;font-size:17px}.brand span{font-size:12px;color:#c3d6e9}.nav{padding:18px 12px;overflow:auto;flex:1}.nav a,.nav summary{display:block;color:#dbe9f6;text-decoration:none;padding:11px 14px;margin:3px 0;border-radius:6px;cursor:pointer}.nav a.active{background:var(--blue);color:white}.nav .sub a{font-size:12px;padding-left:25px}.nav summary{font-weight:650}.identity{padding:18px;border-top:1px solid #234769}.identity small{display:block;color:#adc6df}.main{margin-left:225px}.topbar{height:62px;background:white;border-bottom:1px solid var(--border);padding:12px 26px;display:flex;align-items:center;justify-content:space-between;gap:10px}.test-label{color:#0c62b8;background:#e6f2ff;border-radius:6px;padding:5px 10px;font-size:12px}.content{padding:25px;max-width:1800px;margin:auto}.page-head{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:22px}.card{background:white;border:1px solid var(--border);border-radius:9px;padding:20px;margin-bottom:18px}.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;margin-bottom:20px}.metric{background:white;border:1px solid var(--border);border-radius:8px;padding:18px}.metric .value{font-size:32px;font-weight:750;margin-top:6px}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:18px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 20px}.form-grid .wide{grid-column:1/-1}label.field{display:block;font-size:12px;font-weight:650;color:var(--ink)}label.field input,label.field select,label.field textarea{margin-top:5px}input,select,textarea{border:1px solid #cddce9;border-radius:5px;background:white;padding:9px 10px;color:var(--ink);width:100%;min-width:0}textarea{resize:vertical;min-height:70px}input:disabled,select:disabled,textarea:disabled,input[readonly]{background:#f0f4f8;color:#60738a}input[type=checkbox]{width:auto;vertical-align:middle}input[type=file]{font-size:12px;padding:6px;background:#f4f9ff}input.extra{border-color:#ef888e;color:var(--red);font-weight:700;background:#fff6f6}.toolbar{display:flex;gap:12px;align-items:end;flex-wrap:wrap}.toolbar .field{flex:1;min-width:130px}.toolbar button{flex-shrink:0}.tabs,.chips{display:flex;gap:7px;flex-wrap:wrap;margin:12px 0}.chips button{border-radius:25px;padding:6px 14px}.chips button.active,.tabs button.active{background:var(--blue);color:white;border-color:var(--blue)}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;font-size:12px}th{background:#edf5fc;text-align:left;padding:11px 10px;font-size:11px;border-bottom:1px solid var(--border)}td{padding:12px 10px;border-bottom:1px solid var(--border);vertical-align:top}td input,td select,td textarea{font-size:12px;padding:7px;min-width:80px}td textarea{min-width:155px}tr.clickable{cursor:pointer}tr.clickable:hover{background:#f4f9ff}tr.alert-row{background:#fff0f1}.badge{display:inline-block;font-size:11px;padding:5px 9px;border-radius:5px;font-weight:650;background:#e5f2ff;color:var(--blue)}.badge.pending{background:var(--red);color:white}.badge.green{background:#dff6e7;color:#167442}.notice{padding:12px 15px;background:#edf5fe;border:1px solid #cce1f7;border-radius:6px;margin:12px 0}.notice.danger{background:#fff1f1;border-color:#f1b0b5;color:var(--red)}.blink{animation:pulse 1.5s ease-in-out infinite;font-weight:750}@keyframes pulse{50%{opacity:.55}}@media(prefers-reduced-motion:reduce){.blink{animation:none}}.qc{background:#fff0f0!important;border-color:#e9a1a5!important;color:var(--red)}.qc td,.qc th,td.qc,th.qc{background:#fff0f0}.actions{display:flex;justify-content:flex-end;gap:10px;align-items:center;flex-wrap:wrap;margin-top:18px}.progress{display:flex;align-items:center;gap:7px;min-width:105px}.track{width:78px;height:8px;background:#e5edf5;border-radius:8px;overflow:hidden}.track i{display:block;height:100%;background:var(--blue)}.attendance{display:grid;grid-template-columns:40px 1fr 1.5fr 1fr 1fr;align-items:center;gap:8px;padding:12px 5px;border-bottom:1px solid var(--border)}.file-list{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}.file-list a{display:block;font-size:11px;max-width:150px;overflow:hidden}.file-list img{display:block;width:95px;height:65px;object-fit:cover;border-radius:4px;border:1px solid var(--border)}.login{max-width:480px;margin:8vh auto;padding:35px}.login .logo{font-size:55px;color:var(--navy);font-weight:850}.login label{margin-bottom:15px}.footer-note{font-size:11px;color:var(--muted);margin:15px 0}.stack>*+*{margin-top:12px}dialog{width:min(1050px,96vw);max-height:92vh;border:1px solid var(--border);border-radius:10px;padding:24px;color:var(--ink)}dialog::backdrop{background:#051c37aa}.modal-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}#toast{position:fixed;bottom:25px;right:25px;max-width:500px;background:var(--navy);color:white;padding:12px 20px;border-radius:8px;display:none;z-index:99}#toast.error{background:var(--red)}.nowrap{white-space:nowrap}.link-button{background:none;border:0;padding:0;text-decoration:underline}.duty{background:#eaf5ff;padding:12px;border-radius:6px;display:flex;gap:25px;flex-wrap:wrap}.current{background:#eaf9ee}.print-context{font-weight:750;font-size:17px}.closed-bg{background:#edf7ff}.empty{padding:28px;text-align:center;color:var(--muted)}.side-by-side{display:grid;grid-template-columns:1fr 1fr;gap:20px}.audit-json{white-space:pre-wrap;word-break:break-word;font-size:11px;max-height:400px;overflow:auto}details>summary{cursor:pointer}.wide-table{min-width:1250px}.border-top{border-top:1px solid var(--border);padding-top:15px;margin-top:15px}@media(max-width:1100px){.sidebar{width:180px}.main{margin-left:180px}.brand{padding:20px 15px}.content{padding:18px}.cards{grid-template-columns:repeat(2,1fr)}.grid2,.side-by-side{grid-template-columns:1fr}}@media(max-width:700px){.sidebar{position:relative;width:100%}.brand{display:none}.nav{display:flex;flex-wrap:wrap;padding:5px}.nav a,.nav summary{font-size:12px;padding:7px}.identity{display:none}.main{margin:0}.topbar{padding:10px;font-size:12px}.content{padding:12px}h1{font-size:23px}.form-grid{grid-template-columns:1fr}.cards{gap:8px}.metric{padding:12px}.card{padding:14px}.page-head{align-items:flex-start;flex-wrap:wrap}.attendance{grid-template-columns:25px 45px 1.2fr 1fr 1fr;font-size:11px}.duty{gap:10px}.toolbar .field{min-width:140px}}
/* Compact employee attendance and job table */
.worker-ui .sidebar{display:none}.worker-ui .main{margin-left:0}.worker-ui .content{max-width:1500px;margin:auto}.worker-ui .topbar{background:#092d50;color:white}.employee-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.employee-name{text-align:right;font-size:14px}.employee-name strong{font-size:19px}.employee-choose{max-width:340px;margin-bottom:10px}.compact-duty{padding:9px 12px;margin-bottom:14px;font-size:12px}.employee-card{padding:16px}.employee-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.employee-toolbar h2{margin:0;font-size:19px}.employee-table{min-width:1040px;width:100%;font-size:12px}.employee-table th,.employee-table td{padding:10px 8px}.employee-table td small{display:block;color:var(--muted);margin-top:4px;max-width:205px}.employee-table select{max-width:200px;font-size:12px;padding:7px}.employee-table input[type=number]{width:85px;padding:7px}.employee-table th{white-space:normal}.row-actions{display:flex;gap:5px;margin-top:6px}.incomplete-row{background:#fff0f0}.defect-row>td{background:#f8fbff}.defect-strip{display:grid;grid-template-columns:repeat(5,minmax(95px,1fr)) 2fr;gap:10px}.defect-strip input{width:100%!important}.defect-strip .field{font-size:11px}.employee-foot{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;font-size:12px;margin-top:12px}.legacy-times{display:flex;gap:10px;margin-top:10px}.scan-layout{display:grid;grid-template-columns:1fr 1fr;gap:24px}.scan-layout .field{margin:12px 0}#qr-video{width:100%;max-height:320px;background:#092d50}.qr-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.station-qr{text-align:center;border:1px solid var(--border);padding:15px}.station-qr svg{display:block;max-width:100%;height:160px;margin:10px auto}.station-qr small{display:block}.employee-table [hidden]{display:none}@media(max-width:700px){.employee-toolbar{align-items:flex-start;flex-wrap:wrap}.scan-layout{grid-template-columns:1fr}.defect-strip{grid-template-columns:repeat(3,minmax(95px,1fr))}.qr-grid{grid-template-columns:repeat(2,1fr)}.employee-card{padding:10px}.employee-heading h1{font-size:23px}.worker-ui .test-label{display:none}}@media print{body:has(.qr-grid) #app,body:has(.qr-grid) #toast,body:has(.qr-grid) .modal-head button,body:has(.qr-grid) #printcodes{display:none}body:has(.qr-grid) dialog{position:static;max-height:none;width:100%;border:0}body:has(.qr-grid) .station-qr{break-inside:avoid}}

/* Integrated table setup and independent component lanes */
.setup-layout{display:grid;grid-template-columns:205px minmax(0,1fr);gap:18px}.setup-categories button{display:block;width:100%;margin:5px 0;text-align:left;padding:8px}.setup-layout td input,.setup-layout td select{min-width:125px}.setup-layout td:first-child input{min-width:165px}.flow-lanes{padding:20px 0;overflow:auto}.flow-lane{display:flex;gap:8px;align-items:center;margin-bottom:15px;min-width:800px}.flow-lane>strong{min-width:90px}.node{min-width:145px;max-width:170px;color:#163b58;font-weight:400;text-align:left}.node small,.node b,.node span{display:block}.node small{font-size:9px;word-break:break-word}.node span{font-size:10px}.node-input{background:#dcf7dd}.node-process{background:#fff0b7}.node-add-in{background:#d8f2ff}.node-output{background:#ffdedf}.flow-arrow{color:#6c8299}.job-color-1{background:#edf7ff}.job-color-2{background:#f3f0ff}.job-color-3{background:#fff6e7}.incomplete-row{background:#ffe7e9!important}#routegrid table{min-width:1850px}#routegrid td input,#routegrid td select{min-width:100px}#routegrid td:first-child input,#routegrid td:last-child input{min-width:190px}@media(max-width:900px){.setup-layout{grid-template-columns:1fr}.setup-categories{display:flex;flex-wrap:wrap;gap:5px}.setup-categories button{width:auto}}

.flow-with-settings{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:18px;margin:24px 0}.component-branch{display:flex;gap:12px;align-items:center;margin:16px 0}.component-branch>strong{width:85px}.component-branch .node{max-width:255px;min-width:140px}.component-branch small{font-size:10px}.assembly-line{margin:22px 0;padding:18px;background:#f0f6ff;display:flex;align-items:center;gap:10px;flex-wrap:wrap}.assembly-line>span{font-size:12px;max-width:170px}.node-settings td{padding:6px}.node-settings td input,.node-settings td select{min-width:110px;width:145px}.node-settings{padding:12px;margin:0}@media(max-width:1000px){.flow-with-settings{grid-template-columns:1fr}}

/* Reviewed KPI-2 appearance. Parent modules never inherit a selected child's colour. */
:root{--navy:#09294a;--blue:#0865ed;--ink:#101a43;--muted:#7989aa;--bg:#f2f7fc;--red:#d81526}
body{background:linear-gradient(110deg,#edf5fa,#f6f9fc);font-size:15px}.sidebar{width:260px;background:linear-gradient(130deg,#09294a,#04213b)}.main{margin-left:260px}.brand{text-align:center;border:0;padding:26px 12px 19px}.brand .logo{letter-spacing:-5px;font-size:46px}.brand .logo span{font-size:46px;color:#74b6f7}.brand strong{font-size:18px}.brand>span{font-size:12px}.navtitle{font-size:12px;color:#aec6de;margin:17px 26px 0}.nav{padding:10px 12px}.nav .nav-main{display:flex;align-items:center;gap:15px;color:white;font-weight:400}.nav svg{width:25px;height:25px;flex-shrink:0}.nav summary::marker{content:''}.nav .sub a{position:relative;margin:4px 4px 4px 30px;padding:10px 9px 10px 25px;font-size:12px}.nav .sub a::before{content:'';position:absolute;left:8px;top:16px;width:8px;height:8px;border-radius:50%;background:#2689ff}.nav .sub a.active{background:#123c66;font-weight:700;color:white}.nav .sub a.active::before{box-shadow:0 0 0 2px #96c5ff}.identity{display:flex;gap:12px;align-items:center;margin:8px 18px;padding:20px 0;font-size:14px}.avatar{height:47px;width:47px;flex-shrink:0;border-radius:50%;background:#286ce2;display:grid;place-items:center;font-size:20px}.topbar{background:#ffffff90;color:#7990aa;padding:12px 27px}.top-actions{display:flex;align-items:center;gap:8px}.top-actions>input{width:240px;font-size:12px}.content{padding:24px 27px 16px}h1{font-size:35px;letter-spacing:-1px;font-weight:750}h2{font-size:23px;margin:0 0 10px}h3{font-size:17px}.page-head{margin-bottom:20px}.page-head p{font-size:16px}.card{border-radius:6px;padding:19px;margin-bottom:16px;border-color:#e2eaf2}.cards{gap:11px;margin:20px 0 15px}.metric{display:flex;gap:17px;padding:17px;border-radius:6px;min-height:121px;position:relative;overflow:hidden}.metric label{font-size:13px}.metric-icon{width:58px;height:58px;background:#e7f2ff;color:var(--blue);border-radius:50%;display:grid;place-items:center;flex-shrink:0}.metric-icon svg{width:31px;height:31px}.metric-icon.red{background:#fff0f1}.metric-icon.gold{background:#fff4d8;color:#cb8500}.metric .value{font-size:30px;line-height:1.2;margin:6px 0}.metric small,.metric .link-button{font-size:12px}.section-totals{font-size:10px;display:grid;grid-template-columns:repeat(3,auto);gap:4px 10px}.gold{color:#cb8500}.att-heading{display:flex;align-items:center;gap:12px;font-size:21px;margin-bottom:10px}.att-heading svg{width:32px;height:32px;color:var(--blue)}.att-heading .badge{font-weight:400}.att-row{display:flex;justify-content:space-between;align-items:center;border-top:1px solid #e4edf5;padding:12px 8px}.att-row button{text-align:left;text-decoration:none;font-size:15px}.attention .grid2>div+div{border-left:1px solid #e4edf5;padding-left:24px}.badge{border-radius:18px}.badge.pending{background:#ffedef;color:#d81526}.pending{background:#af0813!important;color:white!important}th{background:#eaf4fa}td,th{padding:11px 10px}td{vertical-align:middle}.uom{font-size:9px}.link-button{font-weight:400}.planlayout{display:grid;grid-template-columns:minmax(0,2.3fr) minmax(0,1fr);gap:15px}.planlayout>aside{min-width:0}.steps{display:flex;gap:12px;align-items:center;font-size:11px;color:#8290a8}.step b{display:inline-grid;place-items:center;width:26px;height:26px;border-radius:50%;background:#e2e9f1;margin-right:5px}.step.active{color:var(--blue)}.step.active b{background:var(--blue);color:white}.extra{width:86px}.print-context{font-size:20px;font-weight:750;margin-bottom:17px}.receiving-fields{grid-template-columns:repeat(4,minmax(0,1fr))}.program-footer{font-size:11px;color:#8a9ab4;text-align:right;border-top:1px solid #d1dde8;margin:0 27px 18px;padding:12px 0}.master-grid-layout{min-width:0}.master-grid-layout .table-wrap{max-width:100%}.flow-with-settings{grid-template-columns:minmax(0,2fr) minmax(280px,1fr)}.flow-summary,.flow-lanes{overflow:auto;max-width:100%}.job-color-1{background:#edf6ff}.job-color-2{background:#eefaf3}.job-color-3{background:#fff7e7}.worker-ui .main{margin-left:0}.worker-ui .sidebar{display:none}.worker-ui .top-actions>input{display:none}
@media(max-width:1150px){.cards{grid-template-columns:repeat(2,1fr)}.top-actions>input{display:none}.planlayout{grid-template-columns:minmax(0,2fr) minmax(0,1fr)}.page-head{flex-wrap:wrap}.steps{margin-bottom:10px}}
@media(max-width:850px){.sidebar{width:210px}.main{margin-left:210px}.planlayout,.receiving-fields{grid-template-columns:1fr}.content{padding:18px}.topbar{height:auto}.test-label{display:none}.attention .grid2>div+div{border-left:0;padding-left:0}}
@media(max-width:700px){.sidebar{position:relative;width:100%}.main{margin:0}.nav{display:block}.navtitle{display:none}.sidebar details{display:inline-block;vertical-align:top;max-width:49%}.identity{display:none}.cards{grid-template-columns:repeat(2,minmax(0,1fr))}.metric{padding:12px;gap:8px}.metric-icon{width:35px;height:35px}.metric-icon svg{width:22px}.metric .value{font-size:25px}h1{font-size:26px}.flow-with-settings{grid-template-columns:1fr}.planlayout{grid-template-columns:1fr}.receiving-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}

.quality-edit{border:0;background:none;padding:2px 5px}.component-branch{flex-wrap:wrap}.component-branch>small{flex-basis:100%;text-align:right}.receiving-fields input{font-weight:400}

/* Sidebar correction requested 12 October 2026. */
.sidebar{width:225px}.main{margin-left:225px}
.brand{padding:16px 10px 12px}.brand .logo,.brand .logo span{font-size:34px}
.brand strong{font-size:14px;margin-top:6px}.brand>span{font-size:10px}
.navtitle{margin:8px 16px 0;font-size:10px}.nav{padding:6px 9px;min-height:0}
.nav .nav-main{font-size:12px;font-weight:650;line-height:1.3;gap:9px;padding:8px 9px;margin:2px 0}
.nav svg{width:19px;height:19px}.nav .sub a{font-size:11px;line-height:1.3;margin:2px 0 2px 19px;padding:6px 7px 6px 20px}
.nav .sub a::before{left:6px;top:10px;width:6px;height:6px}
.identity{padding:10px 0;margin:5px 13px;font-size:12px;gap:8px}.identity small{font-size:10px}.avatar{width:32px;height:32px;font-size:14px}
.nav:has(a:hover,summary:hover) a.active{background:transparent;color:#dbe9f6}
.nav a:hover,.nav summary:hover{background:var(--blue)!important;color:white!important}
.nav:has(summary:focus) a.active{background:transparent;color:#dbe9f6}
.nav summary:focus{background:var(--blue);color:white}
#planninglist{background:#092d50;color:white;border:2px solid #0865ed;font-size:14px;font-weight:750;padding:11px 18px;box-shadow:0 2px 5px #092d5020}
@media(max-width:700px){.sidebar{width:100%;position:relative}.main{margin-left:0}}
/* Compact headings and controls throughout the workspace. */
.main .content{padding:10px 18px}
.main .page-head{margin-bottom:10px;gap:10px}
.main .page-head h1{font-size:25px;margin:0 0 3px}
.main .page-head p{font-size:12px;margin-bottom:0}
.main .card{padding:14px;margin-bottom:12px}
.main .card h2{font-size:19px;margin-bottom:8px}
.main button,#modal button{font-size:12px;padding:5px 9px}
.main .toolbar,.main .actions{gap:6px;margin:6px 0;flex-wrap:wrap}
.main .master-primary-actions{gap:6px;flex-wrap:wrap;margin:4px 0 8px;align-items:flex-end}
.main .master-primary-actions label.field{width:150px;flex:0 1 150px;font-size:10px}
.main .master-primary-actions label.small{width:210px;flex:0 1 210px;font-size:10px}
.main .master-primary-actions input{padding:4px 6px;font-size:11px;margin-top:2px}
.main #mastermode{font-size:10px;margin:5px 0!important}
.main .master-row-cancel{padding:3px 5px;font-size:10px}
.main > .topbar[hidden]{display:none}
.main .compact-title-row{display:flex;align-items:flex-start;flex-wrap:wrap;gap:6px;padding-bottom:6px}
.main .compact-title-row > div:first-child{flex:1 1 180px;min-width:0}
.main .compact-title-row .top-actions{display:flex;justify-content:flex-end;align-items:center;gap:4px;margin-left:auto;flex:0 1 auto}
.main .compact-title-row .top-actions #globalsearch{width:145px;padding:4px 6px;font-size:10px;min-width:70px}
.main .compact-title-row .top-actions .test-label{font-size:9px;padding:4px 6px;white-space:nowrap}
.main .compact-title-row .top-actions button{font-size:10px;padding:4px 6px;white-space:nowrap}
.main .compact-title-row > button{font-size:10px;padding:4px 6px}
@media(max-width:850px){.main .compact-title-row .top-actions{flex-wrap:wrap}.main .compact-title-row .top-actions #globalsearch{width:110px}}
.export-file-download{display:inline-block;padding:6px 12px;margin:5px 0 10px;background:#0869ef;color:white;border-radius:5px;text-decoration:none;font-size:12px;font-weight:650}
.export-preview-scroll{max-height:55vh;overflow:auto;margin:8px 0 16px;border:1px solid #dce7f1}
.export-preview-scroll table{font-size:12px;min-width:100%;border-collapse:separate;border-spacing:0}
.export-preview-scroll th{position:sticky;top:0;background:#eaf4fa;z-index:1}
.export-preview-scroll td,.export-preview-scroll th{padding:6px 9px;white-space:pre-wrap;border-bottom:1px solid #dce7f1;min-width:95px}
/* Access-style rows: compact, contiguous cells with a clear active editor. */
.main table.access-datasheet,#modal table.access-datasheet{border-collapse:collapse;table-layout:fixed;min-width:100%;width:max-content;font-size:12px}
.main table.access-datasheet th,#modal table.access-datasheet th{font-size:11px;padding:3px 5px;height:25px;border:1px solid #d5dfe8;white-space:nowrap}
.main table.access-datasheet th button,#modal table.access-datasheet th button{padding:1px 2px;height:20px;line-height:16px;font-size:11px}
.main table.access-datasheet td,#modal table.access-datasheet td{padding:0 3px;height:25px;border:1px solid #dde4eb;vertical-align:middle}
.main table.access-datasheet td .access-entry-cell,#modal table.access-datasheet td .access-entry-cell{width:100%;min-width:0;height:23px;min-height:23px;margin:0;padding:1px 3px;border:1px solid transparent;border-radius:0;background:transparent;font-size:12px;box-shadow:none}
.main table.access-datasheet td .access-entry-cell:disabled,.main table.access-datasheet td .access-entry-cell[readonly],#modal table.access-datasheet td .access-entry-cell:disabled{background:#f4f6f8;color:#60738a;opacity:1}
.main table.access-datasheet td .access-entry-cell:focus,#modal table.access-datasheet td .access-entry-cell:focus{background:white;border:1px solid #0869ef;outline:1px solid #0869ef;outline-offset:-1px}
.main table.access-datasheet td button,#modal table.access-datasheet td button{font-size:10px;padding:1px 4px;height:20px;line-height:16px;margin:0 1px;border-radius:2px}
.main .access-entry-cell,#modal .access-entry-cell{font-size:12px;padding:3px 5px;border-radius:2px;min-height:25px}
.main .form-grid,#modal .form-grid{gap:6px 10px}
.main label.field,#modal label.field{font-size:11px}
.main label.field .access-entry-cell,#modal label.field .access-entry-cell{margin-top:2px}
.main table.access-datasheet td textarea.access-entry-cell:focus,#modal table.access-datasheet td textarea.access-entry-cell:focus{height:55px}
@media(max-width:700px){.main .access-entry-cell,#modal .access-entry-cell{min-height:32px}.main table.access-datasheet td .access-entry-cell,#modal table.access-datasheet td .access-entry-cell{height:30px;min-height:30px}}
.main table.access-datasheet td.clipboard-selected,#modal table.access-datasheet td.clipboard-selected{background:#d7eaff;outline:1px solid #7aa9df;outline-offset:-1px}
#unsaved-navigation{max-width:520px;padding:20px;border:1px solid #ccdcec;border-radius:8px;color:#112a46}
#unsaved-navigation::backdrop{background:#092d5066}
#unsaved-navigation .actions{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0 0}
#unsaved-navigation button{font-size:12px;padding:7px 10px}
.main .setup-layout.setup-wide{display:block}
.sidebar .setup-sidebar-tables{background:transparent;border:0;padding:0;margin:0 0 6px 19px;max-height:48vh;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;scrollbar-color:#507393 #092d50}
.sidebar .setup-sidebar-tables button{position:relative;display:flex;gap:4px;align-items:flex-start;width:100%;text-align:left;white-space:normal;margin:1px 0;padding:5px 5px 5px 17px;border:0;border-radius:4px;background:transparent;color:#dbe9f6;font-size:11px;line-height:1.25;font-weight:400}
.sidebar .setup-sidebar-tables button::before{content:'';position:absolute;left:5px;top:10px;width:6px;height:6px;border-radius:50%;background:#2993ff}
.sidebar .setup-sidebar-tables button.primary{background:#0869ef;color:white;font-weight:650}
.sidebar .setup-sidebar-tables button:hover{background:#15466f;color:white}
.sidebar .setup-sidebar-tables .setup-item-number{min-width:17px;width:17px;font-size:10px;text-align:left;flex-shrink:0}
.sidebar .nav a.setup-nav-heading{margin-bottom:2px;padding-bottom:4px;font-weight:650}
.sidebar .nav:has(a:hover,summary:hover) .setup-sidebar-tables button.primary{background:transparent;color:#dbe9f6}
.main table.user-width-table,#modal table.user-width-table{table-layout:fixed!important;min-width:0!important;max-width:none!important}
.user-width-table th{position:relative;padding-right:12px!important;overflow:hidden}
.user-width-table td,.user-width-table th{min-width:0!important;max-width:none;overflow:hidden;text-overflow:ellipsis}
.user-width-table td input,.user-width-table td select,.user-width-table td textarea{width:100%!important;min-width:0!important;max-width:100%;box-sizing:border-box}
.field-width-handle{position:absolute;right:0;top:0;bottom:0;width:9px;cursor:col-resize;touch-action:none;z-index:5;border-right:2px solid #9bb7d0;background:transparent}
.field-width-handle:hover,.field-width-handle:focus{background:#b9dcff;border-right-color:#0869ef;outline:none}
.field-width-dragging,.field-width-dragging *{cursor:col-resize!important;user-select:none!important}
.user-width-field{position:relative;min-width:48px!important;max-width:100%;padding-right:9px;justify-self:start}
.user-width-field input,.user-width-field select,.user-width-field textarea{min-width:0!important;width:100%;box-sizing:border-box}
@media print{.field-width-handle{display:none}.user-width-table{max-width:100%!important}}

.flow-chart-header{display:flex;align-items:end;gap:16px;flex-wrap:wrap;margin-bottom:20px}.flow-chart-header #chartreturn{margin-left:auto}.flow-chart-prompt{margin:18px 0;font-size:14px}.flow-chart-tools{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:12px}.flow-chart-tools .flow-component,.chart-node.flow-component{background:#a9d18e;color:#102312}.flow-chart-tools .flow-process,.chart-node.flow-process{background:#ffff00;color:#292900}.flow-chart-tools .flow-purchased,.chart-node.flow-purchased{background:#f4b183;color:#402012}.chart-node.flow-finished{background:#dbeafe}.flow-chart-scroll{width:100%;overflow:auto;border:1px solid #dae4ed;background:white}.finished-flow-card{padding:18px}.flow-chart-scroll #flowcanvas{position:relative;min-height:480px;background-image:radial-gradient(#dce4ee 1px,transparent 1px);background-size:20px 20px}#flowarrows{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none}.chart-edge{fill:none;stroke:#153954;stroke-width:2.5;pointer-events:stroke;cursor:pointer}.chart-node{position:absolute;width:210px;min-height:74px;padding:10px 20px 10px 10px;border:1px solid #7191ad;border-radius:3px;cursor:move;user-select:none;touch-action:none}.chart-node b,.chart-node span{display:block;overflow-wrap:anywhere}.chart-node span{font-size:11px;margin-top:4px}.chart-node button{position:absolute;right:1px;top:1px;padding:0 3px;border:0;background:transparent;font-size:15px;color:#222}.chart-node.chart-source{outline:3px solid #0869ef}.chart-node:focus{outline:2px solid #0869ef}

.flow-chart-header{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:10px}.flow-chart-header>#chartreturn{margin-left:0;flex:none;font-size:10px;padding:5px 7px}.flow-chart-header>.field{flex:0 1 130px;width:130px}.flow-chart-header>.flow-description-field{flex:1 1 200px;width:auto;min-width:160px!important;max-width:100%}.flow-description-field #chartdescription{white-space:pre-wrap;overflow-wrap:anywhere;resize:vertical;overflow:hidden;line-height:1.3;height:auto;min-height:28px}.flow-chart-header>.flow-compact-controls{flex:3 1 470px;min-width:250px}.flow-compact-controls .flow-chart-prompt{margin:0 0 4px;font-size:10px}.flow-compact-controls .flow-chart-tools{gap:4px;margin:0 0 3px}.flow-compact-controls .flow-chart-tools button{padding:4px 6px;font-size:10px;line-height:1.3}.flow-compact-controls #charthelp{font-size:9px;margin:0}.primary-key-symbol{display:inline-block;margin-right:4px;color:#ae7900;font-size:12px;vertical-align:middle;cursor:help}.primary-key-label{white-space:nowrap}

.chart-node .chart-port{position:absolute;width:10px;height:10px;border:1px solid #fff;background:#0869ef;border-radius:50%;padding:0;display:none;z-index:8;cursor:crosshair;touch-action:none}.chart-node:hover .chart-port,.chart-connecting .chart-port{display:block}.chart-node .chart-port-top{top:-5px;left:calc(50% - 5px);right:auto}.chart-node .chart-port-bottom{top:auto;bottom:-5px;left:calc(50% - 5px);right:auto}.chart-node .chart-port-left{left:-5px;right:auto;top:calc(50% - 5px)}.chart-node .chart-port-right{right:-5px;top:calc(50% - 5px)}.chart-preview{fill:none;stroke:#0869ef;stroke-width:2;pointer-events:none}.flow-chart-tools #chartarrowstyle{width:112px;font-size:10px;padding:3px;height:25px}

.chart-edge{stroke:#0869ef}

.chart-node.flow-rm{background:#e7e6e6;border-color:#9c9c9c;color:#252525}.chart-picker-scroll{max-height:50vh;overflow:auto;margin:10px 0}.chart-pick-all{display:flex;align-items:center;gap:7px;font-size:12px;font-weight:600}.chart-picker-scroll input[type=checkbox],.chart-pick-all input[type=checkbox]{width:16px!important;height:16px;min-width:16px!important;margin:0;cursor:pointer}.chart-picker-scroll td{padding:5px 7px!important}.chart-picker-scroll tr:has(input:checked){background:#e8f3ff}

/* Compact flow boxes: point sizes match the requested drawing text sizes. */
.chart-node{width:180px;min-height:52px;padding:7px 16px 7px 8px}.chart-node .chart-code{font-size:11pt;line-height:1.2}.chart-node .chart-description{font-size:8pt;line-height:1.25;margin-top:3px;white-space:normal;overflow-wrap:anywhere}

.flow-chart-scroll #flowcanvas{min-height:0;overflow:hidden}.flow-chart-scroll{border:2px solid #8ea6bc}.flow-chart-scroll::before{content:"A3 LANDSCAPE · ONE PAGE · 420 × 297 MM";display:block;font-size:10px;padding:4px 8px;background:#edf5fc;color:#456}

/* Thin Excel-style connectors with larger invisible selection targets. */
.chart-edge,.chart-preview{stroke-width:1;stroke-linejoin:round}.chart-edge-hit{fill:none;stroke:transparent;stroke-width:14;pointer-events:stroke;cursor:pointer}.chart-line-handle{fill:white;stroke:#0869ef;stroke-width:1;pointer-events:all;cursor:crosshair}.chart-bend-handle{fill:#ffdf50;cursor:move}.chart-node .chart-port{width:7px;height:7px;opacity:.65}.chart-node .chart-port:hover{opacity:1;outline:2px solid #96bffa}

.flow-chart-tools .flow-finished{background:#dbeafe;color:#112a46}

.master-duplicate-pick,#duplicateall{width:15px!important;min-width:15px!important;height:15px;margin:0 4px;vertical-align:middle;cursor:pointer}.master-duplicate-all{display:inline-flex;align-items:center;font-size:11px;gap:3px}

#mastergrid .master-order-cell{white-space:nowrap;vertical-align:middle}#mastergrid .master-row-controls{display:inline-flex;align-items:center;gap:3px;white-space:nowrap}#mastergrid .master-row-controls .master-duplicate-pick{display:inline-block!important;width:14px!important;min-width:14px!important;max-width:14px!important;height:14px;padding:0;margin:0 2px;flex:none}#mastergrid .master-row-controls button{display:inline-block;padding:1px 4px;flex:none}#mastergrid .master-row-controls .master-row-number{display:inline-block;flex:none}.chart-node.chart-needs-replacement{outline:2px dashed #bd6d00}.chart-node .chart-replace-code{right:17px;top:1px;font-size:13px}

#mastergrid input.duplicate-primary-key{color:#c00000!important;background:#fff0f0!important;border:2px solid #d00000!important}.primary-key-warning{color:#c00000;font-size:12px;font-weight:600;margin:4px 0}.primary-key-warning[hidden]{display:none}

.master-duplicate-source{display:inline-flex;align-items:center;gap:5px;white-space:nowrap;font-size:11px}.master-duplicate-source #duplicatefgsearch{width:145px;min-width:100px;padding:4px 6px;font-size:12px}

/* Keep headings fixed within the scrolling datasheet. */
#mastergrid>.table-wrap{max-height:65vh;overflow:auto;position:relative;overscroll-behavior:contain}#mastergrid table{border-collapse:separate;border-spacing:0}#mastergrid thead th{position:sticky!important;top:0!important;z-index:12;background:#eaf3fa;box-shadow:0 1px 0 #bacddd}#mastergrid .find-match{background:#fff3ac!important}#mastergrid .find-current{outline:2px solid #0869ef;outline-offset:-2px}.find-options{display:flex;gap:18px;margin:10px 0}.find-options input{width:auto;min-width:0}

.chart-node.chart-duplicate-code{outline:2px solid #d00000!important;border-color:#d00000!important}.chart-node.chart-duplicate-code .chart-code{color:#c00000!important}#modal input.duplicate-primary-key{color:#c00000!important;background:#fff0f0!important;border:2px solid #d00000!important}

.planning-sheet-layout{display:grid;grid-template-columns:minmax(280px,.8fr) minmax(0,1.2fr);gap:26px}.planning-sheet-card h3{margin-bottom:4px}.planning-sheet-card .planning-sheet-fields{border-collapse:collapse;table-layout:fixed}.planning-sheet-fields th,.planning-sheet-fields td{border:1px solid #aab9c8;padding:3px 5px;background:transparent}.planning-sheet-fields th{width:48%;font-size:12px;font-weight:500}.planning-sheet-fields input,.planning-sheet-fields select,.planning-sheet-fields textarea{padding:4px 5px;margin:0;min-width:0;width:100%;font-size:12px}.planning-sheet-fields textarea{min-height:50px}.planning-sheet-history{margin-top:20px}.planning-sheet-section{margin-top:24px!important}.planning-sheet-card .table-wrap th,.planning-sheet-card .table-wrap td{border:1px solid #aab9c8;padding:4px 5px}.planning-sheet-card .table-wrap input{min-width:0;width:100%;padding:3px}.planning-sheet-card .table-wrap td{vertical-align:middle}.planning-sheet-actions{margin-top:0;margin-bottom:15px}.planning-sheet-card #sheetlinknotice{margin-top:16px}@media(max-width:1000px){.planning-sheet-layout{grid-template-columns:1fr}}
.planning-sheet-card .planning-sheet-product{margin-top:44px}.planning-sheet-card .planning-sheet-history{margin-top:28px}.planning-sheet-card .planning-sheet-layout{gap:36px;grid-template-columns:minmax(310px,.8fr) minmax(0,1.2fr)}.planning-sheet-card .planning-sheet-fields th,.planning-sheet-card .planning-sheet-fields td,.planning-sheet-card .table-wrap th,.planning-sheet-card .table-wrap td{border:1px solid #222;background:#fff;color:#111}.planning-sheet-card .planning-sheet-fields th{width:50%;text-align:left}.planning-sheet-card .planning-sheet-fields input,.planning-sheet-card .planning-sheet-fields select,.planning-sheet-card .planning-sheet-fields textarea{border-color:transparent;border-radius:0;background:#fff;color:#111}.planning-sheet-card .table-wrap table{border-collapse:collapse}.planning-sheet-card .table-wrap th{font-weight:500}.planning-sheet-card .planning-sheet-section{margin-top:32px!important}.planning-sheet-card #sheetpurchase{margin-top:0}.planning-sheet-card #sheetwip+.planning-sheet-section{margin-top:56px!important}@media(max-width:1000px){.planning-sheet-card .planning-sheet-layout{grid-template-columns:1fr}}
/* Compact planning workspace and persistent record identifiers. */
.planning-sheet-card{padding:12px 14px}.planning-sheet-card .planning-sheet-layout{gap:20px;grid-template-columns:minmax(285px,.75fr) minmax(0,1.25fr)}.planning-sheet-card .planning-sheet-layout>div{min-width:0}.planning-sheet-card h3{font-size:14px;margin:0 0 3px}.planning-sheet-card .planning-sheet-product{margin-top:12px}.planning-sheet-card .planning-sheet-history{margin-top:12px}.planning-sheet-card .planning-sheet-fields th,.planning-sheet-card .planning-sheet-fields td{padding:1px 4px;height:25px;font-size:12px}.planning-sheet-card .planning-sheet-fields input,.planning-sheet-card .planning-sheet-fields select{height:23px;min-height:0;padding:1px 3px}.planning-sheet-card .planning-sheet-fields textarea{height:33px;min-height:33px;padding:1px 3px}.planning-sheet-card #nppurposeremark{font-size:10px;line-height:1.1}.planning-sheet-card #nppurposeremark:empty{display:none}.planning-sheet-card .planning-sheet-section,.planning-sheet-card #sheetwip+.planning-sheet-section{margin-top:14px!important}.planning-sheet-card .planning-sheet-actions{margin-bottom:8px}.planning-sheet-card .actions button{padding:6px 10px;font-size:12px}.planning-sheet-card #sheetlinknotice{margin:8px 0;font-size:11px}.planning-sheet-card .table-wrap{max-height:175px;overflow:auto}.planning-sheet-card .table-wrap table{table-layout:fixed;min-width:0;font-size:11px;border-collapse:separate;border-spacing:0}.planning-sheet-card .table-wrap th,.planning-sheet-card .table-wrap td{padding:2px 3px;height:26px;overflow-wrap:anywhere}.planning-sheet-card .table-wrap input{padding:1px;min-width:0;min-height:0;height:22px;font-size:11px}.planning-sheet-card .table-wrap thead th{position:sticky;top:0;background:#dcebf8!important;color:#112a46;font-weight:600;z-index:3;white-space:normal}.planning-sheet-card #sheetwip th:first-child,.planning-sheet-card #sheetpurchase th:first-child{width:30px}.planning-sheet-card #sheetwip th:nth-child(2),.planning-sheet-card #sheetpurchase th:nth-child(2){width:21%}.planning-sheet-card #sheetwip th:nth-child(3),.planning-sheet-card #sheetpurchase th:nth-child(3){width:23%}.frozen-primary-code{position:sticky;left:0;z-index:4;background:#fff!important;box-shadow:2px 0 0 #aab9c8}#mastergrid thead .frozen-primary-code{z-index:15;background:#eaf3fa!important}.planning-sheet-card .table-wrap thead .frozen-primary-code{z-index:5;background:#dcebf8!important}.planning-sheet-card .table-wrap td.frozen-primary-code{background:#f3f8fd!important}@media(max-width:850px){.planning-sheet-card .planning-sheet-layout{grid-template-columns:1fr}}
/* Light blue identifies fields the planner can enter or select. */
.planning-sheet-card .planning-sheet-fields input:not([readonly]):not(:disabled),.planning-sheet-card .planning-sheet-fields select:not(:disabled),.planning-sheet-card .planning-sheet-fields textarea:not([readonly]):not(:disabled){background:#e3f1ff;border:1px solid #bad8f5}
.planning-sheet-card .planning-sheet-fields input:not([readonly]):not(:disabled):focus,.planning-sheet-card .planning-sheet-fields select:not(:disabled):focus,.planning-sheet-card .planning-sheet-fields textarea:not([readonly]):not(:disabled):focus{background:#d8ebff;border-color:#0869ef}
#authoritygrid .table-wrap{max-height:65vh;overflow:auto}#authoritygrid table{min-width:1350px;border-collapse:separate;border-spacing:0}#authoritygrid th{position:sticky;top:0;z-index:3;background:#ffff00;color:#111}#authoritygrid th,#authoritygrid td{padding:4px 6px;border:1px solid #d5dee8}#authoritygrid select{background:#e3f1ff;min-width:100px;padding:5px}#authoritygrid th:nth-child(6),#authoritygrid td:nth-child(6){position:sticky;left:0;z-index:4;background:#edf5ff}#authoritygrid th:nth-child(6){z-index:5;background:#ffff00}#authoritygrid td:nth-child(3) select{min-width:260px}
.phone-checkin-view .sidebar{display:none}.phone-checkin-view .main{margin-left:0}.phone-checkin-view .content{max-width:680px;margin:auto;padding:14px}.phone-checkin-card{width:100%;padding:16px}.phone-checkin-card p{overflow-wrap:anywhere}.phone-checkin-card .primary{width:100%;min-height:48px;margin-top:12px;font-size:16px}.phone-checkin-card .table-wrap{overflow:auto}.phone-checkin-view #globalsearch{display:none}.phone-checkin-view .page-head h1{font-size:25px}@media(max-width:600px){.phone-checkin-view .top-actions{flex-wrap:wrap}.phone-checkin-view .test-label{font-size:10px}}

/* Saved-table review: frozen headings and column filters. */
.master-scroll{max-height:62vh;min-height:180px;overflow:auto;position:relative}
.master-scroll table{border-collapse:separate;border-spacing:0}
.master-scroll thead{position:sticky;top:0;z-index:3;background:#eaf4fa}
.master-scroll th{background:#eaf4fa}
.master-filters th{padding:5px 8px 9px}
.master-filters input{font-size:11px;padding:5px;min-width:85px;background:white;font-weight:400}
.setup-categories{align-self:start;max-height:75vh;overflow:auto}
.master-primary-actions{display:flex;gap:10px;align-items:center;flex-wrap:nowrap;margin:8px 0 12px}
.master-secondary-actions{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:8px}
.master-order-header,.master-order-cell{width:36px;min-width:36px;padding:5px}
.master-row-handle{cursor:grab;padding:5px 8px;font-size:16px}
.master-row-handle:active{cursor:grabbing}.master-dragging{opacity:.5;background:#e5f2ff}
.master-heading-filter{display:flex;align-items:center;justify-content:space-between;gap:6px}
.column-filter-toggle{font-size:12px;padding:2px 6px;background:transparent;flex-shrink:0}
.column-filter-toggle.filtered{background:#0865ed;color:white;border-color:#0865ed}
.master-filter-popup{position:fixed;inset:auto;margin:0;width:230px;padding:12px;border:1px solid #cddce9;border-radius:6px;background:white;box-shadow:0 5px 20px #092d5026;color:#112a46;font:12px 'Segoe UI',Arial,sans-serif}
.master-filter-popup label{display:block;font-weight:650}.master-filter-popup input{margin:8px 0;width:100%}.master-filter-popup button{font-size:12px;padding:5px 9px}
.master-sort-heading{display:flex;align-items:center;justify-content:space-between;gap:7px;width:100%;border:0;padding:3px 0;background:transparent;color:#112a46;font-size:11px;text-align:left;font-weight:700}
.master-sort-heading:hover{background:transparent;color:#0865ed}.sort-arrow{color:#0865ed;font-size:11px}
.setup-categories button{display:flex;gap:7px;text-align:left;align-items:baseline}
.setup-item-number{font-weight:700;min-width:20px;flex-shrink:0}
.master-order-header,.master-order-cell{min-width:65px;width:65px;white-space:nowrap}
.master-row-number{display:inline-block;min-width:20px;font-weight:650;text-align:center;font-size:11px}
.master-order-header,.master-order-cell{min-width:135px;width:135px}
.master-row-cancel{padding:4px 6px;font-size:10px;color:#d81526;margin:0 3px}
.master-cancelled-row{background:#fff0f1;opacity:.75}

/* Edit selection: fixed header and three continuous record rows. */
#planningpicker .table-wrap{height:160px;max-height:160px;overflow:auto;margin-top:8px}
#planningpicker table{table-layout:fixed;min-width:750px;width:100%;border-collapse:separate;border-spacing:0}
#planningpicker tr{height:40px}
#planningpicker th,#planningpicker td{height:40px;box-sizing:border-box;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:6px 10px}
#planningpicker th:first-child{width:22%}#planningpicker th:nth-child(2){width:15%}#planningpicker th:nth-child(3){width:16%}#planningpicker th:nth-child(4){width:23%}#planningpicker th:nth-child(5){width:10%}#planningpicker th:nth-child(6){width:14%}
#planningpicker [data-select-planning]{cursor:pointer}#planningpicker [data-select-planning]:hover td,#planningpicker [data-select-planning]:focus td{background:#e3f1ff!important}#planningpicker [data-select-planning]:focus{outline:2px solid #0869ef;outline-offset:-2px}

#planningpicker th{position:sticky;top:0;padding-right:32px}#planningpicker th .aq-filter{position:absolute;right:4px;top:7px;margin:0;padding:1px 5px;min-height:25px}

/* Box 1 data is distinct from the field labels, including locked records. */
.planning-sheet-card .planning-sheet-fields input,.planning-sheet-card .planning-sheet-fields select,.planning-sheet-card .planning-sheet-fields textarea{color:#000!important;font-weight:700!important;-webkit-text-fill-color:#000!important;opacity:1!important}
.planning-sheet-card .planning-sheet-fields input::placeholder,.planning-sheet-card .planning-sheet-fields textarea::placeholder{color:#687e99!important;font-weight:400!important;-webkit-text-fill-color:#687e99!important}

/* Planning entry cells are yellow; formulas and stock references stay read-only. */
.planning-sheet-card .planning-sheet-fields input:not([readonly]):not(:disabled),.planning-sheet-card .planning-sheet-fields select:not(:disabled),.planning-sheet-card .planning-sheet-fields textarea:not([readonly]):not(:disabled),.planning-sheet-card .planning-entry-cell,.planning-sheet-card .planning-entry-cell input{background:#fff3bf!important;border-color:#d2a72d;color:#17233b}
.planning-sheet-card .table-wrap thead th.planning-entry-heading{background:#ffe89a!important}
.planning-sheet-card input[data-planning-extra]:focus,.planning-sheet-card .planning-sheet-fields input:not([readonly]):focus,.planning-sheet-card .planning-sheet-fields select:not(:disabled):focus{outline:2px solid #d79d00;outline-offset:-2px;background:#ffec99!important}

.planning-sheet-card #sheetraw th:first-child{width:30px}.planning-sheet-card #sheetraw th:nth-child(2){width:21%}.planning-sheet-card #sheetraw th:nth-child(3){width:23%}

.planning-condition-actions{align-items:flex-end;gap:16px;flex-wrap:wrap}.planning-condition-actions .field{min-width:280px;max-width:100%;margin:0}.planning-condition-actions select:not(:disabled){background:#fff3bf!important;border-color:#d2a72d;color:#17233b}

/* Selection and Excel file controls remain a single, easy-to-find row. */
.main .master-primary-actions>.master-excel-actions{display:flex;flex:1 0 100%;align-items:center;gap:8px;flex-wrap:nowrap;overflow-x:auto;padding:3px 0 5px;margin-top:3px}
.main .master-excel-actions>.master-duplicate-all{flex:none;white-space:nowrap}
.main .master-excel-actions>label.small{display:flex;align-items:center;gap:6px;width:auto;flex:0 0 auto;white-space:nowrap;font-size:11px;margin:0}
.main .master-excel-actions input[type=file]{width:205px;min-width:0;margin:0;font-size:11px;padding:4px}
.main .master-excel-actions>button{flex:none;white-space:nowrap}

.main .master-primary-actions>.master-excel-actions{min-width:0;max-width:100%;box-sizing:border-box}
.main .master-excel-actions>label.small{position:relative;cursor:pointer;border:1px solid #d5dfeb;border-radius:7px;color:#0063e6;background:white;padding:8px 12px;font-size:12px;line-height:1.4}
.main .master-excel-actions input[type=file]{position:absolute;width:1px;height:1px;min-width:0;opacity:0;padding:0;margin:0}
.main .master-excel-actions>label.small:focus-within{outline:2px solid #0063e6;outline-offset:2px}

/* Header stacking must be above the frozen ProcessID body column. */
#mastergrid .master-scroll thead{z-index:30;isolation:isolate}
#mastergrid tbody{position:relative;z-index:0}

.chart-node .chart-process-info{display:block;font-size:7pt;line-height:1.2;margin-top:3px;color:#263238;overflow-wrap:anywhere}
/* Freeze Employee Details through EmpName, with a name-only phone fallback. */
#mastergrid table.employee-master-freeze .frozen-primary-code{position:static;left:auto;box-shadow:none}
#mastergrid table.employee-master-freeze [data-employee-frozen]{position:sticky!important;left:var(--employee-pin-left,0px);z-index:4;background:#fff!important}
#mastergrid table.employee-master-freeze thead [data-employee-frozen]{z-index:16;background:#eaf3fa!important}
#mastergrid table.employee-master-freeze [data-employee-frozen="last"]{box-shadow:2px 0 0 #9fb8cf}
@media print{#mastergrid table.employee-master-freeze [data-employee-frozen]{position:static!important;box-shadow:none}}

/* Compact title-row tools for the Component and Production Process tables. */
.main .master-compact-heading{display:flex;align-items:flex-start;gap:10px;justify-content:space-between;margin-bottom:3px}
.main .master-compact-heading>h2{flex:0 1 34%;font-size:20px;line-height:1.2;margin:2px 0}
.main .master-compact-heading>.master-primary-actions{flex:1 1 66%;min-width:0;justify-content:flex-end;align-items:center;flex-wrap:wrap;gap:4px;margin:0}
.main .master-compact-heading .master-primary-actions button,.main .master-compact-heading .master-excel-actions>label{font-size:11px;line-height:1.2;padding:5px 7px;min-height:26px;margin:0}
.main .master-compact-heading .master-duplicate-source,.main .master-compact-heading .master-duplicate-all{font-size:11px;gap:3px;margin:0}
.main .master-compact-heading .master-duplicate-source #duplicatefgsearch{width:115px;min-width:80px;font-size:11px;padding:5px;margin:0}
.main .master-compact-heading .master-primary-actions>.master-excel-actions{flex:0 1 auto;gap:4px;padding:0;margin:0;overflow:visible;max-width:100%;flex-wrap:wrap;justify-content:flex-end}
.main .master-compact #mastermode{font-size:10px;line-height:1.2;margin:3px 0!important}
@media(max-width:700px){.main .master-compact-heading{flex-wrap:wrap}.main .master-compact-heading>h2{flex-basis:100%}.main .master-compact-heading>.master-primary-actions{flex-basis:100%}}

/* Reuse the old subtitle space for the raised setup table. */
.main .page-head.setup-raised-heading{position:relative;align-items:flex-start;margin-bottom:0;padding-bottom:18px;min-height:45px}
.main .page-head.setup-raised-heading>.setup-heading-description{position:absolute;right:0;bottom:2px;text-align:right;font-size:10px;line-height:1.2;margin:0;max-width:75%}
@media(max-width:700px){.main .page-head.setup-raised-heading{padding-bottom:27px}.main .page-head.setup-raised-heading>.setup-heading-description{max-width:100%;font-size:9px}}

/* Purchased Item Details: compact entry and draft links save with the parent row. */
#mastergrid.purchased-compact table,#mastergrid.purchased-compact th,#mastergrid.purchased-compact td,#mastergrid.purchased-compact input,#mastergrid.purchased-compact select,#mastergrid.purchased-compact textarea,#mastergrid.purchased-compact button,#mastergrid.purchased-compact summary{font-size:8pt!important;line-height:1.25!important}
#mastergrid.purchased-compact th,#mastergrid.purchased-compact td{padding:3px 5px!important;height:auto!important;white-space:nowrap}
#mastergrid.purchased-compact .master-order-header,#mastergrid.purchased-compact .master-order-cell{width:118px!important;min-width:0!important;max-width:118px!important}
#mastergrid.purchased-compact input:not([type=checkbox]),#mastergrid.purchased-compact select,#mastergrid.purchased-compact textarea{height:25px!important;padding:3px!important}
#mastergrid.purchased-compact button{padding:2px 4px!important;min-height:0!important}
#mastergrid.purchased-compact details summary{cursor:pointer;max-width:none;width:100%;overflow:visible;text-overflow:clip;white-space:normal!important;overflow-wrap:anywhere;word-break:normal;font-size:7pt!important;line-height:1.15!important}
#mastergrid.purchased-compact td:has(details){overflow:visible!important}
.purchase-goods-options{position:absolute;z-index:35;background:white;border:1px solid #abc;padding:6px;max-height:240px;max-width:460px;overflow:auto;box-shadow:0 3px 8px #999}
.purchase-goods-options label{display:flex;align-items:center;gap:6px;font-size:8pt!important;white-space:nowrap}
.purchase-goods-options input[type=checkbox]{width:14px!important;min-width:14px!important;height:14px!important}
.main .page-head.purchased-top-layout{display:grid;grid-template-columns:minmax(180px,27%) minmax(0,1fr);gap:5px 12px;align-items:start;margin-bottom:6px}
.purchased-top-layout>div:first-child{grid-column:1;grid-row:1/3}
.purchased-top-layout>.top-actions{grid-column:2;grid-row:1;justify-content:flex-end}
#purchased-top-controls{grid-column:2;grid-row:2;min-width:0;text-align:right}
#purchased-top-controls h2{font-size:14px;line-height:1.2;margin:0 0 4px}
#purchased-top-controls .master-primary-actions{justify-content:flex-end;flex-wrap:wrap;gap:4px;margin:0}
#purchased-top-controls button,#purchased-top-controls label{font-size:8pt;line-height:1.2;padding:4px 6px;min-height:0}
#purchased-top-controls .master-excel-actions{flex:0 1 auto;justify-content:flex-end;gap:4px;margin:0;padding:0}
#purchased-top-controls #mastermode{font-size:8pt;margin:4px 0;line-height:1.2}
#purchased-top-controls .ui-table-visibility{justify-content:flex-end;margin:3px 0 0;font-size:8pt}
.main .purchased-table-card{padding:8px;margin-top:0}
#purchased-meta-row{grid-column:1/-1;display:flex;align-items:center;justify-content:flex-end;gap:8px;min-width:0;overflow-x:auto;white-space:nowrap}
#purchased-meta-row #mastermode{margin:0!important;font-size:7pt;line-height:1.2;flex:none}
#purchased-meta-row button{font-size:8pt;padding:3px 5px;white-space:nowrap;flex:none}
#purchased-meta-row .ui-table-visibility{display:flex;align-items:center;flex-wrap:nowrap;flex:none;gap:4px;margin:0}
#purchased-meta-row .ui-table-visibility small{font-size:7pt;white-space:nowrap}
#mastergrid.purchased-compact .master-scroll{min-height:350px;max-height:max(350px,calc(100dvh - 220px))}
#mastergrid.purchased-compact tbody tr{height:29px}
#export-preview-content .export-preview-scroll{min-height:300px;max-height:max(300px,calc(100dvh - 260px));overflow:auto}
#export-preview-content th,#export-preview-content td{font-size:8pt!important;padding:4px 6px!important;height:25px;line-height:1.2;white-space:nowrap}
#export-preview-content th{position:sticky;top:0;z-index:1}
@media(max-width:700px){.main .page-head.purchased-top-layout{grid-template-columns:1fr}.purchased-top-layout>div:first-child{grid-row:1;grid-column:1}.purchased-top-layout>.top-actions{grid-row:2;grid-column:1}#purchased-top-controls{grid-row:3;grid-column:1}}

#mastergrid.purchased-compact textarea.purchase-description{font-size:7pt!important;line-height:1.15!important;white-space:pre-wrap!important;overflow-wrap:anywhere;resize:vertical;overflow:hidden;min-height:25px;max-height:none}
#mastergrid:is(.process-compact,.component-compact,.setup-small) table,#mastergrid:is(.process-compact,.component-compact,.setup-small) th,#mastergrid:is(.process-compact,.component-compact,.setup-small) td,#mastergrid:is(.process-compact,.component-compact,.setup-small) input,#mastergrid:is(.process-compact,.component-compact,.setup-small) select,#mastergrid:is(.process-compact,.component-compact,.setup-small) textarea,#mastergrid:is(.process-compact,.component-compact,.setup-small) button,#mastergrid:is(.process-compact,.component-compact,.setup-small) summary{font-size:8pt!important;line-height:1.2!important}
#mastergrid:is(.process-compact,.component-compact,.setup-small) th,#mastergrid:is(.process-compact,.component-compact,.setup-small) td{padding:3px 5px!important;height:auto!important}
#mastergrid:is(.process-compact,.component-compact,.setup-small) .master-order-header,#mastergrid:is(.process-compact,.component-compact,.setup-small) .master-order-cell{width:118px!important;max-width:118px!important;min-width:0!important}
#mastergrid:is(.process-compact,.component-compact,.setup-small) input:not([type=checkbox]):not([type=radio]),#mastergrid:is(.process-compact,.component-compact,.setup-small) select,#mastergrid:is(.process-compact,.component-compact,.setup-small) textarea{height:25px;padding:3px!important}
#mastergrid:is(.process-compact,.component-compact,.setup-small) textarea.purchase-description{font-size:8pt!important;white-space:pre-wrap;overflow-wrap:anywhere;overflow:hidden;resize:vertical;min-height:25px}
#mastergrid:is(.process-compact,.component-compact,.setup-small) .master-scroll{min-height:350px;max-height:max(350px,calc(100dvh - 220px))}
.process-versions-dropdown>summary{cursor:pointer;white-space:normal;overflow-wrap:anywhere}
.process-versions-dropdown .pv-inline-panel{position:absolute;z-index:15;right:8px;max-width:calc(100vw - 50px);padding:7px;background:white;border:1px solid #abc;box-shadow:0 3px 8px #999;max-height:280px;overflow:auto}
.pv-inline-panel .pv-inline-table{table-layout:auto!important;width:auto!important;min-width:0!important}
.pv-inline-panel .pv-inline-table th,.pv-inline-panel .pv-inline-table td{position:static!important;min-width:0!important;white-space:nowrap}
.pv-inline-panel select{width:115px!important}.pv-inline-panel input[type=number]{width:65px!important}.pv-inline-panel small{margin-left:8px}

.component-goods>summary{cursor:pointer;font-size:8pt!important;line-height:1.2;white-space:normal;overflow-wrap:anywhere}.component-goods-options{position:absolute;right:8px;z-index:15;background:white;border:1px solid #abc;box-shadow:0 3px 8px #999;padding:6px;max-height:250px;max-width:calc(100vw - 40px);overflow:auto}.component-goods-options label{display:flex;gap:6px;align-items:center;font-size:8pt!important;white-space:nowrap;margin:2px 0}

.setup-linked-dropdown summary{font-size:8pt!important;cursor:pointer;white-space:normal;overflow-wrap:anywhere}.setup-linked-panel{position:absolute;right:8px;z-index:20;background:white;border:1px solid #abc;padding:6px;box-shadow:0 3px 8px #999;max-height:270px;max-width:calc(100vw - 32px);overflow:auto;width:max-content}.setup-linked-panel table{table-layout:auto!important;width:auto!important;min-width:0!important}.setup-linked-panel th,.setup-linked-panel td{position:static!important;white-space:nowrap!important;min-width:0!important;font-size:8pt!important}.setup-linked-panel input[type=number]{width:80px!important}.setup-linked-panel small{display:block;font-size:8pt}
.setup-dropdown-tools{position:sticky;top:0;z-index:25;background:white;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:3px 2px 6px;font-size:8pt!important;border-bottom:1px solid #d4dfe8;margin-bottom:4px}.setup-dropdown-close{display:inline-block;white-space:nowrap;border:1px solid #b9cfe3;border-radius:4px;padding:4px 8px;font-size:8pt!important;font-weight:bold;text-decoration:none;background:#edf5ff;color:#005fcb}
.rm-paste-pad{min-height:100px;padding:24px;border:2px dashed #a9c8e6;background:#f4f9ff;text-align:center;color:#245477;cursor:text;font-size:12px}.rm-paste-pad:focus{outline:2px solid #0869ef}#rm-excel-text{width:100%;margin-top:12px;white-space:pre;font-size:12px}

.purchase-quantity-options{max-width:calc(100vw - 32px)!important;width:max-content;max-height:320px!important}
.purchase-quantity-options table{width:auto!important;min-width:0!important;table-layout:auto!important}
.purchase-quantity-options th,.purchase-quantity-options td{font-size:8pt!important;white-space:nowrap!important;padding:4px 6px!important;min-width:0!important;position:static!important}
.purchase-quantity-options input[type=number]{font-size:8pt!important;width:90px!important;min-width:90px!important;height:28px!important;padding:3px!important}
.purchase-quantity-options input[readonly]{background:#f1f3f5!important;color:#555!important}
.purchase-quantity-options small{display:block;font-size:8pt;margin-top:5px}

/* Smaller flow boxes; the saved layout coordinates and company records are unchanged. */
.chart-node{width:164px;min-height:46px;padding:6px 16px 6px 7px}.chart-node .chart-code{font-size:10pt}.chart-node .chart-description{font-size:7pt}.chart-node .chart-process-info{font-size:6pt}

/* Table 15: approved compact title/tools row and screen-fitting defect grid. */
.main .defect-setup-heading{margin-bottom:10px;gap:10px}
.main .defect-setup-heading h1{font-size:24px;line-height:1.15}
.main .defect-setup-heading p{font-size:11px;margin-top:5px}
.main .defect-compact-card{min-width:0;padding:10px}
.main .defect-table-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:6px}
.main .defect-table-heading h2{flex:none;white-space:nowrap;margin:0;font-size:17px;line-height:1.2}
.main .defect-table-heading .master-primary-actions{flex:0 1 auto;display:flex;align-items:center;justify-content:flex-end;flex-wrap:nowrap;gap:4px;margin:0;min-width:0}
.main .defect-table-heading .master-primary-actions button,.main .defect-table-heading .master-excel-actions>label.small{font-size:10px;line-height:1.2;padding:6px;min-height:26px;margin:0;white-space:nowrap}
.main .defect-table-heading .master-primary-actions>.master-excel-actions{display:flex;flex:0 0 auto;gap:4px;margin:0;padding:0;overflow:visible;flex-wrap:nowrap;width:auto}
.defect-compact-card #mastermode[hidden]{display:none!important}
.defect-compact-card .ui-table-visibility{margin:4px 0 5px;gap:5px;font-size:10px}
.defect-compact-card .ui-table-visibility button{font-size:10px;padding:4px 6px;min-height:0}
.defect-compact-card>p.blue{font-size:10px;margin:6px 0 0}
#mastergrid.defect-compact>.table-wrap{min-height:0;max-height:max(150px,calc(100dvh - 230px));overflow:auto}
#mastergrid.defect-compact table{min-width:0;table-layout:fixed}
#mastergrid.defect-compact th{height:31px;padding:3px 33px 3px 6px!important;vertical-align:middle;white-space:nowrap;font-size:11px;line-height:20px}
#mastergrid.defect-compact th.master-order-header{padding-right:6px}
#mastergrid.defect-compact .master-sort-heading{display:inline-flex;align-items:center;gap:4px;width:auto;white-space:nowrap;padding:0;margin:0;font-size:11px;line-height:20px;overflow:visible;text-overflow:clip}
#mastergrid.defect-compact .primary-key-symbol{display:inline;font-size:11px;line-height:20px;margin:0 3px 0 0}
#mastergrid.defect-compact th .employee-filter{position:absolute;right:11px;top:5px;padding:1px 4px;min-height:19px;height:19px;font-size:10px;line-height:15px;margin:0}
#mastergrid.defect-compact td{height:27px;padding:2px 4px;vertical-align:top;font-size:11px;line-height:21px}
#mastergrid.defect-compact input,#mastergrid.defect-compact select{width:100%;min-width:0;height:22px;min-height:0;padding:1px 5px;font-size:11px;line-height:20px;margin:0}
#mastergrid.defect-compact .master-row-controls{display:flex;align-items:center;gap:4px;white-space:nowrap}
#mastergrid.defect-compact .master-row-number{min-width:14px;font-size:11px}
#mastergrid.defect-compact .master-row-cancel,#mastergrid.defect-compact .master-row-handle{font-size:9px;min-height:19px;height:19px;padding:1px 4px;margin:0;line-height:15px}
#mastergrid.defect-compact .master-order-cell,#mastergrid.defect-compact .master-order-header{min-width:0;max-width:none}
@media(max-width:1250px){.main .defect-table-heading{flex-wrap:wrap}.main .defect-table-heading .master-primary-actions{justify-content:flex-start;flex-wrap:wrap}}
@media(max-width:700px){.main .defect-table-heading h2{font-size:16px}.main .defect-table-heading .master-excel-actions{flex-wrap:wrap!important}.main .defect-setup-heading h1{font-size:22px}}
.flow-chart-header>.flow-identification{flex:2 1 470px;min-width:0;align-self:flex-start}
.flow-product-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.flow-product-row>.field{flex:0 1 130px;width:130px}
.flow-product-row>.flow-description-field{flex:1 1 160px;width:auto;min-width:160px!important}
.flow-product-row>#chartreturn{margin-left:0;flex:none;font-size:10px;padding:5px 7px}
.flow-identification>.flow-version-controls{display:flex;gap:6px;align-items:end;margin:8px 0 0!important;flex-wrap:wrap}
.flow-version-controls>.field:first-child{flex:0 0 112px;width:112px;min-width:0}
.flow-version-controls>.field:nth-child(2){flex:1 1 160px!important;min-width:130px}
.flow-version-controls>#newflowversion{flex:none;padding:5px 7px;font-size:10px}
.flow-version-controls>small{flex-basis:100%;font-size:9px}

/*497: compact flow setup and production selectors. */
.flow-identification>.flow-version-controls{display:grid;grid-template-columns:104px minmax(130px,1fr) 116px;gap:6px}
.flow-version-controls>.field{width:auto!important;min-width:0!important}
.flow-version-controls>#newflowversion{grid-column:2/4;justify-self:end}
.flow-version-controls>small{grid-column:1/-1}
.flow-version-controls>.flow-setting{flex:0 0 116px;min-width:100px}
.pf-selectors{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.pf-selectors .field{width:auto!important}
.pf-flow-selectors{display:grid;grid-template-columns:minmax(130px,1fr) minmax(0,2fr);gap:8px;align-items:end}
.pf-flow-selectors small{grid-column:1/-1;font-size:10px;color:#63788d;margin:-3px 0 4px}
.pf-flow-selectors input[readonly]{background:#f2f6fa}
.pf-desk>.pf-tools,#pf-scope>.pf-tools{justify-content:flex-end;flex-wrap:wrap;margin:0;gap:6px}
@media(max-width:560px){.pf-selectors,.pf-flow-selectors{grid-template-columns:minmax(0,1fr)}.flow-identification>.flow-version-controls{display:flex}.flow-version-controls>.flow-setting{flex:1 1 100px}.pf-flow-selectors small{grid-column:auto}}

/*499: scroll the filter content while its action footer stays on screen. */
#employee-column-menu.setup-filter-menu{display:flex;flex-direction:column;box-sizing:border-box;width:320px;max-width:calc(100vw - 16px);max-height:min(510px,calc(100dvh - 16px));overflow:hidden;padding:10px;font-size:12px}
#employee-column-menu.setup-filter-menu[hidden]{display:none}
#employee-column-menu.setup-filter-menu>.setup-filter-content{min-height:0;overflow:auto;overscroll-behavior:contain}
#employee-column-menu.setup-filter-menu>.setup-filter-content>button,#employee-column-menu.setup-filter-menu>.setup-filter-content>input,#employee-column-menu.setup-filter-menu>.setup-filter-content>label{display:block;width:100%;box-sizing:border-box;margin:0 0 6px}
#employee-column-menu.setup-filter-menu>.setup-filter-content>button{text-align:left}
#employee-column-menu.setup-filter-menu button,#employee-column-menu.setup-filter-menu input:not([type=checkbox]),#employee-column-menu.setup-filter-menu select{font-size:12px;min-height:30px;padding:5px 6px}
#employee-column-menu.setup-filter-menu>.setup-filter-content>.aq-choice{display:flex}
#employee-column-menu.setup-filter-menu #empfiltervalues{max-height:160px;overflow:auto;overscroll-behavior:contain}
#employee-column-menu.setup-filter-menu>.aq-actions{flex:0 0 auto;margin-top:6px;background:#fff;border-top:1px solid #d7e2ec;padding-top:6px}
#employee-column-menu.setup-filter-menu .column-filter-scope{display:block;color:#63788d;margin:0 0 4px;font-size:10px}

/* Complete filter lists stay scrollable in every shared-table host. */
.aq-menu:not(.setup-filter-menu){box-sizing:border-box;max-height:calc(100vh - 16px);max-height:min(470px,calc(100vh - 16px));overflow-y:auto;overscroll-behavior:contain}
.aq-menu:not(.setup-filter-menu) [id$="values"]{max-height:200px;max-height:min(200px,30vh);overflow:auto;overscroll-behavior:contain}
.aq-menu:not(.setup-filter-menu)>.aq-actions,.aq-menu.sj-filter-menu>.actions{position:sticky;bottom:0;z-index:2;background:#fff;padding-top:6px}
.aq-menu.sj-filter-menu{position:fixed;z-index:4000;width:300px;max-width:calc(100vw - 16px);background:#fff;padding:12px}
.aq-menu.sj-filter-menu #sj-filter-values label{display:flex;align-items:center;gap:6px;font-size:inherit;padding:3px}
#modal .flow-duplicate-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 24px}
#modal:has(.flow-duplicate-form){width:min(820px,calc(100vw - 24px))}
#modal .flow-duplicate-side{display:grid;grid-template-columns:minmax(0,1fr) 85px;gap:10px}
#modal .flow-duplicate-details{display:grid;grid-template-columns:minmax(0,1fr) 145px;gap:10px;grid-column:1/-1}
#modal .flow-duplicate-form .field{width:auto!important;max-width:none!important;min-width:0;margin:0;padding-right:0;justify-self:stretch}
#modal .flow-duplicate-form input,#modal .flow-duplicate-form select{width:100%!important;max-width:100%!important;min-width:0}
#modal .flow-duplicate-form .field-width-handle{display:none}
.flow-version-controls>.flow-version-actions{grid-column:1/-1;display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px}
.flow-version-actions>button{padding:5px 7px;font-size:10px;white-space:nowrap}
@media(max-width:600px){#modal .flow-duplicate-form{grid-template-columns:minmax(0,1fr);gap:10px}#modal .flow-duplicate-details{grid-template-columns:minmax(0,1fr) 125px}}

/* Explicit J drawing actions; compact selection before opening the canvas. */
.flow-entry-actions{gap:6px;margin:0 0 10px;flex-wrap:wrap}.flow-entry-fields{display:grid;grid-template-columns:minmax(150px,1fr) minmax(180px,2fr) minmax(100px,.7fr) minmax(190px,2fr) minmax(120px,1fr);gap:8px;align-items:end}.flow-entry-fields .field{min-width:0;margin:0}.flow-entry-fields input,.flow-entry-fields select{width:100%;min-width:0;box-sizing:border-box}.flow-delete-preview{cursor:default}.flow-entry-card{padding:12px}@media(max-width:800px){.flow-entry-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:460px){.flow-entry-fields{grid-template-columns:1fr}}

/* I7-I9: fixed controls, one heading and a ten-row viewport. */
.main .compact-master-card{display:flex;flex-direction:column;min-width:0;height:max(260px,calc(100dvh - var(--compact-top,150px) - 80px));padding:10px;margin-bottom:0;overflow:visible}
.main .compact-master-card .master-primary-actions{flex:none;display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin:0 0 5px}
.main .compact-master-card .master-primary-actions>.master-excel-actions{flex:1 1 auto;justify-content:flex-end;gap:6px;width:auto;margin:0;padding:0;overflow:visible}
.main .compact-master-card .master-excel-actions>label.small{width:auto;flex:none;font-size:12px;margin:0}
#compact-master-meta{display:flex;align-items:center;justify-content:space-between;gap:6px;flex-wrap:wrap;flex:none;margin-bottom:5px}
#compact-master-meta #mastermode{margin:0!important;flex:1 1 220px}
#compact-master-meta .ui-table-visibility{margin:0;gap:5px}
#mastergrid.compact-master-grid{display:flex;flex:1;flex-direction:column;min-height:0;min-width:0;overflow:visible}
#mastergrid.compact-master-grid>.master-scroll{flex:1;min-height:0;max-height:none;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
#mastergrid.compact-master-grid th{height:34px;padding:4px 34px 4px 8px!important;vertical-align:middle;white-space:nowrap;line-height:22px}
#mastergrid.compact-master-grid .master-order-header{padding-right:8px!important}
#mastergrid.compact-master-grid .master-sort-heading{display:inline-flex;align-items:center;gap:5px;width:auto;white-space:nowrap;padding:0;margin:0;line-height:22px;font-size:11px}
#mastergrid.compact-master-grid .primary-key-symbol{display:inline;margin:0 4px 0 0;line-height:22px}
#mastergrid.compact-master-grid th .employee-filter{position:absolute;right:10px;top:6px;width:20px;height:21px;min-height:0;padding:1px 4px;margin:0;line-height:17px;font-size:10px}
#mastergrid.compact-master-grid td{padding:3px 5px;vertical-align:middle;height:31px}
#mastergrid.compact-master-grid td input,#mastergrid.compact-master-grid td select{min-height:24px;height:24px;padding:2px 5px;font-size:12px}
#mastergrid.compact-master-grid .master-row-controls{display:flex;align-items:center;gap:5px;white-space:nowrap}
#mastergrid.compact-master-grid .master-row-cancel,#mastergrid.compact-master-grid .master-row-handle{padding:2px 5px;font-size:10px}
#compact-master-pager{display:flex;align-items:center;justify-content:flex-end;gap:9px;flex:none;padding-top:7px;font-size:11px;flex-wrap:wrap}
.compact-master-card>p.blue{display:none}
.compact-master-card>.notice{flex:none;max-height:70px;overflow:auto;margin:5px 0 0}
@media(max-width:700px){.main .compact-master-card{height:max(300px,calc(100dvh - var(--compact-top,220px) - 80px))}#compact-master-meta .ui-table-visibility{flex-wrap:wrap}.main .compact-master-card .master-primary-actions>.master-excel-actions{justify-content:flex-start;flex-wrap:wrap}#compact-master-pager{justify-content:flex-start;gap:5px}}

#mastergrid.compact-master-grid th[data-primary-key]{padding-left:26px!important}
#mastergrid.compact-master-grid th>.primary-key-symbol{position:absolute;left:8px;top:6px}

.phone-checkin-view #signout{display:none}

/* QR missing-checkout confirmation, same fields as the standalone phone page. */
.phone-checkin-card #phonepreviousdate{background:#eaf0f5;color:#15324f}
.phone-checkin-card #phonepreviousout{background:#225f9f;color:#fff;font-size:22px;font-weight:700}
.phone-checkin-card #phonepreviousdate,.phone-checkin-card #phonepreviousout{width:100%;min-width:0;min-height:50px;margin:7px 0 16px}
.phone-checkin-card .phone-attendance-success{padding:14px;background:#e8f5ec;border-left:4px solid #1c7a47;color:#165c35;margin:16px 0}
.phone-checkin-card .primary{white-space:normal}

/* I4 only: preserve compact field geometry; pager lives below the table. */
#mastergrid.process-paged .process-view-value{display:block;min-height:25px;padding:3px;box-sizing:border-box;font-size:8pt;line-height:1.2;white-space:pre-wrap;overflow-wrap:anywhere}
#mastergrid.process-paged .process-version-open{min-height:25px;width:100%;padding:3px;text-align:left;white-space:normal;overflow-wrap:anywhere}
#process-pager{display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:6px 0;font-size:8pt}
#process-pager button{font-size:8pt;padding:4px 6px}
@media(max-width:600px){#process-pager{flex-wrap:wrap}}
/* I4 compact two-line labels; all other master tables keep their geometry. */
#mastergrid.process-paged th,#mastergrid.process-paged td{padding:2px 3px!important}
#mastergrid.process-paged .master-order-header,#mastergrid.process-paged .master-order-cell{width:92px!important;max-width:92px!important}
#mastergrid.process-paged thead th{position:sticky;height:40px!important;vertical-align:middle}
#mastergrid.process-paged .master-sort-heading{display:flex;align-items:center;gap:2px;padding:1px!important;width:calc(100% - 16px);min-height:30px;white-space:normal!important;text-align:left}
#mastergrid.process-paged .process-heading-lines{display:grid;grid-template-rows:13px 13px;line-height:13px!important;min-width:0}
#mastergrid.process-paged .process-heading-lines>span{white-space:nowrap}
#mastergrid.process-paged .aq-filter{position:absolute;right:4px;bottom:5px;min-width:13px!important;width:13px!important;height:17px!important;min-height:17px!important;padding:0!important}
#mastergrid.process-paged .sort-arrow{font-size:8px!important}
#mastergrid.process-paged .process-version-open{padding:2px!important}
#pv-body input[aria-invalid=true]{outline:2px solid #c62828;background:#fff0f0}

#mastergrid.process-paged .process-version-open[aria-invalid=true]{color:#b42318!important;border-color:#c62828!important}

#mastergrid.process-paged .master-row-controls{gap:2px!important}
#mastergrid.process-paged .master-row-cancel{font-size:8px!important;padding:1px 2px!important;min-width:0!important}
#mastergrid.process-paged .master-row-handle{width:12px!important;min-width:12px!important;padding:0!important}
#mastergrid.process-paged .master-duplicate-pick{width:12px!important;min-width:12px!important;margin:0!important}
/* Keep I4 filter confirmation visible while long value lists scroll. */
.aq-menu.process-filter-menu{display:flex;flex-direction:column;box-sizing:border-box;max-width:calc(100vw - 16px);max-height:min(510px,calc(100vh - 16px));max-height:min(510px,calc(100dvh - 16px));overflow:hidden;padding:10px;font-size:12px}
.process-filter-menu .process-filter-content{min-height:0;overflow:auto;overscroll-behavior:contain}
.process-filter-menu .process-filter-content>button,.process-filter-menu .process-filter-content>input,.process-filter-menu .process-filter-content>label{display:block;width:100%;margin:0 0 6px;box-sizing:border-box}
.process-filter-menu .process-filter-content>button{text-align:left}
.process-filter-menu button,.process-filter-menu input:not([type=checkbox]),.process-filter-menu select{font-size:12px;min-height:30px;padding:5px 6px}
.process-filter-menu .process-filter-content>.aq-choice{display:flex}
.process-filter-menu #empfiltervalues{max-height:160px;overflow:auto;overscroll-behavior:contain}
.process-filter-menu .aq-actions{flex-shrink:0;background:#fff;border-top:1px solid #d7e2ec;padding-top:8px}

/* I1 only: retain existing compact geometry and column order. */
#mastergrid.fg-paged .fg-view-value{display:block;min-height:25px;padding:3px;box-sizing:border-box;font-size:8pt;line-height:1.2;white-space:pre-wrap;overflow-wrap:anywhere}
#fg-pager{display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:6px 0;font-size:8pt}
#fg-pager button{font-size:8pt;padding:4px 6px}
@media(max-width:600px){#fg-pager{flex-wrap:wrap}}

/* I2 only: retain existing compact geometry and column order. */
#mastergrid.cmp-paged .cmp-view-value{display:block;min-height:25px;padding:3px;box-sizing:border-box;font-size:8pt;line-height:1.2;white-space:pre-wrap;overflow-wrap:anywhere}
#cmp-pager{display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:6px 0;font-size:8pt}
#cmp-pager button{font-size:8pt;padding:4px 6px}
@media(max-width:600px){#cmp-pager{flex-wrap:wrap}}
#mastergrid.cmp-paged .cmp-floating-panel{position:fixed!important;inset:auto;margin:0;box-sizing:border-box;max-width:calc(100vw - 24px)!important;min-width:0;z-index:10000;display:flex;flex-direction:column;overflow:hidden!important;background:white;color:#102447;padding:0;border:1px solid #9eb8d2;box-shadow:0 3px 12px #0004}
#mastergrid.cmp-paged .cmp-floating-panel>.setup-dropdown-tools{flex:0 0 auto;display:flex;align-items:center;gap:8px;margin:0;padding:6px;width:100%;box-sizing:border-box}
#mastergrid.cmp-paged .cmp-floating-panel>.setup-dropdown-tools>span{flex:1;min-width:0;white-space:normal}
#mastergrid.cmp-paged .cmp-floating-panel .setup-dropdown-close{flex:0 0 auto;white-space:nowrap}
#mastergrid.cmp-paged .cmp-floating-panel>[data-cmp-list]{min-width:0;min-height:0;overflow:auto;padding:6px}
.cmp-popup-host{isolation:auto!important;z-index:auto!important}

/* I3 only: compact existing geometry, with usage choices built only when opened. */
#mastergrid.rm-paged .rm-view-value{display:block;min-height:25px;padding:3px;box-sizing:border-box;font-size:8pt;line-height:1.2;white-space:pre-wrap;overflow-wrap:anywhere}
#rm-pager{display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:6px 0;font-size:8pt}
#rm-pager button{font-size:8pt;padding:4px 6px}
@media(max-width:600px){#rm-pager{flex-wrap:wrap}}

/* Keep RM dropdown tools inside the viewport-sized panel, above its scrolling body. */
#mastergrid.rm-paged [data-rm-usage] .setup-linked-panel{display:flex;flex-direction:column;box-sizing:border-box;width:min(660px,calc(100vw - 16px));min-width:0;max-width:calc(100vw - 16px);max-height:min(360px,calc(100vh - 16px));padding:0;overflow:hidden}
#mastergrid.rm-paged [data-rm-usage] .rm-usage-scroll{min-width:0;min-height:0;overflow:auto;padding:6px}
#mastergrid.rm-paged [data-rm-usage] .setup-linked-table{width:100%!important;min-width:560px!important}
#mastergrid.rm-paged [data-rm-usage] .setup-dropdown-tools{display:flex;flex:0 0 auto;position:sticky;top:0;width:100%;min-width:0;box-sizing:border-box;margin:0;padding:6px;gap:8px}
#mastergrid.rm-paged [data-rm-usage] .setup-dropdown-tools>span{flex:1;min-width:0;white-space:normal}
#mastergrid.rm-paged [data-rm-usage] .setup-dropdown-close{flex:0 0 auto;white-space:nowrap}
#mastergrid.rm-paged [data-rm-usage] .setup-linked-table th{position:sticky!important;top:0;z-index:1;background:#edf5ff}
#mastergrid.rm-paged>.table-wrap{isolation:auto}
#mastergrid.rm-paged>.table-wrap>table>tbody{z-index:auto}
#mastergrid.rm-paged [data-rm-usage] .setup-linked-panel{z-index:1000}

/* Employee Details only: retain compact fields and place paging below existing data. */
#mastergrid.emp-paged .emp-view-value{display:block;min-height:25px;padding:3px;box-sizing:border-box;font-size:8pt;line-height:1.2;white-space:pre-wrap;overflow-wrap:anywhere}
#emp-pager{display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:6px 0;font-size:8pt}
#emp-pager button{font-size:8pt;padding:4px 6px}
@media(max-width:600px){#emp-pager{flex-wrap:wrap}}

/* I6 only: retain existing compact geometry and column order. */
#mastergrid.pur-paged .pur-view-value{display:block;min-height:25px;padding:3px;box-sizing:border-box;font-size:8pt;line-height:1.2;white-space:pre-wrap;overflow-wrap:anywhere}
#pur-pager{display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:6px 0;font-size:8pt}
#pur-pager button{font-size:8pt;padding:4px 6px}
@media(max-width:600px){#pur-pager{flex-wrap:wrap}}

#mastergrid.pur-paged .pur-section-options{position:absolute;z-index:8;background:white;border:1px solid #abc;padding:6px;max-height:220px;overflow:auto;box-shadow:0 3px 8px #999}
#mastergrid.pur-paged .pur-section-options label{display:flex;gap:6px;white-space:nowrap}
#mastergrid.pur-paged [data-pur-value="name"]{font-size:7pt;line-height:1.15}

/* White edit cells and one selected purchased-item row. Data and readonly rules stay intact. */
#mastergrid.pur-paged[data-editing="true"]> .table-wrap>table>tbody>tr>td,
#mastergrid.pur-paged[data-editing="true"]> .table-wrap>table>tbody>tr>td>:is(input:not([type="checkbox"]),select,textarea),
#mastergrid.pur-paged[data-editing="true"]> .table-wrap>table>tbody>tr>td>details>summary{background:white!important;color:#102447!important}
#mastergrid.pur-paged[data-editing="true"]> .table-wrap>table>tbody>tr.pur-active-row>td,
#mastergrid.pur-paged[data-editing="true"]> .table-wrap>table>tbody>tr.pur-active-row>td>:is(input:not([type="checkbox"]),select,textarea),
#mastergrid.pur-paged[data-editing="true"]> .table-wrap>table>tbody>tr.pur-active-row>td>details>summary{background:#d9ebff!important;color:#102447!important}
#mastergrid.pur-paged[data-editing="true"] input.duplicate-primary-key{color:#c00000!important;border-color:#c00000!important}
/* A top-layer popup stays outside table clipping without moving the linked controls. */
#mastergrid.pur-paged .pur-floating-panel{position:fixed!important;inset:auto;margin:0;box-sizing:border-box;max-width:calc(100vw - 24px)!important;min-width:0;z-index:10000;display:flex;flex-direction:column;overflow:hidden!important;background:white;color:#102447;padding:0;border:1px solid #9eb8d2;box-shadow:0 3px 12px #0004}
#mastergrid.pur-paged .pur-floating-panel>.setup-dropdown-tools{flex:0 0 auto;display:flex;align-items:center;gap:8px;margin:0;padding:6px;width:100%;box-sizing:border-box}
#mastergrid.pur-paged .pur-floating-panel>.setup-dropdown-tools>span{flex:1;min-width:0;white-space:normal}
#mastergrid.pur-paged .pur-floating-panel .setup-dropdown-close{flex:0 0 auto;white-space:nowrap}
#mastergrid.pur-paged .pur-floating-panel>:is([data-pur-usage-list],[data-pur-section-list]){min-width:0;min-height:0;overflow:auto;padding:6px}
#mastergrid.pur-paged .pur-floating-panel table{width:100%!important;min-width:580px!important;table-layout:auto!important}
#mastergrid.pur-paged .pur-floating-panel thead th{position:sticky!important;top:0!important;z-index:1;background:#eaf3fa!important}

#mastergrid.pur-paged .pur-usage-status{display:block;font-size:7pt;line-height:1.2;white-space:normal;margin-top:3px;color:#60738a}
#mastergrid.pur-paged .pur-usage-status[data-usage-state="incomplete"]{color:#b00020!important;font-weight:700}
#mastergrid.pur-paged .pur-usage-status[data-usage-state="complete"]{color:#176b35!important}

#mastergrid.pur-paged .pur-usage-status[hidden]{display:none!important}

#worker-attendance-grid{max-height:62vh;overflow:auto;isolation:isolate}
#worker-attendance-grid .table-wrap{overflow:visible}
#worker-attendance-grid table{min-width:1120px;border-collapse:separate;border-spacing:0}
#worker-attendance-grid th{position:sticky;top:0;z-index:2;background:#dceafa;color:#102c4d;white-space:nowrap}
#worker-attendance-grid td{background:white;white-space:nowrap}
#worker-attendance-grid td:first-child,#worker-attendance-grid th:first-child{position:sticky;left:0;border-right:2px solid #a9bfd4}
#worker-attendance-grid td:first-child{z-index:1;background:#f1f7fd}
#worker-attendance-grid th:first-child{z-index:3}

.aq-filter{float:right;padding:1px 7px;margin-left:12px;border-radius:2px;min-height:25px}.aq-filter.aq-active{background:#005eff;color:white}.aq-menu[hidden]{display:none}.aq-menu{position:fixed;z-index:4000;width:300px;max-height:calc(100vh - 16px);overflow:auto;background:white;border:1px solid #a9bfd4;box-shadow:0 5px 20px #0003;padding:12px;color:#102c4d}.aq-menu>button,.aq-menu>input,.aq-menu>label,.aq-menu>strong{display:block;width:100%;margin-bottom:6px}.aq-menu>button{text-align:left;padding:6px}.aq-menu select{width:100%}.aq-menu .aq-choice{display:flex;align-items:center;gap:8px;padding:3px;margin:0;font-weight:normal}.aq-menu input[type=checkbox]{width:17px;height:17px;min-height:0;margin:0;flex:none}.aq-menu #aqvalues{max-height:155px;overflow:auto;border:1px solid #d7e2ec}.aq-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:8px}

.column-filter-values{max-height:155px;overflow:auto;border:1px solid #d7e2ec}#authoritygrid th .aq-filter{min-height:23px}#worker-attendance-grid input,#worker-attendance-grid select{background:#e2f1ff;min-width:130px;width:100%;box-sizing:border-box}#authoritygrid th{white-space:nowrap}


.quality-sheet{padding:20px!important}.quality-top{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:28px}.quality-top label{display:flex;align-items:center;gap:15px;font-weight:bold}.quality-top input{width:230px}.quality-buttons{display:flex;gap:8px}.quality-header table{table-layout:fixed;width:100%;min-width:1000px}.quality-header th{background:white;font-weight:normal;text-align:center}.quality-sheet table{border-collapse:collapse}.quality-sheet th,.quality-sheet td{border:1px solid #99aec4;padding:4px}.quality-sheet input,.quality-sheet select{width:100%;min-width:0;padding:6px;box-sizing:border-box;border-radius:0}.quality-sheet input:not([readonly]):not(:disabled),.quality-sheet select:not(:disabled){background:#e2f1ff}.quality-sheet input[readonly]{background:#f4f6f8}.quality-columns{display:grid;grid-template-columns:minmax(0,850px);gap:0;margin-top:25px}.quality-columns h2{font-size:18px;font-style:italic;font-weight:normal;margin:0 0 4px}.quality-columns table{width:100%;table-layout:fixed}.quality-columns th{background:#dceafa;white-space:nowrap}.quality-columns section:first-child th:first-child{width:45px}.quality-columns td{height:38px}.quality-columns section>button{margin-top:8px}.quality-sheet .actions{margin-top:24px}.quality-sheet #qcmessage{margin-right:auto}@media(max-width:850px){.quality-columns{grid-template-columns:1fr;gap:24px}.quality-top{flex-wrap:wrap}.quality-columns table{min-width:460px}.quality-columns section{overflow:auto}}
.quality-buttons select{width:190px}.quality-buttons{align-items:center;flex-wrap:wrap}


.pd-toolbar{display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap;margin-bottom:14px}.pd-scope{display:grid;grid-template-columns:170px 190px minmax(190px,260px);gap:16px;margin-bottom:14px}.pd-plan-summary{display:grid;grid-template-columns:1fr 2fr .6fr .8fr 1.5fr;gap:12px;padding:12px;background:#f4f7fa;border:1px solid #dce7f1;border-radius:5px;margin-bottom:14px}.pd-meta{min-width:0}.pd-meta>span{display:block;color:#687e99;font-size:11px;margin-bottom:3px}.pd-meta>strong{display:block;font-size:13px;overflow-wrap:anywhere}.pd-scroll{overflow:auto;border:1px solid #d5dfe8;max-height:270px;margin-bottom:12px}.pd-scroll thead{position:sticky;top:0;z-index:1}.main .pd-desk table.pd-table,#modal table.pd-table{width:100%;min-width:0;table-layout:fixed;border-collapse:separate;border-spacing:0;font-size:12px}.main .pd-desk table.pd-table th,#modal table.pd-table th{background:#e5e7eb;padding:5px;white-space:normal;font-size:11px;border:0;border-right:1px solid #d5dfe8;border-bottom:1px solid #d5dfe8}.main .pd-desk table.pd-table td,#modal table.pd-table td{padding:5px;height:34px;vertical-align:middle;border:0;border-right:1px solid #dce7f1;border-bottom:1px solid #dce7f1;overflow-wrap:anywhere}.pd-transactions tr{cursor:pointer}.pd-selected td{background:#e8f2ff}.pd-transactions th:first-child{width:46px}.pd-transactions th:nth-child(5){width:23%}.pd-transactions th:nth-child(7),.pd-transactions th:nth-child(9){width:8%}.pd-process-meta{display:grid;grid-template-columns:1fr 1fr 1fr 2fr 1fr .8fr 1fr .8fr;gap:10px;margin:16px 0 12px;padding-bottom:12px;border-bottom:1px solid #dce7f1}.pd-time-fields{display:grid;grid-template-columns:140px minmax(200px,2fr) 1fr 1fr 1fr;gap:12px;margin-bottom:14px}.pd-entry-columns{display:grid;grid-template-columns:minmax(320px,1.4fr) minmax(140px,.6fr) minmax(260px,1fr);gap:16px;align-items:start}.pd-entry h3{font-size:14px;margin:0 0 8px;padding:7px;background:#eef3f8}.pd-worker-alert .notice{padding:6px 8px;font-size:11px;margin:0 0 8px}.pd-worker-alert .notice.danger{color:#a0000b}.pd-worker-list th:first-child{width:42px}.pd-worker-list th:nth-child(3){width:30%}.pd-remarks{display:grid;grid-template-columns:1fr 2fr;gap:16px;margin-top:8px}.pd-save-actions{margin-top:14px;border-top:1px solid #dce7f1;padding-top:12px}.pd-desk input,.pd-desk select,.pd-desk textarea{font-size:12px;padding:5px;min-height:28px}.pd-desk input[type=checkbox],.pd-desk input[type=radio]{width:15px;min-width:15px;max-width:15px;height:15px;min-height:0;padding:0;margin:0}.pd-desk table input:not([type=checkbox]):not([type=radio]){width:100%;min-width:0}.pd-desk input:disabled,.pd-desk select:disabled,.pd-desk textarea:disabled{background:#f4f6f8;color:#60738a;opacity:1}.pd-form{margin:0;padding:0}.pd-form [hidden],#dailyworkupdate[hidden]{display:none}.pd-output input{text-align:right}.pd-transactions .table-wrap,.pd-worker-list .table-wrap{overflow:visible}.pd-form .production-worker-selected td{background:#e8f2ff}.pd-form .alert-row td{background:#fff0f0}.pd-desk .field{width:auto!important;flex:auto!important;min-width:0}.pd-desk .field-width-handle{display:none}
@media(max-width:1100px){.pd-entry-columns{grid-template-columns:1fr 1fr}.pd-employees{grid-column:1/-1}.pd-process-meta{grid-template-columns:repeat(4,minmax(0,1fr))}.pd-time-fields{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:650px){.pd-scope,.pd-plan-summary,.pd-entry-columns,.pd-time-fields,.pd-process-meta,.pd-remarks{grid-template-columns:1fr}.pd-employees{grid-column:auto}.pd-transactions table.pd-table{min-width:760px!important}.pd-toolbar{justify-content:flex-start}.pd-worker-list table.pd-table{min-width:420px!important}}

.pf-desk{padding:16px!important}.pf-desk h2{font-size:17px;margin:0 0 6px}.pf-desk h2 span{font-size:12px;color:#63788d}.pf-desk h3{font-size:13px;margin:10px 0 5px}.pf-desk .pf-help{font-size:11px;color:#6c8096;margin:5px 0 8px;line-height:1.4}.pf-selectors{display:flex;align-items:end;gap:14px}.pf-desk .field{display:block;min-width:0!important;width:auto!important;flex:initial!important;margin:0 0 7px;font-size:12px}.pf-selectors .field{width:220px!important}.pf-desk input,.pf-desk select,.pf-desk textarea{width:100%;min-width:0!important;height:31px!important;padding:4px 7px!important;font-size:12px!important;box-sizing:border-box;border:1px solid #cad9e9;border-radius:4px;background:#fff;color:#102e50}.pf-desk textarea{height:32px!important;resize:vertical}.pf-desk button{font-size:11px;padding:6px 9px;min-height:29px}.pf-tools{margin-left:auto;display:flex;gap:6px;padding-bottom:7px}#pf-summary{display:flex;gap:8px 22px;flex-wrap:wrap;font-size:12px;padding:8px 0 12px;border-bottom:1px solid #dae4ee;margin-bottom:12px}#pf-summary strong{flex-basis:100%;font-size:14px}.pf-layout{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(330px,1fr);gap:18px}.pf-chart-scroll{max-height:calc(100dvh - 300px);min-height:160px;overflow:auto;padding-right:3px}.pf-lanes{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px}.pf-lane h3{background:#eceff2;padding:6px;border-radius:3px;text-align:center;margin:0 0 6px}.pf-process{display:block!important;text-align:left;width:100%;white-space:normal!important;background:#fff;border:1px solid #c8d7e7;color:#153858;margin-bottom:7px;padding:8px!important;border-radius:5px}.pf-process[aria-pressed=true]{border:2px solid #0864ec;background:#eef5ff;padding:7px!important}.pf-process strong,.pf-process small,.pf-process span,.pf-process em{display:block;overflow-wrap:anywhere}.pf-process strong{font-size:12px;line-height:1.35}.pf-process small{font-size:9px;color:#6c8096;margin-top:3px}.pf-process span{font-size:10px;color:#0764d9;margin-top:4px}.pf-process em{font-size:9px;font-style:normal;color:#64768b;margin-top:3px}.pf-arrow{text-align:center;color:#7890a5;font-size:15px;height:15px;margin-top:-6px}.pf-entry-head{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:11px;color:#0864d9;margin-bottom:7px}.pf-entry-head>div{display:flex;gap:4px}#pf-editor{border:1px solid #d4e0ec;border-radius:6px;padding:12px;min-width:0;align-self:start}#pf-editor .pf-editor-scroll{max-height:calc(100dvh - 420px);min-height:260px;overflow:auto;padding-right:5px}#pf-editor fieldset{border:0;padding:0;margin:0;min-width:0}.pf-worker{display:flex;align-items:center;gap:5px;margin-bottom:5px}.pf-worker>span{font-size:10px;color:#6c8096;width:12px;flex:none}.pf-worker-scroll{max-height:212px;overflow:auto}.pf-desk .pd-table{width:100%!important;table-layout:fixed;min-width:0!important;border-collapse:collapse}.pf-desk .pd-table th{background:#eceff2!important;font-size:11px;padding:5px!important}.pf-desk .pd-table td{padding:3px!important}.pf-desk .pd-table th:last-child{width:68px}.pf-desk .pd-table input{text-align:right}.pf-rejection-scroll{max-height:249px;overflow:auto}.pf-quantities{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:10px}.pf-quantities input{font-size:16px!important;text-align:right}.pf-quantities input[readonly]{background:#f0f3f6}.pf-times{font-size:11px;margin:7px 0}.pf-times>div{display:grid;grid-template-columns:1fr 1fr 90px;gap:6px;margin-top:7px}.pf-empty{font-size:13px;color:#6c8096;padding:35px 10px;text-align:center}#pf-save{width:100%;font-size:12px;margin-top:2px}#pf-result[data-error=true]{color:#b11624}.pf-desk :disabled{cursor:default}.pf-desk fieldset:disabled input,.pf-desk fieldset:disabled select,.pf-desk fieldset:disabled textarea{background:#f4f6f8}.pf-desk [hidden]{display:none!important}

@media(max-width:900px){.pf-layout{grid-template-columns:1fr}.pf-chart-scroll{max-height:330px}#pf-editor .pf-editor-scroll{max-height:none}.pf-selectors{flex-wrap:wrap}.pf-tools{margin-left:0}.pf-desk{padding:12px!important}}



.pf-worker-excess{background:#fff0f0;border-radius:4px;padding:2px}.pf-worker-excess>span{color:#b11624}
.production-fg-id{display:inline!important;font-size:7pt!important;font-weight:400;line-height:1.2;white-space:normal;overflow-wrap:anywhere}.pf-plan-picker .production-fg-id{font-size:8pt!important}
.pf-plan-picker{display:block;position:relative;width:100%}.pf-desk .pf-plan-native{position:absolute!important;width:1px!important;height:1px!important;opacity:0;pointer-events:none;padding:0!important;border:0!important}
.pf-desk #pf-plan-toggle{display:block;width:100%;height:31px;min-height:31px;text-align:left;font-size:12px;padding:4px 23px 4px 7px;background:#245e9d;color:#fff;border:1px solid #cad9e9;border-radius:4px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;position:relative}.pf-desk #pf-plan-toggle:after{content:'⌄';position:absolute;right:7px;top:6px}.pf-desk #pf-plan-toggle:disabled{background:#f4f6f8;color:#7b8794}
.pf-desk #pf-plan-options{position:fixed;z-index:10040;display:block;overflow:auto;background:#245e9d;border:1px solid #cad9e9;border-radius:4px;padding:3px;box-shadow:0 4px 15px #1234}.pf-desk #pf-plan-options button{display:block;width:100%;text-align:left;border:0;background:transparent;color:white;font-size:12px;padding:7px;white-space:normal}.pf-desk #pf-plan-options button:hover,.pf-desk #pf-plan-options button:focus-visible,.pf-desk #pf-plan-options [aria-selected=true]{background:#18497f}


@media(min-width:1200px){.pf-entry-columns{display:grid;grid-template-columns:minmax(150px,.9fr) minmax(200px,1.1fr);gap:12px}.pf-desk .pf-rejects h3{margin-top:0}.pf-desk #pf-summary strong{flex-basis:auto}.pf-desk #pf-summary{align-items:center}.pf-desk #pf-editor .pf-editor-scroll{max-height:calc(100dvh - 480px)}.pf-desk #pf-editor{padding:10px}.pf-desk .pf-entry-head{margin-bottom:4px}.pf-desk .pf-entry-head button{padding:4px 7px}.pf-desk .pf-selectors .field{margin-bottom:3px}}
@media(min-width:901px){#pf-editor{max-height:calc(100dvh - 260px);display:flex;flex-direction:column;box-sizing:border-box}#pf-editor .pf-editor-scroll{flex:1;min-height:120px}#pf-editor .pf-entry-head,#pf-editor>h2,#pf-editor>.field,#pf-editor>.pf-help,#pf-save{flex-shrink:0}.pf-desk #pf-summary{padding-bottom:8px;margin-bottom:10px}.pf-chart-scroll{max-height:calc(100dvh - 280px)}}

.pf-footer{margin:8px 0 0 auto;width:calc((100% - 18px)/2.2);min-width:330px}.pf-footer #pf-dirty:empty,.pf-footer #pf-result:empty{display:none}.pf-footer #pf-save{margin:0}@media(min-width:901px){.pf-desk #pf-editor{max-height:calc(100dvh - 300px)}.pf-desk #pf-editor .pf-editor-scroll{max-height:calc(100dvh - 450px)}}@media(max-width:900px){.pf-footer{width:100%;min-width:0}}

/* Five readable worker rows; preserve room for attendance names and recorded times. */
.pf-desk .pf-worker-scroll{min-height:180px;max-height:216px;overflow-y:auto}.pf-desk .pf-worker{height:32px;margin-bottom:4px}.pf-desk .pf-worker select{height:32px!important;font-size:12px!important}.pf-desk #pf-editor{max-height:none}.pf-desk #pf-editor .pf-editor-scroll{min-height:370px;max-height:max(370px,calc(100dvh - 390px));flex:initial}.pf-desk .pf-help{overflow-wrap:normal;white-space:normal}
@media(min-width:1200px){.pf-layout{grid-template-columns:minmax(0,.6fr) minmax(570px,1fr)}.pf-entry-columns{grid-template-columns:minmax(300px,1.4fr) minmax(190px,.9fr)}.pf-footer{width:calc((100% - 18px)/1.6)}}
@media(min-width:901px) and (max-width:1199px){.pf-layout{grid-template-columns:1fr}.pf-entry-columns{display:grid;grid-template-columns:minmax(300px,1.4fr) minmax(190px,.9fr);gap:14px}.pf-chart-scroll{max-height:250px}.pf-footer{width:100%}}
@media(max-width:900px){.pf-desk #pf-editor .pf-editor-scroll{max-height:none;min-height:0}.pf-desk .pf-worker-scroll{min-height:180px}.pf-tools{flex-wrap:wrap}}

/* Show actual attendance names and times directly, rather than empty worker slots. */
.pf-desk .pf-entry-columns{display:block}.pf-desk .pf-worker-scroll{min-height:250px;max-height:294px;overflow:auto}.pf-desk .pf-attendance-table th:first-child{width:42px}.pf-desk .pf-attendance-table th:nth-child(3){width:75px}.pf-desk .pf-attendance-table th:last-child{width:100px}.pf-desk .pf-attendance-table td{font-size:12px;vertical-align:middle;height:42px;padding:5px!important}.pf-desk .pf-attendance-table input[type=checkbox]{width:18px!important;height:18px!important;padding:0!important}.pf-attendance-table td:nth-child(2) strong,.pf-attendance-table td:nth-child(2) span,.pf-attendance-table small{display:block;line-height:16px;overflow-wrap:anywhere}.pf-attendance-table td:nth-child(2) strong{font-size:10px;color:#64798e}.pf-attendance-unavailable small{color:#b11624}.pf-desk .pf-attendance-table thead{position:sticky;top:0;z-index:1}.pf-desk .pf-rejects{margin-top:14px}.pf-desk #pf-editor .pf-editor-scroll{min-height:430px;max-height:max(430px,calc(100dvh - 330px))}.pf-desk .pf-attendance-empty{color:#8a5300}
@media(max-width:900px){.pf-desk #pf-editor .pf-editor-scroll{min-height:0;max-height:none}.pf-desk .pf-attendance-table th:nth-child(3){width:65px}.pf-desk .pf-attendance-table th:last-child{width:85px}}

/* Saved good output completes a process; keep its pending balance visible. */
.pf-desk .pf-pending{color:#c81e2b;font-weight:600}.pf-desk .pf-pending b{color:#c81e2b;font-size:14px}.pf-desk .pf-process.pf-completed{background:#eceff2;border-color:#c9d0d8;color:#5d6874}.pf-desk .pf-process.pf-completed[aria-pressed=true]{border-color:#7b8794;background:#e5e9ed}.pf-desk .pf-complete-label{color:#5d6874;font-weight:600}

.pf-desk .pf-worker-fieldset{margin:0;padding:0;border:0}.pf-desk #pf-cycle{background:#f0f3f6}

.pf-desk .pf-process .pf-totals{font-size:11px;font-weight:400;line-height:1.45;color:#52677c}

/* Review is readable; editing inputs have clear blue outlines. */
.pf-desk #pf-editor.pf-review .pf-editor-scroll{color:#626262}
.pf-desk #pf-editor.pf-review :is(input,select,textarea):disabled{color:#626262;-webkit-text-fill-color:#626262;opacity:1;background:#f4f6f8}
.pf-desk #pf-editor.pf-editing :is(input,select,textarea):not(:disabled):not([readonly]){color:#111;border:2px solid #2769ad;background:#f3f8ff}
.pf-desk #pf-editor.pf-editing :is(input,select,textarea):focus{outline:2px solid #145ab4;outline-offset:1px}
.pf-desk .pf-quantities{grid-template-columns:repeat(3,minmax(0,1fr))}
.pf-desk #pf-pending-qty{color:#c81e2b;font-weight:700}

.pf-desk #pf-editor.pf-review .pf-attendance-table tbody :is(td,strong,span){color:#626262}
.pf-desk #pf-editor.pf-editing .pf-attendance-table tbody :is(td,strong,span){color:#111}

/* Fill the full adjacent form height instead of ending the chart halfway down. */
@media(min-width:1200px){
 .pf-desk .pf-layout{align-items:stretch}
 .pf-desk #pf-chart{display:flex;flex-direction:column;min-height:calc(100dvh - 280px)}
 .pf-desk #pf-chart>h2,.pf-desk #pf-chart>.pf-help{flex-shrink:0}
 .pf-desk .pf-chart-scroll{height:0;flex:1 1 0;min-height:160px;max-height:none}
}

/* Compact worker allocations: blue entry cells, neutral calculated balances. */
.pf-desk{padding:10px!important}.pf-desk .pf-layout{gap:10px}.pf-desk .pf-selectors{gap:8px}.pf-desk #pf-summary{padding:5px 0;margin-bottom:7px}.pf-desk #pf-editor{padding:8px}.pf-desk .pf-help{margin:3px 0 5px}.pf-desk .pf-field{margin-bottom:4px}.pf-desk #pf-editor .pf-editor-scroll{min-height:0;max-height:calc(100dvh - 345px)}
.pf-desk .pf-people{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:3px 8px}.pf-desk .pf-people>:nth-child(n+4){grid-column:1/-1}.pf-desk .pf-worker-scroll{min-height:0;max-height:260px;overflow:auto}.pf-desk .pf-attendance-table{min-width:1040px!important;width:100%!important}.pf-desk .pf-attendance-table th:first-child{width:28px}.pf-desk .pf-attendance-table th:nth-child(2){width:175px}.pf-desk .pf-attendance-table th:nth-child(3),.pf-desk .pf-attendance-table th:nth-child(4),.pf-desk .pf-attendance-table th:nth-child(5){width:72px}.pf-desk .pf-attendance-table th:nth-child(6){width:56px}.pf-desk .pf-attendance-table th:nth-child(7){width:125px}.pf-desk .pf-attendance-table th:nth-child(8),.pf-desk .pf-attendance-table th:nth-child(9){width:76px}.pf-desk .pf-attendance-table th:last-child{width:180px}.pf-desk .pf-attendance-table td{height:auto;padding:3px!important;font-size:12px}.pf-desk .pf-attendance-table td:nth-child(n+8){background:#f0f3f7;font-variant-numeric:tabular-nums}.pf-desk .pf-attendance-table input{text-align:left}.pf-desk .pf-attendance-table td:nth-child(2) span{font-size:12px}.pf-desk .pf-attendance-table td small{font-size:10px;line-height:13px}.pf-desk .pf-attendance-table th{white-space:normal}.pf-desk #pf-editor.pf-editing :is(input,select,textarea):not(:disabled):not([readonly]):not([type=checkbox]){background:#205f9f;color:#fff;border:1px solid #164e89}.pf-desk #pf-editor.pf-editing :is(input,textarea)::placeholder{color:#d4e5f9}.pf-desk #pf-editor.pf-editing select option{background:#205f9f;color:#fff}.pf-desk .pf-time-error td[data-pf-slots]{color:#b11624;font-weight:600}.pf-desk .pf-times>div{gap:5px;margin-top:4px}.pf-desk .pf-rejects{margin-top:7px}.pf-desk .pf-quantities{gap:6px;margin-top:7px}.pf-desk .pf-quantities input{font-size:14px!important}.pf-desk .pf-footer{margin-top:6px}.pf-desk #pf-editor .pf-attendance-table td input[type=checkbox]{accent-color:#205f9f}
@media(min-width:1200px){.pf-desk .pf-layout{grid-template-columns:minmax(230px,.55fr) minmax(0,1fr)}.pf-desk .pf-footer{width:calc((100% - 10px)/1.55)}}
@media(max-width:900px){.pf-desk #pf-editor .pf-editor-scroll{max-height:none}.pf-desk .pf-people{grid-template-columns:1fr 1fr}.pf-desk .pf-people>:nth-child(3){grid-column:1/-1}}
@media(pointer:coarse){.pf-desk input,.pf-desk select,.pf-desk textarea{min-height:40px!important;font-size:16px!important}.pf-desk .pf-attendance-table input[type=checkbox]{min-height:24px!important}.pf-desk button{min-height:40px}}
.pf-desk .pf-attendance-table th:nth-child(2){width:150px}.pf-desk .pf-attendance-table th:nth-child(5){width:56px}.pf-desk .pf-attendance-table th:nth-child(6),.pf-desk .pf-attendance-table th:nth-child(7){width:72px}.pf-desk .pf-attendance-table th:nth-child(8){width:120px}.pf-desk .pf-attendance-table th:nth-child(9){width:72px}.pf-desk .pf-attendance-table td:nth-child(n+8){background:transparent}.pf-desk .pf-attendance-table td[data-pf-net],.pf-desk .pf-attendance-table td[data-pf-available],.pf-desk .pf-attendance-table td[data-pf-slots]{background:#f0f3f7}.pf-desk .pf-attendance-table th:nth-child(7),.pf-desk .pf-attendance-table td[data-pf-available]{font-weight:600;color:#165da0}
.pf-desk .pf-attendance-table td:nth-child(2) strong,.pf-desk .pf-attendance-table td:nth-child(2) span{display:inline}.pf-desk .pf-attendance-table td:nth-child(2) strong{margin-right:4px}

/* The right form uses page scrolling; the left chart keeps its own position. */
.pf-desk .pf-layout{align-items:start}
.pf-desk #pf-editor{max-height:none!important;display:block}
.pf-desk #pf-editor .pf-editor-scroll{height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;padding-right:0}
.pf-desk .pf-worker-scroll,.pf-desk .pf-rejection-scroll{min-height:0!important;max-height:none!important;overflow-x:auto}
@media(min-width:1200px){
 .pf-desk #pf-chart{position:sticky;top:12px;align-self:start;height:calc(100dvh - 24px);min-height:0;max-height:calc(100dvh - 24px);display:flex;flex-direction:column}
 .pf-desk .pf-chart-scroll{height:auto;flex:1 1 0;min-height:100px;max-height:none;overflow:auto;overscroll-behavior:contain}
}

/* Per-worker free time lives directly below the two time inputs. */
.pf-desk .pf-attendance-table{min-width:960px!important}.pf-desk .pf-attendance-table th:nth-child(3){width:245px}.pf-desk .pf-attendance-table th:nth-child(4){width:55px}.pf-desk .pf-attendance-table th:nth-child(5),.pf-desk .pf-attendance-table th:nth-child(6){width:65px}.pf-desk .pf-attendance-table th:nth-child(7){width:125px}.pf-desk .pf-attendance-table th:last-child{width:75px}.pf-desk .pf-clock-pair{display:grid;grid-template-columns:1fr 1fr;gap:4px}.pf-desk .pf-clock-pair label{font-size:10px;margin:0}.pf-desk .pf-clock-pair input{width:100%;min-width:0!important}.pf-desk .pf-timeline-ticks{display:flex;justify-content:space-between;font-size:9px;line-height:12px;margin-top:3px}.pf-desk .pf-timeline-bar{display:flex;height:16px;overflow:hidden;border-radius:3px;background:#e7edf5}.pf-desk .pf-timeline-bar>span{overflow:hidden;white-space:nowrap;text-align:center;font-size:9px;line-height:16px;flex-shrink:0;min-width:0}.pf-desk .pf-slot-work{background:#2569ae;color:white}.pf-desk .pf-slot-free{background:#d5edc8;color:#24491c}.pf-desk .pf-slot-selected{background:#368b87;color:white}.pf-desk .pf-slot-break{background:#e1e4e9;color:#536070}.pf-desk .pf-free-choices{display:flex;flex-wrap:wrap;gap:2px;margin-top:2px}.pf-desk .pf-free-choices button{padding:1px 3px!important;font-size:10px!important;line-height:14px;border:1px solid #b3d4a4;background:#edf8e5;color:#225819;min-height:0!important}.pf-desk .pf-booked-caption{display:block;font-size:9px;line-height:12px;color:#365b85;overflow-wrap:anywhere}.pf-desk .pf-slot-caption{font-size:10px;color:#607187}.pf-desk .pf-work-window small[data-pf-slots]{color:#b11624;display:block}.pf-desk .pf-work-window small[data-pf-slots]:empty{display:none}.pf-desk .pf-attendance-table th:nth-child(7){color:inherit;font-weight:inherit}

.pf-desk .pf-attendance-table th:nth-child(6){font-weight:600;color:#165da0}

.pf-desk .pf-timeline-bar{height:18px}.pf-desk .pf-timeline-bar>span{font-size:10px;line-height:18px}.pf-desk .pf-timeline-ticks{font-size:10px}.pf-desk .pf-booked-caption{font-size:10px;line-height:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* Show the complete process flow using normal page scrolling at every size. */
.pf-desk #pf-chart{position:static!important;display:block!important;height:auto!important;min-height:0!important;max-height:none!important}
.pf-desk .pf-chart-scroll{height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;flex:none!important;overscroll-behavior:auto}

/* Keep the selected process and balance context visible over the entry form. */
.pf-desk .pf-process-header{position:sticky;top:0;z-index:5;background:#fff;padding:5px 0;border-bottom:1px solid #d4e0ec}

/* Keep occupied and selected time readable in both review and editing modes. */
.pf-desk #pf-editor .pf-attendance-table tbody .pf-timeline-bar>span.pf-slot-work,.pf-desk #pf-editor .pf-attendance-table tbody .pf-timeline-bar>span.pf-slot-selected{color:#fff;-webkit-text-fill-color:#fff}

/* Process stage colours: completed, in progress, and not started. */
.pf-desk .pf-lane h3{background:#12365b;color:#fff}
.pf-desk .pf-process,.pf-desk .pf-process[aria-pressed=true]{background:#fff;color:#000}
.pf-desk .pf-process.pf-in-progress,.pf-desk .pf-process.pf-in-progress[aria-pressed=true]{background:#b1bdca;color:#000}
.pf-desk .pf-process.pf-zero-pending,.pf-desk .pf-process.pf-zero-pending[aria-pressed=true]{background:#858f9b;color:#000}
.pf-desk .pf-process :is(strong,small,span,em,b){color:#000!important}

/* Keep plan identity above the selected process when the page scrolls. */
.pf-desk #pf-summary{position:sticky;top:0;z-index:6;background:#fff;padding:8px 0;box-shadow:0 2px 3px #00000012}
.pf-desk #pf-summary .pf-plan-quantity,.pf-desk #pf-summary .pf-plan-in-progress{color:#c81e2b}
.pf-desk .pf-process-header{top:var(--pf-summary-height,46px)}

.pf-desk .pf-process .pf-pending b{color:#c81e2b!important;font-weight:700}

/* Station Details controls this marker for every current process box. */
.pf-desk .pf-process .pf-mix-prod{color:#d00000!important;font-size:8pt!important;font-weight:400;text-align:right;line-height:1.2;margin-top:5px}

/* Actual predecessor output still available for this process. */
.pf-desk .pf-process .pf-available{font-size:8pt;color:#000!important;font-weight:400}.pf-desk .pf-process .pf-available b{display:inline;font-size:8pt;color:#c81e2b!important;font-weight:700}

.pf-desk .pf-process .pf-available b.pf-available-zero{color:#000!important}

.pf-mix-prod[role=link]{cursor:pointer;text-decoration:underline}.pf-mix-prod[role=link]:focus-visible{outline:2px solid #165f9d;outline-offset:2px}

/* MIX_PROD station identity stays light yellow in every process state. */
.pf-desk .pf-process.pf-mixed-production,.pf-desk .pf-process.pf-mixed-production[aria-pressed=true]{background:#fff2b3;color:#000}

/* Quantity validation stays beside the existing default-time control. */
.pf-default-times-row{display:flex;align-items:flex-start;gap:12px;flex-wrap:wrap}.pf-default-times-row>.pf-times{flex:1 1 260px}.pf-quantity-warning{color:#c81e2b;font-weight:700;font-size:11px;flex:1 1 300px}.pf-quantity-warning[hidden]{display:none}.pf-warning-blink{animation:pf-quantity-blink .6s ease-in-out 3}@keyframes pf-quantity-blink{0%,100%{opacity:1}50%{opacity:0}}

.pf-desk .pf-process .pf-adjustment{color:#c81e2b!important;font-size:8pt}

.pf-rejection-scroll .pf-rejection-cancel{display:block;font-size:8pt;padding:2px 5px;min-height:22px;margin-top:3px}
/* Align the rejection selector with its quantity input, above the CANCEL button. */
.pf-desk .pf-rejection-scroll .pd-table tbody td{vertical-align:top!important}
.pf-desk .pf-rejection-scroll .pd-table tbody :is(select,input){height:31px!important;margin:0}
/* Approved saved-record palette; EDIT keeps the established blue entry fields. */
.pf-desk #pf-editor.pf-review :is(input:not([type=checkbox]):not([type=radio]),select,textarea){background:#513629!important;border-color:#513629!important;color:#fff!important;-webkit-text-fill-color:#fff!important;opacity:1!important}
.pf-desk #pf-editor.pf-review select option{background:#513629;color:#fff}
.pf-desk #pf-editor.pf-review input[type=checkbox]{accent-color:#513629}
.pf-desk #pf-editor.pf-review .pf-attendance-table tbody .pf-timeline-bar>span:is(.pf-slot-work,.pf-slot-selected){background:#513629;color:#fff!important;-webkit-text-fill-color:#fff}
/* Unused worker rows retain the original review colours. */
.pf-desk #pf-editor.pf-review .pf-attendance-row:not(:has(input[data-pf-attendance]:checked)) :is(input:not([type=checkbox]):not([type=radio]),select,textarea){background:#f4f6f8!important;border-color:#cad9e9!important;color:#626262!important;-webkit-text-fill-color:#626262!important;opacity:1!important}
.pf-desk #pf-editor.pf-review .pf-attendance-row:not(:has(input[data-pf-attendance]:checked)) .pf-timeline-bar>span.pf-slot-work{background:#2569ae}
.pf-desk #pf-editor.pf-review .pf-attendance-row:not(:has(input[data-pf-attendance]:checked)) .pf-timeline-bar>span.pf-slot-selected{background:#368b87}
/* Keep plan identity and its existing red quantity/status on a light blue row. */
.pf-desk #pf-summary{background:#e6f2ff}
/* Focus the complete selected-process entry area with a stronger light blue. */
.pf-desk #pf-editor,.pf-desk #pf-editor .pf-process-header,.pf-desk #pf-editor .pf-editor-scroll{background:#d4e7fa}
.pf-desk #pf-editor .pd-table tbody td{background:#d4e7fa}

/* Keep ordinary panel text readable without changing entry or status colours. */
.pf-desk #pf-editor:is(.pf-review,.pf-editing) .pf-help,
.pf-desk #pf-editor:is(.pf-review,.pf-editing) .pf-editor-scroll,
.pf-desk #pf-editor:is(.pf-review,.pf-editing) .field,
.pf-desk #pf-editor:is(.pf-review,.pf-editing) .pf-clock-pair label,
.pf-desk #pf-editor:is(.pf-review,.pf-editing) .pf-attendance-table tbody :is(td,strong,small),
.pf-desk #pf-editor:is(.pf-review,.pf-editing) .pf-attendance-table td:nth-child(2)>span,
.pf-desk #pf-editor:is(.pf-review,.pf-editing) .pf-timeline-ticks,
.pf-desk #pf-editor:is(.pf-review,.pf-editing) [data-pf-slots],
.pf-desk #pf-editor:is(.pf-review,.pf-editing) .pf-booked-caption{color:#000}
.pf-desk #pf-editor .pf-timeline-bar>span:is(.pf-slot-free,.pf-slot-break){color:#000!important;-webkit-text-fill-color:#000!important}
.pf-desk #pf-editor.pf-review .pf-attendance-row:not(:has(input[data-pf-attendance]:checked)) :is(input:not([type=checkbox]):not([type=radio]),select,textarea){color:#000!important;-webkit-text-fill-color:#000!important}
.pf-desk #pf-editor .pf-free-choices :is(button:disabled,.pf-slot-caption){color:#000;opacity:1}
.pf-desk #pf-editor .pf-attendance-unavailable small,
.pf-desk #pf-editor .pf-time-error [data-pf-slots]{color:#b11624}
.pf-desk #pf-editor input[type=number]{text-align:center!important}

/* Zero-pending process boxes use the approved white, bold lettering. */
.pf-desk .pf-process.pf-zero-pending,
.pf-desk .pf-process.pf-zero-pending :is(strong,small,span,em,b,.pf-available-zero,.pf-mix-prod),
.pf-desk .pf-process.pf-zero-pending .pf-available b.pf-available-zero{color:#fff!important;font-weight:700!important}
.pf-desk .pf-process.pf-zero-pending,
.pf-desk .pf-process.pf-zero-pending[aria-pressed=true]{background:#4b5563}
.pf-desk #pf-editor .pf-mix-warning{color:#d00000;font-weight:700;animation:pf-mix-warning-blink .7s ease-in-out 5}
@keyframes pf-mix-warning-blink{0%,100%{opacity:1}50%{opacity:0}}


/* Only the two requested section-heading undo controls. */
.pf-desk .pf-undo-heading{position:relative;display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0}
.pf-desk .pf-undo-heading>label{margin:0;font:inherit}
.pf-desk .pf-undo-heading>button{position:absolute;right:0;top:50%;transform:translateY(-50%);padding:3px 7px;font-size:11px;line-height:16px;white-space:nowrap}
.pf-desk .pf-saved-updates{font-weight:650}
.pf-desk .pf-saved-updates>select{margin-top:5px}

/* F3: keep the blocked-process warning blinking until its editor is left. */
.pf-availability-warning{color:#c81e2b;font-weight:700;animation:pf-quantity-blink 1.2s ease-in-out infinite}
.pf-availability-warning[hidden]{display:none}
.pf-warning-blink{animation:pf-quantity-blink 1.2s ease-in-out infinite}

/* F3 available balance follows the process title with Pending-sized wording. */
.pf-desk .pf-header-pending{display:inline-block;margin-left:12px;color:#c81e2b;font-size:11px;font-weight:700}
.pf-desk .pf-header-pending b{font-size:14px}
/* Keep the selected identity and actions visible through the full-page Save button. */
.pf-desk #pf-editor .pf-process-header{position:static}
.pf-desk .pf-pinned-process{position:fixed!important;z-index:40;box-sizing:border-box;background:#d3e5f8;border:1px solid #bfd7ef;border-radius:5px;padding:8px;box-shadow:0 3px 8px #092d5020;max-height:36vh;overflow:auto}
.pf-desk .pf-pinned-process[hidden]{display:none!important}
.pf-desk .pf-pinned-process h2{margin:8px 0 0}

/* The work-batch selector may wrap without pushing the existing tools out of view. */
.pf-desk .pf-selectors{flex-wrap:wrap}

.pf-desk #pf-chart .pf-process .pf-rework-box{display:block;margin-top:8px;padding:4px 6px;border:1px solid #bda900;border-radius:3px;background:#fff36a;color:#000!important}
.pf-desk #pf-chart .pf-process .pf-rework-box span{color:#000!important;margin:2px 0}
.pf-desk #pf-chart .pf-process .pf-totals .pf-previous{display:inline;color:#d00000!important;font-size:inherit}
.pf-work-choices{display:flex;flex-direction:column;gap:8px}.pf-work-choices button{white-space:normal;text-align:left}

.pf-desk #pf-chart .pf-process .production-rework-status,.pf-desk #pf-editor .production-rework-status,.pf-desk .pf-pinned-process .production-rework-status{display:inline!important;color:#d00000!important;font-weight:700!important;font-size:inherit}
.pf-desk .pf-continue-actions{display:flex;flex-wrap:wrap;gap:6px;margin:6px 0}.pf-desk .pf-continue-actions .pf-help{flex-basis:100%;margin:0}.pf-desk .pf-continue-actions button{white-space:normal;text-align:left}

/* Saved-record correction review only; ordinary G5 layout remains unchanged. */
.pf-desk .pf-saved-guidance{color:#b91c1c;font-size:11px;margin:4px 0}
#modal:has(#pf-save-review){width:min(1000px,calc(100vw - 32px));max-width:calc(100vw - 32px)}
#pf-save-review .pf-impact-warning{color:#b91c1c;font-weight:700}
#pf-save-review .pf-impact-scroll{overflow:auto;max-height:27vh;margin:8px 0}
#pf-save-review .pf-impact-table{width:100%;border-collapse:collapse;font-size:8pt}
#pf-save-review .pf-impact-table :is(th,td){border:1px solid #bfccd9;padding:5px;text-align:left;vertical-align:top;white-space:normal;overflow-wrap:anywhere}
#pf-save-review .pf-impact-table th{background:#edf4fa}
#pf-save-review .pf-impact-noted{display:flex;gap:8px;align-items:center;font-weight:700;margin-top:12px}
#pf-save-review .pf-impact-noted input{width:auto;min-width:0}

/* G5 PlanningID uses the full available row; long labels remain readable. */
.pf-desk .pf-selectors .pf-plan-field{width:100%!important;max-width:100%;flex:0 0 100%!important}
.pf-desk #pf-plan-toggle{height:auto;min-height:31px;white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;line-height:1.4}
.pf-desk #pf-plan-toggle:after{top:50%;transform:translateY(-50%)}

/* G5 phone presentation only. Desktop selectors and record calculations are unchanged. */
.g5-mobile-menu{display:none}
@media(max-width:700px){
 body:has(.g5-phone-layout) .sidebar{position:static;width:100%;height:auto;min-height:0;padding:8px 12px}
 body:has(.g5-phone-layout) .sidebar .nav{display:none}
 body:has(.g5-phone-layout) .sidebar.g5-menu-open .nav{display:block;max-height:55dvh;overflow:auto;padding:8px 0}
 body:has(.g5-phone-layout) .g5-mobile-menu{display:block;min-height:44px;width:100%;margin:0;background:#153f63;color:#fff;border:1px solid #6e8ea8;text-align:left;font-size:14px;font-weight:600}
 body:has(.g5-phone-layout) .content{padding:12px}
 body:has(.g5-phone-layout) .page-head{gap:8px}
 body:has(.g5-phone-layout) .page-head h1{font-size:22px;line-height:1.25}
 body:has(.g5-phone-layout) .page-head button{min-height:40px;white-space:normal}
 .g5-phone-layout{padding:10px!important;min-width:0}
 .g5-phone-layout .pf-selectors{display:grid;grid-template-columns:minmax(0,1fr);gap:9px}
 .g5-phone-layout .pf-selectors .field{width:100%!important;max-width:none!important;margin:0;min-width:0}
 .g5-phone-layout .pf-tools{display:flex;flex-wrap:wrap;gap:6px;margin:0}
 .g5-phone-layout .pf-tools button{flex:1 1 auto;white-space:normal}
 .g5-phone-layout #pf-summary,.g5-phone-layout .pf-process-header{position:static!important}
 .g5-phone-layout .pf-pinned-process{display:none!important}
 .g5-phone-layout #pf-summary{gap:5px;padding:9px 0;box-shadow:none}
 .g5-phone-layout .pf-layout,.g5-phone-layout .pf-entry-columns,.g5-phone-layout .pf-people{display:grid;grid-template-columns:minmax(0,1fr);gap:10px}
 .g5-phone-layout .pf-people>*{grid-column:1!important;min-width:0}
 .g5-phone-layout #pf-chart{position:static;height:auto!important;max-height:none}
 .g5-phone-layout .pf-chart-scroll{max-height:none;overflow:visible}
 .g5-phone-layout #pf-editor{padding:10px;min-width:0;scroll-margin-top:12px}
 .g5-phone-layout .pf-entry-head{flex-wrap:wrap;gap:6px}
 .g5-phone-layout .pf-entry-head>div{display:flex;flex-wrap:wrap;width:100%;gap:5px}
 .g5-phone-layout .pf-entry-head button{flex:1 1 auto;white-space:normal}
 .g5-phone-layout :is(input,select,textarea):not([type=checkbox]){width:100%;min-width:0!important;max-width:100%;min-height:44px!important;font-size:16px!important;box-sizing:border-box}
 .g5-phone-layout button{min-height:44px;max-width:100%;font-size:13px}
 .g5-phone-layout #pf-plan-toggle{min-height:44px;line-height:1.4}
 .g5-phone-layout .pf-worker-scroll{height:auto;max-height:none;min-height:0;overflow:visible}
 .g5-phone-layout .pf-worker-scroll .sticky-table-scroll,.g5-phone-layout .pf-rejection-scroll .sticky-table-scroll{max-height:none;overflow:visible}
 .g5-phone-layout .pf-attendance-table{display:block;width:100%!important;min-width:0!important;table-layout:auto}
 .g5-phone-layout .pf-attendance-table>colgroup{display:none}
 .g5-phone-layout .pf-attendance-table>thead{display:none!important}
 .g5-phone-layout .pf-attendance-table>tbody{display:grid;gap:10px}
 .g5-phone-layout .pf-attendance-table .pf-attendance-row{position:relative;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;padding:12px;border:1px solid #bfd1e3;border-radius:7px;background:#fff}
 .g5-phone-layout .pf-attendance-table td{display:block;grid-column:1/-1;width:auto!important;max-width:100%;height:auto!important;min-width:0;padding:0!important;border:0;font-size:13px}
 .g5-phone-layout .pf-attendance-table td:first-child{position:absolute;top:12px;left:12px;width:32px!important;min-height:44px}
 .g5-phone-layout .pf-attendance-table td:nth-child(2){padding-left:38px!important;min-height:36px}
 .g5-phone-layout .pf-attendance-table td:nth-child(2) strong{font-size:13px;color:#153858}
 .g5-phone-layout .pf-attendance-table td:nth-child(2) span{font-size:14px;line-height:1.4}
 .g5-phone-layout .pf-attendance-table td small{font-size:11px;line-height:1.4}
 .g5-phone-layout .pf-attendance-table td[data-g5-label]::before{content:attr(data-g5-label);display:block;margin-bottom:5px;font-size:12px;line-height:1.3;font-weight:600;color:#294760}
 .g5-phone-layout .pf-attendance-table td[data-pf-net]{grid-column:1;background:#f0f5fa;padding:8px!important;border-radius:4px}
 .g5-phone-layout .pf-attendance-table td[data-pf-available]{grid-column:2;background:#f0f5fa;padding:8px!important;border-radius:4px}
 .g5-phone-layout .pf-attendance-table input[type=checkbox]{width:24px!important;height:24px!important;min-height:24px!important;margin:0}
 .g5-phone-layout .pf-clock-pair{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px}
 .g5-phone-layout .pf-clock-pair label{font-size:12px}
 .g5-phone-layout .pf-free-choices button{min-height:40px!important;padding:6px!important;font-size:12px!important;white-space:normal}
 .g5-phone-layout .pf-timeline-bar{height:20px}
 .g5-phone-layout .pf-timeline-bar>span{font-size:10px;line-height:20px}
 .g5-phone-layout .pf-quantities,.g5-phone-layout .pf-times>div{grid-template-columns:minmax(0,1fr)}
 .g5-phone-layout .pf-rejects{min-width:0;margin-top:6px}
 .g5-phone-layout .pf-rejection-scroll{overflow:auto}
 .g5-phone-layout .pf-rejects .pd-table th:last-child{width:78px}
 .g5-phone-layout .pf-rejects .pd-table td{min-width:0}
 .g5-phone-layout .pf-undo-heading{flex-wrap:wrap}
 .g5-phone-layout .pf-footer{position:sticky;bottom:0;z-index:8;width:100%!important;margin:8px 0 0;padding:8px 0 max(8px,env(safe-area-inset-bottom));background:#f5f9fc;box-shadow:0 -3px 8px #1232}
 .g5-phone-layout .pf-footer p:empty{display:none}
 .g5-phone-layout #pf-save{min-height:46px;font-size:14px}
}

/* Keep NORMAL/rework selection readable on phones without expanding the page. */
.pf-work-type{min-width:0;margin:8px 0}.pf-work-type select{width:100%;max-width:100%;min-width:0}.pf-pending-breakdown{white-space:normal}

.pf-desk .pf-header-pending .pf-pending-note{display:block;color:#42576f;font-size:11px;font-weight:400;white-space:normal}.pf-desk .pf-process .pf-pending-note{font-weight:400}
.pf-desk #pf-chart .pf-process .pf-totals .pf-completed-split{display:inline}

#page.rework-compact-page .page-head{margin-bottom:8px;gap:8px}
#page.rework-compact-page .page-head h1{font-size:20px;line-height:1.3}
#page.rework-compact-page .page-head button,#page.rework-compact-page .page-head a{font-size:11px;min-height:28px;padding:5px 8px}
#rework-goods{color:#102d4c;padding:0;min-width:0;font-size:14px}
#rework-goods *{box-sizing:border-box}
#rework-goods [hidden]{display:none!important}
#rework-goods .rw-actions{display:flex;gap:6px;flex-wrap:wrap;padding:8px 12px;border-bottom:1px solid #ccdef1}
#rework-goods button{font-size:12px;min-height:28px;padding:5px 10px;margin:0}
#rework-goods label{display:block;min-width:0;font-size:14px;font-weight:400;margin:0;overflow-wrap:anywhere}
#rework-goods input,#rework-goods select{width:100%;min-width:0;max-width:100%;height:28px;min-height:28px;font-size:14px;padding:3px 8px;margin:0;border:1px solid #315896;border-radius:0}
#page #rework-goods input:not([type=checkbox]),#page #rework-goods select{background:#315896!important;color:white!important;-webkit-text-fill-color:white!important;opacity:1}
#rework-goods #rw-form{padding:12px}
#rework-goods .rw-fields{display:grid;grid-template-columns:140px minmax(0,480px);grid-auto-rows:minmax(28px,auto);gap:4px 8px;align-items:center;margin:0}
#rework-goods .rw-context-gap{height:20px}
#rework-goods .rw-process-area{margin-top:16px;width:510px;max-width:100%}
#rework-goods .rw-section{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin:0}
#rework-goods h2{font-size:14px;font-style:italic;font-weight:400;margin:0;line-height:20px}
#rework-goods .rw-lines{width:100%;table-layout:fixed;border-collapse:collapse;font-size:13px}
#rework-goods .rw-lines th{background:#e5f1fd;text-align:center;padding:2px 4px;border:1px solid #102d4c;overflow-wrap:anywhere;font-size:13px;height:26px;line-height:18px}
#rework-goods .rw-lines td{padding:3px;border:1px solid #ccdef1;vertical-align:middle}
#rework-goods .rw-lines th:first-child{width:45px;text-align:center}
#rework-goods .rw-lines th:last-child{width:38%}
#rework-goods .rw-lines input,#rework-goods .rw-lines select{height:26px;min-height:26px;font-size:13px}
#rework-goods .rw-lines td:first-child{text-align:center;color:#617e9b}
#rework-goods .rw-process-caption{font-size:13px;line-height:1.3;white-space:normal;overflow-wrap:anywhere;margin-top:3px;color:#102d4c}
#rework-goods .rw-process-caption:empty{display:none}
#rework-goods [data-rw-qty]{text-align:right;font-variant-numeric:tabular-nums}
#rework-goods .rw-line-actions{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;margin-top:6px}
#rework-goods .rw-line-actions button{min-height:26px}
#rework-goods #rw-status{margin:0;padding:0 12px 8px;min-height:0;font-size:12px}
#rework-goods .rw-error{color:#a31b2c}
#rework-goods .rw-report{margin:8px 12px 12px;border-top:1px solid #ccdef1;padding-top:10px;min-width:0}
#rework-goods .rw-report-tools{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-bottom:6px}
#rework-goods .rw-report-tools h2{font-style:normal;margin-right:auto}
#rework-goods #rw-report-status{font-size:12px;margin:4px 0 6px}
#rework-goods .rw-report-grid{width:100%;max-width:100%;overflow-x:auto}
#rework-goods .rw-report-table{width:100%;min-width:1745px;border-collapse:collapse;table-layout:fixed}
#rework-goods .rw-report-table th,#rework-goods .rw-report-table td{font-size:8pt!important;line-height:1.2;padding:3px 4px!important;vertical-align:top;border:1px solid #ccdef1;overflow-wrap:anywhere}
#rework-goods .rw-report-table th{background:#e5f1fd;text-align:left}
#rework-goods .rw-report-table .aq-filter{font-size:8pt;min-height:16px;padding:0 3px;margin-left:3px;line-height:1}
#rework-goods .rw-report .sj-filter-menu{font-size:12px}
#rework-goods .rw-picker{padding:12px;background:#f1f7fe;border-bottom:1px solid #ccdef1;display:flex;align-items:flex-end;gap:8px;flex-wrap:wrap}
#rework-goods .rw-picker label{flex:1;min-width:0}
#rework-goods .rw-plan-wrap{position:relative;min-width:0;width:100%}
#rework-goods #rw-plan-trigger{width:100%;height:28px;min-height:28px;border:1px solid #315896;border-radius:0;background:#315896;color:white;padding:3px 8px;display:flex;align-items:center;justify-content:space-between;gap:4px;text-align:left;font-size:14px}
#rework-goods #rw-plan-caption{min-width:0;overflow-wrap:anywhere}
#rework-goods .rw-plan-menu{position:absolute;left:0;right:0;top:calc(100% + 2px);z-index:30;background:white;border:1px solid #acc5df;max-height:min(360px,60vh);overflow-y:auto;overscroll-behavior:contain}
#rework-goods .rw-plan-columns{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1.45fr);gap:6px;text-align:left;overflow-wrap:anywhere}
#rework-goods .rw-plan-head{padding:6px;background:#e5f1fd;font-size:11px;font-weight:700}
#rework-goods .rw-plan-option{width:100%;border:0;border-radius:0;background:#315896;color:white;font-size:11px;padding:8px 6px}
#rework-goods .rw-plan-option:hover,#rework-goods .rw-plan-option:focus-visible{background:#23497d}
#rework-goods .rw-plan-option small{display:block;font-size:11px;margin-top:3px}
@media(max-width:520px){#rework-goods .rw-fields{grid-template-columns:110px minmax(0,1fr);gap:4px 6px;grid-auto-rows:minmax(32px,auto)}#rework-goods label{font-size:12px}#rework-goods input,#rework-goods select,#rework-goods #rw-plan-trigger{font-size:14px;height:30px;min-height:30px}#rework-goods .rw-plan-columns{grid-template-columns:1fr;gap:5px}#rework-goods .rw-plan-head{display:none}#rework-goods .rw-plan-option span::before{content:attr(data-label);display:block;font-size:11px;color:#d4e5ff}#rework-goods .rw-lines th:first-child{width:35px}#rework-goods .rw-lines th:last-child{width:43%}#rework-goods .rw-picker label{flex-basis:100%}}
@media(pointer:coarse){#rework-goods button,#rework-goods input,#rework-goods select,#rework-goods #rw-plan-trigger,#page.rework-compact-page .page-head button,#page.rework-compact-page .page-head a{min-height:44px;height:auto}#rework-goods .rw-fields{grid-auto-rows:minmax(44px,auto)}#rework-goods input,#rework-goods select,#rework-goods #rw-plan-trigger{font-size:16px}#rework-goods .rw-report-table .aq-filter{min-height:44px;min-width:44px;font-size:12px}}

#rework-goods .rw-plan-field{position:relative;min-width:0;width:100%}
#rework-goods .rw-plan-link{position:absolute;left:calc(100% + 8px);top:50%;transform:translateY(-50%);color:#c51d2d!important;font-size:11px;font-weight:600;white-space:nowrap;text-decoration:underline}
#rework-goods .rw-plan-link[aria-disabled=true]{pointer-events:none}
@media(max-width:760px){#rework-goods .rw-plan-link{position:static;display:inline-block;transform:none;margin-top:4px}}
@media(pointer:coarse){#rework-goods .rw-plan-link{min-height:44px;min-width:44px;display:inline-flex;align-items:center}}

/* Approved wide G4 page; table layout preferences stay on this form only. */
#rework-goods #rw-form{padding:14px}
#rework-goods .rw-header-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 14px}
#rework-goods .rw-field{display:flex;flex-direction:column;gap:5px;min-width:0}
#rework-goods .rw-field label{font-size:12px;font-weight:600}
#rework-goods .rw-component-field{grid-column:span 2}
#rework-goods .rw-context-summary{display:grid;grid-template-columns:minmax(0,1fr) 155px 135px auto;gap:12px;align-items:center;margin-top:14px;padding:12px 0;border-top:1px solid #ccdef1;border-bottom:1px solid #ccdef1}
#rework-goods .rw-context-summary label{font-size:11px;font-weight:400;color:#617e9b}
#page #rework-goods .rw-context-summary input[readonly]{height:28px;background:transparent!important;color:#102d4c!important;-webkit-text-fill-color:#102d4c!important;border:0;padding:0;font-size:13px;min-width:0}
#rework-goods .rw-context-summary .rw-plan-link{position:static;transform:none;font-size:12px;white-space:nowrap}
#rework-goods .rw-process-area{width:100%;margin-top:17px}
#rework-goods .rw-section h2{font-style:normal;font-weight:600}
#rework-goods .rw-column-hint{font-size:11px;color:#617e9b;margin:5px 0 9px;text-align:right}
#rework-goods .rw-lines-scroll{max-width:100%;width:100%;overflow-x:auto}
#rework-goods .rw-lines{min-width:690px;table-layout:fixed!important}
#rework-goods .rw-lines th{padding:8px;vertical-align:top;text-align:left;font-size:12px;height:auto;line-height:1.35}
#rework-goods .rw-lines th small{display:block;font-size:11px;font-weight:400;color:#617e9b;margin-top:4px;line-height:1.25}
#rework-goods .rw-lines th:first-child,#rework-goods .rw-lines th:last-child{width:auto}
#rework-goods .rw-lines th:last-child{text-align:right}
#rework-goods .rw-lines td{padding:8px;vertical-align:top;overflow-wrap:anywhere;height:auto}
#rework-goods .rw-lines td:first-child{padding-top:14px}
#rework-goods .rw-lines input[data-rw-qty]{height:32px;min-height:32px;font-size:14px}
#rework-goods .rw-process-trigger{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;text-align:left;width:100%;min-width:0;min-height:74px;height:auto!important;max-height:none;white-space:normal;border:1px solid #315896;border-radius:3px;background:#315896;color:white;padding:8px;font-size:13px;line-height:1.35}
#rework-goods .rw-process-trigger:disabled{opacity:1}
#rework-goods .rw-process-value{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 6px;min-width:0;width:100%}
#rework-goods .rw-sequence{display:inline-block;white-space:nowrap;padding:1px 4px;border:1px solid #adc8e4;border-radius:2px;font-size:11px}
#rework-goods .rw-process-code{overflow-wrap:anywhere;flex:1 1 150px;min-width:0;font-size:12px}
#rework-goods .rw-process-desc{display:block;width:100%;overflow-wrap:anywhere;margin-top:3px;font-size:12px}
#rework-goods .rw-process-menu{position:fixed;z-index:110;max-height:320px;overflow:auto;background:white;border:1px solid #acc5df;border-radius:4px;box-shadow:0 7px 22px #102d4c30;color:#102d4c}
#rework-goods .rw-menu-heading{padding:8px;font-size:11px;color:#617e9b;border-bottom:1px solid #ccdef1}
#rework-goods .rw-process-menu [role=option]{display:block;min-width:0;white-space:normal;width:100%;text-align:left;padding:10px 8px;border:0;border-bottom:1px solid #ccdef1;border-radius:0;background:white;color:#102d4c;font-size:12px;line-height:1.35}
#rework-goods .rw-process-menu [role=option]:hover,#rework-goods .rw-process-menu [role=option]:focus-visible,#rework-goods .rw-process-menu [aria-selected=true]{background:#e5f1fd}
#rework-goods .rw-entry-footer{border-top:1px solid #ccdef1;padding:12px 14px;display:flex;align-items:center;justify-content:space-between;gap:12px}
#rework-goods .rw-entry-footer #rw-status{padding:0}
#rework-goods .rw-mobile-label{display:none;font-size:12px;font-weight:600;margin-bottom:5px}
#rework-goods .rw-report-table{min-width:2100px}
@media(max-width:1000px){#rework-goods .rw-header-grid{grid-template-columns:repeat(2,minmax(0,1fr))}#rework-goods .rw-component-field{grid-column:span 1}#rework-goods .rw-context-summary{grid-template-columns:minmax(0,1fr) minmax(100px,1fr)}#rework-goods .rw-product-field{grid-column:span 2}}
@media(max-width:640px){#rework-goods .rw-header-grid{grid-template-columns:minmax(0,1fr)}#rework-goods .rw-lines{display:block;width:100%!important;min-width:0!important}#rework-goods .rw-lines colgroup,#rework-goods .rw-lines thead{display:none}#rework-goods .rw-lines tbody{display:block}#rework-goods .rw-lines tr{display:grid;grid-template-columns:28px minmax(0,1fr);border:1px solid #ccdef1;margin-bottom:10px}#rework-goods .rw-lines td{display:block;min-width:0;border:0;width:auto!important}#rework-goods .rw-lines td:nth-child(1){grid-column:1;grid-row:1 / span 3}#rework-goods .rw-lines td:nth-child(2){grid-column:2;grid-row:1}#rework-goods .rw-lines td:nth-child(3){grid-column:2;grid-row:2}#rework-goods .rw-lines td:nth-child(4){grid-column:2;grid-row:3}#rework-goods .rw-mobile-label{display:block}#rework-goods .rw-lines input[data-rw-qty]{max-width:130px}#rework-goods .rw-column-hint{text-align:left}#rework-goods .rw-process-trigger{min-height:64px}}
@media(pointer:coarse){#rework-goods .rw-process-trigger,#rework-goods .rw-process-menu [role=option]{min-height:44px}#rework-goods .rw-lines input[data-rw-qty]{min-height:44px;font-size:16px}}

/* The existing column bar anchors before this panel, at the finished-goods area. */
#rework-goods .rw-process-panel{overflow:visible}
#rework-goods #rw-form>.ui-table-visibility{margin:10px 0 4px}
#rework-goods .rw-context-summary{margin-top:0;padding:5px 0;gap:6px 12px;border-top:0}
#rework-goods .rw-process-area{margin-top:6px}
#rework-goods .rw-section{margin:0 0 4px;gap:6px 12px;align-items:baseline}
#rework-goods .rw-section h2{font-size:14px;line-height:1.3;margin:0}
#rework-goods .rw-column-hint{margin:0;text-align:left}
@media(min-width:1200px){
 #rework-goods .rw-context-summary{grid-template-columns:minmax(0,1fr) auto auto auto}
 #rework-goods .rw-context-summary .rw-field{flex-direction:row;gap:6px;align-items:center}
 #rework-goods .rw-context-summary label{white-space:nowrap;flex:0 0 auto}
 #page #rework-goods .rw-context-summary input[readonly]{height:26px;margin:0;width:8ch;flex:0 0 auto}
 #page #rework-goods .rw-context-summary .rw-product-field input{width:100%;flex:1 1 0}
 #page #rework-goods .rw-context-summary #rw-plan-start{width:13ch}
}

/* Screenshot-aligned compact header: three rows left, two rows right. */
#rework-goods .rw-header-grid{grid-template-columns:minmax(310px,5fr) minmax(0,7fr);gap:0 clamp(20px,4vw,72px);align-items:start}
#rework-goods .rw-header-group{display:grid;gap:4px;min-width:0;align-content:start}
#rework-goods .rw-header-grid .rw-field{flex-direction:row;align-items:center;gap:8px;min-width:0}
#rework-goods .rw-header-grid .rw-field>label{flex:0 0 102px;margin:0}
#rework-goods .rw-header-grid .rw-field>input,#rework-goods .rw-header-grid .rw-field>select,#rework-goods .rw-header-grid .rw-plan-field{flex:1 1 0;width:0;min-width:0}
#rework-goods .rw-header-grid .rw-component-field{grid-column:auto}
#page #rework-goods .rw-process-trigger,#page #rework-goods .rw-lines input[data-rw-qty]{background:#fff!important;color:#102d4c!important;-webkit-text-fill-color:#102d4c!important;font-weight:400}
#rework-goods .rw-process-code,#rework-goods .rw-sequence{font-weight:700}
#rework-goods .rw-process-desc{font-weight:400}
@media(max-width:1000px){#rework-goods .rw-header-grid{grid-template-columns:minmax(0,1fr);gap:4px}}
@media(max-width:640px){
 #rework-goods .rw-header-grid .rw-field{flex-direction:column;align-items:stretch;gap:4px}
 #rework-goods .rw-header-grid .rw-field>label{flex-basis:auto}
 #rework-goods .rw-header-grid .rw-field>input,#rework-goods .rw-header-grid .rw-field>select,#rework-goods .rw-header-grid .rw-plan-field{width:100%;flex:none}
}

.inventory-entry .inventory-modes{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:20px}
.inventory-entry .inventory-top-tools{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:20px}
.inventory-entry .inventory-top-tools .inventory-modes{margin-bottom:0}
.inventory-entry .inventory-excel-tools{display:flex;gap:10px;flex-wrap:wrap}
.inventory-entry .inventory-header{display:flex;gap:24px;flex-wrap:wrap;align-items:end;margin-bottom:18px}
.inventory-entry .inventory-header .field{min-width:150px}
.inventory-entry .inventory-entry-table{border-collapse:collapse;min-width:650px}
.inventory-entry-table th{background:#dfe3e8;color:#253c53;border:1px solid #b8c2cc;font-size:14px;font-weight:600}
.inventory-entry-table td{border:1px solid #d3d9df;font-size:14px}
.inventory-entry-table tbody tr:nth-child(even){background:#f2f2f2}
.inventory-entry-table tbody tr.inventory-selected{background:#a8d0ef}
.inventory-entry-table td input{width:130px;min-width:100px;text-align:right;background:transparent}
.inventory-entry-table .inventory-number{text-align:right;font-variant-numeric:tabular-nums}
.main .inventory-entry table.inventory-entry-table th:nth-child(3){background:#ffe08a;color:#614200}
.main .inventory-entry table.inventory-entry-table td:nth-child(3){background:#fff8db}
.main .inventory-entry table.inventory-entry-table td:nth-child(3) input:not(:disabled){background:#fffdf5;border:1px solid #ba850d;border-radius:3px;min-height:25px}
.main .inventory-entry table.inventory-entry-table td:nth-child(3) input:focus{background:#fff;border:2px solid #a66b00;outline:1px solid #a66b00}
.main .inventory-entry table.inventory-entry-table th:nth-child(4){background:#cfe3ff;color:#173e70}
.main .inventory-entry table.inventory-entry-table td:nth-child(4){background:#edf5ff}
.main .inventory-entry table.inventory-entry-table th:nth-child(5){background:#ccebdd;color:#155438}
.main .inventory-entry table.inventory-entry-table td:nth-child(5){background:#edf9f2}
.main .inventory-entry table.inventory-entry-table th:nth-child(6){background:#e3d5f6;color:#51327c}
.main .inventory-entry table.inventory-entry-table td:nth-child(6){background:#f6f0fc}
.main .inventory-entry table.inventory-entry-table th:nth-child(n+4),.main .inventory-entry table.inventory-entry-table td:nth-child(n+4){padding-left:10px;padding-right:10px}
.main .inventory-entry table.inventory-entry-table th:nth-child(4),.main .inventory-entry table.inventory-entry-table td:nth-child(4){border-left:8px solid #fff}
.inventory-entry{--inventory-pin-height:180px}.inventory-entry .inventory-entry-pin{position:sticky;top:0;z-index:35;background:#fff;padding:8px 0;border-bottom:1px solid #d4e0ea}.inventory-entry-pin .inventory-top-tools,.inventory-entry-pin .inventory-header,.inventory-entry-pin .inventory-record-tools{margin-bottom:8px}.inventory-entry-pin .inventory-modes{gap:7px}.inventory-entry #inventoryentrygrid{position:sticky;top:var(--inventory-pin-height);z-index:15;background:#fff}.inventory-entry #inventoryentrygrid>.table-wrap{max-height:max(180px,calc(100vh - var(--inventory-pin-height) - 50px));overflow:auto}.inventory-entry [data-inventory-filtered]{display:none!important}.inventory-entry-filter-tools{display:flex;gap:10px;align-items:center;margin:6px 0}.inventory-entry-filter-tools button{font-size:12px;padding:5px 9px}.inventory-entry .inventory-entry-table th{vertical-align:middle}.inventory-entry-filter-menu{font-size:13px}.inventory-entry-filter-menu button,.inventory-entry-filter-menu input,.inventory-entry-filter-menu select{font-size:13px}.inventory-entry-filter-menu input[type=checkbox]{width:17px!important;min-height:17px!important}.inventory-entry-filter-menu .column-filter-values{max-height:150px;overflow:auto}.inventory-entry .inventory-entry-table th .aq-filter{margin-left:6px;padding:2px 6px}.inventory-entry-filter-menu[hidden]{display:none!important}@media print{.inventory-entry .inventory-entry-pin,.inventory-entry #inventoryentrygrid{position:static}.inventory-entry #inventoryentrygrid>.table-wrap{max-height:none;overflow:visible}.inventory-entry-filter-tools,.inventory-entry-filter-menu,.inventory-entry .aq-filter{display:none}}@media(max-width:650px){.inventory-entry .inventory-entry-pin{padding:5px 0}.inventory-entry-filter-menu input,.inventory-entry-filter-menu select{font-size:16px}}
#app .inventory-entry table.inventory-entry-table>thead{top:var(--inventory-table-head-offset,0px)!important}
.inventory-entry #inventoryentrygrid{position:relative;top:auto}

/* Foreground only: preserve the existing entry and stock-cell backgrounds. */
.negative-figure,
html body :is(#app,#modal,#toast,.aq-menu) .negative-figure{
 color:#d81526!important;
 -webkit-text-fill-color:#d81526!important;
}

.purchase-followup .purchase-order-actions{display:flex;gap:9px;flex-wrap:wrap;margin:20px 0 10px}.purchase-followup #pofexport{margin-left:auto}.purchase-followup .access-datasheet{min-width:920px}.purchase-followup .access-datasheet th:first-child{width:38px}.purchase-followup .access-datasheet th:nth-child(2){width:42px}.purchase-followup .access-datasheet th:nth-child(3){width:150px}.purchase-followup .access-datasheet th:nth-child(4){width:240px}.purchase-followup .access-datasheet th:nth-child(5){width:150px}.purchase-followup .access-datasheet th:nth-child(6){width:90px}.purchase-followup .access-datasheet th:nth-child(7){width:240px}.purchase-followup .access-datasheet th:nth-child(8){width:180px}.purchase-followup .access-datasheet input:not([type=checkbox]),.purchase-followup .access-datasheet textarea,.purchase-followup .access-datasheet select{width:100%;box-sizing:border-box}.purchase-followup .purchase-order-entry,.purchase-followup .purchase-order-entry input,.purchase-followup .purchase-order-entry textarea,.purchase-followup .purchase-order-entry select{background:#fff3bf!important}.purchase-followup [data-field=qty]{text-align:right}.purchase-followup .access-datasheet td{vertical-align:top}.purchase-followup .access-datasheet input[type=checkbox]{min-height:0;width:18px;height:18px}#pofundo{margin-left:5px}

.purchase-plan-summary{display:flex;gap:20px;flex-wrap:wrap;align-items:flex-start}.purchase-plan-summary>div{display:flex;flex-direction:column;gap:6px}.purchase-plan-summary strong{font-size:14px}.purchase-plan-summary output{display:block;color:#11254a;font-size:16px;min-height:24px;overflow-wrap:anywhere}
/* Approved B2 compact requisition; planning context stays visible while scrolling. */
#purchasefollowup .purchase-plan-sticky{position:sticky;top:0;z-index:30;background:#e4f0fc;border-bottom:1px solid #b8cfe5;padding:9px 12px;margin:-19px -19px 0;gap:16px;align-items:end;flex-wrap:nowrap;box-shadow:0 2px 3px #10284610}
#purchasefollowup .purchase-plan-sticky>.field{flex:0 0 175px;min-width:0;margin:0;font-size:11px}
#purchasefollowup .purchase-plan-summary{flex:1;min-width:0;gap:16px;flex-wrap:nowrap}
#purchasefollowup .purchase-plan-summary>div:first-child{flex:1;min-width:0}
#purchasefollowup .purchase-plan-summary>div:last-child{flex:0 0 90px}
#purchasefollowup .purchase-plan-summary>div{gap:3px}
#purchasefollowup .purchase-plan-summary strong{font-size:11px}
#purchasefollowup .purchase-plan-summary output{font-size:13px;min-height:28px;padding-top:4px}
#purchasefollowup #pofplan{font-size:11px;min-height:28px;height:28px;padding:4px 7px;width:100%}
#purchasefollowup .requisition-details{margin:0;padding:11px 0 9px;border-top:0;border-bottom:0}
#purchasefollowup .requisition-details h3{font-size:14px;margin:0 0 8px}
#purchasefollowup .requisition-fields{grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1.65fr) minmax(0,1fr);gap:10px}
#purchasefollowup .requisition-details .field{font-size:11px;margin:0;min-width:0}
#purchasefollowup .requisition-details input,#purchasefollowup .requisition-details select,#purchasefollowup .requisition-details textarea{font-size:11px;min-width:0;min-height:28px;height:28px;padding:4px 7px;max-width:100%}
#purchasefollowup .requisition-details>.field{display:grid;grid-template-columns:132px minmax(0,1fr);gap:6px;align-items:center;margin-top:7px}
#purchasefollowup .requisition-details textarea{resize:vertical}
#purchasefollowup .purchase-order-actions{margin:0 0 8px;padding-top:8px;gap:5px;border-top:1px solid #e1e9f2}
#purchasefollowup .purchase-order-actions button{font-size:10px;padding:7px 9px}
@media(max-width:700px){#purchasefollowup .purchase-plan-sticky{flex-wrap:wrap;margin:-14px -14px 0;gap:8px}#purchasefollowup .purchase-plan-sticky>.field{flex-basis:140px}#purchasefollowup .purchase-plan-summary{flex-wrap:wrap;gap:8px}#purchasefollowup .purchase-plan-summary>div:first-child{min-width:140px}#purchasefollowup .requisition-fields{grid-template-columns:repeat(2,minmax(0,1fr))}#purchasefollowup .requisition-details>.field{display:flex}}
@media print{#purchasefollowup .purchase-plan-sticky{position:static;box-shadow:none}}
.purchase-followup .requisition-details{border-top:1px solid #cbd9e6;border-bottom:1px solid #cbd9e6;padding:12px 0;margin:12px 0}.purchase-followup .requisition-details h3{font-size:16px;margin:0 0 10px}.purchase-followup .requisition-fields{display:grid;grid-template-columns:1fr 1fr 1.3fr 1fr;gap:12px}.purchase-followup .requisition-details .field{min-width:0;margin:0 0 8px}.purchase-followup .requisition-details input,.purchase-followup .requisition-details select,.purchase-followup .requisition-details textarea{width:100%;box-sizing:border-box;background:#fff;color:#111;border:1px solid #aaa}.purchase-followup .requisition-details textarea{min-height:48px}.purchase-followup #pofreqid{background:#fff3bf!important;color:#111}.purchase-followup .purchase-order-actions{margin-top:12px}.purchase-followup #pofprint{white-space:normal}@media(max-width:800px){.purchase-followup .requisition-fields{grid-template-columns:1fr 1fr}}@media(max-width:480px){.purchase-followup .requisition-fields{grid-template-columns:1fr}}

#purchasefollowup .pof-plan-field{position:relative;flex:0 1 290px;min-width:180px}#purchasefollowup #pofplan[hidden],#purchasefollowup #pof-plan-options[hidden]{display:none!important}#pof-plan-toggle{width:100%;min-height:28px;padding:4px 7px;text-align:left;background:#235f9b;color:white;border:1px solid #235f9b;border-radius:3px;font-size:11px}#pof-plan-toggle::after{content:" \25be";float:right}#pof-plan-toggle small,#pof-plan-options small{font-size:8px!important;font-weight:400;margin-left:5px;white-space:nowrap}#pof-plan-options{position:absolute;top:100%;left:0;z-index:80;min-width:100%;width:max-content;max-width:min(440px,80vw);max-height:min(300px,45vh);overflow:auto;padding:4px;background:white;border:1px solid #acc7e0;box-shadow:0 3px 10px #16314a30}#pof-plan-options button{display:block;width:100%;padding:7px 8px;text-align:left;font-size:11px;white-space:nowrap;border:0}#pof-plan-options button:focus,#pof-plan-options button:hover{background:#e4f0fc}#purchasefollowup .pof-plan-field>span{display:block;margin-bottom:5px}@media(max-width:800px){#purchasefollowup .purchase-plan-sticky{flex-wrap:wrap}#purchasefollowup .purchase-plan-summary{flex-basis:100%}}
#purchasefollowup .purchase-plan-sticky>.pof-plan-field{flex:0 1 280px!important;min-width:240px!important;width:280px!important}#purchasefollowup .purchase-plan-sticky>.field:has(#pofsection){flex:0 0 100px!important;min-width:100px!important}#pof-plan-toggle{white-space:nowrap}

.attendance-management .attendance-grid-toolbar{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-start;margin-bottom:14px}.attendance-management .ag-table{min-width:900px;width:100%;table-layout:fixed;border-collapse:collapse}.attendance-management .ag-table th,.attendance-management .ag-table td{border:1px solid #cad7e4;padding:4px;vertical-align:top;overflow-wrap:anywhere}.attendance-management .ag-table th{background:#e5e7eb;color:#132b48;font-size:11px}.attendance-management .ag-job-heading{text-align:center;vertical-align:middle}.attendance-management .ag-table .aq-filter{float:right}.attendance-management .ag-row-pick{display:flex;align-items:center;gap:7px;font-weight:normal}.attendance-management .ag-row-pick input{height:16px;min-height:0;width:16px;margin:0;flex-shrink:0}.attendance-management .ag-table input:not([type=checkbox]),.attendance-management .ag-table select,.attendance-management .ag-table textarea{width:100%;min-width:0;box-sizing:border-box}.attendance-management .ag-editing,.attendance-management .ag-editing input,.attendance-management .ag-editing select,.attendance-management .ag-editing textarea{background:#e8f4ff}.attendance-management .ag-station-label{display:block;font-size:11px;margin-top:7px;font-weight:normal}.attendance-management .ag-station-label select{font-size:12px;min-height:28px}.attendance-management .ag-table td{font-size:12px;line-height:1.25}

h1.attendance-records-title{font-size:22px;color:#000000;letter-spacing:0}

.attendance-management .ag-table .aq-filter{width:18px;min-width:18px;height:22px;min-height:22px;padding:0;margin:0 0 0 2px;font-size:10px}.attendance-management .ag-table th{line-height:1.2}.attendance-management .ag-row-pick{gap:4px;white-space:normal}.attendance-management .ag-table input:not([type=checkbox]),.attendance-management .ag-table select,.attendance-management .ag-table textarea{font-size:12px;min-height:28px;padding:3px}.attendance-management .ag-table textarea{resize:vertical}

.main .attendance-management table.ag-table{width:100%;min-width:900px;table-layout:fixed}.main .attendance-management table.ag-table th{white-space:normal;padding:4px;font-size:11px}.main .attendance-management table.ag-table td{padding:3px 4px;font-size:12px;height:28px}

.attendance-management .ag-row-pick span{min-width:0;overflow-wrap:anywhere}

.attendance-management .ag-row-pick input[type=checkbox]{width:14px;min-width:14px;max-width:14px;flex:0 0 14px;height:14px;padding:0}

.attendance-management .ag-row-pick span{white-space:nowrap;overflow-wrap:normal}

/* Keep the same compact geometry while entering attendance. */
.main .attendance-management table.ag-table td{height:34px;padding:2px 4px;vertical-align:middle;white-space:nowrap;overflow:hidden}
.attendance-management .ag-table input:not([type=checkbox]),.attendance-management .ag-table select,.attendance-management .ag-table textarea{height:28px;min-height:28px;max-height:28px;margin:0;padding:3px;line-height:20px;border-radius:3px}
.attendance-management .ag-table textarea{resize:none;overflow:auto;white-space:nowrap}
.attendance-management .ag-auto-name{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:28px}
.attendance-management .ag-table [data-ag-field]:focus{outline:2px solid #4c9de8;outline-offset:-2px}

/* Compact attendance list: shared count/column toolbar, fixed header, fitting cells. */
.attendance-management #ag-table-meta{display:flex;align-items:center;justify-content:space-between;gap:6px;flex-wrap:wrap;margin:4px 0}
.attendance-management #ag-status{margin:0;font-size:11px}
.attendance-management #ag-table-meta .ui-table-visibility{margin:0;gap:4px}
.attendance-management #ag-table-meta .ui-table-visibility button{font-size:11px;padding:4px 7px}
.attendance-management .attendance-grid-toolbar{margin-bottom:4px}
.attendance-management .ag-instructions{font-size:11px;margin:2px 0 4px}
.attendance-management .ag-instructions summary{cursor:pointer;color:#0869ef}
.attendance-management #ag-grid>.table-wrap{max-height:65vh;overflow:auto;position:relative}
.main .attendance-management table.ag-table{min-width:0;width:100%;table-layout:fixed;border-collapse:separate;border-spacing:0}
.main .attendance-management table.ag-table th{position:sticky;top:0;z-index:3;background:#e5e7eb;padding:4px;font-size:10px;border-top:1px solid #cad7e4;white-space:normal}
.main .attendance-management table.ag-table td{font-size:11px;white-space:normal;overflow-wrap:anywhere;height:auto;min-height:28px;padding:3px 4px;line-height:1.25}
.attendance-management .ag-auto-name{white-space:normal;overflow-wrap:anywhere;line-height:1.25;overflow:visible;text-overflow:clip}
.attendance-management .ag-table input:not([type=checkbox]),.attendance-management .ag-table select,.attendance-management .ag-table textarea{font-size:11px;max-width:100%;min-width:0}
.attendance-management .ag-table textarea{white-space:normal}
@media(max-width:800px){.main .attendance-management table.ag-table{min-width:900px}}

.attendance-management .attendance-grid-toolbar{align-items:end}.attendance-management .ag-period{display:flex;flex-direction:column;gap:3px;font-size:8pt;min-width:100px}.attendance-management .ag-period select{font-size:8pt;min-height:30px;padding:4px;max-width:140px}

/* Approved610: larger, single-line attendance values and editable controls. */
#attendance-management .ag-table :is(th,td,input,select,textarea,span,label,button){font-size:12px!important}

.attendance-management .ag-totals{display:flex;gap:18px;flex-wrap:wrap;color:#173f65;font-size:11px;margin:5px 0}.attendance-management .ag-totals b{font-size:14px}.attendance-management #ag-date{font-size:8pt;min-height:30px;padding:4px}

/* Approved G2 source list: normal-sized results outside the clipped grid. */
#attendance-management .ag-employee-wrap{display:flex;min-width:0;align-items:center}
#attendance-management .ag-employee-wrap input[data-ag-employee-input]{flex:1;min-width:0;border-radius:3px 0 0 3px}
#attendance-management .ag-employee-wrap button[data-ag-employee-open]{flex:0 0 20px;width:20px;height:28px;min-height:28px;padding:0;border-radius:0 3px 3px 0;background:#245f9d;color:#fff;border:1px solid #245f9d}
.ag-employee-source{position:fixed;inset:auto;margin:0;padding:0;background:#fff;color:#142e4b;border:1px solid #bfd1e4;border-radius:4px;box-shadow:0 4px 12px #132b4830;z-index:2200;font:12px/1.4 'Segoe UI',Arial,sans-serif;box-sizing:border-box;overflow:hidden}
.ag-employee-source[hidden]{display:none!important}
.ag-employee-count{padding:6px 9px;color:#526b85;background:#edf5fc;border-bottom:1px solid #cad7e4;font-size:11px}
.ag-employee-options{overflow:auto;overscroll-behavior:contain}
.ag-employee-option{display:grid;grid-template-columns:minmax(72px,30%) minmax(0,1fr);gap:8px;width:100%;border:0;border-bottom:1px solid #e2ebf4;border-radius:0;background:#fff;color:#142e4b;text-align:left;padding:9px;font:12px/1.4 'Segoe UI',Arial,sans-serif;white-space:normal;overflow-wrap:anywhere}
.ag-employee-option strong{font-weight:650}.ag-employee-option:hover,.ag-employee-option:focus{background:#deecf8}.ag-employee-empty{margin:0;padding:12px;color:#526b85}
@media(pointer:coarse){.ag-employee-option{min-height:44px}}

/* G2 only: fit all eleven columns; resizing never changes attendance data. */
#attendance-management .ag-table{width:100%!important;min-width:0!important;max-width:100%;table-layout:fixed}
#attendance-management #ag-grid>.table-wrap{overflow-x:hidden;max-width:100%;scrollbar-gutter:stable}
#attendance-management .ag-table th{height:58px;vertical-align:top;padding:4px 3px;overflow:hidden}
#attendance-management .ag-table .ag-heading-caption{display:block;min-height:27px;padding-right:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:11px!important;line-height:1.15}
#attendance-management .ag-table th .aq-filter{font-size:10px!important;margin-top:2px;float:right}
#attendance-management .ag-table td{height:28px;white-space:nowrap!important;overflow:hidden;text-overflow:ellipsis;overflow-wrap:normal!important;padding:3px;line-height:18px;vertical-align:middle}
#attendance-management .ag-table .ag-cell-text,#attendance-management .ag-table .ag-auto-name{display:block;min-width:0;white-space:nowrap;overflow-wrap:normal;overflow:hidden;text-overflow:ellipsis;line-height:20px}
#attendance-management .ag-table .ag-row-pick{display:flex;align-items:center;min-width:0;max-width:100%;white-space:nowrap}
#attendance-management .ag-table .ag-row-pick span{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#attendance-management .ag-table .ag-column-resize{position:absolute;inset:0 0 0 auto;width:8px;min-width:8px;height:100%;min-height:0;max-height:none;padding:0;margin:0;border:0;border-radius:0;background:transparent;font-size:0!important;cursor:col-resize;touch-action:none;z-index:5;box-shadow:none}
#attendance-management .ag-table .ag-column-resize::after{content:'';position:absolute;inset:0 1px 0 auto;width:1px;background:#b3c6da}
#attendance-management .ag-table .ag-column-resize:hover::after,#attendance-management .ag-table .ag-column-resize:focus-visible::after{width:3px;background:#245f9d}
#attendance-management .ag-table input:not([type=checkbox]),#attendance-management .ag-table select{padding:3px;white-space:nowrap}
.ag-cell-details{position:fixed;inset:auto;margin:0;padding:10px 12px;max-width:calc(100vw - 24px);max-height:calc(100vh - 24px);overflow:auto;overflow-wrap:anywhere;border:1px solid #86add5;border-radius:4px;background:#fff;color:#142e4b;box-shadow:0 4px 14px #132b4830;z-index:2300;font:12px/1.4 'Segoe UI',Arial,sans-serif}
.ag-cell-details[hidden]{display:none!important}

/* Visible G2 reminder; animation needs no timer, data read or attendance write. */
#attendance-management .ag-hours-reminder{color:#d00000;margin:6px 0;font-size:12px;line-height:1.4;animation:ag-hours-reminder-blink 2s steps(1,end) infinite}
@keyframes ag-hours-reminder-blink{0%,100%{opacity:1}50%{opacity:.45}}
@media(prefers-reduced-motion:reduce){#attendance-management .ag-hours-reminder{animation:none}}

#production-qr-preview .pqr-controls{display:flex;align-items:flex-end;gap:8px;flex-wrap:wrap;margin-bottom:10px}
#production-qr-preview .pqr-controls .field{flex:0 1 220px;min-width:150px}
#production-qr-preview .pqr-controls select{width:100%}
#production-qr-preview .pqr-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,280px));gap:16px}
#production-qr-preview .pqr-card{border:1px solid #b9cfe2;border-radius:6px;padding:14px;text-align:center;background:#fff;break-inside:avoid;color:#102c4a}
#production-qr-preview .pqr-card h2{margin:0 0 3px;font-size:21px;overflow-wrap:anywhere}
#production-qr-preview .pqr-section{font-weight:600;margin:0;font-size:12px}
#production-qr-preview .pqr-name{font-size:12px;margin:3px 0 0;overflow-wrap:anywhere}
#production-qr-preview .pqr-image{margin:8px auto;background:#fff;width:196px;max-width:100%;aspect-ratio:1}
#production-qr-preview .pqr-image svg{display:block;width:100%;height:100%;background:#fff}
#production-qr-preview .pqr-purpose{display:block;font-size:13px}
#production-qr-preview .pqr-help{font-size:11px;line-height:1.4;margin:5px 0 10px}
#production-qr-preview .pqr-open{font-size:11px}
@media(max-width:600px){#production-qr-preview{padding:12px}#production-qr-preview .pqr-grid{grid-template-columns:1fr}#production-qr-preview .pqr-controls .field{flex:1 1 100%}}
@media print{
 body:has(#production-qr-preview) .sidebar,body:has(#production-qr-preview) .topbar,body:has(#production-qr-preview) .top-actions,body:has(#production-qr-preview) .program-footer,body:has(#production-qr-preview) #toast{display:none!important}
 body:has(#production-qr-preview) .main{margin:0!important}
 body:has(#production-qr-preview) .content{padding:0!important;max-width:none}
 body:has(#production-qr-preview) .page-head p,#production-qr-preview .pqr-controls,#production-qr-preview #pqr-status,#production-qr-preview .pqr-open{display:none!important}
 #production-qr-preview{border:0;padding:0;margin:0}
 #production-qr-preview .pqr-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12mm}
 #production-qr-preview .pqr-card{border:1px solid #777;box-shadow:none;border-radius:0}
 #production-qr-preview .pqr-image{width:45mm}
}

.dpr-report .dpr-scroll{max-height:60vh;overflow:auto}.dpr-report .dpr-table{border-collapse:collapse;min-width:0;width:max-content;table-layout:auto}.dpr-report .dpr-table th{position:sticky;top:0;background:#e5e7eb;color:#102e50;z-index:1;white-space:normal;padding:4px 5px;font-size:12px;line-height:14px;overflow:visible;text-overflow:clip}.dpr-report .dpr-table td{padding:3px 5px;vertical-align:top;font-size:12px;line-height:16px;border:1px solid #d5dfeb;white-space:pre}.dpr-report .dpr-number{text-align:right;font-variant-numeric:tabular-nums}.dpr-report .dpr-multiline{white-space:pre}.dpr-report .dpr-heading{display:flex;align-items:center;justify-content:space-between;gap:4px}.dpr-report .dpr-header-label{display:block}.dpr-report .dpr-header-line{display:block;white-space:pre;min-height:14px}.dpr-report .aq-filter{float:none;flex:none;margin:0;padding:2px 3px;min-width:16px}.dpr-report #dpr-values{max-height:200px;overflow:auto}.dpr-report #dpr-values label{white-space:pre-wrap}
/* Freeze through ProcessID Status; later columns scroll normally. */
.dpr-report .dpr-table [data-dpr-frozen]{position:sticky;left:var(--dpr-pin-left,0px);z-index:2;background:#fff}.dpr-report .dpr-table th[data-dpr-frozen]{z-index:3;background:#e5e7eb}.dpr-report .dpr-table [data-dpr-frozen="last"]{box-shadow:2px 0 #9fb8cf}.dpr-report .dpr-table td.dpr-plan-pending{color:#c81e2b;font-weight:700}.dpr-report .dpr-table.user-width-table th,.dpr-report .dpr-table.user-width-table td{overflow:visible;text-overflow:clip}

/* G1 requested paired fields share physical cells; their filters remain distinct. */
.dpr-report .dpr-grouped-table .dpr-paired-heading{min-height:16px}
.dpr-report .dpr-grouped-table .dpr-grouped-cell{white-space:normal;overflow-wrap:anywhere}
.dpr-report .dpr-paired-line{display:block;min-height:16px;line-height:16px;white-space:pre-wrap;overflow-wrap:anywhere}
.dpr-report .dpr-employee-cell .dpr-paired-line{white-space:nowrap}
.dpr-report .dpr-paired-heading .aq-filter{padding:0;width:16px;height:16px;min-height:0;line-height:14px}

/* Requested G1 sentence wrapping and one labelled time line per employee. */
.dpr-report .dpr-table td[data-dpr-key="outstandingWork"]{white-space:pre-wrap;overflow-wrap:anywhere;word-break:normal}
.dpr-report .dpr-time-line{display:block;min-height:16px;line-height:16px;white-space:nowrap}

/* Emphasise identifier values only, including the ID part of employee lines. */
.dpr-report .dpr-table .dpr-id-value{font-weight:700}

/* G1 data starts at the top; only ProcessID and EmpID keep bold emphasis. */
.dpr-report .dpr-table tbody td{vertical-align:top!important}
.dpr-report .dpr-table td.dpr-plan-pending{font-weight:400}

/* G1 requested compact date/time ranges, retaining spaces around the dash. */
.dpr-report .dpr-time-line{white-space:pre}

/* G1 grouped filter values: tick belongs beside the first employee line. */
.dpr-report #dpr-values .aq-choice{align-items:flex-start}

.ews-page{padding:12px!important}.ews-controls{display:flex;align-items:end;gap:8px;flex-wrap:wrap}.ews-controls .field{width:155px!important;min-width:0!important;margin:0;font-size:12px}.ews-controls input,.ews-controls select{width:100%;min-width:0!important;padding:6px 8px;font-size:12px}.ews-controls #ews-toggle{margin-left:auto;font-size:12px;padding:8px 11px}.ews-meta{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin:9px 0;font-size:11px;color:#536d88}.ews-legend{display:flex;gap:10px}.ews-legend>span{display:flex;align-items:center;gap:4px}.ews-legend i{display:inline-block;width:10px;height:10px}.ews-work{background:#2569ae;color:#fff}.ews-work-alt{background:#368b87;color:#fff}.ews-free{background:#d5edc8;color:#24491c}.ews-break{background:#e1e4e9;color:#485561}.ews-outside{background:#f2f4f7;color:#526477}.ews-scroll{max-width:100%;overflow:auto}.ews-workers{width:100%;min-width:850px;table-layout:fixed;border-collapse:collapse}.ews-workers th,.ews-workers td{border:1px solid #d4e0ed;padding:6px!important;vertical-align:top;font-size:12px}.ews-workers th{background:#eaf1f8;font-size:11px;line-height:1.3;vertical-align:middle;white-space:normal}.ews-workers>thead th:first-child{width:120px}.ews-workers>thead th:nth-child(2){width:98px}.ews-workers>thead th:nth-child(3),.ews-workers>thead th:nth-child(4){width:76px}.ews-workers>thead th:nth-child(5),.ews-workers>thead th:nth-child(6){width:75px}.ews-workers>thead th:last-child{width:310px}.ews-person{display:block;border:0;background:transparent;color:#0864c8;font-size:12px;font-weight:700;padding:0;min-height:0;text-align:left;text-decoration:underline;text-underline-offset:2px;overflow-wrap:anywhere}.ews-name{display:block;font-size:11px;color:#536d88;margin-top:3px;overflow-wrap:anywhere}.ews-pair{display:block;line-height:18px}.ews-ticks{display:flex;justify-content:space-between;color:#60758b;font-size:10px;line-height:12px;margin-bottom:2px}.ews-bar{display:flex;height:23px;overflow:hidden;border-radius:3px}.ews-page .ews-bar>.ews-block{padding:0!important;margin:0!important;border:0!important;border-radius:0!important;min-height:0!important;min-width:0!important;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;flex-shrink:0;line-height:23px!important;font-size:10px!important;text-align:center}.ews-page .ews-bar>.ews-work{color:#fff!important;-webkit-text-fill-color:#fff}.ews-free-note{font-size:10px;color:#536d88;margin-top:3px;overflow-wrap:anywhere}.ews-unknown{color:#b21c2c!important}.ews-detail>td{background:#f0f7fc;padding:8px!important}.ews-detail>td>strong{display:block;font-size:12px;margin-bottom:5px}.ews-detail-scroll{overflow:auto}.ews-jobs{width:100%;min-width:680px;table-layout:auto;border-collapse:collapse}.ews-jobs td,.ews-jobs th{font-size:11px;padding:5px!important;background:#fff;overflow-wrap:anywhere}.ews-jobs th{background:#eaf1f8}.ews-foot{font-size:11px;line-height:1.4;margin:8px 0 0}.ews-page [hidden]{display:none!important}@media(max-width:700px){.ews-controls #ews-toggle{margin-left:0}.ews-controls .field{width:145px!important}}@media(pointer:coarse){.ews-person{min-height:44px}.ews-controls input,.ews-controls select{font-size:16px}}

.ews-page .ews-bar>.ews-block.ews-unknown{background:#eceff3;color:#526477!important}

/* Range view keeps dates beside each employee and separate daily timelines. */
.ews-workers{min-width:940px}.ews-workers>thead th:first-child{width:86px}.ews-workers>thead th:nth-child(2){width:120px}.ews-workers>thead th:nth-child(3){width:98px}.ews-workers>thead th:nth-child(4),.ews-workers>thead th:nth-child(5),.ews-workers>thead th:nth-child(6),.ews-workers>thead th:nth-child(7){width:75px}

/* Compact A2 tables; no filter panel or introductory subtitle. */
#page:has(#worker-attendance-overview) .page-head>div:first-child{width:100%;min-width:0;flex:0 0 100%}
#page:has(#worker-attendance-overview) .page-head{gap:8px;margin-bottom:12px;flex-wrap:wrap}
#page .wao-title-line{display:flex;align-items:baseline;gap:12px;flex-wrap:nowrap;width:100%;min-width:0}
#page .wao-title-line h1{font-size:24px;line-height:1.25;letter-spacing:-.5px;margin:0;flex:0 1 auto;min-width:0}
#wao-time{display:flex;flex-wrap:wrap;gap:0 12px;color:#d00016;font-size:13px;line-height:1.4;font-weight:700;flex:0 0 auto}
#wao-time span{white-space:nowrap}
#worker-attendance-overview{font-size:12px;min-width:0}
#worker-attendance-overview .wao-panel{background:#fff;border:1px solid #d9e5f0;border-radius:5px;margin-bottom:12px;overflow:hidden}
#worker-attendance-overview h2{font-size:15px;line-height:1.3;background:#404040;color:#fff;padding:8px 10px;margin:0}
#worker-attendance-overview h3{font-size:12px;line-height:1.3;background:#eaf3ff;padding:4px 9px;margin:0;display:flex;justify-content:space-between;gap:8px;border-bottom:1px solid #d9e5f0}
#worker-attendance-overview h3 span{font-size:11px;font-weight:400;color:#566985}
#worker-attendance-overview .wao-scroll{max-width:100%;overflow:auto}
#worker-attendance-overview table{width:100%;border-collapse:collapse;table-layout:auto!important;margin:0;font-size:8pt;line-height:1.2}
#worker-attendance-overview th,#worker-attendance-overview td{padding:2px 6px!important;vertical-align:top!important;border:1px solid #dfebf5;white-space:nowrap!important;overflow-wrap:normal;height:auto!important;font-size:8pt!important}
#worker-attendance-overview th{line-height:1.2;background:#eaf3ff;color:#102749}
#worker-attendance-overview td{background:#fff}
#worker-attendance-overview table small{display:block;font-size:8pt;color:#586d89;font-weight:400;line-height:1.2;margin-top:2px}
#worker-attendance-overview td>b,#worker-attendance-overview td>span:not(.wao-badge){display:inline}
#worker-attendance-overview .wao-summary{min-width:540px}
#worker-attendance-overview .wao-summary th,#worker-attendance-overview .wao-summary td{border:0!important}
#worker-attendance-overview .wao-summary thead th{background:#fff;font-weight:400}
#worker-attendance-overview .wao-summary thead th:first-child{width:25%;text-align:left}
#worker-attendance-overview .wao-summary thead th:not(:first-child),#worker-attendance-overview .wao-summary .wao-number{text-align:center;font-variant-numeric:tabular-nums;width:25%}
#worker-attendance-overview .wao-summary .wao-column-head>span{flex:1}
#worker-attendance-overview .wao-summary-section th{background:#0070bd;color:#fff;text-align:left;font-weight:700}
#worker-attendance-overview .wao-summary-section .wao-filter-button{color:#fff;margin-left:8px}
#worker-attendance-overview .wao-summary-section .wao-filter-active{background:#174e80}
#worker-attendance-overview .wao-summary-group+.wao-summary-group .wao-summary-section th{border-top:4px solid #fff!important}
#worker-attendance-overview .wao-section-total th,#worker-attendance-overview .wao-section-total td{background:#deedf9;font-weight:700}
#worker-attendance-overview .wao-number{text-align:right;font-variant-numeric:tabular-nums}
#worker-attendance-overview tfoot td,#worker-attendance-overview tfoot th{background:#eaf3ff;font-weight:700}
#worker-attendance-overview .wao-employees{min-width:670px}
#worker-attendance-overview .wao-employees th:nth-child(1){width:21%}
#worker-attendance-overview .wao-employees th:nth-child(2){width:12%}
#worker-attendance-overview .wao-employees th:nth-child(3){width:18%}
#worker-attendance-overview .wao-employees th:nth-child(4){width:20%}
#worker-attendance-overview .wao-employees th:nth-child(5){width:22%}
#worker-attendance-overview .wao-employees th:nth-child(6){width:7%}
#worker-attendance-overview .wao-pair{display:flex!important;justify-content:space-between;gap:6px;white-space:nowrap;font-variant-numeric:tabular-nums}
#worker-attendance-overview .wao-work{display:flex;flex-direction:column;gap:1px}
#worker-attendance-overview .wao-work+.wao-work{margin-top:4px}
#worker-attendance-overview .wao-work small{margin:0}
#worker-attendance-overview .wao-badge{display:inline-block;padding:1px 4px;border-radius:3px;font-size:8pt;line-height:1.2;background:#eaf0f6;color:#324b68}
#worker-attendance-overview .wao-work.wao-badge{background:#e1f3eb;color:#165e4a}
#worker-attendance-overview .wao-none{background:#fff3d7;color:#805400}
#worker-attendance-overview .wao-check{background:#ffebed;color:#b92335}
#worker-attendance-overview .wao-check-note{color:#b92335;font-size:11px}
#worker-attendance-overview .wao-toggle{font-size:8pt!important;padding:0 3px!important;min-height:0!important;height:16px!important;line-height:12px!important;margin:0}
#worker-attendance-overview .wao-expanded td{background:#f1f7ff;padding:6px 9px!important}
#worker-attendance-overview .wao-work-details{display:flex;flex-wrap:wrap;gap:8px 24px;margin-top:4px}
#worker-attendance-overview .wao-muted,#worker-attendance-overview footer{color:#586d89;font-size:11px}
#worker-attendance-overview footer{display:flex;justify-content:space-between;flex-wrap:wrap;gap:4px 12px;padding:7px 9px}
#worker-attendance-overview .wao-empty{padding:16px;margin:0}
#worker-attendance-overview .wao-panel-heading{display:flex;align-items:center;gap:8px;flex-wrap:wrap;background:#404040;color:#fff;padding:5px 9px}
#worker-attendance-overview .wao-panel-heading h2{padding:0;margin-right:auto}
#worker-attendance-overview .wao-panel-heading>button{font-size:10px;padding:3px 5px;line-height:1.2}
#worker-attendance-overview .wao-mode-label{display:flex;align-items:center;gap:5px;font-size:11px;font-weight:700}
#worker-attendance-overview #wao-mode{width:154px;padding:3px 5px;font-size:11px;margin:0;min-width:0;background:#fff;color:#102749}
#worker-attendance-overview .wao-result-count{display:block;font-size:11px;padding:3px 8px;color:#586d89}
#worker-attendance-overview .wao-column-head{display:flex;align-items:flex-start;justify-content:space-between;gap:5px}
#worker-attendance-overview .wao-filter-button{font-size:10px;line-height:1.1;padding:0 2px;border:0;border-radius:2px;background:transparent;min-height:0}
#worker-attendance-overview .wao-filter-active{background:#c8e1ff}
#worker-attendance-overview .wao-filter-menu{position:fixed;z-index:100;width:310px;max-width:calc(100vw - 16px);max-height:calc(100vh - 16px);overflow:auto;background:#fff;border:1px solid #b8cddd;border-radius:5px;box-shadow:0 6px 22px #09294a30;padding:10px;color:#102749;font-size:12px}
#worker-attendance-overview [hidden]{display:none!important}
#worker-attendance-overview .wao-filter-title,#worker-attendance-overview .wao-filter-actions{display:flex;align-items:center;gap:5px;justify-content:space-between;flex-wrap:wrap;margin-bottom:7px}
#worker-attendance-overview .wao-filter-menu button{font-size:11px;line-height:1.2;padding:5px 7px}
#worker-attendance-overview .wao-filter-menu label{display:block;margin-bottom:6px;font-size:12px}
#worker-attendance-overview .wao-filter-menu input:not([type=checkbox]),#worker-attendance-overview .wao-filter-menu select{font-size:12px;padding:5px;margin-top:3px}
#worker-attendance-overview .wao-filter-menu .wao-choice{display:flex;align-items:flex-start;gap:5px;overflow-wrap:anywhere}
#worker-attendance-overview .wao-choice input{width:auto;min-width:0;margin:2px 0 0}
#worker-attendance-overview #wao-values{max-height:135px;overflow:auto;margin-bottom:8px}
@media(max-width:700px){#page .wao-title-line{gap:8px;align-items:flex-start}#page .wao-title-line h1{font-size:18px;flex:1 1 50%}#wao-time{font-size:11px;flex:0 1 45%;gap:2px}}

#worker-attendance-overview h3,#worker-attendance-overview .wao-summary-section th{background:#404040;color:#fff}
#worker-attendance-overview h3 span{color:#fff}
.wao-head-totals{display:flex;flex-wrap:wrap;gap:8px 18px;margin:4px 0 0;font-size:12px;color:#173f65}
.wao-head-totals span{padding:4px 8px;background:#eaf3ff;border:1px solid #c7dced;border-radius:4px}
.wao-head-totals b{font-size:16px;margin-left:5px}

/* Closely spaced summary rows with a light guide across each station. */
#worker-attendance-overview .wao-summary .wao-station-row td,#worker-attendance-overview .wao-summary .wao-section-total th,#worker-attendance-overview .wao-summary .wao-section-total td{padding:1px 6px!important;line-height:1.15}
#worker-attendance-overview .wao-summary .wao-station-row td{border-bottom:1px solid #e5edf5!important}

/* Section attendance totals remain visible while filtering employee details. */
#worker-attendance-overview h3[data-wao-detail-section]{flex-wrap:wrap;align-items:center}
#worker-attendance-overview h3 .wao-section-name{font-size:12px;font-weight:700}
#worker-attendance-overview h3 .wao-section-counts{display:flex;flex-wrap:wrap;gap:4px 16px;align-items:center}
#worker-attendance-overview h3 .wao-section-counts>span{white-space:nowrap}
#worker-attendance-overview h3 .wao-section-shown{opacity:.85}

#worker-attendance-overview .wao-visits{margin:4px 0 8px;padding-left:22px;white-space:normal}
#worker-attendance-overview .wao-visits li{padding:2px 0}
#worker-attendance-overview .wao-scroll{container-type:inline-size}
#worker-attendance-overview .wao-expanded-content{position:sticky;left:0;max-width:100%;width:300px;width:calc(100cqw - 24px);white-space:normal;overflow-wrap:anywhere}

/* A2 PART stays beneath the totals; scoped sizing leaves other controls intact. */
#page .wao-part-label{display:flex;flex-direction:column;gap:3px;width:310px;max-width:100%;margin:6px 0 0;font-size:11px;font-weight:700;color:#173f65}
#page #wao-part{box-sizing:border-box;width:310px;max-width:100%;min-width:0;min-height:30px;height:30px;margin:0;padding:4px 7px;font-size:11px;line-height:1.2;white-space:nowrap;text-overflow:ellipsis}
#worker-attendance-overview .wao-section-picker{display:flex;flex-direction:column;gap:3px;margin-left:auto;font-size:12px;font-weight:700}
#worker-attendance-overview .wao-section-picker select{width:154px;max-width:100%;font-size:12px}
#worker-attendance-overview .wao-extra{min-width:720px}
#worker-attendance-overview .wao-extra td:last-child{white-space:normal!important;min-width:240px;max-width:420px}

/* A3: Production attendance first, then the current I13 department headcount. */
.wao-head-totals{display:flex;flex-direction:column;gap:8px;align-items:flex-start}
.wao-head-totals .wao-metric-row{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;max-width:100%}
.wao-head-totals .wao-population{font-size:14px;color:#102f50;align-self:center}
.wao-head-totals .wao-metric-row>span{white-space:normal;line-height:1.6;padding:6px 10px}
@media(max-width:600px){.wao-head-totals .wao-population{flex:0 0 100%}.wao-head-totals .wao-metric-row{gap:6px}.wao-head-totals .wao-metric-row>span{padding:4px 7px}.wao-head-totals b{font-size:15px}}

.pv-scroll{max-height:55vh;overflow:auto}.pv-table{width:100%;border-collapse:collapse}.pv-table th{background:#e5e7eb;color:#102e50;position:sticky;top:0;padding:8px}.pv-table td{padding:6px}.pv-table select{min-width:210px;width:100%}.pv-table input[type=number]{width:110px}.process-versions-link{color:#0063e6;text-decoration:underline;font-size:12px;white-space:normal}#mastergrid td:has(.process-versions-link){min-width:190px}#mastergrid [hidden]{display:none!important}

.workspace-nav-row{display:flex;align-items:center;gap:3px;min-width:0}.workspace-nav-row>a:first-child,.workspace-category-row>button{flex:1;min-width:0}.nav .workspace-tab-link{flex:none;width:25px;min-width:25px;padding:5px 2px;text-align:center;color:#9cc7ee;font-size:15px;text-decoration:none;border-radius:4px}.nav .workspace-tab-link:hover{background:#214d72;color:#fff}.setup-categories .workspace-nav-row{width:100%}.setup-categories .workspace-tab-link{color:#0869ef;padding:5px;text-decoration:none;font-size:15px}.top-actions #workspace-open-tab{display:inline-flex;align-items:center;text-decoration:none;white-space:nowrap;border:1px solid #dce7f1;border-radius:6px;background:#fff;color:#0869ef;padding:6px 9px;font-size:11px}.top-actions{flex-wrap:wrap}
.nav,.setup-sidebar-tables{overflow-anchor:none}

/* Entry fields are blue; disabled and calculated fields remain neutral. */
:is(#page,#modal) :is(input,select,textarea):enabled:not([readonly]):not([type=checkbox]):not([type=radio]):not([type=file]):not([type=hidden]):not([type=button]):not([type=submit]){background:#205f9f!important;color:#fff!important;-webkit-text-fill-color:#fff!important;border-color:#164e89}
:is(#page,#modal) :is(input,textarea):enabled:not([readonly])::placeholder{color:#d4e5f9!important;-webkit-text-fill-color:#d4e5f9!important;opacity:1}
:is(#page,#modal) select:enabled:not([readonly]) option{background:#205f9f;color:#fff}
:is(#page,#modal) :is(input,select,textarea):is(:disabled,[readonly]){background:#f0f3f7!important}
:is(#page,#modal) input[type=checkbox]{accent-color:#205f9f}
:is(#page,#modal) input[type=date]:enabled::-webkit-calendar-picker-indicator{filter:invert(1)}

.ui-table-visibility{display:flex;align-items:center;gap:5px;flex-wrap:wrap;margin:4px 0}.ui-table-visibility button{padding:3px 7px;font-size:11px}.ui-table-visibility small{color:#506680;font-size:11px}.ui-table-visibility [data-ui-columns]{flex-basis:100%;display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:4px 12px;max-height:190px;overflow:auto;padding:7px;border:1px solid #bccddd;background:#f3f8fd}.ui-table-visibility [data-ui-columns][hidden]{display:none}.ui-table-visibility [data-ui-columns] label{display:flex;align-items:center;gap:5px;font-size:12px;margin:0}.ui-table-visibility [data-ui-columns] input{width:auto;min-width:0;margin:0}[data-ui-column-hidden]{display:none!important}
#daily-productivity-report [data-ui-header-column]{width:16px;min-width:16px;margin:0 4px 0 0;align-self:center;accent-color:#0869ee}#daily-productivity-report [data-ui-header-column][hidden]{display:none}#daily-productivity-report th.ui-column-selected{background:#c9def8!important}#daily-productivity-report [data-ui-hidden-list]{display:flex;gap:5px;flex-wrap:wrap;grid-column:1/-1}#daily-productivity-report .ui-table-visibility [data-ui-columns]>button{justify-self:start}

/* One scrolling viewport per table keeps headings visible on every screen.
   The THEAD moves as a unit, including multi-row headings. Existing frozen
   column left offsets remain intact inside it. */
@media screen{
 .table-wrap,.sticky-table-scroll{max-height:65vh;overflow:auto;position:relative;isolation:isolate}
 .sticky-table-viewport{position:relative;isolation:isolate}
 #app table>thead,#modal table>thead{position:sticky!important;top:0!important;z-index:20!important;background:#edf5fc}
 #app table>thead>tr>th,#modal table>thead>tr>th{position:sticky!important;top:auto!important}
}
@media print{
 .sticky-table-scroll,.table-wrap{max-height:none!important;overflow:visible!important}
 .sticky-table-scroll thead,.table-wrap thead{position:static!important;display:table-header-group}
}

/* G1 only: approved desktop form, exact reported/update fields. */
#complaint-cases.cc-desktop{padding:16px 18px;color:#112d4b}
#complaint-cases .cc-d-toolbar{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:17px}
#complaint-cases .cc-d-toolbar button{font-size:12px;padding:7px 12px}
#complaint-cases .cc-d-columns{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:40px}
#complaint-cases .cc-d-columns>section{min-width:0}
#complaint-cases h2{font:italic 600 16px/1.4 'Segoe UI',Arial,sans-serif;padding:0 0 9px;margin:0 0 17px;border-bottom:1px solid #ced7e0}
#complaint-cases .cc-d-fields{display:grid;grid-template-columns:minmax(115px,.85fr) minmax(0,1.3fr);align-items:center;gap:7px 12px}
#complaint-cases .cc-d-fields label{font-size:12px;font-weight:400;margin:0}
#complaint-cases .cc-d-fields input:not([type=file]),#complaint-cases .cc-d-fields select,#complaint-cases .cc-d-fields textarea{font:13px/1.4 'Segoe UI',Arial,sans-serif;padding:6px 7px;margin:0;border:1px solid #245e9c;border-radius:2px;width:100%;min-width:0;background:#245e9c;color:white;min-height:33px}
#complaint-cases .cc-d-fields select:disabled,#complaint-cases .cc-d-fields input:disabled,#complaint-cases .cc-d-fields textarea:disabled{opacity:1;-webkit-text-fill-color:inherit}
#complaint-cases .cc-d-fields textarea{resize:vertical;min-height:80px}
#complaint-cases .cc-d-fields input[type=file]{max-width:100%;min-width:0;width:100%;font-size:11px;background:#245e9c;color:white;padding:5px;border-radius:2px}
#complaint-cases .cc-d-qc .cc-d-fields{grid-template-columns:minmax(145px,1fr) minmax(0,1fr)}
#complaint-cases .cc-d-qc input:not([type=file]),#complaint-cases .cc-d-qc select,#complaint-cases .cc-d-qc textarea{background:#e0f1dc;color:#000;border-color:#bfd4b9}
#complaint-cases .cc-d-product{margin-top:12px;margin-bottom:9px}
#complaint-cases .cc-d-top{align-self:start;padding-top:6px}
#complaint-cases .cc-d-closed{grid-column:2;display:flex;flex-direction:column;justify-content:space-between;min-height:110px;background:#ffef00;color:#000;padding:10px;margin-top:14px}
#complaint-cases .cc-d-closed strong{color:#d70000;font-size:16px;font-weight:500}
#complaint-cases .cc-d-closed em{font-size:14px;overflow-wrap:anywhere}
#complaint-cases .cc-d-cases{display:flex;gap:5px;margin-bottom:12px}
#complaint-cases .cc-d-cases button{font-size:12px;padding:5px 9px}
#complaint-cases .cc-d-cases [aria-pressed=true]{background:#245e9c;color:#fff}
#complaint-cases .file-list{margin:0 0 4px;gap:5px}
#complaint-cases .file-list img{width:60px;height:40px}
@media(max-width:780px){#complaint-cases .cc-d-columns{gap:20px}#complaint-cases .cc-d-fields,#complaint-cases .cc-d-qc .cc-d-fields{grid-template-columns:minmax(0,1fr);gap:5px}#complaint-cases .cc-d-closed{grid-column:1}}
@media(max-width:480px){#complaint-cases.cc-desktop{padding:10px}#complaint-cases .cc-d-columns{gap:12px}#complaint-cases .cc-d-fields input:not([type=file]),#complaint-cases .cc-d-fields select,#complaint-cases .cc-d-fields textarea{font-size:14px}}

/* Approved G1 colours override the shared neutral-readonly / blue-entry rules. */
#page #complaint-cases.cc-desktop .cc-d-fields :is(input,select,textarea){background:#245e9c!important;color:#fff!important;-webkit-text-fill-color:#fff!important}
#page #complaint-cases.cc-desktop .cc-d-qc .cc-d-fields :is(input,select,textarea),#page #complaint-cases.cc-desktop .cc-d-qc select option{background:#e0f1dc!important;color:#000!important;-webkit-text-fill-color:#000!important}
#page #complaint-cases.cc-desktop .cc-d-qc input[type=date]::-webkit-calendar-picker-indicator{filter:none}
#complaint-history .ch-summary:not([hidden]){display:flex;align-items:center;flex-wrap:wrap;gap:12px 22px;padding:9px 10px;background:#f3f7fb;border:1px solid #d4dfeb;border-radius:5px;font-size:12px}
#complaint-history .ch-summary[hidden]{display:none}
#complaint-history .ch-summary b{margin-left:5px}
#complaint-history .ch-summary small{margin-left:auto}
/* G1: keep page controls together below the account controls while scrolling. */
#page>.page-head.cc-page-header{position:sticky;top:0;z-index:45;display:grid;grid-template-columns:minmax(240px,.9fr) minmax(0,1.3fr);grid-template-rows:auto auto;gap:7px 14px;align-items:start;background:#f2f8fc;margin-bottom:12px;padding:8px 0 10px;border-bottom:1px solid #d7e3ee}
#page>.page-head.cc-page-header>div:first-child{grid-column:1;grid-row:1/3}
#page>.page-head.cc-page-header .top-actions{grid-column:2;grid-row:1;justify-content:flex-end;margin:0;min-width:0;flex-wrap:wrap}
#page>.page-head.cc-page-header .cc-d-toolbar{grid-column:2;grid-row:2;display:flex;flex-wrap:wrap;justify-content:flex-end;gap:7px;margin:0}
#page>.page-head.cc-page-header .cc-d-toolbar button{font-size:12px;padding:7px 12px}
@media(max-width:850px){#page>.page-head.cc-page-header{grid-template-columns:minmax(0,1fr);gap:7px}#page>.page-head.cc-page-header>div:first-child{grid-column:1;grid-row:1}#page>.page-head.cc-page-header .top-actions{grid-column:1;grid-row:2}#page>.page-head.cc-page-header .cc-d-toolbar{grid-column:1;grid-row:3}}
@media print{#page>.page-head.cc-page-header{position:static}#page>.page-head.cc-page-header .cc-d-toolbar{display:none}}

/* Complaint photos are visible immediately and remain separate attachments. */
#complaint-cases .cc-photo-grid{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:8px}
#complaint-cases .cc-photo-preview{display:flex;flex-direction:column;align-items:center;gap:4px;width:260px;max-width:100%;padding:5px;background:#fff;border:1px solid #cbd9e6;border-radius:5px}
#complaint-cases .cc-photo-preview img{width:248px;max-width:100%;height:190px;object-fit:contain;background:#f5f7fa}
#complaint-cases .cc-photo-preview span{font-size:11px;overflow-wrap:anywhere;color:#102447}
#complaint-cases #cc-photo-gallery+input+small{display:block;font-size:11px;margin-top:5px}
#modal .cc-full-photo{display:block;max-width:100%;max-height:75vh;object-fit:contain;margin:10px auto}

#daily-qc-checking{--qc-blue:#1967b8;--qc-line:#d1deea;--qc-ink:#112e4c;color:var(--qc-ink);font-size:14px}#daily-qc-checking *{box-sizing:border-box}#daily-qc-checking .dqc-welcome{background:#0c2d4b;color:#fff;padding:11px 13px;border-radius:7px;margin-bottom:7px}#daily-qc-checking .dqc-welcome strong{display:block;font-size:17px}#daily-qc-checking .dqc-welcome span{display:block;font-size:13px;margin-top:3px;color:#d5e8fc}#daily-qc-checking .dqc-summary{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;font-size:12px;margin:6px 0 9px;color:#566e85}#dqc-counts{display:flex;gap:12px}#dqc-counts b{font-size:15px}#daily-qc-checking .dqc-tabs{display:flex;gap:6px;margin-bottom:10px}#daily-qc-checking button{border-radius:5px}#daily-qc-checking .dqc-tabs button{min-width:130px;min-height:40px}#daily-qc-checking .dqc-workarea.dqc-new-view{display:grid;grid-template-columns:minmax(320px,520px) minmax(0,1fr);gap:15px}#daily-qc-checking #dqc-entry,#daily-qc-checking .dqc-record{background:#fff;border:1px solid var(--qc-line);border-radius:6px;padding:12px;min-width:0}#daily-qc-checking .dqc-form-title,#daily-qc-checking .dqc-record-head{display:flex;justify-content:space-between;gap:8px;margin-bottom:8px}#daily-qc-checking small{font-size:12px;color:#5d7389}#daily-qc-checking label{display:block;font-size:13px;font-weight:600;margin-bottom:8px}#daily-qc-checking input,#daily-qc-checking select,#daily-qc-checking textarea{width:100%;min-width:0;font-size:16px;min-height:44px;padding:8px;margin-top:4px;border-radius:4px}#page #daily-qc-checking :is(input,select,textarea):enabled:not([readonly]):not([type=file]){background:#fff!important;color:var(--qc-ink)!important;-webkit-text-fill-color:var(--qc-ink)!important;border:1px solid #9eb4c9}#page #daily-qc-checking :is(input,textarea)::placeholder{color:#667c93!important;-webkit-text-fill-color:#667c93!important}#page #daily-qc-checking select:enabled option{background:#fff;color:#112e4c}#daily-qc-checking .dqc-location label,#daily-qc-checking .dqc-inline{display:grid;grid-template-columns:86px minmax(0,1fr);gap:7px;align-items:center;margin-bottom:5px}#daily-qc-checking .dqc-location input,#daily-qc-checking .dqc-location select,#daily-qc-checking .dqc-inline input{margin:0}#daily-qc-checking .dqc-location{padding-bottom:5px;margin-bottom:8px;border-bottom:1px solid var(--qc-line)}#daily-qc-checking .dqc-process small{display:block;overflow-wrap:anywhere;margin-top:3px}#daily-qc-checking .dqc-results{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:4px 0 7px}#daily-qc-checking .dqc-results button{min-height:46px;padding:8px}#daily-qc-checking .dqc-pass{color:#1d6944}#daily-qc-checking .dqc-pass.selected{background:#e4f3e9;border-color:#1d6944}#daily-qc-checking .dqc-fail{color:#ae1733}#daily-qc-checking .dqc-fail.selected{background:#ffe9ee;border-color:#ae1733}#daily-qc-checking .dqc-field-label{display:block;font-weight:600;font-size:13px}#daily-qc-checking .dqc-comment{margin:0 0 5px}#daily-qc-checking summary{min-height:44px;padding:10px 0;font-size:13px;color:#1967b8;cursor:pointer}#daily-qc-checking textarea{min-height:70px;resize:vertical}#daily-qc-checking .dqc-full{width:100%;min-height:46px}#daily-qc-checking .dqc-evidence{margin:8px 0}#daily-qc-checking .dqc-evidence input[type=file]{font-size:13px;padding:7px;border:1px solid var(--qc-line)}#daily-qc-checking .dqc-evidence small{display:block;font-size:11px;margin-top:3px}#daily-qc-checking .dqc-files{display:flex;flex-wrap:wrap;gap:7px;margin:5px 0}#daily-qc-checking .dqc-files a{display:flex;align-items:center;gap:4px;font-size:12px;max-width:100%;overflow-wrap:anywhere}#daily-qc-checking .dqc-files img{height:45px;width:60px;object-fit:cover}#daily-qc-checking .dqc-employee{background:#fff2f4;border-left:3px solid #ae1733;padding:8px;margin:7px 0}#daily-qc-checking .dqc-case-note{font-size:12px;color:#ae1733;margin:6px 0}#daily-qc-checking .dqc-record{margin-bottom:9px}#daily-qc-checking .dqc-record>div,#daily-qc-checking .dqc-record p{overflow-wrap:anywhere}#daily-qc-checking .dqc-code{font-weight:600;margin-top:4px}#daily-qc-checking .dqc-record p{font-size:13px;margin:5px 0}#daily-qc-checking .dqc-record>small{display:block}#daily-qc-checking .dqc-record-actions{display:flex;gap:8px;justify-content:space-between;align-items:center;margin:6px 0}#daily-qc-checking .dqc-green{color:#1d6944}#daily-qc-checking .dqc-list-title{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:8px}#daily-qc-checking .dqc-list-title input{max-width:165px;min-height:36px;margin:0;font-size:14px}#dqc-followup{border-top:2px solid #b42b45;margin-top:8px;padding-top:8px}#daily-qc-checking .dqc-follow-head{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:13px;margin-bottom:8px}#daily-qc-checking .dqc-follow-head button{font-size:11px;padding:6px}#daily-qc-checking .dqc-admin{display:flex;gap:7px;margin-top:9px;flex-wrap:wrap}#dqc-message{font-size:13px;margin-top:8px}#dqc-menu-toggle{display:none}#daily-qc-checking [hidden]{display:none!important}
@media(max-width:950px){#daily-qc-checking .dqc-workarea.dqc-new-view{display:block}#daily-qc-checking .dqc-new-view #dqc-records{display:none}#daily-qc-checking #dqc-entry{max-width:600px}}
@media(max-width:700px){body.daily-qc-mode .sidebar{padding:0}body.daily-qc-mode .sidebar .brand{padding:7px 10px;display:flex;flex-direction:row;align-items:center;gap:8px;margin:0}body.daily-qc-mode .sidebar .brand>span{display:none}body.daily-qc-mode .sidebar .brand .logo{width:28px;height:28px;font-size:16px}body.daily-qc-mode .sidebar .brand strong{font-size:12px}body.daily-qc-mode .sidebar .nav{display:none}body.daily-qc-mode.dqc-nav-open .sidebar .nav{display:block}body.daily-qc-mode #dqc-menu-toggle{display:block;margin-left:auto}body.daily-qc-mode .content{padding:8px}body.daily-qc-mode .dqc-page>.page-head{margin-bottom:8px;gap:6px}body.daily-qc-mode .dqc-page>.page-head h1{font-size:18px}body.daily-qc-mode .dqc-page>.page-head p{display:none}body.daily-qc-mode .dqc-page>.page-head .top-actions{gap:4px;flex-wrap:wrap}body.daily-qc-mode .dqc-page #workspace-open-tab,body.daily-qc-mode .dqc-page #globalsearch{display:none}body.daily-qc-mode .dqc-page>.page-head button,body.daily-qc-mode .dqc-page>.page-head .test-label{font-size:11px;padding:5px}#daily-qc-checking .dqc-summary{font-size:11px}#dqc-counts{gap:6px}#daily-qc-checking .dqc-tabs{display:grid;grid-template-columns:1fr 1fr}#daily-qc-checking .dqc-tabs button{min-width:0;min-height:44px}#daily-qc-checking #dqc-entry{padding:9px}#daily-qc-checking .dqc-form-title small{font-size:10px}#daily-qc-checking .dqc-record-actions button{min-height:44px}#daily-qc-checking .dqc-files{gap:5px}}

#daily-qc-checking .dqc-quantities{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}#daily-qc-checking .dqc-quantities label{min-width:0}

#qc-history .toolbar{gap:8px;align-items:end}#qc-history .qh-sections{display:flex;gap:8px;flex-wrap:wrap;max-width:450px}#qc-history .qh-sections label{display:flex;gap:4px;align-items:center;font-size:12px}#qc-history .qh-sections input{width:auto}#qh-grid .table-wrap{max-height:65vh;overflow:auto}#qh-grid th{white-space:normal;min-width:120px;padding:6px;font-size:12px}#qh-grid td{padding:6px;font-size:12px;max-width:300px;overflow-wrap:anywhere}#qh-grid table{width:max-content;min-width:100%}#qh-values{max-height:155px;overflow:auto}
/* G3 title, greeting, counters and tabs stay together above the scrolling form. */
#page>.page-head.dqc-pin{position:sticky;top:0;z-index:45;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 12px;align-items:start;background:#f2f8fc;padding:7px 0 9px;border-bottom:1px solid #d1deea;margin-bottom:10px}
#page>.page-head.dqc-pin>div:first-child{grid-column:1;grid-row:1}
#page>.page-head.dqc-pin>.top-actions{grid-column:2;grid-row:1;justify-content:flex-end;flex-wrap:wrap;min-width:0}
#page>.page-head.dqc-pin .dqc-header-body{grid-column:1/-1;grid-row:2;color:#112e4c;font-size:14px}
.dqc-header-body .dqc-welcome{background:#0c2d4b;color:#fff;padding:11px 13px;border-radius:7px;margin-bottom:7px}.dqc-header-body .dqc-welcome strong{display:block;font-size:17px}.dqc-header-body .dqc-welcome span{display:block;font-size:13px;margin-top:3px;color:#d5e8fc}.dqc-header-body .dqc-summary{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap;font-size:12px;margin:6px 0 9px;color:#566e85}.dqc-header-body .dqc-tabs{display:flex;gap:6px}.dqc-header-body .dqc-tabs button{min-width:130px;min-height:40px}
#daily-qc-checking .dqc-worker-selection{background:#f1f6fb;border-left-color:#1967b8}
#daily-qc-checking .dqc-employee-head{display:flex;align-items:center;justify-content:space-between;gap:6px;font-size:12px;margin-bottom:5px}
#daily-qc-checking .dqc-employee-head button{font-size:11px;padding:5px 8px}
#daily-qc-checking .dqc-employee-row{display:grid;grid-template-columns:16px minmax(85px,110px) minmax(0,1fr) 28px;gap:5px;align-items:center;margin:4px 0;font-size:12px}
#daily-qc-checking .dqc-employee-row input,#daily-qc-checking .dqc-employee-row select{font-size:12px;min-height:31px;padding:5px;margin:0}
#daily-qc-checking .dqc-employee-row button{padding:3px;min-height:29px;font-size:15px}
@media(max-width:850px){#page>.page-head.dqc-pin{grid-template-columns:minmax(0,1fr)}#page>.page-head.dqc-pin>.top-actions{grid-column:1;grid-row:2}#page>.page-head.dqc-pin .dqc-header-body{grid-row:3}}
@media(max-width:700px){.dqc-header-body .dqc-welcome{padding:8px 10px}.dqc-header-body .dqc-welcome strong{font-size:15px}.dqc-header-body .dqc-welcome span{font-size:12px}.dqc-header-body .dqc-summary{font-size:11px;margin:5px 0}.dqc-header-body .dqc-tabs{display:grid;grid-template-columns:1fr 1fr}.dqc-header-body .dqc-tabs button{min-width:0;min-height:44px}#daily-qc-checking .dqc-employee-row{grid-template-columns:12px 100px minmax(0,1fr) 28px;gap:3px}#daily-qc-checking .dqc-employee-row input,#daily-qc-checking .dqc-employee-row select{font-size:16px;min-height:44px}#daily-qc-checking .dqc-employee-row button{min-height:44px}}
@media print{#page>.page-head.dqc-pin{position:static}}

@media screen{#qh-grid .table-wrap{position:relative;isolation:isolate}#app #qh-grid table>thead{position:sticky!important;top:0!important;z-index:30!important;background:#edf5fc}#app #qh-grid table>thead>tr>th{background:#edf5fc}}

#iso-daily-overview{font-size:12px;color:#132d49}#iso-daily-overview .iso-daily-selectors{display:flex;gap:10px;flex-wrap:wrap}#iso-daily-overview label{font-size:12px;font-weight:700}#iso-daily-overview input,#iso-daily-overview select{display:block;margin-top:4px;font-size:13px;padding:7px;min-height:34px}#ido-summary{display:flex;gap:7px;flex-wrap:wrap;margin:9px 0}#iso-daily-overview .ido-section{display:flex;gap:10px;align-items:center;flex-wrap:wrap;padding:8px 10px;border:1px solid #ccdfed;background:#e8f2fa;font-size:12px}#ido-records{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(290px,100%),1fr));gap:8px}#iso-daily-overview .ido-record{border:1px solid #d0dfeb;background:white;border-radius:5px;padding:10px;line-height:19px;min-width:0;overflow-wrap:anywhere}#iso-daily-overview .ido-record-head{display:flex;justify-content:space-between;gap:8px}#iso-daily-overview .ido-record small,#iso-daily-overview .ido-process{display:block}#iso-daily-overview .ido-record small{font-size:11px;color:#536e88}#iso-daily-overview .ido-process{margin-top:4px}#iso-daily-overview p{margin:4px 0}#iso-daily-overview .ido-pass{color:#17603d}#iso-daily-overview .ido-fail{color:#b91432}#iso-daily-overview .ido-case{color:#0864df;margin-top:4px}#iso-daily-overview summary{color:#0864df;padding:4px 0}#iso-daily-overview details a{display:block;font-size:11px}@media(max-width:650px){#iso-daily-overview input,#iso-daily-overview select{font-size:16px;min-height:44px}#iso-daily-overview .ido-section{padding:7px 9px}}
#iso-daily-overview .ido-panel{background:#fff;border:1px solid #d0dfeb;border-radius:6px;padding:12px;margin:10px 0}#iso-daily-overview .ido-panel-title{display:flex;justify-content:space-between;gap:10px;align-items:center}#iso-daily-overview .ido-panel-title small{font-size:11px;color:#536e88}#ido-complaint-totals{display:flex;gap:22px;flex-wrap:wrap;padding:9px 0}#ido-complaint-totals b{font-size:17px;margin-left:5px}#iso-daily-overview .ido-table-scroll{overflow-x:auto}#iso-daily-overview table{border-collapse:collapse;width:100%;font-size:12px;margin:7px 0;table-layout:auto}#iso-daily-overview th{background:#eaf3fa;padding:7px;text-align:left;border-bottom:1px solid #d0dfeb;white-space:normal}#iso-daily-overview td{padding:7px;border-bottom:1px solid #e1e8ef;white-space:normal;vertical-align:top}#iso-daily-overview .ido-number{text-align:right}#iso-daily-overview .ido-link{border:0;background:none;padding:0;font-size:12px;min-height:0;color:#0864df;text-decoration:underline}#iso-daily-overview .ido-complaint-status{display:inline-block;padding:3px 5px;border-radius:3px;font-size:11px;font-weight:700}#iso-daily-overview .ido-settled{background:#ffeb00;color:#111}#iso-daily-overview .ido-unsettled{background:#fde9ed;color:#ae1734}#iso-daily-overview .ido-case-details{display:grid;gap:8px;background:#f3f7fa;padding:8px}#iso-daily-overview .ido-loading .ido-panel{opacity:.5;pointer-events:none}#iso-daily-overview [hidden]{display:none!important}#iso-daily-overview #ido-details>summary{margin-top:7px}#iso-daily-overview .ido-panel>small{font-size:11px;color:#536e88;display:block;margin-top:6px}
#ido-details{margin-top:12px;border-top:1px solid #d0dfeb;padding-top:10px}#ido-records{margin-top:8px}
#iso-daily-overview .ido-period-selectors{display:flex;gap:10px;align-items:end;flex-wrap:wrap;margin-top:7px}#iso-daily-overview .ido-period-selectors select{min-width:110px}#iso-daily-overview .ido-panel-title{flex-wrap:wrap}#iso-daily-overview .ido-panel-title label{display:flex;gap:8px;align-items:center}#iso-daily-overview .ido-panel-title input{margin:0;width:auto}#iso-daily-overview .ido-files{display:flex;gap:7px;flex-wrap:wrap;margin-top:6px}#iso-daily-overview .ido-files a{display:flex;align-items:center;gap:5px;font-size:11px;max-width:100%;overflow-wrap:anywhere}#iso-daily-overview .ido-files img{width:60px;height:45px;object-fit:cover;border:1px solid #d0dfeb}#iso-daily-overview #ido-details>strong{display:block;margin-bottom:7px}
#iso-daily-overview .ido-complaint-panel{background:#eef5ff;border-color:#b8d0ee}#iso-daily-overview .ido-complaint-panel>.ido-panel-title>strong{color:#204f8d}#iso-daily-overview .ido-qc-panel{background:#eef8ee;border-color:#b6d8b8}#iso-daily-overview .ido-qc-panel>.ido-panel-title>strong{color:#205c35}#iso-daily-overview .ido-qc-panel th{background:#deefdc}#iso-daily-overview .ido-qc-panel .ido-section{background:#e0f0df;border-color:#b6d8b8}#iso-daily-overview .ido-complaint-toolbar{display:flex;align-items:end;gap:24px;flex-wrap:wrap;margin-top:7px}#iso-daily-overview .ido-complaint-toolbar .ido-period-selectors{margin-top:0}#iso-daily-overview .ido-complaint-toolbar #ido-complaint-totals{padding:0 0 7px;gap:20px}#iso-daily-overview .ido-qc-panel .ido-panel-title{justify-content:flex-start;gap:16px}#iso-daily-overview .ido-qc-panel #ido-check-total{margin-left:auto}#iso-daily-overview .ido-qc-panel #ido-section{margin-top:0}#iso-daily-overview .ido-qc-panel .ido-panel-title label{white-space:nowrap}@media(max-width:650px){#iso-daily-overview .ido-complaint-toolbar{gap:10px}#iso-daily-overview .ido-qc-panel .ido-panel-title{gap:9px}}
#iso-daily-overview .ido-panel-title>strong{font-size:18px;font-weight:700}#iso-daily-overview .ido-complaint-layout{display:grid;grid-template-columns:minmax(240px,28%) minmax(0,1fr);gap:24px;align-items:start;margin-top:10px}#iso-daily-overview .ido-complaint-layout .ido-period-selectors{margin-top:0;flex-wrap:nowrap;align-items:start}#iso-daily-overview .ido-complaint-layout .ido-period-selectors label{min-width:0}#iso-daily-overview .ido-complaint-layout .ido-period-selectors select{min-width:0;max-width:100%}#iso-daily-overview .ido-complaint-data{min-width:0}#iso-daily-overview .ido-complaint-data #ido-complaint-totals{padding:0 0 8px;gap:30px}#iso-daily-overview .ido-complaint-data table{margin-top:0}@media(max-width:850px){#iso-daily-overview .ido-complaint-layout{grid-template-columns:1fr;gap:12px}}@media(max-width:650px){#iso-daily-overview .ido-panel-title>strong{font-size:17px}}
#iso-daily-overview .ido-complaint-data table{table-layout:fixed}#iso-daily-overview .ido-complaint-data th:nth-child(1){width:23%}#iso-daily-overview .ido-complaint-data th:nth-child(2){width:12%}#iso-daily-overview .ido-complaint-data th:nth-child(3){width:47%}#iso-daily-overview .ido-complaint-data th:nth-child(4){width:18%}

/* Release 234: two independent case columns; fixed summaries above scrollable records. */
/* Complaint cream matches the approved preview; checking retains its green panel. */
#iso-daily-overview .ido-complaint-panel{background:#fff8e1;border-color:#e1cf91}#iso-daily-overview .ido-complaint-panel .ido-panel-head{border-bottom-color:#e1cf91}#iso-daily-overview .ido-complaint-panel .ido-panel-title>strong{color:#102343}#iso-daily-overview .ido-complaint-panel thead,#iso-daily-overview .ido-complaint-panel th{background:#f7ebbf}
#page>.page-head.ido-page-pin{position:sticky;top:0;z-index:45;background:#f2f8fc;padding:7px 0 9px;margin-bottom:10px;border-bottom:1px solid #d1deea}
#iso-daily-overview .ido-columns{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px;align-items:start}
#iso-daily-overview .ido-panel{display:flex;flex-direction:column;min-width:0;height:var(--ido-panel-height,calc(100dvh - 175px));margin:0;padding:0;overflow:hidden}
#iso-daily-overview .ido-panel-head{flex:none;padding:12px;border-bottom:1px solid #c7d9e7}
#iso-daily-overview .ido-panel-body{min-height:0;flex:1;overflow:auto;overscroll-behavior:contain;padding:0 12px 12px;scrollbar-gutter:stable}
#iso-daily-overview .ido-panel-title{gap:5px;align-items:baseline}#iso-daily-overview .ido-panel-title>strong{font-size:18px}
#iso-daily-overview .ido-panel-title small{margin:0}#iso-daily-overview #ido-check-total{margin-left:0}
#ido-qc-totals,#iso-daily-overview #ido-complaint-totals{display:flex;gap:20px;flex-wrap:wrap;padding:9px 0;margin:0;font-size:12px}
#ido-qc-totals b{font-size:17px;margin-left:5px}
#iso-daily-overview .iso-daily-selectors,#iso-daily-overview .ido-period-selectors{display:flex;gap:10px;flex-wrap:wrap;align-items:end;margin:0}
#iso-daily-overview .ido-panel-head label{min-width:0;flex:1}#iso-daily-overview .ido-panel-head select,#iso-daily-overview .ido-panel-head input{width:100%;min-width:0}
#iso-daily-overview .ido-panel-body table{margin-top:0}#iso-daily-overview .ido-panel-body thead{position:sticky;top:0;z-index:5;background:#eaf3fa}#iso-daily-overview .ido-qc-panel thead{background:#deefdc}
#iso-daily-overview .ido-complaint-data th:nth-child(1){width:25%}#iso-daily-overview .ido-complaint-data th:nth-child(2){width:13%}#iso-daily-overview .ido-complaint-data th:nth-child(3){width:42%}#iso-daily-overview .ido-complaint-data th:nth-child(4){width:20%}
#iso-daily-overview .ido-complaint-data td{overflow-wrap:anywhere}#iso-daily-overview #ido-records{grid-template-columns:1fr}
#iso-daily-overview .ido-panel-body table{table-layout:fixed;min-width:0!important;width:100%!important}#iso-daily-overview .ido-panel-body th,#iso-daily-overview .ido-panel-body td{min-width:0!important;overflow-wrap:anywhere}#iso-daily-overview .ido-qc-panel th:nth-child(1){width:16%!important}#iso-daily-overview .ido-qc-panel th:nth-child(2){width:30%!important}#iso-daily-overview .ido-qc-panel th:nth-child(n+3){width:18%!important}
@media(max-width:900px){#iso-daily-overview .ido-columns{grid-template-columns:1fr}#iso-daily-overview .ido-panel{height:auto;max-height:none}#iso-daily-overview .ido-panel-body{flex:auto;max-height:65dvh}#iso-daily-overview .ido-panel-head{position:sticky;top:0}#iso-daily-overview .ido-panel-title>strong{font-size:17px}}

/* Release 236: fixed section summary, white data rows and dark-grey header. */
#iso-daily-overview .ido-section-summary{width:100%!important;table-layout:fixed;margin:0 0 10px;font-size:12px;color:#000;background:#fff;min-width:0!important}
#iso-daily-overview .ido-section-summary th,#iso-daily-overview .ido-section-summary td{min-width:0!important;width:25%!important;padding:3px 8px;text-align:right;border-bottom:1px solid #ddd}
#iso-daily-overview .ido-section-summary th{background:#60656b;color:#fff;font-weight:700}#iso-daily-overview .ido-section-summary td{background:#fff;color:#000}
#iso-daily-overview .ido-section-summary th:first-child,#iso-daily-overview .ido-section-summary td:first-child{text-align:left}
#iso-daily-overview .ido-summary-link{border:0;padding:0;min-height:0;background:transparent;color:#000;font-size:12px;font-weight:600;text-decoration:underline}#iso-daily-overview .ido-summary-link[aria-pressed="true"]{font-weight:800;text-decoration-thickness:2px}
#iso-daily-overview #ido-qc-totals{color:#000;background:#fff;padding:7px 8px}#iso-daily-overview #ido-qc-totals span{color:#000}
@media(max-width:650px){#iso-daily-overview .ido-section-summary td{padding:4px 8px}#iso-daily-overview .ido-summary-link{padding:5px 0}}

/* Release 237: independent complaint period, today's summary and summary-driven details. */
#iso-daily-overview .ido-qc-column{display:flex;flex-direction:column;gap:12px;min-width:0;height:var(--ido-panel-height,calc(100dvh - 175px))}
#iso-daily-overview .ido-summary-panel{height:auto;flex:none;background:#f0f0f0;border-color:#c6c8cb}#iso-daily-overview .ido-summary-panel .ido-panel-head{border-bottom:0}
#iso-daily-overview .ido-qc-column>.ido-qc-panel{height:auto;flex:1;min-height:160px}
#iso-daily-overview .ido-summary-panel .ido-panel-title>strong{color:#111}#iso-daily-overview .ido-qc-panel .ido-panel-title>strong{color:#205c35}
#iso-daily-overview #ido-qc-totals .ido-summary-link{font-size:17px;font-weight:700;text-decoration:none;margin-left:5px}
#iso-daily-overview .ido-summary-link[aria-pressed="true"]{outline:1px solid #535b62;outline-offset:2px;border-radius:1px}
#iso-daily-overview .ido-qc-panel #ido-check-total{display:block;margin-top:5px}
@media(max-width:900px){#iso-daily-overview .ido-qc-column{height:auto}#iso-daily-overview .ido-qc-column>.ido-qc-panel{min-height:0;flex:auto}}

/* Release 238: approved Planner-style white cards in one vertical flow. */
#iso-daily-overview .ido-columns{display:grid;grid-template-columns:minmax(0,1fr);gap:16px}
#iso-daily-overview .ido-qc-column{display:contents;height:auto}
#iso-daily-overview .ido-panel,#iso-daily-overview .ido-qc-column>.ido-qc-panel{display:block;height:auto;max-height:none;min-height:0;margin:0;background:#fff;border:1px solid #d6e3f1;border-radius:9px;overflow:visible}
#iso-daily-overview .ido-panel-head{position:sticky;top:var(--ido-page-height,90px);z-index:15;background:#fff;border-radius:9px 9px 0 0;padding:14px;border-bottom:1px solid #d6e3f1}
#iso-daily-overview .ido-panel .ido-panel-title>strong{color:#102343;font-size:19px;font-weight:750}
#iso-daily-overview .ido-panel-body{max-height:none;overflow:visible;min-height:0;padding:0 14px 14px;scrollbar-gutter:auto}
#iso-daily-overview .ido-panel-body thead{top:calc(var(--ido-page-height,90px) + var(--ido-head-height,70px));z-index:10;background:#eaf3fc}
#iso-daily-overview .ido-panel-body th{background:#eaf3fc}
#iso-daily-overview .ido-complaint-panel .ido-panel-head{border-bottom-color:#d6e3f1}
#app #iso-daily-overview .ido-panel-body table>thead{position:sticky!important;top:calc(var(--ido-page-height,90px) + var(--ido-head-height,70px))!important;z-index:10!important}
#app #iso-daily-overview .ido-summary-panel table>thead{position:static!important}
#iso-daily-overview .ido-complaint-data th:nth-child(1){width:25%!important}#iso-daily-overview .ido-complaint-data th:nth-child(2){width:13%!important}#iso-daily-overview .ido-complaint-data th:nth-child(3){width:42%!important}#iso-daily-overview .ido-complaint-data th:nth-child(4){width:20%!important}
#iso-daily-overview .ido-period-selectors{max-width:620px}
#iso-daily-overview #ido-details{margin-top:0}#iso-daily-overview #ido-records{grid-template-columns:1fr}
#iso-daily-overview .ido-record{border:0;border-bottom:1px solid #d7e3ef;border-radius:0;padding:10px 0}
@media(max-width:650px){#iso-daily-overview .ido-panel .ido-panel-title>strong{font-size:17px}#iso-daily-overview .ido-panel-head{padding:10px}#iso-daily-overview .ido-panel-body{padding:0 10px 10px}}

/* Release 239: photos use the space beside the checking text, with overflow gallery. */
#iso-daily-overview .ido-record-with-photos{display:grid;grid-template-columns:minmax(230px,.8fr) minmax(0,1.2fr);gap:20px;align-items:start}
#iso-daily-overview .ido-record-text{min-width:0}#iso-daily-overview .ido-photo-strip{display:flex;gap:8px;flex-wrap:wrap;align-items:start;min-width:0}
#iso-daily-overview .ido-photo-thumb{display:block;width:160px;max-width:100%;min-height:0;padding:4px;background:#fff;border:1px solid #d6e3f1;border-radius:5px;text-align:left;color:#132d49}
#iso-daily-overview .ido-photo-thumb img{display:block;width:100%;height:116px;object-fit:contain;background:#f6f8fa}#iso-daily-overview .ido-photo-thumb span{display:block;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:3px}
#iso-daily-overview .ido-photo-more{width:72px;min-height:124px;background:#edf4fc;color:#102343;border:1px solid #c6d8ec;font-size:24px;font-weight:700;border-radius:5px;padding:7px}#iso-daily-overview .ido-photo-more small{font-size:11px;color:#132d49;display:block}
#iso-daily-overview .ido-photo-dialog{width:min(960px,calc(100vw - 28px));max-height:85dvh;overflow:auto;padding:14px;border:1px solid #c6d8ec;border-radius:8px;background:#fff;color:#132d49}
#iso-daily-overview .ido-photo-dialog::backdrop{background:#10234399}#iso-daily-overview .ido-photo-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:12px;position:sticky;top:-14px;z-index:1;background:#fff;padding:5px 0 10px;border-bottom:1px solid #d6e3f1}
#iso-daily-overview .ido-photo-gallery{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(280px,100%),1fr));gap:12px;padding-top:12px}#iso-daily-overview .ido-photo-gallery figure{margin:0;min-width:0}#iso-daily-overview .ido-photo-gallery img{display:block;width:100%;height:280px;object-fit:contain;background:#f6f8fa}#iso-daily-overview .ido-photo-gallery figcaption{font-size:12px;overflow-wrap:anywhere;margin-top:4px}
@media(max-width:900px){#iso-daily-overview .ido-record-with-photos{grid-template-columns:1fr;gap:9px}}@media(max-width:450px){#iso-daily-overview .ido-photo-thumb{width:calc(50% - 5px)}#iso-daily-overview .ido-photo-more{width:calc(50% - 5px)}#iso-daily-overview .ido-photo-dialog-head strong{font-size:12px}}

/* Release 240: whole-year complaint section summary uses spare header space. */
#iso-daily-overview .ido-complaint-top{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px;align-items:start;margin-top:8px}
#iso-daily-overview .ido-complaint-controls{min-width:0}#iso-daily-overview .ido-annual-summary{min-width:0}#iso-daily-overview .ido-annual-summary>strong{display:block;font-size:12px;margin-bottom:5px}
#iso-daily-overview .ido-annual-summary table{margin:0;table-layout:fixed;width:100%!important;min-width:0!important;font-size:12px}
#iso-daily-overview .ido-annual-summary th,#iso-daily-overview .ido-annual-summary td{width:25%!important;min-width:0!important;padding:3px 8px;text-align:right;color:#000;border-bottom:1px solid #ddd;overflow-wrap:anywhere}
#iso-daily-overview .ido-annual-summary th:first-child,#iso-daily-overview .ido-annual-summary td:first-child{text-align:left}
#iso-daily-overview .ido-annual-summary thead th{background:#60656b;color:white}#iso-daily-overview .ido-annual-summary td{background:white}
#iso-daily-overview .ido-annual-summary tfoot th,#iso-daily-overview .ido-annual-summary tfoot td{font-weight:700;background:#edf3fa}
#app #iso-daily-overview .ido-annual-summary table>thead{position:static!important}
@media(max-width:750px){#iso-daily-overview .ido-complaint-top{grid-template-columns:1fr;gap:12px}}

/* Release 241: date beside complaint reference. */
#iso-daily-overview .ido-complaint-data th:nth-child(1){width:22%}#iso-daily-overview .ido-complaint-data th:nth-child(2){width:14%}#iso-daily-overview .ido-complaint-data th:nth-child(3){width:11%}#iso-daily-overview .ido-complaint-data th:nth-child(4){width:36%}#iso-daily-overview .ido-complaint-data th:nth-child(5){width:17%}

/* Release 244: compact single-line complaint data and checker rows. */
#iso-daily-overview .ido-complaint-data table{table-layout:auto!important;width:100%!important;min-width:0!important;font-size:12px}
#iso-daily-overview .ido-complaint-data th:nth-child(n){width:1%!important;white-space:nowrap;padding:5px 7px}
#iso-daily-overview .ido-complaint-data th:nth-child(5){width:auto!important}
#iso-daily-overview .ido-complaint-data td{white-space:nowrap;overflow-wrap:normal!important;padding:5px 7px}
#iso-daily-overview .ido-complaint-data .ido-case-details{white-space:normal;overflow-wrap:anywhere}
#iso-daily-overview .ido-complaint-data .aq-filter{margin-left:5px;float:none;padding:1px 5px;font-size:11px}
#iso-daily-overview .ido-complaint-data .ido-complaint-status{font-size:11px;padding:3px 6px}
#iso-daily-overview #ido-clear-table{margin-top:8px;font-size:11px;padding:4px 7px}
#iso-daily-overview .ido-section-summary th:nth-child(n),#iso-daily-overview .ido-section-summary td:nth-child(n){width:18%!important}
#iso-daily-overview .ido-section-summary th:first-child,#iso-daily-overview .ido-section-summary td:first-child{width:14%!important}
#iso-daily-overview .ido-section-summary th:nth-child(2),#iso-daily-overview .ido-section-summary td:nth-child(2){width:32%!important;text-align:left}
#iso-daily-overview .ido-section-summary .ido-section-total td{font-size:14px;font-weight:700}
#iso-daily-overview .ido-section-summary .ido-qc-person td{font-size:11px;font-weight:400;padding:2px 8px}
@media(max-width:1100px){#iso-daily-overview .ido-complaint-data{overflow-x:auto}#iso-daily-overview .ido-complaint-data table{min-width:850px!important}}

/* Release 245: all checker breakdown lines remain inside the section's cells. */
#iso-daily-overview .ido-section-summary .ido-section-total td{vertical-align:top}
#iso-daily-overview .ido-section-summary .ido-summary-total{min-height:22px;font-size:13px;line-height:22px}
#iso-daily-overview .ido-section-summary .ido-qc-person{font-size:11px;line-height:19px;font-weight:400;min-height:19px;white-space:nowrap}

/* Release 246: content-fit summary and inline QC names/counts. */
#iso-daily-overview .ido-summary-table-scroll{width:100%;overflow-x:auto}
#iso-daily-overview .ido-section-summary{table-layout:auto!important;width:max-content!important;min-width:0!important;max-width:none}
#iso-daily-overview .ido-section-summary th:nth-child(n),#iso-daily-overview .ido-section-summary td:nth-child(n){width:auto!important;white-space:nowrap;padding:4px 9px;overflow-wrap:normal}
#iso-daily-overview .ido-section-summary .ido-qc-inline{display:inline;font-size:11px;font-weight:400;line-height:normal;white-space:nowrap;color:#000}
#iso-daily-overview .ido-section-summary .aq-filter{float:none;margin-left:6px;min-height:22px;padding:1px 5px;font-size:11px}
#iso-daily-overview .ido-section-summary th .aq-filter{background:#fff;color:#102343}
#iso-daily-overview .ido-section-summary th .aq-filter.aq-active{background:#005eff;color:#fff}

/* Release 247: plain ALL QC and filters on the lower detail table only. */
#iso-daily-overview .ido-section-summary .ido-all-qc{font-size:14px;font-weight:400}
#iso-daily-overview .ido-qc-panel .aq-filter{font-size:11px;padding:1px 5px;min-height:22px;margin-left:5px}
#iso-daily-overview .ido-qc-panel #ido-clear-table{margin:0;font-size:11px;padding:4px 7px}

/* Release 248: match the visible section button, rather than its larger parent cell. */
#iso-daily-overview .ido-section-summary .ido-summary-link,#iso-daily-overview .ido-section-summary .ido-all-qc{font-size:12px}

/* A2: compact controls above an independently scrolling complaint list. */
#iso-daily-overview .ido-complaint-panel{display:flex;height:var(--ido-complaint-height,65dvh);min-height:240px;overflow:hidden}
#iso-daily-overview .ido-complaint-panel .ido-panel-head{position:relative;top:auto;z-index:25;padding:10px 14px;flex:none}
#iso-daily-overview .ido-complaint-top{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:5px}
#iso-daily-overview .ido-complaint-controls{display:flex;align-items:end;gap:9px;flex:1}
#iso-daily-overview .ido-complaint-panel .ido-period-selectors{gap:8px;flex-wrap:nowrap}
#iso-daily-overview .ido-complaint-panel .ido-period-selectors label{flex:none;font-size:11px}
#iso-daily-overview .ido-complaint-panel .ido-period-selectors select{width:auto;min-width:90px;font-size:12px;padding:4px 8px;min-height:30px}
#iso-daily-overview .ido-complaint-panel #ido-complaint-totals{padding:0;gap:12px;white-space:nowrap;font-size:12px}
#iso-daily-overview .ido-complaint-panel #ido-clear-table{margin:0;white-space:nowrap}
#iso-daily-overview .ido-annual-toggle{margin-left:auto;white-space:nowrap;font-size:12px}
#iso-daily-overview .ido-annual-toggle>summary{cursor:pointer;color:#0864df;padding:6px;border:1px solid #d6e3f1;border-radius:4px}
#iso-daily-overview .ido-annual-toggle .ido-annual-summary{position:absolute;right:14px;top:100%;z-index:30;background:white;padding:10px;border:1px solid #bccddd;border-radius:5px;box-shadow:0 4px 12px #10234333;width:min(530px,calc(100vw - 75px));max-height:45dvh;overflow:auto;white-space:normal}
#iso-daily-overview .ido-complaint-panel .ido-complaint-data{flex:1;min-height:0;max-height:none;overflow:auto;overscroll-behavior:contain;padding:0 14px 10px}
#app #iso-daily-overview .ido-complaint-data table>thead{position:sticky!important;top:0!important;z-index:20!important}
#iso-daily-overview .ido-complaint-case{display:grid;grid-template-columns:minmax(230px,1fr) minmax(0,1.2fr);gap:16px;align-items:start}
#iso-daily-overview .ido-complaint-case .ido-files{grid-column:1/-1}
#iso-daily-overview .ido-complaint-photos .ido-photo-thumb{width:min(190px,calc((100% - 96px)/3));height:174px!important;min-height:174px!important;flex:none;white-space:normal}
#iso-daily-overview .ido-complaint-photos .ido-photo-more{height:174px!important;min-height:174px!important;flex:none}
#iso-daily-overview .ido-complaint-photos .ido-photo-thumb img{height:145px}
@media(max-width:700px){#iso-daily-overview .ido-complaint-controls{flex-wrap:wrap}#iso-daily-overview .ido-annual-toggle{margin-left:0}#iso-daily-overview .ido-complaint-case{grid-template-columns:1fr}#iso-daily-overview .ido-complaint-panel{min-height:300px}}
@media print{#iso-daily-overview .ido-complaint-panel{display:block;height:auto;overflow:visible}#iso-daily-overview .ido-complaint-panel .ido-complaint-data{overflow:visible}#iso-daily-overview .ido-annual-toggle .ido-annual-summary{position:static;max-height:none}}

.ido-summary-disclosure>summary{width:max-content;cursor:pointer;color:#0066cc;font-size:12px;padding:6px 10px;border:1px solid #d0dfee;border-radius:6px;background:#fff;}
.ido-summary-disclosure[open]>summary{margin-bottom:8px;}

.main-page-mode .sidebar{display:none}.main-page-mode .main{margin-left:0}.main-page-mode #globalsearch,.main-page-mode #workspace-open-tab{display:none}.main-page-mode .content{max-width:1050px;padding-top:32px}.main-page-mode .page-head{margin-bottom:25px}#main-workspaces{max-width:850px;margin:0 auto;padding:10px 0 25px}.mw-brand{display:flex;align-items:center;gap:12px;font-size:15px;font-weight:700;margin-bottom:25px;letter-spacing:.5px}.mw-brand>span{display:grid;place-items:center;background:#0a2947;color:#fff;border-radius:6px;width:42px;height:42px;font-size:21px}.mw-choices{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-bottom:19px}.mw-choice{display:flex;flex-direction:column;align-items:flex-start;gap:13px;min-width:0;min-height:215px;padding:25px;text-align:left;color:var(--ink);background:#fff;border:1px solid #cddde9;border-radius:9px;white-space:normal}.mw-choice:hover{border-color:var(--blue);background:#f8fbff}.mw-choice strong{font-size:23px;line-height:1.2}.mw-choice small{font-size:13px;font-weight:400;color:var(--muted)}.mw-choice b{margin-top:auto;color:var(--blue);font-size:13px}.mw-symbol{font-size:26px;color:var(--blue);line-height:1}.mw-back{width:100%;text-align:left;background:transparent;color:#fff;border:1px solid #587793;padding:8px 10px;margin-bottom:12px;font-size:12px}.mw-back:hover{background:#173d61}@media(max-width:650px){.mw-choices{grid-template-columns:1fr}.main-page-mode .content{padding:20px 15px}.mw-choice{min-height:175px;padding:20px}.mw-choice strong{font-size:21px}.main-page-mode .top-actions{flex-wrap:wrap}}

.sem-empty{min-height:180px}

.overview-progress{container-type:inline-size;padding:14px!important}.overview-progress .op-title{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin-bottom:7px}.overview-progress .op-title h2{font-size:17px;margin:0}.overview-progress .op-title>span{font-size:11px;color:#617892}.overview-progress .op-plan+.op-plan{margin-top:14px}.overview-progress .op-product{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:5px 0 7px;border-bottom:1px solid #d8e3ef;font-size:12px}.overview-progress .op-product>span:first-child{overflow-wrap:anywhere}.overview-progress .op-status{font-size:11px;padding:3px 6px;border-radius:3px;background:#e7f0fb;white-space:nowrap}.overview-progress .op-head,.overview-progress .op-row{display:grid;grid-template-columns:minmax(115px,1fr) minmax(210px,2fr) 90px 58px minmax(130px,1fr);column-gap:9px;align-items:center}.overview-progress.op-no-finance .op-head,.overview-progress.op-no-finance .op-row{grid-template-columns:minmax(115px,1fr) minmax(210px,2fr) 90px 58px}.overview-progress .op-head{font-size:11px;color:#617892;padding:6px}.overview-progress .op-head>span:last-child{text-align:right}.overview-progress .op-head small{font-size:11px}.overview-progress .op-row{padding:6px;min-height:38px;border-bottom:1px solid #d8e3ef;font-size:12px}.overview-progress .op-plan-row{background:#edf5ff;border-radius:3px}.overview-progress .op-name{display:flex;align-items:baseline;gap:6px;flex-wrap:wrap}.overview-progress .op-name .link-button{font-size:12px;font-weight:700;text-align:left;padding:0}.overview-progress .op-name>small{font-size:11px;color:#617892}.overview-progress .op-category-row .op-name{padding-left:10px;border-left:2px solid #d8e3ef}.overview-progress .op-bar{display:grid;grid-template-columns:minmax(50px,1fr) 52px 90px;gap:6px;align-items:center;font-variant-numeric:tabular-nums}.overview-progress .op-bar strong{font-size:12px;text-align:right}.overview-progress .op-bar small{font-size:11px;color:#617892;overflow-wrap:anywhere}.overview-progress .op-meter{height:7px;background:#e6edf6;overflow:hidden;border-radius:3px}.overview-progress .op-meter>span{display:block;height:100%;background:#0964ec;border-radius:3px}.overview-progress .op-meter.op-unknown{background:repeating-linear-gradient(45deg,#e6edf6,#e6edf6 5px,#f6f8fc 5px,#f6f8fc 10px)}.overview-progress .op-date,.overview-progress .op-days{font-size:11px;font-variant-numeric:tabular-nums;white-space:nowrap}.overview-progress .op-days{text-align:center}.overview-progress .op-date>span,.overview-progress .op-days>span{display:none;color:#617892}.overview-progress .op-cost{text-align:right;font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap;font-size:12px}.overview-progress .op-note{margin:8px 0 0;font-size:11px;color:#617892;line-height:1.4}
@container(max-width:680px){.overview-progress .op-head{display:none}.overview-progress .op-row,.overview-progress.op-no-finance .op-row{grid-template-columns:minmax(90px,1fr) minmax(110px,1fr);gap:6px}.overview-progress .op-bar{grid-column:1/-1;grid-row:2}.overview-progress .op-cost{grid-column:2;grid-row:1}.overview-progress .op-date{grid-column:1;grid-row:3}.overview-progress .op-days{grid-column:2;grid-row:3;text-align:right}.overview-progress .op-date>span,.overview-progress .op-days>span{display:inline}}
@media(max-width:900px){.overview-progress .op-head{display:none}.overview-progress .op-row,.overview-progress.op-no-finance .op-row{grid-template-columns:minmax(90px,1fr) minmax(110px,1fr);gap:6px}.overview-progress .op-bar{grid-column:1/-1;grid-row:2}.overview-progress .op-cost{grid-column:2;grid-row:1}.overview-progress .op-date{grid-column:1;grid-row:3}.overview-progress .op-days{grid-column:2;grid-row:3;text-align:right}.overview-progress .op-date>span,.overview-progress .op-days>span{display:inline}}
.overview-plan-cards{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.overview-summary-box{background:#fff;border:1px solid #d6e3f1;border-radius:8px;padding:13px;display:flex;flex-direction:column;gap:12px;min-width:0}.ov-box-title{display:flex;align-items:flex-start;gap:8px}.ov-box-title>small{color:#617892;font-size:11px;padding-top:2px}.ov-box-title h2{font-size:15px;line-height:1.3;margin:0;flex:1}.ov-box-title>strong{font-size:23px;line-height:1.1}.ov-plan-list{min-height:35px;display:flex;flex-direction:column;gap:6px}.ov-plan-list .link-button{display:flex;align-items:baseline;justify-content:space-between;gap:8px;font-size:12px;font-weight:700;text-align:left;overflow-wrap:anywhere;padding:0}.ov-plan-list small{font-size:11px;color:#617892;font-weight:400;white-space:nowrap}.ov-box-footer{border-top:1px solid #d6e3f1;padding-top:8px;margin-top:auto;display:flex;flex-direction:column;align-items:flex-start;gap:6px}.ov-box-footer>small{font-size:11px;color:#617892}.ov-box-footer .link-button{font-size:12px}.ov-load-error{grid-column:1/-1}.overview-details .table-wrap{max-height:60vh;overflow:auto}.overview-details th{position:sticky;top:0;background:#e9f2fa;z-index:2;white-space:normal;min-width:105px;padding-right:28px}.overview-details .ov-number{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}.overview-details td{font-size:12px}.overview-details .notice{font-size:12px}.overview-details #ov-values{max-height:180px;overflow:auto}.overview-details .aq-menu{z-index:10050}.overview-details .toolbar{margin-bottom:8px}
.ov-plan-identity{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}.ov-plan-list .ov-fg-id{display:block;font-size:7pt!important;font-weight:400;line-height:1.2;white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere}
@media(max-width:1150px){.overview-plan-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){.overview-plan-cards{grid-template-columns:1fr}.overview-summary-box{padding:12px;gap:8px}.ov-plan-list{min-height:0}.ov-box-footer{flex-direction:row;justify-content:space-between;flex-wrap:wrap}}
.overview-section-bar{position:sticky;top:0;z-index:30;display:flex;align-items:center;gap:10px;flex-wrap:wrap;background:#fff;border:1px solid #d6e3f1;border-radius:6px;padding:10px 12px;margin:12px 0;box-shadow:0 3px 8px #092d5012}.overview-section-bar label{font-weight:700;font-size:13px}.overview-section-bar select{min-width:180px;max-width:100%}.overview-section-bar [role=status]{font-size:12px;color:#526c89}.section-authority-options{border:1px solid #d6e3f1;border-radius:6px;display:flex;gap:12px 20px;flex-wrap:wrap;padding:14px}.section-authority-options label{display:flex;align-items:center;gap:7px;min-height:32px}.section-authority-options legend{font-weight:700}.section-authority-options input{width:18px;height:18px}.overview-section-bar:focus-within{z-index:31}
@media(max-width:480px){.overview-section-bar{gap:7px;padding:8px}.overview-section-bar select{min-width:140px}.overview-section-bar [role=status]{flex-basis:100%}}
.overview-section-bar select{width:180px!important;flex:0 1 180px}.overview-section-bar>label{width:auto!important;flex:none}.overview-section-bar>[role=status]{flex:1}
/* Product code and description stand out together in every plan heading. */
.overview-completed .table-wrap{overflow-x:auto;max-width:100%}.overview-completed table{width:100%;min-width:960px}.overview-completed th{white-space:normal}.overview-completed td{vertical-align:top;font-size:12px}.overview-completed .oc-product{display:block;margin-top:5px}.overview-completed .oc-line{display:flex;justify-content:space-between;align-items:baseline;gap:12px;line-height:1.65;white-space:nowrap}.overview-completed .oc-dates .oc-line{gap:10px}.overview-completed .oc-dates b{font-weight:400}.overview-completed .oc-average,.overview-completed .oc-average b{color:#d71920}.overview-completed .oc-average b{font-weight:700}.overview-completed .oc-footer{display:flex;justify-content:flex-end;margin-top:10px}.overview-completed .op-note{color:#617892;font-size:11px}.overview-completed .op-bar{min-width:100px}.overview-completed .op-meter{height:7px;background:#e6edf6;border-radius:4px;overflow:hidden}.overview-completed .op-meter>span{display:block;height:100%;background:#d71920}.overview-completed .op-bar small{display:block;color:#617892;font-size:11px}
.overview-progress .op-product>span:first-child{color:#d71920;font-weight:700}
/* Four category rows use roughly the previous height of two rows. */
.overview-progress .op-category-row{min-height:20px;padding-top:2px;padding-bottom:2px}.overview-progress .op-category-row .op-name{flex-wrap:nowrap}.overview-progress .op-category-row .op-name small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:900px){.overview-progress .op-category-row{padding-top:4px;padding-bottom:4px}.overview-progress .op-category-row .op-name{flex-wrap:wrap}}
/* Display plan and category progress in the requested red. */
.overview-progress .op-meter>span{background:#d71920}
/* Keep the current hierarchy; add only the requested quantity/date cells. */
.overview-progress .op-category-row .op-meter>span{background:#0964ec}
.overview-progress .op-head,.overview-progress .op-row{grid-template-columns:minmax(115px,1fr) minmax(210px,2fr) 78px 90px 90px 64px minmax(110px,1fr)}
.overview-progress.op-no-finance .op-head,.overview-progress.op-no-finance .op-row{grid-template-columns:minmax(115px,1fr) minmax(210px,2fr) 78px 90px 90px 64px}
.overview-progress .op-quantity{font-size:11px;text-align:right;font-variant-numeric:tabular-nums}.overview-progress .op-quantity>span{display:none}
.overview-progress .op-plan-meta{display:inline-block;margin-left:14px;color:#617892;font-size:11px;font-weight:400}.overview-progress .op-plan-meta strong{color:#092d50;font-weight:700;margin-left:5px}
@container(max-width:840px){.overview-progress .op-date,.overview-progress .op-quantity,.overview-progress .op-days{white-space:normal;min-width:0}.overview-progress .op-date>span,.overview-progress .op-quantity>span,.overview-progress .op-days>span{display:block!important}}
@media(max-width:900px){.overview-progress .op-date,.overview-progress .op-quantity,.overview-progress .op-days{white-space:normal;min-width:0}.overview-progress .op-date>span,.overview-progress .op-quantity>span,.overview-progress .op-days>span{display:block!important}}
@container(max-width:840px){.overview-progress .op-head{display:none}.overview-progress .op-row,.overview-progress.op-no-finance .op-row{grid-template-columns:minmax(90px,1fr) minmax(110px,1fr);gap:6px}.overview-progress .op-bar{grid-column:1/-1;grid-row:2}.overview-progress .op-cost{grid-column:2;grid-row:1}.overview-progress .op-date{grid-column:1;grid-row:3}.overview-progress .op-completed-date{grid-column:2;grid-row:3}.overview-progress .op-quantity{grid-column:1;grid-row:4;text-align:left}.overview-progress .op-days{grid-column:2;grid-row:4;text-align:right}.overview-progress .op-date>span,.overview-progress .op-days>span,.overview-progress .op-quantity>span{display:inline}}
@media(max-width:900px){.overview-progress .op-head{display:none}.overview-progress .op-row,.overview-progress.op-no-finance .op-row{grid-template-columns:minmax(90px,1fr) minmax(110px,1fr);gap:6px}.overview-progress .op-bar{grid-column:1/-1;grid-row:2}.overview-progress .op-cost{grid-column:2;grid-row:1}.overview-progress .op-date{grid-column:1;grid-row:3}.overview-progress .op-completed-date{grid-column:2;grid-row:3}.overview-progress .op-quantity{grid-column:1;grid-row:4;text-align:left}.overview-progress .op-days{grid-column:2;grid-row:4;text-align:right}.overview-progress .op-date>span,.overview-progress .op-days>span,.overview-progress .op-quantity>span{display:inline}}
/* Default to one screen width; retain the existing adjustable column handles. */
.overview-completed table{min-width:0;table-layout:fixed}
.overview-completed .table-wrap{container-type:inline-size}
.overview-completed table th,.overview-completed table td{padding:5px;white-space:normal;overflow-wrap:anywhere;text-overflow:clip}
.overview-completed .oc-line{gap:5px;white-space:normal;flex-wrap:wrap}
.overview-completed .oc-line>span{min-width:0;overflow-wrap:anywhere}
.overview-completed .oc-line>b{margin-left:auto;max-width:100%;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.overview-completed .oc-product,.overview-completed td .link-button{white-space:normal;overflow-wrap:anywhere;text-align:left;max-width:100%}
.overview-completed .op-bar{min-width:0}.overview-completed .op-bar strong,.overview-completed .op-bar small{overflow-wrap:anywhere}
.overview-completed td:last-child button{padding:4px;max-width:100%;white-space:normal;font-size:11px}
.overview-completed .oc-fit-screen{margin-bottom:4px}
@container(max-width:900px){.overview-completed .oc-line{display:block;margin-bottom:5px}.overview-completed .oc-line>span,.overview-completed .oc-line>b{display:block;margin:0;max-width:100%}.overview-completed .oc-dates b{white-space:normal}}
.overview-completed table th{padding:5px 10px 5px 4px!important;font-size:11px;line-height:1.35}
/* Approved completed-plan changes: top alignment, whole-flow count and same-line values. */
#overview-completed-plans td{vertical-align:top!important}
.overview-completed .oc-sequences{display:flex;gap:4px;margin-top:4px;white-space:nowrap;font-size:10px}
.overview-completed .oc-line{display:flex!important;flex-wrap:nowrap!important;align-items:flex-start;white-space:nowrap;gap:4px}
.overview-completed .oc-line>span,.overview-completed .oc-line>b{display:inline!important;flex-shrink:0;margin-top:0}
@media(max-width:1150px){.overview-completed #overview-completed-plans td{font-size:11px;padding:5px 3px}.overview-completed .oc-line{font-size:10px}.overview-completed .oc-sequences{font-size:10px;gap:2px}}
#overview-completed-plans{min-width:730px!important}
/* Overview section colours requested by the user. */
.overview-progress{background:#eaf4ff!important}
.overview-progress .op-title{background:#153e69;color:#fff;padding:8px 10px;border-radius:4px}
.overview-progress .op-title h2,.overview-progress .op-title>span{color:#fff}
.overview-progress .op-plan-row{background:#eaf4ff}
.overview-progress .op-product>span:first-child{color:#d71920}
.overview-progress .op-head,.overview-progress .op-note,.overview-progress .op-bar small,.overview-progress .op-name>small,.overview-progress .op-plan-meta{color:#4e6780}
.overview-completed{background:#edf8ec!important}
.overview-completed>h2{background:#176537;color:#fff;padding:8px 10px;border-radius:4px}
.overview-completed table,.overview-completed td{background:#edf8ec}
.overview-completed th{background:#d9efdf;border-color:#bedac6}
.overview-completed>p.muted,.overview-completed .op-note,.overview-completed .ui-table-visibility small{color:#4e6d58}
.overview-completed .oc-average,.overview-completed .oc-average b{color:#d71920!important}
.overview-completed .oc-product{color:#d71920}

/* Append cost breakdown below existing progress content; original rows stay intact. */
.rework-cost-summary{margin-top:10px}.rework-cost-summary h3{font-size:12px;margin:0 0 4px}.rework-cost-summary table{width:auto;max-width:100%;border-collapse:collapse;font-size:8pt!important}.rework-cost-summary th,.rework-cost-summary td{font-size:8pt!important;padding:2px 8px!important;border:1px solid #d8e3ef;white-space:normal;overflow-wrap:anywhere}.rework-cost-summary th{text-align:left}.rework-cost-summary td:last-child{text-align:right;font-variant-numeric:tabular-nums}

.overview-completed .oc-reworked-pcs>span{white-space:normal;flex-shrink:1;min-width:0;overflow-wrap:anywhere}.overview-completed .oc-reworked-pcs>b{white-space:nowrap;flex-shrink:0}

/* Product summary strip only; retain the progress rows and status styles. */
.overview-progress .op-product{background:#fff}

/* A1: show confirmed-waiting versus recorded work without changing progress. */
.ov-plan-list .ov-plan-state{display:block;white-space:normal;font-size:11px;line-height:1.25;color:#455f7a}

#completed-plans-report{color:#102747;font-size:12px}#completed-plans-report [hidden]{display:none!important}#completed-plans-report .cp-heading{background:#000;color:#fff;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:10px 12px;margin:0 0 12px}#completed-plans-report .cp-heading h1{color:#fff;font-size:20px;margin:0}#completed-plans-report .cp-tools{display:flex;gap:4px;margin-left:auto}#completed-plans-report .cp-tools button{font-size:11px;padding:4px 6px;white-space:nowrap}#completed-plans-report .cp-controls{display:flex;align-items:flex-end;gap:8px;flex-wrap:wrap;margin-bottom:12px}#completed-plans-report .cp-controls label{display:grid;gap:4px;font-size:11px;font-weight:700;width:auto}#completed-plans-report .cp-controls input,#completed-plans-report .cp-controls select{width:160px;min-width:0;max-width:100%;margin:0}#completed-plans-report .cp-controls input[type=month]{width:150px}#completed-plans-report .cp-controls #cp-plan{width:195px}#completed-plans-report .cp-card{padding:4px 10px 10px!important;margin-bottom:12px;min-width:0}#completed-plans-report .cp-count{font-size:11px;color:#61768d;line-height:15px;margin:0 0 2px}#completed-plans-report h2{font-size:13px;margin:4px 0 6px}#completed-plans-report .table-wrap{overflow:auto;max-height:none;max-width:100%}#completed-plans-report table{width:100%;min-width:0;table-layout:fixed;font-size:11px}#completed-plans-report table th,#completed-plans-report table td{vertical-align:top!important;padding:6px 5px;overflow-wrap:anywhere;text-overflow:clip;white-space:normal}#completed-plans-report table th{background:#eaf3fa;font-size:10px;padding-right:12px!important}#completed-plans-report .cp-head{display:flex;justify-content:space-between;gap:3px;align-items:flex-start}#completed-plans-report .cp-head>span{min-width:0}#completed-plans-report .cp-filter-button{font-size:10px;padding:0 1px;border:0;background:transparent;color:#0864ed;min-width:12px}#completed-plans-report .cp-filter-active{background:#c8e1ff}#completed-plans-report .cp-pair{display:flex;justify-content:space-between;align-items:flex-start;gap:5px;margin-bottom:4px;white-space:nowrap}#completed-plans-report .cp-pair:last-child{margin-bottom:0}#completed-plans-report .cp-pair>*{flex-shrink:0}#completed-plans-report .cp-pair b{font-weight:700;font-variant-numeric:tabular-nums;text-align:right}#completed-plans-report .cp-date b{font-weight:400}#completed-plans-report .cp-average,#completed-plans-report .cp-average b{color:#d71920}#completed-plans-report .cp-plan-link{display:block;font-size:11px;font-weight:700;text-align:left;overflow-wrap:anywhere;white-space:normal}#completed-plans-report .cp-fg{display:block;margin-top:4px;font-size:10px}#completed-plans-report .cp-sequences{display:flex;gap:4px;margin-top:4px;white-space:nowrap;font-size:11px}#completed-plans-report .cp-number{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}#completed-plans-report tfoot td{background:#eaf3fa;font-weight:700}#completed-plans-report .cp-filter{background:#eaf3fa;border:1px solid #cfdeed;border-radius:4px;padding:10px;margin-bottom:10px}#completed-plans-report .cp-filter-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}#completed-plans-report .cp-filter-line{display:flex;align-items:flex-end;gap:7px;flex-wrap:wrap;margin:8px 0}#completed-plans-report .cp-filter-line label{display:grid;gap:3px;width:auto;font-size:11px}#completed-plans-report .cp-filter-line select,#completed-plans-report .cp-filter-line input{width:190px;max-width:100%}#completed-plans-report .cp-values{max-height:180px;overflow:auto;display:flex;flex-wrap:wrap;gap:6px 14px;font-size:11px}#completed-plans-report .cp-values label{display:flex;align-items:flex-start;gap:4px;max-width:100%;overflow-wrap:anywhere}#completed-plans-report .cp-values input{width:auto;min-width:0;margin:3px 0 0}#completed-plans-report #cp-error{font-size:12px;color:#b21920}#completed-plans-report .ui-table-visibility{margin:2px 0}#completed-plans-report .cp-detail-card .ui-table-visibility{margin-bottom:4px}
@media(max-width:1150px){#completed-plans-report .cp-summary{min-width:960px!important}}
@media(max-width:700px){#completed-plans-report .cp-heading{padding:9px}#completed-plans-report .cp-heading h1{font-size:18px}#completed-plans-report .cp-detail-table{min-width:690px!important}}
/* Fit the desktop card; keep paired values together at compact widths. */
#completed-plans-report .cp-card{container-type:inline-size}
#completed-plans-report .cp-summary{min-width:0!important}
@container(max-width:900px){#completed-plans-report .cp-summary td{font-size:10px;padding:5px 3px}#completed-plans-report .cp-summary th{padding:5px 10px 5px 3px!important;font-size:10px}#completed-plans-report .cp-summary .cp-pair{gap:3px}#completed-plans-report .cp-summary .cp-sequences{font-size:10px;gap:3px}}
@media(max-width:700px){#completed-plans-report .cp-summary{min-width:780px!important}}

#completed-plans-report .cp-detail-link{display:block;margin:4px 0 0 auto;padding:0;font-size:10px;text-align:right;white-space:normal;max-width:100%}

/* C1 approved consolidated identifiers, CategoryID rework and labour breakdown. */
#completed-plans-report .cp-plan-metadata{margin-top:9px}
#completed-plans-report .cp-summary .cp-pair>span{white-space:normal;min-width:0;flex-shrink:1}
#completed-plans-report .cp-rework-breakdown{border-top:1px solid #cfdeed;margin-top:7px;padding-top:7px}
#completed-plans-report .cp-rework-total{font-weight:700}
#completed-plans-report .cp-rework-caption{display:block;color:#61768d;font-size:10px;margin:4px 0}
#completed-plans-report .cp-rework-category{font-size:10px}

/* Plan-specific ComponentID summary; actual saved figures, never fixed kettle codes. */
#completed-plans-report .cp-component-caption{font-size:10px;font-weight:700;line-height:1.5;margin-bottom:7px;white-space:normal}
#completed-plans-report .cp-component-summary{margin-bottom:8px}
#completed-plans-report .cp-component-summary:last-child{margin-bottom:0}
#completed-plans-report .cp-component-id{display:block;font-size:10px;overflow-wrap:anywhere;margin-bottom:2px}
#completed-plans-report .cp-component-id small{font-size:10px}
#completed-plans-report .cp-component-values{display:grid;grid-template-columns:minmax(0,1fr) 7px minmax(0,1fr) 7px minmax(0,1fr);gap:2px;text-align:center;font-variant-numeric:tabular-nums;font-size:11px}
#completed-plans-report .cp-component-values b{font-weight:700;white-space:nowrap}

.system-overview-mode.main-page-mode .content{max-width:1000px;padding-top:16px}.system-overview-mode .page-head{margin-bottom:12px}.system-overview-mode .page-head h1{font-size:22px;line-height:1.25}.system-overview-mode .page-head p{font-size:12px;margin-top:5px}
#system-overview{font-size:14px;color:#13264b}#system-overview .so-filters{display:flex;gap:14px;padding:10px 12px;background:#fff;border:1px solid #d9e4ef;border-radius:8px}#system-overview label{flex:1;min-width:0;font-size:12px;font-weight:700}#system-overview select{display:block;width:100%;margin-top:5px;padding:8px 10px;color:#13264b;background:#fff;border:1px solid #ccdcea;border-radius:5px;min-width:0}#system-overview .so-scope{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;color:#586e87;font-size:12px;margin:9px 0}#system-overview #so-report{border:1px solid #d9e4ef;border-radius:8px;overflow:clip;background:#fff}#system-overview table{width:100%;min-width:0;border-collapse:collapse;table-layout:auto}#system-overview th,#system-overview td{padding:8px 10px;border-bottom:1px solid #d9e4ef;text-align:right;vertical-align:middle;font-variant-numeric:tabular-nums}#system-overview thead th{background:#eaf3fc;font-size:12px}#system-overview th:first-child{text-align:left;width:25%;font-size:12px}#system-overview thead th:last-child{text-align:left;width:26%}#system-overview small{display:block;font-size:11px;font-weight:400;color:#586e87}#system-overview .so-due span{display:inline-block;min-width:25px;padding:0 5px;border-radius:5px;background:#fff0f2;color:#be1731;font-weight:700}#system-overview .so-kpi-line{display:grid;grid-template-columns:minmax(35px,1fr) 55px;gap:9px;align-items:center}#system-overview .so-track{height:7px;border-radius:5px;background:#e8eef6;overflow:hidden}#system-overview .so-track span{display:block;height:100%;border-radius:5px;background:linear-gradient(90deg,#0760e7,#429aff)}#system-overview .so-kpi b{font-size:13px}#system-overview tfoot th,#system-overview tfoot td{background:#123653;color:#fff;border-bottom:0;font-weight:700}#system-overview tfoot .so-track{background:#ffffff26}#system-overview tfoot .so-track span{background:#80baff}#system-overview tfoot .so-due span{background:#ffffff19;color:#fff}#system-overview .so-notes{display:flex;justify-content:space-between;gap:6px;flex-wrap:wrap;color:#586e87;font-size:11px;margin-top:8px}#system-overview .so-empty{padding:12px;margin:0;color:#586e87;font-size:13px}
@media(max-width:640px){.system-overview-mode.main-page-mode .content{padding:12px 10px}.system-overview-mode .page-head h1{font-size:18px}.system-overview-mode .page-head{gap:8px}#system-overview .so-filters{gap:8px;padding:8px}#system-overview select{font-size:16px;padding:6px 4px;min-height:44px}#system-overview label{font-size:11px}#system-overview .so-scope{font-size:11px;margin:7px 0}#system-overview table,#system-overview tbody,#system-overview tfoot{display:block}#system-overview thead{display:none}#system-overview tr{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px 8px;padding:8px 9px;border-bottom:1px solid #d9e4ef}#system-overview th,#system-overview td{display:block;border:0;padding:0;text-align:left;font-size:15px;line-height:1.2}#system-overview th:first-child{width:auto;grid-column:1/3;grid-row:1;align-self:center;font-size:12px}#system-overview td:nth-child(2){grid-column:1;grid-row:2}#system-overview td:nth-child(3){grid-column:2;grid-row:2}#system-overview td:nth-child(4){grid-column:3;grid-row:2}#system-overview td:nth-child(5){grid-column:4;grid-row:2}#system-overview td:last-child{grid-column:3/5;grid-row:1;align-self:center}#system-overview td[data-label]:before{content:attr(data-label);display:block;font-size:11px;color:#586e87;margin-bottom:2px}#system-overview td:last-child:before{display:none}#system-overview .so-kpi-line{grid-template-columns:minmax(25px,1fr) 49px;gap:6px}#system-overview .so-kpi b{font-size:12px}#system-overview .so-track{height:6px}#system-overview tfoot tr{background:#123653;border:0}#system-overview tfoot td[data-label]:before{color:#d4e4f4}}
@media print{.system-overview-mode .top-actions,.system-overview-mode .so-filters{display:none!important}#system-overview table{display:table}#system-overview thead{display:table-header-group}#system-overview tbody{display:table-row-group}#system-overview tfoot{display:table-footer-group}#system-overview tr{display:table-row}#system-overview th,#system-overview td{display:table-cell;padding:5px}#system-overview td:before{display:none!important}}
/* Report filters are selection controls, not data-entry fields. */
#system-overview select{background:#fff!important;color:#13264b!important;font-weight:400}
#system-overview tbody th{background:#fff}
@media(max-width:640px){#system-overview .sticky-table-scroll{max-height:none!important;overflow:visible!important}}
#system-overview .so-phone-label{display:none}
/* Summary: compact department headers followed by numbered employee rows. */
#system-overview .so-summary-scroll{overflow:auto}
#system-overview .so-employee-summary{font-size:12px;min-width:560px;table-layout:auto}
#system-overview .so-employee-summary th,#system-overview .so-employee-summary td{padding:5px 8px;font-size:12px;line-height:18px;white-space:nowrap}
#system-overview .so-employee-summary th:first-child,#system-overview .so-employee-summary td:first-child{width:38px!important;text-align:center}
#system-overview .so-employee-summary th:nth-child(2){width:auto!important;text-align:left}
#system-overview .so-employee-summary thead th:last-child{width:80px!important;text-align:right}
#system-overview .so-employee-summary .so-dept-row th,#system-overview .so-employee-summary .so-dept-row td{background:#dceaf7;font-weight:700}
#system-overview .so-employee-summary .so-employee-row th{padding-left:20px;font-weight:400}
#system-overview .so-employee-summary .aq-filter{margin-left:3px;padding:2px 4px;min-height:22px;font-size:11px}
@media screen and (max-width:640px){
 #system-overview .so-filters{display:grid;grid-template-columns:1fr 1fr}
 #system-overview .so-employee-summary{table-layout:auto;min-width:560px}
 #system-overview .so-employee-summary th,#system-overview .so-employee-summary td{padding:5px 7px;font-size:12px;line-height:18px;overflow-wrap:normal}
}
/* Phone portrait: one comparison table, not a tall stack of department cards. */
@media screen and (max-width:640px){
 .system-overview-mode.main-page-mode .content{padding:8px}
 .system-overview-mode .page-head{margin-bottom:8px;gap:5px}
 .system-overview-mode .page-head h1{font-size:16px;line-height:1.2}
 .system-overview-mode .page-head p{display:none}
 #system-overview .so-filters{padding:6px;gap:6px}
 #system-overview select{margin-top:3px}
 #system-overview .so-scope{margin:5px 0;gap:2px}
 #system-overview .so-scope #so-status{font-size:11px}
 #system-overview table{display:table;table-layout:fixed;width:100%}
 #system-overview thead{display:table-header-group}
 #system-overview tbody{display:table-row-group}
 #system-overview tfoot{display:table-footer-group}
 #system-overview tr{display:table-row;padding:0;border:0}
 #system-overview th,#system-overview td{display:table-cell;min-width:0!important;padding:6px 3px;font-size:13px;line-height:1.2;text-align:right;border-bottom:1px solid #d9e4ef;overflow-wrap:anywhere}
 #system-overview thead th{font-size:11px;padding:7px 2px}
 #system-overview th:first-child{width:28%!important;text-align:left;font-size:12px}
 #system-overview th:nth-child(2){width:12%!important}
 #system-overview th:nth-child(3){width:14%!important}
 #system-overview th:nth-child(4){width:15%!important}
 #system-overview th:nth-child(5){width:10%!important}
 #system-overview thead th:last-child{width:21%!important;text-align:right}
 #system-overview td[data-label]:before{display:none}
 #system-overview .so-wide-label,#system-overview tbody th small{display:none}
 #system-overview .so-phone-label{display:inline}
 #system-overview .so-kpi-line{display:block}
 #system-overview .so-track{display:none}
 #system-overview .so-kpi b{font-size:12px;white-space:nowrap}
 #system-overview .so-due span{padding:0 3px;min-width:0}
 #system-overview .so-notes{margin-top:6px;gap:3px}
 .system-overview-mode .footer{margin-top:8px;padding-top:8px}
}


.system-workspace-mode .sidebar{display:flex}.system-workspace-mode .main{margin-left:225px}.system-workspace-mode .brand>span{font-size:13px}.system-workspace-mode .content{max-width:none}.system-workspace-mode #system-workspace-nav summary{white-space:normal}#system-jobs{padding:16px;min-width:0}#system-jobs .sj-controls{gap:6px;flex-wrap:wrap}#system-jobs .sj-scope{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap;margin:12px 0}#system-jobs .sj-scope label{min-width:140px;max-width:280px}#system-jobs .sj-grid{overflow:auto;max-height:65vh}#system-jobs table{font-size:13px;table-layout:auto;min-width:730px}#system-jobs td{vertical-align:top;overflow-wrap:anywhere}#system-jobs th{position:sticky;top:0;z-index:3;white-space:normal;min-width:90px;background:#eaf3fa}#system-jobs .sj-month-grid{min-width:180px;display:grid;grid-template-columns:repeat(6,1fr);gap:3px}#system-jobs .sj-month-grid span{font-size:11px;padding:2px;color:#74859a}#system-jobs .sj-month-grid .sj-month-on{background:#e0efff;color:#005dba}#system-jobs .sj-edit-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:10px}#system-jobs #sj-editor{margin-top:15px}#system-jobs input:not([type=checkbox],[type=radio]),#system-jobs select,#system-jobs textarea{width:100%;min-width:0}#system-jobs label{display:block;font-size:13px}#system-jobs textarea{min-height:65px}#system-jobs .sj-month-editor{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}#system-jobs .sj-month-editor label{display:flex;align-items:center;gap:3px;padding:5px}#system-jobs input[type=checkbox],#system-jobs input[type=radio]{width:17px;height:17px}#system-jobs .sj-history{padding:12px;background:#f3f8fc;margin:10px 0;overflow:auto}#system-jobs .sj-history table{min-width:500px}#system-jobs .sj-details{padding:12px;min-width:0}#system-jobs .sj-detail-head{display:flex;gap:12px;align-items:center;flex-wrap:wrap;font-size:12px;color:#55708c}#system-jobs .sj-task{display:grid;grid-template-columns:1fr 1fr;gap:15px;border:1px solid #d4e2ed;border-radius:8px;padding:12px;margin:10px 0;background:white}#system-jobs .sj-task>div{min-width:0}#system-jobs .sj-task label{margin:6px 0}#system-jobs .sj-files{font-size:12px;overflow-wrap:anywhere}#system-jobs summary{color:#0969c4;padding:6px 0;cursor:pointer}#system-jobs .sj-action summary,#system-jobs .sj-action textarea{color:#d7183e}#system-jobs .sj-copy-row{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:10px;padding:10px 0;border-bottom:1px solid #d4e2ed}#system-jobs .sj-filter-menu{position:fixed;z-index:1000;max-width:calc(100vw - 16px);width:300px;max-height:470px;overflow:auto;background:white;padding:12px}#system-jobs #sj-filter-values{max-height:160px;overflow:auto}#system-jobs #sj-filter-values label{display:flex;align-items:center;gap:6px;font-size:12px;padding:3px}#system-jobs .sj-filter-menu>input,#system-jobs .sj-filter-menu>select{margin:5px 0}
@media(max-width:800px){.system-workspace-mode .main{margin-left:0}.system-workspace-mode .sidebar{display:none}.system-workspace-mode .sidebar.mobile-open{display:flex}.system-workspace-mode .content{padding:12px}#system-jobs{padding:10px}#system-jobs .sj-controls button{font-size:12px;padding:8px}#system-jobs .sj-edit-fields,#system-jobs .sj-task,#system-jobs .sj-copy-row{grid-template-columns:1fr}#system-jobs .sj-scope label{min-width:110px;flex:1}#system-jobs input:not([type=radio],[type=checkbox]),#system-jobs select,#system-jobs textarea{font-size:16px}#system-jobs .sj-history{padding:8px}}
@media(pointer:coarse){#system-jobs button,#system-jobs summary,#system-jobs .sj-month-editor label{min-height:44px}}
.system-workspace-mode .main{margin-left:225px}
@media(max-width:800px){.system-workspace-mode .main{margin-left:0}.system-workspace-mode .sidebar{position:static;display:flex;width:100%;height:auto;min-height:0}.system-workspace-mode .brand,.system-workspace-mode .identity,.system-workspace-mode .navtitle{display:none}.system-workspace-mode .nav{display:flex;gap:4px;flex-wrap:wrap;padding:8px;max-height:none;overflow:visible}.system-workspace-mode #system-workspace-nav,.system-workspace-mode .nav details,.system-workspace-mode .nav .sub,.system-workspace-mode .nav .workspace-nav-row{display:contents}.system-workspace-mode .nav summary,.system-workspace-mode .nav .workspace-tab-link{display:none}.system-workspace-mode .nav a{margin:0;padding:8px 8px 8px 20px;font-size:11px}.system-workspace-mode .mw-back{font-size:11px;padding:7px;width:auto;margin:0}.system-workspace-mode .nav .sub a:before{left:7px;top:14px;width:6px;height:6px}}

#system-jobs .sj-controls{justify-content:flex-start}.system-workspace-mode .content{padding-top:18px}@media(min-width:801px) and (max-width:1100px){.system-workspace-mode .main{margin-left:180px}}

/* B1 compact annual matrix. Preserve readable input sizes without tall row defaults. */
#system-jobs.sj-annual{padding:10px 12px}
#system-jobs.sj-annual .sj-scope{display:flex;gap:16px;margin:8px 0;align-items:end}
#system-jobs.sj-annual .sj-scope label{min-width:0;max-width:none}
#system-jobs.sj-annual .sj-scope label:first-child{width:230px}
#system-jobs.sj-annual .sj-scope label:nth-of-type(3){width:80px}
#system-jobs.sj-annual #sj-department{display:block;font-size:13px;padding:6px 0}
#system-jobs.sj-annual #sj-status{margin:5px 0;font-size:12px}
#system-jobs.sj-annual .sj-grid{max-height:72vh;isolation:isolate}
#system-jobs.sj-annual table.sj-matrix{width:1304px;min-width:1304px;table-layout:fixed;border-collapse:separate;border-spacing:0;font-size:12px}
#system-jobs.sj-annual .sj-matrix th,#system-jobs.sj-annual .sj-matrix td{min-width:0;padding:2px 3px!important;border-right:1px solid #d4e1ed;border-bottom:1px solid #d4e1ed;overflow-wrap:anywhere;line-height:16px!important;vertical-align:middle}
#system-jobs.sj-annual .sj-matrix thead tr:first-child th{top:0;height:24px!important;z-index:5}
#system-jobs.sj-annual .sj-matrix thead tr:nth-child(2) th{top:28px;height:30px!important;z-index:5}
#system-jobs.sj-annual .sj-matrix .sj-group{text-align:center;background:#dbeaf7}
#system-jobs.sj-annual .sj-matrix td:nth-child(-n+2){position:sticky;background:white;z-index:2}
#system-jobs.sj-annual .sj-matrix td:first-child,#system-jobs.sj-annual .sj-matrix thead tr:first-child th:first-child{left:0;position:sticky}
#system-jobs.sj-annual .sj-matrix td:nth-child(2),#system-jobs.sj-annual .sj-matrix thead tr:first-child th:nth-child(2){left:40px;position:sticky;box-shadow:2px 0 0 #a8bed3}
#system-jobs.sj-annual .sj-matrix thead tr:first-child th:nth-child(-n+2){z-index:8}
#system-jobs.sj-annual .sj-matrix input:not([type=checkbox]){padding:3px!important;height:26px!important;min-height:0!important;max-height:26px;font-size:12px!important;line-height:18px!important;margin:0!important;border-radius:2px}
#system-jobs.sj-annual .sj-matrix button:not(.aq-filter){padding:2px 4px!important;min-width:22px;min-height:24px!important;height:24px;font-size:12px;line-height:16px!important;margin:0!important}
#system-jobs.sj-annual .sj-matrix .sj-star{color:#065ed7;font-weight:bold;background:#edf5ff}
#system-jobs.sj-annual .sj-matrix .sj-star.sj-filled{color:#d71935!important;background:#fff0f2;border-color:#f1bdc6}
#system-jobs.sj-annual .sj-matrix .sj-month-cell{text-align:center;color:#0667d5}
#system-jobs.sj-annual .sj-matrix input[type=checkbox]{width:18px!important;min-width:18px!important;max-width:18px!important;height:18px!important;min-height:0!important;padding:0!important;margin:3px!important;vertical-align:middle;box-sizing:border-box}
#system-jobs.sj-annual .sj-matrix .aq-filter{padding:0!important;min-width:10px;width:11px;height:18px;min-height:0!important;margin:0;float:right;font-size:10px;line-height:16px}
#system-jobs.sj-annual .sj-matrix .sj-selected td{background:#eef5ff}
#system-jobs.sj-annual .ui-table-visibility{position:sticky;left:0;max-width:100%;box-sizing:border-box;margin:4px 0}
#system-jobs.sj-annual .ui-table-visibility button,#system-jobs.sj-annual .sj-controls button{padding:5px 7px;min-height:28px;font-size:12px}
#system-jobs.sj-annual #sj-panel:not(:empty){position:fixed;z-index:1100;right:24px;top:20vh;width:min(600px,calc(100vw - 32px));max-height:65vh;overflow:auto;background:white;border:1px solid #b8ccdf;border-radius:10px;box-shadow:0 10px 40px #16385844;padding:12px}
#system-jobs.sj-annual #sj-panel:empty{display:none}
#system-jobs.sj-annual #sj-panel .sj-history{margin:0}
#system-jobs.sj-annual #sj-panel textarea{width:100%;min-height:120px}
#system-jobs .sj-file-row{display:flex;gap:12px;align-items:center;margin:8px 0}
@media(max-width:700px){#system-jobs.sj-annual .sj-scope{display:grid;grid-template-columns:1fr 1fr;gap:8px}#system-jobs.sj-annual .sj-scope label:first-child{width:auto}#system-jobs.sj-annual table.sj-matrix{width:1244px;min-width:1244px}#system-jobs.sj-annual .sj-matrix col:nth-child(2){width:150px!important}#system-jobs.sj-annual #sj-panel:not(:empty){right:8px;width:calc(100vw - 16px)}}

#system-jobs.sj-annual .sj-owner{display:block;font-size:11px;color:#55708c;line-height:15px;margin-bottom:2px}
/* B2 monthly day-by-day list. */
#system-jobs.sj-progress{padding:12px 14px}#system-jobs.sj-progress .sj-grid{max-height:none;overflow:visible}#system-jobs.sj-progress .sj-calendar{border:1px solid #d6e3ed;border-radius:6px;overflow:hidden;background:#fff}#system-jobs.sj-progress .sj-calendar-heading{padding:12px 14px;font-size:18px;font-weight:600;color:#11344e}#system-jobs.sj-progress .sj-day{display:grid;grid-template-columns:82px minmax(0,1fr) 36px;gap:8px;padding:13px 10px;min-height:52px;border-top:1px solid #d6e3ed;position:relative;scroll-margin-top:80px}#system-jobs.sj-progress .sj-weekend{background:#f6f9fb}#system-jobs.sj-progress .sj-today .sj-day-date b{color:#0968d9}#system-jobs.sj-progress .sj-day-date{display:flex;align-items:flex-start;gap:5px;font-size:13px;line-height:24px;white-space:nowrap}#system-jobs.sj-progress .sj-day-date span{color:#71869a}#system-jobs.sj-progress .sj-day-content{min-width:0}#system-jobs.sj-progress .sj-day-empty{font-size:16px;line-height:24px;color:#7c91a4}#system-jobs.sj-progress .sj-day-add{padding:0;min-height:30px;height:30px;min-width:30px;border:0;background:transparent;color:#187c99;font-size:21px;line-height:28px;align-self:start}#system-jobs.sj-progress .sj-job-title{display:inline-block;background:transparent;border:0;padding:0;text-align:left;color:#12354b;font-size:16px;font-weight:600;line-height:22px;min-height:24px;overflow-wrap:anywhere}#system-jobs.sj-progress .sj-overdue-text{color:#d71935}#system-jobs.sj-progress .sj-day-summary{color:#73879b;font-size:12px;line-height:19px;margin:2px 0}#system-jobs.sj-progress .sj-calendar-job-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:6px}#system-jobs.sj-progress .sj-expand{background:transparent;border:0;padding:4px;color:#187899;font-size:12px}#system-jobs.sj-progress .sj-job-status{display:inline-block;font-size:11px;padding:5px 8px;border-radius:6px;background:#edf4f6;color:#627d8e}#system-jobs.sj-progress .sj-overdue{background:#fff0f3;color:#da2546}#system-jobs.sj-progress .sj-completed{background:#edf5f0;color:#2d7659}#system-jobs.sj-progress .sj-calendar-job+.sj-calendar-job{border-top:1px solid #d6e3ed;margin-top:10px;padding-top:10px}#system-jobs.sj-progress .sj-calendar-expanded{margin-top:10px;padding-top:8px;border-top:1px solid #d6e3ed}#system-jobs.sj-progress .sj-day-total{border-top:1px solid #d6e3ed;padding-top:6px;margin-top:6px}#system-jobs.sj-progress .sj-details{padding:8px 0}#system-jobs.sj-progress .sj-task{padding:10px;margin:8px 0;gap:10px}#system-jobs.sj-progress .sj-calendar-filter{margin:4px 0 8px}#system-jobs.sj-progress .sj-calendar-filter>div{display:flex;gap:6px;flex-wrap:wrap}#system-jobs.sj-progress .sj-calendar-filter>div>span{display:inline-flex;gap:6px;align-items:center;padding:4px 7px;border:1px solid #d5e2ee;background:#edf5fc;font-size:12px}#system-jobs.sj-progress .sj-calendar-filter .aq-filter{margin:0;padding:2px 4px}#system-jobs.sj-progress #sj-editor{margin-top:6px;padding:10px;background:#f4f8fb;border:1px solid #c9dceb;border-radius:6px}#system-jobs.sj-progress #sj-editor:empty{display:none}#system-jobs.sj-progress #sj-editor h2{font-size:16px;margin:0 0 8px}#system-jobs.sj-progress .sj-task input[type=checkbox]{width:18px!important;min-width:18px!important;max-width:18px!important;height:18px;padding:0!important}#system-jobs.sj-progress .sj-scope{margin:8px 0;gap:8px}
@media(max-width:700px){#system-jobs.sj-progress{padding:9px}#system-jobs.sj-progress .sj-day{grid-template-columns:52px minmax(0,1fr) 25px;gap:5px;padding:10px 6px}#system-jobs.sj-progress .sj-day-date{gap:3px;font-size:11px}#system-jobs.sj-progress .sj-day-add{min-width:24px;font-size:20px}#system-jobs.sj-progress .sj-job-title{font-size:15px}#system-jobs.sj-progress .sj-calendar-heading{font-size:17px;padding:10px}#system-jobs.sj-progress .sj-calendar-filter>div>span{font-size:11px}#system-jobs.sj-progress #sj-editor{padding:7px}#system-jobs.sj-progress .sj-scope button{padding:7px;font-size:11px}#system-jobs.sj-progress .sj-task{padding:7px}#system-jobs.sj-progress .sj-day-summary{font-size:11px;line-height:17px}}

#system-jobs.sj-progress #sj-panel:not(:empty){position:fixed;z-index:1100;top:12vh;right:24px;width:min(720px,calc(100vw - 32px));max-height:76vh;overflow:auto;background:white;border:1px solid #b8ccdf;border-radius:8px;padding:10px;box-shadow:0 10px 40px #16385844}#system-jobs.sj-progress #sj-panel .sj-history{margin:0}#system-jobs.sj-progress .sj-editor-actions{justify-content:flex-start;margin-top:8px}@media(max-width:700px){#system-jobs.sj-progress #sj-panel:not(:empty){right:8px;width:calc(100vw - 16px)}}

#system-jobs.sj-annual .sj-total{display:flex;align-items:center;gap:7px;padding:6px 9px;background:#edf5fc;border-radius:5px;font-size:13px;white-space:nowrap}#system-jobs.sj-annual .sj-total strong{font-size:17px;color:#105fbd}

/* B2 retains B1 source samples separately from monthly submissions. */
#system-jobs.sj-progress .sj-scope{position:sticky;top:0;z-index:15;background:white;border:1px solid #d6e3ed;border-radius:6px;padding:10px}
#system-jobs.sj-progress #sj-progress-department{display:block;padding:8px 0;font-weight:600}
#system-jobs.sj-progress .sj-source-reference{padding:6px 0;border-bottom:1px solid #d6e3ed}
#system-jobs.sj-progress .sj-source-reference small{color:#607d96;font-size:12px}
#system-jobs.sj-progress .sj-source-reference p{white-space:pre-wrap;margin:5px 0}
#system-jobs.sj-progress .sj-filled-reference{color:#d71935;font-weight:600}
#system-jobs.sj-progress .sj-recipient-name{font-size:12px;margin-top:5px;color:#355978}
#system-jobs.sj-progress .sj-sample-reference{font-size:12px}
#system-jobs.sj-progress .sj-legacy-recipient{padding:5px 0}
#system-jobs.sj-progress .sj-copy-row small{display:block;color:#607d96}
#system-jobs.sj-annual .sj-scope{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr) 65px 100px;gap:10px;align-items:end}
#system-jobs.sj-annual .sj-scope label,#system-jobs.sj-annual .sj-scope label:first-child,#system-jobs.sj-annual .sj-scope label:nth-of-type(3){width:auto;min-width:0;font-size:12px}
#system-jobs.sj-annual .sj-scope select,#system-jobs.sj-annual .sj-scope input{min-width:0;max-width:100%;height:34px;padding:5px;font-size:13px}
#system-jobs.sj-annual .sj-scope #sj-department{font-size:12px;padding:5px 0;min-height:34px;overflow-wrap:anywhere}
#system-jobs.sj-annual .sj-total{display:flex;flex-direction:column;align-items:flex-start;gap:2px;padding:0;background:none;font-size:12px;white-space:normal}
#system-jobs.sj-annual .sj-total strong{display:flex;align-items:center;min-height:34px;color:#d71935;font-size:17px}
#system-jobs.sj-annual #sj-status{color:#d71935}
#system-jobs.sj-annual #sj-status:empty{display:none}
#system-jobs.sj-progress .sj-amendments{margin:8px 0;padding:5px 0;border-top:1px solid #d6e3ed}
#system-jobs.sj-progress .sj-amendments article{margin:8px 0;padding:8px;background:#f6f9fc;border:1px solid #d6e3ed;border-radius:5px}
#system-jobs.sj-progress .sj-amendments table{min-width:0!important;width:100%!important;table-layout:fixed;font-size:12px}
#system-jobs.sj-progress .sj-amendments col{width:33.333%!important;min-width:0!important}
#system-jobs.sj-progress .sj-amendments th{position:static;min-width:0!important;width:auto!important;white-space:normal;padding:5px}
#system-jobs.sj-progress .sj-amendments td{padding:5px;overflow-wrap:anywhere;white-space:pre-wrap}
#system-jobs.sj-progress .sj-amendments p{white-space:pre-wrap;font-size:12px}
#system-jobs.sj-annual table.sj-matrix{width:1400px;min-width:1400px}
#system-jobs.sj-annual .sj-routine-value{display:flex;align-items:center;gap:4px;white-space:nowrap}
#system-jobs.sj-annual .sj-routine-value select{flex:1;width:0!important;min-width:0!important;max-width:100%;height:26px;min-height:0;padding:2px!important;font-size:12px!important}
#system-jobs.sj-annual .sj-routine-value button{flex:none}
#system-jobs.sj-progress .sj-day{grid-template-columns:82px minmax(0,1fr)}
@media(max-width:700px){#system-jobs.sj-annual table.sj-matrix{width:1340px;min-width:1340px}#system-jobs.sj-progress .sj-day{grid-template-columns:52px minmax(0,1fr)}}
.system-workspace-mode #system-workspace-nav .workspace-tab-link{display:inline-flex;align-items:center;justify-content:center;min-height:30px}
.system-workspace-mode #system-workspace-nav .workspace-tab-link:before{display:none}
@media(max-width:800px){.system-workspace-mode #system-workspace-nav .workspace-nav-row{display:inline-flex;align-items:center;max-width:100%;gap:0}.system-workspace-mode #system-workspace-nav .workspace-tab-link{display:inline-flex;padding:5px 4px;width:28px;min-width:28px;min-height:34px;font-size:17px}}
#system-jobs.sj-annual .sj-matrix .sj-month-heading{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px}
#system-jobs.sj-annual .sj-matrix .sj-month-heading .aq-filter{float:none;flex:none;display:block;margin:0}
#system-jobs.sj-progress .sj-job-compact{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
#system-jobs.sj-progress .sj-job-compact .sj-calendar-job-head{flex:1;min-width:140px}
#system-jobs.sj-progress .sj-job-compact .sj-day-summary{margin:0}
#system-jobs.sj-progress .sj-job-compact .sj-calendar-job-foot{margin:0;gap:8px;flex-shrink:0}
@media(max-width:700px){#system-jobs.sj-annual .sj-scope{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr) 52px 73px;gap:6px}#system-jobs.sj-annual .sj-scope label{font-size:11px}#system-jobs.sj-annual .sj-scope select,#system-jobs.sj-annual .sj-scope input{font-size:16px;padding:4px 2px}#system-jobs.sj-annual .sj-total{font-size:11px}#system-jobs.sj-progress .sj-job-compact{gap:5px 10px}#system-jobs.sj-progress .sj-job-compact .sj-job-title{font-size:14px}}
#system-jobs.sj-progress .sj-copy-row input[type=checkbox]{min-width:18px!important;width:18px!important;max-width:18px!important;padding:0!important}
#system-jobs.sj-progress #sj-library-rows{max-height:48vh;overflow:auto}
@media(max-width:700px){#system-jobs.sj-progress .sj-scope{padding:7px;gap:7px}#system-jobs.sj-progress .sj-scope label{min-width:110px;max-width:none}#system-jobs.sj-progress .sj-scope button{flex:1}#system-jobs.sj-progress .sj-task input[type=file]{max-width:100%;font-size:12px}#system-jobs.sj-progress #sj-progress-department{font-size:12px;padding:5px 0}}
#system-jobs.sj-progress .sj-job-history{max-height:73vh;overflow:auto;position:relative}
#system-jobs.sj-progress .sj-history-pin{position:sticky;top:0;z-index:35;background:#f1f7fb;padding:6px 0;box-shadow:0 2px 2px #b8c6d2}
#system-jobs.sj-progress .sj-history-pin>.actions{margin:0 0 5px}
#system-jobs.sj-progress .sj-detail-head,#system-jobs.sj-progress .sj-source-reference,#system-jobs.sj-progress .sj-task,#system-jobs.sj-progress .sj-task input,#system-jobs.sj-progress .sj-task textarea,#system-jobs.sj-progress .sj-source-reference a,#system-jobs.sj-progress .sj-task a,#system-jobs.sj-progress .sj-source-reference small{color:#d71935!important}
#system-jobs.sj-progress .sj-source-reference strong,#system-jobs.sj-progress .sj-task strong{color:#d71935!important}
#system-jobs.sj-progress .sj-recipient-line{display:flex;align-items:baseline;justify-content:space-between;gap:8px;flex-wrap:wrap;margin:5px 0}
#system-jobs.sj-progress .sj-recipient-line>.sj-sample-reference{margin:0 0 0 auto;min-width:110px;text-align:right}
#system-jobs.sj-progress .sj-recipient-line>.sj-sample-reference[open]{max-width:65%}
#system-jobs.sj-progress .sj-legacy-recipient{padding:0}
#system-jobs.sj-progress .sj-processed{background:#17663b!important;color:#fff!important;border-color:#17663b!important;font-weight:700;padding:7px 12px;margin:6px 0}
#system-jobs.sj-progress .sj-processed:disabled{opacity:.55}
#system-jobs.sj-progress .sj-processed-stamp{display:block;font-size:11px;color:#d71935}
#system-jobs.sj-progress .sj-task input[data-process-proof]{display:none!important}
#system-jobs.sj-progress .sj-past-box{background:#e5e7eb;border:1px solid #9ca3af;border-radius:7px;padding:10px;margin:10px 0}
#system-jobs.sj-progress .sj-past-box>.actions{position:sticky;top:0;background:#e5e7eb;z-index:40}
#system-jobs.sj-progress .sj-past-scroll{overflow:auto;max-height:55vh}
#system-jobs.sj-progress .sj-past-box table{width:max-content;min-width:100%;font-size:12px}
#system-jobs.sj-progress .sj-past-box th{background:#cfd3d8;position:sticky;top:0;white-space:nowrap}
#system-jobs.sj-progress .sj-past-box td{color:#d71935;background:#f1f2f4;max-width:240px;white-space:pre-wrap;overflow-wrap:anywhere}
#system-jobs.sj-progress .sj-past-box td a{color:#d71935}
#system-jobs.sj-progress .sj-amended-tools{margin:6px 0}
@media(max-width:700px){#system-jobs.sj-progress .sj-history-pin .actions{font-size:12px;gap:4px}#system-jobs.sj-progress .sj-history-pin .actions button{padding:5px;font-size:11px}#system-jobs.sj-progress .sj-job-history{max-height:70vh}#system-jobs.sj-progress .sj-recipient-line{font-size:13px}}
#system-jobs.sj-progress .sj-history-pin tbody td{color:#d71935}
#system-jobs.sj-progress .sj-task textarea{background:white!important}
#system-jobs.sj-progress .sj-detail-head,#system-jobs.sj-progress .sj-detail-head strong,#system-jobs.sj-progress .sj-detail-head span,#system-jobs.sj-progress .sj-source-reference>small,#system-jobs.sj-progress .sj-task>div>b{color:#000!important}
#system-jobs.sj-progress .sj-process-row{display:flex;gap:10px;align-items:baseline;flex-wrap:wrap}
#system-jobs.sj-progress .sj-process-row .sj-action{flex:1;min-width:180px;margin:0}
#system-jobs.sj-progress .sj-task input[data-task-files]{display:none!important}
#system-jobs.sj-progress .sj-proof{font-size:11px;padding:4px 8px;min-height:26px;color:#000}
#system-jobs.sj-progress .sj-detail-head .link-button{color:#000!important}
#system-jobs.sj-progress .sj-calendar{overflow:visible}
#system-jobs.sj-progress .sj-active-job>.sj-job-compact{position:sticky;top:var(--sj-scope-height,88px);z-index:14;background:#fff;border-bottom:1px solid #cbd9e5;padding:6px 4px;box-shadow:0 2px 3px #d5dfe8}
#system-jobs.sj-progress .sj-process-row .sj-proof{background:#17663b!important;color:#fff!important;border-color:#17663b!important;font-weight:700;padding:7px 12px;min-height:34px;font-size:13px}
#system-jobs.sj-progress .sj-process-row .sj-processed{margin:6px 0}
#system-jobs.sj-progress .sj-task{grid-template-columns:minmax(0,1fr)}
#system-jobs.sj-progress .sj-process-row .sj-action{min-width:190px}
#system-jobs.sj-progress .sj-page-pin{position:sticky;top:0;z-index:30;background:#fff;padding:6px 0;border-bottom:1px solid #d6e3ed}
#system-jobs.sj-progress .sj-page-pin .sj-controls{margin:0 0 5px}
#system-jobs.sj-progress .sj-page-pin .sj-scope{position:static;margin:0;padding:7px}
#system-jobs.sj-progress .sj-task .sj-action summary,#system-jobs.sj-progress .sj-task .sj-action textarea{color:#000!important}
#system-jobs.sj-progress .sj-overdue-text{color:#000!important}
#system-jobs.sj-progress .sj-day{grid-template-columns:170px minmax(0,1fr)}
#system-jobs.sj-progress .sj-day-date{flex-wrap:wrap;align-content:start}
#system-jobs.sj-progress .sj-day-date .sj-day-overdue{background:#f00;color:#000;font-size:11px;padding:1px 5px;border-radius:3px;line-height:23px}
#system-jobs.sj-progress .sj-active-job>.sj-job-compact{background:#e5e7eb;color:#000}
#system-jobs.sj-progress .sj-active-job>.sj-job-compact *{color:#000!important}
#system-jobs.sj-progress .sj-active-job>.sj-job-compact .sj-job-status{background:transparent}
#system-jobs.sj-progress .sj-edit-fields input[readonly]{background:#eef0f2!important;color:#000!important;cursor:default}
@media(max-width:700px){#system-jobs.sj-progress .sj-day{grid-template-columns:52px minmax(0,1fr)}#system-jobs.sj-progress .sj-day-date .sj-day-overdue{font-size:10px;padding:1px 2px;line-height:20px}#system-jobs.sj-progress .sj-page-pin .sj-controls{gap:4px}#system-jobs.sj-progress .sj-page-pin .sj-controls button{font-size:11px;padding:5px 6px;min-height:30px}}
#system-jobs #sj-editor .sj-task .sj-action textarea{color:#000!important;-webkit-text-fill-color:#000!important;background:#fff!important}
#system-jobs #sj-editor .sj-edit-fields input[readonly]{color:#000!important;-webkit-text-fill-color:#000!important;background:#eef0f2!important}
#system-jobs.sj-progress .sj-job-status.sj-completed,#system-jobs.sj-progress .sj-expand{background:#bfc4c9!important;color:#000!important;font-weight:700!important;border-radius:5px;padding:6px 10px}
#system-jobs.sj-progress .sj-day-date .sj-day-overdue{color:#fff!important}
#system-jobs.sj-progress .sj-processed-stamp{color:#000!important}
#system-jobs.sj-progress .sj-task .sj-action>summary{display:inline-block;background:#17663b;color:#fff!important;font-weight:700;border-radius:5px;padding:8px 12px;list-style:none;cursor:pointer}
#system-jobs.sj-progress .sj-task .sj-action>summary::-webkit-details-marker{display:none}
#system-jobs.sj-progress .sj-doc-panel[hidden]{display:none!important}
#system-jobs.sj-progress .sj-doc-panel{margin:6px 0;padding:7px;background:#f0f2f4;display:flex;gap:8px;flex-wrap:wrap;align-items:center}
#system-jobs.sj-progress .sj-doc-panel a{color:#000!important;font-size:12px;font-weight:600}
#system-jobs.sj-progress .sj-task .sj-doc-panel button{background:#17663b;color:#fff;border-color:#17663b;font-weight:700}
#system-jobs.sj-progress .sj-process-row .sj-processed,#system-jobs.sj-progress .sj-process-row .sj-proof,#system-jobs.sj-progress .sj-process-row .sj-action>summary{background:#17663b!important;color:#fff!important;border-color:#17663b!important;opacity:1!important}

#system-jobs .sj-last-updated{display:block;color:#000;font-size:12px;margin:5px 0 8px}

/* Release200: distinguish non-routine month selections without changing their values. */
#system-jobs.sj-annual .sj-non-routine input[data-month]{appearance:none;-webkit-appearance:none;display:inline-grid;place-content:center;background:#e5e7eb!important;border:1px solid #9ca3af;border-radius:3px;color:#111!important;cursor:pointer}
#system-jobs.sj-annual .sj-non-routine input[data-month]::before{content:'âœ“';font-size:15px;font-weight:800;line-height:1;visibility:hidden}
#system-jobs.sj-annual .sj-non-routine input[data-month]:checked::before{visibility:visible}
#system-jobs.sj-annual .sj-non-routine input[data-month]:focus-visible{outline:2px solid #235f9a;outline-offset:2px}

/* Release201: non-routine month marks, distinct same-day jobs and date-size headings. */
#system-jobs.sj-annual .sj-non-routine .sj-month-cell b{color:#d71935!important}
#system-jobs.sj-annual .sj-routine-no{color:#000!important}
#system-jobs.sj-progress .sj-job-compact .sj-job-title,#system-jobs.sj-progress .sj-job-number{font-size:13px;line-height:24px}
#system-jobs.sj-progress .sj-job-number{font-weight:700;white-space:nowrap;margin-right:6px;color:#111}
@media(max-width:700px){#system-jobs.sj-progress .sj-job-compact .sj-job-title,#system-jobs.sj-progress .sj-job-number{font-size:11px}}

#system-jobs .sj-proof-reminder{display:block;color:#155e36;font-weight:600;margin:6px 0;font-size:12px}

/* COMPLETED remains distinct from the grey Expand button. */
#system-jobs.sj-progress .sj-job-status.sj-completed{background:#ffeb00!important;color:#000!important;font-weight:700!important}

/* Phone navigation keeps native expandable groups; closed details must retain
   their visible headings instead of being flattened with display:contents. */
@media(max-width:800px){
 .system-workspace-mode .nav{display:block}
 .system-workspace-mode #system-workspace-nav{display:block}
 .system-workspace-mode #system-workspace-nav details{display:block;width:100%;max-width:none}
 .system-workspace-mode #system-workspace-nav summary{display:flex;align-items:center;min-height:44px}
 .system-workspace-mode #system-workspace-nav .sub{display:block}
 .system-workspace-mode #system-workspace-nav .workspace-nav-row{display:flex;width:100%;max-width:100%}
 .system-workspace-mode #system-workspace-nav .sub a:first-child{min-height:40px;display:flex;align-items:center}
 .system-workspace-mode #system-workspace-nav [hidden]{display:none!important}
}

/* Override the older #system-jobs label/field minimums that forced wrapping. */
#system-jobs .job-read-access{flex:1 1 100%;width:100%;gap:6px;align-items:flex-end}
#system-jobs .job-read-access label,#employee-kpi .job-read-access label{min-width:0;max-width:none;flex:0 0 auto;display:grid}
#system-jobs .job-read-access [data-job-department],#employee-kpi .job-read-access [data-job-department]{width:80px}
#system-jobs .job-read-access [data-job-section],#employee-kpi .job-read-access [data-job-section]{width:100px}
#system-jobs .job-read-access [data-job-person],#employee-kpi .job-read-access [data-job-person]{width:180px}
#system-jobs .job-read-access [data-job-empid],#employee-kpi .job-read-access [data-job-empid]{width:65px}
#system-jobs .job-read-access [data-job-read-password],#employee-kpi .job-read-access [data-job-read-password]{width:135px}
#system-jobs .job-read-access [data-job-read-view],#employee-kpi .job-read-access [data-job-read-view]{flex:0 0 auto;white-space:nowrap}
#system-jobs.sj-annual>.sj-controls{justify-content:flex-end;margin-bottom:8px}
#system-jobs.sj-annual>.sj-summary-tools{display:flex;justify-content:flex-end;align-items:flex-end;gap:12px;margin:0 0 8px}
#system-jobs.sj-annual>.sj-summary-tools label{min-width:0;width:70px;margin:0}
#system-jobs.sj-annual>.sj-summary-tools .sj-total{min-width:95px;text-align:right;margin:0}
#system-jobs.sj-annual>.sj-scope{margin-top:8px}


#system-jobs.sj-annual>.sj-scope{display:block}
#system-jobs .job-read-access>label,#system-jobs.sj-annual .sj-scope .job-read-access>label{width:auto;min-width:0;flex:0 0 auto}
#system-jobs.sj-progress .sj-scope{display:flex;align-items:flex-end;gap:6px}
#system-jobs.sj-progress .sj-scope>.job-read-access{display:contents}
#system-jobs.sj-progress .sj-scope>label{min-width:0;max-width:none;width:120px;flex:0 0 auto;margin:0}
#system-jobs.sj-progress .sj-scope .job-read-access>label{min-width:0;max-width:none;width:auto;flex:0 0 auto;margin:0}
#system-jobs.sj-progress .sj-controls{justify-content:flex-end}
#system-jobs.sj-progress .sj-controls>button,#system-jobs.sj-annual .sj-controls>button{font-size:12px;line-height:1.2;padding:6px 8px;min-height:28px}
@media(min-width:801px){#system-jobs .job-read-access select,#system-jobs .job-read-access input,#system-jobs.sj-progress #sj-period{height:28px;min-height:28px;padding:4px 5px;font-size:12px}#system-jobs .job-read-access [data-job-read-view]{height:28px;min-height:28px;font-size:12px;padding:4px 8px}}

#system-jobs .sj-email-mgmt{display:inline-flex;align-items:center;gap:6px;flex:0 1 auto;width:auto;min-width:0;max-width:100%;margin:0;padding:7px 9px;border:1px solid #bfd4e9;border-radius:5px;background:#eef5fb;color:#163c60;font-size:12px;font-weight:600;line-height:1.3;cursor:pointer}
#system-jobs .sj-email-mgmt input[type=checkbox]{width:17px;height:17px;min-height:0;margin:0;padding:0;flex:none;accent-color:#166c43}
#system-jobs .sj-email-mgmt:has(input:checked){background:#e6f4eb;border-color:#1b7048;color:#135b39}
#system-jobs .sj-email-mgmt:has(input:disabled){cursor:default;opacity:.75}
#system-jobs .sj-email-mgmt-stamp{display:block;margin:4px 0 7px;color:#456477}

#system-jobs .sj-attachment-limit{display:block;font-size:5pt;line-height:1.35;color:#234b70;margin:3px 0}

#system-jobs .sj-proof-control{display:inline-block;position:relative}
#system-jobs .sj-proof-control .sj-proof-warning{position:absolute;bottom:calc(100% + 4px);left:0;width:240px;max-width:60vw;font-size:7pt;line-height:1.35;margin:0;color:#234b70}

#system-jobs.sj-progress .sj-process-row:has(.sj-proof-warning){padding-top:34px}

.job-read-access{display:flex;align-items:flex-end;gap:6px;flex-wrap:wrap;max-width:100%;min-width:0}.job-read-access label{display:grid;gap:4px;margin:0;font-size:inherit}.job-read-access select,.job-read-access input{min-width:0!important;max-width:100%;box-sizing:border-box}.job-read-access [data-job-department],.job-read-access [data-job-section]{width:105px}.job-read-access [data-job-person]{width:180px}.job-read-access [data-job-empid]{width:75px;background:#edf3f8}.job-read-access [data-job-read-password]{width:135px;text-transform:none}.job-read-access [data-job-read-status]{flex-basis:100%}.job-read-access .job-read-error{color:#c31f1f}.sj-scope>.job-read-access{flex:1 1 640px}#employee-kpi .ek-selectors{display:flex;flex-wrap:wrap}#employee-kpi .job-read-access{flex-basis:100%}@media(max-width:650px){.job-read-access [data-job-person]{width:160px}.sj-scope>.job-read-access{flex-basis:100%}}

/* One shared entry row: DeptID first, period/summary at the right. */
#system-jobs.sj-progress .sj-scope{display:block}
#system-jobs.sj-progress .sj-scope>.job-read-access,#system-jobs.sj-annual .sj-scope>.job-read-access,#employee-kpi .job-read-access{display:flex;flex-wrap:wrap;align-items:flex-end;width:100%;gap:6px}
#employee-kpi .ek-selectors{display:block}
#system-jobs .job-read-access [data-job-department],#employee-kpi .job-read-access [data-job-department]{width:70px}
#system-jobs .job-read-access [data-job-section],#employee-kpi .job-read-access [data-job-section]{width:80px}
#system-jobs .job-read-access [data-job-person],#employee-kpi .job-read-access [data-job-person]{width:160px}
#system-jobs .job-read-access [data-job-empid],#employee-kpi .job-read-access [data-job-empid]{width:55px}
#system-jobs .job-read-access [data-job-read-password],#employee-kpi .job-read-access [data-job-read-password]{width:105px}
#system-jobs .job-read-access .job-read-period,#employee-kpi .job-read-access .job-read-period{display:flex;align-items:flex-end;gap:8px;flex:0 0 auto;margin-left:auto;max-width:100%;flex-wrap:wrap}
#system-jobs .job-read-access .job-read-period>label,#employee-kpi .job-read-access .job-read-period>label{display:grid;min-width:0;max-width:none;width:auto;flex:0 0 auto;margin:0;font-size:12px;font-weight:400}
#system-jobs.sj-annual .job-read-period #sj-period,#employee-kpi .job-read-period #ek-year{width:62px}
#system-jobs.sj-progress .job-read-period #sj-period{width:125px}
#employee-kpi .job-read-period #ek-position{width:110px}
#employee-kpi .job-read-period #ek-month{width:110px}
#system-jobs.sj-annual .job-read-period .sj-total{min-width:74px;margin:0;font-size:12px}
#system-jobs.sj-annual .job-read-period .sj-total strong{min-height:28px;font-size:16px}
#system-jobs .job-read-access [data-job-read-view],#employee-kpi .job-read-access [data-job-read-view]{font-size:12px;white-space:nowrap}
@media(min-width:801px){#system-jobs .job-read-access select,#system-jobs .job-read-access input,#employee-kpi .job-read-access select,#employee-kpi .job-read-access input,#system-jobs .job-read-access [data-job-read-view],#employee-kpi .job-read-access [data-job-read-view]{height:28px;min-height:28px;padding:4px 5px;font-size:12px;margin-top:0}}

#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}

#authority-directory{padding:12px;font-size:8pt}
#authority-directory>.actions{margin-bottom:8px;gap:5px;flex-wrap:wrap}
#authority-directory>.actions button,#authority-directory>.actions label{font-size:12px;padding:7px 9px}
#authority-directory .ad-import input{max-width:180px;display:block;font-size:8pt;padding:2px}
#authority-directory .ad-account-wrap{width:100%;overflow-x:auto}
#authority-directory .ad-account-table{width:100%;table-layout:fixed;border-collapse:collapse;margin:0}
#authority-directory .ad-account-table th,#authority-directory .ad-account-table td{border:1px solid #cfdeee;padding:3px 6px;font-size:8pt;line-height:1.2;text-align:left}
#authority-directory .ad-account-table th{background:#edf5fc;color:#102d4c}
#authority-directory .ad-account-table label{margin:0;font-size:8pt}
#authority-directory .ad-account-table input,#authority-directory .ad-account-table select{width:100%;max-width:100%;min-width:0;box-sizing:border-box;margin:0!important;font-size:8pt!important;line-height:1.2!important;min-height:23px!important;height:23px;padding:3px 6px!important;border:1px solid #c6d8e9;border-radius:3px;color:#102d4c;background:#e8f3ff}
#authority-directory .ad-account-table select{background:#245e9d;color:white;border-color:#245e9d}
#authority-directory .ad-account-table input[readonly]{background:#f5f9fd}
#authority-directory .ad-password-wrap{position:relative;width:100%;height:23px}
#authority-directory .ad-password-wrap #ad-password{padding-right:28px!important;text-transform:none}
#authority-directory #ad-password-eye{position:absolute;right:2px;top:1px;width:23px;height:21px;min-height:0;padding:0!important;margin:0;border:0;border-radius:3px;background:transparent;color:#0865f5;display:flex;align-items:center;justify-content:center;cursor:pointer}
#authority-directory #ad-password-eye:disabled{color:#8da1b7;cursor:default}
#authority-directory #ad-password-eye:focus-visible{outline:2px solid #0865f5;outline-offset:1px}
#authority-directory #ad-password-eye svg{fill:none;stroke:currentColor;stroke-width:1.8}
#authority-directory #ad-password::-ms-reveal{display:none}
#authority-directory .ad-field-note{display:flex;justify-content:space-between;gap:6px;flex-wrap:wrap;color:#7188a2;font-size:8pt;line-height:1.3;margin:5px 0 10px}
#authority-directory .ad-current{display:flex;justify-content:space-between;align-items:center;gap:6px;flex-wrap:wrap;margin:4px 0 5px;font-size:8pt}
#authority-directory #ad-status{font-size:8pt;margin:0;line-height:1.3}
#authority-directory #ad-status.ad-error{color:#a32626}
#authority-directory #authretry{font-size:8pt;padding:3px 6px;min-height:23px}
#authority-directory details[data-workspace]{border:1px solid #caddeb;border-radius:5px;margin:8px 0;overflow:visible;background:white}
#authority-directory summary{display:flex;gap:10px;align-items:center;background:#e5f0fa;padding:6px 8px;color:#102d4c;cursor:pointer;font-weight:bold;font-size:8pt}
#authority-directory summary b{color:#0865f5}
#authority-directory .ad-table-wrap{overflow:auto}
#authority-directory .ad-table{table-layout:fixed;width:100%;min-width:610px;border-collapse:collapse;font-size:8pt!important}
#authority-directory .ad-table th{background:#edf5fc;position:sticky;top:0;z-index:2;font-size:8pt!important;padding:3px 6px;white-space:normal;vertical-align:middle;height:24px;line-height:1.2}
#authority-directory .ad-table td{font-size:8pt!important;padding:3px 6px;vertical-align:middle;overflow-wrap:anywhere;border:1px solid #d2dfeb;line-height:1.2;height:24px;box-sizing:border-box}
#authority-directory .ad-module{background:#f4f9fe;font-weight:bold;vertical-align:top!important}
#authority-directory .ad-module-choice{background:#f4f9fe;vertical-align:top!important}
#authority-directory .ad-table .ad-module-choice,#authority-directory .ad-table .ad-child-choice{padding:1px 3px}
#authority-directory .ad-table select{display:block;width:100%;min-width:0;max-width:100%;height:22px;min-height:22px!important;box-sizing:border-box;padding:2px 3px!important;margin:0!important;font-size:8pt!important;line-height:1.2!important;border:1px solid #bfd4e9;border-radius:3px;background:#f3f8fe;color:#0c3560}
#authority-directory .ad-table select:disabled{background:#f4f6f8;color:#7b8794;opacity:1}
#authority-directory .ad-table .aq-filter{width:18px;height:18px;min-height:18px;padding:0!important;margin:0 0 0 3px;font-size:8pt!important;line-height:1;border-radius:3px}
#authority-directory .sj-filter-menu{max-height:min(470px,calc(100vh - 16px));width:300px;max-width:calc(100vw - 16px);font-size:8pt}
#authority-directory #sj-filter-values{max-height:150px;overflow:auto}
#authority-directory #sj-filter-values label{display:flex;align-items:center;gap:6px;font-size:8pt;padding:3px}
#authority-directory .sj-filter-menu input[type=checkbox]{width:17px;height:17px;min-height:0;margin:0}
@media(max-width:600px){#authority-directory{padding:7px}#authority-directory .ad-account-table{min-width:470px}#authority-directory .ad-field-note{margin-bottom:7px}}

#authority-directory .ad-section-scope{display:flex;gap:12px;align-items:flex-end;flex-wrap:wrap;margin:12px 0}#authority-directory .ad-section-scope label{display:grid;gap:4px;max-width:100%}#authority-directory #ad-sections{width:220px;max-width:100%}

/* Only the System Monitoring permission table needs space for B1-B3 row settings. */
#authority-directory .ad-row-settings{min-width:980px}
#authority-directory .ad-row-settings .ad-row-scope{padding:1px 3px}
#authority-directory .ad-row-settings .ad-scope-empty{text-align:center;color:#8798a9}

#authority-directory .ad-multi-trigger{display:flex;align-items:center;justify-content:space-between;gap:4px;width:100%;max-width:100%;min-width:0;height:22px;min-height:22px!important;padding:2px 4px!important;margin:0;font-size:8pt!important;line-height:1.2;border:1px solid #bfd4e9;border-radius:3px;background:#245e9d;color:white;box-sizing:border-box}
#authority-directory .ad-multi-trigger span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#authority-directory .ad-multi-trigger:after{content:'▾';flex:none}
#authority-directory .ad-multi-trigger:disabled{background:#f4f6f8;color:#7b8794;opacity:1}
.ad-tick-picker{font-size:8pt;max-width:min(360px,calc(100vw - 48px))}
.ad-tick-options{display:grid;gap:4px;max-height:min(320px,50vh);overflow:auto;padding:4px;border:1px solid #cfdeee}
.ad-tick-options label{display:flex;align-items:center;gap:7px;font-size:8pt;padding:4px;margin:0;cursor:pointer}
.ad-tick-options input[type=checkbox]{width:17px;height:17px;min-height:0;margin:0;padding:0;flex:none}
.ad-tick-picker [data-scope-error]{color:#c31f1f;min-height:1.2em}

#authority-directory summary{flex-wrap:wrap;gap:6px}
#authority-directory .ad-workspace-title{flex:1 1 180px}
#authority-directory .ad-workspace-scope{display:flex;gap:8px;flex:0 1 390px;max-width:100%;margin-left:auto}
#authority-directory .ad-workspace-scope label{display:grid;grid-template-columns:auto minmax(70px,1fr);align-items:center;gap:5px;flex:1;min-width:0;margin:0;font-size:8pt;font-weight:normal}
#authority-directory .ad-workspace-scope .ad-multi-trigger{min-width:0;height:auto}
#authority-directory .ad-workspace-scope .ad-multi-trigger span{white-space:normal;overflow:visible;overflow-wrap:anywhere;text-overflow:clip}
#authority-directory [data-workspace="SEM"] .ad-workspace-scope{flex-basis:570px}
@media(max-width:650px){#authority-directory .ad-workspace-scope{flex-basis:100%;margin-left:0}#authority-directory .ad-workspace-scope label{grid-template-columns:1fr;gap:2px}}

.ad-function-choice select{width:100%;min-width:0!important;font-size:10px!important;padding:4px!important}.ad-table .ad-function-choice{vertical-align:middle}
/* K1 answer colours only; other software entry colours retain their rules. */
#page #authority-directory .ad-table select:enabled{background:#f3f8fe!important;color:#0c3560!important;-webkit-text-fill-color:#0c3560!important;border-color:#bfd4e9!important}
#page #authority-directory .ad-table select.ad-authority-positive:enabled{background:#245e9d!important;color:#fff!important;-webkit-text-fill-color:#fff!important;border-color:#164e89!important}
#authority-directory #authsave.ad-saving:disabled{opacity:1;cursor:wait}
#authority-directory .ad-saving-track{display:inline-block;width:5ch;font-family:monospace;vertical-align:bottom;text-align:left}
#authority-directory .ad-saving-dots{display:inline-block;width:0;overflow:hidden;white-space:nowrap;vertical-align:bottom;animation:ad-saving-dots 1.2s steps(6,end) infinite}
@keyframes ad-saving-dots{to{width:5ch}}
@media(prefers-reduced-motion:reduce){#authority-directory .ad-saving-dots{animation:none;width:5ch}}

.ad-tick-options label[hidden]{display:none}
.ad-tick-picker [data-scope-search]{width:100%;margin-bottom:6px}

.ek-selectors{display:grid;grid-template-columns:1fr 1.4fr 1fr .65fr .85fr;gap:9px}.ek-selectors label{font-size:12px;font-weight:600}.ek-selectors select{display:block;width:100%;margin-top:4px;min-height:34px}.employee-kpi-report{font-size:12px;min-width:0}.ek-tools{display:flex;justify-content:flex-end;gap:7px;margin:7px 0 10px}.ek-tools button{padding:7px 12px;font-size:12px}.ek-person{margin-bottom:14px;border:1px solid #cddce9;border-radius:6px;overflow:hidden;background:white}.ek-person-head{display:flex;flex-wrap:wrap;gap:8px 16px;align-items:center;padding:10px;background:#edf4fb;font-size:12px}.ek-person-head b{margin-left:auto}.employee-kpi-report .table-wrap{overflow:auto}.employee-kpi-report table{width:100%;border-collapse:collapse;font-size:12px;min-width:730px;table-layout:auto}.employee-kpi-report th,.employee-kpi-report td{padding:7px 8px;text-align:left;border:1px solid #d7e2ed;vertical-align:middle}.employee-kpi-report th{background:#e8f2fa}.employee-kpi-report small{display:block;font-size:11px;color:#526d89;max-width:240px}.employee-kpi-report .ek-number{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}.employee-kpi-report .ek-center{text-align:center}.ek-done{display:inline-flex;width:21px;height:21px;border:1px solid #bfcdd8;border-radius:4px;align-items:center;justify-content:center;background:white}.ek-done.is-done{background:#196540;border-color:#196540;color:white;font-weight:700}.ek-attachment{background:#196540!important;color:white!important;font-size:11px!important;padding:5px 8px!important;border-color:#196540!important;white-space:nowrap}.employee-kpi-report tfoot td{background:#edf4fb;font-weight:700}.ek-note{font-size:11px;color:#526d89;margin-top:8px}
#system-overview #so-report.employee-kpi-report{overflow:visible;border:0;background:transparent}#system-overview .employee-kpi-report table{table-layout:auto;min-width:730px}#system-overview .employee-kpi-report tr{display:table-row}#system-overview .employee-kpi-report th,#system-overview .employee-kpi-report td{display:table-cell;width:auto!important;padding:7px 8px;font-size:12px}#system-overview .employee-kpi-report th:first-child{width:auto!important}#system-overview .employee-kpi-report thead{display:table-header-group}#system-overview .employee-kpi-report tbody,#system-overview .employee-kpi-report tfoot{display:table-row-group}#system-overview .employee-kpi-report td:before{display:none}
@media(max-width:650px){.ek-selectors{grid-template-columns:1fr 1fr}.ek-selectors select{font-size:16px;min-height:44px}.ek-person-head b{margin-left:0}#system-overview .so-filters{flex-wrap:wrap}#system-overview .so-filters label{flex:1 1 28%}}
@media print{body.employee-kpi-print .sidebar,body.employee-kpi-print .top-actions,body.employee-kpi-print .ek-tools,body.employee-kpi-print .ek-selectors,body.employee-kpi-print .so-filters,body.employee-kpi-print .program-footer{display:none!important}body.employee-kpi-print .content{margin:0!important;padding:0!important;width:100%!important}body.employee-kpi-print .employee-kpi-report .table-wrap{overflow:visible!important;max-height:none!important}body.employee-kpi-print .employee-kpi-report table{min-width:0!important;width:100%;font-size:10px}body.employee-kpi-print .employee-kpi-report th,body.employee-kpi-print .employee-kpi-report td{font-size:10px!important;padding:4px!important}body.employee-kpi-print .ek-person-head{break-after:avoid}body.employee-kpi-print tr{break-inside:avoid}}
/* A1 and B3 task details share one compact, screen-width table. */
.employee-kpi-report table.ek-task-table,#system-overview .employee-kpi-report table.ek-task-table{table-layout:fixed;width:100%;min-width:0!important}
.employee-kpi-report .ek-task-table th,.employee-kpi-report .ek-task-table td,#system-overview .employee-kpi-report .ek-task-table th,#system-overview .employee-kpi-report .ek-task-table td{padding:4px 5px;font-size:12px;line-height:16px;text-align:left;overflow-wrap:anywhere;white-space:normal}
.employee-kpi-report .ek-task-table th:first-child,#system-overview .employee-kpi-report .ek-task-table th:first-child{width:auto!important}
.employee-kpi-report .ek-task-table small,#system-overview .employee-kpi-report .ek-task-table small{max-width:none;font-size:11px;line-height:15px}
.employee-kpi-report .ek-task-table .ek-number,#system-overview .employee-kpi-report .ek-task-table .ek-number{text-align:right;white-space:nowrap}
.employee-kpi-report .ek-task-table .ek-center,#system-overview .employee-kpi-report .ek-task-table .ek-center{text-align:center}
.employee-kpi-report .ek-task-table .ek-date,#system-overview .employee-kpi-report .ek-task-table .ek-date{font-size:11px;white-space:nowrap}
.employee-kpi-report .ek-attachment{padding:3px 5px!important;font-size:10px!important}
.employee-kpi-report .ek-person-head{padding:7px 9px}
@media(max-width:700px){.employee-kpi-report table.ek-task-table,#system-overview .employee-kpi-report table.ek-task-table{min-width:760px!important}}

#sales-overview{font-size:13px}#sales-overview .sem-filters{display:flex;gap:16px;align-items:flex-end;padding:12px;background:#fff;border:1px solid #d4e2ef;border-radius:7px}#sales-overview .sem-filters label{display:grid;gap:4px;font-size:12px;font-weight:700}#sales-overview .sem-filters label:nth-child(2){min-width:230px;max-width:430px;flex:1}#sales-overview select{font-size:13px;min-height:36px;padding:6px 10px}#sem-asof{margin-left:auto;font-size:12px;padding:8px}#sem-status{margin:8px 0}#sales-overview .sem-panel{background:#fff;border:1px solid #d5e2ec;border-radius:7px;margin-bottom:14px;overflow:hidden}#sales-overview .sem-title{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 12px}#sales-overview h2{font-size:16px;margin:0}#sales-overview .sem-title>span{font-size:11px;color:#57708a}#sales-overview .sem-scroll{overflow-x:auto}#sales-overview table{width:100%;min-width:660px;table-layout:fixed;font-size:13px}#sales-overview th{padding:8px 10px;text-align:right;width:24%;background:#e9f2f9;font-size:13px;min-width:0!important}#sales-overview th:first-child{width:28%;text-align:left}#sales-overview td{padding:6px 10px;text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}#sales-overview td:first-child{text-align:left;font-size:12px;white-space:normal}#sales-overview tbody tr:nth-child(even){background:#fafcfe}#sales-overview small{display:block;font-size:11px;font-weight:400;color:#536d85;margin-top:3px}#sales-overview th select{width:95px;font-size:13px;padding:4px 8px}#sales-overview .sem-unsettled{color:#b91c39}#sem-notes{font-size:11px;line-height:1.5;margin-top:8px}@media(max-width:650px){#sales-overview .sem-filters{flex-wrap:wrap;gap:10px}#sales-overview .sem-filters label:nth-child(2){min-width:180px}#sem-asof{margin-left:0;padding:0}#sales-overview .sem-title{align-items:flex-start}#sales-overview .sem-title>span{max-width:160px;text-align:right}#sales-overview th:first-child,#sales-overview td:first-child{position:sticky;left:0;background:#f1f6fa;z-index:1}}@media(pointer:coarse){#sales-overview select{min-height:44px;font-size:16px}}
#sales-overview select{background:#245f99;color:#fff;border-color:#245f99}

/* Keep the approved A2 metric groups separated by blank table rows. */
#sales-overview tr.sem-spacer td{height:20px;padding:0!important;border-top:0!important;border-bottom:0!important;background:#fff}

#sales-overview .sem-period-controls{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px}
#sales-overview .sem-period-controls label{display:grid;gap:3px;text-align:left;font-size:10px;font-weight:400}
#sales-overview .sem-period-controls select{width:115px;max-width:100%;margin:0}
#sales-overview .sem-period-controls label:first-child select{width:80px}
#sales-overview [data-sem-inventory]{text-decoration:underline}
#sem-inventory{padding:14px;background:#fff;border:1px solid #d5e2ec;border-radius:6px}
#sem-inventory .sem-inventory-filters{display:flex;align-items:end;gap:12px;flex-wrap:wrap}
#sem-inventory label{display:grid;gap:4px;font-size:12px;font-weight:600}
#sem-inventory select{width:170px;max-width:100%;background:#245f99;color:#fff;padding:7px;font-size:13px}
#sem-inventory-status{margin:12px 0;font-size:12px}
#sem-inventory table{min-width:850px}
@media(max-width:650px){#sem-inventory select{min-height:44px;font-size:16px}#sem-inventory .sem-inventory-filters label{flex:1 1 150px}#sem-inventory select{width:100%}}

#incoming-checking{padding:12px;font-size:12px}#incoming-checking .ic-toolbar{display:flex;align-items:end;justify-content:flex-end;gap:6px;flex-wrap:wrap;position:sticky;top:0;background:white;z-index:5;padding:5px}#incoming-checking button{font-size:11px;padding:7px 10px}#incoming-checking label{display:flex;flex-direction:column;gap:4px;font-size:12px}#incoming-checking input,#incoming-checking select{font-size:11px;min-height:30px;padding:5px;max-width:100%;width:100%;box-sizing:border-box}#incoming-checking input[type=checkbox]{width:17px;height:17px;min-height:17px}#incoming-checking .ic-method{display:flex;gap:25px;margin:10px 0;font-weight:bold}#incoming-checking .ic-method label{flex-direction:row;align-items:center}#incoming-checking .ic-header{display:flex;gap:10px;margin:8px 0}#incoming-checking .ic-header>label{flex:1;min-width:130px}#incoming-checking .ic-grid{overflow:auto;max-height:62vh}#incoming-checking table{table-layout:fixed;width:100%;min-width:1100px;font-size:8pt;border-collapse:collapse}#incoming-checking th{position:sticky;top:0;z-index:2;background:#e6f0f9;color:#102447}#incoming-checking th,#incoming-checking td{padding:5px;border:1px solid #d5e0eb;vertical-align:middle;white-space:normal;overflow-wrap:anywhere}#incoming-checking th:first-child{width:45px}#incoming-checking th:nth-child(3){width:160px}#incoming-checking th:last-child{width:145px}#incoming-checking td input,#incoming-checking td select{font-size:8pt}#incoming-checking .ic-accepted{background:#e2f1df;font-weight:bold;text-align:right}#incoming-checking .ic-passed{background:#e2f1df;color:#145c36}#incoming-checking .ic-failed{background:#ffe4e7;color:#b00025}#incoming-checking .ic-photos{display:flex;gap:3px;flex-wrap:wrap}#incoming-checking .ic-photos button{padding:0;border:0;background:none}#incoming-checking .ic-photos img{width:43px;height:38px;object-fit:cover}#incoming-checking .ic-photo-add{display:inline-flex;cursor:pointer;font-size:10px;border:1px solid #b6cee6;border-radius:4px;padding:4px;color:#0663e9}#incoming-checking .ic-photo-add input{width:120px;font-size:9px}#incoming-checking .ic-footer{display:flex;gap:12px;align-items:center;margin-top:9px;flex-wrap:wrap}#incoming-checking .ic-footer label{width:300px}#incoming-checking .ic-footer small{font-size:11px}@media(max-width:700px){#incoming-checking .ic-header{flex-wrap:wrap}}

#incoming-checking .ic-passed{background:#e2f1df!important;color:#145c36!important}#incoming-checking .ic-failed{background:#ffe4e7!important;color:#b00025!important}

#incoming-checking .ic-photo-add input{display:none}
#incoming-checking .ic-header>.ic-requisition-group{flex:1;min-width:130px;display:flex;flex-direction:column;gap:8px}
/* Approved full C1 arrangement and stacked purchased-item ID/description. */
#incoming-checking .ic-top{display:flex;justify-content:space-between;gap:16px;align-items:end}
#incoming-checking .ic-top-left{flex:1;min-width:0}
#incoming-checking .ic-top-right{display:flex;flex-direction:column;align-items:end;gap:7px}
#incoming-checking .ic-top-right .ic-toolbar{position:static;padding:0;gap:5px}
#incoming-checking .ic-records{width:255px;max-width:100%}
#incoming-checking .ic-method{flex-wrap:wrap;margin:8px 0 0;gap:28px}
#incoming-checking .ic-method label{white-space:nowrap}
#incoming-checking .ic-header{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,.8fr) minmax(0,1.1fr) minmax(0,1.2fr) minmax(0,.85fr);gap:8px;margin:14px 0 12px;padding-top:10px;border-top:1px solid #dce7f1}
#incoming-checking .ic-header>label{min-width:0;font-size:11px}
#incoming-checking .ic-item-table{min-width:0;width:100%;font-size:8pt}
#incoming-checking .ic-item-table th,#incoming-checking .ic-item-table td{width:auto;min-width:0;padding:6px 4px;vertical-align:top;overflow-wrap:anywhere;line-height:1.4}
#incoming-checking .ic-item-table th:first-child,#incoming-checking .ic-item-table th:nth-child(3),#incoming-checking .ic-item-table th:last-child{width:auto}
#incoming-checking .ic-item-description{display:block;margin-top:4px;font-size:8pt;color:inherit;font-weight:400}
#incoming-checking .ic-item-table td input,#incoming-checking .ic-item-table td select{min-width:0;max-width:100%;font-size:8pt}
#incoming-checking .ic-item-table .ic-photo-add{font-size:8pt;padding:4px 3px;white-space:normal}
@media(max-width:700px){#incoming-checking .ic-top{flex-wrap:wrap;align-items:start}#incoming-checking .ic-top-right{align-items:start}#incoming-checking .ic-header{grid-template-columns:repeat(2,minmax(0,1fr))}#incoming-checking .ic-method{gap:12px}#incoming-checking .ic-item-table{min-width:900px}}
#incoming-pending{padding:12px;font-size:12px}#incoming-pending .ip-toolbar{display:flex;align-items:flex-end;gap:8px;flex-wrap:nowrap;overflow-x:auto;padding-bottom:6px}#incoming-pending .ip-toolbar label{display:flex;flex-direction:column;gap:4px;flex:0 0 auto;margin:0;font-size:12px}#incoming-pending .ip-toolbar select,#incoming-pending .ip-toolbar input{font-size:12px;padding:6px;height:34px;width:135px;min-width:0}#incoming-pending #ip-req{width:165px}#incoming-pending #ip-supplier{width:95px}#incoming-pending .ip-actions{display:flex;gap:6px;margin-left:auto;flex-shrink:0}#incoming-pending button{font-size:11px;padding:7px 9px;white-space:nowrap}#incoming-pending #ip-status{font-size:12px;margin:8px 0;padding:8px;background:#f3f7fb}#incoming-pending .ip-grid{overflow:auto;max-height:calc(100vh - 320px);min-height:180px}#incoming-pending table{border-collapse:separate;border-spacing:0;width:max-content;min-width:100%;font-size:8pt}#incoming-pending th,#incoming-pending td{font-size:8pt;padding:5px 6px;border-bottom:1px solid #d5e0eb;border-right:1px solid #d5e0eb;text-align:left;white-space:nowrap}#incoming-pending th{position:sticky;top:0;z-index:2;background:#e6f0f9}#incoming-pending td:nth-child(6){white-space:normal;min-width:160px;max-width:230px}#incoming-pending .ip-pending{color:#c81e2b}#incoming-pending small{display:block;font-size:10px;margin-top:8px}#incoming-pending .aq-filter{font-size:9px;padding:3px 5px;margin-left:4px}

#incoming-history{padding:12px;font-size:12px}#incoming-history .ih-grid{overflow:auto;max-height:65vh}#incoming-history table{border-collapse:collapse;width:max-content;min-width:100%;font-size:11px}#incoming-history th,#incoming-history td{padding:5px 7px;border:1px solid #d5e0eb;white-space:nowrap;text-align:left}#incoming-history thead th{position:sticky;top:0;z-index:2;background:#e6f0f9}#incoming-history td:nth-child(8),#incoming-history td:last-child{white-space:normal;max-width:250px;min-width:170px}#incoming-history button{font-size:11px}#incoming-history .aq-filter{margin-left:5px}
/* C2 keeps all source fields and filters in twelve compact multiline cells. */
#incoming-history .ih-grouped-table{table-layout:fixed;width:100%;min-width:0;font-size:8pt}
#incoming-history .ih-grouped-table th,#incoming-history .ih-grouped-table td{width:auto;min-width:0;max-width:none;height:auto;vertical-align:top;white-space:normal;padding:7px 5px;overflow-wrap:anywhere;line-height:1.45}
#incoming-history .ih-grouped-table .ih-value{display:block;margin-bottom:4px}
#incoming-history .ih-grouped-table .ih-value small{display:block;color:#526c88;font-size:8pt}
#incoming-history .ih-grouped-table .ih-header-line{display:flex;align-items:start;justify-content:space-between;gap:3px;margin-bottom:4px}
#incoming-history .ih-grouped-table .aq-filter{position:static;flex-shrink:0;font-size:8pt;min-height:19px;padding:1px 3px;margin:0}
#incoming-history .ih-grouped-table .ih-quantities{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px;font-variant-numeric:tabular-nums}
#incoming-history .ih-quantities b{text-align:right}
#incoming-history .ih-rejected{color:#c9172e}
#incoming-history .ih-grouped-table [data-ih-photos]{font-size:8pt;padding:4px}
@media(max-width:800px){#incoming-history .ih-grouped-table{min-width:1000px}}
/* C4 approved multiline groups, keeping the source-field filters independent. */
#incoming-pending .ip-grouped-table{table-layout:fixed;width:100%;min-width:0;font-size:8pt}
#incoming-pending .ip-grouped-table th,#incoming-pending .ip-grouped-table td{width:auto;min-width:0;max-width:none;vertical-align:top;white-space:normal;padding:7px 5px;overflow-wrap:anywhere;line-height:1.4}
#incoming-pending .ip-grouped-table .ip-value{display:block;margin-bottom:4px}
#incoming-pending .ip-grouped-table .ip-header-line,#incoming-history .ih-grouped-table .ih-header-line{display:flex;justify-content:space-between;align-items:start;gap:3px;margin-bottom:4px;font-size:7.5pt;line-height:1.3}
#incoming-pending .ip-grouped-table .aq-filter{position:static;flex-shrink:0;font-size:7.5pt;min-height:18px;padding:1px 3px;margin:0}
#incoming-pending .ip-grouped-table .ip-quantities{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px;font-variant-numeric:tabular-nums}
#incoming-pending .ip-quantities b{text-align:right;font-weight:400}
#incoming-pending .ip-grouped-table th,#incoming-history .ih-grouped-table th{font-size:7.5pt}
@media(max-width:800px){#incoming-pending .ip-grouped-table{min-width:850px}}

/* C1 keeps each item's received/rejected/accepted quantities in three lines. */
#incoming-checking .ic-quantity-stack{display:grid;gap:4px}
#incoming-checking .ic-quantity-stack>label{display:grid;grid-template-columns:minmax(0,1fr) 65px;align-items:center;gap:5px;font-size:8pt;line-height:14px}
#incoming-checking .ic-quantity-stack input{min-height:25px;height:25px;text-align:right}
#incoming-checking .ic-quantity-stack .ic-accepted{padding:3px 0;text-align:left}
#incoming-checking .ic-quantity-stack output{text-align:right;padding-right:5px}

#worker-performance{padding:10px;position:relative}#worker-performance .wp-controls{display:flex;flex-wrap:wrap;align-items:end;gap:6px;margin-bottom:8px}#worker-performance label{display:flex;flex-direction:column;gap:3px;font-size:8pt}#worker-performance input,#worker-performance select,#worker-performance button{font-size:8pt;min-height:29px;padding:4px 7px}#worker-performance .wp-actions{display:flex;gap:5px;align-items:center;margin-left:auto}#worker-performance #wp-count{font-size:8pt;align-self:center}#worker-performance .wp-scroll{max-height:70vh;overflow:auto}#worker-performance table{width:100%;table-layout:auto;border-collapse:separate;border-spacing:0}#worker-performance th,#worker-performance td{font-size:8pt!important;line-height:1.25;padding:5px;border-right:1px solid #d5dfeb;border-bottom:1px solid #d5dfeb;vertical-align:top;overflow-wrap:anywhere;min-width:45px}#worker-performance th{position:sticky;top:0;z-index:2;background:#e7f0f8;text-align:left}#worker-performance th button{min-height:20px;padding:1px 4px;margin-left:3px}#worker-performance td:nth-child(2){max-width:145px}#worker-performance td:nth-child(6){max-width:165px}#worker-performance small{display:block;font-size:8pt;margin-top:6px}#worker-performance .wp-filter{position:absolute;z-index:20;background:white;border:1px solid #aab7c8;box-shadow:0 3px 15px #0003;padding:10px;width:245px}#worker-performance .wp-filter[hidden]{display:none}#worker-performance .wp-filter select{width:100%}

.pdw{color:#000;padding:10px!important}.pdw [hidden]{display:none!important}.pdw h2{font-size:16px;margin:5px 0 8px}.pdw label{font-size:12px}.pdw button{font-size:11px;padding:7px 10px}.pdw input,.pdw select{font-size:8pt;min-width:0;width:100%;padding:6px;box-sizing:border-box}.pdw input[type=checkbox]{width:16px;accent-color:#225f9c}.pdw-top,.pdw-stage,.pdw-time{display:flex;align-items:end;gap:10px;flex-wrap:wrap}.pdw-top{position:sticky;top:0;background:#f1f7fb;z-index:9;padding:8px;border:1px solid #d4e2ef}.pdw-top label{width:150px}.pdw-top .pdw-actions{margin-left:auto;display:flex;gap:6px}.pdw-panel{padding:10px;border:1px solid #cdddeb;margin-top:10px;border-radius:7px}.pdw-scroll{max-height:52vh;overflow:auto}.pdw table{width:100%;table-layout:fixed;border-collapse:collapse}.pdw th,.pdw td{font-size:8pt;border:1px solid #d4e1ec;padding:6px;vertical-align:top;text-align:left;overflow-wrap:anywhere}.pdw th{position:sticky;top:0;background:#e8f2f9;z-index:2}.pdw .pdw-desc{display:block;font-size:8pt}.pdw .pdw-process{color:#d71932}.pdw .pdw-pending{color:#d71932;font-weight:bold}.pdw .pdw-defect{display:flex;gap:3px;margin-bottom:3px}.pdw .pdw-defect select{width:65%}.pdw .pdw-defect input{width:35%}.pdw-stage{margin-top:8px;align-items:center}.pdw-stage label{display:flex;align-items:center;gap:5px}.pdw-time label{width:130px}.pdw .pdw-message{font-size:12px;min-height:20px;margin-top:5px}.pdw details{margin:9px 0}.pdw details summary{cursor:pointer;color:#0066cc}.pdw details button{float:right}.pdw .pdw-selected{background:#eef6fd}.pdw .pdw-result{background:#f0f8ee}.pdw small{font-size:8pt}.pdw .pdw-busy{color:#a81724}.pdw .pdw-status{font-size:12px;color:#415b72}



.pdw .pdw-mix-prod{display:block;text-align:right;color:#d00000;font-size:8pt;font-weight:400}


.pdw .pdw-quantity-box{border:1px solid #cfdfed;background:#f8fbfe;border-radius:4px;padding:6px;font-size:8pt;color:#000}.pdw .pdw-quantity-box>div{display:flex;justify-content:space-between;align-items:flex-start;gap:8px;margin:3px 0}.pdw .pdw-quantity-box>div>span:first-child{flex:1}.pdw .pdw-quantity-box>div>span:last-child{white-space:nowrap}.pdw .pdw-available-zero{color:#000;font-weight:400}

/* Compact F3 entry geometry; keep shared grid auto-sizing from widening number boxes. */
.pdw table th,.pdw table td{vertical-align:top!important}
.pdw table td>input,.pdw table td>select,.pdw table td>label{display:block;margin:0;vertical-align:top}
.pdw .pdw-defect{display:grid;grid-template-columns:minmax(0,1fr) 52px;align-items:start;gap:3px;margin:0 0 3px}
.pdw .pdw-defect select,.pdw .pdw-defect input,.pdw [data-qty]{display:block;width:100%!important;min-width:0!important;height:28px;min-height:28px;max-height:28px;margin:0!important;padding:3px 4px;line-height:20px;font-size:8pt;box-sizing:border-box}
.pdw .pdw-defect input{max-width:52px!important}
.pdw [data-qty]{max-width:76px!important}
.pdw .pdw-quantity-box{margin:0}

.pdw .pdw-bottom-save{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin-top:12px;padding:10px;border-top:1px solid #cdddeb;font-size:11px}.pdw .pdw-bottom-save button{min-width:130px}

.pdw .pdw-worker-time-help{font-size:12px;color:#000;background:#fff7d8;border:1px solid #ebd895;border-radius:4px;padding:8px;margin:10px 0}.pdw #pdw-workers input:not([type=checkbox]){height:30px;margin:0;padding:3px;font-size:8pt}

.pdw .pdw-quantity-box>.pdw-rework-box{display:block;margin-top:8px;padding:4px 6px;border:1px solid #bda900;border-radius:3px;background:#fff36a;color:#000}
.pdw .pdw-rework-box>div{display:flex;justify-content:space-between;gap:8px;margin:2px 0}.pdw .pdw-rework-box span{color:#000!important}

.pdw .pdw-process .production-rework-status{display:inline;color:#d00000!important;font-weight:700!important;font-size:inherit}

.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}

/* Rework requests and actual production retain separate numbered transactions. */
.pc-records>.pc-grid>table.pc-compact-table{width:1369px;min-width:1369px}
.pc-records>.pc-grid>table.pc-editing-record{width:1579px!important;min-width:1579px}
.pc-records .pc-transaction-kind{font-weight:700;white-space:normal}
.pc-records .pc-rework-label,.pc-records .pc-reworked-qty{color:#d00000;font-weight:700}
.pc-records .pc-request-row>td{background:#fffbea}
.pc-records .pc-trace-cell{white-space:normal;overflow-wrap:anywhere}
.pc-records .pc-trace-cell small{display:block;white-space:normal}
.pc-records>.pc-grid>table.pc-compact-table :is(th,td,small,.pc-header-line,.pc-stacked-values){font-size:8pt}

/* Rework instructions use their own editor, never production quantities. */
.pc .pc-request-editor{max-width:1100px;padding:8px}.pc .pc-request-editor h3{margin:0 0 8px}.pc .pc-request-editor>label{max-width:270px}.pc .pc-request-lines{width:100%;min-width:700px;table-layout:fixed;margin:10px 0}.pc .pc-request-lines th:first-child{width:90px}.pc .pc-request-lines th:last-child{width:125px}.pc .pc-request-lines :is(th,td){padding:6px;white-space:normal;overflow-wrap:anywhere}.pc .pc-request-actions{display:flex;gap:8px}.pc .pc-request-editor #pcr-message{max-width:900px}.pc .pc-request-lines select{background:white;color:#122b45}#modal .pc-request-lines{width:100%;table-layout:fixed}#modal .pc-request-lines td{overflow-wrap:anywhere}

.ja{max-width:1100px;margin:0 auto;min-width:0;color:#142c49}.ja [hidden]{display:none!important}.ja-heading{display:flex;justify-content:space-between;gap:12px;align-items:center}.ja-heading strong{font-size:21px}.ja h2{font-size:18px;margin:22px 0 12px}.ja p{line-height:1.5}.ja label{display:block;font-weight:600;min-width:0}.ja :is(input:not([type=checkbox]),select,textarea){width:100%;min-width:0;max-width:100%;box-sizing:border-box;font-size:16px;min-height:44px;margin:6px 0 12px}.ja select{background:#fff!important;color:#123558!important;border:1px solid #b9cddd!important}.ja :is(button,input,select,textarea):focus-visible{outline:3px solid #76abf2;outline-offset:2px}.ja-context{display:grid;grid-template-columns:minmax(180px,1fr) minmax(0,3fr);gap:14px}.ja-processes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.ja-process{display:block;white-space:normal;text-align:left;min-width:0;padding:14px;background:white;color:#15334f;border:1px solid #b8cfdf;border-radius:8px;line-height:1.45;overflow-wrap:anywhere}.ja-process span,.ja-process small{display:block;margin-top:5px;font-weight:400}.ja-process b{font-weight:700}.ja-process.selected{border:2px solid #0767e8;background:#eff6ff}.ja .ja-pending{font-weight:700;color:#c91522}.ja-settings{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:18px}.ja-counts{display:flex;flex-wrap:wrap;gap:8px}.ja-counts span{padding:10px;background:#eef6ff;border-radius:6px}.ja-counts b{margin-left:7px}.ja-help{font-size:14px;color:#4c6175}.ja-workers{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.ja-worker{display:flex!important;align-items:flex-start;gap:12px;padding:14px;border:1px solid #b8cfdf;border-radius:8px;overflow-wrap:anywhere;cursor:pointer}.ja-worker>input{flex:0 0 24px;width:24px;height:24px;margin:0}.ja-worker>span{min-width:0}.ja-worker span span,.ja-worker small{display:block;font-weight:400;line-height:1.5}.ja-worker.unavailable{background:#f1f4f7;color:#657384;cursor:default}.ja-worker:has(input:checked){border:2px solid #0767e8;background:#eff6ff}.ja-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;position:sticky;bottom:0;z-index:4;background:#fff;padding:12px 0;box-shadow:0 -3px 8px #1231}.ja button{min-height:44px}.ja-review{display:grid;grid-template-columns:180px minmax(0,1fr);gap:10px}.ja-review dt{color:#53697f}.ja-review dd{margin:0;overflow-wrap:anywhere}.ja-mobile-menu{display:none}
@media(max-width:700px){body:has(#job-assignment) .sidebar{position:static;width:100%;height:auto;min-height:0;padding:8px 12px}body:has(#job-assignment) .sidebar .nav{display:none}body:has(#job-assignment) .sidebar.ja-menu-open .nav{display:block;max-height:55dvh;overflow:auto}body:has(#job-assignment) .ja-mobile-menu{display:block;width:100%;margin:0;background:#143e60;color:white;min-height:44px}body:has(#job-assignment) .main{margin-left:0;min-width:0}body:has(#job-assignment) .content{padding:12px}body:has(#job-assignment) .page-head{flex-wrap:wrap;gap:8px}body:has(#job-assignment) .page-head h1{font-size:23px;line-height:1.3}body:has(#job-assignment) .page-head button{min-height:40px;white-space:normal}.ja{padding:14px!important}.ja-context,.ja-processes,.ja-settings,.ja-workers{grid-template-columns:minmax(0,1fr)}.ja-heading{align-items:flex-start}.ja-heading strong{font-size:19px}.ja-heading button{max-width:110px;font-size:12px;white-space:normal}.ja-review{grid-template-columns:minmax(0,1fr);gap:5px}.ja-review dd{margin-bottom:10px}.ja-footer{padding-bottom:max(12px,env(safe-area-inset-bottom));flex-wrap:wrap}.ja-footer button{flex:1 1 auto;white-space:normal}.ja-footer span{width:100%}}

#job-assignment :is(select,input:not([type=checkbox]),textarea){background:#fff!important;color:#173b5d!important;border:1px solid #a9c3d9!important;font-weight:400!important}#job-assignment .ja-plan-caption{display:block;font-weight:400;line-height:1.5;overflow-wrap:anywhere;margin:-6px 0 14px}#job-assignment .ja-plan-caption b{font-weight:700}
/* Approved G9: one compact sequence of native dropdowns and one save button. */
#job-assignment.ja-simple{max-width:720px}
.ja-simple .ja-simple-fields,.ja-simple .ja-employee-fields{display:grid;gap:16px}
.ja-simple .ja-heading{margin-bottom:14px;font-size:13px;color:#53697f}
.ja-simple #ja-message:empty,.ja-simple #ja-team:empty{display:none}
.ja-simple .ja-location{margin:0;color:#53697f;font-size:13px}
.ja-simple label{font-size:15px}
#job-assignment.ja-simple select{background:#225f9f!important;color:#fff!important;border:1px solid #225f9f!important;min-height:49px;border-radius:6px;padding:10px 30px 10px 12px;margin:7px 0 0;font-size:16px;text-overflow:ellipsis}
#job-assignment.ja-simple select:disabled{background:#e6edf4!important;border-color:#cfdae5!important;color:#5b6f80!important}
.ja-simple .ja-description,.ja-simple .ja-pending{display:block;margin:7px 0 0;line-height:1.5;font-weight:400;font-size:13px;overflow-wrap:anywhere}
.ja-simple .ja-pending{color:#b61e2c;font-weight:700;font-size:14px}
.ja-simple .ja-extra-employee{display:grid;grid-template-columns:minmax(0,1fr) 44px;gap:7px;align-items:start}
.ja-simple .ja-extra-employee button{margin-top:7px}
.ja-simple .ja-add{justify-self:start;font-size:14px}
.ja-simple .ja-assign{width:100%;min-height:50px;white-space:normal}
.ja-simple .ja-saved{padding:14px;background:#e7f5ed;border-left:4px solid #1e7e4a;color:#165d37;margin:15px 0}
.ja-simple .ja-review{font-size:14px;margin:18px 0}
.ja-simple #ja-team{font-size:13px;margin:0}

/* G9 daily report: grouped saved team rows, fit on mobile without horizontal scrolling. */
.ja-heading-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
#job-assignment #ja-report{background:#173d68!important;color:#fff!important;border-color:#173d68!important;font-weight:700}
#job-assignment #ja-report:disabled{opacity:.6}
.ja-report-title{font-size:18px;margin:8px 0 18px}
.ja-report-group{margin:0 0 18px;min-width:0}
.ja-report-group h3{margin:0 0 8px;font-size:14px;overflow-wrap:anywhere}
#job-assignment .ja-report-table{width:100%;table-layout:fixed;border-collapse:collapse;font-size:13px}
#job-assignment .ja-report-table :is(th,td){white-space:normal;overflow-wrap:anywhere;text-align:left;vertical-align:top;padding:9px 6px;border:1px solid #cfdae5}
#job-assignment .ja-report-table th{background:#edf3fa;color:#173d68;font-weight:700}
#job-assignment .ja-report-table th:first-child{width:22%}
#job-assignment .ja-report-table th:nth-child(2){width:38%}

/* Approved compact plan list: same saved values, three accumulated result lines. */
#page .plan-compact-table{width:100%!important;min-width:0!important;table-layout:fixed;font-size:8pt}
#page .plan-compact-table th,#page .plan-compact-table td{box-sizing:border-box;padding:8px 6px!important;vertical-align:top!important;white-space:normal!important;overflow-wrap:anywhere;line-height:1.5;min-width:0!important;width:auto}
#page .plan-compact-table thead th{line-height:1.35;position:sticky;top:0;z-index:2}
#page .plan-compact-table td button,#page .plan-compact-table td small{font-size:8pt;min-width:0}
#page .plan-compact-table td button{padding:4px 6px}
#page .plan-compact-table td .link-button{padding:0;text-align:left;white-space:normal;overflow-wrap:anywhere}
#page .plan-compact-table .pc-plan-totals{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 8px;font-variant-numeric:tabular-nums}
#page .plan-compact-table .pc-plan-totals b{white-space:nowrap;text-align:right}
#page .plan-compact-table .pc-plan-number{text-align:right;font-variant-numeric:tabular-nums}
#page .plan-compact-table .progress{min-width:0;max-width:100%}
@media(max-width:800px){#page .plan-compact-table th,#page .plan-compact-table td{padding:6px 3px!important}#page .plan-compact-table .pc-plan-totals{gap:3px}#page .plan-compact-table .pc-plan-totals b{white-space:normal}}
@media print{#page .plan-compact-table{width:100%!important;min-width:0!important}#page .plan-compact-table thead{display:table-header-group}}
/* Paired ID/date and finished-goods/description cells retain both field filters. */
#page .planning-paired-table{table-layout:fixed;width:100%!important;min-width:0!important;font-size:8pt}
#page .planning-paired-table th,#page .planning-paired-table td{width:auto!important;min-width:0!important;height:auto!important;padding:6px!important;vertical-align:top!important;white-space:normal!important;overflow-wrap:anywhere;text-overflow:clip;line-height:1.5}
#page .planning-paired-table .planning-pair-secondary{display:block;margin-top:3px}
#page .planning-paired-table .planning-pair-heading{display:grid;gap:4px}
#page .planning-paired-table .planning-pair-heading>span{display:flex;align-items:center;justify-content:space-between;gap:3px}
#page .planning-paired-table th .aq-filter{position:static!important;flex-shrink:0;margin:0!important;padding:1px 4px;font-size:8pt;min-height:20px}
#page .planning-paired-table tbody tr{height:auto!important}

/* B1 only: fit the existing five columns and provide room for eight compact records. */
#page #planningpicker .table-wrap{height:max(336px,calc(100dvh - 340px));min-height:336px;max-height:none;overflow:auto;margin-top:6px}
#page #planningpicker .planning-picker-paired{width:100%!important;min-width:0!important;table-layout:fixed}
#page #planningpicker .planning-picker-paired th,#page #planningpicker .planning-picker-paired td{padding:3px 5px!important;line-height:1.2;overflow:hidden;box-sizing:border-box}
#page #planningpicker .planning-picker-paired tbody tr,#page #planningpicker .planning-picker-paired tbody td{height:32px!important}
#page #planningpicker .planning-pair-secondary{margin-top:0}
#page #planningpicker .planning-pair-heading{gap:2px}
#page #planningpicker .planning-picker-product{display:flex;align-items:baseline;gap:6px;min-width:0;white-space:nowrap}
#page #planningpicker .planning-picker-product>span:first-child{flex:0 0 auto}
#page #planningpicker .planning-picker-description{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* B1: six columns fit the available screen; headings and records use at most two lines. */
#page #planningpicker .table-wrap{height:clamp(80px,calc(100dvh - 350px),600px);min-height:0}
#page #planningpicker .planning-picker-paired th,#page #planningpicker .planning-picker-paired td{padding:3px 4px!important;font-size:8pt;vertical-align:top!important}
#page #planningpicker .planning-pair-heading{gap:0;max-height:28px;overflow:hidden}
#page #planningpicker .planning-pair-heading>span{min-width:0;gap:2px}
#page #planningpicker .planning-picker-label{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;max-height:26px;line-height:13px;min-width:0}
#page #planningpicker th:nth-child(-n+2) .planning-picker-label{display:block;white-space:nowrap;text-overflow:ellipsis}
#page #planningpicker .planning-pair-heading .aq-filter{min-height:13px;height:13px;line-height:11px;padding:0 3px;font-size:7pt}
#page #planningpicker .planning-picker-product{display:block;white-space:normal}
#page #planningpicker .planning-picker-product>span,#page #planningpicker td:first-child>span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:13px}
#page #planningpicker .planning-picker-value,#page #planningpicker td>a{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;max-height:26px;overflow:hidden;line-height:13px;overflow-wrap:anywhere}

#user-credentials{padding:10px 12px}
#user-credentials>.actions{flex-wrap:wrap;gap:6px;align-items:end;margin:0}
#user-credentials>.actions label{display:grid;gap:4px;font-size:12px}
#user-credentials>p{margin:5px 0;line-height:1.25}
#user-credentials #credential-status{font-size:12px}
#credential-grid{min-width:0}
#credential-grid>.table-wrap{max-height:none;max-width:100%;overflow:auto}
#credential-grid table{width:100%;min-width:650px!important;table-layout:fixed}
#credential-grid th,#credential-grid td{height:24px;box-sizing:border-box;padding:2px 6px;text-align:left;line-height:1.2}
#credential-grid td[title]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#credential-grid td input{width:100%;min-width:0;min-height:0;height:20px;box-sizing:border-box;padding:1px 4px;font-size:11px}
#user-credentials [data-login-status]{font-size:11px;overflow-wrap:anywhere}
#user-credentials .credential-password{display:flex;align-items:center;gap:4px}
#user-credentials .credential-password input{flex:1}
#user-credentials .credential-password button{flex:none;min-height:0;height:20px;padding:0 4px;font-size:10px;white-space:nowrap;touch-action:none;user-select:none}
#user-credentials [data-login-revealed]{flex:1;min-width:0;padding:2px 4px;white-space:pre-wrap;overflow-wrap:anywhere;user-select:none}
#credential-grid tr[hidden],#user-credentials .credential-password [hidden],#credential-pagination[hidden]{display:none}
#credential-pagination{display:flex;justify-content:flex-end;align-items:center;gap:8px;margin-top:5px;font-size:11px}
#credential-pagination button{min-height:0;padding:2px 6px;font-size:10px}
.nav .authority-submenu>summary{font-size:12px;padding:8px 10px;color:inherit;cursor:pointer}
.nav .authority-submenu>.sub{padding-left:10px}
@media(max-width:600px){#user-credentials{padding:7px}}

#daily-station-attendance [hidden],#modal .sa-roster [hidden]{display:none!important}
.sa-scope{display:flex;gap:10px;align-items:center;flex-wrap:wrap;padding:9px 12px!important;margin-bottom:10px!important}
.sa-scope label{display:grid;gap:3px;min-width:120px;color:#425d78;font-size:11px;font-weight:650}
.sa-scope select,.sa-scope output{min-height:29px;padding:4px 7px;border:1px solid #c8d9ea;border-radius:4px;background:#f3f8fd;color:#163a60;font-size:12px}
.sa-totals{display:grid;gap:4px;min-width:286px;margin-left:auto}
.sa-totals div{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:5px 8px;border:1px solid #c7ddf1;border-radius:4px;background:#edf6ff;color:#1b466d;font-size:12px;font-weight:650}
.sa-totals div+div{border-color:#eed7d1;background:#fff2ee;color:#863627}
.sa-totals strong{font-size:18px;line-height:1}
.sa-message:not(:empty){padding:5px 10px;margin-bottom:6px;font-size:12px}
.sa-error{background:#fff2ee;color:#a12327;border-radius:4px}
.sa-recovery{display:flex;gap:7px;margin-bottom:8px}
.sa-box{padding:0!important;margin-bottom:10px!important;overflow:hidden}
.sa-box header{display:flex;align-items:center;justify-content:space-between;padding:6px 10px;background:#153a61;border-bottom:1px solid #153a61}
.sa-box header h2{margin:0;color:#fff;font-size:14px}
.sa-controls{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:4px}
.sa-controls [data-sa-sequence][aria-pressed="true"]{background:#dcecff;color:#123a61;box-shadow:inset 0 0 0 1px #91b6dc}
.sa-box .table-wrap{overflow:auto;background:#fff}
#daily-station-attendance .sa-box table{width:calc(204px + 324px * var(--sa-visible-jobs,1));table-layout:fixed}
.sa-box .sa-worker-col{width:204px}
.sa-box .sa-station-col{width:124px}
.sa-box .sa-tick-col{width:36px}
.sa-box .sa-time-col{width:64px}
.sa-box th,.sa-box td{height:22px;box-sizing:border-box;padding:2px 5px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center}
#daily-station-attendance .sa-box :is(th,td){font-size:10pt}
.sa-box thead{position:sticky;top:0;z-index:1}
#daily-station-attendance .sa-box thead th{background:#555;color:#fff}
#daily-station-attendance .sa-box tbody tr>*{background:#fff}
#daily-station-attendance .sa-box :is(.sa-worker-cell,.sa-job-start){border-left:2px solid #92b0cd}
#daily-station-attendance .sa-box tr>:last-child{border-right:2px solid #92b0cd}
#daily-station-attendance .sa-box thead tr:first-child>th{border-top:2px solid #92b0cd}
#daily-station-attendance .sa-box tbody tr:last-child>*{border-bottom:2px solid #92b0cd}
.sa-box .sa-worker-cell{text-align:left;white-space:normal}
.sa-worker-cell label{display:flex;align-items:center;gap:6px;cursor:pointer}
.sa-worker-cell small{font-size:6pt;color:#ba1824;font-weight:400;white-space:nowrap}
.sa-clock{font-variant-numeric:tabular-nums}
#daily-station-attendance .sa-box tbody tr.sa-selected>*{background:#d9ebff}
.sa-box input[type=checkbox],.sa-roster input[type=checkbox]{width:14px!important;height:14px!important;min-height:0;margin:0;flex:none;vertical-align:middle;accent-color:#1761ac}
.sa-box .sa-station-cell{text-align:left}
.sa-box :is(input.sa-job-station,.sa-station-value){box-sizing:border-box;width:100%;min-width:0;height:20px;padding:1px 3px;border:1px solid transparent;background:inherit;color:#173d61;font:inherit;text-align:left}
.sa-box .sa-station-value{display:flex;align-items:center}
.sa-box input.sa-job-station{border-color:#8aafcc;border-radius:3px}
#daily-station-attendance .sa-box input.sa-job-station:disabled{background:inherit!important;border-color:transparent;opacity:1;-webkit-text-fill-color:currentColor}
.sa-box input.sa-job-station::-webkit-calendar-picker-indicator{opacity:1}
.sa-box input.sa-job-station:disabled::-webkit-calendar-picker-indicator{opacity:0}
.sa-box footer{display:flex;align-items:center;gap:7px;flex-wrap:wrap;padding:6px 10px;color:#48627a;font-size:11px}
.sa-box footer strong{padding:4px 6px;border-radius:4px;background:#eaf3fc;color:#1a466e;font-weight:650}
.sa-box footer [data-sa-selected]{margin-left:auto}
.sa-box button{min-height:24px;padding:3px 8px;font-size:11px}
.sa-box footer button:enabled{background:#214b76;border-color:#214b76;color:#fff}
.sa-box footer button.primary:enabled{background:#153a61;border-color:#153a61}
.sa-box footer button:enabled:hover{background:#102e4d;border-color:#102e4d}
.sa-box footer button:disabled{background:#dce7f2;border-color:#a8bfd4;color:#405b76;opacity:1}
.sa-box [data-sa-empty]{padding:8px 10px;margin:0;color:#48627a;font-size:12px}
.sa-roster-list{margin:8px 0;max-height:45vh;overflow:auto}
.sa-roster-list label{display:flex;align-items:center;gap:8px;padding:5px}
.sa-roster-list table{width:100%}
.sa-roster-list table :is(th,td){padding:4px 8px}
.sa-roster-list table :is(th,td):first-child{text-align:center;width:70px}
#sa-roster-status:not(:empty){color:#a12327}
.sa-edit-fields{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0}
.sa-edit-fields label{display:grid;gap:3px}
.sa-edit-fields select,.sa-edit-fields input{background:#fff;color:#173d61}
#sa-edit-status:not(:empty){color:#a12327}

.sa-board-note{margin:0 0 8px;color:#425d78;font-size:11px}
.sa-current-location{font-size:8pt;font-weight:600;color:#173f65;white-space:normal;margin:3px 0 2px 20px}

#daily-station-attendance .sa-box td.sa-station-cell{font-size:5pt!important;white-space:normal;overflow:visible;text-overflow:clip}
#daily-station-attendance .sa-box .sa-station-history{font-size:5pt;line-height:1.2;display:grid;gap:1px;overflow-wrap:anywhere}
#daily-station-attendance .sa-box .sa-station-value{font-size:5pt;height:auto;min-height:16px;white-space:normal;overflow-wrap:anywhere}
#daily-station-attendance .sa-box input.sa-job-station{font-size:5pt!important}

.sa-overdue-legend{margin:0 0 8px;color:#c51d2c;font-size:12px;font-weight:600}
#daily-station-attendance .sa-overdue-caption{display:none}
#daily-station-attendance.sa-after-cutoff .sa-box tbody .sa-unclosed-worker>.sa-worker-cell,
#daily-station-attendance.sa-after-cutoff .sa-box tbody [data-sa-unclosed-job]{background:#fff0f2;color:#c51d2c;font-weight:700}
#daily-station-attendance.sa-after-cutoff .sa-box tbody .sa-unclosed-worker>.sa-worker-cell{box-shadow:inset 3px 0 #c51d2c}
#daily-station-attendance.sa-after-cutoff .sa-box tbody [data-sa-unclosed-job] .sa-station-value{color:inherit}
#daily-station-attendance.sa-after-cutoff .sa-box .sa-overdue-caption{display:block;font-size:8pt;line-height:1.15;white-space:normal;overflow-wrap:normal}

#daily-station-attendance [data-sa-find-open]{display:flex;align-items:center;justify-content:space-between;width:100%;border:0;background:transparent;color:inherit;text-align:left;font:inherit;font-weight:inherit;white-space:normal}
.sa-finder{padding:10px;background:#f3f8fd;border-bottom:1px solid #c7d9e9;color:#173d61}
.sa-finder>label{display:grid;gap:5px;max-width:360px;font-size:12px}
.sa-finder input[type=search]{padding:7px 9px;background:#fff;color:#173d61;border:1px solid #9ebbd4;border-radius:4px;min-width:0;width:100%}
.sa-finder [data-sa-find-options]{max-height:220px;overflow:auto;margin:7px 0;max-width:480px}
.sa-finder [data-sa-find-options]>label{display:flex;align-items:center;gap:8px;min-height:30px;padding:4px;font-size:12px}
#daily-station-attendance .sa-box tbody tr[data-sa-found]>.sa-worker-cell{outline:3px solid #e2a21e;outline-offset:-3px}
.sa-failures{padding:0!important;overflow:hidden;margin-bottom:10px!important}
.sa-failures header{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;padding:8px 10px;background:#153a61;color:#fff}
.sa-failures header h2{margin:0;font-size:14px;color:#fff}
.sa-failures header>span{font-size:11px}
.sa-failures .table-wrap{overflow:auto}
.sa-failures table{width:100%;table-layout:fixed;border-collapse:collapse}
.sa-failures th,.sa-failures td{padding:9px!important;white-space:normal;overflow-wrap:anywhere;text-align:left;border:1px solid #c7d9e9;font-size:12px}
.sa-failures th{background:#555;color:#fff}
.sa-failures th:first-child{width:44%}.sa-failures th:nth-child(2){width:18%}
.sa-failures td small{font-size:8pt}
.sa-failure-kind{font-size:8pt;font-weight:700;color:#b62330;line-height:1.4}
.sa-failure-time{font-size:8pt;color:#4d6476;margin-top:4px;line-height:1.4;font-variant-numeric:tabular-nums}
.sa-failures p{padding:8px 10px;margin:0;font-size:12px;color:#48627a}
.sa-failure-note{border-top:1px solid #d8e6f1}
@media(pointer:coarse){.sa-finder [data-sa-find-options]>label{min-height:44px}.sa-finder input[type=search]{font-size:16px}}

/* Master tables are direct children of module I; J and K are independent. */
.nav a.setup-mount-point{display:none!important}
.sidebar .backend-setup-direct{max-height:none;overflow:visible;margin-left:0}
.sidebar .backend-setup-direct button{font-size:12px;padding:8px 9px 8px 25px}
.sidebar .backend-setup-direct button::before{left:8px;top:14px;width:8px;height:8px}
.nav a[data-module="J"]{display:flex;align-items:center;gap:15px}

/* Hide denied routes, their tab controls and empty module headings. */
.nav [hidden]{display:none!important}

#planning-progress-report,#planning-progress-report *{font-size:8pt!important}
#planning-progress-report .pp-tools{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:12px}
#planning-progress-report .pp-bar{background:#153b60;color:#fff;padding:10px;margin:0 0 10px;font-weight:700}
#planning-progress-report .pp-table{table-layout:fixed;min-width:0!important;width:100%;border-collapse:collapse}
#planning-progress-report .pp-table th,#planning-progress-report .pp-table td{border:1px solid #cbd9e7;padding:6px 4px;vertical-align:top;white-space:normal!important;text-overflow:clip;overflow-wrap:anywhere;font-weight:400}
#planning-progress-report .pp-table th{background:#e3effb;color:#102747;font-weight:600}
#planning-progress-report .pp-head{display:flex;flex-direction:column;align-items:flex-start;gap:5px;min-height:0;line-height:1.35;white-space:normal}
#planning-progress-report .pp-filter-button{min-width:19px;padding:1px 4px;background:#fff;border:1px solid #cbd9e7;color:#075dcc;flex-shrink:0}
#planning-progress-report .pp-filter-button.pp-active{background:#145da1;color:white}
#planning-progress-report .pp-number{text-align:right;font-variant-numeric:tabular-nums}
#planning-progress-report .pp-status{color:#d00000}
#planning-progress-report .pp-scroll{max-height:65vh;overflow:auto}
#planning-progress-report .pp-pager{display:flex;justify-content:flex-end;align-items:center;gap:10px;margin-top:10px}
#planning-progress-report .pp-note{margin-top:12px;color:#526d8c}
#planning-progress-report .pp-filter{position:fixed;z-index:2000;width:min(290px,calc(100vw - 16px));max-height:calc(100vh - 16px);overflow:auto;background:#fff;color:#102744;border:1px solid #a9bfd7;box-shadow:0 5px 20px #1234;padding:12px;border-radius:5px}
#planning-progress-report .pp-filter[hidden]{display:none!important}
#planning-progress-report .pp-filter label{display:block;margin:8px 0}
#planning-progress-report .pp-filter input:not([type=checkbox]),#planning-progress-report .pp-filter select{display:block;width:100%;min-width:0;margin-top:4px;padding:6px}
#planning-progress-report .pp-filter .pp-choice{display:flex;align-items:center;gap:7px;overflow-wrap:anywhere}
#planning-progress-report .pp-values{max-height:145px;overflow:auto}
#planning-progress-report .pp-filter-sort,#planning-progress-report .pp-filter-actions{display:flex;gap:5px;flex-wrap:wrap;margin:8px 0}

#planning-progress-report{min-width:0;max-width:100%}
#planning-progress-report .pp-head>span{display:block;min-width:0;max-width:100%;white-space:normal!important;overflow:visible;text-overflow:clip;word-break:normal;overflow-wrap:anywhere}
#planning-progress-report .pp-tools>div{display:flex;gap:5px;flex-wrap:wrap}
#planning-progress-report .pp-filter-button{align-self:flex-end}
#planning-progress-report .pp-scroll{max-width:100%;width:100%}
@media(max-width:700px){#planning-progress-report .pp-table{min-width:850px!important}}

#modal:has(#employee-import-sheet){width:min(1450px,96vw);max-width:96vw}
#employee-import-sheet{font-size:8pt;min-width:0}
#employee-import-sheet p{margin:8px 0}
#employee-import-sheet #eir-grid{overflow:auto;max-height:55vh;border:1px solid #ccd9e6}
#employee-import-sheet table{border-collapse:collapse;min-width:1350px;table-layout:fixed;width:100%}
#employee-import-sheet th,#employee-import-sheet td{border:1px solid #ccd9e6;padding:3px;vertical-align:top;font-size:8pt}
#employee-import-sheet th{position:sticky;top:0;z-index:2;background:#eaf3fa;color:#102744}
#employee-import-sheet td input{width:100%;min-width:0;font-size:8pt;padding:5px;box-sizing:border-box}
#employee-import-sheet .eir-locked td{background:#e7edf3}
#employee-import-sheet input[readonly]{background:#e7edf3;color:#405870}
#employee-import-sheet td:first-child{width:125px}
#employee-import-sheet td:first-child span,#employee-import-sheet td:first-child small{display:block}
#employee-import-sheet td:first-child button{font-size:8pt;padding:2px 5px}
#employee-import-sheet .eir-deleted{opacity:.55;text-decoration:line-through}
#employee-import-sheet .eir-invalid{border:2px solid #d00000!important;background:#fff1f1!important}
#employee-import-sheet .eir-pager{display:flex;justify-content:flex-end;align-items:center;gap:8px;margin-top:8px}

.login-activity-title,
.login-activity-title + p,
.login-activity,
.login-activity :is(input,select,button,table,th,td) { font-size: 8pt !important; }
.login-activity-tools,.login-activity-pages { display: flex; flex-wrap: wrap; align-items: end; gap: 8px; }
.login-activity-tools { justify-content: space-between; margin-bottom: 8px; align-items: center; }
.login-activity-summary,.login-activity-export { display: flex; flex-wrap: wrap; align-items: end; gap: 8px; }
.login-activity-export { margin-left: auto; }
.login-activity-export label { display: grid; gap: 3px; width: 114px; }
.login-activity-export input { width: 100%; min-width: 0; }
.login-activity [data-login-export-status] { margin: 0 0 8px; text-align: right; }
.login-activity [hidden] { display: none !important; }
.login-activity-table { width: 100%; min-width: 560px; table-layout: fixed; }
.login-activity-table col:nth-child(1) { width: 5%; }
.login-activity-table col:nth-child(2) { width: 20%; }
.login-activity-table col:nth-child(3) { width: 11%; }
.login-activity-table col:nth-child(4),.login-activity-table col:nth-child(6) { width: 18%; }
.login-activity-table col:nth-child(5) { width: 8%; }
.login-activity-table thead th { background: #e3effa; }
.login-activity-table .aq-filter { min-height: 19px; margin-left: 4px; padding: 0 4px; }
.login-excel-menu { max-width: calc(100vw - 16px); }
.login-filter-values { max-height: 145px; overflow: auto; border: 1px solid #d7e2ec; }
.login-excel-menu [data-value-pages] { margin-top: 5px; display: flex; flex-wrap: wrap; gap: 5px; }
.login-activity-table :is(th,td) { padding: 5px 8px; text-align: left; }
.login-activity-table .login-row-no { text-align: center; padding-inline: 2px; }
.login-activity-table tbody tr:nth-child(even) { background: #f6faff; }
.login-activity-table time { font-variant-numeric: tabular-nums; white-space: nowrap; }
.login-activity-table .login-module-list { color: #20598c; overflow-wrap: anywhere; }
.login-activity-table .login-active { color: #156141; font-weight: 600; }
.login-activity-pages { justify-content: flex-end; margin-top: 8px; align-items: center; }
.login-activity-pages[hidden] { display: none; }

/* Only the automatic expired-session sign-in page; current app layouts stay scoped. */
#app .login.session-expired-login{box-sizing:border-box;width:480px;max-width:calc(100% - 24px);margin:8vh auto;padding:28px 32px;font:15px/1.45 'Segoe UI',Arial,sans-serif;border-radius:6px}
#app .session-expired-login .logo{font-size:55px;line-height:1.1;font-weight:850;letter-spacing:-4px;color:#092d50;margin-bottom:9px}
#app .session-expired-login h1{font-size:35px;font-weight:750;letter-spacing:-1px;line-height:1.2;margin:0 0 9px}
#app .session-expired-login>p.muted{margin:0 0 18px;font-size:13px}
#app .session-expired-login [data-session-expired]{margin:0 0 20px;padding:11px 13px;border-radius:5px;border:1px solid #f1b0b5;background:#fff1f1;color:#a0000b;font-size:13px}
#app .session-expired-login [data-session-expired] strong{font-weight:650;display:block}
#app .session-expired-login label.field{display:block;font-size:12px;font-weight:650;margin:0 0 15px}
#app .session-expired-login .field input{height:42px;margin-top:5px;padding:9px 10px;font-size:15px}
#app .session-expired-login button.primary{padding:9px 18px;min-height:42px;font-size:14px}
#app .session-expired-login .footer-note{margin:16px 0 0;font-size:11px}
@media(max-width:420px){#app .login.session-expired-login{padding:24px 20px}#app .session-expired-login h1{font-size:29px}}

