/* Nastavování délky všech elementů vč. paddingu a borderu */
*, *:before, *:after {
    box-sizing: border-box;
}

body {
    color: #000000;
    background: #FFFFFF;
    font-family: Tahoma, Arial, Helvetica, sans-serif;
    font-size: 11px;
    margin: 0 0 0 0;
    -webkit-text-size-adjust: none;
    line-height: 1.25;
    overflow-y: scroll;
}

#logo {
    margin: 3px 0 3px 0;
    width: 748px;
}

#logonscreen {
    text-align: center;
    width: 500px;
    height: 200px;
    position: absolute;
    top: 50%;
    left: 50%;
    margin: -100px 0 0 -250px;
}

.maincontent {
    text-align: left;
    width: 748px;
    margin: auto;
}

.blueband {
    color: #FFFFFF;
    background-color: #000066;
    padding: 2px 4px 2px 4px;
    font-weight: bold;
    text-align: center;
    border: 0.91px solid #000066;
}

.blueband:target {
    background-color: #166600;
}

.blueband A {
    color: #FFFFFF;
    text-decoration: none;
}

.blueband A:hover {
    color: #FF0000;
    text-decoration: none;
}

h1 {
    font-size: 15px;
    text-align: left;
    font-weight: bold;
}


hr {
    margin: 5px -5px 4px -5px;
    height: 0;
    border: 0;
    border-top: 0.91px solid #555555;
}

table.formular hr {
    margin-left: -7px;
}

.modal {
    overflow-y: auto;
    overflow-x: hidden;
}

.modal hr {
    margin: 5px 0 4px 0;
}

.left {
    float: left;
}

.right {
    float: right;
}

.top {
    vertical-align: top;
}

button.left {
    margin-right: 5px;
}

button.right {
    margin-left: 5px;
}

div.clearer {
    clear: both;
    height: 0;
}

div.break {
    height: 5px;
}


.window {
    background-color: #f6f6fd;
    padding: 5px 5px 5px 5px;
    border: 0.91px solid #555555;
    border-top-width: 0;
    margin-bottom: 5px;
}

/* Náhrada za CLEAR element */
.window::after,
.blueband::after {
    content: "";
    clear: both;
    display: table;
}

.error {
    padding: 5px 7px 5px 7px;
    font-weight: bold;
    font-size: 100%;
    color: #FFFFFF;
    background-color: #FF0000;
    text-align: center;
    margin-bottom: 4px;
}

.error a {
    color: #FFFFFF;
    text-decoration: underline;
}

.error a:hover {
    color: #000000 !important;
}

.message {
    padding: 5px 7px 5px 7px;
    font-weight: bold;
    font-size: 100%;
    color: #000000;
    background-color: #63C752;
    text-align: center;
    margin-bottom: 4px;
}

.warning {
    padding: 5px 7px 5px 7px;
    font-weight: bold;
    font-size: 100%;
    color: #000000;
    background-color: #EDE22A;
    text-align: center;
    margin-bottom: 4px;
}

.information {
    padding: 5px 7px 5px 7px;
    font-weight: bold;
    font-size: 100%;
    color: #000000;
    background-color: #78B0F4;
    text-align: center;
    margin-bottom: 4px;
}

.list tr:nth-child(odd) {
    background-color: #F0F0F7;
}

.list tr:nth-child(even) {
    background-color: #F6F6FD;
}

.list tr:hover {
    background-color: #CCCCFF !important;
}

.yellowhighlight {
    background-color: #FEFD92 !important;
}

.greyhighlight {
    background-color: #DDD !important;
}

a {
    color: #000000;
    text-decoration: none;
    outline: none;
}

a:hover {
    color: #FF0000 !important;
    text-decoration: underline;
}

img {
    border: 0;
    vertical-align: middle;
}

img[onclick] {
    cursor: pointer;
}

i[onclick], i.dropdown-click {
    cursor: pointer;
}

i[onclick]:hover, i.dropdown-click:hover {
    color: #FF0000 !important;
}

form {
    padding: 0;
    margin: 0;
}

table {
    width: 100%;
    font-size: 100%;
    empty-cells: show;
    border-collapse: collapse;
    table-layout: fixed;
}

td {
    padding: 1px 3px 1px 3px;
    font-size: 100%;
    text-align: left;
    vertical-align: top;
}

th {
    font-size: 100%;
    color: #000000;
    padding: 5px 5px 5px 5px;
    vertical-align: middle;
    font-weight: bold;
    text-align: left;
}

.list th {
    background: #9999CC;
    padding: 5px 5px 5px 5px;
    border: 1px solid #f6f6fd;
    font-weight: normal;
}

.list td {
    border: 1px solid #f6f6fd;
    padding-top: 2px;
    padding-bottom: 4px;
}

.list td.top {
    padding-top: 4px;
}

button {
    font-size: 100%;
    margin: 0 0 0 0;
    padding: 1px 5px 0 5px;
    text-transform: uppercase;
    height: 19px;
    color: #FFFFFF;
    border: 0.91px solid #666666;
    background: #475A9C linear-gradient(#475A9C, #7EA0BC);
    border-radius: 3px;
}

/*
button[type="submit"] {
  Xbackground: linear-gradient(#D71E24, #E68F93);
  Xborder: 1px solid #6B1A1D;
  Xbackground: linear-gradient(#35A11C, #89C77B);
  Xborder: 1px solid #447734;
  Xfont-weight: bold;
  Xtext-decoration: underline;
} */

/* FORMULÁŘ */
.formular thead td {
    display: none;
}

.formular th {
    padding: 3px 3px 3px 0;
    font-weight: normal;
    text-align: right;
    vertical-align: middle;
    height: 15px;
}

.formular td {
    padding: 1px 0 1px 2px;
    text-align: left;
    vertical-align: middle;
}

input {
    font-family: Tahoma, Arial, Helvetica, sans-serif;
    padding: 0 3px 0 4px;
    font-size: 100%;
    height: 19px;
    width: 100%;
    border-top: 0.91px solid #abadb3;
    border-right: 0.91px solid #dbdfe6;
    border-bottom: 0.91px solid #e3e9ef;
    border-left: 0.91px solid #e2e3ea;
    border-radius: 2px;
}

select {
    font-family: Tahoma, Arial, Helvetica, sans-serif;
    font-size: 100%;
    height: 19px;
    width: 100%;
    border-top: 0.91px solid #abadb3;
    border-right: 0.91px solid #dbdfe6;
    border-bottom: 0.91px solid #e3e9ef;
    border-left: 0.91px solid #e2e3ea;
    border-radius: 2px;
    /* Potlačení gradientu na iPhone + opětovné přidání výběrové šipky pomocí obrázku (funguje i v IE) */
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #ffffff;
    background-image: url(images/dropdown.png);
    background-position: calc(100% - 3px) center;
    background-repeat: no-repeat;
    background-size: 9px;
    padding-right: 15px;
}

select::-ms-expand {
    display: none;
}

textarea {
    font-family: Tahoma, Arial, Helvetica, sans-serif;
    font-size: 100%;
    width: 100%;
    margin: 0;
    padding: 2px 3px 2px 4px;
    border-top: 0.91px solid #abadb3;
    border-right: 0.91px solid #dbdfe6;
    border-bottom: 0.91px solid #e3e9ef;
    border-left: 0.91px solid #e2e3ea;
    border-radius: 2px;
    min-width: 100%;
    max-width: 100%; /* Možnost roztahování */
    overflow: auto;
    min-height: 19px;
}

input::placeholder, select::placeholder, textarea::placeholder {
    color: #ddd;
}

:-ms-input-placeholder { /* Speciálně pro IE 11 */
    color: #ccc !important;
}

input[type="checkbox"], input[type="radio"] {
    vertical-align: middle;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    border: 0;
}

textarea[disabled], input[disabled], select[disabled] {
    background-color: #f0f0f0;
    color: #000;
    opacity: 1;
}

@-moz-document url-prefix() {
    select[disabled] {
        /* propadávání myších událostí na nadřízený element - kvůli zobrazení historie */
        pointer-events: none;
    }
}

/* jen pro CHROME, kvůli vypínání šipky u disabled selectů */
select:not(*:root) {
    padding-left: 4px;
}

select[disabled]::-ms-expand {
    display: none;
}

select[disabled]::-ms-value {
    background-color: #f0f0f0;
    color: #000;
}

button[disabled] {
    background-image: none;
    background-color: #f0f0f0;
    color: #999999;
    border-color: #999999;
}

/*textarea[readonly], input[readonly], select[readonly] {
  background-color: #f0f0f0;
  color: #000000;
}

:focus[readonly] {
  background-color: #f0f0f0;
  color: #000000;
} */

.individualInputSelect {
    cursor: default;
}

.individualInputSelect:not([disabled])::selection {
    color: inherit;
    background: transparent;
}

textarea[badvalue], input[badvalue], select[badvalue], .badvalue {
    background: #FEECEC;
    border: 0.91px solid #D63C3C;
}

select[badvalue] {
    background-image: url(images/dropdown.png);
    background-position: calc(100% - 3px) center;
    background-repeat: no-repeat;
    background-size: 9px;
}

textarea:focus:not([readonly]), input:focus:not([readonly]), select:focus, input.individualInputSelect:focus {
    background-color: #FFFF9D !important;
}

textarea:focus, input:focus, select:focus, button:focus {
    outline: 0;
}

/* Skrytí inputu pro upload souborů */
.file_input_div {
    position: relative;
    width: 16px;
    height: 16px;
    overflow: hidden;
}

.file_input_button {
    width: 16px;
    height: 16px;
    position: absolute;
    top: 0;
    background-color: #33BB00;
    color: #FFFFFF;
    border-style: solid;
}

.file_input_hidden {
    font-size: 45px;
    position: absolute;
    right: 0;
    top: 0;
    opacity: 0;
    filter: alpha(opacity=0);
}

/* Tisk na šířku */
.landscape {
    transform: rotate(90deg) translatex(100%);
    transform-origin: top right;
}

.center {
    text-align: center;
}

.middle {
    vertical-align: middle;
}

.underline {
    text-decoration: underline;
}

.page-buttons {
    margin-top: 5px;
    text-align: center;
}

.page-buttons button {
    margin: 0 2px 0 2px;
    padding: 1px 4px 1px 4px;
    min-width: 25px;
}

.selected-page-button {
    background-color: #FFFF00;
    color: #000000;
    background-image: none;
}

.mainmenu {
    float: left;
    width: 500px;
}

.mainmenu h1 {
    margin: 0 0 -4px 7px;
}

.mainmenu ul {
    margin: 10px 0 10px 20px;
    list-style: disc;
    padding: 0 0 0 10px;
}

.mainmenu li {
    margin: 0 0 15px 0;
}

.high {
    color: DodgerBlue;
}

.high:hover {
    color: red;
}

.mainmenuwindow {
    width: 100%;
    background-color: #FFFFFF;
    padding: 7px 0 9px 9px;
    margin: 0 0 10px 15px;
    border: 0.91px solid #000000;
    box-shadow: 2px 2px 5px 0 rgba(0, 0, 0, 0.2);
}

.mainmenuwindow ul {
    margin: 0 0 0 0;
    padding: 0 0 0 15px;
}

#emergencymessage {
    color: #FFFFFF;
    background-color: #FF0000;
    padding: 5px 7px 5px 7px;
}

#adminmessage {
    color: #FFFFFF;
    background-color: #9999cc;
    padding: 5px 7px 5px 7px;
}

#footer {
    padding: 0 15px 0 5px;
    margin-top: -2px;
    font-size: 80%;
}

#overlay {
/ / Překryv pro JS funkci Wait() background-image: url(images/transparent.gif);
    cursor: wait;
    display: none;
    height: 100%;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10000;
}

#overlay_dark {
    background-color: #000000;
    display: none;
    height: 100%;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    opacity: 0.7;
}

.overlay_box {
    display: none;
    position: fixed;
    left: 50%;
    top: 50%;
    z-index: 1000;
    background: #FFF;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 0 10px 5px #444;
}

.overlay_caption {
    position: absolute;
    top: -45px;
    left: 0;
    padding: 4px 12px 6px 12px;
    font-size: 25px;
    border-radius: 10px;
    background-color: #FFFFFF;
}

/* DRAGGABLE */
.overlay_caption:hover {
    cursor: grab;
}

.ui-draggable-dragging .overlay_caption:hover {
    cursor: e-resize;
}

/* DRAGGABLE END */


.overlay_close {
    position: absolute;
    top: -45px;
    right: 0;
    padding: 5px 12px 5px 12px;
    font-size: 25px;
    border-radius: 10px;
    background-color: #FFFFFF;
    height: 40px;
}

.overlay_help {
    position: absolute;
    top: -45px;
    right: 46px;
    padding: 5px 14px 5px 14px;
    font-size: 25px;
    border-radius: 10px;
    background-color: #FFFFFF;
    height: 40px;
}

.overlay_iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

#bunchtree div {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

#bunchtree ul {
    margin: 0;
    padding-left: 20px;
    list-style: none;
}

#bunchtree li {
    padding-top: 5px;
}

#bunchtree img {
    vertical-align: top;
    margin-right: 4px;
    height: 15px;
    width: 16px;
}

.ellipsis {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

datalist {
    display: none;
}

.tbody_off {
    display: none;
}

.tbody_on {
    display: table-row-group;
}

button, i.button {
    cursor: pointer;
}

@media print {
    .noprint, button, .button {
        display: none !important;
    }

    .window {
        background-color: transparent;
    }

    .formular th, .formular td {
        border-color: transparent;
    }

    textarea {
        max-height: none !important;
    }
}

@media screen {
    /* V sekci SCREEN kvůli možnosti jiného chování při tisku - bez scrolování */
    /* Např. dlouhý seznam vypravení v detailu dokumentu */
    .collapsed {
        overflow-y: auto;
        max-height: 73px; /* 5 řádků textu*/
    }

    .collapsed15 {
        overflow-y: auto;
        max-height: 235px; /* 15 řádků textu*/
    }

}

.format-integer, .format-float {
    text-align: left;
}

.top-bar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: white;
}

.bottom-bar {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: white;
}

.bottom-bar input[type="checkbox"] {
    vertical-align: middle;
    margin-bottom: 2px;
}

.bold {
    font-weight: bold;
}

.dashboard {
    margin-left: -24px;
    width: 520px;
}

.dashboard a {
    color: inherit;
}

.dashboard-box,
.dashboard-box-hover,
.dashboard-box-hover-half,
.dashboard-box-caption,
.dashboard-box-caption-half {
    background-color: #E1E1F5;
    margin: 0 5px 5px 0;
    text-align: center;
    width: 125px;
    padding: 12px 0 12px 0;
    border-radius: 5px;
    font-size: 12px;
    display: inline-block;
    float: left;
    cursor: pointer;
    user-select: none;
}

.dashboard-highlight {
    background-color: #F9C3C3;
}

.dashboard-box-hover:hover,
.dashboard-box-hover-half:hover {
    background-color: DodgerBlue !important;
    color: white;
}

.dashboard-box-caption,
.dashboard-box-caption-half {
    min-height: 82px;
    vertical-align: middle;
    background-color: lightgrey;
}

.dashboard-box-caption-half {
    min-height: 41px;
}


.dashboard-box .big,
.dashboard-box-hover .big {
    font-size: 20px;
    margin: 3px 0 8px 0;
}

.listheaderbutton {
    cursor: pointer;
    vertical-align: top;
}

i.dropdown-click {
    font-size: 20px;
}

.dropdown-content a:hover {
    text-decoration: none;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    border: 0.91px solid black;
    box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.2), 0 4px 20px 0 rgba(0, 0, 0, 0.19);
    user-select: none;
    z-index: 10;
    min-width:150px;
    max-width:300px;
}

.dropdown-content div {
    width: 100%;
}

.dropdown-content div:not(.submenu) {
    background: white none no-repeat fixed center;
    color: black;
    border: 0;
    margin: 0;
    padding: 8px 8px;
    text-align: left;
}

.dropdown-content div:hover {
    background: #CCCCFF none no-repeat fixed center;
}

.drawers {
    float: right;
    text-align: right;
    padding-left: 10px;
}

.drawer-label {
    border-radius: 4px;
    border: solid 0.91px rgba(0, 0, 0, 0.1);
    padding: 1px 4px 2px 4px;
    margin-top: 1px;
    display: inline-block;
    text-align: left;
}

.drawers-new {
    Xfloat: right;
    Xtext-align: right;
    Xpadding-left: 10px;
    Xpadding-top: 1px;
}

.drawer-label-new {
    border-radius: 4px;
    border: solid 0.91px rgba(0, 0, 0, 0.1);
    padding: 1px 4px 2px 4px;
    margin-top: 2px;
    margin-right: 3px;
    display: inline-block;
    text-align: left;
}

.hoverParent .hoverChild {
    visibility: hidden;
}

.hoverParent:hover .hoverChild {
    visibility: visible;
}

.hoverChild {
    float: right;
    margin-right: 5px;
}

.hoverChild i {
    padding: 3px 6px 3px 6px;
    background-color: rgba(0, 0, 0, .1);
    border: 0.5px solid rgba(0, 0, 0, .3);
    border-radius: 3px;
    margin: 0;
    cursor: pointer;
}

.hoverChild:hover i {
    background-color: rgba(0, 0, 0, .3);
    border: 0.5px solid rgba(0, 0, 0, .6);
}

.ringing {
    background-color: #DA1F28 !important;
    color: white;
}

/* Bimbající zvonek - https://codepen.io/Mrshcom/pen/bqmFg/ */
.ringing i {
    animation: ring 4s .7s ease-in-out infinite;
    transform-origin: 50% 50%;
}

@keyframes ring {
    0% {
        transform: rotate(0);
    }
    1% {
        transform: rotate(30deg);
    }
    3% {
        transform: rotate(-28deg);
    }
    5% {
        transform: rotate(34deg);
    }
    7% {
        transform: rotate(-32deg);
    }
    9% {
        transform: rotate(30deg);
    }
    11% {
        transform: rotate(-28deg);
    }
    13% {
        transform: rotate(26deg);
    }
    15% {
        transform: rotate(-24deg);
    }
    17% {
        transform: rotate(22deg);
    }
    19% {
        transform: rotate(-20deg);
    }
    21% {
        transform: rotate(18deg);
    }
    23% {
        transform: rotate(-16deg);
    }
    25% {
        transform: rotate(14deg);
    }
    27% {
        transform: rotate(-12deg);
    }
    29% {
        transform: rotate(10deg);
    }
    31% {
        transform: rotate(-8deg);
    }
    33% {
        transform: rotate(6deg);
    }
    35% {
        transform: rotate(-4deg);
    }
    37% {
        transform: rotate(2deg);
    }
    39% {
        transform: rotate(-1deg);
    }
    41% {
        transform: rotate(1deg);
    }
    43% {
        transform: rotate(0);
    }
    100% {
        transform: rotate(0);
    }
}

/* ********************************************************************************* */
/* SELECT2                                                                           */
/* ********************************************************************************* */

.select2 {
    /* Probliknutí pravé části SLECTů po obnovení stránky */
    overflow: hidden;
    background-image: none;
}

.select2-container .select2-selection--multiple,
.select2-container--default .select2-selection--single {
    border-top: 0.91px solid #abadb3;
    border-right: 0.91px solid #dbdfe6;
    border-bottom: 0.91px solid #e3e9ef;
    border-left: 0.91px solid #e2e3ea;
    border-radius: 2px;
    margin: 0;
    min-height: 19px;
}

.select2[badvalue] + span > span > span
{
    border: 0.91px solid #D63C3C!important;
    background: #FEECEC;
}

.select2-container--default.select2-container--focus .select2-selection--multiple {
    background-color: #FFFF9D !important;
    border-top: 0.91px solid #abadb3;
    border-right: 0.91px solid #dbdfe6;
    border-bottom: 0.91px solid #e3e9ef;
    border-left: 0.91px solid #e2e3ea;
    border-radius: 2px;
}

.select2-container .select2-selection--single {
    height: 0;
}

.select2-container.select2-container--focus .select2-selection--single {
    background-color: #FFFF9D !important;
}

.select2-container.select2-container--focus .select2-selection--single:focus {
    outline: 0;
}

.select2-selection__arrow {
    display: none;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    border-top: 0.91px solid #abadb3;
    border-right: 0.91px solid #dbdfe6;
    border-bottom: 0.91px solid #e3e9ef;
    border-left: 0.91px solid #e2e3ea;
}

.select2-container--default .select2-search--inline .select2-search__field {
    background: transparent !important;
}

.select2-container .select2-selection--single .select2-selection__rendered {
    padding-left: 4px;
    padding-right: 0;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: black;
    line-height: 1.6;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    padding: 0 8px 2px 4px;
    background-color: #EEE;
    border: 0;
    margin-top: 1px;
    margin-bottom: 1px;
    margin-right: 2px;

}

.select2-container--default .select2-selection--multiple .select2-selection__rendered {
    padding: 0 2px;
}

.select2-container .select2-selection--multiple .select2-selection__rendered {
    display: block;
}

.select2-container .select2-search--inline .select2-search__field {
    margin-top: 0;
}

.select2-dropdown {
    border: 0.91px solid #DDD;
}

input.select2-search__field {
    height: 16px;
}

/* remove X from locked tag */
.locked-tag .select2-selection__choice__remove {
    display: none !important;
}

/* I suggest to hide  all selected tags from drop down list */
.select2-results__option[aria-selected="true"] {
    display: none;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: inherit;
}

/* Jinak výběr šuplíčků v detailu dokumentu zasahuje přes tlačítko ULOŽIT */
#select2-OBJECT_DRAWERS-results {
    max-height: 180px;
    overflow-y: auto;
}

.red {
    color: #BB2E31;
}

.green {
    color: #22B14C;
}

.blue {
    color: #9A9ACB;
}

.yellow {
    color: #FFC90E;
}

.noselect {
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
    user-select: none; /* Non-prefixed version, currently supported by Chrome, Edge, Opera and Firefox */
}

td.status-cell {
    color: #000;
    vertical-align: top;
    padding: 2px 5px;
}

td.status-cell.finished {
    background-color: #99ccff;
}

.ui-datepicker {
    /* Aby se kalendář neschovával pod fixed lištu v seznamech */
    z-index:5!important;
}

#tooltip {
    position: fixed;
    z-index: 50;
    background-color: #C0D4FE;
    padding: 5px 8px 6px 8px;
    opacity: 0;
    pointer-events: none;
    animation-name: showtooltip;
    animation-duration: 0.5s;
    animation-delay: 0.7s;
    animation-fill-mode: forwards;
    border-radius: 5px;
    box-sizing: border-box;
    overflow-wrap: anywhere;
    box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    /* Aby ve Firefoxu nebylo vidět v levém horním rohu okna, pokud se po obnovení stránky nepohne myší */
    left: 0px;
    top: -500px;
}

#tooltip.left {
    transform: translateX(-100%);
}

#tooltip.top {
    transform: translateY(calc(-100% - 40px));
}

#tooltip.left.top {
    transform: translate(-100%, calc(-100% - 40px));
}

@keyframes showtooltip {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
