/*-------------------------------- GENERAL --------------------------------*/
html[dir="ltr"] li a {
  margin: 0;
}

::-webkit-scrollbar {
  width: 6px;
  background-color: #d3d3d3;
  height: 7px;
}

::-webkit-scrollbar-thumb {
  border-radius: 10px;
  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  background-color: var(--nsw-palette-grey-02);
}

.ui-widget {
  font-family: var(--nsw-font-family);
}

.cursor-pointer {
  cursor: pointer;
}

.cursor-help {
  cursor: help;
}

.spacer {
  min-height: 20px;
  background: #f2f2f2;
}

.help-pane-opener {
  color: #9f9f9f;
  margin-top: 10px;
  cursor: pointer;
}

.hover-red:hover,
.focus-red:focus {
  background-color: var(--nsw-palette-error-red);
  color: white;
}

.hover-blue:hover,
.focus-blue:focus,
.focus-blue[aria-expanded="true"] {
  background-color: var(--nsw-brand-light) !important;
  color: var(--nsw-brand-dark) !important;
}

.hover-dark-blue:hover,
.focus-dark-blue:focus {
  background-color: var(--nsw-brand-dark);
  color: var(--nsw-brand-light);
}

.focus-color-white:focus {
  color: white !important;
}

.font-xs {
  font-size: var(--nsw-font-size-xs);
}

.font-sm {
  font-size: var(--nsw-font-size-sm);
}

.font-md {
  font-size: var(--nsw-font-size-md);
}

.icon-xs {
  font-size: var(--nsw-font-size-xs);
}

.icon-sm {
  font-size: var(--nsw-font-size-sm);
}

.icon-lg {
  font-size: var(--nsw-font-size-lg);
}

.material-icons,
.material-icons-outlined {
  border-radius: 0.25rem;
}

.input-6char {
  width: 7rem;
}

.dataTable {
  width: 100% !important;
}

.no-shadow {
  box-shadow: none !important;
}

.sticky-to-top {
  position: fixed;
  width: -webkit-fill-available;
  box-shadow: 0 4px 6px rgba(10, 10, 10, 0.3), 0 0 0 2px rgba(10, 10, 10, 0.3);
}

/*-------------------------------- BODY --------------------------------*/
#body-main-section {
  background-color: var(--nsw-off-white);
  min-height: 80vh;
}

.navbar-start {
  padding-left: 20px !important;
}

.navbar {
  z-index: unset;
  margin-bottom: 0px !important;
}

#navbar-top {
  position: relative;
  height: 5rem;
}

#progressBar-navStart {
  flex-grow: 1;
  justify-content: center;
  z-index: 0;
}

#left-pane-btn-group {
  position: absolute;
  left: 0.5rem;
  bottom: 0;
}

#left-pane-btn-group .navbar-item {
  padding: 0;
}
#left-pane-btn-group .icon-btn {
  padding: 0.3rem;
}

#left-pane-btn-group a {
  text-decoration: none;
  background: transparent;
  outline: transparent;
  color: #4a4a4a;
}

#right-pane-btn-group {
  right: 0;
  bottom: 0;
}

#right-pane-btn-group .navbar-item {
  padding: 0;
}
#right-pane-btn-group .icon-btn {
  padding: 0.3rem;
}

.icon-btn {
  padding: 4px;
}

.icon-btn:hover {
  background: var(--nsw-palette-hover);
}

.icon-btn:focus {
  border: 3px solid var(--nsw-palette-focus);
  border-radius: 13px;
}

.material-icons[disabled="disabled"] {
  cursor: not-allowed !important;
  background: lightgrey !important;
  background-color: transparent !important;
}

.vertical-line {
  padding: 0.5px;
  background-color: var(--nsw-grey-03);
}

.nsw-tag.tag {
  border-radius: 1.5rem;
}

/*-------------------------------- NAV TWO --------------------------------*/
#home-btn {
  outline: none !important;
  text-decoration: none;
}

#copresence-icon {
  display: none;
  cursor: pointer;
  padding: 0px;
  margin: 0;
  display: flex;
  justify-content: space-around;
}

/* --------------------------  PROGRESS BAR  --------------------------*/
a.steps-marker {
  text-decoration: none !important;
}

/*-------------------------------- Journey Map Accordion & Comment Pane --------------------------------*/
.path-container,
.path-comment-container {
  /* never make this relative, otherwise dragging won't work. */
  margin-bottom: 40px;
}

.phase-header-container,
.phase-header-comment-container {
  background-color: var(--nsw-brand-dark);
  color: white;
  display: flex;
}

.path-content-container {
  margin-top: -30px;
  /* padding-top: 50px; */
  padding-top: 15px; /* if changing this height for comment pane, maybe create another class to hnadle that. */
  border: solid 1px #dbdbdb;
  background-color: var(--nsw-off-white);
  padding-left: 0;
  margin-bottom: 0rem !important;
}

/*-------------------------------- LEFT PANES --------------------------------*/
#behaviour-filter-pane {
  & .b-checklist-container {
    height: 86vh;
    position: sticky;
    top: 0;
    overflow-y: auto;
    overflow-x: hidden;
  }

  & .pane-header {
    margin-bottom: 24px !important;
  }

  & .phase-header-container,
  & .path-header-filter-container {
    height: auto !important;
    font-size: 1rem;
    font-weight: 700;
    padding: 0.5rem;
  }

  & .path-header-filter-container {
    background-color: var(--path-color);
  }

  & .behaviour-filter-content-container {
    padding: 0.5rem;
  }

  & .behaviour-filter-item {
    &:not(:first-child) {
      margin-top: 0.75rem;
    }
  }
}

/*------------------------------------------------------ JMAP VIS ------------------------------------------------------*/
.vis-map-embedded {
  border-top: 1px solid grey;
  padding: 1rem 1.5rem;
}

.vis-map-embedded-title {
  margin-bottom: 0.75rem;
  color: var(--nsw-brand-dark);
}

#vis-pane {
  position: fixed;
  left: 1rem;
  z-index: 1000;
  vertical-align: top;
  width: 15rem;

  & .vis-pane-top-bar {
    cursor: grab;
  }
}

.vis-container {
  /* height: 86vh; */
  /* overflow-y: auto; */
}

#mermaid-embedded {
  width: 100%;
  max-height: 500px;

  & svg {
    width: 100%;
    height: 100%;
    max-width: 100% !important;
    max-height: 100% !important;
  }

  &.zoom-enabled {
    height: 500px;

    & svg {
      height: 500px;
    }
  }
}

#mermaid,
#mermaid-embedded {
  overflow: hidden;
  overflow: hidden;
  border: none;

  & g.cluster {
    & > rect {
      fill: white;
      stroke: var(--nsw-brand-dark);
    }

    & span.nodeLabel {
      color: var(--nsw-brand-dark);
      margin-top: 2rem;
    }
  }

  & .label,
  .cluster-label {
    font-family: "Public Sans", Arial, sans-serif !important;
    font-weight: 400;
  }

  & .node rect {
    stroke-width: 2px !important;
  }
}

/* vis node tooltip */
.mermaidTooltip {
  position: absolute;
  text-align: center;
  padding: 2px 4px;
  font-size: 14px;
  background: #000000;
  color: white;
  pointer-events: none;
  z-index: 1001;
}

/*-------------------------------- RIGHT PANES --------------------------------*/
#help-pane,
#comment-pane {
  position: absolute;
  right: 1rem;
  vertical-align: top;
  z-index: 900;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

#vis-btn.popup-active {
  background-color: var(--nsw-brand-dark);
  color: white;
  border-radius: 6px;
}

#vis-pane > .sticky-pane,
#help-pane > .sticky-pane,
#comment-pane > .sticky-pane {
  position: sticky;
  top: 5.5rem;
  z-index: 2 !important;
}

.help-block-container {
  height: 86vh;
  overflow-y: auto;
}

.behaviour-seqno {
  font-weight: normal;
  font-size: var(--behaviour-seq-no-font-size);
}

.all-behaviour-comments-container {
  padding: 0;
  width: 100%;
  height: 86vh;
  overflow-y: auto;
}

.phase-header-comment-container {
  position: sticky;
  top: 0;
  z-index: 1;
  font-size: 1em;
  font-weight: normal;
}

.phase-comment-title {
  font-weight: bold;
}

.path-header-comment-container {
  background-color: var(--path-color);
  display: flex;
  position: sticky;
  top: 54px;
  font-size: 1em;
  font-weight: normal;
}

.path-comment-title {
  font-weight: bold;
}

@media (min-width: 1024px) and (max-width: 1439px) {
  .path-header-comment-container {
    background-color: var(--path-color);
    display: flex;
    position: sticky;
    top: 40px;
  }
}

.behaviour-comment-accordion-container {
  background-color: var(--nsw-off-white);
}
.behaviour-title-comment {
  font-weight: 700;
}

.behaviour-comment-seqno {
  font-weight: normal;
  font-size: var(--behaviour-seq-no-font-size);
}

.behaviour-title-comment-container {
  /*margin-left: 5px;*/
  padding: 0.5rem;
  background-color: var(--nsw-white);
}

.behaviour-comment {
  font-size: 14px;
}

.behavior-tab-name-title {
  padding: 2px !important;
  margin-top: 1px !important;
  background: none;
  font-size: 14px !important;
}

.behavior-comment-content {
  padding: 0.5rem;
  border: 1px solid;
  border-radius: 5px;
  min-height: 40px;
}

.behavior-comment-content.has-comment {
  background-color: #cbedfd;
}

.comment-error-helper {
  max-height: 50px;
  border: solid red;
  border-radius: 5px;
}

/*-------------------------------- Container --------------------------------*/

/* sticky title and save div */
.sticky-header {
  top: 0rem;
  z-index: 1000;
  background: white;
}
#v1AuditWarning {
  /* box-shadow: 0 4px 6px rgba(10, 10, 10, 0.3); */
}
#v1AuditWarning.sticky-to-top {
  top: 5rem;
  z-index: 800;
  box-shadow: 0 4px 6px rgba(10, 10, 10, 0.3);
}

#gloablViewModeAlert {
  top: 5rem;
  z-index: 800;
}

#gloablViewModeAlert.third-top-alert {
  top: 10rem;
}

#lastSaved-text {
  color: #9b9b9b;
  align-self: flex-end;
}

/* icon size */
.icon-xl {
  font-size: 36px;
}

.icon-md {
  font-size: var(--nsw-font-size-md);
}

/*---------------------------------------------------- STICKY PAGE HEADER ----------------------------------------------------*/
.header-nav-btns {
  padding: 0 0.5rem;
  border-radius: 0.25rem;
}

#second-nav {
  height: 6rem;
}

.sticky-header {
  height: 5rem;
  margin-bottom: 0 !important;
}

#sticky-header-content-left {
  align-items: center;
  display: flex;
}
#header-nav-btn-back {
  position: relative;
  right: 0.5rem;
}
#header-nav-btn-next {
  position: relative;
  left: 0.5rem;
}

.audit-page-title-container {
  padding-top: 1.5rem;
}
.title-tag {
  letter-spacing: 0.5px;
}

#page-name-header {
  color: var(--nsw-brand-dark);
}

#btn-save {
  background-color: #f0f0f0;
  color: #4a4a4a;
}

#btn-save.active,
#btn-save:hover {
  background-color: var(--nsw-status-error);
  color: white;
}

#gloablViewModeAlert {
  box-shadow: 0 4px 6px rgba(10, 10, 10, 0.3);
  margin-bottom: 0 !important;
}
#gloablViewModeAlert {
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
}

/* #gloablViewModeAlert .nsw-global-alert__content {
} */

/*---------------------------------------------------- HELP PANE ----------------------------------------------------*/

.help-block {
  background-color: var(--nsw-status-info-bg);
}

.help-block-header-container {
  position: relative;
  margin-bottom: 0.5rem;
}

.help-block-icon {
  position: absolute;
  right: -0.7rem;
  top: -0.5rem;
}

.help-block-header {
  font-weight: 600;
  font-size: var(--nsw-font-size-sm);
}

.help-block-content-container label ~ p {
  margin-top: 0;
}

.help-block-content-container p {
  font-size: var(--nsw-font-size-xs);
}

.help-block-container ol,
.help-block-container ul {
  margin-left: 1.5rem !important;
  font-size: var(--nsw-font-size-xs);
  margin-top: 0;
}

.help-block-container ul {
  list-style: disc;
}

.help-block-container label:not(:first-child) {
  margin-top: 1.5rem;
}

.help-block-container label {
  margin-bottom: 0.3rem;
  font-size: var(--nsw-font-size-xs);
}

.help-block-btn {
  background: var(--nsw-palette-info-blue-bg);
  border: transparent;
  height: 2rem;
  width: 15rem;
}

.help-block-btn-icon {
  font-size: var(--nsw-font-size-md) !important;
  bottom: 2px !important;
}

.help-block-btn-label {
  position: relative;
  bottom: 6px;
  font-size: initial;
}

@keyframes flashBorder {
  0% {
    border-color: transparent;
  }
  50% {
    border-color: var(--nsw-focus);
  }
  100% {
    border-color: transparent;
  }
}

.flash-element {
  border: 3px solid transparent;
  animation: flashBorder 0.2s ease-in-out infinite;
}

.solid-element {
  border: 3px solid var(--nsw-focus);
}
/*---------------------------------------------------- COMMENT PANE ----------------------------------------------------*/

.truncate {
  display: table-cell;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.behaviour-comment-container {
  margin-bottom: 1rem;
}
.comment-behaviour-title {
  background-color: var(--nsw-grey-04);
  padding: 0.2rem;
  font-weight: 600;
  display: table;
  table-layout: fixed;
  width: 100%;
}

.single-behaviour-comments-container {
  /* border: 1px solid var(--nsw-grey-03);
  border-top: 0; */
  padding-bottom: 1rem;
  padding-left: 0.2rem;
  padding-right: 0.2rem;
  padding-top: 0.2rem;
}

.behaviour-comment-box {
  margin-top: 5px;
  margin-left: 15px;
  /*padding: 0.5rem;*/
  /*background-color: var(--nsw-white);*/
  border-radius: 5px;
}

.comment-icon-edit,
.comment-icon-launch {
  padding: 0.1rem;
}

.behaviour-comment {
  white-space: pre-wrap;
}

.behaviour-comment-edit {
  background: #e8f9ff;
  width: 100%;
  height: 100%;
  padding: 5px;
}

/*---------------------------------------------------- SELECT PICKER ----------------------------------------------------*/
.bootstrap-select:not([class*="col-"]):not([class*="form-control"]):not(.input-group-btn) {
  width: 100% !important;
}

.bootstrap-select > .dropdown-toggle {
  padding-right: 0.5rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  padding-left: 0.9rem;
  height: 3rem;
}

.selectpicker-dropdown-icon {
  font-size: var(--nsw-font-size-xl);
  vertical-align: bottom;
}

.bootstrap-select .dropdown-menu li a,
.bootstrap-select .dropdown-menu li a:hover {
  padding-right: 0.5rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  padding-left: 0.9rem;
}
.dropdown-menu {
  z-index: 1000;
}

.dropdown-menu > li > a:focus,
.dropdown-menu > li > a:hover {
  border: none;
}

.bootstrap-select .dropdown-menu li a span.text {
  display: inline-block;
  font-family: var(--nsw-font-family);
  font-size: var(--nsw-font-size-sm);
  line-height: var(--nsw-line-height-sm-desktop);
}

.bs-searchbox .form-control {
  padding: 0.6875rem 1rem;
  border-radius: 0.25rem;
  height: 2.5rem;
}

.sorting_disabled::after,
.sorting_disabled::before {
  display: none !important;
}

/* portal user dropdown */
#user-options-btn li a {
  padding: 3px 20px;
}

.help-block-tag {
  font-size: var(--nsw-font-size-sm);
}

.level-help-tags {
  /* padding: 0rem 4rem; */
  font-size: small;
}

p.loadingElement {
  color: var(--nsw-muted);
  display: none;
}

.zd-input__inner {
  height: 3rem !important;
  font-size: var(--nsw-font-size-sm-desktop) !important;
  border: 1px solid var(--nsw-grey-01) !important;
  color: black !important;
}

.zd-input__inner:disabled {
  border-color: var(--nsw-grey-03) !important;
  cursor: default !important;
}

.zd-dropdown-icon {
  color: black;
  cursor: pointer;
  font-size: var(--nsw-font-size-xl);
  position: relative;
  top: 7px;
}

.zd-cascader-menu__wrap {
  height: 405px !important;
}

.zd-cascader-menu__list {
  font-size: 16px;
  padding-right: 0.5 rem;
  padding-left: 0.5 rem;
  padding-top: 0.5 rem;
  padding-bottom: 0.5 rem;
}

.zd-cascader-node.is-selectable.in-checked-path {
  color: black !important;
}

.zd-cascader-node.in-active-path {
  color: black !important;
  background-color: var(--nsw-text-hover) !important;
  font-weight: normal !important;
}

.zd-scrollbar {
  overflow-x: hidden !important;
  position: relative !important;
}

.nsw-button--dark:focus {
  outline: solid 3px var(--nsw-focus);

  outline-offset: 3px;
}

#center-container > section.nsw-tabs__content {
  border: none !important;
}

/*---------------------------------------------------- SWIPER SLIDER ----------------------------------------------------*/
swiper-container {
  width: 100%;
  height: 100%;
}

swiper-slide {
  text-align: center;
  font-size: 18px;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
}

swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-title {
  text-align: left !important;
  padding-bottom: 10px;
}

.slide-description {
  text-align: left !important;
  padding-top: 10px;
}

.input:disabled {
  cursor: default;
}

.time-input:disabled {
  cursor: default;
}

input:disabled + .nsw-button {
  pointer-events: none; /* Disable pointer events for the button */
}

/*---------------------------------------  FILTER ROW ---------------------------------------*/
.customer-filter-btn,
.customerPercentage-filter-btn {
  border-radius: 2rem;
  width: 16rem !important;
  background: white;
  color: black;
}

/* .nonCustomer-filter-btn.customer-filter-btn,
.customerPercentage-filter-btn {
  width: 16rem !important;
} */

.customer-filter-btn:hover,
.customerPercentage-filter-btn:hover {
  outline: solid 3px var(--nsw-focus);
  outline-offset: 3px;
}

.filter-container {
  margin: 0.5rem 1.5rem;
}

/*---------------------------------------  Checkbox Toggle ---------------------------------------*/
.switch[type="checkbox"] {
  outline: 0;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  display: inline-block;
  position: absolute;
  opacity: 0;
}

.switch[type="checkbox"] + label {
  position: relative;
  display: initial;
  font-size: 1rem;
  line-height: initial;
  padding-left: 3.5rem;
  padding-top: 0.2rem;
  cursor: pointer;
}

.switch[type="checkbox"].is-rounded + label::before,
.switch[type="checkbox"].is-rounded + label:before {
  border-radius: 24px;
}

.switch[type="checkbox"] + label::before,
.switch[type="checkbox"] + label:before {
  position: absolute;
  display: block;
  top: 0;
  left: 0;
  width: 3rem;
  height: 1.5rem;
  border: 0.1rem solid transparent;
  border-radius: 4px;
  background: var(--nsw-grey-03);
  content: "";
}
.switch[type="checkbox"].is-rounded + label::after,
.switch[type="checkbox"].is-rounded + label:after {
  border-radius: 50%;
}

.switch[type="checkbox"]:checked + label::before,
.switch[type="checkbox"]:checked + label:before {
  background: var(--nsw-brand-dark);
}

.switch[type="checkbox"]:checked + label::after {
  left: 1.625rem;
}

.switch[type="checkbox"] + label::after,
.switch[type="checkbox"] + label:after {
  display: block;
  position: absolute;
  top: 0.25rem;
  left: 0.25rem;
  width: 1rem;
  height: 1rem;
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
  border-radius: 4px;
  background: #fff;
  transition: all 0.25s ease-out;
  content: "";
}
