/* Global navigation and scoped responsive layout. Existing company colors remain intact. */
.company-entry-switcher { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; margin:0 0 22px; }
.company-entry { display:flex; flex-direction:column; min-width:0; padding:24px 26px; gap:8px; border:1px solid #cad7e7; border-radius:14px; background:#fff; color:#163c69; text-decoration:none; box-shadow:0 5px 18px #123e7709; }
.company-entry-label { font-size:11px; font-weight:800; letter-spacing:.08em; }
.company-entry strong { font-size:30px; line-height:1.15; letter-spacing:-.025em; }
.company-entry > span:not(.company-entry-label) { font-size:14px; }
.company-entry b { margin-top:auto; padding-top:8px; font-size:13px; }
.company-entry-obras[aria-current] { background:linear-gradient(120deg,#082e6b,#164d8b); border-color:#082e6b; color:#fff; box-shadow:inset 4px 0 #b62837; }
.company-entry-pm[aria-current] { background:linear-gradient(120deg,#082e6b,#0b4d8f); border-color:#082e6b; color:#fff; }
.company-entry:hover { box-shadow:0 7px 22px #123e771c; }
.company-entry:focus-visible { outline:3px solid #b62837; outline-offset:4px; }
.obras-workspace .home-command-center { margin-bottom:26px; }
.obras-workspace .home-tools-heading { display:flex; align-items:center; justify-content:space-between; gap:14px; margin-bottom:12px; }
.obras-workspace .home-tools-heading > p { margin:0; font-size:13px; font-weight:800; color:#425f80; }
.obras-workspace .home-command-center .workspace-nav { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:8px; margin:0 0 8px; }
.obras-workspace .home-command-center .workspace-nav a { display:flex; align-items:center; justify-content:center; min-height:44px; padding:9px 10px; text-align:center; font-size:13px; line-height:1.3; }
.obras-workspace .home-command-center .workspace-nav[aria-label="Outros recursos da Imobiliária"] { grid-template-columns:repeat(3,minmax(0,1fr)); }
.obras-workspace .home-command-center .workspace-nav[aria-label="Outros recursos da Imobiliária"] a { background:#f8fafd; font-weight:600; color:#385878; }
.obras-workspace .home-project-heading { margin-bottom:14px; }
.company-entry-compact .company-entry { padding:17px 22px; }
.company-entry-compact .company-entry strong { font-size:24px; }
.company-entry-compact .company-entry b { padding-top:2px; }
.alvo-global-navigation { position:sticky; top:0; z-index:20; max-width:1360px; margin:0 auto; padding:10px 24px; background:#f3f6fa; border-bottom:1px solid #d9e0eb; }
.alvo-global-navigation .company-entry-switcher { margin:0 0 8px; gap:10px; }
.alvo-global-navigation .company-entry { padding:8px 14px; gap:3px; border-radius:9px; }
.alvo-global-navigation .company-entry strong { font-size:19px; }
.alvo-global-navigation .company-entry b { padding:0; font-size:11px; }
.alvo-global-navigation.is-entry-page .company-entry { padding:17px 22px; }
.alvo-global-navigation.is-entry-page .company-entry strong { font-size:27px; }
.alvo-global-navigation .company-entry[aria-disabled] { box-shadow:none; color:#667387; }
.global-sectors { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:6px; }
.global-sectors a { display:flex; justify-content:center; align-items:center; min-width:0; min-height:40px; padding:6px 9px; border:1px solid #cad7e7; border-radius:7px; background:#fff; color:#153f70; text-decoration:none; font-size:13px; font-weight:700; text-align:center; line-height:1.3; }
.global-sectors a[aria-current] { background:#123e77; border-color:#123e77; color:#fff; }
.global-sectors a:focus-visible { outline:3px solid #b62837; outline-offset:2px; }
.alvo-global-navigation.is-pm .company-entry:focus-visible,.alvo-global-navigation.is-pm .global-sectors a:focus-visible { outline-color:#1557a0; }
.alvo-global-navigation.is-pm .global-sectors { grid-template-columns:repeat(7,minmax(0,1fr)); }
.has-global-navigation .pm-company-shell { display:none; }
.has-global-navigation :is(input,select,textarea,button,[tabindex],a) { scroll-margin-top:calc(var(--alvo-top-height,280px) + 16px); }
@media(max-width:700px) {
 .alvo-global-navigation { padding:8px 12px; }
 .alvo-global-navigation .company-entry { padding:7px 10px; }
 .alvo-global-navigation .company-entry strong { font-size:17px; }
 .alvo-global-navigation .company-entry-label { font-size:8px; }
 .alvo-global-navigation .company-entry b { font-size:10px; }
 .alvo-global-navigation.is-entry-page .company-entry { padding:12px; }
 .alvo-global-navigation.is-entry-page .company-entry strong { font-size:22px; }
 .global-sectors,.alvo-global-navigation.is-pm .global-sectors { grid-template-columns:repeat(3,minmax(0,1fr)); gap:5px; }
 .global-sectors a { font-size:11px; min-height:36px; padding:5px; }
}
@media(max-height:700px) { .alvo-global-navigation { position:static; } .has-global-navigation :is(input,select,textarea,button,[tabindex],a) { scroll-margin-top:20px; } }
@media print { .alvo-global-navigation { display:none!important; } }
@media(max-width:700px) {
 .company-entry-switcher { gap:10px; margin-bottom:18px; }
 .company-entry { padding:17px 14px; border-radius:11px; gap:7px; }
 .company-entry-label { font-size:9px; letter-spacing:.045em; }
 .company-entry strong { font-size:23px; overflow-wrap:anywhere; }
 .company-entry > span:not(.company-entry-label) { font-size:12px; line-height:1.4; }
 .company-entry b { font-size:12px; }
 .obras-workspace .home-command-center .workspace-nav,
 .obras-workspace .home-command-center .workspace-nav[aria-label="Outros recursos da Imobiliária"] { grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; }
 .obras-workspace .home-command-center .home-main-nav a:first-child { grid-column:1/-1; }
 .obras-workspace .home-command-center .workspace-nav a { font-size:12px; min-height:42px; padding:8px; }
 .obras-workspace .home-tools-heading { align-items:center; }
 .obras-workspace .home-command-center { margin-bottom:22px; }
 .company-entry-compact .company-entry { padding:14px; }
 .company-entry-compact .company-entry strong { font-size:22px; }
}
@media print { .company-entry-switcher,.home-command-center { display:none!important; } }
/* Narrow-screen layout: wrap numeric summaries and contain the existing wide PM tables. */
.has-global-navigation .obras-content-page .budget-heading { flex-wrap:wrap; }
.has-global-navigation .obras-content-page .volume-cards { grid-template-columns:repeat(2,minmax(0,1fr)); }
.has-global-navigation .obras-content-page .volume-cards > article { min-width:0; }
.has-global-navigation .obras-content-page .volume-cards strong { overflow-wrap:anywhere; }
.has-global-navigation .obras-content-page .obras-content-actions { display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:8px; align-items:stretch; }
.has-global-navigation .obras-content-page .obras-content-actions > button { width:100%!important; min-width:0; min-height:44px; margin:0!important; padding:10px 12px; font-size:13px; line-height:1.35; }
.has-global-navigation .obras-content-page .obras-content-actions > .calculate-button { font-size:15px; }
.has-global-navigation #uxNavigation .ux-area-shortcuts { display:none; }
.has-global-navigation .pm-responsive-table { min-width:0; max-width:100%; overflow-x:auto; }
.has-global-navigation .pm-responsive-table:focus-visible { outline:2px solid #1557a0; outline-offset:3px; }
.has-global-navigation .pm-responsive-table > .pm-catalog-list { min-width:880px; }
.has-global-navigation .pm-responsive-table > .pm-price-grid { min-width:820px; }
.has-global-navigation .pm-page #priceListForm > .full-width { min-width:0; }
@media(max-width:760px) { .has-global-navigation .pm-page .pm-catalog-toolbar { grid-template-columns:minmax(0,1fr); } }
@media(max-width:600px) { .has-global-navigation .obras-content-page .obras-content-actions { grid-template-columns:repeat(2,minmax(0,1fr)); } .has-global-navigation .obras-content-page .obras-content-actions > .calculate-button { grid-column:1/-1; } }

/* Honor disclosure and initial GET gates in the users card. */
.has-global-navigation #userForm[hidden],
.has-global-navigation .card:has(> #userForm) > [hidden] { display: none !important; }

/* Compact overview; full stage text remains in DOM and the project central. */
.obras-workspace .ux-project-card > div:first-child > small { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; }

/* Two legacy text-only headers need explicit contrast and non-overlapping links. */
.topbar.legacy-company-topbar { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px; height:auto; min-height:56px; padding:14px 20px; }
.topbar.legacy-company-topbar > a { position:static; transform:none; color:#FFFFFF; text-decoration:none; width:auto; margin:0; }
