@candy-unit-background: #fff;
@candy-color-primary: #ff8000;
@candy-color-secondary: #5199db;

@candy-text-color-primary: #e35e00;
@candy-text-color-secondary: #3072c4;
@candy-text-color-secondary-light: #80caff;

@candy-text-color-selected: #222;
@candy-text-color-default: #333;
@candy-text-color-caption: #808080;
@candy-text-color-disabled: #a0a0a0;

@candy-bg-color-footer: #e9e9e9;
@candy-bg-color-panel: #f3f3f3;
@candy-bg-color-default: #fff;
@candy-bg-color-highlighted: #fff0bc;
@candy-bg-color-choosed: #efefef;

@candy-bg-color-success: #e2f7dc;
@candy-color-success: #3f9726;
@candy-text-color-success: #228007;

@candy-bg-color-warning: #fff0bc;
@candy-color-warning: #ffc200;
@candy-text-color-warning: #e6b000;

@candy-bg-color-error: #ffd7d7;
@candy-color-error: #da0c09;
@candy-text-color-error: #ce0014;

// Additional color alias
@candy-text-color-header: @candy-text-color-disabled;
@candy-text-color-invert: @candy-bg-color-default;
@candy-bg-color-active: @candy-bg-color-footer;
@candy-bg-color-hover: @candy-bg-color-footer;
@candy-border-color: @candy-bg-color-footer;
@candy-border-color-highlight: @candy-color-secondary;
@candy-text-color-link: @candy-text-color-secondary;
@candy-icon-color-help: @candy-text-color-secondary;
@candy-icon-color-search: @candy-color-primary;
@candy-shadow-color: rgba(54, 41, 2, 0.2);

// List
@candy-listitem-padding-top: 15px;
@candy-listitem-padding-bottom: 15px;
@candy-listitem-disc-color: @candy-text-color-secondary;
@candy-listitem-disc-content: "•";

//AddRowButton
@add-button-color: tint(@candy-text-color-secondary, 10%);
@add-button-link-hover: darken(mix(@candy-text-color-link, @candy-text-color-secondary-light), 9%);

//CrossfitTable
@crossfit-border-color: @candy-text-color-caption;

//EmbeddedLog
@embedded-border: tint(@candy-text-color-disabled, 60%);
@embedded-instance-label: @candy-text-color-disabled;

//HiddenPanel
@hidden-button-bg-color: @candy-bg-color-panel;
@hidden-button-text-color: @candy-text-color-default;
@hidden-button-shadow: rgba(0, 0, 0, 0.3);

//Highlight
@highlight-text-color: @candy-text-color-secondary;
@highlight-text-color-hover: tint(@candy-text-color-secondary, 10%);
@highlight-bg-color: tint(@candy-bg-color-error, 44%);
@highlight-bg-color-hover: @candy-bg-color-error;

//Multiline
@multiline-current-bg-color: tint(@candy-text-color-disabled, 60%);

//MultilineField
@multiline-field-bg-color: @candy-bg-color-panel;
@multiline-field-icon-color: @candy-text-color-caption;
@multiline-field-icon-color-hover: @candy-text-color-selected;

//Panel
@panel-link-text: @candy-text-color-selected;
@panel-instance-lable: @candy-text-color-disabled;
@panel-instance-lable-current: @candy-text-color-default;
@panel-border: tint(@candy-text-color-disabled, 60%);

//ActionPanel
@action-panel-border-color: tint(@candy-text-color-disabled, 60%);
@action-link-color: @candy-text-color-default;
@action-item-color: @candy-text-color-default;

//ListTemplatesModal
@template-deleted-bg-color: @candy-bg-color-highlighted;

//Picklist
@picklist-item-hover: @candy-color-secondary;

//ScrollableContainer
@scrollbar-bg-color: @candy-bg-color-footer;
@scroll-bg-color: tint(@candy-text-color-caption, 43%);

//SimpleForm
@simple-form-border-color: tint(@candy-text-color-disabled, 66%);

//Tooltip
@candy-forms-tooltip-max-width: 240px;

//Arrows
@arrow-bg-color: tint(@candy-text-color-secondary, 10%);

//Pencil
@pencil-block-hover: @candy-bg-color-panel;

//Unit
@unit-label-color: lighten(@candy-text-color-caption, 11%);
@unit-link-color-hover: darken(mix(@candy-icon-color-help, @candy-text-color-secondary-light), 9%);

//FileLoader
@fileloader-icon-color: @candy-text-color-caption;
@fileloader-bg-color-hover: @candy-bg-color-panel;
@fileloader-progress-bg-color: tint(@candy-text-color-disabled, 60%);

//DiadocSuggestComboBox
@diadoc-suggest-combobox-hint-hover: @candy-bg-color-default;

// NOTE: Override react-ui theme
@tab-color-focus: @candy-color-primary;
@tab-color-hover: lighten(@candy-color-primary, 30%);

@loader-bg: @candy-bg-color-panel;
@loader-opacity: 0.8;

/* stylelint-disable */
@import (optional) "~candy-ui-theme";
/* stylelint-enable */
