/*
All Emoncms code is released under the GNU Affero General Public License.
See COPYRIGHT.txt and LICENSE.txt.

---------------------------------------------------------------------
Emoncms - open source energy visualisation
Part of the OpenEnergyMonitor project:
http://openenergymonitor.org

*/

.body-login {
    background-color: #00509b;
}

.caret,
.arrow-up,
.arrow-down {
    border-top-color: #999 !important;
}

.text-larger {
    font-size: larger
}

input[type=text][class=variable-name-edit] {
    margin-bottom:0px;
}

#login-form input[type="text"], #login-form input[type="password"] {
    width: 94%;
}

div#account {
    width:250px;
}

.account-item {
    margin-bottom:10px;
}

/* -------------------------------------------------------------------
   Top nav
--------------------------------------------------------------------*/
#submenu {
    width:100%;
    background-color:#ddd;
    height:27px;
}

#topspacer {
    padding-top: 40px;
}

@media (min-width: 768px) and (max-width: 979px) {
    #topspacer {
        margin-top:-20px;
        padding-top: 0px;
    }
}
/* Lastly, apply responsive CSS fixes as necessary */
@media (max-width: 767px) {
    #submenu, #footer {
        padding-left: 20px;
        padding-right: 20px;
    }
    #topspacer {
        margin-top:-20px;
        padding-top: 0px;
    }
}

.menu-text {
    display: inherit !important;
}

.menu-description {
    display: none !important;
    margin-left: 10px;
}

.menu-dashboard,.menu-left,.menu-extra,.menu-setup,.menu-right {
    display: inherit !important;
}

.scrollable-menu {
    height: auto;
    max-height: 333px;
    overflow-y: auto;
}

.navbar-inner {
    background-color: #0069b4 !important;
    background-image: none !important;
    border: none !important;
    padding: 0px !important;
}

#emoncms-navbar .nav > .active > a {
    background-color: #005999 !important;
    box-shadow: none !important;
}

#emoncms-navbar .nav > li > a:hover,
#emoncms-navbar .nav > li > a:focus,
#emoncms-navbar .nav > .open > a {
    background-color: #0062a8 !important;
    outline: none;
}

#emoncms-navbar .nav > li > a > .icon:hover,
#emoncms-navbar .nav > li > a > .icon:focus,
#emoncms-navbar .nav > .active > a > .icon,
#emoncms-navbar .nav > .open > a > .icon,
#emoncms-navbar .nav > li > a,
.no-gravitar a.grav-container .icon.user:hover,
.no-gravitar a.grav-container .icon.user:focus {
    color: #fff !important;
    text-shadow: none !important;
}

.no-gravitar a.grav-container {
    background: #ffd500 !important;
    border: 2px solid #fff2b3;
}
.no-gravitar a.grav-container .icon.user {
    color: #fff2b3;
}

/* -------------------------------------------------------------------
   Side nav
--------------------------------------------------------------------*/
.sidebar-menu {
    border-top: 1px solid #ebebeb;
}
.sidebar-menu li.collapse.in,
.include-container.collapse.in > li {
    border-bottom: 1px solid #ebebeb;
}

.sidebar-inner .divider {
	background: #e3e3e3;
}

#sidebar {
    background: #e3e3e3;
    color: #666;
}
#sidebar .nav a {
    color: #333;
}
#sidebar .nav.sidebar-menu li.active a,
#sidebar .nav.sidebar-menu li a:focus {
    background: #f5f5f5;
    color: #000;
}
/* When you mouse over the navigation items, change their color */
#sidebar .nav.sidebar-menu a:hover {
    background: #f0f0f0;
}
#sidebar .nav a:hover,
.offcanvas a:focus {
    color: #000;
}

.include-container h4 a {
    color: #666;
}

#sidebar_user_toggle .expanded,
#sidebar_user_toggle:hover {
    background: #f0f0f0;
}
#edit_bookmarks {
    color: #545454;
}
#edit_bookmarks:hover,
#edit_bookmarks:focus {
    color: #000;
}


/* -------------------------------------------------------------------
   Footer
--------------------------------------------------------------------*/
#push, #footer {
    height: 30px;
}

#footer {
    background-color: #f5f5f5;
    text-align: center;
    font-size: 13px;
    font-weight: bold;
    padding-top: 12px;
}

#footer a {
    color: #339ce7;
    text-decoration: none;
}

#footer span {
    color: #999;
}

/* -------------------------------------------------------------------
   Nodes
--------------------------------------------------------------------*/
.expand-all .icon-resize-small {
    display: none
}
.expand-all.in .icon-resize-small {
    display: inline-block
}
.expand-all.in .icon-resize-full {
    display: none
}

/* collapsable groups of items */
.node.accordion {
    line-height: 41px;
}

.node .accordion-toggle {
    background: #ddd;
    height: 41px;
}
.node .accordion-toggle:hover {
    background-color: #e3e3e3;
}

/* dropdown indicator */
.node .has-indicator .icon-indicator {
    opacity: 0.333;
    float: none;
}

.node .select input {margin-top: -1px}
.node .collapse {
    width: 100%;
    transition-duration: 350ms;
    transition-property: all;
    transition-timing-function: ease;
}
.node .collapse > * {
    width: 100%;
    position: relative;
    border-bottom: 1px solid #fff;
    background: #f0f0f0;
}
.node .collapse > *:hover {
    background-color: #f5f5f5;
}
.node .collapse > *:before {
    content: '';
    width: 0px;
    background: #44b3e2;
    height: 100%;
    display: block;
    position: absolute;
    transition: width .2s ease-out;
}
.node .collapse > *:hover:before {
    width: 2px;
}
.node .collapse > *:last-child {
    border-bottom-width: 0
}
.node > * > * ,
.node > * > * > * ,
.node > * > * > .pull-right > * {
    float: left;
    min-height: 1px;
}
.pull-right{float:right!important}
.line-height-expanded{line-height: 2;}
.line-height-normal{line-height: 1.5;}
.cursor-pointer{ cursor: pointer; }

.device-key,
.device-schedule,
.device-configure,
.device-last-updated {
    border-left: 1px solid #eee;
    color: white;
}

.device-key:hover {background-color:#eaeaea;}
.device-configure:hover {background-color:#eaeaea;}

.label-container{padding-top:.6em; display:inline-block; min-width:200px}

/* select all button */
/*
.has-indicator{position:relative}
.has-indicator:after{
    transition: all 200ms ease-in-out;
    display: block;
    width: 1.1em;
    height: 1.1em;
    background: #FBFBFB;
    border: 1px solid #C7C7C7;
    color: #909090;
    border-radius: 3px;
    position: absolute;
    margin: .85em .55em;
    left: 0;
    top: 0;
    line-height: 1.1em;
    opacity: 0;
    content: attr(data-marker);
}
.has-indicator:hover:after{
    opacity: 1;
}
.has-indicator:active:after{
    border: 1px solid #B1522E;
    color: #FBFBFB;
    background: #D65C29;
}
*/
#table .accordion {
    margin-bottom: .5em
}

.controls.affix:before,
.group-actions.affix:before {
    background: #0077cc;
}

@media only screen and (min-width:870px) {
    body{font-size:16px}
}

/* -------------------------------------------------------------------
   Graph module
--------------------------------------------------------------------*/
table#feeds.table thead th {
    color: #666;
}
table#feeds.table thead th:hover{
    color: #999;
}
table#feeds.table tbody tr > * {
    border-color: #ebebeb;
}

/* -------------------------------------------------------------------
   App module
--------------------------------------------------------------------*/
.app-header,
.graph-header {
    color: #fff;
    background-color: #0069b4;
}
.app-header .action:hover,
.graph-header .action:hover {
    background-color: #0062a8;
}

.graph-body {
    background-color: #0069b410;
}
