@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

@font-face {
    font-family: 'Open Sans';
    src: url('../fonts/OpenSans-VariableFont_wdth,wght.ttf') format('truetype');
}

@font-face {
    font-family: 'Open Sans';
    src: url('../fonts/OpenSans-Italic-VariableFont_wdth,wght.ttf') format('truetype');
    font-style: italic;
}

@font-face {
    font-family: 'Titillium Web';
    src: url('../fonts/TitilliumWeb-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'Titillium Web';
    src: url('../fonts/TitilliumWeb-Bold.ttf') format('truetype');
    font-weight: bolder;
}

@font-face {
    font-family: 'Titillium Web';
    src: url('../fonts/TitilliumWeb-SemiBold.ttf') format('truetype');
    font-weight: bold;
}

@font-face {
    font-family: 'Titillium Web';
    src: url('../fonts/TitilliumWeb-BoldItalic.ttf') format('truetype');
    font-weight: bolder;
    font-style: italic;
}

@font-face {
    font-family: 'Titillium Web';
    src: url('../fonts/TitilliumWeb-SemiBoldItalic.ttf') format('truetype');
    font-weight: bold;
    font-style: italic;
}

@font-face {
    font-family: 'Titillium Web';
    src: url('../fonts/TitilliumWeb-Light.ttf') format('truetype');
    font-weight: lighter;
}

@font-face {
    font-family: 'Titillium Web';
    src: url('../fonts/TitilliumWeb-LightItalic.ttf') format('truetype');
    font-weight: lighter;
    font-style: italic;
}

body {
    overflow: hidden;
}

.sidebar {
    z-index: 98 !important;
}

.subNav {
    z-index: 98 !important;
}

    .subNav ul {
        z-index: 98 !important;
    }

    .subNav li {
        z-index: 98 !important;
    }


.page-content {
    height: calc(100vh - 55px);
    width: calc(100vw - max(90px, 4.9vw));
    padding-top: 1.25rem;
    padding-left: 5rem;
    padding-right: 5rem;
    font-size: 90%;
}

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

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.cursor-pointer {
    cursor: pointer;
}

/* Will capitalize first letter of text and lowercase all following letters*/
.capFirst {
    text-transform: lowercase;
}

    .capFirst::first-letter {
        text-transform: uppercase !important;
    }

ul[role=tablist] {
    flex-wrap: wrap;
}

.busyBackground {
    position: absolute;
    z-index: 99;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #00000050;
}

.spinner {
    /* fix loading image center */
    top: calc(50% - 16px) !important;
    left: calc(50% - 16px) !important;
}

.rz-dialog-content {
    height: 100%;
}

/*.btn-outline-primary {
    color: var(--sita-dark-blue);
    background-color: var(--sita-font-color-light);
    border-color: var(--sita-dark-blue);
}*/

/* .btn-outline-primary:hover, .btn-outline-primary:active {
        background-color: var(--sita-color-white-smoke) !important;
        color: var(--sita-dark-blue);
    }*/

/*.btn-secondary {
    color: var(--sita-dark-blue);
    background-color: var(--sita-font-color-light);
    border-color: var(--sita-dark-blue);
}*/

.sita-btn:disabled {
    background-color: var(--sita-font-color-dim-gray);
    border-color: var(--sita-font-color-dim-gray);
}
.btn-primary, .rz-button.btn-primary:not(.btn-outline-primary):not(.btn-secondary), .rz-dialog.rz-dialog-confirm .rz-button.rz-primary {
    color: #fff;
    background-color: var(--sita-dark-blue);
    border-color: #1861ac;
}
    .btn-primary:hover, .btn-primary:active, .rz-button.btn-primary:not(.btn-outline-primary):not(.btn-secondary):active {
        background-color: var(--sita-dark-blue) !important;
    }

    .btn-primary[disabled] {
        background-color: var(--sita-color-light-gray) !important;
        border: none;
    }

        .btn-primary[disabled]:hover {
            background-color: #c3c3c3 !important;
            background-image: none;
            box-shadow: none;
        }

    .btn-primary:focus {
        background-color: var(--sita-dark-blue);
        box-shadow: none;
        outline: none;
    }

.btn.btn-danger {
    background-color: var(--sita-color-danger-red);
}


.btn-secondary, .btn-outline-primary, .rz-button.btn-secondary, .rz-dialog-confirm .rz-button.rz-secondary {
    color: var(--sita-dark-blue) !important;
    border-color: var(--sita-dark-blue);
    border: 1px solid !important;
    background-color: var(--sita-font-color-light) !important;
}

    .btn-secondary:hover, .btn-outline-primary:hover, .rz-button.btn-secondary:hover, .rz-dialog-confirm .rz-button.rz-secondary:hover,
    .btn-secondary:active, .btn-outline-primary:active, .rz-button.btn-secondary:active, .rz-dialog-confirm .rz-button.rz-secondary:active {
        background-color: var(--sita-color-white-smoke) !important;
        color: var(--sita-dark-blue) !important;
    }

    .btn-secondary[disabled], .btn-outline-primary[disabled], .rz-dialog-confirm .rz-button.rz-secondary[disabled] {
        color: var(--sita-color-light-gray) !important;
        border-color: var(--sita-color-light-gray) !important;
        background-color: transparent !important;
    }

        /*.btn-secondary[disabled]:hover, .btn-outline-primary[disabled]:hover {
            background-color: transparent;
        }*/


    .btn-outline-primary:focus {
        box-shadow: none;
        outline: none;
    }

    .sita-btn.btn-danger:hover {
        background-color: #BD2130;
    }


.tooltipText {
    max-height: 3.6em;
    line-height: 1.2em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.blazored-toast-container {
    z-index: 1002 !important;
}

h1, .h1, 
 h2, .h2, 
  h3, .h3, 
   h4, .h4, 
    h5, .h5, 
     h6, .h6 {
    color: #000;
    font-family: "Titillium Web", sans-serif !important;
    font-weight: 600 !important;
}

h1,
.h1 {
    font-size: 1.75rem;
    line-height: 2.25rem;
}

h2,
.h2 {
    font-size: 1.5rem;
    line-height: 1.75rem;
}

h3,
.h3 {
    font-size: 1.125rem;
    line-height: 1.25rem;
}

h4,
.h4 {
    font-size: 1rem;
    line-height: 1.125rem;
}

h5,
.h5 {
    font-size: 0.875rem;
}

h6,
.h6 {
    font-size: 0.75rem;
}

p {
    line-height: 1.38;
}

body:not(.rz-default-scrollbars)::-webkit-scrollbar {
    background-color: #ffffff;
}

body:not(.rz-default-scrollbars)::-webkit-scrollbar-thumb {
    background: #479cc8;
    border: 4px solid rgba(0, 0, 0, 0);
    background-clip: padding-box;
    border-radius: 8px;
    min-height: 40px;
}

body:not(.rz-default-scrollbars)::-webkit-scrollbar-corner {
    background-color: #ffffff;
}

body:not(.rz-default-scrollbars) ::-webkit-scrollbar {
    background-color: #ffffff;
}

body:not(.rz-default-scrollbars) ::-webkit-scrollbar-thumb {
    background: #479cc8;
    border: 4px solid rgba(0, 0, 0, 0);
    background-clip: padding-box;
    border-radius: 8px;
    min-height: 40px;
}

body:not(.rz-default-scrollbars) ::-webkit-scrollbar-corner {
    background-color: #ffffff;
}

/*
IMAGE VIEW MODAL 
*/

.image-viewer-modal .rz-dialog {
    min-height: unset !important;
    min-width: unset !important;

    max-width: 90vw;
    max-height: 90vh;
}

.image-viewer-modal .rz-dialog-content {
    padding: 0 !important;
}

.image-viewer-modal .rz-dialog-titlebar {
    padding-bottom: 0.25rem !important;
    padding-top: 0.25rem !important;
    padding-right: 0.50rem !important;
    padding-left: 0.50rem !important;
}

.image-viewer-modal .rz-dialog-title {
    font-family: "Open Sans", sans-serif !important;
    font-size: 1rem !important;
    margin-right: 1rem;
    font-weight: 400;
}

/*
    File Upload
*/
.fileUploadArea input[type=file] {
    position: absolute;
    height: 100%;
    width: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 5;
}

.fileUploadArea .hideFileInput {
    z-index: -100 !important;
}

.modal-file-upload {
    height: 300px;
    width: 600px;
    z-index: 100;
}

/*
    Toast Messages
*/
.blazored-toast {
    border-radius: 10px !important;
    height: 80px !important;
    width: 600px !important;
    color: #000000 !important;
    padding: 0 !important;
    border: 3px solid !important;
    display: flex;
}

.blazored-toast-icon {
    display: flex;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    padding: 30px !important;
    margin: 5px 10px;
    width: 48px;
    height: 48px;
}

.blazored-toast-info {
    border-color: #3498db !important;
    background-color: #99daff !important;
}

.blazored-toast-info .blazored-toast-icon {
    background-image: url(../Assets/icons/icon_info_48.svg) !important;
}

.blazored-toast-success {
    border-color: #6abc5d !important;
    background-color: #c9e9d1 !important;
}

.blazored-toast-success .blazored-toast-icon {
    background-image: url(../Assets/icons/icon_tick_circle_48.svg) !important;
}

.blazored-toast-warning {
    border-color: #f5821e !important;
    background-color: #fac6a5 !important;
}

.blazored-toast-warning .blazored-toast-icon {
    background-image: url(../Assets/icons/icon_important_48.svg) !important;
}

.blazored-toast-error {
    border-color: #c61d23 !important;
    background-color: #e8a5a7 !important;
}

.blazored-toast-error .blazored-toast-icon {
    background-image: url(../Assets/icons/icon_error_48.svg) !important;
}

.blazored-toast .blazored-toast-message {
    display: flex;
    align-items: center;
}

.blazored-toast-icon svg {
    display: none;
}

.blazored-toast-close::before {
    content: "\2715";  /* Unicode for 'X' close icon */
    font-size: 16px;
    color: #000000;
    font-weight: bold;
    display: inline-block;
    text-align: center;
}

.blazored-toast .blazored-toast-close {
    padding-right: 10px !important;
    padding-top: 2px !important;
}

.blazored-toast-close-icon {
    display: none;
}

.blazored-toast-close:focus {
    outline: none;
    box-shadow: none;
}

.blazored-toast-close:active {
    outline: none;
    box-shadow: none;
    border: none;
}

.tag-remove-button {
    content: url(../Assets/tag-delete.svg) !important;
    min-height: 1rem;
}

.icon-button {
    display: flex;
    align-items: center;
    gap: 8px;
}

.icon-button::before {
    content: "";
    background-size: contain;
    background-repeat: no-repeat;
    width: 22px;
    height: 22px;
}

.icon-button.csv-icon::before {
    background-image: url(../Assets/icon_csv.svg);
}

.icon-button.excel-icon::before {
    background-image: url(../Assets/icon_xls.svg);
}