/* ERP-style console — navy chrome, refined accent */
:root {
  --erp-navy: #0c1929;
  --erp-navy-mid: #1a2d47;
  --erp-navy-soft: #243652;
  --erp-accent: #c9a227;
  --erp-accent-dark: #9a7b1c;
  --bg-page: #e8ecf1;
  --bg-surface: #ffffff;
  --bg-muted: #eef1f6;
  --bg-card: #ffffff;
  --bg-card-hover: #f7f9fc;
  --border: rgba(12, 25, 41, 0.09);
  --border-strong: rgba(12, 25, 41, 0.14);
  --text: #0c1929;
  --text-muted: #5c6b7a;
  --accent: var(--erp-accent);
  --accent-dark: var(--erp-accent-dark);
  --accent-soft: rgba(201, 162, 39, 0.14);
  --accent-glow: rgba(30, 58, 95, 0.18);
  --danger: #c02626;
  --danger-bg: #fef2f2;
  --danger-border: #fecaca;
  --success: #0f6b38;
  --success-bg: #ecfdf3;
  --success-border: #b4e4c9;
  --radius-lg: 12px;
  --radius-md: 10px;
  --radius-sm: 8px;
  --shadow-soft: 0 4px 20px rgba(12, 25, 41, 0.07), 0 12px 40px rgba(12, 25, 41, 0.04);
  --shadow-card: 0 1px 2px rgba(12, 25, 41, 0.06), 0 4px 12px rgba(12, 25, 41, 0.04);
  --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --font-display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --space: clamp(1rem, 3vw, 2rem);
  --erp-header-bg: linear-gradient(180deg, #122a45 0%, var(--erp-navy) 100%);
  --erp-header-border: rgba(255, 255, 255, 0.06);
  /* Scrollbars — light chrome (main / forms) */
  --scrollbar-size: 10px;
  --scrollbar-track: #d2dbe7;
  --scrollbar-thumb: rgba(26, 45, 71, 0.42);
  --scrollbar-thumb-hover: rgba(26, 45, 71, 0.62);
  --scrollbar-corner: var(--bg-page);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  color-scheme: light;
}

html:has(body.page-login) {
  height: 100%;
  overflow: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg-page);
  background-image:
    radial-gradient(ellipse 120% 60% at 50% -10%, rgba(30, 58, 95, 0.06), transparent 55%),
    linear-gradient(180deg, #dfe5ed 0%, var(--bg-page) 32%);
}

a {
  color: var(--erp-navy-mid);
  text-decoration: none;
  transition: color 0.15s ease, opacity 0.15s ease;
}

a:hover {
  color: var(--erp-accent-dark);
}

/* Themed scrollbars — WebKit (Chrome, Safari, Edge) + Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

*::-webkit-scrollbar {
  width: var(--scrollbar-size);
  height: var(--scrollbar-size);
}

*::-webkit-scrollbar-corner {
  background: var(--scrollbar-corner);
}

*::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
  border-radius: 999px;
}

*::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 999px;
  border: 2px solid var(--scrollbar-track);
}

*::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-thumb-hover);
}

/* Login: single viewport, no page scroll */
body.page-login {
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

@media (max-height: 560px) {
  body.page-login .login-panel {
    justify-content: flex-start;
    padding: 0.75rem 1.25rem 1rem;
  }

  body.page-login .login-panel__intro {
    margin-bottom: 0.65rem;
  }

  body.page-login .login-title {
    font-size: 1.5rem;
  }

  body.page-login .form-stack {
    gap: 0.65rem;
  }

  body.page-login .btn--block {
    padding: 0.65rem 1rem;
  }
}

body.page-login .app-main {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 0;
}

body.app-body--shell {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

body.app-body--shell .app-shell {
  flex: 1;
  display: flex;
  min-height: 0;
  width: 100%;
}

.app-shell__column {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg-page);
}

/* Sidebar */
.app-sidebar {
  --scrollbar-track: rgba(6, 14, 26, 0.45);
  --scrollbar-thumb: rgba(201, 162, 39, 0.38);
  --scrollbar-thumb-hover: rgba(232, 199, 107, 0.55);
  --scrollbar-corner: transparent;
  width: 268px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #0f1f33 0%, var(--erp-navy) 55%, #0a1524 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.app-sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1rem 0.75rem 1.25rem;
}

.app-sidebar__link {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: rgba(241, 245, 249, 0.88);
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.app-sidebar__link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.06);
}

.app-sidebar__link.is-active {
  color: #fff;
  background: rgba(201, 162, 39, 0.12);
  border-color: rgba(201, 162, 39, 0.35);
  box-shadow: inset 3px 0 0 var(--erp-accent);
}

.app-sidebar__icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.06);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.app-sidebar__link.is-active .app-sidebar__icon {
  background-color: rgba(201, 162, 39, 0.15);
  border-color: rgba(201, 162, 39, 0.25);
}

.app-sidebar__icon--home {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23e8c76b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6'/%3E%3C/svg%3E");
}

.app-sidebar__icon--user {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23e8c76b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z'/%3E%3C/svg%3E");
}

.app-sidebar__icon--list {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23e8c76b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M4 6h16M4 10h16M4 14h10M4 18h10'/%3E%3C/svg%3E");
}

.app-sidebar__icon--pledge {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23e8c76b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M12 8c-1.657 0-3 .895-3 2s1.343 2 3 2 3 .895 3 2-1.343 2-3 2m0-8c1.11 0 2.08.402 2.599 1M12 8V7m0 1v8m0 0v1m0-1c-1.11 0-2.08-.402-2.599-1M21 12a9 9 0 11-18 0 9 9 0 0118 0z'/%3E%3C/svg%3E");
}

.app-sidebar__icon--pledge-list {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23e8c76b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z'/%3E%3C/svg%3E");
}

.app-sidebar__icon--dues {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23e8c76b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z'/%3E%3C/svg%3E");
}

.app-sidebar__text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.app-sidebar__label {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.app-sidebar__hint {
  font-size: 0.72rem;
  color: rgba(241, 245, 249, 0.55);
  line-height: 1.35;
}

.app-sidebar__link.is-active .app-sidebar__hint {
  color: rgba(255, 255, 255, 0.72);
}

/* Top navbar */
.app-navbar {
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-strong);
  box-shadow: 0 1px 0 rgba(12, 25, 41, 0.04);
}

.app-navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem var(--space);
  max-width: none;
}

.app-navbar__leading {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  flex: 1;
}

.app-drawer-toggle {
  display: none;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  margin: 0;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-muted);
  color: var(--erp-navy);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.app-drawer-toggle:hover {
  background: var(--bg-card-hover);
  border-color: var(--erp-navy-soft);
  color: var(--erp-navy);
}

.app-drawer-toggle:focus-visible {
  outline: 2px solid var(--erp-navy-soft);
  outline-offset: 2px;
}

.app-drawer-backdrop {
  display: none;
}

.app-sidebar__close {
  display: none;
  align-self: flex-end;
  margin: 0.5rem 0.65rem 0 0;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  transition: background 0.15s ease;
}

.app-sidebar__close:hover {
  background: rgba(255, 255, 255, 0.14);
}

.app-sidebar__close:focus-visible {
  outline: 2px solid var(--erp-accent);
  outline-offset: 2px;
}

.app-navbar__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  text-decoration: none;
  color: var(--text);
}

.app-navbar__brand:hover {
  color: var(--erp-navy);
}

.app-navbar__logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(12, 25, 41, 0.12);
  border: 1px solid var(--border);
}

.app-navbar__brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  min-width: 0;
}

.app-navbar__company {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-navbar__tagline {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 280px;
}

.app-navbar__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.app-navbar__user {
  font-size: 0.86rem;
  color: var(--text-muted);
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (min-width: 640px) {
  .app-navbar__user {
    max-width: 220px;
  }
}

.app-navbar__signout {
  border-color: var(--border-strong) !important;
}

.app-main {
  flex: 1;
  width: 100%;
  min-height: calc(100vh - 56px);
  padding: var(--space) 0 calc(var(--space) * 1.5);
}

body.app-body--shell .app-main {
  min-height: 0;
  overflow-y: auto;
  padding: var(--space) 0;
  -webkit-overflow-scrolling: touch;
}

/* Dashboard home */
.dashboard-hero {
  padding: 1.75rem 1.5rem;
  margin-bottom: 1.25rem;
  border-left: 4px solid var(--erp-accent);
}

.dashboard-hero__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.dashboard-hero__title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.1rem);
  font-weight: 600;
  color: var(--erp-navy);
  letter-spacing: -0.02em;
}

.dashboard-hero__lead {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 62ch;
}

.dashboard-panels {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 800px) {
  .dashboard-panels {
    grid-template-columns: 1fr 1fr;
  }
}

.dashboard-panel {
  padding: 1.35rem 1.4rem;
}

.dashboard-panel__title {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--erp-navy);
}

.dashboard-panel__text {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.dashboard-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Full-width ERP workspace pages (e.g. create customer) */
.page-erp-workspace .dashboard-hero {
  margin-bottom: 1rem;
}

.page-erp-workspace .form-card {
  width: 100%;
  max-width: none;
}

@media (max-width: 900px) {
  .app-drawer-toggle {
    display: inline-flex;
  }

  .app-drawer-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(12, 25, 41, 0.48);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.22s ease, visibility 0.22s ease;
    pointer-events: none;
  }

  body.app-drawer-open .app-drawer-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .app-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(292px, 88vw);
    z-index: 210;
    transform: translate3d(-100%, 0, 0);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    flex-direction: column;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: none;
    box-shadow: 8px 0 40px rgba(0, 0, 0, 0.35);
  }

  body.app-drawer-open .app-sidebar {
    transform: translate3d(0, 0, 0);
  }

  .app-sidebar__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .app-sidebar__nav {
    flex-direction: column;
    flex-wrap: nowrap;
    overflow-x: visible;
    overflow-y: auto;
    padding: 0.35rem 0.75rem 1.25rem;
    gap: 0.2rem;
  }

  .app-sidebar__link {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    padding: 0.75rem 0.85rem;
  }

  .app-sidebar__link.is-active {
    box-shadow: inset 3px 0 0 var(--erp-accent);
  }

  .app-sidebar__text {
    align-items: flex-start;
  }

  .app-sidebar__hint {
    display: block;
  }

  body.app-body--shell {
    height: auto;
    min-height: 100vh;
    overflow: auto;
  }

  body.app-body--shell.app-drawer-open {
    overflow: hidden;
  }

  body.app-body--shell .app-shell {
    flex: none;
    min-height: auto;
  }

  body.app-body--shell .app-main {
    overflow: visible;
  }
}

.container {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding: 0 var(--space);
}

.container--narrow {
  max-width: 720px;
}

.container--wide {
  max-width: 1200px;
}

.app-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-strong);
  background: var(--bg-surface);
  box-shadow: 0 -2px 12px rgba(12, 25, 41, 0.04);
}

body.app-body--shell .app-footer__inner {
  max-width: none;
}

.app-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.85rem var(--space);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1.25rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.app-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: min(100%, 320px);
}

.app-footer__name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.app-footer__meta {
  line-height: 1.45;
}

.app-footer__contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
}

.app-footer__dot {
  opacity: 0.45;
}

.app-footer__link {
  color: var(--erp-navy-mid);
  font-weight: 600;
}

.app-footer__link:hover {
  color: var(--erp-accent-dark);
}

/* Login layout */
.page-login .login-shell {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr;
  width: 100%;
  overflow: hidden;
}

@media (min-width: 900px) {
  .page-login .login-shell {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

.login-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.25rem, 4vh, 2.5rem) clamp(1.25rem, 5vw, 3rem);
  position: relative;
  z-index: 2;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

@media (min-width: 900px) {
  .login-panel {
    overflow-y: hidden;
  }
}

.login-panel__intro {
  margin-bottom: clamp(1rem, 3vh, 1.75rem);
}

.login-kicker {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--erp-navy-mid);
  font-weight: 600;
  margin: 0 0 0.35rem;
}

.login-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vh, 2.75rem);
  font-weight: 400;
  margin: 0 0 0.35rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.login-lead {
  margin: 0;
  color: var(--text-muted);
  font-size: clamp(0.9rem, 1.8vh, 1rem);
  max-width: 36ch;
  line-height: 1.5;
}

.login-panel__form {
  max-width: 400px;
}

.login-business-block {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 400px;
}

.login-business-block__line {
  margin: 0 0 0.35rem;
}

.login-business-block__line--contact {
  font-weight: 600;
  color: var(--erp-navy-mid);
}

.login-business-block__sep {
  margin: 0 0.35rem;
  opacity: 0.45;
}

.field--password-reveal .field__password-wrap {
  position: relative;
  display: block;
}

.field__input--password-toggle {
  padding-right: 3rem;
}

.field__password-toggle {
  position: absolute;
  right: 0.35rem;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}

.field__password-toggle:hover {
  color: var(--erp-navy-mid);
  background: rgba(30, 58, 95, 0.06);
}

.field__password-toggle:focus-visible {
  outline: 2px solid var(--erp-navy-soft);
  outline-offset: 2px;
}

.field__password-toggle-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.field__password-toggle-icon[hidden] {
  display: none !important;
}

.login-art {
  display: none;
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #1a3352 0%, var(--erp-navy) 48%, #0a1420 100%);
  border-left: 1px solid var(--erp-header-border);
  min-height: 0;
}

@media (min-width: 900px) {
  .login-art {
    display: block;
  }
}

.login-art__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
  opacity: 0.4;
}

.login-art__scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(12, 25, 41, 0.35) 0%, rgba(12, 25, 41, 0.08) 22%, transparent 42%),
    linear-gradient(180deg, rgba(12, 25, 41, 0.06) 0%, transparent 35%),
    linear-gradient(0deg, rgba(12, 25, 41, 0.12) 0%, transparent 28%);
}

/* Inline helpers */
.field__inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-top: 0.55rem;
}

.field__inline--full {
  width: 100%;
  justify-content: space-between;
}

@media (max-width: 640px) {
  .field__inline--full {
    justify-content: flex-start;
  }

  .due-inline {
    width: 100%;
    justify-content: space-between;
  }
}

.field__input--compact {
  padding: 0.55rem 0.75rem;
  font-size: 0.9rem;
}

.due-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(184, 134, 11, 0.22);
  background: rgba(184, 134, 11, 0.06);
  color: var(--accent-dark);
  font-weight: 600;
  font-size: 0.78rem;
}

.due-inline__label {
  white-space: nowrap;
}

/* Forms */
.form-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field__label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
}

.field__input,
.field__textarea,
select.field__input {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-surface);
  color: var(--text);
  font: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

select.field__input {
  cursor: pointer;
}

.field__input::placeholder,
.field__textarea::placeholder {
  color: #94a3b8;
}

.field__input:focus,
.field__textarea:focus,
select.field__input:focus {
  outline: none;
  border-color: var(--erp-navy-soft);
  box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.12);
}

/* Numeric fields — browser number input, spinners toned down */
.field__input--number {
  -moz-appearance: textfield;
}

.field__input--number::-webkit-outer-spin-button,
.field__input--number::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.field__textarea {
  resize: vertical;
  min-height: 88px;
}

.field--file .field__file {
  padding: 0.6rem 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.field-file-preview {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--border-strong);
  background: var(--bg-muted);
  max-width: 100%;
}

.field-file-preview__img {
  display: block;
  max-width: min(240px, 100%);
  max-height: 200px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  box-shadow: var(--shadow-card);
}

.field-file-preview__pdf {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 4.5rem;
  min-height: 4.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(145deg, var(--erp-navy-mid) 0%, var(--erp-navy) 100%);
  border: 1px solid rgba(201, 162, 39, 0.35);
  box-shadow: var(--shadow-card);
}

.field-file-preview__pdf-inner {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--erp-accent);
}

.field-file-preview__name {
  font-size: 0.82rem;
  color: var(--text-muted);
  word-break: break-word;
  max-width: 100%;
}

/* `hidden` must win over display:flex/block above (otherwise empty previews show). */
.field-file-preview[hidden],
.field-file-preview__pdf[hidden],
.field-file-preview__img[hidden] {
  display: none !important;
}

.req {
  color: var(--erp-accent-dark);
}

.opt {
  color: var(--text-muted);
  font-weight: 400;
}

.form-section {
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
}

.form-section:first-of-type {
  border-top: none;
  padding-top: 0;
}

.form-section__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.form-hint {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.form-hint--inline {
  margin-top: 0;
  margin-bottom: 0.85rem;
  line-height: 1.5;
}

.form-hint--inline strong {
  color: var(--text);
  font-weight: 600;
}

.form-hint--field {
  display: block;
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  line-height: 1.4;
}

/* Checkbox fields (used in modals / forms) */
.field--checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.field--checkbox input[type='checkbox'] {
  margin-top: 0.2rem;
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  flex: 0 0 auto;
}

.field--checkbox .field__label {
  margin: 0;
  font-weight: 600;
  line-height: 1.35;
  flex: 1 1 auto;
  white-space: normal;
}

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

@media (min-width: 640px) {
  .form-grid--2 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 900px) {
  .form-grid--3 {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media (min-width: 640px) and (max-width: 899px) {
  .form-grid--3 {
    grid-template-columns: 1fr 1fr;
  }
}

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

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
  padding-top: 1.5rem;
  margin-top: 0.5rem;
  border-top: 1px solid var(--border);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-sm);
  font: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: linear-gradient(180deg, #2a5082 0%, var(--erp-navy-mid) 55%, #152a45 100%);
  color: #fff;
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 2px 8px var(--accent-glow), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

.btn--primary:hover {
  filter: brightness(1.06);
  color: #fff;
  box-shadow: 0 4px 16px rgba(30, 58, 95, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.btn--secondary {
  background: var(--bg-surface);
  color: var(--text);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-card);
}

.btn--secondary:hover {
  background: var(--bg-card-hover);
  color: var(--text);
}

.btn--ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border);
}

.btn--ghost:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: var(--bg-muted);
}

.btn--sm {
  padding: 0.45rem 0.85rem;
  font-size: 0.85rem;
}

.btn--block {
  width: 100%;
  padding: 0.8rem 1.25rem;
}

/* Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.form-card {
  padding: clamp(1.25rem, 4vw, 2rem);
}

.card--soft {
  padding: 1.5rem;
  background: var(--bg-muted);
  border-color: var(--border);
}

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

.mt-md {
  margin-top: 1rem;
}

/* Page */
.page-head {
  margin-bottom: 1.75rem;
}

.page-head--row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.page-head--customers {
  display: grid;
  gap: 1rem 1.25rem;
  align-items: end;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .page-head--customers {
    grid-template-columns: minmax(200px, 1fr) minmax(240px, 1fr);
  }
}

.page-head__lead {
  min-width: 0;
}

.page-head__actions {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  width: 100%;
}

@media (min-width: 720px) {
  .page-head__actions {
    justify-content: flex-end;
    width: auto;
  }
}

.page-head__search {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
}

.page-head__cta {
  flex-shrink: 0;
  white-space: nowrap;
}

.customer-list-search__input {
  width: 100%;
  max-width: none;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-surface);
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.customer-list-search__input::placeholder {
  color: #94a3b8;
}

.customer-list-search__input:focus {
  outline: none;
  border-color: var(--erp-navy-soft);
  box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.12);
}

.customer-list-search__status {
  min-height: 1.25rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

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

.customer-list-empty {
  padding: 1.5rem 1.25rem;
  text-align: center;
}

.page-head__title {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.5vw, 2.05rem);
  font-weight: 600;
  margin: 0 0 0.35rem;
  letter-spacing: -0.02em;
  color: var(--erp-navy);
}

.page-head__sub {
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
}

.breadcrumb {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

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

.breadcrumb a:hover {
  color: var(--erp-accent-dark);
}

.breadcrumb__sep {
  margin: 0 0.35rem;
  opacity: 0.5;
}

/* Dashboard tiles */
.tile-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 560px) {
  .tile-grid:not(.tile-grid--3):not(.tile-grid--4) {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 720px) {
  .tile-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 560px) and (max-width: 719px) {
  .tile-grid--3 {
    grid-template-columns: 1fr 1fr;
  }
}

/* Dashboard — four tiles */
@media (min-width: 640px) {
  .tile-grid--4 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1100px) {
  .tile-grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  min-height: 140px;
}

.tile:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-soft);
}

.tile--accent {
  background: linear-gradient(145deg, rgba(30, 58, 95, 0.06) 0%, var(--bg-card) 52%);
  border-color: rgba(30, 58, 95, 0.14);
  border-left: 3px solid var(--erp-accent);
}

.tile--accent:hover {
  background: linear-gradient(145deg, rgba(30, 58, 95, 0.09) 0%, #fff 55%);
  border-color: rgba(30, 58, 95, 0.2);
}

.tile--muted {
  background: var(--bg-card);
}

.tile--muted:hover {
  background: var(--bg-card-hover);
}

.tile__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(30, 58, 95, 0.08);
  border: 1px solid rgba(30, 58, 95, 0.12);
}

.tile__icon--user {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%231e3a5f'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 22px;
}

.tile__icon--pledge {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M12 8c-1.657 0-3 .895-3 2s1.343 2 3 2 3 .895 3 2-1.343 2-3 2m0-8c1.11 0 2.08.402 2.599 1M12 8V7m0 1v8m0 0v1m0-1c-1.11 0-2.08-.402-2.599-1M21 12a9 9 0 11-18 0 9 9 0 0118 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 22px;
}

.tile__icon--list {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%231e3a5f'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M4 6h16M4 10h16M4 14h10M4 18h10'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 22px;
}

.tile__icon--pledge-list {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%231e3a5f'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 22px;
}

.tile__label {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.tile__hint {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.tile--muted .tile__hint {
  font-style: italic;
}

/* Alerts */
.alert {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  font-size: 0.92rem;
}

.alert--error {
  background: var(--danger-bg);
  border: 1px solid var(--danger-border);
  color: #991b1b;
}

.alert--success {
  background: var(--success-bg);
  border: 1px solid var(--success-border);
  color: #166534;
}

.alert-list {
  margin: 0;
  padding-left: 1.1rem;
}

.alert-list li {
  margin: 0.2rem 0;
}

/* Data tables */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
}

.data-table {
  width: 100%;
  min-width: 1100px;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.data-table--pledges {
  min-width: 1500px;
}

.dues-table {
  min-width: 720px;
}

.dues-table__num {
  text-align: right;
  white-space: nowrap;
}

/* Pledge view — Interest tab */
.profile-panel__icon--interest {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%231e3a5f'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='1.75' d='M12 8c-1.657 0-3 .895-3 2s1.343 2 3 2 3 .895 3 2-1.343 2-3 2m0-8c1.11 0 2.08.402 2.599 1M12 8V7m0 1v8m0 0v1m0-1c-1.11 0-2.08-.402-2.599-1M21 12a9 9 0 11-18 0 9 9 0 0118 0z'/%3E%3C/svg%3E");
}

.pledge-interest-body {
  padding: 1rem 1.25rem 1.25rem;
}

.pledge-interest-lede {
  margin: 0 0 1.15rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  max-width: 52rem;
}

.pledge-interest-lede__amt {
  color: var(--text);
  font-weight: 700;
}

.pledge-interest-empty__title {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text);
}

.pledge-interest-empty__hint {
  margin: 0;
  font-size: 0.9rem;
}

.pledge-interest-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.15rem;
}

@media (max-width: 639px) {
  .pledge-interest-stats {
    grid-template-columns: 1fr;
  }
}

.pledge-interest-stat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(30, 58, 95, 0.04) 0%, var(--bg-card) 100%);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.pledge-interest-stat--warn {
  border-color: rgba(184, 134, 11, 0.35);
  background: linear-gradient(180deg, rgba(184, 134, 11, 0.09) 0%, var(--bg-card) 100%);
}

.pledge-interest-stat--ok {
  border-color: rgba(34, 139, 34, 0.28);
  background: linear-gradient(180deg, rgba(34, 139, 34, 0.07) 0%, var(--bg-card) 100%);
}

.pledge-interest-stat--dim {
  opacity: 0.72;
}

.pledge-interest-stat__label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.pledge-interest-stat__value {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--erp-navy);
  font-variant-numeric: tabular-nums;
}

.pledge-interest-stat__suffix {
  font-size: 0.72em;
  font-weight: 700;
  color: var(--text-muted);
}

.pledge-interest-stat__sub {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--accent-dark);
  font-variant-numeric: tabular-nums;
}

.pledge-interest-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.pledge-interest-item {
  display: grid;
  grid-template-columns: minmax(0, 4.25rem) minmax(0, 1fr) auto;
  gap: 0.85rem 1rem;
  align-items: start;
  padding: 1rem 1.05rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.pledge-interest-item:hover {
  border-color: rgba(30, 58, 95, 0.18);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

.pledge-interest-item--paid {
  border-left: 4px solid rgba(34, 139, 34, 0.65);
}

.pledge-interest-item--unpaid {
  border-left: 4px solid rgba(184, 134, 11, 0.85);
}

.pledge-interest-item__period {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.35rem 0.25rem;
  border-radius: 10px;
  background: var(--bg-muted);
  border: 1px solid var(--border);
}

.pledge-interest-item--paid .pledge-interest-item__period {
  background: rgba(34, 139, 34, 0.08);
  border-color: rgba(34, 139, 34, 0.22);
}

.pledge-interest-item--unpaid .pledge-interest-item__period {
  background: rgba(184, 134, 11, 0.1);
  border-color: rgba(184, 134, 11, 0.28);
}

.pledge-interest-item__period-label {
  font-size: 0.625rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  line-height: 1;
}

.pledge-interest-item__period-num {
  font-size: 1.35rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--erp-navy);
  line-height: 1.1;
}

.pledge-interest-item__main {
  min-width: 0;
}

.pledge-interest-item__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.25rem;
}

.pledge-interest-item__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.pledge-interest-item__desc {
  margin: 0 0 0.35rem;
  font-size: 0.875rem;
  line-height: 1.45;
}

.pledge-interest-item__meta {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.4;
}

.pledge-interest-item__amt {
  text-align: right;
  min-width: 6.5rem;
}

.pledge-interest-item__amt-label {
  display: block;
  font-size: 0.625rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
}

.pledge-interest-item__amt-val {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--accent-dark);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.interest-status {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 999px;
  flex-shrink: 0;
}

.interest-status--paid {
  color: #1b5e20;
  background: rgba(34, 139, 34, 0.14);
  border: 1px solid rgba(34, 139, 34, 0.35);
}

.interest-status--unpaid {
  color: #7a5b00;
  background: rgba(184, 134, 11, 0.16);
  border: 1px solid rgba(184, 134, 11, 0.4);
}

@media (max-width: 559px) {
  .pledge-interest-item {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .pledge-interest-item__period {
    flex-direction: row;
    justify-content: flex-start;
    gap: 0.5rem;
    min-height: unset;
    padding: 0.45rem 0.65rem;
  }

  .pledge-interest-item__period-label {
    font-size: 0.6875rem;
  }

  .pledge-interest-item__amt {
    text-align: left;
    padding-top: 0.35rem;
    border-top: 1px dashed var(--border);
    min-width: unset;
  }
}


.profile-kv dd a {
  color: var(--accent-dark);
  font-weight: 600;
  text-decoration: none;
}

.profile-kv dd a:hover {
  text-decoration: underline;
}

.profile-chip--link {
  text-decoration: none;
  color: var(--accent-dark);
  cursor: pointer;
}

.profile-chip--link:hover {
  text-decoration: underline;
  filter: brightness(0.92);
}

.pledge-view-hero__badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 14px;
  font-size: 0.8125rem;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  color: var(--accent-dark);
  background: var(--accent-soft);
  border: 1px solid rgba(184, 134, 11, 0.28);
}

.pledge-view-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.pledge-view-flash {
  margin: 0 0 1rem;
}

.profile-chip--pledge-active {
  font-weight: 700;
  color: var(--accent-dark);
  border: 1px solid rgba(34, 139, 34, 0.45);
  background: rgba(34, 139, 34, 0.1);
}

.profile-chip--pledge-closed {
  font-weight: 700;
  color: #6b2a2a;
  border: 1px solid rgba(180, 60, 60, 0.35);
  background: rgba(180, 60, 60, 0.08);
}

.pledge-close-dialog {
  width: min(100% - 2rem, 420px);
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  background: var(--bg-card, #fff);
}

.pledge-close-dialog::backdrop {
  background: rgba(20, 18, 14, 0.45);
}

.pledge-close-dialog form {
  padding: 1.35rem 1.35rem 1.25rem;
}

.pledge-close-dialog__title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--text);
}

.pledge-close-dialog__lede {
  margin: 0 0 1.1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.pledge-close-dialog__check {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0 0 1rem;
  cursor: pointer;
}

.pledge-close-dialog__check input[type='checkbox'] {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
  accent-color: var(--accent);
}

.pledge-close-dialog__check-label {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text);
  line-height: 1.4;
}

.pledge-close-dialog__notes {
  margin-bottom: 0.25rem;
}

.pledge-close-dialog__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.data-table__status {
  white-space: nowrap;
}

.data-table__status--active {
  color: #2d6a2d;
  font-weight: 600;
}

.data-table__status--closed {
  color: #8b3a3a;
  font-weight: 600;
}

.data-table__product {
  max-width: 10rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.data-table thead th {
  text-align: left;
  padding: 0.7rem 0.85rem;
  background: linear-gradient(180deg, #1e3a5f 0%, var(--erp-navy-mid) 100%);
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  white-space: nowrap;
}

.data-table tbody td {
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  color: var(--text);
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.data-table tbody tr:hover td {
  background: rgba(30, 58, 95, 0.045);
}

.data-table__strong {
  font-weight: 600;
  white-space: nowrap;
}

.data-table__address {
  max-width: 12rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.data-table__nowrap {
  white-space: nowrap;
}

.doc-link {
  font-weight: 600;
  color: var(--erp-navy-mid);
}

.doc-link:hover {
  text-decoration: underline;
}

.data-table__th-action {
  text-align: center;
  width: 3.5rem;
}

.data-table__thumb {
  vertical-align: middle;
  text-align: center;
  padding: 0.5rem 0.65rem !important;
}

.data-table__action {
  vertical-align: middle;
  text-align: center;
  padding: 0.5rem !important;
}

.table-thumb-wrap {
  display: inline-block;
  line-height: 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
  border: 1px solid var(--border);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.table-thumb-wrap:hover {
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.12);
  transform: scale(1.04);
}

.table-thumb {
  display: block;
  width: 64px;
  height: 64px;
  object-fit: cover;
}

.table-thumb-pdf {
  display: inline-block;
  padding: 0.35rem 0.6rem;
  border-radius: 8px;
  background: var(--bg-muted);
  font-size: 0.75rem;
}

.table-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  color: var(--accent-dark);
  background: transparent;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.table-action:hover {
  background: var(--accent-soft);
  border-color: rgba(184, 134, 11, 0.25);
  color: var(--accent-dark);
}

.table-action:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Customers list — card grid */
.customer-card-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
}

.customer-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.18s ease, border-color 0.18s ease;
}

.customer-card:hover {
  border-color: rgba(201, 162, 39, 0.35);
  box-shadow: var(--shadow-soft);
}

.customer-card__top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: start;
  padding: 1.15rem 1.15rem 1rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, var(--bg-surface) 100%);
  border-bottom: 1px solid var(--border);
}

.customer-card__avatar-wrap {
  flex-shrink: 0;
}

.customer-card__avatar-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 2px 10px rgba(12, 25, 41, 0.08);
  background: var(--bg-muted);
  transition: box-shadow 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.customer-card__avatar-link:hover {
  border-color: rgba(201, 162, 39, 0.45);
  box-shadow: 0 6px 18px rgba(12, 25, 41, 0.12);
  transform: translateY(-1px);
}

.customer-card__avatar-link--pdf {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--erp-accent);
  text-decoration: none;
  background: linear-gradient(160deg, var(--erp-navy-mid) 0%, var(--erp-navy) 100%);
  border-color: rgba(201, 162, 39, 0.35);
}

.customer-card__avatar-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.customer-card__avatar--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  border-radius: 14px;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--erp-navy-mid);
  background: linear-gradient(145deg, var(--bg-muted) 0%, #e2e8f0 100%);
  border: 1px dashed var(--border-strong);
}

.customer-card__intro {
  min-width: 0;
}

.customer-card__name {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.25;
}

.customer-card__mobile {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
}

.customer-card__mobile a {
  color: var(--erp-navy-mid);
  font-weight: 600;
  text-decoration: none;
}

.customer-card__mobile a:hover {
  color: var(--erp-accent-dark);
  text-decoration: underline;
}

.customer-card__pledge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.customer-card__pill {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  border: 1px solid var(--border);
  background: var(--bg-muted);
}

.customer-card__pill--active {
  border-color: rgba(201, 162, 39, 0.45);
  background: rgba(201, 162, 39, 0.1);
}

.customer-card__pill--active.customer-card__pill--muted {
  border-color: var(--border);
  background: var(--bg-muted);
}

.customer-card__pill-value {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.customer-card__pill-label {
  color: var(--text-muted);
  text-transform: lowercase;
}

.customer-card__view {
  align-self: center;
  white-space: nowrap;
}

.customer-card__body {
  padding: 1rem 1.15rem 0.85rem;
  flex: 1;
}

.customer-card__field {
  min-width: 0;
}

.customer-card__field--block {
  grid-column: 1 / -1;
}

.customer-card__label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.customer-card__value {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.45;
}

.customer-card__value--address {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}

.customer-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 1.15rem;
  margin-top: auto;
  font-size: 0.8rem;
  color: var(--text-muted);
  background: var(--bg-muted);
  border-top: 1px solid var(--border);
}

.customer-card__registered {
  font-weight: 500;
}

.customer-card__id {
  font-variant-numeric: tabular-nums;
  opacity: 0.85;
}

.customer-list__summary {
  margin: 1.25rem 0 0;
  font-size: 0.9rem;
}

@media (max-width: 400px) {
  .customer-card__top {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  .customer-card__avatar-wrap {
    justify-self: center;
  }

  .customer-card__intro {
    text-align: center;
  }

  .customer-card__pledge-row {
    justify-content: center;
  }

  .customer-card__view {
    justify-self: stretch;
    width: 100%;
    text-align: center;
  }
}

/* Customer profile */
.page-profile .app-main {
  background: linear-gradient(180deg, #eef1f6 0%, var(--bg-page) 28%);
}

.profile-shell {
  padding-bottom: 2rem;
}

.profile-breadcrumb {
  font-size: 0.9375rem;
  margin-bottom: 1.1rem;
}

.profile-breadcrumb a {
  font-weight: 500;
}

.profile-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.35rem 1.5rem 1.35rem 1.35rem;
  margin-bottom: 1.35rem;
  border-left: 4px solid var(--accent);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 248, 242, 0.95) 100%);
  box-shadow: var(--shadow-soft);
}

.profile-hero__lead {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  min-width: 0;
  flex: 1 1 240px;
}

.profile-hero__avatar-link {
  flex-shrink: 0;
  line-height: 0;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.12);
  border: 3px solid rgba(184, 134, 11, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.profile-hero__avatar-link:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.15);
}

.profile-hero__avatar {
  display: block;
  width: 96px;
  height: 96px;
  object-fit: cover;
}

.profile-hero__avatar--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  flex-shrink: 0;
  border-radius: 50%;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  background: linear-gradient(145deg, #d4af37 0%, #8b6914 100%);
  box-shadow: 0 4px 20px rgba(184, 134, 11, 0.35);
  border: 3px solid rgba(255, 255, 255, 0.5);
}

.profile-hero__text {
  min-width: 0;
}

.profile-hero__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 400;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.15;
}

.profile-hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.profile-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.65rem;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  border: 1px solid rgba(184, 134, 11, 0.22);
}

.profile-chip--muted {
  background: var(--bg-muted);
  color: var(--text-muted);
  font-weight: 500;
  border-color: var(--border);
}

.btn-profile-back {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 1.1rem;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  color: var(--text);
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}

.btn-profile-back:hover {
  background: #fff;
  border-color: rgba(184, 134, 11, 0.35);
  color: var(--accent-dark);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}

.profile-tabs {
  display: flex;
  padding: 0.4rem;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
  background: var(--bg-muted);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}

.profile-tabs__tab {
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
  padding: 0.7rem 1rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: calc(var(--radius-sm) + 2px);
  border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.profile-tabs__tab:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.65);
}

.profile-tabs__tab.is-active {
  background: var(--bg-card);
  color: var(--erp-navy);
  border-color: rgba(30, 58, 95, 0.22);
  box-shadow: 0 2px 10px rgba(12, 25, 41, 0.06);
  font-weight: 700;
}

.profile-tabs__tab:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.pledges-list-tabs {
  margin-bottom: 1.25rem;
}

@media (max-width: 639px) {
  .profile-tabs--triple .profile-tabs__tab {
    font-size: 0.8125rem;
    padding: 0.55rem 0.45rem;
  }
}

.profile-pledge-panel {
  padding: 1.25rem 1.35rem 1.35rem;
}

.profile-pledge-panel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.15rem;
}

.profile-pledge-panel__title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 400;
  margin: 0 0 0.25rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.profile-pledge-panel__sub {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.profile-pledge-panel__empty {
  text-align: center;
  padding: 2rem 1rem;
  background: var(--bg-muted);
  border-radius: var(--radius-md);
  border: 1px dashed var(--border-strong);
}

/* Active / closed pledge lists: one full-width card per row */
.pledge-card-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

.pledge-card {
  display: flex;
  flex-direction: column;
  padding: 1.15rem 1.25rem 1.1rem;
  gap: 1rem;
  text-align: left;
}

.pledge-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 2px solid rgba(30, 58, 95, 0.12);
}

.pledge-card__title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 0.75rem;
  min-width: 0;
  flex: 1;
}

.pledge-card__title-stack {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
}

.pledge-card__meta {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.pledge-card__meta-link {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.pledge-card__meta-link:hover {
  text-decoration: underline;
}

.pledge-card__meta-sep {
  color: var(--text-muted);
}

.pledge-card__id {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  background: var(--accent-dark);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  flex-shrink: 0;
}

.pledge-card__item {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-width: 0;
}

.pledge-card__head-actions {
  display: none;
  flex-shrink: 0;
  align-items: center;
  gap: 0.35rem;
}

@media (min-width: 640px) {
  .pledge-card__head-actions {
    display: flex;
  }
}

.pledge-card__body {
  display: grid;
  gap: 1rem;
  align-items: stretch;
}

@media (min-width: 640px) {
  .pledge-card__body {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1.25rem;
  }
}

.pledge-card__main {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-width: 0;
}

.pledge-card__metrics {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.pledge-card__metrics-row {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.65rem 0.85rem;
}

.pledge-card__stat--product .pledge-card__value {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.35;
}

.pledge-card__item--customer {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.35;
}

.pledge-card__item--customer .pledge-card__meta-link {
  font-weight: 600;
  color: var(--text);
}

.pledge-card__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr));
  gap: 0.75rem 1.15rem;
}

@media (min-width: 520px) {
  .pledge-card__stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .pledge-card__stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.pledge-card__stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
  padding: 0.5rem 0.55rem;
  background: var(--bg-muted);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.pledge-card__stat--span {
  grid-column: 1 / -1;
}

@media (min-width: 900px) {
  .pledge-card__stat--span {
    grid-column: span 2;
  }
}

.pledge-card__stat--notes {
  grid-column: 1 / -1;
}

.pledge-card__stat--notes .pledge-card__value {
  font-weight: 500;
}

.pledge-card__label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.pledge-card__value {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  word-break: break-word;
  line-height: 1.3;
}

.pledge-card__value--money {
  font-variant-numeric: tabular-nums;
  color: var(--accent-dark);
  font-size: 1rem;
}

.pledge-card__aside {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  background: linear-gradient(180deg, var(--bg-muted) 0%, var(--bg-card) 100%);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  min-width: 5.75rem;
}

@media (min-width: 640px) {
  .pledge-card__aside {
    align-self: stretch;
    min-width: 6.5rem;
  }
}

.pledge-card__aside-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-align: center;
}

.pledge-card__photo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  color: var(--accent-dark);
  background: var(--accent-soft);
  border: 1px solid rgba(184, 134, 11, 0.25);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.pledge-card__photo-btn:hover {
  background: var(--accent-dark);
  color: #fff;
  border-color: var(--accent-dark);
}

.pledge-card__photo-btn--pdf:hover {
  background: var(--accent-dark);
  color: #fff;
}

.pledge-card__photo-none {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.04);
  font-size: 0.9375rem;
  font-weight: 600;
}

.pledge-card__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
}

.pledge-card__foot-link {
  flex: 1;
  min-width: 8rem;
  justify-content: center;
  text-align: center;
}

@media (max-width: 639px) {
  .pledge-card {
    padding: 0.95rem 0.7rem 0.9rem;
    gap: 0.85rem;
  }

  .pledge-card-grid {
    gap: 1rem;
  }

  .pledge-card__head {
    gap: 0.5rem 0.65rem;
    padding-bottom: 0.7rem;
  }

  .pledge-card__metrics {
    gap: 0.5rem;
  }

  .pledge-card__metrics-row {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.95fr) minmax(0, 0.95fr);
    column-gap: 0.35rem;
    row-gap: 0.45rem;
  }

  .pledge-card__stat {
    padding: 0.4rem 0.32rem;
  }

  .pledge-card__label {
    font-size: 0.58rem;
    letter-spacing: 0.04em;
    line-height: 1.25;
    hyphens: auto;
    -webkit-hyphens: auto;
    overflow-wrap: break-word;
  }

  .pledge-card__value {
    font-size: 0.8125rem;
    overflow-wrap: anywhere;
  }

  .pledge-card__value--money {
    font-size: 0.875rem;
  }

  .pledge-card__stat--product .pledge-card__value {
    font-size: 0.8125rem;
    -webkit-line-clamp: 3;
  }

  .pledge-card__stats {
    gap: 0.55rem 0.5rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pledge-card__aside {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 0.65rem;
    padding: 0.65rem 0.75rem;
    min-width: 0;
    width: 100%;
  }

  .pledge-card__aside-label {
    text-align: left;
    flex-shrink: 0;
  }

  .pledge-card__foot {
    flex-direction: column;
    align-items: stretch;
  }

  .pledge-card__foot-link {
    flex: none;
    width: 100%;
    min-width: 0;
  }

  .profile-pledge-panel {
    padding: 1rem 0.75rem 1.1rem;
  }

  .profile-pledge-panel__title {
    font-size: 1.25rem;
  }

  .pledges-list-tabs .profile-tabs__tab {
    font-size: 0.8125rem;
    padding: 0.55rem 0.45rem;
  }
}

@media (min-width: 640px) {
  .pledge-card__foot {
    display: none;
  }
}


.table-wrap--in-card {
  margin: 0 -0.25rem;
}

@media (min-width: 640px) {
  .table-wrap--in-card {
    margin: 0;
  }
}

.data-table--customer-pledges {
  min-width: 1160px;
}

.profile-body {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  align-items: start;
}

@media (min-width: 1024px) {
  .profile-body {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  }

  .profile-body__aside {
    position: sticky;
    top: calc(0.85rem + 48px);
  }
}

.profile-body__main {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.profile-body__flash {
  grid-column: 1 / -1;
  margin: 0;
}

.profile-panel {
  padding: 0;
  overflow: hidden;
}

.profile-panel__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0;
  padding: 1rem 1.25rem;
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--text);
  background: linear-gradient(180deg, rgba(184, 134, 11, 0.06) 0%, transparent 100%);
  border-bottom: 1px solid var(--border);
}

.profile-panel__title-text {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.profile-panel__edit {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  color: var(--accent);
  border: 1px solid rgba(184, 134, 11, 0.35);
  background: var(--accent-soft);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.profile-panel__edit:hover {
  color: var(--accent-dark);
  border-color: rgba(184, 134, 11, 0.55);
  background: rgba(184, 134, 11, 0.12);
}

.profile-panel__edit--doc {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.profile-panel__form {
  padding: 1rem 1.25rem 1.15rem;
}

.profile-panel__form-grid {
  margin: 0;
}

.profile-panel__form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: flex-end;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
}

.profile-panel__icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 12px;
  background-color: var(--accent-soft);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 20px;
  border: 1px solid rgba(184, 134, 11, 0.2);
}

.profile-panel__icon--phone {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%231e3a5f'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='1.75' d='M3 5a2 2 0 012-2h3.28a1 1 0 01.948.684l1.498 4.493a1 1 0 01-.502 1.21l-2.257 1.13a11.042 11.042 0 005.516 5.516l1.13-2.257a1 1 0 011.21-.502l4.493 1.498a1 1 0 01.684.949V19a2 2 0 01-2 2h-1C9.716 21 3 14.284 3 6V5z'/%3E%3C/svg%3E");
}

.profile-panel__icon--id {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%231e3a5f'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='1.75' d='M10 6H5a2 2 0 00-2 2v9a2 2 0 002 2h14a2 2 0 002-2V8a2 2 0 00-2-2h-5m-4-3v6m0 0v6m0-6h6m-6 0H8'/%3E%3C/svg%3E");
}

.profile-panel__icon--user {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%231e3a5f'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='1.75' d='M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z'/%3E%3C/svg%3E");
}

.profile-kv {
  margin: 0;
  padding: 0.35rem 1.25rem 0.5rem;
}

.profile-kv__row {
  display: grid;
  grid-template-columns: minmax(120px, 38%) 1fr;
  gap: 0.5rem 1.25rem;
  align-items: baseline;
  padding: 0.72rem 0;
  border-bottom: 1px solid var(--border);
}

.profile-kv__row:last-child {
  border-bottom: none;
}

.profile-kv__row--block {
  display: block;
  padding: 0.72rem 0;
}

.profile-kv__row--block dt {
  margin-bottom: 0.4rem;
}

.profile-kv__row--block dd {
  margin: 0;
}

.profile-kv dt {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.profile-kv dd {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.5;
  word-break: break-word;
}

.profile-mono {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
  background: var(--bg-muted);
  border: 1px solid var(--border);
  color: var(--text);
}

.profile-body__aside {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.profile-doc-card {
  padding: 1rem 1.15rem 1.15rem;
}

.profile-doc-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.profile-doc-card__head .profile-doc-card__title {
  margin: 0;
}

.profile-doc-card__title {
  margin: 0 0 0.85rem;
  font-size: 0.9375rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.profile-doc-card__form .profile-doc-card__upload-hint {
  margin: 0 0 0.65rem;
}

.profile-doc-card__form .profile-panel__form-actions {
  margin-top: 0.85rem;
}

.profile-doc-card__frame--dim {
  opacity: 0.88;
  margin-bottom: 0.75rem;
}

.profile-doc-card__frame {
  display: block;
  line-height: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: var(--bg-muted);
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.profile-doc-card__frame:hover {
  box-shadow: var(--shadow-soft);
  transform: translateY(-1px);
}

.profile-doc-card__img {
  width: 100%;
  height: auto;
  max-height: 260px;
  object-fit: contain;
  display: block;
  vertical-align: middle;
}

.profile-doc-card__hint {
  margin: 0.55rem 0 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-align: center;
}

.profile-doc-card__empty {
  padding: 1.25rem 0.75rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  background: var(--bg-muted);
  border-radius: var(--radius-md);
  border: 1px dashed var(--border-strong);
}

.table-footnote {
  margin: 0.75rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.empty-state {
  text-align: center;
  padding: 2rem 1.5rem;
}

/* Pledge — customer search & preview */
.pledge-customer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem 1rem;
}

@media (max-width: 639px) {
  .pledge-customer-row {
    flex-direction: column;
    align-items: stretch;
  }

  .pledge-create-customer {
    width: 100%;
    justify-content: center;
  }
}

.pledge-search-wrap {
  position: relative;
  flex: 1 1 320px;
  min-width: min(100%, 280px);
}

.pledge-create-customer {
  flex: 0 0 auto;
  white-space: nowrap;
}

.search-dropdown {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 100;
  width: 100%;
  min-width: 100%;
  max-height: min(320px, 55vh);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--bg-card);
  border: 1px solid rgba(184, 134, 11, 0.28);
  border-radius: var(--radius-md);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.6) inset,
    0 18px 50px rgba(15, 23, 42, 0.12),
    0 8px 20px rgba(15, 23, 42, 0.08);
}

.search-dropdown__item {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.45rem;
  width: 100%;
  margin: 0;
  text-align: left;
  padding: 0.85rem 1rem;
  border: none;
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
  font: inherit;
  cursor: pointer;
  color: var(--text);
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.search-dropdown__item:first-child {
  border-top-left-radius: calc(var(--radius-md) - 1px);
  border-top-right-radius: calc(var(--radius-md) - 1px);
}

.search-dropdown__item:last-child {
  border-bottom: none;
  border-bottom-left-radius: calc(var(--radius-md) - 1px);
  border-bottom-right-radius: calc(var(--radius-md) - 1px);
}

.search-dropdown__item:hover {
  background: linear-gradient(105deg, rgba(184, 134, 11, 0.07) 0%, #fff 38%);
}

.search-dropdown__item:focus {
  outline: none;
}

.search-dropdown__item:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
  position: relative;
  z-index: 1;
}

.search-dropdown__item-name {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--text);
}

.search-dropdown__item-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.5rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.search-dropdown__meta-pill {
  display: inline;
  padding: 0;
}

.search-dropdown__meta-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-dark);
  margin-right: 0.35rem;
}

.search-dropdown__meta-sep {
  color: #cbd5e1;
  font-weight: 300;
  user-select: none;
}

.search-dropdown__empty {
  padding: 1rem 1.1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
  line-height: 1.5;
}

.customer-preview-card {
  margin-top: 1rem;
}

.customer-preview-card__inner {
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(184, 134, 11, 0.28);
  background: linear-gradient(155deg, rgba(184, 134, 11, 0.06) 0%, var(--bg-card) 100%);
}

.customer-preview-card__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  margin: 0 0 0.65rem;
  color: var(--text);
}

.customer-preview-card__body {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  align-items: start;
}

@media (min-width: 520px) {
  .customer-preview-card__body {
    grid-template-columns: 104px 1fr;
  }
}

.customer-preview-card__photo {
  justify-self: center;
}

@media (min-width: 520px) {
  .customer-preview-card__photo {
    justify-self: start;
  }
}

.customer-preview-card__photo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 2px 10px rgba(12, 25, 41, 0.08);
  background: var(--bg-muted);
  transition: box-shadow 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

@media (min-width: 520px) {
  .customer-preview-card__photo-link {
    margin: 0;
  }
}

.customer-preview-card__photo-link:hover {
  border-color: rgba(201, 162, 39, 0.45);
  box-shadow: 0 6px 18px rgba(12, 25, 41, 0.12);
  transform: translateY(-1px);
}

.customer-preview-card__photo-link--pdf {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--erp-accent);
  text-decoration: none;
  background: linear-gradient(160deg, var(--erp-navy-mid) 0%, var(--erp-navy) 100%);
  border-color: rgba(201, 162, 39, 0.35);
}

.customer-preview-card__photo-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.customer-preview-card__photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  margin: 0 auto;
  border-radius: 12px;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--erp-navy-mid);
  background: linear-gradient(145deg, var(--bg-muted) 0%, #e2e8f0 100%);
  border: 1px dashed var(--border-strong);
}

@media (min-width: 520px) {
  .customer-preview-card__photo-placeholder {
    margin: 0;
  }
}

.customer-preview-card__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 1rem;
  font-size: 0.9rem;
}

@media (min-width: 640px) {
  .customer-preview-card__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.customer-preview-card__grid .full {
  grid-column: 1 / -1;
}

.customer-preview-card__grid div span {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
}


/* Interest received row */
.interest-check {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-muted);
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
  user-select: none;
}

.interest-check__input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.interest-check__label {
  font-size: 0.9rem;
}


/* Modal */
body.modal-open {
  overflow: hidden;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(2px);
}

.modal__panel {
  position: relative;
  width: min(720px, calc(100% - 2rem));
  margin: 10vh auto;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(184, 134, 11, 0.06) 0%, transparent 100%);
}

.modal__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  font-size: 1.35rem;
}

.modal__close {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-muted);
  color: var(--text);
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
}

.modal__close:hover {
  background: var(--bg-card-hover);
}

.modal__body {
  padding: 1.1rem 1.25rem 1.25rem;
}

.due-chart-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-dark);
}

.due-chart-link:hover {
  text-decoration: underline;
}


/* Modal */
body.modal-open {
  overflow: hidden;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(2px);
}

.modal__panel {
  position: relative;
  width: min(760px, calc(100% - 2rem));
  margin: 10vh auto;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(184, 134, 11, 0.06) 0%, transparent 100%);
}

.modal__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  font-size: 1.35rem;
}

.modal__close {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-muted);
  color: var(--text);
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
}

.modal__close:hover {
  background: var(--bg-card-hover);
}

.modal__body {
  padding: 1.1rem 1.25rem 1.25rem;
}

.due-chart-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-dark);
}

.due-chart-link:hover {
  text-decoration: underline;
}

.due-chart__meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem;
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--border);
  background: var(--bg-muted);
  border-radius: var(--radius-md);
  margin-bottom: 0.9rem;
}

@media (min-width: 640px) {
  .due-chart__meta {
    grid-template-columns: repeat(3, 1fr);
  }
}

.due-chart__meta span {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.due-chart__meta strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text);
}

.due-chart__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.4rem;
  max-height: min(52vh, 520px);
  overflow: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.due-chart__list li {
  padding: 0.6rem 0.85rem;
  border-bottom: 1px solid var(--border);
}

.due-chart__list li:last-child {
  border-bottom: none;
}

.due-chart__idx {
  display: inline-block;
  min-width: 2.2rem;
  color: var(--text-muted);
  font-weight: 700;
}

.due-chart__row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
}

.due-chart__date {
  white-space: nowrap;
}

.due-chart__amt {
  font-weight: 800;
  color: var(--text);
  white-space: nowrap;
}


/* Due date chart table */
.due-chart-table-wrap {
  width: 100%;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-card);
}

.due-chart-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}

.due-chart-table thead th {
  text-align: left;
  padding: 0.7rem 0.85rem;
  background: var(--bg-muted);
  color: var(--text-muted);
  font-weight: 800;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.due-chart-table tbody td {
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--border);
}

.due-chart-table tbody tr:last-child td {
  border-bottom: none;
}

.due-chart-table__idx {
  width: 64px;
  color: var(--text-muted);
  font-weight: 800;
}

.due-chart-table__date {
  white-space: nowrap;
  font-weight: 700;
}

.due-chart-table__amt {
  text-align: right;
  white-space: nowrap;
  font-weight: 900;
}


/* Pledge create layout */
.pledge-top-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem 1rem;
}

@media (min-width: 900px) {
  .pledge-top-row {
    grid-template-columns: 420px 1fr;
    align-items: end;
  }
}

.pledge-photo-top {
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
}

.pledge-top-row__meta {
  padding: 0.25rem 0;
}

.pledge-product-name {
  max-width: min(100%, 42rem);
}

.pledge-due-row {
  justify-content: flex-start;
  align-items: flex-start;
  gap: 0.65rem 1rem;
}

@media (min-width: 720px) {
  .pledge-due-row {
    flex-wrap: nowrap;
    align-items: center;
  }
}
