body {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.87em;
    /*width: max-content;*/
}

.bg-blue {
    background-color: #1d5987!important;
}

.text-blue {
    color: #1d5987!important;
    /*font-weight: bold!important;*/
}

a.text-blue {
    font-weight: normal!important;
}

a.text-blue:hover {
    font-weight: bold!important;
}

.text-red {
    color: red!important;
    /*font-weight: bold!important;*/
}

a.text-red {
    font-weight: normal!important;
}

a.text-red:hover {
    font-weight: bold!important;
}


.btn-blue-custom, .btn-blue-custom:hover {
    background-color: #1d5987!important;
    color: white!important;
}

.btn-outline-blue-custom, .btn-outline-blue-custom:hover {
    border: 1px solid #1d5987!important;
}

.btn-red-custom, .btn-red-custom:hover {
    background-color: #fb4d3d!important;
    color: white!important;
}

.logo {
    height: 2.5em;
    width: 2.5em;
}

.nav .nav-link, #sidebar h3 {
    color: #1d5987;
}

.nav .nav-link:hover {
    color: white;
    background-color: #1d5987;
}

.nav .nav-link:hover .fa, .nav .nav-link:hover .fas {
    color: rgba(255, 255, 255, 0.8 )!important;
}

.navbar-nav .nav-link {
    color: white!important;
}

.navbar .nav-link:hover, .sidebar-header a:hover {
    color: lightblue!important;
}

.navbar {
    margin-left: -240px;
    padding-top: 0;
    padding-bottom: 0;
}

.navbar-brand {
    font-weight: bold;
    width: 15%;
}

.col-sidebar {
    padding-left: 0;
}

.wrapper {
    /*display: table;*/
    /*width: 100%;*/
    display: flex;
    align-items: stretch;
    min-height: 100vh;
    background-color: rgba(29, 89, 135, 0.1);
}

#sidebar {
    min-width: 240px;
    max-width: 240px;
    width: 100%;
    min-height: 100vh; /* Sidebar zabere celou výšku okna */
    /*background-color: rgba(29, 89, 135, 0.1);*/
    background-color: #f8f9fa; /*#f8f9fa Přidá barvu pozadí, pokud není nastaveno */
    /*background-color: #e6eeff;
    /*background-color: rgba(29, 89, 135, 0.1);*/
    position: absolute;
    top: 0;
    left: 0;
}

#sidebar.active {
    margin-left: -240px;
}

#sidebar a {
    padding-bottom: 0.3em;
    padding-top: 0.3em;
    margin-bottom: 0.1em;
}

.sidebar-header {
    height: 40px;
    padding: 0.7em 1em;
    margin-bottom: 1.7em;
}

#sidebar hr {
    border: none;
}

.content {
    padding-left: 1em;
    padding-right: 1em;
    height: auto;
}

#content {
    margin-left: 240px;
    background-color: white;
    padding-bottom: 10em;
}


.boxChart {
    position: relative;
    margin-top: 0;
    margin-bottom: 1em;
    padding: 1em;
    background-color: white;
    max-height: 30em;
    max-width: 100em;
}



.box {
    position: relative;
    margin-top: 1em;
    margin-bottom: 1em;
    border-top: 1px solid rgba(29, 89, 135, 0.2);;
    border-left: 0px;
    border-right: 0px;
    border-bottom: 1px solid rgba(29, 89, 135, 0.2);;
    /*background-color: #e6eeff; */
    background-color: rgba(29, 89, 135, 0.1);
    padding: 1em;
}


.custom-select {
    border-color: #1d5987;
    color: black;
}

#instalace.custom-select {
    border-color: #ced4da;
    color: #495057;
}

.no-shadow {
    box-shadow: none !important;
}

.moznosti {
    width: 30ch!important;
}

#moznosti label {
    min-width: 3ch;
}

#moznost-pridat .fa {
    color: white!important;
}

.modal-content {
  position: relative;
  background-color: #fefefe;
  margin: auto;
  padding: 0;
  width: 90%;
}

.anketa-moznosti {
    padding: 0.5em;
}

.anketa-vysledky {
    padding: 1em;
}

.barchart {
    margin-bottom: 0.5em;
}

.barchart .row {
    padding: 0.1em;
}

.anketa-vysledky .bar{
    background-color: #1d5987;
    height: 100%;
    min-height: 24px;
    padding: 0;
}

textarea {
    resize: none;
}

.pagination .page-item.active .page-link {
    background-color: #1d5987!important;
}

.pagination .page-item {
    border-right: 1px solid #1d5987;
    border-top: 1px solid #1d5987;
    border-bottom: 1px solid #1d5987;
}

.pagination .page-item-first {
    border-left: 1px solid #1d5987;
}

.image-edit-container {
    position: relative;
    width: 100px;
    margin: 0.5em;
}

.image-edit {
    opacity: 1;
    display: block;
    transition: .5s ease;
    backface-visibility: hidden;
}

.image-edit-overlay {
    transition: .5s ease;
    opacity: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    text-align: center;
}

.image-edit-overlay button {
    background: none;
    border: none;
    height: 70px;
    width: 95px;
}

.image-edit-overlay button .fa, .image-edit-overlay button .fas {
    color: red!important;
}

.image-edit-container:hover .image-edit {
    opacity: 0.3;
}

.image-edit-container:hover .image-edit-overlay {
    opacity: 1;
}

/* .navbar { box-shadow: none !important; } 
.btn { box-shadow: none !important; } */

#inner {
    display: block; 
    overflow: hidden;
    padding: 15px;
    /*width: 100%;*/
    /*padding-bottom: 5px;*/
    /*overflow: auto;*/
    margin-left: 230px;
}


.box1 {
    position: relative;
    margin-top: 1em;
    margin-bottom: 1em;
    padding: 1em;
}

.boxVyuct {
    position: relative;
    margin-top: 1em;
    padding: 1em;
    border: 1px solid rgba(29, 89, 135, 0.2);;
    
}

#boxWidth{
    margin-left: 5em;
    margin-right: 5em;
    
}

#butt_right, #ulozit {
    float: right;
}

#butt_addrow {
    float: right;
    /*width: 90px;*/
}

#button{
   width: 10em;
}


#clear {
     clear: both;
}


#Filter {
    display: block;
    background-color: #e6f2ff; 
    position: relative;
    margin-top: 20px;
    margin-bottom: 40px;
    padding: 10px;
}


#FilterZak, #FilterSchv {
    display: block;
    background-color: #b3d9ff; 
    position: relative;
    margin-top: 20px;
    margin-bottom: 40px;
    padding: 10px;
}

#FilterZak .form-control, #FilterSchv .form-control, #Filter .form-control{
    font-size: 0.85em;
}


.form-control.text{
    width: auto;
}


.filesezn{
    display: inline-block;
}

.odkazsezn{
    width: 50%;
    margin-bottom: 0.5em;
}

#odkazseznX{
    margin-bottom: 1em;
}


.panel-heading {
    background-color: #b3d9ff; 
}


.filesezn1{
    display: inline-block;
    margin-left: 1em;
    margin-right: 1em;
}
#sizeDoc{
    width:45px;
}

.filesezndel{
    text-decoration: line-through;
}

#iconMenu {
   display: inline-block;
   width: 20px; 
}

#label {
    float: right;
    position: relative;
}

label{
    padding-top: 0.5em; 
}

#menu {
    position: relative;
    display: block;
    
}

.message {
    border: 1px solid #9DC2F8;
    background: #DBE8F8;
    padding: 3px;
}


#myFilter, #myFilterF, #myFilterX {
    float: right;
    position: relative;
    display: block;
}


#myFilterFa{
    position: relative;
    display: block;
}


#nadpis {
    margin-bottom: 0.5em;    
}

#nadpisForm {
    margin-top: 1px;    
    margin-bottom: 1px;    
}


#navbar-menu{
   padding-left: 17em;
   padding-right: 2em;
}


#rowForm {
    /*border-bottom: 1px solid #afcffa;*/
    padding-top: 5px;
    padding-bottom: 10px;
}

#rowFormX {
    padding-top: 5px;
    padding-bottom: 10px;
}


#rowTitle {
    padding-top: 40px;
}


#rowFoto {
    padding-bottom: 10px;
}

#rowDet {
    border-bottom: 1px solid #afcffa;
    margin-left: 10px;
    margin-right: 10px;
    margin-top: 5px;
    padding-bottom: 10px;
}

#rowDetX {
    margin-left: 5px;
    margin-right: 10px;
    margin-top: 5px;
    padding-bottom: 5px;
}


#rowKont {
    border-bottom: 1px solid #afcffa;
    padding-top: 5px;
    padding-bottom: 10px;
}

#side-menu {
    padding-bottom: 20px;
}

.styleTable th {
    background-color: #4297D7;
    color: #FFFFFF;
}

.styleTable table {
    background-color: #FFFFFF;
    margin-bottom: 20px;
    margin-top: 5px;
    border: 2px solid #4297D7;
}

.styleTable td, .styleTable th {
    border-right: 1px solid #4297D7;
    border-bottom: 1px solid #4297D7;
}

.styleTable tr:nth-child(even) {
    background-color: #f2f2f2;
}

#myTable {
  border-collapse: collapse;
  width: 100%;
  padding: 8px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

.styleTable tr.first {
    /*background-color: white;*/
    tr:nth-child(even) {background: #CCC}
    tr:nth-child(odd) {background: #FFF}
}

.styleTable tr.next {
    background-color: #ccccff;
    font-style: italic;
}


.styleTable {
    font-size: 100%;
}


table {
    margin-top: 10px;
    margin-bottom: 10px;
    width: 100%;
    border-spacing: 0;
    text-shadow: none;
}

th {
    /*background-color: #4297d7;*/
    background-color:  #80ccff;
    color: white;
}

.myThead {
    /*background-color: #4297d7;*/
    background-color: #4297D7;
    /*background-color:  #80ccff;*/
    color: white;
}

th a {
    color: white;
    text-decoration: underline;
}

td.number,th.number {
    text-align: right;
}

th.tight {
	width: 1px;
	white-space: nowrap;
	padding-left: 10px;
	padding-right: 10px;
}

th.leftcol {
    width: 20ex;
}

td, th {
    padding: 2px;
}

tr.sumrow {
    font-weight: bold;
}

tr.sumrow td {
    border-top: 1px solid #4297d7;
    background-color: #F0D8B8;
}

.table-main th {
    /*background-color: #1d5987;*/
    background-color: #4297D7
}


#TextRight {
    float: right;
    position: relative;
    display: block;
}

/* Add a black background color to the top navigation */
.topnav {
    background-color: #333;
    overflow: hidden;
}

/* Style the links inside the navigation bar */
.topnav a {
    float: left;
    color: #f2f2f2;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 17px;
}

#topnav a:hover {
    background-color: #ddd;
    color: black;
}

#topnav a.active {
    background-color: #4CAF50;
    color: white;
}

.textareaTab  {
    border: none;
}

.tree_parent_doc {
    margin-top: 1em;
    margin-left: 1em;
    font-size: 120%;
}

.tree_node_doc {
    margin-left: 50px;
    margin-top: 0.4em;
    font-size: 100%;
    }


.unpaid {
    color: red;
    font-weight: bold;
}

#LoadingImage  {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 10%;
}

#LoadingImageINFO  {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 10%;
}

#LoadingImageX  {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 10%;
}


/*Loader */
.loader {
  border: 16px solid #f3f3f3;
  border-radius: 50%;
  border-top: 16px solid #3498db;
  width: 120px;
  height: 120px;
  -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); }
}


/*Konec loaderu */


/*Sidebar*/


/* #sidebar{
  height: 100%;
  display: block;
  margin-left: 0px;
  width: 230px;
  position: fixed;
  position: sticky;
  z-index: 1;
  top: 50px;
  left: 0px;
  overflow-x: hidden;
  padding-top: 10px;
} */

/* #sidebar a {
  padding: 6px 8px 6px 16px;
  text-decoration: none;
  font-size: 15px;
}

#sidebar a:hover {
  color: #004080;
} */


#rowcolorPoz4{
    color: #41c4f4;
}

#rowcolorPoz5{
    color: #3c763d;
}

#rowcolorPoz8{
    color: #428bca;
    
}

.box h2 {
    margin-bottom: 1em;
}


.card-header {
    padding: 0.5em 0.5em;
    font-size: large;
}

#anketa-card .card-header, #infodeska-zprava .card-header, #nastenka-prispevek .card-header {
    border-radius: 2px;
    border-top: 1px solid #1d5987;
}

#nastenka-prispevek .card-header {
    font-weight: normal;
}

.card {
    margin-bottom: 2em;
    margin-top: 1em;
    background-color: rgba(29, 89, 135, 0.05);
    
}

#anketa-card.card, #infodeska-zprava.card, #nastenka-prispevek.card {
    border-radius: 2px;
    border-bottom: 1px solid #1d5987;
    border-left: 1px solid #1d5987;
    border-right: 1px solid #1d5987;
    margin-bottom: 0;
}


.card-body {
    padding: 1em 1em;
    word-wrap: break-word;
    background-color: white;
}

#anketa-card .card-body, #infodeska-zprava .card-body, #nastenka-prispevek .card-body {
    border-top: 1px solid #1d5987;
    border-bottom: 1px solid #1d5987;
}

.card-footer {
    margin-bottom: 0;
    padding: 0.5em 0.5em;
    min-height: 59px;
}


.none {
    display: none;
}

.infodeska-controls, .anketa-controls {
    float: right;
    margin-right: 0.7em;
    box-shadow: none !important;
}

.infodeska-controls .fa, .infodeska-controls .fas, .anketa-controls .fa, .anketa-controls .fas {
    color:white!important;
    font-size: small;
}

.dalsi-info {
    color: black;
    font-weight: normal;
    font-size: 0.6em;
}

#titulek {
    width: 80%;
    border-radius: 2px;
}

.error {
    color: #fb4d3d;
    font-weight: bold;
}

#infodeska-zprava-text img {
    max-width: 100%!important;
    height: auto;
    margin: 0.4em;
}

.odpoved {
    padding-top: 0.5em;
}

.odpoved-header .datum {
    color: black;
    font-size: 0.7em;
}

.odpoved-body {
    padding-left: 1em;
}

.oddelovac-odpovedi {
    border-style: inset;
    border-width: 1px;
    margin-top: 0.2em;
    margin-bottom: 0.2em;
}

#n-d-p-titulek {
    color: #1d5987;
    font-weight: bold;
    margin-bottom: 1em;
}

.loader-odpovedi {
    height: 2em!important;
    width: 2em!important;
    border: 0.3em solid #f3f3f3!important;
    border-top: 0.3em solid #3498db!important;
    margin-left: auto;
    margin-right: auto;
}

.btn-smazat {
    background-color: white;
    padding: 0.1em;
    margin: 0.1em;
    box-shadow: none !important;
}

.btn-smazat .fa, .btn-smazat .fas {
    color: #fb4d3d!important;
}

.btn-smazat:hover {
    background-color: white;
}

.no-bg, .no-bg:hover {
    background-color: white!important;
}

.smazat-potvrzeni {
    z-index: 1050;
}

.soubory {
    padding-left: 2em;
    margin-top: 0.3em;
}

.souboryVyuct {
    padding-top: 1em;
    padding-bottom: 1em;
}

#errors {
    display: none;
}

.note-group-select-from-files {
    display: none;
}

.note-btn {
    box-shadow: none !important;
}

/*
 * Bootstrap Cookie Alert by Wruczek
 * https://github.com/Wruczek/Bootstrap-Cookie-Alert
 * Released under MIT license
 */
.cookiealert {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    margin: 0 !important;
    z-index: 999;
    opacity: 0;
    border-radius: 0;
    transform: translateY(100%);
    transition: all 500ms ease-out;
    color: #ecf0f1;
    background: #212327;
}

.cookiealert.show {
    opacity: 1;
    transform: translateY(0%);
    transition-delay: 1000ms;
}

.cookiealert a {
    text-decoration: underline
}

.cookiealert .acceptcookies {
    margin-left: 10px;
    vertical-align: baseline;
}
/*
 * Konec cookie alertu
 */

#closeFilter{
    float: right!important;
}

#uloz {
    float: left;
}

.fa, .fas {
    color: #1d5987;
}

button .fa, button .fas, a.btn-blue-custom .fa, a.btn-blue-custom .fas, a.btn-red-custom .fa, a.btn-red-custom .fas,
.vysledky-hlasovani th .fa, .vysledky-hlasovani th .fas, .notification .fa, .notification .fas {
    color: white;
}

#velikost-mapy .fas {
    color: #ff3547;
    font-size: x-large;
}

#velikost-mapy.btn-outline-danger {
    background-color: rgba(255, 255, 255, 0.7)!important;
}


ul.nav-tabs .nav-link.active {
    border-bottom: 2px solid #1d5987;
}

.hlasovani-radek:hover {
    background-color: rgba(29, 89, 135, 0.1);
}

.ml-auto-custom {
    margin-left: 5em;
}

.table-vysledek-red .fa, .table-vysledek-red .fas {
    color: red;
    font-size: x-large;
}

.table-vysledek-green .fa, .table-vysledek-green .fas {
    color: green;
    font-size: x-large;
}

.vysledky-hlasovani th {
    background-color: #1d5987;
}

.vysledky-hlasovani td, .vysledky-hlasovani th {
    text-align: center;
}

.to-pdf {
    font-size: medium;
}

.same-width {
    width: 25ch;
}

#hlasovani-moznosti-hr .row {
    padding-top: 0.3em;
    padding-bottom: 0.3em;
}

#hlasovani-moznosti-hr .row:hover, .nastaveni-notif:hover {
    background-color: rgba(128, 128, 128, 0.15);
}

#hlasovani-moznosti-hr input[type="radio"] {
    height: 1.3em;
    width: 1.3em;
}

.notification .badge {
    position: absolute;
    top: 0px;
    right: 0px;
    padding: 2px 5px;
    border-radius: 50%;
    background: red;
    color: white;
}

.notification-dropdown {
    margin-left: -25ch;
    width: 45ch;
    padding-left: 0.3em;
}

.notification-dropdown-item {
    margin-top: 1em;
    margin-bottom: 1em;
    /*border-bottom: 1px solid #1d5987;*/
    /*border-bottom-style: dotted;*/
    background-color: #ccdcff;
}

.notification-subject{
    font-size: 0.85em;
} 

.tab-content{
    margin-top: 3em;
}

.treeview-animated .treeview-animated-list .treeview-animated-items .open,
.treeview-animated .treeview-animated-list .treeview-animated-items .open:hover,
.treeview-animated .treeview-animated-list .treeview-animated-items .closed:hover {
    background-color: #1d5987;
}

.treeview-animated .treeview-animated-list .treeview-animated-items .closed:hover,
.treeview-animated .treeview-animated-list .treeview-animated-items .closed:hover .fas {
    color: white;
}

.treeview-animated .treeview-animated-list .treeview-animated-items .open:hover {
    background-color: #1d5987;
}

.treeview-animated .treeview-animated-list .treeview-animated-element {
    cursor: default;
}

.treeview-animated .treeview-animated-list .treeview-animated-element:hover,
.treeview-animated .treeview-animated-list .treeview-animated-element.opened:hover {
    background-color: rgba(29, 89, 135, 0.1);
}

.treeview-animated .treeview-animated-list .treeview-animated-element.opened {
    background-color: rgba(0, 0, 0, 0);
}

.right-lg {
    text-align: right;
}

#help {
    float: right;
}


.popover{
    max-width:100%;
}

@media (min-width: 992px) {
    #sidebarCollapse {
        display: none
    }
    #sidebar.active {
        margin-left: 0;
    }
    

}

@media (max-width: 992px) {
    #sidebar {
        margin-left: -240px;
        position: relative;
    }
    #sidebar.active {
        margin-left: 0;
    }
    #sidebarCollapse {
        display: inline-block;
        margin-left: 1em;
    }
    .navbar {
        margin-left: 0;
    }

    #content {
        margin-left: 0;
    }
    .notification .badge {
        left: 15px;
        right: calc(100% - 35px);
    }
    .notification-dropdown {
        margin-left: 0;
    }
    .right-lg {
        text-align: left;
    }
    .logo_naz {
        display: none
    }
}

/*
@media screen and (max-height: 600px) {
  #sidebar {
        display: none;
  }
*/
@media screen and (max-width: 1000px) {
    #navbar-menu{
    padding-left: 10em;
    }
}


@media screen and (max-width: 800px) {
    #inner {
        margin-left: 0px;
    }
    
    #navbar-menu{
        padding-left: 5em;
    }

  /* #sidebar {
        display: none;
 } */

  #mark {
        width: 100px;
 } 
}

@media (max-width: 1200px) {
    .ml-auto-custom {
        margin-left: 1em;
    }
}

@media (min-width: 1200px) {
    .ml-auto-custom {
        margin-left: 5em;
    }
}

/*
    Schování sloupců v tabulce
*/
@media (max-width: 750px) {
    .table-hide-sm {
        display: none;
    }
}

@media (min-width: 750px) {
    .table-hide-sm {
        display: table-cell;
    }
}

@media (max-width: 1160px) {
    .table-hide-md {
        display: none;
    }
}

@media (min-width: 1160px) {
    .table-hide-md {
        display: table-cell;
    }
}

@media (max-width: 1360px) {
    .table-hide-lg {
        display: none;
    }
}

@media (min-width: 1360px) {
    .table-hide-lg {
        display: table-cell;
    }
}
