﻿@import url('fonts.css');

html, body {
    font-family: 'Sora', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 400;
    height: 100%;
    scroll-behavior: smooth;
    color: var(--black-color);
    background-color: var(--bg-gray-light-color);
}

[class^="e-"]:not([class*="e-icon"]) {
    font-family: 'Sora', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 400;
    color: var(--black-color);
}

#app, #test {
    height: 100%;
    scroll-behavior: smooth;
}

.middle-container {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.loader-container {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    flex-direction: column;
    gap: 40px;
    padding: 5%;
}

.newVersionLoader-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: fixed;
    padding: 5%;
    z-index: 999999;
    background-color: var(--bg-primary-light-color);
    overflow-y: auto;
}

.logo {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2vw;
}

.logo-image {
    width: 10vw;
}

.logo-text {
    font-size: 5vw;
    font-weight: 700;
    color: var(--primary-dark-color);
}

.newVersionLoader-title {
    margin-bottom: 16px;
    font-size: 32px;
    font-weight: 600;
}

.newVersionLoader-subtitle {
    margin-bottom: 60px;
    font-size: 32px;
    font-weight: 400;
}

.newVersionLoader-container-logo-wrapper {
    padding: 16px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.newVersionLoader-container-logo-wrapper::before {
    content: "";
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 8px solid var(--primary-color);
    border-top-color: var(--bg-primary-light-color);
    animation: spin 2s infinite linear;
    position: absolute;
    opacity: 0.12;
}

.newVersionLoader-container-logo {
    width: 30vw;
    height: 30vw;
    max-width: 220px;
    max-height: 220px;
}

.loader {
    display: grid;
    place-items: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: conic-gradient( from 180deg at 50% 50%, var(--white-color) 0deg, var(--primary-dark-color) 360deg );
    animation: spin 2s infinite linear;
    margin-top: 50px;
}

.loader::before {
    content: "";
    border-radius: 50%;
    width: 80%;
    height: 80%;
    background-color: var(--white-color);
}

@keyframes spin {
    to {
        transform: rotate(1turn);
    }
}

@media (max-width: 991.98px) {
    .loader-container {
        gap: 60px;
    }

    .loader {
        width: 60px;
        height: 60px;
    }

    .newVersionLoader-title, 
    .newVersionLoader-subtitle {
        font-size: 24px;
    }
}

@media (max-width: 424.98px) {
    .loader-container {
        padding: 20px;
    }

    .logo-image {
        width: 50px;
    }

    .logo-text {
        font-size: 24px;
    }

    .newVersionLoader-container {
        padding: 20px;
    }

    .newVersionLoader-title,
    .newVersionLoader-subtitle {
        font-size: 20px;
    }
}

@media (min-width: 1440px) {
    .loader-container {
        padding: 5% 10%;
    }

    .logo-image {
        width: 150px;
    }

    .logo-text {
        font-size: 78px;
    }
}

@media (max-height: 568px) {
    .newVersionLoader-subtitle {
        margin-bottom: 20px;
    }

    .newVersionLoader-container-logo {
        width: 30vw;
        max-width: 220px;
    }
}

.newVersion-container {
    padding: 20px;
    width: calc(100% - 10px);
    max-width: 480px;
    position: absolute;
    top: 5px;
    right: 5px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    border-radius: 16px;
    z-index: 10000;
    background: var(--bg-primary-light-color);
    box-shadow: 0 4px 8px var(--gray-light-color);
}

.newVersion-title {
    font-size: 20px;
    font-weight: 600;
}

.newVersion-subtitle {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.3;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: var(--primary-color);
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid var(--negative);
}

.validation-message {
    color: var(--negative);
}

#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+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }


/* Syncfusion calendar styles */
.e-calendar .e-model-header {
    background-color: var(--primary-color);
}

.e-calendar .e-model-header .e-model-year,
.e-calendar .e-model-header .e-model-day,
.e-calendar .e-model-header .e-model-month {
    color: var(--white-color);
}

.e-calendar .e-btn, .e-calendar .e-content td.e-selected.e-focused-date span.e-day {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.e-calendar .e-content td.e-today span.e-day {
    color: var(--primary-dark-color) !important;
    box-shadow: inset 2px 0 var(--primary-color), inset 0 2px var(--primary-color), inset -2px 0 var(--primary-color), inset 0 -2px var(--primary-color) !important;
}

.e-calendar .e-content td.e-today.e-selected span.e-day {
    color: var(--white-color) !important;
}

.e-calendar .e-content td.e-selected span.e-day {
    background-color: var(--primary-color) !important;
}

/* Syncfusion spinner styles */
.e-spinner-pane .e-spinner-inner .e-spin-bootstrap5 {
    fill: var(--primary-dark-color) !important;
    stroke: var(--primary-dark-color) !important;
}

/* Syncfusion dropdown styles */
.e-dropdownbase .e-list-item.e-active,
.e-dropdownbase .e-list-item.e-active.e-hover {
    background-color: var(--primary-light-color) !important;
    color: var(--black-color) !important;
}

/* Syncfusion buttons styles */
.e-btn {
    width: 100%;
    min-height: 44px;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    font-weight: 600 !important;
    border: none;
    outline: none;
    position: relative;
}

.e-btn.e-flat {
    border: none;
    box-shadow: none;
}

.e-btn.e-flat:active,
.e-btn.e-flat:focus {
    box-shadow: none !important;
}

.e-btn.e-primary {
    background: var(--primary-color) !important;
    background-color: var(--primary-color) !important;
    color: var(--white-color) !important;
}

.e-btn.e-primary:active, 
.e-btn.e-primary:focus {
    background: var(--primary-color) !important;
    color: var(--white-color) !important;
    box-shadow: none;
}

.e-btn.e-primary:hover {
    box-shadow: none;
}

.e-btn.e-outline {
    font-weight: 600;
    border: 1px solid var(--primary-color);
    background: var(--white-color);
    color: var(--primary-color);
}

.e-btn.e-outline:active, 
.e-btn.e-outline:focus,
.e-btn.e-outline:focus:not(:focus-visible), 
.e-css.e-btn.e-outline:focus:not(:focus-visible) {
    background: var(--primary-lighter-color);
    border-color: var(--primary-color);
    color: var(--primary-dark-color);
    box-shadow: none;
}

.e-btn.e-outline:hover {
    background: var(--white-color);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.e-btn.e-link {
    padding: 8px;
    min-height: auto;
    width: fit-content;
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-dark-color);
}

.e-btn.e-link:hover,
.e-btn.e-link:focus {
    color: var(--primary-dark-color);
}

.e-btn.e-link.secondary {
    color: var(--negative);
}

.e-btn.e-link.secondary:hover,
.e-btn.e-link.secondary:focus {
    color: var(--negative);
}

@media (min-width: 992px) {
    .e-btn.e-outline:hover {
        background: var(--primary-lighter-color);
        border-color: var(--primary-color);
        color: var(--primary-dark-color);
    }

    .e-btn.e-primary:hover {
        background: var(--primary-light-color) !important;
        color: var(--white-color) !important;
    }
}

.e-btn.e-primary:disabled,
.e-btn.e-primary.disabled {
    background: rgba(120, 115, 222, .6) !important;
    border-color: rgba(120, 115, 222, .6) !important;
}

.e-btn.e-outline:disabled {
    border: 1px solid var(--gray-light-color);
    background: var(--gray-lighter-color);
    color: var(--gray-dark-color);
    opacity: 0.6;
}

/* Syncfusion input styles */
.e-input-group,
.e-input-group.e-control-wrapper {
    box-shadow: none !important;
}

.e-input-group:not(.e-success):not(.e-warning):not(.e-error),
.e-input-group.e-control-wrapper:not(.e-success):not(.e-warning):not(.e-error) {
    border-radius: 8px;
    border-color: var(--gray-light-color);
}

.e-input-group.e-input-focus:not(.e-success):not(.e-warning):not(.e-error), 
.e-input-group.e-control-wrapper.e-input-focus:not(.e-success):not(.e-warning):not(.e-error),
.e-input-group.e-input-focus:hover:not(.e-success):not(.e-warning):not(.e-error):not(.e-disabled), 
.e-input-group.e-control-wrapper.e-input-focus:hover:not(.e-success):not(.e-warning):not(.e-error):not(.e-disabled), 
.e-float-input.e-input-focus:hover:not(.e-success):not(.e-warning):not(.e-error):not(.e-disabled), 
.e-float-input.e-control-wrapper.e-input-focus:hover:not(.e-success):not(.e-warning):not(.e-error):not(.e-disabled), 
.e-float-input.e-input-focus:hover:not(.e-input-group):not(.e-success):not(.e-warning):not(.e-error):not(.e-disabled) input:not([disabled]), 
.e-float-input.e-control-wrapper.e-input-focus:hover:not(.e-input-group):not(.e-success):not(.e-warning):not(.e-error):not(.e-disabled) input:not([disabled]), 
.e-float-input.e-input-focus:hover:not(.e-input-group):not(.e-success):not(.e-warning):not(.e-error):not(.e-disabled) textarea:not([disabled]), 
.e-float-input.e-control-wrapper.e-input-focus:hover:not(.e-input-group):not(.e-success):not(.e-warning):not(.e-error):not(.e-disabled) textarea:not([disabled]),
.e-input-group:not(.e-disabled):active:not(.e-success):not(.e-warning):not(.e-error), .e-input-group.e-control-wrapper:not(.e-disabled):active:not(.e-success):not(.e-warning):not(.e-error) {
    border-radius: 8px;
    border-color: var(--primary-color) !important;
}

.e-input-group.e-error,
.e-input-group.e-success,
.e-input-group.e-control-wrapper.e-error,
.e-input-group.e-control-wrapper.e-success {
    border-radius: 8px !important;
}

.e-input-group,
.e-input-group.e-control-wrapper {
    align-items: center;
}

.e-input-group input:valid,
.e-input-group.e-control-wrapper input:valid {
    outline: none;
}

.e-input-group.e-control-wrapper:has(input.invalid) {
    border: 1px solid var(--negative) !important;
}

.e-input-group:not(.e-success):not(.e-warning):not(.e-error):not(.e-float-icon-left).e-disabled,
textarea.e-control.e-textbox:disabled {
    overflow: hidden;
    background: var(--gray-lighter-color) !important;
}

/* Toast */
.e-toast-right {
    right: 5px !important;
}

.e-toast-container.e-toast-top-right {
    width: calc(100% - 20px);
    max-width: 450px;
    right: 10px;
}

.e-toast-container .e-toast {
    margin-left: auto;
    width: 100% !important;
    border: none;
    border-radius: 8px;
}

.e-toast.offline-toast {
    max-width: 300px;
    border: 1px solid var(--negative);
    z-index: 10000;
}

.e-toast.offline-toast .e-toast-icon {
    margin-top: 9px;
}

.e-toast.offline-toast .e-toast-message .e-toast-title,
.e-toast.offline-toast .e-toast-message .e-toast-content, 
.e-toast.offline-toast .e-toast-icon::before {
    color: var(--black-color);
}

.e-toast.offline-toast .e-toast-message .e-toast-title {
    border-color: var(--gray-light-color);
}

.e-toast-container .e-toast.e-toast-success {
    background-color: var(--secondary-lightest-color);
}

.e-toast-container .e-toast.e-toast-warning {
    background-color: var(--yellow-light-color);
}

.e-toast-container .e-toast.e-toast-danger {
    background-color: var(--red-light-color);
}

/* Hipe calendar popup */
.e-quick-popup-wrapper.e-device {
    display: none !important;
}

/* Universal dialog */
.e-dialog.universal-dialog {
    width: calc(100% - 40px);
    max-width: 500px;
    border-radius: 16px;
    overflow: hidden;
}

.e-dialog.universal-dialog .e-footer-content {
    border-top: none;
    display: flex;
    gap: 12px;
}

.e-dialog.universal-dialog .e-footer-content .e-control.e-btn {
    margin: 0;
}

.e-dialog.universal-dialog .e-dlg-header-content {
    border-bottom: none;
    position: relative;
}

.e-dialog.universal-dialog .e-dlg-header-content .e-btn {
    min-height: auto;
}

.e-dialog.universal-dialog .e-dlg-header-content .e-dlg-header {
    width: 90%;
    font-weight: 700;
}

.e-dialog.universal-dialog .e-dlg-header-content .e-btn.e-dlg-closeicon-btn {
    bottom: 0;
    left: 5px;
}

.e-dialog.universal-dialog .e-dlg-content {
    font-size: 16px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.e-dialog.universal-dialog .e-dlg-content a {
    text-decoration: none;
    color: var(--primary-dark-color);
    font-weight: 500;
}

.e-dialog.universal-dialog .e-dlg-content a:hover {
    text-decoration: underline;
}

/* Universal dialog + Notification dialog */
.universal-dialog.notification-dialog .e-dialog.universal-dialog.notification-dialog {
    max-width: 400px;
}

.universal-dialog.notification-dialog .e-dlg-header-content {
    padding: 12px 16px;
    background-color: var(--primary-color);
}

.universal-dialog.notification-dialog .e-dlg-content {
    padding: 16px 16px 12px;
}

.universal-dialog.notification-dialog .e-footer-content {
    padding: 12px 16px;
}

    .universal-dialog.notification-dialog .e-footer-content .e-control.e-btn {
        font-size: 16px;
    }

@media (min-width: 992px) {
    .e-dialog.universal-dialog .e-footer-content {
        padding: 12px 30px 30px 30px;
    }

    .e-dialog.universal-dialog .e-dlg-header-content {
        padding: 30px 30px 12px 30px;
    }

    .e-dialog.universal-dialog .e-dlg-header-content .e-dlg-header {
        font-size: 20px;
    }

    .e-dialog.universal-dialog .e-dlg-content {
        padding-left: 30px;
        padding-right: 30px;
    }
}

/* Menu dialog */
.e-dlg-container.menu-dialog {
    height: calc(100% - 65px); /* 65px - height of bottom mobile naviagation */
    align-items: flex-end;
    justify-content: flex-end;
}

.e-dlg-container.menu-dialog .e-dlg-overlay {
    background-color: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(3px);
}

.e-dialog.menu-dialog {
    width: 100%;
    max-width: 450px;
    max-height: 100% !important ;
    border-radius: 8px 8px 0 0;
    box-shadow: none;
}

.e-dialog.menu-dialog .e-dlg-header-content {
    padding: 30px 30px 15px 30px;
    border-bottom: none;
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: center;
}

.e-dialog.menu-dialog .e-dlg-header-content .e-dlg-header {
    font-size: 20px;
    font-weight: 600;
}

.e-dialog.menu-dialog .e-dlg-header-content .e-btn.e-dlg-closeicon-btn {
    margin: 0;
    padding: 0;
    width: 19px;
    height: 19px;
    min-width: 19px;
    min-height: 19px;
    border-radius: 50%;
    background-color: var(--gray-dark-color);
    bottom: 0;
    left: 0;
}

.e-dialog.menu-dialog .e-dlg-header-content .e-btn.e-dlg-closeicon-btn::before {
    content: "\2715";
    font-size: 11px;
    font-weight: 400;
    line-height: 1;
    color: var(--white-color);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.e-dialog.menu-dialog .e-dlg-header-content .e-btn.e-dlg-closeicon-btn .e-btn-icon.e-icon-dlg-close {
    display: none;
}

.e-dialog.menu-dialog .e-dlg-content {
    padding: 15px 20px 30px 20px;
}

.e-dialog.menu-dialog .e-dlg-content .menu-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.e-dialog.menu-dialog .e-dlg-content .menu-list .menu-item:nth-child(2)::after,
.e-dialog.menu-dialog .e-dlg-content .menu-list .menu-item:nth-child(5)::after {
    margin-top: 24px;
    display: block;
    content: "";
    width: 100%;
    height: 1px;
    background-color: var(--gray-color);
    opacity: 0.2;
}

.e-dialog.menu-dialog .e-dlg-content .menu-list .menu-link {
    padding: 5px 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--primary-dark-color);
    border-radius: 8px;
    cursor: pointer;
}

.e-dialog.menu-dialog .e-dlg-content .menu-list .menu-link:hover {
    background-color: var(--primary-lightest-color);
}

.e-dialog.menu-dialog .e-dlg-content .menu-list .menu-link.logout {
    color: var(--negative);
}

.e-dialog.menu-dialog .e-dlg-content .menu-list .menu-link .menu-text {
    font-size: 16px;
    font-weight: 600;
}

.e-dialog.menu-dialog .e-dlg-content .menu-list .menu-link svg {
    width: 30px;
    height: 30px;
}

/* Country picker, Language picker */
.e-ddl.e-popup.e-popup-open.countryPicker,
.e-ddl.e-popup.e-popup-open.languagePicker,
.e-ddl.e-popup.e-popup-open.sodexoPicker {
    border: none;
}

.e-ddl.e-popup.e-popup-open.countryPicker .e-content.e-dropdownbase,
.e-ddl.e-popup.e-popup-open.languagePicker .e-content.e-dropdownbase,
.e-ddl.e-popup.e-popup-open.sodexoPicker .e-content.e-dropdownbase {
    border-radius: 4px;
    border: 1px solid var(--gray-light-color);
}

/* Environment banner - DEV and UAT */
.env-banner {
    height: 40px;
    padding: 0 4px;
    background-color: var(--yellow-color);
    font-size: 12px;
    line-height: 1.2;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.env-banner p {
    text-align: center;
}

.env-banner a {
    color: var(--primary-dark-color);
}

body:has(.env-banner) {
    height: calc(100% - 40px);
}

@media (min-width: 600px) {
    .env-banner {
        padding: 0 8px; 
        height: 30px;
    }

    body:has(.env-banner) {
        height: calc(100% - 30px);
    }
}

@media (min-width: 992px) {
    .env-banner {
        padding-left: 310px;
    }
}