@import "grid.css";
@import "form.css";
@import "dropdown.css";
@import "file-preview.css";

.wr-legacy-switch .k-button-sm {
	padding: 2px 5px !important;
}

/* Telerik 14.0 removed OverlayThemeColor; the default loader scrim is --kendo-color-inverse @ .5
   opacity, a high-contrast wash that runs *opposite* the theme (dark over light content, light over
   dark). Use --kendo-color-base so the scrim matches the active swatch instead — a soft light-gray
   dim in light mode (~#EDEDED) and a dark dim in dark mode (~#3D3D3D), as before the param was
   removed. The .k-overlay compound selector outranks Telerik's single-class .k-overlay rule. */
.k-loader-container-overlay.k-overlay {
	background-color: var(--kendo-color-base);
}

/* The theme gives loader containers z-index 20000, which beats TelerikWindow (~10002) — a grid/form
   loader would paint over an open window (seen with the file preview). 100 still covers the loader's
   host content (grid internals top out at 10) but stays below windows. Loaders inside a window are
   unaffected: the window's own stacking context keeps them above its content. The doubled class
   outranks the theme's single-class rule, which loads after this file. */
.k-loader-container.k-loader-container {
	z-index: 100;
}

/* Custom scrollbars (theme-aware). Track/thumb use Kendo theme tokens so they follow the
   active light/dark swatch; the literal fallbacks keep them sensible if a token is missing. */
*::-webkit-scrollbar {
	width: 8px;
	height: 8px;
}

*::-webkit-scrollbar-track {
	background: var(--kendo-color-surface, white);
}

*::-webkit-scrollbar-thumb {
	background: var(--kendo-color-border, #cfcfcf);
	visibility: hidden;
}

*:hover::-webkit-scrollbar-thumb {
	visibility: visible;
	border-radius: 7px;
	border: 0.5px solid var(--kendo-color-surface, white);
}
