/*!
 * Copyright 2020 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.
 */
@input-height: 2.07142857em;
@input-default-width: 12.4em;
@input-border-width: 1px;
@input-padding-x: 0;
@input-padding-y: 0.17857143em;
@input-indent: .8em;
@input-offset: (@input-height + .35em);

@line-height: (20 / 14);

@icon-size: 16px;
@input-icon-width: calc(@input-height + .35em);

@combobox-padding-x: 2.5em;

@input-clear-icon-offset: ~"( (@{input-offset} - @{grid-size})/2 )";
@combobox-clear-icon-offset: ~"( @{input-offset} + ((@{combobox-padding-x} - @{grid-size})/2) )";
@multiselect-clear-icon-top-offset: ~"( (@{input-height} - @{grid-size}) / 2 + @{input-padding-y} + 1px )";

@editor-icon-size: 36px;
@menu-link-padding: 1.071em;


// Messagebox
@messagebox-margin: 0 0 16px 0;
@messagebox-padding-x: 8px; //@padding-x;
@messagebox-padding-y: 4px; //@padding-y;
@messagebox-border-width: 0 0 0 4px;

@messagebox-font-size: inherit; //@font-size;
@messagebox-line-height: (20 / 14);//@line-height;

@messagebox-link-font-style: italic;
@messagebox-link-text-decoration: underline;


// Form
@form-font-size: inherit;
@form-line-height: (20 / 14);

@form-label-margin: 0 0 8px;

@form-fieldset-margin: 32px 0 0;
@form-fieldset-padding-x: 0;
@form-fieldset-padding-y: 0;

@form-legend-margin: 0 0 16px;
@form-legend-padding-x: 0;
@form-legend-padding-y: 0;
@form-legend-font-size: inherit;
@form-legend-line-height: (20 / 14);

@form-field-margin: 0 0 16px;

@form-hint-margin: 0 0 4px;
@form-hint-font-size: 12px;

@form-buttons-margin: 16px 0 0;
@form-buttons-padding-x: 0;
@form-buttons-padding-y: 0;
@form-buttons-border-width: 0;
@form-buttons-spacing: 8px;

@horizontal-form-label-margin-x: 10px;
@horizontal-form-label-padding-top: 8px;
@horizontal-form-label-width: 25%;
@horizontal-form-label-align: flex-end;


// Button
@button-padding-x: 14px;
@button-padding-y: 8px;
@button-padding: @button-padding-y @button-padding-x;
@button-border-width: 0;

@button-line-height: (20 / 14);

@button-calc-size: ~"calc( (@{button-line-height} * 1em) + (@{button-padding-y} * 2) + (@{button-border-width} * 2) )";

@disabled-button-opacity: 0.6;


// Toolbar
@toolbar-padding-x: 6px;
@toolbar-padding-y: 6px;
@toolbar-border-width: 1px;
@toolbar-border-radius: 0;

@toolbar-spacing: @toolbar-padding-x;

@toolbar-font-size: inherit;
@toolbar-line-height: (20 / 14);

@toolbar-calc-inner-size: ~"calc( @{button-calc-size} + (@{toolbar-padding-y} * 2) )";

@treeview-inner-padding: 0.429em 0.6667em 0.429em 0.5833em;
@scheduler-link-padding: 0 1.1em;
@grid-header-padding: .429em .2em .429em 1em;
@grid-th-padding: .786em .6em;
@icon-positioning: "material";
@spreadsheet-action-bar-font-size: 14px;

@window-border-width: 0;
@window-border-style: solid;

@window-sizes: {
    sm: 300px;
    md: 800px;
    lg: 1200px;
};

@window-titlebar-padding-x: 16px;
@window-titlebar-padding-y: 8px;
@window-titlebar-border-width: 0;
@window-titlebar-border-style: none;

@window-title-font-size: 1.2em;
@window-title-line-height: 1.25;
@window-title-font-weight: normal;

@window-inner-padding-x: @window-titlebar-padding-x;
@window-inner-padding-y: @window-inner-padding-x;

@grid-padding-x: 16px;
@grid-padding-y: 8px;

@grid-header-padding-x: @grid-padding-x;
@grid-header-padding-y: @grid-padding-y;

@grid-footer-padding-x: @grid-header-padding-x;
@grid-footer-padding-y: @grid-header-padding-y;

@grid-cell-padding-x: @grid-padding-x;
@grid-cell-padding-y: @grid-padding-y;

@grid-search-width: 15.7em;

// Calendar
@calendar-padding-x: 0;
@calendar-padding-y: 0;
@calendar-border-width: 1px;
@calendar-border-radius: 100px;
@calendar-font-size: 14px;
@calendar-line-height: (20 / 14);

@calendar-header-padding-x: 4px;
@calendar-header-padding-y: 4px;
@calendar-header-border-width: 0;
@calendar-header-button-padding-x: 8px;
@calendar-header-button-padding-y: 8px;
@calendar-header-button-border-width: 0;
@calendar-header-button-border-radius: @calendar-border-radius;

@calendar-content-padding-x: 0;
@calendar-content-padding-y: 0;

@calendar-cell-padding-x: .65em;
@calendar-cell-padding-y: .65em;
@calendar-cell-border-radius: @calendar-border-radius;
@calendar-cell-line-height: (20 / 14);
@calendar-cell-size: ( (38px / 14px ) * 1em );

@calendar-header-cell-padding-x: 2px;
@calendar-header-cell-padding-y: (@calendar-cell-padding-y / 2);
@calendar-header-cell-border-width: 0;
@calendar-header-cell-font-size: 12px;
@calendar-header-cell-line-height: (20 / 14);
@calendar-header-cell-size: @calendar-cell-size;

@calendar-meta-cell-size: ( (60px / @calendar-font-size) * 1em );

@calendar-modern-header-padding-x: 16px;
@calendar-modern-header-padding-y: 8px;


// Multiviewcalendar
@multiviewcalendar-font-size: @calendar-font-size;
@multiviewcalendar-line-height: @calendar-line-height;

@multiviewcalendar-header-padding-x: 16px;
@multiviewcalendar-header-padding-y: 8px;

@multiviewcalendar-content-padding-x: 16px;
@multiviewcalendar-content-padding-y: 8px;

@multiviewcalendar-cell-padding-x: @calendar-cell-padding-x;
@multiviewcalendar-cell-padding-y: @calendar-cell-padding-y;
@multiviewcalendar-cell-border-radius: @calendar-border-radius;
@multiviewcalendar-cell-line-height: @calendar-cell-line-height;
@multiviewcalendar-cell-size: @calendar-cell-size;

@multiviewcalendar-centuryview-cell-padding-x: @multiviewcalendar-cell-padding-x;
@multiviewcalendar-centuryview-cell-padding-y: @multiviewcalendar-cell-padding-y;

@multiviewcalendar-header-cell-font-size: 12px;


// DateTimePickers
@timepicker-padding-x: 8px;
@timepicker-padding-y: 4px;

@time-highlight-size: 1px;

@time-header-padding: null;
@timepicker-header-height: 2em;

@time-list-padding: 20px;
@time-list-focus-size: 2px;
@time-list-width: 5em;
@time-list-height: calc( 7 * (@line-height * 1em + 2 * @timepicker-padding-y));

@time-font-size-xs: 10px;

@datetime-width: ((4 * @time-list-width) + 1em);


// ScrollView
@scrollview-pagebutton-size: 8px;
@scrollview-navigation-size: 4.5em;

@scrollview-pager-offset: 20px;
@scrollview-pager-item-spacing: 20px;
@scrollview-pager-item-border-width: 0;
@scrollview-pager-height: calc(@scrollview-pagebutton-size + (2 * @scrollview-pager-item-border-width) + (@scrollview-pager-item-spacing / 2 ));

// Switch
@switch-size: 5.4em;
@switch-border-radius: @switch-size;
@switch-font-size: 10px;

@switch-track-size: 1.6em;
@switch-container-border-width: 0;
@switch-container-padding-x: 0;
@switch-container-padding-y: @switch-container-padding-x;

@switch-handle-size: 3em;
@switch-handle-border-radius: @switch-size;
@switch-handle-border-width: 0;

@switch-label-display: none;
@switch-label-outer-spacing: 8px;
@switch-label-inner-spacing: 2px;
@switch-label-spacing: calc(@switch-label-outer-spacing + @switch-label-inner-spacing);

@switch-label-position: calc(@switch-label-outer-spacing - @switch-container-border-width);
@switch-label-width: calc(100% - @switch-handle-size - @switch-label-spacing - @switch-container-padding-x);
@switch-on-left-x: calc(100% - @switch-handle-size);


// Pager
@pager-padding-x: 6px;
@pager-padding-y: @pager-padding-x;
@pager-border-width: 1px;

@pager-section-spacing: 1em;

@pager-item-padding-x: @button-padding-y;
@pager-item-padding-y: @pager-item-padding-x;
@pager-item-width: 2.5em;
@pager-item-height: @pager-item-width;
@pager-item-border-width: 0;
@pager-item-border-radius: 0;
@pager-item-spacing: 0;

@pager-input-width: 3em;

@pager-page-size-dropdown-width: 5em;


// Pager -- old vars
@pager-button-border-radius-sm: 2px;
@pager-button-border-radius-lg: @pager-button-border-radius-sm;
@pager-button-width: 2.429em;
@pager-button-height: @pager-button-width;
@pager-button-margin: 0.08333em;

// Pdf Viewer
@pdf-viewer-page-spacing: 30px;

@pdf-viewer-action-buttons-top-offset: 10px;
@pdf-viewer-action-buttons-padding: 10px;

@pdf-viewer-search-dialog-input-button-height: @input-height;
@pdf-viewer-search-dialog-textbox-padding-x: @input-padding-y;

@pdf-viewer-search-dialog-matches-width: 4.5em;

@pdf-viewer-search-dialog-spacing: 0.42857143em;
@pdf-viewer-search-dialog-button-spacing: @pdf-viewer-search-dialog-spacing;

// Card
@form-line-height: (20 / 14);
@card-title-font-size: 19px;
@card-subtitle-font-size: 12px;
@card-border-radius: 4px;
@card-border-width: 1px;
@card-header-padding-x: 16px;
@card-header-padding-y: 16px;
@card-header-border-width: 1px;
@card-footer-padding-x: 16px;
@card-footer-padding-y: 16px;
@card-footer-border-width: 1px;
@card-body-padding-x: 16px;
@card-body-padding-y: 16px;
@paragraph-margin-bottom: 8px;
@card-title-margin-bottom: 8px;
@card-subtitle-margin-bottom: 8px;
@card-actions-padding-x: 16px;
@card-actions-padding-y: 8px;
@card-actions-border-width: 1px;
@card-button-padding-x: 8px;
@card-button-padding-y: 8px;
@card-img-max-width: 100px;
@card-deck-gap: 16px;

@card-deck-scroll-button-radius: 0;
@card-deck-scroll-button-offset: -1px;

@card-callout-width: 20px;
@card-callout-height: 20px;


//TileLayout
@tilelayout-border-width: 0;

@tilelayout-hint-border-width: 1px;
@tilelayout-hint-border-radius: @card-border-radius;


// Drawer
@drawer-border-width: 1px;
@drawer-content-padding-x: 8px;
@drawer-content-padding-y: 8px;

@drawer-scrollbar-width: 7px;
@drawer-scrollbar-radius: 20px;

@drawer-item-padding-x: 8px;
@drawer-item-padding-y: 8px;
@drawer-item-font-size: 16px;
@drawer-item-line-height: 1.5;

@drawer-icon-size: 18px;
@drawer-mini-initial-width: calc(4 * @drawer-item-padding-x + @drawer-icon-size);

// Rating
@rating-container-margin-x: 4px;

@rating-item-padding-x: 4px;
@rating-item-padding-y: 4px;

@rating-label-margin-x: 8px;
@rating-label-margin-y: 4px;
@rating-label-line-height: 1.5;

@rating-font-size: 16px;
@rating-icon-size: 28px;

// Spreadsheet
@spreadsheet-insert-image-dialog-margin: 0 1em;
@spreadsheet-insert-image-dialog-border-style: dashed;
@spreadsheet-insert-image-dialog-border-width: 2px;

@spreadsheet-insert-image-dialog-preview-width: 355px;
@spreadsheet-insert-image-dialog-preview-height: 200px;
@spreadsheet-insert-image-dialog-preview-padding: 10px;
@spreadsheet-insert-image-dialog-text-padding: 10px;

@spreadsheet-drawing-outline-style: solid;
@spreadsheet-drawing-outline-width: 2px;

@spreadsheet-drawing-handle-width: 6px;
@spreadsheet-drawing-handle-height: 6px;
@spreadsheet-drawing-handle-border-style: solid;
@spreadsheet-drawing-handle-border-width: 1px;


// Notification
@notification-border-width: 1px;

@notification-padding-x: 1.786em;
@notification-padding-y: 1.786em;
@notification-padding-end: 1.786em;

@notification-icon-spacing: 4px;


// Filter
@filter-bottom-margin: 2.1em;
@filter-line-size: 1px;
@filter-padding-x: 14px;
@filter-padding-y: 8px;
@filter-operator-dropdown-width: 15em;


// Timeline
@timeline-border-radius: 2px;
@timeline-border-radius-lg: 4px;
@timeline-spacing-x: 40px;
@timeline-spacing-y: 40px;
@timeline-items-padding: 16px;
@timeline-mobile-spacing-x: 16px;
@timeline-mobile-spacing-y: 16px;

@timeline-track-arrow-width: 30px;
@timeline-track-arrow-height: 30px;

@timeline-track-size: 6px;
@timeline-track-border-width: 1px;
@timeline-track-margin-bottom: 16px;
@timeline-track-start-calc: calc(@timeline-track-arrow-width - 2 * @timeline-track-border-width);
@timeline-track-end-calc: calc(@timeline-track-arrow-width - 2 * @timeline-track-border-width);

@timeline-track-event-offset: 36px;

@timeline-flag-padding-x: @button-padding-x;
@timeline-flag-padding-y: @button-padding-y;
@timeline-flag-line-height: @button-line-height;
@timeline-flag-min-width: 80px;
@timeline-flag-max-width: calc(@timeline-flag-min-width + 2 * @timeline-spacing-x);
@timeline-mobile-flag-max-width: calc(@timeline-flag-min-width + 2 * @timeline-mobile-spacing-x);
@timeline-horizontal-flag-min-width: 60px;

@timeline-flag-callout-width: 10px;
@timeline-flag-callout-height: 10px;

@timeline-flag-offset-bottom: 4px;
@timeline-flag-margin-bottom-calc: calc(@timeline-track-size + 2 * @timeline-track-border-width + @timeline-flag-offset-bottom + @timeline-flag-callout-height);

@timeline-date-margin-bottom: 8px;
@timeline-date-width: 50px;

@timeline-vertical-padding-calc: calc(@timeline-spacing-x + (@timeline-flag-min-width - @timeline-track-size) / 2);
@timeline-vertical-padding-with-dates-calc: calc(@timeline-vertical-padding-calc + @timeline-date-width);
@timeline-mobile-vertical-padding-calc: calc(@timeline-mobile-spacing-x + (@timeline-flag-min-width - @timeline-track-size) / 2);
@timeline-mobile-vertical-padding-with-dates-calc: calc(@timeline-mobile-vertical-padding-calc + @timeline-date-width);

@timeline-circle-width: 16px;
@timeline-circle-height: 16px;

@timeline-collapse-arrow-padding-x: 8px;

@timeline-event-width: 400px;
@timeline-event-height: 600px;
@timeline-event-min-height-calc: calc(2 * @timeline-track-event-offset);


// Breadcrumb
@breadcrumb-min-height: 2.532em;

@breadcrumb-container-padding-x: 0;
@breadcrumb-container-padding-y: 0;

@breadcrumb-container-margin-x: 0;
@breadcrumb-container-margin-y: 0;

@breadcrumb-link-padding-x: @button-padding-x;
@breadcrumb-link-padding-y: @button-padding-y;
@breadcrumb-link-line-height: 1.45em;
@breadcrumb-link-border-radius: 4px;

@breadcrumb-icon-link-padding-x: @breadcrumb-link-padding-x;
@breadcrumb-icon-link-padding-y: @breadcrumb-icon-link-padding-x;

@breadcrumb-root-link-spacing: @breadcrumb-link-padding-x;
@breadcrumb-link-icon-spacing: @button-padding-x;

@breadcrumb-root-icon-font-size: @icon-size;
@breadcrumb-delimiter-icon-font-size: 12px;
@breadcrumb-delimiter-icon-padding-x: calc( @button-padding-x / 2 );
@breadcrumb-delimiter-icon-padding-y: 0;


// Listgroup
@listgroup-border-width: 1px;

@listgroup-item-padding-x: 1em;
@listgroup-item-padding-y: .5em;
@listgroup-item-border-width: 1px;


// Badge
@use-calc-badge-size: boolean(true);

@badge-padding-x: 4px;
@badge-padding-y: 4px;
@badge-border-width: 1px;
@badge-border-radius: 2px;
@badge-font-size: 10px;
@badge-line-height: 1;

@badge-padding-x-sm: ( @badge-padding-x / 2 );
@badge-padding-y-sm: ( @badge-padding-y / 2 );
@badge-border-width-sm: @badge-border-width;
@badge-border-radius-sm: 1px;
@badge-font-size-sm: 10px;
@badge-line-height-sm: 1;

@badge-padding-x-lg: ( @badge-padding-x * 1.5 );
@badge-padding-y-lg: ( @badge-padding-y * 1.5 );
@badge-border-width-lg: @badge-border-width;
@badge-border-radius-lg: 4px;
@badge-font-size-lg: 12px;
@badge-line-height-lg: 1;

@badge-fixed-size: 20px;
@badge-calc-size: calc( (@badge-line-height * 1em) + (@badge-padding-y * 2) + (@badge-border-width * 2) );
@badge-size: if( @use-calc-badge-size, @badge-calc-size, @badge-fixed-size );
@badge-dot-size: 10px;

@badge-fixed-size-sm: 16px;
@badge-calc-size-sm: calc( (@badge-line-height-sm * 1em) + (@badge-padding-y-sm * 2) + (@badge-border-width-sm * 2) );
@badge-size-sm: if( @use-calc-badge-size, @badge-calc-size-sm, @badge-fixed-size-sm );
@badge-dot-size-sm: 6px;

@badge-fixed-size-lg: 26px;
@badge-calc-size-lg: calc( (@badge-line-height-lg * 1em) + (@badge-padding-y-lg * 2) + (@badge-border-width-lg * 2) );
@badge-size-lg: if( @use-calc-badge-size, @badge-calc-size-lg, @badge-fixed-size-lg );
@badge-dot-size-lg: 12px;


// Checkbox
@icon-size: 16px;
@icon-spacing: 4px;

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

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


// Listview
@listview-padding-x: 8px;
@listview-padding-y: 4px;
@listview-border-width: 1px;

@listview-font-size: inherit;
@listview-line-height: (20 / 14);

@listview-item-padding-x: 8px;
@listview-item-padding-y: 4px;


// FileManager
@filemanager-spacer: 16px;
@filemanager-border-width: 1px;

@filemanager-toolbar-border-width: @filemanager-border-width;

@filemanager-navigation-padding-x: @filemanager-spacer;
@filemanager-navigation-padding-y: @filemanager-spacer;
@filemanager-navigation-width: 20%;
@filemanager-navigation-border-width: @filemanager-border-width;

@filemanager-breadcrumb-padding-x: (@filemanager-spacer / 2);
@filemanager-breadcrumb-padding-y: (@filemanager-spacer / 2);
@filemanager-breadcrumb-border-width: @filemanager-border-width;

@filemanager-listview-item-padding-x: @filemanager-spacer;
@filemanager-listview-item-padding-y: @filemanager-spacer;
@filemanager-listview-item-width: 120px;
@filemanager-listview-item-height: 120px;

@filemanager-listview-item-icon-size: (@icon-size * 3);

@filemanager-preview-padding-x: @filemanager-spacer;
@filemanager-preview-padding-y: @filemanager-spacer;
@filemanager-preview-width: 20%;
@filemanager-preview-border-width: @filemanager-border-width;
@filemanager-preview-spacing: @filemanager-spacer;

@filemanager-preview-icon-size: (@icon-size * 6);


// Tooltip
@tooltip-padding-x: 8px;
@tooltip-padding-y: 4px;
@tooltip-border-width: 1px;

@tooltip-callout-size: 6px;


// Stepper
@stepper-margin-x: 0;
@stepper-margin-y: 0;
@stepper-padding-x: 0;
@stepper-padding-y: 0;
@stepper-label-margin-x: 12px;
@stepper-label-padding-x: 12px;
@stepper-label-padding-y: 5px;
@stepper-border-width: 0;

@stepper-inline-content-padding-x: 20px;
@stepper-inline-content-padding-y: 10px;

@stepper-font-size: 14px;
@stepper-line-height: (20 / 14);

@stepper-indicator-width: 28px;
@stepper-indicator-height: @stepper-indicator-width;
@stepper-indicator-border-width: 1px;
@stepper-indicator-border-radius: 50%;

@stepper-indicator-focus-border-width: 1px;
@stepper-indicator-focus-size: 2px;
@stepper-indicator-focus-offset: 3px;
@stepper-indicator-focus-calc-offset: calc( @stepper-indicator-focus-border-width + @stepper-indicator-focus-offset );

@stepper-optional-label-opacity: .35;
@stepper-disabled-opacity: .6;

@stepper-progressbar-size: 2px;
@stepper-connector-calc-offset: calc(( @stepper-indicator-height / 2) + @stepper-progressbar-size / 2 + @stepper-indicator-focus-offset);

@stepper-content-transition-property: height;
@stepper-content-transition-duration: 300ms;
@stepper-content-transition-timing-function: cubic-bezier(.4, 0, .2, 1) 0ms;


@import "common/all.less";

@spreadsheet-first-tool-offset: 0;
@spreadsheet-popup-button-padding: .6em 1.2em .6em 1em;

.k-widget.k-tabstrip
{
    background-image: none;
    border-style: none;
    .box-shadow(none);
}

.k-tabstrip .k-tabstrip-items
{
    padding: 0;
}

.k-tabstrip > .k-button.k-flat {
    top: .3em;
}

.k-tabstrip-bottom > .k-button.k-flat {
    top: auto;
}

.k-tabstrip > div.k-content,
.k-panelbar .k-tabstrip > div.k-content
{
    margin: 0;
}

.k-panelbar > .k-item > .k-link,
.k-panel > .k-item > .k-link {
    line-height: 3.5em;
}

.k-tabstrip > .k-tabstrip-items > .k-item {
    text-transform: uppercase;
    border-width: 0;
    border-style: solid;
    padding: 0;
}

.k-tabstrip-left > .k-tabstrip-items .k-loading,
.k-tabstrip-right > .k-tabstrip-items .k-loading {
    display: none;
}

.k-tabstrip-top > .k-tabstrip-items .k-tab-on-top,
.k-tabstrip-top > .k-tabstrip-items .k-state-active {
    margin-bottom: -1px;
}

.k-tabstrip-top > .k-tabstrip-items > .k-item {
    border-bottom-width: 2px;
}

.k-tabstrip-left > .k-tabstrip-items .k-tab-on-top,
.k-tabstrip-left > .k-tabstrip-items .k-state-active {
    margin-right: -2px;
}

.k-tabstrip-left > .k-tabstrip-items > .k-item {
    border-right-width: 2px;
}

.k-tabstrip-right > .k-tabstrip-items > .k-item {
    border-left-width: 2px;
}

.k-tabstrip-bottom > .k-tabstrip-items > .k-item {
    border-top-width: 2px;
}

.k-tabstrip .k-tabstrip-items .k-link {
    padding: 1.071em;
}

.k-slider-track
{
    border-width: 1px;
    border-style: solid;
}

.k-grouping-dropclue
{
    margin-top: 10px;
}

.k-grid-header th.k-header,
.k-filter-row th,
.k-gantt-timeline .k-grid-header .k-header {
    padding: @grid-th-padding;
}

.k-grid-header th.k-header,
.k-gantt-timeline .k-grid-header .k-header {
  padding-left: 1.286em;
}

.k-rtl .k-grid-header th.k-header,
.k-rtl .k-gantt-timeline .k-grid-header .k-header {
  padding-right: 1.286em;
}

.k-gantt-timeline .k-header {
    line-height: normal;
}

.k-filtercell > span {
    padding-right: 5.714em;
}

.k-filtercell > span > .k-button {
    padding-left: .714em;
    padding-right: .714em;
    line-height: 1.286em;
    margin: 0;
}

.k-filter-row .k-dropdown-operator {
    width: 2.714em;
    right: 2.857em;
}

.k-filter-menu {
    padding: .5em .5em 0;
}

.k-filter-menu .k-action-buttons .k-button {
    margin: 0;
    width: 50%;
    border-radius: 0;
}

.k-filter-menu .k-primary {
    float: right;
}

.k-filter-menu > div > div:last-child {
    margin: .5em -.5em 0;
    border-top-width: 1px;
    border-top-style: solid;
}

.k-filter-menu .k-primary {
   border-left-width: 1px;
   border-left-style: solid;
}

.k-grouping-header .k-group-indicator
{
    padding: .5em .15em .429em .4em;
}

.k-grid .k-grouping-row td {
    padding: .6em .6em 0.643em;
}

.k-grouping-header a,
.k-grouping-header .k-button
{
    vertical-align: baseline;
}

.k-grid td {
    padding: 0.929em 1.286em;
}

.k-grid-header th.k-header>.k-link {
    padding: 0;
    margin: 0;
    min-height: 16px;
    line-height: inherit;
}

.k-grouping-header
{
    line-height: 2.6;
}

.k-grid-content tr:last-child > td,
.k-grid-content-locked tr:last-child > td {
    border-bottom-width: 0;
}

.k-grid tr td,
.k-pivot-layout .k-grid tr td
{
    border-bottom-width: 1px;
    border-style: solid;
}

.k-grouping-row + tr td {
    border-top-width: 0;
}

.k-grid-content table tr:first-child td,
.k-grid-content-locked table tr:first-child td {
    border-top: 0;
}

.k-grid-content tr td {
    border-left-width: 0;
}

.k-combobox > .k-dropdown-wrap > .k-i-close {
    right: calc(@combobox-clear-icon-offset);
}

.k-combobox-clearable {
    .k-input {
        padding-right: @combobox-padding-x;
    }
}

.k-autocomplete .k-i-loading,
.k-multiselect .k-i-loading
{
    bottom: 10px;
}

.k-dropdown-wrap,
.k-picker-wrap,
.k-numeric-wrap {
    padding: 0 2.42857142em 0 0;
}

.k-picker-wrap .k-select,
.k-numeric-wrap .k-select,
.k-dropdown-wrap .k-select
{
    width: 2.42857142em;
}

.k-datetimepicker {
    width: 19.5em;
}

.k-datetimepicker .k-select {
    width: 5em;
}

.k-datetimepicker .k-picker-wrap {
    padding-right: 5em;
}

.k-datetimepicker .k-picker-wrap .k-icon {
    margin: 0 6px;
}

.k-popup.k-list-container {
    padding: 0.286em 0;

    &.k-popup-dropdowntree {
        padding: 0.286em;
    }
    &.k-popup-flush {
        padding: 0;
    }
}

.k-popup.k-calendar-container {
    padding: 0;
}

.k-popup .k-list .k-item,
.k-popup > .k-group-header,
.k-fieldselector .k-list .k-item {
    min-height: 2.143em;
    line-height: 2.143em;
}

.k-popup .k-list .k-item {
    padding: 1px 11px;
}

.k-list-filter > .k-icon {
    right: 7px;

    .k-rtl & {
        left: 7px;
        right: auto;
    }
}

.k-fieldselector .k-pivot-configurator-settings li.k-item {
    padding-right: 3.8em;
}

.k-button {
    text-transform: uppercase;
}

.k-popup.k-calendar-container {
    padding: 0;
    border: 0;
}

.k-multiselect-wrap li {
    border-radius: 1.071em;
    margin: 3px 0 3px 3px;
    padding: 0 1.6em 0 .857em;
    line-height: calc(@input-height - 0.214em);
    min-height: calc((@input-height + 0.357em) - 6px);
}

.k-multiselect-wrap li span {
    margin-right: .4em;
}
.k-multiselect-wrap li span.k-icon {
    margin: 0;
}

.k-multiselect-wrap .k-select
{
    padding-top: 0;
}

.k-numeric-wrap .k-select {
    vertical-align: baseline;
}

.k-numerictextbox .k-link {
    display: block;
    height: ((@input-height + 0.354em) / 2);
}

.k-numerictextbox .k-link .k-i-arrow-60-up {
    vertical-align: bottom;
}

.k-numerictextbox .k-link .k-i-arrow-60-down {
    vertical-align: top;
}

.k-menu.k-header,
.k-menu .k-item,
.k-widget.k-menu-horizontal > .k-item {
    border-width: 0;
}

.k-popup.k-context-menu {
    border-width: 1px;
    border-style: solid;
}

.k-context-menu.k-menu-vertical > .k-item > .k-link,
.k-menu .k-menu-group .k-item > .k-link {
    padding: 0.5em 4.929em 0.5em 1.714em;
}

.k-menu .k-item > .k-link {

    & > .k-i-arrow-60-right {
        right:  @menu-link-padding;
    }

    & > .k-i-arrow-60-left {
        right: auto;
        left:  @menu-link-padding;
    }
}

.k-menu .k-animation-container .k-menu-group {
    padding: 1.143em 0;
}

.k-column-menu .k-menu .k-animation-container .k-menu-group {
    padding: 0;
}

.k-column-menu .k-menu-vertical .k-separator {
    height: 0;
}

.k-filebrowser {

    .k-filebrowser-toolbar {
        display: flex;
    }

    .k-toolbar-wrap {
        display: inline-flex;
        align-items: center;
    }

    .k-upload .k-upload-button {
        vertical-align: bottom;
    }

    .k-search-wrap .k-search {
        right: 4px;
    }

    .k-search-wrap {
        padding: 2px .3em;
    }

    .k-tiles-arrange {
        margin-left: auto;

        .k-dropdown {
            width: 80px;
        }
    }
}

.k-draghandle
{
    border-width: 2px;
}

div.editorToolbarWindow.k-window-content {
    padding: 0;
}

.editorToolbarWindow .k-editortoolbar-dragHandle {
    line-height: 30px;
}

.k-file {
    padding: .643em .17em .643em 1em;
}

.k-scheduler-table td,
.k-scheduler-table th
{
    height:1.643em;
}

.k-gantt-treelist .k-grid-header tr {
    height: 5.714em;
}

.k-gantt-timeline .k-grid-header tr {
    height: 2.857em;
}

.k-gantt .k-task-summary:before,
.k-gantt .k-task-summary-complete:before,
.k-gantt .k-task-summary:after,
.k-gantt .k-task-summary-complete:after {
    border-width: 0;
}

.k-gantt {
    .k-task {
        border-width: 0;
    }

    .k-task-actions {
        line-height: 2.429em;
    }

    .k-task-single {
        margin-top: -.429em;
    }

    .k-task-template {
        padding: .643em 1.4em .643em .6em;
    }

    .k-task-milestone {
        width: 17px;
        height: 17px;
    }

    .k-task-draghandle {
        margin: 0 23px;
        border-width: 8px;
        border-radius: 0 50% 50% 50%;
        border-style: solid;
        bottom: -11px;
    }

    .k-gantt-timeline .k-header {
        text-align: left;
    }
}

.k-gantt .k-grid-content tr,
.k-gantt-rows tr,
.k-gantt-tasks tr {
    height: 3.5em;
}

.k-gantt-edit-form > .k-edit-form-container {
    .k-textbox,
    .k-numerictextbox
    {
        width: 19.5em;
    }
}

.k-slider-track {
    border-width: 0;
}

.k-slider-horizontal .k-slider-track,
.k-slider-horizontal .k-slider-selection {
    height: 2px;
    margin-top: -1px;
}

.k-slider-vertical .k-slider-track,
.k-slider-vertical .k-slider-selection {
    width: 2px;
    margin-left: -1px;
}

.k-slider-horizontal .k-draghandle,
.k-slider-vertical .k-draghandle,
.k-flatcolorpicker .k-hue-slider .k-draghandle,
.k-flatcolorpicker .k-transparency-slider .k-draghandle {
    width: 6px;
    height: 6px;
}

.k-flatcolorpicker .k-hue-slider .k-draghandle {
    margin-top: -1px;
}

.k-colorpicker
{
    .k-picker-wrap {
        line-height: (@input-height + @input-padding-y*2);
    }

    .k-selected-color {
        @selected-icon-height: 2.42857142em;
        height: @selected-icon-height;
        width: @selected-icon-height;
        .k-i-line {
            line-height: @selected-icon-height;
            font-size: @selected-icon-height;
        }
    }
}

.k-draghandle.k-state-selected,
.k-draghandle.k-state-selected:link,
.k-flatcolorpicker .k-hue-slider .k-draghandle.k-state-selected,
.k-flatcolorpicker .k-transparency-slider .k-draghandle.k-state-selected
{
    width: 10px;
    height: 10px;
}

.k-draghandle.k-state-focused.k-state-selected {
    margin-left: -2px;
}

.k-slider-horizontal .k-draghandle.k-state-selected,
.k-flatcolorpicker .k-hue-slider .k-draghandle.k-state-selected {
    top: -6px;
}

.k-slider-vertical .k-draghandle.k-state-selected {
    left: -4px;
}

// PanelBar
.k-panelbar-expand,
.k-panelbar-collapse {
    right: 16px;
}

// Grid
.k-header.k-grid-toolbar {
    border-color: #3343a4;
}

.k-grouping-header,
.k-grid-toolbar {
    padding: 0.429em;
}

.k-grouping-header {
    padding-left: 1.286em;
}

.k-grid .k-icon {
    opacity: 0.45;
}

.k-grid-filter .k-icon {
    opacity: .7;
}

.k-grid {
    th.k-group-cell,
    td.k-group-cell {
        text-overflow: clip;
    }
}

form.k-filter-menu .k-textbox {
    margin-bottom: 7px;
}

// Scheduler
.k-gantt-toolbar {
    text-transform: uppercase;
}

.k-gantt-toolbar > ul > li {
    border-width: 0 0 2px 0;
}

.k-gantt-toolbar li .k-link,
.k-gantt-toggle {
    vertical-align: middle;
    line-height: 46px;
}

.k-gantt-toggle {
    padding: 0
}

.k-gantt-actions {
    vertical-align: middle;
    line-height: 48px;
}

.k-gantt-actions > .k-button {
    vertical-align: middle;
}

.k-gantt-toolbar {
    line-height: 44px;
    vertical-align: middle;
}

.k-popup-edit-form .k-primary {
    float: right;
}

.k-popup-edit-form:after {
    content: " ";
    display: block;
    clear: both;
}

.k-gantt-toolbar {
    padding: 0 1.286em;
}

.k-drag-clue {
    font-size: 1em;
    padding: .65em 1em;
}

// Icons

.k-grid-header .k-grid-filter,
.k-grid-header .k-header-column-menu {
    padding: .714em;
    margin: -.786em -.6em -.786em 0;
}




//RTL
.k-rtl,
[dir="rtl"] {
    .k-widget {
        .k-dropdown-wrap,
        .k-picker-wrap,
        .k-numeric-wrap {
            padding-left: 2.5em;
        }

        &.k-autocomplete > .k-i-close,
        &.k-multiselect > .k-multiselect-wrap > .k-i-close {
            right: initial;
            margin-right: 0;
        }

        &.k-combobox > .k-dropdown-wrap > .k-i-close {
            left: calc(@combobox-clear-icon-offset);
            right: initial;
        }

        &.k-datetimepicker .k-picker-wrap {
            padding-left: 5em;

            .k-icon {
                margin: 0 6px;
            }
        }
    }

    .k-menu .k-item,
    .k-widget.k-menu-horizontal > .k-item {
        border-width: 0;
    }

    .k-context-menu.k-menu-vertical > .k-item > .k-link,
    .k-menu .k-menu-group .k-item > .k-link {
        padding: 0.5em 1.714em 0.5em 4.929em;
    }

    .k-menu {
        .k-menu-group,
        &.k-menu-vertical  {
            .k-item > .k-link > .k-menu-expand-arrow {
                right: auto;
                left: 1.071em;
            }
        }
    }
}

.k-spreadsheet .k-spreadsheet-action-bar {
    font-size: @spreadsheet-action-bar-font-size;
}

.k-spreadsheet-window {
    .k-edit-label,
    .k-edit-field {
        padding: 0;
        line-height: 4em;
    }

    .k-edit-label > label {
        vertical-align: middle;
    }
}

div.k-spreadsheet-window {
    padding: 1em;
}

.k-editor-dialog.k-editor-table-wizard-dialog.k-window-content {
    min-width: 325px;
    width: 25.8em;
}

.k-editor-dialog.k-editor-table-wizard-dialog .k-tabstrip-wrapper .k-content {
    min-height: 510px;
    height: 42em;
}

.k-edit-label,
.k-edit-form-container .editor-label,
.k-edit-field.k-no-editor {
    padding: 0.8em 0 1em;
}

.k-edit-form-container
{
    width: 410px;
}

.k-editor-dialog .k-root-tabs {
    padding: 0 1em;
}

.k-editor-dialog ul.k-tabstrip-items {
    padding: 0;
    border: 0;
}

.k-editor-dialog.k-editor-table-wizard-dialog .k-dropdown.k-align {
    min-width: 59px;
}

.k-editor-dialog.k-editor-table-wizard-dialog .k-edit-field .k-textbox,
.k-editor-dialog.k-editor-table-wizard-dialog .k-edit-field .k-dropdown {
    width: 15.74em;
}

.k-editor-dialog.k-editor-table-wizard-dialog .k-edit-field .k-numerictextbox + .k-dropdown,
.k-editor-dialog.k-editor-table-wizard-dialog .k-dropdown.k-align {
    width: 4.7em;
}

.k-animation-container .k-popup.k-align .k-list .k-icon {
    line-height: 1.4em;
}

.k-animation-container .k-popup.k-align .k-list .k-i-align-remove {
    line-height: 1.6em;
}

.k-editor-dialog.k-editor-table-wizard-dialog .k-edit-buttons {
    padding: 0.6em 1.3em;
}


// RTL
.k-rtl,
[dir="rtl"] {

    .k-combobox-clearable {

        .k-input {
            padding-left: @combobox-padding-x;
        }
    }

    .k-gantt {

        .k-task-template {
            padding: .643em .6em .643em 1.4em;
        }

        .k-task-draghandle {
            border-radius: 50% 0 50% 50%;
        }
    }

    .k-popup-edit-form .k-primary {
        float: left;
    }
}




// Pager
.k-pager-wrap {

    .k-link:hover .k-icon {
        opacity: 1;
    }

    .k-pager-numbers-wrap {
        margin-top: -@pager-padding-y;
        margin-bottom: -@pager-padding-y;
        align-self: stretch;
    }
    .k-pager-numbers {
        align-self: stretch;
        align-items: stretch;

        li {
            align-items: stretch;
        }

        .k-link {
            height: auto;
            border-width: 2px 0;
        }
    }

}
