/*** POST-MIGRATION CSS UPDATES ***/

/* Kendo Default Overrides */
:root {
    --kendo-color-primary: #428bca;
    --kendo-color-primary-hover: #286090;
}

/* Global anchor tag styling */
a {
    color: var(--kendo-color-primary, #428bca);
}

a:hover {
    color: var(--kendo-color-primary-hover, #286090);
}

/* Set the site-wide font to match the Index page */
body {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important;
    font-size: 14px;
    background-color: white;
}

/* Custom background colors for navbar and footer */
.bg-navbar {
    background-color: #222222 !important;
}

.bg-footer {
    background-color: #000 !important;
}

/* Fixed navbar body padding */
.navbar-padding {
    padding-top: 5rem;
}

/* Buttons to replicate BS3  */
.custom-button {
    border-radius: 6px;
    text-decoration: none;
    border: none;
    color: white;
    padding: 0.375rem 0.75rem;
    display: inline-block;
    transition: background-color 0.3s ease;
    font-size: 1rem;
    cursor: pointer;
}

.custom-button:hover {
    text-decoration: none;
    color: white;
}

.custom-button.btn-success {
    background-color: #5cb85c;
}

.custom-button.btn-success:hover {
    background-color: #449d44;
}

.custom-button.btn-warning {
    background-color: #f0ad4e;
}

.custom-button.btn-warning:hover {
    background-color: #ec971f;
}

.custom-button.btn-primary {
    background-color: var(--kendo-color-primary)
}

.custom-button.btn-primary:hover {
    background-color: var(--kendo-color-primary-hover)
}

/* Navbar responsive fixes(this existed in the old site and was brought here) */
@media (max-width: 991.98px) {
    .navbar-nav {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    .custom-button {
        display: block;
        text-align: center;
        margin-bottom: 0.5rem;
        width: 100%;
    }

    .custom-button:last-child {
        margin-bottom: 0;
    }
}

/*** Panelbar fixes ***/

/* Colors and Borders */
.k-panelbar > .k-panelbar-header > .k-link {
    background-color: #f9f9f9;
}

.k-panelbar > .k-panelbar-header > .k-link.k-selected:hover,
.k-panelbar > .k-panelbar-header > .k-link.k-selected {
    /*background-color: #428bca !important;*/
    color: white;
}

.k-panelbar > .k-panelbar-header > .k-link:hover,
.k-panelbar > .k-panelbar-header > .k-link.k-hover,
.k-panelbar > .k-panelbar-header > .k-link {
    color: black;
    border-bottom: 1px solid #cdcdcd;
}

/* Padding and Margin */
.k-panelbar > .k-panelbar-header > .k-link,
.k-tabstrip-items > .k-item > .k-link {
    padding-block: unset;
}

.k-panelbar-content input {
    margin-left: 0.25em;
}

/***** Classes from other sites that may be useful *****/

/*/* Utility class for text that needs underline cursor */
.expand-summary-text {
    font: inherit;
    color: #000;
    text-decoration: underline;
    cursor: pointer;
}

/* Tabstrip fixes */
.k-tabstrip-top > .k-tabstrip-items-wrapper {
    border-bottom: 3px solid var(--kendo-color-primary);
}

.k-tabstrip-items .k-item:active,
.k-tabstrip-items .k-item.k-active {
    font-weight: inherit;
}

.k-tabstrip-top > .k-tabstrip-items-wrapper .k-item,
.k-tabstrip-top > .k-tabstrip-items-wrapper .k-item:hover {
    padding-top: 0.25em;
    padding-bottom: 0.5em;
    background-color: #e7e7e7;
    color: #000;
    border: 1px solid #cecece;
}
.k-tabstrip-top > .k-tabstrip-items-wrapper .k-item {
    background-color: #f9f9f9;}

.k-tabstrip-top > .k-tabstrip-items-wrapper .k-item.k-active,
.k-tabstrip-top > .k-tabstrip-items-wrapper .k-item.k-active:hover {
    color: #fff;
    background: var(--kendo-color-primary);
}

.k-tabstrip-top > .k-tabstrip-items-wrapper .k-item.k-active:hover {
    background: var(--kendo-color-primary-hover);
}

.k-tabstrip-content {
    padding: 0;
    border: none;
}

.k-tabstrip-content > .card {
    border: none;
}

/*Grid Fixes*/
.k-table-td {
    font-size: 14px;
}

.k-grid h4 {
    font-size: 18px;
    color: #5cb85c;
}

.k-grid a {
    font-size: 18px;
    text-decoration: underline;
    color: var(--kendo-color-primary);
}

.k-grid .k-grid-header .k-table-th {
    vertical-align: middle;
    text-align: center;
    border-color: #FFF;
}

.k-grid-md td,
.k-grid-md .k-table-td {
    padding-block: var(--kendo-spacing-1, 0.25rem);
}

.k-column-title {
    white-space: break-spaces;
}

.k-table-td a:hover {
    text-decoration: underline;
}

/* Disable color change for hover in the grids */
.k-grid:not(.k-table-alt-row) tr:hover {
    background-color: transparent !important;
}

.k-grid tr.k-table-alt-row:hover {
    background-color: #f3f4f4 !important;
}

/* Center and bold the NoRecords text on grids*/
.k-grid-norecords {
    justify-content: center;
    font-weight: bold;
}

/*Loading spinner on tables won't show without this because grids have no height*/ 
/*https://docs.telerik.com/kendo-ui/controls/grid/appearance/height#configuring-the-loading-indicator*/ 
div.k-grid-content {
    min-height: 100px;
}

/* Remove scrollbars in Chrome */
.k-grid-content {
    overflow-y: auto;
}
