/* Ifanger palette from the approved clickdummy. Loaded after Sneat core.css.
   Override Sneat/Bootstrap tokens, never the vendor sources or component rules.
   https://demos.themeselection.com/sneat-bootstrap-html-admin-template/documentation/customization-sass.html
*/
:root,
[data-bs-theme="light"] {
  --bs-primary: #019d9c;
  --bs-primary-rgb: 1, 157, 156;
  --bs-primary-contrast: var(--bs-white);
  --bs-primary-text-emphasis: #005e5d;
  --bs-primary-bg-subtle: #e0f3f2;
  --bs-primary-border-subtle: #9adbd9;
  --bs-link-color: #007775;
  --bs-link-color-rgb: 0, 119, 117;
  --bs-link-hover-color: #005e5d;
  --bs-link-hover-color-rgb: 0, 94, 93;
}

[data-bs-theme="dark"] {
  --bs-primary: #2ccac6;
  --bs-primary-rgb: 44, 202, 198;
  --bs-primary-contrast: #002524;
  --bs-primary-text-emphasis: #7bdfdc;
  --bs-primary-bg-subtle: #073d3b;
  --bs-primary-border-subtle: #0b6966;
  --bs-link-color: #2ccac6;
  --bs-link-color-rgb: 44, 202, 198;
  --bs-link-hover-color: #7bdfdc;
  --bs-link-hover-color-rgb: 123, 223, 220;
}

.btn-primary,
.btn-outline-primary {
  --bs-btn-focus-shadow-rgb: var(--bs-primary-rgb);
}

.progress {
  --bs-progress-bar-bg: var(--bs-primary);
}

.crm-global-banner {
  white-space: pre-line;
  overflow-wrap: anywhere;
}

/* Example: avatar initials sizing */
.avatar-initial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-weight: 600;
}


/* Local UI states and readable multi-value filters. */
.is-loading body { cursor: progress; }
.crm-filter-options { max-height: 20rem; min-width: 14rem; overflow-y: auto; }
[aria-busy="true"] { cursor: progress; }
.crm-report-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.crm-customer-table { min-width: 48rem; }
.crm-customer-table td:first-child { white-space: nowrap; }
.crm-brand-logo { width: 8rem; height: auto; }

.crm-global-search { min-width: 0; }
.crm-global-search input { min-width: 0; }
.crm-global-search-popup { z-index: 1080; max-height: 65vh; overflow-y: auto; }
.crm-search-link:hover, .crm-search-link:focus-visible { background: var(--bs-primary-bg-subtle); }
@media (max-width: 575.98px) {
  .crm-global-search { position: static !important; }
}

.crm-page, .crm-page-heading { min-width: 0; }
.crm-page:focus { outline: none; }
.crm-page-actions:empty { display: none !important; }
.crm-page-actions > .btn { white-space: nowrap; }
.crm-user-summary { max-width: 18rem; }
.crm-field-errors { white-space: pre-line; }
:focus-visible { outline: 2px solid var(--bs-primary); outline-offset: 3px; }
@media (max-width: 575.98px) {
  .crm-page-actions { width: 100%; }
  .crm-page-actions > .btn { flex: 1; }
  .modal-footer > .btn { flex: 1; }
}
