/*
 * VARIABLES
 *
 * This file contains LESS variables that are used throughout the
 * theme by existing controls and styles. These are NOT design tokens
 * as defined by the Salesforce Lightning Design System, and therefore
 * should not be used in product applications. The purpose of the
 * following variables is to have one standardized collection of
 * attributes used in this theme.
 *
 * If one of the variables below needs to be surfaced as a
 * design token, please submit an issue.
 *
 */


// - - - - - - - - - - - - - - - - - - - - - - - - - - -
// ACHROMATIC GRAYS - number suffix = luminance value
// - - - - - - - - - - - - - - - - - - - - - - - - - - -
// A few shades of gray will suffice for simple controls and themes,
// but don't torture yourself with 'light', 'lighter', and 'more mediumer'

@true-white: #fff;
@true-black: #000;

// Used
@gray13:            lighten(@true-black, 13.5%); // #222
@gray20:            lighten(@true-black, 20%);	// #333
@gray27:            lighten(@true-black, 27%);   // #444
@gray33:            lighten(@true-black, 33.5%); // #555
@gray40:            lighten(@true-black, 40%);   // #666
@gray46:            lighten(@true-black, 46%); // #757575
@gray47:            lighten(@true-black, 46.7%); // #777
@gray53:            lighten(@true-black, 53%);	  // #888
@gray60:            lighten(@true-black, 60%);	  // #999
@gray67:            lighten(@true-black, 66.5%); // #AAA
@gray74:            lighten(@true-black, 73.5%); // #BBB
@gray75:            lighten(@true-black, 75%); // #4b4b4b
@gray80:            lighten(@true-black, 80%);   // #CCC
@gray87:            lighten(@true-black, 86.5%); // #DDD
@gray93:            lighten(@true-black, 93.5%); // #EEE
@gray96:            lighten(@true-black, 96%); // #F5F5F5
@gray98:            lighten(@true-black, 98%); // #f9f9f9
@gray99:            lighten(@true-black, 99%); // #FEFEFE

// Gray text colors
@text-dimmed:       @gray75;
@text-muted:        @gray46;

// - - - - - - - - - - - - - - - - - - - - - - - - - - -
// HUES
// - - - - - - - - - - - - - - - - - - - - - - - - - - -

// BLUE SLATE a powdery, light blue for selected items
@blue-slate:                 #D9EAF5;
// #edf5fa, wizard active step, repeater list sorted
@blue-smoke:                 lighten(@blue-slate, 5%);
// BLUE SKY - a light blue for hover of selected items.
@blue-sky:                   #B9DFF1;
// BLUE STEEL - primary link and button text color.
// "And then there's Ferrari and Le Tigre. Le Tigre's a lot softer.
//  It's a bit more of a catalog look. I use it for footwear sometimes."
@blue-steel:                 #4E8ABE;

// text color for selected items
@blue-rainstorm:             #385B6B;
@blue-royale:                #3074af;
@blue-cadet:                 #507587;
@blue-cornflower:            #66afe9;

@text-primary:               @blue-royale;

@brand-primary-dark:         @blue-royale;
@brand-primary-medium:       @blue-steel;
@brand-primary-light:        @blue-slate;

@brand-info-dark:            @blue-rainstorm;	// text color for selected items
@brand-info-medium:          @blue-steel;
@brand-info-light:           @blue-slate;

// green
@green-forest:               #04844B; // Consistent with SLDS, old value from revised MCtheme: #3c763d;
@green-olive:                #4BCA81; // Consistent with SLDS, old value from revised MCtheme: #8bd06d
@green-mint:                 #E9FCDE;

@brand-success-dark:         @green-forest;	// new 'accessible/high contrast' green
@brand-success-medium:       @green-olive;
@brand-success-light:        @green-mint;

//75, 202, 129

// orange
@orange-carrot:              #f7841d;
@orange-apricot:             #FFB55E;
@orange-peach:               #FFF1E1;
@brown-goldenrod:            #986000;	// new warning orange-brown

@brand-warning-dark:         @orange-carrot;
@brand-warning-medium:       @orange-apricot;
@brand-warning-light:        @orange-peach;

@text-warning:               @brown-goldenrod;

// red
@red-iron:                   #C23934;
@red-salmon:                 #EE6767;
@pink-cotton-candy:          #FCECED;

@text-danger:                @red-iron;

@brand-danger-dark:          @red-iron;
@brand-danger-medium:        @red-salmon;
@brand-danger-light:         @pink-cotton-candy;

// Tooltips`
@khaki-medium:               #f2f0b9;
@khaki-light:                #FCFBDA;

@tooltip-text-color:         @gray13;


// SLDS Spacing
// -------------------------
@spacing-xxx-small: 2px;
@spacing-xx-small: 4px;
@spacing-x-small: 8px;
@spacing-small: 12px;
@spacing-medium: 16px;
@spacing-large: 24px;
@spacing-x-large: 32px;


// previous set of variables
@spacing-xs: 5px;
@spacing-sm: 10px;
@spacing-md: 15px;
@spacing-lg: 20px;


//
// Generic Element Colors - modal and popover
// --------------------------------------------------
@element-title-bg:                                  desaturate(lighten(@blue-slate, 3%), 25%); // #E9F0F4
@element-border-color:                              desaturate(darken(@element-title-bg, 5%), 15%); // ???
@element-footer-bg-gradient-start:                  @element-title-bg;
@element-footer-bg-gradient-end:                    @true-white;

//
// Popovers
// --------------------------------------------------
@popover-bg:                                        @gray96;
@popover-title-bg:                                  @element-title-bg;
@popover-border-color:                              @gray80;
@popover-arrow-width:                 10px; // also used by inverse dropdown

//
// Modal
// --------------------------------------------------
@modal-bottom-border:                               @gray93;


// FOR BOOTSTRAP REFERENCE -- DO NOT USE!!!
// @gray-darker:            lighten(@true-black, 13.5%); // #222
// @gray-dark:              lighten(@true-black, 20%);   // #333
// @gray:                   lighten(@true-black, 33.5%); // #555
// @gray-light:             lighten(@true-black, 46.7%); // #777
// @gray-lighter:           lighten(@true-black, 93.5%); // #eee

// Border Radius
@baseBorderRadius:      4px;
@borderRadiusLarge:     6px;
@borderRadiusSmall:     3px;


// FORMS
@form-elements-padding-value: 15;
@form-elements-padding: unit(@form-elements-padding-value, px);


// CHECKBOX
@checkbox-width-value: 15;
@checkbox-width: unit(@checkbox-width-value, px);
@checkbox-height: unit( @checkbox-width-value, px );
@checkbox-padding-left: unit( ((@checkbox-width-value + ((@checkbox-width-value / 3) * 1))), px );

// CHECKBOX NO JAVASCRIPT
@checkbox-no-js-width-value: 15;
@checkbox-no-js-width: unit(@checkbox-no-js-width-value, px);
@checkbox-no-js-height: unit( @checkbox-no-js-width-value, px );
@checkbox-no-js-padding-left: unit( ((@checkbox-no-js-width-value + ((@checkbox-no-js-width-value / 3) * 1))), px );


// RADIO
@radio-button-width-value: @form-elements-padding-value;
@radio-button-width: unit(@radio-button-width-value, px);
@radio-button-height: unit( @radio-button-width-value, px );
@radio-button-padding-left: unit( ((@radio-button-width-value + (@radio-button-width-value / 3))), px );


// RADIO NO JAVASCRIPT
@radio-no-js-button-width-value: @form-elements-padding-value;
@radio-no-js-button-width: unit(@radio-no-js-button-width-value, px);
@radio-no-js-button-height: unit( @radio-no-js-button-width-value, px );
@radio-no-js-button-padding-left: unit( ((@radio-no-js-button-width-value + (@radio-no-js-button-width-value / 3))), px );


//FOOTER
@footer-padding: 8px 10px 8px 10px;
@footer-span-line-height: 21px;


// BUTTONS
@button-box-shadow: 0px 2px 2px fade(@true-black, 15%);
// THE SHADOW ABOVE IS WAY TOO BIG. I THINK WE SHOULD GO WITH THIS:
// @button-box-shadow: 0px 0.75px 0.75px rgba(0,0,0,.15);


//GLOBAL
@disabled-background: @gray98;
@border-color: @gray87;

//COMBOBOX
@combobox-border-default: @gray74;
@combobox-disabled: @gray80;

//LOADER
@loader-color: @blue-steel;

//PILLBOX
@pillbox-pill-background: @gray93;

//FOOTER
@footer-padding: 8px 10px 8px 10px;
@footer-span-line-height: 21px;

//FOOTER STYLES
@column-header-padding: 6px 10px;

//Selectable Hover, Selected, Selected Hover
// -------------------------
@selectableHover: @gray96;
@selected: @gray93;
@selectedHover: @gray87;




@menu-text-hover: @blue-cadet;

//== Scaffolding
//
//## Settings for some of the most global styles.

//** Background color for `<body>`.
@body-bg:               @true-white;
//** Global text color on `<body>`.
@text-color:            @gray13;
//** Global textual link color.
@link-color:            @brand-primary-medium;
//** Link hover color set via `darken()` function.
@link-hover-color:      darken(@link-color, 15%);

//== Typography
//
//## Font, line-height, and color for body text, headings, and more.

@font-family-sans-serif:  Arial, sans-serif;
@font-family-serif:       Georgia, "Times New Roman", Times, serif;
//** Default monospace fonts for `<code>`, `<kbd>`, and `<pre>`.
@font-family-monospace:   Menlo, Monaco, Consolas, "Courier New", monospace;
@font-family-base:        @font-family-sans-serif;

@font-size-base:          11px;
@font-size-large:         12px; // (deprecated)
@font-size-small:         10px; // (deprecated)

// Merger of MC and SLDS Font Sizes
@font-size-x-small: 10px;
@font-size-small: 12px;
@font-size-medium: 16px;
@font-size-large: 20px;
@font-size-x-large: 24px;
@font-size-xx-large: 32px;


@font-size-h1:            20px;
@font-size-h2:            15px;
@font-size-h3:            14px;
@font-size-h4:            12px;
@font-size-h5:            @font-size-base;
@font-size-h6:            10px;

//** Unit-less `line-height` for use in components like buttons.
@line-height-base:        1.4;//1.428571429; // 21/15
//** Computed "line-height" (`font-size` * `line-height`) for use with `margin`, `padding`, etc.
@line-height-computed:    floor((@font-size-base * @line-height-base)); // ~21px



//== Components
//
//## Define common padding and border radius sizes and more. Values based on 14px text and 1.428 line-height (~20px to start).

@padding-base-vertical:     4px;
@padding-base-horizontal:   5px; //10px;

@padding-large-vertical:    8px;
@padding-large-horizontal:  10px;

@padding-small-vertical:    4px;
@padding-small-horizontal:  8px;

@padding-medium-vertical:   12px;
@padding-medium-horizontal: 6px;

@padding-xs-vertical:       1px;
@padding-xs-horizontal:     5px;

@line-height-large:         1.33;
@line-height-small:         1.5;
@line-height-medium:        1.4;

@border-radius-base:        3px;
@border-radius-large:       4px;
@border-radius-small:       3px;
@border-radius-medium:      3px;



//== Buttons
//
//## For each of Bootstrap's buttons, define text, background and border color.

@btn-font-weight:                regular;

@btn-default-color:              @blue-steel;
@btn-default-bg-start:           @true-white;
@btn-default-bg-end:             @blue-slate;
@btn-default-bg-hover-start:     @blue-smoke;
@btn-default-bg-hover-end:       @blue-slate;
@btn-default-bg-press-start:     @blue-smoke;
@btn-default-bg-press-end:       @blue-slate;
@btn-default-bg-disabled-start:  @true-white;
@btn-default-bg-disabled-end:    @blue-slate;
@btn-default-border:             @gray67;

@btn-basic-color:                @gray40;
@btn-basic-bg-start:             @true-white;
@btn-basic-bg-end:               @gray87;
@btn-basic-bg-hover-start:       @gray96;
@btn-basic-bg-hover-end:         @gray87;
@btn-basic-bg-press-start:       @gray96;
@btn-basic-bg-press-end:         @gray87;
@btn-basic-bg-disabled-start:    @true-white;
@btn-basic-bg-disabled-end:      @gray87;
@btn-basic-border:               @gray74;

@btn-primary-color:              @true-white;
@btn-primary-bg-start:           @blue-cornflower;
@btn-primary-bg-end:             @blue-steel;
@btn-primary-bg-hover-start:     lighten(@blue-cornflower, 5%);
@btn-primary-bg-hover-end:       lighten(@blue-steel, 5%);
@btn-primary-bg-press-start:     @blue-steel;
@btn-primary-bg-press-end:       darken(@blue-steel, 10%);
@btn-primary-bg-disabled-start:  @blue-cornflower;
@btn-primary-bg-disabled-end:    @blue-steel;
@btn-primary-border:             transparent;


@btn-success-color:              @brand-success-light;
@btn-success-bg:                 @brand-success-dark;

@btn-info-bg:                    #31708f;

@btn-info-color:                 @true-white;
@btn-info-bg-start:              @btn-info-bg;
@btn-info-bg-end:                darken(@btn-info-bg, 10%);
@btn-info-bg-hover-start:        lighten(@btn-info-bg-start, 5%);
@btn-info-bg-hover-end:          lighten(@btn-info-bg-end, 5%);
@btn-info-bg-press-start:        @btn-info-bg;
@btn-info-bg-press-end:          darken(@btn-info-bg, 10%);
@btn-info-bg-disabled-start:     @btn-info-bg-start;
@btn-info-bg-disabled-end:       @btn-info-bg-end;
@btn-info-border:                transparent;


@btn-warning-color:              @brand-warning-light;
@btn-warning-bg:                 @brand-warning-dark;

@btn-danger-color:               @true-white;
@btn-danger-bg:                  @brand-danger-dark;

@btn-link-disabled-color:        @gray47;


//== Forms
//
//##

//** `<input>` background color
@input-bg:                       @true-white;
//** `<input disabled>` background color
@input-bg-disabled:              @gray93;

//** Text color for `<input>`s
@input-color:                    @gray13;	// override BS with black
//** `<input>` border color
@input-border:                   @gray80;
//** `<input>` border radius
@input-border-radius:            @border-radius-base;
//** Border color for inputs on focus
@input-border-focus:             @blue-cornflower;

//** Placeholder text color
@input-color-placeholder:        @gray60;

//** Default `.form-control` height
@input-height-base:              21px;//(@line-height-computed + (@padding-base-vertical * 2) + 2);
//** Large `.form-control` height
@input-height-large:             90px;//(ceil(@font-size-large * @line-height-large) + (@padding-large-vertical * 2) + 2);
//** Small `.form-control` height
@input-height-small:             21px;//(floor(@font-size-small * @line-height-small) + (@padding-small-vertical * 2) + 2);

@input-height-medium:            47px;

@legend-color:                   @gray13;
@legend-border-color:            @gray93;

//** Background color for textual input addons
@input-group-addon-bg:           @gray93;
//** Border color for textual input addons
@input-group-addon-border-color: @input-border;


//== Form states and alerts
//
//## Define colors for form feedback states and, by default, alerts.

@state-success-text:             @brand-success-dark;
@state-success-bg:               @brand-success-light;
@state-success-border:           darken(spin(@state-success-bg, -10), 5%);

@state-info-text:                @brand-info-dark;
@state-info-bg:                  @brand-info-light;
@state-info-border:              darken(spin(@state-info-bg, -10), 7%);

@state-warning-text:             @brand-warning-dark;
@state-warning-bg:               @brand-warning-light;
@state-warning-border:           darken(spin(@state-warning-bg, -10), 5%);

@state-danger-text:              @brand-danger-dark;
@state-danger-bg:                @brand-danger-light;
@state-danger-border:            darken(spin(@state-danger-bg, -10), 5%);

// pills and labels
@label-default-bg:               @gray47;
@label-success-bg:               @brand-success-dark;
@label-primary-bg:               @brand-primary-dark;
@label-info-bg:                  @brand-info-dark;
@label-warning-bg:               @brand-warning-dark;
@label-danger-bg:                @brand-danger-dark;

//== Media queries breakpoints
//
//## Define the breakpoints at which your layout will change, adapting to different screen sizes.

// Extra small screen / phone
//** Deprecated `@screen-xs` as of v3.0.1
@screen-xs:                  480px;
//** Deprecated `@screen-xs-min` as of v3.2.0
@screen-xs-min:              @screen-xs;
//** Deprecated `@screen-phone` as of v3.0.1
@screen-phone:               @screen-xs-min;

// Small screen / tablet
//** Deprecated `@screen-sm` as of v3.0.1
@screen-sm:                  768px;
@screen-sm-min:              @screen-sm;
//** Deprecated `@screen-tablet` as of v3.0.1
@screen-tablet:              @screen-sm-min;

// Medium screen / desktop
//** Deprecated `@screen-md` as of v3.0.1
@screen-md:                  992px;
@screen-md-min:              @screen-md;
//** Deprecated `@screen-desktop` as of v3.0.1
@screen-desktop:             @screen-md-min;

// Large screen / wide desktop
//** Deprecated `@screen-lg` as of v3.0.1
@screen-lg:                  1200px;
@screen-lg-min:              @screen-lg;
//** Deprecated `@screen-lg-desktop` as of v3.0.1
@screen-lg-desktop:          @screen-lg-min;

// So media queries don't overlap when required, provide a maximum
@screen-xs-max:              (@screen-sm-min - 1);
@screen-sm-max:              (@screen-md-min - 1);
@screen-md-max:              (@screen-lg-min - 1);



//== Grid system
//
//## Define your custom responsive grid.

//** Number of columns in the grid.
@grid-columns:              12;
//** Padding between columns. Gets divided in half for the left and right.
@grid-gutter-width:         20px;
// Navbar collapse
//** Point at which the navbar becomes uncollapsed.
@grid-float-breakpoint:     @screen-sm-min;
//** Point at which the navbar begins collapsing.
@grid-float-breakpoint-max: (@grid-float-breakpoint - 1);


//== Tables
//
//## Customizes the `.table` component with basic values, each used across all table variations.

//** Padding for `<th>`s and `<td>`s.
@table-cell-padding:            8px;
//** Padding for cells in `.table-condensed`.
@table-condensed-cell-padding:  5px;

//** Default background color used for all tables.
@table-bg:                      transparent;
//** Background color used for `.table-striped`.
@table-bg-accent:               @gray98;
//** Background color used for `.table-hover`.
@table-bg-hover:                @gray96;
@table-bg-active:               @table-bg-hover;

//** Border color for table and cell borders.
@table-border-color:            @gray87;

//Nav bars
@nav-link-hover-bg: @blue-sky;

//Progress bars
//
@progress-bar-height:               14px;
@progress-bar-height-sm:            10px;

//** Background color of the whole progress component
@progress-bg:                 @gray96;
//** Progress bar text color
@progress-bar-color:          @true-white;

//** Default progress bar color
@progress-bar-bg-dark:          @blue-cornflower;
@progress-bar-bg-light:         @blue-smoke;
//** Success progress bar color
@progress-bar-success-bg-dark:  @green-olive;
@progress-bar-success-bg-light: @green-mint;
//** Warning progress bar color
@progress-bar-warning-bg-dark:  @orange-apricot;
@progress-bar-warning-bg-light: @orange-peach;
//** Danger progress bar color
@progress-bar-danger-bg-dark:   @brand-danger-dark;
@progress-bar-danger-bg-light:  @brand-danger-light;
//** Info progress bar color
@progress-bar-info-bg-dark:     @progress-bar-bg-dark;
@progress-bar-info-bg-light:    @progress-bar-bg-light;

//Panels
//
//** Border color for elements within panels
@panel-inner-border:          @gray87;
@panel-footer-bg:             @gray96;

@panel-default-text:          @gray13;
@panel-default-border:        @gray87;
@panel-default-heading-bg:    @gray96;

@panel-primary-text:          @true-white;
@panel-primary-border:        @brand-primary-medium;
@panel-primary-heading-bg:    @brand-primary-medium;

@panel-success-text:          @state-success-text;
@panel-success-border:        @state-success-border;
@panel-success-heading-bg:    @state-success-bg;

@panel-info-text:             @state-info-text;
@panel-info-border:           @state-info-border;
@panel-info-heading-bg:       @state-info-bg;

@panel-warning-text:          @state-warning-text;
@panel-warning-border:        @state-warning-border;
@panel-warning-heading-bg:    @state-warning-bg;

@panel-danger-text:           @state-danger-text;
@panel-danger-border:         @state-danger-border;
@panel-danger-heading-bg:     @state-danger-bg;

//Wells
@well-background: @gray96;
@well-border-color: @gray80;
@well-box-shadow: 0 0 0 1px @true-white inset;
