.citizen-charts-grid-ajax {
    display: grid;
    gap: 20px;
    width: 100%;
}

.chart-cell {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.chart-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.chart-title {
    position: absolute;
    top: 10px;
    left: 0;
    right: 0;
    text-align: center;
    padding: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    z-index: 10;
}

.chart-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.loading-spinner {
    width: 30px;
    height: 30px;
    border: 2px dotted rgba(0, 0, 0, 0.1);
    border-left: 2px dotted #3498db;
    border-radius: 50%;
    animation: spin 1.2s linear infinite;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -15px;
    margin-left: -15px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.row-label {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
    font-weight: bold;
    color: #333;
}

@media (max-width: 768px) {
    .citizen-charts-grid-ajax {
        grid-template-columns: 1fr !important;
    }

    .chart-cell {
        min-height: 300px;
    }

    .row-label {
        justify-content: flex-start;
        padding-right: 0;
        padding-bottom: 5px;
    }
}