﻿/* Tabelle allgemein */
.shift-table {
    width: max-content;
    min-width: 100%;
    border-collapse: collapse;
    font-family: sans-serif;
    font-size: 14px;
}

    .shift-table th,
    .shift-table td {
        height: 32px;
        text-align: center;
        border: 1px solid #ccc;
        padding: 0;
        font-size: 13px;
    }

    /* Fixierte Kopfzeile & erste Spalte */
    .shift-table th {
        background-color: #f0f0f0;
        position: sticky;
        top: 0;
        z-index: 2;
    }

        .shift-table td:first-child,
        .shift-table th:first-child {
            position: sticky;
            left: 0;
            z-index: 3;
            background-color: #ffffff;
            font-weight: bold;
            text-align: left;
            padding-left: 8px;
            white-space: nowrap;
        }

/* Farbliche Status-Darstellung */
.cell-shift {
    background-color: #e0e0e0;
    height:100%;
}

.cell-login {
    background-color: #b2fab4;
    height: 100%;
}

.cell-logout {
    background-color: #ffb2b2;
    height: 100%;
}

.cell-break {
    background-color: #fff3b0;
    height: 100%;
}
.cell-login-range-NoLogout {
    background-color: #f1ba0a;
    height: 100%;
}

.cell-login-range {
    background-color: #c8facc;
    height: 100%;
}

/* Balken + Labels */
.shift-label {
    font-size: 11px;
    background: #444;
    color: white;
    border-radius: 4px;
    padding: 0 4px;
    white-space: nowrap;
}

.shift-bar {
    height: 4px;
    background-color: #444;
    width: 90%;
    border-radius: 2px;
}

/* Hover-Effekt */
.shift-table td:hover {
    outline: 2px solid #888;
    z-index: 4;
}

/* Datum + Pfeile */
.arrow-button {
    background: #eee;
    border: none;
    padding: 6px 10px;
    font-size: 18px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease;
}

    .arrow-button:hover {
        background: #ccc;
    }

.date-input {
    width: 180px;
    max-width: 100%;
}

/* Responsive Optimierung */
@media (max-width: 768px) {
    .shift-table th,
    .shift-table td {
        min-width: 48px;
        font-size: 12px;
    }
}

.legend {
    display: flex;
    gap: 12px;
    font-size: 14px;
    margin-top: 12px;
}

.legend-item {
    padding: 4px 8px;
    border-radius: 4px;
    color: black;
    border: 1px solid #ccc;
}
/* Shift Balken und Labels */

td {
    position: relative;
    padding: 0;
}

.shift-bar {
/*    position: absolute;
    top: 0;
    bottom: 0;*/
    background-color: #e0e0e0;
    z-index: 1;
    height: 100%;
    border-radius: 2px;
}

.shift-label {
    position: absolute;
    top: 0;
    left: 2px;
    font-size: 0.7rem;
    white-space: nowrap;
    z-index: 2;
    background-color: rgba(0, 0, 0, 0.3);
}

.login-block {
    background-color: rgba(0, 128, 0, 0.3);
}

.pause-block {
    background-color: rgba(255, 165, 0, 0.3);
}