/* Crmcredaris app shell — no Nicepage/u-* classes */

.cr-page {
  min-height: 100vh;
  font-family: var(--font-body);
  background: linear-gradient(165deg, #f8fafc 0%, #eef2f7 48%, #f1f5f9 100%);
  color: var(--credaris-graphite);
}

.cr-navbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  row-gap: 0.5rem;
  padding: 0 1rem;
  background: linear-gradient(135deg, var(--credaris-navy) 0%, #0f2847 100%);
  box-shadow: var(--credaris-shadow-ui);
}

.cr-navbar a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-size: 0.8rem;
  font-family: var(--font-heading);
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  transition: color 0.15s ease, background 0.15s ease;
}

.cr-navbar a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.cr-dropdown-wrap {
  position: relative;
  display: inline-block;
}

.cr-dropdown-panel {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 11rem;
  margin-top: 0.35rem;
  padding: 0.35rem 0;
  background: var(--credaris-white);
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(11, 31, 59, 0.15);
  border: 1px solid rgba(11, 31, 59, 0.08);
  z-index: 80;
}

.cr-dropdown-panel a {
  display: block;
  color: var(--credaris-navy);
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
}

.cr-dropdown-panel a:hover {
  background: rgba(15, 92, 77, 0.08);
  color: var(--credaris-emerald);
}

.cr-dropdown-wrap:hover .cr-dropdown-panel,
.cr-dropdown-wrap:focus-within .cr-dropdown-panel {
  display: block;
}

/* Neutralize legacy Nicepage section wrappers (classes may remain in JSPs) */
section.u-palette-4-dark-1.u-section-1 {
  background: linear-gradient(90deg, #0b1f3b 0%, #132d52 50%, #0b1f3b 100%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

section.u-image.u-section-2 {
  background-image: none !important;
  background-color: transparent !important;
}

.u-sheet-1.u-clearfix {
  max-width: 1680px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem !important;
  padding-right: 1rem !important;
}

/* Dashboard KPI grid (Credaris cards) */
#dash-kpi-grid .cr-kpi-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 7.5rem;
  padding: 0.875rem 0.95rem;
  border-radius: 12px;
  border: 1px solid rgba(15, 31, 59, 0.08);
  background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
  box-shadow: var(--credaris-shadow-ui);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

#dash-kpi-grid .cr-kpi-card:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 92, 77, 0.22);
  box-shadow: 0 12px 32px rgba(11, 31, 59, 0.1);
}

#dash-kpi-grid .cr-kpi-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 0.35rem;
  border-radius: 10px;
  background: rgba(15, 92, 77, 0.1);
  color: var(--credaris-emerald);
  font-size: 0.95rem;
}

#dash-kpi-grid .cr-kpi-label {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--credaris-graphite);
  opacity: 0.88;
  margin: 0 0 0.35rem;
  line-height: 1.2;
}

#dash-kpi-grid .cr-kpi-values {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.75rem;
}

#dash-kpi-grid .cr-kpi-values.cr-kpi-values-single {
  gap: 0;
}

#dash-kpi-grid a.cr-kpi-num {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--credaris-navy);
  text-decoration: none;
  line-height: 1.25;
}

#dash-kpi-grid a.cr-kpi-num:hover {
  color: var(--credaris-emerald);
}

#dash-kpi-grid a.cr-kpi-secondary {
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  color: rgba(43, 47, 56, 0.65) !important;
}

.cr-page-bg section#sec-129a {
  background-image: none !important;
}

/* Lead table — JS still injects .u-table-cell on rows */
.cr-leads-wrap #leadTable td.u-table-cell {
  padding: 0.55rem 0.75rem;
  vertical-align: middle;
  font-size: 0.8125rem;
}

.cr-leads-wrap #leadTable tr:nth-child(even) td.u-table-cell {
  background: rgba(248, 250, 252, 0.95);
}

.cr-leads-wrap .pagination .page-link {
  border-radius: 0.5rem;
  border-color: rgba(15, 31, 59, 0.12);
  color: var(--credaris-navy);
  font-size: 0.8125rem;
}

.cr-leads-wrap .pagination .page-link:hover {
  background: rgba(15, 92, 77, 0.1);
  border-color: rgba(15, 92, 77, 0.25);
  color: var(--credaris-emerald);
}

/* Nicepage `[data-animation-name]` no longer consumed — hide attr noise */
[data-animation-name] {
  animation: none !important;
}

/* Dashboard layout — sections, filter panels */
.cr-dash-section {
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .cr-dash-section {
    margin-bottom: 2.25rem;
  }
}

.cr-dash-section-head {
  margin-bottom: 1rem;
}

.cr-dash-section-head h2 {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--credaris-navy);
  letter-spacing: -0.02em;
  margin: 0 0 0.25rem;
}

.cr-dash-section-head p {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: rgba(43, 47, 56, 0.72);
  max-width: 52rem;
}

.cr-filter-panel {
  border-radius: 16px;
  border: 1px solid rgba(11, 31, 59, 0.1);
  background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
  box-shadow: var(--credaris-shadow-ui);
}

.cr-filter-panel__accent {
  height: 4px;
  border-radius: 16px 16px 0 0;
  background: linear-gradient(90deg, var(--credaris-emerald) 0%, rgba(15, 92, 77, 0.45) 100%);
}

.cr-filter-panel__body {
  padding: 1rem 1.125rem 1.125rem;
}

@media (min-width: 640px) {
  .cr-filter-panel__body {
    padding: 1.125rem 1.25rem 1.35rem;
  }
}

.cr-preset-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(11, 31, 59, 0.06);
}

.cr-preset-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(43, 47, 56, 0.55);
  margin-right: 0.25rem;
}

.cr-btn-preset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 9999px;
  border: 1px solid rgba(11, 31, 59, 0.12);
  background: rgba(255, 255, 255, 0.9);
  color: var(--credaris-navy);
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    color 0.15s ease;
}

.cr-btn-preset:hover {
  border-color: rgba(15, 92, 77, 0.35);
  background: rgba(15, 92, 77, 0.06);
  color: var(--credaris-emerald);
}

.cr-btn-preset:focus-visible {
  outline: 2px solid rgba(15, 92, 77, 0.45);
  outline-offset: 2px;
}

.cr-btn-preset.cr-btn-preset--ghost {
  border-style: dashed;
  color: rgba(43, 47, 56, 0.65);
}

.cr-btn-link-dash {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--credaris-emerald);
  background: none;
  border: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cr-btn-link-dash:hover {
  color: var(--credaris-navy);
}

/* ---- Date range (From / To) — compact single-row toolbar style ---- */
.cr-date-range {
  width: auto;
  max-width: min(100%, 21rem);
  flex: 0 1 auto;
}

.cr-date-range__group {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0;
  border-radius: 10px;
  border: 1px solid rgba(11, 31, 59, 0.12);
  background: #fff;
  box-shadow: 0 1px 2px rgba(11, 31, 59, 0.06);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.cr-date-range__group:focus-within {
  border-color: rgba(15, 92, 77, 0.45);
  box-shadow:
    0 0 0 2px rgba(15, 92, 77, 0.12),
    0 1px 3px rgba(11, 31, 59, 0.08);
}

.cr-date-range__segment {
  flex: 1 1 0;
  min-width: 0;
  padding: 0.35rem 0.5rem 0.4rem;
}

.cr-date-range__segment:first-child {
  padding-right: 0.35rem;
  padding-left: 0.55rem;
}

.cr-date-range__segment:last-child {
  padding-left: 0.35rem;
  padding-right: 0.55rem;
}

.cr-date-range__seg-label {
  display: block;
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(43, 47, 56, 0.45);
  margin: 0 0 0.1rem;
  line-height: 1.2;
}

.cr-date-range__input-wrap {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  min-height: 1.75rem;
}

.cr-date-range__ico {
  flex-shrink: 0;
  font-size: 0.8125rem;
  color: rgba(15, 92, 77, 0.5);
  opacity: 0.9;
}

input.cr-input-date {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  border: 0 !important;
  background: transparent !important;
  padding: 0.05rem 0 0;
  font-size: 0.875rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #0f172a;
  outline: none !important;
  box-shadow: none !important;
  color-scheme: light;
}

input.cr-input-date::-webkit-calendar-picker-indicator {
  opacity: 0.55;
  cursor: pointer;
  padding: 0.15rem;
  margin-left: 0.1rem;
}

input.cr-input-date:hover::-webkit-calendar-picker-indicator {
  opacity: 0.9;
}

.cr-date-range__divider {
  flex-shrink: 0;
  width: 1px;
  align-self: stretch;
  min-height: 2.35rem;
  margin: 0.3rem 0;
  background: rgba(11, 31, 59, 0.1);
}

@media (max-width: 380px) {
  .cr-date-range {
    max-width: 100%;
  }

  .cr-date-range__ico {
    display: none;
  }

  input.cr-input-date {
    font-size: 0.875rem;
  }
}

#dash-kpi-grid .cr-kpi-zone-heading-wrap {
  grid-column: 1 / -1;
  padding: 0.25rem 0 0.35rem;
  margin-bottom: 0.15rem;
}

#dash-kpi-grid .cr-kpi-zone-title {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(43, 47, 56, 0.55);
  margin: 0;
}

#dash-kpi-grid .cr-kpi-zone-desc {
  font-size: 0.6875rem;
  color: rgba(43, 47, 56, 0.45);
  margin: 0.15rem 0 0;
  line-height: 1.35;
}

.cr-panel-leads-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.125rem 0.75rem;
  border-bottom: 1px solid rgba(11, 31, 59, 0.06);
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.9) 0%, transparent 100%);
}

@media (min-width: 640px) {
  .cr-panel-leads-header {
    padding: 1.125rem 1.25rem 0.875rem;
  }
}

.cr-panel-leads-header h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--credaris-navy);
  margin: 0;
}

.cr-panel-leads-header p {
  margin: 0.2rem 0 0;
  font-size: 0.8125rem;
  color: rgba(43, 47, 56, 0.65);
}

.cr-radio-group-dash {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  padding: 0.6rem 0.85rem;
  border-radius: 10px;
  background: rgba(248, 250, 252, 0.85);
  border: 1px solid rgba(11, 31, 59, 0.06);
}

/* Reports hub & report tables */
.cr-report-shell {
  min-height: calc(100vh - 140px);
}

.cr-report-hub-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .cr-report-hub-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

@media (min-width: 1024px) {
  .cr-report-hub-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

a.cr-report-hub-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 1.25rem 1.35rem;
  border-radius: 16px;
  border: 1px solid rgba(11, 31, 59, 0.1);
  background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
  box-shadow: var(--credaris-shadow-ui);
  text-decoration: none;
  color: inherit;
  transition:
    transform 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

a.cr-report-hub-card:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 92, 77, 0.28);
  box-shadow: 0 12px 32px rgba(11, 31, 59, 0.1);
}

.cr-report-hub-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 12px;
  background: rgba(15, 92, 77, 0.1);
  color: var(--credaris-emerald);
  font-size: 1rem;
}

.cr-report-hub-card__title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.02em;
  color: var(--credaris-navy);
}

.cr-report-hub-card__desc {
  font-size: 0.8125rem;
  line-height: 1.45;
  color: rgba(43, 47, 56, 0.68);
}

.cr-report-hub-card__go {
  margin-top: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--credaris-emerald);
}

a.cr-report-hub-card:hover .cr-report-hub-card__go {
  color: var(--credaris-navy);
}

.cr-report-table-wrap {
  border-radius: 16px;
  border: 1px solid rgba(11, 31, 59, 0.1);
  background: #fff;
  box-shadow: var(--credaris-shadow-ui);
  overflow: hidden;
}

.cr-report-table-wrap .cr-report-table-head-bar {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(11, 31, 59, 0.06);
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.95) 0%, transparent 100%);
}

.cr-report-table {
  border-collapse: collapse;
}

.cr-report-table thead tr {
  background: var(--credaris-navy);
  color: #fff;
}

.cr-report-table th {
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.7rem 0.85rem;
  text-align: left;
  white-space: nowrap;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cr-report-table td {
  padding: 0.55rem 0.85rem;
  vertical-align: middle;
  font-size: 0.8125rem;
  color: var(--credaris-graphite);
  border-bottom: 1px solid rgba(11, 31, 59, 0.06);
}

.cr-report-table tbody tr:nth-child(even) td {
  background: rgba(248, 250, 252, 0.85);
}

.cr-report-table tbody tr:hover td {
  background: rgba(15, 92, 77, 0.04);
}

.cr-report-empty {
  padding: 2rem 1.25rem;
  text-align: center;
  font-size: 0.875rem;
  color: rgba(43, 47, 56, 0.55);
  background: rgba(248, 250, 252, 0.5);
}

/* —— Employee business report (/reports/eb) —— */
.cr-eb-report {
  max-width: 100%;
}

.cr-eb-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  font-size: 0.8125rem;
}

.cr-eb-breadcrumb__link {
  font-weight: 600;
  color: var(--credaris-emerald);
  text-decoration: none;
  transition: color 0.15s ease;
}

.cr-eb-breadcrumb__link:hover {
  color: var(--credaris-navy);
}

.cr-eb-breadcrumb__sep {
  color: rgba(43, 47, 56, 0.35);
  font-weight: 500;
}

.cr-eb-breadcrumb__here {
  color: var(--credaris-graphite);
  font-weight: 500;
}

.cr-eb-section__title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--credaris-navy);
  margin: 0 0 0.35rem;
}

.cr-eb-section__head {
  margin-bottom: 1rem;
}

.cr-eb-section__hint {
  font-size: 0.8125rem;
  line-height: 1.45;
  color: rgba(43, 47, 56, 0.62);
  margin: 0 0 1rem;
}

.cr-eb-filter-panel {
  margin-top: 0.5rem;
}

.cr-eb-pivot-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .cr-eb-pivot-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.15rem;
  }
}

.cr-eb-pivot-card {
  position: relative;
  padding: 1.15rem 1.25rem 1.25rem;
  border-radius: 14px;
  border: 1px solid rgba(11, 31, 59, 0.08);
  background: linear-gradient(165deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 4px 20px rgba(11, 31, 59, 0.06);
  overflow: hidden;
}

.cr-eb-pivot-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 14px 0 0 14px;
}

.cr-eb-pivot-card--login::before {
  background: linear-gradient(180deg, var(--credaris-emerald), rgba(15, 92, 77, 0.55));
}

.cr-eb-pivot-card--sanction::before {
  background: linear-gradient(180deg, #b45309, #d97706);
}

.cr-eb-pivot-card--disb::before {
  background: linear-gradient(180deg, var(--credaris-navy), #1e3a5f);
}

.cr-eb-pivot-card__label {
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(11, 31, 59, 0.5);
  margin: 0 0 0.6rem;
}

.cr-eb-pivot-card__amount {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--credaris-navy);
  margin: 0 0 0.35rem;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.cr-eb-pivot-card__prefix {
  font-size: 0.95rem;
  font-weight: 600;
  opacity: 0.55;
  margin-right: 0.15rem;
}

.cr-eb-pivot-card__count {
  font-size: 0.8125rem;
  color: rgba(43, 47, 56, 0.65);
  margin: 0;
  font-variant-numeric: tabular-nums;
}

.cr-eb-pivot-card__count-label {
  font-weight: 500;
  color: rgba(43, 47, 56, 0.45);
}

.cr-eb-table-wrap {
  overflow: hidden;
}

.cr-eb-table-head-bar {
  align-items: flex-start !important;
}

.cr-eb-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--credaris-navy);
  background: rgba(15, 92, 77, 0.1);
  border: 1px solid rgba(15, 92, 77, 0.18);
}

.cr-eb-table-scroll {
  overflow-x: auto;
  overflow-y: auto;
  max-height: min(70vh, 640px);
  -webkit-overflow-scrolling: touch;
}

.cr-eb-detail-table {
  min-width: 1080px;
}

.cr-eb-detail-table thead tr.cr-eb-thead-groups th {
  background: rgba(255, 255, 255, 0.14);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.5rem 0.85rem 0.45rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
}

.cr-eb-detail-table thead tr.cr-eb-thead-groups th.cr-eb-th-group:first-child {
  text-align: left;
}

.cr-eb-detail-table thead tr:last-child th {
  position: sticky;
  top: 0;
  z-index: 2;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.06);
}

.cr-eb-detail-table .cr-eb-col-index,
.cr-eb-detail-table td.cr-eb-col-index {
  width: 2.5rem;
  text-align: center;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: rgba(11, 31, 59, 0.55);
}

.cr-eb-detail-table .cr-eb-cell-date {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: rgba(43, 47, 56, 0.78);
}

.cr-eb-detail-table .cr-eb-cell-name {
  font-weight: 500;
  color: var(--credaris-navy);
  max-width: 11rem;
}

.cr-eb-detail-table .cr-eb-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.cr-eb-detail-table th.cr-eb-num {
  text-align: right;
}

.cr-eb-detail-table .cr-eb-num--muted {
  color: rgba(43, 47, 56, 0.55);
}

.cr-eb-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background: rgba(15, 92, 77, 0.1);
  color: var(--credaris-emerald);
  border: 1px solid rgba(15, 92, 77, 0.15);
}

.cr-eb-chip--empty {
  background: rgba(248, 250, 252, 0.9);
  color: rgba(43, 47, 56, 0.35);
  border-color: rgba(11, 31, 59, 0.06);
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}

.cr-eb-empty {
  border-top: 1px solid rgba(11, 31, 59, 0.06);
}

@media (max-width: 767px) {
  .cr-eb-table-scroll {
    max-height: none;
  }
}

/* Login form legacy wrappers */
.wrap-login100,
.wrap-login99 {
  max-width: 26rem;
  margin: 0 auto;
}

.container-login100 {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 140px);
  padding: 2rem 1rem;
}

/* —— Premium app shell (dashboard) —— */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

body.cr-app-html {
  margin: 0;
  min-height: 100vh;
}

.cr-app-shell {
  display: flex;
  min-height: 100vh;
  align-items: stretch;
}

.cr-app-sidebar {
  width: 15.75rem;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: linear-gradient(180deg, #0b1f3b 0%, #0a1a34 52%, #0d2244 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 4px 0 40px rgba(11, 31, 59, 0.12);
  z-index: 50;
}

.cr-app-sidebar__brand {
  padding: 1.25rem 1.1rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.cr-app-sidebar__logo-link {
  display: inline-flex;
  align-items: center;
}

.cr-app-sidebar__logo-img {
  max-width: 9.5rem;
  height: auto;
}

.cr-app-sidebar__label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin: 1rem 0.85rem 0.5rem;
}

.cr-app-sidebar__label--mt {
  margin-top: 1.75rem;
}

.cr-app-sidebar__nav {
  flex: 1;
  overflow-y: auto;
  padding: 0 0.5rem 1rem;
}

.cr-sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.75rem;
  margin-bottom: 0.2rem;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease;
}

.cr-sidebar-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.cr-sidebar-link--active {
  color: #fff;
  background: rgba(15, 92, 77, 0.35);
  box-shadow:
    0 0 0 1px rgba(200, 160, 68, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.cr-sidebar-link__ico,
.cr-sidebar-link .lucide {
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
  stroke-width: 1.75px;
  opacity: 0.92;
}

.cr-sidebar-link--muted {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.8125rem;
}

.cr-app-sidebar__footer {
  padding: 0.75rem 0.5rem 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.cr-app-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: linear-gradient(160deg, #f4f6fa 0%, #e8ecf4 50%, #eef2f7 100%);
}

.cr-app-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  padding: 0.4rem 0.85rem 0.4rem 0.65rem;
  padding-left: max(0.65rem, env(safe-area-inset-left, 0px));
  padding-right: max(0.85rem, env(safe-area-inset-right, 0px));
  min-height: 2.75rem;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(11, 31, 59, 0.07);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
  position: sticky;
  top: 0;
  z-index: 40;
}

/* Menu + wordmark: visible on small screens while sidebar is off-canvas */
.cr-app-topbar__leading {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.cr-app-topbar__logo {
  display: none;
  align-items: center;
  line-height: 0;
  text-decoration: none;
}

.cr-app-topbar__logo:focus-visible {
  outline: 2px solid var(--credaris-emerald);
  outline-offset: 2px;
  border-radius: 8px;
}

.cr-app-topbar__logo-img {
  height: 1.5rem;
  width: auto;
  max-width: 7.25rem;
  object-fit: contain;
  object-position: left center;
}

.cr-app-sidebar-toggle {
  display: none;
  align-items: center;
  justify-content: center;
}

@media (max-width: 1023px) {
  .cr-app-topbar__logo {
    display: inline-flex;
  }

  .cr-app-sidebar-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.125rem;
    height: 2.125rem;
    margin-right: 0;
    border-radius: 10px;
    border: 1px solid rgba(11, 31, 59, 0.1);
    background: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    color: var(--credaris-navy);
  }

  .cr-app-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    transform: translateX(-103%);
    transition: transform 0.22s ease;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    padding-left: env(safe-area-inset-left, 0px);
  }

  body.cr-sidebar-open .cr-app-sidebar {
    transform: translateX(0);
  }

  .cr-app-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(11, 31, 59, 0.45);
    z-index: 45;
    backdrop-filter: blur(2px);
  }

  body.cr-sidebar-open .cr-app-sidebar-overlay {
    display: block;
  }

  body.cr-sidebar-open .cr-app-main {
    overflow: hidden;
  }

  .cr-app-topbar__titles {
    flex: 1 1 6rem;
    min-width: 0;
  }

  .cr-app-topbar__title {
    font-size: 0.98rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .cr-app-topbar__search {
    flex: 1 1 100%;
    order: 8;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
  }

  .cr-app-topbar__actions {
    flex: 0 0 auto;
    margin-left: auto;
  }
}

@media (max-width: 479px) {
  .cr-app-topbar__subline {
    display: none;
  }
}

.cr-app-topbar__titles {
  min-width: 0;
  flex: 0 1 auto;
}

.cr-app-topbar__title {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--credaris-navy);
  margin: 0;
  line-height: 1.2;
}

.cr-app-topbar__subline {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 400;
  color: rgba(43, 47, 56, 0.55);
  line-height: 1.35;
  margin: 0.15rem 0 0;
}

.cr-app-topbar__icon-btn--link {
  text-decoration: none;
  color: inherit;
}

.cr-app-topbar__search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  min-width: 10rem;
  max-width: 26rem;
  margin-left: auto;
  margin-right: auto;
  padding: 0.28rem 0.65rem;
  border-radius: 10px;
  border: 1px solid rgba(11, 31, 59, 0.08);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 8px rgba(11, 31, 59, 0.04);
}

.cr-app-topbar__search .lucide,
.cr-app-topbar__search-ico {
  width: 1rem;
  height: 1rem;
  opacity: 0.45;
  flex-shrink: 0;
  color: var(--credaris-graphite);
}

.cr-app-topbar__search-input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font-size: 0.75rem;
  line-height: 1.35;
  outline: none;
  color: var(--credaris-graphite);
}

.cr-app-topbar__search-input::placeholder {
  color: rgba(43, 47, 56, 0.38);
}

.cr-app-topbar__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
}

.cr-app-topbar__icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 12px;
  border: 1px solid rgba(11, 31, 59, 0.08);
  background: rgba(255, 255, 255, 0.95);
  cursor: pointer;
  color: var(--credaris-navy);
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.12s ease;
}

.cr-app-topbar__icon-btn:hover {
  border-color: rgba(15, 92, 77, 0.35);
  box-shadow: 0 4px 14px rgba(11, 31, 59, 0.08);
}

.cr-app-topbar__icon-btn--danger {
  border-color: rgba(200, 160, 68, 0.35);
  background: rgba(11, 31, 59, 0.04);
}

.cr-app-topbar__lucide,
.cr-app-topbar__icon-btn .lucide {
  width: 1rem;
  height: 1rem;
  stroke-width: 1.75px;
}

.cr-app-scroll {
  flex: 1;
  overflow-x: hidden;
  overflow-y: auto;
}

.cr-app-inner {
  max-width: 1680px;
  margin: 0 auto;
  padding: 1.5rem 1rem 2.5rem;
}

@media (min-width: 640px) {
  .cr-app-inner {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}

/* Hero metrics strip */
.cr-dash-hero-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

@media (min-width: 1024px) {
  .cr-dash-hero-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.cr-hero-metric {
  border-radius: 14px;
  padding: 1.1rem 1.2rem;
  border: 1px solid rgba(11, 31, 59, 0.08);
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: var(--credaris-shadow-ui);
  min-height: 6.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.cr-hero-metric__value--dual {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem;
}

.cr-hero-metric__unit {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(43, 47, 56, 0.45);
  font-family: var(--font-body, 'Inter', system-ui, sans-serif);
}

.cr-hero-metric__amount {
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--credaris-emerald, #0f5c4d);
  margin-top: 0.25rem;
  line-height: 1.25;
}

.cr-hero-metric:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(11, 31, 59, 0.08);
}

.cr-hero-metric__label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(43, 47, 56, 0.5);
  margin-bottom: 0.35rem;
}

.cr-hero-metric__value {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--credaris-navy);
  line-height: 1.2;
}

.cr-hero-metric__hint {
  font-size: 0.75rem;
  color: rgba(43, 47, 56, 0.45);
  margin-top: 0.35rem;
}

/* Chart cards */
.cr-dash-charts {
  margin-bottom: 0.5rem;
}

.cr-chart-card {
  border-radius: 16px;
  padding: 1.15rem 1.2rem 1rem;
  border: 1px solid rgba(11, 31, 59, 0.08);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--credaris-shadow-ui);
}

.cr-chart-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.cr-chart-card__title {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--credaris-navy);
  margin: 0;
}

.cr-chart-card__note {
  font-size: 0.6875rem;
  color: rgba(43, 47, 56, 0.45);
}

.cr-chart-card canvas {
  max-height: 220px;
}

.cr-chart-bar canvas {
  max-height: 240px;
}

/* Recent activity */
.cr-activity-card {
  border-radius: 16px;
  border: 1px solid rgba(11, 31, 59, 0.08);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--credaris-shadow-ui);
  overflow: hidden;
}

.cr-activity-card__head {
  padding: 1rem 1.15rem;
  border-bottom: 1px solid rgba(11, 31, 59, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.cr-activity-card__head h3 {
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--credaris-navy);
  margin: 0;
}

.cr-activity-card__head p {
  font-size: 0.75rem;
  color: rgba(43, 47, 56, 0.5);
  margin: 0.2rem 0 0;
}

.cr-activity-table {
  width: 100%;
  font-size: 0.8125rem;
}

.cr-activity-table th,
.cr-activity-table td {
  padding: 0.65rem 1.15rem;
  text-align: left;
  border-bottom: 1px solid rgba(11, 31, 59, 0.05);
}

.cr-activity-table th {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(43, 47, 56, 0.45);
  background: rgba(248, 250, 252, 0.9);
}

.cr-activity-empty {
  padding: 2rem 1.25rem;
  text-align: center;
  font-size: 0.8125rem;
  color: rgba(43, 47, 56, 0.45);
}

/* —— Dashboard: lead pipeline table (rows injected via JS) —— */
.cr-panel-leads-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid rgba(11, 31, 59, 0.06);
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.98) 0%, #fff 100%);
}

.cr-panel-leads-header h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--credaris-navy);
  margin: 0;
  letter-spacing: -0.01em;
}

.cr-panel-leads-header p {
  font-size: 0.75rem;
  color: rgba(43, 47, 56, 0.52);
  margin: 0.25rem 0 0;
  max-width: 36rem;
  line-height: 1.45;
}

.cr-leads-table {
  border-collapse: separate;
  border-spacing: 0;
}

.cr-leads-table tbody tr.cr-lead-row {
  transition: background-color 0.14s ease;
}

.cr-leads-table tbody tr.cr-lead-row:nth-child(even) {
  background-color: rgba(248, 250, 252, 0.45);
}

.cr-leads-table tbody tr.cr-lead-row:hover {
  background-color: rgba(15, 92, 77, 0.06);
}

.cr-leads-table tbody td.cr-lead-cell {
  padding: 0.7rem 0.85rem;
  vertical-align: middle;
  border-bottom: 1px solid rgba(11, 31, 59, 0.06);
  font-size: 0.8125rem;
  color: rgba(43, 47, 56, 0.88);
  max-width: 14rem;
}

.cr-lead-cell--muted {
  color: rgba(43, 47, 56, 0.45) !important;
  font-variant-numeric: tabular-nums;
  width: 3rem;
}

.cr-lead-cell--nowrap {
  white-space: nowrap;
  color: rgba(43, 47, 56, 0.62) !important;
}

.cr-lead-cell--name {
  font-weight: 600;
  color: var(--credaris-navy) !important;
}

.cr-lead-cell--mono {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.cr-lead-amount {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--credaris-navy) !important;
  white-space: nowrap;
}

.cr-lead-id-link {
  font-weight: 600;
  color: var(--credaris-emerald);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.cr-lead-id-link:hover {
  color: var(--credaris-navy);
  border-bottom-color: rgba(11, 31, 59, 0.25);
}

.cr-lead-status {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  padding: 0.2rem 0.6rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.2;
}

.cr-lead-status--disbursal {
  background: rgba(15, 92, 77, 0.14);
  color: #0a3d32;
}

.cr-lead-status--sanction {
  background: rgba(59, 130, 246, 0.14);
  color: #1e40af;
}

.cr-lead-status--login {
  background: rgba(217, 119, 6, 0.14);
  color: #92400e;
}

.cr-lead-status--lead,
.cr-lead-status--prospect {
  background: rgba(100, 116, 139, 0.12);
  color: #475569;
}

.cr-lead-status--reject {
  background: rgba(220, 38, 38, 0.12);
  color: #991b1b;
}

.cr-lead-status--dip {
  background: rgba(124, 58, 237, 0.12);
  color: #5b21b6;
}

.cr-lead-status--default {
  background: rgba(11, 31, 59, 0.08);
  color: var(--credaris-navy);
}

.cr-lead-verified {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 500;
}

.cr-lead-verified i {
  font-size: 0.85rem;
  opacity: 0.9;
}

.cr-lead-verified--yes {
  color: #0f5c4d;
}

.cr-lead-verified--no {
  color: #b45309;
}

.cr-lead-cell--actions {
  width: 3.25rem;
  text-align: center;
}

.cr-lead-delete {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: none;
  border-radius: 0.5rem;
  background: transparent;
  color: rgba(220, 38, 38, 0.85);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.cr-lead-delete:hover {
  background: rgba(220, 38, 38, 0.08);
  color: rgb(185, 28, 28);
}

.cr-lead-delete:focus-visible {
  outline: 2px solid rgba(200, 160, 68, 0.5);
  outline-offset: 2px;
}

.cr-lead-empty td {
  padding: 3rem 1.5rem !important;
  text-align: center;
  font-size: 0.875rem;
  color: rgba(43, 47, 56, 0.5);
  border-bottom: none !important;
}

.cr-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.cr-pagination__item {
  margin: 0;
}

.cr-pagination__btn {
  min-width: 2.25rem;
  padding: 0.35rem 0.65rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--credaris-navy);
  background: #fff;
  border: 1px solid rgba(11, 31, 59, 0.12);
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.cr-pagination__btn:hover {
  background: rgba(15, 92, 77, 0.08);
  border-color: rgba(15, 92, 77, 0.25);
  color: var(--credaris-emerald);
}

.cr-pagination__btn.is-active {
  background: var(--credaris-navy);
  border-color: var(--credaris-navy);
  color: #fff;
}

/* —— Lead / customer form (newlead.jsp) —— */
.cr-lead-form {
  font-size: 0.8125rem;
  max-width: min(76rem, 100%);
  margin-left: auto;
  margin-right: auto;
}

.cr-lead-form .container {
  max-width: 100%;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

@media (min-width: 768px) {
  .cr-lead-form .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

.cr-lead-form .form-group {
  margin-bottom: 1rem !important;
}

.cr-lead-form label,
.cr-lead-form .cr-lead-form__label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 0.35rem;
}

.cr-lead-form .custom-radio .custom-control-label,
.cr-lead-form .custom-checkbox .custom-control-label {
  font-size: 0.8125rem !important;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: #334155;
}

.cr-lead-form .form-control,
.cr-lead-form select.form-control {
  border-radius: 0.5rem;
  border: 1px solid #cbd5e1;
  padding: 0.45rem 0.75rem;
  font-size: 0.8125rem;
  min-height: 2.375rem;
  line-height: 1.4;
  box-shadow: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.cr-lead-form .form-control:focus {
  border-color: #0f5c4d;
  box-shadow: 0 0 0 3px rgba(15, 92, 77, 0.15);
}

.cr-lead-form .form-control[readonly],
.cr-lead-form input[type="date"][readonly] {
  background-color: #f8fafc !important;
  color: #475569;
  cursor: default;
}

.cr-lead-form textarea.form-control {
  min-height: 4rem;
  padding: 0.5rem 0.75rem;
}

.cr-lead-form-section-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 1.75rem 0 0.75rem;
  padding: 0.65rem 0.9rem;
  background: linear-gradient(105deg, rgba(15, 92, 77, 0.08) 0%, rgba(11, 31, 59, 0.05) 100%);
  border-radius: 0.5rem;
  border: 1px solid rgba(11, 31, 59, 0.07);
}

.cr-lead-form-section-head:first-child {
  margin-top: 0;
}

.cr-lead-form-section-head__bar {
  width: 4px;
  height: 1.1rem;
  border-radius: 2px;
  background: linear-gradient(180deg, #0f5c4d, #0b1f3b);
  flex-shrink: 0;
}

.cr-lead-form-section-head__text {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0b1f3b;
}

.cr-lead-form__radio-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1.5rem;
  padding: 0.25rem 0;
}

.cr-lead-form .custom-control.custom-radio {
  padding-left: 1.5rem;
  margin-bottom: 0;
  min-height: 1.25rem;
}

.cr-lead-form .custom-control-input:focus ~ .custom-control-label::before {
  box-shadow: 0 0 0 2px rgba(15, 92, 77, 0.28);
}

.cr-lead-form__stack > label:first-of-type {
  margin-top: 0;
}

.cr-lead-form__stack > label:not(:first-of-type) {
  margin-top: 0.85rem;
}

.cr-lead-form__file {
  display: block;
  width: 100%;
  font-size: 0.75rem;
  padding: 0.45rem 0.6rem;
  border-radius: 0.5rem;
  border: 1px dashed #94a3b8;
  background: #f8fafc;
  cursor: pointer;
}

.cr-lead-form__file::file-selector-button {
  margin-right: 0.65rem;
  padding: 0.35rem 0.75rem;
  border-radius: 0.375rem;
  border: none;
  background: #0b1f3b;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
}

.cr-lead-form__file::-webkit-file-upload-button {
  margin-right: 0.65rem;
  padding: 0.35rem 0.75rem;
  border-radius: 0.375rem;
  border: none;
  background: #0b1f3b;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
}

.cr-lead-form .cr-bank-inline .form-control {
  min-width: 0;
}

.cr-lead-form #lenderper {
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--credaris-navy);
}

.cr-lead-form #bankcode {
  border-radius: 0.5rem;
  padding: 0.45rem 0.6rem;
  font-size: 0.8125rem;
  font-weight: 600;
  max-width: 6rem;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
}

.cr-lead-payout-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid rgba(11, 31, 59, 0.1);
  font-size: 0.75rem;
  margin-bottom: 0.75rem;
}

.cr-lead-payout-table th {
  background: #0b1f3b;
  color: #fff;
  font-weight: 600;
  padding: 0.5rem 0.65rem;
  text-align: left;
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cr-lead-payout-table td {
  padding: 0.4rem;
  background: #fff;
  vertical-align: middle;
}

.cr-lead-payout-table input {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 0.375rem;
  padding: 0.4rem 0.5rem;
  font-size: 0.8125rem;
  background: #fff;
}

.cr-lead-form .btn-lead-submit {
  background: linear-gradient(180deg, #127a63 0%, #0f5c4d 100%);
  border: none;
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.55rem 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 2px 6px rgba(11, 31, 59, 0.12);
  transition: filter 0.15s ease, transform 0.05s ease;
}

.cr-lead-form .btn-lead-submit:hover {
  filter: brightness(1.06);
  color: #fff;
}

.cr-lead-form .btn-lead-submit:active {
  transform: translateY(1px);
}

.cr-lead-form .lead-submit-bar {
  padding-top: 1.25rem;
  margin-top: 1rem;
  border-top: 1px solid #e2e8f0;
}

.cr-lead-form .form-group small {
  display: inline-block;
  margin-top: 0.35rem;
}

.cr-lead-form .form-group small a {
  color: var(--credaris-emerald);
  font-weight: 600;
}

.cr-lead-form .table-responsive-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.cr-lead-history {
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.8125rem;
}

.cr-lead-history thead th {
  background: #0b1f3b;
  color: #fff;
  font-weight: 600;
  padding: 0.6rem 0.5rem;
  text-align: left;
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.cr-lead-history tbody tr:nth-child(even) {
  background: rgba(248, 250, 252, 0.7);
}

.cr-lead-history tbody td {
  padding: 0.55rem 0.5rem;
  border-bottom: 1px solid rgba(11, 31, 59, 0.06);
  color: #334155;
}
