@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

:root {
    --overall-font-size: 0.9rem;
}

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 0.9rem;
}

/* font awesome icon size */
.fas, .far {
    font-size: 1.1rem;
}

a, .btn-link {
    color: #0366d6;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }


/* WP 20220705 */
/* Use this if you present only a grid within a TelerikCard */
.card-header-grid-custom {
    cursor: default;
    margin-bottom: 0rem;
}


/* Can be used to as helper for card header text behave like a label */
.cursor-default {
    cursor: default ;
}

.cursor-pointer {
    cursor: pointer;
}

/* Additional 95% width definition to extend the available Bootstrap variants */
.w-95 {
    width: 95%;
}

/* Additional 5% width definition to extend the available Bootstrap variants */
.w-5 {
    width: 5%;
}

/* Prevent user from selection text */
.noselect {
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none; /* Old versions of Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none; /* Non-prefixed version, currently supported by Chrome, Edge, Opera and Firefox */
}


/* Set margin left to -2 rem for treeview */
.treeview-margin-left-n2 {
    margin-left: -2rem;
}

/* Set margin left to -3 rem for treeview */
.treeview-margin-left-n3 {
    margin-left: -3rem;
}

/* Set drawer hight to 100% view height */
.drawer-full-height {
    height: 100vh;
}

/* Reduce legend text size to overall font size */
.legend-small-text {
    font-size: var(--overall-font-size);
    margin-bottom: 0rem;
}

/* Can be uses as span within a label to mark field as required */
.required-asterisk {
    color: red;
    font-weight: 700;
    margin-left: 2px;
}


/* Without text the icon sticks on top of the button border - Workaround Telerik v3 */
.button-icon-only {
    padding-top: 0.15rem;
}


/* Blue */
:root {
    --bg-clr-selection: #0d6efd;
    --bg-clr-selection-hover: #0c65e9;
    --clr-window-dialog-title: #fff
}

/*.tabstrip-link .k-tabstrip-items .k-item.k-state-active {
    color: #212529;
    border-color: #dee2e6;
    background-color: #ffffff;
}*/


/* https://docs.telerik.com/blazor-ui/components/window/overview#styling */
.window-dialog .k-window-titlebar { 
    height: 3rem;
}

/* Window dialog title color */
.window-dialog .k-window-title.k-dialog-title {
    /*color: white;*/
    color: var(--clr-window-dialog-title);
}

/* Window dialog title bar background color */
.window-dialog .k-dialog-titlebar.k-header.k-window-titlebar {
    /*background-color: #f08334;*/
    background-color: var(--bg-clr-selection);
}

div.k-widget.k-window.window-dialog { /* targets the entire popup element */
    /*border: 2px solid #f08334;*/
    /*border-radius: 0.25rem;*/
    border-style: none;
}

.window-dialog-color {
    color: var(--clr-window-dialog-title);
}


/* From Telerik support ticket - Make tab items text wrap if width shrinks */
.narrow-tabs {
}
.narrow-tabs .k-tabstrip-items {
    width: 100%;
}
.narrow-tabs .k-tabstrip-items .k-item {
    flex-shrink: unset;
}

.card-body, .card-body form, .card-body .d-flex {
    padding: 0.5rem;
}

/* https://www.telerik.com/forums/tooltip-on-the-grid-header */
/* WP 20220217 - Set 3 dots if text in grid header (title) column is to long */
.column-title-overflow, .custom-text-overflow {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* WP 20220705 */
/*.inactive-odd {
    background-color: lightpink;
}
    .inactive-odd:hover {
        background-color: pink;
    }

.inactive-even {
    background-color: lightgreen;
}
    .inactive-even:hover {
        background-color: green;
    }*/



/* #fefe4c 30% lighter than yellow */
/*.k-grid-table tr.inactive-even {
    background-color: #fefe4c;
}*/
    /* yellow */
/*    .k-grid-table tr.inactive-even:hover {
        background-color: #ffff00; 
    }*/

/* 40% lighter than yellow */
/*.k-grid-table tr.inactive-odd {
    background-color: #ffff65; 
}*/
    /* 10% lighter than yellow */
/*    .k-grid-table tr.inactive-odd:hover {
        background-color: #ffff19; 
    }*/



/* Adjustment to provide CERTAS color for a small switch control */
/* Bootstrap custom switches https://getbootstrap.com/docs/4.4/components/forms/#switches */
/* https://www.geeksforgeeks.org/how-to-change-the-checked-background-color-of-toggle-switch-in-bootstrap-4/ */
/*.custom-control-input:focus ~
.custom-control-label::before {*/
    /* when the button is toggled off it is still in focus and a violet border will appear */
    /*border-color: #F08334 !important;*/
    /* box shadow is blue by default  but we do not want any shadow hence we have set  all the values as 0 */
    /*box-shadow: 0 0 0 0rem rgba(0, 0, 0, 0) !important;*/
/*}*/

/*sets the background color of switch to violet when it is checked*/
/*.custom-control-input:checked ~
.custom-control-label::before {
    border-color: #F08334 !important;
    background-color: #F08334 !important;*/
}

/*sets the background color of switch to violet when it is active*/
/*.custom-control-input:active ~
.custom-control-label::before {
    background-color: #F08334 !important;
    border-color: #F08334 !important;*/
}