﻿
#body, #modal, #licenseModal {
    background-color: #121212;
    cursor: default;
    color: white;
}

.hamburger {
    color: #FFF;
    font-size: 28px;
}

.small-danger {
    color: #dc3545 !important;
    font-size: 0.6vb;
}

/* ---------------------------------------------------
    SIDEBAR
----------------------------------------------------- */

#sidebar {
    width: 400px;
    position: fixed;
    top: 0;
    left: -400px;
    height: 100vh;
    z-index: 999;
    background: #272727;
    transition: all 0.3s;
    overflow-y: auto;
    border: 1px solid black;
    border-radius: 0px 20px 20px 0px;
    padding: 5px;
}

    #sidebar.active {
        left: 0;
    }

#sidebar-header {
    padding: 15px;
    margin-bottom: 20px;
}

#dismiss {
    width: 35px;
    height: 35px;
    position: absolute;
    top: 10px;
    text-align: center;
    right: 10px;
    cursor: pointer;
    font-size: 28px;
}

#overlay {
    display: none;
    position: fixed;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    z-index: 998;
    opacity: 0;
    transition: all 0.5s ease-in-out;
}

    #overlay.active {
        display: block;
        opacity: 1;
    }

/* ---------------------------------------------------
    MODAL
----------------------------------------------------- */

.modal.active {
    display: block;
    background-color: #121212;
}

.close {
    background-color: #272727;
    border-top-right-radius: 20px;
    border: none;
}

.modal-content {
    background-color: #272727;
    box-shadow: 5px 5px 5px black;
    border-radius: 20px;
}

#selectEmployee::-webkit-calendar-picker-indicator {
    display: none !important;
}

.collapse-item {
    padding: 5px 10px;
    margin-bottom: 5px;
    border-radius: 20px;
}

.collapse-row {
    background-color: #383838;
}

.collapse-date {
    background-color: #4b4b4b;
}

.collapse-time {
    background-color: #606060;
}

/* ---------------------------------------------------
    CONTROLS
----------------------------------------------------- */

.buttons {
    background-color: #009EE0;
    color: black;
    font-weight: 500;
    box-shadow: 5px 5px 10px black;
    border-radius: 10px;
    width: 100%;
    margin: 10px 0;
    font-size: medium;
}

    .buttons:hover {
        background-color: #0383B9;
    }

.labels {
    background-color: #FFF;
    font-weight: 500;
    border-radius: 5px;
    padding: 5px;
    width: 100%;
    margin: 5px 0;
    text-align: center;
}

    .labels:hover {
        background-color: #B2E1F4;
    }

.search-field {
    font-size: 12px;
    color: white;
    opacity: 1;
    padding: 5px 8px;
    display: inline;
    width: 70%;
    margin-right: 5px;
}

    .search-field::placeholder {
        font-size: 12px;
        color: white;
        opacity: 1;
    }

.fa-search:hover{
    cursor: pointer;
}

.context-menu {
    position: absolute;
    top: 0;
    left: 0;
    box-shadow: 3px 3px 3px black;
    background-color: #222831;
    z-index: 2;
}

.context-menu-item {
    font-size: 12px;
    padding: 10px;
}

    .context-menu-item:hover {
        background: #454B54;
    }

#message {
    visibility: hidden;
}

/* ---------------------------------------------------
    SCROLLBARS
----------------------------------------------------- */

::-webkit-scrollbar {
    width: 5px;
    height: 5px;
    background-color: #7B8794;
    border-radius: 20px;
}

::-webkit-scrollbar-thumb {
    border-radius: 20px;
    background-color: #393E46;
}

/* ---------------------------------------------------
    TABLES
----------------------------------------------------- */

.headline {
    background-color: #222831;
    font-size: 20px;
    padding: 10px;
    text-align: center;
}

#emplHeadline, #evHeadline {
    overflow-x: auto;
}

.column-headers {
    background-color: #393E46;
}

.cells {
    color: #121212;
    min-width: 50px;
    max-width: 50px;
}

.ce_striped {
    background-image: repeating-linear-gradient( 45deg, transparent, transparent 5px, rgb(86 21 27 / 25%) 5px, rgb(86 21 27 / 25%) 10px)
}

.we_striped {
    background-image: repeating-linear-gradient( 45deg, transparent, transparent 5px, rgb(1 51 73 / 25%) 5px, rgb(1 51 73 / 25%) 10px)
}

.hiddenCell{
    display: none;
}

.sumday {
    position: absolute;
    top: 0%;
    left: 0%;
    font-size: 10px;
    padding: 0px 2px;
    z-index: 2;
    pointer-events: none;
}

table {
    display: block;
    font-size: 12px;
    background-color: #393E46;
    scrollbar-color: #009EE0 #121212;
    scrollbar-width: thin;
    border-collapse: collapse;
}

#evInfoTable, #emplInfoTable {
    overflow-x: auto;
}

table thead {
    color: white;
    width: 100%;
    border-radius: 15px;
    user-select: none;
}
        table thead th {
            border-bottom: none !important;
            padding: 0 !important;
        }

    table td, table th {
        border-top: 1px solid #222831 !important;
        vertical-align: middle !important;
    }

    table td {
        padding: 6px !important;
        background-clip: padding-box;
    }

    table tr {
        min-height: 50px;
        background-color: #c4e6fd;
    }

    .interval {
        display: flex;
        justify-content: space-between;
        font-size: 80%;
    }

#evCalendarTable td, #evCalendarTable th,
#emplCalendarTable td, #emplCalendarTable th,
#evInfoTable, #emplInfoTable {
    border-right: 1px solid #222831;
    border-width: thin;
}

#evCalendarTable th, #emplCalendarTable th {
    padding: 0 !important;
    min-width: 50px;
    max-width: 50px;
}

#evInfoHead, #evCalendarHead {
    height: 70px;
}

#emplInfoHead, #emplCalendarHead {
    height: 80px;
}

.rowNo {
    padding: 0 !important;
    background-image: repeating-linear-gradient( 45deg, transparent, transparent 5px, rgb(1 51 73 / 20%) 5px, rgb(1 51 73 / 20%) 10px);
    align-items: center;
    text-align: center;
}

.colspan-30 {
    max-width: 30px;
    min-width: 30px;
    width: 30px;
}

.colspan-50 {
    max-width: 50px;
    min-width: 50px;
    width: 50px;
}

.colspan-75 {
    max-width: 75px;
    min-width: 75px;
    width: 75px;
}

.colspan-100 {
    max-width: 100px;
    min-width: 100px;
    width: 100px;
}

.colspan-125 {
    max-width: 125px;
    min-width: 125px;
    width: 125px;
}

.colspan-150 {
    max-width: 150px;
    min-width: 150px;
    width: 150px;
}

.colspan-175 {
    max-width: 175px;
    min-width: 175px;
    width: 175px;
}

.colspan-200 {
    max-width: 200px;
    min-width: 200px;
    width: 200px;
}

.form-control {
    height: 76%;
}

table tbody {
    display: block;
    overflow-y: scroll;
    background-color: #121212;
    scrollbar-width: thin;
    width: 100%;
    overflow-x: hidden;
}

        table tbody tr, table thead tr {
            width: 100%;
        }

        table thead, table tbody tr {
            display: table;
        }

.events {
    height: 40%;
}

.employees {
    height: 60%;
}

#evInfoTable tbody, #evCalendarTable tbody {
    max-height: 21.5vh;
}

#loadData {
    position: fixed;
    top: 3%;
    left: 82%;
    transform: translate(-50%, -50%);
    z-index: 100;
}

#updateTime {
    display: none;
}

.ld-Text {
    margin-left: -8%;
}

.loader-big {
    border: 6px solid #f3f3f3;
    border-top: 6px solid #009EE0;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 2s linear infinite;
}

.loader-small {
    border: 10px solid #f3f3f3;
    border-top: 10px solid #009EE0;
    border-radius: 50%;
    align-content: center;
    margin-left: 45%;
    width: 40px;
    height: 40px;
    animation: spin 2s linear infinite;
}

.scroll-calendar{
    overflow-x: auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ---------------------------------------------------
    BUBBLES
----------------------------------------------------- */

.bubble {
    display: inline-block;
    border: 1px solid black;
    box-shadow: 2px 2px 2px black;
    user-select: none;
    overflow: hidden;
}

.emplbubble, .absence {
    position: absolute;
    height: 20px;
    z-index: 1;
    top: 0;
    bottom: 0;
    margin: auto 0;
    overflow: hidden;
}

.fit-content {
    height: fit-content !important;
}

.absence {
    border: 1px solid black;
    box-shadow: 2px 2px 2px black;
    width: 100%;
    left: 0%;    
}

.bubble:hover, .absence:hover{
    opacity: 0.8;
}

.green {
    /*background-color: #00897B; */
    background-color: seagreen;
}

.red {
    /*background-color: #C62828; */
    background-color: red;
}

.orange {
    /* background-color: #FF6F00; */
    background-color: darkorange;
}

.ctrlblue {
    background-color: rgb(0, 110, 177) !important;
}

.shiftblue {
    background: linear-gradient(0deg, rgb(0, 112, 177) 0%, rgb(0, 112, 177) 100%) !important;
    color: black !important;
    border: solid 1px black !important;
}

.clickblue {
    background: linear-gradient(0deg, rgb(0, 114, 177) 0%, rgb(0, 114, 177) 100%) !important;
    color: black !important;
    border: solid 1px black !important;
}

.overlapgreen {
    background: linear-gradient(0deg, rgb(144, 238, 144) 0%, rgb(144, 238, 144) 100%) !important;
    color: black !important;
    border: solid 1px black !important;
}

.highlightyellow {
    background-color: rgb(255, 240, 71) !important;
}

.transparent {
    color: transparent !important;
}

.preview, .preview2 {
    position: absolute;
    opacity: 0.3;
    pointer-events: none;
}

.ev-preview, .empl-preview {
    opacity: 0.3;
    pointer-events: none;
}

.placeholder {
    position: absolute;
    left: 0;
}

.grab{
  cursor: grab;
}

.notallowed {
    cursor:not-allowed;
}

.grabbing{
  cursor: grabbing;
}

.dragging {
    opacity: 0.3 !important;
}

/* all bubbles */
.bubble {
  width: 25%;
}
/* one bubble */
.bubble:first-child:nth-last-child(1) {
  width: 100%;
}
/* two bubbles */
.bubble:first-child:nth-last-child(2),
.bubble:first-child:nth-last-child(2) ~ .bubble {
  width: 50%;
}
/* three bubbles */
.bubble:first-child:nth-last-child(3),
.bubble:first-child:nth-last-child(3) ~ .bubble {
  width: 33.3333%;
}

.b-legend {
    font-size: 1rem;
    display: inline-block;
    margin-bottom: 0;
}

.b-span {
    display: inline-block;
    margin-bottom: .5rem;
}

#employeeDataLists input::placeholder {
    color: darkgray;
}

#employeeDataLists input {
    color: black;
}

textarea {
    resize: none;
    padding-bottom: 20px !important;
    height: auto !important;
    min-height: 0px;
    overflow: hidden;
}

/* ---------------------------------------------------
   EMPLOYMENT SEGMENTS (Eintritt / Austritt / Gap)
----------------------------------------------------- */
.employment {
    top: 0;
    bottom: 0;
    margin: auto 0;
    line-height: 20px;
    font-weight: 600;
    border-radius: 10px;
    border: 1px solid black;
    box-shadow: 2px 2px 2px black;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    cursor: default;
    z-index: 1;
}

.employment[data-segment="gap"] {
    height: fit-content !important;
    line-height: normal;
    padding: 2px 8px;
}
