
/* Import css files
-----------------------------------------------------------------------------------------------------------*/

@import url('theme.css');
@import url('jquery.mobile.structure-1.4.0.min.css');

@import url("css/key.css");
@import url("css/home.css");
@import url("css/rules.css");
@import url("css/images.css");
@import url("css/machine.css");
@import url("css/key_add.css");
@import url("css/key_list.css");
@import url("css/providers.css");
@import url("css/monitoring.css");
@import url("css/file_upload.css");
@import url("css/backend_add.css");
@import url("css/machine_add.css");
@import url("css/machine_keys.css");
@import url("css/backend_edit.css");
@import url("css/machine_tags.css");
@import url("css/machine_list.css");
@import url("css/machine_power.css");
@import url("css/machine_shell.css");
@import url("css/backend_button.css");


/* Splash
-----------------------------------------------------------------------------------------------------------*/
#splash {
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    background: linear-gradient( #3c3c3c /*{a-bar-background-start}*/, #111 /*{a-bar-background-end}*/) /*{b-bar-background-color}*/;
    z-index: 100000;
}
.mist-logo {
    width: 280px;
    height: 280px;
    background: url("logo_splash.png") center no-repeat;
    position: absolute;
    left: 50%;
    top: 50%;
    margin-left: -140px;
    margin-top: -140px;
}


/* Page formating
-----------------------------------------------------------------------------------------------------------*/
body {
    background-color: #F9F9F9 !important;
}
.ui-mobile, .ui-mobile body {
    height: 0 !important;
}
.ui-page-active {
    min-height: 100% !important;
}
.small-padding {
    height: 10px;
    width: 100%;
}
.mid-padding {
    height: 50px;
    width: 100%;
}
.large-padding {
    height: 100px;
    width: 100%;
    margin: auto;
}


/* Ajax loader
-----------------------------------------------------------------------------------------------------------*/
.ajax-loader {
    background-image: url("images/spinner.gif");
    background-position: center !important;
    background-repeat: no-repeat;
    margin: 0 auto;
    height: 16px;
    width: 16px;
}


/* Text fields
-----------------------------------------------------------------------------------------------------------*/
textarea {
    height: 75px !important;
}


/* Buttons
-----------------------------------------------------------------------------------------------------------*/
.ui-btn-icon-left {
    padding: .6em 1.1em .6em 2.5em !important;
}

.ui-btn-icon-right {
    padding: .6em 2.5em .6em 1.1em !important;
}
.ok-cancel {
    width: 100%;
}
.ok-cancel > .ui-controlgroup-controls {
    width: 100%;
}


/* Popup
-----------------------------------------------------------------------------------------------------------*/
.tiny-popup {
    width: 150px !important;
}
.small-popup {
    width: 240px !important;
}
.small-popup .ok-cancel a,
.small-popup .ok-cancel button {
    width: 70px !important;
}
.mid-popup {
    width: 255px !important;
    max-width: 99%;
}
.mid-popup .ok-cancel a,
.mid-popup .ok-cancel button {
    width: 77px !important;
}
.large-popup {
    width: 290px !important;
}
.large-popup .ok-cancel a,
.large-popup .ok-cancel button {
    width: 95px !important;
}
.huge-popup {
    width: 100% !important;
}
.ui-popup .ui-title {
    margin: 0 auto !important;
}


/* Side panel
-----------------------------------------------------------------------------------------------------------*/
.side-panel {
    /**
     *  .ui-panel's default width value is 17em
     *  but it's on many many selectors in jqm.css.
     *  Bacause the value "17em" existed only in
     *  panel related selectors, a mass find/replace
     *  process took place.
     *
     *  The value "325px" is also unique to jqm.css
     *  so this change can easily be undone or modified
     */
    width: 325px; /* Useless, but leave it there for reference reasons */
    min-height: 300px;
}
.side-panel .ui-panel-inner {
    padding: 7px;
}
.side-panel .ok-cancel a,
.side-panel .ok-cancel button {
    width: 102px !important;
}

.ui-panel-dismiss-open.ui-panel-dismiss-position-right {
    right: 325px;
}

.ui-panel-inner {
    padding: 10px !important;
}

@media only screen and  (max-width: 718px) {
    .side-panel .ok-cancel a, .side-panel .ok-cancel button {
        width: 98px !important;
    }
}

/* Filtered list headers
-----------------------------------------------------------------------------------------------------------*/
#machine-list-page .ui-filterable, #key-list-page .ui-filterable  {
    margin: 10px 118px -44px 118px !important;
    position: relative;
    top: -49px;
}

#machine-list-page .ui-filterable input, #key-list-page .ui-filterable input {
    min-height:2.50em;
}


/* Checkbox list
-----------------------------------------------------------------------------------------------------------*/
ul.checkbox-list li {
    background: #eeeeee /*{c-bup-background-color}*/ linear-gradient( #fff /*{c-bup-background-start}*/, #f1f1f1 /*{c-bup-background-end}*/) !important;
    border: 1px #ccc solid;
    margin-top: -1px;
}
ul.checkbox-list li:hover {
    background: #dfdfdf linear-gradient( #f6f6f6 /*{c-bhover-background-start}*/, #e0e0e0 /*{c-bhover-background-end}*/) !important;
}
ul.checkbox-list li a {
    padding-left: 0px !important;
}
ul.checkbox-list li a.has-monitoring:after {
    opacity: 1;
}
.ui-icon-carat-r:after {
    background-color: #666;
    opacity: .6;
}
ul.checkbox-list li a:focus {
    box-shadow: none !important;
}
ul.checkbox-list li a, ul.checkbox-list li a:hover, ul.checkbox-list label, ul.checkbox-list label:hover {
    background-color: transparent !important;
    border-width: 0px !important;
}
ul.checkbox-list .ui-grid-b {
    padding-top: 12px;
}
ul.checkbox-list li a,
ul.checkbox-list li a:active,
ul.checkbox-list li a:focus,
ul.checkbox-list li a:hover,
ul.checkbox-list li label {
    background: transparent !important;
}

/* Checkbox link
-----------------------------------------------------------------------------------------------------------*/
.checkbox-link a {
    height: 40px;
}
.checkbox-link h3 {
    width: 65%;
    display: inline-block !important;
}
.checkbox-link .state h3 {
    width: auto;
    margin-left: 10px;
}
.checkbox-link .ui-checkbox {
    margin: 0 !important;
    float:left;
}
.checkbox-link .ui-checkbox input {
    display: none;
}
.checkbox-link .ui-checkbox label {
    border-radius: 0.1875em 0 0 0.1875em;
    background-color: transparent;
    margin: 0 !important;
    border: none;
    height: 41px;
}
.checkbox-link .tag {
    border: 1px solid #bfbfbf;
    margin: 1px;
    color: #555 !important;
    padding: 1px 7px;
    float: right;
    font-size: 12px;
    font-weight: normal;
}

#image-list .checkbox-link .tag {
    margin: 11px 1px;
}

/* Footer
-----------------------------------------------------------------------------------------------------------*/
.ui-footer {
    position: fixed;
    display: none;
    z-index: 2000;
    width: 100%;
    bottom: 0;
}
.ui-footer table {
    margin-left: -1px;
    width: 100%;
}
.ui-footer a {
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100%;
    margin: 0;
}

@media only screen and  (max-width: 340px) {
    .ui-footer .ui-btn {
        font-size: 10px;
        text-indent: 10px;
    }
}
.ui-footer.dual-action-footer td {
    width: 50%;
}
.ui-footer.tri-action-footer td {
    width: 33.3%;
}


/* Small List Item
-----------------------------------------------------------------------------------------------------------*/
.small-list-item {
    padding: 0 6px;
    background: #ddd;
    margin-bottom: 5px;
    border-radius: 19px;
    display: inline-block;
    border: 1px solid #c4c4c4;
}
.small-list-item button {
    display: inline;
}
.small-list-item p {
    top: 5px;
    position: relative;
    display: inline;
}

/*
 * Custom select
 */

.mist-select .ui-collapsible-content {
    padding-right: 30px;
    background: transparent !important;
}
.mist-select h2 {
    z-index: 1000;
    border-bottom-right-radius: inherit !important;
}
.mist-select ul {
    margin-top: 0px;
}

/* Confirmation popup
-----------------------------------------------------------------------------------------------------------*/
#confirmation-popup {
    width: 355px !important;
    max-width: 99%;
}
#confirmation-popup  .ok-cancel a,
#confirmation-popup  .ok-cancel button {
    width: 127px !important;
}

#confirmation-popup p {
    text-align: center;
}

@media only screen and  (max-width: 386px) {
    #confirmation-popup .ok-cancel button {
        width: 93px !important;
    }
}
/* Other
-----------------------------------------------------------------------------------------------------------*/
#hidden-shell-iframe {
    display: none;
}

.single-machine-loader {
    z-index: 1000;
}

@media only screen and (max-width: 420px) {

    .responsive-button {
        padding: 0px !important;
        width: 40px;
        height: 40px;
        text-indent: -5000px;
    }

    .ui-header .responsive-button {
        width: 32px;
        height: 30px;
    }

    #machine-list-page .ui-filterable, #key-list-page .ui-filterable  {
        margin-left: 50px !important;
        margin-right: 50px !important;
    }
}

/* User menu
-----------------------------------------------------------------------------------------------------------*/
#me-btn {
    background: transparent;
    height: 36px;
    padding: 0px;
    border-width: 0px;
    margin-right: 6px;
}

#me-btn img {
    border-radius: 2em;
}

.monitoring-dialog-container, .associate-key-container, .probe-dialog-container div {
    padding: 15px;
    background: #e0e0e1;
    border-radius: inherit;
    text-align: center;
}
.monitoring-dialog-container div {
    margin-bottom: 5px;
}
.ui-collapsible-inset .ui-collapsible-content {
    padding-top: 0px;
    margin-top: -1px;
    overflow: auto;
    border: none;
}

.single-machine-loader {
    display: block !important;
    z-index: 1000;
}
/* Leds
 * */

.netleds div {
    border-radius: 0.2em;
    float: right;
    height: 16px;
    margin: 0px 1px;
    width: 3px;
    background-color: rgba(0,0,0,.2)
}

.netleds .on {
    background-color: rgba(0,0,0,0.6);
}

.netled4 {
    height: 4px !important;
    margin-top: 12px !important;
}

.netled3 {
    height: 8px !important;
    margin-top: 8px !important;
}

.netled2 {
    height: 12px !important;
    margin-top: 4px !important;
}

.loadleds {
    position: relative;
    left: 6px
}

.led {
    border-radius: 0.15em;
    float: right;
    height: 16px;
    margin: 0px 1px;
    width: 6px;
}

.probing {
    animation: probe 1s steps(2, start) infinite;
    -webkit-animation: probe 1s steps(2, start) infinite;
    background-color: rgba(0, 0, 0, .4);
}
@keyframes probe {
    from {
        opacity: 1;
    }
    to {
        opacity: .1;
    }
}
@-webkit-keyframes probe {
    from {
        opacity: 1;
    }
    to {
        opacity: .1;
    }
}

.hot {
    background-color: #DD1E2F !important;
}
.warm {
    background-color: #EBB035 !important;
}
.eco {
    background-color: #218559 !important;
}
.cool {
    background-color: #06A2CB !important;
}
.cold {
    background: #396b9e /*{b-bup-background-color}*/linear-gradient( #5f9cc5 /*{d-bup-background-start}*/, #396b9e /*{d-bup-background-end}*/) /*{d-bup-background-color}*/ !important;
}


