#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, 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 */

.container {
  max-width: 90%;
}

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

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

.form-label {
  font-weight: bold;
}


/* 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: #e57f00;
  color: #fff;
  padding-bottom: 0;
}

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

.navbar-nav i {
  color: #fff;
  font-size: 24px;
}


/* 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-product,
.select-product-for-copy {
  cursor: pointer;
}
.select-product:hover td,
.select-product-for-copy:hover td {
  background-color: #c7c7c7;
}

.block-header {
  position: absolute;
  top: 0;
  width: 100%;
  padding: 3px 5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.block-header .info-icons img {
  cursor: help;
}
.block-header .info-icons img:not(:first-of-type) {
  margin-left: 5px;
}

.block-header .btn {
  padding: 4px 6px;
}

.absolute-container {
  position: relative;
}

.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;
}

.switcher-container {
  display: flex;
  gap: 10px;
  align-items: center;
}

.switcher-wrapper,
.switcher-background {
  width: 56px;
/*  height: 32px;*/
  cursor: pointer;
}
.switcher-container.small-switcher .switcher-wrapper,
.switcher-container.small-switcher .switcher-background {
  width: 44px;
}

.switcher-background {
  border-radius: 100px;
}

.switcher-background.inactive {
  background-color: #777;
}

.switcher-background.active {
  background-color: #24bd4d;
}

.switcher-circle {
  width: 32px;
  height: 32px;
  background-color: #fff;
  border-radius: 100px;
  position: relative;
}
.switcher-container.small-switcher .switcher-circle {
  width: 24px;
  height: 24px;
}

.switcher-background.free .switcher-circle {
  border: 1px solid #777;
}

.switcher-background.inactive .switcher-circle {
  border: 1px solid #777;
  transition: 0.3s;
  left: 0;
}

.switcher-background.active .switcher-circle {
  border: 1px solid #24bd4d;
  left: 24px;
  transition: 0.3s;
}

.tab-pane.active {
  background-color: #fff;
  padding: .5rem 1rem 1.5rem;
  border-left: 1px solid var(--bs-border-color);
  border-right: 1px solid var(--bs-border-color);
  border-bottom: 1px solid var(--bs-border-color);
  border-bottom-left-radius: var(--bs-border-radius);
  border-bottom-right-radius: var(--bs-border-radius);
}

.form-control-disabled {
    background-color: var(--bs-secondary-bg);
    opacity: 1;
}


/* DASHBOARD */

.logo-supplier {
  max-height: 20px;
  max-width: 100px;
}


/* 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;
  }
}