/* Press workflow only. Keep live controls, business validation and printed labels intact. */
.pw-mobile-label{display:none}
@media screen and (max-width:1023px){
  html#wkModulePage body :is(#production,#productionHistory){min-width:0;max-width:100%;box-sizing:border-box;overflow-wrap:anywhere}
  html#wkModulePage body :is(#production,#productionHistory) :is(.box,.pw-panel,.head,.form,.toolbar,.instruction-filters,.pw-filters){min-width:0;max-width:100%;box-sizing:border-box}
  html#wkModulePage body :is(#production,#productionHistory) :is(.head,.toolbar,.pw-filters,.instruction-filters,.pw-pager,.material-pager){flex-wrap:wrap;gap:8px}
  html#wkModulePage body #production :is(.pw-filters,.instruction-filters)>:is(input,select,label){min-width:0!important;max-width:100%!important;flex:1 1 190px}
  html#wkModulePage body #production :is(#pressWorkflowSearch,#instructionSearch){min-width:0!important;max-width:100%!important;flex-basis:100%}
  html#wkModulePage body :is(#production,#productionHistory) :is(.pw-table-scroll,.material-scroll,#pressInstructionList,#productionTable){min-width:0;max-width:100%;overflow:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
  html#wkModulePage body :is(#production,#productionHistory) :is(.pw-job-actions,.pw-pager,.material-pager){white-space:normal;overflow-wrap:anywhere}
  html#wkModulePage body #pressWorkflowJobs .pw-table-scroll{overflow:visible;max-height:none}
  html#wkModulePage body #pressWorkflowJobs .pw-jobs-table{display:block;width:100%;min-width:0!important;max-width:100%;border:0}
  html#wkModulePage body #pressWorkflowJobs .pw-jobs-table thead{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%)}
  html#wkModulePage body #pressWorkflowJobs .pw-jobs-table tbody{display:grid;gap:12px;width:100%}
  html#wkModulePage body #pressWorkflowJobs .pw-jobs-table tr{display:block;min-width:0;padding:0 12px;border:1px solid #cbd9e7;border-radius:8px;background:#fff}
  html#wkModulePage body #pressWorkflowJobs .pw-jobs-table td{display:block;width:auto;min-width:0;max-width:100%;padding:10px 0;border:0;border-bottom:1px solid #e2e8f0;white-space:normal;overflow-wrap:anywhere;box-sizing:border-box}
  html#wkModulePage body #pressWorkflowJobs .pw-jobs-table td:last-child{border-bottom:0}
  html#wkModulePage body #pressWorkflowJobs .pw-mobile-label{display:block;margin-bottom:5px;font-size:13px;font-weight:700;color:#526d85}
  html#wkModulePage body #pressWorkflowJobs .pw-job-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;max-width:none}
  html#wkModulePage body #pressWorkflowJobs .pw-job-actions>.btn{width:100%;min-width:0;white-space:normal}
  html#wkModulePage body :is(#production,#productionHistory) :is(button,.btn){min-height:44px!important;font-size:14px!important;white-space:normal;overflow-wrap:anywhere;max-width:100%}
  html#wkModulePage body :is(#pressProductionEntryDialog,#pressWorkflowDialog,#pressInstructionDialog,#pressInstructionListDialog){
    box-sizing:border-box!important;inset:0!important;margin:auto!important;transform:none!important;
    width:calc(100vw - 16px)!important;max-width:calc(100vw - 16px)!important;
    height:calc(var(--wk-module-viewport,100dvh) - 16px)!important;max-height:calc(var(--wk-module-viewport,100dvh) - 16px)!important;
    min-width:0!important;min-height:0!important;padding:0!important;overflow:hidden!important;border-radius:10px!important;
  }
  html#wkModulePage body :is(#pressProductionEntryDialog,#pressWorkflowDialog,#pressInstructionDialog,#pressInstructionListDialog)[open]{display:flex;flex-direction:column}
  html#wkModulePage body :is(#pressProductionEntryDialog,#pressWorkflowDialog,#pressInstructionDialog) :is(.pw-dialog-head,.instruction-dialog-head){flex:none;position:static!important;display:flex;align-items:flex-start;justify-content:space-between;gap:8px;flex-wrap:wrap;margin:0;padding:12px;border-bottom:1px solid #dce5ee;background:#fff;min-width:0}
  html#wkModulePage body :is(#pressProductionEntryDialog,#pressWorkflowDialog,#pressInstructionDialog) :is(.pw-dialog-head,.instruction-dialog-head)>:is(h2,h3){min-width:0;flex:1 1 180px;font-size:17px!important;line-height:1.45;margin:0;white-space:normal;overflow-wrap:anywhere;word-break:keep-all}
  html#wkModulePage body :is(#pressProductionEntryDialog,#pressWorkflowDialog,#pressInstructionDialog) :is(.pw-dialog-head,.instruction-dialog-head)>.btn{flex:0 0 auto;width:auto!important;min-width:62px}
  html#wkModulePage body :is(#pressProductionEntryDialog,#pressWorkflowDialog) .pw-dialog-head>.wk-press-language{display:flex;flex:0 0 100%;align-items:center;justify-content:flex-end;gap:0;margin:0;min-width:0;line-height:1.4}
  html#wkModulePage body :is(#pressProductionEntryDialog,#pressWorkflowDialog) .pw-dialog-head>.wk-press-language>span{display:none}
  html#wkModulePage body :is(#pressProductionEntryDialog,#pressWorkflowDialog) .pw-dialog-head>.wk-press-language[data-wk-press-control]>select[data-wk-press-language]{flex:none;width:135px!important;min-width:0!important;min-height:40px!important;font-size:14px!important;padding:7px 9px!important}
  html#wkModulePage body #pressProductionEntryDialog .pw-entry-body,
  html#wkModulePage body :is(#pressWorkflowDialogBody,#pressInstructionDetail){flex:1 1 auto!important;min-width:0;min-height:0;max-width:100%;padding:12px;overflow:auto!important;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;box-sizing:border-box}
  html#wkModulePage body #pressProductionEntryDialog .form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;align-items:start;width:100%;max-width:100%;min-width:0}
  html#wkModulePage body #pressProductionEntryDialog .form>div{grid-column:auto!important;min-width:0;max-width:100%;width:100%;box-sizing:border-box}
  html#wkModulePage body :is(#pressWorkflowDialog,#pressInstructionDialog) :is(.pw-fields,.pw-output-fields,.instruction-detail-grid){display:grid;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px;align-items:start;min-width:0;max-width:100%}
  html#wkModulePage body :is(#pressWorkflowDialog,#pressInstructionDialog) :is(.pw-fields,.pw-output-fields,.instruction-detail-grid)>*{min-width:0;max-width:100%;grid-column:auto!important;box-sizing:border-box}
  html#wkModulePage body :is(#pressProductionEntryDialog,#pressWorkflowDialog,#pressInstructionDialog) :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea){width:100%!important;min-width:0!important;max-width:100%!important;box-sizing:border-box;height:auto!important;min-height:44px!important;padding:10px!important;font-size:16px!important;line-height:1.4}
  html#wkModulePage body :is(#pressProductionEntryDialog,#pressWorkflowDialog,#pressInstructionDialog) :is(input[type=checkbox],input[type=radio]){width:20px!important;height:20px!important;min-height:20px!important;flex:0 0 20px;margin:0 5px 0 0}
  html#wkModulePage body :is(#pressProductionEntryDialog,#pressWorkflowDialog,#pressInstructionDialog) textarea{min-height:80px!important;resize:vertical}
  html#wkModulePage body :is(#pressProductionEntryDialog,#pressWorkflowDialog,#pressInstructionDialog) :is(button,.btn){font-size:14px!important;min-height:44px!important;max-width:100%;height:auto!important;line-height:1.4;white-space:normal!important;overflow-wrap:anywhere}
  html#wkModulePage body :is(#pressProductionEntryDialog,#pressWorkflowDialog) label{font-size:14px;line-height:1.5;white-space:normal;overflow-wrap:anywhere}
  html#wkModulePage body :is(#pressProductionEntryDialog,#pressWorkflowDialog) :is(fieldset,.pw-output,.pw-raw-remainder){min-inline-size:0;min-width:0;max-width:100%;box-sizing:border-box;margin-inline:0;padding:10px}
  html#wkModulePage body #pressWorkflowDialog :is(legend,.pw-dialog-meta,.pw-dialog-meta>*,.pw-output>small,.pw-warning,.pw-good,.pw-error,output){min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere;word-break:keep-all;font-size:14px;line-height:1.55}
  html#wkModulePage body #pressWorkflowDialog .pw-output legend{font-weight:700;white-space:normal;overflow-wrap:anywhere}
  html#wkModulePage body #pressWorkflowDialog :is(.pw-check,.pw-raw-remainder label){display:flex;align-items:flex-start;gap:5px;min-width:0;max-width:100%;margin:8px 0;line-height:1.5}
  html#wkModulePage body #pressWorkflowDialog .pw-dialog-meta{display:flex;flex-direction:column;gap:6px;padding:10px}
  html#wkModulePage body #pressProductionEntryDialog :is(.pw-selection-full,#prStatus,#pressDailyGate,.note,.pw-warning){display:block;white-space:normal;overflow-wrap:anywhere;word-break:keep-all;max-width:100%;min-width:0;font-size:14px;line-height:1.55}
  html#wkModulePage body #pressProductionEntryDialog .pw-selection-full[hidden]{display:none!important}
  html#wkModulePage body #pressProductionEntryDialog #pressRawVerification{display:flex;flex-direction:column;align-items:stretch;gap:10px;min-width:0;max-width:100%;box-sizing:border-box;margin:10px 0;padding:10px}
  html#wkModulePage body #pressProductionEntryDialog :is(.prv-input,.prv-result,.prv-override){width:100%;max-width:100%;min-width:0;flex:0 0 auto!important;box-sizing:border-box;overflow-wrap:anywhere;white-space:normal}
  html#wkModulePage body #pressProductionEntryDialog :is(.prv-input-line,.process-qr-line,.pw-mold-link-actions){display:flex;flex-wrap:wrap;gap:8px;align-items:stretch;min-width:0;max-width:100%}
  html#wkModulePage body #pressProductionEntryDialog :is(.prv-input-line,.process-qr-line)>input{flex:1 1 100%;width:100%!important;min-width:0!important}
  html#wkModulePage body #pressProductionEntryDialog :is(.prv-input-line,.process-qr-line,.pw-mold-link-actions)>.btn{flex:1 1 130px;width:auto!important;white-space:normal!important}
  html#wkModulePage body #pressProductionEntryDialog :is(.prv-result,.prv-override) p{font-size:14px;line-height:1.55;margin:4px 0;overflow-wrap:anywhere;white-space:normal}
  html#wkModulePage body :is(#pressProductionEntryDialog .pw-entry-actions,#pressWorkflowDialog .pw-dialog-actions){display:flex;flex-wrap:wrap;align-items:stretch;gap:8px;margin-top:10px!important;padding:10px 0!important;min-width:0;max-width:100%;box-sizing:border-box;background:#fff}
  html#wkModulePage body #pressProductionEntryDialog .pw-entry-actions{position:sticky!important;bottom:0!important;z-index:4}
  html#wkModulePage body #pressWorkflowDialog .pw-dialog-actions{flex:none;position:static!important;padding:10px 12px!important;margin:0!important}
  html#wkModulePage body :is(#pressProductionEntryDialog .pw-entry-actions,#pressWorkflowDialog .pw-dialog-actions)>.btn{flex:1 1 calc(50% - 4px);width:auto!important;min-width:0}
  html#wkModulePage body #pressWorkflowDialogError{flex:none;max-height:18dvh;overflow:auto;margin:0;padding:8px 12px}
  html#wkModulePage body #pressWorkflowDialogError:empty{display:none}
  html#wkModulePage body #pressInstructionListDialog>#pressInstructionPanel{flex:1 1 auto;min-height:0;min-width:0;max-width:100%;padding:12px;overflow:hidden}
  html#wkModulePage body #pressInstructionListDialog :is(.head,.instruction-filters,#pressInstructionPager){flex-wrap:wrap;min-width:0;max-width:100%;gap:8px}
  html#wkModulePage body #pressInstructionListDialog .instruction-filters>:is(input,select,label){flex:1 1 190px;min-width:0!important;max-width:100%!important}
  html#wkModulePage body #pressInstructionListDialog #instructionSearch{flex-basis:100%;width:100%;min-width:0}
  html#wkModulePage body #pressInstructionListDialog #pressInstructionList{flex:1 1 auto!important;min-width:0;min-height:0;max-width:100%;max-height:none!important;overflow:auto!important;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
  html#wkModulePage body #pressInstructionListDialog #pressInstructionList table{min-width:1120px}
  html#wkModulePage body #pressInstructionDialog :is(.instruction-detail-grid b,.instruction-detail-grid small,.note){max-width:100%;white-space:normal;overflow-wrap:anywhere;word-break:keep-all}
}
@media screen and (max-width:600px){
  html#wkModulePage body #pressProductionEntryDialog .form,
  html#wkModulePage body #pressWorkflowDialog :is(.pw-fields,.pw-output-fields),
  html#wkModulePage body #pressInstructionDialog .instruction-detail-grid{grid-template-columns:minmax(0,1fr)!important}
}
@media screen and (max-width:1023px) and (max-height:480px){
  html#wkModulePage body :is(#pressProductionEntryDialog,#pressWorkflowDialog,#pressInstructionDialog,#pressInstructionListDialog)[open]{display:block;overflow:auto!important}
  html#wkModulePage body #pressProductionEntryDialog .pw-entry-body,
  html#wkModulePage body :is(#pressWorkflowDialogBody,#pressInstructionDetail),
  html#wkModulePage body #pressInstructionListDialog>#pressInstructionPanel{flex:none!important;min-height:0;overflow:visible!important}
  html#wkModulePage body #pressProductionEntryDialog .pw-entry-actions{position:static!important}
  html#wkModulePage body #pressInstructionListDialog #pressInstructionList{max-height:50dvh!important;flex:none!important}
}

/* Current mobile press station: one active work, five existing task actions. */
@media screen and (max-width:1023px){

html#wkModulePage body.pw-station-mode #production>#pressInstructionPanel{display:none!important}
html#wkModulePage body.pw-mobile-active #production.active>#pressProductionEntry,
html#wkModulePage body.pw-mobile-active #production.active #pressWorkflowPanel>.head,
html#wkModulePage body.pw-mobile-active #production.active #pressWorkflowPanel>.pw-filters,
html#wkModulePage body.pw-mobile-active #production.active #pressWorkflowPager,
html#wkModulePage body.pw-mobile-active #production.active #pressWorkflowStatus:not(.pw-error),
html#wkModulePage body.pw-mobile-active #production.active #pressWorkflowJobs .pw-jobs-table>tbody>tr:not(.pw-mobile-work-row){display:none!important}
html#wkModulePage body.pw-mobile-active #pressWorkflowPanel{padding:0;border:0;background:transparent}
html#wkModulePage body.pw-mobile-active #pressWorkflowJobs .pw-mobile-work-row{padding:0;border:0;background:transparent}
html#wkModulePage body.pw-mobile-active #pressWorkflowJobs .pw-mobile-work-cell{padding:0;border:0}
.pw-mobile-work-summary{padding:16px;background:#fff;border:1px solid #ccdbec;border-radius:10px}
.pw-mobile-work-title{display:flex;gap:8px;align-items:center;justify-content:space-between}.pw-mobile-work-title>b{font-size:21px;color:#173f67}
.pw-mobile-work-product{display:grid;gap:5px;margin:15px 0}.pw-mobile-work-product>small,.pw-mobile-work-summary dt{font-size:12px;color:#60758b}.pw-mobile-work-product>b{font-size:16px;line-height:1.5;overflow-wrap:anywhere}
.pw-mobile-work-summary dl{margin:0;display:grid;gap:10px}.pw-mobile-work-summary dl>div{display:flex;gap:12px;justify-content:space-between;align-items:baseline}.pw-mobile-work-summary dd{margin:0;font-size:16px;font-weight:700;text-align:right;overflow-wrap:anywhere;min-width:0;max-width:68%}
html#wkModulePage body.pw-mobile-active #pressWorkflowJobs .pw-mobile-action-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:12px 0}
html#wkModulePage body.pw-mobile-active #pressWorkflowJobs .pw-mobile-action-grid>.btn{min-height:58px!important;padding:12px!important;font-size:15px!important;line-height:1.45;border-radius:8px}
.pw-mobile-action-grid:has(>.pqp-job-button)>.pw-mobile-quality-wait{display:none!important}
.pw-mobile-action-grid>.pqp-job-button,.pw-mobile-action-grid>.pw-mobile-quality-wait{order:-1}
.pw-mobile-action-grid>[data-pw-action=finish]{grid-column:1/-1}
.pw-mobile-action-grid>[data-pqp-quality-status]{display:none}
.pw-mobile-work-details{margin-top:10px;border:1px solid #d5e1ed;border-radius:8px;background:#fff;overflow:hidden}.pw-mobile-work-details>summary{padding:12px;color:#426483;font-size:14px;font-weight:600;cursor:pointer}.pw-mobile-work-detail-grid{padding:0 12px 12px;display:grid;gap:12px}.pw-mobile-work-detail-grid>section{border-top:1px solid #e2e9f0;padding-top:10px;min-width:0}.pw-mobile-work-detail-grid small{display:block;line-height:1.5;overflow-wrap:anywhere}.pw-mobile-work-detail-grid .pw-job-actions:empty{display:none}

}
