﻿:root {
    --kendo-font-family: 'Inter', system-ui, -apple-system, "Segoe UI", "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

.k-loader-container, .k-loader-container-overlay {
    border-radius: 5px;
    z-index: 2;
}

.k-chart, .k-sparkline, .k-stockchart {
    font-family: 'Inter';
    font-weight: 500;
}

.k-font-style {
    font: inherit !important;
}

.daterangepicker-no-labels .k-label {
    display: none;
}

.daterangepicker-no-labels .k-floating-label-container {
    padding: 0;
}

.k-grid .k-grid-header {
    padding: 0;
}

.k-grid-content {
    overflow-y: auto;
}

.k-grid {
    border-radius: 4px;
}

.k-grid-header, .k-grid-header-wrap {
    border-radius: 4px 4px 0 0;
}

.k-grid-pager {
    border-radius: 0 0 4px 4px;
}

div.k-chart > svg > g > path:nth-child(1) {
    fill: var(--bs-card-bg);
}

.rounded-chartpoint .k-chart-point path {
    clip-path: inset(0 0 0 0 round 8px 8px 0 0);
    stroke: transparent;
}

.k-chart-point path {
    transition: transform 0.2s ease;
    transform-box: fill-box;
    transform-origin: center;
}

.k-chart-point:hover path {
    transform: scale(1.08);
    filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.15));
    cursor: pointer;
}

/* Telerik Grid CSS for Mobile Views */
@media only screen and (max-width: 750px) {
    .k-grid .k-grid-header .k-table, .k-grid .k-grid-content .k-table, .k-grid .k-grid-content-locked .k-table, .k-grid .k-grid-footer .k-table {
        table-layout: fixed;
    }

    /* Ensure the grid itself can scroll horizontally if the content overflows */
    .k-grid .k-grid-container {
        overflow-x: auto;
        width: 100%;
    }

    .k-grid .k-grid-table,
    .k-grid .k-detail-cell .k-grid .k-grid-table {
        /* Removing fixed layout to allow natural width calculation */
        width: 100%; /* Adjust the table width to be auto to allow for natural expansion */
        min-width: 100%; /* Ensures table takes up at least the full width of its container */
    }

    .k-grid th, .k-grid td {
        /* Apply min-width as needed but ensure it does not prevent horizontal scrolling */
        max-width: 260px; /* Example max-width to prevent columns from becoming too wide */
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        padding: 10px;
        font-size: 16px;
    }

    /* Ensuring detail cells are included in the horizontal scroll without specifying overflow-x */
    .k-grid td.k-detail-cell {
        /* Inherit overflow settings without explicitly setting overflow-x */
    }

    /* Header-specific styles, if needed, to ensure alignment */
    .k-grid .k-grid-header th {
        text-overflow: ellipsis;
    }  
}
