th.kal {
    border-top: 1px solid black;
    border-bottom: 1px solid black;
}

th.kal:first-child {
    border-left: 1px solid black;
}

th.kal:last-child {
    border-right: 1px solid black;
}

.WE {
    background-color: #FFFF99;
}

.runderrahmen {
    border: 2px solid #999;
    border-radius: 0.5em;
    max-width: 35em;
    padding: 10px;
    text-align: center;
    margin: auto;
}

.kalender {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

col.flex:nth-of-type(1) {
    width: 2%;
}

col.flex:nth-of-type(2) {
    width: 4.5%;
}

col.flex:nth-of-type(3) {
    width: 4%;
}

.divider {
    border-right: 1px solid #ccc;
}

col.first {
    border-left: 1px solid black;
}

col.last {
    border-right: 1px solid black;
}

.block {
    background: #ccc;
    text-align: center;
    cursor: pointer;
    z-index: 10;
    border: 1px solid black;
    white-space: nowrap;
    /* Zeilenumbruch verhindern */
    overflow: hidden;
    /* Überlaufenden Text verstecken */
    text-overflow: ellipsis;
    /* Optional: "..." hinzufügen */
}

.block.start {
    border-radius: 40px 0 0 40px;
    border-right: 0px;
}

.block.stop {
    border-radius: 0 40px 40px 0;
    border-left: 0px;
}

.block.beides {
    border-radius: 40px;
}

.rahmenunten {
    border: 0px;
    border-bottom: 1px solid #ccc;
}

tr:last-child td.rahmenunten {
    border-bottom: 1px solid black;
}

.rechtsstd {
    border-right: 1px solid #ccc;
    vertical-align: top;
}

.rechtsfett {
    border-right: 1px solid #ccc;
    vertical-align: top;
}

@media print {
    col.flex:nth-of-type(1) {
        width: 3%;
    }

    col.flex:nth-of-type(2) {
        width: 6%;
    }

    col.flex:nth-of-type(3) {
        width: 5%;
    }

    .noprint {
        display: none;
    }

    .rechtsfett {
        border-right: 1px solid #000;
        vertical-align: top;
    }
}

/* Overlay */
.overlayContent {
    background: white;
    padding: 20px;
    border-radius: 10px;
    min-width: 300px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

/* einsatzplan: Shift und Employee Overlay*/
.column {
    flex: 1;
}

.list,
.shift {
    border: 1px solid #aaa;
    min-height: 50px;
    padding: 10px;
    border-radius: 6px;
    background: #f9f9f9;
}

.employee {
    padding: 6px 8px;
    margin: 4px 0;
    background: #e0f0ff;
    border-radius: 4px;
    cursor: grab;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.employee span.name {
    pointer-events: none;
}

.employee button {
    margin-left: 8px;
    font-size: 11px;
    cursor: pointer;
}

.shift.highlight {
    border-color: #007bff;
    background: #eef6ff;
}

.shift-title {
    font-weight: bold;
    margin-bottom: 6px;
}

.container {
    display: flex;
    gap: 20px;
    /* Abstand zwischen den Boxen */
    max-width: fit-content;
}

.shift.duplicate {
    background-color: #ffb3b3;
}

/* Anreise und Putzplan */
.bggrau {
    background-color: #aaa;
    padding: 10px;
}

td.anputz {
    border: 0px;
    border-top: 1px solid black;
    border-bottom: 1px solid black;
    padding: 10px;
}

.wrapper {
    width: fit-content;
    margin: 0 auto;
    text-align: left;
}

.liste {
    border-collapse: collapse;
}

.mittig {
    text-align: center;
}

.links {
    text-align: left;
}