:root {
    --ondis-color-blue: #213047;
    --ondis-color-darkgrey: #d2d2d2;
    --ondis-color-red: #951d12;
    --ondis-color-holiday: #edbb2f;
    --ondis-color-absence: #8fdf82;
}

#sidenavigation {
    height: 100%;
    /* width: 75px; */
    width: 200px;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    background-color: var(--ondis-color-blue);
    overflow-x: hidden;
    transition: 0.5s;
    color: #ffffff;
}

#sidenavigation .row {
    cursor: pointer;
}

#sidenavigation a .link-text, #sidenavigation #sidebar-collapse {
    display: none;
    margin-left: 10px;
}

#sidenavigation.expanded a .link-text {
    display: inline-block;
}

#top-bar {
    
}

#top-bar .name {
    font-size: 18px;
}

#top-bar .org {
    font-size: 12px;
}

#top-bar .navbar-brand {
    line-height: 1;
}

#mainwindow {
    position: relative;
    /* margin-left: 75px; */
    margin-left: 200px;
    transition: margin-left .5s;
}

#toast-message-container {
    display: none;
    position: fixed;
    bottom: 3%;
    right: 3%;
    width: 20%;
    height: 10%;
    z-index: 9998;
    background-color: white;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
    border: 1px solid var(--ondis-color-darkgrey);
    border-radius: 5px;
    text-align: center;
    padding-top: 20px;
}

#toast-message-container .toast-border {
    position: absolute;
    top: 0;
    left: 0;
    border-top: 2px solid var(--ondis-color-blue);
}

#toast-message-container .message-success::before {
    content: '\2714'; /* Unicode for checkmark */
    font-family: Arial, Helvetica, sans-serif; /* Damit color funktioniert */
    /* position: absolute;
    left: 20px; */
    color: green;
    font-size: 20px;
    margin-right: 30px;
}

#toast-message-container .message-error::before  {
    content: '\2716'; /* Unicode for X */
    font-family: Arial, Helvetica, sans-serif; /* Damit color funktioniert */
    /* position: absolute;
    left: 20px; */
    color: red;
    font-size: 20px;
    margin-right: 30px;
}

#page-loader {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
}

.loader {
    border: 16px solid #f3f3f3; /* Light grey */
    border-top: 16px solid rgba(170,11,11,0.84);
    border-radius: 50%;
    width: 120px;
    height: 120px;
    animation: spin 2s linear infinite;
  }

.ondis-color-blue {
    color: var(--ondis-color-blue);
}

.ondis-modal {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    overflow: auto;
    background-color: rgba(0,0,0,0.4)
}

.ondis-modal-content {
    position: relative;
    top: 20%;
    background-color: #fefefe;
    margin: auto;
    padding: 0;
    border: 1px solid var(--ondis-color-darkgrey);
    width: 40%;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
    -webkit-animation-name: animatetop;
    -webkit-animation-duration: 0.4s;
    animation-name: animatetop;
    animation-duration: 0.4s;
    border-radius: 10px;
}

.ondis-modal-content .modal-header {
    font-weight: bold;
}


input {
    border-radius: 5px;
}

input:focus {
    outline-color: var(--ondis-color-blue);
}

.ondis-btn {
    border: none;
    border-radius: 5px;
    background-color: var(--ondis-color-blue);
    color: white;
    padding: 10px 20px 10px 20px;
}

.ondis-btn-sm {
    border: none;
    border-radius: 5px;
    background-color: var(--ondis-color-blue);
    color: white;
    padding: 5px 10px 5px 10px;
    font-size: smaller;
}

.ondis-select {
    /* appearance: none; */
    position: relative;
    padding: 3px;
    border-radius: 5px;
}

.ondis-select::after {
    content: ">";
    position: absolute;
    right: 0;
}

.bg-ondis-red {
    background-color: var(--ondis-color-red);
}

.ondis-box {
    background-color: #f3f3f3;
    border-radius: 10px;
    /* box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19); */
    padding: 20px;
}

.ondis-box .title {
    margin: 0 0 10px 0;
    color: var(--ondis-color-blue);
    font-size: larger;
    font-weight: bold;
}

.ondis-box hr {
    border: 0;
    height: 1px;
    background-color: var(--ondis-color-blue); /* Farbe des Trennstrichs */
    margin: 0 0 10px 0; /* Abstand unten vom Trennstrich */
}

.ondis-box .content {

}

#calendar {
    max-height: 80vh;
}

#month-grid .header {
    font-size: larger;
    font-weight: bolder;
    color: var(--ondis-color-blue);
}

#month-grid .gridrow {
    position: relative;
    height: 4vh;
}

#month-grid .column {
    display: inline-block;
    vertical-align: top;
    position: relative;
    word-wrap: break-word;
    width: calc(100%/7 - (20px * 6 / 7));
    border-bottom: 1px solid var(--ondis-color-darkgrey);
    height: 100%;
}

#month-grid .column:not(:last-child) {
    margin-right: 20px;
}

#month-grid .column.day {
    font-size: smaller;
}

#month-grid .column .daynumber {
    position: absolute;
    bottom: 0;
    left: 0;
    line-height: 1.2;
}

#month-grid .column .values {
    position: absolute;
    bottom: 0;
    right: 0;
    line-height: 1.2;
}

#month-grid .column .daynumber.total, #month-grid .column .values.total {
    font-weight: bolder;
}

.details {
    display: none;
    color: var(--ondis-color-blue);
    /* opacity: 0;
    transition: opacity 0.5s ease; */
}

#month-grid.showdetails .details {
    display: inline;
    /* opacity: 1;
    transition: opacity 0.5s ease; */
}

#absence-request-list .row, #pending-request-list .row {
    margin-top: 15px;
}

#absence-planner.fc .fc-daygrid-body-natural .fc-daygrid-day-events {
    margin-bottom: 0;
}

#absence-planner.fc .fc-daygrid-body-unbalanced .fc-daygrid-day-events {
    min-height: 1em;
}

#absence-planner.fc table {
    font-size: 0.8em;
}

.holiday {
    color: var(--ondis-color-holiday);
}

.absence {
    color: var(--ondis-color-absence);
}

.userlist-team, .userlist-user, .seperated-row {
    padding-top: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--ondis-color-darkgrey);
}

.userlist-team:hover, .userlist-user:hover, .seperated-row:hover {
    background-color: var(--ondis-color-darkgrey);
}

.userlist-team button, .userlist-user button {

}

.userlist-team {
    font-weight: bold;
}

.userlist-user.pad {
    padding-left: 20px;
}

label.top {
    display: block;
}

.ondis-form .ondis-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.ondis-form .ondis-row label {
    flex-grow: 0;
    margin-right: 20px;
}

.ondis-form .ondis-row input, .ondis-form .ondis-row textarea {
    flex-grow: 1;
    max-width: 70%;
}

.plan-hours-widget .plan-hours-header, .plan-hours-widget .plan-hours-body {
    width: 100%;
}

.plan-hours-widget {
    border: 1px solid var(--ondis-color-blue);
    border-radius: 5px;
}

.plan-hours-widget .plan-hours-header {
    background-color: var(--ondis-color-blue);
    color: white;
    padding: 10px;
    font-size: smaller;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

.plan-hours-widget .plan-hours-body {
    padding: 10px;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}

.plan-hours-widget .plan-hours-header *, .plan-hours-widget .plan-hours-body * {
    width: 11%;
    margin: 0;
    display: inline-block;
    border: 0;
}

.plan-hours-widget input:focus {
    outline: none;
}

.plan-tab-expandable {
    width: 100%;
    background-color: var(--ondis-color-darkgrey);
}

.plan-tab-expandable form {
    display: none;
}

.plan-tab-expandable.expanded form {
    display: block;
}

/* Start Checkbox */
input[type="checkbox"]:checked+.toggler-slider .toggler-knob {
    left: calc(100% - 19px - 3px);
}

.toggler-knob {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    left: 0;
    top: 0;
    background-color: #fff;
    -webkit-box-shadow: 0 2px 6px rgba(153, 153, 153, 0.75);
    box-shadow: 0 2px 6px rgba(153, 153, 153, 0.75);
}

.ondis-checkbox-wrapper {
    display: block;
    width: 45px;
    height: 25px;
    cursor: pointer;
    position: relative;
}

label input[type="checkbox"] {
    display: none;
}

label input[type="checkbox"]:checked+.toggler-slider {
    background-color: var(--ondis-color-blue);
}

label .toggler-slider {
    background-color: var(--ondis-color-darkgrey);
    position: absolute;
    border-radius: 100px;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -webkit-transition: all 300ms ease;
    transition: all 300ms ease;
}

label .toggler-knob {
    position: absolute;
    -webkit-transition: all 300ms ease;
    transition: all 300ms ease;
}

/* Ende Checkbox */

.fc-timegrid-event-harness:has(.full-overlap) {
    left: 0 !important;
}

.fc-event.hide-date .fc-event-time {
    display: none;
}

#export-dropdown {
    margin-left: 20px;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 100px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 5px;
}

.dropdown-content a {
    color: black;
    padding: 6px 8px;
    text-decoration: none;
    display: block;
    border-radius: 5px;
    font-size: smaller;
}

.dropdown-content a:hover {
    background-color: var(--ondis-color-blue);
    color: white;
}

.request-done {
    opacity: 0.4;
}

#info-popup {
    display: none;
    position: fixed;
    background-color: white;
    border: 1px solid #ddd;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    font-size: smaller;
    z-index: 1000;
}

.form-overlay {
    display: none;
    position: absolute;
    width: 100%;
    height: 100%;
}

.overlay-text, .overlay-loading {
    display: none;
}

.form-overlay.done, .form-overlay.loading {
    background-color: rgba(255,255,255,0.8);
    display: block;
}




.form-overlay.done > .overlay-text, .form-overlay.loading > .overlay-loading {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    font-size: 2em;
}

.overlay-loading {
    width: 5em;
    height: 5em;
    border: 16px solid grey;
    border-top: 16px solid black;
    border-radius: 50%;
    animation: spin 2s linear infinite;
    -webkit-animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg) ; }
    100% { transform: translate(-50%, -50%) rotate(360deg) ; }
}

@-webkit-keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg) ; }
    100% { transform: translate(-50%, -50%) rotate(360deg) ; }
}

form {
    position: relative;
}

/* .holiday {
    position: relative;
    color: red;
} */

.holiday-info {
    position: absolute;
    display: none;
    bottom: 100%;
    left: 20px;
    padding: 10px;
    border: 1px solid black;
    background-color: lightgrey;
    color: black;
    font-weight: normal;
    z-index: 1;
}

.holiday-info::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: black transparent transparent transparent;
}

.holiday:hover .holiday-info {
    display: block;
}

.positive {
    color: green;
}

.negative {
    color: var(--ondis-color-red);
}

.error {
    background-color: rgb(255, 52, 52);
    color: white;
    text-align: center;
    padding: 20px 5px 20px 5px;
    border-radius: 5px;
    margin: 10px 0 50px 0;
}
