﻿/* Generic */
.k-grid,
.k-input,
.k-picker,
.k-button {
    font-size: 0.875rem;
}

.k-input-md .k-input-icon, .k-input-md .k-input-validation-icon, .k-input-md .k-input-loading-icon, .k-input-md .k-clear-value, .k-input-md .k-input-prefix > .k-icon, .k-input-md .k-input-prefix > .k-input-prefix-text, .k-input-md .k-input-suffix > .k-icon, .k-input-md .k-input-suffix > .k-input-suffix-text, .k-picker-md .k-input-icon, .k-picker-md .k-input-validation-icon, .k-picker-md .k-input-loading-icon, .k-picker-md .k-clear-value, .k-picker-md .k-input-prefix > .k-icon, .k-picker-md .k-input-prefix > .k-input-prefix-text, .k-picker-md .k-input-suffix > .k-icon, .k-picker-md .k-input-suffix > .k-input-suffix-text {
    padding: 0.125rem; /* 2px */
}

.k-picker-solid {
    background-color: #fff;
    border-color: #ccc;
}

/* Grid */
.k-grid {
    min-width: 400px;
    border: none !important;
    background-color: #FCFDFF;
    box-shadow: none;
}

    .k-grid a {
        color: #8383A9
    }

.k-grid-content,
.k-grid .k-table {
    background-color: transparent;
}

    .k-grid .k-table-row {
        background-color: unset !important; /* Fixed gray background color issue when hovered with Bootstrap 5.3.6 */
    }

        .k-grid .k-table-row.k-table-alt-row {
            background-color: #F5F9FF !important; /* Fixed gray background color issue when hovered with Bootstrap 5.3.6 */
        }

.k-table,
.k-data-table {
    color: #6C6C84;
}

.k-grid-content-locked {
    border-right-width: 0px;
}

.k-grid-header-locked th:last-of-type,
.k-grid-content-locked td:last-of-type {
    border-right-width: 5px;
}
    .k-grid-content-locked,
    .k-grid-content-locked td,
    .k-grid-header-locked,
    .k-grid-header-locked .k-header {
        border-color: #ffffff;
    }

.k-table-md {
    font-size: 0.875rem;
}

.k-table-th, .k-table-td, .k-table-td .badge {
    box-sizing: content-box;
}

/* Header */
.k-grid .k-header, .k-grid .k-grid-header {
    color: #2D2E44;
    font-weight: bold;
    background-color: #F2F7FF;
    border-color: #ffffff;
    border-bottom-width: 5px;
    padding-right: 8px;
}

.k-grid .k-grid-header .k-table-th {
    vertical-align: middle;
}

.k-grid td, .k-grid .k-table-td {
    white-space: nowrap;
    text-overflow: ellipsis;
    padding: .2em .6em !important;
    height: 27px;
}


.k-grid td,
.k-grid .k-table-td,
.k-grid .k-grid-content,
.k-grid .k-grid-header-locked,
.k-grid .k-grid-content-locked,
.k-grid .k-grid-footer-locked,
.k-grid .k-grid-header-locked .k-header,
.k-grid .k-grid-content-locked td,
.k-grid .k-grid-content-locked .k-table-td,
.k-grid .k-grid-footer-locked td,
.k-grid .k-grid-footer-locked .k-table-td {
    border-color: #ffffff
}

.k-grid .k-table-th,.k-grid td,.k-grid .k-table-td {
    border-left-width: 5px;
    border-bottom-width: 5px;
}

.k-grid .k-grid-header .k-header .k-link,
.k-grid .k-grid-header-locked .k-header .k-link {
    height: auto;
    justify-content: center;
}

.k-grid tr:not(.k-grouping-row) td {
    border-bottom: none !important;
    border-top: none !important;
}

    .k-grid tr td:first-child,
    .k-grid-header th.k-header:first-child {
        border-left-width: 0px;
    }

    .k-grid-header th.k-header.k-group-cell:first-child {
        text-align: right;
    }

            .k-grid-header th.k-header.k-group-cell:first-child i {
                color: #aeaeae; /* Expand all/Collapse all button */
            }

    .k-grid-header th.k-header.k-group-cell,
    .k-grid tr td.k-group-cell {
        border-left-width: 0px;
    }

    .k-grid td.grid-selectable-column {
        border-left-width: 1px;
    }

        /* Fixed grid select column checkbox bottom spacing */
        .k-grid td.grid-selectable-column .k-checkbox {
            margin-top: 0px;
            margin-bottom: 4px
        }

    .k-grid th.grid-selectable-column-header {
        border-left-width: 0px;
    }

.k-grid .k-grid-header-wrap {
    border-right: none;
}

/* Grid Header Text Wrapping for .smaller-font */
.k-grid .k-grid-header .k-header.smaller-font .k-column-title {
    text-wrap-mode: wrap;
    overflow-wrap: initial;
}

/* Filtered Column Header */
thead .k-active {
    background-color: #ccc !important;
    color: #000;
}

/* Sorted Column Header */
.k-grid-header .k-sorted {
    background-color: #eaeaea;
}

.k-grid-header .k-svg-i-sort-asc-small, .k-grid-header .k-svg-i-sort-desc-small, .k-grid-header .k-sort-icon {
    color: #3F3D76;
}

/* Column Menu */
.k-column-menu .k-menu:not(.k-context-menu) {
    background-color: #F2F7FF;
    font-weight: 400;
}

    .k-column-menu .k-menu:not(.k-context-menu) .k-group {
        background-color: #FCFDFF;
    }

    .k-column-menu .k-menu:not(.k-context-menu) .k-menu-item {
        font-size: 14px;
    }

    .k-column-menu .k-menu:not(.k-context-menu) > .k-menu-item.k-selected {
        font-weight: inherit;
    }

        .k-column-menu .k-menu:not(.k-context-menu) > .k-menu-item > .k-menu-link {
            padding: 16.8px 0px 15.4px 16.8px;
        }

            .k-column-menu .k-menu:not(.k-context-menu) > .k-menu-item > .k-menu-link input {
                margin-right: 8px; /* Create space between checkbox and text in column menu */
            }

            .k-column-menu .k-menu:not(.k-context-menu) > .k-menu-item > .k-menu-link > .k-menu-expand-arrow {
                margin-right: 10px;
            }

    .k-column-menu .k-menu:not(.k-context-menu) .k-menu-item .k-content {
        background-color: #FCFDFF;
    }

    ul.k-menu-vertical .k-separator,
    .k-column-menu .k-menu:not(.k-context-menu) > .k-separator {
        border-top-width: 5px;
        border-color: #FFFFFF;
    }

    .k-column-menu .k-menu:not(.k-context-menu) > .k-item {
        color: #333;
    }

.k-menu .k-menu-group .k-item > .k-link {
    padding: .28em 1.8em .38em .9em; /* Paddings for the column menu */
}

/* Grid Column Menu Icon Button */
.k-grid .k-cell-inner .k-grid-header-menu {
    width: 16px;
    margin-right: 0px;
    padding-left: 0px;
    padding-right: 0px;
}

    .k-grid .k-cell-inner .k-grid-header-menu:hover {
        background-color: inherit;
    }

/* Avoid last row being covered by horizontal scrollbar */
.k-grid:not(.k-treelist) .k-grid-content-locked tr.k-table-row:last-child,
.k-grid:not(.k-treelist) .k-grid-content tr.k-table-row:last-child,
.k-grid.k-treelist .k-grid-content tr.k-table-row:nth-last-child(-n+1 of tr:not([style*='display: none'])) {
    height: 46px !important;
}

/* Grid Buttons */
.k-grid > .k-grid-container .k-button:not(.k-icon-button) {
    border-radius: 4px;
    border-color: #ccc;
    background-color: #fff;
    color: #333;
}

    .k-grid > .k-grid-container .k-button:not(.k-icon-button):hover {
        border-color: #aeaeae;
        background-color: #ebebeb;
    }

/* Grid Icon Buttons */
.k-grid > .k-grid-container .k-button.k-icon-button {
    background: none;
    border: none;
}

/* Hyperlink */
.k-grid tr td a {
    text-decoration: underline;
}

.k-grid th {
    white-space: normal;
    text-overflow: inherit;
}

/* Checkbox */
.k-grid input[type=checkbox] {
    accent-color: #E56A54; /* Darker shade of #4EC3E0 in order for browser to pick #FFF for the check color */
}

.k-grid .k-checkbox:checked {
    border-color: #E56A54;
    background-color: #E56A54;
}

/* Selected Row */
.k-grid .k-table-row.k-selected,
.k-grid .k-table-row.k-selected:hover,
.k-grid .k-table-row.k-selected > td,
.k-grid .k-table-row.k-selected > td:hover,
.k-grid .k-table-row.k-selected > .k-table-td,
.k-grid .k-table-row.k-selected > .k-table-td:hover,
.k-grid .k-table-row.k-selected:hover > .k-table-td,
.k-grid .k-grid-content-locked .k-selected.k-table-alt-row td,
.k-grid .k-grid-content-locked .k-selected.k-table-alt-row td:hover,
.k-grid .k-grid-content-locked .k-selected.k-table-alt-row td.k-table-td,
.k-grid .k-grid-content-locked .k-selected.k-table-alt-row td.k-table-td:hover {
    color: #6C6C84;
    background-color: #ccc; /* Override custom background colors any cells might have */
    border-color: #ccc;
}

/* Badge */
.k-grid .badge {
    min-width: 85%;
    /*text-transform: uppercase;*/
    padding: 7px;
    border-radius: 5px;
}

.k-grid-content .badge,
.k-grid-content-locked .badge,
.simulationTooltipSection .badge {
    font-size: 0.875rem;
    padding: 4px 7px 0;
    height: 18px;
}

.k-grid-content .centerText .badge,
.k-grid-content-locked .centerText .badge {
    margin-right: unset;
}

/* Hover */
.k-grid tbody tr:hover {
    background-color: #FCFDFF;
}

.k-grid tbody tr.k-table-alt-row:hover {
    background-color: #F2F7FF;
}

.k-detail-cell {
    padding: 0 !important; /* Make row details contents flush with parent */
}

.k-menu-group .k-filterable {
    padding: 0 10px;
}

.k-grid-header th[data-dir].k-with-icon .k-link {
    margin-right: 32px !important; /* Make space for moved sort arrow in IE */
}

.k-grid-header {
    padding-right: 0 !important;
    border: none !important;
}

.card-body > .k-grid > .k-grid-header {
    border-top: solid 5px #F3F3F3 !important;
}

/* for kgrid header that comes directly after a group header, a search bar, or a pager */
.card-body > .k-grid > .k-grouping-header + .k-grid-header,
.card-body > .k-grid > .k-grid-toolbar + .k-grid-header,
.card-body > .k-grid > .k-grid-pager + .k-grid-header {
    border-top: none !important;
}

    .k-grid-header th {
        font-weight: bold !important;
    }

        .k-grid-header th.k-without-menu .k-link {
            margin-right: 16px !important;
        }

        .k-grid-header th.k-header > .k-link {
            padding: .5em 0 .4em .6em !important; /* Make space for moved sort arrow */
        }

.k-grid table .k-header-column-menu {
    font-weight: normal !important;
}

/* Pager */
.k-pager {
    border: none;
    color: #3E3E55;
    background-color: #FCFDFF;
    padding: 0.25rem;
}

    .k-pager .k-pager.k-pager-numbers > .k-button {
        border: none;
        color: #3E3E55;
        background-color: rgba(0,0,0,0);
    }

    .k-pager .k-button.k-selected,
    .k-pager .k-button.k-selected:hover {
        border: none;
        color: #fff;
        background-color: #3F3D76 !important; /* Override transparent background by Bootstrap 5.3.6 */
    }

    .k-pager .k-pager-refresh {
        background-color: unset;
    }

    .k-pager > .k-pager-sizes > .k-picker > .k-input-inner {
        padding: 6px 4px 6px 9px; /* Fixed issue with grid pager page size dropdown not showing full three digits */
    }

.k-pager-sizes, .k-pager-info {
    color: #8383A9;
}

.k-pager-numbers > .k-button {
    border-radius: 0px;
}

.k-pager-md .k-pager-info {
    display: flex; /* Fixed issue with pager info not displaying after bootstrap upgrade */
}

/* Footer Selected Count Info */
#selectAllGridItems,
#clearGridSelections {
    color: #4EC3E0;
    text-decoration: underline;
}

#gridSelectionInfo {
    margin-left: 1em;
    margin-right: 1em;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    text-align: right;
    flex-shrink: 1;
    order: 10;
}

#gridSelectionIntuiflowIcon {
    background: url('../../_content/Intuiflow.RazorUIClassLib/Images/Intuiflow_logo_invert_icon.svg');
    background-repeat: no-repeat;
    background-size: 22px 22px;
    background-position: center;
    width: 20px;
    height: 20px;
    margin-top: 2px;
}
/* Grid Search Bar */
.k-grid-toolbar {
    border-bottom-color: rgb(204, 204, 204);
    display: flex !important;
    justify-content: flex-start !important;
}

    .k-grid-toolbar .k-spacer {
        order: 2; /* Push spacer to the end */
    }

    .k-grid-toolbar .k-toolbar-item {
        order: 1; /* Search box comes first */
    }

.k-toolbar-item > .k-searchbox > .k-svg-i-search {
    order: 2; /* Push magnify glass icon to the right end */
}

/* Group Header */
.k-grouping-header {
    display: flex; /* Fixed margin issue after upgrading to Bootstrap 5.3.6 */
    color: #6C6C84;
    background-color: #E8F0FA;
    border-top-color: rgb(204, 204, 204);
    border-bottom-color: rgb(204, 204, 204);
    border-bottom-width: 3px;
}

.btnExpandCollapse {
    cursor: pointer;
}

/* Group cells */
.k-grid .k-grouping-row td,
.k-grid .k-grouping-row .k-table-td{
    border-color: #F2F7FF /*#E8F0FA*/;
}

.k-grid .k-grid-content-locked .k-grouping-row + .k-table-row td,
.k-grid .k-grid-content-locked .k-grouping-row + .k-table-row .k-table-td {
    border-top-color: #F2F7FF /*#E8F0FA*/;
}

.k-grid .k-grid-content-locked .k-selected.k-table-row:hover .k-table-td.k-group-cell,
.k-grid .k-grid-content-locked .k-selected.k-table-row .k-table-td.k-group-cell,
.k-grid .k-grid-content-locked .k-table-td.k-group-cell,
.k-grid .k-grid-content .k-selected.k-table-row:hover .k-table-td.k-group-cell,
.k-grid .k-grid-content .k-selected.k-table-row .k-table-td.k-group-cell,
.k-grid .k-grid-content .k-table-td.k-group-cell,
.k-grouping-row td,
.k-grouping-row .k-table-td,
.k-resize-handle-inner {
    background-color: #F2F7FF /*#E8F0FA*/;
    color: #6C6C84;
}

/* Overwritig the style of the default edited flag in the grid */
.k-grid .k-dirty {
    border-color: #E56A54 transparent transparent #E56A54;
    border-width: 6px;
}

/* Fix dirty flag placement issue in edited cell with no value change (therefore the td didn't get the k-dirty-cell class assigned) */
.k-grid .k-table-td:has(span.k-dirty) {
    position: relative;
}

/* IE10+ Grid header elipsis handling */
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
    .k-grid-header th[data-dir].k-with-icon .k-link {
        margin-right: 14px !important;
        display: inline;
    }

    .k-grid-header th.k-with-icon .k-link {
        margin-right: 14px !important;
    }
}

/* Customized Classes */
.k-grid td.noPadding {
    padding: 0 !important;
}

.k-grid .noellipsis {
    text-overflow: initial !important;
}

.k-grid .newLine {
    display: block;
}

.k-grid .bigger {
    font-size: 16px;
}

.k-grid .smaller {
    font-size: 12px;
}

.k-grid .bolder {
    font-weight: 600;
}

.k-gridd .red {
    color: #a94442;
}

.k-grid .right {
    float: right;
}

.k-grid .k-grid-header .k-header.smaller-font {
    font-size: 12px;
    white-space: normal;
    text-wrap-mode: wrap;
}

.k-grid .k-grid-content .smaller-font {
    font-size: 11px;
    white-space: normal;
}

.grid-group-label {
    /* Grid group labels */
    padding-left: 10px;
}

/* Edge Grid header misalignment handling with sortings */
.k-header-column-menu .k-i-sort-asc-sm,
.k-header-column-menu .k-i-sort-desc-sm {
    margin-left: 0 !important;
}

.flushGrid .k-grid {
    height: 100% !important;
}

.flushGrid .k-grid-header {
    width: 100%;
}

.flushGrid .k-grid-content,
.flushGrid .k-grid-content-locked {
    position: relative;
    overflow: hidden;
}

.flushGrid .k-grid-content-locked, .flushGrid .k-grid-header-locked {
    z-index: 1;
    box-shadow: 5px 0 6px -6px rgba(0,0,0,0.2);
}

.flushGrid .k-grid-header, .flushGrid .k-grid-header-locked {
    position: relative;
}

.flushGrid .k-grid-header-locked {
    background-color: #b1b1b1;
}

.flushGrid .k-tabstrip .k-grid-content {
    position: relative;
}

.flushGrid .k-tabstrip .k-grid-pager {
    top: -1px !important;
    position: relative;
}

.singleGridPageRow {
    height: 100%;
}

    .singleGridPageRow > .card {
        height: 100%;
    }
        .singleGridPageRow > .card > .card-heading {
            padding: 15px;
        }

        .singleGridPageRow > .card > .card-body {
            margin: 0;
            padding: 0;
            height: calc(100% - 50px);
        }

    .singleGridPageRow .k-grid {
        height: 100%;
    }

.k-command-cell .k-button {
    height: 24px !important;
    margin-right: 2px !important;
    margin-left: 2px !important;
}

.k-grid-edit .k-icon, .k-grid-update .k-icon, .k-grid-cancel .k-icon {
    margin: 0 !important;
}

#cdafEntryForm span[role=button].k-select {
    left: 0;
    border-left: 0;
    border-right: 1px solid rgb(231, 231, 231);
    border-radius: 0;
    width: 39px;
    background-color: #eee;
}

#cdafEntryForm .k-picker-wrap {
    padding-left: 39px;
    padding-right: 0;
}

.inputContainer, .inputContainer > .k-datepicker, .inputContainer > .bootstrap-select {
    width: 100% !important;
}

.editorContainer {
    display: flex;
    flex-direction: column;
}

    .editorContainer > .singleGridPageRow {
        flex: 1;
        min-height: 0px; /* So that the flexbox would shrink to fit inside the container */
        padding-bottom: 10px;
    }

    .editorContainer .topRow {
        margin-bottom: 10px;
    }

    .editorContainer .gridResetButtonGroup {
        position: absolute;
        right: 10px;
    }

    .editorContainer a#resetGridSelections,
    .editorContainer a#resetGridFilters,
    .editorContainer a#resetGridSorts {
        float: right;
        background-color: #2A294D;
        border-color: #19182e;
        margin-left: 5px;
    }
        .editorContainer a#dataExport:hover,
        .editorContainer a#dataExport.focus,
        .editorContainer a#dataExport:focus,
        .editorContainer a#resetGridSelections:hover,
        .editorContainer a#resetGridSelections.focus,
        .editorContainer a#resetGridSelections:focus,
        .editorContainer a#resetGridFilters:hover,
        .editorContainer a#resetGridFilters.focus,
        .editorContainer a#resetGridFilters:focus,
        .editorContainer a#resetGridSorts:hover,
        .editorContainer a#resetGridSorts.focus,
        .editorContainer a#resetGridSorts:focus {
            background-color: #E56A54;
        }

    .editorContainer a#dataExport {
        float: right;
        font-size: 15px;
        background-color: #2A294D;
        border-color: #19182e;
        margin-left: 3px;
    }

    .editorContainer #resetGridSelections .fal.fa-list.fa-stack-1x,
    .editorContainer #resetGridFilters .fal.fa-filter.fa-stack-1x,
    .editorContainer #resetGridSorts .fal.fa-sort-alt.fa-stack-1x {
        font-size: 15px;
        position: relative;
        left: -2px;
    }

    .editorContainer #resetGridSelections .fal.fa-times,
    .editorContainer #resetGridFilters .fal.fa-times,
    .editorContainer #resetGridSorts .fal.fa-times {
        position: absolute;
        left: 18px;
        top: 12px;
    }

    /* Solve validation tooltip covering modal (z-index 1050) issue */
    .editorContainer .k-validator-tooltip {
        z-index: 1000 !important;
    }

/* Standard align for intuiflow grids content and headers*/
.k-grid .k-grid-header tr th.intuiflow-text-align-header {
    text-align: center;
}

.k-grid td.intuiflow-text-align-text {
    text-align: left;
}

.k-grid td.intuiflow-text-align-number {
    text-align: right;
}

.k-grid td.intuiflow-text-align-date {
    text-align: left;
}

.k-grid td.intuiflow-text-align-Enum-Badge {
    text-align: center;
}

/* Fix calendar popup being cropped off in grid date filter */
.k-menu-group > .k-animation-container-shown {
    position: fixed !important;
}

/* Relative To Today Date Filter in Kendo Grid */
.k-filter-menu-container .relativeToTodayCheckboxContainer {
    padding-top: 5px;
    padding-bottom: 5px;
}

    .k-filter-menu-container .relativeToTodayCheckboxContainer .k-checkbox-label {
        font-weight: 400;
        vertical-align: bottom;
    }

/* Grid Grouped by Column Display */
.k-grouping-header .k-chip-list .k-chip {
    background-color: #E8F0FA;
}