/* Shared brand alignment and readable action labels, after the page styles. */
:root{--portal-header-width:1160px;--portal-logo-width:180px;--portal-action-size:15px}
html{scrollbar-gutter:stable}
.portal-ui>header.header{height:auto;min-height:92px;padding:16px max(24px,calc((100% - var(--portal-header-width))/2));flex-direction:row;justify-content:space-between;align-items:center;gap:20px;flex-wrap:wrap}
.portal-ui .header .brand-logo,.portal-ui .site-header .brand img{display:block;width:var(--portal-logo-width);height:60px;object-fit:contain;flex-shrink:0}
.portal-ui .header .brand-stack{align-items:flex-start;align-self:flex-start;flex-shrink:0}
.portal-ui>.directory-navigation{width:min(var(--portal-header-width),calc(100% - 48px));padding-block:16px;min-height:92px}
.portal-ui .directory-navigation .portal-brand img{width:var(--portal-logo-width);height:60px;object-fit:contain}
.portal-ui>.site-header{display:flex;align-items:center;min-height:92px;padding:16px max(24px,calc((100% - var(--portal-header-width))/2))}
.portal-ui>.topbar{padding-block:16px}
.portal-ui>.topbar>.wrap{box-sizing:content-box;width:auto;max-width:var(--portal-header-width);padding-inline:24px;margin-inline:auto;min-height:60px}
.portal-ui>.topbar .brand img{width:var(--portal-logo-width);height:60px;max-width:none;object-fit:contain}
.portal-ui .home-return{display:flex;align-items:center;gap:22px;min-width:0}
.portal-ui .home-return-text{display:flex;align-items:center;min-height:44px;font-size:14px;font-weight:650;line-height:1.4;color:#155b44}
/* Action size deliberately overrides older page-specific compact declarations. */
.portal-ui button:not(:is(.chat-send,.chat-dictate,.chat-toggle,.chat-mobile-invitation>button,[data-chat="close"],[data-quote-remove],#catalog-clear)),
.portal-ui :is(a.button,a.primary,a.solap-login-button,a.directory-open,a.directory-register-link,.directory-contacts a,.header-contact-links a,.header-social-links a,.quote-contact a,.business-location>a,.business-header-actions a,.directory-navigation>.portal-entry,.main-nav a,.ficha-links a,.external-company-map>a,.btn-wa),
.portal-ui .header .solap-invitation>strong{font-size:var(--portal-action-size)!important;line-height:1.4}
.portal-ui :is(.button,.primary,.solap-login-button,.directory-open,.directory-register-link,.catalog-product button,.catalog-pages button,.btn-wa){min-height:44px}
.portal-ui :is(.resolution-type-selector button,.resolution-filter-actions button,.document-table .text-button,.document-results .pager .button,.chat-memory-delete button){font-size:13px!important}
.portal-ui .section-tabs button{font-size:16px!important}
.portal-ui .header .main-nav{flex-wrap:wrap;justify-content:flex-end}
.portal-ui .header .main-nav a{padding:10px 12px}
.portal-ui .directory-contacts a,.portal-ui .header-contact-links a{overflow-wrap:anywhere}
.portal-ui .topbar .btn-wa{white-space:normal;text-align:center;justify-content:center}
.portal-ui .btn-wa{font-size:17px!important}
.portal-ui .topbar .btn-wa.top{font-size:15px!important}
/* Access pages use the same upper-left brand anchor as the rest of the portal. */
.portal-ui:has(.solap-login)>.header{display:flex}
.portal-ui:has(.solap-login){display:flex;flex-direction:column;min-height:100svh}
.portal-ui:has(.solap-login) .solap-login-logo{display:none}
.portal-ui main:has(.solap-login){min-height:0;flex:1;width:100%;padding:24px 16px}
@media(max-width:800px){
 .portal-ui .header .main-nav{width:100%;justify-content:flex-start;gap:6px}
 .portal-ui .header .brand-stack{width:auto}
}
@media(max-width:700px){
 :root{--portal-logo-width:clamp(84px,24vw,108px);--portal-action-size:14px}
 .portal-ui>header.header{height:auto;min-height:76px;padding:12px 18px;gap:12px;align-items:center;justify-content:space-between}
 .portal-ui .header .brand-logo,.portal-ui .site-header .brand img{width:var(--portal-logo-width);height:40px;object-position:left center}
 .portal-ui>.directory-navigation{width:calc(100% - 36px);padding-block:12px;min-height:76px;gap:8px 12px}
 .portal-ui .directory-navigation .portal-brand img{width:var(--portal-logo-width);height:40px;object-position:left center}
 .portal-ui>.site-header{min-height:76px;padding:12px 18px}
 .portal-ui>.topbar{padding-block:12px}
 .portal-ui>.topbar>.wrap{padding-inline:18px;min-height:40px;gap:12px}
 .portal-ui>.topbar .brand img{width:var(--portal-logo-width);height:40px;object-position:left center}
 .portal-ui .btn-wa{font-size:16px!important}
 .portal-ui .topbar .btn-wa.top{font-size:14px!important}
 .portal-ui .home-return{gap:10px;flex:1 1 auto}
 .portal-ui .home-return-text{font-size:12px;max-width:150px;white-space:normal}
 .portal-ui .directory-navigation>.portal-entry{margin-left:auto;padding:9px 11px}
 .portal-ui .header .solap-invitation>strong{font-size:13px!important;width:108px;min-width:108px;padding:8px 5px;gap:4px}
 .portal-ui .header .solap-invitation>strong:after{font-size:12px}
 .portal-ui .header .main-nav a{padding:9px 10px}
 .portal-ui .header .main-nav:has(>:nth-child(4)){display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
 .portal-ui .header .main-nav:has(>:nth-child(4))>:is(a,button){display:flex;align-items:center;justify-content:center;min-height:44px;white-space:normal;text-align:center;padding:8px}
 .portal-ui .section-tabs button{font-size:15px!important}
}
@media(max-width:480px){.portal-ui .header-contact-links{grid-template-columns:1fr}.portal-ui .header-contact-links a{font-size:14px!important}}
@media(max-width:360px){
 .portal-ui .business-header-actions{display:grid;grid-template-columns:1fr}
 .portal-ui .header .brand-stack{align-self:flex-start;margin-top:6px}
 .portal-ui .header .solap-invitation{flex-direction:column;gap:6px}
 .portal-ui .header .solap-invitation>span{width:100%;overflow-wrap:normal;word-break:normal;font-size:11px;line-height:1.4}
}
/* Keep the invitation readable in exactly two lines; the logo takes the remaining row. */
.portal-ui .header .solap-invitation .invitation-line{display:block;white-space:nowrap}
.portal-ui:has(.business-directory)>.header .brand-stack{align-self:center;margin-top:0}
@media(max-width:700px){
 .portal-ui:has(.business-directory)>.header{flex-wrap:nowrap;gap:8px;padding-inline:12px}
 .portal-ui:has(.business-directory)>.header .brand-stack{flex:1 1 180px;min-width:40px;max-width:180px;width:auto}
 .portal-ui:has(.business-directory)>.header .brand{width:100%}
 .portal-ui:has(.business-directory)>.header .brand-logo{width:100%;height:auto;max-height:60px;object-position:center}
 .portal-ui .header .solap-invitation{flex:0 0 auto;flex-direction:row;gap:8px;min-width:0}
 .portal-ui .header .solap-invitation>span{flex:0 0 auto;width:auto;max-width:none;font-size:clamp(9px,2.8vw,14px);line-height:1.4;overflow-wrap:normal;word-break:normal}
 .portal-ui .header .solap-invitation>strong{width:108px;min-width:0;padding:8px 4px;gap:3px;font-size:13px!important}
 .portal-ui .header .solap-invitation>strong:after{font-size:11px}
}
@media(max-width:360px){.portal-ui .header .solap-invitation>strong{width:90px;font-size:11px!important}.portal-ui .header .solap-invitation>strong:after{font-size:10px}}
/* Keep both introduction actions in one balanced row on desktop. */
.portal-ui .directory-intro-actions{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:12px;margin-top:18px;align-items:stretch}
.portal-ui .directory-intro-actions>.directory-register-link{width:100%;margin:0;min-height:48px;padding:11px 12px;text-align:center;white-space:normal}
@media(min-width:1100px){.portal-ui .directory-intro{grid-template-columns:1.15fr 1fr}}
@media(max-width:700px){.portal-ui .directory-intro-actions{grid-template-columns:1fr;gap:12px}}

@media(min-width:701px){.portal-ui .header .solap-invitation .invitation-line{display:inline}.portal-ui .header .solap-invitation>span{white-space:nowrap}}

@media(min-width:901px){.portal-ui .header .solap-invitation>span{font-size:clamp(15px,1.3vw,17px);font-weight:750;line-height:1.35}}

.portal-ui .directory-lead{font-weight:700;font-size:16px}
@media(max-width:700px){.portal-ui .directory-lead{font-size:clamp(8px,calc((100vw - 36px)*.034),23px);white-space:nowrap;max-width:none}}

@media(min-width:701px){.portal-ui .directory-lead{max-width:none}}

.portal-ui .client-table-scroll{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}
.portal-ui .client-table{min-width:2350px;width:100%;font-size:13px}
.portal-ui .client-table th{white-space:nowrap}
.portal-ui .client-table td{vertical-align:top}
.portal-ui .client-table .client-document{white-space:nowrap;min-width:145px}
.portal-ui .client-table .client-full-name{min-width:210px;max-width:280px;white-space:normal;overflow-wrap:anywhere}
.portal-ui .client-table .client-address{min-width:210px;max-width:280px;white-space:normal;overflow-wrap:anywhere}
.portal-ui .client-table .client-contact{min-width:180px;max-width:260px;white-space:normal;overflow-wrap:anywhere}
.portal-ui .client-profile-notice{margin:0 0 14px}

.portal-ui .product-table .product-identity{min-width:150px;white-space:normal;overflow-wrap:anywhere}
.portal-ui .product-table .product-observations{min-width:230px;max-width:400px;white-space:normal;overflow-wrap:anywhere}

body table.custom-grid[data-grid-fit-content="true"]{min-width:0}.portal-ui table.product-table[data-grid-fit-content="true"] td{min-width:0;max-width:none;white-space:normal;overflow-wrap:anywhere}.portal-ui table.product-table[data-grid-fit-content="true"] td.amount{white-space:nowrap;overflow-wrap:normal}
