﻿/* Move down content because we have a fixed navbar that is 50px tall */
body {
    padding-top: 50px;
    padding-bottom: 20px;
}

/* Wrapping element */
/* Set some basic padding to keep content from hitting the edges */
.body-content {
    padding-left: 15px;
    padding-right: 15px;
}

/* Override the default bootstrap behavior where horizontal description lists 
   will truncate terms that are too long to fit in the left column 
*/
.dl-horizontal dt {
    white-space: normal;
}

/* Set widths on the form inputs since otherwise they're 100% wide */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="tel"],
input[type="select"] {
    max-width: 280px;
}

/* Responsive: Portrait tablets and up */
@media screen and (min-width: 768px) {
    .jumbotron {
        margin-top: 20px;
    }

    .body-content {
        padding: 0;
    }
}


.sticky-table {
    position: relative;
    border: 1px solid #111;
    z-index: 3000; /* Nižší než z-index vašeho menu */
    border-collapse: collapse; /* Důležité pro správné zobrazení rámečků */
}

    .sticky-table th {
        position: sticky;
        top: 0;
        /*background-color: #a6d1ff !important;*/
        border: 1px solid #111;
        background-clip: padding-box;
        z-index: 5000; /* Nižší než z-index vašeho menu */
    }

    .sticky-table td:first-child {
        position: sticky;
        left: 0;
        background-clip: padding-box;
        border-top: 1px solid #111;
        border-left: 1px solid #111;
        border-bottom: 1px solid #111;
        border-right: 0px;
        background-color: white !important;
        z-index: 4000; /* Nižší než z-index vašeho menu */
    }

    .sticky-table th:first-child {
        border-top: 1px solid #111;
        border-left: 1px solid #111;
        border-bottom: 1px solid #111;
        border-right: 0px;
        z-index: 6000; /* Nižší než z-index vašeho menu, ale vyšší než ostatní buňky */
    }


        /* Přidáme pseudo-element pro horní okraj hlaviček */
    .sticky-table th::after {
        content: '';
        position: absolute;
        left: 0;
        bottom: -1px;
        width: 100%;
        height: 1px;
        background-color: #111;
        z-index: 7000;
    }

        /* Přidáme pseudo-element pro pravý okraj prvního sloupce */
    .sticky-table td:first-child::after {
        content: '';
        position: absolute;
        top: 0;
        right: -1px;
        width: 0.5px;
        height: 100%;
        background-color: #111;
        z-index: 7000;
    }