* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    background: #f4f7f6;
    color: #16211d;
}


/* ==========================================================
   LAYOUT
   ========================================================== */

.app-layout {
    min-height: 100vh;
    display: flex;
}


.sidebar {
    position: fixed;

    width: 250px;
    height: 100vh;

    display: flex;
    flex-direction: column;

    background:
        linear-gradient(
            180deg,
            #08251e 0%,
            #0b3027 100%
        );

    color: white;

    padding: 24px 18px;
}


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

    padding:
        0
        8px
        28px;
}


.brand-icon {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    font-size: 22px;
    font-weight: 800;

    color: #0d3027;
    background: #74d7b0;
}


.brand-text {
    display: flex;
    flex-direction: column;
}


.brand-text strong {
    font-size: 17px;
    letter-spacing: 2px;
}


.brand-text span {
    margin-top: 2px;

    font-size: 10px;
    letter-spacing: 4px;

    color: #8fb0a5;
}


.sidebar-nav {
    flex: 1;
    overflow-y: auto;
}


.nav-section {
    margin:
        20px
        12px
        8px;

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 1.5px;

    color: #6f998b;
}


.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;

    padding:
        11px
        12px;

    margin-bottom: 3px;

    border-radius: 8px;

    color: #c8d9d3;
    text-decoration: none;

    font-size: 14px;

    transition: 0.2s;
}


.nav-link:hover {
    background: rgba(255, 255, 255, 0.07);
    color: white;
}


.nav-link.active {
    background: #123e33;
    color: white;
}


.nav-icon {
    width: 20px;

    text-align: center;
    color: #76d7b1;
}


.sidebar-footer {
    border-top:
        1px solid
        rgba(255, 255, 255, 0.08);

    padding-top: 18px;
}


.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}


.user-avatar {
    width: 36px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #174b3e;

    font-weight: 700;
}


.user-info strong {
    display: block;
    max-width: 140px;

    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;

    font-size: 13px;
}


.user-info span {
    display: block;

    margin-top: 2px;

    font-size: 11px;

    color: #82a89b;
}


.logout-button {
    width: 100%;

    margin-top: 14px;
    padding: 8px;

    border:
        1px solid
        rgba(255, 255, 255, 0.12);

    border-radius: 7px;

    background: transparent;
    color: #b6cbc4;

    cursor: pointer;
}


.main-content {
    width: calc(100% - 250px);
    min-height: 100vh;

    margin-left: 250px;
}


.topbar {
    height: 92px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding:
        0
        36px;

    border-bottom: 1px solid #e0e9e5;

    background: white;
}


.topbar h1 {
    margin: 0;

    font-size: 23px;
    font-weight: 700;
}


.topbar p {
    margin:
        5px
        0
        0;

    color: #73827d;

    font-size: 13px;
}


.page-content {
    padding: 30px 36px;
}


.primary-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding:
        11px
        18px;

    border-radius: 8px;

    background: #0d6b50;
    color: white;

    font-size: 13px;
    font-weight: 600;

    text-decoration: none;
}


/* ==========================================================
   DASHBOARD
   ========================================================== */

.metrics-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 18px;

    margin-bottom: 24px;
}


.metric-card {
    min-height: 135px;

    display: flex;
    flex-direction: column;

    padding: 22px;

    border: 1px solid #e2ebe7;
    border-radius: 12px;

    background: white;
}


.metric-card-highlight {
    border-color: #b9dfd0;
    background:
        linear-gradient(
            135deg,
            #ffffff,
            #f0faf6
        );
}


.metric-label {
    color: #71807b;

    font-size: 12px;
    font-weight: 600;

    text-transform: uppercase;
    letter-spacing: 0.4px;
}


.metric-value {
    margin-top: 12px;

    font-size: 30px;
    font-weight: 700;
}


.metric-helper {
    margin-top: auto;

    color: #95a29e;

    font-size: 12px;
}


.dashboard-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 2fr)
        minmax(280px, 0.7fr);

    gap: 22px;
}


.content-card {
    border: 1px solid #e1e9e6;
    border-radius: 12px;

    background: white;

    overflow: hidden;
}


.card-header {
    min-height: 76px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding:
        18px
        22px;

    border-bottom: 1px solid #edf1ef;
}


.card-header h2 {
    margin: 0;

    font-size: 16px;
}


.card-header p {
    margin:
        5px
        0
        0;

    color: #8b9894;

    font-size: 12px;
}


.card-header a {
    color: #0c7758;

    font-size: 12px;
    font-weight: 600;

    text-decoration: none;
}


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


.data-table {
    width: 100%;

    border-collapse: collapse;
}


.data-table th,
.data-table td {
    padding:
        15px
        20px;

    border-bottom: 1px solid #edf1ef;

    text-align: left;
}


.data-table th {
    color: #788681;

    background: #fafcfb;

    font-size: 11px;
    font-weight: 700;

    text-transform: uppercase;
}


.data-table td {
    font-size: 13px;
}


.status-badge {
    display: inline-block;

    padding:
        5px
        9px;

    border-radius: 20px;

    background: #eef3f1;

    color: #5f706a;

    font-size: 11px;
    font-weight: 600;
}


.status-aprovada {
    background: #e3f5ed;
    color: #14714f;
}


.status-negociacao {
    background: #fff5d8;
    color: #876a13;
}


.status-perdida,
.status-cancelada {
    background: #fdeaea;
    color: #a53d3d;
}


.empty-state {
    padding: 35px !important;

    color: #909c98;

    text-align: center !important;
}


.finance-card {
    min-height: 260px;
}


.finance-value {
    padding:
        30px
        24px;

    display: flex;
    align-items: baseline;
    gap: 6px;
}


.finance-value span {
    color: #77857f;

    font-size: 15px;
}


.finance-value strong {
    font-size: 30px;
}


.finance-detail {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin:
        0
        24px;

    padding-top: 18px;

    border-top: 1px solid #edf1ef;

    color: #7d8985;

    font-size: 13px;
}


/* ==========================================================
   LOGIN
   ========================================================== */

.login-body {
    min-height: 100vh;

    background:
        linear-gradient(
            135deg,
            #071f19,
            #0a392c
        );
}


.login-page {
    min-height: 100vh;

    display: grid;

    grid-template-columns:
        1fr
        430px;

    align-items: center;

    gap: 80px;

    max-width: 1100px;

    margin: 0 auto;

    padding: 50px;
}


.login-brand {
    color: white;
}


.login-logo {
    width: 60px;
    height: 60px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 24px;

    border-radius: 16px;

    background: #74d7b0;
    color: #0c3026;

    font-size: 30px;
    font-weight: 800;
}


.login-brand h1 {
    margin: 0;

    font-size: 40px;
    letter-spacing: 5px;
}


.login-brand span {
    display: block;

    margin-top: 4px;

    color: #75c7a8;

    font-size: 13px;
    letter-spacing: 8px;
}


.login-brand p {
    max-width: 430px;

    margin-top: 30px;

    color: #a9c2b9;

    font-size: 17px;
    line-height: 1.6;
}


.login-card {
    padding: 38px;

    border-radius: 16px;

    background: white;

    box-shadow:
        0
        25px
        80px
        rgba(0, 0, 0, 0.25);
}


.login-card-header {
    margin-bottom: 28px;
}


.login-card-header h2 {
    margin: 0;

    font-size: 24px;
}


.login-card-header p {
    margin:
        8px
        0
        0;

    color: #7f8b87;

    font-size: 13px;
}


.form-group {
    margin-bottom: 18px;
}


.form-group label {
    display: block;

    margin-bottom: 7px;

    color: #47534f;

    font-size: 12px;
    font-weight: 600;
}


.form-group input {
    width: 100%;
    height: 44px;

    padding:
        0
        12px;

    border: 1px solid #d7e1dd;
    border-radius: 8px;

    outline: none;

    font-size: 14px;
}


.form-group input:focus {
    border-color: #168260;

    box-shadow:
        0
        0
        0
        3px
        rgba(22, 130, 96, 0.10);
}


.login-button {
    width: 100%;
    height: 45px;

    margin-top: 4px;

    border: 0;
    border-radius: 8px;

    background: #0c7657;
    color: white;

    font-size: 14px;
    font-weight: 700;

    cursor: pointer;
}


.alert-error {
    margin-bottom: 18px;
    padding: 11px 12px;

    border-radius: 7px;

    background: #fff0f0;
    color: #a54444;

    font-size: 12px;
}


/* ==========================================================
   RESPONSIVO
   ========================================================== */

@media (max-width: 1050px) {

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

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

}


@media (max-width: 800px) {

    .sidebar {
        display: none;
    }

    .main-content {
        width: 100%;
        margin-left: 0;
    }

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

        padding: 25px;
    }

    .login-brand {
        display: none;
    }

}


@media (max-width: 600px) {

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

    .topbar {
        padding:
            0
            20px;
    }

    .page-content {
        padding: 20px;
    }

}


/* ==========================================================
   ECOBLUE — IDENTIDADE VISUAL OFICIAL
   AZUL + AMARELO
   ========================================================== */

:root {
    --ecoblue-navy: #062C57;
    --ecoblue-dark: #041E3A;
    --ecoblue-blue: #0878C9;
    --ecoblue-blue-light: #1596E8;

    --ecoblue-yellow: #F9C623;
    --ecoblue-yellow-dark: #E7AF00;

    --ecoblue-bg: #F4F7FA;
    --ecoblue-border: #DFE7EE;
    --ecoblue-text: #10283D;
    --ecoblue-muted: #73879A;
}


/* ==========================================================
   FUNDO GERAL
   ========================================================== */

body {
    background: var(--ecoblue-bg);
    color: var(--ecoblue-text);
}


/* ==========================================================
   MENU LATERAL
   ========================================================== */

.sidebar {
    background:
        linear-gradient(
            180deg,
            var(--ecoblue-dark) 0%,
            var(--ecoblue-navy) 100%
        );
}


.brand-icon {
    background: var(--ecoblue-yellow);
    color: var(--ecoblue-dark);
}


.brand-text span {
    color: #8DB6D5;
}


.nav-section {
    color: #6FA4CB;
}


.nav-link {
    color: #D0E0EC;
}


.nav-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: white;
}


.nav-link.active {
    background: rgba(16, 139, 218, 0.24);
    color: white;

    box-shadow:
        inset 3px 0 0
        var(--ecoblue-yellow);
}


.nav-icon {
    color: var(--ecoblue-yellow);
}


.user-avatar {
    background: #0A558B;
    color: white;
}


.user-info span {
    color: #8EB3CF;
}


.logout-button {
    color: #D3E2ED;
}


/* ==========================================================
   TOPBAR
   ========================================================== */

.topbar {
    border-bottom: 1px solid var(--ecoblue-border);
}


.topbar h1 {
    color: var(--ecoblue-text);
}


.topbar p {
    color: var(--ecoblue-muted);
}


/* ==========================================================
   BOTÕES
   ========================================================== */

.primary-button {
    background:
        linear-gradient(
            135deg,
            var(--ecoblue-blue),
            #096DB2
        );

    color: white;

    box-shadow:
        0 4px 12px
        rgba(8, 120, 201, 0.18);
}


.primary-button:hover {
    background: #086BAC;
}


/* ==========================================================
   CARDS
   ========================================================== */

.metric-card {
    border-color: var(--ecoblue-border);
}


.metric-card-highlight {
    border-color: #B7D8EE;

    background:
        linear-gradient(
            135deg,
            #FFFFFF,
            #F1F8FD
        );
}


.metric-label {
    color: #697F90;
}


.metric-value {
    color: var(--ecoblue-text);
}


.metric-helper {
    color: #91A2AF;
}


.content-card {
    border-color: var(--ecoblue-border);
}


.card-header a {
    color: var(--ecoblue-blue);
}


/* ==========================================================
   TABELAS
   ========================================================== */

.data-table th {
    color: #687F91;
    background: #F8FAFC;
}


.data-table th,
.data-table td {
    border-bottom-color: #E8EEF3;
}


/* ==========================================================
   STATUS
   ========================================================== */

.status-aprovada {
    background: #E8F6EF;
    color: #147451;
}


.status-negociacao {
    background: #FFF6D8;
    color: #8B6B00;
}


.status-enviada {
    background: #E8F3FC;
    color: #116DA8;
}


.status-rascunho {
    background: #EEF2F5;
    color: #657682;
}


/* ==========================================================
   LOGIN ECOBLUE
   ========================================================== */

.login-body {
    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(16, 135, 215, 0.22),
            transparent 36%
        ),
        linear-gradient(
            135deg,
            #031A32,
            #063964
        );
}


.login-logo {
    background: var(--ecoblue-yellow);
    color: var(--ecoblue-dark);
}


.login-brand span {
    color: var(--ecoblue-yellow);
}


.login-brand p {
    color: #B2CDDF;
}


.form-group input:focus {
    border-color: var(--ecoblue-blue);

    box-shadow:
        0
        0
        0
        3px
        rgba(8, 120, 201, 0.12);
}


.login-button {
    background:
        linear-gradient(
            135deg,
            var(--ecoblue-blue),
            #0868AA
        );
}


.login-button:hover {
    background: #0867A6;
}


/* ==========================================================
   SELETOR DE SISTEMAS
   ========================================================== */

.system-switcher {
    position: relative;
    margin-bottom: 10px;
}

.system-switcher-button {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 8px;

    border: 1px solid transparent;
    border-radius: 11px;

    background: transparent;
    color: white;

    cursor: pointer;

    transition: 0.2s ease;
}

.system-switcher-button:hover,
.system-switcher-button.open {
    border-color: rgba(255, 255, 255, 0.09);
    background: rgba(255, 255, 255, 0.05);
}

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

.system-switcher-chevron {
    color: #8fb5d2;
    transition: transform 0.2s ease;
}

.system-switcher-button.open .system-switcher-chevron {
    transform: rotate(180deg);
}

.system-switcher-menu {
    position: absolute;
    z-index: 100;

    top: calc(100% + 8px);
    left: 0;

    width: 100%;

    display: none;

    padding: 8px;

    border: 1px solid #dce6ee;
    border-radius: 12px;

    background: white;

    box-shadow:
        0 18px 45px
        rgba(5, 28, 51, 0.22);
}

.system-switcher-menu.open {
    display: block;
}

.system-menu-title {
    padding: 7px 9px 8px;

    color: #8192a0;

    font-size: 10px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.system-option {
    width: 100%;

    display: flex;
    align-items: center;
    gap: 10px;

    padding: 10px;

    border: 0;
    border-radius: 9px;

    background: transparent;

    color: #17324a;
    text-decoration: none;
    text-align: left;

    cursor: pointer;
}

.system-option:hover {
    background: #f3f7fa;
}

.system-option.active {
    background: #edf6fc;
}

.system-option-disabled {
    opacity: 0.78;
}

.system-option-icon {
    width: 32px;
    height: 32px;

    flex: 0 0 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 8px;

    font-size: 13px;
    font-weight: 800;
}

.ecoblue-system-icon {
    background: var(--ecoblue-yellow);
    color: var(--ecoblue-dark);
}

.goo-system-icon {
    background: #ecf1f4;
    color: #536978;
}

.movix-system-icon {
    background: #e8eef8;
    color: #345b90;
}

.system-option-text {
    min-width: 0;
    flex: 1;
}

.system-option-text strong {
    display: block;

    color: #19334a;

    font-size: 12px;
}

.system-option-text span {
    display: block;

    margin-top: 2px;

    color: #8495a3;

    font-size: 10px;
}

.system-current {
    padding: 4px 6px;

    border-radius: 5px;

    background: #dcebfa;
    color: #0b6fae;

    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.5px;
}


/* ==========================================================
   ÍCONES SVG DO MENU
   ========================================================== */

.nav-icon {
    width: 20px;
    height: 20px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 20px;
}

.nav-icon svg {
    width: 18px;
    height: 18px;

    fill: none;
    stroke: currentColor;

    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nav-link.active .nav-icon {
    color: var(--ecoblue-yellow);
}


/* ==========================================================
   CORREÇÃO — SELETOR DE SISTEMAS
   ========================================================== */

.sidebar {
    overflow: visible !important;
}

.system-switcher {
    position: relative;
    z-index: 1000;
    overflow: visible !important;
}

.system-switcher-button {
    position: relative;
    z-index: 1001;
}

.system-switcher-menu {
    position: absolute !important;

    top: calc(100% + 8px) !important;
    left: 0 !important;

    width: 100% !important;

    z-index: 9999 !important;

    display: none;

    padding: 8px;

    border: 1px solid #dce6ee;
    border-radius: 12px;

    background: #ffffff !important;

    box-shadow:
        0 18px 45px
        rgba(5, 28, 51, 0.35);
}

.system-switcher-menu.open {
    display: block !important;
}

.sidebar-nav {
    position: relative;
    z-index: 1;
}


/* ==========================================================
   CLIENTES
   ========================================================== */

.search-form {
    display: flex;
    gap: 8px;
}

.search-form input {
    width: 240px;
    height: 38px;

    padding: 0 12px;

    border: 1px solid var(--ecoblue-border);
    border-radius: 8px;

    outline: none;
}

.search-form input:focus {
    border-color: var(--ecoblue-blue);
}

.search-form button {
    padding: 0 14px;

    border: 0;
    border-radius: 8px;

    background: #eaf3f9;
    color: var(--ecoblue-blue);

    font-weight: 600;
    cursor: pointer;
}

.table-secondary {
    margin-top: 3px;

    color: #8798a5;
    font-size: 11px;
}

.table-actions {
    text-align: right !important;
}

.table-link {
    color: var(--ecoblue-blue);

    font-size: 12px;
    font-weight: 700;

    text-decoration: none;
}

.form-card {
    max-width: 1050px;
}

.form-card-body {
    padding: 24px;
}

.form-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 20px;
}

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

.form-field-full {
    grid-column: 1 / -1;
}

.form-field label {
    margin-bottom: 7px;

    color: #52697a;

    font-size: 12px;
    font-weight: 700;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;

    padding: 11px 12px;

    border: 1px solid #d8e3eb;
    border-radius: 8px;

    background: white;

    color: var(--ecoblue-text);

    font-family: inherit;
    font-size: 13px;

    outline: none;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: var(--ecoblue-blue);

    box-shadow:
        0 0 0 3px
        rgba(8, 120, 201, 0.09);
}

.field-help {
    margin-top: 5px;

    color: #8b9aa5;
    font-size: 10px;
}

.field-error {
    margin-top: 5px;

    color: #b43f3f;
    font-size: 11px;
}

.form-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;

    padding: 18px 24px;

    border-top: 1px solid #e7edf2;
}

.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 10px 16px;

    border: 1px solid #d5e0e8;
    border-radius: 8px;

    background: white;
    color: #647988;

    font-size: 13px;
    font-weight: 600;

    text-decoration: none;
}

.customer-detail-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 2fr)
        minmax(280px, 0.8fr);

    gap: 22px;
}

.detail-list {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 0;

    padding: 10px 24px 24px;
}

.detail-list div {
    padding: 16px 0;

    border-bottom: 1px solid #edf1f4;
}

.detail-list span,
.summary-list span {
    display: block;

    margin-bottom: 5px;

    color: #83929d;
    font-size: 11px;
}

.detail-list strong,
.summary-list strong {
    color: #18334a;

    font-size: 13px;
}

.summary-list {
    padding: 12px 24px 24px;
}

.summary-list div {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 16px 0;

    border-bottom: 1px solid #edf1f4;
}

@media (max-width: 850px) {

    .form-grid,
    .customer-detail-grid {
        grid-template-columns: 1fr;
    }

    .detail-list {
        grid-template-columns: 1fr;
    }

}


/* ==========================================================
   SIDEBAR — SCROLLBAR
   ========================================================== */

.sidebar-nav {
    scrollbar-width: thin;
    scrollbar-color:
        rgba(255, 255, 255, 0.18)
        transparent;
}

.sidebar-nav::-webkit-scrollbar {
    width: 5px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background:
        rgba(255, 255, 255, 0.18);

    border-radius: 20px;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
    background:
        rgba(255, 255, 255, 0.28);
}


/* ==========================================================
   PROPOSTAS
   ========================================================== */

.proposal-layout {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        320px;

    gap: 22px;

    align-items: start;
}

.proposal-section {
    margin-bottom: 20px;
}

.proposal-section-body {
    padding: 24px;
}

.proposal-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 20px;
}

.proposal-grid-3 {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 20px;
}

.form-control {
    width: 100%;

    padding: 11px 12px;

    border: 1px solid #d8e3eb;
    border-radius: 8px;

    background: white;

    color: var(--ecoblue-text);

    font-family: inherit;
    font-size: 13px;

    outline: none;
}

.form-control:focus {
    border-color: var(--ecoblue-blue);

    box-shadow:
        0 0 0 3px
        rgba(8, 120, 201, 0.09);
}

.proposal-price-field input {
    font-size: 18px;
    font-weight: 700;
}

.proposal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;

    margin-top: 6px;
}

.proposal-summary {
    position: sticky;
    top: 114px;
}

.proposal-summary-body {
    padding: 24px;
}

.summary-metric {
    margin-bottom: 22px;
}

.summary-metric span {
    display: block;

    margin-bottom: 6px;

    color: #7a8e9d;

    font-size: 11px;
    font-weight: 600;
}

.summary-metric strong {
    color: var(--ecoblue-text);

    font-size: 26px;
}

.summary-divider {
    height: 1px;

    margin: 25px 0;

    background: #e5edf2;
}

.summary-note {
    margin: 0;

    color: #8596a3;

    font-size: 11px;
    line-height: 1.6;
}

.proposal-detail-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        320px;

    gap: 22px;

    align-items: start;
}

.proposal-result-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    padding: 24px;
}

.proposal-result-grid > div {
    padding: 10px 20px;

    border-right: 1px solid #e8eef3;
}

.proposal-result-grid > div:last-child {
    border-right: 0;
}

.proposal-result-grid span {
    display: block;

    margin-bottom: 7px;

    color: #7e909e;

    font-size: 11px;
}

.proposal-result-grid strong {
    color: var(--ecoblue-text);

    font-size: 18px;
}

.proposal-detail-section {
    margin-top: 22px;
}

.proposal-financial-card {
    position: sticky;
    top: 114px;
}

.proposal-sale-value {
    padding: 28px 24px;
}

.proposal-sale-value span {
    display: block;

    margin-bottom: 7px;

    color: #7b8e9c;

    font-size: 11px;
}

.proposal-sale-value strong {
    color: var(--ecoblue-blue);

    font-size: 28px;
}

.admin-financial-info {
    margin: 0 24px 24px;

    padding-top: 18px;

    border-top: 1px solid #e8eef3;
}

.admin-financial-info div {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 9px 0;

    font-size: 12px;
}

.admin-financial-info span {
    color: #81919c;
}

.admin-financial-info strong {
    color: #20394c;
}

@media (max-width: 1000px) {

    .proposal-layout,
    .proposal-detail-grid {
        grid-template-columns: 1fr;
    }

    .proposal-summary,
    .proposal-financial-card {
        position: static;
    }

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

}

@media (max-width: 700px) {

    .proposal-grid,
    .proposal-grid-3,
    .proposal-result-grid {
        grid-template-columns: 1fr;
    }

}


/* ==========================================================
   UNIDADES CONSUMIDORAS
   ========================================================== */

.topbar-button-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.customer-uc-card {
    margin-top: 22px;
}


/* ==========================================================
   PROJETOS SOLARES
   ========================================================== */

.project-overview-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        330px;

    gap: 22px;

    align-items: start;
}

.project-summary-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    padding: 24px;
}

.project-summary-grid > div {
    padding: 8px 18px;

    border-right: 1px solid #e8eef3;
}

.project-summary-grid > div:last-child {
    border-right: 0;
}

.project-summary-grid span {
    display: block;

    margin-bottom: 7px;

    color: #7d8f9d;

    font-size: 11px;
}

.project-summary-grid strong {
    color: #18334a;

    font-size: 15px;
}

.documentation-progress {
    padding: 27px 24px;
}

.documentation-progress > strong {
    display: block;

    color: var(--ecoblue-blue);

    font-size: 34px;
}

.documentation-progress > span {
    display: block;

    margin-top: 4px;

    color: #8595a1;

    font-size: 11px;
}

.progress-track {
    width: 100%;
    height: 8px;

    margin-top: 22px;

    overflow: hidden;

    border-radius: 20px;

    background: #e8eef3;
}

.progress-bar {
    height: 100%;

    border-radius: 20px;

    background:
        linear-gradient(
            90deg,
            var(--ecoblue-blue),
            #2e9dde
        );
}

.project-documents-card {
    margin-top: 22px;
}

.project-document-list {
    padding: 0 22px;
}

.project-document-row {
    min-height: 70px;

    display: flex;
    align-items: center;

    gap: 14px;

    border-bottom: 1px solid #eaf0f4;
}

.project-document-row:last-child {
    border-bottom: 0;
}

.document-status {
    flex: 0 0 28px;
}

.document-check {
    width: 22px;
    height: 22px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 2px solid #ccd8e0;
    border-radius: 50%;

    color: white;

    font-size: 12px;
    font-weight: 800;
}

.document-check.complete {
    border-color: #1f9969;
    background: #1f9969;
}

.document-info {
    min-width: 0;
    flex: 1;
}

.document-info strong {
    display: block;

    color: #1b3549;

    font-size: 13px;
}

.document-info span {
    display: block;

    margin-top: 3px;

    color: #8a99a5;

    font-size: 10px;
}

.document-action {
    min-width: 100px;

    text-align: right;
}

.document-pending {
    padding: 5px 9px;

    border-radius: 20px;

    background: #fff4d7;
    color: #8e6b00;

    font-size: 10px;
    font-weight: 700;
}

@media (max-width: 1000px) {

    .project-overview-grid {
        grid-template-columns: 1fr;
    }

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

}

@media (max-width: 650px) {

    .project-summary-grid {
        grid-template-columns: 1fr;
    }

}


/* ==========================================================
   EQUIPAMENTOS
   ========================================================== */

.equipment-section {
    margin-bottom: 22px;
}


/* ==========================================================
   ECOBLUE — STATUS DO DIMENSIONAMENTO
   ========================================================== */

.dimensioning-status {
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: 10px;

    background: #f4f7fa;
    color: #637b91;

    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;

    border: 1px solid #dce6ee;
}

.dimensioning-status.is-ok {
    background: #eef8f4;
    border-color: #bfe4d4;
    color: #167253;
}

.dimensioning-status.is-warning {
    background: #fff8e6;
    border-color: #f1d487;
    color: #8b6500;
}


/* ==========================================================
   ECOBLUE — INVESTIMENTO E INDICADORES
   ========================================================== */

.financial-internal {
    margin-top: 24px;
    margin-bottom: 26px;
    padding: 22px;
    border: 1px solid #d8e5ef;
    border-radius: 12px;
    background: #f8fbfd;
}

.financial-internal-header {
    margin-bottom: 20px;
}

.financial-internal-header h3 {
    margin: 4px 0;
    color: #082a4a;
    font-size: 17px;
}

.financial-internal-header p {
    margin: 0;
    color: #74899c;
    font-size: 12px;
}

.financial-eyebrow {
    color: #0878bd;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.4px;
}

.financial-summary,
.commercial-indicators {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 22px;
}

.financial-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.financial-summary > div,
.commercial-indicators > div {
    padding: 16px;
    border: 1px solid #dce7ef;
    border-radius: 10px;
    background: white;
}

.financial-summary span,
.commercial-indicators span {
    display: block;
    margin-bottom: 6px;
    color: #74899c;
    font-size: 11px;
    font-weight: 700;
}

.financial-summary strong,
.commercial-indicators strong {
    color: #082a4a;
    font-size: 18px;
}

.commercial-indicators strong {
    color: var(--ecoblue-blue);
}

.commercial-price-grid {
    margin-top: 4px;
}

@media (max-width: 950px) {

    .commercial-indicators {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 650px) {

    .financial-summary,
    .commercial-indicators {
        grid-template-columns: 1fr;
    }
}


/* ==========================================================
   ECOBLUE — DOCUMENTOS OPERACIONAIS DO PROJETO
   ========================================================== */

.document-action-operational {
    min-width: 430px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
}

.document-inline-form {
    display: inline-flex;
    margin: 0;
}

.document-upload-button,
.document-button {
    min-height: 34px;
    padding: 0 13px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 8px;
    border: 1px solid #d6e1e9;

    background: #ffffff;
    color: #17364e;

    font-family: inherit;
    font-size: 11px;
    font-weight: 700;

    line-height: 1;

    text-decoration: none;
    white-space: nowrap;

    cursor: pointer;

    transition:
        border-color .15s ease,
        background .15s ease,
        color .15s ease,
        transform .15s ease;
}

.document-upload-button {
    border-color: #0d7fc7;
    background: #0d7fc7;
    color: #ffffff;
}

.document-upload-button:hover {
    background: #096cac;
    border-color: #096cac;
}

.document-button:hover {
    background: #f5f9fc;
    border-color: #b8cbd8;
}

.document-button-view {
    color: #086da9;
}

.document-button-replace {
    color: #536c7d;
}

.document-button-remove {
    color: #b34a4a;
}

.document-button-remove:hover {
    border-color: #e7c6c6;
    background: #fff7f7;
    color: #9e3434;
}

.document-complete-badge {
    padding: 5px 9px;

    border-radius: 20px;

    background: #e9f7f1;
    color: #16744f;

    font-size: 10px;
    font-weight: 800;
}

.document-file-name {
    display: block;

    max-width: 550px;

    margin-top: 5px;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    color: #60798b;

    font-size: 10px;
}

.project-document-empty {
    padding: 40px 20px;

    color: #7890a1;

    text-align: center;
    font-size: 13px;
}

@media (max-width: 1100px) {

    .document-action-operational {
        min-width: 260px;
    }

}

@media (max-width: 760px) {

    .project-document-row {
        align-items: flex-start;
        flex-wrap: wrap;

        padding: 16px 0;
    }

    .document-info {
        flex: 1;
    }

    .document-action-operational {
        width: 100%;
        min-width: 0;

        padding-left: 42px;

        justify-content: flex-start;
    }

}


/* ==========================================================
   ECOBLUE — GESTÃO ENERGÉTICA
   ========================================================== */

.energy-dashboard-cards {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 18px;

    margin-bottom: 22px;
}


.energy-stat-card {
    padding: 22px 24px;
}


.energy-stat-card span {
    display: block;

    margin-bottom: 10px;

    color: #718697;

    font-size: 11px;
    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: .6px;
}


.energy-stat-card strong {
    display: block;

    color: #082b49;

    font-size: 32px;
    line-height: 1;
}


.energy-stat-card small {
    display: block;

    margin-top: 10px;

    color: #8a99a5;

    font-size: 11px;
}


.energy-dashboard-section {
    overflow: hidden;
}


.energy-table {
    width: 100%;
}


.energy-table-header,
.energy-table-row {
    display: grid;

    grid-template-columns:
        1.4fr
        .8fr
        1fr
        .8fr
        .8fr;

    align-items: center;

    gap: 16px;

    padding:
        14px
        22px;
}


.energy-table-header {
    background: #f5f8fa;

    border-bottom:
        1px solid
        #e2eaf0;

    color: #718697;

    font-size: 10px;
    font-weight: 800;

    text-transform: uppercase;
}


.energy-table-row {
    min-height: 62px;

    border-bottom:
        1px solid
        #edf1f4;

    color: #17364e;

    font-size: 12px;
}


.energy-table-row:last-child {
    border-bottom: 0;
}


.energy-table-row strong {
    color: #102f47;
}


.energy-empty-state {
    padding: 45px 20px;

    color: #8093a2;

    text-align: center;
}


@media (max-width: 1000px) {

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

}


@media (max-width: 650px) {

    .energy-dashboard-cards {
        grid-template-columns: 1fr;
    }

    .energy-table-header {
        display: none;
    }

    .energy-table-row {
        grid-template-columns: 1fr;

        gap: 5px;

        padding:
            16px
            20px;
    }

}
