.notification {
 padding-left: 20px;
 padding-right: 20px;
 white-space: nowrap;
 position: fixed;
 height: 50px;
 min-width: 300px;
 line-height: 50px;
 text-align: center;
 vertical-align: middle;
 border-radius: 3px;
 -webkit-box-shadow: 5px 5px 20px -6px rgba(0,0,0,1);
 -moz-box-shadow: 5px 5px 20px -6px rgba(0,0,0,1);
 box-shadow: 5px 5px 20px -6px rgba(0,0,0,1);
 right: 20px;
 z-index: 9999;
}

.notification-success {
 background-color: lightgreen;
 color: black;
}

.notification-info {
 background-color: lightgray;
 color: black;
}

.notification-warning {
 background-color: orange;
 font-weight: bold;
 color: White;
}

.notification-error {
 background-color: red;
 font-weight: bold;
 color: white;
}

.dist-tooltip {
 position: relative;
 display: flex;
 justify-content: center;
}

 .dist-tooltip .tooltiptext {
  visibility: hidden;
  background-color: #555;
  width: max-content;
  color: #fff;
  text-align: center;
  padding: 0.5rem;
  position: absolute;
  z-index: 1;
  top: calc(100% + 2px);
  opacity: 0;
  text-wrap: avoid;
  transition: opacity 0.3s;
 }

/*.dist-tooltip .tooltiptext::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #555 transparent transparent transparent;
 }*/

.dist-kosik-tabulka-radek .dist-tooltip:hover .tooltiptext {
 visibility: visible;
 opacity: 1;
}

.dist-kosik-tabulka-radek .dist-tooltip .tooltiptext:hover {
 visibility: hidden;
 opacity: 0;
}

.dist-container {
 position: fixed;
 display: grid;
 grid-template-columns: 1fr;
 grid-template-rows: 67px 1fr;
 gap: 0px 0px;
 grid-auto-flow: row;
 width: 100vw;
 height: 100vh;
}

.dist-header {
 grid-area: 1 / 1 / 2 / 2;
 background-color: #008533;
 color: white;
}

.dist-header-content {
 display: flex;
 height: 100%;
}

 .dist-header-content > div {
  align-self: center;
 }

 .dist-header-content div:nth-child(2) {
  margin-left: auto;
 }

 .dist-header-content > div > img {
  height: 41px;
  margin-left: 31px;
  cursor: pointer;
 }

.dist-content {
 grid-area: 2 / 1 / 3 / 2;
 background-color: white;
}

.dist-content-layout {
 display: grid;
 grid-template-columns: 190px 1fr;
 grid-template-rows: 1fr;
 grid-auto-rows: 1fr;
 gap: 0px 0px;
 grid-auto-flow: row;
 grid-template-areas:
  "dist-left-sider dist-body";
 height: 100%;
}

.dist-left-sider {
 grid-area: dist-left-sider;
 background-color: #F6F7F9;
 border-right: 1px solid #D6D6D6;
}

.dist-body {
 margin-top: 0.5rem;
 padding-left: 0.5rem;
 padding-right: 0.5rem;
 padding-bottom: 0.5rem;
 grid-area: dist-body;
 height: calc(100vh - 67px);
 overflow-y: auto;
}

.dist-left-menu {
 margin-top: 0.5rem;
 display: grid;
 grid-template-columns: 65px 1fr;
 grid-auto-rows: 1fr;
 gap: 0px 0px;
 grid-auto-flow: row;
 font-size: 1.5rem;
 text-align: center;
 align-items: center;
 color: #737F89;
}

 .dist-left-menu > div > div {
  cursor: pointer;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
 }

  .dist-left-menu > div > div:nth-child(2n) {
   display: flex;
   height: 100%;
  }

  .dist-left-menu > div > div:nth-child(2n+1) {
   padding-left: 10px;
  }

  .dist-left-menu > div > div:nth-child(2n) > div {
   text-align: left;
   font-size: 1rem;
   align-self: center;
  }

 .dist-left-menu .dist-active {
  font-weight: bold;
  color: #535353;
 }

.dist-left-menu-row {
 display: contents;
}

 .dist-left-menu-row:hover div {
  background-color: #D4D4D6;
  color: #535353;
 }

.dist-loader {
 position: absolute;
 display: flex;
 justify-content: center;
 top: 0px;
 bottom: 0px;
 left: 0px;
 right: 0px;
 background-color: lightgray;
 opacity: 80%;
 font-weight: bold;
 font-size: 1.5rem;
 z-index: 999;
}

 .dist-loader > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-self: flex-start;
  margin-top: 150px;
 }

  .dist-loader > div > .spinner {
   border: 8px solid #f3f3f3;
   border-radius: 50%;
   border-top: 8px solid #3498db;
   width: 70px;
   height: 70px;
   -webkit-animation: spin 2s linear infinite; /* Safari */
   animation: spin 2s linear infinite;
  }

  .dist-loader > div > .break {
   flex-basis: 100%;
  }

  .dist-loader > div > .loader-text {
   color: black;
  }

.dist-kat {
 border: 1px solid lightgray;
 background-color: #F9FAFC;
 padding: 0.3rem;
}

 .dist-kat hr {
  margin: 0.3rem;
 }

 .dist-kat .dist-kat-label {
  text-align: center;
  font-weight: bold;
  margin-bottom: 0.5rem;
 }

.dist-kat-container {
 display: flex;
 flex-wrap: wrap;
}

 .dist-kat-container > div {
  align-self: center;
  border: 1px solid black;
  background-color: #008533;
  color:white;
  padding: 0.3rem 0.5rem 0.2rem 0.5rem;
  margin: 0.3rem;
  cursor: pointer;
 }

  .dist-kat-container > div.selected {
   background-color: #00FF62;
   color: black;   
  }

 .dist-kat-container > div:hover {
  background-color: #00993B;
  color:white;
 }

.dist-kat-sel {
 display: flex;
 flex-wrap: wrap;
}

 .dist-kat-sel > div {
  align-self: center;
  border: 1px solid lightgray;
  background-color: white;
  padding: 0.3rem 0.5rem 0.2rem 0.5rem;
  margin: 0.3rem;
  cursor: pointer;
 }

.dist-zbozi-typ-seznamu {
 display: flex;
 position: sticky;
 position: -webkit-sticky; /* Safari */
 top: 0px;
 flex-wrap: wrap;
 z-index: 1;
 background-color: white;
}

 .dist-zbozi-typ-seznamu.kosik {
  top: -1px;
 }

 .dist-zbozi-typ-seznamu > div {
  display: flex;
  flex-wrap: nowrap;
  align-self: center;
  padding: 0.3rem 0.5rem 0.2rem 0.5rem;
  margin: 0.3rem 0.3rem 0.3rem 0rem;
  cursor: pointer;
  border: 1px solid #535353;
  background-color: white;
  color: #535353;
 }

  .dist-zbozi-typ-seznamu > div.dist-btn-do-kosiku {
   margin-left: auto;
   margin-right: 0px;
   border: 1px solid lightgray;
   background-color: #00FF62;
  }

  .dist-zbozi-typ-seznamu > div.selected {
   background-color: #535353;
   color: white;
  }

  .dist-zbozi-typ-seznamu > div.disabled {
   background-color: #8FFFB8;
   color: lightgray;
   cursor: default;
  }

  .dist-zbozi-typ-seznamu > div:not(.disabled):hover {
   background-color: lightgray;
   color: black;
  }

  .dist-zbozi-typ-seznamu > div.dist-btn-do-kosiku:not(.disabled):hover {
   background-color: #28FF6A;
   color: black;
  }

  .dist-zbozi-typ-seznamu > div > div:nth-child(1) {
   align-self: center;
   font-size: 1.2rem;
   padding-right: 0.3rem;
  }

  .dist-zbozi-typ-seznamu > div > div:nth-child(2) {
   align-self: center;
  }

  .dist-zbozi-typ-seznamu > div.dist-odstr-z-kosiku {
   margin-left: auto;
   margin-right: 0px;
   border: 1px solid lightgray;
   background-color: #fa5935;
   color: white;
  }

   .dist-zbozi-typ-seznamu > div.dist-odstr-z-kosiku:not(.disabled):hover {
    background-color: #fc342e;
    color: white;
   }

   .dist-button.disabled, .dist-zbozi-typ-seznamu > div.dist-odstr-z-kosiku.disabled {
    background-color: lightgray;
    color: gray;
    cursor: default;
   }

.dist-zbozi-hledat {
 position: sticky;
 position: -webkit-sticky; /* Safari */
 top: calc(2.6rem + 6px);
 z-index: 1;
 background-color: white;
}

.dist-obj-hledat {
 position: sticky;
 position: -webkit-sticky; /* Safari */
 top: 0px;
 z-index: 1;
 background-color: white;
 padding-top: 3px
}

.dist-zbozi-tabulka {
 display: grid;
 background-color: white;
 color: black;
 grid-template-columns: max-content max-content max-content 1fr max-content max-content max-content max-content;
}

.dist-zbozi-tabulka.obj {
 grid-template-columns: max-content max-content 1fr max-content max-content max-content;
}

 .dist-zbozi-tabulka > div > div {
  border-bottom: 1px solid lightgray;
  padding: 0.3rem 0.5rem 0.2rem 0.5rem;
 }

 .dist-zbozi-tabulka .div-hlavicka > div {
  display: flex;
  position: sticky;
  position: -webkit-sticky; /* Safari */
  top: calc(2.6rem + 5px + 2.1rem );
  background-color: #535353;
  border-top: 1px solid #535353;
  border-bottom: 1px solid #535353;
  color: white;
  text-align:center;
  font-weight: bold;
  height: 100%;
  user-select: none;
 }

 .dist-zbozi-tabulka .div-hlavicka > div {
  cursor: url('../img/cursor/angle-double-down-solid.svg') 6 12,auto;
 }

  .dist-zbozi-tabulka .div-hlavicka > div.vzestupne {
   cursor: url('../img/cursor/angle-double-up-solid.svg') 6 12,auto;
  }

  .dist-zbozi-tabulka .div-hlavicka > div > div {
   align-self: center;
  }

   .dist-zbozi-tabulka .div-hlavicka > div > div:nth-child(2) {
    flex-grow: 2;
   }

.dist-zbozi-tabulka-radek {
 display: contents;
}

 .dist-zbozi-tabulka-radek:not(.div-hlavicka) > div:nth-last-child(-n+4),
 .dist-zbozi-tabulka-radek:not(.div-hlavicka) > div:nth-child(-n+2),
 .dist-zbozi-tabulka-radek:not(.div-hlavicka) .div-hlavicka > div:nth-last-child(-n+4) > div,
 .dist-zbozi-tabulka-radek:not(.div-hlavicka) .div-hlavicka > div:nth-child(-n+2) > div {
  text-align: center;
 }

.dist-zbozi-tabulka.obj:not(.div-hlavicka) > .dist-zbozi-tabulka-radek > div:nth-child(3) {
 text-align: left;
}

.dist-zbozi-tabulka.obj > .dist-zbozi-tabulka-radek:not(.div-hlavicka) > div:nth-child(4)
, .dist-zbozi-tabulka.obj > .dist-zbozi-tabulka-radek:not(.div-hlavicka) > div:nth-child(5)
, .dist-zbozi-tabulka.obj > .dist-zbozi-tabulka-radek:not(.div-hlavicka) > div:nth-child(6) {
 text-align: right;
}

 .dist-zbozi-tabulka-radek.selected > div {
  background-color: #00FF62;
 }

 .dist-zbozi-tabulka-radek:not(.div-hlavicka):hover > div {
  background-color: lightgray;
  cursor: pointer;
 }
 /*faktury*/
.dist-fakt-tabulka {
 display: grid;
 background-color: white;
 color: black;
 grid-template-columns: max-content max-content max-content max-content 1fr max-content max-content; 
}

.dist-fakt-tabulka-radek {
 display: contents;
}

 .dist-fakt-tabulka-radek:not(.div-hlavicka):hover > div {
  background-color: lightgray;
  cursor: pointer;
 }

 .dist-fakt-tabulka-radek > div {
  border-bottom: 1px solid lightgray;
  padding: 0.3rem 0.5rem 0.2rem 0.5rem;
 }

 .dist-fakt-tabulka-radek > div:nth-child(1),
 .dist-fakt-tabulka-radek > div:nth-child(2),
 .dist-fakt-tabulka-radek > div:nth-child(3),
 .dist-fakt-tabulka-radek > div:nth-child(6),
 .dist-fakt-tabulka-radek > div:nth-child(7) {
  text-align: center;
 }

 .dist-fakt-tabulka-radek.uhrazeno > div, input.uhrazeno {
  background-color:#b6fcb8;
 }

 .dist-fakt-tabulka-radek.neuhrazeno > div, input.neuhrazeno {
  background-color: #feffa1;
 }

 .dist-fakt-tabulka-radek.po-splatnosti > div, input.po-splatnosti {
  background-color: #ff9182;
 }

 .dist-fakt-tabulka-radek:not(.div-hlavicka) > div:nth-child(4) {
  text-align: right;
 }

 .dist-fakt-tabulka-radek.div-hlavicka > div {
  display: flex;
  position: sticky;
  position: -webkit-sticky; /* Safari */
  top: calc(2.05rem + 3px);
  background-color: #535353;
  border-top: 1px solid #535353;
  border-bottom: 1px solid #535353;
  color: white;
  font-weight: bold;
  text-align: center;
  height: 100%;
  user-select: none;
  cursor: url('../img/cursor/angle-double-down-solid.svg') 6 12,auto;
 }

  .dist-fakt-tabulka-radek.div-hlavicka > div.vzestupne {
   cursor: url('../img/cursor/angle-double-up-solid.svg') 6 12,auto;
  }

  .dist-fakt-tabulka-radek.div-hlavicka > div > div {
   align-self: center;
  }

   .dist-fakt-tabulka-radek.div-hlavicka > div > div:nth-child(2) {
    flex-grow: 2;
   }
 /*objednávky*/
.dist-obj-tabulka {
 display: grid;
 background-color: white;
 color: black;
 grid-template-columns: max-content max-content max-content max-content 1fr max-content;
}

.dist-obj-tabulka-radek {
 display: contents;
}

 .dist-obj-tabulka-radek:not(.div-hlavicka):hover > div {
  background-color: lightgray;
  cursor: pointer;
 }

 .dist-obj-tabulka-radek > div {
  border-bottom: 1px solid lightgray;
  padding: 0.3rem 0.5rem 0.2rem 0.5rem;
 }

  .dist-obj-tabulka-radek > div:nth-child(1),
  .dist-obj-tabulka-radek > div:nth-child(2),
  .dist-obj-tabulka-radek > div:nth-child(3),
  .dist-obj-tabulka-radek > div:nth-child(6) {
   text-align: center;
  }

 .dist-obj-tabulka-radek:not(.div-hlavicka) > div:nth-child(4) {
  text-align: right;
 }

 .dist-obj-tabulka-radek.div-hlavicka > div {
  display: flex;
  position: sticky;
  position: -webkit-sticky; /* Safari */
  top: calc(2.05rem + 3px);
  background-color: #535353;
  border-top: 1px solid #535353;
  border-bottom: 1px solid #535353;
  color: white;
  font-weight: bold;
  text-align: center;
  height: 100%;
  user-select: none;
  cursor: url('../img/cursor/angle-double-down-solid.svg') 6 12,auto;
 }

  .dist-obj-tabulka-radek.div-hlavicka > div.vzestupne {
   cursor: url('../img/cursor/angle-double-up-solid.svg') 6 12,auto;
  }

  .dist-obj-tabulka-radek.div-hlavicka > div > div {
   align-self: center;
  }

   .dist-obj-tabulka-radek.div-hlavicka > div > div:nth-child(2) {
    flex-grow: 2;
   }

.dist-obj-hlavicka {
 display: grid;
 grid-template-columns: 1fr;
 grid-auto-rows: auto;
 grid-gap: 0.5rem 0.5rem;
 align-items: baseline;
}

 .dist-obj-hlavicka > div:nth-child(2n+1) {
  font-weight: bold;
 }

 .dist-obj-hlavicka > div:nth-last-child(-n+2) {
  font-weight: bold;
  font-size: 1.5rem;
 }

@media only screen and (min-width: 568px) {
 .dist-obj-hlavicka {
  display: grid;
  grid-template-columns: max-content 1fr;
  grid-auto-rows: auto;
  grid-gap: 0.5rem 0.5rem;
  align-items: baseline;
 }
}

.dist-kosik-tabulka {
 display: grid;
 background-color: white;
 color: black;
 grid-template-columns: max-content max-content 1fr max-content max-content max-content max-content max-content max-content max-content max-content;
}

 .dist-kosik-tabulka > div > div {
  border-bottom: 1px solid lightgray;
  padding: 0.3rem 0.5rem 0.2rem 0.5rem;
 }

 .dist-kosik-tabulka .div-hlavicka > div {
  display: flex;
  position: sticky;
  position: -webkit-sticky; /* Safari */
  top: calc(2.6rem + 5px + 2.1rem );
  background-color: #535353;
  border-top: 1px solid #535353;
  border-bottom: 1px solid #535353;
  color: white;
  text-align:center;
  font-weight: bold;
  height: 100%;
  user-select: none;
  z-index: 1;
 }

 .dist-kosik-tabulka .div-hlavicka.kosik > div {
  top: calc(2.6rem + 4px);
 }

 .dist-kosik-tabulka .div-hlavicka > div {
  cursor: url('../img/cursor/angle-double-down-solid.svg') 6 12,auto;
 }

  .dist-kosik-tabulka .div-hlavicka > div.vzestupne {
   cursor: url('../img/cursor/angle-double-up-solid.svg') 6 12,auto;
  }

  .dist-kosik-tabulka .div-hlavicka > div > div {
   align-self: center;
  }

   .dist-kosik-tabulka .div-hlavicka > div > div:nth-child(2) {
    flex-grow: 2;
   }

.dist-kosik-tabulka-radek input {
 width: 5rem;
 height: 1.75rem;
 text-align: center;
}

.dist-kosik-tabulka-radek > div.no-side-padding {
 padding-left: 0px;
 padding-right: 0px;
}

.dist-kosik-tabulka-radek {
 display: contents;
}

 .dist-kosik-tabulka-radek.div-hlavicka > div {
  text-align: center;
 }

 .dist-kosik-tabulka-radek:not(.div-hlavicka) > div:nth-child(1),
 .dist-kosik-tabulka-radek:not(.div-hlavicka) > div:nth-child(2),
 .dist-kosik-tabulka-radek:not(.div-hlavicka) > div:nth-child(4),
 .dist-kosik-tabulka-radek:not(.div-hlavicka) > div:nth-child(6),
 .dist-kosik-tabulka-radek:not(.div-hlavicka) > div:nth-child(7),
 .dist-kosik-tabulka-radek:not(.div-hlavicka) > div:nth-child(8),
 .dist-kosik-tabulka-radek:not(.div-hlavicka) > div:nth-child(9) {
  text-align: center;
 }

 .dist-kosik-tabulka-radek:not(.div-hlavicka) > div:nth-child(3) {
  text-align: left;
 }

 .dist-kosik-tabulka-radek:not(.div-hlavicka) > div:nth-child(5)
 , .dist-kosik-tabulka-radek:not(.div-hlavicka) > div:nth-child(10)
 , .dist-kosik-tabulka-radek:not(.div-hlavicka) > div:nth-child(11) {
  text-align: right;
 }

 .dist-kosik-tabulka-radek.selected > div {
  background-color: #00FF62;
 }

 .dist-kosik-tabulka-radek:not(.div-hlavicka):hover > * {
  background-color: lightgray;
  cursor: pointer;
 }

.dist-zbozi-detaily-trideni {
 display: flex;
 position: sticky;
 position: -webkit-sticky; /* Safari */
 top: calc(2.6rem + 5px + 2.1rem );
 flex-wrap: wrap;
 padding: 0.3rem 0.5rem 0.2rem 0.5rem;
 align-items: center;
 background-color: white;
 z-index: 1;
}

 .dist-zbozi-detaily-trideni.kosik {
  top: calc(2.6rem + 4px);
 }

 .dist-zbozi-detaily-trideni select {
  all: initial;
  font-family: inherit;
  padding: 0.3rem 0.5rem 0.2rem 0.5rem;
  margin: 0rem 0.5rem 0rem 0rem;
  border: 1px solid lightgray;
 }

 .dist-zbozi-detaily-trideni > * {
  margin-right: 0.5rem;
 }

 .dist-zbozi-detaily-trideni select:focus {
  border: 1px solid #737F89;
  -webkit-box-shadow: 0px 0px 3px 1px rgba(0,0,0,0.66);
  box-shadow: 0px 0px 3px 1px rgba(0,0,0,0.66);
 }

.dist-zbozi-detaily {
 display: flex;
 flex-wrap: wrap;
 border-top: 1px solid lightgray;
}

 .dist-zbozi-detaily > div > div:not(.kosik-detail-mnozstvi) {
  display: flex;
  flex-wrap: wrap;
  background-color: white;
  align-items: center;
 }

 .dist-zbozi-detaily > div:hover, .dist-zbozi-detaily > div:hover > div {
  background-color: lightgray;
  cursor: pointer;
 }

 .dist-zbozi-detaily > div.selected, .dist-zbozi-detaily > div.selected > div {
  background-color: #00FF62;
 }

 .dist-zbozi-detaily > div {
  display: flex;
  flex-wrap: wrap;
  flex-basis: 100%;
  padding: 0.3rem 0.5rem 0.2rem 0.5rem;
  border-bottom: 1px solid lightgray;
 }

  .dist-zbozi-detaily > div > div:nth-child(2) {
   margin-left: auto;
  }
  /*.dist-zbozi-detaily.kosik > div > div:nth-child(2) {
  margin-left: 0px;
 }*/
  .dist-zbozi-detaily > div > div > div {
   margin-right: 0.75rem;
  }

 .dist-zbozi-detaily i {
  font-size: 1.5rem;
 }

 .dist-zbozi-detaily .zbozi-detail-obr {
  display: flex;
  height: calc(6rem + 2px);
  width: calc(6rem + 2px);
  background-color: #F6F7F9;
  align-items: center;
  justify-content: center;
 }

 .dist-zbozi-detaily .kosik-detail-mnozstvi {
  display: grid;
  grid-template-columns: 1fr;
  grid-auto-rows: auto;
  grid-gap: 0.3rem 0.3rem;
  align-items: center;
 }

@media only screen and (min-width: 568px) {
 .dist-zbozi-detaily .kosik-detail-mnozstvi {
  display: grid;
  grid-template-columns: max-content auto;
  grid-auto-rows: auto;
  grid-gap: 0rem 0.3rem;
  align-items: center;
 }
}

.dist-zbozi-detaily .kosik-detail-cena {
 font-weight: bold;
 font-size: 1.3rem;
}

.dist-zbozi-detaily .kosik-detail-mnozstvi input {
 width: 5rem;
 height: 1.75rem;
 text-align: center;
}

.kosik-karty-mnozstvi .kosik-detail-mnozstvi {
 display: grid;
 grid-template-columns: max-content auto;
 grid-auto-rows: auto;
 grid-gap: 0rem 0.3rem;
 align-items: center;
}
 /*.kosik-karty-mnozstvi .kosik-detail-mnozstvi > div:nth-child(2n+1) {
 font-size:0.8rem;
}*/
 .kosik-karty-mnozstvi .kosik-detail-mnozstvi input {
  width: 5rem;
  height: 1.75rem;
  text-align: center;
 }

.dist-zbozi-detaily .zbozi-detail-info > div:nth-child(1) {
 font-size: 1.5rem;
 font-weight: bold;
}

.dist-zbozi-detaily .zbozi-detail-cena {
 text-align: center;
}

 .dist-zbozi-detaily .zbozi-detail-cena > div:nth-child(1) {
  font-size: 2rem;
  font-weight: bold;
 }

  .dist-zbozi-detaily .zbozi-detail-cena > div:nth-child(1) > span {
   font-size: 1.5rem;
  }

.dist-zbozi-detaily .zbozi-detail-obr > img {
 max-height: 6rem;
 max-width: 6rem;
}

.dist-zbozi-karty {
 display: grid;
 grid-gap: 10px;
 grid-template-columns: repeat(auto-fill, minmax(21rem, 1fr));
 grid-auto-rows: minmax(30rem, auto);
 justify-content: center;
}

 .dist-zbozi-karty > div {
  display: flex;
  flex-wrap: wrap;
  flex-basis: 100%;
  justify-content: center;
  align-content: flex-start;
  width: 100%;
  height: 100%;
  padding: 0.3rem 0.5rem 0.2rem 0.5rem;
  margin: 0rem 0.5rem 0.5rem 0rem;
  border: 1px solid lightgray;
  background-color: white;
  cursor: pointer;
 }

  .dist-zbozi-karty > div:hover {
   background-color: lightgray;
   cursor: pointer;
  }

   .dist-zbozi-karty > div:hover div {
    border-color: white;
   }

  .dist-zbozi-karty > div.selected {
   background-color: #00FF62;
  }

 .dist-zbozi-karty .zbozi-karty-nazev, .dist-zbozi-info .zbozi-info-nazev {
  width: 100%;
  font-size: 1.5rem;
  font-weight: bold;
  text-align: center;
 }

 .dist-zbozi-karty .zbozi-karty-cena {
  width: 100%;
  text-align: center;
  font-size: 2rem;
  font-weight: bold;
 }

  .dist-zbozi-karty .zbozi-karty-cena span {
   font-size: 1.5rem;
  }

 .dist-zbozi-karty .kosik-karty-cena {
  width: 100%;
  text-align: center;
  font-size: 1.5rem;
  font-weight: bold;
 }

  .dist-zbozi-karty .kosik-karty-cena span {
   font-size: 1rem;
  }

.kosik-karty-mnozstvi .kosik-karty-cena {
 width: 100%;
 text-align: right;
 font-size: 1.5rem;
 font-weight: bold;
}

 .kosik-karty-mnozstvi .kosik-karty-cena span {
  font-size: 1rem;
 }

.dist-zbozi-karty .zbozi-karty-obr {
 width: 100%;
 display: flex;
 padding-bottom: 0.75rem;
 border-bottom: 1px solid lightgray;
 justify-content: center;
}

 .dist-zbozi-karty .zbozi-karty-obr > div {
  display: flex;
  position: relative;
  height: 18rem;
  width: 18rem;
  background-color: #F6F7F9;
  align-items: center;
  justify-content: center;
 }

  .dist-zbozi-karty .zbozi-karty-obr > div > i {
   position: absolute;
   top: 0.5rem;
   right: 0.5rem;
   font-size: 1.5rem;
  }

 .dist-zbozi-karty .zbozi-karty-obr img {
  max-height: 17rem;
  max-width: 17rem;
 }

.dist-zbozi-karty .zbozi-karty-info, .dist-zbozi-karty .zbozi-karty-sklad {
 display: flex;
 width: 100%;
 padding: 0.75rem;
 border-bottom: 1px solid lightgray;
 justify-content: space-between;
}

.dist-zbozi-karty .kosik-karty-mnozstvi {
 display: flex;
 width: 100%;
 padding: 0.75rem;
 justify-content: space-between;
}

 .dist-zbozi-karty .kosik-karty-mnozstvi > div:last-child {
  display: grid;
  grid-template-columns: 1fr;
  text-align: right;
 }

.dist-profil-back {
 position: fixed;
 top: 0px;
 right: 0px;
 bottom: 0px;
 left: 0px;
 background-color: #535353;
 opacity: 0.6;
 z-index: 9000;
}

.dist-profil-info {
 position: fixed;
 display: flex;
 overflow: auto;
 flex-wrap: wrap;
 align-items: center;
 justify-content: center;
 top: 0px;
 right: 0px;
 bottom: 0px;
 left: 0px;
 z-index: 9001;
}

 .dist-profil-info > div {
  position: relative;
  background-color: white;
  padding: 1rem;
  margin: 1rem;
  min-width: 20rem;
  max-width: 1000px;
  width: 70vw;
 }

.dist-profil-hlavicka {
 width: 100%;
 font-size: 2rem;
 text-align: center;
 padding: 0.5rem;
 border-bottom: 1px solid lightgray;
}

.dist-profil-polozky {
 margin: 1rem;
 display: grid;
 grid-template-columns: 1fr;
 align-items: baseline;
 grid-gap: 0.75rem;
}

.dist-profil-heslo-polozky {
 margin: 1rem;
 display: grid;
 grid-template-columns: 1fr;
 grid-gap: 0.75rem;
}

@media only screen and (min-width: 568px) {
 .dist-profil-polozky {
  margin: 1rem;
  display: grid;
  grid-template-columns: max-content 1fr;
  align-items: baseline;
  grid-gap: 0.75rem;
 }

 .dist-profil-heslo-polozky {
  margin: 1rem;
  display: grid;
  grid-template-columns: max-content 1fr;
  grid-gap: 0.75rem;
 }

  .dist-profil-heslo-polozky > div:last-child {
   grid-column: span 2;
   justify-self: right;
  }
}

.dist-profil-polozky > div:nth-child(2n+1) {
 font-weight: bold;
}

.dist-profil-polozky > div:nth-child(2n) {
 font-size: 1.2rem;
}

.dist-profil-heslo-hlavicka {
 width: 100%;
 font-size: 1.5rem;
 text-align: center;
 padding: 0.5rem;
 border-bottom: 1px solid lightgray;
}

.dist-button-heslo {
 width: max-content;
 margin-right: 0rem;
 background-color: #337AB7;
 color: white;
 padding: 0.5rem 1rem 0.5rem 1rem;
 border: 1px solid #2D6BA1;
 user-select: none;
 cursor: pointer;
}

 .dist-button-heslo.dist-disabled {
  background-color: #8CB8E3;
  border-color: #8CB8E3;
  color: lightgray;
  cursor: default;
 }

 .dist-button-heslo:not(.dist-disabled):hover {
  background-color: #2D6BA1;
  -webkit-box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.75);
  -moz-box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.75);
  box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.75);
 }

.dist-close-modal {
 position: absolute;
 font-size: 1.5rem;
 top: 0.5rem;
 right: 0.5rem;
 cursor: pointer;
}

.dist-zbozi-info-back {
 position: fixed;
 top: 0px;
 right: 0px;
 bottom: 0px;
 left: 0px;
 background-color: #535353;
 opacity: 0.6;
 z-index: 9000;
}

.dist-zbozi-info {
 position: fixed;
 display: flex;
 overflow: auto;
 flex-wrap: wrap;
 align-items: center;
 justify-content: center;
 top: 0px;
 right: 0px;
 bottom: 0px;
 left: 0px;
 z-index: 9001;
}

 .dist-zbozi-info > div {
  background-color: white;
  padding: 1rem;
  margin: 1rem;
  min-width: 20rem;
  max-width: 800px;
  width: 50vw;
 }

 .dist-zbozi-info .zbozi-info-obr {
  width: 100%;
  display: flex;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid lightgray;
  justify-content: center;
 }

  .dist-zbozi-info .zbozi-info-obr > div {
   display: flex;
   position: relative;
   min-height: 180px;
   min-width: 180px;
   height: calc(50vw - 2rem);
   width: calc(50vw - 2rem);
   max-height: 750px;
   max-width: 750px;
   background-color: #F6F7F9;
   align-items: center;
   justify-content: center;
  }

  .dist-zbozi-info .zbozi-info-obr img {
   max-height: 95%;
   max-width: 95%;
  }

.dist-kosik-hlavicka {
 display: grid;
 grid-template-columns: 1fr;
 grid-auto-rows: auto;
 grid-gap: 0.3rem 0.3rem;
 align-items: center;
}

@media only screen and (min-width: 568px) {
 .dist-kosik-hlavicka {
  display: grid;
  grid-template-columns: max-content 1fr auto;
  grid-auto-rows: auto;
  grid-gap: 0.3rem 0.3rem;
  align-items: center;
 }
}

.dist-kosik-hlavicka > div:not(:nth-last-child(-n+3)):nth-child(2n) {
 grid-column: span 2;
}

.dist-kosik-hlavicka > div {
 padding: 3px;
}

 .dist-kosik-hlavicka > div:nth-last-child(-n+3):not(:last-child) {
  font-size: 1.5rem;
  font-weight: bold;
 }

 .dist-kosik-hlavicka > div:last-child {
  text-align: center;
  font-size: 1.1rem;
  font-weight: bold;
  background-color: limegreen;
  color: black;
  min-width: 15rem;
  max-width: 20rem;
  width: 50vw;
  padding: 0.3rem 0.5rem 0.2rem 0.5rem;
  margin: 0.3rem 0rem 0.3rem 0rem;
  border: 1px solid black;
 }

 .dist-kosik-hlavicka > div:last-child.dist-disabled {
  background-color: #66fa89;
  color:lightgray;
  border-color:lightgray;
 }

  .dist-kosik-hlavicka > div:last-child:not(.dist-disabled):hover {
   background-color: lime;
   cursor: pointer;
  }



.dist-button {
 padding: 0.3rem 0.5rem 0.2rem 0.5rem;
 margin: 0.3rem 0.3rem 0.3rem 0rem;
 cursor: pointer;
 border: 1px solid #535353;
 background-color: white;
 color: #535353;
}

.dist-button-horni-menu {
 margin-right: 0rem;
 padding: 0.5rem 1rem 0.5rem 1rem;
 user-select: none;
 cursor: pointer;
}

 .dist-button-horni-menu:hover {
  background-color: #006E2A;
 }

.dist-textinput {
 all: initial;
 font-family: inherit;
 padding: 0.3rem 0.5rem 0.2rem 0.5rem;
 margin: 0rem 0rem 0.3rem 0rem;
 border: 1px solid lightgray;
 width: calc(100% - 1rem - 2px);
}

 .dist-textinput.chyba {
  border-color: red;
 }

 .dist-textinput:focus {
  border: 1px solid #737F89;
  -webkit-box-shadow: 0px 0px 3px 1px rgba(0,0,0,0.66);
  box-shadow: 0px 0px 3px 1px rgba(0,0,0,0.66);
 }

.dist-input-warning {
 border-color: orangered;
}

.dist-select-editable {
 position: relative;
 top: 0px;
 left: 0px;
 padding: 0.3rem 0.5rem 0.2rem 0.5rem;
 margin: 0rem 0rem 0.3rem 0rem;
 height: 1.75rem;
 border: 1px solid lightgray;
 width: 100%;
}

 .dist-select-editable:focus-within {
  border: 1px solid #737F89;
  -webkit-box-shadow: 0px 0px 3px 1px rgba(0,0,0,0.66);
  box-shadow: 0px 0px 3px 1px rgba(0,0,0,0.66);
 }

 .dist-select-editable > select {
  all: initial;
  font-family: inherit;
  position: absolute;
  cursor: pointer;
  top: 0.1rem;
  left: 0.5rem;
  border: none;
  padding-right: 1rem;
  width: calc(100% - 2rem);
  margin: 0;
  height: 1.5rem;
  box-shadow: none;
  background: url('../img/cursor/caret-down-solid.svg') no-repeat top right;
 }

 .dist-select-editable > input {
  all: initial;
  font-family: inherit;
  position: absolute;
  top: 0.1rem;
  left: 0.5rem;
  width: calc(100% - 2.5rem);
  height: 1.5rem;
  border: none;
  box-shadow: none;
  background-color: white;
 }

.dist-dateinput {
 all: initial;
 font-family: inherit;
 padding: 0.3rem 0.5rem 0.2rem 0.5rem;
 margin: 0rem 0rem 0.3rem 0rem;
 border: 1px solid lightgray;
 width: calc(100% - 1rem - 2px);
}

 .dist-dateinput:focus {
  border: 1px solid #737F89;
  -webkit-box-shadow: 0px 0px 3px 1px rgba(0,0,0,0.66);
  box-shadow: 0px 0px 3px 1px rgba(0,0,0,0.66);
 }


.pytel {
 max-height: 300px;
 max-width: 300px;
 width: auto;
 height: auto;
 padding: 1rem;
 margin: 1rem;
 cursor: pointer;
}

 .pytel:hover {
  background-color: lightgray;
 }


.baleni-uprava-grid {
 display: grid;
 grid-template-columns: max-content 1fr;
 grid-gap: 10px;
 align-items: center;
}

.kategorie-uprava-grid {
 display: grid;
 grid-template-columns: max-content 1fr;
 grid-gap: 10px;
 align-items: center;
}

.baleni-grid-container {
 display: grid;
 grid-template-columns: auto auto auto auto auto auto;
 grid-gap: 1px 1px;
 padding: 1px;
 background-color: lightgray;
}

 .baleni-grid-container > * {
  background-color: white;
  text-align: center;
  padding: 10px;
 }

  .baleni-grid-container > * > i {
   cursor: pointer;
  }

 .baleni-grid-container > div:last-child {
  grid-column: span 6;
 }

  .baleni-grid-container > div:last-child:hover {
   background-color: #dedede;
   cursor: pointer;
  }

.select-editable {
 position: relative;
 width: 600px;
 height: calc(1.5em + .75rem + 2px);
}

 .select-editable select {
  position: absolute;
  cursor: pointer;
  top: 0px;
  left: 3px;
  border: none;
  width: 590px;
  margin: 0;
  height: calc(1.5em + .75rem);
  box-shadow: none;
 }

 .select-editable input {
  position: absolute;
  top: 0px;
  left: 5px;
  width: 571px;
  padding: 1px;
  padding-left: 5px;
  height: calc(1.5em + .75rem);
  border: none;
  box-shadow: none;
 }

  .select-editable select:focus, .select-editable input:focus {
   outline: none;
  }

.pointer {
 cursor: pointer;
}

.td-fit {
 width: 1px;
 white-space: nowrap;
}

.btn-obj {
 width: 190px;
}

.form-dist {
 padding-left: 15px;
 padding-right: 15px;
}

.seznam-dist {
 padding-top: 115px;
}

.seznam-obj {
 padding-top: 165px;
}

.seznam-obj-user {
 padding-top: 65px;
}

.seznam-obj-det {
 padding-top: 375px;
}

.seznam-obj-det-z {
 padding-top: 302px;
}

.seznam-dist tbody tr {
 cursor: pointer;
}

.hlavicka-dist {
 position: fixed;
 top: 0px;
 width: 100%;
 left: 0px;
 padding-top: 85px;
 padding-left: 180px;
 padding-right: 15px;
 padding-bottom: 15px;
 background-color: white;
}

.hlavicka-obj {
 position: fixed;
 top: 0px;
 width: 100%;
 left: 0px;
 padding-top: 85px;
 padding-left: 180px;
 padding-right: 15px;
 background-color: white;
}

.hlavicka-obj-2 {
 position: fixed;
 top: 240px;
 width: 100%;
 left: 0px;
 padding-top: 0px;
 padding-left: 180px;
 padding-right: 15px;
 padding-bottom: 15px;
 background-color: white;
}

.hlavicka-obj-det {
 position: fixed;
 top: 280px;
 width: 100%;
 left: 0px;
 padding-top: 0px;
 padding-left: 180px;
 padding-right: 15px;
 background-color: white;
}

.hlavicka-dist button {
 float: right;
}

.hlavicka-dist h3 {
 margin-bottom: 20px;
 float: left;
}

.hlavicka-dist input {
 margin-top: 10px;
 clear: both;
}

.hl-tab-dist {
 position: sticky;
 position: -webkit-sticky;
 top: 190px;
}

.hl-tab-obj {
 position: sticky;
 position: -webkit-sticky;
 top: 240px;
}

.hl-tab-obj-user {
 position: sticky;
 position: -webkit-sticky;
 top: 140px;
}

.hl-tab-obj-det {
 position: sticky;
 position: -webkit-sticky;
 top: 450px;
}

.hl-tab-obj-det-z {
 position: sticky;
 position: -webkit-sticky;
 top: 378px;
}

/* ------------------------- */
.menu-bocni {
 height: 100%;
 position: fixed;
 background-color: #f6f7f9;
 width: 170px;
 top: 0px;
 left: 0;
 z-index: 2;
 padding: 0px;
 margin: 0px;
 padding-left: 1px;
 padding-right: 1px;
 padding-top: 75px;
 color: #737F89;
 border-right: 1px solid #d6d6d6;
}

.menu-bocni-aktivni {
 font-weight: bold;
 color: #535353;
}

.menu-bocni-ul {
 padding: 0px;
 cursor: pointer;
}

.menu-bocni-li {
 list-style: none;
 text-decoration: none;
 align-content: center;
 height: 3rem;
 clear: both;
}

 .menu-bocni-li:hover {
  font-weight: bold;
  background-color: #dcdcdc;
  color: #404040
 }

.menu-bocni-sbal {
 position: absolute;
 bottom: 0px;
 right: 0px;
 font-size: 1.5rem;
}

.menu-bocni-text {
 padding-top: 0.75rem;
 padding-bottom: 0.75rem;
 float: left;
 font-size: 1rem;
}

.menu-bocni-i {
 padding: 0.75rem;
 line-height: 1.5rem;
 font-size: 1.5rem;
 float: left;
 width: 55px;
 text-align: center;
}

.hlavni-obsah {
 padding-top: 75px;
 padding-left: 180px;
 padding-right: 15px;
 padding-bottom: 15px;
}

.navbar-color {
 background-color: #008533;
}

/*.blazor-body {
 padding-top: 70px;
}*/

/*----------------------------------*/

html, body {
 font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a, .btn-link {
 color: #0366d6;
}

.btn-primary {
 color: #fff;
 background-color: #1b6ec2;
 border-color: #1861ac;
}

app {
 position: relative;
 display: flex;
 flex-direction: column;
}

.top-row {
 height: 3.5rem;
 display: flex;
 align-items: center;
}

.main {
 flex: 1;
}

 .main .top-row {
  background-color: #f7f7f7;
  border-bottom: 1px solid #d6d5d5;
  justify-content: flex-end;
 }

  .main .top-row > a, .main .top-row .btn-link {
   white-space: nowrap;
   margin-left: 1.5rem;
  }

  .main .top-row a:first-child {
   overflow: hidden;
   text-overflow: ellipsis;
  }

.sidebar {
 background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

 .sidebar .top-row {
  background-color: rgba(0,0,0,0.4);
 }

 .sidebar .navbar-brand {
  font-size: 1.1rem;
 }

 .sidebar .oi {
  width: 2rem;
  font-size: 1.1rem;
  vertical-align: text-top;
  top: -2px;
 }

 .sidebar .nav-item {
  font-size: 0.9rem;
  padding-bottom: 0.5rem;
 }

  .sidebar .nav-item:first-of-type {
   padding-top: 1rem;
  }

  .sidebar .nav-item:last-of-type {
   padding-bottom: 1rem;
  }

  .sidebar .nav-item a {
   color: #d7d7d7;
   border-radius: 4px;
   height: 3rem;
   display: flex;
   align-items: center;
   line-height: 3rem;
  }

   .sidebar .nav-item a.active {
    background-color: rgba(255,255,255,0.25);
    color: white;
   }

   .sidebar .nav-item a:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
   }

.content {
 padding-top: 1.1rem;
}

.navbar-toggler {
 background-color: rgba(255, 255, 255, 0.1);
}

.valid.modified:not([type=checkbox]) {
 outline: 1px solid #26b050;
}

.invalid {
 outline: 1px solid red;
}

.validation-message {
 color: red;
}

#blazor-error-ui {
 background: lightyellow;
 bottom: 0;
 box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
 display: none;
 left: 0;
 padding: 0.6rem 1.25rem 0.7rem 1.25rem;
 position: fixed;
 width: 100%;
 z-index: 1000;
}

 #blazor-error-ui .dismiss {
  cursor: pointer;
  position: absolute;
  right: 0.75rem;
  top: 0.5rem;
 }

@media (max-width: 767.98px) {
 .main .top-row:not(.auth) {
  display: none;
 }

 .main .top-row.auth {
  justify-content: space-between;
 }

 .main .top-row a, .main .top-row .btn-link {
  margin-left: 0;
 }
}

@media (min-width: 768px) {
 app {
  flex-direction: row;
 }

 .sidebar {
  width: 250px;
  height: 100vh;
  position: sticky;
  position: -webkit-sticky; /* Safari */
  top: 0;
 }

 .main .top-row {
  position: sticky;
  position: -webkit-sticky; /* Safari */
  top: 0;
 }

 .main > div {
  padding-left: 2rem !important;
  padding-right: 1.5rem !important;
 }

 .navbar-toggler {
  display: none;
 }

 .sidebar .collapse {
  /* Never collapse the sidebar for wide screens */
  display: block;
 }
}

/*RECONNECT*/
.my-reconnect-modal > div {
 position: fixed;
 top: 0;
 right: 0;
 width: 100%;
 height: 100vh;
 z-index: 9999;
 overflow: hidden;
 background-color: lightgray;
 color: black;
}

.reconnect-loader {
 width: 100%;
 height: 50vh;
 padding-top: calc(50vh - 90px);
 padding-bottom: 110px;
 padding-left: calc((100vw / 2) - 50px);
 align-content: center;
}

.reconnect-desc {
 width: 100%;
 height: 50vh;
 text-align: center;
}

 .reconnect-desc.h5 {
  line-height: 1.5rem;
 }

.components-reconnect-hide > div {
 display: none;
}

.components-reconnect-show > div {
 display: none;
}

.components-reconnect-show > .show {
 display: block;
}

.components-reconnect-failed > div {
 display: none;
}

.components-reconnect-failed > .failed {
 display: block;
}

.components-reconnect-refused > div {
 display: none;
}

.components-reconnect-refused > .refused {
 display: block;
}

/* LOADER*/
.loader {
 border: 16px solid #f3f3f3;
 border-radius: 50%;
 border-top: 16px solid #3498db;
 width: 100px;
 height: 100px;
 -webkit-animation: spin 2s linear infinite; /* Safari */
 animation: spin 2s linear infinite;
}

/* Safari */
@-webkit-keyframes spin {
 0% {
  -webkit-transform: rotate(0deg);
 }

 100% {
  -webkit-transform: rotate(360deg);
 }
}

@keyframes spin {
 0% {
  transform: rotate(0deg);
 }

 100% {
  transform: rotate(360deg);
 }
}

/*-----------------------------------------------------------------------------*/


