* { box-sizing: border-box; }
body { margin: 0; font-family: Arial, sans-serif; color: #1f2933; background: #f6f7f8; font-size: 16px; line-height: 1.45; }
body.app-shell { height: 100vh; overflow: hidden; display: flex; flex-direction: column; }
a { color: var(--tis-primary-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
.page { width: 100%; max-width: 1320px; margin: 0 auto; padding: 22px 12px 44px; }
body.app-shell .page { width: 100%; flex: 1 1 auto; overflow-y: auto; }
.page[data-loading] {
  opacity: 0.58;
  pointer-events: none;
  filter: saturate(0.85);
  transition: opacity 140ms ease, filter 140ms ease;
}
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 1075;
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 140ms ease, visibility 140ms ease;
}
.page-loader.is-active {
  opacity: 1;
  visibility: visible;
}
.page-loader-card {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  min-width: 300px;
  padding: 14px 24px 14px 16px;
  color: #1f2933;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #d9dee5;
  border-radius: 999px;
  box-shadow: 0 0.65rem 1.8rem rgba(31, 41, 51, 0.18);
  font-weight: 700;
}
.page-loader-animation {
  display: block;
  width: 132px;
  height: 132px;
  pointer-events: none;
}
.page-header { display: flex; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.section, .card { background: #fff; border: 1px solid #d9dee5; border-radius: 6px; padding: 16px; margin-bottom: 16px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.table-wrapper { overflow-x: auto; background: #fff; border: 1px solid #d9dee5; border-radius: 6px; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 9px 10px; border-bottom: 1px solid #e5e8ed; text-align: left; vertical-align: top; }
th { background: #f1f3f5; font-weight: 700; }
.table > :not(caption) > * > * { vertical-align: middle; }
table.dataTable.table > thead > tr > th:first-child,
table.dataTable.table > tbody > tr > td:first-child {
  text-align: left;
}
.dt-container > .row {
  --bs-gutter-x: 0;
  margin-left: 0;
  margin-right: 0;
}
th.sortable { cursor: pointer; user-select: none; }
th.sortable::after { content: " ↕"; color: #667085; font-weight: 400; }
.table-clickable-row { cursor: pointer; }
.table-photo-thumb {
  width: 42px;
  height: 42px;
  border: 1px solid #d9dee5;
  border-radius: 50%;
  object-fit: contain;
  background: #fff;
}
.cat-table-name {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.cat-sex-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--tis-secondary) 12%, #fff);
  color: var(--tis-secondary-dark);
  font-size: 1rem;
}
.cat-sex-icon-male {
  background: color-mix(in srgb, #2f80ed 14%, #fff);
  color: #1d5fb8;
}
.cat-sex-icon-female {
  background: color-mix(in srgb, #e85d9e 14%, #fff);
  color: #b83272;
}
.cat-sex-picker {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: calc(1.5em + 0.75rem + 2px);
}
.cat-sex-picker-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.cat-sex-picker-option {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  cursor: pointer;
  transition: transform 140ms ease;
}
.cat-sex-picker-option .cat-sex-icon {
  background: color-mix(in srgb, var(--tis-secondary) 10%, #fff);
  color: #667085;
}
.cat-sex-picker-input:focus-visible + .cat-sex-picker-option {
  outline: 2px solid rgba(94, 158, 247, 0.45);
  outline-offset: 3px;
}
.cat-sex-picker-input:checked + .cat-sex-picker-option {
  transform: scale(1.06);
}
.cat-sex-picker-input:checked + .cat-sex-picker-option .cat-sex-icon-female {
  background: color-mix(in srgb, #e85d9e 14%, #fff);
  color: #b83272;
}
.cat-sex-picker-input:checked + .cat-sex-picker-option .cat-sex-icon-male {
  background: color-mix(in srgb, #2f80ed 14%, #fff);
  color: #1d5fb8;
}
.cat-index-title {
  min-width: 0;
}
.cat-list-badge {
  display: inline-flex;
  align-items: center;
  max-width: 190px;
  min-height: 32px;
  padding: 4px 9px;
  color: #1f2933;
  background: #fff;
  border-color: #d9dee5 !important;
  border-radius: 8px;
  white-space: normal;
  line-height: 1.15;
  text-align: left;
}
.cat-care-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 520px;
  overflow-y: auto;
  padding-right: 4px;
}
.cat-care-card {
  padding: 14px;
  background: #fff;
  border: 1px solid #d9dee5;
  border-left: 4px solid var(--tis-success);
  border-radius: 6px;
}
.cat-care-card.is-closed {
  background: #f8fafc;
  border-left-color: #98a2b3;
  color: #667085;
}
.cat-care-card.is-closed h3 {
  text-decoration: line-through;
}
.cat-care-meta {
  display: grid;
  gap: 6px;
}
.cat-care-meta > div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 8px;
}
.cat-care-meta dt {
  color: #667085;
  font-weight: 700;
}
.cat-care-meta dd {
  margin: 0;
}
.adoption-readiness-list {
  display: grid;
  gap: 10px;
}
.adoption-readiness-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--tis-danger) 42%, #d9dee5);
  border-radius: 6px;
}
.adoption-readiness-item.is-passed {
  border-color: color-mix(in srgb, var(--tis-success) 46%, #d9dee5);
  background: color-mix(in srgb, var(--tis-success) 8%, #fff);
}
.adoption-readiness-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: var(--tis-danger-dark);
  background: color-mix(in srgb, var(--tis-danger) 14%, #fff);
  border-radius: 50%;
  font-size: 1.25rem;
}
.adoption-readiness-item.is-passed .adoption-readiness-icon {
  color: var(--tis-success-dark);
  background: color-mix(in srgb, var(--tis-success) 18%, #fff);
}
.cat-contact-summary-header {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
}
.image-viewer-trigger {
  cursor: zoom-in;
}
.image-viewer-image {
  max-width: min(100%, 1400px);
  max-height: calc(100vh - 120px);
  object-fit: contain;
}
.support-ticket-link {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1040;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 44px;
  height: 44px;
  padding: 0 12px;
  overflow: hidden;
  color: #fff;
  white-space: nowrap;
  background: var(--tis-danger-dark);
  border-radius: 999px;
  box-shadow: 0 0.45rem 1rem rgba(31, 41, 51, 0.22);
  transition: max-width 160ms ease, transform 160ms ease, background-color 160ms ease;
}
.support-ticket-link:hover,
.support-ticket-link:focus {
  max-width: 210px;
  color: #fff;
  text-decoration: none;
  background: var(--tis-danger);
  transform: translateY(-2px) scale(1.04);
}
.support-ticket-link i {
  flex: 0 0 auto;
  font-size: 1.25rem;
  line-height: 1;
}
.support-ticket-link span {
  opacity: 0;
  font-size: 0.92rem;
  font-weight: 700;
  transition: opacity 120ms ease;
}
.support-ticket-link:hover span,
.support-ticket-link:focus span {
  opacity: 1;
}
.app-support-menu-link {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  color: var(--tis-danger-dark);
  background: color-mix(in srgb, var(--tis-danger) 12%, #fff);
  border: 1px solid color-mix(in srgb, var(--tis-danger) 35%, #d9dee5);
  border-radius: 999px;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.2;
}
.app-support-menu-link:hover,
.app-support-menu-link:focus {
  color: var(--tis-danger-dark);
  background: color-mix(in srgb, var(--tis-danger) 18%, #fff);
  text-decoration: none;
}
.app-version-badge {
  position: fixed;
  right: 18px;
  bottom: 70px;
  z-index: 1039;
  padding: 4px 9px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--tis-secondary);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #d9dee5;
  border-radius: 999px;
  box-shadow: 0 0.25rem 0.8rem rgba(31, 41, 51, 0.1);
}
.app-version-menu-badge {
  display: none;
  color: #1f2933;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.2;
}
.app-menu-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}
.app-toast-container {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 1085;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(380px, calc(100vw - 36px));
  pointer-events: none;
}
.app-toast {
  width: 100%;
  border-radius: 6px;
  box-shadow: 0 0.55rem 1.35rem rgba(31, 41, 51, 0.24);
  pointer-events: auto;
}
.app-toast .toast-body {
  overflow-wrap: anywhere;
}
.cat-status-modal {
  overflow: hidden;
}
.cat-status-modal-header {
  align-items: center;
}
.cat-status-modal-title {
  min-width: 0;
}
.cat-status-modal-kicker {
  margin-bottom: 2px;
  color: var(--tis-primary-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}
.cat-status-selected {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px solid #d9dee5;
  border-radius: 6px;
}
.cat-status-selected[hidden] {
  display: none !important;
}
.cat-status-selected-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: var(--tis-primary-dark);
  background: color-mix(in srgb, var(--tis-primary) 16%, #fff);
  border-radius: 999px;
}
.nav-pills .nav-link {
  color: var(--bs-body-color);
}
.nav-pills .nav-link.active {
  background: color-mix(in srgb, var(--tis-primary) 14%, #fff);
  color: var(--tis-primary-dark);
  font-weight: 700;
}
.form { max-width: 760px; }
.form-row { display: grid; gap: 6px; margin-bottom: 12px; }
.form-row-inline { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
input, select, textarea { width: 100%; padding: 8px 9px; border: 1px solid #b8c0cc; border-radius: 4px; font: inherit; background: #fff; }
textarea { min-height: 90px; }
.form-label-with-help {
  display: inline-flex;
  gap: 5px;
  align-items: center;
}
.label-help-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: #667085;
  background: transparent;
  border: 0;
  font-size: 0.9rem;
  line-height: 1;
}
.label-help-button:hover,
.label-help-button:focus {
  color: var(--tis-primary-dark);
}
.rich-text-editor {
  border: 1px solid #b8c0cc;
  border-radius: 4px;
  background: #fff;
}
.rich-text-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 6px;
  border-bottom: 1px solid #e5e8ed;
  background: #f8fafc;
}
.rich-text-toolbar button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #1f2933;
}
.rich-text-toolbar button:hover,
.rich-text-toolbar button:focus {
  background: color-mix(in srgb, var(--tis-primary) 14%, #fff);
  color: var(--tis-primary-dark);
}
.rich-text-surface {
  min-height: 180px;
  padding: 10px 12px;
  outline: none;
  overflow-wrap: anywhere;
}
.rich-text-surface:focus {
  box-shadow: 0 0 0 0.25rem rgba(94, 158, 247, 0.25);
}
.rich-text-surface[contenteditable="false"] {
  background: #f8fafc;
}
.rich-text-surface > :last-child {
  margin-bottom: 0;
}
.form-actions { display: flex; gap: 10px; margin-top: 16px; }
.button { display: inline-block; border: 1px solid #9aa6b2; border-radius: 4px; padding: 7px 11px; background: #fff; color: #1f2933; cursor: pointer; font: inherit; }
.button-primary { background: var(--tis-primary); border-color: var(--tis-primary); color: #000; }
.button-secondary { background: #eef1f4; }
.button-danger { background: var(--tis-danger); border-color: var(--tis-danger); color: #000; }
.address-autocomplete {
  position: relative;
}
.batch-code-autocomplete {
  position: relative;
}
.option-autocomplete {
  position: relative;
}
.address-autocomplete-menu {
  position: absolute;
  top: calc(100% - 14px);
  right: 0;
  left: 0;
  z-index: 1056;
  max-height: 280px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #cfd6df;
  border-radius: 6px;
}
.batch-code-autocomplete-menu {
  position: absolute;
  top: calc(100% - 14px);
  right: 0;
  left: 0;
  z-index: 1056;
  max-height: 280px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #cfd6df;
  border-radius: 6px;
}
.option-autocomplete-menu {
  position: absolute;
  top: calc(100% + 2px);
  right: 0;
  left: 0;
  z-index: 1062;
  max-height: 280px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #cfd6df;
  border-radius: 6px;
}
.address-autocomplete-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 8px;
  width: 100%;
  padding: 9px 11px;
  color: #1f2933;
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #edf0f3;
}
.batch-code-autocomplete-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 8px;
  width: 100%;
  padding: 9px 11px;
  color: #1f2933;
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #edf0f3;
}
.option-autocomplete-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 8px;
  width: 100%;
  padding: 9px 11px;
  color: #1f2933;
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #edf0f3;
}
.address-autocomplete-item:last-child {
  border-bottom: 0;
}
.batch-code-autocomplete-item:last-child {
  border-bottom: 0;
}
.option-autocomplete-item:last-child {
  border-bottom: 0;
}
.address-autocomplete-item:hover,
.address-autocomplete-item.is-active {
  background: color-mix(in srgb, var(--tis-primary) 12%, #fff);
}
.batch-code-autocomplete-item:hover,
.batch-code-autocomplete-item.is-active {
  background: color-mix(in srgb, var(--tis-primary) 12%, #fff);
}
.option-autocomplete-item:hover,
.option-autocomplete-item.is-active {
  background: color-mix(in srgb, var(--tis-primary) 12%, #fff);
}
.address-autocomplete-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--tis-primary-dark);
  font-size: 1.1rem;
}
.batch-code-autocomplete-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--tis-primary-dark);
  font-size: 1.1rem;
}
.option-autocomplete-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--tis-primary-dark);
  font-size: 1.1rem;
}
.address-autocomplete-label,
.address-autocomplete-source {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.batch-code-autocomplete-label,
.batch-code-autocomplete-source {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.option-autocomplete-label,
.option-autocomplete-source {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.address-autocomplete-label {
  font-weight: 700;
}
.batch-code-autocomplete-label {
  font-weight: 700;
}
.option-autocomplete-label {
  font-weight: 700;
}
.address-autocomplete-source {
  color: #667085;
  font-size: 0.82rem;
}
.batch-code-autocomplete-source {
  color: #667085;
  font-size: 0.82rem;
}
.option-autocomplete-source {
  color: #667085;
  font-size: 0.82rem;
}
.address-autocomplete-empty {
  padding: 10px 12px;
  color: #667085;
}
.batch-code-autocomplete-empty {
  padding: 10px 12px;
  color: #667085;
}
.option-autocomplete-empty {
  padding: 10px 12px;
  color: #667085;
}
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.table-toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}
.table-toolbar-summary {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  order: 2;
}
.table-filter-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.table-filter-toggle.btn-dark {
  --bs-btn-color: #fff;
  --bs-btn-bg: #424649;
  --bs-btn-border-color: #424649;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #343a40;
  --bs-btn-hover-border-color: #343a40;
  --bs-btn-focus-shadow-rgb: 66, 70, 73;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #343a40;
  --bs-btn-active-border-color: #343a40;
  background: #424649;
  border-color: #424649;
}
.table-filter-icon-close,
.table-filter-label-close {
  display: none;
}
.table-toolbar.is-open .table-filter-icon-open,
.table-toolbar.is-open .table-filter-label-open {
  display: none;
}
.table-toolbar.is-open .table-filter-icon-close,
.table-toolbar.is-open .table-filter-label-close {
  display: inline;
}
.table-filter-controls {
  flex: 1 1 auto;
  order: 1;
}
.table-filter-controls .choices {
  min-width: 220px;
  margin-bottom: 0;
}
.table-filter-controls .choices__inner {
  min-height: 38px;
  border-color: #dee2e6;
  border-radius: 0.375rem;
  background: #fff;
}
.table-filter-controls .choices__list--multiple .choices__item {
  border-color: var(--tis-primary);
  background: var(--tis-primary);
  color: #000;
}
.table-length-control {
  min-width: 150px;
}
.mobile-card-list {
  display: none;
}
.mobile-table-sortbar {
  display: none;
}
.mobile-table-sort-button {
  min-width: 0;
  padding: 5px 7px;
  overflow: hidden;
  color: #4d5c69;
  background: #f1f3f5;
  border-color: #d9dee5;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mobile-table-sort-button:hover,
.mobile-table-sort-button:focus {
  color: #1f2933;
  background: #e9edf2;
  border-color: #cfd6df;
}
.mobile-table-sort-button.is-active {
  color: #1f2933;
  background: #e2e7ed;
  border-color: #c5ced8;
}
.mobile-table-sort-button.is-active::after {
  margin-left: 3px;
  content: "↑";
}
.mobile-table-sort-button.is-active[data-sort-direction="desc"]::after {
  content: "↓";
}
.mobile-table-empty {
  padding: 14px;
  color: #667085;
  text-align: center;
  background: #fff;
  border: 1px solid #d9dee5;
  border-radius: 8px;
}
.mobile-table-card {
  display: grid;
  gap: 0;
  padding: 10px;
  background: #fff;
  border: 1px solid #d9dee5;
  border-radius: 8px;
}
.mobile-table-card.is-clickable {
  cursor: pointer;
}
.mobile-table-card.is-clickable:hover {
  border-color: color-mix(in srgb, var(--tis-primary) 35%, #d9dee5);
  box-shadow: 0 0.2rem 0.7rem rgba(31, 41, 51, 0.08);
}
.cat-mobile-card-main {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}
.cat-mobile-card-photo .table-photo-thumb {
  width: 58px;
  height: 58px;
}
.cat-mobile-card-body {
  display: grid;
  min-width: 0;
  gap: 6px;
}
.cat-mobile-card-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-width: 0;
  gap: 8px;
  align-items: start;
}
.cat-mobile-card-name {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  align-items: center;
  min-width: 0;
}
.cat-mobile-card-name .cat-table-name {
  align-items: center;
}
.cat-mobile-card-name .cat-table-name > span:last-child > span:first-child {
  font-weight: 700;
}
.cat-mobile-age-line {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  align-items: center;
  line-height: 1.2;
}
.cat-mobile-age-line .cat-mobile-health-badges {
  align-items: center;
}
.cat-mobile-id {
  color: #667085;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.45rem;
}
.cat-mobile-card-name .cat-table-name > span:last-child {
  min-width: 0;
}
.cat-mobile-card-side {
  display: grid;
  gap: 4px;
  justify-items: end;
  min-width: 72px;
}
.cat-mobile-card-status,
.cat-mobile-health-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.cat-mobile-health-badges {
  justify-content: flex-start;
}
.cat-mobile-card-status {
  justify-content: flex-end;
  padding-top: 2px;
}
.cat-mobile-card-status .badge,
.cat-mobile-health-badges .badge {
  max-width: 96px;
  overflow: hidden;
  font-size: 0.68rem;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cat-mobile-card-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 108px;
  gap: 8px;
  align-items: end;
}
.cat-mobile-card-meta {
  display: grid;
  gap: 5px;
  min-width: 0;
}
.cat-mobile-card-intake {
  overflow: hidden;
  color: #1f2933;
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mobile-table-card-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
  margin: 0;
}
.mobile-table-card-fields > div {
  min-width: 0;
}
.mobile-table-card-fields dt {
  color: #667085;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1.2;
}
.mobile-table-card-fields dd {
  margin: 1px 0 0;
  overflow: hidden;
  color: #1f2933;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mobile-table-card-actions {
  min-width: 0;
}
.mobile-table-card-actions > .d-flex {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px !important;
}
.mobile-table-card-actions .btn {
  width: 100%;
  min-width: 0;
  padding: 0.24rem 0.4rem;
  overflow: hidden;
  font-size: 0.72rem;
  line-height: 1.15;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mobile-table-card-actions .cat-status-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.mobile-table-card-actions .cat-status-action-label {
  display: none;
}
.mobile-table-card-actions > .d-flex > .btn:only-child {
  grid-column: 1 / -1;
}
.contact-mobile-card {
  gap: 10px;
}
.contact-mobile-card-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
  min-width: 0;
}
.contact-mobile-card-title {
  min-width: 0;
}
.contact-mobile-name {
  overflow: hidden;
  color: #1f2933;
  font-weight: 700;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.contact-mobile-type {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  align-items: center;
  margin-top: 2px;
  color: #667085;
  font-size: 0.86rem;
  line-height: 1.2;
}
.contact-mobile-company::before {
  content: "·";
  margin-right: 6px;
  color: #98a2b3;
}
.contact-mobile-card-side {
  display: grid;
  gap: 5px;
  justify-content: flex-end;
  justify-items: end;
  min-width: 68px;
  padding-top: 1px;
}
.contact-mobile-card-actions .d-flex {
  gap: 0 !important;
}
.contact-mobile-card-actions .btn {
  min-width: 0;
  padding: 0.24rem 0.55rem;
  font-size: 0.72rem;
  line-height: 1.15;
}
.contact-mobile-card-side .badge {
  max-width: 96px;
  overflow: hidden;
  font-size: 0.68rem;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.contact-mobile-card-meta {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.contact-mobile-card-meta > div {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 6px;
  align-items: center;
  min-width: 0;
  color: #1f2933;
  font-size: 0.9rem;
  line-height: 1.25;
}
.contact-mobile-card-meta i {
  font-size: 0.95rem;
}
.contact-mobile-card-meta span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.muted { color: #667085; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.login-page { min-height: calc(100vh - 66px); }
.navbar .navbar-nav .nav-link {
  position: relative;
  color: var(--bs-body-color);
}
.navbar .navbar-nav .nav-link.active {
  background: transparent;
  color: var(--bs-body-color);
  font-weight: 700;
}
.navbar .navbar-nav .nav-link.active::before {
  position: absolute;
  right: 0.5rem;
  bottom: calc(var(--bs-navbar-padding-y) * -1);
  left: 0.5rem;
  height: 2px;
  content: "";
  background: var(--bs-body-color);
  border-radius: 999px;
}
.navbar-toggler:focus {
  box-shadow: none;
}
.navbar-toggler:focus-visible {
  outline: 2px solid rgba(47, 110, 212, 0.45);
  outline-offset: 3px;
}
.navbar-user {
  border-left: 1px solid #d9dee5;
}
.navbar-avatar {
  width: 36px;
  height: 36px;
  border: 1px solid #d9dee5;
  border-radius: 50%;
  object-fit: cover;
}
.navbar-avatar-empty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--tis-secondary-dark);
  font-size: 1.15rem;
}
.navbar-user .dropdown-toggle > .d-inline-flex.rounded-circle {
  display: none !important;
}
.profile-avatar-preview {
  width: 112px;
  height: 112px;
  border: 1px solid #d9dee5;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
}
.profile-avatar-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--tis-secondary-dark);
  font-size: 3rem;
}
.cat-placeholder-photo {
  width: 100%;
  aspect-ratio: 3 / 2;
  border: 1px solid #d9dee5;
  border-radius: 6px;
  object-fit: cover;
  background: #fff;
}
.profile-meta {
  color: #667085;
  font-size: 0.95rem;
}
.profile-page {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}
.profile-page-tabs {
  flex: 1 1 auto;
  min-height: 0;
}
.profile-page-tabs > .tab-pane.active {
  height: 100%;
  min-height: 0;
}
.profile-notifications-pane.active {
  display: flex;
  flex-direction: column;
}
.profile-notifications-layout {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
}
.profile-notifications-layout .dt-container {
  min-height: 0;
}
.profile-notifications-layout .dt-search {
  margin-bottom: 0.75rem;
}
.profile-notifications-layout .dt-search input {
  margin-left: 0.5rem;
}
.profile-notifications-layout .dt-scroll-body {
  border-bottom: 0;
}
.filepond--credits { display: none; }
.filepond--root { margin-bottom: 0; }
.filepond--panel-root {
  background: var(--bs-light);
  border: 1px solid var(--bs-border-color);
}
.filepond--drop-label { color: var(--bs-body-color); }
.profile-photo-upload .filepond--root {
  width: 220px;
  height: 220px;
}
.profile-photo-upload .filepond--drop-label {
  padding: 1rem;
  text-align: center;
}
.profile-photo-upload .filepond--label-action {
  color: var(--tis-primary-dark);
  font-weight: 700;
  text-decoration: none;
}
.cat-photo-upload .filepond--root {
  width: 180px;
  height: 180px;
  margin-right: auto;
  margin-left: auto;
}
.cat-photo-upload .filepond--drop-label {
  padding: 1rem;
  text-align: center;
}
.cat-photo-upload .filepond--label-action {
  color: var(--tis-primary-dark);
  font-weight: 700;
  text-decoration: none;
}
.profile-photo-column {
  min-height: 330px;
}
.notification-menu {
  width: min(420px, calc(100vw - 24px));
}
.notification-list {
  max-height: 430px;
  overflow-y: auto;
}
.notification-list-page {
  max-height: none;
  overflow: visible;
}
.notification-list-page-scroll {
  flex: 1 1 auto;
  max-height: none;
  min-height: 0;
  overflow-y: auto;
}
.notification-item {
  padding: 12px 14px;
  border-bottom: 1px solid #e5e8ed;
  background: #fff;
}
.notification-item:last-child {
  border-bottom: 0;
}
.notification-item-unread {
  background: color-mix(in srgb, var(--tis-primary) 8%, #fff);
}
.notification-icon {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--tis-primary) 13%, #fff);
  color: var(--tis-primary-dark);
}
.notification-setting-row .notification-icon { align-self: center; }
.global-search {
  position: relative;
  width: min(360px, 100%);
}
.global-search .input-group {
  min-width: 260px;
}
.global-search-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  z-index: 1080;
  overflow: hidden;
  border: 1px solid #d9dee5;
  border-radius: 6px;
  background: #fff;
}
.global-search-results {
  display: grid;
  max-height: min(420px, calc(100vh - 130px));
  overflow-y: auto;
}
.global-search-item {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-bottom: 1px solid #eef1f4;
  background: #fff;
  color: #1f2933;
  text-align: left;
}
.global-search-item:hover,
.global-search-item.is-active {
  background: color-mix(in srgb, var(--tis-primary) 9%, #fff);
}
.global-search-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: #eef6ff;
  color: var(--tis-primary-dark);
  font-size: 1rem;
}
.global-search-title {
  overflow: hidden;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.global-search-subtitle {
  overflow: hidden;
  color: #667085;
  font-size: 0.82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.global-search-label {
  color: #667085;
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}
.global-search-empty,
.global-search-hint {
  padding: 9px 10px;
  color: #667085;
  font-size: 0.82rem;
}
.global-search-hint {
  border-top: 1px solid #eef1f4;
  background: #fbfcfd;
}
.contact-detail-tabs {
  margin: -4px -4px 0;
}
.contact-detail-content {
  padding-top: 16px;
}
.contact-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}
.contact-detail-item {
  min-width: 0;
  padding: 12px;
  border: 1px solid #d9dee5;
  border-radius: 6px;
  background: #fbfcfd;
}
.contact-detail-item span,
.contact-note-block span {
  display: block;
  color: #667085;
  font-size: 0.82rem;
  font-weight: 700;
}
.contact-detail-item strong {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
}
.contact-note-block {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #d9dee5;
  border-radius: 6px;
  background: #fff;
}
.contact-note-block p {
  margin: 6px 0 0;
  white-space: pre-wrap;
}
.contact-note-muted {
  background: #fbfcfd;
}
.entity-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.entity-link-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid #d9dee5;
  border-radius: 8px;
  background: #fbfcfd;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}
.entity-link-card:hover {
  border-color: rgba(40, 112, 184, 0.35);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.07);
  transform: translateY(-1px);
}
.entity-link-card-meta,
.entity-link-card-subtitle {
  color: #667085;
  font-size: 0.82rem;
  font-weight: 700;
}
.entity-link-card-title {
  display: block;
  margin: 4px 0;
  overflow-wrap: anywhere;
  color: var(--tis-primary-dark);
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
}
.entity-link-card-title:hover {
  color: var(--tis-primary);
  text-decoration: underline;
}
.contact-document-upload {
  display: grid;
  grid-template-columns: minmax(160px, 220px) minmax(220px, 1fr) minmax(220px, 1fr) auto;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid #d9dee5;
  border-radius: 6px;
  background: #fbfcfd;
}
.contact-document-submit .btn {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  justify-content: center;
  min-height: 38px;
}
.contact-detail-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  padding-top: 0.9rem;
}
.contact-detail-save {
  width: 50%;
  min-width: 180px;
}
.document-file-name {
  display: inline-flex;
  min-width: 0;
  gap: 8px;
  align-items: center;
}
.document-file-icon {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: #eef6ff;
  color: var(--tis-primary-dark);
  font-size: 1.08rem;
}
.document-file-link {
  color: var(--tis-primary-dark);
  font-weight: 600;
  text-decoration: none;
}
.document-file-link:hover {
  color: var(--tis-primary);
  text-decoration: underline;
}
.document-viewable-row {
  --bs-table-bg: #f8fbff;
  --bs-table-hover-bg: #eef6ff;
}
.document-viewable-row .document-file-icon {
  background: #dcecff;
  box-shadow: inset 0 0 0 1px rgba(40, 112, 184, 0.14);
}
.document-viewable-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #e8f3ff;
  color: var(--tis-primary-dark);
  font-size: 0.76rem;
  font-weight: 700;
  text-decoration: none;
}
.file-viewer-shell {
  display: flex;
  min-height: min(72vh, 820px);
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid #d9dee5;
  border-radius: 8px;
  background: #f8fafc;
}
.file-viewer-frame {
  width: 100%;
  min-height: min(72vh, 820px);
  border: 0;
  background: #fff;
}
.file-viewer-image {
  display: block;
  max-width: 100%;
  max-height: min(72vh, 820px);
  object-fit: contain;
}
.file-viewer-media {
  width: 100%;
  max-height: min(72vh, 820px);
  background: #111827;
}
.file-viewer-audio {
  display: flex;
  width: min(680px, 100%);
  align-items: center;
  gap: 16px;
  padding: 24px;
}
.file-viewer-audio i {
  color: var(--tis-primary-dark);
  font-size: 2rem;
}
.file-viewer-audio audio {
  width: 100%;
}
.dashboard-card .list-group-item:first-child {
  border-top: 0;
}
.dashboard-mobile-collapse-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 0;
  margin-bottom: 1rem;
  color: inherit;
  background: transparent;
  border: 0;
  text-align: left;
}
.dashboard-mobile-collapse-chevron {
  display: none;
  flex: 0 0 auto;
  color: #667085;
  transition: transform 160ms ease;
}
.dashboard-mobile-collapse-toggle[aria-expanded="true"] .dashboard-mobile-collapse-chevron {
  transform: rotate(180deg);
}
.dashboard-card-icon {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.1rem;
}
.dashboard-placeholder {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 190px;
  padding: 18px;
  border: 1px dashed #b8c0cc;
  border-radius: 6px;
  background: #fbfcfd;
}
.dashboard-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}
.dashboard-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
}
.statistics-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  padding: 14px;
  border: 1px solid #d9dee5;
  border-radius: 6px;
  background: #fff;
}
.statistics-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}
.statistics-summary-card {
  padding: 14px;
  border: 1px solid #d9dee5;
  border-radius: 6px;
  background: #fff;
}
.statistics-summary-card span {
  display: block;
  color: #667085;
  font-size: 0.86rem;
}
.statistics-summary-card strong {
  display: block;
  margin-top: 4px;
  font-size: 1.8rem;
  line-height: 1;
}
.statistics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 16px;
}
.statistics-panel {
  min-width: 0;
  padding: 14px;
  border: 1px solid #d9dee5;
  border-radius: 6px;
  background: #fff;
}
.statistics-panel-wide {
  grid-column: 1 / -1;
}
.statistics-panel h2 {
  margin: 0 0 10px;
  font-size: 1rem;
  font-weight: 800;
}
.statistics-panel canvas {
  display: block;
  width: 100%;
  height: 280px;
}
.notification-settings {
  display: grid;
  gap: 10px;
}
.notification-setting-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 12px;
  border: 1px solid #e5e8ed;
  border-radius: 6px;
  background: #fff;
}
.notification-setting-row[data-save-state="saving"] {
  opacity: 0.72;
}
.notification-setting-row[data-save-state="saved"] {
  border-color: color-mix(in srgb, var(--tis-success) 48%, #e5e8ed);
}
.notification-setting-row[data-save-state="error"] {
  border-color: color-mix(in srgb, var(--tis-danger) 60%, #e5e8ed);
}
.notification-row-status {
  color: var(--tis-success-dark);
}
.notification-row-status:empty { display: none; }
.notification-setting-row[data-save-state="error"] .notification-row-status {
  color: var(--tis-danger-dark);
}
.notification-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: flex-end;
}
.task-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 360px);
  gap: 16px;
  align-items: start;
  min-height: 0;
}
.task-calendar-column,
.task-list-column {
  min-width: 0;
}
.task-calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(112px, 1fr));
  gap: 10px;
}
.task-day {
  display: flex;
  flex-direction: column;
  min-height: 154px;
  padding: 10px;
  border: 1px solid #d9dee5;
  border-radius: 6px;
  background: #fff;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}
.task-day:hover,
.task-date-active.task-day {
  border-color: var(--tis-primary);
  box-shadow: 0 0.35rem 0.9rem rgba(31, 41, 51, 0.12);
  transform: translateY(-1px);
}
.task-day-today {
  border-color: color-mix(in srgb, var(--tis-primary) 55%, #d9dee5);
  background: color-mix(in srgb, var(--tis-primary) 6%, #fff);
}
.task-day-empty {
  background: #fbfcfd;
}
.task-day-header {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  justify-content: space-between;
}
.task-day-name {
  color: #667085;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}
.task-day-date {
  font-size: 1.05rem;
  font-weight: 800;
}
.task-day-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
}
.task-day-indicators {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-height: 18px;
  margin-top: 12px;
}
.task-priority-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--tis-secondary);
}
.task-priority-low { background: var(--tis-info); }
.task-priority-normal { background: var(--tis-primary); }
.task-priority-high { background: var(--tis-warning); }
.task-priority-urgent { background: var(--tis-danger); }
.task-status-done,
.task-status-cancelled {
  opacity: 0.35;
}
.task-no-item {
  width: 100%;
  height: 3px;
  border-radius: 999px;
  background: #e5e8ed;
}
.task-day-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 8px;
  margin-top: 10px;
  font-size: 0.78rem;
}
.task-day-items {
  display: grid;
  gap: 5px;
  margin-top: 10px;
}
.task-day-item {
  overflow: hidden;
  width: 100%;
  padding: 5px 6px;
  border-left: 3px solid var(--tis-primary);
  border-top: 0;
  border-right: 0;
  border-bottom: 0;
  border-radius: 4px;
  background: #f8fafc;
  color: #1f2933;
  font-size: 0.78rem;
  font-weight: 700;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}
.task-day-item:hover,
.task-day-item:focus {
  background: color-mix(in srgb, var(--tis-primary) 10%, #fff);
  outline: none;
}
.task-list-panel {
  position: sticky;
  top: 0;
  max-height: calc(100vh - 150px);
  padding: 14px;
  overflow: hidden;
  border: 1px solid #d9dee5;
  border-radius: 6px;
  background: #fff;
}
.task-list {
  display: grid;
  gap: 9px;
  max-height: calc(100vh - 210px);
  overflow-y: auto;
  padding-right: 2px;
}
.task-list-item {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid #e5e8ed;
  border-left: 4px solid var(--tis-primary);
  border-radius: 6px;
  background: #fff;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}
.task-list-item:hover,
.task-date-active.task-list-item {
  border-color: var(--tis-primary);
  box-shadow: 0 0.3rem 0.75rem rgba(31, 41, 51, 0.1);
  transform: translateY(-1px);
}
.task-list-title {
  min-width: 0;
  overflow-wrap: anywhere;
  line-height: 1.25;
}
.task-list-topline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}
.task-list-meta {
  display: grid;
  gap: 4px;
  margin-top: 5px;
  color: #667085;
  font-size: 0.8rem;
}
.task-list-meta span {
  display: inline-flex;
  min-width: 0;
  gap: 5px;
  align-items: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.task-list-description {
  display: -webkit-box;
  overflow: hidden;
  color: #4d5c69;
  font-size: 0.84rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.task-list-footer {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}
.task-list-actions {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 4px;
  align-items: center;
}
.task-list-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
}
.task-priority-border-low { border-left-color: var(--tis-info); }
.task-priority-border-normal { border-left-color: var(--tis-primary); }
.task-priority-border-high { border-left-color: var(--tis-warning); }
.task-priority-border-urgent { border-left-color: var(--tis-danger); }
.task-priority-select {
  border-left-width: 8px;
  font-weight: 700;
}
.task-priority-value-low {
  border-left-color: var(--tis-info);
  background: color-mix(in srgb, var(--tis-info) 8%, #fff);
}
.task-priority-value-normal {
  border-left-color: var(--tis-primary);
  background: color-mix(in srgb, var(--tis-primary) 8%, #fff);
}
.task-priority-value-high {
  border-left-color: var(--tis-warning);
  background: color-mix(in srgb, var(--tis-warning) 12%, #fff);
}
.task-priority-value-urgent {
  border-left-color: var(--tis-danger);
  background: color-mix(in srgb, var(--tis-danger) 10%, #fff);
}
.task-priority-option-low { color: var(--tis-info-dark); }
.task-priority-option-normal { color: var(--tis-primary-dark); }
.task-priority-option-high { color: var(--tis-warning-dark); }
.task-priority-option-urgent { color: var(--tis-danger-dark); }
.modal-dialog-scrollable .modal-content > form {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
}
.modal-dialog-scrollable .modal-content > form > .modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}
@media (min-width: 992px) {
  .main-mobile-menu .offcanvas-body {
    display: flex;
    align-items: center;
    padding: 0;
    overflow: visible;
  }
}

@media (max-width: 991.98px) {
  .navbar > .container-fluid {
    flex-wrap: nowrap;
    gap: 8px;
  }
  .navbar-brand {
    flex: 0 0 auto;
    margin-right: 0;
  }
  .navbar-toggler {
    flex: 0 0 auto;
  }
  .mobile-navbar-actions {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-width: 0;
    margin-left: auto;
  }
  .mobile-navbar-actions .dropdown {
    flex: 0 0 auto;
  }
  .mobile-navbar-actions > .dropdown:last-child {
    margin-right: 12px;
  }
  .mobile-navbar-search-shell {
    flex: 0 0 auto;
    min-width: 0;
  }
  .mobile-navbar-search-shell.is-open {
    flex: 1 1 auto;
  }
  .mobile-navbar-search-shell.is-open .mobile-search-toggle {
    display: none;
  }
  .mobile-navbar-actions .notification-menu {
    position: fixed !important;
    top: 64px !important;
    right: 12px !important;
    left: 12px !important;
    width: auto;
    max-height: calc(100dvh - 76px);
    transform: none !important;
  }
  .mobile-navbar-actions .notification-list {
    max-height: calc(100dvh - 190px);
  }
  .mobile-navbar-search {
    position: relative;
    width: 100%;
    min-width: 0;
  }
  .mobile-navbar-search .input-group {
    min-width: 0;
  }
  .mobile-navbar-search .form-control {
    min-width: 0;
  }
  .main-mobile-menu {
    --bs-offcanvas-width: 65vw;
    width: 65vw !important;
    max-width: 65vw;
    border-left: 0;
  }
  .main-mobile-menu .offcanvas-header {
    min-height: 68px;
    padding: 10px 16px;
    border-bottom: 1px solid #e5e8ed;
  }
  .mobile-menu-user {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    color: #1f2933;
    text-decoration: none;
  }
  .mobile-menu-user:hover,
  .mobile-menu-user:focus {
    color: var(--tis-primary-dark);
    text-decoration: none;
  }
  .main-mobile-menu .offcanvas-body {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-height: 0;
    padding: 18px 16px 24px;
    overflow: hidden;
  }
  .main-mobile-menu .navbar-nav {
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    margin: 0 !important;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    gap: 0 !important;
  }
  .main-mobile-menu .nav-item {
    border-bottom: 1px solid #e5e8ed;
  }
  .main-mobile-menu .nav-item:last-child {
    border-bottom: 0;
  }
  .main-mobile-menu .navbar-nav .nav-link {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    width: 100%;
    padding: 12px 14px;
    border-radius: 0;
    font-weight: 700;
    text-align: left;
  }
  .main-mobile-menu .dropdown-toggle::after {
    margin-left: 2px;
  }
  .navbar .main-mobile-menu .navbar-nav .nav-link.active {
    background: transparent;
    color: var(--tis-primary-dark);
  }
  .navbar .main-mobile-menu .navbar-nav .nav-link.active::before {
    display: none;
  }
  .main-mobile-menu .dropdown-menu {
    position: static !important;
    width: 100%;
    margin-top: 0;
    padding: 0 0 8px;
    transform: none !important;
    border: 0;
    box-shadow: none;
  }
  .main-mobile-menu .dropdown-menu.show {
    display: grid;
    gap: 0;
  }
  .main-mobile-menu .dropdown-item {
    padding: 9px 14px 9px 28px;
    border-radius: 0;
  }
  .main-mobile-menu .offcanvas-body > .d-flex {
    width: 100%;
    flex: 0 0 auto;
    min-height: 0;
    gap: 14px !important;
    padding-top: 14px;
    border-top: 1px solid #e5e8ed;
  }
  .mobile-user-links {
    display: grid;
    gap: 6px;
    width: 100%;
  }
  .mobile-user-link {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    padding: 10px 12px;
    color: #1f2933;
    background: #fff;
    border: 1px solid #e5e8ed;
    border-radius: 8px;
    font-weight: 700;
    line-height: 1.2;
    text-align: left;
  }
  .mobile-user-link:hover,
  .mobile-user-link:focus {
    color: var(--tis-primary-dark);
    background: color-mix(in srgb, var(--tis-primary) 8%, #fff);
    text-decoration: none;
  }
  .mobile-user-link.active {
    color: var(--tis-primary-dark);
    background: color-mix(in srgb, var(--tis-primary) 12%, #fff);
  }
  button.mobile-user-link {
    cursor: pointer;
  }
  .navbar-user {
    border-left: 0;
  }
  .support-ticket-link {
    display: none;
  }
  .app-support-menu-link {
    display: inline-flex;
  }
  .app-version-badge {
    display: none;
  }
  .app-version-menu-badge {
    display: block;
    align-self: flex-end;
    line-height: 1;
  }
  .app-menu-meta {
    width: 100%;
    justify-content: space-between;
    align-items: flex-end;
    align-self: stretch;
    margin-top: auto;
  }
  .global-search,
  .global-search .input-group {
    width: 100%;
    min-width: 0;
  }
  .global-search-menu {
    right: 0;
    left: 0;
  }
  .main-mobile-menu .notification-menu {
    width: 100%;
    max-width: none;
  }
}

@media (max-width: 680px) {
  .page-header { align-items: flex-start; flex-direction: column; }
  .dashboard-card-grid {
    --bs-gutter-y: 0.85rem;
  }
  .dashboard-mobile-collapse-toggle {
    min-height: 42px;
    margin-bottom: 0;
  }
  .dashboard-mobile-collapse-toggle[aria-expanded="true"] {
    margin-bottom: 0.85rem;
  }
  .dashboard-mobile-collapse-toggle .dashboard-card-icon {
    width: 34px;
    height: 34px;
    font-size: 1rem;
  }
  .dashboard-mobile-collapse-toggle .h5 {
    font-size: 1rem;
  }
  .dashboard-mobile-collapse-chevron {
    display: inline-flex;
  }
  .dashboard-actions .btn {
    justify-content: center;
    width: 100%;
  }
  .dashboard-collapsible-card {
    height: auto !important;
    padding: 0;
  }
  .dashboard-collapsible-card .card-body {
    padding: 12px 14px;
  }
  .dashboard-collapsible-card .dashboard-card-icon {
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
  }
  .dashboard-collapsible-card .dashboard-mobile-collapse-inner {
    padding-top: 12px;
  }
  .modal {
    --bs-modal-margin: 0.5rem;
  }
  .modal-dialog {
    max-width: calc(100% - 1rem);
    margin-right: auto;
    margin-left: auto;
    overflow-x: hidden;
  }
  .modal-dialog-centered {
    min-height: calc(100dvh - 1rem);
  }
  .modal-dialog-scrollable {
    height: calc(100dvh - 1rem);
  }
  .modal-dialog-scrollable .modal-content {
    max-height: calc(100dvh - 1rem);
    min-width: 0;
    overflow-x: hidden;
  }
  .modal-dialog-scrollable .modal-body {
    flex: 1 1 auto;
    min-height: 0;
    min-width: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .cat-index-header {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center !important;
    gap: 10px !important;
  }
  .cat-index-title {
    align-items: center !important;
    gap: 8px !important;
  }
  .cat-list-badge {
    max-width: 104px;
    min-height: 34px;
    padding: 4px 8px;
  }
  .cat-index-header > .btn {
    align-self: center;
    width: auto;
    white-space: nowrap;
  }
  .table-toolbar {
    display: block;
    gap: 10px;
    width: 100%;
  }
  .table-toolbar-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    order: 1;
    width: 100%;
    min-width: 0;
  }
  .table-filter-toggle {
    display: inline-flex;
    flex: 0 1 calc(50% - 5px);
    width: calc(50% - 5px);
    min-width: 0;
  }
  .table-filter-controls {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    order: 2;
    width: 100%;
    margin-top: 10px;
    margin-right: 0;
    margin-left: 0;
  }
  .table-filter-controls > [class*="col-"] {
    width: auto;
    max-width: none;
    padding-right: 0;
    padding-left: 0;
  }
  .table-filter-flags {
    grid-column: 1 / -1;
  }
  .table-filter-reset {
    order: 99;
  }
  .table-filter-controls[hidden] {
    display: none !important;
  }
  .table-length-control {
    flex: 0 1 calc(50% - 5px);
    width: calc(50% - 5px);
    min-width: 0;
    text-align: right;
  }
  .table-length-control .form-select {
    width: 100%;
  }
  .dt-paging,
  .dataTables_paginate {
    display: flex;
    justify-content: center;
    width: 100%;
    text-align: center;
  }
  .dt-info,
  .dataTables_info,
  div.dt-container div.dt-info {
    width: 100%;
    text-align: center;
  }
  .dt-paging .pagination,
  .dataTables_paginate .pagination,
  div.dt-container div.dt-paging ul.pagination {
    justify-content: center !important;
  }
  [data-table-responsive="cats-table"] table,
  [data-table-responsive="cats-table"] .dt-scroll,
  [data-table-responsive="contacts-table"] table,
  [data-table-responsive="contacts-table"] .dt-scroll {
    display: none;
  }
  [data-table-mobile-sortbar="cats-table"],
  [data-table-mobile-sortbar="contacts-table"] {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 5px;
    margin-bottom: 10px;
  }
  [data-table-mobile-cards="cats-table"],
  [data-table-mobile-cards="contacts-table"] {
    display: grid;
    gap: 10px;
  }
  .navbar .navbar-nav .nav-link.active::before { bottom: 0; }
  .navbar-user { border-left: 0; }
  .support-ticket-link { display: none; }
  .app-support-menu-link {
    display: inline-flex;
  }
  .app-version-badge { display: none; }
  .app-version-menu-badge {
    display: block;
    align-self: flex-end;
    margin-top: 0;
    line-height: 1;
  }
  .app-menu-meta {
    align-items: flex-end;
  }
  .global-search,
  .global-search .input-group { width: 100%; min-width: 0; }
  .global-search-menu { right: 0; left: 0; }
  .notification-setting-row { grid-template-columns: 1fr; }
  .notification-toggles { justify-content: flex-start; }
  .contact-document-upload { grid-template-columns: 1fr; }
  .task-board { grid-template-columns: 1fr; }
  .task-calendar { grid-template-columns: 1fr; }
  .task-list-panel {
    position: static;
    max-height: none;
  }
  .task-list { max-height: none; }
}

@media (min-width: 681px) and (max-width: 1199.98px) {
  .task-board { grid-template-columns: 1fr; }
  .task-list-panel {
    position: static;
    max-height: none;
  }
  .task-list {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    max-height: none;
  }
}

:root {
  --tis-primary: #5e9ef7;
  --tis-primary-dark: #2f6ed4;
  --tis-primary-light: #dceaff;
  --tis-secondary: #b194f0;
  --tis-secondary-dark: #7957c8;
  --tis-secondary-light: #e8defc;
  --tis-success: #60c965;
  --tis-success-dark: #2f8a35;
  --tis-success-light: #dff5e0;
  --tis-danger: #e84f4f;
  --tis-danger-dark: #b72e2e;
  --tis-danger-light: #fde0e0;
  --tis-warning: #f1cf00;
  --tis-warning-dark: #9a7b00;
  --tis-warning-light: #fff4a8;
  --tis-info: #52dfe7;
  --tis-info-dark: #168c94;
  --tis-info-light: #d9fbfd;
  --bs-primary: var(--tis-primary);
  --bs-primary-rgb: 94, 158, 247;
  --bs-primary-text-emphasis: var(--tis-primary-dark);
  --bs-primary-bg-subtle: var(--tis-primary-light);
  --bs-primary-border-subtle: #bdd7fd;
  --bs-secondary: var(--tis-secondary);
  --bs-secondary-rgb: 177, 148, 240;
  --bs-secondary-text-emphasis: var(--tis-secondary-dark);
  --bs-secondary-bg-subtle: var(--tis-secondary-light);
  --bs-secondary-border-subtle: #d4c3f8;
  --bs-success: var(--tis-success);
  --bs-success-rgb: 96, 201, 101;
  --bs-success-text-emphasis: var(--tis-success-dark);
  --bs-success-bg-subtle: var(--tis-success-light);
  --bs-success-border-subtle: #bce9bf;
  --bs-info: var(--tis-info);
  --bs-info-rgb: 82, 223, 231;
  --bs-info-text-emphasis: var(--tis-info-dark);
  --bs-info-bg-subtle: var(--tis-info-light);
  --bs-info-border-subtle: #b8f4f8;
  --bs-warning: var(--tis-warning);
  --bs-warning-rgb: 241, 207, 0;
  --bs-warning-text-emphasis: var(--tis-warning-dark);
  --bs-warning-bg-subtle: var(--tis-warning-light);
  --bs-warning-border-subtle: #ffe96a;
  --bs-danger: var(--tis-danger);
  --bs-danger-rgb: 232, 79, 79;
  --bs-danger-text-emphasis: var(--tis-danger-dark);
  --bs-danger-bg-subtle: var(--tis-danger-light);
  --bs-danger-border-subtle: #f6b9b9;
  --bs-link-color: var(--tis-primary-dark);
  --bs-link-color-rgb: 47, 110, 212;
  --bs-link-hover-color: #235bb3;
  --bs-link-hover-color-rgb: 35, 91, 179;
  --bs-focus-ring-color: rgba(94, 158, 247, 0.25);
}

.text-primary { color: var(--tis-primary) !important; }
.text-secondary { color: var(--tis-secondary) !important; }
.text-success { color: var(--tis-success) !important; }
.text-danger { color: var(--tis-danger) !important; }
.text-warning { color: var(--tis-warning) !important; }
.text-info { color: var(--tis-info) !important; }

.btn-primary,
.btn-secondary,
.btn-success,
.btn-danger,
.btn-warning,
.btn-info {
  border: 0;
  box-shadow: 0 0.2rem 0.45rem rgba(31, 41, 51, 0.1);
  font-weight: 600;
}

.btn-primary {
  --bs-btn-color: #000;
  --bs-btn-bg: var(--tis-primary);
  --bs-btn-border-color: var(--tis-primary);
  --bs-btn-hover-color: #000;
  --bs-btn-hover-bg: var(--tis-primary-dark);
  --bs-btn-hover-border-color: var(--tis-primary-dark);
  --bs-btn-focus-shadow-rgb: 94, 158, 247;
  --bs-btn-active-color: #000;
  --bs-btn-active-bg: var(--tis-primary-dark);
  --bs-btn-active-border-color: var(--tis-primary-dark);
  --bs-btn-disabled-color: #000;
  --bs-btn-disabled-bg: var(--tis-primary);
  --bs-btn-disabled-border-color: var(--tis-primary);
  background: var(--tis-primary);
  color: #000;
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--tis-primary-dark);
  color: #000;
}

.btn-secondary {
  --bs-btn-color: #000;
  --bs-btn-bg: var(--tis-secondary);
  --bs-btn-border-color: var(--tis-secondary);
  --bs-btn-hover-color: #000;
  --bs-btn-hover-bg: var(--tis-secondary-dark);
  --bs-btn-hover-border-color: var(--tis-secondary-dark);
  --bs-btn-focus-shadow-rgb: 177, 148, 240;
  --bs-btn-active-color: #000;
  --bs-btn-active-bg: var(--tis-secondary-dark);
  --bs-btn-active-border-color: var(--tis-secondary-dark);
  --bs-btn-disabled-color: #000;
  --bs-btn-disabled-bg: var(--tis-secondary);
  --bs-btn-disabled-border-color: var(--tis-secondary);
  background: var(--tis-secondary);
  color: #000;
}

.btn-secondary:hover,
.btn-secondary:focus {
  background: var(--tis-secondary-dark);
  color: #000;
}

.btn-success {
  --bs-btn-color: #000;
  --bs-btn-bg: var(--tis-success);
  --bs-btn-border-color: var(--tis-success);
  --bs-btn-hover-color: #000;
  --bs-btn-hover-bg: var(--tis-success-dark);
  --bs-btn-hover-border-color: var(--tis-success-dark);
  --bs-btn-focus-shadow-rgb: 96, 201, 101;
  --bs-btn-active-color: #000;
  --bs-btn-active-bg: var(--tis-success-dark);
  --bs-btn-active-border-color: var(--tis-success-dark);
  --bs-btn-disabled-color: #000;
  --bs-btn-disabled-bg: var(--tis-success);
  --bs-btn-disabled-border-color: var(--tis-success);
  background: var(--tis-success);
  color: #000;
}

.btn-success:hover,
.btn-success:focus {
  background: var(--tis-success-dark);
  color: #000;
}

.btn-danger {
  --bs-btn-color: #000;
  --bs-btn-bg: var(--tis-danger);
  --bs-btn-border-color: var(--tis-danger);
  --bs-btn-hover-color: #000;
  --bs-btn-hover-bg: var(--tis-danger-dark);
  --bs-btn-hover-border-color: var(--tis-danger-dark);
  --bs-btn-focus-shadow-rgb: 232, 79, 79;
  --bs-btn-active-color: #000;
  --bs-btn-active-bg: var(--tis-danger-dark);
  --bs-btn-active-border-color: var(--tis-danger-dark);
  --bs-btn-disabled-color: #000;
  --bs-btn-disabled-bg: var(--tis-danger);
  --bs-btn-disabled-border-color: var(--tis-danger);
  background: var(--tis-danger);
  color: #000;
}

.btn-danger:hover,
.btn-danger:focus {
  background: var(--tis-danger-dark);
  color: #000;
}

.btn-warning {
  --bs-btn-color: #000;
  --bs-btn-bg: var(--tis-warning);
  --bs-btn-border-color: var(--tis-warning);
  --bs-btn-hover-color: #000;
  --bs-btn-hover-bg: var(--tis-warning-dark);
  --bs-btn-hover-border-color: var(--tis-warning-dark);
  --bs-btn-focus-shadow-rgb: 241, 207, 0;
  --bs-btn-active-color: #000;
  --bs-btn-active-bg: var(--tis-warning-dark);
  --bs-btn-active-border-color: var(--tis-warning-dark);
  --bs-btn-disabled-color: #000;
  --bs-btn-disabled-bg: var(--tis-warning);
  --bs-btn-disabled-border-color: var(--tis-warning);
  background: var(--tis-warning);
  color: #000;
}

.btn-warning:hover,
.btn-warning:focus {
  background: var(--tis-warning-dark);
  color: #000;
}

.btn-info {
  --bs-btn-color: #000;
  --bs-btn-bg: var(--tis-info);
  --bs-btn-border-color: var(--tis-info);
  --bs-btn-hover-color: #000;
  --bs-btn-hover-bg: var(--tis-info-dark);
  --bs-btn-hover-border-color: var(--tis-info-dark);
  --bs-btn-focus-shadow-rgb: 82, 223, 231;
  --bs-btn-active-color: #000;
  --bs-btn-active-bg: var(--tis-info-dark);
  --bs-btn-active-border-color: var(--tis-info-dark);
  --bs-btn-disabled-color: #000;
  --bs-btn-disabled-bg: var(--tis-info);
  --bs-btn-disabled-border-color: var(--tis-info);
  background: var(--tis-info);
  color: #000;
}

.btn-info:hover,
.btn-info:focus {
  background: var(--tis-info-dark);
  color: #000;
}

.btn-outline-primary {
  --bs-btn-color: var(--tis-primary-dark);
  --bs-btn-border-color: var(--tis-primary);
  --bs-btn-hover-color: #000;
  --bs-btn-hover-bg: var(--tis-primary);
  --bs-btn-hover-border-color: var(--tis-primary);
  --bs-btn-focus-shadow-rgb: 94, 158, 247;
  --bs-btn-active-color: #000;
  --bs-btn-active-bg: var(--tis-primary);
  --bs-btn-active-border-color: var(--tis-primary);
  --bs-btn-disabled-color: var(--tis-primary);
  --bs-btn-disabled-border-color: var(--tis-primary);
}

.btn-outline-secondary {
  --bs-btn-color: var(--tis-secondary-dark);
  --bs-btn-border-color: var(--tis-secondary);
  --bs-btn-hover-color: #000;
  --bs-btn-hover-bg: var(--tis-secondary);
  --bs-btn-hover-border-color: var(--tis-secondary);
  --bs-btn-focus-shadow-rgb: 177, 148, 240;
  --bs-btn-active-color: #000;
  --bs-btn-active-bg: var(--tis-secondary);
  --bs-btn-active-border-color: var(--tis-secondary);
  --bs-btn-disabled-color: var(--tis-secondary);
  --bs-btn-disabled-border-color: var(--tis-secondary);
}

.btn-outline-success {
  --bs-btn-color: var(--tis-success-dark);
  --bs-btn-border-color: var(--tis-success);
  --bs-btn-hover-color: #000;
  --bs-btn-hover-bg: var(--tis-success);
  --bs-btn-hover-border-color: var(--tis-success);
  --bs-btn-focus-shadow-rgb: 96, 201, 101;
  --bs-btn-active-color: #000;
  --bs-btn-active-bg: var(--tis-success);
  --bs-btn-active-border-color: var(--tis-success);
  --bs-btn-disabled-color: var(--tis-success);
  --bs-btn-disabled-border-color: var(--tis-success);
}

.btn-outline-danger {
  --bs-btn-color: var(--tis-danger-dark);
  --bs-btn-border-color: var(--tis-danger);
  --bs-btn-hover-color: #000;
  --bs-btn-hover-bg: var(--tis-danger);
  --bs-btn-hover-border-color: var(--tis-danger);
  --bs-btn-focus-shadow-rgb: 232, 79, 79;
  --bs-btn-active-color: #000;
  --bs-btn-active-bg: var(--tis-danger);
  --bs-btn-active-border-color: var(--tis-danger);
  --bs-btn-disabled-color: var(--tis-danger);
  --bs-btn-disabled-border-color: var(--tis-danger);
}

.btn-outline-warning {
  --bs-btn-color: var(--tis-warning-dark);
  --bs-btn-border-color: var(--tis-warning);
  --bs-btn-hover-color: #000;
  --bs-btn-hover-bg: var(--tis-warning);
  --bs-btn-hover-border-color: var(--tis-warning);
  --bs-btn-focus-shadow-rgb: 241, 207, 0;
  --bs-btn-active-color: #000;
  --bs-btn-active-bg: var(--tis-warning);
  --bs-btn-active-border-color: var(--tis-warning);
  --bs-btn-disabled-color: var(--tis-warning);
  --bs-btn-disabled-border-color: var(--tis-warning);
}

.btn-outline-info {
  --bs-btn-color: var(--tis-info-dark);
  --bs-btn-border-color: var(--tis-info);
  --bs-btn-hover-color: #000;
  --bs-btn-hover-bg: var(--tis-info);
  --bs-btn-hover-border-color: var(--tis-info);
  --bs-btn-focus-shadow-rgb: 82, 223, 231;
  --bs-btn-active-color: #000;
  --bs-btn-active-bg: var(--tis-info);
  --bs-btn-active-border-color: var(--tis-info);
  --bs-btn-disabled-color: var(--tis-info);
  --bs-btn-disabled-border-color: var(--tis-info);
}

.btn-soft-primary {
  background: color-mix(in srgb, var(--tis-primary) 14%, #fff);
  border: 0;
  color: var(--tis-primary-dark);
  font-weight: 600;
}

.btn-soft-primary:hover,
.btn-soft-primary:focus {
  background: color-mix(in srgb, var(--tis-primary) 22%, #fff);
  color: var(--tis-primary-dark);
}

.btn-soft-secondary {
  background: color-mix(in srgb, var(--tis-secondary) 14%, #fff);
  border: 0;
  color: var(--tis-secondary-dark);
  font-weight: 600;
}

.btn-soft-secondary:hover,
.btn-soft-secondary:focus {
  background: color-mix(in srgb, var(--tis-secondary) 22%, #fff);
  color: var(--tis-secondary-dark);
}

.btn-soft-danger {
  background: color-mix(in srgb, var(--tis-danger) 14%, #fff);
  border: 0;
  color: var(--tis-danger-dark);
  font-weight: 600;
}

.btn-soft-danger:hover,
.btn-soft-danger:focus {
  background: color-mix(in srgb, var(--tis-danger) 22%, #fff);
  color: var(--tis-danger-dark);
}

.cat-modal-toggle,
.btn-check:not(:checked) + .cat-modal-toggle {
  background: #f4f6f8;
  border-color: #d9dee5;
  color: #4d5c69;
  font-weight: 700;
  text-align: center;
  white-space: normal;
}

.cat-modal-toggle:hover,
.cat-modal-toggle:focus,
.cat-modal-toggle:active,
.btn-check:not(:checked) + .cat-modal-toggle:hover,
.btn-check:not(:checked) + .cat-modal-toggle:focus,
.btn-check:not(:checked) + .cat-modal-toggle:active,
.btn-check:not(:checked):focus + .cat-modal-toggle {
  background: #eef1f4;
  border-color: #c8d0da;
  color: #3f4b57;
}

.btn-check:checked + .cat-modal-toggle-success {
  background: color-mix(in srgb, var(--tis-success) 16%, #fff);
  border-color: color-mix(in srgb, var(--tis-success) 24%, #fff);
  color: var(--tis-success-dark);
}

.btn-check:checked + .cat-modal-toggle-danger {
  background: color-mix(in srgb, var(--tis-danger) 16%, #fff);
  border-color: color-mix(in srgb, var(--tis-danger) 24%, #fff);
  color: var(--tis-danger-dark);
}

.btn-check:checked + .cat-modal-toggle-warning {
  background: color-mix(in srgb, var(--tis-warning) 24%, #fff);
  border-color: color-mix(in srgb, var(--tis-warning) 34%, #fff);
  color: var(--tis-warning-dark);
}

.btn-check:checked + .cat-modal-toggle:hover,
.btn-check:checked + .cat-modal-toggle:focus {
  filter: brightness(0.98);
}

#entityModal .cat-detail-page-heading {
  display: none !important;
}

#entityModal [data-entity-modal-toolbar] {
  background: #fff;
}

#entityModal [data-entity-modal-toolbar] .cat-detail-toolbar {
  margin-bottom: 0 !important;
}

#entityModal [data-entity-modal-title-meta] .badge {
  font-size: 0.72rem;
}

#entityModal.is-cat-detail-modal .modal-dialog {
  min-width: min(100vw - 2rem, 920px);
}

@media (min-width: 1200px) {
  #entityModal.is-cat-detail-modal .modal-xl {
    --bs-modal-width: 960px;
  }
}

@media (max-width: 767px) {
  #entityModal.is-cat-detail-modal .modal-dialog {
    min-width: 0;
  }
}

#entityModal .cat-detail-tabbar {
  width: 100%;
}

#entityModal .cat-detail-tabs {
  gap: 0.35rem !important;
  width: 100%;
  padding-bottom: 2px;
  scrollbar-width: none;
}

#entityModal .cat-detail-tabs::-webkit-scrollbar {
  display: none;
}

#entityModal .cat-detail-tabs .nav-link {
  padding: 0.32rem 0.55rem;
  font-size: 0.82rem;
  line-height: 1.15;
  white-space: nowrap;
}

#entityModal .tab-pane > .card,
#entityModal .tab-pane > form > .card,
#entityModal .tab-pane section.card {
  background: transparent;
  border: 0;
  box-shadow: none;
}

#entityModal .tab-pane > .card > .card-header,
#entityModal .tab-pane > form > .card > .card-header,
#entityModal .tab-pane section.card > .card-header {
  padding: 0 0 0.75rem;
  background: transparent !important;
  border: 0;
}

#entityModal .tab-pane > .card > .card-body,
#entityModal .tab-pane > form > .card > .card-body,
#entityModal .tab-pane section.card > .card-body {
  padding: 0;
}

#entityModal .tab-pane > .card > .card-footer,
#entityModal .tab-pane > form > .card > .card-footer {
  padding: 0.9rem 0 0;
  background: transparent !important;
  border: 0;
}

#entityModal .tab-pane .list-group-flush > .list-group-item {
  padding-right: 0;
  padding-left: 0;
  background: transparent;
}

.badge.text-bg-primary,
.badge.text-bg-secondary,
.badge.text-bg-success,
.badge.text-bg-danger,
.badge.text-bg-warning,
.badge.text-bg-info {
  box-shadow: 0 0.15rem 0.35rem rgba(31, 41, 51, 0.08);
}

.badge.text-bg-primary { background: var(--tis-primary) !important; color: #000 !important; }
.badge.text-bg-secondary { background: var(--tis-secondary) !important; color: #000 !important; }
.badge.text-bg-success { background: var(--tis-success) !important; color: #000 !important; }
.badge.text-bg-danger { background: var(--tis-danger) !important; color: #000 !important; }
.badge.text-bg-warning { background: var(--tis-warning) !important; color: #000 !important; }
.badge.text-bg-info { background: var(--tis-info) !important; color: #000 !important; }

.form-control:focus,
.form-select:focus {
  border-color: var(--tis-primary);
  box-shadow: 0 0 0 0.25rem rgba(94, 158, 247, 0.25);
}

.pagination {
  --bs-pagination-color: var(--tis-primary-dark);
  --bs-pagination-hover-color: #235bb3;
  --bs-pagination-focus-color: #235bb3;
  --bs-pagination-focus-box-shadow: 0 0 0 0.25rem rgba(94, 158, 247, 0.25);
  --bs-pagination-active-bg: var(--tis-primary);
  --bs-pagination-active-border-color: var(--tis-primary);
}

.dropdown-menu {
  --bs-dropdown-link-active-bg: var(--tis-primary);
}

.list-group {
  --bs-list-group-active-bg: var(--tis-primary);
  --bs-list-group-active-border-color: var(--tis-primary);
}

.form-check-input {
  border-color: var(--tis-secondary-light);
}

.form-check-input:focus {
  border-color: var(--tis-primary);
  box-shadow: 0 0 0 0.25rem rgba(94, 158, 247, 0.25);
}

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

.form-check-input[type="checkbox"]:indeterminate {
  background-color: var(--tis-primary);
  border-color: var(--tis-primary);
}

.password-mask {
  -webkit-text-security: disc;
}

.password-rules {
  display: grid;
  gap: 7px;
  padding: 0;
  list-style: none;
  font-size: 0.92rem;
}

.password-rules li {
  display: flex;
  gap: 8px;
  align-items: center;
}

.password-rules i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 0.95rem;
}

.password-rule-valid {
  color: var(--tis-success-dark);
}

.password-rule-valid i {
  background: color-mix(in srgb, var(--tis-success) 18%, #fff);
}

.password-rule-invalid {
  color: var(--tis-danger-dark);
}

.password-rule-invalid i {
  background: color-mix(in srgb, var(--tis-danger) 18%, #fff);
}

.select2-container--bootstrap-5 .select2-selection {
  min-height: 40px;
  border-color: #b8c0cc;
}

.select2-container--bootstrap-5.select2-container--focus .select2-selection,
.flatpickr-input:focus {
  border-color: var(--tis-primary);
  box-shadow: 0 0 0 0.25rem rgba(94, 158, 247, 0.25);
}

.flatpickr-calendar {
  border: 1px solid #d9dee5;
  box-shadow: 0 0.45rem 1rem rgba(31, 41, 51, 0.12);
}
