  @seda: #333;
  @barvatextu: contrast(@barva, @seda, white);
  @barvamenu: contrast(@barva, @barva, @seda);
  
  .svg{
  float: left;
  background: @barva;
  
  path, polygon
    {
    fill: @barvatextu;
    }
  .donut-poleva
    {
    fill: @barva;
    }
  }
  
  body, html {
    font-family: 'Exo 2', sans-serif;
    font-size: 14px;
    margin: 0px;
  }
  
  body{
    background-color: #FEFEFE;
  }
  
  .wrap { 
    width: 100vw;
    height: 100vh;
  }
  
  section {
      padding-bottom: 20px;
      background-color: white;
  }
  
  .header {
    box-sizing: border-box;
    position: fixed;
    background-color: @barva;
    padding: 10px;
    width: 100vw;
    height: 60px; 
    color: @barvatextu;
  }
  
  .header svg {
    float: left;
  	.st0{fill:@barva;}
  	.st1{fill:#FFEED0;}
  	.st2{fill:#FFFFFF;}
  }
  
  .header img {
    float: left;
  }
  
  .header-text {
    color: @barvatextu;
    float: left;
    padding-left: 5px;
    margin: 3px 0;
    line-height:17px; 
  }
  
  span#user{
    float: right;
    line-height: 40px;
    padding-right: 10px;
  }
  
  @media screen and (max-width: 850px) {
      span#user {
        display:none;
      }
      span.hide {
        display:none;   
      }
      div.header>a>span.button {
      padding: 0;
      }
      
      body, html, h1, h2, h3, h4, input, .button{

      }
      .header-text {
      line-height:17px;
      }
      
      .admin-content{
      position: fixed;
      top: 60px;
      height: calc(~"100% - 140px") !important;
      padding: 15px 15px 15px 15px !important;
      display: flex;
      }
      .admin-menu{
      background-color: @barva !important;  
      position: fixed !important;
      top: auto !important;  
      bottom: 0px !important;
      padding: 15px !important;
      height: 80px !important;
      margin: 0 !important;
      width: 100% !important;   
      overflow-x: scroll;
      overflow-y: hidden !important;
      white-space: nowrap;
        a{
          text-decoration: none; 
        }
        .admin-menu-item{    
          color: white;
          display: inline-block;
          float: inherit;
          width: inherit !important;
          height: 30px !important;
          border-radius: 0 !important;
          margin: 0;
          margin-right: 20px;
          padding-right: 10px;
          img {            
            float: left;
            width:  30px;
            height: 30px; 
            margin-right: 5px;     
          line-height: 30px !important; 
          background-color: transparent;
          }
          .admin-menu-text{ 
          display:  inline-block !important; 
          margin: 0;  
          height: 30px !important; 
          line-height: 30px !important;
          float: left;
          }
        }
        .admin-menu-item:hover{ 
          background-color: @barva*1.2;
          }
      }
      
      .form-field label{
      width: 100%;
      }
      .form-field label{
      width: 100%;
      float: left;
      }
  
      .form-field input{
      width: 100%;
      height: 40px;
      clear: left;
      }
  
  }
  
  .admin-menu {
    position: fixed;
  	z-index: 2;
    overflow: auto;
    top: 0px;
    left: 0px;
  	width: 200px;
  	height: calc(~"100% - 60px");
    box-sizing: border-box;
    padding: 15px 15px 15px 15px;
    margin: 60px 0px 0px 0px;
  	float: left;
  	background-color: #FFF;
  }
  
  #admin-menu-checkbox:checked ~ .admin-menu .admin-menu-inner {
    overflow-y: scroll;
    width: 77px;
  	-webkit-transition: opacity 500ms, width 500ms;
  	-ms-transition: opacity 500ms, width 500ms;
  	transition: opacity 500ms, width 500ms;
  }
  
  .admin-menu-inner {
    overflow-y: scroll;
    height: 100%;
    width: 305px;
  }
  
  .admin-menu-item {
    float: left;
    margin-right: 20px;
    color: @barva;
    height: 30px;     
    width: 100%;
    line-height: 30px;  
    margin:  0 0 15px 0; 
    border-radius: 15px;
    opacity: 1;
  	-webkit-transition: opacity 500ms;
  	-ms-transition: opacity 500ms;
  	transition: opacity 500ms;
  }
  
  .admin-menu-item:hover {   
  background-color: @barva;
    color: @barvatextu;
  }
  
  .admin-menu-item img {
  float: left;
  width: 30px;
  height: 30px;
  background-color: @barva;
  border-radius: 50%;
  }
  
  .admin-menu-text {
  float: left;
  margin-left: 10px;
  font-size: 13px;
  }
  
  .admin-menu-modules img {
  float: left;
  }
  
  .admin-menu-config img {
  float: left;
  }
  
  .admin-content {
    float: left;
    padding: 75px 15px 15px 215px;
    width: 100vw;
    height: calc(~"100vh");
    box-sizing: border-box;
    overflow-y: scroll;
    color: #000;   
  }
  
  .admin-content-wrap {
      min-width: 100%;
      margin: 0 auto;
      
  }
  
  h1 {
    font-size: 15px;
    margin: 0;
    padding: 0;
    color: @barvatextu;
    float: left;
    font-weight: 100;
  }
  
  h2 {
    font-size: 14px;
    margin: 0;
    padding: 0;
    color: @barvatextu;
    float: left;
  }
  
  .ql-editor>h1 {
    font-size: 15px;
    margin: 0;
    padding: 0;
    color: black;
    float: left;
  }
  
  #toolbar {
    height: 40px;
    width: 100%;
    box-sizing: border-box;
    background-color: @barva;
    padding-left: 10px;
    margin-bottom: 15px;
    color: white;
    line-height: 40px;  
  }
  
  .toolbar {
    height: 40px;
    width: 100%;
    box-sizing: border-box;
    background-color: @barva;
    padding-left: 10px;
    margin-bottom: 15px;
    color: white;
    line-height: 40px;  
  }
  
  .menu-edit-item {
    box-sizing: border-box; 
    height: 40px;
    width: 100%;
    margin-bottom: 15px;
    display: table;
    BACKGROUND-COLOR: white; 
    color: black;
  }
  
  .menu-edit-item:hover {
    background-color: whitesmoke;
  }
  
  
  table {
  border-collapse: collapse;
  margin: 0;
  padding: 0;
  width: 100%;
  table-layout: fixed;
  vertical-align: middle;
}

table caption {
  font-size: 1.5em;
  margin: .5em 0 .75em;
}

table tr {
  background-color: #f8f8f8;
}

table th,
table td {
min-height: 30px;
  padding: .625em;
  text-align: left;
}

table th {
  font-weight: normal;
  background-color: @barva;
  color: @barvatextu; 
}

@media screen and (max-width: 600px) {
  .menu-edit-button {
    border-radius: 50%;
    float:left;
    width: 25px !important;
    height: 25px !important;
    background-color: #284093;
  }
  .menu-edit-button img {
    width: 25px !important;
    height: 25px !important;
  }
  
  .hide {
    display: none !important;
  }

  table {
  border: 0;  
  line-height: 30px;      
  }

  table caption {
    font-size: 1.3em;
  }
  
  table thead {
    border: none;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
  }
  
  table tr {
    border-bottom: 2px solid #ddd;
    display: block;
    margin-bottom: 10px;
  }
  
  table td {
    border-bottom: 1px solid #ddd;
    display: block;
    text-align: right;
  }
  
  table td::before {
    /*
    * aria-label has no advantage, it won't be read inside a table
    content: attr(aria-label);
    */
    content: attr(data-label);
    float: left
  }
  
  table td:last-child {
    border-bottom: 0;
  }
}
  
  tr:nth-child(even) {background-color: #f2f2f2;}
 
  code {
  color: black;
  }
  
  .menu-edit-text {
    font-family: 'Exo 2', sans-serif;
    color: #000;
    width: inherit;
    height: 40px;
    display: table-cell;
    padding: 0 10px;  
    margin: 0px;
    border: 0;
    line-height: 40px;
    overflow: hidden;
    vertical-align: middle;
    box-sizing: border-box;
  }
  
  .menu-edit-button-wrap {
    float: left;
    max-height: 40px;
    min-width: 240px;
    display: inline;
  }
  
  .menu-edit-button {
    border-radius: 50%;
    float:left;
    width: 30px;
    height: 30px;
    margin: 5px 5px 5px 8px;
    background-color: #284093;
  }
  
  .menu-edit-button img {
    float:left;
    width: 30px;
    height: 30px;
  }
  
  #red {
    background-color: #E6371E;
  }
  
  #green {
    background-color: #04A238;
  }
  
  #blue {
    background-color: #284093;
  }
  
  #purple {
    background-color: #6f42c1;
  }
  
  #gray, #grey {
    background-color: #333;
  }
  
    
  .red {
    background-color: #E6371E;
  }
    
  .green {
    background-color: #04A238;
  }
  
  .blue {
    background-color: #284093;
  }
  
  .gray, .grey {
    background-color: #333;
  }
  
  
  .button-support {
    float: left;
    font-size: 17px;
    padding: 0 10px;
    margin: 0 0 8px 8px;
    height: 40px;
    line-height: 40px;
    color: #fff;
  }
  
  .button-noimg {
    padding: 0 10px !important;  
  }
  
  .button {
    float: right;
    font-size: 14px;
    padding: 0 0 0 10px;
    height: 40px;
    line-height: 40px;
    color: #fff;
    border: 0;
    cursor: pointer;
  }
  
  .button img {
    float: right;
  }
  
  fieldset {
      padding: 0 0 5px 0;
      margin: 0 0 20px 0;
      border: 0;
  }
  
  fieldset #toolbar {
      background: unset;
      padding-left: 0;
      margin: 0;
  
      h1, h2, h3, h4{
      color: @barva;
      }
  }
  
  .form-field {
      width: 100%;
      height: 35px;
      padding: 0;
      float: left;
      margin-bottom: 10px;
      padding: 5px 0;
      display: table;
      box-sizing: border-box;
  }
  
  @media screen and (max-width: 900px) {
      .form-field {
        width: 100% !important;
        padding-left: 0px !important;
        padding-right: 0px !important;
      }
  }
  
  .text-editor-field {
      width: 100%;
      padding: 0;
      margin-bottom: 10px;
      display: table;
  }
  
  .form-input-label {
      font-family: 'Exo 2', sans-serif;
      color: @seda;
      line-height: 20px;
      padding: 2px 0;
      width: 100%;
      height: 26px;
      float: left;
      display: table-cell;
      box-sizing: border-box;
      vertical-align: top;
  }
  
  .form-input {
      font-family: 'Exo 2', sans-serif;
      line-height: 25px;
      width: 100%;
      height: 35px;
      border: 0;
      padding: 5px 10px;
      margin: 0;
      display: table-cell;
      box-sizing: border-box;
      background-color: #f2f2f2;
  }
  
  input:disabled {
      background: @barva * 10;
      color: @barva;
  }
  
  input:disabled:hover {
      background: @barva * 10;
      color: @barva;
  }
  
  
  .form-input:hover {
    background-color: contrast(@barva, @barva, lighten(@barva, 60%));
  }
  
  .form-input:focus {
    background-color: contrast(@barva, darken(@barva, 5%), lighten(@barva, 60%));
  }
  
  .form-input-color {
      line-height: 0;
      width: inherit;
      height: 40px;
      margin: 0;
      padding: 0;
      border: 0;
      display: block;
      box-sizing: content-box;
      background-color: white;
      vertical-align: middle;
  }
  
  
  #form-switch-label {
    color: #FFF;
    cursor: pointer;
  
  }
  #form-switch {
    display: none;
  }
  
  #form-switch + #form-switch-label:before {
    content: "Ne";
    background-color: #E6371E;
    display: table-cell;
    float: left;
    height: 35px;
    line-height: 25px;
    width: 100%;
    box-sizing: border-box;
    padding: 5px;
  }
  
  #form-switch:checked + #form-switch-label:before {
    content: "Ano";
    background-color: #04A238;
  }
  
  
  #content {
    padding: 0;
  }
           
  .autohide {
      -moz-animation: hideanimation 0.5s ease-in 5s forwards;
      -webkit-animation: hideanimation 0.5s ease-in 5s forwards;
      -o-animation: hideanimation 0.5s ease-in 5s forwards;
      animation: hideanimation 0.5s ease-in 5s forwards;
      -webkit-animation-fill-mode: forwards;
      animation-fill-mode: forwards;
  }
  @keyframes hideanimation {
      to {
        opacity:0;
      }
  }
  @-webkit-keyframes hideanimation {
      to {
        opacity:0;
        }
  }
  
  
  .autohide {
      -moz-animation: hideanimation 0.5s ease-in 5s forwards;
      -webkit-animation: hideanimation 0.5s ease-in 5s forwards;
      -o-animation: hideanimation 0.5s ease-in 5s forwards;
      animation: hideanimation 0.5s ease-in 5s forwards;
      -webkit-animation-fill-mode: forwards;
      animation-fill-mode: forwards;
  }
  @keyframes hideanimation {
      to {
        opacity:0;
      }
  }
  @-webkit-keyframes hideanimation {
      to {
        opacity:0;
        }
  }
  
  #page-switch-public-label {
    color: #FFF;
    cursor: pointer;
  
  }
  #page-switch-public {
    display: none;
  }
  
  #page-switch-public + #page-switch-public-label:before {
    content: "Soukromé";
    background-color: #E6371E;
    display: table-cell;
    float: left;
    height: 40px;
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
  }
  
  #page-switch-public:checked + #page-switch-public-label:before {
    content: "Veřejné";
    background-color: #04A238;
  }
  
  .info-text {
  line-height:20px;
  padding: 10px;
  font-size: 17px;
  color: black;
  }
  
  .error-log{
    background-color: rgba(120,0,0,0.8);
    color: white;
    width: 100%;
    position: absolute;
    bottom: 0;
    z-index: 2;
    box-sizing: border-box;
    line-height: 30px;
  }
  
  .error-log label {
  	display:block;
    padding-left: 5px;
    content: "Pokus";
  }
  
  .error-log label:hover {
    text-decoration:underline;
    cursor: pointer;
  }
  
  .error-log input {
  display: none;
  }
  
  .error-log-content {
  	background:rgba(11,11,11,0.8);
    max-height: 50vh;
  	overflow-y:scroll;
    padding-left: 5px;
  }
  
  .error-log input[type=checkbox]:checked + .error-log-content {
  display:none;
  }
  
  .error-log-lights-off{
  display: none;
  }
  
  input[type=checkbox]:checked + .error-log-lights-off{
  width: 100vw;
  height: 100vh;
  background:rgba(11,11,11,0.8);
  position: relative;
  top:0;
  z-index:-4;
  }
  

/* STYLY PRO KALENDAR */

#calendar {
    position: relative !important;
}
  
  /* Změna výšky jednotlivých slotů v timeGrid */
.fc-timegrid-slot, .fc-timegrid-slot-lane  {
    height: 17px !important; /* Určuje výšku jednotlivých slotů */
    font-size: 10px;
}

.fc-toolbar-title {
color: #2e2e2e;
}

.fc tr {
      display: table-row; 
}

.fc td {
      display: table-cell; 
      text-align: center;
      line-height: normal;
}

.fc .fc-button {
    border-radius: 0px;
}

.fc .fc-event-time, .fc .fc-event-title {
color: #111
}

.fc-timegrid-col {
border: 1px solid #333 !important;
}

.fc table tr {
  background-color: unset;
}
.fc tr:nth-child(even) {background-color: rgba(128,128,128,0.05);}



/* Styl pro modální okno */
.modal {
    display: none; /* Skryté výchozí */
    position: fixed;
    z-index: 10;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0, 0, 0); /* Černé pozadí */
    background-color: rgba(0, 0, 0, 0.4); /* Poloprůhledné pozadí */
}

/* Obsah modálního okna */
.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
}

/* Tlačítko pro zavření modálního okna */
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.modal-content > .form-field {
float: unset;
}

/* Tlačítko pro odstranění události */
.modal-content > button {
    float: unset;
}
