/* ProClub brand theme on top of Bootstrap 5.3 */
:root {
  --brand-primary: #bc004b;
  --brand-primary-dark: #8d0038;
  --brand-primary-light: #ffd9de;
  --bs-primary: #bc004b;
  --bs-primary-rgb: 188, 0, 75;
  --bs-link-color: #bc004b;
  --bs-link-hover-color: #8d0038;
}

body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
}

/* Cards containing flush lists keep rounded corners + inner border separation */
.card .list-group-flush {
  border-radius: inherit;
  overflow: hidden;
}

.card > .list-group-flush > .list-group-item:last-child {
  border-bottom: 0;
}

/* Primary color overrides */
.btn-primary {
  --bs-btn-bg: #bc004b;
  --bs-btn-border-color: #bc004b;
  --bs-btn-hover-bg: #a30040;
  --bs-btn-hover-border-color: #a30040;
  --bs-btn-active-bg: #8d0038;
  --bs-btn-active-border-color: #8d0038;
  --bs-btn-disabled-bg: #bc004b;
  --bs-btn-disabled-border-color: #bc004b;
}

.btn-outline-primary {
  --bs-btn-color: #bc004b;
  --bs-btn-border-color: #bc004b;
  --bs-btn-hover-bg: #bc004b;
  --bs-btn-hover-border-color: #bc004b;
  --bs-btn-active-bg: #bc004b;
  --bs-btn-active-border-color: #bc004b;
}

.btn-link {
  --bs-btn-color: #bc004b;
  --bs-btn-hover-color: #a30040;
  --bs-btn-active-color: #8d0038;
}

.text-primary {
  color: rgb(var(--bs-primary-rgb)) !important;
}

.bg-primary {
  background-color: rgb(var(--bs-primary-rgb)) !important;
}

.bg-gradient-primary {
  background: linear-gradient(120deg, #8d0038 0%, #bc004b 55%, #d81b60 100%);
}

.navbar.bg-gradient-primary {
  --bs-navbar-color: rgba(255, 255, 255, 0.85);
  --bs-navbar-hover-color: #ffffff;
  --bs-navbar-active-color: #ffffff;
  --bs-navbar-brand-color: #ffffff;
  --bs-navbar-brand-hover-color: #ffffff;
  --bs-navbar-toggler-border-color: rgba(255, 255, 255, 0.35);
}

.form-control:focus,
.form-select:focus {
  border-color: #e05c86;
  box-shadow: 0 0 0 0.25rem rgba(188, 0, 75, 0.15);
}

.link-primary {
  color: rgb(var(--bs-primary-rgb)) !important;
}

/* Elegant modern card polish */
.card {
  border: 0;
  border-radius: 1rem;
  box-shadow:
    0 1px 2px rgba(16, 24, 40, 0.06),
    0 1px 3px rgba(16, 24, 40, 0.1);
}

.btn {
  border-radius: 0.625rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-align: center;
  white-space: nowrap;
}

.btn span,
.btn .btn-icon,
.btn i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Iconite (iconify) picks intrinsic size from width/height attrs */
.iconify-icon {
  vertical-align: text-bottom;
  flex-shrink: 0;
}

.badge i,
.badge iconify-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-round,
.btn.rounded-circle {
  border-radius: 50%;
}

.chip,
.badge-brand {
  display: inline-flex;
  align-items: center;
  border-radius: 50rem;
  padding: 0.25rem 0.75rem;
}

/* Dialog / modal primitive (replaces BeerCSS dialog) */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 1050;
  background: rgba(0, 0, 0, 0.45);
  display: none;
}

.overlay.active {
  display: block;
}

.modal-frame {
  display: none;
  position: fixed;
  inset: 0;
  margin: auto;
  z-index: 1055;
  height: fit-content;
  max-height: 90vh;
  overflow: auto;
  background: #ffffff;
  border: 0;
  border-radius: 1rem;
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.35);
  padding: 1.25rem;
}

.modal-frame.active {
  display: block;
}

.large-width {
  width: min(720px, 92vw);
}

.standard-width {
  width: min(560px, 92vw);
}

.small-width {
  width: min(420px, 92vw);
}

/* Snackbar-style flash (replaces BeerCSS snackbar) */
.snackbar {
  position: fixed;
  z-index: 1080;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 280px;
  max-width: min(90vw, 560px);
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  color: #fff;
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.25);
}

.snackbar.active {
  display: flex;
}

.snackbar.top {
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
}

.snackbar.error,
.snackbar.info-error {
  background-color: var(--bs-danger);
}

.snackbar.info {
  background-color: var(--brand-primary);
}

.snackbar.inverse-link {
  color: #fff;
  cursor: pointer;
}

/* Ephemeral compatibility shims for legacy BeerCSS class names */
.s {
  display: none;
}

.fs-7 {
  font-size: 0.855rem;
}

.fs-8 {
  font-size: 0.8rem;
}

.form-label {
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--bs-secondary-color);
  margin-bottom: 0.25rem;
}

.hidden,
[hidden] {
  display: none !important;
}

.lead-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.lead-kicker {
  margin: 0 0 0.15rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bs-secondary-color);
}

.lead-title {
  margin: 0;
  font-size: 1.65rem;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.lead-title-meta {
  font-weight: 500;
  color: var(--bs-secondary-color);
  font-size: 1rem;
}

.lead-subtitle {
  margin: 0.35rem 0 0;
  color: var(--bs-secondary-color);
}

.lead-pill {
  background: var(--bs-tertiary-bg);
  color: var(--bs-body-color);
  border: 1px solid var(--bs-border-color);
  font-weight: 600;
}

main.lead-canvas,
main.crm-canvas {
  background: #f3f5f8;
  max-width: none;
  width: 100%;
}

.lead-panel,
.lead-fold-card,
.lead-thread {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 1rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.lead-panel > .card-body,
.lead-thread > .card-body {
  padding: 1.15rem 1.25rem 1.25rem;
}

.lead-section-title {
  margin: 0 0 0.9rem;
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.lead-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.95rem 1.5rem;
  margin: 0;
}

.lead-fact.is-wide {
  grid-column: 1 / -1;
}

.lead-fact-label,
.lead-people-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--bs-secondary-color);
}

.lead-fact-value {
  margin-top: 0.15rem;
  font-weight: 600;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.lead-materials {
  display: flex;
  flex-direction: column;
}

.lead-material {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-top: 1px solid var(--bs-border-color);
}

.lead-material-qty {
  font-variant-numeric: tabular-nums;
  font-weight: 650;
}

.lead-material-totals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--bs-border-color);
}

.lead-people {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem 1.5rem;
}

.lead-people-label {
  margin-bottom: 0.55rem;
}

.lead-person + .lead-person {
  margin-top: 0.75rem;
}

.lead-person-role {
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bs-primary);
}

.lead-person-name {
  font-weight: 650;
}

.lead-person-meta {
  color: var(--bs-secondary-color);
  font-size: 0.84rem;
  overflow-wrap: anywhere;
}

.lead-fold > summary {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  list-style: none;
  cursor: pointer;
  padding: 0.95rem 1.15rem;
}

.lead-fold > summary::-webkit-details-marker {
  display: none;
}

.lead-fold > summary::marker {
  content: "";
}

.lead-fold > summary::after {
  content: "";
  flex: none;
  width: 0.45rem;
  height: 0.45rem;
  margin-left: 0.15rem;
  border-right: 2px solid var(--bs-secondary-color);
  border-bottom: 2px solid var(--bs-secondary-color);
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.16s ease;
}

.lead-fold[open] > summary::after {
  transform: translateY(2px) rotate(-135deg);
}

.lead-fold-label {
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.lead-fold-value {
  margin-left: auto;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.lead-fold-value.is-empty {
  color: var(--bs-secondary-color);
  font-weight: 500;
}

.lead-fold-body {
  padding: 0.9rem 1.15rem 1.1rem;
  border-top: 1px solid var(--bs-border-color);
}

.lead-emd-meta {
  margin: 0 0 0.75rem;
  color: var(--bs-secondary-color);
  font-size: 0.84rem;
}

.lead-thread-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-height: 22rem;
  overflow-y: auto;
}

.lead-note {
  padding: 0.7rem 0.8rem;
  border-radius: 0.8rem;
  background: var(--bs-tertiary-bg);
}

.lead-note-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: var(--bs-secondary-color);
}

.lead-note-author {
  font-weight: 650;
  color: var(--bs-body-color);
}

.lead-note p {
  margin: 0.25rem 0 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.lead-composer {
  margin-top: 0.9rem;
}

.lead-composer-form {
  display: flex;
  align-items: flex-end;
  gap: 0.45rem;
  padding: 0.35rem 0.35rem 0.35rem 0.9rem;
  border: 1px solid var(--bs-border-color);
  border-radius: 1.25rem;
  background: var(--bs-body-bg);
}

.lead-composer-form:focus-within {
  border-color: var(--bs-primary);
  box-shadow: 0 0 0 3px rgba(var(--bs-primary-rgb), 0.16);
}

.lead-composer-input {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  border: 0;
  resize: none;
  background: transparent;
  box-shadow: none;
  outline: none;
  padding: 0.45rem 0;
  margin: 0;
  line-height: 1.45;
  min-height: calc(1.45em + 0.9rem);
  max-height: 140px;
  overflow-y: auto;
  field-sizing: content;
}

.lead-composer-input:focus {
  outline: none;
  box-shadow: none;
}

.lead-composer-form:has(.lead-composer-attach) {
  padding-left: 0.35rem;
}

.lead-composer-attach {
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  background: #f3f5f8;
  color: #526074;
  padding: 0;
  line-height: 0;
  cursor: pointer;
}

.lead-composer-attach i {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  width: 24px;
  height: 24px;
}

.lead-composer-attach:hover {
  background: #e7ebf1;
  color: var(--bs-primary);
}

.lead-composer-send {
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  background: var(--bs-primary);
  color: #fff;
  padding: 0;
  line-height: 0;
}

.lead-composer-send i {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  width: 24px;
  height: 24px;
}

.lead-composer-send iconify-icon {
  display: block;
}

.lead-composer-send:hover {
  filter: brightness(0.95);
}

.lead-status-form,
.lead-status-won,
.lead-mat-rows {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.lead-mat-block {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.lead-mat-title {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--bs-secondary-color);
}

.lead-mat-head,
.lead-mat-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 0.6rem;
  align-items: start;
}

.lead-mat-head {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--bs-secondary-color);
}

.lead-mat-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
}

.lead-mat-actions > :first-child:not(:last-child) {
  margin-right: auto;
}

.supply-filters {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 1rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  margin-bottom: 1rem;
}

.supply-filters > .card-body {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1rem 1.15rem;
}

.supply-filters-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: 0.75rem 0.85rem;
  align-items: end;
}

.supply-filters-tools {
  display: flex;
  align-items: end;
  gap: 0.75rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--bs-border-color);
}

.supply-filters-tools form {
  flex: 1;
  min-width: 0;
}

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

.lead-columns .form-check {
  margin: 0;
  min-width: 0;
}

.supply-table-card {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 1rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  overflow: hidden;
}

.supply-table-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
}

.supply-table-scroll table {
  width: max-content;
  min-width: 100%;
  margin-bottom: 0;
  font-size: 0.75rem;
  line-height: 1.35;
}

.supply-table-scroll > table > :not(caption) > * > * {
  padding: 0.45rem 0.7rem;
}

.supply-table-scroll th,
.supply-table-scroll td {
  white-space: nowrap;
  vertical-align: middle;
}

.supply-table-scroll thead th {
  position: sticky;
  top: 0;
  background: #f7f8fa;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bs-secondary-color);
}

.supply-table-scroll th:first-child,
.supply-table-scroll td:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  background: #fff;
}

.supply-table-scroll thead th:first-child {
  z-index: 3;
  background: #f7f8fa;
}

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

.supply-icon-btn {
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 999px;
  background: #fff;
  color: var(--bs-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  flex: none;
  text-decoration: none;
}

.supply-icon-btn:hover {
  background: var(--bs-primary);
  border-color: var(--bs-primary);
  color: #fff;
}

.supply-icon-btn i,
.supply-icon-btn iconify-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  line-height: 0;
}

.supply-dialog {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.supply-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.supply-dialog-title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.supply-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem 1rem;
  margin: 0;
}

.supply-facts .is-wide {
  grid-column: 1 / -1;
}

.supply-facts dt {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--bs-secondary-color);
}

.supply-facts dd {
  margin: 0.1rem 0 0;
  font-weight: 600;
}

.supply-choice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.supply-choice-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 2.5rem;
  margin: 0;
  border: 1px solid var(--bs-border-color);
  border-radius: 0.7rem;
  background: #fff;
  cursor: pointer;
  font-weight: 600;
}

.supply-choice-btn.is-on {
  border-color: var(--bs-primary);
  background: rgba(var(--bs-primary-rgb), 0.08);
  color: var(--bs-primary);
}

.supply-table-foot {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--bs-border-color);
  color: var(--bs-secondary-color);
  font-size: 0.875rem;
}

@media (max-width: 991.98px) {
  .supply-filters-grid,
  .lead-columns {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 575.98px) {
  .supply-filters-grid,
  .supply-filters-tools {
    grid-template-columns: 1fr;
    display: grid;
  }
}

@media (max-width: 767.98px) {
  .lead-facts,
  .lead-people,
  .lead-material-totals {
    grid-template-columns: 1fr;
  }

  .lead-page-head {
    flex-direction: column;
  }
}

.smu-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.smu-eyebrow {
  margin: 0 0 0.3rem;
  color: var(--bs-primary);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.smu-title {
  margin: 0;
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.smu-subtitle {
  margin: 0.35rem 0 0;
  color: var(--bs-secondary-color);
  font-size: 0.85rem;
}

.smu-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.smu-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.4rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 0.7rem;
  background: #fff;
  color: #4e586b;
  font-size: 0.8rem;
  font-weight: 650;
  text-decoration: none;
}

.smu-btn:hover {
  color: var(--bs-primary);
  border-color: rgba(188, 0, 75, 0.35);
}

.smu-btn-primary {
  color: #fff;
  border-color: var(--bs-primary);
  background: var(--bs-primary);
}

.smu-btn-primary:hover {
  color: #fff;
  background: var(--brand-primary-dark);
  border-color: var(--brand-primary-dark);
}

.smu-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.smu-stat {
  position: relative;
  overflow: hidden;
  padding: 1.05rem 1.1rem;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.smu-stat-label {
  color: var(--bs-secondary-color);
  font-size: 0.72rem;
  font-weight: 650;
}

.smu-stat-value {
  margin-top: 0.25rem;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.prf-hint {
  margin-top: 0.2rem;
  color: var(--bs-secondary-color);
  font-size: 0.72rem;
}

.prf-report {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 220px) auto;
  gap: 0.75rem;
  align-items: end;
  margin-top: 0.85rem;
}

.smu-stat-icon {
  position: absolute;
  top: 0.95rem;
  right: 0.95rem;
  display: grid;
  width: 2.3rem;
  height: 2.3rem;
  place-items: center;
  border-radius: 0.7rem;
  color: var(--stat-color);
  background: var(--stat-soft);
}

.smu-brand { --stat-color: #bc004b; --stat-soft: #ffd9de; }
.smu-green { --stat-color: #188760; --stat-soft: #e4f5ed; }
.smu-amber { --stat-color: #bd7412; --stat-soft: #fff1d7; }
.smu-cyan { --stat-color: #128995; --stat-soft: #dff4f6; }

.smu-panel {
  margin-top: 1.15rem;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.smu-filter {
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--bs-border-color);
}

.smu-filter-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.7fr) repeat(3, minmax(0, 1fr)) auto;
  gap: 0.65rem;
  align-items: center;
}

.smu-search {
  position: relative;
}

.smu-search iconify-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  color: #9299a8;
  transform: translateY(-50%);
  pointer-events: none;
}

.smu .form-control,
.smu .form-select {
  min-height: 2.6rem;
  border-radius: 0.65rem;
  font-size: 0.8rem;
}

.smu-search .form-control {
  padding-left: 2.4rem;
}

.smu-apply {
  grid-column: 5;
  grid-row: 1;
  min-height: 2.6rem;
  padding: 0 1rem;
  border: 0;
  border-radius: 0.65rem;
  background: var(--bs-primary);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 650;
}

.smu-apply:hover {
  background: var(--brand-primary-dark);
}

.smu-table-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
}

.smu-table {
  width: max-content;
  min-width: 100%;
  margin: 0;
}

.smu-table thead th {
  padding: 0.75rem 1rem;
  border: 0;
  background: #f7f8fa;
  color: var(--bs-secondary-color);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.smu-table tbody td {
  padding: 0.85rem 1rem;
  border-color: #eef0f4;
  color: #616a7c;
  font-size: 0.75rem;
  white-space: nowrap;
  vertical-align: middle;
}

.smu-table tbody tr:hover td {
  background: #fbfbfd;
}

.smu-client {
  display: block;
  max-width: 270px;
  overflow: hidden;
  color: #293348;
  font-size: 0.82rem;
  font-weight: 700;
  text-overflow: ellipsis;
  text-decoration: none;
}

.smu-client:hover {
  color: var(--bs-primary);
}

.smu-event-id {
  margin-top: 0.15rem;
  color: #9aa1af;
  font-size: 0.68rem;
}

.smu-person {
  color: #465064;
  font-weight: 650;
}

.smu-type {
  display: inline-flex;
  padding: 0.3rem 0.5rem;
  border-radius: 0.45rem;
  background: #f0f2f6;
  color: #526074;
  font-size: 0.68rem;
  font-weight: 700;
}

.smu-approval {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: capitalize;
}

.smu .smi-approved { color: #16815b; }
.smu .smi-pending { color: #b46d10; }
.smu .smi-rejected { color: #b33b52; }

.smu-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: capitalize;
  white-space: nowrap;
}

.smu-status::before {
  content: "";
  width: 0.3rem;
  height: 0.3rem;
  border-radius: 50%;
  background: currentColor;
}

.smu .smi-expired { color: #9c5f0d; background: #fff1d5; }
.smu .smi-cancelled { color: #ad354c; background: #fce8ec; }
.smu .smi-closed { color: #147552; background: #e2f4ec; }
.smu .smi-in-progress { color: #107983; background: #def3f5; }
.smu .smi-planned { color: #8d0038; background: #ffd9de; }
.smu .smi-default { color: #687184; background: #eef0f4; }

.smu-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-top: 1px solid var(--bs-border-color);
}

.smu-count {
  color: var(--bs-secondary-color);
  font-size: 0.8rem;
}

.smu-count strong {
  color: #4a5467;
}

.smu-pages {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.smu-page {
  display: inline-grid;
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.45rem;
  place-items: center;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 0.5rem;
  background: #fff;
  color: #5d6678;
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
}

.smu-page:hover {
  color: var(--bs-primary);
  border-color: rgba(188, 0, 75, 0.35);
}

.smu-page.active {
  color: #fff;
  border-color: var(--bs-primary);
  background: var(--bs-primary);
}

.smu-empty {
  padding: 3.5rem 1.25rem;
  color: #8a92a3;
  text-align: center;
}

.smu-empty iconify-icon {
  display: block;
  margin: 0 auto 0.6rem;
}

@media (max-width: 991.98px) {
  .smu-stats,
  .smu-filter-grid {
    grid-template-columns: 1fr 1fr;
  }

  .smu-apply {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (max-width: 575.98px) {
  .smu-header,
  .smu-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .smu-stats,
  .smu-filter-grid,
  .prf-report {
    grid-template-columns: 1fr;
  }
}

.smd-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.9rem;
  color: #697386;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
}

.smd-back:hover {
  color: var(--bs-primary);
}

.smd-hero {
  position: relative;
  overflow: hidden;
  padding: 1.6rem 1.7rem 3.4rem;
  border-radius: 1.25rem;
  color: #fff;
  background: linear-gradient(120deg, #1c1220 0%, #4a1832 58%, #8d2348 100%);
}

.smd-hero::after {
  content: "";
  position: absolute;
  width: 16rem;
  height: 16rem;
  right: -4rem;
  top: -9rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.smd-hero-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.smd-eyebrow {
  margin: 0 0 0.35rem;
  color: #f3c3d4;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.smd-title {
  margin: 0;
  color: #fff;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.smd-event-id {
  margin: 0.4rem 0 0;
  color: #f0d5df;
  font-size: 0.8rem;
}

.smd-hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem;
}

.smd-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: capitalize;
}

.smd-hero-badge::before {
  content: "";
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--badge-color, #fff);
}

.smd-badge-approved,
.smd-badge-closed { --badge-color: #5ee0af; }
.smd-badge-pending,
.smd-badge-expired { --badge-color: #ffc868; }
.smd-badge-rejected,
.smd-badge-cancelled { --badge-color: #ff8297; }
.smd-badge-planned { --badge-color: #ffd0dc; }
.smd-badge-in-progress { --badge-color: #67e8f9; }

.smd-metrics {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin: -1.8rem 0.75rem 0;
}

.smd-metric-link {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.smd-metric {
  height: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 8px 22px rgba(29, 38, 61, 0.06);
  transition: transform 0.16s ease, border-color 0.16s ease;
}

.smd-metric-link:hover .smd-metric {
  border-color: var(--metric-color);
  transform: translateY(-2px);
}

.smd-metric-label {
  color: var(--bs-secondary-color);
  font-size: 0.68rem;
  font-weight: 700;
}

.smd-metric-value {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.25rem;
  color: #222c40;
  font-size: 1.4rem;
  font-weight: 700;
}

.smd-metric-value iconify-icon {
  color: var(--metric-color);
}

.smd-metric-breakdown {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.5rem;
}

.smd-chip {
  display: inline-flex;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
}

.smd-chip-dmi { color: #147754; background: #e1f4eb; }
.smd-chip-guest { color: #596273; background: #eef0f4; }
.smd-tone-brand { --metric-color: #bc004b; }
.smd-tone-green { --metric-color: #1a9369; }
.smd-tone-cyan { --metric-color: #1498a5; }
.smd-tone-amber { --metric-color: #c47a17; }

.smd-section,
.smd-anchor {
  margin-top: 1rem;
  scroll-margin-top: 5.5rem;
}

.smd-grid-3,
.smd-grid-2 {
  display: grid;
  gap: 1rem;
}

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

.smd-card {
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.smd-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.95rem 1.15rem;
  border-bottom: 1px solid #edf0f4;
}

.smd-card-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  color: #263047;
  font-size: 0.95rem;
  font-weight: 700;
}

.smd-card-title iconify-icon { color: var(--bs-primary); }

.smd-card-count {
  padding: 0.25rem 0.5rem;
  border-radius: 0.45rem;
  background: #ffd9de;
  color: #8d0038;
  font-size: 0.68rem;
  font-weight: 700;
}

.smd-card-body { padding: 1.05rem 1.15rem; }

.smd-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem 1.1rem;
}

.smd-detail-full { grid-column: 1 / -1; }

.smd-label {
  margin-bottom: 0.15rem;
  color: #9299a8;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.smd-value {
  color: #3c465a;
  font-size: 0.78rem;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.smd-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 1.15rem;
}

.smd-action-copy,
.smd-note {
  margin: 0.3rem 0 0;
  color: var(--bs-secondary-color);
  font-size: 0.8rem;
}

.smd-note { padding: 0.85rem 1.15rem 0; }

.smd-action-note {
  margin: 0.35rem 0 0;
  color: #b46d10;
  font-size: 0.78rem;
  font-weight: 650;
}

.smd-action-buttons,
.smd-reject {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.smd-reject {
  align-items: end;
  padding: 0 1.15rem 1.15rem;
}

.smd-reject > div { flex: 1; }

.smd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 2.4rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid transparent;
  border-radius: 0.7rem;
  background: #fff;
  color: #4e586b;
  font-size: 0.8rem;
  font-weight: 650;
  text-decoration: none;
}

.smd-btn-primary { color: #fff; background: var(--bs-primary); border-color: var(--bs-primary); }
.smd-btn-primary:hover { background: var(--brand-primary-dark); }
.smd-btn-success { color: #fff; background: #188760; border-color: #188760; }
.smd-btn-danger { color: #b33b52; background: #fff; border-color: #f0c2cb; }
.smd-btn-danger:hover { background: #fce8ec; }
.smd-btn-ghost { min-height: 2rem; border-color: rgba(15, 23, 42, 0.12); font-size: 0.75rem; }
.smd-btn:disabled { opacity: 0.55; }

.smd-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid rgba(179, 59, 82, 0.25);
  border-radius: 999px;
  background: #fff;
  color: #b33b52;
}

.smd-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
}

.smd-table {
  width: max-content;
  min-width: 100%;
  margin: 0;
}

.smd .smd-table-wrap > table > :not(caption) > * > * {
  padding: 0.75rem 1rem;
  border-color: #eef0f4;
  color: #616a7c;
  font-size: 0.75rem;
  white-space: nowrap;
  vertical-align: middle;
}

.smd .smd-table-wrap > table > thead > tr > th {
  border: 0;
  background: #f7f8fa;
  color: var(--bs-secondary-color);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.smd-table tbody tr:hover td { background: #fbfbfd; }

.smd-attendance,
.smd-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.5rem;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 700;
  white-space: nowrap;
}

.smd-attendance::before,
.smd-type-badge::before {
  content: "";
  width: 0.3rem;
  height: 0.3rem;
  border-radius: 50%;
  background: currentColor;
}

.smd-attendance.is-present,
.smd-type-dmi { color: #147754; background: #e1f4eb; }
.smd-attendance.is-flagged { color: #aa6810; background: #fff1d7; }
.smd-attendance.is-absent { color: #7c8495; background: #eef0f4; }

.smd-empty {
  display: grid;
  min-height: 8rem;
  place-content: center;
  padding: 1.5rem;
  color: #9299aa;
  text-align: center;
  font-size: 0.8rem;
}

.smd-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.85rem;
}

.smd-media {
  overflow: hidden;
  border: 1px solid #e5e8ef;
  border-radius: 0.85rem;
  background: #f4f5f8;
}

.smd-media img,
.smd-media video {
  display: block;
  width: 100%;
  height: 150px;
  object-fit: cover;
  background: #161a26;
}

.smd-media-meta {
  gap: 0.5rem;
  padding: 0.55rem 0.7rem;
  color: #697286;
  font-size: 0.68rem;
}

.smd-dropzone {
  position: relative;
  display: grid;
  min-height: 9rem;
  place-items: center;
  padding: 1.25rem;
  border: 2px dashed rgba(15, 23, 42, 0.16);
  border-radius: 1rem;
  background: #f7f8fb;
  color: #697286;
  text-align: center;
  cursor: pointer;
}

.smd-dropzone:hover { border-color: var(--bs-primary); }

.smd-dropzone iconify-icon { color: var(--bs-primary); }

.smd-dropzone-title,
.smd-dropzone-help { display: block; }

.smd-dropzone-title { margin-top: 0.35rem; font-weight: 700; color: #263047; }
.smd-dropzone-help { margin-top: 0.2rem; font-size: 0.78rem; }

.smd-dropzone-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.smd-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (max-width: 1199.98px) {
  .smd-grid-3 { grid-template-columns: 1fr; }
}

@media (max-width: 991.98px) {
  .smd-metrics,
  .smd-grid-2 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767.98px) {
  .smd-hero { padding: 1.3rem 1.1rem 3.2rem; }
  .smd-hero-row,
  .smd-action,
  .smd-reject { align-items: flex-start; flex-direction: column; }
  .smd-hero-badges { justify-content: flex-start; }
  .smd-metrics { margin-right: 0; margin-left: 0; }
  .smd-details { grid-template-columns: 1fr; }
  .smd-detail-full { grid-column: auto; }
}

@media (max-width: 575.98px) {
  .smd-metrics,
  .smd-grid-2 { grid-template-columns: 1fr; }
}

.prf-survey {
  width: min(720px, 100%);
  margin: 0 auto 2rem;
}

.prf-card {
  padding: 1.35rem 1.4rem 1.25rem;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.prf-member {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.95rem;
  border-bottom: 1px solid #eef0f4;
}

.prf-member-mark {
  display: grid;
  width: 2.4rem;
  height: 2.4rem;
  flex: none;
  place-items: center;
  border-radius: 0.7rem;
  color: var(--bs-primary);
  background: #ffd9de;
}

.prf-member-name {
  color: #293348;
  font-size: 0.95rem;
  font-weight: 700;
}

.prf-member-meta {
  margin-top: 0.1rem;
  color: #8a92a3;
  font-size: 0.75rem;
}

.prf-progress {
  height: 0.35rem;
  overflow: hidden;
  border-radius: 999px;
  background: #f0f2f6;
}

.prf-progress-bar {
  height: 100%;
  border-radius: inherit;
  background: var(--bs-primary);
}

.prf-step {
  margin: 0.55rem 0 0;
  color: #8a92a3;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.prf-question {
  margin: 0.35rem 0 0;
  color: #1c2433;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.prf-help {
  margin: 0.35rem 0 0;
  color: var(--bs-secondary-color);
  font-size: 0.8rem;
  line-height: 1.45;
}

.prf-fields {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-top: 1rem;
}

.prf-fields > .smd-btn { align-self: flex-start; }

.prf-field,
.prf-outlet > div {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.prf-outlet {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.85rem;
  border: 1px solid #eef0f4;
  border-radius: 0.85rem;
  background: #fbfbfd;
}

.prf-field-label {
  margin: 0;
  color: #526074;
  font-size: 0.72rem;
  font-weight: 700;
}

.prf-survey .form-control,
.prf-survey .form-select,
.prf-outlet-dialog .form-control {
  min-height: 2.6rem;
  border-radius: 0.65rem;
  font-size: 0.85rem;
}

.prf-nav,
.prf-done-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
}

.prf-nav .smd-btn-ghost { margin-right: auto; }

.prf-choices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.55rem;
}

.prf-choice {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 2.7rem;
  margin: 0;
  padding: 0.55rem 0.75rem;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 0.75rem;
  background: #fff;
  color: #3c4658;
  font-size: 0.82rem;
  font-weight: 650;
  cursor: pointer;
}

.prf-choice .btn-check {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.prf-choice span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.prf-choice span::before {
  content: "";
  width: 0.9rem;
  height: 0.9rem;
  flex: none;
  border: 2px solid #c5cad3;
  border-radius: 50%;
  background: #fff;
}

.prf-choice:has(:checked),
.prf-choice.active {
  border-color: rgba(188, 0, 75, 0.45);
  background: #fff5f8;
  color: #8d0038;
}

.prf-choice:has(:checked) span::before,
.prf-choice.active span::before {
  border-color: var(--bs-primary);
  box-shadow: inset 0 0 0 3px #fff;
  background: var(--bs-primary);
}

.prf-survey .form-range {
  width: 100%;
  height: 1.4rem;
  accent-color: var(--bs-primary);
}

.prf-split {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  color: #526074;
  font-size: 0.8rem;
}

.prf-split b { color: #1c2433; }

.prf-total {
  margin: 0.15rem 0 0;
  padding: 0.65rem 0.8rem;
  border-radius: 0.7rem;
  font-size: 0.8rem;
  font-weight: 700;
}

.prf-total.is-ok { color: #147754; background: #e1f4eb; }
.prf-total.is-bad { color: #b33b52; background: #fce8ec; }

.prf-results {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #eef0f4;
  border-radius: 0.75rem;
  background: #fff;
}

.prf-result {
  padding: 0.65rem 0.8rem;
  border-bottom: 1px solid #eef0f4;
  color: #293348;
  font-size: 0.82rem;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
}

.prf-result:last-child { border-bottom: 0; }
.prf-result:hover { background: #fff5f8; color: var(--bs-primary); }

.prf-done {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.2rem 1.4rem;
  text-align: center;
}

.prf-done .prf-question { margin-top: 0.85rem; }

.prf-done-mark {
  display: grid;
  width: 4.2rem;
  height: 4.2rem;
  place-items: center;
  border-radius: 50%;
  color: #188760;
  background: #e4f5ed;
}

.prf-done-actions {
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.1rem;
}

.prf-done-actions .smd-btn-ghost { margin-right: 0; }

.prf-outlet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.prf-outlet-head h2 {
  margin: 0;
  color: #1c2433;
  font-size: 1.05rem;
  font-weight: 700;
}

.prf-outlet-close {
  border-color: rgba(15, 23, 42, 0.12);
  color: #697386;
}

.prf-outlet-search {
  position: relative;
  margin-bottom: 0.85rem;
}

.prf-outlet-search iconify-icon {
  position: absolute;
  top: 50%;
  left: 0.75rem;
  color: #9299a8;
  transform: translateY(-50%);
  pointer-events: none;
}

.prf-outlet-search .form-control { padding-left: 2.4rem; }

.prf-tabs {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.prf-tab {
  min-height: 2.1rem;
  padding: 0.3rem 0.75rem;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 999px;
  background: #fff;
  color: #526074;
  font-size: 0.75rem;
  font-weight: 700;
}

.prf-tab.active {
  color: #fff;
  border-color: var(--bs-primary);
  background: var(--bs-primary);
}

.prf-outlet-list {
  max-height: 340px;
  overflow: auto;
}

.prf-outlet-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.15rem;
  border-bottom: 1px solid #eef0f4;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.prf-outlet-row:hover .prf-outlet-name { color: var(--bs-primary); }

.prf-outlet-name {
  color: #293348;
  font-size: 0.85rem;
  font-weight: 700;
}

.prf-outlet-meta {
  color: #8a92a3;
  font-size: 0.75rem;
}

.prf-outlet-type {
  margin-left: auto;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  background: #f0f2f6;
  color: #526074;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: capitalize;
}

.prf-outlet-empty {
  margin: 0;
  padding: 1.4rem 0.5rem;
  color: #8a92a3;
  font-size: 0.8rem;
  text-align: center;
}

@media (max-width: 575.98px) {
  .prf-choices { grid-template-columns: 1fr; }
  .prf-nav,
  .prf-split { flex-wrap: wrap; }
}

.au-auth {
  width: min(420px, 100%);
  margin: 1.5rem auto 2rem;
}

.au-auth-logo {
  display: block;
  height: 64px;
  width: auto;
  margin: 0 auto 1.1rem;
}

.au-auth .form-label {
  margin-bottom: 0.35rem;
  color: #526074;
  font-size: 0.72rem;
  font-weight: 700;
}

.au-auth .form-control {
  min-height: 2.6rem;
  border-radius: 0.65rem;
  font-size: 0.85rem;
}

.au-auth .prf-fields > .smd-btn {
  align-self: stretch;
  width: 100%;
  margin-top: 0.25rem;
}

.lead-file-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.lead-files {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.lead-file {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
  color: #293348;
  font-size: 0.82rem;
  font-weight: 650;
  text-decoration: none;
}

.lead-file:hover { color: var(--bs-primary); }

.lead-file-meta {
  margin-left: auto;
  color: #8a92a3;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}

.lead-stars {
  display: flex;
  justify-content: center;
  gap: 0.2rem;
}

.lead-stars label {
  margin: 0;
  line-height: 0;
  cursor: pointer;
}

.lead-composer-extra {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
  margin-bottom: 0.65rem;
}

.lead-composer-extra:not(:has(*)) {
  display: none;
}

.lead-tag-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.lead-area-table td:first-child {
  width: 42%;
  color: var(--bs-secondary-color);
  font-size: 0.75rem;
  font-weight: 650;
}

@media (max-width: 767.98px) {
  .lead-file-grid { grid-template-columns: 1fr; }
}

.brc-toast {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 1080;
  padding: 0.7rem 0.95rem;
  border-radius: 0.8rem;
  background: #1c2433;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 650;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.2);
}

.brc-steps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.brc-step {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.25rem 0.7rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  background: #fff;
  color: #697386;
  font-size: 0.75rem;
  font-weight: 700;
}

.brc-step.is-on {
  color: #fff;
  background: var(--bs-primary);
  border-color: var(--bs-primary);
}

.brc-room {
  margin-top: 0.85rem;
  padding: 0.9rem 1rem 1rem;
  border: 1px solid #eef0f4;
  border-radius: 0.9rem;
  background: #fbfbfd;
}

.brc-room-head {
  display: flex;
  align-items: end;
  gap: 0.6rem;
}

.brc-room-head > div { flex: 1; min-width: 0; }

.brc-links {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 1.1rem;
}

.brc-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.65rem;
  border-top: 1px solid #eef0f4;
}

.brc-head-tools {
  display: flex;
  align-items: flex-end;
  gap: 0.65rem;
}

.lead-page-head:has(.brc-head-tools) { align-items: flex-end; }

.brc-search {
  display: grid;
  grid-template-columns: minmax(12rem, 18rem);
  align-items: end;
}

.brc-search .form-label {
  margin-bottom: 0.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #526074;
}

@media (max-width: 767.98px) {
  .brc-head-tools { width: 100%; flex-wrap: wrap; }
  .brc-search { width: 100%; grid-template-columns: minmax(0, 1fr); }
}

.brc-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  min-height: 7.5rem;
  margin-top: 0.9rem;
  padding: 1.1rem;
  border: 1px dashed rgba(188, 0, 75, 0.35);
  border-radius: 0.9rem;
  background: #fff7f9;
  color: var(--bs-primary);
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
}

.brc-drop:hover { background: #ffd9de; }

.brc-drop .prf-help { font-weight: 500; }

.brc-progress {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 0.7rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid #eef0f4;
  border-radius: 0.75rem;
  background: #fbfbfd;
}

.brc-progress-copy {
  flex: 1;
  min-width: 0;
  font-size: 0.78rem;
  font-weight: 650;
}

.brc-progress progress {
  display: block;
  width: 100%;
  height: 0.4rem;
  margin-top: 0.35rem;
  accent-color: var(--bs-primary);
}

.brc-empty {
  margin-top: 0.9rem;
  padding: 1.25rem 0.75rem;
  border: 1px dashed #e3e7ee;
  border-radius: 0.8rem;
  color: #8a92a3;
  font-size: 0.8rem;
  text-align: center;
}

.brc-thumb {
  display: block;
  width: 72px;
  height: 48px;
  object-fit: cover;
  border-radius: 0.45rem;
  background: #eef0f4;
}

.supply-table-scroll td.brc-cell,
.brc-cell {
  white-space: normal;
  min-width: 12rem;
}

.brc-size { min-width: 8rem; width: 9rem; }

.brc-cell .form-control,
.brc-table-scroll .form-control {
  min-height: 2.15rem;
  border-radius: 0.55rem;
  font-size: 0.8rem;
}

.brc-table-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  margin-top: 0.75rem;
}

.brc-table-scroll table {
  width: 100%;
  min-width: 32rem;
  margin-bottom: 0.65rem;
  font-size: 0.75rem;
}

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

.brc-table-scroll thead th {
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bs-secondary-color);
}

.brc-done {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}

.brc-done > iconify-icon { color: var(--bs-primary); }

.brc-done .lead-section-title,
.brc-done .prf-help { margin: 0; }

.brc-done .smd-btn-primary { margin-top: 0.7rem; }

.brc-done .prf-nav { align-self: stretch; margin-top: 0.4rem; }

.bill-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(188, 0, 75, 0.18);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  font-size: 0.85rem;
}

.bill-bar .smd-btn { margin-left: auto; }

.bill-count,
.bill-total { font-weight: 700; }

.bill-count { color: var(--bs-primary); }

.inv-no { font-weight: 700; }

.inv-status {
  display: inline-flex;
  align-items: center;
  min-height: 1.35rem;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.inv-status.is-pending { color: #8a5a12; background: #fff4df; }

.inv-status.is-processed { color: #0f7a52; background: #e7f6ef; }

body:has(#page.crl) { background: #f3f5f8 !important; }

.mlead {
  min-height: 100vh;
  background: #f3f5f8;
  padding: 1.15rem 1rem 6.5rem;
}

body:has(.mlead) { background: #f3f5f8; }

main:has(.mlead) { background: #f3f5f8; }

.mlead-head,
.mlead-list,
.mlead-empty,
.mlead-pager,
.mlead-alert,
.mlead-actions,
.mshow-stack {
  width: min(760px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.mlead-head {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.mlead-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  flex: none;
  margin-top: 0.1rem;
  padding: 0;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 999px;
  background: #fff;
  color: #293348;
  line-height: 0;
  text-decoration: none;
}

.mlead .mlead-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  flex: none;
  margin: 0;
  line-height: 0;
}

.mlead .mlead-ico iconify-icon {
  display: block;
  width: 1rem;
  height: 1rem;
}

.mlead-back:hover { color: var(--bs-primary); border-color: rgba(188, 0, 75, 0.35); }

.mlead-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.mlead-sub {
  margin: 0.3rem 0 0;
  color: var(--bs-secondary-color);
  font-size: 0.84rem;
  line-height: 1.4;
}

.mlead-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mlead-card {
  padding: 0.95rem 1rem 0.8rem;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  cursor: pointer;
}

.mlead-card:hover { border-color: rgba(188, 0, 75, 0.28); }

.mlead-card-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mlead-id {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.mlead-meta {
  display: grid;
  gap: 0.22rem;
  margin-top: 0.65rem;
  color: #3d4656;
  font-size: 0.84rem;
}

.mlead-meta b {
  margin-right: 0.3rem;
  color: #8a92a3;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mlead-foot {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.75rem;
  padding-top: 0.65rem;
  border-top: 1px solid #eef0f4;
  font-size: 0.82rem;
  font-weight: 700;
}

.mlead-score {
  margin-top: 0.45rem;
  color: #526074;
  font-size: 0.78rem;
}

.mlead .badge {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
}

.mlead-map {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  flex: none;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 999px;
  background: #fff;
  color: var(--bs-primary);
  text-decoration: none;
}

.mlead-empty {
  padding: 2.4rem 1rem;
  color: #8a92a3;
  text-align: center;
}

.mlead-pager {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.mlead-bar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1030;
  display: flex;
  justify-content: center;
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
  background: linear-gradient(to top, #f3f5f8 72%, rgba(243, 245, 248, 0));
  pointer-events: none;
}

.mlead-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.4rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  pointer-events: auto;
}

.mlead-tools .btn,
.mlead-tools .smd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  box-sizing: border-box;
  height: 2.5rem;
  min-height: 2.5rem;
  padding: 0 0.95rem;
  border-radius: 999px;
  line-height: 1;
}

.mlead-tools .dropdown-toggle { min-width: 8.5rem; }

.mlead-alert {
  margin-top: 2rem;
  padding: 1.15rem 1.2rem;
  border: 1px solid #f0c2cb;
  border-radius: 1rem;
  background: #fff;
}

.mlead-actions {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.lead-composer-send > span {
  display: flex;
  align-items: center;
  justify-content: center;
}

.mlead.mshow { padding-bottom: 2.5rem; }

.mshow-head { align-items: center; }

.mshow-head > div:not(.badge) {
  flex: 1;
  min-width: 0;
}

.mshow-head > .badge {
  margin-left: auto;
  flex: none;
}

.mshow-head .mlead-back { margin-top: 0; }

.mshow-head .mlead-title { font-size: 1.2rem; }

.mshow-stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mshow-status {
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  background: var(--bs-primary);
  color: #fff;
}

.mshow-date {
  margin-bottom: 0.2rem;
  opacity: 0.8;
  font-size: 0.75rem;
}

.mshow-card {
  padding: 0.95rem 1rem;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.mshow-card + .mshow-card,
.mshow-label + .mshow-card { margin-top: 0; }

.mshow-label {
  margin: 0.35rem 0 0;
  color: #8a92a3;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mshow-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem 1rem;
}

.mshow-facts .full { grid-column: 1 / -1; }

.mshow-facts b,
.mshow-card > b {
  display: block;
  margin-bottom: 0.15rem;
  color: #8a92a3;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mshow-tabs {
  display: flex;
  gap: 0.3rem;
  margin-top: 0.25rem;
  padding: 0.25rem;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 999px;
  background: #fff;
}

.mshow-tabs .nav-link {
  flex: 1;
  margin: 0;
  padding: 0.45rem 0.6rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #526074;
  font-size: 0.82rem;
  font-weight: 650;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.mshow-tabs .nav-link.active {
  background: var(--bs-primary);
  color: #fff;
}

.mshow-panel[data-class-active]:not(.active) { display: none !important; }

.mshow-table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  font-size: 0.84rem;
}

.mshow-table th,
.mshow-table td {
  padding: 0.5rem 0.15rem;
  border-bottom: 1px solid #eef0f4;
  vertical-align: middle;
}

.mshow-table tr:last-child th,
.mshow-table tr:last-child td { border-bottom: 0; }

.mshow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--bs-primary);
  font-weight: 650;
  text-decoration: none;
}

.mshow-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.45rem;
}

.mshow-note {
  color: #526074;
  font-size: 0.8rem;
  text-align: right;
}

.mshow-msg {
  padding: 0.75rem 0;
  border-top: 1px solid #eef0f4;
}

.mshow-msg:first-child { border-top: 0; padding-top: 0; }

.mshow-msg-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
  color: #8a92a3;
  font-size: 0.75rem;
}

.mshow-composer {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid #eef0f4;
}

.mshow-composer textarea {
  min-height: 2.6rem;
  border-radius: 0.85rem;
}

.mshow-composer .flex-grow-1 { min-width: 0; }

.mshow .btn {
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 650;
}

.mshow .btn-primary {
  background: var(--bs-primary);
  border-color: var(--bs-primary);
}

.mshow .card {
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.mshow .form-control,
.mshow .form-select {
  border-color: rgba(15, 23, 42, 0.12);
  border-radius: 0.75rem;
}

.mshow-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 999px;
  background: #fff;
  color: #526074;
}

.mshow-file {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-top: 1px solid #eef0f4;
}

.mshow-file:first-of-type { border-top: 0; }

.mshow .modal-frame {
  border: 0;
  border-radius: 1rem;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.16);
}

#form_content {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

#form_content > .d-flex h5 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.nlead-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  flex: none;
  padding: 0;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 999px;
  background: #fff;
  color: #293348;
  line-height: 0;
}

#form_content .row {
  --bs-gutter-x: 0.75rem;
  --bs-gutter-y: 0.85rem;
  margin: 0;
}

#form_content form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#form_content .row > [class*="col-"] {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

#form_content .row > [class*="col-"]:not(:has(.form-control, .form-select, .dropdown, .form-label, button)) {
  flex-direction: row;
  justify-content: flex-start;
  align-items: baseline;
  gap: 0.25rem;
}

#form_content .form-label {
  display: block;
  min-height: 1.2rem;
  margin-bottom: 0.25rem;
  line-height: 1.2;
}

#form_content .form-control,
#form_content .form-select {
  min-height: 2.5rem;
  border-color: rgba(15, 23, 42, 0.12);
  border-radius: 0.75rem;
}

#form_content textarea.form-control { min-height: 5.5rem; }

#form_content .dropdown > .btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  height: 2.5rem;
  min-height: 2.5rem;
  padding: 0 0.9rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 0.75rem;
  background: #fff;
  color: #293348;
  font-size: 0.95rem;
  font-weight: 500;
  box-shadow: none;
}

#form_content .dropdown > .btn:hover {
  background: #f7f8fb;
  color: #293348;
}

#form_content h5.small,
#form_content .nlead-kicker {
  margin: 0.35rem 0 0.15rem;
  color: #8a92a3;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

#form_content .btn-lg,
#form_content button[type="submit"],
#form_content button[name="show_confirmation"] {
  border-radius: 999px;
  font-weight: 650;
}

#form_content .btn-primary {
  background: var(--bs-primary);
  border-color: var(--bs-primary);
}

#form_content label.btn,
#form_content .smd-btn {
  margin-top: 0.35rem;
}

#form_content article {
  margin-top: 0.35rem;
  padding: 1rem 1.05rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 1rem;
  background: #f7f8fb;
}

#form_content article label,
#form_content .form-check {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0.65rem 0;
  color: #293348;
  font-weight: 650;
}

#form_content article input[type="checkbox"],
#form_content .form-check-input {
  width: 1.05rem;
  height: 1.05rem;
  margin: 0;
  accent-color: var(--bs-primary);
}

.fu-report .fu-strong {
  display: block;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.fu-report .fu-meta {
  display: block;
  margin-top: 0.12rem;
  color: var(--bs-secondary-color);
  font-weight: 500;
}

.fu-report .fu-lead {
  display: block;
  font-weight: 650;
  color: var(--bs-emphasis-color);
  text-decoration: none;
}

.fu-report .fu-lead:hover {
  color: var(--bs-primary);
}

.fu-report .fu-status,
.fu-report .fu-review {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.12rem 0.5rem;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.35;
  text-transform: uppercase;
}

.fu-report .fu-status-pending {
  background: #fff4df;
  color: #8a5a00;
}

.fu-report .fu-status-completed {
  background: #e7f6ec;
  color: #0d7a3f;
}

.fu-report .fu-review {
  margin-top: 0.28rem;
  background: #fff1f4;
  color: #bc004b;
}

.fu-report .supply-table-scroll td.fu-notes {
  min-width: 16rem;
  max-width: 28rem;
  white-space: normal;
  vertical-align: top;
}

.fu-report .fu-note {
  white-space: pre-wrap;
}

.fu-report .fu-actions {
  width: 1%;
}

.fu-report .fu-action {
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 650;
  line-height: 1.2;
}

.fu-report .fu-empty {
  padding: 2.25rem 1rem !important;
  color: var(--bs-secondary-color);
  text-align: center;
  white-space: normal;
}

.fu-report .table-hover > tbody > tr:hover > td:first-child {
  background-color: var(--bs-table-hover-bg);
}

#lead-follow-ups .fu-board {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

#lead-follow-ups .fu-compose {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.95rem;
  border-radius: 0.9rem;
  background: #f7f8fb;
}

#lead-follow-ups .fu-compose-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1rem;
}

#lead-follow-ups .fu-compose-notes {
  grid-column: 1 / -1;
}

#lead-follow-ups .fu-compose .lead-fact-label {
  display: block;
  margin-bottom: 0.3rem;
}

#lead-follow-ups .fu-compose-actions {
  display: flex;
  justify-content: flex-end;
}

#lead-follow-ups .fu-compose-actions .btn,
#lead-follow-ups .fu-pending-actions .btn {
  border-radius: 999px;
  font-weight: 650;
}

#lead-follow-ups .fu-group-title {
  margin: 0 0 0.15rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bs-secondary-color);
}

#lead-follow-ups .fu-none {
  margin: 0.35rem 0 0;
  color: var(--bs-secondary-color);
  font-size: 0.875rem;
}

#lead-follow-ups .fu-pending,
#lead-follow-ups .fu-done,
#lead-follow-ups .fu-review-card {
  margin-top: 0.65rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 0.9rem;
}

#lead-follow-ups .fu-pending {
  background: #f7f8fb;
}

#lead-follow-ups .fu-done {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  background: #fff;
}

#lead-follow-ups .fu-pending-head,
#lead-follow-ups .fu-done-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

#lead-follow-ups .fu-pending-when,
#lead-follow-ups .fu-done-notes {
  font-weight: 650;
}

#lead-follow-ups .fu-pending-when,
#lead-follow-ups .fu-done-time {
  font-variant-numeric: tabular-nums;
}

#lead-follow-ups .fu-pending-who,
#lead-follow-ups .fu-done-time,
#lead-follow-ups .fu-done-extra {
  color: var(--bs-secondary-color);
  font-size: 0.82rem;
}

#lead-follow-ups .fu-pending-marks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

#lead-follow-ups .fu-pending-notes,
#lead-follow-ups .fu-done-notes,
#lead-follow-ups .fu-done-extra {
  margin: 0;
  white-space: pre-wrap;
}

#lead-follow-ups .fu-pending-notes {
  margin-top: 0.55rem;
}

#lead-follow-ups .fu-pending-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

#lead-follow-ups .fu-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.18rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.3;
}

#lead-follow-ups .fu-pill-contacted {
  background: #e7f6ec;
  color: #0d7a3f;
}

#lead-follow-ups .fu-pill-no-response {
  background: #fff4df;
  color: #8a5a00;
}

#lead-follow-ups .fu-pill-callback {
  background: #e7f0fb;
  color: #1d4f91;
}

#lead-follow-ups .fu-pill-not-interested {
  background: #fff1f4;
  color: #bc004b;
}

#lead-follow-ups .fu-pill-converted {
  background: #efe9ff;
  color: #5b21b6;
}

#lead-follow-ups .fu-pill-overdue {
  background: #fff1f4;
  color: #bc004b;
}

#lead-follow-ups .fu-pill-review {
  background: #fff4df;
  color: #8a5a00;
}

#lead-follow-ups .fu-done-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem 1rem;
  margin: 0.15rem 0 0;
  padding-top: 0.7rem;
  border-top: 1px solid var(--bs-border-color);
}

#lead-follow-ups .fu-done-facts dt {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--bs-secondary-color);
}

#lead-follow-ups .fu-done-facts dd {
  margin: 0.12rem 0 0;
  font-weight: 650;
}

#lead-follow-ups .fu-done-close,
#lead-follow-ups .fu-done-next {
  margin: 0;
  align-self: flex-start;
  text-align: left;
  white-space: normal;
  font-size: 0.82rem;
  font-weight: 650;
}

#lead-follow-ups .fu-done-close {
  color: #0d7a3f;
}

.fu-next {
  display: none;
}

.fu-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.fu-choice {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.6rem;
  margin: 0;
  padding: 0.5rem 0.75rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 0.75rem;
  background: #fff;
  color: var(--bs-body-color);
  cursor: pointer;
  font-weight: 650;
  line-height: 1.25;
  text-align: center;
}

.fu-choice:hover {
  border-color: rgba(15, 23, 42, 0.28);
}

.fu-choice:has(input:checked) {
  border-color: var(--bs-primary);
  background: rgba(var(--bs-primary-rgb), 0.08);
  color: var(--bs-primary);
}

.fu-choice-input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}

@media (max-width: 575.98px) {
  .fu-choices {
    grid-template-columns: 1fr;
  }
}

#lead-follow-ups .fu-form {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--bs-border-color);
}

#lead-follow-ups .fu-review-card {
  background: #fff8ee;
}

#lead-follow-ups .fu-review-card > .h6 {
  margin-bottom: 0.35rem;
}

@media (max-width: 575.98px) {
  #lead-follow-ups .fu-compose-grid,
  #lead-follow-ups .fu-done-facts {
    grid-template-columns: 1fr;
  }
}
