@font-face {
    font-family: "Open Sans";
    font-weight: normal;
    font-style: normal;
    src: url("../fonts/OpenSans-Regular.eot");
    src: url("../fonts/OpenSans-Regular.eot?#iefix") format("embedded-opentype"),
    url("../fonts/OpenSans-Regular.woff") format("woff"),
    url("../fonts/OpenSans-Regular.svg") format("svg");
}

@font-face {
    font-family: "Open Sans";
    font-weight: 600;
    font-style: normal;
    src: url("../fonts/OpenSans-Semibold.eot");
    src: url("../fonts/OpenSans-Semibold.eot?#iefix") format("embedded-opentype"),
    url("../fonts/OpenSans-Semibold.woff") format("woff"),
    url("../fonts/OpenSans-Semibold.svg#Semibold") format("svg");
}

html {
    overflow-y: scroll;
}

body {
    margin: 0;
    padding: 0;
    font-family: "Open Sans", Arial, sans-serif;
    font-size: 14px;
    color: #111;
    letter-spacing: 0;
    background: #f8f8f8;
}

input, textarea {
    font-family: "Open Sans", Arial, sans-serif;
    font-size: 15px;
}

a {
    color: #267E54;
    text-decoration: none;
}

.display-flex {
    display: flex;
}

/* Layout */
.main-wrapper {
    position: relative;
    min-width: 300px;
    margin: 0 auto;
}

.main-wrapper > .main-header {
    display: flex;
    flex-flow: row nowrap;
    position: fixed;
    height: 60px;
    align-items: center;
    justify-content: flex-end;
    z-index: 9;
    left: 0;
    top: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.main-wrapper > .main-header > .logo {
    display: block;
    position: relative;
    flex: 0 0 auto;
    width: 136px;
    top: -1px;
    padding: 14px 0 0 17px;
}

.main-wrapper > .main-header > .logo > img {
    width: 100%;
}

.main-wrapper > .main-header > .logo > span {
    display: block;
    position: absolute;
    top: 3px;
    right: 0;
    color: #333;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

.main-wrapper > .main-header > .side {
    display: flex;
    flex: 1 1 auto;
    flex-flow: row nowrap;
    padding-right: 5px;
    align-items: stretch;
    justify-content: flex-end;
}

.main-wrapper > .main-header > .side > .user {
    position: relative;
    flex: 0 0 auto;
    width: 50px;
}

.main-wrapper > .main-header > .side > .user > .initials {
    display: block;
    position: absolute;
    left: 50%;
    top: 50%;
    width: 40px;
    height: 40px;
    transform: translate(-50%, -50%);
    line-height: 40px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    border-radius: 20px;
    background: #ccc;
}

.main-wrapper > .main-header > .side > .logout {
    display: block;
    flex: 0 0 auto;
    width: 60px;
    height: 60px;
    background: url('/frontend/template/assets/images/icons/logout-black.svg') center center no-repeat;
    background-size: 24px 24px;
    transition: all 0.15s ease-out;
}

.main-wrapper > .main-header > .side > .logout:hover {
    background-color: #eee;
}

.main-wrapper > .main-header > .side > .language {
    position: relative;
    flex: 0 0 auto;
    margin-right: 5px;
    transition: all 0.15s ease-out;
}

.main-wrapper > .main-header > .side > .language > .selected {
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    padding: 12px 23px 12px 7px;
    background: url('/frontend/template/assets/images/icons/arrow-down.svg') right 7px center no-repeat;
    background-size: 10px 10px;
    cursor: pointer;
}

.main-wrapper > .main-header > .side > .language > .selected > .tag {
    display: none;
    line-height: 14px;
    font-size: 14px;
    font-weight: 600;
    color: #222;
    text-transform: uppercase;
}

.main-wrapper > .main-header > .side > .language > .selected > .name {
    display: block;
    line-height: 14px;
    font-size: 14px;
    font-weight: 600;
    color: #222;
}

.main-wrapper > .main-header > .side > .languages:hover > .options {
    display: block;
}

.main-wrapper > .main-header > .side > .selection {
    display: flex;
    align-items: center;
    margin-right: 10px;
}

.main-wrapper > .main-header > .side > .selection .im-select,
.main-wrapper > .main-header > .side > .selection .im-select option {
    cursor: pointer;
}

.main-wrapper > .main-header > .side > .selection .im-select[data-action="selectLanguage"].mobile,
.main-wrapper > .main-header > .side > .selection .im-select[data-action="selectLanguage"].mobile option {
    text-transform: uppercase;
}


@media all and (min-width: 651px) {
    .main-wrapper > .main-header > .side > .selection .im-select:not(:hover) {
        border-color: transparent;
    }

    .main-wrapper > .main-header > .side > .selection .im-select[data-action="selectLanguage"].mobile {
        display: none;
    }

    .main-wrapper > .main-header > .side > .selection .im-select[data-action="selectLanguage"] {
        width: min-content;
    }
}

/* Main area */
.main-wrapper > .main-area {
    padding-top: 60px;
    padding-bottom: 65px;
}

/* Main footer */
.main-wrapper > .main-footer {
    position: fixed;
    z-index: 9;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 55px;
}

.main-wrapper > .main-footer > .nav {
    display: flex;
    flex-flow: row nowrap;
}

.main-wrapper > .main-footer > .nav > .item {
    display: block;
    flex: 1 1 auto;
    width: 50%;
    height: 55px;
    line-height: 55px;
    text-transform: uppercase;
    background: #f2f2f2;
    box-shadow: 0 0 0 1px #ccc;
    font-size: 13px;
    font-weight: bold;
    text-align: center;
    transition: all 0.2s ease;
}

.main-wrapper > .main-footer > .nav > .item:hover {
    box-shadow: 0 0 0 1px #bbb;
    background: #e5e5e5;
}

.main-wrapper > .main-footer > .nav > .item.active {
    box-shadow: 0 0 0 1px #1e6b46;
    background: #1f6e48;
    color: #fff;
}

.imjs-dialog-inner.imjs-default.ws-dialog > .imjs-buttons > .imjs-button {
    padding: 7px 10px;
    border: 2px solid #ccc;
    border-radius: 2px;
}

.imjs-dialog-inner.imjs-default.ws-dialog > .imjs-buttons > .imjs-button.green {
    border-color: #319b68;
    color: #288458;
}

/* Settings */
.settings-popup {
    width: 250px;
    padding-top: 3px;
}

.settings-popup > .language > .title {
    margin-bottom: 10px;
    padding: 0 10px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    color: #111;
    cursor: default;
}

.settings-popup > .language > .options > .option {
    display: block;
    padding: 12px 10px;
    font-size: 14px;
    line-height: 16px;
    color: #222;
    cursor: pointer;
}

.settings-popup > .language > .options > .option:hover {
    background-color: #fafafa;
    color: #000;
}

.settings-popup > .language > .options > .option.selected {
    background-color: #f5f5f5;
    color: #000;
    font-weight: bold;
}

@media all and (max-width: 1000px) {
    .main-wrapper > .main-header > .side > .selection .im-select[data-action="selectFactory"],
    .main-wrapper > .main-header > .side > .selection .im-select[data-action="selectCreator"] {
        width: 150px;
    }
}

@media all and (max-width: 800px) {
    .main-wrapper > .main-header > .side > .selection .im-select[data-action="selectFactory"],
    .main-wrapper > .main-header > .side > .selection .im-select[data-action="selectCreator"] {
        width: 100px;
    }
}

@media all and (max-width: 650px) {
    .main-wrapper > .main-header > .side > .selection .im-select {
        padding: 0;
    }

    .main-wrapper > .main-header > .side > .selection .im-select[data-action="selectLanguage"].desktop {
        display: none;
    }

    .main-wrapper > .main-header > .side > .selection .im-select[data-action="selectLanguage"] {
        width: 50px;
    }

    .main-wrapper > .main-header > .side > .selection .im-select[data-action="selectFactory"],
    .main-wrapper > .main-header > .side > .selection .im-select[data-action="selectCreator"] {
        width: 50px;
    }

    .main-wrapper > .main-header > .side > .selection {
        margin-right: 5px;
    }
}

@media all and (max-width: 550px) {
    .main-wrapper > .main-header > .logo {
        top: 1px;
        width: 100px;
    }

    .main-wrapper > .main-header > .logo > span {
        top: 0;
    }

    .main-wrapper > .main-area {
        padding-top: 60px;
    }
}

@media all and (max-width: 450px) {
    .main-wrapper > .main-header > .logo {
        top: 0;
        width: 100px;
    }

    .main-wrapper > .main-area {
        padding-top: 60px;
    }
}

.main-wrapper > .main-header > .side > .portalNavigationMenu {
    height: 100%;
    display: flex;
    justify-content: flex-end;
    --portal-menu-height: 60px;
}

.main-wrapper > .main-header > .side > .portalNavigationMenu:hover {
    background-color: #eee;
}

.main-wrapper > .main-header > .side > .portalNavigationMenu > li {
    display: flex;
    align-items: center;
    position: relative;
    height: var(--portal-menu-height);
}

.main-wrapper > .main-header > .side > .portalNavigationMenu > li > span {
    padding-inline: 12px;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    cursor: default;
}

.main-wrapper > .main-header > .side > .portalNavigationMenu > li > span > i.portal-navigation-icon {
    display: block;
    width: 24px;
    height: 17px;
    background: url(../images/portal-navigation-black.png) center center no-repeat;
    background-size: cover;
}

.main-wrapper > .main-header > .side > .portalNavigationMenu > li ul.submenu {
    display: block;
    position: absolute;
    top: var(--portal-menu-height);
    width: max-content;
    --easing: 0.3s;
    padding: 0;
    font-size: 12px;
    background: #fff;
    border: 1px solid #d4d4d4;
    border-top: 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
}

.main-wrapper > .main-header > .side > .portalNavigationMenu > li > ul.submenu {
    padding-block: 10px;
    right: -1px;
}

.main-wrapper > .main-header > .side > .portalNavigationMenu > li > ul.submenu > li {
    padding-inline: 20px;
}

.main-wrapper > .main-header > .side > .portalNavigationMenu > li > ul.submenu {
    max-width: 400px;
}

.main-wrapper > .main-header > .side > .portalNavigationMenu > li > ul.submenu {
    opacity: 0;
    transition: opacity var(--easing) ease-out, top 0s var(--easing) ease-out;
}

.main-wrapper > .main-header > .side > .portalNavigationMenu > li:not(:hover) > ul.submenu {
    top: -1000px;
}

.main-wrapper > .main-header > .side > .portalNavigationMenu > li:hover > ul.submenu {
    opacity: 1;
    transition: opacity var(--easing) ease-out;
}

.main-wrapper > .main-header > .side > .portalNavigationMenu > li > ul.submenu > li {
    display: block;
}

.main-wrapper > .main-header > .side > .portalNavigationMenu > li > ul.submenu > li > .link {
    display: block;
    line-height: 18px;
    font-size: 12px;
    color: #333333;
    padding: 4px 20px 4px 5px;
    position: relative;
}

.main-wrapper > .main-header > .side > .portalNavigationMenu > li > ul.submenu > li > .link:hover {
    background: #f5f5f5;
    border-radius: 3px;
}

/* MODAL DEGREES OF SEVERITY */
html.dos-modal-open,
body.dos-modal-open {
    overflow: hidden;
    height: 100%;
}

.info-icon-wrapper {
    margin-left: 8px;
    cursor: pointer;
}

.info-icon {
    font-size: 16px;
    color: #555;
}

.info-icon:hover {
    color: #000;
}

.dos-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: none;
    z-index: 999;
}

.dos-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    width: 520px;
    max-width: 95%;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    display: none;
    z-index: 1000;
    max-height: 90vh;
    flex-direction: column;
}

.dos-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid #e5e5e5;
}

.dos-modal-header h3 {
    margin: 0;
    font-size: 18px;
}

.dos-modal-close {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
}

.dos-modal-body {
    padding: 16px 18px;
    overflow-y: auto;
    max-height: calc(90vh - 60px);
    -webkit-overflow-scrolling: touch;
}

.dos-modal-section {
    margin-bottom: 16px;
}

.dos-modal-section-title {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 6px;
}

.dos-modal-content {
    line-height: 20px;
}

/* Container for the tags */
[data-role="severityTagList"] {
    display: flex;
    flex-direction: column; /* Stacks tags vertically */
    gap: 8px; /* Adds space between stacked tags */
}

/* The "Selected options" title */
.severity-list-title {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 5px;
    color: #3154c5;
    margin-top: 10px;
}

/* Individual Tag Styling */
.im-tag.vertical-tag {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: #ffffff;
    border-radius: 4px;
    color: #000000;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #cfcfcf;
}

.tag-left-side {
    display: flex;
    align-items: center;
}

/* The Checkmark Icon */
.tag-check-icon {
    color: #48bb78; /* Green color */
    margin-right: 10px;
    font-weight: bold;
    font-size: 16px;
}

/* Replicates the 'checked' checkbox style without the input element */
.tag-tick-icon {
    display: inline-block;
    width: 18px; /* Standard size to match your other checkboxes */
    height: 18px;
    background: #fff url(../images/icons/check-green.svg) center center no-repeat;
    background-size: 15px 15px;
    margin-right: 8px; /* Space between tick and text */
    flex-shrink: 0;
    vertical-align: middle;
}

.tag-text {
    font-size: 14px;
    line-height: 1.2;
}

.im-tag .icomoon-close {
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    color: #000000;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -5px;
}

@media (max-width: 600px) {
    .dos-modal {
        width: 95%;
        max-height: 95vh;
        border-radius: 6px;
    }

    .dos-modal-header h3 {
        font-size: 16px;
    }

    .dos-modal-section-title {
        font-size: 14px;
    }

    .dos-modal-body {
        max-height: calc(95vh - 56px);
        padding: 14px 14px;
    }
}

/* SICK LEAVE INPUTS */
/* Container for the whole sick leave block */
#sickLeaveDetails {
    margin-left: 40px;
    margin-bottom: 40px;
}

#sickLeaveDetails h3 {
    font-size: 16px;
    display: inline-block;
    margin-bottom: 10px;
}

/* List wrapper */
[data-role="sickDaysList"] {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Single row card */
.sick-leave-entry {
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 8px;
}

/* Input styling */
.sick-leave-entry .im-input {
    padding: 10px 12px;
    font-size: 14px;
    border-radius: 6px;
    border: 1px solid #d6dbe3;
    background: #ffffff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.sick-leave-entry .im-input:focus {
    outline: none;
    border-color: #2f9d58;
    box-shadow: 0 0 0 2px rgba(47, 157, 88, 0.15);
}

/* Remove icon */
.sick-leave-entry .icomoon-close {
    font-size: 15px;
    color: #000000;
    cursor: pointer;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, color 0.15s ease;
}

.sick-leave-entry .icomoon-close:hover {
    background: #b32328;
    color: #ffffff;
}

/* Add person button wrapper */
#sickLeaveDetails .mt-10 {
    margin-top: 12px;
}

/* Add person button */
#sickLeaveDetails .im-button.secondary.small {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 8px;
    background: none;
    color: #2f9d58;
    border: none;
    font-weight: 600;
    font-size: 14px;
}

/* Plus icon inside button */
#sickLeaveDetails .im-button.secondary.small .icomoon-plus {
    font-size: 14px;
}

/* Label for Person 1, Person 2, etc. */
.sick-leave-entry .person-label {
    font-weight: 600;
    font-size: 14px;
    color: #4a4a4a;
}

/* Shorter input style */
.sick-leave-entry .im-input.short-input {
    width: 100px; /* Adjust this width as needed */
    text-align: center;
    padding: 8px;
}

/* Ensure the row items are vertically centered */
.sick-leave-entry {
    display: flex;
    align-items: center;
    gap: 15px; /* Space between Label, Input, and Close button */
}

/* Optional: Make the close button look slightly more integrated */
.sick-leave-entry .icomoon-close {
    margin-left: 5px;
}


/* Tooltip */
.lbei-container > .form > .row .tooltip-container {
    margin-left: 10px;
}

.lbei-container > .form > .row .tooltip-container .info-icon:hover {
    width: 24px;
    height: 24px;
    top: -2px;
    left: -6px;
}

.lbei-container > .form > .row .tooltip-container .info-icon {
    position: relative;
    transition: .2s;
    top: 0;
    left: -5px;
    cursor: pointer;
    display: block;
    font-size: 21px;
}

.tooltip-container {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.tooltip-content {
    display: none;
    position: absolute;
    bottom: 38px;
    left: 5px;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 10px;
    border-radius: 5px;
    z-index: 100;
    min-width: 260px;
}

/* Tooltip on hover for desktop */
@media screen and (min-width: 767px) {
    .tooltip-container:hover .tooltip-content {
        display: block;
    }
}

/* For mobile, we show the tooltip on click */
.tooltip-container.active .tooltip-content {
    display: block;
}

.tooltip-content ul {
    padding-left: 0;
    margin: 0;
    list-style-position: inside;
}

.tooltip-content ul li {
    list-style-type: disc;
    padding-left: 20px;
    text-indent: -20px;
    line-height: 20px;
}

.tooltip-content ul li:not(:first-child) {
    margin-top: 10px;
}

/* Tooltip arrow */
.tooltip-content::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

/* Base styles for the close button (hidden by default) */
.tooltip-content .tooltip-close {
    display: none; /* Hidden by default */
    position: absolute;
    top: 5px;
    right: 5px;
    background: none;
    border: none;
    font-size: 30px;
    color: #fff;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

/* Show the close button on mobile devices */
@media screen and (max-width: 767px) {
    .tooltip-content .tooltip-close {
        display: block;
    }
}

/* Adjust the tooltip content when the close button is visible */
@media screen and (max-width: 767px) {
    .tooltip-content {
        padding-top: 30px; /* Add top padding to avoid overlap with close button */
    }
}

@keyframes shake {
    0% {
        transform: translateX(0);
    }
    20% {
        transform: translateX(-5px);
    }
    40% {
        transform: translateX(5px);
    }
    60% {
        transform: translateX(-5px);
    }
    80% {
        transform: translateX(5px);
    }
    100% {
        transform: translateX(0);
    }
}

.shake-animation {
    animation: shake 0.5s ease-in-out;
}

.global-date-filter input {
    border: 1px solid transparent;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03);
    border-radius: 4px;
    padding: 10px;
}

.global-date-filter input::placeholder {
    color: #000;
    opacity: 1;
}

/* FLATPICKR RESET */
.flatpickr-clear {
    border-top: 1px solid #f3f3f3;
    padding: 5px 10px;
    cursor: pointer;
    text-transform: uppercase;
    color: #434343;
    transition: .2s;
}

.flatpickr-clear:hover {
    color: #ff0000;
}

.flatpickr-day.selected, .flatpickr-day.startRange, .flatpickr-day.endRange, .flatpickr-day.selected.inRange, .flatpickr-day.startRange.inRange, .flatpickr-day.endRange.inRange, .flatpickr-day.selected:focus, .flatpickr-day.startRange:focus, .flatpickr-day.endRange:focus, .flatpickr-day.selected:hover, .flatpickr-day.startRange:hover, .flatpickr-day.endRange:hover, .flatpickr-day.selected.prevMonthDay, .flatpickr-day.startRange.prevMonthDay, .flatpickr-day.endRange.prevMonthDay, .flatpickr-day.selected.nextMonthDay, .flatpickr-day.startRange.nextMonthDay, .flatpickr-day.endRange.nextMonthDay {
    background: #8cd036 !important;
    border-color: #8cd036 !important;
}

.flatpickr-day.selected.startRange + .endRange:not(:nth-child(7n+1)), .flatpickr-day.startRange.startRange + .endRange:not(:nth-child(7n+1)), .flatpickr-day.endRange.startRange + .endRange:not(:nth-child(7n+1)) {
    -webkit-box-shadow: -10px 0 0 #8cd036 !important;
    box-shadow: -10px 0 0 #8cd036 !important;
}

.flatpickr-innerContainer {
    margin-bottom: 6px;
}

.flatpickr-quarter {
    width: 50%;
    float: left;
    background: rgb(245, 245, 245);
    cursor: pointer;
    text-transform: uppercase;
    padding: 4px;
    transition: .2s;
}

.flatpickr-quarter:hover {
    background: rgb(218, 218, 218);
}

.hide-on-edit.fade-edit {
    display: none !important;
}

/* Desktop styles */
@media screen and (min-width: 768px) {
    .date-input {
        display: inline-block;
    }

    .date-picker-icon {
        display: none;
    }
}

/* Mobile styles */
@media screen and (max-width: 767px) {
    .date-input {
        display: none;
    }

    .date-picker-icon {
        display: inline-block;
        background: none;
        border: none;
        cursor: pointer;
        font-size: 24px;
        color: #333;
    }

    .flatpickr-calendar {
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
        position: fixed !important;
        margin: 0 !important;
        width: auto !important;
        max-width: 90%;
        z-index: 9999; /* Ensure it's above other elements */
    }

}

@media screen and (max-width: 400px) {
    .main-wrapper > .main-header > .logo {
        display: none;
    }
}

