.shift-overview-table {
    width: max-content;
    min-width: 100%;
    font-family: "Segoe UI", "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
    font-size: 14px;
    gap: 0;
}

.shift-overview-table .jans-table-header,
.shift-overview-table .jans-table-row {
    gap: 0;
}

.shift-overview-table .jans-table-cell {
    height: 32px;
    text-align: center;
    border: 1px solid #ccc;
    padding: 0;
    font-size: 13px;
    border-radius: 0;
}

.shift-overview-table .jans-table-header .jans-table-cell {
    background-color: #f0f0f0;
    position: sticky;
    top: 0;
    z-index: 2;
    border-radius: 0;
}

.shift-overview-table .jans-table-cell.shift-employee-col {
    position: sticky;
    left: 0;
    z-index: 3;
    background-color: #ffffff;
    font-weight: bold;
    text-align: left;
    padding-left: 8px;
    line-height: 32px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.shift-overview-table .jans-table-header .jans-table-cell.shift-employee-col {
    z-index: 4;
    background-color: #ffffff;
}

.shift-overview-table .jans-table-header .jans-table-cell:first-child,
.shift-overview-table .jans-table-row .jans-table-cell:first-child {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.shift-overview-table .jans-table-header .jans-table-cell:last-child,
.shift-overview-table .jans-table-row .jans-table-cell:last-child {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.cell-shift {
    background-color: #e0e0e0;
}

.cell-login {
    background-color: #b2fab4;
}

.cell-logout {
    background-color: #ffb2b2;
}

.cell-break {
    background-color: #fff3b0;
}

.cell-login-range {
    background-color: #c8facc;
}

.shift-label {
    font-size: 11px;
    background: #444;
    color: white;
    border-radius: 4px;
    padding: 0 4px;
    white-space: nowrap;
    font-family: "Segoe UI", "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
}

.shift-bar {
    height: 4px;
    background-color: #444;
    margin: 0 auto;
    width: 90%;
    border-radius: 2px;
}

.shift-cell {
    position: relative;
}

.shift-cell-body {
    position: relative;
    width: max-content;
    min-width: 100%;
}

.shift-top-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    pointer-events: none;
}

.shift-bar-top {
    margin: 0;
    width: 100%;
    border-radius: 0;
}

.shift-label-top {
    white-space: nowrap;
    width: max-content;
}

.shift-overview-table .jans-table-row .jans-table-cell:hover {
    outline: 2px solid #888;
    z-index: 4;
}

@media (max-width: 768px) {
    .shift-overview-table .jans-table-cell {
        min-width: 48px;
        font-size: 12px;
    }
}
