 body {
    display: flex;
    height: 98vh; 
    font-family: Arial, sans-serif;
}

.layout {
    display: flex;
	}

/* Menu vlevo */
.nav {
    width: 100px;
    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;
}

/* Label */
.label {
color: rgb(3, 3, 3);
}

/* input */
.input {
    position: relative;
    border: 1px solid rgb(161, 161, 161);
    border-radius: 3px;    
}

/* BOX */
.box {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    border: 1px solid rgb(131, 129, 129);
}

/* Levý sloupec (rozdělen na 2 části) */
.left {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 5px;
}

.left .section {
    flex: 1;
    display: flex;
    justify-content: left;
    align-items: top;
    border: 1px solid rgb(179, 177, 177);
    border-radius: 10px;    
}

/* Střední sloupec */
.center {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 5px;
    }

.center .section {
    flex: 1;
    display: flex;
    justify-content: left;
    align-items: top;
    border-radius: 10px;    
}

/* Klient - obsah */
.box-klient {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 180px 1fr; /* 2 řádky */
    width: 100%;
}
.box-klient div {
    position: relative;
    width:auto;
    border: 1px solid rgb(141, 141, 141);
    padding: 10px;
    font-size: 12px;
    text-align: left;
    border-radius: 10px;    
}

/* Kasa - obsah */
.box-kasa {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 100px 1fr; /* 2 řádky */
    width: 100%;
}

.box-kasa div {
    position: relative;
    border: 1px solid rgb(141, 141, 141);
    padding: 10px; 
    font-size: 12px;
    text-align: left;
    border-radius: 10px;    
}

/* Pravý sloupec (rozdělen na 2 části) */
.right {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 5px;
}

.right .section {
    flex: 1;
    display: flex;
    justify-content: left;
    align-items: top;
    border: 1px solid rgb(179, 177, 177);
    border-radius: 10px;    
}

/* Title panel */
.title-panel {
    background-color: rgb(235, 232, 232);
    font-size: 14px;
    font-weight: bold;
    padding: 4px 4px;
    border: 1px solid silver;
    border-radius: 5px;    
}
        
/* Tlačítka */
button {
    width: 80px;
    height: 20px;
    background-color: rgb(203, 204, 204);
    cursor: pointer;
    }

input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: rgb(1, 173, 1);
    cursor: pointer;
    border-radius: 3px;    
}

.overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 15, 15, 0.438);
    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; 
    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: #3b3b3baf;
    color: white;
    padding: 5px 10px;
    font-weight: bold;
    border-bottom: 2px solid white;
    cursor: move;
    user-select: none;
}

/* Modal zápatí */
.modal-footer {
    padding: 12px 16px;
    text-align: right;
    border-top: 1px solid #c2bfbf;
}

/* Klient */
.modal-klientM {
    background: rgb(227, 231, 247);
    width: 450px;
    height: 460px;
}

/* Klient-modal-body */
.modal-body-klient{
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr auto; /* 2 řádky */
	}
.modal-body-klient div{
    border: 1px solid rgb(141, 141, 141);
    padding: 5px;
    font-size: 12px;
    color: rgb(17, 68, 4);
}

/* Pokladna */
.modal-pokladnaM {
    background: white;
    width: 1050px;
    height: 800px;
}

/* Obrazky */
.modal-obrazkyM {
    background: rgb(246, 248, 246);
    width: 500px;
    height: 800px;
}

/* Výběr hotovosti */
.modal-obrazkyM {
    background: rgb(246, 248, 246);
    width: 500px;
    height: 400px;
}

/* Poznamky */
.modal-poznamkyM {
    background: rgb(236, 238, 236);
    width: 500px;
    height: 800px;
}

/* Tabulky */
 table {
    display: table;
    border: #eeeaea;
    border-collapse: collapse;
    table-layout: fixed;
    width:auto; 
}

tr {
    background-color: rgb(248, 248, 246);    
}

th {
    border: 1px solid rgb(173, 171, 171);
    padding: 2px;
    text-align: center;
    background-color: rgba(192, 192, 192, 0.822);
    font-size: 12px;
}

td {
    border: 1px solid rgb(184, 181, 181);
    padding: 2px;
    text-align: center;
    height: 20px;
/*    line-height: 25px;*/
    width: 130px;
    overflow: hidden;    
    color: black;
}

/* Zvýraznění řádku v tabulce po najetí myši */
tbody tr:hover {
  background-color: #e6f2ff;
  cursor: pointer;
  transition: background-color 0.2s;
}

.selected {
  background-color: #cce5ff !important;
}