/*@import url('https://fonts.googleapis.com/css?family=Open+Sans');
@import url('https://fonts.googleapis.com/css?family=Roboto');*/
@import url('https://fonts.googleapis.com/css?family=Inter&display=swap&subset=latin-ext');
@import url('https://fonts.googleapis.com/css2?family=Exo+2&display=swap');

.webfont {
  font-family: "Libre Franklin", sans-serif;
}

html
{ height: 100%;
  width: 100vw;
  overflow-x: hidden;
}

*
{ margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body
{ font: 300 16px "Inter", arial, sans-serif;
  background: #eff2f7;
  height: 100%;
  /*color: #2b2b2b;*/
  color: #000;
  width: 100vw;
  overflow-x: hidden;
}

body::-webkit-scrollbar { 
  display: none; 
} 

p {
  padding: 0 0 20px 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 160%;
}

img
{ border: 0;}



h1 {
  margin: 0 0 15px 5px;
  font-weight: bold;
  font-size: 150%;
  /*font: bold 175% 'open sans', arial, sans-serif;*/
  color: #2b445e;
}

h2 { 
  margin: 0 0 15px 5px;
  font-weight: bold;
  font-size: 130%;
  /*font: bold 150% 'open sans', arial, sans-serif;*/
  color: #557DA5
}

h3 { 
  margin: 0 0 15px 5px;
  font-weight: bold;
  font-size: 110%;
  /*font: bold 125% 'open sans', arial, sans-serif;*/
  color: #2b445e
}

h4 {
  margin: 0 0 5px 5px;
  font-weight: normal;
  font-size: 110%;
  /*font: normal 125% 'open sans', arial, sans-serif;*/
  color: #2b445e;
}

h5 { 
  margin: 0 0 5px 5px;
  font-weight: normal;
  font-size: 110%;
  /*font: normal 125% 'open sans', arial, sans-serif;*/
  color: #557DA5}

h6 { 
  margin: 0 0 5px 5px;
  color: #2b445e;
  font-weight: normal;
  font-size: 100%;
  /*font: normal 110% 'open sans', arial, sans-serif;*/
}

a, a:hover
{ outline: none;
  text-decoration: underline;
  color: #2b445e}

a:hover
{ text-decoration: none;}

.left
{ float: left;
  width: auto;
  margin-right: 0px;}

.right
{ float: right; 
  width: auto;
  margin-left: 0px;}

.center
{ display: block;
  text-align: center;
  margin: 20px auto;}

blockquote
{ margin: 20px 0; 
  padding: 10px 20px 0 20px;
  border: 1px solid #E5E5DB;
  background: #FFF;}

ul
{ margin: 2px 0 22px 17px;}

ul li
{ list-style-type: circle;
  margin: 0 0 6px 0;
  font-weight: normal;
  font-size: 1.06em;
  /*font: normal 1.06em 'open sans', arial, sans-serif;*/
  padding: 0 0 4px 5px;}

ol
{ margin: 8px 0 22px 20px;}

ol li
{ margin: 0 0 11px 0;}

#main, #logo, #menubar, #site_content, #footer
{ width: 100%;
  margin-left: auto; 
  margin-right: auto;}

#site_content {
    box-shadow: 6px 6px 8px rgba(0, 0, 0, 0.1);
}

#header
{ background: #557DA5;  
  height: 107px;}

.logo-font {
  font-family: "Exo 2";
  font-weight: 400;
  font-style: normal;
  font-size: 320%;
}

.logo-font-dark {
  font-size: 100%;
  color: #2b445e;
}

#logo
{ max-width: 1450px;
  position: relative;
  height: 70px;  
  background: #557DA5 url('gradient.png') no-repeat;}

#logo #logo_text 
{ position: absolute; 
  top: -5px;
  left: 40px;}

#logo h1, #logo h2
{ border-bottom: 0;
  text-transform: none;
  margin: 0;}

#logo_text h1, #logo_text h1 a, #logo_text h1 a:hover 
{ padding: 12px 0 0 0;
  color: #FFF;
  letter-spacing: 0.1em;
  text-decoration: none;}

#logo_text h1 a .logo_colour
{ color: #2b445e;
  font-weight: normal;
  /*font: normal 100% 'open sans unicode', arial, sans-serif;*/
}

#logo_text h2
{ font-size: 100%;
  padding: 4px 0 0 0;
  color: #DDD;}

.menubar {
  max-width: 1450px;
  height: 37px;
  border-radius: 5px 5px 0 0;
  padding: 0;
  background: #2b445e;
  box-shadow: 6px 6px 8px rgba(0, 0, 0, 0.1);
}

#site_content
{ max-width: 1450px;
  width: 100%;
  margin: 0 auto 0 auto;
  padding: 20px 20px 20px 20px;
  border-radius: 0 0 5px 5px;
  background: #FFF;} 

.sidebar
{ float: right;
  width: 190px;
  padding: 0 15px 20px 15px;}

.sidebar ul
{ width: 178px; 
  padding: 4px 0 0 0; 
  margin: 4px 0 30px 0;}

.sidebar li
{ list-style: none; 
  padding: 0 0 7px 0; }

.sidebar li a, .sidebar li a:hover
{ padding: 0 0 0 40px;
  display: block;
  background: transparent url(link.png) no-repeat left center;} 

.sidebar li a.selected
{ color: #444;
  text-decoration: none;} 

#content
{ text-align: left;
  width: 100%;
  padding: 0;}

#content ul
{ margin: 2px 0 22px 0px;}

#content ul li
{ list-style-type: none;
  background: url(bullet.png) no-repeat;
  margin: 0 0 6px 0; 
  padding: 0 0 4px 25px;
  line-height: 1.5em;}

#footer
{ width: 878px;
  /*font: normal 100% 'open sans', arial, sans-serif;*/
  height: 33px;
  padding: 24px 0 5px 0;
  text-align: center; 
  background: #29425E url(footer.png) repeat-x;
  color: #FFF;
  text-transform: uppercase;
  letter-spacing: 0.1em;}

#footer a
{ color: #FFF;
  text-decoration: none;}

#footer a:hover
{ color: #FFF;
  text-decoration: underline;}

.search
{ color: #5D5D5D; 
  border: 1px solid #BBB; 
  width: 134px; 
  padding: 4px; 
  /*font: 100% 'open sans', arial, sans-serif;*/
}

#colours
{ height: 0px;
  text-align: right;
  padding: 66px 16px 0px 300px;}
  
.form_settings {
  margin: 15px 0 0 0;
}

.form_settings p
{ padding: 2px 0 2px 0;}
  
.form_settings .submit
{ font: 300 16px "Inter", arial, sans-serif;
  border: 1px solid;
  width: 150px;
  float: right;
  height: 34px;
  padding: 2px 0 3px 0;
  cursor: pointer; 
  background: #2b445e; 
  border-radius: 5px;
  color: #FFF;
}

.form_settings .submit_prev {
  background-image: url('/static/style/icons8-left-26.png');
  background-repeat: no-repeat;
  background-position: center;
  width: 34px;
}

.form_settings .submit_next {
  background-image: url('/static/style/icons8-right-26.png');
  background-repeat: no-repeat;
  background-position: center;
  width: 34px;
}

.checkbox
{ width: 18px;
  margin-left: 10px;
  margin-right: 10px;
  /*font: 100% 'open sans', arial;*/
  color: #6b6b6b;
  accent-color: #2b445e;
  height: 18px;}

.form_group 
{ width: 301px;
  display: inline-block;
  /*font: 100% 'open sans', arial;*/
  color: #6b6b6b; 
  padding: 5px 5px 5px 5px;}

label {
  color: #2b445e;
  font-weight: bold;
  font-size: 90%;
  /*font: bold 100% 'open sans', arial;*/
    
}

.label_spacing {
  letter-spacing: 0.04em;
}

.form_row {
  display: flex;
}

.form_row_center {
  display: flex;
  align-items: center;
  flex-direction: column;
}

.form_column {
  padding-left: 30px;
  padding-right: 30px;
}

.form_label
{ padding: 0px 0px 5px 0px;
  display: flex;
  color: #6b6b6b;
  align-items: center;
  /*font: 100% 'open sans', arial;*/
}

.form_element {
  width: 350px;
  padding-bottom: 5px;
  padding-left: 25px;
  padding-right: 25px;
}

.form_element2 {
  width: 700px;
  padding-bottom: 5px;
  padding-left: 25px;
  padding-right: 25px;
}

.form_element3 {
  width: 1050px;
  padding-bottom: 5px;
  padding-left: 25px;
  padding-right: 25px;
}

.form_element4 {
  width: 1400px;
  padding-bottom: 5px;
  padding-left: 25px;
  padding-right: 25px;
}

.form_center {
  display: flex;
  align-items: center;
  flex-direction: column;  
}

.checkbox_row {
  display: flex;             /* text + checkbox v jednom řádku */
  align-items: center;
  padding: 0px 10px;
  margin: 9px 0;
  height: 30px;
}

/* text vlevo */
.checkbox_row span {
  flex: 1;                   /* zabere zbytek řádku */
  color: #6b6b6b;
  font-size: 14px;      /* stejné jako input */
}

/* checkbox úplně vpravo + menší mezery */
.checkbox_row input[type=checkbox] {
  margin: 0 0 0 10px;        /* jen malá mezera od textu */
  width: auto;               /* pro jistotu */
}

.checkbox_row input[type=checkbox] {
  transform: translateY(1px); /* malá korekce podle prohlížeče */
}

.checkbox_row input[type=checkbox] {
  accent-color: #2b445e;   /* stejná barva jako tlačítka a nadpisy */
}

.switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 24px;
  margin-left: 10px;     /* mezera od textu */
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  background-color: #d0d6e0; /* vypnutá barva */
  border-radius: 24px;
  top: 0; left: 0; right: 0; bottom: 0;
  transition: 0.3s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: 0.3s;
}

/* zapnuto */
.switch input:checked + .slider {
  background-color: #2b445e; /* tvá hlavní barva */
}

/* posunutí kolečka při zapnutí */
.switch input:checked + .slider:before {
  transform: translateX(22px);
}

/* hover efekt */
.switch:hover .slider {
  filter: brightness(1.15);
}

input[type=radio] {
  width: 18px;
  margin-left: 10px;
  margin-right: 10px;
  height: 18px;
  accent-color: #2b445e;
}

input[type=text], input[type=password], input[type=number], input[type=date], select, textarea, submit {
  border: 1px solid #E5E5DB; 
  background: #FFF; 
  color: #6b6b6b;  
  width: 100%;  
  padding: 5px 10px;
  margin: 8px 0;
  display: inline-block;
  border: 1px solid #E5E5DB; 
  border-radius: 5px;
  box-sizing: border-box;
  font-family: Inter;
}

input[type=checkbox] {
  border: 1px solid #E5E5DB;
  background: #FFF;
  color: #6b6b6b;
  width: auto;
  padding: 5px 10px;
  margin: 18px 0;
  display: inline-block;
  border: 1px solid #E5E5DB;
  border-radius: 5px;
  box-sizing: border-box;
}

input[type=text], input[type=password], input[type=date], input[type=checkbox], select, submit {
  height: 30px;
}

input:focus, textarea:focus, select:focus {
  border: 1px solid #2b445e;
  outline-offset: 0px !important;
  outline: none !important;
}

input[readonly] {
  background-color: #eff2f7;
}

.separator
{ width: 100%;
  height: 0;
  border-top: 1px solid #D9D5CF;
  border-bottom: 1px solid #FFF;
  margin: 0 0 20px 0;}
  
table
{ margin: 0px 0 0px 0;
  border-spacing: 1px;
}

table tr th, table tr td
{ background: #2b445e;
  color: #FFF;
  padding: 5px 5px;
  text-align: left;
  font-size: 14px;
}

table tr th
{
  font-weight: normal;
  text-align: center;
}

table tr td
{ background: #eff2f7;
  color: #000;
  border-top: 0px solid #FFF;
  font-size: 13px;
}

th:first-child
{
  border-top-left-radius: 5px;
}

th:last-child
{
  border-top-right-radius: 5px;
}

tr:last-child td:first-child
{
  border-bottom-left-radius: 5px;
}

tr:last-child td:last-child
{
  border-bottom-right-radius: 5px;
}

.th_kratke
{
  width: 120px;
}

.th_extra_kratke
{
  width: 60px;
}

.th_dlouhe
{
  width: 200px;
}

.td_zarovnani_cislo
{
  text-align: right;
}

.th_zobrazeni
{
  display: revert;
}

.td_zobrazeni
{
  display: revert;
}

.grid:after {
  display: block;
  content: '';
  clear: both;
}

.grid-col {
  float: left;
  width: 49%;  
  padding: 5px;
  /*margin-right: 2%;*/
}

.grid-item {
  margin-bottom: 20px;
  width: 100%;
  box-sizing: border-box;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
  transition: transform 0.3s;
  padding: 10px;
}

@media ( min-width: 0px ) {
  .grid-col { width: 100%;}
  .grid-col--1 { display: block;}
  .grid-col--2, .grid-col--3, .grid-col--4 { display: none; }
}

@media ( min-width: 750px ) {
  .grid-col { width: 50%; }
  .grid-col--1, .grid-col--4 { display: block; }
  .grid-col--3, .grid-col--3 { display: none; }
}

@media ( min-width: 1050px ) {
  .grid-col { width: 33.3%; }
  .grid-col--1, .grid-col--2, .grid-col--4 { display: block; }
  .grid-col--3 { display: none; }
}

@media ( min-width: 1400px ) {
  .grid-col { width: 25%; }
  .grid-col--1, .grid-col--2, .grid-col--3, .grid-col--4 { display: block; }
}

a.menu {
  letter-spacing: 0.02em;
  display: block; 
  float: left;
  font-size: 15px;
  height: 17px;
  padding: 10px 26px 10px 26px;
  text-align: center;
  color: #FFF;
  /*text-transform: uppercase;*/
  text-decoration: none;
  background: transparent;
  box-sizing: content-box;
}

a.menu.right {
  float: right; 
}

a.menu:hover, a.menu.selected
{ color: #FFF;
  border-radius: 5px;
  background: #131e2b repeat-x;}

.prehled_polozka {
  width: 100%;
  display: flex;
  margin-bottom: 5px;
  font-weight: normal;
  font-size: 13.5px;
}

.prehled_nazev {
  padding-left: 20px;
}

.prehled_hodnota {
  margin-left: auto;
}

.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip .tooltiptext {
  visibility: hidden;

  background-color: #dde7f1;
  color: #6b6b6b;
  text-align: center;
  border-radius: 5px;
  padding: 3px 15px 3px 15px;

  /* Position the tooltip */
  position: absolute;
  z-index: 1;
  top: -10px;
  left: 105%;
  white-space: nowrap;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
}

.a_no_style {
  all: unset;
  cursor:pointer;
  text-decoration: none;
  width: 100%;
  display: flex;
  font-weight: 400;
  font-size: 13.5px;
  margin-bottom: 6px;
}

a.a_no_style {
  color: #000;
}

a.a_no_decoration {
  all: unset;
  cursor:pointer;
  text-decoration: none;
}

.masonry-grid-card {
  margin-left: 5px;
  margin-right: 5px;
  margin-bottom: 20px;
  box-sizing: border-box;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
  transition: transform 0.3s;
  padding: 10px;
  background: #eff2f7;
}

@media ( min-width: 0px ) {
  .masonry-grid-sizer,
  .masonry-grid-item { width: 100%; }
  .masonry-grid-sizer33,
  .masonry-grid-item33 { width: 100%; }
}

@media ( min-width: 750px ) {
  .masonry-grid-sizer,
  .masonry-grid-item { width: 50%; }
  .masonry-grid-sizer33,
  .masonry-grid-item33 { width: 50%; }
}

@media ( min-width: 1050px ) {
  .masonry-grid-sizer,
  .masonry-grid-item { width: 33.3%; }
  .masonry-grid-sizer33,
  .masonry-grid-item33 { width: 33%; }
}

@media ( min-width: 1400px ) {
  .masonry-grid-sizer,
  .masonry-grid-item { width: 25%; }
  .masonry-grid-sizer33,
  .masonry-grid-item33 { width: 33%; }
}

.zprava_error {
  margin: 0 0 5px 5px;
  padding: 5px 0 5px 10px;
  background: #F3D8DA;
  color: #855355;
  display: block;
  border-radius: 5px 5px 5px 5px;
}

.zprava_warning {
  margin: 0 0 5px 5px;
  padding: 5px 0 5px 10px;
  background: #FDF2D1;
  color: #806420;
  display: block;
  border-radius: 5px 5px 5px 5px;
}

.zprava_info {
  margin: 0 0 5px 5px;
  padding: 5px 0 5px 10px;
  background: #D6EBF0;
  color: #285762;
  display: block;
  border-radius: 5px 5px 5px 5px;
}

.zprava_success {
  margin: 0 0 5px 5px;
  padding: 5px 0 5px 10px;
  background: #D9ECDB;
  color: #2A552A;
  display: block;
  border-radius: 5px 5px 5px 5px;
}

.menu.icon {
  display: none;
  background: url('/static/style/hamburger-menu.png') no-repeat 50%;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #2b445e;
  /* min-width: 160px; */
  margin-top: 37px;
  box-shadow: 6px 6px 8px rgba(0, 0, 0, 0.2);
  z-index: 1;
  white-space: nowrap;
  min-width: 100%;
}

.dropdown.right .dropdown-content {
  right: 0;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown-content a {
  float: none;
  text-align: left;
  white-space: nowrap;
}

.dropdown.right .dropdown-content a {
  text-align: right;
  align: right;
}

@media screen and (max-width: 749px) {
  .menubar a:not(:first-child) {display: none;}
  .menubar div.dropdown:not(:first-child) {display: none;}
  .menubar a.icon {
    float: right;
    display: block;
  }
  .menubar a.icon:hover {
    background: url('/static/style/hamburger-menu.png') no-repeat 50% #131e2b;
  }
  .th_zobrazeni {
    display: none;
  }
  .td_zobrazeni {
    display: none;
  }
}

@media screen and (max-width: 749px) {
  .menubar.responsive {
    position: relative;
    z-index: 2;
  }
  .menubar.responsive .icon {
    position: absolute;
    right: 0;
    top: 0;
    background: url('/static/style/hamburger-menu.png') no-repeat 50%;
  }

  .menubar.responsive a {
    float: none;
    display: block;
    text-align: left;
    background: #2b445e;
  }

  .menubar.responsive div.dropdown {
    float: none;
    display: block;
    text-align: left;
    background: #2b445e;

    margin: 0;
    padding: 0;
  }

  .menubar.responsive div.dropdown-content {
    display: block;      /* místo contents – ať je z toho normální blok */
    position: static;    /* zruší absolutní pozicování */í
    right: auto;         /* zruší right: 0 z desktopu */
    left: auto;          /* pro jistotu */
    margin-top: 0;
    width: 100%;         /* roztáhne se na šířku menu */
    background-color: #2b445e;
    z-index: 1;
    box-shadow: none;
    text-align: right;
  }

  .menubar.responsive div.dropdown div.dropdown-content a {
    padding-left: 60px;
  }

  .menubar.responsive .dropdown.right .dropdown-content a {
    text-align: left;
    padding-right: 0;    /* aby se text netlačil k pravému okraji */
  }

  /* rodič taky vyčistit */
  .menubar.responsive .dropdown.right > a {
    text-align: left;
  }

  a.menu.right {
    margin-left: 0px;
    text-align: left;
  }
  a.menu:hover, a.menu.selected {
    color: #FFF;
    border-radius: 0px;
    background: #131e2b repeat-x;
  }
}

/* Formulář – mobilní zobrazení */
@media screen and (max-width: 749px) {

  /* každý řádek formuláře pod sebou */
  .form_row {
    flex-direction: column;
  }

  /* každý prvek na celou šířku řádku */
  .form_element,
  .form_element2,
  .form_element3,
  .form_element4 {
    width: 100%;
    padding-left: 0;
    padding-right: 0;
  }

  /* tlačítko ať se chová normálně (ne float right) */
  .form_settings .submit {
    float: none;
    width: auto;
  }

  /* pokud používáš zarovnání na střed, ať se netlačí do sloupce */
  .form_center {
    align-items: stretch;
  }

  .form_row .form_element .submit {
    width: auto !important;
    display: inline-block;
    float: none;
    margin: 0 auto;
    padding: 0 20px;
  }

  .form_settings form {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;              /* mezery mezi tlačítky */
  }

  /* V tomhle formuláři nechci globální float/right a pevnou šířku 150px */
  .form_settings form .submit {
    float: none;
    width: auto;
    display: inline-block;
    padding: 4px 12px;     /* trochu místa kolem textu "Aktualizovat" */
  }

  /* Šipky – pevná šířka, bez paddingu, jen ikonka */
  .form_settings form .submit_prev,
  .form_settings form .submit_next {
    width: 34px;           /* přepíše případné width:auto z mobilních úprav */
    padding: 0;
  }

  .form_element3 .submit {
    width: auto !important;
    display: inline-block;
    float: none;
    padding: 0px 20px; /* prostor kolem textu */
  }

  .form_element_button {
    width: auto;              /* už ne 1050px */
    padding-left: 0;
    padding-right: 0;
  }

  /* tlačítko Změnit – normální šířka podle textu, žádný float */
  .form_element_button .submit {
    width: auto !important;
    float: none !important;
    display: inline-block;
    padding: 8px 20px;        /* prostor zleva/zprava */
  }

  /* volitelné: zarovnání na střed v rámci řádku */
  .form_row {
    justify-content: center;
  }

  .form_settings .form_row:last-child {
    justify-content: center;              /* zarovná obsah řádku na střed */
  }

  /* tenhle konkrétní .form_element3 už nechci široký 1050px */
  .form_settings .form_row:last-child .form_element3 {
    width: auto !important;
    padding-left: 0;
    padding-right: 0;
  }

  /* tlačítko Změnit – normální tlačítko, ne fullwidth ani float right */
  .form_settings .form_row:last-child .submit {
    width: auto !important;
    float: none !important;
    display: inline-block;
    padding: 0px 20px;      /* trocha místa kolem textu */
  }

  .form_element_button {
    width: auto !important;         /* přepíše .form_element3 */
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* tlačítko Změnit – normální šířka podle textu, bez floatu */
  .form_element_button .submit {
    width: auto !important;         /* přepíše .form_settings .submit */
    float: none !important;
    display: inline-block;
    padding: 8px 20px;              /* prostor zleva/zprava */
  }

  /* zarovnání na střed v rámci řádku */
  .form_row .form_element_button {
    margin-left: auto;
    margin-right: auto;
  }

}

.instrument_zmena_plus {
  color: green
}

.instrument_zmena_minus {
  color: red
}