:root {
    --saving-reserve-savings-accent: #0F766E;
    --saving-reserve-reserve-accent: #B45309;
}

.titleLink {
    color: #00aee1;
    text-decoration: underline;
    cursor: pointer;
}

.saving-plan-reserve-page .lcd-confirmation .actions .bg-gray {
    display: none;
}

.saving-plan-reserve-page .lcd-confirmation>.all>.body>.actions {
    justify-content: center !important;
}

.saving-plan-reserve-page .lcd-confirmation>.all>.body>.title .lc-iconlink {
    display: none;
}

.lcdashboard .card-frame.saving-reserve-list-shell {
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    justify-content: stretch !important;
    height: 100%;
    min-height: 0;
    overflow: visible;
}

.lcdashboard .card-frame.saving-reserve-list-shell:hover {
    box-shadow: none !important;
}

.lcdashboard .card-frame.saving-reserve-list-shell .card-content-body {
    max-height: 100% !important;
    min-height: 0 !important;
    height: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    justify-content: stretch !important;
    flex: 1 1 auto !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden;
}

.lcdashboard .card-frame.saving-reserve-list-shell .card-content-body-content {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    min-height: 0 !important;
    flex: 1 1 auto !important;
    overflow: visible !important;
}

.lcdashboard .card-frame.saving-reserve-list-shell .card-content-body-content > * {
    width: 100%;
    height: 100%;
    flex: 1 1 auto;
    min-height: 0;
}

.saving-reserve-list-card {
    display: flex !important;
    flex-direction: column;
    height: 100% !important;
    width: 100% !important;
    min-height: 0;
    background: #fff;
    background: var(--background-white, #fff);
    border: none;
    border-radius: 0.25rem;
    box-shadow: 4px 4px 18px 0px rgba(58, 79, 135, 0.06);
    overflow: hidden;
}

.saving-reserve-list-card > .lc-loading {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.saving-reserve-list-card > .lc-loading > * {
    flex: 1 1 auto;
    min-height: 0;
}

.saving-reserve-tab-panel-body {
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 0.5rem 0.75rem 0.75rem;
    flex: 1 1 auto;
}

.saving-reserve-list-empty {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.saving-reserve-provider-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.saving-reserve-plan-link,
.saving-reserve-cell-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.saving-reserve-plan-link {
    color: #2E1956;
    color: var(--text-default, #2E1956);
    text-decoration: none;
    cursor: pointer;
}

.saving-reserve-plan-link:hover {
    text-decoration: underline;
}

.saving-reserve-type-chip,
.saving-reserve-status-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 18px;
    padding: 2px 6px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 0.625rem;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
}

.saving-reserve-type-chip--savings {
    color: #0F766E;
    color: var(--saving-reserve-savings-accent, #0F766E);
    background: color-mix(in srgb, #0F766E 12%, #fff);
    background: color-mix(in srgb, var(--saving-reserve-savings-accent, #0F766E) 12%, #fff);
    border-color: color-mix(in srgb, #0F766E 28%, #fff);
    border-color: color-mix(in srgb, var(--saving-reserve-savings-accent, #0F766E) 28%, #fff);
}

.saving-reserve-type-chip--reserve {
    color: #B45309;
    color: var(--saving-reserve-reserve-accent, #B45309);
    background: color-mix(in srgb, #B45309 12%, #fff);
    background: color-mix(in srgb, var(--saving-reserve-reserve-accent, #B45309) 12%, #fff);
    border-color: color-mix(in srgb, #B45309 28%, #fff);
    border-color: color-mix(in srgb, var(--saving-reserve-reserve-accent, #B45309) 28%, #fff);
}

.saving-reserve-type-chip--default {
    color: #6B6F7D;
    color: var(--text-secondary, #6B6F7D);
    background: #F5F6FA;
    border-color: #E2E6F3;
}

.saving-reserve-chip-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.saving-reserve-status-chip--active {
    color: #3ebb3f;
    color: var(--status-green, #3ebb3f);
    background: color-mix(in srgb, #3ebb3f 12%, #fff);
    background: color-mix(in srgb, var(--status-green, #3ebb3f) 12%, #fff);
    border-color: color-mix(in srgb, #3ebb3f 28%, #fff);
    border-color: color-mix(in srgb, var(--status-green, #3ebb3f) 28%, #fff);
}

.saving-reserve-status-chip--expiring {
    color: #d99a00;
    color: var(--status-yellow, #d99a00);
    background: color-mix(in srgb, #d99a00 15%, #fff);
    background: color-mix(in srgb, var(--status-yellow, #d99a00) 15%, #fff);
    border-color: color-mix(in srgb, #d99a00 32%, #fff);
    border-color: color-mix(in srgb, var(--status-yellow, #d99a00) 32%, #fff);
}

.saving-reserve-status-chip--expired {
    color: #dc291e;
    color: var(--status-red, #dc291e);
    background: color-mix(in srgb, #dc291e 10%, #fff);
    background: color-mix(in srgb, var(--status-red, #dc291e) 10%, #fff);
    border-color: color-mix(in srgb, #dc291e 26%, #fff);
    border-color: color-mix(in srgb, var(--status-red, #dc291e) 26%, #fff);
}

.saving-reserve-status-chip--unknown {
    color: #6B6F7D;
    color: var(--text-secondary, #6B6F7D);
    background: #F5F6FA;
    border-color: #E2E6F3;
}

@media (max-width: 900px) {
    .saving-reserve-list-empty {
        min-height: 180px;
    }
}
.detailsPlan {
    width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
}

.headerPlanDetails {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(250px, .95fr);
    align-items: stretch;
    grid-gap: 24px;
    gap: 24px;
    padding: 5px 16px 0 0;
}

.detailsPlan--expanded .detailSavingsPlanOrReserve {
    width: auto;
    box-sizing: border-box;
    padding-right: 24px;
    border-right: 1px solid #E2E6F3;
    border-right: 1px solid var(--background-light, #E2E6F3);
}

.detailsPlan--expanded .graphDetails {
    width: auto;
    padding-left: 24px;
}

.detailsPlan--compact .headerPlanDetails {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
}

.detailsPlan--compact .detailSavingsPlanOrReserve,
.detailsPlan--compact .graphDetails {
    width: 100%;
}

.detailsPlan--compact .detailSavingsPlanOrReserve {
    padding-bottom: 16px;
    border-bottom: 1px solid #E2E6F3;
    border-bottom: 1px solid var(--background-light, #E2E6F3);
}

.detailsPlan--compact .graphDetails {
    padding-top: 4px;
}

.detailsPlan--compact .detailSavingsPlanOrReserve {
    box-sizing: border-box;
}

.rowPlanDetails {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0;
    grid-gap: 16px;
    gap: 16px;
}

.inicialInfo {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(110px, auto);
    align-items: start;
    grid-gap: 24px;
    gap: 24px;
    margin-bottom: 0;
    padding-bottom: 14px;
    border-bottom: 1px solid #E2E6F3;
    border-bottom: 1px solid var(--background-light, #E2E6F3);
}

.detailsName {
    width: auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.detailsName h4 {
    min-width: 0;
    margin: 0;
    font-size: 15px;
    font-family: "Ubuntu", sans-serif;
    font-weight: bold;
    color: #2B304F;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.detailsName > .row {
    display: flex;
    align-items: center;
    min-width: 0;
    margin: 0;
}

.detailsName > .row.mt-4 {
    margin-top: 0 !important;
}

.bagdeStatusPlan {
    margin-left: 5px;
    padding: 3px 8px;
    color: white;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.labelGray {
    color: #a4a9b9;
    font-size: 11px;
}

.labelGray.textSmall {
    font-size: 10px;
}

.resource_scope {
    display: flex;
    flex-direction: column;
    width: auto;
    min-width: 0;
    text-align: end;
    justify-content: flex-start;
    gap: 4px;
    font-size: 12px;
}

.resource_scope p {
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: bold;
}

.useDetails {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-gap: 18px;
    gap: 18px;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #E2E6F3;
    border-bottom: 1px solid var(--background-light, #E2E6F3);
}

.percente {
    width: auto;
    min-width: 0;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    grid-gap: 12px;
    gap: 12px;
}

.percente h6 {
    margin: 0;
    font-size: 11px;
    color: #2E1956;
    color: var(--text-default, #2E1956);
    white-space: nowrap;
}

.totalPercente {
    width: 100%;
    height: 20px;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    border-radius: 4px;
    background-color: #e5e7ed;
    color: #fff;
    text-align: center;
    font-size: 11px;
}

.totalPercente p {
    position: absolute;
    z-index: 1;
    width: 100%;
    margin: 0;
    top: 50%;
    transform: translateY(-50%);
}

.totalPercente > .usePercente {
    height: 100%;
    min-width: 0;
    border-radius: 4px 0 0 4px;
    background-color: var(--text-default);
}

.usedAndReservedInfo {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 10px;
    white-space: nowrap;
}

.usedAndReservedInfo p {
    margin: 0;
}

.usedAndReservedInfo .labelGray {
    font-size: 10px;
}

.restDetails {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding-top: 16px;
}

.rowPlanDetails > div {
    min-width: 0;
}

.rowPlanDetails > div > .labelGray {
    display: block;
    margin-bottom: 4px;
    line-height: 1.25;
}

.rowPlanDetails p,
.divDetails p {
    max-width: 100%;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 12px;
}

.divDetails {
    display: flex;
    justify-content: flex-start;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
}

.divDetails > .row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    width: 100%;
    margin: 0 !important;
}

.graphDetails {
    width: 50%;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.graphDetails > div {
    width: 100%;
    min-width: 0;
}

.details-provider-icon {
    min-width: 20px;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.detailSavingsPlanOrReserve {
    background-color: transparent;
    border-radius: 0;
    padding: 0;
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

.subTitlePlan {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
    color: #2B304F;
}

.bodySystem {
    padding: 18px 16px 0 0;
    border-top: 1px solid #E2E6F3;
    border-top: 1px solid var(--background-light, #E2E6F3);
}

.bodySystem h4 {
    margin: 0 0 12px;
    color: #2E1956;
    color: var(--text-default, #2E1956);
    font-size: 14px;
    font-weight: 600;
}

.saving-reserve-resource-grid {
    min-height: 220px;
}

.saving-reserve-resource-grid revo-grid {
    background-color: #fff !important;
}

.saving-reserve-resource-grid revo-grid .rgRow,
.saving-reserve-resource-grid revo-grid .rgCell {
    background-color: #fff !important;
}

.saving-reserve-resource-grid revo-grid .rgRow {
    border-bottom: 1px solid #F1F3F8 !important;
}

.saving-reserve-resource-grid revo-grid .rgCell {
    border-bottom: 1px solid #F1F3F8 !important;
}

.saving-reserve-resource-grid revo-grid .rgRow:hover,
.saving-reserve-resource-grid revo-grid .rgRow:hover .rgCell {
    background-color: #FAFBFD !important;
}

.saving-reserve-resource-grid revo-grid .rgCell {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 760px) {
    .detailsPlan--expanded .headerPlanDetails {
        display: flex;
        flex-direction: column;
    }

    .detailsPlan--expanded .detailSavingsPlanOrReserve {
        width: 100%;
        padding-right: 0;
        padding-bottom: 16px;
        border-right: none;
        border-bottom: 1px solid #E2E6F3;
        border-bottom: 1px solid var(--background-light, #E2E6F3);
    }

    .detailsPlan--expanded .graphDetails {
        width: 100%;
        padding-left: 0;
    }

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

@media (max-width: 520px) {
    .headerPlanDetails {
        padding-right: 0;
    }

    .inicialInfo,
    .useDetails,
    .rowPlanDetails {
        grid-template-columns: 1fr;
    }

    .resource_scope {
        text-align: left;
    }

    .usedAndReservedInfo {
        flex-direction: row;
        justify-content: space-between;
    }
}

h4 {
	color: #8B90A3;
	font-family: "Ubuntu", sans-serif;
	font-weight: 500;
}
/* Governança de Commitments (P4) — painel em modal na página Savings/Reservas */
.cgov-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.cgov-guardrail {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid #e7e9f0;
}

.cgov-guardrail > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cgov-guardrail strong {
    font-size: 0.92rem;
    color: #1f2937;
}

.cgov-guardrail span {
    font-size: 0.78rem;
    color: #667085;
}

.cgov-guardrail.ok {
    background: #ecfdf3;
    border-color: #abefc6;
    color: #067647;
}

.cgov-guardrail.block {
    background: #fef3f2;
    border-color: #fecdca;
    color: #b42318;
}

.cgov-grid {
    display: grid;
    grid-gap: 12px;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.cgov-card {
    background: #fff;
    border: 1px solid #e7e9f0;
    border-radius: 10px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 92px;
}

.cgov-card-head {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #475467;
}

/* Valores numéricos financeiros alinhados à direita */
.cgov-card-value {
    font-size: 1.45rem;
    font-weight: 700;
    color: #1f2937;
    text-align: right;
    font-feature-settings: "tnum";
    font-variant-numeric: tabular-nums;
    margin-top: auto;
}

.cgov-card-value.tone-positive { color: #067647; }
.cgov-card-value.tone-warning { color: #b54708; }
.cgov-card-value.tone-danger { color: #b42318; }
.cgov-card-value.tone-muted { color: #667085; }

.cgov-card-hint {
    font-size: 0.7rem;
    color: #98a2b3;
    text-align: right;
    font-feature-settings: "tnum";
    font-variant-numeric: tabular-nums;
}

.cgov-table-wrap {
    overflow: auto;
    border: 1px solid #e7e9f0;
    border-radius: 10px;
}

.cgov-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}

.cgov-table thead th {
    position: sticky;
    top: 0;
    background: #f9fafb;
    color: #475467;
    font-weight: 600;
    text-align: left;
    padding: 9px 12px;
    border-bottom: 1px solid #eaecf0;
    white-space: nowrap;
}

.cgov-table tbody td {
    padding: 8px 12px;
    border-bottom: 1px solid #f2f4f7;
    color: #344054;
}

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

/* Colunas numéricas alinhadas à direita (separador decimal) */
.cgov-table th.num,
.cgov-table td.num {
    text-align: right;
    font-feature-settings: "tnum";
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.cgov-action {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 600;
    white-space: nowrap;
}

.cgov-action.tone-positive { background: #ecfdf3; color: #067647; }
.cgov-action.tone-warning { background: #fffaeb; color: #b54708; }
.cgov-action.tone-danger { background: #fef3f2; color: #b42318; }
.cgov-action.tone-muted { background: #f2f4f7; color: #475467; }
.cgov-action.tone-default { background: #eff4ff; color: #173192; }

.ai-spend-consumption-status {
    padding: 12px 16px;
    color: var(--text-default);
}

.ai-spend-dashboard-cost { width: 100%; min-width: 0; }
.ai-spend-dashboard-cost dl { display: grid; grid-gap: 8px; gap: 8px; margin: 0; }
.ai-spend-dashboard-cost dl > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, auto); align-items: baseline; grid-gap: 4px 16px; gap: 4px 16px; min-width: 0; max-width: 100%; }
.ai-spend-dashboard-cost dt { font-size: 14px !important; }
.ai-spend-dashboard-cost dd { margin: 0; font-size: 28px !important; line-height: 34px; text-align: right; font-feature-settings: "tnum"; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.ai-spend-dashboard-cost small { grid-column: 1 / -1; font-size: 12px !important; text-align: right; }

.ai-spend-consumption-status,
.ai-spend-consumption-status > div {
    font-size: 12px !important;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.ai-spend-consumption .ai-spend-kpi .truncate-container {
    min-width: 0;
    max-width: calc(100% - 48px);
    height: auto;
    max-height: none;
    gap: 4px;
}

.ai-spend-consumption .ai-spend-kpi .data {
    flex-shrink: 0;
    height: auto;
    max-height: none;
    line-height: 34px;
}

.ai-spend-consumption .ai-spend-kpi .data > div {
    font-size: 28px !important;
    line-height: 34px;
}

.ai-spend-consumption .ai-spend-kpi .description {
    font-size: 12px !important;
    line-height: 18px;
    height: auto;
    max-height: none;
    white-space: normal;
    overflow-wrap: anywhere;
}

.ai-spend-consumption .ai-spend-chart .card-content-body {
    min-height: 0;
    max-height: none;
}

@media (max-width: 1023px) {
    .ai-spend-consumption .lcdashboard,
    .ai-spend-consumption .lcdashboard-cards,
    .ai-spend-consumption .lcdashboard-cards-panel,
    .ai-spend-consumption .lcdashboard-cards-panel-body {
        min-height: 0;
        max-height: none;
    }

    .ai-spend-consumption .lcdashboard-cards-panel,
    .ai-spend-consumption .lcdashboard-cards-panel-body {
        grid-template-rows: auto !important;
    }

    .ai-spend-consumption .lcdashboard-cards-panel-body {
        grid-template-columns: minmax(0, 1fr) !important;
        grid-auto-rows: auto;
    }

    .ai-spend-consumption .card-frame {
        grid-column: 1 / -1 !important;
        grid-row: auto !important;
        min-width: 0;
    }

    .ai-spend-consumption .ai-spend-kpi {
        height: 144px;
    }

    .ai-spend-consumption .ai-spend-chart {
        height: auto;
        min-height: 376px;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .ai-spend-consumption .lcdashboard-cards-panel-body {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .ai-spend-consumption .ai-spend-kpi {
        grid-column: auto !important;
    }
}

.ai-spend-navigation { border: 0; margin: 0; padding: 0; min-width: 0; }
.ai-spend-navigation:disabled .lct-tab { opacity: 0.55; cursor: wait; }
.ai-spend-details { min-width: 0; max-width: 100%; padding: 16px; }
.ai-spend-details h3 { font-size: 16px !important; line-height: 24px; margin: 16px 0 8px; }
.ai-spend-details [role="status"],
.ai-spend-details [role="status"] > span,
.ai-spend-details p { font-size: 12px !important; line-height: 1.5; overflow-wrap: anywhere; }
.ai-spend-grid { background: #fff; background: var(--background-white, #fff); overflow: hidden; }
.ai-spend-details revo-grid .rgCell,
.ai-spend-details revo-grid .rgCell *,
.ai-spend-details revo-grid .rgHeaderCell,
.ai-spend-details revo-grid .rgHeaderCell * { font-size: 12px !important; }
.ai-spend-details revo-grid .rgHeaderCell { letter-spacing: 0; padding: 4px 8px !important; }
.ai-spend-details revo-grid .rgCell {
    box-sizing: border-box;
    padding: 4px 8px !important;
    background: transparent !important;
    border: none !important;
}
.ai-spend-details revo-grid .rgCell > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ai-spend-filters { display: flex; flex-direction: column; gap: 12px; width: 100%; }
.ai-spend-filters label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; min-width: 0; }
.ai-spend-filters select, .ai-spend-filters input { width: 100%; max-width: 100%; min-height: 32px; box-sizing: border-box; }
.ai-spend-currency-totals { display: flex; flex-wrap: wrap; gap: 16px; padding: 8px 0; font-feature-settings: "tnum"; font-variant-numeric: tabular-nums; }
.ai-spend-filter-modal, .ai-spend-filter-modal > .body,
.ai-spend-sync-modal, .ai-spend-sync-modal > .body { max-width: 100vw; box-sizing: border-box; }
.ai-spend-filter-modal fieldset { border: 0; margin: 0; padding: 0; min-width: 0; width: 100%; }
.ai-spend-page-state { padding: 24px; }
.ai-spend-sync-toolbar { display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
.ai-spend-sync-toolbar label { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ai-spend-sync-toolbar select { min-height: 32px; max-width: 100%; width: 100%; }
.ai-spend-sync-toolbar p { margin: 0; overflow-wrap: anywhere; }

