@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;450;500;550;600;650;700&family=Manrope:wght@400;500;600;650;700;750;800&display=swap');
:root {
    --green: #173e35;
    --green-light: #e7eee9;
    --ink: #23332e;
    --muted: #78827d;
    --gold: #b89a61;
    --line: #e4e8e2;
    --paper: #f5f6f2;
    --white: #fff;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 20px;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: 'DM Sans',Arial,sans-serif;
    font-size: 14px;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
select {
    font: inherit;
}

button,
a,
select,
summary {
    outline-offset: 5px;
}

button:focus-visible,
a:focus-visible,
select:focus-visible,
summary:focus-visible {
    outline: 2px solid var(--gold);
}

h1,
h2,
h3,
p {
    margin: 0;
}

h1,
h2,
h3,
strong {
    font-family: Manrope,Arial,sans-serif;
}

h1 {
    font-size: 36px;
    font-weight: 650;
    letter-spacing: -1.5px;
    line-height: 1.25;
}

h2 {
    font-size: 20px;
    font-weight: 650;
    letter-spacing: -.5px;
}

h3 {
    font-size: 18px;
    font-weight: 700;
}

small {
    font-size: 12px;
}

.muted {
    color: var(--muted);
}

.eyebrow {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.6px;
    color: var(--muted);
    margin-bottom: 10px;
}

.gold-dot {
    color: var(--gold);
}

.demo-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--green);
    color: #e0e7df;
    padding: 10px 4%;
    font-size: 10px;
    letter-spacing: .6px;
}

.demo-bar i {
    display: inline-block;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--gold);
    margin: 0 10px;
    vertical-align: middle;
}

.demo-bar a {
    font-size: 11px;
}

.header {
    display: flex;
    align-items: center;
    gap: 62px;
    padding: 0 4%;
    height: 96px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
}

.brand {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--green);
}

.brand svg {
    width: 38px;
    height: 42px;
}

.brand>span {
    font-family: Manrope,Arial,sans-serif;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 2px;
}

.brand small {
    display: block;
    font-size: 9px;
    letter-spacing: 3.4px;
    font-weight: 500;
    margin-top: 2px;
}

.header nav {
    align-self: stretch;
    display: flex;
    gap: 30px;
}

.header nav a {
    display: flex;
    align-items: center;
    border-bottom: 3px solid transparent;
    font-size: 13px;
    color: var(--muted);
}

.header nav a.active {
    color: var(--green);
    border-color: var(--green);
    font-weight: 700;
}

.profile {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
}

.profile small {
    display: block;
    color: var(--muted);
    font-size: 10px;
    margin-top: 4px;
}

.avatar {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    background: var(--green-light);
    border-radius: 50%;
    font-size: 11px;
}

.container {
    max-width: 1536px;
    margin: auto;
    padding: 38px 4% 56px;
}

.page-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    gap: 16px;
}

.page-heading p {
    color: var(--muted);
    margin-top: 10px;
}

.reference {
    text-align: right;
    font-size: 12px;
    color: #52615a;
    line-height: 1.8;
}

.reference small {
    display: block;
    color: var(--muted);
    font-size: 10px;
}

.status-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #3b785b;
    border-radius: 50%;
    margin-right: 5px;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 16px;
    background: #eeefe9;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 25px;
}

.filters label {
    display: flex;
    flex-direction: column;
    gap: 7px;
    font-size: 10px;
    color: #637169;
    font-weight: 600;
}

.filters select {
    height: 37px;
    min-width: 200px;
    border: 1px solid #dbe0d7;
    border-radius: 5px;
    background: white;
    color: var(--ink);
    padding: 0 30px 0 12px;
    font-size: 12px;
}

.filters button,
.button {
    background: var(--green);
    color: white;
    border: 0;
    border-radius: 5px;
    padding: 11px 18px;
    font-size: 12px;
    cursor: pointer;
}

.filters button:hover,
.button:hover {
    background: #285649;
}

.text-link {
    color: var(--green);
    font-size: 12px;
    font-weight: 600;
}

.filters>.text-link {
    align-self: center;
    margin-top: 18px;
}

.filter-note {
    margin-left: auto;
    align-self: center;
    font-size: 10px;
    color: var(--muted);
    line-height: 1.6;
}

.metrics {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 18px;
    margin-bottom: 26px;
}

.metric {
    background: white;
    padding: 23px;
    border: 1px solid var(--line);
    border-radius: 8px;
    position: relative;
}

.metric>span {
    font-size: 12px;
    color: #64716a;
}

.metric strong {
    display: block;
    font-size: 32px;
    font-weight: 600;
    letter-spacing: -1px;
    margin: 15px 0;
}

.metric strong small {
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0;
    color: var(--muted);
}

.metric p {
    font-size: 10px;
    color: var(--muted);
}

.metric p b {
    font-weight: 600;
    color: var(--green);
}

.metric.featured {
    background: var(--green);
    color: white;
    border-color: var(--green);
}

.metric.featured>span,
.metric.featured small,
.metric.featured p {
    color: #c6d4c9;
}

.analysis-grid {
    display: grid;
    grid-template-columns: 1.65fr 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

.panel {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    padding: 26px;
    min-width: 0;
}

.panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.legend {
    font-size: 10px;
    color: var(--muted);
}

.legend i {
    display: inline-block;
    width: 7px;
    height: 7px;
    background: var(--green);
    border-radius: 2px;
    margin-right: 6px;
}

.chart-summary {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 12px 0 10px;
}

.chart-summary strong {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -.6px;
}

.chart-summary span {
    font-size: 10px;
    color: var(--muted);
}

.bar-chart {
    display: flex;
    gap: 13px;
    height: 192px;
    padding-top: 10px;
    border-bottom: 1px solid var(--line);
    background: repeating-linear-gradient(to top,transparent 0,transparent 47px,#f0f2ee 48px,#f0f2ee 49px);
}

.bar-column {
    display: flex;
    flex: 1;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    font-size: 9px;
    color: var(--muted);
    height: 100%;
}

.bar-track {
    height: 140px;
    width: 70%;
    display: flex;
    align-items: flex-end;
}

.bar {
    width: 100%;
    background: #426558;
    border-radius: 3px 3px 0 0;
    min-height: 0;
}

.bar-column:last-child .bar {
    background: var(--gold);
}

.bar-column>span:last-child {
    padding-top: 10px;
}

.bar-value {
    height: 18px;
    font-size: 9px;
}

.chart-details {
    font-size: 11px;
    color: var(--muted);
    margin-top: 16px;
    overflow-x: auto;
}

.chart-details summary {
    cursor: pointer;
}

.health-number {
    margin: 24px 0 12px;
}

.health-number>span {
    display: block;
    font-size: 12px;
    color: var(--muted);
}

.health-number strong {
    display: block;
    font-size: 32px;
    font-weight: 600;
    letter-spacing: -1px;
    margin-top: 8px;
}

.health-number small {
    font-size: 16px;
    color: var(--muted);
}

.health-row {
    padding: 17px 0;
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    gap: 15px;
    font-size: 11px;
}

.health-row>span {
    color: var(--muted);
}

.health-row>b {
    font-weight: 600;
}

.insight {
    font-size: 11px;
    line-height: 1.7;
    background: #f4f5ef;
    color: #657263;
    border-left: 2px solid var(--gold);
    padding: 13px 14px;
    margin-top: 20px;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 32px 0 20px;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 20px;
}

.project-card {
    display: block;
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow .2s,transform .2s;
}

.project-card:hover {
    box-shadow: 0 8px 24px #213c3010;
    transform: translateY(-3px);
}

.building {
    height: 152px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(130deg,#d6ddd6,#eef0e5);
    isolation: isolate;
}

.building-b {
    background: linear-gradient(140deg,#d4d8d1,#eae4d7);
}

.category {
    position: absolute;
    left: 14px;
    top: 14px;
    padding: 5px 9px;
    background: #ffffffd9;
    border-radius: 3px;
    font-size: 9px;
    color: #54645a;
    z-index: 2;
}

.tower {
    position: absolute;
    bottom: -6px;
    background: repeating-linear-gradient(0deg,transparent 0,transparent 10px,#d0d1c5 11px,#d0d1c5 13px),repeating-linear-gradient(90deg,#b1bdb3 0,#b1bdb3 9px,#e7e6db 10px,#e7e6db 17px);
    border-left: 6px solid #edece2;
    box-shadow: 10px 6px 0 #718c7d30;
    transform: skewY(-5deg);
}

.tower-one {
    height: 102px;
    width: 60px;
    left: 24%;
}

.tower-two {
    height: 135px;
    width: 72px;
    left: 47%;
}

.tower-three {
    height: 76px;
    width: 55px;
    left: 73%;
}

.building-b .tower-one {
    height: 132px;
}

.building-b .tower-two {
    height: 100px;
    transform: skewY(5deg);
}

.image-caption {
    position: absolute;
    bottom: 8px;
    left: 12px;
    font-size: 7px;
    letter-spacing: 1px;
    color: #45594a;
    z-index: 3;
    background: #ffffffbd;
    padding: 3px;
}

.project-body {
    padding: 19px;
}

.project-body .eyebrow {
    font-size: 8px;
    letter-spacing: .5px;
    margin-bottom: 7px;
}

.project-body h3 {
    font-size: 15px;
    letter-spacing: -.4px;
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.project-body h3>span {
    color: var(--muted);
}

.project-numbers {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin: 21px 0;
}

.project-numbers small {
    display: block;
    color: var(--muted);
    font-size: 9px;
    margin-bottom: 5px;
}

.project-numbers strong {
    font-size: 12px;
    font-weight: 600;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    margin: 12px 0 7px;
    gap: 10px;
}

.progress-label>span {
    color: var(--muted);
}

.progress-label>b {
    font-weight: 500;
}

progress {
    appearance: none;
    border: 0;
    width: 100%;
    height: 4px;
    border-radius: 4px;
    overflow: hidden;
    display: block;
    background: #edf0e9;
    color: var(--green);
}

progress::-webkit-progress-bar {
    background: #edf0e9;
}

progress::-webkit-progress-value {
    background: var(--green);
    border-radius: 4px;
}

progress::-moz-progress-bar {
    background: var(--green);
}

progress.gold::-webkit-progress-value {
    background: var(--gold);
}

progress.gold::-moz-progress-bar {
    background: var(--gold);
}

.recent {
    margin-top: 30px;
}

.table-scroll {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 11px;
}

th {
    color: var(--muted);
    font-weight: 500;
    font-size: 10px;
    padding: 14px 10px;
    background: #f7f8f4;
    white-space: nowrap;
}

td {
    padding: 16px 10px;
    border-bottom: 1px solid #eef0ea;
    white-space: nowrap;
}

tr:last-child td {
    border-bottom: 0;
}

.stage-progress {
    display: flex;
    align-items: center;
    gap: 12px;
}

.stage-progress progress {
    min-width: 80px;
}

.stage-progress span {
    width: 35px;
}

.section-nav {
    display: flex;
    gap: 28px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 26px;
}

.section-nav a {
    padding: 14px 0;
    color: var(--green);
    font-size: 12px;
}

.section-nav a:hover {
    box-shadow: 0 2px var(--green);
}

.breadcrumb {
    display: inline-block;
    color: var(--muted);
    margin-bottom: 25px;
    font-size: 12px;
}

.panel>.muted {
    font-size: 11px;
    margin-top: 16px;
}

.empty {
    padding: 35px;
    color: var(--muted);
    grid-column: 1/-1;
    border: 1px dashed var(--line);
    line-height: 1.7;
}

.empty a {
    text-decoration: underline;
}

footer {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--line);
    padding: 25px 4%;
    font-size: 10px;
    gap: 20px;
}

footer>span:first-child {
    font-weight: 700;
    letter-spacing: 1px;
}

footer .muted {
    font-weight: 400;
    margin-left: 8px;
    letter-spacing: 0;
}

.skip {
    position: absolute;
    left: 10px;
    top: -100px;
    background: white;
    padding: 15px;
    z-index: 10;
}

.skip:focus {
    top: 10px;
}

.landing {
    background: radial-gradient(ellipse at top right,#e1e7da,transparent 70%),var(--paper);
}

.welcome {
    max-width: 960px;
    padding: 90px 32px;
    margin: auto;
}

.welcome h1 {
    font-size: 56px;
    margin: 24px 0;
}

.welcome>p {
    max-width: 560px;
    line-height: 1.8;
    color: var(--muted);
}

.welcome-card {
    background: white;
    border: 1px solid var(--line);
    padding: 32px;
    margin: 40px 0 24px;
    border-radius: 12px;
    max-width: 580px;
}

.welcome-card h2 {
    font-size: 27px;
}

.welcome-card p {
    color: var(--muted);
    line-height: 1.8;
    margin: 14px 0 24px;
}

.welcome-card .button {
    display: inline-flex;
    gap: 40px;
}

.welcome-card>small {
    display: block;
    margin-top: 24px;
    color: var(--muted);
    font-size: 10px;
}

@media (min-width:1550px) {
    .header,
    .demo-bar,
    footer {
        padding-left: max(4%,calc((100vw - 1413px)/2));
        padding-right: max(4%,calc((100vw - 1413px)/2));
    }
}

@media (max-width:1100px) {
    .header {
        gap: 35px;
    }
    .profile>span:last-child {
        display: none;
    }
    .project-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
    .metric {
        padding: 18px;
    }
    .metric strong {
        font-size: 26px;
    }
    .analysis-grid {
        grid-template-columns: 1.4fr 1fr;
    }
    .filter-note {
        display: none;
    }
    .panel {
        padding: 21px;
    }
    .bar-chart {
        gap: 7px;
    }
    .chart-summary {
        flex-wrap: wrap;
        gap: 5px;
    }
}

@media (max-width:720px) {
    .demo-bar {
        font-size: 8px;
        gap: 15px;
    }
    .demo-bar a {
        font-size: 9px;
        white-space: nowrap;
    }
    .demo-bar i {
        margin: 0 4px;
    }
    .header {
        height: auto;
        min-height: 108px;
        flex-wrap: wrap;
        gap: 12px;
        padding-top: 15px;
    }
    .brand>span {
        font-size: 20px;
    }
    .brand svg {
        width: 30px;
    }
    .header nav {
        order: 3;
        width: 100%;
        gap: 25px;
        height: 38px;
    }
    .header nav a {
        font-size: 11px;
    }
    .profile {
        margin-left: auto;
    }
    .container {
        padding-top: 26px;
    }
    .page-heading {
        align-items: flex-start;
    }
    .page-heading h1 {
        font-size: 28px;
    }
    .page-heading p {
        font-size: 12px;
        line-height: 1.6;
    }
    .reference {
        font-size: 9px;
        min-width: 100px;
    }
    .reference small {
        font-size: 8px;
    }
    .eyebrow {
        font-size: 8px;
    }
    .metrics {
        grid-template-columns: repeat(2,minmax(0,1fr));
        gap: 12px;
    }
    .metric strong {
        font-size: 26px;
    }
    .metric strong small {
        font-size: 12px;
    }
    .metric>span {
        font-size: 11px;
    }
    .metric p {
        font-size: 9px;
        line-height: 1.5;
    }
    .filters {
        flex-wrap: wrap;
        padding: 14px;
        gap: 12px;
    }
    .filters label {
        flex: 1;
        min-width: 140px;
    }
    .filters select {
        min-width: 0;
        width: 100%;
        max-width: 100%;
    }
    .filters>.text-link {
        margin-top: 0;
    }
    .analysis-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .chart-summary {
        gap: 12px;
    }
    .bar-chart {
        gap: 7px;
    }
    .bar-value {
        font-size: 8px;
    }
    .section-heading {
        align-items: flex-start;
    }
    .section-heading .text-link {
        max-width: 110px;
        text-align: right;
        font-size: 10px;
        line-height: 1.6;
    }
    h2 {
        font-size: 18px;
    }
    .project-grid {
        gap: 12px;
    }
    .project-body {
        padding: 14px;
    }
    .project-body h3 {
        font-size: 13px;
    }
    .project-numbers {
        flex-direction: column;
        gap: 12px;
    }
    .building {
        height: 125px;
    }
    .category {
        font-size: 8px;
        left: 8px;
        top: 8px;
    }
    .progress-label {
        font-size: 9px;
    }
    .section-nav {
        gap: 22px;
    }
    .section-nav a {
        font-size: 11px;
    }
    footer {
        font-size: 9px;
        line-height: 1.7;
    }
    footer .muted {
        display: block;
        margin: 0;
    }
    .welcome {
        padding: 60px 24px;
    }
    .welcome h1 {
        font-size: 38px;
    }
    .welcome-card {
        padding: 24px;
    }
    .table-scroll {
        margin: 0 -5px;
    }
    .panel-heading {
        align-items: flex-start;
    }
    .legend {
        font-size: 8px;
    }
    .reference .status-dot {
        display: none;
    }
}

@media (prefers-reduced-motion:reduce) {
    html {
        scroll-behavior: auto;
    }
    .project-card {
        transition: none;
    }
}

/* ------------------------------------------------------------------
   Painel executivo: VGV, grupos de indicadores, caixa e matriz
   ------------------------------------------------------------------ */
.metrics-vgv {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.metrics-vgv .metric strong {
    font-size: 28px;
}

.kpi-board {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 26px;
}

.kpi-group {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 20px 22px 22px;
    min-width: 0;
}

.kpi-group>header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding-bottom: 12px;
    margin-bottom: 4px;
    border-bottom: 1px solid var(--line);
}

.kpi-group>header .eyebrow {
    margin: 0;
    color: var(--green);
}

.kpi-group>header .eyebrow::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 2px;
    background: var(--gold);
    margin-right: 8px;
    vertical-align: middle;
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 18px;
}

.kpi {
    padding: 14px 0 12px;
    border-bottom: 1px dashed #e9ece5;
    min-width: 0;
}

.kpi>span {
    display: block;
    font-size: 10px;
    color: #64716a;
}

.kpi strong {
    display: block;
    font-size: 19px;
    font-weight: 650;
    letter-spacing: -.5px;
    margin-top: 6px;
    color: var(--ink);
    overflow-wrap: anywhere;
}

.kpi small {
    display: block;
    font-size: 9px;
    color: var(--muted);
    margin-top: 4px;
    line-height: 1.5;
}

.negative {
    color: #a5623f !important;
}

.cash-legend i {
    margin-left: 10px;
}

.cash-legend i.in {
    background: #426558;
}

.cash-legend i.out {
    background: var(--gold);
}

.cash-chart {
    display: flex;
    gap: 6px;
    height: 210px;
    margin-top: 18px;
    border-bottom: 1px solid var(--line);
    background: repeating-linear-gradient(to top, transparent 0, transparent 47px, #f0f2ee 48px, #f0f2ee 49px);
}

.cash-chart.compact {
    height: 170px;
}

.cash-column {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 8px;
    color: var(--muted);
}

.cash-track {
    flex: 1;
    width: 80%;
    display: flex;
    align-items: flex-end;
    gap: 2px;
}

.cash-track i {
    flex: 1;
    display: block;
    border-radius: 2px 2px 0 0;
}

.cash-track i.in {
    background: #426558;
}

.cash-track i.out {
    background: var(--gold);
}

.cash-column.projected .cash-track i {
    opacity: .4;
}

.cash-column>span {
    padding: 8px 0 4px;
    white-space: nowrap;
}

/* Com 18 meses, um rótulo a cada dois evita sobreposição. */
.cash-column:nth-child(even)>span {
    visibility: hidden;
}

.chart-caption {
    font-size: 10px;
    color: var(--muted);
    margin-top: 10px;
}

.matrix {
    margin-bottom: 8px;
}

.delay {
    display: inline-block;
    font-size: 10px;
    padding: 3px 7px;
    border-radius: 10px;
    white-space: nowrap;
}

.delay.ok {
    background: var(--green-light);
    color: var(--green);
}

.delay.late {
    background: #f5e8dc;
    color: #8f5634;
}

.project-numbers .delay {
    margin-top: 6px;
    font-size: 8px;
}

.cockpit-section {
    margin-bottom: 30px;
    scroll-margin-top: 20px;
}

.cockpit-section .analysis-grid {
    margin-bottom: 18px;
}

.cockpit-section.analysis-grid {
    margin-bottom: 30px;
}

.cockpit-section .panel>.text-link,
.cockpit-section .panel>a.text-link {
    display: inline-block;
    margin-top: 14px;
}

@media (max-width:1100px) {
    .metrics-vgv {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .kpi-board {
        grid-template-columns: 1fr;
    }
}

@media (max-width:720px) {
    .metrics-vgv {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .metrics-vgv .metric strong {
        font-size: 22px;
    }

    .kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .kpi strong {
        font-size: 16px;
    }

    .cash-chart {
        gap: 3px;
    }

    .cash-column>span {
        writing-mode: vertical-rl;
        transform: rotate(180deg);
        font-size: 7px;
    }
}
