/* contains all .k-* overrides, Kendo structural fixes */

/* === GLOBAL BASE === */
.k-pivot-layout > tbody > tr:first-child > td:first-child, .k-resource.k-alt {
    background-color: #abbfd4;
}

.k-image {
    width: 10%;
}

/* === ICONS === */
/* Kendo 2024 compatibility: apply icon font to legacy .k-icon class */
.k-icon {
    color: #2e2e2e;

}

.k-icon::before {
    font-size: 16px;
    font-family: "WebComponentsIcons";
    font-style: normal;
    font-variant: normal;
    font-weight: normal;
    line-height: 1;
    speak: none;
    text-transform: none;
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
}

.k-i-chart-column-stacked::before {
    content: "\ea02";
}

/* tablePositionLeft/Center/Right tool icons missing from Kendo 2020 icon font */
.k-i-table-position-left:before {
    content: "\e61d";
}

.k-i-table-position-center:before {
    content: "\e61e";
}

.k-i-table-position-right:before {
    content: "\e61f";
}

/* === BUTTONS === */

.k-button {
    padding: 5px 5px;
    border-radius: 4px;
    border-color: #bbb;
    color: #2e2e2e;
    background-color: #e9e9e9;
    background-position: 50% 50%;
    background-image: none, linear-gradient(to bottom, rgba(255, 255, 255, .25) 0, rgba(255, 255, 255, 0) 100%);
}

.k-button.k-bare {
    border-color: transparent;
    color: inherit;
    background: 0 0;
    box-shadow: none;
    opacity: .9;
}

span.k-button.k-button-icon.k-bare {
    position: absolute;
    top: 0.6em;
    background-color: transparent;
    border-color: transparent;
}

.k-button.k-active {
    color: #fff;
    background-color: #8d8f92;
    border-color: #8d8f92;
}

.k-button.k-active.k-hover {
    color: #fff;
    background-color: #48474c;
}

.k-button-solid-primary:focus, .k-button-solid-primary.k-focus {
    box-shadow: 0 0 0px 2px rgb(1 170 234 / 30%);
}

a.link-button:hover,
button:hover, .k-button:not(.k-input-button).k-hover, .k-button:not(.k-input-button):hover {
    background-image: none, linear-gradient(to bottom, rgba(255, 255, 255, .25) 0, rgba(255, 255, 255, 0) 100%);
    border-color: #48474c;
    box-shadow: 0 0 2px 1px #48474c;
}

.k-primary, .k-primary:hover,
.k-button-solid-primary,
.k-button-solid-primary:hover {
    color: #2e2e2e;
    border-color: #48474c;
    background-color: #e9e9e9;
}

.k-slider .k-button, .k-grid .k-slider .k-button {
    border-radius: 18px;
    margin-right: 9px;
    margin-left: 5px;
}

/* === TEXTBOX === */
input.k-textbox {
    line-height: 1.65em;
    text-indent: .571em;
}

.k-textbox {
    background-color: #fff;
    color: #2e2e2e;
    border-radius: 4px;
    border-color: #c5c5c5;
    border-width: 1px;
    border-style: solid;
    outline: 0;
}

    .k-textbox:focus {
        box-shadow: 0 0 3px 0 rgba(0, 0, 0, .3);
    }

/* === CHECKBOX === */

.k-checkbox:checked {
    color: black;
    border-color: #48474c;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%2348474c' stroke-width='2' d='M3 8l3.5 3.5 6.5-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 80%;
}

.k-checkbox:hover {
    border-color: #48474c;
    color: #898f92;
    background-color: #fff;
}

.k-checkbox:focus,
.k-checkbox:checked:focus {
    box-shadow: 0 0 3px 0 #48474c;
    border-color: #48474c;
}

/* === DROPDOWN / LIST === */

.k-dropdownlist.k-focus {
    background-color: #bdb4af;
    background-image: none, linear-gradient(to bottom, rgba(255, 255, 255, .25) 0, rgba(255, 255, 255, 0) 100%);
    background-position: 50% 50%;
    border-color: #bdbdbd;
    box-shadow: 0 0 3px 0 rgba(0, 0, 0, .3);
}

.k-list-item.k-focus.k-selected {
    box-shadow: none;
    background-color: #8d8f92;
    border-radius: 3px;
}

.k-datepicker {
    width: 170px;
}

.k-calendar .k-calendar-td.k-selected .k-link {
    border-color: rgba(0, 0, 0, 0.08);
    color: #ffffff;
    background-color: #01AAEA;
}

.k-spinner-increase.k-selected {
    color: #ffffff;
    background-color: #2e2e2e;
}

.k-pager-wrap .k-pager-numbers .k-link {
    background-color: inherit;
    color: inherit;
}

.k-child-animation-container {
    height: auto;
}

/* === TABSTRIP === */

.k-widget.k-header.k-tabstrip {
    background-color: #abbfd4;
    border: #abbfd4;
    box-shadow: none;
}

.k-tabstrip-items {
    /* background-color: transparent; */
    background-color: #abbfd4;
    border: #abbfd4;
}

.k-panelbar .k-tabstrip-items .k-active, .k-tabstrip-items .k-active {
    /*background-color: #abbfd4;*/
    text-decoration: underline;
    color: #1f3763;
    font-weight: 800;
}

/* === MENU === */
.k-menu-link,
.k-menu-link-text {
    color: #2e2e2e;
}

/* === TREEVIEW === */

.k-treeview {
    padding-left: 5px;
}

    .k-treeview .k-item {
        font-size: small;
        padding: 0 0px 0 10px;
    }

/* Kendo 2024 renamed .k-in to .k-treeview-leaf-text; restore padding to match Kendo 2020 */
.k-treeview-leaf-text {
    padding: 1px 4px 1px 3px;
    line-height: 17.33px;
}

/*this is for the select item in treeview*/
.k-treeview-leaf.k-selected {
    background-color: #48474c;
}

/* === SLIDER === */

.k-slider .k-slider-selection {
    background-color: #48474c;
}

.k-slider .k-draghandle {
    border-color: #bbb;
    color: white;
    background-color: #eae8e8;
    border-radius: 50%;
}

.k-slider .k-draghandle:focus, .k-slider .k-draghandle.k-focus {
    box-shadow: 0 0 0 2px #eae8e8;
}

.k-slider .k-draghandle:hover {
    border-color: #8d8f92;
    background-color: #8d8f92;
}

.k-draghandle.k-focus.k-selected {
    box-shadow: inset 0 0 3px 1px #dcdcdd;
    background-color: #8d8f92;
    border-color: #8d8f92;
}

/* === GRID === */

/* Kendo 2024 automatically shows k-loading-mask on grid data fetch; app uses .bg instead */
.k-grid .k-loading-mask {
    display: none;
}

.k-grid-header th.k-header {
    background-color: lightgrey;
}

.k-grid tbody tr {
    line-height: 16px;
}

.k-grid:not(#DemandSupplyGrid) .k-table-td {
    padding: 5px 1px 5px 3px;
    line-height: 32px;
    color: black;
}

#DemandSupplyGrid .k-table-td {
    padding: 0 1px 0 3px;
    line-height: 29px;
}

/* change default highlighting on selected row */
.k-grid .k-table-td.k-selected {
    background-color: #fff8bd;
}

.k-grid td,
.k-grid .k-table-td,
.k-grid .k-alt {
    color: #000000;
}

.k-grid td.k-selected,
.k-grid .k-table-row.k-selected > td,
.k-grid .k-table-td.k-selected,
.k-grid .k-table-row.k-selected > .k-table-td {
    background-color: rgba(1, 170, 234, 0.25);
}

/*remove gradient from buttons content grids*/
.k-grid-edit-command {
    background-image: none;
    /* match regular button appearance — undo k-button-solid-primary default */
    color: #2e2e2e;
    border-color: #bbb;
    background-color: #e9e9e9;
}

/*remove gradient from buttons content grids*/
.k-grid-delete {
    background-image: none;
}

.k-grid-header .k-grid-header-menu.k-active {
    background-color: #c5c5c5;
}

.k-grid-norecords-template {
    background-color: whitesmoke;
    /*border: 1px solid #d5d5d5;*/
    border: none;
}

.k-grid-norecords {
    background-color: whitesmoke;
}

div .k-grid-header > div.k-grid-header-locked > table > thead > tr > th {
    background-color: #eae8e8;
}

div.k-header.k-grid-toolbar.k-grid-top {
    background-color: #fff;
}

/* hide loading spinner on grid load — consolidated */
#DemandSupplyGrid .k-loading-image,
#WaterfallGrid .k-loading-image,
#PlanSummaryGrid .k-loading-image,
#CurrentPriorGrid .k-loading-image,
#PlanDetailGrid .k-loading-image,
#BomGrid .k-loading-image {
    background-image: none;
}


/* === WINDOW / DIALOG === */

.k-window div.k-window-content {
    overflow: hidden;
}

/* === NOTIFICATION === */

.k-notification {
    border: 0;
    border-radius: 0px;
    font-size: 14px;
    /* transparent so the custom template content's background shows without a double-layer effect in Kendo 2024 */
    background-color: transparent;
    padding: 0;
}

/* inner Kendo wrappers must inherit so type-color applies uniformly */
.k-notification .k-notification-wrap,
.k-notification .k-notification-content {
    background-color: inherit;
    color: inherit;
}

.k-notification-info {
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
}

.k-notification-error {
    background-color: #db4240;
    color: #fff;
}

.k-notification-success {
    background-color: #17b15a;
    color: #fff;
}

/* Success template for pop up notifications */
.k-notification-upload-success {
    background: #90EE90;
    color: #fff;
}

/* notification div that holds the progress bar on file import */
.k-notification.k-notification-progress {
    border-radius: 0px;
    padding-block: 0px;
}

/* === PROGRESS BAR === */

/* in progress bar, but text on left */
.k-progress-status-wrap, .k-rtl .k-progressbar-horizontal.k-progressbar-reverse .k-progress-status-wrap {
    text-align: left;
}

.k-progress-status {
    color: #fff;
    font-size: 14px;
    padding-inline: 0px;
    padding-left: 5px;
}

.k-progressbar .k-selected {
    border-style: solid;
    border-width: 1px;
    border-color: #fff;
    color: white;
    background-color: #48474c;
}

/* === UPLOAD === */

/* file import screen */
.k-upload-files .k-file {
    display: block;
}

.k-splitbar {
    background-color: #e9e9e9;
    border-color: #d5d5d5;
    border-width: 1px;
    width: 5px;
}

.k-splitbar .k-icon {
    font-size: 10px;
}

.k-splitbar:focus, .k-splitbar.k-focus {
    background-color: #e9e9e9;
    border-color: #d5d5d5;
    border-width: 1px;
    box-shadow: inset 0 0 3px 1px #aeaeae;
    color: #2e2e2e;
    cursor: pointer;
}

.k-list-item.k-selected {
    background-color: #8d8f92;
}
.k-selected.k-list-optionlabel,
.k-selected.k-list-optionlabel:hover {
    background-color: #2e2e2e;
}

.k-button-solid-base.k-selected {
    border-color: #2e2e2e;
    color: white;
    background-color: #2e2e2e;
}

.k-button-solid-base.k-selected .k-icon {
    color: white;
}

.k-menu.k-context-menu .k-item > .k-link.k-selected {
    background-color: #8d8f92;
}

    .k-list-item.k-selected:hover {
    color: #ffffff;
    background-color: #8d8f92;
}

.k-picker .k-button,
.k-combobox .k-button {
    border-radius: 0px;
}

input.k-checkbox {
    display: block;
    margin: auto;
}

.k-upload {
    border-color: #FF0000;
}

.k-split-button > .k-button:last-child, .k-split-button > .k-split-button-arrow {
    margin-left: -1px;
    padding: 4px;
    width: auto;
    -ms-flex: none;
    flex: none;
}