html, body, #container {
  height: 100%;
  width: 100%;
  overflow: hidden;
}
body {
  padding-top: 50px;
}
input[type="radio"], input[type="checkbox"] {
  margin: 0;
}
#sidebar {
  display: block;
  width: 300px;
  height: 100%;
  max-width: 100%;
  float: left;
}
#map {
  width: auto;
  height: 100%;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
}
#loading {
  position: absolute;
  width: 220px;
  height: 19px;
  top: 50%;
  left: 50%;
  margin: -10px 0 0 -110px;
  z-index: 20001;
}
#features {
  margin: 0px;
  border: none;
  border-radius: 0px;
  -webkit-box-shadow: none;
    box-shadow: none;
}
#sidebar-hide-btn {
  margin-top: -2px;
}
#aboutTabsContent {
  padding-top: 10px;
}
.progress-bar-full {
  width: 100%;
}
.white {
  color: #FFFFFF;
}
.panel-heading{
   width: 300px;
}
.panel-body{
  width: 300px;
}
.feature-row {
  cursor: pointer;
  width: 300px;
}

/* Sidebar tabulka — kompaktní zobrazení sumy */
.sidebar-table .table > tbody > tr > td {
  padding: 4px 6px;
  font-size: 12px;
  vertical-align: middle;
}
.sidebar-table .label {
  padding: 3px 6px;
  font-size: 11px;
  font-weight: 600;
}
.sidebar-table strong {
  font-size: 12px;
}
#mascelkova {
  font-weight: bold;
  font-size: 13px;
  padding: 6px 8px;
  word-wrap: break-word;
}

/* Popup obce v mapě (klik na obec) — kompaktní tabulka */
.varlau-table {
  margin-top: 8px;
}
.varlau-table > thead > tr > th,
.varlau-table > tbody > tr > td {
  padding: 4px 8px !important;
  font-size: 12px;
  vertical-align: middle;
}
.varlau-table > thead > tr > th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: #555;
}
.varlau-table > tbody > tr > td small {
  white-space: nowrap;
}
/* Modal pro popup obce mírně širší — aby se 4 sloupce + dlouhé sumy vešly */
#featureModal .modal-dialog {
  width: 640px;
}
#feature-info {
  word-wrap: break-word;
}

/* Universální modal (Podpora dle témat / Ukázkové projekty) — širší.
   width: min(920px, 95vw) — na širokém viewportu max 920px,
   na úzkém se zmenší. Žádná Bootstrap 3 media-query nepřevládne. */
#uniModal .modal-dialog {
  width: 95vw !important;
  max-width: 920px !important;
  margin: 30px auto;
}
#unicontent {
  word-wrap: break-word;
}
#unicontent .modal-body {
  padding: 16px 20px;
  /* Pokud by tabulka byla širší než modal — povolit horizontální scroll */
  overflow-x: auto;
}

/* "Podpora dle témat" — tabulka per OP a Top 15 obcí */
.support-combined-table > thead > tr > th,
.support-combined-table > tbody > tr > td {
  padding: 4px 8px !important;
  font-size: 12px;
  vertical-align: middle;
}
.support-combined-table > thead > tr > th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
/* Pravostranně zarovnané buňky (čísla, sumy) — žádné zalamování */
.support-combined-table td[style*="text-align:right"],
.support-combined-table th[style*="text-align:right"] {
  white-space: nowrap;
}

/* "Ukázkové projekty" — identifikační tabulka */
.project-id-table > tbody > tr > th,
.project-id-table > tbody > tr > td {
  padding: 4px 10px !important;
  font-size: 13px;
  vertical-align: middle;
}
.project-id-table > tbody > tr > td {
  white-space: nowrap;
}
.project-id-table > tbody > tr > th {
  background: #fafafa;
  color: #555;
  font-weight: 600;
}

/* Galerie thumbnails projektů — drobnější mezery */
.project-thumbs img {
  transition: transform 0.15s ease;
}
.project-thumbs a:hover img {
  transform: scale(1.05);
  border-color: #999 !important;
}
.project-block h3 {
  font-size: 18px;
  margin-top: 0;
  border-bottom: 2px solid #9b1608;
  padding-bottom: 6px;
  display: inline-block;
}
.sidebar-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
}
.sidebar-table {
  position: absolute;
  width: 100%;
  top: 103px;
  bottom: 0px;
  overflow: auto;
}
.leaflet-control-layers {
  overflow: auto;
}
.leaflet-control-layers label {
  font-weight: normal;
  margin-bottom: 0px;
}
.leaflet-control-layers-list input[type="radio"], input[type="checkbox"] {
  margin: 2px;
}
.table {
  margin-bottom: 0px;
}
.navbar .navbar-brand {
  font-weight: bold;
  font-size: 25px;
  color: #FFFFFF;
}
.navbar-collapse.in {
  overflow-y: hidden;
}
.navbar-header .navbar-icon-container {
  margin-right: 15px;
}
.navbar-header .navbar-icon {
  line-height: 50px;
  height: 50px;
}
.navbar-header a.navbar-icon {
  margin-left: 25px;
}
.typeahead {
  background-color: #FFFFFF;
}
.tt-dropdown-menu {
  background-color: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 4px 4px 4px 4px;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
  margin-top: 4px;
  padding: 4px 0;
  width: 100%;
  max-height: 300px;
  overflow: auto;
}
.tt-suggestion {
  font-size: 14px;
  line-height: 20px;
  padding: 3px 10px;
}
.tt-suggestion.tt-cursor {
  background-color: #0097CF;
  color: #FFFFFF;
  cursor: pointer;
}
.tt-suggestion p {
  margin: 0;
}
.tt-suggestion + .tt-suggestion {
  border-top: 1px solid #ccc;
}
.typeahead-header {
  margin: 0 5px 5px 5px;
  padding: 3px 0;
  border-bottom: 2px solid #333;
}
.has-feedback .form-control-feedback {
  position: absolute;
  top: 0;
  right: 0;
  display: block;
  width: 34px;
  height: 34px;
  line-height: 34px;
  text-align: center;
}


.navbar-inverse {
    background-image: linear-gradient(#bb1a09, #670f05 60%, #000000);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff04519b', endColorstr='#ff033769', GradientType=0);
    background-repeat: no-repeat;
    -webkit-filter: none;
    filter: none;
    border-bottom: 1px solid #022241;
}


@media (max-width: 992px) {
  .navbar .navbar-brand {
    font-size: 18px;
  }
}
@media (max-width: 767px){
  #sidebar {
    display: none;
  }
  .url-break {
    word-break: break-all;
    word-break: break-word;
    -webkit-hyphens: auto;
      hyphens: auto;
  }
  .dropdown-menu a i{
    color: #FFFFFF;
  }
}
/* Print Handling */
@media print {
  .navbar {
    display: none !important;
  }
  .leaflet-control-container {
    display: none !important;
  }
}
