/*!
 * Copyright 2022 Progress Software Corporation and/or one of its subsidiaries or affiliates. All rights reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
// Widget
@widget-background-color: @background;
@widget-text-color: @normal-text-color;
@widget-border-color: contrast(@base, lighten(@base, 1%), darken(@base, 8%), 0.5);
@widget-gradient: @normal-gradient;
@widget-shadow: null;

// component
@component-bg: @widget-background-color;
@component-text: @widget-text-color;
@component-border: @widget-border-color;


// Hover
@hover-bg: @hover-background;
@hover-text: @hover-text-color;
@hover-border: @hover-border-color;

// Focus
@focus-shadow: @focused-shadow;

// Selected
@selected-bg: @selected-background;
@selected-text: @selected-text-color;
@selected-border: @selected-border-color;


//Button
@button-text-color: @normal-text-color;
@button-background-color: saturate(@base, 1%);
@button-border-color: contrast(@base, lighten(@base, 1%), darken(@base, 18%), 0.5);
@button-gradient: rgba( white, .1 ), rgba( white, 0 );
@button-shadow: null;

@button-hover-text-color: @button-text-color;
@button-hover-background-color: shade( @button-background-color, 10% );
@button-hover-border-color: shade( @button-background-color, 30% );
@button-hover-gradient: null;
@button-hover-shadow: null;

@button-active-background: shade( @accent, 10% );
@button-active-text-color: contrast( @accent );
@button-active-border-color: shade( @accent, 30% );
@button-active-gradient: null;
@button-active-shadow: null;

@button-focused-border-color: @accent;
@button-focused-shadow: 0 0 4px 0px rgba( @accent, .75 );
@button-focused-active-shadow:  @button-focused-shadow;

// Primary button
@primary-color-desatured: desaturate(@accent, 13%);
@primary-text-color: contrast(@accent, @normal-text-color, @background, 0.4);
@primary-background-color: @accent;
@primary-border-color: contrast(@base, lighten(@primary-color-desatured, 3%), darken(@primary-color-desatured, 3%), 0.5);
@primary-gradient: rgba( white, .1 ), rgba( white, 0 );
@primary-shadow: null;

@primary-hover-text-color: @primary-text-color;
@primary-hover-background-color: contrast(@background, lighten(@accent, 5%), darken(@accent, 5%), 0.5);
@primary-hover-border-color: @primary-border-color;
@primary-hover-gradient: @hover-gradient;
@primary-hover-shadow: null;

@primary-active-text-color: contrast(@primary-active-background-color, @normal-text-color, @background, 0.4);
@primary-active-background-color: contrast(@background, darken(@accent, 2%), darken(@selected-background, 2%), 0.5);
@primary-active-border-color: @primary-active-background-color;
@primary-active-gradient: @selected-gradient;
@primary-active-shadow: null;

@primary-focused-border-color: darken(@primary-hover-background-color, 2%);
@primary-focused-shadow: 0 0 4px 0px contrast(@background, @accent, @selected-background, 0.5);
@primary-focused-active-shadow: @primary-focused-shadow;

@primary-disabled-text-color: darken(@selected-text-color, 10%);
@primary-disabled-background-color: lighten(@accent, 8%);
@primary-disabled-border-color: @primary-disabled-text-color;
@primary-disabled-gradient: @selected-gradient;


// Input new
@input-text: @component-text;
@input-bg: contrast(@normal-text-color, @base, #fff, 0.5);
@input-border: @button-border-color;
@input-shadow: null;

@input-hover-text: @input-text;
@input-hover-bg: @input-bg;
@input-hover-border: @button-hover-border-color;
@input-hover-shadow: null;

@input-focus-text: @input-text;
@input-focus-bg: @input-bg;
@input-focus-border: @drop-down-focused-border-color;
@input-focus-shadow: @focused-shadow;

@input-placeholder-text: rgba( @input-text, .5 );
@input-placeholder-opacity: 1;

@input-invalid-border: @error;
@input-invalid-shadow: null;


// List

@kendo-list-bg: @component-bg;
@kendo-list-text: @component-text;
@kendo-list-border: @component-text;

@kendo-list-item-bg: null;
@kendo-list-item-text: null;

@kendo-list-item-hover-bg: @hover-bg;
@kendo-list-item-hover-text: @hover-text;

@kendo-list-item-selected-bg: @selected-bg;
@kendo-list-item-selected-text: @selected-text;

@kendo-list-item-focus-bg: null;
@kendo-list-item-focus-text: null;
@kendo-list-item-focus-shadow: @focused-item-shadow;


// Slider

@kendo-slider-track-bg: shade( @component-bg, 8% );
@kendo-slider-track-border: @component-border;
@kendo-slider-selection-bg: @primary;

@kendo-slider-thumb-bg: @component-bg;
@kendo-slider-thumb-border: @component-border;

@kendo-slider-thumb-hover-bg: @hover-bg;
@kendo-slider-thumb-hover-border: @hover-border;

@kendo-slider-thumb-active-bg: shade( @primary, 12% );
@kendo-slider-thumb-active-border: shade( @primary, 12% );

@kendo-slider-thumb-focus-shadow: @focus-shadow;

// Generic
@sprite-image: url('@{image-folder}/sprite.png');
@inverse-text-color: contrast(@normal-text-color);
@select-background-color: @base;
@select-border-color: contrast(@base, lighten(@base, 1%), darken(@base, 20%), 0.5);
@select-hover-background-color: saturate(@hover-background, 1%);
@select-group-background-color: @base;
@link-text-color: saturate(@normal-text-color, 1%);
@header-text-color: contrast(@selected-background, lighten(@normal-text-color, 1%), darken(@normal-text-color, 13%), 0.5);
@header-background-color: saturate(@base, 4%);
@header-gradient: @widget-gradient;
@group-background-color: contrast(@base, lighten(@background, 4%), darken(@background, 4%), 0.5);
@group-border-color: contrast(@base, lighten(@base, 1%), darken(@base, 14%), 0.5);
@content-background-color: @background;
@hover-background-color: @hover-background;
@hover-border-color: contrast(@base, lighten(@base, 1%), darken(@base, 20%), 0.5);
@hover-shadow: none;
@selected-background-color: @selected-background;
@selected-border-color: contrast(@selected-background, lighten(@selected-background, 1%), darken(@selected-background, 13%), 0.5);
@selected-shadow: none;
@focused-border-color: @widget-border-color;
@focused-shadow: 0 0 3px 0 @shadow-color;
@focused-item-shadow: inset 0 0 3px 1px contrast(@selected-background, lighten(@normal-text-color, 50%), lighten(@normal-text-color, 30%), 0.5);
@focused-active-item-shadow: inset 0 0 3px 1px darken(@selected-border-color, 10%);
@active-text-color: contrast(@selected-background, lighten(@normal-text-color, 1%), darken(@normal-text-color, 13%), 0.5);
@active-gradient: none;
@active-background-color: desaturate(@background, 1%);
@active-border-color: contrast(@base, lighten(@base, 2%), darken(@base, 29%), 0.5);
@active-shadow: none;
@error-text-color: contrast(@hover-background, lighten(@accent, 29%), darken(@accent, 4%), 0.5);
@error-background-color: contrast(@selected-background, lighten(@hover-background, 24%), darken(@hover-background, 29%), 0.5);
@error-border-color: darken(@error, 29%);
@disabled-text-color: contrast(@base, lighten(@base, 40%), darken(@base, 15%), 0.5);


// Notification
@notification-border-radius: @border-radius;

@notification-info-bg: @info;
@notification-info-text: contrast( @notification-info-bg );
@notification-info-border: @notification-info-bg;

@notification-success-bg: @success;
@notification-success-text: contrast( @notification-success-bg );
@notification-success-border: @notification-success-bg;

@notification-warning-bg: @warning;
@notification-warning-text: contrast( @notification-warning-bg );
@notification-warning-border: @notification-warning-bg;

@notification-error-bg: @error;
@notification-error-text: contrast( @notification-error-bg );
@notification-error-border: @notification-error-bg;

@notification-gradient: rgba(255,255,255,.25) 0%, rgba(255,255,255,0) 100%;


// Tooltip
@tooltip-border-radius: @border-radius;
@tooltip-shadow: 0 4px 6px @shadow-color;

@tooltip-bg: @header-background-color;
@tooltip-text: @header-text-color;
@tooltip-border: @secondary-border-color;


@validation-text-color: contrast(@validation-background-color, lighten(@warning, 80%), darken(@warning, 60%), 0.5);
@validation-background-color: @warning;
@validation-border-color: @warning;
@splitbar-background-color: saturate(@base, 1%);
@draghandle-border-radius: 7px;
@draghandle-border-color: @button-border-color;
@draghandle-background-color: lighten(@base, 15%);
@draghandle-shadow: none;
@draghandle-hover-border-color: @button-hover-border-color;
@draghandle-hover-background-color: desaturate(@hover-background, 2%);
@draghandle-hover-shadow: none;
@alt-background-color: contrast(@base, lighten(@background, 3%), lighten(@base, 3%), 0.5);
@nested-alt-background-color: darken(@alt-background-color, 8%);
@cell-border-color: contrast(@base, lighten(@base, 12%), darken(@base, 14%), 0.5);
@column-highlight-background-color: contrast(@normal-text-color, lighten(@base, 4%), lighten(@base, 6%), 0.5);
@active-filter-background-color: desaturate(@background, 1%);
@scheduler-background-color: contrast(@normal-text-color, @background, @base, 0.5);
@current-time-color: darken(@error, 29%);
@event-background-color: contrast(@selected-background, lighten(@selected-background, 33%), darken(@selected-background, 7%), 0.5);
@event-text-color: contrast( @event-background-color );
@event-inverse-text-color: contrast( @event-text-color );
@scheduler-nonwork-background-color: contrast(@base, lighten(@base, 4%), lighten(@base, 6%), 0.5);
@resize-background-color: contrast(@hover-background, lighten(@normal-text-color, 29%), darken(@normal-text-color, 1%), 0.5);
@upload-progress-background-color: @info;
@upload-progress-text-color: @header-text-color;
@upload-success-background-color: @success;
@upload-success-text-color: @upload-success-background-color;
@upload-error-background-color: @error;
@upload-invalid-color: lighten(@error, 29%);
@upload-error-text-color: @upload-error-background-color;
@task-summary-color: lighten(@widget-text-color, 25%);
@task-summary-selected-color: lighten(@selected-background-color, 25%);
@loading-panel-color: contrast(@selected-background, lighten(@background, 5%), darken(@background, 1%), 0.5);
@shadow-color: rgba(0, 0, 0, .3);
@shadow-inset-color: contrast(@base, lighten(@success, 27%), darken(@success, 9%), 0.5);
@list-border-radius: (@border-radius - 1);
@inner-border-radius: (@border-radius - 1);
@default-icon-opacity: 0.9;
@menu-border-color: contrast(@base, lighten(@base, 1%), darken(@base, 14%), 0.5);
@tabstrip-items-border: contrast(@base, lighten(@base, 1%), darken(@base, 14%), 0.5);
@tabstrip-active-background: desaturate(@background, 1%);
@tabstrip-tabs-color: @normal-text-color;
@tabstrip-content-border-focused: #656565;
@form-widget-color: saturate(@normal-text-color, 1%);
@drop-down-border-color: contrast(@base, lighten(@base, 1%), darken(@base, 14%), 0.5);
@drop-down-hover-border-color: contrast(@base, lighten(@base, 1%), darken(@base, 20%), 0.5);
@drop-down-focused-border-color: contrast(@base, lighten(@background, 1%), darken(@background, 26%), 0.5);
@drop-down-background: contrast(@selected-background, lighten(@base, 1%), darken(@base, 9%), 0.5);
@drop-down-text-color: @normal-text-color;
@secondary-border-color: contrast(@base, lighten(@base, 1%), darken(@base, 14%), 0.5);
@secondary-text-color: @normal-text-color;
@numeric-selected-background: @accent;
@panelbar-items-border: contrast(@base, lighten(@base, 1%), darken(@base, 14%), 0.5);
@panelbar-content-background: @background;
@panelbar-content-color: @normal-text-color;
@filter-menu-content-background: @background;
@icon-background-color: transparent;
@disabled-background-color: saturate(@base, 1%);
@disabled-border-color: contrast(@base, lighten(@base, 1%), darken(@base, 14%), 0.5);
@disabled-gradient: @normal-gradient;
@input-validation-error: @error;


// Link
@link-text: @accent;
@link-hovered-text: contrast(@base, darken(@link-text, 4), lighten(@link-text, 4), .5);


// Toolbar
@toolbar-bg: @header-background-color;
@toolbar-text: @widget-text-color;
@toolbar-border: @widget-border-color;
@toolbar-gradient: @widget-gradient;
@toolbar-shadow: null;


// Menu
@menu-bg: @header-background-color;
@menu-text: @header-text-color;
@menu-border: null;
@menu-gradient: null;

@menu-item-bg: null;
@menu-item-text: @link-text;
@menu-item-border: null;
@menu-item-gradient: null;

@menu-item-hover-bg:  @hover-background-color;
@menu-item-hover-text:  @hover-text-color;
@menu-item-hover-border: @hover-border-color;
@menu-item-hover-gradient: null;

@menu-item-expanded-bg: null;
@menu-item-expanded-text: @component-text;
@menu-item-expanded-border: null;
@menu-item-expanded-gradient: null;

@menu-item-focus-shadow: @focused-shadow;

@menu-scroll-button-bg: @component-bg;
@menu-scroll-button-text: @component-text;
@menu-scroll-button-border: @component-border;
@menu-scroll-button-gradient: null;

@menu-scroll-button-hover-bg: null;
@menu-scroll-button-hover-text: @link-hovered-text;
@menu-scroll-button-hover-border: null;
@menu-scroll-button-hover-gradient: null;

// Menu Popup
@menu-popup-bg: @header-background-color;
@menu-popup-text: @header-background-color;
@menu-popup-border: @component-border;
@menu-popup-gradient: null;

@menu-popup-item-bg: null;
@menu-popup-item-text: null;
@menu-popup-item-border: null;
@menu-popup-item-gradient: null;

@menu-popup-item-hover-bg: @kendo-list-item-hover-bg;
@menu-popup-item-hover-text: @kendo-list-item-hover-text;
@menu-popup-item-hover-border: null;
@menu-popup-item-hover-gradient: null;

@menu-popup-item-expanded-bg: @menu-popup-item-hover-bg;
@menu-popup-item-expanded-text: @menu-popup-item-hover-text;
@menu-popup-item-expanded-border: null;
@menu-popup-item-expanded-gradient: null;

@menu-popup-item-focus-shadow: @menu-item-focus-shadow;

// Treeview

/// Background color of the treeview component.
/// @group treeview
@kendo-treeview-bg: null;
/// Text color of the treeview component.
/// @group treeview
@kendo-treeview-text: @component-text;
/// Border color of the treeview component.
/// @group treeview
@kendo-treeview-border: null;

/// Background color of hovered treeview items.
/// @group treeview
@kendo-treeview-item-hover-bg: @hover-bg;
/// Text color of hovered treeview items.
/// @group treeview
@kendo-treeview-item-hover-text: @hover-text;
/// Border color of hovered treeview items.
/// @group treeview
@kendo-treeview-item-hover-border: null;
/// Background gradient of hovered treeview items.
/// @group treeview
@kendo-treeview-item-hover-gradient: ~"@{hover-gradient}";

/// Background color of selected treeview items.
/// @group treeview
@kendo-treeview-item-selected-bg: @selected-bg;
/// Text color of selected treeview items.
/// @group treeview
@kendo-treeview-item-selected-text: @selected-text;
/// Border color of selected treeview items.
/// @group treeview
@kendo-treeview-item-selected-border: null;
/// Background gradient of selected treeview items.
/// @group treeview
@kendo-treeview-item-selected-gradient: ~"@{selected-gradient}";

/// Border color of focused treeview items.
/// @group treeview
@kendo-treeview-item-focus-border: @drop-down-focused-border-color;
/// Box shadow of focused treeview items.
/// @group treeview
@kendo-treeview-item-focus-shadow: @focused-item-shadow;

/// Background color of treeview icons.
/// @group treeview
@kendo-treeview-icon-bg: @icon-background-color;


// Avatar
@avatar-bg: @accent;
@avatar-text: contrast( @avatar-bg );


// Cards
@card-bg: @component-bg;
@card-text: @component-text;
@card-border: @component-border;

@card-focus-bg: null;
@card-focus-text: null;
@card-focus-border: rgba(black, .15);
@card-focus-shadow: 0 3px 4px 0 contrast(@background, rgba(black, .06), rgba(white, .6), 0.5);

@card-header-bg: @header-background-color;
@card-header-text: @header-text-color;
@card-header-border: @card-border;

@card-footer-bg: @header-background-color;
@card-footer-text: @header-text-color;
@card-footer-border: @card-border;

@card-primary: @accent;
@card-primary-bg: mix( white, @card-primary, 70%);
@card-primary-text: mix(black, @card-primary);
@card-primary-border: mix(white, @card-primary);

@card-error: @error;
@card-error-bg: mix( white, @card-error, 70%);
@card-error-text: mix(black, @card-error);
@card-error-border: mix(white, @card-error);

@card-warning: @warning;
@card-warning-bg: mix( white, @card-warning, 70%);
@card-warning-text: mix(black, @card-warning);
@card-warning-border: mix(white, @card-warning);

@card-success: @success;
@card-success-bg: mix( white, @card-success, 70%);
@card-success-text: mix(black, @card-success);
@card-success-border: mix(white, @card-success);

@card-info: @info;
@card-info-bg: mix( white, @card-info, 70%);
@card-info-text: mix(black, @card-info);
@card-info-border: mix(white, @card-info);

@card-focus-callout-box-shadow-n: 1px -1px 4px 0 contrast(@background, rgba(black, .06), rgba(white, .6), 0.5);
@card-focus-callout-box-shadow-e: 2px -1px 4px 0 contrast(@background, rgba(black, .06), rgba(white, .6), 0.5);
@card-focus-callout-box-shadow-s: 2px -2px 4px 0 contrast(@background, rgba(black, .06), rgba(white, .6), 0.5);
@card-focus-callout-box-shadow-w: 2px -1px 4px 0 contrast(@background, rgba(black, .06), rgba(white, .6), 0.5);


//TileLayout
@tilelayout-bg: contrast(@base, lighten(@background, 4%), darken(@background, 4%), 0.5);

@tilelayout-hint-bg: rgba(255, 255, 255, .2);
@tilelayout-hint-border: @component-border;
@tilelayout-card-focus-shadow: 0 0 4px 2px rgba(contrast(@tilelayout-bg), 0.3);


// Chat
@chat-bg: @component-bg;
@chat-text: @component-text;
@chat-border: @component-border;

@chat-bubble-bg: @button-background-color;
@chat-bubble-text: @button-text-color;
@chat-bubble-border: @chat-bubble-bg;

@chat-alt-bubble-bg: @accent;
@chat-alt-bubble-text: contrast(@accent);
@chat-alt-bubble-border: @chat-alt-bubble-bg;

@chat-quick-reply-color: @accent;


// Grid
@grid-bg: @component-bg;
@grid-text: @component-text;
@grid-border: @component-border;

@grid-header-bg: @header-background-color;
@grid-header-text: @header-text-color;
@grid-header-border: @grid-border;
@grid-header-gradient: @header-gradient;

@grid-alt-bg: @alt-background-color;
@grid-alt-text: @grid-text;
@grid-alt-border: @grid-border;

@grid-hover-bg: @hover-background-color;
@grid-hover-text: @grid-text;
@grid-hover-border: @grid-border;
@grid-hover-gradient: @hover-gradient;

@grid-selected-bg: @selected-background-color;
@grid-selected-text: @selected-text-color;
@grid-selected-border: @grid-border;
@grid-selected-gradient: @selected-gradient;

@grid-sticky-border: darken(@grid-border, 30%);

@grid-selected-hover-bg: saturate(@selected-background-color, 7%);


// Calendar
@calendar-bg: @component-bg;
@calendar-text: @component-text;
@calendar-border: @component-border;

@calendar-header-bg: @header-background-color;
@calendar-header-text: @header-text-color;
@calendar-header-border: @calendar-border;
@calendar-header-gradient: @header-gradient;

@calendar-header-cell-bg: contrast(@calendar-bg, lighten(@calendar-bg, 4), darken(@calendar-bg, 4), .5);
@calendar-header-cell-text: @calendar-text;
@calendar-header-cell-border: @calendar-border;

@calendar-week-cell-bg: @calendar-header-cell-bg;
@calendar-week-cell-text: @calendar-header-cell-text;
@calendar-week-cell-border: @calendar-header-cell-border;

@calendar-weekend-cell-bg: transparent;
@calendar-weekend-cell-text: null;
@calendar-weekend-cell-border: null;

@calendar-othermonth-cell-bg: null;
@calendar-othermonth-cell-text: @disabled-text-color;
@calendar-othermonth-cell-border: null;

@calendar-cell-hovered-bg: @button-hover-background-color;
@calendar-cell-hovered-text: @button-hover-text-color;
@calendar-cell-hovered-border: @button-hover-border-color;

@calendar-cell-selected-bg: @selected-background-color;
@calendar-cell-selected-text: @selected-text-color;
@calendar-cell-selected-border: @selected-border-color;

@calendar-cell-focused-shadow: inset @button-focused-shadow;


// Timepicker
@time-list-highlight-color: @widget-border-color;
@time-list-focused-bg: rgba(contrast(@background), .04);
@time-list-title-focus: contrast(@background);


// Window
@window-border-radius: @border-radius;
@window-action-border-radius: @border-radius;

@window-bg: @component-bg;
@window-text: @component-text;
@window-border: @component-border;
@window-shadow: 1px 1px 7px 1px rgba(contrast(@window-bg), .12);
@window-focus-shadow: 1px 1px 7px 1px rgba(contrast(@window-bg), .25);

@window-titlebar-bg: @header-background-color;
@window-titlebar-text: @header-text-color;
@window-titlebar-border: @secondary-border-color;
@window-titlebar-gradient: rgba(white, .25), rgba(white, 0);


// Dialog

// ScrollView

@scrollview-light-bg: rgba(255, 255, 255, .2);
@scrollview-dark-bg: rgba(0, 0, 0, .2);

@scrollview-bg: @component-bg;
@scrollview-text: @component-text;
@scrollview-border: @component-border;

@scrollview-pagebutton-bg: @button-background-color;
@scrollview-pagebutton-border: @button-border-color;
@scrollview-pagebutton-primary-bg: @primary-background-color;
@scrollview-pagebutton-primary-border: @primary-border-color;
@scrollview-pagebutton-shadow: 0 0 0 2px rgba(0, 0, 0, .13);

@scrollview-navigation-color: white;
@scrollview-navigation-icon-shadow: rgba(0, 0, 0, .3) 0 0 15px;
@scrollview-navigation-bg: rgba(0, 0, 0, 0);
@scrollview-navigation-default-opacity: .7;
@scrollview-navigation-hover-opacity: 1;
@scrollview-navigation-hover-span-bg: transparent;
@scrollview-arrow-tap-highlight-color: transparent;


// Switch
@switch-container-shadow: null;
@switch-container-hovered-shadow: null;
@switch-container-focused-shadow: null;

@switch-on-bg: contrast(contrast(@background), @normal-background, @base, .5);
@switch-on-text: contrast(@background, @accent, white, .5);
@switch-on-border: contrast(@background, @button-border-color, @switch-on-bg, .5);
@switch-on-gradient: null;
@switch-on-shadow: null;
@switch-on-focused-shadow: 0 0 3px 1px contrast(@background, rgba( black, .3 ), rgba( white, 1), .5);

@switch-on-focused-bg: @switch-on-bg;
@switch-on-focused-text: @switch-on-text;
@switch-on-focused-border: contrast(@background, darken(@switch-on-border, 15%), @switch-on-border, .5);
@switch-on-focused-gradient: @switch-on-gradient;

@switch-on-hovered-bg: @switch-on-bg;
@switch-on-hovered-text: @switch-on-text;
@switch-on-hovered-border: @switch-on-focused-border;
@switch-on-hovered-gradient: null;

@switch-on-handle-bg: @primary-background-color;
@switch-on-handle-text: @switch-on-text;
@switch-on-handle-border: @primary-border-color;
@switch-on-handle-gradient: rgba(255,255,255,.25) 0%, rgba(255,255,255,.0) 100%;
@switch-on-handle-shadow: null;

@switch-on-handle-focused-bg: @switch-on-handle-bg;
@switch-on-handle-focused-text: @switch-on-handle-text;
@switch-on-handle-focused-border: @switch-on-handle-border;
@switch-on-handle-focused-gradient: @switch-on-handle-gradient;

@switch-on-handle-hovered-bg: @switch-on-handle-bg;
@switch-on-handle-hovered-text: @switch-on-text;
@switch-on-handle-hovered-border: @primary-hover-border-color;
@switch-on-handle-hovered-gradient: rgba(255,255,255,.4) 0%, rgba(255,255,255,.0) 100%;

@switch-off-bg: @switch-on-bg;
@switch-off-text: @normal-text-color;
@switch-off-border: @switch-on-border;
@switch-off-gradient: null;
@switch-off-shadow: null;
@switch-off-focused-shadow: @switch-on-focused-shadow;

@switch-off-focused-bg: @switch-off-bg;
@switch-off-focused-text: @switch-off-text;
@switch-off-focused-border: @switch-on-focused-border;
@switch-off-focused-gradient: @switch-off-gradient;

@switch-off-hovered-bg: @switch-off-bg;
@switch-off-hovered-text: @switch-off-text;
@switch-off-hovered-border: @switch-on-hovered-border;
@switch-off-hovered-gradient: null;

@switch-off-handle-bg: @button-background-color;
@switch-off-handle-text: @switch-off-text;
@switch-off-handle-border: @button-border-color;
@switch-off-handle-gradient: @button-gradient;
@switch-off-handle-shadow: null;

@switch-off-handle-focused-bg: @switch-off-handle-bg;
@switch-off-handle-focused-text: @switch-off-handle-text;
@switch-off-handle-focused-border: @switch-off-focused-border;
@switch-off-handle-focused-gradient: @switch-off-handle-gradient;

@switch-off-handle-hovered-bg: @button-hover-background-color;
@switch-off-handle-hovered-text: @switch-off-text;
@switch-off-handle-hovered-border: @switch-off-hovered-border;
@switch-off-handle-hovered-gradient: @switch-on-handle-hovered-gradient;


// PDF viewer
@pdf-viewer-bg: null;
@pdf-viewer-text: null;
@pdf-viewer-border: null;

@pdf-viewer-canvas-bg: @chat-bg;
@pdf-viewer-canvas-text: null;
@pdf-viewer-canvas-border: null;

@pdf-viewer-page-bg: white;
@pdf-viewer-page-text: @component-text;
@pdf-viewer-page-border: @component-border;
@pdf-viewer-page-shadow: 0 0 15px @pdf-viewer-page-border;

@pdf-viewer-toolbar-button-bg: @button-text-color;

@pdf-viewer-search-highlight-bg: darken(@background, 70%);


// Adaptive Common
@adaptive-content-bg: @header-background-color;
@adaptive-content-text: @accent;

@adaptive-menu-bg: @accent;
@adaptive-menu-text: @selected-text-color;

@adaptive-menu-clear-text: @accent;

@adaptive-menu-item-border: @cell-border-color;

@adaptive-menu-title-text: @normal-text-color;


// Adaptive Grid
@adaptive-grid-sort-text: @accent;

// Adaptive Scheduler
@adaptive-scheduler-current-text: @accent;
@adaptive-scheduler-base-text: inherit;

// Drawer
@drawer-text:  @widget-text-color;
@drawer-bg: @widget-background-color;
@drawer-border: @widget-border-color;

@drawer-scrollbar-color: rgba(156, 156, 156, 0.7);
@drawer-scrollbar-bg: #dedede;
@drawer-scrollbar-hovered-color: rgba(156, 156, 156, 1);

@drawer-hovered-text: @hover-text-color;
@drawer-hovered-bg: @hover-background;
@drawer-hovered-gradient: @hover-gradient;

@drawer-focused-bg: @drawer-bg;
@drawer-focused-shadow: @focused-item-shadow;

@drawer-selected-text: @selected-text-color;
@drawer-selected-bg: @selected-background;
@drawer-selected-hover-bg: contrast(@background, lighten(@selected-background, 5%), darken(@selected-background, 5%), 0.5);
@drawer-selected-hover-text: @selected-text-color;


// Rating
@rating-icon-text: contrast(@accent, @widget-border-color, @widget-text-color, 0.5);
@rating-icon-selected-text: @accent;
@rating-icon-hover-text: @accent;
@rating-icon-focused-text: @accent;

@rating-icon-focused-shadow: 0 2px 3.6px rgba(0, 0, 0, .1);
@rating-icon-focused-selected-shadow: 0 2px 3.6px fade(@accent, 50);


// Spreadsheet
@spreadsheet-insert-image-dialog-preview-overlay: inset 0 0 0 2000px rgba(0,0,0, 0.5);
@spreadsheet-insert-image-dialog-hovered-text: #fff;

@spreadsheet-drawing-handle-bg: @spreadsheet-selection-border;
@spreadsheet-drawing-handle-border-color: #fff;
@spreadsheet-drawing-handle-border-radius: 50%;
@spreadsheet-drawing-handle-outline: @spreadsheet-selection-border;

@spreadsheet-drawing-anchor-bg:  @spreadsheet-selection-background;


// Filter
@filter-preview-field-text: @accent;


// Timeline
@timeline-track-arrow-disabled-text: @disabled-text-color;
@timeline-track-arrow-disabled-bg: @disabled-background-color;
@timeline-track-arrow-disabled-border: @disabled-border-color;

@timeline-track-bg: @button-background-color;
@timeline-track-border-color: @button-border-color;

@timeline-track-item-focus-shadow: 0 3px 4px 0 contrast(@background, rgba(black, .06), rgba(white, .6), 0.5);

@timeline-flag-background: @accent;
@timeline-flag-text: contrast(@accent);

@timeline-circle-color: @accent;


// Breadcrumb
@breadcrumb-focused-shadow: @focused-shadow;

@breadcrumb-link-text: @link-text;
@breadcrumb-link-bg: transparent;
@breadcrumb-link-border: transparent;

@breadcrumb-link-hovered-text: @link-hovered-text;
@breadcrumb-link-hovered-bg: rgba(0,0,0, 0.08);
@breadcrumb-link-hovered-border: transparent;

@breadcrumb-link-focused-text: @link-text;
@breadcrumb-link-focused-bg: false;
@breadcrumb-link-focused-border: false;
@breadcrumb-link-focused-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.12);

@breadcrumb-root-link-text: @button-text-color;
@breadcrumb-root-link-bg: false;
@breadcrumb-root-link-border: false;

@breadcrumb-root-link-hovered-text: false;
@breadcrumb-root-link-hovered-bg: @breadcrumb-link-hovered-bg;
@breadcrumb-root-link-hovered-border: false;

@breadcrumb-root-link-focused-text: false;
@breadcrumb-root-link-focused-bg: false;
@breadcrumb-root-link-focused-border: false;
@breadcrumb-root-link-focused-shadow: @breadcrumb-link-focused-shadow;

// Listgroup
@listgroup-border-radius: @border-radius;

@listgroup-bg: @component-bg;
@listgroup-text: @component-text;
@listgroup-border: @component-border;


// Badge
@badge-secondary-bg: darken(@base, 4%);
@badge-secondary-text: @normal-text-color;
@badge-secondary-border: @badge-secondary-bg;

@badge-primary-bg: @primary-background-color;
@badge-primary-text: @primary-text-color;
@badge-primary-border: @badge-primary-bg;

@badge-info-bg: @info;
@badge-info-text: contrast( @badge-info-bg );
@badge-info-border: @badge-info-bg;

@badge-success-bg: @success;
@badge-success-text: contrast( @badge-success-bg );
@badge-success-border: @badge-success-bg;

@badge-warning-bg: @warning;
@badge-warning-text: contrast( @badge-warning-bg );
@badge-warning-border: @badge-warning-bg;

@badge-error-bg: @error;
@badge-error-text: contrast( @badge-error-bg );
@badge-error-border: @badge-error-bg;

//Checkboxes
@checkbox-icon-size: 12px;
// @checkbox-size: @icon-size;
@checkbox-radius: @border-radius;
@checkbox-border-width: 1px;
// @checkbox-line-height: (@checkbox-size + @checkbox-border-width);

@checkbox-bg: @input-bg;
@checkbox-text: @accent;
@checkbox-border: contrast(@base, lighten(@base, 14%), darken(@base, 14%), 0.5);
@checkbox-hovered-bg: @checkbox-bg;
@checkbox-hovered-text: @checkbox-text;
@checkbox-hovered-border: @checkbox-border;
@checkbox-checked-bg: @checkbox-bg;
@checkbox-checked-text: @checkbox-text;
@checkbox-checked-border: @checkbox-border;
@checkbox-indeterminate-bg: @checkbox-bg;
@checkbox-indeterminate-text: @checkbox-text;
@checkbox-indeterminate-border: @checkbox-border;
@checkbox-focused-border: @checkbox-text;
@checkbox-focused-shadow: 0 0 3px 0 @checkbox-text;
@checkbox-focused-checked-border: @checkbox-text;
@checkbox-focused-checked-shadow: 0 0 3px 0 @checkbox-text;
@checkbox-disabled-bg: null;
@checkbox-disabled-text: null;
@checkbox-disabled-border: null;
@checkbox-disabled-checked-bg: null;
@checkbox-disabled-checked-text: null;
@checkbox-disabled-checked-border: null;
@checkbox-invalid-bg: null;
@checkbox-invalid-text: null;
@checkbox-invalid-border: @checkbox-border;


//Radio Buttons
@radio-icon-size: 12px;
// @radio-size: @icon-size;
@radio-radius: 50%;
@radio-border-width: 1px;
// @radio-line-height: calc(@radio-size + @radio-border-width);

@radio-bg: @checkbox-bg;
@radio-text: @checkbox-text;
@radio-border: @checkbox-border;
@radio-hovered-bg: @checkbox-hovered-bg;
@radio-hovered-text: @checkbox-hovered-text;
@radio-hovered-border: @checkbox-hovered-border;
@radio-checked-bg: @checkbox-checked-bg;
@radio-checked-text: @checkbox-checked-text;
@radio-checked-border: @checkbox-checked-border;
@radio-indeterminate-bg: @radio-checked-bg;
@radio-indeterminate-text: @radio-checked-text;
@radio-indeterminate-border: @radio-checked-border;
@radio-focused-border: @checkbox-hovered-border;
@radio-focused-shadow: @checkbox-focused-shadow;
@radio-focused-checked-border: @checkbox-checked-border;
@radio-focused-checked-shadow: @checkbox-focused-checked-shadow;
@radio-disabled-bg: null;
@radio-disabled-text: null;
@radio-disabled-border: null;
@radio-disabled-checked-bg: null;
@radio-disabled-checked-text: null;
@radio-disabled-checked-border: null;


// FileManager
@filemanager-bg: false;
@filemanager-text: false;
@filemanager-border: false;

@filemanager-toolbar-bg: false;
@filemanager-toolbar-text: false;
@filemanager-toolbar-border: @widget-border-color;

@filemanager-navigation-bg: false;
@filemanager-navigation-text: false;
@filemanager-navigation-border: @widget-border-color;

@filemanager-breadcrumb-bg: @base;
@filemanager-breadcrumb-text: false;
@filemanager-breadcrumb-border: @widget-border-color;

@filemanager-listview-bg: false;
@filemanager-listview-text: false;
@filemanager-listview-border: false;

@filemanager-listview-item-bg: false;
@filemanager-listview-item-text: false;
@filemanager-listview-item-border: false;

@filemanager-listview-item-icon-bg: false;
@filemanager-listview-item-icon-text: mix(@normal-text-color, @base, 41.5%);
@filemanager-listview-item-icon-border: false;
@filemanager-listview-item-icon-selected-bg: false;
@filemanager-listview-item-icon-selected-text: @selected-text-color;
@filemanager-listview-item-icon-selected-border: false;

@filemanager-grid-bg: false;
@filemanager-grid-text: false;
@filemanager-grid-border: false;

@filemanager-preview-bg: false;
@filemanager-preview-text: false;
@filemanager-preview-border: @widget-border-color;

@filemanager-preview-icon-bg: false;
@filemanager-preview-icon-text: mix(@normal-text-color, @base, 41.5%);
@filemanager-preview-icon-border: false;

@filemanager-drag-hint-bg: @accent;
@filemanager-drag-hint-text: contrast(@filemanager-drag-hint-bg);
@filemanager-drag-hint-border: false;

@filemanager-drag-hint-icon-bg: false;
@filemanager-drag-hint-icon-text: contrast(@filemanager-drag-hint-bg);
@filemanager-drag-hint-icon-border: false;

@filemanager-view-dropzone-hovered-text: inherit;
@filemanager-view-dropzone-hovered-bg: inherit;
@filemanager-view-dropzone-hovered-border: false;


// Stepper
@stepper-bg: false;
@stepper-text: false;
@stepper-border: false;

@stepper-indicator-bg: @component-bg;
@stepper-indicator-text: @component-text;
@stepper-indicator-border: @component-border;

@stepper-indicator-hover-bg: darken( @stepper-indicator-bg, 10% );
@stepper-indicator-hover-text: false;
@stepper-indicator-hover-border: false;

@stepper-indicator-disabled-bg: @stepper-indicator-bg;
@stepper-indicator-disabled-text: mix(@stepper-indicator-text, #ffffff, 60%);
@stepper-indicator-disabled-border: @stepper-indicator-border;

@stepper-indicator-done-bg: @accent;
@stepper-indicator-done-text: contrast( @stepper-indicator-done-bg );
@stepper-indicator-done-border: @stepper-indicator-done-bg;

@stepper-indicator-done-hover-bg: darken( @stepper-indicator-done-bg, 10% );
@stepper-indicator-done-hover-text: false;
@stepper-indicator-done-hover-border: false;

@stepper-indicator-done-disabled-bg: mix( @stepper-indicator-done-bg, @component-bg, 60%);
@stepper-indicator-done-disabled-text: contrast( @stepper-indicator-done-bg );
@stepper-indicator-done-disabled-border: @stepper-indicator-done-disabled-bg;

@stepper-indicator-current-bg: @stepper-indicator-done-bg;
@stepper-indicator-current-text: @stepper-indicator-done-text;
@stepper-indicator-current-border: @stepper-indicator-done-border;

@stepper-indicator-current-hover-bg: @stepper-indicator-done-hover-bg;
@stepper-indicator-current-hover-text: @stepper-indicator-done-hover-text;
@stepper-indicator-current-hover-border: @stepper-indicator-done-hover-border;

@stepper-indicator-current-disabled-bg: @stepper-indicator-done-disabled-bg;
@stepper-indicator-current-disabled-text: @stepper-indicator-done-disabled-text;
@stepper-indicator-current-disabled-border: @stepper-indicator-done-disabled-border;

@stepper-label-text: @component-text;
@stepper-label-success-text: contrast(@base, lighten(@success, 1%), darken(@success, 30%));
@stepper-label-error-text: contrast(@hover-background, lighten(@error, 15%), darken(@error, 4%));
@stepper-label-disabled-text: @disabled-text-color;


// Wizard
@wizard-focused-shadow: inset 0 0 0 2px @widget-border-color;
@wizard-step-border-focused: #656565;

// Appbar
@appbar-box-shadow: 0px 1px 1px rgba(0, 0, 0, .16);
@appbar-bottom-box-shadow:  0px -1px 1px rgba(0, 0, 0, .16);


//Gantt
@gantt-task-selected-bg: lighten(@event-background-color, 7%);
@gantt-task-completed-selected-bg: darken(@event-background-color, 15%);
@gantt-summary-completed-selected-bg: @selected-background-color;

@gantt-delayed-advanced-text: #FFFFFF;

@gantt-planned-bg: @primary;
@gantt-planned-border: @gantt-planned-bg;
@gantt-planned-tooltip-text: #FFFFFF;

@gantt-delayed-bg: @error;
@gantt-delayed-bg-lighter: tint(@gantt-delayed-bg, 20);
@gantt-delayed-tooltip-text: #FFFFFF;

@gantt-advanced-bg: @success;
@gantt-advanced-bg-lighter: tint(@gantt-advanced-bg, 20);

@gantt-task-offset-border: @gantt-delayed-bg;
@gantt-task-offset-text: #000000;


// ImageEditor
@imageeditor-bg: @component-bg;
@imageeditor-text: @component-text;
@imageeditor-border: @component-border;

@imageeditor-content-bg: darken(@component-bg, 22.5%);
@imageeditor-content-text: false;
@imageeditor-content-border: false;

@imageeditor-action-pane-text: false;
@imageeditor-action-pane-bg: @component-bg;
@imageeditor-action-pane-border: @component-border;

@imageeditor-crop-text: false;
@imageeditor-crop-bg: false;
@imageeditor-crop-border: white;

@imageeditor-resize-handle-text: false;
@imageeditor-resize-handle-bg: false;
@imageeditor-resize-handle-border: white;

@imageeditor-crop-overlay-bg: rgba(black, 0.3);


// Expansion panel
@expander-bg: @component-bg;
@expander-text: @component-text;
@expander-border: @component-border;

@expander-header-bg: @expander-bg;
@expander-header-text: @expander-text;
@expander-header-border: null;

@expander-title-text: if(@is-dark-theme, lighten(@primary, 30%), @primary);

@expander-header-sub-title-opacity: .65;

@expander-header-hover-bg: shade(@expander-bg, 10%);
@expander-header-focused-bg: null;
@expander-header-focused-shadow: inset 0 0 0 2px contrast(@background, rgba(black, .13), rgba(white, .6), 0.5);


// FloatingActionButton
@fab-shadow: 0 4px 5px rgba(0, 0, 0, .14), 0 1px 10px rgba(0, 0, 0, .12), 0 2px 4px rgba(0, 0, 0, .2);
@fab-focus-shadow: 0 1px 10px rgba(#000000, .22), 0 4px 5px rgba(#000000, .24), 0 2px 4px rgba(#000000, .2);
@fab-disabled-shadow:  0 4px 5px rgba(0, 0, 0, .06), 0 1px 10px rgba(0, 0, 0, .06), 0 2px 4px rgba(0, 0, 0, .08);

@fab-item-text: if(@is-dark-theme, @badge-secondary-text, @component-text);
@fab-item-bg: if(@is-dark-theme, lighten(@badge-secondary-bg, 30%), @component-bg);
@fab-item-border: if(@is-dark-theme, @badge-secondary-border, @component-border);


@fab-item-icon-text: if(@is-dark-theme, @badge-secondary-text, contrast( #ebebeb ));
@fab-item-icon-bg: if(@is-dark-theme, lighten(@badge-secondary-bg, 20%), #ebebeb);
@fab-item-icon-border: if(@is-dark-theme, @badge-secondary-border, #ebebeb);

@fab-item-shadow: if(@is-dark-theme, @focused-shadow, @fab-shadow);
@fab-item-focus-shadow: if(@is-dark-theme, @button-focused-shadow, @fab-focus-shadow);
@fab-item-disabled-shadow: @fab-disabled-shadow;


// ActionSheet
@actionsheet-padding-x: null;
@actionsheet-padding-y: null;
@actionsheet-bg: @component-bg;
@actionsheet-text: @component-text;
@actionsheet-border: @component-border;
@actionsheet-shadow: 0 8px 10px -5px rgba(0, 0, 0, .2), 0 16px 24px 2px rgba(0, 0, 0, .14), 0 6px 30px 5px rgba(0, 0, 0, .12);

@actionsheet-border-width: 0px;
@actionsheet-border-radius: 0px;

// Action sheet header
@actionsheet-header-bg: null;
@actionsheet-header-text: null;
@actionsheet-header-border: null;
@actionsheet-header-gradient: null;
@actionsheet-header-shadow: null;

// Action sheet item
@actionsheet-item-hover-bg: @hover-background;
@actionsheet-item-hover-text: null;
@actionsheet-item-hover-border: null;
@actionsheet-item-hover-gradient: null;
@actionsheet-item-hover-shadow: null;

@actionsheet-item-focus-bg: null;
@actionsheet-item-focus-text: null;
@actionsheet-item-focus-border: null;
@actionsheet-item-focus-gradient: null;
@actionsheet-item-focus-shadow: @focused-shadow;

@actionsheet-item-disabled-bg: null;
@actionsheet-item-disabled-text: null;
@actionsheet-item-disabled-border: null;
@actionsheet-item-disabled-gradient: null;
@actionsheet-item-disabled-shadow: null;


// BottomNavigation
@bottom-nav-flat-bg: @background;
@bottom-nav-flat-text: @component-text;
@bottom-nav-flat-border: @component-border;


// TaskBoard
@taskboard-bg: null;
@taskboard-text: null;
@taskboard-border: null;

@taskboard-toolbar-bg: null;
@taskboard-toolbar-text: null;
@taskboard-toolbar-border: null;

@taskboard-column-bg: @alt-background-color;
@taskboard-column-text: null;
@taskboard-column-border: transparent;

@taskboard-column-focus-bg: null;
@taskboard-column-focus-text: null;
@taskboard-column-focus-border: shade( @component-border, 20% );

@taskboard-column-header-text: @component-text;

@taskboard-pane-bg: @component-bg;
@taskboard-pane-text: @component-text;
@taskboard-pane-border: @component-border;

@taskboard-card-bg: @card-bg;
@taskboard-card-text: @card-text;
@taskboard-card-border: @card-border;

@taskboard-card-header-bg: @taskboard-card-bg;
@taskboard-card-header-text: null;
@taskboard-card-header-border: null;

@taskboard-card-title-text: @primary;
@taskboard-card-title-focus-text: darken( @primary, 13% );
@taskboard-card-title-hover-text: lighten( @primary, 13% );

@taskboard-card-footer-bg: @taskboard-card-bg;
@taskboard-card-footer-text: null;
@taskboard-card-footer-border: null;

@taskboard-card-focus-border: shade( @taskboard-card-border, 18% );
@taskboard-card-hover-border: shade( @taskboard-card-border, 10% );

@taskboard-card-selected-text: @taskboard-card-text;
@taskboard-card-selected-bg: @taskboard-card-bg;
@taskboard-card-selected-border: lighten( @primary, 13% );

@taskboard-drag-placeholder-bg: rgba(255, 255, 255, .2);
@taskboard-drag-placeholder-border: @component-border;


// Scheduler
@scheduler-yearview-calendar-bg: @scheduler-background-color;

@scheduler-yearview-month-header-text: @component-text;

@scheduler-yearview-indicator-bg: @primary;
@scheduler-yearview-indicator-selected-bg: contrast(@primary);

@scheduler-tooltip-bg: if(@is-dark-theme, lighten(@scheduler-background-color, 20%), null);
@scheduler-tooltip-day-text: @link-text-color;


// Captcha
@captcha-bg: @component-bg;
@captcha-text: @component-text;
@captcha-border: @component-border;


// Popover
@popover-bg: @component-bg;
@popover-text: @component-text;
@popover-border: @component-border;
@popover-shadow: @window-shadow;

@popover-header-bg: @popover-bg;
@popover-header-text: @card-header-text;
@popover-header-border: @card-header-border;

@popover-callout-bg: @popover-bg;
@popover-callout-border: @popover-border;

@popover-callout-shadow-n: @card-focus-callout-box-shadow-n;
@popover-callout-shadow-e: @card-focus-callout-box-shadow-e;
@popover-callout-shadow-s: @card-focus-callout-box-shadow-s;
@popover-callout-shadow-w: @card-focus-callout-box-shadow-w;


// Orgchart
@orgchart-bg: @component-bg;
@orgchart-text: @component-text;
@orgchart-border: @component-border;

@orgchart-node-group-bg: @alt-background-color;
@orgchart-node-group-text: @component-text;
@orgchart-node-group-border: @component-border;

@orgchart-node-group-focus-border: @card-focus-border;
@orgchart-node-group-focus-shadow: @card-focus-shadow;

@orgchart-card-focus-shadow: @card-focus-shadow;

@orgchart-line-fill: @component-border;


// PivotGrid
@pivotgrid-bg: @component-bg;
@pivotgrid-text: @component-text;
@pivotgrid-border: @component-border;

@pivotgrid-alt-border: shade(@pivotgrid-border, 20%);

@pivotgrid-headers-bg: if(@is-dark-theme, @alt-background-color, @header-background-color);
@pivotgrid-headers-text: @header-text-color;
@pivotgrid-headers-border: @component-border;

@pivotgrid-total-bg: shade( @pivotgrid-bg, 10% );
@pivotgrid-total-text: @header-text-color;
@pivotgrid-total-border: @component-border;

@pivotgrid-hover-bg: darken(@pivotgrid-bg, 7%);
@pivotgrid-hover-text: @pivotgrid-text;
@pivotgrid-hover-border: null;

@pivotgrid-selected-bg: rgba(@selected-background-color, .25);
@pivotgrid-selected-text: null;
@pivotgrid-selected-border: null;

@pivotgrid-focus-shadow: @focused-item-shadow;

// PivotGrid Configurator
@pivotgrid-configurator-bg: @component-bg;
@pivotgrid-configurator-text: @component-text;
@pivotgrid-configurator-border: @component-border;

@pivotgrid-configurator-header-bg: null;
@pivotgrid-configurator-header-text: @header-text-color;
@pivotgrid-configurator-header-border: null;

@pivotgrid-configurator-end-shadow: -3px 0px 6px rgba(0, 0, 0, .16);
@pivotgrid-configurator-start-shadow: 3px 0px 6px rgba(0, 0, 0, .16);
@pivotgrid-configurator-top-shadow: 0px -3px 6px rgba(0, 0, 0, .16);
@pivotgrid-configurator-bottom-shadow: 0px 3px 6px rgba(0, 0, 0, .16);

// PivotGrid Calculated Field
@pivotgrid-calculated-field-bg: @component-bg;
@pivotgrid-calculated-field-text: @component-text;
@pivotgrid-calculated-field-border: @component-border;

@pivotgrid-calculated-field-header-bg: null;
@pivotgrid-calculated-field-header-text: @header-text-color;
@pivotgrid-calculated-field-header-border: null;


// Chip
@chip-base-bg: @button-text-color;

@chip-solid-bg: rgba( @chip-base-bg, .08 );
@chip-solid-text: @chip-base-bg;
@chip-solid-border: rgba( @chip-base-bg, .3 );

@chip-solid-hover-bg: rgba( @chip-base-bg, .16 );
@chip-solid-hover-text: null;
@chip-solid-hover-border: null;

@chip-solid-focus-bg: @chip-solid-bg;
@chip-solid-focus-shadow: 0 0 0 2px rgba( @chip-base-bg, .16 );

@chip-solid-selected-bg: rgba( @chip-base-bg, .24 );
@chip-solid-selected-text: null;
@chip-solid-selected-border: null;

@chip-solid-success-bg: rgba( @success, .08 );
@chip-solid-success-text: @success;
@chip-solid-success-border: rgba( @success, .3 );

@chip-solid-success-hover-bg: rgba( @success, .16 );
@chip-solid-success-hover-text: null;
@chip-solid-success-hover-border: null;

@chip-solid-success-focus-bg: null;
@chip-solid-success-focus-text: null;
@chip-solid-success-focus-border: null;

@chip-solid-success-selected-bg: rgba( @success, .24 );
@chip-solid-success-selected-text: null;
@chip-solid-success-selected-border: null;

@chip-solid-warning-bg: rgba( @warning, .08 );
@chip-solid-warning-text: @warning;
@chip-solid-warning-border: rgba( @warning, .3 );

@chip-solid-warning-hover-bg: rgba( @warning, .16 );
@chip-solid-warning-hover-text: null;
@chip-solid-warning-hover-border: null;

@chip-solid-warning-focus-bg: null;
@chip-solid-warning-focus-text: null;
@chip-solid-warning-focus-border: null;

@chip-solid-warning-selected-bg: rgba( @warning, .24 );
@chip-solid-warning-selected-text: null;
@chip-solid-warning-selected-border: null;

@chip-solid-error-bg: rgba( @error, .08 );
@chip-solid-error-text: @error;
@chip-solid-error-border: rgba( @error, .3 );

@chip-solid-error-hover-bg: rgba( @error, .16 );
@chip-solid-error-hover-text: null;
@chip-solid-error-hover-border: null;

@chip-solid-error-focus-bg: null;
@chip-solid-error-focus-text: null;
@chip-solid-error-focus-border: null;

@chip-solid-error-selected-bg: rgba( @error, .24 );
@chip-solid-error-selected-text: null;
@chip-solid-error-selected-border: null;

@chip-solid-info-bg: rgba( @info, .08 );
@chip-solid-info-text: @info;
@chip-solid-info-border: rgba( @info, .3 );

@chip-solid-info-hover-bg: rgba( @info, .16 );
@chip-solid-info-hover-text: null;
@chip-solid-info-hover-border: null;

@chip-solid-info-focus-bg: null;
@chip-solid-info-focus-text: null;
@chip-solid-info-focus-border: null;

@chip-solid-info-selected-bg: rgba( @info, .24 );
@chip-solid-info-selected-text: null;
@chip-solid-info-selected-border: null;

@chip-outline-bg: @component-bg;
@chip-outline-text: @chip-base-bg;
@chip-outline-border: @chip-base-bg;

@chip-outline-hover-bg: @chip-base-bg;
@chip-outline-hover-text: contrast( @chip-outline-hover-bg );
@chip-outline-hover-border: null;

@chip-outline-focus-bg: null;
@chip-outline-focus-text: null;
@chip-outline-focus-border: null;
@chip-outline-focus-shadow: 0 0 0 2px rgba( @chip-base-bg, .08 );

@chip-outline-selected-bg: @chip-outline-hover-bg;
@chip-outline-selected-text: @chip-outline-hover-text;

@chip-outline-success-bg: null;
@chip-outline-success-text: @success;
@chip-outline-success-border: @success;

@chip-outline-success-hover-bg: @success;
@chip-outline-success-hover-text: contrast( @chip-outline-success-hover-bg );
@chip-outline-success-hover-border: null;

@chip-outline-success-focus-bg: nul;
@chip-outline-success-focus-text: null;
@chip-outline-success-focus-border: null;

@chip-outline-success-selected-bg: @chip-outline-success-hover-bg;
@chip-outline-success-selected-text: @chip-outline-success-hover-text;
@chip-outline-success-selected-border: null;

@chip-outline-warning-bg: null;
@chip-outline-warning-text: @warning;
@chip-outline-warning-border: @warning;

@chip-outline-warning-hover-bg: @warning;
@chip-outline-warning-hover-text: contrast( @chip-outline-warning-hover-bg );
@chip-outline-warning-hover-border: null;

@chip-outline-warning-focus-bg: nul;
@chip-outline-warning-focus-text: null;
@chip-outline-warning-focus-border: null;

@chip-outline-warning-selected-bg: @chip-outline-warning-hover-bg;
@chip-outline-warning-selected-text: @chip-outline-warning-hover-text;
@chip-outline-warning-selected-border: null;

@chip-outline-error-bg: null;
@chip-outline-error-text: @error;
@chip-outline-error-border: @error;

@chip-outline-error-hover-bg: @error;
@chip-outline-error-hover-text: contrast( @chip-outline-error-hover-bg );
@chip-outline-error-hover-border: null;

@chip-outline-error-focus-bg: nul;
@chip-outline-error-focus-text: null;
@chip-outline-error-focus-border: null;

@chip-outline-error-selected-bg: @chip-outline-error-hover-bg;
@chip-outline-error-selected-text: @chip-outline-error-hover-text;
@chip-outline-error-selected-border: null;

@chip-outline-info-bg: null;
@chip-outline-info-text: @info;
@chip-outline-info-border: @info;

@chip-outline-info-hover-bg: @info;
@chip-outline-info-hover-text: contrast( @chip-outline-info-hover-bg );
@chip-outline-info-hover-border: null;

@chip-outline-info-focus-bg: nul;
@chip-outline-info-focus-text: null;
@chip-outline-info-focus-border: null;

@chip-outline-info-selected-bg: @chip-outline-info-hover-bg;
@chip-outline-info-selected-text: @chip-outline-info-hover-text;
@chip-outline-info-selected-border: null;

@chip-multiple-selected-icon-bg: rgba( black, .44 );
@chip-multiple-selected-icon-text: #ffffff;

@chip-primary-focus-shadow: 0 0 0 2px rgba( @primary, .16 );
@chip-secondary-focus-shadow: 0 0 0 2px rgba( @secondary, .16 );
@chip-info-focus-shadow: 0 0 0 2px rgba( @info, .16 );
@chip-success-focus-shadow: 0 0 0 2px rgba( @success, .16 );
@chip-warning-focus-shadow: 0 0 0 2px rgba( @warning, .16 );
@chip-error-focus-shadow: 0 0 0 2px rgba( @error, .16 );


// Panelbar
@panelbar-bg: @component-bg;
@panelbar-text: @component-text;
@panelbar-border: @component-border;

@panelbar-header-bg: @panelbar-bg;
@panelbar-header-text: @link-text-color;
@panelbar-header-border: null;
@panelbar-header-gradient: null;

@panelbar-header-hovered-bg: shade( @panelbar-header-bg, 10% );
@panelbar-header-hovered-text: null;
@panelbar-header-hovered-border: null;
@panelbar-header-hovered-gradient: null;

@panelbar-header-focused-bg: null;
@panelbar-header-focused-text: null;
@panelbar-header-focused-border: null;
@panelbar-header-focused-gradient: null;
@panelbar-header-focused-shadow: @focused-item-shadow;

@panelbar-header-hovered-focused-bg: null;
@panelbar-header-hovered-focused-text: null;
@panelbar-header-hovered-focused-border: null;
@panelbar-header-hovered-focused-gradient: null;

@panelbar-header-selected-bg: @selected-background;
@panelbar-header-selected-text: @selected-text-color;
@panelbar-header-selected-border: null;
@panelbar-header-selected-gradient: null;

@panelbar-header-selected-hovered-bg: shade( @panelbar-header-selected-bg, 10% );
@panelbar-header-selected-hovered-text: null;
@panelbar-header-selected-hovered-border: null;
@panelbar-header-selected-hovered-gradient: null;

@panelbar-header-selected-focused-bg: null;
@panelbar-header-selected-focused-text: null;
@panelbar-header-selected-focused-border: null;
@panelbar-header-selected-focused-gradient: null;

@panelbar-header-selected-hovered-focused-bg: null;
@panelbar-header-selected-hovered-focused-text: null;
@panelbar-header-selected-hovered-focused-border: null;
@panelbar-header-selected-hovered-focused-gradient: null;

@panelbar-item-hovered-bg: shade( @panelbar-bg, 5% );
@panelbar-item-hovered-text: null;
@panelbar-item-hovered-border: null;
@panelbar-item-hovered-gradient: null;

@panelbar-item-focused-bg: null;
@panelbar-item-focused-text: null;
@panelbar-item-focused-border: null;
@panelbar-item-focused-gradient: null;
@panelbar-item-focused-shadow: @focused-item-shadow;

@panelbar-item-hovered-focused-bg: null;
@panelbar-item-hovered-focused-text: null;
@panelbar-item-hovered-focused-border: null;
@panelbar-item-hovered-focused-gradient: null;

@panelbar-item-selected-bg: @selected-background;
@panelbar-item-selected-text: @selected-text-color;
@panelbar-item-selected-border: null;
@panelbar-item-selected-gradient: null;

@panelbar-item-selected-hovered-bg: shade( @panelbar-item-selected-bg, 10% );
@panelbar-item-selected-hovered-text: null;
@panelbar-item-selected-hovered-border: null;
@panelbar-item-selected-hovered-gradient: null;

@panelbar-item-selected-focused-bg: null;
@panelbar-item-selected-focused-text: null;
@panelbar-item-selected-focused-border: null;
@panelbar-item-selected-focused-gradient: null;

@panelbar-item-selected-hovered-focused-bg: null;
@panelbar-item-selected-hovered-focused-text: null;
@panelbar-item-selected-hovered-focused-border: null;
@panelbar-item-selected-hovered-focused-gradient: null;


// ColorPalette
@colorpalette-tile-focus-shadow: 0 0 3px 1px rgba( black, .3 ), inset 0 0 0 1px rgba( white, .5 );
@colorpalette-tile-hover-shadow: 0 0 3px 1px rgba( black, .3 ), inset 0 0 0 1px rgba( white, .8 );
@colorpalette-tile-selected-shadow: 0 1px 3px 1px rgba( black, .3 ), inset 0 0 0 1px rgba( white, 1 );


// ColorGradient
@gradient-transparent-to-black: rgba( black, 0), black;
@gradient-transparent-to-white: rgba( white, 0), white;
@gradient-black-to-transparent: black, rgba( black, 0);
@gradient-white-to-transparent: white, rgba( white, 0);
@gradient-rainbow: #ff0000, #ffff00, #00ff00, #00ffff, #0000ff, #ff00ff, #ff0000;

@colorgradient-bg: @component-bg;
@colorgradient-text: @component-text;
@colorgradient-border: @component-border;

@colorgradient-focus-border: null;
@colorgradient-focus-shadow: 1px 1px 7px 1px rgba(0, 0, 0, .3);

@colorgradient-draghandle-bg: transparent;
@colorgradient-draghandle-text: null;
@colorgradient-draghandle-border: rgba( white, .8);
@colorgradient-draghandle-shadow: 0 1px 4px rgba(0, 0, 0, .5);
@colorgradient-draghandle-focus-shadow: 0 1px 4px black;
@colorgradient-draghandle-hover-shadow: @colorgradient-draghandle-focus-shadow;

@colorgradient-input-label-text: @disabled-text-color;


// Color Preview
@color-preview-bg: null;
@color-preview-text: null;
@color-preview-border: @component-border;
@color-preview-hover-border: @hover-border-color;

@color-preview-no-color-bg: white;
@color-preview-no-color-text: @error;
@color-preview-no-color-border: null;


// ColorEditor/FlatColorPicker
@coloreditor-bg: @component-bg;
@coloreditor-text: @component-text;
@coloreditor-border: @component-border;

@coloreditor-focus-border: null;
@coloreditor-focus-shadow: 1px 1px 7px 1px rgba(0, 0, 0, .3);


// Kendo skin

@theme-name: ~"default";

@import "common/mixins.less";
@import "mixins/gradients.less";
@import "mixins/border-radius.less";
@import "themes/type.less";
@import "Default/button/_theme.less";
@import "Default/input/_theme.less";
@import "Default/menu/_theme.less";
@import "Default/dropdowngrid/_theme.less";
@import "Default/daterangepicker/_theme.less";
@import "Default/avatar/_theme.less";
@import "Default/card/_theme.less";
@import "Default/tilelayout/_theme.less";
@import "Default/chat/_theme.less";
@import "Default/calendar/_theme.less";
@import "Default/multiviewcalendar/_theme.less";
@import "Default/pdf-viewer/_theme.less";
@import "Default/scrollview/_theme.less";
@import "Default/switch/_theme.less";
@import "common/adaptive/_theme.less";
@import "Default/filter/_theme.less";
@import "Default/drawer/_theme.less";
@import "Default/rating/_theme.less";
@import "Default/timeline/_theme.less";
@import "Default/breadcrumb/_theme.less";
@import "Default/listgroup/_theme.less";
@import "Default/listbox/_theme.less";
@import "Default/list/_theme.less";
@import "Default/slider/_theme.less";
@import "Default/messagebox/_theme.less";
@import "Default/badge/_theme.less";
@import "Default/checkbox/_theme.less";
@import "Default/radio/_theme.less";
@import "Default/filemanager/_theme.less";
@import "Default/toolbar/_theme.less";
@import "Default/window/_theme.less";
@import "Default/dialog/_theme.less";
@import "Default/stepper/_theme.less";
@import "Default/forms/_theme.less";
@import "Default/tooltip/_theme.less";
@import "Default/treeview/_theme.less";
@import "Default/wizard/_theme.less";
@import "Default/textarea/_theme.less";
@import "Default/appbar/_theme.less";
@import "Default/loader/_theme.less";
@import "Default/gantt/_theme.less";
@import "Default/imageeditor/_theme.less";
@import "Default/expansion-panel/_theme.less";
@import "Default/floatingactionbutton/_theme.less";
@import "Default/action-sheet/_theme.less";
@import "Default/bottom-navigation/_theme.less";
@import "Default/searchbox/_theme.less";
@import "Default/skeleton/_theme.less";
@import "Default/taskboard/_theme.less";
@import "Default/scheduler/_theme.less";
@import "Default/captcha/_theme.less";
@import "Default/popover/_theme.less";
@import "Default/orgchart/_theme.less";
@import "Default/pivotgrid/_theme.less";
@import "Default/chip/_theme.less";
@import "Default/panelbar/_theme.less";
@import "Default/colorpicker/_theme.less";

.k-in,
.k-item
{
    border-color: transparent;
}

// main colors

.k-splitbar .k-resize-handle {
    background-color: @normal-text-color;
    color: @normal-text-color;
    &:hover {
        color: @hover-text-color;
    }
}

.k-splitbar .k-resize-handle {
    background-color: @normal-text-color;
}

.k-block,
.k-widget
{
    background-color: @widget-background-color;
}

.k-block,
.k-widget,
.k-group,
.k-content,
.k-filter-row > th,
.k-separator,
.k-toolbar,
.k-group-footer td,
.k-grid-footer,
.k-footer-template td,
.k-state-default,
.k-state-disabled,
.k-grid-header,
.k-grid-header-wrap,
.k-grid-header-locked,
.k-grid-footer-locked,
.k-grid-content-locked,
.k-grid td,
.k-grid td.k-state-selected,
.k-grid td.k-selected,
.k-grid-footer-wrap,
.k-grouping-header,
.k-grouping-header .k-group-indicator,
.k-panel > .k-item > .k-link,
.k-treemap-tile,
.k-splitbar,
.k-dropzone-active,
.k-upload-files,
.k-upload .k-action-buttons,
.k-editor-dialog .k-tabstrip-items {
    border-color: @widget-border-color;
}

.k-group,
.k-grouping-header,
.k-group-footer td,
.k-grid-footer,
.k-footer-template td,
.k-widget .k-status,
.k-dropzone-hovered,
.k-popup {
    background-color: @group-background-color;
}

.k-grouping-row td,
td.k-group-cell,
.k-resize-handle-inner
{
    background-color: @header-background-color;
}

.k-content,
.k-panel > li.k-item {
    background-color: @content-background-color;
}

.k-alt,
.k-separator,
.k-resource.k-alt,
.k-pivot-layout > tbody > tr:first-child > td:first-child
{
    background-color: @alt-background-color;
}

.k-pivot-rowheaders .k-alt .k-alt,
.k-header.k-alt
{
    background-color: @nested-alt-background-color;
}

.k-input-label {
    color: @input-text;
}

.k-text-error {
    color: @error;
}

.k-block,
.k-widget,
.k-popup,
.k-content,
.k-toolbar
{
    color: @widget-text-color;
}

.k-inverse
{
    color: @inverse-text-color;
}

.k-block
{
    color: @header-text-color;
}

.k-link {
    color: @link-text-color;
}

.k-tabstrip {
    border-color: @secondary-border-color;
    color: @header-text-color;
    background-color: @header-background-color;
}
.k-tabstrip > .k-content {
    border-color: @active-border-color;
}

.k-tabstrip-items .k-link
{
    color: @widget-text-color;
}

.k-header,
.k-menu,
.k-tabstrip,
.k-drag-clue,
.k-treemap-title,
.k-grid-header .k-header > .k-link
{
    color: @header-text-color;
}

.k-header,
.k-grid-header,
.k-menu,
.k-tabstrip,
.k-drag-clue,
.k-toolbar,
.k-grouping-header,
.k-progressbar,
.k-state-highlight,
.k-tabstrip-items .k-item,
.k-panelbar > .k-panelbar-header > .k-link {
    .composite-background(@widget-gradient);
    background-position: 50% 50%;
    background-color: @header-background-color;
}

.k-block,
.k-treemap-tile
{
    background-color: @header-background-color;
}

.k-mediaplayer-toolbar
{
    background-color: fade(@header-background-color, 85%);
}

.k-hr {
    border-color: @widget-border-color;
}

// icons
//Hover state
.k-icon:hover,
.k-state-hover .k-icon,
.k-hover .k-icon,
.k-state-selected .k-icon,
.k-selected .k-icon,
.k-state-focused .k-icon,
.k-focus .k-icon,
.k-column-menu .k-state-hover .k-sprite,
.k-column-menu .k-hover .k-sprite,
.k-column-menu .k-state-active .k-sprite,
.k-column-menu .k-active .k-sprite {
    opacity:1;
}

//Normal state
.k-state-disabled .k-icon,
.k-disabled .k-icon,
.k-column-menu .k-sprite {
    opacity: @default-icon-opacity;
}

.k-i-loading {
    background-image: url('@{image-folder}/loading.gif');
}

.k-loading-image { background-image: url('@{image-folder}/loading-image.gif'); }
.k-loading-color { background-color: @loading-panel-color; }

// Drop Hint
.k-drop-hint-line {
    background-color: @accent;
}

.k-drop-hint-h {
    .k-drop-hint-start {
        border-left-color: @accent;
    }

    .k-drop-hint-end {
        border-right-color: @accent;
    }
}

.k-drop-hint-v {
    .k-drop-hint-start {
        border-top-color: @accent;
    }

    .k-drop-hint-end {
        border-bottom-color: @accent;
    }
}


// Scheduler

.k-scheduler
{
    color: @event-text-color;
    background-color: @scheduler-background-color;
}

.k-scheduler-layout
{
    color: @widget-text-color;
}

.k-scheduler-datecolumn,
.k-scheduler-groupcolumn
{
    background-color: @scheduler-background-color;
    color: @widget-text-color;
}

.k-scheduler-times tr,
.k-scheduler-times th,
.k-scheduler-table td,
.k-scheduler-header th,
.k-scheduler-header-wrap,
.k-scheduler-times
{
    border-color: @cell-border-color;
}

.k-nonwork-hour,
.k-scheduler-dayview .k-today.k-nonwork-hour,
.k-scheduler-timelineview .k-today.k-nonwork-hour
{
    background-color: @scheduler-nonwork-background-color;
}

.k-gantt .k-nonwork-hour
{
    background-color: fade(@base, 20%);
}

.k-gantt .k-header.k-nonwork-hour
{
    background-color: fade(@base, 15%);
}

.k-scheduler-table .k-today,
.k-today > .k-scheduler-datecolumn,
.k-today > .k-scheduler-groupcolumn
{
    background-color: @column-highlight-background-color;
}

.k-scheduler-now-arrow
{
    border-left-color: @current-time-color;
}

.k-scheduler-now-line
{
    background-color: @current-time-color;
}

.k-event,
.k-task-complete
{
    border-color: @event-background-color;
    background: darken(@event-background-color, 15%);
    color: @event-text-color;
}

.k-event-inverse {
    color: @event-inverse-text-color;
}

.k-event.k-state-selected,
.k-event.k-selected
{
    background-position: 0 0;
    .box-shadow(0 0 0 2px @normal-text-color);
}

.k-event .k-resize-handle:after,
.k-task-single .k-resize-handle:after
{
    background-color: @resize-background-color;
}

.k-scheduler-marquee:before,
.k-scheduler-marquee:after
{
    border-color: @selected-background-color;
}

.k-panel > li.k-item
{
    background-color: @panelbar-content-background;
}

// states
.k-state-active,
.k-active,
.k-state-active:hover,
.k-active:hover,
.k-active-filter {
    background-color: @active-background-color;
    border-color: @active-border-color;
    color: @active-text-color;
}

.k-state-highlight
{
    background: @active-background-color;
    color: @active-text-color;
}

.k-state-focused,
.k-focus,
.k-grouping-row .k-state-focused,
.k-grouping-row .k-focus
{
    border-color: @focused-border-color;
}

.k-calendar-container.k-group {
    border-color: @group-border-color;
}

.k-state-selected,
.k-state-selected:link,
.k-state-selected:visited,
.k-selected,
.k-panel > .k-state-selected,
.k-panel > .k-selected,
.k-ghost-splitbar-vertical,
.k-ghost-splitbar-horizontal,
.k-scheduler .k-today.k-state-selected,
.k-scheduler .k-today.k-selected,
.k-marquee-color {
    color: @selected-text-color;
    background-color: @selected-background-color;
    border-color: @selected-border-color;
}

.k-marquee-text
{
    color: @selected-text-color;
}

.k-state-focused,
.k-focus,
.k-listview>.k-state-focused,
.k-listview>.k-focus,
.k-grid-header th.k-state-focused,
.k-grid-header th.k-focus,
td.k-state-focused,
td.k-focus
{
    .box-shadow(@focused-item-shadow);
}

.k-state-focused.k-state-selected,
.k-focus.k-selected,
.k-listview>.k-state-focused.k-state-selected,
.k-listview>.k-focus.k-selected,
td.k-state-focused.k-state-selected,
td.k-focus.k-selected
{
    .box-shadow(@focused-active-item-shadow);
}

.k-state-selected>.k-link,
.k-selected>.k-link {
    color: @selected-text-color;
}

.k-state-hover,
.k-hover,
.k-splitbar-horizontal-hover,
.k-splitbar-vertical-hover,
.k-filebrowser-dropzone
{
    color: @hover-text-color;
    background-color: @hover-background-color;
    border-color: @hover-border-color;
}

.k-state-hover,
.k-hover,
div.k-filebrowser-dropzone em {
    .composite-background(@hover-gradient);
}



// Pager
.k-pager-wrap {
    .composite-background(@widget-gradient);
    border-color: @widget-border-color;
    color: @header-text-color;
    background-color: @header-background-color;
    background-position: 50% 50%;

    .k-link {
        border-color: @widget-border-color;
    }
    .k-link:hover {
        .composite-background(@hover-gradient);
        border-color: @hover-border-color;
        color: @hover-text-color;
        background-color: @hover-background-color;
    }
    .k-link.k-state-disabled,
    .k-link.k-disabled {
        color: @normal-text-color;
        border-color: @widget-border-color;
    }
    .k-link.k-state-selected,
    .k-link.k-selected {
        color: @selected-text-color;
        background-color: @selected-background-color;
        border-color: @selected-border-color;
    }
    .k-link:focus {
        .box-shadow( @focused-item-shadow );
    }


    .k-pager-numbers .k-link {
        border-color: transparent;
    }

    .k-pager-refresh {
        border-color: transparent;
    }

}

.k-state-active,
.k-active,
.k-state-active:hover,
.k-active:hover,
.k-state-active>.k-link,
.k-active>.k-link
{
    .composite-background(@active-gradient);
}

.k-state-selected,
.k-selected {
    .composite-background(@selected-gradient);
}

.k-state-hover>.k-link,
.k-hover>.k-link,
div.k-filebrowser-dropzone em
{
    color: @hover-text-color;
}

.k-state-error
{
    border-color: @error-border-color;
    background-color: @error-background-color;
    color: @error-text-color;
}

.k-state-disabled,
.k-disabled {
    opacity: .6;
}

.k-loading-mask.k-state-selected,
.k-loading-mask.k-selected {
    border-width: 0;
    background-image: none;
    background-color: transparent;
}

.k-state-disabled,
.k-state-disabled .k-link,
.k-dropzone em {
    color: @disabled-text-color;
}

.k-dropzone .k-upload-status
{
    color: @disabled-text-color;
}
.k-file .k-upload-status {
    color: @normal-text-color;
}

// Progressbar

.k-progressbar-indeterminate
{
    background: url('@{image-folder}/indeterminate.gif');
}

.k-progressbar-indeterminate .k-progress-status-wrap,
.k-progressbar-indeterminate .k-state-selected,
.k-progressbar-indeterminate .k-selected
{
    display: none;
}

.k-progressbar .k-item {
    border-color: @widget-border-color;
}

.k-progressbar .k-selected {
    color: @selected-text-color;
    background-color: @selected-background-color;
}

// Tooltip
.k-chart-crosshair-tooltip,
.k-chart-shared-tooltip
{
    .composite-background(@widget-gradient);
    background-position: 50% 50%;
    background-color: @tooltip-bg;
    color: @tooltip-text;
    border-color: transparent;
    .box-shadow(0 4px 6px @shadow-color);
}

// Splitter
.k-splitbar
{
    background-color: @splitbar-background-color;
}

.k-restricted-size-vertical,
.k-restricted-size-horizontal
{
    background-color: @error-text-color;
}

// Upload
.k-dropzone {
    color: @header-text-color;
    background-color: @header-background-color;
    .composite-background(@widget-gradient);
    background-position: 50% 50%;
}
.k-file {
    background-color: @active-background-color;
    border-color: @cell-border-color;
}
.k-file:last-child {
    border-radius: 0 0 @border-radius @border-radius;
}

.k-file-progress .k-progress {
    background-color: @upload-progress-background-color;
}

.k-file-success {

    .k-file-validation-message,
    .k-upload-pct {
        color: @upload-success-text-color;
    }

    .k-progress {
        background-color: @upload-success-background-color;
    }
}

.k-file-error,
.k-file-invalid {

    .k-file-validation-message,
    .k-upload-pct {
        color: @upload-error-text-color;
    }

    .k-progress {
        background-color: @upload-error-background-color;
    }
}

.k-file-extension-wrapper,
.k-multiple-files-extension-wrapper,
.k-file-group-wrapper,
.k-multiple-files-group-wrapper,
.k-file-invalid-group-wrapper {
    color: @disabled-text-color;
    border-color: @disabled-text-color;
}

.k-file-extension-wrapper:before,
.k-multiple-files-extension-wrapper:before {
    background-color: @widget-background-color;
    border-color: transparent transparent @disabled-text-color @disabled-text-color;
}

.k-multiple-files-extension-wrapper:after {
    border-top-color: @disabled-text-color;
    border-left-color: @disabled-text-color;
}

.k-file-size,
.k-file-information,
.k-file-validation-message {
    color: @disabled-text-color;
}

.k-upload-action:focus:active:not(.k-state-disabled):not([disabled]),
.k-upload-action:focus:active:not(.k-disabled):not([disabled]) {
    box-shadow: @button-focused-shadow;
}

// TreeMap

.k-leaf,
.k-leaf.k-state-hover,
.k-leaf.k-hover {
    color: #fff;
}

.k-leaf.k-inverse,
.k-leaf.k-inverse.k-state-hover,
.k-leaf.k-inverse.k-hover {
    color: #000;
}

// Shadows
.k-widget
{
    .box-shadow(@widget-shadow);
}

.k-upload {
    .box-shadow(none);
}

.k-state-hover,
.k-hover
{
    .box-shadow(@hover-shadow);
}

.k-state-selected,
.k-selected
{
    .box-shadow(@selected-shadow);
}

.k-state-active,
.k-active
{
    .box-shadow(@active-shadow);
}

.k-grid tr:hover {
    background-color: @select-hover-background-color;
    .composite-background(@hover-gradient);
    background-position: 50% 50%;
}

.k-grid .k-filter-row:hover,
.k-pivot-rowheaders .k-grid tr:hover {
    background: none;
}

.k-grid tr.k-state-selected:hover,
.k-grid tr.k-selected:hover,
.k-grid td.k-state-selected:hover,
.k-grid td.k-selected:hover,
.k-grid td.k-grid-content-sticky.k-state-selected:hover,
.k-grid td.k-grid-content-sticky.k-selected:hover {
    background-color: @grid-selected-hover-bg;
    .composite-background(none);
}

.k-popup,
.k-grid .k-filter-options,
.k-time-popup,
.k-datepicker-calendar,
.k-filebrowser .k-image {
    .box-shadow(0 2px 2px 0 @shadow-color);
}

.k-treemap-tile.k-state-hover,
.k-treemap-tile.k-hover
{
    .box-shadow(inset 0 0 0 3px @widget-border-color);
}

.k-shadow
{
    .box-shadow(0 1px 2px 0 @shadow-color);
}

.k-inset
{
    .box-shadow(inset 0 1px 1px @shadow-color);
}

// Editor
.k-editor-inline {

    .selection(@selected-border-color);

    // Hover & Actve state
    &:hover,
    &.k-state-active,
    &.k-active {
        border-color: @widget-border-color;
    }
}
.k-window-content.editorToolbarWindow {
    color: @toolbar-text;
    background-color: @toolbar-bg;
}

// Notification
@import "themes/notification.less";

// Gantt

.k-gantt .k-treelist
{
    background: @alt-background-color;
}

.k-gantt .k-treelist .k-alt
{
    background-color: contrast(@alt-background-color, lighten(@alt-background-color, 5%), darken(@alt-background-color, 5%), 0.5);
}

.k-gantt .k-treelist tr:hover {
   .composite-background(@widget-gradient);
    background-color: contrast(@widget-background-color, darken(@header-background-color, 20%), @header-background-color, .5);
}

.k-gantt .k-treelist .k-state-selected,
.k-gantt .k-treelist .k-selected,
.k-gantt .k-treelist .k-state-selected td,
.k-gantt .k-treelist .k-selected td,
.k-gantt .k-treelist .k-alt.k-state-selected,
.k-gantt .k-treelist .k-alt.k-selected,
.k-gantt .k-treelist .k-alt.k-state-selected > td,
.k-gantt .k-treelist .k-alt.k-selected > td
{
    background-color: @selected-background-color;
    .composite-background(@selected-gradient);
}

.k-gantt .k-treelist .k-state-selected:hover,
.k-gantt .k-treelist .k-selected:hover,
.k-gantt .k-treelist .k-state-selected:hover td,
.k-gantt .k-treelist .k-selected:hover td
{
    background-color: @grid-selected-hover-bg;
    .composite-background(none);
}

.k-task-dot:after
{
    background-color: @widget-text-color;
    border-color: @widget-text-color;
}

.k-task-dot:hover:after
{
    background-color: @active-background-color;
}

.k-task-summary
{
    border-color: @task-summary-color;
    background: @task-summary-color;
}

.k-task-milestone,
.k-task-summary-complete
{
    border-color: @widget-text-color;
    background: @widget-text-color;
}

.k-state-selected.k-task-summary,
.k-selected.k-task-summary
{
    border-color: @task-summary-selected-color;
    background: @task-summary-selected-color;
}

.k-state-selected.k-task-milestone,
.k-selected.k-task-milestone,
.k-state-selected .k-task-summary-complete,
.k-selected .k-task-summary-complete
{
    border-color: @selected-background-color;
    background: @selected-background-color;
}

.k-task-single
{
    background-color: lighten(@event-background-color, 7%);
    border-color: @event-background-color;
    color: @event-text-color;
}

.k-state-selected.k-task-single,
.k-selected.k-task-single
{
    border-color: @selected-border-color;
}

.k-gantt-line
{
    background-color: @widget-text-color;
    color: @widget-text-color;
}

.k-state-selected.k-gantt-line,
.k-selected.k-gantt-line
{
    background-color: @selected-background-color;
    color: @selected-background-color;
}

.k-resource
{
    background-color: @widget-background-color;
}

// Border radius
.k-block,
.k-drag-clue,
.k-touch-scrollbar,
.k-inline-block,
.k-grid .k-filter-options,
.k-grouping-header .k-group-indicator,
.k-calendar-container,
.k-editor-inline,
.k-upload {
    border-radius: @border-radius;
}

.k-block > .k-header,
.k-tabstrip-items .k-item,
.k-tabstrip-items .k-link {
    border-radius: @border-radius @border-radius 0 0;
}


.k-colorpicker .k-selected-color
{
    border-radius: @inner-border-radius 0 0 @inner-border-radius;
}

.k-rtl .k-colorpicker .k-selected-color
{
    border-radius: 0 @inner-border-radius @inner-border-radius 0;
}

.k-more-events,
.k-event,
.k-task-single,
.k-task-complete,
.k-event .k-link
{
    border-radius: @inner-border-radius;
}

.k-scheduler-mobile .k-event
{
    border-radius: (@inner-border-radius - 1);
}

.k-nodata {
    color: @disabled-text-color;
}

.k-tabstrip:focus
{
    .box-shadow(@focused-shadow);
}

.k-tabstrip-items .k-state-default .k-link
{
    color: @tabstrip-tabs-color;
}

.k-tabstrip-items .k-state-hover .k-link,
.k-tabstrip-items .k-hover .k-link
{
    color: @hover-text-color;
}

.k-tabstrip-items .k-state-default
{
    border-color: @tabstrip-items-border;
}

.k-tabstrip-items .k-state-hover,
.k-tabstrip-items .k-hover
{
    border-color: @hover-border-color;
}

.k-tabstrip-items .k-state-active,
.k-tabstrip-items .k-active
{
    background-color: @active-background-color;
    .composite-background(@active-gradient);
    border-color: @active-border-color;
}

.k-tabstrip-top > .k-tabstrip-items .k-state-active,
.k-tabstrip-top > .k-tabstrip-items .k-active {
   border-bottom-color: @widget-background-color;
}

.k-tabstrip .k-content.k-state-active,
.k-tabstrip .k-content.k-active
{
    background-color: @tabstrip-active-background;
    color: @widget-text-color;
}

.k-tabstrip .k-content:focus,
.k-tabstrip .k-content.k-state-focused,
.k-tabstrip .k-content.k-focus {
    outline-color: @tabstrip-content-border-focused;
}

.k-column-menu,
.k-column-menu .k-item,
.k-grid-columnmenu-popup,
.k-columnmenu-item-wrapper {
    border-color: @secondary-border-color;
}

.k-column-menu .k-separator
{
    border-color: @secondary-border-color;
    background-color: transparent;
}

.k-column-menu-group-header-text {
    color: @normal-text-color;
    border-color: @normal-text-color;
}

.k-grid-filter.k-state-active,
.k-grid-filter.k-active
{
    background-color: @active-filter-background-color;
}

.k-grouping-row td,
.k-group-footer td,
.k-grid-footer td
{
    color: @secondary-text-color;
    border-color: @secondary-border-color;
    font-weight: bold;
}

.k-grouping-header
{
    color: @secondary-text-color;
}

.k-grid td.k-state-focused,
.k-grid td.k-focus
{
    .box-shadow(@focused-item-shadow);
}

.k-header,
.k-grid-header-wrap,
.k-grid .k-grouping-header,
.k-grid-header,
.k-grouping-header .k-group-indicator,
.k-gantt-toolbar .k-state-default
{
    border-color: @secondary-border-color;
}

.k-scheduler-table .k-icon,
.k-grid .k-hierarchy-cell .k-icon
{
    background-color: @icon-background-color;
    border-radius: @border-radius;
}

.k-scheduler-table .k-state-hover .k-icon,
.k-scheduler-table .k-hover .k-icon
{
    background-color: transparent;
}

.k-chart .k-mask {
    background-color: @background;
    opacity: 0.68;
}

.k-chart .k-selection {
    border-color: rgba(0,0,0,.2);
    box-shadow: inset 0 1px 8px rgba(0,0,0,.1);
    transition: box-shadow .2s linear, border-color .2s linear;
}

.k-chart .k-selection:hover {
    border-color: rgba(0,0,0,.3);
    box-shadow: inset 0 3px 8px rgba(0,0,0,.2);
}

.k-chart .k-handle {
    background-color: #fcfcfc;
    box-shadow: 0 0 0 1px rgba(0,0,0,.1);
}

.k-chart .k-handle:hover {
    background-color: #ffffff;
    border-color: #b8b8b8;
    box-shadow: 0 0 0 2px rgba(111,101,96,.5);
}
.k-chart .k-navigator-hint .k-tooltip {
    border: 3px solid #ffffff;
    box-shadow: 0 0 0 3px rgba(0,0,0,.2);
    background: #ffffff;
    color: #242424;
}

.k-chart .k-navigator-hint .k-scroll {
    background: fadeout(@accent, 30%);
    height: 4px;
}

// Map
.k-map {
    border-color: @widget-border-color;
    color: @widget-text-color;
    background-color: @widget-background-color;


    // Controls
    .k-navigator {
        border-color: @button-border-color;
        color: @button-text-color;
        background-color: @button-background-color;
        background-position: 50% 50%;
        .composite-background(@button-gradient);
        .box-shadow(0 1px 2px 0 @shadow-color);
    }
    .k-zoom-control {
        .box-shadow(0 1px 2px 0 @shadow-color);
    }


    // Attribution
    .k-attribution {}


    // Marker
    .k-marker {
        color: @accent;
        text-shadow: 0 0 3px rgba(0, 0, 0, .4);
    }
}

@import "themes/spreadsheet.less";

@spreadsheet-page-orientation-gradient: @primary-gradient;


// Timepicker infinite
// Timepicker header
.k-time-header {

    .k-time-now {
        color: @accent;
        background: transparent;

        &:hover,
        &:focus {
            color: @link-hovered-text;
        }
    }
}

// Timepicker content
.k-time-list-wrapper {
    background-color: @group-background-color;

    .k-title {
        .fill(
            @disabled-text-color,
            @header-background-color,
            @widget-border-color,
        );

        .composite-background(@header-gradient);

        background: @group-background-color;
    }

    &.k-state-focused,
    &.k-focus {
        .k-title {
            color: @time-list-title-focus;
            opacity: 1;
        }

        &::before,
        &::after {
            background-color: @time-list-focused-bg;
        }
    }
}

.k-time-list {
    &::before,
    &::after {
        @shadow-size: 3em;
        box-shadow: 0 0 @shadow-size (@shadow-size / 2) @group-background-color;
    }

    .k-item:hover {
        color: @accent;
    }
}

.k-time-container {
    background: transparent;
}

.k-time-highlight {
    background-color: @component-bg;
    border-color: @time-list-highlight-color;
}

.k-datetime-container {
    .k-date-tab {

        .k-datetime-buttongroup,
        .k-datetime-selector {
            background-color: @component-bg;
        }
    }
}


.k-grid-header {
    .k-i-sort-asc-sm,
    .k-i-sort-desc-sm,
    .k-sort-order {
        color: inherit;
    }
}


// Scheduler other month
.k-scheduler .k-other-month .k-nav-day {
    opacity: .6;
}


// Grid Sticky columns
.k-master-row {
    .k-grid-content-sticky {
        background-color: @grid-bg;
    }

    &.k-alt .k-grid-content-sticky {
        background-color: @grid-alt-bg;
    }

    &.k-state-selected .k-grid-content-sticky,
    &.k-selected .k-grid-content-sticky {
        .composite-background(@grid-selected-gradient);
        background-color: @grid-selected-bg;
        background-position: 50% 50%;
    }

    &:hover .k-grid-content-sticky,
    &.k-state-hover .k-grid-content-sticky,
    &.k-hover .k-grid-content-sticky {
        .composite-background(@grid-hover-gradient);
        background-color: @grid-hover-bg;
    }

    &:hover .k-grid-content-sticky.k-state-selected,
    &:hover .k-grid-content-sticky.k-selected,
    &.k-state-hover .k-grid-content-sticky.k-state-selected,
    &.k-hover .k-grid-content-sticky.k-selected {
        background-color: @grid-selected-bg;
        .composite-background(@grid-selected-gradient);
    }

    td.k-grid-content-sticky.k-state-selected,
    td.k-grid-content-sticky.k-selected {
        background-color: @grid-selected-bg;
    }
}

.k-grid-header .k-grid-header-sticky,
.k-master-row .k-grid-content-sticky,
.k-grouping-row .k-grid-content-sticky,
.k-footer-template .k-grid-footer-sticky {
    border-left-color: @grid-sticky-border;
    border-right-color: @grid-sticky-border;
}

.k-grid-header .k-filter-row .k-grid-header-sticky {
    .composite-background(@widget-gradient);
    background-position: 50% 53%;
    background-color: @header-background-color;
}

// Locked columns
.k-grid-header-locked,
.k-grid-content-locked,
.k-grid-header-locked .k-header,
.k-grid-content-locked td {
    border-left-color: @grid-sticky-border;
    border-right-color: @grid-sticky-border;
}

// Grid Multi Filter Select All Checkbox
.k-check-all-wrap {
    border-color: @widget-border-color;
}
