/* liché vs sudé řádky */
.interlaced .row:nth-child(even) {
    background-color: inherit;
}

.interlaced .row:nth-child(odd) {
    background-color: rgba(0, 0, 0, 0.05);
}


/* ostatní... */
.navbar {
    margin-bottom: 10px;
}

#titleBarHeader ul {
    margin-left: 0;
    padding-left: 0;
}

#titleBarHeader ul li {
    list-style-type: none;
    line-height: 1em;
    float: left;
    margin-right: .5em;
}

.sman-header {
    margin: 10px 0 10px;
}

.sman-header-page {
    margin: 0;
    padding: 0;
}

.sman-small-title {
    color: #FFFFFF;
    font-size: 20px;
    font-variant: small-caps;
    font-weight: bold;
    /*height: 25px;*/
    margin-top: 6px;
    /* overflow: hidden; */
    margin-bottom: -10px;
}

.sman-small-title.sman-small-title-up {
    margin-top: -3px;
}

#PageContent {
    padding: 0;

}

#PageContent .sman-small-title {
    color: #000;
    font-size: 18px;
    font-variant: small-caps;
    font-weight: bold;
    height: 30px;
    margin-top: 3px;
    overflow: hidden;
    text-align: right;
}

/* rychlé hledání */

#fastFindResult .sup,
#fastFindResult .sub {
    display: block;
    width: 100%;
    line-height: 15px;
    float: left;
    overflow: hidden;
    height: 15px;
}

#fastFindResult .row {
    border-bottom: 1px solid #cccccc;
}

#fastFindResult div.row:nth-child(2n) {
    background-color: #eeeeee;
}

.fastFind-date {
    text-align: center;
    line-height: 1.6rem;
}

.fastFind-text {
    line-height: 1.6rem;
}

/* vzhled collapse :) */

.js-tabcollapse-panel-heading {
    display: block;
    font-weight: bold;
}

.panel-default>.panel-heading {
    background-color: #eeeeee;
}

.panel-collapse {
    background-color: #f5f5f5;
}

.well.inforeview {
    padding: 1px !important;
}

.ui-search-toolbar .bootstrap-datetimepicker-widget {
    position: absolute;
}

.s4s-underline {
    border-bottom: 1px solid #e5e5e5;
}

.s4s-error {
    margin: 0 0 7px;
}

.s4s-dph {
    text-transform: capitalize;
}

.ui-jqgrid .fullTextView tr.jqgrow td {
    vertical-align: top !important;
    padding-top: 4px !important;
    white-space: normal !important;
    overflow: auto !important;
}

#config-interface fieldset {
    margin-bottom: 2em;
}

.dropdown-menu {
    z-index: 10000 !important;
    /*position: absolute !important; */
    /*
	background: rgba(255, 255, 255, .7);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
    */
}


ul.flags {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    column-gap: 10px;
}

ul.flags li img {
    max-height: 1.7rem;
}

ul.flags .btn {
    width: 6rem;
}

/*
.flags a img{
	border: 2px solid transparent;
}

.flags a:hover img{
	border: 2px solid #000;
}

.flags .active a img{
	border: 2px solid #aaa;
}
*/

.error,
.oki,
.info {
    padding: 1rem;
    font-weight: bold;
    text-align: center;
}

.error {
    background-color: #F00;
}

.oki {
    background-color: #0F0;
}

.info {
    background-color: #99F;
}

.vcard {
    text-align: center;
}

@media (max-width:767px) {
    body>.container-fluid {
        padding-right: 1px;
        padding-left: 1px;

    }
}

#dialogAboutSystem input {
    color: #000 !important;
    background-color: transparent !important;
    border-width: 0 !important;
    padding: 0 !important;
    height: auto !important;
    margin: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}


/* https: //www.sliderrevolution.com/resources/css-animated-background/ */
.newCalendarEvent {
    color: #000 !important;
    border-color: transparent !important;
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: nceGradient 10s ease infinite;
}

@keyframes nceGradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

#fakefocusinput {
    display: block;
    width: 0;
    height: 0;
    left: -10px;
    position: fixed;
    top: -10px;

}

body.dragging #fakefocusinput {
    position: absolute;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    animation: rotating 1s linear infinite;
    color: transparent;
}

@keyframes rotating {
    from {
        -ms-transform: rotate(0deg);
        -moz-transform: rotate(0deg);
        -webkit-transform: rotate(0deg);
        -o-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    to {
        -ms-transform: rotate(360deg);
        -moz-transform: rotate(360deg);
        -webkit-transform: rotate(360deg);
        -o-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}


#grafickyprehled #header {
    margin-bottom: 20px;
}


#grafickyprehled .column {
    border: 1px solid silver;
    border-radius: 5px;
    display: inline-block;
    margin: 0 5px 10px 0;
    padding: 10px 10px 3px;
    vertical-align: top;
    min-width: 150px;
    max-width: calc(33% - 5px);
}

#grafickyprehled .column .head {
    margin-bottom: 10px;
    padding-left: 5px;
    padding-right: 5px;
    border-bottom: 1px solid gray;
    font-weight: bold;
    font-size: 120%;
}

#grafickyprehled .column .event {
    background-color: #ddd;
    border-radius: 5px;
    color: #000;
    display: inline-block;
    margin-bottom: 10px;
    padding: 5px 10px;
    width: 100%;
    overflow: hidden;
    position: relative;
}

#grafickyprehled .column .day .event {
    /*width: calc(100% - 10px);
margin-left: 10px;*/
    margin-bottom: 2px;
}

#grafickyprehled .column .day .name {
    /*font-weight: bold;*/
    border-bottom: 1px gray dotted;
    margin-bottom: 5px;
    font-style: italic;
}

#grafickyprehled .column .day .name span {
    float: right;
}

#grafickyprehled .column .event:hover {
    text-decoration: none;
    background-color: #aaa;
}

#grafickyprehled .column .event .time {
    /*font-size: 90%;*/
    font-weight: bold;
}

#grafickyprehled .column .event .firma {
    font-style: italic;
}

#grafickyprehled .column .event .nazev {
    margin-bottom: 5px;
    border-bottom: 1px dotted #999;
}

#grafickyprehled .column .event .popis {
    margin-top: 5px;
}

#grafickyprehled .column .event .link {
    float: right;
    color: silver;
    text-decoration: none;
}

#grafickyprehled .column .event .stav {
    position: absolute;
    top: 0;
    right: 0;
    opacity: 0.5;
}

#grafickyprehled .column .event:hover .stav {
    opacity: 1;
}

.stav.label.label-custom {
    background-color: #fff;
    border-color: #ddd;
    border-width: 1px;
    border-style: solid;
    border-radius: 0 5px;
}

#grafickyprehled #header>.btn,
#grafickyprehled #header>.btn-group {
    margin-right: 10px;
}


#grafickyprehled #btn-now {
    font-weight: bold;
    min-width: 170px;
    max-width: 300px;
}

.form-control::placeholder {
    color: #AAA !important;
    font-style: italic;
}

.tab-content {
    padding-top: 10px;
}

.form-control,
.input-group {
    margin-bottom: 10px;
}

.form-control[name=hidden] {
    visibility: hidden;
}

#menu-definition .form-control[name=hidden] {
    visibility: visible;
}

/* .required~.select2 .select2-selection toto je asi špatně, označuje to všechny následující, myslím, že tím bylo myšleno pouze následující */
*.required:not(.disabled),
*.required-pseudo,
.required+.select2 .select2-selection {

    background-color: #AFF !important;
}

/* design fix for bootbox */
.bootbox-prompt-message {
    margin-bottom: 2rem;
}


/* https: //stackoverflow.com/questions/32233489/does-bootstrap-have-builtin-padding-and-margin-classes */
.padding-xs {
    padding: .25em;
}

.padding-sm {
    padding: .5em;
}

.padding-md {
    padding: 1em;
}

.padding-lg {
    padding: 1.5em;
}

.padding-xl {
    padding: 3em;
}

.padding-x-xs {
    padding: .25em 0;
}

.padding-x-sm {
    padding: .5em 0;
}

.padding-x-md {
    padding: 1em 0;
}

.padding-x-lg {
    padding: 1.5em 0;
}

.padding-x-xl {
    padding: 3em 0;
}

.padding-y-xs {
    padding: 0 .25em;
}

.padding-y-sm {
    padding: 0 .5em;
}

.padding-y-md {
    padding: 0 1em;
}

.padding-y-lg {
    padding: 0 1.5em;
}

.padding-y-xl {
    padding: 0 3em;
}

.padding-top-xs {
    padding-top: .25em;
}

.padding-top-sm {
    padding-top: .5em;
}

.padding-top-md {
    padding-top: 1em;
}

.padding-top-lg {
    padding-top: 1.5em;
}

.padding-top-xl {
    padding-top: 3em;
}

.padding-right-xs {
    padding-right: .25em;
}

.padding-right-sm {
    padding-right: .5em;
}

.padding-right-md {
    padding-right: 1em;
}

.padding-right-lg {
    padding-right: 1.5em;
}

.padding-right-xl {
    padding-right: 3em;
}

.padding-bottom-xs {
    padding-bottom: .25em;
}

.padding-bottom-sm {
    padding-bottom: .5em;
}

.padding-bottom-md {
    padding-bottom: 1em;
}

.padding-bottom-lg {
    padding-bottom: 1.5em;
}

.padding-bottom-xl {
    padding-bottom: 3em;
}

.padding-left-xs {
    padding-left: .25em;
}

.padding-left-sm {
    padding-left: .5em;
}

.padding-left-md {
    padding-left: 1em;
}

.padding-left-lg {
    padding-left: 1.5em;
}

.padding-left-xl {
    padding-left: 3em;
}

.margin-xs {
    margin: .25em;
}

.margin-sm {
    margin: .5em;
}

.margin-md {
    margin: 1em;
}

.margin-lg {
    margin: 1.5em;
}

.margin-xl {
    margin: 3em;
}

.margin-x-xs {
    margin: .25em 0;
}

.margin-x-sm {
    margin: .5em 0;
}

.margin-x-md {
    margin: 1em 0;
}

.margin-x-lg {
    margin: 1.5em 0;
}

.margin-x-xl {
    margin: 3em 0;
}

.margin-y-xs {
    margin: 0 .25em;
}

.margin-y-sm {
    margin: 0 .5em;
}

.margin-y-md {
    margin: 0 1em;
}

.margin-y-lg {
    margin: 0 1.5em;
}

.margin-y-xl {
    margin: 0 3em;
}

.margin-top-xs {
    margin-top: .25em;
}

.margin-top-sm {
    margin-top: .5em;
}

.margin-top-md {
    margin-top: 1em;
}

.margin-top-lg {
    margin-top: 1.5em;
}

.margin-top-xl {
    margin-top: 3em;
}

.margin-right-xs {
    margin-right: .25em;
}

.margin-right-sm {
    margin-right: .5em;
}

.margin-right-md {
    margin-right: 1em;
}

.margin-right-lg {
    margin-right: 1.5em;
}

.margin-right-xl {
    margin-right: 3em;
}

.margin-bottom-xs {
    margin-bottom: .25em;
}

.margin-bottom-sm {
    margin-bottom: .5em;
}

.margin-bottom-md {
    margin-bottom: 1em;
}

.margin-bottom-lg {
    margin-bottom: 1.5em;
}

.margin-bottom-xl {
    margin-bottom: 3em;
}

.margin-left-xs {
    margin-left: .25em;
}

.margin-left-sm {
    margin-left: .5em;
}

.margin-left-md {
    margin-left: 1em;
}

.margin-left-lg {
    margin-left: 1.5em;
}

.margin-left-xl {
    margin-left: 3em;
}

/* šipka nahoru / šipka dolů */

button.icon-toggle .icon-up {
    display: inline;
}

button.icon-toggle .icon-down {
    display: none;

}

button.icon-toggle.collapsed .icon-up {
    display: none;
}

button.icon-toggle.collapsed .icon-down {
    display: inline;
}

/* platnost neplatnost zboží */
.mat-plat {
    color: #0F0;
    /* background-color: #9F9; */
}

.mat-neplat {
    color: #F00;
    /* background-color: #F99; */
    font-weight: bold;
}

/* loader */
.loader,
.loader:before,
.loader:after {
    border-radius: 50%;
    width: 2.5em;
    height: 2.5em;
    animation-fill-mode: both;
    animation: bblFadInOut 1.8s infinite ease-in-out;
}

.loader {
    color: #FFF;
    font-size: 7px;
    position: relative;
    text-indent: -9999em;
    transform: translateZ(0);
    animation-delay: -0.16s;
}

.loader:before,
.loader:after {
    content: '';
    position: absolute;
    top: 0;
}

.loader:before {
    left: -3.5em;
    animation-delay: -0.32s;
}

.loader:after {
    left: 3.5em;
}

@keyframes bblFadInOut {

    0%,
    80%,
    100% {
        box-shadow: 0 2.5em 0 -1.3em
    }

    40% {
        box-shadow: 0 2.5em 0 0
    }
}

/* JQGRID */

zatim_nefunkcni.ui-jqgrid {
    width: 100% !important;

    .ui-jqgrid-pager,
    .ui-jqgrid-view,
    .ui-jqgrid-bdiv,
    .ui-jqgrid-hdiv,
    .ui-userdata,
    .ui-jqgrid-btable,
    .ui-jqgrid-htable {
        width: 100% !important;
    }

    .ui-jqgrid-hbox {

        padding-right: 0 !important;
    }
}

/* skrytí posuvníku jQGridu, posouvalo se to o 1px a dělalo to bordel */
.ui-jqgrid-bdiv {
    overflow: hidden !important;
}

/* titulek stránky na mobilu */

@media (max-width:767px) {
    #PageContent .sman-small-title {
        margin-bottom: 0;
        /* text-align: center; */
    }
}


/* --- změna aktivní hlavičky --- */
/* zmenšení inputu */
#fastChangeHeaderWindow input[type=radio] {
    margin: auto;
    width: 2rem;
}

/* "vertikální vycentrování" */
#fastChangeHeaderModal label {
    margin: 7px auto auto;
}

/* odřádkování sudých řádků */
#fastChangeHeaderWindow .row:nth-child(2n+1) {
    background-color: #eee;
}

/* tlačítka na přehledech */
button .btn-width-fix {
    width: 85px;
    display: inline-block;
}


/* černé popisky */
.popover-content {
    text-align: center;
}

.popover-content button {
    margin: 0 7px;
}

/* infopanel */
#infopanel .btn {
    margin-bottom: 1px;
    flex-grow: 1;
}

#infopanel .btn-group {
    display: flex;
    flex-wrap: wrap;
}

/* komplic */
#komplicTable th,
#komplicTable td {
    vertical-align: middle;
}

/* odskok od tlačítek na formu - náhrada ze BR */
.form-margin-top {
    margin-top: 1rem;
}

/* odstraňovací tlačítko ze select2 tagů */
.select2-selection--multiple .select2-selection__choice__remove {
    padding: 1px 3px;
    margin: 0;
    border: 0;
    background-color: transparent;
}

/* select2 tag - seřazení položek za sebe */
.select2-selection--multiple .select2-selection__rendered {
    float: left;
    width: unset !important;
}

/* select2 tag - zmenšení vyhledávacího pole  */
textarea.select2-search__field {
    /* height dle Bootstrapu */
    height: 32px !important;
    padding-top: 6px;
}

/* Hack s AutoComplete inputem */
/* browser vyplňoval inputy (hesla) a nebylo možné se toho zbavit) */
input[readonly][autocomplete] {
    background-color: #fff !important;
}

/* jqGrid DateTimePicker */
.jqGridDateTimePicker {
    .ui-jqgrid-hdiv {
        overflow: visible !important;
    }

    /* .ui-jqgrid-hbox {
        overflow: visible !important;
    } */

    /* .ui-th-column {
        overflow: visible !important;
    } */

    /* .ui-jqgrid .ui-jqgrid-htable th div {
        overflow: visible !important;
    } */
}