﻿:root {
    --kendo-color-primary: #1274AC;
    --kendo-color-secondary: #757575;
    --kendo-color-info: #0058E9;
    --kendo-color-success: #278200;
    --kendo-color-warning: #F5A600;
    --kendo-color-error: #D51923;
    --kendo-color-on-base: #212529;
    --kendo-color-surface-alt: #fff;
    --kendo-color-surface: #fafafa;
    --kendo-color-on-app-surface: #212529;
    --kendo-font-size: 13px; /* Was 0.875rem, but that equates to 14px which is too big */
}

.k-full-width {
    width: 100% !important;
}

/* grid header row style (in some cases it has table and in other it doesnt). This is a case where ThemeBuilder did not do its job. */
.k-grid.k-grid-md .k-grid-header .k-table-row {
    font-weight: bold;
    background-color: #e3e3e3 !important;
    background-image: none;
}

/* Tile layout background style to be the same as default */
.k-tilelayout {
    background-color: #f3f3f4;
}
/* Overflow for tile panel, so user can scroll through data */
.k-tilelayout-item-body {
    overflow: auto;
}

/* Fix for empty space in the toolbar on small screens */
#TMotoGrid .k-grid-toolbar:before {
    height: unset;
    content: unset;
}

.k-toolbar-button-custom {
    margin: 8px 0 8px 8px;
}

/* Override bottom margin (1rem is too big) */
.k-edit-label, .k-edit-field {
    margin-bottom: 4px;
}

/* bigger additional button in the editor forms */
.k-button-editor-add {
    width: 25px;
    height: 28px;
    margin-top: 0 !important;
    font-size: 14px;
}

/* bigger checkbox */
.k-checkbox-big {
    width: 25px;
    height: 28px;
    margin-top: 0 !important;
}

/* kendo fix */
.k-add::before {
    content: "\e11e";
}

/* fa icons in kendo grid */
.k-button.k-button-icontext .fa {
    color: #515967;
    font-size: 18px;
}

/* font-awesome icons */
.k-grid-content .k-external-link:before {
    background-image: none;
    font-size: 1em;
    font-family: FontAwesome;
    content: "\f08e";
}

/* shadow on tile layout item */
.k-tilelayout-item {
    box-shadow: 0 .3rem .6rem rgba(0,0,0,.15) !important;
}

/* Buttons in card title */
.k-card-title-buttons {
    display: block;
    float: none;
    margin-top: 0;
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 0;
    text-align: right;
}
    .k-card-title-buttons a {
        cursor: pointer;
        margin-left: 5px;
        color: #c4c4c4 !important;
    }

.checkbox-list-badges {
    font-size: 14px;
}
.checkbox-list-badges .k-checkbox-list .k-checkbox-item .k-checkbox-label {
    line-height: 20px;
}

/* Remove this from css when updating:
    .k-grid a{color:inherit;text-decoration:none}.k-grid a:hover{text-decoration:none}
*/
/* The new kendo styles do "inherit", we need to override back to original */
.k-grid tr a {
    color: #337ab7;
}

    .k-grid tr a:hover {
        color: #0056b3
    }

/* 1rem is too much, it makes scrollbars on windows */
.k-popup-edit-form > .k-actions, .k-popup-edit-form > .k-edit-buttons, .k-popup-edit-form > .k-action-buttons, .k-popup-edit-form > .k-columnmenu-actions, .k-popup-edit-form > .k-form-buttons, .k-edit-form-container .k-actions, .k-edit-form-container .k-edit-buttons, .k-edit-form-container .k-action-buttons, .k-edit-form-container .k-columnmenu-actions, .k-edit-form-container .k-form-buttons {
    margin: var(--kendo-spacing-3, 1rem) calc(var(--kendo-spacing-3, 1rem)*-1) calc(var(--kendo-spacing-3, 1rem)*-1);
}

.k-card-actions {
    flex-direction: column;
}

/* Not an override, but addition */
.k-invalid-custom, .k-invalid-custom:hover, .k-invalid-custom:focus, .k-invalid-custom:focus-within {
    color: var(--kendo-color-error, #d92800);
    border-color: var(--kendo-color-error, #d92800);
    background-color: var(--kendo-color-surface-alt, #ffffff);
}

/* Not an override. Divider between k-edit rows */
.k-edit-divider {
    clear: both;
    border-bottom: 1px solid var(--kendo-hr-border);
    margin: 10px 0;
    padding: 4px 0;
}

/* bootstrap overrides */
@media (max-width: 500px) {
    .k-edit-form-container {
        width: 100%;
    }

    .k-window {
        width: unset;
        left: 5px !important;
    }
}