@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter/static/Inter-Regular.ttf");
}

@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins/Poppins-Regular.ttf");
}

@font-face {
  font-family: "Roboto";
  src: url("../fonts/Roboto_Mono/static/RobotoMono-Regular.ttf");
}

@font-face {
  font-family: "Lato";
  src: url("../fonts/Lato/Lato-Regular.ttf");
}

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/Montserrat/static/Montserrat-Regular.ttf");
}

@font-face {
  font-family: "Open_Sans";
  src: url("../fonts/Open_Sans/static/OpenSans/OpenSans-Regular.ttf");
}

body {
  background: #eef6ff;
  color: hsl(0, 0%, 10%);
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.6;
  font-family: "Open_Sans", Calibri, Tahoma, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.bg-login {
  background-image: url("../img/bg-login.png");
}

.bg-login .form-control {
  background-color: #f3f8ff !important;
  border: 1px solid #f3f8ff !important;
}

.b-example-divider {
  flex-shrink: 0;
  width: 0rem;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.1);
  border: solid rgba(0, 0, 0, 0.15);
  border-width: 1px 0;
  box-shadow: inset 0 0.5em 1.5em rgba(0, 0, 0, 0.1),
    inset 0 0.125em 0.5em rgba(0, 0, 0, 0.15);
}

.nav-main {
  background-color: #fff;
  height: 100vh;
}

.logo img {
  width: 100%;
}

.uncollapsed .logo img {
  width: 70%;
}

.nav-link.active {
  border-radius: 4px;
  margin: 0px;
}

.nav-icon {
  float: left;
  margin-right: 8px;
  width: 32px;
}

.nav-hide {
  display: none !important;
}

h2,
h3 {
  color: hsl(280, 50%, 40%);
}

h1 {
  font-size: 3rem;
  font-weight: 100;
}

h2 {
  font-size: 2rem;
  font-weight: 200;
}

h3 {
  font-size: 1.75rem;
  font-style: italic;
  font-weight: 200;
}

p {
  font-size: 1.125rem;
}

.container-main {
  min-width: 80% !important;
}

.bottom-scrollbar {
  padding-bottom: 92px;
}

.table > :not(caption) > * > * {
  padding: 1rem 1.4rem;
  border-bottom: 1px solid #f8f9fa;
}
.card-body .table > :not(caption) > * > * {
  padding: 1rem 0rem;
}
.table.schedule > :not(caption) > * > * {
  padding: 8px 8px 8px !important;
}
.table.condenced > :not(caption) > * > * {
  padding: 8px 8px 8px !important;
}

.table.condenced tbody tr:nth-child(even) {
  background: #f8f9fa;
}
.table.condenced tbody tr:nth-child(odd) {
  background: #ffffff;
}
.table.condenced tbody tr td {
  border-bottom: 1px solid rgb(113 134 157 / 46%);
}

.table.condenced.orders tbody tr td {
  border-bottom: 1px solid rgb(113 134 157 / 10%);
}

.table.condenced.light tbody tr td {
  border-bottom: 1px solid rgb(113 134 157 / 10%);
}

.table.condenced tbody .header {
  border-right: 1px solid rgb(113 134 157 / 46%);
  border-left: 1px solid rgb(113 134 157 / 46%);
  border-bottom: 1px solid rgb(113 134 157 / 46%);
  background: #fff;
}

.table.condenced.cell-border tbody tr td {
  border-left: 1px solid rgb(113 134 157 / 46%);
  border-right: 1px solid rgb(113 134 157 / 46%);
}
.table.condenced.cell-border thead tr th,
.table.condenced.cell-border tfoot tr th,
.table.condenced.cell-border tfoot tr td {
  /* border-top: 1px solid rgb(113 134 157 / 46%); */
  /* border-bottom: 1px solid rgb(113 134 157 / 46%); */
  border-left: 1px solid rgb(113 134 157 / 46%);
  border-right: 1px solid rgb(113 134 157 / 46%);
}

.table thead.trucks-scheduled-header {
  background: #ebf2ff;
  color: #282828;
}

a {
  color: #5e5e5e;
  text-decoration: none !important;
}
a:hover {
  color: #5e89f9;
}

.tertiary.active {
  font-weight: bold;
  color: #0d6efd;
}

// TABLE

.table tbody {
  color: #677788 !important;
  border-color: #f8f9fa !important;
}
tbody {
  color: rgba(0, 0, 0, 0.7) !important;
  border-color: #f8f9fa !important;
}
.table thead,
.table tfoot {
  color: #677788; /* rgba(0, 0, 0, 0.5) !important; */
  z-index: 1;
  border-color: #f8f9fa !important;
  vertical-align: bottom;
  font-size: 0.875em;
  background-color: #f8f9fa;
  font-weight: 700;
  inset-block-start: 0;
}

.card-body .table tbody tr:hover td,
.card-body .table tbody tr:hover th {
  background-color: #ffffff !important;
}

.table tbody tr:hover td,
.table tbody tr:hover th {
  /* background-color: #f8f9fa !important; */
}

table thead,
table tfoot {
  position: sticky;
}
table thead {
  inset-block-start: 0; /* "top" */
}
table tfoot {
  inset-block-end: -50px; /* "bottom" -- bottom: -50px !important;*/
}
table .header {
  /* Background color */
  background-color: #f8f9fa;
  border-right: 1px solid #f8f9fa;

  /* Stick to the left */
  left: 0;
  position: sticky;

  /* Displayed on top of other rows when scrolling */
  /* z-index: 10; */
}
.table-options {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
}

.table .thead-light th {
  color: #677788;
  background-color: #f8fafd;
  border-color: rgba(231, 234, 243, 0.7);
}

.table thead th {
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 600;
}
.table thead th {
  vertical-align: bottom;
  border-bottom: 0.125rem solid rgba(231, 234, 243, 0.7);
  border-top: 0rem solid rgba(231, 234, 243, 0.7);
}
table tbody .header {
  font-weight: normal !important;
}
.detail-view table th {
  background-color: #f8f9fa;
  width: 50%;
}

.form-check {
  display: block;
  min-height: 1rem;
  padding-left: 1em;
  margin-bottom: 0.125rem;
}

.hide-loader {
  display: none;
}

.modal-body {
  min-height: 150px;
}

/* A <form> wrapping .modal-header/.modal-body/.modal-footer inside .modal-content
   breaks Bootstrap's scrollable modal. Those three are styled as flex children of
   .modal-content (.modal-body is `flex: 1 1 auto; overflow-y: auto`), so when a form
   sits between them the form becomes the only flex item, grows to its natural height,
   and .modal-dialog-scrollable's `.modal-content { overflow: hidden }` silently clips
   whatever falls past the dialog — the footer, and with it the submit button.
   Observed on Tank Settings: the Save button existed in the DOM but was cut off.
   Make the form transparent to the flex layout instead. */
.modal-dialog-scrollable .modal-content > form {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-height: 100%;
  min-height: 0;
}

.modal-dialog-scrollable .modal-content > form > .modal-body {
  min-height: 0;
}

.scheduling-header {
  height: 158px;
  overflow: scroll;
  position: sticky;
  top: -16px;
  background: #ffffff;
  padding-top: 16px;
  z-index: 4;
}
.scheduling-trucks {
  height: 100%; /* 230px; */
  overflow: scroll;
}
.scheduling-orders {
  height: 190px;
  overflow: scroll;
}

.hide {
  display: none;
}

.show {
  display: block;
}

.content-visibile {
  content-visibility: visible;
}

.content-invisibile {
  content-visibility: hidden;
}

/* DASHBOARD */
.stat-box-orange {
  background-color: hsl(36deg 100% 90%) !important; /* #ffcc80 */
  font-weight: bold;
  color: #ff9900 !important;
}

.stat-box-blue {
  background-color: hsl(220deg 89% 90%) !important; /* #87adf7 */
  font-weight: bold;
  color: #3373f3 !important;
}

.stat-box-red {
  background-color: hsl(0deg 100% 90%) !important; /* #ff8080 */
  font-weight: bold;
  color: #ff0101 !important;
}

.stat-box-purple {
  background-color: hsl(289deg 99% 90%) !important; /* #e580ff */
  font-weight: bold;
  color: #a401c9 !important;
}

.stat-box-green {
  background-color: hsl(142deg 73% 90%) !important; /* #91eeb4 */
  font-weight: bold;
  color: #25dd69 !important;
}

.stat-box-yellow {
  background-color: hsl(56deg 100% 90%) !important; /* #fff680 */
  font-weight: bold;
  color: #c6ba00 !important;
}

.stat-box-lime {
  background-color: hsl(184.93deg 100% 42.94% / 20%) !important;
  font-weight: bold;
  color: #00c9db !important;
}

.stat-icon {
  width: 20%;
  position: absolute;
  right: 20px;
  bottom: 14px;
}

.stat-icon img {
  width: 100%;
  opacity: 0.2;
}

.dispatch-icon {
  width: 100%;
  /* position: absolute; */
  right: 20px;
  bottom: 20px;
}

.dispatch-icon img {
  width: 100%;
  opacity: 0.5;
}

// BUTTONS
/* Color variants */
.btn-primary {
  color: #fff;
  background-color: #377dff;
  border-color: #377dff;
}
.btn-primary:hover {
  color: #fff;
  background-color: #0e56e7;
  border-color: #045cff;
}
.btn-secondary {
  color: #fff;
  background-color: #71869d;
  border-color: #71869d;
}
.btn-secondary:hover {
  color: #fff;
  background-color: #5f7389;
  border-color: #596d82;
}
.btn-success {
  color: #fff;
  background-color: #00c9a7;
  border-color: #00c9a7;
}
.btn-success:hover {
  color: #fff;
  background-color: #00a387;
  border-color: #00967d;
}
.btn-danger {
  color: #fff;
  background-color: #ed4c78;
  border-color: #ed4c78;
}
.btn-danger:hover {
  color: #fff;
  background-color: #ea295e;
  border-color: #e81e55;
}
.btn-warning {
  color: #1e2022;
  background-color: #f5ca99;
  border-color: #f5ca99;
}
.btn-warning:hover {
  color: #1e2022;
  background-color: #f2b876;
  border-color: #f0b26b;
}
.btn-info {
  color: #fff;
  background-color: #00c9db;
  border-color: #00c9db;
}
.btn-info:hover {
  color: #fff;
  background-color: #00a6b5;
  border-color: #009aa8;
}
.btn-light {
  color: #1e2022;
  background-color: #f9fafc;
  border-color: #f9fafc;
}
.btn-light:hover {
  color: #1e2022;
  background-color: #e0e5ef;
  border-color: #d7deeb;
}
.btn-dark {
  color: #fff;
  background-color: #132144;
  border-color: #132144;
}
.btn-dark:hover {
  color: #fff;
  background-color: #0b1226;
  border-color: #080e1c;
}

/* Outline buttons */
.btn-outline-primary {
  color: #377dff;
  border-color: #377dff;
}
.btn-outline-primary:hover {
  color: #fff;
  background-color: #377dff;
  border-color: #377dff;
}
.btn-outline-secondary {
  color: #71869d;
  border-color: #e7eaf3;
}
.btn-outline-secondary:hover {
  color: #fff;
  background-color: #71869d;
  border-color: #71869d;
}
.btn-outline-success {
  color: #00c9a7;
  border-color: #00c9a7;
}
.btn-outline-success:hover {
  color: #fff;
  background-color: #00c9a7;
  border-color: #00c9a7;
}
.btn-outline-danger {
  color: #ed4c78;
  border-color: #ed4c78;
}
.btn-outline-danger:hover {
  color: #fff;
  background-color: #ed4c78;
  border-color: #ed4c78;
}
.btn-outline-warning {
  color: #f5ca99;
  border-color: #f5ca99;
}
.btn-outline-warning:hover {
  color: #1e2022;
  background-color: #f5ca99;
  border-color: #f5ca99;
}
.btn-outline-info {
  color: #00c9db;
  border-color: #00c9db;
}
.btn-outline-info:hover {
  color: #fff;
  background-color: #00c9db;
  border-color: #00c9db;
}
.btn-outline-light {
  color: #f9fafc;
  border-color: #f9fafc;
}
.btn-outline-light:hover {
  color: #1e2022;
  background-color: #f9fafc;
  border-color: #f9fafc;
}
.btn-outline-dark {
  color: #132144;
  border-color: #132144;
}
.btn-outline-dark:hover {
  color: #fff;
  background-color: #132144;
  border-color: #132144;
}

/* Soft buttons */
.btn-soft-primary {
  color: #377dff;
  background-color: rgba(55, 125, 255, 0.1);
  border-color: transparent;
}
.btn-soft-primary.active,
.btn-soft-primary:active,
.btn-soft-primary:focus,
.btn-soft-primary:hover {
  color: #fff;
  background-color: #377dff;
  box-shadow: 0 4px 11px rgb(55 125 255 / 10%);
}
.btn-soft-secondary {
  color: #71869d;
  background-color: rgba(113, 134, 157, 0.1);
  border-color: transparent;
}
.btn-soft-secondary.active,
.btn-soft-secondary:active,
.btn-soft-secondary:focus,
.btn-soft-secondary:hover {
  color: #fff;
  background-color: #71869d;
  box-shadow: 0 4px 11px rgb(113 134 157 / 10%);
}
.btn-soft-success {
  color: #00c9a7;
  background-color: rgba(0, 201, 167, 0.1);
  border-color: transparent;
}
.btn-soft-success.active,
.btn-soft-success:active,
.btn-soft-success:focus,
.btn-soft-success:hover {
  color: #fff;
  background-color: #00c9a7;
  box-shadow: 0 4px 11px rgb(0 201 167 / 10%);
}
.btn-soft-danger {
  color: #ed4c78;
  background-color: rgba(237, 76, 120, 0.1);
  border-color: transparent;
}
.btn-soft-danger.active,
.btn-soft-danger:active,
.btn-soft-danger:focus,
.btn-soft-danger:hover {
  color: #fff;
  background-color: #ed4c78;
  box-shadow: 0 4px 11px rgb(237 76 120 / 10%);
}
.btn-soft-warning {
  color: #f5ca99;
  background-color: rgba(245, 202, 153, 0.1);
  border-color: transparent;
}
.btn-soft-warning.active,
.btn-soft-warning:active,
.btn-soft-warning:focus,
.btn-soft-warning:hover {
  color: #1e2022;
  background-color: #f5ca99;
  box-shadow: 0 4px 11px rgb(245 202 153 / 10%);
}
.btn-soft-info {
  color: #00c9db;
  background-color: rgba(0, 201, 219, 0.1);
  border-color: transparent;
}
.btn-soft-info.active,
.btn-soft-info:active,
.btn-soft-info:focus,
.btn-soft-info:hover {
  color: #fff;
  background-color: #00c9db;
  box-shadow: 0 4px 11px rgb(0 201 219 / 10%);
}
.btn-soft-light {
  color: #f9fafc;
  background-color: rgba(249, 250, 252, 0.1);
  border-color: transparent;
}
.btn-soft-light.active,
.btn-soft-light:active,
.btn-soft-light:focus,
.btn-soft-light:hover {
  color: #1e2022;
  background-color: #f9fafc;
  box-shadow: 0 4px 11px rgb(249 250 252 / 10%);
}
.btn-soft-dark {
  color: #132144;
  background-color: rgba(19, 33, 68, 0.1);
  border-color: transparent;
}
.btn-soft-dark.active,
.btn-soft-dark:active,
.btn-soft-dark:focus,
.btn-soft-dark:hover {
  color: #fff;
  background-color: #132144;
  box-shadow: 0 4px 11px rgb(19 33 68 / 10%);
}

/* Ghost buttons */
.btn-ghost-primary {
  color: #377dff;
  background-color: transparent;
}
.btn-ghost-primary.active,
.btn-ghost-primary.focus,
.btn-ghost-primary:active,
.btn-ghost-primary:focus,
.btn-ghost-primary:hover {
  color: #377dff;
  background-color: rgba(55, 125, 255, 0.1);
}
.btn-ghost-secondary {
  color: #71869d;
  background-color: transparent;
}
.btn-ghost-secondary.active,
.btn-ghost-secondary.focus,
.btn-ghost-secondary:active,
.btn-ghost-secondary:focus,
.btn-ghost-secondary:hover {
  color: #71869d;
  background-color: rgba(55, 125, 255, 0.1);
}
.btn-ghost-success {
  color: #00c9a7;
  background-color: transparent;
}
.btn-ghost-success.active,
.btn-ghost-success.focus,
.btn-ghost-success:active,
.btn-ghost-success:focus,
.btn-ghost-success:hover {
  color: #00c9a7;
  background-color: rgba(0, 201, 167, 0.1);
}
.btn-ghost-danger {
  color: #ed4c78;
  background-color: transparent;
}
.btn-ghost-danger.active,
.btn-ghost-danger.focus,
.btn-ghost-danger:active,
.btn-ghost-danger:focus,
.btn-ghost-danger:hover {
  color: #ed4c78;
  background-color: rgba(237, 76, 120, 0.1);
}
.btn-ghost-warning {
  color: #f5ca99;
  background-color: transparent;
}
.btn-ghost-warning.active,
.btn-ghost-warning.focus,
.btn-ghost-warning:active,
.btn-ghost-warning:focus,
.btn-ghost-warning:hover {
  color: #f5ca99;
  background-color: rgba(245, 202, 153, 0.1);
}
.btn-ghost-info {
  color: #00c9db;
  background-color: transparent;
}
.btn-ghost-info.active,
.btn-ghost-info.focus,
.btn-ghost-info:active,
.btn-ghost-info:focus,
.btn-ghost-info:hover {
  color: #00c9db;
  background-color: rgba(0, 201, 219, 0.1);
}
.btn-ghost-light {
  color: #f9fafc;
  background-color: transparent;
}
.btn-ghost-light.active,
.btn-ghost-light.focus,
.btn-ghost-light:active,
.btn-ghost-light:focus,
.btn-ghost-light:hover {
  color: #f9fafc;
  background-color: rgba(249, 250, 252, 0.1);
}
.btn-ghost-dark {
  color: #132144;
  background-color: transparent;
}
.btn-ghost-dark.active,
.btn-ghost-dark.focus,
.btn-ghost-dark:active,
.btn-ghost-dark:focus,
.btn-ghost-dark:hover {
  color: #132144;
  background-color: rgba(19, 33, 68, 0.1);
}

.btn-xs {
  font-size: 0.75rem;
  font-weight: 400;
  padding: 0.24063rem 0.65625rem;
  border-radius: 0.25rem;
}

// ALERTS
/* Default style */
.alert-primary {
  color: #fff;
  background-color: #377dff;
  border-color: #377dff;
}
.alert-secondary {
  color: #fff;
  background-color: #71869d;
  border-color: #71869d;
}
.alert-success {
  color: #fff;
  background-color: #00c9a7;
  border-color: #00c9a7;
}
.alert-danger {
  /* color: #fff;
  background-color: #ed4c78;
  border-color: #ed4c78; */
  color: #ed4c78;
  background-color: rgba(237, 76, 120, 0.1);
}
.alert-warning {
  color: #1e2022;
  background-color: #f5ca99;
  border-color: #f5ca99;
}
.alert-info {
  color: #fff;
  background-color: #00c9db;
  border-color: #00c9db;
}
.alert-light {
  color: #1e2022;
  background-color: #f9fafc;
  border-color: #f9fafc;
}
.alert-dark {
  color: #fff;
  background-color: #132144;
  border-color: #132144;
}

/* Soft style */
.alert-soft-primary {
  color: #377dff;
  background-color: rgba(55, 125, 255, 0.1);
}
.alert-soft-secondary {
  color: #71869d;
  background-color: rgba(113, 134, 157, 0.1);
}
.alert-soft-success {
  color: #00c9a7;
  background-color: rgba(0, 201, 167, 0.1);
}
.alert-soft-danger {
  color: #ed4c78;
  background-color: rgba(237, 76, 120, 0.1);
}
.alert-soft-warning {
  color: #f5ca99;
  background-color: rgba(245, 202, 153, 0.1);
}
.alert-soft-info {
  color: #00c9db;
  background-color: rgba(0, 201, 219, 0.1);
}
.alert-soft-light {
  color: #f9fafc;
  background-color: rgba(249, 250, 252, 0.1);
}
.alert-soft-dark {
  color: #132144;
  background-color: rgba(19, 33, 68, 0.1);
}

// BADGES
.badge {
  display: inline-block;
  padding: 0.3125em 0.5em;
  font-size: 75%;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: 0.3125rem;
  transition: all 0.2s ease-in-out;
}
.badge-primary {
  color: #fff;
  background-color: #377dff;
}
.badge-secondary {
  color: #fff;
  background-color: #71869d;
}
.badge-success {
  color: #fff;
  background-color: #00c9a7;
}
.badge-danger {
  color: #fff;
  background-color: #ed4c78;
}
.badge-warning {
  color: #1e2022;
  background-color: #f5ca99;
}
.badge-info {
  color: #fff;
  background-color: #00c9db;
}
.badge-light {
  color: #1e2022;
  background-color: #f9fafc;
}
.badge-dark {
  color: #fff;
  background-color: #132144;
}

/* Soft */
.badge-soft-primary {
  color: #377dff;
  background-color: rgba(55, 125, 255, 0.1);
}
.badge-soft-secondary {
  color: #71869d;
  background-color: rgba(113, 134, 157, 0.1);
}
.badge-soft-success {
  color: #00c9a7;
  background-color: rgba(0, 201, 167, 0.1);
}
.badge-soft-danger {
  color: #ed4c78;
  background-color: rgba(237, 76, 120, 0.1);
}
.badge-soft-warning {
  color: #ec9a3c !important;
  background-color: rgba(245, 202, 153, 0.1);
}
.badge-soft-info {
  color: #00c9db;
  background-color: rgba(0, 201, 219, 0.1);
}
.badge-soft-light {
  color: #f9fafc;
  background-color: rgba(249, 250, 252, 0.1);
}
.badge-soft-dark {
  color: #132144;
  background-color: rgba(19, 33, 68, 0.1);
}
/* Pill badges */
.badge-pill {
  padding-right: 0.6em;
  padding-left: 0.6em;
  border-radius: 10rem;
}
.badge-primary {
  color: #fff;
  background-color: #377dff;
}
.badge-secondary {
  color: #fff;
  background-color: #71869d;
}
.badge-success {
  color: #fff;
  background-color: #00c9a7;
}
.badge-danger {
  color: #fff;
  background-color: #ed4c78;
}
.badge-warning {
  color: #1e2022;
  background-color: #f5ca99;
}
.badge-info {
  color: #fff;
  background-color: #00c9db;
}
.badge-light {
  color: #1e2022;
  background-color: #f9fafc;
}
.badge-dark {
  color: #fff;
  background-color: #132144;
}
/* Links */
a.badge:focus,
a.badge:hover {
  text-decoration: none;
}
.badge-primary {
  color: #fff;
  background-color: #377dff;
}
a.badge-primary:focus,
a.badge-primary:hover {
  color: #fff;
  background-color: #045cff;
}
.badge-secondary {
  color: #fff;
  background-color: #71869d;
}
a.badge-secondary:focus,
a.badge-secondary:hover {
  color: #fff;
  background-color: #596d82;
}
.badge-success {
  color: #fff;
  background-color: #00c9a7;
}
a.badge-success:focus,
a.badge-success:hover {
  color: #fff;
  background-color: #00967d;
}
.badge-danger {
  color: #fff;
  background-color: #ed4c78;
}
a.badge-danger:focus,
a.badge-danger:hover {
  color: #fff;
  background-color: #e81e55;
}
.badge-warning {
  color: #1e2022;
  background-color: #f5ca99;
}
a.badge-warning:focus,
a.badge-warning:hover {
  color: #1e2022;
  background-color: #f0b26b;
}
.badge-info {
  color: #fff;
  background-color: #00c9db;
}
a.badge-info:focus,
a.badge-info:hover {
  color: #fff;
  background-color: #009aa8;
}
.badge-light {
  color: #1e2022;
  background-color: #f9fafc;
}
a.badge-light:focus,
a.badge-light:hover {
  color: #1e2022;
  background-color: #d7deeb;
}
.badge-dark {
  color: #fff;
  background-color: #132144;
}
a.badge-dark:focus,
a.badge-dark:hover {
  color: #fff;
  background-color: #080e1c;
}
.badge-soft-primary {
  color: #377dff;
  background-color: rgba(55, 125, 255, 0.1);
}
a.badge-soft-primary:focus,
a.badge-soft-primary:hover {
  color: #fff;
  background-color: #377dff;
}
.badge-soft-secondary {
  color: #71869d;
  background-color: rgba(113, 134, 157, 0.1);
}
a.badge-soft-secondary:focus,
a.badge-soft-secondary:hover {
  color: #fff;
  background-color: #71869d;
}
.badge-soft-success {
  color: #00c9a7;
  background-color: rgba(0, 201, 167, 0.1);
}
a.badge-soft-success:focus,
a.badge-soft-success:hover {
  color: #fff;
  background-color: #00c9a7;
}
.badge-soft-danger {
  color: #ed4c78;
  background-color: rgba(237, 76, 120, 0.1);
}
a.badge-soft-danger:focus,
a.badge-soft-danger:hover {
  color: #fff;
  background-color: #ed4c78;
}
.badge-soft-warning {
  color: #ec9a3c;
  background-color: rgba(245, 202, 153, 0.1);
}
a.badge-soft-warning:focus,
a.badge-soft-warning:hover {
  background-color: #f5ca99;
}
.badge-soft-info {
  color: #00c9db;
  background-color: rgba(0, 201, 219, 0.1);
}
a.badge-soft-info:focus,
a.badge-soft-info:hover {
  color: #fff;
  background-color: #00c9db;
}
.badge-soft-light {
  color: #f9fafc;
  background-color: rgba(249, 250, 252, 0.1);
}
a.badge-soft-light:focus,
a.badge-soft-light:hover {
  color: #1e2022;
  background-color: #f9fafc;
}
.badge-soft-dark {
  color: #132144;
  background-color: rgba(19, 33, 68, 0.1);
}
a.badge-soft-dark:focus,
a.badge-soft-dark:hover {
  color: #fff;
  background-color: #132144;
}

// FORMS

.form-control {
  display: block;
  width: 100%;
  height: calc(1.6em + 1.21875rem);
  padding: 0.54688rem 0.875rem;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.6;
  color: #1e2022;
  background-color: #fff;
  background-clip: padding-box;
  border: 0.0625rem solid #e7eaf3 !important;
  border-radius: 0.3125rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
.form-control:focus {
  color: #212529 !important;
  background-color: #fff !important;
  border-color: #86b7fe !important;
  outline: 0 !important;
  box-shadow: 0 0 0 0.25rem rgb(13 110 253 / 25%) !important;
}
.help-block {
  display: block;
  width: 100%;
  margin-top: 0.25rem;
  font-size: 0.875em;
  color: #dc3545;
}

/* CORTEX-A1 CHAT ASSISTANT */
#cortex-chat-wrapper {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

#cortex-chat-trigger {
    width: 60px;
    height: 60px;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

#cortex-chat-trigger:hover {
    transform: scale(1.1);
}

#cortex-chat-window {
    width: 480px;
    height: 640px;
    max-height: calc(100vh - 120px);
    background: #fff;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    transform-origin: bottom right;
}

@media (max-width: 600px) {
    #cortex-chat-window {
        width: calc(100vw - 20px);
        height: calc(100vh - 120px);
        right: 10px;
    }
}

.cortex-chat-collapsed #cortex-chat-window {
    transform: scale(0);
    opacity: 0;
    pointer-events: none;
    height: 0;
    margin-bottom: 0;
}

/* When collapsed, the chat window keeps its 480px layout width (transform:scale
   and height:0 only hide it visually), so the wrapper stays ~480px wide. With
   z-index 1050 and default pointer-events, that invisible strip along the
   bottom-right swallows clicks meant for fixed action buttons beneath it (e.g.
   "Schedule Order" on the schedule board). Let clicks pass through the collapsed
   wrapper — only the 60px trigger stays interactive. */
#cortex-chat-wrapper.cortex-chat-collapsed {
    pointer-events: none;
}
.cortex-chat-collapsed #cortex-chat-trigger {
    pointer-events: auto;
}

.cortex-chat-collapsed #cortex-chat-trigger i:before {
    content: "\f544"; /* robot icon */
}

.cortex-chat-expanded #cortex-chat-trigger i:before {
    content: "\f00d"; /* times icon */
}

.cortex-chat-body {
    flex: 1;
    overflow-y: auto;
    font-size: 0.9rem;
    line-height: 1.5;
}

.message-bot .message-content {
    background: #f0f4f8 !important;
    color: #2d3748;
    border-bottom-left-radius: 4px !important;
}

.message-user {
    display: flex;
    justify-content: flex-end;
}

.message-user .message-content {
    background: #377dff !important;
    color: #fff;
    border-bottom-right-radius: 4px !important;
}

.suggestion-chip {
    font-size: 11px;
    padding: 4px 12px;
    border-color: #e2e8f0;
    color: #4a5568;
}

.suggestion-chip:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
    color: #2d3748;
}

.badge-soft-light {
    background: rgba(255,255,255,0.2);
    color: #fff;
}
