.actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    text-align: right;
}

.sidebar {
    display: flex;
    flex-direction: column;
}

.sidebar nav {
    flex: 0 1 auto;
}

.sidebar-logout {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, .12);
}

.sidebar-logout button {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 11px 12px;
    border: 0;
    background: transparent;
    color: #d8e6f2;
    box-shadow: none;
    text-align: left;
}

.sidebar-logout button:hover {
    background: rgba(255, 255, 255, .08);
    color: #fff;
}

.company-card .avatar {
    flex: 0 0 42px;
    width: 42px;
    min-width: 42px;
    height: 42px;
}

.company-card .company-info {
    flex: 1 1 auto;
    min-width: 0;
}

.company-card > button {
    flex: 0 0 auto;
    min-width: 118px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    border-radius: 9px;
    box-shadow: 0 4px 10px rgba(18, 52, 91, .16);
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.company-card > button:hover {
    background: #194a78;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(18, 52, 91, .22);
}

.company-card > button:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(18, 52, 91, .16);
}

.company-card > button:focus-visible {
    outline: 3px solid rgba(36, 116, 181, .3);
    outline-offset: 2px;
}

.evolution .panel-head p {
    margin: -12px 0 0;
    color: #6f7f8d;
    font-size: 12px;
}

.chart-legend {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 4px 0 16px;
    color: #60717f;
    font-size: 11px;
}

.chart-legend span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.chart-legend strong {
    margin-left: auto;
    color: #344b5f;
}

.legend-bar i {
    width: 11px;
    height: 11px;
    border-radius: 3px;
    background: #3182bd;
}

.legend-line i {
    width: 18px;
    height: 3px;
    border-radius: 3px;
    background: #e07a2f;
}

.monthly-chart {
    border: 1px solid #e0e7ed;
    border-radius: 10px;
    padding: 16px 14px 10px;
    background: linear-gradient(#fbfcfd, #fff);
}

.chart-plot {
    position: relative;
    height: 200px;
    border-bottom: 1px solid #cfd9e1;
    background: repeating-linear-gradient(to bottom, transparent 0, transparent 49px, #e8edf1 50px);
}

.chart-plot svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    overflow: visible;
    pointer-events: none;
}

.chart-plot polyline {
    fill: none;
    stroke: #e07a2f;
    stroke-width: 4;
    vector-effect: non-scaling-stroke;
}

.chart-plot circle {
    fill: #fff;
    stroke: #e07a2f;
    stroke-width: 3;
    vector-effect: non-scaling-stroke;
}

.chart-columns {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    align-items: end;
    z-index: 1;
}

.chart-month {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
}

.chart-month span {
    width: min(36px, 48%);
    min-height: 0;
    background: linear-gradient(180deg, #3e91c9, #276fa5);
    border-radius: 5px 5px 0 0;
}

.bar-value {
    min-height: 18px;
    color: #205d8a;
    font-size: 10px;
    font-weight: 700;
}

.chart-labels {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    text-align: center;
    padding-top: 8px;
}

.chart-labels small {
    color: #536776;
    font-size: 10px;
}

.chart-labels b {
    display: block;
    color: #89959e;
    font-size: 8px;
    font-weight: 500;
}

@media (max-width: 560px) {
    .actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .actions .button,
    .actions button {
        width: 100%;
        text-align: center;
    }

    .company-card > button {
        min-width: 105px;
    }

    .chart-legend {
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 8px 14px;
    }

    .chart-legend strong {
        width: 100%;
        margin-left: 0;
    }

    .monthly-chart {
        overflow-x: auto;
    }

    .chart-plot,
    .chart-labels {
        min-width: 720px;
    }
}
