/*** Custom styly ***/
body {
    width: 100%;
    font-size: 12px;
    background-color: #E3E8EE;
    padding-bottom: 55px;
    position: relative;
    overflow-x: hidden;
}

html {
    height: 100%;
}
body {
    min-height: 100%;
}

a {
    cursor: pointer;
}

.js_warning {
    margin: 15px;
}

.group_addon_span {
    padding: 0 5px;
}

.red {
    color: red;
}

.right {
    text-align: right;
}

.bold {
    font-weight: bold;
}

.number {
    text-align: right;
}

.multiselect-container {
    width: 100%;
}

.top_menu .navbar-brand {
    text-shadow: none;
}
.top_menu .navbar-nav > li > a {
    color: #999;
    text-shadow: none;
}
.top_menu .navbar-nav > li > a:hover,
.top_menu .navbar-nav > li > a:focus,
.top_menu .navbar-nav > li > a:active {
    color: #fff;
}
.top_menu .navbar-nav > li.active > a {
    background-color: transparent !important;
    background-image: none !important;
    color: #fff !important;
}

.spin {
    -webkit-transform-origin: 50% 50%;
    transform-origin: 50% 50%;
    -ms-transform-origin: 50% 50%; /* IE 9 */
    -webkit-animation: spin .6s infinite linear;
    -moz-animation: spin .6s infinite linear;
    -o-animation: spin .6s infinite linear;
    animation: spin .6s infinite linear;
}

/*** Panel ***/
.panel .panel-heading {
    display: block;
}

.panel .panel-heading .glyphicon-resize-full,
.panel .panel-heading .glyphicon-resize-small {
    margin-right: 5px;
}

/*** Header ***/
.layout_header {
    background-color: #fff;
    color: #4698b8;
    padding: 15px 0 10px 0;
}

.layout_header #header_logo {
    display: inline-block;
    max-width: 150px;
    background-repeat: no-repeat;    
    margin: 0 30px 5px 0;
}
.layout_header #header_logo .header_logo-img {
    max-height: 120px;
}

.layout_header #logo_wrapper {
    display: flex;
    align-items: center;
}

.layout_header #header_title {
    color: #4698b8;
    display: inline-block;
    font-size: 18px;
    line-height: 55px;
    vertical-align: top;
    margin: 0;
}

.layout_header .home_link {
    display: inline-block;
    text-decoration: none;
}
.layout_header .test {
    color: red;
}

.layout_header .home_version {
    font-size: 12px;
}

.layout_header .header_user_box {
    margin-top: 5px;
}

.layout_header .list_jazyk {
    margin-top: 5px;
    margin-bottom: 0;
}

.layout_header .btn-primary {
    background-color: #333;
    box-shadow: none;
}
.layout_header .btn-primary:hover {
    background: #222;
}

/*** TopMenu ***/
.top_menu {
    border-top: 1px solid #424242;
    border-bottom: 1px solid #424242;
}

.top_menu nav {
    margin: 0;
    border: none;
    border-radius: 0;
}

.top_menu nav a {
    color: #FFF;
}
.top_menu nav a:hover {
    color: #337ab7;
}
.top_menu nav a:focus {
    color: #337ab7;
}

.top_menu .navbar {
    min-height: 100%;
}

.top_menu .navbar-default {
    background-color: #333;
    background-image: none;
    box-shadow: none;
}

.top_menu .navbar .navbar-header .navbar-brand {
    margin-bottom: 0;
}

.top_menu ul li.hide_show_buttons {
}

.top_menu ul li.highlight_bookkeeping a {
    font-style: italic;
    color: red;
}

/*** LeftMenu ***/
#left_menu {
    padding-top: 15px; 
    padding-bottom: 15px; 
}

#left_menu .navbar {
    min-height: 100%;
    margin-bottom: 0;
}

#left_menu .navbar .navbar-header .navbar-brand {
    margin-bottom: 0;
}

#left_menu #left_menu_navbar_collapse ul li {
    width: 100%;
}

#left_menu .navbar-nav {
    float: none !important;
}

#left_menu .navbar .navbar-nav > li > a {
    padding: 10px 20px;
}

#left_menu .left_menu_navbar_title {
    font-weight: bold;
    margin: 10px;
}

#left_menu #left_menu_navbar_collapse ul li.highlight a {
    font-style: italic;
    color: orange;
}

#left_menu #left_menu_navbar_collapse ul li.highlight_bookkeeping a {
    font-style: italic;
    color: red;
}

/*** Body ***/
.layout_body {
    background-color: #e8e8e8;
}

/*** Content ***/
.content {
    padding: 10px 0 40px 0;
}

.content h2 {
    font-size: 14px;
    margin-top: 10px;
    font-weight: bold;
}

.content h3 {
    font-size: 14px;
    padding-top: 10px;
    font-weight: bold;
    font-style: italic;
}

.content h4 {
    padding: 0;
    margin: 0;
    font-size: 13px;
    padding-top: 10px;
    font-weight: bold;
    font-style: normal;
    border-top: 1px solid #000;
}

.content .breadcrumb {
    margin-top: 7px;
}

.navbar .navbar-text {
    padding: 3px;
}

/*** Footer ***/
.layout_footer {
    position: absolute;
    bottom: 0px;
}

.layout_footer .footer_menu {

}

.footer_menu .navbar {
    background-color: #333;
    background-image: none;
    color: #999;
    min-height: 30px;
}
.footer_menu .navbar-brand {
    color: #999;
    height: 53px;
    font-size: 14px;
    text-shadow: none;
}

.footer_menu .navbar-text {
    padding: 3px;
}

.footer_menu .footer_menu_btn_top {
    display: none;    
    margin-top: 8px;
    padding: 5px;
    height: 34px;
    margin-left: 0px !important;
}

.footer_menu .footer_menu_dropdown_main_menu {
    display: none;
}

.layout_footer.test .navbar {
    background-image: none;
    background-color: orange;
}

.layout_footer.test .navbar-brand.test{
    color: red;
}

/*** message_block ***/
.message_block {
    margin: 10px;    
}

/*** errorstring_block ***/
.errorstring_block {
    margin: 10px;
}

/*** infostring_block ***/
.infostring_block {
    margin: 10px;
}

/*** js_warning ***/
.js_warning {
    margin: 10px;
}

/*** panely ***/
.home-panel .panel-body {
    padding: 0;
}
.home-panel .panel-body .home-panel-body-inner {
    padding: 15px;
}

.panel_warning .panel-heading {    
    background: #ff0000;
    color: #fff;
}

.panel_menu .panel-heading {
    background: #2600ff;
    color: #fff;
}

.panel_info .panel-heading {
    background: #adad00;
    color: #fff;
}

.panel_scheduler .panel-heading {
    background: #00b32a;
    color: #fff;
}

/*** list_buttons ***/
.list_buttons a {
    margin: 5px;    
}

/*** detail_buttons ***/
.detail_buttons a {
    margin: 5px;    
}

.panel .panel-default.header {
    color: #333;
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
    padding: 5px;
}
.panel .panel-default.header a {
    padding: 5px;
}
.panel .panel-default.header .glyphicon-resize-full,
.panel .panel-default.header .glyphicon-resize-small {
    color: #337ab7;
    margin-right: 5px;
}

/*** export_panel ***/
.export_panel {
    padding: 5px;
}

.export_panel .control-label {
    text-align: left;
}

.export_panel .export_buttons {
    border-top: 1px solid #337ab7;    
}

.export_panel .export_buttons a {
    margin: 5px 5px 0 5px;
}

/*** filter_panel ***/
.filter_panel {
    padding: 5px;
    border: 1px solid #337ab7;
}

.filter_panel .control-label {
    text-align: left;
}

.filter_panel .filter_buttons {
    border-top: 1px solid #337ab7;    
}

.filter_panel .filter_buttons a {
    margin: 5px 5px 0 5px;
}

/*** paging ***/
.paging_bar {
    margin-bottom: 20px;
    text-align: right;    
}

.paging_bar .pagination {
    margin-bottom: 0px;
}

.paging_bar .inputSetPageNo  {
    width: 70px;
    height: 17px;
    font-size: 12px;
}

/*** table ***/
table {
    background-color: #FFF;
}

table thead {
    background-color: #DDD;
}

/*** list ***/
.list {
}

.list_history {
    margin-bottom: 5px;
}

/*** detail ***/
.detail {
}

.detail .mandatory_info {
    margin: 5px 0;
}

.detail .form-group {
    margin-bottom: 0;
    border-bottom: 1px solid #CCC;
}

.detail .form-group label {
    min-height: 32px;
    min-width: 150px;
    text-align: left;
    background-color: #DDD;
    margin-bottom: 1px;
}

.detail.editing .form-group label {
    padding-bottom: 12px;
    padding-top: 12px;
    min-height: 39px;
}

.detail .colapse_info {
    padding-top: 2px;
    padding-bottom: 2px;
}

.detail.editing .colapse_info {
    padding-top: 7px;
    padding-bottom: 7px;
}

.detail .form-group .control {
    padding-top: 5px;
    padding-bottom: 5px;
    min-height: 22px;
}

.detail .form-group .control .form-control-static {
    min-height: 22px;
    padding: 2px 0;
}
.detail.editing .form-group .control .form-control-static {
    padding: 7px 0;
}

.detail .form-group label.separate-title {
    background-color: #BBB;
}

.detail .form-group label span.tooltip-info {
    padding: 0 5px;
}

.detail .detail_custom_item {
    padding: 10px 0;
}

.detail .detail_custom_item .list.panel {
    margin-bottom: 0;
}

.detail_control_link_box {
    padding-top: 10px;
}

.detail .detail_control_link {
    margin: 10px;
}

.detail .or_link {
    margin-right: 10px;
}
.detail .ir_link {
    margin-right: 10px;
}

/*** historie ***/
.history.panel {
    padding: 5px 0;
}

.history.panel a {
    margin-right: 10px;
}

.history.panel #history_box_collapse {
    border-top: 1px solid #CCC;
    padding-top: 7px;
}

.bootstrap-datetimepicker-widget table thead {
    background-color: #FFF;
}

/*** Rotacia graphicon ***/
.glyphicon-refresh-animate {
    -animation: spin .7s infinite linear;
    -webkit-animation: spin2 .7s infinite linear;
}

@-webkit-keyframes spin2 {
    from { -webkit-transform: rotate(0deg); }
    to { -webkit-transform: rotate(360deg); }
}

@keyframes spin {
    from { transform: scale(1) rotate(0deg); }
    to { transform: scale(1) rotate(360deg); }
}

/*** jQuery UI autocomplete ***/
.ui-autocomplete {
    position: absolute;
    z-index: 1000;
    cursor: default;
    padding: 0;
    margin-top: 2px;
    list-style: none;
    background-color: #ffffff;
    border: 1px solid #ccc;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    -webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    -moz-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}
.ui-autocomplete > li {
    padding: 3px 20px;
}
.ui-autocomplete > li.ui-state-focus {
    background-color: #DDD;
    border: 1px solid rgb(102, 175, 233);
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    -webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    -moz-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    color: #337ab7;
}
.ui-helper-hidden-accessible {
    display: none;
}

.import-report {
    padding: 5px;
}

/* Start by setting display:none to make this hidden.
   Then we position it in relation to the viewport window
   with position:fixed. Width, height, top and left speak
   for themselves. Background we set to 80% white with
   our animation centered, and no-repeating */
.loader {
    display:    none;
    position:   fixed;
    z-index:    1000;
    top:        0;
    left:       0;
    height:     100%;
    width:      100%;
    background: rgba( 255, 255, 255, .8 ) 
        url('../img/loading.svg') 
        50% 50% 
        no-repeat;
}

/* When the body has the loading class, we turn
   the scrollbar off with overflow:hidden */
body.loading {
    overflow: hidden;   
}

/* Anytime the body has the loading class, our
   modal element will be visible */
body.loading .loader {
    display: block;
}

/* UI dialog */
.ui-widget-header {
    background: #337ab7;
    border: none;
}

.ui-widget-header button {
    background-color: #666666;
}

.ui-dialog-titlebar-close {
    background: url('../img/images/ui-icons_ffffff_256x240.png');
    background-position: -80px -128px;
}

.kategorie.panel {
    padding: 5px 0;
}

.kategorie.panel #kategorie_box_collapse {
    border-top: 1px solid #cccccc;
    padding-top: 7px;
}

.titleImportantInfo {
    color: red;
    font-size: 20px;
}

.home-panel a[data-toggle="collapse"] {
    color: #fff;
}

.right-panel-active #form_base,
.right-panel-active .footer_menu .navbar {
    margin-right: 10px;
}

#right-panel {
    background-color: #fff;
    box-shadow: 0px 0px 6px 0px rgba(0,0,0,0.33);
    width: 200px;
    height: 100%;
    position: absolute;
    top: 0;
    right: 0;
    margin-right: -190px;
    z-index: 9999;
    transition: margin-right .5s;
}
#right-panel.show {
    margin-right: 0;
    transition: margin-right .5s;
}
#right-panel .glyphicon {
    font-size: 18px;
    line-height: 50px;
    transform: rotate(0deg);
    transition: transform .5s;
}
#right-panel.show .glyphicon {
    transform: rotate(180deg);
    transition: transform .5s;
}
#right-panel .right-panel-inner {
    position: relative;
    padding: 20px 20px 20px 45px;
}
#right-panel #right-panel-btn-toggle {
    background-color: #fff;
    border-radius: 50%;
    box-shadow: -5px 0px 5px -4px rgba(0,0,0,0.33);
    width: 50px;
    line-height: 50px;
    position: absolute;
    outline: none;
    left: -25px;
    padding: 0;
}

/* Timeline milestone */
.timeline-title {
  margin-top: 15px !important;
}
.timeline {
  margin-top: 25px;
}
.timeline .first {
  left: 0;
}
.timeline .last {
  right: 0;
}
.timeline .checkmark {
  color: #000;
}
.timeline .labels {
  min-height: 50px;
}
.panel-timeline .milestones-container {
  overflow-x: auto;
}

/* === Nove styly === */

/* --- Form ---  */

/* RadioToggle */
.fw-radio-toggle {
    background-color: #DDD;
    border-radius: 50px;
    cursor: pointer;
    width: 40px;
    height: 22px;
    position: relative;
}
.fw-radio-toggle::after {
    background-color: #fff;
    border-radius: 50px;
    content: '';
    display: block;
    width: 19px;
    height: 18px;
    position: absolute;
    left: 2px;
    top: 2px;
    transition: .3s margin-left;
}
.fw-radio-toggle--checked {
    background-color: #006BB2;
}
.fw-radio-toggle--checked::after {
    margin-left: 17px;
    transition: .3s margin-left;
}
.fw-radio-toggle--disabled {
    cursor: not-allowed;
    opacity: .5;
}

.btn-primary,
.btn-default,
.btn-danger,
.btn-warning {
    background-image: none !important;
    border: none;
    box-shadow: none;
    text-shadow: none;
}

.navbar-default .navbar-nav>.active>a, .navbar-default .navbar-nav>.open>a {
    background-image: none;
    box-shadow: none;
}

/* === PDF Viewer === */

.html-pdfviewer {
    width: 100%;
}

.body-pdfviewer {
    height: 100%;
    overflow: auto;
}

:-ms-fullscreen #the-canvas-wrapper {
    z-index: 0;
    overflow: auto;
}

:-ms-fullscreen #tools {
    margin-right: 17px;
}

#the-canvas-wrapper CANVAS {
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    border: 1px solid #ddd;
    margin: auto;
    display: block;
    position: relative;
    margin-bottom: 20px;
    background-color: white;
}

#tools {
    width: fit-content;
    padding: 0px 2.5px;
    display: inline-block;
    text-align: left;
    margin-bottom: 0px;
}

#tools-wrapper {
    position: fixed;
    z-index: 10;
    width: 100%;
    text-align: center;
    margin-bottom: 20px;
}

#tools button {
    outline: none;
}

#tools button,
#tools input {
    margin: 5px 2.5px;
}

#tools .center {
    display: inline;
    vertical-align: middle;
    white-space: nowrap;
}

#the-canvas-wrapper {
    height: 100%;
    position: absolute;
    width: 100%;
}

#close_fullscreen {
    display: none;
}

:-webkit-full-screen #open_fullscreen {
    display: none;
}
:-moz-full-screen #open_fullscreen {
    display: none;
}
:-ms-fullscreen #open_fullscreen {
    display: none;
}
:fullscreen #open_fullscreen {
    display: none;
}

:-webkit-full-screen #close_fullscreen {
    display: inline-block;
}
:-moz-full-screen #close_fullscreen {
    display: inline-block;
}
:-ms-fullscreen #close_fullscreen {
    display: inline-block;
}
:fullscreen #close_fullscreen {
    display: inline-block;
}

#page_num,
#page_scale {
    text-align: right;
    max-width: 50px;
}

#the-canvas-1.loader {
    border: 0;
    margin: 0;
}

@media print {
    canvas {
        display: none !important;
    }
}

/* === PDF Viewer END === */
.next_item_input {
    margin-top: 5px;
}

/* table checkbox */
table input[type=checkbox] {
	display: block;
	margin: 0px;
}

/**
 * Prepinani komponent pri vyberu subjektu
 */

.department {
	display: none;
}

.department.active {
	display: block;
}

/**
 * Informacni zpravy
 */

.message_block .alert-warning A {
    color: #8a6d3b;
}
