.charts-grid > *,
.bottom-grid > *,
.panel,
.chart-area,
.shell {
    min-width: 0;
}
.chart-area {
    width: 100%;
    overflow: hidden;
}
.calendar-header {
    min-height: 0;
}
.header-username {
    font-size: 12px;
    color: var(--muted);
}
@media (max-width: 1200px) {
    .header-username {
        display: none;
    }
}
@media (max-width: 900px) {
    .sidebar:not(.open) {
        visibility: hidden;
    }
    .shell {
        width: 100%;
        margin-left: 0;
    }
    .panel {
        max-width: 100%;
    }
    .chart-area canvas {
        max-width: 100%;
    }
}
@media (max-width: 560px) {
    .topbar {
        width: 100%;
    }
    .top-actions {
        flex-shrink: 0;
    }
    .company-control {
        min-width: 0;
    }
    .page-heading > div {
        min-width: 0;
    }
    .period-tabs {
        max-width: 100%;
        overflow: auto;
    }
    .charts-grid,
    .bottom-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .filters {
        width: 100%;
    }
    .filters input {
        min-width: 0;
        max-width: 100%;
    }
    .calendar-grid {
        grid-template-columns: repeat(7, minmax(0, 1fr));
    }
    .calendar-day {
        min-width: 0;
        overflow: hidden;
    }
}
