body.tpr-approval-enabled .procurement-btn-row{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px!important;align-items:stretch}
body.tpr-approval-enabled .procurement-action-btn{min-width:0!important;width:100%!important;flex-direction:column!important;gap:3px!important;padding:7px 2px!important;min-height:62px;font-size:clamp(10px,2.65vw,14px)!important;line-height:1.3;white-space:nowrap}
body.tpr-approval-enabled .procurement-action-btn svg{width:25px;height:25px;flex-shrink:0}
body.tpr-approval-enabled .procurement-action-btn .s2-action-icon{font-size:23px!important;line-height:25px}
body.tpr-approval-enabled .procurement-action-btn:disabled{filter:none;opacity:.65}
body.tpr-approval-enabled #btn-approval{background:#ffb321!important;color:#3c2300!important;border:0}
#tpr-usage-view{position:fixed;inset:0;z-index:10000;background:white;display:flex;flex-direction:column;overflow:hidden;max-width:100vw;color:#12382c}
.tpr-report-toolbar{display:flex;align-items:center;justify-content:space-between;gap:4px;flex-shrink:0;padding:8px max(6px,env(safe-area-inset-right)) 8px max(6px,env(safe-area-inset-left));background:#e6ffdc;border-bottom:1px solid #bdd8c5}
.tpr-report-toolbar button,.tpr-report-toolbar a{font:600 12px Tahoma,sans-serif;padding:8px 7px;border:1px solid #b5cebd;border-radius:7px;color:#174833;background:#fff;text-decoration:none;white-space:nowrap;cursor:pointer}
.tpr-report-scroll{overflow-y:auto;overflow-x:hidden;min-height:0;flex:1;padding-bottom:env(safe-area-inset-bottom)}
#tpr-report-image{display:block;width:100%;max-width:700px;height:auto;margin:0 auto}

body.s2-production .procurement-edit-row{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px;margin-bottom:8px}
body.s2-production .procurement-edit-row .procurement-action-btn{width:100%;min-width:0;min-height:48px}
body.s2-production #btn-draft-save{background:#6b7280!important;color:white!important;border:0}
body.s2-production .emp-content{padding-bottom:calc(180px + env(safe-area-inset-bottom))!important}

/* Keep the original action colors in the two-row layout. */
body.s2-production #btn-edit{background:#800020!important;color:#fff!important}
body.s2-production #btn-approval{background:#ffb321!important;color:#3c2300!important}
body.s2-production #btn-save{background:linear-gradient(135deg,#2444b5,#2464ed)!important;color:#fff!important}
body.s2-production #btn-receipt{background:#477f6c!important;color:#fff!important}
/* Shared compact, fixed actions for staff and administrators. */
body.s2-production .procurement-bottom-bar{position:fixed!important;bottom:0!important;top:auto!important;left:0!important;right:0!important;transform:none!important;max-width:none!important;padding:6px 8px calc(6px + env(safe-area-inset-bottom))!important;z-index:1000!important;box-sizing:border-box}
body.s2-production.tpr-approval-enabled .procurement-bottom-bar .procurement-action-btn{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;min-height:44px!important;height:44px!important;padding:3px 2px!important;gap:2px!important;font-size:11px!important;line-height:12px!important}
body.s2-production .procurement-bottom-bar .procurement-edit-row{margin-bottom:5px!important}
body.s2-production.tpr-approval-enabled .procurement-bottom-bar .procurement-action-btn svg,body.s2-production.tpr-approval-enabled .procurement-bottom-bar .s2-action-icon{display:block!important;flex:0 0 23px!important;width:23px!important;height:23px!important;font-size:21px!important;line-height:23px!important;text-align:center}
body.s2-production .emp-content{padding-bottom:calc(125px + env(safe-area-inset-bottom))!important}
