/* rtn-app global styles */

:root {
    --rtn-green: #14532d;
    --rtn-green-light: #1d7a42;
}

.bg-rtn {
    background-color: var(--rtn-green);
}

.hero-rtn {
    background: linear-gradient(
        135deg,
        var(--rtn-green) 0%,
        var(--rtn-green-light) 100%
    );
}

/* Unit badges */
.unit-badge {
    font-weight: 500;
}
.unit-brl {
    background-color: #e7f1ff;
    color: #0a58ca;
}
.unit-brl_const {
    background-color: #fff3cd;
    color: #997404;
}
.unit-pct_gdp {
    background-color: #d1e7dd;
    color: #146c43;
}

/* Account tree */
.account-tree {
    margin-bottom: 0;
}
.account-tree .account-tree {
    margin-left: 1.25rem;
    border-left: 1px solid #dee2e6;
    padding-left: 0.75rem;
}
.account-node {
    padding: 0.15rem 0;
}
.account-link {
    text-decoration: none;
}
.account-link:hover {
    text-decoration: underline;
}
.account-node.level-1 > .account-link {
    font-weight: 600;
}

/* Editorial content */
.content-article {
    max-width: 760px;
}
.content-article img {
    max-width: 100%;
    height: auto;
}

/* Active account in hierarchy tree */
.account-link.active-account {
    background-color: rgba(20, 83, 45, 0.08); /* Light green tint */
    color: var(--rtn-green) !important;
    font-weight: 600;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    border-left: 3px solid var(--rtn-green);
    display: inline-block;
}

/* Adjustments for the sticky chart panel in desktop layout */
.sticky-lg-top {
    position: -webkit-sticky;
    position: sticky;
    top: 1.5rem;
}

