@use 'sass:color';
@use '../base/common/base-variables' as *;

/*! calendar fabric theme variables */
$calendar-title-hover-color: $selection-bg !default;
$calendar-icon-hover-color: $hover-font !default;
$calendar-icon-hover-border-color: 1px solid $hover-border !default;
$calendar-light-font: $header-font !default;
$calendar-bg-color: $bg-base-0 !default;
$calendar-active-font-color: $selection-font !default;
$calendar-active-hover-font-color: $selection-font !default;
$calendar-active-today-font-color: $selection-font !default;
$calendar-active-today-hover-font-color: $selection-font !default;
$calendar-active-bg-color: $selection-bg !default;
$calendar-active-bg-border-color: 1px solid $selection-bg !default;
$calendar-active-bg-box-shadow: none !default;
$calendar-hover-color: $hover-bg !default;
$calendar-header-font-color: $header-font !default;
$calendar-header-icon-color: $content-font !default;
$calendar-active-icon-color: $selection-font !default;
$calendar-week-header-font-color: $content-font !default;
$calendar-title-font-color: $selection-bg !default;
$calendar-title-decoration-style: underline !default;
$calendar-icon-font-color: $content-font !default;
$calendar-active-state-icon-bg-color: $selection-bg !default;
$calendar-icon-hover-bg-color: $hover-bg !default;
$calendar-device-icon-hover-bg-color: none !default;
$calendar-focus-date-color: $content-font !default;
$calendar-other-month-date: $content-font-alt !default;
$calendar-text-color: $content-font !default;
$calendar-hover-text: $hover-font !default;
$calendar-today-bg-style: $bg-base-0 !default;
$calendar-focus-bg-color: $bg-base-20 !default;
$calendar-focused-today-bg-style: $bg-base-0 !default;
$calendar-focused-today-box-shadow: none !default;
$calendar-focused-today-border-style: 1px dashed $hover-border !default;
$calendar-border-style: 1px solid $border-default !default;
$calendar-box-shadow: none !default;
$calendar-cursor-default-style: default !default;
$calendar-cursor-pointer-style: pointer !default;
$calendar-block-style: block !default;
$calendar-inline-block-style: inline-block !default;
$calendar-display-style: flex !default;
$calendar-wrapper-border-radius: 0 !default;
$calendar-full-width: 100% !default;
$calendar-lg-day-header-format-max-width: 100% !default;
$calendar-lg-day-header-format-min-width: 540px !default;
$calendar-header-font-size: 12px !default;
$calendar-title-font-size: 17px !default;
$calendar-focused-state-color: $content-font !default;
$calendar-bigger-header-padding: 12px 12px 0 12px !default;
$calendar-bigger-icon-size: 46px !default;
$calendar-icon-line-height: 16px !default;
$calendar-bigger-max-width: 288px !default;
$calendar-bigger-min-width: 288px !default;
$calendar-bigger-month-view-height: 37px !default;
$calendar-bigger-day-header-height: $calendar-bigger-month-view-height !default;
$calendar-bigger-year-decade-height: 54px !default;
$calendar-bigger-header-height: 48px !default;
$calendar-bigger-today-button-height: 48px !default;
$calendar-normal-header-padding: 10px 10px 0 10px !default;
$calendar-normal-max-width: 232px !default;
$calendar-normal-min-width: 232px !default;
$calendar-small-max-width: $calendar-normal-max-width !default;
$calendar-small-min-width: $calendar-normal-min-width !default;
$calendar-weeknumber-min-width: 262px !default;
$calendar-weeknumber-bigger-width: 320px !default;
$calendar-normal-month-view-height: 30px !default;
$calendar-normal-month-view-line-height: $calendar-normal-month-view-height !default;
$calendar-normal-day-header-height: $calendar-normal-month-view-height !default;
$calendar-normal-day-header-text: none !default;
$calendar-normal-year-decade-height: 45px !default;
$calendar-normal-header-height: 32px !default;
$calendar-normal-icon-size: 30px !default;
$calendar-normal-today-button-height: 36px !default;
$calendar-border-radius: 0 !default;
$calendar-pointer-events: initial !default;
$calendar-float-right-style: right !default;
$calendar-icon-padding-top: 0 !default;
$calendar-float-left-style: left !default;
$calendar-table-padding: 0 10px 10px 10px !default;
$calendar-zero-value: 0 !default;
$calendar-next-prev-icon-size: 16px !default;
$calendar-prev-icon: '\e85e' !default;
$calendar-next-icon: '\e84f' !default;
$calendar-date-font-size: 12px !default;
$calendar-title-font-weight-style: 300 !default;
$calendar-yeardecade-bg-color: $bg-base-0 !default;
$calendar-yeardecade-hover-color: $hover-font !default;
$calendar-spanicon-font-weight-style: 300 !default;
$calendar-title-margin-left-style: 7px !default;
$calendar-normal-year-decade-padding: 5px !default;
$calendar-icon-font-size-style: 14px !default;
$calendar-link-font-weight-style: 500 !default;
$calendar-focused-date-bg-style: $bg-base-0 !default;
$calendar-yeardecade-bg-color: $bg-base-0 !default;
$calendar-yeardeacde-span-padding: 0 !default;
$calendar-yeardecade-padding: 0 6px 0 !default;
$calendar-yeardecade-header-padding: 10px !default;
$calendar-week-header-bg-style: none !default;
$calendar-none-style: none !default;
$calendar-disable-font-weight-style: 500 !default;
$calendar-other-month-display-style: inline-block !default;
$calendar-other-month-row-display-style: none !default;
$calendar-bigger-week-header-font-size: 15px !default;
$calendar-week-number-font-style: italic !default;
$calendar-week-number-font-color: $calendar-text-color !default;
$calendar-week-number-color-style: $content-font !default;
$calendar-week-number-font-size-style: 12px !default;
$calendar-normal-month-cell-padding: 0 !default;
$calendar-bigger-table-month-padding: 0 12px 12px 12px !default;
$calendar-bigger-table-yeardecade-padding: 0 8.5px 3.5px 8.5px !default;
$calendar-bigger-header-font-size: 19px !default;
$calendar-bigger-month-font-size: 14px !default;
$calendar-bigger-yeardecade-header-padding: 12px 12px 10px 12px !default;
$calendar-bigger-year-decade-padding: 0 0 13px 0 !default;
$calendar-yeardecade-hover-bg: $hover-bg !default;
$calendar-bigger-yeardecade-font-size: 14px !default;
$calendar-bigger-yeardecade-font-weight: normal !default;
$calendar-normal-day-header-font-weight: 500 !default;
$calendar-other-month-date-hover-bg: $hover-font !default;
$calendar-yeardecade-selected-hover-bg:  $selection-bg !default;
$calendar-bigger-day-font-size: 14px !default;
$calendar-yeardecade-font-weight: normal !default;
$calendar-today-focus-color: $content-font !default;
$calendar-today-color: $selection-bg !default;
$calendar-today-focused-font-color: $selection-bg !default;
$calendar-bigger-icon-font-size: 18px !default;
$calendar-bigger-month-view-padding: 0 !default;
$calendar-today-box-shadow: none !default;
$calendar-disabled-today-box-shadow: inset 1px 0 $border-fg-alt, inset 0 1px $border-fg-alt, inset -1px 0 $border-fg-alt, inset 0 -1px $border-fg-alt !default;
$calendar-disabled-today-font-color: none !default;
$calendar-today-border-color: 1px solid $border-fg-alt !default;
$calendar-focus-border-color: 1px dashed $border-fg !default;
$calendar-focus-box-shadow: none !default;
$calendar-hover-border-color: 1px solid $hover-border !default;
$calendar-default-border-color: 1px solid transparent !default;
$calendar-normal-month-view-width: $calendar-normal-month-view-height !default;
$calendar-normal-year-decade-width: $calendar-normal-year-decade-height !default;
$calendar-popup-padding: 0 !default;
$calendar-popup-bigger-padding: 0 !default;
$calendar-thead-padding: 0 !default;
$calendar-week-normal-max-width: $calendar-normal-max-width !default;
$calendar-week-normal-min-width: $calendar-normal-min-width !default;
$calendar-week-bigger-max-width: $calendar-bigger-max-width !default;
$calendar-week-bigger-min-width: $calendar-bigger-min-width !default;
$calendar-bigger-month-view-width: $calendar-bigger-month-view-height !default;
$calendar-bigger-month-view-line-height: $calendar-bigger-month-view-height !default;
$calendar-bigger-year-decade-width: $calendar-bigger-year-decade-height !default;
$calendar-today-bg-hover-color: $bg-base-20 !default;
$calendar-disable-font-color: $disable !default;
$calendar-disable-opacity: 1 !default;
$calendar-active-hover-bg-color: color.adjust($selection-bg, $lightness: 15%) !default;
$calendar-other-decade-cell-color: $calendar-other-month-date !default;
$calendar-decade-title-left-margin-style: $calendar-title-margin-left-style !default;
$calendar-icon-padding: 6px 7px !default;
$calendar-icon-button-margin: 0 !default;
$calendar-bigger-icon-padding: 13px !default;
$calendar-bigger-icon-margin: 0 !default;
$calendar-selected-border-color: 1px solid $selection-bg !default;
$calendar-week-number-font-weight: 500 !default;
$calendar-header-title-padding: 0 5px !default;
$border-zero: 0;

//Focus related styles
$calendar-title-focus-box-shadow: 0 0 0 1px $bg-base-100 !default;
$calendar-title-focus-background: none !default;
$calendar-title-active-background: $calendar-bg-color !default;
$calendar-icon-focus-box-shadow: 0 0 0 1px $bg-base-100 !default;
$calendar-title-border-radius: 0 !default;
$calendar-title-hover-bg-color: none !default;
$calendar-focused-cell-box-shadow: 0 0 0 1px $bg-base-100 !default;

//today
$calendar-footer-container-padding: 0 10px 10px 10px !default;
$calendar-footer-border: none !default;
$calendar-footer-background: $calendar-bg-color !default;
$calendar-bigger-footer-container-padding: 0 10px 10px 10px !default;
$calendar-bigger-footer-border: none !default;
$calendar-today-disabled-background-style: $bg-base-0 !default;
$calendar-today-disabled-border-style: $bg-base-0 !default;
$calendar-today-disabled-box-shadow: none !default;
$calendar-today-disabled-color: $disable !default;

//table related styles
$calendar-rtl-text-indent: 4px !default;

// small size
$calendar-small-icon-size: 28px !default;
$calendar-small-icon-font-size-style: 12px !default;
$calendar-small-title-font-size: 14px !default;
$calendar-small-icon-padding: 6px !default;
$calendar-small-header-height: 32px !default;
$calendar-small-day-header-height: 24px !default;
$calendar-small-month-view-height: 24px !default;
$calendar-small-month-view-line-height: $calendar-small-month-view-height !default;
$calendar-small-date-font-size: 12px !default;
$calendar-small-month-view-width: 24px !default;
$calendar-small-popup-padding: 0 !default;
$calendar-small-title-font-color: $selection-bg !default;
$calendar-bigger-small-table-padding: 0 10px 10px 10px !default;
$calendar-bigger-small-yeardecade-font-size: 12px !default;
$calendar-small-font-size: 12px !default;

$line-height: 14px;
$margin-zero: 0;
$padding-zero: 0;
$calendar-bigger-rtl-header-text-indent: 6px !default;
$calendar-zero-border-radius: 0 !default;
$calendar-bigger-header-width: 60% !default;
$calendar-bigger-placeholder-min-height: 392px !default;
$calendar-small-min-height: 220px !default;
