﻿
/* BOOTSTRAP override*/
:root {
    --error-red: #ed4e2a;
}

.no-gap{
    padding-left: 0 !important;
    padding-right: 0 !important;
}
.col-with-bg{
    position: relative;
}
.col-with-bg:before{
    content: " ";
    position: absolute;
    top: 0;
    left: 3px;
    right: 3px;
    bottom: 0;
    background: #eeeeee;
}

/* Generické třídy pro změnu zarovnání textu v bloku. */
.left { text-align: left; }
.center { text-align: center; }
.right { text-align: right; }
.justify { text-align: justify; }
.centerImage { margin: inherit auto; }

/* Skrytí prvních sloupců tabulkových výpisů. Sloupce jsou používané pro generování akčních tlačítek, proto musí být v kódu. */
table.listParkoviste tr th:nth-child(1),
table.listParkoviste tr th:nth-child(2),
table.listParkoviste tr th:nth-child(3),

table.listParkoviste tr td:nth-child(1),
table.listParkoviste tr td:nth-child(2),
table.listParkoviste tr td:nth-child(3),

table.listZasah  tr th:nth-child(1),
table.listZasah  tr th:nth-child(2),
/*table.listZasah  tr th:nth-child(3),*/

table.listZasah  tr td:nth-child(1),
table.listZasah  tr td:nth-child(2),
/*table.listZasah  tr td:nth-child(3),*/

table.listRole tr th:nth-child(1),
table.listRole tr td:nth-child(1), 

table.listZadavatel tr th:nth-child(1),
table.listZadavatel tr td:nth-child(1),

table.listOdtahoveVozidlo tr th:nth-child(1),
table.listOdtahoveVozidlo tr td:nth-child(1),

table.listOdtahoveVozidlo tr th:nth-child(2),
table.listOdtahoveVozidlo tr td:nth-child(2),

table.listKnihovna tr th:nth-child(1),
table.listKnihovna tr td:nth-child(1),

table.listCenik tr th:nth-child(1),
table.listCenik tr td:nth-child(1),

table.listUzivatele tr th:nth-child(6),
table.listUzivatele tr td:nth-child(6) {
    display: none;
}

/* Rychlé akce řešené AJAXem na výpisu zásahů */
.quickActions .well,
.quickActions .progress {
    margin: .2em !important;
}
.volbaStatusuZasahu #status-aktiv.aktivniStatus   {
  background-color: #2dc3e8 !important;
  border-color: #2dc3e8;
  color: #fff;
}
.volbaStatusuZasahu #status-odtaz.aktivniStatus {
    background-color: #6f85bf !important;
    border-color: #6f85bf;
    color: #fff;
}
.volbaStatusuZasahu #status-faktur.aktivniStatus  {
  background-color: #9cd584 !important;
  border-color: #9cd584;
  color: #fff;
}
.volbaStatusuZasahu #status-ukon.aktivniStatus  {
  background-color: #d73d32 !important;
  border-color: #d73d32;
  color: #fff;
}


/* Fix na floatování fotogalerie na zásahu */
.photoGalleryOnEdit .divPictures {
    float: left;
    padding: 1em 1em 2em;
    width: 170px;
    height: 170px;
    overflow: hidden;
    box-sizing: content-box;
}

.photoGalleryOnEdit .divPictures:hover {
    height: 300px;
    overflow: visible;
}

/* Odesílací tlačítka pod formulářem */
.formButtons .btn {
    margin: 0 0 0 .6em;
}

.dropdown-login-area > li.edit {
    line-height: 2.5em;
    min-height: 3em !important;
}

.photoGalleryOnEdit #tmpPic {
    display: none;
}

/* Login Form */
.login-container .loginbox {
    height: auto !important;
    padding-top: 2em;
    padding-bottom: 2em;
}
.login-container .footer {
    padding: 1em 0 0;
}
.loginbox-submit button.btn {
    background-color: #e2574c !important;
    border-color: #c84d43 !important;
    color: white !important;
}

/* Reset kurzoru nad ikonkami notifikaci na hlavnim prehledu */
.dashboard-box .notification .notification-icon i:hover { cursor: default !important; }

.knihovnaDokumentLink{
    padding-left:50px;
}

/* Nastavení datepickeru ať se zobrazí přes horní lištu a přes checkboxy*/ 
.datepicker {
    z-index:201 !important;
}

/* Informace o verzi. Používá se na login stránce a v zápatí _Default template. */
span.versionInfo,
span.createdBy {
    display: block;
    padding: 0;
    margin: 0;
    text-align: center;
    font-size: 80%;
    color: #999;
    font-family: Consolas, monospace;
}
span.createdBy{
    margin-top: 0em;
}
span.createdBy img {
    margin: 0em auto 0;
    display: block;
}

td.aboutHead {
    font-weight:bold;
    width:150px;
}

h2 {
     margin-top: 0;
}

.dt-body-center {
    text-align: center;
}

.page-breadcrumbs-modified {
    background-color: white !important;
}

.page-header-modified {
    padding-left:0px !important;
}

thead tr[role=row] {
    background: linear-gradient(#f0f0f0,#f0f0f0,#e0e0e0) !important;
}

.table-about tr {
    background: linear-gradient(#f0f0f0,#f4f4f4,#f0f0f0) !important;
}

.table-about tr td {
    padding:6px !important;
}

.page-body {
    padding-top:10px !important;
}

.tableWrapperScroll {
    overflow-x: auto;
}

.input-group-addon:not(:first-child){
    border-left: none;
}
.input-group-addon:not(:last-child){
    border-right: none;
}
.control-label{
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.special-addon .checkbox{
    margin: -2px 0;
    margin-right: -5px;
}
.special-label label:first-child:first-letter{
    text-transform: uppercase;
}
/* loader lite*/
.dataTables_processing{
    z-index: 9999;
    background: rgba(0,0,0,0.3);
    pointer-events: none;
}
.dataTables_processing img {
    margin: 5% auto auto;
}
.dataTables_processing,
.dataTables_processing img {
    position: absolute;
    top:0;
    left:0;
    right:0;
    bottom:0;
}
#zasahListTableControls div.dataTables_filter label{
    float: none;
}
.btn-zasah-zrus-filter {
    position: relative;
    bottom: 4px;
}

.podpisy{
    margin-top: 10px;
}
.podpisy div.checkbox{
    display: inline-block;
    margin: 0;
}

.customMargin {
    margin-right: 10px;
}

@media only screen and (min-width: 1200px) {
    .td-pocet {
        float: right;
    }
}
@media only screen and (max-width: 600px) {
    div.zasah-btn-list {
        position: static;
        margin-bottom: 3px;
    }
}
@media only screen and (max-width: 950px) {
}
.zasah-btn-list {
    position: absolute;
    right: 0;
    top: 6px;
    padding: 0 12px;
}
.zasah-btn-list.widget-body {
    position: fixed;
    right: 20px;
    padding: 12px;
    z-index: 100000;
}
.zasah-btn-list-item {
    margin: 0px 5px;
    color: grey;
}
.zasah-btn-list-item-red {
    margin: 0px 5px;
    color: var(--error-red);
}
.zasah-required-item[data-val-required] {
    border: 1px solid var(--error-red);
    animation: blinker 0.5s linear 3;
}

/* pry to neni required */
label[for="Zasah_CenaRidici"] span.required {
    display: none;
}
.addAndRemoveBtns {
    display: inline-flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    width: 53px;
    position: relative;
    bottom: 2px;
    margin: 5px 0px;
}
.toggle-icon{
    margin-left:5px;
}
@keyframes blinker {
    100% {
        opacity: 0;
    }
}

.action-btn{
    margin: 2px;
}
.stav-on {
    background-color: #d9f2d9 !important;
}
.stav-off {
    background-color: #ffe6e6 !important;
}
.stav-zasah {
    background-color: #fff7e6 !important;
}
.stav-servis {
    background-color: #f7e4f7 !important;
}
.action-btn-grey {
    background-color: #eeeeee;
}
.btn.purple.active {
    background-color: #efefef;
}
.btn.purple {
    border-color: #b289bf;
}
.fa.btn-icon{
    margin-right: 7px;
}
.customDelete {
    display:initial;
    padding: 6px !important;
}

.marginTop-30 {
    margin-top:30px;
}
.marginRight-16p {
    margin-right: 16%;
}

.overflow-200 {
    height: 200px;
    overflow-y: scroll;
}


table.scroll {
    display: flex;
    flex-flow: column;
    height: 100%;
    width: 100%;
}

    table.scroll thead {
        /* head takes the height it requires, 
    and it's not scaled when table is resized */
        flex: 0 0 auto;
        width: calc(100% - 16.6px);
    }

    table.scroll tbody {
        /* body takes all the remaining available space */
        flex: 1 1 auto;
        display: block;
        overflow-y: scroll;
    }

        table.scroll tbody tr {
            width: 100%;
        }

        table.scroll thead,
        table.scroll tbody tr {
            display: table;
            table-layout: fixed;
        }


        .marginBottom {
            margin-bottom:10px;
        }

    .btn.disabledWithTitle {
        pointer-events: all;
    }