@charset "UTF-8";
html {
  height: 100vh;
}

#logo {
  max-width: 125px !important;
  max-height: 55px !important;
}

#staticLogo {
  max-width: 125px !important;
  max-height: 75px !important;
}

body {
  display: flex !important;
  flex-direction: column !important;
  min-height: 100vh;
  background-color: #FDFEFE !important;
  overflow: auto !important;
}

@media screen and (max-width: 1199.98px) {
  body {
    min-height: 150vh;
  }
}
@media screen and (min-width: 1200px) and (max-width: 1600px) {
  body {
    min-height: 120vh;
  }
}
/* SQL diagnostics follow this shell and must not consume the empty main area's flex space. */
body > .belma-page-shell {
  display: flex;
  flex-direction: column;
  flex: 1 0 auto;
  min-height: inherit;
  min-width: 0;
}

/* Keep the complete development report readable without widening the surrounding page. */
.belma-sql-diagnostics {
  background: var(--belma-surface, #fff);
  border: 1px solid var(--belma-border-strong, #b8c8d4);
  border-radius: 6px;
  box-sizing: border-box;
  flex: 0 1 auto;
  font-family: monospace;
  font-size: 0.875rem;
  margin: 0.75rem 0;
  max-height: 60vh;
  max-width: 100%;
  min-height: 0;
  min-width: 0;
  overflow: auto;
  overflow-wrap: anywhere;
  padding: 0.75rem;
  white-space: normal;
  width: 100%;
  word-break: normal;
}

.belma-sql-diagnostics h4,
.belma-sql-diagnostics h5 {
  font-size: inherit;
  line-height: 1.5;
  max-width: 100%;
  overflow-wrap: anywhere;
  white-space: normal;
  word-break: normal;
}

.belma-sql-diagnostics:focus-visible {
  outline: 2px solid var(--belma-primary, #2879b9);
  outline-offset: -2px;
}

body.modal-open {
  padding-right: 0 !important;
}

#successBox .alert, #errorBox .alert, #noChangeBox .alert {
  z-index: 1050 !important;
}

#pageReloadedWarning {
  position: fixed;
  top: 55px;
  right: 0;
  width: 20%;
  z-index: 9999;
}
#pageReloadedWarning span {
  display: block;
}
#pageReloadedWarning button {
  font-size: 1rem;
}
#pageReloadedWarning button:hover {
  color: white;
  transform: scale(1.1);
}

#bounceBall {
  position: fixed;
  min-width: 100%;
  height: 100%;
  top: 60px;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #FBFCFC !important;
  z-index: 110;
  font-family: "Arial", serif;
}
#bounceBall > div {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
}
#bounceBall h5 {
  color: #2471A3 !important;
  display: block;
  margin-left: 0;
  margin-bottom: 0;
  position: relative;
  left: -30px;
}
#bounceBall .bounceball {
  position: relative;
  display: inline-block;
  height: 37px;
  width: 15px;
}
#bounceBall .bounceball:before {
  position: absolute;
  content: "";
  display: block;
  top: 0;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background-color: #2471A3;
  transform-origin: 50%;
  animation: bounce 500ms alternate infinite ease;
}

@keyframes bounce {
  0% {
    top: 30px;
    height: 5px;
    border-radius: 60px 60px 20px 20px;
    transform: scaleX(2);
  }
  35% {
    height: 15px;
    border-radius: 50%;
    transform: scaleX(1);
  }
  100% {
    top: 0;
  }
}
div.pre-loader {
  position: absolute !important;
  top: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background-color: rgba(0, 0, 0, 0.5) !important;
  z-index: 99999999 !important;
  transition: opacity 0.3s linear !important;
}
div.pre-loader div.loader-body {
  display: flex !important;
  position: relative !important;
  top: 50% !important;
  justify-content: center !important;
}
div.pre-loader div.loader-body .img-fluid {
  width: 40px !important;
}

nav {
  background-color: #FFFFFF !important;
}
nav #profileImage {
  margin: 10px 0;
  width: 40px;
  height: 40px;
  border-radius: 40px;
  background: #3498DB;
}
nav #profileImage #profileName {
  width: 100%;
  text-align: center;
}
nav #profileImage #profileName > a {
  font-size: 24px !important;
  color: white !important;
}
nav li.active a {
  color: #3498DB !important;
}
nav li {
  /*
  a {
      font-family: "Comic Sans MS";
      font-weight: 600;
  }
  */
}
nav li .icon {
  font-weight: bold;
  font-size: 19px;
  line-height: 18px;
}
nav li a {
  font-family: "Noto Sans", Arial, sans-serif;
  font-weight: 600;
}
nav .nf-navbar a.dropdown-toggle span.icon {
  font-size: 2rem;
  line-height: 60px;
}
nav .nf-navbar a.dropdown-toggle span.nf-indicator {
  position: absolute;
  font-size: 13px;
  top: 7px;
  right: -5px;
  min-width: 18px;
  padding-left: 5px;
  border-radius: 50%;
  background-color: #CB4335;
  color: whitesmoke;
}
@media screen and (min-width: 768px) and (max-width: 1499.98px) {
  nav > .container-fluid {
    margin-left: 8%;
    margin-right: 2%;
  }
}
@media screen and (min-width: 1500px) {
  nav > .container-fluid {
    margin-left: 10%;
    margin-right: 10%;
  }
}
@media screen and (min-width: 1500px) {
  nav > .container-fluid > .page-title {
    display: flex;
    justify-content: center;
  }
}

.be-left-sidebar {
  height: 100%;
  font-family: "Arial", SansSerif, serif;
  /*
  a {
      font-family: "Comic Sans MS";
      font-weight: 600;
  }
  */
}
@media screen and (min-width: 768px) {
  .be-left-sidebar {
    display: none;
  }
}
@media screen and (max-width: 767.98px) {
  .be-left-sidebar .close-button {
    display: none;
  }
}
.be-left-sidebar a {
  font-family: "Noto Sans", Arial, sans-serif;
  font-weight: 600;
}
.be-left-sidebar ul.sub-menu.counter a {
  align-items: center;
  column-gap: 0.35rem;
  display: grid;
  grid-template-columns: minmax(0, 9fr) minmax(0, 1fr);
  padding-left: 2ch !important;
}
.be-left-sidebar ul.sub-menu.counter a span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.be-left-sidebar ul.sub-menu.counter a span:nth-of-type(1) {
  max-width: 100%;
  min-width: 0;
}
.be-left-sidebar ul.sub-menu.counter a span:nth-of-type(2) {
  justify-self: start;
  margin-left: 0;
  max-width: none;
}

#sideNavigationButton {
  padding: 0;
  position: relative;
  z-index: 55;
}
#sideNavigationButton .open-button {
  font-size: 1em;
  cursor: pointer;
  background-color: #3498DB;
  color: white;
  padding: 10px 15px;
  border: none;
}
#sideNavigationButton .open-button:focus {
  outline: 0;
}
@media screen and (max-width: 767.98px) {
  #sideNavigationButton {
    display: none;
  }
}

.beta-banner {
  width: 100%;
  z-index: 54;
  margin: 0 !important;
  padding: 0.75rem 1rem !important;
  border-radius: 0 !important;
  text-align: center;
  font-size: 0.9rem;
}
@media screen and (min-width: 768px) {
  .beta-banner {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
  }
}

#container {
  flex: 1;
}

.be-wrapper #container {
  margin-top: 100px;
}
@media screen and (min-width: 1200px) and (max-width: 1600px) {
  .be-wrapper #container body {
    margin-top: 130px;
  }
}
.be-wrapper.bg-be-wrapper {
  background-color: #F4F6F7 !important;
}

.splash-screen #container {
  margin-bottom: 75px !important;
}

#showUpdateMessageForTable {
  position: fixed !important;
  top: 50px;
  width: 100% !important;
  z-index: 1039 !important;
}

#commonSearchBox {
  margin-top: 20px !important;
}

#fireworksContainer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 65px;
  z-index: 9999;
  pointer-events: none;
}

.smsLetterContainerParent {
  position: absolute !important;
  z-index: 10 !important;
  display: none;
  background-color: white !important;
}

@media screen and (max-width: 575.98px) {
  .smsLetterContainerParent {
    width: 300px !important;
  }
}
@media screen and (min-width: 576px) and (max-width: 767.98px) {
  .smsLetterContainerParent {
    width: 300px !important;
  }
}
@media screen and (min-width: 768px) {
  .smsLetterContainerParent {
    width: 400px !important;
  }
}
footer {
  position: relative;
  left: 0;
  bottom: 0;
  width: 100% !important;
  background-color: #242729;
  color: #FDFEFE;
  font-family: "Calibri Light", Arial, Helvetica, sans-serif;
}
footer div.col-md-4 > div.d-flex:hover {
  cursor: pointer;
}
footer div.col-md-4 > div.d-flex:hover span {
  color: #48BEF5;
}
footer i {
  font-size: 1.4em !important;
}
footer div.d-flex.d-none {
  display: none !important;
}
footer a {
  font-family: "Noto Sans", Arial, sans-serif;
  text-decoration: none !important;
  color: #FBFCFC !important;
}
footer h2, footer h4, footer h6 {
  font-family: "Noto Sans", Arial, sans-serif;
}
@media screen and (max-width: 767.98px) {
  footer div.belma-section {
    border-top: 1px solid whitesmoke;
    margin: 1em;
  }
}

@media screen and (max-width: 1200px) {
  footer {
    font-size: 0.8em !important;
  }
}
#cookieConsent {
  background-color: #F0F3F4;
  min-height: 26px;
  font-size: 14px;
  color: Black;
  line-height: 26px;
  padding: 8px 0 8px 30px;
  font-family: "Trebuchet MS", Helvetica, sans-serif;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 11111111111;
}
#cookieConsent button.close {
  color: black !important;
}
#cookieConsent button.close:hover {
  color: white !important;
}

#simpleAlertBox div.modal-footer {
  height: 50px !important;
}

.rpt-signature-box .js-signature canvas {
  touch-action: none;
  max-width: 100%;
  height: auto !important;
}

#htmlContentBox.rpt-mobile-signature-modal {
  top: var(--rpt-signature-top, 0);
  left: var(--rpt-signature-left, 0);
  right: auto;
  bottom: auto;
  width: 100vw;
  height: 100vh;
  width: var(--rpt-signature-width, 100dvw);
  height: var(--rpt-signature-height, 100dvh);
  padding: 0 !important;
  overflow: hidden;
  background: #fff;
}

#htmlContentBox.rpt-mobile-signature-modal .modal-dialog {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw !important;
  height: 100vh;
  width: var(--rpt-signature-frame-width, 100dvw) !important;
  height: var(--rpt-signature-frame-height, 100dvh);
  max-width: none !important;
  margin: 0 !important;
  transform: translate(-50%, -50%) !important;
  transition: none !important;
}

#htmlContentBox.rpt-mobile-signature-modal .modal-content {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  box-sizing: border-box;
  margin: 0 !important;
  min-width: 0;
  min-height: 0;
  width: 100% !important;
  max-width: none !important;
  height: 100%;
  border-radius: 0;
  border: 0;
  overflow: hidden;
  padding: 12px;
  padding: max(12px, env(safe-area-inset-top), env(safe-area-inset-right), env(safe-area-inset-bottom), env(safe-area-inset-left));
  background: #fff;
  color: var(--belma-primary-dark);
}

#htmlContentBox.rpt-mobile-signature-modal .modal-header {
  display: flex !important;
  min-width: 0;
  padding: 0 0 8px;
  border: 0;
  background: #fff !important;
  color: var(--belma-primary-dark) !important;
}

#htmlContentBox.rpt-mobile-signature-modal .modal-header h4 {
  margin: 0;
  font-size: 18px !important;
  line-height: 1.3;
  color: var(--belma-primary-dark) !important;
}

#htmlContentBox.rpt-mobile-signature-modal .modal-header .close {
  display: none !important;
}

#htmlContentBox.rpt-mobile-signature-modal .modal-body,
#htmlContentBox.rpt-mobile-signature-modal .modal-body > .container-fluid,
#htmlContentBox.rpt-mobile-signature-modal .alert-message {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  padding: 0 !important;
  overflow: hidden;
}

#htmlContentBox.rpt-mobile-signature-modal .modal-body > .container-fluid {
  flex-direction: column;
  margin: 0 !important;
}

#htmlContentBox.rpt-mobile-signature-modal .modal-body > .container-fluid > .my-2 {
  display: none !important;
}

#htmlContentBox.rpt-mobile-signature-modal .rpt-mobile-signature-editor {
  /* Tint only the non-writing toolbar area; keep the ink canvas white and unchanged in size. */
  background: var(--belma-primary-soft);
  position: relative;
  box-sizing: border-box;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  padding: 0 0 56px;
}

#htmlContentBox.rpt-mobile-signature-modal .rpt-mobile-signature-actions {
  position: absolute;
  right: 0;
  bottom: 0;
  gap: 8px;
}

#htmlContentBox.rpt-mobile-signature-modal .rpt-mobile-signature-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px !important;
  height: 48px !important;
  min-width: 48px;
  padding: 0 !important;
  margin: 0 !important;
  border: 1px solid var(--belma-primary-border-soft) !important;
  border-radius: 50%;
  font-size: 22px !important;
  background: var(--belma-primary-soft) !important;
  color: var(--belma-primary-dark) !important;
  box-shadow: 0 2px 6px rgba(38, 55, 70, 0.1);
}

#htmlContentBox.rpt-mobile-signature-modal .rpt-mobile-signature-actions .rpt-mobile-signature-accept {
  background: var(--belma-primary) !important;
  color: var(--belma-primary-contrast) !important;
}

#htmlContentBox.rpt-mobile-signature-modal .rpt-mobile-signature-actions .btn:focus-visible {
  outline: 3px solid var(--belma-primary);
  outline-offset: 2px;
}

#htmlContentBox.rpt-mobile-signature-modal .rpt-mobile-signature-actions .btn:disabled {
  opacity: 0.4;
  box-shadow: none;
}

#htmlContentBox.rpt-mobile-signature-modal .js-signature {
  width: 100% !important;
  margin: 0 !important;
  min-height: 0;
  flex: 1 1 0;
}

#htmlContentBox.rpt-mobile-signature-modal canvas {
  width: 100% !important;
  height: 100% !important;
  touch-action: none;
  border: 0 !important;
  border-radius: 6px;
  outline: 2px solid var(--belma-primary);
  outline-offset: -2px;
  background: #fff !important;
}

#htmlContentBox.rpt-mobile-signature-modal[data-report-signature-portrait=true] .modal-dialog {
  transform: translate(-50%, -50%) rotate(90deg) !important;
}

@media screen and (min-width: 1200px) {
  .js-signature {
    margin-left: 2em !important;
    width: 100% !important;
    max-width: 100% !important;
  }
}
@media screen and (max-width: 1024px) {
  #signatureDiv {
    width: 100% !important;
    max-width: 100% !important;
  }
}
#fileModal div.modal-dialog {
  height: 90% !important;
}
#fileModal div.modal-dialog div.modal-content {
  height: 90% !important;
}
#fileModal div.modal-dialog div.modal-content div.modal-body {
  height: auto !important;
  padding: 0 !important;
}
#fileModal div.modal-dialog div.modal-content div.modal-body iframe {
  height: 100% !important;
  min-height: 80% !important;
  width: 100% !important;
}
#fileModal div.modal-dialog div.modal-content div.modal-body img {
  max-width: 75% !important;
  height: auto;
  display: block !important;
  margin: 1rem auto !important;
}

@media screen and (min-width: 1200px) {
  .ks-container > div.row.no-gutters > div.form-group {
    margin-bottom: 0 !important;
  }
  .ks-container > div.row.no-gutters > div.form-group input {
    font-size: 0.8em;
  }
  .ks-container > div.row.no-gutters > div.form-group select.form-control {
    font-size: 0.8em;
  }
  .ks-container > div.row.no-gutters > div.form-group textarea.form-control {
    font-size: 0.8em;
  }
  .ks-container > div.row.no-gutters > div.form-group label {
    font-size: 0.85em;
  }
  .ks-container > div.row.no-gutters > div.form-group button, .ks-container > div.row.no-gutters > div.form-group span, .ks-container > div.row.no-gutters > div.form-group p {
    font-size: 0.8em;
  }
  .ks-container > div.row.no-gutters > div.form-group button span {
    font-size: 1em !important;
  }
  .ks-container > div.row.no-gutters > div.form-group button.btn-link {
    font-size: 0.9em;
  }
  .ks-container > div.row.no-gutters > div.input-group input {
    font-size: 0.8em;
  }
}
@media screen and (max-width: 1199px) {
  .ks-container > div.row.no-gutters > div.form-group {
    margin-bottom: 0 !important;
  }
  .ks-container > div.row.no-gutters > div.form-group input {
    font-size: 1em;
  }
  .ks-container > div.row.no-gutters > div.form-group select.form-control {
    font-size: 1em;
  }
  .ks-container > div.row.no-gutters > div.form-group textarea.form-control {
    font-size: 1em;
  }
  .ks-container > div.row.no-gutters > div.form-group label {
    font-size: 0.9em;
  }
  .ks-container > div.row.no-gutters > div.form-group button, .ks-container > div.row.no-gutters > div.form-group span, .ks-container > div.row.no-gutters > div.form-group p {
    font-size: 1em;
  }
  .ks-container > div.row.no-gutters > div.form-group button.btn-link {
    font-size: 1em;
  }
  .ks-container > div.row.no-gutters > div.input-group input:read-only {
    background-color: #FFFFFF !important;
  }
  .ks-container > div.row.no-gutters > div.input-group input {
    font-size: 1em;
  }
}
.invalid-feedback.font-weight-bold, .text-danger.font-weight-bold {
  color: #DC3545 !important;
}

.text-primary.font-weight-bold {
  color: #2980B9 !important;
}

.text-header.font-weight-bold {
  padding: 1rem !important;
  color: #2874A6 !important;
  font-family: "Arial Helvetica", SansSerif, sans-serif;
}

.text-header-sm.font-weight-bold {
  padding: 0.25rem !important;
  color: #2874A6 !important;
  font-family: "Arial Helvetica", SansSerif, sans-serif;
}

.br1 {
  border-radius: 16px !important;
}

.br2 {
  border-radius: 16px !important;
}

.br3 {
  border-radius: 16px !important;
}

.br4 {
  border-radius: 16px !important;
}

.br5 {
  border-radius: 16px !important;
}

.br6 {
  border-radius: 16px !important;
}

.br7 {
  border-radius: 16px !important;
}

.br8 {
  border-radius: 16px !important;
}

.br9 {
  border-radius: 16px !important;
}

.br10 {
  border-radius: 16px !important;
}

.br11 {
  border-radius: 16px !important;
}

.br12 {
  border-radius: 16px !important;
}

.br13 {
  border-radius: 16px !important;
}

.br14 {
  border-radius: 16px !important;
}

.br15 {
  border-radius: 16px !important;
}

.br16 {
  border-radius: 16px !important;
}

#followUpModal form.tab {
  display: none !important;
}
#followUpModal form.tab.active {
  display: block !important;
}
#followUpModal span.active {
  transition-property: all;
  transition-duration: 0.2s;
  transition-timing-function: linear;
  transition-delay: 0.2s;
  -webkit-transform: scale(1.2);
  transform: scale(1.2);
}

.wrap-text {
  max-width: 100% !important;
  white-space: normal !important;
  word-break: break-all !important;
}

select.yearselect, select.monthselect {
  margin: 0.3em !important;
  width: 100%;
  height: calc(1.5em + .75rem + 2px);
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #495057;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  -webkit-writing-mode: horizontal-tb !important;
  text-rendering: auto;
  letter-spacing: normal;
  word-spacing: normal;
  text-transform: none;
  text-indent: 0;
  text-shadow: none;
  text-align: start;
  -webkit-appearance: menulist;
  box-sizing: border-box;
  align-items: center;
  white-space: pre;
  -webkit-rtl-ordering: logical;
  cursor: default;
}

ul.breadcrumb {
  list-style: none;
  background-color: ghostwhite !important;
}
ul.breadcrumb li {
  display: inline;
  font-size: 16px;
}
ul.breadcrumb li + li:before {
  padding: 2px;
  color: black;
  content: "/ ";
}
ul.breadcrumb a {
  text-decoration: none;
}
ul.breadcrumb a:hover {
  color: #01447e;
  text-decoration: underline;
}

.carousel {
  width: 75% !important;
}
.carousel ul.carousel-indicators {
  margin: 10px !important;
  position: relative !important;
}
.carousel ul.carousel-indicators li {
  background-color: lightskyblue;
}
.carousel .carousel-inner {
  text-align: center !important;
}
.carousel .carousel-inner img {
  margin: auto !important;
}
.carousel .carousel-control-next-icon, .carousel .carousel-control-prev-icon {
  background-color: black !important;
}

.material-icons {
  font-size: 1em !important;
}

.splash-container {
  max-width: 401px;
  margin: 50px auto;
}

.splash-container .card {
  margin-bottom: 30px;
}

.splash-container .card .card-header {
  text-align: center;
  margin-bottom: 20px;
  padding-top: 40px;
  padding-bottom: 0;
}

.splash-container .card .card-body {
  padding: 20px 30px 15px;
}

.splash-container .card .card-body .custom-checkbox {
  display: inline-block;
  margin: 0;
}

@media (max-width: 767.98px) {
  .splash-container {
    margin-top: 50px;
  }
}
.splash-title {
  text-align: center;
  display: block;
  font-size: 1.308rem;
  font-weight: 300;
}

.splash-description {
  text-align: center;
  display: block;
  line-height: 20px;
  font-size: 1rem;
  color: #5a5a5a;
  margin-top: 11px;
  padding-bottom: 10px;
}

.splash-footer {
  text-align: center;
}

/* getLoginPageCardHeaderColor() selects these brand classes for authentication pages. */
.bg-kylslaget-logo, .bg-varmepump-logo {
  --login-page-accent: #2BAAE1;
  border-top-color: var(--login-page-accent);
}

.bg-belma-logo {
  --login-page-accent: #FDA112;
  border-top-color: var(--login-page-accent);
}

.bg-highlight {
  background-color: #641E16 !important;
  opacity: 1 !important;
}

/* Shared feedback launcher and panel; keep the existing submission and toggle hooks. */
#feedbackContainer {
  position: relative;
  flex-shrink: 0;
  margin-top: clamp(2rem, 5vw, 4rem);
  padding: 0 clamp(1rem, 2.5vw, 3rem) 1.5rem;
}

#feedbackContainer .feedback-widget {
  position: relative;
}

#feedbackButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  max-width: 100%;
  min-height: 3rem;
  padding: 0.75rem 1.1rem;
  line-height: 1.5;
  white-space: normal;
  text-align: left;
  box-shadow: 0 4px 12px rgba(var(--belma-primary-rgb), 0.16);
}

#feedbackButton > i {
  flex-shrink: 0;
  font-size: 1.25em;
}

#feedbackButton:focus-visible {
  outline: 2px solid var(--belma-primary-dark);
  outline-offset: 3px;
}

#feedbackForm {
  display: none;
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.85rem);
  width: 28rem;
  max-width: calc(100vw - 2rem);
  max-height: calc(100vh - 8rem);
  max-height: calc(100dvh - 8rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  z-index: 1040;
  margin: 0;
  background: var(--belma-surface);
  border: 1px solid var(--belma-primary-border);
  border-radius: 0.85rem;
  box-shadow: 0 12px 36px rgba(28, 55, 74, 0.18);
  color: var(--belma-text);
  font-family: var(--belma-font-sans);
}

#feedbackForm .feedback-panel-heading {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1.15rem 1.25rem;
  background: var(--belma-primary-soft);
  border-bottom: 1px solid var(--belma-primary-border-soft);
  color: var(--belma-primary-heading);
}

#feedbackForm .feedback-panel-heading > i {
  flex-shrink: 0;
  font-size: 1.5rem;
  color: var(--belma-primary-dark);
}

#feedbackForm .feedback-panel-heading > h2 {
  margin: 0;
  font: 700 1.05rem/1.5 var(--belma-font-sans);
  color: inherit;
}

#feedbackForm .feedback-panel-body {
  padding: 1.25rem;
}

#feedbackForm label {
  display: block;
  margin: 0 0 0.6rem;
  font-weight: 600;
  color: var(--belma-text);
}

#feedbackForm textarea {
  min-height: 10rem;
  padding: 0.85rem;
  resize: vertical;
  line-height: 1.6;
}

#feedbackForm textarea::placeholder {
  font-size: inherit;
}

#feedbackForm .feedback-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

#feedbackForm .feedback-panel-actions > .btn {
  flex: 1 1 7rem;
  min-height: 2.75rem;
  margin: 0;
  padding: 0.6rem 1rem;
}

#feedbackForm .feedback-panel-actions i {
  margin-right: 0.4rem;
}

/* Compact phones and tablets, including wide touch tablets, without shrinking the tap target. */
@media (max-width: 1199.98px), (max-width: 1366px) and (any-pointer: coarse) {
  #feedbackContainer {
    margin-top: 1rem;
    padding-bottom: 0.75rem;
  }

  #feedbackButton {
    width: max(2.75rem, 44px);
    height: max(2.75rem, 44px);
    min-height: 44px;
    padding: 0;
    gap: 0;
  }

  /* The translated aria-label preserves the button name when its visual caption is hidden. */
  #feedbackButton > span {
    display: none;
  }

  #feedbackButton > i {
    font-size: 1.25rem;
  }
}
/* A viewport-bound sheet keeps the form reachable above a tall, stacked mobile footer. */
@media (max-width: 767.98px) {
  #feedbackForm {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
  }
}
.hide {
  display: none !important;
}

div.fade-toggle-button {
  cursor: pointer;
}

div.fade-toggle-container {
  display: none;
}
div.fade-toggle-container.fade-in-toggle-container {
  display: block;
}

#createCaseContainer {
  display: block;
}

ul.timeline {
  min-width: 90% !important;
  background-color: #FFFFFF !important;
  margin: 0.4em auto !important;
}
@media screen and (max-width: 575.98px) {
  ul.timeline:before {
    position: absolute !important;
    top: 15px !important;
  }
}
ul.timeline div.timeline-avatar {
  width: 40px;
  height: 40px;
  border-radius: 40px;
  background: #3498DB;
  color: white !important;
}
ul.timeline div.timeline-avatar p {
  text-align: center;
  font-size: 24px !important;
}
ul.timeline .timeline-date {
  font-weight: bold !important;
  font-size: 1.2em !important;
}
ul.timeline .timeline-item:before {
  border-color: #2471A3 !important;
  top: 28px !important;
  left: 95px !important;
}
ul.timeline div.timeline-content {
  background-color: #EBF5FB !important;
  min-height: 30px !important;
}
ul.timeline div.timeline-content::before {
  background-color: inherit !important;
}

@media (max-width: 575.98px) {
  .timeline-date span {
    color: black !important;
  }
}
/* Followup comments must not inherit the theme's 85px ellipsis date box at larger text sizes.
   Keep the date in normal flow so wrapping increases row height instead of overlapping the next comment. */
.fche-comments-row ul.timeline .timeline-date {
  position: static;
  width: auto;
  max-width: 100%;
  margin-bottom: 0.35rem;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: anywhere;
}

.fche-comments-row ul.timeline .timeline-autor {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

ul.nav.nav-tabs > li > a {
  color: #2E86C1;
  font-size: 1.2rem;
  font-family: "Comic Sans MS", sans-serif;
}
ul.nav.nav-tabs > li > a.active {
  background-color: #2E86C1 !important;
  opacity: 0.9;
}

ul.pagination {
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  max-width: 100%;
  padding: 0.25rem;
}
ul.pagination > .page-item {
  flex: 0 0 auto;
  margin: 0;
}
ul.pagination .page-link {
  align-items: center;
  background-color: var(--belma-surface);
  border: 1px solid var(--belma-border-strong);
  border-radius: 0.5rem !important;
  box-shadow: 0 1px 2px rgba(28, 55, 74, 0.08);
  color: var(--belma-primary-dark);
  display: inline-flex;
  font-family: var(--belma-font-sans);
  font-size: var(--belma-font-interface);
  font-weight: 600;
  height: 2.35rem;
  justify-content: center;
  line-height: 1;
  margin: 0 !important;
  min-width: 2.35rem;
  padding: 0.4rem 0.65rem;
  transition: background-color 120ms ease, border-color 120ms ease, box-shadow 120ms ease, color 120ms ease, transform 120ms ease;
}
ul.pagination .page-link:hover {
  background-color: var(--belma-primary-soft);
  border-color: var(--belma-primary-border);
  box-shadow: 0 2px 5px rgba(var(--belma-primary-rgb), 0.14);
  color: var(--belma-primary-dark);
  text-decoration: none;
  transform: translateY(-1px);
}
ul.pagination .page-link:focus, ul.pagination .page-link:focus-visible {
  border-color: var(--belma-primary);
  box-shadow: 0 0 0 3px var(--belma-focus);
  outline: 0;
  z-index: 2;
}
ul.pagination > .page-item.active > .page-link {
  background-color: var(--belma-primary) !important;
  border-color: var(--belma-primary) !important;
  box-shadow: 0 2px 6px rgba(var(--belma-primary-rgb), 0.24);
  color: var(--belma-primary-contrast) !important;
}
ul.pagination > .page-item.active > .page-link:focus,
ul.pagination > .page-item.active > .page-link:focus-visible {
  box-shadow: 0 0 0 3px var(--belma-focus);
}
ul.pagination > .page-item.disabled > .page-link {
  background-color: #f4f6f8;
  border-color: #e1e7eb;
  box-shadow: none;
  color: var(--belma-muted);
  opacity: 0.7;
}
ul.pagination a > * {
  pointer-events: none;
}

@media (max-width: 575.98px) {
  ul.pagination {
    gap: 0.3rem;
    padding: 0.2rem;
  }
  ul.pagination .page-link {
    height: 2.15rem;
    min-width: 2.15rem;
    padding: 0.35rem 0.55rem;
  }
}
button.ftbl-btn-300 {
  width: 300px;
  text-align: left;
}

div.flex-table-container {
  border-bottom: 1px solid #D5D8DC;
  /*
  @media (min-width : 1500px) {
      .d-xl-flex {
         display: flex !important;
      }
  }

  @media (max-width : 1499.98px) {
      .d-xl-flex {
          display: block !important;
      }
  }
  */
}
div.flex-table-container div.d-md-flex.flex-label {
  background-color: #EAF2F8 !important;
  color: #1A5276 !important;
}
div.flex-table-container div.d-md-flex.flex-label > div.flex-fill > label {
  display: block;
  font-family: "Open Sans", "Arial", serif;
}
div.flex-table-container div.d-md-flex.flex-label > div.flex-fill > label > button.btn-header {
  font-weight: bold !important;
  background-color: inherit;
  margin: 0 !important;
  width: 100% !important;
  display: inline-flex;
  /*  override when only one child exists */
}
div.flex-table-container div.d-md-flex.flex-label > div.flex-fill > label > button.btn-header > span:first-child {
  text-align: left;
  min-width: 85% !important;
  white-space: normal !important;
  overflow-wrap: break-word;
  display: block;
  background-color: inherit;
  font-weight: bold;
  margin: 0 !important;
  /*
  &:hover {
      overflow: visible !important;
      white-space: normal !important;
      word-break: break-all !important;
  }
  */
}
div.flex-table-container div.d-md-flex.flex-label > div.flex-fill > label > button.btn-header > span:last-child {
  max-width: 15% !important;
}
div.flex-table-container div.d-md-flex.flex-label > div.flex-fill > label > button.btn-header > span:only-child {
  min-width: 100% !important;
  max-width: 100% !important;
}
div.flex-table-container div.d-md-flex.active-service-container, div.flex-table-container div.d-md-flex.active-inventory-container, div.flex-table-container div.d-md-flex.active-product-container, div.flex-table-container div.d-md-flex.active-followup-container, div.flex-table-container div.d-md-flex.active-schedule-container {
  border: 2px solid #3498DB !important;
}
div.flex-table-container div.d-md-flex > div.flex-fill > p {
  padding: 0 !important;
  background-color: inherit !important;
  font-size: 0.99em !important;
  margin: 0.35em !important;
  font-family: "Lato", "Segoe UI", "Arial", serif;
}
div.flex-table-container div.d-md-flex > div.flex-fill a {
  cursor: auto;
  -webkit-user-select: all !important;
  -moz-select: all !important;
  -ms-select: all !important;
  user-select: all !important;
}
div.flex-table-container div.d-md-flex > div.flex-fill > input {
  font-family: "Lato", "Segoe UI", "Arial", serif;
  background-color: inherit;
}
div.flex-table-container div.d-md-flex > div.flex-fill > div.input-group > input {
  font-family: "Lato", "Segoe UI", "Arial", serif;
  background-color: inherit;
}
div.flex-table-container div.d-md-flex > div.flex-fill > textarea {
  font-family: "Lato", "Segoe UI", "Arial", serif;
  background-color: inherit;
}
div.flex-table-container div.d-md-flex > div.flex-fill > a {
  font-family: "Lato", "Segoe UI", "Arial", serif;
  background-color: inherit;
}
div.flex-table-container div.d-md-flex > div.flex-fill > span {
  font-family: "Lato", "Segoe UI", "Arial", serif;
}
div.flex-table-container div.d-md-flex > div.flex-fill > input.form-control-plaintext:focus, div.flex-table-container div.d-md-flex > div.flex-fill textarea.form-control-plaintext:focus {
  color: #495057;
  background-color: #FFFFFF;
  border-color: #80bdff;
  border-width: 2px;
  outline: 0;
  box-shadow: 0 0 0 0 transparent;
}
div.flex-table-container div.d-md-flex > div.flex-fill > select {
  font-family: "Lato", "Segoe UI", "Arial", serif;
  background-color: inherit;
  padding: 0.3em !important;
}
div.flex-table-container div.d-md-flex > div.flex-fill > select.bg-warranty {
  background: #F8C471 !important;
}
div.flex-table-container div.d-md-flex > div.flex-fill > select.bg-danger {
  background: #dc3545 !important;
}
div.flex-table-container div.d-md-flex > div.flex-fill > select.bg-dark {
  background: #343A40 !important;
}
div.flex-table-container div.d-md-flex > div.flex-fill > select.bg-success {
  background: #28A745 !important;
  color: black !important;
}
div.flex-table-container div.d-md-flex > div.flex-fill > select.bg-primary {
  background: #007BFF !important;
  color: black !important;
}
div.flex-table-container div.d-md-flex > div.flex-fill > select.bg-warning {
  background: #FFC107 !important;
}
div.flex-table-container div.d-md-flex > div.flex-fill > select.bg-others {
  background-color: #D35400 !important;
  color: white !important;
}
div.flex-table-container div.d-md-flex > div.flex-fill > select.bg-dark-blue {
  background-color: #1B2631 !important;
  color: white !important;
}
div.flex-table-container div.d-md-flex > div.flex-fill > select.bg-indianred {
  background-color: #CD5C5C !important;
  color: white !important;
}
div.flex-table-container div.d-md-flex > div.flex-fill > select.bg-dark-salmon {
  background-color: #E9967A !important;
  color: white !important;
}
div.flex-table-container div.d-md-flex > div.flex-fill > select.bg-dark-red {
  background-color: #8B0000 !important;
  color: white !important;
}
div.flex-table-container div.d-md-flex > div.flex-fill > select.bg-pale-violet-red {
  background-color: #DB7093 !important;
  color: white !important;
}
div.flex-table-container div.d-md-flex > div.flex-fill > select.bg-dark-orange {
  background-color: #FF8C00 !important;
  color: white !important;
}
div.flex-table-container div.d-md-flex > div.flex-fill > select.bg-orange-red {
  background-color: #FF4500 !important;
  color: white !important;
}
div.flex-table-container div.d-md-flex > div.flex-fill > select.bg-gold {
  background-color: #FFD700 !important;
  color: black !important;
}
div.flex-table-container div.d-md-flex > div.flex-fill > select.bg-yellow {
  background-color: #FFFF00 !important;
  color: black !important;
}
div.flex-table-container div.d-md-flex > div.flex-fill > select.bg-dark-khaki {
  background-color: #BDB76B !important;
  color: black !important;
}
div.flex-table-container div.d-md-flex > div.flex-fill > select.bg-khaki {
  background-color: #F0E68C !important;
  color: black !important;
}
div.flex-table-container div.d-md-flex > div.flex-fill > select.bg-magenta {
  background-color: #FF00FF !important;
  color: white !important;
}
div.flex-table-container div.d-md-flex > div.flex-fill > select.bg-purple {
  background-color: #800080 !important;
  color: white !important;
}
div.flex-table-container div.d-md-flex > div.flex-fill > select.bg-dark-slate-blue {
  background-color: #483D8B !important;
  color: white !important;
}
div.flex-table-container div.d-md-flex > div.flex-fill > select.bg-olive {
  background-color: #6B8E23 !important;
  color: white !important;
}
div.flex-table-container div.d-md-flex > div.flex-fill > select.bg-maroon {
  background-color: #800000 !important;
  color: white !important;
}
div.flex-table-container div.d-md-flex > div.flex-fill > select.bg-dark-slategray {
  background-color: #2F4F4F !important;
  color: white !important;
}
div.flex-table-container div.d-md-flex > div.flex-fill > select.bg-dark-blue {
  background-color: #1B2631 !important;
  color: white !important;
}
div.flex-table-container div.d-md-flex > div.flex-fill > select.bg-light-cream {
  background-color: #F7F9F9 !important;
  color: black !important;
}
div.flex-table-container div.d-md-flex > div.flex-fill > select:disabled {
  background-color: #ffffff;
  color: black !important;
}
div.flex-table-container div.d-md-flex > div.flex-fill > span.select2.select2-container {
  width: 100% !important;
  max-width: 100% !important;
}
div.flex-table-container div.d-md-flex > div.flex-fill div.input-group > div.prepend-small {
  width: 75% !important;
  font-size: 1em !important;
}
div.flex-table-container div.d-md-flex > div.flex-fill div.input-group.ftbl-customer-group > input {
  width: 90% !important;
}
div.flex-table-container div.d-md-flex > div.flex-fill div.input-group.ftbl-customer-group > div.input-group-text {
  background-color: inherit !important;
  width: 10% !important;
  border: 0 !important;
}
div.flex-table-container div.d-md-flex > div.flex-fill div.input-group.ftbl-customer-group > div.input-group-text i.fa-user-check {
  font-size: 0.8rem !important;
  color: #28a745 !important;
  font-weight: bold;
}
div.flex-table-container div.d-md-flex > div.flex-fill.w1 {
  flex-basis: 1% !important;
  max-width: 100% !important;
  overflow-x: hidden;
}
div.flex-table-container div.d-md-flex > div.flex-fill.w2 {
  flex-basis: 2% !important;
  max-width: 100% !important;
  overflow-x: hidden;
}
div.flex-table-container div.d-md-flex > div.flex-fill.w3 {
  flex-basis: 3% !important;
  max-width: 100% !important;
  overflow-x: hidden;
}
div.flex-table-container div.d-md-flex > div.flex-fill.w4 {
  flex-basis: 4% !important;
  max-width: 100% !important;
  overflow-x: hidden;
}
div.flex-table-container div.d-md-flex > div.flex-fill.w5 {
  flex-basis: 5% !important;
  max-width: 100% !important;
  overflow-x: hidden;
}
div.flex-table-container div.d-md-flex > div.flex-fill.w6 {
  flex-basis: 6% !important;
  max-width: 100% !important;
  overflow-x: hidden;
}
div.flex-table-container div.d-md-flex > div.flex-fill.w7 {
  flex-basis: 7% !important;
  max-width: 100% !important;
  overflow-x: hidden;
}
div.flex-table-container div.d-md-flex > div.flex-fill.w8 {
  flex-basis: 8% !important;
  max-width: 100% !important;
  overflow-x: hidden;
}
div.flex-table-container div.d-md-flex > div.flex-fill.w9 {
  flex-basis: 9% !important;
  max-width: 100% !important;
  overflow-x: hidden;
}
div.flex-table-container div.d-md-flex > div.flex-fill.w10 {
  flex-basis: 10% !important;
  max-width: 100% !important;
  overflow-x: hidden;
}
div.flex-table-container div.d-md-flex > div.flex-fill.w11 {
  flex-basis: 11% !important;
  max-width: 100% !important;
  overflow-x: hidden;
}
div.flex-table-container div.d-md-flex > div.flex-fill.w12 {
  flex-basis: 12% !important;
  max-width: 100% !important;
  overflow-x: hidden;
}
div.flex-table-container div.d-md-flex > div.flex-fill.w13 {
  flex-basis: 13% !important;
  max-width: 100% !important;
  overflow-x: hidden;
}
div.flex-table-container div.d-md-flex > div.flex-fill.w14 {
  flex-basis: 14% !important;
  max-width: 100% !important;
  overflow-x: hidden;
}
div.flex-table-container div.d-md-flex > div.flex-fill.w15 {
  flex-basis: 15% !important;
  max-width: 100% !important;
  overflow-x: hidden;
}
div.flex-table-container div.d-md-flex > div.flex-fill.w16 {
  flex-basis: 16% !important;
  max-width: 100% !important;
  overflow-x: hidden;
}
div.flex-table-container div.d-md-flex > div.flex-fill.w17 {
  flex-basis: 17% !important;
  max-width: 100% !important;
  overflow-x: hidden;
}
div.flex-table-container div.d-md-flex > div.flex-fill.w18 {
  flex-basis: 18% !important;
  max-width: 100% !important;
  overflow-x: hidden;
}
div.flex-table-container div.d-md-flex > div.flex-fill.w19 {
  flex-basis: 19% !important;
  max-width: 100% !important;
  overflow-x: hidden;
}
div.flex-table-container div.d-md-flex > div.flex-fill.w20 {
  flex-basis: 20% !important;
  max-width: 100% !important;
  overflow-x: hidden;
}
div.flex-table-container div.d-md-flex > div.flex-fill.w21 {
  flex-basis: 21% !important;
  max-width: 100% !important;
  overflow-x: hidden;
}
div.flex-table-container div.d-md-flex > div.flex-fill.w22 {
  flex-basis: 22% !important;
  max-width: 100% !important;
  overflow-x: hidden;
}
div.flex-table-container div.d-md-flex > div.flex-fill.w23 {
  flex-basis: 23% !important;
  max-width: 100% !important;
  overflow-x: hidden;
}
div.flex-table-container div.d-md-flex > div.flex-fill.w24 {
  flex-basis: 24% !important;
  max-width: 100% !important;
  overflow-x: hidden;
}
div.flex-table-container div.d-md-flex > div.flex-fill.w25 {
  flex-basis: 25% !important;
  max-width: 100% !important;
  overflow-x: hidden;
}
div.flex-table-container div.d-md-flex > div.flex-fill.w26 {
  flex-basis: 26% !important;
  max-width: 100% !important;
  overflow-x: hidden;
}
div.flex-table-container div.d-md-flex > div.flex-fill.w27 {
  flex-basis: 27% !important;
  max-width: 100% !important;
  overflow-x: hidden;
}
div.flex-table-container div.d-md-flex > div.flex-fill.w28 {
  flex-basis: 28% !important;
  max-width: 100% !important;
  overflow-x: hidden;
}
div.flex-table-container div.d-md-flex > div.flex-fill.w29 {
  flex-basis: 29% !important;
  max-width: 100% !important;
  overflow-x: hidden;
}
div.flex-table-container div.d-md-flex > div.flex-fill.w30 {
  flex-basis: 30% !important;
  max-width: 100% !important;
  overflow-x: hidden;
}
div.flex-table-container div.d-md-flex > div.flex-fill.w31 {
  flex-basis: 31% !important;
  max-width: 100% !important;
  overflow-x: hidden;
}
div.flex-table-container div.d-md-flex > div.flex-fill.w32 {
  flex-basis: 32% !important;
  max-width: 100% !important;
  overflow-x: hidden;
}
div.flex-table-container div.d-md-flex > div.flex-fill.w33 {
  flex-basis: 33% !important;
  max-width: 100% !important;
  overflow-x: hidden;
}
div.flex-table-container div.d-md-flex > div.flex-fill.w34 {
  flex-basis: 34% !important;
  max-width: 100% !important;
  overflow-x: hidden;
}
div.flex-table-container div.d-md-flex > div.flex-fill.w35 {
  flex-basis: 35% !important;
  max-width: 100% !important;
  overflow-x: hidden;
}
div.flex-table-container div.d-md-flex > div.flex-fill.w36 {
  flex-basis: 36% !important;
  max-width: 100% !important;
  overflow-x: hidden;
}
div.flex-table-container div.d-md-flex > div.flex-fill.w37 {
  flex-basis: 37% !important;
  max-width: 100% !important;
  overflow-x: hidden;
}
div.flex-table-container div.d-md-flex > div.flex-fill.w38 {
  flex-basis: 38% !important;
  max-width: 100% !important;
  overflow-x: hidden;
}
div.flex-table-container div.d-md-flex > div.flex-fill.w39 {
  flex-basis: 39% !important;
  max-width: 100% !important;
  overflow-x: hidden;
}
div.flex-table-container div.d-md-flex > div.flex-fill.w40 {
  flex-basis: 40% !important;
  max-width: 100% !important;
  overflow-x: hidden;
}
div.flex-table-container div.d-md-flex > div.flex-fill.w41 {
  flex-basis: 41% !important;
  max-width: 100% !important;
  overflow-x: hidden;
}
div.flex-table-container div.d-md-flex > div.flex-fill.w42 {
  flex-basis: 42% !important;
  max-width: 100% !important;
  overflow-x: hidden;
}
div.flex-table-container div.d-md-flex > div.flex-fill.w43 {
  flex-basis: 43% !important;
  max-width: 100% !important;
  overflow-x: hidden;
}
div.flex-table-container div.d-md-flex > div.flex-fill.w44 {
  flex-basis: 44% !important;
  max-width: 100% !important;
  overflow-x: hidden;
}
div.flex-table-container div.d-md-flex > div.flex-fill.w45 {
  flex-basis: 45% !important;
  max-width: 100% !important;
  overflow-x: hidden;
}
div.flex-table-container div.d-md-flex > div.flex-fill.w46 {
  flex-basis: 46% !important;
  max-width: 100% !important;
  overflow-x: hidden;
}
div.flex-table-container div.d-md-flex > div.flex-fill.w47 {
  flex-basis: 47% !important;
  max-width: 100% !important;
  overflow-x: hidden;
}
div.flex-table-container div.d-md-flex > div.flex-fill.w48 {
  flex-basis: 48% !important;
  max-width: 100% !important;
  overflow-x: hidden;
}
div.flex-table-container div.d-md-flex > div.flex-fill.w49 {
  flex-basis: 49% !important;
  max-width: 100% !important;
  overflow-x: hidden;
}
div.flex-table-container div.d-md-flex > div.flex-fill.w50 {
  flex-basis: 50% !important;
  max-width: 100% !important;
  overflow-x: hidden;
}
div.flex-table-container div.d-md-flex > div.flex-fill.w51 {
  flex-basis: 51% !important;
  max-width: 100% !important;
  overflow-x: hidden;
}
div.flex-table-container div.d-md-flex > div.flex-fill.w52 {
  flex-basis: 52% !important;
  max-width: 100% !important;
  overflow-x: hidden;
}
div.flex-table-container div.d-md-flex > div.flex-fill.w53 {
  flex-basis: 53% !important;
  max-width: 100% !important;
  overflow-x: hidden;
}
div.flex-table-container div.d-md-flex > div.flex-fill.w54 {
  flex-basis: 54% !important;
  max-width: 100% !important;
  overflow-x: hidden;
}
div.flex-table-container div.d-md-flex > div.flex-fill.w55 {
  flex-basis: 55% !important;
  max-width: 100% !important;
  overflow-x: hidden;
}
div.flex-table-container div.d-md-flex > div.flex-fill.w56 {
  flex-basis: 56% !important;
  max-width: 100% !important;
  overflow-x: hidden;
}
div.flex-table-container div.d-md-flex > div.flex-fill.w57 {
  flex-basis: 57% !important;
  max-width: 100% !important;
  overflow-x: hidden;
}
div.flex-table-container div.d-md-flex > div.flex-fill.w58 {
  flex-basis: 58% !important;
  max-width: 100% !important;
  overflow-x: hidden;
}
div.flex-table-container div.d-md-flex > div.flex-fill.w59 {
  flex-basis: 59% !important;
  max-width: 100% !important;
  overflow-x: hidden;
}
div.flex-table-container div.d-md-flex > div.flex-fill.w60 {
  flex-basis: 60% !important;
  max-width: 100% !important;
  overflow-x: hidden;
}
div.flex-table-container div.d-md-flex > div.flex-fill.w61 {
  flex-basis: 61% !important;
  max-width: 100% !important;
  overflow-x: hidden;
}
div.flex-table-container div.d-md-flex > div.flex-fill.w62 {
  flex-basis: 62% !important;
  max-width: 100% !important;
  overflow-x: hidden;
}
div.flex-table-container div.d-md-flex > div.flex-fill.w63 {
  flex-basis: 63% !important;
  max-width: 100% !important;
  overflow-x: hidden;
}
div.flex-table-container div.d-md-flex > div.flex-fill.w64 {
  flex-basis: 64% !important;
  max-width: 100% !important;
  overflow-x: hidden;
}
div.flex-table-container div.d-md-flex > div.flex-fill.w65 {
  flex-basis: 65% !important;
  max-width: 100% !important;
  overflow-x: hidden;
}
div.flex-table-container div.d-md-flex > div.flex-fill.w66 {
  flex-basis: 66% !important;
  max-width: 100% !important;
  overflow-x: hidden;
}
div.flex-table-container div.d-md-flex > div.flex-fill.w67 {
  flex-basis: 67% !important;
  max-width: 100% !important;
  overflow-x: hidden;
}
div.flex-table-container div.d-md-flex > div.flex-fill.w68 {
  flex-basis: 68% !important;
  max-width: 100% !important;
  overflow-x: hidden;
}
div.flex-table-container div.d-md-flex > div.flex-fill.w69 {
  flex-basis: 69% !important;
  max-width: 100% !important;
  overflow-x: hidden;
}
div.flex-table-container div.d-md-flex > div.flex-fill.w70 {
  flex-basis: 70% !important;
  max-width: 100% !important;
  overflow-x: hidden;
}
div.flex-table-container div.d-md-flex > div.flex-fill.w71 {
  flex-basis: 71% !important;
  max-width: 100% !important;
  overflow-x: hidden;
}
div.flex-table-container div.d-md-flex > div.flex-fill.w72 {
  flex-basis: 72% !important;
  max-width: 100% !important;
  overflow-x: hidden;
}
div.flex-table-container div.d-md-flex > div.flex-fill.w73 {
  flex-basis: 73% !important;
  max-width: 100% !important;
  overflow-x: hidden;
}
div.flex-table-container div.d-md-flex > div.flex-fill.w74 {
  flex-basis: 74% !important;
  max-width: 100% !important;
  overflow-x: hidden;
}
div.flex-table-container div.d-md-flex > div.flex-fill.w75 {
  flex-basis: 75% !important;
  max-width: 100% !important;
  overflow-x: hidden;
}
div.flex-table-container div.d-md-flex > div.flex-fill.w76 {
  flex-basis: 76% !important;
  max-width: 100% !important;
  overflow-x: hidden;
}
div.flex-table-container div.d-md-flex > div.flex-fill.w77 {
  flex-basis: 77% !important;
  max-width: 100% !important;
  overflow-x: hidden;
}
div.flex-table-container div.d-md-flex > div.flex-fill.w78 {
  flex-basis: 78% !important;
  max-width: 100% !important;
  overflow-x: hidden;
}
div.flex-table-container div.d-md-flex > div.flex-fill.w79 {
  flex-basis: 79% !important;
  max-width: 100% !important;
  overflow-x: hidden;
}
div.flex-table-container div.d-md-flex > div.flex-fill.w80 {
  flex-basis: 80% !important;
  max-width: 100% !important;
  overflow-x: hidden;
}
div.flex-table-container div.d-md-flex > div.flex-fill.w81 {
  flex-basis: 81% !important;
  max-width: 100% !important;
  overflow-x: hidden;
}
div.flex-table-container div.d-md-flex > div.flex-fill.w82 {
  flex-basis: 82% !important;
  max-width: 100% !important;
  overflow-x: hidden;
}
div.flex-table-container div.d-md-flex > div.flex-fill.w83 {
  flex-basis: 83% !important;
  max-width: 100% !important;
  overflow-x: hidden;
}
div.flex-table-container div.d-md-flex > div.flex-fill.w84 {
  flex-basis: 84% !important;
  max-width: 100% !important;
  overflow-x: hidden;
}
div.flex-table-container div.d-md-flex > div.flex-fill.w85 {
  flex-basis: 85% !important;
  max-width: 100% !important;
  overflow-x: hidden;
}
div.flex-table-container div.d-md-flex > div.flex-fill.w86 {
  flex-basis: 86% !important;
  max-width: 100% !important;
  overflow-x: hidden;
}
div.flex-table-container div.d-md-flex > div.flex-fill.w87 {
  flex-basis: 87% !important;
  max-width: 100% !important;
  overflow-x: hidden;
}
div.flex-table-container div.d-md-flex > div.flex-fill.w88 {
  flex-basis: 88% !important;
  max-width: 100% !important;
  overflow-x: hidden;
}
div.flex-table-container div.d-md-flex > div.flex-fill.w89 {
  flex-basis: 89% !important;
  max-width: 100% !important;
  overflow-x: hidden;
}
div.flex-table-container div.d-md-flex > div.flex-fill.w90 {
  flex-basis: 90% !important;
  max-width: 100% !important;
  overflow-x: hidden;
}
div.flex-table-container div.d-md-flex > div.flex-fill.w91 {
  flex-basis: 91% !important;
  max-width: 100% !important;
  overflow-x: hidden;
}
div.flex-table-container div.d-md-flex > div.flex-fill.w92 {
  flex-basis: 92% !important;
  max-width: 100% !important;
  overflow-x: hidden;
}
div.flex-table-container div.d-md-flex > div.flex-fill.w93 {
  flex-basis: 93% !important;
  max-width: 100% !important;
  overflow-x: hidden;
}
div.flex-table-container div.d-md-flex > div.flex-fill.w94 {
  flex-basis: 94% !important;
  max-width: 100% !important;
  overflow-x: hidden;
}
div.flex-table-container div.d-md-flex > div.flex-fill.w95 {
  flex-basis: 95% !important;
  max-width: 100% !important;
  overflow-x: hidden;
}
div.flex-table-container div.d-md-flex > div.flex-fill.w96 {
  flex-basis: 96% !important;
  max-width: 100% !important;
  overflow-x: hidden;
}
div.flex-table-container div.d-md-flex > div.flex-fill.w97 {
  flex-basis: 97% !important;
  max-width: 100% !important;
  overflow-x: hidden;
}
div.flex-table-container div.d-md-flex > div.flex-fill.w98 {
  flex-basis: 98% !important;
  max-width: 100% !important;
  overflow-x: hidden;
}
div.flex-table-container div.d-md-flex > div.flex-fill.w99 {
  flex-basis: 99% !important;
  max-width: 100% !important;
  overflow-x: hidden;
}
div.flex-table-container div.d-md-flex > div.flex-fill.w100 {
  flex-basis: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden;
}
div.flex-table-container div.d-md-flex > div.flex-fill {
  flex-grow: 1;
}
div.flex-table-container div.d-md-flex > div.flex-fill.icons {
  flex-grow: 0 !important;
}
div.flex-table-container div.d-md-flex:not(.flex-table-profile-card) {
  border-top: 1px solid #D5D8DC;
}
div.flex-table-container div.d-md-flex:not(.flex-table-profile-card) > div.flex-fill > label:not(.custom-control) {
  display: none;
}
div.flex-table-container div.d-md-flex.flex-table-profile-card > div.flex-fill a {
  width: 100%;
  text-align: left;
}
div.flex-table-container div.d-md-flex > div.flex-fill.invalid-cell {
  background-color: #dc3545;
}
div.flex-table-container div.d-md-flex > div.flex-fill.invalid-cell input, div.flex-table-container div.d-md-flex > div.flex-fill.invalid-cell textarea {
  color: #ffffff !important;
}
div.flex-table-container div.d-md-flex > div.flex-fill.invalid-cell input::placeholder, div.flex-table-container div.d-md-flex > div.flex-fill.invalid-cell textarea::placeholder {
  color: #EEE2E2 !important;
}
div.flex-table-container div.d-md-flex > div.flex-fill.invalid-cell > input.form-control-plaintext:focus, div.flex-table-container div.d-md-flex > div.flex-fill.invalid-cell textarea.form-control-plaintext:focus {
  color: #000000 !important;
  background-color: #ffb9b9;
  border-color: #dc3545;
  border-width: 2px;
  outline: 0;
  box-shadow: 0 0 0 0 transparent;
}
div.flex-table-container div.d-md-flex > div.flex-fill.bg-danger input, div.flex-table-container div.d-md-flex > div.flex-fill.bg-danger textarea, div.flex-table-container div.d-md-flex div.flex-fill.bg-success input, div.flex-table-container div.d-md-flex div.flex-fill.bg-success textarea {
  color: #ffffff !important;
}
div.flex-table-container div.d-md-flex > div.flex-fill.bg-danger p:not(.dropdown-item), div.flex-table-container div.d-md-flex > div.flex-fill.bg-danger span:not(.dropdown-item), div.flex-table-container div.d-md-flex > div.flex-fill.bg-danger a:not(.dropdown-item), div.flex-table-container div.d-md-flex div.flex-fill.bg-success p:not(.dropdown-item), div.flex-table-container div.d-md-flex div.flex-fill.bg-success span:not(.dropdown-item), div.flex-table-container div.d-md-flex div.flex-fill.bg-success a:not(.dropdown-item) {
  color: #ffffff !important;
}
div.flex-table-container div.d-md-flex > div.flex-fill.bg-danger input::placeholder, div.flex-table-container div.d-md-flex > div.flex-fill.bg-danger textarea::placeholder, div.flex-table-container div.d-md-flex div.flex-fill.bg-success input::placeholder, div.flex-table-container div.d-md-flex div.flex-fill.bg-success textarea::placeholder {
  color: #f8f2f2 !important;
}
div.flex-table-container div.d-md-flex > div.flex-fill.bg-danger > input.form-control-plaintext:focus, div.flex-table-container div.d-md-flex > div.flex-fill.bg-danger textarea.form-control-plaintext:focus, div.flex-table-container div.d-md-flex div.flex-fill.bg-success > input.form-control-plaintext:focus, div.flex-table-container div.d-md-flex div.flex-fill.bg-success textarea.form-control-plaintext:focus {
  color: #5d5b5b !important;
  background-color: rgba(255, 255, 255, 0.9);
  opacity: 0.5;
  border-width: 2px;
  outline: 0;
  box-shadow: 0 0 0 0 transparent;
}
div.flex-table-container div.d-md-flex > div.flex-fill.bg-danger > input.form-control-plaintext:focus::placeholder, div.flex-table-container div.d-md-flex > div.flex-fill.bg-danger textarea.form-control-plaintext:focus::placeholder, div.flex-table-container div.d-md-flex div.flex-fill.bg-success > input.form-control-plaintext:focus::placeholder, div.flex-table-container div.d-md-flex div.flex-fill.bg-success textarea.form-control-plaintext:focus::placeholder {
  color: #5d5b5b !important;
}
div.flex-table-container div.d-md-flex > div.flex-fill.bg-warning input, div.flex-table-container div.d-md-flex > div.flex-fill.bg-warning textarea, div.flex-table-container div.d-md-flex div.flex-fill.bg-info input, div.flex-table-container div.d-md-flex div.flex-fill.bg-info textarea {
  color: #5d5b5b !important;
}
div.flex-table-container div.d-md-flex > div.flex-fill.bg-warning p:not(.dropdown-item), div.flex-table-container div.d-md-flex > div.flex-fill.bg-warning span:not(.dropdown-item), div.flex-table-container div.d-md-flex > div.flex-fill.bg-warning a:not(.dropdown-item), div.flex-table-container div.d-md-flex div.flex-fill.bg-info p:not(.dropdown-item), div.flex-table-container div.d-md-flex div.flex-fill.bg-info span:not(.dropdown-item), div.flex-table-container div.d-md-flex div.flex-fill.bg-info a:not(.dropdown-item) {
  color: #ffffff !important;
}
div.flex-table-container div.d-md-flex > div.flex-fill.bg-warning input::placeholder, div.flex-table-container div.d-md-flex > div.flex-fill.bg-warning textarea::placeholder, div.flex-table-container div.d-md-flex div.flex-fill.bg-info input::placeholder, div.flex-table-container div.d-md-flex div.flex-fill.bg-info textarea::placeholder {
  color: #605d5d !important;
}
div.flex-table-container div.d-md-flex > div.flex-fill.bg-warning > input.form-control-plaintext:focus, div.flex-table-container div.d-md-flex > div.flex-fill.bg-warning textarea.form-control-plaintext:focus, div.flex-table-container div.d-md-flex div.flex-fill.bg-info > input.form-control-plaintext:focus, div.flex-table-container div.d-md-flex div.flex-fill.bg-info textarea.form-control-plaintext:focus {
  background-color: rgba(255, 255, 255, 0.9);
  opacity: 0.5;
  border-width: 2px;
  outline: 0;
  box-shadow: 0 0 0 0 transparent;
}
div.flex-table-container div.d-md-flex > div.flex-fill.bg-warning > input.form-control-plaintext:focus::placeholder, div.flex-table-container div.d-md-flex > div.flex-fill.bg-warning textarea.form-control-plaintext:focus::placeholder, div.flex-table-container div.d-md-flex div.flex-fill.bg-info > input.form-control-plaintext:focus::placeholder, div.flex-table-container div.d-md-flex div.flex-fill.bg-info textarea.form-control-plaintext:focus::placeholder {
  color: #5d5b5b !important;
}
div.flex-table-container div.d-md-flex > div.flex-fill.bg-danger > input.form-control-plaintext:focus, div.flex-table-container div.d-md-flex > div.flex-fill.bg-danger textarea.form-control-plaintext:focus {
  border-color: #dc3545;
}
div.flex-table-container div.d-md-flex > div.flex-fill.bg-success > input.form-control-plaintext:focus, div.flex-table-container div.d-md-flex > div.flex-fill.bg-success textarea.form-control-plaintext:focus {
  border-color: #28a745;
}
div.flex-table-container div.d-md-flex > div.flex-fill.bg-warning > input.form-control-plaintext:focus, div.flex-table-container div.d-md-flex > div.flex-fill.bg-warning textarea.form-control-plaintext:focus {
  border-color: #ffc107;
}
div.flex-table-container div.d-md-flex > div.flex-fill.bg-info > input.form-control-plaintext:focus, div.flex-table-container div.d-md-flex > div.flex-fill.bg-info textarea.form-control-plaintext:focus {
  border-color: #17a2b8;
}
div.flex-table-container div.d-md-flex > div.flex-fill:last-child > .ks-icon-cell {
  padding: 0.25rem;
  margin: 0.3rem 0;
  text-align: center !important;
}
div.flex-table-container div.d-md-flex > div.flex-fill:last-child button {
  margin-left: 2px !important;
  margin-bottom: 2px !important;
}
div.flex-table-container div.d-md-flex.ks-type-log-tabs div.full-width-90 {
  width: 100% !important;
  padding: 1rem !important;
}
div.flex-table-container div.d-md-flex.invte-row .flex-fill.card {
  background-color: inherit !important;
}
div.flex-table-container.ftbl-bordered-container {
  /*
  & > div.d-md-flex.flex-table-body-row {

  &:not([style*="display: none"]):nth-child(odd) {
      background-color: $flex-container-odd-cell-bg-color;
  }

  &:not([style*="display: none"]):nth-child(even) {
      background-color: $flex-container-even-cell-bg-color;
  }
  */
}
div.flex-table-container.ftbl-bordered-container > div.d-md-flex.new, div.flex-table-container.ftbl-bordered-container div.d-md-flex.search {
  background-color: #FFFFFF;
}
div.flex-table-container.ftbl-bordered-container > div.d-md-flex:nth-child(4n) {
  background-color: #F8F9F9;
}
div.flex-table-container.ftbl-bordered-container > div.d-md-flex:nth-child(4n+1) {
  background-color: #FFFFFF;
}
div.flex-table-container.ftbl-bordered-container > div.d-md-flex:nth-child(4n+2) {
  background-color: #F8F9F9;
}
div.flex-table-container.ftbl-bordered-container > div.d-md-flex:nth-child(4n+3) {
  background-color: #FFFFFF;
}
div.flex-table-container.ftbl-bordered-container > div.d-md-flex.warning {
  background-color: #FBEEE6;
}
div.flex-table-container.ftbl-bordered-container > div.d-md-flex > div.flex-fill > select, div.flex-table-container.ftbl-bordered-container > div.d-md-flex > div.flex-fill input, div.flex-table-container.ftbl-bordered-container > div.d-md-flex > div.flex-fill input[readonly], div.flex-table-container.ftbl-bordered-container > div.d-md-flex > div.flex-fill textarea {
  background-color: inherit;
}
div.flex-table-container.ftbl-bordered-container > div.d-md-flex.mcc-campaign-row:not(.warning):nth-child(4n), div.flex-table-container.ftbl-bordered-container > div.d-md-flex.mcc-child-campaign-row:not(.warning):nth-child(4n) {
  background-color: #F8F9F9;
}
div.flex-table-container.ftbl-bordered-container > div.d-md-flex.mcc-campaign-row:not(.warning):nth-child(4n+2), div.flex-table-container.ftbl-bordered-container > div.d-md-flex.mcc-child-campaign-row:not(.warning):nth-child(4n+2) {
  background-color: #FFFFFF;
}
div.flex-table-container.ftbl-bordered-container.ftbl-th-c-r > div.d-md-flex.flex-table-body-row:nth-child(n) {
  background-color: #F8F9F9;
}
div.flex-table-container.ftbl-bordered-container.ftbl-th-c-r > div.d-md-flex.flex-table-body-row:nth-child(n+1) {
  background-color: #F8F9F9;
}
div.flex-table-container.ftbl-bordered-container.ftbl-th-c-r > div.d-md-flex.flex-table-body-row:nth-child(4n+2) {
  background-color: #FFFFFF;
}
div.flex-table-container.ftbl-bordered-container.ftbl-th-c-r > div.d-md-flex.flex-table-body-row:nth-child(4n+3) {
  background-color: #FFFFFF;
}
div.flex-table-container.ftbl-bordered-container.ftbl-th-c-r > div.d-md-flex.flex-table-body-row.warning {
  background-color: #FBEEE6;
}
div.flex-table-container.ftbl-bordered-container.ftbl-th-c-r > div.d-md-flex.flex-table-body-row > div.flex-fill > select, div.flex-table-container.ftbl-bordered-container.ftbl-th-c-r > div.d-md-flex.flex-table-body-row > div.flex-fill input, div.flex-table-container.ftbl-bordered-container.ftbl-th-c-r > div.d-md-flex.flex-table-body-row > div.flex-fill input[readonly], div.flex-table-container.ftbl-bordered-container.ftbl-th-c-r > div.d-md-flex.flex-table-body-row > div.flex-fill textarea {
  background-color: inherit;
}
div.flex-table-container.ftbl-bordered-container.ftbl-fr-c-r > div.d-md-flex.flex-table-body-row:nth-of-type(2n) {
  background-color: #FFFFFF;
}
div.flex-table-container.ftbl-bordered-container.ftbl-fr-c-r > div.d-md-flex.flex-table-body-row:nth-of-type(2n).ks-parent-container {
  background-color: #FFFFFF;
}
div.flex-table-container.ftbl-bordered-container.ftbl-fr-c-r > div.d-md-flex.flex-table-body-row:nth-of-type(4n + 1) {
  background-color: #F8F9F9;
}
div.flex-table-container.ftbl-bordered-container.ftbl-fr-c-r > div.d-md-flex.flex-table-body-row:nth-of-type(4n + 1).ks-parent-container {
  background-color: #FFFFFF;
}
div.flex-table-container.ftbl-bordered-container.ftbl-fr-c-r > div.d-md-flex.flex-table-body-row:nth-of-type(4n) {
  background-color: #FFFFFF;
}
div.flex-table-container.ftbl-bordered-container.ftbl-fr-c-r > div.d-md-flex.flex-table-body-row:nth-of-type(4n).ks-parent-container {
  background-color: #FFFFFF;
}
div.flex-table-container.ftbl-bordered-container.ftbl-fr-c-r > div.d-md-flex.flex-table-body-row:nth-of-type(4n + 3) {
  background-color: #F8F9F9;
}
div.flex-table-container.ftbl-bordered-container.ftbl-fr-c-r > div.d-md-flex.flex-table-body-row:nth-of-type(4n + 3).ks-parent-container {
  background-color: #FFFFFF;
}
div.flex-table-container.ftbl-bordered-container.ftbl-fr-c-r > div.d-md-flex.flex-table-body-row.warning {
  background-color: #FBEEE6;
}
div.flex-table-container.ftbl-bordered-container.ftbl-fr-c-r > div.d-md-flex.flex-table-body-row > div.flex-fill > select, div.flex-table-container.ftbl-bordered-container.ftbl-fr-c-r > div.d-md-flex.flex-table-body-row > div.flex-fill input, div.flex-table-container.ftbl-bordered-container.ftbl-fr-c-r > div.d-md-flex.flex-table-body-row > div.flex-fill input[readonly], div.flex-table-container.ftbl-bordered-container.ftbl-fr-c-r > div.d-md-flex.flex-table-body-row > div.flex-fill textarea {
  background-color: inherit;
}
@media (hover: hover) and (pointer: fine) {
  div.flex-table-container.ftbl-hover-container > div.pdb-row:hover, div.flex-table-container.ftbl-hover-container div.fch-row:hover, div.flex-table-container.ftbl-hover-container div.sld-row:hover, div.flex-table-container.ftbl-hover-container div.adb-row:hover, div.flex-table-container.ftbl-hover-container div.ep-mc-row:hover {
    background-color: #E8F8F5;
  }
  div.flex-table-container.ftbl-hover-container > div.pdb-row:hover:nth-child(4n) > div.flex-fill:last-child, div.flex-table-container.ftbl-hover-container div.fch-row:hover:nth-child(4n) > div.flex-fill:last-child, div.flex-table-container.ftbl-hover-container div.sld-row:hover:nth-child(4n) > div.flex-fill:last-child, div.flex-table-container.ftbl-hover-container div.adb-row:hover:nth-child(4n) > div.flex-fill:last-child, div.flex-table-container.ftbl-hover-container div.ep-mc-row:hover:nth-child(4n) > div.flex-fill:last-child {
    background-color: #F8F9F9 !important;
  }
  div.flex-table-container.ftbl-hover-container > div.pdb-row:hover:nth-child(4n+1) > div.flex-fill:last-child, div.flex-table-container.ftbl-hover-container div.fch-row:hover:nth-child(4n+1) > div.flex-fill:last-child, div.flex-table-container.ftbl-hover-container div.sld-row:hover:nth-child(4n+1) > div.flex-fill:last-child, div.flex-table-container.ftbl-hover-container div.adb-row:hover:nth-child(4n+1) > div.flex-fill:last-child, div.flex-table-container.ftbl-hover-container div.ep-mc-row:hover:nth-child(4n+1) > div.flex-fill:last-child {
    background-color: #FFFFFF !important;
  }
  div.flex-table-container.ftbl-hover-container > div.pdb-row:hover:nth-child(4n+2) > div.flex-fill:last-child, div.flex-table-container.ftbl-hover-container div.fch-row:hover:nth-child(4n+2) > div.flex-fill:last-child, div.flex-table-container.ftbl-hover-container div.sld-row:hover:nth-child(4n+2) > div.flex-fill:last-child, div.flex-table-container.ftbl-hover-container div.adb-row:hover:nth-child(4n+2) > div.flex-fill:last-child, div.flex-table-container.ftbl-hover-container div.ep-mc-row:hover:nth-child(4n+2) > div.flex-fill:last-child {
    background-color: #F8F9F9 !important;
  }
  div.flex-table-container.ftbl-hover-container > div.pdb-row:hover:nth-child(4n+3) > div.flex-fill:last-child, div.flex-table-container.ftbl-hover-container div.fch-row:hover:nth-child(4n+3) > div.flex-fill:last-child, div.flex-table-container.ftbl-hover-container div.sld-row:hover:nth-child(4n+3) > div.flex-fill:last-child, div.flex-table-container.ftbl-hover-container div.adb-row:hover:nth-child(4n+3) > div.flex-fill:last-child, div.flex-table-container.ftbl-hover-container div.ep-mc-row:hover:nth-child(4n+3) > div.flex-fill:last-child {
    background-color: #FFFFFF !important;
  }
}
div.flex-table-container.ftbl-hover-container > div.sld-row.sld-duplicate-customer-row, div.flex-table-container.ftbl-hover-container div.sld-row.sld-duplicate-customer-row, div.flex-table-container.ftbl-hover-container > div.sld-row.sld-duplicate-customer-row > div.flex-fill:last-child, div.flex-table-container.ftbl-hover-container div.sld-row.sld-duplicate-customer-row > div.flex-fill:last-child {
  background-color: #FCB5B5 !important;
}
@media (hover: hover) and (pointer: fine) {
  div.flex-table-container.ftbl-hover-container > div.sld-row.sld-duplicate-customer-row:hover, div.flex-table-container.ftbl-hover-container div.sld-row.sld-duplicate-customer-row:hover, div.flex-table-container.ftbl-hover-container > div.sld-row.sld-duplicate-customer-row:hover > div.flex-fill:last-child, div.flex-table-container.ftbl-hover-container div.sld-row.sld-duplicate-customer-row:hover > div.flex-fill:last-child {
    background-color: #FCB5B5 !important;
  }
}
@media (hover: hover) and (pointer: fine) {
  div.flex-table-container.ftbl-hover-container.ftbl-th-c-r > div.flex-table-body-row.ks-parent-container {
    background-color: initial !important;
  }
  div.flex-table-container.ftbl-hover-container.ftbl-th-c-r > div.flex-table-body-row:hover:nth-child(n) {
    background-color: #E8F8F5;
  }
  div.flex-table-container.ftbl-hover-container.ftbl-th-c-r > div.flex-table-body-row:hover:nth-child(n) > div.flex-fill:last-child {
    background-color: #F8F9F9 !important;
  }
  div.flex-table-container.ftbl-hover-container.ftbl-th-c-r > div.flex-table-body-row:hover:nth-child(n+1) {
    background-color: #E8F8F5;
  }
  div.flex-table-container.ftbl-hover-container.ftbl-th-c-r > div.flex-table-body-row:hover:nth-child(n+1) > div.flex-fill:last-child {
    background-color: #F8F9F9 !important;
  }
  div.flex-table-container.ftbl-hover-container.ftbl-th-c-r > div.flex-table-body-row:hover:nth-child(4n+2) {
    background-color: #E8F8F5;
  }
  div.flex-table-container.ftbl-hover-container.ftbl-th-c-r > div.flex-table-body-row:hover:nth-child(4n+2) > div.flex-fill:last-child {
    background-color: #FFFFFF !important;
  }
  div.flex-table-container.ftbl-hover-container.ftbl-th-c-r > div.flex-table-body-row:hover:nth-child(4n+3) {
    background-color: #E8F8F5;
  }
  div.flex-table-container.ftbl-hover-container.ftbl-th-c-r > div.flex-table-body-row:hover:nth-child(4n+3) > div.flex-fill:last-child {
    background-color: #FFFFFF !important;
  }
  div.flex-table-container.ftbl-hover-container.ftbl-th-c-r > div.flex-table-body-row:hover .card {
    background-color: inherit !important;
  }
}
@media (hover: hover) and (pointer: fine) {
  div.flex-table-container.ftbl-hover-container.ftbl-fr-c-r > div.flex-table-body-row:not(.invte-price-summary-row).ks-parent-container {
    background-color: initial !important;
  }
  div.flex-table-container.ftbl-hover-container.ftbl-fr-c-r > div.flex-table-body-row:not(.invte-price-summary-row):hover:nth-of-type(2n) {
    background-color: #F6DDCC;
  }
  div.flex-table-container.ftbl-hover-container.ftbl-fr-c-r > div.flex-table-body-row:not(.invte-price-summary-row):hover:nth-of-type(2n) > div.flex-fill:last-child {
    background-color: #FFFFFF !important;
  }
  div.flex-table-container.ftbl-hover-container.ftbl-fr-c-r > div.flex-table-body-row:not(.invte-price-summary-row):hover:nth-of-type(4n + 1) {
    background-color: #F6DDCC;
  }
  div.flex-table-container.ftbl-hover-container.ftbl-fr-c-r > div.flex-table-body-row:not(.invte-price-summary-row):hover:nth-of-type(4n + 1) > div.flex-fill:last-child {
    background-color: #F8F9F9 !important;
  }
  div.flex-table-container.ftbl-hover-container.ftbl-fr-c-r > div.flex-table-body-row:not(.invte-price-summary-row):hover:nth-child(4n) {
    background-color: #F6DDCC;
  }
  div.flex-table-container.ftbl-hover-container.ftbl-fr-c-r > div.flex-table-body-row:not(.invte-price-summary-row):hover:nth-child(4n) > div.flex-fill:last-child {
    background-color: #FFFFFF !important;
  }
  div.flex-table-container.ftbl-hover-container.ftbl-fr-c-r > div.flex-table-body-row:not(.invte-price-summary-row):hover:nth-child(4n+3) {
    background-color: #F6DDCC;
  }
  div.flex-table-container.ftbl-hover-container.ftbl-fr-c-r > div.flex-table-body-row:not(.invte-price-summary-row):hover:nth-child(4n+3) > div.flex-fill:last-child {
    background-color: #F8F9F9 !important;
  }
  div.flex-table-container.ftbl-hover-container.ftbl-fr-c-r > div.flex-table-body-row:not(.invte-price-summary-row):hover:nth-child(4n+5) {
    background-color: #F6DDCC;
  }
  div.flex-table-container.ftbl-hover-container.ftbl-fr-c-r > div.flex-table-body-row:not(.invte-price-summary-row):hover:nth-child(4n+5) > div.flex-fill:last-child {
    background-color: #F8F9F9 !important;
  }
  div.flex-table-container.ftbl-hover-container.ftbl-fr-c-r > div.flex-table-body-row:not(.invte-price-summary-row):not(.warning):hover:nth-of-type(2n) {
    background-color: #E8F8F5;
  }
  div.flex-table-container.ftbl-hover-container.ftbl-fr-c-r > div.flex-table-body-row:not(.invte-price-summary-row):not(.warning):hover:nth-of-type(2n) > div.flex-fill:last-child {
    background-color: #FFFFFF !important;
  }
  div.flex-table-container.ftbl-hover-container.ftbl-fr-c-r > div.flex-table-body-row:not(.invte-price-summary-row):not(.warning):hover:nth-of-type(4n + 1) {
    background-color: #E8F8F5;
  }
  div.flex-table-container.ftbl-hover-container.ftbl-fr-c-r > div.flex-table-body-row:not(.invte-price-summary-row):not(.warning):hover:nth-of-type(4n + 1) > div.flex-fill:last-child {
    background-color: #F8F9F9 !important;
  }
  div.flex-table-container.ftbl-hover-container.ftbl-fr-c-r > div.flex-table-body-row:not(.invte-price-summary-row):not(.warning):hover:nth-child(4n) {
    background-color: #E8F8F5;
  }
  div.flex-table-container.ftbl-hover-container.ftbl-fr-c-r > div.flex-table-body-row:not(.invte-price-summary-row):not(.warning):hover:nth-child(4n) > div.flex-fill:last-child {
    background-color: #FFFFFF !important;
  }
  div.flex-table-container.ftbl-hover-container.ftbl-fr-c-r > div.flex-table-body-row:not(.invte-price-summary-row):not(.warning):hover:nth-child(4n+3) {
    background-color: #E8F8F5;
  }
  div.flex-table-container.ftbl-hover-container.ftbl-fr-c-r > div.flex-table-body-row:not(.invte-price-summary-row):not(.warning):hover:nth-child(4n+3) > div.flex-fill:last-child {
    background-color: #F8F9F9 !important;
  }
  div.flex-table-container.ftbl-hover-container.ftbl-fr-c-r > div.flex-table-body-row:not(.invte-price-summary-row):not(.warning):hover:nth-child(4n+5) {
    background-color: #E8F8F5;
  }
  div.flex-table-container.ftbl-hover-container.ftbl-fr-c-r > div.flex-table-body-row:not(.invte-price-summary-row):not(.warning):hover:nth-child(4n+5) > div.flex-fill:last-child {
    background-color: #F8F9F9 !important;
  }
  div.flex-table-container.ftbl-hover-container.ftbl-fr-c-r > div.flex-table-body-row:not(.invte-price-summary-row):not(.warning):hover .card {
    background-color: inherit !important;
  }
}
@media (hover: hover) and (pointer: fine) {
  div.flex-table-container.ftbl-hover-container.ftbl-fr-c-r > div.invte-price-summary-row:hover {
    background-color: #eaeded !important;
  }
  div.flex-table-container.ftbl-hover-container.ftbl-fr-c-r > div.invte-price-summary-row:hover div.flex-fill {
    background-color: #eaeded !important;
  }
}
div.flex-table-container.text-sm div.d-md-flex div.flex-fill, div.flex-table-container.text-sm div.d-lg-flex div.flex-fill, div.flex-table-container.text-sm div.d-xl-flex div.flex-fill {
  font-size: 0.9em !important;
}
div.flex-table-container.text-sm div.d-md-flex div.flex-fill label, div.flex-table-container.text-sm div.d-lg-flex div.flex-fill label, div.flex-table-container.text-sm div.d-xl-flex div.flex-fill label {
  font-size: 1.1em !important;
}
div.flex-table-container div.d-md-flex.d-none {
  display: none !important;
}
div.flex-table-container .notification {
  text-decoration: none;
  position: relative;
  display: inline-block;
}
div.flex-table-container .notification .badge {
  position: absolute;
  top: -10px;
  right: -5px;
  padding: 1px 5px;
  max-width: 20px;
  border-radius: 50%;
  background: #3498DB;
  color: white;
}
div.flex-table-container .notification .badge.badge-30 {
  max-width: 30px !important;
  right: -8px !important;
}
div.flex-table-container .notification .badge.badge-40 {
  max-width: 40px !important;
  right: -10px !important;
}
div.flex-table-container button.p-1 {
  padding: 0.36rem !important;
}
div.flex-table-container div.tab-content {
  background-color: #FFFFFF !important;
}

@media screen and (max-width: 767.98px) {
  div.flex-table-container div.d-md-flex, div.flex-table-container div.d-lg-flex {
    border-left: 1px solid #D5D8DC;
    border-right: 1px solid #D5D8DC;
    border-bottom: 1px solid #D5D8DC;
  }
  div.flex-table-container div.d-md-flex.flex-label, div.flex-table-container div.d-lg-flex.flex-label {
    display: none !important;
  }
  div.flex-table-container div.d-md-flex > div.flex-fill, div.flex-table-container div.d-lg-flex > div.flex-fill {
    padding: 0.125rem 0.5rem !important;
    margin: 0.25rem 0 !important;
  }
  div.flex-table-container div.d-md-flex > div.flex-fill > label, div.flex-table-container div.d-lg-flex > div.flex-fill > label {
    display: block !important;
  }
  div.flex-table-container div.d-md-flex > div.flex-fill div.input-group > div.prepend-small, div.flex-table-container div.d-lg-flex > div.flex-fill div.input-group > div.prepend-small {
    width: 90% !important;
    font-size: 1em !important;
    margin-left: 0.2em;
  }
  div.flex-table-container div.d-md-flex .form-control-plaintext, div.flex-table-container div.d-lg-flex .form-control-plaintext {
    background-color: #FFFFFF;
    background-clip: padding-box;
    border: 1px solid #CED4DA;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    padding: 0.615385rem 1.307rem;
  }
  div.flex-table-container div.d-md-flex .form-control-plaintext:focus, div.flex-table-container div.d-lg-flex .form-control-plaintext:focus {
    border-color: #80BDFF;
    border-width: 2px;
    outline: 0;
    box-shadow: 0 0 0 0;
  }
  div.flex-table-container div.d-md-flex input.form-control-plaintext, div.flex-table-container div.d-lg-flex input.form-control-plaintext {
    height: 2.53846rem;
  }
}
@media screen and (min-width: 768px) {
  div.flex-table-container div.d-md-flex.flex-label > div.flex-fill > label {
    display: block !important;
  }
  div.flex-table-container div.d-md-flex:not(.flex-table-profile-card) {
    border-left: 1px solid #D5D8DC;
    border-right: 1px solid #D5D8DC;
  }
  div.flex-table-container div.d-md-flex:not(.flex-table-profile-card) > div.flex-fill {
    border-right: 1px solid #D5D8DC;
  }
  div.flex-table-container div.d-md-flex > div.flex-fill:last-child {
    border: none;
  }
}
@media screen and (min-width: 1024px) and (max-width: 1600px) {
  div.flex-table-container div.d-md-flex > div.flex-fill:last-child > .ks-icon-cell {
    padding: 0.25rem;
    margin: auto !important;
  }
  div.flex-table-container div.d-md-flex > div.flex-fill:last-child > .ks-icon-cell button {
    padding: 0.3rem !important;
  }
}
.sales-card-container button > * {
  pointer-events: none;
}
.sales-card-container div.d-md-flex.flex-table-profile-card div.ks-icon-cell > button {
  width: 2rem !important;
  height: 2rem !important;
  margin-left: 0.25rem !important;
  margin-bottom: 0.25rem !important;
}
.sales-card-container .notification {
  text-decoration: none;
  position: relative;
  display: inline-block;
}
.sales-card-container .notification .badge {
  position: absolute;
  top: -10px;
  right: -5px;
  padding: 1px 5px;
  max-width: 20px;
  border-radius: 50%;
  background: #3498DB;
  color: white;
}
.sales-card-container .notification .badge.badge-30 {
  max-width: 30px !important;
  right: -8px !important;
}
.sales-card-container .notification .badge.badge-40 {
  max-width: 40px !important;
  right: -10px !important;
}
.sales-card-container .ks-type-log-tabs {
  max-height: 400px;
  overflow-y: scroll;
}

.ftbl-timeline-cell > .ftbl-remove-comments-btn {
  position: absolute;
  top: 0;
  right: 0;
  background-color: inherit !important;
}
.ftbl-timeline-cell > .ftbl-remove-comments-btn:hover {
  transition: all 0.2s ease-in-out;
  transform: scale(1.25);
}

.activity-container div.form-group > span.select2.select2-container {
  width: 100% !important;
  max-width: 100% !important;
}
.bw, div.flex-table-container div.d-md-flex > div.flex-fill > span.select2.select2-container .select2-selection--multiple .select2-selection__rendered li, .activity-container div.form-group > span.select2.select2-container .select2-selection--multiple .select2-selection__rendered li {
  white-space: -moz-pre-wrap !important;
  /* Mozilla, since 1999 */
  white-space: -pre-wrap;
  /* Opera 4-6 */
  white-space: -o-pre-wrap !important;
  /* Opera 7 */
  white-space: pre-wrap !important;
  /* css-3 */
  word-wrap: break-word !important;
  /* Internet Explorer 5.5+ */
  white-space: -webkit-pre-wrap;
  /* Newer versions of Chrome/Safari*/
  word-break: break-all !important;
  white-space: normal !important;
}

.bww {
  white-space: -moz-pre-wrap !important;
  /* Mozilla, since 1999 */
  white-space: -pre-wrap;
  /* Opera 4-6 */
  white-space: -o-pre-wrap !important;
  /* Opera 7 */
  white-space: pre-wrap !important;
  /* css-3 */
  word-wrap: break-word !important;
  /* Internet Explorer 5.5+ */
  white-space: -webkit-pre-wrap;
  /* Newer versions of Chrome/Safari*/
}

@media screen and (min-width: 1500px) {
  .full-width-90 {
    margin-right: auto !important;
    margin-left: auto !important;
    width: 90% !important;
  }
}
@media screen and (min-width: 1200px) and (max-width: 1499.98px) {
  .full-width-90 {
    width: 90% !important;
    margin-right: auto !important;
    margin-left: auto !important;
  }
}
@media screen and (max-width: 1199.98px) {
  .full-width-90 {
    padding: 10px;
    width: 100% !important;
  }
}
@media screen and (min-width: 1500px) {
  .full-width-75 {
    margin-right: auto !important;
    margin-left: auto !important;
    width: 75% !important;
  }
}
@media screen and (min-width: 1200px) and (max-width: 1499.98px) {
  .full-width-75 {
    width: 80% !important;
    margin: auto !important;
  }
}
@media screen and (max-width: 1199.98px) {
  .full-width-75 {
    padding: 10px;
    width: 100% !important;
  }
}
div.tab-content {
  background-color: inherit;
}

div.container-fluid.tab-plane {
  display: none;
}

div.container-fluid.active {
  display: block;
}

div.container.tab-plane {
  display: none;
}

div.container.active {
  display: block;
}

div.product-holder {
  border: 2px solid #E9EAED;
  margin: 3px 0 !important;
  -webkit-box-shadow: 1px 1px 2px !important;
  -moz-box-shadow: 0 0 2px !important;
  box-shadow: 1px 1px 2px !important;
}
div.product-holder button.btn-light {
  background-color: #F0F3F4 !important;
}
div.product-holder button.btn-light:hover {
  background-color: #D5D8DC !important;
}

@media screen and (max-width: 1024px) {
  div.ks-product-containers {
    padding: 2px !important;
  }

  div.product-holder {
    padding: 4px !important;
  }
}
.ks-slider-body {
  display: none;
}

#loading {
  position: fixed;
  display: none;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 110;
  cursor: pointer;
}

#spinner {
  height: 48px !important;
  width: 48px !important;
  position: relative;
}

.spinner-icon {
  position: absolute;
  transform: translateY(-50%);
  display: none;
  /* hide by default */
}

.spinner-icon img {
  height: 18px;
  width: 18px;
}

.text-primary {
  color: #2980B9 !important;
}

.red {
  color: #B03A2E !important;
}

.green {
  color: #1E8449 !important;
}

.blue {
  color: #21618C !important;
}

.button-red {
  color: #B03A2E !important;
  background-color: #FFFFFF !important;
}
.button-red:hover {
  background-color: #ECECEC !important;
  border-color: #E6E6E6 !important;
}

.button-green {
  color: #1E8449 !important;
  background-color: #FFFFFF !important;
}
.button-green:hover {
  background-color: #ECECEC !important;
  border-color: #E6E6E6 !important;
}

.button-blue {
  color: #21618C !important;
  background-color: #FFFFFF !important;
}
.button-blue:hover {
  background-color: #ECECEC !important;
  border-color: #E6E6E6 !important;
}

.edit-button {
  /* -- color: #196F3D !important */
  color: #145A32 !important;
  background-color: #FFFFFF !important;
}
.edit-button:hover {
  background-color: #DEE1E2 !important;
}

.trash-button, .master-trash-button {
  color: #CD5C5C !important;
  background-color: #FFFFFF !important;
}
.trash-button:hover, .master-trash-button:hover {
  background-color: #DEE1E2 !important;
  border-color: #E6E6E6 !important;
}

.warning-button {
  color: #D35400 !important;
  background-color: #FFFFFF !important;
}
.warning-button:hover {
  background-color: #DEE1E2 !important;
}

.save-button {
  color: #1A5276 !important;
  background-color: #FFFFFF !important;
}
.save-button:hover {
  background-color: #DEE1E2 !important;
}

.search-button {
  color: black !important;
  background-color: #FFFFFF !important;
}
.search-button:hover {
  background-color: #DEE1E2 !important;
}

.inbox-button {
  color: #1D8348 !important;
  background-color: #FFFFFF !important;
}
.inbox-button:hover {
  background-color: #DEE1E2 !important;
}

.log-button {
  color: #1A5276 !important;
  background-color: #FFFFFF !important;
}
.log-button:hover {
  background-color: #DEE1E2 !important;
}

.sms-button {
  color: #1D8348 !important;
  background-color: #FFFFFF !important;
}
.sms-button:hover {
  background-color: #DEE1E2 !important;
}

.print-button {
  background-color: #FFFFFF !important;
}
.print-button:hover {
  background-color: #DEE1E2 !important;
}

.log-button {
  background-color: #FFFFFF !important;
}
.log-button:hover {
  background-color: #DEE1E2 !important;
}

.white-button {
  background-color: #FFFFFF !important;
}
.white-button:hover {
  background-color: #DEE1E2 !important;
}

.files-button {
  background-color: #FFFFFF !important;
}
.files-button:hover {
  background-color: #DEE1E2 !important;
}

.unanswer-button {
  color: #E74C3C !important;
  background-color: #FFFFFF !important;
}
.unanswer-button:hover {
  background-color: #DEE1E2 !important;
}

.answer-button {
  color: #1E8449 !important;
  background-color: #FFFFFF !important;
}
.answer-button:hover {
  border: none !important;
  color: #FFFFFF !important;
  background-color: #1E8449 !important;
}

.call-received-button {
  color: #2E86C1 !important;
  background-color: #FFFFFF !important;
}
.call-received-button:hover {
  border: none !important;
  color: #FFFFFF !important;
  background-color: #2E86C1 !important;
}

.new-button {
  color: #2471A3 !important;
}
.new-button:hover {
  background-color: #FFFFFF !important;
}

.fa-rotate-45 {
  -webkit-transform: rotate(45deg);
  -moz-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  -o-transform: rotate(45deg);
  transform: rotate(45deg);
}

.ks-btn-primary {
  background-color: #3498DB;
  border-color: #3498DB;
  color: #FFFFFF;
}
.ks-btn-primary:hover {
  background-color: #2471A3;
  border-color: #2471A3;
  color: #FFFFFF;
}

#commonCalendar {
  position: absolute !important;
  display: none;
  background-color: white !important;
  z-index: 100 !important;
}

#periodPicker {
  background-color: white;
  position: absolute;
  display: none;
  z-index: 100;
  margin: 0;
  height: auto;
}

.f13 {
  font-size: 13px !important;
}

.f12 {
  font-size: 12px !important;
}

.f14 {
  font-size: 14px !important;
}

#successMessage {
  z-index: 5;
  position: fixed !important;
  text-align: center !important;
  top: 80px !important;
}

#errorMessage {
  z-index: 5;
  position: fixed !important;
  text-align: center !important;
  top: 80px !important;
}

.ks-modal-header-blue {
  background-color: #2471A3 !important;
  color: white !important;
}

.bg-others {
  background-color: #D35400 !important;
  color: white !important;
}

.bg-dark-blue {
  background-color: #1B2631 !important;
  color: white !important;
}

.bg-light-blue {
  background-color: #EAF2F8 !important;
  color: #1B4F72 !important;
}

.btn-light-blue {
  background-color: #EAF2F8 !important;
  color: #1A5276 !important;
}

button.btn-light-blue:hover {
  background-color: #D6EAF8 !important;
}

.bg-indianred {
  background-color: #CD5C5C !important;
  color: white !important;
}

.bg-dark-salmon {
  background-color: #E9967A !important;
  color: white !important;
}

.bg-light-pink {
  background-color: #F1948A !important;
  color: white !important;
}

.bg-dark-red {
  background-color: #8B0000 !important;
  color: white !important;
}

.bg-pale-violet-red {
  background-color: #DB7093 !important;
  color: white !important;
}

.bg-dark-orange {
  background-color: #FF8C00 !important;
  color: white !important;
}

.bg-orange-red {
  background-color: #FF4500 !important;
  color: white !important;
}

.bg-gold {
  background-color: #FFD700 !important;
  color: white !important;
}

.bg-yellow {
  background-color: #FFFF00 !important;
  color: white !important;
}

.bg-dark-khaki {
  background-color: #BDB76B !important;
  color: white !important;
}

.bg-khaki {
  background-color: #F0E68C !important;
  color: white !important;
}

.bg-magenta {
  background-color: #FF00FF !important;
  color: white !important;
}

.bg-purple {
  background-color: #800080 !important;
  color: white !important;
}

.bg-dark-slate-blue {
  background-color: #483D8B !important;
  color: white !important;
}

.bg-olive {
  background-color: #6B8E23 !important;
  color: white !important;
}

.bg-maroon {
  background-color: #800000 !important;
  color: white !important;
}

.bg-dark-slategray {
  background-color: #2F4F4F !important;
  color: white !important;
}

.bg-dark-blue {
  background-color: #1B2631 !important;
  color: white !important;
}

.text-header {
  color: #2874A6 !important;
}

.bg-light-cream {
  background-color: #F4F6F7 !important;
  color: black !important;
}

.bg-dark-cream {
  background-color: #EAEDED !important;
}

.bg-grey {
  background-color: #616A6B !important;
  color: #FFFFFF !important;
}

.bg-booking-form {
  background-color: #FFFFFF !important;
}

.bg-light-green {
  background-color: #ABEBC6 !important;
}

.bg-light-red {
  background-color: #F5B7B1 !important;
}

.invce-container-group .invce-attributes-container .bg-light-red > input {
  background-color: inherit !important;
}

.btn-light-green {
  background-color: #2ECC71 !important;
  color: #FFFFFF !important;
}

.btn-light-salmon {
  background-color: #FFA07A !important;
  color: white !important;
}

.btn-light-salmon:hover {
  background-color: #E9967A !important;
}

.btn-light-red {
  background-color: #E74C3C !important;
}

.btn-light-green:hover {
  background-color: #239B56 !important;
}

.btn-light-red:hover {
  background-color: #CB4335 !important;
}

.text-comic-sans {
  font-family: "Comic Sans MS", "Arial", serif;
}

.dark-grey-label {
  color: #424949;
  font-weight: bold;
  font-size: 14px;
}

.font-weight-bold {
  color: #012D28 !important;
}

.table-stripe {
  background-color: #F2F2F2 !important;
}

.log > tbody > tr > td {
  word-wrap: break-word !important;
  word-break: break-all !important;
  white-space: normal !important;
}

.log > tbody > tr > td > a {
  word-wrap: break-word !important;
}

div.not-booked, span.not-booked, p.not-booked {
  background-color: #dc3545 !important;
}
div.not-booked a.btn-link, span.not-booked a.btn-link, p.not-booked a.btn-link {
  color: #ffffff !important;
}

div.booked, span.booked, p.booked {
  background-color: #007bff !important;
}
div.booked a.btn-link, span.booked a.btn-link, p.booked a.btn-link {
  color: #ffffff !important;
}

div.completed, span.completed, p.completed {
  background-color: #28a745 !important;
}
div.completed a.btn-link, span.completed a.btn-link, p.completed a.btn-link {
  color: #ffffff !important;
}

option.not-booked, option.danger {
  background-color: #dc3545;
  color: whitesmoke;
}
option.not-booked:checked, option.danger:checked {
  background-color: #CECECE;
  color: #101010;
}

option.booked, option.info {
  background-color: #007bff;
  color: whitesmoke;
}
option.booked:checked, option.info:checked {
  background-color: #CECECE;
  color: #101010;
}

option.completed, option.success {
  background-color: #28a745;
  color: whitesmoke;
}
option.completed:checked, option.success:checked {
  background-color: #CECECE;
  color: #101010;
}

option.warning {
  background-color: #ffc107;
  color: whitesmoke;
}
option.warning:checked {
  background-color: #CECECE;
  color: #101010;
}

.loading {
  position: fixed;
  display: none;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 2;
  cursor: pointer;
}

.f11 {
  font-size: 11px !important;
}

.f10 {
  font-size: 10px !important;
}

.f24 {
  font-size: 24px !important;
}

.f16 {
  font-size: 16px !important;
}

.h12 {
  height: 12px !important;
}

.h16 {
  height: 16px !important;
}

.h10 {
  height: 10px !important;
}

.h400 {
  height: 400px !important;
}

.bg-grey-border {
  border-color: #E9EAED;
}

.dropdown a.dropdown-item {
  font-size: 0.9em;
}
.dropdown div.dropdown-item {
  font-size: 0.9em;
}
.dropdown div.dropdown-item.active {
  cursor: pointer !important;
}
.dropdown div.dropdown-item.active > a.btn-link {
  color: white !important;
}

.show-full-text {
  white-space: normal !important;
  word-break: break-all !important;
}

main div.dropdown > div.dropdown-menu, main td.dropdown > div.dropdown-menu, #container div.dropdown > div.dropdown-menu, #container td.dropdown > div.dropdown-menu {
  max-height: 250px;
  min-width: 100% !important;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 15 !important;
}
main div.dropdown > div.dropdown-menu.bw .dropdown-item, main td.dropdown > div.dropdown-menu.bw .dropdown-item, #container div.dropdown > div.dropdown-menu.bw .dropdown-item, #container td.dropdown > div.dropdown-menu.bw .dropdown-item {
  max-width: 100% !important;
  word-wrap: break-word !important;
  /* Internet Explorer 5.5+ */
  white-space: -webkit-pre-wrap;
  /* Newer versions of Chrome/Safari*/
  word-break: break-all !important;
  white-space: normal !important;
}
main div.dropdown > div.dropdown-menu .dropdown-item, main td.dropdown > div.dropdown-menu .dropdown-item, #container div.dropdown > div.dropdown-menu .dropdown-item, #container td.dropdown > div.dropdown-menu .dropdown-item {
  cursor: pointer;
  /*
  &.selector {
   cursor: pointer;
  }
  */
}
main div.dropdown > div.dropdown-menu .dropdown-item > p, main div.dropdown > div.dropdown-menu .dropdown-item span, main td.dropdown > div.dropdown-menu .dropdown-item > p, main td.dropdown > div.dropdown-menu .dropdown-item span, #container div.dropdown > div.dropdown-menu .dropdown-item > p, #container div.dropdown > div.dropdown-menu .dropdown-item span, #container td.dropdown > div.dropdown-menu .dropdown-item > p, #container td.dropdown > div.dropdown-menu .dropdown-item span {
  pointer-events: none;
  color: inherit !important;
}
main div.dropdown > div.dropdown-menu .dropdown-item:not(.default-item), main td.dropdown > div.dropdown-menu .dropdown-item:not(.default-item), #container div.dropdown > div.dropdown-menu .dropdown-item:not(.default-item), #container td.dropdown > div.dropdown-menu .dropdown-item:not(.default-item) {
  transition: transform 0.1s ease, background-color 0.1s ease;
}
main div.dropdown > div.dropdown-menu .dropdown-item:not(.default-item):hover, main div.dropdown > div.dropdown-menu .dropdown-item:not(.default-item).active, main td.dropdown > div.dropdown-menu .dropdown-item:not(.default-item):hover, main td.dropdown > div.dropdown-menu .dropdown-item:not(.default-item).active, #container div.dropdown > div.dropdown-menu .dropdown-item:not(.default-item):hover, #container div.dropdown > div.dropdown-menu .dropdown-item:not(.default-item).active, #container td.dropdown > div.dropdown-menu .dropdown-item:not(.default-item):hover, #container td.dropdown > div.dropdown-menu .dropdown-item:not(.default-item).active {
  background-color: #2980B9;
  color: white;
  box-shadow: 2px 2px 4px grey !important;
  transform: scale(1.01);
}
main div.dropdown > div.dropdown-menu .dropdown-item.text-ellipsis, main td.dropdown > div.dropdown-menu .dropdown-item.text-ellipsis, #container div.dropdown > div.dropdown-menu .dropdown-item.text-ellipsis, #container td.dropdown > div.dropdown-menu .dropdown-item.text-ellipsis {
  white-space: normal !important;
  word-break: break-word !important;
}
main div.dropdown > div.dropdown-menu div.dropdown-item:hover, main td.dropdown > div.dropdown-menu div.dropdown-item:hover, #container div.dropdown > div.dropdown-menu div.dropdown-item:hover, #container td.dropdown > div.dropdown-menu div.dropdown-item:hover {
  background-color: #2980B9;
}
main td.dropdown .dropdown-item, #container td.dropdown .dropdown-item {
  font-size: 0.85em !important;
}

div.nav-item.dropdown > div.dropdown-menu {
  width: auto !important;
}
div.nav-item.dropdown > div.dropdown-menu a.dropdown-item {
  min-width: 100% !important;
  font-size: 1em !important;
}

div.row > div[class^=col-] > div.form-group {
  position: relative;
}
div.row > div[class^=col-] > div.form-group > input.form-control-danger {
  font-size: 11px;
}
div.row > div[class^=col-] > div.form-group > label.error-label.invalid-feedback.form-control-placeholder {
  position: absolute !important;
  bottom: 10px !important;
  left: 130px !important;
  transition: all 200ms !important;
  opacity: 0.5 !important;
  margin: 0 !important;
  font-size: 16px !important;
  width: 200px !important;
}
div.row > div[class^=col-] > div.form-group > input.form-control:focus + .form-control-placeholder, div.row > div[class^=col-] > div.form-group > input.form-control:valid + .form-control-placeholder {
  font-size: 80% !important;
  transform: translate3d(0, -100%, 0) !important;
  opacity: 1 !important;
  padding: 3px !important;
  margin-top: 20px !important;
}

.em8 {
  font-size: 0.8em;
}

.em10 {
  font-size: 1em;
}

@media screen and (max-width: 1199px) {
  .em8 {
    font-size: 1em !important;
  }
}
.text-arial {
  font-family: "Arial", SansSerif, serif;
}

.custom-control-input:checked ~ .custom-control-danger::after {
  background-color: #dc3545;
}

.custom-control-input.green:checked ~ .custom-control-label.green::before {
  color: #FFFFFF;
  border-color: #1E7E34 !important;
  background-color: #1E7E34 !important;
  font-family: Arial, serif;
}

.custom-control-input.green:checked ~ .custom-control-label.green::after {
  color: #1E7E34;
}

.custom-control-input.custom-control-label-green:checked ~ .custom-control-label.custom-control-label-green::before {
  color: #1E7E34;
  border-color: #1E7E34 !important;
  background-color: #FFFFFF !important;
  font-family: Arial, serif;
}

.custom-control-input.custom-control-label-green:checked ~ .custom-control-label.custom-control-label-green::after {
  color: #1E7E34;
}

.custom-control-input.custom-control-label-red:checked ~ .custom-control-label.custom-control-label-red::before {
  color: #E74C3C;
  border-color: #E74C3C !important;
  background-color: #FFFFFF !important;
  font-family: Arial, serif;
}

.custom-control-input.custom-control-label-red:checked ~ .custom-control-label.custom-control-label-red::after {
  color: #E74C3C;
}

.switch-button.green input[type=checkbox]:checked + span {
  background-color: #28A745 !important;
}

.switch-button.red input[type=checkbox]:checked + span {
  background-color: #F44C28 !important;
}

.i16 {
  height: 16px;
  width: 16px;
}

.i28 {
  height: 28px;
  width: 28px;
}

.i32 {
  height: 32px;
  width: 32px;
}

.i256_128 {
  height: 128px;
  width: 256px;
}

.i48 {
  height: 48px;
  width: 48px;
}

.i64 {
  height: 64px;
  width: 64px;
}

.i96 {
  height: 96px;
  width: 96px;
}

.i128 {
  height: 128px;
  width: 128px;
}

.iw512 {
  width: 512px;
}

.p1:before {
  content: "" !important;
}

.p3:before {
  content: "" !important;
}

.p4:before {
  content: "" !important;
}

.p5:before {
  content: "" !important;
}

.p6:before {
  content: "" !important;
}

.p7:before {
  content: "" !important;
}

.p8:before {
  content: "" !important;
}

.p9:before {
  content: "" !important;
}

.p10:before {
  content: "" !important;
}

.p11:before {
  content: "" !important;
}

.p12:before {
  content: "" !important;
}

.p13:before {
  content: "" !important;
}

.p14:before {
  content: "" !important;
}

.p15:before {
  content: "" !important;
}

.p16:before {
  content: "" !important;
}

.p17:before {
  content: "" !important;
}

.p18:before {
  content: "" !important;
}

.p20:before {
  content: "" !important;
}

.danger-button-text {
  word-break: break-all !important;
  word-wrap: break-word !important;
  white-space: normal !important;
  -webkit-box-shadow: 0 0 4px #641E16 !important;
  -moz-box-shadow: 0 0 4px #641E16 !important;
  box-shadow: 0 0 4px #641E16 !important;
  color: #641E16 !important;
  font-weight: bold !important;
}
.danger-button-text.danger {
  background-color: #FADBD8 !important;
  -webkit-box-shadow: inset 1px 1px 10px #641E16 !important;
  -moz-box-shadow: inset 1px 1px 10px #641E16 !important;
  box-shadow: inset 1px 1px 10px #641E16 !important;
}

@media (min-width: 768px) {
  #logModal .modal-xl {
    width: 100%;
    max-width: 1200px;
  }
}

div.modal > div.modal-dialog.modal-xl {
  width: 100%;
  max-width: 1200px;
}

caption {
  padding: 2px !important;
  caption-side: top !important;
  font-weight: bold !important;
  text-align: center !important;
}
caption pre {
  color: #229954 !important;
  font-size: 1.25rem !important;
}

tr.table-stripe {
  background-color: #F4F6F6 !important;
}

table.log {
  width: 100% !important;
  padding: 0;
  margin: 0;
  /*
  thead.log-header {
      th {
          white-space: nowrap;
          &:nth-child(3), &:nth-child(6) {
              width: 20% !important;
          }
      }
  }
  */
}
table.log tbody > tr > td {
  white-space: normal;
  word-break: break-all;
}
table.log tbody > tr > td > i.far {
  opacity: 100 !important;
}
table.log tbody > tr > td > i.far.fa-trash-alt {
  color: red !important;
}
table.log tbody > tr > td > i.far.edit-button {
  color: green !important;
}
table.log tbody > tr > td > i.far.fa-bells.orange {
  color: orange !important;
}
table.log tbody > tr > td:nth-child(6) .far {
  font-size: 13px !important;
}
table.log tbody > tr > td > span.stack {
  padding: 0 !important;
  position: relative;
  color: green !important;
  width: auto !important;
}
table.log tbody > tr > td > span.stack i.fa-stack-2x {
  font-size: 12px !important;
  position: relative !important;
}
table.log tbody > tr > td > span.stack i.fa-stack-1x {
  font-size: 8px !important;
  margin: 0 !important;
  left: 6px !important;
  bottom: 8px !important;
}

.log-attributes-table {
  width: 100%;
  table-layout: fixed;
}
.log-attributes-table th, .log-attributes-table td {
  width: 33% !important;
  max-width: 33% !important;
}

.rpt-container {
  display: none;
  background-color: #FBFCFC !important;
  -webkit-box-shadow: 1px 1px 2px 2px #ccc;
  /* Safari 3-4, iOS 4.0.2 - 4.2, Android 2.3+ */
  -moz-box-shadow: 1px 1px 2px 2px #ccc;
  /* Firefox 3.5 - 3.6 */
  box-shadow: 1px 1px 2px 2px #ccc;
}
.rpt-container div.row {
  /* For mobile phones: */
}
.rpt-container div.row div.col img.img-fluid {
  margin: auto !important;
  display: block !important;
}
.rpt-container div.row div.col img.img-fluid.rpt-logo-element {
  width: auto !important;
  max-height: 75px !important;
}
.rpt-container div.row div.col div.text-arial pre {
  white-space: pre-wrap !important;
}
.rpt-container div.row div.col div.flex-fill div.rpt-signature-box div.js-signature {
  margin-left: 0 !important;
  width: 100% !important;
}
.rpt-container div.row div.col div.d-flex.d-none {
  display: none !important;
}
.rpt-container div.row div.col pre {
  background-color: inherit !important;
  padding: 0.3em;
  margin: 0.2em 0 !important;
}
.rpt-container div.row div.col div.rpt-file-box img.i128:hover {
  -webkit-transition: width 0.1s, height 0.1s;
  transition: width 0.1s, height 0.1s;
  width: 140px !important;
  height: 140px !important;
  cursor: pointer !important;
}
.rpt-container div.row div.col div.rpt-video-holder video {
  max-width: 100%;
  height: auto !important;
}
@media only screen and (max-width: 768px) {
  .rpt-container div.row div.col {
    width: 100% !important;
    flex: 1 1 100% !important;
  }
}

#caseHandlingTable .rpt-container {
  display: block;
}

#c_h_f .rpt-container, #caseContainer .rpt-container, #EPMEDailyQuizPopUp .rpt-container {
  display: block !important;
}

#EPMEDailyQuizPopUp #EMPSubmitQuizButton {
  display: none !important;
}

.rrl-settings-container .rrl-event-settings-container .rrl-event {
  display: none;
}
.rrl-settings-container .rrl-event-settings-container .rrl-event.rrl-active-event {
  display: block !important;
}
.rrl-settings-container .rrl-event-settings-container button > * {
  pointer-events: none;
}
@media (max-width: 768px) {
  .rrl-settings-container > .container-fluid {
    padding: 0 !important;
  }
}

.sle-sms-container, .sle-email-container {
  border: 1px solid #E9EAED;
}
@media screen and (min-width: 1024px) {
  .sle-sms-container, .sle-email-container {
    max-height: 300px;
    overflow-y: auto;
  }
}
.sle-sms-container .person-card, .sle-email-container .person-card {
  background-color: #F4F6F7;
}

.ks-stf-container .ks-sts-statistics-row {
  display: none;
}

@media screen and (max-width: 768px) {
  ul.scroll-menu {
    width: 100% !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
    padding: 2px;
    /*
    & > li {
        & > a {
            font-size: 1em !important;
            padding: 8px;
        }
    }
    */
  }
}
@media screen and (max-width: 767.98px) {
  #createCustomerWizard .apdb-communication-row div.col-md-3, #createCustomerWizard .apdb-communication-row div.col-md-8, #createCustomerWizard .apdb-communication-row div.col-md-9 {
    margin-bottom: 0.25em;
  }
}
@media screen and (min-width: 768px) {
  #createCustomerWizard .apdb-communication-row div.col-md-3 {
    padding-right: 0.25em;
  }
  #createCustomerWizard .apdb-communication-row div.col-md-9 {
    padding-left: 0.25em;
  }
}
#createCustomerWizard div.capisw-fixed-footer {
  position: fixed;
  bottom: 0;
  right: 0;
  left: 0;
  z-index: 1039;
  background-color: #242729;
}
@media screen and (min-width: 768px) and (max-width: 1199.98px) {
  #createCustomerWizard div.capisw-fixed-footer {
    height: 75px;
  }
  #createCustomerWizard div.capisw-fixed-footer .capisw-btn-flex-container {
    width: 75%;
  }
  #createCustomerWizard div.capisw-fixed-footer button {
    font-size: 1.05rem !important;
    padding: 0.87rem;
  }
  #createCustomerWizard div.capisw-fixed-footer button i {
    font-size: inherit !important;
  }
}
@media screen and (min-width: 1200px) {
  #createCustomerWizard div.capisw-fixed-footer {
    height: 100px;
  }
  #createCustomerWizard div.capisw-fixed-footer .capisw-btn-flex-container {
    width: 50%;
  }
  #createCustomerWizard div.capisw-fixed-footer button {
    font-size: 1.3rem !important;
    padding: 1rem;
  }
  #createCustomerWizard div.capisw-fixed-footer button i {
    font-size: inherit !important;
  }
}
#createCustomerWizard div.capisw-fixed-footer .capisw-footer-row {
  height: 100% !important;
}
@media screen and (min-width: 1200px) {
  #createCustomerWizard #CAPISWProductCardHolder, #createCustomerWizard #CAPISWCustomerCardHolder {
    position: relative;
    max-height: 1200px;
    overflow-y: scroll;
    overflow-x: hidden;
  }
}
#createCustomerWizard #billingAddressContainer {
  display: none;
}

div.capisw-card-container:hover {
  cursor: pointer;
}
div.capisw-card-container.capisw-active-card {
  background-color: #EBF5FB;
}
div.capisw-card-container.capisw-active-card div.card {
  background-color: inherit !important;
}
div.capisw-card-container.capisw-active-card div.card span {
  font-weight: bold;
}

#SECSEPopUp div.ks-slider-header {
  cursor: pointer;
}
#SECSEPopUp div.se-mdl-cse-card-container:hover {
  cursor: pointer;
}
#SECSEPopUp div.se-mdl-cse-card-container.se-mdl-cse-active-card {
  background-color: #EBF5FB;
}
#SECSEPopUp div.se-mdl-cse-card-container.se-mdl-cse-active-card.danger {
  background-color: #FADBD8;
}
#SECSEPopUp div.se-mdl-cse-card-container.se-mdl-cse-active-card div.card {
  background-color: inherit !important;
}
#SECSEPopUp div.se-mdl-cse-card-container.se-mdl-cse-active-card div.card span {
  font-weight: bold;
}

#notificationSection .nf-active-notification {
  border: 2px solid #3498DB;
}

.hrc-container {
  position: relative;
}
.hrc-container .nested, .hrc-container .item {
  position: relative;
}
.hrc-container .item::before, .hrc-container .item::after {
  content: "";
  position: absolute;
}
.hrc-container .item::before {
  border-top: 1px solid #616A6B;
  top: 25px;
  width: 8px;
  height: 0;
}
.hrc-container .item::after {
  border-left: 1px solid #616A6B;
  height: 100%;
  width: 0;
  top: 8px;
}
.hrc-container .nested .item:last-child::after {
  height: 18px;
}

.invtp-expanded-table .invte-flex-table .invte-price-summary-row {
  background-color: #eaeded !important;
}
.invtp-expanded-table .invte-flex-table .invte-price-summary-row span, .invtp-expanded-table .invte-flex-table .invte-price-summary-row p {
  color: #1a5276 !important;
}

.invte-flex-table .invalid-feedback {
  display: block !important;
  font-size: 10px !important;
}

.fche-flex-table div.input-group.ftbl-comments-group div.input-group-append {
  max-height: 24px !important;
  margin: auto 0.25rem !important;
  margin-right: 0.5rem !important;
}

.followup-checkbox-container {
  overflow-y: scroll;
  -webkit-overflow-scrolling: touch;
}
@media screen and (max-width: 1198.98px) {
  .followup-checkbox-container {
    max-height: 350px;
  }
}
@media screen and (min-width: 1200px) {
  .followup-checkbox-container {
    max-height: 500px;
  }
}

.ks-invoice-containers button > * {
  pointer-events: none;
}
.ks-invoice-containers .invce-container {
  background-color: #F8F9F9;
}
.ks-invoice-containers .payment-stamp {
  position: relative;
  display: inline-block;
  padding: 10px 20px;
  font-size: 24px;
  font-weight: bold;
  text-transform: uppercase;
  text-align: center;
  font-family: "Courier New", Courier, monospace;
  transform: rotate(-10deg);
  opacity: 0.8;
  border-radius: 10px;
}
.ks-invoice-containers .payment-stamp.unpaid {
  color: #dc3545;
  border: 5px solid #dc3545;
  background: rgba(255, 0, 0, 0.1);
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}
.ks-invoice-containers .payment-stamp.paid {
  color: #28a745;
  border: 5px solid #28a745;
  background: rgba(75, 198, 12, 0.1);
  box-shadow: 0 0 10px rgba(6, 158, 18, 0.5);
}
.ks-invoice-containers .payment-stamp.waiting {
  color: #fd7e14;
  border: 5px solid #fd7e14;
  background: rgba(198, 77, 12, 0.1);
  box-shadow: 0 0 10px rgba(235, 123, 9, 0.5);
}

.invce-expanded-table .flex-table-body-row > .invce-form-group > .input-group:has(> .input-group-append > .invce-price-vat-selector) > input.form-control-plaintext, .invce-compressed-table .flex-table-body-row > .invce-form-group > .input-group:has(> .input-group-append > .invce-price-vat-selector) > input.form-control-plaintext {
  flex: 1 1 85%;
  min-width: 0;
  width: 85%;
}
.invce-expanded-table .flex-table-body-row > .invce-form-group > .input-group:has(> .input-group-append > .invce-price-vat-selector) > .input-group-append, .invce-compressed-table .flex-table-body-row > .invce-form-group > .input-group:has(> .input-group-append > .invce-price-vat-selector) > .input-group-append {
  flex: 0 1 15%;
  max-width: 15%;
  min-width: 0;
  overflow: hidden;
}
.invce-expanded-table .flex-table-body-row > .invce-form-group > .input-group:has(> .input-group-append > .invce-price-vat-selector) > .input-group-append > .invce-price-vat-selector, .invce-compressed-table .flex-table-body-row > .invce-form-group > .input-group:has(> .input-group-append > .invce-price-vat-selector) > .input-group-append > .invce-price-vat-selector {
  min-width: 0;
  padding-left: 0;
  padding-right: 0;
  width: 100%;
}

@media screen and (min-width: 512px) {
  #SCFCustomerAddressModal .ks-address-autocomplete-container {
    min-height: 200px !important;
  }
}
@media screen and (min-width: 768px) {
  #SCFCustomerAddressModal .ks-address-autocomplete-container {
    min-height: 300px !important;
  }
}

.select2-container--open {
  z-index: 1040 !important;
}

#ADRSModal {
  /* Match the form surface to the selected theme, overriding the legacy cream utility. */
}
#ADRSModal .bg-light-cream {
  background-color: var(--belma-surface) !important;
  color: var(--belma-text) !important;
}
#ADRSModal .adrs-container {
  padding: 0;
}
#ADRSModal button.adrs-edit-address:hover {
  transform: scale(1.1);
  transition: all 0.2s ease-in-out;
}

fieldset {
  background-color: #FBFCFC;
  border-radius: 4px;
  width: 100% !important;
  border: 1px solid #E9EAED;
  -webkit-box-shadow: 0 2px 12px -10px #000000;
  box-shadow: 0 2px 12px -10px #000000;
}

legend {
  background-color: #FFFFFF;
  border: 2px solid #E9EAED;
  border-radius: 4px;
  padding: 3px 5px 3px 7px;
  width: auto;
  margin-left: auto;
  margin-right: auto;
}

#invhgUDLModalSaveButton > * {
  pointer-events: none;
}

#invhgUDLModalCloseButton > * {
  pointer-events: none;
}

#FCHGUDLModalSaveButton > * {
  pointer-events: none;
}

#FCHGUDLModalCloseButton > * {
  pointer-events: none;
}

#SCHGUDLModalSaveButton > * {
  pointer-events: none;
}

#SCHGUDLModalCloseButton > * {
  pointer-events: none;
}

#CFPUPClsMdlSave > * {
  pointer-events: none;
}

#CFPUPClsMdlClose > * {
  pointer-events: none;
}

.searching .dot {
  font-size: 1.5em;
  animation: pulse 1.5s ease-in-out infinite;
}
.searching .dot:nth-child(1) {
  animation-delay: 0s;
}
.searching .dot:nth-child(2) {
  animation-delay: 0.33s;
}
.searching .dot:nth-child(3) {
  animation-delay: 0.67s;
}
.searching .dot:nth-child(4) {
  animation-delay: 1s;
}

@keyframes pulse {
  0% {
    opacity: 0.2;
  }
  20% {
    opacity: 1;
  }
  100% {
    opacity: 0.2;
  }
}
.ks-validation-containers div.row:nth-of-type(2) > div.col-md-8 > div.card > div.card-body .evld-suggestions-container input, .ks-validation-containers div.row:nth-of-type(2) > div.col-md-8 > div.card > div.card-body .evld-suggestions-container textarea, .ks-validation-containers div.row:nth-of-type(2) > div.col-md-8 > div.card > div.card-body .evld-suggestions-container select, .ks-validation-containers div.row:nth-of-type(2) > div.col-md-8 > div.card > div.card-body .ks-child-container input, .ks-validation-containers div.row:nth-of-type(2) > div.col-md-8 > div.card > div.card-body .ks-child-container textarea, .ks-validation-containers div.row:nth-of-type(2) > div.col-md-8 > div.card > div.card-body .ks-child-container select {
  background-color: inherit !important;
}
.ks-validation-containers div.row:nth-of-type(2) > div.col-md-8 > div.card > div.card-body .evld-suggestions-container > .card, .ks-validation-containers div.row:nth-of-type(2) > div.col-md-8 > div.card > div.card-body .ks-child-container > .card {
  background-color: inherit !important;
}
.ks-validation-containers div.row:nth-of-type(2) > div.col-md-8 > div.card > div.card-body .evld-suggestions-container > .card div.card-header, .ks-validation-containers div.row:nth-of-type(2) > div.col-md-8 > div.card > div.card-body .ks-child-container > .card div.card-header {
  background-color: inherit !important;
}

button.bf-map-button > * {
  pointer-events: none !important;
}
button.bf-map-button img {
  width: 1.75rem !important;
  padding: 0 !important;
  margin: 0 !important;
}

@keyframes vibrate {
  0% {
    transform: translate(0);
  }
  20% {
    transform: translate(-2px, 2px);
  }
  40% {
    transform: translate(-2px, -2px);
  }
  60% {
    transform: translate(2px, 2px);
  }
  80% {
    transform: translate(2px, -2px);
  }
  100% {
    transform: translate(0);
  }
}
.vibrate-icon {
  animation: vibrate 0.5s infinite;
  font-size: 40px;
}

@keyframes blink {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
.blink-icon {
  animation: blink 1s infinite;
}
.blink-icon:hover {
  animation: none !important;
}

.full-height-modal {
  height: 60vh !important;
  /* Optional: Ensure the modal body can scroll if content overflows */
}
.full-height-modal .modal-content {
  height: 100% !important;
}
.full-height-modal .modal-body {
  overflow-y: auto;
  height: calc(100% - 120px);
  /* Adjust the value based on your header and footer height */
}

@media screen and (max-width: 767.98px) {
  .max-height-modal .modal-body {
    max-height: 200px;
    overflow-y: scroll;
  }
}
@media screen and (min-width: 768px) and (max-width: 1199.98px) {
  .max-height-modal .modal-body {
    max-height: 300px;
    overflow-y: scroll;
  }
}
@media screen and (min-width: 1200px) {
  .max-height-modal .modal-body {
    max-height: 500px;
    overflow-y: scroll;
  }
}

.ks-report-containers .rpt-checkbox-container > div.row > div.col-md-4:nth-of-type(2) {
  max-height: 200px !important;
  overflow-y: scroll;
}
.ks-report-containers .rpt-element .rpt-img-holder > img {
  cursor: pointer;
}

.rpt-rptml-work-order-selector {
  max-height: 200px !important;
  overflow-y: scroll;
}

.datepicker tfoot tr th.datepicker-quick-date-btn {
  border-radius: 0.25rem;
  vertical-align: middle;
}
.datepicker tfoot tr th.datepicker-quick-date-btn:hover, .datepicker tfoot tr th.datepicker-quick-date-btn.today:hover {
  background-color: #e2e6ea !important;
  color: #212529 !important;
}

/* Shared workspace polish: navigation, flex tables, and frequently used filters. */
:root {
  --belma-primary: #2879b9;
  --belma-primary-dark: #1b5f93;
  --belma-primary-soft: #eaf3fb;
  --belma-primary-rgb: 40, 121, 185;
  --belma-primary-heading: #244f70;
  --belma-primary-border: #bdd5e7;
  --belma-primary-border-soft: #cfe0ed;
  --belma-primary-table-header: #e7f0f8;
  --belma-primary-highlight: #4fa3d9;
  --belma-primary-highlight-soft: #83c6ee;
  --belma-primary-contrast: #ffffff;
  --belma-border: #d8e1e8;
  --belma-border-strong: #b8c8d4;
  --belma-canvas: #f5f7fa;
  --belma-surface: #ffffff;
  --belma-text: #263746;
  --belma-muted: #6b7d8c;
  --belma-focus: rgba(var(--belma-primary-rgb), 0.2);
  --belma-font-sans: "Noto Sans", "Segoe UI", Arial, sans-serif;
  --belma-font-caption: 0.75rem;
  --belma-font-option: 0.8125rem;
  --belma-font-interface: 0.875rem;
  --belma-font-label: 0.875rem;
  --belma-font-control: 0.875rem;
  --belma-font-table: 0.875rem;
  --belma-success: #2b8a4b;
  --belma-success-dark: #226f3d;
  --belma-danger: #c94b56;
  --belma-danger-dark: #ab3642;
  --belma-warning: #d9971d;
  --belma-warning-dark: #b97c10;
  --belma-info: #2c82a0;
  --belma-info-dark: #246b84;
}

/* A root-relative scale lets the saved font choice resize rem-based legacy UI and shared semantic text together. */
html[data-belma-font-size="1em"] {
  font-size: 1em;
}

html[data-belma-font-size="0.9em"] {
  font-size: 0.9em;
}

html[data-belma-font-size="0.8em"] {
  font-size: 0.8em;
}

html[data-belma-theme=orange] {
  --belma-primary: #ffb313;
  --belma-primary-dark: #b96b00;
  --belma-primary-soft: #fff8d1;
  --belma-primary-rgb: 255, 179, 19;
  --belma-primary-heading: #794600;
  --belma-primary-border: #e9c860;
  --belma-primary-border-soft: #f4dda0;
  --belma-primary-table-header: #fff2ad;
  --belma-primary-highlight: #fdd51e;
  --belma-primary-highlight-soft: #ffe56e;
  --belma-primary-contrast: #ffffff;
}

html[data-belma-theme=green] {
  --belma-primary: #2f855a;
  --belma-primary-dark: #216844;
  --belma-primary-soft: #e8f5ee;
  --belma-primary-rgb: 47, 133, 90;
  --belma-primary-heading: #205f40;
  --belma-primary-border: #acd4bf;
  --belma-primary-border-soft: #c9e4d6;
  --belma-primary-table-header: #e2f1e9;
  --belma-primary-highlight: #55a879;
  --belma-primary-highlight-soft: #8bc8a6;
}

html[data-belma-theme=teal] {
  --belma-primary: #16818a;
  --belma-primary-dark: #0f6269;
  --belma-primary-soft: #e5f5f6;
  --belma-primary-rgb: 22, 129, 138;
  --belma-primary-heading: #125c63;
  --belma-primary-border: #a8d5d8;
  --belma-primary-border-soft: #c5e5e7;
  --belma-primary-table-header: #def0f1;
  --belma-primary-highlight: #42a5ac;
  --belma-primary-highlight-soft: #80c5ca;
}

html[data-belma-theme=purple] {
  --belma-primary: #7256b5;
  --belma-primary-dark: #563c93;
  --belma-primary-soft: #f0ecfa;
  --belma-primary-rgb: 114, 86, 181;
  --belma-primary-heading: #4f3a87;
  --belma-primary-border: #c9bce7;
  --belma-primary-border-soft: #ddd4f0;
  --belma-primary-table-header: #ebe5f6;
  --belma-primary-highlight: #9278cb;
  --belma-primary-highlight-soft: #b8a5df;
}

/* Only primary actions follow the chosen accent; semantic success, warning, and danger colors retain their meanings. */
html[data-belma-theme] {
  /* Legacy bold text has its own color, so primary-button labels must explicitly inherit the theme contrast. */
}
html[data-belma-theme] .btn-primary,
html[data-belma-theme] .ks-btn-primary,
html[data-belma-theme] .badge-primary,
html[data-belma-theme] .bg-primary {
  background-color: var(--belma-primary) !important;
  border-color: var(--belma-primary) !important;
  color: var(--belma-primary-contrast) !important;
}
html[data-belma-theme] .btn-primary .font-weight-bold,
html[data-belma-theme] .ks-btn-primary .font-weight-bold {
  color: var(--belma-primary-contrast) !important;
}
html[data-belma-theme] .btn-primary:hover,
html[data-belma-theme] .btn-primary:focus,
html[data-belma-theme] .btn-primary:not(:disabled):not(.disabled):active,
html[data-belma-theme] .btn-primary:not(:disabled):not(.disabled).active,
html[data-belma-theme] .ks-btn-primary:hover,
html[data-belma-theme] .ks-btn-primary:focus {
  background-color: var(--belma-primary-dark) !important;
  border-color: var(--belma-primary-dark) !important;
}
html[data-belma-theme] .btn-outline-primary {
  border-color: var(--belma-primary) !important;
  color: var(--belma-primary) !important;
}
html[data-belma-theme] .btn-outline-primary:hover,
html[data-belma-theme] .btn-outline-primary:focus,
html[data-belma-theme] .btn-outline-primary:not(:disabled):not(.disabled):active,
html[data-belma-theme] .btn-outline-primary:not(:disabled):not(.disabled).active {
  background-color: var(--belma-primary) !important;
  border-color: var(--belma-primary) !important;
  color: #ffffff !important;
}
html[data-belma-theme] .text-primary {
  color: var(--belma-primary) !important;
}
html[data-belma-theme] .border-primary {
  border-color: var(--belma-primary) !important;
}
html[data-belma-theme] .page-link {
  color: var(--belma-primary);
}
html[data-belma-theme] .page-item.active .page-link,
html[data-belma-theme] .nav-pills .nav-link.active,
html[data-belma-theme] .nav-pills .show > .nav-link,
html[data-belma-theme] .list-group-item.active,
html[data-belma-theme] .progress-bar {
  background-color: var(--belma-primary) !important;
  border-color: var(--belma-primary) !important;
}
html[data-belma-theme] .custom-control-input:checked ~ .custom-control-label::before {
  background-color: var(--belma-primary) !important;
  border-color: var(--belma-primary) !important;
}
/* The legacy checkbox draws a colored glyph: keep its surface light instead of blue on blue.
   Zero-specificity scoping preserves the stronger semantic green/red checkbox variants. */
html[data-belma-theme] :where(.custom-checkbox) .custom-control-input:checked ~ .custom-control-label::before {
  background-color: var(--belma-surface) !important;
}
html[data-belma-theme] :where(.custom-checkbox) .custom-control-input:checked ~ .custom-control-label::after {
  color: var(--belma-primary);
}
html[data-belma-theme] .custom-control-input:focus ~ .custom-control-label::before {
  box-shadow: 0 0 0 3px var(--belma-focus) !important;
}

/* Fuel UX hard-codes blue wizard states; scope the theme replacement to the shared SCF wizard. */
.fuelux .wizard.scf-wizard > .steps-container > ul.steps li.active {
  color: var(--belma-primary-dark);
}

.fuelux .wizard.scf-wizard > .steps-container > ul.steps li.complete {
  background: var(--belma-primary);
  color: var(--belma-primary-contrast);
}

.fuelux .wizard.scf-wizard > .steps-container > ul.steps li.complete .chevron {
  border-left-color: var(--belma-primary-dark);
}

.fuelux .wizard.scf-wizard > .steps-container > ul.steps li.complete .chevron::before {
  border-left-color: var(--belma-primary);
}

.fuelux .wizard.scf-wizard > .steps-container > ul.steps li.complete:hover {
  background: var(--belma-primary-dark);
}

.fuelux .wizard.scf-wizard > .steps-container > ul.steps li.complete:hover .chevron {
  border-left-color: var(--belma-primary-dark);
}

.fuelux .wizard.scf-wizard > .steps-container > ul.steps li.complete:hover .chevron::before {
  border-left-color: var(--belma-primary-dark);
}

/* The profile summary is a primary surface and must not remain tied to the base theme's blue. */
.be-user-nav > li.dropdown .dropdown-menu .user-info {
  background-color: var(--belma-primary) !important;
  color: var(--belma-primary-contrast) !important;
}

.be-user-nav > li.dropdown .dropdown-menu .user-info .user-name {
  color: inherit !important;
}

.be-top-header .be-user-nav > li.dropdown .dropdown-menu::after {
  border-bottom-color: var(--belma-primary) !important;
}

/* Responsive controls stay at 16px to prevent mobile zoom; supporting text remains one step smaller. */
@media screen and (max-width: 1023px) {
  :root {
    --belma-font-option: 14px;
    --belma-font-label: 16px;
    --belma-font-control: 16px;
    --belma-font-table: 16px;
  }
}
body {
  background-color: var(--belma-canvas);
  color: var(--belma-text);
}

/* Shared headings use one loaded typeface and retain a readable size across element variants. */
.text-header,
.text-header.font-weight-bold {
  font-family: var(--belma-font-sans);
}

h5.text-header,
label.h5.text-header {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.005em;
  line-height: 1.4;
}

/* Bootstrap and project-specific buttons share one interaction system. */
.btn {
  border-radius: 6px;
  transition: background-color 120ms ease, border-color 120ms ease, box-shadow 120ms ease, color 120ms ease, transform 120ms ease;
}

/* Text buttons use the interface font without overriding self-rendering icon fonts. */
.btn:not(.fa):not(.fas):not(.far):not(.fal):not(.fad):not(.fab):not(.material-icons):not(.material-icons-outlined) {
  font-family: var(--belma-font-sans);
  font-size: var(--belma-font-interface);
  font-weight: 600;
  letter-spacing: 0.005em;
}

/* The recipient shortcut follows the native email field's visibility and editability. */
select[name=invce_r_e]:is(.d-none, :disabled, [hidden]) ~ button.invce-add-recipient-email {
  display: none;
}

.btn-sm {
  border-radius: 5px;
}

.btn-lg {
  border-radius: 8px;
}

.btn:not(.btn-link):not(.btn-header):not(:disabled):not(.disabled):hover {
  box-shadow: 0 4px 10px rgba(28, 55, 74, 0.16);
  transform: translateY(-1px);
}

.btn:not(.btn-link):focus,
.btn:not(.btn-link).focus {
  box-shadow: 0 0 0 3px var(--belma-focus);
}

.btn:not(.btn-link):not(.btn-header):not(:disabled):not(.disabled):active,
.btn:not(.btn-link):not(.btn-header):not(:disabled):not(.disabled).active {
  box-shadow: 0 2px 5px rgba(28, 55, 74, 0.14);
  transform: translateY(0);
}

.btn:disabled,
.btn.disabled {
  box-shadow: none;
  opacity: 0.58;
}

.be-top-header {
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 1px 0 rgba(28, 55, 74, 0.08), 0 4px 14px rgba(28, 55, 74, 0.05);
}

/* Keep the shortcut navigation balanced across viewport sizes without changing its four/five-page contract. */
.be-top-header > .container-fluid {
  align-items: center;
  display: flex;
  gap: clamp(0.5rem, 1.5vw, 1.5rem);
  margin-left: 0 !important;
  margin-right: 0 !important;
  min-height: 60px;
  padding: 0 clamp(1rem, 4vw, 6rem);
}

.be-top-header .be-navbar-header {
  align-items: center;
  flex: 0 1 180px;
  min-width: 0;
  width: auto;
}

/* Saved crop offsets are pixel-based in the existing 125 x 56 editor preview.
   Reuse the brand link as that same crop frame; never clip the entire navbar. */
.be-top-header .be-navbar-header .navbar-brand,
#logo_preview {
  box-sizing: border-box;
  display: block;
  flex: 0 0 auto;
  width: 125px;
  max-width: 125px;
  height: 56px !important;
  border-radius: 0;
  line-height: normal;
  overflow: hidden;
  padding: 0 !important;
}

/* Preserve inline size and crop margins instead of fitting the uncropped image.
   Important max-sizes only neutralize the legacy theme's 56px image cap. */
.be-top-header .be-navbar-header .navbar-brand > img {
  display: block;
  width: auto;
  height: 100%;
  min-width: 0;
  min-height: 0;
  max-width: none !important;
  max-height: none !important;
  margin: 0;
}

/* Logos without saved crop settings, including the Belma fallback, fit in full. */
.be-top-header .be-navbar-header .navbar-brand > img:not([style]) {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.be-top-header .be-navbar-header .navbar-brand:focus-visible {
  outline: 3px solid var(--belma-focus);
  outline-offset: 2px;
}

.be-top-header .page-title {
  align-items: stretch;
  display: flex;
  justify-content: center;
  line-height: normal;
  padding: 0;
}

.be-top-header .mai-top-nav {
  align-items: center;
  display: flex;
  flex-wrap: nowrap;
  gap: clamp(0.2rem, 0.6vw, 0.55rem);
}

.be-top-header .mai-top-nav > .nav-item > .nav-link {
  align-items: center;
  border-radius: 7px;
  color: var(--belma-text);
  display: inline-flex;
  font-family: var(--belma-font-sans);
  font-size: 14px;
  font-weight: 700;
  gap: 0.35rem;
  justify-content: center;
  line-height: 1.25;
  min-height: clamp(42px, 3.2vw, 48px);
  padding: 0.45rem clamp(0.65rem, 1vw, 1rem);
  position: relative;
  transition: background-color 120ms ease, color 120ms ease, transform 120ms ease;
  white-space: nowrap;
}

.be-top-header .mai-top-nav > .nav-item > .nav-link:hover,
.be-top-header .mai-top-nav > .nav-item > .nav-link:focus-visible {
  background-color: #f1f6fa;
  color: var(--belma-primary-dark);
  outline: none;
  transform: translateY(-1px);
}

.be-top-header .mai-top-nav > .nav-item.active > .nav-link {
  background-color: var(--belma-primary-soft);
  color: var(--belma-primary-dark) !important;
  font-weight: 700;
}

.be-top-header .mai-top-nav > .nav-item.active > .nav-link::after {
  background-color: var(--belma-primary);
  border-radius: 2px 2px 0 0;
  bottom: 0;
  content: "";
  height: 3px;
  left: 0.7rem;
  position: absolute;
  right: 0.7rem;
}

.be-top-header .mai-top-nav > .nav-item > .nav-link > .icon {
  color: var(--belma-muted);
  font-size: 1rem;
  line-height: 1;
}

.be-top-header .mai-top-nav > .nav-item.active > .nav-link > .icon,
.be-top-header .mai-top-nav > .nav-item > .nav-link:hover > .icon,
.be-top-header .mai-top-nav > .nav-item > .nav-link:focus-visible > .icon {
  color: var(--belma-primary);
}

.be-top-header .mai-top-nav > .nav-item > .nav-link > .badge {
  align-items: center;
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 700;
  justify-content: center;
  line-height: 1;
  min-height: 1.35rem;
  min-width: 1.35rem;
  padding: 0.2rem 0.35rem;
}

.be-top-header > .container-fluid > div:last-child {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  margin-left: auto;
}

.be-top-header .be-icons-nav {
  margin-right: 0;
}

.be-top-header #profileName > .dropdown-menu {
  min-width: 17rem;
}

.be-top-header .belma-appearance-preferences {
  border-bottom: 1px solid var(--belma-border);
  border-top: 1px solid var(--belma-border);
  margin: 0.25rem 0;
  padding: 0.55rem 0.7rem 0.7rem;
}

.be-top-header .belma-preference-heading {
  align-items: center;
  color: var(--belma-text);
  display: flex;
  font-family: var(--belma-font-sans);
  font-size: var(--belma-font-label);
  font-weight: 700;
  gap: 0.45rem;
  margin: 0 0 0.4rem;
}
.be-top-header .belma-preference-heading:not(:first-child) {
  margin-top: 0.7rem;
}
.be-top-header .belma-preference-heading > i {
  color: var(--belma-primary);
  text-align: center;
  width: 1rem;
}

.be-top-header .belma-theme-options {
  display: grid;
  gap: 0.3rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.be-top-header .belma-theme-option {
  align-items: center;
  background-color: var(--belma-surface);
  border: 1px solid var(--belma-border);
  border-radius: 5px;
  color: var(--belma-text);
  cursor: pointer;
  display: grid;
  font-family: var(--belma-font-sans);
  font-size: var(--belma-font-option);
  gap: 0.4rem;
  grid-template-columns: 1rem minmax(0, 1fr) 0.75rem;
  min-height: 2.1rem;
  padding: 0.35rem 0.45rem;
  text-align: left;
}
.be-top-header .belma-theme-option:hover, .be-top-header .belma-theme-option:focus-visible {
  background-color: var(--belma-primary-soft);
  border-color: var(--belma-primary-border);
  color: var(--belma-primary-dark);
  outline: 0;
}
.be-top-header .belma-theme-option:focus-visible {
  box-shadow: 0 0 0 3px var(--belma-focus);
}

.be-top-header .belma-theme-option.active {
  background-color: var(--belma-primary-soft);
  border-color: var(--belma-primary);
  color: var(--belma-primary-dark);
}

.be-top-header .belma-theme-swatch {
  border: 2px solid rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--belma-border-strong);
  display: block;
  height: 1rem;
  width: 1rem;
}

.be-top-header .belma-theme-label {
  min-width: 0;
}

.be-top-header .belma-theme-check {
  color: var(--belma-primary);
  opacity: 0;
}

.be-top-header .belma-theme-option.active .belma-theme-check {
  opacity: 1;
}

.be-top-header .belma-font-size-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.be-top-header .belma-activity-date-picker-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.be-top-header .belma-font-size-option {
  background-color: var(--belma-surface);
  border: 1px solid var(--belma-border);
  color: var(--belma-text);
  cursor: pointer;
  font-family: var(--belma-font-sans);
  font-size: var(--belma-font-option);
  font-weight: 600;
  min-height: 2.1rem;
  padding: 0.35rem 0.25rem;
}
.be-top-header .belma-font-size-option + .belma-font-size-option {
  border-left: 0;
}
.be-top-header .belma-font-size-option:first-child {
  border-radius: 5px 0 0 5px;
}
.be-top-header .belma-font-size-option:last-child {
  border-radius: 0 5px 5px 0;
}
.be-top-header .belma-font-size-option:hover, .be-top-header .belma-font-size-option:focus-visible {
  background-color: var(--belma-primary-soft);
  color: var(--belma-primary-dark);
  outline: 0;
}
.be-top-header .belma-font-size-option:focus-visible {
  box-shadow: 0 0 0 3px var(--belma-focus);
  position: relative;
  z-index: 1;
}

.be-top-header .belma-font-size-option.active {
  background-color: var(--belma-primary);
  border-color: var(--belma-primary);
  color: var(--belma-primary-contrast);
}

.be-top-header .belma-activity-date-picker-option {
  background-color: var(--belma-surface);
  border: 1px solid var(--belma-border);
  color: var(--belma-text);
  cursor: pointer;
  font-family: var(--belma-font-sans);
  font-size: var(--belma-font-option);
  font-weight: 600;
  min-height: 2.1rem;
  padding: 0.35rem 0.25rem;
}
.be-top-header .belma-activity-date-picker-option + .belma-activity-date-picker-option {
  border-left: 0;
}
.be-top-header .belma-activity-date-picker-option:first-child {
  border-radius: 5px 0 0 5px;
}
.be-top-header .belma-activity-date-picker-option:last-child {
  border-radius: 0 5px 5px 0;
}
.be-top-header .belma-activity-date-picker-option:hover, .be-top-header .belma-activity-date-picker-option:focus-visible {
  background-color: var(--belma-primary-soft);
  color: var(--belma-primary-dark);
  outline: 0;
}
.be-top-header .belma-activity-date-picker-option:focus-visible {
  box-shadow: 0 0 0 3px var(--belma-focus);
  position: relative;
  z-index: 1;
}

.be-top-header .belma-activity-date-picker-option.active {
  background-color: var(--belma-primary);
  border-color: var(--belma-primary);
  color: var(--belma-primary-contrast);
}

.be-top-header .be-icons-nav > li.dropdown > a.nav-link {
  align-items: center;
  border-radius: 7px;
  display: flex;
  justify-content: center;
  min-height: 40px;
  min-width: 40px;
  padding: 0.35rem;
  transition: background-color 120ms ease, color 120ms ease;
}

.be-top-header .be-icons-nav > li.dropdown > a.nav-link:hover,
.be-top-header .be-icons-nav > li.dropdown > a.nav-link:focus-visible,
.be-top-header .be-icons-nav > li.dropdown.show > a.nav-link {
  background-color: var(--belma-primary-soft);
  outline: none;
}

/* Anchor the mailbox to its own trigger, not the old navbar-wide percentage offsets. */
.be-top-header .nf-navbar > li.dropdown {
  position: relative;
}

.be-top-header .nf-navbar > li.dropdown > a.nav-link {
  min-width: 44px;
  min-height: 44px;
  line-height: 1;
}

.be-top-header .nf-navbar > li.dropdown > a.nav-link > .icon,
.be-top-header .nf-navbar > li.dropdown.show > a.nav-link > .icon {
  color: var(--belma-primary-dark);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
}

.be-top-header .nf-navbar > li.dropdown > a.nav-link:focus-visible {
  box-shadow: 0 0 0 3px var(--belma-focus);
}

/* The legacy arrow belonged to the detached panel and should not float beside this surface. */
.be-top-header .nf-navbar > li.dropdown > a.nav-link::before,
.be-top-header .nf-navbar > li.dropdown > a.nav-link::after {
  display: none;
}

.be-top-header .nf-navbar > li.dropdown > a.nav-link > .nf-indicator {
  /* Keep one digit circular and longer counts pill-shaped, without shrinking the click target. */
  align-items: center;
  display: inline-flex;
  justify-content: center;
  top: 0.15rem;
  right: 0.1rem;
  min-width: 1rem;
  min-height: 1rem;
  padding: 0 0.2rem;
  border: 1px solid var(--belma-surface);
  border-radius: 999px;
  font-family: var(--belma-font-sans);
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
}

.be-top-header .nf-navbar > li.dropdown > a.nav-link > .nf-indicator:empty {
  display: none;
}

.be-top-header .nf-navbar > li.dropdown > .dropdown-menu.be-notifications {
  position: absolute;
  top: calc(100% + 1rem);
  right: 0;
  left: auto;
  transform: none;
  width: 24rem;
  max-width: calc(100vw - 4rem);
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: var(--belma-surface);
  border: 1px solid var(--belma-primary-border);
  border-radius: 0.75rem;
  box-shadow: 0 10px 28px rgba(28, 55, 74, 0.18);
  font-family: var(--belma-font-sans);
}

.be-top-header .nf-navbar > li.dropdown > .be-notifications .title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: var(--belma-primary-soft);
  border-bottom: 1px solid var(--belma-primary-border-soft);
  color: var(--belma-primary-heading);
  font-size: 1rem;
  font-weight: 700;
}

.be-top-header .nf-navbar > li.dropdown > .be-notifications .title .badge {
  height: auto;
  min-width: 1.6rem;
  margin: 0;
  padding: 0.2rem 0.45rem;
  background: var(--belma-surface);
  color: var(--belma-primary-dark);
  font-size: var(--belma-font-interface);
  line-height: 1.4;
}

/* Retain the existing scroll/load-more element; only constrain its visible height. */
.be-top-header .nf-navbar > li.dropdown > .be-notifications .be-scroller-notifications {
  height: min(22rem, calc(100vh - 14rem));
  height: min(22rem, calc(100dvh - 14rem));
  overflow-y: auto !important;
  overscroll-behavior: contain;
}

.be-top-header .nf-navbar > li.dropdown > .be-notifications .content > ul {
  margin: 0;
}

.be-top-header .nf-navbar > li.dropdown > .be-notifications .notification {
  border-bottom-color: var(--belma-border);
}

.be-top-header .nf-navbar > li.dropdown > .be-notifications .notification > a {
  padding: 0.85rem 1.5rem 0.85rem 1rem;
}

.be-top-header .nf-navbar > li.dropdown > .be-notifications .notification-unread,
.be-top-header .nf-navbar > li.dropdown > .be-notifications .notification:hover,
.be-top-header .nf-navbar > li.dropdown > .be-notifications .notification:focus-within {
  background: var(--belma-primary-soft);
}

.be-top-header .nf-navbar > li.dropdown > .be-notifications .notification > a:focus-visible {
  outline: 2px solid var(--belma-primary);
  outline-offset: -2px;
}

.be-top-header .nf-navbar > li.dropdown > .be-notifications .notification .notification-info .text,
.be-top-header .nf-navbar > li.dropdown > .be-notifications .notification .notification-info .user-name {
  color: var(--belma-text);
  font-size: 1rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.be-top-header .nf-navbar > li.dropdown > .be-notifications .notification .notification-info .date {
  color: var(--belma-muted);
  font-size: var(--belma-font-interface);
  line-height: 1.4;
  text-transform: none;
}

.be-top-header .nf-navbar > li.dropdown > .be-notifications .notification-unread > a::after {
  background: var(--belma-primary);
}

.be-top-header .nf-navbar > li.dropdown > .be-notifications .footer > a {
  padding: 0.8rem 1rem;
  background: var(--belma-surface);
  border-top: 1px solid var(--belma-border);
  color: var(--belma-primary-dark);
  font-size: 1rem;
  font-weight: 600;
}

.be-top-header .nf-navbar > li.dropdown > .be-notifications .footer > a:hover,
.be-top-header .nf-navbar > li.dropdown > .be-notifications .footer > a:focus-visible {
  background: var(--belma-primary-soft);
  box-shadow: inset 0 0 0 2px var(--belma-primary-border);
  outline: none;
}

.be-top-header #profileImage {
  background-color: var(--belma-primary);
  border: 2px solid var(--belma-primary-highlight-soft);
  box-shadow: 0 2px 8px rgba(28, 55, 74, 0.2);
  margin: 8px 0 8px 0.65rem;
  transition: background-color 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

.be-top-header #profileImage #profileName > a {
  color: var(--belma-primary-contrast) !important;
}

/* Keep the fixed mobile dropdown outside the avatar's containing block and navbar clipping. */
.be-top-header #profileImage:hover,
.be-top-header #profileImage:focus-within {
  box-shadow: 0 0 0 3px var(--belma-focus), 0 4px 10px rgba(28, 55, 74, 0.2);
}

@media screen and (max-width: 1199.98px) {
  .be-top-header > .container-fluid {
    padding-left: clamp(1rem, 3vw, 2rem);
    padding-right: clamp(1rem, 3vw, 2rem);
  }

  .be-top-header .be-navbar-header {
    flex-basis: auto;
  }

  .be-top-header .page-title {
    display: none;
  }
}
@media screen and (max-width: 575.98px) {
  .be-top-header > .container-fluid {
    gap: 0.35rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .be-top-header .be-navbar-header .navbar-brand {
    max-width: min(45vw, 150px);
  }

  .be-top-header #profileImage {
    margin-left: 0.35rem;
  }

  .be-top-header #profileName > .dropdown-menu {
    min-width: min(17rem, calc(100vw - 1.5rem));
  }
}
.be-left-sidebar {
  background-color: var(--belma-surface);
  border-right: 1px solid var(--belma-border);
  box-shadow: 8px 0 24px rgba(28, 55, 74, 0.1);
  z-index: 1032;
}

.be-fixed-sidebar .be-left-sidebar {
  z-index: 1032;
}

/* Native sidebar scrolling must remain usable even when the legacy plugin measured a hidden drawer. */
@media (min-width: 768px) {
  .be-fixed-sidebar #sideNavigationMenu {
    height: calc(100% - var(--belma-sidebar-offset, 71px));
    padding-bottom: 0;
  }

  #sideNavigationMenu .left-sidebar-wrapper {
    display: flex;
    flex-direction: column;
  }

  #sideNavigationMenu .left-sidebar-spacer {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
  }
}
#sideNavigationMenu .left-sidebar-scroll {
  min-height: 0;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior-y: contain;
}

#sideNavigationMenu .left-sidebar-content {
  position: relative;
}

#sideNavigationMenu .left-sidebar-scroll > .ps__rail-x,
#sideNavigationMenu .left-sidebar-scroll > .ps__rail-y {
  display: none !important;
}

.be-left-sidebar .left-sidebar-content {
  padding: 12px 10px 24px;
}

.be-left-sidebar .sidebar-elements > li {
  margin: 2px 0;
}

#sideNavigationMenu .sidebar-elements > .mobile-navigation-shortcut,
#sideNavigationMenu .sidebar-elements > .mobile-navigation-divider {
  display: none;
}

@media (max-width: 767.98px) {
  #sideNavigationMenu .sidebar-elements > .mobile-navigation-shortcut:not([hidden]),
#sideNavigationMenu .sidebar-elements > .mobile-navigation-divider {
    display: block;
  }

  #sideNavigationMenu .mobile-navigation-shortcut > a {
    background-color: var(--belma-primary-soft);
    border-left: 3px solid var(--belma-primary);
  }

  #sideNavigationMenu .sidebar-elements > .mobile-navigation-divider {
    margin: 14px 6px;
  }

  #sideNavigationMenu .mobile-navigation-divider > hr {
    border: 0;
    border-top: 1px solid var(--belma-border);
    margin: 0;
  }
}
.be-left-sidebar .sidebar-elements > li > a,
.be-left-sidebar .sidebar-elements > li ul li > a {
  align-items: center;
  border-radius: 6px;
  color: var(--belma-text);
  display: flex;
  font-family: var(--belma-font-sans);
  font-size: var(--belma-font-interface);
  font-weight: 700;
  line-height: 1.35;
  transition: background-color 120ms ease, color 120ms ease, transform 120ms ease;
}

.be-left-sidebar .sidebar-elements > li > a {
  min-height: clamp(40px, 3.2vw, 46px);
  padding: 0.55rem 0.75rem;
}

.be-left-sidebar .sidebar-elements > li > a:hover,
.be-left-sidebar .sidebar-elements > li ul li > a:hover {
  background-color: var(--belma-primary-soft);
  color: var(--belma-primary-dark);
}

.be-left-sidebar .sidebar-elements > li.active > a,
.be-left-sidebar .sidebar-elements > li.open > a {
  background-color: var(--belma-primary-soft);
  color: var(--belma-primary-dark);
  font-weight: 700;
}

.be-left-sidebar .sidebar-elements > li.active > a > span,
.be-left-sidebar .sidebar-elements > li.open > a > span,
.be-left-sidebar .sidebar-elements > li ul li.active > a {
  color: var(--belma-primary-dark);
}

.be-left-sidebar .sidebar-elements > li ul {
  background-color: #f8fafc;
  border-color: var(--belma-border);
  margin: 4px 0 8px;
  padding: 6px;
}

.be-left-sidebar .sidebar-elements > li ul li > a {
  min-height: clamp(36px, 2.8vw, 42px);
  padding-bottom: 0.5rem;
  padding-left: 2ch !important;
  padding-top: 0.5rem;
}

.be-left-sidebar .sidebar-elements a.counter {
  align-items: center;
  column-gap: 0.35rem;
  display: grid;
  grid-template-columns: minmax(0, 9fr) minmax(0, 1fr);
  padding-left: 2ch !important;
}

.be-left-sidebar .sidebar-elements ul.sub-menu.counter.counter-values-wide a.counter {
  grid-template-columns: minmax(0, 4fr) minmax(0, 1fr);
}

.be-left-sidebar .sidebar-elements a.counter > span:first-child {
  display: block;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.be-left-sidebar .sidebar-elements a.counter > .badge,
.be-left-sidebar .sidebar-elements > li > a > .badge {
  align-self: center;
  flex: 0 0 auto;
  max-width: none;
}

.be-left-sidebar .sidebar-elements > li > a > .badge {
  margin-left: auto !important;
}

.be-left-sidebar .sidebar-elements a.counter > .badge {
  justify-self: start;
  margin-left: 0 !important;
}

.be-left-sidebar .sidebar-elements li.parent > a::before {
  border: solid #8799a8;
  border-width: 0 2px 2px 0;
  content: "";
  flex: 0 0 auto;
  float: none;
  height: 7px;
  margin-left: auto;
  order: 3;
  transform: rotate(-45deg);
  transition: transform 200ms ease;
  width: 7px;
}

.be-left-sidebar .sidebar-elements li.parent.open > a::before,
.be-left-sidebar .sidebar-elements li.parent.side-navigation-search-match > a::before {
  content: "";
  transform: rotate(45deg);
}

.be-left-sidebar .sidebar-elements > li.side-navigation-search {
  align-items: center;
  background-color: var(--belma-surface);
  display: flex;
  gap: 0.5rem;
  padding: 0.35rem 0 0.75rem;
  position: sticky;
  top: 0;
  z-index: 2;
}

.be-left-sidebar .side-navigation-search > i {
  color: #8799a8;
  flex: 0 0 auto;
  font-size: 0.95rem;
}

.be-left-sidebar .side-navigation-search > input.form-control {
  background-color: #f8fafc;
  border-color: var(--belma-border);
  font-family: var(--belma-font-sans);
  font-size: 0.9rem;
  height: 2.45rem;
  min-width: 0;
}

.be-left-sidebar .side-navigation-search > input.form-control:focus {
  background-color: var(--belma-surface);
  border-color: var(--belma-primary);
  box-shadow: 0 0 0 3px var(--belma-focus);
}

/* Search reveals matching branches at every depth, including configurable-list categories. */
.be-left-sidebar .sidebar-elements li.side-navigation-search-match > ul.sub-menu {
  display: block !important;
}

.side-navigation-backdrop {
  background-color: rgba(28, 55, 74, 0.32);
  inset: 0;
  position: fixed;
  z-index: 1031;
}

.side-navigation-backdrop[hidden] {
  display: none;
}

#sideNavigationButton {
  flex: 0 0 auto;
  padding: 0;
  z-index: 1033;
}

/* The original navbar trigger must remain clickable above the drawer backdrop while the menu is open. */
body.side-navigation-open .be-top-header {
  z-index: 1033;
}

#sideNavigationButton .open-button {
  background-color: var(--belma-primary);
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(var(--belma-primary-rgb), 0.24);
  transition: background-color 120ms ease, box-shadow 120ms ease;
}

#sideNavigationButton .open-button:hover {
  background-color: var(--belma-primary-dark);
  box-shadow: 0 6px 16px rgba(var(--belma-primary-rgb), 0.3);
}

div.flex-table-container {
  background-color: var(--belma-surface);
  border: 1px solid var(--belma-border) !important;
  border-radius: 7px;
  box-shadow: 0 3px 14px rgba(28, 55, 74, 0.07);
}

div.flex-table-container div.d-md-flex.flex-label {
  background-color: var(--belma-primary-table-header) !important;
  border-top: 0 !important;
  color: var(--belma-primary-heading) !important;
}

/* Keep the original header in the column layout; native sticky positioning ends at its own table boundary. */
@media screen and (min-width: 768px) {
  div.flex-table-container > div.d-md-flex.flex-label {
    position: sticky;
    top: var(--belma-table-header-top, 0px);
    z-index: 20;
    box-shadow: 0 2px 0 var(--belma-primary-border-soft);
  }

  /* Raise only open table-template wrappers above sticky headers; their menus retain the shared z-index 15. */
  .INVCETableTemplateSelector.show,
  #FCHTPTemplateSelector.show,
  #invtpTableTemplateSelector.show {
    z-index: 21;
  }

  /* The sales sort wrapper must paint above the sticky header while its shared menu keeps z-index 15. */
  #salesDatabaseSortButtonDiv.show {
    z-index: 21;
  }

  #sales_saved_views_table > div.flex-table-container > div.d-md-flex.flex-label {
    position: static;
    top: auto;
    z-index: auto;
    box-shadow: none;
  }

  /* Expanded detail tables must not cover their outer table's pinned headings. */
  div.flex-table-container div.flex-table-container > div.d-md-flex.flex-label {
    position: static;
  }

  /* A modal owns its scroll viewport; the page navigation is outside it. */
  .modal {
    --belma-table-header-top: 0px;
  }
}
div.flex-table-container div.d-md-flex.flex-label > div.flex-fill {
  align-items: center;
  /* Fixed-width columns can overflow the row; carry its themed background across every column. */
  background-color: inherit;
  display: flex;
  min-height: 42px;
}

div.flex-table-container div.d-md-flex.flex-label > div.flex-fill > label {
  color: inherit;
  font-family: var(--belma-font-sans);
  font-size: var(--belma-font-table) !important;
  letter-spacing: 0.01em;
  line-height: 1.25;
  margin-bottom: 0;
  width: 100%;
}

div.flex-table-container div.d-md-flex:not(.flex-table-profile-card) {
  border-color: var(--belma-border) !important;
}

div.flex-table-container > div.flex-table-body-row {
  transition: background-color 100ms ease, box-shadow 100ms ease;
}

div.flex-table-container.ftbl-hover-container > div.flex-table-body-row:hover {
  background-color: #eef6fc !important;
  box-shadow: inset 3px 0 0 var(--belma-primary);
}

div.flex-table-container div.d-md-flex > div.flex-fill {
  color: var(--belma-text);
}

/* Header, static cells, and editable cells share one table size at each breakpoint. */
div.flex-table-container div.flex-table-body-row > div.flex-fill {
  font-family: var(--belma-font-sans);
  font-size: var(--belma-font-table);
}

div.flex-table-container div.flex-table-body-row input.form-control-plaintext,
div.flex-table-container div.flex-table-body-row textarea.form-control-plaintext,
div.flex-table-container div.flex-table-body-row select {
  font-family: var(--belma-font-sans) !important;
  font-size: var(--belma-font-table) !important;
}

#CDBFlexTable select.cdb-element[name=cp_s_a_i_a] {
  min-width: 10rem;
  padding-right: 2.25rem !important;
}

div.flex-table-container div.d-md-flex.search {
  background-color: #f8fafc !important;
  padding-bottom: 5px !important;
  padding-top: 5px !important;
}

div.flex-table-container div.d-md-flex.search > div.flex-fill > input.form-control-plaintext,
div.flex-table-container div.d-md-flex.search > div.flex-fill > select {
  background-color: var(--belma-surface) !important;
  border: 1px solid var(--belma-border-strong);
  border-radius: 5px;
  color: var(--belma-text);
  min-height: 32px;
  padding: 0.35rem 0.45rem !important;
}

div.flex-table-container div.d-md-flex.search > div.flex-fill > input.form-control-plaintext::placeholder {
  color: #8393a1;
  opacity: 1;
}

div.flex-table-container div.d-md-flex > div.flex-fill > input.form-control-plaintext:focus,
div.flex-table-container div.d-md-flex > div.flex-fill textarea.form-control-plaintext:focus,
div.flex-table-container div.d-md-flex.search > div.flex-fill > select:focus {
  background-color: var(--belma-surface) !important;
  border: 1px solid var(--belma-primary) !important;
  box-shadow: 0 0 0 3px var(--belma-focus) !important;
  outline: 0;
}

div.flex-table-container div.d-md-flex > div.flex-fill:last-child button:not(.btn-link) {
  border-radius: 4px;
  min-height: 25px;
  min-width: 25px;
}

/* Dense row actions keep their established colors while gaining clearer sizing and grouping. */
div.flex-table-container .flex-table-body-row .ks-icon-cell {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  justify-content: center;
  padding: 0.3rem !important;
}

div.flex-table-container .flex-table-body-row .ks-icon-cell > button,
div.flex-table-container .flex-table-body-row .ks-icon-cell > .invce-copy-dropdown > button,
div.flex-table-container .flex-table-body-row .ks-icon-cell > .pdf-template-chooser > button.pdf-template-action-toggle {
  align-items: center;
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(28, 55, 74, 0.08);
  display: inline-flex;
  font-size: 1rem;
  justify-content: center;
  margin: 0 !important;
  min-height: 28px !important;
  min-width: 28px !important;
  padding: 0.3rem !important;
}

/* All education rows reserve the same action width, including the empty header and creation row. */
#ep_admin_educations_page_form > .flex-table-container > .d-md-flex > .flex-fill.icons {
  min-width: 10rem;
}

#ep_admin_educations_page_form > .flex-table-container > .flex-table-body-row > .flex-fill.icons > .ks-icon-cell {
  flex-wrap: nowrap;
}

/* An expanded education and its original row form one themed surface, including hover and action cells. */
#ep_admin_educations_page_form > .flex-table-container > .edb-row:has(+ .ksp-education-container:not(.d-none)),
#ep_admin_educations_page_form > .flex-table-container > .edb-row:has(+ .ksp-education-container:not(.d-none)) > .flex-fill,
#ep_admin_educations_page_form > .flex-table-container > .ksp-education-container:not(.d-none) {
  background-color: var(--belma-primary-soft) !important;
}

/* Body controls stay visually quiet until interaction, then expose a precise edit target. */
div.flex-table-container div.flex-table-body-row > div.flex-fill {
  transition: box-shadow 120ms ease;
}
div.flex-table-container div.flex-table-body-row > div.flex-fill:focus-within {
  box-shadow: inset 0 0 0 1px rgba(var(--belma-primary-rgb), 0.24);
  position: relative;
  z-index: 2;
}
div.flex-table-container div.flex-table-body-row input.form-control-plaintext:not([type=hidden]),
div.flex-table-container div.flex-table-body-row textarea.form-control-plaintext {
  background-color: rgba(255, 255, 255, 0.28);
  border: 1px solid transparent !important;
  border-radius: 4px;
  transition: background-color 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}
div.flex-table-container div.flex-table-body-row input.form-control-plaintext:not([type=hidden]):hover:not(:focus),
div.flex-table-container div.flex-table-body-row textarea.form-control-plaintext:hover:not(:focus) {
  background-color: rgba(255, 255, 255, 0.62);
  border-color: #c4d3de !important;
}
div.flex-table-container div.flex-table-body-row input:not([type=hidden]):not(.custom-control-input):focus,
div.flex-table-container div.flex-table-body-row textarea:focus,
div.flex-table-container div.flex-table-body-row select:focus {
  border: 1px solid var(--belma-primary) !important;
  box-shadow: 0 0 0 3px var(--belma-focus) !important;
  outline: 0;
  position: relative;
  z-index: 3;
}
div.flex-table-container div.flex-table-body-row input.form-control-plaintext:not([type=hidden]):focus,
div.flex-table-container div.flex-table-body-row textarea.form-control-plaintext:focus {
  background-color: rgba(255, 255, 255, 0.96) !important;
  color: var(--belma-text) !important;
}

.form-control,
.custom-select,
.input-group-text {
  border-color: var(--belma-border-strong);
  border-radius: 6px;
}

/* Plaintext values share typography, but must not inherit a bordered input's chrome. */
.form-control,
.custom-select,
.form-control-plaintext,
.input-group-text {
  font-family: var(--belma-font-sans);
  font-size: var(--belma-font-control) !important;
}

div.flex-table-container div.flex-table-body-row > div.flex-fill > :is(p, span, div).form-control-plaintext {
  background-color: transparent !important;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font-family: var(--belma-font-sans);
  font-size: var(--belma-font-table) !important;
  line-height: 1.4;
}

/* Form labels match their controls; option copy stays slightly quieter without becoming tiny. */
.col-form-label {
  font-family: var(--belma-font-sans);
  font-size: var(--belma-font-label) !important;
  line-height: 1.35;
}

.custom-control,
.custom-control-label {
  font-family: var(--belma-font-sans);
  font-size: var(--belma-font-option);
  line-height: 1.45;
}

.form-control:focus,
.custom-select:focus {
  border-color: var(--belma-primary);
  box-shadow: 0 0 0 3px var(--belma-focus);
}

.form-control::placeholder {
  color: #8796a3;
}

/* Input-group controls form one continuous unit: only the two outside ends stay rounded. */
.input-group > .form-control:not(:first-child),
.input-group > .form-control-plaintext:not(:first-child),
.input-group > .custom-select:not(:first-child) {
  border-bottom-left-radius: 0;
  border-top-left-radius: 0;
}
.input-group > .form-control:not(:last-child),
.input-group > .form-control-plaintext:not(:last-child),
.input-group > .custom-select:not(:last-child) {
  border-bottom-right-radius: 0;
  border-top-right-radius: 0;
}
.input-group > .input-group-prepend:not(:first-child),
.input-group > .input-group-append:not(:first-child) {
  margin-left: -1px;
}
.input-group > .input-group-prepend:not(:first-child) > .btn,
.input-group > .input-group-prepend:not(:first-child) > .input-group-text,
.input-group > .input-group-append:not(:first-child) > .btn,
.input-group > .input-group-append:not(:first-child) > .input-group-text {
  border-bottom-left-radius: 0;
  border-top-left-radius: 0;
}
.input-group > .input-group-prepend:not(:last-child) > .btn,
.input-group > .input-group-prepend:not(:last-child) > .input-group-text,
.input-group > .input-group-append:not(:last-child) > .btn,
.input-group > .input-group-append:not(:last-child) > .input-group-text {
  border-bottom-right-radius: 0;
  border-top-right-radius: 0;
}

.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
  border-color: var(--belma-border-strong);
  border-radius: 6px;
  min-height: 36px;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 34px;
  padding-left: 11px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 34px;
}

.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--focus .select2-selection--multiple,
.select2-container--default.select2-container--open .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--multiple {
  border-color: var(--belma-primary) !important;
  box-shadow: 0 0 0 3px var(--belma-focus);
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
  background-color: var(--belma-primary-soft);
  border-color: var(--belma-primary-border);
  border-radius: 4px;
  color: var(--belma-primary-dark);
}

/* Shared SelectBoxes and entity basic filters use the same responsive card layout. */
.sbc-container > .row,
.schtc-sec-container[data-schtc-sec-b-f] > form > .row,
.schtc-sec-container[data-schtc-sec-b-f] > form > .fade-toggle-container > .container > .row,
.fchtp-sec-container[data-fchtp-sec-b-f] > form > .row,
.invtp-sec-container[data-invtp-sec-b-f] > form > .row {
  background-color: transparent;
  border: 0;
  box-shadow: none;
  overflow: visible;
}

.sbc-container .sbc-form-group,
.sbc-container .schtc-sec-form-group,
.sbc-container .fchtp-sec-form-group,
.sbc-container .invtp-sec-form-group,
.schtc-sec-container[data-schtc-sec-b-f] .sbc-form-group,
.schtc-sec-container[data-schtc-sec-b-f] .schtc-sec-form-group,
.schtc-sec-container[data-schtc-sec-b-f] .fchtp-sec-form-group,
.schtc-sec-container[data-schtc-sec-b-f] .invtp-sec-form-group,
.fchtp-sec-container[data-fchtp-sec-b-f] .sbc-form-group,
.fchtp-sec-container[data-fchtp-sec-b-f] .schtc-sec-form-group,
.fchtp-sec-container[data-fchtp-sec-b-f] .fchtp-sec-form-group,
.fchtp-sec-container[data-fchtp-sec-b-f] .invtp-sec-form-group,
.invtp-sec-container[data-invtp-sec-b-f] .sbc-form-group,
.invtp-sec-container[data-invtp-sec-b-f] .schtc-sec-form-group,
.invtp-sec-container[data-invtp-sec-b-f] .fchtp-sec-form-group,
.invtp-sec-container[data-invtp-sec-b-f] .invtp-sec-form-group {
  background-color: var(--belma-surface);
  background-clip: padding-box;
  border: 0.25rem solid transparent;
  border-radius: 9px;
  box-shadow: inset 0 0 0 1px var(--belma-border), 0 4px 14px rgba(28, 55, 74, 0.08);
  min-width: 0;
  transition: border-color 120ms ease, box-shadow 120ms ease, transform 120ms ease;
}
.sbc-container .sbc-form-group:hover, .sbc-container .sbc-form-group:focus-within,
.sbc-container .schtc-sec-form-group:hover,
.sbc-container .schtc-sec-form-group:focus-within,
.sbc-container .fchtp-sec-form-group:hover,
.sbc-container .fchtp-sec-form-group:focus-within,
.sbc-container .invtp-sec-form-group:hover,
.sbc-container .invtp-sec-form-group:focus-within,
.schtc-sec-container[data-schtc-sec-b-f] .sbc-form-group:hover,
.schtc-sec-container[data-schtc-sec-b-f] .sbc-form-group:focus-within,
.schtc-sec-container[data-schtc-sec-b-f] .schtc-sec-form-group:hover,
.schtc-sec-container[data-schtc-sec-b-f] .schtc-sec-form-group:focus-within,
.schtc-sec-container[data-schtc-sec-b-f] .fchtp-sec-form-group:hover,
.schtc-sec-container[data-schtc-sec-b-f] .fchtp-sec-form-group:focus-within,
.schtc-sec-container[data-schtc-sec-b-f] .invtp-sec-form-group:hover,
.schtc-sec-container[data-schtc-sec-b-f] .invtp-sec-form-group:focus-within,
.fchtp-sec-container[data-fchtp-sec-b-f] .sbc-form-group:hover,
.fchtp-sec-container[data-fchtp-sec-b-f] .sbc-form-group:focus-within,
.fchtp-sec-container[data-fchtp-sec-b-f] .schtc-sec-form-group:hover,
.fchtp-sec-container[data-fchtp-sec-b-f] .schtc-sec-form-group:focus-within,
.fchtp-sec-container[data-fchtp-sec-b-f] .fchtp-sec-form-group:hover,
.fchtp-sec-container[data-fchtp-sec-b-f] .fchtp-sec-form-group:focus-within,
.fchtp-sec-container[data-fchtp-sec-b-f] .invtp-sec-form-group:hover,
.fchtp-sec-container[data-fchtp-sec-b-f] .invtp-sec-form-group:focus-within,
.invtp-sec-container[data-invtp-sec-b-f] .sbc-form-group:hover,
.invtp-sec-container[data-invtp-sec-b-f] .sbc-form-group:focus-within,
.invtp-sec-container[data-invtp-sec-b-f] .schtc-sec-form-group:hover,
.invtp-sec-container[data-invtp-sec-b-f] .schtc-sec-form-group:focus-within,
.invtp-sec-container[data-invtp-sec-b-f] .fchtp-sec-form-group:hover,
.invtp-sec-container[data-invtp-sec-b-f] .fchtp-sec-form-group:focus-within,
.invtp-sec-container[data-invtp-sec-b-f] .invtp-sec-form-group:hover,
.invtp-sec-container[data-invtp-sec-b-f] .invtp-sec-form-group:focus-within {
  border-color: transparent;
  box-shadow: inset 0 0 0 1px #a9c3d6, 0 7px 20px rgba(28, 55, 74, 0.12);
}
.sbc-container .sbc-form-group > label,
.sbc-container .schtc-sec-form-group > label,
.sbc-container .fchtp-sec-form-group > label,
.sbc-container .invtp-sec-form-group > label,
.schtc-sec-container[data-schtc-sec-b-f] .sbc-form-group > label,
.schtc-sec-container[data-schtc-sec-b-f] .schtc-sec-form-group > label,
.schtc-sec-container[data-schtc-sec-b-f] .fchtp-sec-form-group > label,
.schtc-sec-container[data-schtc-sec-b-f] .invtp-sec-form-group > label,
.fchtp-sec-container[data-fchtp-sec-b-f] .sbc-form-group > label,
.fchtp-sec-container[data-fchtp-sec-b-f] .schtc-sec-form-group > label,
.fchtp-sec-container[data-fchtp-sec-b-f] .fchtp-sec-form-group > label,
.fchtp-sec-container[data-fchtp-sec-b-f] .invtp-sec-form-group > label,
.invtp-sec-container[data-invtp-sec-b-f] .sbc-form-group > label,
.invtp-sec-container[data-invtp-sec-b-f] .schtc-sec-form-group > label,
.invtp-sec-container[data-invtp-sec-b-f] .fchtp-sec-form-group > label,
.invtp-sec-container[data-invtp-sec-b-f] .invtp-sec-form-group > label {
  border-bottom: 1px solid #e4ebf0;
  color: var(--belma-primary-heading) !important;
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.005em;
  line-height: 1.35;
  margin: 0 0 0.7rem !important;
  min-height: 2.2rem;
  padding: 0 0.1rem 0.6rem;
}
.sbc-container .sbc-form-group > .text-header.font-italic,
.sbc-container .schtc-sec-form-group > .text-header.font-italic,
.sbc-container .fchtp-sec-form-group > .text-header.font-italic,
.sbc-container .invtp-sec-form-group > .text-header.font-italic,
.schtc-sec-container[data-schtc-sec-b-f] .sbc-form-group > .text-header.font-italic,
.schtc-sec-container[data-schtc-sec-b-f] .schtc-sec-form-group > .text-header.font-italic,
.schtc-sec-container[data-schtc-sec-b-f] .fchtp-sec-form-group > .text-header.font-italic,
.schtc-sec-container[data-schtc-sec-b-f] .invtp-sec-form-group > .text-header.font-italic,
.fchtp-sec-container[data-fchtp-sec-b-f] .sbc-form-group > .text-header.font-italic,
.fchtp-sec-container[data-fchtp-sec-b-f] .schtc-sec-form-group > .text-header.font-italic,
.fchtp-sec-container[data-fchtp-sec-b-f] .fchtp-sec-form-group > .text-header.font-italic,
.fchtp-sec-container[data-fchtp-sec-b-f] .invtp-sec-form-group > .text-header.font-italic,
.invtp-sec-container[data-invtp-sec-b-f] .sbc-form-group > .text-header.font-italic,
.invtp-sec-container[data-invtp-sec-b-f] .schtc-sec-form-group > .text-header.font-italic,
.invtp-sec-container[data-invtp-sec-b-f] .fchtp-sec-form-group > .text-header.font-italic,
.invtp-sec-container[data-invtp-sec-b-f] .invtp-sec-form-group > .text-header.font-italic {
  align-items: center;
  background-color: var(--belma-primary-soft);
  border: 1px solid var(--belma-primary-border-soft);
  border-radius: 999px;
  color: var(--belma-primary-dark) !important;
  display: inline-flex;
  float: none;
  font-size: 0.76rem;
  font-style: normal !important;
  font-weight: 600;
  justify-content: center;
  line-height: 1;
  margin-top: 0.65rem;
  padding: 0.3rem 0.55rem;
}
.sbc-container select.sbc-select,
.sbc-container select.schtc-sec-element,
.sbc-container select.fchtp-sec-element,
.sbc-container select.invtp-sec-element,
.schtc-sec-container[data-schtc-sec-b-f] select.sbc-select,
.schtc-sec-container[data-schtc-sec-b-f] select.schtc-sec-element,
.schtc-sec-container[data-schtc-sec-b-f] select.fchtp-sec-element,
.schtc-sec-container[data-schtc-sec-b-f] select.invtp-sec-element,
.fchtp-sec-container[data-fchtp-sec-b-f] select.sbc-select,
.fchtp-sec-container[data-fchtp-sec-b-f] select.schtc-sec-element,
.fchtp-sec-container[data-fchtp-sec-b-f] select.fchtp-sec-element,
.fchtp-sec-container[data-fchtp-sec-b-f] select.invtp-sec-element,
.invtp-sec-container[data-invtp-sec-b-f] select.sbc-select,
.invtp-sec-container[data-invtp-sec-b-f] select.schtc-sec-element,
.invtp-sec-container[data-invtp-sec-b-f] select.fchtp-sec-element,
.invtp-sec-container[data-invtp-sec-b-f] select.invtp-sec-element {
  background-color: #ffffff;
  border: 1px solid #c9d6df;
  border-radius: 7px;
  box-shadow: inset 0 1px 2px rgba(28, 55, 74, 0.05);
  color: var(--belma-text);
  font-size: var(--belma-font-interface);
  line-height: 1.3;
  min-height: 10.75rem;
  padding: 0.25rem !important;
  scrollbar-color: #a9bdcc #eef3f6;
  scrollbar-width: thin;
  transition: border-color 120ms ease, box-shadow 120ms ease, background-color 120ms ease;
}
.sbc-container select.sbc-select:hover,
.sbc-container select.schtc-sec-element:hover,
.sbc-container select.fchtp-sec-element:hover,
.sbc-container select.invtp-sec-element:hover,
.schtc-sec-container[data-schtc-sec-b-f] select.sbc-select:hover,
.schtc-sec-container[data-schtc-sec-b-f] select.schtc-sec-element:hover,
.schtc-sec-container[data-schtc-sec-b-f] select.fchtp-sec-element:hover,
.schtc-sec-container[data-schtc-sec-b-f] select.invtp-sec-element:hover,
.fchtp-sec-container[data-fchtp-sec-b-f] select.sbc-select:hover,
.fchtp-sec-container[data-fchtp-sec-b-f] select.schtc-sec-element:hover,
.fchtp-sec-container[data-fchtp-sec-b-f] select.fchtp-sec-element:hover,
.fchtp-sec-container[data-fchtp-sec-b-f] select.invtp-sec-element:hover,
.invtp-sec-container[data-invtp-sec-b-f] select.sbc-select:hover,
.invtp-sec-container[data-invtp-sec-b-f] select.schtc-sec-element:hover,
.invtp-sec-container[data-invtp-sec-b-f] select.fchtp-sec-element:hover,
.invtp-sec-container[data-invtp-sec-b-f] select.invtp-sec-element:hover {
  background-color: var(--belma-surface);
  border-color: #8eacbf;
}
.sbc-container select.sbc-select:focus,
.sbc-container select.schtc-sec-element:focus,
.sbc-container select.fchtp-sec-element:focus,
.sbc-container select.invtp-sec-element:focus,
.schtc-sec-container[data-schtc-sec-b-f] select.sbc-select:focus,
.schtc-sec-container[data-schtc-sec-b-f] select.schtc-sec-element:focus,
.schtc-sec-container[data-schtc-sec-b-f] select.fchtp-sec-element:focus,
.schtc-sec-container[data-schtc-sec-b-f] select.invtp-sec-element:focus,
.fchtp-sec-container[data-fchtp-sec-b-f] select.sbc-select:focus,
.fchtp-sec-container[data-fchtp-sec-b-f] select.schtc-sec-element:focus,
.fchtp-sec-container[data-fchtp-sec-b-f] select.fchtp-sec-element:focus,
.fchtp-sec-container[data-fchtp-sec-b-f] select.invtp-sec-element:focus,
.invtp-sec-container[data-invtp-sec-b-f] select.sbc-select:focus,
.invtp-sec-container[data-invtp-sec-b-f] select.schtc-sec-element:focus,
.invtp-sec-container[data-invtp-sec-b-f] select.fchtp-sec-element:focus,
.invtp-sec-container[data-invtp-sec-b-f] select.invtp-sec-element:focus {
  background-color: var(--belma-surface);
  border-color: var(--belma-primary);
  box-shadow: 0 0 0 3px var(--belma-focus);
  outline: 0;
}
.sbc-container select.sbc-select option,
.sbc-container select.schtc-sec-element option,
.sbc-container select.fchtp-sec-element option,
.sbc-container select.invtp-sec-element option,
.schtc-sec-container[data-schtc-sec-b-f] select.sbc-select option,
.schtc-sec-container[data-schtc-sec-b-f] select.schtc-sec-element option,
.schtc-sec-container[data-schtc-sec-b-f] select.fchtp-sec-element option,
.schtc-sec-container[data-schtc-sec-b-f] select.invtp-sec-element option,
.fchtp-sec-container[data-fchtp-sec-b-f] select.sbc-select option,
.fchtp-sec-container[data-fchtp-sec-b-f] select.schtc-sec-element option,
.fchtp-sec-container[data-fchtp-sec-b-f] select.fchtp-sec-element option,
.fchtp-sec-container[data-fchtp-sec-b-f] select.invtp-sec-element option,
.invtp-sec-container[data-invtp-sec-b-f] select.sbc-select option,
.invtp-sec-container[data-invtp-sec-b-f] select.schtc-sec-element option,
.invtp-sec-container[data-invtp-sec-b-f] select.fchtp-sec-element option,
.invtp-sec-container[data-invtp-sec-b-f] select.invtp-sec-element option {
  border-radius: 3px;
  line-height: 1.3;
  margin: 1px 0;
  padding: 0.38rem 0.55rem;
}
.sbc-container select.sbc-select option[value="-99"],
.sbc-container select.sbc-select option[value="-100"],
.sbc-container select.schtc-sec-element option[value="-99"],
.sbc-container select.schtc-sec-element option[value="-100"],
.sbc-container select.fchtp-sec-element option[value="-99"],
.sbc-container select.fchtp-sec-element option[value="-100"],
.sbc-container select.invtp-sec-element option[value="-99"],
.sbc-container select.invtp-sec-element option[value="-100"],
.schtc-sec-container[data-schtc-sec-b-f] select.sbc-select option[value="-99"],
.schtc-sec-container[data-schtc-sec-b-f] select.sbc-select option[value="-100"],
.schtc-sec-container[data-schtc-sec-b-f] select.schtc-sec-element option[value="-99"],
.schtc-sec-container[data-schtc-sec-b-f] select.schtc-sec-element option[value="-100"],
.schtc-sec-container[data-schtc-sec-b-f] select.fchtp-sec-element option[value="-99"],
.schtc-sec-container[data-schtc-sec-b-f] select.fchtp-sec-element option[value="-100"],
.schtc-sec-container[data-schtc-sec-b-f] select.invtp-sec-element option[value="-99"],
.schtc-sec-container[data-schtc-sec-b-f] select.invtp-sec-element option[value="-100"],
.fchtp-sec-container[data-fchtp-sec-b-f] select.sbc-select option[value="-99"],
.fchtp-sec-container[data-fchtp-sec-b-f] select.sbc-select option[value="-100"],
.fchtp-sec-container[data-fchtp-sec-b-f] select.schtc-sec-element option[value="-99"],
.fchtp-sec-container[data-fchtp-sec-b-f] select.schtc-sec-element option[value="-100"],
.fchtp-sec-container[data-fchtp-sec-b-f] select.fchtp-sec-element option[value="-99"],
.fchtp-sec-container[data-fchtp-sec-b-f] select.fchtp-sec-element option[value="-100"],
.fchtp-sec-container[data-fchtp-sec-b-f] select.invtp-sec-element option[value="-99"],
.fchtp-sec-container[data-fchtp-sec-b-f] select.invtp-sec-element option[value="-100"],
.invtp-sec-container[data-invtp-sec-b-f] select.sbc-select option[value="-99"],
.invtp-sec-container[data-invtp-sec-b-f] select.sbc-select option[value="-100"],
.invtp-sec-container[data-invtp-sec-b-f] select.schtc-sec-element option[value="-99"],
.invtp-sec-container[data-invtp-sec-b-f] select.schtc-sec-element option[value="-100"],
.invtp-sec-container[data-invtp-sec-b-f] select.fchtp-sec-element option[value="-99"],
.invtp-sec-container[data-invtp-sec-b-f] select.fchtp-sec-element option[value="-100"],
.invtp-sec-container[data-invtp-sec-b-f] select.invtp-sec-element option[value="-99"],
.invtp-sec-container[data-invtp-sec-b-f] select.invtp-sec-element option[value="-100"] {
  background-color: #eef3f7;
  color: var(--belma-primary-heading);
  font-weight: 700;
}
.sbc-container select.sbc-select option[value="-99"],
.sbc-container select.schtc-sec-element option[value="-99"],
.sbc-container select.fchtp-sec-element option[value="-99"],
.sbc-container select.invtp-sec-element option[value="-99"],
.schtc-sec-container[data-schtc-sec-b-f] select.sbc-select option[value="-99"],
.schtc-sec-container[data-schtc-sec-b-f] select.schtc-sec-element option[value="-99"],
.schtc-sec-container[data-schtc-sec-b-f] select.fchtp-sec-element option[value="-99"],
.schtc-sec-container[data-schtc-sec-b-f] select.invtp-sec-element option[value="-99"],
.fchtp-sec-container[data-fchtp-sec-b-f] select.sbc-select option[value="-99"],
.fchtp-sec-container[data-fchtp-sec-b-f] select.schtc-sec-element option[value="-99"],
.fchtp-sec-container[data-fchtp-sec-b-f] select.fchtp-sec-element option[value="-99"],
.fchtp-sec-container[data-fchtp-sec-b-f] select.invtp-sec-element option[value="-99"],
.invtp-sec-container[data-invtp-sec-b-f] select.sbc-select option[value="-99"],
.invtp-sec-container[data-invtp-sec-b-f] select.schtc-sec-element option[value="-99"],
.invtp-sec-container[data-invtp-sec-b-f] select.fchtp-sec-element option[value="-99"],
.invtp-sec-container[data-invtp-sec-b-f] select.invtp-sec-element option[value="-99"] {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  margin-bottom: 0;
}
.sbc-container select.sbc-select option[value="-100"],
.sbc-container select.schtc-sec-element option[value="-100"],
.sbc-container select.fchtp-sec-element option[value="-100"],
.sbc-container select.invtp-sec-element option[value="-100"],
.schtc-sec-container[data-schtc-sec-b-f] select.sbc-select option[value="-100"],
.schtc-sec-container[data-schtc-sec-b-f] select.schtc-sec-element option[value="-100"],
.schtc-sec-container[data-schtc-sec-b-f] select.fchtp-sec-element option[value="-100"],
.schtc-sec-container[data-schtc-sec-b-f] select.invtp-sec-element option[value="-100"],
.fchtp-sec-container[data-fchtp-sec-b-f] select.sbc-select option[value="-100"],
.fchtp-sec-container[data-fchtp-sec-b-f] select.schtc-sec-element option[value="-100"],
.fchtp-sec-container[data-fchtp-sec-b-f] select.fchtp-sec-element option[value="-100"],
.fchtp-sec-container[data-fchtp-sec-b-f] select.invtp-sec-element option[value="-100"],
.invtp-sec-container[data-invtp-sec-b-f] select.sbc-select option[value="-100"],
.invtp-sec-container[data-invtp-sec-b-f] select.schtc-sec-element option[value="-100"],
.invtp-sec-container[data-invtp-sec-b-f] select.fchtp-sec-element option[value="-100"],
.invtp-sec-container[data-invtp-sec-b-f] select.invtp-sec-element option[value="-100"] {
  border-top: 1px solid #d1dce4;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  margin-bottom: 0.3rem;
  margin-top: 0;
}
.sbc-container select.sbc-select option:checked:not([class]),
.sbc-container select.schtc-sec-element option:checked:not([class]),
.sbc-container select.fchtp-sec-element option:checked:not([class]),
.sbc-container select.invtp-sec-element option:checked:not([class]),
.schtc-sec-container[data-schtc-sec-b-f] select.sbc-select option:checked:not([class]),
.schtc-sec-container[data-schtc-sec-b-f] select.schtc-sec-element option:checked:not([class]),
.schtc-sec-container[data-schtc-sec-b-f] select.fchtp-sec-element option:checked:not([class]),
.schtc-sec-container[data-schtc-sec-b-f] select.invtp-sec-element option:checked:not([class]),
.fchtp-sec-container[data-fchtp-sec-b-f] select.sbc-select option:checked:not([class]),
.fchtp-sec-container[data-fchtp-sec-b-f] select.schtc-sec-element option:checked:not([class]),
.fchtp-sec-container[data-fchtp-sec-b-f] select.fchtp-sec-element option:checked:not([class]),
.fchtp-sec-container[data-fchtp-sec-b-f] select.invtp-sec-element option:checked:not([class]),
.invtp-sec-container[data-invtp-sec-b-f] select.sbc-select option:checked:not([class]),
.invtp-sec-container[data-invtp-sec-b-f] select.schtc-sec-element option:checked:not([class]),
.invtp-sec-container[data-invtp-sec-b-f] select.fchtp-sec-element option:checked:not([class]),
.invtp-sec-container[data-invtp-sec-b-f] select.invtp-sec-element option:checked:not([class]) {
  box-shadow: inset 3px 0 0 var(--belma-primary), inset 0 0 0 100vmax var(--belma-primary-soft);
  color: var(--belma-primary-dark);
  font-weight: 600;
}
.sbc-container button[type=submit],
.schtc-sec-container[data-schtc-sec-b-f] button[type=submit],
.fchtp-sec-container[data-fchtp-sec-b-f] button[type=submit],
.invtp-sec-container[data-invtp-sec-b-f] button[type=submit] {
  min-width: 180px;
  padding: 0.5rem 1rem;
}

:is(.schtc-sec-container[data-schtc-sec-b-f],
    .fchtp-sec-container[data-fchtp-sec-b-f],
    .invtp-sec-container[data-invtp-sec-b-f]) .row:has(> [class*=col-] > :is(.schtc-sec-date-picker-group, .fchtp-sec-date-picker-group, .invtp-sec-date-picker-group)) {
  align-items: center;
  background-color: var(--belma-surface);
  border: 1px solid var(--belma-border);
  border-radius: 9px;
  box-shadow: 0 4px 14px rgba(28, 55, 74, 0.08);
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
:is(.schtc-sec-container[data-schtc-sec-b-f],
    .fchtp-sec-container[data-fchtp-sec-b-f],
    .invtp-sec-container[data-invtp-sec-b-f]) .row:has(> [class*=col-] > :is(.schtc-sec-date-picker-group, .fchtp-sec-date-picker-group, .invtp-sec-date-picker-group)):hover, :is(.schtc-sec-container[data-schtc-sec-b-f],
    .fchtp-sec-container[data-fchtp-sec-b-f],
    .invtp-sec-container[data-invtp-sec-b-f]) .row:has(> [class*=col-] > :is(.schtc-sec-date-picker-group, .fchtp-sec-date-picker-group, .invtp-sec-date-picker-group)):focus-within {
  border-color: #a9c3d6;
  box-shadow: 0 7px 20px rgba(28, 55, 74, 0.12);
}
:is(.schtc-sec-container[data-schtc-sec-b-f],
    .fchtp-sec-container[data-fchtp-sec-b-f],
    .invtp-sec-container[data-invtp-sec-b-f]) .row:has(> [class*=col-] > :is(.schtc-sec-date-picker-group, .fchtp-sec-date-picker-group, .invtp-sec-date-picker-group)) > [class*=col-]:first-child label {
  color: var(--belma-primary-heading) !important;
  font-family: var(--belma-font-sans);
  font-size: var(--belma-font-label);
  line-height: 1.35;
  margin: 0 !important;
}
:is(.schtc-sec-container[data-schtc-sec-b-f],
    .fchtp-sec-container[data-fchtp-sec-b-f],
    .invtp-sec-container[data-invtp-sec-b-f]) .row:has(> [class*=col-] > :is(.schtc-sec-date-picker-group, .fchtp-sec-date-picker-group, .invtp-sec-date-picker-group)) :is(.schtc-sec-date-picker-group, .fchtp-sec-date-picker-group, .invtp-sec-date-picker-group) > .row {
  align-items: center;
}
:is(.schtc-sec-container[data-schtc-sec-b-f],
    .fchtp-sec-container[data-fchtp-sec-b-f],
    .invtp-sec-container[data-invtp-sec-b-f]) .row:has(> [class*=col-] > :is(.schtc-sec-date-picker-group, .fchtp-sec-date-picker-group, .invtp-sec-date-picker-group)) :is(.schtc-sec-date-picker-group, .fchtp-sec-date-picker-group, .invtp-sec-date-picker-group) p {
  color: var(--belma-text-muted);
  margin: 0 !important;
}
:is(.schtc-sec-container[data-schtc-sec-b-f],
    .fchtp-sec-container[data-fchtp-sec-b-f],
    .invtp-sec-container[data-invtp-sec-b-f]) .row:has(> [class*=col-] > :is(.schtc-sec-date-picker-group, .fchtp-sec-date-picker-group, .invtp-sec-date-picker-group)) input.schtc-sec-date-picker,
:is(.schtc-sec-container[data-schtc-sec-b-f],
    .fchtp-sec-container[data-fchtp-sec-b-f],
    .invtp-sec-container[data-invtp-sec-b-f]) .row:has(> [class*=col-] > :is(.schtc-sec-date-picker-group, .fchtp-sec-date-picker-group, .invtp-sec-date-picker-group)) input.fchtp-sec-date-picker,
:is(.schtc-sec-container[data-schtc-sec-b-f],
    .fchtp-sec-container[data-fchtp-sec-b-f],
    .invtp-sec-container[data-invtp-sec-b-f]) .row:has(> [class*=col-] > :is(.schtc-sec-date-picker-group, .fchtp-sec-date-picker-group, .invtp-sec-date-picker-group)) input.invtp-sec-date-picker {
  min-height: 2.75rem;
  width: 100%;
}

/* Advanced entity filters keep their nested group behaviour while sharing the basic filter visual language. */
:is([data-schtc-sec-a-f], [data-fchtp-sec-a-f], [data-invtp-sec-a-f]) {
  background-color: var(--belma-surface) !important;
  border: 1px solid var(--belma-border) !important;
  border-radius: 10px;
  box-shadow: 0 5px 18px rgba(28, 55, 74, 0.08);
  padding: clamp(0.75rem, 1.5vw, 1.15rem) !important;
}
:is([data-schtc-sec-a-f], [data-fchtp-sec-a-f], [data-invtp-sec-a-f]) :is(.fade-container-group.schtc-sec-container, .fade-container-group.fchtp-sec-container, .fade-container-group.invtp-sec-container) {
  background-color: var(--belma-surface);
  border: 1px solid var(--belma-border);
  border-radius: 9px;
  box-shadow: 0 3px 11px rgba(28, 55, 74, 0.06);
  margin-bottom: 0.65rem !important;
  margin-top: 0.65rem !important;
  /* Dropdowns must extend past the advanced-filter card; their own viewport still owns scrolling. */
  overflow: visible;
  padding: 0;
}
:is([data-schtc-sec-a-f], [data-fchtp-sec-a-f], [data-invtp-sec-a-f]) :is(.fade-container-group.schtc-sec-container, .fade-container-group.fchtp-sec-container, .fade-container-group.invtp-sec-container) > .row:first-of-type {
  align-items: center;
  background-color: #f2f6f9 !important;
  border: 0 !important;
  min-height: 3.4rem;
  padding-bottom: 0.55rem !important;
  padding-top: 0.55rem !important;
}
:is([data-schtc-sec-a-f], [data-fchtp-sec-a-f], [data-invtp-sec-a-f]) :is(.fade-container-group.schtc-sec-container, .fade-container-group.fchtp-sec-container, .fade-container-group.invtp-sec-container) > .row:first-of-type .form-group.row {
  align-items: center;
  margin-bottom: 0;
}
:is([data-schtc-sec-a-f], [data-fchtp-sec-a-f], [data-invtp-sec-a-f]) :is(.fade-container-group.schtc-sec-container, .fade-container-group.fchtp-sec-container, .fade-container-group.invtp-sec-container) > .row:first-of-type label,
:is([data-schtc-sec-a-f], [data-fchtp-sec-a-f], [data-invtp-sec-a-f]) :is(.schtc-sec-row, .fchtp-sec-row, .invtp-sec-row) label {
  color: var(--belma-primary-heading) !important;
  font-family: var(--belma-font-sans);
  font-size: var(--belma-font-label);
  font-weight: 700;
  line-height: 1.35;
}
:is([data-schtc-sec-a-f], [data-fchtp-sec-a-f], [data-invtp-sec-a-f]) :is(.fade-container-group.schtc-sec-container, .fade-container-group.fchtp-sec-container, .fade-container-group.invtp-sec-container) > .row:first-of-type .eye-toggle-button {
  align-items: center;
  border-radius: 6px;
  display: inline-flex;
  justify-content: center;
  min-height: 2.2rem;
  min-width: 2.2rem;
}
:is([data-schtc-sec-a-f], [data-fchtp-sec-a-f], [data-invtp-sec-a-f]) :is(.fade-container-group.schtc-sec-container, .fade-container-group.fchtp-sec-container, .fade-container-group.invtp-sec-container) > .fade-toggle-container {
  background-color: #fbfcfd !important;
  border: 0 !important;
  border-top: 1px solid var(--belma-border) !important;
  padding: 0.35rem clamp(0.35rem, 1vw, 0.85rem) !important;
}
:is([data-schtc-sec-a-f], [data-fchtp-sec-a-f], [data-invtp-sec-a-f]) :is(.schtc-sec-row, .fchtp-sec-row, .invtp-sec-row):not(.belma-filter-attribute) {
  align-items: center;
  border-bottom: 1px solid #e8eef2;
  padding: 0.8rem 0;
}
:is([data-schtc-sec-a-f], [data-fchtp-sec-a-f], [data-invtp-sec-a-f]) :is(.schtc-sec-row, .fchtp-sec-row, .invtp-sec-row):last-child {
  border-bottom: 0;
}
:is([data-schtc-sec-a-f], [data-fchtp-sec-a-f], [data-invtp-sec-a-f]) :is(.schtc-sec-row, .fchtp-sec-row, .invtp-sec-row) .font-italic.text-header {
  align-self: flex-end;
  background-color: var(--belma-primary-soft);
  border: 1px solid var(--belma-primary-border-soft);
  border-radius: 999px;
  color: var(--belma-primary-dark) !important;
  display: inline-flex;
  font-size: var(--belma-font-caption);
  font-style: normal !important;
  font-weight: 600;
  justify-content: center;
  line-height: 1;
  margin-top: 0.35rem;
  padding: 0.3rem 0.55rem;
  white-space: nowrap;
}
:is([data-schtc-sec-a-f], [data-fchtp-sec-a-f], [data-invtp-sec-a-f]) :is(select.schtc-sec-element, select.fchtp-sec-element, select.invtp-sec-element) {
  background-color: #ffffff;
  border: 1px solid #c9d6df;
  border-radius: 7px;
  box-shadow: inset 0 1px 2px rgba(28, 55, 74, 0.05);
  color: var(--belma-text);
  font-size: var(--belma-font-interface);
  line-height: 1.3;
  min-height: 8.75rem;
  padding: 0.25rem !important;
  scrollbar-color: #a9bdcc #eef3f6;
  scrollbar-width: thin;
  transition: border-color 120ms ease, box-shadow 120ms ease, background-color 120ms ease;
}
:is([data-schtc-sec-a-f], [data-fchtp-sec-a-f], [data-invtp-sec-a-f]) :is(select.schtc-sec-element, select.fchtp-sec-element, select.invtp-sec-element):hover {
  border-color: #8eacbf;
}
:is([data-schtc-sec-a-f], [data-fchtp-sec-a-f], [data-invtp-sec-a-f]) :is(select.schtc-sec-element, select.fchtp-sec-element, select.invtp-sec-element):focus {
  border-color: var(--belma-primary);
  box-shadow: 0 0 0 3px var(--belma-focus);
  outline: 0;
}
:is([data-schtc-sec-a-f], [data-fchtp-sec-a-f], [data-invtp-sec-a-f]) :is(select.schtc-sec-element, select.fchtp-sec-element, select.invtp-sec-element) option {
  border-radius: 3px;
  line-height: 1.3;
  margin: 1px 0;
  padding: 0.38rem 0.55rem;
}
:is([data-schtc-sec-a-f], [data-fchtp-sec-a-f], [data-invtp-sec-a-f]) :is(select.schtc-sec-element, select.fchtp-sec-element, select.invtp-sec-element) option[value="-99"],
:is([data-schtc-sec-a-f], [data-fchtp-sec-a-f], [data-invtp-sec-a-f]) :is(select.schtc-sec-element, select.fchtp-sec-element, select.invtp-sec-element) option[value="-100"] {
  background-color: #eef3f7;
  color: var(--belma-primary-heading);
  font-weight: 700;
}
:is([data-schtc-sec-a-f], [data-fchtp-sec-a-f], [data-invtp-sec-a-f]) :is(select.schtc-sec-element, select.fchtp-sec-element, select.invtp-sec-element) option:checked:not([class]) {
  box-shadow: inset 3px 0 0 var(--belma-primary), inset 0 0 0 100vmax var(--belma-primary-soft);
  color: var(--belma-primary-dark);
  font-weight: 600;
}
:is([data-schtc-sec-a-f], [data-fchtp-sec-a-f], [data-invtp-sec-a-f]) :is(input.schtc-sec-element, input.fchtp-sec-element, input.invtp-sec-element):not([type=checkbox]):not([type=hidden]),
:is([data-schtc-sec-a-f], [data-fchtp-sec-a-f], [data-invtp-sec-a-f]) :is(textarea.schtc-sec-element, textarea.fchtp-sec-element, textarea.invtp-sec-element) {
  background-color: #ffffff;
  border: 1px solid var(--belma-border-strong);
  border-radius: 7px;
  box-shadow: inset 0 1px 2px rgba(28, 55, 74, 0.04);
  color: var(--belma-text);
  font-size: var(--belma-font-control);
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
:is([data-schtc-sec-a-f], [data-fchtp-sec-a-f], [data-invtp-sec-a-f]) :is(input.schtc-sec-element, input.fchtp-sec-element, input.invtp-sec-element):not([type=checkbox]):not([type=hidden]):hover,
:is([data-schtc-sec-a-f], [data-fchtp-sec-a-f], [data-invtp-sec-a-f]) :is(textarea.schtc-sec-element, textarea.fchtp-sec-element, textarea.invtp-sec-element):hover {
  border-color: #8eacbf;
}
:is([data-schtc-sec-a-f], [data-fchtp-sec-a-f], [data-invtp-sec-a-f]) :is(input.schtc-sec-element, input.fchtp-sec-element, input.invtp-sec-element):not([type=checkbox]):not([type=hidden]):focus,
:is([data-schtc-sec-a-f], [data-fchtp-sec-a-f], [data-invtp-sec-a-f]) :is(textarea.schtc-sec-element, textarea.fchtp-sec-element, textarea.invtp-sec-element):focus {
  border-color: var(--belma-primary);
  box-shadow: 0 0 0 3px var(--belma-focus);
  outline: 0;
}
:is([data-schtc-sec-a-f], [data-fchtp-sec-a-f], [data-invtp-sec-a-f]) :is(#SCHTPSubmitAdvancedFilter, #FCHTPSubmitAdvancedFilter, #INVTPSubmitAdvancedFilter) {
  min-width: 180px;
  padding: 0.5rem 1rem;
}

/* Searchable virtual facets retain native selects for form and AJAX compatibility. */
.belma-filter-virtual-source {
  height: 1px !important;
  left: -10000px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  position: absolute !important;
  width: 1px !important;
}

.belma-filter-virtual-select {
  display: block;
  max-width: none;
  width: 100% !important;
}
.belma-filter-virtual-select .vscomp-wrapper {
  color: var(--belma-text);
  font-family: var(--belma-font-sans);
  font-size: var(--belma-font-control);
}
.belma-filter-virtual-select .vscomp-toggle-button {
  background-color: var(--belma-surface);
  border: 1px solid var(--belma-border-strong);
  border-radius: 7px;
  box-shadow: inset 0 1px 2px rgba(28, 55, 74, 0.04);
  min-height: 2.75rem;
  padding: 0.55rem 3.25rem 0.55rem 0.75rem;
  transition: border-color 120ms ease, box-shadow 120ms ease, background-color 120ms ease;
}
.belma-filter-virtual-select .vscomp-wrapper:hover .vscomp-toggle-button {
  border-color: #8eacbf;
}
.belma-filter-virtual-select .vscomp-wrapper.focused .vscomp-toggle-button,
.belma-filter-virtual-select .vscomp-wrapper:focus .vscomp-toggle-button {
  border-color: var(--belma-primary);
  box-shadow: 0 0 0 3px var(--belma-focus);
}
.belma-filter-virtual-select .vscomp-value {
  font-weight: 600;
  height: auto;
  line-height: 1.4;
}
.belma-filter-virtual-select .vscomp-arrow {
  width: 2.5rem;
}
.belma-filter-virtual-select .vscomp-arrow::after {
  border-bottom-color: var(--belma-primary-dark);
  border-right-color: var(--belma-primary-dark);
}
.belma-filter-virtual-select .vscomp-clear-button {
  right: 2.25rem;
}
.belma-filter-virtual-select .vscomp-dropbox {
  border: 1px solid var(--belma-border-strong);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(28, 55, 74, 0.18);
  margin-top: 0.35rem;
  overflow: hidden;
}
.belma-filter-virtual-select .vscomp-dropbox-container {
  z-index: 1070;
}
.belma-filter-virtual-select .vscomp-search-container {
  background-color: #f7fafc;
  border-bottom: 1px solid var(--belma-border);
  height: 3rem;
  padding-left: 0.75rem;
}
.belma-filter-virtual-select .vscomp-search-input {
  color: var(--belma-text);
  font-family: var(--belma-font-sans);
  font-size: var(--belma-font-control);
}
.belma-filter-virtual-select .vscomp-option {
  border-bottom: 1px solid #edf2f5;
  /* Match initializeVirtualFilterSelect.optionHeight so virtual scrolling stays aligned at every root font size. */
  height: 40px;
  padding: 0 0.75rem;
}
.belma-filter-virtual-select .vscomp-option:last-child {
  border-bottom: 0;
}
.belma-filter-virtual-select .vscomp-option.focused {
  background-color: #eef5fa;
}
.belma-filter-virtual-select .vscomp-option.selected {
  background-color: var(--belma-primary-soft);
  color: var(--belma-primary-dark);
  font-weight: 600;
}
.belma-filter-virtual-select .vscomp-wrapper .checkbox-icon::after {
  border-color: #7893a6;
  border-radius: 3px;
}
.belma-filter-virtual-select .vscomp-wrapper.multiple .vscomp-option.selected .checkbox-icon::after,
.belma-filter-virtual-select .vscomp-wrapper .checkbox-icon.checked::after {
  border-bottom-color: var(--belma-primary);
  border-right-color: var(--belma-primary);
}
.belma-filter-virtual-select .vscomp-toggle-all-button {
  color: var(--belma-primary-dark);
  font-weight: 700;
}
.belma-filter-virtual-select .vscomp-selected-value-count {
  background-color: var(--belma-primary-soft);
  border-radius: 999px;
  display: inline-flex;
  justify-content: center;
  min-width: 1.6rem;
  padding: 0.08rem 0.4rem;
}

.sbc-form-group > .belma-filter-virtual-select,
.schtc-sec-form-group > .belma-filter-virtual-select,
.schtc-sec-row > [class*=col-] > .belma-filter-virtual-select,
.fchtp-sec-form-group > .belma-filter-virtual-select,
.fchtp-sec-row > [class*=col-] > .belma-filter-virtual-select,
.invtp-sec-form-group > .belma-filter-virtual-select,
.invtp-sec-row > [class*=col-] > .belma-filter-virtual-select {
  max-width: none;
  width: 100% !important;
}

.sbc-form-group:has(> .belma-filter-virtual-select),
.schtc-sec-form-group:has(> .belma-filter-virtual-select),
.schtc-sec-row > [class*=col-]:has(> .belma-filter-virtual-select),
.fchtp-sec-form-group:has(> .belma-filter-virtual-select),
.fchtp-sec-row > [class*=col-]:has(> .belma-filter-virtual-select),
.invtp-sec-form-group:has(> .belma-filter-virtual-select),
.invtp-sec-row > [class*=col-]:has(> .belma-filter-virtual-select) {
  align-items: stretch;
  display: flex;
  flex-direction: column;
}

/* Both counter states share the same layout; hidden summaries must not receive display:flex!important. */
.sbc-form-group > .belma-filter-virtual-select ~ .text-header.font-italic:not(.d-none),
.schtc-sec-form-group > .belma-filter-virtual-select ~ .text-header.font-italic:not(.d-none),
.schtc-sec-row .belma-filter-virtual-select ~ .text-header.font-italic:not(.d-none),
.fchtp-sec-form-group > .belma-filter-virtual-select ~ .text-header.font-italic:not(.d-none),
.fchtp-sec-row .belma-filter-virtual-select ~ .text-header.font-italic:not(.d-none),
.invtp-sec-form-group > .belma-filter-virtual-select ~ .text-header.font-italic:not(.d-none),
.invtp-sec-row .belma-filter-virtual-select ~ .text-header.font-italic:not(.d-none) {
  align-self: flex-start;
  display: flex !important;
  float: none;
  margin: 0.5rem 0 0 !important;
  width: max-content;
}

main#container .row:has(> .flex-fill > #ardbExportButton) {
  justify-content: flex-end !important;
  padding-left: clamp(1rem, 3vw, 2rem);
  padding-right: clamp(1rem, 3vw, 2rem);
}
main#container .row:has(> .flex-fill > #ardbExportButton) > .flex-fill:has(#ardbExportButton) {
  flex: 0 0 auto !important;
  justify-content: flex-end !important;
}
main#container .row:has(> .flex-fill > #ardbExportButton) > .flex-fill:not(:has(#ardbExportButton)) {
  display: none;
}

/* The global customer/activity search is a primary toolbar, not a bare Bootstrap form row. */
#commonSearchBox form > .row > .col-md-4:not(:empty) {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
#commonSearchBox form > .row > .col-md-4:not(:empty):focus-within {
  border: 0;
  box-shadow: none;
}
#commonSearchBox label.font-weight-bold {
  color: var(--belma-primary-heading) !important;
  display: block;
  font-family: var(--belma-font-sans);
  font-size: 1.15rem;
  letter-spacing: 0.005em;
  line-height: 1.35;
  margin: 0 0 0.55rem;
}
#commonSearchBox .input-group {
  margin-top: 0;
}
#commonSearchBox input[name=cf_sb] {
  background-color: #eef3f7;
  border-color: transparent;
  box-shadow: none;
  color: var(--belma-text);
  font-family: var(--belma-font-sans);
  font-size: 0.92rem;
  height: 2.65rem;
  padding: 0 0.85rem;
}
#commonSearchBox input[name=cf_sb]:focus {
  background-color: #ffffff;
  border-color: transparent;
  box-shadow: 0 0 0 3px var(--belma-focus);
}
#commonSearchBox input[name=cf_sb]::placeholder {
  color: #8193a1;
  opacity: 1;
}
#commonSearchBox button[name=cf_b_sb] {
  align-items: center;
  background-color: var(--belma-primary) !important;
  border-color: transparent;
  color: #ffffff;
  display: flex;
  font-family: var(--belma-font-sans);
  font-size: 1.05rem;
  justify-content: center;
  min-width: 3.25rem;
  padding: 0 1rem;
  transition: background-color 120ms ease, box-shadow 120ms ease;
}
#commonSearchBox button[name=cf_b_sb]:hover,
#commonSearchBox button[name=cf_b_sb]:focus {
  background-color: var(--belma-primary-dark) !important;
  box-shadow: 0 0 0 3px var(--belma-focus);
  color: #ffffff;
}

/*
 * Keep Bootstrap's established dropdown DOM contract while giving menus more usable dimensions,
 * clearer selection states, and a consistent surface across server- and JavaScript-rendered items.
 */
.dropdown .dropdown-menu:not(.datepicker):not(.be-notifications) {
  background-color: var(--belma-surface);
  border: 1px solid var(--belma-border-strong);
  border-radius: 8px !important;
  box-shadow: 0 10px 26px rgba(28, 55, 74, 0.18);
  color: var(--belma-text);
  padding: 0.4rem;
}

/* Sized table cells clip both axes by default; let an open menu escape its cell above neighboring controls. */
div.flex-table-container div.d-md-flex > div.flex-fill:has(.dropdown-menu.show) {
  overflow: visible;
  position: relative;
  z-index: 3;
}

main div.dropdown > div.dropdown-menu,
main td.dropdown > div.dropdown-menu,
#container div.dropdown > div.dropdown-menu,
#container td.dropdown > div.dropdown-menu {
  max-height: min(24rem, calc(100vh - 6rem));
  min-width: max(100%, 16rem) !important;
  overscroll-behavior: contain;
  scrollbar-color: #9db2c1 #edf2f5;
  scrollbar-width: thin;
}

.dropdown .dropdown-menu:not(.datepicker):not(.be-notifications) > .dropdown-header {
  color: var(--belma-muted);
  font-family: var(--belma-font-sans);
  font-size: var(--belma-font-caption);
  font-weight: 700;
  letter-spacing: 0.045em;
  padding: 0.55rem 0.7rem 0.4rem;
  text-transform: uppercase;
}

.dropdown .dropdown-menu:not(.datepicker):not(.be-notifications) > .dropdown-divider {
  border-top-color: var(--belma-border);
  margin: 0.35rem 0.25rem;
}

.dropdown .dropdown-menu:not(.datepicker):not(.be-notifications) > .dropdown-item {
  border: 0;
  border-radius: 6px;
  color: var(--belma-text);
  font-family: var(--belma-font-sans);
  font-size: var(--belma-font-interface);
  font-weight: 500;
  line-height: 1.35;
  min-height: 2.45rem;
  padding: 0.58rem 0.72rem;
  transition: background-color 120ms ease, box-shadow 120ms ease, color 120ms ease;
  white-space: normal;
}

.dropdown .dropdown-menu:not(.datepicker):not(.be-notifications) > .dropdown-item:hover,
.dropdown .dropdown-menu:not(.datepicker):not(.be-notifications) > .dropdown-item:focus,
.dropdown .dropdown-menu:not(.datepicker):not(.be-notifications) > .dropdown-item.active,
.dropdown .dropdown-menu:not(.datepicker):not(.be-notifications) > .dropdown-item.selected.active,
main div.dropdown > div.dropdown-menu > .dropdown-item:not(.default-item):hover,
main div.dropdown > div.dropdown-menu > .dropdown-item:not(.default-item).active,
main td.dropdown > div.dropdown-menu > .dropdown-item:not(.default-item):hover,
main td.dropdown > div.dropdown-menu > .dropdown-item:not(.default-item).active,
#container div.dropdown > div.dropdown-menu > .dropdown-item:not(.default-item):hover,
#container div.dropdown > div.dropdown-menu > .dropdown-item:not(.default-item).active,
#container td.dropdown > div.dropdown-menu > .dropdown-item:not(.default-item):hover,
#container td.dropdown > div.dropdown-menu > .dropdown-item:not(.default-item).active {
  background-color: var(--belma-primary-soft) !important;
  box-shadow: inset 3px 0 0 var(--belma-primary) !important;
  color: var(--belma-primary-dark) !important;
  transform: none;
}

.dropdown .dropdown-menu:not(.datepicker):not(.be-notifications) > .dropdown-item.disabled,
.dropdown .dropdown-menu:not(.datepicker):not(.be-notifications) > .dropdown-item:disabled {
  background-color: transparent !important;
  box-shadow: none !important;
  color: var(--belma-muted) !important;
  cursor: not-allowed;
  opacity: 0.58;
}

.dropdown .dropdown-menu:not(.datepicker):not(.be-notifications) > .dropdown-item .icon,
.dropdown .dropdown-menu:not(.datepicker):not(.be-notifications) > .dropdown-item > i:first-child {
  color: var(--belma-primary);
  margin-right: 0.45rem;
}

.dropdown > .dropdown-toggle:not(input)::after {
  margin-left: 0.55rem;
  vertical-align: 0.15em;
}

/*
 * Give the shared footer a clear visual hierarchy without changing its server-rendered content.
 * Direct company sections become restrained panels, while every link remains keyboard accessible.
 */
footer#footer {
  background: linear-gradient(135deg, #172631 0%, #202d36 55%, #17242d 100%);
  border-top: 3px solid var(--belma-primary);
  box-shadow: 0 -8px 24px rgba(16, 35, 48, 0.14);
  color: #dbe6ed;
  font-family: var(--belma-font-sans);
  font-size: 0.9rem !important;
  margin-top: 2.5rem;
  padding: 1.25rem 0 1.35rem;
}
footer#footer > .container-fluid, footer#footer > .container {
  max-width: 1180px;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}
footer#footer > .container-fluid > .row.no-gutters.my-2 > .col-md-3, footer#footer > .container-fluid > .row.no-gutters.my-2 > .belma-section, footer#footer > .container > .row.no-gutters.my-2 > .belma-section {
  background-color: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
  margin-bottom: 0.5rem !important;
  margin-top: 0.5rem !important;
  padding: 1rem 1.1rem !important;
}
footer#footer h4 {
  color: #ffffff;
  font-family: var(--belma-font-sans);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.35;
  margin: 0;
}
footer#footer h4::after {
  background-color: var(--belma-primary-highlight);
  border-radius: 999px;
  content: "";
  display: block;
  height: 2px;
  margin-top: 0.45rem;
  width: 2rem;
}
footer#footer .col-11.col-md-12 > div.px-2 {
  padding-left: 0 !important;
  padding-right: 0 !important;
  width: 100%;
}
footer#footer .col-11.col-md-12 .d-flex.my-3 {
  margin-bottom: 0.35rem !important;
  margin-top: 0.35rem !important;
}
footer#footer .col-11.col-md-12 .d-flex.my-3:first-child {
  margin-bottom: 0.8rem !important;
}
footer#footer a.btn-link {
  border-radius: 7px;
  color: #dbe6ed !important;
  display: inline-block;
  font-family: var(--belma-font-sans);
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.45;
  max-width: 100%;
  padding: 0.38rem 0.5rem !important;
  text-align: left;
  transition: background-color 120ms ease, color 120ms ease, transform 120ms ease;
  white-space: normal;
}
footer#footer a.btn-link:hover {
  background-color: rgba(var(--belma-primary-rgb), 0.12);
  color: #ffffff !important;
  transform: translateX(2px);
}
footer#footer a.btn-link:focus {
  background-color: rgba(var(--belma-primary-rgb), 0.12);
  box-shadow: 0 0 0 3px rgba(var(--belma-primary-rgb), 0.22);
  color: #ffffff !important;
  outline: 0;
}
footer#footer a.btn-link:hover span, footer#footer a.btn-link:focus span {
  color: inherit;
}
footer#footer a.btn-link i {
  align-items: center;
  background-color: rgba(var(--belma-primary-rgb), 0.14);
  border: 1px solid rgba(var(--belma-primary-rgb), 0.22);
  border-radius: 6px;
  color: var(--belma-primary-highlight-soft);
  display: inline-flex;
  font-size: 0.95rem !important;
  height: 1.85rem;
  justify-content: center;
  margin-right: 0.45rem;
  vertical-align: middle;
  width: 1.85rem;
}
footer#footer a.btn-link br {
  display: none;
}
footer#footer a.btn-link br + span {
  display: block;
  margin-left: 2.35rem;
  margin-top: 0.1rem;
}

.select2-dropdown {
  border-color: var(--belma-border-strong);
  border-radius: 6px;
  box-shadow: 0 8px 22px rgba(28, 55, 74, 0.16);
  overflow: hidden;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
  border: 1px solid var(--belma-border-strong);
  border-radius: 5px;
  color: var(--belma-text);
  min-height: 34px;
  outline: 0;
}
.select2-container--default .select2-search--dropdown .select2-search__field:focus {
  border-color: var(--belma-primary);
  box-shadow: 0 0 0 3px var(--belma-focus);
}
.select2-container--default .select2-results__option {
  padding: 0.48rem 0.65rem;
}
.select2-container--default .select2-results__option[aria-selected=true] {
  background-color: var(--belma-primary-soft);
  color: var(--belma-primary-dark);
  font-weight: 600;
}
.select2-container--default .select2-results__option--highlighted[aria-selected] {
  background-color: var(--belma-primary);
  color: #ffffff;
}

/* Keep Select2 search text at 16px before and during focus to avoid mobile auto-zoom. */
@media screen and (max-width: 767.98px) {
  .select2-container--default .select2-search .select2-search__field {
    font-size: 16px;
  }
}
/*
 * Keep entity tabs in expanded table rows compact and on one readable horizontal track.
 * This shared parent-container structure is used by activity, customer, product, follow-up,
 * inventory, invoice, education, sales, and other database tables.
 */
.ks-parent-container ul.nav.nav-pills.nav-tabs.scroll-menu {
  align-items: center;
  background-color: transparent;
  border: 0;
  border-radius: 0;
  display: flex;
  flex-wrap: nowrap;
  gap: 0.35rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.15rem 0;
  scrollbar-color: var(--belma-border-strong) transparent;
  scrollbar-width: thin;
  white-space: nowrap;
}

.ks-parent-container ul.nav.nav-pills.nav-tabs.scroll-menu > .nav-item {
  flex: 0 0 auto;
  margin: 0;
}

.ks-parent-container ul.nav.nav-pills.nav-tabs.scroll-menu > .nav-item > .nav-link {
  background-color: #f4f6f8;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--belma-primary-dark);
  font-family: var(--belma-font-sans);
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.35;
  min-height: 2.35rem;
  padding: 0.45rem 0.75rem;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
}

.ks-parent-container ul.nav.nav-pills.nav-tabs.scroll-menu > .nav-item > .nav-link:hover {
  background-color: var(--belma-primary-soft);
  border-color: var(--belma-border-strong);
  color: var(--belma-primary-dark);
}

.ks-parent-container ul.nav.nav-pills.nav-tabs.scroll-menu > .nav-item > .nav-link:focus-visible {
  border-color: var(--belma-primary);
  box-shadow: 0 0 0 3px var(--belma-focus);
  outline: 0;
}

.ks-parent-container ul.nav.nav-pills.nav-tabs.scroll-menu > .nav-item > .nav-link.active {
  background-color: var(--belma-primary) !important;
  border-color: var(--belma-primary);
  box-shadow: 0 2px 7px rgba(var(--belma-primary-rgb), 0.2);
  color: #ffffff;
  opacity: 1;
}

/*
 * Child campaigns contain the same wide metric set as the parent table. Preserve readable columns
 * with horizontal scrolling instead of compressing every field, and group its controls as a toolbar.
 */
#mcc-list-filter .mcc-period-shortcuts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem;
  margin-top: 0.5rem;
}
#mcc-list-filter .mcc-period-shortcuts > button {
  white-space: normal;
  font-size: var(--belma-font-label);
}

#mcc-list-filter .mcc-period-help {
  font-size: var(--belma-font-label);
  line-height: 1.4;
}

#MCCTableForm p.mcc-result-status,
[data-mcc-result-kind] > p.mcc-result-status {
  background-color: var(--belma-surface) !important;
  border-left: 3px solid var(--belma-primary);
  font-size: var(--belma-font-table) !important;
  line-height: 1.45;
  margin: 0.5rem 0 !important;
  padding: 0.4rem 0.6rem !important;
  white-space: normal;
  overflow-wrap: anywhere;
}

.mcc-horizontal-navigation {
  display: flex;
  align-items: center;
  position: sticky;
  left: 0;
  width: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
}

.mcc-horizontal-navigation > input[type=range] {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  height: 1.25rem;
  margin: 0;
  accent-color: var(--belma-primary-border);
  cursor: pointer;
}

.mcc-horizontal-navigation[hidden] {
  display: none;
}

@media (max-width: 767.98px) {
  .mcc-horizontal-navigation {
    display: none;
  }
}
#MCCTableForm {
  --belma-table-header-top: 0px;
  overflow-x: auto;
}

@media (min-width: 768px) {
  #MCCTableForm .mcc-result-table > .ftbl-header {
    position: relative;
    top: 0;
    z-index: 30;
  }
  #MCCTableForm .mcc-result-table > .ftbl-header[data-mcc-floating] {
    position: fixed;
    overflow: hidden;
    z-index: 32;
  }

  #MCCTableForm > .mcc-result-table > .ftbl-header[data-mcc-floating] {
    z-index: 33;
  }

  #MCCTableForm .mcc-child-campaigns-table-container {
    position: sticky;
    left: 1cm;
    width: calc(var(--mcc-child-viewport-width, 100%) - 1cm);
    max-width: calc(100% - 1cm);
  }

  #MCCTableForm .mcc-result-table > .d-md-flex > .flex-fill {
    flex: 0 0 8rem !important;
    min-width: 8rem;
  }
  #MCCTableForm .mcc-result-table > .d-md-flex > [data-mcc-kind=text] {
    flex-basis: 15rem !important;
    min-width: 15rem;
  }
  #MCCTableForm .mcc-result-table > .d-md-flex > [data-mcc-column=mcc_c_n] {
    order: -2;
    flex-basis: var(--mcc-name-width, 15rem) !important;
    position: sticky;
    left: 0;
    z-index: 2;
    min-width: var(--mcc-name-width, 15rem);
    background-color: var(--belma-surface);
    box-shadow: 2px 0 0 var(--belma-border);
  }
  #MCCTableForm .mcc-result-table > .d-md-flex > [data-mcc-column=mcc_c_n] > input,
#MCCTableForm .mcc-result-table > .d-md-flex > [data-mcc-column=mcc_c_n] > textarea {
    white-space: normal;
    text-overflow: clip;
  }
  #MCCTableForm .mcc-result-table > .d-md-flex > [data-mcc-kind=date] {
    flex-basis: 10rem !important;
    min-width: 10rem;
  }
  #MCCTableForm .mcc-result-table > .d-md-flex > [data-mcc-kind=number] {
    text-align: right;
    font-variant-numeric: tabular-nums;
  }
  #MCCTableForm .mcc-result-table > .d-md-flex > [data-mcc-kind=number] input,
#MCCTableForm .mcc-result-table > .d-md-flex > [data-mcc-kind=number] p.form-control-plaintext {
    text-align: right;
    font-variant-numeric: tabular-nums;
  }

  #MCCTableForm .mcc-result-table > .d-md-flex > .flex-fill.icons {
    order: 1;
    position: sticky;
    left: auto;
    right: 0;
    z-index: 2;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    flex-basis: 12rem !important;
    min-width: 12rem !important;
    overflow: visible;
    background-color: var(--belma-surface);
    box-shadow: -2px 0 0 var(--belma-border);
  }
  #MCCTableForm .mcc-result-table > .d-md-flex > .flex-fill.icons > button, #MCCTableForm .mcc-result-table > .d-md-flex > .flex-fill.icons > a {
    flex-shrink: 0;
    margin: 0;
  }

  #MCCTableForm .mcc-result-table > .mcc-child-campaign-row > [data-mcc-column=mcc_c_n],
#MCCTableForm .mcc-result-table > .mcc-child-campaign-summary-row > [data-mcc-column=mcc_c_n],
#MCCTableForm .mcc-child-campaigns-table-container .mcc-result-table > .ftbl-header:not([data-mcc-floating]) > [data-mcc-column=mcc_c_n] {
    position: relative;
    left: 0;
    transform: translateX(var(--mcc-child-name-offset, 0px));
  }

  #MCCTableForm .mcc-result-table > .mcc-child-campaign-row > .flex-fill.icons,
#MCCTableForm .mcc-result-table > .mcc-child-campaign-summary-row > .flex-fill.icons,
#MCCTableForm .mcc-child-campaigns-table-container .mcc-result-table > .ftbl-header:not([data-mcc-floating]) > .flex-fill.icons {
    position: relative;
    right: auto;
    transform: translateX(var(--mcc-child-actions-offset, 0px));
  }

  #MCCTableForm .mcc-result-table > .ftbl-header > .flex-fill {
    background-color: var(--belma-primary-table-header);
  }
  #MCCTableForm .mcc-result-table > .ftbl-header > .flex-fill > label,
#MCCTableForm .mcc-result-table > .ftbl-header > .flex-fill button.mcc-sort-button,
#MCCTableForm .mcc-result-table > .ftbl-header > .flex-fill button.mcc-sort-button > span {
    white-space: normal;
    overflow-wrap: anywhere;
    overflow: visible;
    text-overflow: clip;
    word-break: normal;
  }
  #MCCTableForm .mcc-result-table > .ftbl-header > .flex-fill button.mcc-sort-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    color: inherit;
    text-align: inherit;
    gap: 0.25rem;
  }
  #MCCTableForm .mcc-result-table > .ftbl-header > .flex-fill button.mcc-sort-button > span:first-child {
    min-width: 0 !important;
  }

  #MCCTableForm .mcc-result-table > .mcc-striped {
    background-color: var(--belma-primary-soft);
  }
  #MCCTableForm .mcc-result-table > .mcc-striped > [data-mcc-column=mcc_c_n],
#MCCTableForm .mcc-result-table > .mcc-striped > .icons {
    background-color: var(--belma-primary-soft);
  }

  #MCCTableForm > .flex-table-container,
.mcc-child-campaigns-table-container > .flex-table-container {
    min-width: 140rem;
  }

  #MCCTableForm > .flex-table-container > .d-md-flex > .flex-fill,
.mcc-child-campaigns-table-container > .flex-table-container > .d-md-flex > .flex-fill {
    flex-grow: 0 !important;
    flex-shrink: 0;
    min-width: 7.5rem;
  }
  #MCCTableForm > .flex-table-container > .d-md-flex > .flex-fill[data-ftbl-transient-column],
.mcc-child-campaigns-table-container > .flex-table-container > .d-md-flex > .flex-fill[data-ftbl-transient-column] {
    min-width: 110px;
  }
  #MCCTableForm > .flex-table-container > .d-md-flex > .flex-fill[data-ftbl-transient-column] > label,
#MCCTableForm > .flex-table-container > .d-md-flex > .flex-fill[data-ftbl-transient-column] > label > span,
.mcc-child-campaigns-table-container > .flex-table-container > .d-md-flex > .flex-fill[data-ftbl-transient-column] > label,
.mcc-child-campaigns-table-container > .flex-table-container > .d-md-flex > .flex-fill[data-ftbl-transient-column] > label > span {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
    overflow: visible;
    text-overflow: clip;
  }
  #MCCTableForm > .flex-table-container > .d-md-flex > .flex-fill.icons,
.mcc-child-campaigns-table-container > .flex-table-container > .d-md-flex > .flex-fill.icons {
    min-width: 0;
  }
  #MCCTableForm > .flex-table-container > .d-md-flex > .flex-fill > input,
#MCCTableForm > .flex-table-container > .d-md-flex > .flex-fill > p[data-updatable-attribute],
.mcc-child-campaigns-table-container > .flex-table-container > .d-md-flex > .flex-fill > input,
.mcc-child-campaigns-table-container > .flex-table-container > .d-md-flex > .flex-fill > p[data-updatable-attribute] {
    white-space: nowrap;
  }
}
#MCCTableForm .mcc-result-table > .flex-table-body-row {
  border-bottom: 1px solid var(--belma-border);
}

#MCCTableForm .mcc-sort-scope {
  font-size: var(--belma-font-label);
  margin: 0.4rem 0;
}

#MCCTableForm .mcc-child-campaigns-table-container {
  margin-left: 1cm;
  max-width: calc(100% - 1cm);
}

#MCCTableForm .mcc-child-campaigns-table-container > .mcc-result-table {
  --belma-surface: #f0f7f3;
  --belma-primary-soft: #e1eee7;
  --belma-primary-table-header: #d7e9e0;
  --belma-border: #b5cfc0;
}

@media print {
  #MCCTableForm .mcc-result-table > .ftbl-header[data-mcc-floating] {
    position: static;
    overflow: visible;
    width: auto !important;
  }

  #MCCTableForm .mcc-header-spacer {
    display: none;
  }
}
.mcc-parent-campaign-row > .container-fluid.tab > .tab-content {
  padding-top: 0.5rem !important;
}

#MCCTableForm .mcc-parent-campaign-row > .container-fluid.tab > .tab-content > .tab-plane:not(.mcc-child-campaigns-tab) {
  position: sticky;
  left: 0;
  width: var(--mcc-child-viewport-width, 100%);
  max-width: 100%;
  margin-left: 0;
  margin-right: auto;
}
#MCCTableForm .mcc-parent-campaign-row > .container-fluid.tab > .tab-content > .tab-plane:not(.mcc-child-campaigns-tab) .container {
  margin-left: 0;
  margin-right: auto;
}
#MCCTableForm .mcc-parent-campaign-row > .container-fluid.tab > .tab-content > .tab-plane:not(.mcc-child-campaigns-tab) > h5.text-header {
  justify-content: flex-start !important;
  text-align: left;
}

#MCCTableForm .mcc-parent-campaign-row > .container-fluid.tab > .row > .container-fluid {
  position: sticky;
  left: 0;
  width: var(--mcc-child-viewport-width, 100%);
  max-width: 100%;
  margin-left: 0;
  margin-right: auto;
}
#MCCTableForm .mcc-parent-campaign-row > .container-fluid.tab > .row > .container-fluid > ul.nav.nav-pills.nav-tabs.scroll-menu {
  display: flex;
  justify-content: flex-start !important;
  text-align: left;
  margin: 0;
}
#MCCTableForm .mcc-parent-campaign-row > .container-fluid.tab > .row > .container-fluid > ul.nav.nav-pills.nav-tabs.scroll-menu > .nav-item {
  flex: 0 0 auto;
}

.mcc-child-campaigns-table-container {
  overflow-x: auto;
  padding-bottom: 0.5rem !important;
  scrollbar-color: var(--belma-border-strong) transparent;
  scrollbar-width: thin;
  /* Dates, names, and metrics need one baseline, regardless of their HTML element type. */
}
.mcc-child-campaigns-table-container > .row:first-child {
  align-items: center;
  background-color: var(--belma-surface);
  border-bottom: 1px solid var(--belma-border);
  justify-content: space-between !important;
  margin: 0 0 0.5rem !important;
  min-height: 2.5rem;
  padding: 0.25rem 0.5rem;
  position: sticky;
  left: 0;
}
.mcc-child-campaigns-table-container > .row:first-child > .p-2:empty {
  display: none;
}
.mcc-child-campaigns-table-container > .flex-table-container {
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(28, 55, 74, 0.08);
  margin-bottom: 0 !important;
}
@media (min-width: 768px) {
  .mcc-child-campaigns-table-container > .flex-table-container {
    min-width: 140rem;
  }
}
.mcc-child-campaigns-table-container > div.flex-table-container > div.flex-table-body-row > div.flex-fill > .form-control-plaintext,
.mcc-child-campaigns-table-container > div.flex-table-container > div.flex-table-body-row > div.flex-fill > p[data-updatable-attribute] {
  box-sizing: border-box;
  font-family: var(--belma-font-sans);
  font-size: var(--belma-font-table) !important;
  line-height: 1.4;
  margin: 0 !important;
  min-height: 2.5rem;
  padding: 0.55rem 0.35rem !important;
  width: 100%;
}
.mcc-child-campaigns-table-container > div.flex-table-container > div.flex-table-body-row > div.flex-fill > textarea.form-control-plaintext {
  min-height: 4rem;
}
.mcc-child-campaigns-table-container .mcc-child-campaign-summary-row {
  background-color: var(--belma-primary-soft) !important;
  border-top: 2px solid var(--belma-primary-border);
}
.mcc-child-campaigns-table-container .mcc-child-campaign-summary-row input[readonly]::placeholder {
  color: transparent;
}

@media (max-width: 767.98px) {
  /* Activity rows already expose FlexTable labels on mobile; card grouping keeps the long field set scannable. */
  #ADBTable > .flex-table-container {
    overflow: hidden;
  }

  #ADBTable > .flex-table-container > .flex-table-body-row {
    border: 1px solid var(--belma-border) !important;
    border-radius: 6px;
    margin: 0.65rem 0.5rem !important;
    padding: 0.35rem 0 !important;
  }

  #ADBTable > .flex-table-container > .flex-table-body-row > div.flex-fill {
    max-width: none !important;
    padding: 0.45rem 0.75rem !important;
  }

  #ADBTable > .flex-table-container > .flex-table-body-row > div.flex-fill > label {
    color: var(--belma-primary-heading);
    font-size: var(--belma-font-caption);
    letter-spacing: 0.01em;
    margin-bottom: 0.2rem !important;
    text-transform: uppercase;
  }

  /* Keep the row controls together after the values instead of letting narrow buttons wrap between fields. */
  #ADBTable > .flex-table-container > .flex-table-body-row > div.flex-fill.icons {
    border-top: 1px solid var(--belma-border);
    margin-top: 0.35rem !important;
    padding-top: 0.55rem !important;
  }

  #ADBTable > .flex-table-container > .flex-table-body-row .ks-icon-cell {
    justify-content: flex-start;
  }

  footer#footer {
    font-size: 0.9rem !important;
    margin-top: 1.75rem;
    padding: 1rem 0;
  }
  footer#footer > .container-fluid > .row.no-gutters.my-2 > .col-md-3, footer#footer > .container-fluid > .row.no-gutters.my-2 > .belma-section, footer#footer > .container > .row.no-gutters.my-2 > .belma-section {
    margin: 0.4rem 0 !important;
  }
  footer#footer h4 {
    font-size: 1rem;
  }

  .be-left-sidebar .sidebar-elements > li > a,
.be-left-sidebar .sidebar-elements > li ul li > a {
    min-height: 44px;
    padding-bottom: 0.65rem;
    padding-top: 0.65rem;
  }

  .side-navigation-backdrop {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .be-left-sidebar .sidebar-elements a,
#sideNavigationButton .open-button,
div.flex-table-container > div.flex-table-body-row,
div.flex-table-container div.flex-table-body-row > div.flex-fill,
div.flex-table-container div.flex-table-body-row input.form-control-plaintext,
div.flex-table-container div.flex-table-body-row textarea.form-control-plaintext,
.sbc-container .sbc-form-group,
.sbc-container select.sbc-select,
.schtc-sec-container[data-schtc-sec-b-f] .schtc-sec-form-group,
.schtc-sec-container[data-schtc-sec-b-f] select.schtc-sec-element,
.fchtp-sec-container[data-fchtp-sec-b-f] .fchtp-sec-form-group,
.fchtp-sec-container[data-fchtp-sec-b-f] select.fchtp-sec-element,
.invtp-sec-container[data-invtp-sec-b-f] .invtp-sec-form-group,
.invtp-sec-container[data-invtp-sec-b-f] select.invtp-sec-element {
    transition: none;
  }
}
/* Activity-database pilot: retain the established range picker while offering a lower-click start-date flow. */
#activityDatabaseSelections .dtrp-container .adb-date-picker-status-heading {
  color: var(--belma-text);
  display: block;
  font-family: var(--belma-font-sans);
  font-size: var(--belma-font-body);
  margin-bottom: 0.45rem;
}

#activityDatabaseSelections .dtrp-container .adb-date-picker-status-heading--prompt {
  color: var(--belma-text-muted);
}

#activityDatabaseSelections .dtrp-container.adb-date-picker--date-not-required .adb-date-picker-choice,
#activityDatabaseSelections .dtrp-container.adb-date-picker--date-not-required .dtrp-picker-group {
  display: none;
}

#activityDatabaseSelections .dtrp-container .adb-date-picker-choice {
  background-color: var(--belma-surface);
  border: 1px solid var(--belma-border);
  border-radius: 7px;
  margin-bottom: 0.55rem;
  padding: 0.65rem;
}
#activityDatabaseSelections .dtrp-container .adb-date-picker-choice .adb-date-picker-choice-prompt,
#activityDatabaseSelections .dtrp-container .adb-date-picker-choice .adb-date-picker-quick-controls,
#activityDatabaseSelections .dtrp-container .adb-date-picker-choice .adb-date-picker-range-controls {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
#activityDatabaseSelections .dtrp-container .adb-date-picker-choice .adb-date-picker-choice-prompt {
  color: var(--belma-text);
}
#activityDatabaseSelections .dtrp-container .adb-date-picker-choice .adb-date-picker-quick-controls {
  align-items: flex-start;
  flex-direction: column;
  width: 100%;
}
#activityDatabaseSelections .dtrp-container .adb-date-picker-choice .adb-date-picker-start-controls,
#activityDatabaseSelections .dtrp-container .adb-date-picker-choice .adb-date-picker-period-controls {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  width: 100%;
}
#activityDatabaseSelections .dtrp-container .adb-date-picker-choice label,
#activityDatabaseSelections .dtrp-container .adb-date-picker-choice .adb-date-picker-start-label,
#activityDatabaseSelections .dtrp-container .adb-date-picker-choice .adb-date-picker-end-label,
#activityDatabaseSelections .dtrp-container .adb-date-picker-choice .adb-date-picker-duration-label {
  color: var(--belma-text);
  font-family: var(--belma-font-sans);
  font-size: var(--belma-font-label);
  font-weight: 700;
  margin: 0;
}
#activityDatabaseSelections .dtrp-container .adb-date-picker-choice .adb-date-picker-start-date {
  display: none;
}
#activityDatabaseSelections .dtrp-container .adb-date-picker-choice .adb-date-picker-start-calendar,
#activityDatabaseSelections .dtrp-container .adb-date-picker-choice .adb-date-picker-end-calendar {
  max-width: 15rem;
  width: 100%;
}
#activityDatabaseSelections .dtrp-container .adb-date-picker-choice .adb-date-picker-start-calendar .datepicker-inline,
#activityDatabaseSelections .dtrp-container .adb-date-picker-choice .adb-date-picker-start-calendar .datepicker,
#activityDatabaseSelections .dtrp-container .adb-date-picker-choice .adb-date-picker-end-calendar .datepicker-inline,
#activityDatabaseSelections .dtrp-container .adb-date-picker-choice .adb-date-picker-end-calendar .datepicker {
  background-color: var(--belma-surface);
  border: 1px solid var(--belma-border);
  border-radius: 0.5rem;
  padding: 0.3rem;
  width: 100%;
}
#activityDatabaseSelections .dtrp-container .adb-date-picker-choice .adb-date-picker-start-calendar .datepicker table,
#activityDatabaseSelections .dtrp-container .adb-date-picker-choice .adb-date-picker-end-calendar .datepicker table {
  width: 100%;
}
#activityDatabaseSelections .dtrp-container .adb-date-picker-choice .adb-date-picker-start-calendar .datepicker table tr td,
#activityDatabaseSelections .dtrp-container .adb-date-picker-choice .adb-date-picker-start-calendar .datepicker table tr th,
#activityDatabaseSelections .dtrp-container .adb-date-picker-choice .adb-date-picker-end-calendar .datepicker table tr td,
#activityDatabaseSelections .dtrp-container .adb-date-picker-choice .adb-date-picker-end-calendar .datepicker table tr th {
  border-radius: 0.35rem;
  height: 1.65rem;
  padding: 0;
  width: auto;
}
#activityDatabaseSelections .dtrp-container .adb-date-picker-choice .adb-date-picker-start-calendar .datepicker table tr th,
#activityDatabaseSelections .dtrp-container .adb-date-picker-choice .adb-date-picker-end-calendar .datepicker table tr th {
  color: var(--belma-primary-dark);
  font-weight: 700;
}
#activityDatabaseSelections .dtrp-container .adb-date-picker-choice .adb-date-picker-start-calendar .datepicker table tr td,
#activityDatabaseSelections .dtrp-container .adb-date-picker-choice .adb-date-picker-end-calendar .datepicker table tr td {
  color: var(--belma-text);
}
#activityDatabaseSelections .dtrp-container .adb-date-picker-choice .adb-date-picker-start-calendar .datepicker table tr td.day:hover,
#activityDatabaseSelections .dtrp-container .adb-date-picker-choice .adb-date-picker-start-calendar .datepicker table tr td.focused,
#activityDatabaseSelections .dtrp-container .adb-date-picker-choice .adb-date-picker-end-calendar .datepicker table tr td.day:hover,
#activityDatabaseSelections .dtrp-container .adb-date-picker-choice .adb-date-picker-end-calendar .datepicker table tr td.focused {
  background-color: var(--belma-primary-soft);
  color: var(--belma-primary-dark);
}
#activityDatabaseSelections .dtrp-container .adb-date-picker-choice .adb-date-picker-start-calendar .datepicker table tr td.today:not(.active),
#activityDatabaseSelections .dtrp-container .adb-date-picker-choice .adb-date-picker-end-calendar .datepicker table tr td.today:not(.active) {
  background-color: var(--belma-primary-soft);
  color: var(--belma-primary-dark);
}
#activityDatabaseSelections .dtrp-container .adb-date-picker-choice .adb-date-picker-start-calendar .datepicker table tr td.active,
#activityDatabaseSelections .dtrp-container .adb-date-picker-choice .adb-date-picker-start-calendar .datepicker table tr td.active:hover,
#activityDatabaseSelections .dtrp-container .adb-date-picker-choice .adb-date-picker-start-calendar .datepicker table tr td.active:focus,
#activityDatabaseSelections .dtrp-container .adb-date-picker-choice .adb-date-picker-end-calendar .datepicker table tr td.active,
#activityDatabaseSelections .dtrp-container .adb-date-picker-choice .adb-date-picker-end-calendar .datepicker table tr td.active:hover,
#activityDatabaseSelections .dtrp-container .adb-date-picker-choice .adb-date-picker-end-calendar .datepicker table tr td.active:focus {
  background-color: var(--belma-primary);
  border-color: var(--belma-primary);
  color: var(--belma-primary-contrast);
}
#activityDatabaseSelections .dtrp-container .adb-date-picker-choice .adb-date-picker-end-calendar-container {
  flex-basis: 100%;
  width: 100%;
}
#activityDatabaseSelections .dtrp-container .adb-date-picker-choice .adb-date-picker-end-label {
  display: block;
  margin-bottom: 0.25rem;
}
#activityDatabaseSelections .dtrp-container .adb-date-picker-choice .adb-date-picker-duration-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem;
  width: 100%;
}
#activityDatabaseSelections .dtrp-container .adb-date-picker-choice .adb-date-picker-duration-options > button {
  min-width: 0;
  text-align: center;
  width: 100%;
}
#activityDatabaseSelections .dtrp-container .adb-date-picker-choice .adb-date-picker-summary {
  align-items: baseline;
  background-color: var(--belma-primary-soft);
  border-left: 3px solid var(--belma-primary);
  color: var(--belma-primary-dark);
  display: flex;
  flex-basis: 100%;
  font-family: var(--belma-font-sans);
  font-size: var(--belma-font-option);
  font-weight: 700;
  gap: 0.35rem;
  margin-top: 0.15rem;
  padding: 0.4rem 0.5rem;
}
#activityDatabaseSelections .dtrp-container .adb-date-picker-choice .adb-date-picker-summary-label::after {
  content: ":";
}
#activityDatabaseSelections .dtrp-container .adb-date-picker-choice [data-adb-date-duration].active {
  background-color: var(--belma-primary);
  border-color: var(--belma-primary);
  color: #ffffff;
}
#activityDatabaseSelections .dtrp-container .adb-date-picker-choice .btn-link {
  padding-left: 0;
  padding-right: 0;
}
#activityDatabaseSelections .dtrp-container .adb-date-picker-choice [data-adb-start-date]:focus-visible,
#activityDatabaseSelections .dtrp-container .adb-date-picker-choice [data-adb-date-duration]:focus-visible,
#activityDatabaseSelections .dtrp-container .adb-date-picker-choice [data-adb-end-date]:focus-visible {
  outline: 2px solid var(--belma-primary-dark);
  outline-offset: 2px;
}

@media (max-width: 575.98px) {
  #activityDatabaseSelections .dtrp-container .adb-date-picker-choice .adb-date-picker-quick-controls {
    align-items: stretch;
    width: 100%;
  }
  #activityDatabaseSelections .dtrp-container .adb-date-picker-choice .adb-date-picker-duration-options {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
  }
  #activityDatabaseSelections .dtrp-container .adb-date-picker-choice .adb-date-picker-start-calendar,
#activityDatabaseSelections .dtrp-container .adb-date-picker-choice .adb-date-picker-end-calendar,
#activityDatabaseSelections .dtrp-container .adb-date-picker-choice [data-adb-end-date] {
    max-width: none;
    width: 100%;
  }
}
/* Contact and letter modals share the selected theme. The content marker prevents styling other HTML-modal callers. */
#htmlContentBox:has(.belma-email-creator) .modal-dialog,
#ADRSModal .modal-dialog,
#phoneModal .modal-dialog,
#emailContainer .modal-dialog,
#smsContainer .modal-dialog,
#letterModal .modal-dialog,
#commentsModal .modal-dialog {
  width: calc(100% - 2rem);
  margin: 2rem auto;
}

#htmlContentBox:has(.belma-email-creator) .modal-dialog,
#ADRSModal .modal-dialog,
#phoneModal .modal-dialog {
  max-width: 42rem;
}

#emailContainer .modal-dialog,
#smsContainer .modal-dialog {
  max-width: 46rem;
}

#letterModal .modal-dialog,
#commentsModal .modal-dialog {
  max-width: 46rem;
}

#htmlContentBox:has(.belma-email-creator) .modal-content,
#ADRSModal .modal-content,
#phoneModal .modal-content,
#emailContainer .modal-content,
#smsContainer .modal-content,
#letterModal .modal-content,
#commentsModal .modal-content {
  border: 1px solid var(--belma-border);
  border-radius: 1rem;
  box-shadow: 0 1rem 3rem rgba(38, 55, 70, 0.18);
  overflow: hidden;
  background: var(--belma-surface);
  color: var(--belma-text);
}

/* ID scope and matching importance beat the legacy blue header and text-white utilities. */
#htmlContentBox:has(.belma-email-creator) .modal-header.ks-modal-header-blue,
#ADRSModal .modal-header.ks-modal-header-blue,
#phoneModal .modal-header.ks-modal-header-blue,
#emailContainer .modal-header.ks-modal-header-blue,
#smsContainer .modal-header.ks-modal-header-blue,
#letterModal .modal-header.ks-modal-header-blue,
#commentsModal .modal-header {
  background-color: var(--belma-primary-soft) !important;
  color: var(--belma-primary-heading) !important;
  border-bottom: 1px solid var(--belma-primary-border-soft);
  padding: 1.25rem 1.5rem;
}

#htmlContentBox:has(.belma-email-creator) .modal-header h4,
#ADRSModal .modal-header .modal-title,
#phoneModal .modal-header .modal-title,
#emailContainer .modal-header .modal-title,
#smsContainer .modal-header .modal-title,
#letterModal .modal-header .modal-title,
#commentsModal .modal-header .modal-title {
  color: var(--belma-primary-heading) !important;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.4;
}

#htmlContentBox:has(.belma-email-creator) .modal-header .close,
#phoneModal .modal-header .close,
#emailContainer .modal-header .close,
#smsContainer .modal-header .close,
#letterModal .modal-header .close,
#commentsModal .modal-header .close {
  color: var(--belma-primary-dark);
  opacity: 1;
  border-radius: 0.5rem;
}

#htmlContentBox:has(.belma-email-creator) .modal-body,
#ADRSModal .modal-body,
#phoneModal .modal-body,
#emailContainer .modal-body,
#smsContainer .modal-body,
#letterModal .modal-body,
#commentsModal .modal-body {
  padding: 1.25rem !important;
  background: var(--belma-canvas);
}

#phoneModal .person-card,
#emailContainer .person-card,
#smsContainer .person-card {
  border: 1px solid var(--belma-border) !important;
  border-radius: 0.75rem;
  background: var(--belma-surface);
  margin-bottom: 1rem;
}

#phoneModal .person-card > .row.border-bottom,
#emailContainer .person-card > .row.border-bottom,
#smsContainer .person-card > .row.border-bottom {
  justify-content: flex-start !important;
  padding: 0.875rem 1rem !important;
  border-color: var(--belma-border) !important;
}

#phoneModal .person-card > .row > h6,
#emailContainer .person-card > .row > h6,
#smsContainer .person-card > .row > h6 {
  color: var(--belma-text) !important;
  font-size: var(--belma-font-label);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

#phoneModal .person-card > .row > .container-fluid > .border-bottom,
#emailContainer .person-card > .row > .container-fluid > .border-bottom,
#smsContainer .person-card > .row > .container-fluid > .border-bottom {
  border: 1px solid var(--belma-border) !important;
  border-radius: 0.625rem;
  padding: 0.5rem !important;
  margin-bottom: 0.5rem;
  background: var(--belma-surface);
}

#phoneModal .person-card .col-md-9,
#emailContainer .person-card .col-md-9,
#smsContainer .person-card .col-md-9 {
  flex: 1 1 12rem;
  max-width: 100%;
  min-width: 0;
}

#phoneModal .person-card .col-md-3,
#emailContainer .person-card .col-md-3,
#smsContainer .person-card .col-md-3 {
  flex: 0 0 auto;
  max-width: 100%;
  gap: 0.375rem;
  align-items: center;
  padding: 0.25rem;
}

#phoneModal .person-card a.btn-link,
#emailContainer .person-card a.btn-link,
#smsContainer .person-card a.btn-link {
  color: var(--belma-primary-dark);
  font-size: 1.1rem;
  font-weight: 600;
  overflow-wrap: anywhere;
  white-space: normal;
}

#phoneModal .person-card .font-italic,
#emailContainer .person-card .font-italic,
#smsContainer .person-card .font-italic {
  color: var(--belma-muted);
  font-style: normal !important;
  font-weight: 400 !important;
  font-size: var(--belma-font-caption);
  overflow-wrap: anywhere;
}

#phoneModal .person-card button.material-icons,
#emailContainer .person-card button.material-icons,
#smsContainer .person-card button.material-icons {
  min-width: 2.5rem;
  min-height: 2.5rem;
  margin-left: 0 !important;
  border-radius: 0.5rem;
}

#phoneModal .person-card button.answer-button {
  background: var(--belma-primary);
  border-color: var(--belma-primary);
  color: var(--belma-primary-contrast);
}

#phoneModal .person-card button.answer-button:hover {
  background: var(--belma-primary-dark);
  border-color: var(--belma-primary-dark);
}

#phoneModal .contact-card {
  padding: 0.75rem;
  border-top: 1px solid var(--belma-border);
}

#phoneModal .modal-footer,
#emailContainer .modal-footer,
#smsContainer .modal-footer,
#commentsModal .modal-footer {
  padding: 0.875rem 1.25rem;
  background: var(--belma-surface);
  border-top: 1px solid var(--belma-border);
}

#htmlContentBox:has(.belma-email-creator) .modal-body [data-dismiss=modal],
#phoneModal .modal-footer [data-dismiss=modal],
#emailContainer .modal-footer [data-dismiss=modal],
#smsContainer .modal-footer [data-dismiss=modal],
#letterModal .row.no-gutters.my-3 [data-dismiss=modal] {
  background: var(--belma-surface);
  color: var(--belma-text);
  border: 1px solid var(--belma-border-strong);
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
}

#htmlContentBox:has(.belma-email-creator) .modal-body [data-dismiss=modal]:hover,
#phoneModal .modal-footer [data-dismiss=modal]:hover,
#emailContainer .modal-footer [data-dismiss=modal]:hover,
#smsContainer .modal-footer [data-dismiss=modal]:hover,
#letterModal .row.no-gutters.my-3 [data-dismiss=modal]:hover {
  background: var(--belma-primary-soft);
  border-color: var(--belma-primary-border);
}

#phoneModal button:focus-visible,
#phoneModal a:focus-visible,
#emailContainer button:focus-visible,
#smsContainer button:focus-visible,
#emailContainer a:focus-visible,
#smsContainer a:focus-visible,
#emailContainer input:focus-visible,
#smsContainer input:focus-visible,
#emailContainer select:focus-visible,
#smsContainer select:focus-visible,
#emailContainer textarea:focus-visible,
#smsContainer textarea:focus-visible,
#letterModal button:focus-visible,
#letterModal input:focus-visible,
#letterModal select:focus-visible,
#letterModal textarea:focus-visible,
#commentsModal button:focus-visible,
#commentsModal textarea:focus-visible,
#commentsModal input:focus-visible {
  outline: 2px solid var(--belma-primary-dark);
  outline-offset: 2px;
}

#emailContainer .sle-email-container,
#smsContainer .sle-sms-form {
  background: var(--belma-surface);
  border: 1px solid var(--belma-border);
  border-radius: 0.75rem;
  padding: 0.75rem;
}

#emailContainer .form-group,
#smsContainer .form-group {
  margin-bottom: 1rem;
}

#emailContainer .form-group > label,
#smsContainer .form-group > label {
  color: var(--belma-text);
  font-size: var(--belma-font-label);
}

#emailContainer .form-control,
#smsContainer .form-control,
#emailContainer .custom-select,
#smsContainer .custom-select {
  background: var(--belma-surface);
  border-color: var(--belma-border-strong);
  border-radius: 0.5rem;
}

#htmlContentBox:has(.belma-email-creator) .save-contact-button,
#ADRSModal .adrs-save-address,
#emailContainer .modal-footer .btn-success,
#smsContainer .modal-footer .btn-success {
  background: var(--belma-primary);
  border-color: var(--belma-primary);
  color: var(--belma-primary-contrast);
}

#htmlContentBox:has(.belma-email-creator) .save-contact-button:hover,
#ADRSModal .adrs-save-address:hover,
#emailContainer .modal-footer .btn-success:hover,
#smsContainer .modal-footer .btn-success:hover {
  background: var(--belma-primary-dark);
  border-color: var(--belma-primary-dark);
}

#letterModal .modal-body > .container-fluid {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0;
}

#htmlContentBox:has(.belma-email-creator) .contact-card,
#ADRSModal form,
#letterModal form {
  background: var(--belma-surface);
  border: 1px solid var(--belma-border);
  border-radius: 0.75rem;
  padding: 1rem;
}

#letterModal .form-group {
  margin-bottom: 1rem;
}

#htmlContentBox:has(.belma-email-creator) .contact-card .form-group > label,
#letterModal .form-group > label {
  color: var(--belma-text);
  font-size: var(--belma-font-label);
}

#htmlContentBox:has(.belma-email-creator) .form-control,
#htmlContentBox:has(.belma-email-creator) .custom-select,
#ADRSModal .form-control,
#ADRSModal .custom-select,
#letterModal .form-control,
#letterModal .custom-select {
  background: var(--belma-surface);
  border-color: var(--belma-border-strong);
  border-radius: 0.5rem;
}

/* Retain the shared contact form's rows and tokens while matching the CRM form spacing and actions. */
#htmlContentBox:has(.belma-email-creator) .contact-card {
  display: grid;
  gap: 0.5rem;
  font-family: var(--belma-font-sans);
}

#htmlContentBox:has(.belma-email-creator) .contact-card > .row:last-child .form-group {
  display: flex;
  justify-content: flex-end;
  padding-top: 0.75rem;
  border-top: 1px solid var(--belma-border);
}

#htmlContentBox:has(.belma-email-creator) .modal-body > .container-fluid > .d-flex {
  justify-content: flex-end !important;
  /* Override the shared template's justify-content-center utility. */
}

@media (max-width: 575.98px) {
  #htmlContentBox:has(.belma-email-creator) :is(.form-control, .custom-select, .btn) {
    min-height: 44px;
    font-size: 16px !important;
    /* Beat shared important control typography and avoid mobile input zoom. */
  }
}
#letterModal textarea.form-control {
  min-height: 11rem;
  resize: vertical;
}

#letterModal .form-group.row {
  align-items: center;
  margin-bottom: 0.75rem;
}

#letterModal .row.no-gutters.my-3.d-flex {
  align-items: center;
  border-top: 1px solid var(--belma-border);
  gap: 0.75rem;
  margin: 1.25rem 0 0 !important;
  padding-top: 1rem;
}

#letterModal .row.no-gutters.my-3 .btn-success {
  background: var(--belma-primary);
  border-color: var(--belma-primary);
  color: var(--belma-primary-contrast);
}

#letterModal .row.no-gutters.my-3 .btn-success:hover {
  background: var(--belma-primary-dark);
  border-color: var(--belma-primary-dark);
}

@media (max-width: 575.98px) {
  #htmlContentBox:has(.belma-email-creator) .modal-dialog,
#ADRSModal .modal-dialog,
#phoneModal .modal-dialog,
#emailContainer .modal-dialog,
#smsContainer .modal-dialog,
#letterModal .modal-dialog,
#commentsModal .modal-dialog {
    width: calc(100% - 1rem);
    margin: 0.5rem auto;
  }

  #htmlContentBox:has(.belma-email-creator) .modal-body,
#ADRSModal .modal-body,
#phoneModal .modal-body,
#emailContainer .modal-body,
#smsContainer .modal-body,
#letterModal .modal-body,
#commentsModal .modal-body {
    padding: 0.75rem !important;
  }

  #htmlContentBox:has(.belma-email-creator) .modal-header.ks-modal-header-blue,
#ADRSModal .modal-header.ks-modal-header-blue,
#phoneModal .modal-header.ks-modal-header-blue,
#emailContainer .modal-header.ks-modal-header-blue,
#smsContainer .modal-header.ks-modal-header-blue,
#letterModal .modal-header.ks-modal-header-blue,
#commentsModal .modal-header {
    padding: 1rem;
  }

  #letterModal form {
    border-radius: 0.625rem;
    padding: 0.75rem;
  }

  #letterModal .form-group.row {
    align-items: flex-start;
  }

  #letterModal .row.no-gutters.my-3.d-flex {
    align-items: stretch;
    flex-direction: column;
  }

  #letterModal .row.no-gutters.my-3.d-flex > div,
#letterModal .row.no-gutters.my-3.d-flex .btn {
    width: 100%;
  }
}
/* The shared content modal receives this class only while choosing an inventory-copy order. */
#htmlContentBox.invte-copy-order-modal .modal-dialog {
  max-width: 34rem;
  width: calc(100% - 2rem);
  margin: 2rem auto;
}

#htmlContentBox.invte-copy-order-modal .modal-content {
  border: 1px solid var(--belma-border);
  border-radius: 1rem;
  box-shadow: 0 1rem 3rem rgba(38, 55, 70, 0.18);
  overflow: hidden;
}

#htmlContentBox.invte-copy-order-modal .modal-header.ks-modal-header-blue {
  background-color: var(--belma-primary-soft) !important;
  border-bottom: 1px solid var(--belma-primary-border-soft);
  color: var(--belma-primary-heading) !important;
  padding: 1.125rem 1.25rem;
}

#htmlContentBox.invte-copy-order-modal .modal-header h4 {
  color: var(--belma-primary-heading) !important;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.4;
}

#htmlContentBox.invte-copy-order-modal .modal-header .close {
  color: var(--belma-primary-dark);
  opacity: 1;
}

#htmlContentBox.invte-copy-order-modal .modal-body {
  background: var(--belma-canvas);
  padding: 1.25rem !important;
}

#htmlContentBox.invte-copy-order-modal .modal-body > .container-fluid {
  max-width: 30rem;
  padding: 0;
}

#htmlContentBox.invte-copy-order-modal .invte-copy-order-options fieldset {
  display: grid;
  gap: 0.625rem;
}

#htmlContentBox.invte-copy-order-modal .invte-copy-order-options legend {
  color: var(--belma-text);
  font-size: var(--belma-font-label);
  line-height: 1.5;
  margin-bottom: 0.25rem;
}

#htmlContentBox.invte-copy-order-modal .invte-copy-order-options .custom-control {
  margin: 0;
  min-height: 0;
  padding: 0;
}

#htmlContentBox.invte-copy-order-modal .invte-copy-order-options .custom-control-label {
  align-items: center;
  background: var(--belma-surface);
  border: 1px solid var(--belma-border);
  border-radius: 0.625rem;
  color: var(--belma-text);
  cursor: pointer;
  display: flex;
  min-height: 3rem;
  padding: 0.75rem 0.875rem 0.75rem 2.5rem;
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  width: 100%;
}

#htmlContentBox.invte-copy-order-modal .invte-copy-order-options .custom-control-label::before,
#htmlContentBox.invte-copy-order-modal .invte-copy-order-options .custom-control-label::after {
  left: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
}

#htmlContentBox.invte-copy-order-modal .invte-copy-order-options .custom-control-input:checked ~ .custom-control-label {
  background: var(--belma-primary-soft);
  border-color: var(--belma-primary-border-soft);
  box-shadow: 0 0 0 0.2rem rgba(40, 121, 185, 0.12);
  color: var(--belma-primary-heading);
  font-weight: 600;
}

#htmlContentBox.invte-copy-order-modal .invte-copy-order-options .custom-control-input:focus ~ .custom-control-label {
  box-shadow: 0 0 0 0.2rem rgba(40, 121, 185, 0.25);
}

#htmlContentBox.invte-copy-order-modal .modal-body > .container-fluid > .d-flex.justify-content-center {
  border-top: 1px solid var(--belma-border);
  gap: 0.5rem;
  justify-content: flex-end !important;
  margin: 1.25rem 0 0 !important;
  padding-top: 1rem;
}

#htmlContentBox.invte-copy-order-modal .modal-body .btn-danger {
  background: var(--belma-surface);
  border-color: var(--belma-border-strong);
  color: var(--belma-text);
}

#htmlContentBox.invte-copy-order-modal .modal-body .btn-primary {
  background: var(--belma-primary);
  border-color: var(--belma-primary);
  color: var(--belma-primary-contrast);
}

#htmlContentBox.invte-copy-order-modal .modal-body .btn-primary:hover,
#htmlContentBox.invte-copy-order-modal .modal-body .btn-primary:focus {
  background: var(--belma-primary-dark);
  border-color: var(--belma-primary-dark);
}

@media (max-width: 575.98px) {
  #htmlContentBox.invte-copy-order-modal .modal-dialog {
    margin: 0.5rem auto;
    width: calc(100% - 1rem);
  }

  #htmlContentBox.invte-copy-order-modal .modal-body {
    padding: 0.875rem !important;
  }

  #htmlContentBox.invte-copy-order-modal .modal-body > .container-fluid > .d-flex.justify-content-center {
    align-items: stretch;
    flex-direction: column;
  }

  #htmlContentBox.invte-copy-order-modal .modal-body > .container-fluid > .d-flex.justify-content-center .btn {
    width: 100%;
  }
}
/* Keep static address suggestions beside their input when another flex cell expands. */
div.flex-table-container div.d-md-flex > div.flex-fill.address-dropdown {
  align-self: flex-start;
}

/* Invoice workflows share one modal; choice rows remain compact, obvious and touch-friendly. */
#htmlContentBox .invce-activity-reassignment .invce-activity-choice-list .btn,
#htmlContentBox .invce-reference-activity-choices .btn {
  border-color: var(--belma-border);
  min-height: 2.75rem;
  padding: 0.625rem 0.75rem;
}

#htmlContentBox .invce-activity-reassignment .invce-activity-choice-list .btn:hover,
#htmlContentBox .invce-activity-reassignment .invce-activity-choice-list .btn:focus,
#htmlContentBox .invce-reference-activity-choices .btn:hover,
#htmlContentBox .invce-reference-activity-choices .btn:focus {
  border-color: var(--belma-primary-border-soft);
  box-shadow: 0 0 0 0.2rem rgba(40, 121, 185, 0.15);
}

/* Slutkund a4: reuse the generated profile hierarchy in Kunddatabas and explicitly marked customer hosts.
   The shared :is scope retains table-ID specificity; important declarations override Bootstrap utilities. */
:is(#CDBFlexTable, [data-customer-a4-host]) .customer-card-a4 {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  max-width: 76rem;
  margin: 0 auto;
  padding: 0.25rem;
  color: var(--belma-text);
  font-family: var(--belma-font-sans);
  min-width: 0;
}

:is(#CDBFlexTable, [data-customer-a4-host]) .customer-card-a4 .a4-overview,
:is(#CDBFlexTable, [data-customer-a4-host]) .customer-card-a4 .a4-section {
  min-width: 0;
  width: 100%;
  margin: 0;
  padding: 1rem;
  border: 1px solid var(--belma-border);
  border-radius: 0.75rem;
  background: var(--belma-surface, #fff);
  overflow-wrap: anywhere;
}

:is(#CDBFlexTable, [data-customer-a4-host]) .customer-card-a4 .a4-overview {
  border-top: 4px solid var(--belma-primary);
  background: linear-gradient(135deg, var(--belma-primary-soft), var(--belma-surface, #fff));
}

/* Reuse the compact contact-line presentation inside the a4 overview only. */
:is(#CDBFlexTable, [data-customer-a4-host]) .customer-card-a4 .customer-card-overview-contacts {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-top: 0.5rem;
  min-width: 0;
}

:is(#CDBFlexTable, [data-customer-a4-host]) .customer-card-a4 .customer-card-overview-contact {
  color: var(--belma-text);
  font-size: inherit;
  overflow-wrap: anywhere;
}

:is(#CDBFlexTable, [data-customer-a4-host]) .customer-card-a4 .a4-overview h2 {
  margin: 0 0 0.35rem;
  font-size: 1.45rem;
  color: var(--belma-primary-heading);
}

:is(#CDBFlexTable, [data-customer-a4-host]) .customer-card-a4 .a4-section h3,
:is(#CDBFlexTable, [data-customer-a4-host]) .customer-card-a4 .a4-section h5 {
  margin: 0 0 0.75rem;
  font-size: 1.12rem;
  color: var(--belma-primary-heading);
}

:is(#CDBFlexTable, [data-customer-a4-host]) .customer-card-a4 .a4-section > .container,
:is(#CDBFlexTable, [data-customer-a4-host]) .customer-card-a4 .a4-section > .container-fluid,
:is(#CDBFlexTable, [data-customer-a4-host]) .customer-card-a4 .a4-record {
  max-width: 100%;
  min-width: 0 !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

:is(#CDBFlexTable, [data-customer-a4-host]) .customer-card-a4 .a4-record {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.65rem;
  padding: 0.85rem 0 !important;
  border-top: 1px solid var(--belma-border) !important;
}

:is(#CDBFlexTable, [data-customer-a4-host]) .customer-card-a4 .flex-label,
:is(#CDBFlexTable, [data-customer-a4-host]) .customer-card-a4 .a4-record:not(.is-editing) > :not(.a4-summary):not(.a4-toolbar):not(.a4-actions),
:is(#CDBFlexTable, [data-customer-a4-host]) .customer-card-a4 .a4-new-record:not(.is-editing),
:is(#CDBFlexTable, [data-customer-a4-host]) .customer-card-a4 .a4-record:not(.is-editing) .a4-save,
:is(#CDBFlexTable, [data-customer-a4-host]) .customer-card-a4 .a4-record:not(.is-editing) .a4-cancel,
:is(#CDBFlexTable, [data-customer-a4-host]) .customer-card-a4 .a4-record.is-editing > .a4-summary,
:is(#CDBFlexTable, [data-customer-a4-host]) .customer-card-a4 .a4-record.is-editing .a4-edit {
  display: none !important;
}

:is(#CDBFlexTable, [data-customer-a4-host]) .customer-card-a4 .a4-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.1rem;
  margin: 0;
}

:is(#CDBFlexTable, [data-customer-a4-host]) .customer-card-a4 .a4-summary dt {
  color: var(--belma-text-muted);
  font-size: 0.8rem;
  font-weight: 600;
}

:is(#CDBFlexTable, [data-customer-a4-host]) .customer-card-a4 .a4-summary dd {
  margin: 0 0 0.45rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

:is(#CDBFlexTable, [data-customer-a4-host]) .customer-card-a4 .a4-record > .d-flex {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr);
}

:is(#CDBFlexTable, [data-customer-a4-host]) .customer-card-a4 .a4-record .form-group,
:is(#CDBFlexTable, [data-customer-a4-host]) .customer-card-a4 .a4-record > .flex-fill {
  min-width: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
  padding: 0.35rem 0 !important;
  flex: initial !important;
}

:is(#CDBFlexTable, [data-customer-a4-host]) .customer-card-a4 .a4-record label {
  display: block !important;
  color: var(--belma-primary-heading);
  font-weight: 600;
  margin: 0 0 0.35rem;
}

:is(#CDBFlexTable, [data-customer-a4-host]) .customer-card-a4 .a4-record :is(input:not([type="hidden"]), select, textarea, .select2-container) {
  min-width: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  min-height: 2.75rem;
  background-color: var(--belma-surface, #fff);
  border: 1px solid var(--belma-border-strong) !important;
  border-radius: 0.35rem;
  padding: 0.55rem;
  color: var(--belma-text);
  font-size: 1rem;
}

:is(#CDBFlexTable, [data-customer-a4-host]) .customer-card-a4 .a4-record .select2-container {
  padding: 0;
}

:is(#CDBFlexTable, [data-customer-a4-host]) .customer-card-a4 .a4-record .select2-selection {
  min-height: 2.75rem;
  height: auto;
  white-space: normal;
}

:is(#CDBFlexTable, [data-customer-a4-host]) .customer-card-a4 .a4-toolbar,
:is(#CDBFlexTable, [data-customer-a4-host]) .customer-card-a4 .a4-actions,
:is(#CDBFlexTable, [data-customer-a4-host]) .customer-card-a4 .a4-actions > div,
:is(#CDBFlexTable, [data-customer-a4-host]) .customer-card-a4 .a4-direct-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  width: 100% !important;
  min-width: 0 !important;
}

:is(#CDBFlexTable, [data-customer-a4-host]) .customer-card-a4 .a4-toolbar,
:is(#CDBFlexTable, [data-customer-a4-host]) .customer-card-a4 .a4-actions {
  grid-column: 1/-1;
}

:is(#CDBFlexTable, [data-customer-a4-host]) .customer-card-a4 .a4-button,
:is(#CDBFlexTable, [data-customer-a4-host]) .customer-card-a4 .a4-actions button {
  min-height: 2.75rem;
  max-width: 100%;
  padding: 0.6rem 0.8rem !important;
  margin: 0 !important;
  white-space: normal;
  border-radius: 0.4rem;
}

:is(#CDBFlexTable, [data-customer-a4-host]) .customer-card-a4 .a4-action-label {
  font-family: var(--belma-font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  margin-left: 0.4rem;
  pointer-events: none;
}

:is(#CDBFlexTable, [data-customer-a4-host]) .customer-card-a4 :is(button, input, select, textarea):focus-visible {
  outline: 3px solid var(--belma-primary);
  outline-offset: 3px;
}

:is(#CDBFlexTable, [data-customer-a4-host]) .customer-card-a4 .a4-status {
  min-height: 1.4em;
  margin: 0.65rem 0 0;
  font-weight: 600;
}

:is(#CDBFlexTable, [data-customer-a4-host]) .customer-card-a4 .a4-status[data-state=error] {
  color: #a61b1b;
}

:is(#CDBFlexTable, [data-customer-a4-host]) .customer-card-a4 .a4-status[data-state=saved] {
  color: #216438;
}

:is(#CDBFlexTable, [data-customer-a4-host]) .customer-card-a4 .a4-empty {
  color: var(--belma-text-muted);
  margin: 0.75rem 0 0;
}

@media (min-width: 992px) {
  :is(#CDBFlexTable, [data-customer-a4-host]) .customer-card-a4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  :is(#CDBFlexTable, [data-customer-a4-host]) .customer-card-a4 .a4-overview,
:is(#CDBFlexTable, [data-customer-a4-host]) .customer-card-a4 .a4-section-details,
:is(#CDBFlexTable, [data-customer-a4-host]) .customer-card-a4 .a4-section-address {
    grid-column: 1/-1;
  }

  :is(#CDBFlexTable, [data-customer-a4-host]) .customer-card-a4 .a4-section-details .a4-record > .d-flex,
:is(#CDBFlexTable, [data-customer-a4-host]) .customer-card-a4 .a4-section-address .a4-record.is-editing {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1rem;
  }

  :is(#CDBFlexTable, [data-customer-a4-host]) .customer-card-a4 .a4-section-details .a4-summary,
:is(#CDBFlexTable, [data-customer-a4-host]) .customer-card-a4 .a4-section-address .a4-summary {
    grid-template-columns: minmax(8rem, 1fr) minmax(0, 2fr);
    gap: 0.35rem 1rem;
  }
}
/* Keep the primary save action distinct while preserving the generated action button and listener. */
:is(#CDBFlexTable, [data-customer-a4-host]) .customer-card-a4 .a4-save,
:is(#CDBFlexTable, [data-customer-a4-host]) .customer-card-a4 button[data-a4-action=save] {
  background-color: var(--belma-primary);
  border-color: var(--belma-primary);
  /* Override the important outline foreground because save uses a filled primary surface. */
  color: var(--belma-primary-contrast) !important;
}

:is(#CDBFlexTable, [data-customer-a4-host]) .customer-card-a4 button:disabled {
  cursor: wait;
}

/* Preserve visible field errors above the neutral a4 control-border override. */
:is(#CDBFlexTable, [data-customer-a4-host]) .customer-card-a4 .a4-record .parsley-error {
  border-color: #a61b1b !important;
}

/* Hide only the redundant panel heading, and only while the a4 panel is active.
   Bootstrap's flex utilities use !important; the panel-scoped selector overrides that display rule. */
:is(#CDBFlexTable .tab-plane.active[data-customer-a4-translations], .tab-plane.active[data-customer-a4-host]) .ks-customer-containers > .row:first-child {
  display: none !important;
}

@media (max-width: 767.98px) {
  /* Pixel minimums keep tap targets and copy readable even with the page's reduced root-font preference. */
  :is(#CDBFlexTable, [data-customer-a4-host]) .customer-card-a4 {
    font-size: 16px;
    line-height: 1.5;
  }

  :is(#CDBFlexTable, [data-customer-a4-host]) .customer-card-a4 .a4-summary dt {
    font-size: 14px;
  }

  :is(#CDBFlexTable, [data-customer-a4-host]) .customer-card-a4 .a4-button,
:is(#CDBFlexTable, [data-customer-a4-host]) .customer-card-a4 .a4-actions button {
    min-height: 44px;
    min-width: 44px;
    max-width: 100%;
    font-size: 16px !important;
    line-height: 1.4;
    overflow-wrap: anywhere;
  }

  :is(#CDBFlexTable, [data-customer-a4-host]) .customer-card-a4 .a4-action-label {
    font-size: inherit;
  }

  /* Shared .form-control/.col-form-label typography is important; match its priority with a scoped id selector. */
  :is(#CDBFlexTable, [data-customer-a4-host]) .customer-card-a4 .a4-record :is(input:not([type="hidden"]), select, textarea, label, .select2-selection) {
    font-size: 16px !important;
  }

  :is(#CDBFlexTable, [data-customer-a4-host]) .customer-card-a4 .a4-record :is(input:not([type="hidden"]), select, textarea, .select2-selection) {
    min-height: 44px;
  }
}
/* Shared comments popup: retain the existing dialog and submit/Enter handlers on every page. */
#commentsModal .modal-header .close {
  color: var(--belma-primary-dark) !important;
  opacity: 1 !important;
}

#commentsModal textarea.form-control {
  min-height: 10rem;
  max-width: 100%;
  resize: vertical;
  background: var(--belma-surface);
  color: var(--belma-text);
  border: 1px solid var(--belma-border-strong);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem !important;
  line-height: 1.5;
}

#commentsModal .modal-footer {
  /* Bootstrap border-top is important; keep the existing border with the shared theme color. */
  border-top-color: var(--belma-border) !important;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

#commentsModal .modal-footer .custom-control {
  margin-bottom: 0;
}

#commentsModal .modal-footer .btn-success {
  background: var(--belma-primary);
  border-color: var(--belma-primary);
  color: var(--belma-primary-contrast) !important;
  border-radius: 0.5rem;
  padding: 0.6rem 1.25rem;
}

#commentsModal .modal-footer .btn-success:hover {
  background: var(--belma-primary-dark);
  border-color: var(--belma-primary-dark);
}

@media (max-width: 575.98px) {
  #commentsModal textarea.form-control {
    font-size: 16px !important;
  }

  #commentsModal .modal-footer .btn,
#commentsModal .modal-header .close {
    min-width: 44px;
    min-height: 44px;
  }
}
/* The shared SMS composer keeps its existing form, validation and send handlers. */
#smsContainer textarea.form-control {
  min-height: 10rem;
  max-width: 100%;
  resize: vertical;
  padding: 0.75rem 1rem !important;
  color: var(--belma-text);
  line-height: 1.5;
}

#smsContainer .modal-footer {
  gap: 0.75rem;
  flex-wrap: wrap;
}

@media (max-width: 575.98px) {
  #smsContainer .form-control,
#smsContainer .custom-select {
    font-size: 16px !important;
  }

  #smsContainer .modal-footer .btn,
#smsContainer .modal-header .close {
    min-height: 44px;
    min-width: 44px;
  }
}
/* Keep disclosure-hidden sections closed even when their generated Bootstrap layout uses display utilities. */
:is(#CDBFlexTable, [data-customer-a4-host]) .customer-card-a4 > .a4-section[hidden] {
  display: none !important;
}

/* Keep the phone disclosure out of desktop layout and keyboard navigation, including after resizing. */
:is(#CDBFlexTable, [data-customer-a4-host]) .customer-card-a4 .a4-phone-contact {
  display: none;
}

@media (max-width: 767.98px) {
  :is(#CDBFlexTable, [data-customer-a4-host]) .customer-card-a4 .a4-phone-contact {
    display: block;
  }

  :is(#CDBFlexTable, [data-customer-a4-host]) .customer-card-a4 .a4-phone-desktop {
    display: none;
  }
}
/* The mobile native disclosure retains overview typography and keyboard toggling. */
:is(#CDBFlexTable, [data-customer-a4-host]) .customer-card-a4 .a4-phone-contact > summary {
  cursor: pointer;
  color: var(--belma-primary-dark);
  overflow-wrap: anywhere;
}

:is(#CDBFlexTable, [data-customer-a4-host]) .customer-card-a4 .a4-phone-contact > summary:focus-visible {
  outline: 2px solid var(--belma-primary-dark);
  outline-offset: 2px;
}

:is(#CDBFlexTable, [data-customer-a4-host]) .customer-card-a4 .a4-phone-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.5rem 0;
}

/* Reuse the shared HTML modal only while it hosts this phone draft, never for other callers. */
#htmlContentBox.customer-phone-editor .modal-dialog {
  width: calc(100% - 1rem) !important;
  max-width: 32rem !important;
  margin: 1rem auto;
}

#htmlContentBox.customer-phone-editor .modal-content {
  border: 1px solid var(--belma-border);
  border-radius: 1rem;
  overflow: hidden;
  color: var(--belma-text);
  background: var(--belma-surface);
}

/* Legacy blue headers/text-white use important declarations; keep this override scoped to the draft. */
#htmlContentBox.customer-phone-editor .modal-header.ks-modal-header-blue {
  background: var(--belma-primary-soft) !important;
  color: var(--belma-primary-heading) !important;
}

#htmlContentBox.customer-phone-editor .modal-header h4 {
  color: var(--belma-primary-heading) !important;
  font-size: 1.2rem;
}

#htmlContentBox.customer-phone-editor .modal-header .close {
  color: var(--belma-primary-dark) !important;
  opacity: 1 !important;
}

#htmlContentBox.customer-phone-editor .a4-phone-editor {
  width: 100%;
  min-width: 0;
  display: grid;
  gap: 0.75rem;
}

#htmlContentBox.customer-phone-editor .a4-phone-editor label {
  display: grid;
  gap: 0.5rem;
  width: 100%;
  color: var(--belma-text);
}

#htmlContentBox.customer-phone-editor .a4-phone-editor .form-control {
  color: var(--belma-text);
  background: var(--belma-surface);
  border-color: var(--belma-border-strong);
}

#htmlContentBox.customer-phone-editor button:focus-visible,
#htmlContentBox.customer-phone-editor input:focus-visible {
  outline: 2px solid var(--belma-primary-dark);
  outline-offset: 2px;
}

@media (max-width: 767.98px) {
  #htmlContentBox.customer-phone-editor .form-control,
#htmlContentBox.customer-phone-editor button {
    font-size: 16px !important;
    min-height: 44px;
  }
}
/* Disclosed customer details and persisted contacts are already editors; keep original controls understated.
   Match existing ID-scoped important border/padding rules without changing other contact editors. */
:is(#CDBFlexTable, [data-customer-a4-host]) .customer-card-a4 .a4-inline-header :is(input:not([type="hidden"]), select, textarea),
:is(#CDBFlexTable, [data-customer-a4-host]) .customer-card-a4 .a4-inline-phone :is(input:not([type="hidden"]), select, textarea),
:is(#CDBFlexTable, [data-customer-a4-host]) .customer-card-a4 .a4-inline-email :is(input:not([type="hidden"]), select, textarea),
:is(#CDBFlexTable, [data-customer-a4-host]) .customer-card-a4 .a4-inline-address :is(input:not([type="hidden"]), select, textarea) {
  background-color: transparent;
  border: 1px solid var(--belma-border) !important;
  border-radius: 0.25rem;
  padding: 0.4rem 0.5rem !important;
  box-shadow: none;
}

:is(#CDBFlexTable, [data-customer-a4-host]) .customer-card-a4 .a4-inline-header :is(input, select, textarea):focus,
:is(#CDBFlexTable, [data-customer-a4-host]) .customer-card-a4 .a4-inline-phone :is(input, select, textarea):focus,
:is(#CDBFlexTable, [data-customer-a4-host]) .customer-card-a4 .a4-inline-email :is(input, select, textarea):focus,
:is(#CDBFlexTable, [data-customer-a4-host]) .customer-card-a4 .a4-inline-address :is(input, select, textarea):focus {
  background-color: var(--belma-surface);
  border-color: var(--belma-primary) !important;
  outline: 2px solid var(--belma-primary-soft);
  outline-offset: 1px;
}

/* Contact section headings follow Customer details instead of the centered legacy table caption.
   Bootstrap alignment/spacing and .text-header padding/color are important, so match their priority locally. */
:is(#CDBFlexTable, [data-customer-a4-host]) .customer-card-a4 .a4-phone-heading,
:is(#CDBFlexTable, [data-customer-a4-host]) .customer-card-a4 .a4-email-heading,
:is(#CDBFlexTable, [data-customer-a4-host]) .customer-card-a4 .a4-address-heading {
  justify-content: flex-start !important;
  padding: 0 !important;
  margin: 0 !important;
}

:is(#CDBFlexTable, [data-customer-a4-host]) .customer-card-a4 .a4-phone-heading h5,
:is(#CDBFlexTable, [data-customer-a4-host]) .customer-card-a4 .a4-email-heading h5,
:is(#CDBFlexTable, [data-customer-a4-host]) .customer-card-a4 .a4-address-heading h5 {
  padding: 0 !important;
  margin: 0 0 0.75rem !important;
  color: var(--belma-primary-heading) !important;
}

:is(#CDBFlexTable, [data-customer-a4-host]) .customer-card-a4 .a4-add-phone,
:is(#CDBFlexTable, [data-customer-a4-host]) .customer-card-a4 .a4-add-email,
:is(#CDBFlexTable, [data-customer-a4-host]) .customer-card-a4 .a4-add-address {
  margin-top: 0.75rem !important;
  justify-self: start;
  /* Sections retain Bootstrap's flex row: prevent this button from stretching to a tall line's height. */
  align-self: flex-start;
}

/* Contact editing uses the outer section card, not a second table frame against the input borders.
   Shared table borders and a4 cell padding use important rules; override only these contact sections. */
:is(#CDBFlexTable, [data-customer-a4-host]) .customer-card-a4 .a4-section-phone .profile-type-container,
:is(#CDBFlexTable, [data-customer-a4-host]) .customer-card-a4 .a4-section-email .profile-type-container,
:is(#CDBFlexTable, [data-customer-a4-host]) .customer-card-a4 .a4-section-address .profile-type-container {
  border: 0 !important;
  box-shadow: none;
  background: transparent;
}

:is(#CDBFlexTable, [data-customer-a4-host]) .customer-card-a4 .a4-section-phone .a4-record > .flex-fill,
:is(#CDBFlexTable, [data-customer-a4-host]) .customer-card-a4 .a4-section-email .a4-record > .flex-fill,
:is(#CDBFlexTable, [data-customer-a4-host]) .customer-card-a4 .a4-section-address .a4-record > .flex-fill {
  border: 0 !important;
  padding: 0.35rem 0.5rem !important;
}

/* Grid cards can share a tall row; keep wrapped contact contents together above their Add button.
   Bootstrap's flex-row default otherwise stretches the lines apart inside the taller card. */
:is(#CDBFlexTable, [data-customer-a4-host]) .customer-card-a4 .a4-section-phone,
:is(#CDBFlexTable, [data-customer-a4-host]) .customer-card-a4 .a4-section-email,
:is(#CDBFlexTable, [data-customer-a4-host]) .customer-card-a4 .a4-section-address {
  align-content: flex-start;
}

/* Mobile list presentation reuses the original a4 panel, token ancestry and positional tab DOM.
   First paint uses the translated loading card; failed reads restore the source row. Desktop keeps its layout. */
#CDBFlexTable .cdb-mobile-more,
#CDBFlexTable .cdb-mobile-row-actions,
#CDBFlexTable .cdb-mobile-search-toggle {
  display: none;
}

@media (max-width: 767.98px) {
  /* Preserve all column filters behind a compact control instead of leaving a tall table-shaped search row. */
  #CDBFlexTable.cdb-mobile-search-collapsible:not(.cdb-mobile-search-open) .cdb-row.search {
    display: none !important;
  }

  #CDBFlexTable .cdb-mobile-search-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 44px;
    max-width: 100%;
    margin: 0.5rem;
    font-size: 16px;
  }

  #CDBFlexTable.cdb-mobile-list > .flex-table-container {
    border: 0 !important;
    box-shadow: none;
    background: transparent;
  }

  #CDBFlexTable.cdb-mobile-list > .flex-table-container > .flex-label,
#CDBFlexTable .cdb-mobile-source-ready {
    display: none !important;
  }

  /* Bootstrap d-none belongs to the More disclosure; the loading/rendered card layout remains visible. */
  #CDBFlexTable .cdb-mobile-details.cdb-mobile-ready {
    display: block !important;
    min-width: 0;
    width: 100%;
    padding: 0 !important;
    margin-bottom: 1rem;
  }

  #CDBFlexTable .cdb-mobile-ready > .tab {
    display: flex;
    flex-direction: column;
    min-width: 0;
  }

  #CDBFlexTable .cdb-mobile-ready > .tab > .tab-content {
    display: contents;
  }

  #CDBFlexTable .cdb-mobile-ready .tab-content > [data-customer-a4-translations] {
    display: block !important;
    order: 0;
    min-width: 0;
    max-width: 100%;
  }

  #CDBFlexTable .cdb-mobile-ready .cdb-mobile-more {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 0.5rem;
    order: 1;
    min-height: 44px;
    max-width: 100%;
    margin: 0.5rem 0;
    font-size: 16px;
    white-space: normal;
  }

  #CDBFlexTable .cdb-mobile-ready .cdb-mobile-navigation {
    order: 2;
    min-width: 0;
  }

  #CDBFlexTable .cdb-mobile-ready .cdb-mobile-row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    order: 3;
    margin: 0.5rem 0;
  }

  #CDBFlexTable .cdb-mobile-ready .cdb-mobile-row-actions button {
    min-height: 44px;
    max-width: 100%;
    font-size: 16px;
    white-space: normal;
  }

  #CDBFlexTable .cdb-mobile-ready .tab-content > .tab-plane:not([data-customer-a4-translations]) {
    order: 4;
    min-width: 0;
    max-width: 100%;
  }

  #CDBFlexTable .cdb-mobile-ready .cdb-mobile-a4-tab,
#CDBFlexTable .cdb-mobile-ready.d-none .cdb-mobile-navigation,
#CDBFlexTable .cdb-mobile-ready.d-none .cdb-mobile-row-actions,
#CDBFlexTable .cdb-mobile-ready.d-none .tab-content > .tab-plane:not([data-customer-a4-translations]) {
    display: none !important;
  }

  /* A4 is also visible while a different tab is active; suppress its duplicate outer heading. */
  #CDBFlexTable .cdb-mobile-ready [data-customer-a4-translations] .ks-customer-containers > .row:first-child {
    display: none !important;
  }
}
/* Keep shared status popups inside narrow viewports instead of clipping their leading text. */
@media (max-width: 767.98px) {
  #gritter-notice-wrapper {
    width: calc(100% - 1.5rem);
    right: 0.75rem;
  }

  /* Override the theme's fixed 23rem table-cell width within the responsive popup. */
  #gritter-notice-wrapper .gritter-with-image,
#gritter-notice-wrapper .gritter-without-image {
    width: auto;
    min-width: 0;
    overflow-wrap: anywhere;
  }
}
/* Shared save/status banners drop from the viewport edge on every mobile page. */
@media (max-width: 767.98px) {
  #showUpdateMessageForTable {
    /* The shared JS writes a navbar-height inline top; mobile must override it. */
    top: 0 !important;
    left: 0;
    right: 0;
    /* Keep save feedback above Bootstrap modals (1050) as well as navigation. */
    z-index: 1060 !important;
    pointer-events: none;
  }

  #showUpdateMessageForTable .alert {
    margin: 0;
    padding-top: env(safe-area-inset-top, 0px);
    max-height: 100vh;
    overflow-y: auto;
    overflow-wrap: anywhere;
    border-radius: 0 0 0.75rem 0.75rem;
    box-shadow: 0 4px 16px rgba(28, 55, 74, 0.18);
    pointer-events: auto;
    animation: belma-mobile-status-drop 180ms ease-out;
  }

  #showUpdateMessageForTable .alert .close {
    top: env(safe-area-inset-top, 0px);
  }
}
@keyframes belma-mobile-status-drop {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}
@media (max-width: 767.98px) and (prefers-reduced-motion: reduce) {
  #showUpdateMessageForTable .alert {
    animation: none;
  }
}
/* Keep the existing missing-invoice message as a native keyboard/touch action inside its shared banner. */
.belma-invoice-reminder .belma-invoice-reminder__action {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: start;
  cursor: pointer;
}

.belma-invoice-reminder .belma-invoice-reminder__action:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

/**
 * Applies the shared Belma SMS/email template workspace design within an opt-in scope.
 * @param {String} $scope CSS selector for the workspace root; pass :is(...) for multiple roots.
 * @return {CSS} Scoped card, disclosure, editor, subject/body preview and mobile rules.
 * Side effects: emits CSS only when included; preserves existing form/tab visibility utilities.
 * Callers must supply a root containing the existing Templates renderer markup.
 */
:is(#mypSMSTemplates, #mypEmailTemplates) {
  color: var(--belma-text);
  margin-inline: auto;
  max-width: 76rem;
  min-width: 0;
}

:is(#mypSMSTemplates, #mypEmailTemplates) .template {
  /* Existing cream/schedule surfaces and Bootstrap p-2 are important utilities. */
  background: var(--belma-surface) !important;
  border: 1px solid var(--belma-border);
  border-left: 3px solid var(--belma-primary);
  border-radius: 12px;
  box-shadow: 0 3px 12px rgba(28, 55, 74, 0.06);
  color: var(--belma-text) !important;
  display: grid;
  gap: 0.85rem;
  grid-template-columns: minmax(0, 1fr) auto;
  min-width: 0;
  padding: 1rem !important;
}

:is(#mypSMSTemplates, #mypEmailTemplates) .template > .row:first-child {
  align-items: center;
  justify-content: flex-start !important;
  min-width: 0;
}

:is(#mypSMSTemplates, #mypEmailTemplates) .template > .row:first-child > div {
  min-width: 0;
}

:is(#mypSMSTemplates, #mypEmailTemplates) .template h5 {
  color: var(--belma-primary-heading) !important;
  font-size: 1.05rem;
  font-weight: 600 !important;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

:is(#mypSMSTemplates, #mypEmailTemplates) .template > .row:nth-child(2) {
  align-items: center;
  padding: 0 !important;
}

:is(#mypSMSTemplates, #mypEmailTemplates) .template > .row:nth-child(2) > .btn {
  background: var(--belma-primary-soft);
  border-color: var(--belma-primary-border);
  color: var(--belma-primary-dark);
  font-weight: 600;
  min-height: 44px;
  padding: 0.55rem 0.85rem;
  white-space: normal;
}

:is(#mypSMSTemplates, #mypEmailTemplates) .template > .row:nth-child(2) > .btn:hover {
  background: var(--belma-primary);
  border-color: var(--belma-primary);
  color: var(--belma-primary-contrast);
}

:is(#mypSMSTemplates, #mypEmailTemplates) .template > .row:nth-child(2) > .btn:focus-visible {
  box-shadow: 0 0 0 3px var(--belma-focus);
  outline: 2px solid var(--belma-primary);
  outline-offset: 2px;
}

:is(#mypSMSTemplates, #mypEmailTemplates) .templates-form {
  border-top: 1px solid var(--belma-border);
  grid-column: 1/-1;
  min-width: 0;
  padding-top: 1rem;
}

/* Let the existing editor and preview wrap without retaining the empty desktop spacer column. */
:is(#mypSMSTemplates, #mypEmailTemplates) :is(.template-body, .template-subject) {
  gap: 1rem;
}

:is(#mypSMSTemplates, #mypEmailTemplates) :is(.template-body, .template-subject) > .col-md-6 {
  flex: 1 1 24rem;
  max-width: none;
  min-width: 0;
}

:is(#mypSMSTemplates, #mypEmailTemplates) :is(.template-body, .template-subject) > .col-md-2 {
  display: none;
}

:is(#mypSMSTemplates, #mypEmailTemplates) :is(.template-body, .template-subject) > .col-md-4 {
  flex: 1 1 16rem;
  max-width: none;
  min-width: 0;
}

:is(#mypSMSTemplates, #mypEmailTemplates) .email.editor {
  background: var(--belma-surface);
  border: 1px solid var(--belma-border);
  border-radius: 8px;
  min-width: 0;
}

:is(#mypSMSTemplates, #mypEmailTemplates) .email-editor {
  padding: 0.75rem;
}

:is(#mypSMSTemplates, #mypEmailTemplates) .note-editor {
  border-color: var(--belma-border);
  border-radius: 6px;
  max-width: 100%;
}

:is(#mypSMSTemplates, #mypEmailTemplates) .note-toolbar {
  background: var(--belma-primary-soft);
  border-bottom: 1px solid var(--belma-border);
}

:is(#mypSMSTemplates, #mypEmailTemplates) .note-editable .bg-data {
  background-color: var(--belma-primary-soft) !important;
  color: var(--belma-primary-dark) !important;
}

:is(#mypSMSTemplates, #mypEmailTemplates) .preview-template:is(.mobile, .laptop) {
  background: var(--belma-surface) !important;
  border: 1px solid var(--belma-border);
  border-radius: 8px;
  color: var(--belma-text);
  height: auto !important;
  max-width: 100% !important;
  min-height: 12rem;
  overflow-wrap: anywhere;
  padding: 1rem !important;
  width: 100%;
  word-break: normal !important;
}

:is(#mypSMSTemplates, #mypEmailTemplates) .template-preview-heading {
  background: var(--belma-primary-soft);
  border-bottom: 1px solid var(--belma-primary-border);
  border-radius: 8px;
  color: var(--belma-primary-heading);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 0.75rem;
  padding: 0.65rem 0.75rem;
}

:is(#mypSMSTemplates, #mypEmailTemplates) .template-preview-label {
  color: var(--belma-primary-heading);
  /* Bootstrap justify-content-center is important; align the email preview labels to the right. */
  justify-content: flex-end !important;
  text-align: right;
}

/* The subject example starts at one text line; inherited auto height lets wrapped content expand. */
:is(#mypSMSTemplates, #mypEmailTemplates) .template-subject .preview-template {
  line-height: 1.4;
  min-height: calc(1.4em + 1.5rem);
  padding: 0.75rem !important;
}

:is(#mypSMSTemplates, #mypEmailTemplates) .preview-template.mobile::before,
:is(#mypSMSTemplates, #mypEmailTemplates) .preview-template.mobile::after {
  display: none;
}

/* Share muted hint styling between explicitly guided subject and message editors. */
:is(#mypSMSTemplates, #mypEmailTemplates) .template-guided-editor .note-placeholder {
  color: var(--belma-muted);
}

/* Focus hides the hint immediately, overriding Summernote's normal inline visibility toggle. */
:is(#mypSMSTemplates, #mypEmailTemplates) .template-guided-editor .note-editing-area:focus-within .note-placeholder {
  display: none !important;
}

/* Emphasize the marked hint phrase while retaining the surrounding muted guidance. */
:is(#mypSMSTemplates, #mypEmailTemplates) .template-subject .note-placeholder strong {
  font-weight: 700;
  text-transform: uppercase;
}

@media screen and (max-width: 767.98px) {
  /* Flatten only the visual rows so both examples follow the editors; keep DOM ownership for save/preview. */
  :is(#mypSMSTemplates, #mypEmailTemplates) .templates-form:not(.d-none) {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  :is(#mypSMSTemplates, #mypEmailTemplates) :is(.template-subject, .template-body) {
    display: contents;
  }

  :is(#mypSMSTemplates, #mypEmailTemplates) :is(.template-subject, .template-body) > :is(.col-md-6, .col-md-4) {
    flex: 0 0 auto;
    width: 100%;
  }

  :is(#mypSMSTemplates, #mypEmailTemplates) .template-subject > .col-md-6 {
    order: 1;
  }

  :is(#mypSMSTemplates, #mypEmailTemplates) .template-body > .col-md-6 {
    order: 2;
  }

  :is(#mypSMSTemplates, #mypEmailTemplates) .template-subject > .col-md-4 {
    order: 3;
  }

  :is(#mypSMSTemplates, #mypEmailTemplates) .template-body > .col-md-4 {
    order: 4;
  }

  :is(#mypSMSTemplates, #mypEmailTemplates) .template {
    gap: 0.65rem;
    grid-template-columns: minmax(0, 1fr);
    padding: 0.85rem !important;
  }

  :is(#mypSMSTemplates, #mypEmailTemplates) .template > .row:nth-child(2) > .btn {
    text-align: left;
    width: 100%;
  }

  :is(#mypSMSTemplates, #mypEmailTemplates) .templates-form .btn {
    min-height: 44px;
  }

  /* Override Bootstrap w-50 and shared important field sizing only inside the mobile template editor. */
  :is(#mypSMSTemplates, #mypEmailTemplates) .templates-form .dropdown-toggle.w-50 {
    width: 100% !important;
  }

  /* Leave room for the subject guidance above the empty editor's 100px legacy height. */
  :is(#mypSMSTemplates, #mypEmailTemplates) .template-subject .note-editable {
    min-height: 12rem;
  }

  :is(#mypSMSTemplates, #mypEmailTemplates) .template-guided-editor .note-placeholder {
    font-size: 16px;
    line-height: 1.4;
  }

  :is(#mypSMSTemplates, #mypEmailTemplates) .templates-form .form-control,
:is(#mypSMSTemplates, #mypEmailTemplates) .templates-form .note-editable {
    font-size: 16px !important;
  }
}
/* Provider icons share a contained square; the existing map-button width !important remains authoritative. */
.belma-map-provider-icon {
  width: 1.5rem;
  height: 1.5rem;
  object-fit: contain;
  flex-shrink: 0;
  vertical-align: middle;
}

/* Bug reporting is emitted only for fs.belma.se and the approved a4 test origin. ID scopes win over shared form rules. */
#bugReport-header,
#bugReport-bottom,
#bugReportDialog .btn-danger {
  background: #b42332;
  border-color: #b42332;
  color: #fff;
}

#bugReport-header:hover,
#bugReport-bottom:hover,
#bugReportDialog .btn-danger:hover {
  background: #8e1b28;
  border-color: #8e1b28;
  color: #fff;
}

.bug-report-launcher {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 44px;
  max-width: 100%;
  padding: 0.65rem 0.9rem;
  white-space: normal;
  line-height: 1.35;
}

.be-top-header .be-user-nav > .bug-report-nav-item {
  display: flex;
  align-items: center;
  padding: 0;
  margin-right: 0.5rem;
}

.be-top-header .bug-report-header {
  max-width: 13rem;
  margin: 0.3rem 0;
}

#feedbackContainer.bug-report-footer {
  display: flex;
  justify-content: flex-end;
  position: relative;
  padding: 1rem;
  margin-top: 1rem;
}

#bugReportDialog {
  box-sizing: border-box;
  width: min(46rem, calc(100vw - 2rem));
  max-width: calc(100vw - 2rem);
  max-height: calc(100dvh - 2rem);
  margin: auto;
  padding: 0;
  border: 1px solid var(--belma-border, #cbd5e1);
  border-radius: 1rem;
  box-shadow: 0 1.5rem 4rem rgba(15, 23, 42, 0.24);
  font-family: var(--belma-font-sans, "Segoe UI", sans-serif);
  background: var(--belma-surface, #fff);
  color: var(--belma-text, #263746);
  overflow: auto;
  overscroll-behavior: contain;
  font-size: 16px;
}

#bugReportDialog::backdrop {
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(3px);
}

/* Shared theme rules can set display on form children; never let those expose another step. */
#bugReportDialog [hidden] {
  display: none !important;
}

#bugReportForm {
  margin: 0;
  padding: 1.5rem;
  min-width: 0;
}

#bugReportDialog .bug-report-heading,
#bugReportDialog .bug-report-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

#bugReportDialog .bug-report-heading {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--belma-border, #d8e1e8);
}

#bugReportDialog h2 {
  flex: 1 1 12rem;
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--belma-primary-heading, #244f70);
}

#bugReportDialog .bug-report-heading .fa-bug {
  padding: 0.6rem;
  margin-right: 0.35rem;
  border-radius: 0.65rem;
  background: var(--belma-primary-soft, #eaf3fb);
  color: var(--belma-primary-dark, #1b5f93);
}

#bugReportDialog h3,
#bugReportDialog h4 {
  margin: 1rem 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--belma-primary-heading, #244f70);
}

#bugReportDialog .bug-report-progress {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
  padding: 0;
  gap: 0.5rem;
  margin: 1.25rem 0;
  font-size: 0.9rem;
}

#bugReportDialog .bug-report-progress li {
  border: 1px solid var(--belma-border, #d8e1e8);
  border-radius: 0.65rem;
  padding: 0.7rem;
  margin: 0;
  background: var(--belma-canvas, #f5f7fa);
  color: var(--belma-text, #263746);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

#bugReportDialog .bug-report-progress [aria-current=step] {
  border-color: var(--belma-primary-border, #bdd5e7);
  background: var(--belma-primary-soft, #eaf3fb);
  color: var(--belma-primary-heading, #244f70);
  box-shadow: inset 0 3px 0 var(--belma-primary, #2879b9);
  font-weight: 700;
}

#bugReportDialog .bug-report-field {
  margin-bottom: 1.25rem;
  min-width: 0;
}

#bugReportDialog label {
  display: block;
  font-weight: 600;
  margin: 0 0 0.4rem;
}

#bugReportDialog input,
#bugReportDialog select,
#bugReportDialog textarea,
#bugReportDialog .btn {
  box-sizing: border-box;
  max-width: 100%;
  min-height: 44px;
  /* Override the shared .form-control font-size !important within this guide only. */
  font-size: 16px !important;
  line-height: 1.5;
}

/* Match the shared surface/accent tokens without changing native inputs or validation. */
#bugReportDialog .form-control {
  border: 1px solid var(--belma-border-strong, #b8c8d4);
  border-radius: 0.6rem;
  padding: 0.65rem 0.8rem;
  background: var(--belma-surface, #fff);
  color: var(--belma-text, #263746);
  box-shadow: none;
}

#bugReportDialog .form-control:focus {
  border-color: var(--belma-primary, #2879b9);
  box-shadow: 0 0 0 3px var(--belma-focus, rgba(40, 121, 185, 0.2));
}

#bugReportDialog select {
  height: auto;
  padding-right: 1.75rem;
}

#bugReportDialog textarea {
  width: 100%;
  min-height: 5rem;
  resize: vertical;
}

#bugReportDialog input[type=checkbox] {
  width: 24px;
  vertical-align: middle;
}

#bugReportDialog input[type=file] {
  width: 100%;
  white-space: normal;
}

#bugReportDialog .btn {
  white-space: normal;
  padding: 0.6rem 0.9rem;
  border-radius: 0.6rem;
  font-weight: 600;
}

#bugReportDialog .btn-light {
  background: var(--belma-surface, #fff);
  border-color: var(--belma-border-strong, #b8c8d4);
  color: var(--belma-text, #263746);
}

#bugReportDialog .btn-light:hover {
  background: var(--belma-canvas, #f5f7fa);
  border-color: var(--belma-primary-border, #bdd5e7);
}

/* Before/after image controls reuse the guide fields and collapse to one column on narrow screens. */
#bugReportDialog .bug-report-comparison {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

#bugReportDialog .bug-report-comparison > div {
  min-width: 0;
}

#bugReportDialog .bug-report-image-preview {
  display: block;
  max-width: 100%;
  max-height: 14rem;
  margin: 0.5rem 0 1rem;
  object-fit: contain;
  border: 1px solid var(--belma-border, #d9e2ec);
  border-radius: 0.5rem;
}

@media (max-width: 575.98px) {
  #bugReportDialog .bug-report-comparison {
    grid-template-columns: minmax(0, 1fr);
  }
}
#bugReportDialog .bug-report-help {
  margin: 0.4rem 0;
  font-size: 0.95rem;
  color: var(--belma-muted, #6b7d8c);
}

#bugReportDialog .bug-report-error,
#bugReportStatus:not(:empty) {
  padding: 0.65rem;
  border-left: 4px solid #b42332;
  margin: 0.5rem 0;
  background: #fff1f2;
  color: #8e1b28;
  overflow-wrap: anywhere;
}

#bugReportDialog [aria-invalid=true],
#bugReportDialog .form-control[aria-invalid=true]:focus {
  border-color: #b42332;
}

#bugReportDialog :focus-visible,
.bug-report-launcher:focus-visible {
  outline: 3px solid var(--belma-primary-dark, #1b5f93);
  outline-offset: 2px;
}

#bugReportDialog dd {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 0.3rem 0 1rem;
}

#bugReportDialog ol:not(.bug-report-progress) {
  padding-left: 1.6rem;
}

#bugReportDialog li {
  margin-bottom: 0.6rem;
}

#bugReportDialog .bug-report-actions {
  /* This is form navigation, not the dark site footer targeted by the global footer rule. */
  background-color: var(--belma-surface, #fff);
  color: inherit;
  font-family: inherit;
  border-top: 1px solid var(--belma-border, #cbd5e1);
  padding-top: 1rem;
  margin-top: 1.5rem;
}

/* Review reuses its existing groups; full answers remain wrapped and editable. */
#bugReportReview > div,
#bugReportContext {
  min-width: 0;
  padding: 1rem;
  margin: 0 0 1rem;
  border: 1px solid var(--belma-border, #d8e1e8);
  border-radius: 0.75rem;
  background: var(--belma-canvas, #f5f7fa);
}

#bugReportReview dl {
  margin: 0.8rem 0 0;
}

#bugReportDialog dt {
  color: var(--belma-primary-heading, #244f70);
  overflow-wrap: anywhere;
}

@media (max-width: 575.98px) {
  /* Keep the full caption beside the profile icon, without a floating overlay or an icon-only mobile control. */
  .be-top-header #bugReport-header {
    width: 112px;
    gap: 0.3rem;
    padding: 0.4rem;
    font-size: 12px;
  }

  .be-top-header:has(#bugReport-header) .be-navbar-header .navbar-brand {
    max-width: 75px;
  }

  #bugReportDialog {
    width: calc(100vw - 1rem);
    max-width: calc(100vw - 1rem);
    max-height: calc(100dvh - 1rem);
  }

  #bugReportForm {
    padding: 0.9rem;
  }

  #bugReportDialog .bug-report-progress {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #bugReportDialog .bug-report-actions .btn {
    flex: 1 1 7rem;
  }
}
#bugReportStatus[data-state=success] {
  border-color: #23724a;
  background: #effaf3;
  color: #175735;
}

/* Shared bulk selection keeps the original toggle in its search container, on a separate full-width row. */
.belma-filter-virtual-select.belma-filter-bulk-row .vscomp-search-container {
  display: flex;
  flex-wrap: wrap;
  height: auto;
  padding: 0;
}

.belma-filter-virtual-select.belma-filter-bulk-row .vscomp-search-container .vscomp-search-input {
  order: 0;
  flex: 1 1 100%;
  width: 100%;
  min-width: 0;
  /* Keep search compact now that the bulk checkbox occupies its own row. */
  height: 32px;
  padding: 0 0.75rem;
}

.belma-filter-virtual-select.belma-filter-bulk-row .vscomp-search-container .vscomp-toggle-all-button {
  order: 1;
  position: static;
  display: flex;
  align-items: center;
  flex: 0 0 100%;
  gap: 0.65rem;
  width: 100%;
  height: auto;
  min-height: 44px;
  margin: 0;
  padding: 0.65rem 0.75rem;
  border-top: 1px solid var(--belma-border);
  background: var(--belma-primary-soft);
  cursor: pointer;
}

.belma-filter-virtual-select.belma-filter-bulk-row .vscomp-toggle-all-button .belma-filter-bulk-caption {
  /* Searchable vendor controls normally hide their toggle caption; keep the translated text visible. */
  display: block !important;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.35;
  text-align: left;
}

.belma-filter-virtual-select.belma-filter-bulk-row .vscomp-toggle-all-button:hover,
.belma-filter-virtual-select.belma-filter-bulk-row .vscomp-toggle-all-button:focus-visible {
  background: var(--belma-surface, #fff);
  outline: 2px solid var(--belma-primary);
  outline-offset: -2px;
}

/* Schedule facets must distinguish long class/warehouse names without changing virtual row geometry. */
.belma-filter-virtual-select.belma-schedule-filter-readable .vscomp-option .vscomp-option-text {
  /* Fit wrapped labels inside the original compact row; short labels retain their previous spacing. */
  display: block;
  height: auto;
  min-width: 0;
  max-height: 32px;
  line-height: 1.35;
  /* The vendor loads asynchronously; this scoped rule must beat its single-line label styling. */
  white-space: normal !important;
  overflow-wrap: anywhere;
  text-overflow: clip;
  overflow-x: hidden;
  /* Exceptionally long names remain readable inside their fixed virtual row, including touch popups. */
  overflow-y: auto;
}

/* Keep minimum-length guidance visible while typing; stronger scope than inherited guide text. */
#bugReportDialog .bug-report-limit {
  display: block;
  color: #5f6b76;
}

/* Empty guide fields show the same translated guidance as their persistent help below. */
#bugReportDialog textarea.form-control::placeholder {
  color: #5f6b76;
  opacity: 1;
}

/* Lead queue: scoped ID beats navbar list/button defaults; hidden must beat their display utilities. */
#belmaLeadQueue {
  position: relative;
  display: flex;
  align-items: center;
  margin-right: 0.5rem;
  max-width: 12rem;
  min-width: 0;
}

#belmaLeadQueue[hidden],
#belmaLeadQueue [hidden] {
  display: none !important;
}

#belmaLeadQueue .lead-queue__toggle {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.25rem 0.5rem;
  min-height: 44px;
  max-width: 100%;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--belma-primary-dark);
  border-radius: 6px;
  background: var(--belma-primary);
  color: var(--belma-primary-contrast);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
}

/* A validated nonempty queue overrides the theme; unavailable styling below remains authoritative. */
#belmaLeadQueue.lead-queue--waiting .lead-queue__toggle {
  background: #b42332;
  border-color: #9b1c2b;
  color: #fff;
}

#belmaLeadQueue .lead-queue__oldest,
#belmaLeadQueue .lead-queue__clock {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

#belmaLeadQueue .lead-queue__toggle:focus-visible,
#belmaLeadQueue .lead-queue__choose:focus-visible,
#belmaLeadQueue a:focus-visible {
  outline: 3px solid #175cd3;
  outline-offset: 2px;
}

#belmaLeadQueue .lead-queue__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  z-index: 1050;
  width: 360px;
  max-width: calc(100vw - 24px);
  max-height: min(65vh, 500px);
  overflow-y: auto;
  padding: 0.75rem;
  background: #fff;
  border: 1px solid #dfb1b6;
  border-radius: 8px;
  box-shadow: 0 5px 18px rgba(30, 40, 50, 0.18);
  color: #263746;
  font-size: 14px;
  line-height: 1.4;
}

#belmaLeadQueue ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Native page-choice buttons retain the same layout and focus treatment as queue links. */
#belmaLeadQueue li a,
#belmaLeadQueue .lead-queue__choose {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-height: 44px;
  padding: 0.65rem 0.25rem;
  border-top: 1px solid #e5e7eb;
  color: #263746;
  white-space: normal;
  overflow-wrap: anywhere;
}

#belmaLeadQueue .lead-queue__choose {
  width: 100%;
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

#belmaLeadQueue .lead-queue__clock {
  color: #b42332;
  font-weight: 700;
}

#belmaLeadQueue.lead-queue--unavailable .lead-queue__toggle {
  background: #596579;
  border-color: #475467;
}

@media (max-width: 767.98px) {
  /* Reserve a separate row in the existing relative mobile navbar, so no content or profile control is covered. */
  .be-top-header:has(#belmaLeadQueue:not([hidden])) {
    padding-bottom: 52px;
  }

  .be-top-header .be-user-nav:has(#belmaLeadQueue) {
    position: static;
  }

  #belmaLeadQueue {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 4px;
    max-width: none;
    margin: 0;
  }

  #belmaLeadQueue .lead-queue__toggle {
    width: 100%;
    font-size: 16px;
  }

  #belmaLeadQueue .lead-queue__panel {
    left: 0;
    right: auto;
    width: 100%;
  }
}
/* Keep the existing bug launcher and profile in one vertically centered header row. */
.be-top-header .be-user-nav:has(#bugReport-header) {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  min-height: 60px;
  overflow: visible;
}

.be-top-header .be-user-nav > .bug-report-nav-item {
  flex: 0 0 auto;
  align-self: center;
  margin-right: 0.5rem;
}

/* The launcher already supplies the gap; override Bootstrap mx-2 to avoid doubling it. */
.be-top-header .be-user-nav:has(#bugReport-header) #profileImage {
  margin-left: 0 !important;
}

.be-top-header #bugReport-header {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: auto;
  max-width: 13rem;
  min-height: 44px;
  margin: 0;
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.2;
  text-align: left;
}

.be-top-header #bugReport-header > i {
  flex: 0 0 auto;
}

.be-top-header #bugReport-header > span {
  min-width: 0;
  overflow-wrap: anywhere;
}

@media (max-width: 575.98px) {
  /* Retain the translated caption and a 44px touch target beside the existing profile initials. */
  .be-top-header #bugReport-header {
    width: 116px;
    max-width: 116px;
    padding: 0.4rem 0.5rem;
    font-size: 12px;
  }
}
/* Cluster2432/original1779: shared invoice summaries need usable width below the existing mobile breakpoint.
   Desktop keeps the quarter-width, price-column-aligned summary. Only the two Bootstrap utilities need important. */
@media screen and (max-width: 767.98px) {
  .container-fluid.invce-container-group {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .invce-container-group .invce-price-summary-block {
    padding-left: 0;
    padding-right: 0;
  }

  .invce-container-group .invce-price-summary-block > .row > .w-25 {
    width: 100% !important;
    padding-right: 0 !important;
    min-width: 0;
  }

  .invce-container-group .invce-price-summary-block .text-primary > .d-flex > .text-right {
    min-width: 0;
    overflow-wrap: break-word;
  }
}
/* City search actions reuse the existing dropdown/search form, scoped away from editable sales rows. */
#SLDTable div.search > div.flex-fill.sld-city-search {
  /* Width utility classes clip flex cells; both axes must stay visible for the anchored menu. */
  overflow-x: visible;
  overflow-y: visible;
  align-self: flex-start;
}

#SLDTable .sld-city-search > div.dropdown-menu.sld-city-search-menu {
  width: max-content;
  min-width: 16rem !important;
  max-width: min(26rem, calc(100vw - 2rem));
  padding: 0.25rem;
  border: 1px solid var(--belma-border);
  border-radius: 0.5rem;
  background: var(--belma-surface, #fff);
  box-shadow: 0 6px 18px rgba(28, 55, 74, 0.18);
}

#SLDTable .sld-city-search-menu[hidden] {
  /* Hidden must beat Bootstrap .dropdown-menu.show after Escape, blur or an empty query. */
  display: none !important;
}

#SLDTable .sld-city-search-menu .sld-city-search-option {
  display: block;
  width: 100%;
  min-height: 40px;
  padding: 0.5rem 0.65rem;
  border: 0;
  border-radius: 0.25rem;
  background: transparent;
  color: var(--belma-text);
  font: inherit;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
  cursor: pointer;
}

#SLDTable .sld-city-search-menu .sld-city-search-option.active,
#SLDTable .sld-city-search-menu .sld-city-search-option:hover {
  background: var(--belma-primary-soft);
  color: var(--belma-primary-dark);
  outline: 1px solid var(--belma-primary);
}

/* Shared report chooser follows the CRM theme in both preview and email mode. */
#reportMailerModal .modal-dialog {
  width: calc(100% - 2rem);
  max-width: 90rem;
  max-height: calc(100% - 2rem);
  margin: 1rem auto;
}

#reportMailerModal .modal-content {
  border: 1px solid var(--belma-border);
  border-radius: 1rem;
  box-shadow: 0 1rem 3rem rgba(38, 55, 70, 0.18);
  overflow: hidden;
  color: var(--belma-text);
  background: var(--belma-surface);
}

#reportMailerModal .modal-header.ks-modal-header-blue {
  background-color: var(--belma-primary-soft) !important;
  color: var(--belma-primary-heading) !important;
  border-bottom: 1px solid var(--belma-primary-border-soft);
  padding: 1.125rem 1.25rem;
}

#reportMailerModal .modal-title {
  color: var(--belma-primary-heading);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.4;
}

#reportMailerModal .modal-header .close {
  color: var(--belma-primary-dark);
  opacity: 1;
  border-radius: 0.5rem;
}

#reportMailerModal .modal-body {
  background: var(--belma-canvas);
  padding: 1.25rem !important;
}

#reportMailerModal .report-template-section {
  background: var(--belma-surface);
  border: 1px solid var(--belma-border);
  border-radius: 0.75rem;
  padding: 0.75rem;
}

#reportMailerModal .report-template-section .custom-controls-stacked {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: 0.5rem;
}

#reportMailerModal .report-template-section .custom-control {
  margin: 0;
  padding: 0.5rem 0.75rem 0.5rem 2.25rem;
  border: 1px solid var(--belma-border);
  border-radius: 0.625rem;
  min-width: 0;
}

#reportMailerModal .report-template-section .custom-control-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
}

#reportMailerModal .report-template-section .btn-link {
  color: var(--belma-primary-dark);
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: left;
}

#reportMailerModal [data-report-print],
#reportMailerModal [data-report-preview] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 2rem;
  width: 2rem;
  height: 2rem;
  padding: 0 !important;
  min-width: 2rem;
  min-height: 2rem;
  border: 1px solid var(--belma-primary-border-soft);
  border-radius: 0.5rem;
  background: var(--belma-primary-soft);
}

#reportMailerModal [data-report-print] {
  margin-left: auto;
}

#reportMailerModal [data-report-print] > i,
#reportMailerModal [data-report-preview] > i {
  margin: 0 !important;
  line-height: 1;
}

/* PDF choices are direct actions in preview mode; package-row checkboxes remain available below. */
#reportMailerModal[data-report-preview-only="1"] .report-template-section .custom-control-input,
#reportMailerModal[data-report-preview-only="1"] .report-template-section .custom-control-label::before,
#reportMailerModal[data-report-preview-only="1"] .report-template-section .custom-control-label::after {
  display: none;
}

#reportMailerModal[data-report-preview-only="1"] .report-template-section .custom-control {
  padding-left: 0.75rem;
}

#reportMailerModal .modal-footer {
  background: var(--belma-surface);
  border-top: 1px solid var(--belma-border);
  padding: 0.875rem 1.25rem;
  gap: 0.5rem;
}

#reportMailerModal .modal-footer .modal-close {
  background: var(--belma-surface);
  color: var(--belma-text);
  border-color: var(--belma-border-strong);
  border-radius: 0.5rem;
}

#reportMailerModal .modal-footer .modal-close:hover {
  background: var(--belma-primary-soft);
  border-color: var(--belma-primary-border);
}

#reportMailerModal button:focus-visible,
#reportMailerModal a:focus-visible {
  outline: 2px solid var(--belma-primary);
  outline-offset: 2px;
}

@media (max-width: 575.98px) {
  #reportMailerModal .modal-dialog {
    width: calc(100% - 1rem);
    max-height: calc(100% - 1rem);
    margin: 0.5rem auto;
  }

  #reportMailerModal .modal-body {
    padding: 0.75rem !important;
  }
}
/* Theme ordinary shared confirmations and inventory edits; preserve other callers' explicit danger presentation.
   ID selectors and important spacing/color overrides beat legacy text-header, header and Bootstrap utilities. */
#simpleAnswerYesNoBox:is(.invte-edit-scope-modal, :not(.modal-full-color-danger)) .modal-dialog {
  width: calc(100% - 2rem) !important;
  max-width: 42rem;
  margin: 2rem auto;
}

#simpleAnswerYesNoBox:is(.invte-edit-scope-modal, :not(.modal-full-color-danger)) .modal-content {
  width: 100%;
  max-width: 100%;
  background: var(--belma-surface);
  color: var(--belma-text);
  border: 1px solid var(--belma-border);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 1rem 3rem rgba(38, 55, 70, 0.18);
}

#simpleAnswerYesNoBox:is(.invte-edit-scope-modal, :not(.modal-full-color-danger)) .modal-header {
  background-color: var(--belma-primary-soft) !important;
  color: var(--belma-primary-heading) !important;
  border-bottom: 1px solid var(--belma-primary-border-soft);
  padding: 0.75rem 1.25rem;
}

#simpleAnswerYesNoBox:is(.invte-edit-scope-modal, :not(.modal-full-color-danger)) .close {
  color: var(--belma-primary-heading) !important;
}

#simpleAnswerYesNoBox:is(.invte-edit-scope-modal, :not(.modal-full-color-danger)) #questionBody {
  padding: 1.5rem;
}

#simpleAnswerYesNoBox:is(.invte-edit-scope-modal, :not(.modal-full-color-danger)) #questionBody h2 {
  width: 100%;
  color: var(--belma-primary-heading);
  font-size: 1.4rem;
  line-height: 1.4;
  margin: 0 0 1rem !important;
}

#simpleAnswerYesNoBox:is(.invte-edit-scope-modal, :not(.modal-full-color-danger)) #questionBody > div:has(> img.d-none) {
  display: none !important;
}

#simpleAnswerYesNoBox:is(.invte-edit-scope-modal, :not(.modal-full-color-danger)) #questionBody > div:has(> img) {
  margin: 0.5rem 0 1rem !important;
}

#simpleAnswerYesNoBox:is(.invte-edit-scope-modal, :not(.modal-full-color-danger)) #questionBody h4 {
  display: block !important;
  color: var(--belma-text) !important;
  padding: 0 !important;
  margin: 0;
  font-size: 1.05rem;
  font-weight: 400 !important;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

#simpleAnswerYesNoBox:is(.invte-edit-scope-modal, :not(.modal-full-color-danger)) .modal-footer {
  flex-wrap: wrap;
  gap: 0.75rem;
  border-top: 1px solid var(--belma-border);
  padding: 1rem 1.5rem !important;
}

#simpleAnswerYesNoBox:is(.invte-edit-scope-modal, :not(.modal-full-color-danger)) .modal-footer > div {
  flex: 1 1 15rem;
  margin: 0 !important;
}

#simpleAnswerYesNoBox:is(.invte-edit-scope-modal, :not(.modal-full-color-danger)) .modal-footer .btn {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 0.5rem;
  white-space: normal;
  overflow-wrap: anywhere;
}

#simpleAnswerYesNoBox:is(.invte-edit-scope-modal, :not(.modal-full-color-danger)) #answerYes {
  background: var(--belma-primary);
  border-color: var(--belma-primary);
  color: var(--belma-primary-contrast);
}

#simpleAnswerYesNoBox:is(.invte-edit-scope-modal, :not(.modal-full-color-danger)) #answerYes:hover {
  background: var(--belma-primary-dark);
  border-color: var(--belma-primary-dark);
}

#simpleAnswerYesNoBox:is(.invte-edit-scope-modal, :not(.modal-full-color-danger)) #answerNo {
  background: var(--belma-surface);
  border-color: var(--belma-border-strong);
  color: var(--belma-text);
}

#simpleAnswerYesNoBox:is(.invte-edit-scope-modal, :not(.modal-full-color-danger)) #answerNo:hover {
  background: var(--belma-primary-soft);
  border-color: var(--belma-primary);
}

#simpleAnswerYesNoBox:is(.invte-edit-scope-modal, :not(.modal-full-color-danger)) .modal-footer .btn:focus-visible {
  outline: 2px solid var(--belma-primary);
  outline-offset: 2px;
}

/* Hide the original outer row and owned duplicates during package focus; keep the return banner and workspace visible. */
#invtpParentContainer [data-invte-package-mother="true"],
#invtpParentContainer [data-invte-package-muted="true"],
#invtpParentContainer [data-invte-package-overview="true"],
#invtpParentContainer .invte-package-return[hidden] {
    display: none !important;
}
#invtpParentContainer .invte-package-return {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0.65rem 0.75rem;
    margin-top: 0.75rem;
    color: var(--belma-text);
    background-color: var(--belma-primary-soft);
    border: 1px solid var(--belma-primary-border-soft);
    border-radius: 0.65rem 0.65rem 0 0;
}
#invtpParentContainer [data-invte-package-details="true"] {
    border-left: 1px solid var(--belma-primary-border-soft) !important;
    border-right: 1px solid var(--belma-primary-border-soft) !important;
    border-bottom: 1px solid var(--belma-primary-border-soft) !important;
    border-radius: 0 0 0.65rem 0.65rem;
}

/* Family hover shares the theme surface and inset stripe without changing row selection or widths. */
#invtpParentContainer .invte-flex-table > .invte-row[data-invte-package-hover="true"] {
    box-shadow: inset 3px 0 0 var(--belma-primary) !important;
}
#invtpParentContainer .invte-flex-table > .invte-row[data-invte-package-hover="true"]:not(.warning):not(.table-row-selected):not(.invte-row-selected) {
    background-color: var(--belma-primary-soft) !important;
}

/* Native attribute rows share the measured label height without changing control ownership. */
#invtpParentContainer .invte-tab-container .invtp-form-group > label {
    display: block;
    min-height: var(--invte-field-label-height, 0px);
}

/* Join an opened child inventory row to its own original detail card without wrapping or moving fields. */
#invtpParentContainer .invte-flex-table .invte-flex-table > .invte-row[data-invte-details-open="true"],
#invtpParentContainer .invte-flex-table .invte-flex-table > [data-invte-row-details="true"] {
    border-left: 1px solid var(--belma-primary-border-soft) !important;
    border-right: 1px solid var(--belma-primary-border-soft) !important;
}
#invtpParentContainer .invte-flex-table .invte-flex-table > .invte-row[data-invte-details-open="true"]:not(.warning):not(.table-row-selected):not(.invte-row-selected),
#invtpParentContainer .invte-flex-table .invte-flex-table > [data-invte-row-details="true"] {
    background-color: var(--belma-primary-soft) !important;
}
#invtpParentContainer .invte-flex-table .invte-flex-table > .invte-row[data-invte-details-open="true"] {
    border-top: 1px solid var(--belma-primary-border-soft) !important;
    border-radius: 0.65rem 0.65rem 0 0;
}
#invtpParentContainer .invte-flex-table .invte-flex-table > [data-invte-row-details="true"] {
    border-bottom: 1px solid var(--belma-primary-border-soft) !important;
    border-radius: 0 0 0.65rem 0.65rem;
    margin-bottom: 0.75rem;
}

/* Crisp card edges and one restrained row accent identify the active editor. */
#invtpParentContainer [data-invte-sidebar-card="true"],
#invtpParentContainer .invte-flex-table > .invte-row[data-invte-sidebar-row="true"] {
    border: 1px solid var(--belma-border) !important;
    border-radius: 0.375rem;
    box-shadow: none;
}
#invtpParentContainer .invte-flex-table > .invte-row[data-invte-sidebar-row="true"]:not(.warning):not(.table-row-selected):not(.invte-row-selected) {
    background-color: var(--belma-primary-soft) !important;
}
#invtpParentContainer [data-invte-sidebar-card="true"] {
    background-color: var(--belma-surface, #fff) !important;
    border-top: 3px solid var(--belma-primary) !important;
    padding: 0.75rem !important;
    margin-top: 0.5rem;
}

/* Keep native card ancestry while aligning the selected card beside its owning row. */
@media (min-width: 768px) {
    #invtpParentContainer [data-invte-sidebar-host="true"] {
        min-height: var(--invte-sidebar-height, 0px);
    }
    #invtpParentContainer [data-invte-sidebar-owner="true"] {
        height: 0 !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        visibility: hidden;
    }
    #invtpParentContainer [data-invte-sidebar-positioned="true"] {
        position: absolute;
        top: var(--invte-sidebar-top, 0px);
        left: var(--invte-sidebar-left, 0px);
        width: var(--invte-sidebar-width, 100%) !important;
        max-width: none !important;
        margin: 0 !important;
        visibility: visible;
        z-index: 1;
    }
    /* Overlap the rounded card corner so the shared accent stays continuous across the gutter. */
    #invtpParentContainer [data-invte-sidebar-positioned="true"][data-invte-sidebar-card="true"]::after {
        content: "";
        position: absolute;
        top: -3px;
        right: -0.5rem;
        width: calc(0.5rem + 0.375rem + 1px);
        height: 3px;
        background: var(--belma-primary);
        pointer-events: none;
    }
    #invtpParentContainer .invte-flex-table > .invte-row[data-invte-sidebar-row="true"] {
        position: relative;
        border-top: 3px solid var(--belma-primary) !important;
        border-left: 2px solid var(--belma-primary) !important;
        border-radius: 0.375rem;
    }
    /* Paint the accent above opaque/sticky cells and their focus layers without intercepting controls. */
    #invtpParentContainer .invte-flex-table > .invte-row[data-invte-sidebar-row="true"]::before {
        content: "";
        position: absolute;
        top: -3px;
        left: 0;
        right: 0;
        height: 3px;
        background: var(--belma-primary);
        z-index: 10;
        pointer-events: none;
    }
}

/* Hide the repeated outer summary rows while retaining their nodes for existing price updates and sibling traversal. */
#invtpParentContainer .invte-parent-flex-table:not(.invte-flex-table .invte-parent-flex-table) > .invte-price-summary-row {
  display: none !important;
}

/* SMS automation keeps activity conditions, recipients and message controls in their original forms. */
[data-sms-workflow-template] .sms-workflow-section {
  border-bottom: 1px solid var(--belma-border);
  color: var(--belma-primary-heading);
  font-size: 1rem;
  font-weight: 700;
  margin: 1rem 0 0.5rem;
  padding: 0.5rem 0;
}

[data-sms-workflow-template] .sms-workflow-summary {
  background: var(--belma-primary-soft);
  border: 1px solid var(--belma-primary-border-soft);
  border-radius: 0.5rem;
  color: var(--belma-text);
  margin: 1rem 0 0;
  padding: 0.75rem;
  overflow-wrap: anywhere;
}

[data-sms-workflow-template] :is([data-template-company-scope], .ts-automate-row) > .col-md-3 {
  display: none;
}

[data-sms-workflow-template] :is([data-template-company-scope], .ts-automate-row) > .col-md-6 {
  flex: 1 1 0;
  max-width: 100%;
  min-width: 0;
}

/* Contextual SMS/email help stays outside editors and never overrides form visibility. */
[data-sms-workflow-template] .workflow-scope-info {
  padding: 0.75rem;
  background: var(--belma-primary-soft);
  border-left: 3px solid var(--belma-primary);
  border-radius: 0.35rem;
  color: var(--belma-text);
}

:is(.atp-workflow-email-containers, .atp-workflow-sms-containers) .workflow-field-help {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  margin: 0 0.25rem;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--belma-primary-heading);
  font-size: 1rem;
  vertical-align: middle;
  flex-shrink: 0;
  cursor: pointer;
}

:is(.atp-workflow-email-containers, .atp-workflow-sms-containers) .workflow-field-help:hover,
:is(.atp-workflow-email-containers, .atp-workflow-sms-containers) .workflow-field-help:focus-visible {
  background: var(--belma-primary-soft);
  outline: 2px solid var(--belma-primary);
  outline-offset: 1px;
}

/* A separate leading selection column leaves the existing action and data cells intact. */
#invtpParentContainer .invte-selection-cell,
.table-row-selection-root .table-selection-cell,
.table-row-selection-root[data-course-row-selection] #ep_admin_courses_page_form > .flex-table-container > .ep-c-row.new::before {
  display: flex;
  flex: 0 0 3rem;
  width: 3rem;
  align-self: flex-start;
  align-items: flex-start;
  justify-content: center;
}

/* Reserve the shared selection width for the non-selectable creation row only in the desktop table layout. */
@media screen and (min-width: 768px) {
  .table-row-selection-root[data-course-row-selection] #ep_admin_courses_page_form > .flex-table-container > .ep-c-row.new::before {
    content: "";
  }
}
#invtpParentContainer .invte-selection-toolbar,
.table-row-selection-root .table-selection-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  padding: 0.75rem;
  margin-bottom: 0.75rem;
  border: 1px solid var(--belma-border);
  border-radius: 0.5rem;
  background: var(--belma-surface);
}

#invtpParentContainer .invte-selection-toggle,
#invtpParentContainer .invte-row-selection,
.table-row-selection-root .table-row-selection {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  min-width: 2.75rem;
  margin: 0;
  cursor: pointer;
}

#invtpParentContainer [data-invte-row-select],
#invtpParentContainer [data-invte-select-all],
.table-row-selection-root .table-row-select {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--belma-primary);
}

/* A left accent avoids doubled horizontal frames; the themed fill stays visible over striping and hover. */
#invtpParentContainer .invte-row-selected,
.table-row-selection-root .table-row-selected,
.table-row-selection-root div.flex-table-container > div.table-row-selected:hover {
  background-color: var(--belma-primary-soft) !important;
  box-shadow: inset 3px 0 0 var(--belma-primary);
}

/* The original inventory relation modal uses CRM theme tokens; its ID scope wins over legacy important utilities. */
#SECSEPopUp.invte-relations-modal .modal-dialog {
  width: calc(100% - 2rem);
  max-width: 58rem;
  margin: 1rem auto;
}

#SECSEPopUp.invte-relations-modal .modal-content {
  border: 1px solid var(--belma-border);
  border-radius: 1rem;
  overflow: hidden;
  background: var(--belma-surface);
  color: var(--belma-text);
  box-shadow: 0 1rem 3rem rgba(38, 55, 70, 0.18);
}

#SECSEPopUp.invte-relations-modal .modal-header.ks-modal-header-blue {
  background-color: var(--belma-primary-soft) !important;
  color: var(--belma-primary-heading) !important;
  border-bottom: 1px solid var(--belma-primary-border-soft);
}

#SECSEPopUp.invte-relations-modal .modal-title {
  color: var(--belma-primary-heading);
  font-size: 1.25rem;
  line-height: 1.4;
}

#SECSEPopUp.invte-relations-modal .modal-body {
  background: var(--belma-canvas);
  padding: 1.25rem;
}

#SECSEPopUp.invte-relations-modal .relation-editor,
#SECSEPopUp.invte-relations-modal .relation-current > div {
  background: var(--belma-surface);
  border: 1px solid var(--belma-border);
  border-radius: 0.75rem;
  padding: 1rem;
  min-width: 0;
}

#SECSEPopUp.invte-relations-modal .relation-review {
  background: var(--belma-primary-soft);
  border-left: 3px solid var(--belma-primary);
  border-radius: 0.35rem;
  padding: 0.75rem;
}

#SECSEPopUp.invte-relations-modal .relation-scope,
#SECSEPopUp.invte-relations-modal .relation-review,
#SECSEPopUp.invte-relations-modal .relation-current,
#SECSEPopUp.invte-relations-modal .relation-choices .btn {
  overflow-wrap: anywhere;
  white-space: normal;
}

#SECSEPopUp.invte-relations-modal .relation-choices {
  display: flex;
  flex-direction: column;
  max-height: 18rem;
  overflow-y: auto;
}

/* Keep the date action next to the flexible search field within narrow modal columns. */
#SECSEPopUp.invte-relations-modal .relation-search-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: stretch;
}

#SECSEPopUp.invte-relations-modal .relation-search-tools > .form-control {
  flex: 1 1 10rem;
  width: 0;
  min-width: 0;
}

#SECSEPopUp.invte-relations-modal .relation-search-tools > .btn {
  flex: 0 0 auto;
  margin: 0;
}

#SECSEPopUp.invte-relations-modal .relation-choices > .btn {
  flex-shrink: 0;
  width: 100%;
}

#SECSEPopUp.invte-relations-modal .relation-current .bg-dark-cream {
  background-color: var(--belma-surface) !important;
}

#SECSEPopUp.invte-relations-modal .relation-current .text-header {
  color: var(--belma-text) !important;
}

#SECSEPopUp.invte-relations-modal .relation-current .i64,
#SECSEPopUp.invte-relations-modal .relation-current .pt-5 {
  display: none;
}

#SECSEPopUp.invte-relations-modal .relation-current .card {
  width: 100%;
  min-width: 0;
  border-radius: 0.5rem;
}

#SECSEPopUp.invte-relations-modal .relation-current .col-md-4,
#SECSEPopUp.invte-relations-modal .relation-current .col-md-8 {
  flex: 0 0 100%;
  max-width: 100%;
}

/* Destination review keeps native package bars and row cards, with list columns hidden only after a card loads. */
#SECSEPopUp.invte-relations-modal [data-relation-orders-tables] .invte-container-group {
  padding: 0;
  min-width: 0;
}
#SECSEPopUp.invte-relations-modal [data-relation-orders-tables] .invte-container-group > .row:first-child > :empty {
  display: none !important;
}
#SECSEPopUp.invte-relations-modal [data-relation-orders-tables] .invte-container-group > .row:first-child > .col-md-4 {
  flex: 1 1 100%;
  max-width: 100%;
}
#SECSEPopUp.invte-relations-modal [data-relation-orders-tables] .invte-toggle-button {
  width: 100%;
  margin: 0 !important;
  padding: 0.9rem 1rem !important;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
  border: 1px solid var(--belma-border) !important;
  border-left: 4px solid var(--belma-primary) !important;
  border-radius: 0.6rem;
  background-color: var(--belma-surface) !important;
  color: var(--belma-primary-heading) !important;
  box-shadow: 0 2px 5px rgba(38, 55, 70, 0.06);
}
#SECSEPopUp.invte-relations-modal [data-relation-orders-tables] .invte-toggle-button[aria-expanded="true"] {
  background-color: var(--belma-primary-soft) !important;
}
#SECSEPopUp.invte-relations-modal [data-relation-orders-tables] .invte-toggle-button:focus-visible {
  outline: 2px solid var(--belma-primary);
  outline-offset: 2px;
}
#SECSEPopUp.invte-relations-modal [data-relation-orders-tables] .invte-container {
  margin: 0.5rem 0 !important;
  padding: 0;
}
#SECSEPopUp.invte-relations-modal [data-relation-orders-tables] .flex-table-container > .ftbl-header,
#SECSEPopUp.invte-relations-modal [data-relation-orders-tables] .invte-price-summary-row,
#SECSEPopUp.invte-relations-modal [data-relation-orders-tables] .invte-row[data-relation-order-card] > .flex-fill:not(.icons) {
  display: none !important;
}
#SECSEPopUp.invte-relations-modal [data-relation-orders-tables] .invte-row {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  border: 1px solid var(--belma-border);
  border-radius: 0.6rem;
  padding: 0.5rem !important;
  background-color: var(--belma-surface) !important;
}
#SECSEPopUp.invte-relations-modal [data-relation-orders-tables] .invte-row > .flex-fill,
#SECSEPopUp.invte-relations-modal [data-relation-orders-tables] .invte-tab-container .form-group {
  flex: 1 1 15rem !important;
  max-width: 100%;
  min-width: 0 !important;
  width: auto !important;
}
#SECSEPopUp.invte-relations-modal [data-relation-orders-tables] .relation-order-row-title {
  flex: 1 1 auto;
  padding: 0.5rem;
  font-weight: 600;
  color: var(--belma-primary-heading);
}
#SECSEPopUp.invte-relations-modal [data-relation-orders-tables] .invte-row > .icons {
  flex: 0 1 auto !important;
}
#SECSEPopUp.invte-relations-modal [data-relation-orders-tables] .invte-row:not([data-relation-order-card]) > .flex-fill > label:not(.custom-control) {
  display: block;
  color: var(--belma-primary-heading);
  font-weight: 600;
}
#SECSEPopUp.invte-relations-modal [data-relation-orders-tables] .invte-tab-container {
  padding: 0.75rem !important;
  border: 1px solid var(--belma-border);
  border-radius: 0.6rem;
  background: var(--belma-surface);
}
#SECSEPopUp.invte-relations-modal [data-relation-orders-tables] .invte-tab-container .container {
  max-width: 100%;
  padding: 0;
}
#SECSEPopUp.invte-relations-modal .relation-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.75rem;
  padding-top: 1.25rem;
}

#SECSEPopUp.invte-relations-modal [hidden] {
  display: none !important;
}

@media (max-width: 575.98px) {
  #SECSEPopUp.invte-relations-modal .modal-dialog {
    width: calc(100% - 1rem);
    margin: 0.5rem auto;
  }

  #SECSEPopUp.invte-relations-modal .modal-body {
    padding: 0.75rem;
  }

  #SECSEPopUp.invte-relations-modal .relation-actions > .btn {
    flex: 1 1 100%;
  }
}
/* Compact before/after summaries reuse the same review surface and keep original detailed cards collapsed. */
#SECSEPopUp.invte-relations-modal .relation-summaries {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

#SECSEPopUp.invte-relations-modal .relation-summaries.relation-has-changes {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#SECSEPopUp.invte-relations-modal .relation-summary-row {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  gap: 0.4rem;
  padding-top: 0.45rem;
  line-height: 1.45;
}

#SECSEPopUp.invte-relations-modal .relation-summary-label {
  font-weight: 600;
  color: var(--belma-primary-heading);
}

#SECSEPopUp.invte-relations-modal .relation-summary-value {
  min-width: 0;
  overflow-wrap: anywhere;
}

/* Row actions wrap within the existing summary grid; the hidden search panel keeps its scoped important rule. */
#SECSEPopUp.invte-relations-modal .relation-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.4rem;
}

#SECSEPopUp.invte-relations-modal .relation-row-actions > .btn {
  min-height: 2.25rem;
  max-width: 100%;
  margin: 0;
}

#SECSEPopUp.invte-relations-modal .relation-open {
  display: inline;
  overflow-wrap: anywhere;
  text-decoration: underline;
}

#SECSEPopUp.invte-relations-modal .relation-open:focus-visible {
  outline: 2px solid var(--belma-primary);
  outline-offset: 2px;
}

/* Identity guidance is a separate block, never a form-control or a validation error. */
div.belma-identity-hint {
  flex: 0 0 100%;
  min-width: 0;
  margin: 0.35rem 0;
  padding: 0.5rem 0.65rem;
  border-left: 3px solid #2879b9;
  border-radius: 0.25rem;
  background: #eaf3fb;
  color: var(--belma-text);
  font-family: var(--belma-font-sans);
  font-size: var(--belma-font-caption);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

/* Reuse the existing soft status palette while retaining the shared dark reading color. */
div.belma-identity-hint[data-state=excess] {
  border-left-color: var(--belma-warning);
  background: #fff3cd;
}

div.belma-identity-hint[data-state=valid_person],
div.belma-identity-hint[data-state=valid_org] {
  border-left-color: var(--belma-success);
  background: #effaf3;
}

div.belma-identity-hint[data-state=invalid] {
  border-left-color: var(--belma-danger);
  background: #fff1f2;
}

#SECSEPopUp.invte-relations-modal .relation-details > summary {
  cursor: pointer;
  font-weight: 600;
  padding: 0.5rem 0;
  overflow-wrap: anywhere;
}

#SECSEPopUp.invte-relations-modal .relation-customer-choice {
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  background: var(--belma-primary-soft);
  overflow-wrap: anywhere;
}

/* Keep the default PDF and independent catalogue actions at equal height without Bootstrap's joined borders. */
/* Raise the open chooser's row and action cell together: a menu cannot escape its focused cell's stacking context. */
div.flex-table-container div.flex-table-body-row:has(div.pdf-template-chooser.show),
div.flex-table-container div.flex-table-body-row > div.flex-fill:has(div.pdf-template-chooser.show) {
  position: relative;
  z-index: 16;
}

div.pdf-template-chooser {
  display: inline-flex;
  align-items: stretch;
  gap: 0.25rem;
  flex: 0 0 auto;
  align-self: stretch;
}

div.pdf-template-chooser > button.pdf-template-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 2.75rem;
}

/* Keep the combined PDF trigger as compact as the neighboring icon actions without changing disclosure. */
div.pdf-template-chooser > button.pdf-template-action-toggle {
  width: auto;
}

div.pdf-template-chooser .pdf-template-action-icon {
  color: #B03A2E;
  font-size: 1rem;
}

div.pdf-template-chooser > button.pdf-template-action-toggle > .fa-chevron-down {
  display: none;
}

div.pdf-template-chooser:has(> .pdf-template-action-toggle) > .dropdown-menu {
  min-width: 17rem;
  max-width: calc(100vw - 2rem);
  max-height: 70vh;
  padding: 0.4rem;
  border: 1px solid var(--belma-border);
  border-radius: 0.75rem;
  background: var(--belma-surface);
  box-shadow: 0 0.5rem 1.5rem rgba(38, 55, 70, 0.16);
}

div.pdf-template-chooser:has(> .pdf-template-action-toggle) .dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.75rem;
  border-radius: 0.4rem;
  color: var(--belma-text);
}

div.pdf-template-chooser:has(> .pdf-template-action-toggle) .dropdown-item:hover,
div.pdf-template-chooser:has(> .pdf-template-action-toggle) .dropdown-item:focus {
  color: var(--belma-primary-dark);
  background: var(--belma-primary-soft);
}

/* Reuse the existing PDF glyph for three overlapping pages; the icon never intercepts button clicks. */
div.pdf-template-chooser .pdf-template-fan {
  display: block;
  position: relative;
  width: 1.8rem;
  height: 1.5rem;
  pointer-events: none;
}

div.pdf-template-chooser .pdf-template-fan > i {
  position: absolute;
  left: 50%;
  top: 50%;
  font-size: 1.2rem;
  line-height: 1;
  color: #B03A2E;
  background: var(--belma-surface);
  border-radius: 0.1rem;
  transform-origin: 50% 90%;
  transform: translate(-50%, -50%);
}

div.pdf-template-chooser .pdf-template-fan > i:first-child {
  transform: translate(-50%, -50%) rotate(-24deg);
}

div.pdf-template-chooser .pdf-template-fan > i:nth-child(2) {
  transform: translate(-50%, -50%) rotate(24deg);
}

div.pdf-template-chooser > .dropdown-menu {
  overflow-y: auto;
}

div.pdf-template-chooser > .dropdown-menu > .dropdown-item,
div.pdf-template-chooser > .dropdown-menu > .dropdown-item-text,
div.pdf-template-chooser .pdf-template-catalogue > .dropdown-item,
div.pdf-template-chooser .pdf-template-catalogue > .dropdown-item-text {
  white-space: normal;
  overflow-wrap: anywhere;
}

@media (max-width: 575.98px) {
  #SECSEPopUp.invte-relations-modal .relation-summaries,
#SECSEPopUp.invte-relations-modal .relation-summaries.relation-has-changes {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.5rem;
  }

  #SECSEPopUp.invte-relations-modal .relation-summary-row {
    grid-template-columns: 4rem minmax(0, 1fr);
  }
}
/* Campaign-only filter presentation; controls retain their existing values, names and handlers. */
/* Text nodes retain explicit line boundaries without inheriting the generic small gray alert treatment. */
p.mcc-selection-summary {
  margin: 0.75rem 0;
  padding: 0.875rem 1rem;
  border: 1px solid var(--belma-border);
  border-left: 3px solid var(--belma-primary);
  border-radius: 0.5rem;
  background: var(--belma-surface);
  color: var(--belma-text);
  font-family: var(--belma-font-sans);
  font-size: var(--belma-font-label);
  line-height: 1.65;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.mcc-filter-group .mcc-filter-toggle::before {
  display: none;
}

.mcc-filter-group .mcc-filter-toggle {
  font-family: var(--belma-font-sans);
  white-space: normal;
}

.mcc-filter-group .mcc-advanced-selection {
  width: 100%;
  margin: 0.75rem;
  padding: 0.75rem;
  border: 1px solid var(--belma-border);
  border-radius: 0.5rem;
  background: var(--belma-surface);
  color: var(--belma-text);
}

.mcc-filter-group .mcc-advanced-selection > summary {
  cursor: pointer;
  color: var(--belma-primary-dark);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.mcc-filter-group .mcc-advanced-selection > summary:focus-visible {
  outline: 2px solid var(--belma-primary);
  outline-offset: 3px;
}

#mcc-period-comparison {
  margin: 1rem 0;
  padding: 1rem;
  border: 1px solid var(--belma-border);
  border-radius: 0.5rem;
  background: var(--belma-surface);
  color: var(--belma-text);
}
#mcc-period-comparison > summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
}
#mcc-period-comparison p {
  white-space: pre-line;
  font-size: 0.9rem;
  margin: 0.75rem 0;
}
#mcc-period-comparison > button {
  margin: 0.25rem 0.5rem 0.25rem 0;
}
#mcc-period-comparison .mcc-comparison-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
#mcc-period-comparison .mcc-comparison-controls > fieldset {
  grid-column: 1;
}
#mcc-period-comparison .mcc-comparison-more-periods {
  grid-column: 1;
  justify-self: start;
}
#mcc-period-comparison .mcc-comparison-more-periods[hidden] {
  display: none !important;
}
#mcc-period-comparison .mcc-comparison-campaigns {
  grid-column: 1;
}
#mcc-period-comparison .mcc-comparison-campaigns > .belma-filter-virtual-select {
  width: 100%;
  max-width: 100%;
}
#mcc-period-comparison .mcc-comparison-campaigns > p {
  margin-bottom: 0;
}
#mcc-period-comparison .mcc-comparison-groups {
  margin-top: 0.75rem;
  padding: 0.65rem;
  border: 1px solid var(--belma-border);
  border-radius: 0.5rem;
  background: var(--belma-primary-soft);
}
#mcc-period-comparison .mcc-comparison-groups summary {
  display: list-item;
  list-style-position: inside;
  cursor: pointer;
  color: var(--belma-primary-dark);
  font-weight: 600;
}
#mcc-period-comparison .mcc-comparison-groups summary:focus-visible {
  outline: 2px solid var(--belma-primary);
  outline-offset: 2px;
}
#mcc-period-comparison .mcc-comparison-groups > p {
  margin: 0.5rem 0;
}
#mcc-period-comparison .mcc-comparison-groups .mcc-comparison-group-list {
  max-height: 22rem;
  overflow-y: auto;
  padding: 0.25rem;
}
#mcc-period-comparison .mcc-comparison-groups .mcc-comparison-campaign-group {
  padding: 0.5rem;
  border-bottom: 1px solid var(--belma-border);
  background: var(--belma-surface);
}
#mcc-period-comparison .mcc-comparison-groups .mcc-comparison-campaign-group > div {
  padding-left: 1.25rem;
}
#mcc-period-comparison .mcc-comparison-groups label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.3rem 0;
  margin: 0;
  cursor: pointer;
  overflow-wrap: anywhere;
}
#mcc-period-comparison .mcc-comparison-groups input[type=checkbox] {
  flex: 0 0 auto;
  width: auto;
  margin-top: 0.2rem;
}
#mcc-period-comparison .mcc-comparison-groups label > span:last-child:not(:first-of-type) {
  margin-left: auto;
  font-variant-numeric: tabular-nums;
}
#mcc-period-comparison .mcc-comparison-campaign-result {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--belma-border);
}
#mcc-period-comparison .mcc-comparison-campaign-result > h3 {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--belma-primary-dark);
  overflow-wrap: anywhere;
}
@media (max-width: 767.98px) {
  #mcc-period-comparison .mcc-comparison-controls {
    grid-template-columns: minmax(0, 1fr);
  }
}
#mcc-period-comparison .mcc-comparison-metrics {
  grid-column: 1;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
}
#mcc-period-comparison .mcc-comparison-metrics > p {
  margin: 0.5rem 0 0;
}
#mcc-period-comparison .mcc-comparison-metrics > .belma-filter-virtual-select {
  width: 100%;
  max-width: 100%;
}
#mcc-period-comparison fieldset {
  min-width: 0;
}
#mcc-period-comparison legend {
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}
#mcc-period-comparison .mcc-comparison-matrix {
  overflow-x: auto;
}
#mcc-period-comparison table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  margin-top: 0.75rem;
  font-size: 0.9rem;
}
#mcc-period-comparison caption {
  caption-side: top;
  color: var(--belma-text);
}
#mcc-period-comparison th, #mcc-period-comparison td {
  padding: 0.6rem;
  border: 1px solid var(--belma-border);
  white-space: normal;
  overflow-wrap: break-word;
}
#mcc-period-comparison td {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
#mcc-period-comparison th {
  background: var(--belma-primary-table-header);
}

.daterangepicker.mcc-baseline-picker .drp-buttons > .applyBtn, .daterangepicker.mcc-baseline-picker .drp-buttons > .cancelBtn, .daterangepicker.mcc-baseline-picker .drp-buttons > .drp-selected {
  display: none !important;
}
.daterangepicker.mcc-baseline-picker .mcc-picker-period-a {
  position: relative;
  clear: both;
  padding: 0.75rem 3rem 0.75rem 0.75rem;
  border-bottom: 1px solid var(--belma-border);
  background: var(--belma-primary-soft);
  color: var(--belma-text);
  white-space: normal;
}
.daterangepicker.mcc-baseline-picker .mcc-picker-period-a strong {
  display: block;
  font-size: 0.95rem;
}
.daterangepicker.mcc-baseline-picker .mcc-picker-period-a > span {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}
.daterangepicker.mcc-baseline-picker .mcc-picker-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  font-size: 1.1rem;
  line-height: 1;
}

.daterangepicker.mcc-date-picker .mcc-comparison-baseline-choice {
  clear: both;
  margin: 0 0 0.65rem;
  padding: 0.65rem;
  border: 1px solid var(--belma-border);
  border-radius: 0.5rem;
  background: var(--belma-primary-soft);
  color: var(--belma-text);
  text-align: left;
  white-space: normal;
}
.daterangepicker.mcc-date-picker .mcc-comparison-baseline-choice[hidden] {
  display: none !important;
}
.daterangepicker.mcc-date-picker .mcc-comparison-baseline-choice legend {
  float: none;
  width: auto;
  margin: 0;
  padding: 0 0.25rem;
  font-size: 0.9rem;
  font-weight: 600;
}
.daterangepicker.mcc-date-picker .mcc-comparison-baseline-choice .mcc-baseline-option {
  display: flex;
  width: 100%;
  margin: 0.4rem 0;
  padding: 0.6rem 0.75rem;
  text-align: left;
  white-space: normal;
}
.daterangepicker.mcc-date-picker .mcc-comparison-baseline-choice .mcc-baseline-option > span {
  min-width: 0;
}
.daterangepicker.mcc-date-picker .mcc-comparison-baseline-choice small {
  display: block;
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
}
.daterangepicker.mcc-date-picker .mcc-comparison-baseline-choice button:focus-visible {
  outline: 2px solid var(--belma-primary);
  outline-offset: 2px;
}

.daterangepicker.mcc-date-picker .mcc-week-link {
  border: 0;
  padding: 0;
  width: 100%;
  background: transparent;
  color: var(--belma-primary-dark);
  font: inherit;
  line-height: inherit;
  text-decoration: underline;
  cursor: pointer;
}
.daterangepicker.mcc-date-picker .mcc-week-link:focus-visible {
  outline: 2px solid var(--belma-primary);
  outline-offset: 1px;
}
.daterangepicker.mcc-date-picker .mcc-week-link:disabled {
  color: var(--belma-muted);
  cursor: not-allowed;
  text-decoration: none;
}

#MCCTableForm .mcc-result-table > .ftbl-header > [data-mcc-column] {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1.5rem;
  grid-template-rows: auto 1fr;
  align-items: start;
}
#MCCTableForm .mcc-result-table > .ftbl-header > [data-mcc-column] > label {
  grid-column: 1;
  grid-row: 2;
  min-width: 0;
  width: 100%;
  margin: 0;
}
#MCCTableForm .mcc-result-table > .ftbl-header > [data-mcc-column] > .mcc-column-group {
  grid-column: 1/-1;
  grid-row: 1;
  display: block;
  min-height: 1.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
  visibility: hidden;
}
#MCCTableForm .mcc-result-table > .ftbl-header > [data-mcc-column].mcc-group-start > .mcc-column-group {
  visibility: visible;
}
#MCCTableForm .mcc-result-table > .ftbl-header > [data-mcc-column][data-mcc-group=offers] {
  background-color: var(--belma-primary-soft);
}
#MCCTableForm .mcc-result-table > .ftbl-header > [data-mcc-column][data-mcc-group=drafts] {
  background-color: var(--belma-primary-table-header);
}
#MCCTableForm .mcc-result-table > .ftbl-header > [data-mcc-column].mcc-group-start {
  border-left: 2px solid var(--belma-border-strong);
}
#MCCTableForm .mcc-result-table > .ftbl-header > [data-mcc-column] > .mcc-header-info {
  position: static;
  grid-column: 2;
  grid-row: 2;
  border: 0;
  padding: 0.1rem;
  background: transparent;
  color: var(--belma-primary-dark);
  font-size: 1rem;
  cursor: pointer;
}
#MCCTableForm .mcc-result-table > .ftbl-header > [data-mcc-column] > .mcc-header-info:focus-visible {
  outline: 2px solid var(--belma-primary);
  outline-offset: 2px;
}

#MCCTableForm .mcc-result-table > .d-md-flex > .flex-fill[data-ftbl-transient-column] {
  min-width: 150px;
}

#MCCTableForm .mcc-result-table p[data-mcc-unit]:not([data-mcc-unit=""]) {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
#MCCTableForm .mcc-result-table .mcc-value-with-unit {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
#MCCTableForm .mcc-result-table .mcc-value-with-unit > .form-control {
  min-width: 0;
}
#MCCTableForm .mcc-result-table .mcc-value-with-unit > p {
  margin: 0;
}
#MCCTableForm .mcc-result-table .mcc-value-unit {
  flex: 0 0 auto;
  color: var(--belma-text);
  font-size: var(--belma-font-label);
}

.mcc-column-chooser .modal-content {
  background: var(--belma-surface);
  color: var(--belma-text);
  border: 1px solid var(--belma-border);
  border-radius: 0.75rem;
}
.mcc-column-chooser .modal-header.ks-modal-header-blue {
  background-color: var(--belma-primary-soft) !important;
  color: var(--belma-primary-heading) !important;
  border-bottom: 1px solid var(--belma-border);
}
.mcc-column-chooser .modal-header > h5 {
  color: var(--belma-primary-heading) !important;
  font-size: 1.1rem;
  line-height: 1.4;
}
.mcc-column-chooser .modal-header > .close {
  color: var(--belma-primary-dark);
  opacity: 1;
}
.mcc-column-chooser .modal-body {
  padding: 1rem;
  background: var(--belma-canvas);
}
.mcc-column-chooser .bg-grey-border {
  background: var(--belma-surface);
  border: 1px solid var(--belma-border);
  border-radius: 0.5rem;
}
.mcc-column-chooser [data-column-help] {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1.75rem auto;
  gap: 0.5rem;
  align-items: center;
  margin: 0;
}
.mcc-column-chooser [data-column-help] > label {
  grid-column: 1;
  max-width: none;
  width: auto;
  justify-content: flex-start !important;
  text-align: left;
  color: var(--belma-text);
  font-size: var(--belma-font-label);
  white-space: normal;
  overflow-wrap: break-word;
}
.mcc-column-chooser [data-column-help] > div {
  grid-column: 3;
  grid-row: 1;
  max-width: none;
  width: auto;
  padding-top: 0 !important;
}
.mcc-column-chooser .mcc-header-info {
  grid-column: 2;
  grid-row: 1;
  border: 0;
  padding: 0.1rem;
  background: transparent;
  color: var(--belma-primary-dark);
  font-size: 1rem;
  cursor: pointer;
}
.mcc-column-chooser .mcc-header-info:focus-visible {
  outline: 2px solid var(--belma-primary);
  outline-offset: 2px;
}

.mcc-header-help-popover {
  max-width: min(360px, calc(100vw - 24px));
  background-color: var(--belma-surface);
  border: 1px solid var(--belma-border-strong);
  border-radius: 0.5rem;
  box-shadow: 0 4px 16px rgba(28, 55, 74, 0.14);
  color: var(--belma-text);
  font-family: var(--belma-font-sans);
  font-size: var(--belma-font-label);
  line-height: 1.45;
}
.mcc-header-help-popover > .arrow {
  display: none;
}
.mcc-header-help-popover > .popover-body {
  padding: 0.75rem 0.9rem;
  color: inherit;
}


/* A6's opt-in reading presentation. Existing font-size attributes remain the sole scale selection. */
.belma-clearer-view-preference {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-height: 44px;
    margin: 0.5rem 0 0;
    color: var(--belma-text);
    cursor: pointer;
}
.belma-clearer-view-preference input {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    accent-color: #14613a;
}
.belma-clearer-view-preference input:focus-visible {
    outline: 2px solid var(--belma-primary-dark);
    outline-offset: 3px;
}
html[data-belma-clearer-view="on"] {
    --belma-clearer-copy-size: 1.25rem;
    --belma-clearer-heading-size: 1.75rem;
    --belma-clearer-button-height: 3rem;
    --belma-clearer-leading: 1.55;
    --belma-clearer-space: 0.75rem;
    --belma-clearer-button-padding: 0.5rem;
}
/* Compensate for the existing .9/.8 root scale: copy measures 20/16/14px and headings 28/22.4/19.6px at standard zoom. */
html[data-belma-clearer-view="on"][data-belma-font-size="0.9em"] {
    --belma-clearer-copy-size: 1.1111111111rem;
    --belma-clearer-heading-size: 1.5555555556rem;
    --belma-clearer-button-height: 2.6388888889rem;
    --belma-clearer-leading: 1.4;
    --belma-clearer-space: 0.5rem;
    --belma-clearer-button-padding: 0.25rem;
}
html[data-belma-clearer-view="on"][data-belma-font-size="0.8em"] {
    --belma-clearer-copy-size: 1.09375rem;
    --belma-clearer-heading-size: 1.53125rem;
    --belma-clearer-button-height: 2.34375rem;
    --belma-clearer-leading: 1.3;
    --belma-clearer-space: 0.35rem;
    --belma-clearer-button-padding: 0.125rem;
}
/* Match legacy important heading typography with a root/ID scope; do not recolor status summaries or badges. */
html[data-belma-clearer-view="on"] :is(.belma-activity-detail__title, #activityForm h5.text-header, #activityForm .belma-activity-detail__mobile-summary-title, .belma-activity-detail .belma-activity-detail__mobile-schedule-title, #schemaProperties > .row > h3.text-header) {
    font-family: var(--belma-font-sans) !important;
    font-size: var(--belma-clearer-heading-size) !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    color: #103c58 !important;
    background-color: #f5f7fa;
}
html[data-belma-clearer-view="on"] .belma-activity-detail .belma-activity-detail__heading {
    padding-block: var(--belma-clearer-space);
}
/* The private note is BF_TNF_PRIVATE_TEXT_AREA; its renderer owns the adjacent label and resize icon. */
html[data-belma-clearer-view="on"] #activityForm textarea[name="bf_p_t"],
html[data-belma-clearer-view="on"] #activityForm .form-group:has(> textarea[name="bf_p_t"]) > .my-1 > label,
html[data-belma-clearer-view="on"] .belma-activity-detail [data-activity-work-source="bf_p_t"] > :is(.belma-activity-detail__mobile-schedule-label, .belma-activity-detail__mobile-schedule-text) {
    font-family: var(--belma-font-sans) !important;
    font-size: var(--belma-clearer-copy-size) !important;
    font-weight: 500 !important;
    line-height: var(--belma-clearer-leading) !important;
    color: #17232c !important;
    background-color: #f5f7fa !important;
}
html[data-belma-clearer-view="on"] #activityForm textarea[name="bf_p_t"] {
    padding: var(--belma-clearer-space) !important;
}
html[data-belma-clearer-view="on"] .belma-activity-detail [data-activity-work-source="bf_p_t"] {
    padding: var(--belma-clearer-space);
}
/* Only the two existing text-bearing edit/contact disclosures qualify; semantic statuses, icon-only and destructive controls do not. */
html[data-belma-clearer-view="on"] .belma-activity-detail__heading button.btn-success[aria-controls="activityDetailContent"]:not(.btn-danger),
html[data-belma-clearer-view="on"] #activityForm .toggle-div > button.btn-success:not(.btn-danger) {
    font-family: var(--belma-font-sans) !important;
    font-size: var(--belma-clearer-copy-size) !important;
    font-weight: 650 !important;
    line-height: 1.25 !important;
    min-height: var(--belma-clearer-button-height);
    height: auto;
    max-width: 100%;
    padding: var(--belma-clearer-button-padding) 0.75rem !important;
    white-space: normal;
    color: #ffffff !important;
    background-color: #14613a !important;
    border-color: #104527 !important;
}
html[data-belma-clearer-view="on"] .belma-activity-detail__heading button.btn-success[aria-controls="activityDetailContent"]:not(.btn-danger):focus-visible,
html[data-belma-clearer-view="on"] #activityForm .toggle-div > button.btn-success:not(.btn-danger):focus-visible {
    outline: 3px solid #103c58;
    outline-offset: 3px;
}
/* OS dark preference has no existing global Belma theme toggle; paint paired local surfaces instead of changing the accent preference. */
@media (prefers-color-scheme: dark) {
    html[data-belma-clearer-view="on"] :is(.belma-activity-detail__title, #activityForm h5.text-header, #activityForm .belma-activity-detail__mobile-summary-title, .belma-activity-detail .belma-activity-detail__mobile-schedule-title, #schemaProperties > .row > h3.text-header) {
        color: #d3ecfb !important;
        background-color: #17232c;
    }
    html[data-belma-clearer-view="on"] #activityForm textarea[name="bf_p_t"],
    html[data-belma-clearer-view="on"] #activityForm .form-group:has(> textarea[name="bf_p_t"]) > .my-1 > label,
    html[data-belma-clearer-view="on"] .belma-activity-detail [data-activity-work-source="bf_p_t"] > :is(.belma-activity-detail__mobile-schedule-label, .belma-activity-detail__mobile-schedule-text) {
        color: #edf4f8 !important;
        background-color: #17232c !important;
    }
}
@media (pointer: coarse), (max-width: 767.98px) {
    html[data-belma-clearer-view="on"] .belma-activity-detail__heading button.btn-success[aria-controls="activityDetailContent"]:not(.btn-danger),
    html[data-belma-clearer-view="on"] #activityForm .toggle-div > button.btn-success:not(.btn-danger) {
        min-height: 44px;
    }
}

/*# sourceMappingURL=index.css.map */
