/* Team-Urlaubsübersicht (/urlaubstage/uebersicht) — Urlaubsplaner-Matrix.
   Global statt scoped CSS: das Scoped-CSS-Bundle wird in dieser App nicht geladen
   (App.razor verlinkt PSITeamsApp.styles.css, das Bundle heißt PSITeamsAppKata.styles.css).
   Farbklassen production-day-* kommen aus prodCal.css; diese Datei ergänzt Layout + Matrix-Zustände. */

/* Scroll-Container: horizontal für Tage, vertikal mit fixierter Kopfzeile */
.matrix-wrapper {
    overflow: auto;
    max-height: 75vh;
}

/* Sticky benötigt sichtbare Ränder beim Scrollen -> keine collapsed borders */
.urlaub-matrix {
    border-collapse: separate;
    border-spacing: 0;
    width: max-content;
    min-width: 100%;
}

/* Dünne vertikale und horizontale Gitterlinien */
.urlaub-matrix th,
.urlaub-matrix td {
    border-bottom: 1px solid #e5e7eb;
    border-right: 1px solid #e5e7eb;
    white-space: nowrap;
}

/* Kopfzeile vertikal fixiert */
.urlaub-matrix thead th {
    position: sticky;
    top: 0;
    z-index: 3;
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    color: white;
    text-align: center;
    font-size: 0.7rem;
    font-weight: 600;
}

/* Fixierte linke Spalten: Name (180px) + 5 Zahlenspalten (je 52px).
   Bootstrap-Zellen sind transparent -> explizite Hintergründe nötig,
   sonst scheinen die Tageszellen beim Scrollen durch. */
.urlaub-matrix .sticky-col {
    position: sticky;
    z-index: 2;
    background-color: #ffffff;
}

.urlaub-matrix thead .sticky-col {
    z-index: 4;
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
}

.urlaub-matrix .col-name {
    left: 0;
    width: 180px;
    min-width: 180px;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
    text-align: left;
    padding-left: 8px;
}

.urlaub-matrix .col-num {
    width: 52px;
    min-width: 52px;
    max-width: 52px;
    text-align: center;
    font-size: 0.75rem;
}

.urlaub-matrix .num-1 { left: 180px; }
.urlaub-matrix .num-2 { left: 232px; }
.urlaub-matrix .num-3 { left: 284px; }
.urlaub-matrix .num-4 { left: 336px; }

/* Dickere Trennlinie zwischen "Verbl." und der ersten Tagesspalte */
.urlaub-matrix .num-5 { left: 388px; border-right: 3px solid #6b7280; }

/* Tageszellen: kleine Quadrate */
.urlaub-matrix td.matrix-cell {
    width: 28px;
    min-width: 28px;
    max-width: 28px;
    height: 26px;
    padding: 0;
    text-align: center;
    vertical-align: middle;
}

/* prodCal-Hover (translateY/box-shadow) auf Mini-Zellen neutralisieren */
.urlaub-matrix td.matrix-cell:hover {
    transform: none;
    box-shadow: none;
}

.urlaub-matrix th.matrix-day-header {
    width: 28px;
    min-width: 28px;
    max-width: 28px;
    padding: 2px 0;
}

.matrix-day-header .matrix-day-name {
    display: block;
    font-size: 0.6rem;
    opacity: 0.8;
}

.matrix-day-header .matrix-day-number {
    display: block;
    font-size: 0.75rem;
}

/* Genommen lt. Stundenzettel ohne Freedays-Antrag (violett) */
.matrix-taken-noplan {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.matrix-taken-marker {
    color: #ffffff;
    font-size: 0.85rem;
    line-height: 1;
}

/* Heute-Spalte: inset statt Border, damit die 28px-Zellen nicht springen */
.urlaub-matrix .matrix-col-today {
    box-shadow: inset 0 0 0 2px #fbbf24;
}

.urlaub-matrix th.matrix-col-today {
    font-weight: 700;
}

/* Legende */
.matrix-legend {
    font-size: 0.85rem;
}

.matrix-legend .matrix-marker-demo {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
