html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 15px;
  }
}

body {
  background: #f4f6f8;
  color: #1f2933;
}

.crm-shell-header {
  background: #1b2a38;
}

.app-version {
  color: #9fb0bf;
  font-size: 0.85rem;
}

.view-as-pill {
  color: #ffe08a;
  font-weight: 700;
}

.login-version {
  color: #6b7b8c;
  font-size: 0.85rem;
  margin-top: 18px;
  text-align: center;
}

.navbar-brand {
  font-weight: 700;
}

.navbar-dark .navbar-nav .nav-link.active,
.navbar-dark .navbar-nav .nav-link[aria-current="page"] {
  color: #ffffff;
  font-weight: 700;
  position: relative;
}

.navbar-dark .navbar-nav .nav-link.active::after,
.navbar-dark .navbar-nav .nav-link[aria-current="page"]::after {
  background: #46d3ff;
  border-radius: 999px;
  bottom: 2px;
  content: "";
  height: 3px;
  left: .5rem;
  position: absolute;
  right: .5rem;
}

.dropdown-item.active,
.dropdown-item:active {
  background-color: #1b2a38;
  color: #ffffff;
}

.crm-main {
  padding: 24px;
}

.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.page-heading h1,
.crm-form h1 {
  font-size: 1.45rem;
  margin: 0;
}

.page-heading p {
  margin: 4px 0 0;
  color: #607080;
}

.list-page-heading {
  background: var(--module-heading, #ffffff);
  border: 1px solid var(--module-border, #d9e0e7);
  border-left: 6px solid var(--module-accent, #2c7be5);
  border-radius: 6px;
  padding: 14px 16px;
}

.list-page-heading h1 {
  color: var(--module-title, #1f2933);
}

.module-add-button {
  background: var(--module-accent, #0d6efd);
  border-color: var(--module-accent, #0d6efd);
}

.module-add-button:hover,
.module-add-button:focus {
  background: var(--module-accent-strong, #0b5ed7);
  border-color: var(--module-accent-strong, #0b5ed7);
}

.metric-grid,
.crm-grid-two {
  display: grid;
  gap: 16px;
  margin-bottom: 22px;
}

.metric-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.crm-grid-two {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.metric-card,
.crm-panel {
  background: #fff;
  border: 1px solid #d9e0e7;
  border-radius: 6px;
  padding: 16px;
}

.metric-card span {
  display: block;
  color: #607080;
  font-size: .9rem;
}

.metric-card strong {
  display: block;
  margin-top: 4px;
  font-size: 1.6rem;
}

.metric-card-open-pipeline {
  background: #e6f6ea;
  border-color: #b8dfc3;
}

.metric-card-weighted-pipeline {
  background: #fff1df;
  border-color: #f3c98f;
}

h2 {
  font-size: 1rem;
  margin-bottom: 12px;
}

.crm-table {
  margin: 0;
}

.crm-table th {
  color: #415365;
  font-weight: 700;
  border-bottom-color: #c7d1db;
}

.list-panel {
  border-color: var(--module-border, #d9e0e7);
  box-shadow: 0 10px 24px rgba(31, 41, 51, 0.04);
  padding: 0;
  overflow: hidden;
}

.list-table thead th {
  background: var(--module-header, #f3f6f9);
  border-bottom-color: var(--module-border, #c7d1db);
  color: var(--module-title, #24384a);
  padding: 12px;
  white-space: nowrap;
}

.list-table tbody td {
  border-color: #e4e9ef;
  padding: 10px 12px;
  vertical-align: middle;
}

.list-table tbody tr:nth-child(even) td {
  background: var(--module-row, #fbfcfd);
}

.list-table tbody tr:hover td {
  background: var(--module-hover, #eef5ff);
}

.list-table a:not(.btn) {
  color: var(--module-link, #0d6efd);
  font-weight: 400;
}

.module-accounts {
  --module-accent: #2878b8;
  --module-accent-strong: #1f6093;
  --module-border: #bdd8ee;
  --module-heading: #f4f9fd;
  --module-header: #e6f2fb;
  --module-hover: #edf7ff;
  --module-row: #fbfdff;
  --module-title: #184766;
  --module-link: #216fa7;
}

.module-contacts {
  --module-accent: #168b7a;
  --module-accent-strong: #116f62;
  --module-border: #b9ded7;
  --module-heading: #f3fbf9;
  --module-header: #e2f4f1;
  --module-hover: #ebfaf7;
  --module-row: #fbfffe;
  --module-title: #15584f;
  --module-link: #137c6e;
}

.module-pipeline {
  --module-accent: #b46d17;
  --module-accent-strong: #925711;
  --module-border: #ebc894;
  --module-heading: #fff8ee;
  --module-header: #fff0d9;
  --module-hover: #fff6e9;
  --module-row: #fffdf9;
  --module-title: #70420d;
  --module-link: #9a5d14;
}

.module-activities {
  --module-accent: #6f65c8;
  --module-accent-strong: #5850a4;
  --module-border: #d0cced;
  --module-heading: #f8f7ff;
  --module-header: #eceafd;
  --module-hover: #f3f1ff;
  --module-row: #fdfcff;
  --module-title: #423b84;
  --module-link: #5b52b5;
}

.module-tasks {
  --module-accent: #c0506d;
  --module-accent-strong: #9e3f58;
  --module-border: #ecc3cd;
  --module-heading: #fff6f8;
  --module-header: #fde8ee;
  --module-hover: #fff0f4;
  --module-row: #fffafb;
  --module-title: #753044;
  --module-link: #ad4861;
}

.module-notes {
  --module-accent: #637a25;
  --module-accent-strong: #50621d;
  --module-border: #d4dfad;
  --module-heading: #fafcf3;
  --module-header: #eef4da;
  --module-hover: #f5fae7;
  --module-row: #fefff9;
  --module-title: #415119;
  --module-link: #5f7423;
}

.case-dashboard-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin: -8px 0 16px;
}

.case-dashboard-card {
  background: #ffffff;
  border: 1px solid #d9e0e7;
  border-left: 5px solid #607080;
  border-radius: 6px;
  padding: 12px 14px;
}

.case-dashboard-card span {
  color: #607080;
  display: block;
  font-size: .84rem;
  font-weight: 700;
}

.case-dashboard-card strong {
  color: #182635;
  display: block;
  font-size: 1.55rem;
  line-height: 1.1;
  margin-top: 4px;
}

.case-dashboard-total {
  background: #f4f9fd;
  border-left-color: #2878b8;
}

.case-dashboard-new {
  background: #f3fbf9;
  border-left-color: #168b7a;
}

.case-dashboard-progress {
  background: #fff8ee;
  border-left-color: #b46d17;
}

.case-dashboard-escalated {
  background: #fff6f8;
  border-left-color: #c0506d;
}

.case-dashboard-hold {
  background: #f8f7ff;
  border-left-color: #6f65c8;
}

.case-dashboard-high {
  background: #fff0f0;
  border-left-color: #b93232;
}

.table-inline-form {
  display: inline-block;
  margin: 0 0 0 6px;
}

.table-inline-form-first {
  margin-left: 0;
}

.table-filter-panel {
  display: flex;
  justify-content: flex-end;
  margin: -8px 0 14px;
}

.table-filter-panel-left {
  justify-content: flex-start;
}

.segmented-filter {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  background: #ffffff;
  border: 1px solid #d9e0e7;
  border-radius: 6px;
  padding: 4px;
}

.segmented-filter a {
  border-radius: 4px;
  color: #415365;
  font-size: .82rem;
  font-weight: 700;
  padding: 7px 10px;
  text-decoration: none;
}

.segmented-filter a.active {
  background: #1b2a38;
  color: #ffffff;
}

.table-tools,
.table-pager {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 10px;
}

.table-tools input {
  max-width: 360px;
}

.table-tools span,
.table-pager span {
  color: #607080;
  font-weight: 700;
}

.table-pager {
  justify-content: flex-end;
  margin-top: 10px;
}

.table-filter-form {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid #d9e0e7;
  border-radius: 6px;
  padding: 8px 10px;
}

.table-filter-form label {
  color: #415365;
  font-weight: 700;
}

.table-filter-form .form-select {
  width: 220px;
}

.currency-toggle {
  display: flex;
  gap: 6px;
}

.report-filter-form {
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: end;
}

.filter-field {
  display: grid;
  gap: 3px;
}

.filter-field label {
  font-size: .78rem;
}

.report-filter-form .form-select {
  width: 190px;
}

.dashboard-chart {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.dashboard-column-chart {
  display: flex;
  align-items: stretch;
  gap: 14px;
  min-height: 230px;
  overflow-x: auto;
  padding: 6px 4px 2px;
}

.chart-row {
  display: grid;
  grid-template-columns: minmax(110px, 160px) 1fr minmax(110px, auto);
  gap: 10px;
  align-items: center;
}

.chart-column {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 8px;
  min-width: 92px;
  flex: 1 0 92px;
}

.chart-label,
.chart-value {
  color: #415365;
  font-size: .88rem;
  font-weight: 700;
}

.chart-label {
  min-height: 34px;
  text-align: center;
  overflow-wrap: anywhere;
}

.chart-value {
  text-align: center;
  white-space: nowrap;
}

.chart-track {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 150px;
  background: #edf1f5;
  border-radius: 6px;
  overflow: hidden;
}

.chart-bar {
  width: 100%;
  border-radius: 6px 6px 0 0;
}

.chart-bar-owner {
  background: #2c7be5;
}

.chart-bar-month {
  background: #15a085;
}

.dashboard-shell {
  background: #17212d;
  border-radius: 0;
  color: #f6f8fb;
  margin: -14px -12px 0;
  min-height: calc(100vh - 70px);
  padding: 24px 30px 36px;
}

.dashboard-hero,
.dashboard-section-heading {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 18px;
}

.dashboard-hero h1 {
  color: #fff;
  font-size: 1.55rem;
  font-weight: 800;
  margin: 0 0 4px;
}

.dashboard-hero p,
.dashboard-section-heading span {
  color: #aebccc;
  margin: 0;
}

.dashboard-currency-toggle {
  display: flex;
  gap: 6px;
}

.dashboard-metric-grid,
.dashboard-grid-two,
.dashboard-stale-grid {
  display: grid;
  gap: 18px;
}

.dashboard-metric-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 18px;
}

.dashboard-grid-two {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  margin-bottom: 18px;
}

.dashboard-metric-card,
.dashboard-panel,
.dashboard-stale-card {
  background: rgba(40, 52, 68, .92);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  box-shadow: 0 18px 38px rgba(0, 0, 0, .18);
}

.dashboard-metric-card {
  min-height: 88px;
  padding: 16px;
}

.dashboard-metric-card span,
.dashboard-stale-card span {
  color: #dce5ef;
  display: block;
  font-size: .84rem;
  font-weight: 700;
}

.dashboard-metric-card strong {
  color: #fff;
  display: block;
  font-size: clamp(1.55rem, 2.5vw, 2rem);
  line-height: 1.15;
  margin-top: 6px;
  overflow-wrap: anywhere;
}

.dashboard-metric-card-open {
  background: linear-gradient(135deg, rgba(22, 145, 128, .9), rgba(30, 75, 86, .95));
  border-color: rgba(39, 224, 190, .55);
}

.dashboard-metric-card-weighted {
  background: linear-gradient(135deg, rgba(95, 60, 139, .92), rgba(54, 45, 96, .96));
  border-color: rgba(183, 124, 232, .55);
}

.dashboard-metric-card-stale {
  background: linear-gradient(135deg, rgba(132, 103, 54, .94), rgba(78, 66, 48, .96));
  border-color: rgba(245, 190, 88, .58);
}

.dashboard-panel {
  padding: 18px;
}

.dashboard-panel h2 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 16px;
}

.dashboard-owner-bars {
  display: grid;
  gap: 12px;
  margin-bottom: 22px;
}

.dashboard-owner-row {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(120px, 170px) minmax(130px, 1fr) minmax(120px, auto);
}

.dashboard-owner-row span,
.dashboard-owner-row strong,
.dashboard-month-column span,
.dashboard-table {
  color: #edf3fb;
  font-size: .86rem;
}

.dashboard-owner-track {
  background: rgba(255, 255, 255, .11);
  border-radius: 5px;
  height: 20px;
  overflow: hidden;
}

.dashboard-owner-bar {
  background: linear-gradient(90deg, #2496ff, #8b35f6);
  border-radius: 5px;
  height: 100%;
}

.dashboard-month-chart {
  align-items: end;
  display: flex;
  gap: 14px;
  min-height: 190px;
  overflow-x: auto;
  padding: 6px 2px 20px;
}

.dashboard-month-column {
  display: grid;
  flex: 1 0 96px;
  gap: 8px;
  min-width: 96px;
}

.dashboard-month-track {
  align-items: end;
  background: rgba(255, 255, 255, .09);
  border-radius: 6px;
  display: flex;
  height: 150px;
  overflow: hidden;
}

.dashboard-month-bar {
  background: linear-gradient(135deg, #12d7bd, #e23fd3);
  border-radius: 6px 6px 0 0;
  width: 100%;
}

.dashboard-month-column span {
  text-align: center;
}

.dashboard-table {
  border-color: rgba(255, 255, 255, .13);
  margin: 0;
}

.dashboard-table th {
  color: #37e4d1;
  border-bottom-color: rgba(255, 255, 255, .2);
}

.dashboard-table td {
  border-color: rgba(255, 255, 255, .11);
}

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

.dashboard-stale-card {
  border-left: 5px solid #ff3f6c;
  padding: 14px 16px;
}

.dashboard-stale-card h3 {
  color: #fff;
  font-size: .98rem;
  margin: 8px 0 4px;
}

.dashboard-stale-card p {
  color: #ced8e3;
  margin: 0 0 12px;
}

.dashboard-stale-card dl {
  display: grid;
  gap: 6px;
  margin: 0;
}

.dashboard-stale-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.dashboard-stale-card dt {
  color: #9eb0c4;
  font-weight: 700;
}

.dashboard-stale-card dd {
  color: #fff;
  margin: 0;
  text-align: right;
}

@media (max-width: 900px) {
  .dashboard-shell {
    margin: -12px -8px 0;
    padding: 18px 14px 26px;
  }

  .dashboard-hero,
  .dashboard-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-metric-grid,
  .dashboard-grid-two {
    grid-template-columns: 1fr;
  }

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

.crm-form {
  max-width: 760px;
  background: #fff;
  border: 1px solid #d9e0e7;
  border-radius: 6px;
  padding: 18px;
}

.crm-form-wide {
  max-width: none;
}

.opportunity-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px 16px;
}

.account-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px 16px;
}

.account-section {
  border: 1px solid #dce3ea;
  border-radius: 6px;
  margin-top: 12px;
  padding: 14px 16px 16px;
}

.account-section:first-child {
  margin-top: 0;
}

.account-section h2 {
  color: #24384a;
  margin-bottom: 10px;
}

.account-section-details {
  background: #f7fbff;
  border-color: #dcebf8;
}

.account-section-ownership {
  background: #f6fbf7;
  border-color: #dcefe1;
}

.account-section-contact {
  background: #fffaf2;
  border-color: #f1e2c9;
}

.account-section-description {
  background: #f8f7fb;
  border-color: #e5e0ef;
}

.account-section-footer {
  align-items: center;
  background: #ffffff;
  display: flex;
  justify-content: space-between;
  padding-bottom: 14px;
}

.opportunity-section {
  border-top: 1px solid #dce3ea;
  border-radius: 6px;
  padding: 14px 0 16px;
}

.opportunity-section:first-child {
  border-top: 0;
  padding-top: 0;
}

.opportunity-section-name {
  background: #f7fbff;
  border: 1px solid #dcebf8;
  padding: 14px 16px;
  padding-bottom: 10px;
}

.opportunity-section-details {
  background: #f6fbf7;
  border: 1px solid #dcefe1;
  padding: 14px 16px 16px;
  margin-top: 12px;
}

.opportunity-section-notes {
  background: #fffaf2;
  border: 1px solid #f1e2c9;
  padding: 14px 16px 16px;
  margin-top: 12px;
}

.opportunity-section-footer {
  background: #f8f7fb;
  border: 1px solid #e5e0ef;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
  padding: 14px 16px;
  padding-bottom: 0;
}

.opportunity-section-footer .form-field {
  width: min(320px, 100%);
}

.form-field {
  min-width: 0;
}

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

.account-contact-stack {
  display: grid;
  gap: 6px;
  align-content: start;
}

.account-contact-stack label:not(:first-child) {
  margin-top: 6px;
}

.crm-form label {
  margin-top: 12px;
  margin-bottom: 4px;
  font-weight: 600;
}

.opportunity-form label {
  margin-top: 0;
}

.crm-form button {
  margin-top: 18px;
}

.form-actions {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}

.form-actions .btn,
.form-actions button {
  margin-top: 0;
}

.login-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #152536 0%, #253f53 52%, #eef3f7 52%, #eef3f7 100%);
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-panel {
  width: min(440px, 100%);
  background: #fff;
  border: 1px solid #d5dde5;
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(21, 37, 54, .18);
  padding: 28px;
}

.login-brand {
  display: grid;
  gap: 2px;
  margin-bottom: 22px;
  color: #1b2a38;
}

.login-brand span {
  color: #687888;
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
}

.login-brand strong {
  font-size: 1.45rem;
}

.login-panel h1 {
  font-size: 1.3rem;
  margin-bottom: 6px;
}

.login-panel p {
  color: #607080;
  margin-bottom: 18px;
}

.login-form label {
  font-weight: 700;
  margin-top: 12px;
  margin-bottom: 5px;
}

.login-form button {
  margin-top: 18px;
}

.login-links {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

.account-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.record-hero {
  align-items: center;
  background: var(--module-heading, #ffffff);
  border: 1px solid var(--module-border, #d9e0e7);
  border-left: 6px solid var(--module-accent, #2c7be5);
  border-radius: 6px;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 16px 18px;
}

.record-hero span {
  color: #607080;
  display: block;
  font-size: .82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.record-hero h1 {
  color: var(--module-title, #1f2933);
  font-size: 1.55rem;
  margin: 2px 0;
}

.record-hero p {
  color: #607080;
  margin: 0;
}

.record-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.record-actions form {
  margin: 0;
}

.record-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  margin-bottom: 16px;
}

.record-section {
  border-left: 5px solid #607080;
}

.record-section-blue {
  background: #f7fbff;
  border-left-color: #2878b8;
}

.record-section-green {
  background: #f3fbf9;
  border-left-color: #168b7a;
}

.record-section-orange {
  background: #fff8ee;
  border-left-color: #b46d17;
}

.record-section-purple {
  background: #f8f7ff;
  border-left-color: #6f65c8;
}

.record-section-gray {
  background: #fbfcfd;
  border-left-color: #6b7b8c;
}

.record-fields {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.record-fields div {
  display: grid;
  gap: 3px;
}

.record-fields strong {
  color: #415365;
  font-size: .84rem;
}

.record-fields span {
  overflow-wrap: anywhere;
}

.record-field-wide {
  grid-column: 1 / -1;
}

.import-actions {
  display: grid;
  gap: 10px;
}

.import-actions form {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr auto;
  margin: 0;
}

.import-error-row td {
  background: #fff0f0 !important;
}

.account-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px 16px;
}

.account-form label {
  margin-top: 0;
}

.case-detail-shell {
  display: grid;
  gap: 12px;
}

.case-detail-section .account-detail-grid {
  margin-bottom: 0;
}

.case-detail-section {
  margin-top: 0;
}

.case-audit-grid {
  flex: 1;
}

.case-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.case-section-heading h2 {
  font-size: 1rem;
  margin: 0;
}

.case-section-heading span {
  color: #5f7184;
  font-size: 0.9rem;
}

.case-update-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-bottom: 14px;
}

.form-error {
  color: #b42318;
  font-weight: 700;
  margin-bottom: 10px;
}

.case-update-list {
  display: grid;
  gap: 10px;
}

.case-update-item,
.case-update-empty {
  background: #ffffff;
  border: 1px solid #d8e2ea;
  border-radius: 6px;
  padding: 10px 12px;
}

.case-update-meta {
  color: #5f7184;
  display: flex;
  flex-wrap: wrap;
  font-size: 0.85rem;
  font-weight: 700;
  gap: 10px;
  margin-bottom: 6px;
}

.case-update-body {
  white-space: pre-wrap;
}

.case-update-empty {
  color: #5f7184;
}

.account-detail-grid div {
  display: grid;
  gap: 3px;
}

.account-detail-grid strong {
  color: #415365;
}

.account-detail-description {
  grid-column: 1 / -1;
}

.panel-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.panel-heading-row h2 {
  margin-bottom: 0;
}

.lookup-add-form,
.lookup-row-form {
  margin: 0;
}

.lookup-add-form {
  display: grid;
  grid-template-columns: minmax(220px, 420px) max-content;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
}

.lookup-add-form .btn {
  justify-self: end;
  width: auto;
}

.stage-add-form,
.stage-row-form {
  margin: 0;
}

.stage-add-form {
  display: grid;
  grid-template-columns: minmax(180px, 360px) 140px 100px max-content max-content;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
}

.stage-check {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #415365;
  font-weight: 700;
  margin: 0;
  white-space: nowrap;
}

.stage-probability-col {
  width: 130px;
}

.stage-sort-col {
  width: 90px;
}

.stage-closed-col {
  width: 90px;
  text-align: center;
}

.stage-actions-col {
  width: 90px;
}

.report-stage-panel {
  margin-bottom: 16px;
}

.report-stage-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.report-stage-heading h2 {
  margin-bottom: 2px;
}

.report-stage-heading span {
  color: #607080;
}

.report-stage-totals {
  display: grid;
  grid-template-columns: repeat(3, auto auto);
  gap: 2px 8px;
  align-items: baseline;
  text-align: right;
}

.report-stage-totals strong {
  color: #102338;
}

.report-stage-totals span {
  font-size: .82rem;
}

.lookup-delete-form {
  display: inline-block;
  margin: 0 0 0 6px;
}

.lookup-active-col {
  width: 90px;
  text-align: center;
}

.lookup-actions-col {
  width: 170px;
  white-space: nowrap;
}
