/* ProcureHub V1.7 UI/UX layer - desktop-first, mobile-safe */
:root{--v17-primary:#087f70;--v17-dark:#063f39;--v17-mint:#19c99a;--v17-ink:#163c37;--v17-soft:#eef8f5;--v17-border:#d6e9e3;--v17-shadow:0 16px 45px rgba(5,55,48,.10)}
html{scroll-behavior:smooth}body{overflow-x:hidden!important}
.container,.ph-nav .container{width:min(100% - 36px,1080px)!important;margin-inline:auto!important}
.ph-main{width:min(100% - 36px,1080px)!important;max-width:1080px!important;margin-inline:auto!important}
.ph-section{padding-block:54px!important}.ph-section-head{max-width:920px!important;margin-inline:auto!important}
.ph-section-head p,.ph-footer p,.ph-footer a{font-size:15px!important;line-height:1.65!important}
/* Homepage */
.ph-hero-inner{width:min(100% - 36px,1080px)!important;margin:auto!important}.ph-hero-inner>div:first-child{width:min(760px,100%)!important}
.ph-hero h1{font-size:clamp(40px,5.2vw,62px)!important;line-height:1.03!important;letter-spacing:-1.8px!important}
.ph-business-grid{display:flex!important;width:max-content!important;gap:20px!important;animation:v17BusinessMove 32s linear infinite!important;will-change:transform!important}
.ph-business-grid:hover{animation-play-state:paused!important}.ph-business-card{width:245px!important;flex:0 0 245px!important}.ph-business-card img{height:170px!important}
@keyframes v17BusinessMove{0%{transform:translateX(8%)}100%{transform:translateX(-28%)}}
#businesses .container{overflow:hidden!important}.ph-pills{justify-content:flex-start!important;overflow:hidden!important}
.ph-network-strip,.ph-product-showcase{max-width:100%!important}
/* About */
.ph-values .ph-value h3{font-size:21px!important}.ph-values .ph-value p{font-size:16px!important;line-height:1.65!important}.ph-section-head h2{font-size:clamp(30px,3.1vw,42px)!important}
/* Contact */
.ph-contact-item strong,.ph-contact-item span,.ph-contact-item a{font-size:15px!important;line-height:1.55!important}.ph-contact-card>p{font-size:15px!important}.ph-map{min-height:300px!important;border-radius:18px!important;overflow:hidden!important}
.ph-map iframe{width:100%!important;height:300px!important;border:0!important}
/* Internal page headers */
.page-header,.hero,.ph-page-title,.audit-hero,.inv-hero{max-width:1080px!important;margin-inline:auto!important;background:linear-gradient(135deg,#063f39,#0b8f7a)!important;color:#fff!important;border:1px solid rgba(255,255,255,.14)!important;box-shadow:0 18px 45px rgba(6,63,57,.18)!important}
.page-header h1,.hero h1,.ph-page-title h1,.audit-hero h1,.inv-hero h1{font-size:clamp(30px,4vw,44px)!important}.page-header p,.hero p,.ph-page-title p,.audit-hero p,.inv-hero p{font-size:15px!important;color:rgba(255,255,255,.90)!important}
/* module headers with visibility */
.admin-content .page-header,.main-content .welcome,.topbar,.audit-hero,.inv-hero{color:#fff!important}
/* analytics / notifications compact hero */
.analytics-shell .hero{padding:22px 26px!important;border-radius:20px!important}.analytics-shell .hero h2{font-size:25px!important;margin:6px 0 7px!important}.analytics-shell .hero-copy{font-size:15px!important;max-width:700px!important}.analytics-shell .eyebrow{font-size:12px!important}
.notifications-shell .hero,.notifications-page .hero{padding:22px 26px!important;border-radius:20px!important}.notifications-shell .hero h1,.notifications-page .hero h1{font-size:32px!important}.notifications-shell .hero p,.notifications-page .hero p{font-size:15px!important}
/* Admin dashboard */
.main-content{min-width:0!important}.page-content{width:min(100% - 32px,1080px)!important;margin-inline:auto!important}.stats-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:16px!important}.quick-actions{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:16px!important}.action-card{min-height:175px!important}.section-header h2{font-size:27px!important}.section-header p{font-size:15px!important;color:#476761!important}.table-wrapper{max-width:100%!important;overflow:auto!important}
.admin-management-card{grid-column:1/-1!important;background:linear-gradient(135deg,#063f39,#087f70)!important;color:#fff!important}.admin-management-card h3,.admin-management-card p{color:#fff!important}
/* Consistent navigation */
.ph-app-top{min-height:72px!important;padding:10px 22px!important}.ph-app-top img{max-height:48px!important}.ph-app-top nav a{font-size:13px!important;font-weight:850!important}.topbar .container,.topbar-content{max-width:1080px!important;margin-inline:auto!important}
/* Back button */
.v17-back{display:inline-flex!important;align-items:center!important;gap:8px!important;margin:0 0 14px!important;padding:10px 15px!important;border-radius:11px!important;background:#fff!important;color:var(--v17-dark)!important;border:1px solid var(--v17-border)!important;font-weight:900!important;text-decoration:none!important;box-shadow:0 7px 18px rgba(4,63,55,.08)!important}.v17-back:hover{transform:translateY(-1px)!important;background:var(--v17-soft)!important}
/* Cards / text */
.ph-panel,.card,.panel,.audit-card,.inv-card,.kpi-card,.stat-card,.action-card{box-shadow:var(--v17-shadow)!important}.ph-panel h2,.card h2,.panel h2{font-size:23px!important}.ph-panel p,.card p,.panel p{font-size:15px!important;line-height:1.6!important}
/* Login */
.ph-auth{display:grid!important;grid-template-columns:minmax(360px,44%) minmax(0,56%)!important;min-height:100svh!important}.ph-auth-panel{padding:clamp(28px,4vw,54px)!important;display:flex!important;align-items:center!important;justify-content:center!important}.ph-auth-card{width:min(100%,470px)!important;padding:34px!important}.ph-auth-card h1{font-size:34px!important}.ph-auth-card .lead{font-size:15px!important;line-height:1.6!important}.ph-auth-visual{min-height:100svh!important;padding:clamp(35px,6vw,80px)!important;display:flex!important;align-items:flex-end!important}.ph-auth-visual>div{max-width:600px!important}.ph-auth-visual h2{font-size:clamp(40px,4.8vw,64px)!important}
/* Customer */
.dashboard-page .ph-page-title{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:20px!important}.dashboard-page .ph-page-title h1{font-size:34px!important}.dashboard-page .ph-page-title p{font-size:16px!important}.dashboard-page .ph-grid-3{grid-template-columns:repeat(4,minmax(0,1fr))!important}.dashboard-page .ph-panel{min-height:175px!important}.dashboard-page .ph-panel h2{font-size:19px!important}.dashboard-page .ph-panel p{font-size:14px!important}.dashboard-page #paymentsCard{display:none!important}.dashboard-page .ph-main:before{content:"";display:block;height:6px;width:92px;border-radius:99px;background:linear-gradient(90deg,var(--v17-mint),var(--v17-primary));margin:6px 0 16px}
/* Supplier */
.supplier-page .ph-main{max-width:1080px!important}.supplier-page .ph-page-title h1{font-size:34px!important}.supplier-page .ph-page-title p{font-size:16px!important}.supplier-page .ph-stats{grid-template-columns:repeat(4,minmax(0,1fr))!important}.supplier-page .ph-panel{padding:22px!important}.supplier-page .ph-app-top nav{gap:12px!important}
/* Audit/invoice */
.audit-wrap,.inv-wrap{width:min(100% - 36px,1080px)!important;max-width:1080px!important;margin-inline:auto!important;padding:24px 0 50px!important}.audit-hero,.inv-hero{padding:24px!important}.audit-hero>span,.inv-hero>span{display:none!important}.audit-hero h1,.inv-hero h1{margin-top:0!important}.audit-tools{max-width:1080px!important}.audit-table th,.audit-table td{font-size:14px!important}
/* Hide old V labels everywhere */
/* Management center */
.v17-management-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.v17-management-card{display:flex;align-items:center;gap:15px;padding:20px;border-radius:18px;background:#fff;border:1px solid var(--v17-border);box-shadow:var(--v17-shadow);text-decoration:none;color:var(--v17-ink)}.v17-management-card .icon{width:52px;height:52px;display:grid;place-items:center;border-radius:15px;background:linear-gradient(135deg,#e5fbf4,#c8f3e7);font-size:25px}.v17-management-card strong{font-size:16px}.v17-management-card span{display:block;font-size:13px;color:#627d77;margin-top:3px}
/* Announcements */
.v17-notice-section{padding:42px 0;background:linear-gradient(180deg,#f7fcfa,#edf8f4)}.v17-notice-wrap{width:min(100% - 36px,1080px);margin:auto}.v17-notice-head{display:flex;justify-content:space-between;align-items:end;gap:16px;margin-bottom:18px}.v17-notice-head h2{font-size:30px;margin:0}.v17-notice-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.v17-post-card{background:#fff;border:1px solid var(--v17-border);border-radius:18px;padding:20px;box-shadow:var(--v17-shadow)}.v17-post-type{font-size:11px;font-weight:950;letter-spacing:.08em;color:#087f70}.v17-post-card h3{font-size:19px;margin:8px 0}.v17-post-card p{font-size:14px;line-height:1.6;color:#49645f}.v17-post-card a{font-weight:900;color:#087f70}.v17-visit{font-size:13px;color:#6a837e}
/* Desktop only tightening */
@media(min-width:901px){.ph-header .container{max-width:1080px!important}.ph-navlinks{gap:4px!important}.ph-navlinks a{font-size:14px!important;padding-inline:9px!important}.ph-actions .ph-btn{min-height:44px!important;padding-inline:15px!important}.main-content{padding-right:8px!important}.sidebar{width:250px!important}.admin-content{margin-left:250px!important}}
@media(max-width:900px){.container,.ph-main,.page-content,.audit-wrap,.inv-wrap,.v17-notice-wrap{width:min(100% - 24px,1080px)!important}.stats-grid,.quick-actions,.dashboard-page .ph-grid-3,.supplier-page .ph-stats,.v17-management-grid,.v17-notice-list{grid-template-columns:1fr 1fr!important}.ph-business-grid{animation-duration:24s!important}.dashboard-page .ph-page-title{display:block!important}.dashboard-page .ph-page-title .ph-btn{margin-top:12px}.ph-auth{grid-template-columns:1fr!important}.ph-auth-visual{min-height:38vh!important}.ph-auth-panel{min-height:auto!important}.v17-notice-head{display:block}.v17-notice-head .v17-visit{margin-top:8px}}
@media(max-width:560px){.stats-grid,.quick-actions,.dashboard-page .ph-grid-3,.supplier-page .ph-stats,.v17-management-grid,.v17-notice-list{grid-template-columns:1fr!important}.ph-hero h1{font-size:38px!important}.ph-section-head h2{font-size:29px!important}.ph-values .ph-value p{font-size:15px!important}.ph-auth-card{padding:24px!important}.ph-auth-visual{display:none!important}.ph-app-top{padding:9px 12px!important}.ph-app-top nav{overflow:auto!important}.page-content{width:calc(100% - 24px)!important}}

.notifications-shell .topbar,.notifications-page .topbar,.notifications-page .hero,.notifications-shell .hero{max-width:1080px!important;margin-inline:auto!important}.notifications-page .topbar,.notifications-shell .topbar{padding:12px 20px!important}.notifications-page .brand img,.notifications-shell .brand img{max-height:40px!important}.notifications-page .hero h1,.notifications-shell .hero h1{font-size:34px!important}.notifications-page .hero .subtitle,.notifications-shell .hero .subtitle{font-size:15px!important;line-height:1.6!important}
