.access-locked main.shell,.access-locked .mobile-summary{display:none}.access-gate{max-width:450px;margin:65px auto 50px;padding:35px;background:white;border:1px solid #e2e4dc;border-radius:14px;box-shadow:0 15px 45px #203d2910}.access-gate h1{font:650 27px/1.25 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;letter-spacing:-.7px;margin:8px 0 13px}.access-gate p{font-size:12px;color:#68756a;line-height:1.7}.access-gate .field{margin:24px 0 16px}.access-gate .primary-button{width:100%}.access-gate .auth-meta{border-top:1px solid #e2e4dc;margin-top:24px;padding-top:14px;font-size:10px;line-height:1.8;color:#788175}.auth-recipient{display:block;margin:10px 0;font-weight:600;color:#244b3e}.code-input{font-size:26px;text-align:center;letter-spacing:7px;font-variant-numeric:tabular-nums}.auth-demo{margin:16px 0;padding:10px 14px;background:#faf2e9;border:1px solid #ead7c3;border-radius:8px;color:#84522e;font-size:12px}.auth-alternatives{display:flex;justify-content:space-between;gap:12px;margin-top:14px}.auth-alternatives button{border:0;background:none;color:#244b3e;font-size:11px;padding:7px 0}.account-details{padding:18px 20px;background:#fff;border:1px solid #e1e5db;border-radius:10px;display:grid;grid-template-columns:1.2fr 1.5fr 1fr;gap:20px;font-size:12px;margin-bottom:18px}.account-details strong{display:block;font-size:15px}.account-details small{display:block;color:#647369;margin-top:4px}.account-details dl{margin:0}.account-details dt{color:#788175;font-size:10px;margin-bottom:5px}.account-details dd{margin:0;white-space:pre-line;line-height:1.6}.topbar-right{flex-wrap:wrap}.topbar-right .account-action{border:0;background:none;color:var(--forest);padding:6px 0;font-size:12px}.customer-order{border:1px solid #e1e5db;background:#fff;border-radius:10px;overflow:hidden;margin-bottom:15px}.customer-order header,.customer-order footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 18px;background:#f9faf6}.customer-order header small{display:block;font-size:10px;color:#788175;margin-top:3px}.customer-order footer{font-size:11px}.customer-lines{padding:0 18px}.customer-lines>div{padding:13px 0;display:grid;grid-template-columns:1fr 1.7fr 1.5fr 1fr;gap:10px;border-bottom:1px solid #e1e5db;font-size:11px}.line-stage{font-weight:550;text-align:right}.flow-badge{display:inline-block;border-radius:5px;padding:5px 9px;font-size:10px;background:#f2f1ed;color:#647369;white-space:nowrap}.flow-badge.created{background:#fff4db;color:#835810}.flow-badge.approved,.flow-badge.ready{background:#eaf4ed;color:#226944}.flow-badge.production{background:#eaf2f8;color:#32627e}.flow-badge.partial{background:#fcf0e7;color:#a94b27}.flow-badge.shipped{background:#e4efe9;color:#195336}.flow-badge.rejected{background:#fcecea;color:#b13c38}.flow-success{padding:28px;text-align:center}.flow-success .success-mark{display:grid;place-items:center;width:56px;height:56px;margin:0 auto 18px;border-radius:50%;background:#eaf4ed;color:#226944;font-size:25px}.flow-success h2{font-size:25px;margin-bottom:12px}.flow-success p{font-size:12px;line-height:1.7;color:#68756a}.flow-success .primary-button{width:100%;margin:20px 0 10px}.flow-success .secondary-button{width:100%}.flow-success .preview-foot{margin-top:20px;font-size:10px}.auth-error{padding:10px;background:#fcecea;color:#a84238;border-radius:7px;font-size:12px;margin-top:16px}
@media(max-width:800px){.account-details{grid-template-columns:1fr 1fr}.account-details>div{grid-column:1/-1}.topbar-note{display:none}.topbar-right{gap:12px}.customer-lines>div{grid-template-columns:1fr 1fr}.line-stage{text-align:left}}@media(max-width:480px){.access-gate{margin:28px 16px;padding:25px 21px}.access-gate h1{font-size:24px}.account-details{padding:16px;grid-template-columns:1fr;gap:12px}.account-details>div{grid-column:auto}.topbar-inner{align-items:center}.brand-logo{width:127px}.language-select{min-width:86px}.topbar-right{gap:6px}.topbar-right .account-action{font-size:10px}.customer-order header{flex-wrap:wrap}.customer-lines>div{font-size:10px}.customer-order footer{padding:12px}.auth-alternatives{flex-wrap:wrap}}
.access-kicker{font-size:10px;letter-spacing:1.5px;color:#a06545;font-weight:600}.access-gate form{margin-top:25px}.access-gate form label{font-size:12px;font-weight:550;display:block;margin-bottom:8px}.access-gate input{width:100%;padding:13px 14px;border:1px solid #d6ddd0;border-radius:8px;font-size:14px;background:#fff;color:#20372e;margin-bottom:16px}.access-gate #auth-code{font-size:25px;text-align:center;letter-spacing:7px;font-variant-numeric:tabular-nums}.code-actions{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:9px;margin-top:16px;font-size:11px;color:#788175}.preview-code{background:#faf2e9;border:1px solid #ead7c3;border-radius:8px;padding:12px 14px;margin-top:22px;display:flex;align-items:center;flex-wrap:wrap;gap:10px;font-size:11px;color:#84522e}.preview-code strong{font-size:19px;letter-spacing:3px}.preview-code small{width:100%;font-size:10px}.access-demo{border-top:1px solid #e2e4dc;margin-top:26px;padding-top:17px;font-size:10px;color:#788175;line-height:1.8}.access-footer{font-size:8px;letter-spacing:.6px;margin-top:21px;color:#98a08f}.auth-error:empty{display:none}.success-dialog .dialog-body{text-align:center}.success-mark{width:56px;height:56px;margin:0 auto 20px;border-radius:50%;display:grid;place-items:center;background:#eaf4ed;color:#226944;font-size:27px}.success-dialog h2{font-size:23px;margin-bottom:18px}.success-dialog p{font-size:12px;line-height:1.8}.success-dialog #submitted-reference{display:block;color:#a56642;font-size:20px}.customer-account{overflow-wrap:anywhere}.account-details small{line-height:1.5}.auth-error{color:#a84238!important}
@media print{#access-gate,.customer-account{display:none!important}dialog:not([open]){display:none!important}.account-details{grid-template-columns:1fr 1.5fr 1fr;break-inside:avoid}}

/* Customer layout revision: centered access, compact identity and horizontal review. */
body.access-locked{display:flex;flex-direction:column;min-height:100dvh;gap:24px;padding-bottom:24px}
body.access-locked .topbar{flex:0 0 auto}
body.access-locked #access-gate{width:min(450px,calc(100% - 48px));max-width:none;margin:auto;flex:0 0 auto}
.topbar-inner{padding-block:10px;gap:16px}.brand{flex-shrink:0}.brand-logo{width:132px}
.account-details{display:flex;align-items:center;padding:12px 18px;gap:12px;margin-bottom:16px}
.account-details>div{min-width:0}.account-details strong{font-size:14px}.account-details small{margin-top:3px}
#review-dialog{width:min(920px,calc(100% - 48px))}
#review-dialog .dialog-header{padding:20px 24px 16px}
#review-dialog .dialog-body{padding:18px 24px}
#review-dialog .dialog-actions{padding:14px 24px 18px}
.review-items{margin-bottom:16px}
.review-items .cart-item{display:grid;grid-template-columns:110px minmax(0,1fr) 170px;align-items:center;gap:4px 16px;padding:11px 16px}
.review-items .cart-item-top{grid-column:1;grid-row:1;min-width:0}
.review-items .cart-item-id{font-size:9px}.review-items .cart-item-title{font-size:13px;margin-top:3px}
.review-items .cart-item-spec{grid-column:2;grid-row:1;margin:0;line-height:1.5;font-size:11px;min-width:0}
.review-items .item-amounts{grid-column:3;grid-row:1;display:grid;gap:3px;text-align:end;font-variant-numeric:tabular-nums}
.review-items .item-note,.review-items .pending-label{grid-column:2/-1;margin:0;padding:0;border:0;font-size:10px;line-height:1.5}
.review-items .review-total{padding:12px 16px}
#review-dialog .review-note{margin-top:14px;padding:10px 12px}
@media(max-width:600px){
 .brand-logo{width:112px}.topbar-inner{padding-block:10px;gap:12px}.topbar-right{gap:8px}
 body.access-locked #access-gate{width:calc(100% - 32px);padding:26px 22px}
 .account-details{padding:11px 14px}
 #review-dialog{width:calc(100% - 24px)}
 #review-dialog .dialog-header{padding:18px 16px 14px}#review-dialog .dialog-body{padding:16px}
 #review-dialog .dialog-actions{padding:12px 16px 16px;gap:8px}
 .review-items .cart-item{grid-template-columns:minmax(0,1fr) auto;gap:5px 10px;padding:10px 12px}
 .review-items .cart-item-top{grid-column:1;grid-row:1}.review-items .cart-item-top>div{display:flex;align-items:baseline;gap:8px}
 .review-items .cart-item-title{margin:0}.review-items .cart-item-spec{grid-column:1;grid-row:2;font-size:10px}
 .review-items .item-amounts{grid-column:2;grid-row:1/3;font-size:11px}.review-items .secondary-amount{font-size:10px}
 .review-items .item-note,.review-items .pending-label{grid-column:1/-1;font-size:10px}
 .review-items .review-total{padding:11px 12px}
}
@media print{#review-dialog{width:100%;max-height:none}.review-items .cart-item{grid-template-columns:110px minmax(0,1fr) 170px}.review-items .cart-item-spec{grid-column:2;grid-row:1}.review-items .item-amounts{grid-column:3;grid-row:1}}

/* Keep the six-line review and identity summary within a normal desktop dialog. */
.account-details>div{display:flex;align-items:center;flex-wrap:wrap;gap:4px 14px}.account-details small{margin:0}
#review-dialog .dialog-header .eyebrow{font-size:9px;line-height:1.3;margin-bottom:6px}
#review-dialog .dialog-header h2{font-size:22px;line-height:1.25}
#review-dialog .dialog-header p{margin-top:6px;line-height:1.5}
#review-dialog .note-field{margin-top:12px}
#review-dialog #order-note{min-height:56px;height:56px}
#review-dialog .dialog-actions{padding-block:12px}
.review-items .cart-item{padding-block:10px}
@media(max-width:600px){.account-details>div{gap:3px 10px}.account-details small{flex-basis:100%}}

/* 2026-10-06: a wider work surface and compact form, with full-height order list. */
.customer-page .shell{width:min(1800px,calc(100% - 80px))}
.customer-page .topbar-inner{min-height:66px}
.customer-page .hero{padding:22px 0 16px}
.customer-page .hero h1{font-size:26px;line-height:1.25;margin:0}
.customer-page .layout{grid-template-columns:minmax(0,1fr) 370px;gap:24px}
.customer-page .form-section{padding:18px 22px}
.customer-page .section-heading{margin-bottom:14px}
.customer-page .section-heading h2{font-size:15px}
.customer-page .step-number{width:25px;height:25px;font-size:11px}
.customer-page .product-card{min-height:98px;padding:9px 12px}
.customer-page .product-card .product-image{height:54px}
.customer-page .technical-layout{grid-template-columns:minmax(0,1fr) 280px;gap:16px}
.customer-page .field-grid{gap:10px 12px}
.customer-page .field label{font-size:11px;margin-bottom:5px}
.customer-page .input-wrap{min-height:38px}
.customer-page .input-wrap input{padding:8px 11px}
.customer-page select,.customer-page .plain-input{min-height:38px;padding:8px 11px}
.customer-page .tube-mode{margin-bottom:12px}
.customer-page .tech-figure{min-height:0;padding:8px;border-radius:9px}
.customer-page .tech-figure svg{height:132px}
.customer-page .quality-fields{gap:12px;margin-top:12px}
.customer-page .note-field{margin-top:12px}
.customer-page #item-note{height:56px;min-height:56px;padding:8px 11px}
.customer-page .hint{font-size:10px;line-height:1.5}
.customer-page .quantity-topline{margin-bottom:14px;gap:10px}
.customer-page .quantity-grid{grid-template-columns:minmax(0,1fr) 20px minmax(0,1fr);gap:8px}
.customer-page .quantity-grid input{font-size:18px;min-height:46px;letter-spacing:0}
.customer-page .quantity-grid .input-wrap{min-height:46px}
.customer-page .quantity-arrow{padding-bottom:13px}
.customer-page .quantity-help{margin:10px 0 12px;line-height:1.6}
.customer-page .formula-details{padding-top:10px}
.customer-page .form-actions{margin-top:16px}
.customer-page .form-actions button{min-height:38px;padding:9px 14px;font-size:12px}
.customer-page .order-sidebar{position:static;align-self:start}
.customer-page .cart-items{max-height:none;overflow:visible}
.customer-page .cart-item{padding:14px 18px}
.customer-page .item-amounts span{font-size:12px;font-weight:600;color:var(--ink);font-variant-numeric:tabular-nums}
.customer-page .account-details{justify-content:space-between}
.customer-page .account-details .profile-edit{flex:0 0 auto;min-height:30px;padding:6px 10px;font-size:11px}
#review-dialog{width:min(1200px,calc(100% - 64px))}
#review-dialog .review-items .cart-item{grid-template-columns:110px minmax(0,1fr) 260px;padding:10px 16px;gap:6px 18px}
#review-dialog .review-items .item-amounts{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;text-align:end;align-items:baseline}
#review-dialog .review-items .item-amounts span{font-size:12px;font-weight:600;color:var(--ink);white-space:nowrap}
#review-dialog .dialog-actions{flex-wrap:wrap;gap:8px}
#review-dialog .dialog-actions button{min-height:34px;padding:8px 12px;font-size:11px;border-radius:7px}
#review-dialog .dialog-actions .icon{width:15px;height:15px}
#return-to-order{margin-inline-end:auto}
#customer-history-dialog{width:min(1420px,calc(100% - 64px))}
#customer-history-dialog .dialog-header{padding:18px 22px}
#customer-history-dialog .dialog-header h2{font:650 22px/1.3 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif}
#customer-history{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:16px;padding:18px 22px}
#customer-history .customer-order{margin:0}
.customer-order header,.customer-order footer{padding:12px 14px}
.customer-lines{padding:0 14px}
.customer-lines>div{grid-template-columns:65px minmax(0,1fr) 92px 58px 88px;gap:8px;padding:10px 0;font-size:11px;align-items:baseline}
.customer-lines .history-amount{font-weight:600;text-align:end;white-space:nowrap;font-variant-numeric:tabular-nums}
.customer-lines .history-dimensions{overflow-wrap:anywhere;color:var(--muted)}
.customer-order footer button{font-size:11px;min-height:32px;padding:7px 10px}
#customer-profile-dialog{width:min(720px,calc(100% - 32px))}
#customer-profile-dialog .dialog-header h2{font:650 22px/1.3 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif}
.profile-readonly{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:0 0 20px;padding:14px;background:var(--soft);border-radius:9px}
.profile-readonly>div{min-width:0}.profile-readonly dt{font-size:10px;color:var(--muted)}.profile-readonly dd{margin:4px 0 0;font-size:12px;overflow-wrap:anywhere}
.profile-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.profile-fields .full{grid-column:1/-1}
#customer-profile-dialog .dialog-actions button{min-height:36px;font-size:12px;padding:8px 13px}
@media(min-width:1500px){
 .customer-page .form-panel{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(360px,1fr)}
 .customer-page .editing-banner,.customer-page .form-section:first-of-type{grid-column:1/-1}
 .customer-page .product-grid{grid-template-columns:repeat(6,minmax(0,1fr))}
 .customer-page .form-section:nth-of-type(2){border-bottom:0}
 .customer-page .form-section:nth-of-type(3){border-inline-start:1px solid var(--line)}
}
@media(max-width:1499px){.customer-page .technical-layout{grid-template-columns:minmax(0,1fr) 210px}.customer-page .tech-figure svg{height:120px}}
@media(max-width:1199px){#customer-history{grid-template-columns:1fr}.customer-page .layout{grid-template-columns:minmax(0,1fr) 310px;gap:18px}.customer-page .technical-layout{grid-template-columns:minmax(0,1fr) 180px}}
@media(max-width:800px){.customer-page .shell{width:calc(100% - 32px)}.customer-page .layout{grid-template-columns:1fr}.customer-page .form-section{padding:18px}.customer-page .technical-layout{grid-template-columns:minmax(0,1fr) 220px}.customer-page .topbar-inner{min-height:62px}}
@media(max-width:600px){
 .customer-page .hero{padding:18px 0 14px}.customer-page .hero h1{font-size:23px}
 .customer-page .technical-layout{grid-template-columns:1fr}.customer-page .tech-figure{max-width:330px;width:100%;margin-inline:auto}.customer-page .tech-figure svg{height:124px}
 .customer-page .account-details{flex-wrap:wrap}.customer-page .account-details .profile-edit{margin-inline-start:auto}
 #review-dialog,#customer-history-dialog{width:calc(100% - 24px)}
 #review-dialog .review-items .cart-item{grid-template-columns:1fr;gap:5px;padding:10px 12px}
 #review-dialog .review-items .cart-item-top{grid-column:1;grid-row:1}
 #review-dialog .review-items .cart-item-spec{grid-column:1;grid-row:2}
 #review-dialog .review-items .item-amounts{grid-column:1;grid-row:3;display:flex;justify-content:space-between;text-align:start;gap:12px}
 #review-dialog .review-items .item-note,#review-dialog .review-items .pending-label{grid-column:1;grid-row:auto}
 #review-dialog .dialog-actions #approve-order{flex-basis:100%;order:5}
 #review-dialog .dialog-actions #return-to-order{flex-basis:100%}
 #customer-history{padding:14px;gap:12px}
 .customer-lines>div{grid-template-columns:minmax(0,1fr) auto;gap:5px 8px}
 .customer-lines .history-dimensions{grid-column:1/-1;grid-row:auto}
 .customer-lines .history-amount{text-align:start}.customer-lines .history-amount.quantity{text-align:end}
 .customer-lines .line-stage{grid-row:1;grid-column:2;text-align:end}
 .profile-fields{grid-template-columns:1fr}.profile-readonly{grid-template-columns:1fr 1fr}
}
@media print{
 #customer-profile-dialog{display:none!important}#review-dialog{width:100%;max-height:none}
 #review-dialog .review-items .cart-item{grid-template-columns:90px minmax(0,1fr) 230px;break-inside:avoid}
 #review-dialog .review-items .cart-item-spec{grid-column:2;grid-row:1}
 #review-dialog .review-items .item-amounts{grid-column:3;grid-row:1;display:grid;grid-template-columns:1fr 1fr}
 .profile-edit{display:none!important}
}

.customer-page .tech-figure figure{display:block;width:100%}.customer-page .tech-figure svg{width:100%;flex-shrink:1}

.profile-document-list,.profile-document-row{display:grid;gap:8px;overflow-wrap:anywhere}.profile-document-row{margin:8px 0;padding:10px;border:1px solid #ddd;border-radius:8px}.profile-document{display:block;overflow-wrap:anywhere}.profile-document-row button{min-height:40px}#profile-documents{margin:16px 0}#customer-order-reference{width:100%;min-height:44px}
/* A translated provenance label wraps below its quantity instead of covering the adjacent count. */
.customer-lines .history-amount small{display:block;white-space:normal;overflow-wrap:anywhere;font-size:10px;font-weight:400;line-height:1.35;color:var(--muted);margin-top:3px}
