.main-header
{
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
}

.main-sidebar
{
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
}

.content-wrapper
{
    margin-top: 50px;
}

a:hover .info-box-icon.bg-gray {
    background-color : #D2E5FF !important;
    color: #fff;
}

.dashboard-separator {
    height           : 10px;
    width            : 100%;
    margin-bottom    : 10px;
    background-color : #d2d6de;
}

.table-responsive form {
    max-width: 1500px;
}

.form-group input[type=checkbox] {
    margin-top: 12px;
}

.panel-default a >.panel-heading {
    color: #333;
    background-color: #f5f5f5;
    border-color: #ddd;
}

.page-buttons {
    padding: 10px 0;
}

.col-md-1-2
{
    float:left;
    padding-left: 15px;
}

.col-md-1-2 .info-box {
    min-height: 60px;
}

.col-md-1-2 .info-box-icon
{
    width: 60px;
    height: 60px;
    position : relative;
}

.col-md-1-2 .ion {
    position : absolute;
    left: 15px;
    top: 10px;
}

.col-md-1-2 .info-box-content
{
    margin-left: 60px;
}

.warehouse-heading {
    color: #000;
}

.warehouse-heading .fa {
    font-size: 18px;
}

.warehouse-heading h3{
    margin: 0;
}

.nav-tabs .nav-item {
    border: 1px solid transparent;
    border-top-left-radius: .25rem;
    border-top-right-radius: .25rem;
    margin-bottom: -1px;
    display: inline-block;
    padding: .5rem 1rem;
}

.nav-tabs .nav-item.active {
    color: #495057;
    background-color: #fff;
    border-color: #dee2e6 #dee2e6 #fff;
}

.nav-tabs .nav-item.active:hover {
    border-color: #e9ecef #e9ecef #dee2e6;
}

.nav-tabs .nav-item:hover {
    border-color: #e9ecef #e9ecef #dee2e6;
}

.tab-pane.fade .form-group, .tab-pane.fade .auth-links {
    display: none;
}

.tab-pane.fade.active .form-group, .tab-pane.fade.active .auth-links {
    display: block;
}

.collapse .table-responsive, .collapsing .table-responsive {
    padding: 15px;
}

.filter {
    display: inline-block;
    vertical-align: top;
}

.attr-filter-popup {
    margin-left: 10px;
    font-weight: normal;
    position : relative;
    display: inline-block;
}

.attr-filter-popup.hidden {
    display: none;
}

.attr-filter-select {
    padding: 2px;
    height: 28px;
    width: 100px;
    position : relative;
    top: -3px;
}

.not-visible {
    visibility: hidden;
}

.attr-edit {
    display: inline-block;
    padding: 0;
    margin: 0;
    float: left;
    border: none;
}

.attr-edit button, .items-deactivate button, .add-to-storage button {
    font-size: 12px;
}

.add-to-storage
{
    background-color: #00CC78;
    color: #fff;
}

.add-to-storage:hover
{
    background-color: #00CCAC;
    color: #fff;
}
.modal-body{
    max-height: 500px;
    overflow-y: auto;
}
.panel-body .btn {
    display: inline-block;
    float: left;
    margin-right: 5px;
}

.search-form {
    padding-top: 0;
    text-align: right;
}

.form-label {
    font-weight: normal;
}

.modal .modal-footer .btn {
    float: right;
}

.modal-title {
    font-weight: bold;
}

.modal-dialog {
    min-height: calc(100% - (1.75rem * 2));
    display: flex;
    align-items: center;
}

.modal-center {
    width: 100%;
}

.modal-header .close {
    font-size: 24px;
    opacity: .5;
}

.modal-header .close:hover {
    opacity: 1;
}

.search-form {
    position: relative;
    margin: 0;
    float: right;
}

.active-checkbox {
    margin-top: 10px;
}

.active-checkbox input, .active-checkbox label {
    float: right;
    margin-right: 5px;
}

.modal .alert-warning {
    color: #8a6d3b !important;
    background-color: #fcf8e3 !important;
    border-color: #faebcc !important;
}

.table-responsive {
    clear:both;
}

#attributes-frame .buttons {
    float : left;
}

#attributes-frame .top {
    margin: 15px 0 0 15px;
}

#attributes-frame .search-form {
    margin-right: 20px;
}

#attributes-frame .alert
{
    padding-left: 25px;
}

.clear-filters .btn
{
    background-color: rgb(221, 221, 221);
    color: #000;
}

.clear-filters .btn:hover
{
    background-color: rgb(200, 200, 200);
}

.table-responsive th
{
    white-space: nowrap;
    width: auto;
    vertical-align: top !important;
}

.table
{
    table-layout: fixed;
}

.table {
    width: auto;
    min-width: 100%;
}

.table td
{
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    max-width: 200px;
}

.table td.actions
{
    width: 300px;
    max-width: 300px;
}

.last-col
{
    text-align: right;
    width: 190px !important;
    position: fixed;
    right: 46px;
    padding-right: 10px !important;
    border: 1px solid #ddd !important;
    background-color: #fff;
}

.last-col a, .actions a
{
    float: none !important;
}

th.last-col
{
    padding-bottom: 15px !important;
}

.table-striped>tbody>tr:nth-of-type(odd) .last-col
{
    background-color: #f9f9f9;
}

.node-treeview-selectable:hover
{
    background-color: #F5F5F5;
}

.node-treeview-selectable.node-selected
{
    color: #fff;
    background-color: #428bca;
}

.node-treeview-selectable .icon
{
    cursor: pointer;
}

.node-treeview-selectable .icon
{
    width: 18px;
}

.tree-form-check
{
    position: relative;
    top: 3px;
    margin-left: 10px !important;
}

.ui-autocomplete
{
    z-index: 9999 !important;
    right: 50px !important;
}

.treeview ul{
    padding-left: 0;
}

td.table-breadcrumb
{
    max-width: 500px;
}

.bg-error{
    background-color: #d85b50 !important;
}

li.username{
    color: #b8c7ce;
    padding: 10px;
    font-size: 16px;
}

.actions .info-box
{
    max-width: 170px;
}

.actions .info-box .info-box-text
{
    white-space: normal;
}

.checkboxes .checkbox
{
    display: inline;
}

.checkboxes .checkbox label
{
    font-weight: bold;
    margin-left: 10px;
}

.checkboxes .checkbox input[type='checkbox']
{
    top: 4px;
    left: 2px;
}

.search-form .input-group-btn .btn {
    margin-right: 0;
}


li.username{
    color: #b8c7ce;
    padding: 10px;
    font-size: 16px;
}

.actions .info-box
{
    max-width: 170px;
}

.actions .info-box .info-box-text
{
    white-space: normal;
}

.modal-footer .btn
{
    margin-left: 5px;
}

.checkboxes .left-box
{
    width: 50%;
    float: left;
}

.checkboxes .right-box
{
    width: 50%;
    float: right;
}

.checkboxes
{
    width: 400px;
    float: left;
    margin-right: 10px;
}

.checkboxes.large
{
    margin-top: -10px;
}

.tabbing-title
{
    float: left;
    margin-right: 50px;
}
.panel-heading.tabbing
{
    height: 38px;
}

.panel-heading .nav-tabs
{
    float: left;
    margin-top: -4px;
}

.alert-warning
{
    color: #856404 !important;
    background-color: #fff3cd !important;
    border-color: #ffeeba;
}

.alert-warning .btn
{
    margin-left: 10px;
}

.alert-warning .btn-primary
{
    color: #fff;
    background-color: #007bff;
    border-color: #007bff;
}

.version-container
{
    position: absolute;
    bottom: 10px;
    color: #fff;
    text-align: center;
    width: 100%;
}

.form-group.center
{
    text-align: center;
}

table.dataTable
{
    width: 100% !important;
}

.btn.import-save
{
    float: right;
    max-width: 200px;
    margin-top: 10px;
}

#sensor-fridge-container
{
    margin: 10px;
}

.sensor-fridge-parent
{
    display: block;
    border: 1px solid #808080;
    border-radius: 2px;
    margin: 10px 0;
    box-shadow: 0 1px 1px rgba(0,0,0,0.1);
    background-color: #fff;
}

.sensor-statistics-container
{
    margin: 10px;
}

.sensor-statistics-select
{
    width: auto;
    display: inline-block;
    vertical-align: bottom;
}

#sensor-statistics-graph
{
    text-align: center;
    margin-top: 10px;
    min-height: 100px;
}

.sensor-statistics-spinner
{
    border: 3px solid #000000 !important;
    border-right-color: transparent !important;
}

.label-error
{
    background-color: #dd4b39;
}

.input-group
{
    margin-bottom: 10px;
}

.input-group .input-group-addon {
    border-radius: 4px;
    background-color: #eee;
}

.input-group-addon:first-child
{
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    width: 250px;
}

form.sensor-settings
{
    overflow-x: auto;
}

.input-group input.sensor-settings
{
    width:100px;
}

.input-group-addon:last-child
{
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    width: 100px;
}
.sensor-fridge-parent-header .sensor-fridge-name{
    font-weight: bold;
    display: inline-block;
}
.sensor-fridge-parent-header .sensor-fridge-temp{
    display: inline-block;
    margin-left: 10px;
}
.sensor-fridge-parent-header
{
    display: block;
    margin: 10px 10px 5px 10px;
    padding-bottom: 5px;
    border-bottom: 1px dotted #c5c5c7;
}
.sensor-fridge-body{
    padding: 0px 5px 5px;
}

.sensor-fridge
{
    vertical-align: top;
    display: inline-block;
    width: 160px;
    border: 1px solid #afadad;
    border-radius: 2px;
    background-color: #eaf2ff;
    margin: 5px;
    line-height: 2em;
    -webkit-box-shadow: 0px 0px 3px 0px rgba(0,0,0,0.20);
    -moz-box-shadow: 0px 0px 3px 0px rgba(0,0,0,0.20);
    box-shadow: 0px 0px 3px 0px rgba(0,0,0,0.20);
    min-height: 8em;
}
.sensor-fridge .sensor-fridge-name{
    border-bottom: 1px dotted #c5c5c7;
}
.sensor-fridge .sensor-fridge-name
{
    text-align: center;
    font-weight: bold;
}

.sensor-fridge .sensor-fridge-temp
{
    text-align: center;
    padding: 0 5px;
}

.sensor-fridge-temp a
{
    color: #fff;
}

.sensor-fridge-temp a i
{
    margin-left: 5px;
}

.sensor-form-container
{
    margin-top: 10px;
}

.description-text
{
    display: block;
}

table.valign-middle td
{
    vertical-align: middle !important;
}
.sensor-alarms-container
{
    margin-left: 20px;
}

.sensor-alarms-container table tr td
{
    text-align: left;
}

.sensor-alarms-container .sensor-alarm-sensor
{
    text-align: left;
    font-weight: 600;
    font-size: 16px;
}

.fullscreen-button
{
    text-align: right;
    margin: 10px;
}

@media (max-width: 991px){
    .navbar-custom-menu>.navbar-nav {
        float: left;
        width: 42px;
    }
    .user.user-menu{
        display: none;
    }
}

/* Responsive */
@media (max-width: 767px){
    #notifications-menu .dropdown-menu{
        right: auto;
        left: 0;
    }
    .content{
        padding-left: 5px;
        padding-right: 5px;
    }
    .main-header .logo{
        width: calc(100% - 84px);
        float: right;
    }
    .main-header .navbar{
        width: 84px;
        float: right;
    }
    .main-header{
        float: left;
    }
    .main-sidebar{
        padding-top: 50px;
        overflow-y: auto;
    }
    .navbar-custom-menu{
        display: block;
    }
    .navbar-form
    {
        max-width: 100%;
        padding: 5px 0;
        margin: 0;
    }
    .action-box
    {
        width: 100%;
    }
    .action-box .btn, .action-box .attr-edit
    {
        width: 46%;
        margin: 4px;
    }
    .action-box .attr-edit .btn
    {
        width: 100%;
        margin: 0;
    }
    .search-form .input-group-btn .btn {
        width: auto;
        margin: 0 0 0 -1px;
    }
    .checkboxes {
        width: 100%;
        float: left;
        margin-right: 0;
        margin-top: 5px;
    }
    .checkboxes.large
    {
        margin-top: 0px;
    }
    .checkboxes .left-box
    {
        width: 100%;
        float: left;
    }
    .checkboxes .right-box
    {
        width: 100%;
        float: left;
    }
    .checkboxes .checkbox
    {
        display : block;
        width: 100%;
        margin: 1px 0;
        text-align: left;
    }
    .checkboxes .checkbox label {
        padding: 0;
        margin: 0 0 0 20px;
    }
    .checkboxes .checkbox input[type='checkbox'] {
        top: 0;
        left: 20px;
    }
    .clear-filters .btn {
        margin-bottom: 10px;
    }
    .storage-edit-window
    {
        margin-top: 60px;
    }
    .tabbing-title
    {
        float: left;
        margin-right: 10px;
    }
    .col-md-1-2
    {
        width: 48%;
    }
    .version-container
    {
        position: relative;
        margin: 10px 0;
    }
    .info-box-number{
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
        font-size: 16px;
    }
    .col-md-1-2 .info-box-icon{
        width: 45px;
    }
    .col-md-1-2 .ion{
        font-size: 35px;
        left: 10px;
    }
    .col-md-1-2 .info-box-content{
        margin-left: 45px;
    }
    .actions .info-box{
        max-width: 100%;
    }
    .sensor-statistics-select
    {
        width: 100%;
        margin-bottom: 10px;
    }
    .main-header .nav>li>a>.label
    {
        position: absolute;
        top: 9px;
        right: 7px;
        text-align: center;
        font-size: 9px;
        padding: 2px 3px;
        line-height: .9;
    }

    #sensor-statistics-graph
    {
        overflow-x: auto;
    }
}

@media print
{
    .btn, .panel-default, .form-group, .alert
    {
        display: none;
    }
    .panel-default.user-data, .panel-default.sensor-data
    {
        display: block;
        visibility: hidden;
    }
    .form-group.qrcode, #sensor-statistics-graph
    {
        display: block;
        visibility: visible;
    }
}

/** FULLSCREEN ACTIVE **/

.fullscreen-active{
    background: #000;
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    z-index: 999999;
}
.fullscreen-active *{
    color: #fff;
}
.fullscreen-active .sensor-fridge-parent, .fullscreen-active .sensor-fridge{
    background: none;
}




/** FIXED TABLE HEAD HELPER **/

.sidebar-mini.sidebar-collapse .main-header .navbar{
    z-index: 999;
}
.fixed-table-responsive-container{
    padding:0px !important;
    position: relative;
}
.fixed-table-responsive{
    margin-right: 18em;
    width: auto;
    overflow-x:scroll;
    overflow-y:visible;
}

.fixed-table-responsive td.actions,
.fixed-table-responsive th.actions{
    position: absolute;
    right:0;
    top:auto;
    width: 18em;
    background: #fff;
    border-left: 2px solid #f4f4f4;
}
.fixed-table-responsive th.actions{
    border: none;
}

@media (max-width: 767px){
    .fixed-table-responsive {
        margin-right: 9em;
    }
    .fixed-table-responsive td.actions,
    .fixed-table-responsive th.actions{
        width: 9em;
    }
    .fixed-table-responsive td{
        height: 41px;
    }
    .fixed-table-responsive td.actions .btn{
        font-size: 0;
    }
    .fixed-table-responsive td.actions .btn i{
        font-size: 22px;
    }
    .panel-body{
        padding: 7px;
    }
}

.sidebar-mini:not(.sidebar-mini-expand-feature).sidebar-collapse .sidebar-menu>li:hover>a>span:not(.pull-right),
.sidebar-mini:not(.sidebar-mini-expand-feature).sidebar-collapse .sidebar-menu>li:hover>.treeview-menu{
    padding-left: 0 !important;
    margin-left: -12px !important;
}
/* TODO: fixed header for items table
.fixed-table-header-active{
    position: absolute;
    top: 50px;
    background-color: #fff;
    z-index: 99999;
}
*/