@import url("https://fonts.googleapis.com/css?family=Figtree:400,300,700");

/* OVERRIDES */
:root {
    /*font-size: 14px;
    --hx-grid-sorted-icon-color: #ffffff;
    --hx-sidebar-item-font-size: 1.15rem;
    --hx-sidebar-item-color: rgba(255, 255, 255, 0.8);
    --hx-sidebar-item-icon-color: rgba(255, 255, 255, 0.8);
    --hx-sidebar-item-hover-color: rgba(255, 255, 255, 1);
    --hx-sidebar-item-hover-icon-color: rgba(255, 255, 255, 1);
    --hx-sidebar-toggler-border: 0px;
    --hx-search-box-item-subtitle-color: #6c757d;
    --hx-sidebar-subitem-margin: 0 0 .25rem 1rem;
    --hx-sidebar-subitem-font-size: 1rem;
    --hx-form-spacing: 0px;*/
}

div[data-bs-theme=light], div[data-bs-theme=dark] {
    color: var(--bs-body-color);
    background-color: var(--bs-body-bg);
}

.hx-toast div[data-bs-theme=light], .hx-toast div[data-bs-theme=dark] {
    background-color: transparent;
}

/*#region HAVIT OVERRIDES */

.card-header {
    font-weight: bold;
    text-transform: uppercase;
}

div[data-bs-theme=light] .settings-sidebar .hx-sidebar-settings {
    background-color: #e9ecef !important;
    border-right: #dee2e6 1px solid;
}

div[data-bs-theme=dark] .settings-sidebar .hx-sidebar-settings {
    background-color: #353b41 !important;
    border-right: #474a4e 1px solid;
}

.grid-selectable.hx-grid td {
    -moz-user-select: none;
}

.sidebar .hx-sidebar-footer {
    display: block !important;
}

.hx-sidebar:not(.collapsed) {
    min-width: 300px;
}

.offcanvas {
    /*width: 95vw !important;*/
}

.offcanvas-header {
    box-shadow: 0px 2px 10px -3px rgba(0,0,0,0.75);
    z-index: 1;
}

.hx-offcanvas-footer {
    box-shadow: 0px -3px 10px -3px rgba(0,0,0,0.75);
    z-index: 1;
}

/*#endregion */
/*#region TELERIK OVERRIDES */

.k-input-solid:focus, .k-input-solid.k-focus {
    box-shadow: rgba(99, 99, 99, 0.2) 0px 1px 4px 0px !important;
}

.grid-selectable .k-table-row {
    cursor: pointer;
}

.k-grid td .hover-link {
    /*color: #314186 !important;*/
    font-weight: bold !important;
}

/* template */
div.custom-ellipsis,
/* OnCellRender */
.k-grid td.custom-ellipsis,
/* OnRowRender */
.k-grid tr.custom-ellipsis .k-table-td {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* grid */
.k-grid.font-size,
/* grid toolbar */
.k-grid.font-size .k-toolbar,
/* grid cells */
.k-grid.font-size table,
/* textboxes */
.k-grid.font-size .k-input,
/* date pickers */
.k-grid.font-size .k-picker,
/* buttons */
.k-grid.font-size .k-button,
/* column and filter menu */
.k-popup,
.k-popup .k-input,
.k-popup .k-picker,
.k-popup .k-button,
/* dropdowns */
.k-popup .k-list,
.k-table-td,
.k-column-title {
    font-family: 'Figtree', sans-serif !important;
}
/*#endregion */
/*#region Google Maps InfoWindow */

.gm-style-iw-chr button {
    width: 15px !important;
    height: 20px !important;
}

    .gm-style-iw-chr button span {
        width: 15px !important;
        height: 15px !important;
        margin: 5px !important;
    }

.gm-style .gm-style-iw {
    color: black;
}

.gm-style-iw-d a {
    color: #091827;
}

/*#endregion */
/*#region Cropper OVERRIDES */
img.cropper-container {
    display: none;
}
/*#endregion */

.bt-mobile .mobile-menu-icon {
    color: white;
}

div[data-bs-theme='dark'] .k-grid,
div[data-bs-theme='dark'] .k-editor,
div[data-bs-theme='dark'] .k-content,
div[data-bs-theme='dark'] .k-input-solid {
    background-color: #212529 !important;
}

div[data-bs-theme='dark'] .k-chart > svg > g > path[fill="rgb(0, 0, 0)"] {
    fill: #212529;
}

/***************************/
/* Charts to re-render when switching, so these are manual css fixes under the page is refreshed*/
/***************************/
div[data-bs-theme='light'] .k-chart > svg > g > path[fill="rgb(0, 0, 0)"] {
    fill: rgb(255, 255, 255);
}

div[data-bs-theme='dark'] .k-chart > svg > g > path[fill="rgb(255, 255, 255)"] {
    fill: #212529;
}

div[data-bs-theme='light'] .k-chart > svg > g text[fill="rgb(255, 255, 255)"] {
    fill: rgb(33, 37, 41);
}

div[data-bs-theme='dark'] .k-chart > svg > g text[fill="rgb(33, 37, 41)"] {
    fill: rgb(255, 255, 255);
}
/***************************/

/*#region GLOBALS */

/* lock body to remove scroll bounce on mobile.  Scrolling will be on the main body div */
html {
    position: static;
    overflow-y: hidden;
    height: 100%;
    max-height: 100%;
    overscroll-behavior: none;
}

body {
    overflow: hidden;
    height: 100%;
    max-height: 100%;
    overscroll-behavior: none;
}

html, body {
    height: 100%;
}

body {
    overflow-x: hidden;
    font-family: 'Figtree', sans-serif !important;
}

a {
    cursor: pointer;
}

/*#endregion */

/*#region BLAZOR */

#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;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUg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ZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

/*#endregion */

.search .dropdown-item div {
    overflow: hidden;
}

.tooltip.show {
    opacity: 1 !important;
}

/*.app-background {
    background-position-y: center;
    background-size: cover;
    background-color: #212529;
}*/

.page-header {
    font-size: 1.85rem;
    font-weight: bold;
    /*color: #333333;*/
}

.visibility-visible {
    visibility: visible !important;
}

.cursor-pointer {
    cursor: pointer;
}

.cover {
    object-fit: cover;
}

.app-logo {
    height: 150px;
    max-width: 20rem;
    padding: 10px;
}

.profile-page .tab-content {
    height: 100% !important;
}

.nav-pills .nav-link.active {
    background-color: var(--bs-dark);
}


/*#region Agilx Classes */

.square {
    border-radius: 0px !important;
}

.noshadow {
    box-shadow: none !important;
}

.k-editor {
    border-radius: 5px;
}

    .k-editor .k-toolbar {
        border-radius: 5px 5px 0px 0px;
    }

    .k-editor .k-editor-content {
        border-radius: 0px 0px 5px 5px;
    }
/*Drop shadow on controls within cards*/
.card .form-control, .card .form-select, .card .k-input, .card .k-editor, .card .form-check-input {
    box-shadow: rgba(99, 99, 99, 0.2) 0px 1px 4px 0px;
}

/*Drop shadow on cards*/
.card {
    /*background-color: #f8f9fa;*/
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
}

/*Spacing between cards*/
.card {
    margin-bottom: 8px;
}

.sc-head-center {
    text-align: center;
}

.line-through {
    text-decoration: line-through
}

.card .card-header h5 {
    margin-bottom: 0px;
    padding-top: 4px;
}

/*#endregion */

/* classes to support Telerik Grid row hovers */

.hover-target {
    visibility: hidden;
}

.row-hover:hover .hover-target {
    visibility: visible;
}

.hover-link:hover {
    -webkit-text-decoration: underline;
    text-decoration: underline;
}

/* end */

.bt-mobile-tabbar a {
    color: white;
    text-decoration: none;
}

.bt-mobile-tabbar .active {
    background-color: #0d6efd;
}

/* Mobile */
@media (max-width: 768px) {

    .main-content-container {
    }

    .bt-desktop {
        display: none !important;
    }

    .has-mobile-footer-menu .bt-mobile-padding {
        margin-bottom: 77px;
    }

    .has-mobile-footer-menu .defaultgridheight {
        height: calc(100vh - 340px);
        min-height: 400px;
    }

    .has-mobile-footer-menu .documentgridheight {
        height: calc(100vh - 380px);
        min-height: 400px;
    }

    .has-mobile-footer-menu .photogridheight {
        height: calc(100vh - 250px);
        min-height: 400px;
    }

    .bt-mobile .list-group {
        margin: 0;
        border-radius: 0;
        height: 100%;
        overflow-y: auto;
        position: relative;
    }

    .bt-mobile .list-group-item {
        border-left: none;
        border-right: none;
        padding: 1rem;
        cursor: pointer;
    }

        .bt-mobile .list-group-item:first-child {
            border-top: none;
        }

        .bt-mobile .list-group-item:last-child {
            border-bottom: none;
        }

        .bt-mobile .list-group-item h6 {
            margin: 0;
            font-size: 1rem;
            font-weight: bold;
        }

        .bt-mobile .list-group-item .d-flex {
            gap: 0.5rem;
        }

        .bt-mobile .list-group-item .hx-icon {
            font-size: 1.25rem;
            color: var(--bs-gray-600);
        }

        .bt-mobile .list-group-item:hover {
            background-color: var(--bs-gray-600);
            color: white;
        }

            .bt-mobile .list-group-item:hover h6 {
            }

            .bt-mobile .list-group-item:hover .hx-icon {
                color: #212529;
            }

    .defaultgridheight {
        height: calc(100vh - 270px);
        min-height: 400px;
    }

    .storyboardgridheight {
        height: calc(100vh - 275px);
        min-height: 400px;
    }
}

/* Desktop */
@media only screen and (min-width: 768px) {

    .main-content-container {
        height: 100vh
    }

    .bt-mobile {
        display: none !important;
    }

    .defaultgridheight {
        height: calc(100vh - 160px);
        min-height: 400px;
    }

    .storyboardgridheight {
        height: calc(100vh - 165px);
        min-height: 400px;
    }

    .documentgridheight {
        height: calc(100vh - 210px);
        min-height: 400px;
    }

    .photogridheight {
        height: calc(100vh - 120px);
        min-height: 400px;
    }
}


/* Style the breadcrumb container */
div[data-bs-theme="light"] .breadcrumb {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin-bottom: 5px;
    padding: 5px 5px 5px 10px;
    background-color: #ffffff; /* White background for container */
    border-radius: 0px;
    border: solid #dee2e6 1px;
}

/* Style each breadcrumb item */
div[data-bs-theme="light"] .breadcrumb-item {
    display: flex;
    align-items: center;
    font-weight: normal; /* Adjusted weight for consistency */
    /*color: #3a4d9d;*/ /* Link color */
    margin-right: 5px;
    font-size: 14px; /* Adjust font size */
}

    /* Style for the active breadcrumb item (last item) */
    div[data-bs-theme="light"] .breadcrumb-item.active {
        /*color: #3a4d9d;*/ /* White text */
        padding: 5px 10px; /* Added padding for the active item */
        border-radius: 4px; /* Rounded corners for active item */
        font-weight: bold; /* Bold text for active item */
    }

    /* Breadcrumb links */
    div[data-bs-theme="light"] .breadcrumb-item a {
        /*color: #3a4d9d;*/
        transition: color 0.3s ease;
    }

        div[data-bs-theme="light"] .breadcrumb-item a:hover {
            /*color: #25357c;*/ /* Darker blue on hover */
        }

    /* Divider between breadcrumb items */
    div[data-bs-theme="light"] .breadcrumb-item + .breadcrumb-item::before {
        content: '/';
        /*color: #6c757d;*/
        margin-right: 5px;
        margin-left: 0px;
        font-weight: normal;
    }

/* Style the breadcrumb container */
div[data-bs-theme="dark"] .breadcrumb {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin-bottom: 5px;
    padding: 5px 5px 5px 10px;
    background-color: #212529; /* White background for container */
    border-radius: 0px;
    border: solid #474a4e 1px;
}

/* Style each breadcrumb item */
div[data-bs-theme="dark"] .breadcrumb-item {
    display: flex;
    align-items: center;
    font-weight: normal; /* Adjusted weight for consistency */
    /*color: #3a4d9d;*/ /* Link color */
    margin-right: 5px;
    font-size: 14px; /* Adjust font size */
}

    /* Style for the active breadcrumb item (last item) */
    div[data-bs-theme="dark"] .breadcrumb-item.active {
        /*color: #3a4d9d;*/ /* White text */
        padding: 5px 10px; /* Added padding for the active item */
        border-radius: 4px; /* Rounded corners for active item */
        font-weight: bold; /* Bold text for active item */
    }

    /* Breadcrumb links */
    div[data-bs-theme="dark"] .breadcrumb-item a {
        /*color: #3a4d9d;*/
        transition: color 0.3s ease;
    }

        div[data-bs-theme="dark"] .breadcrumb-item a:hover {
            /*color: #25357c;*/ /* Darker blue on hover */
        }

    /* Divider between breadcrumb items */
    div[data-bs-theme="dark"] .breadcrumb-item + .breadcrumb-item::before {
        content: '/';
        /*color: #6c757d;*/
        margin-right: 5px;
        margin-left: 0px;
        font-weight: normal;
    }

.bottom-row {
    background-color: #f7f7f7;
    border-top: 1px solid #d6d5d5;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: fixed;
    bottom: 0;
    width: 100vw;
    text-align: center;
}

.footer-text {
    font-size: 0.875rem;
}
