/*!
 * 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: darken(@background, 21%);
@widget-gradient: null;
@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;


// Error
@error-text-color: lighten(@normal-text-color, 22%);
@error-background-color: lighten(@error, 2%);
@error-border-color: darken(@background, 14%);


// Button
@button-text-color: contrast(@button-background-color);
@button-background-color: @hover-background;
@button-border-color: @button-background-color;
@button-gradient: null;
@button-shadow: null;

@button-hover-text-color: contrast(@button-hover-background-color);
@button-hover-background-color: darken(@hover-background, 7%);
@button-hover-border-color: @button-hover-background-color;
@button-hover-gradient: null;
@button-hover-shadow: null;

@button-active-background: @base;
@button-active-text-color: contrast(@button-active-background);
@button-active-border-color: @button-active-background;
@button-active-gradient: null;
@button-active-shadow: null;

@button-focused-border-color: @base;
@button-focused-shadow: null;
@button-focused-active-shadow: null;

// Primary button
@primary-text-color: contrast(@primary-background-color);
@primary-background-color: @base;
@primary-border-color: @primary-background-color;
@primary-gradient: null;
@primary-shadow: null;

@primary-hover-text-color: contrast(@primary-hover-background-color);
@primary-hover-background-color: darken(@primary-background-color, 8%);
@primary-hover-border-color: @primary-hover-background-color;
@primary-hover-gradient: null;
@primary-hover-shadow: null;

@primary-active-text-color: contrast(@primary-active-background-color);
@primary-active-background-color: darken(@primary-background-color, 13%);
@primary-active-border-color: darken(@primary-active-background-color, 2%);
@primary-active-gradient: null;
@primary-active-shadow: null;

@primary-focused-border-color: darken(@primary-active-background-color, 2%);
@primary-focused-shadow: null;
@primary-focused-active-shadow: null;

@primary-disabled-text-color: lighten(@normal-text-color, 29%);
@primary-disabled-background-color: darken(@hover-background, 6%);
@primary-disabled-border-color: darken(@hover-background, 6%);
@primary-disabled-gradient: null;


// Input new
@input-text: @component-text;
@input-bg: @component-bg;
@input-border: @drop-down-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: @component-border;
@kendo-slider-track-border: null;
@kendo-slider-selection-bg: @base; // @primary

@kendo-slider-thumb-bg: @base; // @primary
@kendo-slider-thumb-border: @base; // @primary

@kendo-slider-thumb-hover-bg: shade( @base, 8% ); // @primary
@kendo-slider-thumb-hover-border: shade( @base, 8% ); // @primary

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

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


// Generic
@sprite-image: url('@{image-folder}/sprite.png');
@inverse-text-color: @background;
@link-text-color: @base;
@header-text-color: @normal-text-color;
@header-background-color: @background;
@group-background-color: @background;
@group-border-color: darken(@background, 21%);
@content-background-color: @background;
@hover-background-color: @hover-background;
@hover-border-color: darken(@background, 44%);
@hover-shadow: none;
@select-text-color: @background;
@select-background-color: @base;
@select-border-color: @base;
@select-hover-background-color: darken(@hover-background, 4%);
@select-group-background-color: @background;
@selected-background-color: @accent;
@selected-border-color: @accent;
@selected-shadow: none;
@focused-border-color: @base;
@focused-shadow: none;
@focused-item-shadow: none;
@focused-active-item-shadow: none;
@active-text-color: @normal-text-color;
@active-gradient: none;
@active-background-color: @background;
@active-border-color: @base;
@active-shadow: none;
@disabled-text-color: darken(@hover-background, 31%);


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

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

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

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

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


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

@tooltip-bg: @background;
@tooltip-text: @normal-text-color;
@tooltip-border: darken(@background, 21%);


@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: @hover-background;
@draghandle-border-radius: @border-radius;
@draghandle-border-color: @base;
@draghandle-background-color: @base;
@draghandle-shadow: none;
@draghandle-hover-border-color: @base;
@draghandle-hover-background-color: @base;
@draghandle-hover-shadow: none;
@alt-background-color: @background;
@nested-alt-background-color: darken(@alt-background-color, 8%);
@cell-border-color: darken(@background, 21%);
@column-highlight-background-color: darken(@background, 3%);
@active-filter-background-color: @background;
@scheduler-background-color: @background;
@current-time-color: darken(@background, 14%);
@event-background-color: lighten(@base, 28%);
@event-text-color: contrast( @event-background-color );
@event-inverse-text-color: contrast( @event-text-color );
@scheduler-nonwork-background-color: @background;
@resize-background-color: @background;
@upload-progress-background-color: @info;
@upload-progress-text-color: @normal-text-color;
@upload-success-background-color: @success;
@upload-success-text-color: @success;
@upload-error-background-color: @error;
@upload-error-text-color: @error;
@task-summary-color: darken(@background, 18%);
@task-summary-selected-color: @hover-text-color;
@loading-panel-color: @background;
@shadow-color: rgba(0, 0, 0, .18);
@shadow-inset-color: darken(@background, 20%);
@list-border-radius: @border-radius;
@inner-border-radius: @border-radius;
@default-icon-opacity: .6;
@menu-border-color: @background;
@tabstrip-items-border: transparent;
@tabstrip-active-background: @background;
@tabstrip-tabs-color: @normal-text-color;
@form-widget-color: @normal-text-color;
@drop-down-border-color: darken(@background, 27%);
@drop-down-hover-border-color: darken(@hover-background, 41%);
@drop-down-focused-border-color: @base;
@drop-down-background: @background;
@drop-down-text-color: @normal-text-color;
@secondary-border-color: darken(@background, 21%);
@secondary-text-color: @normal-text-color;
@numeric-selected-background: @base;
@panelbar-items-border: darken(@background, 21%);
@panelbar-content-background: @background;
@panelbar-content-color: @normal-text-color;
@filter-menu-content-background: @background;
@icon-background-color: transparent;
@disabled-background-color: @hover-background;
@disabled-border-color: @hover-background;
@disabled-gradient: none;
@tabstrip-tabs-hover-color: @normal-text-color;
@tabstrip-content-border-focused: #656565;
@pager-hover-color: @hover-text-color;
@form-widgets-border-color: darken(@background, 27%);
@pager-text-color: @normal-text-color;
@draghandle-selected-background: @base;
@upload-status-color: darken(@error, 11%);
@form-widgets-shadow: none;
@menu-active-background: @accent;
@concave-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.125);
@secondary-background-color: lighten(@hover-background, 2%);
@secondary-hover-background-color: lighten(@normal-text-color, 24%);
@secondary-header-color: rgba(256, 256, 256, 0.5);
@secondary-header-background-color: darken(@base, 13%);
@accent-color: lighten(@base, 17%);
@input-validation-error: @error;


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


// Toolbar
@toolbar-bg: @header-background-color;
@toolbar-text: @normal-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: null;

/// Background color of selected treeview items.
/// @group treeview
@kendo-treeview-item-selected-bg: @widget-background-color;
/// Text color of selected treeview items.
/// @group treeview
@kendo-treeview-item-selected-text: @select-background-color;
/// 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: null;

/// 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;

/// 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: null;
@card-focus-shadow: 0 3px 4px 0 rgba(black, .06);

@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: darken(@error, 30%);
@card-error-bg: mix( white, @card-error, 70%);
@card-error-text: mix(black, @card-error);
@card-error-border: mix(white, @card-error);

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

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

@card-info: darken(@info, 30%);
@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 rgba(black, .06);
@card-focus-callout-box-shadow-e: 2px -1px 4px 0 rgba(black, .06);
@card-focus-callout-box-shadow-s: 2px -2px 4px 0 rgba(black, .06);
@card-focus-callout-box-shadow-w: 2px -1px 4px 0 rgba(black, .06);


//TileLayout
@tilelayout-bg: darken(@background, 3%);

@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: null;

@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: null;

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

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

@grid-selected-hover-bg: desaturate(@selected-background-color, 35%);


// 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: none;

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

@calendar-week-cell-bg: contrast(@calendar-bg, lighten(@calendar-bg, 8), darken(@calendar-bg, 8), .5);
@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 0 0 0px 1px @base;


// 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: false;


// 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: @normal-background;
@switch-on-text: @normal-text-color;
@switch-on-border: darken(@background, 27%);
@switch-on-gradient: null;
@switch-on-shadow: null;
@switch-on-focused-shadow: null;

@switch-on-focused-bg: @switch-on-bg;
@switch-on-focused-text: @switch-on-text;
@switch-on-focused-border: @button-focused-border-color;
@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: darken(@background, 44%);
@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: @primary-gradient;
@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: @button-focused-border-color;
@switch-on-handle-focused-gradient: @switch-on-handle-gradient;

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

@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: @button-focused-border-color;
@switch-off-handle-focused-gradient: @switch-off-handle-gradient;

@switch-off-handle-hovered-bg: darken(@background, 8%);
@switch-off-handle-hovered-text: @switch-off-text;
@switch-off-handle-hovered-border: @switch-off-handle-hovered-bg;
@switch-off-handle-hovered-gradient: @button-hover-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: @base;

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

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

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

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


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

// Adaptive Scheduler
@adaptive-scheduler-current-text: @normal-text-color;
@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: inset 0 0 0 1px @focused-border-color;

@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: @widget-border-color;
@rating-icon-selected-text: @primary-background-color;
@rating-icon-hover-text: @primary-background-color;
@rating-icon-focused-text: @primary-background-color;

@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: @base;


// 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 rgba(@primary, .4);

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

@timeline-circle-color: @base;


// Breadcrumb
@breadcrumb-focused-shadow: inset 0 0 0 1px @focused-border-color;

@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: @base;
@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: darken(@warning, 30%);
@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: @base;
@checkbox-border: contrast(@checkbox-bg, darken(@checkbox-bg, 20%), lighten(@checkbox-bg, 30%));
@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: none;
@checkbox-focused-checked-border: @checkbox-focused-border;
@checkbox-focused-checked-shadow: none;
@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: darken(@success, 30%);
@stepper-label-error-text: darken(@error, 30%);
@stepper-label-disabled-text: mix(@component-text, #ffffff, 60%);


// 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: @event-background-color;
@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: @expander-text;

@expander-title-text: @primary;

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

@expander-header-hover-bg: null;
@expander-header-focused-bg: null;
@expander-header-focused-shadow: inset 0 0 0 2px rgba(0, 0, 0, .13);


// 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: @component-text;
@fab-item-bg: @component-bg;
@fab-item-border: @component-border;

@fab-item-icon-text: contrast( #ebebeb );
@fab-item-icon-bg: #ebebeb;
@fab-item-icon-border: #ebebeb;

@fab-item-shadow: @fab-shadow;
@fab-item-focus-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: darken(@background, 3%);
@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: @card-primary-text;
@taskboard-card-title-focus-text: darken( @card-primary-text, 13% );
@taskboard-card-title-hover-text: lighten( @card-primary-text, 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: darken( @taskboard-card-text, 15% );
@taskboard-card-selected-bg: @taskboard-card-bg;
@taskboard-card-selected-border: darken( @card-primary-text, 15% );

@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: @selected-text-color;
@scheduler-yearview-indicator-selected-bg: contrast(@selected-text-color);

@scheduler-tooltip-bg: 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: darken(@background, 3%);
@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: @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: null;
@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, 5% );
@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: ~"office365";

@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 "Office365/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";

// Menu
.k-menu:not(.k-context-menu) .k-link {
    .fill( @text: @menu-text );
}
.k-menu-link.k-link.k-state-active,
.k-menu-link.k-link.k-active {
    background-color: #0072c6;
    color: white;
}

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

// main colors
.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-header,
.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-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-panelbar > .k-item > .k-link,
.k-panel > .k-item > .k-link,
.k-panelbar .k-panel,
.k-panelbar .k-content,
.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-panelbar > li.k-item,
.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-items-wrapper {
    color: @button-text-color;
    background-color: @button-background-color;
}

.k-tabstrip-items .k-link,
.k-panelbar > li > .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-tabstrip-items .k-item {
    .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: fade(@header-background-color, 85%);
}

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

.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
{
    background-color: @scheduler-nonwork-background-color;
}

.k-gantt .k-nonwork-hour
{
    background-color: rgba(0,0,0, .02);
}

.k-gantt .k-header.k-nonwork-hour
{
    background-color: rgba(0,0,0, .2);
}

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

.k-scheduler-weekview,
.k-scheduler-workWeekview {

    .k-scheduler-header th.k-today {
        position: relative;

        &:before {
            content: "";
            display: block;
            position: absolute;
            left: 0;
            bottom: 0;
            right: 0;
            border-bottom: 3px solid @select-border-color;
        }
    }
}

.k-scheduler-monthview .k-today {
    position: relative;

    &:before {
        content: "";
        display: block;
        position: absolute;
        left: 0;
        top: 0;
        right: 0;
        border-top: 3px solid @select-border-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: @event-background-color;
    color: @event-text-color;
}

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

.k-scheduler-content .k-event.k-state-selected,
.k-scheduler-content .k-event.k-selected
{
    background-position: 0 0;
    box-shadow: 0 0 0 2px @normal-text-color, inset 4px 0 0 0 rgba(255, 255, 255, .5);
}

.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-panelbar .k-content,
.k-panelbar .k-panel,
.k-panelbar .k-item
{
    background-color: @panelbar-content-background;
    color: @panelbar-content-color;
    border-color: @secondary-border-color;
}

.k-panelbar > li > .k-link
{
    color: @panelbar-content-color;
}

.k-panelbar > .k-item > .k-link
{
    border-color: @secondary-border-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,
.k-tabstrip .k-state-active,
.k-tabstrip .k-active {
    background-color: @hover-background;
    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-selected:link,
.k-state-selected:visited,
.k-selected:visited,
.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,
td.k-state-focused,
td.k-focus {
    .box-shadow(@focused-item-shadow);
}

.k-listview>.k-state-focused,
.k-listview>.k-focus,
.k-listview > .k-state-focused.k-state-selected,
.k-listview > .k-focus.k-state-selected,
.k-listview > .k-state-focused.k-selected,
.k-listview > .k-focus.k-selected {
    .box-shadow(inset 0 0 0 1px @focused-border-color);
}

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

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

.k-state-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,
.k-other-month.k-state-hover .k-link,
.k-other-month.k-hover .k-link,
div.k-filebrowser-dropzone em {
    .composite-background(@hover-gradient);
}




// Pager
.k-pager-wrap {
    border-color: @secondary-border-color;
    color: @header-text-color;
    background-color: @header-background-color;

    &:focus,
    &.k-focus,
    &.k-state-focused,
    &.k-focus {
        .box-shadow(inset 0 0 0 1px @focused-border-color);
    }

    .k-link {
        border-color: transparent;
        color: @link-text-color;
        background-color: transparent;
    }
    .k-link:hover {
        color: @hover-text-color;
        background-color: @hover-background-color;
        border-color: @hover-border-color;
    }
    .k-link.k-state-disabled,
    .k-link.k-disabled {
        color: @link-text-color;
    }
    .k-link:focus {
        .box-shadow( inset 0 0 0 1px @focused-border-color );
    }


    .k-pager-numbers .k-link {
        border-color: transparent;
        background-color: transparent;
        color: @widget-text-color;
    }
    .k-pager-numbers .k-link:hover {
        background-color: @hover-background-color;
    }
    .k-pager-numbers .k-state-selected,
    .k-pager-numbers .k-selected {
        border-top-color: @link-text-color;
        color: @link-text-color;
    }
}

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

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

.k-state-hover>.k-link,
.k-hover>.k-link,
.k-other-month.k-state-hover .k-link,
.k-other-month.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-other-month,
.k-other-month .k-link,
.k-dropzone em,
.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;
}

// Tooltip
.k-chart-crosshair-tooltip,
.k-chart-shared-tooltip
{
    border-color: @tooltip-border;
    background-color: @tooltip-bg;
    color: @tooltip-text;
}

// 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-textbox:hover {
    border-color: @hover-border-color;
}

// 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 td.k-state-selected.k-state-focused,
.k-grid td.k-state-selected.k-focus,
.k-grid td.k-selected.k-state-focused,
.k-grid td.k-selected.k-focus
{
    background-color: lighten(@selected-background-color, 3%);
}

.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);
}

// Selection
.k-editor-inline {
    .selection(@selected-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: darken(@alt-background-color, 10%);
}

.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;
}

.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;
}

.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;
}

// PivotGrid

// 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-panelbar .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,
.k-panelbar > li.k-state-default > .k-link
{
    color: @tabstrip-tabs-color;
}

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

.k-panelbar > li.k-state-hover > .k-link,
.k-panelbar > li.k-hover > .k-link,
.k-panelbar>li.k-state-default>.k-link.k-state-hover,
.k-panelbar>li.k-state-default>.k-link.k-hover
{
    color: @hover-text-color;
}

.k-panelbar > li > .k-state-focused.k-state-hover,
.k-panelbar > li > .k-state-focused.k-hover,
.k-panelbar > li > .k-focus.k-state-hover,
.k-panelbar > li > .k-focus.k-hover
{
    background: @hover-background-color;
    .box-shadow(none);
}

.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,
.k-panelbar .k-tabstrip-items .k-state-active,
.k-panelbar .k-tabstrip-items .k-active
{
    background-color: @active-background-color;
    .composite-background(@active-gradient);
    border-color: @active-border-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-grid-filter.k-state-active .k-icon,
.k-grid-filter.k-active .k-icon {
    opacity: 1;
}

.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-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-splitbar.k-splitbar-horizontal-hover .k-icon,
.k-splitbar.k-splitbar-vertical-hover .k-icon,
div.k-splitbar.k-state-focused .k-icon,
div.k-splitbar.k-focus .k-icon,
.k-textbox:hover > .k-icon,
.k-grouping-header .k-i-delete,
.k-grouping-header .k-i-delete,
.k-grouping-header .k-i-arrow-60-up,
.k-grouping-header .k-link:hover > .k-icon.k-i-arrow-60-up,
.k-grouping-header .k-i-arrow-60-up,
.k-grouping-header .k-link:hover > .k-icon.k-i-arrow-60-up,
.k-grouping-header .k-i-arrow-60-down,
.k-grouping-header .k-link:hover > .k-icon.k-i-arrow-60-down,
.k-grouping-header .k-i-arrow-60-down,
.k-grouping-header .k-link:hover > .k-icon.k-i-arrow-60-down,
.k-scheduler-content .k-icon,
.k-gantt-toolbar .k-icon,
.k-notification .k-icon {
    opacity:.8;
}

.k-state-disabled .k-icon,
.k-disabled .k-icon
{
    opacity: .3;
}

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

.k-splitbar {
    border-color: @splitbar-background-color;
}

.k-splitbar-horizontal-hover,
.k-splitbar-vertical-hover {
    background-color: @select-hover-background-color;
    border-color: @select-hover-background-color;
}

.k-splitbar.k-state-focused,
.k-splitbar.k-focus {
    background-color: @focused-border-color;
    border-color: @focused-border-color;
}

.k-marquee-color {
    background-color: @select-background-color;
}

.k-grid .k-state-selected,
.k-grid .k-selected,
.k-grid td.k-state-selected.k-state-focused,
.k-grid td.k-state-selected.k-focus,
.k-grid td.k-selected.k-state-focused,
.k-grid td.k-selected.k-focus {
    background-color: @selected-background-color;
}

.k-grid tr:hover,
.k-gantt .k-treelist tr:hover {
    background-color: @hover-background-color;
}

.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;
}

.k-gantt .k-treelist .k-alt,
.k-gantt .k-header.k-nonwork-hour {
   background-color: @alt-background-color;
}

.k-grid-pager.k-state-focused,
.k-grid-pager.k-focus,
.k-grid-header th.k-state-focused,
.k-grid-header th.k-focus,
.k-grid td.k-state-focused,
.k-grid td.k-focus {
    .box-shadow(inset 0 0 0 1px @focused-border-color);
}

.k-grid td,
.k-grid .k-grouping-header,
.k-grid-header-wrap {
    border-color: transparent;
}

.k-grid tr th {
    border-left-color: transparent;
}

.k-pivot .k-grid-header th.k-header,
.k-pivot-layout > tbody > tr:first-child > td:first-child {
    border-color: @widget-border-color;
}

.k-group-footer td {
    border-top-color: @group-border-color;
}

.k-grouping-header .k-group-indicator {
    background-color: @button-background-color;
    border-color: @button-border-color;
}

.k-grouping-header .k-group-indicator .k-link {
    color: @widget-text-color;
}

.k-progressbar {
    background-color: @primary-disabled-background-color;
    border-color: @primary-disabled-background-color;

    .k-state-default {
        border-color: @primary-disabled-border-color @widget-background-color @primary-disabled-border-color;
    }

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

    &.k-progressbar-vertical .k-state-selected,
    &.k-progressbar-vertical .k-selected {
        border-color: @base;
    }
}

.k-tabstrip {

    .k-item {
        background-color: @button-background-color;
        border-color: @button-border-color;
    }

    .k-item.k-state-active,
    .k-item.k-active {
        background-color: @active-background-color;
        border-color: @active-background-color;
    }

    .k-content {
        border-color: transparent;
    }
}

.k-gantt-toolbar {
    .k-link {
        color: @widget-text-color;
    }

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

.k-gantt .k-gantt-toolbar {
    ul li,
    ul li.k-state-hover,
    ul li.k-hover,
    ul li.k-state-selected,
    ul li.k-selected {
        background-color: @widget-background-color;
        border-color: transparent;
    }
}

.k-scheduler .k-nonwork-hour {
    background-color: lighten(@selected-background-color, 5%);
}

.k-scheduler-content .k-event {
    .box-shadow(inset 4px 0 0 0 rgba(255, 255, 255, .5));
}

.k-scheduler-times tr,
.k-scheduler-times th,
.k-scheduler-table td,
.k-scheduler-header th,
.k-scheduler-header-wrap,
.k-scheduler-times {
    border-left-color: transparent;
    border-right-color: transparent;
}

.k-gantt .k-gantt-timeline tr:first-child .k-header {
    border-color: @widget-border-color;
}

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

.k-panelbar > li > .k-state-selected,
.k-panelbar > li > .k-selected,
.k-panelbar > .k-item > .k-link.k-state-selected,
.k-panelbar > .k-item > .k-link.k-selected,
.k-panelbar > li.k-state-default > .k-link.k-state-selected,
.k-panelbar > li.k-state-default > .k-link.k-selected {
    color: @inverse-text-color;
    background-color: @select-background-color;
}

.k-panelbar .k-state-selected.k-state-hover,
.k-panelbar .k-state-selected.k-hover,
.k-panelbar .k-selected.k-state-hover,
.k-panelbar .k-selected.k-hover {
    background-color: @selected-background-color;
    color: @hover-text-color;
}


.k-panelbar,
.k-panelbar .k-content,
.k-panelbar .k-panel,
.k-panelbar .k-item,
.k-panelbar > .k-item > .k-link {
    border-color: @menu-border-color;
}

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

// Default Theme

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

.k-chart .k-selection {
    border-color: #e5e5e5;
}

.k-chart .k-handle {
    width: 15px;
    height: 15px;
    background-color: #00b0ff;
    border-radius: 10px;
}

.k-chart .k-left-handle {
    left: -8px;
}

.k-chart .k-right-handle {
    right: -8px;
}

.k-chart .k-handle:hover {
    background-color: #00b0ff;
    border-color: #00b0ff;
}

.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: @base;
    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;
    }
}

@import "themes/spreadsheet.less";

@spreadsheet-cell-border: #c8c8c8;
@spreadsheet-selection-background: fadeout(@base, 80%);
@spreadsheet-selection-border: @base;
@spreadsheet-header-background: @background;
@spreadsheet-header-border: #dadada;
@spreadsheet-pane-border: #c8c8c8;

//Media Player

.k-mediaplayer {
    .k-toolbar > * {
        margin-top: -0.1em;
    }

    .k-toolbar .k-icon-button,
    .k-toolbar .k-button.k-button-icon {
        margin-top: 0.2em;
    }

    .k-mediaplayer-currenttime {
        margin-top: 0;
    }

    .k-align-right {
        margin-top: 0;

        .k-mediaplayer-volume {
            margin: -2px 6px 0;
        }
    }
}

// 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,
        );

        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-link {
        .k-icon.k-i-sort-asc-sm,
        .k-icon.k-i-sort-desc-sm,
        .k-sort-order {
            color: @base;
            margin-top: 0;
        }
    }
}

.k-menu-scroll-button {
    border-width: 0;
    box-shadow: none;
    border-color: @widget-border-color;
    color: @header-text-color;
    .composite-background(@widget-gradient);
    background-position: 50% 50%;
    background-color: @header-background-color;
}

.k-menu-scroll-wrapper.horizontal {
    .k-scroll-left { border-right-width: 1px; }
    .k-scroll-right { border-left-width: 1px; }
}
.k-menu-scroll-wrapper.vertical {
    .k-scroll-up { border-bottom-width: 1px; }
    .k-scroll-down { border-top-width: 1px; }
}


.k-calendar {
    .k-today {
        .k-link {
            color: @base;
            box-shadow: inset 0 0 0 1px @base;
        }
    }
}

// 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;
    }

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

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

.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 {
    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;
}


// Spreadsheet
.k-spreadsheet {
    .k-spreadsheet-tabstrip {
        padding: 4px 0 0;
        color: @button-text-color;
        background-color: @button-background-color;
    }
    .k-spreadsheet-sheets-bar {
        padding: 0 0 4px;
        color: @button-text-color;
        background-color: @button-background-color;
        align-items: start;
    }
}
