/* Telerik UI for Blazor - Global Overrides */

/* Remove focus outlines and ripple effects */
.k-checkbox,
.k-radio,
.k-switch,
.k-switch * {
    box-shadow: none !important;
    outline: none !important;
}

.k-checkbox:focus,
.k-radio:focus,
.k-switch:focus {
    box-shadow: none !important;
    outline: none !important;
}

.k-radio-item .k-ripple,
.k-switch .k-ripple {
    display: none !important;
}

/* Grid styling to match Weather page design */
.k-grid {
    border-color: #d1d5db;
}

.k-grid-header {
    background-color: #e5e7eb;
}

.k-grid-header th {
    color: #1f2937;
    font-weight: 600;
    border-color: #d1d5db;
}

.k-grid tbody tr:hover {
    background-color: #f9fafb;
}

.k-grid tbody td {
    color: #374151;
    border-color: #e5e7eb;
}

/* Grid pager styling */
.k-pager {
    background-color: #f9fafb;
    border-color: #e5e7eb;
}

.k-pager .k-button {
    background-color: white !important;
    border-color: #d1d5db !important;
    color: #374151 !important;
}

.k-pager .k-button:hover {
    background-color: #f3f4f6 !important;
    border-color: #9ca3af !important;
}

.k-pager .k-button.k-selected {
    background-color: var(--kendo-color-primary) !important;
    border-color: var(--kendo-color-primary) !important;
    color: white !important;
}

/* Grid links */
.k-grid a {
    color: var(--kendo-color-primary);
    text-decoration: underline;
}

.k-grid a:hover {
    color: var(--kendo-color-primary-hover);
}

/* Make date range picker inputs more compact */
.k-daterangepicker .k-dateinput {
    max-width: 101px;
}

/* TabStrip active tab styling */
.k-tabstrip-items-wrapper .k-item.k-active {
    background-color: #FAFAFA;
}

.k-tabstrip-items-wrapper .k-item.k-active .k-link {
    font-weight: bold;
}

.k-tabstrip-content.k-active {
    background-color: #FAFAFA;
}
 
/* TelerikForm buttons: span full width */
.k-form-buttons {
    display: block;
    grid-column: 1 / -1;
}

/* Keep LoaderContainer overlay below popup menus (e.g. header TelerikMenu dropdowns) */
.k-loader-container {
    z-index: 2 !important;
}

.k-loader-container-overlay {
    z-index: 1 !important;
}
/* ---- HttpFileSelect ----------------------------------------------------------------
   Styles for Components/Shared/HttpFileSelect.razor, which reproduces the Kendo upload
   look for uploads that bypass the Blazor circuit.

   These live here rather than in a scoped HttpFileSelect.razor.css because the element
   being styled is rendered by the <InputFile> child component, and Blazor CSS isolation
   does not apply a parent's scope to a child component's output. */

/* The input must stay in the DOM and stay focusable, because http-upload.js reads its
   .files collection to do the POST. Hidden visually rather than with display:none or
   visibility:hidden, either of which would drop it from the tab order. */
.http-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Keyboard users get the focus ring on the label, since the input itself is invisible.
   Relies on the input being rendered immediately before the label. */
.http-file-input:focus-visible + .k-upload-button {
    outline: 2px solid var(--kendo-color-primary, #ff6358);
    outline-offset: 1px;
}

/* Drag state, toggled by igposHttpUpload.attachDropzone. Kendo's own component uses its
   own JS-driven class, which we cannot reuse. */
.k-dropzone.http-file-dragover {
    background-color: var(--kendo-color-base-hover, rgba(0, 0, 0, 0.04));
    outline: 1px dashed var(--kendo-color-primary, #ff6358);
    outline-offset: -4px;
}

/* Long file names should truncate rather than push the size and remove button off the row. */
.k-upload-files .k-file-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
