:root {
  --primary: #3E5F8A;
  --primaryLight: #6C96CA;
  --light: #FFFFFF;
  --light2: #F2F4FD;
  --dark: #444853;
  /* --border: #C3C6E4; */
  --border: #d3d5e7;
  --danger: #FF453A;
  --success: #30D158;
  --warning: #FFD60A;
  --shadow1: 0px 8px 24px rgba(0, 0, 0, .1);
  --shadow24: 0px 8px 24px rgba(0, 0, 0, 0);
}

* {
  outline: none !important;
}

*:focus {
  box-shadow: none !important;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: var(--light);
  font-family: 'IBM Plex Sans', sans-serif;
  color: var(--dark);
}

p {
  font-size: 1rem;
}

a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: color .3s ease-in-out;
}

a:hover {
  color: var(--primaryLight);
}

hr {
  opacity: 1;
  background-color: var(--border);
}

.rounded {
  border-radius: .5rem !important;
}

.rounded-top {
  border-top-left-radius: 0.5rem!important;
  border-top-right-radius: 0.5rem!important;
}

.rounded-bottom {
  border-bottom-left-radius: 0.5rem!important;
  border-bottom-right-radius: 0.5rem!important;
}

.rounded-end {
  border-top-right-radius: 0.5rem!important;
  border-bottom-right-radius: 0.5rem!important;
}

.rounded-start {
  border-top-left-radius: 0.5rem!important;
  border-bottom-left-radius: 0.5rem!important;
}

/* NAVBAR */

main {
  margin-top: 57px;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .5rem 1rem;
    background-color: var(--light2);
    transition: all 0.3s ease-in-out;
    -webkit-transition: all 0.3s ease-in-out;
    border-bottom: 1px solid var(--border);
}

.nav-menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--light2);
}

.nav-item {
    margin-left: 2rem;
}


.nav-link{
  position: relative;
  color: var(--primary);
  font-weight: 400;
  letter-spacing: .5px;
  background-color: transparent;
}

.nav-link:before {
  content: "";
  position: absolute;
  width: 100%;
  height: 3px;
  bottom: -9px;
  left: 0;
  background-color: var(--primary);
  visibility: hidden;
  -webkit-transform: scaleX(0);
  transform: scaleX(0);
  -webkit-transition: all 0.3s ease-in-out 0s;
  transition: all 0.3s ease-in-out 0s;
}

.nav-link.active:before {
  visibility: visible;
  -webkit-transform: scaleX(1);
  transform: scaleX(1);
}

.nav-link:hover:before {
  visibility: visible;
  -webkit-transform: scaleX(1);
  transform: scaleX(1);
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link:focus {
  color: var(--primary);
}

.hamburger {
    display: none;
}

.bar {
    display: block;
    width: 25px;
    height: 1px;
    margin: 5px auto;
    border-radius: .5rem;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    background-color: var(--primary);
}

.bar:nth-child(2) {
    width: 15px;
    margin: 5px 0;
}


@media only screen and (max-width: 1280px) {
    .navbar {
        padding: 1rem;
    }
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 3.5rem;
        flex-direction: column;
        width: 100%;
        text-align: left;
        padding-bottom: 1rem;
        transition: 0.3s;
        border-bottom: 1px solid var(--border);
    }
    .nav-menu.active {
        left: 0;
    }
    .nav-item { 
        width: 100%;
        margin: 0;
        padding: 0 3rem;
    }
    .hamburger {
        display: block;
        cursor: pointer;
    }
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }
    .nav-link.active:before {
      visibility: visible;
      -webkit-transform: scaleX(0);
      transform: scaleX(0);
    }
}

@media only screen and (max-width: 1023px) {
  .container .nav-item {
        padding: 0 4rem;
    }
}

@media only screen and (max-width: 768px) {
  .container .nav-item {
        padding: 0 2.5rem;
    }
}

@media only screen and (max-width: 425px) {
  .container .nav-item {
        padding: 0 2rem;
    }
}

/* COLORS */

.primary {
  color: var(--primary) !important;
}

.light {
  color: var(--light) !important;
}

.dark {
  color: var(--dark) !important;
}

.success {
  color: var(--success) !important;
}

.warning {
  color: var(--warning) !important;
}

.danger {
  color: var(--danger) !important;
}

.bg-primary {
  background-color: var(--primary) !important;
}

.bg-light {
  background-color: var(--light) !important;
}

.bg-light2 {
  background-color: var(--light2) !important;
}

.bg-dark {
  background-color: var(--dark) !important;
}

.opacity-50 {
  opacity: .5;
}

.opacity-75 {
  opacity: .75;
}

/* TYPO */

.fw-200 {
  font-weight: 200 !important;
}

.fw-300 {
  font-weight: 300 !important;
}

.fw-400 {
  font-weight: 400 !important;
}

.fw-500 {
  font-weight: 500 !important;
}

.fw-600 {
  font-weight: 600 !important;
}

.fw-700 {
  font-weight: 700 !important;
}

h1.title {
  margin-bottom: 0rem;
  font-size: 2.25rem;
}

/* BUTTONS */

.btn {
  border-radius: .5rem;
  font-weight: 500;
  transition: all .3s ease-in-out;
  padding: .375rem 1rem;
}


.btn-primary,
.btn-primary:focus {
  color: var(--light);
  background-color: var(--primary);
  border-color: var(--primary);
}

.btn-primary:not(:disabled):not(.disabled):active {
  color: var(--light);
  background-color: var(--primary);
  border-color: var(--primary);
}

.btn-primary:hover {
  background-color: var(--primaryLight);
  border-color: var(--primaryLight);
  box-shadow: var(--shadow24);
  color: var(--light);
}



.btn-primary-border {
  border: 1px solid var(--primary);
  color: var(--primary);
}

.btn-primary-border:hover {
  color: var(--primary);
  background-color: rgba(0, 0, 0, 0.08);
}

.btn-primary-border:not(:disabled):not(.disabled):active:focus {
  box-shadow: none;
  background-color: rgba(0, 0, 0, 0.2);
  border-color: rgba(0, 0, 0, 0.2);
}

.btn-text {
  box-shadow: none !important;
  color: var(--primary);
  padding: 0.25rem 0.5rem;
}

.btn-text:hover {
  color: var(--primaryLight);
}

.dropdown-menu {
  box-shadow: var(--shadow1);
  padding: 0;
  border-radius: .5rem;
  border: 1px solid var(--border);
  background-color: var(--light);
}

.dropdown-divider {
  margin: 0;
  border: 0;
}

.dropdown-item {
  padding: .6rem 1.2rem;
  transition: all .3s ease-in-out;
  color: var(--dark);
}

.dropdown-item:hover {
  background-color: var(--primary);
  color: var(--light);
}

.btn .bi {
  font-size: 1.2rem;
}

/* CARDS */

.card {
  border-radius: 0.5rem;
  box-shadow: var(--shadow24);
  padding: 1rem;
  background-color: var(--light);
  border: 1px solid var(--border);
  padding: 0;
}

.card-body {
  padding: 1.5rem;
}

.card-footer {
  background-color: var(--light2);
  border-radius: 0 0 .5rem .5rem !important;
  padding: .25rem 1rem;
}

/* ACCORDIONS */

.accordion-button {
  font-size: 1.2rem;
}

.accordion-button:hover {
  background-color: var(--light2);
}

.accordion-item {
  border: 1px solid var(--border);
}

.accordion-item a {
  font-weight: 400;
}

.accordion-button:not(.collapsed) {
  color: var(--light);
  background-color: var(--primary);
}

.accordion-button:not(.collapsed)::after {
  filter: brightness(100);
}

.accordion-item:first-of-type {
  border-top-right-radius: 0.5rem;
  border-top-left-radius: 0.5rem;
}

.accordion-item:first-of-type .accordion-button {
    border-top-left-radius: calc(0.5rem - 1px);
    border-top-right-radius: calc(0.5rem - 1px);
}

.accordion-item:last-of-type {
  border-bottom-right-radius: 0.5rem;
  border-bottom-left-radius: 0.5rem;
}

.accordion-item:last-of-type .accordion-button.collapsed {
    border-bottom-right-radius: calc(0.5rem - 1px);
    border-bottom-left-radius: calc(0.5rem - 1px);
}

/* FORMS */

::placeholder {
  color: var(--border) !important;
  font-weight: 400;
}

.form-check-input:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}

label {
  font-size: 1rem;
  font-weight: 500;
}

.form-control {
  background-color: transparent;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  padding-left: 0;
  font-weight: 500;
  color: var(--primary);
}

input {
  color: var(--primary);
}

input.form-control {
  transition: border-color .2s ease-in-out,
              box-shadow .2s ease-in-out;
}

input.form-control:focus {
  border-bottom: 1px solid var(--primary) !important;
  background-color: transparent !important;
  box-shadow: 0.2px .6px 0.1px var(--primary);
  color: var(--primary);
}

input.form-control[type=file] {
  border: 1px solid var(--primaryLight);
  border-radius: .5rem;
  padding-left: .7rem;
}

.form-check-input:focus {
  border-color: var(--primary);
}

select::-ms-expand {
  display: none;
}

select {
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--primary) 50%), linear-gradient(135deg, var(--primary) 50%, transparent 50%);
  background-position: calc(100% - 20px) calc(1em + 2px), calc(100% - 15px) calc(1em + 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  min-width: 70px;
  -webkit-padding-end: 30px !important;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  border: 1px solid var(--border);
  color: var(--primary);
}

select option {
  background: var(--secondary);
}

textarea {
  width: 100%;
  height: 100%;
  display: flex;
  background-color: transparent;
  border: 1px solid var(--dark);
  padding: 16px;
  border-radius: 0.5rem;
  color: var(--mainText);
  font-weight: 300;
  resize: none;
  transition: .3s all ease-in-out;
}

textarea:focus {
  border: 1px solid var(--primary);
}


/* DATATABLES */

.dt-button,
.dt-button:focus {
  border-radius: .5rem !important;
  color: var(--light) !important;
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  transition: all .3s ease-in-out;
}

.dt-button:not(:disabled):not(.disabled):active {
  color: var(--light) !important;
  background: var(--primary) !important;
  border-color: var(--primary) !important;
}

.dt-button:hover {
  background: var(--primaryLight) !important;
  border-color: var(--primaryLight) !important;
}

.dataTables_wrapper .dataTables_filter input {
  border-radius: .5rem !important;
  padding-left: 8px;
  color: var(--primary);
  border: 1px solid var(--border);
}

table.dataTable.no-footer {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.dataTable tr th {
  color: var(--primary) !important;
  border-bottom: 1px solid var(--primary);
}

.dataTable tr th:first-child {
  border-top-left-radius: .5rem !important;
}

.dataTable tr th:last-child {
  border-top-right-radius: .5rem !important;
}

table.dataTable {
  padding-top: 1rem !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
  border-radius: .5rem !important;
  transition: all .3s ease-in-out;
  margin-left: .5rem;
  color: var(--primary) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
  background: none !important;
  border: 1px solid var(--primary) !important;
  color: var(--primary) !important;
}

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

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled {
  background: transparent !important;
  border: transparent !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover {
  background: transparent !important;
  border: transparent !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  background: var(--primary) !important;
  color: var(--light) !important;
  border: 1px solid var(--primary) !important;
}

@media screen and (min-width: 768px) {
  .dt-button {
    padding: .5rem 1.5rem !important;
  }
}

div.dt-button-info {
  border: 2px solid var(--border);
  box-shadow: var(--shadow24);
  border-radius: 0.5rem;
}

div.dt-button-info h2 {
  border-bottom: 1px solid var(--border);
  background-color: var(--light);
  border-top-left-radius: 0.5rem;
  border-top-right-radius: 0.5rem;
  font-weight: 500;
}

div.dataTables_wrapper div.dataTables_length select {
  margin: 0 .4rem;
  border-radius: .5rem;
  padding: .5rem;
  border: 1px solid var(--border);
}

/* table.dataTable.stripe>tbody>tr.odd>*, table.dataTable.display>tbody>tr.odd>* {
  box-shadow: inset 0 0 0 9999px rgb(242 244 253 / 70%);
}

table.dataTable.display>tbody>tr.odd>.sorting_1, table.dataTable.order-column.stripe>tbody>tr.odd>.sorting_1 {
  box-shadow: inset 0 0 0 9999px rgb(242 244 253 / 100%);
}

table.dataTable.stripe>tbody>tr.even>*, table.dataTable.display>tbody>tr.even>* {
  box-shadow: inset 0 0 0 9999px rgb(242 244 253 / 30%);
}

table.dataTable.display>tbody>tr.even>.sorting_1, table.dataTable.order-column.stripe>tbody>tr.even>.sorting_1 {
  box-shadow: inset 0 0 0 9999px rgb(242 244 253 / 60%);
} */

table.dataTable tbody tr {
  transition: background-color .2s ease-in-out;
}

table.dataTable tbody tr:hover {
  background-color: var(--light2);
}

table.dataTable tbody td {
    padding: 2px 8px;
}

@media screen and (max-width: 767px) {
  .dataTables_length {
    margin-top: 1rem;
  }
  .dataTables_info {
    margin-bottom: 1rem;
  }
}

table.dataTable.dtr-inline.collapsed>tbody>tr>td.dtr-control:before, table.dataTable.dtr-inline.collapsed>tbody>tr>th.dtr-control:before {
  color: var(--primary);
}

/* MODALS */

.modal-header {
  background-color: var(--light2);
  color: var(--dark);
  border-top-left-radius: .5rem;
  border-top-right-radius: .5rem;
  border-bottom: 1px solid var(--border);
}

.modal-content {
  border-radius: .5rem;
  background-color: var(--light);
}

/* GOOGLE MAP */

#map {
  border-radius: .5rem;
}

.map-container {
  height: calc(100vh - 15rem);
}

.gm-style-iw-t {
  bottom: 54px !important;
}

.gm-style .gm-style-iw-c button {
  top: 0 !important;
  right: 8px !important;
}

.gm-style .gm-style-iw-c button span {
  width: 22px !important;
  height: 22px !important;
}

.gm-style .gm-style-iw-d {
  padding: 0rem .8rem 1rem 1rem !important;
}

.gm-style-iw-d a {
  font-weight: 500;
  padding: 0 1.2rem;
  color: var(--primary);
  font-size: 1.2rem;
  transition: color .2s ease-in-out;
}

.gm-style-iw-d a:not(:disabled):not(.disabled):active {
  color: var(--light);
}

.gm-style-iw-d a:hover {
  color: var(--primaryLight);
}

.gm-style-iw-d a::before {
  display: block;
  font-size: 1rem;
  font-family: 'IBM Plex Sans';
  content: 'Device Name';
  color: var(--dark);
  margin-bottom: .25rem;
}

/* MISC */

.green-dot {
  background-color: var(--success);
  height: 24px;
  width: 24px;
  border-radius: 100vw;
}

.red-dot {
  background-color: var(--danger);
  height: 24px;
  width: 24px;
  border-radius: 100vw;
}

.loader {
  visibility: hidden;
}

.show {
  visibility: visible;
}

.loader-spinner {
  width: 3rem;
  height: 3rem;
}







/* PAGES: SIGN IN */

.form-signin {
  background-color: var(--light);
  border-radius: 2rem;
  padding: 3rem;
  min-width: 420px;
}

.signin-row {
  height: 100vh !important;
}

@media screen and (max-width: 767px) {
  .signin-row {
    background-color: var(--light);
  }
  .form-signin {
    background-color: var(--light);
    border-radius: 0;
    padding: 0;
    min-width: 320px;
  }
}

.show-psw-btn {
  padding-top: 6px;
  padding-left: 6px;
  cursor: pointer;
}

.form-signup {
  background-color: var(--light);
  position: relative;
  max-width: 360px;
}

/* PAGES: Dashboard */

.card-icon-badge {
  /* background-color: var(--light2); */
  color: var(--primary);
  /* border-radius: 100vw;
  border: 1px solid var(--border); */
  font-size: 2.5rem;
  /* width: 72px;
  height: 72px; */
  text-align: center;
  /* padding-top: .75rem; */
  padding-right: 1rem;
}

.progress-lg {
  height: 3rem;
}

.progress {
  background-color: var(--light2);
}

.progress-bar {
  background-color: var(--primary);
}

/* PAGES: Linked Devices */

.map-iframe {
  border-radius: .5rem;
  border: 1px solid var(--border) !important;
}

/* PAGES: Device Details */

.reprint-back {
  background-image: url('../img/qr_example.svg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain 100%;
  min-height: 300px;
}

.td-truncate {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    max-width: 400px;
    text-overflow: ellipsis;
}









