.wze-economii {
    background: #ffffff;
    color: #0f172a;
    border-radius: 12px;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

.wze-economii__top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.wze-economii__header {
    display: flex;
    flex-direction: column;
    gap: 3px;
    max-width: 380px;
}

.wze-economii__title {
    margin: 0;
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.18;
}

.wze-economii__subtitle {
    margin: 0;
    font-size: 1.25rem;
    color: #475569;
}

.wze-economii__chart {
    background: #f8fafc;
    border-radius: 9px;
    padding: 6px 8px;
    border: 1px solid #e2e8f0;
    margin-top: 10px;
}

.wze-economii__chart canvas {
    width: 100%;
    display: block;
}


.wze-monthly__label {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-weight: 600;
    font-size: 1.2rem;
    color: #1f2937;
}

.wze-monthly__headline {
    display: block;
    color: #475569;
    font-weight: 600;
    font-size: 1.45rem;
}

.wze-monthly__control {
    display: flex;
    gap: 5px;
    align-items: center;
}

.wze-monthly__input {
    border-radius: 7px;
    border: 1px solid #cbd5f5;
    padding: 8px 12px;
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    background: #ffffff;
    min-width: 80px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.wze-monthly__input:focus {
    outline: none;
    border-color: #60a5fa;
    box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.16);
}

.wze-refresh {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    border-radius: 7px;
    padding: 6px 12px;
    font-size: 0.78rem;
    font-weight: 600;
    background: #1d4ed8;
    color: #ffffff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 12px rgba(29, 78, 216, 0.18);
}

.wze-refresh:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(29, 78, 216, 0.22);
}

.wze-refresh:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(29, 78, 216, 0.18);
}

.wze-economii__legend {
    margin-top: 12px;
    display: grid;
    gap: 8px;
    font-size: 0.78rem;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.wze-summary__item {
    --wze-card-color: #2563eb;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: #f8fafc;
    border-radius: 7px;
    padding: 6px 10px 6px 14px;
    border: 1px solid #e2e8f0;
    border-left: 5px solid var(--wze-card-color, #2563eb);
}

.wze-summary__top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
}

.wze-summary__label {
    font-weight: 600;
    color: #1f2937;
    font-size: 0.78rem;
}

.wze-summary__value {
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    color: var(--wze-card-color, #2563eb);
    text-align: right;
    font-size: 1.05rem;
}

.wze-summary__meta {
    display: block;
    margin-top: 2px;
    font-size: 0.66rem;
    color: #475569;
    font-weight: 500;
}

@media (max-width: 640px) {
    .wze-economii {
        padding: 10px;
    }

    .wze-economii__top {
        flex-direction: column;
        gap: 10px;
    }

    .wze-monthly__label {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        font-size: 1.1rem;
    }

    .wze-monthly__headline {
        font-size: 1.3rem;
    }

    .wze-economii__legend {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }

    .wze-monthly__control {
        flex-direction: column;
        align-items: stretch;
    }

    .wze-refresh {
        width: 100%;
    }
}

@media (max-width: 420px) {
    .wze-economii__legend {
        grid-template-columns: 1fr;
    }
}
