:root {
  --brand-950: #102a25;
  --brand-900: #173c34;
  --brand-700: #367c68;
  --brand-600: #4c987f;
  --brand-500: #5ba58b;
  --brand-300: #7bd9b5;
  --surface: #ffffff;
  --surface-muted: #f3f7f5;
  --text: #16201d;
  --text-muted: #56635f;
  --border: #d8e4df;
  --border-strong: #bdcec7;
  --layout-max: 90rem;
  --page-gutter: clamp(1rem, 1.5vw, 1.75rem);
  --card-padding: clamp(1.25rem, 2vw, 1.75rem);
  --radius: 0.9rem;
  --shadow: 0 1rem 2.5rem rgb(16 42 37 / 10%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--surface-muted);
  font-size: 1rem;
  line-height: 1.5;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  background: var(--brand-950);
  color: white;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 5;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 0.2rem 1rem rgb(16 42 37 / 4%);
}

.site-header__content {
  width: min(calc(100% - (2 * var(--page-gutter))), var(--layout-max));
  min-height: 4.75rem;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1.5rem, 3vw, 3rem);
}

.brand {
  display: inline-flex;
  flex: 0 0 11.5rem;
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.main-nav a,
.main-nav__menu > summary,
.link-button {
  min-height: 2.5rem;
  padding: 0.55rem 0.7rem;
  display: inline-flex;
  align-items: center;
  border: 0;
  border-radius: 0.55rem;
  background: transparent;
  color: var(--brand-900);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.main-nav a:hover,
.main-nav__menu > summary:hover,
.link-button:hover {
  background: var(--surface-muted);
  color: var(--brand-950);
  text-decoration: none;
}

.main-nav__menu {
  position: relative;
}

.main-nav__menu > summary {
  gap: 0.4rem;
  list-style: none;
}

.main-nav__menu > summary::-webkit-details-marker {
  display: none;
}

.main-nav__menu > summary::after {
  color: var(--text-muted);
  font-size: 0.75rem;
  content: "▾";
}

.main-nav__menu[open] > summary {
  margin-bottom: 0;
  background: var(--surface-muted);
  color: var(--brand-950);
}

.main-nav__menu[open] > summary::after {
  content: "▴";
}

.main-nav__submenu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 0.35rem);
  right: 0;
  min-width: 13rem;
  padding: 0.4rem;
  display: grid;
  gap: 0.15rem;
  border: 1px solid var(--border);
  border-radius: 0.65rem;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.main-nav__submenu a {
  width: 100%;
  white-space: nowrap;
}

.main-nav__counter {
  min-width: 1.4rem;
  height: 1.4rem;
  margin-left: 0.35rem;
  padding-inline: 0.38rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #f6dfa6;
  color: #684a00;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.main-nav a:hover .main-nav__counter {
  background: #edcd7d;
}

.main-nav form {
  margin: 0;
}

.site-main {
  width: min(calc(100% - (2 * var(--page-gutter))), var(--layout-max));
  margin-inline: auto;
  flex: 1;
  padding-block: clamp(1.5rem, 3vw, 2.75rem);
}

.hero {
  min-height: min(36rem, 70vh);
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(17rem, 0.6fr);
  align-items: center;
  gap: clamp(2rem, 7vw, 6rem);
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--brand-700);
  font-size: 0.8125rem;
  font-weight: 750;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

h1 {
  max-width: 12ch;
  margin: 0;
  color: var(--brand-950);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.hero__description {
  max-width: 34rem;
  margin: 1.5rem 0 2rem;
  color: var(--text-muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.65;
}

.button {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.1rem;
  border: 1px solid transparent;
  border-radius: 0.65rem;
  font-weight: 700;
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:focus-visible,
.brand:focus-visible {
  outline: 3px solid var(--brand-300);
  outline-offset: 3px;
}

.button--primary {
  background: var(--brand-900);
  color: white;
}

.button--primary:hover {
  background: var(--brand-950);
}

.button--secondary {
  border-color: var(--border);
  background: var(--surface);
  color: var(--brand-900);
}

.button--secondary:hover {
  border-color: var(--brand-500);
  background: var(--surface-muted);
}

.status-card {
  position: relative;
  overflow: hidden;
  padding: 2rem;
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.status-card::after {
  content: "";
  position: absolute;
  width: 8rem;
  height: 8rem;
  right: -3rem;
  bottom: -4rem;
  border-radius: 50%;
  background: var(--brand-300);
  opacity: 0.35;
}

.status-card__indicator {
  width: 0.75rem;
  height: 0.75rem;
  margin-top: 0.3rem;
  flex: none;
  border: 3px solid #c9f5e3;
  border-radius: 50%;
  background: #25845f;
  box-sizing: content-box;
}

.status-card strong {
  color: var(--brand-950);
  line-height: 1.4;
}

.status-card p {
  margin: 0.35rem 0 0;
  color: var(--text-muted);
  line-height: 1.5;
}

.site-footer {
  padding: 1rem var(--page-gutter) 1.5rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  text-align: center;
}

.messages {
  margin-bottom: 1.25rem;
  display: grid;
  gap: 0.65rem;
}

.message {
  margin: 0;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 0.65rem;
  background: var(--surface);
}

.message--success {
  border-color: #76c9a6;
  background: #edf9f4;
}

.message--warning {
  border-color: #e0b969;
  background: #fff8e8;
}

.message--error {
  border-color: #d99696;
  background: #fff2f2;
}

.page-heading,
.section-heading {
  margin-bottom: clamp(1.25rem, 2vw, 1.75rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.page-title {
  max-width: none;
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.08;
}

.page-heading > div > p:last-child,
.record-meta {
  margin: 0.65rem 0 0;
  color: var(--text-muted);
}

.section-heading h2,
.content-card h2 {
  margin: 0;
  color: var(--brand-950);
  font-size: clamp(1.15rem, 1.7vw, 1.4rem);
  line-height: 1.25;
}

.content-card {
  margin-bottom: 1.5rem;
  padding: var(--card-padding);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 0.35rem 1rem rgb(16 42 37 / 5%);
}

.detail-search {
  margin: 0 0 1.25rem;
  padding: 0.8rem 1rem;
  display: grid;
  grid-template-columns: auto minmax(18rem, 42rem) minmax(0, 1fr);
  align-items: center;
  gap: 0.55rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--surface);
  box-shadow: 0 0.25rem 0.75rem rgb(16 42 37 / 4%);
}

.detail-search > label {
  margin: 0;
  white-space: nowrap;
}

.detail-search__controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.5rem;
}

.detail-search__controls input {
  width: 100%;
  min-height: 2.55rem;
}

.detail-search__status {
  min-height: 1.2rem;
  color: var(--text-muted);
  font-size: 0.82rem;
}

[data-searchable-item][hidden],
[data-search-empty][hidden] {
  display: none !important;
}

.detail-search__empty {
  margin-top: 0.7rem;
}

.content-card--narrow,
.auth-card {
  margin-inline: auto;
}

.content-card--narrow {
  width: min(100%, 68rem);
}

.auth-card {
  width: min(100%, 34rem);
  padding: clamp(1.5rem, 5vw, 3rem);
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.metric-grid {
  margin-bottom: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.25rem;
}

.metric-card {
  min-height: 7rem;
  padding: 1.35rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  text-decoration: none;
  box-shadow: 0 0.35rem 1rem rgb(16 42 37 / 4%);
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.metric-card:hover {
  border-color: var(--brand-500);
  box-shadow: 0 0.6rem 1.5rem rgb(16 42 37 / 8%);
  transform: translateY(-2px);
}

.metric-card span {
  color: var(--text-muted);
  font-weight: 650;
}

.metric-card strong {
  color: var(--brand-900);
  font-size: 2.25rem;
}

.metric-card--warning strong {
  color: #a54f19;
}

.dashboard-summary-grid {
  margin-bottom: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(21rem, 1fr));
  gap: 1.25rem;
}

.dashboard-summary-card {
  align-self: start;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 0.35rem 1rem rgb(16 42 37 / 4%);
}

.dashboard-summary-card h2 {
  margin: 0;
  padding: 1rem 1.2rem 0.8rem;
  border-bottom: 1px solid var(--border);
  color: var(--brand-900);
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dashboard-summary-item {
  min-height: 3.15rem;
  padding: 0.7rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  transition: background 150ms ease, color 150ms ease;
}

.dashboard-summary-item:last-child {
  border-bottom: 0;
}

.dashboard-summary-item:hover {
  background: var(--surface-muted);
  color: var(--brand-900);
}

.dashboard-summary-item span {
  color: var(--text-muted);
  font-weight: 650;
}

.dashboard-summary-item strong {
  flex: 0 0 auto;
  color: var(--brand-900);
  font-size: 1.45rem;
}

.dashboard-summary-item--warning strong {
  color: #8a5913;
}

.dashboard-summary-item--danger strong {
  color: #a13c35;
}

.report-grid {
  margin-bottom: 1.25rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.report-card {
  min-height: 13rem;
  padding: var(--card-padding);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 0.35rem 1rem rgb(16 42 37 / 5%);
}

.report-card h2 {
  margin: 0;
  color: var(--brand-950);
  font-size: 1.3rem;
}

.report-card p {
  margin: 0.55rem 0 0;
  color: var(--text-muted);
}

.filter-bar {
  margin-bottom: 1.5rem;
  padding: 1.15rem 1.25rem;
  display: flex;
  align-items: end;
  gap: 1rem 1.25rem;
  flex-wrap: wrap;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.filter-bar label {
  min-width: 13rem;
  flex: 1;
}

.filter-bar label:first-child {
  min-width: 20rem;
  flex-grow: 2;
}

.filter-bar .button {
  min-width: 7rem;
}

.filter-bar > .filter-bar__search {
  flex: 1 1 24rem;
}

.multi-filter {
  position: relative;
  min-width: 11rem;
  flex: 1 1 11rem;
}

.multi-filter summary {
  min-height: 2.75rem;
  padding: 0.65rem 0.8rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.6rem;
  border: 1px solid var(--border);
  border-radius: 0.65rem;
  background: var(--surface);
  color: var(--brand-950);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.multi-filter summary::-webkit-details-marker {
  display: none;
}

.multi-filter summary::after {
  content: "⌄";
  margin-left: auto;
  width: 1.25rem;
  height: 1.25rem;
  display: inline-flex;
  align-items: flex-start;
  justify-content: center;
  flex: 0 0 1.25rem;
  color: var(--brand-700);
  font-size: 1.25rem;
  line-height: 0.8;
}

.multi-filter__label {
  min-width: 0;
}

.multi-filter__status {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  flex: 0 0 auto;
}

.multi-filter__order {
  color: var(--brand-700);
  font-size: 1rem;
  line-height: 1;
}

.multi-filter[open] summary,
.multi-filter--active summary {
  border-color: var(--brand-500);
  background: var(--surface-muted);
}

.multi-filter__count {
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--brand-700);
  color: white;
  font-size: 0.75rem;
}

.multi-filter__options {
  position: absolute;
  z-index: 20;
  top: calc(100% + 0.35rem);
  left: 0;
  width: max-content;
  min-width: 100%;
  max-width: min(22rem, 85vw);
  padding: 0.55rem;
  border: 1px solid var(--border);
  border-radius: 0.65rem;
  background: var(--surface);
  box-shadow: 0 0.65rem 1.5rem rgb(16 42 37 / 14%);
}

.multi-filter__options--filterable {
  height: min(20rem, calc(100vh - 3rem));
  overflow: hidden;
}

.multi-filter__option {
  min-width: 0;
  padding: 0.5rem 0.55rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  border-radius: 0.45rem;
  font-weight: 600;
  cursor: pointer;
}

.multi-filter__option:hover {
  background: var(--surface-muted);
}

.multi-filter__option input {
  width: 1rem;
  min-height: 1rem;
  margin: 0;
  flex: 0 0 auto;
}

.multi-filter__empty {
  display: block;
  padding: 0.5rem;
  color: var(--text-muted);
}

.multi-filter__sorting {
  display: grid;
  gap: 0.2rem;
}

.multi-filter__form {
  margin: 0;
}

.multi-filter__options--filterable .multi-filter__form {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.multi-filter__choices {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  flex: 1 1 auto;
  scrollbar-gutter: stable;
}

.multi-filter__sort {
  width: 100%;
  padding: 0.55rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 0;
  border-radius: 0.45rem;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
}

.multi-filter__sort:hover,
.multi-filter__sort--active {
  background: var(--surface-muted);
  color: var(--brand-900);
}

.multi-filter__section-title {
  margin: 0.45rem 0 0.2rem;
  padding: 0.45rem 0.55rem 0.2rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.multi-filter__apply {
  width: 100%;
  min-height: 2.35rem;
  margin-top: 0.55rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--brand-900);
  border-radius: 0.55rem;
  background: var(--brand-900);
  color: white;
  font: inherit;
  font-weight: 750;
  flex: 0 0 auto;
  cursor: pointer;
}

.multi-filter__apply:hover {
  background: var(--brand-950);
}

.filter-bar__actions {
  flex: 0 0 auto;
  display: flex;
  justify-content: flex-end;
  gap: 0.65rem;
}

.table-card.table-card--filters,
.table-wrap.table-wrap--filters {
  overflow: visible;
}

.table-filter-cell {
  position: relative;
  min-width: 8.5rem;
  overflow: visible;
}

.table-filter-cell .multi-filter {
  width: 100%;
  min-width: 0;
}

.table-filter-cell .multi-filter summary {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: inherit;
  letter-spacing: inherit;
  text-transform: uppercase;
}

.table-filter-cell .multi-filter[open] summary,
.table-filter-cell .multi-filter--active summary {
  background: transparent;
  color: var(--brand-900);
}

.table-filter-cell .multi-filter__options {
  top: calc(100% + 0.75rem);
  min-width: 13rem;
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: normal;
  text-transform: none;
}

.table-filter-cell--align-end .multi-filter__options {
  right: 0;
  left: auto;
}

label {
  display: grid;
  gap: 0.4rem;
  color: var(--brand-950);
  font-weight: 700;
}

.form-field__label {
  color: var(--brand-950);
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--border-strong);
  border-radius: 0.55rem;
  background: white;
  color: var(--text);
  font: inherit;
}

input[type="checkbox"],
input[type="radio"] {
  width: 1.15rem;
  min-height: 1.15rem;
  margin: 0;
  padding: 0;
  accent-color: var(--brand-700);
}

.choice-list {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.choice-list > div,
.choice-list > label {
  margin: 0;
}

.choice-list label {
  min-height: 2.45rem;
  padding: 0.45rem 0.7rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid var(--border);
  border-radius: 0.55rem;
  background: var(--surface);
  font-size: 0.9rem;
  cursor: pointer;
}

div.checkbox-list {
  display: grid;
  gap: 0.35rem;
}

.checkbox-list > div {
  margin: 0;
}

.checkbox-list label {
  min-height: 2rem;
  display: inline-flex;
  grid-template-columns: none;
  align-items: center;
  gap: 0.55rem;
  cursor: pointer;
}

.checkbox-list input[type="checkbox"] {
  flex: 0 0 auto;
}

.stack-form p:has(> input[type="checkbox"]),
.form-field:has(> input[type="checkbox"]),
.edit-modal__body > p:has(> input[type="checkbox"]) {
  min-height: 3rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.stack-form p:has(> input[type="checkbox"]) > input[type="checkbox"],
.form-field:has(> input[type="checkbox"]) > input[type="checkbox"],
.edit-modal__body > p:has(> input[type="checkbox"]) > input[type="checkbox"] {
  order: 1;
  flex: 0 0 auto;
}

.stack-form p:has(> input[type="checkbox"]) > label,
.form-field:has(> input[type="checkbox"]) > label,
.edit-modal__body > p:has(> input[type="checkbox"]) > label {
  order: 2;
  display: inline-flex;
  grid-template-columns: none;
  cursor: pointer;
}

.stack-form p:has(> input[type="checkbox"]) > .errorlist,
.stack-form p:has(> input[type="checkbox"]) > .helptext,
.form-field:has(> input[type="checkbox"]) > .errorlist,
.form-field:has(> input[type="checkbox"]) > .helptext,
.edit-modal__body > p:has(> input[type="checkbox"]) > .errorlist,
.edit-modal__body > p:has(> input[type="checkbox"]) > .helptext {
  order: 3;
  flex-basis: 100%;
}

input:disabled,
select:disabled,
textarea:disabled {
  background: #e9efec;
  color: #53615c;
  cursor: not-allowed;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus,
.main-nav__menu > summary:focus-visible,
.link-button:focus-visible {
  outline: 3px solid var(--brand-300);
  outline-offset: 1px;
  border-color: var(--brand-700);
}

.stack-form p {
  margin: 0 0 1.25rem;
}

.stack-form > p:first-of-type,
.content-card h2 + .stack-form,
.content-card h2 + .data-list,
.content-card h2 + .help-text {
  margin-top: 1.15rem;
}

.stack-form .helptext,
.help-text {
  display: block;
  margin-top: 0.35rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.45;
}

.errorlist {
  margin: 0.4rem 0 0;
  padding: 0.65rem 0.8rem;
  border-left: 0.25rem solid #c34f4f;
  border-radius: 0.35rem;
  background: #fff2f2;
  color: #9a2929;
  list-style: none;
}

.stack-form ul:not(.errorlist) {
  margin: 0.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 0.65rem;
  list-style: none;
}

.stack-form ul:not(.errorlist) label {
  min-height: 3rem;
  padding: 0.75rem 0.85rem;
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 0.65rem;
  border: 1px solid var(--border);
  border-radius: 0.55rem;
  background: var(--surface-muted);
  font-weight: 650;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem 1.5rem;
}

.form-grid > p {
  margin: 0;
}

.form-grid > .errorlist,
.form-grid > .form-actions,
.form-grid > button,
.form-grid > input[type="hidden"],
.lead-identity-grid,
.form-section {
  grid-column: 1 / -1;
}

.form-grid > .form-field--choice-group {
  grid-column: 1 / -1;
}

.renewal-options {
  grid-column: 1 / -1;
  display: grid;
  gap: 0.7rem;
}

.renewal-options .form-field--choice-group {
  min-height: auto;
}

.lead-identity-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 1rem 1.5rem;
}

.form-section {
  min-width: 0;
  margin: 0;
  padding: 1.1rem;
  border: 1px solid var(--border);
  border-radius: 0.7rem;
  background: var(--surface-muted);
}

.form-section__heading {
  margin-bottom: 1rem;
}

.form-section__heading h2 {
  margin: 0;
  color: var(--brand-950);
  font-size: 1.05rem;
}

.form-section__heading .help-text {
  margin: 0.25rem 0 0;
}

.communication-list {
  margin-bottom: 0.85rem;
  display: grid;
  gap: 0.75rem;
}

.communication-row {
  padding: 0.85rem;
  display: grid;
  grid-template-columns: minmax(10rem, 0.45fr) minmax(16rem, 1fr) auto auto;
  align-items: end;
  gap: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.65rem;
  background: var(--surface);
}

.communication-whatsapp {
  min-height: 3rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
}

.communication-whatsapp label {
  display: inline-flex;
  cursor: pointer;
}

.communication-whatsapp[hidden] {
  display: none;
}

.communication-whatsapp .errorlist {
  white-space: normal;
}

.form-field,
.communication-field {
  min-width: 0;
  margin: 0;
  display: grid;
  align-content: start;
  gap: 0.4rem;
}

.form-field > .errorlist,
.communication-field > .errorlist {
  margin: 0;
}

.field-label-row {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.field-inline-error {
  color: #9a2929;
  font-size: 0.8rem;
  font-weight: 650;
  line-height: 1.35;
}

.communication-row > .button {
  margin-bottom: 0.05rem;
}

.communication-row[hidden] {
  display: none;
}

.address-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(7rem, 0.4fr) minmax(0, 1fr);
  gap: 0.9rem 1rem;
}

.form-field--bairro,
.form-field--cidade {
  grid-column: span 1;
}

.form-field--cep {
  grid-column: 1 / -1;
}

.cep-field-row {
  display: grid;
  grid-template-columns: 12rem minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem;
}

.field-status {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.35;
}

.field-status--success {
  color: #236341;
}

.field-status--warning {
  color: #8a5913;
}

.form-actions,
.button-group,
.inline-form {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.form-actions {
  margin-top: 0.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.button-group form,
.inline-form,
td form {
  margin: 0;
}

.journey-page-actions {
  flex-wrap: nowrap;
}

.journey-page-actions .button {
  width: 9.5rem;
  min-height: 2.75rem;
  padding-block: 0.7rem;
}

.button--danger {
  border-color: #c34f4f;
  background: #fff;
  color: #922d2d;
}

.button--danger:hover {
  background: #fff2f2;
}

.table-wrap {
  overflow-x: auto;
}

.table-card {
  padding: 0;
  overflow: hidden;
}

.table-card > h2,
.table-card > .section-heading {
  margin: 0;
  padding: var(--card-padding);
}

.table-card > .section-heading {
  border-bottom: 1px solid var(--border);
}

.table-card > h2 + .table-wrap {
  margin-top: 0.5rem;
}

.table-card > .empty-state {
  margin: var(--card-padding);
  padding: 1rem;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 0.95rem 1.15rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

th {
  background: #edf4f1;
  color: var(--text-muted);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

tbody tr {
  transition: background-color 120ms ease;
}

tbody tr:hover {
  background: #f7faf8;
}

tbody tr:last-child td {
  border-bottom: 0;
}

td .button {
  min-height: 2.4rem;
  padding: 0.55rem 0.8rem;
  font-size: 0.875rem;
}

.compact-list {
  margin: 0.4rem 0 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.25rem;
}

.compact-list:first-child {
  margin-top: 0;
}

.duplicate-actions,
.duplicate-action-form {
  display: grid;
  gap: 0.55rem;
}

.duplicate-actions {
  min-width: 13rem;
}

.duplicate-actions form {
  margin: 0;
}

.duplicate-action-form label {
  font-size: 0.8rem;
}

.duplicate-action-form select {
  min-height: 2.4rem;
  padding: 0.45rem 0.55rem;
  font-size: 0.85rem;
}

.duplicate-actions .button {
  width: 100%;
  justify-content: center;
}

.table-note {
  display: block;
  margin-top: 0.2rem;
  color: var(--text-muted);
}

.table-actions {
  min-width: 12rem;
}

td a {
  color: var(--brand-700);
  font-weight: 750;
}

.badge {
  margin: 0.1rem 0.2rem 0.1rem 0;
  padding: 0.3rem 0.6rem;
  display: inline-block;
  border-radius: 999px;
  background: #e5f5ef;
  color: var(--brand-900);
  font-size: 0.78rem;
  font-weight: 750;
  white-space: nowrap;
}

.button--compact {
  min-height: 2.2rem;
  padding: 0.42rem 0.7rem;
}

.table-muted {
  color: var(--text-muted);
}

.tag-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.tag-list--table {
  min-width: 8rem;
}

.tag-badge {
  padding: 0.28rem 0.62rem;
  border-radius: 999px;
  background: var(--tag-color, var(--brand-700));
  color: #fff;
  display: inline-flex;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1.2;
  white-space: nowrap;
}

.tag-badge--inactive {
  opacity: 0.62;
  filter: grayscale(0.75);
}

.tag-badge--more {
  background: var(--surface-muted);
  color: var(--text-muted);
}

.tag-assignment-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.tag-assignment-option {
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.65rem;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  cursor: pointer;
}

.tag-assignment-option:has(input:checked) {
  border-color: var(--tag-color);
  box-shadow: 0 0 0 1px var(--tag-color);
}

.tag-color-field {
  margin: 0;
  padding: 0;
  border: 0;
}

.tag-color-field legend {
  margin-bottom: 0.45rem;
  font-weight: 750;
}

.tag-color-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem 0.75rem;
}

.tag-color-option {
  padding: 0.55rem;
  border: 1px solid var(--border);
  border-radius: 0.6rem;
  display: block;
  cursor: pointer;
}

.tag-color-option__content {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.tag-color-option__content input[type="radio"] {
  flex: 0 0 auto;
}

.tag-color-option:has(input:checked) {
  border-color: var(--tag-color);
  box-shadow: 0 0 0 1px var(--tag-color);
}

.tag-color-option__swatch {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--tag-color);
  flex: 0 0 auto;
}

.tag-catalog-list {
  display: grid;
  gap: 0.7rem;
}

.tag-catalog-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
}

.tag-catalog-item--inactive {
  background: var(--surface-muted);
}

.tag-catalog-item__content {
  min-width: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem 0.6rem;
}

.tag-catalog-item__content small {
  color: var(--text-muted);
}

.tag-catalog-item__actions {
  margin: 0;
  flex: 0 0 auto;
}

@media (max-width: 46rem) {
  .tag-catalog-item {
    align-items: stretch;
    flex-direction: column;
  }

  .tag-assignment-list,
  .tag-color-options {
    grid-template-columns: 1fr;
  }
}

.badge--vencida {
  background: #fde8e7;
  color: #9a2929;
}

.badge--sem_vencimento {
  background: #edf0ef;
  color: #5d6965;
}

.badge--vence_hoje,
.badge--proxima_vencimento,
.badge--em_dia,
.badge--renovada {
  background: #dff5e8;
  color: #236341;
}

.badge--perdido,
.badge--muted,
.badge--cancelada,
.badge--encerrada,
.badge--substituida,
.badge--inativo {
  background: #edf0ef;
  color: #5d6965;
}

.badge--contratado {
  background: #dff5e8;
  color: #236341;
}

.badge--pendente {
  background: #fff2cd;
  color: #76530c;
}

.badge--agendado {
  background: #fff2cd;
  color: #76530c;
}

.badge--concluida,
.badge--realizado,
.badge--ativo {
  background: #dff5e8;
  color: #236341;
}

.empty-state {
  margin: 1rem 0 0;
  padding: 1rem;
  border: 1px dashed var(--border-strong);
  border-radius: 0.65rem;
  background: var(--surface-muted);
  color: var(--text-muted);
}

.detail-grid {
  margin-bottom: 1.5rem;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: minmax(0, 1.15fr) minmax(22rem, 0.85fr);
}

.lead-header {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 5rem;
  align-items: center;
  column-gap: 0.65rem;
  margin-bottom: 1rem;
  padding: 0.8rem 1rem;
  min-height: 3rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 0.35rem 1rem rgb(16 42 37 / 5%);
}

.lead-header h1 {
  min-width: 0;
  width: auto;
  max-width: none;
  margin: 0;
  flex: 0 1 auto;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.lead-header__identity {
  min-width: 0;
  grid-column: 1;
  grid-row: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem 0.75rem;
  flex-wrap: wrap;
}

.lead-header__tags {
  min-width: 0;
  flex: 0 1 auto;
}

.lead-header--with-actions .lead-header__identity {
  padding-right: 7.5rem;
}

.lead-header--with-tag-manager:not(.lead-header--with-actions) .lead-header__identity {
  padding-right: 10.5rem;
}

.lead-header--with-actions.lead-header--with-tag-manager .lead-header__identity {
  padding-right: 17.75rem;
}

.lead-header > .button {
  grid-column: 2;
  grid-row: 1;
  width: 5rem;
  min-height: 2.75rem;
  padding: 0.6rem 0.8rem;
}

.lead-header > .lead-actions-panel {
  grid-column: 1 / -1;
  grid-row: 2;
  margin: 0;
  border: 0;
  box-shadow: none;
}

.lead-header .lead-actions-panel__summary {
  position: absolute;
  top: 0.8rem;
  right: 6.65rem;
  width: 5.75rem;
  min-height: 2.75rem;
  padding: 0.6rem 0.85rem;
  gap: 0.35rem;
  margin-bottom: 0;
}

.lead-header__tag-manager {
  position: absolute;
  top: 0.8rem;
  right: 6.65rem;
  width: 9.5rem;
  min-height: 2.75rem;
  padding: 0.6rem 0.75rem;
  white-space: nowrap;
}

.lead-header--with-actions .lead-header__tag-manager {
  right: 13.05rem;
}

.lead-header .lead-actions-panel__summary strong {
  font-size: 1rem;
}

.lead-header .lead-actions-list {
  margin-top: 0.8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.lead-info-card .data-list div {
  padding-block: 0.55rem;
  font-size: 0.9rem;
}

.lead-info-card .data-list dd {
  min-width: 0;
  overflow-wrap: anywhere;
}

.lead-overview-grid {
  grid-template-columns: minmax(18rem, 0.6fr) minmax(0, 1.4fr);
}

.lead-overview-grid--archive,
.detail-grid--archive {
  grid-template-columns: minmax(0, 1fr);
}

.lead-actions-panel {
  margin-bottom: 1.5rem;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 0.35rem 1rem rgb(16 42 37 / 5%);
}

.lead-actions-panel__summary {
  min-height: 4rem;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  list-style: none;
  cursor: pointer;
}

.lead-actions-panel__summary::-webkit-details-marker,
.lead-action > summary::-webkit-details-marker {
  display: none;
}

.lead-actions-panel__summary:hover,
.lead-actions-panel[open] > .lead-actions-panel__summary {
  background: #edf4f1;
}

.lead-actions-panel[open] > .lead-actions-panel__summary {
  border-bottom: 1px solid var(--border);
}

.lead-actions-panel__summary > span:first-child,
.lead-action > summary > span {
  display: grid;
  gap: 0.15rem;
}

.lead-actions-panel__summary strong {
  color: var(--brand-950);
  font-size: 1.1rem;
}

.lead-actions-panel__summary small,
.lead-action > summary small {
  color: var(--text-muted);
  font-weight: 500;
}

.lead-actions-panel__count {
  flex: 0 0 auto;
  color: var(--brand-700);
  font-size: 0.875rem;
  font-weight: 750;
}

.lead-actions-panel__count::after {
  margin-left: 0.55rem;
  content: "▾";
}

.lead-actions-panel[open] .lead-actions-panel__count::after {
  content: "▴";
}

.lead-actions-list {
  padding: 0.5rem 1.25rem;
}

.lead-action {
  border-bottom: 1px solid var(--border);
}

.lead-action:last-child {
  border-bottom: 0;
}

.lead-action > summary {
  min-height: 4rem;
  padding: 0.8rem 0.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  list-style: none;
  color: var(--brand-900);
  cursor: pointer;
}

.lead-action > summary::after {
  flex: 0 0 auto;
  font-size: 1.35rem;
  content: "+";
}

.lead-action[open] > summary::after {
  content: "−";
}

.lead-action > summary:hover,
.lead-action[open] > summary {
  color: var(--brand-950);
}

.lead-action__body {
  width: 100%;
  padding: 0.25rem 0.25rem 1.25rem;
}

.lead-action-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem 1.5rem;
}

.lead-action-form > p {
  margin: 0;
}

.lead-action-form > .errorlist,
.lead-action-form > button {
  grid-column: 1 / -1;
  justify-self: start;
}

.lead-action--compact > summary {
  min-height: 3.4rem;
  padding-block: 0.55rem;
}

.lead-action--compact .lead-action__body {
  padding-top: 0;
  padding-bottom: 0.8rem;
}

.lead-action-form--compact {
  grid-template-columns: minmax(18rem, 33rem) max-content;
  align-items: end;
  gap: 0.75rem;
}

.lead-action-form--compact > button {
  grid-column: 2;
}

.detail-grid > .content-card {
  margin-bottom: 0;
}

details summary {
  position: relative;
  color: var(--brand-900);
  font-size: 1.05rem;
  font-weight: 750;
  cursor: pointer;
}

details[open] > summary {
  margin-bottom: 1rem;
}

.lead-action--compact[open] > summary {
  margin-bottom: 0.35rem;
}

.data-list {
  margin: 1rem 0 0;
}

.data-list div {
  padding: 0.75rem 0;
  display: grid;
  grid-template-columns: minmax(7rem, 0.4fr) 1fr;
  gap: 1rem;
  border-bottom: 1px solid var(--border);
}

.data-list div:last-child {
  border-bottom: 0;
}

.data-list dt {
  color: var(--text-muted);
  font-weight: 700;
}

.data-list dd {
  margin: 0;
}

.tasks-journeys-card > .section-heading {
  align-items: flex-start;
}

.tasks-journeys-card > .section-heading .help-text {
  margin: 0.35rem 0 0;
}

.task-totals {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.task-totals span {
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--text-muted);
  font-size: 0.8rem;
  white-space: nowrap;
}

.task-toolbar {
  margin: -0.35rem 0 0.65rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  flex-wrap: wrap;
}

.creation-actions {
  margin: 0;
  justify-content: flex-start;
}

.lead-task-list {
  display: grid;
  gap: 0.7rem;
}

.lead-task-list--scrollable {
  max-height: 22rem;
  padding-right: 0.5rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.lead-task-list--scrollable:focus-visible {
  outline: 3px solid var(--brand-300);
  outline-offset: 0.25rem;
  border-radius: 0.4rem;
}

.section-heading__description {
  margin: 0.3rem 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.milestone-list {
  display: grid;
  gap: 0.7rem;
}

.milestone {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.65rem 1rem;
}

.milestone--realizado {
  border-left-color: #62a984;
  background: #f8fbf9;
}

.milestone--cancelado {
  border-left-color: #9aa5a1;
  background: var(--surface-muted);
}

.milestone__content,
.milestone__heading > div {
  min-width: 0;
}

.milestone__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.milestone__heading > div {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.milestone__heading small,
.milestone__meta {
  color: var(--text-muted);
}

.milestone__meta {
  margin-top: 0.25rem;
  display: flex;
  gap: 0.35rem 1rem;
  flex-wrap: wrap;
  font-size: 0.84rem;
}

.milestone__meta span + span::before {
  margin-right: 1rem;
  color: var(--border-strong);
  content: "•";
}

.milestone__actions {
  grid-column: 2;
  grid-row: 1;
}

.choice-list--stacked,
.choice-list--stacked > div {
  display: grid;
  align-items: stretch;
  gap: 0.45rem;
}

.record-card {
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border);
  border-left: 0.3rem solid var(--brand-500);
  border-radius: 0.7rem;
  background: #fff;
}

.lead-task {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.3rem 1rem;
}

.lead-task--concluida {
  border-left-color: #62a984;
  background: #f8fbf9;
}

.lead-task--late {
  border-left-color: #bd572d;
  background: #fffaf7;
}

.lead-task > header {
  min-width: 0;
  grid-column: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.lead-task > header > div {
  min-width: 0;
  display: flex;
  align-items: baseline;
  flex-wrap: nowrap;
  gap: 0.2rem 0.75rem;
}

.lead-task > header > div > strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lead-task > header > div > small {
  min-width: 0;
  flex: 0 1 auto;
  white-space: nowrap;
}

.task-sort-form {
  width: fit-content;
  max-width: 100%;
  margin: 0 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem;
  flex-wrap: nowrap;
}

.task-sort-form label {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
}

.task-sort-form select,
.task-sort-form .button {
  min-height: 2rem;
  padding: 0.3rem 0.5rem;
  font-size: 0.78rem;
}

.task-sort-form select {
  width: 8rem;
  min-width: 0;
  max-width: 100%;
}

.lead-task > header small,
.lead-task__meta {
  color: var(--text-muted);
}

.lead-task__meta {
  grid-column: 1;
  margin-top: 0.15rem;
  display: flex;
  gap: 0.35rem 1rem;
  flex-wrap: wrap;
  font-size: 0.84rem;
}

.lead-task__meta span + span::before {
  margin-right: 1rem;
  color: var(--border-strong);
  content: "•";
}

.lead-task__meta .lead-task__observation {
  flex-basis: 100%;
  color: var(--text);
}

.lead-task__meta .lead-task__observation::before {
  content: none;
}

.lead-task__actions {
  grid-column: 2;
  grid-row: 1 / span 2;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.lead-task__actions form {
  margin: 0;
}

.lead-task__actions .button {
  min-height: 2.35rem;
  padding: 0.5rem 0.8rem;
  font-size: 0.85rem;
}

.edit-modal,
.confirmation-modal {
  width: min(calc(100% - 2rem), 52rem);
  max-width: none;
  max-height: calc(100dvh - 2rem);
  padding: 0;
  overflow: auto;
  border: 1px solid var(--border-strong);
  border-radius: 1rem;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1.5rem 4rem rgb(8 28 23 / 28%);
}

.edit-modal::backdrop,
.confirmation-modal::backdrop {
  background: rgb(7 28 23 / 58%);
  backdrop-filter: blur(2px);
}

.edit-modal__form {
  margin: 0;
}

.edit-modal__header {
  padding: 1.15rem 1.35rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface-muted);
}

.edit-modal__header h2 {
  margin: 0;
  color: var(--brand-950);
  font-size: 1.25rem;
}

.edit-modal__body {
  padding: 1.35rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(9rem, 0.45fr);
  gap: 1rem 1.25rem;
}

.edit-modal__body--journey {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.edit-modal__body--journey .help-text {
  margin: 0;
  font-weight: 500;
}

.edit-modal__body--single {
  grid-template-columns: 1fr;
}

.edit-modal__body--task > p:first-of-type,
.edit-modal__body--task > p:has(textarea),
.edit-modal__body--contact > p:has(textarea) {
  grid-column: 1 / -1;
}

.confirmation-modal {
  width: min(calc(100% - 2rem), 34rem);
}

.confirmation-modal__body {
  display: block;
}

.confirmation-modal__body p {
  margin: 0;
}

.edit-modal__body > p {
  margin: 0;
}

.edit-modal__field--wide,
.edit-modal__body > .errorlist {
  grid-column: 1 / -1;
}

.edit-modal input,
.edit-modal select,
.edit-modal textarea {
  min-width: 0;
}

.edit-modal__actions {
  padding: 1rem 1.35rem 1.25rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  border-top: 1px solid var(--border);
  background: var(--surface-muted);
}

body:has(.edit-modal[open]) {
  overflow: hidden;
}

.timeline {
  display: grid;
  gap: 0.7rem;
}

.content-card > h2 + .timeline {
  margin-top: 1.15rem;
}

.contact-record {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
}

.contact-record__content {
  min-width: 0;
}

.contact-record__heading {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.contact-result-indicator {
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 750;
  line-height: 1.4;
}

.contact-record--estabelecido {
  border-left-color: var(--brand-600);
}

.contact-record--estabelecido .contact-result-indicator {
  background: #dff2ea;
  color: #245f4d;
}

.contact-record--tentativa {
  border-left-color: #d4932f;
  background: #fffbf2;
}

.contact-record--tentativa .contact-result-indicator {
  background: #f9e8c8;
  color: #765016;
}

.contact-result-options {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.contact-result-options legend {
  margin-bottom: 0.4rem;
  color: var(--brand-950);
  font-weight: 700;
}

.timeline p {
  margin: 0.35rem 0;
  line-height: 1.5;
}

.timeline small {
  display: block;
  color: var(--text-muted);
}

.history-record__details {
  margin: 0.45rem 0 0.6rem;
  display: grid;
  gap: 0.3rem;
}

.history-record__details div {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: 0.65rem;
}

.history-record__details dt {
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.history-record__details dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 0.88rem;
}

.timeline--scrollable {
  max-height: 28rem;
  padding-right: 0.5rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.timeline--scrollable:focus-visible {
  outline: 3px solid var(--brand-300);
  outline-offset: 0.25rem;
  border-radius: 0.4rem;
}

.journey-steps {
  display: grid;
  gap: 1.15rem;
}

.journey-step-add {
  display: flex;
  justify-content: flex-start;
}

.journey-step {
  padding: 0.9rem 1rem;
  display: grid;
  grid-template-columns: minmax(14rem, 1fr) auto auto;
  align-items: center;
  gap: 0.75rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--surface-muted);
}

.journey-step__summary {
  min-width: 0;
  display: grid;
  gap: 0.15rem;
}

.journey-step__summary strong {
  color: var(--brand-950);
}

.journey-step--pending {
  border-color: #d8ad58;
  background: #fffaf0;
}

.journey-step__pending {
  color: #855d17;
  font-size: 0.78rem;
  font-weight: 700;
}

.journey-step__summary span {
  overflow: hidden;
  color: var(--text-muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.journey-step__meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.journey-step__meta span {
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.78rem;
  white-space: nowrap;
}

.journey-step__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.checkbox-field {
  min-height: 2.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.checkbox-field input {
  width: 1.1rem;
  min-height: 1.1rem;
}

.context-help-row {
  min-height: 2rem;
  margin: -0.65rem 0 0.65rem;
  display: flex;
  justify-content: flex-end;
}

.context-help-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.context-help-link:hover {
  color: var(--brand-900);
}

.context-help-link__icon,
.help-card__icon {
  width: 1.65rem;
  height: 1.65rem;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  background: var(--surface);
  color: var(--brand-700);
  font-weight: 850;
}

.help-search label:first-child {
  min-width: min(100%, 30rem);
}

.help-category {
  margin-bottom: 2rem;
}

.help-category .section-heading {
  margin-bottom: 1rem;
}

.help-category .section-heading p {
  margin: 0.35rem 0 0;
  color: var(--text-muted);
}

.help-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 1rem;
}

.help-card {
  min-height: 8.5rem;
  padding: 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  text-decoration: none;
  box-shadow: 0 0.35rem 1rem rgb(16 42 37 / 4%);
  transition: border-color 150ms ease, transform 150ms ease;
}

.help-card:hover {
  border-color: var(--brand-500);
  transform: translateY(-1px);
}

.help-card h3 {
  margin: 0;
  color: var(--brand-950);
  font-size: 1.1rem;
}

.help-card p {
  margin: 0.45rem 0 0;
  color: var(--text-muted);
}

.help-article {
  width: min(100%, 70rem);
  margin-inline: auto;
}

.help-article__content {
  font-size: 1.02rem;
  line-height: 1.7;
}

.help-article__content h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.45rem;
}

.help-article__content h2:first-child {
  margin-top: 0;
}

.help-article__content h3 {
  margin: 1.5rem 0 0.6rem;
  color: var(--brand-950);
}

.help-article__content p {
  margin: 0.7rem 0;
}

.help-article__content li + li {
  margin-top: 0.35rem;
}

.help-article__footer {
  margin: -0.75rem 0 1.5rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.35rem;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.help-related ul {
  margin-bottom: 0;
}

.help-admin-grid {
  display: grid;
  gap: 1.5rem;
}

.help-editor-page {
  width: min(100%, 78rem);
  margin-inline: auto;
}

.help-editor-form__meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.25rem;
}

.help-editor-form__meta .form-field[data-field="perfis"],
.help-editor-form__content {
  grid-column: 1 / -1;
}

.help-editor-form__content {
  margin-top: 1.25rem;
}

.help-editor-shell {
  min-width: 0;
  display: grid;
  gap: 0;
}

.help-editor-toolbar {
  padding: 0.55rem;
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  border: 1px solid var(--border-strong);
  border-bottom: 0;
  border-radius: 0.65rem 0.65rem 0 0;
  background: var(--surface-muted);
}

.help-editor-toolbar button {
  min-height: 2.2rem;
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 0.4rem;
  background: var(--surface);
  color: var(--brand-900);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.help-editor-toolbar button:hover {
  border-color: var(--brand-500);
}

.help-rich-editor {
  min-height: 24rem;
  padding: 1rem;
  overflow-y: auto;
  border: 1px solid var(--border-strong);
  border-radius: 0 0 0.65rem 0.65rem;
  background: var(--surface);
  line-height: 1.65;
}

.help-rich-editor:focus {
  outline: 3px solid var(--brand-300);
  outline-offset: 1px;
  border-color: var(--brand-700);
}

.notes-card {
  overflow: hidden;
}

.notes-content,
.notes-version__preview {
  color: var(--text);
  line-height: 1.65;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.notes-content > :first-child,
.notes-version__preview > :first-child {
  margin-top: 0;
}

.notes-content > :last-child,
.notes-version__preview > :last-child {
  margin-bottom: 0;
}

.notes-meta {
  margin: 1rem 0 0;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.notes-editor-modal,
.notes-versions-modal {
  width: min(calc(100% - 2rem), 68rem);
}

.notes-editor-modal__body .form-field {
  gap: 0.55rem;
}

.notes-editor-modal .help-rich-editor {
  min-height: 18rem;
  max-height: 52dvh;
}

.notes-versions-modal__body {
  max-height: 68dvh;
  overflow-y: auto;
}

.notes-version-list {
  display: grid;
  gap: 0.75rem;
}

.notes-version {
  display: grid;
  gap: 0.75rem;
}

.notes-version > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.notes-version > header div {
  display: grid;
  gap: 0.2rem;
}

.notes-version details summary {
  cursor: pointer;
  color: var(--brand-800);
  font-weight: 700;
}

.notes-version__preview {
  margin-top: 0.7rem;
  padding: 0.85rem;
  border: 1px solid var(--border);
  border-radius: 0.65rem;
  background: var(--surface-muted);
}

.integration-heading {
  margin-bottom: 1.25rem;
}

.integration-heading > div,
.integration-section-heading > div {
  min-width: 0;
}

.integration-shell {
  display: grid;
  gap: 1.25rem;
}

.integration-shell > .content-card {
  margin-bottom: 0;
}

.integration-config-card {
  position: relative;
  overflow: hidden;
  border-top: 0.25rem solid var(--brand-700);
}

.integration-section-heading {
  align-items: flex-start;
  margin-bottom: 1.1rem;
}

.integration-section-heading p:not(.integration-kicker) {
  max-width: 52rem;
  margin: 0.35rem 0 0;
  color: var(--text-muted);
}

.integration-kicker {
  margin: 0 0 0.35rem;
  color: var(--brand-700);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.integration-status {
  padding: 0.45rem 0.7rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.integration-status > span {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #8a9692;
}

.integration-status--active {
  border-color: #a7d8c5;
  background: #eaf7f2;
  color: #1d654f;
}

.integration-status--active > span {
  background: #25845f;
  box-shadow: 0 0 0 0.2rem rgb(37 132 95 / 13%);
}

.integration-connection-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(15rem, 0.65fr);
  gap: 0.85rem;
}

.integration-connection-item {
  min-width: 0;
  padding: 1rem;
  display: grid;
  align-content: start;
  gap: 0.35rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--surface-muted);
}

.integration-connection-item__label {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.integration-connection-item code {
  width: 100%;
  padding: 0.65rem 0.75rem;
  overflow-wrap: anywhere;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: var(--surface);
  color: var(--brand-900);
  font-size: 0.9rem;
}

.integration-connection-item strong {
  color: var(--brand-950);
}

.integration-connection-item small {
  color: var(--text-muted);
  line-height: 1.4;
}

.integration-form {
  margin-top: 1.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border);
}

.integration-toggle {
  width: fit-content;
  max-width: 100%;
  margin-bottom: 1rem;
  padding: 0.8rem 0.9rem;
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 0.7rem;
  border: 1px solid var(--border);
  border-radius: 0.65rem;
  background: var(--surface-muted);
  cursor: pointer;
}

.integration-toggle input[type="checkbox"] {
  flex: none;
}

.integration-toggle > span {
  display: grid;
  gap: 0.1rem;
}

.integration-toggle strong {
  line-height: 1.25;
}

.integration-toggle small {
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.35;
}

.integration-form__grid {
  align-items: start;
  gap: 1rem;
}

.integration-form__grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.integration-form .helptext {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.integration-form__actions {
  margin-top: 1rem;
  display: flex;
  justify-content: flex-end;
}

.integration-count {
  padding: 0.4rem 0.65rem;
  flex: none;
  border-radius: 999px;
  background: #e5f5ef;
  color: var(--brand-900);
  font-size: 0.8rem;
  font-weight: 800;
}

.integration-table {
  border: 1px solid var(--border);
  border-radius: 0.7rem;
}

.integration-table table {
  min-width: 48rem;
}

.integration-table th {
  padding-block: 0.75rem;
}

.integration-table td {
  vertical-align: middle;
}

.integration-table code {
  overflow-wrap: anywhere;
  color: var(--brand-900);
}

.integration-subpanel {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--surface-muted);
}

.integration-subpanel__heading h3 {
  margin: 0;
  color: var(--brand-950);
  font-size: 1rem;
}

.integration-subpanel__heading p {
  margin: 0.2rem 0 0;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.integration-form--compact {
  margin-top: 0.9rem;
  padding-top: 0;
  border-top: 0;
}

.integration-empty-state {
  margin: 0;
  padding: 1rem;
  border: 1px dashed var(--border-strong);
  border-radius: 0.7rem;
  background: var(--surface-muted);
}

.integration-notice {
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border-left: 0.25rem solid var(--brand-600);
  border-radius: 0.45rem;
  background: #edf7f3;
}

.integration-notice > strong {
  color: var(--brand-950);
}

.integration-notice p {
  margin: 0.2rem 0 0;
  color: var(--text-muted);
}

.integration-field-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
}

.integration-field {
  min-width: 0;
  padding: 0.8rem;
  display: grid;
  gap: 0.35rem;
  border: 1px solid var(--border);
  border-radius: 0.65rem;
  background: var(--surface);
}

.integration-field--required {
  border-left: 0.25rem solid var(--brand-600);
}

.integration-field code {
  overflow-wrap: anywhere;
  color: var(--brand-900);
  font-size: 0.82rem;
  font-weight: 800;
}

.integration-field span {
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.35;
}

.integration-token-note {
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.integration-code-example {
  margin-top: 1rem;
  border: 1px solid var(--border);
  border-radius: 0.7rem;
  background: var(--surface-muted);
  overflow: hidden;
}

.integration-code-example > summary {
  padding: 0.8rem 1rem;
  color: var(--brand-900);
  font-weight: 800;
  cursor: pointer;
}

.integration-code-example[open] > summary {
  border-bottom: 1px solid var(--border);
}

.integration-code-example pre {
  max-width: 100%;
  margin: 0;
  padding: 1rem;
  overflow-x: auto;
  background: var(--brand-950);
  color: #effaf6;
  font-size: 0.85rem;
  line-height: 1.55;
}

.integration-event-status {
  padding: 0.3rem 0.55rem;
  display: inline-flex;
  border-radius: 999px;
  background: #edf1ef;
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 800;
  white-space: nowrap;
}

.integration-event-status--processado {
  background: #e5f5ef;
  color: #1d654f;
}

.integration-event-status--erro {
  background: #fff0f0;
  color: #9a2929;
}

.integration-event-status--processando,
.integration-event-status--recebido {
  background: #fff6dd;
  color: #7f5a0b;
}

.integration-event-detail {
  max-width: 28rem;
  color: var(--text-muted);
}

.integration-rule-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.integration-rule-grid--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.integration-rule {
  min-width: 0;
  padding: 0.9rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.7rem;
  background: var(--surface-muted);
}

.integration-rule > span {
  width: 2rem;
  height: 2rem;
  display: inline-grid;
  place-items: center;
  flex: none;
  border-radius: 50%;
  background: var(--brand-900);
  color: white;
  font-size: 0.72rem;
  font-weight: 800;
}

.integration-rule strong {
  color: var(--brand-950);
}

.integration-rule p {
  margin: 0.2rem 0 0;
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.4;
}

@media (max-width: 74rem) {
  .integration-field-grid,
  .integration-rule-grid--four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .integration-form__grid--three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 46rem) {
  .integration-heading > .button {
    width: 100%;
  }

  .integration-section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .integration-status,
  .integration-count {
    width: fit-content;
  }

  .integration-connection-grid,
  .integration-form__grid--three,
  .integration-field-grid,
  .integration-rule-grid,
  .integration-rule-grid--four {
    grid-template-columns: 1fr;
  }

  .integration-form__actions .button,
  .integration-toggle {
    width: 100%;
  }
}

@media (max-width: 74rem) {
  .site-header__content {
    padding-block: 0.65rem;
    flex-wrap: wrap;
  }

  .main-nav {
    width: 100%;
    order: 3;
    justify-content: flex-start;
    overflow: visible;
  }

  .lead-overview-grid {
    grid-template-columns: 1fr;
  }

  .report-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 46rem) {
  .brand {
    flex-basis: 9.5rem;
  }

  .lead-header {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    row-gap: 0.65rem;
  }

  .lead-header__identity,
  .lead-header--with-actions .lead-header__identity,
  .lead-header--with-tag-manager:not(.lead-header--with-actions) .lead-header__identity,
  .lead-header--with-actions.lead-header--with-tag-manager .lead-header__identity {
    grid-column: 1;
    grid-row: 1;
    padding-right: 0;
  }

  .lead-header__identity h1 {
    flex-basis: 100%;
    overflow-wrap: break-word;
    word-break: normal;
  }

  .lead-header__tag-manager {
    position: static;
    width: auto;
    max-width: 100%;
  }

  .lead-header > .button {
    grid-column: 1;
    grid-row: 2;
    width: auto;
    justify-self: end;
  }

  .lead-header > .lead-actions-panel {
    grid-column: 1;
    grid-row: 3;
  }

  .lead-header .lead-actions-panel__summary {
    position: static;
    width: max-content;
    max-width: 100%;
  }

  .site-header .button {
    min-height: 2.5rem;
    padding-inline: 0.8rem;
    font-size: 0.875rem;
  }

  .main-nav {
    padding-bottom: 0.25rem;
    flex-wrap: wrap;
  }

  .main-nav__submenu {
    right: auto;
    left: 0;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .status-card {
    padding: 1.5rem;
  }

  .detail-grid,
  .form-grid,
  .lead-action-form,
  .edit-modal__body,
  .edit-modal__body--journey,
  .communication-row {
    grid-template-columns: 1fr;
  }

  .detail-search {
    grid-template-columns: 1fr;
  }

  .detail-search > label {
    white-space: normal;
  }

  .lead-action-form--compact > button {
    grid-column: 1;
  }

  .address-grid {
    grid-template-columns: 1fr;
  }

  .lead-identity-grid {
    grid-template-columns: 1fr;
  }

  .cep-field-row {
    grid-template-columns: minmax(9rem, 12rem) minmax(0, 1fr);
  }

  .communication-row > .button {
    justify-self: start;
  }

  .tasks-journeys-card > .section-heading {
    align-items: flex-start;
  }

  .task-totals {
    justify-content: flex-start;
  }

  .lead-task__meta {
    display: grid;
  }

  .milestone {
    grid-template-columns: 1fr;
  }

  .milestone__actions {
    grid-column: 1;
    grid-row: auto;
    justify-content: flex-start;
  }

  .milestone__meta {
    display: grid;
  }

  .milestone__meta span + span::before {
    content: none;
  }

  .lead-task__meta span + span::before {
    content: none;
  }

  .lead-task {
    grid-template-columns: 1fr;
  }

  .contact-record {
    grid-template-columns: 1fr;
  }

  .lead-task__actions {
    grid-column: 1;
    grid-row: auto;
    margin-top: 0.45rem;
    padding-top: 0.6rem;
    justify-content: flex-start;
    border-top: 1px solid var(--border);
  }

  .filter-bar label,
  .filter-bar label:first-child {
    min-width: 100%;
  }

  .filter-bar .button,
  .page-heading > .button,
  .page-heading > .button-group {
    width: 100%;
  }

  .filter-bar__actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .multi-filter {
    width: 100%;
  }

  .multi-filter__options {
    width: 100%;
    max-width: 100%;
  }

  .table-card.table-card--filters {
    overflow: hidden;
  }

  .table-wrap.table-wrap--filters {
    overflow-x: auto;
  }

  .table-filter-cell .multi-filter__options {
    position: static;
    width: 13rem;
    margin-top: 0.5rem;
  }

  .page-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .journey-page-actions .button {
    width: auto;
    min-width: 0;
    flex: 1 1 0;
  }

  .journey-step {
    grid-template-columns: 1fr;
  }

  .report-grid {
    grid-template-columns: 1fr;
  }

  .help-editor-form__meta {
    grid-template-columns: 1fr;
  }

  .help-grid {
    grid-template-columns: 1fr;
  }

  .journey-step__meta {
    justify-content: flex-start;
  }

  .journey-step > .button {
    justify-self: start;
  }

  .edit-modal__actions {
    flex-direction: column;
  }

  .edit-modal__actions .button {
    width: 100%;
  }
}

@media (max-width: 24rem) {
  .site-header__content {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 1rem;
  }

  .site-header .button {
    width: 100%;
  }

  .site-header nav {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .button,
  .metric-card,
  tbody tr {
    transition: none;
  }
}
