@bg: #30537f;
@bg-content: lighten(hsl(218, 47%, 87%), 12%);
@darkbms: #2D547F;
@greenbms: #abef16;
@darkgrayColor: #29363d;
@goldColor: #ffc107;
@lightbms: #cdd9ed;
@darkbmsOpa: rgba(45, 84, 127, 0.8);
@mediumbms: #7f9bc1;
@bordeauxColor: #903530;
@defPad: 2.5rem;
@heightTop: 70px;
@widthLeft: 190px;

/*TODO get a license*/
.webix_message_area {display: none !important;}

@font-face {
  font-family: MyriadFont;
  src: url(../font/MyriadPro-Light.otf);
}
@font-face {
  font-family: MyriadFont;
  src: url(../font/MyriadPro-Bold.otf);
  font-weight: bold;
}

@import "badges";
@import "header";
@import "mob-elements";
@import "mob-tables";
@import "forms";
@import "map-geoloc";
@import "spin";
@import "messages-bags";
@import "parameters";
@import "table-forms";
@import "tables";
@import "tabs";
@import "charts";
@import "tooltip";
@import "icons";
@import "nav-left";
@import "content";
@import "nav-bottom";
@import "buttons";
@import "accordion";
@import "login";
@import "dashboard";
@import "scheduler";
@import "thumbnails";
@import "signatures";
@import "ficheTravail";
@import "rotation";
@import "blink";
@import "angucomplete";
@import "googleMaps";
@import "loadingBar";
@import "scrollbar";
@import "dashboard-tasks";
@import "badgeage-interface";
@import "inputs";
@import "kanban";
@import "vue-good-table";

html {
  height: 100%
}

body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: MyriadFont;
  background-color: @bg;
  line-height: 1.3rem;
}

#badgeage {
  background-color: @darkbms;
}

a {
  color: @darkbms;
}

.blendModeDifference {
  mix-blend-mode: difference;
}

.mobile {
  display: none;
}

.mobile-inline {
  display: none;
}

.main-container {
  height: 100%;
}

.main-content-container {
  margin-left: @widthLeft;
}

.margin-left-0 {
  margin-left: 0px;
}

hr {
  height: 1px;
  background-color: blue;
}

.handHover {
  &:hover {
    cursor: pointer;
  }
}

.cursor-context-menu {
  &:hover {
    cursor: context-menu;
  }
}

.cursor-default {
  &:hover {
    cursor: default;
  }
}

.transition {
  animation: fadein 1600ms;
  -webkit-animation: fadein 1600ms;
}
@keyframes fadein {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.transition-notif {
  animation: fadein-notif 1000ms;
  -webkit-animation: fadein 1000ms;
}
@keyframes fadein-notif {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.bordered-dark {
  border: 1px solid @darkbms;
}

.bordered-light {
  border: 1px solid @lightbms;
}
.bordered-warning {
  border: 1px solid @warningColor;
}

.bordered-radius-4 {border-radius: 4px;}
.bordered-radius-5 {border-radius: 5px;}

.bordered-bottom-dark {
  border-bottom: 1px solid @darkbms;
}

.bordered-bottom-lightbms {
  border-bottom: 1px solid @lightbms;
}

.bordered-left-darkbms {
  border-left: 3px solid @darkbms;
}

.basic-box-shadow {
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
}

.pic-mini {
  -webkit-border-radius: 20px;
  -moz-border-radius: 20px;
  border-radius: 20px;
  max-height: 70px;
  max-width: 70px;
}

.pic-mini-ico {
  -webkit-border-radius: 20px;
  -moz-border-radius: 20px;
  border-radius: 20px;
  font-size: 50px;
}

.v-align-bottom {
  vertical-align: bottom;
}

.v-align-top-important {
  vertical-align: top !important;
}

.v-align-top {
  vertical-align: top;
}

.v-align-middle {
  vertical-align: middle;
}

.v-align-children-initial {
  > * {
    vertical-align: initial;
  }
}

.v-align-children-middle {
  > * {
    vertical-align: middle;
  }
}

.v-align-sub {
  vertical-align: sub;
}

.v-align-sub {
  vertical-align: sub;
}

.p-relative {
  position: relative;
}

.p-absolute {
  position: absolute;
}

.maxWidth {
  max-width: 100%;
}

.min-width-40 {
  min-width: 40px;
}
.min-width-50 {
  min-width: 50px;
}
.min-width-75 {
  min-width: 75px;
}
.min-width-100 {
  min-width: 100px;
}
.min-width-150 {
  min-width: 150px;
}

.min-width-200 {
  min-width: 200px;
}
.min-width-500 {
  min-width: 500px;
}
.min-width-1000 {
  min-width: 1000px;
}

.max-width-50 {
  max-width: 50px;
}
.max-width-75 {
  max-width: 75px;
}
.max-width-100 {
  max-width: 100px;
}
.max-width-150 {
  max-width: 150px;
}

.max-width-200 {
  max-width: 200px;
}
.max-width-500 {
  max-width: 500px;
}
.max-width-1000 {
  max-width: 1000px;
}

.bigger-font-size-3 {
  font-size: 3rem;
}

.bigger-font-size-5 {
  font-size: 5rem;
}

.border-radius-top-8 {
  border-radius: 8px 8px 0 0;
}

.font-size-2rem {
  font-size: 2rem;
}

.font-size-1-6rem {
  font-size: 1.6rem;
}

.font-size-1-8rem {
  font-size: 1.8rem;
}

.font-size-x-large {font-size: x-large;}

.bigger-font-size-point5 {
  font-size: 1.5rem;
}

.smaller-font-size-point3 {
  font-size: 1.3rem;
}

.smaller-font-size-point1 {
  font-size: 1.1rem;
}

.smaller-font-size-point0 {
  font-size: 1.0rem;
}

.margin-auto {
  margin: 0 auto;
}

.min-width-two-cols {
  min-width: 300px;
}

.font-color-darkbms {
  color: @darkbms;
}

.font-color-mediumbms {
  color: @mediumbms;
}

.font-color-gold {
  color: gold;
}

.color-danger {
  color: @dangerColor;
}

.color-darkgray {color: @darkgrayColor;}

.color-darkgray-hover-lighten {
  color: @darkgrayColor;
  &:hover {
    color: lighten(@darkgrayColor, 15%);
  }
}
.color-gold {color: @goldColor;}

.color-gold-hover-lighten {
  color: @goldColor;
  &:hover {
    color: lighten(@goldColor, 15%);
  }
}

.color-lightgray {
  color: lightgray;
}

.color-white {
  color: white;
}

.color-danger-light {
  color: lighten(@dangerColor, 15%);
}

.color-warning {
  color: @warningColor;
}

.color-lightgreen {
  color: lightseagreen;
}

.min-height-textfield {
  min-height: 100px;
  padding: 8px;
  line-height: initial;
}

.line-height-init {
  line-height: initial;
}

.line-height-2 {
  line-height: 2rem;
}

.padding-two {
  padding: 2px;
}

.padding-four {
  padding: 4px;
}
.padding-four-two {
  padding: 4px 2px;
}

.overflow-auto {
  overflow: auto;
}

.overflow-x-scroll {
  overflow-x: auto;
}

.h-70 {
  height: 70px;
}

.width160 {
  width: 160px;
}

.width70percents {
  width: 70%;
}

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

.w48 {
  width: 48%;
}

.w58 {
  width: 58%;
}

.text-decoration-none {
  text-decoration: none;
}

.padding-five {
  padding: 5px;
}

.padding-three {
  padding: 3px;
}

.placeholder-only-mobile input::-webkit-input-placeholder {
  color: white;
}
.placeholder-only-mobile input::-ms-input-placeholder {
  color: white;
}
.placeholder-only-mobile input::-moz-placeholder {
  color: white;
}

.right-zero {
  right: 0px;
}

.margin-top-0 {
  margin-top: 0px;
}

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

.nowrap {
  white-space: nowrap;
}

.margin-right-4 {
  margin-right: 4px;
}

.margin-4 {
  margin: 4px;
}

.height-150 {
  height: 150px;
}

.max-height-140 {
  max-height: 140px;
}

.max-height-800 {
  max-height: 800px;
}

.max-width-150 {
  max-width: 150px;
}

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

.font-weight-lighter {
  font-weight: lighter;
}

.font-family-inherit {
  font-family: inherit;
}

.height-90percent {height: 90%;}
.height-100percent {height: 100%;}

.bg-darkbms {
  background-color: @darkbms;
}

.bg-mediumbms {
  background-color: @mediumbms;
}

.bg-lightbms {
  background-color: @lightbms;
}

.bg-white {
  background-color: white;
}

.bg-lightbms-light-10 {
  background-color: lighten(@lightbms, 10%);
}

.radius-tops-4 {
  border-radius: 4px 4px 0px 0px;
}

.z-index-2 {
  z-index: 2;
}

.display-none {
  display: none;
}

.absolute-bottom-4 {
  bottom: 4px;
}

.vue-notification {
  font-size: 14px !important;
  & .notification-title {
    margin-bottom: 10px;
  }
}

.overflowVisible {overflow: visible !important;}
/* Media queries */

@media screen and (max-width: 768px) {
  .mobile {
    display: block;
  }

  .mobile-inline {
    display: inline;
  }

  .mobile-table {
    display: table;
  }

  .desktop {
    display: none;
  }

  .main-content-container {
    margin-left: 0;
    padding-bottom: 50px;
  }

  .placeholder-only-mobile input::-webkit-input-placeholder {
    color: initial;
  }
  .placeholder-only-mobile input::-ms-input-placeholder {
    color: initial;
  }
  .placeholder-only-mobile input::-moz-placeholder {
    color: initial;
  }
}
//vue select
.vs__dropdown-menu {
  z-index: 99999999 !important;
}

.v--modal-overlay .v--modal-box {
  overflow: initial !important;
}

//v-date-picker
.popover-container input {
  width: 100%;
}

//vue-date-range-helper
.dateRangeHelper {
  .row {
    display: block;
    .col-md-6 {
      display: inline-block;
      width: 48%;
    }
    .col-12 {
      display: block;
      margin-top: 8px;
      text-align: center;
    }
  }
}

#main-container .content {
  min-height: 100vh;
}

#dashboard {
  @media(max-width: 768px) {
    display: flex;
    justify-content: center;
  }
}
#up-navigation {
  overflow: hidden;
  .pam {
    position: relative;
    right: -30px;
    bottom: -13px;
  }
}
.popover-container, .clearButton {
  display: inline;
}
.date-picker-wrapper {
  position: relative;
}
.date-picker-wrapper input{
  height: 100%;
  border: 1px solid rgba(60,60,60,.26);
  border-radius: 4px;
}
.date-picker-wrapper .clearButton {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
}


//pour pouvoir gérer des tableaux responsive à la bootstrap pour l'affichage sur mobile/tablette
//il faut faire une div avec la classe table-responsive et ajouter un tableau qui a la classe tablet-table pour ne pas avoir le comportement par défaut de knackcss
//de base le tableau n'a pas de border, si on ajoute la classe actions à un tr, il y a un bord en dessous
//il faut également ajouter un @touchstart.stop="()=>{}" au tableau pour bloquer la propagation de l'event et ne pas avoir la sidebar qui s'ouvre quand on scroll dans le tableau

.table-responsive {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  -ms-overflow-style: -ms-autohiding-scrollbar;
}
.table-responsive .tablet-table {
  table-layout: auto;
  max-width: 100%;
  border:none;
 }
.table-responsive .tablet-table thead {
  display: table-header-group;
}
.tablet-table tr.actions {
  border-bottom: 1px solid @darkbms;
}
.tablet-table tr.actions td {
  text-align: left;
}
.table-responsive .tablet-table th, .table-responsive .tablet-table td {
  padding: 15px;
  display: table-cell;
  max-width:100%;
  white-space:nowrap;
  border:none;
}

//fix v-select

.table-responsive .tablet-table .dropdown-menu {
  position: relative!important;
  z-index: 9999999!important;
}

.dropdown-menu {
  z-index: 9999999!important;
}

.regex-input:invalid {
  border: 1px solid @dangerColor;
  margin-bottom: 35px;
}

.invalid-msg {
  position: absolute;
  left: 0;
  bottom: 0;
  color: @dangerColor;
  height: 0;
  opacity: 0;
  overflow: hidden;
  transition: opacity 0.5s;
}

.regex-input:invalid + .invalid-msg {
  height: auto;
  opacity: 1;
}
