/*************************/
/*********** Menu ********/
/*************************/
#menu {
    padding-top: 80px;
}

#menu ul {
    padding: 0;
}

#menu ul li {
    list-style: none;
    padding: 10px;
}

#menu ul li > div:first-child {
    display: inline-block;
    width: 50px;
    text-align: center;
}

#menu ul li:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

#menu ul a {
    color: white;
    width: 100%;
}

#menu ul a.active {
    background-color: rgba(255, 255, 255, 0.3);
}

#menu ul a:hover {
    text-decoration: none;
}

#menu ul a i {
    font-size: 25px;
}

/**** Page User ***/
.body-user {
    background: url(/img/background_connexion.jpg) #EDEDED center;
    background-size: cover;
}

.md-form .prefix ~ label {
    width: calc(100% - 2.5em);
}

/*************************/
/*** Layout principal ****/
/*************************/
.form-control.is-invalid {
    border-color: #ED1C24 !important;
}

.link {
    color: #007bff;
    font-weight: bold;
}

.link:hover {
    border-bottom: 1px dashed #007bff;
}

.cursor-pointer {
    cursor: pointer;
}

.animate-all {
    transition: all 0.3s ease-out;
}

.opacity-3 {
    opacity: .3;
}

.opacity-7 {
    opacity: .7;
}

.hover-opacity-10:hover {
    opacity: 1
}

.overflow-ellipsis {
    text-overflow: ellipsis;
    word-wrap: normal;
    overflow: hidden;
}

*:focus {
    outline: none;
}

.main-tabs {
    height: calc(100vh - 89px);
}

.classic-tabs ul.main-tab-header {
    border-radius: 0;
}

body > .navbar {
    z-index: 10;
}

.slideout-menu {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
    z-index: 0;
    width: 256px;
    -webkit-overflow-scrolling: touch;
    overflow-y: auto;
    display: none;
}

.slideout-panel {
    position: relative;
    z-index: 1;
    will-change: transform;
}

.slideout-open,
.slideout-open body,
.slideout-open .slideout-panel {
    overflow: hidden;
}

.slideout-open .slideout-menu {
    display: block;
}

main#panel {
    background-color: white;
    height: calc(100vh - 66px);
    overflow: auto;
    -webkit-box-shadow: 0 2px 15px 0 rgba(0, 0, 0, .16), 0 2px 10px 0 rgba(0, 0, 0, .12);
    box-shadow: 0 2px 15px 0 rgba(0, 0, 0, .16), 0 2px 10px 0 rgba(0, 0, 0, .12);
    will-change: unset;
}

.popover, .select2-container {
    z-index: 999;
}

.select2-container {
    min-width: 150px;
}

select.is-invalid + .select2 .select2-selection {
    border-color: rgb(237, 28, 36);
}

.editableform .editable-input.md-form .form-control {
    padding-bottom: 3px !important;
    line-height: 27px;
    padding-top: 0;
    margin-top: 6px;
}

.editableform .editable-input.md-form .editable-clear-x {
    top: 45%;
}

.btn-floating.load-processing i {
    color: inherit;
}

.btn-floating.load-processing {
    opacity: .7;
}

.md-form textarea.md-textarea {
    overflow-y: auto;
}

/*************************/
/********* Homes *********/
/*************************/

.dataTables_length select {
    display: inherit !important;
}

#homes-list tbody tr td {
    cursor: pointer
}

tbody .homeline-connected {
    text-align: center;
    font-size: 18px;
    padding-top: 10px !important;
}

tbody .homeline-nb_anomaly,
tbody .homeline-nb_ticket {
    text-align: center;
    font-size: 18px;
}

div.dataTables_wrapper div.dataTables_paginate {
    margin-top: 10px;
}

.card-detail-home .input-group-home .input-group-text {
    background-color: transparent;
    border: 0;
    line-height: 15px;
}

.card-detail-home .input-group span {
    flex: 1;
    margin-bottom: 10px;
}

.typeahead.dropdown-menu {
    z-index: 999 !important;
    padding-bottom: 0;
    padding-top: 0;
    margin: 0;
    border: 0;
    border-radius: 0;
    -webkit-box-shadow: 0 2px 15px 0 rgba(0, 0, 0, .16), 0 2px 10px 0 rgba(0, 0, 0, .12);
    box-shadow: 0 2px 15px 0 rgba(0, 0, 0, .16), 0 2px 10px 0 rgba(0, 0, 0, .12);
}

.typeahead.dropdown-menu li:not(:last-child) {
    border-bottom: 1px solid #DEDEDE;
}

.typeahead.dropdown-menu li {
    padding: 7px 15px;
}

.typeahead.dropdown-menu li:hover {
    background-color: #DEDEDE;
}

.typeahead.dropdown-menu li a {
    color: inherit;
}

.slider {
    position: relative;
}

.slider .loader {
    background-color: white;
    position: absolute;
    z-index: 10;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bx-wrapper {
    box-shadow: none;
}

.bx-controls {
    display: none;
}

.bx-controls a{
    transition: all 0s;
}

.slider .slide {
    min-height: 350px;
}

.slider .bx-pager.bx-default-pager {
    margin-left: -60px;
}

.fullcontainer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: white;
    z-index: 11;
}

.card-menu {
    min-height: 180px;
}

.card-menu .card-body {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.btn-circle-row {
    border-radius: 50%;
    margin: 0;
    height: 25px;
    width: 25px;
    border: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
}

#home-detail-SDM18SP2-list tr[role="row"] + tr:not([role="row"]) td {
    padding: 0 0 8px 0;
}

/***************************/
/******* Modules List ******/
/***************************/

tbody .datatable-status {
    text-align: center;
    font-size: 18px;
    padding-top: 10px !important;
}

/*************************/
/******* iziModal ********/
/*************************/

.iziModal {
    border-bottom: 0 !important;
}

.iziModal .iziModal-header-icon.mdi {
    line-height: 40px;
}

/**************************/
/******* xEditable ********/
/**************************/

.editableform .control-group {
    flex-direction: column;
}

.editable-error-block {
    color: #ED1C24;
}

.editableform select {
    display: inherit !important;
}

.editableform .editable-input select {
    margin-top: 6px;
}

/**************************/
/******* DASHBOARD ********/
/**************************/

.dashboard-center-circle-card {
    position: absolute;
    width: 175px;
    height: 175px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    border-radius: 50%;
    -webkit-box-shadow: 0px 0px 19px 1px rgba(0, 0, 0, 0.4);
    -moz-box-shadow: 0px 0px 19px 1px rgba(0, 0, 0, 0.4);
    box-shadow: 0px 0px 19px 1px rgba(0, 0, 0, 0.4);
    text-align: center;
    padding: 20px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    word-break: break-word;
    z-index: 1;
}

.dashboard-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    word-break: break-word;
    z-index: 1;
}

.circle-card {
    width: 175px;
    padding: 20px;
    height: 175px;
    background-color: white;
    border-radius: 50%;
    -webkit-box-shadow: 0px 0px 19px 1px rgba(0, 0, 0, 0.2);
    -moz-box-shadow: 0px 0px 19px 1px rgba(0, 0, 0, 0.2);
    box-shadow: 0px 0px 19px 1px rgba(0, 0, 0, 0.2);
    text-align: center;
}

@media screen and (max-width: 576px) {
    .dashboard-center-circle-card {
        max-width: 100%;
        -webkit-transform: none;
        -moz-transform: none;
        -ms-transform: none;
        -o-transform: none;
        transform: none;
        top: initial;
        left: initial;
        position: relative;
        height: auto;
        width: auto;
        margin: auto auto 20px;
        border-radius: initial;
    }

    .dashboard-center {
        max-width: 100%;
        -webkit-transform: none;
        -moz-transform: none;
        -ms-transform: none;
        -o-transform: none;
        transform: none;
        top: initial;
        left: initial;
        position: relative;
        margin: auto auto 20px;
        display: block;
    }

    .circle-card {
        height: auto;
        width: auto;
        border-radius: initial;
    }
}

.widget-card, .dashboard-center-circle-card {
    transition: all .5s ease-in-out;
}

.widget-energies-of-day {
    text-align: center;
}

.widget-energies-of-day .card-section-title {
    font-size: 12px;
    margin-bottom: 10px;
    text-align: center;
}

.widget-energies-of-day .values {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    font-size: 13px;
}


.widget-highlighted-homes-of-day {
    text-align: center;
}
.widget-highlighted-homes-of-day .highlighted-homes-loading-div,
.widget-highlighted-homes-of-day .highlighted-homes-empty-div {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    display: flex;
    background-color: white;
    z-index: 1;
    flex-direction: column;
}
.widget-highlighted-homes-of-day .bx-controls{
    display: block;
}
.widget-highlighted-homes-of-day .bx-controls .bx-controls-direction{
    opacity: 0;
    transition: opacity 0.4s ease-out;
}
.widget-highlighted-homes-of-day:hover .bx-controls-direction{
    opacity: 1;
}
.widget-highlighted-homes-of-day .oneHome{
    min-height: 250px;
}
.widget-highlighted-homes-of-day .bx-wrapper{
    margin: 0;
}
.widget-highlighted-homes-of-day .bx-wrapper .bx-pager{
    bottom: -10px;
}
.widget-highlighted-homes-of-day .bx-wrapper .bx-next{
    right: -15px;
}
.widget-highlighted-homes-of-day .bx-wrapper .bx-prev{
    left: -15px;
}
.widget-highlighted-homes-of-day .value{
    font-size: 10px;
}
.widget-highlighted-homes-of-day .financial{
    font-size: 10px;
}

.widget-highlighted-homes-of-day .card-section-title {
    font-size: 12px;
    margin-bottom: 10px;
    text-align: center;
}

.widget-highlighted-homes-of-day .values {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    font-size: 13px;
}


.widget-rt2012-of-day {
    text-align: center;
}

.widget-rt2012-of-day .card-section-title {
    font-size: 12px;
    margin-bottom: 10px;
    text-align: center;
}

.widget-rt2012-of-day .values {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    font-size: 13px;
}



.widget-devices-connected h5 {
    font-size: 18px;
}

.widget-devices-connected h6 {
    font-size: 15px;
}

.slider, .slider .bx-viewport {
    transition: all 0.3s ease-out;
}

#ticket_comment_send.load-processing i {
    color: white !important;
}

#tickets-list tbody tr td {
    cursor: pointer
}

#tickets-list tbody tr td {
    cursor: pointer
}

.card-tickets-loading-div {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    display: flex;
    background-color: white;
    z-index: 1;
    flex-direction: column;
}

/*****************  Emails *******************/

.tabs-left h4 {
    margin-bottom: 5px;
    margin-top: 5px;
}

.dropzone {
    border: 0 !important;
}

.dz-mark-top {
    position: absolute;
    top: -5px;
    right: 0;
    font-size: 27px;
    z-index: 10;
}

#emails-list-tab .email-list {
    height: 50vh;
    overflow: auto;
}

#emails-list-tab .email-list li {
    cursor: pointer;
    white-space: nowrap;
    text-overflow: ellipsis;
}

#emails-list-tab .tile > a:hover {
    background-color: #EDEDED;
    color: inherit !important;
}

#emails-list-tab .email-list li .tile-text > div {
    text-overflow: ellipsis;
    overflow: hidden;
}

#emails-list-tab .email-list li .tile-text {
    font-size: 13px;
}

.list-email .list-group-item.active .snippet {
    color: white;
}

.email-box-list {
    -webkit-transition: width 0.5s ease, margin 0.5s ease;
    -moz-transition: width 0.5s ease, margin 0.5s ease;
    -o-transition: width 0.5s ease, margin 0.5s ease;
    transition: width 0.5s ease, margin 0.5s ease;
}

.email-box-list .list-group.list-email .focus {
    border-bottom: 3px solid #2196f3;
}

.main-card, .main-tab-content {
    padding-bottom: 0px;
}

.main-card {
    margin-bottom: 20px;
}

.bootstrap-tagsinput {
    max-height: 150px;
    overflow: auto;
}

.thread-list-item .badge {
    font-size: 9px;
    margin-right: 10px;
}

.thread-list-item h5 {
    overflow: hidden;
    text-overflow: ellipsis;
    width: 56%;
    white-space: nowrap;
}

.thread-list-item h4 {
    overflow: hidden;
    text-overflow: ellipsis;
    width: 90%;
    white-space: nowrap;
}

.thread-list-item.focus {
    background-color: #EDEDED;
}

.thread-list-item.new h5,
.thread-list-item.new h4 {
    font-weight: bold !important;
}

#message_showed_title {
    margin-top: 25px !important;
}

#search-form {
    display: inline-block;
    margin: auto;
    padding: 5px;
    transition: all 3s ease;
}

#search-form input:not(#search_date_visible), #search-form select, #search-form .input-group.date {
    display: inline-block;
    width: 150px;
}

#search-form .btn-group {
    display: inline-block;
    width: auto;
}

.list-email {
    overflow: hidden;
    width: 100%;
}

.template-choose-item.active,
.template-choose-item a:hover {
    color: white !important;
    background-color: #0c84e4;
}

.popover-content.note-children-container {
    padding: 0;
}

.popover-content.note-children-container .note-hint-item {
    padding: 0px 15px;
}

.popover-content.note-children-container .note-hint-item:hover,
.popover-content.note-children-container .note-hint-item.active {
    background-color: #0c84e4;
    color: white;
}

.note-placeholder {
    position: absolute;
    padding: 10px;
    opacity: 0.5;
}

#formCompose .note-editable.panel-body {
    margin-bottom: 100px;
}

#formCompose .signature {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 20px;
}

#choose-email-template-modal {
    z-index: 10000;
}

.main-tab-list.nav-tabs > li > a > i {
    font-size: 2em !important;
    margin: 0;
    vertical-align: middle;
}

#emails-template-list tr td:first-child {
    min-width: 40px;
}

.dataTables_scrollBody thead tr th:before {
    display: none;
}

.dataTables_scrollBody thead tr th {
    line-height: 0px;
    box-sizing: content-box;
    -webkit-box-sizing: content-box;
    vertical-align: inherit;
    background: none;
    border: 0;
}

.dataTable td.dt-center {
    text-align: center !important;
}

.form-control-feedback.md {
    font-size: 2em;
    line-height: 1em;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    border: 1px solid #DEDEDE !important;
}

.dropdown-toggle.no-arrow:after {
    content: none;
}

.datatable-row-disabled td {
    opacity: .5;
}

.datatable-row-disabled td:last-child {
    opacity: 1;
}

.footer-datatable {
    margin-top: 5px;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
}

#div_tickets_assignment > div > input {
    padding-right: 15px;
}

.widget-tickets a {
    color: inherit;
}

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


/*****************  Foyer *******************/

.cross-button:hover {
    font-weight: bold !important;
    color: #323a4e !important;
}


/***************** Map Dashboard *******************/

/*-- Retire le copyright Google ----------------------*/
a[href^="http://maps.google.com/maps"] {
    display: none !important
}

a[href^="https://maps.google.com/maps"] {
    display: none !important
}

.gmnoprint a, .gmnoprint span, .gm-style-cc {
    display: none;
}

.gmnoprint div {
    background: none !important;
}

/*-- Titres des tooltips ----------------------*/
.gm-style-iw h3 {
    text-align: center;
    margin-bottom: 12px;
    font-size: 1.3rem;
}

.gm-style-iw h4 {
    font-size: 1rem;
}

/*-- X-Editables ----------------------*/

.editable-container.popover {
    z-index: 2000 !important;
}

/*-- Boutons ----------------------*/

.btn-xs {
    padding: 4px 8px;
}

/*-- Champs indicatif téléphone ----------------------*/
.intl-tel-input {
    display: block;
    width: 100%;

}

.iti-flag {
    background-image: url("../img/flags.png");
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .iti-flag {
        background-image: url("../img/flags@2x.png");
    }
}

/* Classe à filer aux champs intlTelInputs */
.intl-tel-field {
    width: 100%;
    box-sizing: border-box !important;
}


/* Fix multiselect searchable de la modale de création de notifications */
#modal-notification-form .select-dropdown.active li span label::before {
    top: -9px;
}

#modal-notification-form .select-wrapper .search-wrap {
    padding: 0;
}

/*-- Panels ----------------------*/
.tab-icon img {
    text-align: center;
    max-height: 30px;
}

/*-- Cards détail foyer ----------------------*/
.home-detail-cards .subsection-title:not(:first-child) {
    margin: 36px 0 0 0;
}

.home-detail-cards .card-body {
    z-index: 2;
}

.card-background-icon {
    z-index: 1;
    display: flex;
    position: absolute;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.card-background-icon svg {
    height: 130px;
}

.card-background-icon i,
.card-background-icon svg {
    position: relative;
    font-size: 7.3em;
    color: white;
    fill: white;
    opacity: .12;
    transform: rotate(-5deg);
    transition: .3s ease-in-out;
}

.card.card-menu.active .card-background-icon i,
.card.card-menu.active .card-background-icon svg {
    color: black;
    fill: black;
}

.card.card-menu:hover .card-background-icon i,
.card.card-menu:hover .card-background-icon svg {
    transform: scale(1.2) rotate(-6.5deg);
}

/*-- Datatable ----------------------*/

/* Centre le bouton (+) */
table.dataTable.dtr-inline.collapsed > tbody > tr[role="row"] > td:first-child:before,
table.dataTable.dtr-inline.collapsed > tbody > tr[role="row"] > th:first-child:before {
    width: 16px;
    height: 16px;
    line-height: 18px;
}


/*-- Accordions ----------------------*/

.accordion.md-accordion .card-header:hover h2 {
    color: #989CA0 !important;
}

/*-- Titres contenant un sous-element ----------------------*/

h1.with-items,
h2.with-items,
h3.with-items,
h4.with-items,
h5.with-items,
h6.with-items {
    display: flex;
    justify-content: space-between;
}

h1.with-items .item,
h2.with-items .item,
h3.with-items .item,
h4.with-items .item,
h5.with-items .item,
h6.with-items .item {
    display: inline-block;
    text-align: right;
}

@media all and (max-width: 768px) {
    h1.with-items,
    h2.with-items,
    h3.with-items,
    h4.with-items,
    h5.with-items,
    h6.with-items {
        flex-direction: column;
    }

    h1.with-items .item,
    h2.with-items .item,
    h3.with-items .item,
    h4.with-items .item,
    h5.with-items .item,
    h6.with-items .item {
        margin-top: 12px;
        text-align: right;
    }
}

/*-- Champs Number sans bouton spinner ----------------------*/

input[type=number].no-spinner::-webkit-outer-spin-button,
input[type=number].no-spinner::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number].no-spinner {
    -moz-appearance:textfield;
}

.modal .picker .picker__holder {
    background: none;
}


/*-- Fix boutons action mdb :^) ----------------------*/

.fixed-action-btn{
    transition: all 0.3s;
}
.fixed-action-btn .list-unstyled,
.fixed-action-btn.active .list-unstyled {
    height: auto;
    display: flex;
    justify-content: flex-end;
}

.dt-product-module-line-iteration {
    border-bottom: 1px solid #EDEDED;
    padding-top: 5px;
    padding-bottom: 5px;
}
