/* Základní styly pro tělo stránky */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #0f0;
}

/* Kontejner, který obklopuje obsah stránky */
.container {
    width: auto;
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
    background-color: #000;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Tabulka s událostmi */
table {
    width: auto;
    border-collapse: collapse; 
    margin-bottom: 20px;
    table-layout: auto; /* Umožňuje automatické přizpůsobení šířky sloupců */
}

table, th, td {
/*    border: 1px solid #ddd; */
}

th, td {
    padding: 7px; /* Snížen padding pro minimalizaci volného místa */
    text-align: left;
    white-space: nowrap; /* Zabrání zalamování textu */
    width: auto; /* Umožní tabulce přizpůsobit šířku obsahu */
    min-width: 0; /* Zajistí, že není nastaven žádný minimální šířka */
}

th {
    background-color: #f4f4f4;
}

/* Odkazy */
a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Formuláře */
form {
    margin-bottom: 20px;
}

input[type="text"],
input[type="date"],
textarea {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box; /* Přidáno pro zahrnutí paddingu a borderu do šířky */
}

input[type="submit"] {
    background-color: #007bff;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

input[type="submit"]:hover {
    background-color: #0056b3;
}

input[type="submit"].red {
    background-color: red;
}

input[type="submit"].red:hover {
    background-color: #cc0000;
}

/* Responzivita */
@media (max-width: 600px) {
    th, td {
        display: block;
        width: 0%;
        box-sizing: border-box;
    }

    th {
        display: none;
    }

    td {
        border: none;
        position: relative;
        padding-left: 5%;
    }

    td:before {
        content: attr(data-label);
        position: absolute;
        left: 10px;
        width: calc(50% - 20px);
        padding-right: 10px;
        white-space: nowrap;
        text-align: left;
        font-weight: bold;
    }
}
