
/* ProcureHub Bold Production UI V3 */
:root{
 --ph-v3:#087f70;--ph-v3-dark:#043b35;--ph-v3-mint:#19c99a;--ph-v3-ink:#102a2a;
 --ph-v3-bg:#eef7f4;--ph-v3-card:rgba(255,255,255,.97);--ph-v3-shadow:0 18px 50px rgba(4,59,53,.14);
}
html{min-height:100%;overflow-y:scroll;scrollbar-gutter:stable;scroll-behavior:smooth}
body{min-height:100vh;overflow-x:hidden;font-size:15px;font-weight:500;color:var(--ph-v3-ink)}
body::before{content:"";position:fixed;inset:0;z-index:-2;background:linear-gradient(120deg,rgba(238,247,244,.94),rgba(245,250,249,.92)),url('https://images.unsplash.com/photo-1556910103-1c02745aae4d?auto=format&fit=crop&w=2400&q=92') center/cover no-repeat;}
h1{font-size:clamp(30px,4vw,48px)!important;font-weight:950!important;line-height:1.05!important}
h2{font-size:clamp(23px,3vw,34px)!important;font-weight:950!important;line-height:1.12!important}
h3{font-size:18px!important;font-weight:900!important}
p,label,th,td,button,a,input,select,textarea{font-size:inherit}
label{font-weight:850!important;color:#173b37!important}
button,.ph-btn,.primary-btn,.secondary-btn,.logout-btn,.action-btn,.action-edit,.action-toggle{min-height:44px;font-weight:900!important;letter-spacing:.01em}
input,select,textarea{min-height:44px;font-size:15px!important}
.ph-app-top,.ph-header,.topbar,.main-header,.site-header{min-height:70px!important}
.ph-app-top img,.ph-brand img,.ph-auth-brand img,.logo-area img{height:auto!important;max-height:52px!important;width:auto!important}
.ph-app-top,.ph-header{padding-top:8px!important;padding-bottom:8px!important}
.ph-panel,.ph-stat,.card,.panel,.stat-card,.supplier-product-card,.payment-card,.order-card,.jobrow{border:1px solid rgba(8,127,112,.18)!important;box-shadow:var(--ph-v3-shadow)!important}
.ph-panel:hover,.supplier-product-card:hover,.jobrow:hover{transform:translateY(-3px);box-shadow:0 24px 60px rgba(4,59,53,.18)!important}
.ph-btn-primary,.primary-btn{background:linear-gradient(135deg,#087f70,#05a985)!important;color:#fff!important;border:0!important}
.ph-btn-outline,.secondary-btn{background:#fff!important;color:#075f55!important;border:2px solid rgba(8,127,112,.25)!important}
.ph-btn-light{color:#043b35!important}
.ph-table-wrap,.table-wrap{overflow:auto;max-width:100%;-webkit-overflow-scrolling:touch}
table{min-width:720px}
/* Admin layout: mobile-safe, no clipped buttons */
.admin-layout{min-height:100vh!important}
.sidebar{width:270px!important;background:linear-gradient(180deg,#032d29,#064b43 62%,#03231f)!important}
.logo-area{padding:18px!important}
.logo-area:before{content:"";display:block;height:42px;width:165px;margin-bottom:10px;background:url('../assets/procurehub-brand-2026.png') center/contain no-repeat}
.logo-area h1{font-size:20px!important}
.admin-content{margin-left:270px!important;min-width:0}
.nav-link{font-size:14px!important;min-height:46px!important;border-radius:12px!important}
.nav-link.active{background:linear-gradient(135deg,rgba(25,201,154,.30),rgba(8,127,112,.36))!important;box-shadow:inset 3px 0 #19c99a}
@media(max-width:900px){
 .admin-layout{display:block!important}
 .sidebar{position:sticky!important;top:0!important;left:0!important;bottom:auto!important;width:100%!important;height:auto!important;max-height:none!important;z-index:2000!important}
 .logo-area{display:flex!important;align-items:center!important;gap:12px!important;padding:10px 14px!important}
 .logo-area:before{width:150px;height:42px;margin:0!important;flex:0 0 auto}
 .logo-area h1,.logo-area p{display:none!important}
 .admin-nav{display:flex!important;gap:7px!important;overflow-x:auto!important;padding:8px!important;flex:0 0 auto!important;-webkit-overflow-scrolling:touch!important}
 .admin-nav .nav-title{display:none!important}
 .admin-nav .nav-link{white-space:nowrap!important;flex:0 0 auto!important;margin:0!important;padding:10px 13px!important}
 .admin-user{display:none!important}
 .admin-content{margin-left:0!important;padding:14px!important;width:100%!important}
 .page-header,.hero,.ph-page-title{padding:18px!important}
 .ph-grid-3,.ph-grid-2{grid-template-columns:1fr!important}
 .ph-stats{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .ph-table-wrap,.table-wrap{overflow-x:auto!important}
 .ph-table,.table{min-width:760px!important}
 .actions button,.action-btn,.action-edit,.action-toggle{width:auto!important;min-width:100px!important}
}
@media(max-width:520px){
 body{font-size:14px}
 .ph-stats{grid-template-columns:1fr 1fr!important}
 .ph-page-title{display:block!important}
 .ph-page-title .ph-btn{width:100%!important;margin-top:12px}
 .ph-app-top{gap:8px!important}
 .ph-app-top nav{order:3;width:100%;overflow-x:auto;display:flex!important;white-space:nowrap!important;padding-top:8px}
 .ph-app-top{flex-wrap:wrap!important}
 .ph-app-top img{max-width:145px!important}
 .ph-btn,.primary-btn,.secondary-btn,.logout-btn{min-height:46px!important}
}
/* Authentication */
.ph-auth{min-height:100svh!important;height:auto!important;overflow:visible!important}
.ph-auth-panel{min-height:100svh!important;overflow:visible!important}
/* Product showcase */
.ph-product-showcase{padding:70px 0;background:linear-gradient(135deg,#063f39,#087f70);color:#fff;overflow:hidden}
.ph-product-showcase .container{position:relative}
.ph-product-track{display:flex;gap:22px;animation:phV3Marquee 32s linear infinite;width:max-content;padding:18px 0}
.ph-product-card-v3{width:240px;background:rgba(255,255,255,.13);border:1px solid rgba(255,255,255,.25);border-radius:24px;padding:14px;backdrop-filter:blur(10px);box-shadow:0 20px 50px rgba(0,0,0,.2)}
.ph-product-card-v3 img{width:100%;height:170px;object-fit:cover;border-radius:18px}
.ph-product-card-v3 strong{display:block;font-size:17px;margin-top:12px}.ph-product-card-v3 span{opacity:.82;font-size:12px}
@keyframes phV3Marquee{from{transform:translateX(0)}to{transform:translateX(-50%)}}
.ph-network-strip{overflow:hidden;padding:24px 0;background:#fff;border-block:1px solid #dcece7}
.ph-network-track{display:flex;gap:22px;width:max-content;animation:phV3Marquee 28s linear infinite}
.ph-network-logo{min-width:170px;height:62px;padding:0 22px;border:2px solid #d9ebe5;border-radius:18px;display:flex;align-items:center;justify-content:center;font-weight:950;color:#06483f;background:linear-gradient(135deg,#fff,#eefaf6);box-shadow:0 8px 24px rgba(4,59,53,.08)}
@media(prefers-reduced-motion:reduce){.ph-product-track,.ph-network-track{animation:none}}
/* Notifications */
.ph-notification-actions{display:flex;gap:10px;flex-wrap:wrap;margin:16px 0}
.danger-btn{background:#fff0f0!important;color:#a51d2d!important;border:2px solid #f2b8bf!important;border-radius:12px!important;font-weight:900!important;min-height:44px!important;padding:10px 15px!important}
.ph-badge{display:inline-flex;min-width:22px;height:22px;padding:0 7px;align-items:center;justify-content:center;border-radius:999px;background:#ff3b57;color:#fff;font-size:11px;font-weight:950;vertical-align:middle;margin-left:5px}
/* Payments */
.ph-payment-option{display:flex;gap:12px;align-items:center;padding:15px;border:2px solid #dbece7;border-radius:16px;background:#fff;cursor:pointer;margin:9px 0}
.ph-payment-option:has(input:checked){border-color:#087f70;background:#edfbf6;box-shadow:0 8px 24px rgba(8,127,112,.10)}
.ph-total-box{padding:18px;border-radius:18px;background:linear-gradient(135deg,#063f39,#087f70);color:#fff}
/* Print */
@media print{.no-print,.sidebar,.ph-app-top,.ph-header,.topbar,button{display:none!important}.admin-content{margin:0!important}.ph-table-wrap{overflow:visible!important}}
