@import url("https://fonts.googleapis.com/css?family=Figtree:400,300,700");
@import url('https://fonts.googleapis.com/css2?family=Agdasima:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');

/* 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;*/
    --hx-sidebar-item-color: white !important;
    --hx-multi-select-background-color: #091827 !important;
}

.agdasima-regular {
    font-family: "Agdasima", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.agdasima-bold {
    font-family: "Agdasima", sans-serif;
    font-weight: 700;
    font-style: normal;
}

body {
    background-image: url('../images/backgroundsteel.png');
}

.pointer {
    cursor: pointer;
}

/*#region HAVIT OVERRIDES */

.nav-link.disabled {
    opacity: .5;
}

.modal-content {
    background-color: #002043;
    border-color: #7E8B99;
}

.modal-header {
    border-bottom-color: #7E8B99;
}

.modal-footer {
    border-top-color: #7E8B99;
}

.modal-dialog .form-control, .modal-dialog .k-input-solid, .modal-dialog .form-select, .modal-dialog .k-editor {
    background-color: rgba(9, 24, 39, 1);
}

.modal-dialog textarea.form-control {
    background-color: rgba(9, 24, 39, 1);
}

.modal-dialog .form-select {
    background-color: rgba(9, 24, 39, 1);
}

.modal-dialog .form-control[type="file"] {
    background-color: rgba(9, 24, 39, 1);
}

.modal-dialog .form-control[type="file"]::file-selector-button {
    background-color: #DEE2E6;
}

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

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

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

.yellow-background {
    background-color: #FFBF00;
}

.border-yellow {
    border: 1px solid #FFBF00
}

.yellow-color {
    color: #FFBF00;
}

.toast-body {
    color: black !important;
}

.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-form-error, .k-text-error, .k-form-field-error .k-label {
    font-size: .875em;
}

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

/* 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 TELERIK OVERRIDES */

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

html[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*/
/***************************/
html[data-bs-theme='light'] .k-chart > svg > g > path[fill="rgb(0, 0, 0)"] {
    fill: rgb(255, 255, 255);
}

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

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

html[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;
}

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

.clickable {
    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+PC9kZWZzPjxnIGNsaX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S43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) 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 {
    max-width: 20rem;
    padding: 5px;
}

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

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


/*#region Agilx Classes */

.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: #FFBF00;
    color: black;
}

.dashboard-welcome {
    height: 150px;
}

.dashboard-button {
    text-align: center;
    /*padding: 20px 0 20px 0;*/
    border: #7E8B99 1px solid;
}

    .dashboard-button:hover {
        background-color: black;
        cursor: pointer;
    }

    .dashboard-button i {
        font-size: 40px;
    }

.dashboard-approval-item {
    width: 100%;
    background-color: #212529;
    padding: 10px;
    margin-bottom: 5px;
}

/* Mobile */
@media only screen and (max-width: 768px) {
    .bt-desktop {
        display: none !important;
    }

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

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

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

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

    .incidentgridheight {
        height: calc(100vh - 300px);
    }

    .locationgridheight-list {
        height: calc(100vh - 350px);
    }

    .locationgridheight-map {
        height: calc(100vh - 655px);
    }

    .documentsgridheight {
        height: calc(100vh - 300px);
    }

    .havitstyle.k-grid {
        border-width: 0px !important;
    }

    .havitstyle .k-table-thead {
        background-color: #001935 !important;
        border-color: transparent !important;
    }

        .havitstyle .k-table-thead th {
            font-weight: bold !important;
            color: white !important;
        }

    .havitstyle td {
        border-left-color: transparent !important;
        border-right-color: transparent !important;
    }

    .card.transparent-mobile, .card.transparent-mobile .card-header {
        background-color: transparent;
        border: none;
        box-shadow: none;
    }

        .card.transparent-mobile .card-header h5 {
            width: 100%;
            text-align: center;
            text-transform: uppercase;
            font-family: "Agdasima", sans-serif;
            font-weight: 700;
            font-size: 35px;
        }

        .card.transparent-mobile .card-body {
            padding: 5px;
        }
}

/* Desktop */
@media only screen and (min-width: 768px) {
    .bt-mobile {
        display: none !important;
    }

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

    .locationcontactgridheight {
        height: calc(100vh - 260px);
        min-height: 400px;
    }

    .locationphotogridheight {
        height: calc(100vh - 205px);
        min-height: 400px;
    }

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

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

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

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

    .locationgridheight-map {
        height: calc(100vh - 515px);
        min-height: 400px;
    }

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

    #wasmloader {
        height: 100vh;
    }
}


/*#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 Scanbot*/

/*.scanbot-document-outline {
    stroke: yellow !important;
    stroke-width: 2px !important;
    fill: none !important;
}

.scanbot-document-outline-ok {
    stroke: green !important;
}

.scanbot-document-outline-visible {
    opacity: 1 !important;
    transition: opacity .3s ease-in-out !important;
}

.scanbot-document-outline-hidden {
    opacity: 0 !important;
    transition: opacity .3s ease-in-out !important;
}

.scanbot-document-outline-path {
    stroke: green !important;
    stroke-width: 4px !important;
}

.scanbot-document-hint-text {
    position: absolute !important;
    top: 90% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    text-align: center !important;
    background-color: rgba(0, 0, 0, 0.7) !important;
    color: white !important;
    border-radius: 0.25em !important;
    padding: 0.5em !important;
    font-family: sans-serif !important;
    font-size: 1em !important;
}

.scanbot-shutter-button {*/
/* ... */
/*}*/

.scanbot-shutter-fade-in {
    opacity: 1;
}

.scanbot-shutter-fade-out {
    opacity: 0;
}

.scanbot-shutter-rotate {
    animation: scanbot-shutter-rotating linear infinite;
}

.scanbot-shutter-pulse-fast {
    animation: scanbot-shutter-pulsing 1s ease-in-out infinite;
}

.scanbot-shutter-button {
    position: relative;
    width: 64px;
    height: 64px;
    left: 50%;
    bottom: 12px;
    transform: translate(-50%, -100%);
}

.scanbot-shutter-button-part {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: opacity 0.5s ease-in-out;
}

@keyframes scanbot-shutter-rotating {
    to {
        transform: rotate(360deg);
    }
}

@keyframes scanbot-shutter-pulsing {
    0% {
        opacity: 0.25;
    }

    50% {
        opacity: 0.8;
    }

    100% {
        opacity: 0.25;
    }
}

.scanbot-document-hint-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    background-color: rgba(0, 0, 0, 0.4);
    color: white;
    border-radius: 0.25em;
    padding: 0.05em 0.3em 0.05em 0.3em;
    font-family: sans-serif;
    font-size: 0.9em;
    font-weight: 300;
}

/*#endregion */
