:root {
  --black: #000;
  --dark-grey: #161616;
  --medium-grey: #8d8d8d;
  --blue: #03369d;
  --white: #fff;
  --light-grey: #cccccc;
  --offline: #ad1b00;
  --online: #008805;
  --vlight-grey: #eff0f2;
  --error: #f05e5e;
}

html {
  font-size: 10px;
}

body {
  min-height: 100vh !important;
  font-size: 1.4rem;
  font-family: "Montserrat", Arial, Helvetica, sans-serif;
}

a {
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5 {
  line-height: 1.2;
}

i {
  font-family: FontAwesome;
}

li {
  list-style-type: none;
}

ul {
  padding: 0;
}

/* _________ LOGIN PAGE _________ */
#app {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.home {
  background-image: url("../pics/bkg-terberg-login.jpg");
  background-size: cover;
  background-repeat: no-repeat;
}

.logo-desk .logo {
  width: 400px;
}

.logo-mob .logo {
  display: none;
}

.card {
  border-radius: 1rem;
  border: none;
  box-shadow: 0 20px 80px 0 rgba(0, 0, 0, 0.11);
  -webkit-box-shadow: 0 20px 80px 0 rgba(0, 0, 0, 0.11);
  -moz-box-shadow: 0 20px 80px 0 rgba(0, 0, 0, 0.11);
  padding: 2.9rem 3rem;
  width: 550px;
}

#app .card {
  padding: 2.9rem 10rem;
}

.card-title {
  font-size: 2.2rem;
  font-weight: 400;
  color: var(--dark-grey);
  margin-bottom: 0rem;
}

.card-body p {
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--medium-grey);
  margin-bottom: 1.2rem;
}

.blue-line {
  width: 32px;
  border-top: 4px solid var(--blue);
  border-radius: 5rem;
  margin-bottom: 2.4rem;
}

.form-group:first-child {
  margin-bottom: 2.4rem;
}

.form-group:nth-child(2) {
  margin-bottom: 0.8rem;
}

.form-group label {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--black);
}

.form-control {
  border: 1px solid var(--blue);
  border-radius: 0;
  padding: 2.4rem 2rem;
  font-size: 1.4rem;
  font-family: Arial, Helvetica, sans-serif;
}

.forgot {
  color: var(--blue);
  font-size: 1.4rem;
  margin-bottom: 2.4rem;
  display: block;
}

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

.card-body button {
  max-width: 150px;
  margin: auto;
  border-radius: 0;
  padding: 1.5rem;
  background-color: var(--blue);
  text-transform: uppercase;
  font-size: 1.4rem;
  font-weight: 700;
  border: none;
}
#envSelect {
  margin: 10px;
}
/* _________ END LOGIN PAGE _________ */
/* _________ LISTING PAGE _________ */
.listing {
  padding-bottom: 5rem;
}

.listing h1 {
  font-size: 2.6rem;
  position: relative;
}

.listing h1:after {
  content: "";
  position: absolute;
  width: 32px;
  height: 4px;
  background-color: var(--blue);
  bottom: -14px;
  left: 0;
  border-radius: 5rem;
}

#listing .card {
  padding-top: 4rem;
  padding-bottom: 11rem;
}

.search {
  font-size: 1.4rem;
  font-weight: 600;
}

.search input {
  border-color: var(--light-grey);
}

/* table */
#example_wrapper {
  margin-top: -5rem;
}

.listing table {
  table-layout: auto;
  width: 100%;
}

.listing .mt-table {
  margin-top: -7rem;
}

.listing .table,
.listing .th,
.listing .td,
.listing .tr {
  border-color: var(--light-grey) !important;
}

.listing table.dataTable.no-footer {
  margin-bottom: 1.5rem;
}

.listing .table-hover tbody tr:hover {
  background-color: var(--vlight-grey);
}

.listing thead {
  background-color: var(--blue);
}

.listing .table thead th {
  padding-left: 3.5rem !important;
  color: var(--white);
  text-transform: uppercase;
  font-size: 1.5rem;
  font-weight: 600;
  border-bottom: none;
  vertical-align: middle;
  line-height: 1.3;
}

.listing .table thead tr {
  border-color: var(--blue) !important;
}

.listing .table td {
  padding-left: 3.5rem !important;
  font-size: 1.5rem;
  vertical-align: middle;
  line-height: 1.3;
}

.listing .table td:nth-child(2n + 1) {
  font-weight: 600;
}

i:before {
  content: "\f002";
}

i.fa.fa-search {
  background-color: var(--black);
  color: var(--white);
  padding: 1rem 2.2rem;
}

.offline {
  color: var(--offline);
}

.online {
  color: var(--online);
}
.recent {
  color: var(--error);
}
.fw-600 {
  font-weight: 600;
}

/* selecteur arrow */
th.py-4.sorting:last-child {
  background-image: none;
}

/* a regler 
table.dataTable thead .sorting_asc {
    background-image: none;
    position: relative;
}

table.dataTable thead .sorting_asc:before {
    content: '\f175';
    position: absolute;
    top: 15px;
    right: 6px;
    font-family: 'FontAwesome';
}

table.dataTable thead .sorting_desc {
    background-image: none;
    position: relative;
}

table.dataTable thead .sorting_desc:before {
    content: '\f176';
    position: absolute;
    top: 15px;
    right: 6px;
    font-family: 'FontAwesome';
}

table.dataTable thead .sorting {
    background-image: none;
    position: relative;
}

table.dataTable thead .sorting:before {
    content: '\f176';
    position: absolute;
    top: 15px;
    right: 6px;
    font-family: 'FontAwesome';
}

table.dataTable thead .sorting:after {
    content: '\f175';
    position: absolute;
    top: 16px;
    right: -2px;
    font-family: 'FontAwesome';
}
*/

/* search button */
.label-control {
  font-size: 1.4rem;
  font-weight: 600;
  text-transform: uppercase;
}

.dataTables_wrapper .dataTables_filter input {
  border: 1px solid var(--light-grey);
  border-radius: 0;
  padding: 13px;
  background-color: transparent;
  margin-left: 2rem;
  width: 270px;
  margin-bottom: 1.5rem;
}

/* pagination */
.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
  color: white !important;
  border-color: var(--blue);
  background: none !important;
  background-color: var(--blue) !important;
  border-radius: 0;
}

.dataTables_paginate .paginate_button:hover {
  color: white !important;
  border-color: var(--blue) !important;
  border-radius: 0;
  background: none !important;
  background-color: var(--blue) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover {
  color: var(--white) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
  text-transform: uppercase;
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--blue) !important;
}

/* sidebar menu */
.offcanvas-active {
  overflow: hidden;
}

.screen-overlay {
  width: 0%;
  height: 100%;
  z-index: 30;
  position: fixed;
  top: 0;
  left: 0;
  opacity: 0;
  visibility: hidden;
  background-color: rgba(34, 34, 34, 0.6);
  transition: opacity 0.2s linear, visibility 0.1s, width 1s ease-in;
}
.screen-overlay.show {
  transition: opacity 0.5s ease, width 0s;
  opacity: 1;
  width: 100%;
  visibility: visible;
}

.offcanvas {
  width: 350px;
  visibility: hidden;
  transform: translateX(-100%);
  transition: all 0.2s;
  border-radius: 0;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  z-index: 1200;
  background-color: #fff;
  overflow-y: scroll;
  overflow-x: hidden;
}

.offcanvas.offcanvas-right {
  right: 0;
  left: auto;
  transform: translateX(100%);
}

.offcanvas.show {
  visibility: visible;
  transform: translateX(0);
  transition: transform 0.2s;
}

.offcanvas .btn-close {
  position: absolute;
  right: 15px;
  top: 15px;
}

#sidebar-menu {
  background-color: var(--vlight-grey);
  width: 250px;
  overflow-y: auto;
}

/* -- btn menu -- */
.btn-secondary,
.btn-secondary:hover,
.btn-secondary.focus,
.btn-secondary:focus,
.btn-secondary:not(:disabled):not(.disabled):active {
  color: var(--blue);
  background-color: transparent;
  border-color: transparent;
}

.btn-secondary.focus,
.btn-secondary:focus,
.btn.focus,
.btn:focus,
.btn-secondary:not(:disabled):not(.disabled):active:focus {
  box-shadow: none;
}

.btn-group-sm > .btn,
.btn-sm {
  font-size: 2.2rem;
  font-weight: 600;
  text-transform: uppercase;
}

.fa.fa-bars {
  padding-right: 1.5rem;
}

/* -- header sidebar -- */
#sidebar-menu header {
  background-color: #000 !important;
  color: #fff;
  text-transform: uppercase;
  font-weight: 600;
  padding-left: 3rem !important;
  font-size: 2.1rem;
}

button.btn.btn-outline-danger.btn-close {
  border: none;
  font-size: 2.5rem;
  color: #fff;
}

.btn-outline-danger:hover,
.btn-outline-danger:focus {
  background-color: transparent;
}

.btn-outline-danger.focus,
.btn-outline-danger:focus {
  box-shadow: none !important;
}

.btn-outline-danger:not(:disabled):not(.disabled).active,
.btn-outline-danger:not(:disabled):not(.disabled):active,
.show > .btn-outline-danger.dropdown-toggle {
  background-color: transparent;
  border-color: transparent;
}

.offcanvas .btn-close {
  top: 7px !important;
}

/* -- list item -- */
nav.list-group.list-group-flush {
  padding-left: 3rem;
  padding-top: 2rem;
  padding-right: 3rem;
}

.cat {
  color: var(--blue);
  font-size: 2.2rem;
  font-weight: 600;
  padding-bottom: 0.8rem;
}

nav.list-group.list-group-flush li {
  padding-bottom: 0.5rem;
  font-weight: 600;
  font-size: 1.6rem;
}

nav.list-group.list-group-flush li:hover,
.active {
  color: var(--blue);
  text-decoration: underline;
}

/* header */
header {
  padding-top: 2rem;
}

header button {
  padding: 0 !important;
}
/* -- selecteur langues -- */
.nav-select {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
}

.dropdown-toggle::after {
  display: none;
}

.nav-select .nav-item.dropdown a {
  text-transform: uppercase;
  font-weight: 600;
  color: var(--black);
  font-size: 1.9rem;
  text-align: right;
}

.nav-select i {
  margin-left: 2rem;
  font-size: 2.3rem;
  color: var(--blue);
}

.nav-select .language .dropdown-menu {
  padding: 0;
  border: none;
  -webkit-box-shadow: 0px 5px 5px 0px rgba(0, 0, 0, 0.15);
  -moz-box-shadow: 0px 5px 5px 0px rgba(0, 0, 0, 0.15);
  box-shadow: 0px 5px 5px 0px rgba(0, 0, 0, 0.15);
  right: 10px !important;
  left: auto !important;
  top: -5px !important;
}

.nav-select .dropdown-item {
  padding: 0.8rem 4rem;
  font-size: 1.4rem !important;
  min-width: 17rem;
}

/* -- user -- */
.user img {
  width: 40px;
  height: 40px;
  padding: 1rem;
}

.user > a {
  background-color: var(--blue);
  height: 40px;
  width: 40px;
  display: inline-block;
  border-radius: 50rem;
  -webkit-box-shadow: 0px 5px 5px 0px rgba(0, 0, 0, 0.15);
  -moz-box-shadow: 0px 5px 5px 0px rgba(0, 0, 0, 0.15);
  box-shadow: 0px 5px 5px 0px rgba(0, 0, 0, 0.15);
}

.user {
  margin-left: 5rem;
}

.user .dropdown-menu {
  right: 0 !important;
  left: auto !important;
  top: 5rem !important;
  border: none;
  -webkit-box-shadow: 0px 5px 5px 0px rgba(0, 0, 0, 0.15);
  -moz-box-shadow: 0px 5px 5px 0px rgba(0, 0, 0, 0.15);
  box-shadow: 0px 5px 5px 0px rgba(0, 0, 0, 0.15);
  margin: 0;
  padding: 0;
  min-width: 17rem;
  transform: none !important;
}

.user p {
  font-size: 1.5rem;
  font-weight: 600;
  padding: 1rem 3rem;
  text-align: center;
  margin: 0;
  position: relative;
}

.user p:after {
  position: absolute;
  height: 2px;
  width: 3rem;
  background-color: var(--blue);
  content: "";
  top: 3.5rem;
  left: 50%;
  margin-left: -1.5rem;
}

.user .mail {
  font-size: 1.2rem !important;
  text-transform: lowercase !important;
  padding: 1.5rem 3rem;
  text-align: center;
}

.logout {
  text-transform: initial !important;
  background-color: var(--blue);
  color: var(--white) !important;
  cursor: pointer;
}

.logout:hover {
  text-transform: initial !important;
  background-color: var(--king-blue);
  color: var(--white) !important;
}
/* _________ END LISTING PAGE _________ */
/* _________ FOOTER _________ */
footer {
  background-color: var(--black);
  position: absolute;
  bottom: 0;
  width: 100%;
}

.nav-footer {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  color: var(--white);
  padding: 2rem 5rem;
  margin: 0;
}

.nav-footer a {
  color: var(--white);
}

footer .col-12 {
  padding: 0;
}
/* _________ END FOOTER _________ */
/* _________ TOAST _________ */
.toast {
  width: 300px !important;
  top: auto !important;
  right: -10rem !important;
  bottom: 8rem !important;
}

.toast-header {
  padding: 1rem;
  color: var(--error);
  font-size: 1.4rem;
}

.close {
  font-size: 2.5rem;
  text-shadow: none !important;
  opacity: 1 !important;
}

.close span:focus {
  outline: none !important;
}

.toast-body {
  background-color: var(--light-grey);
  padding: 1rem !important;
  font-size: 1.2rem !important;
  font-weight: 700 !important;
}

button:focus {
  outline: none !important;
}
/* _________ END TOAST _________ */
/* .... RESPONSIVE .... */
@media (max-width: 1440px) {
  /* _________ LOGIN PAGE _________ */
  /* logo header */
  .logo-desk .logo {
    height: 87px;
    width: 250px;
  }

  #app .logo-desk .logo {
    height: 105px;
    width: 300px;
    margin-bottom: 0;
  }

  .user {
    margin-left: 3rem;
  }
}

@media (max-width: 1290px) {
  /* _________ LISTING PAGE _________ */
  .listing .table thead th,
  .listing .table td {
    font-size: 1.2rem;
    padding-left: 2rem !important;
  }
}

@media (max-width: 1199.98px) {
  /* TOAST */
  .toast {
    top: 9rem !important;
    bottom: auto !important;
  }
  /* _________ LOGIN PAGE _________ */
  /* logo header */
  .logo-desk .logo {
    display: none;
  }

  .logo-desk {
    display: none;
  }

  #app .logo-desk {
    display: block !important;
  }

  .nav-header,
  .menu-sidebar {
    width: 50%;
    flex: 0 0 50%;
    max-width: 50%;
  }

  #app .logo-desk .logo {
    display: block;
    margin: auto;
  }

  .logo-mob .logo {
    display: block;
    margin: auto;
    height: 105px;
    width: 300px;
    margin-top: 2rem;
  }

  /* _________ LISTING PAGE _________ */
  .listing .table thead th,
  .listing .table td {
    font-size: 1.1rem;
    padding-left: 1.9rem !important;
  }
}

@media (max-width: 991.98px) {
  /* _________ LISTING PAGE _________ */
  .listing h1 {
    font-size: 2.2rem;
  }
  .dataTables_wrapper .dataTables_filter input {
    width: auto;
  }

  /* table */
  table thead {
    border: none;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
  }

  #example tbody tr {
    border: none !important;
  }

  #example tbody td:last-child {
    border-bottom: 3px solid var(--blue);
    padding-top: 4px !important;
    padding-bottom: 4px !important;
  }

  #example tbody td:first-child {
    border-top: none !important;
  }

  .listing .table td {
    display: block;
    text-align: right;
    padding-left: 1rem !important;
  }

  .listing .table td::before {
    float: left;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--blue);
    padding-right: 10px;
    height: 30px;
  }

  .listing .table td:first-child::before {
    content: "ID";
  }

  .listing .table td:nth-child(2)::before {
    content: "Type véhicule";
  }

  .listing .table td:nth-child(3)::before {
    content: "Immatriculation";
  }

  .listing .table td:nth-child(4)::before {
    content: "Dernière position";
  }

  .listing .table td:nth-child(5)::before {
    content: "équipement";
  }

  .listing .table td:nth-child(6)::before {
    content: "état";
  }

  .dataTables_info {
    font-size: 1.2rem;
  }

  .dataTables_wrapper .dataTables_paginate .paginate_button,
  .dataTables_wrapper .dataTables_paginate .paginate_button:hover,
  .dataTables_wrapper .dataTables_paginate .paginate_button.current,
  .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover,
  .dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
  .dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover,
  .dataTables_wrapper .dataTables_paginate .paginate_button.next.disabled,
  .dataTables_wrapper .dataTables_paginate .paginate_button.next.disabled:hover {
    font-size: 1rem;
  }

  /* _________ FOOTER _________ */
  footer {
    position: inherit;
  }
}

@media (max-width: 767.98px) {
  /* TOAST */
  .toast {
    right: -12rem !important;
  }
  /* _________ LOGIN PAGE _________ */
  /* header */
  .menu-header {
    width: 100% !important;
    padding-right: 3rem !important;
    padding-left: 3rem !important;
  }

  .card {
    width: 100% !important;
  }

  .listing {
    padding-left: 3rem;
    padding-right: 3rem;
  }

  /* _________ LISTING PAGE _________ */
  .title-table {
    display: flex;
    justify-content: center;
  }

  .listing h1 {
    text-align: center !important;
  }

  .listing h1:after {
    left: 50%;
    margin-left: -17px;
  }

  #example_wrapper {
    margin-top: 0;
  }

  #example_filter {
    float: none !important;
    text-align: center;
  }

  .dataTables_wrapper .dataTables_filter input {
    margin-right: 2rem;
  }
}

@media (max-width: 575.98px) {
  /* _________ LOGIN PAGE _________ */
  .card,
  #app .card {
    padding: 2.9rem 3rem;
  }

  /* _________ FOOTER _________ */
  .footer-sm {
    width: 100% !important;
  }

  .nav-footer {
    padding: 2rem 3rem;
  }

  .txt-menu {
    display: none;
  }

  .nav-select .nav-item.dropdown a {
    font-size: 1.5rem;
  }

  .user {
    margin-left: 1rem;
  }

  .nav-select i {
    margin-left: 1rem;
    font-size: 2rem;
  }

  /* _________ LISTING PAGE _________ */
  .listing h1 {
    font-size: 2.2rem;
  }

  .label-control {
    font-size: 1.2rem;
  }

  .listing .table thead th,
  .listing .table td {
    font-size: 1rem;
  }

  .listing .card {
    padding: 2.9rem 1.4rem;
  }
}

@media (max-width: 440px) {
  /* TOAST */
  .toast {
    right: -10rem !important;
    width: 250px !important;
  }
  /* _________ LOGIN PAGE _________ */
  /* logo header */
  .logo-mob .logo {
    height: 87px;
    width: 250px;
  }
}

/* toasts */
.toast {
  top: 3rem;
  right: 3rem;
  position: fixed;
  transform: translate(-50%, 0px);
  z-index: 9999;
}
/* _________ DASHBOARD PAGE _________ */
/* center modal image */
.img-center {
  display: block;
  margin-left: auto;
  margin-right: auto;
}
/* logout button */
.dropdown-item.logout {
  text-align: center !important;
}
