:root, [data-bs-theme=light] {
  --bs-primary: #01454f;
  --bs-primary-rgb: 1,69,79;
  --bs-primary-text-emphasis: #001C20;
  --bs-primary-bg-subtle: #CCDADC;
  --bs-primary-border-subtle: #99B5B9;
}

.btn-primary {
  --bs-btn-color: #fff;
  --bs-btn-bg: #01454f;
  --bs-btn-border-color: #01454f;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #013B43;
  --bs-btn-hover-border-color: #01373F;
  --bs-btn-focus-shadow-rgb: 217,227,229;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #01373F;
  --bs-btn-active-border-color: #01343B;
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: #01454f;
  --bs-btn-disabled-border-color: #01454f;
}

.btn-outline-primary {
  --bs-btn-color: #01454f;
  --bs-btn-border-color: #01454f;
  --bs-btn-focus-shadow-rgb: 1,69,79;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #01454f;
  --bs-btn-hover-border-color: #01454f;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #01454f;
  --bs-btn-active-border-color: #01454f;
  --bs-btn-disabled-color: #01454f;
  --bs-btn-disabled-bg: transparent;
  --bs-btn-disabled-border-color: #01454f;
}

.m-0 {
  margin: 0 !important;
}

.mx-auto {
  margin-right: auto !important;
  margin-left: auto !important;
}

.my-0 {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.my-5 {
  margin-top: 3rem !important;
  margin-bottom: 3rem !important;
}

.my-auto {
  margin-top: auto !important;
  margin-bottom: auto !important;
}

.mt-0 {
  margin-top: 0 !important;
}

.mt-1 {
  margin-top: .25rem !important;
}

.mt-2 {
  margin-top: .5rem !important;
}

.mt-3 {
  margin-top: 1rem !important;
}

.mt-4 {
  margin-top: 1.5rem !important;
}

.mt-5 {
  margin-top: 3rem !important;
}

.me-0 {
  margin-right: 0 !important;
}

.me-1 {
  margin-right: .25rem !important;
}

.me-2 {
  margin-right: .5rem !important;
}

.me-3 {
  margin-right: 1rem !important;
}

.me-4 {
  margin-right: 1.5rem !important;
}

.me-auto {
  margin-right: auto !important;
}

.mb-0 {
  margin-bottom: 0 !important;
}

.mb-1 {
  margin-bottom: .25rem !important;
}

.mb-2 {
  margin-bottom: .5rem !important;
}

.mb-3 {
  margin-bottom: 1rem !important;
}

.mb-4 {
  margin-bottom: 1.5rem !important;
}

.mb-5 {
  margin-bottom: 3rem !important;
}

.ms-0 {
  margin-left: 0 !important;
}

.ms-1 {
  margin-left: .25rem !important;
}

.ms-2 {
  margin-left: .5rem !important;
}

.ms-3 {
  margin-left: 1rem !important;
}

.ms-4 {
  margin-left: 1.5rem !important;
}

.ms-auto {
  margin-left: auto !important;
}

.p-0 {
  padding: 0 !important;
}

.p-3 {
  padding: 1rem !important;
}

.p-5 {
  padding: 3rem !important;
}

.py-2 {
  padding-top: .5rem !important;
  padding-bottom: .5rem !important;
}

.py-3 {
  padding-top: 1rem !important;
  padding-bottom: 1rem !important;
}

.pt-0 {
  padding-top: 0 !important;
}

.pt-2 {
  padding-top: .5rem !important;
}

.pt-3 {
  padding-top: 1rem !important;
}

.pe-0 {
  padding-right: 0 !important;
}

.pe-2 {
  padding-right: .5rem !important;
}

.pe-3 {
  padding-right: 1rem !important;
}

.pe-4 {
  padding-right: 1.5rem !important;
}

.pb-0 {
  padding-bottom: 0 !important;
}

.pb-1 {
  padding-bottom: .25rem !important;
}

.pb-2 {
  padding-bottom: .5rem !important;
}

.pb-3 {
  padding-bottom: 1rem !important;
}

.pb-4 {
  padding-bottom: 1.5rem !important;
}

.pb-5 {
  padding-bottom: 3rem !important;
}

.ps-0 {
  padding-left: 0 !important;
}

.ps-1 {
  padding-left: .25rem !important;
}

.ps-2 {
  padding-left: .5rem !important;
}

.ps-3 {
  padding-left: 1rem !important;
}

.ps-4 {
  padding-left: 1.5rem !important;
}

@media (min-width: 768px) {
  .mt-md-0 {
    margin-top: 0rem !important;
  }
}

@media (min-width: 768px) {
  .mt-md-2 {
    margin-top: 0.5rem !important;
  }
}

@media (min-width: 768px) {
  .me-md-0 {
    margin-right: 0rem !important;
  }
}

@media (min-width: 768px) {
  .me-md-1 {
    margin-right: 0.25rem !important;
  }
}

@media (min-width: 768px) {
  .me-md-2 {
    margin-right: 0.5rem !important;
  }
}

@media (min-width: 768px) {
  .me-md-5 {
    margin-right: 3rem !important;
  }
}

@media (min-width: 768px) {
  .mb-md-0 {
    margin-bottom: 0rem !important;
  }
}

@media (min-width: 768px) {
  .mb-md-1 {
    margin-bottom: 0.25rem !important;
  }
}

@media (min-width: 768px) {
  .mb-md-2 {
    margin-bottom: 0.5rem !important;
  }
}

@media (min-width: 768px) {
  .mb-md-3 {
    margin-bottom: 1rem !important;
  }
}

@media (min-width: 768px) {
  .ms-md-0 {
    margin-left: 0rem !important;
  }
}

@media (min-width: 768px) {
  .ms-md-1 {
    margin-left: 0.25rem !important;
  }
}

@media (min-width: 768px) {
  .ms-md-2 {
    margin-left: 0.5rem !important;
  }
}

@media (min-width: 768px) {
  .pt-md-0 {
    padding-top: 0rem !important;
  }
}

@media (min-width: 768px) {
  .pt-md-2 {
    padding-top: 0.5rem !important;
  }
}

@media (min-width: 768px) {
  .pe-md-0 {
    padding-right: 0rem !important;
  }
}

@media (min-width: 768px) {
  .pe-md-1 {
    padding-right: 0.25rem !important;
  }
}

@media (min-width: 768px) {
  .pe-md-3 {
    padding-right: 1rem !important;
  }
}

@media (min-width: 768px) {
  .pb-md-0 {
    padding-bottom: 0rem !important;
  }
}

@media (min-width: 768px) {
  .pb-md-2 {
    padding-bottom: 0.5rem !important;
  }
}

@media (min-width: 768px) {
  .pb-md-3 {
    padding-bottom: 1rem !important;
  }
}

@media (min-width: 768px) {
  .ps-md-0 {
    padding-left: 0rem !important;
  }
}

@media (min-width: 768px) {
  .ps-md-1 {
    padding-left: 0.25rem !important;
  }
}

@media (min-width: 768px) {
  .ps-md-2 {
    padding-left: 0.5rem !important;
  }
}

@media (min-width: 768px) {
  .ps-md-3 {
    padding-left: 1rem !important;
  }
}

/* Customers page — sidebar list + main (shell from Source/Routes/frontend/customers.js) */
.cc-customers-layout {
  min-height: 0;
  --cc-cust-brand-header: repeating-linear-gradient(147deg, #01454f 0%, rgb(25, 51, 55) 25%, #282828 129%);
  --cc-cust-brand-panel: linear-gradient(180deg, #f8f9fa 0%, #fff 100%);
  --cc-cust-brand-border: rgba(1, 69, 79, 0.12);
}

@media (min-width: 992px) {
  /* At least full viewport; allow growing taller so settings + overview scroll with the
     page (no clipping). Sidebar list still uses flex + min-height:0 for internal scroll
     when the row is shorter than the list. */
  #content-wrapper:has(#cc-customers-layout) {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: visible;
  }

  #content-wrapper:has(#cc-customers-layout) > footer.sticky-footer {
    flex-shrink: 0;
  }

  #content:has(#cc-customers-layout) {
    flex: 1 1 auto;
    min-height: 0;
    overflow: visible;
    display: flex;
    flex-direction: column;
  }

  #cc-customers-layout.cc-customers-layout--fill {
    flex: 1 1 auto;
    min-height: 0;
    align-self: stretch;
    width: 100%;
    align-items: stretch;
    overflow: visible;
  }

  #cc-customers-main {
    flex: 1 1 auto;
    min-width: 0;
    overflow: visible;
    align-self: stretch;
    padding-bottom: 2.5rem;
    box-sizing: border-box;
  }

  #cc-customers-main #cc-customer-edit-panels {
    min-height: auto;
  }

  .cc-customers-drawer-handle.d-lg-flex {
    align-self: stretch;
    flex-shrink: 0;
    min-height: 0;
  }

  #cc-customers-sidebar .cc-customers-select-form--bare {
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  #cc-customers-sidebar {
    overflow: hidden;
    min-height: 0;
  }
}

@media (max-width: 991.98px) {
  #cc-customers-layout.cc-customers-layout--fill .cc-customers-sidebar .cc-customers-sidebar-list-scroll {
    max-height: min(42dvh, 22rem);
  }
}

/* CMR page: keep customer list filling available page height. */
#content:has(#cmr-sidebar-anchor) #cc-customers-layout.cc-customers-layout--fill {
  min-height: calc(100dvh - 170px);
}

#content:has(#cmr-sidebar-anchor) #cc-customers-sidebar-shell.cc-customers-sidebar-card {
  min-height: calc(100dvh - 170px);
}

#content:has(#cmr-sidebar-anchor) .cc-customers-sidebar .cc-customers-sidebar-list-scroll {
  max-height: none !important;
  min-height: calc(100dvh - 420px);
}

/* Match billing / home: gradient section headers + soft panel surfaces */
#cc-customers-layout #cc-customers-main .shadow.card,
#cc-customers-layout #cc-customers-main .card.shadow {
  border: 0 !important;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
  overflow: hidden;
}

/* Settings + integration columns: do not clip tall form stacks (global inject also sets overflow on .card.shadow). */
#cc-customers-layout #cc-customer-edit-panels .shadow.card,
#cc-customers-layout #cc-customer-edit-panels .card.shadow {
  overflow: visible !important;
}

#cc-customers-layout #cc-customers-main .card > a.card-header,
#cc-customers-layout #cc-customers-main .card > .card-header {
  background: var(--cc-cust-brand-header) !important;
  border: none !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

#cc-customers-layout #cc-customers-main .card > a.card-header,
#cc-customers-layout #cc-customers-main .card > a.card-header:hover,
#cc-customers-layout #cc-customers-main .card > a.card-header:focus {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  text-decoration: none !important;
}

/* BSS inline style="color: var(--bs-primary)" + .btn-link use --bs-btn-color / link vars — force white on gradient */
#cc-customers-layout #cc-customers-main .card > a.card-header.btn-link,
#cc-customers-layout #cc-customer-edit-panels .card > a.card-header.btn-link,
#cc-customers-layout #cc-customer-edit-panels .shadow.card > a.card-header,
#cc-customers-layout #cc-customer-edit-panels .card.shadow > a.card-header {
  --bs-btn-color: #fff !important;
  --bs-btn-hover-color: #fff !important;
  --bs-btn-active-color: #fff !important;
  --bs-link-color: #fff !important;
  --bs-link-hover-color: #fff !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

#cc-customers-layout #cc-customers-main .card > a.card-header.btn-link:hover,
#cc-customers-layout #cc-customers-main .card > a.card-header.btn-link:focus,
#cc-customers-layout #cc-customer-edit-panels .card > a.card-header.btn-link:hover,
#cc-customers-layout #cc-customer-edit-panels .card > a.card-header.btn-link:focus {
  --bs-btn-color: #fff !important;
  --bs-btn-hover-color: #fff !important;
  --bs-link-color: #fff !important;
  --bs-link-hover-color: #fff !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

#cc-customers-layout #cc-customers-main .card > a.card-header h6,
#cc-customers-layout #cc-customers-main .card > .card-header h6 {
  color: #fff !important;
  font-weight: 700 !important;
}

#cc-customer-empty-state.card {
  border: 1px solid var(--cc-cust-brand-border) !important;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
  overflow: hidden;
  background: var(--cc-cust-brand-panel);
}

#cc-customer-summary-panel.cc-cc-brand-card {
  border: 0 !important;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
  overflow: hidden;
  background: #fff;
}

#cc-customer-summary-panel.cc-cc-brand-card::before {
  content: '';
  display: block;
  height: 5px;
  background: var(--cc-cust-brand-header);
  flex-shrink: 0;
}

#cc-customer-summary-panel .cc-summary-kpi.card,
#cc-customer-summary-panel .card.border.h-100 {
  background: var(--cc-cust-brand-panel);
  border-color: var(--cc-cust-brand-border) !important;
  box-shadow: none !important;
}

#cc-customer-summary-panel .card.border:not(.h-100) {
  background: var(--cc-cust-brand-panel);
  border-color: var(--cc-cust-brand-border) !important;
}

.cc-customer-settings-card {
  border: 0 !important;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
  overflow: visible;
}

.cc-customer-settings-card #cc-customer-settings-collapse.show {
  overflow: visible;
}

.cc-customer-settings-card > .card-header {
  background: var(--cc-cust-brand-header) !important;
  border: none !important;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.cc-customer-settings-card > .card-header .btn-link,
.cc-customer-settings-card > .card-header button.btn-link.text-body {
  --bs-btn-color: #fff !important;
  --bs-btn-hover-color: #fff !important;
  --bs-link-color: #fff !important;
  --bs-link-hover-color: #fff !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  font-weight: 700 !important;
}

.cc-customer-settings-card > .card-header .btn-link:hover,
.cc-customer-settings-card > .card-header .btn-link:focus,
.cc-customer-settings-card > .card-header button.btn-link.text-body:hover,
.cc-customer-settings-card > .card-header button.btn-link.text-body:focus {
  --bs-btn-color: #fff !important;
  --bs-btn-hover-color: #fff !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

.cc-customer-settings-card > .card-header .btn-link span {
  color: inherit !important;
  -webkit-text-fill-color: inherit !important;
}

.cc-customer-settings-card > .card-header .cc-settings-chevron {
  color: rgba(255, 255, 255, 0.9) !important;
}

#cc-customers-layout .cc-customers-select-form--bare {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

#cc-customers-layout .cc-customers-sidebar-footer {
  background: var(--bs-body-bg, #fff);
}

#cc-customers-layout .cc-customers-sidebar .form-select {
  border-color: rgba(1, 69, 79, 0.22);
}

#cc-customers-layout .cc-customers-sidebar .cc-customers-sidebar-search .form-control {
  border-color: rgba(1, 69, 79, 0.38);
  font-weight: 600;
  color: var(--bs-emphasis-color, var(--bs-body-color));
}

#cc-customers-layout .cc-customers-sidebar-filters {
  background: transparent;
}

[data-bs-theme='dark'] .cc-customers-layout {
  --cc-cust-brand-panel: linear-gradient(180deg, #2b3035 0%, #212529 100%);
  --cc-cust-brand-border: rgba(255, 255, 255, 0.12);
}

[data-bs-theme='dark'] #cc-customer-summary-panel.cc-cc-brand-card {
  background: var(--bs-body-bg, #212529);
}

[data-bs-theme='dark'] #cc-customer-empty-state.card {
  background: var(--cc-cust-brand-panel);
}

.cc-customers-drawer-handle {
  flex-shrink: 0;
  align-self: stretch;
  width: 10px;
  margin: 0;
  cursor: col-resize;
  touch-action: none;
  border-radius: 0;
  border: none;
  border-left: 1px solid var(--bs-border-color, #dee2e6);
  background: var(--bs-body-bg, #fff);
  box-sizing: border-box;
  position: relative;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.cc-customers-drawer-handle::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 3px;
  height: 2.25rem;
  border-radius: 2px;
  background: repeating-linear-gradient(
    to bottom,
    var(--bs-secondary-color, #6c757d) 0,
    var(--bs-secondary-color, #6c757d) 3px,
    transparent 3px,
    transparent 6px
  );
  opacity: 0.55;
  pointer-events: none;
}

.cc-customers-drawer-handle:hover,
.cc-customers-drawer-handle:focus-visible {
  background: var(--bs-secondary-bg, #e9ecef);
  border-left-color: var(--bs-primary, #01454f);
  outline: none;
}

.cc-customers-drawer-handle:focus-visible {
  box-shadow: 0 0 0 2px var(--bs-body-bg, #fff), 0 0 0 4px rgba(1, 69, 79, 0.35);
}

[data-bs-theme='dark'] .cc-customers-drawer-handle {
  background: var(--bs-body-bg, #212529);
  border-left-color: rgba(255, 255, 255, 0.12);
}

[data-bs-theme='dark'] .cc-customers-drawer-handle::after {
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.45) 0,
    rgba(255, 255, 255, 0.45) 3px,
    transparent 3px,
    transparent 6px
  );
}

[data-bs-theme='dark'] .cc-customers-drawer-handle:hover,
[data-bs-theme='dark'] .cc-customers-drawer-handle:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  border-left-color: rgba(255, 255, 255, 0.22);
}

.cc-customers-layout.cc-customers-drawer-collapsed .cc-customers-drawer-handle {
  margin: 0;
  border-left-color: var(--bs-border-color, #dee2e6);
}

/* Outer card: sidebar column + resize rail share one border/shadow (Source/Routes/frontend/customers.js). */
#cc-customers-sidebar-shell {
  width: 100%;
  max-width: 30rem;
}

.cc-customers-sidebar {
  width: 100%;
  min-width: 0;
}

/* Card shell for customer picker (injected shell; matches overview card weight). */
#cc-customers-sidebar-shell.cc-customers-sidebar-card {
  border-color: var(--cc-cust-brand-border, rgba(1, 69, 79, 0.14)) !important;
  box-shadow: 0 0.15rem 0.4rem rgba(1, 69, 79, 0.07) !important;
}

[data-bs-theme='dark'] #cc-customers-sidebar-shell.cc-customers-sidebar-card {
  border-color: rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 0.2rem 0.5rem rgba(0, 0, 0, 0.35) !important;
}

@media (min-width: 992px) {
  #cc-customers-sidebar-shell {
    flex-shrink: 0;
    align-self: stretch;
    max-height: none;
  }

  #cc-customers-sidebar-shell.cc-customers-sidebar-card {
    margin-right: 0.5rem;
  }

  .cc-customers-sidebar {
    width: auto;
    max-width: none;
    flex: 1 1 auto;
    align-self: stretch;
    max-height: none;
  }

  .cc-customers-sidebar.cc-customers-sidebar-collapsed {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    border-radius: 0 !important;
    padding-right: 0;
    margin-right: 0;
    overflow: visible !important;
  }

  .cc-customers-layout.cc-customers-drawer-collapsed #cc-customers-sidebar-shell.cc-customers-sidebar-card {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
  }
}

.cc-customers-sidebar .cc-customers-select-form {
  max-height: none;
}

.cc-customers-sidebar .modal-header + .p-3,
.cc-customers-sidebar .p-3.flex-grow-1 {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.cc-customers-sidebar .cc-customers-select-body {
  gap: 0.35rem !important;
}

.cc-customers-select-form .cc-customers-select-body > h6,
.cc-customers-sidebar .cc-customers-select-body > h6 {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--bs-secondary-color, #6c757d);
  margin-top: 0.2rem;
  margin-bottom: 0.05rem;
}

.cc-customers-select-form .cc-customers-select-body > h6:first-of-type,
.cc-customers-sidebar .cc-customers-select-body > h6:first-of-type {
  margin-top: 0;
}

.cc-customers-select-form .cc-customers-select-body > select.form-select,
.cc-customers-sidebar .cc-customers-select-body > select.form-select {
  font-size: 0.8125rem;
  padding-top: 0.2rem;
  padding-bottom: 0.2rem;
  padding-left: 0.45rem;
  min-height: calc(1.45em + 0.4rem + 2px);
  margin-top: 0 !important;
  margin-bottom: 0.15rem !important;
}

.cc-customers-select-form .cc-customers-select-body > hr,
.cc-customers-sidebar .cc-customers-select-body > hr {
  margin: 0.3rem 0;
  opacity: 0.4;
}

.cc-customers-browse-stack .cc-customers-sidebar-search {
  background: var(--bs-secondary-bg, #f8f9fa);
}

[data-bs-theme='dark'] .cc-customers-browse-stack .cc-customers-sidebar-search {
  background: rgba(255, 255, 255, 0.05);
}

.cc-customers-browse-stack .cc-customers-sidebar-search .form-control {
  min-height: calc(1.55em + 0.55rem + 2px);
  box-sizing: border-box;
  font-weight: 600;
}

.cc-customers-browse-stack .cc-customers-sidebar-search .form-control::placeholder {
  font-weight: 600;
  color: var(--bs-secondary-color, #6c757d);
  opacity: 1;
}

.cc-customers-browse-stack .cc-customers-sidebar-search .form-control:focus {
  border-color: var(--bs-primary, #01454f);
  box-shadow: 0 0 0 0.2rem rgba(1, 69, 79, 0.2);
  outline: 0;
}

.cc-customers-sidebar .cc-customers-browse-stack {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.cc-customers-sidebar-filters {
  background: transparent;
  flex-shrink: 0;
  border-bottom: 1px solid var(--bs-border-color, #dee2e6);
}

.cc-customers-filter-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--bs-secondary-color, #6c757d);
  margin-bottom: 0.2rem;
}

.cc-customers-sidebar-filters .form-select {
  font-size: 0.8125rem;
}

.cc-customers-sidebar .cc-customers-browse-stack .cc-customers-sidebar-list-scroll {
  border-radius: 0;
}

.cc-customers-hidden-select-wrap {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  left: 0;
  bottom: 0;
}

.cc-customers-name-select-sr {
  width: 1px !important;
  height: 1px !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  opacity: 0;
  border: 0 !important;
}

.cc-customers-sidebar .form-label,
.cc-customers-sidebar label.form-label {
  margin-bottom: 0.25rem;
  font-size: 0.8rem;
}

.cc-customers-sidebar .form-select,
.cc-customers-sidebar input.form-control {
  margin-bottom: 0;
}

.cc-customers-sidebar .mb-2 {
  margin-bottom: 0.65rem !important;
}

/* List fills remaining sidebar height (filters + search stay fixed above). */
.cc-customers-sidebar .cc-customers-sidebar-list-scroll {
  flex: 1 1 0;
  min-height: 0;
  height: auto;
  max-height: none;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

.cc-customers-sidebar .cc-customers-cards-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  background: var(--bs-body-bg, #fff);
}

.cc-customers-sidebar button.cc-customer-card {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.55rem 0.75rem;
  margin: 0;
  border: 0;
  border-bottom: 1px solid var(--bs-border-color, #dee2e6);
  border-radius: 0;
  background: var(--bs-body-bg, #fff);
  box-shadow: none;
  transition:
    border-color 0.15s ease,
    background-color 0.15s ease;
  cursor: pointer;
  line-height: 1.35;
}

.cc-customers-sidebar .cc-customers-sidebar-list-scroll .cc-customer-card:last-child {
  border-bottom-width: 0;
}

.cc-customers-sidebar button.cc-customer-card:hover {
  box-shadow: none;
  background-color: var(--bs-tertiary-bg, #f8f9fa);
}

[data-bs-theme='dark'] .cc-customers-sidebar button.cc-customer-card:hover {
  background-color: rgba(255, 255, 255, 0.06);
}

.cc-customers-sidebar button.cc-customer-card:focus-visible {
  outline: 2px solid var(--bs-primary, #01454f);
  outline-offset: 2px;
}

.cc-customers-sidebar .cc-customer-card-name {
  display: block;
  font-weight: 650;
  font-size: 0.875rem;
  color: var(--bs-body-color, #212529);
}

.cc-customers-sidebar .cc-customer-card-body {
  margin-top: 0.35rem;
  font-size: 0.72rem;
  color: var(--bs-secondary-color, #6c757d);
}

.cc-customers-sidebar .cc-customer-card-line {
  display: block;
  margin-top: 0.15rem;
}

.cc-customers-sidebar .cc-customer-card-line:first-of-type {
  margin-top: 0;
}

.cc-customers-sidebar .cc-customer-card-k {
  font-weight: 600;
  color: var(--bs-secondary-color, #6c757d);
  margin-right: 0.2em;
}

.cc-customers-sidebar .cc-customer-card-m365 {
  margin-top: 0.35rem;
  font-weight: 600;
  font-size: 0.68rem;
}

.cc-customers-sidebar .cc-m365-on {
  color: var(--bs-success, #1cc88a);
}

.cc-customers-sidebar .cc-m365-off {
  color: var(--bs-danger, #e74a3b);
}

.cc-customers-sidebar button.cc-customer-card-active {
  border-left: 3px solid var(--bs-primary, #01454f);
  padding-left: calc(0.75rem - 3px);
  background: rgba(1, 69, 79, 0.08);
  box-shadow: none;
}

.cc-customers-sidebar button.cc-customer-card-active .cc-customer-card-name {
  color: var(--bs-primary, #01454f);
}

[data-bs-theme='dark'] .cc-customers-sidebar button.cc-customer-card-active {
  background: rgba(1, 69, 79, 0.22);
}

.cc-customers-sidebar .cc-customer-card-skel {
  pointer-events: none;
  border-style: dashed;
  opacity: 0.85;
}

.cc-customers-sidebar .cc-customer-card-skel .cc-customer-card-skel-title {
  display: block;
  margin-bottom: 0.5rem;
}

.cc-customers-sidebar .cc-customer-card-skel .cc-customer-card-skel-line {
  display: block;
  margin-top: 0.35rem;
  max-width: 85%;
}

.cc-customers-sidebar .border-top.p-3 {
  gap: 0.5rem;
}

#cc-customer-summary-panel .cc-summary-section {
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

#cc-customer-summary-panel .cc-summary-section:first-of-type {
  margin-top: 0.75rem;
  padding-top: 0;
  border-top: 0;
}

[data-bs-theme='dark'] #cc-customer-summary-panel .cc-summary-section {
  border-top-color: rgba(255, 255, 255, 0.12);
}

/* Customer overview (summary) — KPI tiles + Chart.js */
#cc-customer-summary-panel .cc-summary-kpi-value {
  color: var(--bs-primary, #01454f);
}

#cc-customer-summary-panel .cc-sum-chart-wrap {
  position: relative;
  height: 200px;
  max-width: 100%;
}

#cc-customer-summary-panel .cc-summary-details-sum {
  cursor: pointer;
  user-select: none;
}

#cc-customer-summary-panel .cc-summary-badges .badge {
  font-weight: 500;
  max-width: 100%;
  white-space: normal;
  text-align: left;
}

#cc-customer-summary-panel .cc-summary-badges .cc-sum-pill {
  padding: 0.35em 0.75em calc(0.35em + 1px);
  display: inline-flex;
  align-items: center;
  line-height: 1.25;
}

#cc-customer-summary-panel .cc-summary-badges .cc-sum-pill-row {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  line-height: 1.25;
}

#cc-customer-summary-panel .cc-summary-badges .cc-sum-pill-brand {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  object-fit: contain;
  object-position: center;
  display: block;
}

#cc-customer-summary-panel .cc-summary-badges .cc-sum-pill-brand--halo {
  width: auto;
  max-width: 48px;
  max-height: 16px;
}

#cc-customer-summary-panel .cc-summary-badges a.cc-sum-pill-halo-link {
  cursor: pointer;
  transition: filter 0.15s ease, box-shadow 0.15s ease;
}

#cc-customer-summary-panel .cc-summary-badges a.cc-sum-pill-halo-link,
#cc-customer-summary-panel .cc-summary-badges a.cc-sum-pill-halo-link .cc-sum-pill-k,
#cc-customer-summary-panel .cc-summary-badges a.cc-sum-pill-halo-link .cc-sum-pill-val {
  color: #fff !important;
}

#cc-customer-summary-panel .cc-summary-badges a.cc-sum-pill-halo-link:hover {
  filter: brightness(1.07);
}

#cc-customer-summary-panel .cc-summary-badges a.cc-sum-pill-halo-link:focus-visible {
  outline: 2px solid rgba(1, 69, 79, 0.5);
  outline-offset: 2px;
}

#cc-customer-summary-panel .cc-summary-badges .cc-sum-pill-k,
#cc-customer-summary-panel .cc-summary-badges .cc-sum-pill-val {
  line-height: 1.25;
}

#cc-customer-summary-panel .cc-summary-badges .cc-sum-pill-k {
  font-weight: 650;
}

/* Billing / partition pills: white text, saturated fills (not primary / info / secondary — those are ID & Halo & AM) */
#cc-customer-summary-panel .cc-summary-badges .cc-sum-pill-tonal {
  color: #fff !important;
  border: none !important;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}
#cc-customer-summary-panel .cc-summary-badges .cc-sum-pill-tonal--billing {
  background: linear-gradient(180deg, #22c55e 0%, #15803d 100%) !important;
}
#cc-customer-summary-panel .cc-summary-badges .cc-sum-pill-tonal--part-ms {
  background: linear-gradient(180deg, #fb923c 0%, #ea580c 100%) !important;
}
#cc-customer-summary-panel .cc-summary-badges .cc-sum-pill-tonal--voice {
  background: linear-gradient(180deg, #f87171 0%, #dc2626 100%) !important;
}
#cc-customer-summary-panel .cc-summary-badges .cc-sum-pill-tonal--part-a {
  background: linear-gradient(180deg, #a78bfa 0%, #7c3aed 100%) !important;
}
#cc-customer-summary-panel .cc-summary-badges .cc-sum-pill-tonal--part-b {
  background: linear-gradient(180deg, #818cf8 0%, #4f46e5 100%) !important;
}
#cc-customer-summary-panel .cc-summary-badges .cc-sum-pill-tonal--part-c {
  background: linear-gradient(180deg, #f472b6 0%, #be185d 100%) !important;
}

.cc-customers-select-form.cc-customers-select-form--flat,
.cc-customers-select-form.cc-customers-select-form--bare {
  box-shadow: none !important;
}

@media (max-width: 575.98px) {
  #cc-customer-summary-panel .cc-sum-chart-wrap {
    height: 180px;
  }
}

.cc-customer-settings-card .cc-settings-chevron {
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.cc-customer-settings-card button.btn-link:not(.collapsed) .cc-settings-chevron {
  transform: rotate(90deg);
}

[data-bs-theme='dark'] .cc-customer-settings-card > .card-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Customer overview — recent reports: grow with content; main column (#cc-customers-main) scrolls. */
#cc-customer-summary-panel .cc-sum-recent-reports {
  min-height: 0;
  overflow: visible;
}

#cc-customer-summary-panel .cc-sum-recent-reports .cc-sum-recent-item.activity-item {
  transition: background-color 0.2s ease;
  cursor: default;
  min-height: 0;
  display: block;
  align-items: stretch;
}

#cc-customer-summary-panel .cc-sum-recent-reports .cc-sum-recent-item.activity-item:hover {
  background-color: var(--bs-secondary-bg, #f8f9fc);
}

#cc-customer-summary-panel .cc-sum-recent-reports .cc-sum-recent-item:last-child {
  border-bottom: none !important;
}

#cc-customer-summary-panel .cc-sum-recent-reports .activity-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--bs-secondary-bg, #f8f9fc);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

#cc-customer-summary-panel .cc-sum-recent-reports .activity-icon i {
  font-size: 0.75rem;
}

[data-bs-theme='dark'] #cc-customer-summary-panel .cc-sum-recent-reports .cc-sum-recent-item.activity-item:hover {
  background-color: rgba(255, 255, 255, 0.06);
}

[data-bs-theme='dark'] #cc-customer-summary-panel .cc-sum-recent-reports .activity-icon {
  background-color: rgba(255, 255, 255, 0.08);
}

/* Customers — inline loading (bounce dots + select overlays; no full-page lock) */
.cc-bounce-dots {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  vertical-align: middle;
  min-width: 1.35rem;
  min-height: 0.65rem;
  flex-shrink: 0;
}

.cc-bounce-dots > span {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background-color: var(--bs-primary, #01454f);
  animation: cc-bounce-dot 0.55s ease-in-out infinite both;
}

.cc-bounce-dots > span:nth-child(1) {
  animation-delay: 0ms;
}

.cc-bounce-dots > span:nth-child(2) {
  animation-delay: 0.12s;
}

.cc-bounce-dots > span:nth-child(3) {
  animation-delay: 0.24s;
}

@keyframes cc-bounce-dot {
  0%,
  80%,
  100% {
    transform: translateY(0);
    opacity: 0.45;
  }

  40% {
    transform: translateY(-0.35rem);
    opacity: 1;
  }
}

.cc-bounce-dots-on-primary > span {
  background-color: rgba(255, 255, 255, 0.95);
}

.cc-customers-sidebar .cc-select-skel-host {
  min-height: calc(1.45em + 0.4rem + 2px);
}

.cc-select-skel-host {
  min-height: 2.35rem;
}

.cc-select-skel-host:has(select[multiple]) {
  min-height: 5.5rem;
}

.cc-select-skel-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: none;
  align-items: center;
  justify-content: flex-start;
  padding: 0 0.65rem;
  pointer-events: none;
  min-height: 100%;
  box-sizing: border-box;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.92) 0%,
    rgba(255, 255, 255, 0.88) 100%
  );
  border-radius: var(--bs-border-radius, 0.375rem);
}

[data-bs-theme='dark'] .cc-select-skel-overlay {
  background: linear-gradient(
    to bottom,
    rgba(33, 37, 41, 0.92) 0%,
    rgba(33, 37, 41, 0.88) 100%
  );
}

.cc-select-loading {
  opacity: 0.32;
}

.cc-skel-label {
  min-height: 1.15rem;
  line-height: 1.15rem;
  display: inline-flex;
  align-items: center;
}

.cc-customers-sidebar .cc-skel-list-row.list-group-item {
  min-height: 2.65rem;
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
  padding-left: 0.9rem;
  padding-right: 0.9rem;
  box-sizing: border-box;
}

.cc-skel-line {
  display: block;
  flex: 0 0 auto;
  height: 0.55rem;
  min-height: 0.55rem;
  max-height: 0.55rem;
  border-radius: 0.25rem;
  background: linear-gradient(
    90deg,
    rgba(1, 69, 79, 0.12) 0%,
    rgba(1, 69, 79, 0.22) 50%,
    rgba(1, 69, 79, 0.12) 100%
  );
  background-size: 200% 100%;
  animation: cc-skel-shimmer 1.1s ease-in-out infinite;
}

[data-bs-theme='dark'] .cc-skel-line {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(255, 255, 255, 0.16) 50%,
    rgba(255, 255, 255, 0.08) 100%
  );
  background-size: 200% 100%;
}

@keyframes cc-skel-shimmer {
  0% {
    background-position: 100% 0;
  }

  100% {
    background-position: -100% 0;
  }
}

.cc-skel-list-row {
  pointer-events: none;
}

.cc-skel-line-w-a {
  width: 72%;
  min-width: 72%;
  max-width: 72%;
}

.cc-skel-line-w-b {
  width: 88%;
  min-width: 88%;
  max-width: 88%;
}

.cc-skel-line-w-c {
  width: 64%;
  min-width: 64%;
  max-width: 64%;
}

.cc-skel-line-w-d {
  width: 92%;
  min-width: 92%;
  max-width: 92%;
}

.cc-skel-line-w-e {
  width: 70%;
  min-width: 70%;
  max-width: 70%;
}

.cc-skel-line-w-f {
  width: 85%;
  min-width: 85%;
  max-width: 85%;
}

#nc-central-sync-banner .progress {
  background-color: rgba(255, 255, 255, 0.25);
}

/* —— App-wide “Recent reports” list rows (dashboard + reports history + command + radar) —— */
body#page-top .cc-modern-report-card {
  border-color: var(--bs-border-color, #dee2e6) !important;
  box-shadow: 0 0.0625rem 0.2rem rgba(0, 0, 0, 0.06) !important;
  overflow: hidden;
}

body#page-top .cc-modern-report-card-header {
  background: var(--bs-secondary-bg, #e9ecef) !important;
}

/* Report / command history filter bar — force light strip + dark text (overrides parent gradient / inherited white) */
body#page-top #content-wrapper #content .cc-modern-report-card > .card-header.cc-report-history-filters,
body#page-top .cc-modern-report-card > .card-header.cc-report-history-filters {
  background: #e9ecef !important;
  background-image: none !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
  color: #212529 !important;
}

body#page-top #content-wrapper #content .cc-modern-report-card > .card-header.cc-report-history-filters .cc-report-history-filter-title,
body#page-top #content-wrapper #content .cc-modern-report-card > .card-header.cc-report-history-filters .form-label.cc-report-history-filter-label,
body#page-top .cc-modern-report-card > .card-header.cc-report-history-filters .cc-report-history-filter-title,
body#page-top .cc-modern-report-card > .card-header.cc-report-history-filters .form-label.cc-report-history-filter-label {
  color: #343a40 !important;
  -webkit-text-fill-color: #343a40 !important;
}

body#page-top #content-wrapper #content .cc-modern-report-card > .card-header.cc-report-history-filters .form-check-label,
body#page-top .cc-modern-report-card > .card-header.cc-report-history-filters .form-check-label {
  color: #212529 !important;
  -webkit-text-fill-color: #212529 !important;
}

body#page-top #content-wrapper #content .cc-modern-report-card > .card-header.cc-report-history-filters .form-control,
body#page-top #content-wrapper #content .cc-modern-report-card > .card-header.cc-report-history-filters .form-select,
body#page-top .cc-modern-report-card > .card-header.cc-report-history-filters .form-control,
body#page-top .cc-modern-report-card > .card-header.cc-report-history-filters .form-select {
  color: #212529 !important;
  -webkit-text-fill-color: #212529 !important;
  background-color: #fff !important;
}

body#page-top #content-wrapper #content .cc-modern-report-card > .card-header.cc-report-history-filters .btn-outline-secondary,
body#page-top .cc-modern-report-card > .card-header.cc-report-history-filters .btn-outline-secondary {
  color: #01454f !important;
  -webkit-text-fill-color: #01454f !important;
  background-color: #fff !important;
}

body#page-top .cc-modern-list-scroll {
  -webkit-overflow-scrolling: touch;
}

body#page-top .activity-item {
  transition: background-color 0.18s ease;
  min-height: 0;
  display: flex;
  align-items: stretch;
}

body#page-top .activity-item > div {
  width: 100%;
}

body#page-top .activity-item.border-bottom:last-child {
  border-bottom: none !important;
}

body#page-top .cc-report-log-item.activity-item,
body#page-top .cc-radar-scan-item.activity-item,
body#page-top .cc-command-identity-item.activity-item,
body#page-top .cc-command-endpoint-item.activity-item {
  cursor: default;
}

body#page-top .cc-report-log-item.activity-item:hover,
body#page-top .cc-radar-scan-item.activity-item:hover,
body#page-top .cc-command-identity-item.activity-item:hover,
body#page-top .cc-command-endpoint-item.activity-item:hover {
  background-color: rgba(0, 0, 0, 0.025);
}

body#page-top .cc-radar-scan-item.activity-item.cc-list-row-active {
  background-color: rgba(1, 69, 79, 0.07);
}

body#page-top .activity-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--bs-secondary-bg, #e9ecef);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

body#page-top .activity-icon-sm {
  width: 28px;
  height: 28px;
}

body#page-top .activity-icon-sm i {
  font-size: 0.72rem;
}

body#page-top .activity-icon i {
  font-size: 1rem;
}

body#page-top .index-recent-title {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25;
  overflow-wrap: break-word;
  word-break: break-word;
  color: var(--bs-body-color, #212529);
}

body#page-top .index-recent-time {
  font-size: 0.7rem;
}

body#page-top .index-recent-meta {
  font-size: 0.72rem;
  line-height: 1.35;
  margin-top: 0.1rem;
}

body#page-top .index-recent-meta-customer {
  min-width: 0;
  flex: 1 1 12rem;
  max-width: 100%;
}

body#page-top a.cc-report-history-download,
body#page-top button.cc-report-history-download {
  font-size: 0.8rem;
  font-weight: 500;
}

body#page-top .cc-report-history-row-actions {
  min-width: 0;
}

body#page-top .cc-report-history-customer-line {
  font-size: 0.72rem;
  line-height: 1.35;
  margin-top: 0.15rem;
}

body#page-top .cc-report-history-meta-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  max-width: min(100%, 26rem);
  margin-top: 0;
}

[data-bs-theme='dark'] body#page-top .cc-modern-report-card-header:not(.cc-report-history-filters) {
  background: rgba(255, 255, 255, 0.06) !important;
}

[data-bs-theme='dark'] body#page-top .activity-icon {
  background-color: rgba(255, 255, 255, 0.08);
}

[data-bs-theme='dark'] body#page-top .cc-report-log-item.activity-item:hover,
[data-bs-theme='dark'] body#page-top .cc-radar-scan-item.activity-item:hover,
[data-bs-theme='dark'] body#page-top .cc-command-identity-item.activity-item:hover,
[data-bs-theme='dark'] body#page-top .cc-command-endpoint-item.activity-item:hover {
  background-color: rgba(255, 255, 255, 0.04);
}

/* Reports route: injected combined/download modal (not from BSS HTML) */
#loading-spinner {
  flex-direction: row;
  align-items: center;
  justify-content: center;
}
#loading-spinner .cc-report-download-spinner-panel,
#loading-spinner .cc-report-download-spinner-panel .mt-3 {
  text-align: center;
}
#loading-spinner #spinner-status {
  text-align: center;
}
#loading-spinner .cc-report-download-spinner-note {
  text-align: center;
  text-wrap: balance;
}

/* Reports: per-customer download buttons while select-customer + enrichment runs */
#singlecustomertabs a.cc-report-download-btn-loading {
  position: relative;
  pointer-events: none;
  opacity: 0.72;
}
#singlecustomertabs a.cc-report-download-btn-loading::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.55);
  border-radius: inherit;
  z-index: 1;
}
#singlecustomertabs a.cc-report-download-btn-loading::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1.25rem;
  height: 1.25rem;
  margin: -0.625rem 0 0 -0.625rem;
  border: 0.15em solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: cc-report-dl-spin 0.65s linear infinite;
  z-index: 2;
}
[data-bs-theme='dark'] #singlecustomertabs a.cc-report-download-btn-loading::before {
  background: rgba(0, 0, 0, 0.35);
}
@keyframes cc-report-dl-spin {
  to {
    transform: rotate(360deg);
  }
}

.cc-customers-main-loading {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(2px);
}
[data-bs-theme='dark'] .cc-customers-main-loading {
  background: rgba(33, 37, 41, 0.94);
}

/* Ingest admin + route inventory: same header pattern as unified-log (thead.table-light). BS5 inset
   box-shadow on th/td can wash out header contrast. */
table.ingest-table > thead.table-light > tr > th,
table.route-inventory-table > thead.table-light > tr > th {
  box-shadow: none !important;
  font-weight: 600;
  text-transform: none;
}

/* Route inventory under #content: match CcGlobalUiInject thead specificity so box-shadow reset applies. */
body#page-top #content-wrapper #content table.route-inventory-table > thead.table-light > tr > th {
  box-shadow: none !important;
  font-weight: 600;
  text-transform: none;
}

/* Route inventory: leave space for fixed jump-to-top; keep table stacking below it */
.route-inventory-panel {
  padding-bottom: 4.5rem;
}
.route-inventory-table-scroll {
  position: relative;
  z-index: 0;
  isolation: isolate;
}
body#page-top a.scroll-to-top {
  position: fixed !important;
  z-index: 1040 !important;
}

/* Ingest payload modal injested-data header: overridden in CcGlobalUiInject (needs body#page-top + modal id to beat injected .modal .table thead rules). */
#ingest-payload-modal .ingest-request-payload-details > summary {
  cursor: pointer;
}
