:root {
  --bg-900: #030b1a;
  --bg-800: #07162e;
  --bg-700: #0c2345;
  --brand-500: #22c55e;
  --brand-600: #16a34a;
  --brand-300: #86efac;
  --accent-500: #2563eb;
  --text-100: #e6f0ff;
  --text-300: #9db2ce;
  --line-500: #1c355e;
  --success: #22c55e;
  --warning: #f59e0b;
  --error: #ef4444;

  --crm-bg: #f4f7fc;
  --crm-panel: #ffffff;
  --crm-border: #d9e3f1;
  --crm-ink: #1a2d45;
  --crm-muted: #5f7390;
  --crm-brand: var(--brand-500);
  --crm-brand-2: var(--brand-600);
  --crm-brand-soft: color-mix(in srgb, var(--brand-500) 14%, transparent);

  --bs-body-bg: var(--crm-bg);
  --bs-body-color: var(--crm-ink);
  --bs-border-color: var(--crm-border);
  --bs-primary: var(--brand-500);
  --bs-primary-rgb: 34, 197, 94;
  --bs-link-color: var(--accent-500);
  --bs-link-hover-color: color-mix(in srgb, var(--accent-500) 78%, white);
  --bs-secondary-color: var(--crm-muted);
}

.account-address-view-summary {
  border: 1px solid #d7e5f5;
  background: linear-gradient(180deg, #fafdff 0%, #f4f9ff 100%);
  border-radius: 14px;
  padding: 0.95rem 1rem;
}

.account-address-view-summary__heading {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.account-address-view-summary__icon {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  background: #eaf2ff;
  color: #1e4e90;
  flex: 0 0 auto;
}

.account-address-view-summary__content {
  min-width: 0;
}

.account-address-view-summary__title {
  font-size: 1.02rem;
  font-weight: 800;
  color: #173760;
  line-height: 1.35;
}

.account-address-view-summary__meta {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 0.45rem;
}

.account-address-view-summary__status {
  font-size: 0.82rem;
  font-weight: 600;
  color: #577194;
}

.account-address-view-modal .modal-body {
  background: #f7faff;
}

.account-address-view-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.account-address-view-field {
  border: 1px solid #d8e5f4;
  border-radius: 12px;
  background: #fff;
  padding: 0.6rem 0.75rem;
  min-height: 78px;
}

.account-address-view-field__label {
  text-transform: uppercase;
  letter-spacing: .045em;
  color: #607998;
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 0.22rem;
}

.account-address-view-field__value {
  color: #1d3351;
  font-weight: 700;
  font-size: 0.95rem;
  word-break: break-word;
}

.account-address-view-field--metric .account-address-view-field__value {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.88rem;
  font-weight: 600;
}

.account-address-view-map__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.45rem;
}

.account-address-view-map__container {
  border: 1px solid #d8e6f5;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.account-address-view-map__container iframe {
  width: 100%;
  min-height: 320px;
  border: 0;
}

.account-address-view-map__placeholder {
  border: 1px dashed #c9daee;
  border-radius: 14px;
  background: #f4f8fd;
  color: #5a6f8d;
  padding: 1rem;
  text-align: center;
  font-weight: 600;
}

@media (max-width: 991.98px) {
  .account-address-view-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .account-address-view-grid {
    grid-template-columns: 1fr;
  }

  .account-address-view-map__container iframe {
    min-height: 240px;
  }
}

body {
  background:
    radial-gradient(1000px 420px at 10% -12%, rgba(37, 99, 235, 0.1), transparent 58%),
    radial-gradient(880px 360px at 95% -18%, rgba(34, 197, 94, 0.09), transparent 62%),
    var(--crm-bg);
  color: var(--crm-ink);
  font-size: 0.96rem;
  min-height: 100vh;
}

.auth-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.18), transparent 46%),
    radial-gradient(circle at 16% 22%, rgba(34, 197, 94, 0.14), transparent 48%),
    #eef3fb;
}

.auth-shell--full {
  height: 100vh;
  overflow: hidden;
}

.auth-main {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.auth-main--full {
  height: 100vh;
  min-height: 100vh;
  padding: 0;
  align-items: stretch;
  justify-content: stretch;
}

.auth-content {
  width: min(460px, 100%);
}

.auth-content--wide {
  width: min(1120px, 100%);
}

.auth-content--full {
  width: 100%;
  max-width: none;
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
}

.login-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  border: 1px solid #cfdbec;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(11, 33, 64, 0.14);
  background: #ffffff;
}

.auth-content--full .login-split {
  height: 100vh;
  min-height: 100vh;
  border-radius: 0;
  border: 0;
  box-shadow: none;
}

.login-split__left {
  background: #f6f8fc;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.2rem 2rem;
  position: relative;
}

.login-split__left-main {
  width: 100%;
  display: flex;
  justify-content: center;
}

.login-mobile-brand,
.login-mobile-trial {
  display: none;
}

.login-left-legal {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  text-align: center;
  color: #5b6f89;
  font-size: 0.76rem;
}

.login-split__right {
  background: linear-gradient(160deg, #102a4f 0%, #163a68 52%, #1f4f82 100%);
  padding: 3.5rem 3.6rem 2.5rem;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.login-split__right::before,
.login-split__right::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  z-index: -1;
}

.login-split__right::before {
  width: 340px;
  height: 340px;
  right: -110px;
  top: -70px;
  background: rgba(138, 225, 180, 0.18);
}

.login-split__right::after {
  width: 420px;
  height: 420px;
  bottom: -210px;
  right: 90px;
  background: rgba(12, 24, 42, 0.34);
}

.login-card {
  background: #fff;
  border-radius: 1.2rem;
  box-shadow: 0 25px 65px rgba(10, 30, 60, 0.18);
  padding: 2rem 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.login-card--modern {
  border-radius: 14px;
  border: 1px solid #cfdaec;
  width: min(420px, 100%);
  box-shadow: 0 12px 30px rgba(17, 39, 70, 0.08);
}

.login-card__header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.login-card__logo {
  width: 48px;
  height: 48px;
  border-radius: 0.65rem;
  background: #0f4c81;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
}

.login-card__header h2 {
  margin: 0;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  color: #17385f;
  font-weight: 800;
}

.login-card__header p {
  margin: 0;
  color: #4f6788;
  font-weight: 600;
}

.login-card__env-info {
  margin-top: 0.35rem;
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent-500) 45%, #ffffff);
  background: color-mix(in srgb, var(--accent-500) 12%, #ffffff);
  color: #1f4aa8;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.login-card__form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.login-card__form label {
  font-weight: 600;
  font-size: 0.9rem;
}

.login-card__form input {
  border-radius: 0.65rem;
  border: 1px solid rgba(15, 76, 129, 0.3);
  padding: 0.85rem;
  font-size: 0.95rem;
}

.login-card__submit {
  border-radius: 0.75rem;
  padding: 0.9rem;
  font-weight: 600;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.login-card__submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(15, 76, 129, 0.35);
}

.login-card__footer a {
  color: #0f4c81;
  font-weight: 600;
  text-decoration: none;
}

.login-card__footer a:hover {
  text-decoration: underline;
}

.login-card__info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: #5e6c84;
  text-align: center;
}

.crm-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: flex-start;
  padding-top: 0.9rem;
}

.crm-form-actions .btn {
  min-width: 136px;
}

@media (max-width: 576px) {
  .crm-form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .crm-form-actions .btn {
    width: 100%;
    min-width: 0;
  }
}

.login-hero {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-hero__eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9dd6ff;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.login-hero h3 {
  max-width: 18ch;
  font-size: clamp(2rem, 3vw, 3.1rem);
  line-height: 1.08;
  margin: 0;
  font-weight: 700;
  color: #f3f8ff;
}

.login-hero > p {
  margin-top: 1.35rem;
  max-width: 56ch;
  font-size: 1.08rem;
  line-height: 1.55;
  color: #c9d8ea;
}

.login-hero__bullets {
  margin: 1.1rem 0 1.4rem;
  padding-left: 1rem;
  color: #d4e4f6;
}

.login-hero__bullets li {
  margin-bottom: 0.5rem;
}

.login-hero__image {
  display: block;
  width: min(560px, 100%);
  margin-top: 0.7rem;
  max-height: 34vh;
  border-radius: 18px;
  border: 1px solid rgba(140, 201, 255, 0.35);
  background: #f7fbff;
  box-shadow: 0 18px 38px rgba(7, 19, 34, 0.34);
  object-fit: contain;
}

@media (max-width: 1090px) {
  .auth-main {
    padding: 1rem;
  }

  .login-split {
    grid-template-columns: 1fr;
    min-height: 100vh;
    background: #eef1f7;
  }

  .login-split__left {
    padding: 0.6rem;
    align-items: center;
    justify-content: center;
  }

  .login-split__left-main {
    width: 100%;
    max-width: 480px;
    flex-direction: column;
    border: 1px solid #ccd7e6;
    background: #fff;
  }

  .login-mobile-brand {
    display: flex;
    justify-content: center;
    padding: 1.2rem 1rem;
    border-bottom: 1px solid #d7e2f0;
    background: #f6f8fc;
  }

  .login-mobile-brand {
    align-items: center;
    gap: 0.7rem;
  }

  .login-mobile-brand__mark {
    width: 52px;
    height: 52px;
    border-radius: 0.65rem;
    background: #0f4c81;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.45rem;
  }

  .login-mobile-brand__text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
  }

  .login-mobile-brand__text strong {
    font-size: 1.25rem;
    color: #1d2a39;
  }

  .login-mobile-brand__text span {
    font-size: 0.86rem;
    color: #5e6c84;
  }

  .login-split__right {
    display: none;
    padding: 2rem 1.2rem;
  }

  .login-card--modern {
    width: 100%;
    max-width: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 1.1rem;
  }

  .login-card__header,
  .login-card__info {
    display: none;
  }

  .login-card__footer {
    display: block;
    text-align: left;
    margin-top: 0.2rem;
  }

  .login-left-legal {
    position: static;
    margin-top: 0.6rem;
    padding-bottom: 0.8rem;
    font-size: 0.88rem;
    text-align: center;
    max-width: 480px;
    color: #5b6f89;
  }

  .login-hero h3,
  .login-hero > p {
    max-width: 100%;
  }
}

.crm-header {
  background: transparent;
  position: sticky;
  top: 0;
  z-index: 1030;
}

.crm-context-nav {
  background: #ffffff;
  border-top: 1px solid #d8e1ef;
  border-bottom: 1px solid #d8e1ef;
  box-shadow: 0 4px 14px rgba(16, 37, 67, 0.05);
}

.crm-brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font-weight: 700;
  color: var(--crm-ink);
}

.crm-topnav {
  gap: 0.35rem;
}

.crm-topnav .nav-link {
  color: #334155;
  border-radius: 0.6rem;
  font-weight: 600;
  padding: 0.55rem 0.95rem;
  white-space: nowrap;
}

.crm-topnav .nav-link.active,
.crm-topnav .nav-link:hover {
  background: var(--crm-brand-soft);
  color: var(--crm-brand);
}

.crm-page-head h3 {
  font-weight: 700;
}

.card,
.card-kpi {
  border: 1px solid var(--crm-border);
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(10, 30, 60, 0.05);
}

.card .card-body {
  padding: 1.4rem;
}

.crm-empty-state-card {
  border: 1px solid #d1e3dc;
  background:
    radial-gradient(760px 260px at 14% -8%, rgba(22, 163, 74, 0.14), transparent 62%),
    radial-gradient(820px 320px at 92% -20%, rgba(30, 64, 175, 0.1), transparent 64%),
    linear-gradient(180deg, #f9fcff 0%, #f2f8ff 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 12px 26px rgba(16, 39, 72, 0.08);
}

.crm-empty-state {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.8rem 1.2rem 2rem;
}

.crm-empty-state__brand-mark {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: linear-gradient(135deg, #092043 0%, #0e315f 65%, #16447e 100%);
  border: 1px solid #2e5a93;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 14px 24px rgba(9, 32, 67, 0.25),
    0 0 0 4px rgba(22, 163, 74, 0.09);
  margin-bottom: 0.8rem;
}

.crm-empty-state__brand-orb {
  position: absolute;
  inset: 7px;
  border-radius: 12px;
  background: radial-gradient(circle at 35% 30%, rgba(22, 163, 74, 0.35), rgba(22, 163, 74, 0.05) 62%, transparent 100%);
}

.crm-empty-state__brand-icon {
  position: relative;
  font-size: 1.95rem;
  font-weight: 800;
  line-height: 1;
  color: #20c45a;
  letter-spacing: -0.02em;
}

.crm-empty-state__badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid #c5d7ef;
  background: rgba(255, 255, 255, 0.9);
  color: #3c5478;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.72rem;
  margin-bottom: 0.62rem;
}

.crm-empty-state__image {
  width: min(600px, 92%);
  max-height: 235px;
  opacity: 0.98;
  object-fit: contain;
  filter: drop-shadow(0 10px 16px rgba(77, 135, 194, 0.08));
}

.crm-empty-state__title {
  margin-top: 0.18rem;
  margin-bottom: 0.45rem;
  font-size: clamp(1.6rem, 2.5vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #18385c;
}

.crm-empty-state__description {
  margin: 0;
  color: #546b8b;
  font-size: 1rem;
  max-width: 44ch;
  line-height: 1.42;
}

@media (max-width: 768px) {
  .crm-empty-state {
    min-height: 270px;
    padding: 1.1rem 0.8rem 1.2rem;
  }

  .crm-empty-state__brand-mark {
    width: 62px;
    height: 62px;
    border-radius: 15px;
    margin-bottom: 0.65rem;
  }

  .crm-empty-state__brand-icon {
    font-size: 1.65rem;
  }

  .crm-empty-state__badge {
    font-size: 0.72rem;
    padding: 0.24rem 0.6rem;
    margin-bottom: 0.48rem;
  }

  .crm-empty-state__image {
    width: min(520px, 96%);
    max-height: 180px;
  }

  .crm-empty-state__title {
    font-size: clamp(1.25rem, 5.1vw, 1.55rem);
    margin-top: 0.2rem;
  }

  .crm-empty-state__description {
    font-size: 0.94rem;
  }
}

.dashboard-exec {
  position: relative;
  display: grid;
  grid-template-columns: minmax(420px, 1fr) auto;
  gap: 1rem;
  padding: 1.35rem 1.45rem;
  border-radius: 16px;
  border: 1px solid #bfd2ea;
  background:
    radial-gradient(420px 140px at 86% -30%, rgba(34, 197, 94, 0.18), transparent 66%),
    radial-gradient(620px 190px at 10% -24%, rgba(37, 99, 235, 0.16), transparent 62%),
    linear-gradient(180deg, #f9fcff, #f4f8fe);
  box-shadow: 0 14px 30px rgba(16, 39, 72, 0.08);
}

.dashboard-exec__kicker {
  color: #5f7390;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin-bottom: 0.3rem;
}

.dashboard-exec h2 {
  margin: 0;
  font-size: clamp(1.42rem, 1.6vw, 1.85rem);
  line-height: 1.15;
  font-weight: 800;
  color: #172f50;
}

.dashboard-exec p {
  margin: 0.42rem 0 0;
  color: #4f6280;
  max-width: 70ch;
}

.dashboard-exec__chips {
  margin-top: 0.95rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.dashboard-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  border-radius: 999px;
  border: 1px solid #cbdcf0;
  background: rgba(255, 255, 255, 0.82);
  color: #1f3656;
  padding: 0.3rem 0.72rem;
  font-size: 0.82rem;
  font-weight: 700;
}

.dashboard-chip i {
  color: #356aa3;
}

.dashboard-chip.is-good {
  border-color: #9bd9b3;
  background: #edf9f1;
  color: #0f6a38;
}

.dashboard-chip.is-warn {
  border-color: #f5d191;
  background: #fff7e8;
  color: #8a5a0a;
}

.dashboard-chip.is-risk {
  border-color: #f0b2b2;
  background: #fff1f1;
  color: #9e2f2f;
}

.dashboard-exec__actions {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.dashboard-exec__actions .btn {
  border-radius: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.dashboard-intel {
  display: grid;
  grid-template-columns: 140px 1fr minmax(230px, 260px);
  gap: 0.95rem;
  padding: 1rem;
  border-radius: 15px;
  border: 1px solid #c8d9ed;
  background: linear-gradient(180deg, #f9fcff 0%, #f3f8ff 100%);
  box-shadow: 0 10px 24px rgba(16, 39, 72, 0.07);
}

.dashboard-intel.is-good {
  border-color: #b8e1c8;
  background: linear-gradient(180deg, #f6fff9 0%, #eefbf3 100%);
}

.dashboard-intel.is-medium {
  border-color: #d9e4f3;
}

.dashboard-intel.is-risk {
  border-color: #f1cdcd;
  background: linear-gradient(180deg, #fff9f9 0%, #fff1f1 100%);
}

.dashboard-intel__score {
  border: 1px solid #d0e0f2;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  padding: 0.7rem 0.55rem;
}

.dashboard-intel__score-value {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  color: #1f4f83;
}

.dashboard-intel__score-value.is-good {
  color: #138245;
}

.dashboard-intel__score-value.is-medium {
  color: #a36d17;
}

.dashboard-intel__score-value.is-risk {
  color: #bb2f2f;
}

.dashboard-intel__score-label {
  color: #5c718c;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  text-align: center;
}

.dashboard-intel__score-tone {
  color: #24486f;
  font-weight: 700;
  font-size: 0.9rem;
}

.dashboard-intel__title {
  color: #1a3558;
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 0.18rem;
}

.dashboard-intel__summary {
  color: #4d627f;
  margin-bottom: 0.58rem;
  font-size: 0.9rem;
}

.dashboard-intel__pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.dashboard-intel__pillar {
  border: 1px solid #d8e5f4;
  border-radius: 10px;
  background: #ffffff;
  padding: 0.48rem 0.58rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
}

.dashboard-intel__pillar span {
  color: #59718d;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}

.dashboard-intel__pillar strong {
  color: #1f4f83;
  font-weight: 800;
}

.dashboard-intel__actions {
  margin: 0.68rem 0 0;
  padding-left: 1rem;
  color: #1f3e62;
  font-size: 0.88rem;
  display: grid;
  gap: 0.24rem;
}

.dashboard-intel__stats {
  border: 1px solid #d5e3f3;
  border-radius: 12px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 0.44rem;
  padding: 0.62rem 0.68rem;
}

.dashboard-intel__stat {
  border: 1px solid #e2ecf7;
  border-radius: 9px;
  padding: 0.42rem 0.52rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.4rem;
}

.dashboard-intel__stat span {
  color: #5d7390;
  font-size: 0.77rem;
  font-weight: 700;
}

.dashboard-intel__stat strong {
  color: #1f4f83;
  font-weight: 800;
}

.dashboard-grid {
  display: grid;
  gap: 1rem;
}

.dashboard-grid--kpis {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.dashboard-grid--main {
  grid-template-columns: 1.1fr 0.9fr;
}

.card-kpi {
  border-radius: 14px;
  border: 1px solid #d2e0f1;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  padding: 0.92rem 1rem;
  box-shadow: 0 8px 18px rgba(16, 39, 72, 0.05);
}

.card-kpi__label {
  color: #5c6d84;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 700;
}

.card-kpi__value {
  margin-top: 0.4rem;
  color: #12263d;
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.1;
}

.card-kpi__sub {
  margin-top: 0.26rem;
  color: #6a7f9b;
  font-size: 0.79rem;
  font-weight: 600;
}

.card-kpi--accent {
  background: linear-gradient(160deg, #f7fcff 0%, #eef6ff 100%);
}

.card-kpi--alert {
  background: linear-gradient(160deg, #fffaf2 0%, #fff4e1 100%);
  border-color: #f0d9a6;
}

.dashboard-block__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.dashboard-muted {
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 600;
}

.sales-funnel {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.sales-funnel__row {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) 2fr auto;
  gap: 0.75rem;
  align-items: center;
}

.sales-funnel__meta {
  display: flex;
  flex-direction: column;
}

.sales-funnel__stage {
  font-weight: 700;
  color: #233247;
}

.sales-funnel__amount {
  font-size: 0.86rem;
  color: #64748b;
}

.sales-funnel__track {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: #e5edf8;
  overflow: hidden;
}

.sales-funnel__fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #6e91b8, #8fb0d3);
  min-width: 6px;
}

.sales-funnel__fill.is-primary {
  background: linear-gradient(90deg, #1f6aa8, #2c8ccc);
}

.sales-funnel__fill.is-secondary {
  background: linear-gradient(90deg, #3a83ba, #64abd8);
}

.sales-funnel__fill.is-neutral {
  background: linear-gradient(90deg, #8ca4c0, #afc1d8);
}

.sales-funnel__percent {
  font-size: 0.82rem;
  font-weight: 700;
  color: #4f5f76;
}

.status-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid #d3e0f2;
  border-radius: 999px;
  padding: 0.38rem 0.72rem;
  background: #f8fbff;
  font-size: 0.88rem;
}

.status-chip strong {
  color: #0f4c81;
}

.dashboard-workbench {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.dashboard-workbench__section {
  border: 1px solid #d8e4f4;
  border-radius: 12px;
  background: #fbfdff;
  padding: 0.78rem 0.85rem;
}

.dashboard-workbench__title {
  margin-bottom: 0.62rem;
  color: #526985;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.dashboard-alerts {
  display: flex;
  flex-direction: column;
  gap: 0.58rem;
}

.dashboard-alerts__item {
  display: flex;
  justify-content: space-between;
  border: 1px solid #d8e4f4;
  border-radius: 10px;
  padding: 0.6rem 0.75rem;
  background: #fbfdff;
}

.dashboard-alerts__item span {
  color: #475569;
}

.dashboard-alerts__item strong {
  color: #0f4c81;
}

.dashboard-quick-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.dashboard-quick-action {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  border: 1px solid #d0e0f2;
  border-radius: 10px;
  padding: 0.56rem 0.65rem;
  background: #f5f9ff;
  color: #1f4369;
  font-weight: 700;
  transition: all 0.15s ease;
}

.dashboard-quick-action:hover {
  border-color: #a7c4e6;
  background: #edf5ff;
  color: #173658;
}

.password-layout {
  border-radius: 1rem;
  box-shadow: 0 14px 36px rgba(10, 30, 60, 0.11);
  border: 1px solid rgba(15, 76, 129, 0.16);
}

.password-layout__grid {
  display: grid;
  grid-template-columns: minmax(320px, 1.1fr) minmax(240px, 0.9fr);
  gap: 1.5rem;
}

.password-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.password-form__actions {
  display: flex;
  gap: 0.6rem;
  padding-top: 0.4rem;
}

.password-rules {
  border-left: 1px solid #e0e8f4;
  padding-left: 1.2rem;
}

.password-rules h6 {
  margin: 0 0 0.4rem 0;
  font-weight: 700;
}

.password-rules p {
  color: #64748b;
  font-size: 0.86rem;
}

.password-rules__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.password-rule {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: #516174;
  font-size: 0.92rem;
  font-weight: 600;
}

.password-rule i {
  color: #8ca1bb;
}

.password-rule.is-ok {
  color: #1f7a45;
}

.password-rule.is-ok i {
  color: #1f7a45;
}

.table thead th {
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--crm-muted);
  background: #f8fbff;
}

.table td,
.table th {
  vertical-align: middle;
}

label,
.form-label {
  font-weight: 600;
  color: #334155;
  margin-bottom: 0.45rem;
}

.form-control,
.form-select,
textarea,
.input-group-text {
  border-color: #c6d4e7;
  min-height: 44px;
  border-radius: 0.5rem;
}

.form-control:focus,
.form-select:focus,
textarea:focus {
  border-color: var(--crm-brand-2);
  box-shadow: 0 0 0 0.25rem rgba(26, 111, 179, 0.15);
}

.row.g-3 {
  row-gap: 1.4rem !important;
}

.row.g-2 {
  row-gap: 1rem !important;
}

.btn {
  border-radius: 0.5rem;
}

.alert {
  border-radius: 10px;
}

.crm-global-toast-container {
  position: fixed;
  top: 84px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2000;
  width: min(620px, calc(100vw - 2rem));
}

.crm-global-toast {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 14px 32px rgba(11, 28, 50, 0.2);
}

.crm-global-bar {
  padding: 0.75rem 1.5rem;
  backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid var(--crm-border);
  position: relative;
}

.crm-logo {
  width: 40px;
  height: 40px;
}

.crm-brand-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--crm-ink);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.crm-brand-subtitle {
  font-size: 0.7rem;
  color: var(--crm-muted);
}

.crm-env-badge {
  display: inline-flex;
  align-items: center;
  height: 1.2rem;
  padding: 0 0.5rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
}

.crm-env-badge--demo {
  background: color-mix(in srgb, var(--brand-500) 16%, #ffffff);
  color: #10643a;
  border: 1px solid color-mix(in srgb, var(--brand-500) 45%, #ffffff);
}

.crm-env-badge--dev {
  background: color-mix(in srgb, var(--accent-500) 14%, #ffffff);
  color: #1f4aa8;
  border: 1px solid color-mix(in srgb, var(--accent-500) 42%, #ffffff);
}

@media (max-width: 768px) {
  .crm-brand-subtitle {
    font-size: 0.58rem;
    line-height: 1.2;
    letter-spacing: 0.01em;
  }
}

.crm-global-nav {
  flex-wrap: wrap;
  gap: 0.5rem;
}

.crm-global-link {
  font-size: 0.85rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--crm-muted);
  font-weight: 600;
  background: rgba(15, 76, 129, 0.05);
}

.crm-global-link.active {
  background: var(--crm-brand);
  color: #fff;
  box-shadow: 0 8px 16px rgba(15, 76, 129, 0.25);
}

.crm-avatar {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border: 2px solid rgba(15, 76, 129, 0.3);
}

.rv-currency-field .input-group-text {
  min-width: 46px;
  justify-content: center;
  font-weight: 600;
}

.crm-user-info {
  display: flex;
  flex-direction: column;
  margin-left: 0.7rem;
}

.crm-user-name {
  font-size: 0.9rem;
  font-weight: 600;
}

.crm-user-actions .dropdown {
  margin-left: 0;
}

.crm-user-actions {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.crm-setup-trigger {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(173, 197, 228, 0.42);
  background: rgba(236, 245, 255, 0.1);
  color: #e6f0ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(8, 25, 52, 0.25);
  transition: all 0.15s ease;
}

.crm-setup-trigger:hover,
.crm-setup-trigger:focus {
  border-color: rgba(134, 239, 172, 0.5);
  background: rgba(134, 239, 172, 0.15);
  color: #c8fad9;
}

.crm-notification-trigger {
  position: relative;
  width: 36px !important;
  height: 36px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(173, 197, 228, 0.42) !important;
  background: rgba(236, 245, 255, 0.1) !important;
  color: #e6f0ff !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
  box-shadow: 0 2px 10px rgba(8, 25, 52, 0.25) !important;
  transition: all 0.15s ease !important;
  font-size: 0.95rem;
}

.crm-notification-trigger:hover,
.crm-notification-trigger:focus-visible {
  border-color: rgba(134, 239, 172, 0.5) !important;
  background: rgba(134, 239, 172, 0.15) !important;
  color: #c8fad9 !important;
}

.crm-notification-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.crm-email-notification-menu {
  width: min(92vw, 420px);
  min-width: 320px;
  padding: 0;
  border-radius: 1rem;
  border: 1px solid #c8d8ed;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(10, 30, 60, 0.2);
}

.crm-email-notification-menu__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid #dde8f5;
  background: linear-gradient(180deg, #f6faff 0%, #edf4fd 100%);
  font-weight: 700;
  color: #24364f;
}

.crm-email-notification-list {
  max-height: 360px;
  overflow-y: auto;
  padding: 0.35rem;
}

.crm-email-notification-empty {
  padding: 0.8rem;
  color: #5f738f;
  font-size: 0.93rem;
}

.crm-email-notification-item {
  display: block;
  text-decoration: none;
  color: #1f3554;
  border: 1px solid #d6e3f3;
  border-radius: 0.8rem;
  padding: 0.65rem 0.72rem;
  margin-bottom: 0.45rem;
  background: #fff;
  transition: all 0.15s ease;
}

.crm-email-notification-item:hover,
.crm-email-notification-item:focus {
  border-color: #8cb4ee;
  background: #f6faff;
  color: #102a4a;
}

.crm-email-notification-item__subject {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.25rem;
}

.crm-email-notification-item__meta {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  color: #4f6584;
  font-size: 0.84rem;
}

.crm-notification-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.1rem 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.crm-notification-pill--danger {
  color: #9f1239;
  background: #ffe4e6;
  border: 1px solid #fecdd3;
}

.crm-notification-pill--warning {
  color: #92400e;
  background: #fef3c7;
  border: 1px solid #fde68a;
}

.crm-notification-pill--info {
  color: #1e3a8a;
  background: #dbeafe;
  border: 1px solid #bfdbfe;
}

.crm-email-notification-item__from {
  margin-top: 0.15rem;
  color: #4f6584;
  font-size: 0.84rem;
}

.product-create-modal {
  padding: 0.1rem 0 0;
}

.product-create-modal__top-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0.75rem;
}

.product-create-modal__card {
  border: 1px solid #d7e3f3;
  border-radius: 0.95rem;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 4px 14px rgba(27, 63, 109, 0.06);
  padding: 0.8rem;
  height: 100%;
}

.product-create-modal__card-title {
  margin: 0 0 0.55rem;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #496387;
}

.product-create-modal .form-label {
  font-weight: 650;
  font-size: 0.94rem;
  color: #2a3d59;
  margin-bottom: 0.3rem;
}

.product-create-modal .form-control,
.product-create-modal .input-group-text {
  border-radius: 0.7rem;
  min-height: 40px;
  padding-top: 0.42rem;
  padding-bottom: 0.42rem;
  font-size: 0.98rem;
}

.product-create-modal .input-group > .form-control,
.product-create-modal .input-group > .input-group-text {
  border-radius: 0;
}

.product-create-modal .input-group > .input-group-text:first-child {
  border-top-left-radius: 0.7rem;
  border-bottom-left-radius: 0.7rem;
}

.product-create-modal .input-group > .form-control:last-child,
.product-create-modal .input-group > .input-group-text:last-child {
  border-top-right-radius: 0.7rem;
  border-bottom-right-radius: 0.7rem;
}

.product-create-modal__textarea {
  min-height: 104px;
  resize: vertical;
}

.product-create-modal__switch {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.62rem;
  border: 1px solid #c7d7ec;
  border-radius: 0.8rem;
  background: #f7fbff;
  font-weight: 600;
  color: #27456b;
  font-size: 0.95rem;
}

.product-create-modal__switch .form-check-input {
  margin: 0;
}

@media (max-width: 991.98px) {
  .product-create-modal__top-grid {
    grid-template-columns: 1fr;
  }
}

.crm-user-menu__trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(173, 197, 228, 0.38);
  background: rgba(236, 245, 255, 0.08);
  box-shadow: 0 2px 10px rgba(8, 25, 52, 0.2);
  transition: all 0.15s ease;
}

.crm-user-menu__trigger:hover,
.crm-user-menu__trigger:focus-visible {
  border-color: rgba(134, 239, 172, 0.5);
  background: rgba(134, 239, 172, 0.14);
}

.crm-user-menu {
  width: max-content;
  min-width: 280px;
  max-width: min(92vw, 460px);
  padding: 0;
  border-radius: 1rem;
  border: 1px solid #c8d8ed;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(10, 30, 60, 0.2);
}

.crm-user-menu__header {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.95rem 1rem 0.8rem;
  border-bottom: 1px solid #dde8f5;
  margin-bottom: 0;
  background: linear-gradient(180deg, #f6faff 0%, #edf4fd 100%);
}

.crm-user-menu__header > div {
  min-width: 0;
  flex: 1;
}

.crm-user-menu__header .crm-avatar {
  width: 40px;
  height: 40px;
}

.crm-user-name {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.crm-user-email {
  font-size: 0.95rem;
  color: #4a607e;
  line-height: 1.25;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.crm-user-menu__links .dropdown-item {
  border-radius: 0.65rem;
  font-weight: 600;
  margin: 0.25rem 0.45rem;
  padding: 0.55rem 0.75rem;
  color: #1f3656;
}

.crm-user-menu__links .dropdown-item:hover {
  background: #edf4fd;
  color: #183050;
}

.crm-user-menu .crm-user-name {
  color: #123259;
}

.crm-user-menu .crm-user-email {
  color: #5a7291;
}

.crm-user-menu__links .dropdown-item.text-danger {
  color: #c53131 !important;
}

.crm-user-menu__links .dropdown-item.text-danger:hover {
  background: #fff0f0;
  color: #a82626 !important;
}

.crm-user-menu__links form {
  margin: 0;
}

.crm-menu-list {
  list-style: none;
  display: flex;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
}

.crm-menu-item {
  position: relative;
}

.crm-menu-link,
.crm-menu-toggle {
  color: #1f2d3d;
  font-weight: 600;
  text-decoration: none;
  padding: 0.35rem 0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.crm-menu-link:hover,
.crm-menu-toggle:hover {
  color: #0e4b88;
}

.crm-menu-item.is-active > .crm-menu-link,
.crm-menu-item.is-active > .crm-menu-toggle,
.crm-menu-dropdown-link.is-active {
  color: #0e4b88;
}

.crm-menu-item.is-active > .crm-menu-link::after,
.crm-menu-item.is-active > .crm-menu-toggle::after {
  content: "";
  display: block;
  height: 3px;
  width: 100%;
  background: #0e4b88;
  border-radius: 10px;
  margin-top: 4px;
}

.crm-menu-has-dropdown .crm-menu-dropdown {
  position: absolute;
  top: 120%;
  left: 0;
  min-width: 200px;
  padding: 0.5rem 0;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 12px 24px rgba(12, 40, 80, 0.15);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 120ms ease, transform 120ms ease;
  z-index: 20;
}

.crm-menu-has-dropdown:hover .crm-menu-dropdown,
.crm-menu-has-dropdown.is-active .crm-menu-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.crm-menu-dropdown-link {
  display: block;
  padding: 0.55rem 1rem;
  color: #1f2d3d;
  text-decoration: none;
  font-weight: 500;
}

.crm-menu-dropdown-link:hover {
  background: rgba(14, 75, 136, 0.08);
  color: #0e4b88;
}

.table-responsive,
.card {
  overflow: hidden;
}

.crm-table-card {
  overflow: visible;
}

.crm-row-actions .dropdown-menu {
  min-width: 170px;
  z-index: 1060;
}

.crm-action-btn {
  width: 34px;
  height: 30px;
  border-radius: 999px;
  padding: 0;
  border-color: #b8cae2;
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  color: #355579;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 2px rgba(15, 47, 84, 0.12);
  transition: all 0.15s ease;
}

.crm-action-btn .bi-caret-down-fill {
  font-size: 0.62rem;
  opacity: 0.95;
}

.crm-action-btn:hover,
.crm-action-btn:focus {
  border-color: #8fb1da;
  background: linear-gradient(180deg, #ffffff 0%, #eef5ff 100%);
  color: #1f4675;
  box-shadow: 0 4px 12px rgba(14, 75, 136, 0.18);
}

.crm-action-menu {
  border-radius: 0.6rem;
  border: 1px solid #c7d6eb;
  box-shadow: 0 8px 24px rgba(10, 30, 60, 0.16);
  padding: 0.3rem;
}

.crm-action-menu .dropdown-item {
  border-radius: 0.45rem;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.5rem 0.6rem;
}

.crm-action-menu .dropdown-item:hover {
  background: #dce9fb;
  color: #14365f;
}

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

.crm-table-toolbar__meta {
  color: #576a80;
  font-size: 0.9rem;
}

.crm-table-toolbar__actions {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-left: auto;
}

.crm-table-toolbar__search {
  margin: 0;
}

.crm-compact-search {
  width: 240px;
  height: 34px;
  border: 1px solid #b8cae2;
  border-radius: 0.6rem;
  background: #fff;
  display: inline-flex;
  align-items: center;
  padding: 0 0.5rem;
  gap: 0.4rem;
}

.crm-compact-search .bi-search {
  color: #5f7390;
}

.crm-compact-search__input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 0;
  line-height: 1.2;
  font-size: 0.92rem;
}

.crm-compact-search:focus-within {
  border-color: #8fb1da;
  box-shadow: 0 0 0 2px rgba(47, 95, 175, 0.12);
}

.crm-compact-search__clear {
  color: #2f5faf;
  display: inline-flex;
  align-items: center;
}

.crm-compact-search__clear:hover {
  color: #1f4675;
}

.crm-toolbar-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid #b8cae2;
  background: #fff;
  color: #2f5581;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.crm-toolbar-icon-btn:hover,
.crm-toolbar-icon-btn:focus {
  border-color: #8fb1da;
  background: #eef5ff;
  color: #1f4675;
}

.leads-filter-panel {
  width: min(440px, 92vw) !important;
}

.leads-filter-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.leads-filter-form__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  padding-top: 0.4rem;
}

.field-validation-error,
.validation-summary-errors {
  color: #b91c1c;
  font-size: 0.9rem;
  font-weight: 600;
}

.input-validation-error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 0.25rem rgba(239, 68, 68, 0.12) !important;
}

@media (max-width: 992px) {
  .crm-user-actions {
    right: 0.6rem;
  }

  .dashboard-exec {
    grid-template-columns: 1fr;
  }

  .dashboard-exec__actions {
    justify-content: flex-start;
  }

  .dashboard-grid--main {
    grid-template-columns: 1fr;
  }

  .dashboard-intel {
    grid-template-columns: 1fr;
  }

  .dashboard-intel__pillars {
    grid-template-columns: 1fr;
  }

  .sales-funnel__row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .sales-funnel__percent {
    justify-self: start;
  }

  .dashboard-quick-actions {
    grid-template-columns: 1fr;
  }

  .password-form__actions {
    flex-direction: column;
  }

  .password-layout__grid {
    grid-template-columns: 1fr;
  }

  .password-rules {
    border-left: 0;
    border-top: 1px solid #e0e8f4;
    padding-left: 0;
    padding-top: 1rem;
  }

  .crm-topnav {
    overflow-x: auto;
    padding-bottom: 4px;
  }

  main.container-fluid {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}
.crm-bottom-nav {
  width: 100%;
  padding: 0.8rem 2rem;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 4px 12px rgba(10, 30, 60, 0.08);
  border-top: 1px solid rgba(15, 76, 129, 0.12);
  position: sticky;
  bottom: 0;
  left: 0;
  z-index: 1020;
}

.crm-bottom-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1rem;
  justify-content: flex-start;
}

.crm-bottom-nav__link {
  color: #1f2d3d;
  font-weight: 600;
  text-decoration: none;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  transition: background 120ms ease, border 120ms ease;
}

.crm-bottom-nav__link:hover {
  background: rgba(15, 76, 129, 0.08);
  border-color: rgba(15, 76, 129, 0.25);
}

.crm-bottom-nav__link.is-active {
  background: #0f4c81;
  border-color: #0f4c81;
  color: #fff;
}

.rv-header {
  border: 1px solid #c8d7ec;
  background: linear-gradient(180deg, #ffffff, #f6faff);
  overflow: visible;
}

.rv-header .card-body,
.rv-header__top,
.rv-action-bar,
.rv-action-sf__dropdown {
  overflow: visible;
}

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

.rv-header__top > :first-child {
  flex: 1 1 auto;
  min-width: 0;
}

.rv-header-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 220px));
  gap: 0.55rem 0.9rem;
  margin-top: 0.35rem;
  width: fit-content;
  max-width: 100%;
}

.rv-header-meta__item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.rv-header-meta__label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #5d6f85;
  font-weight: 700;
}

.rv-header-meta__value {
  font-size: 0.95rem;
  color: #1c2f45;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.rv-header-meta__link {
  color: #1d7fe6;
}

.rv-action-bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: auto;
  flex: 0 0 auto;
  min-width: fit-content;
}

.rv-action-sf__cluster {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid #7f92ad;
  border-radius: 999px;
  background: #fff;
  overflow: visible;
  position: relative;
  box-shadow: 0 1px 0 rgba(12, 38, 68, 0.05);
}

.rv-action-sf__group {
  display: inline-flex;
  align-items: stretch;
  border-radius: 999px 0 0 999px;
  overflow: hidden;
}

.rv-action-sf__group--with-overflow .rv-action-sf__btn:last-child {
  border-right: 0;
}

.rv-action-sf__group--full {
  border-radius: 999px;
}

.rv-action-sf__btn {
  border: 0;
  border-right: 1px solid #c9d2df;
  background: #fff;
  color: #0f4fb8;
  font-weight: 600;
  font-size: 0.96rem;
  line-height: 1;
  min-height: 2.18rem;
  padding: 0.56rem 1.1rem;
  white-space: nowrap;
  transition: background-color 120ms ease, color 120ms ease, box-shadow 120ms ease;
}

.rv-action-sf__group .rv-action-sf__btn:last-child {
  border-right: 0;
}

.rv-action-sf__btn:hover,
.rv-action-sf__btn:focus-visible {
  background: #eef4ff;
  color: #0a3f90;
}

.rv-action-sf__btn:disabled {
  color: #95a3b8;
  background: #fafbfd;
}

.rv-action-sf__dropdown {
  display: inline-flex;
  align-items: stretch;
  border-radius: 0 999px 999px 0;
  overflow: visible;
  position: relative;
}

.rv-action-sf__btn--menu {
  width: 44px;
  min-width: 44px;
  padding: 0;
  border: 0 !important;
  border-left: 1px solid #c9d2df !important;
  border-right: 0 !important;
  justify-content: center;
  align-items: center;
  display: inline-flex;
  border-radius: 0 999px 999px 0;
}

.rv-action-sf__btn--menu::after {
  display: none;
}

.rv-action-sf__btn--menu::before {
  content: "▾";
  color: #1d55b5;
  font-size: 0.88rem;
  line-height: 1;
}

.rv-action-sf__chevron {
  display: none;
}

.rv-action-sf__menu {
  position: absolute;
  top: calc(100% + 0.3rem);
  right: 0;
  min-width: 210px;
  background: #fff;
  list-style: none;
  border: 1px solid #cbd5e5;
  border-radius: 0.8rem;
  padding: 0.28rem 0;
  margin: 0;
  box-shadow: 0 12px 24px rgba(16, 40, 75, 0.18);
  z-index: 1065;
}

.rv-header {
  position: relative;
  z-index: 5;
}

.rv-action-sf__menu .dropdown-item {
  font-weight: 500;
  color: #102741;
  padding: 0.48rem 0.88rem;
  font-size: 0.97rem;
}

.rv-action-sf__menu .dropdown-item:hover {
  background: #e9f1ff;
  color: #0a3f90;
}

.rv-action-sf__menu .dropdown-item:active {
  background: #d9e8ff;
  color: #0a3f90;
}

.rv-sections-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (max-width: 1450px) {
  .rv-record-layout__main .rv-sections-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 991.98px) {
  .rv-sections-grid {
    grid-template-columns: 1fr;
  }
}

.rv-section-card {
  border: 1px solid #d4e0f1;
}

.rv-sections-grid .rv-section-card--full {
  grid-column: 1 / -1 !important;
  width: 100%;
}

#recordAuditSectionContainer {
  margin-bottom: 1rem !important;
}

#recordNotesSectionContainer {
  margin-bottom: 1rem;
}

#recordTasksSectionContainer {
  margin-top: 1.25rem !important;
}

.rv-section-card__header {
  font-weight: 700;
  color: #17324d;
  margin-bottom: 0.8rem;
}

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

.rv-field {
  border-top: 1px solid #edf2fa;
  padding-top: 0.55rem;
}

.rv-field--full {
  grid-column: 1 / -1;
}

.rv-field__label {
  font-size: 0.78rem;
  color: #5d6f85;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.rv-field__value {
  margin-top: 0.2rem;
  color: #1c2f45;
  font-weight: 500;
  word-break: break-word;
}

.rv-related-list__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.rv-related-list__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.rv-related-list__toolbar {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.75rem;
}

.rv-related-list__tools {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.rv-related-list__tools .crm-compact-search {
  min-width: 240px;
}

.rv-table thead th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #53677f;
}

.rv-modal {
  border: 1px solid #c9d8ec;
  border-radius: 14px;
}

.rv-lookup-results {
  position: absolute;
  z-index: 40;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  border: 1px solid #cfdced;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(16, 37, 67, 0.14);
  overflow: hidden;
  max-height: 240px;
  overflow-y: auto;
}

.rv-lookup-item {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #edf3fc;
  background: #fff;
  text-align: left;
  padding: 0.6rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.rv-lookup-item:hover {
  background: #f4f8ff;
}

.rv-lookup-item small {
  color: #5c7089;
}

.rv-lookup-field {
  position: relative;
  z-index: 50;
}

.rv-lookup-field .rv-lookup-results {
  width: 100%;
  margin-top: 0.5rem;
}

.rv-lookup-field .form-control {
  padding-right: 2.5rem;
}

.rv-required-asterisk {
  color: #d1242f;
  margin-right: 0.2rem;
  font-weight: 700;
}

.rv-field-error {
  color: #d1242f;
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

.rv-input-invalid {
  border-color: #d1242f;
  box-shadow: 0 0 0 0.2rem rgba(209, 36, 47, 0.15);
  background-color: #fde9ed;
  padding-left: 2.2rem;
  background-repeat: no-repeat;
  background-position: 0.7rem center;
  background-size: 1rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='8' fill='%23fff5f7' stroke='%23d1242f' stroke-width='2'/%3E%3Cpath d='M6 10h8' stroke='%23d1242f' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}

.rv-lookup-field::after {
  content: "";
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  width: 0.65rem;
  height: 0.65rem;
  border-right: 2px solid #94a3b8;
  border-bottom: 2px solid #94a3b8;
  transform: translateY(-50%) rotate(45deg);
  pointer-events: none;
}

.rv-edit-section .row {
  margin-top: 0.35rem;
}

.rv-edit-section .row + .row {
  margin-top: 0.85rem;
}

@media (max-width: 768px) {
  .rv-header__top {
    flex-direction: column;
  }

  .rv-action-bar {
    justify-content: stretch;
  }

  .rv-action-sf__cluster {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
  }

  .rv-action-sf__group,
  .rv-action-sf__group--full,
  .rv-action-sf__group--with-overflow {
    width: 100%;
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    overflow: visible;
  }

  .rv-action-sf__btn {
    width: 100%;
    border: 1px solid #b7c8e1;
    border-radius: 10px;
    text-align: center;
    border-right: 1px solid #b7c8e1;
    padding: 0.62rem 0.8rem;
    font-size: 0.94rem;
  }

  .rv-action-sf__dropdown {
    width: 100%;
    grid-column: 1 / -1;
    border: 0;
    border-radius: 0;
    overflow: visible;
  }

  .rv-action-sf__btn--menu {
    width: 100%;
    min-width: 0;
    border-radius: 10px;
    border-left: 1px solid #b7c8e1 !important;
    border-right: 1px solid #b7c8e1;
    justify-content: center;
  }

  .rv-field-grid {
    grid-template-columns: 1fr;
  }

  .rv-header-meta {
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }
}

.rv-edit-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.rv-edit-wrapper {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 1.5rem;
}

.rv-edit-card {
  border: 1px solid #dfe7f5;
  border-radius: 10px;
}

.rv-edit-tasks-panel {
  align-self: start;
  border: 1px solid #dfe7f5;
  border-radius: 10px;
}

.rv-edit-tasks-panel .card-body {
  padding: 1rem;
}

.rv-edit-related-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.rv-edit-related-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.rv-edit-section {
  border: 1px solid #dfe7f5;
  border-radius: 10px;
  overflow: visible;
}

.rv-edit-section__title {
  font-weight: 700;
  color: #0f4c81;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

.rv-edit-related-list {
  display: grid;
  gap: 0.75rem;
}

.rv-edit-related-item {
  border: 1px solid #e2ebf7;
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  background: #ffffff;
  box-shadow: 0 6px 14px rgba(16, 37, 67, 0.08);
  text-align: left;
  width: 100%;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}

.rv-edit-related-item:hover {
  border-color: #bcd1ee;
  box-shadow: 0 10px 18px rgba(16, 37, 67, 0.12);
  transform: translateY(-1px);
}

.rv-edit-related-item:focus-visible {
  outline: 2px solid rgba(29, 127, 230, 0.45);
  outline-offset: 2px;
}

.rv-edit-related-line {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.rv-edit-related-status {
  width: 8px;
  min-height: 52px;
  border-radius: 999px;
  background: linear-gradient(180deg, #1d7fe6, #0f4c81);
}

.rv-edit-related-body {
  flex: 1;
  min-width: 0;
}

.rv-edit-related-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.rv-edit-related-title {
  font-weight: 600;
  color: #1c2f45;
  margin-bottom: 0;
}

.rv-edit-related-date {
  color: #4b5f78;
  font-size: 0.8rem;
  white-space: nowrap;
}

.rv-edit-related-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  color: #5d6f85;
  font-size: 0.85rem;
}

.rv-edit-related-chip {
  background: #edf3ff;
  color: #123a6b;
  border: 1px solid #cfdced;
  border-radius: 999px;
  padding: 0.1rem 0.55rem;
  font-weight: 600;
}

.rv-edit-related-empty {
  padding: 0.35rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.rv-edit-related-link {
  width: 100%;
  text-align: center;
  margin-top: 0.6rem;
}

.rv-calendar-modal {
  border-radius: 16px;
}

.rv-calendar-modal .modal-body {
  display: flex;
  flex-direction: column;
  min-height: 70vh;
}
.rv-calendar-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.rv-calendar-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.rv-calendar-title {
  font-weight: 700;
  color: #1c2f45;
  margin-left: 0.5rem;
  text-transform: capitalize;
}

.rv-calendar-view {
  display: flex;
  gap: 0.5rem;
}

.rv-calendar-body {
  flex: 1;
  min-height: 60vh;
}

.rv-calendar-grid {
  display: grid;
  gap: 0.6rem;
}

.rv-calendar-grid--month {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.rv-calendar-grid--week {
  grid-template-columns: repeat(7, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  height: 100%;
  min-height: 60vh;
}

.rv-calendar-dayhead {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #5d6f85;
  font-weight: 700;
}

.rv-calendar-cell {
  border: 1px solid #e1ebf6;
  border-radius: 12px;
  padding: 0.5rem;
  min-height: 120px;
  background: #ffffff;
  cursor: pointer;
}

.rv-calendar-cell.is-muted {
  background: #f6f8fc;
  color: #9aa7b8;
}

.rv-calendar-cell--week {
  height: 100%;
  min-height: 100%;
}

.rv-calendar-cell--day {
  min-height: 360px;
}

.rv-calendar-date {
  font-weight: 700;
  color: #1c2f45;
  margin-bottom: 0.25rem;
}

.rv-calendar-weekday {
  font-weight: 700;
  color: #1c2f45;
  margin-bottom: 0.4rem;
}

.rv-calendar-cell--week {
  background: #f9fbff;
  border: 1px solid #dbe7f6;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.rv-calendar-weekday {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  align-items: flex-start;
  padding-bottom: 0.4rem;
  border-bottom: 1px dashed #d6e1f2;
}

.rv-calendar-weekday__label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b7f97;
}

.rv-calendar-weekday__date {
  font-size: 1.1rem;
  font-weight: 700;
  color: #123a6b;
  background: #e8f1ff;
  border-radius: 999px;
  padding: 0.1rem 0.55rem;
}

.rv-calendar-cell--week .rv-calendar-items {
  margin-top: 0.45rem;
}

.rv-calendar-items {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.rv-calendar-item {
  border: 1px solid #cfe0f5;
  border-radius: 10px;
  padding: 0.35rem 0.5rem;
  background: #f3f8ff;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.rv-calendar-item__title {
  font-weight: 600;
  color: #163d72;
  font-size: 0.9rem;
}

.rv-calendar-item__meta {
  font-size: 0.75rem;
  color: #5b6f86;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.rv-task-link {
  font-weight: 600;
  text-decoration: none;
}

.rv-task-link:hover {
  text-decoration: underline;
}

.rv-icon-btn {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.rv-calendar-empty {
  color: #5d6f85;
  font-size: 0.9rem;
}

.rv-calendar-day-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.35rem;
}

.rv-calendar-time-row {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 0.75rem;
  align-items: flex-start;
  border: 1px solid #e1ebf6;
  border-radius: 10px;
  padding: 0.45rem 0.5rem;
  background: #ffffff;
  cursor: pointer;
}

.rv-calendar-time-label {
  font-weight: 600;
  color: #4b5f78;
  font-size: 0.85rem;
}

.rv-calendar-time-slot {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

@media (max-width: 992px) {
  .rv-edit-wrapper {
    grid-template-columns: 1fr;
  }
  .rv-edit-actions-floating {
    width: calc(100% - 2rem);
  }
}

.rv-edit-actions-floating {
  position: fixed;
  bottom: 0.75rem;
  margin-top: 0;
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(15, 76, 129, 0.18);
  border-radius: 10px;
  box-shadow: 0 12px 22px rgba(16, 37, 67, 0.16);
  z-index: 1060;
}

.rv-edit-actions-floating.is-hidden {
  display: none;
}

.rv-edit-actions-floating {
  --rv-edit-bar-left: 0px;
  --rv-edit-bar-width: 100%;
  left: var(--rv-edit-bar-left);
  width: var(--rv-edit-bar-width);
}

.modal-footer {
  justify-content: center;
  gap: 0.75rem;
}

.rv-edit-form {
  padding-bottom: 1rem;
}

.rv-edit-section .card-body {
  overflow: visible;
}

.crm-invite-loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 30, 52, 0.45);
  backdrop-filter: blur(2px);
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.crm-invite-loading-card {
  width: min(420px, 92vw);
  background: #fff;
  border: 1px solid #d7e2f0;
  border-radius: 14px;
  box-shadow: 0 22px 60px rgba(15, 30, 52, 0.24);
  padding: 1.4rem 1.4rem 1.2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
}

.crm-invite-loading-spinner {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 4px solid #dbe7f7;
  border-top-color: #0f62fe;
  animation: crm-invite-spin 0.8s linear infinite;
  margin-bottom: 0.15rem;
}

@keyframes crm-invite-spin {
  to {
    transform: rotate(360deg);
  }
}

.crm-invite-submit-btn {
  min-width: 220px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
}

.crm-user-create-card {
  border: 1px solid #d1deef;
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(10, 30, 60, 0.08);
}

.crm-user-create-region {
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  border: 1px solid #d7e2f0;
  border-radius: 12px;
  padding: 1rem;
}

.crm-user-create-region__header {
  margin-bottom: 0.85rem;
}

.crm-user-create-region__title {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 700;
  color: #1b2c44;
}

.crm-user-create-region__subtitle {
  margin: 0.2rem 0 0;
  font-size: 0.85rem;
  color: #607086;
}

.crm-modal-form-section {
  padding: 0.9rem 0 1rem;
  border-bottom: 1px solid #e7eef8;
}

.crm-convert-modal .crm-convert-section-card {
  border: 1px solid #d8e4f4;
  border-bottom: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  padding: 0.95rem 1rem 1rem;
  margin-bottom: 0.9rem;
}

.crm-convert-modal .crm-convert-section-card:last-child {
  margin-bottom: 0;
}

.crm-convert-modal .crm-convert-section-card .crm-modal-form-section__title {
  margin-bottom: 0.9rem;
}

.crm-modal-form-section__title {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #21354d;
}

.crm-lead-create-modal-dialog {
  max-width: min(1600px, 96vw);
}

.js-lead-create-modal-form {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 2.5rem);
}

.js-lead-create-modal-form .modal-body {
  overflow-y: auto;
  overscroll-behavior: contain;
}

.js-lead-create-modal-form .modal-footer {
  position: sticky;
  bottom: 0;
  background: #fff;
  border-top: 1px solid #d7e2f0;
  z-index: 2;
  padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
}

.crm-internal-notes-field {
  width: 100%;
}

.crm-auth-loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 30, 52, 0.45);
  backdrop-filter: blur(2px);
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.crm-auth-loading-overlay[hidden] {
  display: none !important;
}

.js-login-spinner[hidden] {
  display: none !important;
}

.crm-auth-loading-card {
  width: min(420px, 92vw);
  background: #fff;
  border: 1px solid #d7e2f0;
  border-radius: 14px;
  box-shadow: 0 22px 60px rgba(15, 30, 52, 0.24);
  padding: 1.4rem 1.4rem 1.2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
}

.password-setup-shell {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.password-setup-brand {
  text-align: center;
  color: #173660;
}

.password-setup-brand h1 {
  margin: 0.2rem 0 0.1rem;
  font-size: 2rem;
  font-weight: 700;
}

.password-setup-brand p {
  margin: 0;
  color: #58708e;
}

.password-setup-brand__logo {
  width: 62px;
  height: 62px;
  margin: 0 auto;
  border-radius: 999px;
  background: #2e85da;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.85rem;
  font-weight: 700;
}

.sf-user-page {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.sf-user-header {
  background: #f6f9ff;
  border: 1px solid #d4e1f4;
  border-radius: 8px;
  padding: 0.95rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.sf-user-header__icon {
  width: 46px;
  height: 46px;
  border-radius: 6px;
  background: #5b85e0;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

.sf-user-header__setup {
  font-size: 0.8rem;
  font-weight: 700;
  color: #3a67c0;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sf-user-header__title {
  margin: 0;
  font-size: 2rem;
  line-height: 1;
}

.crm-user-record-header {
  padding: 0.65rem 0.9rem;
}

.slds-page-header.crm-user-record-header {
  border: 1px solid #d7e2f0 !important;
  border-radius: 12px;
  background: linear-gradient(135deg, #ffffff 0%, #f6fbff 100%) !important;
  box-shadow: 0 6px 18px rgba(15, 47, 98, 0.06);
}

.crm-user-detail-page {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.crm-user-hero {
  border: 1px solid #d7e2f0;
  border-radius: 12px;
  background: linear-gradient(135deg, #ffffff 0%, #f6fbff 100%);
  padding: 0.9rem 1rem;
}

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

.crm-user-record-left {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.9rem;
}

.crm-user-record-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(140deg, #0f2f62 0%, #1b4f8c 100%);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 8px 18px rgba(15, 47, 98, 0.22);
}

.crm-user-record-text {
  display: flex;
  flex-direction: column;
  gap: 0.14rem;
  line-height: 1.2;
}

.crm-user-record-meta {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4e6788;
}

.crm-user-record-title {
  margin: 0;
  font-size: 1.75rem;
  line-height: 1.05;
  font-weight: 700;
  color: #13253f;
}

.crm-user-record-subtitle {
  margin: 0;
  color: #536d8f;
  font-size: 0.94rem;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.crm-user-hero__actions {
  display: flex;
  align-items: center;
}

.crm-user-action-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem;
}

.crm-user-action-group form {
  margin: 0;
}

.crm-user-action-group .btn {
  min-height: 38px;
  border-radius: 10px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.9rem;
}

.crm-user-action-group .btn-primary {
  background: linear-gradient(135deg, #1f8f4f 0%, #2ea857 100%);
  border-color: #1f8f4f;
}

.crm-user-action-group .btn-primary:hover,
.crm-user-action-group .btn-primary:focus-visible {
  background: linear-gradient(135deg, #1a7e45 0%, #28964f 100%);
  border-color: #1a7e45;
}

.crm-user-record-header .slds-button-group {
  display: inline-flex;
  border: 1px solid #b8cbe4;
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}

.crm-user-record-header .slds-button-group .slds-button {
  border: 0 !important;
  border-right: 1px solid #d6e2f2 !important;
  background: #fff !important;
  color: #1e3f68 !important;
  min-height: 38px;
  padding: 0.45rem 1rem;
  font-weight: 600;
}

.crm-user-record-header .slds-button-group form:last-child .slds-button,
.crm-user-record-header .slds-button-group .slds-button:last-child {
  border-right: 0 !important;
}

.crm-user-record-header .slds-button-group .slds-button_brand {
  background: linear-gradient(135deg, #1f8f4f 0%, #2ea857 100%) !important;
  color: #fff !important;
}

.crm-user-record-header .slds-button-group .slds-button:hover,
.crm-user-record-header .slds-button-group .slds-button:focus-visible {
  background: #f3f8ff !important;
}

.crm-user-record-header .slds-button-group .slds-button_brand:hover,
.crm-user-record-header .slds-button-group .slds-button_brand:focus-visible {
  background: linear-gradient(135deg, #1a7e45 0%, #28964f 100%) !important;
}

.sf-user-panel {
  background: #fff;
  border: 1px solid #d7e2f0;
  border-radius: 8px;
  padding: 0.95rem 1.05rem 1.1rem;
}

.sf-user-panel__topline {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.8rem;
}

.sf-user-panel__identity h3 {
  margin: 0;
  font-size: 2rem;
}

.sf-user-panel__label {
  display: block;
  font-size: 0.78rem;
  color: #667892;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sf-user-panel__help {
  font-size: 0.9rem;
  color: #366fc9;
  text-decoration: none;
}

.sf-user-links {
  margin-top: 0.7rem;
  border-top: 1px solid #e2eaf5;
  border-bottom: 1px solid #e2eaf5;
  padding: 0.5rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.55rem;
}

.sf-user-links a {
  color: #335f9f;
  font-size: 0.8rem;
  text-decoration: underline;
}

.sf-user-actions {
  margin-top: 0.7rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.sf-user-actions form {
  margin: 0;
}

.sf-user-detail-title {
  margin: 1rem 0 0.5rem;
  font-size: 1.45rem;
}

.sf-user-grid {
  border: 1px solid #d8e3f2;
  border-radius: 6px;
  overflow: hidden;
}

.sf-user-grid__row {
  display: grid;
  grid-template-columns: 180px minmax(220px, 1fr) 180px minmax(220px, 1fr);
  gap: 0;
}

.sf-user-grid__row + .sf-user-grid__row {
  border-top: 1px solid #e3ecf9;
}

.sf-user-grid__row > span {
  padding: 0.52rem 0.6rem;
  border-right: 1px solid #edf3fc;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
}

.sf-user-grid__row > span:last-child {
  border-right: 0;
}

.sf-user-grid__label {
  background: #f7fbff;
  font-weight: 700;
  color: #485b73;
}

.sf-user-status {
  font-weight: 700;
}

.sf-user-status.is-active {
  color: #137a2f;
}

.sf-user-status.is-inactive {
  color: #a43428;
}

.crm-users-slds-key {
  width: 18%;
  background: #f7fbff;
  color: #40526a;
  font-weight: 700;
}

.crm-login-history-card {
  border: 1px solid #d7e2f0;
  border-radius: 10px;
  overflow: hidden;
}

.crm-login-history-empty {
  margin: 0;
  padding: 1rem;
  color: #5d6f85;
  background: #f9fcff;
  border-top: 1px solid #e6eef9;
}

.crm-license-panel {
  border: 1px solid #d8e4f4;
  border-radius: 10px;
  background: linear-gradient(180deg, #fff, #f8fbff);
  padding: 0.8rem 0.9rem;
}

.crm-license-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.crm-license-panel__meta {
  margin-top: 0.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  color: #556b88;
}

.crm-user-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.crm-user-detail-item {
  border: 1px solid #d9e4f3;
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  padding: 0.7rem 0.8rem;
  min-height: 74px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.crm-user-detail-item__label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #5f7390;
  margin-bottom: 0.2rem;
}

.crm-user-detail-item__value {
  font-size: 1rem;
  font-weight: 600;
  color: #1e2f47;
  overflow-wrap: anywhere;
}

.crm-user-status-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  font-size: 0.82rem;
  font-weight: 700;
}

@media (max-width: 980px) {
  .crm-user-detail-grid {
    grid-template-columns: 1fr;
  }

  .crm-user-hero__row {
    flex-direction: column;
  }

  .crm-user-hero__actions,
  .crm-user-action-group {
    width: 100%;
    justify-content: flex-start;
  }

  .crm-user-action-group .btn {
    flex: 1 1 170px;
  }
}

.setup-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 1rem;
}

.setup-sidebar {
  border: 1px solid #d7e2f0;
  border-radius: 12px;
  padding: 0.9rem;
  background: #fff;
  box-shadow: 0 10px 24px rgba(10, 30, 60, 0.06);
}

.setup-sidebar__title {
  margin: 0 0 0.75rem 0;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #5f7390;
  font-weight: 700;
}

.setup-sidebar__subtitle {
  margin: 0 0 0.8rem 0;
  color: #6b7f9a;
  font-size: 0.86rem;
}

.setup-menu {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.setup-menu__link {
  border: 1px solid #d4e1f4;
  border-radius: 10px;
  background: #f8fbff;
  color: #1e3550;
  text-decoration: none;
  padding: 0.55rem 0.65rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.setup-menu__link:hover {
  background: #edf4ff;
  border-color: #bfd4f0;
}

.setup-menu__link.is-active {
  background: #e7f0ff;
  border-color: #9fc0e6;
  color: #0f4c81;
}

.setup-menu__section {
  border: 1px solid #d4e1f4;
  border-radius: 10px;
  background: #f8fbff;
  padding: 0.35rem;
}

.setup-menu__section.is-active {
  border-color: #9fc0e6;
  background: #eef5ff;
}

.setup-menu__section-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.4rem 0.45rem;
  font-weight: 700;
  color: #1e3550;
  border-bottom: 1px solid #d9e6f8;
  margin-bottom: 0.35rem;
}

.setup-menu__accordion-trigger {
  justify-content: space-between;
  border: 0;
  background: transparent;
}

.setup-menu__accordion-title {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.setup-menu__accordion-icon {
  font-size: 0.8rem;
  color: #6a82a3;
  transition: transform 0.2s ease;
}

.setup-menu__accordion-trigger:not(.collapsed) .setup-menu__accordion-icon {
  transform: rotate(180deg);
}

.setup-menu__section.is-active .setup-menu__section-trigger {
  color: #0f4c81;
}

.setup-menu__submenu {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.setup-menu__link--sub {
  margin-left: 0.2rem;
}

.setup-content .card {
  border: 1px solid #d7e2f0;
}

.setup-content__card {
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(10, 30, 60, 0.08);
}

.setup-content__head {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.setup-content__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #e8f1ff;
  color: #0f4c81;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.setup-shortcuts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

@media (max-width: 1280px) {
  .setup-shortcuts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .setup-shortcuts {
    grid-template-columns: 1fr;
  }
}

.setup-shortcut {
  border: 1px solid #d4e1f4;
  border-radius: 10px;
  background: linear-gradient(180deg, #fff, #f7fbff);
  padding: 0.8rem;
  text-decoration: none;
  color: #1f2d3d;
}

.setup-shortcut__icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #e8f1ff;
  color: #0f4c81;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.setup-shortcut:hover {
  border-color: #9fc0e6;
  box-shadow: 0 8px 18px rgba(15, 76, 129, 0.12);
}

.setup-shortcut__title {
  font-weight: 700;
  color: #153d68;
}

.setup-shortcut__desc {
  margin-top: 0.25rem;
  font-size: 0.86rem;
  color: #5f7390;
}

.storage-usage-loading {
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.storage-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
}

.storage-summary-card {
  border: 1px solid #d7e2f0;
  border-radius: 12px;
  background: linear-gradient(180deg, #fff, #f8fbff);
  padding: 0.9rem;
}

.storage-summary-card__label {
  display: block;
  color: #607086;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.storage-summary-card__value {
  display: block;
  margin-top: 0.35rem;
  font-size: 1.4rem;
  color: #153d68;
}

.storage-progress {
  height: 8px;
  background: #e5eefb;
}

.storage-table-card {
  border: 1px solid #d7e2f0;
  border-radius: 12px;
  overflow: hidden;
}

@media (max-width: 992px) {
  .sf-user-grid__row {
    grid-template-columns: 140px 1fr;
  }

  .sf-user-grid__row > span:nth-child(3) {
    border-top: 1px solid #edf3fc;
  }

  .setup-layout {
    grid-template-columns: 1fr;
  }
}

/* Nexoriss hybrid enterprise theme: dark chrome + light workspace */
a {
  color: var(--accent-500);
}

a:hover {
  color: color-mix(in srgb, var(--accent-500) 84%, black);
}

.crm-global-bar {
  background: linear-gradient(180deg, rgba(4, 13, 29, 0.96), rgba(7, 22, 46, 0.96));
  border-bottom: 1px solid #163159;
  box-shadow: 0 6px 18px rgba(4, 13, 29, 0.25);
}

.crm-bottom-nav {
  background: rgba(7, 22, 46, 0.95);
  border-top: 1px solid #17345d;
}

.crm-brand-title,
.crm-user-name,
.crm-user-email,
.crm-menu-link,
.crm-menu-toggle {
  color: #e6f0ff;
}

.crm-brand-subtitle {
  color: #a7bbd6;
}

.crm-bottom-nav__link {
  color: #dbe8ff;
  border-color: transparent;
}

.crm-bottom-nav__link:hover {
  background: rgba(134, 239, 172, 0.12);
  border-color: rgba(34, 197, 94, 0.28);
}

.crm-bottom-nav__link.is-active {
  background: rgba(34, 197, 94, 0.18);
  border-color: rgba(34, 197, 94, 0.45);
  color: #baf7d0;
}

.card,
.card-kpi,
.table-responsive,
.rv-modal,
.crm-user-menu,
.crm-action-menu,
.crm-set-password-card,
.setup-content .card,
.setup-sidebar,
.storage-table-card,
.storage-summary-card {
  background: #ffffff;
  border-color: #d9e3f1;
  box-shadow: 0 10px 26px rgba(16, 39, 72, 0.08);
  color: #1a2d45;
}

.dashboard-muted,
.crm-table-toolbar__meta,
.setup-sidebar__subtitle,
.crm-empty-state__description,
.breadcrumb-item,
.breadcrumb-item a {
  color: #5f7390;
}

.btn-primary {
  background: #16a34a;
  border-color: #16a34a;
  color: #ffffff;
  border-radius: 8px;
  padding: 8px 16px;
  font-weight: 600;
  border-style: solid;
  border-width: 1px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary:hover,
.btn-primary:focus-visible,
.btn-primary:active {
  background: #15803d !important;
  border-color: #15803d !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-primary:focus {
  color: #ffffff;
}

.crm-log-detail-json {
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
  overflow-x: hidden;
  max-width: 100%;
}

.btn-primary:disabled,
.btn-primary.disabled {
  background: #8ec8a6;
  border-color: #8ec8a6;
  color: #ffffff;
  box-shadow: none;
  cursor: not-allowed;
}

.crm-global-link.active {
  background: var(--brand-500);
  border-color: var(--brand-500);
  color: #082414;
  font-weight: 700;
}

.btn-outline-secondary,
.btn-secondary,
.btn-light,
.btn-outline-primary,
.btn-ghost {
  background: #ffffff;
  border-color: #c8d6ea;
  color: #1f3551;
}

.btn-outline-secondary:hover,
.btn-secondary:hover,
.btn-light:hover,
.btn-outline-primary:hover,
.btn-ghost:hover {
  background: #f1f6ff;
  border-color: #9eb8dc;
  color: #163a63;
}

.form-control,
.form-select,
textarea,
.input-group-text,
.crm-compact-search,
.rv-lookup-results,
.rv-lookup-item,
.dropdown-menu {
  background: #ffffff;
  border-color: #c7d6ea;
  color: #1a2d45;
}

.form-control::placeholder,
.crm-compact-search__input::placeholder,
textarea::placeholder {
  color: #7c91ad;
}

.form-control:focus,
.form-select:focus,
textarea:focus,
.crm-compact-search:focus-within {
  border-color: var(--accent-500);
  box-shadow: 0 0 0 0.25rem rgba(37, 99, 235, 0.16);
}

.table thead th,
.rv-table thead th,
.sf-user-grid__label,
.crm-users-slds-key {
  background: #f3f7ff;
  color: #5f7390;
  border-color: #d9e3f1;
}

.table td,
.table th,
.breadcrumb-item + .breadcrumb-item::before {
  color: #1a2d45;
  border-color: #dfe7f4;
}

.modal-content,
.js-lead-create-modal-form .modal-footer,
.modal-footer {
  background: #ffffff;
  border-color: #d6e1f1;
}

.crm-empty-state-card {
  background:
    radial-gradient(920px 310px at 50% -18%, rgba(34, 197, 94, 0.14), transparent 62%),
    linear-gradient(180deg, #ffffff 0%, #f3f7ff 100%);
  border-color: #cfe0d8;
}

.crm-empty-state__title {
  color: #18385c;
}

.crm-auth-loading-card,
.crm-invite-loading-card {
  background: #ffffff;
  border-color: #d7e2f0;
  color: #1d314b;
}

.crm-auth-loading-card::before,
.crm-invite-loading-card::before {
  content: none;
  display: none;
}

.crm-invite-loading-spinner {
  border-color: #d1f5de;
  border-top-color: var(--brand-600);
}

.crm-invite-loading-card::after {
  content: attr(data-loading-text);
  margin-top: 0.25rem;
  color: #157347;
  font-size: 0.9rem;
  font-weight: 700;
}

.login-split {
  border-color: #cfdbec;
  background: #ffffff;
}

.login-split__left,
.login-mobile-brand,
.login-card,
.login-card--modern {
  background: #ffffff;
  border-color: #cfdaec;
}

.login-split__right {
  background:
    radial-gradient(420px 280px at 90% 12%, rgba(34, 197, 94, 0.2), transparent 62%),
    linear-gradient(160deg, #102a4f 0%, #163a68 52%, #1f4f82 100%);
}

.login-mobile-brand__text strong,
.login-hero h3 {
  color: #f3f8ff;
}

.login-hero > p,
.login-hero__bullets,
.login-mobile-brand__text span {
  color: #ccdbec;
}

.login-left-legal {
  color: #5b6f89;
}

.login-card__logo,
.login-mobile-brand__mark,
.password-setup-brand__logo,
.crm-set-password-logo {
  display: block;
  background: none;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(34, 197, 94, 0.2);
}

.crm-set-password-logo {
  width: 62px;
  height: 62px;
  border-radius: 999px;
  margin: 0 auto;
}

.login-card__footer a {
  color: #157347;
}

.setup-menu__link,
.setup-shortcut,
.setup-content__icon,
.setup-shortcut__icon {
  background: #f7faff;
  border-color: #d4e1f4;
  color: #1e3550;
}

.setup-menu__link.is-active,
.setup-shortcut:hover {
  border-color: #8fddb1;
  color: #135b36;
  box-shadow: 0 10px 18px rgba(34, 197, 94, 0.12);
}

.crm-user-status-badge,
.status-chip,
.rv-edit-related-chip {
  background: #f1f6ff;
  border-color: #d4e1f2;
  color: #223c5b;
}

.text-danger,
.field-validation-error,
.validation-summary-errors {
  color: var(--error) !important;
}

.text-warning {
  color: var(--warning) !important;
}

.text-success {
  color: var(--success) !important;
}

/* UX refresh: desktop context nav + mobile bottom nav */
.crm-context-nav {
  display: block;
}

.crm-desktop-nav {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.crm-desktop-nav__link {
  display: inline-flex;
  align-items: center;
  border-radius: 0.62rem;
  padding: 0.48rem 0.9rem;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  color: #334155;
  border: 1px solid transparent;
}

.crm-desktop-nav__link:hover {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.26);
  color: #15603a;
}

.crm-desktop-nav__link.is-active {
  background: rgba(34, 197, 94, 0.16);
  border-color: rgba(34, 197, 94, 0.35);
  color: #135b36;
}

.crm-bottom-nav {
  display: none;
}

@media (max-width: 991.98px) {
  .crm-context-nav {
    display: none;
  }

  .crm-bottom-nav {
    display: block;
    width: 100%;
    padding: 0.68rem 0.9rem;
    background: rgba(7, 22, 46, 0.95);
    border-top: 1px solid #17345d;
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 1025;
  }

  .crm-bottom-nav__list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem;
  }

  .crm-bottom-nav__link {
    text-align: center;
    font-size: 0.78rem;
    padding: 0.42rem 0.5rem;
  }

  main.container-fluid {
    padding-bottom: 4.7rem !important;
  }
}

.crm-view-presets {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.crm-view-presets__label {
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 700;
  color: #677d98;
  margin-right: 0.15rem;
}

.crm-view-preset {
  text-decoration: none;
  border: 1px solid #cedaed;
  color: #244263;
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  font-size: 0.84rem;
  font-weight: 600;
  background: #fff;
}

.crm-view-preset:hover {
  border-color: #9dc8ac;
  color: #15603a;
}

.crm-view-preset.is-active {
  border-color: #84d9a4;
  background: #edf9f1;
  color: #15603a;
}

.crm-row-actions-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.crm-row-primary-link {
  min-width: 84px;
}

.rv-action-sf__btn--primary {
  background: #22c55e;
  color: #072111;
  border-right-color: #16a34a;
}

.rv-action-sf__btn--primary:hover,
.rv-action-sf__btn--primary:focus-visible {
  background: #16a34a;
  color: #f4fff7;
}

.rv-action-sf__btn--accent {
  background: #eaf2ff;
  color: #17438a;
}

.rv-action-sf__btn--neutral {
  background: #ffffff;
  color: #1e53ad;
}

.rv-action-sf__btn--neutral:hover,
.rv-action-sf__btn--neutral:focus-visible {
  background: #eef4ff;
  color: #15418a;
}

.rv-action-sf__btn--danger {
  color: #a11b24;
}

.rv-action-sf__btn--danger:hover,
.rv-action-sf__btn--danger:focus-visible {
  background: #feecef;
  color: #8d1820;
}

.setup-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.setup-overview-card {
  border: 1px solid #d7e2f0;
  border-top-width: 3px;
  border-radius: 11px;
  padding: 0.75rem 0.8rem;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.setup-overview-card--success {
  border-top-color: #23a55a;
  background: linear-gradient(180deg, #ffffff, #f3fbf6);
}

.setup-overview-card--warning {
  border-top-color: #d79a18;
  background: linear-gradient(180deg, #ffffff, #fffbf3);
}

.setup-overview-card--danger {
  border-top-color: #d64545;
  background: linear-gradient(180deg, #ffffff, #fff6f6);
}

.setup-overview-card--muted {
  border-top-color: #8ea1bc;
  background: linear-gradient(180deg, #ffffff, #f7f9fc);
}

.setup-overview-card__label {
  font-size: 0.78rem;
  color: #607086;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.setup-overview-card__value {
  color: #1f3a59;
  font-size: 1rem;
}

.setup-overview-card__meta {
  color: #5d7390;
  font-size: 0.83rem;
}

.setup-record-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.setup-record-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.setup-record-card {
  border: 1px solid #d7e2f0;
  border-radius: 11px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  padding: 0.85rem;
}

.setup-record-card__title {
  margin: 0 0 0.6rem;
  font-size: 0.9rem;
  color: #1f3a59;
  font-weight: 800;
}

.setup-record-row {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.45rem 0;
  border-top: 1px solid #e4ecf7;
}

.setup-record-row:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.setup-record-row > span {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #63758f;
  font-weight: 700;
}

.setup-record-row > strong {
  color: #1e324f;
  font-size: 0.95rem;
  font-weight: 700;
}

.setup-graph-card {
  border: 1px solid #cfe0f6;
  border-radius: 16px;
  padding: 1rem 1rem 1.1rem;
  background:
    radial-gradient(780px 240px at 5% -20%, rgba(37, 99, 235, 0.09), transparent 62%),
    linear-gradient(180deg, #ffffff, #f6faff);
  box-shadow: 0 14px 30px rgba(12, 36, 68, 0.08);
}

.setup-graph-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.setup-graph-card__title-wrap h5 {
  color: #183451;
  font-weight: 800;
}

.setup-graph-card__title-wrap p {
  max-width: 720px;
}

.setup-graph-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  min-width: 108px;
  padding: 0.3rem 0.8rem;
  font-size: 0.79rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid transparent;
}

.setup-graph-badge.is-enabled {
  background: #e9f9ef;
  border-color: #98dfb3;
  color: #0f6f3a;
}

.setup-graph-badge.is-disabled {
  background: #eef2f8;
  border-color: #c6d5e9;
  color: #4f6280;
}

.setup-graph-toggle {
  margin-top: 0.85rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid #d4e2f4;
  border-radius: 12px;
  background: #fbfdff;
}

.setup-graph-toggle__switch {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: #1e3754;
  font-weight: 700;
}

.setup-graph-groups {
  margin-top: 0.95rem;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}

.setup-graph-group {
  border: 1px solid #d3e1f3;
  border-radius: 13px;
  background: #ffffff;
  padding: 1rem;
  min-width: 0;
  grid-column: span 6;
}

.setup-graph-group--full {
  grid-column: 1 / -1;
}

.setup-graph-group--credentials {
  grid-column: span 5;
}

.setup-graph-group--transport {
  grid-column: span 7;
}

.setup-graph-group--operational {
  grid-column: 1 / -1;
}

.setup-graph-group--credentials {
  overflow: hidden;
}

.setup-graph-test-overlay {
  position: absolute;
  inset: 0;
  background: rgba(245, 250, 255, 0.86);
  backdrop-filter: blur(1px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 8;
}

.setup-graph-test-overlay__card {
  min-width: 260px;
  max-width: 360px;
  text-align: center;
  border: 1px solid #d5e3f4;
  border-radius: 12px;
  background: #ffffff;
  padding: 1rem;
  box-shadow: 0 12px 24px rgba(16, 39, 72, 0.15);
}

.setup-graph-test-result-modal {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(12, 24, 43, 0.28);
  z-index: 9;
  padding: 1rem;
}

.setup-graph-test-result-modal.is-open {
  display: flex;
}

.setup-graph-test-result-modal__dialog {
  width: min(520px, 100%);
  border: 1px solid #d3e1f3;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(16, 39, 72, 0.18);
}

.setup-graph-test-result-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid #dfe8f6;
}

.setup-graph-test-result-modal__body {
  padding: 0.85rem 0.9rem;
  color: #2d4a69;
}

.setup-secret-input {
  letter-spacing: 0.06em;
  font-weight: 600;
}

.setup-secret-status {
  color: #2f6f45;
  font-size: 0.78rem;
  font-weight: 600;
}

#graphMailboxTable {
  table-layout: fixed;
  min-width: 920px;
}

#graphMailboxTable th,
#graphMailboxTable td {
  vertical-align: middle;
}

#graphMailboxTable th {
  white-space: normal;
  word-break: keep-all;
}

#graphMailboxTable .form-control.form-control-sm {
  min-height: 38px;
}

.setup-graph-sync-btn {
  border-radius: 999px;
  border-color: #8fb7e8;
  color: #1f4f88;
  background: linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
  font-weight: 700;
  transition: all 0.18s ease;
}

.setup-graph-sync-btn:hover:not(:disabled) {
  border-color: #5f96d8;
  color: #113f74;
  box-shadow: 0 4px 14px rgba(17, 63, 116, 0.12);
}

.setup-graph-group__title {
  margin-bottom: 0.75rem;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #5a7394;
  text-transform: uppercase;
}

.setup-graph-mode-row {
  align-items: center;
}

.setup-graph-mode-column,
.setup-graph-mode-help-column {
  display: flex;
  flex-direction: column;
}

.setup-graph-mode-help-column {
  justify-content: center;
}

.setup-graph-mode-help {
  border: 1px solid #d5e3f4;
  border-radius: 10px;
  padding: 0.78rem 0.9rem;
  font-size: 0.86rem;
  line-height: 1.45;
  color: #2c4a6a;
  background: #f7fbff;
  min-height: 0;
}

@media (max-width: 991.98px) {
  .setup-graph-mode-row {
    align-items: stretch;
  }

  .setup-graph-mode-help-column {
    justify-content: flex-start;
  }
}

.setup-graph-mode-help + .setup-graph-mode-help {
  margin-top: 0.6rem;
}

.setup-graph-mode-help--polling {
  border-color: #b9d8e8;
  background: #eef8ff;
}

.setup-graph-mode-help--webhook {
  border-color: #c6d6ef;
  background: #f3f7ff;
}

.setup-graph-mode-selector {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.setup-graph-mode-card {
  border: 1px solid #cfdff3;
  background: linear-gradient(180deg, #ffffff, #f7fbff);
  border-radius: 12px;
  min-height: 78px;
  padding: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-align: left;
  color: #284767;
  transition: all 0.18s ease;
}

.setup-graph-mode-card:hover {
  border-color: #9ec0ea;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(20, 54, 98, 0.1);
}

.setup-graph-mode-card.is-active {
  border-color: #73b39f;
  background: linear-gradient(180deg, #ffffff, #edf9f2);
  box-shadow: 0 8px 18px rgba(15, 60, 50, 0.12);
}

.setup-graph-mode-card__icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #edf5ff;
  color: #2b63a3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.setup-graph-mode-card.is-active .setup-graph-mode-card__icon {
  background: #def4e7;
  color: #0f6f3a;
}

.setup-graph-mode-card__content {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.setup-graph-mode-card__title {
  font-weight: 800;
  line-height: 1.15;
}

.setup-graph-mode-card__subtitle {
  font-size: 0.8rem;
  color: #5f7390;
}

.setup-email-tabs {
  border: 1px solid #d2dff0;
  border-radius: 14px;
  background: linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
  padding: 0.4rem;
  gap: 0.45rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.setup-email-tabs .nav-item {
  flex: 1 1 0;
}

.setup-email-tabs .nav-link {
  width: 100%;
  border: 1px solid #d4e1f3;
  border-radius: 11px;
  color: #355273;
  font-weight: 800;
  padding: 0.62rem 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #ffffff;
  transition: all 0.16s ease;
  min-height: 44px;
}

.setup-email-tabs .nav-link:hover {
  border-color: #b8d0ee;
  background: linear-gradient(180deg, #ffffff 0%, #f3f8ff 100%);
  color: #163f69;
  transform: translateY(-1px);
}

.setup-email-tabs .nav-link.active,
.setup-email-tabs .nav-item.show .nav-link {
  border-color: #73b39f;
  background:
    linear-gradient(180deg, #ffffff 0%, #eefcf5 100%);
  color: #0f4a3d;
  box-shadow: 0 8px 18px rgba(15, 60, 50, 0.12);
}

.setup-email-tabs .nav-link .bi {
  font-size: 1rem;
}

.setup-email-tab-content {
  border: 1px solid #d4e1f2;
  border-radius: 14px;
  background:
    radial-gradient(780px 220px at 4% -18%, rgba(37, 99, 235, 0.07), transparent 65%),
    linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  padding: 1rem;
  margin-top: 0.6rem;
}

@media (max-width: 767.98px) {
  .setup-email-tabs {
    flex-direction: column;
  }

  .setup-email-tabs .nav-item {
    width: 100%;
  }

  .setup-graph-mode-selector {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1199.98px) {
  .setup-graph-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .setup-graph-group--full,
  .setup-graph-group--operational {
    grid-column: 1 / -1;
  }

  .setup-graph-group {
    grid-column: auto;
  }

  .setup-graph-group--credentials,
  .setup-graph-group--transport {
    grid-column: auto;
  }
}

@media (max-width: 991.98px) {
  .setup-graph-groups {
    grid-template-columns: 1fr;
  }

  .setup-graph-group--full,
  .setup-graph-group--credentials,
  .setup-graph-group--transport,
  .setup-graph-group--operational {
    grid-column: 1 / -1;
  }
}

@media (max-width: 992px) {
  .setup-overview-grid {
    grid-template-columns: 1fr;
  }

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

#accountAddressCreateModal .modal-dialog {
  max-width: 920px;
}

.account-address-modal__panel {
  border: 1px solid #d6e3f3;
  background: #f4f8fd;
  border-radius: 10px;
  padding: 0.8rem 0.9rem;
}

.account-address-modal .address-autofill-locked,
.account-address-modal .form-control[readonly] {
  background-color: #eef4fb;
  color: #22354b;
}

.account-address-modal .modal-footer {
  border-top: 1px solid #d6e3f3;
}

.account-address-grid .input-group .btn {
  min-width: 120px;
}

@media (max-width: 991.98px) {
  .account-address-grid .input-group .btn {
    min-width: 104px;
  }
}

.account-recordtype-modal-dialog {
  max-width: 760px;
}

.account-owner-change-modal-dialog {
  max-width: 760px;
}

#accountOwnerChangeModal .modal-body {
  min-height: 260px;
}

#accountOwnerChangeModal .rv-lookup-results {
  max-height: 260px;
}

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

.account-recordtype-modal-card {
  border: 1px solid #d7e5f5;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff, #f6f9ff);
  padding: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.account-recordtype-modal-card__icon {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eaf2ff;
  color: #1d4f91;
  font-size: 1.15rem;
  flex: 0 0 auto;
}

.account-recordtype-modal-card__content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.account-recordtype-modal-card__title {
  color: #17334f;
  font-size: 1.02rem;
  font-weight: 700;
}

.account-recordtype-modal-card__description {
  color: #536b88;
  font-size: 0.9rem;
  line-height: 1.35;
}

.account-recordtype-modal-card__arrow {
  margin-left: auto;
  color: #6781a3;
  flex: 0 0 auto;
}

.account-recordtype-modal-card:hover,
.account-recordtype-modal-card:focus-visible {
  transform: translateY(-1px);
  border-color: #3f73b5;
  box-shadow: 0 10px 24px rgba(15, 61, 112, 0.12);
}

@media (max-width: 767.98px) {
  .account-recordtype-modal-grid {
    grid-template-columns: 1fr;
  }
}

.contact-role-picklist {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.6rem;
}

.contact-role-card {
  margin: 0;
  cursor: pointer;
}

.contact-role-card__input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.contact-role-card__body {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid #d5e2f1;
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff, #f7faff);
  padding: 0.65rem 0.7rem;
  min-height: 52px;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.contact-role-card__icon {
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1c4f90;
  background: #eaf2ff;
  font-size: 0.95rem;
  flex: 0 0 auto;
}

.contact-role-card__label {
  color: #1f3857;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.2;
}

.contact-role-card:hover .contact-role-card__body,
.contact-role-card:focus-within .contact-role-card__body {
  border-color: #4b7dbf;
  box-shadow: 0 8px 20px rgba(27, 67, 120, 0.12);
  transform: translateY(-1px);
}

.contact-role-card__input:checked + .contact-role-card__body {
  border-color: #2f6cb2;
  box-shadow: inset 0 0 0 1px rgba(47, 108, 178, 0.25), 0 8px 18px rgba(27, 67, 120, 0.14);
  background: linear-gradient(180deg, #eef5ff, #e6f0ff);
}

.contact-role-card.is-selected .contact-role-card__body,
.contact-role-card__body--selected {
  border-color: #2f6cb2;
  box-shadow: inset 0 0 0 1px rgba(47, 108, 178, 0.25), 0 8px 18px rgba(27, 67, 120, 0.14);
  background: linear-gradient(180deg, #eef5ff, #e6f0ff);
}

.crm-create-centered {
  width: min(100%, 980px);
  margin-inline: auto;
}

main.container-fluid > .crm-create-centered,
main.container-fluid > .account-create.crm-create-centered {
  max-width: 980px !important;
  width: 100%;
  margin-left: auto !important;
  margin-right: auto !important;
}

.crm-global-loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(236, 243, 252, 0.65);
  backdrop-filter: blur(2px);
  z-index: 1800;
  display: grid;
  place-items: center;
}

.crm-global-loading-overlay__card {
  min-width: 190px;
  border: 1px solid #d4e1f3;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(12, 34, 61, 0.2);
  padding: 0.7rem 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.crm-global-loading-overlay__text {
  font-size: 0.9rem;
  color: #157347;
  font-weight: 700;
}

.crm-global-loading-overlay .spinner-border {
  width: 1rem;
  height: 1rem;
  border-width: 0.16rem;
  color: #16a34a !important;
}

.crm-invite-loading-overlay,
.crm-auth-loading-overlay,
.setup-graph-test-overlay,
.crm-global-loading-overlay {
  background: rgba(236, 243, 252, 0.65);
  backdrop-filter: blur(2px);
}

.crm-invite-loading-card,
.crm-auth-loading-card,
.setup-graph-test-overlay__card,
.crm-global-loading-overlay__card {
  min-width: 190px;
  width: auto;
  border: 1px solid #d4e1f3;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(12, 34, 61, 0.2);
  padding: 0.7rem 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  text-align: left;
}

.crm-invite-loading-card > :not(.crm-invite-loading-spinner):not(.spinner-border),
.crm-auth-loading-card > :not(.crm-invite-loading-spinner):not(.spinner-border),
.setup-graph-test-overlay__card > :not(.spinner-border) {
  display: none !important;
}

.crm-auth-loading-card::after,
.crm-invite-loading-card::after,
.setup-graph-test-overlay__card::after {
  content: attr(data-loading-text);
  color: #157347;
  font-size: 0.9rem;
  font-weight: 700;
}

.crm-auth-loading-card .spinner-border,
.crm-invite-loading-card .spinner-border,
.setup-graph-test-overlay__card .spinner-border {
  width: 1rem;
  height: 1rem;
  border-width: 0.16rem;
  color: #16a34a !important;
}

.crm-invite-loading-spinner {
  width: 1rem;
  height: 1rem;
  border-width: 0.16rem;
  margin: 0;
  border-color: #d1f5de;
  border-top-color: #16a34a;
}

.crm-global-error-fallback {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  max-width: 360px;
  border-radius: 12px;
  border: 1px solid #f5b9b9;
  background: #fff5f5;
  box-shadow: 0 16px 32px rgba(94, 14, 14, 0.2);
  z-index: 1900;
  padding: 0.85rem;
}

.crm-global-error-fallback__title {
  color: #9f1239;
  font-weight: 700;
  font-size: 0.92rem;
}

.crm-global-error-fallback__description {
  color: #7f1d1d;
  font-size: 0.85rem;
  margin: 0.3rem 0 0.6rem;
}

@media (max-width: 768px) {
  body {
    min-height: 100dvh;
  }

  .crm-global-bar {
    min-height: 58px;
    padding: 0.55rem 0.9rem;
  }

  .crm-logo {
    width: 32px;
    height: 32px;
  }

  .crm-brand-title {
    font-size: 0.96rem;
    line-height: 1.1;
  }

  .crm-brand-subtitle {
    display: none;
  }

  .crm-env-badge {
    display: inline-flex;
    height: 1.15rem;
    padding: 0 0.42rem;
    font-size: 0.58rem;
    letter-spacing: 0.05em;
  }

  .crm-user-actions {
    right: 0.6rem;
    gap: 0.35rem;
  }

  .crm-notification-trigger,
  .crm-setup-trigger,
  .crm-user-menu__trigger .crm-avatar {
    width: 34px !important;
    height: 34px !important;
  }

  .crm-table-toolbar {
    align-items: stretch;
    gap: 0.55rem;
  }

  .crm-table-toolbar__meta {
    width: 100%;
    font-size: 0.82rem;
  }

  .crm-table-toolbar__actions {
    width: 100%;
    margin-left: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 0.4rem;
  }

  .crm-table-toolbar__search {
    width: 100%;
    min-width: 0;
  }

  .crm-compact-search {
    width: 100%;
    min-width: 0;
    height: 38px;
  }

  .crm-toolbar-icon-btn {
    width: 38px;
    height: 38px;
  }

  .crm-view-presets {
    margin-top: 0.1rem;
    margin-bottom: 0.8rem;
    gap: 0.42rem;
  }

  .crm-view-presets__label {
    width: 100%;
    margin: 0;
    font-size: 0.72rem;
  }

  .crm-view-preset {
    font-size: 0.8rem;
    padding: 0.3rem 0.62rem;
  }

  .rv-action-sf__group .rv-action-sf__btn:first-child {
    grid-column: 1 / -1;
    min-height: 42px;
    font-weight: 700;
  }

  .rv-action-sf__group .rv-action-sf__btn:nth-child(2),
  .rv-action-sf__group .rv-action-sf__btn:nth-child(3),
  .rv-action-sf__btn--menu {
    min-height: 40px;
  }

  table.crm-mobile-card-table {
    border: 0;
  }

  .crm-mobile-card-table thead {
    display: none !important;
  }

  .crm-mobile-card-table tbody,
  .crm-mobile-card-table tr,
  .crm-mobile-card-table td {
    display: block;
    width: 100%;
  }

  .crm-mobile-card-table tr {
    border: 1px solid #d5e2f4;
    border-radius: 12px;
    margin: 0.65rem 0.7rem;
    padding: 0.55rem 0.65rem;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(12, 34, 61, 0.08);
  }

  .crm-mobile-card-table tr.crm-mobile-list-row {
    cursor: pointer;
  }

  .crm-mobile-card-table tr.crm-mobile-list-row:focus-visible {
    outline: 2px solid rgba(37, 99, 235, 0.45);
    outline-offset: 2px;
  }

  .crm-mobile-card-table td {
    border: 0 !important;
    padding: 0.18rem 0;
    min-height: 0;
  }

  .crm-mobile-card-table td:first-child {
    padding-top: 0;
    margin-bottom: 0.2rem;
    font-size: 1rem;
    font-weight: 700;
    color: #163a63;
  }

  .crm-mobile-card-table td:first-child::before {
    display: none !important;
  }

  .crm-mobile-card-table td:not(:first-child):not(.text-end) {
    display: grid;
    grid-template-columns: minmax(110px, auto) minmax(0, 1fr);
    gap: 0.45rem;
    align-items: baseline;
    font-size: 0.86rem;
    color: #2d4b70;
  }

  .crm-mobile-card-table td:not(:first-child):not(.text-end)::before {
    content: attr(data-label);
    color: #5f7390;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
  }

  .crm-mobile-card-table td.text-end {
    text-align: left !important;
    margin-top: 0.4rem;
    padding-top: 0.45rem;
    border-top: 1px solid #e2ebf8 !important;
  }

  .crm-mobile-card-table .crm-row-actions-wrap {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.4rem;
  }

  .crm-mobile-card-table .crm-row-primary-link {
    min-width: 0;
    width: 100%;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}
