@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green-900: #0a3d2e;
  --green-800: #0d6e4f;
  --green-700: #12875f;
  --green-100: #e8f5ef;
  --gold: #c9a227;
  --gold-light: #f0d060;
  --bg: #f0f4f8;
  --white: #ffffff;
  --text: #1a2332;
  --muted: #64748b;
  --border: #e2e8f0;
  --danger: #dc2626;
  --sidebar: 260px;
  --radius: 14px;
  --shadow: 0 4px 24px rgba(10, 61, 46, 0.08);
  --font: 'Plus Jakarta Sans', system-ui, sans-serif;
}

html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font); background: var(--bg); color: var(--text);
  line-height: 1.5; min-height: 100vh; overflow-x: hidden;
}
.hidden { display: none !important; }

/* Login */
.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(10, 61, 46, 0.8) 0%, rgba(13, 110, 79, 0.8) 45%, rgba(15, 92, 66, 0.8) 100%), 
              url('../assets/logo/bg.jfif') center/cover no-repeat fixed;
  position: relative;
  overflow: hidden;
}

.login-screen::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: rgba(201, 162, 39, 0.12);
  top: -150px; right: -100px;
}

.login-container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0;
  max-width: 1400px;
  width: 100%;
  position: relative;
  z-index: 1;
  align-items: stretch;
  height: auto;
  min-height: 600px;
}

.login-welcome {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 3rem 2rem 2rem;
  background: rgba(0, 0, 0, 0.2);
}

.welcome-content {
  color: var(--white);
  text-align: center;
  animation: slideInLeft 0.6s ease-out;
}

.welcome-content h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.welcome-subtitle {
  font-size: 1rem;
  opacity: 0.9;
  margin-bottom: 1.5rem;
}

.welcome-image {
  margin: 1.5rem 0;
  max-width: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.8s ease-out 0.2s backwards;
}

.welcome-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  animation: float 3s ease-in-out infinite, fadeInScale 0.8s ease-out;
  transition: transform 0.3s ease;
}

.welcome-img:hover {
  transform: scale(1.05);
}

.welcome-description {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: slideUp 0.8s ease-out 0.3s backwards;
}

.welcome-description p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.features-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  animation: slideUp 0.8s ease-out;
}

.features-list li:nth-child(1) {
  animation-delay: 0.35s;
}

.features-list li:nth-child(2) {
  animation-delay: 0.4s;
}

.features-list li:nth-child(3) {
  animation-delay: 0.45s;
}

.features-list li:nth-child(4) {
  animation-delay: 0.5s;
}

.features-list i {
  color: var(--gold);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.welcome-footer {
  font-size: 0.9rem;
  opacity: 0.85;
  margin-top: 1.5rem;
}

.welcome-footer i {
  color: var(--gold);
  margin: 0 0.5rem;
}

.login-form-section {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.05);
  animation: slideInRight 0.6s ease-out;
}

.login-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  position: relative;
  z-index: 1;
}

.login-logo {
  text-align: center;
  margin-bottom: 2rem;
}

.login-brand-logo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: contain;
  display: inline-block;
  margin-bottom: 1rem;
  box-shadow: 0 8px 20px rgba(13, 110, 79, 0.2);
}

.login-logo h1 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--green-900);
}

.login-logo p {
  color: var(--gold);
  font-style: italic;
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

.login-error {
  color: var(--danger);
  font-size: 0.85rem;
  text-align: center;
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: #fee2e2;
  border: 1.5px solid var(--danger);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  animation: slideUp 0.3s ease-out;
}

.login-error::before {
  content: '⚠';
  font-size: 1.1rem;
  flex-shrink: 0;
}

.login-footer {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.text-center {
  text-align: center;
}

.text-muted {
  color: var(--muted);
  font-size: 0.85rem;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-15px);
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Responsive */
@media (max-width: 900px) {
  .login-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    min-height: auto;
  }

  .login-welcome {
    padding: 1.5rem;
    background: transparent;
  }

  .login-form-section {
    justify-content: center;
    padding: 1.5rem;
    background: transparent;
  }

  .welcome-content h2 {
    font-size: 1.5rem;
  }

  .welcome-image {
    max-width: 100%;
  }

  .welcome-description {
    padding: 1.25rem;
  }

  .login-card {
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  .login-container {
    padding: 0;
  }

  .welcome-content h2 {
    font-size: 1.25rem;
  }

  .welcome-subtitle {
    font-size: 0.9rem;
  }

  .welcome-image {
    margin: 1rem 0;
    border-radius: 12px;
  }

  .welcome-description {
    padding: 1rem;
    margin: 1rem 0;
  }

  .welcome-description p {
    font-size: 0.85rem;
  }

  .features-list li {
    font-size: 0.85rem;
    gap: 0.5rem;
  }

  .features-list i {
    font-size: 1rem;
  }

  .login-card {
    padding: 1.5rem;
  }

  .login-brand-logo {
    width: 100px;
    height: 100px;
  }

  .login-logo h1 {
    font-size: 1.35rem;
  }
}

/* Layout */
.app-shell { display: flex; min-height: 100vh; }
.sidebar {
  width: var(--sidebar);
  background: linear-gradient(180deg, var(--green-900), var(--green-800));
  color: #fff;
  position: fixed; inset: 0 auto 0 0;
  display: flex; flex-direction: column;
  z-index: 200;
  transition: transform 0.25s ease;
}
.sidebar-brand { padding: 1.25rem; border-bottom: 1px solid rgba(255,255,255,0.1); display: flex; align-items: center; gap: 0.75rem; }
.sidebar-brand-logo { width: 76px; height: 76px; border-radius: 50%; object-fit: contain; background: #fff; flex-shrink: 0; }
.sidebar-brand h2 { font-size: 1.15rem; font-weight: 800; }
.sidebar-brand h2 em { color: var(--gold); font-style: normal; }
.sidebar-brand small { opacity: 0.65; font-size: 0.72rem; display: block; margin-top: 0.2rem; }
.sidebar-nav { flex: 1; padding: 1rem 0.75rem; overflow-y: auto; }
.nav-link {
  display: flex; align-items: center; gap: 0.75rem;
  width: 100%; padding: 0.75rem 1rem;
  border: none; background: transparent;
  color: rgba(255,255,255,0.75);
  font: 600 0.875rem var(--font);
  border-radius: 10px; cursor: pointer;
  margin-bottom: 0.25rem; transition: 0.2s;
  text-align: left;
}
.nav-link i { width: 20px; text-align: center; }
.nav-link:hover { background: rgba(255,255,255,0.1); color: #fff; }
.nav-link.active { background: var(--gold); color: var(--green-900); box-shadow: 0 4px 12px rgba(201,162,39,0.35); }
.sidebar-foot { padding: 1rem 1.25rem; border-top: 1px solid rgba(255,255,255,0.1); }
.user-row { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }
.user-av {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--gold); color: var(--green-900);
  display: grid; place-items: center; font-weight: 800; font-size: 0.8rem;
}
.user-row span { display: block; font-size: 0.85rem; font-weight: 600; }
.user-row small { font-size: 0.7rem; opacity: 0.65; }

.main { flex: 1; margin-left: var(--sidebar); display: flex; flex-direction: column; min-height: 100vh; }
.topbar {
  height: auto; min-height: 64px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 0.65rem;
  padding: 0.65rem 1rem;
  position: sticky; top: 0; z-index: 100;
}
.topbar-left { display: flex; align-items: center; gap: 0.75rem; min-width: 0; flex: 1; }
.menu-btn {
  display: none; background: none; border: none;
  font-size: 1.25rem; cursor: pointer; padding: 0.5rem;
  border-radius: 8px; color: var(--text);
  min-width: 44px; min-height: 44px;
}
.page-title {
  font-size: clamp(1rem, 3.5vw, 1.25rem);
  font-weight: 800; color: var(--green-900);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.topbar-action { flex-shrink: 0; }
.content { flex: 1; padding: 1.5rem; max-width: 1400px; width: 100%; min-width: 0; }
.page { display: none; animation: fadeIn 0.3s ease; }
.page.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 150; }
.overlay.show { display: block; }

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 1rem; margin-bottom: 1.5rem;
}
.stat {
  background: var(--white); border-radius: var(--radius);
  padding: 1.5rem; border: 1px solid var(--border);
  position: relative; overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.stat:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.stat::after {
  content: ''; position: absolute; top: 0; left: 0;
  width: 4px; height: 100%; background: var(--gold);
}
.stat-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--green-100); color: var(--green-800);
  display: grid; place-items: center; font-size: 1.1rem; margin-bottom: 1rem;
}
.stat-val { font-size: clamp(1.15rem, 4vw, 1.75rem); font-weight: 800; color: var(--green-900); letter-spacing: -0.03em; word-break: break-word; }
.stat-lbl { font-size: 0.85rem; color: var(--muted); margin-top: 0.15rem; }

/* Cards */
.grid-2 { display: grid; grid-template-columns: 1.6fr 1fr; gap: 1.25rem; }
.card {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--border); overflow: visible;
  margin-bottom: 1.25rem;
}
.card-head {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 0.75rem;
  padding: 1.15rem 1.5rem; border-bottom: 1px solid var(--border);
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--white);
}
.card-head h3 { font-size: 1rem; font-weight: 700; color: var(--green-900); display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.card-head-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.card-body { padding: 1.25rem 1.5rem; min-width: 0; }
.panel-form { margin-top: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
  padding: 0.6rem 1.15rem; border: none; border-radius: 10px;
  font: 600 0.85rem var(--font); cursor: pointer; transition: 0.2s;
}
.btn-primary { background: var(--green-800); color: #fff; }
.btn-primary:hover { background: var(--green-700); }
.btn-gold { background: var(--gold); color: var(--green-900); }
.btn-gold:hover { background: var(--gold-light); }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn-outline:hover { background: var(--bg); }
.btn-danger { background: var(--danger); color: #fff; border: 1px solid var(--danger); }
.btn-danger:hover { background: #b91c1c; }
.btn-sm { padding: 0.35rem 0.75rem; font-size: 0.78rem; }
.btn-block { width: 100%; }
.btn-ghost { background: rgba(255,255,255,0.1); color: #fff; border: 1px solid rgba(255,255,255,0.2); }
.btn-ghost:hover { background: rgba(255,255,255,0.18); }
.btn-danger-text { background: none; border: none; color: rgba(255,255,255,0.5); font-size: 0.75rem; cursor: pointer; margin-top: 0.5rem; width: 100%; }
.btn-danger-text:hover { color: #fca5a5; }
.actions-col { display: flex; flex-direction: column; gap: 0.65rem; }

/* Tables */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -0.25rem;
  padding: 0 0.25rem;
}
table { width: 100%; border-collapse: collapse; font-size: 0.875rem; min-width: 520px; }
th { background: var(--green-800); color: #fff; padding: 0.75rem 1rem; text-align: left; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; white-space: nowrap; }
td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); vertical-align: top; }
td:has(.btn) { white-space: normal; min-width: 9rem; }
td:has(.btn) .btn { margin: 0.15rem 0.35rem 0.15rem 0; }
tr:hover td { background: #f8fafc; }
td.empty { text-align: center; color: var(--muted); padding: 2rem !important; }

/* Badges & tx types */
.badge { display: inline-block; padding: 0.15rem 0.6rem; border-radius: 99px; font-size: 0.72rem; font-weight: 700; text-transform: capitalize; }
.badge-active { background: #dcfce7; color: #166534; }
.badge-pending { background: #fef9c3; color: #854d0e; }
.badge-inactive { background: #fee2e2; color: #991b1b; }
.dash-welcome {
  font-size: 0.9rem; font-weight: 600; color: var(--green-800);
  background: var(--green-100); padding: 0.75rem 1rem;
  border-radius: 10px; margin-bottom: 1.25rem;
  display: flex; align-items: flex-start; gap: 0.5rem;
  flex-wrap: wrap; line-height: 1.45;
}
.role-dashboard { animation: fadeIn 0.3s ease; }

.filter-tabs { display: flex; gap: 0.35rem; flex-wrap: wrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 0.15rem; }
.filter-tab {
  padding: 0.35rem 0.75rem; border: 1px solid var(--border);
  background: var(--white); border-radius: 8px;
  font: 600 0.78rem var(--font); cursor: pointer; color: var(--muted);
}
.filter-tab.active { background: var(--green-800); color: #fff; border-color: var(--green-800); }
.loan-stats { margin-bottom: 1.25rem; }

.role-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.role-card {
  background: var(--bg); border-radius: 12px; padding: 1rem;
  border: 1px solid var(--border);
}
.role-card h4 { font-size: 0.9rem; color: var(--green-900); margin-bottom: 0.4rem; display: flex; align-items: center; gap: 0.4rem; }
.role-card p { font-size: 0.82rem; color: var(--muted); line-height: 1.5; }

.badge-completed { background: #dbeafe; color: #1e40af; }
.badge-rejected { background: #fee2e2; color: #991b1b; }
.badge-defaulted { background: #fecaca; color: #7f1d1d; }
.badge-approved { background: #dcfce7; color: #166534; }
.badge-closed { background: #e0e7ff; color: #3730a3; }
.badge-matured { background: #cffafe; color: #155e75; }
/* Voided records stay visible for the audit trail but never count in totals. */
.badge-voided { background: #f3e8ff; color: #6b21a8; text-decoration: line-through; }
/* Required-field marker used by the expenditure form/void dialogs. */
.req { color: #b91c1c; font-weight: 700; }
.tx-type { font-weight: 600; text-transform: capitalize; font-size: 0.8rem; }
.tx-deposit { color: #166534; }
.tx-withdraw { color: #b45309; }

/* Forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.25rem; }
.form-grid .span-2 { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 0.35rem; position: relative; }
.field label { font-size: 0.78rem; font-weight: 600; color: var(--text); }
.field input, .field select, .field textarea {
  padding: 0.6rem 0.85rem; border: 1px solid var(--border);
  border-radius: 10px; font: inherit; background: var(--white); transition: 0.2s;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,162,39,0.2); }
.field input[readonly] { background: var(--bg); }

/* Login Form Accessibility */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-group input[type="text"],
.form-group input[type="password"] {
  padding: 0.65rem 0.85rem;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font: inherit;
  background: var(--white);
  transition: all 0.2s ease;
  font-size: 1rem;
}

.form-group input[type="text"]:focus,
.form-group input[type="password"]:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.2);
  background: var(--white);
}

.form-help {
  font-size: 0.75rem;
  color: var(--muted);
  display: block;
}

.password-field {
  position: relative;
  display: flex;
  align-items: center;
}

.password-field input {
  width: 100%;
  padding-right: 2.8rem;
}

.btn-toggle-password {
  position: absolute;
  right: 0.85rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  padding: 0.5rem;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  min-width: 44px;
  min-height: 44px;
}

.btn-toggle-password:hover {
  color: var(--green-800);
  background: rgba(13, 110, 79, 0.1);
}

.btn-toggle-password:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--gold);
  color: var(--green-800);
}

/* Checkbox Styling */
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  user-select: none;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--gold);
  border-radius: 4px;
  flex-shrink: 0;
}

.checkbox-label input[type="checkbox"]:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--gold);
}

.checkbox-label:hover input[type="checkbox"] {
  box-shadow: 0 0 0 2px rgba(201, 162, 39, 0.3);
}

.form-group input:disabled {
  background: var(--bg);
  cursor: not-allowed;
  opacity: 0.6;
}
.form-foot { grid-column: 1 / -1; display: flex; gap: 0.75rem; justify-content: flex-end; flex-wrap: wrap; padding-top: 0.25rem; }
.form-section { margin-top: 0.5rem; padding-top: 0.25rem; border-top: 1px dashed var(--border); }
.form-section h4 { font-size: 0.85rem; font-weight: 700; color: var(--green-800); margin-bottom: 0.25rem; }
.form-subtitle { font-size: 0.75rem; color: var(--muted); font-weight: 500; }
.application-form .form-section:first-of-type { border-top: none; margin-top: 0; }
.photo-upload-row { display: flex; align-items: center; gap: 1rem; }
.photo-upload-row input[type="file"] { max-width: 320px; }
.applicant-photo-preview { width: 78px; height: 78px; border: 1px solid var(--border); border-radius: 8px; object-fit: cover; background: var(--bg); }

/* PDF preview */
.pdf-preview-body { padding: 0 !important; }
.pdf-preview-body iframe {
  width: 100%; height: 520px; border: none;
  border-top: 1px solid var(--border);
}
.pdf-preview-body .muted { padding: 1rem 1.5rem; }

/* Printable application form */
.print-form { font-size: 0.875rem; color: var(--text); }
.print-form-header {
  display: flex; align-items: center; gap: 1rem;
  padding-bottom: 1rem; border-bottom: 2px solid var(--green-800);
  margin-bottom: 1rem;
}
.print-form-logo {
  width: 88px; height: 88px; border-radius: 50%;
  background: var(--green-100); color: var(--green-800);
  display: grid; place-items: center; font-size: 1.5rem;
}
.print-form-logo img { width: 100% !important; height: 100% !important; object-fit: contain !important; border-radius: 50% !important; }
.print-form-header h2 { font-size: 1.25rem; color: var(--green-900); }
.print-form-header p { font-size: 0.8rem; color: var(--muted); }
.print-form-header .motto { color: var(--gold); font-style: italic; }
.print-form-title { text-align: center; font-size: 1rem; font-weight: 800; color: var(--green-900); margin: 1rem 0 0.5rem; text-transform: uppercase; letter-spacing: 0.06em; }
.application-print-title { position: relative; min-height: 92px; display: flex; justify-content: center; align-items: flex-start; }
.application-print-title .print-form-title { flex: 1; }
.application-print-photo { position: absolute; right: 0; top: 0; width: 78px; height: 78px; object-fit: cover; border: 1px solid var(--border); border-radius: 4px; }
.print-form-ref { text-align: center; font-size: 0.8rem; color: var(--muted); margin-bottom: 1.25rem; }
.print-section { margin-bottom: 1rem; }
.print-section h4 { font-size: 0.78rem; font-weight: 700; color: var(--green-800); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 0.5rem; padding-bottom: 0.25rem; border-bottom: 1px solid var(--border); }
.print-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.65rem 1rem; }
.print-grid label { font-size: 0.68rem; color: var(--muted); font-weight: 600; text-transform: uppercase; display: block; }
.print-grid p { font-weight: 600; margin-top: 0.1rem; }
.print-grid .span-2 { grid-column: 1 / -1; }
.member-profile-photo { width: 112px; height: 112px; object-fit: cover; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); }
.print-section.declaration p { font-size: 0.82rem; line-height: 1.6; margin-bottom: 1rem; }
.print-signatures { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 1.5rem; }
.print-signatures label { font-size: 0.72rem; color: var(--muted); font-weight: 600; text-transform: uppercase; }
.sig-line { border-bottom: 1px solid var(--text); min-height: 1.75rem; padding-bottom: 0.25rem; margin: 0.35rem 0; font-style: italic; }
.print-signatures small { color: var(--muted); font-size: 0.75rem; }
.no-print { }

.check-row { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; }
.check-row input { width: 18px; height: 18px; accent-color: var(--green-800); }
.radio-row { display: flex; flex-wrap: wrap; gap: 1rem; }

/* Member search dropdown */
.suggestions {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0;
  background: var(--white); border: 1px solid var(--border);
  border-radius: 10px; box-shadow: var(--shadow);
  max-height: min(280px, 50vh);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--green-800) var(--bg);
  z-index: 200; display: none;
}
.suggestions::-webkit-scrollbar { width: 8px; }
.suggestions::-webkit-scrollbar-track { background: var(--bg); border-radius: 0 10px 10px 0; }
.suggestions::-webkit-scrollbar-thumb {
  background: var(--green-800); border-radius: 8px; border: 2px solid var(--bg);
}
.suggestions::-webkit-scrollbar-thumb:hover { background: var(--green-700); }
.suggest-item { padding: 0.6rem 0.85rem; cursor: pointer; border-bottom: 1px solid var(--border); font-size: 0.85rem; }
.suggest-item:last-child { border-bottom: none; }
.suggest-item:hover, .suggest-item.active { background: var(--green-100); }
.suggest-item small { color: var(--muted); margin-left: 0.35rem; display: block; margin-top: 0.15rem; }
.suggest-item.muted { cursor: default; color: var(--muted); }
.search-bar { padding: 0 0 1rem; max-width: 100%; width: 100%; position: relative; z-index: 1; }
.search-bar input { width: 100%; }
.field:has(.suggestions) { z-index: 1; }
.panel-form .field:has(.member-search) { z-index: 2; }

.dash-detail-body { min-height: 120px; }
.dash-detail-empty {
  display: flex; align-items: center; justify-content: center;
  padding: 2rem 1rem; text-align: center;
  background: var(--bg); border-radius: 10px; border: 1px dashed var(--border);
}
.dash-detail-empty p { margin: 0; max-width: 280px; line-height: 1.5; }
.dash-detail-panel { margin-top: 0.75rem; }
.dash-detail-panel h4 { font-size: 0.9rem; color: var(--green-900); margin: 1rem 0 0.5rem; }
.dash-detail-panel h4:first-child { margin-top: 0; }

/* Charts */
.chart-box { background: var(--bg); border-radius: 12px; padding: 1.25rem; text-align: center; }
.chart-box h4 { font-size: 0.95rem; color: var(--green-900); margin-bottom: 1rem; }
.charts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.chart-box canvas { max-width: 100%; }
.chart-note { font-size: 0.78rem; margin: 0.75rem 0 0; }
.chart-fallback { font-size: 0.85rem; line-height: 1.5; margin: 0; padding: 2.5rem 0.5rem; }
.report-filters .form-foot { display: flex; gap: 0.75rem; flex-wrap: wrap; padding-top: 0.5rem; }
.report-filter-hint { margin: 0 0 1rem; }
.report-filter-actions { margin-top: 0.25rem; }
.report-summary { margin-bottom: 1.25rem; }
.report-charts { margin-bottom: 1.25rem; }
.report-print-header {
  text-align: center; margin-bottom: 1.25rem; padding-bottom: 1rem;
  border-bottom: 2px solid var(--green-800);
}
.report-print-area {
  position: relative; background: var(--white); overflow: hidden;
}
.report-watermark {
  position: absolute; inset: 0; z-index: 0;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.report-watermark img {
  width: min(72%, 380px); height: auto; opacity: 0.14;
}
.report-print-content { position: relative; z-index: 1; }
.report-print-brand {
  display: flex; align-items: center; justify-content: center;
  gap: 1rem; text-align: left; flex-wrap: wrap;
}
.report-brand-logo { width: 100px; height: 100px; flex-shrink: 0; object-fit: contain; border-radius: 50%; background: #fff; }
.report-print-brand h2 { font-size: 1.35rem; color: var(--green-900); margin-bottom: 0.15rem; }
.report-print-brand p { color: var(--gold); font-style: italic; font-size: 0.85rem; margin: 0; }
.report-print-header h3 { font-size: 1rem; font-weight: 800; color: var(--green-900); margin: 0.75rem 0 0.35rem; text-transform: uppercase; letter-spacing: 0.05em; }
.report-print-meta { font-size: 0.78rem; color: var(--muted); margin: 0; }
.report-footer { font-size: 0.75rem; margin-top: 1rem; text-align: right; }
.report-signatures {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2rem;
  margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--border);
}
.report-sign-box { text-align: center; }
.report-sign-label {
  display: block; font-size: 0.72rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--green-900); margin-bottom: 0.35rem;
}
.report-sign-name { font-size: 0.9rem; font-weight: 700; color: var(--text); margin: 0.25rem 0 0.5rem; min-height: 1.25rem; }
.report-sign-blank { visibility: hidden; }
.report-sign-line {
  border-bottom: 1px solid var(--text); width: 85%; margin: 0.75rem auto 0.35rem; min-height: 1px;
}
.report-sign-date { font-size: 0.72rem; margin: 0.35rem 0 0; }
.report-table-title { font-size: 0.9rem; font-weight: 700; color: var(--green-900); margin: 1rem 0 0.5rem; }

/* Modal */
.modal {
  position: fixed; inset: 0; background: rgba(15,23,42,0.55);
  display: none; align-items: center; justify-content: center;
  z-index: 1000; padding: 1rem; backdrop-filter: blur(3px);
}
.modal.open { display: flex; }
.modal-box {
  background: var(--white); border-radius: var(--radius);
  width: 100%; max-width: 520px; max-height: 90vh; overflow-y: auto;
  box-shadow: 0 24px 64px rgba(0,0,0,0.2);
  animation: modalIn 0.25s ease;
}
.modal-box.lg { max-width: 680px; }
@keyframes modalIn { from { opacity: 0; transform: scale(0.96) translateY(10px); } to { opacity: 1; transform: none; } }
.modal-head { padding: 1.15rem 1.5rem; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.modal-head h3 { font-size: 1.05rem; color: var(--green-900); }
.modal-close { background: none; border: none; font-size: 1.4rem; cursor: pointer; color: var(--muted); line-height: 1; }
.modal-body { padding: 1.5rem; }
.modal-foot { padding: 1rem 1.5rem; border-top: 1px solid var(--border); display: flex; gap: 0.75rem; justify-content: flex-end; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.detail-grid label { font-size: 0.72rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.detail-grid p { font-weight: 600; margin-top: 0.15rem; }
.detail-grid .span-2 { grid-column: 1 / -1; }
.detail-grid + hr { border: none; border-top: 1px solid var(--border); margin: 1.25rem 0; }
.modal-body h4 { font-size: 0.9rem; color: var(--green-800); margin: 0.75rem 0 0.4rem; }
.muted { color: var(--muted); font-size: 0.875rem; }

/* Toast */
.toast {
  position: fixed; bottom: 1.5rem; right: 1.5rem;
  padding: 0.85rem 1.25rem; border-radius: 10px;
  color: #fff; font-weight: 600; font-size: 0.875rem;
  z-index: 9999; box-shadow: var(--shadow);
  transform: translateY(20px); opacity: 0; transition: 0.3s; pointer-events: none;
}
.toast.show { transform: none; opacity: 1; }
.toast-success { background: var(--green-800); }
.toast-error { background: var(--danger); }

/* App footer */
.app-footer {
  text-align: center;
  padding: 1.25rem 1rem;
  border-top: 1px solid var(--border);
  background: var(--white);
}
.app-footer-title {
  margin: 0 0 0.35rem;
  font-size: 0.85rem;
  color: var(--green-800);
}
.app-footer-motto {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold-700);
  font-style: italic;
}
.app-footer-tagline {
  margin: 0;
  font-size: 0.75rem;
  color: var(--muted);
  max-width: 36rem;
  margin-inline: auto;
  line-height: 1.45;
}

.data-status-banner {
  margin: 0.75rem 1.25rem 0;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fcd34d;
}
.data-status-banner.error {
  background: #fee2e2;
  color: #991b1b;
  border-color: #fca5a5;
}

.file-protocol-notice {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10000;
  background: #fef3c7; color: #92400e; border-bottom: 1px solid #fcd34d;
  padding: 0.6rem 1rem; font-size: 0.8rem; text-align: center;
}
.file-protocol-notice code {
  background: rgba(0,0,0,0.06); padding: 0.1rem 0.35rem; border-radius: 4px;
  font-size: 0.75rem;
}
body.has-file-notice .login-screen,
body.has-file-notice .app-shell { padding-top: 2.5rem; }
body.has-file-notice .topbar { top: 2.5rem; }
body.has-file-notice .sidebar { top: 2.5rem; height: calc(100vh - 2.5rem); }

@media (max-width: 992px) {
  .sidebar {
    transform: translateX(-100%);
    width: min(var(--sidebar), 88vw);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
  }
  .sidebar.open { transform: translateX(0); }
  .main { margin-left: 0; width: 100%; }
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; }
  .grid-2, .charts-grid { grid-template-columns: 1fr; }
  .content { padding: 1.15rem; }
  .card-body { padding: 1rem 1.15rem; }
  .card-head { padding: 1rem 1.15rem; }
}

@media (max-width: 768px) {
  .login-card { padding: 1.75rem 1.25rem; }
  .login-logo h1 { font-size: 1.35rem; }
  .topbar { padding: 0.55rem 0.75rem; }
  .page-title { max-width: 42vw; }
  .topbar-action .btn-text { display: none; }
  .topbar-action { padding-left: 0.65rem; padding-right: 0.65rem; }
  .stat { padding: 1.1rem; }
  .stat-icon { width: 38px; height: 38px; font-size: 1rem; margin-bottom: 0.75rem; }
  .modal { padding: 0; align-items: flex-end; }
  .modal-box {
    max-width: 100%; max-height: 92vh;
    border-radius: var(--radius) var(--radius) 0 0;
    margin: 0;
  }
  .modal-foot, .modal-head, .modal-body { padding-left: 1rem; padding-right: 1rem; }
  .print-form-header { flex-direction: column; text-align: center; }
  .print-signatures { grid-template-columns: 1fr; gap: 1.25rem; }
  .pdf-preview-body iframe { height: min(420px, 55vh); }
  .report-filters .form-foot .btn { flex: 1 1 calc(50% - 0.375rem); min-width: 8.5rem; }
  .file-protocol-notice { font-size: 0.72rem; padding: 0.5rem 0.65rem; }
}

@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .print-grid { grid-template-columns: 1fr; }
  .content { padding: 0.85rem; }
  .stats { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .card-head {
    flex-direction: column;
    align-items: stretch;
  }
  .card-head h3 { width: 100%; }
  .card-head > div,
  .card-head > button,
  .card-head > a {
    width: 100%;
  }
  .card-head .btn { justify-content: center; }
  .card-head-actions { width: 100%; }
  .card-head-actions .btn { flex: 1 1 auto; }
  .form-foot { flex-direction: column-reverse; }
  .form-foot .btn { width: 100%; }
  .actions-col .btn { width: 100%; }
  .filter-tab { flex: 0 0 auto; }
  table { font-size: 0.8rem; min-width: 480px; }
  th, td { padding: 0.55rem 0.65rem; }
  .toast {
    left: 0.85rem; right: 0.85rem; bottom: 0.85rem;
    text-align: center;
  }
  .app-footer { padding: 0.75rem; }
  .app-footer-tagline { font-size: 0.68rem; }
  .report-filters .form-foot .btn { flex: 1 1 100%; }
  .report-signatures { grid-template-columns: 1fr; gap: 1.5rem; }
}

@media (max-width: 420px) {
  .stats { grid-template-columns: 1fr; }
  .page-title { max-width: 36vw; font-size: 0.95rem; }
  .btn { min-height: 44px; }
  .btn-sm { min-height: 38px; }
  .nav-link { min-height: 44px; }
  .dash-detail-empty { padding: 1.25rem 0.75rem; }
}

/* Receipts print on 3.1in (80mm) x 6.8in thermal paper (named page, supported by modern browsers) */
@page receipt {
  size: 3.1in 6.8in;
  margin: 0mm;
}

@page {
  size: auto;
  margin: 0mm;
}

/* Receipts are deliberately monochrome: solid black text AND black rules
   throughout, for both the on-screen preview and the 58mm thermal print. The
   themed green/gold/gray colours (SACCO name, motto, labels), the inline red
   penalty highlight, and every border/rule are forced to pure black so the
   printed receipt is not coloured. Scoped to the receipt bodies only — other
   printable documents keep their colours. */
#receiptPrintBody,
#receiptPrintBody *,
#loanReceiptBody,
#loanReceiptBody * { color: #000 !important; border-color: #000 !important; }
#receiptPrintBody .print-form-header,
#loanReceiptBody .print-form-header { border-bottom-color: #000 !important; }
#receiptPrintBody .receipt-words,
#loanReceiptBody .receipt-words { background: #fff; border: 1px solid #000; }
#receiptPrintBody .receipt-no,
#receiptPrintBody .receipt-note,
#loanReceiptBody .receipt-no,
#loanReceiptBody .receipt-note { opacity: 1 !important; }
/* Receipts carry no logo — neither the header logo nor the background
   watermark. Hidden defensively so a stale cached app.js cannot re-introduce
   one on the preview or the printout. */
#receiptPrintBody .print-form-logo,
#receiptPrintBody .report-watermark,
#loanReceiptBody .print-form-logo,
#loanReceiptBody .report-watermark { display: none !important; }

@media print {
  @page {
    size: auto;
    margin: 0mm;
  }
  html, body {
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
  }
  body * { visibility: hidden; }
  .no-print, .modal-close, .app-footer, .file-protocol-notice, .sidebar, .topbar, .toast { display: none !important; }
  body.print-report .app-shell,
  body.print-report .app-shell * { visibility: hidden; }
  body.print-report #reportPrintArea,
  body.print-report #reportPrintArea * { visibility: visible; }
  body.print-report #reportPrintArea {
    position: absolute; left: 0; top: 0; width: 100%; padding: 12mm 15mm;
    box-sizing: border-box;
  }
  body.print-report #reportCharts { display: none !important; }
  /* Transactions page report printing (Print Report button) */
  body.print-transactions .app-shell,
  body.print-transactions .app-shell * { visibility: hidden; }
  body.print-transactions #page-transactions,
  body.print-transactions #page-transactions * { visibility: visible; }
  body.print-transactions #page-transactions {
    position: absolute; left: 0; top: 0; width: 100%; padding: 12mm 15mm;
    box-sizing: border-box;
  }
  body.print-transactions .col-check { display: none !important; }
  body.print-transactions table { font-size: 0.75rem; }
  .modal.open, .modal.open * { visibility: visible; }
  .modal.open {
    position: absolute; left: 0; top: 0; width: 100%;
    background: none; padding: 0;
  }
  .modal.open .modal-box { box-shadow: none; max-width: 100%; max-height: none; overflow: visible; }
  .modal.open .modal-head.no-print,
  .modal.open .modal-foot.no-print { display: none !important; }
  .print-grid { grid-template-columns: 1fr 1fr; }
  #applicationPrintBody { padding: 12mm 15mm; box-sizing: border-box; }
  body.print-report table { font-size: 0.75rem; }
  body.print-report .report-print-header { border-bottom-color: #000; }
  body.print-report .report-signatures { break-inside: avoid; page-break-inside: avoid; }
  body.print-loan-receipt .app-shell,
  body.print-loan-receipt .app-shell * { visibility: hidden; }
  body.print-loan-receipt #loanReceiptBody,
  body.print-loan-receipt #loanReceiptBody * { visibility: visible; }
  body.print-loan-receipt #loanReceiptBody {
    position: absolute; left: 0; top: 0; width: 3.1in; page: receipt; padding: 5mm 4mm;
    box-sizing: border-box;
  }
  body.print-loan-receipt #loanReceiptModal.open,
  body.print-loan-receipt #loanReceiptModal.open .modal-box { visibility: visible; }
  body.print-transaction-receipt .app-shell,
  body.print-transaction-receipt .app-shell * { visibility: hidden; }
  body.print-transaction-receipt #receiptPrintBody,
  body.print-transaction-receipt #receiptPrintBody * { visibility: visible; }
  body.print-transaction-receipt #receiptPrintBody {
    position: absolute; left: 0; top: 0; width: 3.1in; page: receipt; padding: 5mm 4mm;
    box-sizing: border-box;
  }
  body.print-transaction-receipt #receiptModal.open,
  body.print-transaction-receipt #receiptModal.open .modal-box { visibility: visible; }
  /* Receipt typography scaled for the 3.1in-wide thermal paper */
  body.print-loan-receipt #loanReceiptBody,
  body.print-transaction-receipt #receiptPrintBody {
    font-size: 3.4mm;
    background: #fff;
  }
  /* Receipts deliberately carry NO logo: no header logo and no watermark. The
     header is text-only, and the shared report watermark stays hidden here. */
  body.print-loan-receipt .report-watermark,
  body.print-transaction-receipt .report-watermark { display: none !important; }
  body.print-loan-receipt .print-form-header,
  body.print-transaction-receipt .print-form-header {
    flex-direction: column; text-align: center; gap: 2mm;
    padding-bottom: 2.5mm; margin-bottom: 2.5mm; border-bottom-width: 1px;
  }
  body.print-loan-receipt .print-form-logo,
  body.print-transaction-receipt .print-form-logo { display: none !important; }
  body.print-loan-receipt .print-form-header h2,
  body.print-transaction-receipt .print-form-header h2 { font-size: 4.4mm; line-height: 1.25; word-break: break-word; }
  body.print-loan-receipt .print-form-header p,
  body.print-transaction-receipt .print-form-header p { font-size: 3mm; }
  body.print-loan-receipt .print-form-title,
  body.print-transaction-receipt .print-form-title { font-size: 3.8mm; margin: 2mm 0 1.5mm; }
  body.print-loan-receipt .print-form-ref,
  body.print-transaction-receipt .print-form-ref { font-size: 2.6mm; margin-bottom: 2mm; word-break: break-word; }
  body.print-loan-receipt .detail-grid.loan-receipt-grid,
  body.print-transaction-receipt .detail-grid.loan-receipt-grid {
    grid-template-columns: 1fr; gap: 1.5mm; margin: 2mm 0;
  }
  body.print-loan-receipt .detail-grid label,
  body.print-transaction-receipt .detail-grid label { font-size: 2.6mm; }
  body.print-loan-receipt .detail-grid p,
  body.print-transaction-receipt .detail-grid p { font-size: 3.2mm; word-break: break-word; }
  body.print-loan-receipt .loan-receipt-declaration,
  body.print-transaction-receipt .loan-receipt-declaration {
    font-size: 2.6mm; padding: 2mm; margin: 2mm 0; line-height: 1.45; border-radius: 4px;
  }
  body.print-loan-receipt .report-signatures,
  body.print-transaction-receipt .report-signatures {
    gap: 2mm; margin-top: 3mm; padding-top: 2mm;
    break-inside: avoid; page-break-inside: avoid;
  }
  body.print-loan-receipt .report-sign-label,
  body.print-transaction-receipt .report-sign-label { font-size: 2.1mm; }
  body.print-loan-receipt .report-sign-name,
  body.print-transaction-receipt .report-sign-name { font-size: 2.6mm; min-height: 1rem; }
  body.print-loan-receipt .report-sign-line,
  body.print-transaction-receipt .report-sign-line { width: 100%; }
  body.print-loan-receipt .print-form-footer,
  body.print-transaction-receipt .print-form-footer { font-size: 2.8mm; margin-top: 2.5mm; }
  body.print-loan-receipt .receipt-words,
  body.print-transaction-receipt .receipt-words {
    font-size: 3.2mm; margin: 2.5mm 0; padding: 2mm 2.5mm;
    line-height: 1.45; break-inside: avoid; page-break-inside: avoid;
  }
  body.print-loan-receipt .receipt-thanks,
  body.print-transaction-receipt .receipt-thanks { font-weight: 800; font-size: 3.2mm; margin: 0 0 1mm; }
  body.print-loan-receipt .receipt-tel,
  body.print-transaction-receipt .receipt-tel { font-size: 2.9mm; margin: 0; word-break: break-word; }
  body.print-loan-receipt .receipt-no,
  body.print-transaction-receipt .receipt-no { font-size: 2.4mm; margin: 1mm 0 0; }
  /* Client signature block — scaled for the 58mm thermal paper, in solid black
     so the hand-written signature line prints crisply. */
  body.print-loan-receipt .receipt-client-sign,
  body.print-transaction-receipt .receipt-client-sign {
    margin: 3mm 0 0; padding-top: 2mm; border-top: 0.3mm solid #000;
    break-inside: avoid; page-break-inside: avoid;
  }
  body.print-loan-receipt .receipt-client-sign > label,
  body.print-transaction-receipt .receipt-client-sign > label { font-size: 2.1mm; }
  body.print-loan-receipt .receipt-sign-line,
  body.print-transaction-receipt .receipt-sign-line {
    border-bottom: 0.3mm solid #000; width: 100%; min-height: 8mm; margin: 2mm 0 0;
  }
  body.print-loan-receipt .receipt-schedule-title { font-size: 3.2mm; margin: 2mm 0 1mm; }
  body.print-loan-receipt .receipt-schedule table { font-size: 2.6mm; }
  body.print-loan-receipt .receipt-schedule th,
  body.print-loan-receipt .receipt-schedule td { border: 0.3mm solid #000; padding: 0.8mm 1.2mm; }
  body.print-loan-receipt .receipt-charges { break-inside: avoid; page-break-inside: avoid; }
  body.print-loan-receipt .receipt-schedule { display: none !important; }
  /* Loan repayment schedule — standalone A4 document (never mixed with the
     58mm disbursement receipt above). */
  body.print-loan-schedule .app-shell,
  body.print-loan-schedule .app-shell * { visibility: hidden; }
  body.print-loan-schedule #loanSchedulePrintArea,
  body.print-loan-schedule #loanSchedulePrintArea * { visibility: visible; }
  body.print-loan-schedule #loanSchedulePrintArea {
    position: absolute; left: 0; top: 0; width: 100%; padding: 12mm 15mm;
    box-sizing: border-box; background: #fff; font-size: 10pt;
  }
  body.print-loan-schedule #loanScheduleModal.open,
  body.print-loan-schedule #loanScheduleModal.open .modal-box { visibility: visible; }
  body.print-loan-schedule #loanScheduleModal.open .modal-box { box-shadow: none; }
  body.print-loan-schedule .loan-schedule-table table { width: 100%; border-collapse: collapse; }
  body.print-loan-schedule .loan-schedule-table th,
  body.print-loan-schedule .loan-schedule-table td { border: 1px solid #000; padding: 2mm 2.5mm; }
  body.print-loan-schedule .loan-schedule-table th { background: #f0f0f0 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body.print-loan-schedule .loan-schedule-table tr,
  body.print-loan-schedule .loan-schedule-total { break-inside: avoid; page-break-inside: avoid; }
  body.print-loan-schedule .report-signatures { break-inside: avoid; page-break-inside: avoid; }
  /* Loan due-for-payment collection list — standalone A4 landscape document. */
  body.print-loan-due-list .app-shell,
  body.print-loan-due-list .app-shell * { visibility: hidden; }
  body.print-loan-due-list #loanDuePrintArea,
  body.print-loan-due-list #loanDuePrintArea * { visibility: visible; }
  body.print-loan-due-list #loanDuePrintArea {
    position: absolute; left: 0; top: 0; width: 100%; padding: 12mm 12mm;
    box-sizing: border-box; background: #fff; font-size: 9pt;
  }
  body.print-loan-due-list #loanDueModal.open,
  body.print-loan-due-list #loanDueModal.open .modal-box { visibility: visible; }
  body.print-loan-due-list #loanDueModal.open .modal-box { box-shadow: none; }
  body.print-loan-due-list .loan-due-table table { width: 100%; border-collapse: collapse; }
  body.print-loan-due-list .loan-due-table th,
  body.print-loan-due-list .loan-due-table td { border: 1px solid #000; padding: 1.5mm 2mm; }
  body.print-loan-due-list .loan-due-table th { background: #f0f0f0 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body.print-loan-due-list .loan-due-table tr,
  body.print-loan-due-list .loan-due-total { break-inside: avoid; page-break-inside: avoid; }
  body.print-loan-due-list .report-signatures { break-inside: avoid; page-break-inside: avoid; }
  /* Member financial statement - standalone A4 document handed to the member. */
  body.print-member-statement .app-shell,
  body.print-member-statement .app-shell * { visibility: hidden; }
  body.print-member-statement #memberStatementPrintArea,
  body.print-member-statement #memberStatementPrintArea * { visibility: visible; }
  body.print-member-statement #memberStatementPrintArea {
    position: absolute; left: 0; top: 0; width: 100%; padding: 12mm 15mm;
    box-sizing: border-box; background: #fff; font-size: 10pt;
  }
  body.print-member-statement #memberStatementModal.open,
  body.print-member-statement #memberStatementModal.open .modal-box { visibility: visible; }
  body.print-member-statement #memberStatementModal.open .modal-box { box-shadow: none; }
  body.print-member-statement .loan-schedule-table table { width: 100%; border-collapse: collapse; }
  body.print-member-statement .loan-schedule-table th,
  body.print-member-statement .loan-schedule-table td { border: 1px solid #000; padding: 2mm 2.5mm; }
  body.print-member-statement .loan-schedule-table th { background: #f0f0f0 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body.print-member-statement .loan-schedule-table tr,
  body.print-member-statement .loan-schedule-total { break-inside: avoid; page-break-inside: avoid; }
  body.print-member-statement .report-signatures { break-inside: avoid; page-break-inside: avoid; }
}

.loan-receipt-print-area { min-height: 420px; position: relative; }
.loan-schedule-print-area { min-height: 480px; position: relative; }
.member-statement-print-area { min-height: 480px; position: relative; }
.loan-schedule-grid { margin: 0.85rem 0; }
.loan-schedule-table { margin: 1rem 0; }
.loan-schedule-table table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.loan-schedule-table th,
.loan-schedule-table td { border: 1px solid var(--border); padding: 0.35rem 0.5rem; }
.loan-schedule-table th { background: var(--green-100); text-align: left; }
.loan-schedule-table .num { text-align: right; }
.loan-schedule-total td { background: var(--green-100); font-weight: 600; }

/* Guarantor rows on the loan application form */
.guarantor-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; margin: 0.5rem 0 0.75rem; }
.guarantor-table th, .guarantor-table td { border: 1px solid var(--border); padding: 0.4rem 0.5rem; text-align: left; }
.guarantor-table th { background: var(--green-100); font-weight: 600; }
.guarantor-table td input { width: 100%; padding: 0.35rem; border: 1px solid var(--border); border-radius: 6px; font-size: 0.85rem; }
.guarantor-table td input:focus { outline: none; border-color: var(--green-800); }
.receipt-note { margin: 0.6rem 0 0; opacity: 0.85; }
.transaction-receipt-print-area { min-height: 420px; position: relative; }
.loan-receipt-grid { margin: 1rem 0; }
.loan-receipt-declaration {
  margin: 1.25rem 0 0.5rem; padding: 0.75rem 1rem; background: var(--green-100);
  border-radius: 8px; font-size: 0.85rem; line-height: 1.5;
}
.receipt-words {
  margin: 1rem 0; padding: 0.75rem 1rem; background: var(--green-100);
  border-radius: 8px; font-size: 0.9rem; line-height: 1.5;
}
.receipt-thanks { font-weight: 800; margin: 0 0 0.15rem; }
/* Client signature block on receipts: a label with a completely blank line
   underneath that the client signs by hand. Nothing is pre-printed. */
.receipt-client-sign {
  margin: 1.25rem 0 0; padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  break-inside: avoid; page-break-inside: avoid;
}
.receipt-client-sign > label {
  display: block; font-size: 0.72rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--green-900);
}
.receipt-sign-line { border-bottom: 1px solid var(--text); width: 100%; min-height: 2.25rem; margin: 0.5rem 0 0; }
.receipt-tel { margin: 0; }
.receipt-no { margin: 0.35rem 0 0; opacity: 0.75; }
.receipt-schedule-title { margin: 1.25rem 0 0.5rem; font-size: 1rem; }
.receipt-schedule table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.receipt-schedule th,
.receipt-schedule td { border: 1px solid var(--border); padding: 0.35rem 0.5rem; text-align: left; }
.receipt-schedule th { background: var(--green-100); }
.receipt-schedule-total td { background: var(--green-100); }
.checkbox-label { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.9rem; line-height: 1.45; }

.loan-app-hint { margin: 0 0 1rem; font-size: 0.85rem; }
.loan-app-stats { margin-bottom: 1rem; }
.stat-clickable { cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.stat-clickable:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.08); }

/* ═══ Two-step login: OTP verification card ═══ */
.otp-card { animation: slideUp 0.35s ease-out; }

.login-brand-logo--small {
  width: 84px;
  height: 84px;
}

.otp-instructions {
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
  margin-bottom: 1.25rem;
}

.otp-instructions strong { color: var(--text); }

.otp-inputs {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.otp-input {
  width: 48px;
  height: 56px;
  text-align: center;
  font-size: 1.35rem;
  font-weight: 700;
  font-family: var(--font);
  border: 2px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  caret-color: var(--green-800);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.otp-input:focus {
  outline: none;
  border-color: var(--green-700);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(18, 135, 95, 0.12);
}

.otp-input:disabled { opacity: 0.45; cursor: not-allowed; }

.btn-link {
  background: none;
  border: none;
  color: var(--green-800);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  font-family: var(--font);
  transition: color 0.15s ease;
}

.btn-link:hover:not(:disabled) { color: var(--green-900); text-decoration: underline; }
.btn-link:disabled { color: var(--muted); cursor: not-allowed; text-decoration: none; }
.btn-link:focus-visible { outline: 2px solid var(--green-700); outline-offset: 2px; }

.otp-resend-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 1rem;
  font-size: 0.85rem;
  flex-wrap: wrap;
}

.otp-timer {
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 0.75rem;
}

.otp-timer strong { color: var(--green-800); font-variant-numeric: tabular-nums; }

/* System Settings */
.sys-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.9rem;
}
.sys-stat {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.85rem 1rem;
}
.sys-stat-ico {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--green-100);
  color: var(--green-800);
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}
.sys-stat-main small {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.sys-stat-main strong {
  font-size: 1.02rem;
  color: var(--green-900);
  line-height: 1.3;
  word-break: break-word;
}
.sys-stamp { margin-top: 0.8rem; font-size: 0.75rem; }
.sys-hint { display: flex; align-items: center; gap: 0.45rem; font-size: 0.8rem; }
.sys-hint i { color: var(--gold); }
/* Blocked / refused action hint (e.g. a loan officer trying to deduct from
   savings) — deliberately red so it reads as a denial, not a tip. */
.sys-hint-danger,
.sys-hint-danger i { color: var(--danger); }
/* Chairman switch row (e.g. automatic repayment): checkbox + label on one line. */
.sys-checkrow { display: flex; align-items: flex-start; gap: 0.55rem; }
.sys-checkrow input[type="checkbox"] { width: 1.05rem; height: 1.05rem; margin-top: 0.15rem; accent-color: var(--green-800); }
.sys-checklabel { font-weight: 600; }

.pill {
  display: inline-block;
  padding: 0.15rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}
.pill-on  { background: var(--green-100); color: var(--green-800); }
.pill-off { background: #fef3cd; color: #8a6d00; }

.maint-actions { display: flex; flex-direction: column; gap: 0.7rem; }
.maint-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  background: var(--white);
}
.maint-item.danger {
  border-color: rgba(220, 38, 38, 0.28);
  background: #fffafa;
}
.maint-info h5 {
  font-size: 0.88rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.maint-info h5 i { color: var(--muted); width: 16px; text-align: center; }
.maint-info p { font-size: 0.76rem; color: var(--muted); margin-top: 0.15rem; }
.maint-info code {
  background: var(--bg);
  padding: 0.05rem 0.35rem;
  border-radius: 5px;
  font-size: 0.72rem;
}
.maint-controls { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }
.maint-days {
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 0.42rem 0.55rem;
  font-family: var(--font);
  font-size: 0.8rem;
  background: var(--white);
  color: var(--text);
}
.maint-days:focus { outline: none; border-color: var(--gold); }

.table-wrap td.num, .table-wrap th.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.backup-body p { font-size: 0.84rem; color: var(--muted); margin-bottom: 0.9rem; max-width: 640px; }

.sys-audit { display: grid; gap: 0.5rem; }
.sys-audit-row {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  background: var(--bg);
  border-radius: 10px;
  padding: 0.55rem 0.8rem;
}
.sys-chip {
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--green-800);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  white-space: nowrap;
  margin-top: 0.1rem;
}
.sys-audit-txt { font-size: 0.8rem; line-height: 1.45; }
.sys-audit-txt small { display: block; font-size: 0.7rem; margin-top: 0.1rem; }

@media (max-width: 720px) {
  .maint-item { flex-direction: column; align-items: stretch; }
  .maint-controls { justify-content: flex-end; flex-wrap: wrap; }
}

.otp-footer { display: flex; justify-content: center; padding-top: 1rem; }

@media (max-width: 600px) {
  .otp-inputs { gap: 0.45rem; }
  .otp-input { width: 42px; height: 50px; font-size: 1.2rem; border-radius: 8px; }
}

/* ── Bulk selection & delete (Chairman) ─────────────────────────── */

/* Checkbox column in bulk-delete tables */
th.col-check,
td.col-check {
  width: 38px;
  min-width: 38px;
  text-align: center;
  vertical-align: middle;
}

th.col-check input[type="checkbox"],
td.col-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: #047857;
  vertical-align: middle;
}

/* Highlight rows selected for deletion */
tr.row-selected > td {
  background: rgba(185, 28, 28, 0.06);
}

/* Floating action bar shown above a table when items are selected */
.bulk-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.6rem 0.9rem;
  margin-bottom: 0.9rem;
  border: 1px solid #fecaca;
  border-left: 4px solid var(--danger, #dc2626);
  background: #fef2f2;
  border-radius: 10px;
}

.bulk-bar-count {
  font-size: 0.85rem;
  font-weight: 700;
  color: #b91c1c;
}

.bulk-bar .btn { white-space: nowrap; }

/* ── Asset Management Module (independent register) ─────────────── */

/* Table thumbnails and detail photo — placeholder shown when no photo. */
.asset-thumb {
  width: 56px; height: 56px; object-fit: cover; border-radius: 10px;
  border: 1px solid var(--border); background: var(--bg);
  display: inline-block; vertical-align: middle;
}
.asset-photo-placeholder {
  color: var(--muted); display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.asset-view-photo { display: flex; justify-content: center; margin-bottom: 1.1rem; }
.asset-photo-large { max-width: 320px; width: 100%; max-height: 320px; object-fit: contain; border-radius: 12px; border: 1px solid var(--border); background: var(--bg); }
.asset-photo-large.asset-photo-placeholder { height: 200px; flex-direction: column; gap: 0.5rem; font-size: 2rem; }
.asset-photo-large.asset-photo-placeholder span { font-size: 0.82rem; }

/* Independence note under the asset dashboard stats. */
.asset-independence-note {
  margin: -0.4rem 0 1.25rem; font-size: 0.85rem;
  background: var(--green-100); border: 1px solid var(--border);
  padding: 0.65rem 0.9rem; border-radius: 10px;
}

/* Asset register filters. */
.asset-filter-grid { grid-template-columns: 1.4fr 1fr 1fr 0.9fr; align-items: end; gap: 0.75rem; }
.asset-filter-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; padding-top: 0.25rem; }

/* Recently-added assets strip. */
.asset-recent { display: grid; gap: 0.6rem; }
.asset-recent-row {
  display: flex; align-items: center; gap: 0.7rem;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 10px; padding: 0.45rem 0.6rem;
}
.asset-recent-thumb { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); background: var(--white); flex-shrink: 0; }
.asset-recent-thumb.asset-photo-placeholder { font-size: 0.95rem; color: var(--muted); }
.asset-recent-info { flex: 1; min-width: 0; }
.asset-recent-info strong { display: block; font-size: 0.85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.asset-recent-info small { font-size: 0.74rem; }
.asset-recent-value { font-weight: 700; font-size: 0.82rem; white-space: nowrap; }
.asset-recent-row .btn { flex-shrink: 0; }

/* Pagination controls under the asset table. */
.asset-pager { display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; margin-top: 0.9rem; }
.asset-pager .muted { margin-right: 0.4rem; font-size: 0.8rem; }
.asset-page-btn {
  padding: 0.32rem 0.65rem; border: 1px solid var(--border); background: var(--white);
  border-radius: 8px; font: 600 0.78rem var(--font); cursor: pointer; color: var(--text);
}
.asset-page-btn:hover:not(:disabled) { background: var(--green-100); }
.asset-page-btn.active { background: var(--green-800); color: #fff; border-color: var(--green-800); }
.asset-page-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.asset-page-gap { color: var(--muted); padding: 0 0.15rem; }

@media (max-width: 900px) {
  .asset-filter-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .asset-filter-grid { grid-template-columns: 1fr; }
  .asset-recent-value { display: none; }
}

/* ---- Share modal polish ----
   The share dialogs reuse .modal/.modal-box but hold dense forms plus
   absolute-positioned member-search dropdowns. These rules guarantee the
   dialogs render as crisp, fully-opaque cards with legible inputs:        */
#shareBuyModal .modal-box,
#shareSellModal .modal-box,
#shareTransferModal .modal-box,
#shareConvertModal .modal-box {
  background: #ffffff;            /* solid — never let the dark overlay show through */
  border: 1px solid var(--border);
  max-width: 560px;
  overflow: visible;              /* let member-search dropdowns spill past the box */
  color: var(--text);
}
#shareBuyModal .modal-head,
#shareSellModal .modal-head,
#shareTransferModal .modal-head,
#shareConvertModal .modal-head {
  background: var(--green-900);
  border-bottom: none;
  border-radius: var(--radius) var(--radius) 0 0;
}
#shareBuyModal .modal-head h3,
#shareSellModal .modal-head h3,
#shareTransferModal .modal-head h3,
#shareConvertModal .modal-head h3 { color: #ffffff; }
#shareBuyModal .modal-head h3 i,
#shareSellModal .modal-head h3 i,
#shareTransferModal .modal-head h3 i,
#shareConvertModal .modal-head h3 i { color: var(--gold-light); }
#shareBuyModal .modal-close,
#shareSellModal .modal-close,
#shareTransferModal .modal-close,
#shareConvertModal .modal-close {
  color: #ffffff;
  opacity: 0.85;
  font-size: 1.5rem;
  padding: 0.25rem 0.5rem;
  border-radius: 8px;
}
#shareBuyModal .modal-close:hover,
#shareSellModal .modal-close:hover,
#shareTransferModal .modal-close:hover,
#shareConvertModal .modal-close:hover { opacity: 1; background: rgba(255, 255, 255, 0.15); }
#shareBuyModal .modal-body,
#shareSellModal .modal-body,
#shareTransferModal .modal-body,
#shareConvertModal .modal-body {
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
#shareBuyModal .modal-body .field,
#shareSellModal .modal-body .field,
#shareTransferModal .modal-body .field,
#shareConvertModal .modal-body .field { position: relative; }
#shareBuyModal .modal-body label,
#shareSellModal .modal-body label,
#shareTransferModal .modal-body label,
#shareConvertModal .modal-body label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--green-900);
}
#shareBuyModal .modal-body input:not([type="hidden"]),
#shareSellModal .modal-body input:not([type="hidden"]),
#shareTransferModal .modal-body input:not([type="hidden"]),
#shareConvertModal .modal-body input:not([type="hidden"]),
#shareBuyModal .modal-body select,
#shareSellModal .modal-body select,
#shareTransferModal .modal-body select,
#shareConvertModal .modal-body select {
  background: #ffffff;
  color: var(--text);
  border: 1.5px solid var(--border);
  opacity: 1;
  -webkit-text-fill-color: var(--text);
}
#shareBuyModal .modal-body input:focus,
#shareSellModal .modal-body input:focus,
#shareTransferModal .modal-body input:focus,
#shareConvertModal .modal-body input:focus,
#shareBuyModal .modal-body select:focus,
#shareSellModal .modal-body select:focus,
#shareTransferModal .modal-body select:focus,
#shareConvertModal .modal-body select:focus {
  outline: none;
  border-color: var(--green-700);
  box-shadow: 0 0 0 3px rgba(18, 135, 95, 0.15);
  background: #ffffff;
}
/* Computed totals stay clearly legible instead of greyed out. */
#scBuyTotal, #scSellTotal, #scTransferTotal, #scConvertAmount {
  background: var(--green-100);
  border-color: var(--green-700);
  font-weight: 700;
  color: var(--green-900);
  -webkit-text-fill-color: var(--green-900);
  opacity: 1;
}
#scBuyPrice, #scSellPrice, #scTransferPrice, #scConvertPrice {
  background: var(--bg);
  font-weight: 600;
  opacity: 1;
  -webkit-text-fill-color: var(--text);
}
/* Member-search dropdowns must float above the modal content. */
#shareBuyModal .suggestions,
#shareSellModal .suggestions,
#shareTransferModal .suggestions,
#shareConvertModal .suggestions {
  z-index: 1200;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}
#shareBuyModal .field:has(.suggestions),
#shareSellModal .field:has(.suggestions),
#shareTransferModal .field:has(.suggestions),
#shareConvertModal .field:has(.suggestions) { z-index: 10; }
/* Keep the member field on top while searching; later fields (shares, price)
   have plain stacking so the dropdown overlaps them cleanly. */
#shareBuyModal .field:has(.member-search:focus),
#shareSellModal .field:has(.member-search:focus),
#shareTransferModal .field:has(.member-search:focus),
#shareConvertModal .field:has(.member-search:focus) { z-index: 20; }
/* Match highlighting inside suggestion names. */
.suggest-item strong mark {
  background: #fef08a;
  color: inherit;
  border-radius: 3px;
  padding: 0 1px;
}
.suggest-item:hover strong mark, .suggest-item.active strong mark { background: #fde047; }
/* Helper / empty-state rows at the bottom of a suggestion list. */
.suggest-hint {
  padding: 0.55rem 0.85rem;
  font-size: 0.78rem;
  color: var(--muted);
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.suggest-hint:only-child { border-top: none; border-radius: 10px; }
/* Blocked-conversion warning banner. */
#scConvertWarn {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  background: #fef3c7;
  border: 1px solid #fcd34d;
  color: #92400e;
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  font-size: 0.82rem;
  line-height: 1.45;
}
#shareBuyModal .modal-foot,
#shareSellModal .modal-foot,
#shareTransferModal .modal-foot,
#shareConvertModal .modal-foot { background: #f8fafc; }
