body {
    margin-top: 50px;
}

textarea {
    resize: none;
}

.main {
    padding: 20px;
    background-color:transparent;
}

.main .page-header {
    margin-top: 0;
}

.nav-tabs{
    margin-top: 10px;
}

.label{
    letter-spacing:1px;
}

#loadingDiv {
    z-index: 10000;
}

.center {
    text-align: center;
}

/*
 * Brand logo
 */

.brand{
    padding: 5px;
    padding-left: 20px;
    margin: 0px;
}

.brand >img{
    height: 40px;

}

/*
 * end Brand logo
 */

.imgContainer {
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.espace{
    margin-left: 25px;
}

.ficheth{
    text-align: right;
    padding-right: 10px;
    height: 30px;
}

.ficheth-center{
    text-align: center;
    vertical-align: middle;

}

.ficheth-vtop{
    vertical-align: top;
}

.btn-clear{
    background-color: transparent;
    opacity: 0;
}

a.btn-white {
    color: white;
}

a.btn-white:hover {
    color: rgba(0, 0, 0, 0.32);
}

/*
* Adresse Book -----------
*/

.list-adressebook{
    margin-top: 5px;
    max-height: 350px;
    overflow-y: scroll;
}

#contactsList::-webkit-scrollbar, #societesList::-webkit-scrollbar {
    display: none;
}

.blockquotes-ab{
    padding: 10px 20px;
    margin: 0 0 20px;
    border-right: 5px solid #3296c8;
}

.a-disabled{
    color:black;
    pointer-events: none;
    cursor: default;
}

.noselect {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.popover-footer {
  margin: 0;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 400;
  line-height: 18px;
  background-color: #F7F7F7;
  border-bottom: 1px solid #EBEBEB;
  border-radius: 5px 5px 0 0;
}

.badge-danger {
    background-color: #d9534f;
    border: 1px solid #d43f3a;
}
.badge-danger:hover {
    background-color: #c9302c;
    border: 1px solid #ac2925;
}

.badge-info {
    background-color: #5bc0de;
    border: 1px solid #46b8da;
}
.badge-info:hover {
    background-color: #31b0d5;
    border: 1px solid #269abc;
}

li.list-group-item-delete {
    text-decoration: line-through;
    background-color: #f7f7f7;
}
/*
* end Adresse Book -----------
*/

/*
* button in page-header --------------------------
*/

.btn-page-header{
    position: relative;
    top: 5px;
}

/*
* end button in page-header --------------------------
*/

/* DROPDOWN IMAGE ICON */
img.icon {
    width: 16px;
    height: 16px;
    position: relative;
    top: -2px;
    left: -2px;
    margin-right: 2px;
}

/*
 * Topbar-------------------------
 */

.iconTobBar,
#topBarUserPhoto {
    display: block;
    float: left;
    width: 30px;
    height: 30px;
    position: relative;
    top: -5px;
    left: -5px;
    margin-bottom: -15px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

#topBarUserPhoto {
    border-radius: 15px;
    border: 1px solid grey;
}

div.topBar span.glyphicon {
    margin-right: 5px;
}

div.topBar img.icon {
    margin-left: 1px;
    margin-right: 2px;
}



/*
 * Sidebar-------------------------
 */

@media (min-width: 768px) {

    .sidebar {
        position: fixed;
        top: 51px;
        bottom: 0;
        left: 0;
        z-index: 1000;
        display: block;
        padding: 0px;
        overflow-x: hidden;
        overflow-y: auto; /* Scrollable contents if viewport is shorter than content. */
        background-color: #f8f8f8;
        border-right: 1px solid #eee;
    }

    .main {
        padding-right: 20px;
        padding-left: 20px;
        background-color:transparent;
    }

    .nav-sidebar >li.dropdown>ul.dropdown-menu>li>a:hover,
    .nav-sidebar >li.dropdown>ul.dropdown-menu>li>a.active,
    .nav-sidebar >li.dropdown>ul.dropdown-menu>li>a:focus {
        color: #fff;
        background-color: #080808;
    }

    #sidebar>li{
        width: 100%;
    }

    .navbar-nav>li>a:hover,
    .navbar-nav>li>a:focus {
        background-color: #080808;
    }

    .label{
        letter-spacing:1px;
    }

    .pull-bottom{
        position:absolute;
        bottom: 0;
        margin-bottom: 0;

    }

}

/*
 * end Sidebar--------------------------
 */

/*
 * MSG--------------------------
 */
div.msg {
    position: absolute;
    float: left;
    top: 70px;
    word-wrap: break-word;
    z-index: 1000;
}
/*
 * end MSG--------------------------
 */

/*
 * Sub menu--------------------------
 */

.dropdown-submenu {
    position: relative;
}

.dropdown-submenu>.dropdown-menu {
    top: 5px;
    left: initial;
    right: 100%;
    margin-top: -6px;
    margin-left: 10px;
    -webkit-border-radius: 6px 0 6px 6px;
    -moz-border-radius: 6px 0 6px 6px;
    border-radius: 6px 0 6px 6px;
}

.dropdown-submenu:hover>.dropdown-menu {
    display: block;
}

.dropdown-submenu>a:after {
    display: block;
    content: " ";
    float: left;
    width: 0;
    height: 0;
    border-color: transparent;
    border-style: solid;
    border-width: 5px 5px 5px 5px;
    border-right-color: #ccc;
    margin-top: 7px;
    margin-left: -15px;
}

.dropdown-submenu:hover>a:after {
    border-right-color: #fff;
}

.dropdown-submenu.pull-left {
    float: none;
}

.dropdown-submenu.pull-right>.dropdown-menu {
    left: -100%;
    margin-left: 10px;
    -webkit-border-radius: 0 6px 6px 6px;
    -moz-border-radius: 0 6px 6px;
    border-radius: 0 6px 6px 6px;
}


/*
 *end Sub menu--------------------------
 */

/*
 * NAV TABS PANEL
 */

.nav-tabs-panel {
    border-radius: 5px 5px 0 0;
    border-bottom: none;
    color: #fff;
    background-color: #3296c8;
    padding-top: 5px;
    padding-left: 5px;
}
.nav-tabs-panel>li>a {
    color: white;
    padding-top: 5px;
    padding-bottom: 5px;
}

.nav-tabs-panel>li>a:hover {
    color: #2a6496;
}

.tab-content-panel {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 0 0 5px 5px;
}

/* END NAV TABS PANEL */

/*
 * Custom Color
 */
@cutom-Color: #3296c8;

/* NavBar */

.navbar-custom{ background-color: #f8f8f8}
.navbar-custom.navbar-nav>.active>a:hover,.navbar-custom.navbar-nav>li>a:hover, .navbar-custom.navbar-nav>li>a:focus { background-color: #ddd}
.navbar.navbar-nav>.active>a,.navbar-custom.navbar-nav>.open>a,.navbar-custom.navbar-nav>.open>a, .navbar-custom.navbar-nav>.open>a:hover,.navbar-custom.navbar-nav>.open>a, .navbar-custom.navbar-nav>.open>a:hover, .navbar-custom.navbar-nav>.open>a:focus { background-color: #3296c8}
.dropdown-menu { background-color: white}
.dropdown-menu>li>a:hover, .dropdown-menu>li>a:focus { background-color: #3296c8}
.navbar-custom{ border-color: #080808}
.navbar-custom.navbar-brand { color: #999999}
.navbar-custom.navbar-brand:hover { color: #FFFFFF}
.navbar-custom.navbar-nav>li>a { color: #404040}
.navbar-custom.navbar-nav>li>a:hover, .navbar-custom.navbar-nav>li>a:focus { color: #404040}
.navbar-custom.navbar-nav>.active>a, .navbar-custom.navbar-nav>.active>a:hover ,.navbar-custom.navbar-nav>.open>a, .navbar-custom.navbar-nav>.open>a:hover, .navbar-custom.navbar-nav>.open>a:focus { color: #FFFFFF; background-color: #3296c8}
.navbar-custom.navbar-nav>.active>a:hover, .navbar-custom.navbar-nav>.active>a:focus { color: #FFFFFF}
.dropdown-menu>li>a { color: #404040}
.dropdown-menu>li>a:hover, .dropdown-menu>li>a:focus { color: #FFFFFF}
.navbar-custom.navbar-nav>.dropdown>a .caret { border-top-color: #999999}
.navbar-custom.navbar-nav>.dropdown>a:hover .caret { border-top-color: #FFFFFF}
.navbar-custom.navbar-nav>.dropdown>a .caret { border-bottom-color: #999999}
.navbar-custom.navbar-nav>.dropdown>a:hover .caret { border-bottom-color: #FFFFFF}

/* Panel */

.panel-custom {
  border-color: #3296c8;
}
.panel-custom > .panel-heading {
  color: #fff;
  background-color: #3296c8;
  border-color: #3296c8;
}
.panel-custom > .panel-heading + .panel-collapse .panel-body {
  border-top-color: #3296c8;
}
.panel-custom > .panel-footer + .panel-collapse .panel-body {
  border-bottom-color: #3296c8;
}

/* Btn */

.btn-custom {
  color: #fff;
  background-color: #3296c8;
  border-color: #357ebd;
}

.btn-custom >a{
    color: #fff;
}

.btn-custom:hover,
.btn-custom:focus,
.btn-custom:active,
.btn-custom.active,
.open .dropdown-toggle.btn-custom {
  color: #fff;
  background-color: #4687bf;
  border-color: #285e8e;
}
.btn-custom:active,
.btn-custom.active,
.open .dropdown-toggle.btn-custom {
  background-image: none;
}
.btn-custom.disabled,
.btn-custom[disabled],
fieldset[disabled] .btn-custom,
.btn-custom.disabled:hover,
.btn-custom[disabled]:hover,
fieldset[disabled] .btn-custom:hover,
.btn-custom.disabled:focus,
.btn-custom[disabled]:focus,
fieldset[disabled] .btn-custom:focus,
.btn-custom.disabled:active,
.btn-custom[disabled]:active,
fieldset[disabled] .btn-custom:active,
.btn-custom.disabled.active,
.btn-custom[disabled].active,
fieldset[disabled] .btn-custom.active {
  background-color: #3296c8;
  border-color: #357ebd;
}
.btn-custom .badge {
  color: #3296c8;
  background-color: #fff;
}

/* Pagination */

.pagination {
  display: inline-block;
  padding-left: 0;
  margin: 20px 0;
  border-radius: 4px;
}
.pagination > li {
  display: inline;
}
.pagination > li > a,
.pagination > li > span {
  position: relative;
  float: left;
  padding: 6px 12px;
  margin-left: -1px;
  line-height: 1.42857143;
  color: #3296c8;
  text-decoration: none;
  background-color: #fff;
  border: 1px solid #ddd;
}
.pagination > li:first-child > a,
.pagination > li:first-child > span {
  margin-left: 0;
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
}
.pagination > li:last-child > a,
.pagination > li:last-child > span {
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
}
.pagination > li > a:hover,
.pagination > li > span:hover,
.pagination > li > a:focus,
.pagination > li > span:focus {
  color: #2a6496;
  background-color: #eee;
  border-color: #ddd;
}
.pagination > .active > a,
.pagination > .active > span,
.pagination > .active > a:hover,
.pagination > .active > span:hover,
.pagination > .active > a:focus,
.pagination > .active > span:focus {
  z-index: 2;
  color: #fff;
  cursor: default;
  background-color: #3296c8;
  border-color: #3296c8;
}
.pagination > .disabled > span,
.pagination > .disabled > span:hover,
.pagination > .disabled > span:focus,
.pagination > .disabled > a,
.pagination > .disabled > a:hover,
.pagination > .disabled > a:focus {
  color: #999;
  cursor: not-allowed;
  background-color: #fff;
  border-color: #ddd;
}

/*
 * end Custom Color
 */


.popover-info {
    background-color: #D9EDF7 !important;
    color: #31708F !important;
    font-weight: bold !important;
    font-size: 20px;
}

span.defaultPWD {
    color: #ff7600 !important;
    margin-right: 4px;
    cursor: pointer;
}

div.panel-input-group { padding: 0; }

div.panel-input-group input { border: none; }

#btnViewPwd {
    position: absolute;
    right: 45px;
    top: 11px;
    z-index: 10;
    text-decoration: none;
}

#btnViewPwd.active { color: #d43f3a; }

img.iconBtn {
    height: 14px;
    margin-top: -3px;
}

.btn-link.btnDelete { color: #d43f3a; }
.btn-link.btnDelete:hover { color: #c9302c; }

/*** LOGS ***/
#modalViewLogs div.modal-dialog { width: calc(100vw - 200px); }
#modalViewLogs div.modal-content { overflow: clip(); }
#modalViewLogs div.modal-body { padding: 0; }
#viewLogsList {
    display: block;
    width: 100%;
    height: calc(100vh - 150px);
    background-color: black;
    color: white;
    list-style: none;
    margin: 0;
    padding: 4px;
    overflow-y: scroll;
}

#viewLogsList li.log {
    display: block;
    width: 100%;
    padding: 4px;
    cursor: pointer;
}

#viewLogsList li.log:not(:last-child) {
    border-bottom: 0.5px solid grey;
    margin-bottom: 4px;
}


#viewLogsList li.log > span.level {
    display: block;
    float: left;
    color: white;
    margin-right: 6px;
}

span.level.ERROR, span.level.FATAL { background-color: #d9534f; }
span.level.WARNING { background-color: #f0ad4e; }
span.level.INFO { background-color: #3296c8; }

#viewLogsList li.log > span.date,
#viewLogsList li.log > span.user {
    display: block;
    color: white;
    float: right;
    margin-left: 6px;
}

#viewLogsList li.log > span.msg {
    display: block;
    color: white;
    font-weight: 800;
    font-size: 14px;
}
#viewLogsList li.log > span.url {
    display: block;
    color: lightblue;
    font-weight: 400;
    font-size: 12px;
}
#viewLogsList li.log > span.position {
    display: block;
    width: 100%;
    color: lightgrey;
    font-weight: 200;
    font-size: 12px;
}
#viewLogsList li.log > h5.trace {
    display: none;
    width: 100%;
    color: lightgrey;
    font-weight: 400;
    font-size: 12px;
    margin: 2px 0;
}

#viewLogsList li.log > ul.trace {
    display: none;
    width: 100%;
    color: lightgrey;
    font-weight: 200;
    font-size: 12px;
    padding-left: 20px;
}

#viewLogsList li.log.expanded > h5.trace,
#viewLogsList li.log.expanded > ul.trace { display: block; }

#viewLogsList li.log li.trace span.args span.collapse { display: inline-block; }
#viewLogsList li.log.expanded li.trace.expanded span.args span.collapse { display: none; }

#viewLogsList li.log li.trace span.args span.expanded { display: none; }
#viewLogsList li.log.expanded li.trace.expanded span.args span.expanded { display: inline; }