@import '~bootstrap/scss/bootstrap.scss';
/* Add application styles & imports to this file! */
@import '~jsoneditor/dist/jsoneditor.min.css';

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700&display=swap');

@import './assets/variables';
@import '~bootstrap/scss/functions';
@import '~bootstrap/scss/variables';
@import '~bootstrap/scss/mixins';



.card {
  border: 0.0625rem solid rgba(231, 234, 243, 0.7);
  box-shadow: 0 6px 12px rgba(140, 152, 164, 0.075);
  border-radius: 10px;
}

.badge-economy {
  position: absolute;
  top: -42px;
  left: 0;
  width: 100%;
  font-size: 0.9rem;
  background-color: $info-color;
  padding: 6px;
  font-weight: 600;
  color: #fff;
  border-top-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

/* ==============================================================
Bootstrap tweaks
===============================================================*/

/* override hover color for dropdown-item forced by bootstrap to all a:not([href]):not([tabindex]) elements in _reboot.scss */
a:not([href]):not([tabindex]):hover.dropdown-item {
  color: $dropdown-link-hover-color;
}

/* override .dropdown-item.active background-color on hover */
.dropdown-item.active:hover {
  background-color: mix($dropdown-link-hover-bg, $dropdown-link-active-bg, 50%);
}

.dropdown-item:hover {
  color: $dropdown-link-hover-color;
}

/* ==========================================================================
Browser Upgrade Prompt
========================================================================== */
.browserupgrade {
  margin: 0.2em 0;
  background: #ccc;
  color: #000;
  padding: 0.2em 0;
}

/* ==========================================================================
Generic styles
========================================================================== */

/* Error highlight on input fields */
.ng-valid[required],
.ng-valid.required {
  /*border-left: 5px solid green;*/
}

.ng-invalid:not(form) {
  /*border-left: 5px solid red;*/
}

/* other generic styles */

.jh-card {
  padding: 1.5%;
  margin-top: 20px;
  border: none;
}

.error {
  color: white;
  background-color: red;
}

.pad {
  padding: 10px;
}

.w-40 {
  width: 40% !important;
}

.w-60 {
  width: 60% !important;
}

.break {
  white-space: normal;
  word-break: break-all;
}

.readonly {
  background-color: #eee;
  opacity: 1;
}

.footer {
  border-top: 1px solid rgba(0, 0, 0, 0.125);
}

.hand,
[jhisortby] {
  cursor: pointer;
}

/* ==========================================================================
Custom alerts for notification
========================================================================== */
.alerts {
  .alert {
    text-overflow: ellipsis;

    pre {
      background: none;
      border: none;
      font: inherit;
      color: inherit;
      padding: 0;
      margin: 0;
    }

    .popover pre {
      font-size: 10px;
    }
  }

  .jhi-toast {
    position: fixed;
    width: 100%;

    &.left {
      left: 5px;
    }

    &.right {
      right: 5px;
    }

    &.top {
      top: 55px;
    }

    &.bottom {
      bottom: 55px;
    }
  }
}

@media screen and (min-width: 480px) {
  .alerts .jhi-toast {
    width: 50%;
  }
}

/* ==========================================================================
entity detail page css
========================================================================== */
.row.jh-entity-details > {
  dd {
    margin-bottom: 15px;
  }
}

@media screen and (min-width: 768px) {
  .row.jh-entity-details > {
    dt {
      margin-bottom: 15px;
    }

    dd {
      border-bottom: 1px solid #eee;
      padding-left: 180px;
      margin-left: 0;
    }
  }
}

/* ==========================================================================
ui bootstrap tweaks
========================================================================== */
.nav,
.pagination,
.carousel,
.panel-title a {
  cursor: pointer;
}

.thread-dump-modal-lock {
  max-width: 450px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* jhipster-needle-scss-add-main JHipster will add new css style */

#wrapper {
  overflow-x: hidden;
}

#wrapper.toggled #sidebar {
  margin-left: 0;
}

#page-content {
  min-width: 100vw;
}

@include media-breakpoint-up(md) {
  #wrapper.toggled #sidebar {
    margin-left: -$sidebar-width;
  }
  #page-content {
    min-width: 0;
    width: 100%;
  }
}

@media (max-width: 576px) {
  body:not(.page-login) {
    padding-top: 96px;
  }
}

@media (min-width: 576px) {
  body:not(.page-login) {
    #page-content {
      padding-left: 160px;
    }
  }
}

#loader {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
}

.loader-information {
  color: #fff;
  margin-left: 15px;
}

/** Override Sentry modal **/
.sentry-error-embed-wrapper {
  .powered-by {
    display: none !important;
  }

  .btn {
    background-color: var(--menu-color) !important;
    border-color: var(--menu-color) !important;
  }
}
