/*
Copyright (c) i-Aspect 2014-2015
Project: Status
Author:  steef
Date:    Jul 9, 2015
*/

body {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}
main {
    flex: 1 0 auto;
}
body, .header, ul.side-nav.fixed li a {
    color: #223;
}

ul.side-nav.fixed li.logo {
    background: #1FB25A;
    margin-top: 0;
    padding-bottom: 24px;
    padding-top: 8px;
}
ul.side-nav.fixed li.logo:hover {
    background: #21B75D;
}
form .error-message {
    color: #f44336;
    font-size: 75%;
    position: relative;
    top: -1em;
}
nav .nav-wrapper .dropdown-content i {
    display: inline-block;
    color: #333;
}
nav .nav-wrapper .dropdown-content {
    min-width: 160px;
}
nav.top-nav {
    border-bottom: 1px solid #ddd;
}
footer.page-footer, nav.top-nav  {
    background: #334;
}
table.striped.card tr:hover {
    box-shadow:0 0 2px rgba(77, 182, 172,.25);
}
table.striped.card tr:hover td {
    background:rgba(77, 182, 172,.1);
}
table.striped.card tr:hover td:first-of-type {
    border-left: 2px solid #4db6ac;
    padding-left: 4px;
}
table.striped.card tr:hover td {
    background: rgba(77, 182, 172,.1) !important;
}
@media only screen and (max-width : 992px) {
    table.responsive-table tr:hover td:first-child {
        padding-top: 12px;
        border-top: 3px solid #4db6ac;
    }
    table.responsive-table tr:hover td:last-child {
        padding-bottom: 12px;
        border-bottom: 3px solid #4db6ac;
    }
    table.responsive-table.striped.card tr:hover td:first-child {
        border-left: 0 none;
        padding-left: 5px;
    }
    table.responsive-table.striped.card tr:hover td:last-child {
        border-right: 0 none;
        padding-right: 5px;
    }
    table.responsive-table th {
        width: 100%;
    }
}
@media only screen and (min-width: 1200px) {
    html table {
        font-size: 11px;
    }
}
@media only screen and (min-width: 992px) {
    html table {
        font-size: 12px;
    }
}
@media only screen and (min-width: 0) {
    html table {
        font-size: 12px;
    }
}
table.collection td {
    padding: 10px 20px;
}
table.collection td .material-icons {
    vertical-align: middle;
}
.nowrap {
    white-space: nowrap;
}

/* queue stats */
body .auto-refresh {
    transition: all 0.3s ease-in;
    float: right;
}
body .auto-refresh.active {
    background: #fff;
}
body .auto-refresh.active i {
    color: #f44336;
}
h3 + .auto-refresh {margin-top: -4em;}
h4 + .auto-refresh {margin-top: -3.4em;}

.rotate i {
   -webkit-animation:spin .25s ease-out;
    -moz-animation:spin .25s ease-out;
    animation:spin .25s ease-out;
}
@-moz-keyframes spin {
    100% { -webkit-transform: rotate(360deg); transform:rotate(360deg); }
}
@-webkit-keyframes spin {
    100% { -webkit-transform: rotate(360deg); transform:rotate(360deg); }
}
@keyframes spin {
    100% { -webkit-transform: rotate(360deg); transform:rotate(360deg); }
}

/* materialize fixes */
.input-field label {
    width: 98%;
}
table.collection {
    table-layout: fixed;
}

/* alerts */
.alert {
    color: #fff;
    background: #ffc107;
}
.alert-success {background-color: #4caf50;}
.alert-danger  {background-color: #ef5350;}
.alert-warning {background-color: #ff5722;}
.alert-info    {background-color: #2196f3;}

.alert ul {
    margin:0;
}
.alert li, .alert li i {
    height: 30px;
    line-height: 28px;
    vertical-align: middle;
}
.alert.message > ul {
    margin: 0 0 0 1em;
}
.alert.message > ul,.alert.message > ul li {
    list-style-type: disc;
}
.alert.message > ul .message_title {
    background: rgba(255, 255, 255, 0.23) none repeat scroll 0 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.18);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.02), 0 2px 10px 0 rgba(0, 0, 0, 0.02);
    list-style-type: none;
    margin: 0 0 5px -1.5em;
    padding: 0 0.5em;
    font-weight: bold;
}
main > .container > .alert.card-panel {
    margin: 2rem 0 -1rem;
}

/* buttons */
.btn.btn-primary,.btn-large.btn-primary,.btn-floating.auto-refresh {
    background-color: #1fb25a;
}
.card .btn, .card .btn-large, .card .btn-flat {
    margin: 0.6em 0 0;
    padding: 0 0.66em;
    text-align: left;
    text-transform: none;
    width: 100%;
}
.btn.has-icon i, .btn-large.has-icon i, .btn-floating.has-icon i, .btn-large.has-icon i, .btn-flat.has-icon i {
    float: left;
    margin-right: 0.5rem;
    position: relative;
}
.card .btn.has-icon::before {
    background: rgba(0, 0, 0, 0.25) none repeat scroll 0 0;
    box-shadow: 0 1px 3px rgba(0,0,25, 0.2) inset, 0 1px 1px rgba(255,255,255, .5);
    border-radius: 50%;
    content: "";
    height: 1.8em;
    left: 0;
    margin-left: 1.7rem;
    margin-top: 0.35rem;
    position: absolute;
    width: 1.8em;
}

/* responsive */
@media only screen and (max-width: 600px) {
    nav .nav-wrapper a.page-title {
        font-size: 24px;
        line-height: 24px;
    }
    nav.top-nav {
        height: auto;
    }
    a.button-collapse.top-nav {
        left: 0;
    }
    a.button-collapse.top-nav.full {
        line-height: inherit;
    }
}

/* Material Icons */
@font-face {
  font-family: 'Material Icons';
  font-style: normal;
  font-weight: 400;
  src: url(../font/material-icons/MaterialIcons-Regular.eot); /* For IE6-8 */
  src: local('Material Icons'),
       local('MaterialIcons-Regular'),
       url(../font/material-icons/MaterialIcons-Regular.woff2) format('woff2'),
       url(../font/material-icons/MaterialIcons-Regular.woff) format('woff'),
       url(../font/material-icons/MaterialIcons-Regular.ttf) format('truetype');
}

.material-icons {
  font-family: 'Material Icons';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  word-wrap: normal;
  
  /* Support for all WebKit browsers. */
  -webkit-font-smoothing: antialiased;

  /* Support for Safari and Chrome. */
  text-rendering: optimizeLegibility;

  /* Support for Firefox. */
  -moz-osx-font-smoothing: grayscale;

  /* Support for IE. */
  font-feature-settings: 'liga';
}
