﻿:root {
    --primary-icons: var(--bs-primary);
    --light-grey-bg: #f5f5f5;
    --dark-grey: #484848;
    --light-primary: rgba(0,140,186,0.1);
}

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    height: 100vh;
}

#app {
    height: inherit;
}

.simple-layout {
    height: inherit;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

/*.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}*/

.content {
    height: inherit;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#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+PHBhdGggZD0iTTI2My41MD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DkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

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

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

    .loading-progress circle {
        fill: none;
        stroke: var(--bs-primary);
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #1b6ec2;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

code {
    color: #c02d76;
}

.login-container {
    display: flex;
    height: 100%;
    font-family: 'Arial', sans-serif;
}

.horizon-form {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2em;
}

.horizon-form-content {
    width: 100%;
    max-width: 400px; /* Maximum width of the form */
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    text-align: center;
}

.centered {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.logo {
    width: fit-content;
    margin: unset;
    font-size: 1.5em;
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    letter-spacing: 1px;
    text-shadow: 2px 1px 2px rgba(0, 0, 0, 0.2);
    background: #9F0FCF;
    background: linear-gradient(to right, var(--bs-secondary) 0%, var(--bs-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.form-group {
    margin-bottom: 15px;
    text-align: left;
}

.form-check-input {
    margin-right: 10px;
}

.loader-container {
    margin: auto;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center; /* Centers loader vertically */
    justify-content: center; /* Centers loader horizontally */
}

.loader {
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(farthest-side, var(--bs-primary) 94%, #0000) top/8px 8px no-repeat, conic-gradient(#0000 30%, var(--bs-primary));
    -webkit-mask: radial-gradient(farthest-side, #0000 calc(100% - 8px), #000 0);
    animation: l13 1s infinite linear;
}

@keyframes l13 {
    100% {
        transform: rotate(1turn);
    }
}

@media (max-width: 768px) {
    .sidebar-drawer {
        /* Use Overlay mode on small screens */
        position: fixed;
        z-index: 1050; /* Ensure it overlays content */
    }

    .top-toolbar {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
}

.horizon-nav {
    min-height: 4em;
    position: relative;
    padding-left: 1em;
    padding-right: 1em;
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
    z-index: 777;
}

.nav-button .bi {
    font-size: 1.5rem;
    color: var(--bs-primary);
}

.nav-button {
    color: var(--primary-icons);
}

#horizon-drawer :first-child {
    /*border: unset !important;*/
    /*min-width: 15% !important;*/
}

.menu-icon .bi {
    font-size: 1.2rem;
    color: var(--bs-primary);
}

.dx-menu-item {
    /*  margin: 0.2em;*/
    border-radius: 5px;
    font-size: 1.5em;
    font-weight: 400;
}

.bg-grey-color {
    background-color: var(--bs-light);
}

.account-tabs {
    width: fit-content;
}

.horizon-company-name {
    font-weight: 100;
    font-size: medium;
    margin-left: 1em;
    margin-right: 1em;
}

.horizon-switcher {
    font-family: Arial, sans-serif;
    display: inline-block;
}

.contract-selector {
    width: 100%;
    max-width: 15em; /* Enforce max width */
    text-overflow: ellipsis; /* Add ellipsis for overflowing text */
    white-space: nowrap; /* Prevent wrapping in the closed state */
    overflow: hidden; /* Hide overflowing text */
    display: inline-block;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    background-color: #fff;
    appearance: none; /* Remove default browser styling */
    transition: border-color 0.3s ease;
}

    .contract-selector option {
        max-width: fit-content; /* Restrict the width of each option */
        white-space: normal; /* Allow wrapping in the open dropdown */
        word-wrap: break-word; /* Break long words if necessary */
        overflow-wrap: break-word;
        padding: 0.5rem; /* Add spacing to make it readable */
    }

.custom-select {
    -webkit-appearance: none; /* Remove default arrow in Chrome/Safari */
    -moz-appearance: none; /* Remove default arrow in Firefox */
    appearance: none;
    display: flex;
    align-items: center;
    padding: 3px 6px;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
    color: #333;
    outline: none;
    transition: border-color 0.3s ease;
}

    .custom-select:hover {
        border-color: #aaa;
    }

    .custom-select option {
        padding: 10px;
        display: flex;
        align-items: center;
    }

.flag-icon {
    margin-right: 8px;
}

.horizon-main-layout-body {
    height: 100%;
    padding: 0em 0.5em 0em 0.5em;
}

.password-container {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input {
    flex-grow: 1;
    padding-right: 2.5rem;
}

.password-toggle {
    position: absolute;
    right: 0.75rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #6c757d;
    font-size: 1.2rem;
    line-height: 1;
}

    .password-toggle:focus {
        outline: none;
    }

.contract-job-title {
    font-size: 0.8em;
}

.horizon-modules-header {
    color: var(--bs-primary);
}

.width-fit-content {
    width: fit-content;
}

.no-outline input:focus {
    outline: none !important;
    box-shadow: none;
}

.custom-grid tr:hover {
    background-color: var(--bs-light);
    cursor: pointer; /* Pointer cursor for better UX */
}

.feedback-inside-form-layout {
    max-width: fit-content;
    justify-self: center;
}

..valid.modified:not {
    outline: unset;
}

.decline-button {
    background-color: white;
    border-color: grey;
}

.floating-update-button {
    position: relative;
    top: 0;
    padding: 1rem 1.5rem;
    width: 100%;
}

/* Login container layout */
.login-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    align-items: center;
    justify-content: center;
}

.desktop-layout {
    display: flex;
    width: 100%;
    height: 100%;
    margin: 0 auto;
}

.login-form-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40%;
}

.login-form {
    text-align: center;
    max-width: 400px;
}

.image-container {
    min-width: 60%;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #000a1d;
}

.login-image {
    object-fit: cover;
    max-width: 100%;
    height: 100%;
    background-color: #000a1d;
}

.centered {
    margin: auto;
    width: 100%;
    max-width: 450px;
}

.horizon-form-content {
    padding: 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.horizon-form-fields {
    height: 2.5em;
    border-radius: unset;
    -webkit-text-decoration: none;
    text-decoration: none;
}

.horizon-radio-group {
    margin: unset !important;
    outline: none !important;
}

.holiday-break-draft > td {
    background-color: rgb(255 233 237);
}

.holiday-break-approved > td {
    background-color: rgb(255 200 210);
}

.document-correction {
    background-color: rgb(255, 255, 143, 0.3);
}

.substitution-box {
    /* border-radius: 15px; */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    font-family: 'Arial', sans-serif;
}

.substitution-card {
    display: flex;
    flex-direction: column;
    flex-shrink: 1;
}

.substitution-title {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--bs-primary);
}

.substitution-title i {
    margin-right: 0.2em;
}

.substitution-name {
    font-size: 1.2em;
    font-weight: bold;
    color: var(--bs-primary);
    display: flex;
    align-items: center;
}

.substitution-name i {
    margin-right: 0.3em;
    color: var(--bs-primary);
}

.active-module {
    background-color: var(--light-primary);
}

.reports-card-wrap {
    display: flex;
    flex-direction: column;
    width: inherit;
    box-shadow: rgba(0, 0, 0, 0.12) 0px 3px 8px;
    border-radius: 15px;
    margin-top:1em;
    margin-bottom:1em;
}

.reports-card-header {
    padding: 0.7em;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    box-shadow: rgba(0, 0, 0, 0.05) 0px 3px 8px;
    background-color: var(--light-primary);
    color: var(--bs-primary);
    gap: 1;
}

.reports-card-body {
    /*background-color: var(--bs-secondary)*/
}

.reports-card-body-item {
    padding: 0.4em;
    display: flex;
    justify-content: space-between;
    margin-left: 1em;
    margin-right: 1em;
    gap: 1em;
}

.user-greeting-text {
    font-size: large;
    color: white;
    letter-spacing: 0.03em;
    padding-right: 0.5em;
    opacity: 0.8;
}

.horizon-info-box {
    border-radius: 15px;
    border: solid rgba(0,140,186,0.2) 1px;
    background-color: var(--light-primary);
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
    padding: 3em;
}

.auth-horizon-card {
    box-shadow: rgba(0, 0, 0, 0.12) 0px 3px 8px;
    border-radius: 15px;
    border: unset;
}

.auth-horizon-card-header {
    padding: 0.7em;
    box-shadow: rgba(0, 0, 0, 0.05) 0px 3px 8px;
    background-color: var(--light-primary);
    color: var(--bs-primary);
    border-top-left-radius: 15px !important;
    border-top-right-radius: 15px !important;
    border-bottom: unset !important;
    height: 5em !important;
    align-content: space-evenly !important;
}

.totp-code-holder {
    background-color: var(--bs-secondary);
    text-align: center;
    color: var(--dark-grey);
    font-size: 24px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.totp-login-wrap {
    width: fit-content;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 10px;
    justify-content: space-around;
    justify-self: center;
    outline: none;
    text-align: center;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    padding: 0;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
input[type=number] {
    -moz-appearance: textfield;
}

.border-top-radius-unset {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.zoom-hover {
    transition: transform 0.3s ease; /* smooth scaling */
}

.zoom-hover:hover {
    transform: scale(1.008); /* slightly enlarge */
}

.theme-warning {
    color: var(--bs-warning);
}

.custom-drop-zone {
    padding: 0 !important;
    border-style: dashed;
    border-width: 2px !important;
    height: 230px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: rgba(183, 183, 183, 0.1);
}

    .custom-drop-zone.custom-drop-zone-hover {
        border-style: solid;
    }

    .custom-drop-zone svg {
        width: 42px;
        height: 42px;
    }

    .custom-drop-zone > *:not(#overviewDemoSelectButton) {
        pointer-events: none;
    }

.upload-container,
.upload-container > div:first-child {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.drop-file-label {
    font-weight: 500;
    font-size: 1rem;
}

.dxbl-upload-file-view {
    align-items: center;
}

.progress-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.5);
    z-index: 99999;
}

.small-spinner {
    width: 45px;
    height: 45px;
}
