html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

html, body {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
}

.content {
  flex: 1;
  overflow-y: auto;
}



.tooltip {
  display: none;
  position: absolute;
  border: 1px solid #333;
  background-color: #161616;
  border-radius: 5px;
  padding: 10px;
  color: #fff;
  font-size: 12px;
  z-index: 1000;
}



.alternation1 {
  background-color: #F6F6F6;
}

.alternation2 {
  background-color: white;
}





.event-row {
  position: relative;
  cursor: pointer;
}

  .event-row:hover .edit-icon,
  .event-row:focus .edit-icon {
    display: inline;
  }

.edit-icon {
  visibility: hidden;
  pointer-events: none;
  margin-left: 8px;
  color: #007bff;
  text-decoration: none;
  font-size: 1.1em;
}

.event-row:focus-within .edit-icon,
.event-row:hover .edit-icon {
  visibility: visible;
  pointer-events: auto;
}


.table-guardian-photo {
  display: inline-block;
  width: 24px;
  height: 24px;
  background-size: cover;
  vertical-align: middle;
}


.photo-popup {
  position: absolute;
  z-index: 1000;
  background: #fff;
  border: 1px solid #ccc;
  padding: 5px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  border-radius: 6px;
}

.event-row {
  position: relative;
}




.prvek-se-stinem {
  color: black; /* Barva samotného textu */
  filter: drop-shadow(3px 3px 5px silver); /* X, Y posun, rozostření, barva stínu */
}

.den {
  background-color: silver;
  width: 30px;
}


.brd-x {
  background-color: white;
  border-radius: 5px;
  padding: 2px;
  /*border: 1px solid silver;*/
}


.vnejsi-prvek-filtry {
  display: flex;
  justify-content: space-between; /* Zarovná obsah mezi sebou */
  align-items: start; /* Vertikální zarovnání na střed (pokud chcete, aby byly prvky vertikálně zarovnané stejně) */
  width: 100%; /* Roztažení na celou šířku */
  margin-top: 10px;
  margin-bottom: 10px;
}

.vnejsi-prvek {
  display: flex;
  justify-content: space-between; /* Zarovná obsah mezi sebou */
  align-items: start; /* Vertikální zarovnání na střed (pokud chcete, aby byly prvky vertikálně zarovnané stejně) */
  width: 100%; /* Roztažení na celou šířku */
}

.vnitrni-prvek {
  margin-right: 10px;
  padding-right: 10px; /* Pokud chcete mezery mezi prvky */
}



.vyplnujici-prvek {
  flex-grow: 1; /* Tento prvek se roztáhne a vyplní zbývající prostor */
}

.zarovnany-prvek {
  margin-left: auto; /* Posune tento prvek na pravý okraj */
}

  .zarovnany-prvek button {
    margin-top: 10px;
    margin-bottom: 10px;
    padding: 10px 20px;
    background-color: lightgreen;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    max-width: 150px;
  }

    .zarovnany-prvek button:hover {
      background-color: silver;
    }

  .zarovnany-prvek .button4potvrdit {
    background-color: orange;
    border: 2px solid white;
  }


  .zarovnany-prvek .button4historieVelkaScreen {
    display: flex;
  }


  .zarovnany-prvek .button4historieMalaScreen {
    display: none;
  }

form {
  box-shadow: none;
  text-shadow: none;
  margin-top: 0%;
  align-content: center;
}


.btn-x {
  margin-top: 5px;
  margin-bottom: 5px;
  margin-left: 5px;
  margin-right: 0px;
  padding-top: 5px;
  padding-bottom: 5px;
  padding-left: 10px;
  padding-right: 10px;
  background-color: white;
  border-color: white;
  border-radius: 5px;
  border-width: 0px;
  font-weight: normal;
  color: black;
}

  .btn-x:hover {
    background-color: #f0f0f0;
  }

form .btn-x {
  margin-top: 5px;
  margin-bottom: 5px;
  margin-left: 5px;
  margin-right: 0px;
  padding-top: 5px;
  padding-bottom: 5px;
  padding-left: 10px;
  padding-right: 10px;
  background-color: white;
  border-color: white;
  border-radius: 5px;
  border-width: 0px;
  font-weight: normal;
  color: black;
}

  form .btn-x:hover {
    background-color: #f0f0f0;
  }

.btn-x2 {
  display: block;
  width: 100%;
  text-align: left;
  padding: 3px 5px;
  border-radius: 10px;
  border: 0px solid #ccc;
  margin-top: 2px;
  margin-bottom: 2px;
  margin-right: 0px;
  margin-left: 0px;
  text-decoration: none;
  color: inherit;
  background-color: transparent;
}

  .btn-x2:hover {
    background-color: #f0f0f0;
    /*    background-color: #f0f0f0;*/
  }

form .btn-x2 {
  display: block;
  width: 100%;
  text-align: left;
  padding: 3px 5px;
  border-radius: 10px;
  border: 0px solid #ccc;
  margin-top: 2px;
  margin-bottom: 2px;
  margin-right: 0px;
  margin-left: 0px;
  text-decoration: none;
  color: inherit;
  background-color: transparent;
}

  form .btn-x2:hover {
    background-color: #f0f0f0;
    /*    background-color: #f0f0f0;*/
  }

.ikona-tlacitka {
  display: inline-block;
  width: 5em; /* Nastavte šířku podle potřeby */
  text-align: center;
}




form.zarovnany-prvek .btn-x {
  margin-top: 0px;
  margin-bottom: 0px;
  margin-left: 0px;
  margin-right: 0px;
  padding-top: 0px;
  padding-bottom: 0px;
  padding-left: 0px;
  padding-right: 0px;
  background-color: white;
  border-radius: 5px;
  font-weight: normal;
}


  form.zarovnany-prvek .btn-x:hover {
    background-color: #f0f0f0;
  }

/*
form.zarovnany-prvek .btn-x .menu {
  margin-right: 10px;
  }*/


.container {
  max-width: 100%;
  width: auto;
}

#hlavniDiv {
  max-width: 100%;
  width: auto;
}

.scroll-view-horizontal {
  max-width: 100%;
  width: auto;
  overflow-x: scroll;
  padding: 10px;
}



.scroll-view {
  height: 120px;
  overflow-y: scroll;
  /*border: 1px solid #ccc;*/
  padding: 10px;
}


.div-wrap {
  white-space: pre-wrap;
  text-align: left; /* Zarovnání textu vlevo */
}

  .div-wrap:empty::before {
    content: "\00a0"; /* Zajistí, že prázdné buňky nebudou vykresleny jako odstavce */
  }

  .div-wrap:empty::after {
    content: "\00a0"; /* Zajistí, že prázdné buňky nebudou vykresleny jako odstavce */
  }

/*
.scroll-view-horizontal {
  width: 1000px;
  overflow-x: scroll;
  padding: 10px;
}
*/


.form-control {
  margin-bottom: 20px;
}




/*#card-number-element,
#card-expiry-element,
#card-cvc-element {
  margin-bottom: 10px;
}

.StripeElement {
  box-sizing: border-box;
  height: 40px;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: white;
  box-shadow: 0 1px 3px 0 #e6ebf1;
  transition: box-shadow 150ms ease;
}

.StripeElement--focus {
  box-shadow: 0 1px 3px 0 #cfd7df;
}

.StripeElement--invalid {
  border-color: #fa755a;
}

.StripeElement--webkit-autofill {
  background-color: #fefde5 !important;
}

*/

.form-container {
  display: flex;
  justify-content: flex-start;
}

.payment-form-other {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid silver;
  border-radius: 10px;
  padding: 10px;
}

#payment-form {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid silver;
  border-radius: 10px;
  padding: 10px;
}

.form-row {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 10px;
}


.form-element {
  margin-right: 10px;
  min-width: 200px; /* Nastavení minimální šířky */
}

  .form-element:last-child {
    margin-right: 0;
  }

.form-element-2 {
  margin-right: 10px;
  min-width: 100px; /* Nastavení minimální šířky */
}

  .form-element-2:last-child {
    margin-right: 0;
  }

.form-element-3 {
  margin-right: 10px;
  min-width: 90px; /* Nastavení minimální šířky */
}

  .form-element-3:last-child {
    margin-right: 0;
  }


.StripeElement {
  box-sizing: border-box;
  height: 40px;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: white;
  box-shadow: 0 1px 3px 0 #e6ebf1;
  transition: box-shadow 150ms ease;
}

.StripeElement--focus {
  box-shadow: 0 1px 3px 0 #cfd7df;
}

.StripeElement--invalid {
  border-color: #fa755a;
}

.StripeElement--webkit-autofill {
  background-color: #fefde5 !important;
}




/*.event-timeline {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.event {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.guardian-button {
  width: 50px;
  height: 50px;
  background-size: cover;
  border: none;
  border-radius: 50%;
  margin: 0 10px;
  background-repeat: no-repeat;
  background-position: center;
}
*/

.cinnosti-table-div {
  margin: 0px 10px 0px 0px;
  padding: 0px 10px 0px 0px;
}


.event-details {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.event-time, .event-child, .event-activity {
  margin: 5px 0;
}


.timeline {
  position: relative;
  width: 100%;
  height: 100px;
  margin: 20px 0;
}

.timeline-isweek {
  /*  margin-top: -20px;
  margin-bottom: 20px;
  height: 70px;*/
}

.is-week {
  height: 50px;
  width: 50px;
}


.timeline-line {
  position: absolute;
  top: 49%;
  left: 0;
  width: 100%;
  height: 0px;
  /*background-color: #000;*/
  border: 1px dashed silver;
}

.timeline-event {
  position: absolute;
  background-color: lightblue;
  height: 5px;
  top: 47%;
  margin-left: 33px;
  padding-top: 0px;
  border: 1px solid LightSkyblue;
}

.event {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.guardian-button {
  width: 50px;
  height: 50px;
  background-size: cover;
  border: 2px solid lightgreen;
  border-radius: 50%;
  z-index: -1000;
  box-sizing: border-box;
}


  .guardian-button.konec {
    border: 2px solid red;
  }


#context-menu {
  /*position: absolute;*/
  background-color: white;
  border: 2px dashed gray;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  width: auto;
}

  #context-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  #context-menu li {
    padding: 8px 12px;
    cursor: pointer;
  }

    #context-menu li:hover {
      background-color: #f0f0f0;
      border-radius: 10px;
    }

.hidden {
  display: none;
  z-index: 1000;
}



.no-underline {
  text-decoration: none;
  color: black;
  /*  margin-left: 5px;
*/
}

li {
  /*background-color: blue;*/
  align-self: center;
  padding: 0px 5px 0px 5px;
  margin: 0;
}


tr {
  border: 3px dashed transparent;
}


.highlight-top {
  border: 3px solid yellow;
  border-bottom-color: transparent;
}

.highlight-middle {
  border-left: 3px solid yellow;
  border-right: 3px solid yellow;
}

.highlight-bottom {
  border: 3px solid yellow;
  border-top-color: transparent;
}

.highlight-all {
  border: 3px solid yellow;
}








.tab {
  overflow: hidden;
  border: 0px solid #ccc;
  background-color: white;
}

  .tab button {
    background-color: inherit;
    float: left;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 5px 5px;
    transition: 0.3s;
    border-radius: 5px;
  }

    .tab button:hover {
      background-color: #ddd;
    }

    .tab button.active {
      background-color: #ccc;
    }

.tabcontent {
  display: none;
  padding: 6px 0px;
  border-top: none;
}



.CasovaOsa {
  width: 100%;
  /*width: 1000px;*/
}

.CasovaOsa-ScrollView {
  padding: 0;
}

/*.col-4 {
  flex: 0 0 auto;
  width: 33.33333333%;
}
*/



/* Styl pro úzké zobrazení, např. pod 768px (mobile, tablet) */
@media only screen and (max-width: 710px) {
  .zarovnany-prvek .button4historieVelkaScreen {
    display: none;
  }


  .zarovnany-prvek .button4historieMalaScreen {
    display: flex;
  }


  /*  .zarovnany-prvek button {
    font-size: 8px;
  }

  .zarovnany-prvek .button4potvrdit {
    font-size: 14px;
  }*/
}




/* Styl pro úzké zobrazení, např. pod 768px (mobile, tablet) */
@media only screen and (max-width: 576px) {

  .timeline-isweek {
    margin-top: -20px;
    margin-bottom: 20px;
    height: 70px;
  }

  .is-week {
    height: 25px;
    width: 25px;
  }

  /*  .timeline {
    width:90%;
  }
*/
  .col-4 {
    width: 100%;
  }


  .CasovaOsa {
    margin-left: 5px;
    /*margin-right: 50px;*/
  }

  .CasovaOsa-ScrollView {
    padding-right: 10px;
  }


  .cinnosti-table-div {
    margin: 0px 0px 0px 0px;
    padding: 0px 0px 0px 0px;
  }

  .guardian-button {
    width: 25px;
    height: 25px;
    border: 1px solid lightgreen;
    /*display: none;*/
    border-radius: 50%;
  }

    .guardian-button.konec {
      border: 1px solid red;
    }

  .scroll-view-horizontal {
    width: 100%;
    padding: 10px 0px 10px 0px;
  }

  .timeline-line {
    top: 48%;
  }

  .timeline-event {
    height: 3px;
    top: 47%;
    margin-left: 16px;
    padding-top: 0px;
    border: 1px solid LightSkyblue;
  }

  .shadow-x {
    box-shadow: 0 10px 10px rgba(0, 0, 0, 255);
    background-color: yellow;
  }


  .vnejsi-prvek {
    display: flow; /* Místo flex dáme block, aby byly prvky nad sebou */
  }

  .vnitrni-prvek, .zarovnany-prvek {
    margin-bottom: 10px; /* Vytvoříme mezery mezi prvky */
    /*width: 100%;*/ /* Roztáhneme je na celou šířku */
  }

  li {
    align-self: flex-start;
    padding: 0px;
  }



  /*  .scroll-view-horizontal {
    width: 350px;
  }*/



  /*    .zarovnany-prvek button {
      font-size: 14px;
    }*/
  /*    .zarovnany-prvek .button4historieVelkaScreen {
      display: flex;
    }


    .zarovnany-prvek .button4historieMalaScreen {
      display: none;
    }*/

  .cislo_schranky {
    /*margin-top: 60px;*/
  }
}
