/* V115 — original PharmaFlow green across every navigation surface. */
body[data-pf-department]{--pf-menu-green:#006B65;--pf-menu-dark:#004f4b;--pf-menu-soft:#e2f2ef}
body[data-pf-department] .sidebar{background:linear-gradient(180deg,var(--pf-menu-green),var(--pf-menu-dark))!important;border-left:0;color:#fff!important}
body[data-pf-department] .sidebar .brand small,body[data-pf-department] .sidebar .nav-group>small{color:#dbefeb!important}
body[data-pf-department] .sidebar .nav-item,body[data-pf-department] .sidebar .nav-item>span{color:#effaf7!important}
body[data-pf-department] .sidebar .nav-item:hover{background:#ffffff25!important;color:#fff!important}
body[data-pf-department] .sidebar .nav-item.active{background:#fff!important;color:var(--pf-menu-dark)!important}
body[data-pf-department] .sidebar .nav-item.active>span{color:var(--pf-menu-dark)!important}
body[data-pf-department] .sidebar .pf-department-select{background:#fff!important;color:var(--pf-menu-dark)!important;border-color:#b6dcd4!important}
body[data-pf-department] .pf-department-options button.active{background:var(--pf-menu-soft)!important;color:var(--pf-menu-dark)!important}
body[data-pf-department] .sidebar .pf-tier-menu-button.active{background:#fff!important;color:var(--pf-menu-dark)!important}
body[data-pf-department] .sidebar .pf-tier-menu-button.active>span{background:var(--pf-menu-soft)!important;color:var(--pf-menu-dark)!important}
body[data-pf-department] .sidebar .pf-radio-menu-button:hover,body[data-pf-department] .sidebar .pf-tier-menu-button:hover{background:#ffffff28;color:#fff}
body[data-pf-department] .topbar{border-bottom:3px solid var(--pf-menu-green)}
body[data-pf-department] .pf-view-header{background:linear-gradient(135deg,var(--pf-menu-green),var(--pf-menu-dark));color:#fff}
body[data-pf-department] .pf-view-header::before{background:#a0e1d0}
body[data-pf-department] .pf-view-header small,body[data-pf-department] .pf-view-header p{color:#dff2ee}
body[data-pf-department] .pf-view-header .restricted-badge{background:#ffffff24;color:#fff}
body[data-pf-department] .pf-menu-toggle{background:var(--pf-menu-green)!important;border-color:var(--pf-menu-green)!important;color:#fff!important}
body[data-pf-department] .pf-operator-dock{border-top:3px solid var(--pf-menu-green)}
body[data-pf-department] .pf-operator-dock-button.active{background:var(--pf-menu-soft);color:var(--pf-menu-dark)}
body[data-pf-department] .pf-operator-actions .pf-operator-icon{background:var(--pf-menu-soft);color:var(--pf-menu-green)}
body[data-pf-department] .pf-operator-action:hover{border-color:var(--pf-menu-green);background:var(--pf-menu-soft)}
body[data-pf-department] .pf-team-arrows button{color:var(--pf-menu-green)}
body[data-pf-department] :is(.team-tabs,.management-view-toggle,.view-toggle) button.active{border-color:var(--pf-menu-green)!important;background:var(--pf-menu-soft)!important;color:var(--pf-menu-dark)!important}

/* Tier has its own shell and navigation; keep it aligned with the site. */
body[data-pf-department] .pf-tier-shell{left:var(--pf-tier-sidebar-edge,224px)!important;right:0!important;max-width:none!important;background:#f2f6f5!important;color:#17332f!important}
body[data-pf-department] .pf-tier-top{background:linear-gradient(135deg,var(--pf-menu-green),var(--pf-menu-dark))!important;border-bottom:0!important;color:#fff!important;box-shadow:0 3px 16px #003b3630!important}
body[data-pf-department] .pf-tier-top h1{font-size:clamp(23px,2vw,29px)!important;color:#fff!important}
body[data-pf-department] .pf-tier-top small{font-size:12px!important;color:#e0f4ef!important}
body[data-pf-department] .pf-tier-top>#tier-close{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:8px 14px!important;background:#fff!important;border-color:#d3e8e1!important;border-radius:10px!important;color:var(--pf-menu-dark)!important;font-size:14px!important;font-weight:750!important}
body[data-pf-department] .pf-tier-top>#tier-close::before{content:"×";font-size:22px;line-height:1}
body[data-pf-department] .pf-tier-top>.pf-tier-menu-trigger{display:none;align-items:center;gap:7px;min-height:44px;padding:8px 12px!important;background:#fff;border:1px solid #d3e8e1;border-radius:10px;color:var(--pf-menu-dark);font-size:14px!important;font-weight:750}
body[data-pf-department] .pf-tier-wrap{padding:18px clamp(14px,2vw,30px) 40px!important}
body[data-pf-department] .pf-tier-level-tabs{display:flex;flex-wrap:wrap;gap:7px;margin:0 0 12px!important;padding:6px;border:1px solid #c9ded8;border-radius:12px;background:#fff}
body[data-pf-department] .pf-tier-level-tabs button{min-height:46px;padding:9px 16px;border:1px solid #cbded8;border-radius:9px;background:#f7faf9;color:#285b50;font-size:14px;font-weight:750}
body[data-pf-department] .pf-tier-level-tabs button.active{background:var(--pf-menu-green)!important;border-color:var(--pf-menu-green)!important;color:#fff!important}
body[data-pf-department] .pf-tier-tabs{display:flex;flex-wrap:wrap;align-items:center;gap:7px;max-width:100%;margin:0 0 15px!important;padding:6px;border:1px solid #cbded8;border-radius:12px;background:var(--pf-menu-soft)}
body[data-pf-department] .pf-tier-tabs>button{min-height:46px;padding:9px 14px;border:1px solid transparent;border-radius:9px;background:#fff!important;color:#195b50!important;font-size:14px!important;font-weight:750;box-shadow:none!important}
body[data-pf-department] .pf-tier-tabs>button.active{background:var(--pf-menu-green)!important;border-color:var(--pf-menu-green)!important;color:#fff!important;box-shadow:none!important}
body[data-pf-department] .pf-tier-tabs>.pf-tier-choice-nav{background:#fff}
body[data-pf-department] .pf-tier-choice-nav{border-radius:10px;border-color:#c9dfd7;background:#fff}
body[data-pf-department] .pf-tier-choice-nav button{min-width:43px;min-height:43px!important;border-color:#cfe0da!important;background:var(--pf-menu-soft)!important;color:var(--pf-menu-dark)!important;font-size:22px!important}
body[data-pf-department] .pf-tier-choice-nav small{color:#536f65;font-size:11px}
body[data-pf-department] .pf-tier-choice-nav b{color:#1c4038;font-size:14px!important}
body[data-pf-department] .pf-tier-context-navigation{margin:0 0 14px;gap:10px}
body[data-pf-department] .pf-action-tabs{width:max-content;max-width:100%;flex-wrap:wrap;border-color:#c9dfd7;background:var(--pf-menu-soft)}
body[data-pf-department] .pf-action-tabs button{min-height:44px;font-size:14px;color:#285d52}
body[data-pf-department] .pf-action-tabs button.active{background:var(--pf-menu-green)!important;color:#fff!important;box-shadow:none!important}
body[data-pf-department] .pf-tier-card{border-color:#d0e0db!important;border-radius:14px!important;box-shadow:0 5px 18px #143d330d!important}
body[data-pf-department] .pf-tier-dashboard-card>header{border-bottom:1px solid #d3e3dc;background:#eff7f3}
body[data-pf-department] .pf-tier-card h3{color:#164b41;font-size:18px}
body[data-pf-department] .pf-tier-level>small,body[data-pf-department] .pf-tier-card>header small{color:#2b7464;font-size:12px;font-weight:750}
body[data-pf-department] .pf-tier-card .pf-action-form button,body[data-pf-department] .pf-save{min-height:44px;background:var(--pf-menu-green)!important;border-color:var(--pf-menu-green)!important;color:#fff!important;font-size:14px}
body[data-pf-department] .pf-tier-card input,body[data-pf-department] .pf-tier-card select,body[data-pf-department] .pf-tier-card textarea{font-size:14px}
body[data-pf-department] .pf-tier-batches>header button{min-height:44px;color:var(--pf-menu-dark);border-color:var(--pf-menu-green);font-size:14px}
body[data-pf-department] .pf-tier-autosave-note{display:inline-flex;align-items:center;gap:8px;border-radius:8px;padding:8px 10px;background:var(--pf-menu-soft);color:var(--pf-menu-dark);font-size:13px}
body[data-pf-department] .pf-tier-operator-table>div:not(.head){min-height:46px;font-size:13px}
body[data-pf-department] .pf-tier-operator-table b{font-size:14px}
body[data-pf-department] .pf-tier-status-legend{display:flex;flex-wrap:wrap;gap:8px 14px;margin:0 0 12px;font-size:13px;font-weight:700;color:#36594e}
body[data-pf-department] .pf-tier-status-legend span{display:inline-flex;align-items:center;gap:6px}
body[data-pf-department] .pf-tier-key{display:inline-block;width:13px;height:13px;border-radius:50%}
body[data-pf-department] .pf-status-picker{gap:8px}
body[data-pf-department] .pf-status-picker button{position:relative;min-width:44px;min-height:44px;border:2px solid #fff;border-radius:50%;box-shadow:0 0 0 1px #a7bdb5}
body[data-pf-department] .pf-status-picker button.selected{outline:3px solid var(--pf-menu-green);outline-offset:2px}
body[data-pf-department] .pf-status-picker button.selected::after{content:"✓";position:absolute;inset:0;display:grid;place-items:center;color:#fff;font-size:21px;font-weight:800}
body[data-pf-department] .pf-actions th{padding:11px;font-size:13px;background:#edf6f2}
body[data-pf-department] .pf-actions td{padding:10px;font-size:13px;vertical-align:top}
body[data-pf-department] .pf-actions tr:nth-child(even){background:#f8fbfa}
body[data-pf-department] .pf-actions button{min-height:40px;font-size:13px}
body[data-pf-department] .pf-actions textarea{min-height:70px}
body[data-pf-department] .pf-mechanic-actions-buttons .primary{background:var(--pf-menu-green)!important;border-color:var(--pf-menu-green)!important;color:#fff!important}
body[data-pf-department] .pf-tier-empty{margin:10px 0;padding:20px;border:1px dashed #bad7ce;border-radius:10px;background:#f7fbf9;color:#3c655a;font-size:14px;font-style:normal}
body[data-pf-department] .pf-toast{background:var(--pf-menu-dark)!important;color:#fff;font-size:14px}

/* Tier begins where the sidebar ends; each dashboard column fits the remaining viewport. */
body[data-pf-department] .pf-tier-wrap{box-sizing:border-box;width:100%;max-width:1500px!important;margin:0 auto!important}
body[data-pf-department] .pf-tier-overview,body[data-pf-department] :is(.pf-tier-dashboard-top,.pf-tier-dashboard-bottom,.pf-tier-dashboard-card,.pf-tier-card,.pf-tier-context-navigation,.pf-tier-tabs){min-width:0;max-width:100%;box-sizing:border-box}
body[data-pf-department] .pf-tier-dashboard-top,body[data-pf-department] .pf-tier-dashboard-bottom{grid-template-columns:repeat(2,minmax(0,1fr))!important}
body[data-pf-department] .pf-tier-safety-cross{box-sizing:border-box;width:min(100% - 24px,350px);max-width:350px!important}
body[data-pf-department] .pf-tier-safety-cross .pf-tier-safety-shift small{font-size:10px!important;line-height:1!important}
@media(max-width:1050px){
 body[data-pf-department] .pf-tier-dashboard-top,body[data-pf-department] .pf-tier-dashboard-bottom{grid-template-columns:minmax(0,1fr)!important}
 body[data-pf-department] .pf-tier-tabs>.pf-tier-choice-nav{flex:1 1 100%;min-width:0;max-width:100%}
}
@media(max-width:480px){body[data-pf-department] .pf-tier-safety-cross .pf-tier-safety-shift .pf-dot{display:none}}

@media(max-width:760px){
 body[data-pf-department] .pf-tier-shell{left:0!important}
 body[data-pf-department] .pf-tier-wrap{padding:12px!important}
 body[data-pf-department] .pf-tier-top{padding:12px!important}
 body[data-pf-department] .pf-tier-top>.pf-tier-menu-trigger{display:inline-flex}
 body[data-pf-department].pf-mobile-nav-open .pf-menu-backdrop{z-index:10050!important}
 body[data-pf-department].pf-mobile-nav-open .sidebar{z-index:10060!important}
 body[data-pf-department] .pf-tier-level-tabs button{flex:1 1 auto;min-width:0}
 body[data-pf-department] .pf-tier-tabs>button{flex:1 1 auto}
 body[data-pf-department] .pf-tier-tabs>.pf-tier-choice-nav{flex:1 1 100%;max-width:none}
 body[data-pf-department] .pf-tier-context-navigation,body[data-pf-department] .pf-tier-context-navigation.with-shift{grid-template-columns:1fr!important}
 body[data-pf-department] .pf-action-form{grid-template-columns:1fr!important}
 body[data-pf-department] .pf-actions-wrap{overflow:visible}
 body[data-pf-department] .pf-actions,body[data-pf-department] .pf-actions tbody,body[data-pf-department] .pf-actions tr,body[data-pf-department] .pf-actions td{display:block;width:100%;min-width:0!important}
 body[data-pf-department] .pf-actions thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 body[data-pf-department] .pf-actions tr{margin:10px 0;border:1px solid #d1e0db;border-radius:12px;background:#fff!important;overflow:hidden}
 body[data-pf-department] .pf-actions td{display:grid;grid-template-columns:minmax(95px,30%) minmax(0,1fr);align-items:start;gap:10px;padding:10px 12px;border-bottom:1px solid #e5eeea;overflow-wrap:anywhere}
 body[data-pf-department] .pf-actions td:last-child{border-bottom:0}
 body[data-pf-department] .pf-actions td::before{content:attr(data-label);color:#4c6b61;font-size:12px;font-weight:750}
 body[data-pf-department] .pf-actions td>*{min-width:0}
 body[data-pf-department] .pf-actions .pf-action-main{min-width:0;flex-wrap:wrap}
 body[data-pf-department] .pf-actions .pf-tier2-action-title{min-width:0;width:100%}
 body[data-pf-department] .pf-actions :is(input,select,textarea){max-width:100%;width:100%}
 body[data-pf-department] .pf-mechanic-actions textarea{min-width:0!important}
 body[data-pf-department] .pf-mechanic-actions-buttons{min-width:0;flex-wrap:wrap}
}
@media print{body[data-pf-department] .pf-tier-top{background:#fff!important;color:#111!important}body[data-pf-department] .pf-tier-top h1,body[data-pf-department] .pf-tier-top small{color:#111!important}}

/* Make failed action mutations visible beside the button as well as in the toast. */
body[data-pf-department] .pf-tsd-action-error{color:#ae2c24;background:#fff0ee;border-left:3px solid #d6473b;border-radius:6px;margin:7px 0 0;padding:7px 9px;font-size:13px;font-weight:700;line-height:1.35}
