#company-city { color: #173e49; font: 16px/1.5 "IBM Plex Sans", sans-serif; background: #eef5f3; border-radius: 14px; overflow: hidden; width: 100%; min-height: calc(100vh - 24px); min-height: calc(100dvh - 24px); display: flex; flex-direction: column; text-shadow: none; }
.city-entry-loading { display: none; }
body[data-desktop-view="home"].city-entry-pending .hero-card.system-shell { display: grid; min-height: calc(100vh - 24px); place-items: center; background: #d8e8e7; }
body[data-desktop-view="home"].city-entry-pending .hero-card.system-shell > :not(.city-entry-loading) { display: none !important; }
body[data-desktop-view="home"].city-entry-pending .city-entry-loading,
body.bootstrap-dashboard[data-desktop-view="home"] .hero-card.system-shell.city-loading .city-entry-loading { display: grid; justify-items: center; gap: 8px; color: #173e49; font: 500 16px/1.4 "IBM Plex Sans", sans-serif; text-align: center; }
.city-entry-loading small { color: #527078; font-size: 12px; }
.city-entry-loading-spinner { width: 34px; height: 34px; border: 3px solid #b7cece; border-top-color: #16778b; border-radius: 50%; animation: city-entry-spin .8s linear infinite; }
@keyframes city-entry-spin { to { transform: rotate(360deg); } }
#company-city * { box-sizing: border-box; font-family: inherit; letter-spacing: normal; text-shadow: none; }
#company-city button { font: 500 14px/1.3 "IBM Plex Sans", sans-serif; color: #214b55; border: 1px solid #b7cece; border-radius: 8px; padding: 11px 14px; background: #fff; cursor: pointer; min-height: 44px; }
#company-city button:hover, #company-city button[aria-pressed="true"] { background: #d8edf0; border-color: #29889b; }
#company-city :focus-visible { outline: 3px solid #007eae; outline-offset: 3px; }
#company-city button:disabled { opacity: .55; cursor: wait; }
#company-city h1 { color: #173e49; font-size: clamp(24px, 3vw, 38px); line-height: 1.2; margin: 6px 0; }
#company-city h2 { color: #173e49; font-size: 24px; line-height: 1.25; overflow-wrap: anywhere; margin: 0 0 12px; }
#company-city p { font-size: 14px; margin: 6px 0; }
#company-city .city-heading { padding: 26px 30px; display: flex; justify-content: space-between; align-items: center; gap: 16px; border-bottom: 1px solid #d2e1df; }
#company-city .city-heading span { font-size: 11px; letter-spacing: .18em; }
#company-city .city-revenue { position: absolute; z-index: 4; top: 18px; left: 18px; width: 270px; aspect-ratio: 1; display: flex; flex-direction: column; padding: 18px; border: 1px solid rgba(132, 169, 171, .8); border-radius: 14px; background: rgba(246, 250, 248, .94); box-shadow: 0 18px 45px rgba(31, 75, 83, .2); backdrop-filter: blur(10px); }
#company-city .city-revenue header { padding-bottom: 12px; border-bottom: 1px solid #cededa; }
#company-city .city-revenue header strong { font-size: 13px; letter-spacing: .08em; }
#company-city .city-revenue div { flex: 1; display: flex; flex-direction: column; justify-content: center; min-width: 0; border-bottom: 1px solid #d9e5e1; }
#company-city .city-revenue div:last-of-type { border-bottom: 0; }
#company-city .city-revenue span { display: block; font-size: 11px; color: #527078; }
#company-city .city-revenue strong { display: block; font-size: 22px; line-height: 1.2; font-weight: 500; overflow-wrap: anywhere; }
#company-city .city-revenue small, #company-city .city-revenue footer { font-size: 10px; color: #527078; }
#company-city .city-revenue footer { padding-top: 9px; }
#company-city .city-revenue header button, #company-city .city-revenue-compact { display: none; }
#company-city .city-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; flex: 1; min-height: 0; }
#company-city .city-map { position: relative; min-width: 0; min-height: 600px; overflow: hidden; background: radial-gradient(ellipse at 50% 30%, #e1f3f2, #a5c7cd); }
#company-city canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }
#company-city canvas:active { cursor: grabbing; }
#company-city .city-camera { position: absolute; display: flex; gap: 6px; left: 16px; bottom: 42px; flex-wrap: wrap; z-index: 3; }
#company-city .city-map-hint { position: absolute; bottom: 14px; left: 16px; font-size: 11px; pointer-events: none; }
#company-city .city-labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
#company-city .city-labels button { position: absolute; transform: translate(-50%, calc(-100% - 8px)); pointer-events: auto; display: grid; gap: 2px; min-width: 96px; white-space: nowrap; box-shadow: 0 8px 20px #28525d2e; min-height: 44px; padding: 7px 11px; font-size: 10px; line-height: 1.15; }
#company-city .city-labels button::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 11px; height: 11px; background: inherit; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: translateX(-50%) rotate(45deg); }
#company-city .city-labels button span { position: relative; z-index: 1; font-size: 9px; letter-spacing: .05em; }
#company-city .city-labels button strong { position: relative; z-index: 1; font-size: 12px; font-weight: 600; }
#company-city .city-labels button em { position: relative; z-index: 1; font-size: 9px; font-style: normal; color: #60757b; }
#company-city .city-labels button[data-trend="up"] em { color: #08784c; }
#company-city .city-labels button[data-trend="down"] em { color: #b23a2e; }
#company-city .city-labels button[data-key="kert"] { color: #143f4d; background: #fff; }
#company-city .city-labels button[data-key="kert"][data-trend="down"] em { color: #f26a7b; }
#company-city .city-labels button[data-key="kert"][aria-pressed="true"] { border-color: #31b6c7; background: #eaf6f8; }
#company-city .city-labels button i { position: relative; z-index: 1; padding-top: 2px; border-top: 1px solid #cadbd8; color: #075f74; font-size: 8px; font-style: normal; font-weight: 600; }
#company-city .city-landmark-label { position: absolute; transform: translate(-50%, calc(-100% - 8px)); width: 150px; padding: 11px 12px; border: 1px solid #a9c5c8; border-radius: 9px; background: rgba(255,255,255,.96); color: #173e49; box-shadow: 0 8px 20px #28525d2e; font-size: 12px; font-weight: 700; line-height: 1.2; text-align: center; }
#company-city .city-landmark-label::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 11px; height: 11px; background: inherit; border-right: 1px solid #173e49; border-bottom: 1px solid #173e49; transform: translateX(-50%) rotate(45deg); }
#company-city .city-labels button[data-trend="up"] { animation: city-growth-pulse 1.4s ease-out 1; }
@keyframes city-growth-pulse { 50% { box-shadow: 0 8px 26px rgba(28, 167, 112, .34); } }
#company-city .city-labels button[aria-pressed="true"] strong { color: #075f74; }
#company-city .city-labels .city-building-add-order { z-index: 4; min-width: 32px; width: 32px; min-height: 32px; height: 32px; padding: 0; transform: translate(48px, calc(-100% - 12px)); border-radius: 50%; background: #087f8c; color: #fff; font-size: 21px; font-weight: 700; line-height: 1; }
#company-city .city-labels .city-building-add-order::after { display: none; }
#company-city .city-labels .city-building-add-order:hover,
#company-city .city-labels .city-building-add-order:focus-visible { background: #075f74; outline: 3px solid rgba(49, 182, 199, .3); }
#company-city .city-sidebar { padding: 24px 20px; border-left: 1px solid #d2e1df; background: #f6faf8; }
#company-city .city-sidebar label { display: block; font-size: 10px; letter-spacing: .12em; margin-bottom: 8px; }
#company-city input { width: 100%; padding: 12px; border: 1px solid #b7cece; border-radius: 8px; background: white; color: #173e49; font-size: 15px; }
#company-city .city-list { display: grid; gap: 6px; margin: 14px 0 22px; max-height: 276px; overflow: auto; }
#company-city .city-list button { text-align: left; }
#company-city .city-preview { padding-top: 20px; border-top: 1px solid #cededa; }
#company-city dl { display: grid; grid-template-columns: 1fr auto; gap: 5px; font-size: 14px; margin: 18px 0; }
#company-city dd { margin: 0; font-weight: 600; }
#company-city .city-enter { width: 100%; background: #146c80; color: white; margin-top: 12px; }
#company-city a.city-enter { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 11px 14px; border-radius: 8px; text-decoration: none; }
#company-city.is-public-city .city-revenue,
#company-city.is-public-city .city-revenue-compact { display: none !important; }
#company-city.is-public-city .city-preview p { font-weight: 700; letter-spacing: .04em; }
.public-city-host.has-company-city > :not(#company-city) { display: none !important; }
.public-city-host.has-company-city { display: block; grid-template-columns: minmax(0, 1fr); min-width: 0; padding: 0; }
.public-city-host #company-city { min-height: calc(100dvh - 88px); }
#company-city .city-workspace-dialog { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(20, 39, 44, .48); backdrop-filter: blur(4px); }
#company-city .city-workspace-dialog > section { width: min(430px, 100%); padding: 26px; border: 1px solid #a9c5c8; border-radius: 16px; background: #f7fbfa; box-shadow: 0 24px 70px rgba(15, 42, 49, .28); }
#company-city .city-workspace-dialog span { color: #527078; font-size: 10px; letter-spacing: .18em; }
#company-city .city-workspace-dialog h2 { margin: 8px 0; color: #173f49; }
#company-city .city-workspace-dialog p { margin: 0 0 20px; color: #527078; }
#company-city .city-workspace-dialog div { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
#company-city .city-workspace-dialog div button { min-height: 58px; border-color: #8db8c0; background: #e9f4f3; color: #173f49; font-weight: 700; }
#company-city .city-workspace-dialog div button:hover { background: #d9ecea; }
#company-city .city-workspace-dialog .city-workspace-cancel { width: 100%; margin-top: 12px; background: transparent; color: #527078; }
#company-city .city-sync { font-size: 11px; color: #527078; margin: 16px 0 8px; }
#company-city.city-list-only canvas, #company-city.city-list-only .city-labels { display: none; }
#company-city.city-list-only .city-revenue { display: none; }
#company-city.city-list-only .city-map { height: 120px; min-height: 0; }
#company-city.city-list-only .city-layout { grid-template-columns: 1fr; }
.city-return { display: none; }
body.bootstrap-dashboard[data-desktop-view="home"] .hero-card.system-shell.has-company-city { display: block; padding: 0; width: 100%; max-width: none; min-height: 0; }
body[data-desktop-view="home"] .has-company-city > :not(#company-city) { display: none !important; }
.hero-card.system-shell:not(.has-company-city) > #company-city { display: none; }
body[data-desktop-view="home"] .hero-card.system-shell:not(.has-company-city) > .city-return { display: block; position: relative; z-index: 5; margin: 12px auto; }
body:not([data-desktop-view="home"]) #company-city { display: none; }
body.bootstrap-dashboard[data-desktop-view="home"]:has(.has-company-city) { background: #b7d0d5; }
body.bootstrap-dashboard[data-desktop-view="home"]:has(.has-company-city)::after { display: none; }
body.bootstrap-dashboard[data-desktop-view="home"]:has(.has-company-city)::before { display: none; }
body.bootstrap-dashboard[data-desktop-view="home"]:has(.has-company-city) #app-shell { background: transparent; margin: 12px auto; min-height: calc(100vh - 24px); width: calc(100% - 24px); }
@media (max-width: 768px) {
    .public-city-main { padding: 0; }
    .public-city-host { width: 100%; min-width: 0; border-radius: 0; }
    .public-city-host #company-city { min-height: calc(100dvh - 64px); border-radius: 0; }
    #company-city.is-public-city .city-map { height: 64svh; }
    #company-city .city-heading { min-height: 92px; padding: 12px 14px; align-items: center; gap: 10px; }
    #company-city .city-heading span { font-size: 9px; }
    #company-city .city-heading h1 { margin: 2px 0 0; font-size: 24px; }
    #company-city .city-heading p { display: none; }
    #company-city .city-heading > button { width: auto; min-width: 64px; max-width: none; padding: 8px 12px; }
    #company-city .city-layout { grid-template-columns: 1fr; }
    #company-city .city-map { width: 100%; height: 62svh; min-height: 0; max-height: 680px; }
    #company-city .city-revenue-compact { position: absolute; z-index: 6; top: 10px; left: 10px; display: grid; grid-template-columns: 1fr auto; min-width: 148px; min-height: 48px; padding: 7px 34px 7px 11px; text-align: left; box-shadow: 0 8px 24px rgba(31, 75, 83, .2); }
    #company-city .city-revenue-compact span { grid-column: 1; color: #527078; font-size: 9px; letter-spacing: .08em; }
    #company-city .city-revenue-compact strong { grid-column: 1; font-size: 14px; }
    #company-city .city-revenue-compact b { position: absolute; right: 12px; top: 50%; translate: 0 -50%; font-size: 22px; }
    #company-city .city-revenue { display: none; position: fixed; inset: auto 0 0; z-index: 101; width: 100%; max-height: 70svh; aspect-ratio: auto; padding: 18px; border-radius: 18px 18px 0 0; box-shadow: 0 -12px 42px rgba(20, 39, 44, .28); }
    #company-city.city-revenue-open .city-revenue { display: flex; }
    #company-city .city-revenue header { position: relative; padding-right: 48px; }
    #company-city .city-revenue header button { position: absolute; top: -8px; right: -6px; display: block; width: 44px; min-height: 44px; padding: 0; font-size: 22px; }
    #company-city .city-revenue div { min-height: 82px; }
    #company-city .city-revenue strong { font-size: 19px; }
    #company-city .city-revenue footer { display: block; }
    #company-city .city-labels button { min-width: 72px; min-height: 44px; padding: 6px 8px; }
    #company-city .city-labels button span { font-size: 8px; }
    #company-city .city-labels button strong { font-size: 10px; }
    #company-city .city-labels button em, #company-city .city-labels button i { display: none; }
    #company-city .city-labels button[aria-pressed="true"] { min-width: 110px; z-index: 2; }
    #company-city .city-labels button[aria-pressed="true"] em, #company-city .city-labels button[aria-pressed="true"] i { display: block; }
    #company-city .city-landmark-label { width: 112px; padding: 7px 8px; font-size: 9px; }
    #company-city .city-camera { left: auto; right: 10px; bottom: 12px; gap: 5px; flex-wrap: nowrap; }
    #company-city .city-camera button { width: 44px; min-width: 44px; height: 44px; padding: 0; }
    #company-city .city-camera [data-camera="out"] { order: 1; }
    #company-city .city-camera [data-camera="in"] { order: 2; }
    #company-city .city-camera [data-camera="reset"] { order: 3; width: 58px; font-size: 0; }
    #company-city .city-camera [data-camera="reset"]::after { content: "Centro"; font-size: 10px; }
    #company-city .city-camera [data-list] { display: none; }
    #company-city .city-map-hint { display: none; }
    #company-city .city-sidebar { border-left: 0; border-top: 1px solid #d2e1df; padding: 18px; }
    #company-city .city-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
