/* use this file to do all css changes related to NSW components */
/* Author @safwan */

:root {
  --path-color: #d9d9d9;
  /* Colours */
  --nsw-brand-dark: var(--nsw-palette-blue-01);
  --nsw-brand-light: var(--nsw-palette-blue-04);
  --nsw-brand-accent: var(--nsw-palette-red-02);
  --nsw-brand-supplementary: var(--nsw-palette-blue-02);
  --nsw-muted: #838383;

  --nsw-text-dark: var(--nsw-palette-grey-01);
  --nsw-text-light: var(--nsw-palette-white);
  --nsw-focus: var(--nsw-palette-focus);
  --nsw-text-hover: var(--nsw-palette-hover);
  --nsw-text-visited: var(--nsw-palette-visited);

  --nsw-black: var(--nsw-palette-black);
  --nsw-white: var(--nsw-palette-white);
  --nsw-off-white: var(--nsw-palette-off-white);
  --nsw-grey-01: var(--nsw-palette-grey-01);
  --nsw-grey-02: var(--nsw-palette-grey-02);
  --nsw-grey-03: var(--nsw-palette-grey-03);
  --nsw-grey-04: var(--nsw-palette-grey-04);

  --nsw-status-info: var(--nsw-palette-info-blue);
  --nsw-status-info-bg: var(--nsw-palette-info-blue-bg);
  --nsw-status-success: var(--nsw-palette-success-green);
  --nsw-status-success-bg: var(--nsw-palette-success-green-bg);
  --nsw-status-warning: var(--nsw-palette-warning-orange);
  --nsw-status-warning-bg: var(--nsw-palette-warning-orange-bg);
  --nsw-status-error: var(--nsw-palette-error-red);
  --nsw-status-error-bg: var(--nsw-palette-error-red-bg);

  --nsw-black-rgb: 0, 0, 0;
  --nsw-white-rgb: 255, 255, 255;

  /* Font */
  --behaviour-seq-no-font-size: 11px;
  --nsw-font-family: "Public Sans", sans-serif;
  --nsw-font-size: 16px;
  --nsw-line-height: 1.5;
  --nsw-font-normal: 400;
  --nsw-font-bold: 700;

  --nsw-font-size-xxs-mobile: 0.75rem;
  --nsw-font-size-xxs-desktop: 0.75rem;
  --nsw-line-height-xxs-mobile: 1.5;
  --nsw-line-height-xxs-desktop: 1.5;

  --nsw-font-size-xs-mobile: 0.875rem;
  --nsw-font-size-xs-desktop: 0.875rem;
  --nsw-line-height-xs-mobile: 1.35;
  --nsw-line-height-xs-desktop: 1.35;

  --nsw-font-size-sm-mobile: 1rem;
  --nsw-font-size-sm-desktop: 1rem;
  --nsw-line-height-sm-mobile: 1.5;
  --nsw-line-height-sm-desktop: 1.5;

  --nsw-font-size-md-mobile: 1.125rem;
  --nsw-font-size-md-desktop: 1.25rem;
  --nsw-line-height-md-mobile: 1.33;
  --nsw-line-height-md-desktop: 1.4;

  --nsw-font-size-lg-mobile: 1.375rem;
  --nsw-font-size-lg-desktop: 1.5rem;
  --nsw-line-height-lg-mobile: 1.25;
  --nsw-line-height-lg-desktop: 1.33;

  --nsw-font-size-xl-mobile: 1.75rem;
  --nsw-font-size-xl-desktop: 2rem;
  --nsw-line-height-xl-mobile: 1.25;
  --nsw-line-height-xl-desktop: 1.25;

  --nsw-font-size-xxl-mobile: 2.25rem;
  --nsw-font-size-xxl-desktop: 3rem;
  --nsw-line-height-xxl-mobile: 1.25;
  --nsw-line-height-xxl-desktop: 1.25;

  /* Borders */
  --nsw-border-radius: 0.25rem;

  /* Shadows */
  --nsw-box-shadow: 0 0.25rem 0.75rem 0 rgba(var(--nsw-black-rgb), 0.15);

  /* Maximum width of container */
  --nsw-container-width: 75rem;

  /* Review CX colors */
  --nsw-green-lighter-v2: #defae1;
  --nsw-green-light-v2: #a8edb3;
  --nsw-green-dark-v2: #00aa45;

  --nsw-yellow-lighter-v2: #fff1c5;
  --nsw-yellow-light-v2: #fde79a;
  --nsw-yellow-dark-v2: #faaf05;

  --nsw-orange-lighter-v2: #fddabf;
  --nsw-orange-light-v2: #ffc699;
  --nsw-orange-dark-v2: #f3631b;

  --nsw-red-lighter-v2: #ffcad1;
  --nsw-red-light-v2: #ffb8c1;
  --nsw-red-dark-v2: #d7153a;

  --nsw-teal-lighter-v2: #daf2f1;
  --nsw-teal-light-v2: #b2e6ec;
  --nsw-teal-dark-v2: #2e808e;

  --nsw-grey-lighter-v2: #ebebeb;
  --nsw-grey-light-v2: #d7d7d7;
  --nsw-grey-dark-v2: #495054;

  /* Actor aux colours */
  --sludge-brandeis-blue: #146cfd;
  --sludge-steel-pink: #d912ae;
  --sludge-uranian-blue: #a5dbf9;
  --sludge-lavender-pink: #f4b5e6;
  --sludge-sunset: #ffce99;
}

/* copied from NSW site */
.nsw-docs__version {
  font-size: var(--nsw-font-size-xs-mobile);
  line-height: var(--nsw-line-height-xs-mobile);
  font-weight: var(--nsw-font-normal);
  padding: 0.125rem 1rem;
  border: 1px solid var(--nsw-brand-dark);
  border-radius: 1.5rem;
  color: var(--nsw-brand-dark);
  text-decoration: none;
  display: inline-block;
  margin-left: 1rem;
}

#content {
  background-color: var(--nsw-off-white);
}

.nsw-docs__wrapper {
  display: flex;
}

.nsw-side-nav {
  min-width: 15.75rem;
  border-right: 1px solid var(--nsw-grey-04);
  background-color: var(--nsw-white);
  padding: 1rem;
}

.nsw-docs__intro {
  padding: 3rem 3.25rem;
  background-color: var(--nsw-white);
}

.nsw-tabs {
  padding: 0 3.25rem;
  background-color: var(--nsw-white);
  margin-top: 0px;
}

.nsw-tab-with-icon {
  display: flex !important;
}

.nsw-tab-with-icon .tick-icon {
  font-size: 22px;
  color: var(--nsw-status-success);
}

.nsw-tab-with-icon .warning-icon {
  font-size: 21px;
  color: var(--nsw-status-warning);
}

.nsw-docs__main {
  background-color: var(--nsw-off-white);
  width: 100%;
  width: -webkit-fill-available;
}

.nsw-header__container {
  margin-left: 0px;
  max-width: 100%;
}

.nsw-form {
  padding: 1rem;
  background-color: var(--nsw-white);
  margin-top: 0.5rem;
}

/* .nsw-form__group {
  margin-top: 0rem !important;
} */

.nsw-form__checkbox-input:first-child + .nsw-form__checkbox-label {
  width: max-content;
}

.nsw-button {
  text-decoration: none !important;
}

.nsw-button.nsw-button--dark {
  color: white;
}
.button.nsw-button--dark:disabled,
.button.nsw-button--dark:disabled:hover,
.nsw-button--danger:disabled,
.nsw-button--danger:disabled:hover {
  cursor: default;
}

.nsw-form__predictive-list {
  overflow-y: auto;
  max-height: 18em;
}

.hidden {
  display: none !important;
}

.nsw-form__input:disabled,
.formField-text.muted,
.nsw-form__select:disabled {
  color: #767676;
  cursor: default;
}

.nsw-form__input:disabled + .nsw-button--white.nsw-button--flex {
  border-color: var(--nsw-grey-03);
  background: var(--nsw-grey-03);
}

.nsw-form__checkbox-input:disabled + .nsw-form__checkbox-label,
.nsw-form__radio-input:disabled + .nsw-form__radio-label {
  cursor: default;
}

/* remove hover effect on radio and checkbox when disabled */
.nsw-form__checkbox-input:disabled:hover + .nsw-form__checkbox-label:before,
.nsw-form__radio-input:disabled:hover + .nsw-form__radio-label:before {
  background-image: none;
}

.nsw-tag {
  color: var(--nsw-status-info) !important;
  font-size: 1.1rem;
}

.nsw-tag.nsw-status-completed {
  color: var(--nsw-status-success) !important;
}

.searchable-item {
  width: 100%;
}
.searchable-item a {
  text-decoration: none;
}
.searchable-item small {
  padding: 0.8rem;
}

.no-hover-affect:hover {
  background-color: initial;
  color: initial;
  cursor: not-allowed;
}

/* -------------------- TABLE -------------------- */
table input {
  height: 2rem;
}

.dataTables_wrapper .dataTables_filter input {
  width: auto;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
  background: var(--nsw-brand-dark) !important;
  color: white !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  background: var(--nsw-brand-light) !important;
  color: black !important;
}

/* -------------------- BS Buttons & Selectpicker  -------------------- */
.btn-default,
.btn-default:hover {
  border-color: var(--nsw-grey-01) !important;
  color: black !important;
  border-radius: 0.25rem;
}

.btn-default.disabled,
.btn-default.disabled:hover {
  cursor: default;
  border-color: var(--nsw-grey-03) !important;
}

.dropdown-menu > .active > a,
.dropdown-menu > .active > a:hover,
.dropdown-menu > .active > a:focus {
  color: black;
  background-color: var(--nsw-text-hover) !important;
}

.bootstrap-select .dropdown-menu li a:hover {
  background-color: var(--nsw-text-hover) !important;
}

.bootstrap-select.disabled button,
.bootstrap-select > .disabled {
  background: var(--nsw-grey-04) !important;
  cursor: default;
}

#center-container .bootstrap-select .dropdown-menu li.active small {
  color: var(--nsw-text-dark) !important;
}

td .btn.dropdown-toggle.bs-placeholder.btn-default:focus {
  box-shadow: 0 0 0 0.125em rgb(72 95 199 / 25%) !important;
}

.nsw-form__group .bootstrap-select .dropdown-toggle:focus,
.bootstrap-select > select.mobile-device:focus + .dropdown-toggle {
  outline: solid 3px var(--nsw-focus) !important;
  outline-offset: 3px !important;
}

/* -------------------- Progress Bar/ STEPS  -------------------- */
.steps:not(.is-hollow) .steps-marker:not(.is-hollow) {
  background-color: var(--nsw-brand-dark);
}

.steps:not(.is-hollow) .steps-segment.is-active .steps-marker:not(.is-hollow) {
  background-color: var(--nsw-brand-dark);
}

.steps:not(.is-hollow) .steps-segment.is-active ~ .steps-segment .steps-marker:not(.is-hollow) {
  color: var(--nsw-muted);
}

.steps-segment.is-current .steps-marker,
a.steps-marker:focus {
  outline: solid 3px var(--nsw-focus);
  outline-offset: 3px;
}

.steps-segment:after {
  background-color: var(--nsw-brand-dark);
}

.steps-segment.is-current .heading,
.steps-segment.is-current .progress-heading {
  font-weight: 600;
}

/* -------------------- nsw-tabs__list  -------------------- */

.nsw-tabs__list {
  padding: 0 !important;
  z-index: 1;
}

.nsw-form__input-group--icon .nsw-button {
  min-width: 2rem;
}

.nsw-form__group.column {
  padding: 0;
}

.nsw-form__select option {
}

.nsw-tabs__content:focus {
  outline: none;
}

.nsw-custom-nav {
  padding: 12px;
}

.nsw-custom-nav li a {
  align-items: center;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-between;
  text-decoration: none;
}

.nsw-custom-nav li {
  margin: 0px !important;
}

.nsw-custom-nav span {
  color: var(--nsw-text-dark);
}

/* remove rich text default styles */
div[data-wrapper="true"] {
  font-family: unset !important;
  font-size: unset !important;
  color: unset !important;
}

div[data-wrapper="true"] ul {
  list-style: unset;
  padding-left: 20px;
}
div[data-wrapper="true"] ol {
  padding-left: 20px;
}

/* nsw dark overlay */
.nsw-dialog {
  z-index: 1100;
}
