*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --ink: #0e0e0c;
    --ink-2: #3a3a36;
    --ink-3: #8a8a82;
    --paper: #f7f6f1;
    --paper-2: #eeede6;
    --gold: #c9a84c;
    --gold-light: #f0d98a;
    --aurus-orange: #E8792A;
    --white: #ffffff;
    --green: #2d7a3a;
    --blue: #185fa5;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--paper);
    color: var(--ink);
    overflow-x: hidden;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes cellGlow {
    0%,100% {
        background: rgba(201,168,76,0.06);
    }

    50% {
        background: rgba(201,168,76,0.22);
    }
}

@keyframes llGlow {
    0%,100% {
        background: rgba(201,168,76,0.05);
    }

    50% {
        background: rgba(201,168,76,0.2);
    }
}

#nav-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 48px;
    transition: background .4s, padding .4s, border-color .4s;
}

    #nav-bar.scrolled {
        background: rgba(247,246,241,0.94);
        backdrop-filter: blur(12px);
        padding: 16px 48px;
        border-bottom: 1px solid var(--paper-2);
    }

.nav-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.nav-product {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.nav-product-name {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 24px;
    color: var(--ink);
    line-height: 1;
    letter-spacing: -.5px;
}

.nav-product-gold {
    color: var(--gold);
}

.nav-product-subs {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 3px;
}

.nav-sub-dev {
    font-size: 11px;
    color: var(--ink-3);
    font-weight: 300;
}

    .nav-sub-dev strong {
        color: var(--ink);
        font-weight: 500;
    }

.nav-sub-sep {
    font-size: 11px;
    color: var(--paper-2);
}

.nav-sub-par {
    font-size: 11px;
    color: var(--ink-3);
    font-weight: 300;
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .04em;
    color: var(--ink);
    padding: 10px 22px;
    border: 1px solid var(--ink);
    border-radius: 3px;
    transition: background .2s, color .2s;
}

    .nav-cta:hover {
        background: var(--ink);
        color: var(--paper);
    }

.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.hero-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 160px 64px 80px 72px;
}

.hero-badge-top {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: var(--white);
    border: 1px solid var(--paper-2);
    border-radius: 8px;
    width: fit-content;
    margin-bottom: 32px;
    opacity: 0;
    animation: fadeUp .7s .1s forwards;
}

.hero-badge-text {
    font-size: 12px;
    color: var(--ink-3);
    font-weight: 300;
}

    .hero-badge-text strong {
        color: var(--ink);
        font-weight: 500;
    }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 28px;
    opacity: 0;
    animation: fadeUp .7s .2s forwards;
}

.eyebrow-line {
    width: 28px;
    height: 1px;
    background: var(--gold);
    flex-shrink: 0;
}

.hero-title {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: clamp(42px, 5vw, 70px);
    line-height: 1.06;
    letter-spacing: -.02em;
    color: var(--ink);
    margin-bottom: 24px;
    opacity: 0;
    animation: fadeUp .8s .35s forwards;
}

    .hero-title em {
        font-style: italic;
        color: var(--gold);
    }

.hero-sub {
    font-size: 16px;
    font-weight: 300;
    line-height: 1.65;
    color: var(--ink-2);
    max-width: 400px;
    margin-bottom: 48px;
    opacity: 0;
    animation: fadeUp .8s .5s forwards;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 24px;
    opacity: 0;
    animation: fadeUp .8s .65s forwards;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: .03em;
    color: var(--white);
    background: var(--ink);
    padding: 15px 30px;
    border-radius: 3px;
    position: relative;
    overflow: hidden;
    transition: color .3s;
}

    .btn-primary::after {
        content: '';
        position: absolute;
        inset: 0;
        background: var(--gold);
        transform: translateX(-105%);
        transition: transform .35s cubic-bezier(.4,0,.2,1);
    }

    .btn-primary:hover::after {
        transform: translateX(0);
    }

    .btn-primary span, .btn-primary svg {
        position: relative;
        z-index: 1;
    }

.hero-note {
    font-size: 12px;
    color: var(--ink-3);
    font-weight: 300;
}

.stats {
    display: flex;
    gap: 40px;
    margin-top: 64px;
    padding-top: 36px;
    border-top: 1px solid var(--paper-2);
    opacity: 0;
    animation: fadeUp .8s .8s forwards;
}

.stat-num {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 32px;
    color: var(--ink);
    line-height: 1;
}

.stat-label {
    font-size: 11px;
    color: var(--ink-3);
    margin-top: 4px;
    letter-spacing: .04em;
}

.hero-right {
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: var(--ink);
}

.solar-grid {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(5,1fr);
    grid-template-rows: repeat(7,1fr);
    gap: 3px;
    padding: 80px 48px 48px;
    opacity: 0;
    animation: fadeIn 1.2s .4s forwards;
}

.cell {
    border-radius: 4px;
    background: rgba(201,168,76,0.08);
    border: 1px solid rgba(201,168,76,0.12);
    animation: cellGlow var(--dur,4s) var(--del,0s) ease-in-out infinite;
}

.hero-float-badge {
    position: absolute;
    bottom: 56px;
    left: 44px;
    background: rgba(247,246,241,0.06);
    border: 1px solid rgba(247,246,241,0.14);
    backdrop-filter: blur(8px);
    border-radius: 8px;
    padding: 18px 22px;
    color: var(--paper);
    opacity: 0;
    animation: fadeUp .8s 1s forwards;
}

    .hero-float-badge .badge-label {
        font-size: 10px;
        letter-spacing: .12em;
        text-transform: uppercase;
        color: var(--gold-light);
        margin-bottom: 5px;
    }

    .hero-float-badge .badge-value {
        font-family: 'DM Serif Display', Georgia, serif;
        font-size: 26px;
        line-height: 1;
        color: #fff;
    }

    .hero-float-badge .badge-sub {
        font-size: 11px;
        color: rgba(255,255,255,.4);
        margin-top: 3px;
        font-weight: 300;
    }

.hero-divider {
    position: absolute;
    top: 0;
    bottom: 0;
    left: -1px;
    width: 1px;
    background: linear-gradient(to bottom, transparent, var(--gold) 40%, var(--gold) 60%, transparent);
    opacity: .4;
}

.hero-tag {
    position: absolute;
    top: 48px;
    right: 44px;
    font-size: 10px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: rgba(255,255,255,.25);
    writing-mode: vertical-rl;
    opacity: 0;
    animation: fadeIn 1s .9s forwards;
}

.section-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 56px;
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 20px;
}

    .section-eyebrow.light {
        color: rgba(255,255,255,.45);
    }

.eyebrow-line.light {
    background: rgba(255,255,255,.25);
}

.section-title {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: clamp(28px, 3.2vw, 44px);
    line-height: 1.12;
    letter-spacing: -.02em;
    color: var(--ink);
    margin-bottom: 52px;
}

    .section-title.light {
        color: #fff;
    }

.section-como {
    padding: 100px 0;
    background: var(--white);
}

.steps {
    display: flex;
    align-items: flex-start;
    gap: 0;
}

.step {
    flex: 1;
    padding: 28px;
    background: var(--paper);
    border-radius: 10px;
    border: 1px solid var(--paper-2);
}

.step-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    color: var(--ink-3);
    flex-shrink: 0;
    margin-top: 56px;
}

.step-num {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 32px;
    color: var(--paper-2);
    line-height: 1;
    margin-bottom: 14px;
}

.step-icon {
    color: var(--gold);
    margin-bottom: 14px;
}

.step-title {
    font-size: 15px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 8px;
}

.step-desc {
    font-size: 13px;
    color: var(--ink-3);
    line-height: 1.65;
    font-weight: 300;
}

.section-dif {
    padding: 100px 0;
    background: var(--ink);
}

.dif-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 16px;
}

.dif-card {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 10px;
    padding: 26px;
    transition: background .2s;
}

    .dif-card:hover {
        background: rgba(255,255,255,.07);
    }

.dif-icon {
    color: var(--gold);
    margin-bottom: 14px;
}

.dif-card h3 {
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 8px;
}

.dif-card p {
    font-size: 13px;
    color: rgba(255,255,255,.4);
    line-height: 1.65;
    font-weight: 300;
}

.section-sobre {
    padding: 100px 0;
    background: var(--paper);
}

.sobre-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 56px;
    align-items: center;
}

.sobre-divider {
    width: 1px;
    height: 160px;
    background: var(--paper-2);
}

.sobre-card {
    position: relative;
    padding-top: 16px;
}

    .sobre-card:first-child::before {
        content: 'DESENVOLVEDOR';
        position: absolute;
        top: -10px;
        left: 0;
        font-size: 9px;
        font-weight: 500;
        letter-spacing: .14em;
        color: var(--gold);
        background: var(--paper);
        padding: 2px 8px;
        border: 1px solid var(--gold);
        border-radius: 3px;
    }

    .sobre-card:last-child::before {
        content: 'PARCEIRA';
        position: absolute;
        top: -10px;
        left: 0;
        font-size: 9px;
        font-weight: 500;
        letter-spacing: .14em;
        color: var(--ink-3);
        background: var(--paper);
        padding: 2px 8px;
        border: 1px solid var(--paper-2);
        border-radius: 3px;
    }

.sobre-logo {
    height: 28px;
    width: auto;
    margin-bottom: 18px;
    filter: drop-shadow(0 1px 6px rgba(0,0,0,0.25));
}

.aurus-text-logo {
    display: flex;
    flex-direction: column;
    margin-bottom: 18px;
    line-height: 1;
}

.aurus-a {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 26px;
    color: var(--aurus-orange);
    letter-spacing: .05em;
}

.aurus-e {
    font-size: 11px;
    color: var(--ink-3);
    letter-spacing: .2em;
    text-transform: uppercase;
    margin-top: 2px;
}

.sobre-desc {
    font-size: 13px;
    color: var(--ink-2);
    line-height: 1.7;
    font-weight: 300;
    margin-bottom: 14px;
}

.sobre-contato {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 12px;
    color: var(--ink-3);
}

.footer {
    background: var(--ink);
    padding: 44px 0;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo {
    height: 22px;
    filter: drop-shadow(0 1px 4px rgba(0,0,0,0.5));
}

.footer-product {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 17px;
    color: rgba(255,255,255,.5);
}

    .footer-product span {
        color: var(--gold);
    }

.footer-copy {
    font-size: 11px;
    color: rgba(255,255,255,.25);
    line-height: 1.6;
    font-weight: 300;
    text-align: center;
}

.footer-cta {
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    color: var(--paper);
    padding: 11px 22px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 4px;
    transition: border-color .2s, color .2s;
    white-space: nowrap;
}

    .footer-cta:hover {
        border-color: var(--gold);
        color: var(--gold);
    }

/* LOGIN */
.login-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.login-left {
    background: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 56px;
    position: relative;
    overflow: hidden;
}

.ll-content {
    width: 100%;
    max-width: 340px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ll-seticom-destaque {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 36px;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(255,255,255,.07);
    width: 100%;
}

.ll-seticom-img {
    height: 32px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: .88;
}

.ll-seticom-label {
    font-size: 10px;
    color: rgba(255,255,255,.25);
    letter-spacing: .16em;
    text-transform: uppercase;
    font-weight: 300;
}

.ll-headline {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: clamp(24px, 3vw, 36px);
    color: #fff;
    line-height: 1.15;
    letter-spacing: -.02em;
    margin-bottom: 12px;
    width: 100%;
}

.ll-desc {
    font-size: 13px;
    color: rgba(255,255,255,.35);
    line-height: 1.65;
    font-weight: 300;
    margin-bottom: 32px;
    width: 100%;
}

.ll-stats {
    display: flex;
    gap: 28px;
    margin-bottom: 32px;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(255,255,255,.07);
    width: 100%;
}

.ll-stat {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.ll-stat-n {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 22px;
    color: var(--gold);
    line-height: 1;
}

.ll-stat-l {
    font-size: 10px;
    color: rgba(255,255,255,.28);
    font-weight: 300;
}

.ll-grid {
    display: grid;
    grid-template-columns: repeat(7,1fr);
    grid-template-rows: repeat(4,1fr);
    gap: 3px;
    opacity: .35;
    width: 100%;
    margin-bottom: 24px;
}

.ll-cell {
    aspect-ratio: 1;
    border-radius: 3px;
    background: rgba(201,168,76,0.08);
    border: 1px solid rgba(201,168,76,0.12);
    animation: llGlow var(--g-dur,4s) var(--g-del,0s) ease-in-out infinite;
}

.ll-parceria {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,.06);
    width: 100%;
}

.ll-parceria-label {
    font-size: 11px;
    color: rgba(255,255,255,.2);
    font-weight: 300;
    white-space: nowrap;
}

.ll-aurus-logo {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.ll-aurus-a {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 16px;
    color: #E8792A;
    letter-spacing: .06em;
}

.ll-aurus-e {
    font-size: 8px;
    color: rgba(255,255,255,.2);
    letter-spacing: .2em;
    text-transform: uppercase;
    margin-top: 1px;
}

.login-right {
    background: var(--paper);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 48px;
}

.lr-card {
    width: 100%;
    max-width: 380px;
    background: var(--white);
    border: 1px solid var(--paper-2);
    border-radius: 14px;
    padding: 44px 40px;
}

.lr-logo {
    display: flex;
    align-items: center;
    gap: 2px;
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 24px;
    margin-bottom: 6px;
}

.lr-solar {
    color: var(--ink);
}

.lr-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--gold);
    margin: 0 2px 2px;
    flex-shrink: 0;
    display: inline-block;
}

.lr-aurus {
    color: var(--gold);
}

.lr-sub {
    font-size: 13px;
    color: var(--ink-3);
    font-weight: 300;
    margin-bottom: 28px;
}

.lr-erro {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    font-size: 13px;
    padding: 10px 14px;
    border-radius: 6px;
    margin-bottom: 18px;
}

.lr-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.lr-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

    .lr-field label {
        font-size: 12px;
        font-weight: 500;
        color: var(--ink-2);
    }

    .lr-field input {
        padding: 12px 14px;
        border: 1px solid var(--paper-2);
        border-radius: 7px;
        font-size: 14px;
        font-family: inherit;
        color: var(--ink);
        background: var(--paper);
        outline: none;
        transition: border .2s, background .2s;
    }

        .lr-field input:focus {
            border-color: var(--gold);
            background: var(--white);
        }

.lr-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--ink);
    color: var(--white);
    border: none;
    border-radius: 7px;
    padding: 14px;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    margin-top: 4px;
    transition: background .2s, color .2s;
}

    .lr-btn:hover:not(:disabled) {
        background: var(--gold);
        color: var(--ink);
    }

    .lr-btn:disabled {
        opacity: .6;
        cursor: not-allowed;
    }

.lr-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .7s linear infinite;
    display: inline-block;
}

.lr-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 24px;
}

    .lr-footer a {
        font-size: 12px;
        color: var(--ink-3);
        text-decoration: none;
        transition: color .2s;
    }

        .lr-footer a:hover {
            color: var(--ink);
        }

.lr-seticom {
    font-size: 11px;
    color: var(--gold);
    letter-spacing: .05em;
    font-weight: 500;
}

/* ERP */
.erp-shell {
    display: flex;
    min-height: 100vh;
    background: #f0efe8;
    font-family: 'DM Sans', sans-serif;
    overflow: visible;
}

.erp-sidebar {
    width: 60px;
    background: var(--ink);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 0;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    z-index: 1;
}

.erp-sidebar-logo {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 13px;
    margin-bottom: 20px;
    text-align: center;
    line-height: 1;
}

.sl-solar {
    color: rgba(255,255,255,.4);
    display: block;
    font-size: 9px;
    letter-spacing: .05em;
}

.sl-aurus {
    color: var(--gold);
    display: block;
}

.erp-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    flex: 1;
}

.erp-nav-item {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: rgba(255,255,255,.3);
    text-decoration: none;
    transition: background .15s, color .15s;
}

    .erp-nav-item:hover {
        background: rgba(255,255,255,.07);
        color: rgba(255,255,255,.7);
    }

    .erp-nav-item.active {
        background: var(--gold);
        color: var(--ink);
    }

.erp-logout:hover {
    color: #ff6b6b !important;
}

.erp-sidebar-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,.06);
}

.erp-seticom-badge {
    margin-top: 8px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,.06);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.erp-seticom-logo {
    width: 34px;
    height: auto;
    opacity: .3;
    filter: brightness(10);
    transition: opacity .2s;
}

.erp-seticom-badge:hover .erp-seticom-logo {
    opacity: .65;
}

.erp-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: visible;
}

.erp-header {
    background: var(--white);
    border-bottom: 1px solid #e8e7e0;
    padding: 14px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1;
}

.erp-page-title {
    font-size: 15px;
    font-weight: 500;
    color: var(--ink);
    margin: 0;
}

.erp-breadcrumb {
    font-size: 11px;
    color: var(--ink-3);
    margin-top: 1px;
}

.erp-user-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.erp-user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--ink);
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.erp-user-name {
    font-size: 13px;
    color: var(--ink-2);
}

.erp-content {
    padding: 28px;
    flex: 1;
    overflow: visible;
}

.dash-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.dash-card {
    background: var(--white);
    border: 1px solid #e8e7e0;
    border-radius: 12px;
    padding: 20px 22px;
}

.dash-card-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

    .dash-card-icon.gold {
        background: rgba(201,168,76,.12);
        color: var(--gold);
    }

    .dash-card-icon.green {
        background: rgba(45,122,58,.1);
        color: var(--green);
    }

    .dash-card-icon.blue {
        background: rgba(24,95,165,.1);
        color: var(--blue);
    }

    .dash-card-icon.gray {
        background: rgba(58,58,54,.07);
        color: var(--ink-2);
    }

.dash-card-val {
    font-size: 22px;
    font-weight: 600;
    color: var(--ink);
    line-height: 1;
    margin-bottom: 4px;
}

    .dash-card-val.green {
        color: var(--green);
    }

.dash-card-lbl {
    font-size: 11px;
    color: var(--ink-3);
}

.dash-table-wrap {
    background: var(--white);
    border: 1px solid #e8e7e0;
    border-radius: 12px;
    overflow: hidden;
}

.dash-table-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 22px;
    border-bottom: 1px solid #f0efe8;
}

.dash-table-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
}

.dash-table-link {
    font-size: 12px;
    color: var(--gold);
    text-decoration: none;
    font-weight: 500;
}

.dash-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

    .dash-table th {
        text-align: left;
        padding: 10px 22px;
        font-size: 11px;
        font-weight: 500;
        color: var(--ink-3);
        letter-spacing: .06em;
        text-transform: uppercase;
        background: #f7f6f1;
        border-bottom: 1px solid #f0efe8;
    }

    .dash-table td {
        padding: 13px 22px;
        color: var(--ink-2);
        border-bottom: 1px solid #f7f6f1;
    }

    .dash-table tr:last-child td {
        border-bottom: none;
    }

.badge-ok {
    background: #e8f5e9;
    color: var(--green);
    border-radius: 4px;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 500;
}

.badge-warn {
    background: #fff8e1;
    color: #b07800;
    border-radius: 4px;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 500;
}

@media (max-width: 1000px) {
    .dif-grid {
        grid-template-columns: 1fr 1fr;
    }

    .dash-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 800px) {
    #nav-bar {
        padding: 18px 24px;
    }

        #nav-bar.scrolled {
            padding: 14px 24px;
        }

    .hero {
        grid-template-columns: 1fr;
    }

    .hero-left {
        padding: 120px 28px 56px;
    }

    .hero-right {
        height: 320px;
    }

    .login-page {
        grid-template-columns: 1fr;
    }

    .login-left {
        display: none;
    }

    .steps {
        flex-direction: column;
    }

    .step-arrow {
        transform: rotate(90deg);
        margin: 0 auto;
    }

    .sobre-grid {
        grid-template-columns: 1fr;
    }

    .sobre-divider {
        width: 100%;
        height: 1px;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .section-inner {
        padding: 0 28px;
    }
}

@media (max-width: 600px) {
    .dif-grid {
        grid-template-columns: 1fr;
    }

    .dash-grid {
        grid-template-columns: 1fr;
    }

    .section-como, .section-dif, .section-sobre {
        padding: 64px 0;
    }

    .erp-content {
        padding: 16px;
    }

    .nav-sub-par {
        display: none;
    }
}

/* ═══════════════════════════════════════
   PÁGINAS ERP — PADRÃO GERAL
═══════════════════════════════════════ */
.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 24px;
    gap: 16px;
}

.page-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--ink);
    margin: 0 0 4px;
}

.page-sub {
    font-size: 13px;
    color: var(--ink-3);
    font-weight: 300;
    margin: 0;
}

.btn-add {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--ink);
    color: var(--white);
    border: none;
    border-radius: 7px;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: background .2s;
    white-space: nowrap;
}

    .btn-add:hover {
        background: var(--gold);
        color: var(--ink);
    }

.btn-add-sm {
    background: none;
    border: 1px solid var(--paper-2);
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 13px;
    color: var(--ink-2);
    cursor: pointer;
    font-family: inherit;
    transition: border-color .2s;
}

    .btn-add-sm:hover {
        border-color: var(--gold);
        color: var(--gold);
    }

.list-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    gap: 12px;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    border: 1px solid var(--paper-2);
    border-radius: 8px;
    padding: 8px 14px;
    flex: 1;
    max-width: 360px;
    transition: border-color .2s;
}

    .search-box:focus-within {
        border-color: var(--gold);
    }

    .search-box svg {
        color: var(--ink-3);
        flex-shrink: 0;
    }

    .search-box input {
        border: none;
        outline: none;
        font-size: 13px;
        font-family: inherit;
        color: var(--ink);
        background: transparent;
        width: 100%;
    }

.list-count {
    font-size: 12px;
    color: var(--ink-3);
    white-space: nowrap;
}

.loading-state {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 48px;
    justify-content: center;
    color: var(--ink-3);
    font-size: 14px;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 64px 24px;
    color: var(--ink-3);
    text-align: center;
}

    .empty-state p {
        font-size: 14px;
        margin: 0;
    }

.data-table-wrap {
    background: var(--white);
    border: 1px solid #e8e7e0;
    border-radius: 12px;
    overflow: hidden;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

    .data-table th {
        text-align: left;
        padding: 11px 20px;
        font-size: 11px;
        font-weight: 500;
        color: var(--ink-3);
        letter-spacing: .06em;
        text-transform: uppercase;
        background: #f7f6f1;
        border-bottom: 1px solid #f0efe8;
    }

    .data-table td {
        padding: 13px 20px;
        color: var(--ink-2);
        border-bottom: 1px solid #f7f6f1;
        vertical-align: middle;
    }

    .data-table tr:last-child td {
        border-bottom: none;
    }

    .data-table tr:hover td {
        background: #fafaf7;
    }

.td-primary {
    font-weight: 500;
    color: var(--ink) !important;
}

.td-muted {
    color: var(--ink-3) !important;
    font-size: 12px;
}

.code-pill {
    background: var(--paper);
    border: 1px solid var(--paper-2);
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 500;
    color: var(--ink-2);
    font-family: monospace;
}

.badge-off {
    background: #f1efe8;
    color: var(--ink-3);
    border-radius: 4px;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 500;
}

.row-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-icon {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    color: var(--ink-3);
    transition: background .15s, color .15s;
}

    .btn-icon:hover {
        background: var(--paper);
        color: var(--ink);
    }

.btn-icon-danger:hover {
    background: #fef2f2;
    color: #dc2626;
}

/* MODAIS */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(14, 14, 12, 0.55); /* Escurece o fundo da página */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 16px;
    backdrop-filter: blur(4px); /* Opcional: dá um charme borrando o fundo */
}

.modal-lg {
    background: var(--white); /* FIX: Adiciona cor ao fundo do modal */
    width: 100%;
    max-width: 600px;
    max-height: calc(100vh - 32px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border-radius: 14px; /* Mantém o padrão do seu lr-card */
    border: 1px solid var(--paper-2);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--paper-2);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-body {
    padding: 24px; /* Adicionado padding para o conteúdo não colar na borda */
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    background: var(--white); /* Garante que o corpo também seja branco */
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--paper-2);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background: var(--paper); /* Um tom levemente diferente para o rodapé */
}

/* Tipos de contato — ajuste de grid */
.tipos-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.tipo-check {
    padding: 10px 12px;
}

.tipo-desc {
    font-size: 10px;
    line-height: 1.3;
}

/* Form grid — evitar overflow horizontal */
.form-grid,
.form-grid-3 {
    overflow: hidden;
}

.form-field input,
.form-field textarea,
.form-field select {
    width: 100%;
    min-width: 0;
}
/* FORMULÁRIOS */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-field-wide {
    grid-column: span 2;
}

.form-field label {
    font-size: 12px;
    font-weight: 500;
    color: var(--ink-2);
}

.form-field input, .form-field textarea, .form-field select {
    padding: 10px 12px;
    border: 1px solid var(--paper-2);
    border-radius: 7px;
    font-size: 13px;
    font-family: inherit;
    color: var(--ink);
    background: var(--paper);
    outline: none;
    transition: border .2s, background .2s;
    resize: vertical;
}

    .form-field input:focus, .form-field textarea:focus, .form-field select:focus {
        border-color: var(--gold);
        background: var(--white);
    }

.required {
    color: #dc2626;
}

.form-erro {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    font-size: 13px;
    padding: 10px 14px;
    border-radius: 6px;
    margin-bottom: 16px;
}

.toggle-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
}

    .toggle-row input[type="checkbox"] {
        width: 16px;
        height: 16px;
        accent-color: var(--gold);
        cursor: pointer;
    }

.toggle-label {
    font-size: 13px;
    color: var(--ink-2);
    cursor: pointer;
}

.btn-cancel {
    padding: 10px 20px;
    border: 1px solid var(--paper-2);
    border-radius: 7px;
    background: transparent;
    font-size: 13px;
    font-family: inherit;
    color: var(--ink-2);
    cursor: pointer;
    transition: border-color .2s;
}

    .btn-cancel:hover {
        border-color: var(--ink-3);
    }

.btn-save {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border: none;
    border-radius: 7px;
    background: var(--ink);
    color: var(--white);
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: background .2s;
}

    .btn-save:hover:not(:disabled) {
        background: var(--gold);
        color: var(--ink);
    }

    .btn-save:disabled {
        opacity: .6;
        cursor: not-allowed;
    }

.btn-danger {
    padding: 10px 20px;
    border: none;
    border-radius: 7px;
    background: #dc2626;
    color: var(--white);
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: background .2s;
}

    .btn-danger:hover {
        background: #b91c1c;
    }

.confirm-msg {
    font-size: 14px;
    color: var(--ink);
    margin: 0 0 8px;
}

.confirm-sub {
    font-size: 12px;
    color: var(--ink-3);
    margin: 0;
    line-height: 1.5;
}

/* Spinners */
.spinner-md {
    width: 20px;
    height: 20px;
    border: 2px solid var(--paper-2);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin .7s linear infinite;
}

.spinner-sm {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .7s linear infinite;
    display: inline-block;
}

/* ═══════════════════════════════════════
   SIDEBAR EXPANSÍVEL
═══════════════════════════════════════ */
.erp-sidebar {
    width: 60px;
    transition: width .25s cubic-bezier(.4,0,.2,1);
    overflow: hidden;
}

    .erp-sidebar.expanded {
        width: 220px;
    }

.erp-nav-item {
    width: 100%;
    justify-content: flex-start;
    padding: 0 11px;
    gap: 10px;
    border: none;
    background: transparent;
    cursor: pointer;
}

.nav-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-label {
    font-size: 13px;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
}

.sl-full {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 16px;
    color: rgba(255,255,255,.8);
    white-space: nowrap;
}

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

.nav-sep {
    height: 1px;
    background: rgba(255,255,255,.06);
    margin: 8px 12px;
}

/* Submenu configurações */
.erp-nav-group {
    width: 100%;
}

.nav-group-toggle {
    display: flex !important;
    width: 100%;
}

.nav-chevron {
    margin-left: auto;
    color: rgba(255,255,255,.3);
    transition: transform .2s;
    flex-shrink: 0;
}

    .nav-chevron.open {
        transform: rotate(180deg);
    }

.nav-submenu {
    display: flex;
    flex-direction: column;
    padding-left: 8px;
}

.nav-sub-item {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 34px;
    padding: 0 11px;
    border-radius: 7px;
    color: rgba(255,255,255,.35);
    text-decoration: none;
    font-size: 12px;
    transition: background .15s, color .15s;
    white-space: nowrap;
}

    .nav-sub-item:hover {
        background: rgba(255,255,255,.06);
        color: rgba(255,255,255,.7);
    }

    .nav-sub-item.active {
        color: var(--gold);
    }

.nav-sub-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255,255,255,.25);
    flex-shrink: 0;
}

.nav-sub-item.active .nav-sub-dot {
    background: var(--gold);
}

/* ─── CONTATOS ─── */
.modal-lg {
    max-width: 600px;
}

.form-grid-3 {
    grid-template-columns: 1fr 1fr 1fr;
}

.form-section-label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ink-3);
    margin: 20px 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--paper-2);
}

.busca-doc-wrap {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.busca-doc-hint {
    font-size: 13px;
    color: var(--ink-3);
    font-weight: 300;
}

.busca-doc-row {
    display: flex;
    align-items: flex-end;
    gap: 12px;
}

.btn-buscar {
    padding: 10px 20px;
    background: var(--ink);
    color: var(--white);
    border: none;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background .2s;
}

    .btn-buscar:hover:not(:disabled) {
        background: var(--gold);
        color: var(--ink);
    }

    .btn-buscar:disabled {
        opacity: .6;
        cursor: not-allowed;
    }

.contato-encontrado {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #e8f5e9;
    border: 1px solid #a5d6a7;
    border-radius: 8px;
    padding: 14px 16px;
}

.encontrado-icon {
    flex-shrink: 0;
}

.encontrado-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.encontrado-nome {
    font-size: 14px;
    font-weight: 500;
    color: #1b5e20;
}

.encontrado-doc {
    font-size: 12px;
    color: #388e3c;
}

.encontrado-acoes {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.btn-usar {
    padding: 7px 14px;
    background: #2d7a3a;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: background .2s;
}

    .btn-usar:hover {
        background: #1b5e20;
    }

.btn-novo-mesmo {
    padding: 7px 14px;
    background: transparent;
    color: #2d7a3a;
    border: 1px solid #2d7a3a;
    border-radius: 6px;
    font-size: 12px;
    font-family: inherit;
    cursor: pointer;
    transition: all .2s;
}

    .btn-novo-mesmo:hover {
        background: #e8f5e9;
    }

.nao-encontrado {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 13px;
    color: #b07800;
}

.btn-link {
    background: none;
    border: none;
    color: var(--gold);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
    text-decoration: underline;
}

.badge-uc {
    background: #e3f2fd;
    color: #1565c0;
    border-radius: 4px;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 500;
}

/* Tipos de contato */
.tipos-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 8px;
}

.tipo-check {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 10px 12px;
    border: 1px solid var(--paper-2);
    border-radius: 8px;
    cursor: pointer;
    transition: border-color .2s, background .2s;
}

    .tipo-check:hover {
        border-color: var(--gold);
    }

    .tipo-check.selected {
        border-color: var(--gold);
        background: rgba(201,168,76,0.06);
    }

    .tipo-check input[type="checkbox"] {
        display: none;
    }

.tipo-nome {
    font-size: 13px;
    font-weight: 500;
    color: var(--ink);
}

.tipo-desc {
    font-size: 10px;
    color: var(--ink-3);
    font-weight: 300;
}

.badge-tipo {
    background: #ede9fe;
    color: #5b21b6;
    border-radius: 4px;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 500;
}

/* ─── USINAS GRID ─── */
.usinas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.usina-card {
    background: var(--white);
    border: 1px solid #e8e7e0;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: box-shadow .2s;
}

    .usina-card:hover {
        box-shadow: 0 4px 16px rgba(0,0,0,0.07);
    }

    .usina-card.inativa {
        opacity: .6;
    }

.usina-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.usina-card-icon {
    width: 36px;
    height: 36px;
    background: rgba(201,168,76,.1);
    color: var(--gold);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.usina-card-nome {
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
}

.usina-card-apelido {
    font-size: 12px;
    color: var(--ink-3);
    margin-top: -6px;
}

.usina-card-stats {
    display: flex;
    gap: 20px;
    padding: 12px 0;
    border-top: 1px solid var(--paper-2);
    border-bottom: 1px solid var(--paper-2);
}

.usina-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.usina-stat-val {
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
}

.usina-stat-lbl {
    font-size: 11px;
    color: var(--ink-3);
}

.usina-card-uc {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--ink-3);
}

.usina-card-actions {
    display: flex;
    gap: 4px;
    margin-top: 4px;
}

@media (max-width: 900px) {
    .rateio-layout {
        grid-template-columns: 1fr;
    }
}
/* Fix rateio sidebar */
.rateio-sidebar {
    display: flex;
    flex-direction: column;
}

/* ─── RATEIO FIX ─── */
.rateio-layout {
    display: grid !important;
    grid-template-columns: 240px 1fr !important;
    gap: 20px;
    align-items: start;
}

.rateio-sidebar {
    background: var(--white);
    border: 1px solid #e8e7e0;
    border-radius: 12px;
    overflow: hidden;
    display: flex !important;
    flex-direction: column !important;
    width: 240px;
}

.rateio-usina-item {
    width: 100%;
    text-align: left;
    padding: 12px 16px;
    border: none;
    background: transparent;
    border-bottom: 1px solid var(--paper-2);
    cursor: pointer;
    transition: background .15s;
    font-family: inherit;
}

    .rateio-usina-item:last-child {
        border-bottom: none;
    }

    .rateio-usina-item:hover {
        background: var(--paper);
    }

    .rateio-usina-item.selected {
        background: rgba(201,168,76,.08);
        border-left: 3px solid var(--gold);
    }

.rateio-usina-nome {
    font-size: 13px;
    font-weight: 500;
    color: var(--ink);
}

.rateio-usina-info {
    font-size: 11px;
    color: var(--ink-3);
    margin-top: 2px;
}

.rateio-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.rateio-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.rateio-usina-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    margin: 0;
}

.rateio-usina-sub {
    font-size: 12px;
    color: var(--ink-3);
    margin: 2px 0 0;
}

.rateio-header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-shrink: 0;
}

.rateio-soma-bar {
    background: var(--white);
    border: 1px solid #e8e7e0;
    border-radius: 10px;
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rateio-soma-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--ink-2);
}

.rateio-soma-val {
    font-weight: 600;
    font-size: 15px;
}

    .rateio-soma-val.ok {
        color: var(--green);
    }

    .rateio-soma-val.erro {
        color: #dc2626;
    }

.rateio-soma-aviso {
    font-size: 12px;
    color: #b07800;
}

.rateio-soma-ok {
    font-size: 12px;
    color: var(--green);
}

.rateio-progress {
    height: 6px;
    background: var(--paper-2);
    border-radius: 3px;
    overflow: hidden;
}

.rateio-progress-fill {
    height: 100%;
    background: var(--gold);
    border-radius: 3px;
    transition: width .3s;
}

    .rateio-progress-fill.full {
        background: var(--green);
    }

    .rateio-progress-fill.over {
        background: #dc2626;
    }

.pct-input-wrap {
    display: flex;
    align-items: center;
    gap: 4px;
}

.pct-input {
    width: 90px;
    padding: 6px 8px;
    border: 1px solid var(--paper-2);
    border-radius: 6px;
    font-size: 13px;
    font-family: inherit;
    color: var(--ink);
    background: var(--paper);
    outline: none;
    text-align: right;
    transition: border .2s;
}

    .pct-input:focus {
        border-color: var(--gold);
        background: var(--white);
    }

.pct-symbol {
    font-size: 13px;
    color: var(--ink-3);
}

.btn-icon-text {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    border: 1px solid var(--paper-2);
    border-radius: 7px;
    background: var(--white);
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    color: var(--ink-2);
    transition: border-color .2s, color .2s;
}

    .btn-icon-text:hover {
        border-color: var(--gold);
        color: var(--gold);
    }

.rateio-sidebar-label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ink-3);
    padding: 14px 16px 10px;
    border-bottom: 1px solid var(--paper-2);
}

/* ─── GERAÇÃO ─── */
.filtro-select {
    padding: 8px 12px;
    border: 1px solid var(--paper-2);
    border-radius: 7px;
    font-size: 13px;
    font-family: inherit;
    color: var(--ink);
    background: var(--white);
    outline: none;
    cursor: pointer;
}

    .filtro-select:focus {
        border-color: var(--gold);
    }

.geracao-kwh {
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
}

.geracao-unit {
    font-size: 12px;
    color: var(--ink-3);
    margin-left: 3px;
}

.badge-mes {
    background: #ede9fe;
    color: #5b21b6;
    border-radius: 4px;
    padding: 3px 8px;
    font-size: 12px;
    font-weight: 500;
}

.form-hint {
    display: block;
    font-size: 11px;
    color: var(--ink-3);
    margin-top: 4px;
}

/* ─── BALANÇO ─── */
.balanco-filtros {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 20px;
}

.balanco-resumo {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.balanco-resumo-card {
    background: var(--white);
    border: 1px solid #e8e7e0;
    border-radius: 10px;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

    .balanco-resumo-card.destaque {
        border-color: var(--gold);
    }

.balanco-resumo-label {
    font-size: 11px;
    color: var(--ink-3);
    text-transform: uppercase;
    letter-spacing: .06em;
}

.balanco-resumo-val {
    font-size: 20px;
    font-weight: 600;
    color: var(--ink);
}

.balanco-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
}

.balanco-card {
    background: var(--white);
    border: 1px solid #e8e7e0;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.balanco-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.balanco-card-nome {
    font-size: 13px;
    font-weight: 500;
    color: var(--ink);
    line-height: 1.3;
}

.balanco-card-stats {
    display: flex;
    gap: 12px;
}

.balanco-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.balanco-stat-lbl {
    font-size: 10px;
    color: var(--ink-3);
    text-transform: uppercase;
    letter-spacing: .05em;
}

.balanco-stat-val {
    font-size: 13px;
    font-weight: 500;
    color: var(--ink);
}

.txt-danger {
    color: #dc2626 !important;
}

.txt-ok {
    color: var(--green) !important;
}

.balanco-bar-wrap {
    padding: 2px 0;
}

.balanco-bar {
    height: 5px;
    background: var(--paper-2);
    border-radius: 3px;
    overflow: hidden;
}

.balanco-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width .4s;
}

    .balanco-bar-fill.ok {
        background: var(--green);
    }

    .balanco-bar-fill.warn {
        background: var(--gold);
    }

    .balanco-bar-fill.crit {
        background: #dc2626;
    }

.balanco-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 8px;
    border-top: 1px solid var(--paper-2);
}

.balanco-valor-label {
    font-size: 11px;
    color: var(--ink-3);
}

.balanco-valor {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
}

.badge-warn {
    background: #fff8e1;
    color: #b07800;
    border-radius: 4px;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 500;
}

.badge-crit {
    background: #fef2f2;
    color: #dc2626;
    border-radius: 4px;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 500;
}

/* Toggle cards/lista */
.view-toggle {
    display: flex;
    border: 1px solid var(--paper-2);
    border-radius: 7px;
    overflow: hidden;
    margin-left: auto;
}

.view-btn {
    padding: 7px 10px;
    border: none;
    background: var(--white);
    color: var(--ink-3);
    cursor: pointer;
    transition: background .15s, color .15s;
    display: flex;
    align-items: center;
}

    .view-btn:hover {
        background: var(--paper);
        color: var(--ink);
    }

    .view-btn.active {
        background: var(--ink);
        color: var(--white);
    }

/* ─── DASHBOARD GRÁFICO ─── */
.dash-chart-wrap {
    background: var(--white);
    border: 1px solid #e8e7e0;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 20px;
}

.dash-chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.dash-chart-total {
    font-size: 12px;
    color: var(--ink-3);
}

.dash-chart {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    height: 140px;
    padding-bottom: 4px;
}

.dash-bar-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 1;
    height: 100%;
    justify-content: flex-end;
}

.dash-bar-val {
    font-size: 11px;
    font-weight: 500;
    color: var(--ink-2);
    flex-shrink: 0;
}

.dash-bar-wrap {
    width: 100%;
    flex: 1;
    display: flex;
    align-items: flex-end;
    background: var(--paper);
    border-radius: 6px;
    overflow: hidden;
}

.dash-bar-fill {
    width: 100%;
    background: var(--gold);
    border-radius: 6px 6px 0 0;
    transition: height .4s ease;
    min-height: 4px;
}

.dash-bar-label {
    font-size: 11px;
    color: var(--ink-3);
    font-weight: 500;
    flex-shrink: 0;
}

/* Dashboard filtros */
.dash-filtros {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 20px;
}

/* ─── LANÇAMENTO DE CONTAS ─── */
.badge-bandeira {
    border-radius: 4px;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 500;
}

    .badge-bandeira.verde {
        background: #e8f5e9;
        color: #2d7a3a;
    }

    .badge-bandeira.amarela {
        background: #fff8e1;
        color: #b07800;
    }

    .badge-bandeira.vermelha1,
    .badge-bandeira.vermelha2 {
        background: #fef2f2;
        color: #dc2626;
    }

.conta-preview {
    background: var(--paper);
    border: 1px solid var(--paper-2);
    border-radius: 8px;
    padding: 14px 16px;
    margin-top: 8px;
}

.conta-preview-title {
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--ink-3);
    margin-bottom: 10px;
}

.conta-preview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 16px;
    font-size: 13px;
    color: var(--ink-2);
}

.preview-destaque {
    font-weight: 600;
    color: var(--ink);
}