/* Used colors
bílá: 			#F8F9FA
světle zelená:	#d8f0d8
tmavá zelená:	#ad7d3d
černá:			#212121
šedivá:			#828282
Světle šedivá: 	#ebebeb
světle růžová:	#fce1f2
*/

.tm-tiles {
    display: flex;
    flex-wrap: wrap;
    gap: 0;                 /* žádné mezery */
    margin: 20px 0 0 0;
    padding: 0;
    justify-content: center; /* pokud chceš vlevo: dej flex-start */
    align-items: stretch;
    line-height: 0;          /* eliminace mezer od inline baseline */
}

.tm-tile {
    display: block;
    width: 260px;            /* desktop default */
    height: 260px;
    margin: 0;
    padding: 0;
    text-decoration: none;
    overflow: hidden;
    filter: brightness(0.85); /* ztlumený jas v klidu */
    transform: translateZ(0);
}

.tm-tile-img {
    display: block;          /* žádná mezera pod obrázkem */
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Hover efekt jen pro desktop */
@media (min-width: 769px) {
    .tm-tile {
        transition: transform 0.15s ease-in-out, filter 0.15s ease-in-out;
        will-change: transform, filter;
    }
    .tm-tile:hover {
        transform: scale(1.05);
        filter: brightness(1);
        z-index: 10;
    }
}

/* Mobilní velikost (využívá tvoje existující @media max-width:768px) */
@media screen and (max-width: 768px) {
	.tm-tiles {
	        justify-content: flex-start; /* aby se dlaždice lepily zleva */
	    }
    .tm-tile {
        width: 49.5%;
        height: auto;
        aspect-ratio: 1 / 1;   /* zajistí čtverec bez pevné výšky */
        filter: brightness(1); /* na mobilu typicky bez hoveru – nechávám 100% */
    }
	.tm-tile-img {
	        width: 100%;
	        height: 100%;
	        object-fit: cover;
	    }
}










/* Styl pro vyskakovací okno s informací o cookies */
#cookie-popup {
  position: fixed;
  bottom: 20px;
  left: 0;
  right: 0;
  background: #fff;
  padding: 15px;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  z-index: 2000;
  display: none;
  text-align: center;
}
#cookie-popup button {
    background-color: transparent;
    border: none;
    border-radius: 0;
    font-size: 16px;
	font-weight: 100;
    cursor: pointer;
}
#cookie-popup button:hover {
	color: #ad7d3d;
}



body {
    margin: 0;
    padding: 0;
    position: relative;
    font-family: 'Raleway', sans-serif;
    background-color: #ebebeb; 
    color: #212121;
}

.container {
	top: 0;
	left: 0;
    width: 100vw;
	max-width: 100vw;
    display: flex;
	position: absolute;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.content-container {
    width: 100%;
	max-width: 1150px;
	padding: 110px 0 0 0;
	overflow-wrap: break-word;
	box-sizing: border-box;
	position: relative;
    text-align: center;
	z-index: 1;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1150px;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

.header h4 {
	margin: 0;
	padding: 5px 0 0 45px;
	overflow-wrap: break-word;
	box-sizing: border-box;
	position: relative;
    text-align: left;
	font-size: 16px;
	text-transform: uppercase;
}

.header p {
	margin: 0;
	padding: 5px 25px 0 0;
	overflow-wrap: break-word;
	box-sizing: border-box;
	position: relative;
    text-align: right;
}

.login-container {
    position: relative;
    margin: 50vh auto 0;
    transform: translateY(-50%);
    width: 400px;
    /*margin: 100px auto;*/
	padding: 50px;
    text-align: center;
	box-sizing: border-box;
	background: #F8F9FA;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.online-container {
    position: relative;
	margin: 0 auto;
    width: 400px;
	padding: 50px;
    text-align: center;
	box-sizing: border-box;
	background: #F8F9FA;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.recipe-container {
	position: relative;
    width: 100%;
    margin: 10px auto 0;
	padding: 50px;
    text-align: center;
	background: #F8F9FA;
	box-sizing: border-box;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.login-container .logo {
    width: 300px;
    margin-bottom: 15px;
}

.login-form {
    display: flex;
    flex-direction: column;
}

.login-form select {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
}

.login-form input,
.login-form textarea,
.login-form select,
.search-container input {
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #828282;
    background: #F8F9FA;
    border-radius: 0;
    font-size: 16px;
    font-weight: 200;
    color: #212121;
    transition: border 0.3s ease;
}

.login-form input:focus,
.login-form textarea:focus,
.login-form select:focus,
.search-container input:focus {
    border: 2px solid #ad7d3d;
    outline: none;
}
.login-form input::placeholder,
.login-form textarea::placeholder,
.search-container input::placeholder {
    font-size: 16px;
    font-weight: 200;
    color: #212121;
}

.login-form button,
.search-container button {
    padding: 10px;
    background-color: #828282;
    border: none;
    border-radius: 0;
    font-size: 16px;
	font-weight: 100;
    cursor: pointer;
	color: #F8F9FA;
	transition: background-color 0.3s ease;
}

.login-form button:hover,
.search-container button:hover {
    background-color: #ad7d3d;
}


/* READONLY / DISABLED – formuláře */
.login-form input[readonly],
.login-form textarea[readonly],
.login-form select[disabled] {
    background-color: #ebebeb;   /* světle šedá */
    color: #828282;              /* šedý text */
    border: 1px solid #828282;
}

/* zrušení focus efektu */
.login-form input[readonly]:focus,
.login-form textarea[readonly]:focus,
.login-form select[disabled]:focus {
    border: 1px solid #828282;
    outline: none;
}

.login-form button[disabled]{
    cursor: default;
}

.login-form button[disabled]:hover{
    background-color: #828282;
}

/* placeholder = stejná barva jako hodnota */
.login-form input[readonly]::placeholder,
.login-form textarea[readonly]::placeholder {
    color: #828282;
    opacity: 1; /* důležité – jinak je placeholder průhledný */
}





.rename-form {
    display: grid; 
	place-items: center; 
	width: 100%;
}

.rename-form input,
.rename-form textarea,
.rename-form select {
    padding: 5px;
    margin: 0;
    border: 0;
	text-align: center;
    background: transparent;
    font-size: 24px;
	font-weight: 300;
    color: #212121;
    transition: color 0.3s ease;
}

.rename-form input:focus,
.rename-form textarea:focus,
.rename-form select:focus {
	color: #ad7d3d;
    outline: none;
}
.rename-form input::placeholder,
.rename-form textarea::placeholder {
	text-align: center;
    background: transparent;
    font-size: 24px;
	font-weight: 300;
    color: #212121;
}

.rename-form button {
    padding: 0;
	margin: 0;
	text-align: center;
    background: transparent;
    border: none;
    font-size: 16px;
	font-weight: 100;
    cursor: pointer;
    text-decoration: none; /* Odstraní podtržení */
    color: inherit; /* Použije výchozí barvu textu */
    outline: none; /* Odstraní obrys při kliknutí */
	transition: color 0.15s ease-in-out;
}

.rename-form button:hover {
    color: #ad7d3d;
}



.no-desktop {
	display: none;
}


.pagination {
    margin-top: 20px;
    text-align: center;
}
.pagination a {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 4px;
    background: #F8F9FA;
    color: #212121;
    border: 1px solid #828282;
    text-decoration: none;
}
.pagination a.active,
.pagination a:hover {
    background: #ad7d3d;
    color: #F8F9FA;
    border-color: #ad7d3d;
}



#file-input {
  display: none; /* Skrytí původního inputu */
}

.error {
    color: red;
    margin: 10px 0 10px 0;
}

.success {
    color: #328c32;
    margin: 10px 0 10px 0;
}

.category-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin: 10px 0;
}
.category-item {
    padding: 5px 10px;
    border: 1px solid #828282;
    background: #F8F9FA;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease;
}
.category-item.selected {
    background: #ad7d3d;
    color: #F8F9FA;
    border-color: #ad7d3d;
}
.category-item:hover {
	background: #828282;
	color: #F8F9FA;
    border-color: #828282;
}
.category-checkbox {
    display: none;
}
/* Styl pro vyhledávací input a tlačítko */
.search-container {
    margin: 10px 0;
    text-align: center;
}

.logout-button {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #828282;
    color: #F8F9FA;
    text-decoration: none;
    border-radius: 0;
}

.logout-button:hover {
    background-color: #ad7d3d;
}


/*Šipky u názvu receptu na přepínání mezi recepty v recipe_viewer */
.arrow {
    font-size: 2em;
    color: #212121;
    text-decoration: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2em;
}

.left-arrow {
    left: 0;
	text-align: left;
}

.right-arrow {
    right: 0;
	text-align: right;
}

.arrow:hover {
    color: #ad7d3d;
}
/* Styl pro tooltip */
.arrow::after {
    content: attr(data-tooltip);
    position: absolute;
    top: 120%;  /* Umístění nad šipkou – případně upravte dle potřeby */
    background-color: rgba(0, 0, 0, 0.75);
    color: #fff;
    padding: 5px 8px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
	font-size: 14px;
	font-weight: 200;
}

/* Při hoveru se tooltip objeví s prodlevou 2 sekundy */
.arrow:hover::after {
    transition-delay: 0.5s;
    opacity: 1;
}

.left-arrow::after {
	left: 80%;
	transform: translateX(-80%);
}

.right-arrow::after {
	left: -20%;
	transform: translateX(20%);
}

.plan-details {
	margin-top: 30px;
}



/* PLANS EDIT MODAL */
.modal {
    display: none; 
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
}
.modal-content {
    background-color: #F8F9FA;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #828282;
    width: 80%;
    max-width: 600px;
    text-align: left;
	box-sizing: border-box;
}
.day-block {
    border: 1px solid #828282;
    padding: 10px;
    margin: 10px 0;
    text-align: left;
	width: 100%;
	box-sizing: border-box;
}
.meal-input {
    margin-bottom: 5px;
	width: 100%;
}
#recipeResults .selected {
    background-color: #ad7d3d !important;
    color: #F8F9FA !important;
}



/* Styl pro tabulku uživatelů */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
    font-size: 12px;
    text-align: left;
    background: #F8F9FA;
}
.admin-table th, .admin-table td {
    padding: 3px 5px;
    border: 0;
}
.admin-table th {
    background-color: #828282; 
    color: #F8F9FA;
    text-transform: uppercase;
}
.admin-table tr {
	color: #212121;
}
.admin-table tr:nth-child(even) {
    background-color: #ebebeb;
}
/*.admin-table tr:hover {
    background-color: #ad7d3d;
    color: #F8F9FA;
}*/

.admin-table.left-table td {
    font-size: 14px;
    font-weight: 300;
    color: #212121;
    vertical-align: middle;
}

/* Styl pro zobrazování receptu */
.recipe-container2 {
	position: relative;
    width: 100%;
    margin: 50px auto 0;
	padding: 20px 50px 50px 50px;
    text-align: center;
	background: #F8F9FA;
	box-sizing: border-box;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.recipe-action {
	width: 100%;
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: left;
    margin-bottom: 15px;
	gap: 20px;
}
.recipe-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
	text-align: center;
    margin-bottom: 30px;
}
.recipe-header h2 {
    margin: 0;
    text-transform: uppercase;
	padding: 0 40px 0 40px;
}
.back-button {
    position: absolute;
    right: 0;
    background-color: #828282;
    color: #F8F9FA;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 0;
    transition: background-color 0.3s ease;
}
.back-button:hover {
    background-color: #ad7d3d;
}
/* Popis receptu */
.recipe-description {
    text-align: left;
}
.recipe-details {
    display: flex;
    gap: 30px;
    margin-top: 20px;
    flex-wrap: nowrap; /* Na desktopu nechceme zabalovat */
}
.recipe-image {
    flex: 1 1 calc(60% - 10px);
    width: 100%;
    height: 450px; /* nebo jiná požadovaná výška */
    overflow: hidden;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.recipe-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
	display: block;
}

.recipe-image2 {
    margin: 20px auto;
    text-align: center;
    width: 100%;
	max-width: 600px;
	height: 200px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.recipe-image2 img {
	display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.recipe-materials {
    flex: 1 1 calc(40% - 10px);
	height: 450px;
    overflow-y: auto;     /* zobrazí vertikální scrollbar, pokud je obsah vyšší */
    overflow-x: hidden;   /* skryje horizontální scrollbar */
    text-align: left;
	position: relative;
}

/* Řádek s workflow */
.recipe-workflow {
    margin-top: 25px;
    text-align: left;
}
/* Další informace */
.recipe-extra {
    margin-top: 20px;
    text-align: left;
}
.recipe-extra p {
    margin: 5px 0;
}





/* Styl pro menu */
.menu {
	display: flex; /* Pro zobrazení inline prvku */
    position: fixed;
	flex-direction: row;
    justify-content: center;
    align-items: center;
    text-align: center;
	box-sizing: border-box; /* Zajistí, že padding neroztáhne element */
    top: 0;
    left: 0;
	padding: 5px 5px 0 5px;
    width: 100%; /* Zabírá celou šířku rodiče */
    max-width: 100%; /* Zabrání roztažení */
	/*background: linear-gradient(to bottom, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0) 95%);*/
	transition: background 0.5s ease, box-shadow 0.5s ease;
	gap: 0;
	z-index: 20;
}

.menu img {
	display: block;
}

.menu .logo-desktop {
    width: 180px;
	height: auto;
}

.menu .logo-mobile {
	display: none;
	width: auto;
	height: 60px;
}

.menu.scrolled {
  background: #F8F9FA;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3), inset 0 14px 20px rgba(0, 0, 0, 0.2);
}

.menu a {
    font-size: 18px;
    font-weight: 600;
	padding: 0 5px 25px 0;
    text-transform: uppercase;
	text-decoration: none; /* Odstranění výchozího podtržení */
	color: inherit; /* Barva stejná jako text rodiče */
	border-bottom: 3px solid transparent;
	transition: border-bottom-color 0.15s ease-in-out;
}

.menu a:hover {
    border-bottom: 3px solid currentColor; /* Podtržení stejné barvy jako text */
}

.menu-header {
    width: 30%; /* Pevná šířka 30% */
	min-width: 100px;
	padding-left: 5%;
	display: flex;
    text-align: left;
    justify-content: left;
    align-items: flex-start;
	flex-direction: column;
}

.menu-content {
    width: 50%; /* Pevná šířka 50% */
	min-width: 720px;
    display: flex;
    flex-direction: row;
	text-align: left;
    gap: 20px;
}

.menu-header p {
	line-height: 1.2;
}

.menu-toggle {
    display: none; /* Skryté na desktopu */
    font-size: 32px;
    cursor: pointer;
    padding: 0;
    color: #212121;
}



/* Styl pro dlaždice s recepty /*

        /* Kontejner dlaždic */
        .tiles-container {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
			margin-top: 20px;
        }
        /* Jedna dlaždice */
        .tile {
            position: relative;
            width: 350px;
            height: 270px;
            background-size: cover;
            background-position: center;
            overflow: hidden;
            text-decoration: none;
            color: white;
			box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3), inset 0 0 40px rgba(120, 120, 120, 0.99);
			transition: transform 0.3s ease-in-out;
        }
        /* Overlay pro lehké ztmavení obrázku */
        .tile-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            /*background: rgba(120, 120, 120, 0);*/
			background: linear-gradient(to bottom, rgba(20, 20, 20, 0.90) 0%, rgba(20, 20, 20, 0) 50%);
        }
        .tile:hover /*.tile-overlay*/ {
			transform: scale(1.1);
			z-index: 1000;
            /*background: rgba(120, 120, 120, 0.20);*/
        }
        /* Název receptu nahoře */
        .tile h5 {
            position: relative;
			width: 90%;
		    left: 50%;
		    transform: translateX(-50%);
            margin-top: 15px;
			text-transform: uppercase;
            /* background: rgba(0, 0, 0, 0.5); */
        }
        .tile h6 {
            position: relative;
			width: 90%;
		    left: 50%;
		    transform: translateX(-50%);
            margin-top: 5px;
            /* background: rgba(0, 0, 0, 0.5); */
        }
        /* Kategorie ve spodní části */
        .tile p {
			font-size: 10px;
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            margin: 0;
            padding: 5px 10px;
			width: 80%;
            background: rgba(0, 0, 0, 0.5);
            transition: background 0.3s ease;
        }
        /* Responzivita pro mobil (širší 90 %, výška 200px) */
        @media (max-width: 768px) {
            .tile {
                width: 100%;
                height: 200px;
            }
        }

		.row {
		  display: flex;       /* Aktivuje flexbox rozvržení */
		  flex-wrap: wrap;    /* Zajistí, že se prvky při nedostatku místa zalomí na nový řádek */
		  gap: 10px;          /* Volitelné: vytvoří mezeru mezi jednotlivými divy */
		}



/* Styl pro texty */
h1 {
    font-size: 68px;
    font-weight: 700;
    text-transform: uppercase;
	padding: 0;
	margin: 0 0 10px 0;
}
h2 {
    font-size: 30px;
    font-weight: 500;
    text-transform: uppercase;
	padding: 0;
	margin: 0 0 10px 0;
}
h3 {
    font-size: 24px;
    font-weight: 300;
	padding: 0;
	margin: 0 0 5px 0;
}	
h4 {
    font-size: 18px;
    font-weight: 600;
	padding: 0;
	margin: 0 0 0 0;
}	
h5 {
    font-size: 16px;
    font-weight: 600;
	padding: 0;
	margin: 0 0 0 0;
}	
h6 {
    font-size: 13px;
    font-weight: 300;
	padding: 0;
	margin: 0 0 0 0;
}	
p {
    font-family: 'Raleway', sans-serif; /* Stejný font jako ostatní text */
    font-size: 15px; /* Stejná velikost jako H2 (případně uprav) */
    font-weight: 300; /* Lehké písmo, podobné H2 */
    line-height: 1.4; /* Zvýšené řádkování pro lepší čitelnost */
}
.clink-settings {
	transition: color 0.15s ease-in-out;
	color: inherit; /* Použije výchozí barvu textu */
    text-decoration: none; /* Odstraní podtržení */
    outline: none; /* Odstraní obrys při kliknutí */
    font-family: 'Raleway', sans-serif; /* Stejný font jako ostatní text */
    font-size: 15px; /* Stejná velikost jako H2 (případně uprav) */
    font-weight: 300; /* Lehké písmo, podobné H2 */
    line-height: 1.4; /* Zvýšené řádkování pro lepší čitelnost */
}
.clink-settings:hover {
    color: #ad7d3d;
}
.clink-login {
    text-decoration: none; /* Odstraní podtržení */
    color: #828282; /* Použije výchozí barvu textu */
    outline: none; /* Odstraní obrys při kliknutí */
	font-weight: 100;
}
.clink-login:hover {
    color: #ad7d3d;
}
.clink, 
.clink-remove,
.clink-back,
.clink-step,
.clink-table-filter {
    text-decoration: none; /* Odstraní podtržení */
    color: inherit; /* Použije výchozí barvu textu */
    outline: none; /* Odstraní obrys při kliknutí */
	transition: color 0.15s ease-in-out;
}
.clink-back {
	position: absolute;
	right: 0;
}
.clink-table-filter:hover {
	color: #212121;
}
.clink:hover,
.clink-back:hover,
.clink-step:hover {
	color: #ad7d3d;
}
.clink-remove:hover {
	color: red;
}
.big-bold {
    font-size: 20px;
    font-weight: 500;
}
.big-light {
    font-size: 16px;
    font-weight: 300;
}


/* Responzivní styl */
@media (max-width: 1370px) {
	
	.menu-content {
		gap: 5px;
		min-width: 650px;
		width: auto;
	}
	.menu-header {
		padding: 0 10px 0 0;
		min-width: 300px;
		width: auto;
	}

}	

@media (max-width: 970px) {
	
	.big-bold {
        font-size: 18px;
        font-weight: 500;
	}
	.big-light {
        font-size: 14px;
        font-weight: 300;
	}
	.menu a {
        font-size: 16px;
        font-weight: 600;
		padding: 0 5px 25px 0;
	}
	.menu {
		display: flex;
		justify-content: space-between
	}
	.menu-content {
		min-width: 0;
		width: auto;
		text-align: right;
	}
	.menu-header {
		min-width: 0;
		width: auto;
	}
	.menu-header img {
	    float: left;
	    margin-right: 10px; /* volitelná mezera mezi obrázkem a dalšími prvky */
	}
}

/* Menší velikosti pro mobilní telefony (max-width: 868px) */
@media screen and (max-width: 768px) {
	
	h1 {
	    font-size: 34px;
	}
	h2 {
	    font-size: 26px;
	}
	h3 {
	    font-size: 24px;
	}	
	h4 {
	    font-size: 18px;
	}	
	h5 {
	    font-size: 16px;
	}
	
	.menu .logo-desktop {
		display: none;
	}

	.menu .logo-mobile {
		display: flex;
	}
	
	.content-container {
		padding: 70px 0 0 0;
	}
	
	.online-container {
        width: 100%;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
        padding: 20px;
	}
	
	.recipe-image2 {
	    width: 100%;
	}
	
	/* Zvýraznění při najetí */
	.menu-items a:hover {
	    background: rgba(255, 255, 255, 0.2);
	}

	/* 📌 Položky v menu */
	.menu-items a {
	    display: block;
	    padding: 12px;
	    color: #F8F9FA;
	    font-size: 20px;
	}
	
    .menu-content a {
        display: block;
        padding: 10px;
        color: #F8F9FA;
    }
	
	.menu-header {
		width: 100%;
	}
	
    .menu-toggle {
	    justify-content: right;
	    align-items: flex-end;
	    text-align: right;
        display: block; /* Zobrazit hamburger */
		width: 25px;
    }
	
    .menu {
        flex-direction: row;
        justify-content: center;
        padding: 10px;
		width: 100%;
		max-height: 70px;
    }

    .menu-content {
        display: none; /* Skryté menu */

    }

    /* 📌 Skryté menu, které se objeví po kliknutí */
    .menu-items {
        display: none;
		z-index: 1000;
        flex-direction: column;
        position: fixed;
	    justify-content: center;
	    align-items: center;
	    text-align: center;
        top: 70px;
        width: 100%;
        background: rgba(100, 100, 100, 0.95);
        padding: 10px 0;
		min-width: 100px;
    }

    .menu-items.active {
        display: flex; /* Po kliknutí se zobrazí */
    }		
	
	.login-container {
	    width: 100%;
	}

	.recipe-container,
	.recipe-container2 {
	    width: 100%;
		padding: 15px;
		margin: 10px auto 0;
	}
	
	.no-mobile {
		display: none;
	}
	
    .recipe-details {
        flex-direction: column;
    }
	.recipe-image {
	    flex: 1 1 100%;
	    width: 100%;
		height: 200px;
	}
	.recipe-image img{
	    width: 100%;
		height: 100%;
	}
	.recipe-header {
	    margin-top: 30px;
		overflow-x: hidden;
	}
	
	.header h4 {
		padding-left: 10px;
	}
	
	button.res-mobile,
	input.res-mobile {
	  width: 90% !important;
	  min-width: 200px;
	  margin: 5px 0 5px 0 !important;
	}
	
	.day-block input {
		max-width: 49%;
	}
	
	.table-mobile {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}
	
	.no-desktop {
		display: block;
	}
	
}	

/* ============================================================
   CALENDAR (booking)
   ============================================================ */

.cal-container {
    padding: 30px;
}

.cal-flash {
    position: fixed;
    top: 90px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 640px;
    padding: 12px 18px;
    background: #F8F9FA;
    box-sizing: border-box;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
    text-align: left;
    font-size: 15px;
    z-index: 100;
    animation: cal-flash-in 0.2s ease-out, cal-flash-out 0.4s ease-in forwards 4s;
}
.cal-flash-success { border-left: 4px solid #328c32; color: #2a672a; }
.cal-flash-error   { border-left: 4px solid #c0392b; color: #8a2a20; }
@keyframes cal-flash-in {
    from { opacity: 0; transform: translate(-50%, -10px); }
    to   { opacity: 1; transform: translate(-50%, 0); }
}
@keyframes cal-flash-out {
    from { opacity: 1; }
    to   { opacity: 0; visibility: hidden; }
}
@media (max-width: 768px) {
    .cal-flash {
        top: 76px;
        font-size: 13px;
        padding: 10px 14px;
    }
}

/* ---------- FILTER BAR ---------- */
.cal-filterbar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.cal-week-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #F8F9FA;
    border: 1px solid #ebebeb;
    padding: 4px 8px;
}
.cal-nav-btn {
    display: inline-flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #212121;
    text-decoration: none;
    border: 1px solid #ebebeb;
    background: #F8F9FA;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.cal-nav-btn:hover {
    background: #ad7d3d;
    color: #F8F9FA;
    border-color: #ad7d3d;
}
.cal-week-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 130px;
    line-height: 1.2;
    padding: 0 6px;
}
.cal-week-label strong { font-size: 16px; }
.cal-week-range { font-size: 12px; color: #828282; }

.cal-today-btn {
    padding: 6px 14px;
    background: transparent;
    border: 1px solid #828282;
    color: #212121;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.cal-today-btn:hover {
    background: #ad7d3d;
    color: #F8F9FA;
    border-color: #ad7d3d;
}

.cal-filter-form {
    display: flex;
    align-items: center;
    gap: 8px;
}
.cal-filter-label {
    font-size: 14px;
    color: #828282;
}
.cal-filter-form select {
    padding: 6px 28px 6px 12px;
    border: 1px solid #828282;
    background: #F8F9FA;
    font-size: 14px;
    color: #212121;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M0 0l5 6 5-6z' fill='%23828282'/></svg>");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 10px 6px;
}
.cal-filter-form select:focus {
    border-color: #ad7d3d;
    outline: none;
}

/* ---------- WEEK GRID ---------- */
.cal-week {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 1px;
    background: #ebebeb;
    border: 1px solid #ebebeb;
}

.cal-day {
    background: #F8F9FA;
    display: flex;
    flex-direction: column;
}
.cal-day.is-today .cal-day-header { border-bottom-color: #ad7d3d; }
.cal-day.is-past .cal-day-header { opacity: 0.7; }

.cal-day-header {
    width: 100%;
    padding: 12px 8px;
    background: #F8F9FA;
    border: none;
    border-bottom: 3px solid transparent;
    text-align: center;
    cursor: default;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: 'Raleway', sans-serif;
}
.cal-day-name {
    font-size: 15px;
    font-weight: 600;
    color: #212121;
}
.cal-day-date {
    font-size: 12px;
    color: #828282;
    margin-top: 2px;
}
.cal-day-toggle {
    display: none;
}
.cal-day.is-today .cal-day-name { color: #ad7d3d; }

.cal-day-body {
    flex: 1;
    padding: 6px 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.cal-slot {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.cal-slot-name {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    color: #ad7d3d;
    text-transform: uppercase;
    text-align: left;
    margin: 6px 0 4px;
    padding-bottom: 4px;
    border-bottom: 1px solid #ad7d3d;
}
.cal-slot:first-child .cal-slot-name {
    margin-top: 0;
}

.cal-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 6px 6px;
    background: transparent;
    border-radius: 2px;
    font-size: 13px;
}
.cal-row.is-mine {
    background: #d8f0d8;
}
.cal-row.is-past .cal-srv-name { color: #b0b0b0; }

.cal-srv-name {
    text-align: center;
    white-space: normal;
    word-break: break-word;
    line-height: 1.2;
}

/* ---------- BADGE / BUTTON ---------- */
.cal-book-form { margin: 0; padding: 0; line-height: 0; }

.cal-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 4px 10px;
    font-size: 12px;
    font-family: 'Raleway', sans-serif;
    font-weight: 500;
    border-radius: 2px;
    cursor: pointer;
    background: transparent;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    white-space: nowrap;
    width: 100%;
    box-sizing: border-box;
}
.cal-book-form { width: 100%; }
.cal-badge-book {
    border: 1px solid #ad7d3d;
    color: #ad7d3d;
}
.cal-badge-book:hover {
    background: #ad7d3d;
    color: #F8F9FA;
}
.cal-badge-mine {
    border: 1px solid #328c32;
    color: #2a672a;
    background: transparent;
    font-weight: 600;
}
.cal-badge-mine:hover:not([disabled]) {
    background: #c0392b;
    color: #F8F9FA;
    border-color: #c0392b;
}
.cal-badge-mine[disabled] {
    cursor: default;
    opacity: 0.6;
}
.cal-check {
    color: #328c32;
    font-weight: 700;
}
.cal-badge-mine:hover:not([disabled]) .cal-check { color: #F8F9FA; }
.cal-badge-occupied {
    border: 1px solid #ebebeb;
    color: #b0b0b0;
    background: #ebebeb;
    cursor: default;
}
.cal-badge-past {
    border: 1px solid #ebebeb;
    color: #b0b0b0;
    background: transparent;
    cursor: default;
    font-style: italic;
}

/* ---------- LEGEND ---------- */
.cal-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    margin-top: 22px;
    padding: 14px 4px;
    border-top: 1px solid #ebebeb;
    font-size: 13px;
    color: #828282;
}
.cal-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}
.cal-legend-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.cal-legend-dot.cal-legend-mine { background: #328c32; }
.cal-legend-dot.cal-legend-free { border: 2px solid #ad7d3d; background: transparent; }
.cal-legend-dot.cal-legend-occupied { background: #ebebeb; border: 1px solid #cccccc; }

/* ---------- TIP ---------- */
.cal-tip {
    margin-top: 14px;
    padding: 14px 18px;
    background: #faf6ef;
    border-left: 3px solid #ad7d3d;
    font-size: 13px;
    color: #212121;
    text-align: left;
}

/* ---------- MODAL DIALOG ---------- */
.cal-dialog {
    border: none;
    padding: 30px;
    background: #F8F9FA;
    box-shadow: 0 10px 40px rgba(0,0,0,0.25);
    max-width: 90vw;
    width: 420px;
    font-family: 'Raleway', sans-serif;
}
.cal-dialog::backdrop {
    background: rgba(0, 0, 0, 0.45);
}
.cal-dialog h3 {
    margin: 0 0 12px;
    font-size: 20px;
    font-weight: 600;
}
.cal-dialog p {
    margin: 0 0 22px;
    font-size: 15px;
    line-height: 1.4;
}
.cal-dialog-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}
.cal-btn-secondary,
.cal-btn-danger {
    padding: 10px 18px;
    font-size: 14px;
    border: none;
    cursor: pointer;
    font-family: 'Raleway', sans-serif;
    transition: background 0.15s ease, color 0.15s ease;
}
.cal-btn-secondary {
    background: #ebebeb;
    color: #212121;
}
.cal-btn-secondary:hover { background: #d0d0d0; }
.cal-btn-danger {
    background: #c0392b;
    color: #F8F9FA;
}
.cal-btn-danger:hover { background: #962d22; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1150px) {
    .cal-row { font-size: 12px; padding: 3px 4px; }
    .cal-badge { font-size: 11px; padding: 3px 8px; }
    .cal-day-name { font-size: 14px; }
}

@media (max-width: 970px) {
    .cal-week { grid-template-columns: repeat(7, minmax(0, 1fr)); }
    .cal-srv-name { font-size: 11px; }
    .cal-badge { font-size: 10px; padding: 2px 6px; }
    .cal-day-header { padding: 8px 4px; }
}

@media (max-width: 768px) {
    .cal-container { padding: 12px; }

    .cal-filterbar {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .cal-week-nav { justify-content: space-between; }
    .cal-today-btn { text-align: center; }
    .cal-filter-form { justify-content: space-between; }

    /* prepnout na accordion */
    .cal-week {
        display: block;
        background: transparent;
        border: none;
        gap: 0;
    }
    .cal-day {
        margin-bottom: 6px;
        border: 1px solid #ebebeb;
    }
    .cal-day-header {
        cursor: pointer;
        flex-direction: row;
        justify-content: space-between;
        padding: 14px 16px;
        text-align: left;
        align-items: center;
    }
    .cal-day-name {
        font-size: 16px;
        margin-right: 10px;
    }
    .cal-day-date {
        font-size: 13px;
        margin-top: 0;
        color: #828282;
    }
    .cal-day-toggle {
        display: inline-block;
        font-size: 16px;
        color: #828282;
        transition: transform 0.2s ease;
        margin-left: auto;
    }
    .cal-day.is-expanded .cal-day-toggle {
        transform: rotate(180deg);
    }
    .cal-day-body {
        display: none;
        padding: 4px 16px 18px;
    }
    .cal-day.is-expanded .cal-day-body {
        display: flex;
    }

    .cal-row {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        font-size: 14px;
        padding: 6px 4px;
        min-height: 36px;
    }
    .cal-srv-name {
        flex: 1;
        text-align: left;
        font-size: 14px;
    }
    .cal-badge {
        font-size: 13px;
        padding: 5px 14px;
        width: auto;
    }
    .cal-book-form { width: auto; }
}

@media (max-width: 380px) {
    .cal-day-header { padding: 10px 12px; }
    .cal-day-body { padding: 4px 12px 14px; }
}


/* ---------- CALENDAR: REPEAT BUTTON + MODAL ---------- */
.cal-repeat-btn {
    padding: 6px 14px;
    background: transparent;
    border: 1px solid #ad7d3d;
    color: #ad7d3d;
    text-decoration: none;
    font-size: 14px;
    font-family: 'Raleway', sans-serif;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}
.cal-repeat-btn:hover:not([disabled]) {
    background: #ad7d3d;
    color: #F8F9FA;
}
.cal-repeat-btn[disabled] {
    opacity: 0.4;
    cursor: not-allowed;
    border-color: #828282;
    color: #828282;
}

.cal-dialog-wide {
    width: 540px;
    max-width: 92vw;
}

.cal-repeat-intro {
    margin: 0 0 18px;
    color: #828282;
    font-size: 14px;
}

.cal-repeat-section {
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid #ebebeb;
}
.cal-repeat-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
}
.cal-repeat-label {
    font-size: 13px;
    font-weight: 600;
    color: #212121;
    margin-bottom: 8px;
}

.cal-repeat-list {
    max-height: 240px;
    overflow-y: auto;
    border: 1px solid #ebebeb;
    background: #fff;
    margin-top: 6px;
}

.cal-repeat-row {
    display: grid;
    grid-template-columns: 24px 1fr 1fr 1fr;
    gap: 8px;
    align-items: center;
    padding: 8px 10px;
    border-bottom: 1px solid #f4f4f4;
    cursor: pointer;
    font-size: 13px;
}
.cal-repeat-row:last-child { border-bottom: none; }
.cal-repeat-row:hover { background: #faf6ef; }
.cal-repeat-row-master {
    grid-template-columns: 24px 1fr;
    background: transparent;
    padding: 4px 0 8px;
    border-bottom: none;
}
.cal-repeat-row input[type="checkbox"] {
    margin: 0;
    cursor: pointer;
}
.cal-repeat-day { font-weight: 500; }
.cal-repeat-slot,
.cal-repeat-service { color: #828282; }

.cal-repeat-radio {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: 18px;
    margin-bottom: 6px;
    font-size: 14px;
    cursor: pointer;
}
.cal-repeat-radio input { margin: 0; cursor: pointer; }

.cal-btn-primary {
    padding: 10px 18px;
    font-size: 14px;
    background: #ad7d3d;
    color: #F8F9FA;
    border: none;
    cursor: pointer;
    font-family: 'Raleway', sans-serif;
    transition: background 0.15s ease;
}
.cal-btn-primary:hover:not([disabled]) { background: #8c6230; }
.cal-btn-primary[disabled] {
    background: #d4d4d4;
    color: #828282;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .cal-dialog-wide { width: 96vw; padding: 20px; }
    .cal-repeat-row {
        grid-template-columns: 24px 1fr;
        grid-template-rows: auto auto;
    }
    .cal-repeat-day { grid-column: 2; grid-row: 1; }
    .cal-repeat-slot {
        grid-column: 2;
        grid-row: 2;
        font-size: 12px;
    }
    .cal-repeat-service {
        grid-column: 2;
        grid-row: 2;
        text-align: right;
        font-size: 12px;
    }
    .cal-repeat-row-master { grid-template-columns: 24px 1fr; }
    .cal-repeat-radio {
        display: flex;
        margin-right: 0;
        margin-bottom: 10px;
    }
}


/* ---------- CALENDAR DEV ZONE (smazat vsechny rezervace) ---------- */
.cal-dev-zone {
    margin-top: 30px;
    padding: 14px 18px;
    background: #2a2a2a;
    color: #f5d6c2;
    border-left: 4px solid #c0392b;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    text-align: left;
}
.cal-dev-badge {
    background: #c0392b;
    color: #fff;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
}
.cal-dev-btn {
    padding: 8px 16px;
    background: #c0392b;
    border: none;
    color: #fff;
    font-family: 'Raleway', sans-serif;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.15s ease;
}
.cal-dev-btn:hover { background: #962d22; }
.cal-dev-hint {
    color: #b0a99c;
    font-size: 12px;
    font-style: italic;
}
@media (max-width: 768px) {
    .cal-dev-zone {
        padding: 10px 12px;
        gap: 10px;
    }
    .cal-dev-btn { padding: 10px 14px; width: 100%; }
    .cal-dev-hint { font-size: 11px; }
}


/* ---------- REPEAT MODAL: custom date radio ---------- */
.cal-repeat-radio-custom {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
    margin-top: 4px;
}
.cal-repeat-radio-custom input[type="date"] {
    padding: 4px 8px;
    border: 1px solid #828282;
    background: #F8F9FA;
    font-size: 14px;
    font-family: 'Raleway', sans-serif;
}
.cal-repeat-radio-custom input[type="date"]:focus {
    border-color: #ad7d3d;
    outline: none;
}
.cal-repeat-radio-custom input[type="date"]:disabled {
    background: #ebebeb;
    color: #828282;
    cursor: not-allowed;
}


/* ---------- CALENDAR: blocked state (uz mam jinou sluzbu v teto periode) ---------- */
.cal-badge-blocked {
    border: 1px dashed #b8a890;
    color: #b8a890;
    background: transparent;
    cursor: help;
    font-style: italic;
}
.cal-row.is-blocked .cal-srv-name { color: #b8a890; }


/* ============================================================
   CALENDAR MOBILE REDESIGN (cards + icons)
   ============================================================ */

/* DESKTOP: ikony skryty, slot-grid pruchozi */
.cal-srv-icon { display: none; }
.cal-day-icon { display: none; }
.cal-slot-grid { display: contents; }

/* MOBILE: kartickovy grid */
@media (max-width: 768px) {
    /* Day header s ikonou kalendare + chevron */
    .cal-day {
        margin-bottom: 10px;
        border: 1px solid #ebebeb;
        border-radius: 10px;
        overflow: hidden;
        background: #F8F9FA;
    }
    .cal-day-header {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 9px 16px;
        background: #F8F9FA;
        border-bottom: 1px solid transparent;
    }
    .cal-day.is-expanded .cal-day-header {
        border-bottom-color: #ad7d3d;
    }
    .cal-day-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        background: #fff5e7;
        color: #ad7d3d;
        font-size: 14px;
        flex-shrink: 0;
    }
    .cal-day.is-expanded .cal-day-icon {
        background: #faecd1;
    }
    .cal-day-name {
        font-size: 17px;
        font-weight: 700;
        color: #212121;
        margin-right: 8px;
    }
    .cal-day.is-today .cal-day-name { color: #ad7d3d; }
    .cal-day.is-expanded .cal-day-name { color: #ad7d3d; }
    .cal-day-date {
        font-size: 14px;
        color: #828282;
        font-weight: 400;
        flex: 1;
    }
    .cal-day-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: #828282;
        font-size: 14px;
        margin-left: 0;
        transition: transform 0.2s ease;
    }
    .cal-day.is-expanded .cal-day-toggle { transform: rotate(180deg); }

    .cal-day-body {
        display: none;
        padding: 12px 14px 18px;
        background: #fff;
    }
    .cal-day.is-expanded .cal-day-body { display: block; }

    /* Slot block */
    .cal-slot {
        margin-bottom: 14px;
    }
    .cal-slot:last-child { margin-bottom: 0; }
    .cal-slot-name {
        font-size: 11px;
        letter-spacing: 1.2px;
        color: #828282;
        margin: 0 0 8px;
        padding-bottom: 0;
        border-bottom: none;
        font-weight: 700;
    }

    /* 4-card grid per slot */
    .cal-slot-grid {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 6px;
    }

    /* Card */
    .cal-row {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2px;
        padding: 6px 4px 6px;
        background: #fff;
        border: 1px solid #ebebeb;
        border-radius: 10px;
        font-size: 12px;
        text-align: center;
    }
    .cal-row.is-mine {
        background: #e8f5e0;
        border-color: #c5e1b0;
    }
    .cal-row.is-others {
        background: #f3f3f3;
        border-color: #ebebeb;
    }
    .cal-row.is-blocked {
        background: #fafafa;
        border-color: #ebebeb;
        border-style: dashed;
    }

    .cal-srv-name {
        font-size: 14px;
        font-weight: 600;
        color: #ad7d3d;
        line-height: 1.15;
        word-break: break-word;
        text-align: center;
        flex-shrink: 0;
        margin-bottom: 2px;
    }
    .cal-row.is-mine .cal-srv-name { color: #4a8a2e; }
    .cal-row.is-others .cal-srv-name { color: #b8b8b8; }
    .cal-row.is-blocked .cal-srv-name { color: #b0a890; }
    .cal-row.is-past .cal-srv-name { color: #c0c0c0; }

    .cal-srv-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 36px;
        color: #ad7d3d;
        line-height: 1;
        margin: 2px 0 4px;
    }
    .cal-row.is-mine .cal-srv-icon { color: #4a8a2e; }
    .cal-row.is-others .cal-srv-icon { color: #c8c8c8; }
    .cal-row.is-blocked .cal-srv-icon { color: #c8c0b0; }
    .cal-row.is-past .cal-srv-icon { color: #d0d0d0; }

    /* Badge stretches across card bottom */
    .cal-book-form { width: 100%; }
    .cal-badge {
        width: 100%;
        padding: 5px 4px;
        font-size: 11px;
        border-radius: 6px;
        white-space: nowrap;
    }
    .cal-badge-book {
        border: 1px solid #ad7d3d;
        color: #ad7d3d;
        background: #fff;
    }
    .cal-badge-mine {
        background: #c8e6b0;
        border-color: #a5d188;
        color: #2f6b1f;
        gap: 2px;
    }
    .cal-badge-mine .cal-check { color: #2f6b1f; }
    .cal-badge-occupied {
        background: #ebebeb;
        border-color: #ebebeb;
        color: #999;
    }
    .cal-badge-blocked {
        background: transparent;
        border-color: #d6cfbe;
        color: #b0a890;
    }
    .cal-badge-past {
        background: transparent;
        border: 1px solid transparent;
        color: #c0c0c0;
    }
}

/* Velmi male telefony (iPhone SE 375px a uzsi) */
@media (max-width: 380px) {
    .cal-slot-grid { gap: 4px; }
    .cal-row {
        padding: 5px 2px;
        gap: 1px;
    }
    .cal-srv-name { font-size: 13px; }
    .cal-srv-icon { font-size: 30px; margin: 2px 0 4px; }
    .cal-badge { font-size: 10px; padding: 4px 2px; }
}


/* ---------- CALENDAR MOBILE: filtr mode (sloty vedle sebe) ---------- */
@media (max-width: 768px) {
    .cal-day.is-filtered .cal-day-body {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        padding: 12px;
    }
    .cal-day.is-filtered .cal-slot {
        margin: 0;
        display: flex;
        flex-direction: column;
    }
    .cal-day.is-filtered .cal-slot-name {
        font-size: 10px;
        text-align: center;
        margin: 0 0 6px;
    }
    .cal-day.is-filtered .cal-slot-grid {
        grid-template-columns: 1fr;
        flex: 1;
    }
    .cal-day.is-filtered .cal-row {
        padding: 8px 4px;
    }
    .cal-day.is-filtered .cal-srv-name { font-size: 14px; }
    .cal-day.is-filtered .cal-srv-icon { font-size: 30px; margin: 2px 0 4px; }
    .cal-day.is-filtered .cal-badge { font-size: 10px; padding: 4px 2px; }
}

@media (max-width: 380px) {
    .cal-day.is-filtered .cal-day-body { gap: 5px; padding: 10px; }
    .cal-day.is-filtered .cal-srv-name { font-size: 12px; }
    .cal-day.is-filtered .cal-srv-icon { font-size: 20px; }
}


/* ---------- CALENDAR: clickable whole card (unified hover/tap across cell + button) ---------- */
.cal-row.is-clickable {
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
    -webkit-tap-highlight-color: transparent;
}
.cal-row.is-clickable .cal-badge {
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

/* Desktop / mouse: hover sjednoceny pres celou kartu */
@media (hover: hover) {
    .cal-row.is-clickable:hover {
        background: #faf0e0;
        border-color: #ad7d3d;
        box-shadow: 0 2px 6px rgba(173, 125, 61, 0.18);
    }
    .cal-row.is-clickable:hover .cal-badge-book {
        background: #ad7d3d;
        color: #F8F9FA;
    }
    .cal-row.is-mine.is-clickable:hover {
        background: #b8d99c;
        border-color: #4a8a2e;
        box-shadow: 0 2px 6px rgba(74, 138, 46, 0.2);
    }
    .cal-row.is-mine.is-clickable:hover .cal-badge-mine {
        background: #a5d188;
        border-color: #4a8a2e;
        color: #1f4f12;
    }
    .cal-row.is-mine.is-clickable:hover .cal-check { color: #1f4f12; }
}

/* Tap / press: vsechna zarizeni — vizualne stiskla cela karta + tlacitko */
.cal-row.is-clickable:active {
    background: #f5e6c8;
    border-color: #8c6230;
    transform: scale(0.98);
    box-shadow: none;
}
.cal-row.is-clickable:active .cal-badge-book {
    background: #8c6230;
    color: #F8F9FA;
    border-color: #8c6230;
}
.cal-row.is-mine.is-clickable:active {
    background: #a5d188;
    border-color: #4a8a2e;
    transform: scale(0.98);
}
.cal-row.is-mine.is-clickable:active .cal-badge-mine {
    background: #8cb872;
    border-color: #4a8a2e;
    color: #1f4f12;
}
.cal-row.is-mine.is-clickable:active .cal-check { color: #1f4f12; }


/* ---------- CALENDAR: export to .ics ---------- */
.cal-export-zone {
    margin-top: 16px;
    display: flex;
    justify-content: center;
}
.cal-export-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: #ad7d3d;
    color: #F8F9FA;
    border: none;
    font-family: 'Raleway', sans-serif;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.15s ease;
}
.cal-export-btn:hover { background: #8c6230; }
.cal-export-btn i { font-size: 16px; }

.cal-export-hint {
    margin: 12px 0 0;
    font-size: 12px;
    color: #828282;
    line-height: 1.4;
    text-align: left;
}

.cal-unbook-rmcal {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 18px;
    padding: 10px 12px;
    background: #faf6ef;
    border-left: 3px solid #ad7d3d;
    font-size: 13px;
    cursor: pointer;
}
.cal-unbook-rmcal input { margin: 0; cursor: pointer; }


/* ============================================================
   OVERVIEW DASHBOARD (kdo dela co kdy)
   ============================================================ */

/* Multi-filter bar */
.cal-filter-form-multi {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.cal-filter-form-multi .cal-filter-label {
    margin-left: 6px;
}

/* Volny slot - oranzovy dashed border + velky "?" */
.ovw-row.is-empty-loud {
    background: #fffaf2;
    border: 2px dashed #ad7d3d;
}
.ovw-row.is-empty-loud .cal-srv-name { color: #ad7d3d; }
.ovw-row.is-empty-loud .cal-srv-icon { color: #ad7d3d; opacity: 0.7; }
/* Otaznik se zobrazuje vsude (mobil i desktop). 'VOLNÉ' label je vzdy skryty. */
.ovw-empty-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    font-size: 22px;
    font-weight: 800;
    color: #ad7d3d;
    line-height: 1;
}
.ovw-empty-label { display: none; }

/* Desktop overview: 3-radkove rozlozeni
   Radek 1: ikona + nazev sluzby  (vse)
   Radek 2: avatar (booked) NEBO ? (free, span rows 2-3)
   Radek 3: username (booked) NEBO nic (free, prostor zabira ? z radku 2)
   Vyska boxu konstantni diky pevne definovanym radkum 2 a 3.
   Vyssi specificnost '.cal-row.ovw-row' aby prebila pozdejsi obecne '.cal-row' rule.
*/
@media (min-width: 769px) {
    .cal-row.ovw-row {
        grid-template-rows: auto 48px 22px;
    }
    .cal-row.ovw-row .ovw-empty-mark {
        grid-column: 1 / -1;
        grid-row: 2 / 4;
        font-size: 44px;
        justify-self: center;
        align-self: center;
        margin: 0;
    }
    .cal-row.ovw-row.is-booked .ovw-avatar {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-self: center;
        align-self: center;
        box-sizing: border-box;        /* border 2px se nepocita navic */
    }
    .cal-row.ovw-row.is-booked .ovw-user-name {
        grid-column: 1 / -1;
        grid-row: 3;
        align-self: center;
        text-align: center;
        font-size: 12px;
        color: #2a672a;
        font-weight: 600;
    }
}
.ovw-empty-label {
    font-size: 11px;
    font-weight: 700;
    color: #ad7d3d;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Obsazeny slot - avatar chip + jmeno */
.ovw-row.is-booked {
    background: #f4f9ef;
    border: 1px solid #c5e1b0;
}
.ovw-row.is-booked .cal-srv-name { color: #4a8a2e; }
.ovw-row.is-booked .cal-srv-icon { color: #4a8a2e; }

.ovw-user-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: 100%;
    cursor: default;
}
/* Na mobilu avatar nahrazuje ikonu (icon hidden). Na desktopu zustava ikona u nazvu, avatar je v 2. radku. */
@media (max-width: 768px) {
    .ovw-row.is-booked .cal-srv-icon { display: none; }
}

.ovw-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #c5e1b0;
    background: #fff;
}
.ovw-user-name {
    font-size: 11px;
    color: #2a672a;
    font-weight: 600;
    text-align: center;
    line-height: 1.1;
    word-break: break-word;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Past dim */
.ovw-row.is-past { opacity: 0.55; }

/* Legenda */
.cal-legend-dot.ovw-legend-empty {
    background: transparent;
    border: 2px dashed #ad7d3d;
}
.cal-legend-dot.ovw-legend-booked {
    background: #c5e1b0;
    border: 1px solid #4a8a2e;
}

/* MOBILE — overview specificke upravy */
@media (max-width: 768px) {
    .cal-filter-form-multi {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }
    .cal-filter-form-multi .cal-filter-label {
        margin-left: 0;
        margin-top: 4px;
    }
    .cal-filter-form-multi select {
        width: 100%;
    }
    .ovw-avatar {
        width: 54px;
        height: 54px;
    }
    .ovw-user-name {
        font-size: 12px;
    }
    .ovw-empty-mark {
        font-size: 28px;
    }
}

@media (max-width: 380px) {
    .ovw-avatar { width: 45px; height: 45px; }
    .ovw-empty-mark { font-size: 24px; }
    .ovw-empty-label { font-size: 10px; }
    .ovw-user-name { font-size: 11px; }
}


/* ---------- Language switcher (pre-login pages) ---------- */
.lang-switcher {
    position: absolute;
    top: 14px;
    right: 18px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    letter-spacing: 0.5px;
    z-index: 5;
}
.lang-switcher .lang-link {
    color: #828282;
    text-decoration: none;
    padding: 2px 4px;
    border-radius: 3px;
    transition: color 0.15s ease, background 0.15s ease;
}
.lang-switcher .lang-link:hover { color: #ad7d3d; }
.lang-switcher .lang-link.is-active {
    color: #ad7d3d;
    font-weight: 700;
    background: #faf6ef;
}
.lang-switcher .lang-sep { color: #cccccc; user-select: none; }


/* ============================================================
   FILTERED WEEK TABLE-VIEW (mobile, jeden filtr typu sluzby)
   ============================================================ */
/* Desktop: tabulkovy header je urceny jen pro mobile-filter-view, jinde skryt */
.cal-week-tableheader { display: none; }

@media (max-width: 768px) {
    /* Header row: 'Ráno Poledne Večer' jen jednou nahore */
    .cal-week-tableheader {
        display: grid;
        grid-template-columns: 95px 1fr 1fr 1fr;
        gap: 6px;
        padding: 4px 4px 6px;
        margin-bottom: 4px;
        border-bottom: 1px solid #ad7d3d;
    }
    .cal-week-tableheader-cell {
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 1px;
        color: #ad7d3d;
        text-align: center;
        text-transform: uppercase;
    }

    /* Tabulkove zobrazeni: cely tyden jako tabulka, dny jako radky */
    .cal-week.is-week-filtered .cal-day {
        display: grid;
        grid-template-columns: 95px 1fr 1fr 1fr;
        gap: 6px;
        align-items: stretch;
        background: transparent;
        border: none;
        border-radius: 0;
        margin: 0;
        padding: 6px 4px;
        border-bottom: 1px solid #ebebeb;
        overflow: visible;
    }
    .cal-week.is-week-filtered .cal-day:last-child { border-bottom: none; }
    .cal-week.is-week-filtered .cal-day.is-today {
        background: #fffaf2;
    }

    /* Header dne v levem sloupci - kompaktni vertikalni layout */
    .cal-week.is-week-filtered .cal-day-header {
        padding: 0 4px;
        background: transparent;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 0;
        cursor: default;
        border-bottom: none;
    }
    .cal-week.is-week-filtered .cal-day.is-expanded .cal-day-header {
        border-bottom: none;
    }
    .cal-week.is-week-filtered .cal-day-icon { display: none; }
    .cal-week.is-week-filtered .cal-day-toggle { display: none; }
    .cal-week.is-week-filtered .cal-day-name {
        font-size: 13px;
        margin: 0;
        line-height: 1.1;
    }
    .cal-week.is-week-filtered .cal-day-date {
        font-size: 11px;
        margin-top: 2px;
        line-height: 1;
        flex: none;
    }

    /* Body dne = 3 sloupce s kartickami, vyplnuje zbytek radku */
    .cal-week.is-week-filtered .cal-day-body {
        display: contents;
        padding: 0;
        background: transparent;
    }
    .cal-week.is-week-filtered .cal-slot {
        margin: 0;
        display: flex;
        flex-direction: column;
    }
    /* Slot name v tabulkovem zobrazeni je v hlavnim headeru, zde schovan */
    .cal-week.is-week-filtered .cal-slot-name { display: none; }
    .cal-week.is-week-filtered .cal-slot-grid {
        display: block;
        flex: 1;
    }

    /* Kompaktni karticka - bez velkeho jmena sluzby (je v dropdownu nahore) */
    .cal-week.is-week-filtered .cal-row {
        padding: 6px 4px;
        gap: 4px;
        min-height: 0;
    }
    .cal-week.is-week-filtered .cal-srv-name { display: none; }
    .cal-week.is-week-filtered .cal-srv-icon {
        font-size: 22px;
        margin: 0 0 2px;
    }
    .cal-week.is-week-filtered .cal-badge {
        font-size: 10px;
        padding: 4px 4px;
    }
}


/* ---------- OVERVIEW: hide empty days on mobile after filter ---------- */
@media (max-width: 768px) {
    .cal-day.is-empty-after-filter { display: none; }
    .cal-week.is-all-empty { display: none; }
}
.ovw-no-results {
    margin: 24px auto;
    padding: 20px 16px;
    max-width: 520px;
    text-align: center;
    background: #faf6ef;
    border: 1px dashed #d6cfbe;
    color: #828282;
    font-size: 14px;
    line-height: 1.4;
}
.ovw-no-results i {
    display: block;
    font-size: 28px;
    color: #ad7d3d;
    margin-bottom: 10px;
}


/* ---------- MOBILE PAGE TITLE (v menu) + tlacitka 50/50 ---------- */
.menu-pagetitle { display: none; }

@media (max-width: 768px) {
    /* Mobile: skry 'Pujari Seva', zobrazi page title v menu */
    .menu-brand { display: none; }
    .menu-pagetitle {
        display: inline-block;
        font-size: 16px;
        font-weight: 700;
        color: #212121;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin: 0;
        text-align: left;
    }
    .menu-header { padding-left: 12px; }

    /* Skry header (h4 + logged user) na mobilu, je teď v menu */
    .header { display: none; }

    /* Obsah zacne ihned pod menu (menu .max-height = 70px) */
    .content-container { padding-top: 70px; }
    /* Odeber dalsi 10px nad bilou kartou - flush layout pod menem */
    .recipe-container { margin-top: 0; }

    /* Aktualni tyden + Opakovat tento tyden - 50/50 vedle sebe */
    .cal-filterbar {
        /* aktualizace pro mobile: dve hlavni akcni tlacitka v jedne rade */
    }
    .cal-filterbar .cal-today-btn,
    .cal-filterbar .cal-repeat-btn {
        flex: 1 1 0;
        min-width: 0;
        white-space: normal;          /* dovol zalomeni textu */
        line-height: 1.2;
        text-align: center;
    }
}


/* Akcni radek 2 tlacitek (Aktualni tyden + Opakovat tento tyden) */
.cal-action-row {
    display: flex;
    gap: 8px;
    width: 100%;
}
.cal-action-row > .cal-today-btn,
.cal-action-row > .cal-repeat-btn {
    flex: 1 1 0;
    min-width: 0;
    text-align: center;
    white-space: normal;
    line-height: 1.2;
    box-sizing: border-box;
}


/* Desktop: zachovat DOM poradi v filterbaru — week-nav vlevo, dale tlacitka, filter vpravo */
/* (dríve zde byly explicitni 'order' rules, ktere posunuly week-nav doprostred — odstraneny) */


/* ---------- DESKTOP card: ikona + bold nazev na jednom radku, button pod ---------- */
@media (min-width: 769px) {
    .cal-row {
        display: grid;
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
        column-gap: 6px;
        row-gap: 4px;
        align-items: center;
    }
    .cal-srv-icon {
        display: inline-flex;
        grid-column: 1;
        grid-row: 1;
        font-size: 14px;
        color: #ad7d3d;
        line-height: 1;
        justify-self: end;
        align-self: center;
    }
    .cal-row.is-mine .cal-srv-icon          { color: #4a8a2e; }
    .cal-row.is-past .cal-srv-icon          { color: #c0c0c0; }
    .cal-row.is-blocked .cal-srv-icon       { color: #b8a890; }
    .cal-srv-name {
        grid-column: 2;
        grid-row: 1;
        font-weight: 700;
        text-align: left;
        align-self: center;
    }
    /* Tlacitko / badge / form na 2. radku pres oba sloupce */
    .cal-row > form,
    .cal-row > .cal-badge {
        grid-column: 1 / -1;
        grid-row: 2;
    }
}


/* ---------- OVERVIEW MOBILE: collapsible filters + 50/50 action row ---------- */
.ovw-mobile-actions { display: none; }

@media (max-width: 768px) {
    /* Skryt desktop "Aktualni tyden" text-tlacitko - na mobilu je nahrazeno ikonou */
    .ovw-today-text { display: none; }

    /* Akcni radek 2x50% pod nav */
    .ovw-mobile-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        width: 100%;
        flex: 0 0 100%;
    }
    .ovw-mobile-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 10px 12px;
        background: #F8F9FA;
        border: 1px solid #ad7d3d;
        color: #ad7d3d;
        font-family: 'Raleway', sans-serif;
        font-size: 14px;
        font-weight: 600;
        text-decoration: none;
        cursor: pointer;
        position: relative;
        transition: background 0.15s ease, color 0.15s ease;
        -webkit-tap-highlight-color: transparent;
    }
    .ovw-mobile-btn:active {
        background: #ad7d3d;
        color: #F8F9FA;
    }
    .ovw-mobile-btn i { font-size: 16px; }

    /* Badge s poctem aktivnich filtru */
    .ovw-filters-count {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 18px;
        height: 18px;
        padding: 0 5px;
        border-radius: 9px;
        background: #ad7d3d;
        color: #F8F9FA;
        font-size: 11px;
        font-weight: 700;
        line-height: 1;
    }

    /* Filter panel skryty defaultne, otevre se po toggle (nebo kdyz jsou aktivni filtry) */
    .cal-filter-form-multi {
        display: none;
        flex: 0 0 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 14px;
        background: #faf6ef;
        border: 1px solid #ebebeb;
        margin-top: 4px;
    }
    .cal-filter-form-multi.is-open { display: flex; }
    .cal-filter-form-multi .cal-filter-label { margin: 4px 0 0; }
    .cal-filter-form-multi select { width: 100%; }
}


/* Disabled stav navigaci sipky (preview filterovany na tyden bez shody) */
.cal-nav-btn.is-disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: auto;  /* aby tooltip fungoval */
    text-decoration: none;
}


/* ---------- DASHBOARD MOBILE: 50/50 akcni radek ve stylu Overview ---------- */
@media (max-width: 768px) {
    /* Skry desktop varianty na mobilu - misto nich ukazuje ovw-mobile-actions */
    .ovw-today-text,
    .ovw-repeat-text { display: none; }
}


/* ---------- OVERVIEW: ikona/avatar ve stejne pozici + vetsi rozestup od textu ---------- */
@media (max-width: 768px) {
    .ovw-row { gap: 6px; }
    .ovw-row .cal-srv-icon {
        min-height: 54px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0;
    }
    .ovw-row .ovw-avatar { margin: 0; }
}
@media (max-width: 380px) {
    .ovw-row .cal-srv-icon { min-height: 45px; }
}

/* ---------- OVERVIEW: admin-only clickable cells + assign dialog ---------- */
.cal-row.ovw-row.is-admin-editable {
    cursor: pointer;
    transition: border-color .2s ease, outline-width .2s ease, outline-color .2s ease;
    outline: 0 solid transparent;
    outline-offset: -2px; /* outline se kresli na miste 2px borderu (zevnitr) */
}
/* Na hover: dashed border zmizne (transparent) a misto nej se rozsviti solid 3px outline.
   Outline nebere layout misto a umi transitions -> plynuly prelink bez skoku. */
.cal-row.ovw-row.is-admin-editable:hover {
    border-color: transparent;
    outline-width: 3px;
    outline-color: #ad7d3d;
}
.cal-row.ovw-row.is-admin-editable:active {
    transform: scale(0.99);
}

.ovw-assign-dialog { width: 480px; }
.ovw-assign-dialog .ovw-assign-meta {
    font-size: 13px;
    color: #555;
    margin: 0 0 12px;
    padding: 6px 10px;
    background: #efece4;
    border-left: 3px solid #ad7d3d;
}
.ovw-assign-dialog .ovw-assign-intro {
    margin: 0 0 14px;
    font-size: 14px;
    line-height: 1.4;
}
.ovw-assign-dialog .ovw-assign-warn-past {
    display: flex;
    gap: 8px;
    align-items: center;
    background: #fff4e0;
    border: 1px solid #d9a64a;
    color: #7a4a00;
    padding: 8px 12px;
    margin: 0 0 14px;
    font-size: 13px;
    border-radius: 3px;
}
.ovw-assign-dialog .ovw-assign-warn-past[hidden] { display: none; }
.ovw-assign-dialog .ovw-assign-warn-past i { color: #c0392b; }
.ovw-assign-dialog select {
    width: 100%;
    padding: 8px 10px;
    font-size: 14px;
    margin: 6px 0 18px;
    font-family: 'Raleway', sans-serif;
    background: #fff;
    border: 1px solid #ccc;
}
.ovw-assign-dialog .cal-filter-label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #555;
    margin: 0;
}
.ovw-assign-dialog .ovw-assign-notify {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #444;
    margin: 0 0 14px;
    cursor: pointer;
    user-select: none;
}
.ovw-assign-dialog .ovw-assign-notify input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #ad7d3d;
    cursor: pointer;
}

@media (max-width: 768px) {
    .ovw-assign-dialog { width: 94vw; padding: 20px; }
}

/* ---------- Verze webu v profilu ---------- */
.profile-version {
    margin: 32px auto 8px;
    max-width: 520px;
    text-align: center;
    font-size: 11px;
    color: #999;
    letter-spacing: 0.3px;
}
.profile-version code {
    background: #f4f4f4;
    padding: 1px 6px;
    border-radius: 3px;
    color: #666;
    font-family: 'SF Mono', Menlo, Consolas, monospace;
    font-size: 11px;
}

/* ============================================================
   POPOVER pro "Vsechny typy" filtr — vertikalni seznam ctvercovych ikon
   pod kliknutou bunkou
   ============================================================ */
.cal-book-popover {
    position: absolute;
    z-index: 9999;
    background: #fff;
    border: 1px solid #c0a878;
    border-radius: 6px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.18);
    padding: 4px;
    box-sizing: border-box;
}
.cal-book-popover[hidden] { display: none; }
.cal-book-popover-services {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Tlacitko v popoveru: VIZUALNI KOPIE bunky v tabulce (mensi padding, mensi font) */
.cal-book-popover-btn {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 6px 4px;
    background: #fff;
    border: 1px solid #e0d6c2;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
    transition: background .12s ease, border-color .12s ease, transform .05s ease;
    width: 100%;
    box-sizing: border-box;
}
.cal-book-popover-btn:hover {
    background: #fdfaf3;
    border-color: #ad7d3d;
}
.cal-book-popover-btn:active {
    transform: scale(0.98);
}
.cal-book-popover-btn .cal-srv-icon {
    text-align: center;
    font-size: 22px;
    color: #ad7d3d;
    line-height: 1;
    margin: 0 0 2px;
}
.cal-book-popover-btn .cal-book-popover-name {
    display: block;
    text-align: center;
    padding: 4px 4px;
    border: 1px solid #ad7d3d;
    border-radius: 4px;
    background: #fff;
    color: #ad7d3d;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.2;
}

/* Moje zarezervovana = zelena (jak v bunce) */
.cal-book-popover-btn.is-mine {
    background: #d8f0d8;
    border-color: #2a672a;
}
.cal-book-popover-btn.is-mine .cal-srv-icon {
    color: #2a672a;
}
.cal-book-popover-btn.is-mine .cal-book-popover-name {
    background: #d8f0d8;
    border-color: #2a672a;
    color: #2a672a;
}
.cal-book-popover-btn.is-mine:hover {
    background: #c8e8c8;
}

/* ============================================================
   DESKTOP only — vetsi centrovana ikona v bunce dashboardu
   Prepisuje stavajici grid layout (.cal-row), kde byla ikona zarovnana doleva.
   ============================================================ */
@media (min-width: 769px) {
    /* Bunka na desktopu = 1 sloupec, ne 2 (skryjeme cal-srv-name takze nepotrebujeme 2 col) */
    .cal-week.is-week-filtered .cal-row {
        grid-template-columns: 1fr;
    }
    /* Ikona centrovana, 2x vetsi (24px = 44 - 20) */
    .cal-week.is-week-filtered .cal-srv-icon {
        grid-column: 1;
        justify-self: center;
        text-align: center;
        font-size: 24px;
    }
}

/* ============================================================
   USER ADMINISTRATION — sprava uzivatelu (admin only)
   ============================================================ */
.usradmin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.usradmin-table th,
.usradmin-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #e8e0cf;
    text-align: left;
    vertical-align: middle;
}
.usradmin-table th {
    background: #f4ede0;
    color: #555;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
}
.usradmin-row-inactive { opacity: 0.55; }
.usradmin-row-hidden   { opacity: 0.4; font-style: italic; }

.usradmin-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
    margin-right: 4px;
}
.usradmin-badge-self       { background: #efe7d3; color: #ad7d3d; }
.usradmin-badge-role-admin { background: #fae5e0; color: #cc3300; }
.usradmin-badge-role-user  { background: #e3ecf3; color: #2a5d8a; }
.usradmin-badge-active     { background: #d8f0d8; color: #2a672a; }
.usradmin-badge-inactive   { background: #f2e6d3; color: #8a6520; }
.usradmin-badge-hidden     { background: #efefef; color: #777; }

.usradmin-actions-toggle {
    background: transparent;
    border: 1px solid #ad7d3d;
    color: #ad7d3d;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
}
.usradmin-actions-toggle:hover { background: #fdfaf3; }

.usradmin-actions-row[hidden] { display: none; }
.usradmin-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    padding: 14px;
    background: #fdfaf3;
    border-radius: 6px;
}
.usradmin-action-form {
    background: #fff;
    border: 1px solid #e8e0cf;
    border-radius: 6px;
    padding: 12px;
}
.usradmin-action-form h4 {
    margin: 0 0 8px;
    font-size: 13px;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.usradmin-action-form input,
.usradmin-action-form select {
    width: 100%;
    padding: 6px 8px;
    margin-bottom: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
    font-size: 13px;
    box-sizing: border-box;
}
.usradmin-action-form button {
    width: 100%;
    padding: 8px;
    background: #ad7d3d;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
}
.usradmin-action-form button:hover { background: #946a31; }
.usradmin-action-form button.usradmin-btn-red    { background: #cc3300; }
.usradmin-action-form button.usradmin-btn-red:hover { background: #aa2700; }
.usradmin-action-form button.usradmin-btn-green  { background: #2a672a; }
.usradmin-action-form button.usradmin-btn-green:hover { background: #1f4f1f; }
.usradmin-action-form button.usradmin-btn-orange { background: #c47a1a; }
.usradmin-action-form button.usradmin-btn-orange:hover { background: #a26514; }

/* ---- MOBILE / TABLET (max 900px): tabulka se transformuje na karty ---- */
@media (max-width: 900px) {
    /* Skryt thead, zobrazit kazdy radek jako kartu */
    .usradmin-table thead { display: none; }
    .usradmin-table,
    .usradmin-table tbody { display: block; width: 100%; }
    .usradmin-table tr { display: block; }

    .usradmin-table tr.usradmin-row {
        background: #fff;
        border: 1px solid #e8e0cf;
        border-radius: 8px;
        padding: 12px 14px;
        margin: 0 0 12px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    }
    .usradmin-table tr.usradmin-row td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
        padding: 6px 0;
        border-bottom: 1px solid #f4ede0;
        text-align: right;
        font-size: 13px;
        word-break: break-word;
    }
    .usradmin-table tr.usradmin-row td:last-child { border-bottom: none; }
    .usradmin-table tr.usradmin-row td:before {
        content: attr(data-label);
        font-weight: 600;
        color: #888;
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.4px;
        text-align: left;
        flex: 0 0 auto;
    }
    /* Akcni TD: bez labelu, button na celou sirku */
    .usradmin-table tr.usradmin-row td.usradmin-td-actions {
        justify-content: center;
        padding-top: 10px;
        margin-top: 4px;
    }
    .usradmin-table tr.usradmin-row td.usradmin-td-actions:before { content: none; }
    .usradmin-table tr.usradmin-row td.usradmin-td-actions .usradmin-actions-toggle {
        width: 100%;
        padding: 10px;
        font-size: 14px;
    }

    /* Akcni radek pod kartou: cely sloupec, zarovnany s kartou */
    .usradmin-table tr.usradmin-actions-row { display: block; }
    .usradmin-table tr.usradmin-actions-row[hidden] { display: none; }
    .usradmin-table tr.usradmin-actions-row td {
        display: block;
        padding: 0;
        border: none;
    }
    .usradmin-actions-grid {
        grid-template-columns: 1fr;
        padding: 12px;
        margin-top: -12px;
        border-radius: 0 0 8px 8px;
        border: 1px solid #e8e0cf;
        border-top: none;
    }
}
