body {
	display: flex;
    height: 98vh; 
    font-family: Arial, sans-serif;
}

.layout {
    display: flex;
}

/* Menu vlevo */
.nav {
    width: 110px;
    background-color: gray;
    color: white;
    display: flex;
    flex-direction: column;
    padding: 7px;
    border-radius: 10px;    
}
.nav a {
    color: white;
    text-decoration: none;
    padding: 5px;
    display: block;
    border-bottom: 1px solid #555;
}
.nav a:hover {
    background-color: #575757;
}

/* Dropdown kontejner */
.dropdown {
    position: relative;
}

/* Skryté submenu */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: rgb(221, 220, 220);
    min-width: 120px;
    top: 100%;
    left: 30px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.dropdown-content a {
    color: black;
    padding: 7px;
}

.dropdown-content a:hover {
    background: #b4b3b3;
}

/* Zobrazení při najetí */
.dropdown:hover .dropdown-content {
    display: block;
}

input {
    height: 18px;
    width: 90px;
}

input:focus {
    border: #28d306;
    background: #c0f7d7;
}

/* BOX */
.box {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr; 
    background-color: white;
    padding-left: 10px;
    padding-right: 10px;
}

.box div {
/*    border: 1px solid rgba(0, 0, 0, 0.678);*/
    font-size: 14px;
    text-align: left;
    border-radius: 10px;    
    }

.item {
    padding-left: 10px;
}    

/* Pravý sloupec*/
.box-header {
    border: 1px solid rgba(0, 0, 0, 0.678);
    background: rgba(168, 248, 168, 0.514);
    color: rgba(0, 0, 0, 0.678);
    height: 20px;
    padding: 10px;
    border-radius: 5px;    
    }
.box-body {
    border: 1px solid rgba(0, 0, 0, 0.678);
    background: white;
    flex: 1;    
    color: rgb(3, 82, 36);
    padding: 10px;
    border-radius: 5px;    
    }
.box-footer {
    border: 1px solid rgba(0, 0, 0, 0.678);
    background: #eee;
    padding: 10px;
    border-radius: 5px;    
    }

/* Tlačítka */
 button {
    width: 120px;
    height: 20px;
    background-color: rgb(248, 248, 246);
    cursor: pointer;
    }

/* Textové pole */
textarea {
    width: 98%;
    height: 50px;
    padding: 4px;
    font-family: Arial, sans-serif;
    resize: vertical; /* uživatel může měnit jen výšku */
}

/* Tabulky */
 table {
    display: table;
    border-collapse: collapse;
    table-layout: fixed;
    width:auto;
}

tr {
    background-color: rgb(248, 248, 246);    
}

th {
    border: 1px solid black;
    padding: 2px;
    text-align: center;
}

td {
    border: 1px solid black;
    padding: 2px;
    text-align: center;
    height: 20px;
    width: 100px;
    overflow: hidden;    
    color: black;
}

/* Udaje tabulka */
.udaje th {
    border: 1px solid black;
    padding: 2px;
    text-align: left;
}

/* Rekapitulace tabulka */
.rekapitulace th {
    background-color: rgb(165, 165, 165);
    color:white;
}

/* Sleva tabulka */
.sleva th {
    background-color: silver;
    border: 1px solid black;
    color:white;
}

.overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.541);
    z-index: 999;
}

.modal {
    display: none;
    position: fixed;
    background-color: #c2c1c1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgb(252, 253, 252);
    padding: 5px;
    border-radius: 8px; 
    border-style: solid; 
    border-color:rgb(56, 56, 56);
    z-index: 1000;
    box-shadow: 0px 10px 30px 5px rgba(0,0,0,0.4);
}

/* Modal záhlaví */
.modal-header {
    background-color: #3b3b3b;
    color: white;
    padding: 5px 10px;
    font-weight: bold;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #353434;
    cursor: move;
    user-select: none;
}

/* Modal obsah */
.modal-body {
    flex: 1;
    padding: 10px;
    position: relative;
    width:auto;
}

/* Modal zápatí */
.modal-footer {
    padding: 10px;
    text-align: right;
    border-top: 1px solid #353434;
}

/* Reklamace */
.modal-reklamace {
    display:flex;
    flex-direction: column;
    background: rgb(215, 218, 215);
    width: 700px;
    height: 800px;
}

/* Poznamky */
.modal-poznamky {
    display:flex;
    flex-direction: column;
    background: rgb(214, 214, 214);
    width: 500px;
    height: 800px;
}

/* Vyšetření */
.modal-vysetreni {
    display:flex;
    flex-direction: column;
    background: rgb(218, 219, 218);
    width: 1200px;
    height: 300px;
}

/* Položky */
.modal-Zak_polozky {
    display:flex;
    flex-direction: column;
    background: rgb(207, 245, 207);
    width: 1400px;
    height: 280px;
}

/* Platba zakázky */
.modal-platba {
    display:flex;
    flex-direction: column;
    background: white;
    font-size: medium;
    width: 220px;
    height: 390px;
}

/* Hover efekt */
tbody tr:hover {
    background-color: #e6f2ff;
    cursor: pointer;
    transition: background-color 0.2s;

}

/* Označený řádek */
.selected {
    background-color: #b3d9ff !important;
}