/*=========================================
	SWITCH
==========================================*/
.material-switch>input[type="checkbox"] {
    display: none;
}

.material-switch>label {
    cursor: pointer;
    height: 0px;
    position: relative;
    width: 40px;
}

.material-switch>label::before {
    background: rgb(0, 0, 0);
    box-shadow: inset 0px 0px 10px rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    content: '';
    height: 16px;
    margin-top: 10px;
    position: absolute;
    opacity: 0.3;
    transition: all 0.4s ease-in-out;
    width: 40px;

}

.material-switch>label::after {
    background: rgb(255, 255, 255);
    border-radius: 16px;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.3);
    content: '';
    height: 24px;
    left: -4px;
    margin-top: 10px;
    position: absolute;
    top: -4px;
    transition: all 0.3s ease-in-out;
    width: 24px;
}

input[type="checkbox"]:checked+label::before {
    background: inherit;
    opacity: 0.5;
}

.material-switch>input[type="checkbox"]:checked+label::after {
    background: inherit;
    left: 20px;
}

/*=========================================
	SPINNER
==========================================*/
.teplota_spinner {
    width: 145px;
    margin-top: 2px;
}

.vetrat_spinner {
    width: 145px;
    margin-top: 2px;
}

.input-group-addon {
    padding: 6px 2px;

}




/*=========================================
	VLASTNI styly
==========================================*/
/*
BODY {
    font-family: sans-serif;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
*/

BODY {
    -webkit-user-select: auto;
    user-select: auto;
}

html,
body {
    height: auto !important;
    overflow-y: auto !important;
}


.input-group select {
    width: 40px !important;
}

@media (max-width: 767px) {
    .input-group select {
        width: 50px !important;
    }
}


.no-gutter>[class*="col-"] {
    padding-right: 0;
    padding-left: 0;
}


.hlaseni {
    border: 1px solid #7c0303;
    border-radius: 4px;
    padding: 20px;
    width: 50%;
    background-color: rgba(247, 7, 7, 0.8);
    font-size: 20px;
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000;
}

.odd {
    background-color: #F5F5F5;
}

.even {
    background-color: #e5e3e3;
}

.vypnuto {
    padding-top: 10px;
    margin-left: -40px;
}

.vypnuto2 {
    padding-top: 10px;
    margin-left: -69px;
}

.zapnuto {
    padding-top: 10px;
    margin-left: 10px;
}

.zapnuto2 {
    padding-top: 10px;
    margin-left: 10px;
}

.section {
    padding: 8px 0;
}

.section_1 {
    background-color: #F5F5F5;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: sans-serif;
}


h3 {
    margin-top: 10px;
    font-size: 22px;
}

.max600 {
    max-width: 600px;
    margin: 0px auto;
}

/*=========================================
	TYDENNI PROGRAM
==========================================*/
.block {
    margin: 0px auto;
    max-width: 1000px;
    padding: 20px;
    margin-top: 50px;
    box-shadow: 0px 1px 10px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.slider {
    position: relative;
    /*
    max-width: 600px;
    min-width: 300px;
    */
    background-color: #fff;
    height: 22px;
    margin-top: 10px;
    margin: 10px auto;
}

.slider-segment {
    position: absolute;
    background-color: #ff9600;
    height: 100%;
    border-left: 1px solid #fff;
    border-radius: 5px;
}

.slider-label {
    position: absolute;
    color: #fff;
    margin-top: 3px;
    margin-left: 8px;
    font-weight: bold;
    text-shadow: 1px 1px rgba(200, 200, 200, 0.5);
    font-size: 12px;
    pointer-events: none;
}

.slider-button {
    position: absolute;
    top: 0px;
    width: 20px;
    height: 100%;
    margin-left: -10px;
    margin-top: 2px;
    cursor: pointer;
}

#slider-segment-temperature {
    width: 45px;
}

.tydenni_program>input[type=text] {
    width: 48px;
    /*border:0px;
    border: 1px solid #000; */
    font-size: 16px;
    color: #333;
    text-align: right;
}

#slider-segment-blank {
    height: 26px;
}

#timemarker {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.15);
    width: 2px;
    height: 22px;

    margin-top: 0px;
    margin-left: -1px;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
    pointer-events: none;
    border-left: 1px solid #fff;
}

/*=========================================
    NASTAVENI
==========================================*/
.nastaveni-grafu tr {
    background-color: #E5E3E3;
}

.nastaveni-grafu td,
th {
    padding: 3px;
}

/*Nastaveni SMS*/
table.table-nastaveni-sms input[name*="teplota"].form-control,
table.table-nastaveni-sms select.form-control {
    padding-left: 1px !important;
    padding-right: 1px !important;
}

/*.fc-teplota {
    width: 80px !important;
}*/


.number-spinner .form-control {
    padding: 2px 6px !important;
}

.number-spinner .input-group-addon {
    width: 25px !important;
}

.vetrat-spinner .input-group-addon {
    width: 25px !important;
}

/* Zabraňuje zalamování dlouhých názvů v hlavičce */
.header-title-nowrap {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 767px) {
    .text-xs-center {
        text-align: center !important;
    }

    .text-xs-left {
        text-align: left !important;
    }

    /* Specifický fix pro kalendář na mobilu pomocí Flexboxu */
    #den_maly_group {
        display: flex !important;
        align-items: stretch;
        width: 100%;
    }

    /* Ikona kalendáře */
    #den_maly_group .input-group-addon {
        width: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 6px 12px;
    }

    /* Samotný input - vezme zbytek místa */
    #den_maly {
        flex: 1;
        width: auto !important;
        min-width: 0;
        /* Důležité pro flexbox */
        border-radius: 0;
        margin: 0;
    }

    /* Vynucení menší výšky (jako btn-xs) */
    #den_maly_group .form-control,
    #den_maly_group .input-group-addon,
    #den_maly_group .btn {
        height: 26px;
        padding: 2px 8px;
        font-size: 12px;
        line-height: 1.5;
        box-sizing: border-box;
        /* Pro jistotu */
    }

    #den_maly {
        -webkit-appearance: none;
        /* Reset pro iOS */
    }

    /* Tlačítko */
    #den_maly_group .input-group-btn {
        width: auto;
        display: flex;
    }

    #den_maly_group .input-group-btn .btn {
        border-radius: 0 4px 4px 0 !important;
    }

    /* Zmenšení písma stavu na mobilu aby se vešlo na řádek */
    .text-xs-center h5 {
        font-size: 14px;
        white-space: nowrap;
    }

    /* Pelety formulář - menší inputy na mobilu */
    #pelety_add_form .form-control {
        height: 26px;
        padding: 2px 8px;
        font-size: 13px;
        line-height: 1.5;
        box-sizing: border-box;
    }

    #pelety_add_form input[type="date"] {
        -webkit-appearance: none;
        padding: 2px 8px;
        /* Stejné jako den_maly */
        line-height: 1.5;
    }

    #pelety_add_form .btn {
        height: 26px;
        padding: 2px 12px;
        font-size: 12px;
        line-height: 1.5;
    }
}