* {
	outline: none;
}
/*
#piva ::-webkit-input-placeholder {
    color:    transparent;
}
#piva :-moz-placeholder {
   color:    transparent;
   opacity:  1;
}
#piva ::-moz-placeholder {
   color:    transparent;
   opacity:  1;
}
#piva :-ms-input-placeholder {
   color:    transparent;
}
#piva :placeholder-shown {
  color:    transparent;
}

#piva .placeholderVisible ::-webkit-input-placeholder {
    color:    #aaa;
}
#piva .placeholderVisible :-moz-placeholder {
   color:    #aaa;
   opacity:  1;
}
#piva .placeholderVisible ::-moz-placeholder {
   color:    #aaa;
   opacity:  1;
}
#piva .placeholderVisible :-ms-input-placeholder {
   color:    #aaa;
}
#piva .placeholderVisible :placeholder-shown {
  /color:    #aaa;
}
*/

::placeholder {
	color: #999;
	opacity: 0.7;
}

body {
	margin: 0;
	padding: 0;
    min-width: 320px;
	background: #f6f6f6;
	color: #666;
	font-family: Verdana, "Geneva CE", lucida, sans-serif;
	font-size: 12px;
	line-height: 1.66;
	text-align: center;
}

#testCorner {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 45px 45px 0 0;
    /* border-color: #C69600 transparent transparent transparent; */
    border-color: #43a047 transparent transparent transparent;
    z-index: 500;
}

#testTitle {
    position: fixed;
    top: 5px;
    left: -3px;
    color: #fff;
    padding: 3px;
    font-weight: bold;
    font-size: 1em;
    text-transform: uppercase;
    z-index: 550;
    -webkit-transform: rotate(315deg);
    -moz-transform: rotate(315deg);
    -o-transform: rotate(315deg);
    writing-mode: lr-tb;
}

#header {
    margin-bottom: 1em;
    border-bottom: 1px solid #fff;
	background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.02));
	background-color: #ffc40c;
    color: #fff;
	text-align: center;
	box-shadow: 1px 1px 12px rgba(0, 0, 0, 0.15);
}

#headerContent {
    max-width: 750px;
    margin: 0 auto;
    text-align: left;
}

#headerContent a {
    display: inline-block;
    vertical-align: middle;
    vertical-align: bottom;
    background-color: transparent;
    color: #fff;
    /*transition: background-color .2s;*/
}

#headerContent a:hover {
    background-color: #ff990c;
}

#logo {
    display: inline-block;
    width: 320px;
    height: 80px;
}

#logo img {
    width: 100%;
    height: 100%;
}

#container {
    position: relative;
	margin: 0 auto;
}

#contentOverlay {
    position: relative;
    z-index: 100;
}

#content {
    position: relative;
    max-width: 100%;
    padding-top: 1em;
    overflow-x: hidden;
}

#ok {
    display: none;
    color: #0c0;
}
#err {
    display: none;
    color: #c00;
}
#menu {
	/*box-shadow: 0 1px 10px rgba(0, 0, 0, 0.2);*/
	/*background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.1));*/
	/*background-color: #ffc40c;
	text-align: center;*/
}

#menu a, #sidebar a, #settings a {
    font-size: 16px;
    text-decoration: none;
    /*transition: background-color .2s;*/
}

#menu a {
    display: inline-block;
    padding: 4px 16px;
    color: #fff;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
}

#menu a:hover {
    background: #ff990c;
}

#menu a.active {
    background: #c69600;
}

#sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: -320px;
    width: 80%;
    min-width: 240px;
    max-width: 320px;
    z-index: 200;
    background: #f4f4f4;
    box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
}

#sidebar .user {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
}

#sidebarOverlay {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 150;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.25);
}

#sidebarToggle, #settingsToggle, #addToggle {
    position: fixed;
    bottom: 16px;
    right: 16px;
    width: 48px;
    height: 48px;
    padding: 8px;
    line-height: 48px;
    z-index: 125;
    cursor: pointer;
    background: #ff990c;
    border-radius: 32px;
    box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.25);
}

#settingsToggle {
    bottom: 20px;
}

#addToggle {
    bottom: 100px;
}

#sidebarToggle img, #settingsToggle img, #addToggle img {
    width: 100%;
    height: 100%;
}


#settings {
    display: none;
    position: fixed;
    right: 16px;
    bottom: 78px;
    max-width: 180px;
    background: #fff;
    color: #bbb;
    cursor: auto;
    line-height: 1.66;
    box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.25);
}

#settings hr {
    width: 80%;
    height: 1px;
    border: 0;
    background-color: #000;
}

#settingsToggle:hover #settings {
    display: block;
}

#sidebar a, #settings a {
    display: block;
    padding: 2px 16px;
    color: #000;
}

#sidebar a {
    padding: 16px;
}

#sidebar a:hover, #settings a:hover {
    background: #ff990c;
    color: #fff;
}

#sidebar a.active, #settings a.active {
    background: #ffc40c;
    color: #fff;
}

#footer {
	margin: 48px auto;
    color: #ccc;
}


/* login form */
form.login input {
    display: block;
    margin: 0 auto 1em;
}

/* homepage */
.columns {
    display: inline-block;
    max-width: calc(100% - 2em);
    vertical-align: top;
}

#additionalContent {
    float: right;
}

/* input form */
#piva div span {
    display: inline-block;
    margin-bottom: 4px;
}

input[type=submit] {
    margin-top: 1em;
    margin-bottom: 2em;
    border: 0;
    padding: 4px 24px;
    background: #ff990c;
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
    
}

input[type=submit]:hover {
    background: #c69600;
}

/* search form */
form.search button {
	padding-top:10px;
	margin-left:0px;
	background: transparent;
	opacity: 0.35;
	font-size: 14px;
	border: none;
	cursor: pointer;
}
form.search input {
	padding:2px 5px 2px 5px;
	margin-bottom:5px;
	background: white;
	opacity: 0.85;
	border: none;
}

/* policko pro filtrovani */
#anyMatch {
    margin: 0;
}

#quickLinks {
    margin-bottom: 2em;
}

#quickLinks a, #yesterdayLink {
/*
    display: inline-block;
    margin: 0 2px;
	padding: 2px 8px;
	background: #e4e4e4;
    text-decoration: none;
    text-transform: uppercase;
    text-transform: lowercase;
*/
}

h1, h2, h3, h4 {
    clear: both;
	text-align: center;
}

h4 {
	text-align: left;
	margin-bottom:-10px;
}

p {
    text-align: left;
}

.sloupce > div {
    display: inline-block;
	vertical-align: top;
	padding: 10px;
	min-width:300px;
}

.grafy>.skryty {
	display: none;
}
.skryty {
	display: none;
}

.pozn, .pozn a, .pozn td{
	color: #999;
}

.notUnderline, .notUnderline a{
	text-decoration: none;
}

.tableWrapper, .table-container {
    width: 100%;
    max-width: 100%;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
}

table {
	margin: 0 auto 24px;
    border-collapse: collapse;
}

table.calendar td {
    border: 1px solid #fff;
}

table.calendar .count {
	font-weight: bold;
}

table.calendar .xs .count {
    font-size: 11px;
}

table.calendar .s .count {
    font-size: 13px;
}
table.calendar .m .count {
    font-size: 15px;
}
table.calendar .l .count {
    font-size: 17px;
}
table.calendar .xl .count {
    font-size: 19px;
}

table.calendar .date {
    color: #999;
    font-size: 9px;
}

td.weekend {
	background: #eee;
}

td.window {
	background: rgba(252, 194, 12, 0.15);
}

td.weekend.window {
	background: rgba(252, 194, 12, 0.75);
}

tr, th, td {
    max-width: 25em;
	padding: 2px 6px;
	text-align: center;
	/*border-radius: 6px;*/
}

td.left, table.left td {
	text-align: left;
}

td.me {
    font-weight: bold;
} 

table.mrizka th {
	background:#ededed;
	color: black;
	font-weight:normal;
}

table.mrizka td, table.mrizka th {
	border-top:1px solid lightgrey;
	border-bottom:1px solid lightgrey;
	border-collapse:collapse;
	min-width: 50px;
}

table.mrizka tr td:first-child + td {
	max-width: 240px;
}

/*
.collapsible tr:nth-child(odd) td {
    background: #f8f8f8;
}
*/

.pruhy tr:nth-child(odd) td {
    background: #f8f8f8;
}

tr .avRating {
    width: 5em;
}

tr .myRating {
    width: 4em;
}

tr .name {
    max-width: 12em;
}

tr .brewery {
    max-width: 12em;
}

tr .boozers, tr .flag {
    max-width: 3em;
} 

tr .epm, tr .abv, tr .ibu {
    width: 4em;
} 

.border td {
border: solid 1px lightgrey;
} 

/* summary table and legend */
#summary {
    position: relative;
}

#summary th, #summary td {
    /*min-width: 50px;*/
}

#summary th:nth-child(7),
#summary td:nth-child(7),
#summary th:nth-child(9),
#summary td:nth-child(9),
#summary th:nth-child(10),
#summary td:nth-child(10) {
    text-align: center;
}

#summary td span, #animals span {
    display: inline-block;
    margin-bottom: -2px;
    width: 16px;
    height: 16px;
    vertical-align: text-top;
}

#summary td span img, #animals span img {
    width: 100%;
    height: 100%;
}

#summary td a {
    color: #000000;
    text-decoration: underline;
}

#summary .loco {
    color: #000000;
}

#detail .loco, .loco {
    color: #999;
    font-size: 85%;
}

.yoy.better {
    color: #039703;
}

.yoy.worse {
    color: #fc0606;
}

#animals span {
    margin-right: 8px;
}

#animals span.greenDot {
    background: #039703;
}

#animals span.redDot {
    background: #fc0606;
}

#animals span.grayDot {
    background: #999;
}

#animals .hasBig {
    line-height: 12px;
}

#animals .big {
    font-size: 18px;
}

.green img {
    -webkit-filter: sepia(1) brightness(70%) hue-rotate(70deg) saturate(5);
    filter: sepia(1) brightness(70%) hue-rotate(70deg) saturate(5);
}

.red img {
    -webkit-filter: sepia(1) brightness(50%) hue-rotate(310deg) saturate(5);
    filter: sepia(1) brightness(50%) hue-rotate(310deg) saturate(5);
}

.gray img {
    -webkit-filter: grayscale(1);
    filter: grayscale(1);
}

#animals {
    display: none;
    position: absolute;
    right: 0;
    padding: 0 1em;
    background: #fff;
    color: #666;
    cursor: auto;
    font-weight: normal;
    line-height: 1.66;
    text-align: left;
    box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.25);
    z-index: 500;
}

#animalsToggle:hover #animals {
    display: block;
}

#animals ul {
    padding-left: 0;
    list-style: none inside;
}

#animals .greenDot, #animals .redDot, #animals .grayDot {
    border-radius: 8px;
}

.sprite {
    display: inline-block;
    vertical-align: middle;
    margin: 0 auto;
    width: 16px;
    height: 16px;
    background-image: url(/images/sprite.png?v=3);
    background-repeat: no-repeat;
    background-size: 80px;
}

.sprite.gray.camel     {background-position:   0px 0px;}
.sprite.gray.gentleman {background-position: -16px 0px;}
.sprite.gray.elephant  {background-position: -32px 0px;}
.sprite.gray.piggy     {background-position: -48px 0px;}
.sprite.gray.yoda      {background-position: -64px 0px;}

.sprite.green.camel     {background-position:   0px -16px;}
.sprite.green.gentleman {background-position: -16px -16px;}
.sprite.green.elephant  {background-position: -32px -16px;}
.sprite.green.piggy     {background-position: -48px -16px;}
.sprite.green.yoda      {background-position: -64px -16px;}

.sprite.red.camel     {background-position:   0px -32px;}
.sprite.red.gentleman {background-position: -16px -32px;}
.sprite.red.elephant  {background-position: -32px -32px;}
.sprite.red.piggy     {background-position: -48px -32px;}
.sprite.red.yoda      {background-position: -64px -32px;}


/* beer detail */
.bcard {
    position: relative;
    max-width: 30em;
    margin: 0 auto 2em;
    padding: 1em;
    background: #f8f8f8; 
    box-shadow: 1px 1px 12px rgba(0, 0, 0, 0.1);
}

.bcard .avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: #eee;
    box-shadow: 1px 1px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.bcard .avatar .beer {
    width: 96px;
    height: 96px;
    object-fit: cover;
}

.bcard .averageRating, .bcard .averageRatingMisto {
    position: absolute;
    top: 12px;
    right: 0;
    width: 72px;
}

.bcard .averageRating strong, .bcard .averageRatingMisto strong {
    font-size: 1.5em;
}

.bcard .details {
    margin-left: 1em;
    /*text-align: left;*/
}  


.mcard {
    position: relative;
    max-width: 740px;
    margin: 0 auto 2em;
    padding: 1em;
    background: #f8f8f8; 
    box-shadow: 1px 1px 12px rgba(0, 0, 0, 0.1);
}
.mcard .details {
    margin-left: 1em;
    text-align: left;
}  
.mcard .details * {
    text-align: left;
}  

/*miniform*/
#meTooForm {
    margin: 0 auto;
}
#meTooForm #ok {
    display: none;
    color: #0c0;
}
#meTooForm #err {
    display: none;
    color: #c00;
}

/* rating */
#ratingForm {
    max-width: 32em;
    margin: 0 auto;
}

#ratingForm p {
    margin: 0 auto 0.5em;
}

#ratingForm span {
    vertical-align: middle;
}

#rating, #ratingMist {
    display: inline-block;
    position: relative;
    width: 112px;
    height: 16px;
    margin-right: 1em;
}

#rating a, #ratingMist a {
    display: inline-block;
    position: relative;
    width: 16px;
    height: 16px;
    z-index: 5;
}

#rating #color, #rating #gray {
    display: inline-block;
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 16px;
    background: url(/favicon.png?v=2) repeat-x left top;
}
#ratingMist #color, #ratingMist #gray {
    display: inline-block;
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 16px;
    background: url(/images/star16.png) repeat-x left top;
}

#rating #gray, #ratingMist #gray {
    width: 112px;
    opacity: 0.33;
}

#ratingName {
    display: inline-block;
}

#ratingForm textarea {
    width: calc(100% - 2px - 1em);
    padding: 0.5em;
	font-family: Verdana, "Geneva CE", lucida, sans-serif;
}

#ratingForm #ok {
    display: none;
    color: #0c0;
}

#ratingForm #err {
    display: none;
    color: #c00;
}

div.rating,div.ratingMist {
    max-width: 29em;
    margin: 2em auto 2em;
    padding: 0.5em 1.5em;
    background: transparent; 

}

.rating .icon {
    position: relative;
    display: inline-block;
    width: 16px;
    height: 16px;
}
.ratingMist .icon {
    position: relative;
    display: inline-block;
    width: 16px;
    height: 16px;
}

.rating .over, .rating .under, .ratingMist .over, .ratingMist .under {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 16px;
    height: 16px;
    background: url(/favicon.png?v=2) no-repeat left bottom;
    opacity: 0.15;
}

.rating .over, .ratingMist .over {
    opacity: 1;
    z-index: 5;
}

.rating span.count, .ratingMist span.count {
    color: #999;
    font-size: 90%;
}

.rating p, .ratingMist p {
    margin: 0.5em 0;
}

.rating .name {
    color: #999;
    font-style: italic;
    text-align: right;
    margin: 0 0 1em;
}

.averageRating .icon {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 48px;
}

.averageRating .over, .averageRating .under {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 48px;
    height: 48px;
    background: url(/favicon_48.png?v=2) no-repeat left bottom;
    opacity: 0.15;
}

.averageRating .over {
    opacity: 1;
    z-index: 5;
}


/* miscellaneous */

.clanek {
	width: 600px;
	max-width: 90%;
	margin: 0 auto 0 auto;
}

table.sortable th:hover, table.sortableFiltered th:hover {
	cursor: pointer;
	background: #f8f8f8;
	box-shadow:  0px 0px 10px rgba(0, 0, 0, 0.2);
}

.tablesorter .filtered {
    display: none;
}

.center{
	text-align: center;
}

.small {
	font-size: 11px;
}

.green {
    color: #5a5;
}

.red {
    color: #c43;
}

.message {
	position: absolute !important;
	top: 20px;
	left: 50%;
	width: 276px;
	margin-left: -150px;
    padding: 12px;
	background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.02));
	background-color: #ff990c;
    color: #fff;
	text-align: center;
    z-index: 101;
    box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.25);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
}

textarea:focus, input[type="text"]:focus, input[type="password"]:focus, input[type="datetime"]:focus, input[type="datetime-local"]:focus, input[type="date"]:focus, input[type="month"]:focus, input[type="time"]:focus, input[type="week"]:focus, input[type="number"]:focus, input[type="email"]:focus, input[type="url"]:focus, input[type="search"]:focus, input[type="tel"]:focus, input[type="color"]:focus, .uneditable-input:focus {
	border-color: rgba(82, 168, 236, 0.8);
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075) inset, 0 0 8px rgba(82, 168, 236, 0.6);
	outline: 0 none;
}

a {
    color: #666;
}

h2 a {
    color: #ccc;
    font-family: Consolas, monaco, monospace;
    text-decoration: none;
}

.tablesorter-headerAsc .tablesorter-header-inner::after {
    content: " ↑";
    font-family: Consolas, monaco, monospace;
}

.tablesorter-headerDesc .tablesorter-header-inner::after {
    content: " ↓";
    font-family: Consolas, monaco, monospace;
}

.tablesorter-headerUnSorted {
    color: #999;
}

.grafy, .grafySirsi {
    width: 100%;
    text-align: center;
}

.grafy > div {
    display: inline-block;
    min-width: 320px;
    max-width: 400px;
    height: 300px;
    margin: 1em 0;
}

.grafySirsi > div {
    display: inline-block;
    min-width: 400px;
    max-width: 700px;
    height: 300px;
    margin: 1em 0;
}

#map #m {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
}

input.minibutton, input.minibutton:hover {
	box-shadow:none;
	text-shadow:none;
	background:transparent;
	margin:0;
	padding:0;
	/* color: black; */
}

/* RESPONZIVNÍ BOXY --------------------------------------- */
p.ost, table.ost {
	margin: 0 -5px 0 -5px;
}
.skupina {
	max-width:1200px;
	margin: auto;
}
.skupina > p {
    display: inline-block;
	vertical-align: top;
}
p.ost > a, table.ost {
    display: inline-block;
	vertical-align: top;
	text-align: left;
    width: 350px;
    max-width: 90%;
    margin: 5px;
	padding: 10px;
	background-color: #e6e6e6;
	text-decoration: none;
	border-radius: 10px;
}	
p.ost > a:hover {
	background-color: #dedede;
}	

/* ODZNAKY --------------------------------------- */
.grey {
	-webkit-filter: opacity(15%) grayscale(100%);
	filter: opacity(15%) grayscale(100%);
}

/* NOTIFIKACE------------------------------------- */
#notifOverlay {
	position: fixed;
	left: 0;
	right: 0;
	margin: auto;
	display: block;
	z-index: 1001;
	max-width: 400px;
	max-height: 50%;
	overflow:auto;
	color: white;
	background-color: rgba(0,0,0,1);
	cursor: pointer; 
}
#notifOverlay a {
	color: #FEC30C;
}
#notifZavrit {
	line-height: 12px;
	margin-top: 10px;
	margin-right: 10px;
	position:absolute;
	top:0;
	right:0;
}


.collapsible {
	position: relative;
	overflow-y: hidden;
}

.collapsed {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	height: 25px;
	padding-top: 35px;
	background: url(/images/collapsed.png) repeat-x center bottom;
	text-align: center;
}

.collapsibleSwitch {
	display: inline-block;
	/*border-top: 1px solid #e0e0e0;*/
	padding: 3px 6px 3px 3px;
	background: #aaa;
	color: #333;
	cursor: pointer;
	line-height: 17px;
	text-align: center;
	text-decoration: none;
	font-variant: small-caps;
	border-radius: 6px;
	box-shadow:  0px 0px 20px #fff;
    -moz-border-bottom-colors: none;
    -moz-border-left-colors: none;
    -moz-border-right-colors: none;
    -moz-border-top-colors: none;
    background-color: #F5F5F5;
    background-image: linear-gradient(#FFFFFF, #FFFFFF 25%, #E6E6E6);
    background-repeat: no-repeat;
    border-color: #CCCCCC #CCCCCC #BBBBBB;
    border-image: none;
    border-style: solid;
    border-width: 1px;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset, 0 1px 2px rgba(0, 0, 0, 0.05);
}

.collapsibleSwitch:hover {
    background-color: #E6E6E6;
    background-position: 0 -15px;
/*
    background-color: #006DCC;
    background-image: linear-gradient(to bottom, #0088CC, #0044CC);
    background-repeat: repeat-x;
    border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
    color: #fff;
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
*/
}

.collapsibleSwitch img {
	vertical-align: bottom;
}



/* jquery ui (bootstrap) */

a.button {
	text-decoration: none;
}

input.button {
	margin-top: 1em;
}

.ui-autocomplete {
	max-height: 310px;
	overflow-y: auto;
	overflow-x: hidden;
	text-align: left;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ui-autocomplete a span {
    color: #999;
    font-size: 0.9em;
}



/* responsive modifications */

/* beer list */
@media (max-width: 899px) {
    tr .epm, tr .abv, tr .ibu {
        display: none;
    }
}

@media (max-width: 799px) {
    tr .brewery {
        display: none;
    }
}

@media (max-width: 699px) {
    tr .last {
        display: none;
    }
}

@media (max-width: 599px) {
    tr .order, tr .boozers, tr .flag {
        display: none;
    }
}

@media (max-width: 399px) {
    tr .avRating span, tr .myRating span {
        display: none;
    }
    tr .avRating, tr .myRating {
        width: 2em;
    }

}

/* ui and navigation */
@media (max-width: 1099px) {
    #additionalContent {
        float: none;
    }
}

@media (max-width: 699px) {
    #headerContent {
        text-align: center;
    }
    
    #menu {
        display: none;
    }

    #sidebarToggle {
        display: block;
    }
    
    tr .soupivnici {
        display: none;
    }
}

@media (max-width: 399px) {
    #headerContent {
        text-align: left;
    }
}

@keyframes fadeIn { /*tohle jsou hovna, který musej jít řešit líp a jednodušejc, ale zatím nevím jak*/
	  0% {visibility: hidden;opacity: 0.1;}
	 10% {visibility: visible;opacity: 0.1;}
	 15% {opacity: 0.15;}
	 20% {opacity: 0.2;}
	 25% {opacity: 0.25;}
	 30% {opacity: 0.3;}
	 35% {opacity: 0.35;}
	 40% {opacity: 0.4;}
	 45% {opacity: 0.45;}
	 50% {opacity: 0.5;}
	 55% {opacity: 0.55;}
	 60% {opacity: 0.6;}
	 65% {opacity: 0.65;}
	 70% {opacity: 0.7;}
	 75% {opacity: 0.75;}
	 80% {opacity: 0.8;}
	100% {visibility: visible; opacity: 0.8;}
}

.minimenu {
	background-color:#fac00c;
	color:white;
	height:20px;
	width:100%;
	padding:5px;
	position:absolute;
	top:0;
	left:0;
	text-align:center;
	margin-bottom:10px;
}


.minimenu a {
	color:white;
}

/* VLASTN� MOD�L PRO DETAILY Z�ZNAM� */
#customModalOverlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
}
#customModalContainer {
    position: relative;
    width: 95%;
    max-width: 800px;
    height: 90%;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}
#customModalIframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    border-radius: 4px;
}
#customModalClose {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 34px;
    height: 34px;
    background: #fff;
    color: #333;
    border-radius: 50%;
    text-align: center;
    line-height: 34px;
    font-size: 20px;
    font-family: Arial, sans-serif;
    font-weight: bold;
    cursor: pointer;
    z-index: 100000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
#customModalClose:hover {
    background: #eee;
}

/* ==========================================================================
   MOBILN� NAVIGACE A NOV� HLAVI�KA 2026 (Pouze pro mobil)
   ========================================================================== */
@media (max-width: 767px) {
    #header {
        height: 60px !important;
        min-height: 60px !important;
        padding: 0 15px !important;
        background-color: #FEC30C !important;
        display: flex !important;
        align-items: center !important;
    }

    #headerContent {
        height: 100% !important;
        width: 100% !important;
        max-width: 900px !important;
        margin: 0 auto !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        padding: 0 !important;
    }

    #logo {
        height: auto !important;
        width: auto !important;
        display: flex !important;
        align-items: center !important;
        float: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    #logo img {
        height: 42px !important;
        width: auto !important;
        transform: none !important;
        margin: 0 !important;
        padding: 0 !important;
        display: block !important;
    }

    #custom-header-buttons {
        position: static !important;
        display: flex !important;
        gap: 8px !important;
        align-items: center !important;
        margin: 0 !important;
    }
}

.custom-btn {
    height: 28px !important;
    box-sizing: border-box !important;
    background: #FF990C !important;
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    padding: 0 12px !important;
    border-radius: 14px !important;
    font-size: 13px !important;
    line-height: 1 !important;
    text-decoration: none !important;
    cursor: pointer;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
}

.custom-btn-logout {
    padding: 0 !important;
    width: 28px !important;
}

.custom-btn-logout svg {
    width: 16px !important;
    height: 16px !important;
    fill: currentColor !important;
    display: block !important;
}

/* Rozbalovac� menu pro volbu roku */
.custom-dropdown {
    position: relative;
    display: inline-block;
}

.custom-dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 30px;
    background-color: #ffffff;
    min-width: 120px;
    box-shadow: 0px 8px 20px rgba(0,0,0,0.3);
    z-index: 10002;
    border-radius: 8px;
    overflow: hidden;
}

.custom-dropdown-content a {
    color: #333 !important;
    padding: 10px 15px;
    text-decoration: none !important;
    display: block;
    font-size: 13px;
    text-align: right;
    border-bottom: 1px solid #eee;
}

.custom-dropdown-content a:last-child { border-bottom: none; }
.custom-dropdown-content a:hover { background-color: #f1f1f1; }
.custom-dropdown-content .active { font-weight: bold; background-color: #FEC30C; color: white; }
.custom-dropdown-content .years { display: flex; flex-direction: column; width: 100%; }

.custom-dropdown:hover .custom-dropdown-content,
.custom-dropdown:focus-within .custom-dropdown-content {
    display: block;
}

@media (max-width: 767px) {
    .custom-dropdown-content a {
        padding: 6px 15px;
        font-size: 12px;
    }
    #container {
        padding-bottom: 70px !important;
    }
}


/* --- Spodn� hlavn� li�ta (pln� verze s texty a ikonami) --- */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 55px;
    background-color: #0b2046;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 5px 5px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
    z-index: 1000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 10px;
    color: #8c9baf;
    text-decoration: none;
    flex: 1;
    cursor: pointer;
    transition: color 0.2s;
    margin-top: 2px;
}

.nav-item {
    -webkit-tap-highlight-color: transparent !important;
    outline: none !important;
}
.nav-item:focus, .nav-item:active {
    outline: none !important;
    -webkit-tap-highlight-color: transparent !important;
}
.nav-item:hover, .nav-item.active {
    color: #FEC30C !important;
    border-top: none !important;
}
.nav-item.active svg, .nav-item:hover svg {
    fill: #FEC30C !important;
}

/* Tla��tko Z�pis z�st�v� trvale s b�l�m textem a b�lou ikonou */
.nav-item-primary,
.nav-item-primary:hover,
.nav-item-primary.active {
    color: white !important;
    background-color: #FF990C !important;
}
.nav-item-primary svg,
.nav-item-primary:hover svg,
.nav-item-primary.active svg {
    fill: white !important;
}

.nav-item svg {
    width: 22px;
    height: 22px;
    margin-bottom: 2px;
    fill: currentColor;
}

.nav-item-primary {
    position: relative;
    top: -15px;
    background-color: #FF990C;
    color: white !important;
    border-radius: 12px;
    padding: 8px 12px;
    box-shadow: 0 4px 10px rgba(255, 153, 12, 0.4);
    font-weight: bold;
    font-size: 11px;
}

.nav-item-primary svg {
    width: 24px;
    height: 24px;
    margin-bottom: 1px;
}
/* --- Vysouvac� menu (Ostatn�) --- */
.slide-menu {
    position: fixed;
    bottom: -100%; 
    left: 0;
    width: 100%;
    background-color: #132b56;
    color: white;
    transition: bottom 0.25s ease-out;
    z-index: 999;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    padding-bottom: 10px; 
    padding-top: 5px;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
}

.slide-menu.open { 
    bottom: 55px;
} 

.menu-drag-handle {
    width: 35px;
    height: 4px;
    background: #395280;
    border-radius: 2px;
    margin: 10px auto 10px auto;
}

.slide-item {
    display: flex;
    align-items: center;
    flex-direction: row-reverse;
    padding: 12px 25px;
    color: white;
    text-decoration: none;
    font-size: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.slide-item:last-child { border-bottom: none; }

.slide-item svg {
    width: 20px;
    height: 20px;
    margin-left: 15px;
    fill: #a0aec0;
}

.backdrop {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s;
}

.backdrop.open { opacity: 1; pointer-events: auto; }

.admin-item { color: #FEC30C; }
.admin-item svg { fill: #FEC30C; }

@media (min-width: 768px) {
    .bottom-nav, .slide-menu, .backdrop { display: none !important; }
}

@media (max-width: 767px) {
    #container {
        padding-bottom: 65px !important;
    }
}






/* Skr�v�n� prvk� dle za��zen� (Desktop vs Mobil) */
@media (min-width: 768px) {
    #custom-header-buttons { display: none !important; }
}
@media (max-width: 767px) {
    #settingsToggle { display: none !important; }
}

/* Tlacitko Ulozit (Disketa) v mobilni navigacni liste na strance Zapis */
.nav-item-save,
.nav-item-save:hover,
.nav-item-save.active {
    background-color: #FF990C !important;
    box-shadow: 0 4px 10px rgba(255, 153, 12, 0.4) !important;
}

@media (max-width: 767px) {
    /* Na mobilu na strance Zapis skryjeme klasicke tlacitko Ulozit dole ve formulari */
    body.page-zapis #formZapis #submit,
    body.page-zapis #submit,
    body.page-zapis #formZapis #zapisSubmit,
    body.page-zapis #zapisSubmit {
        display: none !important;
    }
}

/* Našeptávač jQuery UI musí být vždy nad všemi modálními vrstvami */
.ui-autocomplete {
    z-index: 100000 !important;
}

/* Responzivní texty pro prvky menu / navigace */
.mobile-text {
    display: none;
}
.desktop-text {
    display: inline;
}

/* Globální netučné legendy pro Highcharts grafy */
.highcharts-legend-item text,
.highcharts-legend-item span,
.highcharts-legend text,
.highcharts-legend span {
    font-weight: normal !important;
}

@media (max-width: 767px) {
    .mobile-text {
        display: inline;
    }
    .desktop-text {
        display: none;
    }
}

/* Notifikační odznáčky pro neohodnocená piva (Pivkulačka 4.0) */
.pk-unrated-badge {
    background: #EF4444;
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 10px;
    margin-left: 5px;
    line-height: 1.25;
    display: inline-block;
    vertical-align: middle;
    box-shadow: 0 1px 3px rgba(239, 68, 68, 0.4);
}

.pk-unrated-dot {
    position: absolute;
    top: -2px;
    right: -4px;
    width: 8px;
    height: 8px;
    background: #EF4444;
    border: 1.5px solid #FFFFFF;
    border-radius: 50%;
    box-shadow: 0 0 4px rgba(239, 68, 68, 0.6);
}

/* Oranžovo-červená moderní pilulka Hodnoť v desktopové hlavičce */
.pk-desktop-rate-pill {
    position: absolute;
    top: 14px;
    right: 80px;
    background: linear-gradient(135deg, #F97316 0%, #EA580C 100%);
    color: #FFFFFF !important;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 6px 3px 10px;
    border-radius: 20px;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(234, 88, 12, 0.35);
    transition: all 0.15s ease;
    z-index: 600;
    letter-spacing: 0.2px;
    line-height: 1.2;
}

.pk-desktop-rate-pill:hover {
    background: linear-gradient(135deg, #EA580C 0%, #C2410C 100%) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.45);
}

.pk-desktop-rate-pill .pk-unrated-badge {
    background: #FFFFFF;
    color: #C2410C;
    font-size: 11px;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    box-sizing: border-box;
    margin-left: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

@media (max-width: 767px) {
    .pk-desktop-rate-pill {
        display: none !important;
    }
}

/* Rohový ukazatel rozdílu piv na PetraYodu (pouze pro Michala uid 17) */
#pk-yoda-corner {
    position: fixed;
    top: 3px;
    right: 5px;
    z-index: 9999999;
    font-size: 9.5px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-weight: 700;
    color: #000000 !important;
    line-height: 1;
    letter-spacing: -0.2px;
    opacity: 0.85;
    text-decoration: none !important;
    pointer-events: auto;
    cursor: pointer;
    user-select: none;
    background: transparent;
    text-shadow: 0 0 2px #ffffff, 0 0 4px #ffffff, 0 1px 2px #ffffff;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

#pk-yoda-corner:hover {
    opacity: 1;
    transform: scale(1.06);
}

/* ==========================================================================
   MĚSÍČNÍ REKAPITULACE (Pivkulačka 4.0)
   ========================================================================== */

/* HORNÍ LIŠTA / BANNER */
.pk-rekap-banner {
    background: #FFF8E6;
    border: 1px solid #FFE4A0;
    border-radius: 10px;
    padding: 6px 36px;
    margin: 8px auto 12px auto;
    max-width: 960px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(229, 152, 0, 0.08);
    box-sizing: border-box;
    position: relative;
    animation: fadeInDown 0.3s ease-out;
    text-align: center;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.pk-rekap-banner-link {
    font-size: 12.5px;
    font-weight: normal;
    color: #92400E !important;
    text-decoration: none !important;
    width: 100%;
    display: block;
    text-align: center;
    transition: color 0.15s ease;
}

.pk-rekap-banner-link:hover {
    color: #B45309 !important;
    text-decoration: underline !important;
}

.pk-rekap-banner-close {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #94A3B8;
    font-size: 15px;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
    border-radius: 6px;
    transition: all 0.15s ease;
}

.pk-rekap-banner-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #1E293B;
}

/* ODZNÁČEK NA PROFILU SOUPIVNÍKA */
.pk-soupivnik-rekap-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #FFF8E6;
    color: #C86D00 !important;
    border: 1px solid #FFE4A0;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    margin: 8px 0 14px 0;
    box-shadow: 0 2px 8px rgba(200, 109, 0, 0.1);
    transition: all 0.15s ease;
}

.pk-soupivnik-rekap-badge:hover {
    background: #E59800;
    color: #FFFFFF !important;
    border-color: #E59800;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(229, 152, 0, 0.25);
}

@media (max-width: 600px) {
    .pk-rekap-banner {
        padding: 6px 30px;
        justify-content: center;
        align-items: center;
        text-align: center;
    }
}

