/* HTML */

body {
    padding: 0;
    margin: 0;
    font-family: tahoma, arial, helvetica;
    font-size: 12px;
    background-color: #ffffff;
    color: #333360;
    margin: 0;
}

pre.debug {
    display: none;
}

/* MENU */

#menu {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40px;
    line-height: 40px;
    padding: 0 10px;
    background-color: #3b5998;
    color: #ffffff;
}

#menu .left {
    float: left;
}

#menu .right {
    float: right;
}

/* LOGIN */

#login {
    text-align: center;
    width: 100%;
    padding-top: 150px;
}

#login .login-box {
    text-align: left;
    width: 400px;
    margin: 0 auto;
    padding: 20px;
    border: 1px solid #cfcfcf;
    background-color: #f3f3f3;
}

#login h1 {
    font-size: 17px;
    margin: 0;
    border-bottom: 1px solid #cfcfcf;
}

#login .error {
    font-weight: bold;
    background-color: #ffebe8;
    color: #333333;
    border: 1px solid #db3e26;
    padding: 10px;
    margin: 10px 0;
}

#login table {
    margin: 20px auto;
}

#login td {
    text-align: left;
    padding: 5px 0 5px 20px;
}

/* MAP */

#map-canvas {
    position: absolute;
    top: 40px;
    left: 0;
    right: 300px;
    bottom: 20px;
    border-right: 3px solid #cfcfcf;
}

/* DATA-BOX */

#data-box {
    position: absolute;
    overflow: auto;
    top: 40px;
    right: 0px;
    bottom: 30px;
    width: 300px;
    background-color: #f3f3f3;
}

div#data-box span.header {
    font-size: 12px;
    font-weight: bold;
    margin: 0;
    padding: 0px 5px;
}

div#data-box h1 {
    size: 18px;
    padding-bottom: 5px;
}

div#data-box div#filter-box {
    background-color: #3b5998;
    color: white;
    padding: 5px;
    position: fixed;
    width: 100%;
}

/* Bubble BOX */

/*+++++++++++++++ pridano */

/*div#bubble {*/
    /*line-height:1.35;*/
    /*overflow:hidden;*/
    /*white-space:nowrap;*/
/*}*/

div#bubble h2 {
    margin: 0;
    font-size: 16px;
    margin-bottom: 10px;
}

div#bubble span {
    font-weight: bold;
}

div#bubble em {
    font-style: normal;
    color: #3b5998;
}

div#bubble table.top td {
    border-bottom: 1px dotted #d0d0d0;
    padding-left: 5px;
    width: 30%;
}

div#bubble table.top td.time {
    width: 40%;
}

div#bubble table.top td.time em {
    float: right;
}

div#bubble table.top td:first-child {
    border-bottom: 1px dotted #d0d0d0;
    padding-left: 0px;
    width: 30%;
}

div#bubble table.top td.head {
    padding-top: 8px;
    border-bottom: 1px solid #d0d0d0;
    width: 305px;
}

div#bubble img.toggle {
    float: right;
}

/*+++++++++++++++ pridano */

/* DEVICES */

#devices {
    margin-top: 30px;
}

#devices .device {
    border-bottom: 2px solid #cfcfcf;
    padding: 5px;
}

#devices .device h2 {
    margin: 0;
    font-size: 14px;
    cursor: pointer;
    background-image: url('../images/expand.png');
    background-repeat: no-repeat;
    background-position: right center;
    min-height: 40px;
}

#devices .device h2.select {
    background-image: url('../images/collapse.png');
}

/*------------ upraveno pmarek */

#devices .device h2 span.id {
    font-size: 11px;
    margin-left: 0px;
    padding: 3px;
    text-align: center;
    background-color: #cfcfcf;
}

#devices .device h2 img {
    vertical-align: middle;
    margin-right: 0px;
}

#devices .device h2 div.dev-name {
    margin-bottom: 5px;
    line-height: 1.4;
}

/*#devices .device h2 div.notifications {
    margin-left: 23px;
}*/

.notifi-img {
    text-align: right;
}

/*------------ upraveno pmarek */
#devices .device .tool {
    float: left;
    margin-top: 5px;
}

i.owner {
    font-size: 10px;
    float: right;
    margin-right: 5px;
}

/*---------- DEVICE MENU --------  */

.menu #navbar {
    margin: 0;
    padding: 0;
    height: 1em;
}

.menu #navbar li {
    cursor: pointer;
    list-style: none;
    float: left;
    border-top: 1px solid #333360;
    border-left: 1px solid #333360;
}

.menu #navbar li.last {
    border-right: 1px solid #333360;
}

.menu #navbar li a {
    display: block;
    padding: 2px 4px;
    background-color: #cfcfcf;
    text-decoration: none;
}

.menu #navbar li ul {
    display: none;
    width: 10em; /* Width to help Opera out */
    background-color: #cfcfcf;
}

.menu #navbar li:hover ul {
    display: block;
    position: absolute;
    right: 85px;
    margin: 0;
    padding: 0;
}

.menu #navbar li:hover li {
    float: none;
}

.menu #navbar li li:first-child {
    border-top: 1px solid #333360;
}

.menu #navbar li li {
    width: 200px;
    border-top: 0px solid #333360;
    border-left: 1px solid #333360;
    border-right: 1px solid #333360;
    border-bottom: 1px solid #333360;
}

.menu #navbar li:hover li a {
    background-color: #f3f3f3;
    color: #333360;
}

.menu #navbar li li a:hover {
    background-color: #333360;
    color: #cfcfcf;
}

#devices .device .menu {
    float: right;
    margin-top: 5px;
}

#devices .device .menu a.select {
    background-color: #333360;
    color: #cfcfcf;
}

/*/------- /DEVICE MENU ------- */

#devices .device .panel {
    clear: both;
    border: 1px solid #333360;
    background-color: #cfcfcf;
    padding: 3px;
}

#devices .device .hidden {
    display: none;
}

#devices .device table {
    font-size: 10px;
    width: 100%;
}

#devices .device table td {
    padding: 2px;
}

#devices .device .button {
    margin-top: 5px;
    text-align: right;
}

#devices .device .button input {
    border: 1px solid #333360;
    margin-left: 5px;
    background-color: #cfcfcf;
    color: #333360;
    cursor: pointer;
}

/*textarea.note input.timestamp {*/
    /*width: 100%*/
/*}*/

/* FORM */

form #cat-select {
    float: left;
}

form #form-category {
    float: left;
    width: 60px;
    margin-left: 10px;
}

#form h2 {
    text-align: left;
    margin: 0;
    padding: 0 5px 10px 5px;
    font-size: 14px;
    background-color: #cfcfcf;
}

#form h1 {
    margin: 0;
    padding: 10px 5px;
    font-size: 16px;
    background-color: #cfcfcf;
}

#form .form {
    padding: 2px;
}

#form .big {
    width: 250px;
    height: 40px;
    font-size: 14px;
}

#form input.small {
    font-size: 12px;
}

#form table.small th {
    font-size: 13px;
}

#form table.small td {
    font-size: 11px;
    padding: 4px 1px;
}

#form table.small select {
    font-size: 11px;
}

#form table th {
    font-size: 14px;
}

#form table td {
    font-size: 14px;
    padding: 5px 3px;
}

#form table td.label {
    font-size: 12px;
    width: 50px;
}

#form table td.button {
    width: 16px;
    text-align: center;
}

#form table td.button a {
    cursor: pointer;
    vertical-align: middle;
}

#form input, #form textarea {
    font-size: 14px;
}

#form input.back {
    background-color: #f0f0f0;
    border-color: #d9dfea #0e1f5b #0e1f5b #d9dfea;
    border-style: solid;
    border-width: 1px;
    color: #000000;
    font-size: 12px;
    padding: 2px 15px 3px;
    text-align: center;
}

#form input.submit {
    background-color: #3b5998;
    border-color: #d9dfea #0e1f5b #0e1f5b #d9dfea;
    border-style: solid;
    border-width: 1px;
    color: #ffffff;
    font-size: 12px;
    padding: 2px 15px 3px;
    text-align: center;
    font-weight: bold;
    float: right;
}

#form div.error {
    color: #ff0000;
    padding: 10px;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
}

/* NOTES */

#form table.notes tr, #form table.notes {
    width: 100%;
}

#form table.notes td.note {
    width: 60%;
    font-size: 10px;
}

#form table.notes td.timestamp {
    width: 24%;
    vertical-align: top;
    font-size: 10px;
    font-weight: bolder;
    padding-right: 2px;
}

#form table.notes td.button {
    width: 8%;
    vertical-align: top;
}

td.note {
    font-size: 10px;
}

td.timestamp {
    vertical-align: top;
    font-size: 10px;
    font-weight: bolder;
}

td.last-note-label {
    font-size: 12px;
    font-weight: bolder;
    /*border-bottom: 1px solid #0e1f5b;*/
}

div.note-buttons {
    text-align: right;
}

/* FOOTER */

#footer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 30px;
    line-height: 30px;
    padding: 0 10px;
    background-color: #666666;
    color: #d0d0d0;
}

#footer a {
    color: #d0d0d0;
}

#footer .left {
    float: left;
}

#footer .left img {
    vertical-align: middle;
    margin-right: 10px;
    display: none;
}

#footer .left span {
    font-size: 13px;
}

#footer .right {
    float: right;
    font-size: 11px;
}

/* COMMON */

.center {
    text-align: center;
}

.clear-both {
    clear: both;
}

form {
    margin: 0;
}

input, textarea {
    border: 1px solid #bdc7d8;
    font-size: 12px;
}

input.button {
    background-color: #3b5998;
    border-color: #d9dfea #0e1f5b #0e1f5b #d9dfea;
    border-style: solid;
    border-width: 1px;
    color: #ffffff;
    font-size: 12px;
    padding: 2px 15px 3px;
    text-align: center;
}

.right {
    text-align: right;
}

.no-border {
    border: none;
}

.bold {
    font-weight: bold;
}

.top {
    vertical-align: top;
}

.no-display {
    display: none;
    background-color: #cfcfcf;
}

table.center {
    margin: 0 auto;
}

.row-highlight {
    background-color: #FF5500 !important;
}

input#volt_warn {
    background: rgba(255, 165, 0, 0.3);
}

input#volt_ok {
    background: rgba(0, 255, 0, 0.3);
}

.customPopup .leaflet-popup-content {
    width: 420px !important;
}