body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

h1 {
    text-align: center;
    padding: 20px;
    margin: 0;
}

.table-container {
    overflow-x: auto;
    margin: 0 10px;
    -webkit-overflow-scrolling: touch; /* Verbessert das Scrollen auf Touch-Geräten */
}

table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed; /* Sorgt für gleichmäßige Spaltenbreiten */
}

th, td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
    vertical-align: middle;
    min-width: 50px; /* Setzt eine minimale Breite für jede Zelle */
    height: 50px; /* Stellt sicher, dass die Zellen quadratisch sind */
    white-space: nowrap; /* Verhindert Textumbrüche in den Zellen */
    cursor: pointer; /* Zeigt an, dass die Zelle klickbar ist */
}

.vertikal {
    writing-mode: vertical-lr;
    transform: rotate(180deg);
}

@media (max-width: 768px) {
    .vertikal {
        writing-mode: vertical-lr; /* Behält die senkrechte Ausrichtung bei */
        transform: rotate(180deg); /* Dreht die Schrift, sodass sie richtig herum gelesen wird */
    }

    th, td {
        font-size: 14px; /* Kleinere Schriftgröße für bessere Lesbarkeit */
    }
}

.none { background-color: #FFFFFF; /* Weiß */ }
.yes { background-color: #08e608; /* Helles Grün */ }
.no { background-color: #b10721; /* Helles Rot */ }
.from_12 { background-color: #6A5ACD; /* Dunkleres Blau */ }
.from_125 { background-color: #F0E68C; /* Khaki */ }
.from_13 { background-color: #a80fd6; /* Helles Grün, leicht unterschiedlich zu 'yes' */ }
.from_135 { background-color: #cf9187; /* Tomatenrot */ }
.from_14 { background-color: #20B2AA; /* Meergrün */ }
.from_145 { background-color: #FFD700; /* Gold */ }
.from_15 { background-color: #87CEEB; /* Himmelblau */ }

.wochenstart { border-left: 3px solid black; }

.legend {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin: 10px;
}

.legend-item {
    display: flex;
    align-items: center;
    margin-right: 20px;
}

.legend-color {
    width: 20px;
    height: 20px;
    margin-right: 5px;
}

.login-container {
    width: 80%; /* Nutzt die volle Breite bei kleinen Bildschirmen */
    max-width: 400px; /* Begrenzt die Breite auf 400px auf größeren Bildschirmen */
    padding: 40px; /* Setzt einen großzügigen Innenabstand */
    margin: 100px auto; /* Zentriert den Container vertikal und horizontal */
    border: 1px solid #ccc; /* Fügt einen subtilen Rahmen hinzu */
    border-radius: 8px; /* Abgerundete Ecken */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Schatten für Tiefe */
    background: #fff; /* Weißer Hintergrund */
    display: flex;
    flex-direction: column;
    align-items: center; /* Zentriert die Inhalte vertikal */
}

.login-form {
    width: 100%; /* Nutzt die volle Breite des Containers */
    display: flex;
    flex-direction: column;
}

.login-form label {
    margin-bottom: 5px; /* Abstand unter den Labels */
    font-weight: bold; /* Macht Text fett */
}

.login-form input {
    padding: 8px;
    margin-bottom: 10px; /* Abstand zwischen den Formularelementen */
    border: 1px solid #ddd; /* Leichter Rahmen um die Eingabefelder */
    border-radius: 4px; /* Leicht abgerundete Ecken für Eingabefelder */
}

.login-form button {
    padding: 10px;
    background-color: #007BFF; /* Blaue Farbe für den Button */
    color: white;
    font-weight: bold; /* Macht den Text fett */
    border: none; /* Kein Rahmen um den Button */
    border-radius: 4px; /* Abgerundete Ecken */
    cursor: pointer; /* Cursor ändert sich zur Hand, wenn darüber gehovered wird */
    transition: background-color 0.3s ease; /* Weicher Übergang für Hover-Effekt */
}

.login-form button:hover {
    background-color: #0056b3; /* Dunkleres Blau für Hover-Effekt */
}

.error {
    color: #f44336; /* Rote Farbe für Fehlermeldungen */
    margin-bottom: 15px; /* Abstand unter der Fehlermeldung */
}


.dashboard-container {
    text-align: center;
    margin-top: 50px;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.dashboard-buttons button {
    margin: 3px;
    padding: 8px 15px;
    background-color: #007BFF;
    color: white;
    margin-top: 10px;
    border-radius: 5px;
    cursor: pointer;
    width: 100px; /* Gleichmäßige Breite für alle Buttons */
    transition: background-color 0.3s ease;
    font-size: 12px; /* Angepasste Schriftgröße für bessere Lesbarkeit und Aussehen */
}

.dashboard-buttons button:hover {
    background-color: #0056b3;
}

.logout-button {
    margin: 3px;
    padding: 8px 15px;
    background-color: #f44336;
    color: white;
    margin-top: 10px;
    border-radius: 5px;
    cursor: pointer;
    width: 80px; /* Gleichmäßige Breite für alle Buttons */
    transition: background-color 0.3s ease;
    font-size: 12px; /* Angepasste Schriftgröße für bessere Lesbarkeit und Aussehen */
}

.logout-button:hover {
    background-color: #c62828;
}

.dashboard-container .dashboard-buttons .logout-button {
    margin: 3px;
    padding: 8px 15px;
    background-color: #f44336;
    color: white;
    margin-top: 10px;
    border-radius: 5px;
    cursor: pointer;
    width: 80px; /* Gleichmäßige Breite für alle Buttons */
    transition: background-color 0.3s ease;
    font-size: 12px; /* Angepasste Schriftgröße für bessere Lesbarkeit und Aussehen */
}

.dashboard-container .dashboard-buttons .logout-button:hover {
    background-color: #c62828;
}

.object-container {
    /* max-width: 1000px; */
    width: 100%;
    overflow-x: auto;
    margin: 20px auto;
    padding: 10px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

table {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto; /* Automatische Breitenanpassung basierend auf dem Inhalt */
}

table a {
    /* Setzt die Linkfarbe */
    text-decoration: none; /* Entfernt die Unterstreichung */
}

table a:hover {
    text-decoration: none; /* Fügt Unterstreichung beim Überfahren mit der Maus hinzu */
}


th, td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
    white-space: normal;
    max-width: 200px; /* oder ein anderer geeigneter Wert */
    overflow: hidden; /* Verhindert das Überlaufen von Text */
    text-overflow: ellipsis; /* Zeigt '...' am Ende der Zelle, wenn der Text zu lang ist */
}

th {
    background-color: #f4f4f4;
    min-width: 120px; /* Minimale Breite für Überschriften */
    max-width: 200px; /* Maximale Breite für Überschriften */
}

td {
    min-width: 100px; /* Minimale Breite für Zellinhalte */
    max-width: 180px; /* Maximale Breite für Zellinhalte */
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

tr:hover {
    background-color: #f1f1f1;
}

.bodyobjectdetails {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center; /* Zentriert den Inhalt horizontal */
    align-items: center; /* Zentriert den Inhalt vertikal */
    min-height: 80vh; /* Stellt sicher, dass der Container die gesamte Bildschirmhöhe einnimmt */
    background-color: #f4f4f4;
}






.fc-event .event-info{
    display: flex;
    flex-direction: column;
    /* justify-items: start; */
    align-items: flex-start;
    padding-left: 0.5rem;
    text-wrap: wrap;
}


.details-container {
    text-align: center;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 600px; /* Begrenzt die maximale Breite des Containers */
}
.calendardetails {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center; /* Zentriert den Inhalt horizontal */
    /* align-items: center; /* Zentriert den Inhalt vertikal */
    min-height: 90vh; /* Stellt sicher, dass der Container die gesamte Bildschirmhöhe einnimmt */
    background-color: #f4f4f4;
}

.calendar-container {
    text-align: center;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 100%;
    overflow: auto;
    /*max-width: 1000px; /* Begrenzt die maximale Breite des Containers */
}
.logo {
    width: 250px; /* Setzt eine kleinere Breite für das Logo */
    height: auto; /* Behält das Seitenverhältnis bei */
    margin-bottom: 20px; /* Abstand unter dem Logo */
}
.welcome-section h1 {
    text-align: center;
    padding: 20px;
    margin: 0;
}

.subheading {
    text-align: center;
    font-size: 0.9em; /* Kleiner als die normale Textgröße */
}

.upcoming-features {
    margin-top: 20px;
    text-align: center;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.upcoming-features h2 {
    color: #007BFF; /* Blaue Überschriften für die Abschnittstitel */
}

.upcoming-features p {
    font-size: 0.8em; /* Etwas kleinerer Text für die Erklärungen */
}

h3 {
    font-size: 24px; /* Stellt die Schriftgröße ein */
    color: #333; /* Dunkelgraue Schriftfarbe */
    text-align: center; /* Zentriert die Überschrift */
    padding: 10px 0; /* Fügt oben und unten einen Abstand hinzu */
    margin: 0; /* Entfernt den Standardaußenabstand */
}

.subheading p {
    font-size: 18px; /* Stellt eine passende Schriftgröße für die Unterüberschrift ein */
    text-align: center; /* Zentriert den Text */
    color: #666; /* Leichteres Grau für die Unterüberschrift */
}

.status-open {
    background-color: #98FB98; /* Hellgrün */
    color: black;
}

.status-assigned {
    background-color: #87CEEB; /* Himmelblau */
    color: black;
}

.status-being-cleaned {
    background-color: #FFFF00; /* Gelb */
    color: black;
}

.status-finished {
    background-color: #D3D3D3; /* Grau */
    color: black;
}

.status-invoiced {
    background-color: #FFA500; /* Orange */
    color: black;
}

.status-occupied {
    background-color: #B22222; /* Dunkelrot */
    color: black;
}


/* Arslan Changes in CSS */

.bg-boxdark-2 .table-container {
    background-color: #2b2828;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.bg-boxdark-2 .table-container tr:nth-child(even), .bg-boxdark-2 .table-container th {
    background-color: #555252;
}

.bg-boxdark-2 .table-container tr:hover {
    background-color: #3c3a3a;
}

.bg-boxdark-2 .table-container td {
    color: #fcfbfb;rgb(253, 253, 253);
}
.bg-boxdark-2 .table-container td.yes,
.bg-boxdark-2 .table-container td.from_145,
.bg-boxdark-2 .table-container td.from_125,
.bg-boxdark-2 .table-container td.from_13 {
    color: #000000 !important;
}

.table-container {
    overflow-x: auto;
    margin: 0 10px;
    -webkit-overflow-scrolling: touch; /* Verbessert das Scrollen auf Touch-Geräten */
}
@media (max-width: 1439px) {
    #timeline tr td:nth-child(n+2), #timeline tr th:nth-child(n+2) {
        min-width: 3.5rem !important;
        width: 6rem !important;
        max-width: 6rem !important;
    }
    #timeline tr th:nth-child(n+2) {
        padding-left: 0.6rem !important;
        padding-right: 0.6rem !important;
    }
}

/* #timeline th:first-child {
    position: sticky;
    background-color: inherit;
    left: 0;
} */
/* #timeline td:first-child {
    position: sticky;
    background-color:inherit;
    left: 0;
} */
/* Add the following styles for slim and gray scroll */

.table-container::-webkit-scrollbar, .object-container::-webkit-scrollbar {
    width: 8px; /* Set the width of the scrollbar */
}

.table-container::-webkit-scrollbar-track, .object-container::-webkit-scrollbar-track {
    background-color: #f1f1f1; /* Set the background color of the scrollbar track */
}

.table-container::-webkit-scrollbar-thumb, .object-container::-webkit-scrollbar-thumb {
    background-color: #888; /* Set the color of the scrollbar thumb */
    border-radius: 4px; /* Add rounded corners to the scrollbar thumb */
}

.table-container::-webkit-scrollbar-thumb:hover, .object-container::-webkit-scrollbar-thumb:hover {
    background-color: #555; /* Set the color of the scrollbar thumb on hover */
}
.object-table-wrapper {
    width: 100%;
    overflow: auto;
    margin: 0 0px;
    -webkit-overflow-scrolling: touch; /* Verbessert das Scrollen auf Touch-Geräten */
}

@media (max-width: 975px) {
    /* Your CSS code for screen width less than 700px goes here */
    .object-table-wrapper {
        width: 100%;
        overflow: auto;
        margin: 0 0px;
        -webkit-overflow-scrolling: touch; /* Verbessert das Scrollen auf Touch-Geräten */
    }

    .object-container {
        /* max-width: 1000px; */
        width: 100vw;
        overflow-x: auto;
        margin: 20px auto;
        padding: 10px;
        background-color: #fff;
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }

    .fc-event .event-info {
        display: flex;
        flex-direction: column;
        /* justify-items: start; */
        align-items: flex-start;
        padding-left: 0.2rem;
        font-size: 0.5rem;
        text-wrap: wrap;

    }
}

.planner-table tbody tr td:nth-child(2) {
    min-width: 6rem;
    width: 6rem;
    max-width: 6rem;
    padding-left: 0.6rem;
    padding-right: 0.6rem;
}

.planner-table thead tr th:nth-child(2) {
    min-width: 9rem;
    width: 9rem;
    max-width: 9rem;
    padding-left: 0.6rem;
    padding-right: 0.6rem;
}

.planner-table th {
    min-width: 100px;
}

.planner-table .duplicate-obj {
    background-color: #FF6766 !important;
    color: #EFF4FB !important;
}

/* Definiere eine benutzerdefinierte Klasse für die Puderblau Farbe */
.bg-powder-blue {
    background-color: rgb(176, 224, 230);
  }
  
  /* Optional: Für dunklen Modus eine dunklere Variante */
  .dark-bg-powder-blue {
    background-color: rgb(150, 190, 195);
  }

[x-cloak] {
    display: none !important;
}

.text-danger {
    color: #dc3545;
}

.xdsoft_calendar table {
    width: 100%;
    table-layout: fixed;
}

@media (max-width: 768px) {

    .legend-item {
        display: flex;
        align-items: center;
        margin-right: 20px;
        font-size: 0.5rem;
    }

    .legend-color {
        width: 0.3rem;
        height: 0.3rem;
        margin-right: 5px;
    }


    .fc .fc-button {
        border: 1px solid transparent;
        border-radius: 0.25em;
        display: inline-block;
        font-size: 0.5em;
        font-weight: 100;
        line-height: 1.5;
        padding: 0.6em 1em;
        text-align: center;
        user-select: none;
        vertical-align: middle;
    }

    .fc .fc-toolbar-title {
        font-size: 0.75em;
        font-weight: 600;
        margin: 0px;
    }
}