/**
 * Main CSS stylesheet for application
 */

/* BEGIN: CSS custom properties (variables) and fonts */
:root {
  --cnir-background-body: #E5EAEA;
  --cnir-border-color: #D9D9D9;
  --cnir-border-radius: var(--bs-border-radius); /* for containers such as cards & tables, and nav links */
  --cnir-z-index: 1024; /* must be more than z-index of 1020 for .sticky-top applied to cards and tables */

  /* Override Bootstrap colors */
  --cnir-primary: #629242;
  --cnir-secondary: var(--bs-light);
  --cnir-danger: var(--bs-danger);
  --cnir-muted: #A1A1AA;
  --cnir-success: #00D9A0;

  /* Effects */
  --cnir-checked-active: #4ade80;
  --cnir-hover-brightness: 85%;
}

@font-face { /* monospace font - https://fonts.google.com/specimen/Inconsolata */
  font-display: swap;
  font-family: "Inconsolata";
  font-stretch: 100%;
  font-style: normal;
  font-weight: 400 700; /* normal, bold */
  src: url(./../fonts/Inconsolata-VariableFont_wdth,wght.ttf) format('truetype'); /* font file for variable font */
}
/* CLOSE: CSS custom properties (variables) and fonts*/


/* BEGIN: Containers */
html,
body {
  letter-spacing: -0.5px;
  margin: 0;
  padding: 0;
  font-family: 'DM Sans', sans-serif;
}

body {
  background-color: var(--cnir-background-body);
  color: black;
}

footer {
  max-width: 97rem; /* 1552px */
  margin: 2.5rem auto 0;
  height: auto;
  width: 100%;
  letter-spacing: 0px;
  font-size: 0.75rem;
  padding: 0;
  color: var(--cnir-muted);
}

header {
  margin-bottom: 1rem;
}
.wild {
  align-content: center;
  display: flex;
  flex-direction: column;
  height: 100vh;
  justify-content: center;
  margin: 0 auto;
  width: 62.5rem; /* 1000px */
}

.wild-left {
  background: url(/public/images/background-login.jpg);
  background-position: top left;
  background-repeat: no-repeat;
  background-size: cover;
  border-radius: var(--cnir-border-radius) 0 0 var(--cnir-border-radius);
  color: white;
  display: flex;
  min-height: 70vh;
  padding: 1.5em;
}

.wild-right {
  background-color: white;
  border-radius: 0 var(--cnir-border-radius) var(--cnir-border-radius) 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 70vh;
  padding: 5rem;
}

.wild-right div {
  width: 100%;
}

@media (max-width: 767px) {
  html {
    font-size: 14px;
  }

  .wild {
    display: block;
    height: auto;
    position: relative;
    margin: 16px;
    width: calc(100% - 32px);
    overflow-x: hidden;
  }

  .wild-left {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url(/public/images/background-login.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    color: white;
    background-position: center center;
    border-radius: var(--cnir-border-radius) var(--cnir-border-radius) 0 0;
    border-radius: 10px 10px 0 0;
    height: auto;
  }
  
  .wild-right {
    border-radius: 0 0 var(--cnir-border-radius) var(--cnir-border-radius);
    min-height: 20vh;    
  }
}
@media (max-width: 1280px) {
  .wild-right {
    padding: 3rem;
  }
}

@media (max-width: 1023px) and (min-width: 768px) {
  .wild {
    margin: auto 16px;
    width: calc(100% - 32px);
  }
}

.world-main {
  min-height: 100vh;
  padding: 1.5rem;
  flex: 1;
  overflow-x: hidden;
}

.world-left {
  background-color: #00775B;
  color: white;
  height: auto;
  padding: 0;
  min-height: 100vh;
}

.world-left.merchant {
  background-color: var(--cnir-primary);
}

.world-main main {
  max-width: 97rem; /* 1552px */
  margin: 0 auto;
  height: auto;
  width: 100%;
}
/* CLOSE: Containers */

/* BEGIN: Alerts (including modals, popovers and session messages) */
.alert.alert-dismissible {
  padding: 0.5rem 3rem 0.5rem 1rem;
}
.alert::before {
  display: inline-block;
  height: 1rem;
  position: relative;
  top: 0.15rem;
  width: 1rem;
}
.alert.alert-danger::before {
  /*
    Notes:
    - Do not depend solely on color to differentiate type of alert, hence prepend icon for accessibility
    - filter computed using https://github.com/angel-rs/css-color-filter-generator based on color for .alert-danger
    - background-color, color, fill will not work on the SVG here
    - See https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Properties/content on setting of alternative text
  */
  content: url(/public/images/exclamation-triangle-fill.svg) / "Error";
  filter: brightness(0) saturate(100%) invert(17%) sepia(43%) saturate(3688%)
    hue-rotate(335deg) brightness(82%) contrast(93%);
}
.alert.alert-info::before {
  content: url(/public/images/info-circle-fill.svg) / "Info";
  filter: brightness(0) saturate(100%) invert(23%) sepia(9%) saturate(7153%)
    hue-rotate(153deg) brightness(98%) contrast(96%);
}
.alert.alert-success::before {
  content: url(/public/images/check-circle-fill.svg) / "Success";
  filter: brightness(0) saturate(100%) invert(23%) sepia(25%) saturate(1335%)
    hue-rotate(100deg) brightness(92%) contrast(90%);
}

#shared-modal .modal-description {
  color: var(--cnir-muted);
  margin-top: 1rem;
}
#shared-modal .modal-description:empty {
  margin: 0;
}

#shared-modal .modal-error {
  color: var(--cnir-danger);
}

#shared-modal .modal-body label {
  font-size: 0.875rem;
  font-weight: bold;
  line-height: 1.125rem;
  margin-bottom: 0.5rem;
}
/* CLOSE: Alerts */


/* BEGIN: Buttons */
.btn {
  padding: 0.375rem 1rem;
  line-height: 1.125rem;
  letter-spacing: -0.5px;
}
.btn:focus-visible {
  outline: 2px solid black; /* show outline around button when user uses Tab key to select it */
}

.btn-icon { /* style <button> that uses Bootstrap Icons like a link */
  color: var(--cnir-primary);
  padding: 0;
}

.btn-primary,
.btn-primary:focus,
.btn-primary:hover { /* override Bootstrap class */
  background-color: var(--cnir-primary);
  border-color: var(--cnir-primary);
  color: white;
  --bs-btn-active-bg: var(--cnir-primary);
  --bs-btn-active-border-color: var(--cnir-primary);
}
.btn-primary:hover {
  filter: brightness(var(--cnir-hover-brightness));
}

.btn-link {
  color: var(--cnir-primary);
  text-decoration: underline;
  background: none;
  border: none;
  font-weight: bold;
}
.btn-link:hover {
  color: var(--cnir-primary);
}

.btn-outline-secondary {
  color: var(--cnir-primary);
  border-color: var(--cnir-border-color);
  --bs-btn-active-bg: white;
  --bs-btn-active-border-color: white;
}
.btn-outline-secondary:hover {
  background-color: var(--cnir-primary);
}

.form-footer {
  display: flex;
  justify-content: flex-end;
}

.btn.btn-white:disabled,
.btn-white {
  background-color: white;
  border-color: var(--cnir-border-color);
  color: black;
}
.btn-white:hover,
.btn-white:focus {
  background-color: var(--cnir-primary);
  color: white;
}

.btn-reject {
  background-color: var(--cnir-danger);
  color: white;
}
.btn-reject:hover {
  background-color: var(--cnir-danger);
  color: white;
}

.btn-outline-reject {
  border: 1px solid var(--cnir-danger);
  color: var(--cnir-danger);
}
.btn-outline-reject:hover {
  background-color: var(--cnir-danger);
  color: white;
}

.btn:disabled {
  font-weight: normal;
  opacity: 0.5;
  background-color: #DFE0E5;
  border-color: #DFE0E5;;
}

.btn-sm {
  padding: 0.25rem 0.875rem;
  font-size: 0.875rem;
  border-radius: 0.3125rem;
}
/* CLOSE: Buttons */


/* BEGIN: Forms */
fieldset {
  border: 1px solid var(--cnir-border-color);
  border-radius: var(--cnir-border-radius);
  padding: 1rem;
}

label {
  /* Form fields nested in <label> for implicit accessible name instead of using "for" HTML attribute requiring "id". */
  /* See https://developer.mozilla.org/en-US/docs/Glossary/Accessible_name for more info. */
  display: block;
  color: var(--cnir-muted);
}

.input-group {
  border: 1px solid black;
  border-color: var(--cnir-border-color);
  border-radius: var(--cnir-border-radius);
  margin-bottom: var(--cnir-margin-bottom);
  margin-bottom: 1rem;
}
.input-group .form-control {
  border: none;
}

.input-group:has(.input-group-text) input:first-child,
.input-group:has(.input-group-text) .input-group-text:first-child {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
.wild .input-group:focus-within {
  box-shadow: 0 0 0 0.25rem rgb(13 110 253 / 25%) !important;
}
.input-group:focus-within .input-group-text,
.input-group:focus-within .form-control:focus,
.input-group:focus-within .form-select:focus {
  border: none !important;
  box-shadow: none !important;
}

.input-group-text {
  background: none;
  border: none;
  color: var(--cnir-muted);
}

.form-label {
  font-size: 0.875em;
  font-weight: bold;
  line-height: 1.125rem;
}

.form-label.required {
  font-weight: bold;
}
.form-label.required:after {
  content: " *" / "Required";
}

.form-select { /* override Bootstrap, ensure dropdown does not span entire page width nor exceed small screen width */
  cursor: pointer;
  max-width: 100%;
}

.form-check-input {
  height: 1rem;
  width: 1rem;
  border-color: var(--cnir-border-color);
}

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

.form-check label {
  font-size: 0.875em;
}

.form-control,
.form-select,
.input-group-text {
  border-color: var(--cnir-border-color);
  letter-spacing: -0.5px;
}

.input-group .form-control {
  min-width: 0;
}

label:has(.form-control) .form-control,
label:has(.form-select) .form-select,
label:has(.input-group-text) .input-group-text {
  margin-top: 0.25rem;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  transition: background-color 5000s ease-in-out 0s;
}

input::placeholder,
textarea::placeholder,
.form-control::placeholder {
  color: var(--cnir-muted);
  opacity: 1;
}
/* Toggle switches */
.form-switch .form-check-input {
  border-color: var(--cnir-border-color);
  cursor: pointer;
  height: 1.5rem;
  width: 3rem;  
  margin: 0;
}
.form-switch .form-check-input:checked {
  background-color: var(--cnir-checked-active);
  border-color: var(--cnir-checked-active);
}

/* Clickable icons in fields such as Show Password icon for password fields */
.input-group-text.clickable:hover {
  background: var(--cnir-primary);
  color: var(--cnir-secondary);
}

.resize-none {
  resize: none;
}

td .form-switch .form-check-input {
  width: 3rem;
  height: 1.5rem;
}

@media only screen and (min-width: 1024px) {
  .form-switch .form-check-input {
    width: 3.75rem;
    height: 1.875rem;
    margin: 0;
  }
}
/* CLOSE: Forms */


/* BEGIN: Navigation (includes links, breadcrumbs and tabs) */
a {
  color: var(--cnir-primary);
  text-decoration: none;
}
a:hover {
  filter: brightness(var(--cnir-hover-brightness));
}

.breadcrumb {
  margin-top: 1.375rem;
  margin-bottom: 0.5rem;
  letter-spacing: -0.5px;
}

.breadcrumb-item {
  font-size: 0.75rem;
  text-transform: capitalize;
}

.hover-underline:hover {
  text-decoration: underline;
}

.unclickable {
  color: var(--cnir-muted);
  cursor: not-allowed;
  pointer-events: none;
  text-decoration: none;
}

/* Left menubar */
.world-left .navbar-left {
  position: sticky;
  top: 0;
  padding: 2.215rem 0.5rem;
}
.world-left .navbar-left a:hover {
  filter: none;
}
.world-left .navbar-left.show-label {
  padding: 1.5rem;
  width: 16.25rem;
  min-height: 100vh;
}

.world-left .navbar-left .navbar-logo {
  margin-bottom: 2.3rem;
}

.world-left .navbar-left.show-label .navbar {
  padding: 0;
  display:block;
  text-align: center;
} 

.world-left .navbar-left nav.navbar {
  display: flex;
  justify-content: space-around;
  padding: 0px;
}

.navbar-left .navbar-nav {
  gap: 0.5rem;
}

.navbar-left .label,
.navbar-left .logo-big,
.navbar-left.show-label .logo-small {
  display: none;
}

.navbar-left.show-label .label,
.navbar-left.show-label .logo-big {
  display: inline-block;
}

.navbar-left a.nav-link {
  color: white;
  display: flex;
  align-items: center;
  padding: 0.5rem;
}

.navbar-left a.nav-link .bi {
  font-size: 1rem;
  line-height: 1.5;
}
.navbar-left a.nav-link:hover,
.navbar-left a.nav-link.active,
.navbar-left a.nav-link.active:hover {
  background-color: var(--cnir-primary);
  border-radius: var(--cnir-border-radius);
  color: white;
}
.world-left.merchant .navbar-left a.nav-link:hover,
.world-left.merchant .navbar-left a.nav-link.active,
.world-left.merchant .navbar-left a.nav-link.active:hover {
  background-color: white;
  border-radius: white;
  color: var(--cnir-primary);
}

.navbar-left a.nav-link .label {
  margin-left: 0.75rem;
}

@media (max-width: 767px) {
  .world-left {
    position: fixed;
    z-index: 9;
    box-shadow: 0px 8px 60px 0px rgb(16 40 88 / 15%);
    -webkit-box-shadow: 0px 8px 60px 0px rgb(16 40 88 / 15%);
    -moz-box-shadow: 0px 8px 60px 0px rgba(16, 40, 88, 0.15);
    top: 0;
    overflow-y: scroll;
    bottom: 0;
  }
  .world-left .navbar-left {
    display: none;
  }
  .world-left .navbar-left.show-label {
    display: block;
  }
}
/* Top menubar with dropdown menu */
.navbar-top .navbar-toggler {
  border: none;
  display: block; /* override Bootstrap ".navbar-expand .navbar-toggler" which hides it */
  font-size: 1rem;
  padding: 0;
  box-shadow: none;
}

.navbar-top .dropdown-menu {
  padding: 1rem;
  z-index: var(--cnir-z-index);
}

.navbar-top a.dropdown-item {
  padding: 0.5rem;
}
.navbar-top a.dropdown-item:hover {
  background: var(--cnir-background-body);
}

.navbar-top .nav-link {
  border-radius: var(--cnir-border-radius);
  color: black;
}
.navbar-top .nav-link:hover {
  color: var(--cnir-primary);
}
.navbar-top .dropdown-menu[data-bs-popper] {
  box-shadow: 0px 8px 60px 0px rgb(16 40 88 / 15%);
  -webkit-box-shadow: 0px 8px 60px 0px rgb(16 40 88 / 15%);
  -moz-box-shadow: 0px 8px 60px 0px rgba(16, 40, 88, 0.15);
  margin-top: 0px;
  width: 180px;
  padding: 0.75rem;
  border: none;
  left: auto;
  right: 0;
}

.navbar-top .dropdown-menu[data-bs-popper] .nav-link .bi {
  margin-right: 0.75rem;
  font-size: 1rem;
  position: relative;
  top: 1px;
  color: var(--cnir-primary);
}
/* CLOSE: Navigation */


/* BEGIN: Pagination */
.pagination {
  /* override Bootstrap .pagination */
  font-size: 0.8rem;
  margin-bottom: 0;
}

.pagination-wrapper {
  margin: 0;
}

.pagination-wrapper,
.pagination-wrapper label,
.pagination-wrapper .form-select {
  color: black;
  font-size: 0.85rem;
}

.page-item .page-link {
  color: black;
  padding: 0.25rem 0.5rem;
  
}
.disabled > .page-link,
.page-link.disabled {
  background: none;
  color: #DFE0E5;
  pointer-events: none;
  background-color: #fff;
  border-color: #dee2e6;
}

.page-item.disabled .page-link {
  color: #DFE0E5;
}

.page-item.curr-page .input-page {
  padding: 0.25rem 0.25rem;
  width: 2.5rem;
  background-color: var(--cnir-primary);
  border:1px solid var(--cnir-primary);
  height: -webkit-fill-available;
  text-align: center;
  color: white;
}

.pagination-refresh-link,
.pagination-refresh-link:hover {
  /* invisible link to refresh table linked to pagination w/o refreshing page */
  color: transparent;
  text-decoration: none;
}
/* CLOSE: Pagination */


/* BEGIN: Tables */
.table thead.sticky-top {
  background-color: white;
}

/* Search box */
.table-functions .search-field {
  margin-bottom: 0;
}
.table-functions .search-field .input-group-text {
  background: none;
  border-bottom-right-radius: 0;
  border-top-right-radius: 0;
}
.table-functions .search-field .form-control {
  border-left: none;
}

/* Filters */
.table-filters {
  margin-right: 2.5rem;
}
.table-filters .dropdown-menu {
  list-style-type: none;
  margin: 0;
  width: 12.5rem;
  z-index: var(--cnir-z-index);
}
.table-filters .dropdown-menu.show {
  box-shadow: 0px 8px 60px 0px rgb(16 40 88 / 15%);
  -webkit-box-shadow: 0px 8px 60px 0px rgb(16 40 88 / 15%);
  -moz-box-shadow: 0px 8px 60px 0px rgba(16, 40, 88, 0.15);
  width: 18.75rem;
  border: 0;
  margin: 0.375rem 0;
}
.table-filters ul.dropdown-menu.show li .form-check label {
  color: black;
}
.table-filters .dropdown-menu li ul {
  list-style-type: none;
  margin: 0;
  padding: 1rem 1.25rem;
  max-height: 29rem;
  overflow-y: auto;
}
.table-filters .dropdown-menu li.filter-body ul li {
  margin-bottom: 1rem;
}
.table-filters .dropdown-menu li.filter-body ul li:last-child {
  margin-bottom: 0;
}
.table-filters li.filter-body .form-label,
.table-filters li.filter-body a.clear-filter {
  font-size: 0.875rem;
  line-height: 1.125rem;
}
.table-filters li.filter-body a.clear-filter {
  position: relative;
  top: 0;
}
.table-filters li.filter-body a.clear-filter .bi {
  height: auto;
  width: auto;
  color: var(--cnir-primary);
  margin-right: 0.5rem;
}

.table-filters .btn-filter {
  border: 1px solid var(--cnir-border-color);
  border-radius: 5px !important;
  padding-left: 1rem;
  padding-right: 1rem;
  color: var(--cnir-muted);
  display: flex;
  align-items: center;
  line-height: 1.5;
}

.table-filters .btn-filter .bi {
  font-size: 0.75rem;
  color: var(--cnir-muted);
  padding-left: 1rem;
}
.table-filters .btn-filter .bi.filter-icon {
  font-size: 1rem;
  color: var(--cnir-muted);
  padding-left: 0;
}

.table-filters .btn-footer {
  border-top: 1px solid var(--cnir-border-color);
    padding: 1rem 1.25rem;
}

.table-filters .checkbox-group {
  border: 1px solid var(--cnir-border-color);
  border-radius: 0.3rem;
}
.table-filters .checkbox-group .form-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 1rem;
  margin-bottom: 0.5rem;
}
.table-filters .checkbox-group .form-check:first-child {
  border-bottom: 1px solid var(--cnir-border-color);
  padding: 0.5rem 1rem;
}
.table-filters .checkbox-group .form-check:last-child {
  margin-bottom: 1rem;
}
.table-filters .checkbox-group .form-check .form-check-input {
  float: none;
  margin: 0;
  flex-shrink: 0;
}

.table-actions-container {
  flex: 1;
}

.table-actions-container .table-actions {
  display: flex;
  align-items: center;
}

.table-actions-container .table-actions button {
  line-height: 1.5;
}

@media (max-width: 767px) {
  .table-actions-container .table-actions {
    padding-left: 0;
    gap: 0.5rem;
  }
  .table-actions-container .table-actions.js-table-actions span {
    grid-column-start: 1;
    grid-column-end: 3;
  }
}

.table-with-pagination.card {
  border: none;
}

.table-with-pagination .card-header,
.table-with-pagination .card-footer {
  background-color: white;
  border: none;
  padding: 1rem;
}

.table-with-pagination .card-body {
  border: 1px solid rgba(0, 0, 0, 0.125);
  border-radius: var(--cnir-border-radius);
  padding: 0.25rem 0;
}

.table.record-listing {
  border-color: var(--cnir-border-color);
  margin-bottom: 0;
}

.table.record-listing thead th {
  color: var(--cnir-muted);
  font-size: 0.75rem;
  padding-top: 0;
  text-transform: uppercase;
  vertical-align: text-top; /* text-top ensures text in columns with and without sort arrows are aligned vertically */
  white-space: nowrap; /* prevent sorting arrows from going onto next line from header text */
  letter-spacing: 1px;
}

.table.record-listing thead th .bi{
  color: var(--cnir-muted);
}

table.record-listing tbody {
  box-shadow: 0 0 0 1px var(--cnir-border-color);
}
.table.record-listing tbody td {
  vertical-align: middle;
  height: 3.75rem;
}
.table.record-listing tbody td.actions {
  text-align: right;
}
.table.record-listing td:first-child {
  border-left: 1px solid var(--cnir-border-color);
  border-left-width: 1px;
  border-left-style: solid;
  border-left-color: var(--cnir-border-color);
  border-radius: 0.5px;
}
.table.record-listing td:last-child {
  border-right: 1px solid var(--cnir-border-color);
  border-radius: 0.5px;
}
.table.record-listingtbody tr td:last-child {
  text-align: right;
}
.table.record-listing th:last-child,
.table.record-listing td:last-child {
  padding-right: 1rem;
}
.record-listing th:first-child,
.record-listing td:first-child {
  padding-left: 1rem;
}

/* Bulk select column (<th> and <td>) */
.table.record-listing .bulk-select-column {
  width: 2.5rem;
  font-size: 1rem; /* reduce Bootstrap icon size */
  padding-left: 1rem;
  text-align: left;
}
.table.record-listing .bulk-select-column .form-check {
  display: inline-block; /* to allow bulk delete icon to be rendered side-by-side with select all checkbox in <th> */
  min-height: auto;
  margin-bottom: 0;
  padding-left: 0;
}
.table.record-listing .bulk-select-column .form-check .form-check-input {
  float: none;
  height: 1.25rem; /* normal size of 1rem is too small */
  margin-left: 0;
  margin-top: 0.1rem; /* in <th>, align bulk delete icon vertically with select all checkbox */
  width: 1.25rem;
}

.table.record-listing .form-switch {
  padding-left: 0;
}

.table.record-listing th[data-sort-col="id"] {
  width: 10rem;
}
.table.record-listing td .bi {
  margin: 0 0.1rem;
}

/* Table borders */
.table > :not(:first-child) {
  /* Override Bootstrap, remove thick black bottom border of table header row */
  border-top: none;
}
.table.record-listing tbody td {
  border-color: var(--cnir-border-color);
}
table.history-listing tbody {
  box-shadow: none;
}

/* Links in th/td */
th button,
td.actions button { /* only for header row and actions column */
  background: none;
  border: none;
  border-radius: 50%; /* follow Bootstrap .rounded-circle */
  color: black;
  margin-left: 0.25rem;
}
th button:hover,
td.actions button:hover { /* only for header row and actions column */
  background: lightgray;
  color: var(--cnir-primary);
}
th button.sort-arrows {
  padding: 0;
}
th button.sort-arrows:hover {
  background: none;
}
th .bulk-delete,
td.actions .record-delete {
  background: none;
  border: none;
  border-radius: 50%; /* follow Bootstrap .rounded-circle */
  color: var(--cnir-danger);
  font-size: 1.5rem;
}

table.record-listing td {
  color: black;
}

th .bulk-delete:hover,
td.actions .record-delete:hover {
  background: var(--cnir-danger);
  color: white !important; /* !important needed to override Bootstrap for .text-danger */
}
td.actions button .bi {
  font-size: 1.5rem;
}
td.actions a .bi {
  font-size: 1.5rem;
}

td .text-soft {
  font-size: 0.875rem;
  line-height: 1.125rem;
}

.table td .bi.suspended-icon {
  color: var(--cnir-danger);
  font-size: 1rem;
  margin: 0 0.5rem 0 0;
}

td .status-column {
  display: flex;
  align-items: center;
  white-space: nowrap;
}
/* Hidden columns in responsive tables */
[data-show-hidden-columns-target] .dropdown-toggle {
  background: none;
  border: none;
  padding-block: 0;
  padding-inline: 0;
}
[data-show-hidden-columns-target] .dropdown-toggle::before {
  display: none;
}
[data-show-hidden-columns-target] .dropdown-menu {
  padding: 0.5rem;
}

.table-wrapper {
  margin-top: 1rem;
  background-color: #fff;
  padding: 1rem 1.5rem;
  border-radius: 0.25rem;
}
.table-wrapper .input-group .input-group-text {
  padding-right: 0.25rem;
  background: none;
  border: none;
  color: var(--cnir-muted);
}
.table-wrapper .input-group .input-group-text .bi {
  height: 1.5rem;
  width: 1.5rem;
}

.table-functions {
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.fix-column-table-container {
  overflow: auto;
  width: 100%;
}
.fix-column-table-container table {
  border-collapse: separate !important;
  border-spacing: 0;
  width: 100%;
}
.fix-column-table-container .table td:first-child,
.fix-column-table-container .table th:first-child,
.fix-column-table-container.fix-1-column .table td:nth-child(1),
.fix-column-table-container.fix-1-column .table th:nth-child(1),
.fix-column-table-container.fix-3-column .table td:nth-child(3),
.fix-column-table-container.fix-3-column .table th:nth-child(3),
.fix-column-table-container.fix-2-column .table td:nth-child(2),
.fix-column-table-container.fix-2-column .table th:nth-child(2) {
  position: sticky;
  left: 0;
  z-index: 4;
  background: #fff;
}

/* CLOSE: Tables */


/* BEGIN: Text, Icons Images */
.text-soft {
  color: var(--cnir-muted) !important;
}

mark { /* wrap Caller Name ID in <mark></mark>, use {{#mark}}{{/mark}} which converts space to &nbsp; */
  background-color: #eee;
  color: #000;
  font-family: "Inconsolata", monospace;
  font-size: 1.25rem;
  font-weight: bold;
}

h2 {
  font-weight: bold;
}

.logo {
  max-height: 10rem;
}

.logo.logo-small {
  margin-bottom: 0.5rem;
}

.title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  line-height: 1.5rem;
}

.subtitle {
  color: var(--cnir-muted);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.sub-text {
  color: var(--cnir-muted);
  font-size: 0.875rem;
  margin: 0.5rem 0;
}

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

.color-red {
  color: #F82363;
}

/* Animated ellipsis adapted from https://codepen.io/thetallweeks/pen/yybGra */
.loading:after { /* do not set font-size for .loading as it will change font size of adjacent text */
  animation: ellipsis steps(5, end) 1500ms infinite;
  bottom: -0.5rem;
  color: var(--cnir-muted);
  content: "\2026" / "Loading"; /* ASCII code for the ellipsis character */
  display: inline-block;
  font-size: 3rem;
  margin-left: 0.25rem;
  margin-top: -3rem;
  overflow: hidden;
  position: relative;
  vertical-align: bottom;
  width: 0;
}
@keyframes ellipsis {
  to {
    width: 1.25em; /* must be 1.25em not rem to show all 3 dots in the ellipsis */
  }
}

.content-password-rules {
  font-size: 0.85rem;
}

.content-password-rules .bi-check-circle-fill {
  font-size: 0.6rem;
}
.content-password-rules .bi-check-circle-fill.checked {
  color: var(--cnir-success);
}
/* CLOSE: Text, Icons Images */

/* BEGIN: Generic */
.link-separator {
  border-right: 1px var(--cnir-border-color) solid;
}

.card-header {
  background: white;
  border-color: var(--cnir-border-color);
  padding: 1.5rem;
}
.card-header:first-child {
  border-radius: calc(.25rem - 1px) calc(.25rem - 1px) 0 0;
}

.card-body {
  padding: 1.5rem;
}

.field-label {
  color: var(--cnir-muted);
  font-weight: bold;
  font-size: 1rem;
  line-height: 1.5;
}

.sub-card {
  background-color: var(--cnir-background-body);
}

.divider {
  border-color: var(--cnir-border-color);
  opacity: 1;
}

.border-red {
  border-color: #F82363;
}
/* CLOSE: GENERIC */


/* BEGIN: Uploads */
.dropzone {
  background: #eee;
  border: 0.25rem dashed black;
  border-radius: var(--cnir-border-radius);
  font-size: 1.5rem;
  height: 12.5rem;
  padding: 1rem;
}

.upload-progress {
  height: 1.5rem;
  margin-bottom: 5rem;
  margin-top: 3rem;
}
/* CLOSE: Upload */

/* BEGIN: Modal */
.modal-title {
  font-weight: bold;
}

.modal-body {
  max-height: 80vh;
  overflow-y: auto;
  overflow-x: hidden;
}
/* CLOSE: Modal */

/* BEGIN: workflow */
.workflow .steps {
  /* container for .step */
  margin-bottom: 1rem;
}

.workflow .step {
  /* short horizontal bar indicating a step in a multi-step form */
  background: var(--cnir-border-color);
  border-radius: var(--cnir-border-radius);
  display: inline-block;
  height: 0.25rem;
  margin-right: 0.25rem;
  width: 3rem;
}
.workflow .step.active {
  background: var(--cnir-primary);
}

.workflow textarea {
  overflow-y: scroll;
}
.login-wrapper .alert.alert-success::before {
  content: none;
}

.login-wrapper .public-links a:first-child {
  text-align: right;
}

.login-wrapper .public-links a {
  margin: 0px 0.75rem;
  width: 50%;
  line-height: 1.125rem;
  font-weight: normal;
  font-size: 0.875rem;
  text-align: left;
}

.login-wrapper .public-link-separator {
  width: auto;
  border-right: 1px var(--cnir-border-color) solid;
}
/* CLOSE: workflow */

/* BEGIN: Badge */
.badge {
  border: 1px solid black;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-block;
  padding: 0.35em 0.65em;
  font-size: 0.75em;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: 0.25rem;
}
.badge-add {
  background-color: white;
  border-color: white;
  color: var(--cnir-success);
}
.badge-delete {
  background-color: white;
  border-color: white;
  color: #F82363;
}
.badge-pending {
  border-color: var(--cnir-border-color);
  color: var(--cnir-muted);
}
.badge-rejected {
  background-color: var(--cnir-danger);
  border-color: var(--cnir-danger);
  color: white;
}
.badge-enquiry {
  background-color: var(--cnir-border-color);
  border-color: var(--cnir-border-color);
  color: black;
}
.badge-approved {
  background-color: var(--cnir-success);
  border-color: var(--cnir-success);
  color: white;
}
.badge-admin {
  background-color: #FFD100;
  border-color: #FFD100;
  color: white;
}
.badge-whitelist {
  background-color: var(--cnir-background-body);
  border-color: var(--cnir-background-body);
  color: var(--cnir-muted);
}
/* Priorities */
.badge-urgent {
  background-color: white;
  border-color: white;
  color: var(--cnir-danger);
  padding: 0;
}
.badge-normal {
  background-color: white;
  border-color: white;
  color: var(--cnir-muted);
  padding: 0;
}
/* CLOSE: Badge */

/* BEGIN: Dot */
.dot {
  font-size: 1.75rem;
  position: relative;
  margin-right: 0.5rem;
}
.dot::before {
  content: '\2022';
}
.dot-accepted {
  color: #2964DB;
}
.dot-approved {
  color: #629242;
}
.dot-rejected,
.dot-deleted {
  color: #F82363;
}
.dot-holding {
  color: black;
}
.dot-holding.customer,
.dot-pending {
  color: var(--cnir-border-color);
}
/* CLOSE: Dot */

/* BEGIN: tab navigation*/
.nav-tabs {
  border: none;
}

.nav-tabs .nav-item .nav-link,
.nav-tabs .nav-link {
  /* override Bootstrap */
  color: var(--cnir-muted);
  background: none;
  border: none;
  font-weight: bold;
  text-transform: uppercase;
  margin-right: 2.5rem;
  margin-bottom: 0.5rem;
  padding: 0.5rem 0 0;
}

.nav-tabs .nav-item .nav-link:hover,
.nav-tabs .nav-link:hover {
  /* override Bootstrap */
  color: var(--cnir-primary);
}

.nav-tabs .nav-item.show .nav-link,
.nav-tabs .nav-link.active {
  /* override Bootstrap */
  color: var(--cnir-primary);
  background: none;
  border-bottom: 0.25rem solid var(--cnir-primary);
  /* need important cos of button:focus in style.css */
}

.nav-tabs .nav-item.show .nav-link:hover,
.nav-tabs .nav-link.active:hover {
  /* override Bootstrap */
  color: var(--cnir-primary);
}
/* CLOSE: tab navigation */

/** BEGIN information banner */
.card-widget.banner .banner-title {
  font-size: 1.5rem;
  margin: 0 0 0 1rem;
  line-height: 1.25;
}

.card-widget.banner {
  background-color: #F4F8EC;
  padding: 1.5rem;
  border-radius: var(--cnir-border-radius);
}

.card-widget.banner li {
  margin-bottom: 0.25rem;
}

.card-widget.banner.banner-transition-suspend {
  background-color: #FFB200;
  color: white;
  padding: 1.25rem;
}

.card-widget i.bi.bi-info-circle-fill {
  font-size: 1.75rem;
  color: #FFD100;
  width: auto;
  height: auto;
  line-height: 1;
}

.tab-content .card-widget.banner {
  margin-top: 1rem;
}
/** CLOSE information banner */

/* BEGIN Create Account page */
.singpass-retrieve-card {
  border-radius: var(--cnir-border-radius);
  background-color: #E5EAEA;
  padding: 1rem;
}

.btn-singpass {
  background-color: #D93841;
  color: white;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-singpass:hover {
  background-color: #c41a18;
  color: white;
}

.register-wrapper .steps {
  display: none;
}

.div-corpass-error .bi-x-circle-fill {
  font-size: 6.25rem;
  line-height: 1;
}

.form-register .form-control[readonly],
.form-register .form-control:disabled {
  background-color: #DFE0E5;
}
/* CLOSE Create Account page */

/* BEGIN Bulk caller name ID add */
.container-caller-name-id textarea {
  min-height: 11.5rem;
  overflow-y: hidden;
}
/* CLOSE Bulk caller name ID add */

