#content {
  margin: 40px;
}

#debug {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px 20px 0 20px;
  background: #EEE;
  z-index: 1;
  opacity: 0.8;
}
#debug p.call {
  background: yellowgreen;
  color: #9400d3;
}
#debug p.result {
  background: blue;
}
#debug p {
  margin-bottom: 1px;
  color: white;
  word-break: break-all;
  max-height: 200px;
  overflow-x: auto;
}
#debug .minify {
  float: right;
  background: #000;
  width: 30px;
  text-align: center;
  color: white;
  font-weight: bold;
  cursor: pointer;
}
#debug.mini {
  height: 60px;
}
#debug.maxi {
  height: auto;
}

@font-face {
  font-family: 'Quicksand';
  src: url('./fonts/Quicksand/quicksand-v8-latin-regular.woff2') format('woff2'), url('./fonts/Quicksand/quicksand-v8-latin-regular.woff') format('woff'), url('./fonts/Quicksand/quicksand-v8-latin-regular.tff') format('truetype');
}

@font-face {
  font-family: 'OpenSans';
  src: url('./fonts/OpenSans/OpenSans-Regular.woff2') format('woff2'), url('./fonts/OpenSans/OpenSans-Regular.woff') format('woff'), url('./fonts/OpenSans/OpenSans-Regular.tff') format('truetype');
}

body {
  font-family: 'Quicksand';
  font-weight: 400;
  font-size: 1rem;
  color: #000;
  background-color: #f4f4f4;
}

form {
  margin: 0;
}

p {
  margin: 0;
}

a {
  cursor: pointer;
}
a, a:hover, a:focus {
  text-decoration: none;
}

footer {
  margin-top: 100px;
}

.help-block {
  margin: 5px 0 !important;
  text-align: left;
}

/* Surcharge Alpaca */

.btn-green {
  background-color: yellowgreen !important;
}

.btn-yellow {
  background-color: yellow !important;
}

.btn-blue {
  background-color: dodgerblue !important;
}

.btn-orange {
  background-color: orange !important;
}

.chart {
  border: solid 1px darkgrey;
  margin: 40px 0 0 0;
}

.alpaca-field-object {
  padding: 0px !important;
}

/*.alpaca-control-label {
  background: #000;
  padding: 5px 10px;
  margin: 10px 0 10px 0;
  color: #fff;
}*/

.alpaca-control-label {
  text-transform: uppercase;
  margin-bottom: 15px;
  font-weight: bold;
}

.alpaca-icon-required {
  font-family: 'OpenSans';
  font-weight: inherit;
}
.alpaca-icon-required::before{
  content: '*';
}

.alpaca-form-buttons-container {
  text-align: left;
}

.alpaca-control.radio {
  margin-left: 0;
}


/* Surcharge Bootstrap */

fieldset.initial {
  border: 2px groove;
  padding: 5px;
  border-radius: 5px;
}

fieldset.initial legend {
  float: none;
  width: initial;
  padding: 0 5px;
  font-size: initial;
}


/* surcharge datatable  */

.dataTables_wrapper .dataTables_filter input {
  background-color: #fff;
  border-color: #dee2e6;
}

table.dataTable.table-striped>tbody>tr.select-product.odd:hover>* {
  box-shadow: none;
}


/* surcharge datepicker */

.datepicker td {
  padding: 3px 5px;
}

/* Général */

.fancy-content {
  display: none;
}

.no-padding {
  padding: 0 !important;
}

.black-btn {
  background-color: #000;
}

.dropdown-toggle {
	cursor: pointer;
}

a.delete,
a.delete:hover {
  color: red;
}

.break-word {
  word-wrap: break-word;
}

.hidden {
  display: none;
}

.red {
  color: #c1222f;
}

.vertically-center-img {
	height: 100%;
	display: inline-block;
	vertical-align: middle;
}

.copy-to-input-url {
  cursor: pointer;
}

/*.logout {
  padding: 2px 2px 4px 2px;
  border-radius: 5px;
}

.logout:hover {
  background-color: #0383cb;
}*/


/* Help */

.help-section {
  margin-bottom: 50px;
}

.help-section ul {
  list-style: none;
  padding: 0;
}

.box {
  background-color: white;
  padding: 20px;
  text-align: left;
  border-radius: 5px;
  margin: 20px 0;
}
.box.error {
  border: solid 3px red;
}
.box.success {
  border: solid 3px green;
}
.box.pending {
  border: solid 3px orange;
}
.box.info {
  border: solid 3px blue;
}


/* Login */

body.auth {
  /*background: url("https://source.unsplash.com/1600x900/?technology,photo");*/
  /*background-size: cover;*/
  padding: 0;
  margin: 0;
  height: 100vh;
}

body.auth #link {
  /*bottom: 0;*/
  padding: 0 50px 30px 50px;
  display: inline-block;
  /*position: absolute;*/
  margin-top: 0;
}

body.auth #link p.link {
  text-transform: none;
  font-size: 14px;  
}

.auth .container-fluid, .auth .container-fluid .row, .auth .container-fluid .row > * {
  /*padding: 0;*/
  height: 100%;
}

/*.logo-auth {
  text-align: center;
  margin-bottom: 50px;
}*/

.auth-img-background {
  background: url('../img/auth_background.png') no-repeat center center;
  background-size: cover;
}

.auth-form {
  text-align: center;
  background-color: #f4f4f4;
}

#auth_logo {
  width: 220px;
  margin: 100px 0 50px 0;
}

.auth-form form {
  padding: 30px;
}

.auth-form .alpaca-container-item:not(:first-child) {
  margin-top: 30px;
}

.auth-btn {
  width: 100%;
  background-color: #c1222f;
  color: #fff;
  font-size: 2rem;
  text-transform: uppercase;
  border: none;
  font-weight: bold;
  padding: 5px;
  cursor: pointer;
  border-radius: 0;
  margin-top: 30px;
}
.auth-btn:hover {
  color: #fff;
  background-color: #870000;
}


/* Navbar */

.navbar {
  background-color: #242322;
  color: #fff;
  padding-bottom: 0;
}

.navbar .navbar-brand {
  color: #fff;
}

#side_nav .menu-item:last-child {
  border-bottom: solid 1px #111;
}

.side-nav {
  height: 100%;
  position: fixed;
  top: 0;
  left: -1000px;
  width: 270px;
  background: #222;
  overflow-x: hidden;
  transition: 0.5s;
  z-index: 2000;
}
.side-nav.visible {
  left: 0;
}

.side-nav a:not(.navbar-brand) {
  padding: 5px;
  display: block;
  color: #fff;
}

.side-nav a.menu-item.current {
  background-color: #c1222f;
}

.side-nav .navbar-header {
  background-color: #fff;
  text-align: center;
  padding: 10px 0;
}

.side-nav a.menu-subitem {
  margin-left: 30px;
  border-left: 1px solid #fff;
  padding: 0 0 0 7px;
  text-transform: uppercase;
}
.side-nav a.menu-subitem:not(.last) {
  margin-bottom: 10px;
}
.side-nav a.menu-subitem.last {
  margin-bottom: 20px;
}

.side-nav-overlay {
  position: fixed;
  top: 0;
  /*right: 0;*/
  bottom: 0;
  left: 0;
  opacity: 0;
  transition: 0.5s;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
}
.side-nav-overlay.visible {
  opacity: 1;
  right: 0;
}

.navbar-logo {
  position: absolute;
  bottom: 30px;
  left: 70px;
}


/* COMMON */

p.success {
  background: url('../img/tick.png') no-repeat;
  font-weight: bold;
  color: green;
  padding: 0 0 0 25px;
  text-align: left;
}

p.error,
p.delete {
  background: url('../img/cross.png') no-repeat left center;
  font-weight: bold;
  color: red;
  padding: 0 0 0 25px;
  text-align: left;
}

p.pending {
  background: url('../img/hourglass.png') no-repeat;
  font-weight: bold;
  color: orange;
  padding: 0 0 0 25px;
  text-align: left;
}

p.info {
  background: url('../img/information.png') no-repeat;
  font-weight: bold;
  color: blue;
  padding: 0 0 0 25px;
  text-align: left;
}


p.question {
  font-weight: bold;
  color: blue;
  padding: 0 0 30px 25px;
}

.green {
  color: green;
}

textarea.disabled {
  resize: none;
  width: 100%;
}

.hack-datatables {
  visibility:hidden;
  height:1px;
  overflow:hidden;
}

.select-document {
  cursor: pointer;
}
.select-document:hover td {
  background-color: #c7c7c7;
}

.absolute-container {
  position: relative;
}

.block-shadow {
  box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.75);
  -webkit-box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.75);
  -moz-box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.75);
}

.loading {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  top: 0;
  left: 0;
  text-align: center;
}

.loading img {
  position: absolute;
  top: calc(50% - 25px);
  width: 50px;
  -webkit-animation:spin 2s linear infinite;
  -moz-animation:spin 2s linear infinite;
  animation:spin 2s linear infinite;
}

@-moz-keyframes spin { 
  100% { -moz-transform: rotate(360deg); } 
}
@-webkit-keyframes spin { 
  100% { -webkit-transform: rotate(360deg); } 
}
@keyframes spin { 
  100% { 
    -webkit-transform: rotate(360deg); 
    transform:rotate(360deg); 
  } 
}

.big-fancy {
  width: 90%;
  height: 100%;
  overflow-y: scroll;
}

.btn-icon {
  border: 1px solid #dee2e6;
}
.btn-icon:hover {
  border: 1px solid #dee2e6;
  background-color: #aaa;
}

#back_to_top {
  position: fixed;
  bottom: 30px;
  right: 20px;
  background: url(../img/arrow_down.png) no-repeat center center #fff;
  background-size: 17px 10px;
  opacity: .5;
  transform: rotate(180deg);
  border: 1px solid #777;
  width: 35px;
  height: 35px;
}
#back_to_top:hover {
  opacity: 1;
}


/* DASHBOARD */

.table-striped>tbody>tr>.row-tool {
  font-weight: bold;
  background-color: #6c757d;
  color: #fff;
}

tbody tr td:first-of-type:not(.row-tool) {
/*  padding-left: 20px;*/
}

#users_rights_fixed {
  position: fixed;
  top: 0;
}


/* RESPONSIVE */

@media (max-width: 1200px) {
  
}

@media (max-width: 991px) {
  
}

@media (max-width: 767px) {
  .navbar-header {
    float: left;
  }

  .side-nav .navbar-header {
    float: none;
  }

  .navbar-nav {
    float: right;
    padding: 0;
  }

  .navbar-nav .open .dropdown-menu {
    position: absolute;
    top: 25px;
    left: -215px;
    background-color: #fff;
    -webkit-background-clip: padding-box;
    background-clip: padding-box;
    border: 1px solid #ccc;
    border: 1px solid rgba(0,0,0,.15);
    border-radius: 4px;
    -webkit-box-shadow: 0 6px 12px rgba(0,0,0,.175);
    box-shadow: 0 6px 12px rgba(0,0,0,.175);
  }
}

@media (min-width: 768px) {
  .navbar-toggle {
    display: initial;
  }

  .side-nav .navbar-header {
    float: none;
  }
}