/* ==========================================================
   GLEISPLAN
   Werkstatt Dashboard Freiburg
   Version 1.0 stabil
========================================================== */


/* ==========================================================
   Container
========================================================== */

#vehicle-container {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 0;
    overflow: hidden;
}


/* ==========================================================
   Tabelle
========================================================== */

#vehicle-container table {
    width: 100%;
    height: auto;
    border-collapse: collapse;
    table-layout: fixed;
}


/* ==========================================================
   Zellen
========================================================== */

#vehicle-container th,
#vehicle-container td {
    border: 1px solid #d0d0d0;
    padding: 4px;
    text-align: center;
    vertical-align: middle;
    overflow: hidden;
}


/* ==========================================================
   Kopfzeile / Tage
========================================================== */

#vehicle-container thead th {
    background: #b71c1c;
    color: #ffffff;
    font-size: 21px;
    font-weight: bold;
    padding: 8px 6px;
}

#vehicle-container thead th:first-child {
    width: 70px;
    background: #f5f5f5;
}


/* ==========================================================
   Erste Spalte / Gleise
========================================================== */

#vehicle-container tbody th {
    width: 60px;
    height: 38px;

    background: #f5f5f5;
    color: #000000;

    font-size: 23px;
    font-weight: bold;
}


/* ==========================================================
   Tagescontainer
========================================================== */

.day-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;

    width: 100%;
    align-content: start;
}

.cols-1 {
    grid-template-columns: 1fr;
}

.cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.cols-3 {
    grid-template-columns: repeat(3, 1fr);
}


/* ==========================================================
   Fahrzeugkarten
========================================================== */

.vehicle-card {
    width: 100%;
    min-width: 0;
    min-height: 34px;

    padding: 4px 8px;

    background: #f5f5f5;
    border: 2px solid #c62828;
    border-radius: 10px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18);

    box-sizing: border-box;
    overflow: hidden;
}

.vehicle-title {
    margin-bottom: 2px;

    font-size: 21px;
    font-weight: bold;
    line-height: 1.1;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vehicle-work {
    font-size: 11.5px;
    font-weight: normal;
    line-height: 1.15;

    max-height: 28px;
    overflow: hidden;
}


/* ==========================================================
   Mehrtägige Fahrzeuge
   Stabiler Modus für Version 1.0:
   Hinweis anzeigen, aber nicht über Tabellenzellen ziehen.
========================================================== */

.vehicle-card.multi-day {
    border-left-width: 5px;
}

.vehicle-range {
    margin-bottom: 1px;

    color: #b71c1c;
    font-size: 10px;
    font-weight: bold;
    line-height: 1.1;
}
