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;
}

/* BOX */
.box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(8, 1fr) 2fr; /* osm řádků */
    background-color: white;
    padding: 10px;
    width: 100%;
    border-radius: 10px;    
}
.box div {
    border: 1px solid silver;
    padding: 10px;
    font-size: 12px;
    color: red;
    text-align: left;
    border-radius: 10px;    
}
        
.box .row1 { /*první řádek*/
    display:flex;        /* prvky vedle sebe */
    position: relative;
    border: 0px;
    gap: 10px;           /* mezera mezi prvky */
    grid-column: 1 / -1;
    padding: 5px;
}

.box .row0 { /*spojený řádek*/
    display: flex;       /* tabulky vedle sebe */
    gap: 20px;           /* mezera mezi prvky */
    grid-column: 1 / -1;
    padding: 5px;
}

/* 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;
    background-color: silver;
    color:white;
}

td {
    border: 1px solid black;
    padding: 2px;
    text-align: center;
    height: 20px;
    width: 100px;
    overflow: hidden;    
    color: black;
}
/* Tabulka Brýle */
.bryle td {
    vertical-align: middle;
    padding: 2px;
}

.bryle input {
    position: relative;
    top: 5%;
    width: 110px;
    height: 20px;
    border: none;
    margin: 0;
    padding: 2px;
    text-align: center;
    vertical-align: middle;
    line-height: normal;
}

.bryle input:focus {
 /* outline: none;*/
    border: #28d306;
    background: #c0f7d7;
}

.nitro_visus {
    display: flex;       /* tabulky vedle sebe */
    gap: 30px;           /* mezera mezi nimi */
}

.nit_vis_del th {
    background-color: silver;   
    padding: 2px;
}

.stav th {
    background-color: silver;   
    padding: 2px;
    color:blue;
}

.itemF {
    display: flex;       /* tabulky vedle sebe */
    gap: 10px;           /* mezera mezi nimi */    
}

/* První sloupec – názvy datových řad */
td:first-child {
    background-color: silver;
    color: blue;
    font-weight: bold;
}

input[type="checkbox"] {
    position: relative;
    top: 5%;
    width: 20px;
    height: 20px;
    accent-color: green;
}

/* Textové pole */
textarea {
    width: 95%;
    height: 50px;
    padding: 4px;
    font-family: Arial, sans-serif;
    resize:both ; /* uživatel může měnit velikost */
    border-radius: 5px;    
}

/* Textové pole */
.text_stav {
    width: 75%;
    height: 70px;
    padding: 4px;
    font-family: Arial, sans-serif;
    resize: vertical; /* uživatel může měnit jen výšku */
}

/* Klient label */
label {
    color: black;
    height: 20px;
}

/* Klient input1 */
input {
    height: 20px;
}
.inputZ {
    position: relative;
}
.overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.541);
    z-index: 999;
}

.modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgb(252, 253, 252);
    padding: 5px;
    border-radius: 8px; /* zaoblení rohů. 999px = zaoblené tlačítko */
    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 {
    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: 16px;
    position: relative;
}

/* Modal zápatí */
.modal-footer {
    padding: 12px 16px;
    text-align: right;
    border-top: 1px solid #353434;
}

/* Zakázka */
.modal-zakazka {
    display: flex;
    flex-direction: column;
    width: 750px;
    height: 700px;
}

/* Ceníky */
.modal-cenik {
    display: flex;
    flex-direction: column;
    width: 1200px;
    height: 600px;
}

/* seznam Vyšetření */
.modal-vysetreniV {
    flex-direction: column;
    display:flex;
    width: 1200px;
    height: 400px;
}

/* Poznamky */
.modal-poznamkyV {
    flex-direction: column;
    display:flex;
    width: 500px;
    height: 800px;
}

/* Položky */
.modal-Vys_polozky {
    display:flex;
    flex-direction: column;
    width: 1500px;
    height: 300px;
}

/* Obrazky */
.modal-obrazkyV {
    flex-direction: column;
    display:flex;
    width: 500px;
    height: 800px;
}

/* Individuální barvy */
.modal-zakazka .modal-header {
    background-color: #28d306;
    color: white;
    border-radius: 10px;    
}
.modal-cenik .modal-header {
    display: flex;
    background-color: #3e388e;
    color: white;
}
.modal-Vys_polozky .modal-header {
    display: flex;
    background-color: #28d306;
    color: white;
}

/* Tlačítka */
button {
    width: 120px;
    height: 20px;
    background-color: rgb(203, 204, 204);
    cursor: pointer;
}

/* Zakázka - obsah */
.box-zakazka {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 240px 240px 4fr; /* 3 řádky */
    width: 100%;
}
.box-zakazka div {
    border: 2px solid silver;
    padding: 10px;
    font-size: 12px;
    color: rgb(17, 68, 4);
    text-align: left;
    border-radius: 10px;    
}

.box-zakazka .zakazka-cena { /*spojený řádek*/
    display: flex;
    grid-column: 1 / -1;
}

.zakazka-klient {
    position: relative;
    width:auto;
}

.zakazka-udaje {
    position: relative;
    width:auto;
}
