@import url("https://code.highcharts.com/css/highcharts.css");
@import url("https://code.highcharts.com/dashboards/css/dashboards.css");
@import url("https://cdn.jsdelivr.net/npm/@highcharts/grid-pro/css/grid-pro.css");
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap');

/* Force white background for all Highcharts elements regardless of system theme */
.highcharts-dashboards-wrapper,
.highcharts-dashboards-layout-row,
.highcharts-dashboards-layout-cell,
.highcharts-dashboards-component,
.highcharts-dashboards-component-wrapper {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

.highcharts-container {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

/* Hide a chart without breaking Highcharts layout logic */
.chart-hidden {
    position: absolute !important;
    visibility: hidden !important;
    pointer-events: none;
    height: 0 !important;
    overflow: hidden !important;
}

.map-legend-box .highcharts-legend-box {
    fill: #ffffff;
    fill-opacity: 0.95;
    stroke: #cccccc;
    stroke-width: 1;
    rx: 6;
    ry: 6;
}

.hcg-container {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

.bs-grid-theme.hcg-container {
    --hcg-font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    --hcg-border-width: 0;
    --hcg-row-border-width: 0;
    --hcg-column-border-width: 0;
    --hcg-background: #ffffff;
    --hcg-row-background: #ffffff;
    --hcg-row-even-background: #ffffff;
    --hcg-cell-hovered-row-background: #F9F6FD;
    --hcg-cell-synced-row-background: #F9F6FD;
}


.bs-grid-theme.hcg-container table {
    width: 100%;
    border-collapse: collapse;
    background-color: #ffffff;
}

.bs-grid-theme.hcg-container caption {
    text-align: left;
    font-weight: 700;
    margin-bottom: 12px;
    font-size: 16px;
    color: #2A713F;
}

.bs-grid-theme.hcg-container thead {
    background-color: #ffffff;
    border-bottom: 1px solid;
}

.bs-grid-theme.hcg-container tbody tr:hover td {
    background-color: #F9F6FD;
}

.bs-grid-theme.hcg-container thead th {
    font-size: 16px;
    font-weight: 700 !important;
    padding: 8px 12px;
    border: none;
    background: transparent;
    color: #2A713F;
}

/* Ensure all table headers are bold in stunde, woche, and monat views */
.view-stunde .bs-grid-theme.hcg-container thead th,
.view-woche .bs-grid-theme.hcg-container thead th,
.view-monat .bs-grid-theme.hcg-container thead th {
    font-weight: 700 !important;
}

/* Target all possible Highcharts Grid Pro header elements */
.bs-grid-theme.hcg-container thead th,
.bs-grid-theme.hcg-container .hcg-header-cell,
.bs-grid-theme.hcg-container .hcg-header-cell-text,
.bs-grid-theme.hcg-container .hcg-header-cell-content,
.bs-grid-theme.hcg-container [class*="header"],
.bs-grid-theme.hcg-container thead td,
.bs-grid-theme.hcg-container thead * {
    font-weight: 700 !important;
}

/* Also target headers in the specific views */
.view-stunde .bs-grid-theme.hcg-container .hcg-header-cell,
.view-stunde .bs-grid-theme.hcg-container .hcg-header-cell-text,
.view-stunde .bs-grid-theme.hcg-container .hcg-header-cell-content,
.view-woche .bs-grid-theme.hcg-container .hcg-header-cell,
.view-woche .bs-grid-theme.hcg-container .hcg-header-cell-text,
.view-woche .bs-grid-theme.hcg-container .hcg-header-cell-content,
.view-monat .bs-grid-theme.hcg-container .hcg-header-cell,
.view-monat .bs-grid-theme.hcg-container .hcg-header-cell-text,
.view-monat .bs-grid-theme.hcg-container .hcg-header-cell-content {
    font-weight: 700 !important;
}

.bs-grid-theme.hcg-container tbody tr {
    border-bottom: 1px solid #E3E3E3;
    background-color: #ffffff;
}

.bs-grid-theme.hcg-container tbody tr:last-child {
    border-bottom: none;
}

.bs-grid-theme.hcg-container tbody td {
    font-size: 16px;
    font-weight: 400;
    padding: 8px 12px;
    border: none;
    background-color: #ffffff;
    color: #333333;
}

.bs-grid-theme.hcg-container tbody tr:nth-child(odd),
.bs-grid-theme.hcg-container tbody tr:nth-child(even) {
    background-color: #ffffff;
}

@media (min-width: 768px) {
    .bs-grid-theme.hcg-container table {
        table-layout: fixed;
    }

    .bs-grid-theme.hcg-container th,
    .bs-grid-theme.hcg-container td {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* Force bold headers - must come after Highcharts imports */
body.view-stunde .hcg-container thead th,
body.view-stunde .hcg-container .hcg-header-cell,
body.view-stunde .hcg-container .hcg-header-cell-text,
body.view-stunde .hcg-container .hcg-header-cell-content,
body.view-stunde .hcg-container thead *,
body.view-woche .hcg-container thead th,
body.view-woche .hcg-container .hcg-header-cell,
body.view-woche .hcg-container .hcg-header-cell-text,
body.view-woche .hcg-container .hcg-header-cell-content,
body.view-woche .hcg-container thead *,
body.view-monat .hcg-container thead th,
body.view-monat .hcg-container .hcg-header-cell,
body.view-monat .hcg-container .hcg-header-cell-text,
body.view-monat .hcg-container .hcg-header-cell-content,
body.view-monat .hcg-container thead * {
    font-weight: 700 !important;
    font-weight: bold !important;
}
