body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding-top: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    height: auto;
    max-height: max-content;
}

.site-header {
    position: fixed;
    top: 0;
    height: 80px;
    width: 100%;
    border-bottom: 1px solid #ddd;
    background-color: white;
    transition: background-color 0.3s;
    z-index: 1000;
}

.container {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    justify-content: left;
}

.user-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 90%;
}

.user-block {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: calc(20% - 10px);
    margin: 5px;
    display: flex;
    flex-direction: column; /* Elemente vertikal stapeln */
    align-items: center; /* Elemente horizontal zentrieren */
}

.user-block img {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px; /* Abstand zwischen Bild und Titel */
}

.user-block h3, .user-block p {
    text-align: center; /* Zentriert den Text */
    width: 100%; /* Breite anpassen, um den Text zu zentrieren */
    margin-bottom: 10px; /* Abstand zwischen den Elementen */
}

.user-block button {
    margin: 3px; /* Etwas Abstand zwischen den Schaltflächen */
}

.user-block .button-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Schaltflächen in der Mitte anordnen */
    width: 100%; /* Breite anpassen, um die Schaltflächen zu zentrieren */
}

.main-content {
    display: flex;
    justify-content: center; /* Zentriert die Inhalte horizontal */
    align-items: center; /* Startet die Inhalte von oben */
    margin-top: 20px; /* Optionaler Abstand von der Kopfzeile */
}

.left-content {
    text-align: center; /* Zentriert den Inhalt innerhalb des Containers */
    margin-right: 20px; /* Optionaler Abstand zwischen den Inhalten */
    display: flex;
    flex-direction: column; /* Stapelt die Inhalte vertikal */
    align-items: center; /* Zentriert die Elemente horizontal */
}

.left-content img {
    max-width: 100%; /* Stellt sicher, dass das Bild nicht über den Container hinausgeht */
    height: auto; /* Behält das Seitenverhältnis des Bildes bei */
    margin-bottom: 10px; /* Abstand zwischen dem Bild und dem Titel */
}

.logout-button-container {
    position: fixed;
    top: 20px;
    right: 10px;
}

.header-container {
    top: 10px;
    left: 10px;
    position: fixed;
    align-items: baseline;
}


.header-image {
    max-width: 60px;
    height: auto;
    display: block;
    margin-right: 20px;
}

label {
    display: block;
}

input {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
}

select#role, select#company_one, select#company_two, select#userSelect, select#actionType, select#actionMode, select#editActionType, select#editActionMode {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
}

button {
    background-color: #414141;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button:hover {
    background-color: #2a2c2a;
}

h1 {
    margin: 30px;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 20px;
}

.ui.dropdown {
    max-width: 800px;
}

.ui.form{
    width: 80%;
}

.label.ui.selection.fluid.dropdown.multiple{
    width: 100%;
    max-width: 360px;
}

@media only screen and (max-width: 767px) {
    .ui.selection.dropdown .menu {
        /*      max-height: 8.01428571rem; /* + 1.335714285 to 9.349999995rem */
        /*      max-height: 9.349999995rem; /* Adds a half */
        max-height: 16.02857142rem; /* Double size */
    }
}
@media only screen and (min-width: 768px) {
    .ui.selection.dropdown .menu {
        /*         max-height: 10.68571429rem; /* + 1.3357142863 to 12.0214285763rem */
        max-height: 12.0214285763rem;
    }
}
@media only screen and (min-width: 992px) {
    .ui.selection.dropdown .menu {
        max-height: 16.02857143rem; /* + 1.3357142858 to 17.3642857158rem */
    }
}
@media only screen and (min-width: 1920px) {
    .ui.selection.dropdown .menu {
        max-height: 21.37142857rem; /* + 1.3357142856 to 22.7071428556rem */
    }
}

#ladeAnimation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.7);
    z-index: 1000;
    flex-direction: column;
}

.spinner {
    border: 4px solid #414141;
    border-radius: 50%;
    border-top: 4px solid #868686;
    width: 50px;
    height: 50px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

p {
    margin: 0;
}

.color-dot {
    height: 15px;
    width: 15px;
    border-radius: 50%;
    display: inline-block;
    margin-left: 5px;
    background-color: #7638db;
}

td {
    padding: 5px;
}

td > button {
    margin: 5px;
}


/* Popup Hintergrund */
.popup {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

/* Popup Inhalt */
.popup-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border-radius: 15px;
    width: 300px;
}

/* Close Button */
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}
