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

// color
$gantt-header-bg-color: rgba($content-bg-color) !default;
$gantt-header-border-color: rgba($border-light) !default;
$gantt-header-color: rgba($content-text-color) !default;
$gantt-context-menu-icon-color: rgba($icon-color) !default;
$gantt-grid-line-color: rgba($border-light) !default;
$gantt-label-color: rgba($content-text-color-alt2) !default;
$gantt-content-color: rgba($content-text-color-alt2) !default;
$holiday-background: $content-bg-color-alt1 !default;
$progress-handler-outline: rgba($primary-text-color) !default;
$progress-handler-background: rgba($content-text-color) !default;
$holiday-label-color: rgba($content-text-color-alt2) !default;
$weekend-background: $content-bg-color-alt1 !default;
$event-marker-line-color: rgba($primary) !default;
$event-marker-label-color: rgba($warning-light) !default;
$event-marker-label-font-color: rgba($warning-dark) !default;
$connector-line-color: rgba($primary) !default;
$connector-line-hover-color: rgba($primary) !default;
$connector-false-line-color: rgba($primary) !default;
$connector-node-hover-color: rgba($icon-color) !default;
$connector-node-border-color: rgba($content-bg-color) !default;
$connector-node-hover-bg-color: rgba($icon-color-hover) !default;
$connector-node-hover-outerline-color: $connector-node-border-color !default;
$critical-connector-line-color: rgba($danger) !default;
$critical-connector-line-hover-color: rgba($danger-light) !default;
$connector-node-hover-border-color: rgba($content-bg-color) !default;
$gantt-line-container-cell-border-color: rgba($border-light) !default;
/* stylelint-disable */
$gantt-unscheduled-taskbar-background: linear-gradient(to right, rgba($primary-light), rgba($primary) 30%, rgba($primary) 70%, rgba($primary) 70%, rgba($primary-light) 100%) !default;
$gantt-unscheduled-critical-taskbar-background: linear-gradient(to right, rgba(285,85,85, 0.2), #D13438 30%, #D13438 70%, #D13438 70%, rgba(285,85,85, 0.2) 100%) !default;
$gantt-unscheduled-critical-taskbar-background-color: rgba(285,85,85, .2) !default;
$gantt-critical-child-task-bar: rgba($warning, 0.75) !default;
$gantt-critical-child-progress-bar: rgba($warning) !default;
$gantt-critical-child-task-bar-border: 1px solid rgba($danger-light) !default;
$gantt-unscheduled-milestone-top-border: $content-bg-color-alt5 !default;
$gantt-unscheduled-milestone-bottom-border: $content-bg-color-alt5 !default;
$gantt-child-task-bar: $gantt-taskbar-color !default;
$gantt-child-progress-bar: rgba($primary) !default;
$gantt-manualchild-task-bar:linear-gradient(0deg, rgba($success, 0.5), rgba($success, 0.5)), rgba($content-bg-color) !default;
$gantt-manualchild-task-bar-border: 1px solid rgba($success, 0.5);
$gantt-manualchild-progress-bar: rgba($success);
$gantt-manualparent-background-color: rgba($on-surface) !default;
$gantt-unscheduledmanualparent-background-color: linear-gradient(to right, rgba(63, 81, 181, 0.2), #989A9C 30%, #989A9C 70%, #989A9C 70%, rgba(63, 81, 181, 0.2) 100%) !default;
$gantt-unscheduled-manualtaskbar-background: linear-gradient(to right, rgba($success-light), rgba($success) 30%, rgba($success) 70%, rgba($success) 70%, rgba($success-light) 100%) !default;
$gantt-parent-task-bar: rgba($content-text-color-alt1, 0.75 ) !default;
$gantt-parent-progress-bar: rgba($content-text-color-alt1) !default;
$gantt-milestone-border-color: rgba($surface) !default;
$gantt-critical-milestone-border-color: rgba($surface) !default;
$gantt-parent-milestone-border-color: rgba($primary) !default;
$gantt-empty-taskbar-background-color: rgba(0,120,222,.15);
$gantt-empty-taskbar-border-color: rgba(0,120,222,.65) !important;
$gantt-label-font-color: rgba($content-text-color) !default;
$gantt-task-label-font-color: rgba($primary-text-color) !default;
$gantt-tab-header-active-font-color: rgba($primary) !default;
$gantt-tab-header-font-color: rgba($on-surface-variant) !default;
$gantt-edit-icon-color: rgba($icon-color) !default;
$gantt-icons-color:  rgba($icon-color) !default;
$gantt-cell-border-color: rgba($border) !default;
$gantt-dialog-active-tab-background: $transparent !default;
$gantt-dialog-tab-background: $transparent !default;
$gantt-dialog-header-font-color: rgba($content-text-color) !default;
$gantt-dialog-icon-color: rgba($icon-color) !default;
$gantt-dialog-icon-hover-color: $content-bg-color-alt1 !default;
$gantt-dialog-close-icon-hover-color: rgba($icon-color) !default;
$gantt-dialog-tab-hover-border-color: $transparent !default;
$gantt-dialog-tab-header-border-no-color: $transparent !default;
$gantt-tab-selection-indicator-color: rgba($primary) !default;
$gantt-tab-header-hover-color: $transparent !default;
$gantt-tab-header-hover-font-color: rgba($content-text-color-alt2) !default;
$gantt-active-background: $table-bg-color-selected;
$gantt-active-frozen-background: rgba($primary-container, 1) !default;
$gantt-active-color: rgba($table-text-color-selected) !default;
$gantt-table-background: rgba($content-bg-color) !default;
$gantt-baseline-color: rgba($danger) !default;
$gantt-inactive-parent: $content-bg-color-alt4 !default;
$gantt-inactive-child: rgba($primary-light) !default;
$gantt-connected-task: lighten-color(rgba($primary), 20%) !default;
$gantt-active-parent-task: lighten-color(rgba($warning-text), 10%) !default;
$gantt-uptail-border: rgba($border-light) !default;
$gantt-gridpopup-span: rgba($warning-text) !default;
$gantt-active-parent-shadow: ($gantt-gridpopup-span, 0.5) !default;
$gantt-left-resize-gripper-border: $content-bg-color-alt4 !default;
$gantt-left-resize-gripper-color: rgba($primary-text-color) !default;
$gantt-drag-clone-bg-color: rgba($content-bg-color) !default;
$gantt-drag-clone-border-color: rgba($border-light) !default;
$gantt-drag-clone-color: rgba($content-text-color) !default;
$gantt-content-font-color: rgba($content-text-color) !default;
$gantt-table-background-color: rgba($content-bg-color) !default;
$gantt-clone-dragdrop-bg-color: $gantt-table-background-color !default;
$error-elem-color: rgba($danger) !default;
$gantt-active-container-border: rgba($border) !default;
$rangecontainer-border-color: rgba($border-warning) !default;
$gantt-chartrow-hover-bg-color: rgba($secondary-container) !default;
$gantt-chartrow-selection-hover-bg-color: color-mix(in srgb, rgba($primary-container, 1), rgba($on-surface, .2)) !default;
$gantt-timelinecell-hover-bg-color: $content-bg-color-hover !default;
$gantt-headercell-hover-bg-color: $content-bg-color-hover !default;
$gantt-weekendcell-hover-bg-color: $table-bg-color-hover !default;

// Layout
$holiday-label-font-size: 13px !default;
$event-marker-label-font-size: 14px !default;
$event-marker-label-padding: 3px 12px !default;
$event-marker-label-height: 28px !default;
$event-marker-label-arrow-top: 56px !default;
$gantt-connector-point-margin-radius: 4px !default;
$gantt-connector-point-left: 8px !default;
$gantt-unscheduled-taskbar-left: 3px !default;
$gantt-unscheduled-taskbar-straight-radius: 2px !default;
$gantt-unscheduled-taskbar-curved-radius: 0 !default;
$gantt-label-size: 13px !default;
$gantt-header-border-spacing: 0 !default;
$gantt-child-progress-bar-border: 0px !default;
$gantt-child-progress-bar-border-radius:3px;
$gantt-child-task-bar-border: 1px solid rgba($primary) !default;
$gantt-manualchild-progress-bar-border: 0px !default;
$gantt-parent-progress-bar-border: 0px !default;
$gantt-parent-task-bar-border: 1px solid $border-dark !default;
$gantt-connector-point-right-margin-left: 3px !default;
$gantt-connector-point-left-margin-right: 3px !default;
$gantt-right-label-container-margin-left: 25px !default;
$gantt-task-label-font-size: 12px !default;
$gantt-label-font-size: 14px !default;
$gantt-bigger-label-font-size: 16px !default;
$gantt-unscheduled-taskbar-border: 0px !default;
$gantt-unscheduled-taskbar-border-radius: 4px !default;
$gantt-dialog-general-height: 241px !default;
$gantt-dialog-edit-form-odd-padding: 12px 18px 0 18px !default;
$gantt-dialog-edit-form-even-padding: 12px 18px 0 0 !default;
$gantt-dialog-edit-form-scroll-padding: 12px 18px 0 0 !default;
$gantt-mobile-bigger-dialog-edit-form-padding: 16px 12px 0 16px !default;
$gantt-bigger-tooltip-button-color: rgba($tooltip-bg-color) !default;
$gantt-bigger-tooltip-dialog-color: rgba($tooltip-bg-color) !default;
$gantt-bigger-tooltip-button-text-color: $toooltip-text-color !default;
$gantt-bigger-tooltip-dialog-text-color: rgba($tooltip-text-color) !default;
$gantt-bigger-tooltip-disabled-button-color: $content-bg-color-alt5 !important;
$gantt-bigger-dialog-edit-form-odd-padding: 16px 12px 0 16px !default;
$gantt-bigger-dialog-edit-form-even-padding: 16px 16px 0 12px !default;
$gantt-bigger-dialog-close-button-size: 20px !important;
$gantt-bigger-dialog-header-padding: 20px !important;
$gantt-bigger-add-dialog-content-height: 250px !important;
$gantt-bigger-event-arrow-color: rgba($warning-light) !default;
$gantt-bigger-event-arrow-font-size: 12px !important;
$gantt-bigger-event-markers-border-radius: 4px !important;
$gantt-bigger-event-markers-height: 26px !important;
$gantt-bigger-event-arrow-bottom: 6px solid transparent;
$gantt-bigger-event-arrow-right: 6px solid transparent;
$gantt-bigger-event-arrow-top: 6px solid transparent;
$gantt-bigger-event-arrow-top-value: 73px !important;
$gantt-bigger-event-markers-top: 65px !important;
$gantt-bigger-event-markers-padding: 4px 11px 4px 9px !important;
$gantt-bigger-add-dialog-input-height: 78px !important;
$gantt-bigger-add-dialog-input-width: 250px !important;
$gantt-bigger-add-dialog-input-field-width: 175px !default;
$gantt-bigger-filter-dialog-footer-padding: 16px !important;
$gantt-bigger-add-dialog-footer-padding: 16px !important;
$gantt-bigger-filter-dialog-input-padding: 16px 0 0 !important;
$gantt-bigger-filter-dialog-footer-height: 70px !important;
$gantt-bigger-add-dialog-footer-height: 70px !important;
$gantt-bigger-dialog-width: 556px !important;
$gantt-bigger-filter-dialog-width: 350px !important;
$gantt-dialog-bigger-input-field: 38px !default;
$gantt-dialog-bigger-input-padding-field: 32px 16px 16px !important;
$gantt-bigger-predecessor-dialog-padding: 10px 9px 9px 14px !important;
$gantt-bigger-predecessor-dialog-font-size: 12px;
$gantt-bigger-predecessor-dialog-font-weight: 400 !default;
$gantt-bigger-predecessor-dialog-line-height: 1.8 !default;
$gantt-bigger-dialog-input-field-height: 36px !important;
$gantt-bigger-dialog-input-icon: 36px !important;
$gantt-dialog-bigger-border-radius: 6px !important;
$gantt-bigger-dialog-tab-padding-left: 5px !important;
$gantt-bigger-dialog-content-border-radius: 16px 16px 0px 0px !default;
$gantt-bigger-dialog-edit-form-scroll-padding: 16px 18px 0 9px !default;
$gantt-dialog-close-button-top: 6px !important;
$gantt-dialog-dependent-height: 161px !default;
$gantt-dialog-resource-height: 202px !default;
$gantt-dialog-rte-height: 241px !default;
$gantt-dialog-rte-content-height: 200px !default;
$gantt-dialog-padding-bottom: 12px !default;
$gantt-dialog-tab-padding-left: 12px !default;
$gantt-tab-header-border-width: 1px;
$gantt-depedent-div-border-bottom: 0px !default;
$gantt-resource-div-border-bottom: 0px !default;
$gantt-richtext-border-bottom: 0px !default;
$gantt-richtext-content-border-bottom: 0px !default;
$gantt-connector-point-width: 12px !default;
$gantt-connector-point-height: 8px !default;
$gantt-connector-left-point-left: -12px !default;
$gantt-parent-progress-bar-border-radius: 4px !default;
$gantt-timeline-top-headercell-font-size: 14px !default;
$gantt-timeline-top-headercell-font-weight: bold !default;
$gantt-active-color-opacity: 0.9 !default;
$gantt-child-progress-margin-left: 0.5px !default;
$gantt-timeline-single-header-outer-div: 46px !default;
$gantt-chart-timeline-single-header-outer-div: 46px !default;
$gantt-header-border-height: 52px !default;
$gantt-bigger-header-border-height: 64px !default;
$gantt-treegrid-header-border-height: 52px !default;
$gantt-bigger-treegrid-header-border-height: 64px !default;
$gantt-header-border-bottom-width: 1px !default;
$gantt-timeline-top-header-cell-height: 26px !default;
$gantt-bigger-timeline-top-header-cell-height: 32px !default;
$gantt-header-border-radius: 0px !default;
$gantt-splitter-border-top-right-radius: 0px !default;
$gantt-splitter-border-top-left-radius: 0px !default;
$gantt-filter-menu-value-div-padding: 16px !default;
$gantt-dialog-tab-hover-border-bottom: 0px !default;
$gantt-dialog-tab-hover-border-bottom-radius: 0px !default;
$gantt-dialog-border-radius: 16px 16px 0px 0px !default;
$event-marker-line-height: 1.5 !default;
$gantt-clone-padding: 2px 8px 1px !default;
$gantt-bigger-clone-padding: $gantt-clone-padding !default;
$gantt-group-clone-box-shadow: 0 0 !default;
$gantt-header-font-size: 12px !default;
$gantt-header-font-weight: bold !default;
$gantt-drag-clone-font-weight: $gantt-header-font-weight !default;
$gantt-drag-clone-opacity: 1 !default;
$gantt-group-clone-text-align: center !default;
$gantt-clone-prop-box-shadow: 0 6px 12px rgba($warning-text, .175) !default;
$gantt-border-size: 1px !default;
$grid-active-container-border: 0 0 0 1px rgba($border) inset !default;
$gantt-range-container-arc-radius: 2px !default;
$bigger-column-menu-size: 35px !default;
$gantt-masked-table-background-color: rgb(225,223,221);
$gantt-split-container-line-border-color: rgba($outline);
$gantt-rowdd-topbottom-border: 2px solid rgba($primary) !default;
$gantt-rowdd-boxshadow: rgba($primary) !default;
$gantt-rowdd-childborder-width: 2px 0 0 !default;
$gantt-virtualtrack-contanier-height: 0 !important;
$gantt-event-markers-border-right: 0 !important;

// Typography variables
$gantt-bigger-dialog-border-radius: 6px;
$gantt-manual-parent-taskbar-border-radius: 50%;
$gantt-baseline-bar-border-radius: 2px;
$gantt-label-border-radius: 3px;