/* ==========================================================================
   Add-ons Bootstrap
   ========================================================================== */

.btn-file {
  position: relative;
  overflow: hidden;
}
input[type=file] {
  position: absolute;
  top: 0;
  right: 0;
  min-width: 100%;
  min-height: 100%;
  font-size: 100px;
  text-align: right;
  filter: alpha(opacity=0);
  opacity: 0;
  background: red;
  cursor: inherit;
  display: block;
}

textarea.form-control {
  height: 68px;
  min-height: 34px;
  max-height: 100vh;
  resize: vertical;
}

.checkbox {
  margin-top: 0;
  margin-bottom: 0;
}
.radio {
  margin-top: 4px;
}
.toggle.btn {
  min-width: 94px !important;
}

.text-large {
  font-size: 1.75em;
}

.input-group-addon {
  min-width: 38px;
}

.input-group-btn .btn {
  max-height: 34px;
}

.form_bloc_multi {
  width: calc(100% - 39px);
  height: 68px;
  resize: vertical;
  max-height: 100vh;
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}
.input-group-btn-multi {
  display: flex;
  width: 39px;
  height: 100%;
  position: absolute;
  top: 0;
  right: 15px;
}
.input-group-btn-multi .btn {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.navbar-brand {
  display: block;
  padding: 5px !important;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 240px;
}
@media (min-width: 992px) {
  .navbar-brand {
    padding: 5px 15px !important;
  }

  .navbar-toggle {
    display: none !important;
  }
}
.navbar-brand img {
  display: inline;
  margin-right: -18px;
  vertical-align: -55%;
}
.navbar-brand span {
  overflow: hidden;
  white-space: nowrap;
}

.navbar-toggle {
  display: block;
  margin-right: 3px;
}

.tooltip.top .tooltip-arrow {
  border-top: 5px solid #666 !important;
}
.tooltip.right .tooltip-arrow {
  border-right: 5px solid #666 !important;
}
.tooltip.bottom .tooltip-arrow {
  border-bottom: 5px solid #666 !important;
}
.tooltip.left .tooltip-arrow {
  border-left: 5px solid #666 !important;
}

.tooltip-inner {
  background-color: #666 !important;
  box-shadow: 0 2px 4px 0 rgba(0,0,0,.32), 0 2px 10px 0 rgba(0,0,0,.24) !important;
}
.tooltip-inner img {
  max-width: calc(100% - 10px);
  filter: drop-shadow(1px 1px 1px #000);
}

.nav > li > a {
  padding: 10px !important;
}

/* ==========================================================================
   ERP
   ========================================================================== */

html, body {
  width: 100%;
  height: 100%;
  font-family: Verdana,Arial,sans-serif;
  padding-right: 0 !important;
  overscroll-behavior-y: contain;
}

.navbar-fixed-left {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  margin: 0;
  overflow-x: hidden;
  overflow-y: auto;
  z-index: 1000;
  border-radius: 0;
  border: none;
  white-space: nowrap;
  text-overflow: ellipsis;
  box-shadow: 0 2px 4px 0 rgba(0,0,0,.32), 0 2px 10px 0 rgba(0,0,0,.24);
  transition: width .4s;
}
#main-container {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  padding: 0 !important;
}

@media (min-width: 992px) {
  .navbar-fixed-left {
    width: 240px;
  }

  #main-container {
    width: calc(100% - 240px);
    padding: 0 15px !important;
  }

  .modal-lg {
    width: 90vw;
  }
}

#navbar {
  padding: 0;
}
.navbar-nav {
  margin: 0 !important;
}
.navbar-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
}

.navbar-fixed-left ul, .navbar-fixed-left li {
  width: 100%;
}
.navbar-nav > .divider {
  border-top: 1px solid #000;
  border-bottom: 1px solid #888;
}
.navbar-nav > .active {
  background-color: #080808;
}
.navbar-nav > li > a {
  padding: 10px 15px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.navbar-nav > li > a > .glyphicon {
  padding-right: 15px;
}

.nav-tabs > li.active > a, .nav-tabs > li.active > a:focus {
  color: orangered;
  background-color: #f5f5f5;
}
@media (max-width: 767px) {
  .nav-tabs > li > a {
    font-size: 2rem;
    border: 1px solid transparent;
  }
}

.tab-pane legend {
  background-color: #f5f5f5;
}

.no-padding {
  padding: 0 !important;
}
.ofa {
  overflow: auto;
}
.h2align {
  margin-top: 20px;
}
.col_action {
  text-align: center;
  padding: 8px 0 !important;
  min-width: 52px;
  white-space: nowrap;
}

.bg-alt {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 0;
}
@media (max-width: 991px) {
  .bg-alt > a {
    padding: 3px 10px !important;
  }
  .bg-alt:nth-of-type(2n+1) {
    background-color: #f9f9f9;
  }
}
@media (min-width: 992px) {
  .col-sm-6.bg-alt:nth-of-type(4n+1), .col-sm-6.bg-alt:nth-of-type(4n+4) {
    background-color: #f9f9f9;
  }
  .bg-alt:not(.col-sm-6):nth-of-type(2n+1) {
    background-color: #f9f9f9;
  }
}
.bg-alt > label {
  display: inline;
}

.affiche_val {
  min-height: 34px;
  max-height: 102px;
  overflow: auto;
  padding-top: 14px;
}
.affiche_val > div {
  font-weight: bold;
  background-color: #f9f9f9;
  border-radius: 4px;
}

footer {
  margin-top: 1em;
  margin-bottom: 0 !important;
}

.mce-tinymce {
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-bottom: 10px;
}

.ddnotespjs {
  display: none !important;
}

#divCamera {
  border: 1px solid #000;
  overflow: hidden;
}

.widget {
  margin-bottom: 15px;
}
.widget > div {
  min-height: 200px;
  max-height: 500px;
  margin: 8px 0;
  border: 2px solid #aaa;
  border-radius: 8px;
  resize: vertical;
  
}
.widget .panel-title {
  padding-top: 6px;
  padding-bottom: 4px;
  background-color: #f5f5f5;
}

.ventilateur {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}
.ventilateur > img {
  max-width: 60%;
  max-height: 100%;
}

/* Menus ================================================================== */

.menubig {
  font-size: 2em;
  z-index: 0;
  text-transform: uppercase;
  transition: all .3s;
  overflow: hidden;
  text-overflow: ellipsis;
}
.menubig:hover {
  z-index: 499;
  transform: scale(1.03);
  box-shadow: 3px 3px 5px #000;
}

.dropdown-menu {
  max-width: 80vw;
  max-height: 60vh;
  overflow: auto;
}

/* Formulaires ============================================================ */

.form_fname {
  overflow: hidden;
  white-space: nowrap;
  height: 34px;
  border-bottom: 1px solid #ccc;
  padding-top: 14px;
}

.form_bloc {
  min-height: 34px;
  max-height: 100vh;
  overflow: auto;
  border: 1px solid #ccc;
  border-radius: 4px;
}
.form_bloc div.checkbox {
  padding-right: 0;
  margin: 2px 0;
}

.multiall-table td {
  padding: 1px 8px !important;
  vertical-align: middle !important;
  cursor: pointer;
}

.modal-dialog {
  transform : none !important;
}
.modal-footer .btn + .btn {
  margin-left: 0 !important;
}

.tooltip {
  z-index: 1049 !important;
}

.btn {
  overflow: hidden;
}

@media (max-width: 767px) {
  .table-responsive {
    padding: 0;
    overflow-y: auto;
  }
}

.btn-primary {
	background-color: #444;
	border-color: #666;
}
.btn-primary:hover, .btn-primary:active {
  background-color: #888;
  border-color: #666;
}

.modal {
  overflow: auto !important;
}