div.clear, br.clear {
  clear: both;
  font-size: 0.01px;
  height: 0.01px;
}

#global {
  min-height: calc(100vh - 28px);
}

.login {
  padding-top: 50px;
}

.login h1 {
  border-bottom: 1px solid #eee;
  font-size: 30px;
  text-align: center;
}

h2 {
  margin-top: 0;
}

p.legend {
  font-style: italic;
}

div.container.ssmenu {
  padding-left: 0;
}

div.container.ssmenu .action {
  padding-left: 0;
  border-right: 1px solid #eee;
}

div.container.ssmenu .action form {
  display: inline;
}

div.container.ssmenu .shortcut {
  text-align: right;
}

div.container.ssmenu div.shortcut label,
div.container.ssmenu div.shortcut input {
  margin-right: 5px;
}

table .btn.btn-sm {
  min-width: 80px;
}
table .btn.btn-sm, .btn-toolbar .btn.btn-sm {
  margin: 0 2px !important;
}
table form {
  display: inline;
}

table th {
  position: relative;
}

table th a.sortable, table th a.asc, table th a.desc {
  padding-right: 20px;
  /*color: black;*/
  text-decoration: none;
  display: inline-block;
}
body.bootstrap table th a {
  color: #212529;
}

table th a.sortable:after {
  top: 6px;
  right: 6px;
  opacity: 0.2;
  content: "\f0dc";
  position: absolute;
  font-family: 'Font Awesome 5 Free';
}

table th a.asc:after {
  top: 6px;
  right: 6px;
  opacity: 0.5;
  content: "\f0dd";
  position: absolute;
  font-family: 'Font Awesome 5 Free';
}

table th a.desc:after {
  top: 6px;
  right: 6px;
  opacity: 0.5;
  content: "\f0de";
  position: absolute;
  font-family: 'Font Awesome 5 Free';
}

footer {
  text-align: center;
  font-size: 11px;
  color: #bdbdbd;
  padding: 5px;
}
body.bootstrap footer {
  background-color: #fff;
  border-top: 1px solid rgba(0,0,0,.1);
}
body.bootstrap-dark footer {
  background-color: #191d21;
  border-top: 1px solid rgba(255,255,255,.1);
}

footer p {
  margin: 0 !important;
  padding: 0 !important;;
}
@media (max-width: 768px) {
  footer {
    position: relative !important;
    z-index: inherit !important;
  }
}

.col-sm-3 button.btn.btn-primary {
  width: 100%;
}

.well-new, div.comments .well:first-child {
  margin-top: 0;
}

.well-new label {
  padding-top: 0 !important;
}

.well-new textarea, .well-new select {
  margin-bottom: 3px;
}

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

.pagination {
  margin: 5px 0 !important;
}

form label.control-label.required:before {
  content: "\2a"; /* étoile */
  color: red;
  padding-right: 2px;
}

div.tab-panel {
  margin-bottom: 20px;
  background-color: #fff;
  border: 1px solid #ddd !important;
  border-radius: 4px;
  padding: 15px;
}

div.tab-panel .form-group label.col-sm-3, div.tab-panel .form-group span.col-sm-3 {
  margin-bottom: 5px;
}

form.form-search .form-control {
  margin-right: 5px;
}
.form-control {
  padding: 6px;
}

.tab-panel form.form-search {
  margin-bottom: 5px;
}

ul.pagination.pagination-sm {
  float: left;
}

div.pagination.pagination-sm.pagination-result {
  vertical-align: top;
  float: right;
  clear: right;
}

div.pagination.pagination-sm.pagination-result span {
  padding: 5px 10px;
  font-size: 12px;
  display: inline-block;
  border: 1px solid #ddd;
  border-radius: 3px;
}

th {
  position: relative !important;
}

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

hr {
  margin: 10px 0;
  clear: both;
}

.form-group.panel-group .panel-title {
  font-size: 14px;
}
p.effect {
  margin: 0;
}

.well form .col-sm-6 img {
  max-width: 100%;
}
.well form .col-sm-6 .form-group, .form-group .d-flex .form-group {
  margin-bottom: 0;
}
.form-group .d-flex>div {
  flex: 1;
}

select[readonly] {
  pointer-events: none;
  touch-action: none;
}

table td span.help-block {
  margin-bottom: 0;
}
table td span.help-block .list-unstyled {
  margin-bottom: 0;
}

.table-sm .btn.btn-sm {
  padding: 1px 5px;
  font-size: 0.75rem;
}
table.table.table-bordered.table-striped.table-condensed.table-sm {
  margin-bottom: 0;
}
/* On triche pour que les colonnes des boutons soit le plus petite possible */
table.table.table-sm td:last-child {
  width: 10px;
}

/*https://bootstrapious.com/tutorial/sidebar/index3.html*/
/* ---------------------------------------------------
    SIDEBAR STYLE
----------------------------------------------------- */

#sidebar {
  margin-top: 40px;
  width: 80vw;
  position: fixed;
  top: 0;
  left: -80vw;
  height: calc(100vh - 40px);
  overflow-y: auto;
  z-index: 999;
  color: #fff;
  transition: all 0.3s;
  box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
}
@media (min-width: 768px) {
  #sidebar {
    left: 0;
  }
  #dismiss {
    display: none;
  }
}

#sidebar.active {
  left: 0;
}

.overlay {
  display: none;
  position: fixed;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  z-index: 998;
  opacity: 0;
  transition: all 0.5s ease-in-out;
}
.overlay.active {
  display: block;
  opacity: 1;
}

.navbar-nav .dropdown-menu {
  position: absolute !important;
}
a.navbar-brand {
  padding-right: 15px;
  padding-left: 15px;
  flex: 0.5 !important;
  display: inline-flex !important;;
  align-items: center;
}
a.navbar-brand .fas {
  padding-right: 5px;
}
a.navbar-brand img {
  max-height: calc(40px - 0.625rem);
}
ul.navbar-nav img {
  max-height: calc(40px - 1rem);
}

#main {
  padding-top: 40px;
  padding-bottom: 0;
  margin-bottom: 7px;
}
#main .alert {
  margin-bottom: 0.5rem;
  margin-top: 1rem;
}
#main .alert+.alert {
  margin-top: 0.5rem;
}

@media (min-width: 768px) {
  #main {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  a.navbar-brand {
    -ms-flex: 0 0 16.666667%;
    flex: 0 0 16.666667%;
    max-width: 16.666667%;
  }
}

.help-block {
  display: block;
  margin-top: 5px;
  margin-bottom: 10px;
  color: #737373;
}
.form-group .help-block {
  margin-bottom: 0 !important;
}
div.form-group.has-error .help-block {
  color: #dc3545 !important;
}
div.form-group.has-error .help-block ul.list-unstyled {
  margin-bottom: 0;
}

.well {
  min-height: 20px;
  padding: 19px;
  margin-top: 10px;
  margin-bottom: 10px;
  background-color: rgba(0,0,0,.03);
  border: 1px solid rgba(0,0,0,.125);
  border-radius: .25rem;
}
.well .form-group label, .table-filter .form-group label, .modal-body label.control-label, .card-body label.control-label {
  margin-bottom: 0;
}
.well .col-sm-12 .form-group, .bootstrap-dark .form-group, .bootstrap .form-group {
  margin-bottom: .5rem !important;
}

div.bootstrap-select .btn-light {
  background-color: #fff;
  border: 1px solid #ced4da;
  color: #495057;
}
.bootstrap-select .dropdown-menu {
  max-width: 100%;
}
.bootstrap-select .dropdown-menu li a {
  padding: .25rem 1rem .25rem 1rem;
}
.bootstrap-select.show-tick .dropdown-menu li a {
  padding: .25rem 1rem .25rem 2rem;
}
.bootstrap-select.show-tick .dropdown-menu .selected span.check-mark {
  right: inherit;
  left: 15px;
}
/**swith checkbox**/
/* The switch - the box around the slider */
.switch {
  position: relative;
  display: inline-block !important;
  width: 60px !important;
  height: 34px !important;
  margin: 0;
  background-color: transparent !important;
}
/* Hide default HTML checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.switch input:disabled {
  display: inherit !important;
}
/* The slider */
.switch .slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}
.switch .slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}
.switch input:checked + .slider {
  background-color: #28a745;
}
.switch input:focus + .slider {
  box-shadow: 0 0 1px #28a745;
}
.switch input:checked + .slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}
.switch input[readonly] + .slider {
  pointer-events: none;
  opacity: 0.5;
}
/* Rounded sliders */
.switch .slider.round {
  border-radius: 34px;
}
.switch .slider.round:before {
  border-radius: 50%;
}
.switch.form-control {
  border: 0;
}
.switch-group .control-label {
  margin-right: 6px;
}

.flex-center {
  display: flex;
  align-items: center;
}
.flexbox {
  display: -webkit-box;      /* OLD - iOS 6-, Safari 3.1-6 */
  display: -moz-box;         /* OLD - Firefox 19- (buggy but mostly works) */
  display: -ms-flexbox;      /* TWEENER - IE 10 */
  display: -webkit-flex;     /* NEW - Chrome */
  display: flex;             /* NEW, Spec - Opera 12.1, Firefox 20+ */
}
.form-collection .btn + .btn, .btn-toolbar .btn + .btn {
  margin-left: 2px;
}
form .alert.alert-danger {
  margin-top: 0 !important;
}
form .alert ul.list-unstyled {
  margin-bottom: 0 !important;
}
.card-header .btn.px-3:before {
  content: "\f0d7";
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
}
.card-header .btn.px-3.collapsed:before {
  content: "\f0da";
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
}
/*.card-body.p-3 {*/
/*  padding: 1rem 1rem 0 1rem !important;*/
/*}*/

input[type="checkbox"]:disabled {
  visibility: hidden;
  position: relative;
  display: flex;
}
input[type="checkbox"]:disabled:checked::before {
  visibility: visible;
  position: absolute;
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  content: "\f058";
}

.cursor-pointer {
  cursor: pointer;
}
body.bootstrap .fa-sun {
  display: none;
}
body.bootstrap-dark .fa-moon {
  display: none;
}

body.bootstrap-dark .bootstrap-select .btn-light {
  color: #ced4da;
  background-color: #000;
  border: 1px solid #6c757d;
}

body.bootstrap-dark .note-editor.note-frame .note-editing-area .note-editable {
  background-color: transparent;
  color: #d3d3d3 !important;
}

body.bootstrap-dark .note-toolbar .note-btn, body.bootstrap-dark .note-toolbar .note-btn:focus, body.bootstrap-dark .note-toolbar .note-btn:active {
  background-color: #2e353e !important;
  color: #9097a0 !important;
  border-color: #2e353e !important;
}

body.bootstrap-dark .show > .btn-light.dropdown-toggle {
  background-color: #242830;
}

body.bootstrap-dark .note-toolbar .dropdown-menu .dropdown-item {
  color: #9097a0;
}

body.bootstrap-dark .note-toolbar .btn {
  color: #9097a0;
}
.bootstrap-dark .page-item.active .page-link {
  color: #ced4da;
  background-color: #007bff;
  border-color: #007bff;
}
.bootstrap-dark pre {
  color: inherit !important;
}

.modal .modal-dialog.fullscreen {
  width: 100%;
  max-width: none;
  height: 100%;
  margin: 0;
}
.modal .modal-dialog.fullscreen .modal-content {
  height: 100%;
  border: 0;
  border-radius: 0;
}

.gus-form-image .form-group {
  display: flex;
  align-items: center;
}
.gus-form-image .form-group label {
  text-align: right;
  margin-right: 10px;
  flex: 1;
}
.gus-form-image .form-group .form-control {
  width: inherit;
  flex: 2;
}
input[type=file].form-control {
  padding: 3px .75rem;
}

.bootstrap-dark .custom-file-label {
  background-color: #000;
  color: #dee2e6;
}
.bootstrap-dark .custom-file-label::after {
  background-color: #343a40;
  color: #dee2e6;
}
.bootstrap .custom-file-label::after {
  background-color: #e9ecef;
  color: #495057;
}