@font-face {
    font-family: 'Open Sans';
    font-weight: normal;
    src: url('/img/opensans.woff') format('woff');
}

@font-face {
    font-family: 'Open Sans';
    font-weight: bold;
    src: url('/img/opensans-bold.woff') format('woff');
}

@font-face {
    font-family: FontAwesome;
    src: url('/img/fontawesome.woff') format('woff');
}

body {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    margin: 0;
    padding: 40px 15px 10px;
}

#neprava {
    border: solid 2px red;
    max-width: 1000px;
    margin: auto;
    text-align: center;
    padding: 15px;
}

.skryto {
    display: none;
}

/* menu */

#menu {
    height: 40px;
    background: #383838;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    color: white;
    overflow-x: auto;
    overflow-y: hidden;
    z-index: 2;
}

#logo {
    margin-right: 20px;
}

#logo img {
    height: 40px;
    background-color: #f8f8f8;
    padding: 0 10px;
}

#menu .p {
    font-size: 18px;
    padding: 0 15px;
    line-height: 40px;
    color: white;
    text-decoration: none;
    min-width: 65px;
    text-align: center;
    margin-left: 10px;
    position: relative;
    flex-shrink: 0;
}

#menu .p:hover, #menu .p.akt {
    background: #d84315;
}

#menu .pocet {
    position: absolute;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    right: -8px;
    bottom: 4px;
    background: #d20000;
    line-height: 30px;
    font-size: 16px;
    font-weight: bold;
}

#verze {
    flex-grow: 1;
    text-align: center;
    line-height: 40px;
}

#odhlasit {
    font: 32px FontAwesome;
    line-height: 40px;
    text-decoration: none;
    color: white;
    margin: 0 20px;
}

#odhlasit:before {
    content: '\f08b';
}

/* hlavicka */

h1 {
    font-size: 32px;
    margin: 15px 0;
}

.akce {
    cursor: pointer;
    float: right;
    margin: 15px 10px 0;
    font: 40px FontAwesome;
    text-decoration: none;
    color: #d84315;
}

.akce:hover {
    color: #bf360c;
}

/* filtr */

.filtr {
    background: #fafafa;
    padding: 10px 20px;
    margin-bottom: 20px;
    font-size: 14px;
    box-shadow: 0 0 2px #9c9c9c;
}

.filtr label {
    font-weight: bold;
    vertical-align: middle;
}

.filtr .selectize-control {
    margin: 0 10px;
}

.filtr .selectize-control .selectize-input .item {
    background-color: #d84315;
    border-color: #bf360c;
}

.filtr input[type=text] {
    width: 40px;
    margin: 0 10px;
}

.filtr input[type=checkbox] {
    margin: 0 5px 0 8px;
}

.filtr select {
    margin: 0 10px;
}

/* hlavni seznam */

.seznam {
    display: table;
    border-collapse: collapse;
    width: 100%;
}

.sp {
    display: table-row;
    border-top: solid 1px #c5c5c5;
    border-bottom: solid 1px #c5c5c5;
    font-size: 14px;
    cursor: default;
}

.sp > div {
    display: table-cell;
    padding: 8px 0 8px 15px;
    vertical-align: middle;
}

.sp:hover {
    background: #fbe9e7;
    font-weight: bold;
}

.sp.checked {
    background: #ffccbc;
}

.sp-nazev {
    font-size: 18px;
}

.sp-cerv {
    color: #da0000;
}

.sp-modr {
    color: #0007bd;
}

@media (min-width: 801px) {
    .sp > div {
        white-space: nowrap;
    }

    .sp > div:last-child {
        width: 100%;
    }

    .sp-1 {
        min-width: 200px;
    }
}

.sp-check {
    height: 20px;
    width: 20px;
    background: #e6e6e6;
    cursor: pointer;
    position: relative;
}
.sp-check:hover {
    background: #ccc;
}

.sp.checked .sp-check {
    background: #d84315;
}
.sp.checked .sp-check:hover {
    background: #bf360c;
}

.sp.checked .sp-check:after {
    position: absolute;
    content: '';
    left: 8px;
    top: 4px;
    width: 3px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.sp-priznak {
    color: #970000;
    font: 20px FontAwesome;
    margin-right: 10px;
}

/* loader */

#loader {
    display: none;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    background: #fafafa;
    padding: 10px;
    width: 50px;
    z-index: 12;
}

/* dialog */

.dialog {
    display: none;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    background: white;
    box-shadow: 0 0 100px #717171;
    max-width: 1000px;
    max-height: 750px;
    z-index: 11;
}

.dialog.maly {
    max-width: 460px;
    max-height: 300px;
}

.dialog-form {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.dialog-titul {
    background: #2d2d2d;
    color: white;
    font-weight: bold;
    text-align: center;
    padding: 6px 0;
    position: relative;
}

.dialog-zavrit {
    position: absolute;
    top: 0;
    right: 0;
    width: 35px;
    height: 100%;
}

.dialog-zavrit:hover {
    background-color: #dd0000;
}

.dialog-zavrit:before, .dialog-zavrit:after {
    content: '';
    width: 3px;
    height: 17px;
    position: absolute;
    left: 16px;
    top: 8px;
    background-color: white;
}

.dialog-zavrit:before {
    transform: rotate(-45deg);
}

.dialog-zavrit:after {
    transform: rotate(45deg);
}


.dialog-karty {
    position: absolute;
    top: 0;
    right: 35px;
}

.dialog-karta {
    display: inline-block;
    text-transform: uppercase;
    padding: 6px 12px;
    cursor: default;
}

.dialog-karta:hover {
    background-color: #484848;
}

.dialog-karta.aktivni {
    background-color: #d84315;
}

.dialog-obsah {
    overflow: auto;
    padding: 10px 20px 0;
    flex-grow: 1;
}

.dialog-puleny {
    display: flex;
}

.dialog-puleny > div {
    flex-grow: 1;
}

.polovina {
    width: 50%;
    margin: 10px 20px;
}

.dialog-puleny .zahl {
    text-align: center;
    font-weight: bold;
    color: #6e6e6e;
    margin: 5px 0
}

.dialog-pridat {
    margin: 15px;
    font-size: 14px;
}

.tlacitka {
    height: 50px;
    padding: 20px 10px;
    display: flex;
}

.tlacitka button {
    font-size: 20px;
    padding: 0 20px;
    margin: 0 10px;
    white-space: nowrap;
}

.tlacitka button.hlavni {
    width: 100%;
}

.tlacitka button.zrusit:hover {
    background: #910000;
}

.zapl-ano {
    background: #96ff96;
}

.zapl-ne {
    background: #ffa8b0;
}

/* vstupni prvky */

button {
    background: #e4e4e4;
    color: black;
    box-shadow: 1px 1px 2px #b6b6b6;
    font-family: inherit;
    font-size: 16px;
    text-transform: uppercase;
    font-weight: bold;
    padding: 6px 14px;
    border: none;
}

button:hover, button:focus {
    background: #d84315;
    color: white;
    border: none;
}

input, textarea {
    font-family: inherit;
    font-size: 14px;
    width: 200px;
    padding: 5px 10px;
    margin: 0 3px;
    border: none;
    outline: solid 1px #9e9e9e;
    vertical-align: middle;
}

input:focus, textarea:focus {
    border: none;
    outline: solid 2px #bf360c;
    outline-offset: 0;
}

input.kratky {
    width: 80px;
}

input.dlouhy {
    width: 300px;
}

input[type=checkbox], input[type=radio], input[type=file] {
    outline: none;
    width: auto;
}

textarea {
    resize: none;
    width: 300px;
    height: 120px;
}

select {
    font-family: inherit;
    font-size: 14px;
}

.selectize-control {
    width: 140px;
}

.selectize-control.dlouhy {
    width: 220px;
}


/* tabulka parametru */

.param td {
    padding: 5px 15px 5px 0;
}

.param-sam {
    margin: 15px;
}

.param-pozn {
    color: #7c7c7c;
    font-size: 14px;
}

/* seznam v dialogu */

.dialog-seznam {
    flex-grow: 1;
    border-collapse: collapse;
    width: 100%;
}

.dsp {
    display: table-row;
    background: #f6f6f6;
    border: solid 1px #d1d1d1;
}

.dsp > div, .dsp td {
    display: table-cell;
    padding: 5px 15px;
    vertical-align: middle;
}

.dsp .vpravo {
    text-align: right;
}

.dsp a {
    text-decoration: none;
    color: black;
}

.dsp a:hover {
    text-decoration: underline;
    font-weight: bold;
}

.dsp-prvni {
    width: 100%;
}

.dsp-vice:before {
    font: 18px FontAwesome;
    content: '\f05a';
    color: #8d8d8d;
    cursor: pointer;
}

.dsp-vice:hover:before {
    color: black;
}

.nezalam {
    white-space: nowrap;
}

/* akce v dialogu */

.dialog-akce {
    text-align: center;
}

.dialog-akce div, .dialog-akce a {
    font: 22px FontAwesome;
    display: inline-block;
    margin: 10px;
    cursor: pointer;
    color: black;
    text-decoration: none;
}

.dialog-akce div:hover, .dialog-akce a:hover {
    color: #193380;
}

/* spolecne ikony */

.potvrdit {
    margin-left: 6px;
    vertical-align: middle;
    color: #a5a5a5;
    cursor: pointer;
}
.potvrdit:before {
    font: 20px FontAwesome;
    content: '\f00c';
}
.potvrdit:hover {
    color: black;
}

.oznacit {
    margin-right: 8px;
    vertical-align: middle;
    cursor: pointer;
}
.oznacit:before {
    font: 20px FontAwesome;
    content: '\f14a';
}
.oznacit:hover {
    color: #193380;
}

/* chybove hlasky */

.ok, .chyba {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translate(-50%, 0);
    padding: 15px 40px;
    box-shadow: 0 0 4px #a4a4a4;
    cursor: default;
    animation: hlaska 2s 3s 1 forwards;
}

.ok {
    background: #e0ffd9;
}

.chyba {
    background: #ffdbdb;
}

@keyframes hlaska {
    from {opacity: 1}
    to {opacity: 0}
}

.nenalezeno {
    text-align: center;
    margin: 15px 0;
}

/* tisk stranky */

@media print {
    body {
        padding: 0;
    }

    h1 {
        margin: 0 0 15px;
    }

    #menu, .akce, .filtr {
        display: none;
    }
}

.tabulka {
    border-collapse: collapse;
    font-size: 15px;
}

.tabulka td, .tabulka th {
    padding: 0.5em;
    white-space: nowrap;
    border: solid 1px #989898;

}

.tabulka th {
    font-weight: bold;
    text-align: left;
}

/* mobilni verze */

@media (max-width: 600px) {
    .filtr {
        text-align: center;
    }

    .filtr label {
        display: block;
        padding: 5px 0;
    }

    .filtr .selectize-control {
        display: block;
        width: auto !important;
        text-align: left;
        margin: 5px 0;
    }

    .dialog-puleny {
        display: block;
    }

    .dialog-puleny > div {
        margin: 5px 0;
    }

    .param, .param tbody, .param tr {
        display: block;
    }

    .param td {
        display: block;
        padding: 5px 0;
    }

    .param input, .param textarea {
        width: 100% !important;
        box-sizing: border-box;
        margin: 0;
    }
}