﻿
/* #region Navbar styles */
/*768 is bs md breakpoint*/
@media screen and (max-width: 768px) {
    div[id='sideBar'] {
        position: absolute;
        display: none;
        width: 100%;
        z-index: 1000;
        width: 100%;
        max-width: 100%;
        height: 100%;
    }

    #panelbar {
        max-width: 100% !important;
    }
    
    div[id='main'] {
        max-width: 100% !important;
    }
}
/*
    Problem: Grid excel button isn't right aligned.

    kendo grid toolbar is a flex div with a div element.k-spacer that forces the searchbox specifically to the right. 
    if buttons are added after the <toolbar-button name="search" text="Search"></toolbar-button> they will live to the right of the search input which is right of the .k-spacer
    in the absence of <toolbar-button name="search" text="Search"></toolbar-button> in the grid, the buttons will be left justified.

    solution.
    Because flex items have a default order of 0, specifying order 1 on div that has a child  for the excel export makes it the right most element in the toolbar including after the .k-spacer. 
    div is identified by class combo below.
*/
.k-toolbar-item, .k-grid-excel {
    order: 1;
}
.k-multiselect {
    height: unset !important;
}
.k-panel-bar {
    /*Hides top border that would create unevem border with navbar*/
    margin-top: -1px !important;
}
.navbar-header {
    border-bottom: 1px solid rgba(255,255,255, 0.1);
}

.navbar-brand {
    font-size: 2rem;
    font-weight: lighter;
}
/* #endregion */

/*veritcal divider for two column form

    media query needs to be in agreement with the layout breakpoint.
*/


.v-col-divider {
    border-right: solid 1px #ced4da
}
.v-col-only-v-divider {
    border-right: solid 1px #ced4da
}
@media screen and (max-width: 576px) {
    .v-col-divider {
        border-right: solid 0px #ced4da;
        border-bottom: solid 1px #ced4da;
    }
    .v-col-only-v-divider {
        border-right: solid 0px #ced4da
    }
}
/*highlight for a row in a grid*/
.highlighted {
    background-color: #69BF8A !important;
    opacity:1;
    color: #ffffff;
}
/*green panel selected*/
.panel-selected {
    color: #69BF8A !important;
}

/*Numeric textbox stylings*/
.k-numerictextbox {
    font-size: 1rem !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    border: 1px solid #ced4da !important;
    height: 38px !important;
}
    .k-numerictextbox:hover, .k-numerictextbox.k-hover {
        background: white;
    }

    .k-numerictextbox:focus, .k-numerictextbox.k-focus {
        border-color: #86b7fe !important;
        outline: 0;
        box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25) !important;
        
    }
/* kendo-dropdownmenu stylings*/
.dropdown-override {
    height: 38px;
    background: white !important;
    border-color: #ced4da !important;
   
}

    .dropdown-override > .k-input-button {
        height: 38px;
        width: 2.25rem;
    }

        .dropdown-override > .k-input-button > .k-svg-icon {
            min-width: 18px !important;
        }

            .dropdown-override > .k-input-button > .k-svg-icon > svg > path {
                d: path("m 382.059 158.059 l -126.06 126.06 l -126.061 -126.06 L 96 192 l 159.999 160 L 416 192 l -33.941 -33.941 Z") !important;
            }

    .dropdown-override:hover, .dropdown-override.k-hover {
        background: white;
    }

    .dropdown-override:focus, .dropdown-override.k-focus {
        border-color: #86b7fe ;
        outline: 0 ;
        box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25) ;
    }

    /*This is use to prevent animation containers from not resizing after a filter has been applied and the result list is smaller than the max height of the default kendo dropwnlist*/
.k-child-animation-container {
    height: auto !important;
    max-height: 202px;
    display: block;
    transform: translateY(0px);
    width: 272px;
}

.k-edit-form-container {
    min-width: 100% !important;
    width: 60vw !important;
}

.k-window-content:last-child {
    padding-bottom: clamp(16px, 12px, 12px);
}

/*kendo grids removes a tag default stylings for applying themes to items like the filter icon
    This styles restores a tag default stylings to a tag in column templates for purposes such as linking an email or phone in grid with a mailto: or tel:
*/
.link {
    color: #0d6efd !important;
    text-decoration: underline !important;
}

    .link:hover {
        color: #0a58ca !important;
    }
/*Mobile grid height correction*/
.k-grid-content {
height: 100% !important;
}
.k-pane-wrapper .k-pane {
    width: 100%;
    height: fit-content !important;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
    box-sizing: border-box;
    font-family: sans-serif;
    overflow-x: hidden;
}

.k-window { 
    /*Position sticky prevent window from affecting scroll position*/
    position: fixed !important;
    top: 10% !important;
    /*calc is 100vw - .k-edit-form-container width / 2*/
    /* left: calc(40vw / 2) !important; */
    max-height: 80vh;
}
/*Kendo popup styles*/
@media screen and (max-width: 768px) {
    .k-edit-form-container {
        width: 100% !important;

    }
    .k-edit-form-container {
        min-width: 100% !important;
    }
    .k-window { 
        left: 0px !important;
        right: 0px !important;
    }
}



/*inpout border color correction*/
.k-checkbox {
    border-color: #ced4da !important;
}

/*button stylings*/

.k-grid-save-changes {
    background: rgb(139, 101, 214) !important;
    color: white !important;
    border-color: rgb(139, 101, 214) !important;
}

    .k-grid-save-changes > * {
        color: white;
    }

    .k-grid-save-changes:hover {
        background: rgba(139, 101, 214,.5) !important;
        border-color: rgba(139, 101, 214,.5) !important;
        color: dimgray !important;
    }

        .k-grid-save-changes:hover > * {
            color: dimgray;
        }

.k-grid-save-command {
    background: rgb(139, 101, 214) !important;
    color: white !important;
    border-color: rgb(139, 101, 214) !important;
}

    .k-grid-save-command > * {
        color: white;
    }

    .k-grid-save-command:hover {
        background: rgba(139, 101, 214,.5) !important;
        border-color: rgba(139, 101, 214,.5) !important;
        color: dimgray !important;
    }

        .k-grid-save-command:hover > * {
            color: dimgray;
        }
.save {
    background: rgb(139, 101, 214) !important;
    color: white !important;
    border-color: rgb(139, 101, 214);
}

    .save > * {
        color: white;
    }

    .save:hover {
        background: rgba(139, 101, 214,.5) !important;
        border-color: rgba(139, 101, 214,.5) !important;
        color: dimgray !important;
    }

        .save:hover > * {
            color: dimgray;
        }
.k-grid-cancel-command {
    background: #a6a6a6 !important;
    color: white !important;
    border-color: #a6a6a6 !important;
}
    .k-grid-cancel-command > * {
        color: white;
    }

    .k-grid-cancel-command:hover {
        background: rgba(166, 166, 166,.5) !important;
        border-color: rgba(166, 166, 166,.5) !important;
        color: dimgray !important;
    }

        .k-grid-cancel-command:hover > * {
            color: dimgray;
        }
.cancel {
    background: #a6a6a6 !important;
    color: white !important;
    border-color: #a6a6a6;
}

    .cancel > * {
        color: white;
    }

    .cancel:hover {
        background: rgba(166, 166, 166,.5) !important;
        border-color: rgba(166, 166, 166,.5) !important;
        color: dimgray !important;
    }

        .cancel:hover > * {
            color: dimgray;
        }

.k-grid-edit-command {
    background: #0097B2 !important;
    color: white !important;
    border-color: #0097B2 !important;
}

.k-grid-edit-command > * {
    color: white;
}

.k-grid-edit-command:hover {
    background: rgba(0, 151, 178, .5) !important;
    border-color: rgba(0, 151, 178, .5) !important;
    color: dimgray !important;
}

        .k-grid-edit-command:hover > * {
            color: dimgray;
        }
.blue {
    background: #0097B2 !important;
    color: white !important;
    border-color: #0097B2;
}

    .blue > * {
        color: white;
    }

    .blue:hover {
        background: rgba(0, 151, 178, .5) !important;
        border-color: rgba(0, 151, 178, .5) !important;
        color: dimgray !important;
    }

        .blue:hover > * {
            color: dimgray;
        }

.k-grid-add {
    background: #69BF8A !important;
    color: white !important;
    border-color: #69BF8A;
}

    .k-grid-add > * {
        color: white;
    }

    .k-grid-add:hover {
        background: rgba(105, 191, 138, .5) !important;
        border-color: rgba(105, 191, 138, .5) !important;
        color: dimgray !important;
    }

        .k-grid-add:hover > * {
            color: dimgray;
        }

.green {
    background: #69BF8A !important;
    color: white !important;
    border-color: #69BF8A;
}

green > * {
    color: white;
}

.green:hover {
    background: rgba(105, 191, 138, .5) !important;
    border-color: rgba(105, 191, 138, .5) !important;
    color: dimgray !important;
}

    .green:hover > * {
        color: dimgray;
    }



/* #region Footer styles */
/*.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    font-size: 0.85em;
}*/
/* #endregion */

/* #region custom Kendo UI styles */


h1 a {
    color: #fff;
    text-decoration: none;
}

h2 {
    font-weight: lighter;
}

.placeholder img {
    display: inline-block;
}

p .k-button {
    margin: 0 15px 0 0;
}

#configure {
    display: none;
}

p .k-button {
    margin: 0 15px 0 0;
}

.k-state-active .label {
    font-size: 1em;
}

#responsive-panel {
    padding: 0;
    width: 100%;
}

#responsive-panel .k-menu {
    padding: .5rem;
}
/* #endregion */

/* #region custom form input styles */
.input-symbol-dollar {
    position: relative;
    display: block;
}

.input-symbol-dollar:after {
    color: #37424a !important;
    content: "$";
    font-size: 16px !important;
    font-weight: 400;
    position: absolute;
    display: block;
    height: 100%;
    top: 0;
    left: 10px;
    line-height: 42px;
}

.currency-input {
    width:227.88px !important;
    height: 50px !important;
    border: 2px solid #c9c9c9;
    box-shadow: none;
    color: #6b6f72;
    font-size: 0.9375rem;
    text-transform: none;
    color: #37424a !important;
    font-family: "Roboto Regular",sans-serif;
    font-size: 16px !important;
    font-weight: 400;
    padding-left: 19px !important;
    display: inline-block !important;
    border-radius: unset !important
}

.percent-holder {
    border: 1px solid #cccccc;
    display: inline-block;
    padding: 5px;
}

.percent-holder > input {
    border: 0;
    margin: 0;
    padding: 0;
    outline: none;
}

.percent-holder:after {
    content: '%';
}

/* #endregion */

@media (max-width: 767px) {
    #responsive-panel {
        transition: all linear .2s;
    }

    #configure {
        display: block;
        float: right;
    }

    .k-rpanel {
        padding: 0 1rem;
    }

    .k-rpanel-expanded {
        padding: .5rem 1rem;
    }

    .navbar-header {
        width: 100%;
    }

    .navbar-brand {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .k-menu .k-item,
    .k-menu .k-link {
        width: 100%;
    }

    .k-widget.k-menu-horizontal > .k-item {
        border: none;
    }

    .k-menu .k-link {
        box-sizing: border-box;
    }
}

