* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: Arial, sans-serif;
    background-color: #e5f1f1;
    overflow: hidden;
}

.nadpis {
    padding: 20px;
    background-color: #377f87;
    color: white;
    margin: 0;
    font-size: 22px;
    text-align: center;
}

.floor-plan-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(60px, 1fr));
    grid-auto-rows: minmax(60px, auto);
    gap: 5px;
    padding: 5px;
    height: calc(100vh - 70px);
    justify-items: center;
    align-items: center;
}

/* Stôl */
.table {
    width: 100%;
    max-width: 75px;
    aspect-ratio: 1 / 1;
    background: white;
    border: 2px solid #2c585d;
    box-shadow: 1px 1px 4px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Štvorcové stoly */
.t2, .t3, .t4, .t5, .t6,
.t8, .t9,
.t11, .t12, .t13, .t15 {
    border-radius: 0 !important;
}

/* Presné grid pozície */
.t14 { grid-column: 1; grid-row: 1; }
.t15 { grid-column: 2; grid-row: 1; }
.t16 { grid-column: 3; grid-row: 1; }

.t13 { grid-column: 1; grid-row: 2; }
.t12 { grid-column: 2; grid-row: 2; }
.t11 { grid-column: 3; grid-row: 2; }

.t8  { grid-column: 1; grid-row: 4; }
.t9  { grid-column: 2; grid-row: 4; }
.t10 { grid-column: 3; grid-row: 3; }

.t7  { grid-column: 1; grid-row: 5; }
.t6  { grid-column: 2; grid-row: 5; }

.t2  { grid-column: 1; grid-row: 7; }
.t3  { grid-column: 2; grid-row: 7; }

.t1  { grid-column: 1; grid-row: 8; }
.t4  { grid-column: 3; grid-row: 7; }
.t5  { grid-column: 3; grid-row: 5; }

.theke {
    grid-column: 2; grid-row: 9;
    max-width: 90px;
    aspect-ratio: 1.4;
    border-radius: 10px;
}

.stammgast {
    grid-column: 3; grid-row: 9;
    max-width: 100px;
    aspect-ratio: 1.8;
    border-radius: 10px;
}

.pavillon50a {
    grid-column: 5 / span 2;
    grid-row: 2 / span 2;
    max-width: 120px;
    aspect-ratio: 1.8;
    border-radius: 10px;
}

.pavillon50b {
    grid-column: 5 / span 2;
    grid-row: 4 / span 2;
    max-width: 120px;
    aspect-ratio: 1.8;
    border-radius: 10px;
}

/* Menšie zariadenia */
@media (max-width: 900px) {
    .table {
        max-width: 65px;
    }
}

.drinks-section {
    border: 2px solid #2c7a7b;
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    min-height: 0;  /* DÔLEŽITÉ pre skrolovanie */
}

.categories-wrapper {
    overflow-y: auto;
    flex: 1 1 0;
    min-height: 0;
}

.drinks-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 5px 0;
}





table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: center;
}

tr.highlight {
    background-color: #d1ffd1; /* zelená farba keď má objednávku */
}

a {
    text-decoration: none;
    color: #2c7a7b;
    font-weight: bold;
}

a:hover {
    text-decoration: underline;
}

tr.done {
    background-color: #cccccc !important; /* sivá keď je hotovo */
}


.table-wrapper {
    max-height: 80vh;  /* nastavíš podľa potreby */
    overflow-y: auto;
    border: 1px solid #ccc;
}



.navbar {
    background-color: #2c7a7b;
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar a {
    color: white;
    text-decoration: none;
    margin-left: 15px;
    font-weight: bold;
}

.navbar a:hover {
    text-decoration: underline;
}
