/* Compact portal headers: shared by owner, customer and production views. */
:root{--portal-yellow:#ffe27a;--portal-yellow-line:#d4b754;--portal-header-height:94px}
html .sitebar{border-bottom:3px solid var(--portal-yellow);background:#fffdf5}
html .sitebar .sitebar-inner{min-height:88px;padding:6px 24px;gap:18px}
html .sitebar .brand img{width:72px;height:72px;max-width:72px;max-height:72px}
html .sitebar .portal-header-title{font-size:26px;line-height:1.2;flex:1 1 auto;max-width:440px}
html .sitebar .header-actions{flex:0 1 auto;gap:8px;margin-left:auto}
html .sitebar .header-actions .button,html .sitebar .pwa-header-button{min-height:44px;padding:9px 14px;font-size:13px;box-shadow:none}
html .sitebar .pwa-header-button{border-color:var(--portal-yellow-line);background:var(--portal-yellow);color:var(--green)}
html .sitebar .pwa-header-button:hover{background:#ffdc58}
html body:not(.checking-session) .shell{padding-top:8px}
.portal-account-tools:empty{display:none}
.jj-embedded .portal-account-tools{margin-bottom:6px;gap:8px}
.jj-embedded .portal-account-tools .embedded-account-bar{padding-block:0}
.jj-embedded .portal-account-tools .pwa-website-link{min-height:44px;padding:8px 14px;font-size:14px}
.owner-workspace{margin-top:0}
.owner-workspace>.aw-nav{grid-template-columns:repeat(5,minmax(0,1fr));margin-bottom:12px;padding:5px;border-radius:13px;background:#f4f2e6}
.aw-nav button,.aw-nav .aw-production-link{min-height:48px;padding:10px 8px;font-size:15px}
.aw-nav .aw-production-link{display:flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:10px;color:var(--green);text-decoration:none;font-weight:700;line-height:1.4}
.aw-nav .aw-production-link:hover{background:#f8edc3}
.aw-nav .aw-production-link:focus-visible{outline:3px solid var(--green);outline-offset:2px}
.aw-nav button[aria-pressed=true],.aw-order-nav button[aria-pressed=true]{background:var(--portal-yellow);color:var(--green);border-color:var(--portal-yellow-line)}
.owner-workspace>#admin-cycle{margin-bottom:12px}
#admin-cycle.cycle-overview{padding:18px 22px}
.aw-panel{padding:20px 22px}
.aw-panel-heading h2{margin:0 0 5px}
.aw-panel-heading>p{margin-bottom:12px}
.aw-order-nav{margin:12px 0 16px;padding-bottom:12px}
.cw-entry{margin-bottom:12px;padding:20px 22px}
.cw-entry-heading{margin-bottom:14px}
#customer .section{margin-top:12px}
.cw-customer-active #customer-actions,.cw-customer-active #customer .section,.jj-app:not(.jj-embedded) .section,.jj-app:not(.jj-embedded) #cw-cart-details{scroll-margin-top:calc(var(--portal-header-height) + 12px)}
#cw-next-delivery .customer-delivery-plan{padding:17px 22px}
.cw-catalog-toolbar{margin-top:8px;margin-bottom:12px}
.cw-order-toolbar{margin-bottom:12px}
.inventory-page .inventory-header{padding:8px 24px;min-height:56px;border-bottom:3px solid var(--portal-yellow);background:#fffdf5}
.portal-wordmark{font:18px/1.3 'Capriola','Trebuchet MS',sans-serif;color:var(--green);white-space:nowrap}
.inventory-header .button{min-height:40px;padding:8px 14px;font-size:13px;background:var(--portal-yellow);color:var(--green);border-color:var(--portal-yellow-line);box-shadow:none}
.inventory-page .inventory-shell{padding-top:9px}
.production-page .production-intro{margin-bottom:9px;gap:12px}
.production-intro .eyebrow{display:none}
.production-page .production-intro h1{font-size:27px;line-height:1.25}
.production-intro>p:last-child{font-size:13px}
.production-page .production-nav{padding:6px;gap:6px}
.production-page .production-nav button{min-height:44px;padding:9px 13px}
.production-nav button[aria-pressed=true]{background:var(--portal-yellow);color:var(--green);border-color:var(--portal-yellow-line)}
.production-page .plan-card{margin-top:10px}
.production-page #plan-status{margin:7px 0;padding:8px 12px}
@media(max-width:900px){html .sitebar .portal-header-title{font-size:23px}html .sitebar .sitebar-inner{padding-inline:16px}.aw-panel{padding:18px}}
@media(max-width:760px){
 :root{--portal-header-height:94px}
 html .sitebar .sitebar-inner{grid-template-columns:72px minmax(0,1fr);min-height:88px;padding:6px 12px;gap:4px 12px}
 html .sitebar .brand{grid-column:1;grid-row:1/3}
 html .sitebar .brand img{width:72px;height:72px;max-width:72px;max-height:72px}
 html .sitebar .portal-header-title{grid-column:2;grid-row:1;font-size:19px;align-self:end;max-width:none}
 html .sitebar .header-actions{grid-column:2;grid-row:2;justify-self:start;justify-content:flex-start;gap:5px;margin:0;align-self:start}
 html .sitebar .header-actions .button,html .sitebar .pwa-header-button{font-size:12px;min-height:40px;padding:8px 11px}
 html .sitebar .header-actions .pwa-header-button{max-width:145px}
 html body:not(.checking-session) .shell{padding-top:6px}
 .owner-workspace>.aw-nav{grid-template-columns:repeat(3,minmax(0,1fr));margin-bottom:9px;gap:4px}
 .aw-nav button,.aw-nav .aw-production-link{min-height:44px;padding:9px 7px;font-size:13px;gap:6px}
 .aw-nav svg{width:18px;height:18px}
 .aw-panel,#admin-cycle.cycle-overview{padding:16px 14px}
 .cw-entry{padding:16px;margin-bottom:10px}
 .cw-entry-heading{margin-bottom:10px}
 .cw-order-heading{margin-bottom:10px}
 .cw-customer-active #customer .section{margin-top:8px}
 .inventory-page .inventory-header{padding:7px 12px;gap:10px;min-height:54px}
 .portal-wordmark{font-size:15px}
 .inventory-header .button{font-size:12px;padding:7px 11px}
 .inventory-page .inventory-shell{padding-top:8px}
 .production-page .production-intro{margin-bottom:8px}
 .production-page .production-intro h1{font-size:24px}
 .production-intro>p:last-child{font-size:12px;max-width:150px}
 .production-page .production-nav button{padding:9px 7px;font-size:12px}
}
@media print{.inventory-page .inventory-header{display:none}}
#customer-actions .cw-install-callout{margin:14px 0 0}
#customer-actions .cw-install-button{min-height:52px;padding:9px 14px}
#customer-actions .cw-install-button strong{font-size:15px}
#customer-actions .cw-install-button small{font-size:12px}
@media(min-width:1051px){.cw-customer-active:not(.jj-embedded) #customer-app-install{display:none}}
#admin-cycle .cycle-controls{display:grid;grid-template-columns:auto minmax(0,1fr) 200px;gap:10px 16px;align-items:center;margin:12px 0}
#admin-cycle .cycle-navigation{grid-column:1/3;grid-row:1;flex-wrap:nowrap}
#admin-cycle .cycle-route{grid-column:3;grid-row:1;width:100%}
#admin-cycle .cycle-controls>button{grid-column:1;grid-row:2}
#admin-cycle .cycle-controls>p{grid-column:2/4;grid-row:2;margin:0;font-size:12px}
#admin-cycle .cycle-heading .eyebrow{font-size:10px;margin-bottom:3px}
#admin-cycle h2{font-size:27px}
#admin-cycle .cycle-stats{margin:12px 0}
#admin-cycle .cycle-stats>div{padding:12px 16px}
@media(max-width:760px){
 #admin-cycle .cycle-controls{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px}
 #admin-cycle .cycle-navigation{grid-column:1/-1;grid-row:1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
 #admin-cycle .cycle-navigation .button{padding:8px 5px;font-size:11px;min-height:44px}
 #admin-cycle .cycle-route{grid-column:1/-1;grid-row:2}
 #admin-cycle .cycle-controls>button{grid-column:1/-1;grid-row:3}
 #admin-cycle .cycle-controls>p{grid-column:1/-1;grid-row:4}
 #admin-cycle h2{font-size:23px}
}
@media(max-width:760px){
 .aw-nav button{flex-wrap:nowrap;gap:5px}
 .aw-nav button>span{min-width:0;font-size:12px}
 .production-page .production-nav button{flex:1 0 21%}
}
.cw-customer-active #customer-order .cart{top:calc(var(--portal-header-height) + 12px)}
html.jj-embedded body:not(.checking-session) .shell{padding-top:0}
html.jj-embedded #customer-actions,html.jj-embedded #customer .section,html.jj-embedded #cw-cart-details{scroll-margin-top:12px}
@media(max-width:760px){html.cw-customer-active .sitebar .sitebar-inner{grid-template-columns:72px minmax(0,1fr)}}

/* Production title and return action share one compact header. */
.inventory-page .production-header{min-height:68px;padding:8px 24px;gap:14px}
.production-page .production-header .plan-title{font-size:28px;margin:0;line-height:1.2}
.production-header #back-portal{display:inline-flex;align-items:center;justify-content:center;min-height:50px;min-width:190px;padding:12px 22px;border:2px solid #d3af00;background:#f8d000;color:var(--green);font:700 16px/1.2 'Work Sans',Arial,sans-serif;text-align:center;white-space:nowrap;box-shadow:none}
@media(max-width:760px){.inventory-page .production-header{min-height:62px;padding:6px 12px;gap:10px}.production-page .production-header .plan-title{font-size:24px}.production-header #back-portal{min-width:165px;min-height:48px;font-size:14px;padding:11px 15px}}
@media(max-width:360px){.production-page .production-header .plan-title{font-size:22px}.production-header #back-portal{min-width:154px;padding-inline:12px}}

.owner-workspace>.aw-nav .aw-production-link{background:#9c5638;border:2px solid #85472e;color:#fff;font-size:16px;font-weight:700;min-height:48px;text-align:center;display:flex;align-items:center;justify-content:center;padding:10px 14px}
.owner-workspace>.aw-nav .aw-production-link:hover{background:#87462d}
@media(max-width:760px){.owner-workspace>.aw-nav .aw-production-link{min-height:48px;font-size:14px;padding:10px 7px}}
